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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
86a2b69617f75d53b7cc68e5618156e72741d57a | Java | dinislam-nur/factory | /src/main/java/ru/iteco/factory/bmw/BmwInterior.java | UTF-8 | 323 | 2.34375 | 2 | [] | no_license | package ru.iteco.factory.bmw;
import ru.iteco.factory.api.AbstractInterior;
public class BmwInterior extends AbstractInterior {
public BmwInterior(String name, String color, String material) {
super(name, color, material);
}
public BmwInterior() {
this("elite", "white", "leather");
}... | true |
a7607c81d414c5d053de99cbefe715d7b06bb68c | Java | drsnowflake/FantasyAdventure_Java | /src/main/java/Spells/Offensive/MagicMissile.java | UTF-8 | 241 | 2.546875 | 3 | [] | no_license | package Spells.Offensive;
import Interfaces.ISpell;
public class MagicMissile implements ISpell {
public int numOfDice() {
return 2;
}
public int diceSize() {
return 4;
}
public void cast() {
}
}
| true |
705ff2817d350a7537e42df73d2f7e6b11cdbe40 | Java | laurent-g/triangulation | /src/main/java/eu/georget/triangulation/core/ILocatable.java | UTF-8 | 298 | 2.15625 | 2 | [] | no_license | package eu.georget.triangulation.core;
/**
* Locatable is an interface providing location information
*
* @author laurent
*
* @see Location
*/
public interface ILocatable {
/**
* Return a location
*
* @return Location
*
* @see Location
*/
public Location getLocation();
}
| true |
91ea232a3d5c4d97f53528174e088e0b36d3637e | Java | galihandy/spring-api-template | /src/main/java/com/example/domain/user/ProfileController.java | UTF-8 | 1,284 | 2.046875 | 2 | [] | no_license | package com.example.domain.user;
import com.example.core.model.Profile;
import com.example.domain.user.repositories.ProfileRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.projection.ProjectionFactory;
import org.springframework.web.bind.annotation.RequestMappi... | true |
e8aff478a3f6ca6cc2aa9970e5bbd8f01a95bd45 | Java | activej/activej | /extra/cloud-dataflow/src/main/java/io/activej/dataflow/node/impl/Upload.java | UTF-8 | 1,985 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2020 ActiveJ LLC.
*
* 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 agreed to... | true |
3704c42edc15fd959e941fe5156f3a0a1cb8cd31 | Java | StanislawNagorski/AgendaCheckWeb | /src/main/java/AgendaCheckWeb/Servlets/DownloadServlet.java | UTF-8 | 2,274 | 2.390625 | 2 | [
"MIT"
] | permissive | package AgendaCheckWeb.Servlets;
import AgendaCheckWeb.ReportGenerator;
import AgendaCheckWeb.Utils.ServletUtils;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServle... | true |
4640fe7c8bd63c9a172fb55fe0290d6504e87799 | Java | 201811671102/huya | /HeartReleaseSock/src/main/java/com/cs/heart_release_sock/base/utils/ChannelUtil.java | UTF-8 | 2,452 | 2.234375 | 2 | [] | no_license | package com.cs.heart_release_sock.base.utils;
import com.cs.heart_release_sock.manager.ConnManager;
import com.cs.heart_release_sock.pojo.MessageRecord;
import com.cs.heart_release_sock.protocol.Packet;
import com.cs.heart_release_sock.protocol.Protocol;
import com.cs.heart_release_sock.service.MessageRecordService;
i... | true |
5c64e2f3132ca1a76cefd311d1237181673ee1b5 | Java | ViVaHa/Leetcode_InterviewBit_java | /InterviewBit/max_non_array_neg_sub_array.java | UTF-8 | 1,938 | 2.78125 | 3 | [] | no_license | public class Solution {
public ArrayList<Integer> maxset(ArrayList<Integer> A) {
if(A.size()==0){
return new ArrayList<Integer>();
}
long maxSubArray=-1;
long sumTillNow=-1;
int finalStart=-1;
int finalEnd=-1;
int maxLength=0;
int startInde... | true |
26bc91fb9d1ce92a3d355782f4ab664cd8705a9f | Java | AndreeaNenciuCrasi/just-katas | /src/com/company/codewars7/CreditCardMask.java | UTF-8 | 1,716 | 3.640625 | 4 | [] | no_license | package com.example.codewars7;
//Usually when you buy something, you're asked whether your credit card number, phone number or answer to your most secret question is still correct. However, since someone could look over your shoulder, you don't want that shown on your screen. Instead, we mask it.
//
// Your tas... | true |
e15277ba4f7fb4ae0af2557470bcddac403f6595 | Java | apache/servicecomb-java-chassis | /dynamic-config/config-apollo/src/main/java/org/apache/servicecomb/config/archaius/sources/ApolloConfigurationSourceImpl.java | UTF-8 | 5,071 | 1.796875 | 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 |
812139787ad83988e61b216ebcebd0d1b518c025 | Java | Bo-Deng/Venom17-18 | /TeamCode/src/main/java/org/firstinspires/ftc/teamcode/JewelDetectTest.java | UTF-8 | 8,555 | 2.703125 | 3 | [
"BSD-3-Clause"
] | permissive | package org.firstinspires.ftc.teamcode;
/*
import android.graphics.Bitmap;
import android.os.Environment;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import for_camera_opmodes.OpModeCamera;
import org.opencv.android.BaseLoaderCallback;
import org.opencv.android.LoaderCallbackInterface;
import org.op... | true |
c7af2392f257923ed0a7e9d40782aaa3c36027be | Java | langlant/Lexer | /src/Parser.java | UTF-8 | 8,952 | 2.8125 | 3 | [] | no_license |
public class Parser {
private String errorMessage = "";
Lexer lexer = new Lexer("C:\\Users\\Langley\\Desktop\\CIS_675\\digraph.txt");
public String dot_parse() {
graph_parse();
if(errorMessage =="") {
return "Text has no errors!";
} else {
System.out.println(errorMessage);
... | true |
2a58dc72c4cf66052cf3a457d109e37476479421 | Java | doyounghyeon/JAVA_kit1 | /com.kita.first/src/com/kita/first/For2.java | UTF-8 | 281 | 2.921875 | 3 | [] | no_license | package com.kita.first;
public class For2 {
public static void main(String[] args) {
for(int i=0; i<5; i++) {
for(int j=0; j<3; j++) {
for(int r = 0; r<3; r++) {
System.out.printf("%d, %d, %d\n",i, j, r);
}
}
}
}
}
| true |
45e3ab217d50690ea116a79ba6c7c827aefd3f8c | Java | zhlxs/tuanduiruzhu | /src/main/java/com/cn/umessage/service/impl/DepositInfoServiceImpl.java | UTF-8 | 706 | 2.015625 | 2 | [] | no_license | package com.cn.umessage.service.impl;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.cn.umessage.dao.DepositInfoMapper;
import com.cn.umessage.pojo.DepositInfo;
import com.cn.umessage.service.IDepositInfoService;
@Service("depositInfoService")
public class DepositInfoServ... | true |
bf812b4581944a0201f5a07bb58372d8e5728dba | Java | Gowthammiriyala/Corona | /src/main/java/com/coronaconsulatation/service/ServiceMasterImpl.java | UTF-8 | 2,422 | 2.46875 | 2 | [] | no_license | package com.coronaconsulatation.service;
import java.util.List;
import org.hibernate.service.spi.ServiceException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.coronaconsulatation.Exception.IdNotFoundException;
import com.coronaconsulatation... | true |
effe2c99369419e10771753f1ef3f9ed8147eacb | Java | Selman81/Java-S-r-c--Kursu-Otomasyonu | /src/parametre/parametre.java | UTF-8 | 454 | 2.96875 | 3 | [] | no_license | package parametre;
public class parametre {
public static void main(String[] args) {
int carpim1 = carp(12, 13);
int carpim2 = carp(7, 9, 123);
double carp = carp(2.50, 2.75);
}
public static int carp(int x, int y) {
return x + y;
}
public static int carp(int ... | true |
1d9e2c51ec76f738e20c2a6f1d8c115d7cb3e75b | Java | nikvaytechnology-hub/saipooja-patient | /app/src/main/java/com/nikvay/saipooja_patient/view/adapter/PreScriptionDateAdapter.java | UTF-8 | 3,504 | 1.992188 | 2 | [] | no_license | package com.nikvay.saipooja_patient.view.adapter;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.R... | true |
47b7ad02c1b6cbcc384f2b196ff27d658ac0db80 | Java | dkdud8140/Biz_403_2021_03_Java | /Java_020_wordQuiz/src/com/callor/word/service/impl/WordServiceImplV1.java | UTF-8 | 6,579 | 3.234375 | 3 | [] | no_license | package com.callor.word.service.impl;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
import java.util.Scanner;
import com.callor.word.domain... | true |
9102e1394cac46c7a8c2b7da7a427230263df447 | Java | AndreiMarica/ISP-Project-ELN | /src/main/java/App.java | UTF-8 | 3,597 | 2.8125 | 3 | [] | no_license | /**
* Clasa App.
*/
public class App {
//camp numar de linii
private NumarLinii numarLinii;
//camp complexitate ciclomatica
private ComplexitateCiclomatica complexitateCiclomatica;
//camp culaj intre clase
private CuplajIntreClase cuplajIntreClase;
//camp densitate de comentarii
privat... | true |
352d7cb6d1a071eaaa04ca9ea6be46a31a613221 | Java | ramkondadasu/HrOnlineReports | /src/main/java/texas/dot/hronline/services/JobcodeProfileDataMvwServiceImpl.java | UTF-8 | 1,336 | 2.25 | 2 | [] | no_license | package texas.dot.hronline.services;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Service;
import texas.dot.hronline.domain.JobcodeProfileDataM... | true |
c418e160d6c232eb47b9e401a4599ac9f7176acb | Java | simpleypc/netty | /src/main/java/com/netty/aio/TimeServerHandlerExecutePool.java | UTF-8 | 1,039 | 3.140625 | 3 | [] | no_license | package com.netty.aio;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
/**
* 伪异步I/O
* Created by ypc on 2017/3/15.
* 首先创建一个时间服务器处理类的线程池,当接收到新的客户端连接时,
* 将请求 Socket 封装成一个 Tas... | true |
26e819043f9199b895b2476bad01196f7e23c365 | Java | mangesh2806/e-society | /src/com/test/action/Test.java | UTF-8 | 2,180 | 2.546875 | 3 | [] | no_license | package com.test.action;
import java.util.ArrayList;
import java.util.List;
import com.opensymphony.xwork2.ActionSupport;
public class Test extends ActionSupport {
private List<String> countryList;
private List<String> stateList;
private List<String> cityList;
private String state;
private String country;
priva... | true |
d9261018d4f32ee8611ca22e52f61a865a030a3b | Java | KunamsettiVaishnavi/Capgemini_Assignments | /Spring-AnnotationDemo/src/main/java/com/abc/beans/Address.java | UTF-8 | 903 | 2.59375 | 3 | [] | no_license | package com.abc.beans;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@Component
public class Address {
@Value("New Delhi")
private String cityName;
@Value("Delhi")
private String stateName;
public Address() {
super();
// TODO Auto-... | true |
f424e08156879381886cea830bfde5d4a05acda8 | Java | Pcamerer/School | /MIS307HW/HW1/src/TicketSeller.java | UTF-8 | 894 | 3.703125 | 4 | [] | no_license | import java.util.Scanner;
/**
* Code for P6.12
* @author Prseton Camerer
*/
public class TicketSeller
{
public static void main(String[] args)
{
final int MAX_TICKETS = 100;
Scanner input = new Scanner(System.in);
int availableTickets = 100;
int numberBuyers = 0;
do {
... | true |
937c1f1ccfb92bbd2288d7725f8fdf053364fc81 | Java | ryanmueller28/DnDDIce-Ryan | /app/src/main/java/com/example/dnddice/MainActivity.java | UTF-8 | 1,309 | 3.3125 | 3 | [] | no_license | package com.example.dnddice;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.app.Activity;
import java.util.Random;
class Dice{
/*
* use random for dice
*
*/
public int numFaces;
Random random;
//class co... | true |
047848081621a3f41787bd65bc8a56fd7b197809 | Java | 44010039/java-examples | /java-tools/src/main/java/net/java/tools/lang/ProcessResult.java | UTF-8 | 999 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | package net.java.tools.lang;
import java.util.Iterator;
import java.util.List;
import lombok.Getter;
/**
* 命令结果
*/
@Getter
public class ProcessResult {
/**
* 返回代码
*/
private final int exitCode;
/**
* 消息
*/
private final List<String> output;
public ProcessResult(int exitCod... | true |
f213cf326e01968fcff7b0f479f308e47e19622f | Java | Kuojian21/kj-repo | /kj-repo-demo/src/main/java/com/kj/repo/demo/aop/AopTest.java | UTF-8 | 270 | 1.851563 | 2 | [] | no_license | package com.kj.repo.demo.aop;
import com.kj.repo.infra.utils.SpringBeanFactoryUtil;
public class AopTest {
public static void main(String[] args) {
AopTarget aopTarget = SpringBeanFactoryUtil.getBean(AopTarget.class);
aopTarget.target();
}
}
| true |
f7da526ec72b0f53c3b88aa1d39fe9f9b40b1665 | Java | amit0510/SocketApp | /app/src/main/java/com/webbions/socketsend/MainActivity.java | UTF-8 | 5,719 | 2.546875 | 3 | [] | no_license | package com.webbions.socketsend;
import android.content.Intent;
import android.net.wifi.WifiManager;
import android.os.Bundle;
import android.os.StrictMode;
import android.support.v7.app.AppCompatActivity;
import android.text.format.Formatter;
import android.view.View;
import android.widget.Button;
import android.widg... | true |
a97f3e183a1709b8790d8151d3fdb5e4b14b1cbb | Java | bellmit/b2b | /Common/src/main/java/com/b2b/enums/ItemSizeEnum.java | UTF-8 | 1,010 | 2.71875 | 3 | [] | no_license | package com.b2b.enums;
import java.util.Map;
import com.google.common.collect.Maps;
public enum ItemSizeEnum {
SIZE("SIZE", "规格"),
BUY_SIZE("BUY_SIZE", "批发规格"),
SALE_SIZE("SALE_SIZE", "零售规格");
private String name;
private String value;
private ItemSizeEnum(String name, String valu... | true |
186a090febd14f17fdfc44d9d9f33b2a7af92d40 | Java | bluepoet/videoshop | /src/test/java/kr/bluepoet/junit5/videoshop/service/RentServiceTest.java | UTF-8 | 1,575 | 2.25 | 2 | [] | no_license | package kr.bluepoet.junit5.videoshop.service;
import kr.bluepoet.junit5.videoshop.util.TestDatas;
import kr.bluepoet.videoshop.application.RentService;
import kr.bluepoet.videoshop.domain.Rent;
import kr.bluepoet.videoshop.domain.RentRepository;
import name.falgout.jeffrey.testing.junit5.MockitoExtension;
import org.j... | true |
351d33a038eb0a88c8155d33eb8461f4ba088a6a | Java | milkyway0308/ServerEdit | /src/skywolf46/ServerEdit/Modules/CraftScript/Data/Classes/Condition/ISTypeComparator.java | UTF-8 | 1,944 | 2.671875 | 3 | [] | no_license | package skywolf46.ServerEdit.Modules.CraftScript.Data.Classes.Condition;
import skywolf46.ServerEdit.Modules.CraftScript.Data.Classes.Condition.Extension.AbstractParsableCondition;
import skywolf46.ServerEdit.Modules.CraftScript.Data.Classes.Native.BooleanClass;
import skywolf46.ServerEdit.Modules.CraftScript.Data.Cla... | true |
3ecabd57ce50dfeb6ec61be761f2eaff680006e7 | Java | WillDSmith/Vending | /app/src/main/java/com/guhring/vending/models/MachineModelDNU.java | UTF-8 | 1,968 | 2.25 | 2 | [] | no_license | package com.guhring.vending.models;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.Date;
/**
* Created by SmithW on 7/21/2016.
*/
public class MachineModelDNU {
private int Id;
private String CustomerName;
private String EndUser;
private Str... | true |
eda30753b0e2912753fe0bb48665a93ba81cc352 | Java | rMozes/detector | /openCVTutorial1CameraPreview/src/main/java/org/opencv/samples/tutorial1/ContourDetector.java | UTF-8 | 10,246 | 2.484375 | 2 | [] | no_license | package org.opencv.samples.tutorial1;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.ImageFormat;
import android.graphics.Rect;
import android.graphics.YuvImage;
import android.util.Log;
import org.opencv.android.Utils;
import org.opencv.core.CvType;
import org.opencv.c... | true |
ff1163769e43803abe7f90d2a407f422e7484a65 | Java | Louisxavierj/ProjectBigW | /src/test/java/BigW/Automation.java | UTF-8 | 3,263 | 2.34375 | 2 | [] | no_license | package BigW;
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.KeyEvent;
import java.io.File;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.ope... | true |
6e9aee84f9093f64eaba6dc84bc85d28c4040994 | Java | ZdrzalikPrzemyslaw/2048_Game | /2048_APP/module/src/main/java/tech/szymanskazdrzalik/module/dao/Dao.java | UTF-8 | 326 | 1.945313 | 2 | [
"Apache-2.0"
] | permissive | package tech.szymanskazdrzalik.module.dao;
import java.io.IOException;
public interface Dao<T> extends AutoCloseable {
SaveGame read() throws IOException, ClassNotFoundException, SaveGame.SaveGameException;
void write(T t) throws IOException;
/**
* {@inheritDoc}
*/
@Override
void clos... | true |
cae71820f48f36c5bb72a49bea8b27a4235a1b18 | Java | esteban-mallen/minesweeper-service | /src/main/java/com/stvmallen/minesweeper/repository/CellRepository.java | UTF-8 | 288 | 1.703125 | 2 | [
"MIT"
] | permissive | package com.stvmallen.minesweeper.repository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import com.stvmallen.minesweeper.entity.Cell;
@Repository
public interface CellRepository extends CrudRepository<Cell, Long> {
}
| true |
48971a113db51195f493f0e8fd28a250b828d597 | Java | vadimZasovin/android-app-carcase | /carcase-controller/src/main/java/com/imogene/android/carcase/controller/BaseFragment.java | UTF-8 | 6,497 | 2.0625 | 2 | [] | no_license | package com.imogene.android.carcase.controller;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.google.android.material.bottomnavigation.BottomNavigationView;
import com.imogene.android.carcase.commons.ut... | true |
b66739a9943b1e1ff0768d9917efa57c0c6c7b38 | Java | gartanium/werewolf | /app/src/main/java/com/qd8s/werewolf2/GameHandler/NightFinishedListener.java | UTF-8 | 164 | 1.796875 | 2 | [] | no_license | package com.qd8s.werewolf2.GameHandler;
/**
* Created by Matthew on 7/12/2017.
*/
public interface NightFinishedListener {
public void onNightFinished();
}
| true |
33e23082bede2c65782cbde0895d31037185da98 | Java | rocker6zhang/store | /src/com/estore/test/BeansTest.java | UTF-8 | 717 | 2.296875 | 2 | [] | no_license | package com.estore.test;
import java.math.BigInteger;
import java.util.Date;
import java.util.Vector;
import javax.mail.MessagingException;
import javax.mail.internet.AddressException;
import org.junit.Test;
import com.estore.utils.MD5Utils;
import com.estore.utils.MailUtils;
import com.estore.domain.Product;
impor... | true |
06c82ba04fd1ca3ce277f94e717f374c68be8efe | Java | BackupTheBerlios/robonobo-svn | /robonobo/tags/0.4.0/wang-server/src/java/com/robonobo/wang/server/DoubleSpendDAO.java | UTF-8 | 244 | 1.898438 | 2 | [] | no_license | package com.robonobo.wang.server;
import java.math.BigInteger;
public interface DoubleSpendDAO {
public abstract boolean isDoubleSpend(String coinId) throws DAOException;
public abstract void add(String coinId) throws DAOException;
} | true |
6788f1b6b582992dfb5dfedd8d406f3c3249ee5a | Java | vgrec/xing-android-sdk | /sdk/src/test/java/com/xing/android/sdk/network/DefaultRequestConfigTest.java | UTF-8 | 3,631 | 2.015625 | 2 | [
"MIT"
] | permissive | /*
* Copyright (c) 2015 XING AG (http://xing.com/)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify,... | true |
251f473c861eb09e203333ee64a556ea6215c975 | Java | JonathanKershaw/integration-rest | /src/main/java/com/synopsys/integration/rest/service/IntResponseTransformer.java | UTF-8 | 3,571 | 1.882813 | 2 | [
"Apache-2.0"
] | permissive | /**
* integration-rest
*
* Copyright (c) 2020 Synopsys, Inc.
*
* 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 ... | true |
fb0f5fabdfaf7a926f56f2f52849ed651268315d | Java | congyaoyang/recycle | /demo_recycle/src/main/java/com/qianfeng/mapper/ModelInfoMapper.java | UTF-8 | 274 | 1.796875 | 2 | [] | no_license | package com.qianfeng.mapper;
import com.qianfeng.vo.ModelInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface ModelInfoMapper {
ModelInfoVo selectModelInfoById(@Param("modelId") Integer modelId);
}
| true |
d6e783ad6105f82e15ef68b02dae20010526adc7 | Java | MohammadReza-Ahmadi/concurrent-players | /src/main/java/com/_360t/simple/multiprocesses/TowProcessesCallFromJarApp.java | UTF-8 | 4,620 | 2.96875 | 3 | [] | no_license | package com._360t.simple.multiprocesses;
import com._360t.simple.PlayerRole;
import com._360t.simple.PlayerUtil;
import com._360t.structured.config.JarFromPomConfig;
import java.io.File;
import java.io.IOException;
import java.util.Scanner;
/**
* <h3 style="color:#55A3C4"> Two Process App which should be... | true |
2a4246ffb0475e54768d5ce4cb9c5f1d1024b787 | Java | ThomBrice/java_project | /src/card/test/BasicCard.java | UTF-8 | 1,680 | 3.796875 | 4 | [] | no_license | package card.test;
import java.text.DecimalFormat;
/**
* La classe BasicCard représente une carte de fidélité basique
* Elle hérite de la classe abstraite Card
*
* Une carte de fidélité basique comporte une cagnotte qui peut être utilisée lors du réglement;
* Lors de chaque achat 5% du montant de la facture vont... | true |
42f368262d5714ec2e44ed357968ff7768d29836 | Java | xhh1234/diycode2 | /diycode_api/src/main/java/com/mystudy/diycode_api/test/been/Hello.java | UTF-8 | 1,239 | 2.515625 | 3 | [] | no_license | package com.mystudy.diycode_api.test.been;
import java.io.Serializable;
/**
* 测试(测试 token 是否管用)
*/
public class Hello implements Serializable {
private int id; // 当前用户唯一 id
private String login; // 当前用户登录用户名
private String name; // 当前用户昵称
private String avatar_url; // 当前用户... | true |
4dec99cddd43e60c3c6b995b88af2caa5d9825fa | Java | pf-oss/agg_demo | /security/security-demo/src/main/java/com/security/security/controller/TestController.java | UTF-8 | 950 | 2 | 2 | [
"Apache-2.0"
] | permissive | package com.security.security.controller;
// TestController.java
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
im... | true |
0f354e77a842f8f85301045d0504ac837e53aac6 | Java | bpatel66/Data-Structures-and-Algorithms-Implementations | /Singly Linked List/src/LinkedListExtraTests.java | UTF-8 | 12,371 | 3.296875 | 3 | [] | no_license | import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
/**
* Additional JUnits for Homework 1.
*
* @author CS 1332 TAs
* @version 1.0
*/
public class LinkedListExtraTests {
private static final long TIMEOUT = 2... | true |
90b876652b9bdc0d64e138b5ad615cdddacfb629 | Java | namdaika19987/dattingdemo | /ProjectDattingNew-master/ProjectDattingNew-master/app/src/main/java/com/example/datting/Chat/AdapterChat/AdapterStatus.java | UTF-8 | 2,024 | 2.21875 | 2 | [] | no_license | package com.example.datting.Chat.AdapterChat;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.bumptech.glide.Gli... | true |
693b98a7d77ae10b6b6f29e808e9a3a9f137a258 | Java | tzajc/design-patterns | /structures/src/main/java/com/smalaca/facade/system/Facade.java | UTF-8 | 1,343 | 3.03125 | 3 | [] | no_license | package com.smalaca.facade.system;
import com.smalaca.facade.system.first.FirstSubsystem;
import com.smalaca.facade.system.fourth.FourthSubsystem;
import com.smalaca.facade.system.second.SecondSubsystem;
import com.smalaca.facade.system.third.ThirdSubsystem;
public class Facade {
private final FirstSubsystem firs... | true |
b39acd3eaa03f74a6284eefae7d98de3dc26f945 | Java | farukcankaya/DynamicForm | /dynamicform/src/main/java/com/farukcankaya/dynamicform/internal/model/fields/RadioField.java | UTF-8 | 678 | 2.578125 | 3 | [] | no_license | package com.farukcankaya.dynamicform.internal.model.fields;
import com.farukcankaya.dynamicform.internal.model.fields.options.FieldOption;
/**
* Created by farukcankaya on 01/10/2017.
*/
public class RadioField extends Field {
/**
* TODO: there should be better way to do this!
*
* @return
... | true |
16de0de76cd74ffdd7d95a290ec6fad311d4ec28 | Java | likesm0887/AccountProServer | /src/main/java/com/accountProServer/AccountProServer/adapter/requestModel/company/SetContactPersonRequestModel.java | UTF-8 | 258 | 1.507813 | 2 | [] | no_license | package com.accountProServer.AccountProServer.adapter.requestModel.company;
public class SetContactPersonRequestModel {
public String projectId;
public String name;
public String position;
public String telephone;
public String email;
}
| true |
ebea2f0e22db62cd545cea25f2bb47430ecfc675 | Java | M-Aly/JavaChatApp | /Chat/Gui/src/main/java/com/jets/gui/controller/server/RegisterController.java | UTF-8 | 7,520 | 1.796875 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.jets.gui.controller.server;
import java.awt.image.RenderedImage;
import java.io.ByteArrayOutputStream;
import java.io.Fil... | true |
bf6a6f607153775810a2b275e4acefa68ef7cdf8 | Java | mitkpatel/JavaPrograms | /Assignment3-Mit/Assignment3-mit/src/assignment3_mit/StudentList.java | UTF-8 | 5,905 | 3.390625 | 3 | [] | no_license | package assignment3_mit;
import java.util.Scanner;
public class StudentList {
public static void main(String[] args) {
// Instance Fields or variables
String studentId, studentName, assignmentName;
int userChoice, counterOfStudents = 0, counterOfAssignments = 0;
int assignmentId[] = new int[5];
double ma... | true |
b1b1c27f05a204aa744e13222e9782175f96e8bc | Java | franaiello/Exercises | /src/main/java/com/aiello/exercise/Palindrome.java | UTF-8 | 2,883 | 4.15625 | 4 | [] | no_license | package com.aiello.exercise;
import java.util.ArrayList;
import java.util.List;
public class Palindrome {
/**
* Accepts a string argument and determines if it is
* a palindrome or not
*
* @param str
* @return
*/
public static boolean isPalindrome(String str) {
if (str ==... | true |
128a9bc7b4fa7be3fc68ed5f569c85670652150e | Java | Khal-Shah/Java_And_Data_Structure_Exercises | /Ch09_Objects_Classes/ch9exercises/Ch9_04_RandomNum_Obj.java | UTF-8 | 589 | 3.90625 | 4 | [] | no_license | package ch9exercises;
import java.util.Random;
/* Chapter 9 - Exercise 4:
* (Use the Random class) Write a program that creates a Random object with seed 1000 and displays the first 50
* random integers between 0 and 100 using the nextInt(100) method.
*/
//By Khaled Shah
public class Ch9_04_RandomNum_Obj
{
pu... | true |
49cefb6326aa61202660062a4e3417289b413256 | Java | 1807-mehrab/p2-netoketo | /NetoKeto/src/main/java/com/revature/config/HibernateConfig.java | UTF-8 | 5,462 | 1.8125 | 2 | [] | no_license | package com.revature.config;
import java.util.Properties;
import javax.sql.DataSource;
import org.apache.commons.dbcp.BasicDataSource;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.con... | true |
cde66c124d5567286dde953189ae2a5c7b99a424 | Java | oscarcs/Tatai | /src/views/level/Level.java | UTF-8 | 4,942 | 2.65625 | 3 | [] | no_license | package views.level;
import java.net.URL;
import java.util.HashMap;
import java.util.ResourceBundle;
import java.util.Collections;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.text.Text;
import javafx.scene.shape.Rectangle;
import javafx.... | true |
f3282037a358e385df941c413df09d732236ea79 | Java | Data-to-Insight-Center/sead2 | /services/dataone-api/src/main/java/org/seadva/dataone/ObjectChecksum.java | UTF-8 | 6,726 | 1.617188 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2013 The Trustees of Indiana 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-2.0
*
* Unless required by app... | true |
cd9319ce680ffc46df3c5886ad83862844768159 | Java | develar/chromedevtools | /wip/protocol-model/generated/org/jetbrains/wip/protocol/dom/MoveTo.java | UTF-8 | 1,052 | 2.375 | 2 | [
"BSD-3-Clause"
] | permissive | // Generated source
package org.jetbrains.wip.protocol.dom;
/**
* Moves node into the new container, places it before the given anchor.
*/
public final class MoveTo extends org.jetbrains.wip.protocol.WipRequest implements org.jetbrains.jsonProtocol.RequestWithResponse<org.jetbrains.wip.protocol.dom.MoveToResult, org... | true |
7674c54c24d112dd65cfa24969411e2575d5b841 | Java | LKostrzewa/Sudoku | /ModelProject/src/main/java/sudoku/Difficluty.java | UTF-8 | 807 | 3.078125 | 3 | [] | no_license | package sudoku;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public enum Difficluty {
EASY(20),
MEDIUM(40),
HARD(60);
private final int length;
Difficluty(final int len) {
this.length = len;
}
public void clean(final SudokuBoard sudoku) {
... | true |
b0f070c36e24c4cad38e57687a1cc74097b7b62d | Java | amir-bunjo/Go2Balkan | /src/main/java/ba/go2balkan/services/implementations/CbAccommodationTypeServiceImpl.java | UTF-8 | 1,237 | 2.234375 | 2 | [] | no_license | package ba.go2balkan.services.implementations;
import ba.go2balkan.model.cb.CbAccommodationType;
import ba.go2balkan.repository.CbAccommodationTypeRepository;
import ba.go2balkan.services.interfaces.CbAccommodationTypeService;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public clas... | true |
05146b96062cf68673ec33de3f09030395631fc6 | Java | MicroRefact/coolweatherMs | /11/Interface/RbacUserRightRelationRepository.java | UTF-8 | 125 | 1.554688 | 2 | [] | no_license | public interface RbacUserRightRelationRepository {
public Optional<RbacUserRightRelation> findByUserId(Integer userId);
} | true |
46f37ff60ad7ee61e47f1f58be9215fea7a094d6 | Java | tonyanangel/Skypremium2 | /app/src/main/java/com/skypremiuminternational/app/domain/models/myOrder/Shipping.java | UTF-8 | 852 | 2.15625 | 2 | [] | no_license | package com.skypremiuminternational.app.domain.models.myOrder;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
/**
* Created by aeindraaung on 2/7/18.
*/
public class Shipping implements Serializable {
@SerializedName("total")
@Expose
... | true |
c42120750cf3ceaccd2968ee7d372b24b4d5441f | Java | mnq-naqui/CoreJava | /ExceptionHandling/src/com/lara/J.java | UTF-8 | 324 | 2.375 | 2 | [] | no_license | /** Progaram no 120 Lara Material
*
*/
package com.lara;
public class J {
public static void main(String[] args) {
System.out.println(1);
try {
int i = 12 / 0;
} catch (ArithmeticException e) {
System.out.println(2);
e.printStackTrace();
System.out.println(3);
}
System.out.println(4);
}... | true |
cb561a5848cbae90a9b7284abbf30814d3622304 | Java | shihabamin/GitPractice | /src/learnVariables/Variables.java | UTF-8 | 387 | 3.09375 | 3 | [] | no_license | package learnVariables;
import java.util.Scanner;
public class Variables {
public static void main(String[] args) {
int a = 10;
int b = 15;
String s = "Mahi";
a = b;
a = a+a;
System.out.println(" Hi, What is your age? ");
Scanner input = new Scanner(System.in);
i... | true |
deaff2c6caf2c625d9fdd1ae8211d70101534eff | Java | afnancal/HariMitti | /src/main/java/com/afnan/harimitti/dao/DatabaseDaoImpl.java | UTF-8 | 2,473 | 2.296875 | 2 | [] | no_license | package com.afnan.harimitti.dao;
import java.io.File;
import java.io.IOException;
import java.sql.SQLException;
import java.util.Properties;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repositor... | true |
86c3de3986c47ae9bb7e0af3108030972cd9f454 | Java | lylgjiavg/DesignPattern | /src/main/java/club/lylgjiang/iterator/version1/Main.java | UTF-8 | 633 | 3.203125 | 3 | [] | no_license | package club.lylgjiang.iterator.version1;
/**
* @Classname Main
* @Description 测试程序行为
* @Date 2019/10/11 17:23
* @Created by Jiavg
*/
public class Main {
public static void main(String[] args) {
BookShelf shelf = new BookShelf(4);
shelf.append(new Book("Java核心技术"));
shelf.app... | true |
969fa626064ba02c89004f5f521d9ff728994292 | Java | youkejiang/HFRM | /android/src/com/hoheart/hfc/EasyMusicPlayer.java | GB18030 | 4,594 | 2.453125 | 2 | [] | no_license | package com.hoheart.hfc;
import java.io.IOException;
import android.content.Context;
import android.media.MediaPlayer;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.widget.ImageButton;
import android.widget.SeekBar;
import android.widget.SeekBar.OnSeekBarCha... | true |
3fd9ab8623ec3086be02ef5e2281e00dd0b9001b | Java | diniodinev/Hanoi-Towers | /src/main/java/bg/fmi/command/ICommand.java | UTF-8 | 654 | 1.617188 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2013 Dinio Dinev.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
*... | true |
feb89c3af63619de8d3b47eb0bb9c5785c505662 | Java | kice/ModularRouters | /src/main/java/me/desht/modularrouters/util/BlockUtil.java | UTF-8 | 12,530 | 1.65625 | 2 | [
"MIT"
] | permissive | package me.desht.modularrouters.util;
import com.google.common.collect.Lists;
import com.mojang.authlib.GameProfile;
import me.desht.modularrouters.logic.filter.Filter;
import net.minecraft.block.*;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init... | true |
33e69123b8d9040e654c94bdb51879fa09631f26 | Java | JeeVeeVee/univ | /1steBachelor/OGPROG/Prog2-master/src/prog2/tracker/table/DoubleClickableTableRow.java | UTF-8 | 832 | 2.6875 | 3 | [] | no_license | package prog2.tracker.table;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.control.TableRow;
import javafx.scene.input.MouseEvent;
/**
* Table row waarop je kan dubbelklikken, bedoeld om in een table row cell factory gebruikt te
* worden.
*/
public class DoubleClickableTabl... | true |
66b7001fcf99a34749345e7bff84336e87784b90 | Java | cardSeller/cardSeller | /backoffice/src/main/java/com/card/seller/backoffice/service/GenerateService.java | UTF-8 | 1,407 | 2.0625 | 2 | [] | no_license | package com.card.seller.backoffice.service;
import com.card.seller.backoffice.constant.BoConstant;
import com.card.seller.domain.DateUtil;
import org.apache.shiro.crypto.RandomNumberGenerator;
import org.apache.shiro.crypto.SecureRandomNumberGenerator;
import org.apache.shiro.crypto.hash.Sha256Hash;
import org.apache.... | true |
092ab16c8bb0e8fb1123cc3b64411379fdebd995 | Java | GoncaloBFM/DistributedImageServer | /project/src/sd/tp1/client/cloud/soap/AlbumWrapper.java | UTF-8 | 401 | 2.140625 | 2 | [] | no_license | package sd.tp1.client.cloud.soap;
import sd.tp1.Album;
import sd.tp1.client.cloud.soap.stubs.SharedAlbum;
/**
* Created by apontes on 3/25/16.
*/
class AlbumWrapper extends SharedAlbum implements Album {
AlbumWrapper(SharedAlbum album){
super();
super.name = album.getName();
}
AlbumWrap... | true |
3963c90a2dcc31cc0cc7f4f8d7d633fe22a823b7 | Java | soyeon-gh/09_java_OOP_technology | /09_java_OOP_technology/src/step9_01/OOP_Theory/OOPEx10.java | UTF-8 | 1,750 | 4.0625 | 4 | [] | no_license | package step9_01.OOP_Theory;
/*
# 다형성
- 다형성이란 하나의 메소드가 서로 다른 클래스에서 다양하게 실행되는 것을 말한다.
- 다형성을 구현하기 위해서는 다형성을 구현할 메소드가 포함된 모든 클래스가 같은 부모 클래스를 가져야 한다.
- 부모 클래스와 자식 클래스에 같은 메소드가 있어야 하며 자식 클래스는 이 메소드를 반드시 override 시켜서 사용해야 한다.
- 부모 클래스 타입에 자식 클래스 타입을 대입시켜 다형성이 구현된 메소드를 실행한다.
*/
// 부모 클래스
class Po... | true |
5c0482e26ebab42753d769037991c81dfe288c77 | Java | radovanbauer/eulerJava | /src/main/java/euler/Problem485.java | UTF-8 | 2,034 | 3.296875 | 3 | [] | no_license | package euler;
import java.util.ArrayDeque;
import java.util.concurrent.TimeUnit;
import com.google.common.base.Stopwatch;
public class Problem485 {
public static void main(String[] args) {
Stopwatch stopwatch = Stopwatch.createStarted();
System.out.println(new Problem485().solve());
System.out.printl... | true |
a8a26e0a087c0c2a2900e67c2c80506d7f42ccff | Java | tenbirds/OPENWORKS-3.0 | /src/main/java/zes/openworks/intra/poll/PollDomainVO.java | UTF-8 | 6,067 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2010 ZES Inc. All rights reserved.
* This software is the confidential and proprietary information of ZES Inc.
* You shall not disclose such Confidential Information and shall use it
* only in accordance with the terms of the license agreement you entered into
* with ZES Inc. (http://www.zesinc.... | true |
b41a9f944cf9a4d41073ec2aed6951ad2922d380 | Java | HenryP3/apirest | /repository/src/test/java/br/com/cddit/apirest/repository/common/DBCommandTransctionalExecutor.java | UTF-8 | 1,976 | 2.1875 | 2 | [] | no_license | package br.com.cddit.apirest.repository.common;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
import java.util.Map;
import java.util.Set;
import ... | true |
c8bc37fdeed85adbb3c63cf9b46e43b71bd05be3 | Java | freeroy/dw-frameworks-spring | /src/main/java/org/developerworld/frameworks/spring/orm/jpa/AbstractJpaGenericDaoImpl.java | UTF-8 | 2,825 | 2.3125 | 2 | [] | no_license | package org.developerworld.frameworks.spring.orm.jpa;
import java.io.Serializable;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.Collection;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.developerworld.commons.dbutils.crud.GenericD... | true |
dbf05b5cbb9aa4147756eb23c2f7616cf50af6ab | Java | online-demo/netty-demo | /src/main/java/com/example/iodemo/c3/TimeServer.java | UTF-8 | 2,112 | 2.875 | 3 | [] | no_license | package com.example.iodemo.c3;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelOption;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.Socke... | true |
dcdac0c23b52fe92948657d5929bed8abb2ff8b6 | Java | yazhenchua/AD_Kampung_Unite_Android | /app/src/main/java/com/example/ad_project_kampung_unite/entities/GroupPlan.java | UTF-8 | 4,306 | 2.078125 | 2 | [] | no_license | package com.example.ad_project_kampung_unite.entities;
import com.example.ad_project_kampung_unite.entities.enums.GroupPlanStatus;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;
public class GroupPlan implements Serializable {
private int id;
private String planName;
priv... | true |
ab0807e0492681d6ebba323b6914bbff1a71f6d6 | Java | syafiqabdillah/TA_6_6 | /src/main/java/com/apap/farmasi/controller/PageController.java | UTF-8 | 4,118 | 2.296875 | 2 | [] | no_license | package com.apap.farmasi.controller;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authent... | true |
fa3e19a737629f652309a80582ba3e8319407477 | Java | quteron/leetcode-problems | /easy/859.buddy-strings.java | UTF-8 | 802 | 3.125 | 3 | [] | no_license | public boolean buddyStrings(String a, String b) {
if (a.length() != b.length()) {
return false;
}
if (a.equals(b)) {
int maxFreq = 0;
int[] count = new int[26];
for (char ch : a.toCharArray()) {
count[ch - 'a']++;
maxFreq = Math.max(maxFreq, count[ch... | true |
983ba7a32fc509439c55873e356bb8001275f3a8 | Java | sudhachinna/eclipse-workspace | /JavaTraining/src/in/vamsoft/training/employee/Listdemo.java | UTF-8 | 868 | 3.65625 | 4 | [] | no_license | package in.vamsoft.training.employee;
import java.util.*;
/*
* @this is the list sort program in collection.
* @using sort,reverse,fill,position.
*/
public class Listdemo {
public static void main(String[] args) {
List<Integer> list = new ArrayList<Integer>();
list.add(22);
list.add(10);
list.... | true |
a85acca46fa54c80d0644fb070a6709ffcfe31e3 | Java | eyalkoren/apm-agent-java | /apm-agent-core/src/main/java/co/elastic/apm/bci/bytebuddy/ClassLoaderNameMatcher.java | UTF-8 | 1,397 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | /*-
* #%L
* Elastic APM Java agent
* %%
* Copyright (C) 2018 Elastic and contributors
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LIC... | true |
8753f3cc68098b20d0b640247c7669c38652cd46 | Java | dualapp/appowner | /AppOwnner/src/com/appowner/model/cls_Group.java | UTF-8 | 2,839 | 1.789063 | 2 | [] | no_license | package com.appowner.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "tb_group")
publ... | true |
a1704bd4a8a72b6c34e7ce2b7575acd5506ae3c7 | Java | eclipse-ee4j/metro-wsit | /wsit/ws-rx/wsmc-impl/src/main/java/com/sun/xml/ws/rx/mc/runtime/ResponseStorage.java | UTF-8 | 11,291 | 1.804688 | 2 | [
"BSD-3-Clause",
"EPL-2.0",
"LicenseRef-scancode-generic-export-compliance",
"GPL-2.0-only",
"Classpath-exception-2.0"
] | permissive | /*
* Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: ... | true |
e8f2e13ea797a823f778732300625122dc1f9bb0 | Java | lvshuiyiqing/atComment | /cloned-randoop/src/randoop/experimental/AbstractSimplifier.java | UTF-8 | 7,095 | 2.984375 | 3 | [
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | package randoop.experimental;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import randoop.Check;
import randoop.ExecutableSequence;
import randoop.MultiVisitor;
import randoop.Sequence;
/**
* An abstract class encapsulating common fields and utility functions in
* ... | true |
180b2c848804d869f1d354b5784f4a0181bb9b84 | Java | neilcpaul/AIGridTanks | /Player/Player.java | UTF-8 | 1,932 | 3.203125 | 3 | [] | no_license | package Player;
import Core.GameLoader;
import java.util.ArrayList;
/**
* Created with IntelliJ IDEA.
* User: Neil
* Date: 12/11/12
* Time: 03:32
* To change this template use File | Settings | File Templates.
*/
public class Player {
private int playerNumber;
private String playerName;
private int... | true |
0c987f7f0a02e7747dd474fc9a460155ddd4b910 | Java | ramondcosta/twu-biblioteca-ramon-dias-costa | /src/com/twu/biblioteca/subMenus/CatalogMenu.java | UTF-8 | 210 | 1.609375 | 2 | [
"Apache-2.0"
] | permissive | package com.twu.biblioteca.subMenus;
import com.twu.biblioteca.Catalog;
import com.twu.biblioteca.SubMenu;
public class CatalogMenu {
public CatalogMenu(String description, Catalog catalog) {
}
}
| true |
6f35297bc2c70a54694f525195626e3eea5d7654 | Java | sergeysenja1992/NameCaseLib | /src/main/java/namecaselib/NCL.java | UTF-8 | 2,829 | 3.140625 | 3 | [
"MIT"
] | permissive | package namecaselib;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* Класс, который содержит основные константы библиотеки:
* - индексы мужского и женского пола
* - индексы всех падежей
*/
public class NCL {
public enum Gender {
MAN, WOMAN
}
/*
* - <b>N... | true |
2a016fd22bf386337732db4f113052f3f0ce3abe | Java | TangGSen/SCuckoo-masterV2 | /appV1/src/main/java/com/ourcompany/activity/imui/SearchActivity.java | UTF-8 | 4,886 | 2.125 | 2 | [] | no_license | package com.ourcompany.activity.imui;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
... | true |
20e4df4cfb55f7d8d488a7abb8b98a38c97bde4e | Java | lcsuarezl/examples | /src/com/java/examples/access/library/Book.java | UTF-8 | 486 | 2.828125 | 3 | [] | no_license | package com.java.examples.access.library;
public class Book {
//public access
public String isbn;
//protected access
protected String author;
//default ~ package
int issues;
//private
private int pages;
public void printBook(){
System.out.println("printBook()");
}
protected void modifyTemplate(){
... | true |
96f408a344b8450df8bba2ea8abda96d020dc931 | Java | zqq234/test | /XiaoYi.java | UTF-8 | 646 | 3.203125 | 3 | [] | no_license | import java.util.*;
public class XiaoYi{
public static int func(int m,int n){
while(n!=0){
int temp=m%n;
m=n;
n=temp;
}
return m;
}
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
while(sc.hasNextInt()){
... | true |
7f8117c8c1d128c7e88c2043e8660453247bebe2 | Java | thedarkclouds/arithmetic | /src/main/java/Linked/criclLinked/CLLNodeApi.java | UTF-8 | 380 | 2.421875 | 2 | [] | no_license | package Linked.criclLinked;
public class CLLNodeApi {
public int length(CLLNode headNode){
int length=0;
CLLNode currentNode=headNode;
while (currentNode!=null){
length++;
currentNode=currentNode.getNext();
if (currentNode==headNode){
bre... | true |
e1aebafaca9c208126bc293fd50dce5758066f24 | Java | jonathany23/JavaCodeChallenge | /src/test/java/org/jonathany23/challenge/arrays/CharacterRepogramingTest.java | UTF-8 | 539 | 2.328125 | 2 | [] | no_license | package org.jonathany23.challenge.arrays;
import org.junit.Test;
import static org.junit.Assert.*;
public class CharacterRepogramingTest {
@Test
public void chracter_reprograming_1() {
assertEquals(2, CharacterRepograming.getMaxDeletions("URDR"));
}
@Test
public void chracter_reprogrami... | true |
dbd733f15538bcc6a5066621ed65c978fed58f6c | Java | lxxhack/myCode | /src/main/java/BowlingGame.java | UTF-8 | 760 | 2.75 | 3 | [] | no_license | public class BowlingGame{
public int getBowlingScore(String frame){
int cell=10;
int[] score=new int[cell*2+2];
int total=0;
int j=0;
int i;
for (i=0;i<frame.length();i++){
char c=frame.charAt(i);
switch(c)
{
case 'X':score[j++]=10;
if (j<cell*2)
score[j++]=0;
break;
case '/':score[j++]=10-score[j-... | true |
912b825e2506ad0f9c111f22704096ba205d3a58 | Java | luke21608/SpringBootREST | /src/main/java/com/demo/mapper/demo/DemoMapper.java | UTF-8 | 191 | 1.804688 | 2 | [] | no_license | package com.demo.mapper.demo;
import org.apache.ibatis.annotations.Param;
import com.demo.bean.User;
public interface DemoMapper {
public User queryById(@Param(value="id") String id);
}
| true |
fde16bab9c8479fa3380f720e7b48fd8ebbb6dde | Java | EsupPortail/esup-publisher | /src/main/java/org/esupportail/publisher/web/rest/dto/RedactorDTO.java | UTF-8 | 2,926 | 2 | 2 | [
"LGPL-2.0-or-later",
"CDDL-1.1",
"EPL-1.0",
"CC0-1.0",
"GPL-2.0-only",
"BSD-3-Clause",
"Classpath-exception-2.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LGPL-2.1-only",
"MPL-2.0",
"LGPL-2.1-or-later",
"JSON",
"EPL-2.0",
"CDDL-1.0",
"MIT"
] | permissive | /**
* Copyright (C) 2014 Esup Portail http://www.esup-portail.org
* @Author (C) 2012 Julien Gribonvald <julien.gribonvald@recia.fr>
*
* 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
* ... | true |
662a1abfc2ca2f847641f7ce5decb3fd80eb2881 | Java | andresmarino87/Italo | /app/src/main/java/pedidos/ValPed.java | UTF-8 | 1,658 | 2.75 | 3 | [] | no_license | package pedidos;
public class ValPed {
private String continuar;
private String solicitar_compromiso;
private String compromiso_obligatorio;
private String estado_pedido;
private String motivo;
private String complemento_observacion;
private String mensaje_de_error;
public ValPed(){
continuar="";
solicita... | true |