repo_name
stringlengths
5
108
path
stringlengths
6
333
size
stringlengths
1
6
content
stringlengths
4
977k
license
stringclasses
15 values
FranPR9/NBALIVEFEED
app/src/main/java/fpr9/com/nbalivefeed/entities/RecordContainer.java
430
package fpr9.com.nbalivefeed.entities; /** * Created by FranciscoPR on 07/11/16. */ public class RecordContainer { private String id; private Record record; public String getId() { return id; } public void setId(String id) { this.id = id; } public Record getRecord() { ...
mit
kevintanhongann/nextrtc-signaling-server
src/main/java/org/nextrtc/signalingserver/api/NextRTCEventBus.java
719
package org.nextrtc.signalingserver.api; import lombok.extern.log4j.Log4j; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Service; import com.google.common.eventbus.EventBus; @Log4j @Service("nextRTCEventBus") @Scope("singleton") public class NextRTCEventBus { private E...
mit
LSTS/imcproxy
src/pt/lsts/imc/ImcClientSocket.java
1796
package pt.lsts.imc; import java.io.IOException; import java.net.URI; import java.util.concurrent.Future; import org.eclipse.jetty.websocket.api.Session; import org.eclipse.jetty.websocket.api.annotations.OnWebSocketConnect; import org.eclipse.jetty.websocket.api.annotations.OnWebSocketMessage; import org.eclipse.jet...
mit
cr0ybot/MIRROR
libraries/JBox2D/src/org/jbox2d/testbed/TestSettings.java
2286
/* * JBox2D - A Java Port of Erin Catto's Box2D * * JBox2D homepage: http://jbox2d.sourceforge.net/ * Box2D homepage: http://www.gphysics.com * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use o...
mit
csmervyn/java-learn
java-learn-io/src/test/java/org/github/mervyn/io/FileInputStreamTest.java
1707
package org.github.mervyn.io; import static org.junit.Assert.*; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * @ClassName: FileInputStreamTest * @Des...
mit
Sch3lp/ProductivityWithShortcuts
src/main/java/be/swsb/productivity/chapter5/beans/CoffeeBeans.java
120
package be.swsb.productivity.chapter5.beans; public abstract class CoffeeBeans { public abstract String scent(); }
mit
zsgithub3895/common.code
src/com/zs/leetcode/array/MergeIntervals.java
1011
package com.zs.leetcode.array; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; public class MergeIntervals { public static void main(String[] args) { } public List<Interval> merge(List<Interval> intervals) { List<Interval> list = new ...
mit
SRI-CSL/bixie
src/main/java/bixie/checker/transition_relation/FaultLocalizationTransitionRelation.java
5883
package bixie.checker.transition_relation; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedList; import bixie.boogie.controlflow.AbstractControlFlowFactory; import bixie.boogie.controlflow.BasicBlock; import bixie.boogie.controlflow.CfgProcedure; import ...
mit
meefik/java-examples
SpringAOP/src/main/java/ru/ifmo/springaop/namepc/NamePointcutExample.java
1153
package ru.ifmo.springaop.namepc; import org.springframework.aop.Advisor; import org.springframework.aop.framework.ProxyFactory; import org.springframework.aop.support.DefaultPointcutAdvisor; import org.springframework.aop.support.NameMatchMethodPointcut; import ru.ifmo.springaop.staticpc.SimpleAdvice; /** ...
mit
haducloc/appslandia-common
src/main/java/com/appslandia/common/base/BufferedWriter.java
3684
// The MIT License (MIT) // Copyright © 2015 AppsLandia. All rights reserved. // 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 ...
mit
pearlqueen/java-simple-mvc
src/main/java/com/dmurph/mvc/gui/combo/MVCJComboBox.java
10703
/** * Copyright (c) 2010 Daniel Murphy * * 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, publ...
mit
jwfwessels/AFK
src/afk/ge/tokyo/ems/systems/DebugRenderSystem.java
6629
/* * Copyright (c) 2013 Triforce - in association with the University of Pretoria and Epi-Use <Advance/> * * 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...
mit
chinnychin19/CS308_Proj3
src/view/menuBar/workspace/WorkSpacePreferenceReader.java
1836
package view.menuBar.workspace; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import javax.swing.JOptionPane; import view.Constants; import view.ViewController; /** * Class that reads in workspace preference files * * @author Lalita Maraj * @author Su...
mit
swaplicado/siie32
src/erp/cfd/SCfdiSignature.java
1709
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package erp.cfd; import java.io.Serializable; /** * * @author Juan Barajas */ public final class SCfdiSignature implements Serializable { private String msUuid; private String msFechaTimbrado; private ...
mit
SpongePowered/Sponge
src/main/java/org/spongepowered/common/entity/ai/goal/SpongeGoalType.java
1809
/* * This file is part of Sponge, 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 "Softwar...
mit
Ehbraheem/Baking-Time
app/src/main/java/com/example/profbola/bakingtime/provider/IngredientDbHelper.java
2247
package com.example.profbola.bakingtime.provider; import android.database.sqlite.SQLiteDatabase; import com.example.profbola.bakingtime.provider.RecipeContract.IngredientEntry; import static com.example.profbola.bakingtime.utils.RecipeConstants.IngredientDbHelperConstants.INGREDIENT_RECIPE_ID_IDX; /** * Created by...
mit
hghwng/mooc-algs1
2/RandomizedQueue.java
2505
import java.util.Iterator; import java.util.NoSuchElementException; @SuppressWarnings("unchecked") public class RandomizedQueue<Item> implements Iterable<Item> { private Item[] _arr; private int _length = 0; private void resize(int newLength) { if (newLength > _arr.length) newLength = 2 * _arr.len...
mit
ivelin1936/Studing-SoftUni-
Programming Fundamentals/Basics-MoreExercises/src/com/company/TrainingHallEquipment.java
1209
package com.company; import java.util.Scanner; public class TrainingHallEquipment { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double budget = Double.parseDouble(scanner.nextLine()); int numberOfItems = Integer.parseInt(scanner.nextLine()); ...
mit
superdyzio/PWR-Stuff
INF/Algorytmy i Struktury Danych/zad1/main.java
2259
import java.io.IOException; import java.util.Scanner; import iterators.*; import User.User; public class main { public static void zad1(ArrayIterator it){ PredicateCoN pred = new PredicateCoN(4); PredicateCoN pred2 = new PredicateCoN(2); IteratorCoN con = new IteratorCoN(it,pred); IteratorCoN co = new Iter...
mit
BahodirBoydedayev/conferenceApp
src/main/java/app/location/Location.java
454
package app.location; import app.core.BaseEntity; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; @NoArgsConstructor @AllArgsConstructor @Getter @Setter @E...
mit
catedrasaes-umu/NoSQLDataEngineering
projects/es.um.nosql.s13e.datavisualization/src/Variation_Diff/validation/EntityTypeValidator.java
534
/** * * $Id$ */ package Variation_Diff.validation; /** * A sample validator interface for {@link Variation_Diff.EntityType}. * This doesn't really do anything, and it's not a real EMF artifact. * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator ...
mit
dayse/gesplan
src/xfuzzy/xfplot/Xfplot2DPanel.java
6711
//--------------------------------------------------------------------------------// // COPYRIGHT NOTICE // //--------------------------------------------------------------------------------// // Copyright (c) 2012, Instituto de Microelectronica de Sevilla (...
mit
DeyuGoGo/EasyJavaDesignPatterns
HeadFirstDesignPatterns/src/proxy/test/Server.java
622
package proxy.test; import java.rmi.Naming; import java.rmi.RemoteException; import java.rmi.server.UnicastRemoteObject; import util.JavaLog; public class Server extends UnicastRemoteObject implements RemoteInterface{ private static final long serialVersionUID = 1L; protected Server() throws RemoteException { ...
mit
Open-RIO/ToastAPI
src/main/java/jaci/openrio/toast/core/loader/simulation/GuiRobotState.java
3232
package jaci.openrio.toast.core.loader.simulation; import jaci.openrio.toast.lib.state.RobotState; import javax.swing.*; import java.awt.*; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.geom.Rectangle2D; /** * A GUI Element for switching the Robot State during Simulation * ...
mit
YangMann/drone-slam
drone-slam/src/drone_slam/apps/controlcenter/plugins/attitudechart/AttitudeChartPanel.java
1902
package drone_slam.apps.controlcenter.plugins.attitudechart; import drone_slam.apps.controlcenter.ICCPlugin; import drone_slam.base.IARDrone; import drone_slam.base.navdata.AttitudeListener; import org.jfree.chart.ChartPanel; import javax.swing.*; import java.awt.*; public class AttitudeChartPanel extends JPanel im...
mit
wallner/connector4java
src/main/java/org/osiam/client/OsiamUserService.java
15934
package org.osiam.client; /* * for licensing see the file license.txt. */ import static org.apache.http.HttpStatus.SC_FORBIDDEN; import static org.apache.http.HttpStatus.SC_OK; import static org.apache.http.HttpStatus.SC_UNAUTHORIZED; import static org.apache.http.HttpStatus.SC_CONFLICT; import java.io.IOException;...
mit
turbolent/lila
src/java/lila/runtime/StringPrintWriter.java
1802
/* * Copyright 2002-2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
mit
xaviersierra/digit-guesser
drawer/src/main/java/xsierra/digitguesser/drawer/pipeline/DigitPipeline.java
299
package xsierra.digitguesser.drawer.pipeline; import java.awt.image.BufferedImage; public interface DigitPipeline { /** * @param image An image that contains a drawed digit * @return the guessed digit, a number between 0 - 9 */ byte imageGuessDigit(BufferedImage image); }
mit
connectim/Android
app/src/main/java/connect/view/HightEqWidthRounderImage.java
759
package connect.view; import android.content.Context; import android.util.AttributeSet; import connect.view.roundedimageview.RoundedImageView; /** * Created by Administrator on 2016/12/15. */ public class HightEqWidthRounderImage extends RoundedImageView { public HightEqWidthRounderImage(Context context) { ...
mit
dmytro-bekuzarov/projectx-api
projectx-api-domain/src/main/java/com/sind/projectx/domain/food/menu/MenuSection.java
890
package com.sind.projectx.domain.food.menu; import org.hibernate.validator.constraints.NotBlank; import org.hibernate.validator.constraints.NotEmpty; import java.util.ArrayList; import java.util.List; /** * @author Dmytro Bekuzarov */ public class MenuSection { @NotBlank private String name; @NotEmpt...
mit
joerg/stash-git-lfs
src/test/java/it/at/oiml/stash/lfs/MyComponentWiredTest.java
1003
// package it.at.oiml.bitbucket.lfs; // // import org.junit.Test; // import org.junit.runner.RunWith; // import com.atlassian.plugins.osgi.test.AtlassianPluginsTestRunner; // import at.oiml.bitbucket.lfs.MyPluginComponent; // import com.atlassian.sal.api.ApplicationProperties; // // import static org.junit.Assert.asser...
mit
Yujia-Xiao/Leetcode
List/Binary_Tree_Upside_Down.java
1805
/* Binary Tree Upside Down Given a binary tree where all the right nodes are either leaf nodes with a sibling (a left node that shares the same parent node) or empty, flip it upside down and turn it into a tree where the original right nodes turned into left leaf nodes. Return the new root. For example: Given a binary...
mit
trashkalmar/MrParkingNavigator
src/ru/mail/parking/sw2/system/SwRegInfo.java
2177
package ru.mail.parking.sw2.system; import com.sonyericsson.extras.liveware.aef.registration.Registration; import com.sonyericsson.extras.liveware.extension.util.ExtensionUtils; import com.sonyericsson.extras.liveware.extension.util.registration.RegistrationInformation; import android.content.ContentValues; import r...
mit
PATRIC3/patric3_website
portal/patric-diseaseview/src/edu/vt/vbi/patric/portlets/DiseaseOverview.java
7388
/** * **************************************************************************** * Copyright 2014 Virginia Polytechnic Institute and State University * <p/> * 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 cop...
mit
adamjcook/cs27500
hw1/TestDrive.java
2807
/***************************************************************************** * Course: CS 27500 * Name: Adam Joseph Cook * Email: cook5@purduecal.edu * Assignment: 1 * * The <CODE>TestDrive</CODE> Java application simulates a car being driven * depending on its provided fuel efficiency and fuel amount. * * @...
mit
asposemarketplace/Aspose-Pdf-Java
src/programmersguide/workingwithasposepdfgenerator/workingwithtext/textformatting/inheritingtextformat/java/InheritingTextFormat.java
751
/* * Copyright 2001-2013 Aspose Pty Ltd. All Rights Reserved. * * This file is part of Aspose.Pdf. The source code in this file * is only intended as a supplement to the documentation, and is provided * "as is", without warranty of any kind, either expressed or implied. */ package programmersguide.workingwitha...
mit
project-rhd/smash-app
smash-tweets/smash-tweets-data/src/main/java/smash/data/tweets/pojo/TweetCoordinates.java
1190
package smash.data.tweets.pojo; import java.io.Serializable; import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; /** * @author Yikai Gong */ public class TweetCoordinates implements Serializable { private String type; // Order in lon-lat. Follow the GeoJSON/WKT standard which JTS is...
mit
riccardobellini/recipecatalog-backend-java
src/main/java/com/bellini/recipecatalog/exception/recipe/NotExistingRecipeException.java
559
package com.bellini.recipecatalog.exception.recipe; public class NotExistingRecipeException extends RuntimeException { private static final long serialVersionUID = 2975419159984559986L; private Long id; public NotExistingRecipeException(Long id) { super(); if (id == null) { th...
mit
bartoszgolek/whattodofordinner
app/src/main/java/biz/golek/whattodofordinner/view/activities/PromptsActivity.java
7640
package biz.golek.whattodofordinner.view.activities; import android.support.annotation.NonNull; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.ContextMenu; import android.view.MenuInflater; import android.view.MenuItem; import and...
mit
TeamworkGuy2/JTwg2Templating
src/twg2/template/codeTemplate/ClassTemplateBuilder.java
5967
package twg2.template.codeTemplate; import java.util.ArrayList; import java.util.List; import java.util.Map; /** * @param <T> the {@link ClassInfo} to build * * @author TeamworkGuy2 * @since 2015-1-24 */ public final class ClassTemplateBuilder<T extends ClassInfo> { private T tmpl; public ClassTemplateBuild...
mit
andersonsilvade/workspacejava
engsoft1globalcode/aj2lab10_02/src/Agencia.java
2802
/* * Globalcode - "The Developers Company" * * Academia do Java * */ public abstract class Agencia { private String numero; private Banco banco; /** * @param num * Numero da agencia * @param bc * banco ao qual a agencia pertence */ public Agencia(Str...
mit
lordmarkm/ccsi
ccsi-commons/src/main/java/com/ccsi/commons/dto/tenant/BaseCcsiInfo.java
595
package com.ccsi.commons.dto.tenant; /** * @author mbmartinez */ public class BaseCcsiInfo { protected Long id; protected String name; protected String description; public String getName() { return name; } public void setName(String name) { this.name = name; } public...
mit
RadishSystems/choiceview-webapi-avaya-demo
RadishTest/WEB-INF/src/flow/IProjectVariables.java
6735
package flow; /** * This interface is used to define the name of variables that are * declared in the call flow. All variables are defined as * <code>public static final String</code>, which allows user-defined * code to reference variable names by the Java variable name. * Last generated by Orchestration Desi...
mit
haslam22/gomoku
src/main/java/piskvork/PiskvorkCommand.java
898
package piskvork; /** * Root interface for a Piskvork command. A command must provide a string to * send to the AI, and a method to validate the response. */ public interface PiskvorkCommand { /** * Get the string for this command to send to the AI. * @return String identifier of the command, e.g. TU...
mit
caadxyz/Macro-Thinking-Micro-action
experimental/gov/nasa/worldwind/render/SurfaceCircle2.java
1719
/* Copyright (C) 2001, 2008 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. All Rights Reserved. */ package gov.nasa.worldwind.render; import gov.nasa.worldwind.geom.*; import gov.nasa.worldwind.render.airspaces.*; import javax.media.opengl.*; ...
mit
martindisch/Lolli
app/src/main/java/com/martin/lolli/NavigationDrawerFragment.java
10019
package com.martin.lolli; import android.app.ActionBar; import android.app.Activity; import android.app.Fragment; import android.content.SharedPreferences; import android.content.res.Configuration; import android.os.Bundle; import android.preference.PreferenceManager; import android.support.v4.app.ActionBarDrawerTogg...
mit
sake/bouncycastle-java
src/org/bouncycastle/asn1/cms/EncryptedData.java
2516
package org.bouncycastle.asn1.cms; import org.bouncycastle.asn1.ASN1EncodableVector; import org.bouncycastle.asn1.ASN1Integer; import org.bouncycastle.asn1.ASN1Object; import org.bouncycastle.asn1.ASN1Primitive; import org.bouncycastle.asn1.ASN1Sequence; import org.bouncycastle.asn1.ASN1Set; import org.bouncycastle.as...
mit
jackrosenhauer/web-server
src/Main.java
983
import java.io.*; import java.net.ServerSocket; import java.net.Socket; /** * Created by jackrosenhauer on 5/5/15. */ public class Main { public static void main(String[] args){ final int DEFAULT_PORT = 8080; // For security reasons, only root can use ports < 1024. int portNumber = args.length >...
mit
agamemnus/cordova-plugin-admob
src/android/AdMob.java
20788
package com.agamemnus.cordova.plugin; import com.google.android.gms.ads.AdListener; import com.google.android.gms.ads.AdRequest; import com.google.android.gms.ads.AdSize; import com.google.android.gms.ads.AdView; import com.google.android.gms.ads.InterstitialAd; import com.google.android.gms.ads.mediation.admob.AdMobE...
mit
osmoossi/tapsudraft
src/main/java/fi/ozzi/tapsudraft/service/PlayerFetchService.java
3834
package fi.ozzi.tapsudraft.service; import com.google.common.collect.ImmutableMap; import fi.ozzi.tapsudraft.model.Player; import fi.ozzi.tapsudraft.model.Position; import fi.ozzi.tapsudraft.repository.PlayerRepository; import lombok.NonNull; import lombok.RequiredArgsConstructor; import org.apache.http.HttpResponse; ...
mit
SunnyBat/PAXChecker
src/main/java/com/github/sunnybat/paxchecker/setup/email/EmailSetupGUI.java
22577
/* * 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.github.sunnybat.paxchecker.setup.email; import com.github.sunnybat.commoncode.email.EmailAddress; import com.github.sunnyb...
mit
cybersonic/org.cfeclipse.cfml
src/org/cfeclipse/cfml/parser/cfscript/ParseException.java
6569
/* Generated By:JavaCC: Do not edit this line. ParseException.java Version 3.0 */ package org.cfeclipse.cfml.parser.cfscript; /** * This exception is thrown when parse errors are encountered. * You can explicitly create objects of this exception type by * calling the method generateParseException in the generat...
mit
r24mille/IesoPublicReportBindings
src/main/java/ca/ieso/reports/schema/iomspublicplannedoutageday/ConfidentialityClass.java
1298
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 // 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.12.23 at 08:...
mit
jwiesel/sfdcCommander
sfdcCommander/src/main/java/com/sforce/soap/partner/FieldLevelSearchMetadata.java
5935
/** * FieldLevelSearchMetadata.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package com.sforce.soap.partner; public class FieldLevelSearchMetadata implements java.io.Serializable { private java.lang.String label; ...
mit
lightofanima/GameDevelopmentTutorial
Pong/core/src/sprites/Enemy.java
564
package sprites; public class Enemy extends Paddle { public Enemy(int x, int y) { super(x,y); } int updateFrameCounter = 0; float moveDirection = 0; public void update(float dt, Ball ball) { //if(++updateFrameCounter%3==0) //{ updateFrameCounter = 0; if(position.y < ball.position.y) move...
mit
mcisb/SuBliMinaLToolbox
src/main/java/org/mcisb/subliminal/metacyc/MetaCycExtracter.java
7913
/******************************************************************************* * Manchester Centre for Integrative Systems Biology * University of Manchester * Manchester M1 7ND * United Kingdom * * Copyright (C) 2008 University of Manchester * * This program is released under the Academic Free License ("AF...
mit
munificent/magpie-optionally-typed
src/com/stuffwithstuff/magpie/interpreter/builtin/BuiltInCallable.java
263
package com.stuffwithstuff.magpie.interpreter.builtin; import com.stuffwithstuff.magpie.interpreter.Interpreter; import com.stuffwithstuff.magpie.interpreter.Obj; public interface BuiltInCallable { Obj invoke(Interpreter interpreter, Obj thisObj, Obj arg); }
mit
aaryn101/lol4j
src/main/java/lol4j/protocol/dto/champion/ChampionDto.java
1387
package lol4j.protocol.dto.champion; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; /** * Created by Aaron Corley on 12/10/13. */ @JsonIgnoreProperties(ignoreUnknown = true) public class ChampionDto { private boolean active; private boolean botEnabled; private boolean botMmEnabled; pr...
mit
GarciaPL/BankNow
src/main/java/pl/garciapl/banknow/service/TransactionService.java
703
package pl.garciapl.banknow.service; import java.math.BigDecimal; import java.math.BigInteger; import java.util.List; import pl.garciapl.banknow.model.Transaction; import pl.garciapl.banknow.service.exceptions.GenericBankNowException; import pl.garciapl.banknow.service.exceptions.InsufficientFundsException; /** * Tr...
mit
Eadgyth/Java-Programming-Editor
src/eg/utils/SystemParams.java
1846
package eg.utils; import java.io.File; import java.awt.Toolkit; /** * Static system properties */ public class SystemParams { /** * True if the OS is Windows, false otherwise */ public static final boolean IS_WINDOWS; /** * The Java version */ public static final String JAVA_VERSION; /** ...
mit
UCT-White-Lab/provisioning-jig
fw_update/ST_decrypt.java
22664
import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.util.Arrays; import java.util.logging.Level; import java.util.log...
mit
wiselenium/wiselenium
wiselenium-elements/src/main/java/com/github/wiselenium/elements/component/MultiSelect.java
4862
/** * Copyright (c) 2013 Andre Ricardo Schaffer * * 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
lexek/chat
src/main/java/lexek/wschat/db/dao/UserDao.java
8668
package lexek.wschat.db.dao; import lexek.wschat.chat.e.EntityNotFoundException; import lexek.wschat.chat.e.InvalidInputException; import lexek.wschat.db.model.DataPage; import lexek.wschat.db.model.UserData; import lexek.wschat.db.model.UserDto; import lexek.wschat.db.model.form.UserChangeSet; import lexek.wschat.uti...
mit
HenryHarper/Acquire-Reboot
gradle/src/model-core/org/gradle/model/internal/core/NodeBackedModelSet.java
6263
/* * Copyright 2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
mit
Microsoft/vsminecraft
minecraftpkg/MekanismModSample/src/main/java/mekanism/common/transmitters/Transmitter.java
1976
package mekanism.common.transmitters; import mekanism.api.transmitters.DynamicNetwork; import mekanism.api.transmitters.IGridTransmitter; public abstract class Transmitter<A, N extends DynamicNetwork<A, N>> implements IGridTransmitter<A, N> { public N theNetwork = null; public boolean orphaned = true; @Override ...
mit
thiagorabelo/CommentTemplate
src/commenttemplate/expressions/exceptions/FunctionWithSameNameAlreadyExistsException.java
351
package commenttemplate.expressions.exceptions; /** * * @author thiago */ // @TODO: RuntimeException? public class FunctionWithSameNameAlreadyExistsException extends RuntimeException { /** * Justa a custom mensage. * * @param msg A custom mensage. */ public FunctionWithSameNameAlreadyExistsException(St...
mit
curtbinder/AndroidStatus
app/src/main/java/info/curtbinder/reefangel/phone/MainActivity.java
17315
/* * The MIT License (MIT) * * Copyright (c) 2015 Curt Binder * * 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, ...
mit
tuura/workcraft
workcraft/PolicyPlugin/src/org/workcraft/plugins/policy/commands/PetriToPolicyConversionCommand.java
1471
package org.workcraft.plugins.policy.commands; import org.workcraft.commands.AbstractConversionCommand; import org.workcraft.plugins.petri.Petri; import org.workcraft.plugins.petri.VisualPetri; import org.workcraft.plugins.policy.Policy; import org.workcraft.plugins.policy.PolicyDescriptor; import org.workcraft.plugin...
mit
seph-lang/seph
src/test/seph/lang/TextTest.java
412
/* * See LICENSE file in distribution for copyright and licensing information. */ package seph.lang; import org.junit.Test; import static org.junit.Assert.*; /** * @author <a href="mailto:ola.bini@gmail.com">Ola Bini</a> */ public class TextTest { @Test public void is_a_seph_object() { assertTrue(...
mit
dianbaer/grain
mongodb/src/test/java/org/grain/mongo/MongodbManagerTest.java
2935
//package org.grain.mongo; // //import static org.junit.Assert.assertEquals; // //import java.util.ArrayList; //import java.util.List; //import java.util.UUID; // //import org.bson.conversions.Bson; //import org.junit.BeforeClass; //import org.junit.Test; // //import com.mongodb.client.model.Filters; // //public class ...
mit
kkkon/job-strongauth-simple-plugin
src/main/java/org/jenkinsci/plugins/job_strongauth_simple/JobStrongAuthSimpleBuilder.java
31334
/** * The MIT License * * Copyright (C) 2012 KK.Kon * * 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, mo...
mit
lutana-de/easyflickrbackup
src/main/java/de/lutana/easyflickrbackup/ImageSizes.java
2063
/* * The MIT License * * Copyright 2016 Matthias. * * 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
pdd/mongoj
test/src/java/custom/com/example/demo/model/impl/RegisteredDriverImpl.java
2066
/** * Copyright (c) 2011 Prashant Dighe * * 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, ...
mit
rnentjes/Simple-jdbc-statistics
test/nl/astraeus/jdbc/JdbcStatisticTest.java
246
package nl.astraeus.jdbc; import org.junit.Assert; import org.junit.Test; /** * User: rnentjes * Date: 4/13/12 * Time: 10:55 PM */ public class JdbcStatisticTest { @Test public void test() { Assert.assertTrue(true); } }
mit
samagra14/Shush
app/src/main/java/com/mdg/droiders/samagra/shush/MainActivity.java
10861
package com.mdg.droiders.samagra.shush; import android.Manifest; import android.app.NotificationManager; import android.content.ContentValues; import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.database.Cursor; import android.net.Uri; impor...
mit
martinda/http-request-plugin
src/main/java/jenkins/plugins/http_request/HttpRequest.java
15118
package jenkins.plugins.http_request; import static com.google.common.base.Preconditions.checkArgument; import java.io.IOException; import java.io.PrintStream; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Map; import javax.annotation.Nonnull; import org.kohsuke.s...
mit
VerkhovtsovPavel/BSUIR_Labs
Labs/ADB/ADB-2/src/by/bsuir/verkpavel/adb/data/DataProvider.java
4665
package by.bsuir.verkpavel.adb.data; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.util.ArrayList; import by.bsuir.verkpavel.adb.data.entity.Account; import by.bsuir.verkpavel.adb.data.entity.Client; import by.bsuir.verkpavel.adb.data.entity.Deposit; import by.bs...
mit
Sonnydch/dzwfinal
AndroidFinal/engine/src/main/java/com/lfk/justweengine/Utils/tools/SpUtils.java
8126
package com.lfk.justweengine.Utils.tools; import android.content.Context; import android.content.SharedPreferences; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.ArrayList; impo...
mit
joseflamas/zet
variaciones/antesFestival/ANTES01/build-tmp/source/ANTES01.java
11561
import processing.core.*; import processing.data.*; import processing.event.*; import processing.opengl.*; import ddf.minim.spi.*; import ddf.minim.signals.*; import ddf.minim.*; import ddf.minim.analysis.*; import ddf.minim.ugens.*; import ddf.minim.effects.*; import codeanticode.syphon.*; import java.uti...
mit
Stephen-Cameron-Data-Services/isis-agri
dom/src/main/java/au/com/scds/agric/dom/simple/SimpleObjectRepository.java
2086
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
mit
Sarwat/GeoSpark
viz/src/main/java/org/datasyslab/geosparkviz/utils/S3Operator.java
3664
/* * FILE: S3Operator * Copyright (c) 2015 - 2019 GeoSpark Development Team * * 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 * * Un...
mit
pttravis/ds-armor
src/pttravis/ScoreElementalDef.java
726
package pttravis; import java.util.List; public class ScoreElementalDef implements ScoreItems { public ScoreElementalDef() { } @Override public String getName() { return "Elemental Def"; } @Override public float score(List<Item> items) { if( items == null ) return 0; float score = 0; for( Item ...
mit
ZornTaov/ReploidCraft
src/main/java/zornco/reploidcraft/network/MessageRideArmor.java
2840
package zornco.reploidcraft.network; import net.minecraft.entity.Entity; import net.minecraft.server.MinecraftServer; import net.minecraft.world.WorldServer; import zornco.reploidcraft.ReploidCraft; import zornco.reploidcraft.entities.EntityRideArmor; import zornco.reploidcraft.utils.RiderState; import io.netty.buffer...
mit
bati11/otameshi-webapp
spring4+dbflute/src/main/java/info/bati11/otameshi/dbflute/allcommon/ImplementedCommonColumnAutoSetupper.java
1934
package info.bati11.otameshi.dbflute.allcommon; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.dbflute.Entity; import org.dbflute.hook.CommonColumnAutoSetupper; /** * The basic implementation of the auto set-upper of common column. * @author DBFlute(AutoGenerator) */ public class ImplementedC...
mit
sodash/open-code
winterwell.depot/test/com/winterwell/depot/ESStoreTest.java
1093
package com.winterwell.depot; import java.util.Map; import org.junit.Test; import com.winterwell.depot.merge.Merger; import com.winterwell.es.client.ESConfig; import com.winterwell.es.client.ESHttpClient; import com.winterwell.gson.FlexiGson; import com.winterwell.utils.Dep; import com.winterwell.utils.Utils; import...
mit
gvnn/slackcast
app/src/main/java/it/gvnn/slackcast/search/PodcastDataResponse.java
129
package it.gvnn.slackcast.search; import java.util.ArrayList; public class PodcastDataResponse extends ArrayList<Podcast> { }
mit
iyzico/iyzipay-java
src/main/java/com/iyzipay/model/subscription/enumtype/SubscriptionUpgradePeriod.java
302
package com.iyzipay.model.subscription.enumtype; public enum SubscriptionUpgradePeriod { NOW(1), NEXT_PERIOD(2); private final Integer value; SubscriptionUpgradePeriod(Integer value) { this.value = value; } public Integer getValue() { return value; } }
mit
iamlisa0526/bolianeducation-child
app/src/main/java/bolianeducation/bolianchild/view/ReplyActivity.java
11068
package bolianeducation.bolianchild.view; import android.graphics.Bitmap; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.support.annotation.Nullable; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.text....
mit
lekster/devicehive-java
client/src/main/java/com/devicehive/client/impl/rest/providers/JsonRawProvider.java
3161
package com.devicehive.client.impl.rest.providers; import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonParser; import com.devicehive.client.impl.Constants; import com.devicehive.client.impl.json.GsonFactory; import com.devicehive.client.impl....
mit
ed-george/Lumber
src/uk/co/edgeorgedev/lumber/Stump.java
294
package uk.co.edgeorgedev.lumber; /** * Root of Logging interface * @author edgeorge * @version 1.0 * @since 2014-06-23 */ public interface Stump { /** Log a verbose message */ void v(Class<?> clazz, String message); void v(Class<?> clazz, Throwable th); //v,d,i,w,e,wtf }
mit
eamonfoy/trello-to-markdown
src/main/java/br/eti/mertz/wkhtmltopdf/wrapper/params/Params.java
982
package br.eti.mertz.wkhtmltopdf.wrapper.params; import java.util.ArrayList; import java.util.List; public class Params { private List<Param> params; public Params() { this.params = new ArrayList<Param>(); } public void add(Param param) { params.add(param); } public void ad...
mit
jonathonadler/ziplet-base64-test
src/main/java/uk/co/lucelle/Controller.java
256
package uk.co.lucelle; import org.springframework.web.bind.annotation.*; @RestController public class Controller { @RequestMapping("/") public @ResponseBody String index(@RequestBody String data) { // echo return data; } }
mit
311labs/SRL
java/src/jsrl/net/JavaPing.java
5558
/* * Created on Apr 28, 2005 */ package jsrl.net; import java.net.SocketException; import java.net.SocketTimeoutException; import java.net.InetAddress; import java.net.UnknownHostException; import jsrl.LoadLibrary; /** * JavaPing * Java Bindings for the SRL Library's Ping Logic */ public class JavaPing implemen...
mit
anhnguyenbk/XCODE-MOBILE-APPS-DEV
SmileAlarm/app/src/main/java/com/xcode/mobile/smilealarm/alarmpointmanager/RisingPlanHandler.java
7754
package com.xcode.mobile.smilealarm.alarmpointmanager; import android.content.Context; import java.io.IOException; import java.sql.Date; import java.sql.Time; import java.util.Calendar; import java.util.HashMap; import com.xcode.mobile.smilealarm.DataHelper; import com.xcode.mobile.smilealarm.DateTimeHelp...
mit
Naoki-Yatsu/FX-AlgorithmTrading
ats/src/main/java/ny2/ats/model/tool/TradeConditionOperator.java
1710
package ny2.ats.model.tool; import java.util.function.BiPredicate; /** * 取引条件計算の演算子のクラスです */ public enum TradeConditionOperator { EQUAL((d1, d2) -> Double.compare(d1, d2) == 0, null, "="), LESS((d1, d2) -> d1 < d2, null, "<"), LESS_EQUAL((d1, d2) -> d1 <= d2, null, "<="), GRATER((d1, d2) -> d1 >...
mit
Pinablink/FragMobile
FragMobile/app/src/test/java/com/fragmobile/ExampleUnitTest.java
408
package com.fragmobile; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public...
mit
team-compilers/compilers
MiniJava/results/SamplesCorrect/LinkedList/code.java
6548
class LinkedList { public static void main(String[] a) { System.out.println(new LL().Start()); } } class Element { int Age; int Salary; boolean Married; public boolean Init(int v_Age, int v_Salary, boolean v_Married) { Age = v_Age; Salary = v_Salary; Married = v_...
mit
Daniel12321/NPCs
src/main/java/me/mrdaniel/npcs/actions/ActionGoto.java
1403
package me.mrdaniel.npcs.actions; import javax.annotation.Nonnull; import org.spongepowered.api.entity.living.player.Player; import org.spongepowered.api.text.Text; import org.spongepowered.api.text.action.TextActions; import org.spongepowered.api.text.format.TextColors; import me.mrdaniel.npcs.catalogtypes.actionty...
mit
parambirs/binaryedu
src/main/java/com/binaryedu/web/controllers/SignUpSuccessController.java
782
package com.binaryedu.web.controllers; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframew...
mit
Playtika/testcontainers-spring-boot
embedded-dynamodb/src/test/java/com/playtika/test/dynamodb/DisableDynamoDBTest.java
1055
package com.playtika.test.dynamodb; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.test.context.runner.ApplicationContextRunner; import org.testcontainers.containers.Container; public class Di...
mit