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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
1e0c83c8a3225c79e895d18e68e3f35aa23e1986 | Java | eity0323/eat2013 | /app/src/main/java/com/gae/adapter/MainGridViewAdapter.java | UTF-8 | 2,328 | 2.09375 | 2 | [] | no_license | package com.gae.adapter;
import android.content.Context;
import android.content.pm.PackageManager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import com.gae.eat2013.R;
import com.gae.entity.applyItem;... | true |
a2b1dc19dae85480385c252ffcacb222930b0109 | Java | DanielPCurtis/AzGasProject | /AzGasSelenium/src/logoSuite/LogoWaitTest.java | UTF-8 | 5,780 | 2.515625 | 3 | [] | no_license | package logoSuite;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.interactions.Actions;
import org.openqa.sel... | true |
b1df2155ab3683c49bb3f6cea06426dced4f9423 | Java | frkmed/RoomDB | /ChatSimulateur/app/src/main/java/com/marwa/chat/Util/Util.java | UTF-8 | 570 | 2.453125 | 2 | [] | no_license | package com.marwa.chat.Util;
import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;
import java.text.SimpleDateFormat;
public class Util {
public static final String TIMESTAMP_FORMAT = "yyyyMMdd_HHmmss";
public static String getTimeStamp() {
return new SimpleDateFormat(TIMESTAM... | true |
67cc74df1d2ce5b156760ab6dc262ad62d87be25 | Java | DavyJones2010/test-core | /src/main/java/edu/xmu/test/codekata/gomoku/GomokuPosition.java | UTF-8 | 934 | 3.015625 | 3 | [] | no_license | package edu.xmu.test.codekata.gomoku;
public class GomokuPosition extends Position {
public final static short BLANK = 0;
public final static short SELF = 1;
public final static short ENERMY = -1;
short[][] grid;
int CHESS_WIDTH;
int CHESS_HEIGHT;
public GomokuPosition(int width, int height) {
CHESS_WIDTH ... | true |
ca7bb76af574635b6648d01fffe40e7c8b9c8266 | Java | litianqi1996/volc-sdk-java | /example/src/main/java/com/volcengine/example/imagex/UploadImageDemo.java | UTF-8 | 1,322 | 2.265625 | 2 | [] | no_license | package com.volcengine.example.imagex;
import com.volcengine.model.request.ApplyImageUploadRequest;
import com.volcengine.model.response.CommitImageUploadResponse;
import com.volcengine.service.imagex.IImageXService;
import com.volcengine.service.imagex.impl.ImageXServiceImpl;
import java.nio.file.Files;
import java.... | true |
7ad12e154b426ed5271ace1bd8c5fdda9b4848ca | Java | adrianstefanust/pengujianPerangkatLunak | /src/main/java/com/mscheduler/view/user/UserDeleteViewer.java | UTF-8 | 2,817 | 2.984375 | 3 | [] | no_license | package com.mscheduler.view.user;
import com.mscheduler.model.User;
import java.util.Scanner;
public class UserDeleteViewer extends AbstractUserViewer {
//singleton + constructor
private static UserDeleteViewer instance;
static {
instance = new UserDeleteViewer();
}
public static UserDe... | true |
2ef578888d3414bfbb4d76aa24930157d8828e97 | Java | tsangwai2009/meowStore | /src/main/java/com/fhk/sample/wro/NullUriLocator.java | UTF-8 | 433 | 2.15625 | 2 | [
"MIT"
] | permissive | package com.fhk.sample.wro;
import java.io.IOException;
import java.io.InputStream;
import org.apache.commons.io.input.NullInputStream;
import ro.isdc.wro.model.resource.locator.UriLocator;
class NullUriLocator implements UriLocator
{
@Override
public InputStream locate(final String uri) throws IOException
{
... | true |
ea91a5f0853f1756326235b7fdd8302d8d13e4cb | Java | Harrdy2018/Java-Notebook | /msth.java | UTF-8 | 416 | 3.03125 | 3 | [
"Apache-2.0"
] | permissive | package com.lukang.www;
/**
*统计子串在字符串中出现的次数
*/
public class WindowTest {
public int getCount(String str,String sub){
int index=0;
int count=0;
while((index=str.indexOf(sub,index)) !=-1){
count+=1;
index+=sub.length();
}
return count;
}
public static void main(String[] args) {
... | true |
fd7a52ab85e8f602808900387ffdda2ef1d65273 | Java | zeno420/pump | /test/ProgramTest.java | UTF-8 | 719 | 2.6875 | 3 | [] | no_license | package test;
import domain.Day;
import domain.Program;
import domain.Program.ProgramValid;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class ProgramTest {
@Test
public void testGetValid() {
Program program = new Program();
assertEq... | true |
785a1f9fd776f6e2b4867736a0367f79e2da9074 | Java | nilesh12121996/CityLibrary | /src/application/testing.java | UTF-8 | 1,373 | 2.296875 | 2 | [] | no_license | package application;
import java.awt.List;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
impo... | true |
34536e0d04c1601c8efa23f4812f7a2d6abe06bf | Java | zjnktion/billy | /billy-core/src/main/java/cn/zjnktion/billy/processor/NioSocketProcessor.java | UTF-8 | 723 | 2.109375 | 2 | [] | no_license | package cn.zjnktion.billy.processor;
import cn.zjnktion.billy.session.NioSocketSession;
import cn.zjnktion.billy.task.WriteTask;
/**
* Created by zhengjn on 2016/4/13.
*/
public final class NioSocketProcessor extends AbstractNioProcessor<NioSocketSession> implements SocketProcessor<NioSocketSession> {
public vo... | true |
85df06aba4a3e57d679bc16521ac6c34d768df96 | Java | khush611/java-hackerrank | /strings/string5.java | UTF-8 | 1,142 | 3.59375 | 4 | [] | no_license | //accept a word and display the same in alphabetic order of letters
import java.io.*;
public class string5 {
public static void main(String args[])throws IOException
{
InputStreamReader read=new InputStreamReader(System.in);
BufferedReader in =new BufferedReader(read);
String str=" ";
System.out.println("ente... | true |
f5b6c416bd0c695d557063734d0634dc38642100 | Java | BrunaRA/clinica | /src/main/java/br/com/med/clinica/atendimento/controller/ReceitaItemDTO.java | UTF-8 | 633 | 1.859375 | 2 | [] | no_license | package br.com.med.clinica.atendimento.controller;
public class ReceitaItemDTO {
private Long oid;
private Long oidDroga;
private String droga;
private String texto;
public Long getOid() {
return oid;
}
public void setOid(Long oid) {
this.oid = oid;
}
public Long getOidDroga() {
return oidDro... | true |
3045580beb1410a222b53b0f50284b1c2fea6cfc | Java | Uldiniad/CSI-uOttawa-Portfolio | /Introduction to Computing I/src/a5_7931937/Canvas.java | UTF-8 | 3,213 | 3.484375 | 3 | [] | no_license | package a5_7931937;
public class Canvas {
private Rectangle[] rectangles;
private int numRectangles;
public Canvas(int size) {
this.rectangles=new Rectangle[size];
}
public void add(Rectangle aRectangle) {
if (numRectangles<rectangles.length){
this.rectangles[numRectangle... | true |
00a7190c0ab927378f44f55a1b881678840fd6df | Java | Nerucius/1516.androidproject | /app/src/main/java/edu/ub/pis2016/pis16/strikecom/controller/VehicleMovementController.java | UTF-8 | 2,350 | 3 | 3 | [] | no_license | package edu.ub.pis2016.pis16.strikecom.controller;
import edu.ub.pis2016.pis16.strikecom.engine.math.Vector2;
/**
* Created by Alexander Bevzenko on 14.03.2016.
*
* this is generic movement controller for all vehicles (mobile base and enemies)
*/
public class VehicleMovementController {
public Vector2 pos, ve... | true |
3366f12bdc7619af41c547370510f878edf72326 | Java | HrBbCi/Netbean | /AutoCl/AutuClick/AutoClick-master (2)/AutoClick-master/src/com/bigcay/ac/AutoClick.java | UTF-8 | 2,353 | 2.203125 | 2 | [] | no_license | package com.bigcay.ac;
import java.io.File;
import org.openqa.selenium.phantomjs.PhantomJSDriverService;
import org.quartz.JobBuilder;
import org.quartz.JobDetail;
import org.quartz.Scheduler;
import org.quartz.SchedulerException;
import org.quartz.SimpleScheduleBuilder;
import org.quartz.Trigger;
import org.quartz.T... | true |
dd69f17b69c47a829c2f8d13f4d115bcf034457a | Java | MapleStore/leetcode_java | /src/main/java/darren/gong/leetcode/MinReorder1466.java | UTF-8 | 1,401 | 2.90625 | 3 | [] | no_license | package darren.gong.leetcode;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Queue;
public class MinReorder1466 {
public int minReorder(int n, int[][] connections) {
Map<Integer, List<Integer>> from = new HashMap<>... | true |
7e5d166c08ae442811674658ec2d11034d6d72bd | Java | adsantamaria/se-ales | /src/main/java/tp/Ejercicio3_2.java | UTF-8 | 2,303 | 3.125 | 3 | [] | no_license | package tp;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import com.github.sh0nk.matplotlib4j.Plot;
import com.github.sh0nk.matplotlib4j.PythonExecutionException;
import com.github.sh0nk.matplotlib4j.builder.ScaleBuilder;
public class Ejercicio3_2 {
public static void main(String[... | true |
f9d88872586ae33a4b1600a7d738f6f2ef02a565 | Java | Mssuk/javaSource | /default/Ex0211_09.java | UTF-8 | 2,032 | 3.984375 | 4 | [] | no_license |
import java.util.Random;
/**
* Ex0211_09
*/
public class Ex0211_09 {
public static void main(String[] args) {
//Exercise 2
//배열에 값 넣기
//1차원 배열의 크기 10
Random ran = new Random();
//2-1
//배열 값에 0, 500, 1000, 3000 중에 1개 값을 넣는다.
//값을 배열에 넣어서 랜... | true |
c9b025fdcca321ea7e3bb01498295729a974e078 | Java | handstandtech/Foursquare-Brands | /server/src/main/java/com/handstandtech/brandfinder/server/googleanalytics/SingleEventSummaryAnalyticsResult.java | UTF-8 | 1,381 | 2.0625 | 2 | [] | no_license | package com.handstandtech.brandfinder.server.googleanalytics;
import java.io.Serializable;
public class SingleEventSummaryAnalyticsResult implements Serializable {
/**
* Default Serialization UID
*/
private static final long serialVersionUID = 1L;
private String eventCategory;
private String eventLabel;
pr... | true |
ac843481793fae1a54c1926c6f9be9f019c4ad99 | Java | Eluss/GdanskNumerek-Android | /app/src/main/java/com/eluss/gdansknumerek/ZOM.java | UTF-8 | 123 | 1.648438 | 2 | [
"MIT"
] | permissive | package com.eluss.gdansknumerek;
/**
* Created by Eluss on 07/04/16.
*/
public enum ZOM {
ZOM1, ZOM2, ZOM3, ZOM4
}
| true |
4c5471be3acaa457136aa4a545f3ce8480cc3f37 | Java | awing-sly/myui | /src/per/awing/myui/launcher/TileAdapter.java | UTF-8 | 1,039 | 2.375 | 2 | [] | no_license | package per.awing.myui.launcher;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.BaseAdapter;
import java.util.ArrayList;
import java.util.List;
public class TileAdapter extends BaseAdapter {
List<TileInfo> mTileList = new ArrayList<TileI... | true |
764322f095cd3e34fb61a5415c4dd26cf9058e3c | Java | woojin97318/java_basic | /day05_loop/src/day05_loop/Ex04_for.java | WINDOWS-1252 | 259 | 3.40625 | 3 | [] | no_license | package day05_loop;
public class Ex04_for {
public static void main(String[] args) {
int su = 1, sum = 0;
for(; su <= 10;) {
sum += su;
su++;
}
System.out.println("1~10 : " + sum);
for(; ;) {
System.out.println("");
}
}
}
| true |
f1ccbd1686c2ec4baef290e5a16022a375b3cd90 | Java | ibisTime/xn-health-android | /app/src/main/java/com/chengdai/ehealthproject/weigit/GlideImageLoader.java | UTF-8 | 657 | 2.015625 | 2 | [] | no_license | package com.chengdai.ehealthproject.weigit;
import android.content.Context;
import android.net.Uri;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.chengdai.ehealthproject.R;
import com.chengdai.ehealthproject.weigit.appmanager.MyConfig;
import com.youth.banner.loader.ImageLoader;
/**
*... | true |
f83edd021e7681e53c38352e8749481c5fb1bfe3 | Java | fnstzc/ScheduleCollectTask | /src/com/fnst/dlyy/service/MeterDataManager.java | UTF-8 | 643 | 1.976563 | 2 | [] | no_license | package com.fnst.dlyy.service;
import java.util.List;
import com.fnst.dlyy.dao.MeterDataDaoImpl;
import com.fnst.dlyy.entity.MeterDailyData;
import com.fnst.dlyy.entity.MeterInitialData;
import com.fnst.dlyy.entity.MeterMonthData;
import com.fnst.dlyy.entity.MeterNowData;
import com.fnst.dlyy.util.DataUtil;
public c... | true |
9fcf108c721f26a5fbd410f0a06b8d22b4ae6211 | Java | rodolfosoken/Python2C | /src/testes/TesteLeitorTabela.java | UTF-8 | 731 | 2.8125 | 3 | [] | no_license | package testes;
import java.io.IOException;
import sintaxe.Acao;
import sintaxe.Goto;
import sintaxe.LeitorTabela;
public class TesteLeitorTabela {
public static void main(String[] args) throws IOException {
LeitorTabela leitor = new LeitorTabela("src/testes/Pasta1.csv");
Acao[][] action = leitor.tabelaAction;
... | true |
8887174dae8d6ad902960090ae5c378a5278b175 | Java | ShigeoTejima/awss3-filer | /src/main/java/jp/gr/java_conf/pekokun/awss3_filer/api/repository/AclRepository.java | UTF-8 | 2,054 | 2.53125 | 3 | [] | no_license | package jp.gr.java_conf.pekokun.awss3_filer.api.repository;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.PostConstruct;
import javax.inject.Named;
import javax.inject.Singleton;
import jp.gr.java_conf.pekokun.awss3_filer.model.Access... | true |
fdccf4847040fa0fdab47734bc2010c560d9b40d | Java | studyhuang1996/-springboot- | /src/main/java/cn/studyhuang/learning/api/vo/ProductVO.java | UTF-8 | 622 | 1.75 | 2 | [] | no_license | /*
* @(#) ProductVO
* 版权声明 厦门畅享信息技术有限公司, 版权所有 违者必究
*
* <br> Copyright: Copyright (c) 2018
* <br> Company:厦门畅享信息技术有限公司
* <br> @author huang
* <br> 2018-05-03 16:57:06
*/
package cn.studyhuang.learning.api.vo;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import lombok.Data;
@... | true |
bacc00a943eeeb994bec4b96c2274aae85189b73 | Java | nine-lives/sus-api-common-java | /src/main/java/uk/co/stuffusell/api/common/ListingReportDto.java | UTF-8 | 2,351 | 2.140625 | 2 | [
"MIT"
] | permissive | package uk.co.stuffusell.api.common;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
@JsonAutoDetect(getterVisibility = JsonAutoDetect.Visibility.NONE, fieldVisibility = JsonAu... | true |
42687e51cecd63202a50c91b7a6058cec55090e6 | Java | tcloudb/Java-Wars | /Gunner.java | UTF-8 | 732 | 2.703125 | 3 | [] | no_license |
public class Gunner extends Unit {
public Gunner(int t) {
setMaxHP(50);
setHP(50);
setAtk(25);
setEffectiveATK(25);
setDef(0);
setMov(3);
setReady(true);
setIsAir(false);
setIsArmored(false);
setIsDead(false);
setCounterAttack(true);
setTeam(t);
setUnitType(1);
setCanAtta... | true |
785e5b81589ff2027e7fd4f23efc9e0135f9647f | Java | radhih/ServecoProject | /desktopServeco/src/main/java/GUI/USubsSupplier.java | UTF-8 | 6,964 | 2.21875 | 2 | [] | no_license | package GUI;
import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.SystemColor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingExceptio... | true |
c2d71b4cb135dd7b5183b4b014ea8a48c0453da3 | Java | tanjaindjic/Sistemi-elektronskog-placanja | /koncentrator/src/main/java/com/ftn/paymentGateway/service/TransakcijaService.java | UTF-8 | 1,327 | 1.898438 | 2 | [] | no_license | package com.ftn.paymentGateway.service;
import java.util.List;
import com.ftn.paymentGateway.dto.PaymentRequestDTO;
import com.ftn.paymentGateway.dto.TransakcijaIshodDTO;
import com.ftn.paymentGateway.enumerations.TransakcijaStatus;
import com.ftn.paymentGateway.exceptions.TransactionUpdateExeption;
import co... | true |
ed44dad0f7c2f69130d9cb21cfd50c7826bd1d99 | Java | soleileun/RE-MEMBER | /src/main/java/com/ssafy/test/model/dao/ProjectDAOImpl.java | UTF-8 | 1,375 | 2.109375 | 2 | [] | no_license | package com.ssafy.test.model.dao;
import java.util.List;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.ssafy.test.model.dto.Project;
import com.ssafy.test.model.dto.Projectcnt;
@Repository
pub... | true |
dc37603b0d94aeed50dca76bbd619a536518bb90 | Java | kmojanovska/CodeAppLevelUp | /Back End/calu/src/main/java/com/codecalu/calu/events/EventService.java | UTF-8 | 781 | 2.359375 | 2 | [] | no_license | package com.codecalu.calu.events;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class EventService {
@Autowired
private EventRepository eventRepository;
public Lis... | true |
e917804ce343f786d9e431c463a7e4b1d4c5b658 | Java | AraceliColmenero/Practica1 | /Instrumento1/src/com/utng/herencia/Camioneta.java | ISO-8859-2 | 715 | 2.515625 | 3 | [] | no_license | package com.utng.herencia;
/**
* * @author Araceli Colmenero * Ultima revision: Febrero 2016
*
* * Declaracion de la Clase Camioneta que hereda de Vehiculo *
*
*/
public class Camioneta extends Vehiculo {
// Atrubutos de la clase
private float tara;
private float carga;
// Constructor
public... | true |
2f157cdde83e693376db52462178a8acfc16c718 | Java | puneeth-v/IBM-21-June-Quarkus | /reactive-mutiny/src/main/java/com/ibm/reative/UniDelay.java | UTF-8 | 444 | 2.34375 | 2 | [] | no_license | package com.ibm.reative;
import io.smallrye.mutiny.Uni;
import java.time.Duration;
public class UniDelay {
public static void main(String[] args) {
System.out.println("start");
Uni.createFrom().item(1)
.onItem().transform(i -> "hello-" + i)
.onItem().delayIt().by(... | true |
e24decdbd8c0d405a88d39ed239e9c75a451761e | Java | jiangtao1989/i9-defence-parent | /i9-defence-parent/i9-defence-service/src/main/java/i9/defence/platform/service/impl/PermissionServiceImpl.java | UTF-8 | 2,807 | 2.265625 | 2 | [] | no_license | package i9.defence.platform.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import i9.defence.platform.dao.PermissionDao;
import i9.defence.platform.model.Permission;
import i9.defence.platform.model.Permissio... | true |
1a168cfd57f81f3cfddfa4551868493f8b01cf6f | Java | SelfImprCp/MyTabs | /viewtab/src/main/java/infter/IFragmentCreate.java | UTF-8 | 129 | 1.742188 | 2 | [] | no_license | package infter;
import android.support.v4.app.Fragment;
public interface IFragmentCreate {
public Fragment initFragment();
}
| true |
37c8e20d91deb5d5b4c94e72a8a696a8ecca209d | Java | hyungjun26/Algorithm-Study | /src/Baekjoon/Main_1062.java | UTF-8 | 1,989 | 3.046875 | 3 | [] | no_license | package Baekjoon;
import java.io.*;
import java.util.*;
public class Main_1062 {
static int N, K;
static char[] alphabet = {'a','n','t','i','c'};
static boolean[] visit = new boolean[26];
static String[] words;
static int MAX = 0;
static List<Character> dict = new ArrayList<>();
public static void main(String... | true |
3719c4e86b0498de7aba9a21a8946ab88634f624 | Java | SirVinay009/projectsubmit | /elements/src/elements/displaynumbers.java | UTF-8 | 765 | 3.765625 | 4 | [] | no_license | package elements;
import java.util.Scanner;
public class displaynumbers {
public void display()
{
int num;
Scanner in = new Scanner(System.in);
System.out.println("enter how many numbers you want for display");
num = in.nextInt();
int arrdisplay[] = new int[num];
System.out... | true |
117afef7bc54690eefe1750f0b132e2da9d1840b | Java | alexanderkjall/kolmafia | /lib/net/java/dev/spellcast/utilities/ActionPanel.java | UTF-8 | 5,252 | 2.265625 | 2 | [] | no_license | /**
* Copyright (c) 2003, Spellcast development team
* http://spellcast.dev.java.net/
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* [1] Redistributions of source code mu... | true |
926197bb9d891e9acb79909fdffc2440843177bc | Java | blacknstones/foorum | /src/main/java/se/kth/sda/skeleton/posts/PostRepo.java | UTF-8 | 250 | 1.5625 | 2 | [] | no_license | package se.kth.sda.skeleton.posts;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface PostRepo extends JpaRepository<Post, Long> {
}
| true |
7b054335fb9029bc3273556ae48ecfd6774d7c27 | Java | dockraekim/sp01 | /sp01/src/main/java/com/netchus/service/SensorService.java | UTF-8 | 284 | 1.53125 | 2 | [] | no_license | package com.netchus.service;
import java.util.ArrayList;
import java.util.Map;
import com.netchus.domain.EnvironmentVO;
public interface SensorService {
public ArrayList<EnvironmentVO> getResponse();
// public ArrayList<HashMap<String,Object>> getResponse();
}
| true |
afe9f0f75602f815565c41069217b34829f4c145 | Java | suomenriistakeskus/oma-riista-web | /src/main/java/fi/riista/feature/permit/area/CalculatePermitAreaUnionFeature.java | UTF-8 | 14,350 | 1.609375 | 2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package fi.riista.feature.permit.area;
import com.google.common.base.Stopwatch;
import fi.riista.feature.gis.OnlyStateAreaService;
import fi.riista.feature.gis.hta.GISHirvitalousalue;
import fi.riista.feature.gis.hta.GISHirvitalousalueRepository;
import fi.riista.feature.gis.verotuslohko.GISVerotusLohkoDTO;
import fi.... | true |
fcb65e0d0a09b8db444a22a8aeeda72c654b520c | Java | nadyadtm/VotingPegawaiTerbaik-TugasBesarSisfo | /TUBES Sisfo/src/View/ControllerHalamanPegawai.java | UTF-8 | 5,850 | 2.28125 | 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 View;
import Model.Aplikasi;
import Model.Polling;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
im... | true |
9c5cba8f41ce7ee3449f8c0f9ade27ea9695de69 | Java | BaoBaoJianqiang/HybridForAndroid | /app/src/main/java/com/example/jianqiang/hybridapp/MainActivity.java | UTF-8 | 9,940 | 1.960938 | 2 | [
"MIT"
] | permissive | package com.example.jianqiang.hybridapp;
import android.Manifest;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
import android.os.Message;
import android.support.annotation.Non... | true |
fb0f1e8b91230277556388cbb417a6e3c04269f4 | Java | Allenfedd/spring-cloud-microservice | /product-service/src/main/java/com/microweb/service/imple/ProductServiceImple.java | UTF-8 | 7,814 | 2.140625 | 2 | [] | no_license | package com.microweb.service.imple;
import com.microweb.enums.ProductStatusEnum;
import com.microweb.exception.NotFoundException;
import com.microweb.page.PageResult;
import com.microweb.product.entity.Product;
import com.microweb.product.entity.ProductSku;
import com.microweb.repository.ProductRepository;
import com.... | true |
c2d8730533dcf4fdf2db91ef3978041472f23601 | Java | Nylle/JavaFixture | /src/test/java/com/github/nylle/javafixture/testobjects/TestPrimitive.java | UTF-8 | 635 | 2.453125 | 2 | [
"MIT"
] | permissive | package com.github.nylle.javafixture.testobjects;
public class TestPrimitive {
public String publicField;
private String hello;
private int primitive;
private Integer integer;
public String getHello() {
return hello;
}
public void setHello(String hello) {
this.hello = hell... | true |
aca2f5bf4a4b6a565119a7918728786ab7eab104 | Java | cheese10yun/blog-sample | /mvc-study/src/main/java/yun/blog/mvc/config/PersonFormatter.java | UTF-8 | 425 | 2.609375 | 3 | [] | no_license | package yun.blog.mvc.config;
import org.springframework.format.Formatter;
import yun.blog.mvc.sample.Person;
import java.util.Locale;
public class PersonFormatter implements Formatter<Person> {
@Override
public Person parse(String name, Locale locale) {
return new Person(name, name);
}
@Ov... | true |
ff11cbc6c0d024b508a02c9390fbf91eb2f00201 | Java | naveenkrishnan01/Java8-Core-Examples | /src/com/java8/core/Algorithm/BubbleSort.java | UTF-8 | 1,051 | 4.125 | 4 | [] | no_license | package com.java8.core.Algorithm;
public class BubbleSort {
// Bubble sort you compatre the first element to next element
// if the first element is greater than next element, then next element is moved to temp variable
// the temp variable is noved to first element and the bigger element is moved to the... | true |
94c4fc06f63f8d50fabbba6ce049d2ff52c25db0 | Java | Abyannaufal/Drugstore_SQLite | /app/src/main/java/com/example/drugstore/MainActivity.java | UTF-8 | 3,814 | 2.09375 | 2 | [] | no_license | package com.example.drugstore;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view... | true |
b10d3378199f972857ef575dff465644f7d6e322 | Java | AiMiKidass/LostProject | /app/src/main/java/com/example/alex/newtestproject/utils/DateUtils.java | UTF-8 | 13,829 | 3.09375 | 3 | [] | no_license | package com.example.alex.newtestproject.utils;
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
public class DateUtils {
private static final String TAG = DateUtils.class.getSimpleName();
... | true |
81fce1a2199a1aac8a803a0fcf72961ec456bb39 | Java | Serathano/OOSWD-Term-Project | /src/model/LevelOne.java | UTF-8 | 2,982 | 3.0625 | 3 | [] | no_license | package model;
import controller.Main;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
public class LevelOne implements Level {
private int health;
private String name;
public int enemyCount;
private int points;
public final static List<Enemy> emptyLis... | true |
ddbb8674118d68d57bc5778b2680a7f018552214 | Java | skygst/Demo | /testFragAndVP/src/com/gst/move/test_demo/ProgressBarActivity.java | UTF-8 | 998 | 2.21875 | 2 | [] | no_license | package com.gst.move.test_demo;
import android.os.Bundle;
import android.widget.ProgressBar;
import com.ebodoo.raz.BaseActivity;
import com.gst.move.R;
import com.gst.move.custom.SpringProgressView;
/**
* Created by gst-pc on 2016/9/8.
*/
public class ProgressBarActivity extends BaseActivity {
private SpringP... | true |
2e647efa8f565c8af8431625b92613afc0d241e1 | Java | wuyangwu/openjudge-noi | /src/com/juc1205/day22/DAO.java | UTF-8 | 454 | 2.6875 | 3 | [] | no_license | package com.juc1205.day22;
/**
* @author wuyang
* @version 1.0
* @date 2021/3/10 15:39
*
* DAO: data(base) access object
* 将操作数据库中表的常用操作(CRUD)声明在此类中
*/
public class DAO<T> {
//添加
public void add(T t){
}
//删除
public T delete(int id){
return null;
}
public void update(int i... | true |
41c966e589ec9c94e55236ac854ca9f81fcd4126 | Java | magnorion/FIAP | /JAVA/exercicios_2/src/br/com/fiap/main/Main.java | UTF-8 | 3,694 | 3.78125 | 4 | [] | no_license | package br.com.fiap.main;
import javax.swing.JOptionPane;
import br.com.fiap.exercicios.Calculadora;
public class Main {
public static void main(String[] args) throws NumberFormatException, Exception {
String num1, num2;
Calculadora calc = new Calculadora();
// soma
try {
num1 = JOptionPane.showInputD... | true |
2b26a3f0146451fb7f27ac4bcae480b7abe943a6 | Java | VascoGithub/Hacktivist | /src/ex04/ex04.java | UTF-8 | 1,168 | 3.4375 | 3 | [] | no_license | package ex04;
public class ex04 {
static int x1;
static int x2;
static int x3;
static int y1;
static int y2;
static int y3;
public static void main(String[] args) {
int[][] values = {{1,1},{2,3},{3,2}};
// x1 = 1 x2 = 2 x3 = 3
// y1 = 1 y2 = 3 y3 = 2
System.... | true |
0386decc01c3803ff542dec5174da05278733859 | Java | MounaMahfoudh/ABAS | /src/main/java/com/abas/spiel/common/Avatar.java | UTF-8 | 998 | 3.109375 | 3 | [] | no_license | package com.abas.spiel.common;
import java.util.Arrays;
import java.util.Collections;
import java.util.EnumSet;
import java.util.List;
import java.util.Random;
public enum Avatar {
CAT, DOG, OWL;
/**
* Returns a random value for Player different from parameter sPlayer
*
* @param sPlayer
* @return
*/
pu... | true |
db890c28a64522d121db3c81ee3814c98a72db53 | Java | hipema/javaFX | /src/fxmlEjemplos/Ej09LoginControlador.java | UTF-8 | 992 | 2.5 | 2 | [] | no_license | package fxmlEjemplos;
/**
* Controlador-vista para los eventos de Ej09Login.
*
*/
import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.PasswordField;
import javafx.scene.control.TextField;
impo... | true |
d391d0d2de81f9c7ed9b4fb5dfd552becf8076ad | Java | stangadkar/TaskTracker | /src/main/java/net/vrfun/tasktracker/security/LdapConfiguration.java | UTF-8 | 2,539 | 1.9375 | 2 | [
"MIT"
] | permissive | /*
* Copyright (c) 2020 by Botorabi. All rights reserved.
* https://github.com/botorabi/TaskTracker
*
* License: MIT License (MIT), read the LICENSE text in
* main directory for more details.
*/
package net.vrfun.tasktracker.security;
import org.slf4j.*;
import org.springframework.beans.factory.annotati... | true |
2c3b94ef422386395496fe1fb61ffdf97c54e49c | Java | upost/zapp | /app/src/main/java/de/christinecoenen/code/zapp/app/about/ui/AboutActivity.java | UTF-8 | 2,037 | 1.945313 | 2 | [
"MIT"
] | permissive | package de.christinecoenen.code.zapp.app.about.ui;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import androidx.annotation.NonNull;
import com.mikepenz.aboutlibraries.Libs;
import com.mikepenz.aboutlibraries.LibsBuilder;
import com.mikepenz.aboutl... | true |
0be1cf7eb35184055831cf88bda3d52d6e351e7c | Java | Jessx3x3/Java | /MaestroObjetos_2/src/Samurai.java | ISO-8859-1 | 677 | 3.515625 | 4 | [] | no_license |
public class Samurai extends Human{
int cont=0;
public Samurai(String nombre) {
super(nombre);
int health = 200;
this.setHealth(health);
cont++;
}
public Samurai() {
cont++;
}
public int getCont() {
return cont;
}
public void deathBlow(Human human) {
System.out.println("El participante: ... | true |
cf0b973e026c8e0ec7e4bbfc69971895ef9900c8 | Java | oxoloquiqui/BeAnArtiste | /test/fr/eseo/poo/projet/artiste/vue/formes/VueCercleTest.java | UTF-8 | 1,398 | 2.65625 | 3 | [] | no_license | package fr.eseo.poo.projet.artiste.vue.formes;
import java.awt.Color;
import java.awt.Container;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import fr.eseo.poo.projet.artiste.modele.Coordonnees;
import fr.eseo.poo.projet.artiste.modele.formes.Cercle;
import fr.eseo.poo.projet.artiste.vue.ihm.Pannea... | true |
67d5825bb878f0d8561843f6d668b428ccbd622d | Java | jordantorres/rsafgsfgdgdsafsdafdsgdsghhjffdfa | /sistemacolegionsr/src/java/com/pe/colegio/nsr/dao/ObservacionDaoImpl.java | UTF-8 | 1,969 | 2.578125 | 3 | [] | no_license | package com.pe.colegio.nsr.dao;
import com.pe.colegio.nsr.bean.Observacion;
import com.pe.colegio.nsr.util.DBConn;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
public class Observac... | true |
ce9d831cb682199c83960de00e38e813d9f81487 | Java | stiga-huang/bitcoin-analysis | /src/main/java/cn/edu/pku/hql/bitcoin/InfomallReader.java | UTF-8 | 3,091 | 2.734375 | 3 | [] | no_license | package cn.edu.pku.hql.bitcoin;
import java.io.*;
import java.util.zip.DataFormatException;
import java.util.zip.Inflater;
/**
* Created by huangql on 12/15/16.
*/
public class InfomallReader implements AutoCloseable {
public static String WEB_PAGES_ENCODING = "GBK";
private InputStream in;
public In... | true |
26dedd5f17fbe4e450b265992f5e3134ca2c1d93 | Java | GvidsTV/102_Competency_Report | /CR/Animal.java | UTF-8 | 659 | 3.75 | 4 | [] | no_license |
public class Animal {
//atributes
public String name;
public String type;
//constructor
public Animal(String name, String type){
this.name=name;
this.type=type;
}
public void printAnimal(){
System.out.println("********************");
... | true |
6910d202fad28ec21730f6fd51f71f31ff1f90b5 | Java | Tec-Pro/Tik | /AdminTik/src/gui/providers/GuiTicketDetails.java | UTF-8 | 9,367 | 2.03125 | 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 gui.providers;
/**
*
* @author joako
*/
public class GuiTicketDetails extends javax.swing.JDialog {
/**
* Creates... | true |
e596771734616c20bdeaecf117beffe98c7f10eb | Java | Neusita/AdaptadorconObjeto | /app/src/main/java/nk/com/adaptadorconobjeto/MainActivity.java | UTF-8 | 1,800 | 2.515625 | 3 | [] | no_license | package nk.com.adaptadorconobjeto;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import java.util.Arra... | true |
705962ba58d839f7957da312d704981e7c32fc65 | Java | mansuri90/request-validator | /src/main/java/com/theadex/requestvalidator/repository/BlockedIpRepository.java | UTF-8 | 1,779 | 2.1875 | 2 | [] | no_license | package com.theadex.requestvalidator.repository;
import com.theadex.requestvalidator.domain.BlockedIP;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepo... | true |
dfe1d159936102f5a0f989a4ef42bd2b1fc5d84d | Java | git-karthik/tech-gig | /src/com/demo/exercises/ModalNumber.java | UTF-8 | 1,459 | 3.46875 | 3 | [] | no_license | package com.demo.exercises;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Collections;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Optional;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.st... | true |
a2b10cda5295611b560a575ad9ca66af8786be9f | Java | cch0/spring-boot-distributed-tracing-with-jaeger | /payment-service/src/main/java/com/demo/payment/model/PaymentInfo.java | UTF-8 | 271 | 1.789063 | 2 | [] | no_license | package com.demo.payment.model;
import com.demo.payment.client.model.CreditInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.util.Date;
@Data
@AllArgsConstructor
public class PaymentInfo {
long id;
Date date;
CreditInfo creditInfo;
}
| true |
d852891430f0922815186de0e5f4a45fca5af0e4 | Java | gvivies/spring-boot-cave | /src/main/java/com/gvivies/cave/controllers/LoginController.java | UTF-8 | 2,662 | 2.203125 | 2 | [] | no_license | package com.gvivies.cave.controllers;
import java.util.ArrayList;
import java.util.Collection;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframewor... | true |
98575a40cf83034e89f780d8da83f6ad66b37fd7 | Java | marekmuratow/spring-boot2-jdbctemplate | /src/main/java/pl/entito/demo/Customer.java | UTF-8 | 469 | 2.546875 | 3 | [] | no_license | package pl.entito.demo;
import lombok.Data;
@Data
public class Customer {
final private long id;
final private String firstName;
final private String lastName;
public Customer(long id, String firstName, String lastName) {
this.id = id;
this.firstName = firstName;
this.lastName = lastName;
... | true |
9cff45cfcfc1950cc570bac1fc3b18f08bb15dee | Java | fpetruschke/simpleGuiHelper | /src/simpleGuiHelper/GetGlobal.java | UTF-8 | 1,419 | 2.921875 | 3 | [] | no_license | package simpleGuiHelper;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Map;
import java.util.Properties;
public class GetGlobal {
public static Map<String,String>properties = new Hashtable<String,St... | true |
a599749497a36d7c7b64db5021ec61e508ff7c48 | Java | ufarooq/IPFSLite | /app/src/main/java/threads/server/fragments/NameDialogFragment.java | UTF-8 | 6,813 | 1.890625 | 2 | [
"Apache-2.0"
] | permissive | package threads.server.fragments;
import android.annotation.SuppressLint;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.os.SystemClock;
import android.text.Editable;
import android.text.InputFilter;
import android.text.TextWa... | true |
52b948d38902bd182b6d8d280ccba28f201edf18 | Java | taohyson/SERVER-1 | /game-common/src/main/java/com/cai/common/util/Lifecycle.java | UTF-8 | 275 | 2.21875 | 2 | [] | no_license | package com.cai.common.util;
/**
*
* @author wu_hc
*/
public interface Lifecycle {
/**
* 启动
*/
void start() throws Exception;
/**
* 停止
*/
void stop() throws Exception;
/**
*
* @return
*/
default boolean isRunning() {
return true;
};
}
| true |
7defc9788366769c32fee7e9daf7f8001c0b0b29 | Java | mdcoolcat/karibu-mobile | /src/org/karibu/CustomPinPoint.java | UTF-8 | 882 | 2.609375 | 3 | [] | no_license | package org.karibu;
import java.util.ArrayList;
import android.content.Context;
import android.graphics.drawable.Drawable;
import com.google.android.maps.ItemizedOverlay;
import com.google.android.maps.OverlayItem;
public class CustomPinPoint extends ItemizedOverlay {
private ArrayList<OverlayItem> pinPoints = ne... | true |
93d8b588e95e40391f1968fdad3a56c722d3b5cb | Java | sushilsharma77/JavaBasic | /src/com/homework/class4/Repl201.java | UTF-8 | 557 | 2.984375 | 3 | [] | no_license | package com.homework.class4;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
public class Repl201 {
public static void main(String[] args) {
Map<String, String>entry=new HashMap<>();
entry.put("Street", "Patrick ST");
entry.put("Suite", "265");
entry.put("... | true |
448d637f84842d959d93f0978d991273c7838941 | Java | merlinvarghese/twvpsi-p3-e1 | /src/test/com/tw/vapasi/RectangleTest.java | UTF-8 | 1,894 | 3.0625 | 3 | [] | no_license | package com.tw.vapasi;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
class RectangleTest {
@Nested
static class Rectangletest {
@Test
void expectAreaIs200ForLength20andWidth10() {
Rectangle rectangle = Rectangle.crea... | true |
d95151a6447aa4340f86ea2d9b005d24fa379027 | Java | Parker-Student/1011-Labs | /Labs1011/src/week08/ParkingLot.java | UTF-8 | 1,546 | 3.34375 | 3 | [] | no_license | /*
*Course: CS1011-051
*Fall 2020-2021
*File header contains class ParkingLot
*Name: Parker
*Created 10/29/2020
*/
package week08;
/*
* Course CS1011-051
* Fall 2020-2021
* ParkingLot purpose:
* @author Parker
* @version created on 10/29/2020 at 10:56 AM
*/
public class ParkingLot {
private Strin... | true |
5be67dbb301b53271bd693992afb5eed9057e71a | Java | venkat-developer/FeetVTS | /prj/tests/selenium/src/java/com/i10n/fleet/selenium/tests/widgets/GraphReportSeleniumTest.java | UTF-8 | 1,341 | 2.109375 | 2 | [] | no_license | package com.i10n.fleet.selenium.tests.widgets;
import org.junit.After;
import org.junit.Test;
import com.i10n.fleet.selenium.tests.AbstractFleetSeleneseTestCase;
import com.thoughtworks.selenium.Wait;
public class GraphReportSeleniumTest extends AbstractFleetSeleneseTestCase {
private static final String VIEW_U... | true |
8635c3441323ba16a68a2590a071a41c9a053662 | Java | kuali/rice | /rice-middleware/it/kew/src/test/java/org/kuali/rice/kew/postprocessor/PostProcessorTest.java | UTF-8 | 13,710 | 1.78125 | 2 | [
"Artistic-1.0",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"EPL-1.0",
"CPL-1.0",
"LGPL-2.1-or-later",
"BSD-3-Clause",
"LGPL-3.0-only",
"ECL-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-jdom",
"LicenseRef-scancode-freemarker",
"LicenseRef-scancode-unk... | permissive | /**
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ecl2.php
*
* Unless required by a... | true |
42e2e71561effddcc03ee887712c24abe48b84cb | Java | RyanTorok/insession | /src/classes/ClassPd.java | UTF-8 | 6,572 | 1.992188 | 2 | [] | no_license | package classes;
import localserver.IDAllocator;
import gui.SidebarHotLink;
import javafx.scene.paint.Color;
import main.*;
import net.PostEngine;
import org.json.JSONObject;
import searchengine.Identifier;
import searchengine.Indexable;
import searchengine.RankedString;
import java.awt.event.ActionEvent;... | true |
3fc984cb3a92a0cd5eab10343e4472408711ea79 | Java | arunnayan/IP_questionSet | /hnh/Aditya/string_subsequence_game.java | UTF-8 | 1,029 | 3.3125 | 3 | [] | no_license | package may29;
import java.util.Scanner;
public class string_subsequence_game {
static int count=0;
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
int t = scn.nextInt();
for (int i = 0; i < t; i++) {
String ques = scn.next();
count=0;
allvalidsu... | true |
737c3560b631c5d05e96e45f701e1638a0e031c1 | Java | jfcorugedo/algorithms | /algorithm-basic/src/main/java/com/jfcorugedo/algorithm/dinamicsearch/WeightedQuickUnion.java | UTF-8 | 4,097 | 3.65625 | 4 | [
"MIT"
] | permissive | package com.jfcorugedo.algorithm.dinamicsearch;
import java.util.Arrays;
import java.util.stream.IntStream;
/**
* <p>
* This is a implementation of quick-union algorithm using an improvement called Weighted
* </p>
*
* <p>
* Whenever a connected components (trees) must be merged into another, it takes into acco... | true |
a38b8fe3d39a7521b2e67ab41171bc64b0ec6325 | Java | godadef/gmall | /gmall-parent/gmall-manage-web/src/main/java/com/gec/gmall/manage/controller/BaseSaleAttrController.java | UTF-8 | 758 | 1.867188 | 2 | [] | no_license | package com.gec.gmall.manage.controller;
import com.alibaba.dubbo.config.annotation.Reference;
import com.gec.gmall.manage.bean.PmsBaseSaleAttr;
import com.gec.gmall.manage.service.BaseSaleAttrService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import ... | true |
9cadeebcfda35b2b08e5b3bb8f68c484b93e070b | Java | titanmet/JavaSchoolSber | /lesson7_ClassLoaders/src/main/java/com/ratnikov/classloader/PluginClassLoader.java | UTF-8 | 2,144 | 2.765625 | 3 | [] | no_license | package com.ratnikov.classloader;
import com.ratnikov.classloader.plugins.Plugin;
import java.io.File;
import java.io.FileFilter;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
public class PluginClassLoader {
public static File[] jars;
public static Class[] plugi... | true |
3034ae4eb740110d35a221c8d93312956b5afd30 | Java | kamkhan1/serve | /Fms/src/com/cg/service/ServiceParticipant.java | UTF-8 | 702 | 1.882813 | 2 | [] | no_license | package com.cg.service;
import com.cg.bean.FeedbackMaster;
import com.cg.dao.DAOParticipant;
import com.cg.dao.IDAOParticipant;
public class ServiceParticipant implements IServiceParticipant {
IDAOParticipant dao= new DAOParticipant();
@Override
public Boolean validate(int id) {
return dao.valida... | true |
a88a175e245fb2ee3fab4f4ae12ec81f007774e1 | Java | cbq3737/JavaStudy | /Chapter5/src/ch05/MyLinkedQueue.java | UTF-8 | 1,465 | 3.9375 | 4 | [] | no_license | package ch05;
import ch03.MyLinkedList;
import ch03.MyListNode;
interface Queue {
public void enQueue(String data);
public String deQueue();
public void printQueue();
}
//기존에 만들어놨던 연결리스트 상속받아옴.
public class MyLinkedQueue extends MyLinkedList implements Queue {
MyListNode front;//맨 앞
MyListNode rear;//맨 뒤
@... | true |
9a53a2cf77678c7224a6a85603399f02ae965f81 | Java | paucls/katas | /20190211-java-bowling-game/src/test/java/com/katas/BowlingGameTest.java | UTF-8 | 1,178 | 2.84375 | 3 | [] | no_license | package com.katas;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.util.Lists.list;
public class BowlingGameTest {
@Test
public void should_have_score_0_when_all_gutter_balls() {
BowlingGame game = new BowlingGame(list(0, 0, 0, 0, 0, 0, ... | true |
51af48d23447056da21b196d81eee736c579134d | Java | ejatkdml/jsp | /webnovel/src/bean/Novel_TagBean.java | UTF-8 | 285 | 2.046875 | 2 | [] | no_license | package bean;
public class Novel_TagBean {
private int n_id;
private int t_id;
public int getN_id() {
return n_id;
}
public void setN_id(int n_id) {
this.n_id = n_id;
}
public int getT_id() {
return t_id;
}
public void setT_id(int t_id) {
this.t_id = t_id;
}
}
| true |
61719500e9ee87fc5b7d2a93a674905750215c88 | Java | luthinoa/NewOyster | /src/com/tfl/billing/GetCardReadersData.java | UTF-8 | 2,626 | 2.84375 | 3 | [] | no_license | package com.tfl.billing;
import com.oyster.OysterCardReader;
import com.oyster.ScanListener;
import com.tfl.external.CustomerDatabase;
import java.util.*;
public class GetCardReadersData implements ScanListener {
/*
This class is in charge of connecting the card readers, and getting data from them by creati... | true |
8f3b5a39020193899c50781f7e46316b7f0e2b69 | Java | zengxiangbin/javacore | /src/com/wpx/demo15/Demo02.java | GB18030 | 1,479 | 3.671875 | 4 | [] | no_license | package com.wpx.demo15;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
/**
*
*
ַ:
---------| Reader ַĻࡣ ࡣ
----------------| FileReader ȡļݵַ
----------------| BufferedReader ַ
ֵĿΪ߶ȡļݵЧչFileReader(readLine)ܡ Ҳֻڲάһ8kbַѡ
* @... | true |
5611edb65ef6f21cfd3a5d37395bd0226d92c240 | Java | anne-other/themepark_polymorphism_homework | /src/main/java/rides/Ride.java | UTF-8 | 599 | 3.125 | 3 | [] | no_license | package rides;
public abstract class Ride {
private String name;
private double price;
private int minAge;
private double minHeight;
public Ride(String name, double price, int minAge, double minHeight){
this.name = name;
this.price = price;
this.minAge = minAge;
th... | true |
d0c42fe5fb331654f118a734dd755a43bb09d5f1 | Java | RushiBel/CRS_Project | /app/src/main/java/com/orendasoftware/crs/domain/data/api_model/Quarantine.java | UTF-8 | 2,450 | 1.671875 | 2 | [] | no_license | package com.orendasoftware.crs.domain.data.api_model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import java.util.Date;
public class Quarantine implements Serializable {
@SerializedName("id")
@Expose
public Integer id;
@... | true |
2c48ac5b51e6219ff7a1953da1698d892dfa4b89 | Java | azbjx5288/nvwang | /app/src/main/java/com/neinei/cong/module/AbsModuleActivity.java | UTF-8 | 3,585 | 2.03125 | 2 | [] | no_license | package com.neinei.cong.module;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.neinei.cong.R;
import com.neinei.cong.ba... | true |
9baa3a4a5075c7832e2694034819cda0d9c6e3e1 | Java | eutic/the_beer | /board_final/src/member/controller/ModifyServlet.java | UTF-8 | 1,200 | 2.328125 | 2 | [] | no_license | package member.controller;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import member.service.MemberServiceIm... | true |
aa3e1cb397ad04fc7d273702d5d8fd1b630c335a | Java | zhoudaifa007/learn-Java | /com.zhou.daqin.jueqi.alibaba/src/main/java/com/zhou/daqin/jueqi/alibaba/leetcode/Leetcode0297.java | UTF-8 | 2,953 | 3.046875 | 3 | [] | no_license | package com.zhou.daqin.jueqi.alibaba.leetcode;
import com.zhou.daqin.jueqi.alibaba.common.TreeNode;
import java.util.Arrays;
import java.util.Deque;
import java.util.LinkedList;
import java.util.Queue;
// https://www.youtube.com/watch?v=OtqN9siio0g&t=622s&ab_channel=AndroidBabies%E5%AE%89%E5%8D%93%E5%A4%A7%E5%AE%9D%... | true |
7df57ef666c97c4fa002a064dc660dfdd78ca27c | Java | BMJLearnToHelloWorld/bmjline-springcloud | /blog-server/src/main/java/com/bmjline/blogserver/utils/DateTimeTypeHandler.java | UTF-8 | 1,660 | 2.4375 | 2 | [] | no_license | package com.bmjline.blogserver.utils;
import org.apache.ibatis.type.JdbcType;
import org.apache.ibatis.type.MappedJdbcTypes;
import org.apache.ibatis.type.MappedTypes;
import org.apache.ibatis.type.TypeHandler;
import org.joda.time.DateTime;
import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import... | true |
6c0c0fe8031f2e041cd88003266a49aec78320dd | Java | sgs98/songvhr | /vhr/vhrserver/vhr-service/src/main/java/com/song/vhr/service/EmpMoveService.java | UTF-8 | 1,058 | 1.828125 | 2 | [] | no_license | package com.song.vhr.service;
import com.song.vhr.mapper.EmployeeremoveMapper;
import com.song.vhr.model.Employeeremove;
import com.song.vhr.model.RespPageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;
... | true |