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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
fcb4b842d25d89de166c08ae7fc3d546178fe230 | Java | FancierCoder/getdata | /src/main/java/com/zettayun/job/GetDataJob.java | UTF-8 | 440 | 1.960938 | 2 | [] | no_license | package com.zettayun.job;
import com.zettayun.method.GetExcelInfo;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import javax.annotation.Resource;
public class GetDataJob implements BaseJob {
@Resource
private GetExcelInfo getExcelInfo;
@Override
public void execute... | true |
82140a699b511a1c23cdebe6a87438e7688ef92d | Java | doordiey/BasicsLanguage | /Java/Thinking in Java/代码/c6/Test2.java | UTF-8 | 254 | 1.664063 | 2 | [] | no_license | package c6;
import c5.Test4;
public class Test2 {
public static void main(String[] args) {
// c2.Test4 a = new c2.Test4();
// Test4 b = new Test4();
// a.main(new String[]{"ni"});
// b.main(new String[]{"hao"});
}
}
| true |
4d036458c7dfe672fe4b0ddce755b98e85f2d973 | Java | abhinav-sunderrajan/DRLIntersections | /src/main/java/ctm/SourceCell.java | UTF-8 | 2,281 | 3.015625 | 3 | [] | no_license | package ctm;
import main.SimulationMain;
import rnwmodel.Road;
import utils.SimulationConstants;
/**
* Represents a cell where the number of incoming connectors is equal to zero.
*
* @author abhinav
*
*/
public class SourceCell extends Cell {
// The mean inter-arrival time in seconds.
private double m... | true |
2319992ce1bdd007ff9d30e937137ce07cf58f07 | Java | johnkim910/objectify | /src/main/java/com/googlecode/objectify/impl/translate/EmbeddedMapTranslatorFactory.java | UTF-8 | 3,555 | 2.3125 | 2 | [
"MIT"
] | permissive | package com.googlecode.objectify.impl.translate;
import com.google.appengine.api.datastore.EmbeddedEntity;
import com.googlecode.objectify.ObjectifyFactory;
import com.googlecode.objectify.annotation.Stringify;
import com.googlecode.objectify.impl.Path;
import com.googlecode.objectify.stringifier.NullStringifier;
impo... | true |
c504fd27d26115c95705ef2371c77c399bad84e2 | Java | nofaterock/spring-mvc-example | /mvc-rest-api/src/main/java/com/nofaterock/mvc/api/core/vo/User.java | UTF-8 | 363 | 2.03125 | 2 | [] | no_license | package com.nofaterock.mvc.api.core.vo;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/**
* @author 한승룡
* @since 2019-11-06
*/
@Getter
@Setter
@NoArgsConstructor
public class User {
private String userId;
private String name;
public User(String userId, String name) {
this.userI... | true |
4aa697f780074caa54c537e46cda52f1a5823522 | Java | srinivas13794/beta | /library-hibernate-spatial/src/main/java/com/library/model/ConGraphAgencyCentroidsList.java | UTF-8 | 451 | 1.960938 | 2 | [] | no_license | package com.library.model;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement( name = "ConGraphAgencyCentroidsList")
public class ConGraphAgencyCentroidsList {
@XmlElement( name = "ConGraphAgencyC... | true |
81c6bf75ea17c96116a079b4ec40c95868fb5fc6 | Java | FangqingXia1994/treasure-hunt-backend | /src/main/java/com/treasurehunt/treasurehunt/utils/ServletUtil.java | UTF-8 | 4,178 | 2.375 | 2 | [] | no_license | package com.treasurehunt.treasurehunt.utils;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.cloud.storage.Storage;
import com.treasurehunt.treasurehunt.db.gcs.GCS;
import com.treasur... | true |
2e88785e7c5aaec176bb27255581a709bdd67585 | Java | huanghetang/eclipse_workspace | /ROOT/src/vip/hht/service/LoginService.java | UTF-8 | 282 | 2.28125 | 2 | [] | no_license | package vip.hht.service;
import vip.hht.LoginDao.LoginDao;
import vip.hht.LoginDao.User;
public class LoginService {
public User findUser(String uid,String upassword){
LoginDao loginDao = new LoginDao();
User user = loginDao.findUser(uid, upassword);
return user;
}
}
| true |
a752cf58b82585d6fe36b6fd862d96aa8e45aff8 | Java | Godwithegg/springmvclearning | /spring_template/springjunit/src/config/SpringConfiguration.java | UTF-8 | 631 | 2.28125 | 2 | [] | no_license | package config;
import javax.sql.DataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
//想要学的话自己了解,这里只是一点代码,没有实际意义,而且缺jar包
//@ComponentScan(basePackages="com.danhuang")
//public class SpringConfiguration
//{
// @Bean //它是把方法的返回值存入spring容器中。该注解有一个... | true |
4ef3fc9a1c071dc5ed355c257cb0e2c50b8189f8 | Java | akalankaudesh/Automate_TopJob_adviewrer-using-selenium- | /src/Main.java | UTF-8 | 6,844 | 1.945313 | 2 | [] | no_license | import javafx.application.Application;
import javafx.embed.swing.SwingFXUtils;
import javafx.event.ActionEvent;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Alert;
import javafx.scene.control.Button;
import javafx.scene.control.ButtonType;
import java... | true |
5a47e31ee72560b01a5308813c6239db15642232 | Java | hmmmq/RainbowLink | /NetBeansProjects/Ticket/src/com/fancy/dao/CommentDao.java | UTF-8 | 730 | 1.96875 | 2 | [] | no_license | package com.fancy.dao;
import java.util.List;
import com.fancy.entity.Comment;
public interface CommentDao {
public boolean addComment(Comment comment);//增加评价,参数为评价实体,返回布尔变量
public boolean delComment(int conId);//删除评价,参数为评价id,返回布尔变量
public boolean updateComment(Comment comment);////更新评价,参数为评价实体,返回布... | true |
9c4c16086b0b8625ed045902c361e74094978067 | Java | aderifaldi/simple-realm-exercise | /app/src/main/java/com/ar/realmexercise/viewmodel/PersonViewModel.java | UTF-8 | 824 | 2.734375 | 3 | [] | no_license | package com.ar.realmexercise.viewmodel;
import android.view.View;
import com.ar.realmexercise.model.Person;
/**
* Created by RadyaLabs PC on 07/11/2017.
*/
public class PersonViewModel {
private View.OnClickListener onClickListener;
private String name;
private int age;
private String id;
pu... | true |
9dac896ad05f6be2238c233fc80a628564cc3b69 | Java | Cleon-Online/cleon-product-orders | /src/main/java/com/cleon/products/orders/controllers/ProductOrderController.java | UTF-8 | 725 | 2.140625 | 2 | [] | no_license | package com.cleon.products.orders.controllers;
import com.cleon.products.orders.api.ProductsOrderApi;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RestController;
/**
* Created by IntelliJ IDEA
* User: Balaji Varadharajan
... | true |
48ae22336e29a1bdad5230eedb4aa5fdbf6ef7ab | Java | AndroGamal/record-call | /app/src/main/java/com/example/andro/myapplication/my.java | UTF-8 | 5,228 | 2.21875 | 2 | [] | no_license | package com.example.andro.myapplication;
import android.app.Service;
import android.content.Intent;
import android.media.MediaRecorder;
import android.os.Environment;
import android.os.Handler;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.telephony.TelephonyManager;
import and... | true |
56c1f11e2b58a30e120426a886fcf60b04511897 | Java | gbhl/bhl-legacy | /bhl-e/pre-ingest/PreIngest/src/main/java/at/co/ait/utils/PDFPageImageWriter.java | UTF-8 | 4,960 | 2.265625 | 2 | [] | no_license | /**
*
*/
package at.co.ait.utils;
import java.awt.image.BufferedImage;
import java.awt.image.RenderedImage;
import java.io.File;
import java.io.IOException;
import java.util.Iterator;
import javax.imageio.IIOException;
import javax.imageio.IIOImage;
import javax.imageio.ImageIO;
import javax.imageio.ImageTypeSpeci... | true |
e5394a4bd49a88237527d52fc1e1e747ba418f96 | Java | lego04/robot | /robot/src/util/GlobalValues.java | UTF-8 | 1,345 | 2.5 | 2 | [] | no_license | package util;
public final class GlobalValues {
/*
public static final float MINLIGHT = 0.05f; //real Values
public static final float MAXLIGHT = 0.4f;
*/
//Line Following
public static final float MINLIGHT = 0.05f; //Test Values (Floor)
public static final float MAXLIGHT = 0.25f;
public static final flo... | true |
e9061758453a979fab920213f22c9ffd773fe65b | Java | 904243852/applets | /media-server/src/main/java/pers/sunke/mediaserver/protocol/rtmp/AMF0.java | UTF-8 | 8,132 | 2.453125 | 2 | [] | no_license | package pers.sunke.mediaserver.protocol.rtmp;
import java.util.Arrays;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;
import pers.sunke.mediaserver.core.ByteReader;
import pers.sunke.mediaserver.core.ByteWriter;
public class AMF0 {
public static enum Type {
NUMBER(0x00),
BOOL... | true |
d6fea33ec3243def66590b1bf7328e4698084e3f | Java | thejitesh/CameraApITesting | /app/src/main/java/com/insomniacs/photop/utils/Util.java | UTF-8 | 5,433 | 2.421875 | 2 | [] | no_license | package com.insomniacs.photop.utils;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.AsyncTask;
import android.os.Environment;
import android.util.Log;
import android.view.View;
import android.widget.ProgressBar;
import com.insomniacs.photop.IOnFileSaveSuccessFul;
import java.io.Byt... | true |
33d9733a004f907a2d6cbef6e6fc01976a084a6c | Java | laxytt/StudentManager | /src/model/Person.java | UTF-8 | 2,033 | 2.875 | 3 | [] | no_license | package model;
public class Person {
private String firstName;
private String lastName;
private int age;
private int phoneNumber;
private String email;
private Address address;
public boolean isTeen(){
return age <= 20;
}
public Person() {
this("Jan", "Kowalsk... | true |
77ec30628c15db0e44c08e0fa6c442a8d984a5ca | Java | andreeastoicovici/stakeservice | /src/main/java/com/personal/stakeservice/repository/factory/RepositoryFactory.java | UTF-8 | 918 | 2.1875 | 2 | [] | no_license | package com.personal.stakeservice.repository.factory;
import com.personal.stakeservice.repository.BetRepository;
import com.personal.stakeservice.repository.SessionRepository;
import com.personal.stakeservice.repository.UserRepository;
public final class RepositoryFactory {
private static IRepositoryFactory regist... | true |
f6b0a0f50d9eef5969eac007bec22754887bfccb | Java | SantiPingui58/Splindux_Old | /src/com/santipingui58/spleef/menu/esp/TournamentsMenu.java | ISO-8859-1 | 1,696 | 2.4375 | 2 | [] | no_license | package com.santipingui58.spleef.menu.esp;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import com.santipingui58.spleef.menu.MenuBuilder;
import com.santipingui58.spleef.menu.RankingMenu;
import com.santipingui58.spleef.utils.ItemBuilder;
public ... | true |
c508bcb9791b803aceaf1ab49978d511e7f51891 | Java | Samek86/GaonCinema2 | /src/main/java/com/gaon/cinema/movie/MovieDAO.java | UTF-8 | 4,343 | 2.375 | 2 | [] | no_license | package com.gaon.cinema.movie;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.mybatis.spring.SqlSessionTemplate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.a... | true |
95fde85f2fd75320a411ed390f35bfda05de13c2 | Java | hacidoganilbars/springmvc | /usenestedtemplate/src/main/java/com/doganilbars/UsenestedtemplateApplication.java | UTF-8 | 329 | 1.539063 | 2 | [] | no_license | package com.doganilbars;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class UsenestedtemplateApplication {
public static void main(String[] args) {
SpringApplication.run(UsenestedtemplateApplication.class, arg... | true |
e8f09730c9cee1f33d09deda2073ecef99c4f47b | Java | cardioid1996/dataStructure | /src/com/ds/designModes/FactoryPattern/CarStore.java | UTF-8 | 292 | 2.890625 | 3 | [] | no_license | package com.ds.designModes.FactoryPattern;
public class CarStore {
CarFactory carFactory;
public CarStore(CarFactory carFactory){
this.carFactory = carFactory;
}
public Car orderCar(String str){
Car car = carFactory.createCar();
return car;
}
}
| true |
a27dfef7de84dd98a0324b850b563d90e18dda76 | Java | sut62/team07 | /server/src/main/java/com/sut62/team07/controller/PrefixController.java | UTF-8 | 732 | 2.078125 | 2 | [] | no_license | package com.sut62.team07.controller;
import java.util.Collection;
import java.util.stream.Collectors;
import com.sut62.team07.entity.Prefix;
import com.sut62.team07.repository.PrefixRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
i... | true |
41b07941a829b6b1115ed7c9d10212591e74750a | Java | bingweibi/Algorithms | /src/LeetCode/Num830.java | UTF-8 | 963 | 3.109375 | 3 | [] | no_license | package LeetCode;
import java.util.ArrayList;
import java.util.List;
public class Num830 {
public static void main(String[] args) {
System.out.println(new Num830().largeGroupPositions("aaa"));
}
public List<List<Integer>> largeGroupPositions(String S) {
List<List<Integer>> lists = new Arra... | true |
f7b363c5cd86c993a131a5b2aec0e9ddbbdf3b1e | Java | gradle/performance-comparisons | /single-large-project/src/test/java/org/gradle/test/performancenull_490/Testnull_48950.java | UTF-8 | 308 | 1.796875 | 2 | [] | no_license | package org.gradle.test.performancenull_490;
import static org.junit.Assert.*;
public class Testnull_48950 {
private final Productionnull_48950 production = new Productionnull_48950("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
} | true |
70d7adbdc85afe065999001350f313e88fac9210 | Java | kalendamoise/PopularMovies | /app/src/main/java/com/focusandcode/popularmovies/Task/FetchVideosTask.java | UTF-8 | 1,389 | 2.28125 | 2 | [] | no_license | package com.focusandcode.popularmovies.Task;
import android.os.AsyncTask;
import android.util.Log;
import com.focusandcode.popularmovies.Entities.ListMovieVideos;
import com.focusandcode.popularmovies.Services.MovieService;
import com.focusandcode.popularmovies.adapters.MovieVideoAdapter;
import com.focusandcode.popu... | true |
312b09669b3981c76af6033f1eed5054fe6d1678 | Java | niuqinghua/prehnite | /prehnite-samples/prehnite-web-jsp/src/main/java/dream/prehnite/web/sample/SampleApplication.java | UTF-8 | 818 | 2.0625 | 2 | [] | no_license | package dream.prehnite.web.sample;
import org.springframework.boot.SpringApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import dream.prehnite.application.AbstractExternalServerApplication;
/**
* Created by niuqinghua on 2015/7/2... | true |
4fe3e0075a110fa132137806e4d580fd4e0862ad | Java | wangjing2213/device_netty | /src/main/java/com/dearho/common/device/service/DeviceErrorCountService.java | UTF-8 | 405 | 1.539063 | 2 | [] | no_license | package com.dearho.common.device.service;
import com.dearho.core.Page;
import com.dearho.core.config.service.IService;
import com.dearho.common.device.model.DeviceErrorCount;
import com.github.pagehelper.PageInfo;
public interface DeviceErrorCountService extends IService<DeviceErrorCount> {
PageInfo<DeviceE... | true |
320c97ee64ecc04d776b3e4e575d19d68ccae954 | Java | AlexBogdanov/SoftUni-JavaAdvanced | /JavaAdvanced/04StreamsFilesAndDirectories/Lab/02WriteFile.java | UTF-8 | 948 | 3.21875 | 3 | [] | no_license | import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
class WriteFile {
public static void main(String[] args) {
readAndWrite();
}
private static void readAndWrite() {
... | true |
c8331b3fc67fd87d7b7ce8881d6a75bc960dc29c | Java | Hanvdm/jmp3-tag-editor | /jMP3TagEditor/src/main/java/com/mscg/jmp3/ui/panel/fileoperations/dialog/ExecuteRenameFilesDialog.java | UTF-8 | 1,913 | 2.3125 | 2 | [] | no_license | package com.mscg.jmp3.ui.panel.fileoperations.dialog;
import java.awt.Dialog;
import java.awt.Frame;
import java.io.FileNotFoundException;
import com.mscg.jmp3.i18n.Messages;
import com.mscg.jmp3.ui.panel.fileoperations.RenameFileTab;
import com.mscg.jmp3.util.pool.InterruptibleRunnable;
import com.mscg.jmp3... | true |
90ee6cab6366600dc9049cc88f1e7f8f1ee479ef | Java | shanghaif/eshop | /mall/src/main/java/com/soubao/controller/GoodsAttrController.java | UTF-8 | 1,017 | 2.015625 | 2 | [] | no_license | package com.soubao.controller;
import com.soubao.entity.GoodsAttr;
import com.soubao.service.GoodsAttrService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import ... | true |
6b5e0d37e7b64f0809cff07fc5f5b4441b6800f9 | Java | cenbow/2016_sp_mobile | /mobile-api/src/main/java/com/shangpin/wireless/api/view/spServlet/ActivityProductIndexServlet.java | UTF-8 | 3,471 | 2.015625 | 2 | [] | no_license | package com.shangpin.wireless.api.view.spServlet;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.shangpin.b... | true |
699bb15a8a33728425a39f4bf693ead47e28ae46 | Java | FAFIERROJR/CECS277 | /Project3/PokemonRPS.java | UTF-8 | 5,081 | 3.1875 | 3 | [] | no_license | import java.util.*;
import java.io.*;
/**
* PokemonRPS
* the main class for Pokemon Rock, Paper, Scissors
*
* @author Francisco Fierro
*/
public class PokemonRPS{
public static void main(String args[]){
int pWins = 0;
int cWins = 0;
int rounds = 0;
int pInput;
char pChoice;
char cChoice;
int didPW... | true |
bcd9697777f74fd5e5603c43a8ce28aaf01907be | Java | primetogo/BQ-ON-Website | /Design1-1/src/anthentication/employee/LoginFilter_emp.java | UTF-8 | 1,571 | 2.296875 | 2 | [] | no_license | package anthentication.employee;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.Web... | true |
085ad16f2896eff72e73cf04789433de7656808c | Java | infzm11/WatchMap | /app/src/main/java/com/amap/api/services/a/dc.java | UTF-8 | 4,775 | 1.890625 | 2 | [] | no_license | package com.amap.api.services.a;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import java.net.Proxy;
/* compiled from: NetManger */
public class dc extends cx {
private static dc a;
private dl b;
private Handler c;
/* renamed from: com.amap.api.services.a.dc$1 reas... | true |
d430504e71e2d19072a183bf02c7d6c249e44a99 | Java | Eibwen/Ai-Challenge-2010-PlanetWars | /netbeansProj/src/CopyBot/Forces.java | UTF-8 | 2,249 | 2.78125 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package CopyBot;
import Common.*;
import java.util.TreeSet;
/**
*
* @author gwalker
*/
public class Forces implements Comparable {
public Forces(int planet, int planetGrowth, int avaliableForces) {
Plan... | true |
aa35eb858653021d39c78f1f09cae7c4ba60e270 | Java | darkbearking/first-hy-server | /src/main/java/org/dark/server/MyApplication.java | UTF-8 | 638 | 2.1875 | 2 | [] | no_license | package org.dark.server;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
//當你的這個主啟動類與其他的組件不在一個路徑下時,會發生找不到組件(Component)的錯誤
//解決方法可以如下所示,添加一個@ComponentScan註... | true |
4a73af025b3c73a86a955987f2f448f1eb79fe4b | Java | M6C/workspace-neon | /Workspace/src/workspace/service/extjs/SrvOptimizeImport.java | UTF-8 | 3,312 | 1.9375 | 2 | [] | no_license | package workspace.service.extjs;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Vector;
import java.util.zip.ZipEntry;
import javax.servlet.ServletContext;
im... | true |
600fafc05df40433195d04d8ca3614356765ce5c | Java | BackSpace47/KindredCraftIO | /src/main/java/net/mcreator/kindredcraft/MCreatorIngotPlatinum.java | UTF-8 | 581 | 1.734375 | 2 | [] | no_license | package net.mcreator.kindredcraft;
import net.minecraftforge.oredict.OreDictionary;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraft.item.ItemStack;
@Elementskindredcraft.ModElement.Tag
public class MCreatorIngotPlatinum extends Elementskindredcraft.ModElement {
publi... | true |
04e587141e8ccffa10fbc5a2721d7a80b254479c | Java | krzysiek199720/codeclass | /src/main/java/com/github/krzysiek199720/codeclass/auth/user/UserController.java | UTF-8 | 10,908 | 2.171875 | 2 | [] | no_license | package com.github.krzysiek199720.codeclass.auth.user;
import com.github.krzysiek199720.codeclass.auth.accesstoken.AccessToken;
import com.github.krzysiek199720.codeclass.auth.accesstoken.AccessTokenService;
import com.github.krzysiek199720.codeclass.auth.security.SecurityService;
import com.github.krzysiek199720.code... | true |
46ae2cb9dc61723bbbc5d4eab632e4fc992ac962 | Java | oneplannerDev/oneplanner | /oneplanner-web/src/main/java/com/ontide/oneplanner/obj/AuthInfo.java | UTF-8 | 1,308 | 2.078125 | 2 | [] | no_license | package com.ontide.oneplanner.obj;
import java.io.Serializable;
public class AuthInfo implements Serializable {
private static final long serialVersionUID = 1608563172112405778L;
String userId;
String authId;
String authMode;
String comfirmYn;
String expiredDate;
String createDate;
public AuthInfo() { }
... | true |
d8bf999e62653ba183669fcc9270d4be823d10e6 | Java | simasiman/Olynpic | /src/ControlPack/MatchingWebSocket.java | UTF-8 | 1,044 | 2.328125 | 2 | [] | no_license | package ControlPack;
import java.util.Set;
import java.util.concurrent.CopyOnWriteArraySet;
import javax.websocket.OnClose;
import javax.websocket.OnMessage;
import javax.websocket.OnOpen;
import javax.websocket.Session;
import javax.websocket.server.ServerEndpoint;
import modelPack.MatchUserList;
/**
* URL:matchi... | true |
4ab60be863cf94b8f9993227b8d92008f9115cee | Java | dasalazarj/TareaMultimedios | /src/cl/telematica/tareamultimedios/SingleItemView.java | UTF-8 | 3,721 | 2.15625 | 2 | [] | no_license | package cl.telematica.tareamultimedios;
import com.facebook.Session;
import com.facebook.SessionState;
import com.facebook.UiLifecycleHelper;
import com.facebook.widget.FacebookDialog;
import com.facebook.widget.WebDialog;
import android.app.Activity;
import android.app.Dialog;
import android.content.Intent;
import a... | true |
a5f7511a072390871476de7cbfd2aec0f183d60f | Java | Mingda-Rui/LeetCodePractise | /src/main/java/pers/mingda/leetcode/LC0059SpiralMatrixII.java | UTF-8 | 2,949 | 2.953125 | 3 | [] | no_license | package pers.mingda.leetcode;
public class LC0059SpiralMatrixII {
public int[][] generateMatrix(int n) {
int[][] result = new int[n][n];
int numOfLayers = (n + 1) / 2;
for (int i = 0; i < numOfLayers; i++) {
int startNum = i == 0 ? 1 : result[i][i - 1] + 1;
result[i]... | true |
3bb13a9586a2480fd3ce7e363a4de1bb52a304ca | Java | NazarYunko/gRPC | /src/main/java/com/gRPC_quickstart_bank/service/UserPrivacyDataService.java | UTF-8 | 927 | 2.265625 | 2 | [] | no_license | package com.gRPC_quickstart_bank.service;
import com.gRPC_quickstart_bank.AccountRequest;
import com.gRPC_quickstart_bank.UserPrivacyData;
import com.gRPC_quickstart_bank.UserPrivacyDataServiceGrpc;
import io.grpc.stub.StreamObserver;
import org.apache.commons.lang3.RandomStringUtils;
/**
* Provides custom operation... | true |
f35187b2104972a955a7735a2c097fe6715990e6 | Java | target000/Leetcode | /String/IsomorphicString.java | UTF-8 | 2,363 | 3.703125 | 4 | [] | no_license | import java.util.HashMap;
import java.util.Map;
public class IsomorphicString {
// write a function to test if two strings are isomorphic
// Isomorphic: aac - > bbg, a -> b , abc -> def
// non-isomorphic: aac -> bxb, aaaa -> ghij
public static void main(String[] args) {
System.out.println(i... | true |
b1b741e30d1e690985f933472cc1537e6105c0eb | Java | BaoKhanhFontAriel/MediaPlayer | /app/src/main/java/com/example/MediaPlayer/Fragments/BrowseTabFragment.java | UTF-8 | 4,605 | 2.125 | 2 | [] | no_license | package com.example.MediaPlayer.Fragments;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.ViewModelProvider;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.os.Handler;
import android.util.Log;
impor... | true |
27d67e5890db8df5b8fbd6b74e7e92c0ce4406da | Java | Lisa280461/Diary_App | /app/src/main/java/com/example/diaryapp/model/entries/EntryDatabase.java | UTF-8 | 1,119 | 2.359375 | 2 | [] | no_license | package com.example.diaryapp.model.entries;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.room.Database;
import androidx.room.Room;
import androidx.room.RoomDatabase;
import androidx.sqlite.db.SupportSQLiteDatabase;
@Database(entities = Entry.class, version = 4, exportSchema = f... | true |
831e0ab8a9f7b75cae79c6d9818b421cc4041200 | Java | portaloffreedom/parcoDB | /src/parcodb/database/objects/Struttura.java | UTF-8 | 7,913 | 2.46875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package parcodb.database.objects;
import com.trolltech.qt.core.QDate;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import parcodb.database.DatabaseCon... | true |
02f1c61286fd3cc70fb7c40d8371a59d52339e5a | Java | Nhatdealin/SVDANANG_PROJECT | /app/src/main/java/com/diendan/svdanang/Adapter/HomeRecyclerviewAdapter.java | UTF-8 | 6,947 | 2.0625 | 2 | [] | no_license | package com.diendan.svdanang.Adapter;
import android.content.Context;
import android.os.AsyncTask;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.... | true |
def6141bdf097de43cee8eae2e849ff6253cc751 | Java | Saradadimmiti/javaprojects | /hari sir classes for core java/eclipse mars/Abstraction/src/interfaces2/HPPrinter.java | UTF-8 | 409 | 2.515625 | 3 | [] | no_license | package interfaces2;
//} = + ] ' " //
public class HPPrinter implements Scanner {
public void print(){
System.out.println("HPPrinter print");
}
public void scan() {
System.out.println("HPPrinter scan");
}
public static void main(String[] args) {
Scanner scn=new HPPrinter();
scn.print();
scn.scan();
... | true |
1f2bd0dae33d2cd5fd966e745cd34e17e98a4e40 | Java | luckyakki/javaproject2 | /src/exception32/UncheckedException1.java | UTF-8 | 364 | 2.609375 | 3 | [] | no_license | package exception32;
public class UncheckedException1 {
public static void main(String args[]){
int num[]={1,2,3,4,5};
System.out.println(num[0]);
System.out.println(num[1]);
System.out.println(num[2]);
System.out.println(num[3]);
System.out.println(num[5]);
System.out.println(num[4]);
... | true |
5d3474395713b6664e9ced6f78d70d5b6d0235a1 | Java | a12791602/lotto-cms-wl | /src/main/java/com/hhly/cms/sysmgr/service/CMSRoleService.java | UTF-8 | 1,070 | 1.96875 | 2 | [] | no_license | package com.hhly.cms.sysmgr.service;
import com.hhly.skeleton.base.bo.PagingBO;
import com.hhly.skeleton.cms.sysmgr.bo.CMSRoleBO;
import com.hhly.skeleton.cms.sysmgr.bo.CMSRoleMenuBO;
import com.hhly.skeleton.cms.sysmgr.vo.CMSRoleMenuTreeVO;
import com.hhly.skeleton.cms.sysmgr.vo.CMSRoleVO;
import java.util.List;
/*... | true |
0c85b0265bcd9a4b2f881a48e6a4204cf402ab7d | Java | EstebanDalelR/tinderAnalysis | /apk/decompiled/com.tinder_2018-07-26_source_from_JADX/sources/com/tinder/recs/view/RecsStatusView_ViewBinding.java | UTF-8 | 2,910 | 1.734375 | 2 | [] | no_license | package com.tinder.recs.view;
import android.support.annotation.CallSuper;
import android.support.annotation.UiThread;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import butterknife.Unbinder;
import butterknife.internal.C0759a;
import butterknife.internal.C0761c;
import c... | true |
7c98f8d169448f31d4e94eb6cf386553e37275e3 | Java | LamhotJM/CS-390 | /src/equals/hw1/Person.java | UTF-8 | 619 | 3.46875 | 3 | [] | no_license | package equals.hw1;
import java.time.LocalDate;
public class Person {
public Person(String name, int year, int month, int dayOfMonth) {
super();
this.name = name;
this.dateBirth = LocalDate.of(year, month, dayOfMonth);
}
private String name;
private LocalDate dateBirth;
public String getName() {
return... | true |
ffeb5652645185ecb3ab54997eba1f011c75d0ad | Java | Rocio-hub/AttendanceRecorder | /AttendanceRecorder/src/attendancerecorder/bll/interfaces/ITeacherManager.java | UTF-8 | 881 | 2.078125 | 2 | [] | no_license |
package attendancerecorder.bll.interfaces;
import attendancerecorder.be.Student;
import attendancerecorder.be.Teacher;
import java.util.List;
public interface ITeacherManager {
public List<Teacher> getAllTeachers();
public List<Teacher> getTeacherLoginData();
public List<Student> getStudentsOnConditio... | true |
3413da7e83e889b1e2e48ece753610232cd5b8fe | Java | RasheedaK/Exercise4 | /src/Direction.java | UTF-8 | 264 | 2.75 | 3 | [] | no_license | abstract class Direction {
static final String NORTH = "N";
static final String EAST = "E";
static final String WEST = "W";
static final String SOUTH = "S";
abstract Direction getLeftDirection();
abstract Direction getRightDirection();
}
| true |
ad4ba5afe9b950b01c3248fecbcc0f9e137d05e1 | Java | RSVSPAIN/LolBuilds | /app/src/main/java/com/example/raul/lolbuilds/view/fragments/TabBronceFragment.java | UTF-8 | 379 | 1.820313 | 2 | [] | no_license | package com.example.raul.lolbuilds.view.fragments;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.Query;
public class TabBronceFragment extends BanListFragment2 {
@Override
Query setQuery() {
searchReference = "bans/bronce";
return FirebaseDatabase.g... | true |
48b74af3b6e1f62ac77e1747663743dedc7abe17 | Java | locnguyenIT/Client_Server_UDP_ShortestPath | /src/Server/Server.java | UTF-8 | 2,786 | 2.296875 | 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 Server;
/**
*
* @author Nam Do
*/
import Client.Client;
import java.io.IOException;
import java.net.DatagramPacket;
import ... | true |
73339922f3154bb02e26b255ab976e936740a3c4 | Java | marcoucou/com.tinder | /src/com/facebook/rebound/SteppingLooper.java | UTF-8 | 669 | 2.15625 | 2 | [] | no_license | package com.facebook.rebound;
public class SteppingLooper
extends SpringLooper
{
private long mLastTime;
private boolean mStarted;
public void start()
{
mStarted = true;
mLastTime = 0L;
}
public boolean step(long paramLong)
{
if ((mSpringSystem == null) || (!mStarted)) {
return ... | true |
595631b3323afe58e5e3305b8552daa5bfc9b0ef | Java | jcmann/adv-java | /src/java112/demos/week03/ReadDemo.java | UTF-8 | 1,477 | 4 | 4 | [] | no_license | package java112.demos.week03;
import java.io.*;
/**
* Demonstrate reading a text file and displaying each file line
* to the console
*
* @author jcmann
*/
public class ReadDemo {
/**
* Main method containing all of the necessary demo code
* Use BufferedReader to read file line by line, and outp... | true |
dd0d4f9773c90c976c2474c92721a699b639c78d | Java | chiennv3190/ProjectGroup1 | /app/src/main/java/com/example/chien/projectgroup1/ultil/SendLocationBroadCastReceiver.java | UTF-8 | 1,511 | 2.09375 | 2 | [] | no_license | package com.example.chien.projectgroup1.ultil;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.location.Location;
import com.example.chien.projectgroup1.common.Common;
import com.example.chien.projectgroup1.model.User;
import com.example.chien.pr... | true |
72a9b2a9a639255a7ed6d114aab25a715696d0d9 | Java | luisgustavogomes/NetBeans | /LG_Threads/src/aula3/Main.java | UTF-8 | 751 | 2.375 | 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 aula3;
/**
*
* @author lg
*/
public class Main {
public static void main(String[] args) {
String ... | true |
d43001b1bf37d8e3204bae3ab17f0ccb1742083f | Java | Zulfiya5/shop_security | /src/main/java/uz/pdp/shop/ShopApplication.java | UTF-8 | 2,835 | 1.984375 | 2 | [] | no_license | package uz.pdp.shop;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.crypto.password.PasswordEnco... | true |
48fe3a38b37fdd11adc2019387e6c485a6a7b20b | Java | albacj/Proyectos-de-Java | /Repaso/src/hora/Hora.java | UTF-8 | 194 | 2.40625 | 2 | [] | no_license | package hora;
public interface Hora extends Comparable<Hora>{
Integer getMinutos();
Integer getSegundos();
void setMinutos (Integer m);
void setSegundos (Integer s);
void suma (Hora h);
}
| true |
ed574a47de83d3022b1ff1616b17c5c531e3a1df | Java | stardogventures/stardao | /stardao-mongodb/src/test/java/io/stardog/stardao/mongodb/TestUser.java | UTF-8 | 3,706 | 1.890625 | 2 | [
"Apache-2.0"
] | permissive | package io.stardog.stardao.mongodb;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;
import com.google.auto.value.AutoValue;
impo... | true |
539dc91256a4bb0083df7aba5d81f9b6b356b34e | Java | Li2210/deignPatternStudy | /src/main/java/DesignPattern/Observer/Subject.java | UTF-8 | 355 | 3 | 3 | [] | no_license | package DesignPattern.Observer;
public interface Subject {
/**
* add new observer
* @param observer
*/
void attach(Observer observer);
/**
* delete observer
* @param observer
*/
void detach(Observer observer);
/**
* notify observer
* @param message
*/
... | true |
26259028d3f9e6adfc6fcc716e8ce723088a1ef2 | Java | yrsoojin/firstPrj | /src/project_constructor/total.java | UHC | 651 | 2.921875 | 3 | [] | no_license | package project_constructor;
import javafx.beans.property.SimpleStringProperty;
public class total {
//simplestringproperty Ӽÿ
private SimpleStringProperty date;
private SimpleStringProperty total;
public total(String date, String total) {
super();
this.date = new SimpleStringProperty(date);
... | true |
7fcaf17cb5430af2b4a0eda06861569e906eda62 | Java | appenginemci/sharedmailboxesadminui | /sharedmailboxes-admin-local/src/main/java/com/mcigroup/eventmanager/front/dao/UserDao.java | UTF-8 | 6,872 | 2.375 | 2 | [] | no_license | package com.mcigroup.eventmanager.front.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Collection;
import com.mcigroup.eventmanager.front.helper.ConnectionUtil;
import com.mcigroup.eventmanager.f... | true |
4f6be3f8d58e9da3066408f1fe0ee4f6134d76e6 | Java | Elikill58/Negativity | /src/com/elikill58/negativity/spigot/commands/BanCommand.java | UTF-8 | 4,030 | 2.25 | 2 | [] | no_license | package com.elikill58.negativity.spigot.commands;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.StringJoiner;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.comman... | true |
6ff7f05c18c0be50cdeefa1b7d36971e14e2f5c5 | Java | chenbi/Demo | /src/RayTracing/Box.java | UTF-8 | 2,475 | 3.265625 | 3 | [] | no_license | package RayTracing;
import javax.vecmath.Point3d;
import javax.vecmath.Vector3d;
/**
* A simple box class. A box is defined by it's lower (@see min) and upper (@see max) corner.
*/
public class Box extends Intersectable {
public Point3d max;
public Point3d min;
/**
* Default constructor. Creates a ... | true |
c225fad2a93d67cbac130254eb5f0e2f55239221 | Java | lucassales2/Twitch | /app/src/main/java/com/lucassales/twitch/home/HomeBuilder.java | UTF-8 | 855 | 1.929688 | 2 | [] | no_license | package com.lucassales.twitch.home;
import android.arch.lifecycle.ViewModel;
import com.lucassales.twitch.home.favorite.FavoriteGamesBuilder;
import com.lucassales.twitch.home.top.TopGamesBuilder;
import com.lucassales.twitch.inject.ViewModelKey;
import dagger.Binds;
import dagger.Module;
import dagger.android.Contr... | true |
533fc8911e608441005da5097f1bd875ce1f651b | Java | jcpmcode/ClasePOO | /prog22/CamposTexto.java | UTF-8 | 3,549 | 3.359375 | 3 | [] | no_license | import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JT... | true |
026918e50c82e4e7aa03c0eef8c947e7a852ac66 | Java | duchao11280/ProjectSE | /CheDoDinhDuong/src/main/java/beans/CustomMenu.java | UTF-8 | 1,526 | 2.953125 | 3 | [] | no_license | package beans;
import Models.FoodModel;
import java.util.Date;
public class CustomMenu {
private int userID;
private int foodID;
private Date datetime;
private int number;
public CustomMenu(int userID, int foodID, Date datetime, int number) {
this.userID = userID;
this.foodID = f... | true |
4eec891ed40698ea3beae0886119e9823b1e4fcc | Java | evan1715/java-course | /Week5.java | UTF-8 | 18,260 | 3.8125 | 4 | [] | no_license | //Starting Week5 8/14/2018 @9:45am - ended 8/20/2018 @9pm
import wk5.*;
import java.util.Scanner;
import java.util.ArrayList;
public class Week5 {
public static void week5() {
Scanner reader = new Scanner(System.in);
System.out.println("Choose an option:\n "
+"1. ex84 overloaded counter\n ... | true |
d461ba5db5678108cf99d5347e6ba79da0109805 | Java | arnoutvw/AdventOfCode2020-1 | /src/main/java/me/sizableshrimp/adventofcode2020/days/Day03.java | UTF-8 | 1,193 | 2.890625 | 3 | [] | no_license | package me.sizableshrimp.adventofcode2020.days;
import me.sizableshrimp.adventofcode2020.templates.Coordinate;
import me.sizableshrimp.adventofcode2020.templates.Day;
import java.util.Arrays;
public class Day03 extends Day {
@Override
protected Result evaluate() {
Coordinate[] slopes = {Coordinate.of... | true |
040537cf64e560d7898912e58913149d13426ef6 | Java | diegourban/competitive-programming | /codewars/src/main/java/urban/codewars/kyu6/FindOdd.java | UTF-8 | 681 | 3.21875 | 3 | [] | no_license | package urban.codewars.kyu6;
import java.util.Arrays;
public class FindOdd {
public static int findIt(int[] numeros) {
if (numeros.length == 1) {
return numeros[0];
}
Arrays.sort(numeros);
int contagem = 0;
for (int i = 0; i < numeros.length; i++) {
... | true |
1c3c8af36dc97bb3ae375fdef3cf1ad1e2d19517 | Java | VectorShadow/Capstone | /test/asset/IO/Test_FileManager.java | UTF-8 | 718 | 2.296875 | 2 | [] | no_license | package asset.IO;
import io.file.FileManager;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test_FileManager {
/*
@Test
public void test_DeleteSave(){
Exception exception = assertThrows(IllegalStateException.class, FileManager::deleteSavedGame);
String expectedMes... | true |
8baf6674d060f10cc56cd6bdf0485925fb0b4d7f | Java | AbhilashKumar2203/PPMTool | /PPMToolSpring/src/main/java/io/mylearning/ppmtool/exceptions/ProjectIdExceptionHandler.java | UTF-8 | 822 | 2 | 2 | [] | no_license | package io.mylearning.ppmtool.exceptions;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestCont... | true |
cb0c40c9cb4b0be9213ac0dcb403e8154185518b | Java | NHTdz/NHT | /C4_tiendien/src/xuly.java | UTF-8 | 1,613 | 3.390625 | 3 | [] | no_license | import java.util.Scanner;
public class xuly {
final static int level1 = 50;
final static int level2 = 100;
final static int level3 = 200;
final static int level4 = 350;
final static int about_level2 = 50;
final static int about_level3 = 100;
final static int about_level4 = 150;
final static int price1 = 500;
... | true |
54957e596f7f6eee9ac033ecbacaec4955747a14 | Java | palmenhq/twig4j-core | /src/test/java/org/twig4j/core/template/TemplateTests.java | UTF-8 | 9,784 | 2.578125 | 3 | [
"BSD-3-Clause"
] | permissive | package org.twig4j.core.template;
import org.junit.Assert;
import org.junit.Test;
import org.twig4j.core.Environment;
import org.twig4j.core.exception.Twig4jException;
import org.twig4j.core.exception.Twig4jRuntimeException;
import static org.mockito.Mockito.*;
import java.util.Arrays;
import java.util.Map;
public ... | true |
def819a64b174b7bffe449a5716f25e5864df6a9 | Java | SWE444-Post-it/postit_ | /app/src/main/java/com/postit/postit_/MainActivity.java | UTF-8 | 1,003 | 2.015625 | 2 | [] | no_license | package com.postit.postit_;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
public class Ma... | true |
5550e93806b9ba5bbb43935ac81c8379424703ac | Java | e-yamane/Reversi | /src/test/java/reversi/impl/MinaPlayerServerTest.java | UTF-8 | 2,031 | 2.65625 | 3 | [] | no_license | package reversi.impl;
import java.awt.Point;
import java.util.Map;
import junit.framework.TestCase;
import reversi.Board;
import reversi.BoardState;
import reversi.DebugBoard;
import reversi.Player;
import reversi.Reversi;
public class MinaPlayerServerTest extends TestCase {
public void testToString() {
Player bl... | true |
18957b5eac47c8b67b4850cb03b375a0ad309370 | Java | Sarcovora/Competitive-Programming | /Training/MixingMilk-PackagingMilk/src/junkmilk.java | UTF-8 | 1,447 | 3.21875 | 3 | [] | no_license | /*
ID: 100021881
LANG: JAVA
PROG: milk
*/
import java.io.*;
import java.util.*;
public class junkmilk {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new FileReader("milk.in"));
PrintWriter out = new PrintWriter(new BufferedWriter(new ... | true |
02b1c86ed53b8f02848e3144db02350cab61a23d | Java | lvxinggang/springboot-project | /src/main/java/com/project/mes/systemmanage/controller/SysMenuController.java | UTF-8 | 1,391 | 2.015625 | 2 | [] | no_license | package com.project.mes.systemmanage.controller;
import com.alibaba.fastjson.JSON;
import com.project.mes.result.Result;
import com.project.mes.systemmanage.bean.SysMenu;
import com.project.mes.systemmanage.service.SysMenuService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Au... | true |
e795c011fd398e4fd14e65269d06f05cc8a037b6 | Java | heavensay/treasure | /treasure-demo/src/test/java/com/helix/demo/thread/concurrent/SimpleThread.java | UTF-8 | 1,056 | 3.28125 | 3 | [] | no_license | package com.helix.demo.thread.concurrent;
import junit.framework.TestCase;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class SimpleThread extends TestCase {
public void test01(){
ExecutorService es = Executors.newFixedThreadPool(3);
es.execute(new Runnable() {
@... | true |
731c4a8c18926cad0171a419b2bc0ab324579425 | Java | EmperorPark/DesignPattenAndTDD | /03TemplateMethod/src/TemplateMethod/abstGameConnectHelper.java | UTF-8 | 1,459 | 2.90625 | 3 | [] | no_license | package TemplateMethod;
/**
* Define a process in this class</br>
* The implementation of each method is in the subclass</br>
* If there is a requirement change, modify the subclass
* @author woghkd0719
*
*/
public abstract class abstGameConnectHelper {
protected abstract String doSecurity(String encodestr);
... | true |
ccc220807894dc4c8e9ee7fb98d27059f3ada6ee | Java | mananmodi99/Problem-Solving | /Stacks/GetMin.java | UTF-8 | 622 | 3.546875 | 4 | [] | no_license | package Stacks;
import java.util.ArrayDeque;
public class GetMin {
//O(1) Time and O(n) space
ArrayDeque<Integer> stack1 = new ArrayDeque<>();
ArrayDeque<Integer> minStack = new ArrayDeque<>();
public void push(int value){
if(minStack.isEmpty())
minStack.push(value);
... | true |
1bd3c2dc56593122e099d81208649d117bb9eaf2 | Java | czheng035/myblog-examples | /moves_api_lib/src/com/gmail/czheng035/moves/api/DailyActivityApi.java | UTF-8 | 2,365 | 2.328125 | 2 | [] | no_license | package com.gmail.czheng035.moves.api;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import org.apache.http.HttpEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpG... | true |
c945f1c2f96d866743beaa172dab3360ba03d799 | Java | ISEPTECHWEB/lab1 | /src/main/java/ex01C/Log4jBasics.java | UTF-8 | 543 | 2.984375 | 3 | [] | no_license | package ex01C;
import org.apache.log4j.*;
public class Log4jBasics
{
protected static Logger log = Logger.getLogger(Log4jBasics.class);
public static void main(String[] args)
{
log.debug("DEBUG: Cool !");
log.info("INFO: Cool !");
}
}
// When we change the level from INFO to DEBUG, it prints the val... | true |
e56bc81499f9fd4dcc05ee16faf6a43dddc9c4bf | Java | ersin-ertan/AnimationTransitionMaterial | /app/src/main/java/com/nullcognition/animationtransitionmaterial/slidingfragments/TextFragment.java | UTF-8 | 1,532 | 2.28125 | 2 | [] | no_license | package com.nullcognition.animationtransitionmaterial.slidingfragments;
// ersin 08/08/15 Copyright (c) 2015+ All rights reserved.
import android.animation.Animator;
import android.animation.AnimatorInflater;
import android.animation.AnimatorListenerAdapter;
import android.app.Fragment;
import android.os.Bundle;
impor... | true |
62e0287426fb4da4e0c17f478d752dfdff1e0bda | Java | puttapun01/StudyPlan | /app/src/main/java/th/ac/rmutt/comsci/studyplan/Fragment/PlanFragment.java | UTF-8 | 1,297 | 2.078125 | 2 | [] | no_license | package th.ac.rmutt.comsci.studyplan.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatDialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Text... | true |
91b476063ea7810f866606703d89a4e0b910be39 | Java | fernandodanielmartinez/github | /java/curso/clase4.2/Programa.java | UTF-8 | 844 | 3.046875 | 3 | [] | no_license | import java.util.Date;
public class Programa {
public static void main ( String args[] ) {
Zoologico zoo = new Zoologico ();
zoo.abrir();
Cuidador cuidador = new Cuidador ();
Date date = new Date();
cuidador.setNombre("Ernesto");
cuidador.setFechaDeNacimiento(d... | true |
0d3c2b8798edc102afea735de0e7ba907ad26788 | Java | khudyakovan/2019-11-otus-spring-khudyakov | /homework-09/src/main/java/ru/otus/homework/controller/GenreController.java | UTF-8 | 1,098 | 2.109375 | 2 | [] | no_license | package ru.otus.homework.controller;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import ru.otus.homework.entity.Gen... | true |
f82b5d0a9edd0269f6e17516fd0a8a1742b6b583 | Java | Chrisjc28/GiphyApp | /app/src/main/java/com/example/android/giphyapi/fragments/GiphyPageFragment.java | UTF-8 | 3,113 | 2.1875 | 2 | [] | no_license | package com.example.android.giphyapi.fragments;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.CardView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import andro... | true |
01c67c5bed25007598dddf495b87678d6a2a175b | Java | julian-mateu/kafka-beginners-course | /twitter2elastic/src/main/java/com/github/julian_mateu/kafka/twitter2elastic/consumer/Consumer.java | UTF-8 | 2,996 | 2.796875 | 3 | [] | no_license | package com.github.julian_mateu.kafka.twitter2elastic.consumer;
import com.github.julian_mateu.kafka.twitter2elastic.consumer.elastic.ElasticSearchWriter;
import com.google.inject.Inject;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.kafka.clients.con... | true |
dfd735225ad3bca3555f8a0ccbff3f79cf7bb822 | Java | currying/molecule | /platform/src/main/java/com/toparchy/platform/ui/model/PositionLayout.java | UTF-8 | 4,192 | 1.875 | 2 | [
"Apache-2.0"
] | permissive | package com.toparchy.platform.ui.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table... | true |
6ffcd7ec4a7965d21f7817929a4573393cfa5a44 | Java | wiwimi/webagenda | /src/uiConnection/schedule/scheduleCreate.java | UTF-8 | 1,493 | 2.5 | 2 | [] | no_license | package uiConnection.schedule;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import business.schedule.ScheduleTemplate;
import... | true |