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 |
|---|---|---|---|---|---|---|---|---|---|
3b246ff3e9a43f2d258751340cadf70bc9bc820c | zuul-core/src/main/java/com/netflix/zuul/origins/Origin.java | zuul-core/src/main/java/com/netflix/zuul/origins/Origin.java | /**
* Copyright 2015 Netflix, 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 ... | /**
* Copyright 2015 Netflix, 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 ... | Rename the interface to isCold() | Rename the interface to isCold()
| Java | apache-2.0 | Netflix/zuul |
ca038efcd2b4feb179d2efafa1222cf6e936246e | benchmarks/src/jmh/java/etomica/simulation/BenchSimSurfacetensionLJMC.java | benchmarks/src/jmh/java/etomica/simulation/BenchSimSurfacetensionLJMC.java | package etomica.simulation;
import etomica.data.meter.MeterPressureTensor;
import etomica.space3d.Space3D;
import etomica.surfacetension.LJMC;
import org.openjdk.jmh.annotations.*;
import java.util.concurrent.TimeUnit;
@State(Scope.Benchmark)
@Fork(1)
public class BenchSimSurfacetensionLJMC {
@Param({"1000", "2... | package etomica.simulation;
import etomica.data.AccumulatorAverageFixed;
import etomica.data.DataPumpListener;
import etomica.data.IData;
import etomica.data.meter.MeterPressureTensor;
import etomica.space3d.Space3D;
import etomica.surfacetension.LJMC;
import org.openjdk.jmh.annotations.*;
import java.util.concurrent... | Add integrator reset to Surfacetension bench | Add integrator reset to Surfacetension bench
| Java | mpl-2.0 | etomica/etomica,etomica/etomica,etomica/etomica |
b22a4b81bc47660a8a9af382da32e09fa1cccef6 | src/net/zero918nobita/Xemime/X_Block.java | src/net/zero918nobita/Xemime/X_Block.java | package net.zero918nobita.Xemime;
import java.util.ArrayList;
import java.util.HashMap;
/**
* ブロック
* Common Lisp の progn のようにブロック自体が戻り値を持つ
* そのためブロック内に何も記述していない場合例外を投げる
* @author Kodai Matsumoto
*/
class X_Block extends X_Object {
private ArrayList<X_Object> list;
X_Block(ArrayList<X_Object> l) {
... | package net.zero918nobita.Xemime;
import java.util.ArrayList;
import java.util.HashMap;
/**
* ブロック
* Common Lisp の progn のようにブロック自体が戻り値を持つ
* そのためブロック内に何も記述していない場合例外を投げる
* @author Kodai Matsumoto
*/
class X_Block extends X_Object {
private ArrayList<X_Object> list;
X_Block(ArrayList<X_Object> l) {
... | Fix the problem where blocks' local frames aren't discarded when they are used | Fix the problem where blocks' local frames aren't discarded when they are used
| Java | mit | xemime-lang/xemime,xemime-lang/xemime |
d90f8709f957b5f9ab5d72bc80b869cddd788598 | OpERP/src/main/java/devopsdistilled/operp/server/ServerApp.java | OpERP/src/main/java/devopsdistilled/operp/server/ServerApp.java | package devopsdistilled.operp.server;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import devopsdistilled.operp.server.context.AppContext;
public class ServerApp {
public static void main(String[] args) {
ApplicationConte... | package devopsdistilled.operp.server;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URL;
import java.util.Properties;
import org.springframework.context.ApplicationContext;
impo... | Change hbm2dll property = update after creating schema | Change hbm2dll property = update after creating schema | Java | mit | DevOpsDistilled/OpERP,njmube/OpERP |
99c0d011d483242d9e8b98a11c621876c6cc07f1 | log4j-core/src/test/java/org/apache/logging/log4j/test/ExtendedLevels.java | log4j-core/src/test/java/org/apache/logging/log4j/test/ExtendedLevels.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache license, Version 2.0
* (the "License"); you may n... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache license, Version 2.0
* (the "License"); you may n... | Revert removal of @Plugin in test | Revert removal of @Plugin in test
| Java | apache-2.0 | xnslong/logging-log4j2,apache/logging-log4j2,codescale/logging-log4j2,GFriedrich/logging-log4j2,GFriedrich/logging-log4j2,apache/logging-log4j2,codescale/logging-log4j2,GFriedrich/logging-log4j2,xnslong/logging-log4j2,codescale/logging-log4j2,xnslong/logging-log4j2,apache/logging-log4j2 |
844353233c735a5263f2945e079ee06e30e74572 | keratin-core/src/ca/szc/keratin/core/net/BusErrorHandler.java | keratin-core/src/ca/szc/keratin/core/net/BusErrorHandler.java | /**
* Copyright (C) 2013 Alexander Szczuczko
*
* This file may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package ca.szc.keratin.core.net;
import org.pmw.tinylog.Logger;
import net.engio.mbassy.IPublicationErrorHandler;
import net.engio.mbassy.Publicati... | /**
* Copyright (C) 2013 Alexander Szczuczko
*
* This file may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package ca.szc.keratin.core.net;
import org.pmw.tinylog.Logger;
import net.engio.mbassy.IPublicationErrorHandler;
import net.engio.mbassy.Publicati... | Add recursive logging of causes for the bus error handler. | Add recursive logging of causes for the bus error handler.
| Java | mit | emmettu/keratin-irc,ASzc/keratin-irc |
0c100e305b912eaa9d100e39b2f202a95043802f | test/competitive/programming/timemanagement/TimerTest.java | test/competitive/programming/timemanagement/TimerTest.java | package competitive.programming.timemanagement;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import org.junit.Test;
import competitive.programming.timemanagement.TimeoutException;
import competitive.programming.timemanagement.Timer;
public class TimerTest {
@Test
p... | package competitive.programming.timemanagement;
import static org.junit.Assert.fail;
import org.junit.Test;
public class TimerTest {
@Test
public void nonStartedTimerDoesNotTimeout() {
Timer timer = new Timer();
try {
timer.timeCheck();
sleep(1);
... | Change timer test so that we can reproduce the random issue. Change timings. | Change timer test so that we can reproduce the random issue. Change
timings. | Java | apache-2.0 | Manwe56/competitive-programming,Manwe56/competitive-programming |
9b00f12b6e3ebbd19685725fb1dc8df035921a27 | openxc/tests/com/openxc/messages/NamedVehicleMessageTest.java | openxc/tests/com/openxc/messages/NamedVehicleMessageTest.java | package com.openxc.messages;
import java.util.HashMap;
import junit.framework.TestCase;
import org.junit.Test;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
import android.os.Parcel;
@Config(emulateSdk = 18, manifest... | package com.openxc.messages;
import java.util.HashMap;
import junit.framework.TestCase;
import org.junit.Test;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
import android.os.Parcel;
@Config(emulateSdk = 18, manifest... | Test equals overridden on NamedVehicleMessage. | Test equals overridden on NamedVehicleMessage.
| Java | bsd-3-clause | openxc/openxc-android,ChernyshovYuriy/openxc-android,msowka/openxc-android,prateeknitish391/demo,petemaclellan/openxc-android,petemaclellan/openxc-android,prateeknitish391/demo,openxc/openxc-android,msowka/openxc-android,prateeknitish391/demo,mray19027/openxc-android,ChernyshovYuriy/openxc-android,dhootha/openxc-androi... |
ca000a5edb828c534b8db1a4cf8dc6f221eaea22 | src/main/java/seedu/taskitty/logic/commands/ViewDoneCommand.java | src/main/java/seedu/taskitty/logic/commands/ViewDoneCommand.java | package seedu.taskitty.logic.commands;
import java.util.Set;
/**
* Finds and lists all tasks in task manager whose name contains any of the argument keywords.
* Keyword matching is case sensitive.
*/
public class ViewDoneCommand extends Command {
public static final String COMMAND_WORD = "viewdone";
publ... | package seedu.taskitty.logic.commands;
import java.util.Set;
/**
* Finds and lists all tasks in task manager whose name contains any of the argument keywords.
* Keyword matching is case sensitive.
*/
public class ViewDoneCommand extends Command {
public static final String COMMAND_WORD = "viewdone";
publ... | Update saveStateIsNeeded parameters in viewDoneCommand | Update saveStateIsNeeded parameters in viewDoneCommand
| Java | mit | CS2103AUG2016-W14-C4/main |
dc2f69deae316dd40652765b9df0bf526f662f29 | cuke4duke/src/main/java/cuke4duke/internal/jvmclass/GuiceFactory.java | cuke4duke/src/main/java/cuke4duke/internal/jvmclass/GuiceFactory.java | package cuke4duke.internal.jvmclass;
import java.util.HashMap;
import java.util.Map;
import java.util.ArrayList;
import java.util.List;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Module;
/**
* @author Henning Jensen
*/
public class GuiceFactory implements ObjectFact... | package cuke4duke.internal.jvmclass;
import java.util.HashMap;
import java.util.Map;
import java.util.ArrayList;
import java.util.List;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Module;
import cuke4duke.StepMother;
/**
* @author Henning Jensen
*/
public class Guice... | Rename method to inject step mother | Rename method to inject step mother
| Java | mit | sghill/cucumber-jvm,brasmusson/cucumber-jvm,nilswloka/cucumber-jvm,torbjornvatn/cuke4duke,bartkeizer/cucumber-jvm,dkowis/cucumber-jvm,sghill/cucumber-jvm,flaviuratiu/cucumber-jvm,nilswloka/cucumber-jvm,demos74dx/cucumber-jvm,joansmith/cucumber-jvm,cucumber/cucumber-jvm,rlagunov-anaplan/cucumber-jvm,chrishowejones/cucum... |
d78fb7137335ad95f515b5bf05eb335535271b34 | dropwizard-jetty/src/main/java/io/dropwizard/jetty/LocalIpFilter.java | dropwizard-jetty/src/main/java/io/dropwizard/jetty/LocalIpFilter.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | /**
* Copyright 2013-2014 The Apache Software Foundation (Curator Project)
*
* The Apache Software Foundation licenses this file to you under the Apache
* License, version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at:
*
* http:/... | Update copyright notice to reference Curator | Update copyright notice to reference Curator
| Java | apache-2.0 | aaanders/dropwizard,nickbabcock/dropwizard,pkwarren/dropwizard,phambryan/dropwizard,micsta/dropwizard,Alexey1Gavrilov/dropwizard,qinfchen/dropwizard,evnm/dropwizard,pkwarren/dropwizard,phambryan/dropwizard,patrox/dropwizard,cvent/dropwizard,dotCipher/dropwizard,phambryan/dropwizard,tjcutajar/dropwizard,micsta/dropwizar... |
6d2cb571043b9dde35bef5fbb6df5cc96e03be4f | online-local/src/net/myrrix/online/partition/PartitionLoaderImpl.java | online-local/src/net/myrrix/online/partition/PartitionLoaderImpl.java | /*
* Copyright Myrrix Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | /*
* Copyright Myrrix Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | Use some Guava .net classes to clean up code a little | Use some Guava .net classes to clean up code a little | Java | apache-2.0 | xingh/myrrix-recommender,xingh/myrrix-recommender,xingh/myrrix-recommender |
dcd9d1acefbed054f6d6223e1ef1e700b755a390 | src/main/java/com/laschuet/spark/rest/sample/Info.java | src/main/java/com/laschuet/spark/rest/sample/Info.java | package com.laschuet.spark.rest.sample;
import javax.servlet.ServletContext;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import org.apache.spark.sql.SparkSession;
@Path("info")
public class Info {
@Context
p... | package com.laschuet.spark.rest.sample;
import javax.servlet.ServletContext;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import org.apache.spark.SparkContext;
import org.apache.spark.sql.SparkSession;
@Path("info")
... | Add an endpoint to query the Spark user | Add an endpoint to query the Spark user
| Java | mit | laschuet/spark-rest-sample |
67d393d11ad076682cf79b4eeab6ebf3a19d4b85 | src/main/java/hello/config/data/InitialDataLoader.java | src/main/java/hello/config/data/InitialDataLoader.java | package hello.config.data;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.context.annotation.Profile;
import org.springframework.context.event.ContextRefreshedEven... | package hello.config.data;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.context.annotation.Profile;
import org.springframework.context.event.ContextRefreshedEven... | Add another greeting to the initial data. | Add another greeting to the initial data.
| Java | bsd-3-clause | hainesr/mvc-dev,hainesr/mvc-dev |
1b87bf10beb0d929f63cb597322380d0b9db394e | lucene/core/src/test/org/apache/lucene/util/TestTimSorter.java | lucene/core/src/test/org/apache/lucene/util/TestTimSorter.java | package org.apache.lucene.util;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version... | package org.apache.lucene.util;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version... | Fix test bug (merged from r1484180). | Fix test bug (merged from r1484180).
git-svn-id: 13f9c63152c129021c7e766f4ef575faaaa595a2@1484183 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | PATRIC3/p3_solr,PATRIC3/p3_solr,PATRIC3/p3_solr,PATRIC3/p3_solr,PATRIC3/p3_solr,PATRIC3/p3_solr,PATRIC3/p3_solr |
2a1f3fe2605fb48d5a8290bf57322745cf477eb8 | src/main/java/com/jvms/i18neditor/DuplicateTranslationMenuItem.java | src/main/java/com/jvms/i18neditor/DuplicateTranslationMenuItem.java | package com.jvms.i18neditor;
import javax.swing.JMenuItem;
import javax.swing.KeyStroke;
import com.jvms.i18neditor.util.MessageBundle;
/**
* This class represents a menu item for duplicating a translation key.
*
* @author Jacob
*/
public class DuplicateTranslationMenuItem extends JMenuItem {
private static fi... | package com.jvms.i18neditor;
import java.awt.Toolkit;
import javax.swing.JMenuItem;
import javax.swing.KeyStroke;
import com.jvms.i18neditor.util.MessageBundle;
/**
* This class represents a menu item for duplicating a translation key.
*
* @author Jacob
*/
public class DuplicateTranslationMenuItem extends JMen... | Use toolkit to get modifier for duplicate shortcut. | Use toolkit to get modifier for duplicate shortcut. | Java | mit | jcbvm/i18n-editor |
f08a4a45538f6fbe14693969cef094e4a669966b | app/src/test/java/com/cwainner/chris/recipecentral/MainActivityTest.java | app/src/test/java/com/cwainner/chris/recipecentral/MainActivityTest.java | package com.cwainner.chris.recipecentral;
import android.os.Build;
import android.widget.TextView;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.Robolectric;
import org.robolectric.RobolectricGradleTestRunner;
import org.robolectric.annotation.Config;
import ... | package com.cwainner.chris.recipecentral;
import android.content.Intent;
import android.os.Build;
import android.widget.TextView;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.Robolectric;
import org.robolectric.RobolectricGradleTestRunner;
import org.robolect... | Add tests for main page about and contact buttons | Add tests for main page about and contact buttons
| Java | mit | cwainner/android-recipe-central |
22f41ce4850839f0ab995d8dea1eacdce59c79a3 | JLamp-RPi/src/main/java/ir/ac/aut/ceit/aolab/jlamp/rpi/model/DefaultNotificationListener.java | JLamp-RPi/src/main/java/ir/ac/aut/ceit/aolab/jlamp/rpi/model/DefaultNotificationListener.java | package ir.ac.aut.ceit.aolab.jlamp.rpi.model;
import ir.ac.aut.ceit.aolab.lamp_notification;
import org.kaaproject.kaa.client.notification.NotificationListener;
/**
* Created by root on 5/17/16.
*/
public class DefaultNotificationListener implements NotificationListener {
@Override
public void onNotification(long... | package ir.ac.aut.ceit.aolab.jlamp.rpi.model;
import ir.ac.aut.ceit.aolab.I1820.notification.I1820;
import org.kaaproject.kaa.client.notification.NotificationListener;
/**
* Created by root on 5/17/16.
*/
public class DefaultNotificationListener implements NotificationListener {
@Override
public void onNot... | Improve default notification for supporting I1820 notifications. | Improve default notification for supporting I1820 notifications.
| Java | mit | AoLab/JLamp |
0a79c823a35fff03067dec2816f88009314e94bc | src/main/java/com/emc/ecs/serviceBroker/config/BrokerConfig.java | src/main/java/com/emc/ecs/serviceBroker/config/BrokerConfig.java | package com.emc.ecs.serviceBroker.config;
import java.net.URL;
import org.cloudfoundry.community.servicebroker.model.BrokerApiVersion;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import c... | package com.emc.ecs.serviceBroker.config;
import java.net.URL;
import org.cloudfoundry.community.servicebroker.model.BrokerApiVersion;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.... | Add connection details as environment variables | Add connection details as environment variables
| Java | apache-2.0 | spiegela/ecs-cf-service-broker,codedellemc/ecs-cf-service-broker,emccode/ecs-cf-service-broker |
a11ea7aa3d65d38050b0f72687f100b365d179cd | data-model/src/main/java/org/pdxfinder/repositories/SpecimenRepository.java | data-model/src/main/java/org/pdxfinder/repositories/SpecimenRepository.java | package org.pdxfinder.repositories;
import org.pdxfinder.dao.Specimen;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.repository.query.Param;
import java.util.List;
/**
* Created by jmason on 08/06/2017.
*/
p... | package org.pdxfinder.repositories;
import org.pdxfinder.dao.Specimen;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.repository.query.Param;
import java.util.List;
/**
* Created by jmason on 08/06/2017.
*/
p... | Add model specific find method | Add model specific find method
| Java | apache-2.0 | PDXFinder/pdxfinder,PDXFinder/pdxfinder,PDXFinder/pdxfinder,PDXFinder/pdxfinder |
c3584e1f9753ed90c41fa0369c04b1454df53487 | src/main/java/co/phoenixlab/discord/util/adapters/InstantGsonTypeAdapter.java | src/main/java/co/phoenixlab/discord/util/adapters/InstantGsonTypeAdapter.java | package co.phoenixlab.discord.util.adapters;
import com.google.gson.TypeAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonToken;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.time.Instant;
public class InstantGsonTypeAdapter extends TypeAdapter<I... | package co.phoenixlab.discord.util.adapters;
import com.google.gson.TypeAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonToken;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.time.Instant;
public class InstantGsonTypeAdapter extends TypeAdapter<I... | Change format of Instant to allow full represent | Change format of Instant to allow full represent
| Java | mit | vincentzhang96/VahrhedralBot |
b2f9d8c60527b1df7df7067443827dfc5afd0491 | src/main/java/com/tinkerpop/frames/annotations/PropertyAnnotationHandler.java | src/main/java/com/tinkerpop/frames/annotations/PropertyAnnotationHandler.java | package com.tinkerpop.frames.annotations;
import com.tinkerpop.blueprints.Direction;
import com.tinkerpop.blueprints.Edge;
import com.tinkerpop.blueprints.Element;
import com.tinkerpop.blueprints.Vertex;
import com.tinkerpop.frames.ClassUtilities;
import com.tinkerpop.frames.FramedGraph;
import com.tinkerpop.frames.Pr... | package com.tinkerpop.frames.annotations;
import java.lang.reflect.Method;
import com.tinkerpop.blueprints.Direction;
import com.tinkerpop.blueprints.Element;
import com.tinkerpop.frames.ClassUtilities;
import com.tinkerpop.frames.FramedGraph;
import com.tinkerpop.frames.Property;
public class PropertyAnnotationHand... | Support enum based properties type. | Support enum based properties type.
| Java | bsd-3-clause | tinkerpop/frames |
59aaa351e602f2b49d1f01f01f05b6fa3978003a | src/main/java/hu/webarticum/treeprinter/AbstractTreeNode.java | src/main/java/hu/webarticum/treeprinter/AbstractTreeNode.java | package hu.webarticum.treeprinter;
public abstract class AbstractTreeNode implements TreeNode {
@Override
public TreeNode getOriginalNode() {
return this;
}
@Override
public int[] getInsets() {
return new int[] {0, 0, 0, 0};
}
@Override
public boolean isDecorable() {
... | package hu.webarticum.treeprinter;
public abstract class AbstractTreeNode implements TreeNode {
@Override
public TreeNode getOriginalNode() {
return this;
}
@Override
public int[] getInsets() {
return new int[] {0, 0, 0, 0};
}
@Override
public boolean isDecorable() {
... | Fix NPE when using BorderTreeNodeDecorator | [Bug] Fix NPE when using BorderTreeNodeDecorator
| Java | apache-2.0 | davidsusu/tree-printer |
f5f11683dacd3a910d24fc1194dd80a53ef7e5f2 | src/test/java/com/hubspot/jinjava/lib/filter/RegexReplaceFilterTest.java | src/test/java/com/hubspot/jinjava/lib/filter/RegexReplaceFilterTest.java | package com.hubspot.jinjava.lib.filter;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Before;
import org.junit.Test;
import com.hubspot.jinjava.Jinjava;
import com.hubspot.jinjava.interpret.InterpretException;
import com.hubspot.jinjava.interpret.JinjavaInterpreter;
public class RegexRe... | package com.hubspot.jinjava.lib.filter;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Before;
import org.junit.Test;
import com.hubspot.jinjava.Jinjava;
import com.hubspot.jinjava.interpret.InterpretException;
import com.hubspot.jinjava.interpret.JinjavaInterpreter;
public class RegexRe... | Add test coverage for invalid regex | Add test coverage for invalid regex
| Java | apache-2.0 | HubSpot/jinjava,HubSpot/jinjava |
f24883d3e5faf5a11e791f327987fa30a53400bb | src/protocolsupport/protocol/transformer/middlepacket/clientbound/play/MiddleSpawnPainting.java | src/protocolsupport/protocol/transformer/middlepacket/clientbound/play/MiddleSpawnPainting.java | package protocolsupport.protocol.transformer.middlepacket.clientbound.play;
import java.io.IOException;
import net.minecraft.server.v1_9_R1.BlockPosition;
import protocolsupport.protocol.PacketDataSerializer;
import protocolsupport.protocol.transformer.middlepacket.ClientBoundMiddlePacket;
public abstract class Midd... | package protocolsupport.protocol.transformer.middlepacket.clientbound.play;
import java.io.IOException;
import java.util.UUID;
import net.minecraft.server.v1_9_R1.BlockPosition;
import protocolsupport.protocol.PacketDataSerializer;
import protocolsupport.protocol.transformer.middlepacket.ClientBoundMiddlePacket;
pub... | Fix spawn painting packet reading | Fix spawn painting packet reading | Java | agpl-3.0 | ridalarry/ProtocolSupport,ProtocolSupport/ProtocolSupport |
207e0271ccd4d1b6f56a2fd7880331cee47fb4b4 | vsplf-dynamic-i18n-api/src/main/java/org/vsplf/i18n/helpers/MessageFormat.java | vsplf-dynamic-i18n-api/src/main/java/org/vsplf/i18n/helpers/MessageFormat.java | /*
* Copyright (C) VSPLF Software Foundation (VSF), the origin author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* U... | /*
* Copyright (C) VSPLF Software Foundation (VSF), the origin author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* U... | Fix violations checking: * Redundant 'final' modifier | Fix violations checking:
* Redundant 'final' modifier
| Java | apache-2.0 | vsplf/vsplf-dynamic-i18n |
6a8e444469fb13ad962f3417c89d455ef1a0edc3 | alien4cloud-tosca/src/main/java/org/alien4cloud/tosca/utils/InterfaceUtils.java | alien4cloud-tosca/src/main/java/org/alien4cloud/tosca/utils/InterfaceUtils.java | package org.alien4cloud.tosca.utils;
import org.alien4cloud.tosca.model.definitions.ImplementationArtifact;
import org.alien4cloud.tosca.model.definitions.Interface;
import org.alien4cloud.tosca.model.definitions.Operation;
import java.util.Map;
import java.util.Optional;
import static alien4cloud.utils.AlienUtils.s... | package org.alien4cloud.tosca.utils;
import static alien4cloud.utils.AlienUtils.safe;
import java.util.Map;
import java.util.Optional;
import org.alien4cloud.tosca.model.definitions.ImplementationArtifact;
import org.alien4cloud.tosca.model.definitions.Interface;
import org.alien4cloud.tosca.model.definitions.Operat... | Allow specific handling of docker image artifact update in the editor, util fix. | [ALIEN-2755] Allow specific handling of docker image artifact update in the editor, util fix.
| Java | apache-2.0 | san-tak/alien4cloud,alien4cloud/alien4cloud,alien4cloud/alien4cloud,san-tak/alien4cloud,san-tak/alien4cloud,alien4cloud/alien4cloud,alien4cloud/alien4cloud,san-tak/alien4cloud |
69222c62f23824daddb90c61868a5109d74badb2 | common-core-open/src/main/java/com/bbn/bue/common/TextGroupPublicImmutable.java | common-core-open/src/main/java/com/bbn/bue/common/TextGroupPublicImmutable.java | package com.bbn.bue.common;
import com.google.common.annotations.Beta;
import org.immutables.value.Value;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This is the text group's default style for... | package com.bbn.bue.common;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.google.common.annotations.Beta;
import org.immutables.value.Value;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
i... | Make Immutables type Jackson-serializable by default | Make Immutables type Jackson-serializable by default
| Java | mit | BBN-E/bue-common-open,rgabbard-bbn/bue-common-open,rgabbard-bbn/bue-common-open,BBN-E/bue-common-open |
fde0ce439885f49adbf290b8307761112fc06a91 | webofneeds/won-core/src/main/java/won/protocol/jms/WonJmsConfiguration.java | webofneeds/won-core/src/main/java/won/protocol/jms/WonJmsConfiguration.java | package won.protocol.jms;
import javax.jms.ConnectionFactory;
import org.apache.camel.component.jms.JmsConfiguration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* User: LEIH-NB
* Date: 28.04.14
*/
public class WonJmsConfiguration extends JmsConfiguration
{
private final Logger logger = LoggerF... | package won.protocol.jms;
import javax.jms.ConnectionFactory;
import org.apache.camel.component.jms.JmsConfiguration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* User: LEIH-NB
* Date: 28.04.14
*/
public class WonJmsConfiguration extends JmsConfiguration
{
private final Logger logger = LoggerF... | Disable async sending in Activmq | Disable async sending in Activmq
Unfortunately enabling async sending needs more work - registration
fails using this setting | Java | apache-2.0 | researchstudio-sat/webofneeds,researchstudio-sat/webofneeds,researchstudio-sat/webofneeds,researchstudio-sat/webofneeds,researchstudio-sat/webofneeds,researchstudio-sat/webofneeds,researchstudio-sat/webofneeds |
4db850929fca990d8b3a72657e1ce730598e7f79 | src/main/java/com/davidbracewell/apollo/ml/sequence/SequenceLabelerLearner.java | src/main/java/com/davidbracewell/apollo/ml/sequence/SequenceLabelerLearner.java | package com.davidbracewell.apollo.ml.sequence;
import com.davidbracewell.apollo.ml.Learner;
import com.davidbracewell.apollo.ml.data.Dataset;
import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;
/**
* The type Sequence labeler learner.
*
* @author David B. Bracewell
*/
public abstract class Sequence... | package com.davidbracewell.apollo.ml.sequence;
import com.davidbracewell.apollo.ml.Learner;
import com.davidbracewell.apollo.ml.data.Dataset;
import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;
/**
* The type Sequence labeler learner.
*
* @author David B. Bracewell
*/
public abstract class Sequence... | Fix SequenceLabelLearner to ensure it sets the preprocessors | Fix SequenceLabelLearner to ensure it sets the preprocessors
| Java | apache-2.0 | dbracewell/apollo |
b4e5d37a65d3eacf6adbc12aa9e30e017edb3a26 | src/main/java/CallAggregator.java | src/main/java/CallAggregator.java |
import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;
public class CallAggregator {
private static class CallPart {
private long ts;
private boolean isStart;
public CallPart(long ts, boolean isStart) {
this.ts = ts;
this.isStart = isStar... |
import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;
public class CallAggregator {
private static class CallPart {
private long ts;
private boolean isStart;
public CallPart(long ts, boolean isStart) {
this.ts = ts;
this.isStart = isStar... | Simplify the code: while sorting the ends are placed before the starts | Simplify the code: while sorting the ends are placed before the starts
| Java | mit | loicmonney/call-aggregator |
3213d4fdf5852aaa3dc2cde4c5cd563abbd011e1 | ethereumj-core/src/test/java/org/ethereum/solidity/CompilerTest.java | ethereumj-core/src/test/java/org/ethereum/solidity/CompilerTest.java | package org.ethereum.solidity;
import org.ethereum.solidity.compiler.CompilationResult;
import org.ethereum.solidity.compiler.SolidityCompiler;
import org.junit.Ignore;
import org.junit.Test;
import java.io.IOException;
/**
* Created by Anton Nashatyrev on 03.03.2016.
*/
public class CompilerTest {
@Test
... | package org.ethereum.solidity;
import org.ethereum.solidity.compiler.CompilationResult;
import org.ethereum.solidity.compiler.SolidityCompiler;
import org.junit.Ignore;
import org.junit.Test;
import java.io.IOException;
/**
* Created by Anton Nashatyrev on 03.03.2016.
*/
public class CompilerTest {
@Test
... | Add bit more out in test | Add bit more out in test
| Java | mit | chengtalent/ethereumj,loxal/FreeEthereum,loxal/FreeEthereum,loxal/ethereumj,loxal/FreeEthereum,caxqueiroz/ethereumj |
8177975f1ec21278064888bd8618add7d9a156d9 | gnd/src/main/java/com/google/android/gnd/persistence/local/room/BaseDao.java | gnd/src/main/java/com/google/android/gnd/persistence/local/room/BaseDao.java | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Remove unused Javadoc block comment | Remove unused Javadoc block comment
| Java | apache-2.0 | google/ground-android,google/ground-android,google/ground-android |
e79a100eb1321bc0474e2d1f99745561e1e1c530 | google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/Endpoints.java | google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/Endpoints.java | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | Fix endpoints to reflect their correct per-region values. | Fix endpoints to reflect their correct per-region values.
| Java | apache-2.0 | googleapis/java-pubsublite,googleapis/java-pubsublite,googleapis/java-pubsublite |
be7ab2cb574abe92bccb879e59d9361a0a330873 | src/test/java/nl/jqno/equalsverifier/integration/extra_features/nonnull/eclipse/package-info.java | src/test/java/nl/jqno/equalsverifier/integration/extra_features/nonnull/eclipse/package-info.java | /*
* Copyright 2015 Jan Ouwens
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | /*
* Copyright 2015 Jan Ouwens
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Improve Javadoc for Eclipse nonnull annotation package | Improve Javadoc for Eclipse nonnull annotation package
| Java | apache-2.0 | jqno/equalsverifier |
7c65796e602378ab17a78b3692fb222e1f16cfef | projects/memapCore/src/main/java/memap/messages/planning/StorageMessage.java | projects/memapCore/src/main/java/memap/messages/planning/StorageMessage.java | package memap.messages.planning;
import com.google.gson.Gson;
import akka.basicMessages.AnswerContent;
import memap.messages.extension.NetworkType;
public class StorageMessage implements AnswerContent {
public String id;
public String name;
public double operationalCostEUR;
public double operationalCostCO2;
... | package memap.messages.planning;
import com.google.gson.Gson;
import akka.basicMessages.AnswerContent;
import memap.messages.extension.NetworkType;
public class StorageMessage implements AnswerContent {
public String id;
public String name;
public double operationalCostEUR;
public double operationalCostCO2;
... | Revert "Removed alphas and betas, moved to MILPProblemWithConnections" | Revert "Removed alphas and betas, moved to MILPProblemWithConnections"
This reverts commit 7a1bbba1b9a52e6bae8e99b85f2e0e0653a2d866.
| Java | apache-2.0 | SES-fortiss/SmartGridCoSimulation,SES-fortiss/SmartGridCoSimulation,SES-fortiss/SmartGridCoSimulation,SES-fortiss/SmartGridCoSimulation,SES-fortiss/SmartGridCoSimulation |
f9d1340c388a65fb856813861ec40cec9f3e6c58 | test/unit/edu/northwestern/bioinformatics/studycalendar/testing/DaoTestCase.java | test/unit/edu/northwestern/bioinformatics/studycalendar/testing/DaoTestCase.java | package edu.northwestern.bioinformatics.studycalendar.testing;
import edu.nwu.bioinformatics.commons.testing.DbTestCase;
import org.springframework.context.ApplicationContext;
import javax.sql.DataSource;
/**
* @author Rhett Sutphin
*/
public class DaoTestCase extends DbTestCase {
private static ApplicationCo... | package edu.northwestern.bioinformatics.studycalendar.testing;
import edu.nwu.bioinformatics.commons.testing.DbTestCase;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.mock.web.MockHttpServletReques... | Add open session in view filter support to tests | Add open session in view filter support to tests
git-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@38 0d517254-b314-0410-acde-c619094fa49f
| Java | bsd-3-clause | NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror |
e046c2f576786eb3552316f27ed0c87e86548dcb | subprojects/shipkit/src/main/groovy/org/shipkit/internal/gradle/plugin/PluginValidationPlugin.java | subprojects/shipkit/src/main/groovy/org/shipkit/internal/gradle/plugin/PluginValidationPlugin.java | package org.shipkit.internal.gradle.plugin;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.shipkit.gradle.plugin.PluginValidatorTask;
import org.shipkit.internal.gradle.util.JavaPluginUtil;
import org.shipkit.internal.gradle.util.TaskMaker;
/**
* This plugin validates that every plugin has a... | package org.shipkit.internal.gradle.plugin;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.api.plugins.JavaBasePlugin;
import org.shipkit.gradle.plugin.PluginValidatorTask;
import org.shipkit.internal.gradle.util.JavaPluginUtil;
import org.shipkit.internal.gradle.util.TaskMaker;
/**
*... | Validate plugins with 'check' task | Validate plugins with 'check' task
Convention over configuration
| Java | mit | mockito/shipkit,mockito/mockito-release-tools,mockito/mockito-release-tools,mockito/shipkit |
34a5492f40daf81df3c416878fdb2c898416a6b8 | extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/graal/Target_LoggingReporter.java | extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/graal/Target_LoggingReporter.java | package io.quarkus.jaeger.runtime.graal;
import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;
import io.jaegertracing.internal.JaegerSpan;
import io.jaegertracing.spi.Reporter;
@Substitute
@TargetClass(className = "io.jaegertracing.internal.reporters.LoggingReporter")
fina... | package io.quarkus.jaeger.runtime.graal;
import org.jboss.logging.Logger;
import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;
import io.jaegertracing.internal.JaegerSpan;
import io.jaegertracing.spi.Reporter;
@Substitute
@TargetClass(className = "io.jaegertracing.interna... | Update Jaeger reporter to use logger | Update Jaeger reporter to use logger
Update Jaeger reporter to use proper log instead of println statement
| Java | apache-2.0 | quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus |
10e9b99cf30ad085be1dc3fdd7b087e5c1735607 | ProjetoExemplo/src/main/java/br/com/fasam/projetoexemplo/entidades/Categoria.java | ProjetoExemplo/src/main/java/br/com/fasam/projetoexemplo/entidades/Categoria.java | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package br.com.fasam.projetoexemplo.entidades;
/**
*
* @author Aluno
*/
public class Categoria {
String nome;
String descrição;
public String getNome() {
return nome;
}
... | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package br.com.fasam.projetoexemplo.entidades;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author Aluno
*/
public class Categoria {
String nome;
String descrição;
List<Ar... | Add get e set em categoria - Informatica | Add get e set em categoria - Informatica | Java | mit | FASAM-ES/projeto-zeus |
64dacd10a2cf0bf7673878aba79ac079d646b004 | plugins/ClojureEditor/src/org/micromanager/clojureeditor/ClojureEditorPlugin.java | plugins/ClojureEditor/src/org/micromanager/clojureeditor/ClojureEditorPlugin.java | /*
* Arthur Edelstein, UCSF, 2011
*/
package org.micromanager.clojureeditor;
import org.micromanager.api.MMPlugin;
import org.micromanager.api.ScriptInterface;
public class ClojureEditorPlugin implements MMPlugin {
public static String menuName = "Clojure editor";
public void dispose() {
// do noth... | /*
* Arthur Edelstein, UCSF, 2011
*/
package org.micromanager.clojureeditor;
import org.micromanager.api.MMPlugin;
import org.micromanager.api.ScriptInterface;
public class ClojureEditorPlugin implements MMPlugin {
public static String menuName = "Clojure editor";
public void dispose() {
// do noth... | Remove line that does not compile | Remove line that does not compile
git-svn-id: 03a8048b5ee8463be5048a3801110fb50f378627@7511 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd
| Java | mit | kmdouglass/Micro-Manager,kmdouglass/Micro-Manager |
2527c192c29c85ebec6ab7ec4b91af64c078034d | core/src/main/java/org/apache/karaf/webconsole/core/internal/SidebarPanel.java | core/src/main/java/org/apache/karaf/webconsole/core/internal/SidebarPanel.java | package org.apache.karaf.webconsole.core.internal;
import org.apache.wicket.Page;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
import org.apache.wicket.markup.html.list.ListItem;
import org.apache.wicket.markup.html.list.ListView;
import org.apache.w... | package org.apache.karaf.webconsole.core.internal;
import org.apache.wicket.Page;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
import org.apache.wicket.markup.html.list.ListItem;
import org.apache.wicket.markup.html.list.ListView;
import org.apache.w... | Improve sidebar a bit - remove long class names from navigation | Improve sidebar a bit - remove long class names from navigation
git-svn-id: e2c3038d01fb1e63d9a6e7e9a258c7088cd26e08@1160300 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | apache/karaf-webconsole,apache/karaf-webconsole,apache/karaf-webconsole |
a389f14d6767dc0e0c7122bcf6b6885321b33e53 | trunk/MutabilityDetector/src/org/mutabilitydetector/asmoverride/CustomClassLoadingSimpleVerifier.java | trunk/MutabilityDetector/src/org/mutabilitydetector/asmoverride/CustomClassLoadingSimpleVerifier.java | /*
* Mutability Detector
*
* Copyright 2009 Graham Allan
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | /*
* Mutability Detector
*
* Copyright 2009 Graham Allan
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | Improve performance of the URLFallbackClassLoader. Non-scientific stopwatch tests showed a >10% speed increase, translating to a whopping seven seconds off when analysing rt.jar. | Improve performance of the URLFallbackClassLoader. Non-scientific stopwatch tests showed a >10% speed increase, translating to a whopping seven seconds off when analysing rt.jar.
git-svn-id: ed609ce04ec9e3c0bc25e071e87814dd6d976548@103 c7a0535c-eda6-11de-83d8-6d5adf01d787
| Java | apache-2.0 | MutabilityDetector/MutabilityDetector,MutabilityDetector/MutabilityDetector |
221b325c07f46652a2a7c680376373f59dec9a86 | src/main/java/net/mcft/copy/betterstorage/api/crafting/RecipeInputBase.java | src/main/java/net/mcft/copy/betterstorage/api/crafting/RecipeInputBase.java | package net.mcft.copy.betterstorage.api.crafting;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public abstract class RecipeInputBase implements IRecipeInput {
@Override
public abstract int getAmount();
@Override
public abstract boolean matches(ItemStack stack);
@Override
public voi... | package net.mcft.copy.betterstorage.api.crafting;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public abstract class RecipeInputBase implements IRecipeInput {
@Override
public abstract int getAmount();
@Override
public abstract boolean matches(ItemStack stack);
@Override
public voi... | Fix container item crafting in crafting station | Fix container item crafting in crafting station
| Java | mit | skyem123/BetterStorage,CannibalVox/BetterStorage,RX14/BetterStorage,AnodeCathode/BetterStorage,TehStoneMan/BetterStorage,KingDarkLord/BetterStorage,TehStoneMan/BetterStorageToo,Bunsan/BetterStorage,copygirl/BetterStorage,Adaptivity/BetterStorage |
be082dc2aee440d7be1eda87422d25f607feb443 | src/main/java/com/sunny/grokkingalgorithms/fasttrack/Poweroftwo.java | src/main/java/com/sunny/grokkingalgorithms/fasttrack/Poweroftwo.java | package com.sunny.grokkingalgorithms.fasttrack;
/**
* Created by sundas on 6/17/2018.
*/
public class Poweroftwo {
public static void main(String[] args) {
int a = 3;
while(a != 1){
if(a %2 == 0){
System.out.println("true");
break;
}
a = a/2;
}
}
}
| package com.sunny.grokkingalgorithms.fasttrack;
/**
* Created by sundas on 6/17/2018.
*/
public class Poweroftwo {
public static void main(String[] args) {
int a = 3;
while(a != 1){
if(a %2 == 0){
System.out.println("true");
break;
}
a = a/2;
}
a = 4;
int x ... | Check if a number is power of 2 | Check if a number is power of 2
| Java | mit | sunnydas/grokkingalgos,sunnydas/grokkingalgos |
9e90b5393a82163b5baf9c87fa5e49ff00de808f | core/test/com/cloud/storage/template/LocalTemplateDownloaderTest.java | core/test/com/cloud/storage/template/LocalTemplateDownloaderTest.java | //
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you ... | //
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you ... | Use java.io.tmpdir instead of hardcoded /tmp | Use java.io.tmpdir instead of hardcoded /tmp
| Java | apache-2.0 | GabrielBrascher/cloudstack,GabrielBrascher/cloudstack,DaanHoogland/cloudstack,resmo/cloudstack,DaanHoogland/cloudstack,resmo/cloudstack,jcshen007/cloudstack,resmo/cloudstack,jcshen007/cloudstack,jcshen007/cloudstack,resmo/cloudstack,wido/cloudstack,wido/cloudstack,wido/cloudstack,DaanHoogland/cloudstack,resmo/cloudstac... |
089e7b1cbc314cdf32af525768f573082833bbee | Product/Production/Common/CONNECTCoreLib/src/main/java/gov/hhs/fha/nhinc/mpi/adapter/component/CommonChecks.java | Product/Production/Common/CONNECTCoreLib/src/main/java/gov/hhs/fha/nhinc/mpi/adapter/component/CommonChecks.java | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2010(Year date of delivery) United States Government, as represented by the Secretary of Health and Human Services. All rights reserved.
*
*/
package gov.hhs.fha.nhinc.mpi.adapter.component;
import gov.hhs.fha.nhinc.mpilib.Patients;
... | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2010(Year date of delivery) United States Government, as represented by the Secretary of Health and Human Services. All rights reserved.
*
*/
package gov.hhs.fha.nhinc.mpi.adapter.component;
import gov.hhs.fha.nhinc.mpilib.Patients;
... | CONNECT MPI Adapter - DB implementation - reverted: implemented MPI DB Checks; no longer needed | CONNECT MPI Adapter - DB implementation - reverted: implemented MPI DB Checks; no longer needed
| Java | bsd-3-clause | beiyuxinke/CONNECT,healthreveal/CONNECT,healthreveal/CONNECT,healthreveal/CONNECT,sailajaa/CONNECT,sailajaa/CONNECT,alameluchidambaram/CONNECT,healthreveal/CONNECT,healthreveal/CONNECT,alameluchidambaram/CONNECT,beiyuxinke/CONNECT,sailajaa/CONNECT,beiyuxinke/CONNECT,beiyuxinke/CONNECT,beiyuxinke/CONNECT |
57f24d6c2ffc5968f65db48e0d8669738ccdc3f2 | common-parent/codegen/src/main/java/com/speedment/common/codegen/internal/java/view/value/InvocationValueView.java | common-parent/codegen/src/main/java/com/speedment/common/codegen/internal/java/view/value/InvocationValueView.java | package com.speedment.common.codegen.internal.java.view.value;
import com.speedment.common.codegen.Generator;
import com.speedment.common.codegen.Transform;
import com.speedment.common.codegen.model.value.InvocationValue;
import java.util.Optional;
import static com.speedment.common.codegen.util.Formatting.nl;
impor... | package com.speedment.common.codegen.internal.java.view.value;
import com.speedment.common.codegen.Generator;
import com.speedment.common.codegen.Transform;
import com.speedment.common.codegen.model.value.InvocationValue;
import java.util.Optional;
import static com.speedment.common.codegen.util.Formatting.indent;
i... | Fix minor formatting issues with new views | codegen: Fix minor formatting issues with new views
| Java | apache-2.0 | speedment/speedment,speedment/speedment |
8d1c8d847dc31f088272945c34502ea4114b628c | openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/api/MultiTenantRouterForwardingProvider.java | openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/api/MultiTenantRouterForwardingProvider.java | /*
* Copyright (C) 2014 Red Hat, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*
* Authors : Dave Tucker, Flavio Fernandes
*/
packa... | /*
* Copyright (C) 2014 Red Hat, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*
* Authors : Dave Tucker, Flavio Fernandes
*/
packa... | Add node and dpid information to L3 Forwarding API | Add node and dpid information to L3 Forwarding API
Change-Id: I06186d17b3a26e262caee612d9221994adc8ca1c
Signed-off-by: Dave Tucker <38bd290b0ce167c92fc77aa50ad43e0fe89e0f98@redhat.com>
| Java | epl-1.0 | opendaylight/ovsdb,opendaylight/ovsdb,opendaylight/ovsdb |
1f1e6815be0965cd896968baf3b088bb660da98d | src/main/java/jenkins/advancedqueue/PriorityConfigurationPlaceholderTaskHelper.java | src/main/java/jenkins/advancedqueue/PriorityConfigurationPlaceholderTaskHelper.java | package jenkins.advancedqueue;
import hudson.model.Job;
import hudson.model.Queue;
import jenkins.advancedqueue.sorter.ItemInfo;
import jenkins.advancedqueue.sorter.QueueItemCache;
import jenkins.model.Jenkins;
import org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution;
class PriorityConfigurationPlac... | package jenkins.advancedqueue;
import hudson.model.Job;
import hudson.model.Queue;
import jenkins.advancedqueue.sorter.ItemInfo;
import jenkins.advancedqueue.sorter.QueueItemCache;
import jenkins.model.Jenkins;
import org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution;
class PriorityConfigurationPlac... | Fix inability dynamically install Pipeline | Fix inability dynamically install Pipeline
| Java | mit | jenkinsci/priority-sorter-plugin,jenkinsci/priority-sorter-plugin,jenkinsci/priority-sorter-plugin |
3140130a2008dcd252df9b012f9b64c778bc9b1d | src/main/java/com/avairebot/orion/scheduler/ChangeGameJob.java | src/main/java/com/avairebot/orion/scheduler/ChangeGameJob.java | package com.avairebot.orion.scheduler;
import com.avairebot.orion.Orion;
import com.avairebot.orion.contracts.scheduler.Job;
import net.dv8tion.jda.core.entities.Game;
public class ChangeGameJob extends Job {
private int index = 0;
public ChangeGameJob(Orion orion) {
super(orion);
}
@Overri... | package com.avairebot.orion.scheduler;
import com.avairebot.orion.Orion;
import com.avairebot.orion.contracts.scheduler.Job;
import net.dv8tion.jda.core.entities.Game;
public class ChangeGameJob extends Job {
private int index = 0;
public ChangeGameJob(Orion orion) {
super(orion);
}
@Overri... | Add user variables to bot game playing status | Add user variables to bot game playing status
| Java | mit | AvaIre/AvaIre,AvaIre/AvaIre |
64f773d31cb915c31bb61514de2bb34fee4a8bbe | src/main/java/com/elmakers/mine/bukkit/api/block/UndoList.java | src/main/java/com/elmakers/mine/bukkit/api/block/UndoList.java | package com.elmakers.mine.bukkit.api.block;
import java.util.List;
import com.elmakers.mine.bukkit.api.entity.EntityData;
import org.bukkit.Location;
import org.bukkit.block.Block;
import org.bukkit.entity.Entity;
import com.elmakers.mine.bukkit.api.magic.Mage;
public interface UndoList extends BlockList, Comparabl... | package com.elmakers.mine.bukkit.api.block;
import java.util.List;
import com.elmakers.mine.bukkit.api.entity.EntityData;
import org.bukkit.Location;
import org.bukkit.block.Block;
import org.bukkit.entity.Entity;
import com.elmakers.mine.bukkit.api.magic.Mage;
public interface UndoList extends BlockList, Comparabl... | Refactor entity effect undo control | Refactor entity effect undo control
| Java | mit | elBukkit/MagicPlugin,elBukkit/MagicAPI,elBukkit/MagicPlugin,elBukkit/MagicPlugin |
062430f7c054cd4045d6a1ad950b3153bacbeb60 | src/main/java/me/deftware/mixin/mixins/MixinWorldRenderer.java | src/main/java/me/deftware/mixin/mixins/MixinWorldRenderer.java | package me.deftware.mixin.mixins;
import me.deftware.client.framework.event.events.EventWeather;
import net.minecraft.client.render.Camera;
import net.minecraft.client.render.WorldRenderer;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.inj... | package me.deftware.mixin.mixins;
import me.deftware.client.framework.event.events.EventWeather;
import net.minecraft.client.render.Camera;
import net.minecraft.client.render.LightmapTextureManager;
import net.minecraft.client.render.WorldRenderer;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm... | Fix EventWeather not triggering properly | [Fix] Fix EventWeather not triggering properly
| Java | mit | Moudoux/EMC |
379c89bf83b9d0553efaea8f65f47a23cc9610f0 | src/net/hagander/mailinglistmoderator/backend/MailMessage.java | src/net/hagander/mailinglistmoderator/backend/MailMessage.java | /*
* MailMessage.java - This class holds an abstract base class for implementing a mailinglist-specific
* message with required identifiers and content.
*
* Copyright (C) 2010 Magnus Hagander <magnus@hagander.net>
*
* This software is released under the BSD license.
*/
package net.hagander.m... | /*
* MailMessage.java - This class holds an abstract base class for implementing a mailinglist-specific
* message with required identifiers and content.
*
* Copyright (C) 2010 Magnus Hagander <magnus@hagander.net>
*
* This software is released under the BSD license.
*/
package net.hagander.m... | Create new instances of strings, and truncate length of message contents | Create new instances of strings, and truncate length of message contents
This should drastically reduce memory consumption.
The new strings need to be created because the groups matched from regexps are
just pointers into the original string, meaning we left the whole old HTML string
around forever...
| Java | bsd-2-clause | mhagander/mailinglistmoderator |
8a137b66468dc78799cf559ac80f881f9edff632 | templates/Application.java | templates/Application.java | package ${packageName};
import org.springframework.bootstrap.SpringApplication;
import org.springframework.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
@ComponentScan
@EnableAutoConfiguration
public class Application {
public static void main(String[] args) ... | package ${packageName};
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
@ComponentScan
@EnableAutoConfiguration
public class Application {
public static void main(String[] args) ... | Fix packages in sample app | Fix packages in sample app
| Java | apache-2.0 | snicoll/initializr,bclozel/initializr,trifonnt/initializr,dejon97/initializr,gwidgets/gwt-project-generator,nevenc-pivotal/initializr,praseodym/initializr,MarkyMarkMcDonald/initializr,dejon97/initializr,bclozel/initializr,praseodym/initializr,dsyer/initializr,jadekler/initializr,trifonnt/initializr,Arsene07/forge,dejon... |
e2b320f83dc8aa78f570434f9b8729e5a2c1703a | poe4j/src/main/java/com/swandiggy/poe4j/data/readers/value/StringReader.java | poe4j/src/main/java/com/swandiggy/poe4j/data/readers/value/StringReader.java | package com.swandiggy.poe4j.data.readers.value;
import com.swandiggy.poe4j.data.DatFileReader;
import org.springframework.stereotype.Service;
/**
* Read a string value. Reads an int pointer into the variable width portion of the file. Strings are null terminated
* and encoded as UTF-16LE.
*
* @author Jacob Swanso... | package com.swandiggy.poe4j.data.readers.value;
import com.swandiggy.poe4j.data.DatFileReader;
import lombok.extern.slf4j.Slf4j;
/**
* Read a string value. Reads an int pointer into the variable width portion of the file. Strings are null terminated
* and encoded as UTF-16LE.
*
* @author Jacob Swanson
* @since 1... | Add check if string is at EOF | Add check if string is at EOF
| Java | mit | Jacob-Swanson/poe4j,Jacob-Swanson/poe4j,Jacob-Swanson/poe4j |
a67647cd4223edbe45aac191ce2c5cac3144710b | presto-hive/src/main/java/com/facebook/presto/hive/util/Types.java | presto-hive/src/main/java/com/facebook/presto/hive/util/Types.java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | Add checkType that takes an error code | Add checkType that takes an error code
| Java | apache-2.0 | bd-dev-mobileum/presto,bd-dev-mobileum/presto,bd-dev-mobileum/presto,bd-dev-mobileum/presto,bd-dev-mobileum/presto |
d72cca977e15415a117084df32d857896475d093 | src/main/java/com/nincraft/ninbot/components/twitch/TwitchAPI.java | src/main/java/com/nincraft/ninbot/components/twitch/TwitchAPI.java | package com.nincraft.ninbot.components.twitch;
import com.github.twitch4j.helix.TwitchHelix;
import lombok.extern.log4j.Log4j2;
import lombok.val;
import org.springframework.stereotype.Component;
import java.util.Arrays;
@Component
@Log4j2
public class TwitchAPI {
private TwitchHelix twitchHelix;
public Tw... | package com.nincraft.ninbot.components.twitch;
import com.github.twitch4j.helix.TwitchHelix;
import lombok.extern.log4j.Log4j2;
import lombok.val;
import org.springframework.stereotype.Component;
import java.util.Arrays;
@Component
@Log4j2
public class TwitchAPI {
private TwitchHelix twitchHelix;
public Tw... | Fix twitch api call for boxart | Fix twitch api call for boxart
| Java | mit | Nincodedo/Ninbot |
951af79f472830fbb70714288f733aed017557d8 | retry/src/main/java/org/killbill/billing/retry/plugin/api/RetryPluginApi.java | retry/src/main/java/org/killbill/billing/retry/plugin/api/RetryPluginApi.java | /*
* Copyright 2010-2013 Ning, Inc.
* Copyright 2014 Groupon, Inc
* Copyright 2014 The Billing Project, LLC
*
* The Billing Project 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 L... | /*
* Copyright 2010-2013 Ning, Inc.
* Copyright 2014 Groupon, Inc
* Copyright 2014 The Billing Project, LLC
*
* The Billing Project 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 L... | Add missing key to retryPlugin apis | Add missing key to retryPlugin apis
| Java | apache-2.0 | killbill/killbill-plugin-api,killbill/killbill-plugin-api |
fce96b88bf1183c7806835bb77e32551c17413ff | algorithms/insertion-sort/InsertionSort.java | algorithms/insertion-sort/InsertionSort.java | public class InsertionSort {
public static int[] sort(int[] array) {
for (int i = 1; i < array.length; i++) {
int item = array[i];
int indexHole = i;
while (indexHole > 0 && array[indexHole - 1] > item) {
array[indexHole] = array[--indexHole];
... | public class InsertionSort {
public static void sort(int[] array) {
for (int i = 1; i < array.length; i++) {
int item = array[i];
int indexHole = i;
while (indexHole > 0 && array[indexHole - 1] > item) {
array[indexHole] = array[--indexHole];
}... | Fix return type of insertion sort | Fix return type of insertion sort
| Java | mit | Tyriar/growing-with-the-web,gwtw/growing-with-the-web,Tyriar/growing-with-the-web,gwtw/growing-with-the-web |
8de401caadac92a1806811721c198e4fe87d7cd0 | engine/api/src/org/apache/cloudstack/storage/command/AttachAnswer.java | engine/api/src/org/apache/cloudstack/storage/command/AttachAnswer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Fix CLOUDSTACK-2520: Invoke parent constructor to set result state to default true to avoid attachVolume error. | Fix CLOUDSTACK-2520: Invoke parent constructor to set result state to
default true to avoid attachVolume error. | Java | apache-2.0 | GabrielBrascher/cloudstack,GabrielBrascher/cloudstack,wido/cloudstack,DaanHoogland/cloudstack,jcshen007/cloudstack,GabrielBrascher/cloudstack,jcshen007/cloudstack,GabrielBrascher/cloudstack,jcshen007/cloudstack,wido/cloudstack,mufaddalq/cloudstack-datera-driver,mufaddalq/cloudstack-datera-driver,mufaddalq/cloudstack-da... |
09a0bc84feaf5a29e420621f64f5ccd2119ec911 | core/src/main/java/org/museautomation/core/task/input/ResolvedInputSource.java | core/src/main/java/org/museautomation/core/task/input/ResolvedInputSource.java | package org.museautomation.core.task.input;
import org.museautomation.core.task.state.*;
/**
* @author Christopher L Merrill (see LICENSE.txt for license details)
*/
public abstract class ResolvedInputSource
{
public abstract String getDescription();
public static class TaskStateSource extends Resolved... | package org.museautomation.core.task.input;
import org.museautomation.core.task.state.*;
/**
* @author Christopher L Merrill (see LICENSE.txt for license details)
*/
public abstract class ResolvedInputSource
{
public abstract String getDescription();
public static class TaskStateSource extends Resolved... | Add UserInputSource as a InputProviderSource | [core] ENHANCE: Add UserInputSource as a InputProviderSource
| Java | apache-2.0 | ChrisLMerrill/muse,ChrisLMerrill/muse |
9ba64a49dbc7c212fde313516e3f9d8989a278fd | fm-workbench/resolute/com.rockwellcollins.atc.resolute.analysis/src/com/rockwellcollins/atc/resolute/analysis/execution/NamedElementComparator.java | fm-workbench/resolute/com.rockwellcollins.atc.resolute.analysis/src/com/rockwellcollins/atc/resolute/analysis/execution/NamedElementComparator.java | package com.rockwellcollins.atc.resolute.analysis.execution;
import java.util.Comparator;
import org.osate.aadl2.NamedElement;
public class NamedElementComparator implements Comparator<NamedElement> {
@Override
public int compare(NamedElement arg0, NamedElement arg1) {
if (arg0 == arg1) {
... | package com.rockwellcollins.atc.resolute.analysis.execution;
import java.util.Comparator;
import org.osate.aadl2.NamedElement;
import com.rockwellcollins.atc.resolute.analysis.values.NamedElementValue;
public class NamedElementComparator implements Comparator<NamedElement> {
@Override
public int compare(Nam... | Order based on name used in assurance case | Order based on name used in assurance case
| Java | bsd-3-clause | smaccm/smaccm,smaccm/smaccm,smaccm/smaccm,smaccm/smaccm,smaccm/smaccm,smaccm/smaccm,smaccm/smaccm,smaccm/smaccm |
d72cc1673fc105cd9d04cbaba814b58402c5e8f3 | src/openperipheral/integration/thermalexpansion/AdapterSecureTile.java | src/openperipheral/integration/thermalexpansion/AdapterSecureTile.java | package openperipheral.integration.thermalexpansion;
import java.util.Locale;
import openperipheral.api.*;
import cofh.api.tileentity.ISecureTile;
import cofh.api.tileentity.ISecureTile.AccessMode;
public class AdapterSecureTile implements IPeripheralAdapter {
@Override
public Class<?> getTargetClass() {
return... | package openperipheral.integration.thermalexpansion;
import java.util.Locale;
import openperipheral.api.*;
import cofh.api.tileentity.ISecureTile;
import cofh.api.tileentity.ISecureTile.AccessMode;
public class AdapterSecureTile implements IPeripheralAdapter {
@Override
public Class<?> getTargetClass() {
return... | Remove setAccess from TE Strongboxes | Remove setAccess from TE Strongboxes
setAccess can be used on TE Strongboxes to unlock someone else's chest, and then steal their items. | Java | mit | OpenMods/OpenPeripheral |
1e9e70351708e88d84bde1a969c0a957eb942fc0 | src/com/twu/biblioteca/BibliotecaApp.java | src/com/twu/biblioteca/BibliotecaApp.java | package com.twu.biblioteca;
public class BibliotecaApp {
public BibliotecaApp() {
System.out.println(welcomeMessage());
}
public static void main(String[] args) {
BibliotecaApp bibliotecaApp = new BibliotecaApp();
}
public String welcomeMessage() {
StringBuilder sb = new ... | package com.twu.biblioteca;
public class BibliotecaApp {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
public String welcomeMessage() {
return "";
}
} | Revert "Added a proper welcome message" | Revert "Added a proper welcome message"
This reverts commit 507fe8ba38124c71b2c4c4dfe38c5b2679891d17.
| Java | apache-2.0 | arunvelsriram/twu-biblioteca-arunvelsriram |
502fbeec0a81d71b10d96ebe3668a020b8ec06f0 | examples/hello_android/app/src/main/java/com/example/flutter/FlutterActivity.java | examples/hello_android/app/src/main/java/com/example/flutter/FlutterActivity.java | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package com.example.flutter;
import android.app.Activity;
import android.os.Bundle;
import org.chromium.base.PathUtils;
import org.domokit.sky.shell.Sky... | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package com.example.flutter;
import android.app.Activity;
import android.os.Bundle;
import org.chromium.base.PathUtils;
import org.domokit.sky.shell.Sky... | Update SkyApplication to SkyMain in the hello_android example | Update SkyApplication to SkyMain in the hello_android example
| Java | bsd-3-clause | tvolkert/flutter,tvolkert/flutter,turnidge/flutter,flutter/flutter,tvolkert/flutter,tvolkert/flutter,Hixie/flutter,aghassemi/flutter,Hixie/flutter,flutter/flutter,Hixie/flutter,cbracken/flutter,Hixie/flutter,tvolkert/flutter,tvolkert/flutter,flutter/flutter,Hixie/flutter,Hixie/flutter,tvolkert/flutter,flutter/flutter,t... |
49fa1187698fbc8dd1bd674eafcee05c2aa5b59b | domain/src/main/java/uk/gov/dvla/domain/EntitlementRestriction.java | domain/src/main/java/uk/gov/dvla/domain/EntitlementRestriction.java | package uk.gov.dvla.domain;
import com.google.code.morphia.annotations.Embedded;
import java.lang.String;
import java.util.Date;
@Embedded
public class EntitlementRestriction {
private String code;
private String text;
private Date validFrom;
private Date validTo;
private String categoryCode;
... | package uk.gov.dvla.domain;
import com.google.code.morphia.annotations.Embedded;
import java.lang.String;
import java.util.Date;
@Embedded
public class EntitlementRestriction {
private String code;
private String text;
private String categoryCode;
private Date validTo;
public EntitlementRestric... | Set validTo on Entitlement Restriction and calculated new directivestatus | Set validTo on Entitlement Restriction and calculated new directivestatus
| Java | mit | dvla/vdr-core |
511c4e8d1fe0af1c9d6624d456e8119ee04b21a3 | eclipse-project/src/com/stanfy/images/decorator/ChainDecorator.java | eclipse-project/src/com/stanfy/images/decorator/ChainDecorator.java | package com.stanfy.images.decorator;
import android.graphics.Bitmap;
import android.graphics.Canvas;
/**
* Chain of decorators.
* @author Roman Mazur (Stanfy - http://www.stanfy.com)
*/
public class ChainDecorator extends ImageDecoratorAdapter {
/** Internal decorators. */
private final ImageDecorator[] chain... | package com.stanfy.images.decorator;
import android.graphics.Bitmap;
import android.graphics.Canvas;
/**
* Chain of decorators.
* @author Roman Mazur (Stanfy - http://www.stanfy.com)
*/
public class ChainDecorator extends ImageDecoratorAdapter {
/** Internal decorators. */
private final ImageDecorator[] chain... | Fix state in chain decorator | Fix state in chain decorator
| Java | apache-2.0 | stanfy/enroscar,stanfy/enroscar |
08c4aae0df468d815f2f8d8b8ef6b98891577b38 | src/test/java/io/scalecube/gateway/websocket/WebsocketClientTransportTest.java | src/test/java/io/scalecube/gateway/websocket/WebsocketClientTransportTest.java | package io.scalecube.gateway.websocket;
import io.scalecube.gateway.clientsdk.ClientMessage;
import io.scalecube.gateway.clientsdk.ClientSettings;
import io.scalecube.gateway.clientsdk.codec.WebsocketGatewayMessageCodec;
import io.scalecube.gateway.clientsdk.websocket.WebsocketClientTransport;
import io.scalecube.serv... | package io.scalecube.gateway.websocket;
import io.scalecube.gateway.clientsdk.ClientMessage;
import io.scalecube.gateway.clientsdk.ClientSettings;
import io.scalecube.gateway.clientsdk.codec.WebsocketGatewayMessageCodec;
import io.scalecube.gateway.clientsdk.websocket.WebsocketClientTransport;
import io.scalecube.serv... | Update WebsocketHandler and WebsocketSession behavior | Update WebsocketHandler and WebsocketSession behavior
| Java | apache-2.0 | scalecube/scalecube,servicefabric/servicefabric,scalecube/scalecube |
2cdda44b239dd73ccd3f2d3424607fe708b3863d | driver/src/test/java/org/neo4j/driver/v1/tck/tck/util/DatabaseRule.java | driver/src/test/java/org/neo4j/driver/v1/tck/tck/util/DatabaseRule.java | /*
* Copyright (c) 2002-2018 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* 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) 2002-2018 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* 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.... | Fix skipping of TCK tests when boltkit unavailable | Fix skipping of TCK tests when boltkit unavailable
It failed because thrown exception was from JUnit 5. This commit
changes the exception to be from JUnit 4 API.
| Java | apache-2.0 | neo4j/neo4j-java-driver,neo4j/neo4j-java-driver,neo4j/neo4j-java-driver |
472b80b790ae0555a96591c1e9e6252445013c2a | log4j-core/src/test/java/org/apache/logging/log4j/core/net/SmtpManagerTest.java | log4j-core/src/test/java/org/apache/logging/log4j/core/net/SmtpManagerTest.java | package org.apache.logging.log4j.core.net;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
/**
* Unit tests for {@link SmtpManager}.
*/
class SmtpManagerTest {
@Test
void testCreateManagerName() {
String managerName = SmtpManager.createManagerName("t... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache license, Version 2.0
* (the "License"); you may n... | Add missing Apache license header. | Add missing Apache license header.
| Java | apache-2.0 | apache/logging-log4j2,apache/logging-log4j2,apache/logging-log4j2 |
18654ab7e61561be20545b22733d8f50e1916a92 | src/main/java/com/nulabinc/backlog4j/api/option/UpdateStatusParams.java | src/main/java/com/nulabinc/backlog4j/api/option/UpdateStatusParams.java | package com.nulabinc.backlog4j.api.option;
import com.nulabinc.backlog4j.http.NameValuePair;
/**
* Parameters for update status API.
*
* @author nulab-inc
*/
public class UpdateStatusParams extends PatchParams {
private Object projectIdOrKey;
private Object statusId;
public UpdateStatusParams(Object... | package com.nulabinc.backlog4j.api.option;
import com.nulabinc.backlog4j.Project;
import com.nulabinc.backlog4j.http.NameValuePair;
/**
* Parameters for update status API.
*
* @author nulab-inc
*/
public class UpdateStatusParams extends PatchParams {
private Object projectIdOrKey;
private Object statusId... | Fix type at color variable | Fix type at color variable
| Java | mit | nulab/backlog4j |
347bb9a7b192bea2affef9635730bc167504d214 | src/main/java/org/microworld/mangopay/entities/LegalPersonType.java | src/main/java/org/microworld/mangopay/entities/LegalPersonType.java | /**
* Copyright © 2015 MicroWorld (contact@microworld.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | /**
* Copyright © 2015 MicroWorld (contact@microworld.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Add new legal person types. | Add new legal person types.
| Java | apache-2.0 | MicroWorld/mangopay-client |
76c3fbd6510374e8eff83259dc51e094015d4b31 | java/src/main/java/org/rocksdb/ReadTier.java | java/src/main/java/org/rocksdb/ReadTier.java | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
package org.rocksdb;
/**
* RocksDB {@link ReadOptions} r... | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
package org.rocksdb;
/**
* RocksDB {@link ReadOptions} r... | Add Memtable Read Tier to RocksJava | Add Memtable Read Tier to RocksJava
Summary:
This options was introduced in the C++ API in #1953 .
Closes https://github.com/facebook/rocksdb/pull/3064
Differential Revision: D6139010
Pulled By: sagar0
fbshipit-source-id: 164de11d539d174cf3afe7cd40e667049f44b0bc
| Java | bsd-3-clause | SunguckLee/RocksDB,Andymic/rocksdb,bbiao/rocksdb,bbiao/rocksdb,Andymic/rocksdb,SunguckLee/RocksDB,SunguckLee/RocksDB,SunguckLee/RocksDB,Andymic/rocksdb,SunguckLee/RocksDB,SunguckLee/RocksDB,SunguckLee/RocksDB,SunguckLee/RocksDB,bbiao/rocksdb,Andymic/rocksdb,bbiao/rocksdb,bbiao/rocksdb,Andymic/rocksdb,Andymic/rocksdb,bb... |
2c7afa471c11b080ae13868d91cd128b8bfcec8c | src/main/java/org/cyclops/integrateddynamics/network/VariablestoreNetworkElement.java | src/main/java/org/cyclops/integrateddynamics/network/VariablestoreNetworkElement.java | package org.cyclops.integrateddynamics.network;
import org.cyclops.cyclopscore.datastructure.DimPos;
import org.cyclops.integrateddynamics.api.network.IPartNetwork;
import org.cyclops.integrateddynamics.core.network.TileNetworkElement;
import org.cyclops.integrateddynamics.tileentity.TileVariablestore;
/**
* Network... | package org.cyclops.integrateddynamics.network;
import org.cyclops.cyclopscore.datastructure.DimPos;
import org.cyclops.integrateddynamics.api.network.IPartNetwork;
import org.cyclops.integrateddynamics.core.network.TileNetworkElement;
import org.cyclops.integrateddynamics.tileentity.TileVariablestore;
/**
* Network... | Fix variable store breaking crash | Fix variable store breaking crash
| Java | mit | CyclopsMC/IntegratedDynamics |
8215e4ed702c7217ced47833895b8818e5cc9c7e | src/test/java/at/ac/tuwien/inso/integration_tests/StudentRecommendedCoursesTests.java | src/test/java/at/ac/tuwien/inso/integration_tests/StudentRecommendedCoursesTests.java | package at.ac.tuwien.inso.integration_tests;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.sprin... | package at.ac.tuwien.inso.integration_tests;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import or... | Add tests for RecommendedCourses and Dismiss course | Add tests for RecommendedCourses and Dismiss course
| Java | mit | university-information-system/uis,university-information-system/uis,university-information-system/uis,university-information-system/uis |
b1e2a8a67916dfe448349f476c3e5bdd59ae797c | TestUtils/src/main/java/com/braintreepayments/testutils/BraintreeActivityTestRule.java | TestUtils/src/main/java/com/braintreepayments/testutils/BraintreeActivityTestRule.java | package com.braintreepayments.testutils;
import android.app.Activity;
import android.app.KeyguardManager;
import android.content.Context;
import android.support.test.espresso.intent.Intents;
import android.support.test.rule.ActivityTestRule;
import static android.support.test.InstrumentationRegistry.getTargetContext;... | package com.braintreepayments.testutils;
import android.app.Activity;
import android.app.KeyguardManager;
import android.app.KeyguardManager.KeyguardLock;
import android.content.Context;
import android.support.test.espresso.intent.Intents;
import android.support.test.rule.ActivityTestRule;
import static android.suppo... | Fix incorrect test failures and Keyguard leaks | Fix incorrect test failures and Keyguard leaks
| Java | mit | braintree/braintree_android,braintree/braintree_android,braintree/braintree_android,braintree/braintree_android |
82207ee5996be5d1355ba2e9ad920852c2defffc | mobile/src/main/java/com/chaos/databinding/presenters/ActivityMainPresenter.java | mobile/src/main/java/com/chaos/databinding/presenters/ActivityMainPresenter.java | package com.chaos.databinding.presenters;
import com.chaos.databinding.models.User;
import com.chaos.databinding.views.UserView;
public class ActivityMainPresenter {
private final UserView view;
public ActivityMainPresenter(final UserView view) {
this.view = view;
}
public static ActivityMai... | package com.chaos.databinding.presenters;
import com.chaos.databinding.models.User;
import com.chaos.databinding.services.GitHub;
import com.chaos.databinding.views.UserView;
import retrofit.RestAdapter;
public class ActivityMainPresenter {
private static final String GITHUB_API = "https://api.github.com";
... | Create presenter with GitHub service | Create presenter with GitHub service
| Java | apache-2.0 | ashdavies/data-binding,jandrop/data-binding |
b60e2df1c2ec1931835592a1a4c5aaa9d754845d | src/main/java/org/gbif/common/messaging/api/messages/PipelinesInterpretationMessage.java | src/main/java/org/gbif/common/messaging/api/messages/PipelinesInterpretationMessage.java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | Create runner interface for yarn/java messages | Create runner interface for yarn/java messages
| Java | apache-2.0 | gbif/postal-service |
b61afbc52de6a7183b7a5cb418c12da7177fa72d | core/src/net/mostlyoriginal/game/system/drag/GridOverlapHelperSystem.java | core/src/net/mostlyoriginal/game/system/drag/GridOverlapHelperSystem.java | package net.mostlyoriginal.game.system.drag;
import com.artemis.Aspect;
import com.artemis.Entity;
import com.artemis.EntitySystem;
import com.artemis.World;
import com.artemis.annotations.Wire;
import com.artemis.utils.IntBag;
import net.mostlyoriginal.api.system.physics.CollisionSystem;
import net.mostlyoriginal.gam... | package net.mostlyoriginal.game.system.drag;
import com.artemis.Aspect;
import com.artemis.Entity;
import com.artemis.EntitySystem;
import com.artemis.World;
import com.artemis.annotations.Wire;
import com.artemis.utils.IntBag;
import net.mostlyoriginal.api.system.physics.CollisionSystem;
import net.mostlyoriginal.gam... | Fix draggability on top of other conveyers. | Fix draggability on top of other conveyers.
| Java | mit | thecocce/odb-minion-factorium,DaanVanYperen/odb-minion-factorium,thecocce/odb-minion-factorium,DaanVanYperen/odb-minion-factorium,thecocce/odb-minion-factorium,DaanVanYperen/odb-minion-factorium |
4a6aaf8f2fec2dd9025030102851408ac993fa7d | client-common/src/main/java/org/realityforge/replicant/client/AggregateEntityLocator.java | client-common/src/main/java/org/realityforge/replicant/client/AggregateEntityLocator.java | package org.realityforge.replicant.client;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import static org.realityforge.braincheck.Guards.*;
/**
* A basic EntityLocator implementation that allows explicit per-type registration
*/
public class A... | package org.realityforge.replicant.client;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import static org.realityforge.braincheck.Guards.*;
/**
* A basic EntityLocator implementation that allows explicit per-type registration
*/
public class A... | Make it possible to register the locators via the constructor | Make it possible to register the locators via the constructor
| Java | apache-2.0 | realityforge/replicant,realityforge/replicant |
fa549ae7878d7d70f70ee4c351caf06ab9e3c011 | fili-core/src/main/java/com/yahoo/bard/webservice/druid/model/metadata/ShardSpecMixIn.java | fili-core/src/main/java/com/yahoo/bard/webservice/druid/model/metadata/ShardSpecMixIn.java | // Copyright 2016 Yahoo Inc.
// Licensed under the terms of the Apache license. Please see LICENSE.md file distributed with this work for terms.
package com.yahoo.bard.webservice.druid.model.metadata;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import io... | // Copyright 2016 Yahoo Inc.
// Licensed under the terms of the Apache license. Please see LICENSE.md file distributed with this work for terms.
package com.yahoo.bard.webservice.druid.model.metadata;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import io... | Add support for linear ShardSpecs | Add support for linear ShardSpecs
| Java | apache-2.0 | yahoo/fili,yahoo/fili,yahoo/fili |
aaaef2fb2f348eb7ba8c0b075cec195f81d39765 | model-implementation/src/main/java/org/verapdf/model/impl/pb/external/PBoxFontProgram.java | model-implementation/src/main/java/org/verapdf/model/impl/pb/external/PBoxFontProgram.java | package org.verapdf.model.impl.pb.external;
import org.apache.pdfbox.pdmodel.common.PDStream;
import org.verapdf.model.external.FontProgram;
/**
* @author Timur Kamalov
*/
public class PBoxFontProgram extends PBoxExternal implements FontProgram {
public static final String FONT_PROGRAM_TYPE = "FontProgram";
pri... | package org.verapdf.model.impl.pb.external;
import org.apache.pdfbox.pdmodel.common.PDStream;
import org.verapdf.model.external.FontProgram;
/**
* @author Timur Kamalov
*/
public class PBoxFontProgram extends PBoxExternal implements FontProgram {
public static final String FONT_PROGRAM_TYPE = "FontProgram";
pri... | Fix for recent changes in the model (just removed two methods). | Fix for recent changes in the model (just removed two methods).
| Java | mpl-2.0 | carlwilson/veraPDF-library |
d47024fda177dc40ed6fd1989cecdc1b90562bed | jsimpledb-parse/src/main/java/org/jsimpledb/parse/expr/VarValue.java | jsimpledb-parse/src/main/java/org/jsimpledb/parse/expr/VarValue.java |
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package org.jsimpledb.parse.expr;
import com.google.common.base.Preconditions;
import org.jsimpledb.parse.ParseSession;
/**
* {@link Value} that represents a {@link ParseSession} variable.
*
* @see ParseSession#getVars
*/
public class VarValue ... |
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package org.jsimpledb.parse.expr;
import com.google.common.base.Preconditions;
import org.jsimpledb.parse.ParseSession;
/**
* {@link Value} that represents a {@link ParseSession} variable.
*
* @see ParseSession#getVars
*/
public class VarValue ... | Refresh retrieved CLI session variables. | Refresh retrieved CLI session variables.
| Java | apache-2.0 | permazen/permazen,archiecobbs/jsimpledb,permazen/permazen,permazen/permazen,archiecobbs/jsimpledb,archiecobbs/jsimpledb |
07dd5eff0b7e24be0a55a2a3df2e8db1f60e361b | zkfacade/src/main/java/com/yahoo/vespa/curator/package-info.java | zkfacade/src/main/java/com/yahoo/vespa/curator/package-info.java | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
@ExportPackage
@PublicApi // TODO: Revoke this on Vespa 8.
package com.yahoo.vespa.curator;
import com.yahoo.api.annotations.PublicApi;
import com.yahoo.osgi.annotation.ExportPackage;
| // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
@ExportPackage
package com.yahoo.vespa.curator;
import com.yahoo.osgi.annotation.ExportPackage;
| Revoke package c.y.vespa.curator from PublicApi | Revoke package c.y.vespa.curator from PublicApi
- Probably just used internally.
| 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 |
bedb7de45b2ce1ce3895afcc70a21425d8785a19 | src/org/rustidea/psi/types/RsStubElementTypes.java | src/org/rustidea/psi/types/RsStubElementTypes.java | /*
* Copyright 2015 Marek Kaput
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | /*
* Copyright 2015 Marek Kaput
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | Sort stub element type definitions | Sort stub element type definitions
| Java | apache-2.0 | jajakobyly/rustidea,jajakobyly/rustidea |
1fb60ce939e6bd573a12a674eb2303128267fd7c | processor/src/test/resources/bad_input/com/example/inverse/MissingInverseOnReferenceModel.java | processor/src/test/resources/bad_input/com/example/inverse/MissingInverseOnReferenceModel.java | package com.example.inverse;
import arez.annotations.ArezComponent;
import arez.annotations.Inverse;
import arez.annotations.Observable;
import arez.annotations.Reference;
import arez.annotations.ReferenceId;
import java.util.Collection;
public class MissingInverseOnReferenceModel
{
@ArezComponent
static abstract... | package com.example.inverse;
import arez.annotations.ArezComponent;
import arez.annotations.Inverse;
import arez.annotations.Observable;
import arez.annotations.Reference;
import arez.annotations.ReferenceId;
import java.util.Collection;
public class MissingInverseOnReferenceModel
{
@ArezComponent
static abstract... | Reorder classes to ensure compiler operates in correct order | Reorder classes to ensure compiler operates in correct order
| Java | apache-2.0 | realityforge/arez,realityforge/arez,realityforge/arez |
25de491657fc33ff3d88792b159c5492066b88ae | jphp-core/src/org/develnext/jphp/core/tokenizer/token/expr/operator/LogicOperatorExprToken.java | jphp-core/src/org/develnext/jphp/core/tokenizer/token/expr/operator/LogicOperatorExprToken.java | package org.develnext.jphp.core.tokenizer.token.expr.operator;
import php.runtime.common.Association;
import org.develnext.jphp.core.tokenizer.TokenType;
import org.develnext.jphp.core.tokenizer.TokenMeta;
import org.develnext.jphp.core.tokenizer.token.Token;
import org.develnext.jphp.core.tokenizer.token.expr.ExprTok... | package org.develnext.jphp.core.tokenizer.token.expr.operator;
import php.runtime.common.Association;
import org.develnext.jphp.core.tokenizer.TokenType;
import org.develnext.jphp.core.tokenizer.TokenMeta;
import org.develnext.jphp.core.tokenizer.token.Token;
import org.develnext.jphp.core.tokenizer.token.expr.ExprTok... | Fix npe in syntax analyzer in logic operators. | Fix npe in syntax analyzer in logic operators.
| Java | apache-2.0 | jphp-compiler/jphp,jphp-compiler/jphp,jphp-compiler/jphp,jphp-compiler/jphp |
7f98ee6957ce29c52da4a0d913170523a2a2f449 | porting-package/src/main/java/org/jboss/webbeans/tck/StandaloneContainersImpl.java | porting-package/src/main/java/org/jboss/webbeans/tck/StandaloneContainersImpl.java | package org.jboss.webbeans.tck;
import java.lang.annotation.Annotation;
import java.util.Arrays;
import java.util.List;
import javax.inject.manager.Manager;
import org.jboss.jsr299.tck.api.DeploymentException;
import org.jboss.jsr299.tck.spi.StandaloneContainers;
import org.jboss.webbeans.ManagerImpl;
import org.jbo... | package org.jboss.webbeans.tck;
import java.lang.annotation.Annotation;
import java.net.URL;
import java.util.List;
import org.jboss.jsr299.tck.api.DeploymentException;
import org.jboss.jsr299.tck.spi.StandaloneContainers;
import org.jboss.webbeans.ManagerImpl;
import org.jboss.webbeans.mock.MockBootstrap;
import org... | Support for reading deployment types from beans.xml | Support for reading deployment types from beans.xml
git-svn-id: 811cd8a17a8c3c0c263af499002feedd54a892d0@1531 1c488680-804c-0410-94cd-c6b725194a0e
| Java | apache-2.0 | antoinesd/weld-core,manovotn/core,antoinesd/weld-core,antoinesd/weld-core,weld/core,manovotn/core,manovotn/core,weld/core |
c0595b7f31ef5df5246a565c8bb6bcd9d1a7fe5b | core/src/main/java/com/yandex/yoctodb/query/simple/SimpleNotCondition.java | core/src/main/java/com/yandex/yoctodb/query/simple/SimpleNotCondition.java | /*
* (C) YANDEX LLC, 2014-2015
*
* The Source Code called "YoctoDB" available at
* https://bitbucket.org/yandex/yoctodb is subject to the terms of the
* Mozilla Public License, v. 2.0 (hereinafter referred to as the "License").
*
* A copy of the License is also available at http://mozilla.org/MPL/2.0/.
*/
pack... | /*
* (C) YANDEX LLC, 2014-2015
*
* The Source Code called "YoctoDB" available at
* https://bitbucket.org/yandex/yoctodb is subject to the terms of the
* Mozilla Public License, v. 2.0 (hereinafter referred to as the "License").
*
* A copy of the License is also available at http://mozilla.org/MPL/2.0/.
*/
pack... | Allow to use not with general conditions | Allow to use not with general conditions
| Java | mpl-2.0 | incubos/yoctodb |
7ea829911d16e63c873330a15e5271fd7fa5da5b | lock-contention/LockContention.java | lock-contention/LockContention.java | import java.util.Random;
public class LockContention {
static Random randomGen = new Random();
static int NTHREAD = 100;
static public void main(String args[]) {
Runnable task = () -> {
for (int i = 0; i < 10000000; i++)
randomGen.nextInt(1000);
};
... | import java.util.Random;
public class LockContention {
static Random randomGen = new Random();
static int NTHREAD = 7;
static Object lock = new Object();
static int counter = 0;
static public void main(String args[]) {
Runnable task = () -> {
for (int i = 0; i < 10000... | Use sleep rather than Random | Use sleep rather than Random
| Java | apache-2.0 | dspinellis/effective-debugging,dspinellis/effective-debugging,dspinellis/effective-debugging,dspinellis/effective-debugging,dspinellis/effective-debugging |
10f19471a815908fa93912b031d449e16f5bc67f | test-common/src/main/java/com/gentics/mesh/test/docker/ElasticsearchContainer.java | test-common/src/main/java/com/gentics/mesh/test/docker/ElasticsearchContainer.java | package com.gentics.mesh.test.docker;
import java.nio.charset.Charset;
import java.time.Duration;
import java.util.Collections;
import org.apache.commons.io.IOUtils;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.containers.wait.Wait;
import org.testcontainers.images.builder.ImageFro... | package com.gentics.mesh.test.docker;
import java.time.Duration;
import java.util.Collections;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.containers.wait.strategy.HttpWaitStrategy;
/**
* Testcontainer for a non-clustered Elasticsearch instance.
*/
public class ElasticsearchCon... | Use pre-build docker image for ES and bump ES version to 6.6.1 | Use pre-build docker image for ES and bump ES version to 6.6.1
| Java | apache-2.0 | gentics/mesh,gentics/mesh,gentics/mesh,gentics/mesh |
64f790dfedb9f03afbc0d1ae3c31d42024551688 | airline-web-archetype/src/main/resources/archetype-resources/src/main/java/AirlineRestClient.java | airline-web-archetype/src/main/resources/archetype-resources/src/main/java/AirlineRestClient.java | #set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package};
import edu.pdx.cs410J.web.HttpRequestHelper;
import java.io.IOException;
/**
* A helper class for accessing the rest client
*/
public class AirlineRestClient extends HttpRequestHelper
{
private static fina... | #set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package};
import edu.pdx.cs410J.web.HttpRequestHelper;
import java.io.IOException;
/**
* A helper class for accessing the rest client. Note that this class provides
* an example of how to make gets and posts to a URL. ... | Add a comment instructing the student to make changes to this code. | Add a comment instructing the student to make changes to this code.
| Java | apache-2.0 | DavidWhitlock/PortlandStateJava,DavidWhitlock/PortlandStateJava |
909787b3d913979cee2f0d171e8f4fa13cc01513 | OpERP/src/main/java/devopsdistilled/operp/client/abstracts/CreateEntityPaneController.java | OpERP/src/main/java/devopsdistilled/operp/client/abstracts/CreateEntityPaneController.java | package devopsdistilled.operp.client.abstracts;
import devopsdistilled.operp.client.items.exceptions.EntityNameExistsException;
import devopsdistilled.operp.client.items.exceptions.NullFieldException;
import devopsdistilled.operp.server.data.entity.Entiti;
public interface CreateEntityPaneController<E extends Entiti<... | package devopsdistilled.operp.client.abstracts;
import devopsdistilled.operp.server.data.entity.Entiti;
public interface CreateEntityPaneController<E extends Entiti<?>> extends
SubTaskPaneController {
public void validate(E entity) throws Exception;
public E save(E entity);
}
| Change validate() signature (i.e throws Exception) | Change validate() signature (i.e throws Exception)
OPEN - task 66: Update Item functionalities implementation
http://github.com/DevOpsDistilled/OpERP/issues/issue/66 | Java | mit | DevOpsDistilled/OpERP,njmube/OpERP |
9b7c14c753487869be930dcda49c530f549ae669 | core/src/main/java/org/theultimatedeployer/enforcer/editorconfig/check/EOLCheckConfig.java | core/src/main/java/org/theultimatedeployer/enforcer/editorconfig/check/EOLCheckConfig.java | package org.theultimatedeployer.enforcer.editorconfig.check;
/**
* Created by chris on 20.09.16.
*/
public class EOLCheckConfig implements CheckConfig{
public static final int SYSTEM = 0;
public static final int UNIX = 1;
public static final int WINDOWS = 2;
// MAC OS X now uses UNIX -> old apple ;-)
p... | package org.theultimatedeployer.enforcer.editorconfig.check;
/**
* Created by chris on 20.09.16.
*/
public class EOLCheckConfig implements CheckConfig{
public static final int SYSTEM = 0;
public static final int UNIX = 1;
public static final int WINDOWS = 2;
// MAC OS X now uses UNIX -> old apple ;-)
p... | Use "os" as valid constant for SYSTEM EOL check | Use "os" as valid constant for SYSTEM EOL check
| Java | apache-2.0 | TheUltimateDeployer/EditorConfigMavenEnforcer |
102c330579d9f9625259eefde983826adb9bc6fa | extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/AgroalRuntimeConfig.java | extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/AgroalRuntimeConfig.java | package io.quarkus.agroal.runtime;
import java.util.Map;
import io.quarkus.runtime.annotations.ConfigItem;
import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;
@ConfigRoot(name = "datasource", phase = ConfigPhase.RUN_TIME)
public class AgroalRuntimeConfig {
/**
... | package io.quarkus.agroal.runtime;
import java.util.Map;
import io.quarkus.runtime.annotations.ConfigDocMapKey;
import io.quarkus.runtime.annotations.ConfigDocSection;
import io.quarkus.runtime.annotations.ConfigItem;
import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;... | Tweak Agroal configuration reference documentation | Tweak Agroal configuration reference documentation
| Java | apache-2.0 | quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus |
8bccf7926f84a8fa068a3d816a0fb75ee2748793 | app/src/main/java/com/biotronisis/pettplant/type/EntrainmentMode.java | app/src/main/java/com/biotronisis/pettplant/type/EntrainmentMode.java | package com.biotronisis.pettplant.type;
/**
* Created by john on 6/16/15.
*/
public enum EntrainmentMode {
oldMEDITATE(0),
oldSLEEP(1),
oldSTAY_AWAKE(2);
// Run/Stop button values
// public static final String RUN = "Run";
// public static final String STOP = "Stop";
// Pause/Resume button valu... | package com.biotronisis.pettplant.type;
//public enum EntrainmentMode {
// oldMEDITATE(0),
// oldSLEEP(1),
// oldSTAY_AWAKE(2);
// Run/Stop button values
// public static final String RUN = "Run";
// public static final String STOP = "Stop";
// Pause/Resume button values
// public static final Str... | Delete auto generated comments. Comment out the entire file. | Delete auto generated comments.
Comment out the entire file.
| Java | mit | johnvs/PETT_Plant_Android |
251d93f45709bf8d8022a33a779dad7c3b61e4b7 | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxIteratorRecentItems.java | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxIteratorRecentItems.java | package com.box.androidsdk.content.models;
/**
* A class representing list of BoxRecentItem's
*/
public class BoxIteratorRecentItems extends BoxIterator<BoxRecentItem> {
private static final long serialVersionUID = -2642748896882484555L;
private transient BoxJsonObjectCreator<BoxRecentItem> representationCr... | package com.box.androidsdk.content.models;
import com.eclipsesource.json.JsonObject;
/**
* A class representing list of BoxRecentItem's
*/
public class BoxIteratorRecentItems extends BoxIterator<BoxRecentItem> {
private static final long serialVersionUID = -2642748896882484555L;
private transient BoxJsonOb... | Store the GET response in levelDB and populate the UI | AND-7057: Store the GET response in levelDB and populate the UI
Creating necessary constuctors for BoxIteratorRecentItems
| Java | apache-2.0 | box/box-android-sdk,seema-at-box/box-android-sdk,box/box-android-sdk,seema-at-box/box-android-sdk,box/box-android-sdk,seema-at-box/box-android-sdk |
55664832cbd78db3f7ce115d2cddfbe489eb5c17 | src/test/java/de/retest/recheck/ignore/SearchFilterFilesTest.java | src/test/java/de/retest/recheck/ignore/SearchFilterFilesTest.java | package de.retest.recheck.ignore;
import static org.assertj.core.api.Assertions.assertThat;
import java.io.File;
import java.util.List;
import org.junit.jupiter.api.Test;
class SearchFilterFilesTest {
@Test
void getDefaultFilterFiles_should_get_all_filter_files_from_classpath() {
final List<File> defaultFilter... | package de.retest.recheck.ignore;
import static de.retest.recheck.configuration.ProjectConfiguration.FILTER_FOLDER;
import static de.retest.recheck.configuration.ProjectConfiguration.RETEST_PROJECT_CONFIG_FOLDER;
import static de.retest.recheck.configuration.ProjectConfiguration.RETEST_PROJECT_ROOT;
import static de.r... | Test the behavior of the method | Test the behavior of the method
| Java | agpl-3.0 | retest/recheck,retest/recheck |
df0a25af103f2d169e730e69b7254b4fcf78d327 | src/main/java/com/google/devtools/build/lib/buildtool/buildevent/ExecutionStartingEvent.java | src/main/java/com/google/devtools/build/lib/buildtool/buildevent/ExecutionStartingEvent.java | // Copyright 2014 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | // Copyright 2014 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | Remove dependency on ExecutionTool to break a build cycle. | Remove dependency on ExecutionTool to break a build cycle.
PiperOrigin-RevId: 304627771
| Java | apache-2.0 | bazelbuild/bazel,cushon/bazel,katre/bazel,safarmer/bazel,meteorcloudy/bazel,meteorcloudy/bazel,cushon/bazel,katre/bazel,akira-baruah/bazel,twitter-forks/bazel,werkt/bazel,bazelbuild/bazel,davidzchen/bazel,davidzchen/bazel,perezd/bazel,dslomov/bazel,akira-baruah/bazel,akira-baruah/bazel,perezd/bazel,meteorcloudy/bazel,B... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.