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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
3e97c22172a8e57097e7bd71c4c7dcb763d7fe26 | Java | xb204628104/Bank_deleteAndadd | /app/src/main/java/com/example/administrator/bank/Aty_Xb_FristOne.java | UTF-8 | 2,598 | 2.375 | 2 | [] | no_license | package com.example.administrator.bank;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
/**
* Created by Administrator on 2017/7/31.
*/
public class Aty_Xb_F... | true |
9f8041f8ae39f64de356f56c4561577fadd5dd11 | Java | krestenkrab/riak-java-pb-client | /src/main/java/com/trifork/riak/RiakStreamClient.java | UTF-8 | 2,653 | 2.453125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-protobuf"
] | permissive | /**
* This file is part of riak-java-pb-client
*
* Copyright (c) 2010 by Trifork
*
* 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... | true |
e44a3d2817199fd5acbb3f7d183d91546c1f1ea2 | Java | winc218/Homework | /src/main/java/com/gupao/vip/homework/pattern/proxy/dynamic/customer/CustomerProxyTest.java | UTF-8 | 400 | 1.992188 | 2 | [] | no_license | package com.gupao.vip.homework.pattern.proxy.dynamic.customer;
import com.gupao.vip.homework.pattern.proxy.dynamic.jdk.Xiemu;
import com.gupao.vip.homework.pattern.proxy.staticProxy.Person;
public class CustomerProxyTest{
public static void main( String[] args ) {
final Person instance = ( Person ) new C... | true |
f4254d6be8abd4c6fbe60b61c907f67cd1c82918 | Java | StudyBoy007/KnownStudy | /src/main/java/util/auth/GlobalExceptionHandler.java | UTF-8 | 1,436 | 1.96875 | 2 | [] | no_license | package util.auth;
import entity.Course;
import entity.Teacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.Con... | true |
3d9145a2992904d3c4f6344e58692970d3916316 | Java | jlombardo/CustomTextFields | /src/edu/wctc/validator/decorator/JTextFieldValidatorDecorator.java | UTF-8 | 382 | 2.21875 | 2 | [] | no_license | package edu.wctc.validator.decorator;
import javax.swing.JTextField;
/**
* This class serves as a general contract for any JTextField
* components that are decorated for validation.
*
* @author jlombardo
*/
public abstract class JTextFieldValidatorDecorator extends JTextField {
public abstract boolean... | true |
906bd7eb251a2fb7e4a275a0f02eda17e7b09590 | Java | jzinkovichjava/groundworkzconstruction | /src/main/java/com/zinkovich/service/CustomerService.java | UTF-8 | 260 | 1.890625 | 2 | [] | no_license | package com.zinkovich.service;
import com.zinkovich.domain.Customer;
import java.util.List;
public interface CustomerService {
void saveCustomer(Customer customer);
List<Customer> findAllCustomers();
void updateCustomer(Customer customer);
} | true |
a939d0113e46829a8e25e7cbda5b96094f02eb17 | Java | msHanObject/mshanobject-til | /java/fx/javastory/src/javastory/budget/logic/TranServiceLogic.java | UTF-8 | 1,521 | 2.703125 | 3 | [] | no_license | package javastory.budget.logic;
import javastory.budget.da.file.StoreFileLycler;
import javastory.budget.entity.budget.Transaction;
import javastory.budget.service.TranService;
import javastory.budget.service.dto.TranDto;
import javastory.budget.store.TranStore;
import javastory.budget.util.NoSuchTranException;
import... | true |
76046ba95d2fd1b207991ab580a7bad221c1e58c | Java | zhantore/elaman16-kobyzbook-48526f6c725b | /app/src/main/java/kz/qobyzbook/C_Lessons/LessonAdapter.java | UTF-8 | 2,266 | 2.28125 | 2 | [] | no_license | package kz.qobyzbook.C_Lessons;
import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import kz.qobyzbook.R;
import kz.... | true |
b7acc92798026b97bb765a8b98f76f45397c6494 | Java | nahan/LeetCode | /LeetCode055/src/Solution.java | UTF-8 | 852 | 2.953125 | 3 | [] | no_license |
public class Solution {
public boolean canJump(int[] nums) {
if (nums == null || nums.length <= 1) {
return nums == null || nums.length == 0? false: true;
}
int i = nums.length - 2;
int pre = nums.length;
int minJump = 1;
while (i > 0) {
... | true |
25dcb19ebeae7b958eb7511283af6d571c7e705e | Java | Alachisoft/TayzGrid | /src/tayzgridservice/src/com/alachisoft/tayzgrid/cachehost/AssemblyUsage.java | UTF-8 | 609 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive |
package com.alachisoft.tayzgrid.cachehost;
public class AssemblyUsage {
public static void printUsage()
{
String usage = "Usage: tayzgridd \r\n-i --cache-id \r\n Specifies the id/name of cache." + "\r\n"
+ "\r\n" + "\r\n" + "-f --configfile \r\n Specifies the config file path... | true |
58fdff97cd896e2c3a5eccb0f430ce521c89e348 | Java | yejinpak48/Semi-Project-pre-owned | /semiProject1/src/com/kh/bvengers/product/controller/RefundSearchServlet.java | UTF-8 | 2,806 | 2.15625 | 2 | [] | no_license | package com.kh.bvengers.product.controller;
import java.io.IOException;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResp... | true |
31d49c3b782c1abf017778eb4898e5d2e00c9a7b | Java | kfyty/mybatis-auto-mapper | /src/main/java/com/kfyty/mybatis/auto/mapper/autoconfig/MybatisAutoMapperAutoConfig.java | UTF-8 | 2,530 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package com.kfyty.mybatis.auto.mapper.autoconfig;
import com.github.pagehelper.PageInterceptor;
import com.kfyty.mybatis.auto.mapper.annotation.AutoMapper;
import com.kfyty.mybatis.auto.mapper.handle.MethodHandler;
import com.kfyty.core.utils.CommonUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annot... | true |
be31a879220bf9d4a76cede6b7c1a8ae56f6fba5 | Java | matrixxun/FMTech | /GooglePlay6.0.5/app/src/main/java/com/google/moneta/orchestration/ui/common/ClientEnvironmentConfig.java | UTF-8 | 2,200 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | package com.google.moneta.orchestration.ui.common;
import com.google.protobuf.nano.CodedOutputByteBufferNano;
import com.google.protobuf.nano.MessageNano;
import java.io.IOException;
public abstract interface ClientEnvironmentConfig
{
public static final class AndroidEnvironmentConfig
extends MessageNa... | true |
d3e993745fb8826da64badf6b6354c6dcad627c9 | Java | zongshuo/IntegratedManagementSystem | /system/src/main/java/com/zongshuo/service/DictService.java | UTF-8 | 1,164 | 2.15625 | 2 | [] | no_license | package com.zongshuo.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zongshuo.model.DictModel;
import java.util.List;
public interface DictService extends IService<DictModel> {
/**
* 查询所有字典
* @return
*/
List<DictModel> getAllDict();
/**
* 新增字典
*... | true |
dd4d5b050cc4567002d3bc3c744cda8cc8f16e99 | Java | murugan425/learn-mongo | /javamongobasic/src/main/java/tamil/learn/mongo/javamongobasic/HelloMongoCRUD.java | UTF-8 | 6,131 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | /**
* @author Murugan_Nagarajan
* @date Apr 2, 2018
*/
package tamil.learn.mongo.javamongobasic;
import static tamil.learn.mongo.javamongobasic.utilities.PrintDocument.printJson;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
import org.bson.Document;
import o... | true |
2216f191a416c3f1ec78acc761cb066eb1484ea3 | Java | maherzaidoune/Depth_First_Search | /src/depth/first/search/DepthFirstSearch.java | UTF-8 | 1,910 | 3.6875 | 4 | [] | no_license | package depth.first.search;
import java.util.ArrayList;
import java.util.Stack;
/**
*
* @author maher
*/
/**
* ♥ RRDL ♥
*/
public class DepthFirstSearch {
Node startNode;
Node goalNode;
ArrayList<Node> done;
public DepthFirstSearch(Node startNode,Node goalNode){
... | true |
8254bcf83dc815139eeb878a5cb539805563ec65 | Java | Wang-Shuaijie/Project_eshop | /src/com/wsj/eshop/dao/UserDao.java | GB18030 | 2,336 | 2.515625 | 3 | [] | no_license | package com.wsj.eshop.dao;
import java.util.List;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import com.wsj.eshop.bean.User;
import com.wsj.eshop.util.PageHibernateCallback;
/**
* 3ܹdao user
* @author WangShuaiJie
*
*/
public class UserDao extends HibernateDaoSupport{
/**
* ûѯû
... | true |
8a3997452c01737d8d3290cd8f983ea609bae3e4 | Java | jmbr1970/wa-camunda | /wa-backend-core/src/main/java/com/sh/autonomos/core/persistence/entity/Actividad.java | UTF-8 | 3,858 | 2 | 2 | [] | no_license | package com.sh.autonomos.core.persistence.entity;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Joi... | true |
2819070a4e588cc15d529c70982304a90fa80e77 | Java | Is-Chelo/REST-API-JWT | /Tarea10/src/main/java/com/khoubyari/example/service/AlimentoService.java | UTF-8 | 1,741 | 2.078125 | 2 | [
"MIT"
] | permissive | package com.khoubyari.example.service;
import com.khoubyari.example.domain.Alimento;
import com.khoubyari.example.dao.jpa.AlimentoRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.metrics.CounterSe... | true |
413f103332983e50b27bd1301bc69f180f7b7abb | Java | HONGYU0802/J2EE-et-Framework | /TestJDBC/src/dao/ConnectionBd.java | UTF-8 | 766 | 2.640625 | 3 | [] | no_license | package dao;
import java.sql.Connection;
import java.sql.DriverManager;
public class ConnectionBd {
private static Connection connection=null;
private static ConnectionBd c=null;
private ConnectionBd() {}
public static Connection getConnection() {
if(c==null) {
c=new ConnectionBd();
//connextin
t... | true |
db6e8fe15b3f4771cef2a65a4f7c69b98dcbd243 | Java | wwp1212/Github01 | /src/main/java/cn/sxt/pojo/Goods.java | UTF-8 | 926 | 2.28125 | 2 | [] | no_license | package cn.sxt.pojo;
/**
* @Description: 商品实体类
* @Date: 2019-3-26
* @author: 汪文平
* @version: 1.0
*
*/
public class Goods {
private int id; /*商品编号*/
private String name; /*商品名称*/
private int catid; /*商品的类别id*/
private int price; /*商品的价格*/
private String remarks; /*商品的备注*/
public int getId... | true |
6bb6d0df3cf729fd79dce27af14ca9130002921f | Java | flippii/spring-boot-mybatis-example | /src/main/java/com/spring/boot/example/mybatis/infrastructure/mybatis/readservice/TagReadService.java | UTF-8 | 221 | 1.632813 | 2 | [] | no_license | package com.spring.boot.example.mybatis.infrastructure.mybatis.readservice;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface TagReadService {
List<String> findAll();
}
| true |
f816bfedd0c968faa15be0216e2c126bd8b0ded7 | Java | CMPUT301F17T08/habit_rabbit | /app/src/main/java/ca/ualberta/cmput301f17t08/habitrabbit/NotificationAdapter.java | UTF-8 | 8,399 | 2.34375 | 2 | [
"MIT"
] | permissive | package ca.ualberta.cmput301f17t08.habitrabbit;
import android.app.AlertDialog;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import andro... | true |
f643cc5988d3e3d252dc97befbbec5c15a194a46 | Java | MISO4204-201810/fabricas-software-201810 | /comrueda-front/src/main/java/comrueda/eventos/salidas/resources/SalidaResource.java | UTF-8 | 2,432 | 2.5 | 2 | [] | no_license | package comrueda.eventos.salidas.resources;
import comrueda.eventos.salidas.dtos.SalidaDTO;
import comrueda.eventos.salidas.ejb.SalidaLogic;
import comrueda.eventos.salidas.entities.SalidaEntity;
import comrueda.common.exceptions.BusinessLogicException;
import comrueda.eventos.interfaces.EventoDTO;
import comrueda.eve... | true |
ad2929790959377ddd7802ee6a3a97480466e48f | Java | wioletar/Movies-library-with-test | /src/main/java/repository/JSONprovider.java | UTF-8 | 848 | 2.71875 | 3 | [] | no_license | package repository;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import model.Movie;
import java.io.*;
import java.util.*;
public class JSONprovider implements Provider {
public void readFile(List<Movie> movies) throws IOException {
... | true |
2c8e9770d048e5b4db5abfb753609f8da5c56926 | Java | WongGamTou/YuePai | /src/main/java/cn/xmu/yuepai/util/MsgListeners.java | UTF-8 | 415 | 1.601563 | 2 | [] | no_license | package cn.xmu.yuepai.util;
import org.apache.activemq.command.ActiveMQTopic;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jms.annotation.EnableJms;
import javax.jms.Topic;
@Configuration
@EnableJms
public class MsgListene... | true |
a064c7c62ce22b72047cd673cbea87477cbf2f71 | Java | guidogithub/jamesbond | /MyfirstappUDP/app/src/main/java/com/example/myfirstapp/MainActivity.java | UTF-8 | 6,146 | 2.234375 | 2 | [] | no_license | package com.example.myfirstapp;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import com.google.android.gms.appindexing.A... | true |
298cbed09be5b935f82b122652733b38bb25ac82 | Java | AbhishekVel/PhotoViewer | /src/List/MyListIterator.java | UTF-8 | 169 | 2.375 | 2 | [] | no_license | package List;
public interface MyListIterator<T> {
public boolean hasNext();
public boolean hasPrev();
public T next();
public T prev();
public void reset();
}
| true |
cbc71d3288dfb3e6737bc92f988b8fcaeea291b0 | Java | ApTyPuk/java_1_monday_2020_online | /src/main/java/student_lilija_g/homework/lesson_8/level_1_intern/task_2/DefaultConstructorDemo.java | UTF-8 | 448 | 2.734375 | 3 | [] | no_license | package student_lilija_g.homework.lesson_8.level_1_intern.task_2;
import teacher.annotations.CodeReview;
@CodeReview(approved = true)
class DefaultConstructorDemo {
public static void main(String[] args) {
DefaultConstructor myDefaultConstructor = new DefaultConstructor();
System.out.println(myDef... | true |
1555e932be35b819b42b1d888008cf37fc562002 | Java | MatteoCapella01/Verifica0405 | /esVerifica/src/esVerifica/Commento.java | UTF-8 | 766 | 2.65625 | 3 | [] | no_license | package es31pag136;
public class Commento {
private String commento;
private String idC;
private String titoloC;
public Commento(String commento, String idC, String titoloC) {
super();
this.commento = commento;
this.idC = idC;
this.titoloC = titoloC;
}
public String getCommento() {
return commento... | true |
ea4db2780b553920fc5239799888ba9aec280968 | Java | RossouwVenter/Java-Big | /HerbitShieldt/HirbetShildt/src/main/java/Chapter6/SumIt.java | UTF-8 | 385 | 2.65625 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Chapter6;
/**
*
* @author rosso
*/
public class SumIt {
int sum(int ... n) {
int result = 0;
for(int i = 0; i ... | true |
6e255f9981deb8bd9ddfc17905bc35c79e504573 | Java | osaytalois/TimeOut | /implementation/UserInfoService.java | UTF-8 | 585 | 2.375 | 2 | [] | no_license | package implementation;
import logic.UserInfo;
public class UserInfoService {
public void addInfo(UserInfo info){
UserInfoDAO u = new UserInfoDAO();
u.addUserInfo(info);
}
public void updateInfo(UserInfo info){
UserInfoDAO u = new UserInfoDAO();
u.updateUserInfo(info);
}
public UserInfo getUserInfo(... | true |
d34a6d69f29f4f67ea4decd385ed77e7ba66b154 | Java | lowelllll/study-java | /Java/src/201810/controlstatement/FlowEx6.java | UTF-8 | 217 | 2.828125 | 3 | [] | no_license | package controlstatement;
public class FlowEx6 {
public static void main(String args[]) {
int num = 0;
int sum = 0;
while((sum += ++num) <= 100) {
System.out.printf("%d - %d \n", num,sum);
}
}
}
| true |
ad0ccf1a1c08e9ba4e2ef30de297b0435c35e00d | Java | saify96/taskmaster | /app/src/main/java/com/example/taskmaster/MyNavigationService.java | UTF-8 | 401 | 1.734375 | 2 | [] | no_license | package com.example.taskmaster;
import android.app.Service;
import android.content.Intent;
import android.location.Location;
import android.os.IBinder;
import androidx.annotation.Nullable;
import com.google.android.gms.location.LocationServices;
public class MyNavigationService extends Service {
@Nullable
@... | true |
f8b8b29e3b68abab0937a9b1ab6494bce9683982 | Java | EEIT10506/JoooIN | /joooin/src/main/java/com/joooin/repository/ReportDao.java | UTF-8 | 364 | 1.804688 | 2 | [] | no_license | package com.joooin.repository;
import java.util.List;
import com.joooin.model.ReportBean;
public interface ReportDao {
public ReportBean getByReportId(Integer reportId);
public List<ReportBean> getAll();
public Integer save(ReportBean reportBean);
public void update(ReportBean reportBean);
public void ... | true |
7dd315bb3798c243ef9adfd57930ee055a05ea4c | Java | theoBattani/javafx_triangle_mesh_sample | /src/main/java/fr/theo/App.java | UTF-8 | 376 | 1.898438 | 2 | [] | no_license |
package fr.theo;
import fr.theo.util.fxml.Loader;
import java.io.IOException;
import javafx.application.Application;
import javafx.stage.Stage;
public class App extends Application {
@Override
public void start(Stage stage) throws IOException {
((Stage) Loader.loadFXML("view")).show();
}
public stat... | true |
3f4a9f7be8cf7ead023bc0e72e37e7241ea4b363 | Java | puzzle/marina-backend | /src/main/java/ch/puzzle/marinabackend/app/ApplicationInfo.java | UTF-8 | 2,205 | 2.359375 | 2 | [
"MIT"
] | permissive | package ch.puzzle.marinabackend.app;
import ch.puzzle.marinabackend.MarinaBackendApplication;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class ApplicationInfo {
private String implementationTitle;
private String implementationVersion;
private String implem... | true |
d0d5f574eb3081175f1d66951a850a80757af9e4 | Java | watix/dds | /ProyectoDds/src/game/entity/projectile/WizzardProjectile.java | ISO-8859-1 | 2,717 | 3.109375 | 3 | [] | no_license | package game.entity.projectile;
import game.entity.mob.Player;
import game.entity.mob.state.EstadoSuper;
import game.entity.spawner.ParticleSpawner;
import game.graphics.Screen;
import game.graphics.Sprite;
/**
* Clase que implementa la lgica de la creacin de poryectiles
*
* @author Joan Batiste Canet ... | true |
64ba1af8a18e892ad31e6c3162c98a919776aaa8 | Java | Paladin1412/house | /java/classes2/com/tencent/smtt/export/external/interfaces/IX5ScrollListener.java | UTF-8 | 501 | 1.835938 | 2 | [
"Apache-2.0"
] | permissive | package com.tencent.smtt.export.external.interfaces;
public abstract interface IX5ScrollListener
{
public abstract boolean onOverScroll(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6, int paramInt7, int paramInt8, boolean paramBoolean);
}
/* Location: /Users/g... | true |
30344054f53eeeedd52799f041f73d3f931ab579 | Java | kailashrs/5z_framework | /android/webkit/WebMessage.java | UTF-8 | 472 | 2.234375 | 2 | [] | no_license | package android.webkit;
public class WebMessage
{
private String mData;
private WebMessagePort[] mPorts;
public WebMessage(String paramString)
{
mData = paramString;
}
public WebMessage(String paramString, WebMessagePort[] paramArrayOfWebMessagePort)
{
mData = paramString;
mPorts = para... | true |
e222b16fa29e56ba400b3687386ebbde49b6cded | Java | caoyang4/Java | /src/algorithm/leetcode/Leetcode59.java | UTF-8 | 1,256 | 3.453125 | 3 | [] | no_license | package src.algorithm.leetcode;
import java.util.Arrays;
/**
* 59. 螺旋矩阵 II
* 给你一个正整数 n ,生成一个包含 1 到 n^2 所有元素,且元素按顺时针顺序螺旋排列的 n x n 正方形矩阵 matrix
* @author caoyang
*/
public class Leetcode59 {
public static int[][] generateMatrix(int n) {
int[][] result = new int[n][n];
int index = 1;
int ... | true |
2b4b764ff08238fb8094f50249aba5881b40a563 | Java | vossnarrator/ParserProject | /src/parser.java | UTF-8 | 256,251 | 2.140625 | 2 | [] | no_license |
//----------------------------------------------------
// The following code was generated by CUP v0.10k TUM Edition 20050516
// Thu Mar 12 19:01:18 PDT 2015
//----------------------------------------------------
import java_cup.runtime.*;
import java.util.Vector;
/** CUP v0.10k TUM Edition 20050516 generated parser... | true |
cde4116384d6febcbfe8ffbdc37324e39fbc2a6e | Java | haherer/jlw | /demo1123/src/main/java/com/example/demo1123/service/FooService.java | UTF-8 | 98 | 1.710938 | 2 | [] | no_license | package com.example.demo1123.service;
public interface FooService {
String service();
}
| true |
845d9c523068c1eae5140c9a0347f2426fde24f1 | Java | GrigalashviliT/ProChess | /src/Tests/GameTests/KingTest.java | UTF-8 | 8,955 | 3.296875 | 3 | [] | no_license | package Tests.GameTests;
import Game.Model.Cell;
import Game.Model.Constants;
import Game.Model.Piece;
import Game.Model.Pieces.King;
import javafx.util.Pair;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import java.util.Vector;
import static org.junit.jupiter.api.Assertions.*;
class K... | true |
7a36e7e26c719797199a9d757eeab25e971bb1e4 | Java | WalkingSouls/jdej-manage | /jdej-api/src/main/java/com/miquankj/api/service/RoleServcie.java | UTF-8 | 213 | 1.742188 | 2 | [] | no_license | package com.miquankj.api.service;
import com.miquankj.api.entity.Role;
/**
* 角色权限service
* @author liuyadong
* @since 2019/5/13
*/
public interface RoleServcie {
Role findRole(Integer roleId);
}
| true |
3b512b019a04d17aca0ca8661a98d170af2f804e | Java | lymons/android-trial | /tixing/src/main/java/yh729_activity/yh729_AlarmActivity.java | UTF-8 | 9,033 | 1.882813 | 2 | [] | no_license | package yh729_activity;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.AlertDialog;
import android.content.ComponentName;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import and... | true |
a7d082fde1946932d7f11bdc4f14c06992ad2f9d | Java | song121382/aizuji | /microservice-loverent-warehouse-v1/src/test/java/org/gz/warehouse/service/purchase/PurchaseApplyServiceTest.java | UTF-8 | 2,455 | 1.914063 | 2 | [] | no_license | package org.gz.warehouse.service.purchase;
import static org.junit.Assert.*;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.gz.common.entity.ResultPager;
import org.gz.common.resp.ResponseResult;
import org.gz.warehouse.entity.purchase.PurchaseApplyO... | true |
0d273d2992f8e9033830cc6ac0c01e0b7fcdf86f | Java | odingzx/-FOA- | /Leaf.java | UTF-8 | 493 | 2.703125 | 3 | [] | no_license | public class Leaf {
public double avg;
public double max;
public double val = 0;
public void setAvg(double avg) {
this.avg = avg;
}
public void setMax(double max){
this.max = max;
}
public double getAvg() {
return avg;
}
public double ge... | true |
ccbcf95ff83a6c3ab2eee3df08b4405138532c92 | Java | mahossain/EmpAssociateURLPinger | /src/main/java/com/au/service/EmployeeService.java | UTF-8 | 525 | 2.140625 | 2 | [] | no_license | package com.au.service;
import com.au.model.Employee;
import com.au.model.Organization;
import com.au.model.Project;
import java.util.Set;
/**
* Created by Mohammad on 23/3/17.
*/
public interface EmployeeService {
Set<Employee> findTeammates(final Organization organization, final Employee employee);
Emplo... | true |
7ec1baac2536862ecdc16c25cce1bba43bad7fcc | Java | miserrman/goods | /src/main/java/com/ooad/good/service/impl/GoodCategoryServiceImpl.java | UTF-8 | 5,471 | 2.265625 | 2 | [] | no_license | package com.ooad.good.service.impl;
import com.ooad.good.dao.GoodCategoryDao;
import com.ooad.good.dao.GoodsDao;
import com.ooad.good.domain.GoodsCategory;
import com.ooad.good.domain.GoodsCategoryPo;
import com.ooad.good.mapper.GoodsCategoryMapper;
import com.ooad.good.service.GoodCategoryService;
import com.ooad.goo... | true |
59c725aa03a83afaa3843045800175c26233f81b | Java | C1019G1/back-end | /module_4/service/src/main/java/com/codegym/service/ipml/AuctionServiceImpl.java | UTF-8 | 2,442 | 2.203125 | 2 | [] | no_license | package com.codegym.service.ipml;
import com.codegym.dao.DTO.AuctionDTO;
import com.codegym.dao.entity.Auction;
import com.codegym.dao.entity.RegisteredProduct;
import com.codegym.dao.entity.User;
import com.codegym.dao.repository.AuctionRepository;
import com.codegym.dao.repository.RegisteredProductRepository;
import... | true |
1af5cf51f780c6a93098ef464862633ad2c00df5 | Java | yexingf/cxcar | /shop/com/enation/app/shop/core/tag/order/OrderDetailGoodsNumTag.java | UTF-8 | 1,106 | 2.15625 | 2 | [] | no_license | package com.enation.app.shop.core.tag.order;
import java.util.Map;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import com.enation.app.shop.core.service.IOrderManager;
import com.enation.framework.taglib.BaseFreeMarkerTag;
import freemarker.template.TemplateM... | true |
46db5715b45b05f50bb19f4796c3e75733eed35b | Java | nagyistoce/C4GEP | /SF4GEP/src/ui/conf/view/OutputPictureDetail.java | UTF-8 | 4,406 | 2.265625 | 2 | [] | no_license | package ui.conf.view;
import java.awt.BorderLayout;
import java.awt.Font;
import java.awt.GridLayout;
import java.text.NumberFormat;
import java.util.List;
import javax.swing.JLabel;
import javax.swing.JPanel;
import twaver.Element;
import twaver.TDataBox;
import twaver.TWaverConst;
import twaver.cha... | true |
695447f6e4ad39fff100dd2a6e4cbc698542a68e | Java | xiaowangc/guazi | /guazi-system/src/controller/AddExpressController.java | UTF-8 | 1,826 | 2.40625 | 2 | [] | no_license | package controller;
import bean.Express;
import bean.Message;
import dao.BaseExpressDao;
import service.BaseExpressService;
import service.ExpressService;
import util.SendSms;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servl... | true |
21b38574ac7505453f4fe19a3c95caa8e944d930 | Java | Jlber/elasticSearch-demo | /elasticSearch-demo/src/main/java/com/example/elbert/elasticSearchdemo/EsController.java | UTF-8 | 4,358 | 2.296875 | 2 | [] | no_license | package com.example.elbert.elasticSearchdemo;
import org.elasticsearch.action.get.GetResponse;
import org.elasticsearch.action.index.IndexResponse;
import org.elasticsearch.action.search.SearchRequestBuilder;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.action.update.UpdateResponse;
... | true |
d61791ab2c2e8320e9cb0681392ef87fe96cb267 | Java | MathiasMonstrey/fosil_decompiled | /com/fossil/wearables/fsl/location/DeviceLocation.java | UTF-8 | 1,738 | 2.421875 | 2 | [] | no_license | package com.fossil.wearables.fsl.location;
import com.j256.ormlite.field.DatabaseField;
import java.io.Serializable;
public class DeviceLocation implements Serializable {
public static final String COLUMN_DEVICE_SERIAL = "deviceSerial";
public static final String COLUMN_LATITUDE = "latitude";
public stati... | true |
4bf010efec1089806b2aaec47ec7545896cb2640 | Java | jc-ampos/documaster-java-bundle | /src/main/java/com/documaster/rms/noark/ws/noarkentities/Bygning.java | UTF-8 | 3,039 | 2.046875 | 2 | [] | no_license | package com.documaster.rms.noark.ws.noarkentities;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Bygning extends NasjonalIdentifikator<Bygning> {
private String bygningsnummer;
private String endringsloepenummer;
private String bygningsStat... | true |
d2ced73b46713a6762c305affc65fe3bbe4cec7a | Java | slobodyanuk/android-RecylerViews-inside-ScrollView | /app/src/main/java/com/skysoft/slobodyanuk/recyclerpagers/UpdatingRecyclerView.java | UTF-8 | 3,791 | 2.453125 | 2 | [] | no_license | package com.skysoft.slobodyanuk.recyclerpagers;
import android.content.Context;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.annotation.Px;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.v... | true |
b3020d895fa2e81640d59533520deea9668f0139 | Java | microspeed2018/project | /yuanlinjinguan/zjzmjrAdmin/src/main/java/com/zjzmjr/admin/web/home/controller/AdminLoggerController.java | UTF-8 | 842 | 1.984375 | 2 | [] | no_license | /**
* zjzmjr.cn Inc.
* Copyright (c) 2010-2014 All Rights Reserved.
*/
package com.zjzmjr.admin.web.home.controller;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.zjzmjr.web.mvc.controller.BaseController;
/**
* @author elliott
* @version $Id: Adm... | true |
316ca76b72a3700c38c16f037e8537b610d605c2 | Java | rodrigorcs/restaurante | /src/br/com/restaurante/business/ComboBS.java | UTF-8 | 4,898 | 1.921875 | 2 | [] | no_license | package br.com.restaurante.business;
import java.util.List;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.inject.Inject;
import br.com.restaurante.dao.ComboDAO;
import br.com.restaurante.model.AtividadeModel;
import br.com.restaurante.model.BairroModel;
import br.com.restaurante.model.CargoMod... | true |
e50ac8c15e4d00014d3db2cccfbf605d021580a0 | Java | verilylifesciences/joint-genotype | /sharder/src/test/java/com/verily/lifescience/genomics/wgs/sharder/SharderTest.java | UTF-8 | 8,020 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018 Verily Life Sciences LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | true |
3d6c823333e0714406fcf5e0c7a11bce4f579575 | Java | vjroby/todo-list | /src/main/java/ro/robertgabriel/services/UtilityService.java | UTF-8 | 1,911 | 2.28125 | 2 | [
"MIT"
] | permissive | package ro.robertgabriel.services;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import ro.robertgabriel.enti... | true |
fc3952991d6a0aeea9dd23b4a81262f3c37e559c | Java | alexdurnoff/HTMLConvertService | /src/main/java/ru/durnov/HtmlConvertService/HtmlConvertServiceApplication.java | UTF-8 | 345 | 1.632813 | 2 | [] | no_license | package ru.durnov.HtmlConvertService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class HtmlConvertServiceApplication {
public static void main(String[] args) {
SpringApplication.run(HtmlConvertServiceApplica... | true |
2a1b9896e3f31866592e079a8e18697d18c124de | Java | Aaron1995/VehicleInspection | /app/src/main/java/studio/imedia/vehicleinspection/fragments/HomePageFragment.java | UTF-8 | 3,743 | 2.21875 | 2 | [] | no_license | package studio.imedia.vehicleinspection.fragments;
import android.content.Intent;
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.LinearLayout;
import android.widget.RelativeLayout;
imp... | true |
f03b917d9a9ae8f831579f8b474dfdea0cdbb85e | Java | 438972218/ztb-server | /permission-service/src/main/java/com/xdcplus/permission/controller/LoginController.java | UTF-8 | 3,979 | 2.140625 | 2 | [] | no_license | package com.xdcplus.permission.controller;
import cn.hutool.core.lang.Assert;
import com.nimbusds.jose.jwk.JWKSet;
import com.nimbusds.jose.jwk.RSAKey;
import com.xdcplus.permission.common.pojo.dto.auth.UserLoginDTO;
import com.xdcplus.permission.service.LoginService;
import com.xdcplus.permission.common.pojo.vo.sysus... | true |
dc77792226a07d12a5bda85b8ab79b821f8f9dc8 | Java | Synesso/instinct | /core/src/spec/java/com/googlecode/instinct/defect/defect8/AFixedDefect8WithAnAnnotationMethodLocator.java | UTF-8 | 3,608 | 1.890625 | 2 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"W3C",
"SAX-PD"
] | permissive | /*
* Copyright 2006-2007 Tom Adams
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | true |
1562b75152319a8741aae4a15af92a8e2994b01d | Java | Paul1365972/PartySystem | /PartySystemBungeecordAPI/src/de/paul/commands/TextMessages.java | WINDOWS-1250 | 3,020 | 2.359375 | 2 | [] | no_license | package de.paul.commands;
public interface TextMessages {
public static final String GREEN = "2[PartySystem] ";
public static final String RED = "4[PartySystem] ";
public static final String BLUE = "b[PartySystem] ";
public static final String SYNTAX = RED + "cSyntax: /party <invite/accept/decline/leav... | true |
a92501964c6168c866b486d0685e7bf2be7a5dbb | Java | lwbbyfq/auto-doc | /src/main/java/com/alibaba/auto/doc/handler/RequestParamHandler.java | UTF-8 | 7,692 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package com.alibaba.auto.doc.handler;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.alibaba.auto.doc.builder.ProjectBuilder;
import com.alibaba.auto.doc.constants.NonCustomPackage;
import com.alibaba.auto.doc.constants.SpecialCharacter;
import com.alibaba.auto.doc.constants.Sprin... | true |
4fa47ccde6ab6ebe7cb550b68ba9e65a177fe679 | Java | Aaronzhuzy/iot-tree | /driver-parent/driver-opc/src/main/java/org/iottree/driver/opc/opcua/client/DrvOpcUAClient.java | GB18030 | 4,239 | 2.0625 | 2 | [] | no_license | package org.iottree.driver.opc.opcua.client;
import java.util.*;
import java.math.*;
import java.nio.file.*;
import java.util.concurrent.*;
import java.util.function.Function;
import java.security.*;
import java.security.Security;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.ec... | true |
b179be2f67902a76b868556c58eed11e0f166fca | Java | wallisoncarmo/api_traducao | /src/main/java/com/carmowallison/base_api/services/PaginaService.java | UTF-8 | 3,701 | 2.4375 | 2 | [] | no_license | package com.carmowallison.base_api.services;
import com.carmowallison.base_api.domain.Linguagem;
import com.carmowallison.base_api.domain.Pagina;
import com.carmowallison.base_api.domain.Traducao;
import com.carmowallison.base_api.repositoties.LinguagemRepository;
import com.carmowallison.base_api.repositoties.Pagina... | true |
ec9463d87621b974ae9f5fb8d8cb2a3b97d7dd78 | Java | achilles-d/parser-compsci308 | /src/slogo/model/exceptions/NoSuchMethodException.java | UTF-8 | 636 | 2.40625 | 2 | [
"MIT"
] | permissive | package slogo.model.exceptions;
import java.util.ResourceBundle;
public class NoSuchMethodException extends java.lang.NoSuchMethodException {
public static final String ERROR_MESSAGE_PROP_DIR = "resources.errors.modelproperties.NoSuchMethodExceptionText" +
".properties";
public NoSuchMethodExcept... | true |
e2ead3f82421f37c46e779da2bfb9b23f3b9efc8 | Java | Ghiles1010/Pfe_App | /app/src/main/java/com/example/pfeapp/client_ui/Res_rech_holder.java | UTF-8 | 1,006 | 2.125 | 2 | [] | no_license | package com.example.pfeapp.client_ui;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.example.pfeapp.R;
import com.example.pfeapp.prest_ui.OnCardListener;
public class Res_rec... | true |
59bb89fdb01faab1f7b04af3ff6ba9169f96ed19 | Java | csl9311/semi | /src/karaoke/controller/KaraokeInsertServlet.java | UTF-8 | 4,705 | 2.140625 | 2 | [] | no_license | package karaoke.controller;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Enumeration;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.se... | true |
d438553ec2da695e7b2a9a6fcfebd8992e29a8f3 | Java | erik-roeckel/Algorithms-Project3 | /makeModelPriceQueues.java | UTF-8 | 4,152 | 3.34375 | 3 | [] | no_license | import java.util.*;
import java.io.*;
import java.lang.*;
public class makeModelPriceQueues
{
private priorityPriceQueue[] priceQueues;
private int numQueues;
private Hashtable<String, Integer> queueTable; // symbol table that hashes make + model to indexs in queues array
public makeModelPriceQueues()... | true |
ae9be4f6dbd6f49a13f96a8ba26d9724700540c5 | Java | ScottSWolfe/KillerBunnies | /src/com/github/scottswolfe/killerbunnies/item/card/CabbageCard.java | UTF-8 | 209 | 2.171875 | 2 | [] | no_license | package com.github.scottswolfe.killerbunnies.item.card;
public class CabbageCard extends ResourceCard {
public CabbageCard(String name, int value) {
super(name, value);
}
}
| true |
45893f7446ffa9ac61fcc6beec7519502283758c | Java | vaginessa/jdroid | /jdroid-android/src/main/java/com/jdroid/android/recycler/FooterRecyclerViewType.java | UTF-8 | 353 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package com.jdroid.android.recycler;
public abstract class FooterRecyclerViewType extends ViewHolderlessRecyclerViewType<FooterRecyclerViewType.FooterItem> {
@Override
protected Class<FooterItem> getItemClass() {
return FooterItem.class;
}
@Override
protected Boolean isClickable() {
return false;
}
publi... | true |
c5f855bfc8ea3c5516795fd6af4dbb08041af7fa | Java | reduceus/clover-android-sdk | /clover-android-sdk/src/test/java/com/clover/sdk/util/PlatformTest.java | UTF-8 | 5,943 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | package com.clover.sdk.util;
import junit.framework.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import java.util.Arrays;
import static com.clover.sdk.util.Platform.C100;
import static com.clover.sdk.util.Platform.C200;
import static com.clover.sdk.uti... | true |
d9c84781e106fecc341cecffaaa5252822af702d | Java | jorge-luque/hb | /sources/com/google/android/gms/internal/measurement/zzfw.java | UTF-8 | 928 | 1.929688 | 2 | [] | no_license | package com.google.android.gms.internal.measurement;
import java.util.Map;
/* compiled from: com.google.android.gms:play-services-measurement-base@@17.4.1 */
final class zzfw<K> implements Map.Entry<K, Object> {
private Map.Entry<K, zzfu> zza;
private zzfw(Map.Entry<K, zzfu> entry) {
this.zza = entry... | true |
ef7e59aa8cbc1f9c66b02a78526718f7b1baf2fb | Java | SCzfdf/test | /wfly/src/main/java/com/wfly/controller/test.java | UTF-8 | 1,141 | 2.015625 | 2 | [] | no_license | package com.wfly.controller;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotatio... | true |
957348fcde095cb20431b74fa13351ccd89a107d | Java | Cobluesky/BookRecommendationProject_v2 | /src/main/java/com/shop/view/user/JoinController.java | UTF-8 | 1,836 | 2.109375 | 2 | [] | no_license |
package com.shop.view.user;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import... | true |
adb0452efcd1b0122fe5be5efe9056ad18811f78 | Java | devoutDisciple/laundry-back | /src/main/java/com/laundry/moving/service/LoginService.java | UTF-8 | 2,812 | 2.25 | 2 | [] | no_license | package com.laundry.moving.service;
import com.laundry.moving.modal.entity.UserEntity;
import com.laundry.moving.modal.repo.HelloEntityRepo;
import com.laundry.moving.modal.repo.UserEntityRepo;
import com.laundry.moving.modal.vo.Test;
import com.laundry.moving.modal.vo.User;
import com.laundry.moving.util.BaseResponse... | true |
2bca9f9a6e3ed92157a9d6e5897ad6c779e81631 | Java | angstrom360/InvoiceApi | /src/main/java/com/trilogyed/Invoice/controller/InvoiceController.java | UTF-8 | 4,315 | 2.296875 | 2 | [] | no_license | package com.trilogyed.Invoice.controller;
import com.sun.jersey.api.NotFoundException;
import com.trilogyed.Invoice.servicelayer.InvoiceServiceLayer;
import com.trilogyed.Invoice.viewmodel.InvoiceItemViewModel;
import com.trilogyed.Invoice.viewmodel.InvoiceViewModel;
import org.springframework.beans.factory.annotation... | true |
d3851f19c5fffc2e39b279ce6839d77867e05d34 | Java | aberiggs/Lightspeed-Plugin | /src/com/sprocket/lightspeed/commands/TeleportCommand.java | UTF-8 | 1,604 | 2.9375 | 3 | [] | no_license | package com.sprocket.lightspeed.commands;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import java.util.HashMap;
public class TeleportCommand implement... | true |
25c9e14f476b209297fd2aadf31c4a6d5c4ffead | Java | freeloki/YIPSC-Simple-MIPS-Compiler | /YIPSC/src/main/java/com/yavuz/yipsc/asm/Register.java | UTF-8 | 445 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package com.yavuz.yipsc.asm;
import com.yavuz.yipsc.lexer.*;
import com.yavuz.yipsc.symbols.*;
public abstract class Register {
Token token;
Type type;
public Register(Token tok, Type typ) {
token = tok;
type = typ;
}
public abstract String getAddress();... | true |
49e909d92c4fa4befd9c67a716e7101d9e1cfb7a | Java | servicecatalog/development | /oscm-app-extsvc-1-0/javasrc/org/oscm/app/v1_0/data/ControllerConfigurationKey.java | UTF-8 | 1,920 | 2.265625 | 2 | [
"Apache-2.0",
"EPL-1.0",
"BSD-3-Clause",
"W3C",
"LGPL-3.0-only",
"CPL-1.0",
"CDDL-1.1",
"BSD-2-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.1-or-later",
"CDDL-1.0",
"Apache-1.1",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"W3C-19980720",
"LGPL-2.1-only",
"... | permissive | /*******************************************************************************
*
* Copyright FUJITSU LIMITED 2017
*
* Creation Date: 2012-09-13
* ... | true |
f05dd26cd1f5e1257ed6fe3c0bfc5a5b7aa89e73 | Java | damith-alahakoon/picasso | /picasso/src/test/java/com/squareup/picasso3/MemoryPolicyTest.java | UTF-8 | 965 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.squareup.picasso3;
import org.junit.Test;
import static com.google.common.truth.Truth.assertThat;
public class MemoryPolicyTest {
@Test public void dontReadFromMemoryCache() {
int memoryPolicy = 0;
memoryPolicy |= MemoryPolicy.NO_CACHE.index;
assertThat(MemoryPolicy.shouldReadFromMemoryCac... | true |
3abf6c6db10db8b3a0692c6ab167610f352a4b0e | Java | codereligion/cherry-collect | /src/main/java/com/codereligion/cherry/collect/OptimizedIterations.java | UTF-8 | 16,794 | 2.484375 | 2 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | /**
* Copyright 2014 www.codereligion.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 by applicable law or agre... | true |
1912715e042a9ef9d0ea7ca7d29d8883f21183d6 | Java | buoyantpotato/NailJobs | /P341_FlattenNestedListLiterator.java | UTF-8 | 1,985 | 3.625 | 4 | [] | no_license | import java.util.Iterator;
import java.util.List;
import java.util.Stack;
/**
* Created by linzhou on 9/3/17.
*/
public class P341_FlattenNestedListLiterator {
public interface NestedInteger {
// @return true if this NestedInteger holds a single integer, rather than a nested list.
public boolean... | true |
434d1aed9868937a9f8da12006d5889247bdfbed | Java | cga2351/code | /DecompiledViberSrc/app/src/main/java/com/viber/voip/messages/orm/entity/json/MessageInfo.java | UTF-8 | 4,281 | 1.960938 | 2 | [] | no_license | package com.viber.voip.messages.orm.entity.json;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import org.json.JSONException;
import org.json.JSONObject;
public class MessageInfo
implements Parcelable
{
public static final Parcelable.Creator<MessageInfo> ... | true |
b58c681ada7701b487c2aeaebc43854128c3ae7f | Java | Training360/spring-training-2020-09-01 | /employees-mongodb/src/main/java/employees/employees/repository/EmployeesRepository.java | UTF-8 | 245 | 1.601563 | 2 | [] | no_license | package employees.employees.repository;
import employees.employees.entity.Employee;
import org.springframework.data.mongodb.repository.MongoRepository;
public interface EmployeesRepository extends
MongoRepository<Employee, String> {
}
| true |
4d66608aa98b82bff106372bfc05c8a64876f52f | Java | tsuzcx/qq_apk | /com.tencent.mm/classes.jar/com/tencent/mm/game/report/b/a.java | UTF-8 | 1,867 | 1.625 | 2 | [] | no_license | package com.tencent.mm.game.report.b;
import android.content.Context;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.game.report.g;
import java.util.HashMap;
import java.util.Map;
public final class a
{
public static String a(int paramInt, Map paramMap)
{
AppMethodBeat.i... | true |
bd45b6c0c01eec224db6521dfd1f9e299789dca6 | Java | dreameddeath/couchbase-testing | /core/core-catalog/src/main/java/com/dreameddeath/couchbase/core/catalog/model/v1/changeset/ChangeSetItem.java | UTF-8 | 4,030 | 2 | 2 | [] | no_license | /*
* Copyright Christophe Jeunesse
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | true |
55b14bf5d6d88afd76876ca9074bbc1759b58162 | Java | TeamKun/KikakuUtils | /src/main/java/net/kunmc/lab/kikakuutils/ask/AskInternalCommand.java | UTF-8 | 2,590 | 2.453125 | 2 | [
"MIT"
] | permissive | package net.kunmc.lab.kikakuutils.ask;
import net.kunmc.lab.kikakuutils.KikakuUtils;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.chat.BaseComponent;
import net.md_5.bungee.api.chat.ComponentBuilder;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.com... | true |
60d7778d844d899832f0c745372c6d2ed4557cfd | Java | FloresStefano/backenders-republic | /myapp-suite/myapp-module/myapp-module-batch/src/main/java/it/addvalue/demo/TimeConsumingItemProcessor.java | UTF-8 | 1,557 | 2.78125 | 3 | [] | no_license | package it.addvalue.demo;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.batch.item.ItemProcessor;
import java.util.Random;
public class TimeConsumingItemProcessor<T> implements ItemProcessor<T, T> {
private static final Log log = LogFactory.getLo... | true |
93f2e0d36f2deba744bba7bc27a087c4e8dcc012 | Java | silvajr20/sanduicheIche | /src/sanduicheice/ConexaoBancoDeDados.java | UTF-8 | 1,506 | 2.65625 | 3 | [] | no_license |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package sanduicheice;
import java.sql.*;
/**
*
* @author fabio
*/
public class ConexaoBancoDeDados {
private static ConexaoBa... | true |
eb60705efb79d72931183d2685bab7bc4bc2709d | Java | richwang/offspring | /com.dgex.offspring.application/src/com/dgex/offspring/application/parts/RecentBlocksViewer.java | UTF-8 | 9,558 | 1.84375 | 2 | [
"MIT"
] | permissive | package com.dgex.offspring.application.parts;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import nxt.Block;
import nxt.util.Convert;
import org.apache.log4j.Logger;
import org.eclipse.e4.ui.di.UISynchronize;
import org.eclipse.e4.ui.services.IStylingEngine;
import org.eclipse.jfa... | true |
3df2dfa1833afa08ec63f003c0dd33adb237d8ae | Java | P79N6A/orion | /ANL/q/src/main/java/com/hs/q/common/utils/HEX.java | UTF-8 | 2,245 | 3.109375 | 3 | [] | no_license | package com.hs.q.common.utils;
import java.util.Locale;
/**
* 自定义加密工具
*
*/
public class HEX {
/**
* 将字符串转换成十六进制字符串
* @param s 字符串
* @return 转化后的十六进制字符串
*/
public static String getCipher(String s) {
return getCipher(s, '0');
}
/**
* 将字符串转换成十六进制字符串
* @param s 字符串
* @return 转化后的十六进制字符串
*/
publ... | true |
cd9fe220e80717f20e6aa81a42c85720a02b1edf | Java | MonkHank/hx_navigation | /app/src/main/java/com/seuic/hisense/utils/FragmentHelper.java | UTF-8 | 8,208 | 2.46875 | 2 | [] | no_license | package com.seuic.hisense.utils;
import android.app.Activity;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.util.SparseArray;
import com.seuic.hisense.fragments.BaseFragment;
public class FragmentHelper {
private static final int NO_TAB = -1;
private static final int S... | true |
6c0521633cbdb43f18c7a05459e024a82eaeab0b | Java | gj2569355373/hdsd | /library/src/main/java/com/zchd/library/network/linstener/IcssCallback.java | UTF-8 | 828 | 2.25 | 2 | [] | no_license | package com.zchd.library.network.linstener;
import android.util.Log;
import com.zhy.http.okhttp.callback.StringCallback;
import okhttp3.Call;
/**
* Created by GJ on 2016/9/18.
*/
public abstract class IcssCallback extends StringCallback {
@Override
public void onError(Call call, Exception e, int id) {
... | true |
b3ffc838c2684960128662d216065f664f543c0a | Java | nerzhul250/Marathons | /currentWorkspace/ProblemasDeMaraton/src/OrzPandas.java | UTF-8 | 765 | 3.0625 | 3 | [] | no_license | import java.io.InputStreamReader;
import java.util.Scanner;
public class OrzPandas {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(sc.hasNext()) {
double x0 = sc.nextInt();
double y0 = sc.nextInt();
double x1 = sc.nextInt();
double y1 = sc.nextInt();
double vm... | true |