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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
95dfa9c43cfd4dceb18dac11e65d965dd9c3c4f1 | Java | josenaves/algorithms-101 | /euclid/src/com/josenaves/euclid/gcd/EuclidsAlgorithm.java | UTF-8 | 876 | 3.859375 | 4 | [
"MIT"
] | permissive | package com.josenaves.euclid.gcd;
/**
* Compute the greatest common divisor of two nonnegative numbers.
* @author @josenaves
*/
public class EuclidsAlgorithm {
public static void main(String[] args) {
System.out.println("GCD of 2 and 3 = " + gcd(2, 3));
System.out.println("GCD of 2 and 4 = " + gcd(2, 4));
S... | true |
b43235e9fc5e6d411ab7378a3dc00e4b08c35b3a | Java | damianprog/allbooks-webservice-client | /src/test/java/com/allbooks/webapp/utils/test/ReaderBookRatingUpdaterTest.java | UTF-8 | 2,069 | 2.0625 | 2 | [] | no_license | package com.allbooks.webapp.utils.test;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc... | true |
adbf633197a1f8875bc94f31be198f9ee9eb8390 | Java | foreverxwwl/algorithm | /src/leetcode/offer/num35/Solution.java | UTF-8 | 912 | 3.171875 | 3 | [] | no_license | package leetcode.offer.num35;
/**
* @outhor li
* @create 2020-05-30 17:42
* 35. 复杂链表的复制
*/
public class Solution {
// public Node copyRandomList(Node head) {
// Node copyList = null;
// Node now = null;
// Node pre = null;
// //首先建立新链表的头节点
// if (head != null){
// /... | true |
49551fa6683a0e4ca0a9d75100fc9c662407a16f | Java | abobwhite/example-api | /src/test/java/com/daugherty/e2c/business/mutator/ProductMessageMutatorTest.java | UTF-8 | 5,451 | 2.171875 | 2 | [] | no_license | package com.daugherty.e2c.business.mutator;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.verifyZeroInteractions;
import static org.mockito.Mockito.when;
impo... | true |
91e0779219eb485eea7f8b6eda06bca7d2a71cda | Java | serhansezgin/SDAJAVAStudies | /JamesBond.java | UTF-8 | 404 | 2.84375 | 3 | [] | no_license | package lesson2;
public class JamesBond {
//psvm
public static void main(String[] args) {
String userName = "James Bond";
if (userName == ("James Bond")) {
System.out.println("Welcome 007");
} else {
System.out.pr... | true |
0dff658ba8c609950ac613635a3b8be41f97f094 | Java | pangjinyuan/JSPDemo01 | /src/main/java/cn/edu/guet/dao/impl/UserDaoImpl.java | UTF-8 | 6,779 | 2.375 | 2 | [] | no_license | package cn.edu.guet.dao.impl;
import cn.edu.guet.bean.User;
import cn.edu.guet.dao.IUserDao;
import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;
import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
import java.util.jar.JarOutputSt... | true |
8d38e148723e1c1554220d89d5014f663cacdffd | Java | jhasan94/GreenMedic-user-app | /app/src/main/java/com/capstone/greenmedicuser/views/MainActivityFragment.java | UTF-8 | 8,541 | 1.648438 | 2 | [] | no_license | package com.capstone.greenmedicuser.views;
import android.Manifest;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.location.Location;
import android.location.LocationManager;
import android.os.Build;
import... | true |
3c6c0f5b9db6bffca8b6f3665ef9e746ca702511 | Java | jitendrakr93/JLC_ALL_PROGRAMS | /JLC CORE JAVA/src/com/classcore/jlc03/Lab285.java | UTF-8 | 260 | 2.5 | 2 | [] | no_license | package com.classcore.jlc03;
public class Lab285 {
public static void main(String[] args) {
Hello_31 h=new Hello_31();
//h.show(10);
System.out.println("Hello Guys");
}
}
class Hello_31{
/*int show(int x){
System.out.println("show()");
}*/
} | true |
2d0b34ade30165c87ef2989c1019f951c94b52b4 | Java | soncomqiq/backend-fgxbio2 | /src/main/java/th/ac/chula/fgxbio2/repository/RoleRepository.java | UTF-8 | 385 | 2.046875 | 2 | [] | no_license | package th.ac.chula.fgxbio2.repository;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import th.ac.chula.fgxbio2.models.ERole;
import th.ac.chula.fgxbio2.models.Role;
@Repository
public interface RoleRepository extends JpaR... | true |
f1007edca056fdd3a75679d2525792c60eb8bb4a | Java | yongli991581716/LYSwipeRefreshLayout | /library/src/main/java/com/ly/library/view/LYSwipeRefreshLayout.java | UTF-8 | 18,621 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package com.ly.library.view;
import android.content.Context;
import android.content.res.TypedArray;
import android.os.Build;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.Moti... | true |
00afbd94601d3748e119135b1de6a3b7e1e02cb4 | Java | Mangdar/tera-jenova | /src/TeraLogin/src/main/java/com/angelis/tera/login/process/services/DatabaseService.java | UTF-8 | 1,868 | 2.296875 | 2 | [] | no_license | package com.angelis.tera.login.process.services;
import java.io.File;
import org.apache.log4j.Logger;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.AnnotationConfiguration;
import com.angelis.tera.common.process.services.AbstractService;
import com.angelis.tera.login.domain.entity.database.A... | true |
9616b71f8bf013fda879f9ce2c6fe0e7f5d02a3d | Java | Xephorium/EventGrapher | /src/model/Event.java | UTF-8 | 641 | 2.546875 | 3 | [] | no_license | package model;
import model.types.EventType;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class Event {
/*--- Variables ---*/
public Date date;
public EventType type;
public List<String> headliners;
public String location;
public List<String> gear;
p... | true |
4279e2ef4a0f0f70af8d957c822582bfb1ebc434 | Java | 2019211001001026-LiuDingKun/2019211001001026-LiuDingKun | /src/main/java/com/liudingkun/week6/demo/SearchServlet.java | UTF-8 | 1,269 | 2.421875 | 2 | [] | no_license | package com.liudingkun.week6.demo;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.IOException;
public class SearchServlet extends HttpServlet {
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
request.s... | true |
6b3bb2c30c710edb1bf4ead48f3994801a3b6f18 | Java | foxsantor/BioReg-Android-Project | /app/src/main/java/com/example/bioregproject/entities/Oil.java | UTF-8 | 1,781 | 2.265625 | 2 | [] | no_license | package com.example.bioregproject.entities;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;
import androidx.room.TypeConverters;
import com.example.bioregproject.Utils.DateConverter;
import java.util.Date;
@Entity(tableName = "oil_table")
@TypeConverters(DateConverter.clas... | true |
91ac6e8a2ee3f68c123eec69c681c2028ad26e2b | Java | RatakondalaArun/CodeLab | /languages/java/Check Valid Password.java | UTF-8 | 649 | 3.453125 | 3 | [] | no_license | import java.io.*;
import java.util.Scanner;
public class TestClass {
public static void main(String[] args) {
String n;
Scanner in = new Scanner(System.in);
n=in.next();
boolean output = test(n);
if(output)
System.out.print("Password is valid");
else
System.out.... | true |
14ddb2500bb827695325609378a8decac328c74a | Java | yuanyangwu/flink-training | /src/test/java/yuanyangwu/flink/training/streaming/operator/WindowCoGroupTest.java | UTF-8 | 7,319 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package yuanyangwu.flink.training.streaming.operator;
import org.apache.flink.api.common.functions.CoGroupFunction;
import org.apache.flink.api.common.functions.MapFunction;
import org.apache.flink.api.java.functions.KeySelector;
import org.apache.flink.api.java.tuple.Tuple2;
import org.apache.flink.api.java.tuple.Tup... | true |
f4ef352216635c2fba01c07373f129da7d1239e0 | Java | zytsnlz/- | /src/main/java/cn/edu/ncst/car/dto/MainLicenseApplyInfo.java | UTF-8 | 4,239 | 2.203125 | 2 | [] | no_license | package cn.edu.ncst.car.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
/**
* 自定义返回的用户通行证申请记录
*/
public class MainLicenseApplyInfo implements Serializable {
private Integer id;
private Integer use... | true |
0b3753d3d8c8bf154d5bcd03af1811fe8ea41a81 | Java | GreenNest/Backend | /GreenNest/src/main/java/com/example/GreenNest/model/Cart.java | UTF-8 | 1,529 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | package com.example.GreenNest.model;
import javax.persistence.*;
@Entity
@Table(name = "")
public class Cart {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "cart_id")
private long cartId;
@Column(name = "quantity")
private int quantity;
@Column(name = "total_pr... | true |
65f98080247e20570a0ce449cd9238df0fa9a0b5 | Java | koulikoro/semeureka-frame | /com.semeureka.frame/src/main/java/com/semeureka/frame/service/impl/MenuServiceImpl.java | UTF-8 | 2,461 | 2.3125 | 2 | [] | no_license | package com.semeureka.frame.service.impl;
import java.util.List;
import javax.annotation.PostConstruct;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.... | true |
df87d84cd5a22d7e34cb0932db140076809c05fb | Java | SevenXin9/flx | /src/main/java/com/service/RoleService.java | UTF-8 | 1,140 | 2.140625 | 2 | [] | no_license | package com.service;
import com.VO.RoleVo;
import com.bean.Role;
import java.util.List;
import java.util.Map;
/**
* @create 2019/5/13
*/
public interface RoleService {
/**
* 条件查询所有角色信息
* @param roleVo
* @return
*/
Map<String, Object> findRoles(RoleVo roleVo);
/**
* 根据id查询角色信息
... | true |
075bc1be5a72ce6734b72173f18c72b4d0eb0794 | Java | ShBr2k/SET002 | /src/com/company/HW02Inheritance/Main.java | UTF-8 | 4,104 | 3.5 | 4 | [] | no_license | package com.company.HW02Inheritance;
public class Main {
private static Employee[] arrayEmployee = new Employee[6];
//Show Employees
private static void showEmployees() {
// Show info
for (Employee employee : arrayEmployee) {
//System.out.println(employee.showInfo());
... | true |
911580736d58bb92e671bec5974fb839024b5889 | Java | 5vbear/palinuridae | /src/main/java/moe/yuna/palinuridae/utils/PojoAnnotationUtil.java | UTF-8 | 1,428 | 2.375 | 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 moe.yuna.palinuridae.utils;
import com.google.common.base.CharMatcher;
import java.lang.reflect.Field;
/**
*
* @author rik... | true |
c93524db80c2daedc8e58f39242b0ba1113b3409 | Java | apache/druid | /indexing-service/src/main/java/org/apache/druid/indexing/common/task/batch/parallel/GenericPartitionLocation.java | UTF-8 | 4,214 | 1.945313 | 2 | [
"EPL-1.0",
"Classpath-exception-2.0",
"ISC",
"GPL-2.0-only",
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-generic-cla",
"0BSD",
"LicenseRef-scancode-sun-no-high-risk-activities",
"LicenseRef-scancode-free-unknown",
"JSON",
"LicenseRef-scancode-unico... | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
bb89e4b3f277e843ddf9ad283cad590df0201262 | Java | jfsfelipe2011/flappy-bird | /src/com/zegames/entities/Player.java | UTF-8 | 983 | 2.828125 | 3 | [] | no_license | package com.zegames.entities;
import com.zegames.main.Game;
import com.zegames.world.World;
import java.awt.*;
import java.awt.image.BufferedImage;
public class Player extends Entity{
public boolean isPressed = false;
public Player(int x, int y, int width, int height,double speed,BufferedImage sp... | true |
ff3e003eb3a77e1034beba30497652a8770a62cd | Java | RafaSchmitz/Rafael-Schmitz | /Projetos PW5SI/projetofinal/src/main/java/br/edu/utfpr/projetofinal/model/PedidoProdutoPk.java | UTF-8 | 672 | 2.0625 | 2 | [] | no_license | package br.edu.utfpr.projetofinal.model;
import lombok.*;
import javax.persistence.Embeddable;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import java.io.Serializable;
@Embeddable
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(of = {"pedido", "produto"})
public class PedidoPro... | true |
c4b62598ebb7b7414b124ec54081992f44252cda | Java | marcelomhc/Algorithms-course | /Percolation/src/PercolationStats.java | UTF-8 | 1,678 | 3.125 | 3 | [] | no_license | import edu.princeton.cs.algs4.StdStats;
import edu.princeton.cs.algs4.StdRandom;
import edu.princeton.cs.algs4.StdOut;
public class PercolationStats {
private double[] results;
private int T;
private int runTest(int n) {
Percolation grid = new Percolation(n);
while(!grid.percolates()) {
... | true |
bcf0f07c9827c29ecb650e8c0282a2ddb616a6ab | Java | nuui/lottery | /src/main/java/com/youge/yogee/interfaces/util/FundModel.java | UTF-8 | 776 | 2.75 | 3 | [
"Apache-2.0"
] | permissive | package com.youge.yogee.interfaces.util;
/**
* anbo ,2017-10-17, 枚举
*/
public enum FundModel {
CZ(1,"充值"),
TX(2,"提现");
private int fundNum;
private String fundDescription;
FundModel(int fundNum, String fundDescription){
this.fundNum=fundNum;
this.fundDescription=fundDescription;
}
public static String... | true |
e65b23a40f7c1b64ab7feb4414b930f411aed616 | Java | GitGhibli/JavaSecurity | /FileEncDecRypt/src/com/AesRsa/AbstractDirCipher.java | UTF-8 | 383 | 2.15625 | 2 | [] | no_license | package com.AesRsa;
public abstract class AbstractDirCipher {
protected FileCipherComponent fileCipher;
protected AbstractDirCipher(String algorithm, String secretKey){
this.fileCipher = new FileCipherImpl(algorithm, secretKey);
}
public abstract void Encrypt(String input, String output);
... | true |
82bb4b717082a760f264c968110a0e3f47fcde4b | Java | MrDeathITA/Java-Course | /vr222ed_assign2/DateFormat.java | UTF-8 | 950 | 3.484375 | 3 | [] | no_license | package vr222ed_assign2;
import java.util.Scanner;
public class DateFormat {
static Scanner s = new Scanner(System.in);
public static String date(int year, int month, int day, char type) {
String date = "";
if (type=='b') {
date = String.format("%04d%c%02d%c%02d", year, type, month, type, day);
}
if (t... | true |
a2416029a411a573ce1069eeda009e29e104cab0 | Java | adailtonlima/portal-vagas-bt | /src/main/java/br/com/vagas/service/criteria/PessoaCriteria.java | UTF-8 | 11,458 | 2.171875 | 2 | [] | no_license | package br.com.vagas.service.criteria;
import java.io.Serializable;
import java.util.Objects;
import tech.jhipster.service.Criteria;
import tech.jhipster.service.filter.BooleanFilter;
import tech.jhipster.service.filter.DoubleFilter;
import tech.jhipster.service.filter.Filter;
import tech.jhipster.service.filter.Float... | true |
1aad602519cb41c98c3faab736b019f481686a7f | Java | zubata/2019-09-otus-spring-Zubkov | /homework13/src/test/java/ru/otus/spring/homework13/controllers/ControllerForBookTest.java | UTF-8 | 10,193 | 2.21875 | 2 | [] | no_license | package ru.otus.spring.homework13.controllers;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.... | true |
60ec06777f21dc1ba5a2c1a05762d9e24afe7efa | Java | grafjo/urlaubsverwaltung | /src/test/java/org/synyx/urlaubsverwaltung/calendar/PeriodConverterTest.java | UTF-8 | 988 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package org.synyx.urlaubsverwaltung.calendar;
import org.junit.jupiter.api.Test;
import javax.persistence.Converter;
import java.time.Period;
import static org.assertj.core.api.Assertions.assertThat;
class PeriodConverterTest {
@Test
void ensureConvertToDatabaseColumn() {
final PeriodConverter sut... | true |
b2f13be1559bd7d1829fd7d7d586d38fd2333638 | Java | 5A59/leetcode | /src/main/java/network/LeetCodeSpider.java | UTF-8 | 6,749 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package network;
import org.jsoup.nodes.Element;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import utils.Logger;
import value.DetailPro;
import value.Discuss;
import value.Problem;
/**
* Created by zy on 15-10-16.
*/
public class ... | true |
cc47dd936756311fbae2c5a1bc949a55db7f99b8 | Java | syngebee/cloud2020 | /cloudalibaba-sentinel-service8401/src/main/java/com/itheima/cloud/alibaba/myhandler/CustomerBlockHandler.java | UTF-8 | 561 | 1.960938 | 2 | [] | no_license | package com.itheima.cloud.alibaba.myhandler;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.itheima.springcloud.entities.CommonResult;
public class CustomerBlockHandler {
public static CommonResult handerException(BlockException exception){
return new CommonResult(4444,"按照客户自定义的gl... | true |
7394cafb7a12aa588d2cd4072b295dda10977ea6 | Java | Dmitry374/MyTestingApp | /app/src/main/java/com/example/dima/mytestingapp/api/CurrencyItemClickListener.java | UTF-8 | 224 | 1.6875 | 2 | [] | no_license | package com.example.dima.mytestingapp.api;
import com.example.dima.mytestingapp.Items.ItemRates;
/**
* Created by Dima on 22.10.2017.
*/
public interface CurrencyItemClickListener {
void onItemClick(ItemRates c);
}
| true |
8006f84a2721f3674adaf25ce4370ded8fd796fd | Java | jsbxyyx/seata_example | /test/src/main/java/org/xxz/test/config/GlobalExceptionHandler.java | UTF-8 | 996 | 2.078125 | 2 | [] | no_license | package org.xxz.test.config;
import com.google.gson.JsonObject;
import com.google.gson.JsonPrimitive;
import io.seata.core.context.RootContext;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springf... | true |
c16d93e2718c5c350422521ee241319d97292dd7 | Java | 25A0/DCnet | /src/component/MainInterface.java | UTF-8 | 484 | 2.171875 | 2 | [
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package component;
import dc.DCConfig;
import cli.CLC;
import dc.cli.MultiStationInterface;
public class MainInterface extends CLC {
private MultiStationInterface msi;
public MainInterface() {
System.out.println("DCnet command line interface, v" + DCConfig.VERSION);
System.out.println("2014, Moritz Neikes, m.... | true |
f5781d55a4a851cae087812736b7883d60cb7c0b | Java | itmarte/aifeng-test | /spring/src/test/java/com/aifeng/account/AccountOptRPCServiceIml.java | UTF-8 | 7,501 | 2.421875 | 2 | [] | no_license | package com.aifeng.account;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.StringUtils;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicLong;
/**
* 账户操作RPC服务
*/
public class AccountOptRPCServiceIml implements Ac... | true |
f3903d353809a8b1b2499959bc01fc1614baa0c9 | Java | jzigda/Week5 | /src/am/iunetworks/jigme/week5/Qn1.java | UTF-8 | 1,204 | 3.328125 | 3 | [] | no_license | package am.iunetworks.jigme;
import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
class Qn1 {
public static void main(String[] args) {
BufferedReader read = null;
BufferedWriter writer = null;
ArrayList<String> details = new ArrayList<String>();
try {
... | true |
88ffa52a0c5ab206d259f71c5199bebffb829946 | Java | pythons/alita | /alita-framework/alita-starters/alita-authorization-server-spring-boot-starter/src/main/java/top/klw8/alita/starter/authorization/common/AlitaUserDetailsService.java | UTF-8 | 1,555 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package top.klw8.alita.starter.authorization.common;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import top.kl... | true |
ee679382f31cfe78425b5a9c6be7f23a9c9377a6 | Java | shikhacoder/studentdemoapp | /studentdemoapp/src/main/java/com/studentdemo/controller/TestController.java | UTF-8 | 960 | 2.03125 | 2 | [] | no_license | package com.studentdemo.controller;
import java.util.List;
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.RequestBody;
import or... | true |
020fb98a91fc5b9b11b0b7086c314d820f64f6a5 | Java | xvar/AndroidDevMetrics | /androiddevmetrics-runtime/src/main/java/com/frogermcs/androiddevmetrics/internal/metrics/model/FpsDropMetric.java | UTF-8 | 1,206 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | package com.frogermcs.androiddevmetrics.internal.metrics.model;
import java.util.List;
/**
* Created by Miroslaw Stanek on 17.02.2016.
*/
public class FpsDropMetric {
public double averageFps;
public int dropsCount;
public String activityName;
public static FpsDropMetric oneDrop(double fps) {
... | true |
2e527e5384a9e1e1e8fdb4a026757ba63ebd6464 | Java | Nikola-Nikolic94/FinalBootcampProject | /src/pages/SearchResultPage.java | UTF-8 | 743 | 2.546875 | 3 | [] | no_license | package pages;
import java.util.ArrayList;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class SearchResultPage extends BasicPage{
public SearchResultPage(WebDriver driver) {
super(driver);
}
public List<WebElement> get... | true |
2c87222279fd41d6f58e315d0bf8ed85005913e3 | Java | LagFer/New | /Practica-aye2/src/PrototipoParcial/iGravable.java | UTF-8 | 190 | 2.125 | 2 | [] | no_license | package PrototipoParcial;
public interface iGravable {
void setAlicuota(float alicuota) throws alicuotaInvalidaException;
float getAlicuota();
float calcularImpuesto();
}
| true |
7d01ad9a366ff44a61f2c78721daed6f032f141a | Java | Anterion/MES | /AlquilerDeVehiculos/src/persistencia/dto/SucursalDTO.java | ISO-8859-1 | 1,072 | 3.09375 | 3 | [] | no_license | package persistencia.dto;
/**
* @author Lois
* Clase Data transfer object de Sucursal. Utilizada para generar las tablas SQL.
*/
public class SucursalDTO {
private int id;
private String direccion;
/**
* Constructor de sucursal.
* @param id Id de la sucursal
* @param direccion Direccin fs... | true |
47994a3f587ee9e2861ac752c8a82a094dd13ec6 | Java | IMihaylov1/JavaFundamentals-Softuni | /Fundamentals_Text_Processing/src/DigitsLettersAndOther_05.java | UTF-8 | 883 | 3.765625 | 4 | [] | no_license | import java.util.Scanner;
public class DigitsLettersAndOther_05 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine();
StringBuilder letters = new StringBuilder();
StringBuilder numbers = new StringBuilder... | true |
32d161f0044ec966cb0d47b54e416a11220c71e4 | Java | cryptofordevs/blog-articles-java | /src/main/java/AttackCbcAndEcb/EcbByteByByte/EcbDecryptor.java | UTF-8 | 3,446 | 3.140625 | 3 | [
"Apache-2.0"
] | permissive | package AttackCbcAndEcb.EcbByteByByte;
import util.Util;
import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
import java.security.InvalidKeyException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/**
* only for ebc with no padding
*/
class EcbDecrypto... | true |
9f0af11c9a89db67c312f6b9ed459187c3b838cd | Java | aiclaudev/soundless-check-in | /app/src/main/java/com/example/soundlesscheck_in/SpeakerFragment.java | UTF-8 | 3,240 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package com.example.soundlesscheck_in;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import androidx.annotatio... | true |
cd8c5ebad7b3d855823c4d6494b5c332655ab580 | Java | paulwedeck/settlers-remake | /jsettlers.main.android/src/main/java/jsettlers/main/android/mainmenu/gamesetup/MultiPlayerSetupViewModel.java | UTF-8 | 5,381 | 2.03125 | 2 | [
"MIT"
] | permissive | package jsettlers.main.android.mainmenu.gamesetup;
import java.util.Iterator;
import java.util.List;
import jsettlers.common.ai.EPlayerType;
import jsettlers.common.menu.IJoinPhaseMultiplayerGameConnector;
import jsettlers.common.menu.IMultiplayerListener;
import jsettlers.common.menu.IMultiplayerPlayer;
import jsett... | true |
1a93286f11b5fcbd832d3dac8ccaa0eca3c0f8c1 | Java | JeremiasNS/Projects | /server/src/main/java/com/jeremiasneres/server/dao/DAO.java | UTF-8 | 296 | 2.046875 | 2 | [] | no_license | package com.jeremiasneres.server.dao;
import com.jeremiasneres.server.model.Cadastro;
/**
*
* @author aluno
*/
public interface DAO<T extends Cadastro> {
T findById(long id);
T findByField(String fieldName, Object value);
boolean remove(T entity);
void save(T entity);
}
| true |
daaa078f9b50de20629f75827dc328d69260275e | Java | MarianMocanu/software-construction_3rdSemester | /AssignmentClient/src/Client.java | UTF-8 | 1,709 | 3.390625 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
import java.net.UnknownHostException;
public class Client {
public static void main(String[] args) throws IOException {
if (args.length != 2) {
System... | true |
57257343a666ae5d76d470c107ad5f11f7394fb3 | Java | 272680940/MyProject_hqyj | /src/main/java/com/hqyj/service/impl/CustomerServiceImpl.java | UTF-8 | 525 | 2.109375 | 2 | [] | no_license | package com.hqyj.service.impl;
import com.hqyj.dao.Customer1Mapper;
import com.hqyj.pojo.Customer1;
import com.hqyj.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class CustomerServiceImpl implements CustomerServic... | true |
ebd2ff9b5d22ee8ab0332271b0957babd7f9d48a | Java | joch77/exciteRepo1 | /exciteATMP/src/com/my/atm/util/BillComparator.java | UTF-8 | 1,199 | 3.09375 | 3 | [] | no_license | package com.my.atm.util;
/**
* BillComparator
*
* Custom Comparator for comparing Bills object.
*
* @author jochebed
* @version 1.0
*
* Change History:
* --------------------------------------------------------------------------------------------
* Date DTS ID Modified By Brief Description of Chang... | true |
79f8e0126ad1f8fab572e93fe471221fc160a71c | Java | basanthjenuhb/CompetitiveProgramming | /LeetCode/leetcodeTrees/src/P124.java | UTF-8 | 902 | 2.890625 | 3 | [] | no_license | /**
* @author bjenuhb
*/
public class P124 {
private class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode() {}
TreeNode(int val) { this.val = val; }
TreeNode(int val, TreeNode left, TreeNode right) {
this.val = val;
this.left = left;
th... | true |
67fb86203891ef30048ffaa8cbdc18278da2b7a2 | Java | KenBeanNet/Divine | /xolova/blued00r/divinerpg/blocks/BlockSolarPanel.java | UTF-8 | 8,383 | 2.359375 | 2 | [] | no_license | package xolova.blued00r.divinerpg.blocks;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
publi... | true |
dd39581675731f24cb691bc84b4167af32e6649f | Java | pingidentity/pf-agentless-ik-sample-java | /referenceid/src/main/java/com/pingidentity/referenceid/util/DropoffUtil.java | UTF-8 | 4,057 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package com.pingidentity.referenceid.util;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSocketFa... | true |
082b226dc1ffea110fd61db35e6cc119b5982160 | Java | InnovaceTechnology/BasicString | /learnstring/src/main/java/com/example/learnstring/Arrays.java | UTF-8 | 1,268 | 3.234375 | 3 | [] | no_license | package com.example.learnstring;
/**
* Created by innovace on 22/1/18.
*/
public class Arrays {
public static void main(String[] args) {
int game1 = 100;
int game2 = 200;
int game3 = 300;
int game4 = 400;
int game5 = 500;
int[]mArray = new int[5];
doubl... | true |
5958cec5ff2235b4c41fa8b7e12dcdf295e93116 | Java | nirmalakli/placefinder | /src/main/java/org/travel/nirmal/placefinder/domain/Place.java | UTF-8 | 1,360 | 2.796875 | 3 | [] | no_license | package org.travel.nirmal.placefinder.domain;
import lombok.Data;
import java.io.Serializable;
import java.util.Objects;
@Data
public class Place implements Serializable {
private final String name;
private final String type; // TODO: Promote type to an enum
private final Coordinate coordinate;
publ... | true |
e5e64762e7590394fe379633d57727601ad8b1cb | Java | mazwu110/libhttpapiMvvmDemo | /qlib/src/main/java/com/qlib/qutils/QUtils.java | UTF-8 | 3,119 | 2.328125 | 2 | [] | no_license | package com.qlib.qutils;
import android.app.Activity;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.provider.Settings;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import ... | true |
fb261e2997c8ef9c0909a67dd54c1d4cb843196c | Java | robertstuart/TwoPotatoeController | /src/twoPotatoe/Log.java | UTF-8 | 476 | 2.546875 | 3 | [] | no_license | package twoPotatoe;
public class Log {
// Just print this out for now. We may add a sysem log file.
public static void logTrace(String msg, boolean trace) {
System.err.println("TPLog: " + msg);
if (trace) {
StackTraceElement[] el = Thread.currentThread().getStackTrace();
for (int i = 0; i < el.length; i++)... | true |
316a00a546ffa2287d9fe60eaf30ff4e2fdb79a5 | Java | thedydgoon/ZIZI | /app/src/main/java/com/thedyd/zizi/MyGallery.java | UTF-8 | 710 | 2.25 | 2 | [] | no_license | package com.thedyd.zizi;
import java.io.Serializable;
/**
* Created by Jeon Sung Yong on 2015-12-04.
*/
public class MyGallery implements Serializable {
public String galleryTitle;
public String gallerySubtitle;
public int galleryProfile;
public MyGallery(String galleryTitle, String gallerySubtitl... | true |
e443c87a6e0e1c1531c639aad8b0cb0e56234432 | Java | iverJisty/prometheus_int_exporter | /src/main/java/org/onosproject/monitoring/server/IntPushGateway.java | UTF-8 | 7,277 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package org.onosproject.monitoring.server;
import io.netty.buffer.ByteBuf;
import io.netty.channel.socket.DatagramPacket;
import io.prometheus.client.CollectorRegistry;
import io.prometheus.client.Gauge;
import io.prometheus.client.exporter.PushGateway;
import org.onosproject.monitoring.packet.*;
import java.io.IOExc... | true |
fc220f44ad0c7e01743ff9b3f5495e75196b05ef | Java | 6638112/propertyERP-2 | /api_manager/src/main/java/com/cnfantasia/server/ms/limitBuyActivity/service/ILimitBuyActivityService.java | UTF-8 | 1,236 | 1.984375 | 2 | [] | no_license | package com.cnfantasia.server.ms.limitBuyActivity.service;
import java.math.BigInteger;
import java.util.List;
import java.util.Map;
import com.cnfantasia.server.domainbase.limitBuyActivity.service.ILimitBuyActivityBaseService;
import com.cnfantasia.server.ms.limitBuyActivity.entity.LimitBuyActivityDetailDto;
import ... | true |
e7a2f38528c62cf82aed434cdde3bedac9d9b581 | Java | xxrepo/EuroPharm | /app/src/main/java/com/pharogrammer/fedora/europharm/mvp/model/LoginModel.java | UTF-8 | 605 | 2.171875 | 2 | [] | no_license | package com.pharogrammer.fedora.europharm.mvp.model;
import com.pharogrammer.fedora.europharm.http.data.EuroClient;
import com.pharogrammer.fedora.europharm.mvp.core.LoginMVP;
import com.pharogrammer.fedora.europharm.mvp.repos.Repository;
import io.reactivex.Observable;
public class LoginModel implements LoginMVP.M... | true |
94fa085592a75839f587515347831fa7689a3d51 | Java | jvaca92/RD-Sandbox | /Pf4jTestApp/src/main/java/my/sandbox/pf4j/testapp/SampleApplication.java | UTF-8 | 1,482 | 2.234375 | 2 | [] | no_license | package my.sandbox.pf4j.testapp;
import javafx.application.Application;
import javafx.event.EventType;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import my.sandbox.pf4j.testapp.controllers.events.PluginActionEvent;
import my.sandbox.pf4j.te... | true |
034448ca480361c2b45a853b1a3680e979dadf3e | Java | akottu/GridSimulations | /src/cellsociety/exception/InvalidSimTypeException.java | UTF-8 | 424 | 2.75 | 3 | [
"MIT"
] | permissive | package cellsociety.exception;
/**
* InvalidSimTypeException is thrown when required simulation type for simulation is non-existent
*/
public class InvalidSimTypeException extends RuntimeException {
/**
* creates exception with an error message parameter
*
* @param errorMessage message to display back to... | true |
76c7197ae726e454bb9f3fb27af54e2948c44e62 | Java | AlexYu-beta/HorseGambleMiner | /JsonHelper/src/bean/Match.java | UTF-8 | 564 | 2.875 | 3 | [] | no_license | package bean;
import java.util.ArrayList;
/**
* Created by alex on 3/13/17.
*/
public class Match {
public Match(int matchNum, ArrayList<Sukaima> sukaimas) {
this.matchNum = matchNum;
this.sukaimas = sukaimas;
}
private int matchNum;
private ArrayList<Sukaima> sukaimas;
public... | true |
fbb494b8be1a3bf13bc477dae09e31be26d2ca6e | Java | IcyEzra/JavaProgramming2020_B21 | /src/Replts/replt_205_MethodsWithArrays_addElements.java | UTF-8 | 570 | 3.15625 | 3 | [] | no_license | package Replts;
import java.util.Arrays;
import java.util.Collections;
public class replt_205_MethodsWithArrays_addElements {
public static int[] addElements(int[] ints1, int[] ints2) {
int[] arr = new int[5];
for(int i = 0; i <= 4; i++) {
arr[i] = ints1[i] + ints2[i];
}
... | true |
d37209b2f859f6bdf3676314631fa177725fe4b6 | Java | tinahbu/Craigslist_Crawler | /crawler.java | UTF-8 | 5,420 | 2.546875 | 3 | [] | no_license |
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.BufferedWriter;
import java.io.IOException;
import java.util.HashSet;
import java.util.HashMap;
import java.util.List;
import java.util.ArrayList;
import java.net.*;
//import org.apache.log4j.Logg... | true |
2b4246a3b0753bd45b58524d3e4785900d3bf62b | Java | Bingorl/xkcampus | /src/main/java/com/biu/wifi/campus/result/Result.java | UTF-8 | 1,589 | 2.390625 | 2 | [] | no_license | package com.biu.wifi.campus.result;
public class Result {
public static final int SQL_EXECUTE_FAILURE = -1;//数据库操作失败
public static final int SUCCESS = 1;//成功
public static final int FAILURE = 2;//服务器异常(失败)
public static final int NODATA = 3;//没有相关数据
public static final int REQUIRED = 4;//必要参数为空
... | true |
db431835e31a1754c2dcd95dafc600532400bb12 | Java | andregustavoo/adaptmcloud | /HWCop/src/healthwatcher/storage/Storage.java | UTF-8 | 365 | 1.992188 | 2 | [] | no_license | package healthwatcher.storage;
import java.io.File;
import java.util.Properties;
import java.util.logging.Level;
import lib.logging.LogMechanism;
public class Storage {
String user="";
String apiKey="";
public void storePhoto(String code, File photo){
System.out.println("N�o fiz nada");
}
public String lo... | true |
f45a9f140dc45fefe3f8e2e8d29c08d3e9256e57 | Java | HagarHussein/ContactCars.com | /src/main/java/pages/ChooseAdPage.java | UTF-8 | 382 | 2.234375 | 2 | [] | no_license | package pages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
public class ChooseAdPage extends AbstractPage {
private By addUsedCar = By.cssSelector("a.ad-car");
public ChooseAdPage(WebDriver driver) {
super(driver);
}
public LoginPage clickAddUsedCarBtn() {
clickButton... | true |
ce6297b289bf432e7e676f6aa889ceb1c3325ba0 | Java | ZaichenkoIvan/SaladOOP | /src/main/java/ua/mycompany/repository/CustomerRepository.java | UTF-8 | 253 | 1.898438 | 2 | [] | no_license | package ua.mycompany.repository;
import ua.mycompany.domain.customer.Customer;
import java.util.Optional;
public interface CustomerRepository extends CrudRepository<Customer, Long> {
Optional<Customer> findByEmail(String email);
}
| true |
c08e2b9e30f9f3d5dbf2045d1700255d3ee0dc2a | Java | charles-wangkai/leetcode | /find-the-punishment-number-of-an-integer/Solution.java | UTF-8 | 654 | 3.3125 | 3 | [] | no_license | import java.util.stream.IntStream;
class Solution {
public int punishmentNumber(int n) {
return IntStream.rangeClosed(1, n)
.filter(i -> search(String.valueOf(i * i), 0, i))
.map(i -> i * i)
.sum();
}
boolean search(String s, int index, int rest) {
if (index == s.length()) {
... | true |
73812c6a9fb3636e2f053a891358eb868a0397af | Java | navnbp/POC | /mckesson-POC-client/src/main/java/com/devRabbit/mckesson/entity/DebitMemo.java | UTF-8 | 3,604 | 2.078125 | 2 | [] | no_license | package com.devRabbit.mckesson.entity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.validation.constraints.NotNull;
public class DebitMemo implements Serializable {
private long id;
private Supplier supplier;
private Customer customer;
private Supplier t... | true |
4cfdc43e44cad703f68f355533bb9811f77875e8 | Java | ArekLopus/EJBTestJMS | /src/main/java/exceptions/exc/AppRuntimeException.java | UTF-8 | 344 | 2.015625 | 2 | [] | no_license | package exceptions.exc;
import javax.ejb.ApplicationException;
@ApplicationException(rollback=false)
public class AppRuntimeException extends RuntimeException {
private static final long serialVersionUID = 1L;
public AppRuntimeException() {
super();
}
public AppRuntimeException(String msg) {
... | true |
0b5142f2d3046fe48e6c8c5ed4129f3c0728cc0d | Java | Gavin-hyh/Test | /seckill/src/main/java/com/hyh/seckill/controller/SeckiilController.java | UTF-8 | 2,995 | 2.34375 | 2 | [] | no_license | package com.hyh.seckill.controller;
import com.hyh.seckill.pojo.OrderInfo;
import com.hyh.seckill.pojo.SeckillOrder;
import com.hyh.seckill.pojo.SeckillUser;
import com.hyh.seckill.result.CodeMsg;
import com.hyh.seckill.result.Result;
import com.hyh.seckill.service.GoodsService;
import com.hyh.seckill.service.SeckillO... | true |
218102eb8d863d0547d14c105b3a6ff31d0b6d1d | Java | matgessel/gwt-tk | /tk/branches/gwt1.4/src/java/asquare/gwt/tk/client/ui/CComposite.java | UTF-8 | 5,683 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2007 Mat Gessel <mat.gessel@gmail.com>
*
* 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 b... | true |
ca72ba0632146785335f4339d1e0bac76e8320df | Java | Intercisa/Java | /Hackerrank/30dayofcoding/helloworld/test/helloworld/HelloWorldTest.java | UTF-8 | 261 | 2.15625 | 2 | [] | no_license | package helloworld;
import static org.junit.Assert.assertEquals;
import org.junit.jupiter.api.Test;
class HelloWorldTest {
private HelloWorld helloW = new HelloWorld();
@Test
void test_1() {
assertEquals("Hello, World.", helloW.helloWorld());
}
}
| true |
c4dc0acb8dee1e16a53191c5f042bdddd4298605 | Java | apache/servicecomb-java-chassis | /foundations/foundation-protobuf/src/test/java/org/apache/servicecomb/foundation/protobuf/performance/engine/Protobuf.java | UTF-8 | 1,610 | 1.65625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
808166ebd4f8a1777072da5d914e06fb01f618c1 | Java | szmoma/DriftBottle | /src/com/hnmoma/driftbottle/model/MsgModel.java | UTF-8 | 1,953 | 1.929688 | 2 | [] | no_license | package com.hnmoma.driftbottle.model;
import java.io.Serializable;
public class MsgModel implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
String userId;
String msgId;
String nickName;
String headImg;
long createTime;
String action;
String bottleId;
... | true |
c099fb020c18ad9242e08c5ead97fb7cffdeb426 | Java | CFLSousa/HackerRank | /Problem_Solving/Algorithms/Implementation/57_The_Grid_Search/Solution.java | UTF-8 | 2,738 | 2.90625 | 3 | [
"MIT"
] | permissive | import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.regex.*;
public class Solution {
static String gridSearch(String[] G, String[] P) {
String yes="YES";
String no="NO";
Map<Integer,String> gr... | true |
887a5707fdd515b7b7f0d62daedd2bb7a2cca88f | Java | mixajlenko/HomeWork3 | /src/org/shop/demo/shop/Seller.java | UTF-8 | 769 | 2.65625 | 3 | [] | no_license |
package org.shop.demo.shop;
import org.shop.demo.client.Customer;
public class Seller {
private String sellerName;
private Product[][] products;
public Seller(String sellerName, Product[] [] products) {
this.sellerName = sellerName;
this.products = products;
}
public boolean o... | true |
64e23cf16c1b94439c9b6e59d6612366ef7010df | Java | taleja/spring_mvc_exercises | /src/main/java/com/petsshop/service/UserService.java | UTF-8 | 1,167 | 2.359375 | 2 | [] | no_license | package com.petsshop.service;
import javax.annotation.Resource;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.query.Query;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.petsshop.dto.UserDT... | true |
5ff97c45431256d20d1cd269a906ff430301942d | Java | forroad/campusmarket | /bean/src/main/java/com/zhongruan/bean/util/ImgUtil.java | UTF-8 | 2,217 | 2.8125 | 3 | [] | no_license | package com.zhongruan.bean.util;
import javax.imageio.ImageIO;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.Random;
public class ImgUtil {
// 验证码功能
public stati... | true |
bd661390223efefd4eed4d51a1ce0521a22a27a4 | Java | soldiers1989/project-2 | /vc-biz/vc-biz-pub-orm/src/main/java/com/ccclubs/pub/orm/mapper/CsMappingMapper.java | UTF-8 | 2,702 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | package com.ccclubs.pub.orm.mapper;
import com.ccclubs.pub.orm.model.CsMapping;
import com.ccclubs.pub.orm.model.CsMappingExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CsMappingMapper {
/**
* This method was generated by MyBatis Generator.
* This method cor... | true |
8ead10d82173f44b2ec9f801cfe7a0bf1485f6c9 | Java | lgdniubi/kenuo | /src/main/java/com/training/modules/train/dao/ArrangeDao.java | UTF-8 | 2,506 | 1.953125 | 2 | [] | no_license | package com.training.modules.train.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.training.common.persistence.CrudDao;
import com.training.common.persistence.annotation.MyBatisDao;
import com.training.modules.sys.entity.Office;
import com.training.modules.train.entity.ArrangeBeau... | true |
8641ffa304be495f60733216583c163f0e7025a0 | Java | Subrato92/BankJavaProj | /Main.java | UTF-8 | 898 | 2.703125 | 3 | [] | no_license | package otp;
import java.awt.BorderLayout;
import javax.swing.Box;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;
public class Main {
public static void main(String args[]) {
JFrame f = new JFrame("JPasswordField Sample");
... | true |
542934efd596ea1579322bc1ad6c5cdb8f46d220 | Java | FixedDev/Margaret | /Common/src/main/java/me/oczi/common/storage/sql/dsl/expressions/clause/jump/FromJumpClause.java | UTF-8 | 172 | 1.703125 | 2 | [
"MIT"
] | permissive | package me.oczi.common.storage.sql.dsl.expressions.clause.jump;
import me.oczi.common.api.sql.SqlTable;
public interface FromJumpClause<C> {
C from(SqlTable table);
}
| true |
ec5f39558f0fc6c1dff4ad69fc9cdf69ababa4da | Java | blvp/unit-test-lesson | /src/main/java/ru/dz/lessons/controller/api/v1_0/TodoApi.java | UTF-8 | 2,257 | 2.453125 | 2 | [] | no_license | package ru.dz.lessons.controller.api.v1_0;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import ru.dz.lessons.model.Todo;
import ru.dz.lessons.service.TodoServi... | true |
3a394317769f204daa49fc37c79af5a77455769a | Java | tspirovska/ohmdb | /ohmdb-core/src/main/java/com/ohmdb/join/JoinBuilder.java | UTF-8 | 3,342 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package com.ohmdb.join;
/*
* #%L
* ohmdb-core
* %%
* Copyright (C) 2013 - 2014 Nikolche Mihajlovski
* %%
* 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.o... | true |
64b6cedb9eb0e4a98a2cb0b4ec7f81010f946024 | Java | casimirange/ServeurTPM | /src/main/java/com/example/demo/entity/Audit.java | UTF-8 | 2,104 | 2.375 | 2 | [] | no_license | package com.example.demo.entity;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.Many... | true |
01b6dcc77a8d8e3f686b7df8ec5fc1e9b3c221fa | Java | Codlik/Sportnat | /Sportnat7/src/main/java/fr/formation/inti/controller/AgendaController.java | UTF-8 | 451 | 1.84375 | 2 | [] | no_license | package fr.formation.inti.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import fr.formation.inti.entities.Sportifs;
@Controller
public class AgendaController {
@GetMapping(path = "/agenda")
... | true |
3b142370ae58bd5ac0c5e3b24e7058acb73bcbd9 | Java | MerkleTreesTec123/rocket_android | /app/src/main/java/com/muye/rocket/mvp/ieo/view/MyIeoDetailListFragment.java | UTF-8 | 5,105 | 2.046875 | 2 | [] | no_license | package com.muye.rocket.mvp.ieo.view;
import android.os.Bundle;
import android.support.v7.widget.AppCompatTextView;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import com.ifenduo.common.adapter.base.ViewHolder;
import co... | true |
a7cd2f74ce3e7f9ccda64243b92dffdedc24573e | Java | Prashant2523/codinginput | /Minwinsub.java | UTF-8 | 1,066 | 2.984375 | 3 | [] | no_license | class Solution {
public String minWindow(String s, String t) {
int slen = s.length();
int tlen = t.length();
String ans = "";
if(tlen > slen || slen == 0 || tlen == 0){
return ans;
}
int [] dict = new int[128];
for(char c... | true |
4d718eb5bbde6013a73b7266f9821ad40db858cc | Java | timsanwald/CoWolf | /de.uni_stuttgart.iste.cowolf.model.fault_tree.emf.editor/src/de/uni_stuttgart/iste/cowolf/model/fault_tree/emf/presentation/FaultTreeModelWizardExtension.java | UTF-8 | 939 | 2.09375 | 2 | [] | no_license | package de.uni_stuttgart.iste.cowolf.model.fault_tree.emf.presentation;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import org.eclipse.emf.common.CommonPlugin;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EClassifier;
public class FaultTreeModelWizardEx... | true |
65d4e0ea75e0cd386f675bca62f95dc7879c0e99 | Java | samuelriesz/cobalt-strike-source | /src/main/java/beacon/jobs/HashdumpJob.java | UTF-8 | 906 | 2.328125 | 2 | [] | no_license | package beacon.jobs;
import beacon.Job;
import beacon.TaskBeacon;
public class HashdumpJob
extends Job {
public HashdumpJob(TaskBeacon tasker) {
super(tasker);
}
@Override
public String getDescription() {
return "Tasked beacon to dump hashes";
}
@Override
public S... | true |
d2d434dffc8ed46cd84bede9506c01c976a7d99e | Java | 0615cholpon/practice | /src/Methods/Phone.java | UTF-8 | 601 | 4.09375 | 4 | [] | no_license | package Methods;
public class Phone {
public static void main(String[] args) {
boolean check = isWeatherSunny("Tuesday");
if(check) {
System.out.println("Let's do picnic!");
}else {
System.out.println("Let's code!");
}
}
// return type method;
// returns boolean type;
// method accepts String;
p... | true |
fc0fa49608dc02f6f99eb0ac21f7bf0f87d733e3 | Java | cjoaoo/BilGes | /css-bilges-11/src/main/java/business/domain/BilheteIndividual.java | UTF-8 | 2,080 | 2.234375 | 2 | [] | no_license | package business.domain;
import java.io.Serializable;
import javax.persistence.*;
/**
* Entity implementation class for Entity: BilheteIndividual
*
*/
@Entity
@NamedQueries({
@NamedQuery(name = BilheteIndividual.BILHETES_DISPONIVEIS_NA_DATA, query = "SELECT b FROM Evento e, IN(e.bilhetesIndividuais) AS b WHERE e.... | true |
0e6955cd7241d59fce5c3abc839e02a480b24191 | Java | zhoushuaichang/BBS1 | /.svn/pristine/0e/0e6955cd7241d59fce5c3abc839e02a480b24191.svn-base | UTF-8 | 513 | 1.742188 | 2 | [] | no_license | package com.shinow.actions;
import java.util.List;
import javax.annotation.Resource;
import com.opensymphony.xwork2.ActionSupport;
import com.shinow.dao.PostpageDAO;
import com.shinow.model.BlogLogInfo;
public class PostpageAction extends ActionSupport {
private static final long serialVersionUID = 1L... | true |