repo_name
stringlengths
5
108
path
stringlengths
6
333
size
stringlengths
1
6
content
stringlengths
4
977k
license
stringclasses
15 values
ohtuprojekti/OKKoPa_all
OKKoPa_core/src/main/java/fi/helsinki/cs/okkopa/main/stage/GetEmailStage.java
2409
package fi.helsinki.cs.okkopa.main.stage; import fi.helsinki.cs.okkopa.mail.read.EmailRead; import fi.helsinki.cs.okkopa.main.ExceptionLogger; import java.io.IOException; import java.io.InputStream; import java.util.List; import javax.mail.Message; import javax.mail.MessagingException; import org.apache.commons.io.IOU...
mit
blackphenol/SimpleSpring
src/main/java/simple/practice/Greeting.java
438
package simple.practice; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import simple.practice.service.GreetingService; @Component public class Greeting { @Autowired private GreetingService greetingService; public String printGreeting(String name...
mit
sftrabbit/StackAnswers
src/uk/co/sftrabbit/stackanswers/fragment/AuthInfoFragment.java
1678
/* * Copyright (C) 2013 Joseph Mansfield * * 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, merge, pu...
mit
zhangqiang110/my4j
pms/src/main/java/com/swfarm/biz/product/dao/impl/SkuSaleMappingDaoImpl.java
419
package com.swfarm.biz.product.dao.impl; import com.swfarm.biz.product.bo.SkuSaleMapping; import com.swfarm.biz.product.dao.SkuSaleMappingDao; import com.swfarm.pub.framework.dao.GenericDaoHibernateImpl; public class SkuSaleMappingDaoImpl extends GenericDaoHibernateImpl<SkuSaleMapping, Long> implements SkuSaleM...
mit
manniwood/cl4pg
src/test/java/com/manniwood/cl4pg/v1/test/types/IntegerSmallIntTest.java
5707
/* The MIT License (MIT) Copyright (c) 2014 Manni Wood 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, merge, pu...
mit
fqc/Java_Basic
src/main/java/com/fqc/jdk8/test06.java
927
package com.fqc.jdk8; import java.util.ArrayList; import java.util.Arrays; import java.util.Map; import java.util.Set; import java.util.stream.Collectors; public class test06 { public static void main(String[] args) { int[] arr = {1, 2, 3, 4, 5}; ArrayList<Integer> list = Arrays.stream(arr).collec...
mit
rchain/Rholang
src/main/java/rholang/parsing/delimc/Absyn/TType2.java
753
package rholang.parsing.delimc.Absyn; // Java Package generated by the BNF Converter. public class TType2 extends TType { public final Type type_1, type_2; public TType2(Type p1, Type p2) { type_1 = p1; type_2 = p2; } public <R,A> R accept(rholang.parsing.delimc.Absyn.TType.Visitor<R,A> v, A arg) { return v.vis...
mit
gggordon/JavaCSVTransform
src/com/igonics/transformers/simple/JavaCSVTransform.java
4527
package com.igonics.transformers.simple; import java.io.PrintStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.DefaultParser; import org.apache.commons.cli.HelpFormatter; imp...
mit
adrianherrera/jdivisitor
src/main/java/org/jdivisitor/debugger/launcher/RemoteVMConnector.java
2991
/* * 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...
mit
CatsProject/CycleAssistantTools
mobile/src/main/java/com/catsprogrammer/catsfourthv/MatrixCalculator.java
2238
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)...
mit
jeslopalo/flash-messages
flash-messages-core/src/main/java/es/sandbox/ui/messages/argument/LinkArgument.java
2828
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...
mit
Ocramius/idea-php-symfony2-plugin
tests/fr/adrienbrault/idea/symfony2plugin/tests/ServiceMapParserTest.java
2039
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...
mit
fof1092/WeatherVote
src/me/F_o_F_1092/WeatherVote/PluginManager/Spigot/HelpPageListener.java
2808
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...
mit
A-D-I-T-Y-A/Zeon-Client
src/minecraft/zeonClient/mods/KillAura.java
2021
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...
mit
CannibalVox/Schematica
src/main/java/com/github/lunatrius/schematica/client/gui/GuiSchematicMaterialsSlot.java
2204
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...
mit
cryxli/SpiritHealer
src/main/java/li/cryx/minecraft/death/ISpiritHealer.java
609
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...
mit
pixlepix/Aura-Cascade
src/main/java/pixlepix/auracascade/data/Quest.java
1082
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...
mit
zgqq/mah
mah-core/src/main/java/mah/ui/util/UiUtils.java
1999
/** * 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...
mit
Belpois/pixelpainter
src/main/java/com/missingeye/pixelpainter/events/network/texture/ServerUpdatedTexturePacketEvent.java
470
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...
mit
ayshen/caek
src/com/example/aperture/core/contacts/EmailFilter.java
5607
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...
mit
deanpanayotov/simple_weather
SimpleWeather/app/src/main/java/com/dpanayotov/simpleweather/api/base/BaseForecastResponse.java
87
package com.dpanayotov.simpleweather.api.base; public class BaseForecastResponse { }
mit
jermeyjungbeker/VP11B2
src/main/java/edu/avans/hartigehap/web/util/UrlUtil.java
833
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() { ...
mit
ejw0013/vegemite-smoothie
com/veggie/src/java/controllers/transaction/ReturnController.java
1973
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...
mit
ytimesru/kkm-pc-client
src/main/java/org/bitbucket/ytimes/client/main/Main.java
372
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...
mit
ericjin527/MockInterview
src/main/java/alexp/blog/service/ScheduleServiceImpl.java
569
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...
mit
palatable/lambda
src/test/java/com/jnape/palatable/lambda/optics/prisms/MapPrismTest.java
1147
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...
mit
agileapes/jpowerpack
string-tools/src/main/java/com/agileapes/powerpack/string/exception/NoMoreTextException.java
1068
/* * 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...
mit
gochaorg/lang2
src/test/java/xyz/cofe/lang2/parser/vref/L2EngineVarRef2.java
4141
/* * The MIT License * * Copyright 2014 Kamnev Georgiy (nt.gocha@gmail.com). * * Данная лицензия разрешает, безвозмездно, лицам, получившим копию данного программного * обеспечения и сопутствующей документации (в дальнейшем именуемыми "Программное Обеспечение"), * использовать Программное Обеспечение без огра...
mit
MrGaoRen/secretProject
cw/src/db/test.java
232
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"); } }
mit
mseclab/AHE17
Token-Generator/src/main/java/DotNet.java
3987
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...
mit
jgrillo/wordcount-service
src/test/java/com/jgrillo/wordcount/api/CountsTest.java
3572
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....
mit
borisbrodski/jmockit
main/test/mockit/integration/junit4/DependencyTests.java
366
/* * 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...
mit
e-baloo/it-keeps
it-keeps-core/src/main/java/org/ebaloo/itkeeps/core/domain/vertex/vAclGroup.java
6089
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...
mit
jenkinsci/chatwork-plugin
src/main/java/com/vexus2/jenkins/chatwork/jenkinschatworkplugin/api/Room.java
992
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...
mit
defunct/cafe
src/test/java/com/goodworkalan/mix/builder/BasicJavaProjectTest.java
196
package com.goodworkalan.mix.builder; import org.testng.annotations.Test; // TODO Document. public class BasicJavaProjectTest { // TODO Document. @Test public void build() { } }
mit
ihiroky/reservoir
src/main/java/net/ihiroky/reservoir/coder/ByteBufferOutputStream.java
1244
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...
mit
cowthan/Ayo2022
Ayo/app/src/main/java/org/ayo/ui/sample/material/ScaleTitlebarBehavior.java
2886
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...
mit
intuit/karate
karate-core/src/main/java/com/intuit/karate/job/JobUtils.java
5009
/* * 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...
mit
bennyguo/AssemblyNews
app/src/main/java/com/java/group34/NewsPictures.java
500
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...
mit
OurCraft/OurCraft
src/main/java/org/craft/client/render/blocks/BlockModelRenderer.java
8599
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...
mit
cscfa/bartleby
library/logBack/logback-1.1.3/logback-core/src/main/java/ch/qos/logback/core/pattern/color/GrayCompositeConverter.java
970
/** * 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 * * ...
mit
thekant/myCodeRepo
src/com/kant/datastructure/stacks/StockSpanProblem.java
2329
/** * */ 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...
mit
jasonlam604/StockTechnicals
src/com/jasonlam604/stocktechnicals/indicators/MovingAverageConvergenceDivergence.java
2631
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...
mit
guberti/AliensGame
ConsoleAliensGame/src/consolealiensgame/AlienContainer.java
4017
/* * 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...
mit
KhaledMuahamed/GameDevelop
Game/src/model/question/ImageQuestion.java
1428
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...
mit
kieranhogan13/Java
Distributed Systems/Labs/Week 7_Lab_Review/Week_3_T7/TCPSerServer.java
1769
// 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...
mit
yht-fand/cardone-platform-usercenter
consumer/src/test/java/top/cardone/func/vx/usercenter/userDepartment/D0002FuncTest.java
3282
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...
mit
lg198/CodeFray
src/com/github/lg198/codefray/jfx/GameResultGui.java
3347
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...
mit
YourEmpire/YourEmpire
Your Empire API/src/main/java/pl/yourempire/api/event/Event.java
1714
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...
mit
wipu/iwant
essential/iwant-planner-api/src/main/java/org/fluentjava/iwant/plannerapi/ResourcePool.java
164
package org.fluentjava.iwant.plannerapi; public interface ResourcePool { boolean hasFreeResources(); Resource acquire(); void release(Resource resource); }
mit
nileshk/truedolist-java
src/main/java/com/myconnector/client/domain/TodoListClient.java
1476
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...
mit
dst-hackathon/socialradar-android
hackathon2014/app/src/main/java/com/hackathon/hackathon2014/activity/QuestionActivity.java
4070
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...
mit
craigfreilly/masters-project-submission
src/KnotTheory/JavaKh-v2/src/net/tqft/iterables/interfaces/Transformer.java
126
package net.tqft.iterables.interfaces; public interface Transformer<S, T> { public abstract T evaluate(S s); }
mit
WOVNio/wovnjava
src/test/java/com/github/wovnio/wovnjava/HeadersTest.java
21076
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...
mit
widmofazowe/cyfronoid-core
src/eu/cyfronoid/core/configuration/evaluator/Stack.java
694
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() { ...
mit
gabizou/SpongeAPI
src/main/java/org/spongepowered/api/text/Texts.java
19598
/* * 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...
mit
future-architect/uroborosql
src/test/java/jp/co/future/uroborosql/parameter/mapper/BindParameterMapperManagerTest.java
6049
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...
mit
mattwright324/youtube-comment-suite
src/main/java/io/mattw/youtube/commentsuite/util/ClipboardUtil.java
1872
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...
mit
sjfloat/cyclops
cyclops-guava/src/main/java/com/aol/cyclops/guava/FromSimpleReact.java
286
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); } }
mit
ByeongGi/Koata_Java
Jsp1012-13_struts2-04/src/dao/BoardDao2.java
1753
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;...
mit
5devs/web-project-m1
FretePlanejado/src/java/com/freteplanejado/entity/Frete.java
2066
/* * 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...
mit
dashorst/project-euler
src/test/java/com/martijndashorst/euler/Euler12.java
1853
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 ...
mit
artem-gabbasov/otus_java_2017_04_L1
L5.1/src/test/java/ru/otus/l51/tests/TestClass.java
502
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; ...
mit
rtashev/University-Projects
library/webapplibraryproject/src/main/java/com/project/library/utils/MyDateUtil.java
667
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...
mit
calebmeyer/Better-Crafting-Tables
src/main/java/com/calebmeyer/bettercrafting/creativetab/CreativeTabBCT.java
907
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...
mit
PA165-MushroomHunter/MushroomHunter
service/src/main/java/cz/muni/fi/pa165/mushrooms/service/exceptions/EntityOperationServiceException.java
563
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...
mit
ktg/openFood
src/main/java/uk/ac/nott/mrl/gles/program/GraphProgram.java
5077
/* * 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...
mit
tsdl2013/SimpleFlatMapper
sfm/src/main/java/org/sfm/tuples/Tuple20.java
3155
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,...
mit
MylesIsCool/ViaVersion
common/src/main/java/com/viaversion/viaversion/protocols/protocol1_12_2to1_12_1/Protocol1_12_2To1_12_1.java
2084
/* * 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...
mit
lionelcollidor/dta-formation
apps/pizzeria-console-objet/pizzeria-dao/src/main/java/fr/pizzeria/exception/StockageException.java
353
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...
mit
Vexatos/ForecastersBackpacks
src/main/java/vexatos/backpacks/backpack/package-info.java
225
/** * @author Vexatos */ @MethodsReturnNonnullByDefault @ParametersAreNonnullByDefault package vexatos.backpacks.backpack; import mcp.MethodsReturnNonnullByDefault; import javax.annotation.ParametersAreNonnullByDefault;
mit
McJty/DeepResonance
src/main/java/mcjty/deepresonance/jei/smelter/SmelterRecipeHandler.java
834
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...
mit
stephenlienharrell/WeatherPipe
WeatherPipe/src/main/java/edu/purdue/eaps/weatherpipe/AWSInterface.java
19505
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...
mit
marcossilva/IFAdventure
EnsaioRetentivo/src/framework/org/json/JSONArray.java
32203
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, ...
mit
vundyalaavinash/Algorithms
BasicSorting/SelectionSort.java
2176
/** * 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 = ...
mit
brunyuriy/adasim
src/adasim/algorithm/routing/QLearningRoutingAlgorithm.java
9693
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...
mit
ke00n/alabno
infrastructure/infrastructure/src/main/java/jobmanager/tests/MicroServiceInfoTest.java
657
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(...
mit
augustomarinho/springboot-docker
src/main/java/com/am/docker/study/controller/RestDockerExample.java
299
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"; } }
mit
elBukkit/MagicPlugin
MagicAPI/src/main/java/com/elmakers/mine/bukkit/api/event/PreCastEvent.java
1149
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...
mit
naosim/rtmjava
src/main/java/com/naosim/rtm/lib/MD5.java
538
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 =...
mit
TechReborn/RebornCore
src/main/java/reborncore/client/gui/slots/SlotFake.java
2200
/* * 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...
mit
lobobrowser/Cobra
src/main/java/org/cobraparser/html/renderer/RListItem.java
6450
/* 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 ...
mit
vadadler/java
planmart/src/com/planmart/Order.java
2316
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...
mit
wblut/Render2016_RenderingTheObvious
src/wblut/Render2016/MultiTextNoTitle.java
1180
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 ...
cc0-1.0
KryptonCaptain/ThaumicBases
src/main/java/tb/common/block/BlockNodeManipulator.java
2456
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...
cc0-1.0
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
1362
/******************************************************************************* * 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...
epl-1.0
xiaohanz/softcontroller
opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/testingservices/parallelapsp/TestingParallelAPSPConfigMXBean.java
972
/* * 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....
epl-1.0
Netcentric/accesscontroltool
accesscontroltool-bundle/src/test/java/biz/netcentric/cq/tools/actool/configreader/TestYamlConfigReader.java
2450
/* * (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...
epl-1.0
BIRT-eXperts/IBM-Maximo-BIRT-Code-Generator
src/com/mmkarton/mx7/reportgenerator/sqledit/SQLUtility.java
7663
/******************************************************************************* * 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...
epl-1.0
ELTE-Soft/xUML-RT-Executor
plugins/hu.eltesoft.modelexecution.m2t.smap.emf/src/hu/eltesoft/modelexecution/m2t/smap/emf/ReferenceToLineMapping.java
1442
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...
epl-1.0
Yoshi-xtaze/ACL2015_Jafaden
pacman/carte/Labyrinthe.java
3356
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...
epl-1.0
mareknovotny/windup
reporting/api/src/main/java/org/jboss/windup/reporting/rules/CreateApplicationListReportRuleProvider.java
3507
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 ...
epl-1.0
Obeo/Game-Designer
plugins/fr.obeo.dsl.game.edit/src-gen/fr/obeo/dsl/game/provider/UIItemProvider.java
6992
/** */ 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...
epl-1.0
sudaraka94/che
wsagent/che-datasource-ide/src/main/java/org/eclipse/che/datasource/ide/newDatasource/connector/DefaultNewDatasourceConnectorViewImpl.java
8136
/******************************************************************************* * 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 ...
epl-1.0
miklossy/xtext-core
org.eclipse.xtext/emf-gen/org/eclipse/xtext/impl/UntilTokenImpl.java
706
/** */ 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...
epl-1.0
miklossy/xtext-core
org.eclipse.xtext.testlanguages/src/org/eclipse/xtext/testlanguages/fileAware/scoping/FileAwareTestLanguageScopeProvider.java
944
/* * 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...
epl-1.0
bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs
moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/oxm/readonly/OneDirectMappingProject.java
1579
/******************************************************************************* * 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. ...
epl-1.0
debabratahazra/DS
designstudio/components/page/ui/com.odcgroup.page.transformmodel.ui/src/main/java/com/odcgroup/page/transformmodel/ui/builder/WidgetBuilderContext.java
2613
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...
epl-1.0
jmchilton/TINT
projects/TropixStorageClient/src/test/edu/umn/msi/tropix/storage/client/impl/ModelStorageDataFactoryImplTest.java
3201
/******************************************************************************* * 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...
epl-1.0
ttimbul/eclipse.wst
bundles/org.eclipse.wst.dtd.ui/src/org/eclipse/wst/dtd/ui/internal/wizard/NewDTDTemplatesWizardPage.java
17558
/******************************************************************************* * 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...
epl-1.0