code stringlengths 3 1.04M | repo_name stringlengths 5 109 | path stringlengths 6 306 | language stringclasses 1
value | license stringclasses 15
values | size int64 3 1.04M |
|---|---|---|---|---|---|
package org.highj.data.structural.compose;
import org.derive4j.hkt.__;
import org.highj.Hkt;
import org.highj.data.structural.Compose;
import org.highj.typeclass1.functor.Functor;
import java.util.function.Function;
public interface ComposeFunctor<F, G> extends Functor<__<__<Compose.µ, F>, G>> {
Functor<F> getF... | highj/highj | src/main/java/org/highj/data/structural/compose/ComposeFunctor.java | Java | mit | 701 |
package BESA.Mobile.Agents.PostMan.State;
import BESA.Kernel.Agent.StateBESA;
import BESA.Mobile.ConnectionsAdministrator.CommunicationChannelDirectoryBPO;
import BESA.Mobile.Exceptions.ExceptionBESAConnectionsDirectoryFailedBPO;
import BESA.Mobile.Message.MessageBPO;
/**
*
* @author Andrea Barraza
*/
public class... | Coregraph/Ayllu | JigSaw - AYPUY - CS/BESA3/BESA3-SRC/BPOBESA/src/BESA/Mobile/Agents/PostMan/State/PostManAgentStateBPO.java | Java | mit | 1,938 |
package re.agiledesign.mp2.test;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.junit.Ignore;
import org.junit.Test;
import re.agiledesign.mp2.exception.ParsingException;
public class FunctionTest extends MP2Test {
@Test
public void lambda0() {
assertEval(... | gcnew/MP2 | tests/re/agiledesign/mp2/test/FunctionTest.java | Java | mit | 4,843 |
package hudson.plugins.jira;
import com.atlassian.jira.rest.client.api.domain.BasicComponent;
import com.atlassian.jira.rest.client.api.domain.Component;
import com.atlassian.jira.rest.client.api.domain.Issue;
import com.atlassian.jira.rest.client.api.domain.Status;
import com.google.common.base.Splitter;
import com.g... | deki/jira-plugin | src/main/java/hudson/plugins/jira/JiraCreateIssueNotifier.java | Java | mit | 15,894 |
package com.appkefu.demo2.activity;
import java.util.ArrayList;
import com.appkefu.demo2.R;
import com.appkefu.demo2.adapter.ApiAdapter;
import com.appkefu.demo2.entity.ApiEntity;
import com.appkefu.lib.interfaces.KFAPIs;
import com.appkefu.lib.interfaces.KFCallBack;
import com.appkefu.lib.service.KFMainService;
impo... | pengjinning/AppKeFu_Android_Demo_V4 | EclipseDemo/src/com/appkefu/demo2/activity/MainActivity.java | Java | mit | 18,565 |
package dimitris.android.app.db;
import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.os.AsyncTask;
/**
* Created by dimitris on 21/07/16.
*/
public class ReviewScheduleFetchTask extends AsyncTask<String,Void,Void>{
priva... | gdimitris/ChessPuzzlerAndroid | app/src/main/java/dimitris/android/app/db/ReviewScheduleFetchTask.java | Java | mit | 1,001 |
package org.amc.game.chessserver;
import static org.mockito.Mockito.*;
import org.amc.DAOException;
import org.amc.dao.ServerChessGameDAO;
import org.amc.game.chess.ChessGameFixture;
import org.amc.game.chess.HumanPlayer;
import org.amc.game.chess.Player;
import org.amc.game.chessserver.AbstractServerChessGame.Server... | subwoofer359/AMCChessGame | src/test/java/org/amc/game/chessserver/UrlViewChessGameTest.java | Java | mit | 6,802 |
package game.network.client;
import game.network.DataPacket;
import game.network.PlayerData;
import game.player.Player;
import java.io.IOException;
import java.io.InputStream;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.Socket;
import java.net.SocketExce... | anubiann00b/StarfighterOld | src/game/network/client/NetworkHandler.java | Java | mit | 4,553 |
/*
* This file is part of Tall Worlds, licensed under the MIT License (MIT).
*
* Copyright (c) 2014 Tall Worlds
*
* 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 restricti... | TallWorlds/CubicChunks | src/main/cubicchunks/server/WorldServerContext.java | Java | mit | 4,232 |
package co.uk.davemcqueen;
import android.app.Activity;
import android.os.Bundle;
import android.content.Intent;
import android.net.Uri;
import android.provider.ContactsContract;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;
public cla... | david-mcqueen/Android | Legacy Android Applications/Intents/src/co/uk/davemcqueen/IntentsActivity.java | Java | mit | 3,111 |
package p03_coffeeMachine;
public enum Coin {
ONE(1), TWO(2), FIVE(5), TEN(10), TWENTY(20), FIFTY(50);
private int value;
Coin(int value) {
this.value = value;
}
public int getValue() {
return value;
}
@Override
public String toString() {
return this.name().c... | ivelin1936/Studing-SoftUni- | Java Fundamentals/Java OOP Advanced/Lab - Enumirations and Annotations/src/p03_coffeeMachine/Coin.java | Java | mit | 379 |
package com.kujtimhoxha.plugins.todo.finder;
import org.junit.Assert;
import org.junit.Test;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import static org.junit.Assert.*;
/**
* FileFinderTest.
*
* @author Kujtim Hoxha (kujtimii.h@gmail.com)
* @version $Id$
* @since 0.1
*/
public cl... | kujtimiihoxha/todo-issue | src/test/java/com/kujtimhoxha/plugins/todo/finder/FileFinderTest.java | Java | mit | 2,016 |
package twilightforest.entity.passive;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.DataWatcher;
import net.minecraft.entity.Entity;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.ai.EntityAILookId... | AFR0N1NJAZ/Twilight-Forest-Rewrite | src/main/java/ninjaz/twilight/common/entities/passive/EntityTFTinyBird.java | Java | mit | 8,257 |
package app.drawing;
import java.io.*;
import java.awt.*;
import java.awt.geom.*;
import java.awt.image.*;
import javax.imageio.*;
/**
* This class implements a image drawing.
* Defines draw methods that paint the image to
* the graphics context. Enables transformations.
*/
public class ImageDrawing implements Dr... | EricSekyere/CSE3461-SketchPad | src/app/drawing/ImageDrawing.java | Java | mit | 6,414 |
class Data1 {
final int x;
String name;
@java.beans.ConstructorProperties({"x"})
@java.lang.SuppressWarnings("all")
public Data1(final int x) {
this.x = x;
}
@java.lang.SuppressWarnings("all")
public int getX() {
return this.x;
}
@java.lang.SuppressWarnings("all")
public String getName() {
return this.... | arielnetworks/lombok | test/transform/resource/after-delombok/DataPlain.java | Java | mit | 6,596 |
/**
* The MIT License (MIT)
*
* Copyright (c) 2016 eolang.org
*
* 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, ... | g4s8/eo | eo-compiler/src/main/java/org/eolang/compiler/syntax/package-info.java | Java | mit | 1,295 |
package model;
import java.lang.reflect.InvocationTargetException;
import java.util.AbstractMap.SimpleEntry;
import java.util.ArrayList;
import java.util.ConcurrentModificationException;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
imp... | calliem/SLogo | src/model/Parser.java | Java | mit | 7,945 |
package com.conveyal.gtfs.error;
import com.conveyal.gtfs.validator.model.DuplicateStops;
import java.io.Serializable;
/** Indicates that a stop exists more than once in the feed. */
public class DuplicateStopError extends GTFSError implements Serializable {
public static final long serialVersionUID = 1L;
p... | conveyal/analysis-backend | src/main/java/com/conveyal/gtfs/error/DuplicateStopError.java | Java | mit | 772 |
package graphql;
import graphql.execution.DataFetcherResult;
import graphql.execution.ResultPath;
import graphql.language.SourceLocation;
import graphql.schema.DataFetchingEnvironment;
import javax.annotation.Nullable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import static graphql.Ass... | graphql-java/graphql-java | src/main/java/graphql/GraphqlErrorBuilder.java | Java | mit | 5,448 |
package com.spring.impl;
import com.spring.intf.Instrument;
public class Saxophone implements Instrument {
public Saxophone() {
}
@Override
public void play() {
System.out.println("PLING PLING PLING");
}
}
| kamalbindra14/Learning | src/com/spring/impl/Saxophone.java | Java | mit | 240 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package CartTest;
import com.emart.controllers.CurrentItem;
import com.emart.controllers.ShoppingCart;
import com.pojos.Product;
impo... | sparth9/E-MART | test/CartTest/AddtoCartTest.java | Java | mit | 1,964 |
/*******************************************************************************
* Copyright (c) 2014, Phenix246
*
* This work is made available under the terms of the Creative Commons Attribution License:
* http://creativecommons.org/licenses/by-nc-sa/4.0/deed.en
* Contact the author for use the sources
*
... | Phenix246/Blaze_Land_Essential | common/fr/blaze_empire/phenix246/blaze_land_essential/network/packet/PacketPlayerMoney.java | Java | mit | 3,814 |
/**
*/
package isostdisois_13584_32ed_1techxmlschemaontomlSimplified;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>INTTYPE</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link isostdisois_13584_32ed_1tec... | patrickneubauer/XMLIntellEdit | xmlintelledit/xmltext/src/main/java/isostdisois_13584_32ed_1techxmlschemaontomlSimplified/INTTYPE.java | Java | mit | 1,851 |
package com.ezextended.util;
/** A more useful integer list */
public class IntList extends JointList<Integer> {
public IntList(){
super();
}
/** Returns the average of the numbers in the list */
public int average() {
int a = 0;
for(int i : this) {
a += i;
}
return a / this.size();
}
/** retu... | sblectric/EZExtended | src/main/java/com/ezextended/util/IntList.java | Java | mit | 1,050 |
package mntone.univschedule.core;
import org.json.JSONObject;
import java.util.Date;
/**
* Class
*/
public final class Class
{
private final String mHash;
private final Date mDate;
private final Period mPeriod;
private final String mSubject;
private final String mCampusName;
private final String mDepartment;... | mntone/UniversityScheduleClient | JVM/univschedule-core/src/main/java/mntone/univschedule/core/Class.java | Java | mit | 2,888 |
package com.chrisfoxleyevans;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@RequestMapping("/")
public class IndexC... | cfoxleyevans/SpringMVCTemplate | src/main/java/com/chrisfoxleyevans/IndexController.java | Java | mit | 473 |
package environment;
/**
* Created by 付旭东 on 2017/3/17.
*/
/**
* 属性和函数都需要提供地址,所以将这个函数抽提为一个接口
*/
public interface IAddressable {
Address getAddress();
}
| XudongFu/evolution | src/environment/IAddressable.java | Java | mit | 222 |
/*
* Copyright (c) 2013-2015 Falko Schumann <www.muspellheim.de>
* Released under the terms of the MIT License.
*/
package de.muspellheim.signalslot;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Ported Qt simple example of signals and slots to Java.
*
* @author Falko Schumann <falko.schum... | falkoschumann/signalslot4java | src/test/java/de/muspellheim/signalslot/CounterSignalSlotTest.java | Java | mit | 5,252 |
/*
* The MIT License (MIT)
*
* Copyright (c) 2016 Rojoss <http://jroossien.com>
* Copyright (c) 2016 contributors
*
* 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... | Rojoss/Boxx | src/main/java/com/jroossien/boxx/options/single/EntityStackO.java | Java | mit | 2,688 |
package org.jabref.model.pdf.search;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
public final class PdfSearchResults {
private final List<SearchResult> searchResults;
public PdfSearchResults(List<SearchResult> search) {
this.searchResult... | JabRef/jabref | src/main/java/org/jabref/model/pdf/search/PdfSearchResults.java | Java | mit | 1,539 |
package mono;
import java.io.*;
import java.lang.String;
import java.util.Locale;
import java.util.HashSet;
import java.util.zip.*;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.res.AssetManager;
import android.util.Log;
import mono.and... | Chirojeugd-Vlaanderen/ChiroApp | ChiroAppDev/obj/Release/android/src/mono/MonoPackageManager.java | Java | mit | 1,976 |
package com.resources;
import java.util.Random;
import com.lac.annotations.Resource;
@Resource
public class Barbero2 {
int n = 2;
int countClientes = 0;
int cantMax = 1;
int cantMin = 0;
Random rand = new Random();
public void sentarCliente() throws InterruptedException{
Random rand = new Random();
cou... | LAC-UNC/ChimpStudyCases | Barberia/src/com/resources/Barbero2.java | Java | mit | 2,532 |
package oreilly.ch05;
import gov.nasa.jpf.awt.UIActionTree;
import gov.nasa.jpf.util.event.Event;
public class JToggleButtonTest extends UIActionTree {
@Override
public Event createEventTree() {
return sequence(
click("$Press_Me", true)
);
}
}
| plum-umd/pasket | example/gui/src/oreilly/ch05/JToggleButtonTest.java | Java | mit | 269 |
import java.util.*;
class Solution {
private static int B;
private static int H;
private static boolean flag = false;
static {
Scanner stdin = new Scanner(System.in);
B = stdin.nextInt();
H = stdin.nextInt();
flag = B > 0 && H > 0;
if(!flag) {
System.... | PaulNoth/hackerrank | practice/java/introduction/java_static_initializer_block/Solution.java | Java | mit | 581 |
package com.swandiggy.poe4j.gui.log;
import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.ext.spring.ApplicationContextHolder;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @author Jacob Swanson
* ... | Jacob-Swanson/poe4j | poe4j-gui/src/main/java/com/swandiggy/poe4j/gui/log/LogConfig.java | Java | mit | 925 |
package com.javarush.task.task09.task0913;
import java.io.FileNotFoundException;
import java.net.URISyntaxException;
/*
Исключения. Просто исключения.
*/
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
try {
method1();
... | Sukora-Stas/JavaRushTasks | 1.JavaSyntax/src/com/javarush/task/task09/task0913/Solution.java | Java | mit | 958 |
package seedu.tache.storage;
import java.io.IOException;
import java.util.Optional;
import java.util.logging.Logger;
import com.google.common.eventbus.Subscribe;
import seedu.tache.commons.core.ComponentManager;
import seedu.tache.commons.core.LogsCenter;
import seedu.tache.commons.events.model.TaskManagerChangedEve... | CS2103JAN2017-T09-B4/main | src/main/java/seedu/tache/storage/StorageManager.java | Java | mit | 3,735 |
package guitests;
import org.junit.Test;
import seedu.task.testutil.TestTask;
import seedu.task.testutil.TestUtil;
import static org.junit.Assert.assertTrue;
import static seedu.task.logic.commands.DeleteCommand.MESSAGE_DELETE_TASK_SUCCESS;
public class DeleteCommandTest extends TaskManagerGuiTest {
@Test
... | CS2103AUG2016-T17-C3/main | src/test/java/guitests/DeleteCommandTest.java | Java | mit | 2,199 |
package test.java.PageObject;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class WindowsManage {
private WebDriver driver;
public WebDriver getAndOpenWindows(String URL){
driver=new FirefoxDriver();
driver.manage().timeo... | lvivasa/MuleSoft | src/test/java/PageObject/WindowsManage.java | Java | mit | 492 |
package com.redis.exception;
public enum MyExceptionType implements ExceptionType {
NO_DATA(-1,"未查询到您需要的数据"),
PAID(0,"支付已成功")
;
private int code;
private String describe;
private MyExceptionType(int code, String describe) {
this.code = code;
this.describe = describe;
}
@Override
public int getC... | 499504777/spring-redis | redis-service/src/main/java/com/redis/exception/MyExceptionType.java | Java | mit | 443 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.06.01 at 06:40... | nicoribeiro/java_efactura_uy | app/dgi/classes/reporte/KeyInfoType.java | Java | mit | 5,350 |
public class TernarySearchTrie {
public Node root;
public void put(String s, int val) {
this.root = this.put(this.root, s, 0, val);
}
private Node put(Node r, String s, int val) {
if (r == null) {
r = new Node();
if (s.length() > 0)
r.middleChar = s.charAt(0);
}
if (s.length() == 0) {
r.val ... | tbian7/pst | whiteboard/TernarySearchTrie.java | Java | mit | 1,092 |
package library.com.github.programmerr47.discogs.responseobjects.marketplace;
import library.com.github.programmerr47.discogs.responseobjects.summary.OrderMessage;
import library.com.github.programmerr47.discogs.responseobjects.summary.Pagination;
import library.org.json.JSONObject;
import java.util.List;
/**
* @au... | programmerr47/discogs-api-java | src/library/com/github/programmerr47/discogs/responseobjects/marketplace/ListOrderMessages.java | Java | mit | 2,147 |
package com.paypal.svcs.types.ap;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.paypal.svcs.types.ap.AddressList;
import com.paypal.svcs.types.ap.AgreementType;
import com.paypal.svcs.types.ap.SenderIdentifier;
import com.paypal.svcs.types.common.DayOfWeek;
import com.paypal.svcs... | DAC-2014-Equipe-3/sujet-2 | sujet2/src/main/java/com/paypal/svcs/types/ap/PreapprovalDetailsResponse.java | Java | mit | 19,286 |
package de.awolf.dof;
/**
* Depth of field calculation based on the formulas from wikipedia.
*
* @see <a href="http://en.wikipedia.org/wiki/Depth_of_field#DOF_formulas">http://en.wikipedia.org/wiki/Depth_of_field</a>
*/
public class DepthOfFieldCalculator {
/**
* Calculates hyperfocal distance, far and n... | a-wolf/depth-of-field | src/main/java/de/awolf/dof/DepthOfFieldCalculator.java | Java | mit | 3,477 |
package dgi.soap.consultas;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
... | nicoribeiro/java_efactura_uy | app/dgi/soap/consultas/WSEFacturaConsultasEFACCONSULTARCFERECIBIDOSResponse.java | Java | mit | 1,831 |
package com.example.filters;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebFilter;
@WebF... | seed-0317/training | servlets/examples/servlets-example/src/main/java/com/example/filters/DogFilter.java | Java | mit | 758 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2017.07.24 at 05:36:0... | AlnaSoftware/eSaskaita | src/JAVA SRC/lt/registrucentras/esaskaita/service/invoice/ubl/sig/SignaturePropertyType.java | Java | mit | 5,830 |
package javelin;
public class MulOfIntegers {
public static void main(String[] args) {
int a = 3;
int b = 4;
int c = 5;
int d = a * b * c;
System.out.println(d);
}
}
| antonlogvinenko/javelin | test-programs/javelin/MulOfIntegers.java | Java | mit | 215 |
/*
* Copyright (C) 2006-2011 by Olivier Chafik (http://ochafik.com)
*
* 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 ... | ochafik/nabab | src/main/java/com/ochafik/math/graph/impl/AbstractGraph.java | Java | mit | 4,692 |
public class Pract2a4p4_Methods {
static int myMethod(int x1, int x2){ // signature: myMethod(int, int)
return x1 + x2;
}
static double myMethod(double x){ // signature: myMethod(double)
return Math.round(x*x);
}
static void myMethod(String s, int x){ // signature: myMethod(String, int)
for (... | krtt/oop | p2/hmw/Pract2a4p4_Methods.java | Java | mit | 1,165 |
package com.vsm.stockmarket.exception;
public class BaseException extends Exception {
public BaseException(Exception e) {
super(e);
}
public BaseException() {
}
}
| GurudathReddy/stock-market-game | src/main/java/com/vsm/stockmarket/exception/BaseException.java | Java | mit | 173 |
package com.ikaimen.pattern.ProxyPattern.DynamlcProxy;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
/**
* Created by ChenTao on 2017/7/15.
* 动态代理handler类
*/
public class MyInvocationHandler implements InvocationHandler{
//被代理的对象
private Object target = null;
//通过构造函数传递... | TomChen001/java-pattern | src/main/java/com/ikaimen/pattern/ProxyPattern/DynamlcProxy/MyInvocationHandler.java | Java | mit | 604 |
package com.megotechnologies.ecommerce_retronight.loading;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePa... | ZonCon/Ecommerce-Retronight-Android | app/src/main/java/com/megotechnologies/ecommerce_retronight/loading/ThreadStreams.java | Java | cc0-1.0 | 18,119 |
package com.elementalessence.api.rewind;
import net.minecraft.block.Block;
public class BlockData {
public Block block;
public int meta;
public BlockData(Block b, int m) {
block = b;
meta = m;
if (m > 16 || m < 0) meta = 0;
}
@Override
public boolean equals(Object o) {
if (!(o instanceof BlockData)... | CuriousSkeptic/ElementalEssences | src/main/java/com/elementalessence/api/rewind/BlockData.java | Java | cc0-1.0 | 442 |
package org.codefx.demo.java9.internal.string;
import java.util.List;
import java.util.stream.IntStream;
import static java.util.stream.Collectors.toList;
public class CompactionPerformance {
// To play around with this:
// (1) compile using `compile.sh`
// (2) run with either of the following lines
//
// WI... | CodeFX-org/demo-java-9 | src/main/java/org/codefx/demo/java9/internal/string/CompactionPerformance.java | Java | cc0-1.0 | 1,447 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.smi.travel.datalayer.service;
import com.smi.travel.datalayer.dao.MListItemDao;
import com.smi.travel.datalayer.... | iCONEXT/SMI_Travel | src/java/com/smi/travel/datalayer/service/ProductService.java | Java | cc0-1.0 | 4,988 |
/*
* This file is part of memoization.java. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://creativecommons.org/publicdomain/zero/1.0/. No part of memoization.java,
* including this file, may be copied, modified, propagated, or distributed ... | sebhoss/memoization.java | memoization-guava/src/test/java/de/xn__ho_hia/memoization/guava/GuavaCacheBasedToLongFunctionMemoizerTest.java | Java | cc0-1.0 | 3,227 |
/*-
*******************************************************************************
* Copyright (c) 2011, 2014 Diamond Light Source Ltd.
* 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, ... | colinpalmer/dawnsci | org.eclipse.dawnsci.plotting.examples/src/org/eclipse/dawnsci/plotting/examples/XYUpdateExample.java | Java | epl-1.0 | 4,395 |
/*******************************************************************************
* Copyright (c) 1998, 2013 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. ... | bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs | foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/platform/xml/XMLParser.java | Java | epl-1.0 | 2,493 |
package de.setsoftware.reviewtool.model.changestructure;
import java.util.List;
import de.setsoftware.reviewtool.model.api.IClassification;
/**
* Super type for elements that can be contained in a review tour.
*/
public abstract class TourElement {
protected abstract void fillStopsInto(List<Stop> buffer);
... | tobiasbaum/reviewtool | de.setsoftware.reviewtool.core/src/de/setsoftware/reviewtool/model/changestructure/TourElement.java | Java | epl-1.0 | 954 |
/*
* Copyright (c) 2012-2018 Red Hat, Inc.
* 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
*
* Contributors:
* Red H... | sleshchenko/che | ide/che-core-ide-ui/src/test/java/org/eclipse/che/ide/ui/dialogs/input/InputDialogPresenterTest.java | Java | epl-1.0 | 6,584 |
/*******************************************************************************
* Copyright (c) 2006, 2014 IBM Corporation 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, an... | maxeler/eclipse | eclipse.jdt.core/org.eclipse.jdt.compiler.tool.tests/src/org/eclipse/jdt/compiler/tool/tests/CompilerToolTests.java | Java | epl-1.0 | 35,272 |
/*******************************************************************************
* Copyright (c) 2014 Obeo.
* 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
* ht... | ascharfi/Clarity-Capella-DocGenerator | Core/fr.obeo.dsl.designer.documentation.generator/src/fr/obeo/dsl/designer/documentation/generator/internal/extensions/GeneratorExtensionListener.java | Java | epl-1.0 | 2,520 |
/*******************************************************************************
* Copyright (c) 2014-2015 TELECOM ParisTech and AdaCore.
* 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, ... | eliericha/atlanalyser | fr.tpt.atlanalyser/src/fr/tpt/atlanalyser/AtlParser.java | Java | epl-1.0 | 6,720 |
/**
* Copyright (c) 2011, 2014 Eurotech and/or its affiliates
*
* 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
*
... | mhddurrah/kura | kura/org.eclipse.kura.net.admin/src/main/java/org/eclipse/kura/net/admin/visitor/linux/FirewallNatConfigWriter.java | Java | epl-1.0 | 6,932 |
package net.sf.bitumen.util;
public interface IFactory<T> {
public T createInstance();
}
| kumarshantanu/bitumen | src/main/java/net/sf/bitumen/util/IFactory.java | Java | epl-1.0 | 96 |
package rugal;
import org.junit.Ignore;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
/**
* This is a base test class for non-controller class in testing stage<BR/>
* with the assistance of this ... | sunmaolin/test | test-hibernate/src/test/java/rugal/JUnitSpringTestBase.java | Java | epl-1.0 | 784 |
/*******************************************************************************
* Copyright (c) 2013-2015 UAH Space Research Group.
* 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 i... | parraman/micobs | mesp/es.uah.aut.srg.micobs.mesp/src/es/uah/aut/srg/micobs/mesp/library/mesplibrary/provider/MMESPVersionedItemPlatformSwPackageItemProvider.java | Java | epl-1.0 | 3,477 |
package com.odcgroup.workbench.core.preferences;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ProjectScope;
import org.eclipse.core.runtime.preferences.DefaultScope;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.eclipse.core.runtime.preferences.IEclipsePre... | debabratahazra/DS | designstudio/components/workbench/core/com.odcgroup.workbench.core/src/main/java/com/odcgroup/workbench/core/preferences/ProjectPreferences.java | Java | epl-1.0 | 4,663 |
/*******************************************************************************
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
*... | bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs | moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/jaxb/json/rootlevellist/WithXmlRootElementJAXBElementNoRootTestCases.java | Java | epl-1.0 | 3,234 |
package com.temenos.t24.tools.eclipse.basic.dialogs.remote;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.dialogs.InputDialog;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
im... | debabratahazra/DS | designstudio/components/basic/ui/com.odcgroup.basic.ui/src/main/java/com/temenos/t24/tools/eclipse/basic/dialogs/remote/RemoteOperationDialog.java | Java | epl-1.0 | 12,222 |
/*
* Sonatype Nexus (TM) Open Source Version
* Copyright (c) 2008-present Sonatype, Inc.
* All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions.
*
* This program and the accompanying materials are made available under the terms of the Eclipse Public... | sonatype/nexus-public | components/nexus-security/src/main/java/org/sonatype/nexus/security/internal/NexusAuthenticationEventAuditor.java | Java | epl-1.0 | 3,144 |
/*******************************************************************************
* Copyright (c) 2012, 2017 Kiel University 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, an... | eNBeWe/elk | plugins/org.eclipse.elk.alg.layered/src/org/eclipse/elk/alg/layered/intermediate/EndLabelPostprocessor.java | Java | epl-1.0 | 3,448 |
/*******************************************************************************
* Copyright (c) 2011, 2012 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1... | bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs | moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/jaxb/dynamic/util/PersonCustomizer.java | Java | epl-1.0 | 1,407 |
/**
*/
package some.basepackage.root.subpackage.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
import some.basepackage.root.subpackage.*;
/**
*... | diverse-project/melange | tests/samples/fr.inria.diverse.melange.test.renaming.model/src/some/basepackage/root/subpackage/impl/SubpackageFactoryImpl.java | Java | epl-1.0 | 2,568 |
/**
* Copyright (c) 2012 Tobias Boehm.
* 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
*
* Contributors:
* Tobias ... | tobiasb/CodeFinder | plugins/org.eclipse.recommenders.codesearch.rcp.index/src/org/eclipse/recommenders/codesearch/rcp/index/indexer/interfaces/IClassIndexer.java | Java | epl-1.0 | 647 |
/*
* Copyright 2012 PRODYNA AG
*
* Licensed under the Eclipse Public License (EPL), Version 1.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.opensource.org/licenses/eclipse-1.0.php or
* http://www.nabucco.org/License... | NABUCCO/org.nabucco.framework.generator | org.nabucco.framework.generator.compiler/src/main/org/nabucco/framework/generator/compiler/transformation/java/visitor/util/spp/StructuredPropertyPathViewModelElementFactory.java | Java | epl-1.0 | 10,144 |
/*
* Copyright 2012 PRODYNA AG
*
* Licensed under the Eclipse Public License (EPL), Version 1.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.opensource.org/licenses/eclipse-1.0.php or
* http://www.nabucco.org/License... | NABUCCO/org.nabucco.framework.generator | org.nabucco.framework.generator/conf/nbc/templates/java/browserview/BrowserViewHelperTemplate.java | Java | epl-1.0 | 2,017 |
/*
*
*/
package SimpleBPMN.diagram.edit.commands;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gmf.runtime.common.core.command.CommandResult;
import org.ecli... | bluezio/simplified-bpmn-example | org.eclipse.epsilon.eugenia.bpmn.diagram/src/SimpleBPMN/diagram/edit/commands/ORCreateCommand.java | Java | epl-1.0 | 2,529 |
/*
* AutoRefactor - Eclipse plugin to automatically refactor Java code bases.
*
* Copyright (C) 2013 Jean-Noël Rouvignac - initial API and implementation
*
* 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 Fr... | TIYdoc/AutoRefactor | samples/src/test/java/org/autorefactor/refactoring/rules/samples_out/PrimitiveWrapperCreationSample.java | Java | epl-1.0 | 3,219 |
/**
*/
package org.scaledl.overview.specification.impl;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.impl.EPackageImpl;
import org.scaledl.overview.OverviewPackage;
import o... | CloudScale-Project/Environment | plugins/org.scaledl.overview/src/org/scaledl/overview/specification/impl/SpecificationPackageImpl.java | Java | epl-1.0 | 38,978 |
/*******************************************************************************
* Copyright (c) 2000, 2006 IBM Corporation 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, an... | maxeler/eclipse | eclipse.jdt.ui/org.eclipse.jdt.junit.core/src/org/eclipse/jdt/internal/junit/model/ITestRunSessionListener.java | Java | epl-1.0 | 816 |
/*******************************************************************************
* Copyright (c) 2009 itemis AG (http://www.itemis.eu) 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 distr... | miklossy/xtext-core | org.eclipse.xtext/src/org/eclipse/xtext/resource/impl/ResourceDescriptionChangeEvent.java | Java | epl-1.0 | 1,140 |
/*******************************************************************************
* Copyright (c) 2010 Oak Ridge National Laboratory.
* 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 i... | fqqb/yamcs-studio | bundles/org.csstudio.ui.util/src/org/csstudio/ui/util/widgets/ImagePreview.java | Java | epl-1.0 | 5,149 |
/*******************************************************************************
* Debrief - the Open Source Maritime Analysis Application
* http://debrief.info
*
* (C) 2000-2020, Deep Blue C Technology Ltd
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of th... | debrief/debrief | org.mwc.cmap.core/src/org/mwc/cmap/core/property_support/lengtheditor/LengthPropertyDescriptor.java | Java | epl-1.0 | 2,127 |
package com.morphius.morphcraft.items;
import com.morphius.morphcraft.MorphCraft;
import com.morphius.morphcraft.reference.Reference;
import net.minecraft.item.Item;
public class TinIngot extends Item {
public TinIngot(){
super();
this.setCreativeTab(MorphCraft.TabMorphCraft);
this.setUnlocalizedName("TinIngo... | MorphiusYT/MorphCraft | src/main/java/com/morphius/morphcraft/items/materials/ingots/TinIngot.java | Java | epl-1.0 | 388 |
package org.allmyinfo.opmeta.nodes.core;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import org.allmyinfo.nodes.NodeKey;
import org.allmyinfo.operation.BaseOperation;
import org.allmyinfo.operation.MethodDefinition;
import org.allmyinfo.operation.Operation;
import org.allmyinfo.opera... | sschafer/atomic | org.allmyinfo.opmeta.nodes.core/src/org/allmyinfo/opmeta/nodes/core/GetNodeByKeyDescriptor.java | Java | epl-1.0 | 3,959 |
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
* indicated by the @author tags or express copyright attribution
* statements applied by the authors. All third-party contributions are
* distributed under license by Red Hat Mi... | ControlSystemStudio/cs-studio | thirdparty/plugins/org.csstudio.platform.libs.hibernate/project/annotations/src/main/java/org/hibernate/annotations/AnyMetaDefs.java | Java | epl-1.0 | 1,583 |
/*******************************************************************************
* Copyright (c) 2016 Google, 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 avail... | elucash/eclipse-oxygen | org.eclipse.jdt.core/src/org/eclipse/jdt/internal/core/nd/java/NdMethodParameter.java | Java | epl-1.0 | 3,536 |
/*******************************************************************************
* Copyright (c) 2017 Google, 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 avail... | elucash/eclipse-oxygen | org.eclipse.jdt.core/src/org/eclipse/jdt/internal/core/nd/indexer/WorkspaceSnapshot.java | Java | epl-1.0 | 8,427 |
/**
* Copyright (c) 2015 Bosch Software Innovations GmbH 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
... | stormc/hawkbit | hawkbit-repository/hawkbit-repository-jpa/src/test/java/org/eclipse/hawkbit/repository/jpa/rsql/RSQLActionFieldsTest.java | Java | epl-1.0 | 4,085 |
package ui.purchaseui;
import java.awt.Image;
import javax.swing.JFrame;
import javax.swing.JPanel;
import ui.util.CommodityTablePane;
import ui.util.MyButton;
import ui.util.MyComboBox;
import ui.util.MyLabel;
import ui.util.MySpecialTextField;
import ui.util.MyTextArea;
import config.PanelConfig;
@SuppressWarning... | vboar/ERPClient | src/ui/purchaseui/PurchaseDocumentPanel.java | Java | epl-1.0 | 1,069 |
/*******************************************************************************
* Copyright (c) 2014 OSSMETER Partners.
* 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 ... | ossmeter/ossmeter | platform-extensions/org.ossmeter.platform.metricmanager.rascal/src/org/ossmeter/metricprovider/rascal/trans/model/DatetimeMeasurement.java | Java | epl-1.0 | 2,552 |
/**
* Copyright (c) 2015 Bosch Software Innovations GmbH 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
... | stormc/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/layouts/CreateUpdateTypeLayout.java | Java | epl-1.0 | 10,191 |
/*
* Copyright (c) 2021 PANTHEON.tech, s.r.o. 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 or... | opendaylight/yangtools | model/yang-model-ri/src/main/java/org/opendaylight/yangtools/yang/model/ri/stmt/impl/ref/RefErrorAppTagStatement.java | Java | epl-1.0 | 892 |
/*
* Copyright (c) 2015 CableLabs 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.pcmm.gate... | opendaylight/packetcable | packetcable-driver/src/main/java/org/pcmm/gates/impl/GateState.java | Java | epl-1.0 | 2,490 |
/*******************************************************************************
* Copyright (c) 2010 itemis AG (http://www.itemis.eu) 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 distr... | miklossy/xtext-core | org.eclipse.xtext.tests/src/org/eclipse/xtext/nodemodel/AbstractNodeTest.java | Java | epl-1.0 | 8,268 |
/**
* generated by Xtext
*/
package org.eclipse.xtext.parser.terminalrules.xtextTerminalsTestLanguage;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Alternatives</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are sup... | miklossy/xtext-core | org.eclipse.xtext.tests/src-gen/org/eclipse/xtext/parser/terminalrules/xtextTerminalsTestLanguage/Alternatives.java | Java | epl-1.0 | 1,447 |
/**
*
*/
package com.eclipsesource.gerrit.plugins.fileattachment.api.entities.converter;
import com.eclipsesource.gerrit.plugins.fileattachment.api.AttachmentTarget;
import com.eclipsesource.gerrit.plugins.fileattachment.api.ContentType;
import com.eclipsesource.gerrit.plugins.fileattachment.api.File;
import com.ecl... | theArchonius/gerrit-attachments | src/main/java/com/eclipsesource/gerrit/plugins/fileattachment/api/entities/converter/BaseFileEntityConverter.java | Java | epl-1.0 | 4,106 |