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 |
|---|---|---|---|---|---|---|---|---|---|
32d8ff6e69cceff29b66ce93afaa2f6e6372204c | src/main/java/io/mkremins/whydah/interpreter/Scope.java | src/main/java/io/mkremins/whydah/interpreter/Scope.java | package io.mkremins.whydah.interpreter;
import io.mkremins.whydah.ast.Expression;
import io.mkremins.whydah.ast.ExpressionUtils;
import java.util.HashMap;
import java.util.Map;
public class Scope {
private final Map<String, Expression> vars;
private final Scope parent;
public Scope(final Scope parent) {
vars ... | package io.mkremins.whydah.interpreter;
import io.mkremins.whydah.ast.Expression;
import io.mkremins.whydah.ast.ExpressionUtils;
import java.util.HashMap;
import java.util.Map;
public class Scope {
private final Map<String, Expression> vars;
private final Scope parent;
public Scope(final Scope parent) {
vars ... | Make project Java 6 compliant | Make project Java 6 compliant
| Java | mit | mkremins/whydah |
f03904d394db8fc979e97657874e35c13ce88d2b | scim/src/main/java/org/gluu/oxtrust/model/scim2/ListResponse.java | scim/src/main/java/org/gluu/oxtrust/model/scim2/ListResponse.java | package org.gluu.oxtrust.model.scim2;
import java.util.ArrayList;
import java.util.List;
/**
* @author Rahat Ali Date: 05.08.2015
* Udpated by jgomer on 2017-10-01.
*/
public class ListResponse {
private int totalResults;
private int startIndex;
private int itemsPerPage;
private List<BaseScimReso... | package org.gluu.oxtrust.model.scim2;
import java.util.ArrayList;
import java.util.List;
/**
* @author Rahat Ali Date: 05.08.2015
* Udpated by jgomer on 2017-10-01.
*/
public class ListResponse {
private int totalResults;
private int startIndex;
private int itemsPerPage;
private List<BaseScimReso... | Add total results to class constructor | Add total results to class constructor
| Java | mit | madumlao/oxTrust,madumlao/oxTrust,GluuFederation/oxTrust,GluuFederation/oxTrust,madumlao/oxTrust,madumlao/oxTrust,GluuFederation/oxTrust,madumlao/oxTrust,GluuFederation/oxTrust,GluuFederation/oxTrust |
ba6051284a9b00137b46cc1b8af1c7fcb0fbea01 | app/src/unitTests/java/io/github/plastix/forage/data/local/RealmLocationTest.java | app/src/unitTests/java/io/github/plastix/forage/data/local/RealmLocationTest.java | package io.github.plastix.forage.data.local;
import android.location.Location;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import io.github.plastix.forage.ForageRoboelectricUnitTestRunner;
import io.github.plastix.forage.data.local.model.RealmLocation;
import static com.google.c... | package io.github.plastix.forage.data.local;
import android.location.Location;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMock... | Switch to PowerMock for RealmLocation unit tests | Switch to PowerMock for RealmLocation unit tests
| Java | mpl-2.0 | Plastix/Forage,Plastix/Forage |
d068c45ce22c5dc52ea7a3fe254fd1c4e46b15af | samples/CovariantReturns.java | samples/CovariantReturns.java | /*
* Copyright 2020 The jspecify Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | /*
* Copyright 2020 The jspecify Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | Test that annotations are not inherited. | Test that annotations are not inherited.
| Java | apache-2.0 | jspecify/jspecify |
6946e7605707bc763278d75437f8298189861e8d | clients/unshaded/src/test/java/tachyon/client/ClientUtilsTest.java | clients/unshaded/src/test/java/tachyon/client/ClientUtilsTest.java | /*
* Licensed to the University of California, Berkeley under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may no... | /*
* Licensed to the University of California, Berkeley under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may no... | Fix checkstyle errors originating out of changes | [TACHYON-1559] Fix checkstyle errors originating out of changes
| Java | apache-2.0 | wwjiang007/alluxio,maboelhassan/alluxio,bf8086/alluxio,PasaLab/tachyon,wwjiang007/alluxio,WilliamZapata/alluxio,EvilMcJerkface/alluxio,bf8086/alluxio,calvinjia/tachyon,PasaLab/tachyon,uronce-cc/alluxio,jsimsa/alluxio,apc999/alluxio,aaudiber/alluxio,Alluxio/alluxio,maobaolong/alluxio,Alluxio/alluxio,bf8086/alluxio,uronc... |
7334ff6e22f7bd2967d895f186ada73f1c9021ce | src/main/java/com/nmuzychuk/blog/model/Post.java | src/main/java/com/nmuzychuk/blog/model/Post.java | package com.nmuzychuk.blog.model;
import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;
/**
* Simple object representing a post.
*/
@Entity
public class Post {
@ManyToOne
private User user;
@Id
@GeneratedValue
private Long id;
private String title;
private String ... | package com.nmuzychuk.blog.model;
import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;
/**
* Simple object representing a post.
*/
@Entity
public class Post {
@ManyToOne
private User user;
@Id
@GeneratedValue
private Long id;
private String title;
@Lob
priva... | Update post body data type | Update post body data type
| Java | mit | nmuzychuk/blog-api |
396ccdb89314781cd465abb80841596945db56d9 | RegExpSupport/src/org/intellij/lang/regexp/RegExpRangeProvider.java | RegExpSupport/src/org/intellij/lang/regexp/RegExpRangeProvider.java | /*
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | /*
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Check regexp intention action language detection fix | Check regexp intention action language detection fix
| Java | apache-2.0 | fengbaicanhe/intellij-community,ol-loginov/intellij-community,pwoodworth/intellij-community,nicolargo/intellij-community,muntasirsyed/intellij-community,allotria/intellij-community,blademainer/intellij-community,vladmm/intellij-community,diorcety/intellij-community,izonder/intellij-community,wreckJ/intellij-community,v... |
8f6373fe300e994fc69f89913a22d5862730acdd | src/main/java/com/github/arteam/dropwizard/http2/client/JettyHttpClientBuilder.java | src/main/java/com/github/arteam/dropwizard/http2/client/JettyHttpClientBuilder.java | package com.github.arteam.dropwizard.http2.client;
import io.dropwizard.setup.Environment;
import org.eclipse.jetty.client.HttpClient;
/**
* Date: 11/26/15
* Time: 10:22 AM
* <p>
* A builder for {@link HttpClient}. It builds an instance from an external
* configuration and ties it to Dropwizard environment.
*
... | package com.github.arteam.dropwizard.http2.client;
import com.google.common.base.Strings;
import io.dropwizard.setup.Environment;
import org.eclipse.jetty.client.HttpClient;
import org.eclipse.jetty.http.HttpField;
import org.eclipse.jetty.http.HttpHeader;
/**
* Date: 11/26/15
* Time: 10:22 AM
* <p>
* A builder f... | Set user-agent from the client's name | Set user-agent from the client's name
| Java | apache-2.0 | arteam/dropwizard-http2-client |
8cb072590831370ee51de42aa308d81b5cd522c6 | src/main/java/com/alexrnl/request/shows/ShowArchive.java | src/main/java/com/alexrnl/request/shows/ShowArchive.java | package com.alexrnl.request.shows;
import java.util.HashMap;
import java.util.Map;
import com.alexrnl.request.Request;
import com.alexrnl.request.Verb;
/**
* Archive a show in the logged member account.<br />
* @author Alex
*/
public class ShowArchive extends Request {
/** Address of the method */
private sta... | package com.alexrnl.request.shows;
import java.util.HashMap;
import java.util.Map;
import com.alexrnl.request.Request;
import com.alexrnl.request.Verb;
/**
* Archive a show in the logged member account.<br />
* @author Alex
*/
public class ShowArchive extends Request {
/** Address of the method */
private sta... | Make the id of the show an Integer | Make the id of the show an Integer
| Java | bsd-3-clause | AlexRNL/jSeries |
b058b68a36832e665dc10e304a23579be943648d | src/main/java/org/scribe/model/Verb.java | src/main/java/org/scribe/model/Verb.java | package org.scribe.model;
/**
* An enumeration containing the most common HTTP Verbs.
*
* @author Pablo Fernandez
*/
public enum Verb
{
GET, POST, PUT, DELETE
}
| package org.scribe.model;
/**
* An enumeration containing the most common HTTP Verbs.
*
* @author Pablo Fernandez
*/
public enum Verb
{
GET, POST, PUT, DELETE, HEAD, OPTIONS, TRACE, PATCH
}
| Add support for HEAD, OPTIONS, TRACE and PATCH | Add support for HEAD, OPTIONS, TRACE and PATCH
| Java | mit | timvoet/scribe-java,matsumo/scribe-java,dsyer/scribe-java,visun/scribeoauth,cruiser/scribe-java,developez/scribe-java,ludovicc/scribe-java,mcxiaoke/oauth-simple,joelittlejohn/scribe-java,mebigfatguy/scribe-java,krishna-satyamurthy-hp-com/scribe-java,Kuohong/scribe-java,fengshao0907/scribe-java,allenj/scribe-java,pratik... |
51eb9b5041c23d329b12ae7111d88c5833f86570 | src/com/facebook/buck/core/rules/analysis/RuleAnalysisException.java | src/com/facebook/buck/core/rules/analysis/RuleAnalysisException.java | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | Add second constructor for already formed string | Add second constructor for already formed string
Summary: When catching an exception that has formatting chars in it, we can run into issues if we try to format again
Reviewed By: cjhopman
shipit-source-id: 1929d59f1795cfbdefd0c86688b6c852f4438205
| Java | apache-2.0 | nguyentruongtho/buck,Addepar/buck,JoelMarcey/buck,Addepar/buck,kageiit/buck,JoelMarcey/buck,JoelMarcey/buck,facebook/buck,Addepar/buck,nguyentruongtho/buck,kageiit/buck,Addepar/buck,kageiit/buck,kageiit/buck,facebook/buck,JoelMarcey/buck,kageiit/buck,Addepar/buck,nguyentruongtho/buck,Addepar/buck,nguyentruongtho/buck,f... |
6272836824ca55339e6076bb95c2494c329fa665 | src/main/java/cz/quanti/mailq/entities/v2/SmsNotificationEntity.java | src/main/java/cz/quanti/mailq/entities/v2/SmsNotificationEntity.java | package cz.quanti.mailq.entities.v2;
import cz.quanti.mailq.entities.v2.enums.NotificationStatus;
public class SmsNotificationEntity extends BaseEntity {
private Long id;
private String name;
private String code;
private String template;
private NotificationStatus status;
private LinkEntity ... | package cz.quanti.mailq.entities.v2;
import cz.quanti.mailq.entities.v2.enums.NotificationStatus;
public class SmsNotificationEntity extends BaseEntity {
private Long id;
private String name;
private String code;
private String template;
private NotificationStatus status;
private LinkEntity ... | Add getter for template variable | Add getter for template variable
| Java | apache-2.0 | QuantiCZ/MailQ-Java-Library |
0f599e1515fe2b017cb7a5a3090fadee3fae8f41 | core/src/org/tigris/subversion/subclipse/core/client/OperationProgressNotifyListener.java | core/src/org/tigris/subversion/subclipse/core/client/OperationProgressNotifyListener.java | /******************************************************************************
* This program and the accompanying materials are made available under
* the terms of the Common Public License v1.0 which accompanies this
* distribution, and is available at the following URL:
* http://www.eclipse.org/legal/cpl-v1... | /******************************************************************************
* This program and the accompanying materials are made available under
* the terms of the Common Public License v1.0 which accompanies this
* distribution, and is available at the following URL:
* http://www.eclipse.org/legal/cpl-v10.ht... | Set svn:eol-style on new files | Set svn:eol-style on new files
| Java | epl-1.0 | subclipse/subclipse,subclipse/subclipse,subclipse/subclipse |
1988bf8f292eb86fc23f031e062863847aaebaa8 | src/org/digitalsoft/android/test/LaunchReceiver.java | src/org/digitalsoft/android/test/LaunchReceiver.java | package org.digitalsoft.android.test;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
public class LaunchReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
String number = intent.g... | package org.digitalsoft.android.test;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
public class LaunchReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
String number = intent.g... | Change number prefix to from +010 to +01 | Change number prefix to from +010 to +01 | Java | cc0-1.0 | AmauryEsparza/MagicNumber,AmauryEsparza/MagicNumber |
6a1342cbc2157bf3ac0afe5fe944e0d02795df1b | src/TextBuddyTest.java | src/TextBuddyTest.java | import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.is;
import java.io.IOException;
import java.util.List;
import org.junit.BeforeClass;
import org.junit.Test;
public class TextBuddyTest {
private static final String FILE_NAME = "mytextfile.txt";
@BeforeClass
public static void initialize... | import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.is;
import java.io.IOException;
import java.util.List;
import org.junit.BeforeClass;
import org.junit.Test;
public class TextBuddyTest {
private static final String FILE_NAME = "mytextfile.txt";
@BeforeClass
public static void initialize... | Test case with uppercase and lowercase combination. | Test case with uppercase and lowercase combination.
| Java | mit | cpwc/CE2_TextBuddy |
e18d62109efde0e171691df746216f4602b14884 | src/main/java/net/engin33r/luaspigot/LibraryRegistry.java | src/main/java/net/engin33r/luaspigot/LibraryRegistry.java | package net.engin33r.luaspigot;
import net.engin33r.luaspigot.lua.Library;
import java.util.HashMap;
import java.util.Map;
/**
* Registry for keeping track of Lua libraries available to scripts.
*/
public class LibraryRegistry {
private final Map<String, Library> nameRegistry = new HashMap<>();
public voi... | package net.engin33r.luaspigot;
import net.engin33r.luaspigot.lua.Library;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
/**
* Registry for keeping track of Lua libraries available to scripts.
*/
public class LibraryRegistry {
private final Map<String... | Add method for getting libraries by class | Add method for getting libraries by class
| Java | mit | Eng1N33R/LuaSpigot |
07e4b853ef7542c22dbf48768a0f3a36ed3a0d88 | src/libbluray/bdj/java/com/aacsla/bluray/online/ContentAttribute.java | src/libbluray/bdj/java/com/aacsla/bluray/online/ContentAttribute.java | /*
* This file is part of libbluray
* Copyright (C) 2012 libbluray
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any l... | /*
* This file is part of libbluray
* Copyright (C) 2012 libbluray
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any l... | Fix resource leak in error path | Fix resource leak in error path
| Java | lgpl-2.1 | mwgoldsmith/bluray,ShiftMediaProject/libbluray,tourettes/libbluray,tourettes/libbluray,UIKit0/libbluray,koying/libbluray,Distrotech/libbluray,Azzuro/libbluray,vlc-mirror/libbluray,tourettes/libbluray,EdwardNewK/libbluray,vlc-mirror/libbluray,UIKit0/libbluray,koying/libbluray,mwgoldsmith/bluray,Azzuro/libbluray,Distrote... |
35750137cd17f507ea418607bd1eb37be04f149e | src/main/java/de/aikiit/fotocollector/main/DateJacksonSerializer.java | src/main/java/de/aikiit/fotocollector/main/DateJacksonSerializer.java | package de.aikiit.fotocollector.main;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import java.io.IOException;
import java.text.SimpleDateForma... | package de.aikiit.fotocollector.main;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import java.io.IOException;
import java.text.SimpleDateForma... | Add Locale to date formatting. | Add Locale to date formatting.
| Java | apache-2.0 | ottlinger/fotocollector,ottlinger/fotocollector |
c7df1c9cd15dbb2914ec14857b47fc2ad9eac411 | src/main/java/com/hiagg/item/CurleSpawner.java | src/main/java/com/hiagg/item/CurleSpawner.java | package com.hiagg.item;
import com.hiagg.creativetabs.ModTabs;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import net.minecraft.world.WorldSettings;
import net.m... | package com.hiagg.item;
import com.hiagg.creativetabs.ModTabs;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.inventory.GuiInventory;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;... | Fix Spawner Well, not really. | Fix Spawner
Well, not really.
| Java | mit | Hiagg/MinecraftMod |
3e74849440c077af2e3d20d9037405df31ac3cc9 | src/main/java/uk/gov/register/db/EntryDAO.java | src/main/java/uk/gov/register/db/EntryDAO.java | package uk.gov.register.db;
import org.skife.jdbi.v2.sqlobject.*;
import uk.gov.register.core.Entry;
public interface EntryDAO {
@SqlBatch("insert into entry(entry_number, sha256hex, timestamp) values(:entryNumber, :sha256hex, :timestampAsLong)")
void insertInBatch(@BindBean Iterable<Entry> entries);
@Sq... | package uk.gov.register.db;
import org.skife.jdbi.v2.sqlobject.*;
import uk.gov.register.core.Entry;
public interface EntryDAO {
@SqlBatch("insert into entry(entry_number, sha256hex, timestamp, item_key) values(:entryNumber, :sha256hex, :timestampAsLong, :itemKey)")
void insertInBatch(@BindBean Iterable<Entry... | Add item key to query inserting values in entry table | Add item key to query inserting values in entry table
| Java | mit | openregister/openregister-java,openregister/openregister-java,openregister/openregister-java,openregister/openregister-java,openregister/openregister-java |
7bae64fa72acff788f84606c26f5c6b72747fee9 | src/main/java/com/orgsync/api/Version.java | src/main/java/com/orgsync/api/Version.java | package com.orgsync.api;
public enum Version {
V1("v1"),
V2("v2");
private final String path;
private Version(final String path) {
this.path = path;
}
public String getPath() {
return path;
}
}
| package com.orgsync.api;
public enum Version {
V2("v2");
private final String path;
private Version(final String path) {
this.path = path;
}
public String getPath() {
return path;
}
}
| Remove V1.. we aren't going to support it. | Remove V1.. we aren't going to support it. | Java | apache-2.0 | orgsync/orgsync-api-java |
4610690d3b1e8cee462fc057120ac70f3d1d1bfc | 01/E1_02/E1_02.java | 01/E1_02/E1_02.java | /*
Write a program that displays Welcome to Java five times.
*/
public class E1_02 {
public static void main(String[] args) {
for (int i = 0; i < 5; i++) {
System.out.println("Welcome to Java");
}
//OR
int i = 0;
while (i < 5) {
System.out.println("Welcome to Java");
}
i = 0... | /*
Write a program that displays Welcome to Java five times.
*/
public class E1_02 {
public static void main(String[] args) {
for (int i = 0; i < 5; i++) {
System.out.println("Welcome to Java");
}
}
}
| Revert back to original solution. | Revert back to original solution.
| Java | mit | maxalthoff/intro-to-java-exercises |
d59cd4e35b8c75fc053d565698518fa7fdffa3ae | src/test/java/org/yaml/snakeyaml/YamlTest.java | src/test/java/org/yaml/snakeyaml/YamlTest.java | /**
* Copyright (c) 2008-2010, http://www.snakeyaml.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 require... | /**
* Copyright (c) 2008-2010, http://www.snakeyaml.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 require... | Add test: check that documents are parsed only when they are asked to be loaded | Add test: check that documents are parsed only when they are asked to be loaded
| Java | apache-2.0 | yskumar007/snakeyaml,umeding/snakeyaml,Mause/snakeyaml,nxbdi/snakeyaml,thinkofdeath/snakeyaml,AssafMashiah/assafmashiah-yaml,youxinren/snakeyaml,votinhthieugia/snakeyaml,yeison/snakeyaml,Fighter777/snakeyaml,UcasRichard/snakeyaml,yishenggudou/snakeyaml,virustotalop/snakeyaml,mapiman/snakeyaml,RussellSpitzer/snakeyaml,S... |
fbb412a8a110c0c0288981982a20516453501bbf | utils/SortList.java | utils/SortList.java | //
// SortList.java
//
import java.io.*;
import java.util.Arrays;
import java.util.Vector;
/** Sorts a text file alphabetically, removing duplicates. */
public class SortList {
public static void main(String[] args) throws Exception {
String file = args[0];
Vector v = new Vector();
BufferedReader fin =... | //
// SortList.java
//
import java.io.*;
import java.util.Arrays;
import java.util.Vector;
/** Sorts a text file alphabetically, removing duplicates. */
public class SortList {
public static void main(String[] args) throws Exception {
boolean showDups = args[0].equals("-v");
String file = args[showDups ? 1... | Add command line option to print a warning for each duplicate. | Add command line option to print a warning for each duplicate.
| Java | bsd-2-clause | scifio/scifio |
b4000968b0a3c19bb60d57220cb31f73926149bf | name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/TradesWidget.java | name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/TradesWidget.java | package name.abuchen.portfolio.ui.views.dashboard;
import java.util.List;
import com.ibm.icu.text.MessageFormat;
import name.abuchen.portfolio.model.Dashboard.Widget;
import name.abuchen.portfolio.snapshot.trades.Trade;
import name.abuchen.portfolio.ui.views.trades.TradeDetailsView;
import name.abuchen.portfolio.uti... | package name.abuchen.portfolio.ui.views.dashboard;
import java.util.List;
import com.ibm.icu.text.MessageFormat;
import name.abuchen.portfolio.model.Dashboard.Widget;
import name.abuchen.portfolio.snapshot.trades.Trade;
import name.abuchen.portfolio.ui.views.trades.TradeDetailsView;
import name.abuchen.portfolio.uti... | Fix Trades Widget to count by isPositive rather than IRR | Fix Trades Widget to count by isPositive rather than IRR | Java | epl-1.0 | cmaoling/portfolio,cmaoling/portfolio,cmaoling/portfolio,cmaoling/portfolio |
2c389a4a1e632b681a0028b4f8f20e6be3224e0a | src/main/java/com/elmakers/mine/bukkit/action/builtin/PlaneAction.java | src/main/java/com/elmakers/mine/bukkit/action/builtin/PlaneAction.java | package com.elmakers.mine.bukkit.action.builtin;
import com.elmakers.mine.bukkit.api.action.CastContext;
import org.bukkit.configuration.ConfigurationSection;
public class PlaneAction extends VolumeAction
{
protected enum Axis { X, Y, Z };
protected Axis axis;
@Override
public void prepare(CastContext context, C... | package com.elmakers.mine.bukkit.action.builtin;
import com.elmakers.mine.bukkit.api.action.CastContext;
import org.bukkit.configuration.ConfigurationSection;
public class PlaneAction extends VolumeAction
{
protected enum Axis { X, Y, Z };
protected Axis axis;
@Override
public void prepare(CastContext context, C... | Fix Plane action with default axis | Fix Plane action with default axis
| Java | mit | elBukkit/MagicPlugin,elBukkit/MagicPlugin,elBukkit/MagicPlugin |
d60ed285886fe91ed122004ab0d57c9637c5ba88 | subprojects/workers/src/main/java/org/gradle/workers/package-info.java | subprojects/workers/src/main/java/org/gradle/workers/package-info.java | /*
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Mark workers since 3.5 and Incubating | Mark workers since 3.5 and Incubating
| Java | apache-2.0 | robinverduijn/gradle,lsmaira/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,lsmaira/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,robinverduijn/gradle,gradle/gradle,gstevey/gradle,gradle/gradle,gstevey/gradle,gstevey/... |
74a6c4a66476f745cb499606d7fc7cf296c5044b | src/com/hypirion/io/Pipe.java | src/com/hypirion/io/Pipe.java | package com.hypirion.io;
import java.io.InputStream;
import java.io.OutputStream;
public class Pipe {
private final Thread threadPumper;
private final PipeThread pt;
private final InputStream in;
private final OutputStream out;
public Pipe(InputStream in, OutputStream out) {
this.in = in... | package com.hypirion.io;
import java.io.InputStream;
import java.io.OutputStream;
public class Pipe {
private final Thread threadPumper;
private final PipeThread pt;
private final InputStream in;
private final OutputStream out;
private final Object readLock, writeLock;
public Pipe(InputStrea... | Add in locks for pipe. | Add in locks for pipe.
| Java | epl-1.0 | hyPiRion/com.hypirion.io |
9474bae3ea7186a943210eeadcbc961f7120db72 | src/main/java/ee/shy/cli/command/CheckoutCommand.java | src/main/java/ee/shy/cli/command/CheckoutCommand.java | package ee.shy.cli.command;
import ee.shy.cli.Command;
import ee.shy.cli.HelptextBuilder;
import ee.shy.core.Repository;
import java.io.IOException;
/**
* A command to checkout.
*/
public class CheckoutCommand implements Command {
@Override
public void execute(String[] args) throws IOException {
Re... | package ee.shy.cli.command;
import ee.shy.cli.Command;
import ee.shy.cli.HelptextBuilder;
import ee.shy.core.Repository;
import java.io.IOException;
/**
* A command to checkout.
*/
public class CheckoutCommand implements Command {
@Override
public void execute(String[] args) throws IOException {
Re... | Add branch completions to checkout command | Add branch completions to checkout command
| Java | mit | sim642/shy,sim642/shy |
584608130a0b56b31c287ba0e44e9b3aad763d34 | 500px/src/main/java/com/lukekorth/android_500px/WallpaperApplication.java | 500px/src/main/java/com/lukekorth/android_500px/WallpaperApplication.java | package com.lukekorth.android_500px;
import android.content.Context;
import com.lukekorth.android_500px.helpers.Cache;
import com.lukekorth.android_500px.helpers.ThreadBus;
import com.squareup.otto.Bus;
import com.squareup.picasso.Picasso;
public class WallpaperApplication extends com.activeandroid.app.Application {... | package com.lukekorth.android_500px;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import com.activeandroid.ActiveAndroid;
import com.lukekorth.android_500px.helpers.Cache;
import com.lukekorth.android_500px.helpers.ThreadBus;
import com.squareu... | Clear database for version <= 1 | Clear database for version <= 1
| Java | mit | lkorth/photo-paper |
c5872317e5eb1f5cc6e623089d9e89baacdd7f9e | src/Wift.java | src/Wift.java | public class Wift {
/**
* Wift - The BASIC Programming Language
*
* BASIC FUNCTIONALITY:
* - STRINGS []
* - INTEGERS []
* - ARITHMETIC []
* - VARIABLES []
*
* FUNCTIONS:
* - PRINT []
* - INPUT []
... | public class Wift {
/**
* Wift - The BASIC Programming Language
*
* BASIC FUNCTIONALITY:
* - STRINGS []
* - INTEGERS []
* - ARITHMETIC []
* - VARIABLES []
*
* FUNCTIONS:
* - PRINT []
* - INPUT []
... | Add "String...args" into "public..." :maple_leaf: | Add "String...args" into "public..." :maple_leaf: | Java | bsd-2-clause | SuriyaaKudoIsc/wift,SuriyaaKudoIsc/wift |
8830955a351d7ea85302704a8c01c46379c052f8 | f-tep-api/src/main/java/com/cgi/eoss/ftep/model/projections/ShortUser.java | f-tep-api/src/main/java/com/cgi/eoss/ftep/model/projections/ShortUser.java | package com.cgi.eoss.ftep.model.projections;
import com.cgi.eoss.ftep.model.Role;
import com.cgi.eoss.ftep.model.User;
import org.springframework.data.rest.core.config.Projection;
import org.springframework.hateoas.Identifiable;
/**
* <p>Abbreviated representation of a User entity, for embedding in REST responses.</... | package com.cgi.eoss.ftep.model.projections;
import com.cgi.eoss.ftep.model.Role;
import com.cgi.eoss.ftep.model.User;
import org.springframework.data.rest.core.config.Projection;
import org.springframework.hateoas.Identifiable;
/**
* <p>Abbreviated representation of a User entity, for embedding in REST responses.</... | Add organisation info to Users API | Add organisation info to Users API
Change-Id: I0ef250d47686068ec4d5832e993fe48547fdb6fb
| Java | agpl-3.0 | cgi-eoss/ftep,cgi-eoss/ftep,cgi-eoss/ftep,cgi-eoss/ftep,cgi-eoss/ftep,cgi-eoss/ftep,cgi-eoss/ftep |
e73b71aca4e4de5adef07819ce187e82a7d9b0a9 | java/azure-perfstress/src/main/java/com/azure/perfstress/RandomStream.java | java/azure-perfstress/src/main/java/com/azure/perfstress/RandomStream.java | package com.azure.perfstress;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.util.Random;
public class RandomStream {
private static final byte[] _randomBytes;
static {
// _randomBytes = new byte[1024 * 1024];
_randomBytes = new byte[Integer.MAX_VALUE];
(... | package com.azure.perfstress;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.util.Random;
public class RandomStream {
private static final int _size = (1024 * 1024 * 1024) + 1;
private static final byte[] _randomBytes;
static {
// _randomBytes = new byte[1024 * 1024]... | Reduce static array size to avoid OOM | Reduce static array size to avoid OOM
| Java | mit | Azure/azure-sdk-for-java,Azure/azure-sdk-for-java,Azure/azure-sdk-for-java,Azure/azure-sdk-for-java,selvasingh/azure-sdk-for-java,selvasingh/azure-sdk-for-java,selvasingh/azure-sdk-for-java,Azure/azure-sdk-for-java |
ba94ad124a67e070d0880235bb5ecf78bf841c60 | gravitee-gateway-reporting/src/main/java/io/gravitee/gateway/report/impl/lmax/ReporterEventHandler.java | gravitee-gateway-reporting/src/main/java/io/gravitee/gateway/report/impl/lmax/ReporterEventHandler.java | /**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requ... | /**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requ... | Handle exception while reporting event | fix(reporter): Handle exception while reporting event
Closes gravitee-io/issues#867
| Java | apache-2.0 | gravitee-io/gravitee-gateway,gravitee-io/gateway,gravitee-io/gateway,gravitee-io/gravitee-gateway |
cc56cea32b2c9d7a1b383ea33bf23b677e961d35 | interactive-data-spring-sample/src/main/java/de/schuermann/interactivedata/spring/sample/data/Action.java | interactive-data-spring-sample/src/main/java/de/schuermann/interactivedata/spring/sample/data/Action.java | package de.schuermann.interactivedata.spring.sample.data;
import javax.persistence.*;
import java.util.Date;
/**
* Data Entity for Actions
*
* @author Philipp Schürmann
*/
@Entity
public class Action {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "action_seq_gen")
@Sequenc... | package de.schuermann.interactivedata.spring.sample.data;
import javax.persistence.*;
import java.util.Date;
/**
* Data Entity for Actions
*
* @author Philipp Schürmann
*/
@Entity
public class Action {
@Id
@GeneratedValue
private Long id;
private Date time;
@ManyToOne
private Perso... | Remove GeneratedValue Special for Postgres | Remove GeneratedValue Special for Postgres
| Java | mit | MrGoro/InteractiveData |
e56e522b6561f193d624139bfdec7e790a4c9f5f | vm/tests/smoke/StackTest.java | vm/tests/smoke/StackTest.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... | Allow the test to pass even when no SOE happens in max_depth recursions | Allow the test to pass even when no SOE happens in max_depth recursions
svn path=/incubator/harmony/enhanced/drlvm/trunk/; revision=475473
| Java | apache-2.0 | freeVM/freeVM,freeVM/freeVM,freeVM/freeVM,freeVM/freeVM,freeVM/freeVM |
61f13cdae913ab93eca5d83d6a9ae1c98c118777 | test/com/opera/core/systems/OperaPathsTest.java | test/com/opera/core/systems/OperaPathsTest.java | package com.opera.core.systems;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class OperaPathsTest {
@Test
public void testStart() throws Exception {
OperaDriver driver = new OperaDriver();
driver.get("http://t/core/README");
assertEquals("http://t/core/README", driver... | package com.opera.core.systems;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNotSame;
import java.lang.reflect.Field;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
public class O... | Add more tests for OperaPaths | Add more tests for OperaPaths
| Java | apache-2.0 | operasoftware/operaprestodriver,operasoftware/operaprestodriver,operasoftware/operaprestodriver |
f31e1d05a6014cd7e582ff99c4c5cc36461dd6fe | server/src/main/java/com/breakersoft/plow/dispatcher/pipeline/Pipeline.java | server/src/main/java/com/breakersoft/plow/dispatcher/pipeline/Pipeline.java | package com.breakersoft.plow.dispatcher.pipeline;
import java.util.Collection;
import java.util.UUID;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.atomic.AtomicBoolean;
import com.breakersoft.plow.JobId;
public class Pipeline implements JobId, Runnable {
private final UUID jobId;... | package com.breakersoft.plow.dispatcher.pipeline;
import java.util.Collection;
import java.util.UUID;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.atomic.AtomicBoolean;
import com.breakersoft.plow.JobId;
public class Pipeline implements JobId, Runnable {
private final UUID jobId;... | Check of the queue has waiting data before attempting to take control. | Check of the queue has waiting data before attempting to take control.
| Java | apache-2.0 | Br3nda/plow,chadmv/plow,Br3nda/plow,chadmv/plow,chadmv/plow,chadmv/plow,chadmv/plow,Br3nda/plow,chadmv/plow,Br3nda/plow,Br3nda/plow,chadmv/plow |
c8980074878d402e0f567673c77b37f18b6f7c8b | src/main/java/bio/terra/cli/command/auth/Login.java | src/main/java/bio/terra/cli/command/auth/Login.java | package bio.terra.cli.command.auth;
import bio.terra.cli.businessobject.Context;
import bio.terra.cli.command.shared.BaseCommand;
import picocli.CommandLine.Command;
/** This class corresponds to the third-level "terra auth login" command. */
@Command(
name = "login",
description = "Authorize the CLI to acces... | package bio.terra.cli.command.auth;
import bio.terra.cli.businessobject.Context;
import bio.terra.cli.businessobject.User;
import bio.terra.cli.command.shared.BaseCommand;
import picocli.CommandLine.Command;
/** This class corresponds to the third-level "terra auth login" command. */
@Command(
name = "login",
... | Make auth login trigger a new login always. | Make auth login trigger a new login always.
| Java | bsd-3-clause | DataBiosphere/terra-cli,DataBiosphere/terra-cli |
3db3ed080c6a372188f3a7366b7bb001c3829b4f | src/main/java/persistence/util/TransactionUtil.java | src/main/java/persistence/util/TransactionUtil.java | package persistence.util;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
public class TransactionUtil {
public static void doTransaction(EntityManagerFactory emf, Transaction t) {
EntityManager em = emf.createEntityManager(... | package persistence.util;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
public class TransactionUtil {
public static void doTransaction(EntityManagerFactory emf, Transaction t) {
EntityManager em = emf.createEntityManager(... | Set thread local the entity manager in validatorfactory also in doTransaction with already created EntityManagers | Set thread local the entity manager in validatorfactory also in
doTransaction with already created EntityManagers | Java | apache-2.0 | lipido/si1415_persistence |
4bbb72e9993a5c3429dd33b401b16ae355263821 | src/edu/northwestern/bioinformatics/studycalendar/dao/StudyCalendarDao.java | src/edu/northwestern/bioinformatics/studycalendar/dao/StudyCalendarDao.java | package edu.northwestern.bioinformatics.studycalendar.dao;
import gov.nih.nci.cabig.ctms.dao.AbstractDomainObjectDao;
import gov.nih.nci.cabig.ctms.domain.DomainObject;
/**
* @author Rhett Sutphin
*/
public abstract class StudyCalendarDao<T extends DomainObject> extends AbstractDomainObjectDao<T> {
}
| package edu.northwestern.bioinformatics.studycalendar.dao;
import gov.nih.nci.cabig.ctms.dao.AbstractDomainObjectDao;
import gov.nih.nci.cabig.ctms.domain.DomainObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author Rhett Sutphin
*/
public abstract class StudyCalendarDao<T extends DomainObje... | Mask ctms-common's commons-logging logger with an slf4j logger | Mask ctms-common's commons-logging logger with an slf4j logger
| Java | bsd-3-clause | NCIP/psc,NCIP/psc,NCIP/psc,NCIP/psc |
02d24764cdd312e2e36f1c8e486bcfbfd791e83a | codenvy-ext-datasource-core/src/main/java/com/codenvy/ide/ext/datasource/client/sqllauncher/SqlRequestLauncherAction.java | codenvy-ext-datasource-core/src/main/java/com/codenvy/ide/ext/datasource/client/sqllauncher/SqlRequestLauncherAction.java | package com.codenvy.ide.ext.datasource.client.sqllauncher;
import com.codenvy.ide.api.ui.action.Action;
import com.codenvy.ide.api.ui.action.ActionEvent;
import com.codenvy.ide.api.ui.workspace.PartStackType;
import com.codenvy.ide.api.ui.workspace.WorkspaceAgent;
import com.google.inject.Inject;
/**
* Action to lau... | package com.codenvy.ide.ext.datasource.client.sqllauncher;
import com.codenvy.ide.api.ui.action.Action;
import com.codenvy.ide.api.ui.action.ActionEvent;
import com.codenvy.ide.api.ui.workspace.PartStackType;
import com.codenvy.ide.api.ui.workspace.WorkspaceAgent;
import com.google.inject.Inject;
/**
* Action to lau... | Replace use of presenter factory in action with use of launcher facotry | Replace use of presenter factory in action with use of launcher facotry
| Java | epl-1.0 | codenvy/plugin-datasource,codenvy/plugin-datasource |
b7e2229f99d77877f6ee53eec0a61c3cef3808e3 | src/main/java/mariculture/fishery/fish/dna/FishDNATemperatureTolerance.java | src/main/java/mariculture/fishery/fish/dna/FishDNATemperatureTolerance.java | package mariculture.fishery.fish.dna;
import mariculture.api.fishery.fish.FishDNA;
import mariculture.api.fishery.fish.FishSpecies;
import mariculture.core.config.FishMechanics.FussyFish;
import net.minecraft.item.ItemStack;
public class FishDNATemperatureTolerance extends FishDNA {
@Override
public Integer g... | package mariculture.fishery.fish.dna;
import mariculture.api.fishery.fish.FishDNA;
import mariculture.api.fishery.fish.FishSpecies;
import mariculture.core.config.FishMechanics.FussyFish;
import net.minecraft.item.ItemStack;
public class FishDNATemperatureTolerance extends FishDNA {
@Override
public Integer g... | Fix temperature using salinity config | Fix temperature using salinity config | Java | mit | jriwanek/Mariculture,svgorbunov/Mariculture,joshiejack/Mariculture |
c85d86a186ab3a8d6895c4723aa50af4d4d01e70 | ClientRuntimes/Java/azure-client-authentication/src/test/java/com/microsoft/azure/credentials/UserTokenCredentialsTests.java | ClientRuntimes/Java/azure-client-authentication/src/test/java/com/microsoft/azure/credentials/UserTokenCredentialsTests.java | /**
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
*/
package com.microsoft.azure.credentials;
public class UserTokenCredentialsTests {
}
| /**
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
*/
package com.microsoft.azure.credentials;
import com.microsoft.aad.adal4j.AuthenticationResult;
import org.junit.Assert;
import org.junit.Test;
i... | Add a test for user credentials | Add a test for user credentials
| Java | mit | hovsepm/AutoRest,anudeepsharma/autorest,navalev/azure-sdk-for-java,yaqiyang/autorest,annatisch/autorest,selvasingh/azure-sdk-for-java,stankovski/AutoRest,devigned/autorest,navalev/azure-sdk-for-java,devigned/autorest,annatisch/autorest,fhoring/autorest,sharadagarwal/autorest,begoldsm/autorest,garimakhulbe/autorest,serg... |
4572ae5430120a7ff9493bdb89c264fd60f46a3a | spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/netty/NettyPropertiesTests.java | spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/netty/NettyPropertiesTests.java | /*
* Copyright 2012-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | /*
* Copyright 2012-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Use reflection to extract Netty's default level | Use reflection to extract Netty's default level
See gh-27046
| Java | apache-2.0 | dreis2211/spring-boot,michael-simons/spring-boot,htynkn/spring-boot,spring-projects/spring-boot,dreis2211/spring-boot,Buzzardo/spring-boot,htynkn/spring-boot,dreis2211/spring-boot,aahlenst/spring-boot,chrylis/spring-boot,vpavic/spring-boot,mdeinum/spring-boot,mdeinum/spring-boot,aahlenst/spring-boot,dreis2211/spring-bo... |
76830b92f5d2c4abe7ba6e98b0806a464813ca0b | src/java/com/iselsoft/ptest/runLineMarker/PTestRunLineMarkerContributor.java | src/java/com/iselsoft/ptest/runLineMarker/PTestRunLineMarkerContributor.java | package com.iselsoft.ptest.runLineMarker;
import com.intellij.execution.lineMarker.RunLineMarkerContributor;
import com.intellij.icons.AllIcons;
import com.intellij.psi.PsiElement;
import com.intellij.util.Function;
import com.iselsoft.ptest.runConfiguration.PTestConfigurationProducer;
import com.jetbrains.python.psi.... | package com.iselsoft.ptest.runLineMarker;
import com.intellij.execution.lineMarker.RunLineMarkerContributor;
import com.intellij.icons.AllIcons;
import com.intellij.psi.PsiElement;
import com.intellij.util.Function;
import com.iselsoft.ptest.runConfiguration.PTestConfigurationProducer;
import com.jetbrains.python.psi.... | Remove old pycharm icon support. | Remove old pycharm icon support.
| Java | apache-2.0 | KarlGong/ptest-pycharm-plugin,KarlGong/ptest-pycharm-plugin,KarlGong/ptest-pycharm-plugin |
fbdf68a09c24de1d4c274aa15fda165b87ff9a9a | JECP-ME/src/com/annimon/jecp/me/JecpApplication.java | JECP-ME/src/com/annimon/jecp/me/JecpApplication.java | package com.annimon.jecp.me;
import com.annimon.jecp.ApplicationListener;
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
/**
*
* @author aNNiMON
*/
public abstract class JecpApplication extends MIDlet implements ApplicationListener {
private MIDlet midlet;
... | package com.annimon.jecp.me;
import com.annimon.jecp.ApplicationListener;
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
/**
*
* @author aNNiMON
*/
public abstract class JecpApplication extends MIDlet {
private final ApplicationListener listener;
private... | Change JecpApllication class in JECP-ME | Change JecpApllication class in JECP-ME | Java | apache-2.0 | aNNiMON/JECP |
377ff1dabc595fab4af9cb35bb8c071f2872c612 | agile-dbus-java-interface/src/main/java/iot/agile/object/DeviceStatusType.java | agile-dbus-java-interface/src/main/java/iot/agile/object/DeviceStatusType.java | package iot.agile.object;
public enum DeviceStatusType {
CONNECTED,
DISCONNECTED,
ERROR
}
| package iot.agile.object;
public enum DeviceStatusType {
CONNECTED,
DISCONNECTED,
ON,
0FF,
ERROR
}
| Add more device status type | Add more device status type
| Java | epl-1.0 | muka/agile-api-spec,muka/agile-api-spec,muka/agile-api-spec |
4aba316df350b493e13a776d1a9f7cc88a5b861c | elements-demo/src/main/java/org/vaadin/elements/demo/AbstractElementsDemo.java | elements-demo/src/main/java/org/vaadin/elements/demo/AbstractElementsDemo.java | package org.vaadin.elements.demo;
import com.vaadin.ui.Component;
import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.Label;
import com.vaadin.ui.VerticalLayout;
public abstract class AbstractElementsDemo extends CustomComponent {
private final VerticalLayout layout = new VerticalLayout();
public Abs... | package org.vaadin.elements.demo;
import com.vaadin.ui.Component;
import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.Label;
import com.vaadin.ui.VerticalLayout;
public abstract class AbstractElementsDemo extends CustomComponent {
private final VerticalLayout layout = new VerticalLayout();
public Abs... | Add spacing after demo description | Add spacing after demo description | Java | apache-2.0 | vaadin/serverside-elements,vaadin/serverside-elements,vaadin/elements,vaadin/elements |
844b2a5cb7e1bfdd7d5f8477aff559bb0f97e56e | atlas-api/src/main/java/org/atlasapi/application/auth/ApiKeySourcesFetcher.java | atlas-api/src/main/java/org/atlasapi/application/auth/ApiKeySourcesFetcher.java | package org.atlasapi.application.auth;
import static com.google.common.base.Preconditions.checkNotNull;
import javax.servlet.http.HttpServletRequest;
import org.atlasapi.application.Application;
import org.atlasapi.application.ApplicationSources;
import org.atlasapi.application.ApplicationStore;
import com.google.c... | package org.atlasapi.application.auth;
import static com.google.common.base.Preconditions.checkNotNull;
import javax.servlet.http.HttpServletRequest;
import org.atlasapi.application.Application;
import org.atlasapi.application.ApplicationSources;
import org.atlasapi.application.ApplicationStore;
import com.google.c... | Revert "api key deleted from the list of required parameters" | Revert "api key deleted from the list of required parameters"
| Java | apache-2.0 | atlasapi/atlas-deer,atlasapi/atlas-deer |
114d9b926aea2855c252a3b0799cb8c45940c831 | omnij-money/src/main/java/foundation/omni/money/PoloniexXChangeRateProvider.java | omnij-money/src/main/java/foundation/omni/money/PoloniexXChangeRateProvider.java | package foundation.omni.money;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.poloniex.PoloniexExchange;
import com.msgilligan.bitcoinj.money.BaseXChangeExchangeRateProvider;
/**
* Exchange rate provider currently hardcoded for OMNIBTC only
*/
public class PoloniexXChangeRateProvider exte... | package foundation.omni.money;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.poloniex.PoloniexExchange;
import com.msgilligan.bitcoinj.money.BaseXChangeExchangeRateProvider;
/**
* Exchange rate provider currently hardcoded for OMNIBTC only
*/
public class PoloniexXChangeRateProvider exte... | Update for new BaseXChange…Provider constructor, add 2 pairs | Update for new BaseXChange…Provider constructor, add 2 pairs | Java | apache-2.0 | OmniLayer/OmniJ,OmniLayer/OmniJ,OmniLayer/OmniJ |
5e5ec145eb3bd18874af3336a88e5cfb5b43fa77 | src/peergos/tests/UserTests.java | src/peergos/tests/UserTests.java | package peergos.tests;
import org.junit.*;
import peergos.corenode.*;
import peergos.user.*;
import java.io.*;
import java.net.*;
public class UserTests {
UserContext context;
@Before
public void setup() throws IOException {
String username = "test01";
String password = "test01";
... | package peergos.tests;
import org.junit.*;
import peergos.corenode.*;
import peergos.crypto.*;
import peergos.user.*;
import java.io.*;
import java.net.*;
public class UserTests {
UserContext context;
@Before
public void setup() throws IOException {
String username = "test01";
String pa... | Test to ensure keys generated in Java using Scrypt are same as from JS | Test to ensure keys generated in Java using Scrypt are same as from JS
| Java | agpl-3.0 | Peergos/Peergos,ianopolous/Peergos,ianopolous/Peergos,ianopolous/Peergos,Peergos/Peergos,Peergos/Peergos |
25e205f6ecea3dfba072addeb60f81b14703107e | src/ru/linachan/pushbullet/PushBulletPlugin.java | src/ru/linachan/pushbullet/PushBulletPlugin.java | package ru.linachan.pushbullet;
import ru.linachan.yggdrasil.component.YggdrasilPlugin;
public class PushBulletPlugin extends YggdrasilPlugin {
private PushBulletClient client;
@Override
protected void setUpDependencies() {
}
@Override
protected void onInit() {
String apiKey = core... | package ru.linachan.pushbullet;
import ru.linachan.yggdrasil.component.YggdrasilPlugin;
import ru.linachan.yggdrasil.notification.YggdrasilNotificationManager;
public class PushBulletPlugin extends YggdrasilPlugin {
private PushBulletClient client;
@Override
protected void setUpDependencies() {
}
... | Update plugin to latest YggdrasilCore | Update plugin to latest YggdrasilCore
| Java | apache-2.0 | YggdrasilProject/PushBulletPlugin |
e677926b79da8a0f19a0924d8ff707d856ea5b77 | yamcs-core/src/main/java/org/yamcs/yarch/streamsql/Utils.java | yamcs-core/src/main/java/org/yamcs/yarch/streamsql/Utils.java | package org.yamcs.yarch.streamsql;
public class Utils {
public static boolean like(String str, String pattern) {
pattern = pattern.toLowerCase();
pattern = pattern.replace(".", "\\.");
pattern = pattern.replace("?", ".");
pattern = pattern.replace("%", ".*");
str = str.toL... | package org.yamcs.yarch.streamsql;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Utils {
public static boolean like(String str, String pattern) {
pattern = pattern.toLowerCase();
pattern = pattern.replace(".", "\\.");
pattern = pattern.replace("?", ".");
... | Fix LIKE expression not working for multiline strings | Fix LIKE expression not working for multiline strings
| Java | agpl-3.0 | yamcs/yamcs,fqqb/yamcs,yamcs/yamcs,fqqb/yamcs,yamcs/yamcs,fqqb/yamcs,yamcs/yamcs,fqqb/yamcs,fqqb/yamcs,fqqb/yamcs,yamcs/yamcs,yamcs/yamcs |
0f5237d61f24756c360558d10495e248d5e4b13a | src/com/nasmlanguage/psi/NASMElementFactory.java | src/com/nasmlanguage/psi/NASMElementFactory.java | /*++
NASM Assembly Language Plugin
Copyright (c) 2017-2018 Aidan Khoury. All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any... | /*++
NASM Assembly Language Plugin
Copyright (c) 2017-2018 Aidan Khoury
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, ... | Update copyright notice with MIT license | Update copyright notice with MIT license | Java | mit | dude719/JetBrains-NASM-Language |
0c239ed9c8e0aca6fc80591ba8d41126198c34a9 | src/main/java/com/speedment/core/Entity.java | src/main/java/com/speedment/core/Entity.java | /**
*
* Copyright (c) 2006-2015, Speedment, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); You may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | /**
*
* Copyright (c) 2006-2015, Speedment, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); You may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | Introduce bounds for generics in annotation | Introduce bounds for generics in annotation
| Java | apache-2.0 | speedment/speedment,speedment/speedment |
9584f5714832e9c7c73ba589b12dbee9bad8cde7 | jrt/src/com/yahoo/jrt/TlsCryptoEngine.java | jrt/src/com/yahoo/jrt/TlsCryptoEngine.java | // Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jrt;
import com.yahoo.security.tls.TlsContext;
import javax.net.ssl.SSLEngine;
import java.nio.channels.SocketChannel;
/**
* A {@link CryptoSocket} that creates {@link TlsCryptoSo... | // Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jrt;
import com.yahoo.security.tls.TlsContext;
import javax.net.ssl.SSLEngine;
import java.nio.channels.SocketChannel;
/**
* A {@link CryptoSocket} that creates {@link TlsCryptoSo... | Create SSLEngine instance using host and port | Create SSLEngine instance using host and port
| 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 |
716cfeb08125981feb33dbda722c35cd64d38d01 | messaging/src/main/java/org/axonframework/messaging/SubscribableMessageSource.java | messaging/src/main/java/org/axonframework/messaging/SubscribableMessageSource.java | /*
* Copyright (c) 2010-2018. Axon Framework
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | /*
* Copyright (c) 2010-2018. Axon Framework
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | Add author and since tag | Add author and since tag
Add author and since tag to the SubscribableMessageSource
| Java | apache-2.0 | krosenvold/AxonFramework,AxonFramework/AxonFramework |
f038d71761b642a0f587dc77c4d108aaa42f7824 | src/login/PasswordHelper.java | src/login/PasswordHelper.java | package login;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import javax.xml.bind.DatatypeConverter;
public class PasswordHelper
{
private static String hashAlgorithm = "MD5";
private static String stringEncodingFormat = "UTF-8";
... | package login;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import javax.xml.bind.DatatypeConverter;
public class PasswordHelper
{
private static String hashAlgorithm = "MD5";
private static String stringEncodingFormat = "UTF-8";
... | Add description to hash function | Add description to hash function
| Java | mit | TeamRedFox/PointOfSale |
05da66881d491d4b554f1d126f8427df3d7280b1 | src/main/java/stage2/elements/GeneralElementStage2.java | src/main/java/stage2/elements/GeneralElementStage2.java | package stage2.elements;
/**
*
*/
public interface GeneralElementStage2 {
}
| package stage2.elements;
import com.google.common.collect.ImmutableTable;
import model.Container;
/**
*
*/
public interface GeneralElementStage2 {
String AR = Container.getInstance().getStage2().getAr().toString();
String CO2 = Container.getInstance().getStage2().getCo2().toString();
String O2 = Container.getIn... | Add constants used in stage 2. | Add constants used in stage 2.
| Java | apache-2.0 | maxtat3/fmps |
14d77e305ba11dad679abbb9b0d24d0e3a836357 | src/main/java/net/openhft/chronicle/wire/WriteMarshallable.java | src/main/java/net/openhft/chronicle/wire/WriteMarshallable.java | /*
* Copyright (C) 2015 higherfrequencytrading.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License.
*
* This program is distr... | /*
* Copyright (C) 2015 higherfrequencytrading.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License.
*
* This program is distr... | Move Journal to it's own repo. | Move Journal to it's own repo.
| Java | apache-2.0 | OpenHFT/Chronicle-Wire,OpenHFT/Chronicle-Wire |
f2d4de18850e663b7c4fdbd4dda1a968e1439017 | src/java/com/sarality/app/data/location/City.java | src/java/com/sarality/app/data/location/City.java | package com.sarality.app.data.location;
import com.sarality.app.data.BaseEnumData;
/**
* Enum Data for a City.
*
* @author abhideep@ (Abhideep Singh)
*/
public class City extends BaseEnumData<City> {
private final String shortName;
private final String fullName;
private final String oldName;
private fina... | package com.sarality.app.data.location;
import com.sarality.app.data.BaseEnumData;
import java.util.List;
/**
* Enum Data for a City.
*
* @author abhideep@ (Abhideep Singh)
*/
public class City extends BaseEnumData<City> {
private final String name;
private final Country country;
private final List<String... | Define Alternate Names for city rather than this shortname, long name etc. | Define Alternate Names for city rather than this shortname, long name etc.
| Java | apache-2.0 | sarality/appblocks,sarality/appblocks |
2407b8d4f5ee6b47e37e761b9759840e014b587f | src/test/java/arez/spytools/NullObserverInfo.java | src/test/java/arez/spytools/NullObserverInfo.java | package arez.spytools;
import arez.spy.ComponentInfo;
import arez.spy.ComputedValueInfo;
import arez.spy.ObservableInfo;
import arez.spy.ObserverInfo;
import java.util.Collections;
import java.util.List;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.realityforge.guiceyloops.shared.Value... | package arez.spytools;
import arez.Priority;
import arez.spy.ComponentInfo;
import arez.spy.ComputedValueInfo;
import arez.spy.ObservableInfo;
import arez.spy.ObserverInfo;
import java.util.Collections;
import java.util.List;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.realityforge.gu... | Update to the latest API | Update to the latest API
| Java | apache-2.0 | realityforge/arez,realityforge/arez,realityforge/arez |
e9411dc2365d62c4118315d0a505e595a55be931 | src/org/pepstock/charba/client/enums/SteppedLine.java | src/org/pepstock/charba/client/enums/SteppedLine.java | /**
Copyright 2017 Andrea "Stock" Stocchero
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... | /**
Copyright 2017 Andrea "Stock" Stocchero
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... | Add midpoint interpolation to stepped line | Add midpoint interpolation to stepped line | Java | apache-2.0 | pepstock-org/Charba,pepstock-org/Charba,pepstock-org/Charba |
5c9ea2db151545f8dd0a7fecb7ee7860c65ead0e | src/main/java/com/tterrag/blur/config/BlurConfigGui.java | src/main/java/com/tterrag/blur/config/BlurConfigGui.java | package com.tterrag.blur.config;
import javax.annotation.Nonnull;
import com.tterrag.blur.Blur;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.renderer.Tessellator;
import net.minecraftforge.common.config.ConfigElement;
import net.minecraftforge.common.config.Configuration;
import net.minecra... | package com.tterrag.blur.config;
import javax.annotation.Nonnull;
import com.tterrag.blur.Blur;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.renderer.Tessellator;
import net.minecraftforge.common.config.ConfigElement;
import net.minecraftforge.common.config.Configuration;
import net.minecra... | Fix array configs not saving in config GUI | Fix array configs not saving in config GUI | Java | mit | tterrag1098/Blur |
312f0b6b71cbee270e62e68ecebdae30e2b9e044 | src/test/java/info/u_team/u_team_test/init/TestTags.java | src/test/java/info/u_team/u_team_test/init/TestTags.java | package info.u_team.u_team_test.init;
import info.u_team.u_team_core.util.TagUtil;
import info.u_team.u_team_test.TestMod;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.tags.ITag.INamedTag;
public class TestTags {
public static class Blocks {
public static INamedTag<Bl... | package info.u_team.u_team_test.init;
import info.u_team.u_team_core.util.TagUtil;
import info.u_team.u_team_test.TestMod;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.tags.ITag.INamedTag;
public class TestTags {
public static class Blocks {
public static INamedTag<Bl... | Add test test tag 4 to the item tags | Add test test tag 4 to the item tags
| Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
86ac122110e8748c2ba8cb081e65562141610a61 | de.simonscholz.codemodify/src/de/simonscholz/nonjavadoc/handlers/NonJavaDocRemoverHandler.java | de.simonscholz.codemodify/src/de/simonscholz/nonjavadoc/handlers/NonJavaDocRemoverHandler.java | package de.simonscholz.nonjavadoc.handlers;
import javax.inject.Named;
import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.ui.services.IServiceConstants;
import org.eclipse.jface.viewers.IStructuredSelection;
import de.simonscholz.nonjavadoc.jo... | package de.simonscholz.nonjavadoc.handlers;
import javax.inject.Named;
import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.ui.services.IServiceConstants;
import org.eclipse.jface.viewers.IStructuredSelection;
import de.simonscholz.nonjavadoc.jo... | Clean up of handler code | Clean up of handler code
return is not required | Java | epl-1.0 | vogellacompany/codemodify |
dad5bdef36c10012a2633c5a403160226dd0f3c6 | src/main/java/hudson/plugins/git/extensions/impl/LocalBranch.java | src/main/java/hudson/plugins/git/extensions/impl/LocalBranch.java | package hudson.plugins.git.extensions.impl;
import hudson.Extension;
import hudson.Util;
import hudson.plugins.git.extensions.FakeGitSCMExtension;
import hudson.plugins.git.extensions.GitSCMExtensionDescriptor;
import org.kohsuke.stapler.DataBoundConstructor;
/**
* The Git plugin checks code out to a detached head. ... | package hudson.plugins.git.extensions.impl;
import hudson.Extension;
import hudson.Util;
import hudson.plugins.git.extensions.FakeGitSCMExtension;
import hudson.plugins.git.extensions.GitSCMExtensionDescriptor;
import org.kohsuke.stapler.DataBoundConstructor;
/**
* The Git plugin checks code out to a detached head. ... | Remove extra text per pull request comment. | Remove extra text per pull request comment.
| Java | mit | mklein0/git-plugin,v1v/git-plugin,ndeloof/git-plugin,martinda/git-plugin,mklein0/git-plugin,martinda/git-plugin,mlgiroux/git-plugin,jenkinsci/git-plugin,Deveo/git-plugin,MarkEWaite/git-plugin,Deveo/git-plugin,mklein0/git-plugin,jenkinsci/git-plugin,kzantow/git-plugin,MarkEWaite/git-plugin,ndeloof/git-plugin,mlgiroux/gi... |
92d075af393992ccfacf8520bb98bf5bcbdc0124 | org.mwc.cmap.NaturalEarth/src/org/mwc/cmap/naturalearth/preferences/PreferenceInitializer.java | org.mwc.cmap.NaturalEarth/src/org/mwc/cmap/naturalearth/preferences/PreferenceInitializer.java | package org.mwc.cmap.naturalearth.preferences;
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;
import org.mwc.cmap.naturalearth.Activator;
/**
* Class used to initialize default preference values.
*/
public class PreferenceInitializer... | package org.mwc.cmap.naturalearth.preferences;
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;
import org.mwc.cmap.naturalearth.Activator;
/**
* Class used to initialize default preference values.
*/
public class PreferenceInitializer... | Set the default path for NE to be in the project folder. | Set the default path for NE to be in the project folder.
| Java | epl-1.0 | pecko/debrief,pecko/debrief,pecko/debrief,pecko/debrief,pecko/debrief,alastrina123/debrief,alastrina123/debrief,pecko/debrief,theanuradha/debrief,theanuradha/debrief,alastrina123/debrief,alastrina123/debrief,alastrina123/debrief,pecko/debrief,theanuradha/debrief,debrief/debrief,theanuradha/debrief,debrief/debrief,thean... |
558ae749bec1204fd195850827b15584b8157850 | library/src/main/java/com/novoda/downloadmanager/BatchBuilder.java | library/src/main/java/com/novoda/downloadmanager/BatchBuilder.java | package com.novoda.downloadmanager;
/**
* Builds instances of {@link Batch} using a fluent API.
*/
public interface BatchBuilder {
/**
* Sets {@link BatchFileBuilder} to build a {@link Batch} that will download a {@link BatchFile}
* from a given networkAddress.
*
* @param networkAddress to ... | package com.novoda.downloadmanager;
/**
* Builds instances of {@link Batch} using a fluent API.
*/
public interface BatchBuilder {
/**
* Sets {@link BatchFileBuilder} to build a {@link Batch} that will download a {@link BatchFile}
* from a given networkAddress.
*
* @param networkAddress to ... | Add javadoc to batch builder. | Add javadoc to batch builder.
| Java | apache-2.0 | novoda/download-manager |
56e285cdeebc64007e8135b930f43389e038510d | dygraphs-gwt/src/main/java/com/github/timeu/dygraphsgwt/client/callbacks/PointClickCallback.java | dygraphs-gwt/src/main/java/com/github/timeu/dygraphsgwt/client/callbacks/PointClickCallback.java | package com.github.timeu.dygraphsgwt.client.callbacks;
import com.google.gwt.event.dom.client.MouseEvent;
import jsinterop.annotations.JsFunction;
/**
* Created by uemit.seren on 7/30/15.
*/
@FunctionalInterface
@JsFunction
public interface PointClickCallback {
/**
* A function to call when a data point is... | package com.github.timeu.dygraphsgwt.client.callbacks;
import com.google.gwt.dom.client.NativeEvent;
import com.google.gwt.event.dom.client.MouseEvent;
import jsinterop.annotations.JsFunction;
/**
* Created by uemit.seren on 7/30/15.
*/
@FunctionalInterface
@JsFunction
public interface PointClickCallback {
/**
... | Use NativEvent instead of MouseEvent | Bugfix: Use NativEvent instead of MouseEvent
| Java | mit | timeu/dygraphs-gwt,timeu/dygraphs-gwt,timeu/dygraphs-gwt |
357f99c6cb70b3109e8cbcdc697c28f26aaea2f5 | src/main/java/eu/lestard/advanced_bindings/api/StringBindings.java | src/main/java/eu/lestard/advanced_bindings/api/StringBindings.java | package eu.lestard.advanced_bindings.api;
import javafx.beans.binding.Bindings;
import javafx.beans.binding.BooleanBinding;
import javafx.beans.value.ObservableStringValue;
/**
* This class contains custom binding implementations for Strings.
*/
public class StringBindings {
/**
* Creates a boolean bindi... | package eu.lestard.advanced_bindings.api;
import javafx.beans.binding.Bindings;
import javafx.beans.binding.BooleanBinding;
import javafx.beans.value.ObservableValue;
/**
* This class contains custom binding implementations for Strings.
*/
public class StringBindings {
/**
* Creates a boolean binding tha... | Change argument type of regexp binding to ObservableValue<String> | Change argument type of regexp binding to ObservableValue<String>
| Java | apache-2.0 | lestard/advanced-bindings |
ebda4b1073be700f76275a69ba407121e31592d7 | platform/analysis-impl/src/com/intellij/codeInsight/completion/impl/RealPrefixMatchingWeigher.java | platform/analysis-impl/src/com/intellij/codeInsight/completion/impl/RealPrefixMatchingWeigher.java | package com.intellij.codeInsight.completion.impl;
import com.intellij.codeInsight.completion.CompletionService;
import com.intellij.codeInsight.completion.PrefixMatcher;
import com.intellij.codeInsight.lookup.LookupElement;
import com.intellij.codeInsight.lookup.LookupElementWeigher;
import com.intellij.codeInsight.lo... | package com.intellij.codeInsight.completion.impl;
import com.intellij.codeInsight.completion.CompletionService;
import com.intellij.codeInsight.completion.PrefixMatcher;
import com.intellij.codeInsight.lookup.LookupElement;
import com.intellij.codeInsight.lookup.LookupElementWeigher;
import com.intellij.codeInsight.lo... | Fix sign overflow when comparing matchingDegree | [completion] Fix sign overflow when comparing matchingDegree
GitOrigin-RevId: eab238ccd73bbb90590e64477d896cec3194c934 | Java | apache-2.0 | allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int... |
2d8501e4e24b81e04805e73ae7c3f58881245799 | src/main/java/uk/ac/bolton/spaws/model/impl/Paradata.java | src/main/java/uk/ac/bolton/spaws/model/impl/Paradata.java | package uk.ac.bolton.spaws.model.impl;
import uk.ac.bolton.spaws.model.IParadata;
public abstract class Paradata implements IParadata{
private String content;
private String contextUrl;
/* (non-Javadoc)
* @see uk.ac.bolton.spaws.model.IParadata#getContent()
*/
public String getContent() {
return content;... | package uk.ac.bolton.spaws.model.impl;
import uk.ac.bolton.spaws.model.IParadata;
public abstract class Paradata implements IParadata{
private String content;
private String contextUrl;
/* (non-Javadoc)
* @see uk.ac.bolton.spaws.model.IParadata#getContent()
*/
public String getContent() {
//
// We have... | Return an empty string instead of null for getContent() as otherwise this messes up bencoding | Return an empty string instead of null for getContent() as otherwise
this messes up bencoding | Java | apache-2.0 | scottbw/spaws |
586f4068f33412e437d409b90e26a01dc834a43f | integration-tests/gradle/src/test/java/io/quarkus/gradle/devmode/MultiModuleKotlinProjectDevModeTest.java | integration-tests/gradle/src/test/java/io/quarkus/gradle/devmode/MultiModuleKotlinProjectDevModeTest.java | package io.quarkus.gradle.devmode;
import static org.assertj.core.api.Assertions.assertThat;
import com.google.common.collect.ImmutableMap;
@org.junit.jupiter.api.Tag("failsOnJDK18")
public class MultiModuleKotlinProjectDevModeTest extends QuarkusDevGradleTestBase {
@Override
protected String projectDirecto... | package io.quarkus.gradle.devmode;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.jupiter.api.Disabled;
import com.google.common.collect.ImmutableMap;
@Disabled
@org.junit.jupiter.api.Tag("failsOnJDK18")
public class MultiModuleKotlinProjectDevModeTest extends QuarkusDevGradleTestBase {
... | Disable failing kotlin-multi-module gradle test | Disable failing kotlin-multi-module gradle test
| Java | apache-2.0 | quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus |
05f8d1ce3ff4edbf9ee443ec70deacd099bac4df | src/test/java/guitests/SaveCommandTest.java | src/test/java/guitests/SaveCommandTest.java | package guitests;
import static seedu.ezdo.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import java.io.IOException;
import org.junit.Test;
import seedu.ezdo.logic.commands.SaveCommand;
public class SaveCommandTest extends EzDoGuiTest {
private final String validDirectory = "data/test.xml";
privat... | package guitests;
import static seedu.ezdo.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import org.junit.Test;
import seedu.ezdo.logic.commands.SaveCommand;
public class SaveCommandTest extends EzDoGuiTest {
private final String validDirectory = "data/test.xml";
private final String inexistentDire... | Remove unused imports Fix indentation | Remove unused imports
Fix indentation
| Java | mit | CS2103JAN2017-W14-B4/main,CS2103JAN2017-W14-B4/main |
8dd1d56b4307302bf0ebd1687df28cb3cdd3f711 | src/java/org/apache/cassandra/cli/transport/FramedTransportFactory.java | src/java/org/apache/cassandra/cli/transport/FramedTransportFactory.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... | Set max frame size to 15MB in the cli to avoid OOM. Patch by Tyler Hobbs, reviewed by brandonwilliams for CASSANDRA-4969 | Set max frame size to 15MB in the cli to avoid OOM.
Patch by Tyler Hobbs, reviewed by brandonwilliams for CASSANDRA-4969
| Java | apache-2.0 | sbtourist/cassandra,mshuler/cassandra,helena/cassandra,mt0803/cassandra,bpupadhyaya/cassandra,aureagle/cassandra,Instagram/cassandra,weideng1/cassandra,bcoverston/cassandra,instaclustr/cassandra,jasobrown/cassandra,JeremiahDJordan/cassandra,snazy/cassandra,nutbunnies/cassandra,HidemotoNakada/cassandra-udf,miguel0afd/ca... |
738ac9196dff8f38fc9b90cf4f844775b6531d66 | yang/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/JSONEmptyCodec.java | yang/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/JSONEmptyCodec.java | /*
* Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the terms of the Eclipse
* Public License v1.0 which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.o... | /*
* Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org... | Fix license header violations in yang-data-codec-gson | Fix license header violations in yang-data-codec-gson
Change-Id: Ia5f799e64b213f20230c2eb03ad572a1c51bd092
Signed-off-by: Thanh Ha <09ea4d3a79c8bee41a16519f6a431f6bc0fd8d6f@linuxfoundation.org>
| Java | epl-1.0 | NovusTheory/yangtools,opendaylight/yangtools,opendaylight/yangtools,522986491/yangtools |
013b4cd154347b5940870c80d796d6acc6a076a5 | optaplanner-benchmark/src/main/java/org/optaplanner/benchmark/impl/ranking/SubSingleBenchmarkRankBasedComparator.java | optaplanner-benchmark/src/main/java/org/optaplanner/benchmark/impl/ranking/SubSingleBenchmarkRankBasedComparator.java | /*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | /*
* Copyright 2020 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Fix NPE when benchmark result is null | Fix NPE when benchmark result is null
| Java | apache-2.0 | droolsjbpm/optaplanner,baldimir/optaplanner,baldimir/optaplanner,droolsjbpm/optaplanner,tkobayas/optaplanner,tkobayas/optaplanner,droolsjbpm/optaplanner,tkobayas/optaplanner,tkobayas/optaplanner,baldimir/optaplanner,droolsjbpm/optaplanner,baldimir/optaplanner |
0b4c5505737d07c23f41927e54936e032eb422dd | src/main/java/io/cryptolens/models/DataObject.java | src/main/java/io/cryptolens/models/DataObject.java | package io.cryptolens.models;
import com.google.gson.annotations.SerializedName;
public class DataObject {
@SerializedName(value = "id", alternate = {"Id"})
public int Id;
@SerializedName(value = "name", alternate = {"Name"})
public String Name;
@SerializedName(value = "stringValue", alternate = {... | package io.cryptolens.models;
import com.google.gson.annotations.SerializedName;
public class DataObject {
/**
* The unique identifier of the data object.
*/
@SerializedName(value = "id", alternate = {"Id"})
public int Id;
/**
* The name of the data object (max 10 chars).
*/
@... | Update docs for Data object | Update docs for Data object
| Java | bsd-3-clause | artemlos/SKGL-Extension-for-Java,SerialKeyManager/SKGL-Extension-for-Java,artemlos/SKGL-Extension-for-Java,artemlos/SKGL-Extension-for-Java,SerialKeyManager/SKGL-Extension-for-Java,SerialKeyManager/SKGL-Extension-for-Java |
08dba183a3e7f08db526e63b91136575163a4252 | src/test/java/edu/chl/proton/model/FolderTest.java | src/test/java/edu/chl/proton/model/FolderTest.java | package edu.chl.proton.model;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
/**
* @author Stina Werme
* Created by stinawerme on 11/05/17.
*/
public class FolderTest {
@Test
public void removeFolderTest() {
Folder parent = new Folder("parent");
Folder child = new Fol... | package edu.chl.proton.model;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
/**
* @author Stina Werme
* Created by stinawerme on 11/05/17.
*/
public class FolderTest {
@Test
public void removeFolderTest() {
Folder parent = new Folder("parent");
Folder child = new Fol... | Add test for addFile and addFolder | Add test for addFile and addFolder
| Java | agpl-3.0 | Levis92/proton-text |
696831b37d67eaaa42e033e080dcc95d93b3fc56 | d02/d02s05/d02s05e02-real-database/src/main/java/net/safedata/springboot/training/d02/s05/repository/ProductRepository.java | d02/d02s05/d02s05e02-real-database/src/main/java/net/safedata/springboot/training/d02/s05/repository/ProductRepository.java | package net.safedata.springboot.training.d02.s05.repository;
import net.safedata.springboot.training.d02.s05.model.Product;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springframework... | package net.safedata.springboot.training.d02.s05.repository;
import net.safedata.springboot.training.d02.s05.model.Product;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springframework... | Use Optional return values for all the queries | [improve] Use Optional return values for all the queries
| Java | apache-2.0 | bogdansolga/spring-boot-training,bogdansolga/spring-boot-training |
e68fc4e55c26c185a6f65a011689abb790112d59 | dev/plugins/hu.elte.txtuml.api.model.execution/src/hu/elte/txtuml/api/model/execution/impl/seqdiag/fragments/execstrats/ExecutionStrategySeq.java | dev/plugins/hu.elte.txtuml.api.model.execution/src/hu/elte/txtuml/api/model/execution/impl/seqdiag/fragments/execstrats/ExecutionStrategySeq.java | package hu.elte.txtuml.api.model.execution.impl.seqdiag.fragments.execstrats;
import java.util.Queue;
import hu.elte.txtuml.api.model.seqdiag.BaseCombinedFragmentWrapper;
import hu.elte.txtuml.api.model.seqdiag.BaseFragmentWrapper;
import hu.elte.txtuml.api.model.seqdiag.BaseMessageWrapper;
public class ExecutionStr... | package hu.elte.txtuml.api.model.execution.impl.seqdiag.fragments.execstrats;
import java.util.Queue;
import hu.elte.txtuml.api.model.seqdiag.BaseCombinedFragmentWrapper;
import hu.elte.txtuml.api.model.seqdiag.BaseFragmentWrapper;
import hu.elte.txtuml.api.model.seqdiag.BaseMessageWrapper;
public class ExecutionStr... | Fix a bug with normal execution mode | Fix a bug with normal execution mode
If all of the messages of a CombinedFragment got processed and deleted
from the queue during the execution, null pointer exceptions where thrown
because the fragment itself wasn't deleted from the queue and the method tried to process the next message of the empty fragment.
| Java | epl-1.0 | ELTE-Soft/txtUML,ELTE-Soft/txtUML,ELTE-Soft/txtUML,ELTE-Soft/txtUML |
1ccd7a86064e14f4f19292961fadb04c0e1f0d24 | src/main/java/ch/tkuhn/nanopub/validator/DownloadTrustyResource.java | src/main/java/ch/tkuhn/nanopub/validator/DownloadTrustyResource.java | package ch.tkuhn.nanopub.validator;
import org.apache.wicket.request.http.WebResponse;
import org.apache.wicket.request.resource.IResource;
import org.nanopub.Nanopub;
import org.nanopub.NanopubUtils;
import org.openrdf.rio.RDFFormat;
import net.trustyuri.rdf.TransformNanopub;
public class DownloadTrustyResource imp... | package ch.tkuhn.nanopub.validator;
import org.apache.wicket.request.http.WebResponse;
import org.apache.wicket.request.resource.IResource;
import org.nanopub.Nanopub;
import org.nanopub.NanopubUtils;
import org.openrdf.rio.RDFFormat;
import net.trustyuri.rdf.TransformNanopub;
public class DownloadTrustyResource imp... | Update to latest version of trusty-URI | Update to latest version of trusty-URI | Java | mit | tkuhn/nanopub-validator,tkuhn/nanopub-validator |
61b046e3d1041ea207f790d7893b6960111b6be4 | src/main/java/com/github/tomakehurst/wiremock/common/BinaryFile.java | src/main/java/com/github/tomakehurst/wiremock/common/BinaryFile.java | /*
* Copyright (C) 2011 Thomas Akehurst
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | /*
* Copyright (C) 2011 Thomas Akehurst
*
* 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... | Make sure we close files after having read them (causes tests to fail otherwise and is generally good practice) | Make sure we close files after having read them (causes tests to fail otherwise and is generally good practice)
| Java | apache-2.0 | tricker/wiremock,doughertym/wiremock,thomasandersen77/wiremock,thomasandersen77/wiremock,marcingrzejszczak/wiremock,tomakehurst/wiremock,dlaha21/wiremock,doughertym/wiremock,dlaha21/wiremock,tricker/wiremock,szpak/wiremock,marcingrzejszczak/wiremock,tomakehurst/wiremock,edgarvonk/wiremock,edgarvonk/wiremock,tomakehurst... |
7f43502efdf676bc5c6adb7626c941e2ba9b486a | src/main/java/org/trustedanalytics/les/Application.java | src/main/java/org/trustedanalytics/les/Application.java | /**
* Copyright (c) 2015 Intel Corporation
*
* 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 ... | /**
* Copyright (c) 2015 Intel Corporation
*
* 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 ... | Fix MongoDB auto configuration issue in integration tests | Fix MongoDB auto configuration issue in integration tests
| Java | apache-2.0 | trustedanalytics/latest-events-service,trustedanalytics/latest-events-service |
e00517a02901487999b04a3d8ca88142aac60604 | common/src/main/java/org/jboss/da/common/json/DAConfig.java | common/src/main/java/org/jboss/da/common/json/DAConfig.java | package org.jboss.da.common.json;
import lombok.Getter;
import lombok.Setter;
public class DAConfig extends AbstractModuleConfig {
@Getter
@Setter
private String keycloakServer;
@Getter
@Setter
private String keycloakClientid;
@Getter
@Setter
private String keycloakUsername;
... | package org.jboss.da.common.json;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
@JsonIgnoreProperties(ignoreUnknown = true)
public class DAConfig extends AbstractModuleConfig {
@Getter
@Setter
private String keycloakServer;
@Getter
@Sette... | Add ignore for unknown json properties in config file | Add ignore for unknown json properties in config file
| Java | apache-2.0 | janinko/dependency-analysis,janinko/dependency-analysis,janinko/dependency-analysis,project-ncl/dependency-analysis,project-ncl/dependency-analysis,janinko/dependency-analysis,janinko/dependency-analysis,project-ncl/dependency-analysis |
d8bda9c6729e0da43296fd0dae2c29f6e96e2826 | 1-algorithm/13-leetcode/java/src/lintcode/bst/MyBst.java | 1-algorithm/13-leetcode/java/src/lintcode/bst/MyBst.java | package lintcode.bst;
import fundamentals.tree.TreeNode;
/**
*/
public class MyBst {
// 85-Insert Node in a Binary Search Tree
public TreeNode insertNode(TreeNode root, TreeNode node) {
if (root == null) return node;
if (node.val < root.val) {
root.left = insertNode(root.left, no... | package lintcode.bst;
import fundamentals.tree.TreeNode;
/**
*/
public class MyBst {
// 85-Insert Node in a Binary Search Tree
public TreeNode insertNode(TreeNode root, TreeNode node) {
if (root == null) return node;
if (node.val < root.val) {
root.left = insertNode(root.left, no... | Implement my binary search tree | Implement my binary search tree
| Java | mit | cdai/interview |
e3e3be6d5fde6cf02c26dad354a6706896d2bdf1 | 1.7.10/src/main/java/fr/ourten/brokkgui/wrapper/BrokkGuiWrapperMod.java | 1.7.10/src/main/java/fr/ourten/brokkgui/wrapper/BrokkGuiWrapperMod.java | package fr.ourten.brokkgui.wrapper;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import fr.ourten.brokkgui.BrokkGuiPlatform;
/**
* @author Ourten 5 oct. 2016
*/
@Mod(modid = BrokkGuiWrapperMod.MODID, version = BrokkGuiWrappe... | package fr.ourten.brokkgui.wrapper;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import fr.ourten.brokkgui.BrokkGuiPlatform;
/**
* @author Ourten 5 oct. 2016
*/
@Mod(modid = BrokkGuiWrapperMod.MODID, version = BrokkGuiWrappe... | Fix 1.7 wrapper instancing minecraft client class | Fix 1.7 wrapper instancing minecraft client class
| Java | apache-2.0 | Phenix246/BrokkGUI,ZeAmateis/BrokkGUI,Yggard/BrokkGUI,ZeAmateis/BrokkGUI |
318bf93ba2a790e0b45763f73e26c6b0bd68af12 | src/main/java/com/grayben/riskExtractor/htmlScorer/TagAndAttribute.java | src/main/java/com/grayben/riskExtractor/htmlScorer/TagAndAttribute.java | package com.grayben.riskExtractor.htmlScorer;
import org.jsoup.nodes.Attribute;
import org.jsoup.parser.Tag;
public class TagAndAttribute {
private final Tag tag;
private final Attribute attribute;
public Tag getTag() {
return tag;
}
public Attribute getAttribute() {
return attribute;
... | package com.grayben.riskExtractor.htmlScorer;
import org.jsoup.nodes.Attribute;
import org.jsoup.parser.Tag;
public class TagAndAttribute {
private final Tag tag;
private final Attribute attribute;
public Tag getTag() {
return tag;
}
public Attribute getAttribute() {
return attribute;
... | Make throw E on null constructor arguments | Make throw E on null constructor arguments
| Java | mit | grayben/10K-item-extractor,grayben/10K-item-extractor |
bef5bd2bfecf4f2d0665a6bcafdf2ed2a2e99911 | src/main/java/com/mixpanel/android/viewcrawler/PropertyDescription.java | src/main/java/com/mixpanel/android/viewcrawler/PropertyDescription.java | package com.mixpanel.android.viewcrawler;
/**
* Created by joe on 8/29/14.
*/
/* package */ class PropertyDescription {
public PropertyDescription(String name, Class targetClass, Caller accessor, String mutatorName) {
this.name = name;
this.targetClass = targetClass;
this.accessor = accesso... | package com.mixpanel.android.viewcrawler;
/* package */ class PropertyDescription {
public PropertyDescription(String name, Class targetClass, Caller accessor, String mutatorName) {
this.name = name;
this.targetClass = targetClass;
this.accessor = accessor;
mMutatorName = mutatorN... | Remove annoying "Created by" comment | Remove annoying "Created by" comment
| Java | apache-2.0 | danmcknight/mixpanel-android,LLin233/mixpanel-android,engvik/mixpanel-android,danmcknight/mixpanel-android,Flutterbee/mixpanel-android,kevinmost/mixpanel-android,omadahealth/mixpanel-android,LLin233/mixpanel-android,palaniyappanBala/mixpanel-android,omadahealth/mixpanel-android,erpragatisingh/mixpanel-android,dreamseek... |
39af1637dc9d8cbf2e796305a87cbd5367479090 | app/src/main/java/me/devsaki/hentoid/parsers/images/ASMHentaiParser.java | app/src/main/java/me/devsaki/hentoid/parsers/images/ASMHentaiParser.java | package me.devsaki.hentoid.parsers.images;
import androidx.annotation.NonNull;
import org.jsoup.nodes.Document;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import me.devsaki.hentoid.database.domains.Content;
import static me.devsaki.hentoid.util.network.HttpHelper.getOnlineDocume... | package me.devsaki.hentoid.parsers.images;
import androidx.annotation.NonNull;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import me.devsaki.hentoid.database.domains.Content;
import static me.devsaki.hentoid.util.... | Align with ASM Comics layout (which is the old ASM Hentai Layout...) | Align with ASM Comics layout (which is the old ASM Hentai Layout...)
| Java | apache-2.0 | AVnetWS/Hentoid,AVnetWS/Hentoid,AVnetWS/Hentoid |
1a8f67216bd712fb9712bd5c72af5020d0240b6b | xstream/src/test/com/thoughtworks/acceptance/someobjects/ZConverter.java | xstream/src/test/com/thoughtworks/acceptance/someobjects/ZConverter.java | package com.thoughtworks.acceptance.someobjects;
import com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter;
public class ZConverter extends AbstractSingleValueConverter {
public boolean canConvert(Class type) {
return type.equals(Z.class);
}
public Object fromString(String st... | package com.thoughtworks.acceptance.someobjects;
import com.thoughtworks.xstream.converters.basic.AbstractBasicConverter;
public class ZConverter extends AbstractBasicConverter {
public boolean canConvert(Class type) {
return type.equals(Z.class);
}
protected Object fromString(String str) {
... | Revert to 1.1.1 converter ... it is part of compatibility test. | Revert to 1.1.1 converter ... it is part of compatibility test. | Java | bsd-3-clause | codehaus/xstream,codehaus/xstream |
9f48c98cd35fdbffe738e583f3ffe2f4bb971175 | app/src/main/java/com/cmput301/cia/activities/HabitEventViewActivity.java | app/src/main/java/com/cmput301/cia/activities/HabitEventViewActivity.java | /*
* Copyright (c) 2017 CMPUT301F17T15. This project is distributed under the MIT license.
*/
package com.cmput301.cia.activities;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.EditText;
import android.widget.TextView;
import com.cmput301.cia.R;
/**
* created by... | /*
* Copyright (c) 2017 CMPUT301F17T15. This project is distributed under the MIT license.
*/
package com.cmput301.cia.activities;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.EditText;
import android.widget.TextView;
import com.cmput301.cia.R;
/**
* created by... | Add habit event view list activity | Add habit event view list activity
| Java | mit | CMPUT301F17T15/CIA |
afc84c6d66e0f6ca0c975a1831d2ed58f9f45972 | src/java/org/jsimpledb/parse/expr/VarNode.java | src/java/org/jsimpledb/parse/expr/VarNode.java |
/*
* Copyright (C) 2014 Archie L. Cobbs. All rights reserved.
*
* $Id$
*/
package org.jsimpledb.parse.expr;
import org.jsimpledb.parse.ParseSession;
/**
* {@link Node} representing a parsed {@link ParseSession} variable.
*
* @see ParseSession#getVars
*/
public class VarNode extends ConstNode {
/**
... |
/*
* Copyright (C) 2014 Archie L. Cobbs. All rights reserved.
*
* $Id$
*/
package org.jsimpledb.parse.expr;
import org.jsimpledb.parse.ParseSession;
/**
* {@link Node} representing a parsed {@link ParseSession} variable.
*
* @see ParseSession#getVars
*/
public class VarNode extends ConstNode {
/**
... | Remove cast made redundant by r780. | Remove cast made redundant by r780.
| Java | apache-2.0 | archiecobbs/jsimpledb,tempbottle/jsimpledb,permazen/permazen,mmayorivera/jsimpledb,tempbottle/jsimpledb,mmayorivera/jsimpledb,gmsconstantino/jsimpledb,permazen/permazen,tempbottle/jsimpledb,archiecobbs/jsimpledb,archiecobbs/jsimpledb,mmayorivera/jsimpledb,gmsconstantino/jsimpledb,gmsconstantino/jsimpledb,permazen/perma... |
58eeb76d343ce256fb655432d8675f70151ab0dd | src/main/java/edu/cwru/sicu_sms/Constants.java | src/main/java/edu/cwru/sicu_sms/Constants.java | /* *\
** SICU Stress Measurement System **
** Project P04 | C380 Team A **
** EBME 380: Biomedical Engineering Design Experience **
** ... | /* *\
** SICU Stress Measurement System **
** Project P04 | C380 Team A **
** EBME 380: Biomedical Engineering Design Experience **
** ... | Mark 'TIME_WINDOW' field as deprecated | Mark 'TIME_WINDOW' field as deprecated
| Java | apache-2.0 | SICU-Stress-Measurement-System/frontend-java |
f7eee54a7bc29dd0a0a5cb2b030317f8bff19ce4 | jest-common/src/test/java/io/searchbox/indices/StatsTest.java | jest-common/src/test/java/io/searchbox/indices/StatsTest.java | package io.searchbox.indices;
import io.searchbox.action.Action;
import org.junit.Test;
import java.net.URLDecoder;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
public class StatsTest {
@Test
public void testBasicUriGeneration() {
Stats stats = new St... | package io.searchbox.indices;
import io.searchbox.action.Action;
import org.junit.Test;
import java.net.URLDecoder;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
public class StatsTest {
@Test
public void testBasicUriGeneration() {
Stats stats = new St... | Add test to removeCleanApiParameter method | Add test to removeCleanApiParameter method
| Java | apache-2.0 | searchbox-io/Jest |
9c2707174666af42a680eaca42bd0a435711241d | src/com/simplenote/android/Constants.java | src/com/simplenote/android/Constants.java | package com.simplenote.android;
public class Constants {
/** Name of stored preferences */
public static final String PREFS_NAME = "SimpleNotePrefs";
/** Logging tag prefix */
public static final String TAG = "SimpleNote:";
// Message Codes
public static final int MESSAGE_UPDATE_NOTE = 12398;
// API Base URL... | package com.simplenote.android;
public class Constants {
/** Name of stored preferences */
public static final String PREFS_NAME = "SimpleNotePrefs";
/** Logging tag prefix */
public static final String TAG = "SimpleNote:";
// Message Codes
public static final int MESSAGE_UPDATE_NOTE = 12398;
// Activity for r... | Add Constant for Loging request (used with startActivityForResult) | Add Constant for Loging request (used with startActivityForResult)
| Java | mit | bryanjswift/simplenote-android |
93691a5572245cde0526b175960d5cfbe331395a | src/java/org/apache/commons/codec/BinaryDecoder.java | src/java/org/apache/commons/codec/BinaryDecoder.java | /*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | /*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | Replace custom author tags with @author Apache Software Foundation. | Replace custom author tags with @author Apache Software Foundation.
git-svn-id: 774b6be6af7f353471b728afb213ebe1be89b277@130378 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | mohanaraosv/commons-codec,mohanaraosv/commons-codec,adrie4mac/commons-codec,adrie4mac/commons-codec,mohanaraosv/commons-codec,apache/commons-codec,adrie4mac/commons-codec,apache/commons-codec,apache/commons-codec |
81fad6c79c385aabe458b21183fd6d166d79564d | src/main/java/com/dhemery/victor/IosApplication.java | src/main/java/com/dhemery/victor/IosApplication.java | package com.dhemery.victor;
/**
* Represents an application running on an iOS device.
* @author Dale Emery
*
*/
public interface IosApplication {
public enum Orientation {
LANDSCAPE,
PORTRAIT,
UNKNOWN,
}
/**
* Send a message to the application delegate.
* @param name the name of the message ... | package com.dhemery.victor;
/**
* Represents an application running on an iOS device.
* @author Dale Emery
*
*/
public interface IosApplication {
public enum Orientation {
LANDSCAPE,
PORTRAIT,
UNKNOWN,
}
/**
* Send a message to the application delegate.
* @param name the name of the message ... | Clean up APIs of Frank classes. | Clean up APIs of Frank classes.
| Java | mit | dhemery/victor,dhemery/victor |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.