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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6ec33e4f56bf22fbdae53f1c5537348c0907fffd | Java | perzxf/v | /src/main/java/com/ls/service/system/SysUserRoleService.java | UTF-8 | 348 | 1.679688 | 2 | [] | no_license | package com.ls.service.system;
import com.baomidou.mybatisplus.service.IService;
import com.ls.entity.system.SysUserRole;
import java.util.List;
public interface SysUserRoleService extends IService<SysUserRole> {
/**
*
*/
List<SysUserRole> selectListByUserId(Long userId);
void saveUserRole(Lon... | true |
1be61927520968daed5ec26941dd3c0210e3409f | Java | zecardoso/Televisivo | /src/main/java/com/televisivo/service/exceptions/ConfirmeSenhaNaoInformadaException.java | UTF-8 | 355 | 2 | 2 | [] | no_license | package com.televisivo.service.exceptions;
import org.springframework.security.core.AuthenticationException;
public class ConfirmeSenhaNaoInformadaException extends AuthenticationException {
private static final long serialVersionUID = -7898319409117005357L;
public ConfirmeSenhaNaoInformadaException(String ... | true |
feae704563ad62db01ab84f3b42c1371cdd500a3 | Java | Exodary/Healty-Friend | /app/src/main/java/com/example/krasimir/fitness_friend/SignUp/SignUpContracts.java | UTF-8 | 625 | 2.0625 | 2 | [] | no_license | package com.example.krasimir.fitness_friend.SignUp;
import com.example.krasimir.fitness_friend.base.authentication.AuthenticationProvider;
import com.example.krasimir.fitness_friend.base.contracts.BaseContracts;
import io.reactivex.Observable;
/**
* Created by Krasimir on 10/10/2017.
*/
public interface SignUpCon... | true |
ff20fb8d8ff009092efeab22486f7e11003ae03f | Java | theelk801/mage | /Mage.Sets/src/mage/cards/f/FesteringWound.java | UTF-8 | 5,090 | 1.921875 | 2 | [] | no_license | /*
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this lis... | true |
62093f1ff23cc83e2a46ac8c565935eb035f36c8 | Java | Ruanjiahui/Project | /HTTP_SDK/src/main/java/com/example/administrator/Thread/HttpFileAsyncTask.java | UTF-8 | 2,043 | 2.390625 | 2 | [] | no_license | package com.example.administrator.Thread;
import android.os.AsyncTask;
import android.util.Log;
import com.example.administrator.HttpCode;
import com.example.administrator.Interface.HttpFileConnect;
import com.example.administrator.Interface.HttpFileResult;
/**
* Created by Administrator on 2016/8/15.
* <p/>
* 字节... | true |
a3a4df904a62be82400468cbb49db425706ae383 | Java | bellmit/FMS-1 | /core/src/main/java/clb/core/wecorp/login/service/ILoginService.java | UTF-8 | 330 | 1.835938 | 2 | [] | no_license | package clb.core.wecorp.login.service;
import org.springframework.security.core.AuthenticationException;
public interface ILoginService {
public String checkLogin(String code,String appId) throws AuthenticationException;
public String checkLoginForApp(String code) throws AuthenticationException;
public String logi... | true |
b5dd9249b0e1f9eebd564a74c85ccab40d5e52ca | Java | pcc80/BrainAcademyProjectJava | /ua.com.prodavashkin.airportcontrolcenter/src/GUI/SearchPort.java | UTF-8 | 1,154 | 2.515625 | 3 | [] | no_license | package GUI;
import DataBase.PortListTableModel;
import DataBase.ConnectingToDataBase;
import java.sql.SQLException;
import javax.swing.JDialog;
import javax.swing.JOptionPane;
import javax.swing.JScrollPane;
import javax.swing.JTable;
public class SearchPort {
public void SearchPort (String arg) throws SQL... | true |
1d975c43980271739eb810795197a26486a6cc4b | Java | AdrChacon/ChaCa-Progra | /Intro y Taller Progra- TEC/Programacion orientada a objetos/Java/Collatz/src/collatz/Collatz.java | UTF-8 | 1,841 | 3.59375 | 4 | [] | no_license | package collatz;
import java.util.Scanner;
public class Collatz {
Scanner entrada = new Scanner(System.in);
public Collatz(){
}
public void conjecture(){
String sequence = "";
System.out.println("Ingrese el valor de n");
int Inicio = entrada.nextInt();
System.out.println... | true |
ef14ce91ebfe22e70e88997fd647b33864d366f9 | Java | KingGiskard/LaptopSearch | /SearchView.java | UTF-8 | 3,359 | 2.96875 | 3 | [] | no_license | import java.awt.*;
import java.awt.event.*;
import java.util.ArrayList;
import javax.swing.*;
import javax.swing.event.*;
public class SearchView extends JPanel implements ListSelectionListener
{
private JList list;
private DefaultListModel listModel;
private static final String selectString = "S... | true |
1ed6dca1172db2ec94def3c911d7840bbe11b8e3 | Java | JavaAdore/Almabani | /Almabani-common/src/com/almabani/common/entity/schema/adminwkf/WokOccurrenceDemand.java | UTF-8 | 6,167 | 1.945313 | 2 | [] | no_license | package com.almabani.common.entity.schema.adminwkf;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.p... | true |
995666380312191038cb796e33cd060ce382098c | Java | rebider/netone-middleware | / netone-middleware/mobileone/andorid/Mobileworkflowplatform/src/com/wfp/activity/DynamicFormActivity.java | UTF-8 | 16,980 | 1.820313 | 2 | [] | no_license | package com.wfp.activity;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.Activity;
import android.app.ProgressDia... | true |
02aa9b0053c64f0aba8fea3387e0e29a0b95eee1 | Java | kalapriyakannan/UMLONT | /com.ibm.ccl.soa.deploy.core.ui/src/com/ibm/ccl/soa/deploy/core/ui/figures/HostingLinkConnection.java | UTF-8 | 3,019 | 1.546875 | 2 | [] | no_license | /***************************************************************************************************
* Copyright (c) 2003, 2007 IBM Corporation Licensed Material - Property of IBM. All rights
* reserved.
*
* US Government Users Restricted Rights - Use, duplication or disclosure v1.0 restricted by GSA ADP
* S... | true |
378332cd49366b4055f8f137411b8270fa8647a4 | Java | mhmtaysal/HrmsProject | /northwindHmrs/src/main/java/kodlama/io/northwindHmrs/business/concretes/CandidateImageManager.java | UTF-8 | 2,189 | 2.234375 | 2 | [] | no_license | package kodlama.io.northwindHmrs.business.concretes;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import kodlama.io.northwindHmrs.business.abstracts.CandidateImageService;
import kod... | true |
3a6ba24794ce355f9a0646d0f53ffaceacf96468 | Java | 554291911/OJ | /src/commonDataStructure/DoubleNode.java | UTF-8 | 195 | 2.65625 | 3 | [] | no_license | package commonDataStructure;
public class DoubleNode {
public int value;
public DoubleNode pre;
public DoubleNode next;
public DoubleNode(int data) {
this.value = data;
}
} | true |
922de2875b45e1c50554e70cc52aa946dfbce3a8 | Java | b1ueskydragon/PlayGround | /src/main/java/leetcode/p0540/binary_search/Solution.java | UTF-8 | 1,175 | 3.671875 | 4 | [] | no_license | package leetcode.p0540.binary_search;
class Solution {
// nums is a sorted array
// consisting of only integers where every element appears exactly twice,
// except for one element which appears exactly once.
//
// O(log n) time and O(1) space.
public int singleNonDuplicate(int[] nums) {
int l = 0, r =... | true |
1c35796c6ab5c235bd8eb24f409e33622011b54e | Java | Zyysurely/leetcode_algorithm_java | /501-maxSuminBST.java | UTF-8 | 956 | 3.375 | 3 | [] | no_license | import java.util.*;
class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) { val = x; }
}
// 中序遍历时是有序的,有序数组的众数问题
class Solution_501 {
int pre=0, cur=0, max=0;
ArrayList<Integer> res = new ArrayList<Integer>();
public int[] findMode(TreeNode root) {
inOr... | true |
fc1a54eeded08439ae9d9cf6d6778b659e8491a0 | Java | jignaciogomez/VisitorAdicional | /src/Orders/NonCaliforniaBuilder.java | UTF-8 | 559 | 2.3125 | 2 | [] | no_license | package Orders;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
/**
*
* @author jigna
*/
public class NonCaliforniaBuilder extends UIBuilder {
public NonCaliforniaBuilder() {
}
public void Agrega... | true |
84e4425a32d6cbd2d8b34083fd03397a38e73da6 | Java | lq920320/algorithm-java-test | /src/test/java/other/IntNumber2ChineseTest.java | UTF-8 | 2,648 | 3.03125 | 3 | [] | no_license | package other;
import org.junit.Test;
/**
* @author liuqian
* @date 2020/05/07
*/
public class IntNumber2ChineseTest {
private static final String[] units = {"", "十", "百", "千", "万", "十万", "百万", "千万", "亿", "十亿", "百亿", "千亿", "万亿"};
private static final char[] numArray = {'零', '一', '二', '三', '四', '五', '六', '... | true |
6e2e432c6a4dd2200d449ff7d169c4b2258995f7 | Java | EansonLee/LiveShow | /app/src/main/java/com/maywide/liveshow/net/resp/SocketBaseResp.java | UTF-8 | 498 | 2.3125 | 2 | [] | no_license | package com.maywide.liveshow.net.resp;
import java.io.Serializable;
/**
* websocket返回
* @param <T>
*/
public class SocketBaseResp<T> implements Serializable {
//类型
private String type;
//具体数据
private T data;
public String getType() {
return type;
}
public void setType(String ... | true |
7522635f96068797fb39ceaffd2e0d4902624c58 | Java | Satish-BaldiReddi/javaprograms | /Practice/src/com/nit/Examples/Perfact.java | UTF-8 | 637 | 3.46875 | 3 | [] | no_license | package com.nit.Examples;
import java.util.Scanner;
public class Perfact {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
System.out.print("Enetr number : ");
int num = scn.nextInt();
int temp;
temp=num;
int fact=0;
for(int i=1;... | true |
43320a68d932b9f4e972b8a4158080b891606157 | Java | zengyang2014/codingDojo-kata-args | /args02/src/test/java/codingDojo/kata/args/twice/SchemaTest.java | UTF-8 | 453 | 2.234375 | 2 | [] | no_license | package codingDojo.kata.args.twice;
import org.junit.Test;
import static org.junit.Assert.*;
public class SchemaTest {
@Test
public void should_resolve_schema_pattern() {
Schema schema = new Schema("l:boolean,d:string,p:int");
assertEquals("boolean", schema.getFlagByName("l").getValueType());
assert... | true |
e95b86802d9ba0e4182849d66e6b473af1af9489 | Java | nikorenos/marcin-bala-kodilla-java | /kodilla-testing/src/main/java/com/kodilla/testing/JavaTest/test17/Test.java | UTF-8 | 589 | 3.265625 | 3 | [] | no_license | package com.kodilla.testing.JavaTest.test17;
import java.util.HashMap;
import java.util.Map;
public class Test {
public static void main(String[] args) {
Map<String, Book> books = new HashMap<>();
books.put("ISBN12345", new Book("Joshua Bloch", "Java. Efektywne programowanie."));
if (book... | true |
681a85c7d2ae1013c4a35d01acd2258461f5eaf1 | Java | AustinDiviness/ClueGame2 | /ClueGame2/src/clueGame/DetectiveNotes.java | UTF-8 | 2,564 | 2.90625 | 3 | [] | no_license | package clueGame;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.util.ArrayList;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JComponent;
impo... | true |
e0739b9c1fbd9b47d5a700e369f6e6b70b5e6305 | Java | michaeleldred/engine | /Tests/bracketunbracket/theengine/event/EventManagerTest.java | UTF-8 | 1,227 | 2.78125 | 3 | [] | no_license | /*
* Soli Deo gloria
*/
package bracketunbracket.theengine.event;
import static org.junit.Assert.*;
import org.junit.Test;
/**
* @author Michael Eldred
*/
public class EventManagerTest {
@Test
public void AddListenerToManager() {
EventManager eventManager = new EventManager();
MockListener ... | true |
559b6cd401d7cb8210b9df1f20f62ef289b4c3b3 | Java | viren1990/graphQL-SpringBoot | /graphql-demo/src/main/java/io/viren/graphqldemo/repositories/ProductRepository.java | UTF-8 | 368 | 1.921875 | 2 | [] | no_license | package io.viren.graphqldemo.repositories;
import java.util.Optional;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import io.viren.graphqldemo.models.Product;
@Repository
public interface ProductRepository extends CrudRepository<Product, Long>{
Opti... | true |
46fb3925b10e1f61dacc4be3b75bef024862888d | Java | ebi-gene-expression-group/atlas | /base/src/main/java/uk/ac/ebi/atlas/species/AtlasInformationDao.java | UTF-8 | 993 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package uk.ac.ebi.atlas.species;
import com.google.gson.stream.JsonReader;
import uk.ac.ebi.atlas.model.resource.AtlasResource;
import uk.ac.ebi.atlas.model.resource.JsonFile;
import uk.ac.ebi.atlas.utils.GsonProvider;
import javax.inject.Inject;
import javax.inject.Named;
import java.nio.file.Path;
import java.util.... | true |
bab6c33b3802c5c82bd4fea89f5c8a085b4e7762 | Java | coderKingDH/BnsCalculator | /app/src/main/java/com/wangdh/bnscalculator/fragment/CombinationFragment.java | UTF-8 | 3,790 | 2.03125 | 2 | [] | no_license | package com.wangdh.bnscalculator.fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextVie... | true |
83abc63164a95d708dfa453dcd7421ed5c97e460 | Java | FTC-9974-THOR/SkyStone | /TeamCode/src/main/java/org/firstinspires/ftc/teamcode/beuler/AutonomousSensorManager.java | UTF-8 | 3,198 | 2.375 | 2 | [
"BSD-3-Clause"
] | permissive | package org.firstinspires.ftc.teamcode.beuler;
import com.qualcomm.robotcore.hardware.AnalogInput;
import com.qualcomm.robotcore.hardware.ColorSensor;
import com.qualcomm.robotcore.hardware.DcMotorEx;
import com.qualcomm.robotcore.hardware.DistanceSensor;
import com.qualcomm.robotcore.hardware.HardwareMap;
import org... | true |
a3d6d38bf62a6ed5169504ba94f06704728c3067 | Java | foxiaotao/cx | /src/com/itheima/action/DepartmentAction.java | UTF-8 | 2,066 | 2.140625 | 2 | [] | no_license | package com.itheima.action;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.beans.BeanUtils;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import com.itheima.action.base.BaseAction;
import com.itheima.annotation.privilege.P... | true |
e1cca6a2aba83c29a956a36fccff22f2700c5637 | Java | lyb-geek/springboot-learning | /springboot-code-authorization/src/main/java/com/github/lybgeek/user/controller/UserController.java | UTF-8 | 1,012 | 2 | 2 | [] | no_license | package com.github.lybgeek.user.controller;
import com.github.lybgeek.user.entity.User;
import com.github.lybgeek.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* <p>
* 前端控制器
* </p>
*
* @auth... | true |
4d49ab1836794f1ef885f9135498cfbf50066a36 | Java | linj6/springboot-dubbo-mybatis | /common/src/main/java/com/lnjecit/common/base/domain/BaseEntity.java | UTF-8 | 751 | 2.03125 | 2 | [] | no_license | package com.lnjecit.common.base.domain;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
/**
* BaseEntity 实体基类
* 适用于主键id为int类型
*
* @author lnj
* @createTime 2018-11-01 16:01
**/
@Data
@EqualsAndHashCode
public class BaseEntity implements Serializable {
... | true |
eaff1b25b713775e4da5cffce87f6978e26ad923 | Java | loganplanche/java-practice | /src/com/company/Unsurdeux.java | UTF-8 | 722 | 3.46875 | 3 | [] | no_license | package com.company;
import java.util.ArrayList;
import java.util.List;
public class Unsurdeux {
private static void unSurDeux(List<Integer> maListe) {
int compteur = maListe.size();
for (int i = 0; i < maListe.size(); i++) {
if (i % 2 == 0) {
maListe.remove(i);
... | true |
b7869e5b90a480a97ae4bf8aa60f7eefe0896663 | Java | andrelfs01/gpa-soa | /gpa-soa-bolsa/src/main/java/br/ufc/quixada/spa/service/impl/AlunoRestServiceImpl.java | UTF-8 | 922 | 2.125 | 2 | [] | no_license | package br.ufc.quixada.spa.service.impl;
import java.util.List;
import javax.inject.Named;
import org.springframework.web.client.RestTemplate;
import br.ufc.quixada.spa.model.IdAluno;
import br.ufc.quixada.spa.model.util.Aluno;
import br.ufc.quixada.spa.service.AlunoRestService;
@Named
public class AlunoRestServic... | true |
40aa6f6eb55fdaef62409ba3674705292a093325 | Java | datvai01/pe-transaction-api | /src/main/java/com/pe/transaction/dto/Transaction.java | UTF-8 | 1,085 | 2.3125 | 2 | [] | no_license | package com.pe.transaction.dto;
public class Transaction
{
public int id;
public String name;
public String businessSegment;
public int sla;
public Transaction() {}
/**
*
* @param id
* @param name
* @param businessSegment
* @param sla
*/
public Transaction(int id, String name, String busines... | true |
c67bdf7b1e3fa72c1d2e0e76dce8b5eb0f9a9ea7 | Java | KasperHelsted/P8-MobileApplication | /Program/app/src/main/java/p8project/sw801/data/local/dao/SmartDeviceDao.java | UTF-8 | 1,154 | 2.171875 | 2 | [
"MIT"
] | permissive | package p8project.sw801.data.local.dao;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Delete;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;
import android.arch.persistence.room.Update;
import java.util.List;
import p8project.sw801.data.model... | true |
59ac917edf7ecb544d7f6f784b1f2830d5910175 | Java | jdenny/jardenApps | /javacourse/src/main/java/demo/rmi/SumsImpl.java | UTF-8 | 482 | 2.671875 | 3 | [] | no_license | package demo.rmi;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
public class SumsImpl extends UnicastRemoteObject implements Sums {
private static final long serialVersionUID = 1L;
private int series = 0;
public SumsImpl() throws RemoteException {
System.out.println("SumsImpl runn... | true |
aa797ae85dde935465936d1b39c8f8cbb6e4f5d0 | Java | jatwigg/flippybord | /app/src/main/java/com/xazux/_2dlib/sprites/Sprite.java | UTF-8 | 702 | 2.546875 | 3 | [] | no_license | package com.xazux._2dlib.sprites;
import android.graphics.Canvas;
import com.xazux._2dlib.sprites.components.CollisionArea;
import com.xazux._2dlib.sprites.components.Texture;
/**
* Created by josh on 09/01/15.
*/
public class Sprite {
private Texture _texture;
private CollisionArea _collisionArea;
pu... | true |
3dd18542e56be3e1ee21d66cba792dd38f4ef908 | Java | hilockman/cim2ddl | /code/src/ei-ads-server/src/main/java/com/znd/ads/mapper/CalcJobMapper.java | UTF-8 | 1,907 | 2.078125 | 2 | [] | no_license | package com.znd.ads.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Re... | true |
8f47ac0cc72188f770d33a7c5cfbcf3d61d485db | Java | Leopinhal82/projetopedidos | /spring-boot-rabbitmq/src/test/java/com/leo/springboot/ApplicationTests.java | UTF-8 | 2,632 | 2.234375 | 2 | [] | no_license | package com.leo.springboot;
import java.math.BigDecimal;
import org.junit.Assert;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.MethodSorters;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.contex... | true |
8ac39852a4c8a5ba633eed2baf5abb21a8c1fa90 | Java | LoseyourseIf/introspection | /examples/xingyu-lab-unified-auth/svc-unified-auth/src/main/java/xingyu/lu/lab/unified/utils/url/UrlQueryUtil.java | UTF-8 | 1,362 | 2.546875 | 3 | [] | no_license | package xingyu.lu.lab.unified.utils.url;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.Map;
/**
* @author xingyu.lu
* @create 2021-04-25 16:45
**/
public class UrlQueryUtil {
public static String jointQueryStrUrl(String url, Map<String, Object> queries) throws Unsup... | true |
264a04ae99c8cd467fac5314e3dfdfbabae11260 | Java | bjblack/anathema_3e | /Hero_Magic/src/main/java/net/sf/anathema/hero/magic/display/MagicDisplayLabeler.java | UTF-8 | 551 | 2.59375 | 3 | [] | no_license | package net.sf.anathema.hero.magic.display;
import net.sf.anathema.library.resources.Resources;
import net.sf.anathema.magic.data.Magic;
public class MagicDisplayLabeler
{
private Resources resources;
public MagicDisplayLabeler (Resources resources)
{
this.resources = resources;
}
public Stri... | true |
f1ee4f0cf39c3f882a9303a4e32ca39d39d6c8a3 | Java | Team-JOE/ImageMarket-Android | /app/src/main/java/com/aosproject/imagemarket/Adapter/CartAdapterHK.java | UTF-8 | 10,786 | 2.03125 | 2 | [] | no_license | package com.aosproject.imagemarket.Adapter;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageVie... | true |
321d09038391776aa15690bce5e8ee2c909d4502 | Java | noemiehammann/eg23app | /Livrable2/app/src/main/java/fr/eg23/livrable2/StatistiquesFlux.java | UTF-8 | 1,942 | 2.25 | 2 | [] | no_license | package fr.eg23.livrable2;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.Toast;
public class StatistiquesFlu... | true |
a395a7a46d276778fe14b99970e7c31fc5f9ea23 | Java | bhismalab/START | /START_frontend/Sources/StartApp/sdk_eye_tracking/src/main/java/com/reading/start/sdk/utils/PupilDetectHelper.java | UTF-8 | 1,253 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | package com.reading.start.sdk.utils;
import org.opencv.core.Mat;
import org.opencv.core.Point;
import org.opencv.core.Rect;
/**
* Native wrapper. Uses for detect pupil on the image.
*/
public class PupilDetectHelper {
private static final String TAG = PupilDetectHelper.class.getSimpleName();
static {
... | true |
4b4708757ab7a3e029d0b9f389a6817a1abda87d | Java | LimHyungang/Java-Drawing-Panel | /Frame/MainTest.java | UTF-8 | 478 | 2.15625 | 2 | [] | no_license | package Frame;
import java.awt.Color;
import java.awt.event.KeyEvent;
import javax.swing.JFrame;
import information.Information;
public class MainTest {
public static void main(String[] args) {
// TODO Auto-generated method stub
MainFrame.getInstance().setDefaultCloseOperation(JFrame.EXIT_ON_CLO... | true |
0dc1ae0dc10e65745a7ae2c5705c4a9c094a0a35 | Java | maurocg89/LudovicoAndroid | /src/com/example/bar/model/Cliente.java | UTF-8 | 976 | 2.671875 | 3 | [] | no_license | package com.example.bar.model;
import com.j256.ormlite.field.DatabaseField;
public class Cliente {
@DatabaseField(generatedId=true)
private int id_cliente;
@DatabaseField
private String nombre;
@DatabaseField
private String apellido;
public Cliente(){}
public Cliente(String nombre){
this.nombre = nomb... | true |
442cf7b4dff77f4d156b18cedc415d6e2eb2538d | Java | devkiang/WebProjectCrawler | /src/com/bk/crawler/service/EncryptionService.java | UTF-8 | 403 | 1.867188 | 2 | [] | no_license | package com.bk.crawler.service;
import java.util.Map;
/**
* Created by shikee_app03 on 16/9/5.
*/
public interface EncryptionService {
public static String DefaultKey="ceb89727213a4573b0ffab5c61a9727e";
public String encrypt(String content, String password);
public String decrypt(String content, String ... | true |
c5c80146805d17feba64a051cb048f71e504ccba | Java | ZzoeyYang/EducationManagementSystem | /src/team/hnucs/edu/dao/CourseSelectionDAO.java | UTF-8 | 510 | 2.125 | 2 | [] | no_license | package team.hnucs.edu.dao;
import java.util.List;
import team.hnucs.edu.entity.Course;
import team.hnucs.edu.entity.CourseSelection;
import team.hnucs.edu.entity.Student;
import team.hnucs.edu.entity.Teacher;
public interface CourseSelectionDAO {
abstract List<Student> findByCourse(Course cour);
abstract List<Cou... | true |
e710ba78a3b3a2634e3172eb6b97f85cfb1dd56e | Java | Mimi2209/sjarmKafe | /TestTab(1)/app/src/main/java/com/example/eli/testtab/ListingActivity.java | UTF-8 | 3,598 | 2.28125 | 2 | [] | no_license | package com.example.eli.testtab;
import android.app.ProgressDialog;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.ListView;
import ... | true |
b084ffe105b9759c6f03658c4956b16d1393d787 | Java | Azimkhan/Text | /src/kz/epam/azimkhan/text/exception/TextReadException.java | UTF-8 | 622 | 2.3125 | 2 | [] | no_license | package kz.epam.azimkhan.text.exception;
/**
* Date: 11.06.13
* Time: 17:36
*/
public class TextReadException extends Exception{
private static final long serialVersionUID = -2598491912011714986L;
public TextReadException() {
}
public TextReadException(String message) {
super(message);
... | true |
49fe673138897d96e4cf0ba60140414a7d010072 | Java | songsqs/nongzi | /src/main/java/com/shennong/nongzi/server/service/product/ProductServiceImpl.java | UTF-8 | 3,137 | 2.234375 | 2 | [] | no_license | package com.shennong.nongzi.server.service.product;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.shennong.nongzi.commo... | true |
0663e9d6716ff33716e3ed080120d4bcca737130 | Java | sunYangGitHub/distkv | /parser/src/main/java/com/distkv/parser/po/DistKVParsedResult.java | UTF-8 | 660 | 2.140625 | 2 | [
"BSD-3-Clause"
] | permissive | package com.distkv.parser.po;
import com.distkv.common.RequestTypeEnum;
public class DistKVParsedResult {
public RequestTypeEnum requestType;
public Object request;
public DistKVParsedResult() {
}
public DistKVParsedResult(RequestTypeEnum requestType, Object request) {
this.requestType = requestType;
... | true |
369b7841eb73574059b07451b9d48462a61ba724 | Java | leon9reat/mvvm1 | /app/src/main/java/com/medialink/mvvm1/repository/MovieRepository.java | UTF-8 | 2,654 | 2.671875 | 3 | [] | no_license | package com.medialink.mvvm1.repository;
import android.app.Application;
import android.os.AsyncTask;
import androidx.lifecycle.LiveData;
import com.medialink.mvvm1.db.MovieDB;
import com.medialink.mvvm1.db.MovieDao;
import com.medialink.mvvm1.model.Movie;
import java.util.List;
public class MovieRepository {
p... | true |
e2bf8df1132f613be38916f6fb437287c016eb63 | Java | Sguschenka/laba_Compiler | /src/main/java/mirea/interpreter/Record.java | UTF-8 | 597 | 2.96875 | 3 | [] | no_license | package mirea.interpreter;
/**
* Basic record for SymbolTable class.
* Contains name, value and type of variable.
* @see SymbolTable
*/
class Record {
private String name;
private Object value;
private String type;
Record(String name, Object value, String type){
this.name = name;
t... | true |
2bca11e46b32c7a3c9ab57e1a918fe3e0ada23e6 | Java | codehaus/redback | /plexus-components/trunk/plexus-registry/plexus-registry-api/src/main/java/org/codehaus/plexus/registry/RegistryCollectionConverter.java | UTF-8 | 1,847 | 1.914063 | 2 | [] | no_license | package org.codehaus.plexus.registry;
/*
* Copyright 2007 The Codehaus Foundation.
*
* 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
... | true |
b558dd9bdb4419cd5a74779b4c6f0c15dc10e132 | Java | Ruegg/ElementConfiguration | /Java Source/src/ruegg/andre/Loader.java | UTF-8 | 643 | 2.546875 | 3 | [] | no_license | package ruegg.andre;
import java.util.List;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Loader {
public ClassLoader cl = this.getClass().getClassLoader();
public List<String[]> getElementInformation() throws IOException {
... | true |
25d24e1b7d9b23fa2eb4ac9a75af84689eb113a6 | Java | ehrencrona/testfirst | /src/main/java/com/polopoly/ps/test/NoCurrentRequestException.java | UTF-8 | 298 | 1.851563 | 2 | [] | no_license | package com.polopoly.ps.test;
/**
* @see ServletRequestThreadLocal#getRequest()
*/
public class NoCurrentRequestException extends Exception {
public NoCurrentRequestException() {
super();
}
public NoCurrentRequestException(Throwable cause) {
super(cause);
}
}
| true |
7e0ad5e06a272b2f5028c283743f450d048345c3 | Java | visanalytics/VisualTutorStatistics | /ConfidenceIntervals/src/com/deakin/datavist2/RadioBoxList.java | UTF-8 | 5,742 | 2.84375 | 3 | [
"CC0-1.0"
] | permissive | /*
* Decompiled with CFR 0_114.
*/
package com.deakin.datavist2;
import java.awt.Color;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Rectangle;
import java.awt.event.MouseEvent;
public class RadioBoxList {
public static final String VERTICAL = "Vertical";
public static final String... | true |
2876b233f77b47de3fa8de4e33bcf2a45050e0de | Java | AlexFlorides/Star-Wars-API | /src/Main.java | UTF-8 | 5,456 | 3.203125 | 3 | [] | no_license | /* Alexandros Florides */
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.*;
import java.util.List;
public class Main {
public static void main(String[] args) throw... | true |
ba6e6a065fe93f5882b23da51d110d4e030ce6f1 | Java | SJTUSEA5/TaoForFun | /TaoForFun/src/main/java/model/Friendapplication.java | UTF-8 | 768 | 2.53125 | 3 | [] | no_license | package model;
public class Friendapplication {
private int applicationid;
private String username1;
private String username2;
public Friendapplication(){
}
public Friendapplication(String username1, String username2){
this.username1 = username1;
this.username2 = username2;
}
pu... | true |
764fa17bc74b953ed2d842b2bc70ec16e7b7630f | Java | AndrewOCC/info1905-assignment2 | /bin/skiplist/SkipList.java | UTF-8 | 6,695 | 3.765625 | 4 | [] | no_license | package skiplist;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class SkipList<K extends Comparable<K>, V>
{
private Random rng;
private int height;
//Upper left node
private SkipListNode<K, V> head;
//Upper left node
private SkipListNode<K, V> tail;
//Lower left node
priv... | true |
305b7a5460f7fa251de441d2d8ab98e5ab4323f2 | Java | kartius/JavaElementary | /maksym_fedorovych/src/main/java/CustomListCollection/CustomArrayList.java | UTF-8 | 10,857 | 3.25 | 3 | [] | no_license | package main.java.CustomListCollection;
import javax.swing.text.Position;
import java.util.Iterator;
public class CustomArrayList implements CustomList{
private static int random(int minValue, int maxValue)
{
maxValue -= minValue;
return (int) (Math.random() * ++maxValue) + minValue;
... | true |
c6950aa7f9503b6bcd60ffc8b1defbb3c0daa5b1 | Java | sunquan5711/lightfish | /src/main/java/com/sunquan/glf/AppStars.java | UTF-8 | 408 | 1.554688 | 2 | [] | no_license | package com.sunquan.glf;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.support.SpringBootServletInitializer;
@SpringBootApplication
public class AppStars extends SpringBootServletInitializer {
public st... | true |
81162ade31aa01c559f0bb352d10e5c1ad1679ac | Java | bkatapa/natwende-mukwai | /ControlModule2/natwende-client/src/main/java/com/mweka/natwende/exceptions/UserNotFoundException.java | UTF-8 | 461 | 2.140625 | 2 | [] | no_license | package com.mweka.natwende.exceptions;
public class UserNotFoundException extends EntityNotFoundException {
/**
*
*/
private static final long serialVersionUID = 2306419926982794365L;
public UserNotFoundException(String message) {
super(message);
}
public UserNotFoundException(String message, Throwabl... | true |
4c69733f25efcdfd9b30fd849adbdec5cfaa5cf1 | Java | yunfeiSong/ssm | /src/main/java/com/fly/spring/DataSourceBean.java | UTF-8 | 1,349 | 2.15625 | 2 | [] | no_license | package com.fly.spring;
import com.alibaba.druid.pool.DruidDataSource;
import com.alibaba.druid.pool.DruidDataSourceFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframewo... | true |
b2c7abb2504e50ef639bfcf28401a033ef42e567 | Java | weloveyougorbachev/Android-GPA-Calculator | /src/com/processfast/csce492/DeleteCourseActivity.java | UTF-8 | 1,215 | 2.203125 | 2 | [] | no_license | package com.processfast.csce492;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
public class DeleteCourseActivity extends Activity implements OnClickListener {
Button bCancel, bConfirm;
pu... | true |
b8166d66b44459da1cf1fb0b86691e94ea2ab9e9 | Java | asessoum/YolseApp | /src/main/java/fr/yolse/app/service/mapper/TransactionMapper.java | UTF-8 | 1,018 | 2.25 | 2 | [] | no_license | package fr.yolse.app.service.mapper;
import fr.yolse.app.domain.*;
import fr.yolse.app.service.dto.TransactionDTO;
import org.mapstruct.*;
/**
* Mapper for the entity {@link Transaction} and its DTO {@link TransactionDTO}.
*/
@Mapper(componentModel = "spring", uses = {ClientMapper.class, UtilisateurMapper.class})
... | true |
d2920665a723c600bd90bc1d6d3dd7942629c6ca | Java | lisongting/Android-Projects | /WanpuPayDemo/app/src/main/java/com/ssdut/lst/namemaker/PayClass.java | UTF-8 | 5,047 | 2.421875 | 2 | [] | no_license | package com.ssdut.lst.namemaker;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.widget.Toast;
import com.wanpu.pay.PayConnect;
import com.wanpu.pay.PayResultListener;
... | true |
a761fcc676857fe26c8b8182d4623de00b7bf09d | Java | GabrielBozza/SanhagramAndroid | /app/src/main/java/com/example/aulalabprogiii/AdminListaConversas.java | UTF-8 | 12,978 | 1.9375 | 2 | [] | no_license | package com.example.aulalabprogiii;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.drawable.GradientDrawable;
import android.os.Bundle;
import android.util.Log;
import android.view.Gravit... | true |
a343a2546528da4656947eeebd78fec5ebb3f814 | Java | cavajtennis/java-basic_2 | /java-practice/src/alias/Example.java | GB18030 | 617 | 2.90625 | 3 | [] | no_license | package alias;
public class Example {
public static void main(String[] args) {
Condition condition = new Condition();
condition.setUserName("");
condition.setAge(25);
UserDao dao = new UserDao();
// ڼ䣬Էֵ
dao.query(condition);
// ڶʹ
dao.query(condition);
}
}
class Condition {
private String ... | true |
4629c662563be48aae4582d417c70de0cf9f2ea9 | Java | nacos-group/nacos-sync | /nacossync-worker/src/main/java/com/alibaba/nacossync/template/processor/TaskListQueryProcessor.java | UTF-8 | 3,438 | 1.867188 | 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 |
1b310dcbeff0bee907515c0cdf93dd485351153d | Java | lijamez/tonbot-plugin-ifplayer | /src/main/java/net/tonbot/plugin/ifplayer/IfPlayerListSaveSlotsActivity.java | UTF-8 | 3,490 | 2.234375 | 2 | [] | no_license | package net.tonbot.plugin.ifplayer;
import java.awt.Color;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.google.common.base.Preconditions;
import com.google.inject.Inject;
import net.tonbot.common.Activity;
import net.tonbot.common.ActivityDescriptor;
import net.tonbot.c... | true |
81512bcd79ed851dfd7358d98bd72a8845b30ae3 | Java | hujiaqi1995/Leetcode-daily-practice | /src/P4_MedianOfTwoSortedArrays.java | UTF-8 | 1,704 | 3.859375 | 4 | [] | no_license | /**
* There are two sorted arrays nums1 and nums2 of size m and n respectively.
* <p>
* Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).
* <p>
* You may assume nums1 and nums2 cannot be both empty.
* <p>
* Example 1:
* <p>
* nums1 = [1, 3]
* nums2 = [2]
* <p>
... | true |
0007149ea24b1ca198ffca41def248acd0b26770 | Java | YJeongKim/Tich-Backend | /src/main/java/mashup/backend/tich/user/dto/SignUpRequestDto.java | UTF-8 | 521 | 2.34375 | 2 | [] | no_license | package mashup.backend.tich.user.dto;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.NoArgsConstructor;
import mashup.backend.tich.user.domain.Role;
import mashup.backend.tich.user.domain.User;
@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
public class SignUpRequestDto {
private Stri... | true |
db4ef6327523cb382313fee08b16a37544169141 | Java | wxr2019-andun/java_baiscs | /src/base/JavaThread/Javier_Fernández_González/chapter4/Executor_4/E4Case.java | UTF-8 | 2,054 | 3.359375 | 3 | [] | no_license | package base.JavaThread.Javier_Fernández_González.chapter4.Executor_4;
import java.util.ArrayList;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* Description:
*
* 运行多个并发任务来解决一个问题-关心第一个返回结果
*
* Demo: 用两种机制来试验和验证用户。如果其中一种 能验... | true |
41faf4b4b3f10a9653cce1ad9786de02d646b650 | Java | Axway-API-Management-Plus/filter-devkit | /filter-devkit-base/src/main/java/com/vordel/circuit/ext/filter/quick/QuickFilterType.java | UTF-8 | 742 | 1.960938 | 2 | [
"MIT"
] | permissive | package com.vordel.circuit.ext.filter.quick;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
public @interface QuickFilterType {
/**
* @... | true |
b93f8fac09712fef753d2ac20f27c793bb86f438 | Java | clamli/MiniSQL | /src/main/java/antlr/gen/MiniSQLVisitor.java | UTF-8 | 10,632 | 2.40625 | 2 | [] | no_license | // Generated from D:/IDEA programming/MiniSQL/src/main/resources\MiniSQL.g4 by ANTLR 4.7
package antlr.gen;
import org.antlr.v4.runtime.tree.ParseTreeVisitor;
/**
* This interface defines a complete generic visitor for a parse tree produced
* by {@link MiniSQLParser}.
*
* @param <T> The return type of the ... | true |
7e53c638818bd10a759e8c12aa52c1db59270f7b | Java | jitsi/jitsi-meet-torture | /src/test/java/org/jitsi/meet/test/DataChannelTest.java | UTF-8 | 6,507 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright @ 2015 Atlassian Pty Ltd
*
* 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 ag... | true |
421cb2c0013f9c859ee54cd51cf46f52f0b8ef98 | Java | andreygalassi/bookmark_jboss7 | /bookmarkjb/src/main/java/br/agrego/sys/business/UsuarioBC.java | UTF-8 | 2,604 | 2.265625 | 2 | [] | no_license | package br.agrego.sys.business;
import java.util.List;
import javax.inject.Inject;
import br.agrego.sys.acesscontrol.Credenciais;
import br.agrego.sys.domain.Grupo;
import br.agrego.sys.domain.Usuario;
import br.agrego.sys.exception.MyException;
import br.agrego.sys.persistence.UsuarioDAO;
import br.agrego.sys.templ... | true |
84ef45407afc61f464708002fd63ef3dd02899a9 | Java | Alucarth/CascadaPosOfflineV2 | /build/Generic/AnyPhone_320x240/es_419/source/de/enough/polish/ui/rgbfilters/AlphaRgbFilter.java | UTF-8 | 3,143 | 2.203125 | 2 | [] | no_license | //#condition polish.usePolishGui
/*
* Created on Jul 8, 2008 at 5:10:39 PM.
*
* Copyright (c) 2010 Robert Virkus / Enough Software
*
* This file is part of J2ME Polish.
*
* J2ME Polish is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
... | true |
3733a4cec5cc729dad34225969b7b0ff8180ec2f | Java | Willjp04/Conta-Banco | /Conta de Banco/src/conta/de/banco/ContaBanco.java | UTF-8 | 812 | 2.265625 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package conta.de.banco;
/**
*
* @author PORTOMASTER
*/
public class ContaBanco {
public int numConta;
protected Character t... | true |
a9efcdc7f06af9aa716d97dfb3809c4ae6ef2326 | Java | satya2306/coreJava-OOPS | /src/com/satya/Hacker14.java | UTF-8 | 956 | 3.484375 | 3 | [] | no_license | package com.satya;
public class Hacker14 {
int maximumDifference;
int [] elements= {1,2,5};
public static void main(String[] args) {
// TODO Auto-generated method stub
new Hacker14().computeDifference();
}
public void computeDifference(){
if(elements.length>0)
{
maximumDiff... | true |
0d0c5f64d3c464f59bb7ccd64ade406c46316256 | Java | aws/aws-encryption-sdk-java | /src/main/java/com/amazonaws/encryptionsdk/ParsedCiphertext.java | UTF-8 | 2,684 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | true |
ab968ab81a3f40f386f8d6f2ec32c8dd1ef8dbba | Java | SimonZutterman/CHOOSE-Source-Code | /CHOOSE.edit/src/chooseeditor/provider/ActorContainerItemProvider.java | UTF-8 | 12,737 | 1.625 | 2 | [] | no_license | /**
*/
package chooseeditor.provider;
import chooseeditor.ActorContainer;
import chooseeditor.ChooseeditorPackage;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.Resource... | true |
50f302f461075dba6e588cfd39d2a41dabcdb03e | Java | ohjinjin/ComputerGraphics_LineAlgorithms-with-GUI-in-JAVA | /TEST/src/ComputerGraphics/Circle.java | UHC | 294 | 2.875 | 3 | [] | no_license | package ComputerGraphics;
/* ϱ Ŭ */
public class Circle {
int centerX;
int centerY;
int radius;
public Circle(int centerX, int centerY, int radius) {
this.centerX = centerX;
this.centerY = centerY;
this.radius = radius;
}
}
| true |
968a12b82e148e9a4e920839cf5190b4c81553e6 | Java | WingsWind/javaDemo | /javaSE/hello_world.java | UTF-8 | 1,525 | 3.453125 | 3 | [] | no_license | package javaSE;
import java.util.Scanner;
/**
* Created by futuration on 2019/7/29.
*/
public class hello_world {
public static void main(String args[]) {
System.out.println("hello world");
StringBuilder sb = new StringBuilder("hello world");
System.out.println(sb);
System.out.pr... | true |
3e8935a6a0344d13be93eab32b04249cfad992bb | Java | moutainhigh/gedapi | /update_borrow/src/main/java/com/resoft/postloan/checkIndeed/service/CheckIndeedService.java | UTF-8 | 1,390 | 1.796875 | 2 | [] | no_license | package com.resoft.postloan.checkIndeed.service;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.persistence.annotation.DbType;
import com.thi... | true |
9e7a7ff04289972fca10beaff6d1d3c270b7985b | Java | leonardoram/CalculatorOOPTest | /CalculatorOOPTesting/src/testing/OperacionesSumasTest.java | UTF-8 | 3,515 | 3.21875 | 3 | [] | no_license | package testing;
import static org.junit.Assert.*;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.lang.reflect.*;
import junit.framework.Assert;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experim... | true |
1358667f859c85bf9e89e67016c08a1af845575f | Java | Arryn99/ZombieFriend | /ZombieFriends/src/com/ZombieFriends/GameObjects/Debri.java | UTF-8 | 1,418 | 2.71875 | 3 | [] | no_license | package com.ZombieFriends.GameObjects;
import java.util.Random;
import android.content.Context;
import android.graphics.Canvas;
import com.ZombieFriends.R;
import com.ZombieFriends.GameEngine.Tools.Vector;
public class Debri extends GameObject
{
Vector mSpeed = new Vector(0, 0);
Vector initialPos = new Vector(0, ... | true |
76f8f15231121a0df5c08ad9a825e45d73996d90 | Java | WPI-CS3733-Team5/course_load_scheduler | /src/main/java/org/dselent/course_load_scheduler/client/event_handler/SendCreateCourseEventHandler.java | UTF-8 | 340 | 1.726563 | 2 | [] | no_license | package org.dselent.course_load_scheduler.client.event_handler;
import org.dselent.course_load_scheduler.client.event.SendCreateCourseEvent;
import com.google.gwt.event.shared.EventHandler;
public interface SendCreateCourseEventHandler extends EventHandler {
public void onSendCreateCourse(SendCreateCourse... | true |
cf8e68ad0364d6ab656a67266fb8b95d4d52824a | Java | Elikill58/Negativity | /src/com/elikill58/negativity/velocity/VelocityMessages.java | UTF-8 | 1,205 | 2.34375 | 2 | [] | no_license | package com.elikill58.negativity.velocity;
import com.elikill58.negativity.universal.TranslatedMessages;
import com.velocitypowered.api.command.CommandSource;
import com.velocitypowered.api.proxy.Player;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.TextComponent;
public class VelocityMe... | true |
cadb062367346b662c94c244b169369df2b0702a | Java | LauraSalazar/MubberHibernateSpring | /MuberRESTful/src/main/java/bd2/Muber/model/Usuario.java | UTF-8 | 1,148 | 2.328125 | 2 | [] | no_license | package bd2.Muber.model;
public class Usuario {
public Usuario(String password, String dni, String nombre, String fechaIngreso) {
super();
this.setContrasena(password);
this.setDni(dni);
this.setNombre(nombre);
this.setFechaIngreso(fechaIngreso);
}
public Usuario() {
super();
}
publ... | true |
b2deaeaa897bc214abb6c52f04c1ce76edc7f0d0 | Java | IXI0514/learning-java-a | /java03_1/src/com/yunsi/work0820/Test2.java | WINDOWS-1252 | 483 | 2.828125 | 3 | [] | no_license | package com.yunsi.work0820;
/**
*
* Thred
* @author ShenBL
*
*/
class C extends Thread{
public C (String name) {
super(name);
}
}
public class Test2 {
public static void main(String[] args) {
C c =new C("p001");
System.out.println(c.getName());
c.setName("p002");
c.setPriorit... | true |
610df72ff931758c8abe5b2568d5b5a8bc7230f5 | Java | manutesting/Java | /Conversion.java | UTF-8 | 457 | 3.28125 | 3 | [] | no_license |
public class Conversion {
public static void main(String args[])
{
byte b;
int i=257;
double d=323.45;
System.out.println("Converting int to byte");
b=(byte)i;
System.out.println("i and b"+i+" "+b);
System.out.println("Conversion from double to int");
i=(int)d;
System.out.println("d a... | true |
ad069109a6baac2d7a665dcddea5aaa9ecf6b7c9 | Java | SRH-SDP-2018-Oct/sdpoctober2018-projects-group1-food-service-application | /Old/Customer/src/LoginAction.java | UTF-8 | 2,358 | 2.921875 | 3 | [] | no_license | //package com.srh_heidelberg.mealsanddeals;
import java.util.*;
import javax.swing.JDialog;
import javax.swing.JOptionPane;
import javax.swing.JPasswordField;
import javax.swing.SwingUtilities;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
import java.math.*;
import java.security.*;
i... | true |
02b4bb754b69cb2b3a3c02933b5e35577d06731f | Java | alpayozer/KampGun4_3 | /kampGun4_3/src/kampGun4_3/Abstarct/EntityService.java | UTF-8 | 66 | 1.585938 | 2 | [] | no_license | package kampGun4_3.Abstarct;
public interface EntityService {
}
| true |
94f4c20c3a975fd841181c6c4c3f912237637699 | Java | zeppelin-tt/aist.hibernate | /src/main/java/aist/demo/domain/ParamCategory.java | UTF-8 | 601 | 2.140625 | 2 | [] | no_license | package aist.demo.domain;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;
@Entity
@Getter
@Setter
@NoArgsConstructor
@Table(name = "param_category_dictionary")
public class ParamCategory {
@Id
@Generated... | true |
c93f0fb130b897096ba70a2f1411c3aed4a3e1b9 | Java | shiyi12138/cmff | /src/test/java/com/baizhi/CmffApplicationTests.java | UTF-8 | 533 | 1.875 | 2 | [] | no_license | package com.baizhi;
import org.apache.shiro.crypto.hash.Md5Hash;
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 = App.class)
public cla... | true |
aee50f35a3cf319e956cd6e72877235582bd6964 | Java | din812/test-task | /src/test/java/din/springframework/testtask/services/ConverterServiceTest.java | UTF-8 | 1,995 | 2.390625 | 2 | [] | no_license | package din.springframework.testtask.services;
import din.springframework.testtask.exceptions.ConvertException;
import din.springframework.testtask.model.ExchangeRate;
import din.springframework.testtask.model.Role;
import din.springframework.testtask.model.User;
import org.junit.jupiter.api.BeforeEach;
import org.jun... | true |
52c76ab7a1b1226290953b109290ab7df77b6194 | Java | sunhaha123456/dubboSpace | /dubbo-be-parent/src/main/java/com/dubbo/rpc/data/dto/BaseDto.java | UTF-8 | 371 | 1.929688 | 2 | [] | no_license | package com.dubbo.rpc.data.dto;
import lombok.Data;
import java.io.Serializable;
@Data
public class BaseDto implements Serializable{
protected String token;
protected String userId;
protected String sessionId;
public BaseDto() {
}
public BaseDto(String token, String userId) {
this.t... | true |