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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f8dc00dd510aff5de73bbcd1d40356ab1ccea7dd | Java | csabamarton/codekata | /design-patterns/src/main/java/builder/BankAccount.java | UTF-8 | 1,292 | 3.625 | 4 | [] | no_license | package builder;
public class BankAccount {
private long accountNumber;
private String firstName;
private String lastName;
public static class Builder {
private long accountNumber;
private String firstName;
private String lastName;
public Builder(long accountNumber) {
... | true |
f6ccdc50e925c781a463c35dc2381a4cbc44e359 | Java | dinosaurkevin/com.kevin.parent | /toolweb/src/main/java/com/kevin/toolweb/service/AuthorityInfoService.java | UTF-8 | 290 | 1.617188 | 2 | [] | no_license | package com.kevin.toolweb.service;
import java.util.List;
import com.kevin.toolweb.api.dto.AuthorityInfoReq;
import com.kevin.toolweb.api.pojo.AuthorityInfo;
public interface AuthorityInfoService {
List<AuthorityInfo> getAllAuthority(AuthorityInfoReq authorityInfoReq);
}
| true |
809b4b51d95e329edb82934ea365851d22901939 | Java | yego87/JD2016 | /src/by/it/telushko/jd02_04/ParserTest.java | UTF-8 | 387 | 1.664063 | 2 | [] | no_license | package by.it.telushko.jd02_04;
import static org.junit.Assert.*;
public class ParserTest {
@org.junit.Test
public void testAdd() throws Exception {
}
@org.junit.Test
public void testSub() throws Exception {
}
@org.junit.Test
public void testMul() throws Exception {
}
@o... | true |
374094f944764e19d534325e6972fe2a6b958c9a | Java | ZWP-FlyZ/EngerWebService | /src/main/java/service/app/timwin/TimWinMap.java | UTF-8 | 5,148 | 2.53125 | 3 | [] | no_license | package service.app.timwin;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.f... | true |
9058455b013f05ab09591dc39fe3a06fbd44ff71 | Java | Zeno410/UndergroundBiomesConstructs1.10 | /src/main/java/exterminatorjeff/undergroundbiomes/network/ConfigSync.java | UTF-8 | 4,201 | 2.03125 | 2 | [] | no_license | package exterminatorjeff.undergroundbiomes.network;
import exterminatorjeff.undergroundbiomes.config.UBConfig;
import exterminatorjeff.undergroundbiomes.core.UndergroundBiomes;
import io.netty.buffer.ByteBuf;
import net.minecraftforge.fml.common.network.simpleimpl.IMessage;
import net.minecraftforge.fml.common.network... | true |
77dd25df8bc42c0ae189167929a7227b840c981b | Java | piptedy/spring01 | /day01/src/com/atguigu/spring/BookTest.java | UTF-8 | 1,421 | 2.28125 | 2 | [] | no_license | package com.atguigu.spring;
import com.alibaba.druid.pool.DruidDataSource;
import com.alibaba.druid.pool.DruidPooledConnection;
import com.sun.xml.internal.bind.v2.runtime.output.StAXExStreamWriterOutput;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.s... | true |
6a521e2e3a6cc0a451daf4d71822da0f5b917bb4 | Java | cckmit/YinHuaStorage | /myapplication/src/main/java/com/wandao/myapplication/UserTimeSettingFragment.java | UTF-8 | 8,211 | 1.84375 | 2 | [] | no_license | package com.wandao.myapplication;
import android.annotation.SuppressLint;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.app.AlertD... | true |
d825566d55e3996ba50f8589b4eb4d16cc201c71 | Java | wangzh0011/eirLess | /.svn/pristine/e2/e2d011b421795a0e7c36889b644ec88184990fac.svn-base | UTF-8 | 652 | 1.789063 | 2 | [
"Apache-2.0"
] | permissive | package io.renren.modules.miniapp.service.impl;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.modules.miniapp.dao.ChangeLogDao;
import io.renren.modules.miniapp.entity.bargelink.ChangeLog;
import io.renren.modules.miniapp.service.ChangeLogService;
import org.springframework.stereotype.Serv... | true |
90ea42157e55c0eab635ff964fc7adb2b0bfee97 | Java | ravikmrsingh8/AlgoAndDS | /src/main/java/com/example/ds/graph/shortestpath/dijkstra/DijkstraTest.java | UTF-8 | 535 | 2.796875 | 3 | [] | no_license | package com.example.ds.graph.shortestpath.dijkstra;
public class DijkstraTest {
public static void main(String[] args) {
Graph g = new Graph(5);
g.addEdge(0,1,5);
g.addEdge(0,3,6);
g.addEdge(0,2,2);
g.addEdge(2,3,1);
g.addEdge(2,4,5);
Dijkstra dijkstra = new ... | true |
26e335ce5ee962871cd7db7108ad4899ee727530 | Java | jared2501/gerrit | /gerrit-server/src/main/java/com/google/gerrit/server/group/GroupInfoCacheFactory.java | UTF-8 | 1,933 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | // Copyright (C) 2011 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | true |
f0d6ae83b18f6d7adae139a99725ca1952855eaa | Java | EduardoGimeno/Verificacion-y-Validacion | /notepad/app/src/androidTest/java/es/unizar/eina/catlist/CreateCategoryTest.java | UTF-8 | 1,511 | 2.265625 | 2 | [
"MIT"
] | permissive | package es.unizar.eina.catlist;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import static org.junit.Assert.*;
@RunWith(AndroidJUnit4.c... | true |
1e311078f85c0aa85525fe94864c8241fcdca154 | Java | sengeiou/tbkProject | /aebiz-b2b2c/aebiz-commons/src/main/java/com/aebiz/commons/utils/SpringUtil.java | UTF-8 | 2,360 | 2.203125 | 2 | [] | no_license | package com.aebiz.commons.utils;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import javax.servlet.http.HttpServletRe... | true |
4fa627e942b6f3eec92d929a862d5affac0c645b | Java | fdummert/kio | /kio/src/de/zeos/ds/DataSourceRequest.java | UTF-8 | 1,628 | 2.0625 | 2 | [] | no_license | package de.zeos.ds;
import com.fasterxml.jackson.annotation.JsonProperty;
public class DataSourceRequest<D> {
private String requestId;
@JsonProperty("_operationType")
private OperationType operationType;
@JsonProperty("_dataSource")
private String dataSource;
@JsonProperty("_startRow")
p... | true |
bd702ef9675e930f01c522908ea291e4df0942c1 | Java | sdetAhmet63/team02_Selenium01 | /src/test/java/team02/excelautomation/ReadExcel.java | UTF-8 | 2,093 | 3.03125 | 3 | [] | no_license | package team02.excelautomation;
import org.apache.poi.ss.usermodel.*;
import org.testng.annotations.Test;
import java.io.FileInputStream;
import java.io.IOException;
public class ReadExcel {
//Excel == Workbook
//Sayfa == Sheet
//Satır == Row
//Hücre == Cell
@Test
public void excelTest... | true |
9741897b2f789142ce5193a1dcfc09ea04471e22 | Java | isaydiev86/doctor-vet | /app/src/main/java/com/isaydiev/doctor_vet/ApiInterface.java | UTF-8 | 477 | 1.976563 | 2 | [] | no_license | package com.isaydiev.doctor_vet;
import com.google.gson.JsonElement;
import com.isaydiev.doctor_vet.Models.NewsResponce;
import org.json.JSONObject;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
/**
* Created by USER on 08.04.2017.
*/
public interface ApiInterface {
@GET("new... | true |
2a02213b2f074ece1865ef45c9894ca1b9bf0917 | Java | joshsh/twitlogic | /twitlogic-core/src/main/java/net/fortytwo/twitlogic/services/bitly/BitlyClientException.java | UTF-8 | 325 | 1.90625 | 2 | [
"MIT"
] | permissive | package net.fortytwo.twitlogic.services.bitly;
/**
* @author Joshua Shinavier (http://fortytwo.net).
*/
public class BitlyClientException extends Exception {
public BitlyClientException(final Throwable cause) {
super(cause);
}
public BitlyClientException(final String message) {
super(mes... | true |
3348470c54e576a94fe37d1521eac3843fca3361 | Java | aheadlcx/analyzeApk | /zuiyou/sources/com/sina/weibo/sdk/net/AsyncWeiboRunner$AsyncTaskResult.java | UTF-8 | 527 | 2.171875 | 2 | [] | no_license | package com.sina.weibo.sdk.net;
import com.sina.weibo.sdk.exception.WeiboException;
class AsyncWeiboRunner$AsyncTaskResult<T> {
private WeiboException error;
private T result;
public T getResult() {
return this.result;
}
public WeiboException getError() {
return this.error;
}... | true |
7ad495981978f1a15ed4b30396cbd6c0be923959 | Java | jinghu1991/hackathon.lbs | /src/main/java/com/sankuai/hackathon/lbs/web/FileUploadController.java | UTF-8 | 1,459 | 2.0625 | 2 | [] | no_license | package com.sankuai.hackathon.lbs.web;
import com.sankuai.hackathon.lbs.bean.AjaxResult;
import com.sankuai.hackathon.lbs.framework.factory.AjaxResultFactory;
import com.sankuai.hackathon.lbs.service.IImageService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.Request... | true |
8bf616feaf5ecdf41896f2771aaafc15e6843894 | Java | SneyderHOL/LCProject | /src/com/lacazuela/app/client/event/MenuEvent.java | UTF-8 | 523 | 2.3125 | 2 | [] | no_license | package com.lacazuela.app.client.event;
import com.google.web.bindery.event.shared.Event;
public class MenuEvent extends Event<MenuHandler> {
public static final Type<MenuHandler> TYPE = new Type<MenuHandler>();
private String menu;
public MenuEvent (String menu) {
this.menu = menu;
}
public String getMe... | true |
0d2897dc43d49e8019b964b050b001487143fd44 | Java | vinhtranphuc/Demo_MVC_JspServlet | /src/controller/DanhSachSinhVienServlet.java | UTF-8 | 1,742 | 2.3125 | 2 | [] | no_license | package controller;
import java.io.IOException;
import java.util.ArrayList;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import model.bean.Khoa;
import... | true |
7e109434032e57545e102180d59f1ea8387823fc | Java | IegorSoboliev/cinema_project | /src/main/java/com/dev/cinema/dto/CinemaHallDto.java | UTF-8 | 626 | 2.3125 | 2 | [] | no_license | package com.dev.cinema.dto;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
public class CinemaHallDto {
@NotNull
@Min(5)
private int capacity;
@NotNull
@Size(max = 200)
private String description;
public int ... | true |
b526f90f8e7ee61d3c9c5b9eae6dadf50526baff | Java | YoungHo-Jo/algo | /Backjoon/17144_미세먼지안녕/Main.java | UTF-8 | 3,728 | 3.125 | 3 | [] | no_license | /*
start: 2019.10.19 18:44
end: 2019.10.19 19:46
*/
import java.util.Arrays;
import java.util.Scanner;
import java.util.function.BinaryOperator;
import java.util.stream.Collectors;
class Main {
static int[][] map;
static int R, C, T;
public static void main(String[] args) {
Scanner sc = new Scanner(Sy... | true |
c7cbfdb72a9741cfda4a244ab23f35e5c5e7f4b7 | Java | benoitdechateauvieux/atdd-rest-api | /src/main/java/org/exoplatform/bch/stream/StreamResource.java | UTF-8 | 1,065 | 2.15625 | 2 | [] | no_license | package org.exoplatform.bch.stream;
import com.wordnik.swagger.annotations.Api;
import com.wordnik.swagger.annotations.ApiOperation;
import com.wordnik.swagger.annotations.ApiResponse;
import com.wordnik.swagger.annotations.ApiResponses;
import org.exoplatform.bch.activity.Activity;
import javax.ws.rs.GET;
import jav... | true |
d2f7fe74bf58c6bc5cd551d6f1fb38a0f9f8e8ea | Java | TerryShare/Banks_v1 | /src/main/java/org/healthbeauty/service/impl/AdminServiceImpl.java | UTF-8 | 542 | 2.046875 | 2 | [] | no_license | package org.healthbeauty.service.impl;
import org.healthbeauty.dao.AdminMapper;
import org.healthbeauty.pojo.Admin;
import org.healthbeauty.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service("adminService")
public class AdminSer... | true |
1e949c9f64ae3118597357452efadbc64996353f | Java | Zorphling/CD1236 | /app/src/main/java/com/business/cd1236/adapter/BrowseRecordAdapter.java | UTF-8 | 2,149 | 2.015625 | 2 | [] | no_license | package com.business.cd1236.adapter;
import android.content.Intent;
import com.business.cd1236.R;
import com.business.cd1236.bean.CollectGoodsBean;
import com.business.cd1236.bean.PinnedHeaderEntity;
import com.business.cd1236.mvp.ui.activity.GoodsDetailActivity;
import com.business.cd1236.utils.GlideUtil;
import com... | true |
ed7b743fd761fb58b9c405c27dc174ffb86982e6 | Java | lixuehuigithub/edu-qrcodelogin-web | /src/main/java/com/nature/qrcodelogin/controller/QrcodeLoginController.java | UTF-8 | 2,281 | 2.125 | 2 | [] | no_license | package com.nature.qrcodelogin.controller;
import com.nature.qrcodelogin.service.ILoginQrcodeService;
import com.nature.qrcodelogin.vo.AccessToken;
import com.nature.qrcodelogin.vo.LoginQrcodeVO;
import com.nature.qrcodelogin.vo.Response;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org... | true |
b6c8134723aced0a4b3a6567e83e220d37cb5cee | Java | najeeb2kz/TourGuideFortLauderdale | /app/src/main/java/com/chaudhry/najeeb/tourguide/ShoppingFragment.java | UTF-8 | 2,941 | 2.515625 | 3 | [] | no_license | package com.chaudhry.najeeb.tourguide;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import java.util.ArrayList;
/**
* Created by Najeeb on 1/23/17.
*/
public class Shopp... | true |
2c404ace52dc1fb562ec8490039cd6119e6ffcbf | Java | johannesmauerer/aic12_project3 | /management/src/main/java/aic12/project3/service/app/App.java | UTF-8 | 5,942 | 2.1875 | 2 | [] | no_license | package aic12.project3.service.app;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
import java.util.UUID;
import javax.ws.rs.core.MediaType;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.BeanFactory;
import org.springfr... | true |
007e1e05f330ad79653d52ca807219c9256e3034 | Java | Hosseinyousefi23/naft | /src/com/example/naft/MissionClass.java | UTF-8 | 1,700 | 2.59375 | 3 | [] | no_license | package com.example.naft;
public class MissionClass {
private String Staffname="";
private String Placename="";
private String start_date_mission="";
private String end_date_mission="";
private int duration_missions=0;
public MissionClass(String name ,String place, String start , String end , int duration){
... | true |
c4597f0ac3a0fcb6b9d7026520ddd67a82165abd | Java | GianniBonello/LeggerMente | /LetteralMente/src/Util/Utility.java | UTF-8 | 9,252 | 2.390625 | 2 | [] | no_license | package Util;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Base64;
import java.util.List;
import javax.persistence.EntityManager;... | true |
5c29ae79fd0845f7f8235692ec627ba8d16b55ab | Java | zhengefeng/Test-Pay | /pay-service-user/src/test/java/test/facade/user/TsUserManagementFacade.java | UTF-8 | 4,076 | 1.898438 | 2 | [] | no_license | package test.facade.user;
import org.apache.commons.codec.digest.DigestUtils;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4C... | true |
cf24c958983ed5859b86d4a33550c6de765be963 | Java | tamacat-1-4/tamacat-taglib-1.4 | /src/main/java/org/tamacat/taglib/input/Select.java | UTF-8 | 7,065 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2015 tamacat.org
* All rights reserved.
*/
package org.tamacat.taglib.input;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.servlet.ServletRequest;
import javax.servlet.jsp.JspException;
import javax.ser... | true |
832a27fbc8761b5f04736bc60344e017050dbd44 | Java | raju-kumar21/Line-up | /app/src/main/java/project/tronku/line_up/NetworkReceiver.java | UTF-8 | 1,109 | 2.296875 | 2 | [
"MIT"
] | permissive | package project.tronku.line_up;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.ConnectivityManager;
import android.preference.PreferenceManager;
import android.widget.Toast;
public class NetworkRecei... | true |
77ee6a19194ee3af49a05b308bbd1a54bd63ccc9 | Java | bngams/2104-sample-spring | /src/main/java/fr/aelion/gfi/spring/demo/sample/controllers/api/UserResourceController.java | UTF-8 | 4,062 | 2.40625 | 2 | [] | no_license | package fr.aelion.gfi.spring.demo.sample.controllers.api;
import fr.aelion.gfi.spring.demo.sample.annotations.GlobalAdvice;
import fr.aelion.gfi.spring.demo.sample.exceptions.ApiError;
import fr.aelion.gfi.spring.demo.sample.exceptions.UserNotFoundException;
import fr.aelion.gfi.spring.demo.sample.models.entities.User... | true |
a9d47733d36ec52b264d9da41c4679278ec1561a | Java | deokgonkim/openid-server | /src/main/java/net/dgkim/openid/Request.java | UTF-8 | 547 | 2.171875 | 2 | [] | no_license | package net.dgkim.openid;
import java.util.Map;
import java.util.logging.Logger;
public abstract class Request extends Message {
private static final Logger log = Logger.getLogger("net.dgkim.openid");
Request(Map map, String mode) {
this.mode = mode;
if (map != null)
... | true |
992a614eaf1eee3d22e4cab198c8ae9e64eafd02 | Java | phinehasz/bilibiliCrawl | /app/src/main/java/com/zhhiyp/facade/Starter.java | UTF-8 | 1,024 | 2.328125 | 2 | [
"MIT"
] | permissive | package com.zhhiyp.facade;
import com.zhhiyp.avcrawl.core.AbstractProcessor;
import com.zhhiyp.avcrawl.core.TagProcessor;
import com.zhhiyp.avcrawl.core.VideoProcessor;
import org.apache.log4j.Logger;
import java.util.Arrays;
/**
* @author zhiyp
* @date 2018/10/4 0004 20:25
*/
public class Starter {
private stat... | true |
cb889f9ae1864a22b6e0a1dec53ebc2947d6ed6f | Java | lhasanovic/rpr-t1-z4 | /src/ba/unsa/etf/rpr/tutorijal1/Student.java | UTF-8 | 817 | 2.75 | 3 | [] | no_license | package ba.unsa.etf.rpr.tutorijal1;
class Student {
private String ime,prezime;
private int br_indeksa;
public Student(String ime,String prezime, int br_indeksa){
this.ime=ime;
this.prezime=prezime;
this.br_indeksa=br_indeksa;
}
public String getIme() {
return ime;
... | true |
4bfc649a68ecf52a194520211c60f5286e3ac748 | Java | cha63506/CompSecurity | /facebook-messenger/src/com/facebook/fbservice/service/c.java | UTF-8 | 711 | 1.679688 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.facebook.fbservice.service;
import android.os.Handler;
import android.os.HandlerThread;
import com.facebook.common.executors.i;
impo... | true |
4051a5a92e506238a992cbb4b112ab13e21b3cc8 | Java | EvModder/CSCE-489-Cloud-Database-Simulator | /src/Command.java | UTF-8 | 2,292 | 2.796875 | 3 | [] | no_license | import java.io.InputStream;
import java.util.HashMap;
import java.util.Scanner;
abstract class Command{
String name, usage;
static HashMap<String, Command> cmds = new HashMap<String, Command>();
Command(String name, String usage){
this.name = name;
this.usage = usage;
cmds.put(name.toLowerCase(), ... | true |
2f8277c3bfe2118569f8fc6048d4358f9192d9d6 | Java | umkawz/Gym_Project | /app/src/main/java/com/example/leshka/schedule_2/dto/TomorrowDTO.java | UTF-8 | 489 | 2.703125 | 3 | [] | no_license | package com.example.leshka.schedule_2.dto;
/**
* Created by Leshka on 5/17/2017.
*/
public class TomorrowDTO {
private String title;
private String weight;
public TomorrowDTO(String title, String weight) {
this.title = title;
this.weight = weight;
}
public String getWeight() ... | true |
41f7b8679c5e059a5d23da50581dee7c8e5dbd2e | Java | andreaciri/TravelDream-web-app | /TravelDreamWeb/src/it/polimi/TravelDream/authentication/web/beans/LogoutBean.java | UTF-8 | 443 | 1.765625 | 2 | [] | no_license | package it.polimi.TravelDream.authentication.web.beans;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.context.FacesContext;
@ManagedBean(name="logoutBean")
@RequestScoped
public class LogoutBean {
//redirect alla home con refresh
public String logout() {
Fac... | true |
f30cdd2291271a4e45eff948a2dbd1993c38364c | Java | qkmc-rk/diseasemonitor | /src/main/java/cn/cmcc/diseasemonitor/service/impl/OrderSonServiceImpl.java | UTF-8 | 610 | 1.9375 | 2 | [] | no_license | package cn.cmcc.diseasemonitor.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.cmcc.diseasemonitor.service.OrderSonService;
import cn.cmcc.diseasemonitor.repository.OrderSonRepository;
import java.util.List;
import java.util.Map;
im... | true |
32d2860eec1c1c63b4299274b819c85c2a882f44 | Java | NanoDefiner/NanoDefiner | /src/main/java/eu/nanodefine/etool/utilities/locale/CoverageTrackingMessageSource.java | UTF-8 | 4,074 | 2.4375 | 2 | [
"MIT"
] | permissive | /*
* Copyright (c) NanoDefine project. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for full license
* information.
*/
package eu.nanodefine.etool.utilities.locale;
import java.util.HashSet;
import java.util.Locale;
import java.util.Set;
import org.slf4j.Logger;
imp... | true |
287df4685d2e6f0ff90d1aed5066ac762e2cbe1b | Java | staribelli/java-microservice | /mail-service/src/main/java/com/apssouza/queries/EmailQuery.java | UTF-8 | 516 | 1.960938 | 2 | [
"MIT"
] | permissive | package com.apssouza.queries;
import org.springframework.stereotype.Component;
/**
* Email query service, read data from the read data source This can be
* separeted in a new service
*
* @author apssouza
*/
@Component
public class EmailQuery {
// private final EmailRepository emailRepository;
//
// public... | true |
f37ba26294332bcd1e2dfbfad8f021b59c35ff39 | Java | evilZ1994/JavaLearning | /JavaNotes/src/DataStructure/Tree/BinaryTree/ArrayStructure/TestArrayBinary.java | UTF-8 | 592 | 3.25 | 3 | [] | no_license | package DataStructure.Tree.BinaryTree.ArrayStructure;
public class TestArrayBinary {
public static void main(String[] args) {
int[] arr = new int[] {1, 2, 3, 4, 5, 6, 7};
ArrayBinaryTree tree = new ArrayBinaryTree(arr);
System.out.println("前序遍历");
tree.frontShow();
System.o... | true |
05ab783716e5812b374e8e5a161eba83db6504de | Java | nyanjongandrew/Hackathon | /src/main/java/com/example/sample/service/MoviezService.java | UTF-8 | 343 | 1.960938 | 2 | [] | no_license | package com.example.sample.service;
import com.example.sample.pojo.MovieFilter;
/**
*
* @author user
* Does all movie db related operations
* @param <T>
*/
public interface MoviezService<T> {
T prepareMoviezServiceForInsert(MovieFilter o) throws Exception;
T prepareMovieServiceForUpdate(MovieFilter filte... | true |
244f64f15f451885ff173712075901b9f93de4ed | Java | DoWon-Kim/java_product | /Exercise3_1.java | UHC | 1,540 | 3.828125 | 4 | [] | no_license | package java_A;
public class Exercise3_1 {
public static void main(String[] args){
int x= 2;
int y= 5;
char c ='A'; //A ڵ 65
System.out.println(1 + x << 33);
System.out.println(y >= 5 || x < 0 && x > 2); //true ڴ տ տ ϰ, ǿ true
System.out.println(y += 10 - x++); //x 1Ͽ 10-3 ϸ 7 y Ͽ 1... | true |
dc2381dc92e3cdc4ad1cc6577dc97a970105c76b | Java | CL-89/rover | /rover/src/test/java/tools/ValidatorTest.java | UTF-8 | 887 | 2.34375 | 2 | [] | no_license | package tools;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class ValidatorTest {
@Test
public void shouldReturnCoordinateValidatorTrue() {
Validator validator = new Validator();
assertTrue("1 2 N", validator.coordinatateAndCardinalDi... | true |
6fb222f4db64352346fbc464ac9a6f5f40c26c4a | Java | bgrsph/Online-Monopoly | /src/domain/squares/propertySquares/DekalbAvenueSquare.java | UTF-8 | 803 | 2.640625 | 3 | [] | no_license | package domain.squares.propertySquares;
import domain.MonopolyGameController;
public class DekalbAvenueSquare extends DeedSquare {
public DekalbAvenueSquare() {
super("DekalbAvenueSquare", 0, 0, null, 210, 0, 100, 0, 100, 0, 100, "dark green");
this.rent[0]=17;
this.rent[1]=85;
this.rent[2]=240;
... | true |
4993a5188f03254031411c6325419eb15cbebec4 | Java | tjutBountyHunter/com.bh.xsl.erp | /xsl_erp_dao/src/main/java/com/xsl/erp/mapper/XslHunterLevelPrivilegeMapper.java | UTF-8 | 1,082 | 1.84375 | 2 | [
"Apache-2.0"
] | permissive | package com.xsl.erp.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import xsl.erp.pojo.XslHunterLevelPrivilege;
import xsl.erp.pojo.XslHunterLevelPrivilegeExample;
public interface XslHunterLevelPrivilegeMapper {
long countByExample(XslHunterLevelPrivilegeExample example);
int del... | true |
1178ba5683c1a0ca5caf7bf2e3ee1b2287a4dbce | Java | esaman1/PicMaker | /app/src/main/java/com/eptonic/photocollage/ui/next/s/xx/xxx/yy/cc/activity/PSaveRActivity.java | UTF-8 | 1,211 | 2.0625 | 2 | [] | no_license | package com.eptonic.photocollage.ui.next.s.xx.xxx.yy.cc.activity;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.eptonic.photocollage.PhotoCollageApplication;
import com.eptonic.photocollage.R;
import com.eptonic.photocollage.adapter.SaveAdapter;
im... | true |
4a0987a962c9a7e0dc0184b7b342ea39e405714c | Java | minhthanh1703/BookRent | /src/main/java/com/example/demo/controller/UserController.java | UTF-8 | 6,014 | 2.15625 | 2 | [] | no_license | package com.example.demo.controller;
import com.example.demo.constant.Constant;
import com.example.demo.dto.ServiceResponseDTO;
import com.example.demo.entities.Role;
import com.example.demo.entities.User;
import com.example.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
impor... | true |
8df8b5814e2dc15f919d7435d8c2b9307bb7ccbb | Java | alexurumov/TruckProjectRepo | /src/main/java/truckmanagementproject/services/services/managers/ManagerService.java | UTF-8 | 460 | 2.0625 | 2 | [] | no_license | package truckmanagementproject.services.services.managers;
import truckmanagementproject.services.models.managers.AddManagerServiceModel;
import truckmanagementproject.services.models.managers.ManagerServiceModel;
import java.util.Arrays;
import java.util.List;
public interface ManagerService {
void registerMana... | true |
1934469fe887b6d0c231aed035d7c567eb92c259 | Java | pl-eco/ET | /src/tests/output/net/javacoding/jspider/api/event/folder/FolderRelatedEvent.java | UTF-8 | 4,908 | 1.71875 | 2 | [] | no_license | package net.javacoding.jspider.api.event.folder;
import net.javacoding.jspider.api.event.EventVisitor;
import et.util.MyUtility;
import net.javacoding.jspider.api.event.JSpiderEvent;
import et.util.MyUtility;
import net.javacoding.jspider.api.model.Folder;
import et.util.MyUtility;
abstract public clas... | true |
0edbeeb5910bba8fad191a46f29f45fdb54320f7 | Java | JohnWAnderson/ExpenseManagerServer | /src/main/java/com/jwa/repository/RoleRepository.java | UTF-8 | 476 | 2.125 | 2 | [] | no_license | package com.jwa.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.jwa.model.Role;
import com.jwa.model.RoleType;
import java.util.Optional;
/**
* @author John Anderson
*/
@Repository
public interface RoleRepository extends JpaRep... | true |
a4e3b788c695bea413635c1762f17cf0567f9c78 | Java | radixCSgeek/soop | /src/main/java/net/csgeek/soop/Docket.java | UTF-8 | 2,937 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | package net.csgeek.soop;
import static net.csgeek.soop.Constants.CONFIG_FILE;
import static net.csgeek.soop.Constants.STATE_FILE;
import it.sauronsoftware.cron4j.Scheduler;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java... | true |
875de110d1ced822a604d8f84307088c49bdbc99 | Java | shiwen500/RetrofitDemo | /android/app/src/main/java/me/chenshiwen/retrofitdemo/HelloOkHttp.java | UTF-8 | 11,194 | 2.328125 | 2 | [] | no_license | package me.chenshiwen.retrofitdemo;
import android.os.Handler;
import android.util.Log;
import android.widget.TextView;
import com.google.gson.Gson;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.File;
import java.io.IOException;
import java.nio.charset.Charset;
import okhttp3.Call;
impo... | true |
eb34676603571e60974bd0ab11f44f4d5ae79e68 | Java | akbrkml/MovieCatalogue-API | /app/src/main/java/com/example/moviecatalogueapi/ui/tv/view/TvClickListener.java | UTF-8 | 177 | 1.757813 | 2 | [] | no_license | package com.example.moviecatalogueapi.ui.tv.view;
import com.example.moviecatalogueapi.model.TvShow;
public interface TvClickListener {
void onItemClick(TvShow tvShow);
}
| true |
3a271ffab71a790abdbb18df8ea0e2badf8b9504 | Java | hepeng1995/demo1 | /src/com/company/Main.java | UTF-8 | 482 | 2.828125 | 3 | [] | no_license | package com.company;
import java.util.ArrayList;
public class Main implements Runnable{
public static void main(String[] args) {
Thread t=new Thread(new Main());
t.start();
}
public void run(){
for (int i=0;i<20;i++) {
System.out.println(Thread.currentThread().getName... | true |
7c16e06513be99b4c0269df0d1139cfd0aade793 | Java | SUSTechBruce/Android-RecyclerView-Demo | /RecyclerDemo/app/src/main/java/com/example/recyclerdemo/CrimeLab.java | UTF-8 | 1,195 | 2.8125 | 3 | [] | no_license | package com.example.recyclerdemo;
import android.content.Context;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
public class CrimeLab {
private static CrimeLab sCrimeLab;
private List<Crime> mCrimes;
private CrimeLab(Context context){
mCrimes = new ArrayList<>();
... | true |
ce0286217f8cf7ecc991fc79b0813cdfc203a66f | Java | 1002010473/Algorithm | /src/main/code_of_vincent/Algorithm/binary_search/rotated/lc81_旋转排序重复数组的搜索.java | UTF-8 | 2,771 | 3.90625 | 4 | [] | no_license | package Algorithm.binary_search.rotated;
/**
* @description:
* @author: 文琛
* @time: 2020/7/13 21:57
*/
public class lc81_旋转排序重复数组的搜索 {
//考虑存在 1 3 1 1 1 的情况,此时可以通过left++来排除重复项
public boolean search(int[] nums, int target) {
int len = nums.length;
int left = 0, right = len - 1;
while(... | true |
047dc1284dcf568068bc1b68aaf6536d3e2aa31d | Java | sairam566/TalentSprintJava | /JavaAssessment/MockJava_DEC_23_2017/NextNumber.java | UTF-8 | 837 | 3.796875 | 4 | [] | no_license |
public class NextNumber {
public static void main(String[] args) {
System.out.println("Even odd");
System.out.println(NextNumber.nextNum(12465));
System.out.println(NextNumber.nextNum(111222));
System.out.println(NextNumber.nextNum(12465));
System.out.println(NextNumber.nextNum(12466));
System.out.print... | true |
f320595a29ceb935718b553817c5abbbb4645062 | Java | wanghongenpin/generator-plugin | /src/main/java/com/mybatis/generator/comment/MyCommentGenerator.java | UTF-8 | 16,025 | 2.28125 | 2 | [] | no_license | package com.mybatis.generator.comment;
import org.mybatis.generator.api.CommentGenerator;
import org.mybatis.generator.api.IntrospectedColumn;
import org.mybatis.generator.api.IntrospectedTable;
import org.mybatis.generator.api.dom.java.*;
import org.mybatis.generator.api.dom.xml.XmlElement;
import org.mybatis.generat... | true |
e56727ba0d65cec6d152e1a6780fd106fd5a2cd6 | Java | idarshandalwadi/block-chain | /src/block_chain/Block.java | UTF-8 | 2,657 | 3.03125 | 3 | [] | no_license | package block_chain;
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.sql.Timestamp;
import java.util.Base64;
/**
* <code> Block </code> contains fields related to block/transaction data.
*
* @author darshan.dalwadi
*
*/
pub... | true |
88e56d5571d7d8ba44b99cd660fb58636e465db8 | Java | kunalkhedkar/MyWork | /Room_Database with LiveData and ViewModel/main/java/com/example/kunal/databasewithroom/Mark.java | UTF-8 | 1,426 | 2.421875 | 2 | [] | no_license | package com.example.kunal.databasewithroom;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.ForeignKey;
import android.arch.persistence.room.PrimaryKey;
import static android.arch.persistence.room.ForeignKey.CASCADE;
/**
* Created by KunaL on 28-Apr-18.
*/
@Entity(for... | true |
736d3b24bd51eb16f47ff10d4e4390f21af95e1f | Java | heatsink/NinjaFighter | /Spellbook.java | UTF-8 | 357 | 2.140625 | 2 | [] | no_license | // Class integrated by Sean
// This class was later removed from use in the game
import greenfoot.*;
// Sprite for teaching the ninja his first ability
public class Spellbook extends Items
{
// Sprite from http://www.spriters-resource.com/arcade/ghoulsnghosts/sheet/65512/
public void act()
{
// Ad... | true |
9e9393ec6bc6e434127a989130629aed7e6e75a0 | Java | cafed00d/jbia | /jbia-src/ch09/src/client/java/org/jbia/ws/Client.java | UTF-8 | 1,461 | 2.53125 | 3 | [] | no_license | /*
* Copyright 2008, Javid Jamae and Peter Johnson
*
* 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 req... | true |
85bf71c13d3f52c6395c0f4821f2bab3f05fcce2 | Java | yangyuqi/android_hxd | /app/src/main/java/com/zhejiang/haoxiadan/model/requestData/out/ChoseGoodsFloorDataBean.java | UTF-8 | 2,485 | 1.820313 | 2 | [] | no_license | package com.zhejiang.haoxiadan.model.requestData.out;
import com.zhejiang.haoxiadan.model.requestData.out.Chose.BusinessWideGoodsList;
import com.zhejiang.haoxiadan.model.requestData.out.Chose.CompetitiveProductBeanData;
import com.zhejiang.haoxiadan.model.requestData.out.Chose.SusinessBean;
import java.util.List;
/... | true |
f7699b3a7178c663fcb0f48ee316862b5c4fbcc4 | Java | castorw/stuba-kmps-sipproxy | /src/main/java/net/ctrdn/talk/rtp/RtpAudioRecorder.java | UTF-8 | 3,081 | 2.234375 | 2 | [] | no_license | package net.ctrdn.talk.rtp;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.net.DatagramPacket;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ua.mobius.media.server.spi.memory.ByteFrame;
import ua.mobius.media.server.spi.memory.ByteMemory;
import ua... | true |
8016d8b695e06953ddee043182379c748a90b9d5 | Java | sherryya/InterfacePlateform | /InterfacePlateform/src/com/db/dao/TZdcBreakrulescitylistMapper.java | UTF-8 | 490 | 1.820313 | 2 | [] | no_license | package com.db.dao;
import java.util.List;
import com.db.dto.TZdcBreakrulescitylist;
/**
* 车辆违章城市信息
* 20141128
*/
public interface TZdcBreakrulescitylistMapper {
/**
* 插入城市列表
* @return
*/
int insert (TZdcBreakrulescitylist cityList);
/**
* 根据省份代码和城市代码查询是否需要发动机号和车架号信息
* @param cityList
* @return
*... | true |
24b2c463f65e5c680277e2677f7b5c2e79427224 | Java | olyro/pizza | /src/main/java/de/olyro/pizza/Main.java | UTF-8 | 12,401 | 2.046875 | 2 | [
"MIT"
] | permissive | package de.olyro.pizza;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.text.NumberFormat;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Op... | true |
48e2bbe2496740f22a0790b92287ef74e0f6b45a | Java | xyzmonday/X-IM | /src/main/java/com/yff/xim/model/Session.java | UTF-8 | 1,739 | 2.421875 | 2 | [] | no_license | package com.yff.xim.model;
import io.netty.channel.Channel;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
* 用户连接会话。该对象用来描述一个客户端链接。
* 客户端和服务端通信实际上是通过Cha... | true |
e5c11922a50be651346dcd7d407641e1faed55e0 | Java | karitra/nova-intern-task | /src/main/java/com/hwbs/intertask/server/generator/NameGenTaskResult.java | UTF-8 | 732 | 2.09375 | 2 | [] | no_license | package com.hwbs.intertask.server.generator;
import com.hwbs.intertask.server.generator.mt.NamesGenExecutor;
import com.hwbs.intertask.shared.NameRecord;
public class NameGenTaskResult extends TaskResult {
private NameRecord[] cache;
public NameGenTaskResult(int tasksHint, NamesGenExecutor.ActiveCa... | true |
20b2e58b5fb0a3a919a2c732828b4df7f7cc0acf | Java | jmhanun/jpacking | /jPackMRP/jPackMRP-ejb/src/java/ar/com/jpack/negocio/OrdenescompraFacade.java | UTF-8 | 3,713 | 2.265625 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ar.com.jpack.negocio;
import ar.com.jpack.persistencia.Detalleordenescompras;
import ar.com.jpack.persistencia.Ordenescompra;
import ar.com.jpack.transferencia.DetalleOrdenesComprasT;
import ar.com.jpack.transfe... | true |
18c487beca48b832766210b8a8560437e5852a06 | Java | AIngleLab/aae | /lang/java/tools/src/main/java/org/apache/aingle/tool/TrevniCreateRandomTool.java | UTF-8 | 1,319 | 2.59375 | 3 | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"zlib-acknowledgement",
"LicenseRef-scancode-unknown-license-reference",
"Zlib",
"FSFAP",
"GPL-1.0-or-later",
"MIT",
"GPL-2.0-only",
"LicenseRef-scancode-other-permissive",
"BSL-1.0",
... | permissive | /*
*/
package org.apache.aingle.tool;
import java.io.File;
import java.io.InputStream;
import java.io.PrintStream;
import java.util.List;
import org.apache.aingle.Schema;
import org.apache.aingle.util.RandomData;
import org.apache.trevni.ColumnFileMetaData;
import org.apache.trevni.aingle.AIngleColumnWriter;
/** T... | true |
0eb8692fa2cfd6ff0dd48d7bbbb2e4ff6fdfd8d1 | Java | ValeriaDaukshis/Java-labs | /Java_lab1_Library/src/Controller/ServiceCommandHandlerBase.java | UTF-8 | 287 | 1.960938 | 2 | [] | no_license | package Controller;
import Model.BookListDao;
public abstract class ServiceCommandHandlerBase extends CommandHandlerBase {
protected BookListDao bookListDao;
protected ServiceCommandHandlerBase(BookListDao bookListDao) {
this.bookListDao = bookListDao;
}
}
| true |
9902d4e7d2f620f81f0354399a99b6f221b1e19e | Java | KujouNozom/LeetCode | /src/com/sxg/leetcode/question/data2020_10/Question1291.java | UTF-8 | 1,406 | 3.9375 | 4 | [] | no_license | package com.sxg.leetcode.question.data2020_10;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* @ClassName: com.sxg.leetcode.question.date2020_10.Question1291
* @Author: Su_N
* @Date: 2020/10/24 13:26
* @Description: 枚举
* 因为数字很少,可以枚举每个数字,判断是否在区间内,先枚举1开头的,在枚举2,一次类推,最后排序
* 12... | true |
3782881ee8a1dafe0dd0d6e88aa8a878fcbf7a54 | Java | lawanu-tech/JavaPrograms_YoutubeVideos | /JavaProgramming/src/problem/solving/LargestNumber.java | UTF-8 | 488 | 3.53125 | 4 | [] | no_license | package problem.solving;
import java.util.Scanner;
public class LargestNumber {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Enter three numbers:");
Scanner sc=new Scanner(System.in);
int x=sc.nextInt();
int y=sc.nextInt();
int z=sc.nextInt();
if(x>y && x>z)
{
Sy... | true |
9948a5acf057f482600ef182a157df0bc238a2ec | Java | qizhou92/SPES | /src/main/java/SymbolicRexNode/SymbolicColumn.java | UTF-8 | 2,652 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | package SymbolicRexNode;
import Z3Helper.z3Utility;
import com.microsoft.z3.BoolExpr;
import com.microsoft.z3.Context;
import com.microsoft.z3.Expr;
import org.apache.calcite.rel.type.RelDataType;
import org.apache.calcite.rex.RexNode;
import java.util.ArrayList;
import java.util.List;
public class SymbolicColumn {
... | true |
dcd3cc16f79f45083482da65123464d7d1f391b9 | Java | RashilaKanchanamali/mobiChat | /app/src/main/java/com/example/harshanuwan/signinproject/ContactListActivity.java | UTF-8 | 790 | 1.671875 | 2 | [] | no_license | package com.example.harshanuwan.signinproject;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
im... | true |
801575b36f0743d02d6f380e01da7e8186fc8f74 | Java | navychen2003/javen | /java/Tools/src/com/forizon/jimage/viewer/actions/FlipHorizontally.java | UTF-8 | 836 | 2.375 | 2 | [] | no_license | package com.forizon.jimage.viewer.actions;
import com.forizon.jimage.viewer.context.Context;
import java.awt.event.KeyEvent;
import javax.swing.KeyStroke;
public class FlipHorizontally extends AbstractToggleableAction {
private static final long serialVersionUID = 1L;
public FlipHorizontally(Context aContext) {
... | true |
8606e3e1334fcdddc7f611bf7e51f37ced518a62 | Java | ThatiSugiyama/SGCMF-BDII | /SGCMF/src/sgcmf/control/CtrRelatorio.java | UTF-8 | 629 | 2.03125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package sgcmf.control;
import sgcmf.view.relatorio.LimGerenciarRelatorio;
/**
*
* @author Helio
*/
public class CtrRelatorio
{
private LimGerenciarRelatorio limGerenciarRelatorio;
private CtrMain ctrMain;
... | true |
5da33462f82a85d70c9b803802cb0de51c16cb28 | Java | indrabasak/adt-algo-example | /src/test/java/com/basaki/algodaily/MissingNumberInUnsortedTest.java | UTF-8 | 385 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package com.basaki.algodaily;
import org.junit.jupiter.api.Test;
import static com.basaki.algodaily.MissingNumberInUnsorted.missingInUnsorted;
import static org.junit.jupiter.api.Assertions.assertEquals;
class MissingNumberInUnsortedTest {
@Test
void testMissingInUnsorted() {
assertEquals(8, missing... | true |
62eaee98c95326d2c5702cf877e148bb0f8f21bd | Java | rajmhr/Lakhpati | /app/src/main/java/com/lakhpati/activity/UserProfileActivity.java | UTF-8 | 4,135 | 2.15625 | 2 | [] | no_license | package com.lakhpati.activity;
import android.os.Bundle;
import android.view.MenuItem;
import android.widget.TextView;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.lakhpati.R;
import com.lakhpat... | true |
ebeeb0bded19ed97d3f8e7f18b7ce13d4f6faa02 | Java | Vivekbhusal/Conference-Aggrerator | /IpublishClient/src/java/Controller/ControllerDetails.java | UTF-8 | 4,493 | 2.0625 | 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 Controller;
import Entity.Coreconf;
import Entity.GoogleSeed;
import Entity.Tweets;
import ExternalAPI.GoogleSearch;
import E... | true |
5c830b9d0facda0a285e9dd53324e1332b2fb158 | Java | nayuki/Project79068-Cryptography-Library | /test/p79068/crypto/cipher/Rc4Test.java | UTF-8 | 1,285 | 2.375 | 2 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | package p79068.crypto.cipher;
import org.junit.Test;
public final class Rc4Test extends StreamCipherTest {
@Override
protected StreamCipher getCipher() {
return new Rc4(256);
}
@Test public void testBasic() {
String[][] testCases = {
{"4B6579", "506C61696E74657874", "BBF316E8D940AF0AD3"},
{"576... | true |
5dfd8daffaaf38b4c74e96096be91e02fd4853cf | Java | Kathyren/Negamax | /Connect4/src/View/GameGui.java | UTF-8 | 11,601 | 2.203125 | 2 | [] | no_license | /*
Copyright (C) 2012 http://software-talk.org/ (developer@software-talk.org)
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 opti... | true |
00a2ead45eda31af4a1bcffdf19f2b21f24474f5 | Java | Nick7878/AppointmentBook | /src/views/MainView.java | UTF-8 | 6,414 | 2.984375 | 3 | [] | no_license | package views;
import models.Appointment;
import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableColumnModel;
import java.awt.*;
import java.awt.event.ActionListener;
import java.util.List;
public class MainView extends JFrame {
private JPanel contentPanel;
private JT... | true |
16520b56611cf17f1425bc2f6813cdf13e92d62c | Java | DuanYouming/mvp-clean | /app/src/main/java/com/foxconn/bandon/setting/ice/IceAutomaticView.java | UTF-8 | 6,042 | 2.0625 | 2 | [] | no_license | package com.foxconn.bandon.setting.ice;
import android.content.Context;
import android.support.annotation.NonNull;
import android.view.View;
import android.widget.TextView;
import com.foxconn.bandon.R;
import com.foxconn.bandon.custom.SingleOptionViewGroup;
import com.foxconn.bandon.setting.BaseSettingView;
import co... | true |
c587022a6d0c0b7b141b00a1814052b7b9186253 | Java | LeeBry/unit6MediaComp | /PictureLab/classes/Picture.java | UTF-8 | 17,265 | 3.546875 | 4 | [] | no_license | import java.awt.*;
import java.awt.font.*;
import java.awt.geom.*;
import java.awt.image.BufferedImage;
import java.util.Random;
import java.text.*;
import java.util.*;
import java.util.List; // resolves problem with java.awt.List and java.util.List
/**
* A class that represents a picture. This class inher... | true |
55ba5a329b073af1806045fb1a9dfc43fbb93ca1 | Java | Xpitfire/wm-hackathon | /project-guidelines/6_Ue/SWE4G1_UE6_Wurm/SWE4G1_UE6_Wurm/src/EUROBetUI/src/swe4/models/Team.java | UTF-8 | 441 | 2.625 | 3 | [] | no_license | package swe4.models;
public class Team {
private String name;
private Character group;
public Team() {
}
public Team(String name, Character group) {
this.setName(name);
this.setGroup(group);
}
public Character getGroup() {
return group;
}
public void setGroup(Character group) {
this.group... | true |
0acecdb3a91cd3a21bb35d5aef7af1a0ac312d22 | Java | AleksandarKovachev/quoteBooks | /app/src/main/java/com/example/pc/login/MySql/PicassoClient.java | UTF-8 | 642 | 2.1875 | 2 | [] | no_license | package com.example.pc.login.MySql;
import android.content.Context;
import android.widget.ImageView;
import com.example.pc.login.R;
import com.squareup.picasso.Picasso;
public class PicassoClient {
public static void downloadImage(Context c, String imageUrl, ImageView img) {
if (imageUrl.length() > 0 &&... | true |
53d6923d1792aca131c5e61485d5e7e22b9ae2e2 | Java | Jckf/mc-dev | /1.8 obfuscated/b/baw.java | UTF-8 | 620 | 1.65625 | 2 | [] | no_license |
public class baw extends bai {
public static final bew a = bew.a("rotation", 0, 15);
public baw() {
this.j(this.L.b().a(a, Integer.valueOf(0)));
}
public void a(aqu var1, dt var2, bec var3, atr var4) {
if(!var1.p(var2.b()).c().r().a()) {
this.b(var1, var2, var3, 0);
var1.g... | true |
312d782a20b2d67efc5d37a93b082819da06e2e0 | Java | finnrj/java-proj | /euler/src/main/java/euler/Problem007.java | UTF-8 | 1,189 | 3.140625 | 3 | [] | no_license | package euler;
import java.util.function.LongSupplier;
public class Problem007 {
public static long smallestDivisor(long candidate, long target) {
if (candidate * candidate > target) {
return target;
}
if (target % candidate == 0) {
return candidate;
}
return smallestDivisor((candidate == 2) ? 3 : c... | true |
92dcb21440039322f40bb58ea92caf690e16d080 | Java | svcgv/vote | /src/main/java/com/indihx/PmFile/entity/PmFileEntity.java | UTF-8 | 3,853 | 1.851563 | 2 | [] | no_license | package com.indihx.PmFile.entity;
import com.indihx.BaseEntity;
import java.io.Serializable;
import java.util.Date;
/**
*
*
* @author hb
* @email hb1230123@hotmail.com
* @date 2018-11-06 19:33:25
*/
public class PmFileEntity extends BaseEntity implements Serializable {
private static final long serialVersion... | true |
4ecf31f19ea13c76b7486ec2a07b684788b71d04 | Java | 664822461/monitor | /monitor-data/src/main/java/com/maigechuang/mapper/jk/NewsSourceTMapper.java | UTF-8 | 315 | 1.703125 | 2 | [] | no_license | package com.maigechuang.mapper.jk;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* Created by mgc on 2020/12/9.
*/
@Mapper
public interface NewsSourceTMapper {
void deletNews(@Param("area") String area, @Param("news") String news, @Param("url")String url);
}
| true |
7ab8133a6fe0a2cc9e72d8fffcaac5660ce486e3 | Java | lizhengdao/power-trainer | /src/main/java/com/abubusoft/powertrainer/service/MisurationQueryService.java | UTF-8 | 5,580 | 2.359375 | 2 | [] | no_license | package com.abubusoft.powertrainer.service;
import com.abubusoft.powertrainer.domain.*; // for static metamodels
import com.abubusoft.powertrainer.domain.Misuration;
import com.abubusoft.powertrainer.repository.MisurationRepository;
import com.abubusoft.powertrainer.service.criteria.MisurationCriteria;
import com.abub... | true |
37c0c4a90e69b3451e9e156be468058227bcf571 | Java | nirina-tantely/ONN-Portail | /src/main/java/org/onn/webportal/infra/repository/ImportDataRepo.java | UTF-8 | 263 | 1.515625 | 2 | [] | no_license | package org.onn.webportal.infra.repository;
public interface ImportDataRepo {
void importInterventionFile(String fileName) throws Exception;
void importONGBaseFile(String fileName) throws Exception;
void importSMSFile(String fileName) throws Exception;
}
| true |
d6e40c2c50cf833e2d5d50366bbd544b7ac0d17b | Java | anthonyngure/ToshBaseCode | /basecode/src/main/java/ke/co/toshngure/basecode/dataloading/DataLoadingConfig.java | UTF-8 | 4,174 | 2.375 | 2 | [] | no_license | /*
* Copyright (c) 2018.
*
* Anthony Ngure
*
* Email : anthonyngure25@gmail.com
*/
package ke.co.toshngure.basecode.dataloading;
/**
* Created by Anthony Ngure on 15/09/2017.
* Email : anthonyngure25@gmail.com.
*/
public class DataLoadingConfig {
private int loaderId = 0;
/*If should immediately l... | true |
99ea661b461a242d413d4feaae937396e0dd2e08 | Java | clickListenerData/inventorysystem | /app/src/main/java/com/micropole/inventorysystem/util/BindingUtils.java | UTF-8 | 1,564 | 1.976563 | 2 | [] | no_license | package com.micropole.inventorysystem.util;
import android.databinding.BindingAdapter;
import android.graphics.Bitmap;
import android.graphics.drawable.ColorDrawable;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.micropole.inventorysystem.widght.InputMsgView;
import com.micropole.invent... | true |