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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
439ade7d89e0076e17ba6d1588f98871fa5d643b | Java | andyb001/LogIt | /src/main/java/com/whittle/logit/dto/ItemDTO.java | UTF-8 | 2,431 | 2.171875 | 2 | [] | no_license | package com.whittle.logit.dto;
import java.util.Date;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class ItemDTO {
private String id;
private String name;
private String description;
private String itemTypeId;
private String imageUrl;
private Date purchaseDate;
private Double cost... | true |
34aa9d0875ee2c7d9aa75dc3c4bdc6aaa0c6caee | Java | akashsingh8998/user-management | /src/test/java/com/sapient/exception/TestUserNotFoundException.java | UTF-8 | 1,407 | 2.21875 | 2 | [] | no_license | package com.sapient.exception;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.c... | true |
2a34f88674e3e91d572876ac2b03205e7fd7fb42 | Java | lightning-zoro/LeetCode | /src/leetcode/FourSumCount.java | UTF-8 | 915 | 3.515625 | 4 | [] | no_license | package leetcode;
import java.util.HashMap;
import java.util.Map;
public class FourSumCount {
public static int fourSumCount(int[] A, int[] B, int[] C, int[] D) {
Map<Integer,Integer> map = new HashMap<Integer, Integer>();
//第一次吧两个集合的俩数之和当key存入map value 出现的次数
for (int i = 0; i < A.l... | true |
44f18ee8d0c46f13f596735b5d6ea07c9ad01285 | Java | sarita-panigrahi/springjunittest | /src/main/java/org/sdrc/boot/web/model/ReportModel.java | UTF-8 | 747 | 1.992188 | 2 | [] | no_license | package org.sdrc.boot.web.model;
import java.sql.Timestamp;
public class ReportModel {
private Integer id;
private Timestamp createdDate;
private String filePath;
private Boolean isLive;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
pub... | true |
4d9d2df5f610a44b10e960b2affd816262f3939a | Java | zhigangonline/check-excel | /src/main/java/com/use/vo/ImportExcelVo.java | UTF-8 | 298 | 1.609375 | 2 | [] | no_license | package com.use.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
public class ImportExcelVo<T> {
private String templateFilePath;
private String filePath;
private String importListName;
private Class<T> clazz;
}
| true |
5a7304c82fc6d4b5993b5a37c4ba188b499a0d08 | Java | lejuno/PopularMovies | /app/src/main/java/com/lejuno/popularmoviesapp/data/MoviesContract.java | UTF-8 | 3,230 | 2.5625 | 3 | [] | no_license | package com.lejuno.popularmoviesapp.data;
/**
* Created by nomoto on 8/21/15.
*/
import android.content.ContentResolver;
import android.content.ContentUris;
import android.net.Uri;
import android.provider.BaseColumns;
/**
* Defines table and column names for the weather database.
*/
public class MoviesContract {... | true |
21049ae664bf2719c8d654e8d5e9eafc182661a6 | Java | IvanYakimtsov/UselessJavaProjects | /Graphics editor/src/com/ivan/imageEditor/fileActions/LoadAction.java | UTF-8 | 1,648 | 2.6875 | 3 | [] | no_license | package com.ivan.imageEditor.fileActions;
import com.ivan.imageEditor.panels.DrawingManager;
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
/**
* Created by Ivan on 11.03.2017.
*/
public c... | true |
fff2e375a79f70bca0a3fe61dd0e076d59e63dd3 | Java | nithijamuna/HARIST | /com.harsit.arti/src/test/java/com/harsit/com/harsit/arti/Test_1.java | UTF-8 | 692 | 1.6875 | 2 | [] | no_license | package com.harsit.com.harsit.arti;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.Test;
public class Test_1
{
@Test
public static void Arul()
{
System.setProperty("... | true |
624b1ab3fac911c9e7609858e8f59c2c25c6c0ed | Java | GeorgiaDesigns/Reserva-Teatro | /src/teatro/TelaReservarIngresso.java | UTF-8 | 74,343 | 1.960938 | 2 | [] | no_license | package teatro;
import DAOs.conexao;
import DAOs.Espetaculos;
import java.sql.ResultSet;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JButton;
import javax.swing.JOptionPane;
import teatro.Assentos;
public class TelaReservarIngresso extends javax.swing.JFrame
{
//private JB... | true |
6ec3ccdf4224771891aa85c63f6d7bf31b60ad66 | Java | gansert/MineFlowCored | /MineFlowCore/src/gmail/inkzzzmc/com/mfc/commands/api/CommandManager.java | UTF-8 | 1,918 | 2.3125 | 2 | [] | no_license | package gmail.inkzzzmc.com.mfc.commands.api;
import gmail.inkzzzmc.com.mfc.Main;
import gmail.inkzzzmc.com.mfc.commands.*;
import java.util.HashSet;
import java.util.Set;
import org.bukkit.plugin.java.JavaPlugin;
public class CommandManager {
/**
* HashSet of commands.
*/
private static Set<C... | true |
5254cec3a66c62f58cb52f7a2ff2d32363614ed1 | Java | eunsukimme/2018_JAVA_PROGRAMMING | /SwingPractice/src/KChatClient.java | UHC | 3,844 | 2.75 | 3 | [] | no_license | package Chat;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.io.*;
import java.net.Socket;
public class KChatClient extends JApplet implements Runnable, ActionListener {
DataInputStream is; // stream
DataOutputStream os; // stream
JTextField login, type... | true |
4762e3004a83ce44935306029054f8352bd6a953 | Java | niksust/WebBestBuy | /src/main/java/com/spring/shopping/model/Order.java | UTF-8 | 1,502 | 2.046875 | 2 | [] | no_license | package com.spring.shopping.model;
import java.math.BigDecimal;
import java.util.Date;
public class Order {
private Long orderId;
private java.util.Date createdDate;
private java.util.Date updatedDate;
private String emailAddress;
private String orderStatus;
private BigDecimal orderTotal;
private Long custome... | true |
ff3a1fb187a5bccf8c12141a5e130a116495fcea | Java | KimJinYounga/SNS_gooroomee | /src/main/java/com/gooroomee/api/comment/CommentsController.java | UTF-8 | 2,650 | 2.09375 | 2 | [
"MIT"
] | permissive | package com.gooroomee.api.comment;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.gooroomee.api.post.detail.PostDetailService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
impo... | true |
3fc12482bc8fd337e7eee5af4d4d95a0b4dddd3b | Java | CoisasAvancadas/viserion | /src/main/java/dao/InscricaoEventoDAO.java | UTF-8 | 462 | 1.65625 | 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 dao;
import model.InscricaoEvento;
import javax.enterprise.context.RequestScoped;
/**
*
* @author divensi
*/
@RequestScope... | true |
7d60f6fa4556008bf9cd2959543dca5e668c632b | Java | sauravjaiswalsj/Competitive-Programming | /codes/java/practice/baiscs/Bitwise.java | UTF-8 | 245 | 3.40625 | 3 | [] | no_license | public class Bitwise{
public static void main(String[] args){
int a=3;
int b=6;
int c = a | b;
int d=a&b;
int e=a^b;
int g=~a & 0x0f;
int t=0x0f;
System.out.printf(" or %d \nand %d\nxor %d\nnot %d \n0x0f = %d",c,d,e,g,t);
}
}
| true |
94dba892c3cfdf90d38de4b23576e269ec983cdc | Java | holly199975/Atm | /app/src/main/java/com/holly/atm/GenderActivity.java | UTF-8 | 1,032 | 2.046875 | 2 | [] | no_license | package com.holly.atm;
import android.content.Intent;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import static android.content.Intent.FLAG_ACTIVITY_CLEAR_TOP;
import static android.content.Intent.... | true |
b66a87e2d4df96d36c3d2d308140625f63aee8e3 | Java | iCodeIN/AP-CS | /Classwork/GrimshawLine/LineMain.java | UTF-8 | 564 | 3.296875 | 3 | [] | no_license | public class LineMain {
public static void main(String[] args) {
int x1 = 0, y1 = 0, x2 = 50, y2 = 50;
Point begin = new Point(x1,y1), end = new Point(x2,y2);
Line test1 = new Line(begin, end);
Line test2 = new Line(x1,y1,x2,y2);
System.out.println(test1.getP1().equals(test2.getP... | true |
418f36e9945a42cd7b706d4a4644680ec1b09f02 | Java | weijunfeng/googlePlay | /GooglePlay56/src/org/itheima56/googleplay/holder/CategoryTitleHolder.java | UTF-8 | 1,031 | 2.25 | 2 | [] | no_license | package org.itheima56.googleplay.holder;
import org.itheima56.googleplay.bean.CategoryBean;
import org.itheima56.googleplay.utils.UIUtils;
import android.graphics.Color;
import android.view.View;
import android.widget.TextView;
/**
* @项目名: GooglePlay56
* @包名: org.itheima56.googleplay.holder
* @类名: CategoryTitleHo... | true |
c2cda49f7a4d97a2b4bd488be29cf7a566a6a12e | Java | jeantravassos/java-algorithms | /src/main/java/com/leetcode/exercises/BinaryTreeLevelOrderTraversal.java | UTF-8 | 1,701 | 3.59375 | 4 | [] | no_license | package com.leetcode.exercises;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
public class BinaryTreeLevelOrderTraversal {
public static void main(String[] args) {
BinaryTreeLevelOrderTraversal btlot = new BinaryTreeLevelOrderTraversal();
TreeNode tnRoo... | true |
2bf5efe84b4c2ef4a074f0bbdd9cf50b208bbac2 | Java | ChangAnOuYang/xvnan | /src/main/java/com/xvnan/jpbc/plaf/pairing/accumulator/MultiThreadedMulPairingAccumulator.java | UTF-8 | 633 | 2.3125 | 2 | [] | no_license | package com.xvnan.jpbc.plaf.pairing.accumulator;
import com.xvnan.jpbc.api.Element;
import com.xvnan.jpbc.api.Pairing;
import com.xvnan.jpbc.plaf.pairing.accumulator.AbstractPairingAccumulator;
/**
* @author Angelo De Caro (jpbclib@gmail.com)
* @since 2.0.0
*/
public class MultiThreadedMulPairingAccumulator extend... | true |
f0a6e16c8c1e4e997b45783821628c3762a0cfc6 | Java | BlackHillSoftware/easysmf-samples | /sample-reports/src/main/java/com/smfreports/zedc/ZedcByJob.java | UTF-8 | 3,802 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | package com.smfreports.zedc;
import java.io.IOException;
import java.util.*;
import com.blackhillsoftware.smf.*;
import com.blackhillsoftware.smf.smf30.*;
public class ZedcByJob
{
/**
*
* List compression statistics for jobs using zEDC compression.
*
*/
public static void main(String[] args)... | true |
72f292b17082ed5bd7f0af1dc238a915afe45725 | Java | tusjain/java | /SpringJPAFromSpringDataBook/src/test/java/com/oreilly/springdata/jpa/core/QuerydslProductRepositoryIntegrationTest.java | UTF-8 | 1,899 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2012 the original author or authors.
*
* 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 applica... | true |
b9911c5f0be51e28b3036380844a49bae4fa919e | Java | 91song/Android-Biiduu | /app/src/main/java/cn/biiduu/biiduu/data/repository/CoinTingRepository.java | UTF-8 | 1,468 | 2.21875 | 2 | [] | no_license | package cn.biiduu.biiduu.data.repository;
import cn.biiduu.biiduu.data.retrofit.RetrofitHelper;
import cn.biiduu.biiduu.protocol.CoinTingDetailsProtocol;
import cn.biiduu.biiduu.protocol.CoinTingListProtocol;
import rx.Observable;
public class CoinTingRepository extends BaseRepository {
private static CoinTingRep... | true |
edf28784a91b71206c6e196ce4ef2e0e4e08207c | Java | JackAbel/voyage | /common/src/main/java/cn/sohu/jack/test/MyInvocationHandler.java | UTF-8 | 930 | 2.484375 | 2 | [] | no_license | package cn.sohu.jack.test;
import sun.misc.PerformanceLogger;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
/**
* @description:
* @author: Xiangbao Jin
* @since 2020/9/10 5:37 PM
*/
public class MyInvocationHandler implements InvocationHandler {
... | true |
684c87047cf91611bcdffef3cdb8c68428f87e0c | Java | xutto/architecture | /src/main/java/com/practice/controller/HomeController.java | UTF-8 | 2,780 | 2.3125 | 2 | [] | no_license | package com.practice.controller;
import com.practice.config.PropertiesConfig;
import com.practice.extractor.ModelExtractor;
import com.practice.model.AnimalModel;
import com.practice.model.PersonModel;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springfra... | true |
db68532601e7836e497ac2d31cbda1da9728c72d | Java | babu967/EasyTourManager | /app/src/main/java/com/codex/easytourmanager/fragments/EventFragment.java | UTF-8 | 4,109 | 1.984375 | 2 | [] | no_license | package com.codex.easytourmanager.fragments;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.app.Fragment;
import android.support.v7.widget.Linear... | true |
7337764151a47ec6f1e53dde9b6cec7959f00173 | Java | App-Lancer/student-scoring | /src/test/StudentIdTestCase.java | UTF-8 | 385 | 2.265625 | 2 | [] | no_license | //$Id$
package test;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
import main.entities.StudentId;
class StudentIdTestCase {
@Test
void test() {
StudentId studentId = new StudentId("UG", 1234);
assertEquals("UG", studentId.getIdType());
assertEquals(1234, studentId... | true |
8eea525ee70487c63bdebada3930a813d4d8dac2 | Java | JessedeDoes/DutchTagger | /src/main/java/nl/namescape/nelexicon/ElementConcordancer.java | UTF-8 | 3,477 | 2.4375 | 2 | [] | no_license | package nl.namescape.nelexicon;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import nl.namescape.tei.TEITagClasses;
import nl.namescape.tokenizer.TEITokenizer;
import nl.namescape.util.XML;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import java.util.UUID;
public... | true |
5c544e1cea9830818320c46d12a01e217d5e6f99 | Java | Markoy8/Foundry | /Components/LearningCore/Source/gov/sandia/cognition/learning/algorithm/hmm/ParallelHiddenMarkovModel.java | UTF-8 | 16,733 | 2.421875 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | /*
* File: ParallelHiddenMarkovModel.java
* Authors: Kevin R. Dixon
* Company: Sandia National Laboratories
* Project: Cognitive Foundry
*
* Copyright Feb 4, 2010, Sandia Corporation.
* Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
* ... | true |
e6ef598d4239b7472b9d93ffbbaedc0faf6e11ce | Java | Morgancentral99/CreativeCore | /src/me/morgancentral99/encrypted/commands/StaffApp.java | UTF-8 | 583 | 2.171875 | 2 | [] | no_license | package me.morgancentral99.encrypted.commands;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import net.md_5.bungee.api.ChatColor;
public class StaffApp implements CommandExecutor {
@Override
public boolean onCommand(CommandSender s, Command... | true |
8b35a6fcfd551e3487992584b8d30d68e2512bef | Java | zengzw/LLD-JOB | /job/job-po/src/main/java/com/tsh/job/po/CommomAreaPo.java | UTF-8 | 1,381 | 2.265625 | 2 | [] | no_license | package com.tsh.job.po;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
@Entity
@Table(name = "commom_area")
publi... | true |
571921f0d358e0055d4c6f3d1b7e4aabcec202ef | Java | gitter-badger/guard | /guard-server/src/test/java/com/demkada/guard/server/scope/ScopeManagerITCase.java | UTF-8 | 11,377 | 1.8125 | 2 | [
"Apache-2.0"
] | permissive | package com.demkada.guard.server.scope;
/*
* Copyright 2019 DEMKADA.
*
* 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 requir... | true |
1c119102d97bd33869346e3025e221326aa1c586 | Java | brunoalbrito/javacodedemo | /springFrameworkDebug/demoSrc/cn/java/demo/contexttag/internal/DependencyDescriptorTest.java | UTF-8 | 1,052 | 2.265625 | 2 | [] | no_license | package cn.java.demo.contexttag.internal;
import java.lang.reflect.Field;
import java.util.LinkedHashSet;
import java.util.Set;
import org.springframework.beans.TypeConverter;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.config.DependencyDes... | true |
41d231514ac4583e06dbe481890588f1d27d6503 | Java | jmno/SGMC | /Mobile SGMC/app/src/main/java/info/mobilesgmc/modelo/ListaProdutosPredefinida.java | UTF-8 | 1,028 | 2.453125 | 2 | [] | no_license | package info.mobilesgmc.modelo;
/**
* Created by Carolina P Soares on 14/01/2015.
*/
public class ListaProdutosPredefinida {
private int id;
private String nome;
private String especialidade;
private String tipoCirurgia;
public ListaProdutosPredefinida(){}
public int getId() {
re... | true |
449cccf5e2196f63722af39c2a63a2034cb44766 | Java | mkovacek/DesignPatternsJava | /3. MVC, State/src/org/foi/uzdiz/mkovacek/zadaca_4/mvc/ParkingView.java | UTF-8 | 2,329 | 3.046875 | 3 | [] | 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 org.foi.uzdiz.mkovacek.zadaca_4.mvc;
import java.util.Comparator;
import org.foi.uzdiz.mkovacek.zadaca_4.mvc.model.Car;
import... | true |
1a64995d47d79affd72b73d9ae70a61048cb1d1f | Java | Pronian/SteamGifts | /src/main/java/com/terr/steamgifts/CookieSync.java | UTF-8 | 1,861 | 2.546875 | 3 | [] | no_license | package com.terr.steamgifts;
import android.content.Context;
import android.content.SharedPreferences;
public class CookieSync
{
private static String cookie = "";
private static String token = "";
public static void updateCookie(String cookie, Context context)
{
String key = context.getReso... | true |
66b35d8a4a13d5e36e5abf292a9209285dc404d3 | Java | ResurrectionRemix/android_frameworks_base | /tests/testables/tests/src/android/testing/TestableLooperTest.java | UTF-8 | 5,528 | 2.09375 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unicode"
] | permissive | /*
* Copyright (C) 2017 The Android Open Source Project
*
* 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 applic... | true |
5e5424e60b16f4783c7385025f04c3051581209c | Java | freeflyerTang/springboot | /springboot-mybatis/src/main/java/com/carol/mapper/AccountMapper2.java | UTF-8 | 344 | 1.90625 | 2 | [] | no_license | package com.carol.mapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* @Description: 采用声明式事务方式
* @Param:
* @return:
* @Author: Carol Tang
* @Date: 2018/9/7
**/
@Mapper
public interface AccountMapper2 {
int update(@Param("money") Double money,@Param("id") i... | true |
55e2a0e13fae1a8c32c5d0324df06f40e846434c | Java | DiegoLeal/GRITTO | /src/main/java/gritto/teste/controller/OfertaController.java | UTF-8 | 297 | 1.632813 | 2 | [] | no_license | package gritto.teste.controller;
import gritto.teste.service.OfertaService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequiredArgsConstructor
public class OfertaController {
private final OfertaService service;
}
| true |
ef4f989fd266ed21464ed790142bab562b02c3e9 | Java | VijayTripurari/online-shopping | /shoppingbackend/src/main/java/net/vijay/shoppingbackend/daoimpl/OrdersDAOImpl.java | UTF-8 | 1,752 | 2.078125 | 2 | [] | no_license | package net.vijay.shoppingbackend.daoimpl;
import java.util.ArrayList;
import java.util.List;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.stereot... | true |
c1104ed9a905861b37bfd64b21e8299018927aa2 | Java | sixtyeight/jumbrella | /src/main/java/at/metalab/artnet/jaxrs/SetColorApplication.java | UTF-8 | 1,186 | 2.453125 | 2 | [] | no_license | package at.metalab.artnet.jaxrs;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.eclipse.jetty.http.HttpStatus;
@Path("/api")
public class SetColorApplication {
@POST
@Produces(MediaType.APPLICATION_JSON... | true |
1b07fd8fd4c6f047a85dd8b3de55a52549717491 | Java | vincent-hsin/idiosoul-order | /src/main/java/xyz/idiosoul/fair/order/domain/model/cart/CartItem.java | UTF-8 | 1,367 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | /*
* 2016-2018 江西侬农网科技有限公司。ALL Rights Reserved
*/
/*
* 2016-2018 江西侬农网科技有限公司。ALL Rights Reserved
*/
/*
* 2016-2018 江西侬农网科技有限公司。ALL Rights Reserved
*/
package xyz.idiosoul.fair.order.domain.model.cart;
import lombok.Getter;
import lombok.ToString;
import xyz.idiosoul.fair.order.infrastructure.EntityBase;
impo... | true |
74352e632ccbc56d69dca6baaed8af0b2dc3e447 | Java | Bynine/downtilt | /core/src/challenges/Training.java | UTF-8 | 675 | 2.5625 | 3 | [] | no_license | package challenges;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import maps.Stage;
public class Training extends Mode {
List<Challenge> challengeList = new ArrayList<Challenge>();
private List<Wave> wave = new ArrayList<Wave>(Arrays.asList(
new Wave(new EnemySpawner(Arrays.asL... | true |
e1969e6d5f37a8dfe23ec6561eaa2d1ddea6ac6f | Java | joemardc98/Enrollment-Evaluation-Management-System | /src/com/jhmvin/orm/SQL.java | UTF-8 | 1,567 | 2.640625 | 3 | [] | no_license | package com.jhmvin.orm;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Restrictions;
public class SQL {
private final String propertyName;
public SQL(String propertyName) {
this.propertyName = propertyName;
}
/**
*
* @param propertyName the column in the ... | true |
4accfc809e4be62e43f74c5ddc7b8dbf1f66b63e | Java | orhanturan3898156/SpringJava | /src/Office_Hours/Practice_05_27_2020/Encapsulation.java | UTF-8 | 887 | 3.203125 | 3 | [] | no_license | package Office_Hours.Practice_05_27_2020;
public class Encapsulation {
/*
Encapsulation: hiding data by giving private access modifier.
- Other source can only access them by getter() and setter() we will be able to use and modify them.
-getter():returns private data -Read only
-se... | true |
40a82ebe6e28cccf7c22edb8079964c17370adae | Java | gyujin0450/spring | /day2/src/main/java/com/iu/s1/board/BoardService.java | UTF-8 | 633 | 1.851563 | 2 | [] | no_license | package com.iu.s1.board;
import java.util.List;
import org.springframework.web.multipart.MultipartFile;
import com.iu.s1.util.Pager;
public interface BoardService {
//글쓰기
// public int boardWrite(BoardVO boardVO) throws Exception;
public int boardWrite(BoardVO boardVO, MultipartFile [] files) throws Exception;
... | true |
d810288784084d6ea324a2253f89d37d7e18ca22 | Java | uk-gov-mirror/hmcts.finrem-case-orchestration-service | /src/test/java/uk/gov/hmcts/reform/finrem/caseorchestration/controllers/CaseDataControllerTest.java | UTF-8 | 13,217 | 1.726563 | 2 | [
"MIT"
] | permissive | package uk.gov.hmcts.reform.finrem.caseorchestration.controllers;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springfram... | true |
21f740432d9d6e8f8faf9c7936f979d09c701c0e | Java | RobertoPacho/PachoMorocho-Jose-Examen | /src/ec/edu/ups/modelo/Reserva.java | ISO-8859-1 | 3,773 | 2.5625 | 3 | [] | no_license | package ec.edu.ups.modelo;
import java.io.Serializable;
import java.util.Calendar;
import javax.persistence.*;
/**
* Entity implementation class for Entity: Reserva
*
*/
@Entity
public class Reserva implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = G... | true |
349fdb5ba8efb2f278aabd0625d2fdb87bcacd64 | Java | DevilC/TaskManagerBaseOnRedis | /src/main/java/taskLoadExceptionPackage/ExceptionFactory.java | UTF-8 | 1,685 | 3.09375 | 3 | [] | no_license | package taskLoadExceptionPackage;
import taskPackage.Section;
import taskPackage.StepTag;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
public class ExceptionFactory {
/**
* 一个方法只能被一个step定义
* @param method 目标方法
* @throws MethodAnnotationDefineExceedMax 抛异常
*/
pu... | true |
87a45a163a8e6f070c7997dd0f774bfc802eeb4a | Java | alphagov/pay-connector | /src/main/java/uk/gov/pay/connector/charge/model/domain/FeeType.java | UTF-8 | 793 | 2.34375 | 2 | [
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | package uk.gov.pay.connector.charge.model.domain;
import com.fasterxml.jackson.annotation.JsonValue;
import org.apache.commons.lang3.StringUtils;
import java.util.Arrays;
public enum FeeType {
RADAR("radar"),
THREE_D_S("three_ds"),
TRANSACTION("transaction");
FeeType(String name) {
this.... | true |
cd4912aa82b15fec87b4f2e8321b791ef7321c8b | Java | OsiriX-Foundation/KheopsAuthorization | /kheopsAuthorization/src/main/java/online/kheops/auth_server/marshaller/JSONAttributesListMarshaller.java | UTF-8 | 3,550 | 2.234375 | 2 | [
"MIT"
] | permissive | package online.kheops.auth_server.marshaller;
import org.dcm4che3.data.Attributes;
import org.dcm4che3.json.JSONReader;
import org.dcm4che3.json.JSONWriter;
import javax.json.Json;
import javax.json.stream.JsonGenerator;
import javax.json.stream.JsonParser;
import javax.ws.rs.Consumes;
import javax.ws.rs.Produces;
im... | true |
830d2a5bc3838ff8dfe94d40f915fdcc5861f3e2 | Java | OsmanBrito/Accorgol | /app/src/main/java/io/rerum/accorgol/view/jogador/fragments/JogadorPerfilFragment.java | UTF-8 | 11,451 | 1.664063 | 2 | [] | no_license | package io.rerum.accorgol.view.jogador.fragments;
import android.app.AlertDialog;
import android.app.Fragment;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.net.Uri;
imp... | true |
6077a78b49b74edc7079c31662e7bd210677585d | Java | fshiraz2/JavaBasicsNew | /src/com/syntax/class07/HW.java | UTF-8 | 273 | 2.8125 | 3 | [] | no_license | package com.syntax.class07;
public class HW {
public static void main(String[] args) {
//Print numbers from 1 to 100 in 1 line with space
//Print numbers from 100 to 1
//Print even numbers from 20 to 1 (2 ways)
//Print odd numbers between 20 and 50 (2 ways)
}
}
| true |
16ea920224961645d0cc9c1b3e48a29a70dd61ed | Java | yveslox/Genesisras | /practice-code-blue/programme-java/findaverage-number.java | UTF-8 | 358 | 3.15625 | 3 | [] | no_license | import java.util.Scanner;
class findaveragenumber
{
public static void main(String args[])
{
System.out.println("Input 5 numbers: ");
Scanner input = new Scanner("Syteme.in");
int i= 1;
int sum = 0;
while(i<= 5)
{
sum = sum + input.nextInt();
i++;
}
int avg = sum / 5;
System.out.println... | true |
f1dde6f12c0ad9019fd0fd91bb85cf5193066ea5 | Java | bigstar18/prjs | /prj/otcol/web-mgr-platform/src/main/java/gnnt/MEBS/delivery/command/aop/CheckRealFunds.java | UTF-8 | 2,248 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package gnnt.MEBS.delivery.command.aop;
import gnnt.MEBS.base.util.Arith;
import gnnt.MEBS.delivery.command.Information;
import gnnt.MEBS.delivery.command.SettleReceive;
import gnnt.MEBS.delivery.command.model.SettleObject;
import gnnt.MEBS.delivery.command.settleExtra.SettleBalanceCheck;
import gnnt.MEBS.deliv... | true |
bbb3d2c9e19a9200fb9fbe4cab853e794e1d1c31 | Java | mguptasast/mgsample | /SpringMVC/src/com/web/FormController2.java | UTF-8 | 1,248 | 2.09375 | 2 | [] | no_license | package com.web;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework... | true |
9babfb62c4bf9b321e910ba282919ff00d2df22c | Java | eschoysman/Mapper | /test/extra/CountBuilderWays.java | UTF-8 | 5,097 | 2.765625 | 3 | [
"MIT"
] | permissive | package extra;
import es.utils.mapper.Mapper;
import es.utils.mapper.factory.builder.*;
import es.utils.mapper.impl.object.ClassMapper;
import java.lang.reflect.Method;
import java.text.MessageFormat;
import java.util.*;
import java.util.stream.Collectors;
public class CountBuilderWays {
private final static Cl... | true |
7561dfd35275271afb3ba19e59447adee43b50d8 | Java | davidecorsi/java-method-reference | /src/Main.java | UTF-8 | 1,126 | 3.96875 | 4 | [] | no_license | import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Supplier;
/*
* I method reference possono essere applicati a 4 tipi di metodo
*/
public class Main {
public static void main(String[] args) {
Consumer<String> consumer1 = s -> System.out.println(s);
// metodi static... | true |
d65bbed368b5aedeb9da59f71d084d82705f1885 | Java | Shtramak/hillel-course-project | /education/src/test/java/com/courses/tellus/persistence/repository/hibernate/UniversityRestRepositoryMockTest.java | UTF-8 | 4,173 | 2.359375 | 2 | [] | no_license | package com.courses.tellus.persistence.repository.hibernate;
import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import javax.persistence.Query;
import javax.persistence.TransactionRequiredException;
import java.util.ArrayList;
import java.util.List;
import com.courses.tellus.entity.m... | true |
90f5d09e3b73532195a58948808c7d208a42b088 | Java | josemontiel/ClientManager | /app/src/main/java/com/josemontiel/clientmanager/MainActivityFragment.java | UTF-8 | 6,031 | 2.3125 | 2 | [] | no_license | package com.josemontiel.clientmanager;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.wid... | true |
2e27aa58ffbdaa7fba01527b4ade39e113ecbca2 | Java | sengeiou/zeroner_app | /sources/com/inuker/bluetooth/library/connect/listener/BleConnectStatusListener.java | UTF-8 | 402 | 2.125 | 2 | [] | no_license | package com.inuker.bluetooth.library.connect.listener;
import com.inuker.bluetooth.library.receiver.listener.BluetoothClientListener;
public abstract class BleConnectStatusListener extends BluetoothClientListener {
public abstract void onConnectStatusChanged(String str, int i);
public void onSyncInvoke(Objec... | true |
b175bd153311f9c0ce9d3800ff5e5ddc7aa3ded0 | Java | Ivanko-Mosiychuk/FlightRadarTest | /IdeaProjects/FlyRadar/src/test/java/ua/radar/tests/StatisticPageTest.java | UTF-8 | 1,138 | 2.265625 | 2 | [] | no_license | package ua.radar.tests;
import org.testng.Assert;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import ua.radar.base.BasePage;
import ua.radar.base.BaseTest;
import ua.radar.pages.MainPage;
import ua.radar.pages.StatisticPage;
public class Sta... | true |
6bb96ad42e4176c82c21ab0ab2f30ba9a6b28585 | Java | RogrB/GameOfLife | /gol_prosedyre/CellGrid.java | UTF-8 | 4,900 | 3 | 3 | [] | no_license | package gol_prosedyre;
public class CellGrid {
private double boardheight;
private double boardwidth;
private cell[] cells;
private int nextIndex = 0;
private static CellGrid inst = new CellGrid();
private CellGrid() { }
public static CellGrid getInstance() {return ... | true |
9b212c36c2cb99ab573789234f5624a76266cac6 | Java | omeros/Algoquest | /AlgoquestOld.java | UTF-8 | 12,006 | 3.125 | 3 | [] | no_license | package Algoquest;
import java.awt.Rectangle;
/**
* The algorithem for Finds the largest Bound in an a given Main Bound .
*
* @author (Omer Golan)
* @version (15.11.19) //(04.01.16)
*/
public class AlgoquestOld
{
int count;
int counEreaIsBlock;
/* Constructor for objects of class Algoquest */
... | true |
c3ba0022f80b4869e4ac201db6375a0e13ae8f2a | Java | k-nish/Java_nyuumon | /src/kadai11/PoisonMatango.java | UTF-8 | 466 | 3.0625 | 3 | [] | no_license | package kadai11;
import kadai10.Hero;
public class PoisonMatango extends Matango {
private int times = 5;
public PoisonMatango(char suffix) {
super(suffix);
}
public void attack(Hero h) {
super.attack(h);
if (this.times != 0) {
System.out.println("さらに毒の胞子をばらまいた!");
int damage = h.getHp() / 5;
h.s... | true |
5cb98e6a8e0d8c3920691d287381d907cc37f24a | Java | elad-m/pizzapp | /app/src/main/java/com/pizzapp/model/pizza/Pizza.java | UTF-8 | 2,513 | 3.21875 | 3 | [] | no_license | package com.pizzapp.model.pizza;
import java.io.Serializable;
import java.util.List;
import java.util.Vector;
/**
* This class represent a pizza in an order.
*/
public class Pizza implements Serializable {
private static final int DEFAULT_NUMBER_OF_SLICES = 1;
private static final String OUT_OF_BOUNDS_MSG ... | true |
b480590e093badaa4fec940444eb72aa458e1a25 | Java | carldea/cudami | /dc-cudami-client/src/main/java/de/digitalcollections/cudami/client/identifiable/web/CudamiWebpagesClient.java | UTF-8 | 5,521 | 2.03125 | 2 | [
"MIT"
] | permissive | package de.digitalcollections.cudami.client.identifiable.web;
import com.fasterxml.jackson.databind.ObjectMapper;
import de.digitalcollections.cudami.client.CudamiBaseClient;
import de.digitalcollections.cudami.client.exceptions.HttpException;
import de.digitalcollections.model.identifiable.entity.Website;
import de.d... | true |
2b095f759642fdb2bbd2ba87e160c5889d013f32 | Java | roh-7/VolleyDemo | /app/src/main/java/in/example/android/volleydemo/SongsAdapter.java | UTF-8 | 1,506 | 2.578125 | 3 | [] | no_license | package in.example.android.volleydemo;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.List;... | true |
457885dee483d7618508a40f62da3609261eb4d8 | Java | yrsoojin/firstPrj | /src/project_controller/LoginController.java | UHC | 4,371 | 2.5 | 2 | [] | no_license | package project_controller;
import java.io.IOException;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
imp... | true |
5785a14e7b14775bb551d65c4458f8df408f40f8 | Java | danieldp92/KGEN | /src/main/java/ui/cui/arguments/ConfigArguments.java | UTF-8 | 335 | 2.140625 | 2 | [] | no_license | package ui.cui.arguments;
public class ConfigArguments extends Arguments {
private String datasetPath;
public ConfigArguments(String datasetPath, String outputPath) {
this.datasetPath = datasetPath;
this.outputPath = outputPath;
}
public String getDatasetPath() {
return datase... | true |
81c3f80fabb34dc43f0863bfe4257f6678e57842 | Java | JoaquinLosada/RoyalWebAutomationFramework | /src/test/java/royal/TestTest.java | UTF-8 | 626 | 2.09375 | 2 | [] | no_license | package royal;
import org.testng.annotations.Test;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Sample Test
*/
public class TestTest extends Base {
private static final String TEXT = "100 HOUR SALE";
private static final String SEARCH_BUTTON_CSS = "#find-a-cruise";
private static f... | true |
73e3a0ffecb12edb8fec4512eb0f6a50341b3310 | Java | Rekoe/rk_svnadmin | /src/main/java/com/rekoe/service/SvnUserService.java | UTF-8 | 3,551 | 2.1875 | 2 | [] | no_license | package com.rekoe.service;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import org.apache.commons.lang3.StringUtils;
import org.nutz.dao.Cnd;
import org.nutz.dao.Dao;
import org.nutz.... | true |
25928bfb0bc4c2d9b3f734bf019cbdc31894f535 | Java | LanleiZhao/java | /src/day10/Bank/Bank.java | UTF-8 | 906 | 3.625 | 4 | [] | no_license | package day10.Bank;
public class Bank {
// 属性
private Customer[] customers;
private int numberOfCustomers;
// 构造器
public Bank(int maxServerCustomers){
this.customers = new Customer[maxServerCustomers];
this.numberOfCustomers = 0;
}
// 方法
// 添加用户
public void addCust... | true |
25900d2b0766f96ef55dd6e4ab8b9a122919592a | Java | cckmit/mall | /mall-user/mall-user-service/src/main/java/com/suyan/mall/user/service/impl/AdminRoleServiceImpl.java | UTF-8 | 2,415 | 1.84375 | 2 | [] | no_license | /*
* Copyright (c) 2020.
* 项目名称:素焉商城
* 创建人:素焉
* 开源地址: https://github.com/lixaviers/mall
*/
package com.suyan.mall.user.service.impl;
import com.suyan.mall.user.service.IAdminRoleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ste... | true |
134da4280b0303506780ded8aea5bd3ab9d1370a | Java | cc8848/jlibav-1 | /jlibav/src/main/java/org/libav/avutil/IDictionaryWrapper.java | UTF-8 | 2,422 | 2.46875 | 2 | [] | no_license | /*
* Copyright (C) 2012 Ondrej Perutka
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This libr... | true |
67377bbf08acbc03dace7855a8d232bf023e4e58 | Java | kalyanasundaramshubha/juneTests | /src/arraysorting.java | UTF-8 | 490 | 3.34375 | 3 | [] | no_license | import java.util.Arrays;
//package practice;
public class arraysorting {
public static void main(String[]arguments){
String names[]={"Meera","Keshav","Diya","Madhav","Aditi","Manu","Arjun","Anirudh"};
String age[]={"5","9","6","4","7"};
Arrays.sort(age);
System.out.println("Get th... | true |
c3846f40c5b32782d6118588fe4b937546ea2390 | Java | wooseok01/Visualization_CR | /DataVisualization/src/main/java/com/ajou/visualization/action/GetCredosData2.java | UTF-8 | 2,686 | 2.28125 | 2 | [] | no_license | package com.ajou.visualization.action;
import java.util.ArrayList;
import java.util.HashMap;
import org.springframework.beans.factory.annotation.Autowired;
import com.ajou.visualization.dao.AllDao;
import com.ajou.visualization.model.Consult2;
import com.ajou.visualization.model.Description;
import com.ajou.visualiz... | true |
9e8aa3bf8c33c42b916be831b89b6cf7c6ac5e3a | Java | sitelabs/courier | /util/src/main/java/com/alibaba/china/courier/model/resource/AbstractResource.java | GB18030 | 2,380 | 2.359375 | 2 | [] | no_license | package com.alibaba.china.courier.model.resource;
/*
* Copyright 1999-2004 Alibaba.com All right reserved. This software is the confidential and proprietary information of
* Alibaba.com ("Confidential Information"). You shall not disclose such Confidential Information and shall use it only
* in accordance with the ... | true |
2651265565c7758f508684c6a6f2361535bf4b8f | Java | khnguyendinh/demozk | /src/main/java/khoand/demozk/controllers/MyWindow.java | UTF-8 | 230 | 1.78125 | 2 | [] | no_license | package khoand.demozk.controllers;
import org.zkoss.zul.Window;
/**
* Created by quantri on 03/02/2018.
*/
public class MyWindow extends Window {
String var = "abc";
public String getVar(){
return var;
}
}
| true |
5d96025dede2205c7fedbf104f7d168344ddf36a | Java | hadishatti/intranet | /src/main/java/qa/tecnositafgulf/searchcriteria/ClientsSearchCriteira.java | UTF-8 | 5,320 | 2.40625 | 2 | [] | no_license | package qa.tecnositafgulf.searchcriteria;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
* Created by klajdi on 09/05/18.
*/
public class ClientsSearchCriteira implements Serializable{
private String li... | true |
eef6dc168a7d3d591f62b9ee309624b4d17b7da2 | Java | onerbal/communication-service | /campaign-service/src/main/java/org/example/campaign/controller/CampaignController.java | UTF-8 | 934 | 2.09375 | 2 | [
"MIT"
] | permissive | package org.example.campaign.controller;
import org.example.campaign.service.CampaignService;
import org.example.common.converter.ModelConverter;
import org.example.common.model.campaign.CampaignModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org... | true |
78b68d44011c274fbfdf163cd347283b3b257090 | Java | riojano0/bootcamp-weather-after-year | /src/main/java/com/montivero/poc/client/domain/yahooQuery/ChannelResponse.java | UTF-8 | 419 | 1.757813 | 2 | [] | no_license | package com.montivero.poc.client.domain.yahooQuery;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Setter
@Getter
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class ChannelResponse {
private Loca... | true |
bdc16e370b900581098960b9f661921dd0a71773 | Java | nbdd0121/XRMI | /com/nwgjb/compiler/MemoryClassLoader.java | UTF-8 | 793 | 2.578125 | 3 | [
"BSD-2-Clause"
] | permissive | package com.nwgjb.compiler;
import java.util.HashMap;
class MemoryClassLoader extends ClassLoader{
private HashMap<String, MemoryByteCode> byteCodes=new HashMap<String, MemoryByteCode>();
protected Class<?> findClass(String name) throws ClassNotFoundException {
String slashedName=name.replace(".","/");
... | true |
90e6d1f6150fc919ebd71c700e735affb8cfcdad | Java | sonake/youyd_springcloud_service | /youyd-authentication-server/src/main/java/com/youyd/auth/validate/impl/ValidateCodeGenerator.java | UTF-8 | 342 | 1.75 | 2 | [
"MIT"
] | permissive | package com.youyd.auth.validate.impl;
import org.springframework.web.context.request.ServletWebRequest;
/**
* 校验码生成器
* @author : LGG
* @create : 2019-06-18 14:34
**/
public interface ValidateCodeGenerator {
/**
* 生成校验码
* @param request
* @return
*/
ValidateCode generate(ServletWebRequest request);
}
| true |
00ef2a879ce39c85b750980915404085f3a47f3b | Java | ItechsGS/20200610 | /mobile/src/main/java/com/org/godspeed/allOtherClasses/ExerciseTypeScreen.java | UTF-8 | 8,573 | 2.03125 | 2 | [] | no_license | package com.org.godspeed.allOtherClasses;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import androi... | true |
fd95ef4513ec02f36b2384876312386411672e3f | Java | CDLUC3/mrt-ingest | /ingest-src/src/main/java/org/cdlib/mrt/ingest/handlers/HandlerDigest.java | UTF-8 | 4,808 | 1.921875 | 2 | [
"BSD-3-Clause"
] | permissive | /*
Copyright (c) 2011, Regents of the University of California
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
*
- Redistributions of source code must retain the above copyright notice,
this ... | true |
5fb74a030198eae483cdb795710e69a3d1fb612e | Java | AndrzejPoloczek/gamehub | /gamebind/src/test/java/gamehub/gamebind/strategy/CancelOwnerStrategyTest.java | UTF-8 | 786 | 2.171875 | 2 | [] | no_license | package gamehub.gamebind.strategy;
import gamehub.gamebind.exception.GameCancelException;
import gamehub.gamebind.model.GameBind;
import gamehub.gamebind.model.GameBindStatus;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.springframework.tes... | true |
66bf112f874e9980ca2f42fca7531ad4b737442f | Java | Pasinozavr/5th-year-le-man | /Java/TD1/EnsembleDeChiffres.java | UTF-8 | 1,531 | 3.21875 | 3 | [] | no_license | import java.util.Random;
public class EnsembleDeChiffres {
private boolean[] present;
private Random rnd;
public EnsembleDeChiffres() {
rnd = new Random();
present = new boolean[10];
for (int i = 0; i < 10; i++) {
present[i] = false;
}
}
public void ajoute(int i) {
if (i >= 0 && i < 10) ... | true |
b117a682cf998713ff05998d60bd094c4f2dd25b | Java | AstiaSun/basic-spring-framework | /src/main/java/com/ukma/aic/graph/DependencyGraph.java | UTF-8 | 840 | 2.953125 | 3 | [] | no_license | package com.ukma.aic.graph;
import java.util.LinkedList;
public class DependencyGraph<T> extends LinkedList<T> {
DependencyGraph() {
super();
}
DependencyGraph(DependencyGraph<T> dependencyGraph) {
super(dependencyGraph);
}
Node getNodeByName(String beanName) {
for (T t :... | true |
22b7b547dec98eb4298f62b900ebf7156301ccfc | Java | darthvaderson/android_native_demo | /app/src/main/java/com/example/testapp/ConcertDBManager.java | UTF-8 | 3,118 | 2.4375 | 2 | [] | no_license | package com.example.testapp;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
public class ConcertDBManager extends SQLiteOpenHelper {
sta... | true |
7c68c993b53eac34d957b68d3e29e1ec3d041058 | Java | DjVidiX/TAS-FirstProject | /Marek/Player.java | UTF-8 | 436 | 2.53125 | 3 | [] | no_license | class Player {
private String name;
//private Interfejs interfejs;
private static int id;
private Boolean ready;
public Player() {
this.name = "Undefined";
}
public Player(String name, int id) {
this.name = name;
this.id = id;
}
public int getId() {
return id;
}
public String getName() {
re... | true |
9a6c181759d048b8f884dca62887be946462ac33 | Java | basakciftci/NewStarts | /src/main/java/WhileLoopPractice/StarTree.java | UTF-8 | 432 | 3.171875 | 3 | [] | no_license | package WhileLoopPractice;
import java.util.Scanner;
public class StarTree{
public static void main(String[] args){
Scanner input =new Scanner( System.in );
System.out.println("Please enter the number");
int num=input.nextInt();
int count=0;
String star="*";
while (... | true |
3a14db4a1142ebdee7e31b3644fa8616822f6443 | Java | AhmedMaad/E-Commerce-User-Candroid | /app/src/main/java/com/maad/buyfromcandroiduser/HomeActivity.java | UTF-8 | 970 | 2.09375 | 2 | [] | no_license | package com.maad.buyfromcandroiduser;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.TextView;
public class HomeActivi... | true |
904b2806765710c65d2a093b2aa76bf225a52e1e | Java | wangzhengbo/TCC4Java | /test/cn/com/tcc/UndefineSymbolTest.java | UTF-8 | 1,388 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package cn.com.tcc;
import java.io.File;
import java.io.IOException;
import org.junit.Assert;
import org.junit.Test;
import com.sun.jna.Function;
public class UndefineSymbolTest extends BaseTest {
@Test
public void undefineSymbol() throws IOException {
// symbol 'NAME' not defined
State state = ... | true |
91d4a70ca017b440bd6d1bcc1295d9074d6eab5f | Java | DomKing/stream-and-lambda | /src/main/java/org/prcode/functional/stream/terminal/StreamToArrayDemo.java | UTF-8 | 1,440 | 3.203125 | 3 | [
"MIT"
] | permissive | package org.prcode.functional.stream.terminal;
import org.junit.jupiter.api.Test;
import java.util.stream.Stream;
/**
* @author kangd001
* @date 2021/7/7 22:09
*/
public class StreamToArrayDemo {
@Test
public void toArrayWithFuncNormalTest() {
Stream<String> stringStream = Stream.of("this", "is"... | true |
57bc446fadc08689f7ba422cf40e966e9ab2ccc9 | Java | irishaha/java-2017f-homework | /Fianl Project/杨楠-151220142/Final_Project/src/test/java/FinalProject/StageTest.java | UTF-8 | 552 | 1.914063 | 2 | [] | no_license | package FinalProject;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
public class StageTest {
@BeforeClass
public static void beforeClass() {
Level l = new Level();
}
@Before
public void before() {
Stage.ground_above[0... | true |
fa5c04e12bfabd3d2a8f8a7ade5a7f1eb8889046 | Java | VianneyDoleans/SpamFilterBot | /DataGenerator/src/main/java/dataGenerator/MainWindow.java | UTF-8 | 2,254 | 2.65625 | 3 | [] | no_license | package dataGenerator;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import java.io.IOException;
public class MainWindow extends Application {
private SceneController sce... | true |
98002292e36ac9dfb98842a67e8945ddf2bf3324 | Java | Decongo/Ticket-To-Ride | /common/src/main/java/weber/kaden/common/injectedInterfaces/iCommandManager.java | UTF-8 | 339 | 2.0625 | 2 | [] | no_license | package weber.kaden.common.injectedInterfaces;
import java.util.List;
import weber.kaden.common.command.CommandData.CommandData;
import weber.kaden.common.model.Game;
public interface iCommandManager {
List<Game> gamesList();
Game getGameByID(String gameID);
List<CommandData> getLatestCommands... | true |
b626d60041fd76dc4c9b246995d891f18efc9044 | Java | blikoon/Ubufundi | /App3.6.2/app/src/main/java/com/blikoon/app362/RepoService.java | UTF-8 | 252 | 1.757813 | 2 | [] | no_license | package com.blikoon.app362;
import java.util.List;
import retrofit2.Call;
import retrofit2.http.GET;
public interface RepoService {
@GET("orgs/blikoon/repos")
Call<List<Repo>> getRepos();
//You can add other methods as need arises.
}
| true |
d72c428af91b419ddaaa87c06159edf05ac6d3bb | Java | HensCoderoad/GeneralManager | /manager/src/main/java/com/general/manager/entity/vo/UserVO.java | UTF-8 | 1,883 | 2.234375 | 2 | [] | no_license | package com.general.manager.entity.vo;
import com.general.manager.entity.Role;
import lombok.Data;
import javax.validation.Valid;
import java.io.Serializable;
import java.util.Date;
import java.util.Set;
@Data
public class UserVO implements Serializable {
private Long uid;
private String username;
priv... | true |