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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d7b05605885057d8187619b4baca1f438996f048 | Java | liveqmock/oa | /OA/JavaSource/com/icss/oa/statsite/vo/StatSiteDate1VO.java | UTF-8 | 3,122 | 1.859375 | 2 | [] | no_license | package com.icss.oa.statsite.vo;
import com.icss.j2ee.vo.ValueObject;
public class StatSiteDate1VO extends ValueObject {
private Long id;
private Long h0;
private Long h1;
private Long h2;
private Long h3;
private Long h4;
private Long h5;
private Long h6;
private Long h7;
private Long h8;
p... | true |
8ab0ab6e9aeb83624019634c100ea494dd1a065e | Java | hammerwy/datastructure_and_algorithm | /concurrent/src/main/java/com/wy/concurrent/chapter3/SafePoint.java | UTF-8 | 440 | 3.296875 | 3 | [] | no_license | package com.wy.concurrent.chapter3;
/**
* @author wy
* @date 2019-05-30
* @description
*/
public class SafePoint {
private int x;
private int y;
private SafePoint(SafePoint p) {
this(p.x, p.y);
}
public SafePoint(int x, int y) {
this.x = x;
this.y = y;
}
publi... | true |
beda7ddfbd80f15a2768f553114af010be21c5a5 | Java | kayused/PropsTools | /generator/src/main/java/com/kevinserver/generator/bases/PathKit.java | UTF-8 | 645 | 2.40625 | 2 | [
"MIT"
] | permissive | /**
* com.kevinserver.generator.bases
*/
package com.kevinserver.generator.bases;
import java.io.File;
/**
* class : PathKit.java
* @author xukai
* @date 2016年1月7日
* From JFinal 2.1
*/
public class PathKit {
private static String rootPath;
public static String getRootPath() {
if (rootPath == null) {
r... | true |
992e314acf439150c981a57e29ad0746c83c3c23 | Java | oz-devworx/jdbwc | /src-jdbwc/com/jdbwc/util/GzipStreamReader.java | UTF-8 | 1,930 | 2.078125 | 2 | [] | no_license | /* ********************************************************************
* Copyright (C) 2010 Oz-DevWorX (Tim Gall)
* ********************************************************************
* This file is part of JDBWC.
*
* JDBWC is free software: you can redistribute it and/or modify
* it under the terms of the GNU ... | true |
492fdea11c63d46ce1b0f3f543b8d8d6bb24aa64 | Java | kubAretip/cyberpunk-crafting-clicker | /src/main/java/pl/kubaretip/controller/WindowController.java | UTF-8 | 5,480 | 2.359375 | 2 | [
"MIT"
] | permissive | package pl.kubaretip.controller;
import javafx.application.Platform;
import javafx.collections.FXCollections;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.ChoiceBox;
import javafx.scene.control.Label;
import javafx.scene.control.Spinner;
import javafx.scene.control.SpinnerValu... | true |
6e79171d241fc5f511f8aed13a8a18446891a6a8 | Java | cherispanty/bootdo-master | /bootdo/src/main/java/com/bootdo/common/service/impl/SelectStudentService.java | UTF-8 | 1,715 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package com.bootdo.common.service.impl;
import com.bootdo.common.dao.SelectStudentDao;
import com.bootdo.common.dto.DeptDTO;
import com.bootdo.common.dto.StudentDTO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereo... | true |
f1ef8d36edc6270c07bf623b6351ed4c73ca7d61 | Java | crongjie/Android-Study-Examples | /Memo01_TestApplication/app/src/main/java/com/example/test/testapplication/MainActivity.java | UTF-8 | 2,029 | 2.4375 | 2 | [] | no_license | package com.example.test.testapplication;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivit... | true |
a58cf9d15468d742ba5304605ba5eec8f199d1dd | Java | heySeattleW/yancheng | /seera-yancheng-pwb/src/main/java/com/sunesoft/seera/yc/pwb/common/IdentityInfo.java | UTF-8 | 534 | 1.875 | 2 | [] | no_license | package com.sunesoft.seera.yc.pwb.common;
import java.io.Serializable;
/**
* Created by bing on 16/7/27.
*/
public class IdentityInfo implements Serializable {
private String corpCode;
private String userName;
public String getCorpCode() {
return corpCode;
}
public void setCorpCode(S... | true |
6974af87a7cf072eadd529ddfef3e1a4d17b1f98 | Java | KlauseAKarlson/MapMaker | /mapMaker/src/mapMaker/Tile.java | UTF-8 | 491 | 2.84375 | 3 | [] | no_license | package mapMaker;
import javax.swing.ImageIcon;
import java.awt.image.BufferedImage;
@SuppressWarnings("serial")
public class Tile extends ImageIcon {
private boolean foreground;
public Tile(String name, BufferedImage imageBuffer, boolean transparent)
{
super(imageBuffer);
this.setDescription(nam... | true |
5f89e50bb7a35e993c71d2ba719c014ead2eda7b | Java | KristinaPotapovich/Task2 | /src/test/java/by/epam/secondtask/parser/LexemeParserTest.java | UTF-8 | 1,339 | 2.59375 | 3 | [] | no_license | package by.epam.secondtask.parser;
import by.epam.secondtask.composite.ComponentText;
import by.epam.secondtask.exception.TextException;
import by.epam.secondtask.parser.impl.LexemeParser;
import by.epam.secondtask.reader.TextReader;
import org.testng.Assert;
import org.testng.annotations.BeforeTest;
import org.testng... | true |
5131036a22392bfd08050b86f2087bbfc8dd7ab0 | Java | ciko16/projectPBO | /ciko/src/latihanInheritance/Drawing.java | UTF-8 | 358 | 2.078125 | 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 latihanInheritance;
/**
*
* @author MSI GAMING
*/
public class Drawing extends Art{
public Drawing(){
System.ou... | true |
f93fc5ae021f59e76574f10f72021d2586840267 | Java | EmergentOrganization/cell-rpg | /core/src/io/github/emergentorganization/cellrpg/systems/TimedDestructionSystem.java | UTF-8 | 1,474 | 2.375 | 2 | [] | no_license | package io.github.emergentorganization.cellrpg.systems;
import com.artemis.Aspect;
import com.artemis.Entity;
import com.artemis.annotations.Profile;
import com.artemis.systems.IntervalEntityProcessingSystem;
import io.github.emergentorganization.cellrpg.components.DestructionTimer;
import io.github.emergentorganizati... | true |
bcdb9deea88f106b829524ae3f901c7acba20f9a | Java | java-practice-spb-2020/epam-ifmo-java-practice-2020-2 | /src/main/java/com/ifmo/epampractice/daoimpl/DrivingLicenseDaoImpl.java | UTF-8 | 5,265 | 2.71875 | 3 | [] | no_license | package com.ifmo.epampractice.daoimpl;
import com.ifmo.epampractice.dao.DBConnectorInterface;
import com.ifmo.epampractice.dao.DBConnectorPostgres;
import com.ifmo.epampractice.dao.DrivingLicenseDao;
import com.ifmo.epampractice.entity.DrivingLicenseEntity;
import org.apache.logging.log4j.LogManager;
import org.apache... | true |
0d7fa1407da52e83bf92fca39d42a03217842076 | Java | XxXCJXxX/iop-lingo-application | /LingoApplication/src/upc/control/ParametroUnidad.java | UTF-8 | 2,784 | 2.5625 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package upc.control;
/**
*
* @author usd32902
*/
public class ParametroUnidad {
private String nombreUnidad;
private String abrevUnidad;
private Double inputEmpleado;
private Double inputMercados;
... | true |
069c11e0b7261a22808ed2eb0f0639fd0551d9ba | Java | cmmaalouf/Smarty-Smart-Sticks | /app/src/main/java/com/example/chiara/trythis/ServerActivity.java | UTF-8 | 3,721 | 2.265625 | 2 | [] | no_license | package com.example.chiara.trythis;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import java.util.HashMap;
import java.util.Map;
import com.goo... | true |
9343716e20bcb1040ed29990d8f5a3ad8621011a | Java | BON-JIN/CaesarCipher | /CaesarCipher/util/Controller.java | UTF-8 | 6,044 | 2.484375 | 2 | [] | no_license | package util;
import java.awt.BorderLayout;
import java.awt.Container;
import javax.swing.JComboBox;
import javax.swing.JList;
import javax.swing.JScrollPane;
import javax.swing.JFrame;
import javax.swing.JTable;
import javax.swing.*;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt... | true |
7ae63b655ec8e4a16c1b677c02c24d2bfbd7e8ce | Java | popcivilar/source-code | /src/main/java/com/popcivilar/code/spring/mockaop/Test.java | UTF-8 | 1,171 | 1.953125 | 2 | [] | no_license | package com.popcivilar.code.spring.mockaop;
import com.popcivilar.code.spring.AppConfig;
import com.popcivilar.code.spring.aop.UserServiceImpl;
import com.popcivilar.code.spring.importConfig.UserDao;
import com.popcivilar.code.spring.importConfig.UserDaoImpl;
import org.apache.commons.logging.Log;
import org.apache.co... | true |
0b212dd5b4f4a27213fa626b0280e89a7431cfa8 | Java | davidparraz41/emailmanager | /src/main/java/com/david/mail/emailManager/EmailProperties.java | UTF-8 | 1,535 | 2.34375 | 2 | [] | no_license | /**
*
*/
package com.david.mail.emailManager;
/**
* @author David Parra
*
*/
public class EmailProperties {
private String host;
private String port;
private String emailEmisor;
private String contrasenaEmailEmisor;
private boolean requiereAutenticacion;
/**
* @return the host
*/
public String getHo... | true |
30bac3145d2236ec0b54cc733c3029edac5c127c | Java | Arbonkeep/Project0_Mall | /mmall/src/main/java/com/mmall/controller/backend/CategoryManageController.java | UTF-8 | 4,413 | 2.328125 | 2 | [] | no_license | package com.mmall.controller.backend;
import com.mmall.common.Constant;
import com.mmall.common.ResponseCode;
import com.mmall.common.ServerResponse;
import com.mmall.pojo.User;
import com.mmall.service.IUserService;
import com.mmall.service.ICategoryService;
import com.sun.org.apache.regexp.internal.RE;
import org.sp... | true |
143f215735f85907b6e5e7dc4748550ba703ff7d | Java | Tagolfirg/MobileSecurity | /src/main/java/com/ssav/Virusprotection/ScanReport.java | UTF-8 | 1,149 | 2.21875 | 2 | [] | no_license | package com.ssav.Virusprotection;
/**
* Created by Minaz on 2/7/14.
*/
public class ScanReport implements ScanParameter
{
String title;
String scansttime;
String scanendtime;
String nooffilesscanned;
String scantime;
String status;
public ScanReport(String title, String scansttime, St... | true |
93d75563652baf2c8d0e317d88725609696c1e20 | Java | GawkingGoose/NoClutterMusicPlayerProject | /MusicPlayer/src/Tune.java | UTF-8 | 1,103 | 2.859375 | 3 | [] | no_license |
public class Tune {
private int id;
private String filePath;
private String name;
private String artist;
private TuneGenre genre;
private int imgId;
public Tune(int id, String path, String name, String artist, TuneGenre genre, int imgId) {
super();
this.id = id;
this.filePath = path;
this.name = name... | true |
80a7f72f1c84c8a4751da21f4706953a777b3e46 | Java | PioneerX1/small_fibonacci | /Fibonacci.java | UTF-8 | 846 | 3.6875 | 4 | [] | no_license | import java.util.Scanner;
public class Fibonacci {
// private static long calc_fib(int n) {
// if (n <= 1)
// return n;
//
// return calc_fib(n - 1) + calc_fib(n - 2);
// }
private static long calc_fib(int n) {
if (n == 0) {
return 0;
} else if (n == 1) {
return 1;
} el... | true |
e3128bb1c90b8e9458eb4e55c5d3e03c40501d22 | Java | lanzm/netStore | /netStore/src/main/java/com/netStore/action/ManagerAction.java | UTF-8 | 1,514 | 2.3125 | 2 | [] | no_license | package com.netStore.action;
import java.util.List;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.sp... | true |
a28fa2278d5786c3ef2a6968d85631c7aa3abcf4 | Java | nasko25/TriangleProblem | /TriangleProblem/src/TriangleProblem.java | UTF-8 | 5,187 | 3.484375 | 3 | [] | no_license | public class TriangleProblem {
/// 7860 it is 51195
public static final int HEIGHT = 14;
public static final int WIDTH = 16;
private static char[][] MakeTheCoordinateSystem() {
char[][] co = new char[HEIGHT][WIDTH];
for (int i = 0; i < HEIGHT; i ++)
for (int j = 0; j < WIDTH; j++){
co[i][j] = '.';
... | true |
719e8b340b39e5b458d4376891cbbce6ab55ed68 | Java | codehaus/mevenide | /mevenide2/idea/idea-ide/src/main/java/org/codehaus/mevenide/idea/console/LoggerConsole.java | UTF-8 | 12,157 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | /* ==========================================================================
* Copyright 2006 Mevenide Team
*
* 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.... | true |
c73ce53c25c53631bfb0254fb76f9e6070c182a1 | Java | 5l1v3r1/dev-spring-boot | /src/main/java/com/mdms/mdms_station/stationuncleansed/model/BaseEntity.java | UTF-8 | 590 | 2.03125 | 2 | [] | no_license | package com.mdms.mdms_station.stationuncleansed.model;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.Version;
import org.hibernate.annotations.TypeDef;
//@TypeDefs({
// @TypeDef(
// name = "string-array",
// typeClass = StringArrayType.class
// )... | true |
81e7506ba96c4b14232971ca3da4288ea1f02a18 | Java | HHPnet/jcore | /src/test/java/pm/hhp/core/services/users/create/CreateUserServiceTest.java | UTF-8 | 4,399 | 1.867188 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 the original author or authors.
*
* 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 l... | true |
ea6aaf68523fd2bdfa50534d6692c4dd221061f8 | Java | bartlomiej-bak/eStudent-Krosno | /app/src/main/java/com/example/estudentkrosno/LoginActivity.java | UTF-8 | 4,090 | 2.15625 | 2 | [] | no_license | package com.example.estudentkrosno;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ProgressBar;
import android.widget.Toast;
import com.google.and... | true |
c98cb906364abf9d0cb32405b4cea2337e611928 | Java | yatong2008/SEP2012-13 | /code samples/Gui/MapBoard.java | UTF-8 | 545 | 2.625 | 3 | [] | no_license | package View;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import javax.swing.JComponent;
public class MapBoard extends JComponent {
private final int WIDTH = 800;
private final int HEIGHT = 600;
// int x,y;
// Color color_id;
//
// MapBoard(int x, int y, Color c) {
// this.colo... | true |
f3fff40f5e8f49084e2bb0d91c52ca1acf836737 | Java | yevgnenll/spring-study | /src/main/java/me/yevgnenll/core/service/MemberService.java | UTF-8 | 179 | 1.765625 | 2 | [] | no_license | package me.yevgnenll.core.service;
import me.yevgnenll.core.member.Member;
public interface MemberService {
void join(Member member);
Member findMember(Long memberId);
}
| true |
42671d9162cd3d4405602bf3d1e634cb59929770 | Java | miguelalejo/app-1Z0899 | /web/src/main/java/ec/ocejwcd/cap5/ManejadorHttpSessionBindingListener.java | UTF-8 | 767 | 2.15625 | 2 | [] | no_license | package ec.ocejwcd.cap5;
/**
* Created by mapp190413 on 19/09/2016.
*/
import org.apache.log4j.Logger;
import javax.servlet.http.HttpSessionBindingListener;
import javax.servlet.http.HttpSessionBindingEvent ;
public class ManejadorHttpSessionBindingListener implements HttpSessionBindingListener {
Logger LOGGE... | true |
53d34350db64b4cb7bcd6c1fc55f956ace4f3bd7 | Java | lvlvforever/scaffold | /src/main/java/io/lvlvforever/tinydemo/User.java | UTF-8 | 546 | 2.609375 | 3 | [] | no_license | /**
* Description:
* User: daipeng
* Date: 2018-08-24 15:38
* Project:scaffold
*/
package io.lvlvforever.tinydemo;
public class User {
private String name;
private String sex;
public User(String name, String sex) {
this.name = name;
this.sex = sex;
}
public String getName() {... | true |
fec1812e09507a8af735ee3cef1fe086fe92de0a | Java | fry1999/QuanLyChoThueGiuongKTX2 | /src/dao/DAO.java | UTF-8 | 695 | 2.453125 | 2 | [] | no_license | package dao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class DAO {
public static Connection con;
public DAO() {
if(con == null) {
String dbUrl = "jdbc:mysql://us-cdbr-east-06.cleardb.net:3306/heroku_2b4b7a67e105418?sslmode=require";
String dbClass = "c... | true |
d26a1742409315a0135c6e4edd598e34248022ca | Java | HuangDL119/YourNameServer | /src/main/java/com/hdl/util/TimeConstant.java | UTF-8 | 432 | 2.0625 | 2 | [] | no_license | package com.hdl.util;
public interface TimeConstant {
int ONE_SECOND_MILLISECOND = 1000;
int ONE_MINUTE_MILLISECOND = 60000;
int ONE_HOUR_MILLISECOND = 3600000;
int ONE_DAY_MILLISECOND = 86400000;
int ONE_MINUTE_SECOND = 60;
long ONE_HOUR_SECOND = 3600L;
long ONE_DAY_SECOND = 86400L;
in... | true |
22907e28d651dcba11a6911ccb943962d59c2992 | Java | shivanshuserpentine2001/javaooplab- | /externalsm.java | UTF-8 | 228 | 1.851563 | 2 | [] | no_license | package see;
import ciem.*;
public class externalsm extends CIE{
public static int[] seem= new int [5];
public externalsm(int usn, String name,int sem,int [] seem) {
super(usn,name,usn);
this.seem=seem;
}
}
| true |
6355be8c9921830afdf4ea8b561b23d345afe3a3 | Java | kingcucumber/jpa-demo | /src/com/demo/bean/Student.java | UTF-8 | 1,975 | 2.703125 | 3 | [] | no_license | package com.demo.bean;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import org.hibernate.metamode... | true |
818dfef6bbcf93ad9c0d819cb48f08de1b15cc50 | Java | zpzkit/appstore-cms | /src/main/java/com/mobvoi/appstore/mapper/AppRecSimMapper.java | UTF-8 | 196 | 1.773438 | 2 | [
"Apache-2.0"
] | permissive | package com.mobvoi.appstore.mapper;
import com.mobvoi.appstore.model.AppRecSim;
public interface AppRecSimMapper {
int insert(AppRecSim record);
int insertSelective(AppRecSim record);
} | true |
8d9d89272f9fcad7dd473cfdc238567d34b69eb5 | Java | lordjoe/hydra-proteomics | /ConcurrentTools/src/main/java/org/systemsbiology/common/Resetable.java | UTF-8 | 335 | 2.234375 | 2 | [] | no_license | package org.systemsbiology.common;
/**
* org.systemsbiology.common.Resetable
* written by Steve Lewis
* on Apr 8, 2010
*/
public interface Resetable {
public static final Resetable[] EMPTY_ARRAY = {};
public static final Class THIS_CLASS = Resetable.class;
/**
* reset to base state
*/
pu... | true |
d89cad6e35f858e82b9d63c749f9717af03db79a | Java | HarshaVsh/Social91 | /Social91Thread/src/main/java/com/test/thread/Social91Thread/App.java | UTF-8 | 4,136 | 2.9375 | 3 | [] | no_license | package com.test.thread.Social91Thread;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concur... | true |
d6d00baa315ee5929ade5bea35677ce7451d3c85 | Java | JesusMSM/testelecciones-android | /app/src/main/java/com/moonfish/testeleccionesgenerales2015/viewholders/GraficoBarrasViewHolder.java | UTF-8 | 553 | 1.929688 | 2 | [] | no_license | package com.moonfish.testeleccionesgenerales2015.viewholders;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.Spinner;
import com.github.mikephil.charting.charts.BarChart;
import com.moonfish.testeleccionesgenerales2015.R;
/**
* Created by Jesus on 06/12/2015.
*/
publ... | true |
af3cf8e20f1e6cd89e844371b7553caab4334c7c | Java | bellmit/cloud-srm | /biz/cloud-biz-api-extend/src/main/java/com/midea/cloud/srm/model/pm/pr/soap/requisition/dto/RequisitionRequest.java | UTF-8 | 2,589 | 2.0625 | 2 | [] | no_license | package com.midea.cloud.srm.model.pm.pr.soap.requisition.dto;
import com.midea.cloud.srm.model.base.soap.erp.base.dto.EsbInfoRequest;
import javax.xml.bind.annotation.*;
import java.util.List;
/**
* <pre>
* 采购申请接口表请求类
* </pre>
*
* @author xiexh12@meicloud.com
* @version 1.00.00
*
* <pre>
* 修改记录
* 修改后版本:... | true |
b6e1cfd88cc58f7cd417d30a9ff857ca30cd5dfc | Java | Ankitha016/java-A1-1BM18CS016 | /Command.java | UTF-8 | 334 | 2.890625 | 3 | [] | no_license | import java.util.*;
class Command
{
public static void main(String args[])
{
int i,a;
int large=-99;
for(i=0;i<args.length;i++)
{
a=Integer.parseInt(args[i]);
System.out.println(args[i]);
if(a>large)
{
large=a;
}
}
System.out.println("largest number is="+large);
}
}
23
45
67
largest number i... | true |
d7ebcfe3aaddf921710f482c27867a3879a4d7cc | Java | aht-group/jeesl | /util/src/main/java/org/jeesl/factory/ejb/io/ssi/docker/EjbIoSsiContainerFactory.java | UTF-8 | 875 | 2.25 | 2 | [] | no_license | package org.jeesl.factory.ejb.io.ssi.docker;
import org.jeesl.interfaces.model.io.ssi.core.JeeslIoSsiHost;
import org.jeesl.interfaces.model.io.ssi.core.JeeslIoSsiSystem;
import org.jeesl.interfaces.model.io.ssi.docker.JeeslIoDockerContainer;
public class EjbIoSsiContainerFactory <SYSTEM extends JeeslIoSsiSystem<?,?>... | true |
8988ea8ee978a3d3b8add18dd293f280b7ce21c9 | Java | jsu624170474/JsuWeb2 | /SJshop/src/com/yqjr/commons/page/Page.java | UTF-8 | 5,134 | 2.78125 | 3 | [] | no_license | package com.yqjr.commons.page;
/**
* Description
* @author Robin
* @version V1.0
* @createDateTime:2014-10-30 11:35:26
* @Company:
* @Copyright: Copyright (c) 2014
**/
public class Page {
// 记录总数
private int counts = -1;
// 每页显示记录数
private int perPageSize = 20;
// 总页数
private int t... | true |
9018c4f73c4dbd2e5e377c2a68b497020178fa74 | Java | romzhel/CertificateBase_SE | /src/main/java/utils/comparation/te/ChangedValue.java | UTF-8 | 264 | 2.109375 | 2 | [] | no_license | package utils.comparation.te;
import lombok.Data;
@Data
public class ChangedValue<E> {
private E oldValue;
private E newValue;
public ChangedValue(E oldValue, E newValue) {
this.oldValue = oldValue;
this.newValue = newValue;
}
}
| true |
514ad1f8ab4a31bb20f1b728190d46ad6974a00f | Java | dsczs/commons | /src/main/java/com/penglecode/common/exception/CustomException.java | UTF-8 | 467 | 2.4375 | 2 | [] | no_license | package com.penglecode.common.exception;
/**
* 自定义的运行时Exception
*
* @author pengpeng
* @date 2014年11月3日 上午11:26:00
* @version 1.0
*/
public abstract class CustomException extends RuntimeException {
private static final long serialVersionUID = 1L;
public CustomException(String message) {... | true |
190124a9dfa72f3d142bf1e6ee1fb45cac507c06 | Java | LuisEduardoReis/JD_EgyptianTomb | /core/src/pt/feup/jd/levels/tileentities/FireballTrap.java | UTF-8 | 1,421 | 2.515625 | 3 | [] | no_license | package pt.feup.jd.levels.tileentities;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import pt.feup.jd.Assets;
import pt.feup.jd.JDGame;
import pt.feup.jd.Util;
import pt.feup.jd.entities.Fireball;
import pt.feup.jd.levels.Level;
public class FireballTrap exte... | true |
704a6604f962c8246eeeaa6c9889f91783e4ed4f | Java | taitaking/LogiCommon | /logi-job-spring-boot-starter/src/main/java/com/didiglobal/logi/job/common/Result.java | UTF-8 | 5,483 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package com.didiglobal.logi.job.common;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.Serializable;
import lombok.Data;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Created by limeng on 2020-04-27.
*/
@Data
public cl... | true |
cfabb34f59dd440bec1e87e268a1660d5354f353 | Java | nuxeo/richfaces-3.3 | /test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/A4jTestBean.java | UTF-8 | 1,736 | 2.140625 | 2 | [] | no_license | /**
* License Agreement.
*
* JBoss RichFaces - Ajax4jsf Component Library
*
* Copyright (C) 2007 Exadel, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation.
*
* ... | true |
8f486e7fab55c782269acae5d15b54902a3927e4 | Java | rvg07/ProgettoPOO | /diadiaTesina/test/it/uniroma3/diadia/comandi/ComandoPrendiTest.java | UTF-8 | 2,365 | 2.40625 | 2 | [] | no_license | package it.uniroma3.diadia.comandi;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
import it.uniroma3.diadia.IOConsole;
import it.uniroma3.diadia.Partita;
import it.uniroma3.diadia.ambienti.Labirinto;
import it.uniroma3.diadia.am... | true |
276118bc1dee0c6ff8d4603e67f9a3f3640c1466 | Java | ShridharMP/SpringBoot-NareshIT | /NamedQuery/src/main/java/com/example/namedquery/model/EmployeeCustomType.java | UTF-8 | 724 | 2.828125 | 3 | [] | no_license | package com.example.namedquery.model;
public class EmployeeCustomType {
private String departmentName;
private double salary;
public EmployeeCustomType() {
}
public EmployeeCustomType(String departmentName, double salary) {
this.departmentName = departmentName;
this.salary = salary;
}
public double get... | true |
e75c5996783fa5485135f56363ede63c842daae6 | Java | jitin153/micro-services-with-api-gateway-example | /attendance-service/src/main/java/com/jitin/collegemgmtsystem/attendanceservice/controller/AttendanceControllerImpl.java | UTF-8 | 1,577 | 2.296875 | 2 | [] | no_license | package com.jitin.collegemgmtsystem.attendanceservice.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import... | true |
6c969e81dfd0aea4902adc0efe0eb3aa7ecf40a8 | Java | surya2879/repo1 | /HappyNewYear/src/webelementprgm/Demo1.java | UTF-8 | 1,205 | 2.359375 | 2 | [] | no_license | package webelementprgm;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class Demo1 {
static
{
System.setProperty("webdriver.chrome.driver", ".//drivers//chromedriver.exe");
}
public st... | true |
058fec554769f94d00ce3a43020d958e8d4c6f10 | Java | crypitor/crypitor-http-client | /src/main/java/org/crypitor/httpclient/exception/CrypitorTimeoutException.java | UTF-8 | 454 | 2.109375 | 2 | [
"MIT"
] | permissive | package org.crypitor.httpclient.exception;
/**
* @author trongcauta
* @time 10:41 AM
* @date 5/24/19
*/
public class CrypitorTimeoutException extends CrypitorCommunicationException {
private static final long serialVersionUID = 147694337695115012L;
public CrypitorTimeoutException(String message) {
... | true |
4fbcec1e792dccdfa6774900e525076d9f4f3436 | Java | yeahia2508/reactive-lazy-loading | /app/src/main/java/com/y34h1a/reactivelazyloading/MainActivity.java | UTF-8 | 1,164 | 2.1875 | 2 | [] | no_license | package com.y34h1a.reactivelazyloading;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import com.y34h1a.reactivelazyloading.fragment.FragmentLazyLoad;
import com.y34h1a.reactivelazyloading.util.RxBus;
import butterknife.BindView;
import butterkni... | true |
e76d6ef5998f638db9fe28bea26157093eed6a43 | Java | geseiche/CS4432_Project_2 | /src/simpledb/index/exhash/ExHashIndex.java | UTF-8 | 12,046 | 2.65625 | 3 | [] | no_license | package simpledb.index.exhash;
import simpledb.tx.Transaction;
import simpledb.record.*;
import simpledb.query.*;
import simpledb.index.Index;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.HashMap;
//CS44... | true |
fed51b4ae71c8bdcb57a39ecdbac9af30303bf9a | Java | SengarWu/MrFruit | /app/src/main/java/com/xpple/fruits/cart/model/server/CartService.java | UTF-8 | 1,978 | 2.125 | 2 | [] | no_license | package com.xpple.fruits.cart.model.server;
import com.xpple.fruits.base.HttpMethods;
import com.xpple.fruits.cart.model.bean.Cart;
import com.xpple.fruits.cart.model.bean.CartResult;
import java.util.List;
import rx.Observable;
import rx.Subscriber;
/**
* Created by Administrator on 2016/11/16.
*/
public class ... | true |
69a196d18d9479f335532407c51412175ab9d3cd | Java | emaciel10/Wikify | /wiki/type/Table.java | UTF-8 | 5,218 | 3.21875 | 3 | [] | no_license | package wiki.type;
import java.util.*;
import java.io.*;
import jxl.*;
import jxl.write.*;
import org.apache.poi.xwpf.usermodel.*;
public class Table extends DataType{
private String[][] table;
private int rows, cols;
/**
* empty constructor
*/
public Table(){
rows = 0;
cols ... | true |
72293408c54591ea0fb305608ae8fdf154f9e8be | Java | fernandodpcarvalho/spring-boot-auth-jwt | /src/main/java/com/security/repositories/UsuarioRepository.java | UTF-8 | 304 | 1.945313 | 2 | [] | no_license | package com.security.repositories;
import javax.transaction.Transactional;
import org.springframework.data.jpa.repository.JpaRepository;
import com.security.entities.Usuario;
@Transactional
public interface UsuarioRepository extends JpaRepository<Usuario, Long> {
Usuario findByEmail(String email);
}
| true |
1291ca6361599cd7f9b38d7bd0b53d5689379a36 | Java | leonnard/gnisio | /src/main/java/net/gnisio/server/SocketIOFrame.java | UTF-8 | 8,574 | 2.40625 | 2 | [] | no_license | /**
* The MIT License
* Copyright (c) 2010 Tad Glines
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, c... | true |
26669a016f06e242fd45a8977937b2274cc6f1c5 | Java | moutainhigh/Fexie-Spring-MVC-Backend | /fexie_openservice/fexie-manage/src/main/java/com/yuzhidi/base/controller/sms/SmsTmplController.java | UTF-8 | 4,392 | 2.046875 | 2 | [] | no_license | package com.yuzhidi.base.controller.sms;
import com.yuzhidi.base.ro.sms.SmsTmplRO;
import com.yuzhidi.base.service.sms.SmsTmplService;
import com.yuzhidi.core.bean.DataTableDTO;
import com.yuzhidi.core.bean.EditorResultDTO;
import com.yuzhidi.core.bean.PageRequest;
import com.yuzhidi.core.bean.ParamValue;
import com.y... | true |
e9c4c736c677004a3d3259194a0080744b992f32 | Java | opencit/opencit | /integration/mtwilson-api/src/main/java/com/intel/mtwilson/datatypes/AssetTagCertRevokeRequest.java | UTF-8 | 614 | 1.632813 | 2 | [
"BSD-3-Clause"
] | permissive | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.intel.mtwilson.datatypes;
import com.fasterxml.jackson.annotation.JsonProperty;
//import org.codehaus.jackson.annotate.JsonProperty;
/**
*
* @author ssbangal
*/
public class AssetTagCertRevokeRequest {
... | true |
8101c893b81771e5fdfe83a335bea84a0e254b61 | Java | GokulJaeger/SRMB1CoreJava | /src/com/srm/cjava/week1/day3/SalaryCal.java | UTF-8 | 933 | 3.59375 | 4 | [] | no_license | package week1.day3;
class Person {
String name;
int age;
int phonenumber;
String address;
int salary;
public void printsalary() {
System.out.println("SALARY" + salary);
}
}
class Employee extends Person {
String specialization;
}
class Manager extends Person {
String depa... | true |
38ac5fad40b337c6aaf25acc0dc341ecb52d6836 | Java | TenLeaves/ccms | /src/main/java/wl/entity/CustomerInfo.java | UTF-8 | 2,749 | 2.3125 | 2 | [] | no_license | package wl.entity;
// 客户信息实体类
public class CustomerInfo {
private String custId; // 客户id
private String complany; // 订购单位
private String name; // 姓名
private String phone;// 移动电话
private String custType; // 客户类型 1:大客户 2:批发商
private String custTypeDes; // 客户类型描述 1:大客户 2:批发商
private String... | true |
aea6b984810c7ccd09bee0fd501ea3748b6e56a7 | Java | natevaughan/storyworlds | /src/main/java/storyworlds/action/ActionFactory.java | UTF-8 | 1,457 | 3.015625 | 3 | [] | no_license | package storyworlds.action;
import storyworlds.exception.UnrecognizedInputException;
public class ActionFactory {
public static Actionable get(String input) throws UnrecognizedInputException {
Action action = parse(input);
switch (action) {
case CREATE:
return new Creat... | true |
7f0697f37c1c513b1610fc2915f8b7559cb52703 | Java | DragonJawad/MDSandbox | /app/src/main/java/com/MDstudios/mdsandbox/ActivityFlexibleUIFrags.java | UTF-8 | 1,306 | 2.25 | 2 | [] | no_license | package com.MDstudios.mdsandbox;
import android.app.Activity;
import android.app.FragmentManager;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
/**
* Created by Jawad Nasser on 8/13/2014.
*/
public class ActivityFlexibleUIFrags extends Activity implements FragmentFlexi... | true |
44ee692a5ab8497d734a7d5f177ba75a23d5a288 | Java | lanstat/Space-Assault | /src/dev/andcamp/spaceassault/Settings.java | UTF-8 | 183 | 1.53125 | 2 | [] | no_license | package dev.andcamp.spaceassault;
public class Settings {
public static int CAMERA_WIDTH = 240;
public static int CAMERA_HEIGHT = 320;
public static String TAG = "Strikers";
}
| true |
325fac5a110f3ef0f36593c1f4faf3625c6c35b9 | Java | mur1lo/Flex | /dividas/src/main/java/com/flex/dividas/service/impl/UsuarioServiceImpl.java | UTF-8 | 1,865 | 2.078125 | 2 | [] | no_license | package com.flex.dividas.service.impl;
import java.util.Arrays;
import java.util.List;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springfram... | true |
8c2ddc2a88cf26b7c937abe21ff1f76d7ad58179 | Java | herojeda/minesweeper-api | /src/main/java/org/hojeda/minesweeper/core/usecase/board/movement/applier/ApplyOpenMovement.java | UTF-8 | 4,490 | 2.265625 | 2 | [] | no_license | package org.hojeda.minesweeper.core.usecase.board.movement.applier;
import org.hojeda.minesweeper.core.entity.board.field.BoardField;
import org.hojeda.minesweeper.core.entity.board.field.MineBoardField;
import org.hojeda.minesweeper.core.repository.board.UpdateBoardFinishedAtRepository;
import org.hojeda.minesweeper.... | true |
c1df78b59dbe47e97602d7bc9ce7426493eda29e | Java | 18965050/oasis | /examples/oasis-web-demo/src/main/java/cn/xyz/chaos/examples/demo/web/controller/membercenter/AttributeController.java | UTF-8 | 3,508 | 2 | 2 | [] | no_license | package cn.xyz.chaos.examples.demo.web.controller.membercenter;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.collections.CollectionUtils;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.beans.factory.annotation.Autowired;
import or... | true |
d063cb3c02551c375cdb708470c4481853e58fd5 | Java | hungho1802/ShoppingCart-SpringBoot | /ASM_Java6/src/main/java/com/poly/service/impl/OrderServiceImpl.java | UTF-8 | 1,896 | 2.40625 | 2 | [] | no_license | package com.poly.service.impl;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.poly.entity.Order;
import com.poly.entity.OrderDetail;
import com.poly.repository.OrderDetailRepository;
import com.poly.re... | true |
6d92ce66a7c180e142c0ed5dc3cb3c7ee32065dc | Java | vishalkale74/workspace | /Day25 S1 Difference/src/Main.java | UTF-8 | 2,031 | 3.4375 | 3 | [] | no_license | import java.io.*;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
public class Main
{
public static void main(String []args)throws Exception
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int b,t;
System.out.println("... | true |
c37cd61d63de053f7608ffc0e6b44d93c3cd854d | Java | humwawe/online-judge | /src/main/java/codeforces/e112/APizzaForces.java | UTF-8 | 356 | 2.640625 | 3 | [
"MIT"
] | permissive | package codeforces.e112;
import fast.io.InputReader;
import fast.io.OutputWriter;
public class APizzaForces {
public void solve(int testNumber, InputReader in, OutputWriter out) {
long n = in.nextLong();
if (n <= 6) {
out.println(15);
return;
}
if (n % 2 == 1) {
n = n + 1;
}
... | true |
6a1da1ff31f8e75c248b0ed54fb6df38b386a475 | Java | chenqi520/leyou | /ly-item/ly-item-interface/src/main/java/com/leyou/item/api/BrandApi.java | UTF-8 | 512 | 1.726563 | 2 | [] | no_license | package com.leyou.item.api;
import com.leyou.item.pojo.Brand;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
/... | true |
9913a1bc2499b1189c4acaa2faacb1e3e7faada7 | Java | edenilson-dev/StarWars | /src/main/java/com/el/starwars/domain/PlanetApiSW.java | UTF-8 | 753 | 2.140625 | 2 | [] | no_license | package com.el.starwars.domain;
import java.io.Serializable;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class PlanetApiSW implements Serializable{
/**
* Edenilsom Mend... | true |
9329e7b2bcc1215b3e1669887d8d522a92a91291 | Java | pablocarle/securitycam | /cam-manager/src/main/java/com/sgrvg/security/rtp/server/RTPPacketHandler.java | UTF-8 | 7,032 | 2.03125 | 2 | [] | no_license | package com.sgrvg.security.rtp.server;
import java.time.Instant;
import java.time.temporal.ChronoUnit;
import java.util.Optional;
import java.util.SortedSet;
import java.util.TreeSet;
import com.google.common.annotations.VisibleForTesting;
import com.google.inject.Inject;
import com.google.inject.name.Named;
import c... | true |
11dedddaa0d6922ca57efac24576ada51d609c92 | Java | vivienkamen/friendsplus | /app/src/test/java/aut/bme/hu/friendsplus/MeetingDetailPresenterTest.java | UTF-8 | 3,940 | 2.265625 | 2 | [] | no_license | package aut.bme.hu.friendsplus;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import aut.bme.hu.friendsplus.model.Meeting;
import aut.bme.hu.friendsplus.ui.meetings.meetingDetails.MeetingDetailPresenter;
import aut.bme.hu.friendsplus.ui.meetings.meetingDetail... | true |
3f142cab574431a4e6ef1e1abfee46ea8fa55e78 | Java | colf03/projetModelisationUML | /src/main/LigneArticle.java | UTF-8 | 603 | 3.09375 | 3 | [] | no_license | package main;
public class LigneArticle {
private Article article;
private int quantite;
private float sousTotal;
/** Constructeur pour cree une ligne d'un article
* @param a article
* @param qte quantite
*/
public LigneArticle(Article a, int qte) {
this.article = a;
... | true |
33fa61bdb5c79dfd5759f274d8829ba8e3735978 | Java | KMenant/TP-SIO-2 | /SLAM4/Java/TP Synthese/src/Lagouna.java | UTF-8 | 148 | 2.1875 | 2 | [] | no_license | public class Lagouna extends Vehicule {
public Lagouna (String nom, double prix){
super(nom, prix);
this.nomMarque=nomMarque.Renault;
}
}
| true |
4637a7d7a6211063cb37f598e6df952d419ccae3 | Java | n0meh9/Spinner | /app/src/main/java/edu/temple/backgroundcolorspinner/ChooseBackgroundColor.java | UTF-8 | 2,502 | 2.328125 | 2 | [] | no_license | package edu.temple.backgroundcolorspinner;
import android.app.Activity;
import android.app.LauncherActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
import android.widget.AdapterView;
imp... | true |
a8726ea7b50938bfa1a43add216f73febad47737 | Java | tuvshinbt/challenges | /src/test/java/bt/pre/algo/problems/top/easy/_013_ReverseIntegerTest.java | UTF-8 | 875 | 2.828125 | 3 | [] | no_license | package bt.pre.algo.problems.top.easy;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
public class _013_ReverseIntegerTest {
private final _013_ReverseInteger solution = new _013_ReverseInteger();
@Test
public void testExample1() {
int num = 123;
int actual ... | true |
30f5bc18687100860790f27027bba3ad5b63f661 | Java | IOIIIO/DisneyPlusSource | /sources/com/bamtechmedia/dominguez/core/content/assets/C3636j.java | UTF-8 | 1,246 | 1.765625 | 2 | [] | no_license | package com.bamtechmedia.dominguez.core.content.assets;
import com.bamtechmedia.dominguez.core.content.collections.C3680n;
import com.bamtechmedia.dominguez.core.content.collections.DmcVideoArt;
import java.util.Map;
import kotlin.TypeCastException;
import p163g.p500m.p501a.C11725h;
import p163g.p500m.p501a.C11737m;
i... | true |
754b42fe2963ad98b9936702f5c8ea577596c19c | Java | theappguruz/Android-Adding-Deleting-and-Retrieving-Contacts-Code-Sample | /src/com/prince/contacts/MainActivity.java | UTF-8 | 2,608 | 2.375 | 2 | [] | no_license | package com.prince.contacts;
import java.util.ArrayList;
import android.app.ListActivity;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import andr... | true |
4fd9398d26ea30f36e8fa0ff5531d4aaf2fedcb0 | Java | lining1995/RedisTest | /src/main/java/servlet/DeleteServlet.java | UTF-8 | 1,446 | 2.40625 | 2 | [] | no_license | package servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import redis.clients.jedis.Jedis;
/**
* Servlet implementation class DeleteServlet
*/
public class ... | true |
c880a6f36033f28e429f57e168c5425c932045c2 | Java | HristoMachikov/02_Software-Technologies | /01_Lab Exercises/11_Java Syntax, Basic Web (Setup Spring, Handle Forms)/11_Exerc/src/VowelOrDigit/VowelOrDigit.java | UTF-8 | 874 | 3.625 | 4 | [] | no_license | package VowelOrDigit;
import java.util.Scanner;
public class VowelOrDigit {
public static void main(String[] args)
{
Scanner console = new Scanner(System.in);
String input = console.nextLine().toLowerCase();
char[] arr = input.toCharArray();
if (arr.length > 1) {
S... | true |
08bf16d1346e0eb7aa92595aebb476b4bd226dbe | Java | Elgirhath/SOA | /lab7/ex1/src/main/java/TopicSender.java | UTF-8 | 635 | 2.25 | 2 | [] | no_license | import org.apache.activemq.artemis.jms.client.ActiveMQTopic;
import javax.annotation.Resource;
import javax.ejb.Stateful;
import javax.ejb.Stateless;
import javax.jms.*;
import javax.inject.Inject;
@Stateless
public class TopicSender {
@Resource(mappedName = "java:/jms/queue/SOA_test")
private Queu... | true |
0109a3917e404520fc2770a8d58d1569959fc376 | Java | zhangbaiwan666/Myproperty | /app/src/main/java/cottee/myproperty/activity/RepairTrackActivity.java | UTF-8 | 4,680 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | package cottee.myproperty.activity;
import android.Manifest;
import android.app.Activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import android.view.... | true |
a6aefe7f68baa7d18ee28d06f5f92527fbc54d92 | Java | mrh0057/mrh-database | /wrapper/src/main/java/net/matthoyt/database/wrapper/ResultSetReader.java | UTF-8 | 3,345 | 3.09375 | 3 | [
"Apache-2.0"
] | permissive | package net.matthoyt.database.wrapper;
import org.joda.time.DateTime;
import java.math.BigDecimal;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
/**
* Wrapper around result set to make it easier to write a code generator.
*/
public class ResultSetReader
{
/**
* Make s... | true |
c50e0c49e21ab892b2946ab63d00d1c4fa31ac91 | Java | fajaryga/Dolan-Yogyakarta | /app/src/main/java/com/fajaryga/doyog/activity/WkulonprogoActivity.java | UTF-8 | 9,662 | 1.914063 | 2 | [] | no_license | package com.fajaryga.doyog.activity;
import android.arch.persistence.room.Room;
import android.content.Intent;
import android.graphics.Color;
import android.net.Uri;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.Ap... | true |
7ad058d5bc09600e2c2b5d0b11468851b625cc83 | Java | lidengyin/statistic | /src/main/java/cn/hctech2006/statistic/mapper/SuggestMapper.java | UTF-8 | 524 | 1.734375 | 2 | [] | no_license | package cn.hctech2006.statistic.mapper;
import cn.hctech2006.statistic.bean.Suggest;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface SuggestMapper {
int deleteByPrimaryKey(Long id);
int insert(Suggest record);
Suggest selectByPrimaryKey(Long id);
List<S... | true |
a3934df4191d4e7bb1169e72156d7ffa6ee7dee1 | Java | MohamedSaafan/java-datastructure | /DataStructure.java | UTF-8 | 4,058 | 3.40625 | 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 datastructure;
/**
*
* @author mohame_saafan
*/
class CharNode {
char value;
public CharNode() {
this(' '... | true |
a20bdb1aa6743aed31e2b43630caba934111dc87 | Java | hillst/MetaStone | /src/net/demilich/metastone/game/logic/ActionLogic.java | UTF-8 | 4,310 | 2.3125 | 2 | [
"MIT"
] | permissive | package net.demilich.metastone.game.logic;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import net.demilich.metastone.game.GameContext;
import net.demilich.metastone.game.GameTag;
import net.demilich.metastone.game.Player;
import net.demilich.metastone.game.TurnState;
impo... | true |
5688eb3e84f71dfd140d02b60defacb1a06356c4 | Java | kertmannik/fortumo-intern-quiz-client | /src/main/java/ee/kertmannik/quiz/client/model/Answer.java | UTF-8 | 482 | 2.296875 | 2 | [] | no_license | package ee.kertmannik.quiz.client.model;
import com.google.gson.annotations.SerializedName;
public class Answer {
@SerializedName("question-id")
private String questionId;
private String answer;
public Answer(String questionId, String answer){
this.questionId = questionId;
this.answe... | true |
812f86acb6506aa6f2741f0b75d3196590ab552a | Java | hxqhTeam/FiamEntrance_Project | /fiamproperty/src/main/java/com/hqxh/fiamproperty/constant/HttpApi.java | UTF-8 | 561 | 1.8125 | 2 | [] | no_license | package com.hqxh.fiamproperty.constant;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
/**
* Created by ljd on 3/25/16.
*/
public interface HttpApi {
@GET("... | true |
34ff0c2be3b333a213686ef34b87bd44ba23f97f | Java | starforever/leetcode | /4/Solution_cutoff.java | UTF-8 | 919 | 3 | 3 | [
"MIT"
] | permissive | public class Solution
{
int findKth (int k, int[] A, int startA, int lenA, int[] B, int startB, int lenB)
{
if (lenA > lenB)
return findKth(k, B, startB, lenB, A, startA, lenA);
if (lenA == 0)
return B[startB + k];
if (k == 0)
return Math.min(A[startA], B[startB]);
int kA = Math.m... | true |
71f806cda59490f548a33ad29431756227515554 | Java | debjava/playground1 | /design-patterns-2018/src/main/java/com/ddlab/rnd/bridge1/AbstractShape.java | UTF-8 | 216 | 2.5625 | 3 | [] | no_license | package com.ddlab.rnd.bridge1;
/** Abstraction */
public abstract class AbstractShape {
protected IColor color;
public AbstractShape(IColor color) {
this.color = color;
}
public abstract void draw();
}
| true |
202eda7f81d1088f3ed5083245314700f909eda1 | Java | g1geordie/Spring-Cloud-Demo | /src/main/java/com/geordie/spring/MavenLauncher.java | UTF-8 | 3,545 | 2.3125 | 2 | [] | no_license | package com.geordie.spring;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.cloud.deployer.resource.maven.MavenResource;
import org.springframework.cloud.deployer.spi.core.AppDefinition;
import org.springframework.cloud.deployer.spi.core.AppDeploymentReque... | true |
8a383dc43e3357e73e03639da5c6000be367ae16 | Java | dro97/tokens | /msecurity-jwt/msecurity-jwt/src/main/java/carpool/jwt/msecurityjwt/controller/HelloResource.java | UTF-8 | 1,188 | 2 | 2 | [] | no_license | /**
*
*/
package carpool.jwt.msecurityjwt.controller;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.core.Context;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springfram... | true |
fcc3c30b3b8e859d535b8eb7306d3da894f122d0 | Java | Nadavkeysar/computer-science-b.a-materials | /מבני נתונים קודים/קודים/practice_sorts/BubbleSort.java | UTF-8 | 563 | 4.03125 | 4 | [] | no_license | package practice_sorts;
import java.util.Arrays;
public class BubbleSort {
public static void bubbleSort(int[] arr) { //O(n^2)
for(int i = 0; i < arr.length; i++) { // O(n)
for(int j = 0; j < arr.length - 1; j++) { //O(n)
if(arr[j] > arr[j + 1]) Functions.swap(arr, j, j + 1)... | true |
e2a977a4d98a5f2a93e2c575c6b3176a88c62f02 | Java | MrAddon/Jira-Calendar-Plugin-By-StatusColors | /calendarmraddonforJira7/src/main/java/com/atlassian/jira/ext/calendar/model/VersionDelegator.java | UTF-8 | 3,433 | 2.296875 | 2 | [] | no_license | package com.atlassian.jira.ext.calendar.model;
import com.atlassian.jira.ofbiz.OfBizDelegator;
import com.atlassian.jira.ofbiz.OfBizListIterator;
import com.atlassian.jira.project.Project;
import com.atlassian.jira.project.version.Version;
import com.atlassian.jira.project.version.VersionManager;
import org.ofbiz.core... | true |