code stringlengths 3 1.04M | repo_name stringlengths 5 109 | path stringlengths 6 306 | language stringclasses 1
value | license stringclasses 15
values | size int64 3 1.04M |
|---|---|---|---|---|---|
package br.com.mb;
import java.io.IOException;
import java.io.Serializable;
import java.lang.reflect.ParameterizedType;
import java.util.Date;
import java.util.List;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.annotation.Resource;
import javax.faces.a... | girinoboy/lojacasamento | lojacasamento-core/src/main/java/br/com/mb/GenericMB.java | Java | mit | 4,435 |
package com.raghavpro.bookhive.models.service;
import com.raghavpro.bookhive.Constants;
import com.raghavpro.bookhive.models.Book;
import com.raghavpro.bookhive.models.Review;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
im... | RaghavPro/bookstore | src/main/java/com/raghavpro/bookhive/models/service/BookService.java | Java | mit | 3,607 |
package bucky;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
public class GUIFiftySix extends JFrame {
// Variables
private JTextField addressBar;
private JEditorPane display;
// Constructor
public GUIFiftySix(){
super("the Title");
// Create address bar
addr... | willem-vanheemstrasystems/java-headstart | bucky/src/bucky/GUIFiftySix.java | Java | mit | 1,412 |
/*
* The MIT License
*
* Copyright (c) 2016, CloudBees, 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, c... | alvarolobato/pipeline-maven-plugin | maven-spy/src/main/java/org/jenkinsci/plugins/pipeline/maven/eventspy/handler/JarJarExecutionHandler.java | Java | mit | 2,126 |
// Generated by Haxe 3.3.0
package haxe.lang;
import haxe.root.*;
@SuppressWarnings(value={"rawtypes", "unchecked"})
public class HxObject implements haxe.lang.IHxObject
{
public HxObject(haxe.lang.EmptyObject empty)
{
}
public HxObject()
{
//line 30 "/usr/local/lib/haxe/std/java/internal/HxObject.hx"
ha... | MatthijsKamstra/haxejava | 02Surface/code/bin/java/src/haxe/lang/HxObject.java | Java | mit | 4,642 |
package com.java.ui.componentc;
import javax.swing.*;
public class JCSeparator extends JSeparator {
private static final long serialVersionUID = -2404686601191054374L;
public JCSeparator() {
this(0);
}
public JCSeparator(int orientation) {
super(orientation);
setUI(new CSepar... | aleen42/SimpChat | src/com/java/ui/componentc/JCSeparator.java | Java | mit | 416 |
package me.pbox.site.index;
/**
* @author Mike Mirzayanov (mirzayanovmr@gmail.com)
*/
public class IllegalQueryException extends Exception {
public IllegalQueryException(String message) {
super(message);
}
public IllegalQueryException(String message, Throwable cause) {
super(message, cau... | MikeMirzayanov/pbox | src/site/src/main/java/me/pbox/site/index/IllegalQueryException.java | Java | mit | 333 |
package ftc.evlib.vision.processors;
import org.opencv.core.Scalar;
import ftc.electronvolts.util.TeamColor;
import ftc.evlib.vision.ImageUtil;
/**
* This file was made by the electronVolts, FTC team 7393
* Date Created: 8/17/16.
*
* Storage class for the color of the beacon
*/
public class BeaconColorResult {
... | FTC7393/EVLib | EVLib/src/main/java/ftc/evlib/vision/processors/BeaconColorResult.java | Java | mit | 2,523 |
package hackerrank;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
import java.util.Set;
/**
* https://www.hackerrank.com/challenges/cut-the-tree
*/
public class CutTheTree {
private static class Vertex {
... | fredyw/hackerrank | src/main/java/hackerrank/CutTheTree.java | Java | mit | 2,396 |
package com.hearthsim.test.minion;
import com.hearthsim.card.Card;
import com.hearthsim.card.Deck;
import com.hearthsim.card.basic.minion.BoulderfistOgre;
import com.hearthsim.card.basic.minion.RaidLeader;
import com.hearthsim.card.basic.minion.StormwindChampion;
import com.hearthsim.card.basic.spell.TheCoin;
import c... | relimited/HearthSim | src/test/java/com/hearthsim/test/minion/TestFlesheatingGhoul.java | Java | mit | 7,514 |
package org.dotwebstack.framework.core.directives;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.jupiter.api.Assertions.assertThrows;
import gr... | dotwebstack/dotwebstack-framework | core/src/test/java/org/dotwebstack/framework/core/directives/DirectiveUtilsTest.java | Java | mit | 2,333 |
/*
* Copyright (c) 2017, Vadim Petrov - MIT License
*/
package com.spiky.server.utils;
import java.util.ArrayList;
public class CircularArrayList<E> extends ArrayList<E> {
private ArrayList<E> list;
private int maxSize;
public CircularArrayList(int size) {
list = new ArrayList<E> (size);
... | VadimDev/Spiky-Project | Spiky_Server/src/main/java/com/spiky/server/utils/CircularArrayList.java | Java | mit | 896 |
package rest.standalone;
import org.codehaus.jackson.JsonGenerationException;
import org.codehaus.jackson.JsonNode;
import org.codehaus.jackson.map.JsonMappingException;
import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.node.ObjectNode;
import java.io.*;
import java.nio.charset.Charset;
import... | AncientMariner/jax | src/main/java/rest/standalone/JacksonTreeNodeExample.java | Java | mit | 1,954 |
/*
* 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"); you... | Mayo-WE01051879/mayosapp | Build/src/main/org/apache/tools/ant/types/TarFileSet.java | Java | mit | 7,560 |
package roulette;
import util.ConsoleReader;
/**
* Represents player's attempt to bet on outcome of the roulette wheel's spin.
*
* @author Robert C. Duvall
*/
public abstract class Bet {
private String myDescription;
private int myOdds;
/**
* Constructs a bet with the given name and odds.
... | medowd/example_roulette | src/roulette/Bet.java | Java | mit | 994 |
package src.parser.nodes;
import src.parser.*;
public class FormalsNode extends SemanticNode{
@Override
public void setChildren(){
if(TableDrivenParser.semanticStack.peek() instanceof NonEmptyFormalsNode){
this.takeChildren((NonEmptyFormalsNode)TableDrivenParser.semanticStack.pop(), this);
}
}
/... | TPL-Group/TPL-Compiler | src/parser/nodes/FormalsNode.java | Java | mit | 562 |
/*
* The MIT License
*
* Copyright (c) 2015 Red Hat, 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... | olivergondza/dumpling | cli/src/main/java/com/github/olivergondza/dumpling/cli/ThreaddumpCommand.java | Java | mit | 2,159 |
package com.gmail.raynlegends.adventofcode.puzzles;
import com.gmail.raynlegends.adventofcode.Puzzle;
public class _01_2_Puzzle implements Puzzle {
@Override
public String calculate(String input) {
int current = 0;
int position = 1;
for (char character : input.toCharArray()) {
if (character == '(') {
... | RaynLegends/AdventOfCodePuzzleSolver | src/com/gmail/raynlegends/adventofcode/puzzles/_01_2_Puzzle.java | Java | mit | 558 |
package com.faforever.client.fx.contextmenu;
import com.faforever.client.builders.GameBeanBuilder;
import com.faforever.client.builders.PlayerBeanBuilder;
import com.faforever.client.domain.PlayerBean;
import com.faforever.client.i18n.I18n;
import com.faforever.client.notification.NotificationService;
import com.fafor... | FAForever/downlords-faf-client | src/test/java/com/faforever/client/fx/contextmenu/WatchGameMenuItemTest.java | Java | mit | 2,400 |
package com.microsoft.bingads.v12.adinsight;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous co... | bing-ads-sdk/BingAds-Java-SDK | proxies/com/microsoft/bingads/v12/adinsight/GetAuctionInsightDataResponse.java | Java | mit | 1,811 |
package com.bitdubai.fermat_api.layer.all_definition.exceptions;
import com.bitdubai.fermat_api.FermatException;
/**
* Created by eze on 2015.06.18..
*/
public class InvalidParameterException extends FermatException {
private static String defaultMsg = "Wrong Parameter Found: ";
public static final String... | fvasquezjatar/fermat-unused | fermat-api/src/main/java/com/bitdubai/fermat_api/layer/all_definition/exceptions/InvalidParameterException.java | Java | mit | 1,026 |
// Template Source: BaseEntityRequestBuilder.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// -----------------------------... | microsoftgraph/msgraph-sdk-java | src/main/java/com/microsoft/graph/requests/EnrollmentConfigurationAssignmentRequestBuilder.java | Java | mit | 2,566 |
package org.fitnesse.jbehave;
import org.jbehave.core.annotations.*;
import org.jbehave.core.steps.Steps;
public class ExampleSteps extends Steps {
int x;
@Given("a variable x with value $value")
@Alias("a variable x with value <value>") // examples table
public void givenXValue(@Named("value") int v... | amolenaar/fitnesse-jbehave-test-system | stepsrc/org/fitnesse/jbehave/ExampleSteps.java | Java | mit | 805 |
package com.renren.api.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, merg... | sibojia/ihomepage | infohub-yt/src/com/renren/api/json/HTTPTokener.java | Java | mit | 2,432 |
package tw.com.ischool.fireflylite.util;
import android.util.Base64;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import ... | ischool-tw/FireflyLite | FireflyLite/src/main/java/tw/com/ischool/fireflylite/util/Converter.java | Java | mit | 8,617 |
package com.jph.takephoto.model;
import android.app.Activity;
import androidx.fragment.app.Fragment;
/**
* Author: JPH
* Date: 2016/8/11 17:01
*/
public class TContextWrap {
private Activity activity;
private Fragment fragment;
public static TContextWrap of(Activity activity){
return new TCont... | blackbbc/Tucao | takephoto_library/src/main/java/com/jph/takephoto/model/TContextWrap.java | Java | mit | 985 |
package org.acme;
import org.eclipse.microprofile.config.inject.ConfigProperty;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.transaction.Transactional;
import javax.ws.rs.*;
import javax.ws.rs.core.Response;
@Path("/customer")
@Produces("application/json")
@Consumes("application/js... | fmarchioni/mastertheboss | quarkus/testing/src/main/java/org/acme/CustomerResource.java | Java | mit | 2,076 |
package org.bib.tbase.config.web;
import java.util.Arrays;
import java.util.Collection;
import javax.inject.Inject;
import javax.inject.Named;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.f... | blueinblue/tbase | tbase/src/main/java/org/bib/tbase/config/web/WebFlowConfig.java | Java | mit | 5,419 |
package fibex.utilities;
import java.io.File;
import java.util.Collection;
import java.util.LinkedHashSet;
import support.FIBEXConfiguration;
import support.Log;
/**
* This class extracts and represents all supported versions from the library folder
*
* @author TUM CREATE - RP3 - Philipp Mundhenk
*/
public clas... | PhilippMundhenk/FIBEX-Import-Export | FIBEX/src/fibex/utilities/SupportedVersion.java | Java | mit | 4,085 |
package com.github.tomitakussaari.phaas.model;
import lombok.Getter;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import static com.github.tomitakussaari.phaas.model.DataProtectionScheme.ESCAPED_TOKEN_VALUE_SEPARATOR;
@RequiredArgsConstructor
@Getter
public class PasswordVerifyRequest {
@NonNull... | TomiTakussaari/phaas | src/main/java/com/github/tomitakussaari/phaas/model/PasswordVerifyRequest.java | Java | mit | 746 |
/*
* The MIT License
*
* Copyright 2016 Ahseya.
*
* 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, ... | horrorho/InflatableDonkey | src/main/java/com/github/horrorho/inflatabledonkey/args/filter/ArgsSelector.java | Java | mit | 3,359 |
package io.luna.game.model;
import com.google.common.collect.ImmutableList;
import io.luna.LunaContext;
import io.luna.game.model.chunk.Chunk;
import io.luna.game.model.mob.Player;
import io.luna.net.msg.GameMessageWriter;
import io.luna.net.msg.out.ChunkPlacementMessageWriter;
import java.util.Collections;
import ja... | lare96/luna | src/main/java/io/luna/game/model/StationaryEntity.java | Java | mit | 7,329 |
/*
* The MIT License
*
* Copyright 2015 Pablo Puñal Pereira <pablo.punal@ltu.se>.
*
* 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 th... | punyal/BlackHole | src/main/java/com/punyal/blackhole/core/control/Analyzer.java | Java | mit | 6,973 |
package me.sabareesh.trippie.ui;
import android.app.ActivityOptions;
import android.content.Intent;
import android.content.res.Resources;
import android.graphics.Rect;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androi... | sonnvph03164/DatPhongKhachSan | app/src/main/java/me/sabareesh/trippie/ui/CityActivity.java | Java | mit | 10,251 |
package com.github.douglasorr.shared;
import java.util.Set;
/**
* A set that supports shared updates in place of mutable ones.
* Apart from this, it behaves as a normal Java immutable Set.
* <p>Instead of using <code>Set.add</code>, use {@link #with(Object)}, and
* instead of using <code>Set.remove</code>, use {@... | DouglasOrr/SharedCollections | src/main/java/com/github/douglasorr/shared/SharedSet.java | Java | mit | 947 |
package pdms.platform.service;
import java.util.List;
import pdms.components.dto.A0400TopicDto;
import pdms.components.vo.A0400TopicVo;
import pdms.platform.core.PdmsException;
/**
*
* @author LUSuo(atealxt@gmail.com)
*/
public interface A0400TopicService {
public String createTopic(A0400TopicDto dto) throws ... | atealxt/work-workspaces | PDMS/src/java/pdms/platform/service/A0400TopicService.java | Java | mit | 856 |
package org.knowm.xchange.bittrex.dto.marketdata;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonProperty;
public class BittrexTicker {
private BigDecimal ask;
private BigDecimal baseVolume;
private BigDecimal bid;
private String created;
private String displayMarketN... | gaborkolozsy/XChange | xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/dto/marketdata/BittrexTicker.java | Java | mit | 4,396 |
package DataManagement;
public class SyncListData implements java.io.Serializable {
private int m_devicePublicID;
public int getDevicePublicID() {return m_devicePublicID;}
public String m_lastUpdate;
public SyncListData(int devicePublicID, String lastUpdate){
m_devicePublicID = devicePublicID;... | tomzig16/ADM | src/main/java/DataManagement/SyncListData.java | Java | mit | 364 |
/**
* Copyright (c) Microsoft Corporation
* <p/>
* All rights reserved.
* <p/>
* MIT License
* <p/>
* 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 withou... | Microsoft/Microsoft-Cloud-Services-for-Android | src/com/microsoft/intellij/helpers/activityConfiguration/office365CustomWizardParameter/Office365ParameterPane.java | Java | mit | 7,737 |
package com.cspinformatique.kubik.server.domain.sales.service.impl;
import java.util.Date;
import javax.annotation.Resource;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.http.HttpMethod;
import org.springframework.stereotype.Service;
import... | daniellavoie/Kubik | kubik/kubik-server/src/main/java/com/cspinformatique/kubik/server/domain/sales/service/impl/CustomerServiceImpl.java | Java | mit | 2,515 |
import java.io.*;
import java.util.*;
class BullsAndCows
{
public static void main(String[] args)
{
System.out.println("=== Bulls and Cows ===");
Solution solution = new Solution();
String secret = "1807";
String guess = "7810";
String hint = solution.getH... | shaotao/Leetcode | algorithm/bulls_and_cows/BullsAndCows.java | Java | mit | 2,355 |
package com.nirima.jenkins.plugins.docker.builder;
import hudson.DescriptorExtensionList;
import hudson.model.Descriptor;
import jenkins.model.Jenkins;
/**
* Created by magnayn on 30/01/2014.
*/
public abstract class DockerBuilderControlOptionDescriptor extends Descriptor<DockerBuilderControlOption>
{
public st... | eaglerainbow/docker-plugin | src/main/java/com/nirima/jenkins/plugins/docker/builder/DockerBuilderControlOptionDescriptor.java | Java | mit | 520 |
/**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ |
| ... | mikeqian/hprose-java | src/main/java/hprose/io/unserialize/ByteArrayUnserializer.java | Java | mit | 5,180 |
/*
* Copyright (C) 2011 Google Inc.
*
* 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 applicable law or agree... | LattEngineer/LattEngineerAPI | src/main/java/io/lattengineer/LattEngineerAPI/gson/TypeAdapter.java | Java | mit | 11,082 |
package com.weather.byhieg.easyweather.home;
import android.annotation.SuppressLint;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
import andr... | byhieg/easyweather | app/src/main/java/com/weather/byhieg/easyweather/home/HomeFragment.java | Java | mit | 20,446 |
package modtweaker2.mods.forestry.handlers;
import static modtweaker2.helpers.InputHelper.toFluid;
import static modtweaker2.helpers.InputHelper.toIItemStack;
import static modtweaker2.helpers.InputHelper.toILiquidStack;
import static modtweaker2.helpers.InputHelper.toStack;
import static modtweaker2.helpers.InputHelp... | yrsegal/ModTweaker2 | src/main/java/modtweaker2/mods/forestry/handlers/Carpenter.java | Java | mit | 5,543 |
package com.example.danieltilley.volleyapp;
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
... | Daniel-Tilley/SimpleAndroidApps | VolleyApp/app/src/test/java/com/example/danieltilley/volleyapp/ExampleUnitTest.java | Java | mit | 412 |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.network.v2020_04_01.implementation;
import com.m... | selvasingh/azure-sdk-for-java | sdk/network/mgmt-v2020_04_01/src/main/java/com/microsoft/azure/management/network/v2020_04_01/implementation/ApplicationGatewaySslPredefinedPolicyImpl.java | Java | mit | 1,584 |
package com.InfinityRaider.AgriCraft.handler;
import com.InfinityRaider.AgriCraft.blocks.BlockCrop;
import com.InfinityRaider.AgriCraft.tileentity.TileEntityCrop;
import cpw.mods.fml.common.eventhandler.Event;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.event.entity.player.Bonemea... | Mazdallier/AgriCraft | src/main/java/com/InfinityRaider/AgriCraft/handler/BonemealEventHandler.java | Java | mit | 1,127 |
// Template Source: BaseMethodCollectionRequest.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// --------------------------... | microsoftgraph/msgraph-sdk-java | src/main/java/com/microsoft/graph/requests/GroupDeltaCollectionRequest.java | Java | mit | 5,194 |
package com.github.loafer.example.spring.redis;
import static org.assertj.core.api.Assertions.*;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.dao.DataAccessException;
import org.springframework.data... | loafer/spring4-tutorials | spring-redis/src/test/java/com/github/loafer/example/spring/redis/StringCommandTest.java | Java | mit | 5,516 |
package de.SweetCode.TextAdventure.Dungeon.Dungeons;
import de.SweetCode.TextAdventure.Dungeon.Dungeon;
import de.SweetCode.TextAdventure.Entity.Entities.Player;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
/**
* Created by Yonas on 07.09.2015.
*/
public class ScienceDungeon extends Dungeo... | sweetcode/TextAdventure | src/de/SweetCode/TextAdventure/Dungeon/Dungeons/ScienceDungeon.java | Java | mit | 581 |
// Install the Java helper library from twilio.com/docs/java/install
import java.net.URI;
import java.net.URISyntaxException;
import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.usage.Trigger;
public class Example {
// Find your Account Sid and Token at twilio.com/user/account
public static final S... | teoreteetik/api-snippets | rest/usage-triggers/list-post-example-1/list-post-example-1.7.x.java | Java | mit | 738 |
package com.github.aha.cert.exception;
public class MyRuntimeException extends RuntimeException {
private static final long serialVersionUID = 1L;
public MyRuntimeException(String message) {
super(message);
}
}
| arnosthavelka/owcd-cert | src/main/java/com/github/aha/cert/exception/MyRuntimeException.java | Java | mit | 220 |
package tsg.utils;
import java.io.File;
import java.util.ArrayList;
import java.util.Iterator;
import tsg.TSNodeLabel;
public class CheckTreebankWordsConsistency {
public static void main(String[] args) throws Exception {
File treebankFile1 = new File(args[0]);
File treebankFile2 = new File(args[0]);
Array... | kercos/TreeGrammars | TreeGrammars/src/tsg/utils/CheckTreebankWordsConsistency.java | Java | mit | 1,266 |
package com.sanction.thunder;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.sanction.thunder.authentication.Key;
import io.dropwizard.Configuration;
import java.util.List;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
public class ThunderConfiguration extends Configur... | NickEckert/thunder | application/src/main/java/com/sanction/thunder/ThunderConfiguration.java | Java | mit | 672 |
package ar.edu.itba.paw.persistence.hibernate;
import ar.edu.itba.paw.models.Patient;
import ar.edu.itba.paw.models.User;
import ar.edu.itba.paw.persistence.UserDao;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import javax.persistence.EntityManag... | jsuarezb/paw-2016-4 | persistence/src/main/java/ar/edu/itba/paw/persistence/hibernate/UserHibernateDao.java | Java | mit | 2,045 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package erp.mod.log.form;
import erp.lib.SLibConstants;
import erp.mod.SModConsts;
import erp.mod.SModSysConsts;
import erp.mod.log.db.SDbShipment;
import erp.mod.log.db.SDbShipmentDestiny;
import sa.lib.SLibConsts;
imp... | swaplicado/siie32 | src/erp/mod/log/form/SFormShipmentDelivery.java | Java | mit | 20,991 |
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
public class RedirectSystemOut {
public static void main(String[] args) {
PrintStream original = System.out;
StringBuilder sb = new StringBuilder();
System.setOut(new PrintStrea... | utluiz/java-playground | random-code/src/main/java/RedirectSystemOut.java | Java | mit | 1,023 |
package carShop;
public class Seat extends Sellable{
private String countryProduced;
public Seat(String model, String color, Integer horsePower, Double price, String countryProduced) {
super(model, color, horsePower, price);
this.countryProduced = countryProduced;
}
@Override
public String toString() {
... | akkirilov/SoftUniProject | 04_DB Frameworks_Hibernate+Spring Data/03_OOP Principles LAB/src/carShop/Seat.java | Java | mit | 590 |
/**
* Write a description of class Cheetah here.
*
* @author (your name)
* @version (a version number or a date)
*/
//"child class"
//"subclass"
//"derived class"
public class Cheetah extends Animal
{
public void run()
{
System.out.println("This cheetah is currently running");
... | jordantdavis/CourseIntroToComputerScience | Inheritance/Cheetah.java | Java | mit | 330 |
package ch.giesserei.view.reservation.personwhg;
import ch.giesserei.resource.AppRes;
import ch.giesserei.view.AbstractClickListener;
import ch.giesserei.view.AbstractViewController;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Notification;
/**
* Dieses Aktion informiert den Controller, d... | steffen-foerster/mgh | src/ch/giesserei/view/reservation/personwhg/FilterPersonAction.java | Java | mit | 1,122 |
/*
* 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 view.buttons;
import javafx.scene.control.Button;
import view.popups.shift.ShiftManualPopup;
/**
*
* @author Yo... | BenjaminBNielsen/ProjectXray | src/view/buttons/ShiftManualButton.java | Java | mit | 930 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.0... | ITSFactory/itsfactory.siri.bindings.v13 | src/main/java/eu/datex2/schema/_1_0/_1_0/PrecipitationTypeEnum.java | Java | mit | 2,063 |
package biz.golek.whattodofordinner.view.messages;
/**
* Created by Bartosz Gołek on 2016-02-10.
*/
public class DinnerUpdatedMessage {
private Long id;
private String name;
public DinnerUpdatedMessage(Long id, String name) {
this.id = id;
this.name = name;
}
public Long getId()... | bartoszgolek/whattodofordinner | app/src/main/java/biz/golek/whattodofordinner/view/messages/DinnerUpdatedMessage.java | Java | mit | 409 |
/**
* The MIT License
* Copyright (c) 2010 JmxTrans team
*
* 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, ... | yogoloth/jmxtrans | jmxtrans-output/jmxtrans-output-core/src/test/java/com/googlecode/jmxtrans/model/output/GraphiteWriterFactoryIT.java | Java | mit | 4,048 |
package com.share.api.interfaces.alipay;
/**
* Created by aaron on 6/23/16.
* 支付宝分享类型
* 1.文本
* 2.图片
* 3.网页
*/
public interface AlipayShareType<T> {
T isText();
T isImage();
T isWebpage();
}
| ganguo/yingping_rn | Yingping/android/OfficialOpenSDK/src/main/java/com/share/api/interfaces/alipay/AlipayShareType.java | Java | mit | 240 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.cdn.implementation;
import com.azure.core.annotation.BodyParam;
import com.azure.core.annotation.ExpectedResponses;
import com.a... | Azure/azure-sdk-for-java | sdk/resourcemanager/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/ValidatesClientImpl.java | Java | mit | 9,487 |
package org.sbrubbles.genericcons.fixtures;
import java.util.List;
public class ClassWithMultipleInterfaces implements IOneParameter<String>, ITwoParameters<Integer, List<Double>> {
// empty block
}
| hanjos/genericcons | src/test/java/org/sbrubbles/genericcons/fixtures/ClassWithMultipleInterfaces.java | Java | mit | 203 |
package big.marketing.data;
import com.mongodb.BasicDBObject;
import com.mongodb.DBObject;
/**
* @author jaakkju
*
* #Column 1: IP #Column 2: Host Name. Hosts with a "WSS" prefix are
* user workstations. "Administrator" is the administrator workstation.
* Others are servers. #Column 3 (O... | nullbox/Data-and-Information-Visualization-Project | src/big/marketing/data/Node.java | Java | mit | 3,257 |
package net.frog.services.diners;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import net.frog.dao.diners.DinersDAO;
import net.frog.vo.DinersVO;
import net.frog.vo.diners.photo.DinersPhotopathVO;
@Service("dinersService")
public class DinersServiceImpl implements Di... | Gruci/g_frog | g_frog/src/main/java/net/frog/services/diners/DinersServiceImpl.java | Java | mit | 869 |
package org.jcodec.movtool.streaming;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.jcodec.containers.mkv.MKVStreamingMuxer;
/**
* This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License
*
* WebM specific muxing
*
* @author ... | Dacaspex/Fractal | org/jcodec/movtool/streaming/VirtualWebmMovie.java | Java | mit | 2,337 |
//
// 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: 2015.12.... | FLamparski/islondonbridgefucked.com | src-generated/com/thalesgroup/pushport/TSLocation.java | Java | mit | 9,745 |
/**
* Copyright (c) 2016-2018 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://ww... | smarr/SOMns-vscode | server/org.eclipse.lsp4j-gen/org/eclipse/lsp4j/DidCloseTextDocumentParams.java | Java | mit | 2,560 |
package eu.bcvsolutions.idm.core.bulk.action.impl.configuration;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import eu.bcvsolution... | bcvsolutions/CzechIdMng | Realization/backend/core/core-impl/src/test/java/eu/bcvsolutions/idm/core/bulk/action/impl/configuration/ConfigurationSwitchInstanceBulkActionIntegrationTest.java | Java | mit | 10,424 |
package no.ntnu.assignmentsystem.services;
import java.util.List;
import java.util.Optional;
import no.ntnu.assignmentsystem.model.Assignment;
import no.ntnu.assignmentsystem.model.Course;
import no.ntnu.assignmentsystem.model.ModelLoader;
import no.ntnu.assignmentsystem.model.Participant;
import no.ntnu.assignmentsy... | chrrasmussen/NTNU-Master-Project | no.ntnu.assignmentsystem.model/src/no/ntnu/assignmentsystem/services/ModelServices.java | Java | mit | 1,773 |
/*
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
package com.microsoft.azure.servicebus;
// multiple issues were identified in the proton-j layer which could lead to a stuck state in Transport
// https://issues... | vinayakapte/azure_event_hub_sample | azure-eventhubs/src/main/java/com/microsoft/azure/servicebus/ITimeoutErrorHandler.java | Java | mit | 625 |
/*
The MIT License (MIT)
Copyright (c) 2008 Kleber Maia de Andrade
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, cop... | kleber-maia/iobjects | src/java/iobjects/util/mail/URLDataSourceEx.java | Java | mit | 4,974 |
package com.lothrazar.cyclic.block.crusher;
import com.lothrazar.cyclic.gui.ButtonMachineField;
import com.lothrazar.cyclic.gui.EnergyBar;
import com.lothrazar.cyclic.gui.ScreenBase;
import com.lothrazar.cyclic.gui.TexturedProgress;
import com.lothrazar.cyclic.registry.TextureRegistry;
import com.mojang.blaze3d.vertex... | PrinceOfAmber/CyclicMagic | src/main/java/com/lothrazar/cyclic/block/crusher/ScreenCrusher.java | Java | mit | 2,237 |
package io.github.aquerr.eaglefactions.storage.sql.sqlite;
import io.github.aquerr.eaglefactions.api.EagleFactions;
import io.github.aquerr.eaglefactions.storage.sql.AbstractFactionStorage;
public class SqliteFactionStorage extends AbstractFactionStorage
{
public SqliteFactionStorage(EagleFactions plugin)
{
... | Aquerr/EagleFactions | src/main/java/io/github/aquerr/eaglefactions/storage/sql/sqlite/SqliteFactionStorage.java | Java | mit | 386 |
package org.kitchenstudio.service;
import java.util.List;
import org.kitchenstudio.entity.Company;
import org.kitchenstudio.entity.Site;
public interface SiteService {
List<Site> findAll();
void add(Site site);
void delete(Site site);
List<Site> findByCompany(Company company);
}
| KitchenStudio/shcx | shcx/src/main/java/org/kitchenstudio/service/SiteService.java | Java | mit | 293 |
package easy.data.xml;
import java.util.HashMap;
import easy.data.*;
import easy.data.field.*;
import easy.data.sig.*;
import easy.data.util.*;
public class XMLDataSourceIterator implements DataSourceIterator {
XMLDataSource xds;
IDataField df;
XML[] nodes;
int curIndex;
public XMLDataSourceIterator(XMLDataSo... | berry-cs/big-data-cse | big-data-java/src/easy/data/xml/XMLDataSourceIterator.java | Java | mit | 2,587 |
/**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ |
| ... | hprose/hprose-java | src/main/java/hprose/io/unserialize/CharArrayUnserializer.java | Java | mit | 2,104 |
/*
* MIT License
*
* Copyright (c) 2016~2017 Z-Chess
*
* 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, cop... | TGX-ZQ/Z-Queen | src/main/java/com/tgx/zq/z/queen/cluster/replication/bean/raft/NodeEntity.java | Java | mit | 3,111 |
package mil.nga.mapcache;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.provider.Settings;
import android.view.MenuItem;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import androidx... | ngageoint/geopackage-mapcache-android | mapcache/src/main/java/mil/nga/mapcache/MainActivity.java | Java | mit | 7,404 |
package ca.mlht.android.skip;
import android.content.Context;
import android.os.Bundle;
import android.app.Activity;
import android.provider.Settings;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import android.app.Progre... | mmailhot/skip-android | SKIPProject/SKIP/src/main/java/ca/mlht/android/skip/MainActivity.java | Java | mit | 3,790 |
/*
* Stub for class boofcv.core.image.border.BorderIndex1D_Reflect
* Generated by Sapphire Compiler (sc).
*/
package boofcv.core.image.border.stubs;
public final class BorderIndex1D_Reflect_Stub extends boofcv.core.image.border.BorderIndex1D_Reflect implements sapphire.common.AppObjectStub {
sapphire.policy.S... | bladestery/Sapphire | example_apps/AndroidStudioMinnie/sapphire/src/main/java/boofcv/BorderIndex1D_Reflect_Stub.java | Java | mit | 1,551 |
package leetcode;
public class Solution321 {
public int maxNumber(int[] nums1, int[] nums2, int k) {
int m = nums1.length, n = nums2.length;
int[][][] F = new int[m + 1][n + 1][k + 1];
for (int i = 0; i <= m; i++) {
for (int j = 0; j <= n; j++) {
for (int c = 1; ... | tbian7/pst | training/src/leetcode/Solution321.java | Java | mit | 929 |
package edu.hm.hafner.analysis.parser;
import java.util.regex.Matcher;
import org.apache.commons.lang3.StringUtils;
import edu.hm.hafner.analysis.Issue;
import edu.hm.hafner.analysis.Priority;
import edu.hm.hafner.analysis.RegexpLineParser;
/**
* A parser for Oracle Invalids.
*
* @author Ullrich Hafner
*/
publi... | isigoing/analysis-model | src/main/java/edu/hm/hafner/analysis/parser/InvalidsParser.java | Java | mit | 1,678 |
package simulation.drive_sim;
public class Resources {
public static String resources = "res";
public static String robotImage = resources + "/octi.png";
public static String blueAllianceRobotImage = resources + "/octi-blue bumpers.png";
public static String redAllianceRobotImage = resources + "/octi-red bum... | team1389/Simulation-Ohm | Simulation-Ohm/src/simulation/drive_sim/Resources.java | Java | mit | 610 |
/*
Follow up for problem "Populating Next Right Pointers in Each Node".
What if the given tree could be any binary tree? Would your previous solution still work?
Note:
You may only use constant extra space.
For example,
Given the following binary tree,
1
/ \
2 3
/ \ \
4 5 7... | kingdaa/Leetcode_Java | src/PopulatingNextRightPointersInEachNodeII.java | Java | mit | 2,037 |
package com.kazaky.breakout;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class MenuActivity extends Activity implements View.OnClickListener {
@Override
protected void onCreate(Bundle savedInstanceState)... | kazaky/Breakout-Android-Game | app/src/main/java/com/kazaky/breakout/MenuActivity.java | Java | mit | 1,284 |
/*
* The MIT License
*
* Copyright 2020 Intuit Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | intuit/karate | karate-robot/src/main/java/com/intuit/karate/robot/mac/MacRobot.java | Java | mit | 3,998 |
package valandur.webapi.config;
import com.google.common.collect.Lists;
import ninja.leaping.configurate.objectmapping.Setting;
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@ConfigSerializable
public class CacheCon... | Valandur/Web-API | webapi-sponge/src/main/java/valandur/webapi/config/CacheConfig.java | Java | mit | 1,407 |
package org.innovateuk.ifs.application.domain;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.innovateuk.ifs.application.repository.ApplicationStateConverter;
import org.innovateuk.ifs.application.resource.ApplicationState;
import org.innovate... | InnovateUKGitHub/innovation-funding-service | ifs-data-layer/ifs-data-service/src/main/java/org/innovateuk/ifs/application/domain/ApplicationProcess.java | Java | mit | 3,335 |
package algorithms.compGeometry.clustering.twopointcorrelation;
import java.util.logging.Logger;
/**
*
* @author nichole
*/
public class SubsetSamplingVoidFinderTest extends BaseTwoPointTest {
boolean debug = true;
protected Logger log = Logger.getLogger(this.getClass().getSimpleName());
public void... | tectronics/two-point-correlation | src/test/java/algorithms/compGeometry/clustering/twopointcorrelation/SubsetSamplingVoidFinderTest.java | Java | mit | 2,810 |
package visualUnits;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
public class SquareUnit extends Units{
public SquareUnit (int r, int c, boolean outline, double width, double height, Color col) {
super (r ,c, outline);
create(width, height);
set(col, unit);
... | catzhangy1/cellSociety | src/visualUnits/SquareUnit.java | Java | mit | 482 |
/* Generated By:JavaCC: Do not edit this line. langB.java */
package parser;
import java.io.*;
public class langB implements langBConstants {
final static String Version = "Compilador Beluga - 2013/1";
boolean Menosshort = false; // sa�da resumida = falso
// Define o m�todo "main" da classe langB.
public st... | lucasperin/Beluga | AL/src/langB.java | Java | mit | 7,909 |
package com.tmtravlr.potioncore.potion;
import io.netty.buffer.Unpooled;
import java.util.List;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.projectile.EntityPotion;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.... | Tmtravlr/PotionCore | src/main/java/com/tmtravlr/potioncore/potion/EntityPotionCorePotion.java | Java | mit | 5,504 |
package iw7i.servlets;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.concurrent.atomic.AtomicInteger;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.... | fjlopez/iw7i | servlets/src/main/java/iw7i/servlets/HelloWorld.java | Java | mit | 1,683 |