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 in.showoffs.mobidb.fragments;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.facebook.drawee.view.S... | ShowOffS/mobidb | app/src/main/java/in/showoffs/mobidb/fragments/MovieDetailsFragment.java | Java | mit | 1,642 |
package br.com.controlefinanceiro.producer;
import java.io.Serializable;
import javax.enterprise.context.RequestScoped;
import javax.enterprise.inject.Disposes;
import javax.enterprise.inject.Produces;
import org.mongodb.morphia.Datastore;
import org.mongodb.morphia.Morphia;
import com.mongodb.MongoClient;
import c... | JavesonYehudi/controle-financeiro-ws | src/main/java/br/com/controlefinanceiro/producer/MongoDBProducer.java | Java | mit | 1,138 |
package io.cucumber.cucumberexpressions;
import java.util.List;
import static java.util.Collections.singletonList;
public abstract class AbstractTransform<T> implements Transform<T> {
private final String typeName;
private final Class<T> type;
private final List<String> captureGroupRegexps;
public ... | siwood/cucumber | cucumber-expressions/java/src/main/java/io/cucumber/cucumberexpressions/AbstractTransform.java | Java | mit | 955 |
package br.com.een_gmb_gar.unisc_rides;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
import static br.com.een_gmb_gar.unisc_rides.WebServiceInterface.server;
import static br.com.een_gmb_gar.unisc_rides.WebServiceInter... | GuiRitter/UNISC_Rides | unisc_rides/java/br/com/een_gmb_gar/unisc_rides/WebServiceInterfaceInitializer.java | Java | mit | 1,030 |
package com.github.jinsen47;
import com.github.jinsen47.model.TreeNode;
import com.github.jinsen47.utils.ArrayUtils;
import java.util.ArrayList;
import java.util.Stack;
/**
* Created by Jinsen on 16/9/12.
*/
public class FindPath {
public static ArrayList<ArrayList<Integer>> findPath(TreeNode root,int target)... | jinsen47/Code4Work | src/com/github/jinsen47/FindPath.java | Java | mit | 1,620 |
package io.reflectoring.coderadar.useradministration.port.driver.login;
public interface LoginUserUseCase {
/**
* Logs a user in to coderadar.
*
* @param command The login command containing credentials.
* @return The response containing access tokens.
*/
LoginUserResponse login(LoginUserCommand co... | reflectoring/coderadar | coderadar-core/src/main/java/io/reflectoring/coderadar/useradministration/port/driver/login/LoginUserUseCase.java | Java | mit | 330 |
package br.com.caelum.goodbuy.controller;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.notNullValue;
import static org.hamcrest.Matchers.startsWith;
import java.io.File;
import br.com.caelum.goodbuy.imagens.Imagens;
import br.com.caelum.goodbuy.modelo.Produto;
import br.com.caelum.vr... | heliomsolivas/fj-28-exercicios-completo | src/br/com/caelum/goodbuy/controller/ImagensController.java | Java | mit | 2,009 |
/*
* Copyright (C) 2012-2014 Soomla 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 ... | 0359xiaodong/android-store | SoomlaAndroidStore/src/com/soomla/store/data/NonConsumableItemsStorage.java | Java | mit | 2,718 |
package ru.magtu.healthpassport;
import android.content.Context;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
import ru.magtu.healthpassport.api.Api;
import ru.magtu.healthpassport.data.HttpRegistrationrepository;
import ru.magtu.healthpassport.data.HttpWorksheetRepository;
import ru.... | MagtuHealthPasport/android | app/src/main/java/ru/magtu/healthpassport/AppModule.java | Java | mit | 1,048 |
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2000, 2012 Oracle and/or its affiliates. All rights reserved.
*
*/
package com.sleepycat.bind.tuple;
import java.math.BigDecimal;
import java.math.BigInteger;
import com.sleepycat.util.FastOutputStream;
import com.sleepycat.util.Packe... | EvilMcJerkface/jessy | lib/berkeleydb_core/src/com/sleepycat/bind/tuple/TupleOutput.java | Java | mit | 24,458 |
package cn.updev.Users.NotificationPush;
import cn.updev.Users.Static.EnumeRule.NotificationStatus;
import cn.updev.Users.Static.EnumeRule.NotificationType;
import cn.updev.Users.Static.UserOrGroupDAO.UserOrGroupDelete;
import cn.updev.Users.Static.UserOrGroupDAO.UserOrGroupSave;
import cn.updev.Users.Static.UserOrGro... | Coderhypo/SpongeTime | src/cn/updev/Users/NotificationPush/NotificationInfo.java | Java | mit | 3,034 |
package vos;
import java.util.ArrayList;
import vos.Funcion;
public class Lugar
{
private int id;
private String nombre;
private boolean abierto;
private int capacidadVip;
private int capacidadPlatea;
private int capacidadGeneral;
private boolean incapacitados;
private int horaApertura;
pr... | jcsanchez16/Sistrans-2017 | src/vos/Lugar.java | Java | mit | 3,556 |
package com.iancaffey.x86.io.sse3;
/**
* SSE3AbsoluteValueVisitor
* <p>
* PABSB Computes the absolute value of each signed byte data element.
* PABSW Computes the absolute value of each signed 16-bit data element.
* PABSD Computes the absolute value of each signed 32-bit data element.
*
* @author Ian Caffey
* ... | iitc/x86 | src/main/java/com/iancaffey/x86/io/sse3/SSE3AbsoluteValueVisitor.java | Java | mit | 522 |
package org.oauthsimple.http;
import org.oauthsimple.http.Parameter;
import org.oauthsimple.http.Verb;
import org.oauthsimple.model.OAuthConstants;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* The representation of an OAuth HttpRequest.
*
* Adds OAuth-r... | mcxiaoke/oauth-simple | src/main/java/org/oauthsimple/http/OAuthRequest.java | Java | mit | 2,070 |
/**
* 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;
import com.fasterxml.jackso... | selvasingh/azure-sdk-for-java | sdk/network/mgmt-v2020_04_01/src/main/java/com/microsoft/azure/management/network/v2020_04_01/P2SConnectionConfiguration.java | Java | mit | 4,335 |
package net.guerra24.infinity.client.sound.soundsystem.codecs;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.ShortBuffer;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;... | Guerra24/Infinity | src/main/java/net/guerra24/infinity/client/sound/soundsystem/codecs/CodecJOgg.java | Java | mit | 21,302 |
package org.samsara.framework.util;
/**
* Samsara Common Library
* Class Utils Class
*
* @author sczyh30
*/
public class ClassUtils {
}
| sczyh30/samsara-framework | samsara-core/src/main/java/org/samsara/framework/util/ClassUtils.java | Java | mit | 145 |
/*
* 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... | SpongePowered/SpongeCommon | src/main/java/org/spongepowered/common/world/extent/SoftBufferExtentViewDownsize.java | Java | mit | 23,508 |
package org.micro.neural.config.store;
import com.alibaba.fastjson.JSON;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import lombok.extern.slf4j.Slf4j;
import org.micro.neural.Neural;
import org.micro.neural.common.Constants;
import org.micro.neural.common.URL;
import static org.micro.neural.common.... | yu120/neural | neural-core/src/main/java/org/micro/neural/config/store/StorePool.java | Java | mit | 12,735 |
// This file was generated by jmlunit on Mon Nov 09 10:47:01 GMT 2009.
package election.tally;
/** Supply test data for the JML and JUnit based testing of
* CountConfiguration.
*
* <p>Test data is supplied by overriding methods in this class. See
* the JML documentation and the comments below about how to do... | GaloisInc/Votail | jmlunit_src/election/tally/CountConfiguration_JML_TestData.java | Java | mit | 4,600 |
package fixtures.lro;
import com.microsoft.rest.RestClient;
import fixtures.lro.implementation.AutoRestLongRunningOperationTestServiceImpl;
import fixtures.lro.models.Product;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
public class LRORetrysTests {
private static AutoRestLongRun... | matthchr/autorest | src/generator/AutoRest.Java.Azure.Tests/src/test/java/fixtures/lro/LRORetrysTests.java | Java | mit | 2,313 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Package containing the classes for MySqlManagementClient. The Microsoft Azure management API provides create, read,
* update, and delete functionality for ... | Azure/azure-sdk-for-java | sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/package-info.java | Java | mit | 516 |
import java.util.LinkedList;
import java.util.List;
public class LetterCombinationsPhoneNumber {
static String [] code = {"","abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"};
static public List<String> letterCombinations(String digits) {
List<String> res = new LinkedList<String>();
generator... | yi-juchung/codingPractice | src/LetterCombinationsPhoneNumber.java | Java | mit | 1,034 |
package com.shippo.model;
import java.util.List;
import com.shippo.net.APIResource;
public abstract class ShippoColllectionAPIResource<T> extends APIResource {
List<T> data;
Integer totalCount;
Boolean hasMore;
String url;
/** 3/2014: Legacy (from before newstyle pagination API) */
Integer co... | goshippo/shippo-java-client | src/main/java/com/shippo/model/ShippoColllectionAPIResource.java | Java | mit | 1,167 |
package utils;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
public class TokenManager {
private static String discordToken;
private static String xivapiToken;
public static String getDiscordTok() {
if (discordToken != null && discordToken.length() > 0)
... | Makar8000/Makaroni | src/main/java/utils/TokenManager.java | Java | mit | 960 |
/*
* This file is part of VIB (Virtual Interactive Behaviour).
*/
package vib.core.util.environment;
/**
*
* @author Pierre Philippe
* @author Andre-Marie Pez
*/
public class NodeEvent {
public static final int MODIF_NONE = 0x000;
public static final int MODIF_POSITION = 0x001;
p... | billhj/Etoile-java | Util/src/vib/core/util/environment/NodeEvent.java | Java | mit | 991 |
package gcommon.objects;
/**
* Provide a common mechanisms for POJOs, such as {@link Object#equals(Object)} and {@link Object#toString()}.
*
* @author Guy Nir
* @since 10/10/2012
*/
public abstract class ObjectBase implements ObjectBagAware {
/**
* Check equality between two instances. The equality is b... | guynir/gcommon | src/main/java/gcommon/objects/ObjectBase.java | Java | mit | 1,313 |
package com.base.game.entity.eventEntity.NPC;
import java.awt.Rectangle;
import com.base.game.Animation;
import com.base.game.Assets;
import com.base.game.Handler;
public class Girl extends NPC
{
public Girl(Handler handler, float x, float y, int layer)
{
super(handler, x, y, layer, 60, 60);
setBounds(new Rec... | NikHammon/GameProject | src/main/java/com/base/game/entity/eventEntity/NPC/Girl.java | Java | mit | 634 |
package io.asfjava.ui.core.schema;
import com.fasterxml.jackson.databind.BeanProperty;
import com.fasterxml.jackson.module.jsonSchema.types.IntegerSchema;
class CustomIntegerSchema extends IntegerSchema {
@Override
public void enrichWithBeanProperty(BeanProperty beanProperty) {
super.enrichWithBeanProperty(beanPr... | JsonSchema-JavaUI/sf-java-ui | src/main/java/io/asfjava/ui/core/schema/CustomIntegerSchema.java | Java | mit | 392 |
package org.blendee.assist;
import org.blendee.internal.U;
/**
* {@link Row} 一件と同一であり、それを参照する {@link Row} も併せ持ちます。
* @author 千葉 哲嗣
* @param <O> One 一対多の一側の型
* @param <M> Many 一対多の多側の型連鎖
*/
public class One<O extends Row, M> {
private final O oneself;
private final M many;
One(O oneself, M many) {
this.on... | blendee/blendee | src/main/java/org/blendee/assist/One.java | Java | mit | 885 |
package com.itdotaer.access.pojo;
/**
* Created by jt_hu on 2017/1/3.
*/
public class PhoneNumber {
private String countryCode;
private String number;
public PhoneNumber(){};
public PhoneNumber(String countryCode, String number){
this.countryCode = countryCode;
this.number = number;... | Itdotaer/higher-practice | data-access/src/main/java/com/itdotaer/access/pojo/PhoneNumber.java | Java | mit | 737 |
package com.prolificinteractive.materialcalendarview.sample;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.NavigationView;
import android.support.v4.view.GravityCom... | gerardrosell/CapgirApp | sample/src/main/java/com/prolificinteractive/materialcalendarview/sample/QuiSomActivity.java | Java | mit | 3,783 |
/**
* MIT License
*
* Copyright (c) 2017 Vladimir Mikhaylov
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mo... | BeYkeRYkt/Bulls-and-Cows | BullsAndCows/src/ru/beykerykt/bullsandcows/swing/GUi.java | Java | mit | 12,751 |
package org.slashgames.tournament.auth.modelcontrollers;
import java.util.Date;
import java.util.Random;
import org.slashgames.tournament.auth.models.Token;
import org.slashgames.tournament.auth.models.Token.TokenType;
import org.slashgames.tournament.auth.models.User;
import play.Logger;
import play.db.ebean.Model;... | npruehs/slash-tournament | app/org/slashgames/tournament/auth/modelcontrollers/TokenModelController.java | Java | mit | 1,978 |
/**
* 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.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
... | hovsepm/AutoRest | src/generator/AutoRest.Java.Azure.Fluent.Tests/src/main/java/fixtures/lro/LROsPutAsyncNoRetrycanceledHeaders.java | Java | mit | 2,000 |
package com.dankeroni.dankbot.json.twitch.api.chat.emoticons;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import javax.annotation.Generated;
@Generated("org.jsonschema2pojo")
public class Image {
@SerializedName("width")
@Expose
public int width;
@Se... | dankeroni/dankbot | src/main/java/com/dankeroni/dankbot/json/twitch/api/chat/emoticons/Image.java | Java | mit | 518 |
package physics;
/****************************************************************************
* Copyright (C) 1999-2014 by the Massachusetts Institute of Technology,
* Cambridge, Massachusetts.
*
* All Rights Reserved
*
* Permission to use, copy, modify, and distribute... | spark008/mit6005-pingball | third_party/physics/Vect.java | Java | mit | 9,938 |
package studio.jfcoder.flake;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import java.util.*;
import static org.junit.Assert.assertEquals;
/**
* test case of the FlakeIdGen class.
* Created by yejianfei on 2017/3/8.
*/
public class FlakeIdGenTest {
private static final long... | yejianfei/flake-id | src/test/java/studio/jfcoder/flake/FlakeIdGenTest.java | Java | mit | 1,402 |
package es.softwareprocess.fillercreep;
public interface Player {
public int getX();
public int getY();
// Get the STUFF of the player
public FundamentalStuff stuff();
public String getName();
public AI getAI();
}
| djphan/c301-LabRepo | c301FillerCreep/src/es/softwareprocess/fillercreep/Player.java | Java | mit | 243 |
package jsrl.gui;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
imp... | 311labs/SRL | java/src/jsrl/gui/CpuMonitor.java | Java | mit | 8,328 |
package us.corenetwork.limbo.io;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.bukkit.OfflinePlayer;
import org.bukkit.entity.Player;
import us.corenetwork.limbo.Logs;
import us.corenetwork.limbo.PrisonerStatus;
... | CoreNetwork/Limbo | src/main/java/us/corenetwork/limbo/io/Prisoners.java | Java | mit | 1,981 |
package org.vitrivr.cineast.core.decode.video;
import java.io.IOException;
import java.nio.ByteBuffer;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.jcodec.api.FrameGrab.MediaInfo;
import org.jcodec.api.JCodecException;
import org.jcodec.api.UnsupportedFormatException;... | silvanheller/cineast | src/org/vitrivr/cineast/core/decode/video/JcodecFrameGrab.java | Java | mit | 8,950 |
package madgik.exareme.master.queryProcessor.HBP.Exceptions;
public class ComposerException extends Exception {
public ComposerException(String message) {
super(message);
}
}
| madgik/exareme | Exareme-Docker/src/exareme/exareme-master/src/main/java/madgik/exareme/master/queryProcessor/HBP/Exceptions/ComposerException.java | Java | mit | 192 |
/**
* The MIT License (MIT)
*
* Copyright (c) 2014-2022 <mickael.jeanroy@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation ... | mjeanroy/junit-servers | junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/reflect/Reflections.java | Java | mit | 6,643 |
package poolsync;
public abstract class PoolInput {
public abstract Object nextInput();
public abstract boolean hasNextInput();
}
| kiansheik/ArduEmu | trunk/src/poolsync/PoolInput.java | Java | mit | 139 |
/**
*
*/
package com.winterwell.nlp.io;
import java.util.Locale;
import com.winterwell.utils.containers.AbstractIterator;
/**
* @author Joe Halliwell <joe@winterwell.com>
*
*/
public class LowercaseTokenStream extends ATokenStream {
public LowercaseTokenStream(ITokenStream base) {
super(base);
}
/**
... | sodash/open-code | winterwell.nlp/src/com/winterwell/nlp/io/LowercaseTokenStream.java | Java | mit | 824 |
/*
* The MIT License
*
* Copyright 2018 Martin van Zijl.
*
* 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,... | kohsuke/github-api | src/main/java/org/kohsuke/github/GHProject.java | Java | mit | 8,403 |
package cn.sharesdk.demo.ui;
import android.os.Bundle;
//import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
public abstract class BaseFragment extends Fragment {
private View view = null;
publi... | MobClub/ShareSDK-for-Android | SampleFresh/app/src/main/java/cn/sharesdk/demo/ui/BaseFragment.java | Java | mit | 770 |
module LeftLeaningRedBlackTree {
} | cshung/MiscLab | LeftLeaningRedBlackTree/src/module-info.java | Java | mit | 34 |
package com.petremoto.adapter;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.petremoto.R;
import ... | UFCGProjects/petremoto-app | src/com/petremoto/adapter/DispenserAdapter.java | Java | mit | 4,056 |
package fi.seco.collections.collection.primitive;
import com.carrotsearch.hppc.cursors.LongCursor;
import com.carrotsearch.hppc.predicates.LongPredicate;
import com.carrotsearch.hppc.procedures.LongProcedure;
import fi.seco.collections.iterator.AIterableIterator;
import fi.seco.collections.iterator.IIterableIterator;... | jiemakel/seco-collections | src/main/java/fi/seco/collections/collection/primitive/ALongBinaryHeap.java | Java | mit | 4,180 |
/*
* The MIT License
*
* Copyright 2015 Alexander Nyrkov.
*
* 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... | nyrkovalex/migrate.me | src/test/java/com/github/nyrkovalex/migrate/me/DatabaseTest.java | Java | mit | 2,534 |
/************************************************************
* Copyright (c) 2013 Philipp Sommersguter, Julian Tropper *
* *
* See the file LICENCE.txt for copying permission. *
***********************************************************/
packa... | satanko-com/AllGrade | WebAllGrade/src/main/java/com/satanko/weballgrade/data/dao/GradeLogDAO.java | Java | mit | 2,299 |
package net.minecraft.world.gen.feature;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.BlockVine;
import net.minecraft.block.material.Material;
import net.minecraft.init.Blocks;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumFacing;
import net.minecraft.world.... | Hexeption/Youtube-Hacked-Client-1.8 | minecraft/net/minecraft/world/gen/feature/WorldGenTrees.java | Java | mit | 11,071 |
package loc.filter.filters.aggregate;
import loc.filter.*;
import java.io.IOException;
import java.nio.file.Path;
import java.util.Arrays;
public class And extends AggregateFilter {
private static final char __prefix = '&';
private static final char __open_parenthesis = '(';
private static final char __close_pare... | RoyPy/15201-bogush | LoC/src/loc/filter/filters/aggregate/And.java | Java | mit | 1,099 |
package com.gmurru.bleframework;
import android.content.Context;
import androidx.test.InstrumentationRegistry;
import androidx.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
... | giomurru/ble-framework | AndroidPlugin/bleframework/src/androidTest/java/com/gmurru/bleframework/ExampleInstrumentedTest.java | Java | mit | 722 |
package adverth.yahoo;
import static org.junit.Assert.*;
import java.math.BigDecimal;
import java.util.List;
import org.junit.Test;
import adverth.core.MAType;
import adverth.core.TimeFrame;
public class YahooMAProviderTest {
@Test
public void expected_values() {
YahooMAProvider provider = new YahooMAProvider... | sixro/adverth | filters-over-yahoo/src/test/java/adverth/yahoo/YahooMAProviderTest.java | Java | mit | 495 |
/**
* Copyright 2009, 2010 The Regents of the University of California
* Licensed under the Educational Community 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.osedu.org/licenses/ECL-2.0
*
* ... | kaliatech/template-java-spring-webapp | workspace_java/myproj-shared-web-lib/src/main/java/com/mycompany/myproj/shared/util/web/filters/JsonpFilter.java | Java | mit | 8,006 |
/*
* Abora-Gold
* Part of the Abora hypertext project: http://www.abora.org
* Copyright 2003, 2005 David G Jones
*
* Translated from Udanax-Gold source code: http://www.udanax.com
* Copyright 1979-1999 Udanax.com. All rights reserved
*/
package info.dgjones.abora.gold.spaces.basic;
import info.dgjones.abora.g... | jonesd/udanax-gold2java | abora-gold/src/generated-sources/translator/info/dgjones/abora/gold/spaces/basic/ReverseOrder.java | Java | mit | 4,823 |
/*
* $Id: CollectionTest.java 121 2012-01-22 01:40:14Z andre@naef.com $
* See LICENSE.txt for license terms.
*/
package com.naef.jnlua.test;
import com.naef.jnlua.LuaState;
import com.naef.jnlua.LuaTable;
import com.naef.jnlua.LuaType;
import com.naef.jnlua.util.AbstractTableMap;
import org.junit.Test;
import jav... | hyee/JNLuaJIT | src/test/java/com/naef/jnlua/test/CollectionTest.java | Java | mit | 6,329 |
/*
* 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... | a64adam/ulti | src/main/java/dto/summoner/RunePage.java | Java | mit | 1,559 |
package fruit.g5;
import java.util.*;
import java.io.*;
public class Player extends fruit.sim.Player
{
int nplayers, index, choice = -1;
int[] pref;
int[][] choicelist;
boolean createLog = false; // Toggle while debugging
PrintWriter outfile;
public void init(int nplayers, int[] pref)
{
this.np... | rymo4/fruitsalad | fruit/g5/Player.java | Java | mit | 2,298 |
package com.simple.app.async.todo.service;
import com.github.pgasync.Db;
import com.github.pgasync.Row;
import com.simple.app.async.todo.domain.Todo;
import rx.Observable;
import java.sql.Timestamp;
import java.util.Arrays;
import java.util.List;
import java.util.function.Function;
import static java.util.Arrays.asL... | mauriciocc/tcc | akka/src/main/java/com/simple/app/async/todo/service/TodoService.java | Java | mit | 1,975 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.resourcegraph.implementation;
import com.azure.resourcemanager.resourcegraph.fluent.models.QueryResponseInner;
import com.azure.... | Azure/azure-sdk-for-java | sdk/resourcegraph/azure-resourcemanager-resourcegraph/src/main/java/com/azure/resourcemanager/resourcegraph/implementation/QueryResponseImpl.java | Java | mit | 1,895 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.data.cosmos.internal.routing;
class UInt128 {
long low;
long high;
UInt128(long x, long y) {
this.low = x;
this.high = y;
}
}
| navalev/azure-sdk-for-java | sdk/cosmos/microsoft-azure-cosmos/src/main/java/com/azure/data/cosmos/internal/routing/UInt128.java | Java | mit | 275 |
class BuyStock{
public int maxProfit(int[] prices) {
int result = 0;
for(int i = 0; i < prices.length; i++){
int begin = prices[i];
int end = 0;
for(int j = i + 1; j < prices.length; j++){
if(prices[j] > begin){
end = Math.max(... | Greedylightning/LeetCode_Second | Array/BuyStock.java | Java | mit | 461 |
package tw.soleil.util;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.SignatureException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Formatter;
import java.util.List;
import java.util.Locale;
im... | soleiltw/qrcode-android | qRCodeReaderTest/src/main/java/tw/soleil/util/Utils.java | Java | mit | 2,548 |
package org.amv.highmobility.cryptotool;
import java.util.List;
import java.util.Optional;
public interface ProcessResult {
boolean hasErrors();
List<String> getStdoutLines();
List<String> getStderrLines();
Optional<Throwable> getException();
}
| amvnetworks/amv-highmobility-cryptotool-wrapper | src/main/java/org/amv/highmobility/cryptotool/ProcessResult.java | Java | mit | 266 |
/**
* HatateHoutyouAlarm
*
* Copyright (c) 2014 @inujini_ (https://twitter.com/inujini_)
*
* This software is released under the MIT License.
* http://opensource.org/licenses/mit-license.php
*/
package inujini_.hatate;
import inujini_.hatate.preference.TimePickerPreference;
import inujini_.hatate.sqlite.dao.St... | tumbling-dice/Hatate | src/inujini_/hatate/MainActivity.java | Java | mit | 4,252 |
package com.danielkueffer.filehosting.desktop.service;
import com.danielkueffer.filehosting.desktop.repository.pojos.Activity;
import com.danielkueffer.filehosting.desktop.repository.pojos.User;
import javafx.collections.ObservableList;
/**
* The file service
*
* @author dkueffer
*
*/
public interface FileSer... | danielkueffer/filehosting-tool-desktop-client | src/com/danielkueffer/filehosting/desktop/service/FileService.java | Java | mit | 459 |
package main.both.components;
public class PlayerForDraw extends Player{
}
| G43riko/Java | Bomber/src/main/both/components/PlayerForDraw.java | Java | mit | 82 |
package tech.devcodetest.ecommerce.category;
import java.util.ArrayList;
import java.util.Collection;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotat... | zhaoguolee/ecommerce | ecommerce-server/src/main/java/tech/devcodetest/ecommerce/category/CategoryController.java | Java | mit | 875 |
package com.musicbubble.model;
import javax.persistence.*;
/**
* Created by happyfarmer on 12/22/2016.
*/
@Entity
@Table(name = "taste", schema = "db_03", catalog = "")
public class TasteEntity {
private int userId;
private String language;
private String style;
@Id
@Column(name = "user_id", nu... | Everstar/MusicRadio | source-backend/MusicBubble/src/main/java/com/musicbubble/model/TasteEntity.java | Java | mit | 1,624 |
package org.cyclops.integrateddynamics.capability.partcontainer;
import com.google.common.base.Function;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.CompoundNBT;
import net.... | CyclopsMC/IntegratedDynamics | src/main/java/org/cyclops/integrateddynamics/capability/partcontainer/PartContainerDefault.java | Java | mit | 10,348 |
package com.rockyniu.stickers.util;
import android.app.Activity;
import android.content.res.Resources;
import android.widget.Toast;
import com.rockyniu.stickers.R;
public class ToastHelper {
/**
* Shows an toast message with the given message.
*
* @param activity
* activity
* @param message
... | RockyNiu/RockStickers | app/src/main/java/com/rockyniu/stickers/util/ToastHelper.java | Java | mit | 1,507 |
package com.wql.biotime;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Date;
/**
* @author wuqinglong
* @date 2015年4月10日 下午2:15:17
*/
public class TimeServer {
public s... | hellowql/NioStudy | NioStudy/src/com/wql/biotime/TimeServer.java | Java | mit | 1,731 |
package com.gusfot.pray.model;
import java.util.Date;
public class User {
/**
* This field was generated by MyBatis Generator. This field corresponds to the database column user.user_id
* @mbggenerated Fri Jul 08 18:41:36 KST 2016
*/
private Integer userId;
/**
* This field was generated by MyBatis Gene... | gusfot/pray-together | prayer/src/main/java/com/gusfot/pray/model/User.java | Java | mit | 4,514 |
package am.iunetworks.training.sudoku.bdd.steps;
import am.iunetworks.training.sudoku.bdd.context.WebClientContext;
import org.jbehave.core.annotations.*;
public class BeforeAndAfterSteps {
private WebClientContext ctx;
public BeforeAndAfterSteps(WebClientContext ctx){
this.ctx = ctx;
}
@Be... | iunetworks/training1-sudoku | sudoku-mw/src/test/java/am/iunetworks/training/sudoku/bdd/steps/BeforeAndAfterSteps.java | Java | mit | 887 |
package benchmark.caching;
import benchmark.BenchmarkContext;
import benchmark.BenchmarkQuery;
/**
*
* @author Dimitar Misev <misev@rasdaman.com>
*/
public class CachingBenchmarkContext extends BenchmarkContext {
private static final int REPEAT_QUERIES_ONCE = 1;
protected long cacheSize;
... | adbms-benchmark/storage | src/benchmark/caching/CachingBenchmarkContext.java | Java | mit | 1,130 |
package com.tyust.dao;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.jdbc.support.JdbcUtils;
import com.alibaba.fastjson.JSONException;
import com.alibaba.fastjson.JSONObject;
/**
* <B>系统名称:</B>... | craware/webapp-tyust | tyust-com/src/main/java/com/tyust/dao/JsonRowMapper.java | Java | mit | 1,396 |
package org.example.seed.domain;
import lombok.Getter;
import lombok.Setter;
import org.example.seed.catalog.TelephoneType;
import org.example.seed.group.chef.ChefUpdateGroup;
import org.example.seed.group.client.ClientUpdateGroup;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;... | rpinaa/jee-architecture-spring-boot-entity | src/main/java/org/example/seed/domain/Telephone.java | Java | mit | 1,044 |
package com.custompicker;
import com.facebook.react.ReactActivity;
public class MainActivity extends ReactActivity {
/**
* Returns the name of the main component registered from JavaScript.
* This is used to schedule rendering of the component.
*/
@Override
protected String getMainComponen... | thegamenicorus/react-native-phone-input | examples/CustomPicker/android/app/src/main/java/com/custompicker/MainActivity.java | Java | mit | 369 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.spring.autoconfigure.jms;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
public class ConnectionStringResolverTest {
@Test
public void testConnectionStringResolver()... | Azure/azure-sdk-for-java | sdk/spring/azure-spring-boot/src/test/java/com/azure/spring/autoconfigure/jms/ConnectionStringResolverTest.java | Java | mit | 905 |
package eu.bcvsolutions.idm.core.model.event.processor.role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Description;
import org.springframework.stereotype.Component;
import org.springframework.util.Assert;
import com.google.common.base.Strings;
import ... | bcvsolutions/CzechIdMng | Realization/backend/core/core-impl/src/main/java/eu/bcvsolutions/idm/core/model/event/processor/role/RoleRequestApprovalProcessor.java | Java | mit | 2,565 |
/*
* 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 model;
import java.util.Date;
/**
*
* @author alunofavip
*/
public class Venda {
private int codigo;
private stat... | walison17/estrutura-dados | Aula04/src/model/Venda.java | Java | mit | 1,610 |
package quickfix;
import static edu.umd.cs.findbugs.plugin.eclipse.quickfix.util.ASTUtil.addStaticImports;
import static edu.umd.cs.findbugs.plugin.eclipse.quickfix.util.ASTUtil.getASTNode;
import java.util.List;
import edu.umd.cs.findbugs.BugInstance;
import edu.umd.cs.findbugs.plugin.eclipse.quickfix.BugResolution... | kjlubick/fb-contrib-eclipse-quick-fixes | src/quickfix/UseAssertEqualsResolution.java | Java | mit | 5,551 |
package com.tazine.base.classes;
/**
* Class 相关工具
*
* @author frank
* @date 2017/12/15
*/
public class ClassUtils {
static {
System.out.println("This is ClassUtils");
}
}
| BookFrank/CodePlay | codeplay-base/src/main/java/com/tazine/base/classes/ClassUtils.java | Java | mit | 201 |
package br.com.jpttrindade.tagview;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.graphics.Typeface;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.util.DisplayMetrics;
import android.util.T... | jpttrindade/TagView | tagview/src/main/java/br/com/jpttrindade/tagview/TagViewAdapter.java | Java | mit | 7,996 |
//
// 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: 2013.10.11 at 12:49... | r-giskard-reventlov/db-feature-diff | src/main/java/org/rgiskard/script_build/jaxbentities/package-info.java | Java | mit | 537 |
package com.nkwebapps.shipit.placer;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import com.nkwebapps.shipit.model.ShippedItem;
import com.nkwebapps.shipit.model.Shipping;
import com.nkwebapps.shipit.model.StorageItem;
import com.nkwebapps.shipit.model.Transporter;
import com.nkwebapps.shipi... | nazaryan/ShipIt | src/main/java/com/nkwebapps/shipit/placer/ShippingManager.java | Java | mit | 2,386 |
package com.stewsters.test.noise;
import com.stewsters.util.noise.OpenSimplexNoise;
import org.junit.Test;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
public class OpenSimplexNoiseTest {
private static final int WIDTH = 512;
private stat... | stewsters/stewsters-util | src/test/java/com/stewsters/test/noise/OpenSimplexNoiseTest.java | Java | mit | 1,316 |
/**
* This class is generated by jOOQ
*/
package my.alphatheta.locasee.db.tables.pojos;
/**
* This class is generated by jOOQ.
*/
public class MerchantProduct {
Integer productId;
String title;
Integer priceCents;
String productCategory;
String productSubcategory;
String imageUrl;
St... | alphatheta-my/locasee-api | src/main/java/my/alphatheta/locasee/db/tables/pojos/MerchantProduct.java | Java | mit | 7,178 |
package decoration;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.JComponent;
import javax.swing.SwingUtilities;
/**
* The decoration.ComponentResizer allows you to resize a component by dragging a border
* of the component.
*/
public class ComponentResizer extends MouseAdapt... | TerexNik/SkillBoxDiplom | src/decoration/ComponentResizer.java | Java | mit | 13,693 |
package org.ixmas.machinelearning.supervised.input.image;
import com.jmatio.types.MLUInt8;
public class MnistImage implements Image {
private final int m_xSize;
private final int m_ySize;
private MLUInt8 m_images;
private int m_nIdx;
public MnistImage(MLUInt8 images, int nIdx) {
m_images... | gvauvert/Machine-Learning-A-Probabilistic-Perspective | src/main/java/org/ixmas/machinelearning/supervised/input/image/MnistImage.java | Java | mit | 888 |
package edu.columbia.cs.psl.phosphor.instrumenter.analyzer;
public class TaggedValue {
public Object v;
public TaggedValue(Object v) {
if(v instanceof TaggedValue) {
this.v = ((TaggedValue) v).v;
} else {
this.v = v;
}
}
@Override
public String toSt... | Programming-Systems-Lab/phosphor | Phosphor/src/main/java/edu/columbia/cs/psl/phosphor/instrumenter/analyzer/TaggedValue.java | Java | mit | 362 |
/*
* Copyright 2016 Workday, Inc.
*
* This software is available under the MIT license.
* Please see the LICENSE.txt file in this project.
*/
package com.workday.autoparse.json.codegen;
import com.squareup.javawriter.JavaWriter;
import java.io.IOException;
import java.util.Locale;
import java.util.Map;
/**
* ... | Workday/autoparse-json | processor/src/main/java/com/workday/autoparse/json/codegen/SingleLineValueAssigner.java | Java | mit | 3,294 |
public class RSAECBOAEPSHA256 extends BaseCipher {
public static final String name = "RSA";
public static final String specification = "RSA/ECB/OAEPWithSHA-256AndMGF1Padding";
public static final int ivLength = 256 ; // (1024, 2048) bits
public static final int encryptionKeyLength = 256; // (1024, 204... | odeke-em/jcrypto | RSAECBOAEPSHA256.java | Java | mit | 584 |
package tamaized.voidcraft.common.entity.boss;
import net.minecraft.util.text.ITextComponent;
public interface IVoidBossData {
float getMaxHealthForBossBar();
float getHealthForBossBar();
float getPercentHPForBossBar();
/**
* Get the formatted ChatComponent that will be used for the sender's username in ch... | Tamaized/VoidCraft | src/main/java/tamaized/voidcraft/common/entity/boss/IVoidBossData.java | Java | mit | 369 |
/*
* Copyright (c) 2016. Pierre BOURGEOIS
*
* 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... | Monpoke/scotipweb | src/main/java/scotip/app/service/sounds/SoundsService.java | Java | mit | 2,203 |
/*
* 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 may ... | amikey/zongtui-classifier | src/main/java/com/zongtui/classifier/math/function/VectorFunction.java | Java | mit | 1,021 |