repo_name stringlengths 5 108 | path stringlengths 6 333 | size stringlengths 1 6 | content stringlengths 4 977k | license stringclasses 15
values |
|---|---|---|---|---|
FunnyMan3595/mcp_deobfuscate | src/main/java/org/ldg/mcpd/NonloadingClassWriter.java | 459 | package org.ldg.mcpd;
import org.objectweb.asm.*;
import java.util.*;
public class NonloadingClassWriter extends ClassWriter {
InheritanceGraph inheritance;
public NonloadingClassWriter(InheritanceGraph inheritance) {
super(0);
this.inheritance = inheritance;
}
@Override
protecte... | mit |
jblindsay/jblindsay.github.io | ghrg/Whitebox/WhiteboxGAT-linux/resources/plugins/source_files/ShapeComplexityIndex.java | 21623 | /*
* Copyright (C) 2011-2012 Dr. John Lindsay <jlindsay@uoguelph.ca>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later vers... | mit |
Adyen/adyen-java-api-library | src/main/java/com/adyen/model/marketpay/AccountStateLimit.java | 2874 | /*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####... | mit |
aserg-ufmg/RefDiff | refdiff-core/src/test/java/refdiff/test/util/CstDiffMatchers.java | 5269 | package refdiff.test.util;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
import org.hamcrest.TypeSafeDiagnosingMatcher;
import refdiff.co... | mit |
ragnor/simple-spring-memcached | integration-test/src/main/java/com/google/code/ssm/test/dao/MultiCacheDAO.java | 1548 | package com.google.code.ssm.test.dao;
/*
* Copyright (c) 2012-2019 Jakub Białek
*
* 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
* ... | mit |
selvasingh/azure-sdk-for-java | sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/BM25SimilarityAlgorithm.java | 3476 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.search.documents.indexes.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.j... | mit |
selvasingh/azure-sdk-for-java | sdk/spring/azure-spring-boot/src/main/java/com/microsoft/azure/spring/autoconfigure/aad/AzureADGraphClient.java | 10706 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.azure.spring.autoconfigure.aad;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.microsoft.aad.msal4j.ClientCredentialFactory;
import com.microsoft.aad.msal4j.ConfidentialClientApplicati... | mit |
wombling/mobilequiz | mobilequiz/src/main/java/com/wombling/mobilequiz/persistance/StoredQuestionDAO.java | 405 | package com.wombling.mobilequiz.persistance;
import java.util.List;
public interface StoredQuestionDAO {
public StoredQuestion save(StoredQuestion entity);
public StoredQuestion findById(String id);
public void delete(String id);
public void delete(StoredQuestion entity);
public void deleteAll();
public L... | mit |
devinsba/dropwizard-spring-template | src/main/java/com/briandevins/healthcheck/TestHealthcheck.java | 667 | package com.briandevins.healthcheck;
import com.briandevins.config.DropwizardConfig;
import com.codahale.metrics.health.HealthCheck;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
/**
* Created by devinsba on 8/1/14.
*/
@Controller
public class TestH... | mit |
Da-Technomancer/Crossroads | src/main/java/com/Da_Technomancer/crossroads/tileentities/technomancy/CosAxisTileEntity.java | 1216 | package com.Da_Technomancer.crossroads.tileentities.technomancy;
import com.Da_Technomancer.crossroads.API.Properties;
import com.Da_Technomancer.crossroads.blocks.ModBlocks;
import net.minecraft.util.EnumFacing;
import javax.annotation.Nullable;
public class CosAxisTileEntity extends AbstractMathAxisTE{
private E... | mit |
sorlok/ornagai-mobile | src/ornagai/mobile/gui/FormController.java | 577 | /*
* This code is licensed under the terms of the MIT License.
* Please see the file LICENSE.TXT for the full license text.
*/
package ornagai.mobile.gui;
/**
* General hook to the main MIDlet. Centralizes control.
*
* @author Seth N. Hetu
*/
public interface FormController {
public abstract void switchTo... | mit |
dineshp2/Popular-Movies-Stage-2 | app/src/main/java/app/com/example/android/popularmoviesstage1/model/TrailerResult.java | 1399 | package app.com.example.android.popularmoviesstage1.model;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.ArrayList;
/**
* Created by dinesh on 20/4/16.
*/
public class TrailerResult implements Parcelable
{
private int id;
private ArrayList<Trailer> results;
public TrailerRes... | mit |
wizzardo/http-servlet-api | src/main/java/com/wizzardo/servlet/streams/ServletEpollInputStream.java | 2975 | package com.wizzardo.servlet.streams;
import com.wizzardo.http.EpollInputStream;
import com.wizzardo.servlet.HttpRequest;
import com.wizzardo.servlet.ServletHttpConnection;
import javax.servlet.ReadListener;
import javax.servlet.ServletInputStream;
import java.io.IOException;
/**
* @author: wizzardo
* Date: 05.11.... | mit |
Cynthia0217/KinectPV2 | Build_libs/KinectPV2_Eclipse/src/KinectPV2/Device.java | 21107 | package KinectPV2;
/*
Copyright (C) 2014 Thomas Sanchez Lengeling.
KinectPV2, Kinect for Windows v2 library for processing
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 restrictio... | mit |
FanHuaRan/interview.algorithm | offerjava/剑指offer/平衡二叉树/Solution.java | 1643 | public class Solution {
/*public class TreeNode{
public TreeNode left;
public TreeNode right;
}*/
public boolean IsBalanced_Solution(TreeNode root) {
int[] deep=new int[1];
return isBanlanced(root,deep);
}
//类似于后序遍历 可以减少时间复杂度
private boolean isBanlanced(TreeNode t... | mit |
games647/FastLogin | bungee/src/main/java/com/github/games647/fastlogin/bungee/task/ForceLoginTask.java | 4817 | /*
* SPDX-License-Identifier: MIT
*
* The MIT License (MIT)
*
* Copyright (c) 2015-2021 <Your name 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 restric... | mit |
kluetkemeyer/TTCore | src/de/brainiiiii/tt/core/IIsOpponent.java | 1526 | /*
* The MIT License
*
* Copyright 2014 Kilian Lütkemeyer <kilian@luetkemeyer.com>.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation ... | mit |
ot4i/perf-harness | MQJavaPerfHarness/src/com/ibm/uk/hursley/perfharness/mqjava/MQJavaWorkerThread.java | 6912 | /********************************************************* {COPYRIGHT-TOP} ***
* Copyright 2016 IBM Corporation
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the MIT License
* which accompanies this distribution, and is available at
* http://opensource.org/... | mit |
nubbel/swift-tensorflow | JavaGenerated/org/tensorflow/framework/DataType.java | 12235 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/framework/types.proto
package org.tensorflow.framework;
/**
* <pre>
* LINT.IfChange
* </pre>
*
* Protobuf enum {@code tensorflow.DataType}
*/
public enum DataType
implements com.google.protobuf.ProtocolMessageEnum {
/**... | mit |
GeoSmartCity-CIP/gsc-datacatalogue | server/src/main/java/it/sinergis/datacatalogue/mock/Gsc007DatasetEntityMock.java | 1327 |
/*
* Created on 18 dic 2015 ( Time 16:29:07 )
* Generated by Telosys Tools Generator ( version 2.1.1 )
*/
package it.sinergis.datacatalogue.mock;
import java.util.LinkedList;
import java.util.List;
import it.sinergis.datacatalogue.bean.jpa.Gsc007DatasetEntity;
import it.sinergis.datacatalogue.mock.tool.MockValues... | mit |
mwcaisse/CarTracker | CarTracker.Android/src/main/java/com/ricex/cartracker/android/service/OBDCommandJob.java | 803 | package com.ricex.cartracker.android.service;
import com.github.pires.obd.commands.ObdCommand;
/**
* Created by Mitchell on 2/12/2016.
*/
public class OBDCommandJob {
private ObdCommand command;
private OBDCommandStatus status;
public OBDCommandJob(ObdCommand command) {
if (null == command) {... | mit |
bergeoisie/jtextiles | src/test/java/edu/umd/math/TestProductTextile.java | 811 | package edu.umd.math;
import org.jgrapht.graph.DirectedPseudograph;
import org.junit.Test;
public class TestProductTextile {
@Test
public void testCreateDual() {
Textile t = TestTextileUtils.generateNasu();
Textile s = TestTextileUtils.generateNasu();
try {
Textile prod = TextileBuilder.cr... | mit |
Ernestyj/JStudy | src/main/java/eugene/reflect/App.java | 202 | package eugene.reflect;
/**
* Created by Jian on 2015/7/28.
*/
public class App {
public static void main(String[] args){
System.out.println("args: " + args[0] + ", " + args[1]);
}
}
| mit |
bgithub1/span-java | src/main/java/com/billybyte/spanjava/generated/Tick.java | 2927 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 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: 2012.0... | mit |
bitDecayGames/GlobalGameJam2017 | src/main/java/com/bitdecay/game/system/CameraPredictiveSystem.java | 1174 | package com.bitdecay.game.system;
import com.badlogic.gdx.math.Vector2;
import com.bitdecay.game.component.PositionComponent;
import com.bitdecay.game.component.PredictiveCameraFollowComponent;
import com.bitdecay.game.gameobject.MyGameObject;
import com.bitdecay.game.room.AbstractRoom;
import com.bitdecay.game.system... | mit |
accelazh/Dimension2GTA2 | Dimension2GTA/animatedGUI/AConstants.java | 512 | package animatedGUI;
public interface AConstants
{
public static final int TIMER_INTERVAL=10;
public static final int UP=1;
public static final int DOWN=-1;
public static final int LEFT=2;
public static final int RIGHT=-2;
//mode
public static final int SHOW=0;
public static final int POP_A... | mit |
ztory/sleek | sleek_module/src/main/java/com/ztory/lib/sleek/touch/ISleekTouchRun.java | 475 | package com.ztory.lib.sleek.touch;
import android.view.MotionEvent;
import com.ztory.lib.sleek.SleekCanvasInfo;
import com.ztory.lib.sleek.Sleek;
/**
* Interface that represents an onTouch action, passing in all the relevant parameters.
* Created by jonruna on 09/10/14.
*/
public interface ISleekTouchRun {
i... | mit |
albericocolaco/ponto-inteligente-api | src/main/java/com/example/pontointeligente/api/PontoInteligenteApplication.java | 344 | package com.example.pontointeligente.api;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class PontoInteligenteApplication {
public static void main(String[] args) {
SpringApplication.run(PontoInteligenteApplica... | mit |
Azure/azure-sdk-for-java | sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeStatus.java | 3367 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterx... | mit |
normanmaurer/hector | core/src/test/java/me/prettyprint/cassandra/model/MutatorTest.java | 9343 | package me.prettyprint.cassandra.model;
import static me.prettyprint.hector.api.factory.HFactory.createColumn;
import static me.prettyprint.hector.api.factory.HFactory.createCounterColumn;
import static me.prettyprint.hector.api.factory.HFactory.createColumnQuery;
import static me.prettyprint.hector.api.factory.HFacto... | mit |
DataAgg/DAFramework | commons/src/main/java/com/dataagg/util/lang/TextUtils.java | 11055 | package com.dataagg.util.lang;
import jodd.util.StringUtil;
import java.math.BigDecimal;
import java.net.URLEncoder;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Collection;
import java.util.Date;
i... | mit |
backpaper0/sealion | src/main/java/sealion/service/CommentService.java | 835 | package sealion.service;
import java.time.Clock;
import java.time.LocalDateTime;
import javax.inject.Inject;
import sealion.dao.CommentDao;
import sealion.domain.Key;
import sealion.domain.MarkedText;
import sealion.domain.PostedDate;
import sealion.entity.Comment;
import sealion.entity.Task;
import sealion.session.... | mit |
AdmirilRed/RedLibrary | RedLibrarian/src/redlibrarian/utility/BugReport.java | 1849 | /*
* 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 redlibrarian.utility;
import java.io.Serializable;
import java.util.logging.Level;
import java.util.logging.Logger;
import jav... | mit |
jonathanlermitage/manon | src/main/java/manon/repository/user/FriendshipRepository.java | 1808 | package manon.repository.user;
import manon.document.user.FriendshipEntity;
import manon.util.ExistForTesting;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.re... | mit |
manishkarney/H2OBot | H2OBot/src/edu/scu/cs/robotics/communication/JoysticksInput.java | 3108 | package edu.scu.cs.robotics.communication;
/**
* Singleton that maintains joystick inputs. This is used to obtain string representation of current Joystick inputs.
* Created by manishkarney on 4/20/14.
*/
public class JoysticksInput {
private static JoysticksInput instance=null;
private JoystickReading le... | mit |
bragex/the-vigilantes | Is-202/Sprint_1/StudentProsjektV2/src/java/Servlet/Add.java | 3631 | package Servlet;
/*
* 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.
*/
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.... | mit |
deepsleep/json-validations | src/main/java/com/jfcheng/json/annotation/MethodValidation.java | 399 | package com.jfcheng.json.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Created by jfcheng on 2/27/16.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interf... | mit |
stackprobe/Java | charlotte/saber/htt/HttSaberLily.java | 91 | package charlotte.saber.htt;
public interface HttSaberLily extends HttSaber {
// empty
}
| mit |
digitalheir/java-legislation-gov-uk-library | src/main/java/uk/gov/legislation/namespaces/metadata/ScheduleParagraphs.java | 1638 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-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: 2015.08.07 at 06:17... | mit |
ngageoint/disconnected-content-explorer-android | app/src/main/java/mil/nga/dice/report/WebViewJavascriptBridgeClient.java | 1553 | package mil.nga.dice.report;
import android.content.Context;
import android.os.Build;
import android.util.Log;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import java.io.IOException;
import java.io.InputStream;
import java.util.Scanner;
import mil.nga.dice.R;
/**
* WebView Javascript Bridge... | mit |
Azure/azure-sdk-for-java | sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/RegionConfigurationResponse.java | 1150 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.databox.models;
import com.azure.resourcemanager.databox.fluent.models.RegionConfigurationResponseInner;
/** An immutable clien... | mit |
Mozu/mozu-java | mozu-javaasync-core/src/main/java/com/mozu/api/resources/commerce/orders/OrderAttributeResource.java | 9726 | /**
* This code was auto-generated by a Codezu.
*
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*/
package com.mozu.api.resources.commerce.orders;
import com.mozu.api.ApiContext;
import java.util.List;
import java.util.ArrayList;
imp... | mit |
madumlao/oxAuth | Client/src/test/java/org/xdi/oxauth/ws/rs/PkceHttpTest.java | 9792 | /*
* oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
*
* Copyright (c) 2014, Gluu
*/
package org.xdi.oxauth.ws.rs;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;
import org.xdi.oxauth.BaseTest;
import org.xdi.oxauth.client.*;
i... | mit |
ntemplon/ygo-combo-calculator | src/com/croffgrin/ygocalc/ui/DeckViewer.java | 2096 | package com.croffgrin.ygocalc.ui;
import com.croffgrin.ygocalc.card.Card;
import com.croffgrin.ygocalc.card.Deck;
import javax.swing.*;
import java.awt.*;
/**
* Copyright (c) 2016 Nathan S. Templon
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated... | mit |
selvasingh/azure-sdk-for-java | sdk/network/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/network/v2020_06_01/GatewayRoute.java | 2696 | /**
* 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_06_01;
import com.fasterxml.jackso... | mit |
ikhaliq15/JHearthstone | src/net/theinterweb/Server/JSonReader.java | 23589 | package net.theinterweb.Server;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
public ... | mit |
kaeluka/spencer-all | spencer/src/main/java/com/github/kaeluka/spencer/Main.java | 8559 | package com.github.kaeluka.spencer;
import com.github.kaeluka.spencer.server.TransformerServer;
import org.apache.commons.cli.*;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.URL;
import java.n... | mit |
DIKU-Steiner/ProGAL | src/ProGAL/proteins/beltaStructure/bnb/lowerBounds/CN_ClashLowerBound.java | 575 | package ProGAL.proteins.beltaStructure.bnb.lowerBounds;
import ProGAL.proteins.beltaStructure.bnb.BnBNode;
import ProGAL.proteins.beltaStructure.bnb.BnBSolver;
import ProGAL.proteins.structure.AminoAcidChain;
public class CN_ClashLowerBound implements LowerBound {
private double[] contactNumbers;
public CN_ClashL... | mit |
clxy/BigFileUploadJava | src/main/java/cn/clxy/upload/ApacheHCUploader.java | 3608 | /**
* Copyright (C) 2013 CLXY Studio.
* This content is released under the (Link Goes Here) MIT License.
* http://en.wikipedia.org/wiki/MIT_License
*/
package cn.clxy.upload;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import... | mit |
grzechu92/frogment | app/src/androidTest/java/ch/grze/frogmentexample/FragmentStateTest.java | 5259 | package ch.grze.frogmentexample;
import android.support.test.espresso.ViewInteraction;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import android.test.suitebuilder.annotation.LargeTest;
import android.view.View;
import android.view.ViewGroup;
import android.vie... | mit |
bing-ads-sdk/BingAds-Java-SDK | proxies/com/microsoft/bingads/v12/campaignmanagement/EditorialErrorCollection.java | 4426 |
package com.microsoft.bingads.v12.campaignmanagement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for EditorialErrorCollection complex type.
*
* <p>The... | mit |
RodrigoQuesadaDev/XGen4J | xgen4j/src/test-gen/java/com/rodrigodev/xgen4j/test/integration/bedroom/bed/bugs_infestation/BugsInfestationException.java | 1200 | package com.rodrigodev.xgen4j.test.integration.bedroom.bed.bugs_infestation;
import com.rodrigodev.xgen4j.test.integration.bedroom.bed.BedException;
import com.rodrigodev.xgen4j.test.integration.HouseException;
import com.rodrigodev.xgen4j.test.integration.ErrorCode;
/**
* Autogenerated by XGen4J on January 1, 0001.... | mit |
P0ke55/specbot | src/main/java/net/hypixel/api/reply/KeyReply.java | 1323 | package net.hypixel.api.reply;
import net.hypixel.api.request.RequestType;
import java.util.UUID;
@SuppressWarnings("unused")
public class KeyReply extends AbstractReply {
private Key record;
public Key getRecord() {
return record;
}
@Override
public RequestType getRequestType() {
... | mit |
LousyLynx/Infinity-Storage | src/main/java/infinitystorage/apiimpl/solderer/SoldererRegistry.java | 1599 | package infinitystorage.apiimpl.solderer;
import net.minecraft.item.ItemStack;
import net.minecraftforge.items.IItemHandler;
import infinitystorage.api.solderer.ISoldererRecipe;
import infinitystorage.api.solderer.ISoldererRegistry;
import infinitystorage.api.storage.CompareUtils;
import javax.annotation.Nonnull;
imp... | mit |
patrickneubauer/XMLIntellEdit | xmlintelledit/intelledit/src/main/java/at/ac/tuwien/big/xmlintelledit/intelledit/oclvisit/fixinggenerators/FakeIdentityExpressions.java | 1227 | package at.ac.tuwien.big.xmlintelledit.intelledit.oclvisit.fixinggenerators;
import java.util.Collection;
import org.eclipse.ocl.expressions.OperationCallExp;
import at.ac.tuwien.big.xmlintelledit.intelledit.fixer.FixAttempt;
import at.ac.tuwien.big.xmlintelledit.intelledit.oclvisit.AbstractSelectiveEvaluator;
impor... | mit |
InkApplications/android-monolog | src/main/java/monolog/handler/HandlerResult.java | 626 | /*
* Copyright (c) 2015 Ink Applications, LLC.
* Distributed under the MIT License (http://opensource.org/licenses/MIT)
*/
package monolog.handler;
/**
* Describes how a handler dealt with a record, and whether or not it was
* handled, and whether the logger should continue.
*
* @author Maxwell Vandervelde (Max... | mit |
universal-automata/liblevenshtein-java | src/test/java/com/github/liblevenshtein/assertion/StateAssertions.java | 3217 | package com.github.liblevenshtein.assertion;
import org.assertj.core.api.AbstractAssert;
import com.github.liblevenshtein.transducer.Position;
import com.github.liblevenshtein.transducer.State;
/**
* AssertJ-style assertions for {@link State}.
*/
public class StateAssertions extends AbstractAssert<StateAssertions,... | mit |
idanarye/nisui | h2_store/src/main/java/nisui/h2_store/H2Operations.java | 10081 | package nisui.h2_store;
import java.sql.Array;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import nisui.cor... | mit |
juliocnsouzadev/ocpjp | src/oldcodes/collections/ListIteratorTest.java | 2030 | package oldcodes.collections;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import java.util.ListIterator;
/**
* ListIteratorTest.java -> Testes com ListIterator:
* <p>
* @since 14/04/2014
* @version 1.0
* @author Julio Cesar Nunes de Souza (julio.souza@mobilitasistemas.com.br)
*/... | mit |
nzufelt/java_sample | project_euler_problems/OneTwentySix.java | 5243 | import java.lang.ArrayIndexOutOfBoundsException;
import java.lang.NumberFormatException;
/**
Prompt: The minimum number of cubes to cover every visible face on a cuboid
measuring 3 x 2 x 1 is twenty-two.
If we then add a second layer to this solid it would require forty-six cubes
to cover every visible face, ... | mit |
Azure/azure-sdk-for-java | sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/LocationGetQuotasSamples.java | 632 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.batch;
import com.azure.core.util.Context;
/** Samples for Location GetQuotas. */
public final class LocationGetQuotasSamples {... | mit |
backpaper0/sandbox | karate-demo/src/main/java/com/example/karatedemo/Color.java | 567 | package com.example.karatedemo;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class Color implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
... | mit |
facebook/fresco | imagepipeline/src/main/java/com/facebook/imagepipeline/listener/RequestLoggingListener.java | 7252 | /*
* 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.listener;
import android.os.SystemClock;
import android.util.Pair;
import com.facebook.common... | mit |
AceCode123/ArenaPvP | CompleteArenaPvP/src/me/Anthony/ArenaManager.java | 16666 | package me.Anthony;
import me.Anthony.me.Anthony.SubCommands.BuildUHC;
import org.bukkit.*;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
import org.bukkit.sco... | mit |
CS2103JAN2017-W09-B3/main | src/main/java/seedu/task/logic/parser/ParserUtil.java | 6958 | package seedu.task.logic.parser;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.... | mit |
kcsl/immutability-benchmark | benchmark-applications/reiminfer-oopsla-2012/source/JdbF/src/org/jdbf/engine/mapping/DatabaseMap.java | 4704 | /*
* 18/04/2002 - 21:06:27
*
* $RCSfile: DatabaseMap.java,v $ - JdbF Object Relational mapping system
* Copyright (C) 2002 JDBF Development Team
*
* http://jdbf.sourceforge.net
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public Licens... | mit |
kimxogus/react-native-version-check | packages/react-native-version-check/android/src/main/java/io/xogus/reactnative/versioncheck/RNVersionCheckPackage.java | 891 |
package io.xogus.reactnative.versioncheck;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
im... | mit |
atealxt/work-workspaces | HttpForwardDemo/src_restlet/com/noelios/restlet/util/FormReader.java | 12367 | /**
* Copyright 2005-2008 Noelios Technologies.
*
* The contents of this file are subject to the terms of the following open
* source licenses: LGPL 3.0 or LGPL 2.1 or CDDL 1.0 (the "Licenses"). You can
* select the license that you prefer but you may not use this file except in
* compliance with one of these Li... | mit |
ray6080/JavaPractice | src/main/java/cn/edu/ruc/dbiir/algorithms/LRUCache.java | 1976 | package cn.edu.ruc.dbiir.algorithms;
import java.util.HashMap;
/**
* Created by jelly on 1/24/16.
* LeetCode LRUCache
*/
public class LRUCache {
class CacheNode {
int value;
int key;
CacheNode prev;
CacheNode next;
}
HashMap<Integer, CacheNode> cacheMap = new HashMap<I... | mit |
Adar/dacato | src/main/java/co/ecso/dacato/database/cache/CachedEntityRemover.java | 747 | package co.ecso.dacato.database.cache;
import co.ecso.dacato.database.query.EntityRemover;
import co.ecso.dacato.database.querywrapper.RemoveQuery;
import java.util.concurrent.CompletableFuture;
/**
* CachedEntityRemover.
*
* @author Christian Scharmach (cs@e-cs.co)
* @version $Id:$
* @since 04.10.16
*/
public... | mit |
selvasingh/azure-sdk-for-java | sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/ExpressRouteCircuitPeeringId.java | 1019 | /**
* 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_05_01;
import com.fasterxml.jackso... | mit |
jchaganti/gharonda | server/src/main/java/org/jchlabs/gharonda/domain/pom/dao/NeightbourhoodDAO.java | 400 | package org.jchlabs.gharonda.domain.pom.dao;
import org.hibernate.Session;
import org.jchlabs.gharonda.domain.pom.base.BaseNeightbourhoodDAO;
public class NeightbourhoodDAO extends BaseNeightbourhoodDAO implements
org.jchlabs.gharonda.domain.pom.dao.iface.NeightbourhoodDAO {
public NeightbourhoodDAO() {... | mit |
nacx/sjmvc | src/main/java/org/sjmvc/web/dispatch/path/PathBasedRequestDispatcher.java | 6466 | /**
* Copyright (c) 2010 Ignasi Barrera
*
* 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, pub... | mit |
selvasingh/azure-sdk-for-java | sdk/network/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/network/v2020_06_01/implementation/VirtualHubRouteTableV2sImpl.java | 3311 | /**
* 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_06_01.implementation;
import co... | mit |
georghinkel/ttc2017smartGrids | solutions/ModelJoin/src/main/java/COSEM/InterfaceClasses/impl/M_Bus_diagnosticImpl.java | 765 | /**
*/
package COSEM.InterfaceClasses.impl;
import COSEM.InterfaceClasses.InterfaceClassesPackage;
import COSEM.InterfaceClasses.M_Bus_diagnostic;
import org.eclipse.emf.ecore.EClass;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>MBus diagnostic</b></em>'.
* <!-- end-user-doc -->
... | mit |
Fundynamic/dune2themaker4j | src/main/java/com/fundynamic/d2tm/game/rendering/gui/sidebar/MiniMap.java | 7022 | package com.fundynamic.d2tm.game.rendering.gui.sidebar;
import com.fundynamic.d2tm.game.entities.Entity;
import com.fundynamic.d2tm.game.entities.EntityRepository;
import com.fundynamic.d2tm.game.entities.EntityType;
import com.fundynamic.d2tm.game.entities.Player;
import com.fundynamic.d2tm.game.map.Cell;
import com.... | mit |
canselcik/subsequence | app/internal/Database/TransactionDB.java | 5967 | package internal.database;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import internal.Global;
import internal.rpc.pojo.RawTransaction;
import play.db.DB;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import j... | mit |
munificent/magpie | src/com/stuffwithstuff/magpie/intrinsic/ProcessMethods.java | 1610 | package com.stuffwithstuff.magpie.intrinsic;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.stuffwithstuff.magpie.Def;
import com.stuffwithstuff.magpie.Doc;
impor... | mit |
fccn/PTCRISync | src/main/java/pt/ptcris/utils/ORCIDWorkHelper.java | 13661 | /*
* Copyright (c) 2016, 2017 PTCRIS - FCT|FCCN and others.
* Licensed under MIT License
* http://ptcris.pt
*
* This copyright and license information (including a link to the full license)
* shall be included in its entirety in all copies or substantial portion of
* the software.
*/
package pt.ptcris.utils;
i... | mit |
DanielLuis/springboot-angularjs | src/main/java/br/com/springboot/app/support/ErrorJson.java | 588 | package br.com.springboot.app.support;
import java.util.Map;
public class ErrorJson {
public Integer status;
public String error;
public String message;
public String timeStamp;
public String trace;
public ErrorJson(int status, Map<String, Object> errorAttributes) {
this.status = sta... | mit |
iontorrent/Torrent-Variant-Caller-stable | public/java/src/org/broadinstitute/sting/gatk/walkers/annotator/NBaseCount.java | 2547 | package org.broadinstitute.sting.gatk.walkers.annotator;
import org.broadinstitute.sting.gatk.contexts.AlignmentContext;
import org.broadinstitute.sting.gatk.contexts.ReferenceContext;
import org.broadinstitute.sting.gatk.refdata.RefMetaDataTracker;
import org.broadinstitute.sting.gatk.walkers.annotator.interfaces.Ann... | mit |
mamorum/poml | src/test/java/poml/convert/BasicTest.java | 3813 | package poml.convert;
import org.junit.Test;
import poml.UtCase;
public class BasicTest extends UtCase {
//-> pkg
@Test public void pkg_id2pac() {
poml(
"pkg=com.example:demo:0.0.1:jar"
);
Basic.pkg(poml, xml);
xml(
" <groupId>com.example</groupId>" + nl +
" <artifactId>demo<... | mit |
TPL-Group/TPL-Compiler | src/parser/nodes/NonEmptyFormalsNode.java | 567 | package src.parser.nodes;
import src.parser.*;
public class NonEmptyFormalsNode extends SemanticNode{
@Override
public void setChildren(){
if(TableDrivenParser.semanticStack.peek() instanceof NonEmptyFormalsPrimeNode){
this.takeChildren((NonEmptyFormalsPrimeNode)TableDrivenParser.semanticStack.pop(), thi... | mit |
a64adam/ulti | src/main/java/dto/currentgame/CurrentGameInfo.java | 3222 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 Adam Alyyan
*
* 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, co... | mit |
linkedpipes/uv2etl | src/main/java/com/linkedpipes/etl/convert/uv/configuration/SparqlConstructConfig_V1.java | 2426 | package com.linkedpipes.etl.convert.uv.configuration;
import com.linkedpipes.etl.convert.uv.pipeline.LpPipeline;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import java.util.ArrayList;
import java.util.List;
import org.openrdf.model.IRI;
import org.openrdf.model.Statement;
import org.openrdf.model.ValueF... | mit |
branscha/lib-jsontools | src/test/java/com/sdicons/json/mapper/helper/impl/CharacterMapperTest.java | 2335 | /*******************************************************************************
* Copyright (c) 2006-2013 Bruno Ranschaert
* Released under the MIT License: http://opensource.org/licenses/MIT
* Library "jsontools"
******************************************************************************/
package com.sdicons.j... | mit |
jjhesk/parallaxmotion | jmotion/jparallex/src/main/java/com/jparallex/motion/SensorInterpreter.java | 3677 | package com.jparallex.motion;
import android.content.Context;
import android.hardware.SensorEvent;
import android.view.Surface;
import android.view.WindowManager;
public class SensorInterpreter {
private static final String TAG = SensorInterpreter.class.getName();
/**
* The standardized vectors corresp... | mit |
s-aska/Justaway-for-Android-Original | Justaway/src/main/java/info/justaway/widget/ScaleImageView.java | 9368 | package info.justaway.widget;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.vi... | mit |
Jelmerro/UniCam | src/main/java/com/github/jelmerro/unicam/LoadingDialog.java | 5586 | package com.github.jelmerro.unicam;
import com.github.sarxos.webcam.Webcam;
import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.JDialog;
import javax.swing.JOptionPane;
import javax.swing.JTextArea;
/**
* Dialog displayed when switching panels/settings
*
* @author Jelmerro
*/
public class Loadi... | mit |
Vovas11/courses | src/main/java/com/devproserv/courses/jooq/tables/Courses.java | 4839 | /*
* This file is generated by jOOQ.
*/
package com.devproserv.courses.jooq.tables;
import com.devproserv.courses.jooq.Coursedb;
import com.devproserv.courses.jooq.Indexes;
import com.devproserv.courses.jooq.Keys;
import com.devproserv.courses.jooq.tables.records.CoursesRecord;
import java.util.Arrays;
import java... | mit |
Codealike/Codealike-Android | app/src/main/java/com/codealike/android/activities/util/SystemUiHiderHoneycomb.java | 4996 | package com.codealike.android.activities.util;
import android.annotation.TargetApi;
import android.app.Activity;
import android.os.Build;
import android.view.View;
import android.view.WindowManager;
/**
* An API 11+ implementation of {@link SystemUiHider}. Uses APIs available in
* Honeycomb and later (specifically ... | mit |
ai-ku/langvis | src/edu/cmu/cs/stage3/alice/core/visualization/ListOfModelsVisualization.java | 140 | package edu.cmu.cs.stage3.alice.core.visualization;
public class ListOfModelsVisualization extends CollectionOfModelsVisualization {
}
| mit |
guillaume-gouchon/dungeonhero | android/app/src/main/java/com/glevel/dungeonhero/models/dungeons/decorations/Stairs.java | 1260 | package com.glevel.dungeonhero.models.dungeons.decorations;
import com.glevel.dungeonhero.game.graphics.StairsSprite;
import com.glevel.dungeonhero.models.dungeons.Tile;
import org.andengine.opengl.vbo.VertexBufferObjectManager;
/**
* Created by guillaume on 10/16/14.
*/
public class Stairs extends Decoration {
... | mit |
tilastokeskus/Matertis | Matertis/src/main/java/com/github/tilastokeskus/matertis/core/Game.java | 6720 |
package com.github.tilastokeskus.matertis.core;
import com.github.tilastokeskus.matertis.audio.AudioManager;
import com.github.tilastokeskus.matertis.util.TetrominoFactory;
/**
* Provides the necessary logic to play the game.
* <p>
* This class holds information of the game's state and provides basic
* functiona... | mit |
Harha/LD32 | src/to/us/harha/ld32/core/util/ResourceUtils.java | 2331 | package to.us.harha.ld32.core.util;
import to.us.harha.ld32.gfx.Font;
import to.us.harha.ld32.gfx.Sprite;
import to.us.harha.ld32.gfx.SpriteSheet;
public class ResourceUtils
{
public static final LogUtils g_logger = new LogUtils(ResourceUtils.class.getName());
// Spritesheets
public static SpriteSheet g_sh_me... | mit |
pphdsny/ArithmeticTest | src/pp/arithmetic/leetcode/_39_combinationSum.java | 3236 | package pp.arithmetic.leetcode;
import pp.arithmetic.Util;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* Created by wangpeng on 2019-05-20.
* 39. 组合总和
* <p>
* 给定一个无重复元素的数组 candidates 和一个目标数 target ,找出 candidates 中所有可以使数字和为 target 的组合。
* <p>
* ca... | mit |
jaamal/overclocking | sources/Trees/src/cartesianTree/heapKeyResolvers/RandomHeapKeyResolverFactory.java | 479 | package cartesianTree.heapKeyResolvers;
public class RandomHeapKeyResolverFactory implements IHeapKeyResolverFactory
{
private IRandomGeneratorFactory randomGeneratorFactory;
public RandomHeapKeyResolverFactory(IRandomGeneratorFactory randomGeneratorFactory)
{
this.randomGeneratorFactory =... | mit |
flyzsd/java-code-snippets | ibm.jdk8/src/java/awt/print/PageFormat.java | 10396 | /*===========================================================================
* Licensed Materials - Property of IBM
* "Restricted Materials of IBM"
*
* IBM SDK, Java(tm) Technology Edition, v8
* (C) Copyright IBM Corp. 1997, 2013. All Rights Reserved
*
* US Government Users Restricted Rights - Use, duplication... | mit |
schophil/census | server/src/main/java/lb/census/record/metrics/SourceIpCollector.java | 400 | package lb.census.record.metrics;
import lb.census.record.log.LogRecord;
import java.util.HashSet;
/**
*
*/
public class SourceIpCollector implements MetricsCollector {
private HashSet<String> ips = new HashSet<>();
@Override
public void add(LogRecord logRecord) {
ips.add(logRecord.getSource... | mit |
yuweijun/learning-programming | quartz/src/main/java/com/example/quartz/example7/DumbInterruptableJob.java | 3495 | /*
* All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* http://www.apache.org/license... | mit |