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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d27b902a0b40b236391f702583a0a174e49a5625 | Java | uralalanya/bpl-wfm-server | /wfm-query/src/main/java/com/bplsoft/wfm/model/UserModel.java | UTF-8 | 1,430 | 2.21875 | 2 | [] | no_license | package com.bplsoft.wfm.model;
import com.bplsoft.common.model.BaseModel;
import javax.persistence.*;
@Entity
@Table(name = "USER_MODEL")
public class UserModel extends BaseModel<Integer> {
@Id
@GeneratedValue(strategy = GenerationType.AUTO, generator = "UM_SEQ")
@SequenceGenerator(name = "UM_SEQ", sequ... | true |
b828e73bdc746ebab33b1519c62dc5a5513bb884 | Java | mjschaub/chess-game | /src/board/GameFrame.java | UTF-8 | 3,936 | 3.1875 | 3 | [] | no_license | package board;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.sw... | true |
3c0d8f25a6e4b61146fa63eac4a16c9316a93905 | Java | zjnktion/json | /src/cn/zjnktion/json/model/JsonPrimary.java | UTF-8 | 425 | 2.296875 | 2 | [] | no_license | package cn.zjnktion.json.model;
/**
* @author zjnktion
*/
public class JsonPrimary implements Json, JsonValue {
private String value;
public JsonPrimary(String value) {
this.value = value;
}
public String getValue() {
return value;
}
public void setValue(String value) {
... | true |
71625453b17ca9e585b0d41628fb65b26281a053 | Java | 4l3x4ndre/airforce | /app/src/main/java/com/example/alexandre/tabbedairforce/Constantes.java | UTF-8 | 363 | 1.507813 | 2 | [] | no_license | package com.example.alexandre.tabbedairforce;
public class Constantes {
// voir si tu utilises les constantes ici présentes ou si tu veux passer par les
// sharedPreferences au autre chose
// j'ai préféré les constantes, l'accès y est plus rapide
public static String alt;
public static String qnh... | true |
9c49f9ade89ee9a85427836196704640d6571732 | Java | bobbyfengb1124/RabbitMQ-Maven | /src/main/java/Constants.java | UTF-8 | 358 | 1.6875 | 2 | [] | no_license | class Constants {
static final String PASSWORD = "admin";
static final String USER_NAME = "admin";
static final String VIRTUAL_HOST = "/";
static final int PORT = 5672;
final static String EXCHANGE_NAME = "SIMPLE_EXCHANGE";
final static String QUEUE_NAME = "SIMPLE_QUEUE";
static final Strin... | true |
d34bc778e5a3fc515601efbc0a06cd56092c31d9 | Java | garryInWeb/spring_wheel | /litespring/src/test/java/org/litespring/text/v7/ApplicationTestV7.java | UTF-8 | 834 | 1.945313 | 2 | [] | no_license | package org.litespring.text.v7;
import org.junit.Test;
import org.litespring.context.ApplicationContext;
import org.litespring.context.support.ClassPathXmlApplicationContext;
import org.litespring.service.v7.PetStoreService;
import javax.sql.DataSource;
import java.sql.SQLException;
/**
* Created by zhengtengfei on... | true |
1dc75a14c46cac249606761e6c3e2418b0015bfc | Java | naitik270/MyApp | /app/src/main/java/com/demo/nspl/restaurantlite/Navigation_Drawer/HomeFragment.java | UTF-8 | 1,608 | 2.125 | 2 | [] | no_license | package com.demo.nspl.restaurantlite.Navigation_Drawer;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.demo.nspl.restaurantlite.ErrorLog.ErrorExceptionHandler... | true |
69ea384905318d3257f24550a0325f221e203745 | Java | MusicAdam/Eugene | /eug-shared/src/com/gearworks/eug/shared/exceptions/EntityBuildException.java | UTF-8 | 213 | 1.96875 | 2 | [] | no_license | package com.gearworks.eug.shared.exceptions;
public class EntityBuildException extends Exception {
private static final long serialVersionUID = 1;
public EntityBuildException(String msg){
super(msg);
}
} | true |
23d1cb026f304ebfe54d7ba5c413beae4dee4cee | Java | zamedic/morse-sftpssh | /src/main/java/com/marcarndt/morse/command/commandlets/sftpfile/CompleteAddFile.java | UTF-8 | 1,235 | 2.375 | 2 | [] | no_license | package com.marcarndt.morse.command.commandlets.sftpfile;
import com.marcarndt.morse.MorseBot;
import com.marcarndt.morse.command.commandlet.Commandlet;
import com.marcarndt.morse.service.SSHService;
import com.marcarndt.morse.telegrambots.api.objects.Message;
import java.util.List;
import javax.ejb.Stateless;
import ... | true |
d43583df367c54ce310032d631b123a4e3a4d114 | Java | 1342190832/youbenben | /bizcore/WEB-INF/youbenben_core_src/com/youbenben/youbenben/payingoff/PayingOffManager.java | UTF-8 | 3,128 | 1.648438 | 2 | [] | no_license |
package com.youbenben.youbenben.payingoff;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;
import com.terapico.caf.DateTime;
import com.terapico.caf.Images;
import com.youbenben.youbenben.YoubenbenUserContext;
import com.youbenben.youbenben.BaseEntity;
import com.youbenben.youbenben.BaseManag... | true |
2a3e851f433c0180e08cef887674ee51dc31c8b9 | Java | JorgeRebelo/iHouse | /src/org/academiadecodigo/enuminatti/ihouse/server/model/ReadWrite.java | UTF-8 | 1,124 | 2.625 | 3 | [] | no_license | package org.academiadecodigo.enuminatti.ihouse.server.model;
import java.io.*;
/**
* Created by codecadet on 14/11/17.
*/
public class ReadWrite {
public void write(String content, String filepath) {
FileWriter fileWriter;
try {
fileWriter = new FileWriter(filepath);
... | true |
23cc2d91ad5c66f272353e6da4fbb25b2f64c0ad | Java | polinankoleva/BigDataQuerying | /exSheet3/PageRank/src/main/java/ex1c/FriendsOfUserRetrievalReducer.java | UTF-8 | 2,585 | 3.46875 | 3 | [] | no_license | package ex1c;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;
/**
* One reducer per each user. It formats all friends of an user in a list as
* (user1, user2, ....). The output is just a user mapped to ... | true |
14bd260ee2a51e9814cd14aee7cfd8283bf36cf7 | Java | richardrodgers/mds | /webapi/src/main/java/org/dspace/webapi/content/ContentResource.java | UTF-8 | 19,512 | 2.015625 | 2 | [
"MIT"
] | permissive | /**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.webapi.content;
import java.io.IOException;
import java.io.InputStream;
import java... | true |
37f24e6a07113ba4feb382c1b9ee14d70e4c0fdf | Java | Nick-Brooks21/UserBBQMenu | /src/controller/addItemServlet.java | UTF-8 | 1,256 | 2.390625 | 2 | [] | no_license | package 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 model.FoodList;
/**
* Servlet implementation c... | true |
9017ce35b66c8b1415ad35e2a29fbee8501685bd | Java | keyking-coin/code | /other/src/com/joymeng/slg/net/handler/impl/OpenBagHandler.java | UTF-8 | 1,346 | 2.046875 | 2 | [] | no_license | package com.joymeng.slg.net.handler.impl;
import com.joymeng.common.util.MessageSendUtil;
import com.joymeng.log.NewLogManager;
import com.joymeng.services.core.buffer.JoyBuffer;
import com.joymeng.services.core.message.JoyNormalMessage.UserInfo;
import com.joymeng.services.core.message.JoyProtocol;
import com.joymeng... | true |
55d133f78f9847f45af2ef8b8b4d3189c9c337f1 | Java | TulipSxL/toolbox | /src/main/java/cn/sxl/toolbox/repository/HsHeroRepository.java | UTF-8 | 477 | 2.046875 | 2 | [
"MIT"
] | permissive | package cn.sxl.toolbox.repository;
import cn.sxl.toolbox.entity.HsHero;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
/**
* @author SxL
* @since 1.7.0
* 2020-01-09 15:07
*/
public interface HsHeroRepository extends JpaRepository<HsHero, Integer> {
/**
* 获取所有在线或下线... | true |
07de9a29dadd9bab1b6bfa46d448e87838b00a09 | Java | alexeyglazov/kronos | /src/java/com/mazars/management/reports/InvoicingProcessReport.java | UTF-8 | 13,753 | 1.773438 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.mazars.management.reports;
import com.mazars.management.db.comparators.CurrencyComparator;
import com.mazars.management.db.domain.Client;
import com.mazars.management.db.domain.Country;
import com.mazars.man... | true |
4df09b1043735d40a20dc811cef895518abaedb9 | Java | yahier/ExSt | /app/src/main/java/yahier/exst/adapter/DongtaiAddBusinessCardAdapter.java | UTF-8 | 4,418 | 2.1875 | 2 | [] | no_license | package yahier.exst.adapter;
import android.content.Context;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.stbl.stbl.R;
im... | true |
50504b42b5bd4d3846acb6a746129757b12cc52e | Java | RimasTr/sprouts | /src/uk/ac/ed/inf/sprouts/bruteforcers/ImprovedMoveBruteforcer.java | UTF-8 | 5,223 | 2.875 | 3 | [] | no_license | package uk.ac.ed.inf.sprouts.bruteforcers;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Random;
import java.util.Set;
import uk.ac.ed.inf.sprouts.external.AllMovesGenerator;
import uk.ac.ed.inf.sprouts.external.Game;
import uk.ac.ed.inf.sprouts.external.Move;
import uk... | true |
c323dac1b99ba5ca67317e689f78f280ded7e727 | Java | xwtflydream/spring | /netty-demo/monitor-manger/src/main/java/com/zykx/monitor/manager/controller/ServerMonitorLogController.java | UTF-8 | 1,113 | 1.953125 | 2 | [] | no_license | package com.zykx.monitor.manager.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zykx.monitor.manager.entity.ServerInfo;
import com.zykx.monitor.manager.entity.ServerMonitorLog;
import com.zykx.monitor.manager.service.ServerInfoService;
import com.zykx.monitor.manager.service.... | true |
02e53a8921f2178796e78f0dbc4b2d8c948509b8 | Java | smartatone/smartatone-study | /smartatone-practice/smartatone-practice-spring/src/main/java/com/smartatone/BeanFactoryPostProcessPractice/v2_complicateProperty/test4/MyConsumerBean.java | UTF-8 | 634 | 2.28125 | 2 | [] | no_license | package com.smartatone.BeanFactoryPostProcessPractice.v2_complicateProperty.test4;
import java.util.Properties;
import org.springframework.beans.factory.InitializingBean;
import com.smartatone.BeanFactoryPostProcessPractice.v2_complicateProperty.ConsumerBean;
public class MyConsumerBean extends ConsumerBean impleme... | true |
a9b7c2c6c00e781b267a090ab1a81da580554784 | Java | nevella/alcina | /framework/entity/src/cc/alcina/framework/entity/MetricLoggingBase.java | UTF-8 | 4,994 | 1.890625 | 2 | [] | no_license | /*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed... | true |
0915eaf5b149ed8e96d497089a235e4bdfd62787 | Java | hectorroberto/treinamentos | /JavaSE/src/marcosBrizeno/chainofrespon/BancoC.java | UTF-8 | 332 | 2.546875 | 3 | [] | no_license | package marcosBrizeno.chainofrespon;
public class BancoC extends BancoChain {
public BancoC() {
super(IDBancos.bancoC);
}
@Override
protected void efetuaPagamento() {
System.out.println("Pagamento efetuado no banco C");
}
@Override
protected void quemSou() {
System.out.println("Sou Banco C"... | true |
4dacb2c486ee864b9b512dc06c95faa529e189f0 | Java | chldbwjd70/jobadream | /jobadream/src/main/java/edu/kh/job/chat/websocket/ChatWebSocketHandler.java | UTF-8 | 4,321 | 2.5625 | 3 | [] | no_license | package edu.kh.job.chat.websocket;
import java.text.SimpleDateFormat;
import java.util.Collections;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.socket.CloseStatus;
import org.springframework.web.so... | true |
1718e8d8462310b8c51f68f42ee77814c9794235 | Java | sanrinconr/learningSpring | /5- POO/src/com/bankAccount/CuentaCorriente.java | UTF-8 | 1,359 | 3.171875 | 3 | [] | no_license | package com.bankAccount;
public class CuentaCorriente {
private String nombre;
private String numero;
private double saldo;
public CuentaCorriente(CuentaCorriente cuenta){
this.nombre = cuenta.nombre;
this.numero = cuenta.numero;
this.saldo = cuenta.saldo;
}
public Cue... | true |
3da091d9228a5148dfa3e503dc564b494c402c6b | Java | hhzhang333/OpenStack-shen | /src/main/java/cn/edu/seu/openstack/dao/WholeCpuLoadDao.java | UTF-8 | 230 | 1.625 | 2 | [] | no_license | package cn.edu.seu.openstack.dao;
import cn.edu.seu.openstack.domain.WholeCpuLoad;
import java.util.List;
/**
* Created by a on 2018/3/7.
*/
public interface WholeCpuLoadDao {
public List<WholeCpuLoad> selectCpuLoad();
}
| true |
9000f53af19a0edb78a9820b783614d72c670300 | Java | joey-yoonsung/spring-boot-web-dev | /ch02/src/main/java/filter/FilterEx.java | UTF-8 | 951 | 2.34375 | 2 | [] | no_license | package filter;
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.WebFilter;
@WebFilter("*.jsp"... | true |
6754eb26724bad06217fe960623450e1c89350c2 | Java | joubamatrix/maxasin-app | /maxasin-domain/src/main/java/com/project/maxasin/client/Ventes.java | UTF-8 | 1,559 | 2.234375 | 2 | [] | no_license | package com.project.maxasin.client;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
@Entity
public class Ventes {
@Id
... | true |
0c697029669fe677cb4130dd36591d4c53adce88 | Java | ignoumania/MTBS | /src/main/java/com/mtbs/reservation/BlockedSeatRepository.java | UTF-8 | 428 | 1.914063 | 2 | [
"MIT"
] | permissive | package com.mtbs.reservation;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import com.mtbs.models.BlockedSeat;
public interface BlockedSeatRepository extends CrudRepository<BlockedSeat, Integer> {
int countByUserId(int userId);
@Query(nati... | true |
d050efd852582dc743ac67ee93c4b3ce7b52e286 | Java | Explorer1092/biubiubiu | /framwork/WeTest/target/test-classes/com/weibo/global/JsonCommon.java | UTF-8 | 3,826 | 2.359375 | 2 | [] | no_license | package com.weibo.global;
import java.io.IOException;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.core.JsonParser.Feature;
import com.fasterxml.jackson.databind.DeserializationFeature;
import co... | true |
33bac9ce1bacb0faecef601a2a2b925486d0fc74 | Java | WanderingSeed/Common-Library | /src/com/morgan/library/widget/dialog/HeightPickerWidget.java | UTF-8 | 3,157 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package com.morgan.library.widget.dialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.View;
import android.widget.NumberPicker;
import android.widget.NumberPicker.OnValueChangeListener;
import android.widget.TextView;
... | true |
2c87ecb3cce18672b8e5717d3cef1c3dbf3384d4 | Java | silver-ring/designpatterns | /test/designpatterns/example/behivor/template/EmailNotificationTest.java | UTF-8 | 1,130 | 2.625 | 3 | [] | no_license | package designpatterns.example.behivor.template;
import org.junit.jupiter.api.Test;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class EmailNotificationTest {
@Test
final public void calculateBill() {
... | true |
bfddcba273580e20a180ba5e5ee6d6f1bcfa10ab | Java | QIONG-0531/First-repo | /练习06/Demo36.java | UTF-8 | 726 | 3.46875 | 3 | [] | no_license | import java.util.Arrays;
import java.util.HashSet;
public class Demo36 {
public boolean IsContinuous(int [] numbers) {
//1.使用set存储不为0的数字,去除重复数字
//2.验证0的个数加上set的大小是否等于5
//set里的最大值和最小值 差值小于5
HashSet<Integer> set=new HashSet<>();
Arrays.sort(numbers);
int count=0;
... | true |
e3539b4d3b4b576162eac0768aabbcf1d9e37bca | Java | kevinnerd/algorithm008-class01 | /Week_02/350.两个数组的交集-ii.java | UTF-8 | 2,386 | 3.53125 | 4 | [] | no_license | import java.util.HashMap;
import java.util.List;
import java.util.Map;
/*
* @lc app=leetcode.cn id=350 lang=java
*
* [350] 两个数组的交集 II
*
* https://leetcode-cn.com/problems/intersection-of-two-arrays-ii/description/
*
* algorithms
* Easy (47.53%)
* Likes: 265
* Dislikes: 0
* Total Accepted: 79.6K
* Tot... | true |
adb88418bd1bb5b73e24ebcf37cb292456bb7949 | Java | SeanHoerger/Catan | /SettlersOfCatan/src/catan/VertexArray.java | UTF-8 | 3,975 | 3.078125 | 3 | [] | no_license | package catan;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import javax.swing.JFrame;
public class VertexArray {
private Vertex[] vertexes;
public VertexArray(){
vertexes = new Vertex[54];
for(int i = 0; i < vertexes.length; i++) {
vertexes[i] = new Vertex();
}
this.... | true |
34d2ab128be2142d11445c855b6ab91312b4a61f | Java | vishalbagde/jspExampleWithGradle | /src/main/java/demo/Main.java | UTF-8 | 3,829 | 2.90625 | 3 | [] | no_license | package demo;
import model.*;
import java.lang.annotation.Annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.List;
import java.util.Scanner;
import javax.persistence.EntityManager... | true |
fcbbe35d0092c67ae113fb0e40963b42c705bf2c | Java | orbekk/master | /same-android/src/main/java/com/orbekk/same/android/GameView.java | UTF-8 | 5,979 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2012 Kjetil Ørbekk <kjetil.orbekk@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | true |
09aae9cc4527be23d427226aa8d20744ec5a4e35 | Java | priteshbhole/AddressBookGUI | /java 2/EntryTest.java | UTF-8 | 2,206 | 3.046875 | 3 | [] | no_license | import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
/**
* The test class EntryTest.
*
* @author Pritesh Bhole
* @version 19 May 2015
*/
public class EntryTest extends Exception
{
private Entry entry1;
/**
* Default constructor for test class Ent... | true |
8ce4c3cf4633d4fdfd089a2e8a63fda8e5fe86f9 | Java | djorder93/diplomski3 | /src/java/domen/Termin.java | UTF-8 | 3,295 | 2.171875 | 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 domen;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.EmbeddedId;
import javax.persist... | true |
041e01340d78c413bdd148746bac6ca98bc38bd2 | Java | teneous/practice-rabbitmq | /api/src/main/java/com/trifail/practice/api/advance/reachable/confirmed/Consumer.java | UTF-8 | 1,592 | 2.5625 | 3 | [] | no_license | package com.trifail.practice.api.advance.reachable.confirmed;
import com.rabbitmq.client.*;
import com.trifail.practice.api.utils.ConnectionCenterFactory;
import static com.trifail.practice.api.Constant.*;
import java.io.IOException;
import java.util.concurrent.TimeoutException;
/**
* 消息确认模式,无论成功还是失败,broker将发送一个消息... | true |
92067948d09faf1417f82cfcfa690b8eff846a87 | Java | hallvard/tdt4250 | /no.hal.pg.runtime/src/no/hal/pg/runtime/engine/util/AbstractServiceProvider.java | UTF-8 | 1,193 | 2.0625 | 2 | [] | no_license | package no.hal.pg.runtime.engine.util;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import no.hal.pg.runtime.RuntimePackage;
import no.hal.pg.runtime.Service;
import no.hal.pg.runtime.engine.IServiceProvider;
public abstract class AbstractServiceProvider implements IServiceProvider {
... | true |
b169c68fc50edecf42b1fed30e3eff6518c2093c | Java | sqf-ice/xipki | /ca-client-impl/src/main/java/org/xipki/ca/client/impl/PbmMacClientCmpRequestor.java | UTF-8 | 2,474 | 1.703125 | 2 | [
"Apache-2.0"
] | permissive | /*
*
* Copyright (c) 2013 - 2018 Lijun Liao
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | true |
55658a9a0e2f03c4b4a8ca56da9f1628c11d1d54 | Java | google-code/aci | /src/model/Skill.java | UTF-8 | 761 | 3.09375 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package model;
/**
*
* @author CUNEYT
*/
public class Skill {
private String title;
private int level;
public Skill() {
}
public Skill(String tit, int lvl) {
title = tit;
level ... | true |
1794d981f2ee5b36a17dddbd1de5434193e6d420 | Java | christoffertoppe/Suunnittelumallit | /src/tehtava6c/Jauheliha.java | UTF-8 | 323 | 2.671875 | 3 | [] | no_license | package tehtava6c;
public class Jauheliha extends TayteDecorator {
Pizza pizza;
private int hinta = 1;
public Jauheliha(Pizza pizza) {
this.pizza = pizza;
}
@Override
public String kuvaile() {
return pizza.kuvaile() + ", Jauheliha ";
}
@Override
public int hinta() {
return hinta + pizza.hinta();
}
... | true |
49ee9af86945c57024f55200a792aec3bdee43bf | Java | UncleTian/olp | /db/dao/CFG_AUTOCODEMapper.java | UTF-8 | 450 | 1.851563 | 2 | [] | no_license | package com.bea.dao;
import com.bea.olp.CFG_AUTOCODE;
import com.bea.olp.CFG_AUTOCODEKey;
public interface CFG_AUTOCODEMapper {
int deleteByPrimaryKey(CFG_AUTOCODEKey key);
int insert(CFG_AUTOCODE record);
int insertSelective(CFG_AUTOCODE record);
CFG_AUTOCODE selectByPrimaryKey(CFG_AUT... | true |
9375928b2ddd662d0fb1a870d4578dfd76bf5c24 | Java | fengmnegchang/Umei | /src/com/open/umei/json/m/UmeMPannelHdJson.java | UTF-8 | 1,654 | 1.78125 | 2 | [] | no_license | /**
*****************************************************************************************************************************************************************************
*
* @author :fengguangjing
* @createTime:2016-12-29上午10:54:22
* @version:4.2.4
* @modifyTime:
* @modifyAuthor:
* @description:
*****... | true |
0d55b9a1d93df07add9a8ce3d2040fbc159a44cb | Java | Euchigere/simple-plagiarism-checker | /src/main/java/com/emmanuelc/plagiarismchecker/domain/models/enumerations/PrivilegeEnum.java | UTF-8 | 123 | 1.921875 | 2 | [] | no_license | package com.emmanuelc.plagiarismchecker.domain.models.enumerations;
public enum PrivilegeEnum {
READ, WRITE, DELETE
}
| true |
4f3a9192db68d5cfe7bc1e7f883f88dd93748512 | Java | Schroedernick2/COE_1501 | /project3/Edge.java | UTF-8 | 290 | 2.78125 | 3 | [] | no_license | //Nicholas Schroeder
//11.8.2018
public class Edge{
private City city1;
private City city2;
//edge from city1 - city2
public Edge(City city1, City city2){
this.city1 = city1;
this.city2 = city2;
}
public City getFirstCity(){ return city1; }
public City getSecondCity(){ return city2; }
}
| true |
ab500cf3f41a0499dc854a46d9c4304b590455fe | Java | handsomezhou/programming_notes_for_java_android | /Demo/app/src/main/java/com/handsomezhou/demo/util/SecurityUtil.java | UTF-8 | 2,162 | 2.703125 | 3 | [] | no_license | package com.handsomezhou.demo.util;
import com.handsomezhou.demo.model.BusinessReq;
/**
* Created by handsomezhou on 2020/2/25.
*/
public class SecurityUtil {
/**
* deviceId;timestamp;f(x);
* {"appKey":"75aAO5aGaGWA5","clientId":"U0Nc0OJcO00UqcOO","timestamp":1582626145617}
* clientId=... | true |
2d7c9cf8be60fa34589469c83c7f1294fdf2eb14 | Java | astensby/bootneo | /src/main/java/io/monokkel/neo/bootneo/domain/Beer.java | UTF-8 | 1,420 | 2.203125 | 2 | [] | no_license | package io.monokkel.neo.bootneo.domain;
import org.neo4j.graphdb.Direction;
import org.springframework.data.neo4j.annotation.*;
import java.util.HashSet;
import java.util.Set;
/**
* Created by astensby on 24/08/14.
*/
@NodeEntity
public class Beer {
@GraphId
public Long nodeId;
@Indexed(unique = true... | true |
1c5efa9e884d183be3a197afc884bd60f8f05442 | Java | esraafouad2020/Hotel100 | /HotelReservationSystem/Hotel reservation system/src/com/fcih/swing/hotel/service/ReceptionistService.java | UTF-8 | 597 | 1.984375 | 2 | [] | no_license | package com.fcih.swing.hotel.service;
import com.fcih.swing.hotel.model.Guest;
import com.fcih.swing.hotel.model.Room;
import com.fcih.swing.hotel.model.RoomTypeLookup;
import com.fcih.swing.hotel.model.ViewTypeLookup;
import java.sql.Date;
import java.util.List;
public interface ReceptionistService {
public Lis... | true |
e173f1776489fb05514561ead5e0e5cf4a39d828 | Java | valllllll2000/FrescoExperiment | /app/src/main/java/com/vaxapp/frescoexperiment/injector/component/ActivityComponent.java | UTF-8 | 429 | 1.875 | 2 | [] | no_license | package com.vaxapp.frescoexperiment.injector.component;
import android.app.Activity;
import com.vaxapp.frescoexperiment.injector.PerActivity;
import com.vaxapp.frescoexperiment.injector.module.ActivityModule;
import dagger.Component;
@PerActivity
@Component(dependencies = ApplicationComponent.class, modules = Activit... | true |
09c6626ba5598e073099f2816f9796a7aca6269c | Java | AbhishekReddy7299/Book_Store_Management | /obsm-cart-module/src/main/java/com/obsm/cart/controller/CartController.java | UTF-8 | 1,718 | 2.125 | 2 | [] | no_license | package com.obsm.cart.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.we... | true |
0fee0eeea3a8d83dc686f8dc19f686ea85975f3a | Java | BischoffDaniel/jpasecurity-samples | /jpasecurity-samples/jpasecurity-spring-2-petclinic-sample/src/main/java/org/springframework/samples/petclinic/web/EditVisitForm.java | UTF-8 | 2,863 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2008 Juergen Hoeller, Ken Krebs, Arne Limburg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | true |
70631a51616a42d38e3dbbd346e9058402082426 | Java | LucasAlesterio/projetos_java | /interface_java/src/View/ConsProf.java | UTF-8 | 16,480 | 2.328125 | 2 | [] | no_license |
package View;
import javax.swing.JOptionPane;
public class ConsProf extends javax.swing.JFrame {
boolean flag=false;
public ConsProf() {
initComponents();
salvar b = new salvar();
int z;
String valor;String doc;
b.lerquantP();
z= b.quantidadeProf ... | true |
1dc6d95bb51f120f6034c7bcbac12b1b07de5da3 | Java | D-Inc/EnderIO | /src/main/java/crazypants/enderio/item/darksteel/upgrade/IDarkSteelUpgrade.java | UTF-8 | 622 | 1.921875 | 2 | [
"Unlicense",
"CC-BY-3.0",
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | package crazypants.enderio.item.darksteel.upgrade;
import com.enderio.core.api.client.gui.IAdvancedTooltipProvider;
import crazypants.enderio.item.IHasPlayerRenderer;
import net.minecraft.item.ItemStack;
public interface IDarkSteelUpgrade extends IAdvancedTooltipProvider, IHasPlayerRenderer {
String getUnlocalize... | true |
116b6a3fd1dedd70b5687a5bc7afeec4440e3fa1 | Java | treejames/com.neteast | /VideoTV/VideoTV/src/com/neteast/videotv/bean/Record.java | UTF-8 | 3,590 | 2.34375 | 2 | [] | no_license | package com.neteast.videotv.bean;
import android.text.TextUtils;
import com.google.common.collect.Lists;
import com.neteast.lib.bean.StreamingMediaRaw;
import com.neteast.lib.bean.VideoDetailRaw;
import com.neteast.lib.bean.VideoInfoRaw;
import java.util.List;
/**
* Created with IntelliJ IDEA.
* User: emellend
* ... | true |
a175eb1d17a7dc2aa3542a43223cfe712855a428 | Java | paulohgama/AulasIA | /src/Semana09/ClassficadorBayes.java | UTF-8 | 2,472 | 3.140625 | 3 | [] | no_license | package Semana09;
import weka.classifiers.bayes.NaiveBayes;
import weka.core.DenseInstance;
import weka.core.Instance;
import weka.core.Instances;
import weka.core.converters.ConverterUtils.DataSource;
/**
* @author Paulo Henrique
*/
public class ClassficadorBayes {
public static void main(String[] args) throw... | true |
87bd4f86e84489d7419af8d336af8cef1773d5f4 | Java | procrastinatingVariable/CoffeeTracker | /app/src/main/java/ro/fmi/ip/trei/coffeetracker/PVTTest.java | UTF-8 | 6,006 | 2.375 | 2 | [] | no_license | package ro.fmi.ip.trei.coffeetracker;
import android.app.Activity;
import android.content.Context;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
... | true |
0f987405915f8d6e395ebcfaef9b45e10b5c5eff | Java | felowchu/codepractice | /src/Chorus.java | UTF-8 | 1,292 | 3.0625 | 3 | [] | no_license | import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class Chorus {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
int n = sc.nextInt();
int[] high = new int[n];
for (int... | true |
003a50297194027f8fef97e2d960de95e5448fa4 | Java | kdivml/testers | /src/main/java/hu/idomsoft/testers/ui/MainLayout.java | UTF-8 | 3,458 | 2.0625 | 2 | [
"Unlicense"
] | permissive | package hu.idomsoft.testers.ui;
import org.springframework.security.core.context.SecurityContextHolder;
import com.vaadin.flow.component.UI;
import com.vaadin.flow.component.applayout.AppLayout;
import com.vaadin.flow.component.applayout.DrawerToggle;
import com.vaadin.flow.component.button.Button;
import com... | true |
8303175f5d624fa5b92b0028e1ea57188b3675fd | Java | zhuzhangli/robotTwo | /org.xjtusicd3.partner/src/main/java/org/xjtusicd3/partner/view/Faq1_ClassifyView.java | UTF-8 | 1,123 | 2 | 2 | [] | no_license | package org.xjtusicd3.partner.view;
import java.util.List;
import org.xjtusicd3.database.model.ClassifyPersistence;
public class Faq1_ClassifyView {
private String ClassifyId;
private String ClassifyName;
private Faq1_faqContentView content;
private List<Faq1_faqContentView> content2;
public String getClassifyI... | true |
9058ead2cc443c558ff00013cfcf2231c46cbb1c | Java | Daniel-BG/Topography-Solver | /src/com/toposhort/terreno/GeneradorTerreno.java | UTF-8 | 3,705 | 2.828125 | 3 | [] | no_license | package com.toposhort.terreno;
import java.util.ArrayList;
import java.util.Random;
import com.toposhort.estructuras.Coordenada;
public class GeneradorTerreno {
public static Float[][] generadorDiamante(DatosGenerador dg) {
//comparamos que las alturas sean coherentes
assert dg.getAlturaMaxima()... | true |
ad6b3c0da16513df03b119a370cb929adeaf7c84 | Java | Camptalk08/EConnection | /src/test/java/com/example/econnect/service/impl/ConnectionRequestServiceTest.java | UTF-8 | 3,294 | 2.15625 | 2 | [] | no_license | package com.example.econnect.service.impl;
import java.util.Optional;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.junit.MockitoJUnitRunner;
import com.... | true |
5e0bf0089f06e986853135f623ea3b07c81e2212 | Java | sewlesew/Observer-Design-Pattern-_-GUI-demo- | /Client.java | UTF-8 | 3,826 | 2.96875 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Observer;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.event.Actio... | true |
8413f8f4709e08e4254d4e1284d127490d76b408 | Java | luciaasen/padsof | /p3/moon/JuanRiera_LuciaAsencio/src/icfs/teacher/main/MainTeacherPanel.java | UTF-8 | 1,228 | 2.421875 | 2 | [] | no_license | /**
*
*/
package icfs.teacher.main;
import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.Container;
import javax.swing.*;
import icfs.*;
import icfs.teacher.create.AddCourseView;
import moon.Academy;
import moon.course.Course;
public class MainTeacherPanel extends JPanel{
private LowerPane... | true |
d5323b86bb94bffe7d070ba5e739637402f2efdb | Java | UPenn-CIT599/final-project-team-50 | /src/PlannerTest.java | UTF-8 | 2,744 | 3.09375 | 3 | [] | no_license | import static org.junit.jupiter.api.Assertions.*;
import java.util.ArrayList;
import java.util.HashMap;
import org.junit.jupiter.api.Test;
class PlannerTest {
@Test
void testGetFloor() {
Planner p = new Planner(9, 2, 2);
FloorPlan floor = p.getFloor();
int[][] floorArray = floor.getfloorPlan();
assertEqu... | true |
e578eabf44c7faf4bcaf2b24b999172bb145cd9e | Java | Praveenkumarkonidena/MLP149 | /practice/SuperMain.java | UTF-8 | 288 | 2.359375 | 2 | [] | no_license | public class SuperMain extends App{
public SuperMain() {
super();
}
public void display() {
super.show();
super.show1();
}
public static void main(String[] args){
SuperMain t = new SuperMain();
t.display();
}
} | true |
318342ce659bd5a9fb3e3faccd436bb06e3be4a3 | Java | poornipanna/JSON_PARSING | /src/test/java/Example1.java | UTF-8 | 2,253 | 2.9375 | 3 | [] | no_license | import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
public class E... | true |
c0e1eb376e3947cf8b89ed363d5f09ada4d2ab5f | Java | renchao1110/hl_demo_renchao | /src/com/hl95/sys/action/SysDeptRoleAction.java | UTF-8 | 3,468 | 1.828125 | 2 | [] | no_license | package com.hl95.sys.action;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.commons.beanutils.ConvertUtils;
import org.apache.commons.lang.StringUtils;
import org.hibernate.criterion.Order;
import org.pj.criterion... | true |
7523052deaeb027019a5a781c45e2fd0bdc168c2 | Java | harshulfk/inventory-planner | /requirement/src/main/java/fk/retail/ip/requirement/internal/repository/JPAForecastRepository.java | UTF-8 | 1,146 | 2.078125 | 2 | [] | no_license | package fk.retail.ip.requirement.internal.repository;
import com.google.common.collect.Lists;
import com.google.inject.Inject;
import fk.retail.ip.requirement.internal.entities.Forecast;
import fk.retail.ip.requirement.internal.entities.Policy;
import fk.sp.common.extensions.jpa.SimpleJpaGenericRepository;
import java... | true |
1addbb071918fed4e46c7394b5ce251fd5341c55 | Java | Shoneys/DataStructures_Spring_2019 | /gaughan_project1/src/PostfixCalculator.java | UTF-8 | 1,743 | 3.484375 | 3 | [] | no_license | import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class PostfixCalculator {
public static void main(String[] args) throws FileNotFoundException {
File file = new File("src/postfix_test.txt"); // searches for the postfix_test.txt in the same directory
Scann... | true |
a4e13d7de11a1302cd8dc00640820fa574183a4a | Java | LuoHaoYis/ZhuLongSociety_Project_day6_11 | /frams/src/main/java/com/lhy/frams/LoadType.java | UTF-8 | 163 | 1.6875 | 2 | [] | no_license | package com.lhy.frams;
public class LoadType {
public static final int ONE=200;
public static final int TWO=520;
public static final int THREE=521;
}
| true |
55b227e10e34306ff899156fcd73f00209169988 | Java | pedrogonzalezgutierrez/spring-rest-jwt | /src/main/java/com/kiesoft/service/DTOService.java | UTF-8 | 275 | 1.8125 | 2 | [] | no_license | package com.kiesoft.service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
public interface DTOService<EntityDTO> {
EntityDTO save(EntityDTO dto);
EntityDTO findOne(Long id);
Page<EntityDTO> findAll(Pageable page);
}
| true |
7193d64c35425b1a3fd171f21a1f1f06fe4540b2 | Java | zoolian/jmscottBE | /jmscott-API/src/main/java/com/jmscott/rest/repository/PasswordRepository.java | UTF-8 | 434 | 1.898438 | 2 | [] | no_license | package com.jmscott.rest.repository;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.stereotype.Repository;
import com.jmscott.rest.model.Password;
@Repository
public interface PasswordRepository extend... | true |
5f7c2ff3bc3ca6c2a536de7bf300fabe67ddbe98 | Java | ViniciusArnhold/unisinos-chat | /client/src/main/java/br/unisinos/client/view/chat/UserCellFactory.java | UTF-8 | 1,768 | 2.734375 | 3 | [] | no_license | package br.unisinos.client.view.chat;
import br.unisinos.commom.User;
import javafx.geometry.Pos;
import javafx.scene.control.ListCell;
import javafx.scene.control.ListView;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.HBox;
import javafx.scene.text.Text;
import java... | true |
70142952ef1bd72080a3267b583d6d4d5e803c39 | Java | underwindfall/Algorithme | /src/leetcode/algo/doubleindex/ReverseOnlyLetters917.java | UTF-8 | 750 | 3.59375 | 4 | [] | no_license | package leetcode.algo.doubleindex;
// https://leetcode-cn.com/problems/reverse-only-letters/
public class ReverseOnlyLetters917 {
//time O(n)
//space O(1)
public String reverseOnlyLetters(String s) {
int lo = 0, ho = s.length() - 1;
char[] ch = s.toCharArray();
while (lo < ho) {
... | true |
37e6bd9491eeb9991eac1f73dc332b6824119f7e | Java | BinateStation/Pathrakkaran | /pathrakkaran/src/main/java/rkr/binatestation/pathrakkaran/modules/register/RegisterListeners.java | UTF-8 | 1,093 | 2.125 | 2 | [] | no_license | package rkr.binatestation.pathrakkaran.modules.register;
import android.content.Context;
/**
* Created by RKR on 10/12/2016.
* RegisterListeners.
*/
interface RegisterListeners {
interface ViewListener {
void nameFieldError(String errorMessage);
void phoneFieldError(String errorMessage);
... | true |
021b6bbd4d9ea958125e75ee1f7fff2de0db1d58 | Java | ismailsirma/MicroserviceDemo | /market-consumer-microservice/src/main/java/com/sirmam/market/service/KafkaTradeListenerService.java | UTF-8 | 1,194 | 2.109375 | 2 | [
"MIT"
] | permissive | package com.sirmam.market.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Service;
import com.fasterxml.jackson.core.JsonProcess... | true |
2556650283894db72064e3c06348411e3012a60f | Java | nathan1917-cmis/nathan1917-apcs-cmis | /StringsEquals/StringStuff.java | UTF-8 | 518 | 3.34375 | 3 | [] | no_license | import javax.swing.JOptionPane;
public class StringStuff
{
public static void main ( String[] args)
{
String password = JOptionPane.showInputDialog("What's the password?");
if (password.equals("There is no real super-sand"))
{
System.out.println("You mu... | true |
7c34ddc1a548b6801c41c9822dfbc718ae79f58d | Java | winksaville/android-BleTest1 | /app/src/main/java/com/saville/wink/BleTest1/MainActivity.java | UTF-8 | 10,894 | 2.171875 | 2 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | package com.saville.wink.BleTest1;
import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothManager;
import android.bluetooth.le.BluetoothLeScanner;
import android.bluetooth.le.ScanCallback;
import android.bluetooth.le.ScanResult;
import android.content.Context;
import ... | true |
542e48229785be228f5ccd5832771d26e70dd878 | Java | tparihar/myPrac | /Nprac/PreferredCustomer_NTS/src/main/com/ck/reward/controller/LoginController.java | UTF-8 | 2,612 | 2.71875 | 3 | [] | no_license | package com.ck.reward.controller;
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 com.ck.reward.entities.Account;
import... | true |
804a5202ce905ba615baee45f7191fd6127fe693 | Java | ChaitraPrakash/Toys | /ToysBackend/src/main/java/com/niit/ToysBackend/model/Supplier.java | UTF-8 | 1,311 | 2.359375 | 2 | [] | no_license | package com.niit.ToysBackend.model;
import java.util.List;
import java.util.UUID;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import org.springframework.stereotype.Component;
@Entity
@Table
@Component
public class Supplier {
@I... | true |
a36301369c08bec1576e333723e31577a2263ca5 | Java | CS2103JAN2017-W10-B1/main | /src/main/java/seedu/address/logic/commands/HelpCommand.java | UTF-8 | 1,548 | 3.265625 | 3 | [
"MIT"
] | permissive | //@@author A0143409J
package seedu.address.logic.commands;
/**
* Format full help instructions for every command for display.
*/
public class HelpCommand extends Command {
public static final String COMMAND_WORD = "help";
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Shows program usage inst... | true |
4ca084c55c5d1a1f4a483afdbff4336803d995d7 | Java | bkalsow/FireEmblemSacredStones | /src/main/java/items/weapons/enemy/Stone.java | UTF-8 | 682 | 2.59375 | 3 | [] | no_license | package main.java.items.weapons.enemy;
import main.java.items.weapons.Weapon;
import main.java.items.weapons.WeaponRanks;
import main.java.items.weapons.dark.Dark;
public class Stone extends Weapon implements Dark
{
private final static int maxUses = 5;
private final static int weight = 8;
private final s... | true |
c7d1e9250cb825c58cfbf002fe98a28cb0e601ab | Java | brahamax/livrable | /StreamTP/src/Lanceur/Test.java | UTF-8 | 1,448 | 3.359375 | 3 | [] | no_license | package Lanceur;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.stream.*;
public class Test {
public static void main(String[] args) throws FileNotFoundException {
// TODO Auto-generated method stub
//List... | true |
5531ac4ad00ebda88a4ae3f41fcecbc48d7adbb8 | Java | RyanTech/juziQuick | /src/com/ailk/yd/mapp/client/action/HW0013Action.java | UTF-8 | 7,053 | 1.773438 | 2 | [] | no_license | package com.ailk.yd.mapp.client.action;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.codehaus.jackson.type.TypeReference;
import org.springframework.... | true |
576bb890f9890fd8d8543a837927aa1adc7af15f | Java | douglassquirrel/microservices-hackathon-july-2014 | /Java/src/main/java/com/microserviceshack/rabbitmq/EmitLogTopic.java | UTF-8 | 2,347 | 2.703125 | 3 | [
"MIT"
] | permissive | package com.microserviceshack.rabbitmq;
import com.fasterxml.jackson.core.JsonGenerationException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.microserviceshack.Config;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connecti... | true |
35d8e40e3fe7af07243d9fcb8b46efb579ff777d | Java | NBhajikhaye/COPJAVA | /JAVA_7May/src/AdditionfuncOverload.java | UTF-8 | 1,074 | 3.875 | 4 | [] | no_license |
import java.util.Scanner;
public class AdditionfuncOverload
{
public static void add(int a, int b) {
System.out.println("Addition of ( "+a+" + "+b+" ) = "+(a+b));
}
public static void add(int a, double b) {
System.out.println("Addition of ( "+a+" + "+b+" ) = "+(a+b));
}
public static void a... | true |
3b3f8861f85f67ca2ebc98924f7e7019428084e9 | Java | inevo/nuxeo-template-rendering | /nuxeo-template-rendering-deckjs/src/main/java/org/nuxeo/template/DeckJSPDFOperation.java | UTF-8 | 3,857 | 1.882813 | 2 | [] | no_license | /*
* (C) Copyright 2006-2012 Nuxeo SA (http://nuxeo.com/) and contributors.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.... | true |
cff124920cdbebd3aef1b85c601e39591bb95f7d | Java | bellmit/origin | /family_order/src/web/com/asiainfo/veris/crm/order/web/person/sundryquery/ibossutil/TimeUtil.java | UTF-8 | 567 | 2 | 2 | [] | no_license | package com.asiainfo.veris.crm.order.web.person.sundryquery.ibossutil;
import com.asiainfo.veris.crm.order.pub.frame.bcf.util.SysDateMgr;
public class TimeUtil {
public static String getTime(int status) throws Exception{
switch (status) {
case 1:
return SysDateMgr.getSysDate()+SysDateMgr.getEndTime235959();
... | true |
2d33f127c549b37f72d6729b6f38b744a19eab8a | Java | ManjulaPrabhu/INFO5100_ManjulaP | /Assignment_7/src/ReverseHello.java | UTF-8 | 939 | 3.390625 | 3 | [] | no_license | public class ReverseHello extends Thread {
String inputString;
static int threadCounter = 51;
public ReverseHello(String inputString) {
this.inputString = inputString;
}
public void run() {
ReverseHello reverseHelloThreadObject = new ReverseHello("Hello from Thread num");
... | true |
848c390c98cf8772f210e385f81168efe3fb6021 | Java | dwifdji/real-project | /366pai/zeus-core/core-service/src/main/java/com/_360pai/core/dao/account/mapper/TDisposeProviderApplyMapper.java | UTF-8 | 800 | 1.75 | 2 | [] | no_license |
package com._360pai.core.dao.account.mapper;
import com._360pai.core.model.account.TAgency;
import org.apache.ibatis.annotations.Mapper;
import com._360pai.core.condition.account.TDisposeProviderApplyCondition;
import com._360pai.core.model.account.TDisposeProviderApply;
import com._360pai.arch.core.abs.BaseMapper;
... | true |
af53553021bde6acf4129f4afdcf68b0c153e5fe | Java | hpenev/JavaEE | /Test3_practice/src/gasStation1/FuelBoy.java | UTF-8 | 332 | 2.90625 | 3 | [] | no_license | package gasStation1;
public class FuelBoy extends Thread {
private static int ID = 1;
private GasStation gasStation;
public FuelBoy(GasStation gasStation) {
this.gasStation = gasStation;
setName("FuelBoy" + ID++);
}
@Override
public void run() {
while (true) {
gasStation.refuelCars();... | true |
cf7c05cd051ec5dc9779769127b770233b407c94 | Java | shalinimajumder/project | /doctor-details/src/main/java/com/example/doctor/doctordetails/service/PateintService.java | UTF-8 | 289 | 1.914063 | 2 | [] | no_license | package com.example.doctor.doctordetails.service;
import java.util.List;
import java.util.Optional;
import com.example.doctor.doctordetails.model.Patient;
public interface PateintService {
public List<Patient> findAllPatient();
public Optional<Patient> findByid(Integer id);
}
| true |
c8a482ae11b640e2bc3d866d94d446a2c9e03cfb | Java | rookiezq/learning | /src/main/java/com/rookied/learning/map/MapDemo.java | UTF-8 | 325 | 2.578125 | 3 | [] | no_license | package com.rookied.learning.map;
import java.util.HashMap;
import java.util.Map;
/**
* @author zhangqiang
* @date 2021/4/15
*/
public class MapDemo {
public static void main(String[] args) {
Map<String,Integer> map = new HashMap(16);
map.put(null,1);
System.out.println(map.size());
... | true |
6d39f17c73195221e1c340208a7de251294ee68f | Java | ruslan-stosyk/DiscountStorage | /app/src/main/java/com/stosh/discountstorage/fragments/settings/ChangeEmailFragment.java | UTF-8 | 2,736 | 2.09375 | 2 | [] | no_license | package com.stosh.discountstorage.fragments.settings;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.text.TextUtils;
import android.view.LayoutInflater;
import androi... | true |
8e776ddc1439684cfe8d8f1962377ce4e1d1e3f5 | Java | tienthanh2509/iWownController | /iwown/src/main/java/tk/d13ht01/bracelet/adapter/AppsAdapter.java | UTF-8 | 3,145 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2017 PT Studio. All rights reserved.
* Licensed under Apache License 2.0 (https://github.com/tienthanh2509/iWownController/blob/master/LICENSE)
*/
package tk.d13ht01.bracelet.adapter;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageMana... | true |
c444d1b21b447ee561e45e30d7dd3007a0b52ded | Java | prashanthkumarchilukamari/CoreJavaPractice | /src/pc/corejava/fundamentals/StaticKeyWordSample.java | UTF-8 | 1,055 | 4.03125 | 4 | [] | no_license | package pc.corejava.fundamentals;
public class StaticKeyWordSample {
static int count = 0; // This variable is common for all objects
static{
System.out.println("This block will be executed during the class loading");
// this.display(); // CTE : Can't use this inside static context
// super.display(... | true |
e001d1ac2d38e38e8a8d69d688cfdb6696104cd0 | Java | matan45/javaopengl | /shadows/ShadowShader.java | UTF-8 | 626 | 2.296875 | 2 | [] | no_license | package shadows;
import maths.Matrix4f;
import shader.ShaderProgram;
public class ShadowShader extends ShaderProgram {
private int location_mvpMatrix;
protected ShadowShader(String vs, String frag) {
super(vs, frag);
}
@Override
protected void getAllUniformLocations() {
location_mvpMatrix =... | true |