repo_name stringlengths 5 108 | path stringlengths 6 333 | size stringlengths 1 6 | content stringlengths 4 977k | license stringclasses 15
values |
|---|---|---|---|---|
kohsuke/github-api | src/main/java/org/kohsuke/github/GHRelease.java | 8107 | package org.kohsuke.github;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLEncoder;
import java.util.Collections;
import java.util.Date;
import java.util.Lis... | mit |
6o1/lynx-server | src/main/java/com/lynx/service/UserService.java | 978 | package com.lynx.service;
import java.util.Collection;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import com.lynx.domain.User;
import com.lynx.repository.UserRepository;
import ... | mit |
nicoribeiro/java_efactura_uy | app/dgi/classes/respuestas/reporte/RSAKeyValueType.java | 2365 | //
// 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: 2016.09.02 at 01:00... | mit |
lipangit/JiaoZiVideoPlayer | app/src/main/java/cn/jzvd/demo/ActivityListViewMultiHolder.java | 5869 | package cn.jzvd.demo;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.BaseAdapte... | mit |
yngvark/gridwalls2 | source/lib/communicate-through-named-pipes/source/src/main/java/com/yngvark/communicate_through_named_pipes/input/InputFileReader.java | 2016 | package com.yngvark.communicate_through_named_pipes.input;
import org.slf4j.Logger;
import java.io.BufferedReader;
import java.io.IOException;
import static org.slf4j.LoggerFactory.getLogger;
public class InputFileReader {
private final Logger logger = getLogger(getClass());
private final BufferedReader buf... | mit |
yunpian/yunpian-java-sdk | src/main/java/com/yunpian/sdk/model/VoiceSend.java | 119 | package com.yunpian.sdk.model;
/**
* Created by bingone on 15/11/8.
*/
public class VoiceSend extends BaseInfo {
}
| mit |
VansPo/flickr-gallery | FlickrGallery/app/src/main/java/com/ipvans/flickrgallery/ui/main/MainPresenterImpl.java | 2680 | package com.ipvans.flickrgallery.ui.main;
import android.util.Log;
import com.ipvans.flickrgallery.data.SchedulerProvider;
import com.ipvans.flickrgallery.di.PerActivity;
import com.ipvans.flickrgallery.domain.FeedInteractor;
import com.ipvans.flickrgallery.domain.UpdateEvent;
import java.util.concurrent.TimeUnit;
... | mit |
phil0522/anote | anote-mobile/ANote/app/src/main/java/aaron/org/anote/viewbinder/DynamicActivity.java | 279 | package aaron.org.anote.viewbinder;
import android.app.Activity;
import android.os.Bundle;
public class DynamicActivity extends Activity {
@Override
public void onCreate(Bundle savedInstance) {
super.onCreate(savedInstance);
Layout.start(this);
}
}
| mit |
seeseekey/jenet | src/net/jenet/Packet.java | 6482 | /*
* Copyright (c) 2005 Dizan Vasquez.
*
* 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 |
asposeforcloud/Aspose_Cloud_SDK_For_Android | asposecloudsdk/src/main/java/com/aspose/cloud/sdk/cells/model/ValidFormatsForDocumentEnum.java | 236 | package com.aspose.cloud.sdk.cells.model;
public enum ValidFormatsForDocumentEnum {
csv,
xlsx,
xlsm,
xltx,
xltm,
text,
html,
pdf,
ods,
xls,
spreadsheetml,
xlsb,
xps,
tiff,
jpeg,
png,
emf,
bmp,
gif
}
| mit |
Chavjoh/CalDynam | app/src/main/java/ch/hesso/master/caldynam/MainActivity.java | 9388 | package ch.hesso.master.caldynam;
import android.app.Fragment;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.graphics.Outline;
import android.os.Bundle;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarActivity;
import android.support.v7... | mit |
jonesd/abora-white | src/main/java/info/dgjones/abora/white/edgeregion/TransitionEdge.java | 5464 | /**
* The MIT License
* Copyright (c) 2003 David G Jones
*
* 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, ... | mit |
pomortaz/azure-sdk-for-java | azure-mgmt-resources/src/main/java/com/microsoft/azure/management/resources/implementation/ResourceGroupInner.java | 3619 | /**
* 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.resources.implementation;
import com.microsoft.a... | mit |
dvsa/mot | mot-selenium/src/main/java/uk/gov/dvsa/ui/pages/vehicleinformation/VehicleMakePage.java | 1635 | package uk.gov.dvsa.ui.pages.vehicleinformation;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import uk.gov.dvsa.domain.model.vehicle.Make;
import uk.gov.dvsa.domain.navigation.PageNavigator;
import uk.gov.dvsa.framework.config.webdriver.MotAppDrive... | mit |
prajesh-ananthan/spring-playfield | spring-core/src/main/java/io/prajesh/config/HelloConfig.java | 980 | package io.prajesh.config;
import io.prajesh.domain.HelloWorld;
import io.prajesh.service.HelloWorldService;
import io.prajesh.service.HelloWorldServiceImpl;
import io.prajesh.service.factory.HelloWorldFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configurat... | mit |
hulmen/SQLAdmin | src/fredy/sqltools/XLSExport.java | 23048 | package sql.fredy.sqltools;
/**
XLSExport exports the result of a query into a XLS-file. To do this it is
using HSSF from the Apache POI Project: http://jakarta.apache.org/poi
Version 1.0 Date 7. aug. 2003 Author Fredy Fischer
XLSExport is part of the Admin-Suite
Once instantiated there are the ... | mit |
vinexs/extend-enhance-base | eeb-core/src/main/java/com/vinexs/view/ScalableLinearLayout.java | 3281 | /*
* Copyright (c) 2015. Vin @ vinexs.com (MIT License)
*
* 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 |
tripu/validator | src/nu/validator/xml/UseCountingXMLReaderWrapper.java | 22613 | /*
* Copyright (c) 2016-2017 Mozilla Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, me... | mit |
frogocomics/SpongeAPI | src/main/java/org/spongepowered/api/data/types/InstrumentType.java | 1532 | /*
* This file is part of SpongeAPI, 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 "Soft... | mit |
peterbartha/component-diagram | ComponentTester.diagram/src/components/diagram/edit/commands/ConnectionCreateCommand.java | 4550 | package components.diagram.edit.commands;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gmf.runtime.common.core.command.CommandResult;
import org.eclipse.gmf.run... | mit |
PranovD/CS2340 | M2/src/main/java/edu/gatech/oad/antlab/pkg1/AntLabMain.java | 2551 | package edu.gatech.oad.antlab.pkg1;
import edu.cs2335.antlab.pkg3.*;
import edu.gatech.oad.antlab.person.*;
import edu.gatech.oad.antlab.pkg2.*;
/**
* CS2335 Ant Lab
*
* Prints out a simple message gathered from all of the other classes
* in the package structure
*/
public class AntLabMain {
... | mit |
AlexLandau/ggp-tournament | src/main/java/net/alloyggp/tournament/internal/admin/InternalAdminActions.java | 1179 | package net.alloyggp.tournament.internal.admin;
import net.alloyggp.escaperope.Delimiters;
import net.alloyggp.escaperope.RopeDelimiter;
import net.alloyggp.escaperope.rope.Rope;
import net.alloyggp.escaperope.rope.ropify.SubclassWeaver;
import net.alloyggp.escaperope.rope.ropify.Weaver;
import net.alloyggp.tournament... | mit |
AgileEAP/aglieEAP | agileEAP-workflow/src/main/java/com/agileEAP/workflow/definition/ActivityType.java | 1812 | package com.agileEAP.workflow.definition;
/**
活动类型
*/
public enum ActivityType
{
/**
开始活动
*/
//C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to .NET attributes:
//[Remark("开始活动")]
StartActivity(1),
/**
人工活动
*/
//C# TO JAVA CONVERTER TODO TASK: Java annotations will not co... | mit |
kyoken74/rock-paper-scissors | src/main/java/com/asayama/rps/simulator/Hand.java | 83 | package com.asayama.rps.simulator;
public enum Hand {
ROCK, PAPER, SCISSORS;
}
| mit |
aviolette/foodtrucklocator | main/src/main/java/foodtruck/linxup/Trip.java | 3020 | package foodtruck.linxup;
import java.util.List;
import com.google.common.base.MoreObjects;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Lists;
import org.joda.time.DateTime;
import foodtruck.model.Location;
/**
* @author aviolette
* @since 11/1/16
*/
public class Trip {
pr... | mit |
matt-gibbs/AutoRest | AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/package-info.java | 485 | // 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 0.14.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
... | mit |
grahamedgecombe/lightstone | src/net/lightstone/net/codec/MessageCodec.java | 613 | package net.lightstone.net.codec;
import java.io.IOException;
import net.lightstone.msg.Message;
import org.jboss.netty.buffer.ChannelBuffer;
public abstract class MessageCodec<T extends Message> {
private final Class<T> clazz;
private final int opcode;
public MessageCodec(Class<T> clazz, int opcode) {
this.... | mit |
programacion-avanzada/jrpg-2017a-dominio | src/test/java/tests_dominio/TestAsesino.java | 934 | package tests_dominio;
import org.junit.Assert;
import org.junit.Test;
import dominio.Asesino;
import dominio.Hechicero;
import dominio.Humano;
public class TestAsesino {
@Test
public void testRobar(){ }
@Test
public void testCritico(){
Humano h = new Humano("Nicolas",new Asesino(),1);
Humano h2 = new Hum... | mit |
ShoukriKattan/ForgedUI-Eclipse | com.forgedui.editor/src/com/forgedui/editor/edit/TableViewEditPart.java | 4096 | // LICENSE
package com.forgedui.editor.edit;
import java.beans.PropertyChangeEvent;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.gef.commands.Command;
import org.eclipse.gef.requests.CreateRequest;
import com.forgedui.editor.GUIEditorPlugin;
impo... | mit |
dbooga/MonsterHunter3UDatabase | MonsterHunter3UDatabase/src/com/daviancorp/android/data/database/LocationCursor.java | 1054 | package com.daviancorp.android.data.database;
import android.database.Cursor;
import android.database.CursorWrapper;
import com.daviancorp.android.data.classes.Location;
/**
* A convenience class to wrap a cursor that returns rows from the "locations"
* table. The {@link getLocation()} method will give you a Locat... | mit |
farkas-arpad/KROKI-mockup-tool | BusinessProcessModelingTool/src/bp/details/GatewayDetails.java | 2214 | package bp.details;
import javax.swing.JLabel;
import javax.swing.JSpinner;
import javax.swing.SpinnerModel;
import javax.swing.SpinnerNumberModel;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import bp.model.data.Gateway;
import bp.model.util.BPKeyWords;
import bp.model.u... | mit |
cmput402w2016/CMPUT402W16T1 | MapCore/src/main/java/com/cmput402w2016/t1/webapi/handler/SegmentHandler.java | 2216 | package com.cmput402w2016.t1.webapi.handler;
import com.cmput402w2016.t1.data.Segment;
import com.cmput402w2016.t1.webapi.Helper;
import com.cmput402w2016.t1.webapi.WebApi;
import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpHandler;
import java.util.Map;
/**
* Handler for the /segment web... | mit |
zhangqiang110/my4j | pms/src/main/java/com/swfarm/biz/chain/bo/JobExecutionState.java | 2105 | package com.swfarm.biz.chain.bo;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Random;
import com.swfarm.pub.framework.FormNumberCache;
public class JobExecutionState implements Serializable {
private Long id;
private String jobName;
private String jobInstanceName;
... | mit |
Azure/azure-sdk-for-java | sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PlacementPoliciesImpl.java | 11094 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.avs.implementation;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.co... | mit |
brandon-bailey/osdms | assets/webodf/programs/cordova/platforms/android/src/org/webodf/WebODF.java | 1303 | /*
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... | mit |
ReplayMod/jGui | src/main/java/de/johni0702/minecraft/gui/element/AbstractGuiElement.java | 6656 | /*
* This file is part of jGui API, licensed under the MIT License (MIT).
*
* Copyright (c) 2016 johni0702 <https://github.com/johni0702>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softw... | mit |
klamonte/jermit | src/jermit/protocol/zmodem/ZEofHeader.java | 2504 | /*
* Jermit
*
* The MIT License (MIT)
*
* Copyright (C) 2018 Kevin Lamonte
*
* 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 |
a-r-d/java-1-class-demos | jframe-actionlistener-access-db-cxn/homework-start/Week13Assignment10/src/FormLoader.java | 788 | import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class FormLoader {
public static String connectionString = "jdbc:hsqldb:file:db-data/teamsandplayers";
static Connection con;
public static void main(String[] args) throws Exception {
try {
Class.forName("org.hsq... | mit |
nico01f/z-pec | ZimbraAdminVersionCheck/src/java/com/zimbra/cs/versioncheck/VersionCheckUtil.java | 7334 | package com.zimbra.cs.versioncheck;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import java.util.Date;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException;
import com.zimbra.common.util.ZimbraLog;
import com.z... | mit |
DamascenoRafael/cos482-qualidade-de-software | www/src/main/java/br/ufrj/g2matricula/domain/Matricula.java | 2535 | package br.ufrj.g2matricula.domain;
import org.springframework.data.elasticsearch.annotations.Document;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.io.Serializable;
import java.util.Objects;
import br.ufrj.g2matricula.domain.enumeration.MatriculaStatus;
/**
* A Matricula.
*/
@En... | mit |
thilko/gradle-springdoc-plugin | src/test/java/com/thilko/springdoc/CredentialsCode.java | 435 | package com.thilko.springdoc;
@SuppressWarnings("all")
public class CredentialsCode {
Integer age;
double anotherValue;
public Integer getAge() {
return age;
}
public void setAge(Integer age) {
this.age = age;
}
public double getAnotherValue() {
return anotherValu... | mit |
ltearno/pom-explorer | pom-explorer/src/main/java/fr/lteconsulting/pomexplorer/commands/HelpCommand.java | 342 | package fr.lteconsulting.pomexplorer.commands;
import fr.lteconsulting.pomexplorer.AppFactory;
import fr.lteconsulting.pomexplorer.Client;
import fr.lteconsulting.pomexplorer.Log;
public class HelpCommand
{
@Help( "gives this message" )
public void main( Client client, Log log )
{
log.html( AppFactory.get().comm... | mit |
selvasingh/azure-sdk-for-java | sdk/network/mgmt-v2020_04_01/src/main/java/com/microsoft/azure/management/network/v2020_04_01/TagsObject.java | 954 | /**
* 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 java.util.Map;
impor... | mit |
kashike/SpongeCommon | src/main/java/org/spongepowered/common/mixin/core/server/network/MixinNetHandlerLoginServer.java | 5729 | /*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | mit |
karim/adila | database/src/main/java/adila/db/zeppelin_mb501.java | 217 | // This file is automatically generated.
package adila.db;
/*
* Motorola Cliq-XT
*
* DEVICE: zeppelin
* MODEL: MB501
*/
final class zeppelin_mb501 {
public static final String DATA = "Motorola|Cliq-XT|";
}
| mit |
mokonzi131/gatech-colorwar | CS 2340 Agent Simulation/src/util/ObjectCloner.java | 1184 | package util;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
/**
* Taken from
* http://www.javaworld.com/article/2077578/learn-java/java-tip-76--an-alternative-to-the-deep-copy-technique.html
*
* @author David Miller... | mit |
vivekprocoder/teaching | java/lecture 14/ListFonts.java | 336 | import java.awt.*;
public class ListFonts
{
public static void main(String[] args)
{
String[] fontNames = GraphicsEnvironment
.getLocalGraphicsEnvironment()
.getAvailableFontFamilyNames();
for (int i = 0; i < fontNames.length; i++)
System.out.println(fontNames[i... | mit |
alihaluk/swe573main | src/boun/swe573/accessbadger/ABHelloWorld.java | 393 | package boun.swe573.accessbadger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class ABHelloWorld {
@RequestMapping("/welcome")
public String helloWorld() {
String message = "<br><div style='text-align:center;'>"
+ "<h3>*... | mit |
Eric-Carlton/GradeBook | GradeBook/src/gradebookdata/Course.java | 1062 | package gradebookdata;
/**
* Represents one row of the course table in the GradeBook database
*
* @author Eric Carlton
*
*/
public class Course {
private String name;
private int weight;
private int ID;
/**
* Create a course with all fields filled
*
* @param name
* name of course
* @... | mit |
orbitaljt/LEAD | Android/Lead/app/src/main/java/com/orbital/lead/controller/Activity/AddNewSpecificJournalActivity.java | 20434 | package com.orbital.lead.controller.Activity;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.DatePickerDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v... | mit |
RGreenlees/JUMI-Java-Model-Importer | src/com/jumi/scene/objects/JUMISkinDeformer.java | 1888 | /*
* (C) Copyright 2015 Richard Greenlees
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,... | mit |
zhugejunwei/Algorithms-in-Java-Swift-CPP | String/159. Longest Substring with At Most Two Distinct Characters.java | 411 | public class Solution {
public int lengthOfLongestSubstringTwoDistinct(String s) {
int[] map = new int[128];
int count = 0, start = 0, end = 0, d = 0;
while (end < s.length()) {
if (map[s.charAt(end++)]++ == 0) count++;
while (count > 2) if(map[s.charAt(start++)]-- ==... | mit |
MrInformatic/GameSaver | src/main/java/game/saver/remote/gamemaps/RemoteGameDoubleMap.java | 5186 | /*
* The MIT License (MIT)
*
* Copyright (c) 2016 MrInformatic.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use... | mit |
backpaper0/sandbox | springmvc-study-no-xml/src/main/java/com/example/ServletContainerInitializerImpl.java | 923 | package com.example;
import java.util.Set;
import javax.servlet.ServletContainerInitializer;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletRegistration;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import org.springfra... | mit |
blendee/blendee | src/main/java/org/blendee/jdbc/ComposedSQL.java | 1611 | package org.blendee.jdbc;
/**
* プレースホルダを持つ SQL 文と、プレースホルダにセットする値を持つものを表すインターフェイスです。
* @author 千葉 哲嗣
*/
public interface ComposedSQL extends ChainPreparedStatementComplementer {
/**
* このインスタンスが持つ SQL 文を返します。
* @return SQL 文
*/
String sql();
/**
* {@link PreparedStatementComplementer} を入れ替えた新しい {@link Co... | mit |
sixro/minihabits | core/src/main/java/com/github/sixro/minihabits/core/infrastructure/domain/PreferencesBasedRepository.java | 2241 | package com.github.sixro.minihabits.core.infrastructure.domain;
import java.util.*;
import com.badlogic.gdx.Preferences;
import com.github.sixro.minihabits.core.domain.*;
public class PreferencesBasedRepository implements Repository {
private final Preferences prefs;
public PreferencesBasedRepository... | mit |
0x326/academic-code-portfolio | 2016-2021 Miami University/CSE 271 Introduction to Object-Oriented Programming/Lab02/src/main/java/Lab2InputOutput.java | 1334 | // John Meyer
// CSE 271 F
// Dr. Angel Bravo
import java.util.Scanner;
import java.io.*;
/**
* Copies a file with line numbers prefixed to every line
*/
public class Lab2InputOutput {
public static void main(String[] args) throws Exception {
// Define variables
Scanner keyboardReader = new Scan... | mit |
nico01f/z-pec | ZimbraSoap/src/wsdl-test/generated/zcsclient/mail/testMessagePartHitInfo.java | 7074 |
package generated.zcsclient.mail;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for messagePartHitInfo complex type.
*
* <p>The following schema fragme... | mit |
krzkaczor/IDEA | src/main/java/bits/ExclusiveOrOperator.java | 651 | package bits;
/**
* Created by krzysztofkaczor on 3/10/15.
*/
public class ExclusiveOrOperator implements BinaryOperator
{
@Override
public BitArray combine(BitArray operand1, BitArray operand2) {
if(operand1.size() != operand2.size()) {
throw new IllegalArgumentException("ExclusiveOrOper... | mit |
comfreeze/android-tools | CFZLib/src/main/java/net/comfreeze/lib/CFZApplication.java | 8991 | package net.comfreeze.lib;
import android.app.AlarmManager;
import android.app.Application;
import android.app.NotificationManager;
import android.content.ComponentName;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.content.pm.PackageMan... | mit |
Aldaviva/relay-mesh-example-java | src/main/java/com/example/mesh/EndpointControlResource.java | 4452 | package com.example.mesh;
import java.util.HashMap;
import java.util.Map;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
@Path("/")
@Cons... | mit |
larhoy/SentimentProjectV2 | SentimentAnalysisV2/encog-core-3.1.0/src/main/java/org/encog/plugin/system/SystemTrainingPlugin.java | 7358 | /*
* Encog(tm) Core v3.1 - Java Version
* http://www.heatonresearch.com/encog/
* http://code.google.com/p/encog-java/
* Copyright 2008-2012 Heaton Research, 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 obt... | mit |
marti1125/Project_Store | app/controllers/Secure.java | 7739 | package controllers;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Date;
import models.Usuario;
import play.Play;
import play.mvc.*;
import play.data.validation.*;
import play.libs.*;
import play.utils.*;
public class Secure extends Controller {
@Before(unless={"log... | mit |
edtoktay/DynamicCompiler | Example/src/main/java/org/edtoktay/dynamic/compiler/ExampleInterface.java | 200 | /**
*
*/
package org.edtoktay.dynamic.compiler;
/**
* @author deniz.toktay
*
*/
public interface ExampleInterface {
void addObject(String arg1, String arg2);
Object getObject(String arg1);
}
| mit |
DemSquirrel/Prison-Survival | src/org/squirrel/Game.java | 1974 | package org.squirrel;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.Timer;
import org.squirrel.managers.PrisonerControllor;
import org.squirrel.managers.input... | mit |
Achterhoeker/XChange | xchange-cryptotrade/src/main/java/com/xeiam/xchange/cryptotrade/dto/CryptoTradeOrderType.java | 1150 | package com.xeiam.xchange.cryptotrade.dto;
import java.io.IOException;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.ObjectCodec;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.data... | mit |
aureliano/da-mihi-logs | evt-bridge-output/file-output/src/test/java/com/github/aureliano/evtbridge/output/file/FileOutputConfigTest.java | 2450 | package com.github.aureliano.evtbridge.output.file;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.util.Set;
import org.junit.Test;
import com.github.aureliano.evtbridge.annota... | mit |
fallk/JFunktion | src/main/java/fallk/jfunktion/FloatObjectPredicate.java | 715 | // THIS CODE IS MACHINE-GENERATED, DO NOT EDIT!
package fallk.jfunktion;
/**
* Represents a predicate (boolean-valued function) of a {@code float}-valued and a generic argument.
* This is the primitive type specialization of
* {@link java.util.function.BiPredicate} for {@code float}/{@code char}.
*
* @see java.u... | mit |
morozko108/Tilde | src/test/java/com/carbon108/tilde/PrimaryModelFactoryTest.java | 1725 | package com.carbon108.tilde;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import java.util.Collection;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
/**
* @author K Moroz
* @version 1.0
*/
public class P... | mit |
docusign/docusign-soap-sdk | Java/DocuSignSample/src/net/docusign/sample/GetStatusAndDocs.java | 8102 | /**
* @copyright Copyright (C) DocuSign, Inc. All rights reserved.
*
* This source code is intended only as a supplement to DocuSign SDK
* and/or on-line documentation.
*
* This sample is designed to demonstrate DocuSign features and is not intended
* for production use. Code and policy for a production applic... | mit |
pablopdomingos/nfse | nfse-bh/src/test/java/com/pablodomingos/classes/rps/servicos/LoteRpsConsultaTest.java | 696 | package com.pablodomingos.classes.rps.servicos;
import java.io.IOException;
import org.apache.commons.io.IOUtils;
import org.junit.Assert;
import org.junit.Test;
import com.pablodomingos.classes.FabricaDeObjetosFake;
public class LoteRpsConsultaTest {
@Test
public void xmlDeveSerGeradoCorretamen... | mit |
Crim/pardot-java-client | src/main/java/com/darksci/pardot/api/parser/user/UserAbilitiesParser.java | 1801 | /**
* Copyright 2017, 2018, 2019, 2020 Stephen Powis https://github.com/Crim/pardot-java-client
*
* 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 limi... | mit |
pegurnee/2013-03-211 | complete/src/data_struct/in_class/d10_02/Sam.java | 817 | package data_struct.in_class.d10_02;
/**
* A class to test basic 'Object' methods
*
* @author Eddie Gurnee
* @version 10/02/13
* @see TestingSam
*
*/
public class Sam {
public int mikesplan = 8;
/**
* No argument constructor for the Sam class
*
*/
public Sam() {
}
/**
* Indicates if some other... | mit |
HerrB92/obp | OpenBeaconPackage/libraries/hibernate-release-4.2.7.SP1/project/hibernate-core/src/test/java/org/hibernate/test/annotations/cascade/NonNullableCircularDependencyCascadeTest.java | 2167 | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* Copyright (c) 2011, Red Hat Inc. or third-party contributors as
* indicated by the @author tags or express copyright attribution
* statements applied by the authors. All third-party contributions are
* distributed under license by Red Hat Inc.
*
* T... | mit |
yangra/SoftUni | Java-DB-Fundamentals/DatabasesFrameworks-Hibernate&SpringData/EXAMS/exam/src/main/java/softuni/io/FileParser.java | 1123 | package softuni.io;
import org.springframework.stereotype.Component;
import java.io.*;
@Component
public class FileParser {
public String readFile(String path) throws IOException {
StringBuilder stringBuilder = new StringBuilder();
try (InputStream is = this.getClass().getResourceAsStream(path);... | mit |
maiers/bigbib | src/main/java/de/comci/bigbib/PeristentBibTexEntry.java | 4524 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package de.comci.bigbib;
import com.mongodb.BasicDBObject;
import com.mongodb.DBObject;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import javax.xml.bind.annotation.XmlAccessType;
import ... | mit |
GPUdb/gpudb-api-java | api/src/main/java/com/gpudb/protocol/FilterByValueRequest.java | 18189 | /*
* This file was autogenerated by the GPUdb schema processor.
*
* DO NOT EDIT DIRECTLY.
*/
package com.gpudb.protocol;
import java.util.LinkedHashMap;
import java.util.Map;
import org.apache.avro.Schema;
import org.apache.avro.SchemaBuilder;
import org.apache.avro.generic.GenericData;
import org.apache.avro.ge... | mit |
CMPUT301F17T06/Lit | app/src/main/java/com/example/lit/habit/Habit.java | 8243 | /*
* Copyright 2017 Max Schafer, Ammar Mahdi, Riley Dixon, Steven Weikai Lu, Jiaxiong Yang
*
* 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 t... | mit |
vitrivr/cineast | cineast-core/src/main/java/org/vitrivr/cineast/core/util/audio/pitch/tracking/PitchContour.java | 5638 | package org.vitrivr.cineast.core.util.audio.pitch.tracking;
import java.util.LinkedList;
import java.util.List;
import org.apache.commons.math3.stat.descriptive.SummaryStatistics;
import org.vitrivr.cineast.core.util.audio.pitch.Pitch;
/**
* This is a helper class for pitch tracking. It represents a pitch contour, t... | mit |
ivelin1936/Studing-SoftUni- | Programing Basic/Programming Basics - Exercises/Advanced Loops/src/com/company/EvenPowersOf2.java | 368 | package com.company;
import java.util.Scanner;
public class EvenPowersOf2 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = Integer.parseInt(scanner.nextLine());
int num = 1;
for (int i = 0; i <= n ; i+=2) {
System.out.printl... | mit |
StefanSchubert/sabi | sabi-webclient/src/main/java/de/bluewhale/sabi/webclient/rest/exceptions/TankMessageCodes.java | 1112 | /*
* Copyright (c) 2020 by Stefan Schubert under the MIT License (MIT).
* See project LICENSE file for the detailed terms and conditions.
*/
package de.bluewhale.sabi.webclient.rest.exceptions;
import de.bluewhale.sabi.exception.ExceptionCode;
import de.bluewhale.sabi.exception.MessageCode;
import de.bluewhale.sa... | mit |
wolfgang-lausenhammer/Okeanos | okeanos.data/src/main/java/okeanos/data/services/entities/Price.java | 207 | package okeanos.data.services.entities;
import javax.measure.quantity.Power;
import org.jscience.physics.amount.Amount;
public interface Price {
double getCostAtConsumption(Amount<Power> consumption);
}
| mit |
Ruenzuo/android-facade-example | WeatherApp/src/main/java/com/ruenzuo/weatherapp/adapters/CitiesAdapter.java | 1106 | package com.ruenzuo.weatherapp.adapters;
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.TextView;
import com.ruenzuo.weatherapp.R;
import com.ruenzuo.wea... | mit |
TehNut/ResourcefulCrops | src/main/java/tehnut/resourceful/crops/compat/CompatibilityWaila.java | 2650 | package tehnut.resourceful.crops.compat;
import mcp.mobius.waila.api.*;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math... | mit |
github/codeql | java/ql/test/stubs/apache-commons-lang3-3.7/org/apache/commons/lang3/text/StrLookup.java | 1213 | /*
* 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 ... | mit |
rebuy-de/consul-java-client | src/test/java/com/rebuy/consul/ConsulServiceTest.java | 5239 | package com.rebuy.consul;
import com.ecwid.consul.v1.ConsulClient;
import com.ecwid.consul.v1.QueryParams;
import com.ecwid.consul.v1.Response;
import com.ecwid.consul.v1.agent.model.NewService;
import com.ecwid.consul.v1.catalog.model.CatalogService;
import com.rebuy.consul.exceptions.NoServiceFoundException;
import ... | mit |
atealxt/work-workspaces | Test_Java/src/test/thread/CallableAndFutureTest.java | 2091 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package test.thread;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util... | mit |
Azure/azure-sdk-for-java | sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/eventhubs/generated/ConsumerGroupsListByEventHubSamples.java | 1031 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.eventhubs.generated;
import com.azure.core.util.Context;
/** Samples for ConsumerGroups ListByEventHub. */
public final class C... | mit |
stalayhan/vibeapp | app/src/main/java/net/talayhan/android/vibeproject/Controller/MainActivity.java | 9208 | package net.talayhan.android.vibeproject.Controller;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Uri;
import android.os.Bundle;
import android.provid... | mit |
CCI-MIT/XCoLab | microservices/clients/contest-client/src/main/java/org/xcolab/client/contest/pojo/IContestCollectionCard.java | 1010 | package org.xcolab.client.contest.pojo;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.xcolab.client.contest.pojo.tables.pojos.ContestCollectionCard;
@JsonDeserialize(as = ContestCollectionCard.class)
public interface IContestCollectionCard {
Long getId();
void setId(Long id);... | mit |
justayak/ALP5 | src/utils/Utils.java | 14112 | package utils;
import java.io.*;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
... | mit |
meggermo/hierarchical-matrices | src/main/java/org/eggermont/hm/cluster/ClusterFactory.java | 669 | package org.eggermont.hm.cluster;
import cern.colt.matrix.DoubleFactory1D;
import cern.colt.matrix.DoubleMatrix1D;
import cern.colt.matrix.DoubleMatrix2D;
public class ClusterFactory {
private final DoubleMatrix2D x;
private final DoubleMatrix1D blocks;
private final DoubleMatrix1D vMin;
private f... | mit |
dustin/java-digg | src/main/java/net/spy/digg/parsers/StoriesParser.java | 621 | package net.spy.digg.parsers;
import java.io.IOException;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;
import net.spy.digg.Story;
/**
* Parse a stories response.
*/
public class StoriesParser extends TimePagedItemParser<Story> {
@Override
protected String getRootEl... | mit |
Nanobot5770/DasMusikQuiz | src/de/thomas/dreja/ec/musicquiz/gui/dialog/SortOrderSelectionDialog.java | 1823 | package de.thomas.dreja.ec.musicquiz.gui.dialog;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.os.Bundle;
import de.thomas.dreja.ec.musicquiz.R;
import de.thomas.dreja.ec.musicqu... | mit |
fhtw-swp-tutorium/java-swp-test-tool | test-console/src/main/java/com/github/fhtw/swp/tutorium/guice/LeafTypeProviderImpl.java | 709 | package com.github.fhtw.swp.tutorium.guice;
import com.github.fhtw.swp.tutorium.composite.Leaf;
import com.github.fhtw.swp.tutorium.composite.LeafTypeProvider;
import com.github.fhtw.swp.tutorium.reflection.AnnotatedTypeFinder;
import org.reflections.Configuration;
import javax.inject.Inject;
import java.util.Set;
p... | mit |
majusko/codility | PermMissingElem.java | 392 | class Solution {
public int solution(int[] A) {
int[] temArray = new int[A.length + 2];
for (int i = 0; i < A.length; i++) {
temArray[A[i]] = 1;
}
for (int i = 1; i < temArray.length + 1; i++) {
if(temArray[i] == 0){
return i;
... | mit |
markovandooren/chameleon | src/org/aikodi/chameleon/support/statement/StatementExprList.java | 2449 | package org.aikodi.chameleon.support.statement;
import org.aikodi.chameleon.core.declaration.Declaration;
import org.aikodi.chameleon.core.element.ElementImpl;
import org.aikodi.chameleon.core.lookup.DeclarationSelector;
import org.aikodi.chameleon.core.lookup.LookupContext;
import org.aikodi.chameleon.core.lookup.Loo... | mit |
Thewhitelight/Calendar | app/src/main/java/cn/libery/calendar/MaterialCalendar/EventDecorator.java | 752 | package cn.libery.calendar.MaterialCalendar;
import android.content.Context;
import java.util.Collection;
import java.util.HashSet;
import cn.libery.calendar.MaterialCalendar.spans.DotSpan;
/**
* Decorate several days with a dot
*/
public class EventDecorator implements DayViewDecorator {
private int color... | mit |
andersonsilvade/workspacejava | Workspaceandroid/MainActivity/src/br/com/k19/android/cap3/MainActivity.java | 280 | package br.com.k19.android.cap3;
import android.app.Activity;
import android.os.Bundle;
public class MainActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.frame);
}
}
| mit |
mikescamell/shared-element-transitions | app/src/main/java/com/mikescamell/sharedelementtransitions/recycler_view/recycler_view_to_viewpager/RecyclerViewToViewPagerActivity.java | 652 | package com.mikescamell.sharedelementtransitions.recycler_view.recycler_view_to_viewpager;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.mikescamell.sharedelementtransitions.R;
public class RecyclerViewToViewPagerActivity extends AppCompatActivity {
@Override
protecte... | mit |