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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b2a9ceca031873dc923050188fb9028decd514a3 | Java | roytuts/spring-in-memory-db | /spring-embedded-hsqldb/src/main/java/com/roytuts/spring/embedded/hsqldb/model/Customer.java | UTF-8 | 1,484 | 2.5625 | 3 | [] | no_license | package com.roytuts.spring.embedded.hsqldb.model;
public class Customer {
private Long customerId;
private String customerName;
private String customerAddress;
private String customerCity;
private String customerState;
private String customerZip;
public Long getCustomerId() {
return customerId;
}
public ... | true |
a4eb2931bc953fc6b1f258a1f306264ce4a27c96 | Java | effy-r/NewJavaBootcamp | /src/main/java/lv/accenture/bootcamp/spring/SmsNotification.java | UTF-8 | 502 | 2.5625 | 3 | [] | no_license | package lv.accenture.bootcamp.spring;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@Component("sms")
public class SmsNotification implements NotificationChannel {
@Value("${notification.sms.operator}")
private String operator;
@Override
public void ... | true |
535d8aca1d965758698d55f747b2eb84c92c92f2 | Java | 8emi95/elte-ik-java | /gy/java_16171_gy/java_gy06/verseny/Verseny.java | UTF-8 | 1,279 | 2.28125 | 2 | [] | no_license | package verseny;
import verseny.Versenyzo;
class Verseny {
String nev;
// A versenynek legyen egy nev adattagja (szöveg) és tartsuk számon, kik a versenyzok (Versenyzo?k tömbje).
Verseny(String fajlnev) {
//
}
// A konstruktora egy fájlnevet kap szövegesen paraméterként.
// Feltételezhető, hogy a fájl létezi... | true |
3288eef4d82f06a1ad3bab56ba1c64ed2edb869c | Java | jlopez-code/ryanair | /src/main/java/com/ryanair/challenge/infrastructure/client/ryanair/schedule/RyanairScheduleClient.java | UTF-8 | 621 | 2.0625 | 2 | [] | no_license | package com.ryanair.challenge.infrastructure.client.ryanair.schedule;
import com.ryanair.challenge.infrastructure.client.dto.ScheduleDTO;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
@FeignClient(
name = "ryanair-schedule",
url = "${provider.ryanair.sch... | true |
e97e01aead3b50f2453183b7ffb7e57fd6f14f7a | Java | dknox2/ProjectPokedex | /ProjectPokedex/src/edu/westga/cs3212/projectpokedex/view/embed/PokemonEmbedHandler.java | UTF-8 | 6,244 | 2.671875 | 3 | [
"Unlicense"
] | permissive | package edu.westga.cs3212.projectpokedex.view.embed;
import java.util.ArrayList;
import java.util.List;
import edu.westga.cs3212.projectpokedex.model.Pokedex;
import edu.westga.cs3212.projectpokedex.model.pokedexitem.PokedexItem;
import edu.westga.cs3212.projectpokedex.model.pokemon.Pokemon;
import edu.westga.cs3212.... | true |
7b824774d6c29f92047175afa630dae4dc4788d4 | Java | ClickerMonkey/ship | /Games/Battlecraft/src/axe/g2f/Bound2f.java | UTF-8 | 3,749 | 2.859375 | 3 | [] | no_license | package axe.g2f;
import axe.Scalarf;
public class Bound2f
{
public float l, r, t, b;
public Bound2f() {
}
public Bound2f(float x, float y) {
clear(x, y);
}
public Bound2f(float left, float top, float right, float bottom) {
set(left, top, right, bottom);
}
public Bound2f(Bound2f ... | true |
dad7a2a401fe9bf16e21fb28f1bb14d32f35dc8e | Java | koposoftware/2021_11_swyoon | /final-project/src/main/java/kr/ac/kopo/reservation/vo/ReservationVO.java | UTF-8 | 1,632 | 2.0625 | 2 | [] | no_license | package kr.ac.kopo.reservation.vo;
public class ReservationVO {
private String rsrvTime;
private String rsrvComment;
private String username;
private String pbName;
private String pbBranchName;
private String startDate;
public String getStartDate() {
return startDate;
}
p... | true |
989754d4923b4444a8fe4caf18f2bc17baa841d3 | Java | lionchi/InformationSystem | /information-system-api/src/main/java/ru/gavrilov/tasks/MemoryTask.java | UTF-8 | 1,398 | 2.71875 | 3 | [] | no_license | package ru.gavrilov.tasks;
import javafx.concurrent.Task;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ru.gavrilov.SystemInfo;
import ru.gavrilov.hardware.GlobalMemory;
import ru.gavrilov.hardware.HardwareAbstractionLayer;
import ru.gavrilov.software.OperatingSystem;
import ru.gavrilov.util.FormatUt... | true |
618344a923cebe1d7e3c528c7934e953d3c46ee1 | Java | mvolkanaslan/JavaGameCenterDemo | /src/fakeIdentityMicroServise/FakeIdentityChacker.java | UTF-8 | 381 | 2.484375 | 2 | [] | no_license | package fakeIdentityMicroServise;
import JavaGameCenterDemo.entities.concretes.Customer;
public class FakeIdentityChacker {
public boolean checkCustomer(Customer customer) {
if(customer.getFirstName()=="Mehmet Volkan" && customer.getLastName() == "ASLAN" && customer.getYearOfBirth() == 1989 && customer.getIdentity... | true |
a98325709decd1b5ca99ddc6af689fcc12a5c0a6 | Java | s4ke/HibernateSearchQueryExtension | /src/test/java/de/hotware/hibernate/query/Place.java | UTF-8 | 2,027 | 2.203125 | 2 | [] | no_license | /*
* 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 of the License, or
* (at your option) any later version.*
*
* This program is distributed in the hope that it wil... | true |
b8c0b7252b090b111c756178543be1ae4be04c0a | Java | ekochnev/pla | /src/test/java/com/pla/underwriter/service/UnderWriterServiceUnitTest.java | UTF-8 | 9,033 | 2.21875 | 2 | [] | no_license | package com.pla.underwriter.service;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import com.pla.publishedlanguage.contract.IPlanAdapter;
import com.pla.underwriter.domain.model.UnderWriterInfluencingFactor;
import com.pla.underwriter.dto.UnderWr... | true |
8a019c97fd4355924d4970a217f9cbff01824955 | Java | hongchao1117/LeetCodeQuestion | /src/Mathmatics/reverse.java | UTF-8 | 417 | 3.28125 | 3 | [] | no_license | package Mathmatics;
public class reverse {
public static void main(String[] args) {
int sum = -123;
System.out.println(reverse(sum));
}
public static int reverse(int num) {
long res = 0L;
while (num != 0) {
res = res * 10 + num % 10;
num /= 10;
... | true |
d42aa48c4bd514c4d45fb67a1a7f93085c59211c | Java | guiguiangel/ddnsell_ace | /src/main/java/com/ddn/ddnsell/dao/UserRoleDao.java | UTF-8 | 622 | 1.96875 | 2 | [] | no_license | package com.ddn.ddnsell.dao;
import com.ddn.ddnsell.entity.Permission.UserRole;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
public i... | true |
aa6e0f7e86f6b9814bea24b905af16f5bf7d53f0 | Java | benayadmohamed/code-testing | /src/main/java/com/services/VirementService.java | UTF-8 | 1,040 | 2.453125 | 2 | [] | no_license | package com.services;
import com.exceptions.AccountExistePasException;
import com.exceptions.MontantInfAZeroException;
import com.exceptions.SoldeInfAZeroException;
import com.models.VirementRequest;
import com.validators.VirementValidator;
import org.springframework.beans.factory.annotation.Autowired;
import org.spri... | true |
25f0dfcb05b321795b1081758eb1aab8c5ad85c6 | Java | shangerdi/Android | /qr/src/main/java/com/malalaoshi/android/qr/QRCodeUtil.java | UTF-8 | 5,274 | 2.578125 | 3 | [
"MIT"
] | permissive | package com.malalaoshi.android.qr;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.EncodeHintType;
import com.google.zxing.MultiFormatWriter;
import com.google.zxing.Wr... | true |
328f1c1e3f845b922b46dab0296a75936b9ddf11 | Java | brect/api-livinother | /src/main/java/com/manoloscorp/livinother/services/StateServiceImpl.java | UTF-8 | 1,239 | 2.421875 | 2 | [] | no_license | package com.manoloscorp.livinother.services;
import com.manoloscorp.livinother.entities.State;
import com.manoloscorp.livinother.repositories.StateRepository;
import com.manoloscorp.livinother.resources.exceptions.NotFoundException;
import org.springframework.stereotype.Service;
import java.util.List;
import java.uti... | true |
97622f653bf01b5e6b1b29ca67bab9f4eb7801b5 | Java | montycheese/blackjack | /src/BlackJackDealer.java | UTF-8 | 176 | 2.078125 | 2 | [] | no_license |
public class BlackJackDealer extends BlackJackPlayer {
private static final double BANK = (double) Double.MAX_VALUE/2;
public BlackJackDealer() {
super(BANK, 0);
}
}
| true |
4e46966701d678837cdafb41eca0ea775575991d | Java | mamchayd/Demo-Design-pattern-Decorator-JavaFx- | /src/decorateur/Vani.java | UTF-8 | 386 | 2.6875 | 3 | [] | no_license | package decorateur;
import dec.Boisson;
public class Vani extends DecorateurBoisson{
public Vani(Boisson boisson) {
super(boisson);
// TODO Auto-generated constructor stub
}
@Override
public double cout() {
return 2+boisson.cout();
}
@Override
public String getDescription() {
// TODO Auto-generated ... | true |
19823df42d1b8fb9edb9fdc32f822838dce76060 | Java | adityapalavajjhala/NCFOA-user-application | /app/src/main/java/com/example/ncfoa_user_application/model/Restaurant.java | UTF-8 | 1,867 | 2.40625 | 2 | [] | no_license | package com.example.ncfoa_user_application.model;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
public class Restaurant {
private Integer id;
private String name,address,city,email,message;
private Boolean status,active;
private Map<String,Menu> menus;
public void setMen... | true |
51f3317b2e4cc67b32206862bc006e0cb7a8de6b | Java | nirvana-info/old_bak | /cy/src/net/shopxx/dao/DictDao.java | UTF-8 | 272 | 1.726563 | 2 | [] | no_license | package net.shopxx.dao;
import java.util.List;
import net.shopxx.entity.Dict;
/**
* Dao - 数据字典
*
*
*
*/
public interface DictDao extends BaseDao<Dict, Long> {
List<Dict> findListByType(String type);
boolean valueExists(String type, String value);
} | true |
e0f29b3e728d901078c231f71722c06e15c3a538 | Java | watanabetaka/R4A1 | /harada/book/WEB-INF/src/dao/CouponDAO.java | UTF-8 | 2,023 | 2.609375 | 3 | [] | no_license | package dao;
import bean.Coupon;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.List;
import java.util.ArrayList;
public class CouponDAO extends DAO {
// 取得可能な値をデータベースから取得
public List<Coupon> search(int user_id) throws Exception {
List<Coupon> list=new ... | true |
79f5d79257815d70fd5c82c1229d364a0d407d7b | Java | arubenruben/UDP-Distributed-Backup-Service | /src/peer/protocols/protocols/Protocol.java | UTF-8 | 18,599 | 2.546875 | 3 | [] | no_license | package peer.protocols.protocols;
import peer.Peer;
import peer.filesystem.ChunkInfo;
import peer.filesystem.FileInfo;
import peer.protocols.messages.Header;
import peer.protocols.messages.Message;
import peer.protocols.protocols.protocol1_0.RemoveCandidate;
import peer.utils.Constants;
import peer.utils.Logger;
impo... | true |
a36dd7eb7a482cf42cd9fc30024518c205f7c632 | Java | cha63506/CompSecurity | /JC-Penney/src/com/android/slyce/a/c/c/m.java | UTF-8 | 945 | 1.664063 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.android.slyce.a.c.c;
import com.android.slyce.a.bj;
import java.io.IOException;
import java.nio.ByteOrder;
import java.util.zip.CRC3... | true |
e17bf950df3c82e0ae52c9499b0514dbf0937117 | Java | eduardocezarinossp/trab-final-tsi | /bkp/src/crud/CRUD_pessoas.java | UTF-8 | 1,396 | 2.875 | 3 | [] | no_license | package crud;
import java.sql.ResultSet;
import java.util.ArrayList;
import conexao.Conexao;
import objetos.Pessoa;
public class CRUD_pessoas {
public String cadastra(Pessoa p) {
String sql = "INSERT INTO cad_pessoas( nome, cpf) VALUES( '"+p.getNome()+"', '"+p.getCpf()+"')";
Conexao c = new Conexao();
c.inse... | true |
67f97db3a904d0347fba1af735629e27c9a945a0 | Java | NimaSeyfi/JavaSocial | /src/SERVER/ServerUp.java | UTF-8 | 8,985 | 2.109375 | 2 | [] | no_license | package SERVER;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.PrintWr... | true |
c1a366b975112986f11766f6022c0db0122b3c10 | Java | seaco-asia/SEACO_Neuropsych | /app/src/main/java/com/seaco/seaconeuropsych/prospective_initial.java | UTF-8 | 6,431 | 1.976563 | 2 | [] | no_license | package com.seaco.seaconeuropsych;
import android.content.Context;
import android.content.Intent;
import android.os.Environment;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.text.Html;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import ... | true |
ec0515c743f39f07f0b19a9af9eee333f08630c3 | Java | Tbichan/Android | /main/java/com/example/tbichan/syaroescape/OpenGL/GlRendererBase.java | UTF-8 | 652 | 1.835938 | 2 | [] | no_license | package com.example.tbichan.syaroescape.OpenGL;
import android.content.Context;
import android.opengl.GLSurfaceView;
import android.opengl.GLU;
import com.example.tbichan.syaroescape.R;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;
public abstract class... | true |
de45dfeb1f713db29fc4288f0e3ce93d306f2607 | Java | JinHong-H/insurance-back | /src/main/java/cn/wghtstudio/insurance/service/impl/GetOrderInfo.java | UTF-8 | 3,767 | 2.015625 | 2 | [] | no_license | package cn.wghtstudio.insurance.service.impl;
import cn.wghtstudio.insurance.dao.entity.Order;
import cn.wghtstudio.insurance.dao.entity.User;
import cn.wghtstudio.insurance.service.entity.GetInsuranceListItem;
import cn.wghtstudio.insurance.util.FormatDate;
import cn.wghtstudio.insurance.util.LicensePlateWhenNewFacto... | true |
4dea3fdab649f1018ee6815946aabfc60f3d4ed0 | Java | HurmaH/JavaCore | /src/day7/Main.java | UTF-8 | 669 | 3.203125 | 3 | [] | no_license | package day7;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
//WRITE YOUR CODE HERE:
int num1, num2, num3, sum;
Scanner input = new Scanner (System.in);
System.out.println("Enter 3 numbers:");
num1= input.nextInt();
nu... | true |
20e3156dfae2221b2f9973d20666b251dd49efbc | Java | norbo112/Edzesnaplov3 | /app/src/main/java/aa/droid/norbo/projects/edzesnaplo3/mvvm/data/api/GyakorlatRepository.java | UTF-8 | 571 | 1.820313 | 2 | [] | no_license | package aa.droid.norbo.projects.edzesnaplo3.mvvm.data.api;
import androidx.lifecycle.LiveData;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import aa.droid.norbo.projects.edzesnaplo3.mvvm.db.entities.Gyakorlat;
public interface GyakorlatRepository {
LiveData<List<Gyakorlat>> getAll();
... | true |
bc04b783821a88273c59ab3217dcf56ed5df3e9b | Java | PengjuGao/java-framework-generation | /platform_core/src/main/java/com/platform/core/service/impl/TbCategoryServiceImpl.java | UTF-8 | 591 | 1.640625 | 2 | [] | no_license | /**
* @author gaopj
*
*/
package com.platform.core.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.platform.core.dao.TbCategoryMapper;
import com.platform.core.po.TbCategory;
import com.platform.core.vo.TbCategoryVo;
import com.... | true |
f847cef998699307e0f6bce9ec7a7c861876f7df | Java | lxqgithub/learn-netty4 | /src/main/java/com/flydean30/http2client/CustHttp2Client.java | UTF-8 | 5,556 | 2.203125 | 2 | [] | no_license |
package com.flydean30.http2client;
import io.netty.bootstrap.Bootstrap;
import io.netty.buffer.Unpooled;
import io.netty.channel.Channel;
import io.netty.channel.ChannelOption;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioSocketChannel;
i... | true |
cdcb40c040459de0e53ba3f6b4bf3dbfb7e19ddd | Java | via-He/moo_mall | /src/main/java/com/via/mall/controller/ProductController.java | UTF-8 | 1,360 | 1.84375 | 2 | [] | no_license | package com.via.mall.controller;
import com.github.pagehelper.PageInfo;
import com.via.mall.common.ApiRestResponse;
import com.via.mall.domain.ImoocMallProduct;
import com.via.mall.request.ProductListReq;
import com.via.mall.service.ImoocMallProductService;
import io.swagger.annotations.ApiOperation;
import org.spring... | true |
521c133a4bf84f32d613f05d21ef6ea1e3fcab0b | Java | AgentForce/android | /app/src/main/java/manulife/manulifesop/fragment/FAGroup/clients/related/contactDetail/step2/ContactDetailStep2Contract.java | UTF-8 | 604 | 1.890625 | 2 | [] | no_license | package manulife.manulifesop.fragment.FAGroup.clients.related.contactDetail.step2;
import manulife.manulifesop.api.ObjectResponse.ContactActivity;
import manulife.manulifesop.base.BaseMVPView;
/**
* Created by Chick on 10/27/2017.
*/
public interface ContactDetailStep2Contract {
interface View extends BaseMV... | true |
e748ba09b88a149ba1835b7f4673f60e55e9d4ec | Java | patryktokarski/SpringProject | /src/main/java/com/spring/test/dao/UserDao.java | UTF-8 | 347 | 2.109375 | 2 | [] | no_license | package com.spring.test.dao;
import com.spring.test.model.User;
import java.util.List;
public interface UserDao {
void create(User user);
void update(User user);
User findById(int id);
User findByEmail(String email);
List<User> getAll();
void deleteById(int id);
User userWithEmailExists(S... | true |
d654c75bee12ed6dfc862f43de0cdc03d1a805c6 | Java | keepsl/keepsmis | /keeps-tools/src/main/java/com/keeps/tools/utils/RandomUtils.java | UTF-8 | 1,548 | 3.015625 | 3 | [
"Apache-2.0"
] | permissive | package com.keeps.tools.utils;
import java.util.Random;
import java.util.UUID;
public class RandomUtils {
public static long randomLong() {
return UUID.randomUUID().getMostSignificantBits();
}
public static String randomUUID() {
return UUID.randomUUID().toString().replace("-", "");
}
public... | true |
e0406515e6e7e3589c836dcdbb2e377c0a6d8365 | Java | paulywh/adminconfig | /src/com/computercenter/service/appinterface/bean/Course.java | UTF-8 | 2,500 | 2.09375 | 2 | [] | no_license | package com.computercenter.service.appinterface.bean;
import java.io.Serializable;
//课程
public class Course implements Serializable
{
private static final long serialVersionUID = -4280575248694307909L;
private int id;
private String name;
private String desc;
private float price;
private int f... | true |
1b79cdabc1b76a9b028af1a74dcd458411d7e720 | Java | giovannidefilippi/LidoOasi | /LidoOasi/EsameLidoOasi/src/it/unisalento/utility/PallinoVerdeOmbrellone.java | UTF-8 | 545 | 2.640625 | 3 | [] | no_license | package it.unisalento.utility;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.Ellipse2D;
import javax.swing.JComponent;
public class PallinoVerdeOmbrellone extends JComponent
{
public void paintComponent(Graphics g)
{
Graphics2D g2 = (Graphics2... | true |
b0a4b2005d1f50dd8f3d42338b323fa17134f73e | Java | novas-meng/DataShow | /app/src/main/java/com/novas/controller/HomeController.java | UTF-8 | 6,496 | 2.015625 | 2 | [] | no_license | package com.novas.controller;
import android.app.Activity;
import android.app.Notification;
import android.app.NotificationManager;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.sup... | true |
23627db03053b6ecff7244f98cba005f7053535b | Java | NerdNu/EasyRider | /src/nu/nerd/easyrider/commands/HorseInfoExecutor.java | UTF-8 | 6,870 | 2.671875 | 3 | [
"MIT"
] | permissive | package nu.nerd.easyrider.commands;
import org.bukkit.ChatColor;
import org.bukkit.Sound;
import org.bukkit.SoundCategory;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.AbstractHorse;
import org.bukkit.entity.AnimalTamer;
import org.bukkit.entity.Llama;
import org... | true |
8ef356dccc11305cecaaa63a23e92b184680f53f | Java | lucamarchi/sii_absa | /src/com/sii/crf/Main.java | UTF-8 | 2,677 | 2.265625 | 2 | [] | no_license | package com.sii.crf;
import java.io.File;
import java.io.IOException;
import java.util.List;
import com.sii.crf.controller.InsertController;
import com.sii.crf.controller.OutputController;
import com.sii.crf.controller.StatisticsController;
import com.sii.crf.mallet.EvaluateClassifier;
import com.sii.crf.mallet.Impor... | true |
8b27afa3e2ba454096450c4161913d78131cd27d | Java | IBMStreams/streamsx.health | /ingest/fhir/com.ibm.streamsx.health.fhir/src/com/ibm/streamsx/health/fhir/model/ParseError.java | UTF-8 | 828 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | //*******************************************************************************
//* Copyright (C) 2017 International Business Machines Corporation
//* All Rights Reserved
//*******************************************************************************
package com.ibm.streamsx.health.fhir.model;
import java.io.Seri... | true |
a7d1e49ecd30fa3ca127a56918d00d663fc9e32d | Java | hcl0923/springboot | /mybank/src/main/java/com/yc/tx/bean/Accounts.java | UTF-8 | 247 | 1.578125 | 2 | [] | no_license | package com.yc.tx.bean;
import lombok.Data;
/**
* @program: reflectionAndAnnotation
* @description:
* @author: 作者
* @create: 2021-04-14 20:25
*/
@Data
public class Accounts {
private Integer accountId;
private Double balance;
}
| true |
a5d1505779ee0f8ff5c328b27e5080233de642bc | Java | yugimaster/android-crawler_jav | /app/src/main/java/com/yugimaster/jav/view/MyVideoView.java | UTF-8 | 1,636 | 2.578125 | 3 | [] | no_license | package com.yugimaster.jav.view;
import android.content.Context;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.widget.VideoView;
/**
* Created by yugimaster on 2018/7/24.
*/
public class MyVideoView extends VideoView {
int defaultWidth = 1920;
int defaultHeight = 1080;
... | true |
adb9ded85fd78d133c053f9d92648bae03d73744 | Java | mamewotoko/podplayer | /app/src/androidTest/java/com/mamewo/podplayer0/tests/TestMainActivity.java | UTF-8 | 2,774 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package com.mamewo.podplayer0.tests;
import com.mamewo.podplayer0.MainActivity;
import com.mamewo.podplayer0.PodplayerActivity;
import com.mamewo.podplayer0.PodplayerExpActivity;
import com.robotium.solo.Solo;
import com.robotium.solo.Solo.Config;
import android.app.Activity;
import android.content.SharedPreferences... | true |
ee9f7c97d8f34aabafec2f42319bf9d268c4b292 | Java | kamiranoff/java-tutorials | /TileGame/src/dev/game/tilegame/gfx/ImageLoader.java | UTF-8 | 490 | 2.515625 | 3 | [] | no_license | package dev.game.tilegame.gfx;
import java.awt.image.BufferedImage;
import java.io.IOException;
import javax.imageio.ImageIO;
/**
* Created by kevin on 04/01/16.
*/
public class ImageLoader {
public static BufferedImage loadImage(String path){
try {
return ImageIO.read(ImageLoader.class.getResource(pa... | true |
e40f48471fc5db58096bf56f18d05e2b3e94db43 | Java | oggong/java_study | /JavaBasic/src/b_operator/Ex01_IncDec.java | UTF-8 | 1,218 | 3.984375 | 4 | [] | no_license | package b_operator;
public class Ex01_IncDec { // 증감 연산자
/*
* 증가 감소 연산자 : ++, --
*
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int a = 5, b = 7;
// System.out.println("A=" + a + 1 + ",B=" + b + 1); -- 값 A=51 B=71 나와 버림
// System.out.println("A=" + (a + 1) + ",B=" +... | true |
be701289aba1c479c1f55dc230ba4b771f3211ba | Java | renx19960608/wechat-server | /src/main/java/com/renx/wechatserver/service/Impl/WXMenuServiceImpl.java | UTF-8 | 4,188 | 2.125 | 2 | [] | no_license | package com.renx.wechatserver.service.Impl;
import com.alibaba.druid.util.StringUtils;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.renx.wechatserver.dao.ConfigMapper;
import com.renx.wechatserver.dao.WxmenuMapper;
import com.renx.wechatserver.model.WechatConfig;
import com... | true |
1c214359bad7edd10457566b309372850a29929b | Java | lyqing0828/IdCardJCHL | /app/src/main/java/com/idcard/hnd/idcardjchl/bean/LoginInfo.java | UTF-8 | 2,717 | 2.3125 | 2 | [] | no_license | package com.idcard.hnd.idcardjchl.bean;
import android.util.Log;
import org.json.JSONException;
import org.json.JSONObject;
/**
* Created by Administrator on 2019/6/13.
*/
public class LoginInfo {
private String code;
private String message;
private String bmdm;//部门代码
private Stri... | true |
eb8a31013e750c2c20fdfdebece4a4b41362341a | Java | MinPyaeHein/Liblary-Management-System-TU- | /LmsTU/src/com/coder/dao/DepartmentDao.java | UTF-8 | 921 | 2.28125 | 2 | [] | no_license | package com.coder.dao;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.coder.model.Book;
import com.coder.model.Department;
import com.coder.model.Position;
import com.coder.model.Student;
import com.coder.model.Teacher;
@Repository("departmentDao")
public class DepartmentDao exte... | true |
21317ceb3252e5a65c7e1dc9c7430075ebe63d8b | Java | RobertShippey/TravelAgency | /src/java/net/robertshippey/travelagency/testing/NullTesting.java | UTF-8 | 3,020 | 2.984375 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package net.robertshippey.travelagency.testing;
/**
*
* @author Robert
*/
public class NullTesting {
public static void main(String[] args) {
try {
System.out.println("getAllFlights");
... | true |
7bd24873a588ad9c935d71f9dcfc9ce78ab9a718 | Java | kingdas/lesson2 | /pro27B/yc27001java001base/src/com/yc/java019jdbc/DbUtils.java | GB18030 | 2,754 | 2.90625 | 3 | [] | no_license | package com.yc.java019jdbc;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Properties;
public class DbUtils {
private static final String DRIVER;
private static final String U... | true |
79869aeb4f69579989a6a66c83edeb122a016e43 | Java | RajSingh-11/Design-Patterns | /DesignPatterns/src/com/design/patterns/creational/prototype/PrototypeMain.java | UTF-8 | 1,682 | 4.03125 | 4 | [] | no_license | package com.design.patterns.creational.prototype;
// when you create an object it takes more times for example if we create object
// from data base values
// it load from data base first and then we create an object, so next time when
// we want another object we do not hit the data base again
// we just copy or can ... | true |
f468c8b3e76a0596843d4135f304f4d54584f324 | Java | kasua/TestNGBasics | /src/com/class01/beforeAndAfterMethods.java | UTF-8 | 558 | 2.453125 | 2 | [] | no_license | package com.class01;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
public class beforeAndAfterMethods {
@BeforeMethod
public void testMethodsOne() {
System.out.println("beforeMethods");
}
@Test
public void testMethodOne() {
... | true |
60ab77a3e96e84bbcdfc8b8b1f321a6641bdd956 | Java | Amstel90/Algos | /AlgoP4/src/main/java/Solver.java | UTF-8 | 5,508 | 3.34375 | 3 | [] | no_license | import java.util.Comparator;
import java.util.Iterator;
import java.util.TreeSet;
/**
* Created by Artem_Mikhalevitch on 3/18/15.
*/
public class Solver {
/*
* Board.
*/
private BoardState boardState;
/*
* Board.
*/
private int moves;
/*
* Board.
*/
private boolean sol... | true |
47f3624c6a2eb08a6a5c4c407cf18ef50b221d92 | Java | AllenAkhaumere/OpenCV_facedetection | /src/com/facedetection/vision/VideoTest.java | UTF-8 | 225 | 1.617188 | 2 | [] | no_license | package com.facedetection.vision;
public class VideoTest
{
public static void main(String[] args)
{
VideoProcessor proceesor = new VideoProcessor();
proceesor.run(Constants.CASCADE_CLASSIFIER_FRONT_FACE, 0, 20);
}
}
| true |
8d968992b548ab18d512cd3f9f9381983f324746 | Java | mzdz/aspectj-test | /src/test/java/CompileThirdJarTest.java | UTF-8 | 1,984 | 2.171875 | 2 | [] | no_license | import com.alibaba.fastjson.JSONObject;
import io.muzhi.Application;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class... | true |
b53e04abda3fe4c1610ae74b2031a3eb8c6b7c55 | Java | nicholaskhuong/ellipsesaasautomation | /EllipseSaaSAutomation/src/com/abb/ventyx/utilities/report/Error.java | UTF-8 | 119 | 1.578125 | 2 | [] | no_license | package com.abb.ventyx.utilities.report;
public class Error {
private String desc = "";
public Error() {
}
}
| true |
4c9d39044a110773682895670c6fa470c6bf7741 | Java | rajmahendra/forge-jrebirth-plugin | /src/main/java/org/jrebirth/forge/helper/MavenProfilePluginHelper.java | UTF-8 | 8,014 | 1.929688 | 2 | [
"Apache-2.0"
] | permissive | /**
* Get more info at : www.jrebirth.org .
* Copyright JRebirth.org © 2011-2013
* Contact : sebastien.bordes@jrebirth.org
*
* 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:/... | true |
bd6d304e26c70993cb5115ac014eaa0f842a67f8 | Java | mzuchnik/spring-praca-domowa-7b | /src/main/java/pl/mzuchnik/springpracadomowa7b/client/ArticleClientImpl.java | UTF-8 | 2,108 | 2.390625 | 2 | [] | no_license | package pl.mzuchnik.springpracadomowa7b.client;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.stereotype.Service;
import org.springframework.web.c... | true |
b404bfca70024be7ecf090bde5ed46e4be2f741b | Java | rationalis/Tritonnections | /app/src/main/java/com/ucsdcse110/tritonnections/fragment/PostsRecyclerViewFragment.java | UTF-8 | 4,695 | 2.15625 | 2 | [] | no_license | package com.ucsdcse110.tritonnections.fragment;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.SearchView;
import android.view.LayoutInflater;
impo... | true |
66dd33a98875e6a4d4c44181b531851570369528 | Java | starscream202/IntelliJ | /syntax/class31/IteratorDemo.java | UTF-8 | 558 | 3.390625 | 3 | [] | no_license | package class31;
import java.util.ArrayList;
import java.util.Iterator;
public class IteratorDemo {
public static void main(String[] args) {
ArrayList<Double> doubleArrayList=new ArrayList<>();
doubleArrayList.add(4.58);
doubleArrayList.add(7.9);
doubleArrayList.add(5.6);
... | true |
a5c170c289b9e1bdf0a0a6006e426b042fda907d | Java | pratik822/RuralHealth | /app/src/main/java/com/hgs/ruralhealth/fragments/ActivityModel.java | UTF-8 | 641 | 2.203125 | 2 | [] | no_license | package com.hgs.ruralhealth.fragments;
import java.util.List;
/**
* Created by pratikb on 21-03-2018.
*/
public class ActivityModel {
String status,message;
List<ActivityData> data;
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status... | true |
4e96bdf591cb4326db873544aa27c6940dd563f1 | Java | mistapostle/locklockword | /app/src/main/java/locklockwords/mistapostle/appspot/com/locklockworks/WordsFragment.java | UTF-8 | 8,243 | 2.09375 | 2 | [] | no_license | package locklockwords.mistapostle.appspot.com.locklockworks;
/**
* Created by mistapostle on 17/6/24.
*/
import android.app.Activity;
import android.content.Context;
import android.content.CursorLoader;
import android.content.Intent;
import android.content.Loader;
import android.database.Cursor;
import android.os.B... | true |
cbc29389cdeb5df9c51f3978d65bd37eb104ca03 | Java | ikhsanaulia/future-phase-1 | /restaurant/src/main/java/com/blibli/future/pos/restaurant/AuthenticationFitler.java | UTF-8 | 3,819 | 2.234375 | 2 | [] | no_license | package com.blibli.future.pos.restaurant;
import com.blibli.future.pos.restaurant.common.ApplicationContex;
import com.blibli.future.pos.restaurant.common.ErrorMessage;
import com.blibli.future.pos.restaurant.common.model.Config;
import com.blibli.future.pos.restaurant.common.model.User;
import com.blibli.future.pos.r... | true |
d947434282f5324481ceb7be3df30f191bb1ad38 | Java | GuoYL123/servicecomb-java-chassis | /handlers/handler-loadbalance/src/test/java/org/apache/servicecomb/loadbalance/TestDefaultRetryhandler.java | UTF-8 | 4,520 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
2d2b51dc1bff23b1e15ab42cddca65a328fc7783 | Java | bikess/IOExampleForJAVA | /JAVAIO/src/test/Parent.java | UTF-8 | 148 | 2.25 | 2 | [] | no_license | package test;
public class Parent {
int x=10;
public Parent(){
add(2);
}
void add(int y){
x+=y;
}
}
| true |
5f9d685ec004268ae38c70e24e0ee4937ebdc11a | Java | svn2github/RefactorIT | /refactorit-core/src/main/java/net/sf/refactorit/reports/NotUsedXMLExporter.java | UTF-8 | 5,269 | 1.78125 | 2 | [] | no_license | /*
* Copyright 2001-2008 Aqris Software AS. All rights reserved.
*
* This program is dual-licensed under both the Common Development
* and Distribution License ("CDDL") and the GNU General Public
* License ("GPL"). You may elect to use one or the other of these
* licenses.
*/
package net.sf.refactorit.r... | true |
000a1d46d259af347784f0fe0585530731d51760 | Java | machadolucas/questionnaire | /src/main/java/me/machadolucas/questionnaire/entity/Devices.java | UTF-8 | 262 | 2.046875 | 2 | [] | no_license | package me.machadolucas.questionnaire.entity;
import lombok.AllArgsConstructor;
import lombok.Getter;
@AllArgsConstructor
public enum Devices {
MOUSE("Mouse"), GAMEPAD("Gamepad"), TOUCH("Toque"), KINECT("Kinect");
@Getter
private String name;
}
| true |
97e0628b29890426a5c3f2dc8ecf7bd57641e774 | Java | awagdii/Library-System-JavaFx | /src/mum/mpp/controller/SuperAdmin.java | UTF-8 | 489 | 2.140625 | 2 | [] | no_license | package mum.mpp.controller;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import mum.mpp.business.ServicesImp;
import mum.mpp.model.Author;
import java.util.ArrayList;
public class SuperAdmin {
@FXML
protected void clickSave(ActionEvent event) {
ArrayList<String> authorsList = new Array... | true |
e5c6421a4911097251891bd3194820f388919192 | Java | PioneerX1/whattopack | /app/src/main/java/compioneerx1/github/whattopack/ui/PurposeActivity.java | UTF-8 | 2,443 | 2.28125 | 2 | [
"MIT"
] | permissive | package compioneerx1.github.whattopack.ui;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;
import andr... | true |
75f9eb0bce3c326e156e9a4e1d16118779fbeffe | Java | zsk13/network | /src/main/java/network/model/CourseStudentExample.java | UTF-8 | 14,636 | 2.359375 | 2 | [] | no_license | package network.model;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
public class CourseStudentExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public CourseStudentExampl... | true |
26ce36e30516f1f5091a15572208d44345644d31 | Java | Kristanen/MiniSims | /minisims/src/main/java/hadleys/hope/minisims/renderingsystem/HitButtonListener.java | UTF-8 | 2,583 | 2.9375 | 3 | [] | no_license | package hadleys.hope.minisims.renderingsystem;
import hadleys.hope.minisims.Ball;
import hadleys.hope.minisims.PoolGame;
import hadleys.hope.minisims.entitysystem.EntityManager;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JLabel;
import javax.swing.JTextField;
i... | true |
ce3e46557dd2d3025e8556af98d042c5d3b49d03 | Java | deneth-weerasinghe/PracticeMod | /src/main/java/com/denethweerasinghe/practicemod/setup/ClientProxy.java | UTF-8 | 687 | 2.125 | 2 | [] | no_license | package com.denethweerasinghe.practicemod.setup;
import com.denethweerasinghe.practicemod.handlers.HudEventHandler;
import net.minecraft.client.Minecraft;
import net.minecraft.world.World;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
public class ClientProxy implements IProxy {
@Override //... | true |
fac5ff9683281827a8585d56075866f4f5285574 | Java | JeyhunAli/all_about_java | /src/Encapsulation/User_1.java | UTF-8 | 2,508 | 3.359375 | 3 | [] | no_license | package Encapsulation;
/**
*
* @author jey
*
* // encapsulation is one of the oops consept
//there 3 oops consepts they are called PIE factor
//polymorphism, inheritence, encapsulation.
*
* encapsulation is data hiding
*
* encapsulation is creating with private key word once any method or instance variab... | true |
0321c540d12804b06842631655a1cfbc6d16b825 | Java | joss-io/io.joss.hillbilly | /core/src/main/java/com/jive/hillbilly/client/DispatchingClientTransactionListener.java | UTF-8 | 884 | 2.203125 | 2 | [] | no_license | package com.jive.hillbilly.client;
import java.util.concurrent.Executor;
import com.jive.sip.dummer.txn.ClientTransactionListener;
import com.jive.sip.dummer.txn.SipTransactionErrorInfo;
import com.jive.sip.dummer.txn.SipTransactionResponseInfo;
class DispatchingClientTransactionListener implements ClientTransaction... | true |
a1c33d6eade2b6265f59eaa41ad7c6ab4eda58a5 | Java | vassik/bvr | /no.sintef.bvr.model/src/bvr/ChoiceVSpec.java | UTF-8 | 3,277 | 2.4375 | 2 | [] | no_license | /**
*/
package bvr;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Choice VSpec</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* <p class="MsoNormal"><span style="font-size:8pt;font-family:Tahoma;">A ChoiceVSpec is a VSpec which either Choice or ChoiceOccurence.</... | true |
728d0eb4ffdbc061dd0bf8d448df6e7f83922bf2 | Java | szotaa/torrentr | /src/test/java/pl/szotaa/torrentr/service/SearchServiceTest.java | UTF-8 | 1,750 | 2.109375 | 2 | [
"MIT"
] | permissive | package pl.szotaa.torrentr.service;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import org.mockito.Mockito;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org... | true |
cba01d47700805472bd3bf2bf3f4a894b0c61b24 | Java | UNAdopcion/Backend | /unadopcion/src/main/java/com/unadopcion/unadopcion/repositorio/ContactoRepositorio.java | UTF-8 | 304 | 1.570313 | 2 | [] | no_license | package com.unadopcion.unadopcion.repositorio;
import com.unadopcion.unadopcion.modelo.Contacto;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ContactoRepositorio extends CrudRepository<Contacto, Integer> {
}
| true |
50f261d37d0d3c486f090f210296e3243562f9dd | Java | Cxyour/thewishofthestarlanguage | /app/src/main/java/com/example/lenovo/thewishofthestarlanguage/view/personal/adapter/FollowListAdapter.java | UTF-8 | 5,569 | 1.835938 | 2 | [] | no_license | package com.example.lenovo.thewishofthestarlanguage.view.personal.adapter;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.support.v4.graphics.drawable.RoundedBitmapDrawable;
import android.support.v4.graphics.drawa... | true |
d4bfa9fb399d556c6c23e52226d764fea8c44bb0 | Java | jboss-fuse/narayana-spring-boot | /openshift/recovery-controller/src/main/java/me/snowdrop/boot/narayana/openshift/recovery/RecoveryErrorDetector.java | UTF-8 | 913 | 1.5625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2020 Red Hat, Inc, and individual contributors.
*
* 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 a... | true |
63fe8c8a77fa0fe7d24a13cb5173369ee061f424 | Java | thelinh95/Open_Jdk8u_Test | /OpenJdk8uTest/src/test/java/io/File/SetLastModified.java | UTF-8 | 4,730 | 2.328125 | 2 | [] | no_license | package test.java.io.File;
/*
* Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, a... | true |
9ef0dac292133edd066d70b760980253200734e6 | Java | gradle/performance-comparisons | /large-multiproject/project67/src/test/java/org/gradle/test/performance67_5/Test67_478.java | UTF-8 | 292 | 1.78125 | 2 | [] | no_license | package org.gradle.test.performance67_5;
import static org.junit.Assert.*;
public class Test67_478 {
private final Production67_478 production = new Production67_478("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
} | true |
18f657d2df2f95124c890dbcec0362a76509ec52 | Java | balsampearshen/for | /WowYi/src/com/balsampearshz/wowyi/util/StringUtil.java | UTF-8 | 1,992 | 3.265625 | 3 | [] | no_license | package com.balsampearshz.wowyi.util;
/**
* 字符串操作类
*
* @author ylx
*
*/
public class StringUtil {
/**
* 不为空 返回真
*
* @param str
* 字符串
* @return 如果字符串不为空且长度大于1 返回真 ,其他返回假
*/
public static boolean isNotBlank(String str) {
return str != null && !(null==str||str.equals(""))... | true |
9ffb7a93a7b7d5936910b82b318a22884e55c47e | Java | satyam289/Data-structure-and-Algorithm | /src/Array/AntiDiagonal.java | UTF-8 | 3,026 | 4.15625 | 4 | [
"MIT"
] | permissive | package Array;
import java.util.ArrayList;
/*
(0, 0)
(0, 1), (1, 0)
(0,2), (1, 1), (2, 0)
(1, 2), (2, 1)
(2, 2)
*/
// https://www.geeksforgeeks.org/zigzag-or-diagonal-traversal-of-matrix/
class AntiDiagonal {
public static void diagonal(int[][] matrix, int row, int column) {
for (int... | true |
aa5bb64362e0ed101b53eee829c0b72da0d04dda | Java | AlexanderTolmachev/No-SQL-DataBase | /no-sql-database-server/src/java/ru/compscicenter/db/tolmachev/nosqldb/server/dbmanager/Balancer.java | UTF-8 | 9,407 | 2.875 | 3 | [] | no_license | package ru.compscicenter.db.tolmachev.nosqldb.server.dbmanager;
import ru.compscicenter.db.tolmachev.nosqldb.server.database.DataBase;
import ru.compscicenter.db.tolmachev.nosqldb.server.database.Row;
import ru.compscicenter.db.tolmachev.nosqldb.server.database.TableDescription;
import ru.compscicenter.db.tolmachev.no... | true |
a15339bcba319d91a96de3679e206e052aaef40e | Java | UnlimitedCodesWorks/husbandry | /src/main/java/xin/yiliya/service/ServiceEvaluateService.java | UTF-8 | 1,751 | 1.914063 | 2 | [] | no_license | package xin.yiliya.service;
import com.github.pagehelper.PageInfo;
import xin.yiliya.pojo.EvaluateService;
import xin.yiliya.pojo.ServiceEvalutePerMonth;
import java.util.Date;
public interface ServiceEvaluateService {
//添加一个评论
//返回:评论id,若返回0则添加评论失败
Integer addEvaluate(EvaluateService evaluateService);
... | true |
7cfe65ad8347bc01219e9fbfbe4784cb40705b3f | Java | mslowiak/Design-patterns | /src/ChainOfResponsibility/Cargo.java | UTF-8 | 519 | 2.921875 | 3 | [] | no_license | package ChainOfResponsibility;
public class Cargo {
private String country;
private double weight;
public Cargo(String country, double weight) {
this.country = country;
this.weight = weight;
}
public String getCountry() {
return country;
}
public void setCountry(S... | true |
c002a47709134b332150faaa99a23355d79bb561 | Java | Kaifi7/data_structures | /Demo/src/linked_list/DetectAndRemoveLoopInLL.java | UTF-8 | 1,024 | 3.6875 | 4 | [] | no_license | package linked_list;
import java.util.HashMap;
public class DetectAndRemoveLoopInLL {
static class Node{
int data;
Node next;
Node(int d){
data = d;
next = null;
}
}
static Node head;
static void push(int new_data) {
Node new_node = new Node(new_data);
new_node.next= head;
head = new_node;
}... | true |
f5c76b3e4dbcb5bdc4efc736acd8770da2c2fec6 | Java | orlandoburli/personalerp-legacy | /src/br/com/orlandoburli/personalerp/facades/reports/financeiro/resumofinanceiro/RelatorioResumoFinanceiroExcelFacade.java | ISO-8859-1 | 9,714 | 1.75 | 2 | [] | no_license | package br.com.orlandoburli.personalerp.facades.reports.financeiro.resumofinanceiro;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.sql.Date;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.Servle... | true |
ac7066d7ff37753396f61b14ebf40e62ff41faaa | Java | jackba/AppStore | /src/AppStoreV3.java | UTF-8 | 4,977 | 3.4375 | 3 | [] | no_license | /* App Store Coursework
* AppStore main class
* Instantiates container classes, stores and restores data.
*/
/* @author joshstringfellow */
package appstorev3;
import java.util.Scanner;
public class AppStoreV3 {
/** @param args the command line arguments */
public static void main(String[] args) {
... | true |
3e404907101475c6bce383f727822d4578377c0e | Java | chanhui27/Object-Oriented-Programming | /Question4/BagApp.java | UTF-8 | 596 | 3.4375 | 3 | [
"Apache-2.0"
] | permissive | package Question4;
import java.util.List;
public class BagApp {
public static double calcTotalVolume(List<Bag> bagList, double accum) {
if(bagList != null && bagList.size() > 0) {//check if the bagList got something
accum += bagList.get(0).getVolume(); //get first element's volume from bagList to th... | true |
2b3688b5060f3aa2d47a37368411066c22f7d505 | Java | localghost8080/JaxWS | /SpringJAXWS/SpringJAXWS-0.0.1-SNAPSHOT/src/main/java/com/samrat/wsserver/webservices/SimpleWSImpl.java | UTF-8 | 422 | 2.265625 | 2 | [] | no_license | package com.samrat.wsserver.webservices;
import java.util.Date;
import javax.jws.WebService;
@WebService(endpointInterface="com.samrat.wsserver.webservices.SimpleWSInterface", serviceName="SimpleWS" )
public class SimpleWSImpl implements SimpleWSInterface {
public String getTimeAsString() {
return new ... | true |
84cce83bbb990f7cc9933a78057310fff902c0d9 | Java | banyucenter/KursusAndroid | /app/src/main/java/aplikasiku/com/aplikasiluas/DetailActivity.java | UTF-8 | 3,502 | 2.296875 | 2 | [] | no_license | package aplikasiku.com.aplikasiluas;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class DetailActivity extends AppCompatActivity {
Button jumlah, kali, bagi,... | true |
0fa3a3c35f9a08d0a73e43b2c20ce05d73d6579b | Java | IronGatesXP/leetcode | /Leetcode/src/test/ContainsDuplicate.java | UTF-8 | 497 | 3.09375 | 3 | [] | no_license | package test;
import java.util.Arrays;
public class ContainsDuplicate {
public boolean containsDuplicate(int[] nums) {
Arrays.sort(nums);
for(int i=0;i<nums.length-1;i++){
if(nums[i]==nums[i+1])
return true;
}
return false;
}
public static void ... | true |
7e94035402a1825da2c347700ec6f98a062a545a | Java | catiiche/graduation-project | /src/main/java/com/example/project/services/ClientService.java | UTF-8 | 6,579 | 2.828125 | 3 | [] | no_license | package com.example.project.services;
import com.example.project.entity.Client;
import com.example.project.exception.ClientException;
import com.example.project.repository.ClientRepository;
import com.example.project.validation.ClientCollections;
import org.springframework.beans.factory.annotation.Autowired;
import or... | true |
32f642f0a9cf77ea88daad26c5445fd645ff4eb5 | Java | green-fox-academy/grinder | /week-04/Apple/src/test/java/CountLettersTest.java | UTF-8 | 539 | 2.640625 | 3 | [] | no_license | import org.junit.Test;
import org.junit.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import static org.junit.Assert.*;
public class CountLettersTest {
@Test
public void countLetters_inputString_returnHashmap() {
CountLetters countLetters = new CountLetters();
... | true |
8595b1b2e6a89e1db400c1742814ce7a0dafff9c | Java | matrixxun/FMTech | /GooglePlay6.0.5/app/src/main/java/com/google/android/finsky/layout/WishlistPlayActionButton.java | UTF-8 | 2,373 | 1.632813 | 2 | [
"Apache-2.0"
] | permissive | package com.google.android.finsky.layout;
import android.accounts.Account;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.View.OnClickListener;
import com.google.android.finsky.FinskyApp;
import com.google.android.finsky.analytics.FinskyEventLog;... | true |
7fe8dde82a511cd185b144e38fe906e0379b745f | Java | tjwang/my_backup | /TS/計算成交明細/CulMoney.java | UTF-8 | 8,447 | 2.34375 | 2 | [] | no_license | import stock.db.*;
import java.io.*;
import java.net.*;
import java.util.*;
import java.util.concurrent.*;
import java.sql.*;
public class CulMoney {
static int currentCount = 0;
static int range = 0;
static Hashtable ht ;
static public void main(String[] arg)throws Exception{
PamountNew_Rec pmar ... | true |
e39c20f3f3c4d6cc08ff90caf90de415aaddca96 | Java | wotjd4305/Algorithm | /java-project/src/TextBook/Z22_LinkedList.java | UTF-8 | 849 | 3.421875 | 3 | [] | no_license | package TextBook;
import java.util.LinkedList;
public class Z22_LinkedList {
public static void main(String args[]) {
Node n1 = new Node();
n1.pre = null;
n1.data = 1;
n1.next = null;
Node head = n1;
Node n2 = new Node();
n2.pre = n1;
n2.data = 2;
n2.next = null;
n1.next = n2;
LinkedList<In... | true |