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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
61da16e5ee745f1fde6b491c9aa6b5755258cbcf | Java | tigrankhojoyan/WebServicesExample | /src/main/java/com/mkyong/sims/OperationsContainer.java | UTF-8 | 1,389 | 2.125 | 2 | [] | no_license | package com.mkyong.sims;
import com.predic8.wsdl.Definitions;
import com.predic8.wsdl.WSDLParser;
import javax.xml.soap.SOAPMessage;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
/**
* Created by tigrank on 8/28/2015.
*/
public class OperationsContainer {
private static Operatio... | true |
16c65d4d136450859bea586f59f5d9af947d5edc | Java | aeyaros/schoolwork | /Java/Mandelbrot/mandelbrot.java | UTF-8 | 3,494 | 3.3125 | 3 | [] | no_license | /* Andrew Yaros
* CS 361 Assignment 1
* Part 2
* MULTITHREADED VERSION
*//* Mandelbrot thread class */
public class mandelbrot extends Thread {
private final double xlo, xhi, ylo, yhi;
private final int index, wdt, hgt, threshold;
mandelbrot(String NAME, int INDEX, double XLO, double XHI,
... | true |
de6fc27197dcd7d56918b190bb36720590f41af0 | Java | TishkevichLeonid/SecurityGame | /core/src/com/leo/game1/Actors/menuActors/DustBottomActor.java | UTF-8 | 939 | 2.453125 | 2 | [] | no_license | package com.leo.game1.Actors.menuActors;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.scenes.scene2d.Actor;
/**
* Created by leonidtiskevic on 05.03.17.
*/
public class DustBottomActor extends Actor {
private com.leo.game1.objects.Animation.DustBottom mDustB... | true |
392c84da23d3406d3b695f69897bf4ee4aad7be8 | Java | codelious/gwt-designer | /com.google.gdt.eclipse.designer.tests/src/com/google/gdt/eclipse/designer/smartgwt/model/widgets/WindowTest.java | UTF-8 | 3,546 | 1.75 | 2 | [] | no_license | /*******************************************************************************
* Copyright 2011 Google Inc. All Rights Reserved.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution,... | true |
cf65a7aff311eabcae9742263859fddd4f09afe8 | Java | roycetech/rule-engine | /src/test/java/com/github/roycetech/rule_engine/utils/ShunterTest.java | UTF-8 | 5,030 | 2.796875 | 3 | [
"Apache-2.0"
] | permissive | /**
*
*/
package com.github.roycetech.rule_engine.utils;
import static org.junit.Assert.assertArrayEquals;
import java.util.ArrayDeque;
import java.util.Deque;
import org.junit.Test;
import utils.PrivateMethodInvoker;
/**
* Testing a binary operation true[0]&true[1]
*
* @author royce
*/
public class ShunterT... | true |
85db5c9f289561e23a8ffa112045a76a840e715e | Java | scirillo/visitapp_android | /visitapp/app/src/main/java/com/vistapp/visitapp/fragments/DoctorDialogFragment.java | UTF-8 | 3,922 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package com.vistapp.visitapp.fragments;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.DialogFragment;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;... | true |
d1a8c0e0cf62c0a65511e220d01c943af6b04410 | Java | soumik-dutta/weather_report_working | /src/main/java/com/omoto/configurator/pojo/StartMachineRequest.java | UTF-8 | 259 | 1.539063 | 2 | [] | no_license | package com.omoto.configurator.pojo;
import lombok.Data;
import org.springframework.stereotype.Component;
/**
* Created by omoto on 17/2/17.
*/
@Data
@Component
public class StartMachineRequest {
private String vmId;
private String machineName;
}
| true |
4061c70c82f326499395535b7e70f8f0e7799ae7 | Java | tma02/gb-emu | /core/src/tma02/gbemu/emulation/CPU.java | UTF-8 | 6,333 | 2.875 | 3 | [
"MIT"
] | permissive | package tma02.gbemu.emulation;
public class CPU {
public static final double CLOCK_HZ = 4194304;
private GameBoy gameBoy;
private InstructionHandler instructionHandler;
private long lastCycle;
private long lastSecond;
private float cycles;
private byte[] registers;
private boolean sto... | true |
e695639092648be0c4a0ca18950cc2c288dd25ed | Java | renlinjun/plumdo-work | /java/identity-service/src/main/java/com/plumdo/identity/repository/GroupRepository.java | UTF-8 | 641 | 1.90625 | 2 | [
"Apache-2.0"
] | permissive | package com.plumdo.identity.repository;
import java.util.List;
import org.springframework.data.jpa.repository.Query;
import com.plumdo.common.repository.BaseRepository;
import com.plumdo.identity.constant.TableConstant;
import com.plumdo.identity.domain.Group;
public interface GroupRepository extends BaseRepository... | true |
5323a627556fb934f822176e837deea61a005921 | Java | Gaoxiaokai123/Movie | /app/src/main/java/com/bawei/cinemademo/frag/tab/TabSelect.java | UTF-8 | 4,081 | 1.960938 | 2 | [] | no_license | package com.bawei.cinemademo.frag.tab;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextVie... | true |
a559f43236731f43b99c620e517ab84ead039205 | Java | redcurry/ViewTest | /QuaintImageViewer/src/com/quaintsoft/imageviewer/preference/FitPreferenceApplier.java | UTF-8 | 1,704 | 2.3125 | 2 | [] | no_license | package com.quaintsoft.imageviewer.preference;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import com.quaintsoft.imageviewer.ImageViewZoomer;
import com.quaintsoft.imageviewer.R;
public class FitPreferenceApplier {
private Context context;... | true |
9c0e6789ddfe0d0e6bcc4424bec47186f808a49a | Java | janggoonlee/java | /Soldesk/src/MathodTest.java | UTF-8 | 2,280 | 3.65625 | 4 | [] | no_license | import java.util.Scanner;
public class MathodTest {
public static void main(String[] args) {
/* int i = 1, g=1;
while(i<=10) {
g*=i;
i++;
}
System.out.println(g);
*/
/*
int gop =1;
for(int i = 2 ; i<=9; i+=2) {
for(int j =1; j<=9;j++) {
gop=i*j;
System.out.println(i+"... | true |
513df9ca0265ddc300c2f8cfab0ef6a75017448c | Java | ikomesmith85/AndroidApp | /app/src/main/java/com/example/andrew/project/Views/LoginScreen.java | UTF-8 | 5,075 | 2.34375 | 2 | [] | no_license | package com.example.andrew.project.Views;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import com.example.andrew.project.Model.... | true |
c8c0621ca74a87d26726c5dbf4dd989fc0a17c0f | Java | Lihao0python/blogsys-parent | /blogsys-admin/src/main/java/com/songsy/admin/controller/LoginController.java | UTF-8 | 6,433 | 2.234375 | 2 | [] | no_license | package com.songsy.admin.controller;
import com.songsy.admin.dto.UserDTO;
import com.songsy.admin.entity.LoginHistory;
import com.songsy.admin.entity.MenuBar;
import com.songsy.admin.entity.User;
import com.songsy.admin.entity.UserRole;
import com.songsy.admin.service.*;
import com.songsy.core.utils.MessageUtils;
impo... | true |
36a37ade64e6fc48defcc9fa2ff86b467c1f662e | Java | jun0315/Mandarin-Library | /src/servlet/AlertToEmailServlet.java | UTF-8 | 2,184 | 2.046875 | 2 | [] | no_license | package servlet;
import dao.AdminSettingsDao;
import dao.ReaderBorrowDao;
import dao.ReaderDao;
import entity.ReaderBorrow;
import utils.FindReaderPassword;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRe... | true |
9f2b19d031396fb4acdbe10d0ab59a827a38d221 | Java | thechiefishere/HackerEarth | /Hackerearth/src/hackerearth/DistributeChocolates.java | UTF-8 | 872 | 3.09375 | 3 | [] | no_license | package hackerearth;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class DistributeChocolates {
public static void main(String[] args) throws NumberFormatException, IOException{
BufferedReader br = new BufferedRe... | true |
c0c4382870dacfec11d89a458c3cbbe49ca274e7 | Java | nkonev/videochat | /aaa/src/main/java/com/github/nkonev/aaa/security/AbstractOAuth2UserService.java | UTF-8 | 4,072 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package com.github.nkonev.aaa.security;
import com.github.nkonev.aaa.converter.UserAccountConverter;
import com.github.nkonev.aaa.exception.OAuth2IdConflictException;
import com.github.nkonev.aaa.dto.UserAccountDetailsDTO;
import com.github.nkonev.aaa.entity.jdbc.UserAccount;
import org.slf4j.Logger;
import org.spring... | true |
609d083b51b968bba084e6daf297932fe097ba38 | Java | vead/JME | /Phobos/src/no/jchief/phobos/factory/EntityFactory.java | UTF-8 | 2,833 | 2.359375 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package no.jchief.phobos.factory;
import no.jchief.phobos.component.Component;
import no.jchief.phobos.component.InSceneComponent;
import no.jchief.phobos.component.MovementComponent;
import no.jchief.phobos.co... | true |
9af6b79504a9ea18d449bd3e33db35544ef5787e | Java | dawn2004cn/AndroidDemo-github | /app/src/main/java/com/noahedu/utils/AssetsFileUtils.java | UTF-8 | 2,984 | 2.125 | 2 | [] | no_license | package com.noahedu.utils;
import android.content.Context;
import android.content.res.AssetManager;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import com.google.gson.Gson;
import com.noahedu.common.filedownloader.base.Log;
import com.noahedu.demo.utils.DingDataBean;
import com.noahedu.demo... | true |
240db2963ad27ea151bb473321713f35c5f77a18 | Java | Stathisnik/webchat | /WebChat/src/java/gr/webchat/web/messenger/web/HelloWorldServlet.java | UTF-8 | 945 | 2.203125 | 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 gr.webchat.web.messenger.web;
import java.io.Writer;
import javax.servlet.ServletException;
import javax.servlet.http... | true |
28ffa4176c96691f6c66dd490b9e12291e6c1fce | Java | boc1006/pahot | /.svn/pristine/2c/2c1de4998753c2101cd0e2cad27af512f9b2d6f7.svn-base | UTF-8 | 606 | 1.898438 | 2 | [] | no_license | package cn.pahot.member.consts;
/**
* 会员管理常量定义
* <p>@Title: MemberConsts.java
* <p>@Package cn.pahot.member.consts
* <p>@Description: TODO
* <p>@author huangjie hj87080234@gmail.com
* <p>@date 2017年12月21日 下午1:50:01
* <p>@version V1.0
* <p>Copyright © boc group.All Rights Reserved.
*/
public class Member... | true |
6d8b98f03b3b17d2f4ca81a501e3d73081e446da | Java | AleksandrShatov/Plant-Devices-Information-System | /src/main/java/app/services/UsersManager.java | UTF-8 | 1,858 | 2.6875 | 3 | [] | no_license | package app.services;
import app.dao.UserDao;
import app.dto.user.Permissions;
import app.dto.user.api.IUser;
import app.dto.user.api.UserRole;
import app.services.api.IUsersManager;
import java.util.ArrayList;
import java.util.List;
public class UsersManager implements IUsersManager {
private static UsersManag... | true |
75e66c58728ba5306c5fc5470404a792061d2201 | Java | zhujiajunup/graduate | /src/main/java/cn/edu/zju/zjj/config/DataSourceConfig.java | UTF-8 | 3,838 | 2.0625 | 2 | [] | no_license | package cn.edu.zju.zjj.config;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
imp... | true |
9784941610b07785c9577c707ad8708672d97b91 | Java | wvffle/Reposilite | /reposilite-backend/src/main/java/org/panda_lang/reposilite/user/role/RoleInitializer.java | UTF-8 | 843 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package org.panda_lang.reposilite.user.role;
import org.panda_lang.panda.utilities.commons.collection.Sets;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;
@Component
public class RoleInitializer i... | true |
88a71c8a78ec872d38f354f9bb1c537ac5d85b0a | Java | Deron84/xxxTest | /src/com/huateng/system/util/DateUtil.java | UTF-8 | 11,269 | 2.953125 | 3 | [] | no_license | package com.huateng.system.util;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;
/**
* @author zhaozc
* @Modify 2014-10-16
*/
public class DateUtil {
/**
*
*... | true |
3b2e15de415e65ffb7006623580ec85e1a41b1db | Java | ajbd2106/SparkETL | /src/main/java/com/easternallstars/star/spark/job/task/source/DataFrameSource.java | UTF-8 | 1,276 | 2.265625 | 2 | [] | no_license | package com.easternallstars.star.spark.job.task.source;
import com.easternallstars.star.spark.common.DataFrameUtil;
import com.easternallstars.star.spark.common.HBaseUtil;
import com.easternallstars.star.spark.job.task.TaskConf;
import org.apache.spark.sql.Dataset;
import org.apache.spark.sql.Row;
import org.apache.s... | true |
4f154457d1ce4a3be4be6569109d9a03f1cbbc80 | Java | happymwkang/BigdataMW | /Java/study/step01_syntax/src/step02/apply/Step02Family.java | UHC | 1,248 | 3.25 | 3 | [] | no_license | package step02.apply;
public class Step02Family {
String Fr;
String name;
int age;
Step02Family(){}
/*
void addAge(int addAge) {
age = age + addAge;
}
String getFr() {
return Fr;
}
String getName() {
return name;
}
*/
public static void main(String[] args) {
Step02Family pet1 = new Step02... | true |
2e2a0258898d7f5b91b423653f2b8d067aefb183 | Java | kobilemberg/aakl--OldJavaGame | /GameProject/src/model/test/Test.java | UTF-8 | 2,354 | 3.28125 | 3 | [] | no_license | package model.test;
import java.util.ArrayList;
import model.algorithems.Action;
import model.algorithems.AstarHeuristicSearcher;
import model.algorithems.BFSCommonSearcher;
import model.algorithms.distances.AirDistance;
import model.domains.maze.MazeSearchDomain;
public class Test {
public Test() {
... | true |
7a4c31ff8142ea27a4b51360f253571db4b891df | Java | ricardotassio/irtree | /XXLCore/src/xxl/core/math/statistics/nonparametric/kernels/KernelFunctionND.java | UTF-8 | 2,638 | 2.515625 | 3 | [] | no_license | /* XXL: The eXtensible and fleXible Library for data processing
Copyright (C) 2000-2004 Prof. Dr. Bernhard Seeger
Head of the Database Research Group
Department of Mathematics and Computer Science
University of Marburg
... | true |
e9c34c4fdaf65737c799c056e32f0869411df7a6 | Java | majia67/leetcode | /src/easy/prob009.java | UTF-8 | 307 | 2.75 | 3 | [] | no_license | package easy;
public class prob009 {
public boolean isPalindrome(int x) {
if (x < 0 || x != 0 && x % 10 == 0) return false;
int n = 0;
while (x > n) {
n = n * 10 + x % 10;
x /= 10;
}
return (x == n) || (x == n / 10);
}
}
| true |
4a12919ea2101cdfa25ec20bd14ffbe054af664e | Java | Greatkingcj/marksman | /app/src/main/java/com/huya/marksman/widget/ShatterAnimGLView.java | UTF-8 | 1,301 | 2.015625 | 2 | [] | no_license | package com.huya.marksman.widget;
import android.app.ActivityManager;
import android.content.Context;
import android.content.pm.ConfigurationInfo;
import android.graphics.PixelFormat;
import android.opengl.GLSurfaceView;
import android.util.AttributeSet;
/**
* Created by charles on 2018/7/19.
*/
public class Shatt... | true |
09912f167dd33e17f1e0212346dc4e66525348a3 | Java | weiwei02/spring-cloud-learning | /spring-cloud-task-learning/batchparent/people-batch/src/main/java/com/github/weiwei02/springcloud/task/batch/peoplebatch/aspect/DataSourceAop.java | UTF-8 | 1,315 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | package com.github.weiwei02.springcloud.task.batch.peoplebatch.aspect;
import com.github.weiwei02.common.spring.data.config.DataSourceContextHolder;
import com.github.weiwei02.springcloud.task.batch.peoplebatch.enums.DataSourceType;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
... | true |
8da2188a1c4954b7ea8a19b8cbd1144fff1dc862 | Java | Zamo98/Algoritmos-y-estructura-de-datos-1 | /src/EjemploThrow.java | UTF-8 | 1,079 | 3.578125 | 4 | [] | no_license | import javax.swing.*;
public class EjemploThrow {
public static void main(String[] args) throws Exception {
Prueba();
try {
int[] mat = {5, 9, 78, 45};
int opcion = Integer.parseInt(JOptionPane.showInputDialog("Cuál posición del array desea obtener?"));
System.ou... | true |
5377de384b5a256c8776c54af45fc100273d2d09 | Java | MagdaTom/Magdalena_Tomaszewska-kodilla_tester | /kodilla-advanced-tests/src/main/java/com/kodilla/mockito/homework/AlertService.java | UTF-8 | 2,182 | 2.828125 | 3 | [] | no_license | package com.kodilla.mockito.homework;
import java.util.*;
import java.util.stream.Collectors;
public class AlertService {
private Map<Location, Set<Client>> clientAndLocationMap = new HashMap<>();
public void addDataToTheMap(Location location, Client client) {
if (this.clientAndLocatio... | true |
033bf61cf64f054a571be0a91ad7ad22f1e55825 | Java | mahsankhalil/usmanSignUp | /app/src/main/java/com/example/signup/userDTO.java | UTF-8 | 202 | 2.09375 | 2 | [] | no_license | package com.example.signup;
public class userDTO {
public userDTO(String title, int pic) {
this.title = title;
this.pic = pic;
}
public String title;
public int pic;
}
| true |
0f0d9c49cffaf6f35efe8bfdcd4e77eb096ea182 | Java | MyLifeIsCode/data-structure-algorithm | /src/main/java/com/myself/tree/binary/blackread/BRNode.java | UTF-8 | 542 | 2.59375 | 3 | [] | no_license | package com.myself.tree.binary.blackread;
import lombok.Data;
/**
* @program: BRNode
* @description: 红黑树节点
* @author: qll
* @create: 2019-12-31 11:17
**/
@Data
public class BRNode {
private boolean color;//true 红,false,黑
private BRNode rightNode;
private BRNode leftNode;
private BRNode parent... | true |
27c07944953ed37c283b3d7f32fe7c92a268a799 | Java | ellioth/CarpoolingTEC | /app/src/main/java/com/xtec/auth/RequestManager.java | UTF-8 | 2,998 | 2.078125 | 2 | [] | no_license | package com.xtec.auth;
import android.os.AsyncTask;
import android.util.Log;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.... | true |
386482895ac0d1c55afe798243ae07110f54dc2f | Java | jiangjb/smarthome | /src/main/java/com/smarthome/imcp/dao/impl/bo/BoIosVersionDaoImpl.java | UTF-8 | 891 | 1.765625 | 2 | [] | no_license | /* */ package com.smarthome.imcp.dao.impl.bo;
/* */
/* */ import com.smarthome.imcp.dao.CommonsDaoImpl;
/* */ import com.smarthome.imcp.dao.bo.BoIosVersionDaoIface;
/* */ import com.smarthome.imcp.dao.model.bo.BoIosVersion;
/* */ import java.io.Serializable;
/* */ import org.springframework.... | true |
4a86264da3d94fcfdc098244ffc9e9d50df1948f | Java | sayho93/sparkFramework | /src/databases/mybatis/mapper/CommMapper.java | UTF-8 | 188 | 1.632813 | 2 | [] | no_license | package databases.mybatis.mapper;
import org.apache.ibatis.annotations.Param;
import server.comm.DataMap;
public interface CommMapper {
DataMap test(@Param("UUID") String UUID);
}
| true |
83bfac3fa445a2e6496435f575a7993cdf1332e3 | Java | moshenskyi/CountryInfo | /app/src/main/java/com/nazarii_moshenskyi/countryinfo/ui/show_info/model/delegates/ElectricityInfoDelegate.java | UTF-8 | 1,626 | 2.3125 | 2 | [] | no_license | package com.nazarii_moshenskyi.countryinfo.ui.show_info.model.delegates;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.ViewGroup;
import com.nazarii_moshenskyi.countryinfo.ui.show_info.model.ElectricityInfo;
import com.nazarii_moshenskyi.countryinfo.ui.s... | true |
33435356d57fc5224b408ef6d25c79f0e279c35a | Java | shiyiwang/cde.io | /commons/src/main/java/com/zyeeda/cdeio/commons/resource/entity/SettingItem.java | UTF-8 | 1,382 | 2.140625 | 2 | [] | no_license | package com.zyeeda.cdeio.commons.resource.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import com.zyeeda.cdeio.commons.annotation.scaffold.Scaffold;
import com.zyeeda.cdeio.commons.base.entity.DomainEntity;
/**
* 配置项.
*
* @author $Author$
*
*/
@Entity... | true |
10d16b3a4c7aa5b09352d948ac44aeb4498dfada | Java | badyanov/job4j_elementary | /src/main/java/ru/job4j/array/LengthArrayArrays.java | UTF-8 | 1,020 | 4 | 4 | [] | no_license | package ru.job4j.array;
public class LengthArrayArrays {
public static void main(String[] args) {
int countOfArrays = 4;
int[][] outer = new int[countOfArrays][];
int value = 1;
/* Заполнение массивов */
for (int i = 0; i < countOfArrays; i++) {
int[] nested =... | true |
57105a4abe15050e88aed8824b824c2db7e3a495 | Java | dinhtienloc/jats | /module-shell/src/main/java/vn/locdt/jats/module/shell/listener/ApplicationReadyListener.java | UTF-8 | 629 | 1.953125 | 2 | [] | no_license | package vn.locdt.jats.module.shell.listener;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;
import vn.locdt.jats.module.shell.config.Configuration;
import vn.locdt.jats.util.common.LogUtils;
... | true |
4cf55fc451e0191bbc1dca7e31579d425dfc4672 | Java | sjchicks/code-marmalade | /src/java/org/hicksst/codejam/consonants/Consonants.java | UTF-8 | 2,349 | 3.28125 | 3 | [] | no_license | package org.hicksst.codejam.consonants;
import org.hicksst.codejam.util.CodeJamReader;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
public class Consonants
{
private final String inFile;
private final String outFile;
public Consonants(String filePrefix)
{
inFile ... | true |
2dd050c803e988c60b69afb8f83d2c947e00736c | Java | thegenius/hera | /src/main/java/com/lvonce/hera/future/RpcSuccessCallback.java | UTF-8 | 284 | 1.84375 | 2 | [
"Apache-2.0"
] | permissive | package com.lvonce.hera.future;
import com.lvonce.hera.context.RpcRequest;
import com.lvonce.hera.context.RpcResponse;
import com.lvonce.hera.exception.RpcException;
@FunctionalInterface
public interface RpcSuccessCallback {
public void apply(RpcRequest request, Object result);
}
| true |
5c31dc5dffc38eb3afaac0c179ce82fad1e72d8b | Java | sisiruui/agentsystem | /src/main/java/ssru/myw/agentsystem/util/DateUtil.java | UTF-8 | 1,379 | 3.015625 | 3 | [] | no_license | package ssru.myw.agentsystem.util;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
public class DateUtil {
/**
* 这个方法 根据输入的时间 与根据输入年份 的政府 做时间的加减
* @param date
* @param year
* @return
*/
public static Date getYearDate(Date date,int year) {
Calendar rightNow ... | true |
c3fc858238e7d60dab61185f1c62b9db607c46a8 | Java | tinyellow/ListHelperDemo | /simple-adapter/src/main/java/com/littleyellow/simple/listener/ScrollListener.java | UTF-8 | 184 | 2.03125 | 2 | [] | no_license | package com.littleyellow.simple.listener;
/**
* Created by 小黄 on 2018/11/20.
*/
public interface ScrollListener {
void onScroll(int position,float progress,int total);
}
| true |
ae4bbaf5da69b9497b6fbf368e63d8af27a2eeea | Java | YeonJuJu/Java_Study | /day18/src/Ex15.java | UTF-8 | 1,104 | 3.5 | 4 | [] | no_license | class Ex15Thread1 extends Thread{
@Override
public void run(){
for(int i=0;i<300;i++){
System.out.print(new String("◎"));
}
}
}
class Ex15Thread2 extends Thread{
@Override
public void run(){
for(int i=0;i<300;i++){
System.out.print(new String("●"));
... | true |
5f013663254809dfb42477df84f36c068c1a2e46 | Java | darth96/Repo | /src/com/company/Homework8.java | UTF-8 | 1,080 | 3.59375 | 4 | [] | no_license | package com.company;
public class Homework8 {
public static void main(String[] args) {
//Reverse String
String word ="racecaR";
String reverseWord= "";
String[] wordArray =word.split("");
for (int i=wordArray.length-1; i>=0; i--)
reverseWord += wordArray[i];
... | true |
26aa2c565d98717dfd98006c9ce90fa5fed63d99 | Java | vike0906/agent | /src/main/java/com/vike/agent/dao/SysUserRepository.java | UTF-8 | 512 | 1.75 | 2 | [] | no_license | package com.vike.agent.dao;
import com.vike.agent.entity.SysUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;
import java.util.Optional;
/**
* @author: lsl
* @createDate: 201... | true |
5a3b313500e2808a9e50ba99cc16e0cebd77ec21 | Java | jasonbutwell/Android_SimpleEggTimer | /app/src/main/java/com/jasonbutwell/simpleeggtimer/MainActivity.java | UTF-8 | 6,048 | 2.828125 | 3 | [] | no_license | package com.jasonbutwell.simpleeggtimer;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.SeekBar;
import android.widget.TextView;
public class Ma... | true |
66e83bbb2de45f2d75f35ef492d765f79e0e260d | Java | dmora1957/BootCampDiego | /StudentDraw/src/main/java/com/studentdraw/demo/services/IStudentService.java | UTF-8 | 229 | 2.046875 | 2 | [] | no_license | package com.studentdraw.demo.services;
import com.studentdraw.demo.entities.Student;
public interface IStudentService {
Long generateStudents(Integer quantity);
Iterable<Student> returnStudentDraw(Integer quantity);
}
| true |
4c089e71544e4a9eb2bdd96ea478a711e5c45c22 | Java | koutsomoura/koutsomoura | /Buffer7.java | UTF-8 | 481 | 2.734375 | 3 | [] | no_license | import java.io.*;
public class Buffer7 {
/**
* @param args
*/
public static void main(String[] args)throws IOException {
// TODO Auto-generated method stub
String choose;
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Eisagetai grammes keimenoy" );
System.ou... | true |
37524a4a58edfbeb89b268ab1befb70a08170b8f | Java | flywind2/joeis | /src/irvine/oeis/a001/A001261.java | UTF-8 | 578 | 2.875 | 3 | [] | no_license | package irvine.oeis.a001;
import irvine.math.z.Z;
import irvine.oeis.Sequence;
/**
* A001261 Number of permutations of length n with 5 consecutive ascending pairs.
* @author Sean A. Irvine
*/
public class A001261 implements Sequence {
private long mN = -4;
private Z mB = Z.ZERO;
@Override
public Z next()... | true |
7168e7d97f77f9512438f54ac994b2573b49de67 | Java | InstantCom/Keiko | /Keiko/src/test/TestByteBuffer.java | UTF-8 | 1,310 | 3.0625 | 3 | [
"Apache-2.0"
] | permissive | import java.nio.ByteBuffer;
import junit.framework.TestCase;
public class TestByteBuffer extends TestCase {
public void test() {
ByteBuffer buf = ByteBuffer.allocate(10);
assertFalse(buf.isDirect());
assertEquals(0, buf.position());
assertEquals(10, buf.limit());
assertEqu... | true |
6808dd0364117df719cae633d3c1c9bb33bea245 | Java | Joe-Crow/vzaar-api-java | /samples/android/whoami/src/com/vzaar/examples/android/whoami/whoamiActivity.java | UTF-8 | 2,050 | 2.5 | 2 | [
"MIT"
] | permissive | package com.vzaar.examples.android.whoami;
import com.vzaar.Vzaar;
import com.vzaar.VzaarException;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;
import ... | true |
39905aeaeba27bb59164ecfa18d0ee3715cc6dda | Java | mf1832146/bi-tbcnn | /code/queue/java/585_new.java | UTF-8 | 503 | 3.1875 | 3 | [] | no_license | class Exercise7 {
public static void main(String[] args) {
Queue<String> queue = new Queue<String>();
queue.enq("first");
queue.enq("second");
queue.enq("third");
queue.deq();
queue.deq();
queue.enq("forth");
queue.enq("fifth");
queue.enq("sixt... | true |
bed08f3a75f2a76cfa2df08344912e679554ba5b | Java | djkdsjksdjk/BrainJava | /뇌를 자극하는 자바/src/geometry/PackExample1.java | UTF-8 | 371 | 2.921875 | 3 | [] | no_license | /**
* 2018. 5. 11. Dev By Lee.M.H
뇌를 자극하는 자바
PackExample1.java
*/
package geometry;
import geometry.polygon.Rectangle;
/**
* @author kosea102
*
*/
public class PackExample1 {
public static void main(String[] args) {
circle circle = new circle(5);
System.out.println("반지름 = " + cir... | true |
538850cd7a3c575564daa748774335a4e758a328 | Java | ColaMint/Danmaku | /danmaku-java-client/src/main/java/com/danmaku/component/DanmakuBoard.java | GB18030 | 3,695 | 2.609375 | 3 | [] | no_license | package com.danmaku.component;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.font.FontRenderContext;
import java.awt.geom.Rectangle2D;
import java.util.Iterator;
import javax.swing.JDialog;
import javax.swing.JPanel;
import com.danmaku.engine.Danma... | true |
d3192314aafeeae74fca5d594aa053b7153a7e8c | Java | CalidadTesting/RetoTechAndSolve | /src/main/java/co/com/tutorialsninja/www/userinterfases/PresionarBotonContinuar.java | UTF-8 | 334 | 1.789063 | 2 | [] | no_license | package co.com.tutorialsninja.www.userinterfases;
import net.serenitybdd.screenplay.targets.Target;
import org.openqa.selenium.By;
public class PresionarBotonContinuar {
public static final Target CONTINUE = Target.the("En este campo se presiona el boton continuar ").located(By.xpath("//input[@class=\'btn btn-prim... | true |
a0e11a1d9f300a86b43389edc758768fb488a06c | Java | yuxintig/JavaWeb | /src/main/java/com/shinonon/service/BookService.java | UTF-8 | 1,588 | 2.546875 | 3 | [] | no_license | package com.shinonon.service;
import com.shinonon.bean.Book;
import com.shinonon.dao.BookDao;
import java.util.List;
/**
* @author Shinonon
*/
public class BookService {
private BookDao bookDao = new BookDao();
public List<Book> searchAllBooks(String username, int pageNum,
... | true |
84ec3eb2debc1c4bf2b4f3b9d32d03bd8e58a912 | Java | ValueChart/ValueChartGroup | /src/AttributeDomainMap.java | UTF-8 | 125 | 1.53125 | 2 | [] | no_license |
public class AttributeDomainMap {
String name;
AttributeDomain domain;
public AttributeDomainMap(){
}
}
| true |
78530bb9779086a8d75c0a7f511ff51d4a7999e0 | Java | haraldfw/gameprojects | /wendigo/core/src/com/polarbirds/wendigo/UserData.java | UTF-8 | 200 | 1.507813 | 2 | [] | no_license | package com.polarbirds.wendigo;
import com.polarbirds.wendigo.phys.CollisionGroup;
/**
* Created by Harald on 30.08.2016.
*/
public interface UserData {
CollisionGroup getCollisionGroup();
}
| true |
0efc43c5a4affed4061886eabdbc3eb53ebb48c1 | Java | Skystone-College/DC-Practicals | /Practical 6/Calculator Client.java | UTF-8 | 2,401 | 3.390625 | 3 | [] | no_license | import java.rmi.Naming;
import java.util.Scanner;
public class CalcClient {
public static void main(String args[]) {
System.out.println("MENU");
System.out.println("");
System.out.println("Enter 1 for addition");
System.out.println("Enter 2 for substraction");
System.out.prin... | true |
81c98d3eaaac7693060cf82eef2ed503ad433c03 | Java | Lencish/Java-se | /parsing/src/parsing/parsing.java | ISO-8859-1 | 3,698 | 3.25 | 3 | [] | no_license | package parsing;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import java.util.TreeSet;
public class parsing {
public static void main(String[] args) {
String path = "sample.csv";
List<List<String>> records = csv.getData(... | true |
03d62a6de6be26f23a15e9b09bc7d3094faaa779 | Java | cegoddard/visallo | /web/web-base/src/main/java/org/visallo/web/parameterProviders/UserParameterProviderFactory.java | UTF-8 | 1,540 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package org.visallo.web.parameterProviders;
import com.google.inject.Inject;
import com.v5analytics.webster.HandlerChain;
import com.v5analytics.webster.parameterProviders.ParameterProvider;
import com.v5analytics.webster.parameterProviders.ParameterProviderFactory;
import org.visallo.core.config.Configuration;
import... | true |
68b4201f6f891034b05e2a8cfd6aec2cab104b67 | Java | jack15177089002/mybcz_5_0_1 | /app/src/main/java/com/baicizhan/client/business/util/ViewPagerAdapter.java | UTF-8 | 1,584 | 2.390625 | 2 | [] | no_license | package com.baicizhan.client.business.util;
import androidx.viewpager.widget.PagerAdapter;//import android.support.p004v4.view.PagerAdapter;
import android.util.SparseArray;
import android.view.View;
import android.view.ViewGroup;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public... | true |
54b986ffcd10d4584510ed09ea0fc1a8f1078dfd | Java | afifhusnul/Udacity-Project4 | /app/src/main/java/com/example/android/udacity_project4/StoreActivity.java | UTF-8 | 593 | 2.0625 | 2 | [] | no_license | package com.example.android.udacity_project4;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class StoreActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstance... | true |
a07f281ae80f2f2d27ed35f0113a358e92c46fc3 | Java | thithinker/demos | /demos.github/src/zgl/test/Person.java | UTF-8 | 1,667 | 3.046875 | 3 | [] | no_license | package zgl.test;
import java.io.Serializable;
import org.apache.commons.lang3.SerializationUtils;
public class Person implements Serializable, Cloneable{
/**
*
*/
private static final long serialVersionUID = 3418625140197485928L;
private String name;
private Person father;
public String getNa... | true |
3bd1ea687049d31ab71b99bdcb178e0e672c1cba | Java | hnguyenworkstation/hoocon | /android/app/src/main/java/com/hoocons/hooconsandroid/Activities/SplashActivity.java | UTF-8 | 1,311 | 2.171875 | 2 | [] | no_license | package com.hoocons.hooconsandroid.Activities;
import android.content.Intent;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import com.hoocons.hooconsandroid.AppController.BaseActivity;
import com.ho... | true |
3d0074e7ed59d7ca8eb3618c5f61ca0a79660a95 | Java | k-bailey23/Flooring-Mastery | /src/test/java/com/sg/flooringmastery/dao/FlooringMasteryProductsDaoTest.java | UTF-8 | 5,182 | 2.703125 | 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 com.sg.flooringmastery.dao;
import com.sg.flooringmastery.dto.Order;
import com.sg.flooringmastery.dto.Product;
import java.ma... | true |
61f06eb88cf9cb04cf7ed56b71856162ece15739 | Java | Bhavyakher13/pgdsd-blockchain-iiitb-upgrad | /Data Structures/Queues/Practice7.java | UTF-8 | 1,391 | 4.0625 | 4 | [] | no_license | /*
* You are given a queue. Your aim is to find the maximum element of the queue and move that element to the end of the queue.
*
* Example: if the queue contains [3, 5, 2, 6, 4] then you have to find out the max value in the queue which is ‘6’
* in this case and move that to the end of the queue. After making the ... | true |
6f3775e4dee52eb1055ec4f90a399c60d91e1139 | Java | yanglei2018/FileStudy | /src/socket/TCP_Client.java | UTF-8 | 1,355 | 3.921875 | 4 | [] | no_license | package socket;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
/*
TCP通信的客户端:向服务器发送请求,给服务器发送数据,读取服务器返回的数据
表示客户端的类:java.net.Socket
套接字:包含了IP地址和端口号的网络单位
构造方法:socket(String host, int port)
实现步骤:
1. 创建一个客户端对象Socket
2. 使用Socke... | true |
07dfc7ebe8607ea355f68afdd0137a944cdabb06 | Java | vladimirstudnicka/projectFragment | /MyMath.java | UTF-8 | 2,697 | 3.109375 | 3 | [] | no_license | package sk.itsovy.studnicka.ProjectFragment;
public class MyMath {
private Fragment fragment;
public Fragment add(Fragment a, Fragment b) {
Fragment result = null;
result = new Fragment(a.getNumerator() * b.getDenominator() + a.getDenominator() * b.getNumerator(), a.getDenominator() * b.getDe... | true |
d1b3541b258ff3b9bb1d206c9969e2e45d054866 | Java | Seeem/Any-Beam | /AnybeamNetworkCore/src/de/hfu/anybeam/networkCore/example/SimpleAutoDetect.java | UTF-8 | 4,014 | 2.875 | 3 | [] | no_license | package de.hfu.anybeam.networkCore.example;
import de.hfu.anybeam.networkCore.Client;
import de.hfu.anybeam.networkCore.DeviceType;
import de.hfu.anybeam.networkCore.EncryptionType;
import de.hfu.anybeam.networkCore.NetworkEnvironment;
import de.hfu.anybeam.networkCore.NetworkEnvironmentListener;
import de.hfu.anybeam... | true |
6ecdf0a0be2c6663033d907baa89f370d5ffe65f | Java | MPPandya/Projects | /DesignPatterns/src/Startegy/BinarySearching.java | UTF-8 | 924 | 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 Startegy;
/**
*
* @author madhav pandya
*/
public class BinarySearching implements Searching {
p... | true |
688ea3b4fa251cb6edf3dd5b13413ee3ef37d491 | Java | 2249692487/ssm-reverse | /SSM_DAO_02/src/test/java/com/test/mapper/AccountMapperTest.java | UTF-8 | 734 | 1.71875 | 2 | [] | no_license | package com.test.mapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
/**
* 描述:待描述
* </p>
*
* @author QinL... | true |
2d557f5faf9dfc7fab83d4d6bb5a9b4711f0d96b | Java | mdht/mdht-models | /generated/org.openhealthtools.mdht.uml.cda.vsdr/src/org/openhealthtools/mdht/uml/cda/vsdr/util/VsdrAdapterFactory.java | UTF-8 | 19,423 | 1.570313 | 2 | [] | no_license | /**
*/
package org.openhealthtools.mdht.uml.cda.vsdr.util;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.mdht.uml.cda.ClinicalDocument;
import org.eclip... | true |
54b831f1023b39f119da5017975dc38920778e18 | Java | blackpanther2712/SE-FT08 | /TrailBlazeLearn/app/src/main/java/com/ft08/trailblazelearn/fragments/LocationsFragment.java | UTF-8 | 4,618 | 2.09375 | 2 | [] | no_license | package com.ft08.trailblazelearn.fragments;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import com.google.android.gms.maps.CameraUpdate;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.SupportMapFragment;
im... | true |
cbe0d4436268aa5b9405f66c9da1c29014de1771 | Java | liveqmock/SMS-1 | /2011/01-开发库/01-开发代码/sesale/src/com/toft/merge/widgets/au/user/userinfo/userOperate.java | UTF-8 | 11,443 | 2.21875 | 2 | [] | no_license | package com.toft.merge.widgets.au.user.userinfo;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.sql.Connection;
import org.apache.commons.lang.StringUtils;
import com.toft.core2.DBException;
import com.toft.core2.ToftContext;
import com.toft.core2.ToftE... | true |
c84c0c667874f70529e4196bf3635aebefd0270b | Java | rahul-ti91/domain | /Issues.java | UTF-8 | 1,238 | 2.0625 | 2 | [] | no_license | package com.rahul.msr.domain;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class Issues implements Serializable {
/**
*
*/
private static final long serialVersionUID = -817878378758404785L;
@Id
... | true |
b3672f26db671a02d8a320def9225cb77ee1fb93 | Java | morj/jwsn | /ru/amse/nikitin/sensnet/impl/MovingObject.java | UTF-8 | 1,232 | 2.671875 | 3 | [] | no_license | package ru.amse.nikitin.sensnet.impl;
import javax.swing.ImageIcon;
import ru.amse.nikitin.net.impl.NetObject;
import ru.amse.nikitin.sensnet.IMovingObject;
import ru.amse.nikitin.simulator.IActiveObjectDesc;
public class MovingObject extends NetObject implements IMovingObject{
protected MotDescription descr... | true |
c2c349a17a4fa35ecc83ebd5981a93b9cb840e4c | Java | kolebynov/java_lab4 | /lab4/sqlGenerator/BaseSqlGenerator.java | UTF-8 | 763 | 2.65625 | 3 | [] | no_license | package lab4.sqlGenerator;
import lab4.query.IQuery;
import lab4.query.QueryParameter;
public abstract class BaseSqlGenerator implements ISqlGenerator {
protected StringBuilder appendParameter(StringBuilder sb, QueryParameter parameter) {
return sb.append(":" + parameter.getName());
}
protected StringBuilder app... | true |
1975d313539e1f9fb8db4b939b04c89bb9729447 | Java | annguyen2104/test | /TestBase.java | UTF-8 | 2,576 | 2.328125 | 2 | [] | no_license | package com.playphone.devportal.project;
import org.junit.Before;
import org.apache.commons.io.FileUtils;
import org.junit.After;
import static org.junit.Assert.*;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScree... | true |
10e017256e3832a3018bdb4a074a4d4b9fd20436 | Java | fhbkoller/certificacao | /Cert804/src/main/java/br/com/koller/certification/chapter8/Search.java | UTF-8 | 1,520 | 3.0625 | 3 | [] | no_license | package br.com.koller.certification.chapter8;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Search {
private static Logger LOG = Logger.getLogger(Search.class.getName... | true |
0c1cbe373ee189703a2f64dbe02de95ef1230ece | Java | Unthrottled/cat | /src/test/java/io/acari/core/SmallestFactorialTest.java | UTF-8 | 576 | 2.484375 | 2 | [
"MIT"
] | permissive | package io.acari.core;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Forged in the flames of battle by alex.
*/
public class SmallestFactorialTest {
private final SmallestFactorial smallestFactorial = new SmallestFactorial();
@Test
public void leastFactorialOne() {
assertEquals(24, smal... | true |
250dd9ec6b71b3fd7dedab04e91a9941bc9e78ac | Java | circle3889/testMain | /src/main/java/kr/co/tworld/main/domain/MainInfoUtil.java | UTF-8 | 4,366 | 2.09375 | 2 | [] | no_license | package kr.co.tworld.main.domain;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import javax.annotation.Resource;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;
@Service
public class MainInfoUtil {
@Resource... | true |
ff641ba1a40076a4bc1afc2385a62068a26e3aea | Java | Mrhero-web/leetcode-pp | /code/ch02/2.5.1.threeSumCloset.java | UTF-8 | 649 | 3.0625 | 3 | [
"MIT"
] | permissive | import java.lang.Math;
import java.util.*;
public class Solution {
public int threeSumClosest(int[] nums, int target) {
int n = nums.length;
//if (n < 3) return;
Arrays.sort(nums);
int res = nums[0] + nums[1] + nums[2];
for (int i = 0; i < n - 2; i ++) {
if (i != 0 && nums[i] == nums[i - 1]... | true |
946d345754ea4cd9d7b898c08d7298696d6e005d | Java | qiu1518977696/OnlineExamSystem | /src/model/UpdateUserTemp.java | UTF-8 | 1,263 | 2.265625 | 2 | [
"MIT"
] | permissive | package model;
public class UpdateUserTemp {
private String name;
private String account;
private String uid;
private String post;
private String email;
public UpdateUserTemp(){}
public UpdateUserTemp(String name, String account,String uid,String post,String email) {
super();
this.name = name;
this.... | true |
38c60abf9d8f3a459fa519948a524782df0be5dd | Java | nahkd123/nahkdMisc | /nahkdMisc - Core/src/me/nahkd/misc/core/ui/InventoryUI.java | UTF-8 | 3,813 | 2.9375 | 3 | [] | no_license | package me.nahkd.misc.core.ui;
import java.util.HashMap;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.inventory.InventoryCloseEvent;
import org.bukkit.inventory.Inventory;
import org.bukkit.invento... | true |
e3ea20f596ca82f808c298cc9012e24879998b95 | Java | 1367853454/acm | /src/com/company/java8/MyAnnotation.java | UTF-8 | 338 | 2.40625 | 2 | [] | no_license | package com.company.java8;
import java.lang.annotation.*;
@Repeatable(MyAnnotations.class)
@Target({ElementType.TYPE, ElementType.FIELD,ElementType.METHOD,ElementType.PARAMETER,ElementType.CONSTRUCTOR,ElementType.LOCAL_VARIABLE})
@Retention(RetentionPolicy.RUNTIME)
public @interface MyAnnotation {
String value()... | true |
e0bf1b9abca95df44129d4eebb16132bebfc3232 | Java | zhuojianhai/mvpdemo | /dagger2demo/src/main/java/com/zjh/dagger2demo/MyComponent.java | UTF-8 | 323 | 1.796875 | 2 | [] | no_license | package com.zjh.dagger2demo;
import javax.inject.Singleton;
import dagger.Component;
@Singleton
@Component(modules = {HttpObjectModule.class,DatabaseObjectModule.class})
public interface MyComponent {
//不能使用多态,
void injectMyClas(MyClass myClass);
void injectDaggerTest(DaggerTest myClass);
}
| true |
297bd019b8444c98983c1be3603cb7517379fb83 | Java | Churritosjesus/Chromecast-Reverse-Engineering | /chromecast-app-reverse-engineering/src/from-jd-gui/bnd.java | UTF-8 | 1,348 | 1.554688 | 2 | [] | no_license | 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 java.util.List;
final class bnd
extends ArrayAdapter
{
bnd(bmu parambmu, Context p... | true |
222839e1f5b69f2e1f9f3d35fccca70708a81e5e | Java | ThymomenosGata/KursWork | /app/src/main/java/org/wordy/kurswork/data/tables/Professor.java | UTF-8 | 2,742 | 2.3125 | 2 | [] | no_license | package org.wordy.kurswork.data.tables;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.Ignore;
import android.arch.persistence.room.PrimaryKey;
import org.json.JSONException;
import org.json.JSONObject;
@Entity(
tableName = "professor"
)
public class Professor {
@Primar... | true |
bb68596a4c9cd1ef8a1181e5fd86e5e743b51d09 | Java | henrimag/oo2020 | /w09_tunnirakenduse_lahendus/Stream/StreamName.java | UTF-8 | 518 | 3.140625 | 3 | [] | no_license | import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
public class StreamName {
public static void main(String[] args) {
List<String> loomad = Arrays.asList("flamingo","jääkaru","konn","siil","rebane", "vares");
List<String> loomanimed = loomad.stream()
... | true |
b2d4fc3402d2949527ebf6b3a888d7aef7b97dd0 | Java | NBellic10010/school_test | /src/main/java/com/golaxy/controller/ClassroomController.java | UTF-8 | 663 | 2.03125 | 2 | [] | no_license | package com.golaxy.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import com.golaxy.service.ClassroomService... | true |
f3c68abc89eb3932dce938aeba56d85791e1a81e | Java | rtyuiolm/atelier_java_m2i | /test/atelierjava/test/ListTest.java | UTF-8 | 4,185 | 2.953125 | 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 atelierjava.test;
import java.math.BigInteger;
import java.util.ArrayList;
import org.junit.Test;
import static org.... | true |
0a38b1bf9f85f9624fd2cce9165bf073a3541288 | Java | lyk4411/untitled1_intellij | /src/main/java/com/wenhuisoft/chapter7/Test.java | UTF-8 | 460 | 2.734375 | 3 | [] | no_license | package com.wenhuisoft.chapter7;
/**
* Created by lyk on 2016/7/13.
* Package name: com.wenhuisoft.chapter7
* Porject name: untitled1
*/
public class Test extends RunnableWarper {
@Override
public void handler() {
System.out.println("business handler");
}
public static void main(String[] a... | true |
d72cd8d176b9138867ffe65b6e43d23d1c95dd1d | Java | xujx1/zk_demo | /src/main/java/com/zk/demo/_1Api/_7Exist.java | UTF-8 | 2,844 | 2.9375 | 3 | [] | no_license | package com.zk.demo._1Api;
import org.apache.zookeeper.AsyncCallback;
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.ZooKeeper;
import org.apache.zookeeper.data.Stat;
import java.io.IOException;
import java.util.concurrent.Semaphore;
/**
* Created by xu... | true |
c68b5cff0cf7ec84bfd68161124930c2e8fa2abc | Java | deshmanedr/TVSM | /src/main/java/com/tvsm2/pages/StartPage.java | UTF-8 | 1,052 | 2.078125 | 2 | [] | no_license | package com.tvsm2.pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import io.appium.java_client.android.AndroidElement;
import io.appium.java_client.pagefactory.An... | true |