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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f3498012976b9be4cf61dcf33431e85b59d0424e | Java | RyanTech/12306-Android-Decompile | /12306/src/com/google/common/collect/PeekingIterator.java | UTF-8 | 293 | 2.40625 | 2 | [] | no_license | package com.google.common.collect;
import com.google.common.annotations.GwtCompatible;
import java.util.Iterator;
@GwtCompatible
public abstract interface PeekingIterator<E> extends Iterator<E>
{
public abstract E next();
public abstract E peek();
public abstract void remove();
}
| true |
e34cef254fcac7fe0684ba303ae5b0f03a430e9d | Java | rosiiinka/GameOfCodes | /src/enums/Grades.java | UTF-8 | 740 | 3.046875 | 3 | [] | no_license | package enums;
public enum Grades {
EXCELLENT(6, 91, 100, 1.0),
VERY_GOOD(5, 76, 90, 0.8),
GOOD(4, 61, 75, 0.6),
PASSABLE(3, 51, 60, 0.3),
FAILURE(2, 0, 50, 0);
private int grade;
private int minRate;
private int maxRate;
private double factor;
Grades(int grade, int minRate, i... | true |
20b2ab5d4c4dbdbc6b4f401aa1cea90aac150307 | Java | deepak1214/CompetitiveCode | /Misc/Fibonacci_Search/solution.java | UTF-8 | 3,993 | 4.0625 | 4 | [
"MIT"
] | permissive | /*
Algorithm:
Let the searched element be x.
The idea is to first find the smallest Fibonacci number that is greater than or equal to the length of given array. Let the found Fibonacci number be fib (m’th Fibonacci number). We use (m-2)’th Fibonacci number as the index (If it is a valid index). Let (m-2)’th Fibonacci ... | true |
cccf6d5e3743796fed917843081b0e7655f85e0c | Java | Justin002/Android | /ep2p-app/ep2p_app/src/com/beyondsoft/ep2p/utils/BlurBitmapDisplayer.java | UTF-8 | 4,922 | 2.171875 | 2 | [] | no_license | package com.beyondsoft.ep2p.utils;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.support.v8.renderscript.Allocation;
import android.support.v8.renderscript.Element;
import android.support.v8.renderscript.RenderScript;
import android.support.v8.renderscri... | true |
b8dc7acb1ee195e5b7dc2e6e571513638ff2f886 | Java | grdo3126/Draudimas | /IFunkcijos.java | UTF-8 | 309 | 2.125 | 2 | [] | no_license | package Draudimas;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure;
public interface IFunkcijos {
DerivativeStructure pirmaFunkcija(DerivativeStructure x, double vardiklis, double rodiklis);
DerivativeStructure antraFunkcija(DerivativeStructure x, double daugiklis);
}
| true |
d78c3ed879573c2cd506322c6182e87b5b918b04 | Java | zhangdaxianya/Maven | /src/test/java/Demo.java | UTF-8 | 567 | 2.96875 | 3 | [] | no_license | import org.junit.Test;
import java.util.Random;
public class Demo {
@Test
public void demo(){
Random random = new Random();
String[] str = {"A", "B", "C", "D", "E", "F", "G", "a", "b", "c", "d", "e", "f", "g"};
String code = "";
for (int i = 0; i < 5; i++) {
Int... | true |
615bed67dd6b4fc546a05a82992f77c37a8d7319 | Java | strebellev/ecosystemV5.1 | /Zodrak Rage V11/src/entity/Buisson.java | UTF-8 | 2,565 | 2.453125 | 2 | [] | no_license | package entity;
import java.util.ArrayList;
import processing.core.PApplet;
import processing.core.PConstants;
import processing.core.PImage;
import processing.core.PVector;
public class Buisson {
PApplet parent;
ArrayList<PVector> buisson;
public PVector position;
int r;
public int randomBu... | true |
5ce0271ecc5e47a95f83bf6465b0058f9fbe8a1b | Java | freemed/openclinicga | /src/be/openclinic/system/Application.java | UTF-8 | 3,152 | 2.703125 | 3 | [] | no_license | package be.openclinic.system;
import be.mxs.common.util.system.Debug;
import be.mxs.common.util.system.ScreenHelper;
import be.mxs.common.util.db.MedwanQuery;
import java.security.MessageDigest;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
imp... | true |
3e0958a811121c79ecb1f0742458a10cb166ee30 | Java | LiFBoy/mmfenqi | /fenqi_android/.svn/pristine/bd/bd1d193a14fc36bfc3062e6a36ded708730f4de1.svn-base | UTF-8 | 356 | 1.640625 | 2 | [] | no_license | package com.mmfenqi.Bean;
import java.io.Serializable;
public class PayOrderInfo implements Serializable{
private static final long serialVersionUID = -5161864593795177321L;
public String username = "" ;
public String clientid = "" ;
public String orderid = "" ;
public String addtime = "" ;
public int fee =... | true |
dd43b13b533b1eb8bc1ed7908caed65a934ec21e | Java | liucan0/LeetCode | /LeetCode/src/main/java/leetCode/array/simple/Leet_169_MajorElement.java | UTF-8 | 1,241 | 4.28125 | 4 | [] | no_license | package leetCode.array.simple;
/**
* leetcode 169 数组中的多数元素
* 给定一个大小为 n 的数组,找到其中的多数元素。多数元素是指在数组中出现次数 大于 ⌊ n/2 ⌋ 的元素。
*
* 你可以假设数组是非空的,并且给定的数组总是存在多数元素。
*/
public class Leet_169_MajorElement {
/**
* 四种方法:1.使用hashMap, 2.排序数组在返回数组中间值
* 3.分治法,4.波伊-摩尔投票算法。
* 此处采用投票算法。
* 1.维护一个候选众数num和他的出现次数count,... | true |
3e97805fe2ba542140ada43e483eea828ebaddfa | Java | gabrielgouv/java-spi-greetings-example | /greetings-service/src/main/java/com/github/gabrielgouv/greetings/api/GreetingsService.java | UTF-8 | 125 | 1.78125 | 2 | [] | no_license | package com.github.gabrielgouv.greetings.api;
public interface GreetingsService {
String greetMessage(String name);
}
| true |
8efb2935c034abe93ed5382bfd9e1559a4e174d4 | Java | satish-v/ctupoc | /ctuuploadms/src/main/java/com/capgemini/ctu/dao/CtuDao.java | UTF-8 | 541 | 1.507813 | 2 | [] | no_license | package com.capgemini.ctu.dao;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereot... | true |
68c54a539ec811d6ef95490f8faa5770a0115966 | Java | GarinZ/venus | /venus-service/src/main/java/art/meiye/venus/service/vo/auth/EmailLoginResponse.java | UTF-8 | 283 | 1.640625 | 2 | [] | no_license | package art.meiye.venus.service.vo.auth;
import lombok.Data;
/**
* @author Garin
* @date 2020-08-11
*/
@Data
public class EmailLoginResponse {
/**
* 用户id
*/
private Integer userId;
/**
* 用户id对应的token
*/
private String token;
}
| true |
a27f542bff0c42e84f5218bd987476c50fe38426 | Java | luolidong/java_design_pattern | /src/main/java/com/imooc/design/pattern/behavioral/strategy/LijianPromotionStrategy.java | UTF-8 | 242 | 2.40625 | 2 | [] | no_license | package com.imooc.design.pattern.behavioral.strategy;
/**
* Created by dell on 2019/4/10.
*/
public class LijianPromotionStrategy implements PromotionStrategy {
public void doPromotion() {
System.out.println("立减");
}
}
| true |
75ee2b55054a3057b555eced7b0ff816656ed6b8 | Java | faraonelife/Spring-Project | /project/src/main/java/uz/farhod/rest/service/ProductService.java | UTF-8 | 901 | 2.34375 | 2 | [] | no_license | package uz.farhod.rest.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import uz.farhod.rest.entity.Product;
import uz.farhod.rest.payload.ApiResponse;
import uz.farhod.rest.repository.ProductRepository;
import java.util.List;
import java.util.Op... | true |
90e988f920a95aacc18f83fd25c310e7fc757c96 | Java | jjjikolpp/acorn.spsou | /spring_mvc7_para_post/src/main/java/pack/model/SangpumModel.java | UTF-8 | 314 | 2.28125 | 2 | [] | no_license | package pack.model;
import org.springframework.stereotype.Component;
import pack.controller.SangpumBean;
@Component
public class SangpumModel {
public String compute(SangpumBean bean){
String ss = "품명 : " + bean.getSang() + " " +
", 금액 : " + (bean.getSu() * bean.getDan());
return ss;
}
}
| true |
580b04219c1ac90df195228fe53e7bb08b828288 | Java | YangIPhone/blog-java | /blog-java/src/main/java/com/yang/service/impl/ResourceServiceImpl.java | UTF-8 | 1,154 | 1.742188 | 2 | [] | no_license | package com.yang.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yang.mapper.ResourceMapper;
import com.yang.pojo.Resource;
import com.yang.service.ResourceService;
@Service
public class ResourceServiceImpl... | true |
c34d61cba6300548b14b2e1be70a6549f6224bb8 | Java | WadeXHong/CHOCOLABS | /app/src/main/java/com/wadexhong/chocolabs/helper/JsonHelper.java | UTF-8 | 896 | 2.203125 | 2 | [] | no_license | package com.wadexhong.chocolabs.helper;
import android.util.Log;
import com.google.gson.Gson;
import com.wadexhong.chocolabs.objects.Data;
import java.io.IOException;
import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
/**
* Created by wade8 ... | true |
5246f7d1f84b1f533767d0ecc05b80b6d54cda16 | Java | kosbr/ix-client | /src/main/java/com/github/kosbr/ix/dto/Task.java | UTF-8 | 1,337 | 2.265625 | 2 | [] | no_license | package com.github.kosbr.ix.dto;
import com.google.common.base.MoreObjects;
import java.io.Serializable;
/**
* Created by kosbr on 08.04.2016.
*/
public class Task implements Serializable {
private static final long serialVersionUID = -7401961224124280149L;
private Integer id;
private String serviceN... | true |
bb802d2fbc18b6c68c0b4b9a753cd5038166272b | Java | Aukomn/Super-Geek-Reader | /app/src/main/java/org/chaos/fx/cnbeta/hotarticles/ScrollingActivity.java | UTF-8 | 2,081 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package org.chaos.fx.cnbeta.hotarticles;
import android.os.Build;
import android.os.Bundle;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.widget.Toolbar;
import android.te... | true |
6ad76bc9aae5a4f20a79d77b76852f4871488053 | Java | gaihub1/GitClone | /Karan_Workspace/src/MulTable.java | UTF-8 | 544 | 3.484375 | 3 | [] | no_license | import java.util.Scanner;
public class MulTable {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Enter the number for multiplication table :: ");
int a = scan.nextInt();
System.out.println("Enter the multiplication table length ::... | true |
f8e0112174ba5975236d0304755d1ff395310b20 | Java | seshank4/ChatBotNLPService | /src/com/aetna/dataeng/chatbot/service/ChatService.java | UTF-8 | 1,211 | 2.625 | 3 | [] | no_license | package com.aetna.dataeng.chatbot.service;
import java.util.HashMap;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.json.JSONException;
@Path("/chatservice")
public class ChatService {
... | true |
68ac25ff618b84d2141bf943f5ca742580cf446e | Java | rposcro/jwavez | /jwavez-core/src/main/java/com/rposcro/jwavez/core/commands/types/BasicCommandType.java | UTF-8 | 377 | 2.109375 | 2 | [
"MIT"
] | permissive | package com.rposcro.jwavez.core.commands.types;
import com.rposcro.jwavez.core.classes.CommandClass;
@CommandTypeEnum(commandClass = CommandClass.CMD_CLASS_BASIC)
public enum BasicCommandType implements CommandType {
BASIC_SET(0x01),
BASIC_GET(0x02),
BASIC_REPORT(0x03),
;
BasicCommandType(int code) {
... | true |
da793e3423c56a78c77d483df17ce4a3adfca779 | Java | TheyCallMeRobinson/Duel | /src/main/java/player/Human.java | UTF-8 | 1,165 | 3.34375 | 3 | [] | no_license | package player;
import com.nocompanyyet.asset.Card;
import com.nocompanyyet.asset.State;
import service.ExceptionHandlingService;
import service.IOService;
import java.util.NoSuchElementException;
import java.util.Scanner;
public class Human extends Player {
public Human() {
this.name = IOService.request... | true |
3ed17b067f900c8d5ca9bd67aa8744418292c7db | Java | emmanoe/javadelar | /simpleui/src_basic/Run.java | UTF-8 | 1,855 | 3 | 3 | [] | no_license | package src_basic;
import java.util.Collection;
import javax.swing.JFrame;
import javax.swing.WindowConstants;
import fr.ubordeaux.simpleUI.Application;
import fr.ubordeaux.simpleUI.ApplicationRunnable;
import fr.ubordeaux.simpleUI.Arena;
import fr.ubordeaux.simpleUI.TimerRunnable;
import fr.ubordeaux.sim... | true |
569213f2eca5ac77e1ad7ace9168579f99465819 | Java | chnbin/CodeSnippet | /Leetcode/169. Majority Element.java | UTF-8 | 435 | 2.953125 | 3 | [] | no_license | class Solution {
public int majorityElement(int[] nums) {
int candicate = 0;
int counter = 0;
for(int num: nums) {
if (counter == 0) {
candicate = num;
counter = 1;
continue;
}
if (num == candicate) {
... | true |
3fc96129adb2e53a7bd353823c87fd1967756bc9 | Java | bloodlee/AndroidFlickrIpResolver | /app/src/main/java/app/yli/org/flickriptranslator/MainActivity.java | UTF-8 | 2,908 | 2.078125 | 2 | [] | no_license | package app.yli.org.flickriptranslator;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.StrictMode... | true |
88204a8794af39ec91f759e19de24848464767f1 | Java | VivekMakwana24/MyClasses | /app/src/main/java/com/example/myclasses/model/CountryCodePojo.java | UTF-8 | 1,605 | 2.5625 | 3 | [] | no_license | package com.example.myclasses.model;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class CountryCodePojo{
@SerializedName("response_code")
private int responseCode;
@SerializedName("type")
private String type;
@SerializedName("message")
private String message;
... | true |
3c3c0478493ce1c68057e03885bcd5d0f61592bb | Java | hackdie/SchoolPocket | /src/classes/Item_enviar_mjes_combo.java | UTF-8 | 424 | 2.40625 | 2 | [] | no_license | package classes;
public class Item_enviar_mjes_combo {
public int id;
public String materia;
public Item_enviar_mjes_combo(int _id, String _materia ){
this.id = _id;
this.materia = _materia;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getMateria(... | true |
3dd6132ce991c468efb804eeb7081c05b388f6f0 | Java | MySelfBlank/xuecheng | /xc-service-manage-course/src/main/java/com/xuecheng/manage_course/dao/CategoryMapper.java | UTF-8 | 334 | 1.671875 | 2 | [] | no_license | package com.xuecheng.manage_course.dao;
import com.xuecheng.framework.domain.course.ext.CategoryNode;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* 分类dao接口
* @author 鲜磊 on 2019/4/30
**/
@Mapper
public interface CategoryMapper {
//分类查询
public CategoryNode selectList();
}
| true |
2ba1c8f9df8c2f927da93ddbb9a738f7dde17a4f | Java | javaengineer/javaTest | /src/com/xc/java/pattern/factory/abstr/AbstractFactory.java | UTF-8 | 260 | 2.5625 | 3 | [] | no_license | package com.xc.java.pattern.factory.abstr;
/**
* 抽象工厂
*
* 把所有的厂家放这里统一管理,便于扩展
*/
public abstract class AbstractFactory {
public abstract String getMengniuMilk();
public abstract String getYiliMilk();
}
| true |
f6474f438b313011f66a1937c73de750fdafb763 | Java | volponi121/4esoft2020 | /src/main/java/aula20201109/AppProducerConsumer.java | UTF-8 | 2,846 | 3.1875 | 3 | [] | no_license | package aula20201109;
import java.awt.Color;
import java.util.ArrayList;
import java.util.List;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JProgressBar;
import javax.swing.JTextField;
public class AppP... | true |
7e354ff90bc6e1e1c30682c67e3ace700e2c0430 | Java | MosinRA/WeatherOnBoard | /app/src/main/java/com/mosin/weatheronboard/interfaces/IOpenWeatherMap.java | UTF-8 | 457 | 2.078125 | 2 | [] | no_license | package com.mosin.weatheronboard.interfaces;
import com.mosin.weatheronboard.model.WeatherRequest;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface IOpenWeatherMap {
//api.openweathermap.org/data/2.5/weather?q={city name}&appid={API key}
@GET ("data/2.5/wea... | true |
cd5a9355c254a2ee60a0dbe9fdd9fe565ced9812 | Java | mezz/FTBLib | /src/main/java/ftb/lib/notification/ClickAction.java | UTF-8 | 1,772 | 2.171875 | 2 | [] | no_license | package ftb.lib.notification;
import com.google.gson.JsonElement;
import ftb.lib.api.client.FTBLibClient;
import ftb.lib.api.gui.GuiScreenRegistry;
import latmod.lib.LMUtils;
import latmod.lib.util.FinalIDObject;
import net.minecraft.client.gui.*;
import net.minecraftforge.fml.relauncher.*;
import java.io.File;
impor... | true |
772f0b6d394a27e989903a1b7bf6fea40a8e6f21 | Java | xsfs/DesignPattern | /src/Bridge/BridgeAdapter/Abstraction.java | UTF-8 | 247 | 2.5 | 2 | [] | no_license | package Bridge.BridgeAdapter;
public abstract class Abstraction {
protected Implementor implementor=null;
protected Abstraction(Implementor implementor){
this.implementor=implementor;
}
public abstract void operation();
}
| true |
2f434906bb7e2ee527a502e6b005026970b79fda | Java | wuyufei2019/JSLYG | /src/main/java/com/cczu/model/controller/PageSekbMsdsController.java | UTF-8 | 4,395 | 1.835938 | 2 | [] | no_license | package com.cczu.model.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.cczu.sys.comm.utils.StringUtils;
... | true |
010759a66f699fb1939c5d094dce358dc9d2ded5 | Java | anilgmaipady/spring-cloud-example | /netflix-eureka-naming-server/src/main/java/com/springcloudexample/microservices/netflixeurekanamingserver/NetflixEurekaNamingServerApplication.java | UTF-8 | 840 | 1.671875 | 2 | [] | no_license | package com.springcloudexample.microservices.netflixeurekanamingserver;
import de.codecentric.boot.admin.server.config.EnableAdminServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApp... | true |
322ad0b47f3d52e9c7186da236569270fbf5e40f | Java | Guevarak1/AsyncJavaExamples | /src/main/java/com/kevguev/tutorial/asyncexamples/tutorials/RunnableWithExecutor.java | UTF-8 | 717 | 3.09375 | 3 | [] | no_license | package com.kevguev.tutorial.asyncexamples.tutorials;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
public class RunnableWithExecutor {
private static void spinThreadWithExecutorService() {
System.out.println("pre hello world at: " + System.currentTimeMillis());
Thr... | true |
1d2ddc1276ee8f8d2b4e09445243430a5011a3ec | Java | gnunn1/avroprotobuf | /camel-demo-restprotobuf/src/main/java/demo/camel/MyRouteBuilder.java | UTF-8 | 1,243 | 1.929688 | 2 | [] | no_license | package demo.camel;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.dataformat.protobuf.ProtobufDataFormat;
import org.apache.camel.model.rest.RestBindingMode;
/**
* A Camel Java DSL Router
*/
public class MyRouteBuilder extends RouteBuilder {
public void configure() {
Stri... | true |
fbe59c7dcc7b4f5d25eb4ceae9d7be1a4dd0157b | Java | andrevriibeiro/eventryapp-android | /app/src/main/java/br/com/eventryapp/adapter/PresentesAdapter.java | UTF-8 | 3,801 | 2.25 | 2 | [] | no_license | package br.com.eventryapp.adapter;
import android.app.ProgressDialog;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
... | true |
3f504b7a0c75822a45f13eb26eb4cd00ce917a17 | Java | Tmdsb941/springbootesthree | /src/main/java/com/cs/springbootesthree/service/KaoshiService.java | UTF-8 | 321 | 1.882813 | 2 | [] | no_license | package com.cs.springbootesthree.service;
import com.cs.springbootesthree.pojo.Kaoshi;
import org.springframework.stereotype.Service;
import java.util.List;
public interface KaoshiService {
Kaoshi login(String ksname,String kspwd);
int del(int ksid);
Kaoshi ist(Kaoshi kaoshi);
List<Kaoshi> ALL();
}... | true |
37e9b2634c553ab5af36ad0910836f38dc39f0b7 | Java | rhawan/microservices-tcc-alfa | /sales-microservices-resourceserver-cliente/src/main/java/br/alfa/sales/util/CargaCliente.java | UTF-8 | 2,940 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | package br.alfa.sales.util;
import java.io.File;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.LineIterator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframew... | true |
3528675361fa6996de586db3f3e1142ace7a2e3f | Java | ParthPancholi/janrain4j | /src/main/java/com/googlecode/janrain4j/springframework/EngagePartnerServiceFactoryBean.java | UTF-8 | 2,262 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | /* Copyright 2011 Sergey Tsymbler
*
* 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 ... | true |
c749e6c76a234396e393cdc4dfca13a2aad72cf3 | Java | christopherdavid/hybrid_app | /Android/SlideAndroidPlugins/src/com/neatorobotics/android/slide/framework/pluginhelper/ErrorTypes.java | UTF-8 | 5,587 | 2.25 | 2 | [] | no_license | package com.neatorobotics.android.slide.framework.pluginhelper;
public class ErrorTypes {
public static final int ERROR_TYPE_UNKNOWN = -501;
public static final int ERROR_NETWORK_ERROR = -502;
public static final int JSON_PARSING_ERROR = -503;
public static final int INVALID_SCHEDULE_ID = -504;... | true |
a95ae38bbeeeb65d3a88a7336b889a8232787599 | Java | OSrcD/java-for-linux | /java-for-gitee/Test/src/KeyboardEventListener.java | UTF-8 | 927 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | import java.util.*;
public interface KeyboardEventListener extends EventListener {
public void GlobalKeyPressed(KeyboardEvent event);
public void GlobalKeyReleased(KeyboardEvent event);
}
class KeyboardEvent extends EventObject {
private static final long serialVersionUID = 2341653211621224652L;
boolean ts, ap, ... | true |
2d44ff821e2d18376b02609c7531d6a27a306729 | Java | xSke/CoreServer | /src/mikera/vectorz/impl/JoinedMultiVector.java | UTF-8 | 17,652 | 2.171875 | 2 | [] | no_license | /*
* Decompiled with CFR 0_129.
*/
package mikera.vectorz.impl;
import java.nio.DoubleBuffer;
import mikera.arrayz.INDArray;
import mikera.vectorz.AVector;
import mikera.vectorz.Op;
import mikera.vectorz.impl.ADenseArrayVector;
import mikera.vectorz.impl.AJoinedVector;
import mikera.vectorz.impl.JoinedVector;
import... | true |
2ff977e5c1a88abd24fd44ba651d11338b9c5f0f | Java | morristech/orcller_android | /android/Orcller/app/src/main/java/com/orcller/app/orcller/model/Album.java | UTF-8 | 2,703 | 1.984375 | 2 | [] | no_license | package com.orcller.app.orcller.model;
import android.text.TextUtils;
import com.orcller.app.orcller.R;
import com.orcller.app.orcllermodules.model.User;
import java.text.SimpleDateFormat;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.Locale;
import java.util.rege... | true |
29053681ed10b360a6347a9f5c7ec2fb2f06702a | Java | BashkoAnastasya/Java | /MaxMin/anastasiya/Number.java | UTF-8 | 300 | 2.5625 | 3 | [] | no_license | package com.intexsoft.bashko.anastasiya;
public class Number {
private int number;
private int length;
public Number(int number, int length) {
this.number=number;
this.length=length;
}
public int getLength() {
return length;
}
public int getnumber() {
return number;
}
}
| true |
d9df69aa4f34d667d7cbdfc3b799f4592d20def5 | Java | raziullahkhan/Java | /UdemyJava+Andr/src/Java_and1/WorkingWithFiles.java | UTF-8 | 506 | 3.3125 | 3 | [] | no_license |
package Java_and1;
import java.io.IOException;
import java.io.PrintWriter;
public class WorkingWithFiles {
public static void main(String[] args) throws IOException{
//create the file and open the file
//if the file exist it will replace the file
PrintWriter outputFile=new PrintWriter("Ou... | true |
d773c741920ab23f1064fc182b01fda9fc24270c | Java | sandervalstar/java-spring-basics | /labs/03-spring-application-context/exercise-7/src/main/java/domain/Sugar.java | UTF-8 | 132 | 2.328125 | 2 | [] | no_license | package domain;
public class Sugar extends Ingredient {
public Sugar(long id, String name) {
super(id, name);
}
}
| true |
2dde6ce995a5c18a7f9b9f918e262295f0a22509 | Java | anyjava/springboot-study | /spring-boot-test/src/test/java/dev/anyjava/springboot/test/domain/EmployeeRepositoryTest.java | UTF-8 | 928 | 2.15625 | 2 | [] | no_license | package dev.anyjava.springboot.test.domain;
import com.github.springtestdbunit.annotation.DatabaseSetup;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
... | true |
26c1afd97c9f590a958681ff55bb6ef19b7e5db1 | Java | bhagyaperera123/POS-System | /test/BPos/Model/CustomerTest.java | UTF-8 | 1,447 | 2.609375 | 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 BPos.Model;
//
//import BPos.DB.Customer;
//import org.junit.AfterClass;
//import org.junit.BeforeClass;
... | true |
e7c99ee0abdd0181ca0909e986619d3ffe9fb948 | Java | entrudo/Autotest | /src/com/company/Lessons_home_Work/Lesson15_Less_Work/Task2/Enum/RunOn.java | UTF-8 | 222 | 2.296875 | 2 | [] | no_license | package com.company.Lessons_home_Work.Lesson15_Less_Work.Task2.Enum;
public enum RunOn {
LOCAL,
BUILDSERVER,
REMONE;
public static RunOn getString (String str){
return RunOn.valueOf(str);
}
}
| true |
71576835d6d8df106709f1395d505d9ac056e194 | Java | Ball-ll/MavenSpringSSM | /src/main/java/com/service/TestService.java | UTF-8 | 171 | 1.71875 | 2 | [] | no_license | package com.service;
import java.util.List;
import com.entitys.TestEntity;
public interface TestService{
public List<TestEntity> find(TestEntity testinfo);
}
| true |
f58abbcddffbeff61e57dbbdf706abb5f382ad93 | Java | wushiba/source-code | /com.yd.parent/com.yd.service/src/main/java/com/yd/service/crawer/TmallBijiaProcess.java | UTF-8 | 4,955 | 1.992188 | 2 | [] | no_license | package com.yd.service.crawer;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Resource;
import org.apache.commons.lang.StringUtils;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import org.spr... | true |
1f353ed51dbeee3dc2398ddc286850b41933a398 | Java | 81219122/goods | /src/com/zhangrun/service/impl/UserService.java | UTF-8 | 5,368 | 2.59375 | 3 | [] | no_license | package com.zhangrun.service.impl;
import cn.itcast.commons.CommonUtils;
import com.zhangrun.dao.impl.UserDao;
import com.zhangrun.entity.User;
import com.zhangrun.exception.UserException;
import com.zhangrun.service.IUserService;
import com.zhangrun.utils.MailUtils;
import java.sql.SQLException;
/**
* @author zhan... | true |
dc127d6979b0e77127ec6ac4fac4d0a49ad88cb0 | Java | hedaoming/JavaDeep | /src/conrrent/noLock/TestAtomicStampedReference.java | UTF-8 | 2,187 | 3.34375 | 3 | [] | no_license | package conrrent.noLock;
import java.util.concurrent.atomic.AtomicStampedReference;
/**
* Created by ipc on 2017/6/13.
*/
public class TestAtomicStampedReference {
static AtomicStampedReference<Integer> asr = new AtomicStampedReference<Integer>(19,0);
public static void main(String args[]){
//模拟充值
... | true |
f4cd9bd09b7dbe5ba8665ecfee7d90a8af7cac2c | Java | boloBeach/Xieee | /Xieee/src/main/java/net/xieee/spider/util/Constants.java | UTF-8 | 1,130 | 1.773438 | 2 | [] | no_license | package net.xieee.spider.util;
/**
* this class is constants with the splider
*
* @author royzhang
*
*/
public class Constants {
/**
* url filter,the reason some url can not get this code.
*/
public final static String filter = "about,about us";
/**
* the LinkQueue max size
*/
publi... | true |
6e3a99f9fa12592baa840b7d8d3e5fa4602152b3 | Java | sk354-hdm/JavaKurs1 | /java_kurs_1/src/Figuren/FolgeDerMausFigur.java | UTF-8 | 783 | 3.03125 | 3 | [] | no_license | package Figuren;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import java.awt.geom.Ellipse2D;
import javax.swing.JPanel;
public class FolgeDerMausFigur extends Ellipse2D.Double implements MouseMotionListener{
public Fol... | true |
9fe48aff1cc30346f7829a1039b3e31c31f07a5a | Java | hkj141421/StudyDemo | /NioDemo/src/main/java/FrameWork/com/nio/Codec/JsonDecode.java | UTF-8 | 1,056 | 2.296875 | 2 | [] | no_license | package FrameWork.com.nio.Codec;
import com.alibaba.fastjson.JSONObject;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ByteToMessageDecoder;
import io.netty.handler.codec.MessageToMessageDecoder;
import java.lang.reflect.Field;
import java.util.List;
import java.util.Set;
/**
* Create... | true |
ac50b2238d34d1aa24597c961bf3560f5580ae5f | Java | bingo1118/kaiping | /app/src/main/java/com/smart/cloud/fire/activity/Inspection/InspHistory/InspHIstoryItemActivity.java | UTF-8 | 8,142 | 1.6875 | 2 | [
"Apache-2.0"
] | permissive | package com.smart.cloud.fire.activity.Inspection.InspHistory;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Environment;
import android.provider.MediaStore;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;... | true |
2450caedc22f87a04798d3d57d3283b21a1d513d | Java | mohammedragabmohammedborik/Thaa | /app/src/main/java/com/dtag/thaa/Onclicklistenerd.java | UTF-8 | 110 | 1.71875 | 2 | [] | no_license | package com.dtag.thaa;
public interface Onclicklistenerd {
void onItemClickedListener(int position);
}
| true |
b2e968860719ccfbf701627bb4199e983a436c71 | Java | mekarbal/project_got_talent_javaConsole_mysql | /src/enums/ConDb.java | UTF-8 | 444 | 2.28125 | 2 | [] | no_license | package enums;
public enum ConDb {
AUTH("mail.smtp.auth", "true"),
SSL("mail.smtp.starttls.enable", "true"),
HOST("mail.smtp.host", "smtp.gmail.com"),
PORT("mail.smtp.port", "587");
private String props = "";
private String value = "";
ConDb(String props,String value) {
this.props=props;
this.value=valu... | true |
9c598feefe836d7eb71b13fc037ca46f97202d78 | Java | mike-neck/java-til | /reactor-tutorial/src/test/java/com/example/lesson/FromBlockingTest.java | UTF-8 | 4,351 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018 Shinya Mochida
*
* Licensed under the Apache License,Version2.0(the"License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | true |
f6a8915770b813f3a0f27476ad3e5c80ed16273e | Java | smcclain56/java-graph | /Graph.java | UTF-8 | 5,490 | 3.46875 | 3 | [] | no_license | import java.util.HashMap;
import java.util.List;
import java.util.ArrayList;
import java.util.Set;
import java.util.Map;
/**
* A class that implements a Graph with a Hashmap of integers as the keys, and
* array lists of integers as the values.
*
* @author Gennie Cheatham, Sarah McClain
*
*/
public c... | true |
14141161e573e8c22f80aff8e9c19aeb01abb6cb | Java | alexandrejonathas/teste-pratico-publica | /src/main/java/br/com/publica/testepratico/infrastructure/repository/JogoRepositoryImpl.java | UTF-8 | 1,973 | 2.328125 | 2 | [] | no_license | package br.com.publica.testepratico.infrastructure.repository;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criter... | true |
780b58f70d24a542e7704bcdb398fe6d6ffdbecf | Java | riccardomengoli/StabilimentoBalneare | /StabilimentoBalneare/src/ombrelloniani/view/fxmlControllers/GestionePrenotazione.java | UTF-8 | 2,862 | 2.59375 | 3 | [] | no_license | package ombrelloniani.view.fxmlControllers;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.Pane;
import javafx.scene.shape.Line;
import ombrellonia... | true |
b054ed3bb70c08666627d8b08483d72007217525 | Java | anthonywittemann/workspace | /CSC142Albright/src/AWCh2Pr10.java | UTF-8 | 572 | 3.734375 | 4 | [] | no_license | // Anthony Wittemann
// Chapter 2 Program 10 Test Average
// Due 2/4/14
public class AWCh2Pr10 {
/**
* @param args
*/
public static void main(String[] args) {
// 75, 83, 87 as the three test scores
short testScore0 = 75;
short testScore1 = 83;
short testScore2 = 87;
float averageTestScore = (float) ... | true |
fb58fbbcf60d6405e9cf16e625f4d618089ce193 | Java | MayconDouglass/sistema-vendas | /src/DAO/DAOUsuario.java | UTF-8 | 10,345 | 2.59375 | 3 | [] | no_license | package DAO;
import model.ModelUsuario;
import Connect.ConexaoMySql;
import java.util.ArrayList;
/**
*
* @author Maycon Douglas
*/
public class DAOUsuario extends ConexaoMySql {
/**
* grava Usuario
*
* @param pModelUsuario return int
*/
public int salvarUsuarioDAO(ModelUsuario pModelUs... | true |
39ea0182aef8da5832aba64d36be716fd2c0f601 | Java | tmc1245/ghidra | /Ghidra/Debug/Debugger-sctl/src/main/java/ghidra/dbg/sctl/protocol/v2012ext/SelSctl2012ExtPacket.java | UTF-8 | 1,332 | 1.695313 | 2 | [
"GPL-1.0-or-later",
"GPL-3.0-only",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LGPL-2.1-only",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... | true |
ec21b835838df4d17e15b56ea94b40143ffcea4e | Java | projectforcol/ImportData2BioIDE | /src/main/java/org/big/repository/CitationRepository.java | UTF-8 | 4,406 | 2.078125 | 2 | [] | no_license | package org.big.repository;
import java.util.Date;
import java.util.List;
import org.big.entity.Citation;
import org.big.repository.base.BaseRepository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Modifying;
import org.s... | true |
1a5f02a7bad2229661cd41758972390895d16ee9 | Java | tkdtanu/oauth2-social-login | /spring-boot2-oauth2/src/main/java/com/tkd/oauth2/security/jwt/TokenProvider.java | UTF-8 | 2,754 | 2.328125 | 2 | [] | no_license | package com.tkd.oauth2.security.jwt;
import com.tkd.oauth2.properties.AppProperties;
import com.tkd.oauth2.security.model.AppUser;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.ExpiredJwtException;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.MalformedJwtException;
import io.jsonwebtoken.Signatu... | true |
830ab185e5ae04182f60af26722b690784a1f0fe | Java | x3platform/x-general-framework | /src/membership/src/main/java/com/x3platform/membership/authentication/SSOAuthenticationManagement.java | UTF-8 | 1,384 | 2.359375 | 2 | [] | no_license | package com.x3platform.membership.authentication;
import com.x3platform.membership.Account;
import com.x3platform.util.StringUtil;
/**
* 单点登录验证请求管理
* 登录帐号统一使用系统管理员配置登录密码
*/
public final class SSOAuthenticationManagement extends GenericAuthenticationManagement {
/**
* 获取认证的用户信息
*/
@Override
public Acco... | true |
c42199445217b2ae8ba3517432cf54ca4444d2f7 | Java | eljec/mjo_mision_cba | /NuevaApp/app/src/main/java/aplication/mjo/misioncba/com/mjomisioncbaapp/model/ReadingJsonProvider.java | UTF-8 | 1,285 | 2.53125 | 3 | [] | no_license | package aplication.mjo.misioncba.com.mjomisioncbaapp.model;
import android.content.res.AssetManager;
import android.support.annotation.NonNull;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.io.InputStream;
/**
* Created by jucastillo on 1/1/18.
*/
public class Readin... | true |
9df439fc25a6664b7db3cadeecf66edd86da3d39 | Java | yuruyigit/lotteryServer | /后台调试版/src/main/java/lottery/domains/content/biz/UserMessageService.java | UTF-8 | 516 | 1.851563 | 2 | [] | no_license | package lottery.domains.content.biz;
import javautils.jdbc.PageList;
import lottery.domains.content.vo.user.UserMessageVO;
public abstract interface UserMessageService
{
public abstract PageList search(String paramString1, String paramString2, String paramString3, String paramString4, int paramInt1, int paramInt2, ... | true |
d0a8fc8040bd203dbb7fff3c441cd23b174e9204 | Java | sumathikotthuri/java-programming | /java-programming/src/practice/java/fundamentals/inheritance/TeamEventRegistration.java | UTF-8 | 1,735 | 3.359375 | 3 | [] | no_license | package practice.java.fundamentals.inheritance;
public class TeamEventRegistration extends EventRegistration{
private int noOfParticipants;
private int teamNo;
TeamEventRegistration(String name, String nameOfEvent
,int noOfParticipants,int teamNo){
super(name,nameOfEvent);
thi... | true |
f99bebcb2d2a715d3a016f6a41ccb5a0c6b2e9a2 | Java | ffipertani/creditsuisse | /src/main/java/com/ff/creditsuisse/LiveOrderClient.java | UTF-8 | 1,240 | 2.515625 | 3 | [] | no_license | package com.ff.creditsuisse;
import com.ff.creditsuisse.exception.OrderNotFoundException;
import com.ff.creditsuisse.exception.OrderNotValidException;
import com.ff.creditsuisse.model.Order;
import com.ff.creditsuisse.model.OrderSummary;
import com.ff.creditsuisse.store.InMemoryOrderDataStore;
import com.ff.creditsuis... | true |
fc2761168aacad4b080dc64895fe654e0d7760e9 | Java | agnibrainhack/Accenture_Hack | /app/src/main/java/com/example/hp/ikurenewedition/BMICALC.java | UTF-8 | 1,487 | 2.265625 | 2 | [] | no_license | package com.example.hp.ikurenewedition;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
import com.example.hp.ikurenewedition.R;
/**
* Created by hp on 01-02-2018.
*/
public class BMICALC extends AppCompatActivity {
pr... | true |
2005bd7d0a186886f8125159f00d8abffd4336b3 | Java | mertcan14/hrmsProject2 | /hrmsproject/src/main/java/kodlamaio/hrmsproject/businees/abstracts/JobSeekerKnowledgeService.java | UTF-8 | 427 | 1.859375 | 2 | [] | no_license | package kodlamaio.hrmsproject.businees.abstracts;
import java.util.List;
import kodlamaio.hrmsproject.core.utilities.results.DataResult;
import kodlamaio.hrmsproject.core.utilities.results.Result;
import kodlamaio.hrmsproject.entities.concretes.JobSeekerKnowledge;
public interface JobSeekerKnowledgeService {
Resul... | true |
585d2d6a49406a013281cddfca3722f374fcf2bf | Java | dekzz/design-patterns | /WebBrowserCache/src/org/dt/Strategy/NKPageRemove.java | UTF-8 | 1,174 | 2.734375 | 3 | [] | no_license |
package org.dt.Strategy;
import java.util.HashMap;
import java.util.Map;
import org.dt.datomala_zadaca_4.FileHandler;
import org.dt.datomala_zadaca_4.Log;
import java.util.Date;
import org.dt.MVC.Model.CacheModel;
public class NKPageRemove implements RemovalStrategy{
@Override
public void execute(HashMap<St... | true |
633ee0bccac9b8fdae69845bd187c78d38306509 | Java | alpome/bandcamp-file-fixer | /bcff.java | UTF-8 | 5,770 | 2.984375 | 3 | [] | no_license | import java.io.*;
import java.util.ArrayList;
import java.util.regex.Pattern;
import java.util.regex.Matcher;
import java.util.Arrays;
import java.util.List;
import static java.lang.System.exit;
/***
* @author Alexander Merluzzi
* @date February 27 2020
* @title Bandcamp File Fixer - BCFF
* This is a small utility wit... | true |
1c87dc451153ddead7978da19cb7d693a17aef50 | Java | googleapis/google-cloud-java | /java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceProto.java | UTF-8 | 12,199 | 1.796875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | true |
00b49301374fbcbe102a01a429d3338829eadfe1 | Java | liu67224657/besl-platform | /framework/src/main/java/com/enjoyf/platform/service/event/system/SystemEventType.java | UTF-8 | 11,770 | 1.625 | 2 | [] | no_license | /**
* CoryRight 2011 fivewh.com
*/
package com.enjoyf.platform.service.event.system;
import com.google.common.base.Strings;
import java.io.Serializable;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
/**
* @Auther: <a mailto="yinpengyi@fivewh.com">Yin Pengyi</a>
* Create time: 11-8-... | true |
8a9464f4342a627d0e34396e54df469bdb8dac83 | Java | toroman/raf-block | /src/edu/raf/gef/gui/swing/menus/MenuManagerSAXImporter.java | UTF-8 | 4,359 | 2.140625 | 2 | [] | no_license | /*
RAF GEF - Graphical Editor Framework
Copyright (C) <2007> Srecko Toroman, Ivan Bocic
This program 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 later... | true |
2a3be8438bb8f76d401bd17a51ac0eaff3bb4cb6 | Java | akotynski/empiria.player | /src/main/java/eu/ydp/empiria/player/client/module/dictionary/external/controller/ExplanationController.java | UTF-8 | 2,948 | 2.328125 | 2 | [] | no_license | package eu.ydp.empiria.player.client.module.dictionary.external.controller;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.MouseUpEvent;
import com.google.gwt.event.dom.client.MouseUpHandler;
import com.google.gwt.user.clie... | true |
8edb5713ed748dacf6d570a2d97c1dd299d3282d | Java | wuxiaolee/spring-batch-demo | /springbatch-mybatis/src/test/java/com/wl/service/JobSplitDemoConfigurationTest.java | UTF-8 | 1,499 | 1.8125 | 2 | [] | no_license | package com.wl.service;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.JobParameters;
import org.springframework.batch.core.JobParametersBuilder;
import org.springframework.batch.core.JobParametersInvalidException;
import... | true |
d90ca014f80f2a11c43c56b989a4607db2711197 | Java | enjoygeek/FaceDetection | /facedetection-integration/src/main/java/com/cloud/remote/FacePlusPlusProcessResult.java | UTF-8 | 3,049 | 2.46875 | 2 | [] | no_license | package com.cloud.remote;
import java.util.List;
import java.util.Map;
import org.apache.commons.io.FilenameUtils;
import com.cloud.dto.Coordinate2D;
import com.cloud.dto.FaceDetection;
import com.cloud.dto.Image;
import com.cloud.dto.ProcessResult;
import com.fasterxml.jackson.core.JsonProcessingException;
import c... | true |
d1c41a972de7471e278cc01f17ae9976fdcf4ac3 | Java | marcusgalvin/JavaGiraffe | /Giraffe/src/Methods.java | UTF-8 | 283 | 3.203125 | 3 | [] | no_license |
public class Methods {
public static void main (String [] args)
{
System.out.println("top");
sayHi("joe", 27);
System.out.println("bottom");
}
public static void sayHi(String name, int age)
{
System.out.println("Hi " + name + " you are " + age);
}
}
| true |
1d601e4eac98e943d9de606764011af7d60b57e8 | Java | hsine55/Algorithms | /src/minCut/GraphMinCut.java | UTF-8 | 3,420 | 3.09375 | 3 | [] | no_license | package minCut;
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Random;
public class GraphMinCut {
private static final St... | true |
eebc804596275527a01b69adc407392ba4e204b3 | Java | nikas90/book-shop | /src/main/java/org/angisource/bookshop/entity/Book.java | UTF-8 | 712 | 2.34375 | 2 | [] | no_license | package org.angisource.bookshop.entity;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
@lombok.Getter
@lombok.Setter
@lombok.EqualsAndHashCode(of = "isbn")
@lombok.ToString(exclude="id")
@Entity
public class Book implemen... | true |
7dbeae8d4b892bbdd09e48acb6090f0f7e44b5a0 | Java | xeraph/kraken | /detector/kraken-sonar/src/main/java/org/krakenapps/sonar/passive/ids/HttpAttackDetector.java | UTF-8 | 4,125 | 1.976563 | 2 | [] | no_license | package org.krakenapps.sonar.passive.ids;
import org.apache.felix.ipojo.annotations.Component;
import org.apache.felix.ipojo.annotations.Invalidate;
import org.apache.felix.ipojo.annotations.Provides;
import org.apache.felix.ipojo.annotations.Requires;
import org.apache.felix.ipojo.annotations.Validate;
import ... | true |
55e8f5e9a50e21184d08ca5da545dd3fe5d3b5b0 | Java | yyjianchi/taotao | /taotao-manager-web/src/main/java/com/taotao/controller/ContentController.java | UTF-8 | 1,473 | 1.921875 | 2 | [] | no_license | package com.taotao.controller;
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.RequestParam;
import org.springframework.web.bind.annot... | true |
8f861b4b82cdbcddb1131377dec6bcf567c325f9 | Java | amritsingh4100/oneness | /app/src/main/java/com/amrit/oneness/Activity/LoginAndRegisterScreen.java | UTF-8 | 1,780 | 2.078125 | 2 | [] | no_license | package com.amrit.oneness.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager2.w... | true |
383ecc3de743cedc7f3320fc0d78ac57c079b0be | Java | Adaptivity/Growthcraft-1.7 | /src/java/growthcraft/core/integration/WailaIntegrationBase.java | UTF-8 | 330 | 1.882813 | 2 | [] | no_license | package growthcraft.core.integration;
import cpw.mods.fml.common.event.FMLInterModComms;
// Because sometimes you don't want to do stupid stuff over and over again
public class WailaIntegrationBase
{
public WailaIntegrationBase()
{
FMLInterModComms.sendMessage("Waila", "register", getClass().getName() + ".registe... | true |
51773333961a478254e7713637ed88497ecc8f24 | Java | Stomick/avfofun | /app/src/main/java/evfor/fun/skvader/ui/adapters/FilterableListAdapter.java | UTF-8 | 966 | 2.265625 | 2 | [] | no_license | package evfor.fun.skvader.ui.adapters;
import android.annotation.SuppressLint;
import evfor.fun.skvader.ui.utils.ListFilter;
import evfor.fun.skvader.ui.utils.iListFilter;
import evfor.fun.skvader.utils.Predicatable;
import java.util.List;
public abstract class FilterableListAdapter<T extends Predicatable, H extend... | true |
87a44624755aac712000b75ee2cd4390378d7a06 | Java | pikolinianita/SWTest-sec | /src/main/java/pl/sobczak/swapp/httpconsume/SwapiUrls.java | UTF-8 | 699 | 2.25 | 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 pl.sobczak.swapp.httpconsume;
/**
*
* @author piko
*/
public enum SwapiUrls {
PEOPLE("https://swapi.dev/a... | true |
b3a4ac6ab64be8231775df95f8350eba0ea8e1ca | Java | tabria/BGXTrader | /src/main/java/trader/exit/service/ClosePositionService.java | UTF-8 | 1,877 | 2.9375 | 3 | [] | no_license | package trader.exit.service;
import trader.broker.BrokerGateway;
import trader.strategy.TradingStrategyConfiguration;
import trader.entity.trade.BrokerTradeDetails;
import java.math.BigDecimal;
import java.util.HashMap;
public class ClosePositionService {
private static final String MARKET_ORDER = "marketOrder";... | true |
674dc7b58043fd0511a23c1cf13892141f0ea719 | Java | DomenikaD/Factura | /src/ec/edu/ups/vista/VentanaEliminarCliente.java | UTF-8 | 5,144 | 2.109375 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ec.edu.ups.vista;
import ec.edu.ups.controladores.ControladorCliente;
import javax.swing.JOptionPane;
/**
*
* @author Domen... | true |
6389244d2f36616f14aae2211c14cb00c70142cb | Java | oyakimets/ibabai_r | /IbabaiRetail/src/com/android/ibabairetail/proto/Promoact.java | UTF-8 | 429 | 2 | 2 | [] | no_license | package com.android.ibabairetail.proto;
import org.json.JSONObject;
public class Promoact {
JSONObject pa=null;
public Promoact(JSONObject pa) {
this.pa=pa;
}
public int getPromoId() {
return(pa.optInt("promoact_id"));
}
public int getClientId() {
return(pa.optInt("client_id"));
}
public int getDisco... | true |
b6c8cb990924fadfd1c836452c0473f5793586d5 | Java | edadasko/SoftwareDesign_labs | /lab5_Battleship/app/src/main/java/com/example/battleship/model/Grid.java | UTF-8 | 780 | 3.078125 | 3 | [] | no_license | package com.example.battleship.model;
import java.io.Serializable;
public class Grid implements Serializable {
public static final int Height = Position.MaxX + 1;
public static final int Width = Position.MaxY + 1;
private CellStatus[][] cells;
public Grid() {
cells = new CellStatus[Height][W... | true |