blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 5 132 | path stringlengths 2 382 | src_encoding stringclasses 34
values | length_bytes int64 9 3.8M | score float64 1.5 4.94 | int_score int64 2 5 | detected_licenses listlengths 0 142 | license_type stringclasses 2
values | text stringlengths 9 3.8M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
5767bc7889b0db6d11c2cdf0c81f7f7a63210f72 | Java | norishen/conecta4 | /app/src/main/java/org/wicbo5oel/conecta4/Game.java | UTF-8 | 12,252 | 2.96875 | 3 | [] | no_license | package org.wicbo5oel.conecta4;
import android.util.Log;
/**
* Creado por administrador on 27/10/15.
*/
public class Game {
static final int SIZE_Y = 6;
static final int SIZE_X = 7;
private int tablero[][];
private int ganador[][];
private int iaMaxProfundidad = 3;
//--------------------... | true |
960f8490a967bf60c8412a668c5d80631686221a | Java | chilja/ArchEnemyAppV1 | /src/net/archenemy/archenemyapp/model/SocialMediaUser.java | UTF-8 | 2,141 | 2.3125 | 2 | [] | no_license | package net.archenemy.archenemyapp.model;
import java.util.ArrayList;
import java.util.Collections;
import twitter4j.User;
import com.facebook.model.GraphUser;
import net.archenemy.archenemyapp.presenter.FeedElement;
import android.app.Activity;
import android.content.SharedPreferences;
import android.preference.P... | true |
d91857ace830449230e9ebce8b308d3e5e4d4e26 | Java | oscargomez2/Reto4_Hotel | /src/main/java/mintic/misiontic/usa/ciclo3/grupo5/equipo2/SistemaHotelesAPI/servicios/ServicioCategory.java | UTF-8 | 1,860 | 2.484375 | 2 | [] | no_license | package mintic.misiontic.usa.ciclo3.grupo5.equipo2.SistemaHotelesAPI.servicios;
import java.util.List;
import java.util.Optional;
import mintic.misiontic.usa.ciclo3.grupo5.equipo2.SistemaHotelesAPI.modelos.Category;
import mintic.misiontic.usa.ciclo3.grupo5.equipo2.SistemaHotelesAPI.repositorios.RepositorioCategory;
... | true |
cdab61921ad9a6ab6c17198bd56a42099414618b | Java | freeman-virtual-helium/jagora | /impl/src/main/java/uk/ac/glasgow/jagora/pricer/impl/MarketSellLimitBuyTradePricer.java | UTF-8 | 505 | 2.15625 | 2 | [] | no_license | package uk.ac.glasgow.jagora.pricer.impl;
import uk.ac.glasgow.jagora.LimitBuyOrder;
import uk.ac.glasgow.jagora.MarketSellOrder;
import uk.ac.glasgow.jagora.pricer.TradePricer;
import uk.ac.glasgow.jagora.world.TickEvent;
public class MarketSellLimitBuyTradePricer implements TradePricer<MarketSellOrder, Limit... | true |
a466586cfc2a2b4198f92a636f49414ea35863ee | Java | mevryn/brewed-public | /server/src/test/java/com/brewed/core/rest/beerratings/BeerRatingsServiceTest.java | UTF-8 | 2,115 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package com.brewed.core.rest.beerratings;
import com.brewed.core.model.beer.Beer;
import com.brewed.core.model.beercharatings.BeerRating;
import com.brewed.core.model.beercharatings.BeerRatingDto;
import com.brewed.core.model.beercharatings.BeerRatingMapper;
import com.brewed.core.model.useridentifier.UserIdentifier;
... | true |
cad548cda32d87d850e54de24ef7e98b730812d5 | Java | TheUnknown-Guy/SeleniumJavaDemo | /src/test/java/seleniumDemo/SelectClassDemo.java | UTF-8 | 3,015 | 2.828125 | 3 | [] | no_license | package seleniumDemo;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.Select;
import org.testng.annotations.A... | true |
17f66964390c7cc5da889bd5c7dc30c152e75b91 | Java | ertprs/Itenis | /src/br/edu/unifacear/testes/MostrarCarrinho.java | UTF-8 | 1,009 | 2.765625 | 3 | [] | no_license | package br.edu.unifacear.testes;
import br.edu.unifacear.bo.CarrinhoBo;
import br.edu.unifacear.classes.Carrinho;
import br.edu.unifacear.classes.Cliente;
public class MostrarCarrinho {
public static void main(String[] args) {
Carrinho c = new Carrinho();
Cliente cli = new Cliente();
cli.setIdCliente(1);
... | true |
e2e5dfe4acb579c05921aecdfbda6521813dd514 | Java | happy16123/Graduation-work | /졸업작품/src/com/reply/dto/ReplyDto.java | UTF-8 | 960 | 2.03125 | 2 | [] | no_license | package com.reply.dto;
public class ReplyDto {
private int replyNo;
private int bseq;
private String replyText;
private String replyWriter;
private String regDate;
private String updateDate;
public int getReplyNo() {
return replyNo;
}
public void setReplyNo(int replyNo) {
this.replyNo = replyNo;
}
publi... | true |
99c0148cb2ef4509bf0193412534cb7e93e7a025 | Java | Aiden-Wu/SSM | /est-db/src/main/java/com/xipin/est/db/po/client/DetailDataListPo.java | UTF-8 | 5,494 | 1.929688 | 2 | [] | no_license | package com.xipin.est.db.po.client;
import java.util.Date;
import com.xipin.est.utils.contants.Constants;
import com.xipin.est.utils.contants.ConstantsEscape;
import com.xipin.est.utils.convert.CommConvertUtils;
public class DetailDataListPo {
private String addDate;
private String dispatchDate;
private String e... | true |
f82925b1bc6f22df35e3d4dfb660f11e5325e855 | Java | lzhuor/facebook-sentiment-analysis | /src/main/java/com/semantria/mapping/output/subscription/features/Document.java | UTF-8 | 4,841 | 1.78125 | 2 | [
"MIT"
] | permissive | package com.semantria.mapping.output.subscription.features;
import javax.xml.bind.annotation.XmlElement;
/**
* Subscription' s document features mapping object
*/
public class Document
{
private Boolean model_sentiment = null;
private Boolean intentions = null;
private Boolean summary = null;
pri... | true |
156b7c398547f8e9b2d0c4facf07ef3e9a1973a3 | Java | paco-portada/ComunicaVentanas | /src/sample/PrincipalController.java | UTF-8 | 2,053 | 2.953125 | 3 | [] | no_license | package sample;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.TextArea;
/**
* Clase controladora de la ventana Principal
*
* @author JJBH
*/
public class PrincipalController implements ... | true |
7fe65c226438f475e77cf38f07f72535b3696c6a | Java | jmmo/observable | /src/main/java/org/jmmo/observable/ObservableContainerBase.java | UTF-8 | 2,166 | 2.5625 | 3 | [] | no_license | package org.jmmo.observable;
import org.jmmo.observable.event.AddedObservableEvent;
import org.jmmo.observable.event.ObservableListener;
import org.jmmo.observable.event.RemovedObservableEvent;
/**
* User: Tomas
* Date: 02.01.13
* Time: 18:06
*
* <p>Fires events:</p>
* {@link AddedObservableEvent}<br>
* {@link... | true |
a2799d9a35c50b3f3fbc322cdfe31bd22609c567 | Java | reserviert97/springboot-restful-api-epupm | /src/main/java/com/gapoktanamanah/sistemlaporan/repository/PackagingRepository.java | UTF-8 | 256 | 1.539063 | 2 | [] | no_license | package com.gapoktanamanah.sistemlaporan.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.gapoktanamanah.sistemlaporan.model.Packaging;
public interface PackagingRepository extends JpaRepository<Packaging, Long> {
}
| true |
c9534d3ca8b4b44e3d53b1d38ea00e575594c351 | Java | fermadeiral/StyleErrors | /datasalt-pangool/b0183f4e7f69dd289cf113223221b2680ba0d502/69/TestSingleFieldDeserializer.java | UTF-8 | 7,412 | 1.898438 | 2 | [] | no_license | /**
* Copyright [2012] [Datasalt Systems S.L.]
*
* 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 ... | true |
7f694de5ea0122b5883390b09918ecdf5866c1d4 | Java | FelipeJB/Entrevista-Serempre | /BackEndTareas/src/java/Negocio/UsuariosFacade.java | UTF-8 | 1,185 | 2.265625 | 2 | [] | no_license | /*
* 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 Negocio;
import Datos.Usuarios;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.P... | true |
70b0fb22f4d8f2f188f374c221de5c8472459b84 | Java | JeffersonAlmeida/workspace | /pairs/TaRGeT 6.0BeforeXML/src/TaRGeT Consistency Manager/src/java/br/ufpe/cin/target/cm/tcsimilarity/metrics/LevenshteinDistanceWordByWord.java | UTF-8 | 6,925 | 2.921875 | 3 | [] | no_license | /*
* @(#)LevenshteinDistanceWordByWord.java
*
*
* (Copyright (c) 2007-2009 Research Project Team-CIn-UFPE)
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT... | true |
27f360808eb237a2825832972c1f23c3e039d179 | Java | mystery4f/niosocket | /src/main/java/indi/shui4/ch6/aio/ch1/Case6CompletionHandlerFailed.java | UTF-8 | 2,139 | 3.078125 | 3 | [] | no_license | package indi.shui4.ch6.aio.ch1;
import java.io.IOException;
import java.nio.channels.AsynchronousFileChannel;
import java.nio.channels.CompletionHandler;
import java.nio.channels.FileLock;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import java.util.concurrent.TimeUnit;
/**
* 6.1.5 Completio... | true |
42c9951910acb79f819c60ea941cb6986a0a7aba | Java | VJSINGH202/jetform-core | /src/main/java/com/adjecti/jetform/enums/Action.java | UTF-8 | 100 | 1.703125 | 2 | [] | no_license | package com.adjecti.jetform.enums;
public enum Action {
CREATE,UPDATE,DELETE,READ, REDIRECT;
}
| true |
637b20edb743df6f5f7d62817cb34c1ee6e3c656 | Java | wetosc/DeviceCare | /DeviceCare/app/src/main/java/com/labs/fi141/devicecare/ui/LoginActivity.java | UTF-8 | 4,430 | 2.234375 | 2 | [
"MIT"
] | permissive | package com.labs.fi141.devicecare.ui;
import android.content.Intent;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widg... | true |
6eeb06c0d819ac95f6ef50dba0bc2a12447054fd | Java | kwonhyeona/algorithm | /baekjoon/boj2668.java | UTF-8 | 1,265 | 3.0625 | 3 | [] | no_license | package baekjoon;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
public class boj2668 {
static int[] map;
static boolean[] visited;
static int last, count = 0;
static ArrayList<Integer> list = new A... | true |
6166bc481017c6af8b6fa0d852d7c1c48e229423 | Java | linahal/cs | /src/model/people/Citizen.java | UTF-8 | 3,308 | 2.5625 | 3 | [] | no_license | package model.people;
import model.disasters.Disaster;
import model.disasters.Infection;
import model.disasters.Injury;
import model.events.SOSListener;
import model.events.WorldListener;
import simulation.Address;
import simulation.Rescuable;
import simulation.Simulatable;
public class Citizen implements ... | true |
f5774613bc77dd781388e5c23d8931f37423a13f | Java | winnerlm/Olympic1 | /app/src/main/java/player/dancichaxun/TranslateActivity.java | UTF-8 | 9,030 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | package player.dancichaxun;
/**
* @(#)BrowserActivity.java, 2013年10月22日. Copyright 2013 Yodao, Inc. All
* rights reserved. YODAO PROPRIETARY/CONFIDENTIAL.
* Use is subject to license terms.
*/
import android.app.Activity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.os.Handler;
impo... | true |
f94284a33bffa273a7644f6e47240511eeb59547 | Java | chenzuopeng/xllapp-api-jms | /src/main/java/org/xllapp/api/jms/JMSExterController.java | UTF-8 | 1,584 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package org.xllapp.api.jms;
import java.io.IOException;
import java.util.Date;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
... | true |
469951ea2cec88c8dace125048f2b89a75ab9c51 | Java | ddenouement/meetup | /server/src/main/java/com/meetup/repository/impl/TopicDaoImpl.java | UTF-8 | 4,691 | 2.671875 | 3 | [] | no_license | package com.meetup.repository.impl;
import com.meetup.entities.Topic;
import com.meetup.error.TopicIsUsedException;
import com.meetup.model.mapper.TopicMapper;
import com.meetup.repository.ITopicDAO;
import com.meetup.utils.constants.DbQueryConstants;
import java.util.List;
import org.springframework.beans.factory.ann... | true |
771763fe3a3ef4b0743a50b220705345a7aa69cd | Java | kbuczkowska1/B.Coffee | /app/src/main/java/com/example/android/project_1/MainActivity.java | UTF-8 | 701 | 2.328125 | 2 | [] | no_license | package com.example.android.project_1;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.Html;
import android.widget.TextView;
import static com.example.android.project_1.R.id.ourinfo;
public class MainActivity extends AppCompatActivity {
@Override
protected void... | true |
30e498cc95388b2a1eef3f0bbeba06d291840ca6 | Java | ghitacornel/testJPA | /javax-module/src/test/java/queries/simple/TestMatchWithNULL.java | UTF-8 | 2,629 | 2.4375 | 2 | [
"Unlicense"
] | permissive | package queries.simple;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import setup.TransactionalSetup;
import java.util.ArrayList;
import java.util.List;
public class TestMatchWithNULL extends TransactionalSetup {
private static List<SimpleQ... | true |
4a95d86dfd69b47374c8bdac16564b91d0f87304 | Java | abakhtiozin/WrestlerTestSolution | /src/main/java/ui/pages/SearchResultRow.java | UTF-8 | 1,969 | 2.65625 | 3 | [] | no_license | package main.java.ui.pages;
import com.codeborne.selenide.SelenideElement;
import main.java.model.Club;
import main.java.model.Region;
import main.java.model.Style;
import main.java.model.Wrestler;
import main.java.ui.Photo;
import static com.codeborne.selenide.Selenide.page;
public class SearchResultRow {
priva... | true |
64da93ed8bb469626174b7cc7e30cd42b5196073 | Java | jasminejeane/NYCProfile | /users-api/src/main/java/com/example/usersapi/User.java | UTF-8 | 250 | 1.820313 | 2 | [] | no_license | package com.example.usersapi;
import lombok.*;
import javax.persistence.*;
@Entity
@Getter @Setter
@NoArgsConstructor
@ToString @EqualsAndHashCode
public class User {
@Id @GeneratedValue
private Long id;
private @NonNull String name;
} | true |
d89430481874bac41ea73d4b699b99d44f297857 | Java | aegisql/conveyor | /conveyor-core/src/test/java/com/aegisql/conveyor/BuilderSupplierFunctionalTest.java | UTF-8 | 7,159 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | package com.aegisql.conveyor;
import static org.junit.Assert.*;
import java.time.Duration;
import java.time.Instant;
import java.util.concurrent.CancellationException;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.... | true |
c6e3c374ac0a7269fc40d530cc9fdb7e543a3732 | Java | WinX-1998/music_server | /src/main/java/com/example/music/Entity/Comment.java | UTF-8 | 1,236 | 1.929688 | 2 | [] | no_license | package com.example.music.Entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsC... | true |
2827ea574f7e8cbdf63718e14cd2dbf32424c8f0 | Java | jjrr1717/cprg251 | /eclipse-workspace/Assignment5/Assignment5/src/saitMLS/persistance/ResidentialPropertyBroker.java | UTF-8 | 11,879 | 2.859375 | 3 | [] | no_license | /**
*
* @author Jocelyn Wegen
* @version April 3, 2019
*/
package saitMLS.persistance;
import java.io.EOFException;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
i... | true |
2b383ae974a5995f7b6aca222211b2be5c6bce2c | Java | hjw010/java_88 | /src/z_prac/Thread2.java | UTF-8 | 169 | 2.046875 | 2 | [] | no_license | package z_prac;
public class Thread2 extends Thread{
@Override
public void run() {
for (int i = 0; i <200; i++) {
System.out.println("Thread2 - run");
}
}
}
| true |
46c21b8443e51e12de870854d7adc0190b31d10a | Java | Mervap/ITMO | /Web/07/src/main/java/ru/itmo/wm4/controller/UserPage.java | UTF-8 | 851 | 2.25 | 2 | [] | no_license | package ru.itmo.wm4.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import ru.itmo.wm4.domain.User;
import ru.itmo.wm4.service.UserService;
@Contro... | true |
546cbd698a703413e1e09c00cc0d6c10996e47d5 | Java | lixiaochun/BusManageSystem | /src/main/java/hong/bus/service/impl/RouteServiceImpl.java | UTF-8 | 8,897 | 2.234375 | 2 | [] | no_license | /**
*
*/
package hong.bus.service.impl;
import java.util.List;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.github.pagehelper.StringUtil;
import hong.bus.common.Const;
import hong.bus.common.Server... | true |
324b6445274557a465c4271ce90ca169cf436361 | Java | zzc03/CoHelp | /app/src/main/java/Entity/ItemNeed.java | UTF-8 | 1,427 | 2.703125 | 3 | [] | no_license | package Entity;
public class ItemNeed {
private Need need;
private String userName;
private String state;
private String head;
public ItemNeed() {
}
public ItemNeed(Need need, String userName, String state) {
this.need = need;
this.userName = userName;
this.state = ... | true |
a4de030bbeed7904ec7c35836eea9cbf6bffa84f | Java | El-Begawy/DS-1 | /LinkedListNode.java | UTF-8 | 296 | 3.40625 | 3 | [] | no_license | public class LinkedListNode {
int value;
LinkedListNode next;
LinkedListNode(int val)
{
value=val;
next=null;
}
public int getValue()
{
return value;
}
public LinkedListNode getNext()
{
return next;
}
}
| true |
de20e06769dbd59bbbd8720c491581042992a3c9 | Java | Naina-Singhal/pdms | /src/main/java/com/pdms/account/ItemsDto/VouDaEnBillsDTO.java | UTF-8 | 1,355 | 1.890625 | 2 | [] | no_license | /*
* 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 com.pdms.account.ItemsDto;
import java.io.Serializable;
/**
*
* @author naagu
*/
public class VouDaEnBillsDTO... | true |
757db3c1bbc15c9138cac5e5bbee8f8fc88bbdde | Java | YasGerotto/ExerciciosJava | /src/br/com/generataion/repetiçao/Exercicio2.java | ISO-8859-1 | 552 | 3.484375 | 3 | [
"Apache-2.0"
] | permissive | package br.com.generataion.repetiao;
import java.util.Scanner;
public class Exercicio2 {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int i, num, par =0, impar=0;
for(i=0; i <=9; i++) {
System.out.println("Digite um nmero: ");
num = s.nextInt();
if(num % 2 == 0) ... | true |
23438fdc490c04b45b1e4bfb9c3c33f5299c16a6 | Java | SyloYamtao/table-computing | /src/main/java/com/alibaba/tc/sp/input/JdbcFetcher.java | UTF-8 | 2,216 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | package com.alibaba.tc.sp.input;
import com.alibaba.tc.exception.InconsistentColumnSizeException;
import com.alibaba.tc.exception.UnknownTypeException;
import com.alibaba.tc.table.Table;
import com.alibaba.tc.table.TableBuilder;
import com.alibaba.tc.table.Type;
import java.sql.Connection;
import java.sql.PreparedSta... | true |
a438c0f34d7b11aa49ff948b16049830c1844b67 | Java | longdt/gomoku | /src/main/java/com/solt/game/util/GameUtils.java | UTF-8 | 2,172 | 2.90625 | 3 | [] | no_license | package com.solt.game.util;
import com.solt.game.gomoku.Board;
import com.solt.game.gomoku.Point;
import com.solt.game.gomoku.Replay;
import com.solt.game.gomoku.Symbol;
import javafx.util.Pair;
public class GameUtils {
public static Point i2p(Board board, int index) {
return new Point(index % board.getSi... | true |
62ca2f11b0a4d19f51983c057eea798a65f7304a | Java | AleksandrZubko/Main | /Test/src/Test.java | UTF-8 | 13,150 | 3.09375 | 3 | [] | no_license | import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.Stack;
public class Test {
public static void main(String[] args) {
Calendar calendar = new GregorianCalendar();
calendar.add(Calendar.MONTH,-1);
System.out.println(calendar.get(calendar.HOUR_OF_DAY) + ":" + ca... | true |
deca56e3c95b43454a55889c25d1221aa69cb71b | Java | luciakasman/AlgoKahoot | /src/main/java/edu/fiuba/algo3/vista/checkboxmultiplechoice/EstadoNoAgregado.java | UTF-8 | 378 | 2.234375 | 2 | [
"MIT"
] | permissive | package edu.fiuba.algo3.vista.checkboxmultiplechoice;
import edu.fiuba.algo3.modelo.Opcion;
import java.util.List;
public class EstadoNoAgregado implements EstadoCheckBoxMultipleChoice{
@Override
public EstadoAgregado modificarRespuesta(List<Opcion> respuesta, String opcion){
respuesta.add(new Opcio... | true |
1b0ec9892fa6319320caf7f427b0b0f42ccd36d6 | Java | ruiAndroid/AndroidAdvance | /framelibrary/src/main/java/com/rui/framelibrary/view/ChangeFontColorView.java | UTF-8 | 4,222 | 2.515625 | 3 | [] | no_license | package com.rui.framelibrary.view;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.os.Handler;
import android.os.Message;
import android.support.annotation.Nullable;
import android.util.AttributeS... | true |
33971ef670d857cef1f86e5b517f293ac2b10750 | Java | dx2222/2020-02-otus-spring-Levashov | /homework_10/src/main/java/ru/otus/spring/homework/dto/CommentDto.java | UTF-8 | 499 | 2.34375 | 2 | [] | no_license | package ru.otus.spring.homework.dto;
import lombok.Builder;
import lombok.Data;
import ru.otus.spring.homework.domain.Comment;
@Data
@Builder
public class CommentDto {
private Long id;
private Long bookID;
private String comment;
public static CommentDto toDto(Comment comment) {
return Comme... | true |
79ded637ecdf8685821ebc5d56031032d419d317 | Java | abhiruchikarwa/Busted | /phaseC/cs5500-spring2018-team212/src/main/java/edu/northeastern/springbootjdbc/controllers/PersonService.java | UTF-8 | 5,801 | 2.46875 | 2 | [] | no_license | package edu.northeastern.springbootjdbc.controllers;
import java.util.List;
import java.util.logging.Logger;
import org.json.JSONException;
import org.json.JSONObject;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.we... | true |
ce0cfeb5fb7ae60ab4d3170d90a0d8172983d288 | Java | FranFranJams/Java-Tower-Defense | /Tower defense/src/main/Game.java | UTF-8 | 2,501 | 2.75 | 3 | [
"MIT"
] | permissive | package main;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.InputStream;
import javax.imageio.ImageIO;
import javax.swing.JFrame;
import inputs.KeyboardListener;
import inputs.MyMouseListener;
import scenes.Menu;
import scenes.Playing;
import scenes.Settings;
public class Game exte... | true |
63eee020eff5bf1054caabb11bbf7873386af0e6 | Java | skatenerd/threading_talk | /test/MatrixTest.java | UTF-8 | 1,787 | 2.734375 | 3 | [] | no_license | import junit.framework.TestCase;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.junit.Assert.assertEquals;
import java.util.*;
/**
* Created with IntelliJ IDEA.
* User: 8thlight
* Date: 1/22/13
* Time: 11:55 PM
* To change this template use File | Settings | F... | true |
8605e55241ba28379224361aaa6c28df1748a885 | Java | JamesSwinton/HUDInterfaceTester | /app/src/main/java/com/zebra/jamesswinton/hudinterfacetester/OnImageProcessedCallback.java | UTF-8 | 260 | 1.796875 | 2 | [] | no_license | package com.zebra.jamesswinton.hudinterfacetester;
import android.graphics.Bitmap;
import java.io.File;
import java.util.List;
public interface OnImageProcessedCallback {
void onProcessed(File imageFile, Bitmap image);
void onError(String error);
}
| true |
fcbb60aeba5a3dfccdd23b3be0cd922ac35d3908 | Java | KiPetit/TestingChallenges-Selenium | /src/main/java/pageObjects/ChallengeTenLogInPageObjects.java | UTF-8 | 743 | 2.296875 | 2 | [] | no_license | package pageObjects;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import static org.openqa.selenium.support.PageFactory.initElements;
import static utils.DriverManager.driver;
public class ChallengeTenLogInPageObjects {
@FindBy(name = "username")
private WebElement usern... | true |
d55af15240a15c9fa023df304f32fee83f672e01 | Java | vanitanigade/NonIT | /NonIT/src/If_DecisionMaking/Ladder/LargestNumber.java | UTF-8 | 386 | 3.46875 | 3 | [] | no_license | package If_DecisionMaking.Ladder;
public class LargestNumber {
public static void main(String[] args) {
// TODO Auto-generated method stub
int a=10, b=20, c=30;
if(a>=b && a>=c)
System.out.println(a+" is largest number");
else if(b>=a && b>=c)
System.out.println(b+" is larget number");
... | true |
22d5f713da204f2c7263af7ac34a964ccdf3cdff | Java | simonrommel/nfv-ifa-libs | /NFV_MANO_LIBS_IFA05_VR_MGT_IF/src/main/java/it/nextworks/nfvmano/libs/ifa/vrmanagement/interfaces/elements/vstorage/VirtualStorageResouceInformation.java | UTF-8 | 2,745 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018 Nextworks s.r.l.
*
* 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 agreed to in w... | true |
75d93100693518ffdd5a57181131c10610b8102b | Java | sang5052003/ServletExam | /NBookShop_templeteWithT/src/shop/service/logic/CustomerServiceLogic.java | UTF-8 | 756 | 2.671875 | 3 | [] | no_license | package shop.service.logic;
import shop.domain.Customer;
import shop.service.facade.CustomerService;
import shop.store.facade.CustomerStore;
import shop.store.logic.CustomerStroreLogic;
public class CustomerServiceLogic implements CustomerService{
private CustomerStore store;
public CustomerServiceLogic() {
th... | true |
d4a43beeaaab5a80eabe0027d496118b624a8d8b | Java | SanadaCode/ecommerce | /main/java/com/sanada/entity/InformazioniUtente.java | UTF-8 | 2,778 | 2.34375 | 2 | [] | no_license | package com.sanada.entity;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
impor... | true |
3ad84c76984ebfdd17e2d2ce529ce2e414afe6d5 | Java | dontdrinkandroot/gitki.java | /src/main/java/net/dontdrinkandroot/gitki/wicket/headeritem/HighlightInitHeaderItem.java | UTF-8 | 660 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package net.dontdrinkandroot.gitki.wicket.headeritem;
import org.apache.wicket.markup.head.HeaderItem;
import org.apache.wicket.markup.head.JavaScriptContentHeaderItem;
import java.util.Arrays;
import java.util.List;
/**
* @author Philip Washington Sorst <philip@sorst.net>
*/
public class HighlightInitHeaderItem e... | true |
29fcc9139be30173a82c8ee91ff41d5bb29d2d8c | Java | AfzalivE/CleanArchAndroid | /daggerapp/src/main/java/com/afzaln/cleanarch/votes/VotePresenter.java | UTF-8 | 2,953 | 2.3125 | 2 | [] | no_license | package com.afzaln.cleanarch.votes;
import javax.inject.Inject;
import com.afzaln.cleanarch.domain.Choice;
import com.afzaln.cleanarch.domain.Question;
import com.afzaln.cleanarch.data.AppModel;
import com.afzaln.cleanarch.app.QuestionsScope;
import nz.bradcampbell.compartment.BasePresenter;
import rx.Observer;
impor... | true |
5e8a3014f88f66c6c8ba6c047eddd56669f86f47 | Java | IAmDavidAxel/EasyCoiffure | /src/main/java/domain/user/credential/CredentialRepository.java | UTF-8 | 367 | 2.109375 | 2 | [] | no_license | package domain.user.credential;
import domain.user.Credential;
import infrastructure.ObjectNotFoundException;
import infrastructure.exception.PersistenceException;
public interface CredentialRepository {
Credential findByUsername(String username) throws ObjectNotFoundException;
void save(Credential credential, S... | true |
0e329ec84e4cc5c2ea42ef28fbcf9fea9fb8f2ef | Java | sotowang/access-control-system | /src/main/java/xjtu/soto/access/controller/DepartmentController.java | UTF-8 | 2,160 | 2.171875 | 2 | [] | no_license | package xjtu.soto.access.controller;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet... | true |
13d5bd6c239e64f3105fb7114044201cc5dac42e | Java | laytonro/NeuralNets | /ReadDigitFile.java | UTF-8 | 668 | 2.765625 | 3 | [] | no_license | import java.util.List;
import java.util.ArrayList;
//Layton Rosenfeld
public class ReadDigitFile {
public static Example[] ReadDigitFile(String textFile) {
SimpleFile file = new SimpleFile(textFile);
List<Example> examples = new ArrayList<Example>();
for (String line : file) {
double[] inputs = new ... | true |
7d7dac89de9a1b05fc317870610caad509540bdb | Java | ascriptmaster/StS-DuelistMod | /src/main/java/duelistmod/actions/common/EvokeRandomOrbAction.java | UTF-8 | 1,292 | 2.46875 | 2 | [
"Unlicense"
] | permissive | package duelistmod.actions.common;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.core.Settings;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.orbs.AbstractOrb;
import com.megacrit.... | true |
871b8c0ba7edf92126aa06d5f68887b38ea03662 | Java | xudadaniubi/healthBigData | /src/main/java/com/boku/www/utils/DownloadCommonExcelUtils.java | UTF-8 | 4,354 | 2.671875 | 3 | [] | no_license | /**
* Copyright (C), 2015-2018, XXX有限公司
* FileName: DownloadExcelUtils
* Author: dell
* Date: 2018/10/10 11:39
* Description: excel文件下载工具类
* History:
* <author> <time> <version> <desc>
* 作者姓名 修改时间 版本号 描述
*/
package com.boku.www.utils;
import or... | true |
5e9a125d5ed8f2d5be914418b4331bcd77b3bfc9 | Java | SAU-2021-Projects/Discussion-Forum | /rest/rest/src/main/java/com/auproject/rest/service/EmailNotificationService.java | UTF-8 | 2,913 | 2.078125 | 2 | [] | no_license | package com.auproject.rest.service;
import com.auproject.rest.EmailService;
import com.auproject.rest.dao.Notification;
import com.auproject.rest.dao.Question;
import com.auproject.rest.repository.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ... | true |
f557a18afd7d9c6dc7f4fdbec2a268aa2340a965 | Java | YYunFeng/appstore_oss | /appstore-oss-manager/src/main/java/com/jd/cms/manager/appManagement/SalerActiveManager.java | UTF-8 | 417 | 1.804688 | 2 | [] | no_license | package com.jd.cms.manager.appManagement;
import com.jd.cms.domain.clientmanager.SalerActive;
import com.jd.common.util.PaginatedList;
/**
* Created by YYF on 14-5-9.
*/
public interface SalerActiveManager {
/**
* 促销员活跃度
*
* @return
*/
PaginatedList<SalerActive> salerActive(int pageInd... | true |
848dc6c9d306f1eb61aad21dbdf69155a41db6de | Java | zemiak/movies-st | /src/test/java/com/zemiak/movies/config/ConfigServiceTest.java | UTF-8 | 1,138 | 2.640625 | 3 | [] | no_license | package com.zemiak.movies.config;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.io.StringReader;
import javax.json.Json;
import javax.json.JsonObject;
import com.zemiak.... | true |
06d25229daffefbd6dca2849c6b8608559463ec7 | Java | perlaExport/filmMap-server | /src/main/java/pl/perlaexport/filmmap/user/current/controller/CurrentUserController.java | UTF-8 | 541 | 2.03125 | 2 | [] | no_license | package pl.perlaexport.filmmap.user.current.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import pl.perlaexport.filmmap.user.current.CurrentUser;
import pl.perlaexport.filmmap.user.model.UserEntity;
import javax.servlet.http.HttpS... | true |
15c6803105158ef65ecea29bdd16a72d25d891db | Java | artBaby/geotop | /src/test/java/com/geotop/geotopproject/loader/facebook/impl/FBLoaderImplTest.java | UTF-8 | 1,438 | 1.859375 | 2 | [] | no_license | package com.geotop.geotopproject.loader.facebook.impl;
import com.geotop.geotopproject.loader.helper.CollisionResolver;
import com.geotop.geotopproject.model.places.Place;
import com.geotop.geotopproject.model.places.api.FbData;
import com.geotop.geotopproject.model.places.deserializer.PlaceDeserializer;
import org.ju... | true |
02f1de5c86546dcf3f3a38faf15d5cefa4a951a9 | Java | Cali778/Examen_Lp | /app/src/main/java/com/example/usuario/examenii_lpiii/PersonListAdapter.java | UTF-8 | 1,871 | 2.5 | 2 | [] | no_license | package com.example.usuario.examenii_lpiii;
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.example.usuario.examenii_lpiii.bean.P... | true |
5244868bcdeebe4ed1499737ff84a2dd885ed802 | Java | kenhiti/xy-inc | /src/test/java/com/zup/dataBuilder/ItemPedidoTestDataBuilder.java | UTF-8 | 459 | 2.375 | 2 | [] | no_license | package com.zup.dataBuilder;
import java.util.ArrayList;
import java.util.List;
import com.zup.domain.ItemPedido;
public class ItemPedidoTestDataBuilder {
public ItemPedido build() {
return new ItemPedido(1l, new ProdutoTestDataBuilder().build(), 1l);
}
public List<ItemPedido> buildList(){
L... | true |
61012799baa47d8769d9ee841ab0dcf733fa7132 | Java | IsuraNimalasri/Flink-Sensor-Stream | /src/main/java/io/intellisense/testproject/eng/function/AnomalousScore.java | UTF-8 | 3,595 | 2.484375 | 2 | [] | no_license | package io.intellisense.testproject.eng.function;
import io.intellisense.testproject.eng.model.DataPoint;
import lombok.Data;
import lombok.extern.flogger.Flogger;
import org.apache.flink.api.java.tuple.Tuple3;
import org.apache.flink.streaming.api.functions.windowing.ProcessWindowFunction;
import org.apache.flink.str... | true |
784f56438fdbe14627c63b382347d6c41dab2ebe | Java | 6475005/RCP | /SuperMarket_Rcp/src/supermarket/dialog/rePassword.java | GB18030 | 3,564 | 2.671875 | 3 | [] | no_license | package supermarket.dialog;
import javax.swing.JOptionPane;
import org.eclipse.swt.widgets.Dialog;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widg... | true |
fe935edc2c71fdf686de991973a2608fefefbb19 | Java | juanpabloprado/SpringBootTodo | /src/main/java/com/juanpabloprado/todo/ui/TodoChangeListener.java | UTF-8 | 147 | 1.726563 | 2 | [] | no_license | package com.juanpabloprado.todo.ui;
import com.juanpabloprado.todo.Todo;
public interface TodoChangeListener {
void todoChanged(Todo todo);
}
| true |
f7335d91fe03adc676f26ed6e767b5700b8059b5 | Java | mdomox/CARMACloud | /src/cc/geosrv/xodr/Arc.java | UTF-8 | 2,301 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | /*
* 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 cc.geosrv.xodr;
import cc.geosrv.Mercator;
import cc.geosrv.Proj;
import cc.util.Arrays;
import cc.util.Geo;
import... | true |
7f32971a12060fd89edf1a098e2d8b4a69712b1b | Java | AhmedZaki82/NewsFeedApp-Stage2 | /app/src/main/java/com/example/android/newsfeedapp/NewsAdapter.java | UTF-8 | 2,430 | 2.59375 | 3 | [] | no_license | package com.example.android.newsfeedapp;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView... | true |
b97b00f609fa24d4321e832eaa78ff73d16be108 | Java | BhanupratapsinghM-Dandolia/product-service | /ProductPriceAPI/src/main/java/com/myretail/productapi/ProductPriceApiApplication.java | UTF-8 | 674 | 1.5625 | 2 | [] | no_license | package com.myretail.productapi;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.cassandra.CassandraDataAutoConfiguration;
im... | true |
0a380867881d63c9355b5de5be6470d226fd1432 | Java | agathastellatasya/jadwalkereta | /src/main/java/jadwalkereta/view/ViewStation.java | UTF-8 | 4,888 | 3.09375 | 3 | [] | no_license | package jadwalkereta.view;
import jadwalkereta.controller.*;
import java.util.Scanner;
public class ViewStation {
private int pilihan;
ControllerStation ctrStation;
Scanner input = new Scanner(System.in);
public ViewStation(ControllerStation ctrStation) {
this.ctrStation = ctrStation;
}
... | true |
d6bce0760e0734e08ef322cf08744ded74051efc | Java | EmberOfAsh/bc | /src/main/java/com/zltel/broadcast/um/service/OrganizationTypeService.java | UTF-8 | 938 | 1.992188 | 2 | [] | no_license | package com.zltel.broadcast.um.service;
import com.zltel.broadcast.common.json.R;
import com.zltel.broadcast.um.bean.OrganizationType;
public interface OrganizationTypeService {
int deleteByPrimaryKey(Integer uid);
int insert(OrganizationType record);
int insertSelective(OrganizationType record);
Orga... | true |
b3e3df8ad1e047f2dbf0cd2ae8e52731aefe739e | Java | fju-hank/final-project-for-1092-java2-CWC2 | /src/main/java/com/chien/Website.java | UTF-8 | 1,399 | 3.015625 | 3 | [] | no_license | package com.chien;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Scanner;
public class Website {
String year;
String month;
public Website(){
super();
}
public boolean verified(){
System.out.print("輸入你想發票兌獎號碼的年月份: ");
Scanner scan = new Sc... | true |
163a280ac1f54acf07d500de57374f6ecbacf0fc | Java | forteip/University-Projects | /Mark Checker/L02_10-master/Project/src/zodiac/util/PDFGenerator.java | UTF-8 | 2,524 | 2.90625 | 3 | [] | no_license | package zodiac.util;
import com.itextpdf.text.Anchor;
import com.itextpdf.text.Chapter;
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.Font;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.Section;
import com.itextpdf.text.pdf.PdfWriter;
import java... | true |
d8beb0f5f4bf9ffd388b67abd13cac573a1127e1 | Java | miguelamores/PdfUnion | /src/main/java/ec/edu/ute/pdf/union/PdfUnion/PdfUnionApplication.java | UTF-8 | 739 | 1.867188 | 2 | [] | no_license | package ec.edu.ute.pdf.union.PdfUnion;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springfra... | true |
b060a3b3267865512f3902f5a3ef8640a76e4981 | Java | hankkuu/namtang | /src/main/java/kosta/namtang/talkbook/model/domain/bill/id/PurchaseBookId.java | UTF-8 | 473 | 2.078125 | 2 | [] | no_license | package kosta.namtang.talkbook.model.domain.bill.id;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import java.io.Serializable;
@EqualsAndHashCode
@Getter
@NoArgsConstruct... | true |
598dfb146d4c5a9b5b3c24e8b000a1028f59f0e2 | Java | Chenchicheng/file_viewer | /file-conventer/src/test/java/com/filepreview/FileTest.java | UTF-8 | 5,616 | 2.75 | 3 | [] | no_license | package com.filepreview;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.Lists;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import java.io.File;
import java.io.IOException;
import java.util.Arra... | true |
829b02a132735db7186363dcffd5360e184b0b95 | Java | wusanity/paperless-meeting-system | /src/test/java/com/szsm/meeting/pattern/decorator/RingEquip.java | UTF-8 | 316 | 2.421875 | 2 | [] | no_license | package com.szsm.meeting.pattern.decorator;
/**
* @description:
* @author: LiuJun
* @date: 2020/8/26 10:38
*/
public class RingEquip implements IEquip {
@Override
public int calculateAttack() {
return 5;
}
@Override
public String description() {
return "魔龙戒";
}
}
| true |
19d46fabea0be8b9fa19ff97018f256d44f17d1b | Java | magasol/BSK | /Client/src/blowfishapp/keys/KeysGenerator.java | UTF-8 | 8,427 | 2.4375 | 2 | [] | no_license | /*
* 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 blowfishapp.keys;
import blowfishapp.BlowFishApp;
import blowfishapp.decryptionModes.Decryption;
import blowfishapp.decryption... | true |
65f99ebe0b668cbdf55426a2bd2f53ea83d89006 | Java | jenkinsci/confluence-publisher-plugin | /src/main/java/com/myyearbook/hudson/plugins/confluence/api/BearerTokenAuthWebResourceProvider.java | UTF-8 | 1,743 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package com.myyearbook.hudson.plugins.confluence.api;
import com.atlassian.confluence.rest.client.authentication.AuthenticatedWebResourceProvider;
import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.WebResource;
import org.apache.commons.lang3.ArrayUtils;
import org.slf4j.Logger;
import org.slf4j... | true |
4c8f503d9bac3153fc1eb989493e424246373b75 | Java | 1jmssx/ApolloDemo | /spring-boot-encrypt/src/main/java/com/tl/demo/springboot/UseageTestApplication.java | UTF-8 | 1,053 | 2.015625 | 2 | [] | no_license | package com.tl.demo.springboot;
import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import com.tl.demo.springboot.config.TestConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
i... | true |
33e357c8c8f7dd4df479cb2ae73d286261c307d0 | Java | NikolaevAnton/TestTaskForRealProject | /src/UserCreate.java | UTF-8 | 5,679 | 3.21875 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
/**
* Created by nikolaev on 25.04.2016.
*/
public class UserCreate {
//static ArrayList<User> users = new ArrayList<>();
static BufferedReader reader = new Buffer... | true |
667c32b75fabfb6e2a32106a9b678f588ce4bd2e | Java | aligori/Supermarket-Software | /src/view/SellsPurchasesChart.java | UTF-8 | 8,650 | 2.484375 | 2 | [] | no_license | package view;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import... | true |
aa8a4ba5e163dcdedc636ef5935b90cc869f5a5c | Java | fifepls/CinemaProject | /src/test/java/com/cinema/core/entity/SlotTest.java | UTF-8 | 1,020 | 2.515625 | 3 | [] | no_license | package com.cinema.core.entity;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
class SlotTest {
/* @Test
void testEquals() {
Slot slot1 = new Slot();
slot1.setId(1L);
Slot slot2 = new Slot();
slot1.setId(1L);
Assertions.assertEquals(slot1,... | true |
ad860f7001b49f51b06085600014b692dbb595b8 | Java | lqwwql/EasyWeather | /app/src/main/java/com/main/easyweather/models/WeatherDayBean.java | UTF-8 | 783 | 2.421875 | 2 | [] | no_license | package com.main.easyweather.models;
/**
* Created by Administrator on 2019/3/8.
*/
public class WeatherDayBean {
private String day;
private String image;
private String tempMax;
private String tempMin;
public String getDay() {
return day;
}
public void setDay(String day) {
... | true |
50472cf7b097640f01a5086e9367dd5e3c19f3bb | Java | kunwar22/unifui | /src/main/java/in/co/srdt/unif/enums/EmailType.java | UTF-8 | 284 | 2.1875 | 2 | [] | no_license | package in.co.srdt.unif.enums;
public enum EmailType {
Work_Email("Work_Email"),
Home_Email("Home_Email");
private String description;
private EmailType(String description) {
this.description = description;
}
public String getDescription() {
return description;
}
}
| true |
21f910d1f458212d399374d0afc11ada2c109e85 | Java | MishuaiNiou/News | /Book/src/com/example/book/FragmentPage4.java | GB18030 | 3,580 | 2.234375 | 2 | [] | no_license | package com.example.book;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.v... | true |
502636658d54b8ee1971db717a294a7110ffa55b | Java | aureole-420/coding-practice | /src/algorithm_dp/hackerrank_medium_LongestCommonSubsequences.java | UTF-8 | 1,565 | 3.59375 | 4 | [] | no_license | package algorithm_dp;
import java.util.*;
//https://www.hackerrank.com/challenges/dynamic-programming-classics-the-longest-common-subsequence/problem
// states: C[i,j] = LCS(x[1,...,i],y[1,...,j])
// init:
// transfer function: C[i,j] = C[i-1,j-1] + 1 if x[i] == y[j]
// 反过来每次斜对角的时候: x[i] == y[j]时, result.addFirst(x[... | true |
e9c84ac444707a9e4cd8eb86ebbbd5069ee30807 | Java | mahesh-pnp/WEEK | /Week4_epam/src/main/java/EPAM_WEEK4/CompoundInterest.java | UTF-8 | 1,236 | 3.21875 | 3 | [] | no_license | package EPAM_WEEK4;
import java.util.logging.Logger;
import WEEK4_Epam.HouseConstructionCostMain;
import java.util.Scanner;
public class CompoundInterest {
static Logger logger = Logger.getLogger(CompoundInterest.class.getName());
public double calCompoundInterest()
{
Scanner input = new Scanner(Syst... | true |
0f6d6f582be20aadabdf841de03a8f46d2b733fa | Java | zhongxingyu/Seer | /Diff-Raw-Data/1/1_e2ff1cf65994ddb5e0e9391c4bfda0fb90bb93b0/KingdomHallsController/1_e2ff1cf65994ddb5e0e9391c4bfda0fb90bb93b0_KingdomHallsController_s.java | UTF-8 | 2,388 | 2.28125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package uk.org.rbc1b.roms.controller.kingdomhall;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stere... | true |
8feee31c64aea1357e2b34379f8da72d9d1e1ac6 | Java | moremagic/MyLisp | /src/test/java/mylisp/core/AtomNilTest.java | UTF-8 | 512 | 2.109375 | 2 | [] | no_license | package mylisp.core;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class AtomNilTest {
@Test
void singltonTest() {
assertTrue(AtomNil.INSTANCE == AtomNil.getInstance());
assertTrue(AtomNil.getInstance() == AtomNil.getInstance());
}
@Test
vo... | true |
97d58d2808b0620f0b95a165bc9602f8da44d866 | Java | saluf/android-project-movies | /app/src/main/java/com/salab/project/projectmovies/model/MovieResponse.java | UTF-8 | 460 | 2.453125 | 2 | [
"MIT"
] | permissive | package com.salab.project.projectmovies.model;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* The desired list of movies is preserved in 'results' field of fetched JSON Object,
* so this helper class make gson can automatically resolve in to POJO.
*/
public class MovieResponse {
... | true |
6a5f5b72abbb13eba3fa1de75a8837fe163ec78a | Java | Coder-Asura/demo | /Architecture/PAGING/AndroidDailyText-master/app/src/main/java/com/chs/androiddailytext/widget/WorkStatisticView.java | UTF-8 | 2,696 | 2.25 | 2 | [] | no_license | package com.chs.androiddailytext.widget;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;
import androidx.annotation.Nullable;
import androidx.core.content.ContextCompat;
import android.util.AttributeSet;
import android.util.Log;
import andro... | true |
5ef06551c19253bdc921214285d32bbef15583d1 | Java | gwt-jelement/gwt-jelement | /src/main/java/gwt/jelement/html/HTMLOptionsCollection.java | UTF-8 | 2,165 | 1.742188 | 2 | [
"MIT"
] | permissive | /*
* Copyright 2017 Abed Tony BenBrahim <tony.benrahim@10xdev.com>
* and Gwt-JElement project contributors.
*
* 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.o... | true |
b4468792431124edd2174152f2fc6277c5a1b1a0 | Java | IlyaMesh/Hotel_Booking | /core/src/main/java/ru/java/HotelBooking/domain/HotelChain.java | UTF-8 | 1,191 | 2.796875 | 3 | [] | no_license | package ru.java.HotelBooking.domain;
public class HotelChain {
private Long hotelchain_id;
private String name;
private String country;
public HotelChain(){}
public HotelChain(String name,String country){
this.name = name;
this.country = country;
}
public HotelChain(Long... | true |
79882e1eba627db78b1b190b7bacdbcb2a4c4a9e | Java | fattyLol/epam-java-cources | /src/main/java/com/epam/university/java/core/task005/Task005Impl.java | UTF-8 | 984 | 3.21875 | 3 | [] | no_license | package com.epam.university.java.core.task005;
public class Task005Impl implements Task005 {
@Override
public PiHolder findPi(int digits) {
if (digits <= 0 || digits > 10) {
throw new IllegalArgumentException();
}
int min = (int) Math.pow(10, digits - 1);
int max =... | true |
5f709b264acd6af75720dd591ad470882d470540 | Java | leegreiner/baseProject | /src/main/java/edu/duke/rs/baseProject/security/password/PasswordNeverExpiresStrategy.java | UTF-8 | 270 | 2.265625 | 2 | [] | no_license | package edu.duke.rs.baseProject.security.password;
import edu.duke.rs.baseProject.user.User;
public class PasswordNeverExpiresStrategy implements PasswordExpirationStrategy{
@Override
public boolean isPasswordExpired(User user) {
return false;
}
}
| true |