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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
7276c5b7538c4e3927453483890bc228029b6b94 | Java | DavinderSinghKharoud/AlgorithmsAndDataStructures | /CSESProblemSet/SubarraySumQueries.java | UTF-8 | 10,761 | 3.34375 | 3 | [] | no_license | import java.io.*;
import java.util.*;
/**
* There is an array consisting of n
* n
* integers. Some values of the array will be updated, and after each update, your task is to report the maximum subarray sum in the array.
*
* Input
*
* The first input line contains integers n
* n
* and m
* m
* : the size o... | true |
cb2fbd50306593b707394a77b3b2a9fc3e77b32e | Java | NotoriousDev/TheHiddenMC | /src/main/java/com/notoriousdev/thehiddenmc/commands/HiddenCommands.java | UTF-8 | 2,171 | 2.40625 | 2 | [] | no_license | package com.notoriousdev.thehiddenmc.commands;
import com.notoriousdev.thehiddenmc.TheHiddenMC;
import com.notoriousdev.thehiddenmc.config.TheHiddenConfig;
import com.notoriousdev.thehiddenmc.utils.Locale;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import... | true |
0b9df3a8d4b13212818fabff9d5de0014214636c | Java | Setriakor/travis-example | /src/main/java/NaughtyStudent.java | UTF-8 | 151 | 2.53125 | 3 | [] | no_license | public class NaughtyStudent extends Student {
@Override
public Double getAverageGrade() {
return super.getAverageGrade()*1.1;
}
}
| true |
e60bfc9817b25044155bdb0f7cf74d4005aeca80 | Java | Coolgiserz/MyGobang | /HelloGeo/src/com/coolcats1209/DataListener.java | GB18030 | 2,949 | 3.015625 | 3 | [] | no_license | package com.coolcats1209;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOExce... | true |
0d5dc199a3da8238ee36adfb7f1ce0ead2de0dee | Java | Qiaogh/Spring | /9.Validation_Data_Binding_and_Type_Conversion/9.4.Bean_manipulation_and_the_BeanWrapper/9.4.2.Built-in_PropertyEditor_implementations/Registering_additional_custom_PropertyEditors/src/main/java/com/qiaogh/editors/SimpleStringTrimmerEditor.java | UTF-8 | 248 | 1.765625 | 2 | [] | no_license | package com.qiaogh.editors;
import org.springframework.beans.propertyeditors.StringTrimmerEditor;
public class SimpleStringTrimmerEditor extends StringTrimmerEditor {
public SimpleStringTrimmerEditor() {
super( ",", true );
}
}
| true |
3cb47166b8598aac6d7c72c3c809f30b1e8cc803 | Java | alekseivoroshilov/chatter_kursov | /app/src/main/java/com/example/chat/Dialog.java | UTF-8 | 4,329 | 2.296875 | 2 | [] | no_license | package com.example.chat;
import android.graphics.Color;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import andr... | true |
c5d604ffda5ff075e491611ae30c3fe0a2cc8ee5 | Java | Brinderjit/Mobile-Development | /brinderjitsingh_COMP304Lab2_Ex1/app/src/main/java/com/example/brindersaini/brinderjitsingh_comp304lab2_ex1/CustomerInfo.java | UTF-8 | 6,207 | 2.109375 | 2 | [] | no_license | package com.example.brindersaini.brinderjitsingh_comp304lab2_ex1;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;
import android.view.View;
import android.widget.CheckBox;
import android.widget.EditText... | true |
c97861977551764891897fa594ee053b4f6287b0 | Java | ShirleyYeruta/Renta-Car | /renta-car/src/main/java/py/com/rentacar/models/Marca.java | UTF-8 | 1,236 | 2.328125 | 2 | [] | no_license | package py.com.rentacar.models;
import javax.persistence.*;
import java.io.Serializable;
import java.util.List;
/**
* @author Miguel Martinez
**/
@Entity
@Table(name = "Marca")
public class Marca implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
... | true |
476b80769b98f93c6243058c0cb2181bb45382b2 | Java | hanhanhanxu/RenAiClub | /src/cn/renai/pojo/Modular.java | UTF-8 | 650 | 2.21875 | 2 | [] | no_license | package cn.renai.pojo;
public class Modular {
private String mid;
private String name;
private String description;
public String getMid() {
return mid;
}
public void setMid(String mid) {
this.mid = mid == null ? null : mid.trim();
}
public String getName() {
... | true |
0610c723268bdd9a70d18c22444687d6f813de10 | Java | luciano-coelho/Projeto-Hibernate | /Sistema Vendas/src/br/com/vendas/domain/Produto.java | ISO-8859-2 | 2,562 | 2.53125 | 3 | [] | no_license | package br.com.vendas.domain;
import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinCol... | true |
dd32a3f95704a6b61dd062d86a40691702d4aa3b | Java | RenzoMarangon/juegoNaruto_Prog1 | /ProyectoFinal_P1/src/proyecto/Colision.java | UTF-8 | 5,613 | 2.671875 | 3 | [] | no_license | package proyecto;
public class Colision {
public static boolean colisionRasegan(EnemigoNinja ninja , Rasengan rasengan ) {
int minimoRanseganX = rasengan.getX() - ( rasengan.getAncho()/2 ) ;
int maximoRanseganX = rasengan.getX() + ( rasengan.getAncho()/2 ) ;
int minimoRanseganY ... | true |
7f9af5a98b3aca9d2436a24b799aff1b16a7add3 | Java | PoirotAGH/yggdrasil | /src/main/java/Bet.java | UTF-8 | 434 | 1.71875 | 2 | [] | no_license | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Bet {
@JsonProperty("wonamount")
String wonamount;
@JsonProperty("eventdata")
EventData eventdata;
@JsonIgnoreProperties(igno... | true |
9bb4615ccf34b85c04ca392992e4bac9e41f4935 | Java | ZdanovichAnastasia/Distributed-information-systems_P1 | /lab6/src/main/java/DI/DIContainer.java | UTF-8 | 580 | 2.359375 | 2 | [] | no_license | package DI;
import BusinessLogic.BankService;
import BusinessLogicModels.IBankService;
import javax.xml.rpc.ServiceException;
import java.net.MalformedURLException;
public class DIContainer {
private static DIContainer container;
private DIContainer(){}
public static DIContainer getInstance(... | true |
1e4fb154e06b59ee959bd523631c3650b3e52d0a | Java | Cocomile97/Assignment8 | /src/main/java/ac/za/cput/domain/Subject.java | UTF-8 | 1,234 | 2.953125 | 3 | [] | no_license | package ac.za.cput.domain;
public class Subject {
private String subjectId, subjectName;
private Subject(){}
private Subject(Builder builder) {
this.subjectId = builder.subjectId;
this.subjectName = builder.subjectName;
}
public String getSubjectId() {
return subjectId;
... | true |
51d3bed76582d47557a78b9fed4bcce6d39590a9 | Java | Lingy12/ip | /src/main/java/duke/tool/TaskList.java | UTF-8 | 3,213 | 3.5625 | 4 | [] | no_license | package duke.tool;
import java.util.ArrayList;
import duke.exception.TaskExistException;
import duke.task.Task;
/**
* Represents the task list stored in Duke system.
*/
public class TaskList {
/**
* List of tasks stored in system
*/
private ArrayList<Task> taskList;
/**
* Creates a t... | true |
5f848775b8827090e528c18f7c54a5e3e5d315f7 | Java | Pradeep72767/MyKrishiMall | /app/src/main/java/com/example/mykrishimall/ConfirmFinalOrderActivity.java | UTF-8 | 5,379 | 2.171875 | 2 | [] | no_license | package com.example.mykrishimall;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.graphics.YuvImage;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget... | true |
517ca864b591ba9679eabdeeb01234e622864169 | Java | Gauri17k/automation-repository | /BasicCoreJava/src/fileHandler/ReadExcel.java | UTF-8 | 934 | 2.609375 | 3 | [] | no_license | package fileHandler;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
public... | true |
4936f07ed8db31561105a32e46282d767e06f2ea | Java | travel-cloud/java-memcached-client | /src/main/java/net/spy/memcached/internal/HttpFuture.java | UTF-8 | 4,268 | 2.015625 | 2 | [
"MIT"
] | permissive | /**
* Copyright (C) 2009-2011 Couchbase, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merg... | true |
e8015292e931b6142ca0f7440b4d9b1052f235c7 | Java | AlexSlow/GSM_SERVER | /main/java/nio3/kbs/gsm_scan_server/factory/AlgoritmFactory.java | UTF-8 | 263 | 1.734375 | 2 | [] | no_license | package nio3.kbs.gsm_scan_server.factory;
import nio3.kbs.gsm_scan_server.algoritm.Algoritm;
import org.springframework.stereotype.Component;
@Component
public class AlgoritmFactory {
public Algoritm factory()
{
return null;
}
}
| true |
d781b49550b7b62e5bada36e2f1094330f2c3db1 | Java | Cascading/cascading | /cascading-xml/src/test/java/cascading/operation/xml/XPathTest.java | UTF-8 | 4,535 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2007-2017 Xplenty, Inc. All Rights Reserved.
*
* Project and contact information: http://www.cascading.org/
*
* This file is part of the Cascading project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... | true |
6af00452312e295f722acc379a3f822b08b0dc64 | Java | Ahmeda3001/LSP | /HelloWorld/src/org/howard/edu/lsp/assignment7/tollbooth/AlleghenyTollBooth.java | UTF-8 | 1,740 | 3.3125 | 3 | [] | no_license | package org.howard.edu.lsp.assignment7.tollbooth;
/**
* AlleghenyTollBooth class which implements the TollBooth interface
* @author ahmed
*
*/
public class AlleghenyTollBooth implements TollBooth {
private int totalTolls = 0;
private int totalTrucks = 0;
/**
* getter for the totalTolls attribute
* @retu... | true |
2c403dbe964fc1de1c5cfe7561d86a756ec79c62 | Java | Iridium232/settlers-of-catan | /src/shared/communication/toServer/moves/BuildRoad.java | UTF-8 | 850 | 2.671875 | 3 | [] | no_license | package shared.communication.toServer.moves;
import shared.communication.EdgeLocation;
/**
* Michael Rhodes
* CS 340
* Section 2
* Team 10
*
* buildRoad command object
*/
public class BuildRoad extends Command {
private EdgeLocation roadLocation;
/** Whether this is placed for free (setup) */
priv... | true |
e4c7b6ff25ca502cb966ac3e9864c98dbb809f4f | Java | lyk1576070851/bytemarket | /src/main/java/com/android/bytemarket/common/FileUpload.java | UTF-8 | 2,775 | 2.28125 | 2 | [] | no_license | package com.android.bytemarket.common;
import com.google.gson.Gson;
import com.qiniu.common.QiniuException;
import com.qiniu.http.Response;
import com.qiniu.storage.Configuration;
import com.qiniu.storage.Region;
import com.qiniu.storage.UploadManager;
import com.qiniu.storage.model.DefaultPutRet;
import com.qiniu.uti... | true |
b747d0dd54b11ebe0eace3c25f66b24785e957c4 | Java | biubiubiiu/hust | /3-大二上/面向对象课设-植物大战僵尸/PVZ/src/game/model/plants/SunSmall.java | UTF-8 | 299 | 2.5 | 2 | [
"MIT"
] | permissive | package game.model.plants;
class SunSmall extends Sun
{
SunSmall(int x, int y_from, int y_to) // size - 阳光的尺寸,0为正常,1为小阳光
{
super(x, y_from, y_to);
//System.out.println("生成小阳光");
setName("sun_s");
contain = 15;
}
}
| true |
b8b8d1a75d154d248f8a49b68c57369ea7e56614 | Java | Kuangcp/java-wheel | /spring/src/main/java/com/github/kuangcp/spring/beans/factory/xml/XMLPropertyConstants.java | UTF-8 | 708 | 1.632813 | 2 | [] | no_license | package com.github.kuangcp.spring.beans.factory.xml;
/**
* @author https://github.com/kuangcp on 2019-12-06 07:56
*/
public interface XMLPropertyConstants {
String ID_ATTRIBUTE = "id";
String CLASS_ATTRIBUTE = "class";
String SCOPE_ATTRIBUTE = "scope";
String PROPERTY_ATTRIBUTE = "property";
String REF_AT... | true |
375fcfd3c91b8e37fa226a34ebdaefcbb316e075 | Java | ybz216/juzu | /plugins/shiro/src/main/java/juzu/plugin/shiro/impl/common/RememberMeUtil.java | UTF-8 | 6,680 | 1.851563 | 2 | [] | no_license | /*
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will b... | true |
a2f99f0f7097beab03e290565d9104279c43d5ce | Java | victorangelo12/dddnac1e2 | /Nac1e2Ddd/src/br/com/fiap/ads/ddd/dao/VeiculoDAO.java | ISO-8859-1 | 3,123 | 2.71875 | 3 | [] | no_license | package br.com.fiap.ads.ddd.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import br.com.fiap.ads.ddd.to.Veiculo;
/**
*
* @author Victor Angelo RM 77917 e Nicole Bono RM76188
*
*/
public class VeiculoDAO {
// INCLUIR VEICULO
/**
* Inclui ... | true |
90556129c0e43482da41af078e9afba11c281255 | Java | bbblu/camping-backend | /src/main/java/tw/edu/ntub/imd/camping/dto/file/excel/column/Column.java | UTF-8 | 772 | 2.515625 | 3 | [] | no_license | package tw.edu.ntub.imd.camping.dto.file.excel.column;
import tw.edu.ntub.imd.camping.dto.file.excel.cell.Cell;
import tw.edu.ntub.imd.camping.dto.file.excel.range.Range;
import tw.edu.ntub.imd.camping.dto.file.excel.sheet.Sheet;
import tw.edu.ntub.imd.camping.dto.file.excel.workbook.Workbook;
public interface Column... | true |
40b412ec5cc548f30faec82419200c20d50b3dda | Java | tesseract-job/scepter | /spring-boot-starter-scepter-server/src/main/java/com/kevin/scepter/springboot/server/config/ServerProperties.java | UTF-8 | 1,705 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | package com.kevin.scepter.springboot.server.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* @author: kevin
* @description: 服务端配置项目
* @updateRemark: 修改内容(每次大改都要写修改内容)
* @date: 2019-08-05 14:52
*/
@ConfigurationProperties(prefix = "socket.server")
public class ServerProper... | true |
6ea4ba510792fabf505c726ff9c7d5beab2d3046 | Java | lsylive/DataAnalysis | /analysisTemplate/src/com/liusy/analysismodel/template/actions/UndoRetargetAction.java | UTF-8 | 751 | 1.882813 | 2 | [] | no_license | package com.liusy.analysismodel.template.actions;
import java.text.MessageFormat;
import org.eclipse.ui.ISharedImages;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.actions.LabelRetargetAction;
import com.liusy.analysis.template.model.util.StringUtil;
public class UndoRetargetAction extends LabelRetargetA... | true |
ebf6eb6f24c8a97c8962ca253fbd934598ddca98 | Java | serhan-yilmaz/sygfx | /src/sygfx/ScaledGraphics.java | UTF-8 | 13,082 | 2.34375 | 2 | [] | no_license | /*
* Copyright (C) 2016 Serhan Yılmaz
*
* This file is part of FamilyTree
*
* FamilyTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any late... | true |
f9dba64fa97e9d8a9f093258e5218e89f26b2ba4 | Java | arthursakemi/algoritmos2 | /Algoritmos2/src/recurssion/Factorial.java | UTF-8 | 714 | 3.296875 | 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 recurssion;
/**
*
* @author arthur.msakemi
*/
public class Factorial {
public static void main(String[] args) {
... | true |
64d3ac00f63259e4e763e9ff18bbab9c0452763b | Java | TMlulu/examSystem | /src/main/java/bean/ProgramStageDiffsureBase.java | UTF-8 | 1,093 | 2.53125 | 3 | [] | no_license | package bean;
public class ProgramStageDiffsureBase {
public ProgramStageDiffsureBase(){}
public ProgramStageDiffsureBase(String stunum, String title_diff, int getscore) {
this.stunum = stunum;
this.title_diff = title_diff;
this.getscore = getscore;
}
public String getStunum() ... | true |
b2716f20712598058445b82acdafa53d45fd8e7c | Java | sadaf0106khan/DS-BinaryTrees--Algo | /SearchElementInBinaryTree.java | UTF-8 | 1,054 | 3.4375 | 3 | [] | no_license | package trees;
import java.util.LinkedList;
import java.util.Queue;
class SearchInBinaryTree{
public Node getNode(int data) {
Node a=new Node();
a.data=data;
a.left=null;
a.rigth=null;
return a;
}
public boolean isPresent(Node node,int data) {
if(node==null)
return false;
Queue<Node> q=new Li... | true |
7d7d8ee5a3c67840268f6b445662f1b277088c90 | Java | yyyyuan/leetcode | /src/RemoveDuplicateLetters/Greedy.java | UTF-8 | 734 | 3.03125 | 3 | [] | no_license | class Solution {
public String removeDuplicateLetters(String s) {
char[] chs = s.toCharArray();
return helper(s);
}
private String helper(String s) {
if (s.length() == 0) return "";
StringBuilder sb = new StringBuilder();
int[] cnt = new int[26];
char[] c... | true |
1411f8910f350da5519fa6c2c7be4b0e8cca1c57 | Java | santiago-a-vidal/JSpIRIT | /src/spirit/priotization/rankings/agglomerations/RankingBasedOnlyOnHistoryENOM.java | UTF-8 | 1,120 | 2.390625 | 2 | [] | no_license | package spirit.priotization.rankings.agglomerations;
import java.util.Iterator;
import spirit.core.agglomerations.AgglomerationModel;
import spirit.core.smells.CodeSmell;
import spirit.priotization.criteria.HistoryENOMCriteria;
import spirit.priotization.rankings.RankingCalculatorForAgglomerations;
import spirit.prio... | true |
193b6290648326f27d4d6f126b0f2b72596b074e | Java | epamteam6/RestaurantWeb | /src/main/java/com/service/LanguageService.java | UTF-8 | 3,095 | 2.703125 | 3 | [] | no_license | package com.service;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.Charset;
import java.util.Properties;
public class LanguageService {
private static LanguageService instance = new LanguageService();
public static LanguageService getIn... | true |
dae6b7007126d89951957f8343d7c111fcc08525 | Java | hasleo/mypojo | /javaUtil/2.0/util/erwins/util/guava/ManyToOneStraregy.java | UTF-8 | 636 | 2.234375 | 2 | [] | no_license |
package erwins.util.guava;
import java.lang.annotation.Annotation;
import javax.persistence.ManyToOne;
import com.google.gson.ExclusionStrategy;
import com.google.gson.FieldAttributes;
/**
* ManyToOne의 기본구현.
* @ManyToOne 어노테이션이 있으면 컨버팅하지 않는다.
* */
public class ManyToOneStraregy implements Excl... | true |
ceafe71788f0b6319c81312b871314f14c16822f | Java | JinHoooooou/codeWarsChallenge | /src/test/java/codeWars/kyu6/numericals_of_a_string_20211012/JomoPipiTest.java | UTF-8 | 710 | 2.75 | 3 | [] | no_license | package codeWars.kyu6.numericals_of_a_string_20211012;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
class JomoPipiTest {
@Test
@DisplayName("test should return 1112111121311 when inpu... | true |
dbde704b721a6d8d04b13e59a52f13cbe4684502 | Java | mikemanski/text_to_PDF | /src/pdf_doc/PdfDoc.java | UTF-8 | 2,274 | 3.09375 | 3 | [] | no_license | package pdf_doc;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import com.itextpdf.text.BaseColor;
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.Font;
import com.itextpdf.text.FontFactory;
import com.itextpdf.text.Paragraph;
import com.... | true |
dfc1e6cf0c5a74abff14b6c6270b6abf81efa830 | Java | haiderali007/CheekyMonkey | /app/src/main/java/com/entrada/cheekyMonkey/steward/order/FetchOrderTask.java | UTF-8 | 4,399 | 1.859375 | 2 | [] | no_license | package com.entrada.cheekyMonkey.steward.order;
import android.content.Context;
import android.os.AsyncTask;
import android.view.View;
import android.widget.ProgressBar;
import com.entrada.cheekyMonkey.steward.discount.DiscountLayout;
import com.entrada.cheekyMonkey.network.BaseNetwork;
import com.entrada.cheekyMonke... | true |
e73b022ecb9cd171111092f2b75425a967adaaae | Java | AbhishekShrinath/SpringBoot_WebApplication | /employee_Management_System/src/main/java/com/employee/services/UserServices.java | UTF-8 | 361 | 1.726563 | 2 | [] | no_license | package com.employee.services;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.stereotype.Component;
import com.employee.model.User;
import com.employee.web.dto.UserRegistrationDto;
public interface UserServices extends UserDetailsService {
User save(Us... | true |
74f2a6e0645929b568afff0e49a3e1c78491a17d | Java | RaidTheWeb/Nexus-Spelunker | /src/tech/raidtheweb/java/rogue/HealthEffect.java | UTF-8 | 442 | 2.46875 | 2 | [] | no_license | package tech.raidtheweb.java.rogue;
public class HealthEffect extends Effect {
/**
*
*/
private static final long serialVersionUID = -2901980825039054224L;
public HealthEffect(int duration) {
super(duration);
}
public void start(Creature creature){
if (creature.hp() == creature.maxHp())
... | true |
1ac39911309d1ffeb5b5dcfffea76890835c91d8 | Java | sureshreddy94/Warranty | /app/src/main/java/com/krypto/blocks/warranty/RegisterProductsActivity.java | UTF-8 | 1,665 | 1.882813 | 2 | [] | no_license | package com.krypto.blocks.warranty;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widge... | true |
96af283fb80d359395e9dbcafac8b382e7a8c17e | Java | EgorSigolaev/YoutubeExtractor | /youtube_extractor/src/main/java/com/yash/youtube_extractor/models/VideoDetails.java | UTF-8 | 675 | 2.390625 | 2 | [
"MIT"
] | permissive | package com.yash.youtube_extractor.models;
public class VideoDetails {
private StreamingData streamingData;
private VideoData videoData;
public VideoDetails(StreamingData streamingData, VideoData videoData) {
this.streamingData = streamingData;
this.videoData = videoData;
}
public... | true |
d5a906aa3f05882cee65f77384783865c91cf1a6 | Java | webguitoolkit/wgt-ui | /src/main/java/org/webguitoolkit/ui/controls/table/renderer/ImageColumnRenderer.java | UTF-8 | 4,016 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | /*
Copyright 2008 Endress+Hauser Infoserve GmbH&Co KG
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to ... | true |
a23a0e45d9cdfc8e261ef1e3f6cd3d1e7f31066f | Java | LucaMarcellino/Lab09 | /src/main/java/it/polito/tdp/borders/FXMLController.java | UTF-8 | 2,680 | 2.375 | 2 | [] | no_license |
package it.polito.tdp.borders;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.ResourceBundle;
import it.polito.tdp.borders.model.Country;
import it.polito.tdp.borders.model.Model;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
i... | true |
8ac764b4a8101ada5ec8a0627f4b98afcd53a954 | Java | UnconventionalThinking/hierarchy | /Code/Hierarchy/src/net/unconventionalthinking/matrix/metacompiler/codegen/AnnotationHandler_CodeGenerator_AnnotationBlockStmt__Filters.java | UTF-8 | 2,733 | 2.046875 | 2 | [] | no_license | /* Copyright 2012, 2013 Unconventional Thinking
*
* This file is part of Hierarchy.
*
* Hierarchy is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of the License, or (at your option) any la... | true |
709d34e8b411ebf473418a9ac0eeb89cded2d3dd | Java | ALAxHxC/AndroidSQL | /app/src/main/java/org/gestioncatalogo/controlador/persistencia/ControladorProducto.java | UTF-8 | 4,252 | 2.453125 | 2 | [] | no_license | package org.gestioncatalogo.controlador.persistencia;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import org.gestioncatalogo.R;
import org.gestioncatalogo.modelo.Producto;
import java.uti... | true |
1332820968875ff906794242973ad373fc2eab4b | Java | DBrouillet/Clue | /src/tests/gameActionTests.java | UTF-8 | 14,580 | 3.171875 | 3 | [] | no_license | package tests;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.Map;
import org.junit.BeforeClass;
import org.junit.Test;
import clueGame.Board;
import clueGame.BoardCell;
import clueGame.Card;
import clueGame.CardType;
import clueGame.ComputerPlayer;
import clueGame.Player;
import clu... | true |
52f0b8d6ff3e6cb163d755fe10be5a1f7694840b | Java | yshrdbrn/TeamXMatch | /src/BackEnd/AI.java | UTF-8 | 2,773 | 3.671875 | 4 | [] | no_license | package BackEnd;
import java.util.ArrayList;
import java.util.Collections;
/**
* Class used for all the AI features needed for the app
* It provides an API for finding 4 other people to play with for a certain user
*/
public class AI {
/**
* Finds best matches for the user requesting players to play with
... | true |
2c089616e43817a58ec4590195b4ba1bdc2d8250 | Java | peterhchen/100-java-adv | /src_ch01/StackProj/src/StackDemo.java | UTF-8 | 885 | 3.59375 | 4 | [] | no_license | import java.util.*;
public class StackDemo {
static void showpush (Stack st, int a) {
st.push (new Integer (a));
System.out.println ("push (" + a + ")");
System.out.println ("Stack: " + st);
}
static void showpop (Stack st) {
System.out.print ("pop -> ");
Int... | true |
a3658ccf8a18ad01e2916c4f7246c32945f55c25 | Java | Bairei/crudespringmvccrud | /src/main/java/com/bairei/crudespringmvccrud/services/VisitServiceImpl.java | UTF-8 | 3,482 | 2.5 | 2 | [] | no_license | package com.bairei.crudespringmvccrud.services;
import com.bairei.crudespringmvccrud.domain.User;
import com.bairei.crudespringmvccrud.domain.Visit;
import com.bairei.crudespringmvccrud.repositories.VisitRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.an... | true |
d567f8e3310244655b5b755da0d01a3f075f580c | Java | wangshup/EServer | /EGameServer/src/main/java/com/dd/game/core/world/map/Point.java | UTF-8 | 3,428 | 3.109375 | 3 | [] | no_license | package com.dd.game.core.world.map;
import static java.lang.Math.max;
import static java.lang.Math.min;
/**
* @program: server
* @description: point
* @author: wangshupeng
* @create: 2019-01-04 17:07
**/
public class Point {
private int x;
private int y;
public Point(int x, int y) {
this.x =... | true |
e1de44b27780d1e051be052594441d843226140d | Java | P79N6A/parking | /zhuyi-parking/zhuyi-parking-modules/zhuyi-parking-tool/zhuyi-parking-tool-api-java/src/main/java/com/zhuyitech/parking/tool/dto/request/notification/NotificationSendRequestDto.java | UTF-8 | 1,641 | 1.976563 | 2 | [] | no_license | package com.zhuyitech.parking.tool.dto.request.notification;
import com.alibaba.fastjson.JSONObject;
import com.scapegoat.infrastructure.core.dto.basic.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util... | true |
59a8f464205902c34eb50394dc8cd1d1f8b14cde | Java | lorran-mariuba/test-api-rest-spring-boot | /src/main/java/com/example/Car.java | UTF-8 | 2,111 | 2.765625 | 3 | [] | no_license | package com.example;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
public class... | true |
765a3d5f812457e50abadf729f29178669c0b00f | Java | kennethrsps/helwyrrsps | /src/com/rs/game/npc/others/CommandZombie.java | UTF-8 | 951 | 2.5 | 2 | [] | no_license | package com.rs.game.npc.others;
import com.rs.game.World;
import com.rs.game.WorldTile;
import com.rs.game.item.Item;
import com.rs.game.npc.Drop;
import com.rs.game.npc.NPC;
import com.rs.game.player.Player;
@SuppressWarnings("serial")
public class CommandZombie extends NPC {
private Item Rareitem;
public Command... | true |
ff3e29b8bc01a2003c2d346db55ed4c06ff2caf5 | Java | chljapan/KayaSmart | /src/main/java/org/isis/gme/bon/JBuilderModelReference.java | UTF-8 | 3,695 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package org.isis.gme.bon;
import java.util.*;
import org.isis.gme.mga.*;
import org.isis.gme.meta.*;
public class JBuilderModelReference extends JBuilderReference
{
protected Hashtable<String, JBuilderReferencePort> objectmap;
protected Vector<JBuilderReferencePort> refPorts;
public JBuilderModelReferen... | true |
7e277d07d8a15d8bc4ee96d9ba4fb2d661df3a08 | Java | daalft/SandhiResolver | /SandhiSolver/src/general/Rule.java | UTF-8 | 1,804 | 3.703125 | 4 | [] | no_license | package general;
import java.util.List;
/**
* Represents a replacement rule with a left hand side indicating what to replace (regex)
* and the right hand side indicating with what to replace (regex with back reference)
* @author David
*
*/
public class Rule {
//////////////////////////////////////... | true |
dd89959aa70b9a50de98503247f58fcb5fecb68f | Java | 4a256b6b3e7t3e8b7t9q7t/jmitm2 | /com/sshtools/j2ssh/ui/AuthenticationDialog.java | UTF-8 | 8,024 | 2.625 | 3 | [] | no_license | /*
* Sshtools - Java SSH2 API
*
* Copyright (C) 2002 Lee David Painter.
*
* Written by: 2002 Lee David Painter <lee@sshtools.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public License
* as published by the Free Software Fou... | true |
b14781ef220240e4299def697035383d3c7fe010 | Java | FBDC-NTI/Bahiana | /br.edu.bahiana.core/src/br/edu/bahiana/core/datainterfaces/AccessDataObjectList.java | UTF-8 | 251 | 2.140625 | 2 | [] | no_license | package br.edu.bahiana.core.datainterfaces;
import java.util.List;
public interface AccessDataObjectList<T> {
List<T> getObjects();
List<T> getObjects(int size);
List<T> getObjects(int start, int size);
T getObject(long id, Class<T> clazz);
}
| true |
bc221addd3cb9ce73085d4358c8078e0dac4db6c | Java | weimeiche/CustomView | /app/src/main/java/com/navyliu/customview/constants/URLs.java | UTF-8 | 568 | 1.867188 | 2 | [] | no_license | package com.navyliu.customview.constants;
/**
*
* @Title: URLs.java
* @Description: 应用所有需要访问的网络URL
* @author: navyLiu
* @data: 2016-6-16 下午5:49:11
* @version: V1.0
*/
public class URLs {
/***访问路径***/
public static final String BASE_PATH = "http://192.168.1.101/";
public static final String URL_PATH ... | true |
ab2c7825f77b645535322e1f15b1daa7bf7bfb49 | Java | mafeosza/alertasTempranas_android | /android/src/gnu/kawa/xml/Document$DocReference.java | UTF-8 | 599 | 1.695313 | 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 gnu.kawa.xml;
import gnu.text.Path;
import java.lang.ref.ReferenceQueue;
import java.lang.ref.SoftReference;
// Referenced classes of p... | true |
c8cd9fd3bd4bffedc621d1d31cea142ac5c39875 | Java | Schernigin/java-a-to-z | /OOP/tracker/src/main/java/ru/schernigin/models/Comments.java | UTF-8 | 838 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | package ru.schernigin.models;
/**
* the Class Comments.
* @author Schernigin.
* @since 21.01.2017
* @version 1.0
*/
public class Comments {
/*
* the private fild for class Commments.
*/
private String comment;
/**
* Default constructor for the class Comment.
*/
public Comments() {
}
/**
... | true |
d0dacee854601cf29a9a96470a0adc6751dfaad2 | Java | lucasSaavedra123/programacionOrientadaAObjetos1 | /Java/unidad3-objetosYClasesEnJava/ejercicio2-piopioMensajero/src/structure/Main.java | UTF-8 | 881 | 2.796875 | 3 | [] | no_license | package structure;
import domain.*;
public class Main {
public static void main(String [] args) {
Lugar lugarUno = new Lugar("Buenos Aires", 0);
Lugar lugarDos = new Lugar("Chascomús", 122);
Lugar lugarTres = new Lugar("Lezama", 156);
Lugar lugarCuatro = new Lugar("Dolores", 210);
Lugar lugarCinco = new Lu... | true |
0297619ccb7af5821dff8242ccac3a77960e4485 | Java | ldramirez/transparencia | /transparencia/src/modelo/Gestionador.java | UTF-8 | 4,492 | 1.9375 | 2 | [] | no_license | package modelo;
import java.io.Serializable;
import javax.persistence.*;
/**
* The persistent class for the gestionador database table.
*
*/
@Entity
@Table(name="GESTIONADOR")
@NamedQueries({
@NamedQuery(name="Gestionador.findAll", query="SELECT g FROM Gestionador g"),
@NamedQuery(name = "Gestionador.findByCedu... | true |
57ee4926034c0bf241ef9776373c9121280d9185 | Java | zhongxingyu/Seer | /Diff-Raw-Data/6/6_514381e107e48007a95c1beaffee0446b0dc092f/ImportLibrariesListTest/6_514381e107e48007a95c1beaffee0446b0dc092f_ImportLibrariesListTest_t.java | UTF-8 | 1,562 | 2.078125 | 2 | [] | no_license | package net.sf.eclipsefp.haskell.core.test.project;
import java.io.File;
import org.eclipse.core.resources.IProject;
import org.osgi.service.prefs.Preferences;
import junit.framework.TestCase;
import static org.easymock.EasyMock.*;
import net.sf.eclipsefp.haskell.core.project.IProjectPropertiesEvent;
impo... | true |
769c480c4726aa83628f65c8942945a165f3264f | Java | ronanwatkins/Princeton_StdLib_2D_Side_Scroller | /src/Game.java | UTF-8 | 2,848 | 2.984375 | 3 | [] | no_license | import java.util.Random;
/**
* Created by lxn on 30/12/2016.
*/
public class Game{
static Bob bob;
static int bobx = 100, boby = 125, bobCount = 0, bobStage = 0, playerX = 0, playerX2 = 0;
static int backgroundX1 = 600, backgroundX2 = 0;
static int[] bottomblockx = new int[9];
static boolean go... | true |
ddefae181f4c63e4ebe2a5a66ac65db97ee98297 | Java | fashionzzZ/fashion-study | /fashion-redis/src/main/java/com/fashion/redis/FashionRedisApplication.java | UTF-8 | 334 | 1.507813 | 2 | [] | no_license | package com.fashion.redis;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class FashionRedisApplication {
public static void main(String[] args) {
SpringApplication.run(FashionRedisApplication.class, ar... | true |
28ad0714169b4220d994e609b80e0e3be18e9a3d | Java | keval02/OneSidedCab | /app/src/main/java/com/onesidedcabs/FeedbackFormActivity.java | UTF-8 | 11,551 | 1.742188 | 2 | [] | no_license | package com.onesidedcabs;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.AsyncTask;
import android.support.annotation.IdRes;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.... | true |
7829e7505287d14d45423a425e0ee397838bf1d7 | Java | rmpestano/swagger-addon | /src/main/java/org/jboss/swagger/addon/ui/SwaggerGenerateCommand.java | UTF-8 | 1,941 | 1.976563 | 2 | [] | no_license | /**
* Copyright 2014 Red Hat, Inc. and/or its affiliates.
* <p/>
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.jboss.swagger.addon.ui;
import javax.inject.Inject;
import org.jboss.forge.addon.facets.constraints.FacetConstraint;
im... | true |
44e4644883a0bc05e5a0a67510b9634558425f16 | Java | MauricioAguilera11/Proyecto-EDDII | /src/proyecto/eddii/ProyectoEDDII.java | UTF-8 | 895 | 3.09375 | 3 | [
"MIT"
] | permissive | /*
* 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 proyecto.eddii;
import java.util.Scanner;
/**
*
* @author migue
*/
public class ProyectoEDDII {
/**
* @param arg... | true |
6e316cfa1b7f508132d298ff8ff864d3ec05426f | Java | vickysongang/Founder | /AdminPlatformApplication/ViewController/src/com/zypg/cms/admin/view/bean/UserManageManagedBean.java | UTF-8 | 15,687 | 1.648438 | 2 | [] | no_license | package com.zypg.cms.admin.view.bean;
import com.zypg.cms.admin.view.util.CustomManagedBean;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import javax.faces.application.FacesMessage;
import javax.faces.event.ActionEvent... | true |
e20c3078f32f165fbe14bd6eea951deee4293512 | Java | giampieer/proyectoventas_jsp | /src/java/JPA/Factura.java | UTF-8 | 3,984 | 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 JPA;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.pers... | true |
a6e2125e91bf9224a632e3ad2b71ff1ab308d0e7 | Java | itaf790/electronicapp | /app/src/main/java/com/app/electronicapp/ImageListAdapter.java | UTF-8 | 3,376 | 2.34375 | 2 | [] | no_license | package com.app.electronicapp;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Build;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextVie... | true |
bcd0c315e38abb91c044c8ff4fc7cf7ea2bf3b27 | Java | cha63506/CompSecurity | /facebook-messenger/src/com/facebook/common/executors/d.java | UTF-8 | 969 | 1.601563 | 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.facebook.common.executors;
import android.app.ProgressDialog;
import android.content.Context;
import com.google.common.d.a.i;
import... | true |
66af30d620d9f5a248258649b374351256fef220 | Java | 7373/enterprise-information-exchange-and-sharing-system | /src/main/java/com/src/xt/yr/model/Subcapital.java | UTF-8 | 7,602 | 2.15625 | 2 | [] | no_license | /**
* Copyright© 2003-2016 浙江汇信科技有限公司, All Rights Reserved. <br/>
*/
package com.icinfo.cs.yr.model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import com.fasterxml.jackson.annotation... | true |
103992b5191425bce04bdd9d97fbce8d9941017d | Java | alexdinisor98/VCS | /vcs/Vcs.java | UTF-8 | 2,793 | 2.46875 | 2 | [] | no_license | package vcs;
import filesystem.FileSystemOperation;
import filesystem.FileSystemSnapshot;
import utils.OutputWriter;
import utils.Visitor;
import java.util.LinkedList;
public final class Vcs implements Visitor {
private final OutputWriter outputWriter;
public OutputWriter getOutputWriter() {
return ... | true |
a4bd691daf0935e48c182d567893bfb53882c659 | Java | sidhd8203/TRUTS2_Web_Project | /PetProduct/src/controller/Pet_PdDAO.java | UTF-8 | 3,894 | 2.453125 | 2 | [] | no_license | package controller;
import static controller.JdbcUtils.*;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import dto.Pet_PdDTO;
public class Pet_PdDAO {
public int insertPet_Pd(Pet_PdDTO dto) {
... | true |
cef19e3e5ceef380cd88c6c61ab484f15f84d5b4 | Java | GabrielDiasgd/Store | /src/main/java/com/store/cashier/controller/CashierController.java | UTF-8 | 924 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | package com.store.cashier.controller;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import o... | true |
156aba4092836e1b63e328ec5c892a3732fa5cb6 | Java | kalnee/trivor | /gateway/src/main/java/org/kalnee/trivor/gateway/repository/TranscriptRepository.java | UTF-8 | 437 | 1.992188 | 2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package org.kalnee.trivor.gateway.repository;
import org.kalnee.trivor.gateway.domain.Transcript;
import org.springframework.stereotype.Repository;
import org.springframework.data.jpa.repository.*;
/**
* Spring Data JPA repository for the Transcript entity.
*/
@SuppressWarnings("unused")
@Repository
public interf... | true |
26784d8df2f94637b981f03e32f17f2d739ac172 | Java | acabaud1/MyConfinementApp | /app/src/main/java/com/ynov/myconfinement/ui/agenda/AgendaFragment.java | UTF-8 | 3,700 | 2.078125 | 2 | [] | no_license | package com.ynov.myconfinement.ui.agenda;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.provider.MediaStore;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import andr... | true |
f2daa51550badd1c9eaad40de5f8e9191a7eae45 | Java | wumaoland/ms | /src/main/java/mybatis/entity/SysUser.java | UTF-8 | 2,978 | 2.390625 | 2 | [] | no_license | package mybatis.entity;
import java.util.Date;
import javax.persistence.*;
@Table(name = "sys_user")
public class SysUser {
/**
* 用户id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
/**
* 用户名
*/
@Column(name = "user_name")
private String us... | true |
965b912784a952b16c775e71091b288738ac11c5 | Java | ZHENGJerry/tyhdistributor | /src/main/java/cn/tongyouhui/control/dao/RegisterMapper.java | UTF-8 | 1,010 | 2.0625 | 2 | [] | no_license | package cn.tongyouhui.control.dao;
import cn.tongyouhui.control.vo.ControlRegister;
import cn.tongyouhui.control.vo.LoginVo;
public interface RegisterMapper {
//向登陆表中插入信息
public void register_base_info(ControlRegister controlRegister);
//向企业表中插入数据
public void register_company_info(ControlRegister controlRegister... | true |
05c2bf4e37c3832925ce7a6dc61b3a08f6b09ffe | Java | actor168/DesignPattern | /com/github/actor168/designpattern/structure/interceptor/TargetInvocation.java | UTF-8 | 840 | 2.828125 | 3 | [] | no_license | package com.github.actor168.designpattern.structure.interceptor;
import java.util.ArrayList;
import java.util.Iterator;
public class TargetInvocation {
private ArrayList<Interceptor> interceptorList = new ArrayList<>();
private Target target;
private Iterator<Interceptor> iterator = interceptorList.itera... | true |
3decb1532d481821d57eb469a5df16537bdf8f02 | Java | akhtyamovpavel/PatternsCollection | /JavaSource/src/main/java/ru/akhcheck/patterns/bridge/MainBridge.java | UTF-8 | 1,205 | 3.03125 | 3 | [] | no_license | package ru.akhcheck.patterns.bridge;
import ru.akhcheck.patterns.bridge.chassis.CarChassis;
import ru.akhcheck.patterns.bridge.chassis.PlaneChassis;
import ru.akhcheck.patterns.bridge.wheels.Gamepad;
import ru.akhcheck.patterns.bridge.wheels.PlaneWheel;
public class MainBridge {
public static void main(String[] a... | true |
db340f5c9a5f1cfe62531147cd8999db2d5d9cd4 | Java | Lianite/wurm-server-reference | /org/kohsuke/rngom/digested/DOMPrinter.java | UTF-8 | 4,510 | 2.28125 | 2 | [] | no_license | //
// Decompiled by Procyon v0.5.30
//
package org.kohsuke.rngom.digested;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Attr;
import org.w3c.dom.NodeList;
import javax.xml.stream.XMLStreamException;
import org.w3c.dom.Comment;
import org.w3c.dom.EntityReference;
import org.w3c.dom.ProcessingInstruction;
impo... | true |
386492256e70b8d65e5ea4d7819a4822657aa8ef | Java | avasaris/JavaMarathon2020 | /src/day16/Task1.java | UTF-8 | 1,549 | 3.75 | 4 | [] | no_license | package day16;
/*
* Реализовать программу, которая на вход принимает txt файл с целыми числами (можно использовать
* файл из задания 1 дня 14) и в качестве ответа выводит в консоль среднее арифметическое этих чисел.
* Ответ будет являться вещественным числом. В консоль необходимо вывести полную запись вещественно... | true |
7c82b1a149aeacb78a5df85bda5c238bc60fd4db | Java | OAndriiovych/Blog-Servlet-API-Java | /src/main/java/db/DAO/UserDAO.java | UTF-8 | 374 | 2.34375 | 2 | [] | no_license | package db.DAO;
import db.database.User;
import java.sql.SQLException;
import java.util.List;
public interface UserDAO {
void add(User users) throws SQLException;
List<User> getAll() throws SQLException;
User getByID(int id) throws SQLException;
void update(int id, User users) throws SQLException... | true |
4225c46be0156b4c712dafdf53850ed204c8a0bf | Java | theBaldSoprano/practice2016 | /steps-module/src/main/java/ru/qatools/school/steps/websteps/DefaultSteps.java | UTF-8 | 3,322 | 2.453125 | 2 | [] | no_license | package ru.qatools.school.steps.websteps;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import ru.qatools.school.pages.MainPage;
import ru.qatools.school.pages.blocks.NewWeatherWidgetCard;
import ru.qatools.school.pages.blocks.WeatherWidget;
import ru.yandex.qatools.allure.annotations.St... | true |
bc337aaa00c5f8a3bf91e5b0989a7eb9c7907020 | Java | mmwebaze/openFarm | /src/main/java/org/bashemera/openfarm/service/ConfigManager.java | UTF-8 | 689 | 2.203125 | 2 | [] | no_license | package org.bashemera.openfarm.service;
import java.util.List;
import org.bashemera.openfarm.model.Config;
import org.bashemera.openfarm.repository.ConfigRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class ConfigManager imple... | true |
3554dbb8773f368e31bcecb7dec9be582e224043 | Java | forcedotcom/phoenix | /phoenix-core/src/main/java/com/salesforce/phoenix/expression/function/CeilDateExpression.java | UTF-8 | 3,501 | 2.078125 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2013, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistr... | true |
d51303d9bcd436a76621fd453059f0fd6415346f | Java | h616016784/similarwx | /app/src/main/java/com/android/similarwx/beans/response/RspGroup.java | UTF-8 | 441 | 1.59375 | 2 | [] | no_license | package com.android.similarwx.beans.response;
import com.android.similarwx.beans.GroupMessageBean;
import com.android.similarwx.beans.User;
import java.util.List;
/**
* Created by Administrator on 2018/5/22.
*/
public class RspGroup extends BaseResponse {
GroupMessageBean data;
public GroupMessageBean ge... | true |
583b9703210d08685e57dad9a25ebd533a9da21a | Java | michaelpoluektov/cw-ai | /src/main/java/uk/ac/bris/cs/scotlandyard/ui/ai/MoveDestinationVisitor.java | UTF-8 | 368 | 2.359375 | 2 | [] | no_license | package uk.ac.bris.cs.scotlandyard.ui.ai;
import uk.ac.bris.cs.scotlandyard.model.Move;
public class MoveDestinationVisitor implements Move.Visitor<Integer>{
@Override
public Integer visit(Move.SingleMove move) {
return move.destination;
}
@Override
public Integer visit(Move.DoubleMove mo... | true |
5d14a0f7e9dc58de5537b18e1f7efcf2e9cc4ab0 | Java | jcsobrino/sharetool | /app/src/main/java/jcsobrino/tddm/uoc/sharetool/common/ApiFactory.java | UTF-8 | 568 | 2.21875 | 2 | [] | no_license | package jcsobrino.tddm.uoc.sharetool.common;
import jcsobrino.tddm.uoc.sharetool.service.ApiService;
import jcsobrino.tddm.uoc.sharetool.service.impl.ApiServiceImpl;
/**
* Factoría de creación de servicios que implementan la API con las funciones de gestión de entidades de dominio
* Contiene una única implementaci... | true |
fea37c82909ae5424859aa7b113d080781ff5d85 | Java | 1658544535/java | /src/com/tzmb2c/web/service/ProductService.java | UTF-8 | 5,281 | 1.75 | 2 | [] | no_license | package com.tzmb2c.web.service;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import com.tzmb2c.common.Pager;
import com.tzmb2c.web.pojo.ProductExcelPojo;
import com.tzmb2c.web.pojo.ProductPojo;
/**
* @author EricChen
*/
public interface ProductService {
public int getA... | true |
844742bbf2982dc933161f8a5b731d62b38b3a16 | Java | veroborges/distProject3 | /GeoServer/src/edu/cmu/eventtracker/actionhandler/DisableSlaveFailoverHandler.java | UTF-8 | 430 | 2.046875 | 2 | [] | no_license | package edu.cmu.eventtracker.actionhandler;
import edu.cmu.eventtracker.action.DisableSlaveFailover;
public class DisableSlaveFailoverHandler
implements
ActionHandler<DisableSlaveFailover, Void> {
@Override
public Void performAction(DisableSlaveFailover action, ActionContext context) {
GeoServiceContext geo... | true |
0a81b573ab2bfb8d8d1b8e42747b05b2b339d23e | Java | sunkaiiii/Concurrency_Programming_in_Java9 | /src/cp5/find_string/serial/BestMatchingSerialCalculation.java | UTF-8 | 936 | 2.765625 | 3 | [] | no_license | package cp5.find_string.serial;
import cp5.find_string.basic.BestMatchingData;
import cp5.find_string.basic.LevenshteinDistance;
import java.util.ArrayList;
import java.util.List;
public class BestMatchingSerialCalculation {
public static BestMatchingData getBestMatchingWords(String word, List<String>dictionary)... | true |
bcc332606fba8b18471511a9f22a4efa2165ea25 | Java | Xannosz/veneos | /src/main/java/hu/xannosz/veneos/core/html/media/Param.java | UTF-8 | 364 | 2.109375 | 2 | [] | no_license | package hu.xannosz.veneos.core.html.media;
import hu.xannosz.veneos.core.html.SingleHtmlComponent;
public class Param extends SingleHtmlComponent {
public Param(String name, String value) {
putMeta("name", name);
putMeta("value", value);
}
@Override
protected String getTa... | true |
e9871eff1d7792558c2c2b0671a5c76163e070b9 | Java | Thpffcj/DataStructures-and-Algorithms | /Java/src/algorithms/leetcodecn/dynamicProgramming/BurstBalloons.java | UTF-8 | 2,466 | 3.875 | 4 | [] | no_license | package algorithms.leetcodecn.dynamicProgramming;
/**
* Created by thpffcj on 2020/2/5.
*
* 有 n 个气球,编号为0 到 n-1,每个气球上都标有一个数字,这些数字存在数组 nums 中。
* 现在要求你戳破所有的气球。每当你戳破一个气球 i 时,你可以获得 nums[left] * nums[i] * nums[right] 个硬币。 这里的 left 和
* right 代表和 i 相邻的两个气球的序号。注意当你戳破了气球 i 后,气球 left 和气球 right 就变成了相邻的气球。
* 求所能获得硬币的最大数量。
... | true |