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 |
|---|---|---|---|---|---|
/*
* JDIVisitor
* Copyright (C) 2014 Adrian Herrera
*
* 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 2 of the License, or
* (at your option) any later version.
*
* This... | adrianherrera/jdivisitor | src/main/java/org/jdivisitor/debugger/launcher/RemoteVMConnector.java | Java | mit | 2,991 |
package com.catsprogrammer.catsfourthv;
/**
* Created by C on 2016-09-14.
*/
public class MatrixCalculator {
public static float[] getRotationMatrixFromOrientation(float[] o) {
float[] xM = new float[9];
float[] yM = new float[9];
float[] zM = new float[9];
float sinX = (float)... | CatsProject/CycleAssistantTools | mobile/src/main/java/com/catsprogrammer/catsfourthv/MatrixCalculator.java | Java | mit | 2,238 |
package es.sandbox.ui.messages.argument;
import es.sandbox.ui.messages.resolver.MessageResolver;
import es.sandbox.ui.messages.resolver.Resolvable;
import java.util.ArrayList;
import java.util.List;
class LinkArgument implements Link, Resolvable {
private static final String LINK_FORMAT = "<a href=\"%s\" title... | jeslopalo/flash-messages | flash-messages-core/src/main/java/es/sandbox/ui/messages/argument/LinkArgument.java | Java | mit | 2,828 |
package fr.adrienbrault.idea.symfony2plugin.tests;
import fr.adrienbrault.idea.symfony2plugin.ServiceMap;
import fr.adrienbrault.idea.symfony2plugin.ServiceMapParser;
import org.junit.Test;
import org.junit.Assert;
import java.io.ByteArrayInputStream;
import java.util.Map;
/**
* @author Adrien Brault <adrien.brault... | Ocramius/idea-php-symfony2-plugin | tests/fr/adrienbrault/idea/symfony2plugin/tests/ServiceMapParserTest.java | Java | mit | 2,039 |
package me.F_o_F_1092.WeatherVote.PluginManager.Spigot;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import me.F_o_F_1092.WeatherVote.Options;
import me.F_o_F_1092.WeatherVote.PluginManager.Command;
import me.F_o_F_1092.WeatherVote.Plugi... | fof1092/WeatherVote | src/me/F_o_F_1092/WeatherVote/PluginManager/Spigot/HelpPageListener.java | Java | mit | 2,808 |
package zeonClient.mods;
import java.util.Iterator;
import org.lwjgl.input.Keyboard;
import net.minecraft.client.entity.EntityOtherPlayerMP;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.playe... | A-D-I-T-Y-A/Zeon-Client | src/minecraft/zeonClient/mods/KillAura.java | Java | mit | 2,021 |
package com.github.lunatrius.schematica.client.gui;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiSlot;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.resources.I18n;
import net.minecraft.item.ItemStack;
class GuiSchematicMaterialsSlot extends GuiSlot {
p... | CannibalVox/Schematica | src/main/java/com/github/lunatrius/schematica/client/gui/GuiSchematicMaterialsSlot.java | Java | mit | 2,204 |
package li.cryx.minecraft.death;
import java.util.logging.Logger;
import li.cryx.minecraft.death.i18n.ITranslator;
import li.cryx.minecraft.death.persist.AbstractPersistManager;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.entity.Player;
public interface ISpiritHealer {
void addAltarL... | cryxli/SpiritHealer | src/main/java/li/cryx/minecraft/death/ISpiritHealer.java | Java | mit | 609 |
package pixlepix.auracascade.data;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
/**
* Created by localmacaccount on 5/31/15.
*/
public class Quest {
//TODO QUEST
public static int nextId;
public final ItemStack target;
public final ItemStack result;
public f... | pixlepix/Aura-Cascade | src/main/java/pixlepix/auracascade/data/Quest.java | Java | mit | 1,082 |
/**
* MIT License
*
* Copyright (c) 2017 zgqq
*
* 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, modify, me... | zgqq/mah | mah-core/src/main/java/mah/ui/util/UiUtils.java | Java | mit | 1,999 |
package com.missingeye.pixelpainter.events.network.texture;
import com.missingeye.pixelpainter.common.PixelMetadata;
import net.minecraft.util.ResourceLocation;
/**
* Created on 1/17/2015.
*
* @auhtor Samuel Agius (Belpois)
*/
public class ServerUpdatedTexturePacketEvent extends UpdatedTexturePacketEvent
{
publi... | Belpois/pixelpainter | src/main/java/com/missingeye/pixelpainter/events/network/texture/ServerUpdatedTexturePacketEvent.java | Java | mit | 470 |
package com.example.aperture.core.contacts;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.provider.ContactsContract;
import java.util.List;
import java.util.ArrayList;
import com.example.aperture.core.Module;
public class Email... | ayshen/caek | src/com/example/aperture/core/contacts/EmailFilter.java | Java | mit | 5,607 |
package com.dpanayotov.simpleweather.api.base;
public class BaseForecastResponse {
}
| deanpanayotov/simple_weather | SimpleWeather/app/src/main/java/com/dpanayotov/simpleweather/api/base/BaseForecastResponse.java | Java | mit | 87 |
package edu.avans.hartigehap.web.util;
import java.io.UnsupportedEncodingException;
import javax.servlet.http.HttpServletRequest;
import org.springframework.web.util.UriUtils;
import org.springframework.web.util.WebUtils;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class UrlUtil {
private UrlUtil() {
... | jermeyjungbeker/VP11B2 | src/main/java/edu/avans/hartigehap/web/util/UrlUtil.java | Java | mit | 833 |
package com.veggie.src.java.controllers.transaction;
import java.util.List;
import com.veggie.src.java.controllers.Controller;
import com.veggie.src.java.form.Form;
import com.veggie.src.java.form.AbstractFormBuilder;
import com.veggie.src.java.form.AbstractFormBuilderFactory;
import com.veggie.src.java.notification.N... | ejw0013/vegemite-smoothie | com/veggie/src/java/controllers/transaction/ReturnController.java | Java | mit | 1,973 |
package org.bitbucket.ytimes.client.main;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* Created by andrey on 27.05.17.
*/
public class Main {
public static void main( String[] args ) throws Exception {
ClassPathXmlApplicationContext ctx =
new ClassPath... | ytimesru/kkm-pc-client | src/main/java/org/bitbucket/ytimes/client/main/Main.java | Java | mit | 372 |
package alexp.blog.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import alexp.blog.repository.*;
import alexp.blog.model.Schedule;
@Service("ScheduleService")
public class ScheduleServiceImpl implements ScheduleService{
@Autowired
private... | ericjin527/MockInterview | src/main/java/alexp/blog/service/ScheduleServiceImpl.java | Java | mit | 569 |
package com.jnape.palatable.lambda.optics.prisms;
import org.junit.Test;
import java.util.HashMap;
import java.util.LinkedHashMap;
import static java.util.Arrays.asList;
import static java.util.Collections.singleton;
import static java.util.Collections.singletonMap;
import static testsupport.assertion.PrismAssert.as... | palatable/lambda | src/test/java/com/jnape/palatable/lambda/optics/prisms/MapPrismTest.java | Java | mit | 1,147 |
/*
* Copyright (c) 2012 M. M. Naseri <m.m.naseri@gmail.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 use, copy, m... | agileapes/jpowerpack | string-tools/src/main/java/com/agileapes/powerpack/string/exception/NoMoreTextException.java | Java | mit | 1,068 |
/*
* The MIT License
*
* Copyright 2014 Kamnev Georgiy (nt.gocha@gmail.com).
*
* Данная лицензия разрешает, безвозмездно, лицам, получившим копию данного программного
* обеспечения и сопутствующей документации (в дальнейшем именуемыми "Программное Обеспечение"),
* использовать Программное Обеспечение без огра... | gochaorg/lang2 | src/test/java/xyz/cofe/lang2/parser/vref/L2EngineVarRef2.java | Java | mit | 4,141 |
package db;
import db.*;
public class test {
public static void main(String[] args) {
// TODO Auto-generated method stub
Database.getInstance().register("111", "22");
// Database.getInstance().login("111", "22");
}
}
| MrGaoRen/secretProject | cw/src/db/test.java | Java | mit | 232 |
import java.security.Security;
import java.util.Base64;
import org.bouncycastle.crypto.BlockCipher;
import org.bouncycastle.crypto.BufferedBlockCipher;
import org.bouncycastle.crypto.engines.RijndaelEngine;
import org.bouncycastle.crypto.modes.CBCBlockCipher;
import org.bouncycastle.crypto.paddings.PKCS7Padding;
impor... | mseclab/AHE17 | Token-Generator/src/main/java/DotNet.java | Java | mit | 3,987 |
package com.jgrillo.wordcount.api;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectReader;
import com.fasterxml.jackson.databind.... | jgrillo/wordcount-service | src/test/java/com/jgrillo/wordcount/api/CountsTest.java | Java | mit | 3,572 |
/*
* Copyright (c) 2006-2012 Rogério Liesenfeld
* This file is subject to the terms of the MIT license (see LICENSE.txt).
*/
package mockit.integration.junit4;
import org.junit.runner.*;
import org.junit.runners.*;
@RunWith(Suite.class)
@Suite.SuiteClasses({MockDependencyTest.class, UseDependencyTest.cla... | borisbrodski/jmockit | main/test/mockit/integration/junit4/DependencyTests.java | Java | mit | 366 |
package org.ebaloo.itkeeps.core.domain.vertex;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import org.ebaloo.itkeeps.api.enumeration.enAclAdmin;
import org.ebaloo.itkeeps.api.enumeration.enAclData;
import org.ebaloo.itkeeps.api.model.jAclGroup;
import org.ebaloo... | e-baloo/it-keeps | it-keeps-core/src/main/java/org/ebaloo/itkeeps/core/domain/vertex/vAclGroup.java | Java | mit | 6,089 |
package com.vexus2.jenkins.chatwork.jenkinschatworkplugin.api;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown... | jenkinsci/chatwork-plugin | src/main/java/com/vexus2/jenkins/chatwork/jenkinschatworkplugin/api/Room.java | Java | mit | 992 |
package com.goodworkalan.mix.builder;
import org.testng.annotations.Test;
// TODO Document.
public class BasicJavaProjectTest {
// TODO Document.
@Test
public void build() {
}
}
| defunct/cafe | src/test/java/com/goodworkalan/mix/builder/BasicJavaProjectTest.java | Java | mit | 196 |
package net.ihiroky.reservoir.coder;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.ByteBuffer;
/**
* Created on 12/10/04, 19:26
*
* @author Hiroki Itoh
*/
public class ByteBufferOutputStream extends OutputStream {
ByteBuffer byteBuffer;
ByteBufferOutputStream(int initialCapaci... | ihiroky/reservoir | src/main/java/net/ihiroky/reservoir/coder/ByteBufferOutputStream.java | Java | mit | 1,244 |
package org.ayo.ui.sample.material;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.content.Context;
import android.support.design.widget.CoordinatorLayout;
import android.support.v4.view.ViewCompat;
import android.util.AttributeSet;
import android.view.View;
import... | cowthan/Ayo2022 | Ayo/app/src/main/java/org/ayo/ui/sample/material/ScaleTitlebarBehavior.java | Java | mit | 2,886 |
/*
* The MIT License
*
* Copyright 2019 Intuit Inc.
*
* 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, modi... | intuit/karate | karate-core/src/main/java/com/intuit/karate/job/JobUtils.java | Java | mit | 5,009 |
package com.java.group34;
import java.util.ArrayList;
/**
* Created by dell-pc on 2017/9/11.
*/
public class NewsPictures {
private Value[] value;
private static class Value
{
String contentUrl;
}
public ArrayList<String> getFirstNthPictures(int n)
{
ArrayList<String> ans=ne... | bennyguo/AssemblyNews | app/src/main/java/com/java/group34/NewsPictures.java | Java | mit | 500 |
package org.craft.client.render.blocks;
import java.util.*;
import java.util.Map.Entry;
import com.google.common.collect.*;
import org.craft.blocks.*;
import org.craft.blocks.states.*;
import org.craft.client.*;
import org.craft.client.models.*;
import org.craft.client.render.*;
import org.craft.client.render.textur... | OurCraft/OurCraft | src/main/java/org/craft/client/render/blocks/BlockModelRenderer.java | Java | mit | 8,599 |
/**
* Logback: the reliable, generic, fast and flexible logging framework.
* Copyright (C) 1999-2015, QOS.ch. All rights reserved.
*
* This program and the accompanying materials are dual-licensed under
* either the terms of the Eclipse Public License v1.0 as published by
* the Eclipse Foundation
*
* ... | cscfa/bartleby | library/logBack/logback-1.1.3/logback-core/src/main/java/ch/qos/logback/core/pattern/color/GrayCompositeConverter.java | Java | mit | 970 |
/**
*
*/
package com.kant.datastructure.stacks;
import com.kant.sortingnsearching.MyUtil;
/**
* http://www.geeksforgeeks.org/the-stock-span-problem/ <br/>
*
*
* The stock span problem is a financial problem where we have a series of n
* daily price quotes for a stock and we need to calculate spa... | thekant/myCodeRepo | src/com/kant/datastructure/stacks/StockSpanProblem.java | Java | mit | 2,329 |
package com.jasonlam604.stocktechnicals.indicators;
import com.jasonlam604.stocktechnicals.util.NumberFormatter;
/**
* Moving Average Convergence/Divergence Oscillator
*/
public class MovingAverageConvergenceDivergence {
private static final int CROSSOVER_NONE = 0;
private static final int CROSSOVER_POSITIVE = 1... | jasonlam604/StockTechnicals | src/com/jasonlam604/stocktechnicals/indicators/MovingAverageConvergenceDivergence.java | Java | mit | 2,631 |
/*
* 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 consolealiensgame;
import alieninterfaces.*;
import java.lang.reflect.Constructor;
/**
*
* @author guberti
*/
public clas... | guberti/AliensGame | ConsoleAliensGame/src/consolealiensgame/AlienContainer.java | Java | mit | 4,017 |
package model.question;
import model.enums.QuestionTypes;
public class ImageQuestion implements QuestionIF {
private String imagePath;
private char[] answer;
private QuestionTypes type;
public ImageQuestion(String imagePath, char[] answer, QuestionTypes type){
this.setType(type);
this.setImage... | KhaledMuahamed/GameDevelop | Game/src/model/question/ImageQuestion.java | Java | mit | 1,428 |
// Week 5 - Task 7
import java.io.PrintWriter;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.io.*;
public class TCPSerServer
{
private static ServerSocket servSock;
private static final int PORT = 1... | kieranhogan13/Java | Distributed Systems/Labs/Week 7_Lab_Review/Week_3_T7/TCPSerServer.java | Java | mit | 1,769 |
package top.cardone.func.vx.usercenter.userDepartment;
import com.google.common.base.Charsets;
import lombok.extern.log4j.Log4j2;
import lombok.val;
import org.apache.commons.io.FileUtils;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotati... | yht-fand/cardone-platform-usercenter | consumer/src/test/java/top/cardone/func/vx/usercenter/userDepartment/D0002FuncTest.java | Java | mit | 3,282 |
package com.github.lg198.codefray.jfx;
import com.github.lg198.codefray.api.game.Team;
import com.github.lg198.codefray.game.GameEndReason;
import com.github.lg198.codefray.game.GameStatistics;
import com.github.lg198.codefray.util.TimeFormatter;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx... | lg198/CodeFray | src/com/github/lg198/codefray/jfx/GameResultGui.java | Java | mit | 3,347 |
package pl.yourempire.api.event;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
public class Event
{
private static Map<Class<Event>, ArrayList<ListenerCaller>> listenerMap = new HashMap<>();
public stat... | YourEmpire/YourEmpire | Your Empire API/src/main/java/pl/yourempire/api/event/Event.java | Java | mit | 1,714 |
package org.fluentjava.iwant.plannerapi;
public interface ResourcePool {
boolean hasFreeResources();
Resource acquire();
void release(Resource resource);
}
| wipu/iwant | essential/iwant-planner-api/src/main/java/org/fluentjava/iwant/plannerapi/ResourcePool.java | Java | mit | 164 |
package com.myconnector.client.domain;
import java.util.List;
import com.google.gwt.user.client.rpc.IsSerializable;
import com.myconnector.client.domain.interfaces.ITodoContext;
import com.myconnector.client.domain.interfaces.ITodoItem;
import com.myconnector.client.domain.interfaces.ITodoList;
public class TodoList... | nileshk/truedolist-java | src/main/java/com/myconnector/client/domain/TodoListClient.java | Java | mit | 1,476 |
package com.hackathon.hackathon2014.activity;
import android.app.Activity;
import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import an... | dst-hackathon/socialradar-android | hackathon2014/app/src/main/java/com/hackathon/hackathon2014/activity/QuestionActivity.java | Java | mit | 4,070 |
package net.tqft.iterables.interfaces;
public interface Transformer<S, T> {
public abstract T evaluate(S s);
}
| craigfreilly/masters-project-submission | src/KnotTheory/JavaKh-v2/src/net/tqft/iterables/interfaces/Transformer.java | Java | mit | 126 |
package com.github.wovnio.wovnjava;
import java.util.HashMap;
import javax.servlet.FilterConfig;
import javax.servlet.http.HttpServletRequest;
import org.easymock.EasyMock;
import java.net.URL;
import java.net.MalformedURLException;
import junit.framework.TestCase;
public class HeadersTest extends TestCase {
p... | WOVNio/wovnjava | src/test/java/com/github/wovnio/wovnjava/HeadersTest.java | Java | mit | 21,076 |
package eu.cyfronoid.core.configuration.evaluator;
import java.util.ArrayDeque;
public class Stack extends ArrayDeque<Double> {
private static final long serialVersionUID = 1L;
@Override
public void push(Double v) {
super.push(v);
}
@Override
public Double pop() {
... | widmofazowe/cyfronoid-core | src/eu/cyfronoid/core/configuration/evaluator/Stack.java | Java | mit | 694 |
/*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Soft... | gabizou/SpongeAPI | src/main/java/org/spongepowered/api/text/Texts.java | Java | mit | 19,598 |
package jp.co.future.uroborosql.parameter.mapper;
import static org.hamcrest.MatcherAssert.*;
import static org.hamcrest.Matchers.*;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.math.BigDecimal;
import java.sql.Connection;
import java.sql.Timestamp;
import java.text.ParseException;
imp... | future-architect/uroborosql | src/test/java/jp/co/future/uroborosql/parameter/mapper/BindParameterMapperManagerTest.java | Java | mit | 6,049 |
package io.mattw.youtube.commentsuite.util;
import java.awt.*;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.StringSelection;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.io.IOException;
import java.util.List;
import java.util.stre... | mattwright324/youtube-comment-suite | src/main/java/io/mattw/youtube/commentsuite/util/ClipboardUtil.java | Java | mit | 1,872 |
package com.aol.cyclops.guava;
import com.aol.simple.react.stream.traits.FutureStream;
import com.google.common.collect.FluentIterable;
public class FromSimpleReact {
public static <T> FluentIterable<T> fromSimpleReact(
FutureStream<T> s) {
return FluentIterable.from(s);
}
}
| sjfloat/cyclops | cyclops-guava/src/main/java/com/aol/cyclops/guava/FromSimpleReact.java | Java | mit | 286 |
package dao;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import factory.FactoryService;
import vo.Bbs_CommmVo;
import vo.Board2Vo;
public class BoardDao2 {
private static BoardDao2 dao;
public static synchronized BoardDao2 getDao(){
if ( dao == null ) dao = new BoardDao2();
return dao;... | ByeongGi/Koata_Java | Jsp1012-13_struts2-04/src/dao/BoardDao2.java | Java | mit | 1,753 |
/*
* 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.freteplanejado.entity;
/**
*
* @author 43596980895
*/
public class Frete {
private int id;
private String orige... | 5devs/web-project-m1 | FretePlanejado/src/java/com/freteplanejado/entity/Frete.java | Java | mit | 2,066 |
package com.martijndashorst.euler;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Test;
/**
* The sequence of triangle numbers is generated by adding the natural numbers.
* So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first
* ten ... | dashorst/project-euler | src/test/java/com/martijndashorst/euler/Euler12.java | Java | mit | 1,853 |
package ru.otus.l51.tests;
/**
* Created by tully.
*/
@SuppressWarnings("unused")
public class TestClass {
private int a = 0;
private String s = "";
public TestClass() {
}
public TestClass(Integer a) {
this.a = a;
}
public TestClass(Integer a, String s) {
this.a = a;
... | artem-gabbasov/otus_java_2017_04_L1 | L5.1/src/test/java/ru/otus/l51/tests/TestClass.java | Java | mit | 502 |
package com.project.library.utils;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import org.springframework.stereotype.Component;
@Component
public class MyDateUtil {
public Date calculateDate(String currentDate... | rtashev/University-Projects | library/webapplibraryproject/src/main/java/com/project/library/utils/MyDateUtil.java | Java | mit | 667 |
package com.calebmeyer.bettercrafting.creativetab;
import com.calebmeyer.bettercrafting.constants.Project;
import com.calebmeyer.bettercrafting.initialization.ModItems;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
public class CreativeTabBCT {
public static final CreativeTabs BE... | calebmeyer/Better-Crafting-Tables | src/main/java/com/calebmeyer/bettercrafting/creativetab/CreativeTabBCT.java | Java | mit | 907 |
package cz.muni.fi.pa165.mushrooms.service.exceptions;
/**
* @author bkompis
*/
public class EntityOperationServiceException extends MushroomHunterServiceDataAccessException {
public <T> EntityOperationServiceException(String what, String operation, T entity, Throwable e) {
super("Could not " + operatio... | PA165-MushroomHunter/MushroomHunter | service/src/main/java/cz/muni/fi/pa165/mushrooms/service/exceptions/EntityOperationServiceException.java | Java | mit | 563 |
/*
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | ktg/openFood | src/main/java/uk/ac/nott/mrl/gles/program/GraphProgram.java | Java | mit | 5,077 |
package org.sfm.tuples;
public class Tuple20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> extends Tuple19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> {
private final T20 element19;
public Tuple20(T1 element0, T2 element1,... | tsdl2013/SimpleFlatMapper | sfm/src/main/java/org/sfm/tuples/Tuple20.java | Java | mit | 3,155 |
/*
* This file is part of ViaVersion - https://github.com/ViaVersion/ViaVersion
* Copyright (C) 2016-2021 ViaVersion and contributors
*
* 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, eith... | MylesIsCool/ViaVersion | common/src/main/java/com/viaversion/viaversion/protocols/protocol1_12_2to1_12_1/Protocol1_12_2To1_12_1.java | Java | mit | 2,084 |
package fr.pizzeria.exception;
public class StockageException extends Exception {
public StockageException() {
super();
}
public StockageException(String message, Throwable cause) {
super(message, cause);
}
public StockageException(String message) {
super(message);
}
public StockageException(Throwable... | lionelcollidor/dta-formation | apps/pizzeria-console-objet/pizzeria-dao/src/main/java/fr/pizzeria/exception/StockageException.java | Java | mit | 353 |
/**
* @author Vexatos
*/
@MethodsReturnNonnullByDefault
@ParametersAreNonnullByDefault
package vexatos.backpacks.backpack;
import mcp.MethodsReturnNonnullByDefault;
import javax.annotation.ParametersAreNonnullByDefault;
| Vexatos/ForecastersBackpacks | src/main/java/vexatos/backpacks/backpack/package-info.java | Java | mit | 225 |
package mcjty.deepresonance.jei.smelter;
import mezz.jei.api.recipe.IRecipeWrapper;
import javax.annotation.Nonnull;
public class SmelterRecipeHandler implements mezz.jei.api.recipe.IRecipeHandler<SmelterRecipeWrapper> {
private final String id;
public SmelterRecipeHandler() {
this.id = SmelterReci... | McJty/DeepResonance | src/main/java/mcjty/deepresonance/jei/smelter/SmelterRecipeHandler.java | Java | mit | 834 |
package edu.purdue.eaps.weatherpipe;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchA... | stephenlienharrell/WeatherPipe | WeatherPipe/src/main/java/edu/purdue/eaps/weatherpipe/AWSInterface.java | Java | mit | 19,505 |
package framework.org.json;
/*
Copyright (c) 2002 JSON.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, copy, modify, ... | marcossilva/IFAdventure | EnsaioRetentivo/src/framework/org/json/JSONArray.java | Java | mit | 32,203 |
/**
* Created by avinashvundyala on 09/07/16.
*/
public class SelectionSort {
public int[] iterativeSelectionSort(int[] arr) {
int temp, smallIdx;
for(int i = 0; i < arr.length; i++) {
smallIdx = i;
for(int j = i; j < arr.length; j++) {
if(arr[smallIdx] > arr[j]) {
smallIdx = ... | vundyalaavinash/Algorithms | BasicSorting/SelectionSort.java | Java | mit | 2,176 |
package adasim.algorithm.routing;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
import java.util.Stack;
import org.apa... | brunyuriy/adasim | src/adasim/algorithm/routing/QLearningRoutingAlgorithm.java | Java | mit | 9,693 |
package jobmanager.tests;
import static alabno.testsuite.TestUtils.*;
import alabno.testsuite.TestModule;
import alabno.testsuite.TestStatistics;
import jobmanager.MicroServiceInfo;
public class MicroServiceInfoTest implements TestModule {
@Override
public void run(TestStatistics statistics) {
constructor_test(... | ke00n/alabno | infrastructure/infrastructure/src/main/java/jobmanager/tests/MicroServiceInfoTest.java | Java | mit | 657 |
package com.am.docker.study.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class RestDockerExample {
@RequestMapping("/")
public String home() {
return "Hello Docker World";
}
} | augustomarinho/springboot-docker | src/main/java/com/am/docker/study/controller/RestDockerExample.java | Java | mit | 299 |
package com.elmakers.mine.bukkit.api.event;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import com.elmakers.mine.bukkit.api.magic.Mage;
import com.elmakers.mine.bukkit.api.spell.Spell;
/**
* A custom event that the Magic plugin will fire any time a
* Mag... | elBukkit/MagicPlugin | MagicAPI/src/main/java/com/elmakers/mine/bukkit/api/event/PreCastEvent.java | Java | mit | 1,149 |
package com.naosim.rtm.lib;
import java.math.BigInteger;
import java.security.MessageDigest;
public class MD5 {
public static String md5(String str) {
try {
byte[] str_bytes = str.getBytes("UTF-8");
MessageDigest md = MessageDigest.getInstance("MD5");
byte[] md5_bytes =... | naosim/rtmjava | src/main/java/com/naosim/rtm/lib/MD5.java | Java | mit | 538 |
/*
* This file is part of TechReborn, licensed under the MIT License (MIT).
*
* Copyright (c) 2020 TechReborn
*
* 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, inc... | TechReborn/RebornCore | src/main/java/reborncore/client/gui/slots/SlotFake.java | Java | mit | 2,200 |
/*
GNU LESSER GENERAL PUBLIC LICENSE
Copyright (C) 2006 The Lobo Project
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 ... | lobobrowser/Cobra | src/main/java/org/cobraparser/html/renderer/RListItem.java | Java | mit | 6,450 |
package com.planmart;
import java.util.ArrayList;
import java.util.Date;
public class Order {
private Customer customer;
private String shippingRegion;
private PaymentMethod paymentMethod;
private Date placed;
private ArrayList<ProductOrder> items = new ArrayList<>();
private ArrayList<LineIte... | vadadler/java | planmart/src/com/planmart/Order.java | Java | mit | 2,316 |
package wblut.Render2016;
import java.util.Arrays;
import processing.core.PConstants;
public class MultiTextNoTitle extends Slide {
String[] lines = null;
int offset;
public MultiTextNoTitle(final RTO home, final String... lines) {
super(home, "");
this.lines = Arrays.copyOf(lines, lines.length);
offset ... | wblut/Render2016_RenderingTheObvious | src/wblut/Render2016/MultiTextNoTitle.java | Java | cc0-1.0 | 1,180 |
package tb.common.block;
import tb.common.item.ItemNodeFoci;
import tb.common.tile.TileNodeManipulator;
import tb.init.TBItems;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.en... | KryptonCaptain/ThaumicBases | src/main/java/tb/common/block/BlockNodeManipulator.java | Java | cc0-1.0 | 2,456 |
/*******************************************************************************
* Copyright (c) 2021 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, and is a... | kgibm/open-liberty | dev/com.ibm.ws.jpa.tests.spec10.entity_jpa_3.0_fat/fat/src/com/ibm/ws/jpa/tests/spec10/entity/FATSuite.java | Java | epl-1.0 | 1,362 |
/*
* Copyright (c) 2013 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.... | xiaohanz/softcontroller | opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/testingservices/parallelapsp/TestingParallelAPSPConfigMXBean.java | Java | epl-1.0 | 972 |
/*
* (C) Copyright 2017 Netcentric AG.
*
* 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 biz.netcentric.cq.t... | Netcentric/accesscontroltool | accesscontroltool-bundle/src/test/java/biz/netcentric/cq/tools/actool/configreader/TestYamlConfigReader.java | Java | epl-1.0 | 2,450 |
/*******************************************************************************
* Copyright (c) 2004 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availabl... | BIRT-eXperts/IBM-Maximo-BIRT-Code-Generator | src/com/mmkarton/mx7/reportgenerator/sqledit/SQLUtility.java | Java | epl-1.0 | 7,663 |
package hu.eltesoft.modelexecution.m2t.smap.emf;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import java.util.Vector;
/**
* Maps qualified EMF object references to virtual line numbers. Line numbering
* starts from one, and incremented by one when a new reference inserted.
*/
class... | ELTE-Soft/xUML-RT-Executor | plugins/hu.eltesoft.modelexecution.m2t.smap.emf/src/hu/eltesoft/modelexecution/m2t/smap/emf/ReferenceToLineMapping.java | Java | epl-1.0 | 1,442 |
package pacman.carte;
import java.util.ArrayList;
import pacman.personnages.Pacman;
import pacman.personnages.Personnage;
public class Labyrinthe {
public static final int NB_COLONNE = 20;
public static final int NB_LIGNE = 20;
protected int[][] grille;
protected int largeur;
protected int hauteur;
public sta... | Yoshi-xtaze/ACL2015_Jafaden | pacman/carte/Labyrinthe.java | Java | epl-1.0 | 3,356 |
package org.jboss.windup.reporting.rules;
import java.util.HashMap;
import java.util.Map;
import javax.inject.Inject;
import org.jboss.forge.furnace.Furnace;
import org.jboss.windup.config.AbstractRuleProvider;
import org.jboss.windup.config.GraphRewrite;
import org.jboss.windup.config.metadata.RuleMetadata;
import ... | mareknovotny/windup | reporting/api/src/main/java/org/jboss/windup/reporting/rules/CreateApplicationListReportRuleProvider.java | Java | epl-1.0 | 3,507 |
/**
*/
package fr.obeo.dsl.game.provider;
import fr.obeo.dsl.game.GameFactory;
import fr.obeo.dsl.game.GamePackage;
import fr.obeo.dsl.game.UI;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.ecl... | Obeo/Game-Designer | plugins/fr.obeo.dsl.game.edit/src-gen/fr/obeo/dsl/game/provider/UIItemProvider.java | Java | epl-1.0 | 6,992 |
/*******************************************************************************
* Copyright (c) 2012-2017 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available ... | sudaraka94/che | wsagent/che-datasource-ide/src/main/java/org/eclipse/che/datasource/ide/newDatasource/connector/DefaultNewDatasourceConnectorViewImpl.java | Java | epl-1.0 | 8,136 |
/**
*/
package org.eclipse.xtext.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.xtext.UntilToken;
import org.eclipse.xtext.XtextPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Until Token</b></em>'.
* <!-- end-user-doc -->
*
* @generated
*/
public class Un... | miklossy/xtext-core | org.eclipse.xtext/emf-gen/org/eclipse/xtext/impl/UntilTokenImpl.java | Java | epl-1.0 | 706 |
/*
* generated by Xtext
*/
package org.eclipse.xtext.testlanguages.fileAware.scoping;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.xtext.scoping.IGlobalScopeProvider;
import org.eclipse.xtext.scoping.IScope;
import org.eclipse.xtext.testlanguages.fileAware.fileAwa... | miklossy/xtext-core | org.eclipse.xtext.testlanguages/src/org/eclipse/xtext/testlanguages/fileAware/scoping/FileAwareTestLanguageScopeProvider.java | Java | epl-1.0 | 944 |
/*******************************************************************************
* Copyright (c) 1998, 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. ... | bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs | moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/oxm/readonly/OneDirectMappingProject.java | Java | epl-1.0 | 1,579 |
package com.odcgroup.page.transformmodel.ui.builder;
import org.eclipse.core.runtime.Assert;
import com.odcgroup.mdf.ecore.util.DomainRepository;
import com.odcgroup.page.metamodel.MetaModel;
import com.odcgroup.page.metamodel.util.MetaModelRegistry;
import com.odcgroup.page.model.corporate.CorporateDesign;
import co... | debabratahazra/DS | designstudio/components/page/ui/com.odcgroup.page.transformmodel.ui/src/main/java/com/odcgroup/page/transformmodel/ui/builder/WidgetBuilderContext.java | Java | epl-1.0 | 2,613 |
/*******************************************************************************
* Copyright 2009 Regents of the University of Minnesota. All rights
* reserved.
* Copyright 2009 Mayo Foundation for Medical Education and Research.
* All rights reserved.
*
* This program is made available under the terms of the Ecl... | jmchilton/TINT | projects/TropixStorageClient/src/test/edu/umn/msi/tropix/storage/client/impl/ModelStorageDataFactoryImplTest.java | Java | epl-1.0 | 3,201 |
/*******************************************************************************
* Copyright (c) 2005, 2009 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... | ttimbul/eclipse.wst | bundles/org.eclipse.wst.dtd.ui/src/org/eclipse/wst/dtd/ui/internal/wizard/NewDTDTemplatesWizardPage.java | Java | epl-1.0 | 17,558 |
/*******************************************************************************
* Copyright (c) 2021 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, and is a... | OpenLiberty/open-liberty | dev/com.ibm.ws.jpa.tests.spec10.entity_fat.common/test-applications/entity/src/com/ibm/ws/jpa/fvt/entity/tests/web/EmbeddableIDTestServlet.java | Java | epl-1.0 | 5,713 |
package net.eldiosantos.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
@Entity
public class Departamento implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType... | Eldius/projeto-testes | src/main/java/net/eldiosantos/model/Departamento.java | Java | epl-1.0 | 623 |
//
// 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: 2013.07.08 at 01:02:... | BeliliFahem/om2m-java-client-api | src/main/java/org/eclipse/om2m/commons/resource/package-info.java | Java | epl-1.0 | 667 |
/*
*******************************************************************************
* Copyright (c) 2013 Whizzo Software, LLC.
* 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 avai... | whizzosoftware/WZWave | src/main/java/com/whizzosoftware/wzwave/node/generic/MultilevelSensor.java | Java | epl-1.0 | 1,822 |
/*
* Copyright (c) 2013 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... | tx1103mark/controller | opendaylight/netconf/netconf-impl/src/test/java/org/opendaylight/controller/netconf/impl/ConcurrentClientsTest.java | Java | epl-1.0 | 16,612 |
/*******************************************************************************
* Copyright (c) 2007, 2008 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.core.manipulation/refactoring/org/eclipse/jdt/core/refactoring/participants/JavaParticipantManager.java | Java | epl-1.0 | 3,457 |
package com.teamNikaml.bipinography.activity;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import android.widge... | TeamNIKaml/LiveWallpaper | Awesome Wallpapers/src/com/teamNikaml/bipinography/activity/SplashActivity.java | Java | epl-1.0 | 4,397 |
package fr.obeo.dsl.minidrone.application;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.application.ActionBarAdvisor;
import org.eclipse.ui.application.IActionBarConfigurer;
public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
public A... | mbats/minidrone | plugins/fr.obeo.dsl.minidrone.application/src/fr/obeo/dsl/minidrone/application/ApplicationActionBarAdvisor.java | Java | epl-1.0 | 549 |