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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
a6bbf638822bfe8712b1e09db0732ea9a16368c0 | Java | J0703-SSM/Netctoss_SSM_SGX | /src/main/java/com/lanou/base/mapper/ModuleMapper.java | UTF-8 | 210 | 1.625 | 2 | [] | no_license | package com.lanou.base.mapper;
import com.lanou.role.domain.Module;
import java.util.List;
/**
* Created by dllo on 17/11/17.
*/
public interface ModuleMapper {
List<Module> findModuleByRoleId();
}
| true |
bb1f842708db8834b417a98511d94ebc2c4eedfd | Java | yuervsxiami/pmes | /src/main/java/com/cnuip/pmes2/domain/el/User.java | UTF-8 | 5,753 | 2.265625 | 2 | [] | no_license | package com.cnuip.pmes2.domain.el;
import com.cnuip.pmes2.domain.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
/**
* Created by IntelliJ IDEA.
* User:zhaozhihui
* Date: 2018/10/16.
* Time: 9:53
*/
@Data
public class User extends BaseModel ... | true |
080bcd65d196ecfe0339628c7420f2b155137b1a | Java | yifanzhu1592/Trinity-Introduction-to-Programming | /All programs/Assignment problems/week 6 HiLoGame.java | UTF-8 | 2,639 | 3.5 | 4 | [] | no_license | import java.util.NoSuchElementException;
import java.util.Random;
import java.util.Scanner;
import javax.swing.JOptionPane;
public class HiLoGame {
public static void main(String[] args) {
try {
final int CARD_NUMBERS = 13;
final int REQUIREMENT = 4;
final int JACK = 11;
final int QUEEN = 12;
fi... | true |
877f53344465bcf1ecee6b38d68f54b7ad6498fb | Java | biaderbia/algorithm011-class01 | /Week_02/ValidAnagram.java | UTF-8 | 857 | 3.421875 | 3 | [] | no_license | import java.util.Arrays;
public class ValidAnagram{
public static void main(String[] args) {
Solution solution = new ValidAnagram().new Solution();
String s = "anagram";
String t = "nagaram";
boolean result = solution.isAnagram(s, t);
System.out.println(result);
}
c... | true |
f6e6da9f0356e9b9c7678e129d63b823477d1fbf | Java | KarmaANDfenrisulfr/Android_videoPlayer | /video_test/src/main/java/com/example/video_test/SearchListInfo.java | UTF-8 | 414 | 1.921875 | 2 | [] | no_license | package com.example.video_test;
public class SearchListInfo {
String searchHistory;
public SearchListInfo(){
}
public SearchListInfo(String searchHistory) {
this.searchHistory = searchHistory;
}
public String getSearchHistory() {
return searchHistory;
}
public void... | true |
9ef18ecb725ab2bd6097885a351304aae62a19c6 | Java | pkt1583/untitled1-proj | /proj-util/src/main/java/com/pkt/assign/domain/PaymentMethod.java | UTF-8 | 136 | 1.648438 | 2 | [] | no_license | package com.pkt.assign.domain;
/**
* Created by pankaj on 25-11-2014.
*/
public enum PaymentMethod {
CHEQUE, DIRECTDEBIT, CASH
}
| true |
924f9b282ebffbb687a76a2eb81108d1c9d0d5fc | Java | Safiet/WeAllAreReallyTired | /src/HomewWork03312021/Task2/Visa.java | UTF-8 | 149 | 2.203125 | 2 | [] | no_license | package HomewWork03312021.Task2;
public class Visa extends CreditCard {
double calculateInteres() {
return balance * interest;
}
}
| true |
e380f005740bd608df4842e648a0d357ccc470d3 | Java | iamtalhaasghar/deitel-java-how-to-program | /chp2/Q31.java | UTF-8 | 805 | 3.171875 | 3 | [] | no_license | package Chapter2;
public class Q31{
public static void main(String []args){
System.out.printf("%-15s %-15s %-15s %n",
"Number", "Square", "Cube");
System.out.printf("%-15d %-15d %-15d %n", 1, 1*1, 1*1*1 );
System.out.printf("%-15d %-15d %-15d %n", 2, 2*2, 2*2*2 );
System.out.printf("%-15d... | true |
eab51f3f1721e0454c173b0633cabeb4430c1dfe | Java | kldev/trader-dw-api | /src/main/java/com/kldev/dw/controller/model/CreateBookRequest.java | UTF-8 | 765 | 2.09375 | 2 | [] | no_license | package com.kldev.dw.controller.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class CreateBookRequest {
@JsonProperty
private String id;
@JsonProperty
private String trade... | true |
2b0a30fbe527c4ca7e9534912d1e465ada9e53c1 | Java | ksAvinash/6AM | /app/src/main/java/com/sixamdev/jci/a6am/firebase/MyFirebaseInstanceIDService.java | UTF-8 | 2,659 | 2.328125 | 2 | [] | no_license | package com.sixamdev.jci.a6am.firebase;
import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;
import com.google.firebase.iid.FirebaseInstanceId;
import com.google.firebase.iid.FirebaseInstanceIdService;
import org.json.JSONObject;
import java.io.BufferedReader;
import ja... | true |
379c43d49c7d35ac46a0c4837b04bc5ca77d03eb | Java | emilien23/LoginTemplate | /app/src/main/java/com/emilien23/logintemplate/di/module/ExceptionHandlerModule.java | UTF-8 | 694 | 2.09375 | 2 | [] | no_license | package com.emilien23.logintemplate.di.module;
import com.emilien23.logintemplate.di.annotation.AppServiceScope;
import com.emilien23.logintemplate.utils.exception.ExceptionHandler;
import com.emilien23.logintemplate.utils.exception.HttpExceptionHandler;
import dagger.Module;
import dagger.Provides;
@Module
public c... | true |
4fa103a5541a978630163942ca8077325b60f51b | Java | cinnndy9/liferay-ide | /tools/plugins/com.liferay.ide.project.ui/src/com/liferay/ide/project/ui/LiferayPluginProjectDecorator.java | UTF-8 | 5,400 | 1.539063 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
*
* This library 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 Fo... | true |
0e725cc9714c3e9c9909b64fa6423e4febe50ad2 | Java | SMATHUR93/coreExperiments | /src/com/shrek/thread/application/trignometery/CosineCalculator.java | UTF-8 | 467 | 3.078125 | 3 | [] | no_license | package com.shrek.thread.application.trignometery;
public class CosineCalculator implements Runnable {
double value;
Thread t;
double sol;
CosineCalculator(double value){
this.value=value;
t = new Thread(this,"cosine");
t.start();
}
public void run(){
try{
sol = Math.cos(Math.toRad... | true |
94b72da290054fb26d4972e3679a792d302d97a1 | Java | KeithDeRuiter/PongLine | /src/pongline/network/messages/Message.java | UTF-8 | 419 | 1.671875 | 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 pongline.network.messages;
import java.io.Serializable;
import pongline.network.MessageType;
/**
*
* @author Ye... | true |
945f7dab97cf00ee44b4e379d716ddb510de2c9b | Java | ironya/stepcounter | /eclipse-plugin/jp.sf.amateras.stepcounter/src/jp/sf/amateras/stepcounter/preferences/PreferenceInitializer.java | UTF-8 | 982 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | package jp.sf.amateras.stepcounter.preferences;
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;
import jp.sf.amateras.stepcounter.StepCounterPlugin;
/**
* Class used to initialize default preference values.
*/
public class PreferenceI... | true |
a98d0ad9af330d852e8f5a45465dc0bbff1ed059 | Java | Redmancometh/Bloom | /Bloom/src/com/redmancometh/bloom/flowers/FlowerContainer.java | UTF-8 | 2,447 | 2.15625 | 2 | [] | no_license | package com.redmancometh.bloom.flowers;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.net.URL;
import java.net.URLClassLoader;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
imp... | true |
f04a2d576e2ddc9a786f3c2186addfcb668882f4 | Java | DesarrolloWebIcesi/ActivityToPeopleUpdater | /src/co/edu/icesi/activitytopeopleupdater/peoplenet/model/M4ccbCvActInves.java | UTF-8 | 14,083 | 1.695313 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package co.edu.icesi.activitytopeopleupdater.peoplenet.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
/**
*
* @author 38555240
... | true |
bde0e8cf2595414d95374228fa1df5f535ba490f | Java | alberts/fullung | /sre2008/src/main/java/net/lunglet/gridgain/DefaultGrid.java | UTF-8 | 2,940 | 2.015625 | 2 | [] | no_license | package net.lunglet.gridgain;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import org.gridgain.grid.Grid;
import org.gridgain.grid.GridConfigurationAdapter;
import org.gridgain.grid.GridFactory;
import org.gridgain.grid.GridTask;
import org.g... | true |
f3388d880dced9044e63e09559035c40fe347d99 | Java | BarryPro/JavaEE_Eclipse | /LGcode/project_codes/book/src/org/crazyit/book/ui/SalePanel.java | UTF-8 | 18,819 | 2.0625 | 2 | [] | no_license | package org.crazyit.book.ui;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Collection;
import java.util.Date;
import java.util.Vector;
import javax.swing.Box;
import j... | true |
aaa42c6d5147fb38f4d69862f90bb9d57d6cd22b | Java | Game-Designing/Custom-Football-Game | /sources/p005cm/aptoide/p006pt/dataprovider/model/p009v7/TimelineStats.java | UTF-8 | 3,274 | 2.375 | 2 | [
"MIT"
] | permissive | package p005cm.aptoide.p006pt.dataprovider.model.p009v7;
/* renamed from: cm.aptoide.pt.dataprovider.model.v7.TimelineStats */
public class TimelineStats extends BaseV7Response {
private StatusData data;
/* renamed from: cm.aptoide.pt.dataprovider.model.v7.TimelineStats$StatusData */
public static class S... | true |
169020f3c7050c719c5176f1525d3dc4b1087be9 | Java | Minnaldo/JAVA | /Programming_Plus/src/day03/Programmar.java | UTF-8 | 502 | 3.09375 | 3 | [] | no_license | package day03;
public class Programmar extends Employee{
public Programmar(int num)
{
super(num);
this.num = num;
this.addtime = 3;
this.worktime = super.worktime + this.addtime;
}
@Override
public String whoami() {
// TODO Auto-generated method stub
return "개발자";
}
@Override
public String wo... | true |
2e48ceaf2b0c34edb4be1f1c572268c931e4b031 | Java | marcoshung/mhungAUG2017 | /Explore Spilt/src/Split.java | UTF-8 | 3,251 | 4 | 4 | [] | no_license | import java.util.Arrays;
//Marcos Hung, Period 2
public class Split {
public static void main(String[] args) {
// Your task Part 0
//String.split();
//It's a method that acts on a string, <StringName>.split(<String sp>);
//Where sp is the string where the string splits
//And it returns an array
... | true |
9f22c317e5390e9be495be4d37964c421f1e621b | Java | AksyonovaKaterina/bad_java_202107 | /src/com/bad_java/homework/hyperskill/coffee_machine/part_5/ingredients/Water.java | UTF-8 | 611 | 3.140625 | 3 | [] | no_license | package com.bad_java.homework.hyperskill.coffee_machine.part_5.ingredients;
import com.bad_java.homework.hyperskill.coffee_machine.part_5.ingredients.Ingredient;
public class Water implements Ingredient {
private int amount;
private final String unit = "ml";
public Water(int amount) {
this.amoun... | true |
5c7c56446f4dd2585dac19d396ac7e87335f2309 | Java | SiteView/ECC8.13 | /trunk/java.prj/myajaxgui/src/de/ajaxgui/test/GridLayout.java | UTF-8 | 238 | 1.679688 | 2 | [] | no_license | package de.ajaxgui.test;
import de.ajaxgui.Application;
public class GridLayout extends Application {
public void run() {
this.init();
GridLayoutMainForm glmf = new GridLayoutMainForm();
this.setMainForm(glmf);
}
}
| true |
0eba2b8d7fd58ba8335337e39888ade4bc99951a | Java | RonaldoFaustino/CursoJava8 | /1Disciplina/src/unidade2/VetorAB.java | ISO-8859-1 | 414 | 3.3125 | 3 | [] | no_license | package unidade2;
public class VetorAB {
public static void main(String[] args) {
int A[] = new int[50];
int B[] = new int[50];
for(int i=0;i<50;i++)
{
A[i] = i ;
if(i%2 == 0) // resto da diviso por 2 par
B[i] = 2*A[i];
else // impar
B[i] = A[i]/2;
}
for(int a:A)
System.out.pr... | true |
0386c84d8fb14f88cd4310d5fe645383782d7d25 | Java | litliang/ms | /code/app/src/main/java/com/yzb/card/king/http/common/AppTransferForFastpaymentRequest.java | UTF-8 | 2,417 | 1.90625 | 2 | [] | no_license | package com.yzb.card.king.http.common;
import android.text.TextUtils;
import com.yzb.card.king.http.BaseRequest;
import com.yzb.card.king.http.HttpCallBackData;
import com.yzb.card.king.sys.AppConstant;
import com.yzb.card.king.sys.CardConstant;
import com.yzb.card.king.sys.GlobalApp;
import com.yzb.card.king.util.Ap... | true |
75955b3346603734c4d8df54b969336576c5d783 | Java | fedega/projetofinalsuprema | /Partes/Fisico/Programacao/SupremaImoveis/CCSBuild/src/com/codecharge/util/LocaleChooser.java | UTF-8 | 11,372 | 2.0625 | 2 | [] | no_license | //LocaleChooser class @0-5BBB4C16
package com.codecharge.util;
import com.codecharge.Names;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Cookie;
import java.util.*;
public class LocaleChooser {
public static CCSLocale getCCSLocale(HttpServletRequest request) {
CCLogg... | true |
f2e7475fcd7f736c10856dfe4ff14fdff5888471 | Java | tranhung9349/2608_MyProject001 | /src/main/java/com/personal/management/controller/CategoryAPIController.java | UTF-8 | 1,853 | 2.3125 | 2 | [] | no_license | package com.personal.management.controller;
import com.personal.management.model.Category;
import com.personal.management.repository.CategoryRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.... | true |
6e0269078b75916e608ad59657c4006399402d5f | Java | kuali/rice | /rice-middleware/core/api/src/main/java/org/kuali/rice/core/api/util/jaxb/KualiDecimalAdapter.java | UTF-8 | 1,236 | 2.125 | 2 | [
"Artistic-1.0",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"EPL-1.0",
"CPL-1.0",
"LGPL-2.1-or-later",
"BSD-3-Clause",
"LGPL-3.0-only",
"ECL-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-jdom",
"LicenseRef-scancode-freemarker",
"LicenseRef-scancode-unk... | permissive | /**
* Copyright 2005-2015 The Kuali Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ecl2.php
*
* Unless required by a... | true |
144096106d3f5d434a59a0869bc4cbac827414cd | Java | smarthi/textdigester | /src/main/java/edu/upf/taln/textdigester/importer/TDXMLimporter.java | UTF-8 | 3,840 | 2.25 | 2 | [] | no_license | /**
* TextDigester: Document Summarization Framework
*/
package edu.upf.taln.textdigester.importer;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.StringWriter;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import ja... | true |
9aeba10ae2a986093bf3a973031f2b0e7bb05896 | Java | auxor/android-wear-decompile | /decompiled/java/lang/reflect/InvocationTargetException.java | UTF-8 | 736 | 2.453125 | 2 | [] | no_license | package java.lang.reflect;
public class InvocationTargetException extends ReflectiveOperationException {
private static final long serialVersionUID = 4085088731926701167L;
private Throwable target;
protected InvocationTargetException() {
super((Throwable) null);
}
public InvocationTargetE... | true |
fbb94e9c54ba9411157ddb8e2223055a5440be7b | Java | AKBang/javaProject | /DateApi/src/XingZuoServlet.java | GB18030 | 1,817 | 2.40625 | 2 | [] | no_license |
import java.io.IOException;
import java.io.PrintWriter;
import java.net.URLEncoder;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import ... | true |
24eba73d4298088536f11de5bc4328e98e5b6dd5 | Java | kafilamedia/kafila-catalog-app | /app/src/main/java/id/sch/kafila/catalog/activities/fragments/FasilitasFragment.java | UTF-8 | 2,372 | 2.0625 | 2 | [] | no_license | package id.sch.kafila.catalog.activities.fragments;
import android.content.Context;
import android.os.Bundle;
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.Expanda... | true |
5e3ef20b2af7decc1b27a67c469e842c8f865de1 | Java | michaloles/FXTrading | /src/main/java/com/olesm/trading/fxtrading/model/Option.java | UTF-8 | 816 | 1.984375 | 2 | [] | no_license | package com.olesm.trading.fxtrading.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
@Data
public class Option extends Trade{
private OptionStyle style;
private OptionStrategy strategy;
@JsonFormat(shape=JsonFormat.Shape... | true |
d8f82a7684b7a47e9699276ec1cd81bde836b97c | Java | joon3007/web_practice | /day11/src/com/koreait/jsons/JSON_test.java | UTF-8 | 1,279 | 2.859375 | 3 | [] | no_license | package com.koreait.jsons;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
public class JSON_test {
public String json;
public void jsonAdd() {
JSONObject jObj_in = new JSONObject();
JSONObject jObj_out = new JSONObject();
jObj_in... | true |
327bc9ed05dc8fb7087d5c547a5bb6824973828e | Java | jorgenfalk/kvsrv | /src/main/java/com/jorgen/Server.java | UTF-8 | 1,822 | 2.34375 | 2 | [] | no_license | package com.jorgen;
import com.jorgen.cmd.CommandDecoder;
import com.jorgen.cmd.CommandHandler;
import com.jorgen.store.KvStore;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.... | true |
2b46bdeb4d718174cea279099a9dfcd31df94b23 | Java | azureblue/lichess-bot | /src/kk/lichess/net/pojo/Player.java | UTF-8 | 927 | 2.0625 | 2 | [] | no_license |
package kk.lichess.net.pojo;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Player {
@JsonProperty("id")
private String id;
@JsonProperty("name")
private String name;
@JsonProperty... | true |
be9192ff73dd619d1daadf87207f8904a370b41a | Java | igbopie/project-mark-android | /app/src/main/java/as/mark/android/LocationSubscriptionManager.java | UTF-8 | 314 | 1.6875 | 2 | [] | no_license | package as.mark.android;
import com.google.android.gms.location.LocationListener;
/**
* Created by igbopie on 10/10/14.
*/
public interface LocationSubscriptionManager {
public void subscribeLocationUpdates(LocationListener ll);
public void removeSubscriptionLocationUpdates(LocationListener ll);
}
| true |
304ca5bfc30057be1a1e288ffcb2be9eb01eb749 | Java | K1ng9/SampleTwitterObserveTags | /app/src/main/java/com/example/vladkliuchak/sampleapp/data/DataBaseUsageManager.java | UTF-8 | 3,309 | 2.265625 | 2 | [] | no_license | package com.example.vladkliuchak.sampleapp.data;
import com.example.vladkliuchak.sampleapp.data.data_tables.TweetDBTable;
import com.example.vladkliuchak.sampleapp.data.data_tables.UserDBTable;
import com.example.vladkliuchak.sampleapp.data.model.TweetUiModel;
import com.example.vladkliuchak.sampleapp.data.model.User... | true |
0373f7d7ade402ff6d531d25ec491a019e84e693 | Java | rizikra/TugasAkhirCSR | /app/src/main/java/com/rizik/training/instamate/Model/UserData.java | UTF-8 | 1,231 | 2.53125 | 3 | [] | no_license | package com.rizik.training.instamate.Model;
public class UserData {
private String userId;
private String username;
private String fullname;
private String bio;
private String imageUrl;
public UserData(){
}
public UserData(String userId, String username, String fullname, String bio, ... | true |
5d097b9750070f96e659ba24d92c5e6d75ce7b21 | Java | MetalTurtle18/PeriodicTableApp | /src/main/java/io/github/metalturtle18/periodictableapp/listeners/SongButtonListener.java | UTF-8 | 1,901 | 3.078125 | 3 | [] | no_license | package io.github.metalturtle18.periodictableapp.listeners;
import javax.sound.sampled.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.IOException;
/**
* This class is a listener for the button to play the periodic table of elements song
*/
public clas... | true |
1cee5fbdc4aec8b245c9b2c2262388cd27fd5f5d | Java | kangdizhang/WMS | /WMS-MVN/src/main/java/com/ectrip/dao/system/menu/MenuDao.java | UTF-8 | 1,157 | 1.9375 | 2 | [] | no_license | package com.ectrip.dao.system.menu;
import com.ectrip.entity.system.Menu;
import com.ectrip.util.PageData;
import org.springframework.stereotype.Repository;
import java.util.List;
/**说明:MenuService 菜单处理接口
* @author ectrip 313596790
*/
@Repository("MenuMapper")
public interface MenuDao {
/**
* 获取所有子菜单
* @par... | true |
fc09aa036ce1af7ef6787d07db00cbf7fd9e8f1b | Java | haoyu-liu/crack_WeMo | /wemo_apk/java_code/net/lingala/zip4j/util/InternalZipConstants.java | UTF-8 | 4,331 | 1.539063 | 2 | [] | no_license | package net.lingala.zip4j.util;
public abstract interface InternalZipConstants
{
public static final int AESSIG = 39169;
public static final int AES_AUTH_LENGTH = 10;
public static final int AES_BLOCK_SIZE = 16;
public static final long ARCEXTDATREC = 134630224L;
public static final int BUFF_SIZE = 4096;
p... | true |
811dfd5e239ab4e2e7d71a35191428b8eb4c44de | Java | SupriseMF/algo | /prac/src/pac1/uniquePaths.java | UTF-8 | 2,543 | 4.15625 | 4 | [
"Apache-2.0"
] | permissive | package pac1;
public class uniquePaths {
/**
* 一个机器人位于一个 m x n网格的左上角 (起始点在下图中标记为 “Start” )。
*
* 机器人每次只能向下或者向右移动一步。机器人试图达到网格的右下角(在下图中标记为 “Finish” )。
*
* 问总共有多少条不同的路径?
*
* 输入:m = 3, n = 2
* 输出:3
* 解释:
* 从左上角开始,总共有 3 条路径可以到达右下角。
* 1. 向右 -> 向下 -> 向下
* 2. 向下 ... | true |
7ef6e30841e00702270e761a5edaa6f1efe79a3e | Java | juan-ruiz/sudokuARResolver | /ARSudokuSolver/src/com/sudoku/AboutInfo.java | UTF-8 | 265 | 1.835938 | 2 | [] | no_license | package com.sudoku;
import android.app.Activity;
import android.os.Bundle;
public class AboutInfo extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.menu_about);
}
}
| true |
d6c62ee76949f394c7cea9ed5cb55f0e0b75dfe7 | Java | STAMP-project/dspot-experiments | /benchmark/test/org/apache/kafka/connect/data/ValuesTest.java | UTF-8 | 17,673 | 2.375 | 2 | [] | no_license | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
b2e3304d93bf8895cfa595e940ec66bd82b1c53d | Java | igouss/aggress | /storage/src/main/java/com/naxsoft/storage/redis/RedisDatabase.java | UTF-8 | 5,111 | 2.25 | 2 | [] | no_license | package com.naxsoft.storage.redis;
import com.lambdaworks.redis.RedisClient;
import com.lambdaworks.redis.RedisURI;
import com.lambdaworks.redis.api.StatefulRedisConnection;
import com.lambdaworks.redis.event.metrics.CommandLatencyEvent;
import com.lambdaworks.redis.metrics.DefaultCommandLatencyCollectorOptions;
impo... | true |
2bd1cbf2dba24e609ce2b2b105f2c34bcbe86e89 | Java | Justxyx/JavaSourceLearn | /src/test/p3/Test01.java | UTF-8 | 193 | 1.765625 | 2 | [] | no_license | package test.p3;
/**
* @author xm
* @version 1.0
* @date 2021/9/13 20:42
*/
public class Test01 {
public static void main(String[] args) {
B b = new B(11, "xx","cc");
}
}
| true |
271ae395e5417f38f235bd7d3a8f1ed8eaa847d4 | Java | xiefalei0316/SpellSys | /SpellSys_Common/src/main/java/com/qfedu/common/dto/WorkOrderDto.java | UTF-8 | 772 | 1.71875 | 2 | [] | no_license | package com.qfedu.common.dto;
import lombok.Data;
import java.util.Date;
/**
* @Description TODO
* @Name WorkOrderDto
* @Author Yama
* @Date 2019/9/20 9:35
* @Version V1.0
*/
@Data
public class WorkOrderDto {
private Integer wid;
/**
* 工单编号
*/
private Integer num;
/**
* 店铺Id
... | true |
dd66e0c4236c9a5f99d7818c96b1a024e4e8d81b | Java | msalinasicsni/first-laboratorio-v2 | /laboratorio/src/main/java/ni/gob/minsa/laboratorio/web/controllers/EditarSolicitudesMxController.java | ISO-8859-1 | 37,344 | 1.8125 | 2 | [] | no_license | package ni.gob.minsa.laboratorio.web.controllers;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import ni.gob.minsa.laboratorio.domain.concepto.Catalogo_Lista;
import ni.gob.minsa.laboratorio.domain.muestra.*;
import ni.gob.minsa.laboratorio.domain.muestra.traslado.TrasladoMx;
import ni.gob.minsa.lab... | true |
f8cf38b40b1a80afb21efb54f02bdad87e143907 | Java | fcremo/lorenzo-il-magnifico | /common/src/model/board/Tower.java | UTF-8 | 1,850 | 3.21875 | 3 | [] | no_license | package model.board;
import model.board.actionspace.Floor;
import model.card.development.DevelopmentCard;
import model.player.Player;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
/**
* This class represents the state of... | true |
523b24df600c1d6a981a8243593ec6dcbe8ec3e9 | Java | hawk1234/WMH | /WMHProj/src/wmh/project/graph/model/GraphUtil.java | UTF-8 | 4,320 | 2.421875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wmh.project.graph.model;
import java.io.File;
import java.io.IOException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationEx... | true |
2b035c8250e507c39dc761749f857da165457671 | Java | 17602937887/Leetcode | /src/code2020/Mar3th/maxSubArray.java | UTF-8 | 602 | 3.125 | 3 | [] | no_license | package code2020.Mar3th;
public class maxSubArray {
public int maxSubArray(int[] nums) {
final int INF = Integer.MAX_VALUE;
int max = 0, tmp_max = 0;
for(int i = 0; i < nums.length; i++){
tmp_max += nums[i];
if(tmp_max > max){
max = tmp_max;
... | true |
66c7fd8259203df9a4c8c23e70503c2f95cf16af | Java | lushihao180616/qrcode-business | /src/main/java/com/lushihao/qrcodebusiness/dao/QRCodeRecordMapper.java | UTF-8 | 469 | 1.773438 | 2 | [] | no_license | package com.lushihao.qrcodebusiness.dao;
import com.lushihao.qrcodebusiness.entity.qrcode.QRCodeRecord;
import com.lushihao.qrcodebusiness.entity.temple.TempleAnalysis;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface QRCodeRecordMapper {
void create(QRCodeRecord qrCo... | true |
0ff40bba1f7aae8cce1865b0545c7251fa6fbcd9 | Java | nazrinibrahimli/library_comment | /src/main/java/edu/ada/service/library/model/mapper/PickupMapper.java | UTF-8 | 846 | 2.5 | 2 | [] | no_license | package edu.ada.service.library.model.mapper;
import edu.ada.service.library.model.entity.PickupEntity;
import edu.ada.service.library.model.requestAndResponse.PickupDto;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.StreamSupport;
public class PickupMapper {
public static Pi... | true |
8fa2ba08e23fa0eeebe2a580e5094ee8285183d8 | Java | vsshakuntala/TFOctober26 | /src/main/java/com/tf/usermanagement/domain/CustomerOrganizationMap.java | UTF-8 | 2,370 | 2.09375 | 2 | [] | no_license | package com.tf.usermanagement.domain;
import java.io.Serializable;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax... | true |
d80841e6831da645e4d1c50bad5321d4ad85dc73 | Java | xiaolaoshu9696/letto-offer | /src/letto/offer/Q09_JumpFloorII.java | UTF-8 | 922 | 3.703125 | 4 | [] | no_license | package letto.offer;
/**
* 一只青蛙一次可以跳上1级台阶,也可以跳上2级……它也可以跳上n级。
* 求该青蛙跳上一个n级的台阶总共有多少种跳法。
*/
public class Q09_JumpFloorII {
public int JumpFloorII(int target) {
if (target ==1) return 1;
if (target ==2) return 2;
//链接:https://www.nowcoder.com/questionTerminal/22243d016f6b47f2a6928b4313c8538... | true |
2101424787b3d692286f1d3f7cde42ae71e4fedd | Java | weijx-xa/hsx01 | /src/hsx/com/controller/UnionController.java | GB18030 | 1,128 | 2.125 | 2 | [] | no_license | package hsx.com.controller;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import hsx.com.entity.Union;
import hsx.com.ser... | true |
a1e8fb41e2a00ded89a681e06f72c678a594da63 | Java | GimZoom/miaosha | /src/main/java/com/yyj/service/UserService.java | UTF-8 | 390 | 1.867188 | 2 | [] | no_license | package com.yyj.service;
import com.yyj.pojo.User;
import com.yyj.vo.LoginVO;
import javax.servlet.http.HttpServletResponse;
public interface UserService {
User findById(Long id);
Boolean updatePassword(String token, Long id, String formPass);
String login(HttpServletResponse response, LoginVO loginVO)... | true |
e2b5c021b9b8feec11739c1ef335676dfa2b502e | Java | raghu-achukola/quidditch-notebook | /src/com/example/quidditchnotebook/ViewTeamActivity.java | UTF-8 | 5,563 | 2.09375 | 2 | [] | no_license | package com.example.quidditchnotebook;
import java.util.ArrayList;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.ActionBar;
import android.support.v4.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.vie... | true |
ea5c22e6d7929846231529da711a2d233df86338 | Java | thomasaudren/tp3 | /Serveur/ServeurTCP.java | UTF-8 | 3,971 | 2.75 | 3 | [] | no_license | package Serveur;
import java.net.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.io.*;
import org.jdom2.Document;
import org.jdom2.Element;
import org.jdom2.JDOMException;
import org.jdom2.input.SAXBuilder;
import API.Api;
public class ServeurTCP extends Thread {
private Socket ... | true |
24e605afd7b1fde46cd326d91f209e913978998a | Java | microspeed2018/project | /yuanlinjinguan/biz/core-model/src/main/java/com/zjzmjr/core/model/admin/BusinessQuery.java | UTF-8 | 2,427 | 2.03125 | 2 | [] | no_license | package com.zjzmjr.core.model.admin;
import com.zjzmjr.core.base.page.BasePageQuery;
/**
* 事物查询 query
*
* @author Administrator
* @version $Id: BusinessQuery.java, v 0.1 2016-7-12 上午10:30:28 Administrator
* Exp $
*/
public class BusinessQuery extends BasePageQuery {
private static final long seri... | true |
3c75bed3fec4a809bff92dadba04d923143a1a1e | Java | apache/avro | /lang/java/ipc/src/test/java/org/apache/avro/ipc/TestRpcPluginOrdering.java | UTF-8 | 3,046 | 1.984375 | 2 | [
"BSD-3-Clause",
"Zlib",
"GPL-1.0-or-later",
"FSFAP",
"MIT",
"LicenseRef-scancode-other-permissive",
"zlib-acknowledgement",
"GPL-2.0-only",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
ce43c61bbee341d7e70036ae52bbeb1aa7dc6f15 | Java | bellmit/omf | /rap-business-dom/src/main/java/rap/api/object/pp/model/ProdPlanSpecSheetVO.java | UTF-8 | 3,903 | 1.820313 | 2 | [] | no_license | /*
* ===================================================================
* System Name : PLM Project
* Program ID : ProdPlanSpecSheetVO.java
* ===================================================================
* Modification Date Modifier Description
* 2017.04.?? DS Shin Ini... | true |
2803ea1f961043d08edfd38a0b5b06638ee34621 | Java | hollyroberts/volcano-infiltration | /src/game_base/Mouse.java | UTF-8 | 3,530 | 2.734375 | 3 | [] | no_license | package game_base;
import game_logic.Data;
import java.awt.Graphics2D;
import java.awt.MouseInfo;
import java.awt.Point;
import java.awt.event.MouseEvent;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import particles.ParticleHandler;
import play... | true |
d35e217047cf85f3f41a5d35c29a40c04ec727fa | Java | kpac3748/davidWuExample | /JavaEx_Part2/src/idv/david/additional/enumevo/PrivateShirt2.java | UTF-8 | 665 | 2.546875 | 3 | [] | no_license | package idv.david.additional.enumevo;
public class PrivateShirt2 {
private int shirtID = 0;
private String description = "-description required-";
// ● 顏色碼 R=紅色, B=藍色, G=綠色, U=未定
private ColorCode colorCode = ColorCode.U;
private double price = 0.0;
private int quantityInStock = 0;
// ●getXxx
public ColorCod... | true |
5bbe946c15e012268064b63a385b185d87f711e0 | Java | andylauxugang2/invest | /ivcommons/src/main/java/com/invest/ivcommons/validate/Validateware.java | UTF-8 | 288 | 1.601563 | 2 | [] | no_license | package com.invest.ivcommons.validate;
import com.invest.ivcommons.base.result.Result;
import com.invest.ivcommons.validate.model.ValidParam;
/**
* Created by xugang on 2017/7/28.
*/
public interface Validateware<R extends Result, P extends ValidParam> {
R valid(P validParam);
}
| true |
44c45948b9d1e0f25a0834d7599623997f597ca1 | Java | SpandanSarkar/Java-Project | /StudentProfile.java | UTF-8 | 15,918 | 2.34375 | 2 | [] | no_license |
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this t... | true |
526a9677d98123c665bf91e154276ddddf982f6f | Java | LK-Tmac1/JavaOOD | /src/设计模式/工厂/工厂/Client.java | UTF-8 | 672 | 2.796875 | 3 | [] | no_license | package 设计模式.工厂.工厂;
import 设计模式.工厂.entity.DBRequest;
import 设计模式.工厂.工厂.dbAccessFactory.InterfaceDAOFactory;
import 设计模式.工厂.工厂.dbAccessFactory.OracleFactory;
import 设计模式.工厂.简单工厂.dbAccessObject.InterfaceDAO;
public class Client {
private static void case1() {
DBRequest request = new DBRequest();
/... | true |
55367bdd5c3ba74f77fa8b5ed892b9c8cddebab0 | Java | packagewjx/brand-report-backend | /src/main/java/io/github/packagewjx/brandreportbackend/service/BaseService.java | UTF-8 | 2,568 | 2.78125 | 3 | [] | no_license | package io.github.packagewjx.brandreportbackend.service;
import java.util.Optional;
/**
* @author Junxian Wu
* <p>
* 实体访问服务
*/
public interface BaseService<T, ID> {
/**
* 保存给定实体
* <p>
* 若实体是新的实体,没有之前的ID,则是插入新的实体,且返回的实体中包含新的ID。
* 若实体拥有ID,则更新数据库中对应的实体。
*
* @param val 新数据
* @re... | true |
e6e93e9b63b59df6e49d4f4a6ec8ad9db02b85ad | Java | hallvard/jexercise | /no.hal.learning/no.hal.learning.exercise/workspace/src/no/hal/learning/exercise/workspace/impl/LaunchAnswerImpl.java | UTF-8 | 6,666 | 1.828125 | 2 | [] | no_license | /**
*/
package no.hal.learning.exercise.workspace.impl;
import java.util.Collection;
import no.hal.learning.exercise.TaskEvent;
import no.hal.learning.exercise.impl.TaskAnswerImpl;
import no.hal.learning.exercise.util.Util;
import no.hal.learning.exercise.workspace.LaunchAnswer;
import no.hal.learning.exercise.works... | true |
36443541e906d7abdee77f6a91a6ff6f34a94e28 | Java | thelucasgarcia/Calculadora | /Calculadora/src/calculadora/AdubagemSimples.java | UTF-8 | 1,001 | 3.140625 | 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 calculadora;
/**
*
* @author bruno
*/
public class AdubagemSimples {
/*
Onde:
QA = Quantidade a ap... | true |
6fa1249a1adc6b754b84f7a4eb7dad702348d876 | Java | moroclash/IDBI-Bank | /src/GUI/MY_Balance.java | UTF-8 | 870 | 2.40625 | 2 | [] | no_license |
package GUI;
import java.awt.Color;
import java.awt.event.ActionEvent;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class MY_Balance extends form_one_std_filed{
protected JLabel Mybalance;
public MY_Balance(String x)
{
super("MY Balance");
submit.setVisi... | true |
b248548b47b6443bccc49ce15979f544bc4f6f01 | Java | duongthuhuyen/B-i-t-p-v-nh- | /bai_tap_buoi_2/src/baitapkethua/bai8_chuabt/Test.java | UTF-8 | 1,498 | 3.03125 | 3 | [] | no_license | package baitapkethua.bai8_chuabt;
import java.util.Scanner;
public class Test{
public static void main(String[] args) {
ProductManager productManager = new ProductManager(3);
productManager.input();
productManager.output();
boolean flag = true;
Scanner sc = new Scanner(Sy... | true |
e995ae776342f0cc633fd7bb70d7ab8c4a9c5af4 | Java | calvinlau/algoboy | /leetcode/src/tree/BinaryTreeLevelOrderTraversalII.java | UTF-8 | 1,628 | 3.9375 | 4 | [] | no_license | package tree;
import java.util.*;
/**
* Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).
* For example:
* Given binary tree {3,9,20,#,#,15,7},
* Return:
* [
* [15,7],
* [9,20],
* [3]
* ]
*
* @... | true |
53f0954bd0be54f670b56fd87b3968f71e3f7336 | Java | TanishqBhardwaj/SplitItGo | /app/src/main/java/com/example/SplitItGo/Adapter/AllMemberAdapter.java | UTF-8 | 1,671 | 2.234375 | 2 | [] | no_license | package com.example.SplitItGo.Adapter;
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 androidx.annotation.NonNull;
import androidx.an... | true |
8f84cf08bd6ca00f7f10aec59679745cda8b0f8c | Java | tkob/yokohamaunit | /src/main/java/yokohama/unit/ast/PredicateVisitor.java | UTF-8 | 380 | 1.976563 | 2 | [
"MIT"
] | permissive | package yokohama.unit.ast;
public interface PredicateVisitor<T> {
T visitIsPredicate(IsPredicate isPredicate);
T visitIsNotPredicate(IsNotPredicate isNotPredicate);
T visitThrowsPredicate(ThrowsPredicate throwsPredicate);
T visitMatchesPredicate(MatchesPredicate matchesPredicate);
T visitDoesNotMat... | true |
60f91bbeac9ce9f0e811ad77b6f7ff1a6dfdbb97 | Java | alextod/HibernateHandsOn | /src/main/java/com/home/model/Company.java | UTF-8 | 782 | 2.609375 | 3 | [] | no_license | package com.home.model;
import javax.persistence.Embeddable;
/**
* Created by atodorov on 1/23/2017.
*/
@Embeddable
public class Company {
private String title;
private String city;
public Company(){}
public Company(String title, String city) {
this.title = title;
this.city = city;... | true |
af97496c8cba673714a97ea3dc9fc580b76fe1c3 | Java | AnujaKoralage/LiquorStockManagment | /LiquorStock/src/Entities/Supplier_order_confirmation.java | UTF-8 | 647 | 2.390625 | 2 | [] | no_license | package Entities;
public class Supplier_order_confirmation extends SuperEntity{
private int grnID;
private String confirmation;
public Supplier_order_confirmation() {
}
public Supplier_order_confirmation(int grnID, String confirmation) {
this.grnID = grnID;
this.confirmation = con... | true |
34ebe7efc61de0efcf36742e82041c43448d09bc | Java | radtek/ssms | /src/com/aspire/ponaadmin/common/rightmanager/RightDAO.java | GB18030 | 7,407 | 2.4375 | 2 | [] | no_license | package com.aspire.ponaadmin.common.rightmanager ;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import com.aspire.common.db.DAOException;
import com.aspire.common.db.DB;
import com.aspire.common.log.proxy.JLogger;
impo... | true |
acd378b75d5738f8bc288abd65380b7311305197 | Java | arunnair05/Septworkexamples | /src/test/java/org/arun/basic/Septworkexamples/web/pages/IndividualIncomePage.java | UTF-8 | 1,123 | 2.234375 | 2 | [] | no_license | package org.arun.basic.Septworkexamples.web.pages;
import static org.testng.Assert.assertTrue;
import org.arun.basic.Septworkexamples.core.Log;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.ui.ExpectedConditio... | true |
22b143479a7f6cf238bec07da6b199c801a2b1a5 | Java | ahmetcagdasturan/Java-Bridge-Pattern- | /İsletimSistemi.java | UTF-8 | 237 | 2.078125 | 2 | [] | no_license |
public abstract class İsletimSistemi {
private TestSeviye testSeviyesi;
public İsletimSistemi(TestSeviye testSeviyesi) {
this.testSeviyesi = testSeviyesi;
}
public void testeBasla() {
testSeviyesi.testIslem();
}
}
| true |
3ff48a5733ecc5adc65cfefafd575d3802ab1d74 | Java | macalinao/PersonasAPI | /src/main/java/com/crimsonrpg/personas/personasapi/event/EventType.java | UTF-8 | 360 | 1.828125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.crimsonrpg.personas.personasapi.event;
/**
* Represents a type of event in Personas.
*/
public enum EventType {
NPC_CREATE,
NPC_DESPAWN,
NPC_DESTROY,
NPC_LEFT_CLICK,
... | true |
098ef8ecef088da08130a023eec9ded02475e92b | Java | anishk33/ApigeeRules | /src/main/java/com/apigee/rules/helpers/DatatypeConverter.java | UTF-8 | 1,485 | 3.296875 | 3 | [] | no_license | package com.apigee.rules.helpers;
import com.apigee.rules.exception.DataNotFoundException;
import com.apigee.rules.exception.InvalidDataException;
import com.apigee.rules.models.Datatype;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.math.NumberUtils;
/**
* A converter to create concre... | true |
c95cdf8b132f5fca502e4f524239fce78c1d751e | Java | dude1410/social_network | /src/main/java/javapro/model/dto/PostDTO.java | UTF-8 | 877 | 1.867188 | 2 | [] | no_license | package javapro.model.dto;
import javapro.model.dto.auth.AuthorizedPerson;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.List;
@Data
public class PostDTO {
@JsonProperty(value = "id")
private Integer id;
@JsonProperty(value = "time")
private Long time;
... | true |
7ff9a0b599f68566b36d50a1171d1ae431f81705 | Java | qvanphong/Simple-blog-api-with-Swagger | /src/main/java/tech/qvanphong/blog/repository/UserRepository.java | UTF-8 | 238 | 1.601563 | 2 | [] | no_license | package tech.qvanphong.blog.repository;
import org.springframework.data.repository.PagingAndSortingRepository;
import tech.qvanphong.blog.model.User;
public interface UserRepository extends PagingAndSortingRepository<User, Integer> {
}
| true |
3190051ddf74d0949012108c2ca84d2a5f22505e | Java | BarCzerw/DesignPatterns | /src/main/java/designpatterns/behavioral/strategy/BankPayment.java | UTF-8 | 206 | 3.203125 | 3 | [] | no_license | package designpatterns.behavioral.strategy;
public class BankPayment implements Payment{
@Override
public void pay(double price) {
System.out.println("Paid " + price + " in bank");
}
}
| true |
c29f36ed10f06421d10b0e97ea0550be00476fb6 | Java | logan2013/tutorials | /spring-jwt/src/main/java/com/imtzp/jwt/security/util/JwtTokenGenerator.java | UTF-8 | 1,217 | 2.625 | 3 | [] | no_license | package com.imtzp.jwt.security.util;
import com.imtzp.jwt.security.transfer.JwtUserDto;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import io.jsonwebtoken.impl.TextCodec;
public class JwtTokenGenerator {
public static String generateToken(JwtUserDto u, Str... | true |
d04d336612193a613a9bb773512148665300dfcf | Java | sdsaustin/sdsjava | /HelloJavaEE/src/HelloWorldServlet.java | UTF-8 | 1,424 | 2.640625 | 3 | [] | no_license |
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
... | true |
8469b5c4deea1b2ff2ff398a0ebd9b82f7387763 | Java | moutainhigh/goddess-java | /modules/devicerepair/devicerepair-api/src/main/java/com/bjike/goddess/devicerepair/to/DeviceRepairTO.java | UTF-8 | 10,141 | 2.015625 | 2 | [] | no_license | package com.bjike.goddess.devicerepair.to;
import com.bjike.goddess.common.api.entity.ADD;
import com.bjike.goddess.common.api.entity.EDIT;
import com.bjike.goddess.common.api.to.BaseTO;
import com.bjike.goddess.devicerepair.type.AuditState;
import com.bjike.goddess.devicerepair.type.MaterialState;
import org.hibernat... | true |
6438265b3a6118b028702716d5916b2d36925ef2 | Java | flex-cle-fall-2018/we-can-read-it | /src/main/java/org/wecanreadit/ReaderController.java | UTF-8 | 14,313 | 1.984375 | 2 | [] | no_license | package org.wecanreadit;
import java.util.Collection;
import java.util.Optional;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.annotation.Resource;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.Servle... | true |
d4e534080340f5c7e7ac5b6aeac994e239eb4fb7 | Java | Kalon1997/OverchargeIndicatorAndroidApp | /MainActivity.java | UTF-8 | 3,891 | 2.0625 | 2 | [] | no_license | package com.example.kalon.overchargeindicator;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.BatteryManager;
import android.os.Bu... | true |
88db2b97d1715644150f9d0f936b09245bd2bee2 | Java | codeyeri7/DaBID | /backend/src/main/java/com/ssafy/api/service/WishService.java | UTF-8 | 485 | 1.851563 | 2 | [] | no_license | package com.ssafy.api.service;
import com.ssafy.api.response.LiveRes;
import com.ssafy.db.entity.Live;
import com.ssafy.db.entity.User;
import com.ssafy.db.entity.WishList;
import java.util.List;
public interface WishService {
List<WishList> getWishLives(User user);
void putWishLive(User user, int prdId);
... | true |
97aa9096a73969c738bc59b9d82a711437af05b5 | Java | cwly101/java-reflection-demo | /java-mianshi-demo/src/com/mianshi/AtomicReferenceDemo.java | GB18030 | 978 | 3.5625 | 4 | [] | no_license | package com.mianshi;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;
import java.util.concurrent.atomic.AtomicReference;
@Getter
@AllArgsConstructor
@ToString
class Student{
private String name;
private Integer age;
}
/**
* AtomicReference Զԭʾ
* @author caowei
* @create ... | true |
fac1ec1790db0da94630b27f8426d5c9bcf8f027 | Java | yaitsmesj/NewsRead | /app/src/main/java/com/example/suraj/newsread/SourceNewsActivity.java | UTF-8 | 1,129 | 2.453125 | 2 | [] | no_license | package com.example.suraj.newsread;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import com.example.suraj.newsread.fragments.NewsFragment;
import com.example.suraj.newsread.models.Articles;
public class SourceNewsActivity ... | true |
34af7c93b034bcef636bbcee86a5e3bee49abc5f | Java | heisenberg2208/AgriTech | /FarmGuide/app/src/main/java/com/example/pankaj/farmguide/HeatMapActivity.java | UTF-8 | 2,051 | 2.25 | 2 | [] | no_license | package com.example.pankaj.farmguide;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.OnMapReadyCallback;
import com.google.android.gms.maps.SupportMapFra... | true |
434129e78da40410a2b295c48bf9ce00c053d64e | Java | shermaza/DevelopmentKit | /src/com/artificial/cachereader/fs/IndexFile.java | UTF-8 | 1,956 | 2.34375 | 2 | [
"MIT"
] | permissive | package com.artificial.cachereader.fs;
import com.artificial.cachereader.DataSource;
import com.artificial.cachereader.datastream.ByteStream;
import com.artificial.cachereader.datastream.Stream;
import com.artificial.cachereader.meta.ArchiveRequest;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.... | true |
e050f3c8407cd325058d60f475e35724792c2f0f | Java | NicholasDowell/Contact-List-Group-Project | /src/MainMethod.java | UTF-8 | 1,829 | 3.890625 | 4 | [] | no_license | import java.util.Scanner;
/**
* Tests all use cases and proves the program runs as specified.
* @author Nick
*
*/
public class MainMethod {
public static void main(String[] args) {
ContactList myList = new ContactList();
myList.read();
boolean notFinished = true;
while (notFinished){
System.out.p... | true |
9123bb53cf36231cbba041c186101a419400712c | Java | guangheUlti/media_cms | /media-web/src/main/java/io/guangsoft/media/config/ShiroConfigProperties.java | UTF-8 | 2,778 | 1.773438 | 2 | [] | no_license | package io.guangsoft.media.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
@Data
@ConfigurationProperties(prefix = "guangsoft.shiro")
public class ShiroConfigProperties {
//最大尝试次数
private Integer maxRetryCount = 3;
//第几次时需要使用验证码
private Integer s... | true |
7ddd4dbc2654fc336465df3ac0f646bb05484534 | Java | aidhog/swse | /src/org/semanticweb/swse/rank/master/MasterRankingArgs.java | UTF-8 | 2,207 | 1.984375 | 2 | [] | no_license | package org.semanticweb.swse.rank.master;
import org.deri.idrank.RankGraph;
import org.semanticweb.swse.MasterArgs;
import org.semanticweb.swse.RMIUtils;
import org.semanticweb.swse.rank.RMIRankingServer;
import org.semanticweb.swse.rank.SlaveRankingArgs;
public class MasterRankingArgs extends MasterArgs<Mast... | true |