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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
369914ff9e3ebb72bdd9dbc24ba56b53b8b1e83a | Java | modichetan89/GitDemo | /src/ReadDataText.java | UTF-8 | 1,025 | 3.59375 | 4 | [] | no_license | import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Scanner;
public class ReadDataText {
public static void main(String[] args) throws IOException {
//Approach1 - Using file reader and buffered reader
FileReader fr = new FileReader("D:\\E... | true |
89055dc45a6d8d50806c2baadb230848ea2fbd86 | Java | junges521/src_awe | /src/main/java/com/ss/android/ugc/aweme/challenge/data/a.java | UTF-8 | 648 | 1.929688 | 2 | [] | no_license | package com.ss.android.ugc.aweme.challenge.data;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;
import android.arch.persistence.room.Update;
import java.util.List;
@Dao
public interface a {
@Query("SELECT * FROM localHashTag order... | true |
304c48e4a97ecd24367dc73643b024753d3f908d | Java | orlandoburli/skipthedishes-microservices-challen-ge | /services/skipthedishes-orders/src/main/java/com/skipthedishes/orders/exceptions/OrderException.java | UTF-8 | 229 | 1.992188 | 2 | [] | no_license | package com.skipthedishes.orders.exceptions;
public class OrderException extends Exception {
private static final long serialVersionUID = -4971987226756246211L;
public OrderException(String message) {
super(message);
}
}
| true |
b6cf3cac547e2c4aa74209a5a566e6db51e66196 | Java | seanh737/myproject | /src/oo/abstraction/CarTester.java | UTF-8 | 995 | 3.09375 | 3 | [] | no_license | package oo.abstraction;
public class CarTester {
public static void main(String[] args) {
Car c1 = new Car("Toyota", 1800, "Altis", "Sedan");
// c1.brand = "Toyota";
// c1.name = "Altis";
// c1.cc = 1800;
// c1.type = "Sedan";
Car c2 = new Car("HONDA", 2000, "ACCORD", "Sedan");
Car c3 = new Car(... | true |
8dd412e2167de5f7cd2fa3f3af0909bc9d70aa87 | Java | WANGXin1205/computer | /src/main/java/com/growlithe/computer/common/math/BinaryTreeNode.java | UTF-8 | 4,211 | 3.578125 | 4 | [] | no_license | package com.growlithe.computer.common.math;
import java.math.BigDecimal;
/**
* @Author : Growlithe
* @Date : 2018/6/7 19:35
* @Description 二叉树节点
*/
public class BinaryTreeNode {
/**
* 根节点
*/
private Integer root;
/**
* 左节点
*/
private BinaryTreeNode leftNode;
/**
* 右节点... | true |
5701da99a4381ac4088f6f0a8efda788b877c6f0 | Java | diegofreitas11/projeto-curso-spring | /demo-mvc/src/main/java/com/example/demo/dao/DepartamentoDAO.java | UTF-8 | 215 | 1.5 | 2 | [] | no_license | package com.example.demo.dao;
import org.springframework.stereotype.Repository;
import com.example.demo.domain.Departamento;
@Repository
public class DepartamentoDAO extends AbstractDao<Departamento, Long>{
}
| true |
ca176d1a8a72f82e3ab61ee463d05a9681cca1b6 | Java | Marco-Fx/Box | /src/main/java/marco/zlc/dabl/modules/system/service/impl/TestServiceImpl.java | UTF-8 | 653 | 1.859375 | 2 | [] | no_license | package marco.zlc.dabl.modules.system.service.impl;
import marco.zlc.dabl.modules.system.dao.SysTestMapper;
import marco.zlc.dabl.modules.system.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Ma... | true |
784682ece03829c48b506620a49247c569df7ff7 | Java | pnthang01/RealLifeRealGame | /Sources/Utillities/src/main/java/com/rlrg/dataserver/badge/dto/AchievementDTO.java | UTF-8 | 1,325 | 2.390625 | 2 | [] | no_license | package com.rlrg.dataserver.badge.dto;
import java.util.Date;
import com.rlrg.utillities.annotation.JsonDTO;
import com.rlrg.utillities.annotation.JsonExport;
import com.rlrg.utillities.annotation.JsonObject;
@JsonDTO(singularName="Achievement", pluralName="Achievements")
public class AchievementDTO {
@JsonExport(n... | true |
8b154d3daa284992b1290b5a5897da9208e23910 | Java | kenMarquez/DevFB13Android | /ejercicio3pesosadolares/src/main/java/com/ken/ejercicio3pesosadolares/MainActivity.java | UTF-8 | 2,816 | 2.8125 | 3 | [] | no_license | package com.ken.ejercicio3pesosadolares;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity implemen... | true |
6396c153708eea0a60dfd412c88374196d818e96 | Java | shuihuacheng/game-2048 | /src/com/leo/game/number/utils/BinaryUtils.java | UTF-8 | 428 | 3.015625 | 3 | [] | no_license | package com.leo.game.number.utils;
public class BinaryUtils {
// 检查第nPos位置是否为 0
public static boolean checkBinaryPos(int binary, int nPos) {
boolean bResult = (binary & ((int) Math.pow(2, nPos))) == 0;
return bResult;
}
// 将第nPos位置置为0
public static int setBinaryPosZero(int binary, int nPos) {
int nResult =... | true |
040001fcc3f96357f01fd28c3cf64742a29035e3 | Java | akashchandra111/IBM_assignments | /Java_assignment_17_may_19/FindDateDifference.java | UTF-8 | 942 | 3.84375 | 4 | [] | no_license | import java.time.LocalDate;
import java.time.Period;
class FindDateDifference {
public static void main(String[] args) {
System.out.print("Enter Date to find difference with current date [Format: (DD/MM/YYYY)]: ");
String userDate = new java.util.Scanner(System.in).nextLine();
Integer day, month, year;
boole... | true |
c8a6ef6c09d94a7903b3d3c187cb8668d51de3f3 | Java | moutainhigh/asiainfo | /rainbow-basic-dao/src/main/java/com/bdx/rainbow/mapper/jc/DrcMapper.java | UTF-8 | 3,126 | 1.851563 | 2 | [] | no_license | package com.bdx.rainbow.mapper.jc;
import com.bdx.rainbow.entity.jc.Drc;
import com.bdx.rainbow.entity.jc.DrcExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface DrcMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the dat... | true |
136075a25dcc6e06614d3bc596753c5f7fd8e3c6 | Java | HouYW/e3mall_Parent | /e3mall-manager-web/src/main/java/cn/e3mall/controller/ItemController.java | UTF-8 | 1,379 | 2.078125 | 2 | [] | no_license | package cn.e3mall.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind... | true |
8c71d5d2b03ca47da7b655f24ff3ae694fabce46 | Java | zhaoliang-mq/live- | /springboot-payment/src/main/java/com/fh/mapper/PaymentMapper.java | UTF-8 | 174 | 1.546875 | 2 | [] | no_license | package com.fh.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fh.model.Payment;
public interface PaymentMapper extends BaseMapper<Payment> {
}
| true |
fa684955e4e5977dc913caa19ceb5312cbdb6c83 | Java | Managine/simPL-Compiler | /src/simpl/typing/TypeVar.java | UTF-8 | 1,564 | 2.859375 | 3 | [] | no_license | package simpl.typing;
import simpl.parser.Symbol;
public class TypeVar extends Type {
private static int tvcnt = 0;
private boolean equalityType;
private Symbol name;
public TypeVar(boolean equalityType) {
this.equalityType = equalityType;
name = Symbol.symbol("tv" + ++tvcnt);
}... | true |
d004d7252505e4983b36038ff3a9f93e9cafb4e4 | Java | SurferJim/BioMight | /BioMightWeb/src/biomight/cell/epithelial/EpithelialCell.java | UTF-8 | 9,496 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Created on Jul 22, 2006
* Copyright 2006 - Biomight.org
*
* This code is the not to be used without written permission from
* BioMight.org
*
*/
package biomight.cell.epithelial;
import java.lang.reflect.Method;
import java.util.ArrayList;
import biomight.BioMightBase;
import biomight.Co... | true |
35eef1ab73e4af610b7765916dac787e2ffa5e11 | Java | tangchaolibai/mvp | /yours-dev-jenkins/mvp-ms-web/src/main/java/com/hsb/mvpmsweb/validator/PictureTypeValidator.java | UTF-8 | 608 | 2.34375 | 2 | [] | no_license | package com.hsb.mvpmsweb.validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import org.springframework.web.multipart.MultipartFile;
import com.hsb.mvpmsweb.api.annotation.PictureType;
public class PictureTypeValidator implements ConstraintValidator<PictureTyp... | true |
de0973c82f939e1031be8de9038bdb01d0b4cfb2 | Java | mengduancanxiao/FundCollect | /src/main/java/handle/ElasticSearchHandle.java | UTF-8 | 7,023 | 2.265625 | 2 | [] | no_license | package handle;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.*;
import model.FundMain2;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.elasticsearch.action.delete.DeleteResponse;
import org.elasticsearch.action.get.GetResponse;
imp... | true |
f48a6f708d067f3162b96960939458a41a4be667 | Java | ioe7th/JAVA_EE | /前台商城/src/test/java/ShopcartServiceTest.java | UTF-8 | 849 | 2.046875 | 2 | [] | no_license |
import static org.junit.Assert.*;
import java.util.List;
import org.fkit.domain.CartItem;
import org.fkit.service.ShopcartService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
public class ShopcartServiceTest extends BaseJunitTest {
@Autowired
private ShopcartService sho... | true |
cac070d4e087c2ac1370309d88a0179c4a254f87 | Java | srihari1204/spring-feature-toggle | /src/main/java/com/cubic/controller/EmployeeController.java | UTF-8 | 997 | 1.960938 | 2 | [] | no_license | package com.cubic.controller;
import com.cubic.data.Employee;
import com.cubic.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.b... | true |
8a400f8bf6208c5c93913e3da7b30d894482c660 | Java | flyFishOK/spring-boot-study | /src/main/java/com/minbo/springdemo/web/WebConfig.java | UTF-8 | 625 | 2.21875 | 2 | [] | no_license | package com.minbo.springdemo.web;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
/**
* 拦截器定义
* @author Minbo.He
*/
@Configuration
public clas... | true |
07ac2ab08e5522d9c4d6b61662e93bd17d6224da | Java | woweichongzhen/apollo | /apollo-client/src/main/java/com/ctrip/framework/apollo/internals/AbstractConfigFile.java | UTF-8 | 6,122 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package com.ctrip.framework.apollo.internals;
import com.ctrip.framework.apollo.ConfigFile;
import com.ctrip.framework.apollo.ConfigFileChangeListener;
import com.ctrip.framework.apollo.build.ApolloInjector;
import com.ctrip.framework.apollo.core.utils.ApolloThreadFactory;
import com.ctrip.framework.apollo.enums.Confi... | true |
45fa216005f68a815863aca9699ff90bbfa8543c | Java | lzj1995822/jrwm-api | /src/main/java/com/zkf/mysql/repository/SystemUserRepo.java | UTF-8 | 2,670 | 2.03125 | 2 | [] | no_license | package com.zkf.mysql.repository;
import com.zkf.mysql.entity.SysUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository... | true |
20bac8a801a1563f57d432abf089f6d19b600188 | Java | juanmafx/UTN | /111Mil/Enuciado1 Resuelto -111Mil/ej5enu1.java | UTF-8 | 3,199 | 3.59375 | 4 | [] | no_license | /*
5 Postulantes a un empleo
Se tienen los datos de tres postulantes a un empleo,
a los que se les realizó un test de capacitación.
Por cada postulante, se tiene entonces la siguiente información:
nombre del postulante, cantidad total de preguntas que se le realizaron
cantidad de preguntas que contestó correctamen... | true |
5a7a8dc4d1971dee91ed964a9566004412ebd84f | Java | BSK-Baesick/Java-Activity-Outputs | /src/activity/output/ProgramCreation2/JLabelTest.java | UTF-8 | 4,378 | 3.5625 | 4 | [
"MIT"
] | permissive | package activity.output.ProgramCreation2;
import javax.swing.*;
/**
*
* <h1> JFrameTest </h1>
*
* <h2>
* A form application in java with the following features:
* 1.The window title must be your name in uppercase.
* 2.Window size is 300 pixels wide and 300 pixels height
* 3.Must be able to automatically termi... | true |
6bc4a13683f872e32c2cc4f6c5b8070217b1f085 | Java | Lavazz/JavaWeb | /Day2/src/by/trjava/task02/dao/exception/WrongPathException.java | UTF-8 | 276 | 2.265625 | 2 | [] | no_license | package by.trjava.task02.dao.exception;
public class WrongPathException extends Exception {
public WrongPathException(String message){
super(message);
}
public WrongPathException(String message, Throwable cause) {
super(message, cause);
}
}
| true |
410143ea01a15d07194d13d86fdea1e886cb0808 | Java | rlaehgns5399/algorithm | /baekjoon/1000/Q1793.java | UTF-8 | 629 | 3.21875 | 3 | [] | no_license | import java.math.BigInteger;
import java.util.Scanner;
public class Main {
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
BigInteger[] dp = new BigInteger[251];
dp[0] = BigInteger.valueOf(1); // 이거 왜 1?
dp[1] = BigInteger.valueOf(1); // 1
dp[... | true |
063350e76362422eae678136764ec32e7e32c5bf | Java | xiaobaigitb/BlogSystem | /src/main/java/com/duan/blogos/exception/internal/InternalIOException.java | UTF-8 | 378 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package com.duan.blogos.exception.internal;
/**
* Created on 2018/1/15.
* lucene IO操作出错
*
* @author DuanJiaNing
*/
public class InternalIOException extends InternalRuntimeException {
public static final int code = 2;
public InternalIOException(Throwable e) {
super(e, code);
}
public Int... | true |
1fbfa432a45f742f8fe7cbb2b6447150ada6343f | Java | VladKudryshov/Station | /src/main/java/com/epam/training/PhoneStation/service/impl/CallServiceImpl.java | UTF-8 | 1,862 | 2.40625 | 2 | [] | no_license | package com.epam.training.PhoneStation.service.impl;
import com.epam.training.PhoneStation.dao.api.CallDao;
import com.epam.training.PhoneStation.dao.api.UserDao;
import com.epam.training.PhoneStation.entity.CallEntity;
import com.epam.training.PhoneStation.entity.UserEntity;
import com.epam.training.PhoneStation.serv... | true |
815a958bbdf4c72f90072cf7d8077f80bd31b34a | Java | erencetinkayaceng/Adisyon-Otomasyonu-Java- | /src/AnaEkran.java | UTF-8 | 9,460 | 2.15625 | 2 | [] | no_license |
import ekran.KullaniciEkran;
import ekran.YoneticiEkran;
import javax.swing.JOptionPane;
/*
* 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.
*/
/**
*
* @author Cruz
*/
public class A... | true |
885f3cba4405f7d594cf7b6669c047fe6b5c76c5 | Java | notmyfault02/Springboot-RestAPI | /api/src/main/java/com/notmyfault02/api/controller/HelloControllor.java | UTF-8 | 854 | 2.34375 | 2 | [
"MIT"
] | permissive | package com.notmyfault02.api.controller;
import lombok.Getter;
import lombok.Setter;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class HelloControllor {
@GetMapping(val... | true |
1c2ce3af88cfc8dc221889ba36f0c91f0694c42c | Java | ronnelreposo/kbas | /src/controllers/printing/GradesPrintingTemplate.java | UTF-8 | 9,521 | 2.53125 | 3 | [
"MIT"
] | permissive | package controllers.printing;
import functional.core.Tuple;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.print.PageFormat;
import java.awt.print.Printable;
import java.awt.print.PrinterException;
import java.text.SimpleDateFormat;
import java.util.Date;
import javafx.collections.ObservableList... | true |
ac34a27e9ca8c7bb44efeedc33ffa93f1b805ef0 | Java | SunaliBandara/Flog-Game | /GameClientFx/src/main/java/com/nsbm/controller/GameWindowController.java | UTF-8 | 10,624 | 2.3125 | 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 com.nsbm.controller;
import com.nsbm.common.CommonData;
import static com.nsbm.common.CommonData.username;
import com... | true |
56747315b070ff47d34d9ad663c3250bf1ace0c8 | Java | marcoxu/AndroidApps | /myPhone/src/com/snda/myPhone/callLogs.java | GB18030 | 10,421 | 2.265625 | 2 | [] | no_license | /*
* Copyright (c) 2012 Shanda Corporation. All rights reserved.
*
* Created on 2012-01-30.
*/
package com.snda.myPhone;
import java.sql.Date;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import android.app.Activity;
import android.database.Cursor;
import android.gr... | true |
456276899a23aafa371b737e83689ee28fdb3bcc | Java | ngvietan92/blackout_schedule | /app/src/main/java/com/ngvietan/blackoutschedule/activities/HomeActivity.java | UTF-8 | 1,850 | 2.109375 | 2 | [] | no_license | package com.ngvietan.blackoutschedule.activities;
import android.content.SharedPreferences;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import com.ngvietan.blackoutschedule.R;
import com.ngvietan.blackoutschedule.common.CommonMethods... | true |
8cf970c40d55792d110a271cb77eb4dfc8f0b0ab | Java | yizhongliu/SSDPDevice | /common/src/main/java/com/iview/common/base/BaseActivity.java | UTF-8 | 486 | 1.851563 | 2 | [] | no_license | package com.iview.common.base;
import android.os.Bundle;
import android.util.Log;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
/**
* 项目父Activity
*/
public class BaseActivity extends AppCompatActivity {
private final static String TAG = "BaseActivity";
@Override
... | true |
7070e0fda799040e98586e363fa19f4b07635a5d | Java | Linliangkung/MobileSafe | /src/com/jsako/mobilesafe/NumberAddressQueryActivity.java | GB18030 | 2,203 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package com.jsako.mobilesafe;
import com.jsako.mobilesafe.db.dao.NumberAddressQueryUtils;
import android.app.Activity;
import android.os.Bundle;
import android.os.Vibrator;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.util.Log;
import android.view.View;
... | true |
bae87b5ba461cf85e2e238715d8d415bebd815ef | Java | jwatters1981/VisualInfrastructure | /src/main/java/com/watters/WidgetController.java | UTF-8 | 753 | 2.1875 | 2 | [] | no_license | package com.watters;
import com.watters.infrastructure.model.Database;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springfr... | true |
49fa4dd736f7a572d90fbf14c01f90e2045f7a0f | Java | charlefire/winnu-pim | /winnupim/src/java/winnu/gui/EditUserPanel.java | UTF-8 | 13,586 | 2.375 | 2 | [] | no_license |
package winnu.gui;
import javax.swing.JOptionPane;
import winnu.control.WinnuControl;
import winnu.dao.User;
@SuppressWarnings("serial")
public class EditUserPanel extends javax.swing.JPanel {
private WinnuControl control;
private MainForm mainform;
/** Creates new form EditUserPanel */
public EditUserPa... | true |
21c8af9baa524c3b3ff929b8117b544476dbe2df | Java | BartoszMiskiewicz/MyProject | /src/main/java/pl/sdacademy/sort/SortAlgorithm.java | UTF-8 | 911 | 2.703125 | 3 | [] | no_license | package pl.sdacademy.sort;
public class SortAlgorithm implements ISortAlgorithm {
public SortAlgorithm() {
// TODO Auto-generated constructor stub
}
// TODO Zaimplementuj ponizszy pseudokod
// procedure BubbleSort( var a: array of TItemBubbleSort );
// var
// n, newn, i:integer;
// begin
// n := high( a );... | true |
c5cb74e4c0a956dda01c16c90881a1254622140d | Java | lujiango/RefactoringInJava | /src/_06/_06_02_InlineMethod.java | GB18030 | 613 | 3.5 | 4 | [] | no_license | package _06;
/**
* Inline Method()<br>
* һıͬ<br>
* ںõ뺯壬ȻƳú<br>
* ҳõļӲ㣬ͬʱЩõļӲȥ
*
* @author lujiang
*
*/
public class _06_02_InlineMethod {
private int numberOfLateDeliveries;
boolean moreThanFiveLateDeliveries() {
return numberOfLateDeliveries > 5;
}
int getRating() {
return (moreThanFiveLateDeliver... | true |
52e3ff11cee4ec0c6166e08c1abaf3bbf98b431c | Java | BETAJIb/Studious | /gameserver/src/main/java/l2s/gameserver/network/l2/c2s/RequestFriendInvite.java | UTF-8 | 921 | 2.21875 | 2 | [] | no_license | package l2s.gameserver.network.l2.c2s;
import l2s.gameserver.model.Player;
import l2s.gameserver.model.World;
import l2s.gameserver.network.l2.components.IBroadcastPacket;
import l2s.gameserver.network.l2.components.SystemMsg;
import org.apache.commons.lang3.StringUtils;
public class RequestFriendInvite extends L2Ga... | true |
0e87a325b5349028e810f01215d837f3382e4d1d | Java | kiomnd2/test-driven-code | /src/main/java/org/kiomnd2/java/SniperSnapshot.java | UTF-8 | 2,043 | 2.921875 | 3 | [] | no_license | package org.kiomnd2.java;
import com.objogate.exception.Defect;
public class SniperSnapshot {
public final String item ;
public final int lastPrice;
public final int lastBid;
public final SniperState state;
public SniperSnapshot(String item, int lastPrice, int lastBid, SniperState state){
... | true |
9763dd374ad8dc779b7a5c818a5b44c26104a2d4 | Java | miikko/Ajanhallinta_projekti | /Tietokanta/database/SittingManager.java | UTF-8 | 1,378 | 3.171875 | 3 | [] | no_license | package database;
import java.util.HashSet;
/**This Thread-class is responsible for sending updates concerning the current sitting to the database.
* @author miikk
*
*/
public class SittingManager extends Thread{
private enum TaskType {
CREATE_SITTING,
UPDATE_SITTING,
CREATE_WINDOWTIME,
UPDATE_WINDOWT... | true |
c7dc4293b0d2e491cf5be957b0cc82154bf0218d | Java | puck-ini/leetcode | /src/leetcode/sort/InsertSort.java | UTF-8 | 942 | 4.03125 | 4 | [] | no_license | package leetcode.sort;
/**
* 插入排序
* 将数据分为两部分,左边为有序的部分,右边为无序部分,从右边无序部分选择一个数,插入有序部分相应的位置中
*/
public class InsertSort {
public static void sort(int[] nums){
int len = nums.length;
//从1开始是因为可以把索引为0的地方当作有序的部分
for (int i = 1; i < len; i++){
int value = nums[i];
int j ... | true |
84c98bda3b1b0dd6d02d53e19e3e7269fddd4431 | Java | RamziJabali/data-structures-java | /src/test/java/RStringTest.java | UTF-8 | 1,907 | 2.609375 | 3 | [
"MIT"
] | permissive | import org.junit.Assert;
import org.junit.Test;
public class RStringTest {
@Test
public void testGetRCharArray() {
RString rString = new RString("hello");
RChar[] rChars = new RChar[5];
rChars[0] = new RChar('h');
rChars[1] = new RChar('e');
rChars[2] = new RChar('l');
... | true |
14a9878be72a830fd55e3ced73bc7b6e623b7fa3 | Java | palotas/seleniumtraining | /src/test/java/jsonWireProtocol/JsonWireP.java | UTF-8 | 4,227 | 2.453125 | 2 | [] | no_license | package jsonWireProtocol;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.... | true |
f3d1b45e79fc0a6adf73dcab966a0e18546f02be | Java | hongyi0609/MeiTuanEdwin | /android/app/src/main/java/com/common/react/HomeReactPackage.java | UTF-8 | 1,482 | 2.328125 | 2 | [
"MIT"
] | permissive | package com.common.react;
import com.common.react.viewManager.ReactTextViewManager;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import java.util.ArrayList;
import java.... | true |
72404c364a55ed1258ed768ce0c22ce3373fb4b8 | Java | HutnikMaksim/forMaxim | /src/by/it/kolesnikov/jd02_02/Buyer.java | UTF-8 | 2,789 | 3.265625 | 3 | [] | no_license | package by.it.kolesnikov.jd02_02;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
class Buyer extends Thread implements IBuyer, IUseBasket {
private boolean waiting;
Buyer(int number){
this.setName("Buyer №"+number);
Supervisor.addBuyer();
waiting =false;
... | true |
169d219b05a380c46671ea0fff3c803f2b2d1faa | Java | dzonekl/netxstudio | /screens/com.netxforge.netxstudio.common/src/com/netxforge/netxstudio/common/model/NetxresourceSummary.java | UTF-8 | 4,414 | 1.8125 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 31 jan. 2013 NetXForge.
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 ... | true |
19c4b63decae3f23ddb88036df133eeb99837a49 | Java | pgupta221286/ApplitoolsHackathon | /src/test/java/pageObjects/Applifashion.java | UTF-8 | 2,200 | 2.015625 | 2 | [] | no_license | package pageObjects;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
public class Applifashion{
WebDriver webDriver;
String device;
public String main_logo = "IMG____9";
public String search_box = "DIV__customsear__41";
public String menu_bar = "DIV__mainmenu__15";
public String wishlist ... | true |
29b4e9bdc9c58162a6d1c0a63a0f7c45ce22af5c | Java | andredupontg/UsuariosRESTfulAPI | /src/main/java/com/andredupont/apiRest/controllers/UsuarioCtr.java | UTF-8 | 1,388 | 2.5 | 2 | [] | no_license | package com.andredupont.apiRest.controllers;
import com.andredupont.apiRest.models.Usuario;
import com.andredupont.apiRest.services.UsuarioSrv;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.ArrayList;
import java.util.Optional;
@Rest... | true |
2f56243bfad513eaad9a20377af043846afda257 | Java | vmihnyuk/cars | /src/test/java/framework/PropertyReader.java | UTF-8 | 1,187 | 2.796875 | 3 | [] | no_license | package framework;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
public class PropertyReader {
private static FileInputStream fileInputStream;
private static Properties property;
private static Logg... | true |
2e19ed27c51973ba575c43bc781a0f84407f03c7 | Java | Folenik/Random-Figures-List-Generator | /app/src/main/java/com/dawidredel/myapplication/Models/Figure.java | UTF-8 | 3,306 | 3.5 | 4 | [] | no_license | package com.dawidredel.myapplication.Models;
import java.util.Random;
//klasa zawierająca w sobie same settery i gettery
//jest to pojedynczy element na liście
public class Figure {
private Integer firstrandom, secondrandom; // beda używane w konstruktorze domyslnym (public Figure ponizej)
int randomNumber =... | true |
96ff60e85ea05bc6d3176b555f2f1908c69941c7 | Java | sangeethkumarasp/javaprog | /12DDEC18/src/sangeethjava/Prog2.java | UTF-8 | 758 | 2.9375 | 3 | [] | no_license | package sangeethjava;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class Prog2 {
public static void main(String[] args) {
// TODO Auto-generated method stub
List<Stuudent>li=new ArrayList<Stuudent>();
li.add(new Stuudent(10,"sangeeth",14));
li.add(n... | true |
56b5a6f353c5d50471973e6f3bf57ba9da59b8c4 | Java | dehrgg/spring-todos | /src/main/java/com/dehrg/todos/model/TaskList.java | UTF-8 | 249 | 2.125 | 2 | [] | no_license | package com.dehrg.todos.model;
import java.util.Set;
public interface TaskList extends PersistentEntity<Long> {
public String getName();
public void setName(String name);
public Set<Task> getTasks();
public void setTasks(Set<Task> tasks);
}
| true |
50f8bf9bb7cc55f31bacad629a24413d238bef57 | Java | pwm2017/pwm | /eureca/src/it/unirc/pwm/eureca/action/socio/UpdateTessera.java | UTF-8 | 930 | 2.140625 | 2 | [] | no_license | package it.unirc.pwm.eureca.action.socio;
import com.opensymphony.xwork2.ActionSupport;
import it.unirc.pwm.eureca.tessera.dao.TesseraDAOFactory;
import it.unirc.pwm.eureca.tessera.dao.TesseraDAOInterface;
import it.unirc.pwm.eureca.tessera.model.Tessera;
public class UpdateTessera extends ActionSupport
{
p... | true |
e0f8a8cb8d774d00cc3f4a70401231b656fe3850 | Java | Osamasaqr84/lord | /app/src/main/java/com/codesroots/hossam/lordApp/dataLayer/repositories/CategoryRepository.java | UTF-8 | 5,572 | 2.359375 | 2 | [] | no_license | package com.codesroots.hossam.lordApp.dataLayer.repositories;
import android.support.v4.util.Consumer;
import android.util.Log;
import com.codesroots.hossam.lordApp.dataLayer.apiData.ApiInterface;
import com.codesroots.hossam.lordApp.entities.BestOffers;
import com.codesroots.hossam.lordApp.entities.Categories;
impor... | true |
32f615aaab34afd5a8fa0f32f897b3ed383e6a19 | Java | wang-shun/ecom-maindir | /ecom-cms/src/main/java/com/cn/thinkx/ecom/order/service/OrderInfService.java | UTF-8 | 1,110 | 1.726563 | 2 | [] | no_license | package com.cn.thinkx.ecom.order.service;
import java.util.List;
import com.cn.thinkx.ecom.common.service.BaseService;
import com.cn.thinkx.ecom.order.domain.OrderInf;
import com.github.pagehelper.PageInfo;
public interface OrderInfService extends BaseService<OrderInf> {
/**
* 电商交易流水明细
*
* @return
*/
Li... | true |
67404082507968b8e50300bd2f72aa43ce9fbb40 | Java | bhupenderkumar/java-compiler | /java-compiler-data/src/main/java/files/entities/File.java | UTF-8 | 5,173 | 2.171875 | 2 | [] | no_license | package files.entities;
import files.queries.Queries;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
/**
* Created by Kacper on 2014-10-09.
*/
@NamedQueries({
@NamedQuery(name = Queries.FILE_BY_ID,
query = "select f from File f where f.id = :id"),
@NamedQuery(na... | true |
61a3c26d96b173ca3f6ce929c402e889c971ac3f | Java | stellar/java-stellar-sdk | /src/main/java/org/stellar/sdk/responses/operations/ChangeTrustOperationResponse.java | UTF-8 | 1,741 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package org.stellar.sdk.responses.operations;
import static org.stellar.sdk.Asset.create;
import com.google.common.base.Optional;
import com.google.gson.annotations.SerializedName;
import java.math.BigInteger;
import org.stellar.sdk.Asset;
import org.stellar.sdk.responses.MuxedAccount;
/**
* Represents ChangeTrust ... | true |
ba757a87165e18146e89b019d3240b2d121cd090 | Java | dharmendrams84/POSBaseCode | /src/oracle/retail/stores/pos/ado/utility/TypesafeEnumIfc.java | UTF-8 | 1,784 | 1.757813 | 2 | [] | no_license | /* ===========================================================================
* Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.
* ===========================================================================
* $Header: rgbustores/applications/pos/src/oracle/retail/stores/pos/ado/utility/T... | true |
e59f3dd8f64ac54df643e091562bb8cfba8330e8 | Java | lee-jung-beom/Java | /src/e_oop/SampleClass.java | UTF-8 | 1,264 | 3.6875 | 4 | [] | no_license | package e_oop;
public class SampleClass {
// int field;
//메소드 안에 있는 변수를 "지역변수"라 한다.
//메소드 밖에 있는 변수를 "전역변수"라 한다.
// public static void main(String[] args) {
// int local = 10;
// }
/*
* - 메서드 : 변수를 가지고 할 일
* - 선언 방법 : 리턴타입 메서드명(파라미터){}
* - 파라미터(매개변수) : 실행에 필요한 정보
* - 리턴타입(반환타입) : 실행 후 돌려줘야하는 결과물
*/
// ... | true |
542b640d336fb8f586535433065c55241bbe3212 | Java | Lorandi/cwi-reset-03-level1 | /Modulo2/src/aula04/Cliente.java | UTF-8 | 217 | 2.203125 | 2 | [] | no_license | package aula04;
import java.net.HttpURLConnection;
public class Cliente {
private int idade;
private int nome;
public Cliente(int idade) {
this.idade = idade;
this.nome = nome;
}
}
| true |
6d485a2d9d8aeaeba2afc54bcd4d942f5a81238d | Java | SidhuAmn/project1 | /src/game/CardTest.java | UTF-8 | 6,060 | 2.671875 | 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 GinRummy;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass... | true |
b8e862b01c6ea768a49ad30d3649e99d0f50570e | Java | mostafaeweda/advanced-search-techniques | / advancedsearchingtechniquesmostafaeweda/Searching/src/search/methods/BinarySearchTest.java | UTF-8 | 2,057 | 2.8125 | 3 | [] | no_license | package search.methods;
import junit.framework.TestCase;
import list.AbstractList;
import list.SortedList;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import search.compartors.IntegerCompartor;
public class BinarySe... | true |
8dbd1d26e62718bde275f1a11eb4f1d2620c7eb0 | Java | xiansenxuan/bilibili-for-app | /app/src/main/java/com/xuan/myframework/rx/http/CacheProviders.java | UTF-8 | 4,423 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | package com.xuan.myframework.rx.http;
import com.xuan.myframework.view.modle.response.BangumiCommentsModle;
import com.xuan.myframework.view.modle.response.BangumiDetailModle;
import com.xuan.myframework.view.modle.response.BangumiDetailsRecommendedModle;
import com.xuan.myframework.view.modle.response.BangumiIndexMod... | true |
5c043ff768da880e4037da7d2932c889f343a9ba | Java | easyGuyLyn/lt_b_pai | /app/src/main/java/com/dawoo/lotterybox/adapter/lhc/LHCBaseAdapter.java | UTF-8 | 8,107 | 2.21875 | 2 | [] | no_license | package com.dawoo.lotterybox.adapter.lhc;
import android.support.annotation.NonNull;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
impo... | true |
cb5b1a304fcc9f3daaca9ce6f1335d525d8cd69e | Java | aviorbarkan/CPS | /src/core/guiUtilities/FloatNumberTextField.java | UTF-8 | 782 | 2.859375 | 3 | [] | no_license | package core.guiUtilities;
import javafx.scene.control.TextField;
public class FloatNumberTextField extends TextField {
private final String FloatNumberRegex = "^(\\d*[.])?\\d+$";
@Override
public void replaceText(int start, int end, String text) {
if (validate(text)) {
super.replaceText(start, end, text);
... | true |
cca796bd8c20f9cc12701050aa966ddd07ce8e2e | Java | codingliang/tist | /src/njxzc/royxu/dao/GroupMemberDao.java | UTF-8 | 1,109 | 2.171875 | 2 | [] | no_license | package njxzc.royxu.dao;
import javax.annotation.Resource;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Repository;
import com.core.BaseDao;
import njxzc.royxu.domain.GroupMember;
... | true |
2ffde6d0e020db51215101a6f11c162bcf00467d | Java | MorningCoffee/GuavaLabs | /guava-labs/src/test/java/com/morningcoffee/guava/OptionalTest.java | UTF-8 | 5,384 | 3.296875 | 3 | [] | no_license | package com.morningcoffee.guava;
import com.google.common.base.Optional;
import org.junit.Test;
import static junit.framework.Assert.*;
/**
* Exploring Optional type that fight null-driven development designs
*
* @see <a href="https://code.google.com/p/guava-libraries/wiki/UsingAndAvoidingNullExplained">Guava Gu... | true |
4eeb70e8cf6fd4e50559ff93617882f54b274369 | Java | lussei/Articulos | /src/main/java/articulos/DataAccess/Articulos.java | UTF-8 | 2,266 | 2.234375 | 2 | [] | no_license | package articulos.DataAccess;
import articulos.Data.Articulo;
import org.elasticsearch.action.search.SearchRequestBuilder;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.client.transport.TransportClient;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common... | true |
8dfbd534165b02e615a31edf3287c6701b17e44e | Java | Lonsiege/prn_parser | /prn-parser/src/main/java/com/develeap/excercise/Main.java | UTF-8 | 1,240 | 3.015625 | 3 | [] | no_license | package com.develeap.excercise;
import java.io.IOException;
import com.develeap.excercise.controller.LibraryOperations;
import com.develeap.excercise.controller.MyLibrary;
import com.develeap.excercise.util.LibraryParser;
import com.develeap.excercise.util.PrnParser;
public class Main {
public static void... | true |
a388f0269aafb3e649894bbee7c121c611e935f0 | Java | markgaffo/SampleMonitoringApp | /src/SampleMonitoring/RegisterGUI.java | UTF-8 | 16,300 | 2.3125 | 2 | [] | no_license | package SampleMonitoring;
import SampleMonitoringGUI.CsvDBConnection;
import java.awt.Color;
import java.awt.event.KeyEvent;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import ja... | true |
f9e4be2a71c2abb40a4984febf20218f88272bfd | Java | Qianfugen/ctms | /manage/src/main/java/com/zl/pojo/UsualColl.java | UTF-8 | 448 | 1.757813 | 2 | [] | no_license | package com.zl.pojo;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* @author junqi
* 常用收款人
*/
public class UsualColl implements Serializable {
/**
* 自己账号
*/
private String mainAcc;
/**
* 收款人账号
*/
private String accIn;
/**
* 收款人用户名
*/
private Str... | true |
b678a215e2778f3472b55dc61ee263ac7681ca7d | Java | Valentin-04/Qase | /src/test/java/tests/AuthorizationTest.java | UTF-8 | 227 | 1.828125 | 2 | [] | no_license | package tests;
import org.testng.annotations.Test;
public class AuthorizationTest extends BaseTest {
@Test(description = "User authorization")
public void login() {
loginSteps.login(EMAIL, PASSWORD);
}
}
| true |
41b999b75a9c9169e8f31ae133c8ff85b433257a | Java | zhanghuijun1988/WikiPageReader | /src/main/Reader.java | UTF-8 | 4,350 | 3.328125 | 3 | [] | no_license | package main;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
/*
* Author: Huijun Zhang
* This WikiReader project is sending 100 GET requests to wikipedia main page with 100 threads and calculate response time
*/
public class Reader {
private final stati... | true |
ac2540148ad5de720d9cb264a8c99b53bdf5fff1 | Java | jdufner/gudoku | /gudoku/src/net/sf/gudoku/client/dto/Sudoku.java | ISO-8859-1 | 3,773 | 2.609375 | 3 | [] | no_license | // $Id: Sudoku.java,v 1.7 2009/11/11 23:11:22 jdufner Exp $
/*
* Gudoku (http://sourceforge.net/projects/gudoku)
* Sudoku-Implementierung auf Basis des Google Webtoolkit
* (http://code.google.com/webtoolkit/). Die Lsungsalgorithmen in Java laufen
* parallel. Die Sudoku-Rtsel werden mittels JDBC in einer Da... | true |
6fb03d0840695c3c748219f8654477777b29fabd | Java | parieses/studyJava | /src/secondLearning/ArrayListTest.java | UTF-8 | 959 | 3.453125 | 3 | [] | no_license | package secondLearning;
import java.util.ArrayList;
import java.util.List;
public class ArrayListTest {
public static void main(String[] args) {
//jdk1.7开始右侧的尖括号内部可以不写内容
ArrayList<String> arrayList = new ArrayList<>();
System.out.println(arrayList);//[]
arrayList.add("抢完");
... | true |
b0b7f240f3ebb6b989e4512d223a9376730ca110 | Java | jacsme/APIRepository | /WOMAPIRest/src/main/java/com/wom/api/services/LoginService.java | UTF-8 | 562 | 1.773438 | 2 | [] | no_license | package com.wom.api.services;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.codehaus.jettison.json.JSONArray;
public interface LoginService {
public JSONArray getAppVersion() throws Exception;
public JSONArray getLoginUser(String userId, String password, St... | true |
03ef934adf3558ef2a915fe2a64f6b49e5d06264 | Java | tangtian8/JAVA-000 | /Week_05/helloword-springbean/src/main/java/top/tangtian/springbean/springbean06/Role6_3.java | UTF-8 | 431 | 2.046875 | 2 | [] | no_license | package top.tangtian.springbean.springbean06;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author tangtian
* @version 1.0
* @className Role6_3
* @description
* @date 2020/11/16 8:53 AM
**/
public class Role6_3 {
private static final Logger LOG = LoggerFactory.getLogger(Role6_3.class);
... | true |
c446fe4012c6f27972e2c27f86f7e0219830067e | Java | SaiquaAslam/FinalSprint2 | /src/main/java/com/cg/main/exception/PlantNotFoundException.java | UTF-8 | 306 | 2 | 2 | [] | no_license | package com.cg.main.exception;
/**
* @author Saiqua Aslam
*
*/
//customise exception class
public class PlantNotFoundException extends RuntimeException {
public PlantNotFoundException() {
// TODO Auto-generated constructor stub
}
public PlantNotFoundException(String message) {
super(message);
}
} | true |
bbf04c39850c2021dca32ee7b405b4ca63027e00 | Java | hxt532084126/Project-first | /little-codes4/src/cn/itcast/login/filter/UserFilter.java | UTF-8 | 2,666 | 2.5625 | 3 | [] | no_license | package cn.itcast.login.filter;
import java.io.IOException;
import java.util.ResourceBundle;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
im... | true |
38ad3d8a018aaf1ed9523482a49a6b29e9b41691 | Java | IbraLM/public_transport | /tst/TestPosition.java | UTF-8 | 1,528 | 2.515625 | 3 | [] | no_license | package tec;
class TestPosition{
public void testPassagerDehorsl(){
Position posDehors = Position.dehors();
assert posDehors.estDehors()==true : "Test de estDehors avec passager dehors, attend vrai\n";
assert posDehors.estInterieur()==false : "Test de estInterieur avec passager dehors, attend faux\n";
asser... | true |
71df6d252f9f0d9a975848b758c95ba29056a988 | Java | ishimweChris/stock | /src/main/java/com/invetory/stock/controller/CashierController.java | UTF-8 | 553 | 1.890625 | 2 | [] | no_license | package com.invetory.stock.controller;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import com.invetory.stock.service.CashierService;
@Controller
@RequestMapping("cashie... | true |
d770b46f7fd19c728747adf886ee8b0ef9b8467f | Java | sivanaya/JAVA-airplane | /TicketsSales.java | UTF-8 | 1,079 | 2.984375 | 3 | [] | no_license |
public class TicketsSales {
protected String FlightNumber;
protected int SoldTo;
protected int numberOfTickets;
public TicketsSales( String FlightNumber, int SoldTo , int numberOfTickets){
this.FlightNumber = FlightNumber;
this.SoldTo = SoldTo;
this.numberOfTickets = numberOfTickets;
} /... | true |
e48bd94d29b1ed03a0be6f7ed2c368893c681016 | Java | leapframework/framework | /base/core/src/main/java/leap/core/i18n/AbstractMessageReader.java | UTF-8 | 1,213 | 1.664063 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018 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... | true |
89b2d175aeaba5706e69fc15ca9933c39e26d79f | Java | franqlin/product_image | /src/main/java/com/anhtran/productimage/resource/impl/ImageResourceImpl.java | UTF-8 | 1,957 | 2.0625 | 2 | [] | no_license | /*
* This work is free software; you can redistribute it and/or
* modify it under the terms of the Apache License as published
* by the Apache Software Foundation.
*
* This work is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY... | true |
953b1f95043e7d95fbadc8e56f872becc4826562 | Java | amitmnnit91/ChatApplication | /src/main/java/com/my/chatapp/WebSocketEventListener.java | UTF-8 | 750 | 2.03125 | 2 | [] | no_license | package com.my.chatapp;
import org.springframework.context.event.EventListener;
import org.springframework.messaging.simp.stomp.StompHeaderAccessor;
import org.springframework.stereotype.Component;
import org.springframework.web.socket.messaging.SessionDisconnectEvent;
@Component
public class WebSocketEventListener {... | true |
cf0dc9e59ff6f3e3dc5247c4bf22b27f60a94e1a | Java | astghikhay/newsolearn | /app/src/main/java/com/astghik/newsolearn/models/Result.java | UTF-8 | 1,637 | 2.296875 | 2 | [] | no_license | package com.astghik.newsolearn.models;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import java.util.List;
public class Result implements Parcelable, Serializable {
@Expose
... | true |
763d103d361d66a2d9ff6ee8968705379a5ccc61 | Java | Dazhi528/ZxingScan | /scan/src/main/java/com/dazhi/scan/decoding/DecodeFormatManager.java | UTF-8 | 1,266 | 2.15625 | 2 | [] | no_license | package com.dazhi.scan.decoding;
import com.google.zxing.BarcodeFormat;
import java.util.Vector;
public class DecodeFormatManager {
private DecodeFormatManager() { }
//
private static final Vector<BarcodeFormat> PRODUCT_FORMATS;
public static final Vector<BarcodeFormat> ONE_D_FORMATS;
public stati... | true |
b944dd8a33061b8ea2ac3f2e9fbcabcfba3bd635 | Java | Vyacheslav1024/LoveThisWorkQAAutomation | /src/test/java/lesson5/TestServer.java | UTF-8 | 1,840 | 3.328125 | 3 | [] | no_license | package test.java.lesson5;
import main.java.lesson5.app.Server;
import org.testng.annotations.Test;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertTrue;
public class TestServer {
public static void beforeMethod() {
}
@Test
public void getUsersShouldReturnProper... | true |
e39a97113110cc4ad139591dc84fecebbf283a02 | Java | condenl/inspt-guarderiac-backend | /guarderia-caracol/src/main/java/com/inspt/guarderiacaracol/dto/PhotoDTO.java | UTF-8 | 757 | 2.46875 | 2 | [] | no_license | package com.inspt.guarderiacaracol.dto;
import org.springframework.web.multipart.MultipartFile;
import com.inspt.guarderiacaracol.domain.Photo;
/**
* It never holds both the id and the file data,
* when uploading a new photo the file will be set but not the id,
* when getting the image the id will be s... | true |
95ce86a5e55fbd9a27967986529455b4799a7ae2 | Java | orf1888/Subiekt | /src/main/java/widok/abstrakt/PanelEdytujDodajObiekt.java | UTF-8 | 433 | 2.015625 | 2 | [] | no_license | package widok.abstrakt;
import javax.swing.JDialog;
import javax.swing.JPanel;
import model.ObiektZId;
public abstract class PanelEdytujDodajObiekt extends JPanel
{
private static final long serialVersionUID = 2635368817417751702L;
public abstract void uzupelnijFormatke(Object obiekt, JDialog parent);
... | true |
f1f74abcee8a8f2b11533e6d48b8c4935a697cb7 | Java | tomasfelder/PatronesGOF | /EjerciciosPatrones/comportamiento/visitor/ProductoNormal.java | UTF-8 | 479 | 3.1875 | 3 | [] | no_license | package visitor;
public class ProductoNormal implements Visitable {
private double precio;
public ProductoNormal(double precio){
this.setPrecio(precio);
}
@Override
public double aceptar(Visitor v) {
// TODO Auto-generated method stub
return v.visitar(this);
}
/**
* @return the precio
*/
public... | true |
fa3d48988b396138116ce46b8984d3c030b47ca6 | Java | xrewndel/nkt | /GAStarter/src/gastarter/ParamsParser.java | UTF-8 | 12,293 | 2.5 | 2 | [] | no_license | package gastarter;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.HashMap;
import java.util.Map;
/**
* @author Andrew
GA:
-cfg config (ga3.cfg)
-c crossover (0 - no, 1 - yes)
-m mutation (0 - no, 1 - yes)
-p population size
-g generations
-f work files
GAStarter:
-r repeat
-c... | true |
e256a0e2f390569aa275b733fd2d3a6a4d7d1c1e | Java | Kerbaya/locajapa | /locajapa/src/main/java/com/kerbaya/locajapa/ValueResolver.java | UTF-8 | 2,193 | 2.109375 | 2 | [] | no_license | /*
* Copyright 2019 Kerbaya Software
*
* This file is part of locajapa.
*
* locajapa is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) an... | true |
e319a9e7e005718f7a26d37e34fee04174d07fa6 | Java | kiribeam/practices | /Practices/src/ThinkingInJava/c18/LargeMappedFiles.java | UTF-8 | 521 | 3.109375 | 3 | [] | no_license | import java.nio.*;
import java.nio.channels.*;
import java.io.*;
public class LargeMappedFiles{
static int length = 0x8ffffff;
public static void main(String[] args)throws Exception{
MappedByteBuffer out = new RandomAccessFile("test.dat", "rw").getChannel().
map(FileChannel.MapMode.READ_WRITE, 0, length)... | true |
d92856c0ddb8a96867aab59b8327066aaee09448 | Java | codingmaster/ProductRecommender3 | /src/main/java/de/hpi/semrecsys/similarity/ProductSimilarity.java | UTF-8 | 1,403 | 2.671875 | 3 | [] | no_license | package de.hpi.semrecsys.similarity;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import de.hpi.semrecsys.model.Product;
import de.hpi.semrecsys.utils.CollectionUtils;
public class ProductSimilarity {
private final Product initialProduct;
private List<Attribut... | true |
2b8883a2034e92c65338e2ce6096f79dec283618 | Java | ngochuy200596/Library | /src/main/java/com/html5/library/model/Category.java | UTF-8 | 378 | 1.976563 | 2 | [] | no_license | package com.html5.library.model;
import lombok.Data;
import javax.persistence.*;
/**
* Created by NGOCHUY-PC on 12/9/2016.
*/
@Entity
@Table(name="category")
@Data
public class Category {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long categoryID;
private String categoryName;
p... | true |