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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e075b45c03e281980770cfe0cdf1100e22ce4e32 | Java | Aymanov1/otome-backend | /src/main/java/com/hrdatabank/otome/repositories/JobRepository.java | UTF-8 | 3,893 | 2.03125 | 2 | [] | no_license | package com.hrdatabank.otome.repositories;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.rep... | true |
c70acf4c4d49c70571cb121759001c3f8f70fd86 | Java | Bisharp/AppliedJava | /DigIt3/src/com/dig/www/start/Switch/SwitchMenu.java | UTF-8 | 3,138 | 2.609375 | 3 | [] | no_license | package com.dig.www.start.Switch;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Collections;
import javax.swing.DefaultListModel;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JList;
import javax.swing.JPa... | true |
1d105fc55f1fa8dcca6f4c47681760ab66fa4a98 | Java | sachith94-lion/solace-library | /solace library project/src/solace/library/Members.java | UTF-8 | 68,638 | 2.21875 | 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 solace.library;
import AppPackage.AnimationClass;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D... | true |
daa1a938d38736aff573f52ddd70c5f15e1ed904 | Java | dkdhodkseho/project | /src/main/java/kr/co/subway/headOffice/dao/MenuDAO.java | UTF-8 | 1,080 | 2.015625 | 2 | [] | no_license | package kr.co.subway.headOffice.dao;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import kr.co.subway.headOffice.vo.ApplyMenuPageBoun... | true |
af0e7aa384a7ec61201802719ec10887d570090c | Java | haninfisal/SmashAndroidA202SGI | /app/src/main/java/com/example/smash/bookingApp/MainActivity.java | UTF-8 | 4,096 | 2.109375 | 2 | [] | no_license | package com.example.smash.bookingApp;
import androidx.annotation.NonNull;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.wi... | true |
4a0db75d6f0379696ee5fdd12ca55fa84628b17f | Java | rus-techie/Java_Proj | /JavaForTesters/src/JavaBasics/AddWithoutPlusMinus.java | UTF-8 | 174 | 2.984375 | 3 | [] | no_license | package JavaBasics;
public class AddWithoutPlusMinus {
public int addingWithoutPlusMinus(int a, int b) {
int sum = 0;
sum = Math.addExact(a, b);
return sum;
}
}
| true |
faab0f48c99d08b570259925c6c66a254d38768a | Java | dakusui/pcond | /src/test/java/com/github/dakusui/pcond/ut/fluent4/Fluent4Example.java | UTF-8 | 8,472 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package com.github.dakusui.pcond.ut.fluent4;
import com.github.dakusui.pcond.core.fluent.builtins.StringTransformer;
import com.github.dakusui.pcond.core.fluent.CustomTransformer;
import com.github.dakusui.pcond.forms.Functions;
import com.github.dakusui.pcond.forms.Predicates;
import com.github.dakusui.pcond.forms.Pr... | true |
7fe78ad5fd5595d02e2c955e56cb9387295cd67f | Java | lelmarir/krail | /src/main/java/uk/q3c/krail/core/user/opt/UserOption.java | UTF-8 | 1,620 | 2.40625 | 2 | [] | no_license | package uk.q3c.krail.core.user.opt;
/**
* Created by David Sowerby on 03/12/14.
*/
public interface UserOption {
void configure(UserOptionContext consumer, Class<? extends Enum> keys);
void configure(Class<? extends UserOptionContext> consumerClass, Class<? extends Enum> keys);
/**
* @param key
*... | true |
f06e6b6aee96adbe96df48b55e351081eafe0605 | Java | pablogrisafi1975/upa-framework | /upa-sample-0/src/main/java/org/upasample2/app/controllers/FileController.java | UTF-8 | 3,178 | 2.953125 | 3 | [] | no_license | package org.upasample2.app.controllers;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.upasample2.app.file.HugeUpaFile;
import org.upasample2.app.file.StringUpaFile;
import org.upasample2.app.file.UpaFile;
import org... | true |
35fd462fff1bea4048a02287a371e4d0b8aea5a3 | Java | sandexp/LeetCodeRecord | /子集2.java | UTF-8 | 863 | 2.734375 | 3 | [] | no_license | class Solution {
List<List<Integer>> ans=new ArrayList();
List<Integer> template=new ArrayList();
Set<String> set=new HashSet();
public List<List<Integer>> subsetsWithDup(int[] nums) {
if(nums==null)
return null;
Arrays.sort(nums);
dfs(nums,0);
return ans;
... | true |
72d78db01a54e231066562a6ee2518470d32a093 | Java | aliufw/rab-framework | /src/com/rab/framework/web/dynamicsession/DynamicSessionTest.java | WINDOWS-1252 | 1,663 | 2.53125 | 3 | [] | no_license | package com.rab.framework.web.dynamicsession;
import java.util.Iterator;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
/**
*
* <P>Title: DynamicSessionTest</P>
* <P>Description: </P>
* <P>˵</P>
* <P></P>
*
* <P>Copyright: Copyright (c) 2011 </P>
* <P>@author lfw</P>
* <P>version 1.0</... | true |
7deb52d461a70a97c4efb6773dca3318050f465e | Java | Eric021/TripAdvisorFlightWebService | /TripAdvisorWebServices/src/com/tripAdvisorIR/main/TripAdvisorIRMain.java | UTF-8 | 774 | 2.453125 | 2 | [] | no_license | package com.tripAdvisorIR.main;
import java.awt.EventQueue;
import com.tripAdvisorIR.cli.CommandLineInterface;
import com.tripAdvisorIR.gui.MainFrame;
public class TripAdvisorIRMain {
static long startTime, endTime;
public static void main(String[] args) {
startTime = System.currentTimeMillis();
runCLI()... | true |
0df8b16d8135bb2caca99a9b2104b69d4d05ef0e | Java | LauraSaraiva10/globoplay-desafio-mobile | /app/src/main/java/com/example/globoplay_desafio_mobile/viewmodels/account/AccountViewModel.java | UTF-8 | 1,374 | 2.25 | 2 | [] | no_license | package com.example.globoplay_desafio_mobile.viewmodels.account;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import com.example.globoplay_desafio_mobile.models.account.LoginModel;
import com.example.globoplay_desafio_mobile.models.account.UserModel;
import com.example.globoplay_desa... | true |
c31809b3dccff84bc67e78a1d5b58411877e9e90 | Java | Naman26/Data-Structures-Assignments | /calc.java | UTF-8 | 12,000 | 3.71875 | 4 | [] | no_license | import java.util.*;
/**
*1)This program takes an expression as String (infix notation). The the expression is
* converted to postfix notation. If there are any variables inside the expression then
* the user is prompted to give integer values to those varible. Then the expression is
* evaluated. The program kee... | true |
71a4de58208fa602abe67fe123981df139ef7c6d | Java | eGovFramework/egovframe-development | /net.java.amateras.db/src/net/java/amateras/db/dialect/DefaultSchemaLoader.java | UTF-8 | 10,591 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package net.java.amateras.db.dialect;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Li... | true |
b67857a1f55933d1dc6722c2c19a6d4415d9b24d | Java | lifeModder19135/Springboot_Layered_API_Template | /src/main/java/com/ntolb/layeredapi/SpringbootLayeredApiTemplateApplication.java | UTF-8 | 357 | 1.578125 | 2 | [] | no_license | package com.ntolb.layeredapi;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringbootLayeredApiTemplateApplication {
public static void main(String[] args) {
SpringApplication.run(SpringbootLayeredApiTem... | true |
32c7c628f7e9897e755282abd03a52aad56144a1 | Java | Stefan-Mitic/Solid-Bank-Application | /app/src/main/java/com/bank/databasehelper/DatabaseDeserializeUserInfo.java | UTF-8 | 4,605 | 2.25 | 2 | [] | no_license | package com.bank.databasehelper;
import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.bank.database.android.DatabaseDriverA;
import com.bank.databasehelper.DatabaseDriverHelper;
import com.bank.... | true |
bfd0d10d8c6e50ef31b1974282fb29e6ec32ddd8 | Java | deft1991/Telegram_Bots | /src/main/java/ru/golitsyn/telegram/domain/User.java | UTF-8 | 1,050 | 2.390625 | 2 | [] | no_license | package ru.golitsyn.telegram.domain;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* Класс пользователя для хранения айди чата,
* что бы... | true |
5756fe7a137f220a103188258c100e9fe09fb6a3 | Java | xuanye-li/spoontacular-api-design | /src/cmu/edu/andrew/spoonacular/AmountTest.java | UTF-8 | 492 | 2.71875 | 3 | [] | no_license | package cmu.edu.andrew.spoonacular;
import org.junit.Test;
import static cmu.edu.andrew.spoonacular.Amount.Unit.GRAMS;
import static cmu.edu.andrew.spoonacular.Amount.Unit.KILOGRAMS;
import static junit.framework.TestCase.assertEquals;
public class AmountTest {
@Test
public void weightConversionTest() {
... | true |
2885c27cdd512633cdd4f2c69f5b2a930f4a711d | Java | csjxing/im_stockop | /code/web/inter/src/main/java/com/doucome/stockop/web/inter/interceptor/AuthzInterceptor.java | UTF-8 | 1,368 | 1.90625 | 2 | [] | no_license | package com.doucome.stockop.web.inter.interceptor;
import java.net.URLEncoder;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang.StringUtils;
import org.apache.struts2.ServletActionContext;
import org.springframework.beans.factory.annotation.Autowired;
import com.doucome.stockop.biz.core.... | true |
eadf3efedf7f71656ebb9c8b52acce8af10c9b38 | Java | chaitanyakakarala/cron-conversion-util | /src/main/java/com/ck/converter/cron/cnvrsns/impl/DayOfMonthConverter.java | UTF-8 | 3,134 | 2.984375 | 3 | [] | no_license | package com.ck.converter.cron.cnvrsns.impl;
import com.ck.converter.cron.ConversionFactory;
public class DayOfMonthConverter {
short category = 0;
public DayOfMonthConverter(String daysOfMonthStr) {
if ("*".equals(daysOfMonthStr) || "?".equalsIgnoreCase(daysOfMonthStr)) {
category = 0;
... | true |
fde41ec163c871144bf717b002cfdb0b258c087c | Java | MathiasMonstrey/fosil_decompiled | /com/misfit/frameworks/buttonservice/model/WrapperSleepStateChange$$Parcelable$Creator$$4.java | UTF-8 | 635 | 1.796875 | 2 | [] | no_license | package com.misfit.frameworks.buttonservice.model;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import org.parceler.IdentityCollection;
public final class WrapperSleepStateChange$$Parcelable$Creator$$4 implements Creator<WrapperSleepStateChange$$Parcelable> {
public WrapperSleepStateChange$$Par... | true |
6aa0ef078bb813eb8e002e49fbba445384986971 | Java | KimNguyen2018/example | /Faculty.java | UTF-8 | 536 | 3.265625 | 3 | [] | no_license | /** Author: Kim Nguyen
Practise on extending class
*/
package chapter11;
public class Faculty extends Employee {
int officeHours;
String rank;
public Faculty(){};
public Faculty(int officeHours, String rank){
this.officeHours = officeHours;
this.rank = rank;
}... | true |
1aa30bba5b88baabf955d9f2228ad5348526be2a | Java | Phenix-Collection/unionman_apps | /UMSettings/src/com/unionman/settings/wifi/WifiEvent.java | UTF-8 | 930 | 1.578125 | 2 | [] | no_license | package com.unionman.settings.wifi;
public class WifiEvent
{
public static final String CONFIGURED_NETWORKS_CHANGED_ACTION = "android.net.wifi.CONFIGURED_NETWORKS_CHANGE";
public static final String ERROR_ACTION = "android.net.wifi.ERROR";
public static final String LINK_CONFIGURATION_CHANGED_ACTION = "android.n... | true |
a3dd4c24f04ab8665c4d4540bc28cd4de4948685 | Java | JSLobo/TDDCodeBreaker | /src/main/java/co/edu/udea/service/codeBreakerService.java | UTF-8 | 486 | 2.296875 | 2 | [] | no_license | package co.edu.udea.service;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import co.edu.udea.codeBreaker.CodeBreaker;
@Path("/game")
public class codeBreakerService {
@GET
@Produces(MediaType.APPLICAT... | true |
c6d15246adc536291300462d9dc8182245300927 | Java | yusan123/yboot | /yboot-plus-back-modules/yboot-common/src/main/java/com/yboot/common/common/vo/Result.java | UTF-8 | 598 | 2.0625 | 2 | [
"MIT"
] | permissive | package com.yboot.common.common.vo;
import lombok.Data;
import java.io.Serializable;
/**
* @author 田培融
* 前后端交互数据标准
*/
@Data
public class Result<T> implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 成功标志
*/
private boolean success;
/**
* 消息
*/
... | true |
3bc6096f7167814d61c4213907720170f39a847d | Java | getcloudcherry/cloudcherry-android-sdk | /src/main/java/com/getcloudcherry/survey/model/SurveyResponse.java | UTF-8 | 579 | 1.648438 | 2 | [
"MIT"
] | permissive | package com.getcloudcherry.survey.model;
import java.util.ArrayList;
/**
* Created by riteshdubey on 7/30/16.
*/
public class SurveyResponse {
public String logoURL;
public String backgroundURL;
public String colorCode1;
public String colorCode2;
public String colorCode3;
public String welco... | true |
055032303028a1554f5d3d8d28b29a19bc82414b | Java | Jrebel-i/LeetCode-Nowcoder-DataStruct | /src/BUFFcode/NewCodeTest4/BuyApples.java | UTF-8 | 2,309 | 3.6875 | 4 | [] | no_license | package BUFFcode.NewCodeTest4;
import java.util.Scanner;
/**
* 链接:https://www.nowcoder.com/questionTerminal/61cfbb2e62104bc8aa3da5d44d38a6ef
* 来源:牛客网
*
* 小易去附近的商店买苹果,奸诈的商贩使用了捆绑交易,只提供6个每袋和8个每袋的包装(包装不可拆分)。 可是小易现在只想购买恰好n个苹果,小易想购买尽量少的袋数方便携带。如果不能购买恰好n个苹果,小易将不会购买。
*
* 输入描述:
* 输入一个整数n,表示小易想购买n(1 ≤ n ≤ 100)个苹果
*
*
... | true |
27db7be1b20926cc48b79284367944ac6e5dc4be | Java | viniciusteixeiradias/fcrh-back-end | /src/main/java/br/gov/prodemge/seplag/fcrhprova/OpenApiConfig.java | UTF-8 | 1,092 | 2.078125 | 2 | [] | no_license | package br.gov.prodemge.seplag.fcrhprova;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.... | true |
96972f644ccbdc144d74fee0592590107d300107 | Java | mpiotrowski97/2d-platform-game | /core/src/pl/psk/gkproject/sprites/InteractiveSprite.java | UTF-8 | 364 | 2.234375 | 2 | [] | no_license | package pl.psk.gkproject.sprites;
import com.badlogic.gdx.maps.tiled.TiledMap;
/**
* Interfejs obiektu, który może miec kolizję z głową Maria
*/
public interface InteractiveSprite {
/**
* Akcja, ktora jest wykonywana podczas kolizji z głową maria
*
* @param tiledMap aktualna mapa gry
*/
... | true |
560c46c0568ec6c54634e758853768baf816f533 | Java | Nedelosk/Leviathan | /src/main/java/leviathan/api/properties/PropertyType.java | UTF-8 | 1,502 | 2.265625 | 2 | [
"MIT"
] | permissive | package leviathan.api.properties;
import javax.annotation.Nullable;
import java.util.function.BiConsumer;
import java.util.function.BiFunction;
import java.util.function.Function;
import leviathan.api.properties.serializer.IElementSerializer;
public class PropertyType<V, P> implements IPropertyType<V, P> {
final IP... | true |
7894d64b7d31375769cef189ecacb15d57dbaaeb | Java | xie-summer/analytics | /analytics-web/src/test/java/com/orienttech/statics/service/TestFixedNumberService.java | UTF-8 | 659 | 1.671875 | 2 | [] | no_license | package com.orienttech.statics.service;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.orienttech.statics.service.fixednum.F... | true |
9ea152ef84933c55a169df32997b8d3f8d50748f | Java | paul-arthurthiery/Monopoly | /src/monopoly/MyImage.java | UTF-8 | 639 | 2.875 | 3 | [] | no_license |
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.JLayeredPane;
import javax.swing.JPanel;
public class MyImage extends JLayeredPane {
BufferedImage image;
public MyImage(S... | true |
0e0599dd9bd0c746494682e62106acd3964e7fa4 | Java | kenny-project/KMR | /K-FileManager2.0/src/com/framework/interfaces/OnConfigurationChangedAble.java | UTF-8 | 304 | 2.015625 | 2 | [] | no_license | package com.framework.interfaces;
import android.content.res.Configuration;
/**
* @author aimery
* 配置改变,如屏幕切换
* */
public interface OnConfigurationChangedAble
{
/**
* 配置发生改变,如屏幕切换
* */
public void onConfigurationChanged(Configuration newConfig);
}
| true |
13f9630d9cb7f6785410767ab6bd092d2d4f6346 | Java | wordpython/text | /src/main/java/com/wordpython/leetbook/只出现一次的数字.java | UTF-8 | 1,477 | 3.9375 | 4 | [] | no_license | package com.wordpython.leetbook;
import org.junit.Test;
/*
只出现一次的数字
给定一个非空整数数组,除了某个元素只出现一次以外,其余每个元素均出现两次。找出那个只出现了一次的元素。
说明:你的算法应该具有线性时间复杂度。 你可以不使用额外空间来实现吗?
示例 1:
输入: [2,2,1]
输出: 1
示例2:
输入: [4,1,2,1,2]
输出: 4
*/
public class 只出现一次的数字 {
public int singleNumber(int[] nums) {
for(int i=0;i<nums.length;i++... | true |
699acdf59b08ed198ac8a61533a9d1944cf30891 | Java | nalpari/spiring-boot-practice | /src/main/java/net/nalpari/travisci/web/controller/TestController.java | UTF-8 | 481 | 2 | 2 | [] | no_license | package net.nalpari.travisci.web.controller;
import lombok.RequiredArgsConstructor;
import net.nalpari.travisci.web.service.TestService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequiredArgsConstructor
public class TestC... | true |
91bb01867f21432bd020ee07fb329f4fd9b8b2e8 | Java | rhale2/FinalProject-1 | /src/build/GraphicsPanel.java | UTF-8 | 2,053 | 3.25 | 3 | [] | no_license | /**
* The GraphicsPanel for the code. It declares if there is a winner based on if the image is touching the side. It also
* draws the images onto the panel
* CPSC 224, Fall 2019
*Final Project
* No sources to cite.
*
* @author Kat Sotelo, Zac Foteff, Rebekah Hale
* @version v1.0 12/12/19
*/
package build;
im... | true |
3553644f8c22b3ee65b3bb3f4a2676c7e8a654d3 | Java | iinux/ExpressionCalc | /src/main/java/com/mycompany/helloworld/springboot/EnhancerStudy.java | UTF-8 | 9,313 | 2.953125 | 3 | [] | no_license | package com.mycompany.helloworld.springboot;
import javassist.ClassPool;
import javassist.CtClass;
import javassist.CtMethod;
// import jdk.internal.org.objectweb.asm.Type;
import lombok.AllArgsConstructor;
import org.junit.Test;
import org.springframework.cglib.core.DebuggingClassWriter;
import org.springframework.cg... | true |
23ecdc0bed9f92914d692eb34817f2d2839e3cc4 | Java | lkwdzh/SuperAndroid | /app/src/main/java/com/example/wytings/widget/SuperScrollView.java | UTF-8 | 3,091 | 2.515625 | 3 | [
"MIT"
] | permissive | package com.example.wytings.widget;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Handler;
import android.os.Message;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.widget.ScrollView;
/**
* Created by Rex on 201... | true |
05c318c4578e46b6a7b5d59d2f009bb96c6b7ef3 | Java | PeterZhan/heights_java | /astFastAgi1.8/src/heightsre/java/fastagi/client/validateSupVdr.java | UTF-8 | 1,014 | 1.695313 | 2 | [] | no_license | package heightsre.java.fastagi.client;
import org.asteriskjava.fastagi.AgiChannel;
import org.asteriskjava.fastagi.AgiException;
import org.asteriskjava.fastagi.AgiRequest;
import org.asteriskjava.fastagi.BaseAgiScript;
public class validateSupVdr extends BaseAgiScript {
@Override
public void service(Agi... | true |
e225320fec7152561e6b4b7d7717cd31aa481545 | Java | SebastianBodzak/pointofsale | /src/main/java/pl/com/sebastianbodzak/application/FileCreator.java | UTF-8 | 982 | 3.078125 | 3 | [] | no_license | package pl.com.sebastianbodzak.application;
import pl.com.sebastianbodzak.domain.DataAccessException;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintWriter;
/**
* Created by Dell on 2016-08-10.
*/
public class FileCreator {
private final String ... | true |
983a443d80133c3150ec4bc939f1f6ab7ce5c57d | Java | Sonat-Consulting/RxFruit | /src/main/java/no/sonat/rxfruit/RetryFruitException.java | UTF-8 | 222 | 2.0625 | 2 | [] | no_license | package no.sonat.rxfruit;
/**
* Created by lars on 23.11.14.
*/
public class RetryFruitException extends Exception {
public RetryFruitException(String s, Throwable throwable) {
super(s, throwable);
}
}
| true |
1a63f5593862e998c15daaf811ac1e8c5f762ac5 | Java | nastjast/JavaModul1 | /src/day11/hw/HoWRe.java | UTF-8 | 401 | 2.984375 | 3 | [] | no_license | package day11.hw;
public class HoWRe {
public static void main(String[] args) {
System.out.println(exercise3000(3000));
}
private static String exercise3000(int range) {
String result = "";
for (int j = 0; j < range; j++) {
if (j % 32 == 30 && j % 58 == 44) {
... | true |
2464a787ca8dfd2dd828ff5be934603f8be613d3 | Java | xyf2847670338/java_base | /RemoteSystemsTempFiles/RemoteSystemsTempFiles/RemoteSystemsTempFiles/src/第五章/Ssq.java | GB18030 | 570 | 3.125 | 3 | [] | no_license | package ;
import java.util.Random;
public class Ssq {
public static void main(String[] args) throws InterruptedException {
System.out.println("˫ɫ:");
System.out.println(":");
Random r = new Random();
int hq;
for (int i = 0; i < 6; i++) {
hq = r.nextInt(33) + 1;
System.out.print(hq + " "... | true |
bbfd9fe28e858801b34901186545a9db10116c1d | Java | SuchFNS/kettering | /cs102_inc/Homework 3/Assignment1/StudentGrades/StudentGradesClient.java | UTF-8 | 1,142 | 3.765625 | 4 | [] | no_license | /*
* Name:Hayvin Bolton
* Date:1/19/2020
* Question number: 3
* Description: Client Class to test the StudentGrades program
*/
package StudentGrades;
import java.util.*;
public class StudentGradesClient
{
public static void main(String[] args)
{
//create a grades classes
StudentGrades Grade... | true |
a5e25e9c4a8fe7fb405b2f0320788fbceebc4fb3 | Java | meprabu/restapi | /src/main/java/com/cdr/bc/restApiBC/domain/LicenseId.java | UTF-8 | 2,132 | 2.25 | 2 | [] | no_license | package com.cdr.bc.restApiBC.domain;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Embeddable;
@Embeddable
public class LicenseId implements Serializable {
private static final long serialVersionUID = 1L;
@Column(name="org_code")
private int orgCode;
@Column(name="mo... | true |
dd6a4af1a60a98e4f176a691a4f2def984d5ee7c | Java | phillip-groves/aphl | /aphl/src/com/pgrvs/aphl/util/Lz77CompressionUtil.java | WINDOWS-1250 | 3,821 | 2.625 | 3 | [] | no_license | /****************************************************************************\
* *
* ADVANCED POKMON HACKING LIBRARY *
* *
... | true |
ab8ca277709cab1cc39ec30c1a70373493ef5871 | Java | ajayhada/typehandlers-encrypt | /src/test/java/com/github/trang/typehandlers/test/converalls/TestCrypt.java | UTF-8 | 346 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package com.github.trang.typehandlers.test.converalls;
import com.github.trang.typehandlers.crypt.Crypt;
/**
* @author trang
*/
public class TestCrypt implements Crypt {
@Override
public String encrypt(String content) {
return "1";
}
@Override
public String decrypt(String content) {
... | true |
a9a960cef828c52c6dbb1ca54a13314bc5e2bfd4 | Java | huangdgm/android-development-tutorial | /Navigation/app/src/main/java/nz/ac/aut/navigation/SMSActivity.java | UTF-8 | 5,472 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package nz.ac.aut.navigation;
import android.Manifest;
import android.content.ContentResolver;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.net.Uri;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.A... | true |
38fc4aa08ed6ae8937b4fe2564587952f8809082 | Java | ashwin2990/batterypool | /app/src/main/java/com/example/ashwinshankar/batterypool/PickUpTimer.java | UTF-8 | 6,235 | 1.851563 | 2 | [] | no_license | package com.example.ashwinshankar.batterypool;
import android.app.Dialog;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.wi... | true |
7ff3865ce3fadaec9cb6467581e26f74404656c3 | Java | bellmit/Advance-1 | /realproject/QingGuoRead/app/src/main/java/com/quduquxie/base/listener/BillboardListener.java | UTF-8 | 164 | 1.640625 | 2 | [] | no_license | package com.quduquxie.base.listener;
/**
* Created on 17/8/8.
* Created by crazylei.
*/
public interface BillboardListener {
String loadBillboardDate();
} | true |
ab989942bb975b100a2a245fb4c519511ee99783 | Java | cristianhoyos66/Clean-Architecture | /Infrastructure/src/main/java/co/com/taskmanagement/infrastructure/board/BoardAdapter.java | UTF-8 | 1,698 | 2.40625 | 2 | [] | no_license | package co.com.taskmanagement.infrastructure.board;
import co.com.taskmanagement.domain.board.Board;
import co.com.taskmanagement.infrastructure.cardlist.CardListAdapter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.Optional;
@Compon... | true |
b00cd4bc315dc28d48a1eb1e14742b3803661e33 | Java | zohirbenslama/code-g | /code-g-core/trunk/src/main/java/org/abstractmeta/code/g/core/config/loader/LoadedSourceImpl.java | UTF-8 | 1,301 | 1.9375 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package org.abstractmeta.code.g.core.config.loader;
import org.abstractmeta.code.g.code.CompiledJavaType;
import org.abstractmeta.code.g.code.JavaType;
import org.abstractmeta.code.g.config.loader.LoadedSource;
import org.abstractmeta.toolbox.compilation.compiler.JavaSourceCompiler;
import org.abstractmeta.toolbox.com... | true |
1c9b2fc76a940c6decfa59969ae1938d358a4a0b | Java | chuchro3/Blackjack | /src/com/blackjack/player/DealerPlayer.java | UTF-8 | 1,257 | 3.25 | 3 | [] | no_license | package com.blackjack.player;
import com.blackjack.util.Card;
/**
* represents the rules followed by the dealer player
*/
public class DealerPlayer extends Player {
public DealerPlayer(String name) {
super(name, 1);
}
@Override
public Player split() {
return null;
}
public ... | true |
0f151c751bd40a977842d1f8131c1cb920675a9d | Java | proelbtn/spigot-notify2discord | /src/main/java/com/proelbtn/Main.java | UTF-8 | 812 | 2.28125 | 2 | [] | no_license | package com.proelbtn;
import com.proelbtn.interfaces.Emitter;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;
public class Main extends JavaPlugin {
public void initialize(FileConfiguration config) {
String webhook_uri = c... | true |
82943417fc7a9489990094dbc142b1b1d1e23662 | Java | SriRaamMehtalia/Computer-Sci-AP-Java | /DeckTester_LodhaA.java | UTF-8 | 6,999 | 3.96875 | 4 | [] | no_license | import java.util.List;
import java.util.ArrayList;
/**
* This is a class that tests the Deck class.
*/
public class DeckTester_LodhaA {
/**
* The main method in this class checks the Deck operations for consistency.
* @param args is not used.
*/
public static void main(String[] args) {
... | true |
cace751c2a0100824e23794854835b9a0484ebff | Java | XiGuangKai/MyAndroidProjectExercise | /HSTCMD/cqatest/src/com/motorola/motocit/Test_SequenceMode.java | UTF-8 | 10,824 | 1.765625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2012 - 2016 Motorola Mobility, Inc.
* All Rights Reserved
*
* The contents of this file are Motorola Confidential Restricted (MCR).
*/
package com.motorola.motocit;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import android.content.Context;
import android.... | true |
94c6a662f14bc5a1fc7d13c5fec0e0b68c5cfbf1 | Java | jeffreyyjp/algs4solutions | /src/fundamentals/dataabstraction/Exercise1_2_11.java | UTF-8 | 513 | 3.234375 | 3 | [] | no_license | package fundamentals.dataabstraction;
import edu.princeton.cs.algs4.StdIn;
import edu.princeton.cs.algs4.StdOut;
public class Exercise1_2_11 {
public static void main(String[] args) {
StdOut.print("Input month number: ");
int m = StdIn.readInt();
StdOut.print("Input day number: ");
... | true |
43cf3d2948eeab9ad15486443442d1742490ed6a | Java | jli9056/dx | /ProjectSrc/src/com/dixin/action/overflow/DeleteOverflowAction.java | UTF-8 | 467 | 1.921875 | 2 | [] | no_license | /**
*
*/
package com.dixin.action.overflow;
import com.dixin.action.GenericDeleteAction;
import com.dixin.business.impl.OverflowHelper;
import com.dixin.hibernate.Overflow;
/**
* Delete Action For JDO Overflow
*
* @author Luo
*
*/
public class DeleteOverflowAction extends GenericDeleteAction<Overflow> {
pu... | true |
744c9792d299f817ac87967a03ab3d8ff51f9466 | Java | ErpProcess/25121981 | /softProcess/src/ERP/Process/Commerciale/TypeFamille/service/TypeFamilleService.java | UTF-8 | 2,612 | 1.898438 | 2 | [] | no_license | package ERP.Process.Commerciale.TypeFamille.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import org.springframework.transaction.annotation.Transactional;
import ERP.Process.Commerciale.TypeFamille.dao.TypeFamilleDAO;
... | true |
c5055901f8a7322e1f6ea5d9738b660e9992ca00 | Java | yukyongsoo/algorithm | /src/main/java/com/yuk/algorithm/maths/Maths.java | UTF-8 | 1,429 | 3.421875 | 3 | [] | no_license | package com.yuk.algorithm.maths;
public class Maths {
public void makeCatalanNum(StringBuilder sb, int num, int open, int close) {
if (open == 0 && close == 0) {
return;
}
if (open > 0) {
sb.append("{");
makeCatalanNum(sb, num + 1, open - 1, close + 1);
}
if (close > 0) {
sb.append("}");
make... | true |
6d8510260b60b3a278b74c46e3708e4fe89ee4c4 | Java | codecrafts/java.fundamentals | /Tracks/Zaqwesx/lesson10/TestsLesson10.java | UTF-8 | 1,743 | 2.84375 | 3 | [] | no_license | import java.text.ParseException;
import java.text.SimpleDateFormat;
public class TestsLesson10 {
public static void doMockTests() {
System.out.println("==========================================");
System.out.println("Running tests with mock data.");
System.out.println("====================... | true |
ba0d46f0031d5e93da5aa894699b83e8df3a4b29 | Java | Ashish-kumar-pradhan/DSA-450-Questions-By-Love-babbar | /array/KthSmalestElement.java | UTF-8 | 1,415 | 3.46875 | 3 | [] | no_license | package array;
import java.util.PriorityQueue;
public class KthSmalestElement {
public static int kthMin(int[] arr, int l, int r, int k)
{
//Your code here
int ans = 0;
int index = 0 ;
for(int i = 0 ; i < k ; i++ ){
int minValue = Integer.MAX_VALUE;
int j = i;
for( ; ... | true |
644582e74c466cfbc0f68ff6d6cabdea822a2706 | Java | LilianaEverett/w12_d4_java_fantasy_adventure_lab | /src/main/java/weapons/Weapon.java | UTF-8 | 318 | 3.09375 | 3 | [] | no_license | package weapons;
import behaviours.IWeapon;
public abstract class Weapon implements IWeapon {
private String name;
public int damage;
public Weapon(String name, int damage) {
this.name = name;
this.damage = damage;
}
public String getName() {
return this.name;
}
}
| true |
4a882cc1e3311de533b05fd555e320e9effa6c65 | Java | AlexandrBrytskyi/Freelance | /AnreevWebProject/src/main/java/app/services/WorkerManimulationService.java | UTF-8 | 840 | 1.945313 | 2 | [] | no_license | package app.services;
import app.model.Posada;
import java.util.List;
public interface WorkerManimulationService {
boolean addPosadaToExistingUser(String token,
int posadaId,
int userId);
boolean fireUser(String token,
... | true |
acc9b7ee7dee9ef8f27888f587aa1594cab65c02 | Java | XpreeYU/design-mode | /src/bridge/Oracle.java | UTF-8 | 163 | 1.984375 | 2 | [] | no_license | package bridge;
public class Oracle implements Driver {
@Override
public void connect() {
System.out.println("获取Oracle数据库驱动");
}
}
| true |
f60a0461686b2685ab7599bf43d37f9d629d0171 | Java | ScruffyFurn/CritterTap_Android | /CritterTap/src/com/crittertap/World.java | UTF-8 | 1,111 | 3.03125 | 3 | [
"MIT"
] | permissive | package com.crittertap;
import java.util.ArrayList;
import java.util.List;
public class World {
private static final float TICK_INITIAL = 0.5f;
//private static final float TICK_DECREMENT = 0.05f;
private float tickTime;
private float tick;
public boolean gameOver;
public int score;
public List<C... | true |
4c428f895079236c553b6d39f343596e17f36da8 | Java | geetools/geeCommerce-Java-Shop-Software-and-PIM | /modules/core/catalog/price/src-api/com/geecommerce/price/helper/PriceHelper.java | UTF-8 | 496 | 1.757813 | 2 | [
"Apache-2.0"
] | permissive | package com.geecommerce.price.helper;
import java.util.List;
import com.geecommerce.core.service.api.Helper;
import com.geecommerce.core.type.Id;
import com.geecommerce.price.model.Price;
import com.geecommerce.price.pojo.PricingContext;
public interface PriceHelper extends Helper {
public PricingContext getPric... | true |
c9d05f706c98025ff4d1bca36e10deff25538e60 | Java | zhiji6/VendingMachine | /src/main/java/vend/entity/VendMachineInt.java | UTF-8 | 4,544 | 2.21875 | 2 | [] | no_license | package vend.entity;
import java.util.Date;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import org.hibernate.validator.constraints.NotEmpty;
public class VendMachineInt {
private Integer id;
private Integer belongMachine;
private Integer good... | true |
ac1ae871f6b006f6b3816b913b1a222a52caea38 | Java | MyUserNameHSW/HSW_XL_LYF_DXW | /src/com/lyy/know/activities/KnowProblemActivity.java | UTF-8 | 3,530 | 2 | 2 | [] | no_license | package com.lyy.know.activities;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Vie... | true |
a97dfd17bfb12d36b39957bb506ef0347a410aef | Java | zongshuo/IntegratedManagementSystem | /core/src/main/java/com/zongshuo/util/IdentifyingCode.java | UTF-8 | 5,535 | 3.109375 | 3 | [] | no_license | package com.zongshuo.util;
import java.io.*;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
/**
* @Author: zongShuo
* @Version: 1.0
* @Date: 2021-5-23
* @Time: 19:32
* @Description:
*/
public final cla... | true |
e4e02b9f39648d14e1566bfb508b065196f51e3f | Java | williams-ivan/Homework9 | /Homework9/src/classesInheritance/Student.java | UTF-8 | 843 | 3.921875 | 4 | [] | no_license | package classesInheritance;
public class Student extends Person {
// ToDo 1: Make this class a child of Person
// ToDo 2: Fix the resulting errors
public Student(String name, short age) { //constructor
super(name, age); //sets the name and age variables for the parent class
}
public String getAddress() { ... | true |
0805ba4ab003578e256e97d014dfc8ff8bbce6ee | Java | Kazuya79/BetterDiving | /src/main/java/meldexun/better_diving/structure/modules/Wall.java | UTF-8 | 4,116 | 2.390625 | 2 | [] | no_license | package meldexun.better_diving.structure.modules;
import java.util.ArrayList;
import java.util.List;
import meldexun.better_diving.block.BlockStructure;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTUtil;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.ResourceLocation;
import n... | true |
f7a63112e83ddd54b0e3d1a77d4b0d577320058b | Java | treken/CinemaStreamApplication | /app/src/main/java/com/akshay/cinemastream/models/PersonDetails.java | UTF-8 | 1,147 | 2.71875 | 3 | [] | no_license | package com.akshay.cinemastream.models;
/**
* Created by AKSHAY on 02-10-2015.
*/
public class PersonDetails implements Comparable<PersonDetails>{
/**
* Id : 25e02bee
* Name : Farida Jalal
* Gender : F
* ProfilePath : https://s3-ap-southeast-1.amazonaws.com/cinemalytics/person/EED9EF016477198... | true |
fef3f8a133bda49afd389b357e558ec4114d287d | Java | lipeng5679/store | /src/main/java/com/example/demo/service/CityService.java | UTF-8 | 426 | 1.8125 | 2 | [] | no_license | package com.example.demo.service;
import com.example.demo.domain.City;
import com.example.demo.domain.User;
import java.io.Serializable;
import java.util.List;
/**
* Created by Administrator on 2017/6/16.
*/
public interface CityService {
City findById(Serializable cid);
List<City> findAll();
void i... | true |
a7f6efb0b12d6ceb4e61807a070fa13c93ac2e47 | Java | porofesorsad/CS202 | /QueueDemo.java | UTF-8 | 436 | 2.90625 | 3 | [] | no_license |
public class QueueDemo {
public static void main(String[] args)
{
QueueInterface<String> myQueue = new ImprovedQ<String>();
myQueue.enqueue("A");
myQueue.enqueue("B");
myQueue.enqueue("C");
myQueue.enqueue("D");
String discard = myQueue.dequeue();
discard = myQueue.dequeue();
while... | true |
e0e499ed3acebafb7047c7446e0210d386a6ec7a | Java | qzztf/solo | /solo-core/src/main/java/cn/sexycode/util/core/file/JarFileEntryUrlAdjuster.java | UTF-8 | 704 | 2.375 | 2 | [] | no_license | package cn.sexycode.util.core.file;
import java.net.URL;
/**
* Optional contract for ArchiveDescriptorFactory implementations to implement
* to be able to adjust {@code <jar-file/>} URL's defined in {@code persistence.xml}
* files. The intent is to account for relative URLs in a protocol specific way
* according... | true |
7495f97ee8d58d5fb5d3ee35ac6f7238bbf64afd | Java | cckmit/Product4DM | /srm-purchasing/src/main/java/com/huiju/srm/purchasing/entity/StdSendScheduleDetailVo.java | UTF-8 | 6,549 | 1.820313 | 2 | [] | no_license | package com.huiju.srm.purchasing.entity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Calendar;
/**
* 同步sapvo
*
* @author CWQ
*/
public class StdSendScheduleDetailVo implements Serializable {
private static final long serialVersionUID = 3930916482773908553L;
/** 采购组织编码 */
protec... | true |
dd24ad6ee39d53b0574f54dedfadfe49024ffbcf | Java | yknext/CentosLoginLog | /src/main/java/microserver/model/IPInfo.java | UTF-8 | 825 | 2.046875 | 2 | [] | no_license | package microserver.model;
import java.io.Serializable;
public class IPInfo implements Serializable{
// {
// "code" : 0,
// "data" : {
// "country" : "中国",
// "country_id" : "CN",
// "area" : "西南",
// "area_id" : "500000",
// "region" : "四川省",
// "region_id" : "510000",
// "city" : "成都... | true |
765a12c7cd65d9c1085f1492902b62346e824e8b | Java | DEVTIRIA/proyectoFinal | /src/main/java/com/proyectosena/controller/tienda/CTienda.java | UTF-8 | 2,519 | 1.859375 | 2 | [] | no_license | package com.proyectosena.controller.tienda;
import javax.servlet.http.HttpServletRequest;
import org.springframework.http.HttpStatus;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
imp... | true |
8f70e43adaaedf0e450e5ec5eec1c4239bfdecc5 | Java | dmilotz/MachineLearning | /MachineLearning/MachineLearningPractice/src/Input.java | UTF-8 | 2,495 | 3.859375 | 4 | [] | no_license |
import java.util.Scanner;
public class Input
{
public Input()
{
}
/**
* This method prompts the user to state how many rounds they would
* like to distinguish each match to be. It then returns that information
* to the class that uses it.
*
* @return ... | true |
c1e66d1b1fb5fc2ec5bea5728212bea85458bccf | Java | googalAmbition/designer | /src/com/ambition/behavioral/mediator/ChartGroup.java | UTF-8 | 838 | 3.15625 | 3 | [] | no_license | package com.ambition.behavioral.mediator;
import java.util.Hashtable;
public class ChartGroup extends AbstractChartroom{
private Hashtable<String, Member> members = new Hashtable<String, Member>();
@Override
public void register(Member member) {
if (!members.contains(member)) {
members.put(member.getName()... | true |
391de4e406afbf73620b05d2b5dcd3518096bbb9 | Java | mikecodingmike/Personalbuero_GUI_Datenbank | /src/model/PersonalException.java | UTF-8 | 163 | 2.109375 | 2 | [] | no_license | package model;
@SuppressWarnings("serial")
public class PersonalException extends Exception
{
public PersonalException(String message)
{
super(message);
}
}
| true |
063e0e462d75cf1af387746817e5b2086f699e83 | Java | zhang1990zxc/deep-in-java | /stage-1/stage-1-lesson-4/src/main/java/com/zhang/deep/in/java/fucntional/FunctionDesignDemo.java | UTF-8 | 500 | 3.453125 | 3 | [] | no_license | package com.zhang.deep.in.java.fucntional;
import java.util.function.Function;
/**
* @ClassName FunctionDesignDemo
* @Description 整条街最靓的仔,写点注释吧
* @Author 天涯
* @Date 2020/4/8 0:40
* @Version 1.0
**/
public class FunctionDesignDemo {
public static void main(String[] args) {
Function function = a -> ... | true |
67e6852e5b3d4b3c4dbc8f6616dbc4c970e6b69c | Java | javier3448/-IPC1-Proyecto2-Semestre12017 | /Proyecto2/src/calculoDeCeldas/LectorDeCeldas.java | UTF-8 | 18,901 | 3.046875 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package calculoDeCeldas;
import Calculadora.Calculadora;
import Enums.FORMATO;
import Enums.FORMULAS;
import Listas.ListaDoble;
impo... | true |
d023be67b459ba8c7e5fc7b143189d2e5f9457bf | Java | zhoudy-github/e3mall | /taotao-item/taotao-item-interface/src/main/java/com/taotao/itemservice/service/ItemCategoryService.java | UTF-8 | 560 | 1.835938 | 2 | [] | no_license | package com.taotao.itemservice.service;
import java.util.List;
import com.taotao.itemservice.model.ItemCategory;
public interface ItemCategoryService {
public void addItemCategory(ItemCategory itemCategory ,String queueType);
public void deleteItemCategory(long id ,String queueType);
public void updateItemCat... | true |
3393be60dedac92a2691489d608e0a8f166d83b9 | Java | Eric1235/Thinking-In-Java | /src/collection/SimpleHashMap.java | UTF-8 | 2,074 | 3.4375 | 3 | [] | no_license | package collection;
import java.util.*;
/**
* Created by EricLi on 2016/12/18.
* Email me : EricLi1235@gmail.com.
*/
public class SimpleHashMap<K, V> extends AbstractMap<K, V> {
static final int SIZE = 997;
//桶位
@SuppressWarnings("unchecked")
LinkedList<MapEntry<K, V>>[] buckets = new LinkedList[S... | true |
bc21df97a68270de12b8256f2864f55c7c39281e | Java | IneegoMontoya/FantasySports-StatKeeper | /StatTracker/src/bjha43nflstattracker/MainPageController.java | UTF-8 | 11,170 | 2.15625 | 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 bjha43nflstattracker;
import java.net.URL;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util... | true |
e2fa4351d4f247588622a7111d9e7ea98b02265b | Java | kashifrizwan5/canteenmgmtsystem | /src/main/java/com/canteenmanagement/dao/CanteenDao.java | UTF-8 | 223 | 1.976563 | 2 | [
"MIT"
] | permissive | package com.canteenmanagement.dao;
import java.util.List;
public interface CanteenDao<T> {
void add(T t);
void update(T t);
void delete(T t);
void delete(Integer id);
List<T> get();
T get(Integer id);
}
| true |
ac5537440cbb31042e95079440e20a5c24c1e041 | Java | mkaouer/Code-Smells-Detection-in-JavaScript | /JS-CS-Detection-byExample/Dataset (ALERT 5 GB)/356782/jPOS-1_5_0/jpos/src/test/space/TestJDBM.java | UTF-8 | 4,046 | 2.28125 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | package space;
import junit.framework.*;
import java.io.*;
import java.util.*;
import org.jpos.space.*;
import org.jpos.util.*;
public class TestJDBM extends TestCase {
public static final int COUNT = 1000;
JDBMSpace sp;
public TestJDBM (String name) {
super (name);
sp = JDBMSpace.getSpace... | true |
0258050b9421da117895b379dea2fa3979d5cdb3 | Java | rohusemer/Proyecto2_EstructuraDatos | /AnimalGuess/src/animalguess/AnimalGuess.java | UTF-8 | 3,449 | 2.859375 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package animalguess;
import java.io.IOException;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.s... | true |
b4a824c9261f4a4498199506e8602c44dc8af272 | Java | iDubbbzTV3/GameNews | /app/src/main/java/gamenews/fragment/ContrasenaFrag.java | UTF-8 | 4,137 | 2.140625 | 2 | [] | no_license | package gamenews.fragment;
import android.arch.lifecycle.ViewModelProviders;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.text.TextUtils;
import android.vie... | true |
199e6149d8c910317cd79b39de85d8f977a83d3c | Java | biglllyyy/svn | /src/main/java/com/cm/export/HistoryToExcel2.java | UTF-8 | 66,801 | 1.976563 | 2 | [] | no_license | package com.cm.export;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.cm.common.utils.DateTimeUtils;
import com.cm.mongo.entity.CarInfoHistoryMongo;
import com.cm.tbox.packet.CanDataNewPacket;
import com.cm.tbox.packet.CanDataPacket;
import com.cm.tbox.packet.... | true |
d299e8b238aaa703952fcc2566b6ae7da5cad809 | Java | mridul090/My-JAVA-Project-Office-management-system- | /src/General_LogIn.java | UTF-8 | 4,633 | 2.40625 | 2 | [] | no_license | import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.util.Scanner;
import java.ut... | true |
5ba5f842606824e2c0428ad4e2619a29acb67f60 | Java | cenbow/fuxiaofengfugib | /cqliving-online/src/main/java/com/cqliving/cloud/online/topic/manager/TopicInfoManager.java | UTF-8 | 2,809 | 1.914063 | 2 | [] | no_license | package com.cqliving.cloud.online.topic.manager;
import java.util.List;
import com.cqliving.cloud.online.topic.domain.TopicInfo;
import com.cqliving.framework.common.dao.support.ScrollPage;
import com.cqliving.framework.common.service.EntityService;
/**
* 话题表 Manager
* Date: 2016-07-14 09:45:12
* @author Code Gen... | true |
4fc0d101229e30bc18bde012bd6b1d39b5223c4c | Java | MinorGlitch/Java-Fundamentals | /Java Advanced/Problems/StringProcessing - Exercises/src/SumBigNumbers.java | UTF-8 | 1,406 | 3.34375 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Collections;
public class SumBigNumbers {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(Syste... | true |
b16e3a0a3ba84da97c7cb80c7f94846acdbc7a80 | Java | LSCGit/AndroidDemo | /designpattern/src/main/java/com/lsc/designpattern/lkp/Client.java | UTF-8 | 487 | 2.21875 | 2 | [] | no_license | package com.lsc.designpattern.lkp;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;
/**
* Created by lsc on 2020-04-18 02:39.
* E-Mail:2965219926@qq.com
*/
public class Client {
public static void main(String[] args) {
List<Girl> listGirls = new ArrayList<>();
... | true |
ce054d6bfb745d61ad5be7f4522cd4bc90fa0800 | Java | Oskitaa/Programacion | /2º Trimestre/Tema 7/Tienda/src/Tienda/Tienda.java | UTF-8 | 1,620 | 3.0625 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Tienda;
import Excepcion.*;
/**
*
* @author ese_b
*/
/**
* CLASE QUE CONTIENE UNA LISTA CON LOS ARTICULOS EN VENTA EN UNA T... | true |
f11651a0ec252b5ae61aa467015fb49ef0224ad9 | Java | icgeass/java | /src/main/java/com/zeroq6/java/middleware/zookeeper/TestZookeeperBase.java | UTF-8 | 2,053 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | package com.zeroq6.java.middleware.zookeeper;
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.Watcher.Event.EventType;
import org.apache.zookeeper.Watcher.Event.KeeperState;
import org.apache.zookeeper.ZooKeeper;
import org.apache.zookeeper.data.Stat;
import ... | true |
a4550c191b5e274602225e185d5e6cc439d82c57 | Java | Peanut-Butter-OSS/pboss-ccm-src | /pboss-ccm-model/src/main/java/org/pboss/ccm/model/api/request/ApiCredentials.java | UTF-8 | 907 | 2 | 2 | [
"Apache-2.0"
] | permissive | /**
*
*/
package org.pboss.ccm.model.api.request;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
/**
* @author gregf
*
*/
@JsonTypeName("... | true |