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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4ba7c066801e0bf842dced1f4c20dbb55191d51f | Java | yichenliang/LeetCode-Programming | /unorganized/20180702-20180729/Majority_Element_169/HashMap_Approach/Solution.java | UTF-8 | 936 | 3.6875 | 4 | [] | no_license | import java.util.HashMap;
import java.util.Map;
//169. Majority Element
//Approach 2: HashMap
public class Solution {
public int majorityElement(int[] nums) {
Map<Integer,Integer> countNumber = new HashMap<>();
for(int num : nums) {
if(!countNumber.containsKey(num)) {
countNumber.put(nu... | true |
1aa3cec431dc93cc4c021109ed1590df68cf8ff4 | Java | joshuacassidy/Data-Structures-2017-2016-C-Text-Editing-Management | /IStack.java | UTF-8 | 165 | 2.625 | 3 | [] | no_license | public interface IStack {
public void push(String data);
public Node pop();
public Node peek();
public boolean isEmpty();
public int size();
}
| true |
e374670e5208e14eefbbe51ff3d7635de3fa21ff | Java | bellmit/jxhk | /src/main/java/com/usky/sms/config/Config.java | UTF-8 | 18,562 | 1.71875 | 2 | [] | no_license |
package com.usky.sms.config;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URLDecoder;
import java.util.Collection;
import java.util.Properties;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
public class C... | true |
42d3712615b7073359d3c2e50789790ff20410b8 | Java | EBridgeford/CIT276-CSE201-Group-Project | /SQL/DBConnection.java | UTF-8 | 9,498 | 3.03125 | 3 | [] | no_license | //William Wallace
//CSE 201
//The purpose of this class is to establish a connection with a MySQL RFID database. All exceptions are thrown
//to the controller of the GUI. See Github documentation for details.
//Awaiting stored procedures from DB team for methods update & add record. Expected implementation 11/24/14
im... | true |
1d79ee12a9ffe5a608a08d10edc96dfd50613a12 | Java | sumitdude11/android_devel | /MainActivity2.java | UTF-8 | 3,407 | 2.140625 | 2 | [] | no_license | package com.example.myapplication;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import andr... | true |
ddcb7113a93bc7362f1b33cac97756209a1bf300 | Java | bpsanugmail/Apitesting | /src/test/java/com/simplogics/testcases/API.java | UTF-8 | 3,301 | 2.15625 | 2 | [] | no_license | package com.simplogics.testcases;
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.testng.SkipExceptio... | true |
03cf0f3b31de9550733e1aa73461df777bc75600 | Java | lequan-moon/android_mvp_demo | /app/src/main/java/com/example/quanlm/project01_mvp/equation/interfaces/IEquationModel.java | UTF-8 | 180 | 2.328125 | 2 | [] | no_license | package com.example.quanlm.project01_mvp.equation.interfaces;
/**
* Created by QuanLM on 6/6/2017.
*/
public interface IEquationModel {
void calculate(Float a, Float b);
}
| true |
69c26fa676d7676fb27c248ffee6653dace09b89 | Java | DmitryNeverovich/DmitryNeverovich | /task2/task02/src/by/epam/task02/logic/ICommand.java | UTF-8 | 366 | 1.789063 | 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 by.epam.task02.logic;
import by.epam.task02.entity.IComponent;
/**
*
* @author Dima
*/
public interface ICommand {
IC... | true |
7acc31560a40e39d766ea7237de3589dbd9fcb3d | Java | sanyaade-mobiledev/Flex4jExplorer | /Flex4jExplorer/src/com/emitrom/flex4j/explorer/client/ui/pages/DemoDisplayContainer.java | UTF-8 | 1,587 | 2.125 | 2 | [] | no_license | /*******************************************************************************
* DemoDisplayContainer.java is part of the Flex4j Explorer (for Flex4j 3.0)
*
* Copyright (c) 2012 Emitrom LLC. All rights reserved.
*
* http://www.emitrom.com/
*
******************************************************************... | true |
906915a695647c5d1cf90d3b79581e4c2eb8f656 | Java | tokuhirom/mybatis-samples | /mybatis-xml-sample/src/main/java/com/example/mapper/BlogMapper.java | UTF-8 | 150 | 1.679688 | 2 | [] | no_license | package com.example.mapper;
import com.example.entity.Blog;
public interface BlogMapper {
Blog findById(long id);
void insert(Blog blog);
} | true |
76918a1031303a366de6a40fbba0fd7cb276b000 | Java | hpjs/AdventureSquad | /app/src/main/java/com/adventuresquad/interfaces/PresentablePlanSquadView.java | UTF-8 | 390 | 2.296875 | 2 | [] | no_license | package com.adventuresquad.interfaces;
import com.adventuresquad.model.Squad;
/**
* Provides an interface for a presenter to access / hold methods for a squad view
* Created by Harrison on 8/06/2017.
*/
public interface PresentablePlanSquadView {
/**
* Adds a single squad to be displayed in the list
... | true |
065d39623b5e941f2c3267a03db84bcc0ecad4b8 | Java | bellmit/self | /yimao/yimao-user/src/main/java/com/yimao/cloud/user/po/AdminLog.java | UTF-8 | 1,833 | 2.375 | 2 | [] | no_license | package com.yimao.cloud.user.po;
import com.yimao.cloud.pojo.dto.user.AdminLogDTO;
import lombok.Data;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
/**
* 翼猫业务系统管理员表
*
* @author Zhang Bo
* @dat... | true |
7f56f0433efa23bd86aba0db544ea230db3d8058 | Java | Aron1990s/quesbank | /src/main/java/com/physics/quesbank/controller/upload/ImageUploadController.java | UTF-8 | 4,268 | 2.421875 | 2 | [] | no_license | package com.physics.quesbank.controller.upload;
import com.physics.quesbank.util.Base64Util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMappin... | true |
964d37733b952eb0095c366ca0db95a5389ded7b | Java | meta-deepali-baldi/get2015 | /Web/Design Pattern Assignment -2/Assignment1/Approver.java | UTF-8 | 457 | 2.640625 | 3 | [] | no_license | package Assignment1;
/**
* @author Deepali
*
*/
abstract class Approver{
protected Approver successor;//protected instance used only by sub classes
/**To set successor of a approver
* @param successor :successor
*/
public void SetSuccessor(Approver successor)
{
this.successor = s... | true |
836291dc35215a7242fdd9f6cd5af5facd7fee8c | Java | w9624/designpattern | /src/main/java/designpattern/proxy/VirturalRealSubject.java | UTF-8 | 525 | 3.21875 | 3 | [] | no_license | package designpattern.proxy;
import java.util.ArrayList;
/**
* @author wangrz
* 虚拟代理的真实对象
*/
public class VirturalRealSubject implements VirturalSubject{
ArrayList<String> list;
public VirturalRealSubject(ArrayList<String> list) {
this.list = list;
}
@Override
public void approve() {
... | true |
e85a7da7141a051efe255fe5684e5b632a9cad96 | Java | gourahari/ScratchJava | /Test/src/com/goura/leetcode/SumOfEvenNumbersAfterQueries.java | UTF-8 | 845 | 3.25 | 3 | [] | no_license | package com.goura.leetcode;
import java.util.Arrays;
/**
* 985. Sum of Even Numbers After Queries
*
* @author Gourahari Das
*
*/
public class SumOfEvenNumbersAfterQueries {
public static void main(String[] args) {
int[] result = sumEvenAfterQueries(new int[] {1,2,3,4}, new int[][] {{1,0}, {-3,1}, {-4,0}, {2... | true |
f3320ae10543790bf87d2808e1b2322dffe046c5 | Java | jarodwen/incubator-asterixdb-hyracks | /algebricks/algebricks-core/src/main/java/edu/uci/ics/hyracks/algebricks/core/algebra/operators/physical/AbstractJoinPOperator.java | UTF-8 | 1,924 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2009-2013 by The Regents of the University of California
* 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 from
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | true |
de00b7c6f9d9845ad6f05eaa8a500dbd8188f1b7 | Java | allexolic/controle-financeiro | /src/main/java/com/controlefinanceiro/dosmoros/controller/UploadController.java | UTF-8 | 1,421 | 2.484375 | 2 | [] | no_license | package com.controlefinanceiro.dosmoros.controller;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardCopyOption;
import org.springframework.stereotype.Controller;
import org.springframework.util.StringUtils;
import org.springfr... | true |
1bbdd71d8181472aeb2c35a1884553a1545e5266 | Java | zhaodaoyuan/hxx_room | /src/main/java/com/room/controller/StudentController.java | UTF-8 | 2,625 | 2.125 | 2 | [] | no_license | package com.room.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotatio... | true |
579787e77d55cc94276d4b914b50e3e295a7f0c5 | Java | Java-XiaoLin/student_system | /src/main/java/com/mapper/UserMapper.java | UTF-8 | 191 | 1.867188 | 2 | [
"Apache-2.0"
] | permissive | package com.mapper;
import com.pojo.User;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface UserMapper {
void save(User user);
User findByName(String name);
}
| true |
07a40f2ccf9d4cb34bd825c48456848560a3c070 | Java | vuhoangnguyen97/github-idea | /QuanLyTaiLieuEJB/ejbModule/EntityBeans/UserPK.java | UTF-8 | 1,090 | 2.5625 | 3 | [] | no_license | package EntityBeans;
import java.io.Serializable;
import javax.persistence.*;
/**
* The primary key class for the user database table.
*
*/
@Embeddable
public class UserPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
... | true |
c1f81b9701e1a38383d8a8d64dbf254fda43d93a | Java | tassyo1/desafio-mobile-android | /DesafioMobileAndroid/app/src/main/java/com/example/tsantana/desafiomobileandroid/data/model/Repositorio.java | UTF-8 | 1,438 | 2.1875 | 2 | [] | no_license | package com.example.tsantana.desafiomobileandroid.data.model;
import com.google.gson.annotations.SerializedName;
/**
* Created by tsantana on 06/12/2017.
*/
public class Repositorio {
@SerializedName("name")
private String nome;
@SerializedName("description")
private String descricao;
@Serial... | true |
ccc972e51c8e975355beb5bc53fe2469ff8db28c | Java | huanglongf/enterprise_project | /service-interface-wms/src/main/java/com/jumbo/webservice/ids/manager/IdsManagerProxy.java | UTF-8 | 2,401 | 1.59375 | 2 | [] | no_license | package com.jumbo.webservice.ids.manager;
import java.util.List;
import java.util.Map;
import com.jumbo.wms.manager.BaseManager;
import com.jumbo.wms.model.vmi.ids.IdsServerInformation;
import com.jumbo.wms.model.vmi.warehouse.MsgOutboundOrder;
import com.jumbo.wms.model.warehouse.AdvanceOrderAddInfo;
public interfa... | true |
50c59923857de4d3225d522d5c873b93c174a321 | Java | AndrewBlinets/customer-ipps | /src/main/java/by/ipps/ippsclients/entity/ProjectDtoForCustomer.java | UTF-8 | 327 | 1.640625 | 2 | [] | no_license | package by.ipps.ippsclients.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ProjectDtoForCustomer extends BaseEntity {
private String shortTi... | true |
dd25d163696255d182f030b6d91313495226c861 | Java | timkaboya/Google-Hashcode | /src/slideshow/Main.java | UTF-8 | 3,168 | 2.75 | 3 | [] | no_license | package slideshow;
import java.net.Inet4Address;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Random;
public class Main {
// Class for utility functions for reuse when necessary.
Util util;
public static void main(String[] args) {
Main m;
if(a... | true |
b868f93b36e7fcb49bb6229050b7eeac993e483e | Java | lizhen376751/allDays | /src/main/java/com/dudu/lizhen/activemqtest/ActiveMQProdcer.java | UTF-8 | 1,916 | 2.78125 | 3 | [] | no_license | package com.dudu.lizhen.activemqtest;
import org.apache.activemq.ActiveMQConnectionFactory;
import javax.jms.*;
/**
* activeMq 生产者
* Created by lizhen on 2018/4/3 0003.
*/
public class ActiveMQProdcer {
public static void main(String[] args) throws JMSException {
//获取MQ的连接工厂
Activ... | true |
0377e11bcc8e0bc615cf2b442b70e3329dea9984 | Java | tzfun/VmConsole-Api | /VMConsole-API-OpenJDK-Linux/src/main/java/com/sun/tools/javac/util/Convert.java | UTF-8 | 12,380 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | true |
dbe63d2ebaa4c01d497f97be0a10fb8a12a3c906 | Java | portal-io/portal-android | /program/src/main/java/com/whaley/biz/program/ui/arrange/repository/PackageService.java | UTF-8 | 772 | 1.617188 | 2 | [] | no_license | package com.whaley.biz.program.ui.arrange.repository;
import com.whaley.biz.program.model.CouponModel;
import java.util.List;
/**
* Author: qxw
* Date:2017/8/22
* Introduction:
*/
public interface PackageService extends TopicService {
void setPay(boolean isPay);
boolean isPay();
void setChargeable... | true |
2affd5593a26e59c9a9d6bddc9b49f5e348337e7 | Java | zgw1469039806/AssetsTwo | /src/avicit/assets/device/assetsustdtempacceptance/dto/AssetsUstdtempAcceptanceDTO.java | UTF-8 | 37,453 | 1.757813 | 2 | [] | no_license | package avicit.assets.device.assetsustdtempacceptance.dto;
import javax.persistence.Id;
import avicit.platform6.core.domain.BeanDTO;
import avicit.platform6.core.properties.PlatformConstant.LogType;
import avicit.platform6.core.annotation.log.LogField;
import avicit.platform6.core.annotation.log.FieldRemark;
import av... | true |
d12cac2273f638bc315e6f24e04d22ea3611c37d | Java | tfsgaotong/irpv8 | /TFS.IRP.V8 Project/Project/src/com/tfs/irp/asseuser/entity/IrpAsseuserExample.java | UTF-8 | 16,122 | 2.125 | 2 | [] | no_license | package com.tfs.irp.asseuser.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class IrpAsseuserExample {
/**
* This field was generated by Apache iBATIS ibator. This field corresponds to the database table IRP_ASSEU... | true |
ba7d25aa44a45734ad22cb173b61e5f19a9bb640 | Java | makerzcpp/Korat | /korat-cart/src/main/java/com/korat/cart/controller/UserController.java | UTF-8 | 720 | 1.96875 | 2 | [] | no_license | package com.korat.cart.controller;
import com.korat.cart.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
/*... | true |
c348f2df85e682e75532a8cff6ff4d4ce88c0e4b | Java | nopparat-mkw/java2 | /Project1Java2/src/Recipe.java | UTF-8 | 1,123 | 2.734375 | 3 | [] | no_license |
public class Recipe {
private String id_recipe;
private String name_recipe,mash_1,mash_2,mash_3;
public String getId_recipe() {
return id_recipe;
}
public void setId_recipe(String id_recipe) {
this.id_recipe = id_recipe;
}
public String getName_recipe() {
return name_recipe;
}
public void setName_re... | true |
9627acce5ed25090c1fd2c84c2d976f29fd96481 | Java | cash2one/startupAndGeeks | /src/main/java/com/chuanggu/app/dao/TagDao.java | UTF-8 | 350 | 1.90625 | 2 | [] | no_license | package com.chuanggu.app.dao;
import com.chuanggu.app.entity.Tag;
public interface TagDao {
int deleteByPrimaryKey(Integer id);
int insert(Tag record);
int insertSelective(Tag record);
Tag selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(Tag record);
int upda... | true |
0f87a75b91c9b6e94108de97eb63f18e817e7cbf | Java | supermanxkq/projects | /MarsPlan/src/com/paySystem/ic/web/dto/mail/MailBirthdayDTO.java | UTF-8 | 1,466 | 2.03125 | 2 | [] | no_license | package com.paySystem.ic.web.dto.mail;
import java.io.Serializable;
import com.paySystem.ic.web.dto.BaseDTO;
/***
*
* @ClassName:MailBirthday
* @TODO:会员生日邮件内容DTO
* @date: 2014-3-24下午06:37:20
* @author: 孟凡岭
* @version: V1.0
*/
public class MailBirthdayDTO extends BaseDTO implements Serializable {
private sta... | true |
c05dacc1e999ed20a4e933100df9cd0efd8efd90 | Java | statusSation/foodSystem | /src/main/java/com/food/api/service/imp/FoodApiOrderServiceImp.java | UTF-8 | 4,191 | 2.28125 | 2 | [] | no_license | package com.food.api.service.imp;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.alibaba.fastjson.JSONArr... | true |
d701eab3721c80ccfd2472ab0c947c0e31c80c07 | Java | HevilH/ExerMate-Backend | /src/main/java/ExerMate/ExerMate/Base/Error/ExceptionInterface.java | UTF-8 | 137 | 2.296875 | 2 | [] | no_license | package ExerMate.ExerMate.Base.Error;
public interface ExceptionInterface {
String getErrorCode();
String getErrorMessage();
}
| true |
bac1c0251ffdc1b4145ce3060ae20cc12a6b68c1 | Java | thingdeux/FightWatchAndroidApplication | /app/src/main/java/watch/fight/android/fightbrowser/Utils/Dialogs/BasicAlertDialog.java | UTF-8 | 2,775 | 2.359375 | 2 | [] | no_license | package watch.fight.android.fightbrowser.Utils.Dialogs;
import android.app.Activity;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.support.v7.app.AlertDialog;
import android.view.LayoutInflater;
import android.v... | true |
d2caf3098350416b2031d0324a3d295b74b078d1 | Java | JulienMrgrd/6QuiPrend | /src/communication/Serveur.java | ISO-8859-1 | 11,207 | 2.546875 | 3 | [] | no_license | package communication;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.InetSocketAddress;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.u... | true |
03fcb9373210ad24d5d07027b6f7b33c7c3aaa8c | Java | Yanis2020/WebAutomation | /ebay/src/main/java/com/ebay/HomePage.java | UTF-8 | 323 | 1.820313 | 2 | [] | no_license | package com.ebay;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class HomePage {
@FindBy(id = "gh-ac")
private WebElement searchBar;
public void typeOnSearchBar() {
searchBar.sendKeys("Java programming");
}
public void clickOkOnsearchBar(){
}... | true |
2dad84e9971cdb662370ce1b9c17838fc2643640 | Java | ColdFray/Note_2 | /app/src/main/java/com/example/qw/note_2/AddActivity.java | UTF-8 | 1,476 | 2.53125 | 3 | [] | no_license | package com.example.qw.note_2;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
public class Ad... | true |
e8fb26229f7ac5975e190976100d232b35737b4f | Java | MrEAlderson/PocketCraft | /Java/src/main/java/de/marcely/pocketcraft/java/network/packet/play/v8d9/V8D9PacketPlayUpdateBlockEntity.java | UTF-8 | 1,491 | 2.28125 | 2 | [] | no_license | package de.marcely.pocketcraft.java.network.packet.play.v8d9;
import de.marcely.pocketcraft.java.component.nbt.NBTTagCompound;
import de.marcely.pocketcraft.java.network.packet.PacketProperties;
import de.marcely.pocketcraft.java.network.packet.PlayPacket;
import de.marcely.pocketcraft.java.util.EByteBuf;
import... | true |
29bf92f616c4b0a336aba1d19cfa1dea1f515528 | Java | tiian58/QueVeo | /src/test/java/com/cinema/queveo/Model/MovieRepositoryTest.java | UTF-8 | 547 | 2.296875 | 2 | [] | no_license | package com.cinema.queveo.Model;
import org.junit.Test;
import com.cinema.queveo.Repository.MovieRepository;
import static org.junit.Assert.assertEquals;
public class MovieRepositoryTest {
MovieRepository repomovie = new MovieRepository();
@Test
public void iniRepository(){
repomovie.ini();
... | true |
7501d49c26dd52fb2057eea9837752dc199baa02 | Java | KOCO-Project/KOCO | /src/main/java/co/kr/koco/interceptor/BoardInterceptor.java | UTF-8 | 1,114 | 2.09375 | 2 | [] | no_license | package co.kr.koco.interceptor;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.servlet.Handl... | true |
8b1c17c2bf92f7690cb70f5dd62b430637446b60 | Java | 4294967296zz/Phishy | /src/main/java/phishy/service/MailLogService.java | UTF-8 | 1,443 | 2.296875 | 2 | [] | no_license | package phishy.service;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
import phishy.domain.Entity.MailLogEntity;
import phishy.domain.Repository.MailLogRepository;
import phishy.dto.MailLogDto;
import javax.transaction.Transactional;
import java.util.ArrayList;
import java.util.List... | true |
c246dfe5c1f7ec0da5d4281ca71e52274a03de3c | Java | proMonkey/Spider | /src/main/java/com/lcx/spider/SpiderApplication.java | UTF-8 | 407 | 1.710938 | 2 | [] | no_license | package com.lcx.spider;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@MapperScan("com.lcx.spider.mapper")
@SpringBootApplication()
public class SpiderApplication {
public static void main(S... | true |
5564026912763fe48334aa7371ab6106670ec4ca | Java | Javastro/astrogrid-legacy | /astrogrid/community/resolver/src/java/org/astrogrid/community/resolver/CommunityAccountSpaceResolver.java | UTF-8 | 7,870 | 2.6875 | 3 | [] | no_license | package org.astrogrid.community.resolver ;
import org.apache.commons.logging.Log ;
import org.apache.commons.logging.LogFactory ;
import java.net.URL ;
import java.net.URISyntaxException ;
import org.astrogrid.registry.client.query.v1_0.RegistryService;
import org.astrogrid.store.Ivorn ;
import org.astrogrid.commun... | true |
021d4ec039fa0c75a92d304a86ab68bfcf0a93ac | Java | chrisQQQiu/KPI | /mail-sys/mail-api/src/main/java/cn/songmj/kpi/global/GlobalExceptionHandler.java | UTF-8 | 1,479 | 2.171875 | 2 | [] | no_license | package cn.songmj.kpi.global;
import cn.songmj.kpi.enums.StatusCode;
import cn.songmj.kpi.result.Result;
import lombok.extern.log4j.Log4j;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Component;
import org.springframework.validation.BindException;
import org.springframework.web.bin... | true |
7433661089f62d510f60425f3966889c4da8be43 | Java | cdai/interview | /1-algorithm/13-leetcode/java/src/buildingblock/sorting/heap/lc373_findkpairswithsmallestsums/Solution.java | UTF-8 | 5,945 | 3.46875 | 3 | [
"MIT"
] | permissive | package buildingblock.sorting.heap.lc373_findkpairswithsmallestsums;
import java.util.ArrayList;
import java.util.List;
import java.util.PriorityQueue;
import java.util.Queue;
/**
* You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k.
* Define a pair (u,v) which consists of o... | true |
e5427a50bc7f3024af5a84e3a81c6b81faae61bb | Java | NesterovichAleksandr/jd2_project_product_ordering | /src/test/java/by/pvt/dao/impl/ProductOfferingRefDaoImplTest.java | UTF-8 | 3,088 | 1.96875 | 2 | [] | no_license | package by.pvt.dao.impl;
import by.pvt.dao.ProductOfferingRefDao;
import by.pvt.model.ProductOfferingRef;
import io.swagger.configuration.HibernateXMLConfTest;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Au... | true |
d3b0eb34a94f3cbe6c2df9a623d2e8391238c9ff | Java | rishat19/ORM | /orm/src/main/java/ru/kpfu/itis/orm/criteria/CriteriaSave.java | UTF-8 | 2,160 | 2.578125 | 3 | [] | no_license | package ru.kpfu.itis.orm.criteria;
import ru.kpfu.itis.orm.annotations.Column;
import ru.kpfu.itis.orm.annotations.Id;
import ru.kpfu.itis.orm.annotations.Transient;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
public class CriteriaSave<T> {
protected StringBuilder query;
protected Str... | true |
0e51eebdb61fc8127cbe9bd0875e899e266836a6 | Java | cjgl/testmybatis | /src/main/java/cn/cjgl/controller/UserController.java | UTF-8 | 2,669 | 2.15625 | 2 | [] | no_license | package cn.cjgl.controller;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.spri... | true |
d3401d99c9e666198c0c514cd76306025a0c7024 | Java | fatmaAli2015/madrasty2 | /app/src/main/java/com/example/fatmaali/madrasty2/Sql/BasicInfHelper.java | UTF-8 | 7,311 | 2.40625 | 2 | [] | no_license | package com.example.fatmaali.madrasty2.Sql;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.database.sqlite.SQLiteOpe... | true |
18da100e95a0993312d4b2c927d4bd63e21b4935 | Java | sonu2104/electrical-bill | /ProfileServlet.java | UTF-8 | 2,232 | 2.53125 | 3 | [] | no_license |
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import... | true |
2639dfe05078bd84a855799d54204908dbbe3fc3 | Java | jfbulanadi/external-tempoplus | /src/main/java/hk/com/novare/tempoplus/bmnmanager/mantis/MantisDao.java | UTF-8 | 3,202 | 2.546875 | 3 | [] | no_license | package hk.com.novare.tempoplus.bmnmanager.mantis;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import javax.inject.Inject;
import javax.sql.DataSource;
import org.apache.log4j.Logger;
public class Ma... | true |
25578ced8e5a4e794815b54e0a22edee5e553a6d | Java | AcquireL/LeetCode | /src/easy/No557.java | UTF-8 | 605 | 3.015625 | 3 | [] | no_license | package easy;
public class No557 {
public static String reverseWords(String s) {
StringBuffer res = new StringBuffer();
String[] strings = s.split(" ");
for (String string : strings) {
StringBuffer sb = new StringBuffer(string);
res.append(sb.reverse().toString());
res.append(" ");
... | true |
481b160300eea6e7ede9b8211a319767ea1a2122 | Java | TheCountOfPeru/409project | /src/ClientP.java | UTF-8 | 26,988 | 2.890625 | 3 | [] | no_license | import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.PrintWriter;
import java.net.Socket;
import java.util.Vector;
import javax.swing.DefaultComboBoxModel;
import javax.swing.DefaultListM... | true |
cc845a82610f48ebd131b22ca7df419a9c55b217 | Java | wangzhibinjunhua/wearLauncher | /src/com/sczn/wearlauncher/activity/ErrorActivity.java | UTF-8 | 1,475 | 2.1875 | 2 | [] | no_license | package com.sczn.wearlauncher.activity;
import com.sczn.wearlauncher.R;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;
public class ErrorActivity extends AbsActivity implements OnClickListener{
public static final String ARG... | true |
3962d40b8f3a8325539ad028a84369a75910df2e | Java | YuriiTrofimenko/javafx-water-sales | /src/org/tyaa/ws/viewmodel/ShopModel.java | UTF-8 | 3,326 | 2.328125 | 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 org.tyaa.ws.viewmodel;
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.DoubleProperty;
import javaf... | true |
5a66ac0d5500e9925b8dcc93dd0a64062cc918a2 | Java | BladimirDelBarrioPizarro/Sopra-Booking-App-Back | /src/main/java/com/soprasteria/booking/model/exceptions/HandleExceptionNeedFindById.java | UTF-8 | 213 | 2.171875 | 2 | [
"MIT"
] | permissive | package com.soprasteria.booking.model.exceptions;
public class HandleExceptionNeedFindById extends RuntimeException {
public HandleExceptionNeedFindById(Exception ex){
super(ex.getMessage());
}
}
| true |
f6a6893d53d03eb5b682f48ac7248cb6abe04c35 | Java | muhammadsafar/gosakura | /src/main/java/com/mii/sakura/service/RoleService.java | UTF-8 | 1,124 | 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 com.mii.sakura.service;
import com.mii.sakura.model.Role;
import com.mii.sakura.repository.RoleRepository;
import jav... | true |
511d70dee72d1b9e56f24c9160190959757fa797 | Java | activeliang/tv.taobao.android | /sources/mtopsdk/mtop/stat/UploadStatAppMonitorImpl.java | UTF-8 | 3,153 | 1.976563 | 2 | [] | no_license | package mtopsdk.mtop.stat;
import com.alibaba.mtl.appmonitor.AppMonitor;
import com.alibaba.mtl.appmonitor.model.DimensionSet;
import com.alibaba.mtl.appmonitor.model.DimensionValueSet;
import com.alibaba.mtl.appmonitor.model.MeasureSet;
import com.alibaba.mtl.appmonitor.model.MeasureValueSet;
import com.taobao.orange... | true |
5f1da76c27e6dd5f493d526daf512bf94468486d | Java | hjbeauty/bit20210118-20210630 | /195기-최종/웨더웨어/2. source/spring/src/main/java/com/bit/ww/entity/MemberEntity.java | UTF-8 | 2,073 | 2.125 | 2 | [] | no_license | package com.bit.ww.entity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.pe... | true |
9325996d12b8589d92fa6bfd0822963d182a7589 | Java | cppcpp/basicJava | /src/Thread/Basic/ThreadLocalTest.java | UTF-8 | 1,662 | 3.828125 | 4 | [] | no_license | package Thread.Basic;
import java.util.Random;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
/*
* 线程本地变量:对一个共享变量,为每一个线程开辟不同的存储
* 例如5个线程访问a变量,那线程本地存储就会生成5个用于a的存储块
*
* */
public class ThreadLocalTest {
public static void main(String[] ar... | true |
1e02d57524f0768fa8c1fb1c7861d157b0b19fa7 | Java | jcosmo/scoutmgr | /user-experience/src/main/java/scoutmgr/client/application/events/EventsView.java | UTF-8 | 644 | 1.890625 | 2 | [
"Apache-2.0"
] | permissive | package scoutmgr.client.application.events;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.Widget;
import com.gwtplatform.mvp.client.ViewWithUiHandlers;
import javax.inject.Inject;
pu... | true |
08d34aec0a486185fad075595e5d71de08e7f4d3 | Java | KingOfHui/bvw-exchange | /app/src/main/java/com/darknet/bvw/net/retrofit/MvvmNetworkObserver.java | UTF-8 | 172 | 1.640625 | 2 | [] | no_license | package com.darknet.bvw.net.retrofit;
public interface MvvmNetworkObserver<F> {
void onSuccess(F t, boolean isFromCache);
void onFailure(Throwable throwable);
}
| true |
9b6ae0731a42174538656df2d6c7daa4e35e9efa | Java | Churritosjesus/Chromecast-Reverse-Engineering | /chromecast-app-reverse-engineering/src/from-jd-gui/bmk.java | UTF-8 | 634 | 1.515625 | 2 | [] | no_license | import android.app.AlertDialog;
import android.view.View;
import android.view.View.OnClickListener;
import com.google.android.apps.chromecast.app.DeviceSettingsActivity;
final class bmk
implements View.OnClickListener
{
bmk(bmj parambmj) {}
public final void onClick(View paramView)
{
if ((bmi.c(this.a.a... | true |
19f784f1941b519fd157a4a10c40e20756b24f7b | Java | yahier/AndroidTest | /app/src/main/java/com/yahier/androidtest/bitmap/ChooseImgTestAct.java | UTF-8 | 5,259 | 2.078125 | 2 | [] | no_license | package com.yahier.androidtest.bitmap;
import android.content.ContentResolver;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.suppo... | true |
ee7f4f2dabaed21eac125b210c905df91b92a7c5 | Java | songziyang/ydzb | /account/src/main/java/com/ydzb/account/service/IWmYinduoUserProcessService.java | UTF-8 | 1,231 | 1.78125 | 2 | [] | no_license | package com.ydzb.account.service;
import com.ydzb.account.entity.WmCurrentUserAccount;
import com.ydzb.account.entity.WmProductInfo;
import java.math.BigDecimal;
/**
* 银多用户流程service
*/
public interface IWmYinduoUserProcessService {
/**
* 处理活期宝结算流程
* @param currentUserAccount 用户活期宝账户
* @param pr... | true |
9c6fd4ae8095be994b3330d07ebfd5b1df04cb8f | Java | MineLittlePony/MineLittlePony | /src/main/java/com/minelittlepony/client/model/AbstractPonyModel.java | UTF-8 | 22,367 | 1.851563 | 2 | [
"MIT"
] | permissive | package com.minelittlepony.client.model;
import com.minelittlepony.api.model.*;
import com.minelittlepony.api.model.fabric.PonyModelPrepareCallback;
import com.minelittlepony.api.pony.meta.Sizes;
import com.minelittlepony.client.transform.PonyTransformation;
import com.minelittlepony.client.util.render.RenderList;
imp... | true |
37f9fb95d2cd0851ea306af8adf9e709ef2399df | Java | jorcartriyo/Ejercicios-Java-2 | /videoclub/Videoclub/src/videoclub/Pelicula.java | UTF-8 | 1,583 | 2.875 | 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 videoclub;
/**
* @date 12-ene-2018 @time 20:26:41
* @author Silvestre Martínez Jiménez de Cisneros
*/
public class Pelicul... | true |
e17c906751f576dbbe8aeea9ab7d821c1ca1950b | Java | yissachar/fave100 | /src/main/java/com/fave100/server/domain/APIKey.java | UTF-8 | 902 | 2.46875 | 2 | [] | no_license | package com.fave100.server.domain;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;
/**
* A key to access 3rd party services that is stored in the datastore
*
* @author yissachar.radcliffe
*
*/
@Entity
public class APIKey {
@Id private String id;
private Str... | true |
6dc46fbaf492b1353aec3365da814aae46b79ab2 | Java | mapr-demos/mapr-db-fast-fail-over | /core/src/main/java/com.mapr.db/EnhancedJSONTable.java | UTF-8 | 34,716 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package com.mapr.db;
import org.ojai.Document;
import org.ojai.DocumentStream;
import org.ojai.FieldPath;
import org.ojai.Value;
import org.ojai.store.Connection;
import org.ojai.store.DocumentMutation;
import org.ojai.store.DocumentStore;
import org.ojai.store.DriverManager;
import org.ojai.store.Query;
import org.oj... | true |
981fcaf539c81421c0ff5f35d23ad4e1e6755e0a | Java | Pincaptain/auctioneer | /src/main/java/com/gjorovski/auctioneer/user/controller/UserController.java | UTF-8 | 5,191 | 2.3125 | 2 | [] | no_license | package com.gjorovski.auctioneer.user.controller;
import com.gjorovski.auctioneer.auth.domain.Authentication;
import com.gjorovski.auctioneer.shared.exceptions.PermissionDeniedException;
import com.gjorovski.auctioneer.user.service.UserService;
import com.gjorovski.auctioneer.user.model.User;
import com.gjorovski.auct... | true |
29e5a1f895ad06613009b5c839ed232365b809a8 | Java | xbcratos/file-builder | /src/main/java/com/xba/file/server/FileBuilderWorkerWrapper.java | UTF-8 | 1,196 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2020 Xavier Baques
*
* 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 t... | true |
98685b3cec46025045155e9ffa2369a1464bc309 | Java | plasmatic1/archived-projects | /Other Java/Dr.Java/Java 1/poop/poop.java | UTF-8 | 1,862 | 2.96875 | 3 | [] | no_license | import java.io.*;
public class poop{
public static void main(String [] args) throws IOException{
String answer;
int plus = 0;
System.out.println(plus+2);
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Would you like hot or cold");
Syst... | true |
243184df1aeae031edb75cf24adb53aec096be4a | Java | oankarberg/colu | /Rest/src/main/java/colu/OngoingVoyages.java | UTF-8 | 495 | 2.78125 | 3 | [] | no_license |
package colu;
/**
* Class to represent the ongoing voyages
*/
public class OngoingVoyages{
private int voyageID;
private String shipTypeName;
public OngoingVoyages(int theId, String theShipType){
voyageID = theId;
shipTypeName = theShipType;
}
/*public OngoingVoyages(int theId, String theName) ... | true |
6cf80e35dead7d56a4abd7c10a95dfd0fbf62eda | Java | alanmaizon/frescorso | /ejercicios/SistemaVentaCobro/SistemaVentaCobro/src/sistemaventacobro/DFrmLogin.java | UTF-8 | 7,117 | 2.421875 | 2 | [] | no_license |
package sistemaventacobro;
import javax.swing.JOptionPane;
public class DFrmLogin extends javax.swing.JDialog {
private boolean mode;
public DFrmLogin(FrmPrincipal parent, boolean modal) {
super(parent, modal);
initComponents();
setResizable(false);
setDefaultCloseOp... | true |
52d4519650e212a4e2fe0a2de3a4f65b70ebc4c5 | Java | Cqp2002/chenqingpeng | /mingrui-shop-parent/mingrui-shop-service-api/mingrui-shop-service-api-xxx/src/main/java/com/baidu/shop/entity/CategoryBrandEntity.java | UTF-8 | 227 | 1.609375 | 2 | [] | no_license | package com.baidu.shop.entity;
import lombok.Data;
import javax.persistence.Table;
@Table(name = "tb_category_brand")
@Data
public class CategoryBrandEntity {
private Integer categoryId;
private Integer brandId;
}
| true |
613fa75de237cea365e626ea70ccd53a95bc8644 | Java | MartinREMY42/Martiastrid-Back | /src/main/java/eu/busi/martiastrid/controller/RegisterController.java | UTF-8 | 2,828 | 2.1875 | 2 | [] | no_license | package eu.busi.martiastrid.controller;
import eu.busi.martiastrid.exception.PizzaDatabaseException;
import eu.busi.martiastrid.model.Authority;
import eu.busi.martiastrid.model.User;
import eu.busi.martiastrid.model.form.UserRegistrationForm;
import eu.busi.martiastrid.service.UserService;
import org.springframework... | true |
e8af7fe9863b3cd076aea66aa658a90c6376c775 | Java | Youssef-Darwish/DBMS | /src/eg/edu/alexu/csd/oop/dbms/Database/Json.java | UTF-8 | 1,672 | 2.53125 | 3 | [] | no_license | package eg.edu.alexu.csd.oop.dbms.Database;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import javax.swing.JOptionPane;
import org.w3c.dom.Element;
import com.goog... | true |
d10885ff41af053d33f05be5f6a1c2f7f3d83dea | Java | lazyboring/sun | /src/main/java/com/niec/mall/service/impl/PmsOrderServiceImpl.java | UTF-8 | 591 | 1.90625 | 2 | [] | no_license | package com.niec.mall.service.impl;
import com.niec.mall.entity.PmsOrder;
import com.niec.mall.mapper.PmsOrderMapper;
import com.niec.mall.service.PmsOrderService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
/**
* (Order)表服务实现类
*
* @author makejava
* @since 2020-04-18 14:50:3... | true |
a2f862eafd77210fe7ee9347d33e66f0811daff2 | Java | stevenr4/Dead-Invasion-Alpha | /zombiegamealpha/data/items/Melee.java | UTF-8 | 608 | 2.921875 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package zombiegamealpha.data.items;
/**
*
* @author spex
*/
public class Melee extends Weapon{
//Declare the variables
private boolean blade;
public Melee(){
super();
blade = false;
... | true |
9fc74071014cca12adf068b0e70189f68acea9ca | Java | Quantmasters/QuantMasters | /app/src/main/java/com/Quant/quantmasters/Profile_Image.java | UTF-8 | 14,430 | 1.695313 | 2 | [] | no_license | package com.Quant.quantmasters;
/**
* Created by Shreyas on 29-08-2016.
*/
import android.app.ProgressDialog;
import android.content.ContentUris;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.graphics.Bitmap;
i... | true |
b3bebd6c911daacd2b08b806176fa1454b85600b | Java | etest2016/ktis | /QMTM_DEMO/src/etest/score/User_StatExamBean.java | UTF-8 | 2,144 | 2 | 2 | [] | no_license | package etest.score;
public class User_StatExamBean
{
private String title;
private String u_avg_basis;
private String yn_p_rank;
private String yn_p_rank_pct;
private String yn_t_avg;
private String yn_t_u_avg;
private String yn_t_max;
private String yn_t_min;
private S... | true |
186887c68d97ebed0cf17619d93463d9abe1b63e | Java | PacktPublishing/React-Native-Cookbook | /Chapter 06/ch6/tip3/NativeModule/android/app/src/main/java/com/nativemodule/HelloManager.java | UTF-8 | 1,997 | 2.328125 | 2 | [
"MIT"
] | permissive | package com.nativemodule;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.Callback;
import com.facebook.react.bridge.Promise;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;... | true |
6db95ea75abe47bc97ef89ca6c69973744c29411 | Java | supajippy/Space-Explorer | /src/Items/Maxpointvie.java | UTF-8 | 313 | 2.40625 | 2 | [] | no_license | package Items;
import Vaisseau.Vaisseau;
public class Maxpointvie extends Items {
public Maxpointvie() {
this.nom="Potion Max De Vie";
}
public void utiliser (Vaisseau vaisseau){
vaisseau.setPtvie(10);
System.out.println( "Vous avez rempli tous vos points de vie");
}
}
| true |
c90f234428f1702e666f193c89ce5aa3756b9a36 | Java | Not-Soti/Pokedex-CollegeProject | /app/src/main/java/com/example/pokedex/netAccess/RestService.java | UTF-8 | 2,568 | 2.59375 | 3 | [] | no_license | package com.example.pokedex.netAccess;
import com.example.pokedex.model.pokeApiModel.AbilityDetail.AbilityDetail;
import com.example.pokedex.model.pokeApiModel.MoveDetail.MoveDetail;
import com.example.pokedex.model.pokeApiModel.PokemonIndex;
import com.example.pokedex.model.pokeApiModel.Pokemon;
import com.example.po... | true |
2f7d781c191ff72ea14df6b5324f31ce17419227 | Java | chaoshendasixiong/netty_tcp_server | /src/test/java/RedisTest/RedisTest.java | UTF-8 | 342 | 1.96875 | 2 | [] | no_license | package RedisTest;
import com.csdsx.redis.RedisUtil;
/**
* Created by xxsy on 2016/3/15.
*/
public class RedisTest {
public static void main(String[] args) throws InterruptedException {
RedisUtil.init();
Thread.sleep(4000);
RedisUtil.set("a", "你好");
System.out.println(RedisUtil.g... | true |
9442db2262b493236a241a073adb7bfcf08eeefe | Java | zihanbobo/Liang | /ww-adm-webapp/src/main/java/com/zb/web/view/admin/AdminSysCtl.java | UTF-8 | 3,715 | 2.046875 | 2 | [] | no_license | package com.zb.web.view.admin;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.s... | true |
871d91575b7693864dc7bff0f80795f053cbf234 | Java | jv-lee/DaMaoKApp | /app/src/main/java/com/lockstudio/sticklocker/view/ColorCircle.java | UTF-8 | 3,096 | 2.390625 | 2 | [] | no_license | package com.lockstudio.sticklocker.view;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.FontMetricsInt;
import android.graphics.Paint.Style;
import android.graphics.Rect;
import android.util.AttributeSet;
impor... | true |
0bd1017fc3ed24957ec69af392200fc3975cb7c3 | Java | lingxiaodshz/JavaBase | /src/designmode/builder/Director.java | UTF-8 | 474 | 2.84375 | 3 | [] | no_license | package designmode.builder;
public class Director {
private Builder builder;
public Director(Builder builder) {
this.builder = builder;
}
public void setBuilder(Builder builder) {
this.builder = builder;
}
public void build() {
if (builder != null) {
build... | true |
5b3be426c2922686ac42a95c9ab7089fc20a85b4 | Java | benjosantony/GrossaryApp | /RedMartTask/app/src/main/java/com/rxandroid/redmarttask/listing/ProductListActivity.java | UTF-8 | 6,509 | 2.171875 | 2 | [] | no_license | package com.rxandroid.redmarttask.listing;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.NonNull;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import andr... | true |
6516c0c0da12d206b9040cf25096f2eed2479f52 | Java | MadMcFly/JavaBasic | /Day16_Demo_List/GoodStudent.java | UTF-8 | 178 | 2.0625 | 2 | [] | no_license | package com.sl.bean;
public class GoodStudent extends Student {
public GoodStudent() {
}
public GoodStudent(String name, int age) {
super(name, age);
}
}
| true |
97532ab5993311980ae9abc6927de7689bd8c733 | Java | xuxiaowei-com-cn/Spring-Boot-WebServices | /src/main/java/cn/com/xuxiaowei/properties/SecurityProperties.java | UTF-8 | 776 | 1.71875 | 2 | [
"Apache-2.0"
] | permissive | package cn.com.xuxiaowei.properties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
* 加载 Security 属性文件
*
* @author xuxiaowei
* @since 0.0.1
*/
@Data
@Component
@ConfigurationProperties(prefix = "security")
publi... | true |
823cee17acb6742dea9a828b6e40c0bf3c657388 | Java | MaksimVeres/FinalTask-29-04-2020 | /src/ua/nure/veres/summaryTask/dao/tariff/TariffDao.java | UTF-8 | 13,716 | 2.171875 | 2 | [] | no_license | package ua.nure.veres.summaryTask.dao.tariff;
import ua.nure.veres.summaryTask.dao.Dao;
import ua.nure.veres.summaryTask.db.DBManager;
import ua.nure.veres.summaryTask.db.Fields;
import ua.nure.veres.summaryTask.db.entity.Tariff;
import ua.nure.veres.summaryTask.exception.AppException;
import ua.nure.veres.summaryTask... | true |
70c7dd6b4c986bb608080c16be1bdc4d60500148 | Java | xamino/mind_server | /src/de/uulm/mi/mind/objects/Interfaces/Saveable.java | UTF-8 | 405 | 2.40625 | 2 | [] | no_license | package de.uulm.mi.mind.objects.Interfaces;
/**
* @author Tamino Hartmann
*/
public interface Saveable extends Data {
/**
* Returns the objects unique identifier
*
* @return the unique identifier for this object or null if it is not applicable.
*/
public String getKey();
public Savea... | true |
bf517cf441d5bff5e2c1d9a474e9e66960bff6d5 | Java | alanl279447/leetcoding | /TestLib/src/main/java/com/example/uber/OccuranceOfTInS.java | UTF-8 | 883 | 3.375 | 3 | [] | no_license | package com.example.uber;
//Q1. Given two strings s and t. Count the number of occurence of t in s as follows. Length of t is 3, increment count when t == s[i]s[i+2]s[i+4]
// e.g s = aabbcc , t = abc . output = 2.
// https://leetcode.com/discuss/interview-question/1066383/Uber-OA
public class Occurance... | true |
56c3ba6a1d574baf4602c6ccbfee5de209ccb4bf | Java | maozemin666/RecyClerViewExample | /app/src/main/java/com/example/recyclerviewexample/android/activity/LoaderActivity.java | UTF-8 | 1,462 | 2.109375 | 2 | [] | no_license | package com.example.recyclerviewexample.android.activity;
import android.app.LoaderManager;
import android.content.Loader;
import android.database.Cursor;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import android.util.Log;
import com.example.recycl... | true |
be90beaea4e6fffda368a01e109ee6f5d91a3f8d | Java | MarsStirner/core | /core/drugstore-tier/src/main/java/misexchange/Organization.java | UTF-8 | 4,499 | 2.046875 | 2 | [] | no_license |
package misexchange;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for Organization complex type.
*
* <p>The following schema fragment specifies the expe... | true |
0640ea49ef5fb0ef105b823350f6e09a98b373a0 | Java | Albert1990/PhotoCafe | /app/src/main/java/com/brain_socket/photocafe/DiagTableNo.java | UTF-8 | 1,945 | 2.3125 | 2 | [] | no_license | package com.brain_socket.photocafe;
import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.view.Window;
import android.widget.EditText;
import java.util.ArrayList;
/**
* Created by Albert on 12/25/16.
*/
public class DiagTableNo extends Dialog implements View.OnClickLis... | true |