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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d21bd2d22bd394479baa1edc37ee4c0b34e10d17 | Java | MarioFernandes73/FEUP_LPOO | /Guided Project/src/dkeep/logic/Game.java | UTF-8 | 12,199 | 3.25 | 3 | [] | no_license | package dkeep.logic;
import java.io.Serializable;
import java.util.ArrayList;
/**
* represents the game itself, all the elements are controlled by this class
*/
public class Game implements Serializable {
private static final long serialVersionUID = 1L;
/**
* stores information about what features will be i... | true |
8c4b9e874228a46f1999cc5c3cc80091a0f1e0c6 | Java | gitter-badger/QWAZR | /qwazr-utils/src/main/java/com/qwazr/utils/json/client/JsonClientInterface.java | UTF-8 | 3,283 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2014-2016 Emmanuel Keller / QWAZR
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by ap... | true |
7a3625b95a037ffa7bbc2e70acf50dbbe8581caf | Java | ebi-uniprot/uniprot-core | /core-domain/src/test/java/org/uniprot/core/uniparc/impl/SequenceFeatureImplTest.java | UTF-8 | 978 | 2.171875 | 2 | [] | no_license | package org.uniprot.core.uniparc.impl;
import static org.junit.jupiter.api.Assertions.*;
import java.util.Collections;
import org.junit.jupiter.api.Test;
import org.uniprot.core.uniparc.SequenceFeature;
import org.uniprot.core.uniparc.SignatureDbType;
class SequenceFeatureImplTest {
@Test
void needDefaultCo... | true |
ff80a93341be0ad2e94e410675a6fb4d9855b20f | Java | woyl/iyouVipAndroid | /app/src/main/java/com/jfkj/im/ui/activity/RedPacketActivity.java | UTF-8 | 6,284 | 1.859375 | 2 | [] | no_license | package com.jfkj.im.ui.activity;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.View;
import android.widget.Button;
import android.widget.EditTex... | true |
7c0b915e842f8d895b38f4d852b0200e235bf41b | Java | miaoxiaoxivivi/myGameDemo | /app/src/main/java/com/game/zillionaire/map/GameData2.java | UTF-8 | 8,659 | 2.046875 | 2 | [] | no_license | package com.game.zillionaire.map;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.InputStream;
import com.game.zillionaire.activity.ZActivity;
import com.game.zillionaire.meetdrawable.AccidentDrawable;
import com.game.zillionaire.meetdrawable.BankDrawable;
import com.game.zillionaire.meetdr... | true |
74806fb81363c066cd2467e77fe5a761aa7343ad | Java | kylin-zhuo/MDA-GasPump | /src/Strategies/PaymentMsg2.java | UTF-8 | 196 | 1.765625 | 2 | [] | no_license | package Strategies;
public class PaymentMsg2 extends PaymentMsg {
@Override
public void paymentMsg() {
System.out.println("Gas Pump 2 only supports Cash. Press c).");
}
}
| true |
86411cd17ff27027e819325221d2faf049b6925d | Java | 6638112/Jeesite | /src/main/java/com/dagongsoft/p2p/document/service/Impl/P2pSupplyDocumentUploadServiceImpl.java | UTF-8 | 1,687 | 1.835938 | 2 | [] | no_license | package com.dagongsoft.p2p.document.service.Impl;
import java.util.List;
import org.springframework.stereotype.Service;
import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import org.springframework.transaction.annotation.Transactional;
import com.dagongsoft.p... | true |
03c3a61ca18acdaedcdc1ef693b804cb3e87ead1 | Java | rebirth033/XiaoZhen1Qu | /android_app/app/src/main/java/FBXX/FC/FB_FC_RZXX.java | UTF-8 | 7,208 | 1.890625 | 2 | [] | no_license | package FBXX.FC;
import com.example.administrator.Public.R;
import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;
import android.view.LayoutInf... | true |
b94e66cb3ae435944114199a0314d26266ee9030 | Java | crazyfyd/springEx | /spring_demo/src/main/java/chap08/spring/MemberPrinter.java | UTF-8 | 282 | 2.96875 | 3 | [
"Apache-2.0"
] | permissive | package chap08.spring;
public class MemberPrinter {
public void print(Member member) {
System.out.printf(
"회원 정보: 아이디=%d, 이메일=%s, 이름=%s, 등록일=%tF\n",
member.getId(), member.getEmail(),
member.getName(), member.getRegisterDate());
}
}
| true |
beee2556b1b7c808bf3a018d9ac0f76d760ec84c | Java | ZhijiangHuang/notpad | /src/main/java/com/zhi/NotePad.java | UTF-8 | 441 | 2.125 | 2 | [] | no_license | package com.zhi;
import javax.swing.*;
/**
* Created by HUANGZHIJIANG416 on 2016/8/16.
*/
public class NotePad {
private JButton Button;
private JPanel jPanel;
public static void main(String[] args) {
JFrame frame = new JFrame("NotePad");
frame.setContentPane(new NotePad().jPanel);
... | true |
d6aa6a3d40e099b05790aeb651723c6871b9f237 | Java | DivyaPolaki/Interviews | /src/test/java/javaCocepts/ArraysBasics.java | UTF-8 | 1,738 | 3.546875 | 4 | [] | no_license | package javaCocepts;
import java.util.Arrays;
import org.testng.annotations.Test;
public class ArraysBasics {
public static void SingleDimentionalArray() {
// TODO Auto-generated method stub
int a[] = new int[5];
//Allocating the memory and assigning the values
/*a[0]=9;
a[1]=8;
a[2]=7;
a[3]=5;
a... | true |
b858f2028918ce9fb7bfad2bbbe8193e4758dc06 | Java | wongpeeng/tiny-spring-learn | /src/test/java/com/learn/tinyioc/aop/ProcessorBean.java | UTF-8 | 517 | 2.359375 | 2 | [] | no_license | package com.learn.tinyioc.aop;
import com.learn.tinyioc.beans.BeanPostProcessor;
public class ProcessorBean implements BeanPostProcessor {
@Override
public Object postProcessorBeforeInitialization(Object bean, String beanName) throws Exception {
System.out.print("bean processor! start initialzing!\n");
return ... | true |
93b1e11d424dc4dc9b0efa35962e6be9bdbcd68f | Java | SandroHc/LeBot | /src/main/java/sandrohc/ircbot/commands/CommandOsu.java | UTF-8 | 2,394 | 2.640625 | 3 | [] | no_license | package sandrohc.ircbot.commands;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import sandrohc.ircbot.Bot;
import sandrohc.ircbot.commands.osu.OsuUser;
import sandrohc.ircbot.utils.URLUtil;
import java.math.BigDecimal;
import java.math.RoundingMode;
public class CommandOsu extends Command {... | true |
38441e07b185dc9c474f3c53d25c5f8a9a043d0b | Java | timteplych/SpringProject | /src/main/java/ru/ttv/springproject/shoot/Bullet.java | UTF-8 | 110 | 2.09375 | 2 | [] | no_license | package ru.ttv.springproject.shoot;
/**
* @author Timofey Teplykh
*/
public interface Bullet {
void shoot();
}
| true |
24b0d26453a6eaff587b95814cec453383107d59 | Java | tml98/CRMcode | /CRM/src/main/java/com/tml/service/DeptService.java | UTF-8 | 336 | 1.875 | 2 | [] | no_license | package com.tml.service;
import com.tml.pojo.Dept;
import com.tml.pojo.Type;
import java.io.Serializable;
import java.util.List;
public interface DeptService {
int insert(Dept dept);
int delete(Serializable[] ids);
int update(Dept dept);
Dept get(Serializable id);
List<Dept... | true |
0ef8288fd9e4ed17fec8fe7da307b237d8b7234b | Java | liflab/beepbeep-3-examples | /Source/src/nialm/ApplianceMooreMachine.java | UTF-8 | 3,908 | 2.5 | 2 | [] | no_license | /*
BeepBeep, an event stream processor
Copyright (C) 2008-2018 Sylvain Hallé
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at you... | true |
23aaea93f278f6e1df65f96f355f8666565d88e4 | Java | metteo/gwt-measure | /core/src/main/java/com/googlecode/gwtmeasure/client/rpc/MeasuringAsyncCallback.java | UTF-8 | 2,962 | 1.710938 | 2 | [] | no_license | /*
* Copyright 2011 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 b... | true |
547cd2478006733d5fab99c81ec2cd91a917acfb | Java | Azzaiel/JavaLambdaBasics | /src/main/java/net/virtela/model/Grade.java | UTF-8 | 495 | 2.453125 | 2 | [] | no_license | package net.virtela.model;
public class Grade {
private Long gradeId;
private String name;
public Grade() {
super();
}
public Grade(Long gradeId, String name) {
super();
this.gradeId = gradeId;
this.name = name;
}
public Long getGradeId() {
return gradeId;
}
public void set... | true |
4649d528aa1b46a2913165fe3b8fdb2e71a9735c | Java | tsenglying-SH/written | /leetcode/src/Q46.java | UTF-8 | 1,678 | 3.625 | 4 | [
"MIT"
] | permissive | import java.util.ArrayList;
import java.util.List;
import java.util.Stack;
/**
* @ClassName Q46
* @Description 求排列数,并且列出所有组合 考点:排列&回溯
* @Author Tsenglying
* @Date 2020/8/18 10:20
* @Version 1.0
* 【给定一个 没有重复 数字的序列,返回其所有可能的全排列】
* 示例:
* 输入: [1,2,3]
* 输出:
* [
* [1,2,3],
* [1,3,2],
* [2,1,3],
* [2,3,1],
* ... | true |
2a64f2a73c70ef1c0d5ebcff2916f703251e7964 | Java | tiagovalverde/CPS731_Assignemnt4_RecyclerView | /app/src/main/java/com/example/cps731_a4_recyclerview/Data/BookContent.java | UTF-8 | 883 | 2.578125 | 3 | [] | no_license | package com.example.cps731_a4_recyclerview.Data;
import android.content.Context;
import com.example.cps731_a4_recyclerview.Book;
import com.example.cps731_a4_recyclerview.DataProvider;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class BookContent {
... | true |
a5fbe93af55be884daf28970671d96a8fddf8f20 | Java | Heisely/academy | /javaexp/src/a02_object/a01_const/Car.java | UTF-8 | 1,531 | 4.0625 | 4 | [] | no_license | package a02_object.a01_const;
/*
* 생성자
* 1. 클래스 명과 동일하다.
* 2. 생성자를 선언하지 않으면 default 생성자가 내부적으로 생성되어 있다가 선언하는 순간 사라진다.
* public Car(){} - 내부적으로 만들어 진다.
* 3. 생성자를 overloading 규칙에 의해서 여러 개 선언할 수 있다.
* 1) 개수가 다를 때
* 2) type이 다를 때
* 3) 개수와 type이 같더라도 순서만 다르게 선언하면 가능하다.
*/
public class Car {
// 필드 def... | true |
f1357793eeae9420d4b9ca0b2c35075744eaad6d | Java | zjalicf/UOP-AISP-projekat | /src/GUI/Musterija/OceniVoznjuFrame.java | UTF-8 | 3,290 | 3.28125 | 3 | [] | no_license | package GUI.Musterija;
import entiteti.Voznja;
import enums.StatusVoznje;
import fileIO.VoznjaIO;
import strukture.Lista;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class OceniVoznjuFrame extends JFrame implements ActionListener {
priv... | true |
83faf117572a87e8c1cdf15b1c3cbf3aa6d52708 | Java | ryanhall07/concurrency-limits | /concurrency-limits-core/src/main/java/com/netflix/concurrency/limits/internal/Preconditions.java | UTF-8 | 521 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package com.netflix.concurrency.limits.internal;
public final class Preconditions {
public static void checkArgument(boolean expression, Object errorMessage) {
if (!expression) {
throw new IllegalArgumentException(String.valueOf(errorMessage));
}
}
public static void checkState... | true |
ab1cc2b77b5c8c71466ae17fe107d3d24a54678a | Java | KalinaS/Projects | /LectureSeven/src/edu/pragmatic/classes/Animal.java | UTF-8 | 530 | 3.515625 | 4 | [] | no_license | package edu.pragmatic.classes;
public abstract class Animal {
private int age;
private int weight;
public int getAge(){
return age;
}
public void setAge(int age){
this.age = age;
}
public int getWeight(){
return age;
}
public void setWeght(int weght){
this.age = age;
}
public void gro... | true |
fdd849ef054b4d14001581edc1006c61baa22fb1 | Java | liudididi/BaiDuRen | /app/src/main/java/view/perfectMessageView.java | UTF-8 | 196 | 1.554688 | 2 | [] | no_license | package view;
/**
* Created by 地地 on 2018/1/28.
* 邮箱:461211527@qq.com.
*/
public interface perfectMessageView {
void UserinfoSuccess(String msg);
void UserinfoFail(String msg);
}
| true |
49826f1ef2ac5de5f9c41e46c82a68856a520b91 | Java | sapphire828/RLOM | /RLOM/src/com/raylinetech/ssh2/logistics/common/dao/impl/OrderFileDaoImpl.java | UTF-8 | 1,408 | 2.28125 | 2 | [] | no_license | package com.raylinetech.ssh2.logistics.common.dao.impl;
import java.sql.SQLException;
import java.util.List;
import org.hibernate.HibernateException;
import org.hibernate.Query;
import org.hibernate.Session;
import org.springframework.orm.hibernate3.HibernateCallback;
import org.springframework.orm.hibernate3.Hiberna... | true |
6b8ed4b2236ae2dc8b2d43b09d5c37b08c1510fe | Java | Beamfield/ModdingTutorial | /src/main/java/com/beamfield/youtubetut/item/ItemTutorialPickaxe.java | ISO-8859-2 | 2,260 | 2.234375 | 2 | [] | no_license | package com.beamfield.youtubetut.item;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.settings.KeyBinding;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
imp... | true |
0732dc2e484cb63fbab6e08f880f896de2096f95 | Java | rajubhusani/FABAlexaAndroid | /sdk/src/main/java/app/orbitahealth/sdk/responsemodel/pillboxresponse/getpillsresponse/PillMedicine.java | UTF-8 | 4,097 | 2.21875 | 2 | [] | no_license |
package app.orbitahealth.sdk.responsemodel.pillboxresponse.getpillsresponse;
import android.os.Parcel;
import android.os.Parcelable;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.j... | true |
e6662e1b986d3338b86862a93f80b61c13fd1c03 | Java | ryangreenj/CSSeniorDesign | /src/e-ducation/components/web/src/main/java/com/education/education/web/models/PromptletAnswer.java | UTF-8 | 756 | 2.03125 | 2 | [] | no_license | package com.education.education.web.models;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import java.util.List;
@Getter
public class PromptletAnswer {
final String activeSessionId;
final String promptletId;
final String profileId;
final List<String> response;
publ... | true |
d38f70c6ff22d928b6b408446831da2c455cb56d | Java | yurekesley/book_biginning_spring_boot_2 | /working-with-multiple-databases/src/main/java/br/com/yurekesley/workingwithmultipledatabases/security/repositories/UserRepository.java | UTF-8 | 295 | 1.625 | 2 | [] | no_license | package br.com.yurekesley.workingwithmultipledatabases.security.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import br.com.yurekesley.workingwithmultipledatabases.security.entities.User;
public interface UserRepository extends JpaRepository<User, Integer> {
}
| true |
5d369fc42ed8b77ad109078eb5afd0f7f42f93e1 | Java | xym-loveit/myJavaBaseProject | /src/main/java/com/xym/myJava/head_first/_10/v3/WaitressV3.java | UTF-8 | 1,132 | 3.203125 | 3 | [] | no_license | package com.xym.myJava.head_first._10.v3;
import com.xym.myJava.head_first._10.MenuItem;
import java.util.Iterator;
/**
* 服务员的第三个版本
*
* @author xym
* @create 2019-04-14 22:32
*/
public class WaitressV3 {
/**
* 服务员只依赖接口不依赖具体的抽象类s
*/
private Menu pancakeHouseMenu;
private Menu dinerMenu;
... | true |
e5c8138a2fd078c1bf06cce186d5109899eca4b0 | Java | FWilking/ShapesLab23 | /src/ShapesLab23/RPentagon.java | UTF-8 | 368 | 3.09375 | 3 | [] | no_license | package ShapesLab23;
public class RPentagon extends Shape{
private int side;
public RPentagon(int side) {
super("RPentagon");
this.side = side;
}
@Override
public double getArea(){
return 0.25*Math.sqrt(5*(5+2*Math.sqrt(5)))*(side*side);
}
@Override
public doubl... | true |
61d93c158f3d0471fe193a0d94f083e321ce878c | Java | shwndi/testOfSpringBoot | /src/test/java/com/example/demo/datasource/jdbc/ConnectPROCTest.java | UTF-8 | 516 | 1.835938 | 2 | [] | no_license | package com.example.demo.datasource.jdbc;
import com.example.demo.BaseTest;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import javax.annotation.Resource;
import static org.junit.Assert.*;
public class ConnectPROCTest extends BaseTest {
@Resource
private ConnectPROC proc;
@Be... | true |
37282156356ac38dc81ec17fb0ef7700ad5bf01b | Java | qiyitang71/jpf-visual | /src/main/PaneConstants.java | UTF-8 | 1,314 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | import java.util.HashMap;
import java.util.Map;
public class PaneConstants {
public static final int START_SIZE = 50;
// public static final int TOP_SPACE = 10;
public static final int BAR_SIZE = 18;
public static final int TOP_SPACE = 5;
public static final int LEFT_SPACE = 5;
public static final int ALTER_SIZE... | true |
3f093480fceb859387107ec894d792440a7105fe | Java | louisgry/Algorithm | /java-algo/leetcode-java/src/ds/binarytree/PathSumIII.java | UTF-8 | 1,906 | 3.828125 | 4 | [] | no_license | package ds.binarytree;
/**
* @author Louis
* @date Create in 2019/10/10 14:52
*/
public class PathSumIII {
public class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) {
val = x;
}
}
/**
* 437 Path Sum III
* https://leet... | true |
3a71ef7c07275a3f726c174971bd640d5861081d | Java | TatKuv/RestDurak | /src/main/java/main/Default.java | UTF-8 | 447 | 2.1875 | 2 | [] | no_license | // package main;
// import java.util.Date;
// import org.springframework.web.bind.annotation.RequestMapping;
// import org.springframework.web.bind.annotation.RestController;
// @RestController
// public class Default {
// @RequestMapping("/date")
// public String date() {
// return (new Date()).... | true |
93ff7a6dcc39c957dbd856086411576bbadcb49d | Java | monojitgoon/EVotingSystem | /src/main/java/uni/bamberg/appengine/management/EVotingSystemManagement.java | UTF-8 | 551 | 1.921875 | 2 | [] | no_license | package uni.bamberg.appengine.management;
import java.util.List;
import uni.bamberg.appengine.model.Candidate;
import uni.bamberg.appengine.model.Student;
import uni.bamberg.appengine.model.Timing;
import uni.bamberg.appengine.model.Voting;
public interface EVotingSystemManagement {
void saveTiming(Timing timing);... | true |
f1d75817ddd9610700c0c3a5eacc5c8de88dc647 | Java | isisisisisitch/javadev11 | /src/ca/bytetube/day15_collection/MyGenericInterface.java | UTF-8 | 148 | 2.296875 | 2 | [] | no_license | package ca.bytetube.day15_collection;
public interface MyGenericInterface <E>{
public abstract void add(E e);
public abstract E getE();
}
| true |
d99d471c70d0206d66bcbeb4c04afd1bbed738af | Java | Alejo-Urbina/ADN_FINAL | /microservicio/infraestructura/src/main/java/com/ceiba/boleto/controlador/ConsultaControladorBoleto.java | UTF-8 | 930 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package com.ceiba.boleto.controlador;
import com.ceiba.boleto.consulta.ManejadorListarBoleto;
import com.ceiba.boleto.modelo.dto.DtoBoleto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annot... | true |
d05f0ee27c35dc97e747623fa8672ca86ecd6006 | Java | juancruzgs/RemindMeTV | /app/src/main/java/com/mobilemakers/remindmetv/DatabaseHelper.java | UTF-8 | 1,285 | 2.34375 | 2 | [] | no_license | package com.mobilemakers.remindmetv;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper;
import com.j256.ormlite.dao.Dao;
import com.j256.ormlite.support.ConnectionSource;
import com.j256.ormlite.table.TableUtils;
import jav... | true |
525599fca9d1afcb00de4c00735492c3f984ed18 | Java | LocyDragon/GameLib | /src/main/java/com/locydragon/gamelib/api/event/baby/bukkitevents/GamePlayerQuitServerEvent.java | UTF-8 | 751 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package com.locydragon.gamelib.api.event.baby.bukkitevents;
import com.locydragon.gamelib.api.entity.PlayingPlayer;
import com.locydragon.gamelib.api.event.GameEvent;
import com.locydragon.gamelib.api.event.type.EventType;
import org.bukkit.event.player.PlayerQuitEvent;
/**
* 事件对应type: PLAYING_PLAYER_QUIT_SERVER;
*/... | true |
414126a4a47b7518069d13029fb89318b4035061 | Java | hyangtack/armeria | /core/src/test/java/com/linecorp/armeria/server/HttpHeaderUtilTest.java | UTF-8 | 14,085 | 1.921875 | 2 | [
"Apache-2.0",
"LGPL-2.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"EPL-1.0",
"Classpath-exception-2.0",
"LGPL-2.1-only",
"BSD-3-Clause",
"WTFPL",
"GPL-2.0-only",
"CDDL-1.0",
"MIT",
"CC0-1.0",
"JSON"
] | permissive | /*
* Copyright 2018 LINE Corporation
*
* LINE Corporation licenses this file to you 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:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | true |
7c2a6c59e7e1bcf74508a9c5843951d846c99104 | Java | HeesangLee/DualINfcManagerJava | /src/com/duali/nfc/manager/ui/dialog/composites/HandOverRecordComposite.java | UTF-8 | 3,453 | 2.21875 | 2 | [] | no_license | package com.duali.nfc.manager.ui.dialog.composites;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
i... | true |
f7e467c398a9c1861a711813db6bfc1e77bfde16 | Java | mounikagunda/corejavaproject | /mounika_workspace/basics1/src/oops/First1.java | UTF-8 | 676 | 3.84375 | 4 | [] | no_license | package oops;
public class First1
{
int x,y;
public void functionOne(int x,int y)
{
this.x=x+y;
this.y=this.x+this.x;
}
}
class Third extends First1
{
int x,y;
public void functionTwo(int x,int y)
{
this.x=x+y;
this.y=x*y;
}
}
class Second extends Third
{
int x;
public void display()
{
Sy... | true |
7154b2e4fb9458aa1069b4af4a55acdd198c5c1d | Java | czzz4/Se3_BigWork | /czzZ_AnyQuant/Code/AQAS_Web/src/main/java/com/bigwork/model/LoginBean.java | UTF-8 | 680 | 2.5 | 2 | [] | no_license | package com.bigwork.model;
/**
* Created by asus on 2016/5/4.
*/
public class LoginBean {
String name = "";
String password = "";
public LoginBean(){
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Strin... | true |
c6488909b0c937dd2ec2c1dc9f45a7cb56527620 | Java | principidario/comoencasa | /app/src/main/java/org/tensorflow/lite/examples/classification/StartActivity.java | UTF-8 | 10,288 | 2.15625 | 2 | [] | no_license | package org.tensorflow.lite.examples.classification;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.provider.BaseColumns;
import android.util.Log;
import android.widget.ImageView;
import android.widget.TextView;
im... | true |
10f05d91ba46c1769db3aac6050191e67cbd4d65 | Java | ashesh1105/java-projects | /Guice/src/main/java/com/practice/google/guice/provider/providesAnnotation/Discountable.java | UTF-8 | 198 | 1.8125 | 2 | [] | no_license | package com.practice.google.guice.provider.providesAnnotation;
import com.google.inject.ImplementedBy;
@ImplementedBy(NoDiscount.class)
public interface Discountable {
double getDiscount();
}
| true |
65484aa03d4d4ea5ae1e1cf464cad6e758267e47 | Java | hehaoming/hotelmsmerge | /src/com/hotelms/service/Impl/CommodityServiceImpl.java | UTF-8 | 8,219 | 2.3125 | 2 | [] | no_license | package com.hotelms.service.Impl;
import com.hotelms.bean.Commodity;
import com.hotelms.bean.ItemBean;
import com.hotelms.dao.CommodityMapper;
import com.hotelms.dao.ItemMapper;
import com.hotelms.service.CommodityService;
import com.hotelms.bean.CommodityVO;
import org.springframework.beans.factory.annotation.Autowi... | true |
dd5c30b6ca703fa7e574f805ceca4cbac074aa79 | Java | pangjanjira/tt | /TestEPea/src/java/th/co/scb/service/LogMQService.java | UTF-8 | 1,039 | 2.484375 | 2 | [] | no_license | /**
*
*/
package th.co.scb.service;
import th.co.scb.db.LogMQTable;
import th.co.scb.model.LogMQ;
import th.co.scb.util.ConnectDB;
import th.co.scb.util.DateUtil;
/**
* @author s51486
*
*/
public class LogMQService {
public void insertLogMQ(LogMQ logMQ) throws Exception {
ConnectDB connectDB = null;
t... | true |
8c6f4b3649cb23a65147f4a147b1502d334bac0c | Java | fupn26/TicketService | /ticket-service/src/main/java/com/epam/training/ticketservice/repository/MovieRepository.java | UTF-8 | 767 | 2.5 | 2 | [] | no_license | package com.epam.training.ticketservice.repository;
import com.epam.training.ticketservice.domain.Movie;
import com.epam.training.ticketservice.repository.exception.MovieAlreadyExistsException;
import com.epam.training.ticketservice.repository.exception.MovieMalformedException;
import com.epam.training.ticketservice.r... | true |
9e81355e633abbedfb16b5bc3925edd895cdda9b | Java | Wells-ING/warehouse | /src/cn/wellswang/servlet/ModifyGoodsServlet.java | UTF-8 | 2,952 | 2.328125 | 2 | [] | no_license | package cn.wellswang.servlet;
import cn.wellswang.entity.Goods;
import cn.wellswang.service.ModifyGoodsService;
import net.sf.json.JSONObject;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import ... | true |
6b11d5751e6ecdf92aa8c00fbb91c85acea667c5 | Java | abhineet27/travelogued-api | /travelogued-service/src/main/java/com/snapdeal/travelogued/entity/BundleInfoDetails.java | UTF-8 | 1,480 | 2.125 | 2 | [] | no_license | package com.snapdeal.travelogued.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Tab... | true |
c592bc4309b34d481a23b76d91ce121423146dbc | Java | iuliagalatan/ToyLanguage-Interpreter | /JavaFX1/src/Interpreter.java | UTF-8 | 3,497 | 2.8125 | 3 | [] | no_license | import Controller.Controller;
import Model.Expression.ArithmeticalExpression;
import Model.Expression.ConstantExpression;
import Model.Expression.VariableExpression;
import Model.ProgramState;
import Model.Statement.*;
import Model.Type.BoolType;
import Model.Type.IntType;
import Model.Value.BoolValue;
import Model.Val... | true |
c19e7adfc8b54dacf63bff0a1f3eb0abb7f13ab2 | Java | ailibin/hiim | /app/src/main/java/com/aiitec/hiim/im/model/Conversation.java | UTF-8 | 7,718 | 2.125 | 2 | [] | no_license | package com.aiitec.hiim.im.model;
import android.content.Context;
import android.text.TextUtils;
import com.aiitec.hiim.im.utils.AiiUtil;
import com.aiitec.hiim.im.utils.LogUtil;
import com.tencent.imsdk.TIMConversationType;
import com.tencent.imsdk.TIMFriendshipManager;
import com.tencent.imsdk.TIMUserProfile;
impor... | true |
7c9bff7560d4e5212e4b7a8b766fb5d51cea20d8 | Java | mcu1988/leetcode_top_interview_questions | /T0007_reverse_integer/Solu.java | UTF-8 | 993 | 3.5625 | 4 | [] | no_license | package T0007_reverse_integer;
class Solu {
static class Solution {
public int reverse(int x) {
// 判断正负, 转为正数处理
// 每次取尾数
// 提前判断 result * 10是否越界
// 时间复杂度O(log10(n)), 空间复杂度O(1)
boolean isNegative = x < 0 ? true : false;
// 转为整数处理
... | true |
62308e7c18d19646aeca23c4fbe3c00b21d6f770 | Java | hienqp/JavaCore | /_35_REGEX_REGularEXpression/PatternMatcherClass/Matcher/Les10_end_int_group.java | UTF-8 | 898 | 3.28125 | 3 | [] | no_license | package _35_REGEX_REGularEXpression.PatternMatcherClass.Matcher;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Les10_end_int_group {
public static void main(String[] args) {
String string = "Hello Java";
String regex = "^.+(l+o).+(av)a$";
Pattern pattern = P... | true |
8e8505a7e0d8b1c1f63fa27b315bf0c7244f0a4c | Java | ayahshawahneh/palCarWasher | /app/src/main/java/com/example/palcarwasher/CancelledOrdersByProviders.java | UTF-8 | 1,204 | 2.359375 | 2 | [] | no_license | package com.example.palcarwasher;
public class CancelledOrdersByProviders {
private String providerId;
private String orderId;
private String dateOfCancel;
private String timeOfCancel;
public CancelledOrdersByProviders() {
}
public CancelledOrdersByProviders(String providerId, String or... | true |
180f23cc4eaaf8bf1abbc98027b6e597363e4c0d | Java | lucagiacomelli/CR-Wikipedia | /src/cor/gui/ChoiceWindow.java | UTF-8 | 1,536 | 2.953125 | 3 | [] | no_license | package cor.gui;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import cor.main.Main;
@SuppressWarnings("serial")
public class ChoiceWindow extend... | true |
dad125a4f9a32a2745057c52e3c4ae7618a5e539 | Java | yichenghuang980/OO_Programming_Java | /Lab/MathServer.java | UTF-8 | 1,472 | 3.421875 | 3 | [] | no_license | package lab;
import java.io.*;
import java.net.*;
public class MathServer {
public static void main(String[] args) throws Exception {
ServerSocket serverSocket = new ServerSocket(4242);
System.out.println("Waiting for the client...");
Socket socket = serverSocket.accept();
System.o... | true |
2678df8d1669dfe1d026083cc7af3a40b89d11c2 | Java | canyinghao/CanOkHttp | /canokhttp/src/main/java/com/canyinghao/canokhttp/annotation/ResultType.java | UTF-8 | 991 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package com.canyinghao.canokhttp.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import androidx.annotation.IntDef;
/**
* 结果类型
* @author canyinghao
*/
@IntDef({ResultType.SUCCESS, ResultType.FAIL_NO_NETWORK, ResultType.FAIL_PROTOCOL,
ResultType.FAIL_NO_RESU... | true |
6946ced7f5ce1c976c8bdec4ed00e25444e6e28a | Java | ogavrisevs/GpxHrmMerge | /src/com/bla/laa/server/Coordinate.java | UTF-8 | 2,081 | 2.359375 | 2 | [] | no_license | package com.bla.laa.server;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import java.util.Date;
import javax.jdo.annotations.IdentityType;
@PersistenceCapable(identityType =... | true |
5bd4d1fa4286e183ed9a3a39fdeaf432c5cb5981 | Java | zhongxingyu/Seer | /Diff-Raw-Data/23/23_297d7033c30decaf62536d7a68a477e9ae9bd236/ExceptionResponse/23_297d7033c30decaf62536d7a68a477e9ae9bd236_ExceptionResponse_s.java | UTF-8 | 971 | 2 | 2 | [] | no_license | /**
*
* (c) 2012 MuleSoft, Inc. This software is protected under international copyright
* law. All use of this software is subject to MuleSoft's Master Subscription Agreement
* (or other master license agreement) separately entered into in writing between you and
* MuleSoft. If such an agreement is not in p... | true |
65d750a2219e681a38522f0fa6b272ecc92b5c57 | Java | ayannahindonesia/bank-app | /app/src/main/java/com/ayannah/asira/screen/agent/registerborrower/adddoc/AddDocumentAgentPresenter.java | UTF-8 | 4,631 | 1.976563 | 2 | [] | no_license | package com.ayannah.asira.screen.agent.registerborrower.adddoc;
import android.app.Application;
import android.widget.Toast;
import androidx.annotation.Nullable;
import com.androidnetworking.common.ANConstants;
import com.androidnetworking.error.ANError;
import com.ayannah.asira.data.local.PreferenceRepository;
impo... | true |
b5869a8c99a0bf1985cf5574bdb7e81f2ab2998a | Java | jzanetti4/Scorh-Backend | /group/src/main/java/com/example/group/controller/GroupController.java | UTF-8 | 674 | 1.921875 | 2 | [] | no_license | package com.example.group.controller;
import com.example.group.dataobject.Scorhgroup;
import com.example.group.repository.GroupRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMap... | true |
7a47b09698bd28838136656e9fbb96d9d8bc3870 | Java | bariscanakdag/Spring-Boot-JPA-Thymeleaf | /src/main/java/com/baris/springboot/thymeleafdemo/controller/EmployeeController.java | UTF-8 | 1,561 | 2.28125 | 2 | [] | no_license | package com.baris.springboot.thymeleafdemo.controller;
import com.baris.springboot.thymeleafdemo.entity.Employee;
import com.baris.springboot.thymeleafdemo.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframewor... | true |
39ca9e47f6b071fc8cc0b402ddba4ea481b77cc0 | Java | SammyVimes/manga | /app/src/main/java/com/danilov/supermanga/core/repository/HentaichanEngine.java | UTF-8 | 15,170 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | package com.danilov.supermanga.core.repository;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.annimon.stream.Collectors;
import com.annimon.stream.Stream;
import com.danilov.super... | true |
d0cc3fc7142b0c2fdf7adf4b2009d7a4d038fa92 | Java | snowgoon88/JSpaceZombie | /JOGL_tutorial/src/shape3D/GraphGL.java | UTF-8 | 2,344 | 2.5625 | 3 | [] | no_license | /**
*
*/
package shape3D;
import java.util.ArrayList;
import javax.media.opengl.GL2;
import javax.media.opengl.GL;
import javax.vecmath.Color4f;
import javax.vecmath.Point3f;
import model.Graph;
import model.GraphIterator;
import model.GraphLink;
/**
* @author @author snowgoon88ATgmailDOTcom
*
*/
public class... | true |
df333d3303f620ced67889b8224cdce7e236746c | Java | jruesga/rview | /wizard/src/main/java/com/ruesga/rview/wizard/WizardChooserFragment.java | UTF-8 | 1,967 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2016 Jorge Ruesga
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | true |
f5569401974c8a2b17d02e5966ea83352401bf7c | Java | consulo/consulo-java | /plugin/src/test/resources/inspection/dataFlow/fixture/IsNullCheck.java | UTF-8 | 243 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | public class IsNullCheck {
void bar() {
final Value v = call();
if (Value.isNull(v)) {
if(<warning descr="Condition 'v == null' is always 'true'">v == null</warning>) {}
}
}
Value call() {return new Value();}
}
| true |
fe7dc1485d97bafa553aeef936f26e61a3a588d0 | Java | lunarzzz/learning-practice | /src/main/java/com/example/demo/code/other/Solution45.java | UTF-8 | 2,625 | 3.6875 | 4 | [] | no_license | package com.example.demo.code.other;
import org.junit.Assert;
import org.junit.Test;
import java.util.stream.Stream;
/**
* @description:
* @author: zhangjiawei
* @create: 2018-08-28 17:41
**/
public class Solution45 {
/**
* 给定一个非负整数数组,你最初位于数组的第一个位置。
*
* 数组中的每个元素代表你在该位置可以跳跃的最大长度。
*
* ... | true |
6ac247b243e32e132f130c68a2f8563b4c63bcfe | Java | lqx0719/spider_light_framework | /src/response/Body.java | UTF-8 | 1,518 | 2.734375 | 3 | [] | no_license | package response;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import org.jsoup.Jsoup;
import org.jsoup.select.Elements;
public class Body {
private String bodyString;
private String chars... | true |
b02a4ba454bbc2ddf41c4b3e2681e5be52d863b0 | Java | MDEGroup/alpha-bank-usecase | /alpha-bank/src/main/java/it/univaq/disim/domain/data_warehouse/CustomerGeneral.java | UTF-8 | 4,443 | 1.757813 | 2 | [] | no_license | package it.univaq.disim.domain.data_warehouse;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class CustomerGeneral {
@Id
@GeneratedValue( strategy = GenerationType.IDENTITY )
private long id;
private l... | true |
45f82e5c1eab3cd922c0f340549245c816282d91 | Java | k0j2g1v/java_basic | /Sample_01/src/Prob/Prob2_최재범.java | UTF-8 | 1,129 | 3.46875 | 3 | [] | no_license | package Prob;
import java.util.Date;
import java.util.Scanner;
public class Prob2_최재범 {
public static void main(String[] args) {
int num = 90;
System.out.printf("%d => ", num);
System.out.println(num < 0 ? "음수": num == 0 ? "0":"양수");
/*
다음은 대문자를 소문자로 변경하는 코드입니다.
변수 ch에 저장된 ... | true |
27edc2a8eebf5b01cb47b19c2f872a215833f967 | Java | Yasfa0/Slide-it-Puzzle | /app/src/main/java/com/example/pkk_sip/TimeLimitActivity.java | UTF-8 | 6,866 | 1.828125 | 2 | [] | no_license | package com.example.pkk_sip;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.media.Image;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.CountDownTimer;
import androi... | true |
c4bdfc596b3c6e14ac33185e46b1e1648375b7ee | Java | developerzell/calculator-service | /src/main/java/net/zdm/calculatorservice/service/ArithmeticHistoryService.java | UTF-8 | 667 | 2.515625 | 3 | [] | no_license | package net.zdm.calculatorservice.service;
import net.zdm.calculatorservice.domain.ArithmeticHistoryRecord;
import org.springframework.stereotype.Service;
import java.util.Stack;
@Service
public class ArithmeticHistoryService {
private Stack<ArithmeticHistoryRecord> arithmeticHistoryStack = new Stack<>();
... | true |
023cc22ae6aa690f365081fa627d6313495deeaf | Java | zyken1/Selenium-WebDriver-tutorial | /AppNex/src/test/TestWikipedia.java | UTF-8 | 1,524 | 2.46875 | 2 | [] | no_license | package test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
//import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
/**
* @author Nex
*/
public class TestWikipedia {
public static void main(String[] ar... | true |
0d4b2d86198e17c598bba865f6699c1e642ce4f0 | Java | szimmy/sweng-bears | /src/Scans/IncorrectFileExtension.java | UTF-8 | 1,116 | 2.9375 | 3 | [] | no_license | package Scans;
import CMS2Statements.Statement;
import Controller.Controller;
import Reports.Entry;
import java.util.ArrayList;
/**
* Created by Zim on 4/15/2017.
*/
public class IncorrectFileExtension extends Scan {
public IncorrectFileExtension(){
KEYWORD = "File Extn";
count = 0;
}
... | true |
400204dca12e0a75545c5c4728df935c5219a265 | Java | axbator28/AndroidPoly | /TP_17_09/app/src/main/java/com/example/axbat/tp_17_09/Activities/CategoriesActivity.java | UTF-8 | 1,484 | 2.078125 | 2 | [] | no_license | package com.example.axbat.tp_17_09.Activities;
import android.app.Activity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import com.example.axbat... | true |
2344e09ee7114aa435b360cbf0e54cb5872ed5c0 | Java | mfateev/temporal-java-sdk | /temporal-sdk/src/test/java/io/temporal/common/converter/JsonDataConverterTest.java | UTF-8 | 5,116 | 2.03125 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2022 Temporal Technologies, Inc. All Rights Reserved.
*
* Copyright (C) 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Modifications copyright (C) 2017 Uber Technologies, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this ma... | true |
b3930103f0338644c03fac1a74e4a3a5affc5cba | Java | doncorley/kpme | /tk-lm/impl/src/main/java/org/kuali/kpme/tklm/leave/timeoff/dao/SystemScheduledTimeOffDaoOjbImpl.java | UTF-8 | 7,088 | 2.046875 | 2 | [] | no_license | /**
* Copyright 2004-2013 The Kuali Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ecl2.php
*
* Unless required by a... | true |
4ef2d7a635e2caa7347b1057f7a4684a5366728b | Java | ZZ022/foodSystem | /src/main/java/com/example/register/model/PostInfoRepository.java | UTF-8 | 873 | 1.835938 | 2 | [] | no_license | package com.example.register.model;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import com.example.register.model.PostInfo.PostInfoProjection;
import java.util.List;
import java.util.Optional;
public interface PostInfoRepository extends JpaRepos... | true |
18f12d2d882824434e61b1cf8799de8d760e8390 | Java | venkatasuryarameshbabu/palmetopractice | /Springexamples/src/springexamples/Testsample2.java | UTF-8 | 459 | 2.03125 | 2 | [] | no_license | package springexamples;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Testsample2 {
public static void main(String[] args) {
// TODO Auto-generated method stub
ApplicationContext context=new ClassPathXmlApplicationCon... | true |
37819499e8df2233cdb450e236d727adb940e7c8 | Java | sublimter/FindMe_Server | /src/com/fm/model/User.java | UTF-8 | 5,676 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | package com.fm.model;
import java.util.ArrayList;
public class User {
private String _id;
/**
* 学校
*
*/
private School school;
/**
* 院系
*
*/
private Department department;
/**
* 昵称
*
*/
private String userNickName;
/**
* 姓名
*
*/
private String userRealName;
/**
* 性别
*
*... | true |
9a79e06196c3016ee58323a0fa2f82448cc685d2 | Java | rodrigocrads/infnet-library | /src/br/edu/infnet/library/persistence/Dao.java | UTF-8 | 222 | 2.125 | 2 | [] | no_license | package br.edu.infnet.library.persistence;
import java.util.List;
public interface Dao<T> {
void salvar(T entity);
void atualizar(T entity);
T getById(Integer id);
List<T> getAll();
void remove(T entity);
}
| true |
da3aa9a4f8dddc34e3fadb9d03c9ac6ed9401d46 | Java | Guosmilesmile/fordreamvideo | /fordreamvedio/src/cn/edu/xmu/ForDream/friend/SwipeAdapter.java | UTF-8 | 8,166 | 2.03125 | 2 | [] | no_license | package cn.edu.xmu.ForDream.friend;
import java.util.ArrayList;
import java.util.List;
import cn.edu.xmu.ForDream.R;
import cn.edu.xmu.ForDream.util.AsynImageLoader;
import cn.edu.xmu.ForDream.util.FinalUrl;
import cn.edu.xmu.ForDream.util.RoundImageView;
import android.content.Context;
import android.view.Layout... | true |
46617c49fc924155940bc503980bab4214d9c0bc | Java | no1412/DesignPattern | /src/designPattern/factoryMethod/factory/Mi5MobileFactory.java | UTF-8 | 326 | 2.421875 | 2 | [
"MIT"
] | permissive | package designPattern.factoryMethod.factory;
import designPattern.factoryMethod.model.Mi5Mobile;
import designPattern.factoryMethod.model.MiMobile;
/**
* 小米5手机工厂
*/
public class Mi5MobileFactory implements MiMobileFactory {
@Override
public MiMobile create() {
return new Mi5Mobile();
}
}
| true |
358ef7d89639146b41dcf501c12c6e0dc374b12a | Java | wisp-forest/owo-lib | /src/main/java/io/wispforest/owo/ui/parsing/UIModel.java | UTF-8 | 17,260 | 2.234375 | 2 | [
"MIT"
] | permissive | package io.wispforest.owo.ui.parsing;
import io.wispforest.owo.Owo;
import io.wispforest.owo.ui.core.Component;
import io.wispforest.owo.ui.core.OwoUIAdapter;
import io.wispforest.owo.ui.core.ParentComponent;
import io.wispforest.owo.ui.core.Sizing;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.u... | true |
8223394810ffb88ac9c94c702227de0c90d30930 | Java | tengyiyuan/workplace | /app/src/main/java/com/toplion/cplusschool/Activity/DayListActivity.java | UTF-8 | 15,926 | 1.992188 | 2 | [] | no_license | package com.toplion.cplusschool.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.ab.http.AbHttpUtil;
import com.ab.http.AbRequestPara... | true |
0dcf0d5db63efb258591fc4fd689bf8498581fab | Java | ctt-gob-es/valet | /valet-core/src/main/java/es/gob/valet/tsl/certValidation/impl/common/DigitalIdentitiesProcessor.java | UTF-8 | 16,488 | 1.703125 | 2 | [] | no_license | /*
/*******************************************************************************
* Copyright (C) 2018 MINHAFP, Gobierno de España
* This program is licensed and may be used, modified and redistributed under the terms
* of the European Public License (EUPL), either version 1.1 or (at your option)
* any later ver... | true |
e1da8b59506086a0c391ceb7d41c7e07551fd2b6 | Java | JudeRester/SpringEdu | /src/main/java/com/kh/myapp/bbs/service/BbsServiceImplXML.java | UTF-8 | 3,222 | 1.992188 | 2 | [] | no_license | package com.kh.myapp.bbs.service;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import com.kh.myapp.bbs.criteria.FindCri... | true |
9fbcf122578e674a9e98a06380822803af65b32b | Java | DaveModl/design-model-study | /src/com/actor/mediator/demo/MainTest.java | UTF-8 | 406 | 2.484375 | 2 | [] | no_license | package com.actor.mediator.demo;
public class MainTest {
public static void main(String[] args) {
Mediator mediator = new ConcreteMediator();
Colleague colleague = new ConcreteColleague();
Colleague colleague2 = new ConcreteColleague2();
mediator.register(colleague);
mediato... | true |
e55c2410e05007b2dd10ab2e63ce78090a9a5802 | Java | bin-yu/rbac | /rbac-lib/src/main/java/org/binyu/rbac/daos/RoleMapper.java | UTF-8 | 1,266 | 2.078125 | 2 | [] | no_license | /********************************************************************
* File Name: RoleMapper.java
*
* Date Created: Apr 20, 2015
*
* ------------------------------------------------------------------
* Copyright (C) 2010 Symantec Corporation. All Rights Reserved.
*
******************************************... | true |
b1463339680fc09dc9b54715183ebff041e9d4a9 | Java | Trumbore/dcs-packaging-tool | /dcs-packaging-tool-gui/src/test/java/org/dataconservancy/packaging/gui/ConfigurationTest.java | UTF-8 | 4,082 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | package org.dataconservancy.packaging.gui;
/*
* Copyright 2015 Johns Hopkins University
*
* 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-... | true |
3b3ea739850e32dc28a0a103793ceda05d7526ba | Java | cmdnath/ProjectGlacier | /ProjectGlacier/src/main/java/com/chameleon/database/databaseImpl/MariaDBDatabase.java | UTF-8 | 350 | 2.296875 | 2 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | package com.chameleon.database.databaseImpl;
import com.chameleon.database.Database;
public class MariaDBDatabase extends Database {
public MariaDBDatabase(String host, String port, String dbName) {
super.driver = "org.mariadb.jdbc.Driver";
super.connectionString = "jdbc:mariadb://" + host + ":" +... | true |
158cad907984d930e17bde6d30f63a2f07f1b427 | Java | Neowizard/FTPRP | /FT/src/Model/Parameter.java | UTF-8 | 913 | 2.875 | 3 | [] | no_license | package Model;
import java.io.Serializable;
public class Parameter implements Serializable {
private static final long serialVersionUID = 1L;
public String Name;
public Boolean IsTypedParam;
public String ParamType;
public Parameter(String name) {
this(name, false, "");
... | true |
8d86ec6a9ef647e615b75039576acf56f0099ba7 | Java | Bhavna0121/SourceFuseAWTrial | /src/main/java/org/sourcefuse/pomutilities/FormPageUtility.java | UTF-8 | 6,242 | 2.5 | 2 | [] | no_license | package org.sourcefuse.pomutilities;
import java.util.List;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.sourcefuse.pom.FormPage;
public class FormPageUtility extends FormPage {
public WebElement inputFirstName(WebDriver driver, String value) {
try {
System.out.print... | true |
505425432e8ed01f742fd0dcd6aaa0a8cada2430 | Java | raman-bt/autopsy | /RecentActivity/src/org/sleuthkit/autopsy/recentactivity/SearchEngineURLQueryAnalyzer.java | UTF-8 | 16,527 | 1.609375 | 2 | [
"Apache-2.0",
"LGPL-2.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-or-later",
"WTFPL",
"GPL-1.0-or-later",
"LicenseRef-scancode-oracle-bcl-javase-javafx-2012",
"Zlib"
] | permissive | /*
* Autopsy Forensic Browser
*
* Copyright 2012 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> 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 |
356192d405644867311fc51d06c97a4a7b89993b | Java | Lkodama/testswagger | /testswagger-web/src/main/java/com/br/testlabs/controller/UserController.java | UTF-8 | 3,812 | 2.390625 | 2 | [] | no_license | package com.br.testlabs.controller;
import static org.springframework.http.HttpStatus.NO_CONTENT;
import static org.springframework.http.HttpStatus.OK;
import static org.springframework.http.HttpStatus.CREATED;
import static org.springframework.web.bind.annotation.RequestMethod.DELETE;
import static org.springframewor... | true |
df9839ab4009142536813e9a3b5d31dd81514ac8 | Java | bklement-doctu/spring-demo | /book/src/test/java/com/doctusoft/book/BookRepositoryITest.java | UTF-8 | 1,056 | 2.546875 | 3 | [] | no_license | package com.doctusoft.book;
import static com.doctusoft.book.Genre.ADVENTURE;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframewo... | true |
47609dbf30bec6dfd69dfbca34fdbfb43c8f3c1a | Java | surtich/Trabajo-Ricardo-Lara | /src/servlets/Products.java | UTF-8 | 2,328 | 2.484375 | 2 | [] | no_license | package servlets;
import java.io.IOException;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
impo... | true |