repo_name stringlengths 5 108 | path stringlengths 6 333 | size stringlengths 1 6 | content stringlengths 4 977k | license stringclasses 15
values |
|---|---|---|---|---|
ravis411/SimCity201 | src/restaurant/gui/luca/CookGui.java | 3472 | package restaurant.gui.luca;
import interfaces.MarketManager;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import restaurant.interfaces.luca.LucaCook;
import restaurant.luca.LucaCookRole;
import Person.Role.Employee;
import building.BuildingList;
public class CookGui implements Gui {
... | mit |
feedeo/bingads-api | src/main/java/com/microsoft/bingads/v11/reporting/GeographicPerformanceReportFilter.java | 13499 | /**
* GeographicPerformanceReportFilter.java
* <p>
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.microsoft.bingads.v11.reporting;
public class GeographicPerformanceReportFilter implements java.io.Serializable {
// Type metadata... | mit |
KeldOelykke/FailFast | Java/FailFast/src/starkcoder/failfast/checks/objects/longs/IObjectLongGreaterCheck.java | 2248 | /////////////////////////////////////////////////////////////////////////////////////////
//
// The MIT License (MIT)
//
// Copyright (c) 2014-2015 Keld Oelykke
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), t... | mit |
ixfan/wechat-kit | wechatkit/src/main/java/me/ixfan/wechatkit/user/UserManager.java | 17427 | /*
* MIT License
*
* Copyright (c) 2016 Warren Fan
*
* 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, modif... | mit |
laidig/siri-20-java | src/eu/datex2/schema/_2_0rc1/_2_0/CauseTypeEnum.java | 4668 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2017.11.... | mit |
facebook/fresco | imagepipeline/src/main/java/com/facebook/imagepipeline/producers/DiskCacheWriteProducer.java | 5927 | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.imagepipeline.producers;
import androidx.annotation.VisibleForTesting;
import com.facebook.cache.common.Cac... | mit |
inreachventures/aws-signing-request-interceptor | src/test/java/vc/inreach/aws/request/test/AWSSignerTest.java | 25483 | package vc.inreach.aws.request.test;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.AWSCredentialsProvider;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.auth.BasicSessionCredentials;
import com.amazonaws.internal.StaticCredentialsProvider;
import com.google.common.base.Optio... | mit |
baniuk/ImageJTestSuite | src/main/java/com/github/baniuk/ImageJTestSuite/ConvertLists.java | 1214 | package com.github.baniuk.ImageJTestSuite;
import java.util.ArrayList;
import java.util.List;
import org.scijava.vecmath.Point2d;
import ij.process.FloatPolygon;
/**
* Contain static routines for conversions between {@link FloatPolygon} and list of points.
*
* @author p.baniukiewicz
*
*/
public class ConvertL... | mit |
ruan3/OpenLive_Android_text | app/src/main/java/io/agora/onekeyshare/themes/classic/FriendListItem.java | 3284 | /*
* 官网地站:http://www.mob.com
* 技术支持QQ: 4006852216
* 官方微信:ShareSDK (如果发布新版本的话,我们将会第一时间通过微信将版本更新内容推送给您。如果使用过程中有任何问题,也可以通过微信与我们取得联系,我们将会在24小时内给予回复)
*
* Copyright (c) 2013年 mob.com. All rights reserved.
*/
package io.agora.onekeyshare.themes.classic;
import android.content.Context;
import android.graphics.Bitmap;... | mit |
t-kgd/library-water | water-java-core/src/main/java/jp/gr/java_conf/kgd/library/water/java/core/value/MutableIntColor4Trait.java | 1555 | /*
* The MIT License
*
* Copyright 2015 misakura.
*
* 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 |
JJzcru/Luft | app/src/main/java/com/jjzcru/luft/presentation/navigation/Navigator.java | 4561 | package com.jjzcru.luft.presentation.navigation;
import android.content.Context;
import android.content.Intent;
import com.jjzcru.luft.domain.Exercise;
import com.jjzcru.luft.domain.Player;
import com.jjzcru.luft.domain.Training;
import com.jjzcru.luft.presentation.model.PlayerModel;
import com.jjzcru.luft.presentati... | mit |
Hyroli/NetworkManager | src/main/java/com/vivi7865/Network/Manager/commands/Command.java | 635 | package com.vivi7865.Network.Manager.commands;
import com.google.common.base.Preconditions;
import lombok.Data;
@Data
public abstract class Command {
private String name;
private String permission;
private String[] aliases;
public Command(String name) {
this(name.toLowerCase(), null);
... | mit |
jklingsporn/vertx-jooq | vertx-jooq-shared/src/main/java/io/github/jklingsporn/vertx/jooq/shared/JsonArrayConverter.java | 765 | package io.github.jklingsporn.vertx.jooq.shared;
import io.vertx.core.json.JsonArray;
import org.jooq.Converter;
/**
* Created by jensklingsporn on 04.10.16.
* Use this converter to convert any varchar/String column into a JsonArray.
*/
public class JsonArrayConverter implements Converter<String,JsonArray> {
... | mit |
imranzahid01/backups | src/main/java/com/imranzahid/backup/util/Strings.java | 593 | package com.imranzahid.backup.util;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public final class Strings {
private Strings() {}
public static boolean isNullOrEmpty(@Nullable String string) {
return string == null || string.isEmpty();
}
public static String replace(@Nonnull Strin... | mit |
flicus/TempMail | standalone/src/test/java/org/schors/tempmail/TempMailAsyncTest.java | 909 | package org.schors.tempmail;
import junit.framework.TestCase;
import org.json.JSONObject;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
public class TempMailAsyncTest extends TestCase {
private TempMailClient client;
private CountDownLatch lock = new CountDownLatch(1);
... | mit |
yangra/SoftUni | Java-DB-Fundamentals/DatabasesFrameworks-Hibernate&SpringData/miniORM/src/ORMDemo.java | 556 | import entitymanager.DBContext;
import entitymanager.EntityManager;
import model.User;
import java.sql.SQLException;
import java.time.LocalDate;
public class ORMDemo {
public static void main(String[] args) throws SQLException, IllegalAccessException, NoSuchFieldException {
DBContext em = new EntityManag... | mit |
Bulmanator/ClusterEngine | src/com/cluster/engine/Physics/Material.java | 1549 | /*
MIT License
Copyright (c) 2017 James Bulman
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 |
smythtech/sdnpwn | apps/onos-nc-reverse-shell/src/main/java/org/onosproject/app/AppComponent.java | 1501 | /*
* Copyright 2017-present Open Networking Laboratory
*
* 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 appli... | mit |
LambdaInnovation/LambdaLib | src/main/java/cn/lambdalib/template/client/render/entity/RenderCrossedProjectile.java | 5115 | /**
* Copyright (c) Lambda Innovation, 2013-2016
* This file is part of LambdaLib modding library.
* https://github.com/LambdaInnovation/LambdaLib
* Licensed under MIT, see project root for more information.
*/
package cn.lambdalib.template.client.render.entity;
import net.minecraft.client.Minecraft;
import net.minecr... | mit |
ShadowLordAlpha/Harmony | src/main/java/sla/harmony/twitch/api/blocks/Block.java | 1448 | package sla.harmony.twitch.api.blocks;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import sla.harmony.twitch.api.User;
@JsonIgnoreProperties({ "_links" })
public class Block {
@JsonProperty("_id")
private int id;
@JsonProperty("updated_at")
... | mit |
xxyy/xyc | core/src/test/java/li/l1t/common/tree/TreeNodeTest.java | 1659 | /*
* MIT License
*
* Copyright (C) 2013 - 2017 Philipp Nowak (https://github.com/xxyy) and contributors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, includin... | mit |
blackuy/react-native-twilio-video-webrtc | android/src/main/java/com/twiliorn/library/CustomTwilioVideoViewManager.java | 10443 | /**
* Component to orchestrate the Twilio Video connection and the various video
* views.
* <p>
* Authors:
* Ralph Pina <ralph.pina@gmail.com>
* Jonathan Chang <slycoder@gmail.com>
*/
package com.twiliorn.library;
import android.support.annotation.Nullable;
import com.facebook.react.bridge.ReadableArray;
impor... | mit |
PTS3-S34A/Game-Server | Soccar [Game-Server]/src/nl/soccar/gameserver/controller/rmi/GameServerForMainServer.java | 1766 | package nl.soccar.gameserver.controller.rmi;
import nl.soccar.gameserver.model.GameServer;
import nl.soccar.library.enumeration.BallType;
import nl.soccar.library.enumeration.Duration;
import nl.soccar.library.enumeration.MapType;
import nl.soccar.rmi.interfaces.IGameServerForMainServer;
import java.io.IOException;
i... | mit |
cliffano/swaggy-jenkins | clients/java-play-framework/generated/app/apimodels/PipelineStepImpllinks.java | 2863 | package apimodels;
import apimodels.Link;
import com.fasterxml.jackson.annotation.*;
import java.util.Set;
import javax.validation.*;
import java.util.Objects;
import javax.validation.constraints.*;
/**
* PipelineStepImpllinks
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaPlayFramewo... | mit |
VKCOM/vk-java-sdk | sdk/src/main/java/com/vk/api/sdk/queries/newsfeed/NewsfeedSearchQuery.java | 5414 | // Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.queries.newsfeed;
import com.vk.api.sdk.client.AbstractQueryBuilder;
import com.vk.api.sdk.client.VkApiClient;
import com.vk.api.sdk.client.actors.ServiceActor;
import com.vk.api.sdk.client.actors.UserActor;
import com.vk.api.sd... | mit |
Cybermaxke/Weathers | src/main/java/me/cybermaxke/weathers/interfaces/IMixinWorld.java | 1413 | /*
* This file is part of Weathers, licensed under the MIT License (MIT).
*
* Copyright (c) Cybermaxke
*
* 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 wi... | mit |
geansea/GSLayout | app/src/main/java/com/geansea/gslayoutdemo/GSPosterView.java | 4541 | package com.geansea.gslayoutdemo;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Rect;
import android.graphics.Typeface;
import android.text.TextPaint;
import android.util.AttributeSet;
import android.view.View;
im... | mit |
englishtown/vertx-when | vertx-when/src/test/java/com/englishtown/vertx/promises/impl/DefaultWhenVertxTest.java | 6423 | package com.englishtown.vertx.promises.impl;
import com.englishtown.promises.Done;
import com.englishtown.promises.When;
import com.englishtown.promises.WhenFactory;
import io.vertx.core.*;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
import org.mo... | mit |
crainiarc/yotacast | android/YotaCast/yotaphone_titanium_sdk/src/com/yotadevices/sdk/Drawer.java | 3799 | package com.yotadevices.sdk;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* @hide
*/
public abstract class Drawer {
/**
* Waveforms that can be used to draw on Back Screen.<br>
* <br>
* <b>WAVEFORM_DU</b> - For d... | mit |
domix/lombok | test/transform/resource/after-delombok/GetterSetterJavadoc.java | 2208 | class GetterSetterJavadoc1 {
/**
* Some text
*/
private int fieldName;
@java.lang.SuppressWarnings("all")
public GetterSetterJavadoc1() {
}
/**
* Getter section
*
* @return Sky is blue1
*/
@java.lang.SuppressWarnings("all")
public int getFieldName() {
return this.fieldName;
}
/**
* Some text
... | mit |
concon121/DrugSuitabilityPortal | DrugSuitabilityPortal/src/test/java/uk/co/cbray/msc/nhsdsp/utils/AgeHelperTest.java | 652 | package uk.co.cbray.msc.nhsdsp.utils;
import static org.junit.Assert.*;
import java.util.Calendar;
import java.util.GregorianCalendar;
import org.junit.Test;
public class AgeHelperTest {
@Test
public void testCalculateAgeReturnsTheCorrectAge() {
int expectedAge = 45;
Calendar dob = new... | mit |
code-not-found/spring-kafka | spring-kafka-batch-listener/src/main/java/com/codenotfound/kafka/consumer/ReceiverConfig.java | 1897 | package com.codenotfound.kafka.consumer;
import java.util.HashMap;
import java.util.Map;
import org.apache.kafka.clients.consumer.ConsumerConfig;
import org.apache.kafka.common.serialization.StringDeserializer;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Be... | mit |
technosophos/sinciput | rhizome/src/com/technosophos/rhizome/document/XMLElements.java | 1562 | package com.technosophos.rhizome.document;
/**
* Basic XML information.
* Since lots of classes need access to the same strings, this class
* defines constants for accessing these. This should be imported with
* the static modifier.
* @author mbutcher
*
*/
public class XMLElements {
public static String RHIZO... | mit |
sweetcode/TextAdventure | src/de/SweetCode/TextAdventure/Item/ItemTypes.java | 19882 | package de.SweetCode.TextAdventure.Item;
import de.SweetCode.TextAdventure.Inventory.Inventory;
import de.SweetCode.TextAdventure.Item.Items.*;
import de.SweetCode.TextAdventure.Item.Recipe.Recipe;
import de.SweetCode.TextAdventure.Item.Recipe.RecipeItem;
import de.SweetCode.TextAdventure.Item.Recipe.RecipeTool;
impo... | mit |
spatialhumanities/spatialviewer_spatialstore | spatialstore/src/main/java/de/i3mainz/ibr/math/OnlineStatistic.java | 991 | package de.i3mainz.ibr.math;
public class OnlineStatistic {
private int counter = 0;
private double min = Double.MAX_VALUE;
private double max = Double.MIN_VALUE;
private double sum = 0;
private double sqrSum = 0;
private int[] histo;
public OnlineStatistic(int steps) {
histo = new int[steps];
for (int ... | mit |
LanternPowered/LanternServer | src/main/java/org/lanternpowered/server/config/serializer/DataViewTypeSerializer.java | 1234 | /*
* Lantern
*
* Copyright (c) LanternPowered <https://www.lanternpowered.org>
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* This work is licensed under the terms of the MIT License (MIT). For
* a copy, see 'LICENSE.txt' or <https://opensource.org/licenses/MIT>.
... | mit |
wildsmith/MaterialDesign | src/com/wildsmith/material/recycler/RecyclerAdapter.java | 1468 | package com.wildsmith.material.recycler;
import java.util.List;
import android.app.Activity;
import android.support.v7.widget.RecyclerView;
public abstract class RecyclerAdapter extends RecyclerView.Adapter<RecyclerViewHolder> {
protected List<? extends Object> recyclerObjects;
protected Activity activity;... | mit |
occloxium/Monoid | src/synth/ui/SynthesizerUserInterfaceModule.java | 220 | package synth.ui;
import synth.container.Device;
public abstract class SynthesizerUserInterfaceModule {
Device associatedDevice;
public Device getAssociatedDevice() {
return associatedDevice;
}
}
| mit |
patrickneubauer/XMLIntellEdit | individual-experiments/SandboxProject/src/com/example/example/with/anytypefeature/impl/AnytypefeatureFactoryImpl.java | 3079 | /**
*/
package com.example.example.with.anytypefeature.impl;
import com.example.example.with.anytypefeature.*;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcoreP... | mit |
myhgew/JGame_Slogo_Team11 | src/model/expression/IfElseExpression.java | 4401 | package model.expression;
import java.util.ArrayList;
import java.util.List;
import Exceptions.SlogoException;
import controller.TurtleCommand;
import model.Model;
import model.parser.DefaultParser;
public class IfElseExpression extends Expression {
Expression conditionExpression; //assuming one expression
L... | mit |
starforever/leetcode | 115/Solution.java | 468 | public class Solution
{
public int numDistinct (String S, String T)
{
int N = S.length(), M = T.length();
int[][] numSeq = new int[N + 1][M + 1];
numSeq[0][0] = 1;
for (int i = 1; i <= N; ++i)
{
numSeq[i][0] = 1;
for (int j = 1; j <= M; ++j)
{
numSeq[i][j] = numSeq[i - ... | mit |
marcinbudny/AndroidAppStructure | lib/src/main/java/com/marcinbudny/androidappstructure/lib/views/trends/TrendsView.java | 339 | package com.marcinbudny.androidappstructure.lib.views.trends;
import com.marcinbudny.androidappstructure.lib.api.contract.Trend;
public interface TrendsView {
void displayAuthenticationError();
void displayTrends(Trend.List trends);
void displayTrendsDownloadError();
void navigateToStatusesWithQuer... | mit |
tsottili/libtgview | src/test/java/toms/lib/libtviews/ExampleUnitTest.java | 311 | package toms.lib.libtviews;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} | mit |
taylorak/surferpedia | test/tests/pages/SurferPage.java | 1806 | package tests.pages;
import models.Surfer;
import org.fluentlenium.core.FluentPage;
import org.openqa.selenium.WebDriver;
import play.Play;
// Although Eclipse marks the following two methods as deprecated,
// the no-arg versions of the methods used here are not deprecated. (as of May, 2013).
import static org.fluen... | mit |
sadikovi/algorithms | leetcode/restore-ip-addresses.java | 915 | public class Solution {
public List<String> restoreIpAddresses(String s) {
List<String> res = new ArrayList<String>();
if (s == null || s.length() < 4 || s.length() > 12) return res;
restore(s, "", 4, res);
return res;
}
private void restore(String s, String prefix, int octets, List<String> arr) ... | mit |
wzh880801/productai-java-sdk | examples/src/cn/productai/api/examples/detect/DetectExample.java | 2755 | package cn.productai.api.examples.detect;
import cn.productai.api.core.IWebClient;
import cn.productai.api.core.enums.DetectType;
import cn.productai.api.core.enums.LanguageType;
import cn.productai.api.core.exceptions.ClientException;
import cn.productai.api.examples.IExample;
import cn.productai.api.pai.entity.detec... | mit |
walison17/ProjetoControleVendas | SistemaVendas/src/dados/Venda.java | 2826 | /*
* 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 dados;
import java.util.ArrayList;
/**
*
* @author Walison Filipe
*/
public class Venda {
private ... | mit |
liyong299/normal | java/src/main/java/com/ly/java/javanio/c05selector/package-info.java | 441 | /**
* 项目名称:java
* 文件包名:com.ly.java.javanio.c05selector
* 文件名称:package-info.java
* 版本信息:SCEC_Branches
* 生成日期:2016年5月10日 下午8:08:43
* Copyright (c) 2015-2015深圳市泰久信息系统股份有限公司
*
*/
/**
* 功能描述:<p color="red">Selector的使用</p>
* 文件名称:package-info.java
* @author ly
*/
package com.ly.java.javanio.c05sele... | mit |
ssporer/FerVjezbe | Vjezbe07/Zadatak7/src/main/java/hr/fer/java/vjezbe/zadatak7/service/util/LocalDateTimeUtil.java | 448 | package hr.fer.java.vjezbe.zadatak7.service.util;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
public class LocalDateTimeUtil {
private static final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd/MM/yyyy HH:mm:ss");
public static String format(LocalDateTime local... | mit |
xzl1991/TestRedisSession | src/main/java/threads/threadLocals/ThreadLocalTest.java | 910 | package threads.threadLocals;
import java.util.concurrent.TimeUnit;
/**
* @auther xzl on 18:24 2018/6/22
*/
public class ThreadLocalTest {
static final ThreadLocal<String> threadParam = new ThreadLocal<>();
public static void main(String[] args) throws InterruptedException {
//死循环,测多几次看结果
w... | mit |
moip/credit-card-validator | src/test/java/br/com/moip/creditcard/VisaCreditCardTest.java | 2342 | package br.com.moip.creditcard;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class VisaCreditCardTest {
@Test
public void verificaCartaoVisa() {
String validCard = "4073020000000002";
assertTrue(validCard.length() == 16)... | mit |
owwlo/InvertedIndexBuilder | src/org/owwlo/InvertedIndexing/examples/IvtiBuild.java | 6156 |
package org.owwlo.InvertedIndexing.examples;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Random;
import org.owwlo.InvertedIndexing.InvertedIndexBuilder;
import org... | mit |
CallmeTorre/APAIEEE | src/java/root/rootCambio.java | 487 | package root;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class rootCambio extends HttpServlet {
@Override
protected void doGet(HttpServletRequest ... | mit |
dachengxi/spring1.1.1_source | test/org/springframework/web/util/ExpressionEvaluationUtilsTestSuite.java | 2919 | /*
* Copyright 2002-2004 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... | mit |
ikbenpinda/uitstelgedrag_android | app/src/main/java/achan/nl/uitstelgedrag/persistence/definitions/Column.java | 1136 | package achan.nl.uitstelgedrag.persistence.definitions;
import android.util.Log;
/**
* Created by Etienne on 3-4-2016.
*/
public class Column {
public String name;
public String type; // todo - @string-def
public String constraints; // todo - @string-def
public Column(String name, String type, Stri... | mit |
sauce-code/chess | src/gui/Main.java | 101 | package gui;
public class Main {
public static void main(String[] args) {
Gui.main(args);
}
}
| mit |
MasatoKokubo/Lightsleep | src/test/java/org/lightsleep/test/entity/Node.java | 1010 | // Contact.java
// (C) 2016 Masato Kokubo
package org.lightsleep.test.entity;
/**
* The entity of Node table.
*/
public class Node extends Common {
/** Parent ID */
private int parentId;
/** Name */
private String name;
/**
* Constructs a Node.
*/
public Node() {
}
/**
... | mit |
Vihekie/DSDM2 | Tudão/MyApplication/app/src/main/java/com/example/ifc/myapplication/Main2Activity.java | 1013 | package com.example.ifc.myapplication;
import android.app.Activity;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
public class Main2Activity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedIn... | mit |
wpinnoo/PharmaApp | src/mobi/pharmaapp/util/Location.java | 744 | package mobi.pharmaapp.util;
import mobi.pharmaapp.models.UserModel;
/**
*
* @author see /AUTHORS
*/
public class Location {
private float lat;
private float lon;
public Location(float lat, float lon) {
this.lat = lat;
this.lon = lon;
}
@Override
public String toString() ... | mit |
jSpike/Spring4_Samples | SampleSecurityService/src/main/java/com/jspike/springboot/securitysample/Controller.java | 911 | /**
*
*/
package com.jspike.springboot.securitysample;
import org.apache.commons.codec.binary.Base64;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframe... | mit |
kamcio96/SpongeCommon | src/main/java/org/spongepowered/common/data/manipulator/mutable/block/SpongeLayeredData.java | 2442 | /*
* 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 |
yangdd1205/spring-boot | spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mustache/MustacheEnvironmentCollector.java | 2854 | /*
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | mit |
krisjin/common-util | luban-common/src/main/java/org/luban/common/mail/MailUtil.java | 5515 | package org.luban.common.mail;
import com.google.common.base.Strings;
import javax.activation.DataHandler;
import javax.activation.DataSource;
import javax.activation.FileDataSource;
import javax.mail.*;
import javax.mail.internet.*;
import java.util.Date;
import java.util.Properties;
/**
* 邮件工具类
*
* @author shi... | mit |
edunola13/uiservices-api-java | src/com/tags/jsf/Project.java | 757 | package com.tags.jsf;
import java.io.IOException;
import javax.faces.component.FacesComponent;
import javax.faces.component.UIComponentBase;
import javax.faces.context.FacesContext;
import com.ui.ApiUi;
@FacesComponent(createTag = true, namespace="http://www.edunola.com.ar/uicomponents", tagName="setProject", value... | mit |
tygern/BuildDomino | src/main/java/BuildDomino.java | 10154 | /**
* Copyright (c) 2012 by Tyson Gern
* Licensed under the MIT License
*/
import java.io.*;
class BuildDomino {
public static int rankBound = 3;
public static String inputLine = "> ";
public static String secondaryInputLine = ">> ";
public static String notFound = "command not found";
public ... | mit |
dirtyfilthy/bitcoin-wallet | src/net/dirtyfilthy/bitcoin/protocol/GetDataPacket.java | 276 | package net.dirtyfilthy.bitcoin.protocol;
public class GetDataPacket extends InventoryPacket {
public GetDataPacket() {
super();
command="getdata";
}
public GetDataPacket(long ver) {
super(ver);
command="getdata";
// TODO Auto-generated constructor stub
}
}
| mit |
rwaldron/es6draft | src/main/java/com/github/anba/es6draft/ast/Declaration.java | 551 | /**
* Copyright (c) 2012-2014 André Bargull
* Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms.
*
* <https://github.com/anba/es6draft>
*/
package com.github.anba.es6draft.ast;
/**
* <h1>13 ECMAScript Language: Statements and Declarations</h1>
* <ul>
* <li>13.1 Block
* </ul>
*/
... | mit |
mcaustin1/MrTickets | src/me/Austin/MT/Managers/filters/Log4JFilter.java | 2283 | package me.Austin.MT.Managers.filters;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.Marker;
import org.apache.logging.log4j.core.LogEvent;
import org.apache.logging.log4j.core.Logger;
import org.apache.logging.log4j.core.filter.AbstractFilter;
import org.apache.logging.log4j.message.Message;... | mit |
osiam/connector4java | src/main/java/org/osiam/client/exception/OsiamClientException.java | 1518 | /**
* The MIT License (MIT)
*
* Copyright (C) 2013-2016 tarent solutions GmbH
*
* 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 ri... | mit |
shibenli/intentbuilder | intentbuilder/src/main/java/intentbuilder/IntentBuilder.java | 10968 | /*
* The MIT License (MIT)
*
* Copyright (c) 2015 Roberto Estivill
*
* 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 ... | mit |
vaxr/daikoku | src/com/primateer/daikoku/model/ValueObject.java | 642 | package com.primateer.daikoku.model;
public class ValueObject {
private long id = -1;
public long getId() {
return id;
}
public long setId(long id) {
this.id = id;
return id;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + (int) (id ^ (id >>> 32... | mit |
Barteks2x/CubicChunks | src/main/java/io/github/opencubicchunks/cubicchunks/core/world/cube/Cube.java | 25754 | /*
* This file is part of Cubic Chunks Mod, licensed under the MIT License (MIT).
*
* Copyright (c) 2015-2019 OpenCubicChunks
* Copyright (c) 2015-2019 contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "So... | mit |
zbeboy/ISY | src/main/java/top/zbeboy/isy/domain/tables/records/DefenseArrangementRecord.java | 11060 | /*
* This file is generated by jOOQ.
*/
package top.zbeboy.isy.domain.tables.records;
import java.sql.Timestamp;
import javax.annotation.Generated;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record8;
import ... | mit |
taragu/duke-compsci | oogasalad/src/gameengine/Control.java | 1482 | package gameengine;
import java.util.Map;
import util.ErrorLogger;
import util.Reflection;
/**
* Set and store user-defined controls
*
* @author Tara
*
*/
public class Control {
/* user defined keys */
private static int myKeyUp;
private static int myKeyDown;
private static int myKeyLeft;
... | mit |
Recursively/redmf | src/view/DisplayManager.java | 4758 | package view;
import org.lwjgl.LWJGLException;
import org.lwjgl.Sys;
import org.lwjgl.opengl.*;
/**
* Display management class used to handle the resolution and FPS of the game.
* <p/>
* Arguably this class could be in the model, however it fits nicely here and the resolution
* and fps values are static... | mit |
sabarjp/ShoulderSurfing | src/r164__mc1_6_4/src/minecraft/com/teamderpy/shouldersurfing/asm/ShoulderTransformations.java | 16403 | package com.teamderpy.shouldersurfing.asm;
import static org.objectweb.asm.Opcodes.*;
import java.util.HashMap;
import java.util.Iterator;
import java.util.logging.Logger;
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.Label;
import org.objectweb.asm.tree.Abstrac... | mit |
ktisha/TheRPlugin | src/com/jetbrains/ther/console/TheRConsoleRunner.java | 2943 | package com.jetbrains.ther.console;
import com.intellij.execution.ExecutionException;
import com.intellij.execution.configurations.GeneralCommandLine;
import com.intellij.execution.console.LanguageConsoleImpl;
import com.intellij.execution.console.LanguageConsoleView;
import com.intellij.execution.console.ProcessBacke... | mit |
hivsuper/dailylogv2 | dailylog-web/src/main/java/org/lxp/dailylog/exception/DailylogException.java | 503 | package org.lxp.dailylog.exception;
public abstract class DailylogException extends Exception {
private static final long serialVersionUID = 1L;
private CodeEnum codeEnum;
public DailylogException(CodeEnum codeEnum, String msg) {
super(msg);
this.codeEnum = codeEnum;
}
public Dail... | mit |
Nylle/JavaFixture | src/main/java/com/github/nylle/javafixture/specimen/ObjectSpecimen.java | 3071 | package com.github.nylle.javafixture.specimen;
import com.github.nylle.javafixture.Context;
import com.github.nylle.javafixture.CustomizationContext;
import com.github.nylle.javafixture.ISpecimen;
import com.github.nylle.javafixture.InstanceFactory;
import com.github.nylle.javafixture.Reflector;
import com.github.nyll... | mit |
adziki/AndroidCommonTools | myhandroid/src/main/java/com/meyouhealth/myhandroid/util/AnimationUtils.java | 7542 | package com.meyouhealth.myhandroid.util;
import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.Point;
import android.os.Build;
import android.util.Log;
import android.view.Display;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import ... | mit |
nico01f/z-pec | ZimbraServer/src/java/com/zimbra/qa/unittest/prov/soap/TestDiscoverRights.java | 7296 | /*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Server
* Copyright (C) 2011 Zimbra, Inc.
*
* The contents of this file are subject to the Zimbra Public License
* Version 1.3 ("License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at... | mit |
DeviousCrypto/CNIT325_TeamProjectFall2017 | src/edu/purdue/comradesgui/DemandPGN.java | 3593 | package edu.purdue.comradesgui;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.lang.*;
import java.util.*;
import javax.swing.*;
import javax.swing.text.*;
import javax.swing.event.*;
public class DemandPGN implements ActionListener, MouseListener
{
ComradesFrame CF;
JFrame FRAME;
... | mit |
jglrxavpok/0xC1 | src/main/java/org/c1/client/gui/editor/ShipComputer.java | 1028 | package org.c1.client.gui.editor;
import org.c1.client.OpenGLUtils;
import org.c1.client.render.RenderEngine;
import org.c1.client.render.Sprite;
import org.c1.client.render.Texture;
import java.io.IOException;
public class ShipComputer extends EditorDirectionableComponent {
private Sprite sprite;
public S... | mit |
whoszus/HeatSeeking | src/main/java/cc/tinker/web/services/IpAccessService.java | 1841 | package cc.tinker.web.services;
import cc.tinker.entry.repository.SearchFilter;
import cc.tinker.web.entity.IpAccessListEntity;
import cc.tinker.web.entity.AccessHistoryEntity;
import cc.tinker.web.entity.SiteEncodePasswordEntity;
import cc.tinker.web.repository.IpAccessRepository;
import cc.tinker.web.repository.RedS... | mit |
joshloh/RexrBot | src/main/java/rexr/rexrbot/Global.java | 220 | package rexr.rexrbot;
public class Global
{
public final static String prefix = "@RexrBot";
public final static String[] validCommands =
{
"add",
"summary",
"edit",
"help",
"alert"
};
} | mit |
RobJinman/webcommon | src/integrationTest/java/com/recursiveloop/webcommondemo/AuthenticationTest.java | 4363 | package com.recursiveloop.webcommondemo;
import com.recursiveloop.webcommon.test.TestSuite;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.arquillian.junit.InSequence;
import org.jboss.arquillian.test.api.ArquillianResource;
import org.jboss.ar... | mit |
AncientMariner/jax | src/main/java/rest/standalone/NetClientGet.java | 1290 | package rest.standalone;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.nio.charset.Charset;
public class NetClientGet {
public static void main(String[] args) {... | mit |
bigbrainiac10/SimpleHelpOP | src/com/bigbrainiac10/simplehelpop/SHOConfigManager.java | 828 | package com.bigbrainiac10.simplehelpop;
import org.bukkit.configuration.file.FileConfiguration;
public class SHOConfigManager {
private static FileConfiguration config;
public SHOConfigManager(FileConfiguration con){
config = con;
}
public static String getHostName(){
return config.getString("db.hostname... | mit |
alimy/OkWeather | app/src/main/java/net/gility/okweather/ui/AboutActivity.java | 2510 | package net.gility.okweather.ui;
import android.os.Build;
import android.os.Bundle;
import android.support.design.widget.AppBarLayout;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.ActionBar;
import android.support.v7.widget.Toolbar;
import android.view.MenuItem;
import net.gility.okw... | mit |
ozlerhakan/rapid | src/test/java/rapid/container/ContainerConfig.java | 467 | package rapid.container;
import com.kodcu.rapid.path.Container;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.TestProperties;
import rapid.Config;
import javax.ws.rs.core.Application;
/**
* Created by hakan on 17/02/2017.
*/
class ContainerConfig extends Config {
@Overrid... | mit |
PetrVales/MI-RUN | JavaScriptInterpreter/src/main/java/cz/cvut/valespe/js/interpreter/model/PrintFunction.java | 1159 | package cz.cvut.valespe.js.interpreter.model;
import cz.cvut.valespe.js.interpreter.Memory;
import cz.cvut.valespe.js.interpreter.Scope;
import cz.cvut.valespe.js.interpreter.model.JsFunction;
import cz.cvut.valespe.js.interpreter.model.JsObject;
import java.io.PrintStream;
import java.util.Arrays;
import java.util.C... | mit |
mmnaseri/spring-data-mock | spring-data-mock/src/main/java/com/mmnaseri/utils/spring/data/proxy/impl/adapters/CollectionIterableResultAdapter.java | 1571 | package com.mmnaseri.utils.spring.data.proxy.impl.adapters;
import com.mmnaseri.utils.spring.data.domain.Invocation;
import com.mmnaseri.utils.spring.data.error.ResultAdapterFailureException;
import com.mmnaseri.utils.spring.data.tools.CollectionInstanceUtils;
import java.util.Collection;
/**
* This adapter will ad... | mit |
qamatic/mintleaf | core/src/main/java/org/qamatic/mintleaf/tools/FileFinder.java | 1699 | package org.qamatic.mintleaf.tools;
import org.qamatic.mintleaf.MintleafLogger;
import java.io.IOException;
import java.nio.file.*;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.ArrayList;
import java.util.List;
/**
* Created by QAmatic Team on 4/8/17.
*/
public class FileFinder {
privat... | mit |
bayerls/statistics2cubes | src/main/java/de/bayerl/statistics/transformer/DeleteRowByType.java | 1418 | package de.bayerl.statistics.transformer;
import com.google.common.collect.Lists;
import de.bayerl.statistics.model.Row;
import de.bayerl.statistics.model.Table;
import de.bayerl.statistics.model.TableSliceType;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* Created by sebast... | mit |
navalev/azure-sdk-for-java | sdk/cosmos/microsoft-azure-cosmos/src/main/java/com/azure/data/cosmos/sync/CosmosSyncItemResponse.java | 1245 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.data.cosmos.sync;
import com.azure.data.cosmos.CosmosItemProperties;
import com.azure.data.cosmos.CosmosItemResponse;
import com.azure.data.cosmos.PartitionKey;
public class CosmosSyncItemResponse extend... | mit |
neustar/registrar_epp04toolkit | src/java/src/com/neulevel/epp/core/command/EppCommandCreate.java | 4196 | /*******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2015 Neustar 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 th... | mit |
MATheCoder/QwikGDX | testGdxGame/src/com/LogicalPrototype/gdxTestGame/screens/CollisionTest.java | 794 | package src.com.LogicalPrototype.gdxTestGame.screens;
import java.util.Random;
import src.com.LogicalPrototype.gdxTestGame.MyGdxGame;
import src.com.LogicalPrototype.gdxTestGame.entities.Player;
import src.com.LogicalPrototype.gdxTestGame.entities.Wall;
import com.LogicalPrototype.QwikGdx.QwikScreen;
import com.badl... | mit |
carsonreinke/mozu-java-sdk | src/main/java/com/mozu/api/contracts/productadmin/FacetSet.java | 1354 | /**
* This code was auto-generated by a tool.
*
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*/
package com.mozu.api.contracts.productadmin;
import java.util.List;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnore... | mit |
dancarpenter21/lol-api-rxjava | src/main/java/org/dc/riot/lol/rx/service/interfaces/TicketedInterceptor.java | 1171 | package org.dc.riot.lol.rx.service.interfaces;
import java.io.IOException;
import org.dc.riot.lol.rx.service.TicketBucket;
import org.dc.riot.lol.rx.service.TicketBucket.Ticket;
import com.squareup.okhttp.Interceptor;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.Response;
/**
* {@link Intereptor}... | mit |
AlexMog/MMO-Rulemasters-World | server/shared/alexmog/rulemastersworld/packets/tchat/TchatPrivmsgPacket.java | 130 | package alexmog.rulemastersworld.packets.tchat;
public class TchatPrivmsgPacket {
public String username, msg, destinator;
}
| mit |