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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
897ea556ab802ff87ae5ebc622bde056482b9f32 | Java | bellmit/jxhk | /src/main/java/com/usky/sms/uwf/WfFunctionDao.java | UTF-8 | 1,577 | 2.109375 | 2 | [] | no_license | package com.usky.sms.uwf;
import java.util.List;
import com.usky.sms.core.BaseDao;
public class WfFunctionDao extends BaseDao<WfFunctionDO> {
public WfFunctionDao() {
super(WfFunctionDO.class);
}
public List<WfFunctionDO> getByType(String type) throws Exception {
@SuppressWarnings("unchecked")
List<WfFunc... | true |
731343c44b7db9c2a1eff5d909c7d402185bc434 | Java | silviyahasana/Attack-of-Larva-Extended | /Poop.java | UTF-8 | 3,161 | 2.6875 | 3 | [] | no_license | import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.*;
/**
* Write a description of class Poop here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Poop extends Weapon
{
private int moveX = 9;
private int grav = 1;
private... | true |
8a598906a6006952e3a323c34366beafd4afd0d6 | Java | snake14/DateCalculator | /Date_Calculator/src/com/jdransom/date/calculator/util/DateTimeHelper.java | UTF-8 | 1,952 | 3.03125 | 3 | [] | no_license | /**
*
*/
package com.jdransom.date.calculator.util;
import java.util.Calendar;
import java.util.Date;
import java.util.concurrent.TimeUnit;
import com.jdransom.date.calculator.model.DateResponse;
import com.jdransom.date.calculator.model.DateTimeUnitType;
/**
* @author JacobR
*
*/
public class ... | true |
544377cc46b08de147295258d6294d6cadfd840b | Java | garlam123/Codage-Huffman-Info631 | /Final Huffman Alexandre/src/calc.java | ISO-8859-1 | 633 | 3.421875 | 3 | [] | no_license | //Class des "couples" caractere,frequence
//Getters, setters; toString cre automatiquement.
public class calc {
char caractere;
int freq;
public calc(char caractere, int freq) {
super();
this.caractere = caractere;
this.freq = freq;
}
public char getcaractere() {
return caractere;
... | true |
e9b1f03f4a1476df2b345928020535273bb168f9 | Java | ashvin2266/AutomationPractice | /src/test/java/com/stepDefination/pages/CarTax_page.java | UTF-8 | 2,128 | 2.21875 | 2 | [] | no_license | package com.stepDefination.pages;
import com.stepDefination.utility.DriverClass;
import org.junit.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class CarTax_page extends DriverClass {
... | true |
a0152c4e098fb05cc195e70bf836518c07b38761 | Java | legendmirage/game | /src/ability/type/Torch.java | UTF-8 | 556 | 2.78125 | 3 | [] | no_license | package ability.type;
import ability.effect.DamageTouchingEnemies;
import battle.BattleCreature;
import battle.BattleModel;
/**
* Ability which propels enemies around you into the air. <br>
* arg 0 : damage per second <br>
*/
public class Torch implements AbilityType {
@Override
public void use(Ba... | true |
157aa766c41a1a137af47eab478b3d94f3658d2f | Java | robertostaszewski/registers | /src/main/java/com/assignment/registers/exceptions/BalanceNotValidException.java | UTF-8 | 302 | 2.28125 | 2 | [] | no_license | package com.assignment.registers.exceptions;
/**
* Thrown to indicate that balance of a register might became to invalid state e.g. less than 0.
*/
public class BalanceNotValidException extends RuntimeException {
public BalanceNotValidException(String message) {
super(message);
}
}
| true |
3cd309a7eb7f5391085a93d018f13c3eab40c46a | Java | igorkol1/JAVA-OOP | /b_Zadania_domowe/b_Dzien_2/Author.java | UTF-8 | 259 | 2.546875 | 3 | [] | no_license | package b_Zadania_domowe.b_Dzien_2;
public class Author extends Person {
private String pseudonym;
public Author(String firstName, String lastName, String pseudonym) {
super(firstName, lastName);
this.pseudonym = pseudonym;
}
}
| true |
b2b8819650c64295609818f51ab45937c4d3bea1 | Java | hyy1213/Hospital | /src/main/java/com/hospital/uitls/DrugsUtils.java | UTF-8 | 590 | 2.46875 | 2 | [] | no_license | package com.hospital.uitls;
import java.util.Iterator;
import java.util.Map;
public class DrugsUtils {
public static String vaild(Map map){
Iterator entries = map.entrySet().iterator();
String ids="";
while (entries.hasNext()) {
Map.Entry entry = (Map.Entry) entries.next();
... | true |
f9efd736e7d9968a71afc806358a5cae38118507 | Java | zhuzhiyong007/SparkMis | /src/main/java/mispark/utils/MyException.java | UTF-8 | 332 | 2.515625 | 3 | [] | no_license | package mispark.utils;
public class MyException extends Exception{
private static final long serialVersionUID =1L;
public String content =null;
public MyException(String content){
this.content = content;
}
@Override
public String toString() {
return "MyException [error=" + content + "]";
... | true |
eb9b2db12b2fbe41ed14f6e87bf2bc7c8b4b7019 | Java | eokeeffe/Java | /LectureSync/src/fileSystem/StoreInDirectory.java | UTF-8 | 5,431 | 3.296875 | 3 | [] | no_license | package fileSystem;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;
import java.util.Scanner;
public class StoreInDirectory {
private String subject;
private String lecture;
File propFil... | true |
1c40e4bf79dd27e741c9d429ddee59ac9b299067 | Java | 2YSP/spring-cloud-microservice | /microservice-simple-provider-user/src/main/java/cn/sp/service/UserService.java | UTF-8 | 463 | 2.109375 | 2 | [] | no_license | package cn.sp.service;
import cn.sp.bean.User;
import org.springframework.stereotype.Service;
import java.math.BigDecimal;
/**
* Created by 2YSP on 2018/7/8.
*/
@Service
public class UserService {
public User findById(Long id){
User user = new User();
user.setId(id);
user.setUsername("... | true |
7efad6a1bdf7d8210c08efe6d5f9a1dde83ce866 | Java | Grp-B1-Nepal/Nepal_app | /app/src/main/java/com/example/nepal_app/Logic/Objects/CategoryObject.java | UTF-8 | 1,640 | 2.828125 | 3 | [] | no_license | package com.example.nepal_app.Logic.Objects;
import java.util.List;
public class CategoryObject {
private String categoryName;
private boolean expanded;
private List<RecipeHomeObject> recipeList;
/**
* constructor for category object
* @param categoryName name of category
* @param reci... | true |
7e29fb392d4553d68fd82226822ef53aa3d7e9d3 | Java | google/ExoPlayer | /library/core/src/test/java/com/google/android/exoplayer2/offline/DownloadManagerTest.java | UTF-8 | 34,602 | 1.640625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2017 The Android Open Source Project
*
* 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 |
b69af488b5daffd1d58bd65d96cc4661af76cfb4 | Java | Zurich1994/Bpmx3_dev | /src/com/hotent/platform/model/bpm/BpmNodeWebService.java | UTF-8 | 2,121 | 2.25 | 2 | [] | no_license | package com.hotent.platform.model.bpm;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import com.hotent.core.model.BaseModel;
/**
* <pre>
* 对象功能:流程webservice节点 Model对象
* 开发公司:广州宏天软件有限公司
* 开发人员:z... | true |
129e6b8047f4a32daf55ca6b5e2af89752eebd01 | Java | 1098755590/1911 | /src/com/st/bean/Phone.java | UTF-8 | 295 | 2.359375 | 2 | [] | no_license | package com.st.bean;
public class Phone {
private int id;
private String phonename;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return phonename;
}
public void setName(String name) {
this.phonename = name;
}
}
| true |
221462c471b94034faf15d68bdb79b9cf4dfa369 | Java | zhenchentl/wordseveryday | /src/com/wordseveryday/util/GetNewContentService.java | UTF-8 | 2,124 | 2.15625 | 2 | [] | no_license | package com.wordseveryday.util;
import com.wordseveryday.widget.R;
import com.wordseveryday.widget.Setting;
import android.app.Service;
import android.content.Intent;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import android.util.Log;
import android.widget.Toast;
public class G... | true |
22d1c521d1d4553d14cfc73bcc9dc6606f07b4aa | Java | Perusha/mad-projectv2 | /app/src/main/java/com/example/finery/ProductCustomerView.java | UTF-8 | 7,898 | 2.109375 | 2 | [] | no_license | package com.example.finery;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import com.example.finery.Model.Product;
import com.firebase.ui.database.FirebaseRecyclerAdapter;
import com.firebase.ui.database.FirebaseRecyclerOptions;
import com.google.firebase.database.DataSna... | true |
d755c2f362c7059365eaf60d73ceee26e41d0f81 | Java | sergio4git/distribute_eval | /eval/dataloader/src/main/java/com/evaluation/dataloader/controllers/ItemDataloaderController.java | UTF-8 | 1,699 | 2.203125 | 2 | [] | no_license | package com.evaluation.dataloader.controllers;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
impor... | true |
30f746006771bf49dc409b583429c5819f93b969 | Java | Sarthakuks/gangajal | /app/src/main/java/gangajal/app/project/uks/gangajal/activity/FeedbackActivity.java | UTF-8 | 5,012 | 2.15625 | 2 | [] | no_license | package gangajal.app.project.uks.gangajal.activity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.RatingBar;
import android.widget.TextView;
import android.widge... | true |
43d62bbd6bab155cd4a5dbd076b3258cc4d1c0ef | Java | lmy2/demo | /src/demo/design/patterns/command/MyCommand.java | GB18030 | 689 | 2.796875 | 3 | [] | no_license | /*
* ļMyCommand.java
* ȨCopyright by citycloud.com.cn
*
* ˣliumy
* ʱ䣺2017316
* ţ
* ţ
* ݣ
*/
package demo.design.patterns.command;
/**
*
* ʵCommandӿڣнն
* @author liumy
* @version 1.0
* @see MyCommand
* @since 2017316
*/
public class MyCommand implements Command
{
privat... | true |
65f3eab3d5cd1a73d74b02817825ed0cc1d67ec7 | Java | dubcan/jsftest | /jsftest-api/src/com/dubcan/jsftest/card/CardRegistrar.java | UTF-8 | 130 | 1.914063 | 2 | [] | no_license | package com.dubcan.jsftest.card;
public interface CardRegistrar {
RegisterCardResponse register(RegisterCardRequest request);
}
| true |
0b8c4a3d9c034ee247bc2de1e9a9a212926278bb | Java | yujingzhou/java_study | /JDK_Study/src/test/com/Generics.java | UTF-8 | 1,333 | 3.640625 | 4 | [] | no_license | package test.com;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* 泛型测试
* @author
* bo.yu
* @email
* bo.yu@renren-inc.com
* @time
* 2012-11-21 下午08:00:35
* @param <E>
*/
public class Generics{
public <E> List<E> union(List<? extends E> l1, List<? extends E... | true |
87fa366101e2e8c45e4ffec20027267f37eeba4e | Java | littlejedi/zeedoo-commons | /src/main/java/com/zeedoo/commons/domain/payload/SensorFileInfo.java | UTF-8 | 2,232 | 2.546875 | 3 | [] | no_license | package com.zeedoo.commons.domain.payload;
import com.google.common.base.Objects;
public class SensorFileInfo {
private String md5;
private String sensorId;
private int fileSize;
private int numberOfPackets;
private int packetStartNumber;
public SensorFileInfo() {
// For JSON mapping
}
public ... | true |
364b7138bbf5de1d33b227a3c8573b9c5b496061 | Java | AldoPC/ERS | /Joker.java | UTF-8 | 1,209 | 3.421875 | 3 | [] | no_license | import java.io.Serializable;
public class Joker extends Enemy implements Serializable{
public Joker(){
// String name, int level, int hp, int attack, int defense, int energy, int speed, int magic, String sprite
super("Joker", 1, 50, 5, 2, 20, 100, ... | true |
c5e5a76f0d14b685d0fefeafc7eace8acee24802 | Java | lzhang4911/Geeks | /lzhang/question/tree/LCA.java | UTF-8 | 2,913 | 3.9375 | 4 | [] | no_license | package lzhang.question.tree;
import java.util.Stack;
import lzhang.model.AnyBinaryTree;
import lzhang.model.BinaryNode;
/**
* Find the Lowest Common Ancestor.
* https://www.geeksforgeeks.org/lowest-common-ancestor-binary-tree-set-1/
*
* @author lzhang
*
*/
public class LCA {
public static BinaryNode<Inte... | true |
4a414216789123da25f44e97dedd76c59e767e28 | Java | dotuian/MyBatis | /MyBatis/src/com/dotuian/example/E01.java | UTF-8 | 5,094 | 2.6875 | 3 | [] | no_license | package com.dotuian.example;
import java.io.IOException;
import java.io.Reader;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
imp... | true |
18b8a4d1bda6d3a3efc7fbca75ad738d632ed322 | Java | Nermingunel/Non-overlapping-Circles | /src/solution.java | UTF-8 | 2,482 | 4.09375 | 4 | [] | no_license | import java.util.Random; // used for generating random values for circle parameters
import java.util.ArrayList; // used for storing non-overlapping random circles
public class solution {
public static void main(String[] args) {
// number of non-overlapping random circles to be created
int N = 250;... | true |
d145a8234506f0746563d23361d7e419e97a60e3 | Java | vraj72/ColorWibes | /app/src/main/java/com/example/colorwibe/Color_recycler.java | UTF-8 | 4,517 | 2.078125 | 2 | [] | no_license | package com.example.colorwibe;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support... | true |
6563ad3ba7670c218062833b72286031c20d01d4 | Java | sydykov77/Callbacks | /app/src/main/java/com/example/lesson2_android3/FilmAdapter.java | UTF-8 | 2,094 | 2.546875 | 3 | [] | no_license | package com.example.lesson2_android3;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.example.lesson2_android3... | true |
f13fa21c412aa7a17957f9834de3148b613c2f85 | Java | myrimur/oop_lab5 | /src/test/java/order/OrderTest.java | UTF-8 | 2,235 | 2.4375 | 2 | [] | no_license | package order;
import delivery.Delivery;
import delivery.PostDeliveryStrategy;
import flowerstore.Flower;
import flowerstore.FlowerType;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import payment.PayPalPaymentStrategy;
import payment.Payment;
import user.Receiver;
import user.Sender;
i... | true |
68ee852df690e6e80d17a1589c40ed763c28c2b8 | Java | jungRoit/Club-integration-system | /IT-WebModlue/src/main/java/com/roit/thamesITclub/webModule/controller/AccountsController.java | UTF-8 | 7,240 | 2.03125 | 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.roit.thamesITclub.webModule.controller;
import com.roit.thamesITclub.coreModule.dao.AccountsDAO;
import com.roit.thamesITc... | true |
50da15f64094a4a531f5e3cacd76a0cd2257f941 | Java | 361292623/learnjava | /Day30Demo/day30_cookie_session/src/com/itheima/_06session/SetSessionServlet.java | UTF-8 | 1,154 | 3.21875 | 3 | [] | no_license | package com.itheima._06session;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
impor... | true |
ac4745a43287855deef533533d7fd8fb036737a6 | Java | naver/ngrinder | /ngrinder-controller/src/main/java/org/ngrinder/infra/init/ClassPathInit.java | UTF-8 | 2,302 | 2.21875 | 2 | [
"Apache-2.0",
"MIT",
"CC0-1.0",
"TMate",
"LicenseRef-scancode-westhawk",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain",
"EPL-1.0",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause",
"LicenseRef-scancode-sun-no-high-risk-activities"
] | permissive | /*
* 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 in writing, software
* distr... | true |
56de8c161c71314e78d9e83fe15c96f13e99811d | Java | WILDCHAP/java_study_std | /Contacts/src/com/wildchap/object/FinalTest.java | UTF-8 | 437 | 3.140625 | 3 | [] | no_license | package com.wildchap.object;
/**
* final
* 修饰类: 不能被继承
* 修饰方法: 不能被重写(一般为了方法不被重写)
* 修饰变量: 不能改变(相当与一个常量)
*
* @description
* @wang 993704315@qq.com
* @params
* @method
* @return
*/
public class FinalTest {
public static void main(String[] args) {
FinalA f = new FinalA();
}
}
//不能被继承
final class FinalA{
f... | true |
2cb3309ef58ab50d94180a7259e7caf32b5d8576 | Java | Merdzhanov/Landlord | /api/src/main/java/com/landlord/utils/ChatMessageInputMapperImpl.java | UTF-8 | 2,012 | 2.265625 | 2 | [] | no_license | package com.landlord.utils;
import com.landlord.dto.ChatMessageInputDTO;
import com.landlord.models.ChatMessage;
import com.landlord.services.base.EstateService;
import com.landlord.services.base.GenericService;
import com.landlord.services.base.UserService;
import com.landlord.utils.base.DTOMapper;
import org.springf... | true |
1ba37d79e5e4292bdb2287638a1d43179628b3e6 | Java | framelayout/MyApplication2 | /app/src/main/java/com/bn/yfc/buy/GoBuyFragment.java | UTF-8 | 12,995 | 1.539063 | 2 | [] | no_license | package com.bn.yfc.buy;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.vie... | true |
4d6fc8ff2197ce068aa501b04b70ae1925021611 | Java | mquasten/iot | /iot.batch/src/test/java/de/mq/iot/state/support/ServiceCommandlineRunnerTest.java | UTF-8 | 7,362 | 2.140625 | 2 | [] | no_license | package de.mq.iot.state.support;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.lang.reflect.Method;
import java.util.AbstractMap;
import java.util.ArrayList;
impo... | true |
0c642e00e0a41aac9cda81ea1c9f67cd78cfb7c5 | Java | HorseFarmer-Ma/HorseFarmer-CodeFrame | /codeframe/src/main/java/com/meizu/code/frame/base/model/widget/nightmode/NightModeTextView.java | UTF-8 | 904 | 2.3125 | 2 | [] | no_license | package com.meizu.code.frame.base.model.widget.nightmode;
import android.content.Context;
import android.support.v7.widget.AppCompatTextView;
import android.util.AttributeSet;
/**
* 夜间模式TextView
* <p>
* Created by mxm on 14/01/18.
*/
public class NightModeTextView extends AppCompatTextView implements... | true |
6fa3ea46e6bca7b2602dca486684e41ef1d31d78 | Java | simon-atta/spaceship | /XL-spaceship/src/main/java/com/spaceship/model/vo/board/SpaceshipBoardBaseResponse.java | UTF-8 | 632 | 2.25 | 2 | [] | no_license | package com.spaceship.model.vo.board;
import java.util.List;
public class SpaceshipBoardBaseResponse {
private List<List<String>> board;
public SpaceshipBoardBaseResponse() {
super();
}
public SpaceshipBoardBaseResponse(List<List<String>> board) {
super();
this... | true |
94d754f03d73f4e3f71395287e1375708d79d29e | Java | t1/pdap | /processor/src/main/java/com/github/t1/pdap/AbstractAnnotationProcessor.java | UTF-8 | 2,242 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package com.github.t1.pdap;
import javax.annotation.processing.AbstractProcessor;
import javax.annotation.processing.SupportedSourceVersion;
import javax.lang.model.SourceVersion;
import javax.lang.model.element.Element;
import javax.lang.model.util.Elements;
import javax.tools.Diagnostic.Kind;
import java.util.functi... | true |
7eb6acce3dd932f8fb3015a388e34320c436aa4e | Java | hengsin/idempiere-rest | /com.trekglobal.idempiere.rest.api/src/com/trekglobal/idempiere/rest/api/v1/resource/WorkflowResource.java | UTF-8 | 4,580 | 1.804688 | 2 | [] | no_license | /**********************************************************************
* This file is part of iDempiere ERP Open Source *
* http://www.idempiere.org *
* *
* Copyright (C) Contributors ... | true |
60e488d5bda1a0ce14c2135df7a138efb17f6cbc | Java | stiliyan-koev/my-java-studying | /intro-maven-module/src/main/java/com/sirma/itt/javacourse/intro/utils/RandomStringsWithGivenLength.java | UTF-8 | 2,229 | 3.375 | 3 | [] | no_license | package com.sirma.itt.javacourse.intro.utils;
import java.util.Random;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
*
* @author Stiliyan Koev
*/
public class RandomStringsWithGivenLength {
private static final Logger LOGGER = LoggerFactory.getLogger(RandomStringsWithGivenLength.... | true |
f11bdebeddabc73f09ccd6dc05b69a0b999ebf9b | Java | skyhuge/springboot-study | /src/main/java/com/local/study/utils/AESUtils.java | UTF-8 | 5,522 | 3.1875 | 3 | [] | no_license | package com.local.study.utils;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
import java.io.UnsupportedEncodingException;
import java.security.SecureRandom;
public class AESUtils {
/**
* 随机生成密钥的数据源
*/
private s... | true |
51c2f48a928cf73a01a32d8e771b1235a5cb7805 | Java | jishuxiaoniu/demo-work | /src/main/java/com/eqx/demowork/designPaterns/abstractFactory/product/AbstractProductA.java | UTF-8 | 234 | 1.984375 | 2 | [] | no_license | package com.eqx.demowork.designPaterns.abstractFactory.product;
/**
* @Author duan
* @Description: 产品A的抽象接口
* @Date: Created in 上午11:03 2018/7/12
*/
public interface AbstractProductA {
// 定义A的属性
}
| true |
0e438c84b4777838972d2e9a69d6ece1f4d84193 | Java | aayushnayak/aayush_class_10 | /Aayush Java Project Backup/prog_16j_pg_168_series.java | UTF-8 | 573 | 2.9375 | 3 | [] | no_license | import java.util.Scanner;
public class prog_16j_pg_168_series {
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
System.out.println("Enter the Number of Terms:");
int i_input = in.nextInt();
int i_sum=0;
for(int counter=1;counter<=i_input;counter+... | true |
0157b93bdad25353d02fafdb5a3ebb85dc6017a4 | Java | mrp-v2/BiomeBorderViewer | /src/main/java/mrp_v2/biomeborderviewer/client/renderer/debug/util/BiomeBorderDataCollection.java | UTF-8 | 6,188 | 2.28125 | 2 | [] | no_license | package mrp_v2.biomeborderviewer.client.renderer.debug.util;
import com.mojang.blaze3d.vertex.VertexConsumer;
import mrp_v2.biomeborderviewer.client.Config;
import mrp_v2.biomeborderviewer.client.renderer.debug.VisualizeBorders;
import mrp_v2.biomeborderviewer.util.Util;
import net.minecraft.world.level.ChunkPos;
impo... | true |
2910fbb60c98b43900c4fc619dae1aa22391e541 | Java | leopardoooo/cambodia | /boss-core/src/main/java/com/ycsoft/business/component/core/DoneCodeComponent.java | UTF-8 | 20,626 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | package com.ycsoft.business.component.core;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Componen... | true |
ea345d13e0b0bf87d317ab3cc5f5c26ca67e49cf | Java | Venise/JianZhiOffer | /src/com/offer/question41/FindNumbersWithSum.java | GB18030 | 1,270 | 3.390625 | 3 | [] | no_license | package com.offer.question41;
import java.util.ArrayList;
public class FindNumbersWithSum {
public static void main(String[] args) {
}
public ArrayList<Integer> FindNumbersWithSum(int [] array,int sum) {
//ָ
ArrayList<Integer> list = new ArrayList<Integer>();
if(array==null... | true |
739fb0227c9029b118421faa53ebc90ff5bcc0df | Java | SaulRiglez/my-deliveries | /app/src/main/java/com/anythingintellect/mydeliveries/di/PerContext.java | UTF-8 | 287 | 1.609375 | 2 | [] | no_license | package com.anythingintellect.mydeliveries.di;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import javax.inject.Scope;
/**
* Created by ishan.dhingra on 03/09/17.
*/
@Retention(RetentionPolicy.RUNTIME)
@Scope
public @interface PerContext {
}
| true |
5d0c37d869c1a279b669b4263291f303118c648d | Java | homeworkthirdyear2stsemester/ComputerNetwork | /src/ipc/TCPLayer.java | UTF-8 | 4,629 | 2.515625 | 3 | [] | no_license | package ipc;
import java.util.ArrayList;
public class TCPLayer implements BaseLayer {
public int nUpperLayerCount = 0;
public String pLayerName = null;
public BaseLayer p_UnderLayer = null;
public ArrayList<BaseLayer> p_aUpperLayer = new ArrayList<>();
private TCPHeader tcpHeader;
public TCP... | true |
5cd75fed1ea22ad42751716b2a2ea990d32cef2f | Java | WellThatsGay/HomeMadeTree | /src/com/chris/tree/Tree.java | UTF-8 | 5,943 | 3.25 | 3 | [] | no_license | package com.chris.tree;
import java.io.Serializable;
public class Tree implements Serializable {
private Node root;
private int levels;
public Tree() {
}
public Tree(int val) {
this.root = new Node(val);
this.levels = 0;
}
public Node getRoot() {
return this.root;
}
public int getLe... | true |
b07eb97de2fb99ab69d75922a7ddcc2d0976358f | Java | wangwenwang/TY_Order_Android | /app/src/main/java/com/kaidongyuan/app/tyorder/util/DateUtil.java | UTF-8 | 930 | 2.78125 | 3 | [
"MIT"
] | permissive | package com.kaidongyuan.app.tyorder.util;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
/**
* Created by Administrator on 2015/9/10.
*/
public class DateUtil {
public static String formateWithoutTime(Date date){
SimpleDateFormat... | true |
455c69a343bbd55a80210d509a2e3fe14b0243aa | Java | HennadiiMelnyk/Java_task9 | /src/main/java/com/test/melnyk/strategy/randomstrategy/annotationRandomStrategy/AnnotationRandomElectricalEngineeringFactory.java | UTF-8 | 880 | 2.421875 | 2 | [] | no_license | package com.test.melnyk.strategy.randomstrategy.annotationRandomStrategy;
import com.test.melnyk.model.ElectricalEngineering;
import com.test.melnyk.model.Product;
import com.test.melnyk.randominputhelper.RandomInputHelper;
import com.test.melnyk.strategy.randomstrategy.AnnotationRandomFieldsFill;
public class Annota... | true |
7f421c79983a5c057b112c74c265b6351aef7049 | Java | renovate-bot/google-api-java-client-services | /clients/google-api-services-chat/v1/1.31.0/com/google/api/services/chat/v1/model/CommonEventObject.java | UTF-8 | 6,369 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | /*
* 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 in writing, software distributed under t... | true |
18e6cc46bdb1a945b76e318ab0aabc926cb93a30 | Java | EdioticIdeas/Ape-Master | /src/Fee/stucture.java | UTF-8 | 928 | 2.578125 | 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 Fee;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
/**
*
* @author... | true |
88c6c4f8e3687cd9b0010843fcfe3a7f6b3e0c50 | Java | GrandKai/springcloud-practice | /spring-security-oauth2-server/src/main/java/com/security/oauth2/server/service/TbUserService.java | UTF-8 | 297 | 1.773438 | 2 | [] | no_license | package com.security.oauth2.server.service;
import com.security.oauth2.server.entity.TbUser;
/**
* @Author: zyn
* @Description:
* @Date: Created in 2019-05-20 17:17
* @Modified By:
*/
public interface TbUserService {
default TbUser getByUsername(String username) {
return null;
}
}
| true |
47de4fde3def416615f56204ce0b2218a8c54e68 | Java | rodrigolins/MtgDesktopCompanion | /src/main/java/org/magic/gui/models/CardsPriceTableModel.java | UTF-8 | 3,280 | 2.40625 | 2 | [] | no_license | package org.magic.gui.models;
import java.net.URL;
import java.util.ArrayList;
import java.util.Currency;
import java.util.List;
import javax.swing.table.DefaultTableModel;
import org.apache.log4j.Logger;
import org.magic.api.beans.MagicCard;
import org.magic.api.beans.MagicEdition;
import org.magic.api.beans.MagicP... | true |
9b45efbd9de79fcee71f64aafb85ce8f0665e60f | Java | reverseengineeringer/com.grubhub.android | /src/com/grubhub/AppBaseLibrary/android/order/cart/GHSCartFragment$24.java | UTF-8 | 982 | 1.617188 | 2 | [] | no_license | package com.grubhub.AppBaseLibrary.android.order.cart;
import com.grubhub.AppBaseLibrary.android.GHSApplication;
import com.grubhub.AppBaseLibrary.android.dataServices.b.b;
import com.grubhub.AppBaseLibrary.android.dataServices.interfaces.GHSICartDataModel;
import com.grubhub.AppBaseLibrary.android.dataServices.net.e;... | true |
3a9486c2fe55d5aef889631639701c5ca728b1b0 | Java | COO-EACH/Bilder | /persistence/jdbc/JdbcDaoFactory.java | UTF-8 | 908 | 2.390625 | 2 | [] | no_license | package persistence.jdbc;
import persistence.BookDao;
import persistence.CdDao;
import persistence.DaoFactory;
import persistence.LendDao;
import persistence.PersistenceException;
import persistence.UserDao;
public class JdbcDaoFactory extends DaoFactory {
private static JdbcDaoFactory jdbcDaoFactory;
private Jdb... | true |
784eed710150de6f50441c1a5d375e41fdc1810d | Java | nquillin91/merchant_springboot_starter | /src/main/java/com/merchant/app/dto/AffirmAuthResponse.java | UTF-8 | 553 | 1.71875 | 2 | [] | no_license | package com.merchant.app.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
@Data
public class AffirmAuthResponse {
@JsonProperty("created")
private String orderCreatedDate;
@JsonProperty("id")
private String affirmChargeId;
@JsonProperty("currency")
private String currency;
... | true |
0ce3a9fdac8d2a63935d7a1c0d2a682f866d3459 | Java | felipesqra/Lab5 | /src/lab5/Conta.java | UTF-8 | 1,719 | 3.421875 | 3 | [] | no_license | package lab5;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
/**
* Classe simulando a conta de um cliente em um fornecedor
* @author Felipe de Souza Siqueira
*
*/
public class Conta... | true |
b88a46e2968987e5f1a61f672ee7bfa3de1c54d4 | Java | andreyfbs/money-transfer | /src/main/java/com/revolut/mt/transfer/Transfer.java | UTF-8 | 1,748 | 2.53125 | 3 | [] | no_license | package com.revolut.mt.transfer;
import com.revolut.mt.account.Account;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Objects;
import java.util.UUID;
public class Transfer {
private String code;
private Account fromAccount;
private Account toAccount;
private BigDecimal valu... | true |
419a597979ff48633c02340f8c4d5755aeb8dfb7 | Java | STAMP-project/dspot-experiments | /benchmark/training/com/bumptech/glide/request/ErrorRequestCoordinatorTest.java | UTF-8 | 20,139 | 2.09375 | 2 | [] | no_license | package com.bumptech.glide.request;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.mockito.ArgumentMatchers;
import org.mockito.Mock;
import org.mockito.Mockito;
@RunWith(JUnit4.class)
public class ErrorRequestCoordinatorTest {
@Mock
private Request prima... | true |
13ccb1ba7a163727cf6751ec8b6543d4acd6bf91 | Java | iu28igvc9o0/cmdb_aspire | /mirror-composite/composite-api/src/main/java/com/aspire/mirror/composite/service/cmdb/IReportService.java | UTF-8 | 3,551 | 1.90625 | 2 | [] | no_license | package com.aspire.mirror.composite.service.cmdb;
import com.aspire.ums.cmdb.report.playload.Report;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.http.MediaType;
import or... | true |
b7e2534d9191508c1eb7400f049fba8c8984f3c0 | Java | Aleks-Ya/yaal_examples | /Java+/JEE+/Servlet+/Servlet4/src/servlet4/cancel_by_client/writer/WithWritingServlet.java | UTF-8 | 1,142 | 3.015625 | 3 | [] | no_license | package servlet4.cancel_by_client.writer;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
/**
* Use java.io.PrintWriter#checkError method for detection that client canceled the ... | true |
77b59ecf9bcbf0ce574631c87e707f2b464b3dfe | Java | baisjostrom/Blueberryv11 | /app/src/main/java/com/example/myapplication/exploringEncryption.java | UTF-8 | 767 | 2.125 | 2 | [] | no_license | package com.example.myapplication;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class exploringEncryption extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCre... | true |
929d14f888f92fb7db19e4ceb9a698c67a7b5058 | Java | jipaow/MaisonHoteJEE | /src/co/simplon/hote/model/ReservationManager.java | UTF-8 | 639 | 2.453125 | 2 | [] | no_license | package co.simplon.hote.model;
import java.util.ArrayList;
public class ReservationManager {
private final static ReservationManager INSTANCE = new ReservationManager();
private ArrayList<Client>infoResa = new ArrayList<Client>();
public ReservationManager() {
}
public ArrayList<Client> getInfoResa() {
... | true |
c31d61f63706860f3bdc5a67000d2d04f2422604 | Java | makebono/Algorithms | /src/com/makebono/algorithms/tools/dateenum/MonthEnum.java | UTF-8 | 898 | 3.28125 | 3 | [] | no_license | package com.makebono.algorithms.tools.dateenum;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;
/**
* @ClassName: MonthEnum
* @Description: MonthEnum
* @author makebono
* @date 2018年1月19日 上午11:11:54
*
*/
public enum MonthEnum {
January(1), February(2), March(3), April(4), May(... | true |
118951f7d7dabd462b61b3084dd80d109ff422ed | Java | mzlp/op_data_server | /src/main/java/com.syproject/web/HelloController.java | UTF-8 | 3,196 | 2.0625 | 2 | [] | no_license | package com.syproject.web;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.syproject.domian.Racetrack;
import com.syproject.service.EntityQuery;
import com.syproject.service.impl.BonecpConnectionPoolConfig;
import com.syproject.service.impl.ConnConfigProvider;
import com.sypro... | true |
274f04da04a54e34e9f7d086d390442916edbd72 | Java | TheHexa1/MapDemo | /app/src/main/java/com/erichamion/freelance/oakglen/map/MapUiHandler.java | UTF-8 | 889 | 1.6875 | 2 | [] | no_license | package com.erichamion.freelance.oakglen.map;
import android.speech.tts.TextToSpeech;
import android.support.annotation.DrawableRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
/**
* Created by Eric Ray on 7/15/2016.
*/
public interface MapUiHandler {
void onMapLoading... | true |
29c991c40e11fa82b88cd285463c247b5e290db9 | Java | sockny/TreeAssist | /src/main/java/net/slipcor/treeassist/commands/CommandRemoveTool.java | UTF-8 | 2,174 | 2.421875 | 2 | [] | no_license | package net.slipcor.treeassist.commands;
import net.slipcor.treeassist.TreeAssist;
import net.slipcor.treeassist.core.Language;
import net.slipcor.treeassist.configs.TreeConfig;
import net.slipcor.treeassist.utils.StringUtils;
import net.slipcor.treeassist.utils.ToolUtils;
import org.bukkit.ChatColor;
import org.bukki... | true |
101aa00a4b887c2e6f946cd1e0e6d6720963c9a6 | Java | Jagjeet-Ramgharia/Student-information-system | /src/addCourseForm.java | UTF-8 | 9,638 | 2.40625 | 2 | [] | no_license |
import javax.swing.JOptionPane;
/*
* 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.
*/
/**
*
* @author Jagjeet singh
*/
public class addCourseForm extends javax.swing.JFrame {
/**... | true |
d29ac1a30fcb541389bb51e74c1cc258d4b67ded | Java | cha63506/CompSecurity | /Shopping/amazon_shopping_source/src/com/amazon/rio/j2me/client/services/mShop/ShippingOption.java | UTF-8 | 699 | 1.671875 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.amazon.rio.j2me.client.services.mShop;
public class ShippingOption
{
private Integer selected;
private String shipSplitPre... | true |
5ac210eb996e7c4560e816a58a154f937a016779 | Java | v1001001/lumchine | /lumchine-db/src/main/java/com/lumchine/db/dao/LumchineCommentMapper.java | UTF-8 | 4,829 | 1.976563 | 2 | [
"CC-BY-ND-4.0",
"MIT"
] | permissive | package com.lumchine.db.dao;
import com.lumchine.db.domain.LumchineComment;
import com.lumchine.db.domain.LumchineCommentExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface LumchineCommentMapper {
/**
* This method was generated by MyBatis Generator.
* This metho... | true |
4c6af511f4f836a6b73250979cdac22e01d563a5 | Java | levelp/java_beginners_homework | /code/src/ru/levelp/examples/basics/operators/TernaryOperator.java | UTF-8 | 347 | 3.171875 | 3 | [
"MIT"
] | permissive | package ru.levelp.examples.basics.operators;
/**
* Демонстрация работы тернарного оператора
*/
public class TernaryOperator {
public static void main(String[] args) {
int y = 10;
String message = y > 10 ? "OK" : "Too small!";
System.out.println("message = " + message);
}
}
| true |
ddf3f6ba87526447810bcb8d99ae375a6801acb6 | Java | feels-like-1984/PROZ | /1990tanks/src/message/AimMessage.java | UTF-8 | 306 | 2.421875 | 2 | [] | no_license | package message;
import commons.Direction;
/**
* Created by Margarita Chirillova
*/
public class AimMessage implements Message {
private final Direction direction;
public AimMessage(Direction d)
{
direction = d;
}
public Direction getDirection()
{
return direction;
}
}
| true |
7ce65ae60c0bebf7b13d51295607b30d112b9905 | Java | Alexander-wafer/GitTest | /src/java/User.java | UTF-8 | 719 | 2.765625 | 3 | [] | no_license |
import java.io.Serializable;
public class User implements Serializable{
private String name;
private String password;
private int attempts;
User(String name,String password){
this.name = name;
this.password = password;
}
public String getName(){
return n... | true |
134453458eedc2985aa7638fb4e0965a328f9831 | Java | hanjiongchen/xquick | /rocket/admin/src/main/java/com/nb6868/xquick/modules/wx/config/WxPayProp.java | UTF-8 | 1,041 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | package com.nb6868.xquick.modules.wx.config;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* 微信支付信息
*
* @author Charles zhangchaoxu@gmail.com
*/
@Data
@ApiModel(value = "微信支付信息")
public class WxPayProp implements Seria... | true |
0bf6cda8cf4f3a3e2ba34a7c8105d17f6b733580 | Java | sahruardiansyah/smartlog | /src/main/java/smartlog/atm/dao/AtmDaoImpl.java | UTF-8 | 749 | 2.296875 | 2 | [] | no_license | package smartlog.atm.dao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import smartlog.db.entity.AtmMaster;
import smartlog.db.repository.AtmRepository;
import java.util.NoSuchElementException;
@Service
public class AtmDaoImpl implements AtmDao {
... | true |
e5a19e093caf51e31283176ca676f5736e8e030d | Java | fansengithub/MySprinMVC | /src/main/webapp/java/com/fan/springMVC/handler/SpringMVCTest.java | UTF-8 | 7,314 | 2.75 | 3 | [] | no_license | package com.fan.springMVC.handler;
import com.fan.springMVC.entity.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;... | true |
0a633d64d86684a33cb35047f1ba1267cd8b9462 | Java | frandepy2/webbanking | /src/proyectofinal/Gui_SaldoCuenta.java | UTF-8 | 6,533 | 2.109375 | 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 proyectofinal;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import passwor... | true |
8be7d35b37341310966b846842d0fd2a2b11dcad | Java | dev0psunleashed/Sandata_SampleDemo | /Services/Data/Gen/GEN_REST_AR_SERVICE/src/main/java/com/sandata/lab/rest/ar/utils/constants/Columns.java | UTF-8 | 957 | 2.078125 | 2 | [] | no_license | package com.sandata.lab.rest.ar.utils.constants;
/**
* For mapping column of table AR
* @author thanhxle
*
*/
public enum Columns {
BE_ID("BE_ID"),
PAYER_ID("PAYER_ID"),
CONTR_ID("CONTR_ID"),
INV_START_DATE("INV_START_DATE"),
INV_END_DATE("INV_END_DATE"),
INV_NUM("INV_NUM"),
PT_FIRST_N... | true |
db225e71eda87021e20709c3a90922fa354dd784 | Java | sjaqjwor/MovieTogether | /src/main/java/com/movie/movie/controllers/responses/MovieListResponse.java | UTF-8 | 273 | 1.726563 | 2 | [] | no_license | package com.movie.movie.controllers.responses;
import com.movie.movie.domains.dto.TodayMovieDto;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.util.List;
@Data
@AllArgsConstructor
public class MovieListResponse {
List<TodayMovieDto> movieList;
}
| true |
5d40599575d9e6933b4bf1edae44cf74a6e3b395 | Java | arthurviveiros/EstruturaDados3Sem | /Lista de atividades ED/ArthurViveiros-ED-ATIV-01/JavaSource/view/Principal.java | ISO-8859-1 | 1,213 | 3.21875 | 3 | [] | no_license | package view;
import controller.Exercicios_Ativ_01;
import java.util.*;
public class Principal {
public static void main(String[] args) {
Exercicios_Ativ_01 Ativ01 = new Exercicios_Ativ_01();
Scanner sc= new Scanner(System.in);
int choose = 0;
System.out.print("Arthur Viveiros - RA: 1110482012024\n");
... | true |
6d7d7767ccb9dfcefd6d43c23ff58956995d9e66 | Java | TimBunk/1_step_ahead | /src/Othello/Othello.java | UTF-8 | 3,827 | 3.859375 | 4 | [] | no_license | package Othello;
import Shared.AbstractPlayer;
import Shared.RandomComputer;
import java.util.Random;
public class Othello {
public static void main(String[] args) {
Othello othello = new Othello(new RandomComputer(), new OthelloComputer1(8, 9500), true);
othello.start();
}
private Othe... | true |
aa4734a8b29b9b394ba307780651cebfacfb8773 | Java | PanteleevPavel/javaCoreLessons | /src/main/java/lesson10_collections/PhoneDirectory.java | UTF-8 | 650 | 3.21875 | 3 | [] | no_license | package lesson10_collections;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
public class PhoneDirectory {
private final HashMap<String, HashSet<String>> phoneDirectory = new HashMap<>();
public void add(String name, String phone) {
if (phoneDirectory.containsKey(na... | true |
6cb2a2e32b40626c620989dcf5d06f1c9e4e9381 | Java | all4yandaru/Praktikum-Mobile | /Pertemuan 3 - Recycler View/app/src/main/java/com/project/myanimelist/AnimeData.java | UTF-8 | 7,817 | 2.875 | 3 | [] | no_license | package com.project.myanimelist;
import java.util.ArrayList;
public class AnimeData {
public static String Judul[] = new String[]{
"Fullmetal Alchemist: Brotherhood",
"Steins;Gate",
"Gintama°",
"Hunter x Hunter (2011)",
"Ginga Eiyuu Densetsu",
... | true |
16f8b92555cb671e9cefb038ffd4baae318d17f9 | Java | e3bo/jflowmap | /src/jflowmap/views/timeline/FloatingLabelsNode.java | UTF-8 | 6,325 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package jflowmap.views.timeline;
import java.awt.Color;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics2D;
import java.awt.geom.Point2D;
import at.fhjoanneum.cgvis.plots.AbstractFloatingPanelNode;
import edu.umd.cs.piccolo.PCamera;
import edu.umd.cs.piccolo.PNode;
import edu.umd... | true |
2b22257f6f7967a3f8364d15353a3a7e8920ca26 | Java | robinvandeven/IMTDb_Case | /src/test/java/com/testcoders/utils/Logging.java | UTF-8 | 272 | 1.632813 | 2 | [] | no_license | package com.testcoders.utils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Component;
@Component
public class Logging {
public Logger logger = LogManager.getLogger(Logging.class);
}
| true |
0a7fee84389554bd955d1c0f8e69604bb2e718cc | Java | MarcoAntonioGomes/Desenvolvimento_Orientado_a_Objeto_POO | /Loja/src/loja/Produto.java | UTF-8 | 1,180 | 3.21875 | 3 | [] | no_license |
package loja;
public class Produto implements Comparable<Produto> {
private String nome;
private double preço;
private int codigo;
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public double getPreço() {
return preço;
... | true |
d12f503311a63c690583e2dfa62469bee4340cbc | Java | quillchen/QuillSimple | /app/src/main/java/quill/simple/utils/OrdinaryUtils.java | UTF-8 | 4,607 | 2.3125 | 2 | [] | no_license | package quill.simple.utils;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.res.AssetManager;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.ColorMatrix;
import... | true |
3a6b2378adebe629c69eadde4abfb27b467ecf5e | Java | VazkiiMods/Botania | /Xplat/src/main/java/vazkii/botania/common/crafting/OrechidIgnemRecipe.java | UTF-8 | 2,036 | 2.203125 | 2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* This class is distributed as part of the Botania Mod.
* Get the Source Code in github:
* https://github.com/Vazkii/Botania
*
* Botania is Open Source and distributed under the
* Botania License: http://botaniamod.net/license.php
*/
package vazkii.botania.common.crafting;
import com.google.gson.JsonObject;
... | true |
c9ad500538617e0e3433d9beae6831f546407093 | Java | charbull/OLGA-GeneratedCode-DigitalBuildingsOntology | /generatedCode/digitalbuildings-RDF4J-java/src/main/java/www/google/com/digitalbuildings/_0_0_1/hvac/ICt.java | UTF-8 | 255 | 1.890625 | 2 | [] | no_license | package www.google.com.digitalbuildings._0_0_1.hvac;
import org.eclipse.rdf4j.model.IRI;
import www.google.com.digitalbuildings._0_0_1.IEquipment;
/**
* Class Ct
* Tag for cooling tower.
*/
public interface ICt extends IEquipment{
public IRI iri();
} | true |
c55d647553842c4c29c740d0d7ed8f793f747b67 | Java | lingshuan/MyApplication | /android_5_7/src/main/java/com/example/android_5_7/Adapter/PictrueAdapter.java | UTF-8 | 1,143 | 2.296875 | 2 | [] | no_license | package com.example.android_5_7.Adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import com.example.android_5_7.entity.ClassInfo;
import java.util.ArrayList;
import java.util.List;
/**
* Created ... | true |
e9a7874fd67fac7de778fcb282b97ac7e62ec771 | Java | Surendev/ts-app | /ts-common/src/main/java/am/saGroup/ts/common/domain/Student.java | UTF-8 | 526 | 2.09375 | 2 | [] | no_license | package am.saGroup.ts.common.domain;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.io.Serializable;
/**
* @author Suro Smith.
*/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class Student implements Serializable{
pri... | true |
30dfa7c174e506e23f4d3c3fa5228d48a3ef0013 | Java | MarkChege/micandroid | /mmbook/src/cn/mmbook/platform/dao/tag/CmsTagCategoryDao.java | UTF-8 | 1,938 | 2.15625 | 2 | [] | no_license | package cn.mmbook.platform.dao.tag;
import java.util.*;
import javacommon.base.*;
import javacommon.util.*;
import cn.org.rapid_framework.util.*;
import cn.org.rapid_framework.web.util.*;
import cn.org.rapid_framework.page.*;
import cn.org.rapid_framework.page.impl.*;
import cn.mmbook.platform.model.tag... | true |
8eb17f4c0132a522d502101956b88846d2b22074 | Java | xuzhijiang/Note | /JAVA/EE/MyBatis/02_java-mybatis-annotation-based/src/main/java/org/mybatis/core/mapper/UserMapper.java | UTF-8 | 446 | 1.90625 | 2 | [] | no_license | package org.mybatis.core.mapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.mybatis.core.model.User;
import java.util.List;
public interface UserMapper {
@Insert("IN... | true |
3fc93174b049211fa5fd28d1a65ce93487e1a33d | Java | hadim/DeconvolutionLab2 | /DeconvolutionLab2/src/deconvolutionlab/module/OutputModule.java | UTF-8 | 7,681 | 1.9375 | 2 | [] | no_license | /*
* DeconvolutionLab2
*
* Conditions of use: You are free to use this software for research or
* educational purposes. In addition, we expect you to include adequate
* citations and acknowledgments whenever you present or publish results that
* are based on it.
*
* Reference: DeconvolutionLab2: An Open-Sourc... | true |
7082057d30396216008d0638b22cdd9f125e5bc9 | Java | shashipe/FirstProject | /Employee/src/main/java/com/example/demo/dao/Appointmentdao.java | UTF-8 | 304 | 1.820313 | 2 | [] | no_license | package com.example.demo.dao;
import org.springframework.data.repository.CrudRepository;
import com.example.demo.Beans.Appointment;
import com.example.demo.Entity.AppointmentEntity;
public interface Appointmentdao extends CrudRepository<AppointmentEntity, Long>{
Appointment findById(String id);
}
| true |