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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
3b1342e6e4d022b725e2324fdf3701990b7e9dc8 | Java | 4010hrms/hrms | /src/main/java/com/king/hrmsdev/mapper/DepartmentMapper.java | UTF-8 | 806 | 1.828125 | 2 | [] | no_license | package com.king.hrmsdev.mapper;
import com.king.hrmsdev.entity.Department;
import com.king.hrmsdev.pojo.Peoplecountindepart;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* @Auther:SnakeKing
* @Date: 2019-09-12
* @Description: com.king.hrmsdev.mapper
* @version:1.0
*/
@Mapper
public i... | true |
9cd5d092f75f258e3502e6710fba4c6f8f21d6f4 | Java | wuhaoyang99/1708Dwhy | /src/test/java/com/bawei/day/DateUtils.java | UTF-8 | 2,797 | 2.828125 | 3 | [] | no_license | package com.bawei.day;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.time.temporal.ChronoUnit;
import java.time.temporal.TemporalAdjusters;
/**
* LocalDate ���� LocalTime ʱ�� LocalDateTime ���ں�ʱ��
*
*/
public class DateUtils {
/*... | true |
78ca2e4e64469d4a6ea5761a426210b854d68a14 | Java | twilightDF/java-works | /demo-1/src/main/java/com/twilight/demo2/TestPloy.java | GB18030 | 1,315 | 4.0625 | 4 | [] | no_license | package com.twilight.demo2;
/**
* Զ̬
* @author ŷ
*ɶ̬
*1.Ҫм̳
*2.Ҫд
*3.øõĶ
*/
public class TestPloy {
public static void main(String[] args) {
Animal c = new Cat();
//Cat c = new Cat();ʲôͬ
c.shout();
animalCry(c);
a();
//ǰʲôͬ
animalCry(new Dog());//animalΪ࣬ڴĵĶɶ̬
//ת
... | true |
98038b1e3d1a277c41726ad2c215f493a2d13af6 | Java | azizsault1/CotacaoEscolar | /src/test/java/cotacaoEscolar/repository/json/JsonRepositoryTest.java | UTF-8 | 1,466 | 2.3125 | 2 | [] | no_license | package cotacaoEscolar.repository.json;
import static org.junit.Assert.assertNotNull;
import java.io.IOException;
import java.security.GeneralSecurityException;
import org.junit.Test;
import cotacaoEscolar.repository.DescricaoMaterialEscolarRepository;
import cotacaoEscolar.repository.EscolaRepository;
import cotac... | true |
5381faada8cc17ff973183d2fb5fcd425ac0b322 | Java | irinatin/National-Parks-Forecast-Capstone-Project-Module-3 | /src/test/java/com/techelevator/npgeek/cukes/SurveyResultPage.java | UTF-8 | 321 | 1.867188 | 2 | [] | no_license | package com.techelevator.npgeek.cukes;
import org.openqa.selenium.WebDriver;
public class SurveyResultPage extends SurveyInputTestPage {
private WebDriver webDriver;
public SurveyResultPage(WebDriver webDriver) {
this.webDriver = webDriver;
}
public String getTitle() {
return webDriver.getTitle();
}
}... | true |
761e65a13722babea6035ef707ff066f2dbe37c9 | Java | HausemasterIssue/novoline | /src/net/minecraft/client/resources/SimpleReloadableResourceManager$1.java | UTF-8 | 512 | 2 | 2 | [
"Unlicense"
] | permissive | package net.minecraft.client.resources;
import com.google.common.base.Function;
import net.minecraft.client.resources.IResourcePack;
import net.minecraft.client.resources.SimpleReloadableResourceManager;
class SimpleReloadableResourceManager$1 implements Function {
final SimpleReloadableResourceManager this$0;
... | true |
607538fec82159ab08b00dd33d7412108deb4c8e | Java | tiagoros/gravitee-access-management | /gravitee-am-plugins-handlers/gravitee-am-plugins-handlers-extensiongrant/src/main/java/io/gravitee/am/plugins/extensiongrant/core/impl/ExtensionGrantPluginManagerImpl.java | UTF-8 | 7,573 | 1.671875 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requ... | true |
acc5b0f7357ad7c2777f9cc87dd15474238fb405 | Java | digilogGithub/DesignPattern | /src/templateMethod/init/HyndaiMotor.java | UTF-8 | 1,216 | 3.375 | 3 | [] | no_license | package templateMethod.init;
class HyndaiMotor {
private Door door;
private MotorStatus motorStatus;
// private Motor motor;
HyndaiMotor(Door door) {
this.door = door;
motorStatus = MotorStatus.STOPPED;
}
void move(Direction direction) {
// if (getMotorStatus() == MotorS... | true |
95e9276f5fd9354581fea6e1ce752bb2d9a50d72 | Java | nieyue/XuDeCeYiFaServer | /src/com/nieyue/controller/TestController.java | UTF-8 | 14,109 | 2.171875 | 2 | [] | no_license | package com.nieyue.controller;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpSession;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.springframework.stereotype.Control... | true |
8db13cffa7380c1121cc9acfb08e827cae7e1ccf | Java | Ashrom0/Projects | /Full-Inheritance/Full-Inheritance/lab8/cscd211comparators/TeamPayrollComparator.java | UTF-8 | 425 | 3.0625 | 3 | [] | no_license | package lab8.cscd211comparators;
import java.util.Comparator;
import lab8.cscd211classes.Team;
public class TeamPayrollComparator implements Comparator<Team>
{
@Override
public int compare(final Team t1, final Team t2)
{
if(t1 == null || t2 == null)
{
throw new IllegalArgumentException("Error: " + (t1 == n... | true |
000a062a6957f58cec82ff23f7a6aa6b023f60df | Java | kacyan/testruts | /src/jp/co/ksi/incubator/oauth/GetRequestToken.java | UTF-8 | 7,367 | 2.28125 | 2 | [] | no_license | package jp.co.ksi.incubator.oauth;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import JP.co.ksi.util.URLEncoder;
import java.util.Map;
import java.util.Properties;
import javax.servlet.http.HttpServl... | true |
31a01c1ab087fe7b0f89c48c16c2c66131c4e0c2 | Java | kylinmac/leetCode | /src/main/java/com/mc/code/SubsetsWithDup.java | UTF-8 | 335 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package com.mc.code;
import java.util.Arrays;
import java.util.List;
/**
* @author macheng
* @date 2021/3/31 9:09
*/
public class SubsetsWithDup {
public List<List<Integer>> subsetsWithDup(int[] nums) {
Arrays.sort(nums);
return null;
}
public void huishuo(int offset,List<Integer> li... | true |
ba3763010e8c4aaa660996f3254ac87a1578ebe7 | Java | etnlGD/Double-Shoot | /src/com/doubleshoot/troop/UniformDeterminer.java | UTF-8 | 262 | 2.640625 | 3 | [] | no_license | package com.doubleshoot.troop;
public class UniformDeterminer<T> implements ITroopDetermin<T> {
private T mValue;
public UniformDeterminer(T uniformValue) {
mValue = uniformValue;
}
@Override
public T next(int index, T prev) {
return mValue;
}
}
| true |
8bb1274262fb6fa390053578026b77d3c59307c2 | Java | LuuLinhSon/MuaSamTrucTuyen | /app/src/main/java/com/project/luulinhson/muasamtructuyen/View/Rating/ViewRating.java | UTF-8 | 354 | 1.59375 | 2 | [] | no_license | package com.project.luulinhson.muasamtructuyen.View.Rating;
import com.project.luulinhson.muasamtructuyen.Model.Object.DanhGia;
import java.util.List;
/**
* Created by Admin on 4/12/2017.
*/
public interface ViewRating {
void ThemDanhGiaThanhCong();
void ThemDanhGiaThatBai();
void HienThiDanhSachDanhG... | true |
dfbd35fc44043048c67da49fcc6c707a7e02ea54 | Java | bingoohuang/eql | /src/test/java/org/n3r/eql/eqler/TranBatchEqlerDemo.java | UTF-8 | 882 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | package org.n3r.eql.eqler;
import org.n3r.eql.Eql;
import org.n3r.eql.EqlTran;
import org.n3r.eql.impl.EqlBatch;
public class TranBatchEqlerDemo implements TranBatchEqler {
public void prepareData() {
new Eql().me().execute("xxx", "yyy");
}
@Override
public void cleanCnt() {
}
publi... | true |
383a3905b2dcf8a49352db32aeee6dd563fc62d1 | Java | bellaxin2010/testJAVA | /src/BasicKnowledge/UserLogin.java | UTF-8 | 643 | 2.8125 | 3 | [] | no_license | import java.util.Scanner;
public class UserLogin {
private String[][] userBox = {{"aaa", "111"}, {"bbb", "222"}};//当属性
public String userLogin(String username, String pwd) {
String result = "wrong pwd or username";
for (int i = 0; i < userBox.length; i++) {
if (userBox[i][0].equals... | true |
2e986ecc59f9dee2eb7e81159a9a84dbae69ff0e | Java | xiaobaobao007/PracticeCode | /src/Arithmetic/WhMyPeople.java | UTF-8 | 696 | 3.765625 | 4 | [] | no_license | package Arithmetic;
/**
* @author xiaobaobao
* @date 2020/4/6,21:21
* <p>
* 幼儿园45个小朋友围成一圈。从班长开始顺时针1报数,报到3出列,
* 下一个从1开始,来回这样报数后,最后剩下的是班长顺时针方向旁边第几个同学?
*/
public class WhMyPeople {
public static void main(String[] args) {
new WhMyPeople().doIt(5);
}
public void doIt(int num) {
int[] people = new int[num];
... | true |
8a540ebf4d422367f89d5824748e81cbf97651f1 | Java | hanviki/jwback | /src/main/java/com/welb/organization_check/service_impl/ResultDetailServiceImpl.java | UTF-8 | 1,537 | 1.851563 | 2 | [] | no_license | package com.welb.organization_check.service_impl;
import com.welb.organization_check.entity.ResultDetail;
import com.welb.organization_check.mapper.ResultDetailMapper;
import com.welb.organization_check.service.IResultDetailService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.... | true |
a6b10e43f5ee2b3d49cc95ef44d0bfc16349ea96 | Java | rettes/Java-Social-Media- | /src/main/java/dao/PlotDAO.java | UTF-8 | 4,014 | 2.890625 | 3 | [] | no_license | package main.java.dao;
import main.java.socialmagnet.*;
import java.sql.*;
import java.util.*;
public class PlotDAO {
public HashMap<Integer, ArrayList<Object>> getPlots(String username) {
ConnectionManager cm = new ConnectionManager();
ArrayList<Object> data = new ArrayList<>();
data.add... | true |
1c6cd190e8b9c880ab0673ac2ca2967dd556540a | Java | tp-team/dreamFM | /app/src/main/java/com/dreamteam/androidproject/newapi/answer/ArtistGetInfoAnswer.java | UTF-8 | 3,004 | 1.976563 | 2 | [] | no_license | package com.dreamteam.androidproject.newapi.answer;
import com.dreamteam.androidproject.newapi.template.ObjectList;
/**
* Created by nap on 12/4/2014.
*/
public class ArtistGetInfoAnswer {
private String status;
private String name;
private String mbid;
private String url;
private String images... | true |
68ae26eb454bbfb00c4768a06a17095794d95ea1 | Java | kabuqinuofu/AvoidClicks | /ControlClick/src/main/java/com/yc/controlclick/ControlClick.java | UTF-8 | 386 | 1.953125 | 2 | [] | no_license | package com.yc.controlclick;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author by CNKIFU on 2020/6/12.
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Con... | true |
d0385b932ea0c3f6b4558af0a920a39dd6a5545f | Java | jayedulhaque/AutoBot | /Auto SMS Responder/Bot Using Nexmo/maples/src/com/mapler/utility/Util.java | UTF-8 | 32,640 | 1.695313 | 2 | [] | no_license | package com.mapler.utility;
import com.mapler.model.AdModel;
import com.mapler.model.DataModel;
import com.mapler.model.SModel;
import com.mapler.model.UAModel;
import com.mapler.service.INotifier;
import com.opera.core.systems.OperaDriver;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;... | true |
b1c0fb411bb5f890719457aa73dc8cf747141205 | Java | aliceforstudies/ktp_java | /zadachi uroven' 4/U4Z7.java | UTF-8 | 783 | 3.46875 | 3 | [] | no_license | public class U4Z7
{
public static void main(String[] args)
{
System.out.println(toStarShorthand("aaahhhhh888"));
}
public static String toStarShorthand(String str)
{
if (str.isEmpty())
return "";
int j = 1;
char c = str.charAt(0);
String text = "";
... | true |
3316508b8f4c301e57327a173f721ea07e177a3a | Java | ob1modak/mySpring | /Library/src/main/java/com/hasan/library/user/User.java | UTF-8 | 1,239 | 2.296875 | 2 | [] | no_license | package com.hasan.library.user;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import com.hasan.library.book.Book;
@Entity
public class User {
@Id
@G... | true |
ad930c5e5c1100458e29387ce2df051c68d5e7ef | Java | pickerss/pmd_STANly | /src/main/java/net/sourceforge/pmd/lang/java/rule/stanly/metrics/MethodMetric.java | UTF-8 | 392 | 2.15625 | 2 | [] | no_license | package net.sourceforge.pmd.lang.java.rule.stanly.metrics;
public class MethodMetric {
private int LOC;
private int CC;
public int getLOC() {
return LOC;
}
public void setLOC(int lOC) {
LOC = lOC;
}
public int getCC() {
return CC == 0 ? 1 : CC;
}
public void addCC(int cC) {
CC += cC;
}
public voi... | true |
d34f6ddeb5e3a30a0aa8fe82fd5e6677df1c2ec1 | Java | inessgil/moviedbapp | /data/src/main/java/com/ia/data/repository/datasource/local/room/model/daos/GenreDAO.java | UTF-8 | 724 | 2.1875 | 2 | [] | no_license | package com.ia.data.repository.datasource.local.room.model.daos;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.OnConflictStrategy;
import android.arch.persistence.room.Query;
import com.ia.data.repository.datasource.local.room.model.entitie... | true |
e8b24f306380760f848a4424b6004a25244300cb | Java | skillsapphire/rent-collect-be | /src/main/java/com/rentcompany/rentcollect/exception/ResourceAlreadyExist.java | UTF-8 | 373 | 2.296875 | 2 | [] | no_license | package com.rentcompany.rentcollect.exception;
public class ResourceAlreadyExist extends Exception {
private Error error;
public ResourceAlreadyExist(){
}
public ResourceAlreadyExist(String code, String msg){
error = new Error();
error.setErrorCode(code);
error.setErrorMessage(msg);
}
p... | true |
c41d6b679a8a43298a61bfbf24b1dea1e5b5e628 | Java | zhangwuji123/test | /src/main/java/com/cloud/operation/action/CiStorageSubAction.java | UTF-8 | 11,177 | 1.835938 | 2 | [] | no_license | package com.cloud.operation.action;
import java.io.ByteArrayOutputStream;
import javax.annotation.Resource;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.spri... | true |
7ce03e8297cbff023951254e48800b5d2722fcbf | Java | joeltorres4/Big-Numbers-Calculator | /p2_4035_152/src/stack/IntStack.java | UTF-8 | 1,903 | 4.0625 | 4 | [] | no_license | package stack;
import exceptions.EmptyStackException;
import exceptions.FullStackException;
/**
* Represent IntStack objects, a similar implementation of Stack
*
* @author Pedro I. Rivera Vega
*
*/
public class IntStack {
private static final int DS = 10; // stack's default capacity
private int[]... | true |
ca245d4a82c04b2751b2643bb930daefbf538f96 | Java | codehaus/drools | /drools/drools-jsr94/src/main/org/drools/jsr94/rules/RuleExecutionSetMetadataImpl.java | UTF-8 | 3,916 | 2.1875 | 2 | [] | no_license | package org.drools.jsr94.rules;
/*
* $Id: RuleExecutionSetMetadataImpl.java,v 1.7 2004-11-28 03:34:05 simon Exp $
*
* Copyright 2004 (C) The Werken Company. All Rights Reserved.
*
* Redistribution and use of this software and associated documentation
* ("Software"), with or without modification, are permitted pr... | true |
a9ce960315052198b5bb3570cc0d18f8d9b46ae3 | Java | italiangrid/storm | /src/test/java/it/grid/storm/balancer/cache/ResponsivenessCacheTest.java | UTF-8 | 2,124 | 2.1875 | 2 | [] | no_license | package it.grid.storm.balancer.cache;
import static it.grid.storm.balancer.cache.Responsiveness.RESPONSIVE;
import static it.grid.storm.balancer.cache.Responsiveness.UNRESPONSIVE;
import static it.grid.storm.config.Configuration.CONFIG_FILE_PATH;
import static org.junit.Assert.assertEquals;
import static org.junit.Ass... | true |
b18af71965f7484cdcaf5021d6d4dd4d75d77e4f | Java | telmperez/linkedin-j-modified | /core/src/test/java/com/google/code/linkedinapi/schema/xml/TestXMLFiles.java | UTF-8 | 3,016 | 1.828125 | 2 | [] | no_license | /*
* Copyright 2010-2011 Nabeel Mukhtar
*
* 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 applica... | true |
58ac77e5d79c8729754797a7e57dc1b84b4a9325 | Java | yzx2786404067/bookInfo | /src/main/java/com/ycjw/bookInfo/controller/book/OpBookController.java | UTF-8 | 1,663 | 2.25 | 2 | [] | no_license | package com.ycjw.bookInfo.controller.book;
import com.ycjw.bookInfo.exception.ExceptionZyc;
import com.ycjw.bookInfo.model.response.Response;
import com.ycjw.bookInfo.service.book.OpBookService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.spring... | true |
b102639d83bb20ca5936fafb11af8b524a9503de | Java | VeraAPACS3000/2020-05-otus-spring-project-work-mrykina | /FinancialDistribution/src/main/java/ru/otus/spring/FinancialDistribution/configuration/SwaggerConfig.java | UTF-8 | 1,918 | 1.929688 | 2 | [] | no_license | package ru.otus.spring.FinancialDistribution.configuration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.document... | true |
9883d99300e933afc2d277e8e3d3b9664b0e381f | Java | lukinocomm/Ristorante | /src/CalcolaOrdinazioniInCorso.java | UTF-8 | 460 | 2.5 | 2 | [] | no_license |
public class CalcolaOrdinazioniInCorso implements IOperazioneSuOrdinazione {
private Contatore contatore;
public CalcolaOrdinazioniInCorso(Contatore contatore){
this.contatore=contatore;
}
@Override
public void applicaOperazione(OrdinazioneInCorso oic) {
this.contatore.incrementaContatoreDiUnU... | true |
4b07055b46f22f95b498372c98e108c7423a6c02 | Java | raejun/mini_prj | /java_gui/prj1/src/gui2/MyPanel1.java | UHC | 1,517 | 3.078125 | 3 | [] | no_license | package gui2;
import java.awt.BorderLayout;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.ListSelectionModel;
import javax.swing.table.DefaultTableModel;
public class MyPanel1 extends JPane... | true |
7ce5c9ddb1a22ad9f749c77e033dc006c733fa6e | Java | Direct-Entry-Program-Dulanga/DataStructure-LinkedList | /src/Singly.java | UTF-8 | 2,035 | 3.71875 | 4 | [] | no_license | public class Singly {
//create first object
private Node firstNode;
private Node lastNode;
int c = 0;
public void add(int number){
Node newnode = new Node(number);
if(firstNode==null){
firstNode = newnode;
lastNode = newnode;
}else{
last... | true |
3c0bf85a5a333d25449d1c72006ca7249af70e9d | Java | dalzymendoza/twu-biblioteca-dalzy | /src/com/twu/biblioteca/representations/LibraryItem.java | UTF-8 | 1,645 | 3.015625 | 3 | [
"Apache-2.0"
] | permissive | package com.twu.biblioteca.representations;
import com.twu.biblioteca.exceptions.AvailableLibraryItemException;
import com.twu.biblioteca.exceptions.UnavailableLibraryItemException;
public abstract class LibraryItem {
private int id;
private String title;
private boolean availability;
private User ch... | true |
a8a6c8a248d5f7824709dd1535801073ec4d1340 | Java | Faceunity/FUZegoLiveDemoDroid | /joinLive/src/main/java/com/zego/joinlive/ui/JoinLiveAudienceUI.java | UTF-8 | 27,236 | 1.8125 | 2 | [] | no_license | package com.zego.joinlive.ui;
import android.app.Activity;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.view.View;
import android.widget.CompoundButton;
import android.widget.Toast;
import com.zego.common.ZGBaseHelper;
import com.zego.common.entit... | true |
3f88446e3f3f960f1bf01ed2407fed76f33a9c73 | Java | Oscar2019/Trabalho-JVM | /tests/inteiro/neg.java | UTF-8 | 147 | 1.914063 | 2 | [] | no_license | class neg{
public static void main(String[] args){
int pi1 = 12;
int pi2 = -pi1;
System.out.println(pi2);
}
} | true |
a73de2a5a30aa5a4ed0462441308d57416cdad0e | Java | longhuoshi/lhsbcsx | /src/main/java/m_thread/second/chapter1/Demo17Interrupt.java | UTF-8 | 1,099 | 3.984375 | 4 | [] | no_license | package m_thread.second.chapter1;
import java.util.LinkedList;
/**
* @author l
* @date 2021/9/2 11:49
* @description
*利用interrupt停止线程2
* interrupt只对 执行任务的线程里有 Thread.sleep(20000); 才会终止线程并抛异常InterruptedException。
*/
public class Demo17Interrupt {
public static void main(String[] args) throws InterruptedExcep... | true |
587c051ba57574dde0c3ec9eb3503b27d3dac0de | Java | ApollinManenok/Java-FinalProject | /src/test/java/by/itacademy/finalproject/menus/operable/search/searchable/GroupSearchTest.java | UTF-8 | 1,769 | 2.578125 | 3 | [] | no_license | package by.itacademy.finalproject.menus.operable.search.searchable;
import by.itacademy.finalproject.domain.School;
import by.itacademy.finalproject.domain.group.Student;
import by.itacademy.finalproject.menus.serialize.serialization.json.ReadLocalGsonTest;
import by.itacademy.finalproject.menus.serializing.serializat... | true |
92bf4461d5a8f3642854c91157629358ad5e9dd5 | Java | gi0o0/quasar_fire | /src/main/java/co/com/mercadolibre/service/IMensajeService.java | UTF-8 | 194 | 1.71875 | 2 | [] | no_license | package co.com.mercadolibre.service;
import java.util.List;
import co.com.mercadolibre.entities.Satelite;
public interface IMensajeService {
String getMessage(List<Satelite> satelites);
}
| true |
0b1aa06850381fd3734231c722a6ca9927b5586a | Java | fafeichter/UDPChat | /src/fff/triplef/udpchat/client/gui/WindowClosing.java | UTF-8 | 800 | 2.375 | 2 | [] | no_license | package fff.triplef.udpchat.client.gui;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.IOException;
import fff.triplef.udpchat.exception.UDPChatException;
import fff.triplef.udpchat.message.Message;
public class WindowClosing extends WindowAdapter {
ClientGUI clientGUI = null... | true |
9ad080f1b3e73244cdb7f3269fc3eb71bf740a42 | Java | fuujiro/LeetCodeHot100 | /src/T121.java | UTF-8 | 402 | 2.828125 | 3 | [] | no_license | public class T121 {
class Solution {
public int maxProfit(int[] prices) {
int max = 0, l = 0;
for (int i = 1; i < prices.length; i++) {
if(prices[i] > prices[l]) {
max = Math.max(max, prices[i]-prices[l]);
} else {
... | true |
c05b184aa96dab5e08e8c158c44e68daa295aeee | Java | LIKESCX/cpmtDto | /src/main/java/com/cpit/cpmt/dto/exchange/operator/EquipmentInfoShow.java | UTF-8 | 12,861 | 1.992188 | 2 | [] | no_license | package com.cpit.cpmt.dto.exchange.operator;
import com.cpit.common.TimeConvertor;
import com.cpit.cpmt.dto.exchange.basic.ConnectorInfo;
import com.cpit.cpmt.dto.exchange.basic.EquipmentInfo;
import com.cpit.cpmt.dto.system.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import java.... | true |
43372a50bd8629926dee95ba3be76be59bd8581d | Java | Crune/MiPlatform-Spring-MyBatis | /src/main/java/com/jlab/mi/platform/MiDTO.java | UHC | 4,884 | 2.21875 | 2 | [] | no_license | package com.jlab.mi.platform;
import java.io.Serializable;
import java.lang.reflect.Method;
import java.util.*;
import com.tobesoft.platform.data.*;
public class MiDTO implements Serializable {
private static final long serialVersionUID = 5374424584879470680L;
private Map<String, String> variableListM... | true |
5cfc4301fb15313577a465f8f2efe3e8355af6bc | Java | NardiE/OrdiniRemoti | /app/src/main/java/com/example/edoardo/ordiniremoti/Activity/Sincronizza.java | UTF-8 | 1,187 | 1.9375 | 2 | [] | no_license | package com.example.edoardo.ordiniremoti.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Vi... | true |
c50574b18e54744d4ed0b43669a32d9575f1cf99 | Java | chirhotec/gurella | /core/src/com/gurella/engine/math/ModelIntesector.java | UTF-8 | 9,838 | 2.203125 | 2 | [] | no_license | package com.gurella.engine.math;
import java.nio.FloatBuffer;
import java.nio.ShortBuffer;
import com.badlogic.gdx.graphics.Mesh;
import com.badlogic.gdx.graphics.VertexAttribute;
import com.badlogic.gdx.graphics.VertexAttributes.Usage;
import com.badlogic.gdx.graphics.g3d.ModelInstance;
import com.badlogic.gdx.graph... | true |
25453e19af6c98d91c26c27c33bf9f7ca2b08fa8 | Java | UnderTheMistletoe/IntroductionToAlgorithms | /src/Chapter1/SelectSort.java | UTF-8 | 587 | 3.21875 | 3 | [] | no_license | package Chapter1;
/**
* Created by zt199 on 4/4/2017.
*/
public class SelectSort {
public static void sort(int[] array) {
for (int i = 0; i < array.length; i++) {
int key = array[i];
int index = i;
for (int j = i + 1; j < array.length; j++) {
if (array[... | true |
578d6573bb95a2181c9bdaa7f26010e690b4785c | Java | qlong8807/MyJavaTest | /src/main/java/bean/User.java | UTF-8 | 1,513 | 2.578125 | 3 | [] | no_license | package bean;
public class User {
private int id;
private String firstName;
private String lastName;
private int sex;
private float height;
private float weight;
private String bloodType;
private String homeAddress;
public int getId() {
return id;
}
public void setId(int id) {
this.id = i... | true |
e16e7c4a33b84cefc09b7b4954d2235e43d70430 | Java | ewinds/hzero-admin | /src/main/java/org/hzero/admin/app/service/MaintainService.java | UTF-8 | 1,229 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package org.hzero.admin.app.service;
import io.choerodon.core.domain.Page;
import io.choerodon.mybatis.pagehelper.domain.PageRequest;
import org.hzero.admin.domain.entity.Maintain;
import java.util.List;
/**
* @author XCXCXCXCX
* @date 2020/6/1 1:30 下午
*/
public interface MaintainService {
/**
* 更新运维状态,从... | true |
f15de90058df59b015f0c5645ba36d921ed029a0 | Java | rohsin47/saga-orchestrator | /orchestrator-core/src/main/java/com/bfm/cii/orchestrator/kafka/consumer/SagaKafkaConsumer.java | UTF-8 | 1,497 | 2.03125 | 2 | [] | no_license | package com.bfm.cii.orchestrator.kafka.consumer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.kafka.support.KafkaHeaders;
import org.springframework.messaging.handler.annotation.Header;
import org.springframew... | true |
6449eb97533e7aede6d7e91823fb5d65b7869e82 | Java | SpicyZinc/underestimate | /leetcode/JumpGameII/JumpGame.java | UTF-8 | 3,135 | 3.65625 | 4 | [] | no_license | /*
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Your goal is to reach the last index in the minimum number of jumps.
Given array A = [2,3,1,1,4]
The minimum number of jumps to reach... | true |
2a36d16291362c96575b16d9da3fca9546a30857 | Java | FruitBrother/computer-network | /MyHttpProxy/ProxyServer_zou/src/ClientToServerThread.java | UTF-8 | 541 | 2.703125 | 3 | [] | no_license | import java.io.InputStream;
import java.io.OutputStream;
/**
* Created by feihu on 2017/5/2.
*/
public class ClientToServerThread extends Thread {
private final int BUFFER_SIZE = (2 << 10)*5;
private InputStream clientIn;
private OutputStream serverOut;
private byte[] buffer = new byte[BUFFER_SIZE];... | true |
300ef9da8eb018d456377f7fd1642e3e2a056521 | Java | camel-tooling/camel-language-server | /src/main/java/com/github/cameltooling/lsp/internal/telemetry/Memory.java | UTF-8 | 573 | 2.34375 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | package com.github.cameltooling.lsp.internal.telemetry;
/**
* JVM memory information
*
* Mostly duplicated from Eclipse Lemminx, the xml language server
*/
public class Memory {
private final long free;
private final long total;
private final long max;
Memory() {
super();
this.free = Runtime.getRuntime... | true |
dceec0c5403951aa6fba9c0c6a7516c980743aa4 | Java | tangcco0011/191117 | /src/main/java/cn/kgc/tangcco/tcbd1017/lihaozhe/action/LoginHandler.java | UTF-8 | 1,052 | 2.140625 | 2 | [] | no_license | package cn.kgc.tangcco.tcbd1017.lihaozhe.action;
import java.io.IOException;
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 cn.kgc.tangcco.tcbd... | true |
d4ebc9485fca21eb662831cdbf4a0e222a340c15 | Java | nazrul/basis | /ncra/src/gov/ncra/service/NCRARecordServiceImpl.java | UTF-8 | 848 | 1.90625 | 2 | [] | no_license | package gov.ncra.service;
import gov.ec.ws.NIDService;
import gov.ncra.dao.NCRARecordDao;
import gov.police.ws.PoliceService;
/**
* Created by IntelliJ IDEA.
* User: nazrul
* Date: Jan 20, 2011
* Time: 5:13:30 PM
* To change this template use File | Settings | File Templates.
*/
public class NCRARecordServiceIm... | true |
90def21eb55c0dfbe6b3173399167f7d37dba096 | Java | miarevalo10/ReporteReddit | /reddit-decompilada/com/twitter/sdk/android/tweetui/internal/SpanClickHandler.java | UTF-8 | 4,313 | 2.0625 | 2 | [] | no_license | package com.twitter.sdk.android.tweetui.internal;
import android.annotation.SuppressLint;
import android.text.Layout;
import android.text.Spanned;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.TextView;
public class SpanClickHandler {
fi... | true |
ef08f6ddfbb834ef827fec474ea24994c6707941 | Java | itrid-technologies/BusniessApp | /app/src/main/java/com/itridtechnologies/resturantapp/models/orderHistory/ItemsItem.java | UTF-8 | 1,105 | 2.234375 | 2 | [
"MIT"
] | permissive | package com.itridtechnologies.resturantapp.models.orderHistory;
import com.google.gson.annotations.SerializedName;
public class ItemsItem{
@SerializedName("date_added")
private String dateAdded;
@SerializedName("date_modified")
private String dateModified;
@SerializedName("item_price")
private String itemPri... | true |
9ed4c389d975e96ccea43f915aa35e3a9993f064 | Java | newbigTech/hryj-mall | /compent/entity-model/src/main/java/com/hryj/entity/vo/staff/user/response/StaffAccountResponseVO.java | UTF-8 | 534 | 1.78125 | 2 | [] | no_license | package com.hryj.entity.vo.staff.user.response;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author 李道云
* @className: StaffAccountResponseVO
* @description: 添加员工响应VO
* @create 2018-07-03 19:04
**/
@Data
@ApiModel(value = "添加员工响应VO")
public cla... | true |
e220e10c39568d28e8d7c2a4a659598516661747 | Java | Ontides/Jigsaw-android | /app/src/main/java/com/example/ontidz/jigsaw/activity/RankActivity.java | UTF-8 | 1,642 | 1.984375 | 2 | [] | no_license | package com.example.ontidz.jigsaw.activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
import com.example.ontidz.jigsaw.R;
import com.example.ontidz.jigsaw.common.Grade;
import com.examp... | true |
575c43527229bf24a38cfb08cb97e2c0e07c3e5f | Java | damenac/puzzle | /plugins/fr.inria.diverse.generator.pcm/src/fr/inria/diverse/generator/pcm/SimpleSolver.java | UTF-8 | 2,407 | 2.46875 | 2 | [] | no_license | package fr.inria.diverse.generator.pcm;
import static choco.Choco.eq;
import static choco.Choco.gt;
import static choco.Choco.implies;
import static choco.Choco.makeIntVar;
import java.util.HashMap;
import java.util.Map;
import choco.cp.model.CPModel;
import choco.cp.solver.CPSolver;
import choco.kernel.model.Model;
... | true |
7001db15d82febd697588d38b47ebfde0aac7a73 | Java | voyage-task-manager/task | /app/src/main/java/database/WorkSchema.java | UTF-8 | 2,799 | 2.453125 | 2 | [] | no_license | package database;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import java.util.ArrayList;
import java.util.List;
import models.Setting;
import models.Task;
import models.Work;
/**
* Created by felipe on 09/10/1... | true |
bed27ea6c7bdad4720a6eaa4950a6464ced907e6 | Java | DavinderSohal/java | /EpicPatterns.java | UTF-8 | 11,954 | 4.15625 | 4 | [] | no_license | /* -----------------------------------------------------
Assignment # 1
The program when executed will prompt the user to select one of the 4 patterns they want to print and after receiving
valid input, user would have to enter the required number of rows for their pattern and the project will print that
pattern.
... | true |
9b85bd0d824826797b48e5aeadca601d73175ccf | Java | rodixxi/automate | /Gestar/src/main/java/com/harriague/automate/web/control/Attachment.java | UTF-8 | 290 | 1.835938 | 2 | [] | no_license | package com.harriague.automate.web.control;
import org.openqa.selenium.By;
public interface Attachment{
By getInputButton();
By getAddButton();
By getDeleteButton();
By getCloseButton();
By getAttachButton();
By getAttatchName();
By getCssSelector();
}
| true |
b672830f1e8a907fcf9fd8e127195a2a775ab2bb | Java | xujing1123/miaosha | /miaosha_1/src/main/java/com/xujing/miaosha/controller/GoodsController.java | UTF-8 | 7,543 | 2.078125 | 2 | [] | no_license | package com.xujing.miaosha.controller;
import com.xujing.miaosha.entity.MiaoshaUser;
import com.xujing.miaosha.redis.GoodsKey;
import com.xujing.miaosha.redis.RedisService;
import com.xujing.miaosha.result.Result;
import com.xujing.miaosha.service.GoodsService;
import com.xujing.miaosha.service.MiaoshaUserService;
imp... | true |
f080901617c4070c8a6b50f9d690db0ec853a83d | Java | kiaha1230/StaffManagement | /src/main/java/com/team3/repository/RecordRepository.java | UTF-8 | 205 | 1.679688 | 2 | [] | no_license | package com.team3.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.team3.model.Record;
public interface RecordRepository extends JpaRepository<Record, Integer> {
}
| true |
c0450a19494edb39a8f1ca7235062ebdae5d1d5a | Java | Suedo/SpringJpaPs | /conference-demo/src/main/java/com/pluralsight/conferencedemo/repositories/TicketPriceJpaRepository.java | UTF-8 | 475 | 1.710938 | 2 | [] | no_license | package com.pluralsight.conferencedemo.repositories;
import com.pluralsight.conferencedemo.models.Speaker;
import com.pluralsight.conferencedemo.models.TicketPrice;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import javax.persistence.EntityManager;
i... | true |
8ff134cd6c772b120857da0212f2e80947391ebc | Java | borisstojanovic/GeRuDok | /src/gerudok/actions/RedoAction.java | UTF-8 | 923 | 2.203125 | 2 | [] | no_license | package gerudok.actions;
import gerudok.app.MyJFrame;
import gerudok.errorhandler.ErrorHandlerSimpleFactory;
import gerudok.errorhandler.ExceptionEnum;
import gerudok.model.Page;
import gerudok.view.PageView;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
public class RedoAc... | true |
806fd299008d742b89105bb3bfbd6a8b56d50d63 | Java | pjyothsna/JSONRW | /src/main/java/com/comcast/json/lulzInterface.java | UTF-8 | 274 | 1.921875 | 2 | [] | no_license | package com.comcast.json;
import java.util.HashMap;
import java.util.Map;
public interface lulzInterface {
//Map<String, Integer> lulzMap = new HashMap<String,Integer>();
public Map<String, Integer> getLulzMap();
public void setLulMap(Map<String, Integer> lulzMap);
}
| true |
2ef49112e530330b4a278b695c63301b0651c4f5 | Java | rahulmen/MultiThreading | /src/main/java/com/learning/InterviewPreparation/DesignPattern/FactoryPatternDemo2/MiniCar.java | UTF-8 | 304 | 3.0625 | 3 | [] | no_license | package com.learning.InterviewPreparation.DesignPattern.FactoryPatternDemo2;
public class MiniCar extends Car {
MiniCar(CarType carType){
super(carType);
carfeature();
}
@Override
public void carfeature(){
System.out.print("MINI CAR IS A AVERAGE CAR");
}
}
| true |
e555021a9f5eca06e7346ec8e46b83167c0c0a55 | Java | TheWizardNik/archproject | /src/main/java/com/arhproject/start/jpa/domain/Publication.java | UTF-8 | 1,549 | 2.0625 | 2 | [] | no_license | package com.arhproject.start.jpa.domain;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
@Entity
@Table(name = "publication")
@Getter
@Setter
public class Publication {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
priv... | true |
3f958b81fab7c96f1a23371e68c3a1852129b4a8 | Java | raghavgh/Miwok | /app/src/main/java/com/example/miwok/WordAdapter.java | UTF-8 | 2,706 | 2.53125 | 3 | [] | no_license | package com.example.miwok;
import android.content.Context;
import android.support.v4.content.ContextCompat;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import java.util... | true |
0d8db976f8b1316358452f26ec69d9122805f3f9 | Java | annihilator01/server-api-university-practice | /src/main/java/com/universitypractice/springapplication/services/interfaces/baseoperations/UpdateService.java | UTF-8 | 165 | 2.03125 | 2 | [] | no_license | package com.universitypractice.springapplication.services.interfaces.baseoperations;
public interface UpdateService<T, F> {
T update(F filter, T updateInfo);
}
| true |
34ea173a1fac0ecb231ba3be116fa5ef2c487ee9 | Java | trifonnt/SpringBootMultiTenancy | /SpringBootMultiTenancy/src/main/java/de/bytefish/multitenancy/web/configuration/JerseyConfig.java | UTF-8 | 1,064 | 1.914063 | 2 | [
"MIT"
] | permissive | // Copyright (c) Philipp Wagner. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package de.bytefish.multitenancy.web.configuration;
import de.bytefish.multitenancy.web.filters.TenantNameFilter;
import de.bytefish.multitenancy.web.resources.C... | true |
db222037025717f614ae5db41bad6618efd1ac22 | Java | zjt0428/emms_GXDD | /emms_GXDD/src/com/knight/emms/web/action/IndisNoticeAction.java | UTF-8 | 3,076 | 2.03125 | 2 | [] | no_license | /**
*====================================================
* 文件名称: IndisNoticeAction.java
* 修订记录:
* No 日期 作者(操作:具体内容)
* 1. 2016年8月26日 chenxy(创建:创建文件)
*====================================================
* 类描述:(说明未实现或其它不应生成javadoc的内容)
*/
package com.knight.emms.web.action;
import java.util.List;
imp... | true |
8a3aac7fbaa35f7eac9f26c47fda68fd290d7316 | Java | 2550462328/daily-java-test | /src/main/java/cn/zhanghui/demo/daily/jdk8_newProp/forkjoin/ForkJoin_v3.java | UTF-8 | 734 | 3.28125 | 3 | [] | no_license | package cn.zhanghui.demo.daily.jdk8_newProp.forkjoin;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
/**
* @ClassName: ForkJoin_v2.java
* @Description: 这是jdk1.8 使用Stream的并行流的排序方式(实质也是fork/join)
* @author: ZhangHui
* @date: 2019年11月6日 下午5:16:17
... | true |
a5c4551849edd63d079d4e7c28a7276b5794f36e | Java | rainkun/explainable | /src/test/java/com/github/explainable/benchmark/ConjunctionGeneratorTest.java | UTF-8 | 9,233 | 2.140625 | 2 | [] | no_license | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 Gabriel Bender
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to us... | true |
fcafc1fb11e8b721a48651b02402132a9607b703 | Java | pcingola/SnpEff | /src/main/java/org/snpeff/util/Download.java | UTF-8 | 14,793 | 2.625 | 3 | [
"MIT"
] | permissive | package org.snpeff.util;
import javax.net.ssl.KeyManager;
import javax.net.ssl.SSLContext;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;
import java.io.*;
import java.net.*;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.security.Secu... | true |
10d62a556f3a36755942349786975f6ca09a6193 | Java | darshanadsw/todo-jms | /src/main/java/com/myapp/todojms/jms/ToDoProducer.java | UTF-8 | 527 | 2.3125 | 2 | [] | no_license | package com.myapp.todojms.jms;
import com.myapp.todojms.domain.ToDo;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.stereotype.Component;
@Slf4j
@Component
@RequiredArgsConstructor
public class ToDoProducer {
pr... | true |
1f835452986746e7e45d971b9b1c73abf39b75d8 | Java | fmribeiro/book-review-api | /src/main/java/com/resenha/microserviceresenha/services/LikedReviewService.java | UTF-8 | 4,396 | 2.296875 | 2 | [] | no_license | package com.resenha.microserviceresenha.services;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.resenha.microserviceresenha.data.model.LikedReview;
import com.resenha.microserviceresenha.data.model.Review;
import com.resenha.microserviceresenha.data.repositories.LikedReviewRepository;
import com.resen... | true |
6fed1ce608cc9e0ff93dce744ba9ab3fddc05735 | Java | medonja/IceSoap | /IceSoap/src/com/alexgilleran/icesoap/xml/XMLNode.java | UTF-8 | 2,794 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | /**
*
*/
package com.alexgilleran.icesoap.xml;
import java.util.Collection;
import com.alexgilleran.icesoap.xml.impl.XMLAttributeImpl;
/**
* Interface that represents a single XML node within an XML document.
*
* @author Alex Gilleran
*
*/
public interface XMLNode extends XMLElement {
/** Prefix for the X... | true |
54f40d86453f7c14c63033039bbd7ce762f4fb97 | Java | ieiko/livre_de_cuisine | /src/dao/DAORecetteJDBC.java | UTF-8 | 3,441 | 2.6875 | 3 | [] | no_license | package dao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import metier.*;
public class DAORecetteJDBC implements DAORec... | true |
e91c5e5c128a5703731b07297952a0107344e977 | Java | dlvip/jiushiguang | /piclib/src/main/java/com/pic/lib/activitys/PhotoPreviewActivity.java | UTF-8 | 5,641 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | package com.pic.lib.activitys;
import android.app.ActionBar;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.support.v4.view.ViewPager;
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
im... | true |
d09d655d2ac7ea21908bf7a43ccd492d233b9ad9 | Java | paullewallencom/android-978-1-7864-6895-6 | /_src/Zomato/app/src/main/java/com/androcid/zomato/model/CollectionItem.java | UTF-8 | 2,255 | 2.21875 | 2 | [
"MIT",
"Apache-2.0"
] | permissive | package com.androcid.zomato.model;
import com.androcid.zomato.util.Constant;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import java.util.List;
/**
*
*/
public class CollectionItem implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedNa... | true |
2099c90072a8f8b5fa8b5c1251271520d73895d0 | Java | phanssen/CS361_IDE_Project | /proj10DouglasHanssenMacDonaldZhang/CodeAreaTabPane.java | UTF-8 | 1,499 | 2.875 | 3 | [] | no_license | /*
File: CodeAreaTabPane.java
CS361 Project 9
Names: Liwei Jiang, Chris Marcello, Tracy Quan, Wyett MacDonald, Paige Hanssen, Tia Zhang, Kyle Douglas
Date: 11/20/2018
*/
package proj10DouglasHanssenMacDonaldZhang;
import org.fxmisc.richtext.CodeArea;
import javafx.scene.control.*;
import org.fxmisc.flowless.Virtualiz... | true |
359d03ca6c187c3adf9f43a211c298840a07207e | Java | jerome-jouvie/LibLoader | /src-java/org/jouvieje/libloader/LibLoaderJNI.java | UTF-8 | 1,835 | 2.125 | 2 | [] | no_license | /**
* LibLoader
* Copyright © 2007-2017 Jérôme Jouvie
*
* Created on 25 mar. 2007
* @version file v1.0.0
*
* To contact me:
* jerome.jouvie@gmail.com
* http://jerome.jouvie.free.fr/
*
* INTRODUCTION
* This project enhance the Java's System.loadLibrary and allows:
* - library loading without loading depende... | true |
0f1c6530de07c0dc4170052b8289001c0eda8ca7 | Java | vishal901/Retrofit2SampleApp | /app/src/main/java/zeroturnaround/org/jrebel4androidgettingstarted/imageloader/impl/FrescoImageLoader.java | UTF-8 | 2,725 | 2.0625 | 2 | [
"MIT"
] | permissive | package zeroturnaround.org.jrebel4androidgettingstarted.imageloader.impl;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Rect;
import android.graphics.RectF;
import android.net.Uri;
import android.widget.ImageView;
import com.facebook.drawee.bac... | true |
8f79beb7debb7b39d524d2a125b980fdd7c7f5d9 | Java | tandaica0612/MARDJAVA | /src-mard-backend/src/main/java/com/nsw/backend/mard/p07/repositories/TbdYcrut07Repository.java | UTF-8 | 434 | 1.757813 | 2 | [] | no_license | package com.nsw.backend.mard.p07.repositories;
import com.nsw.backend.mard.p07.model.TbdYcrut07;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* Repository : TbdYcrut07.
*/
@Repository
public interface TbdYcrut07Repositor... | true |
da7507c52524fd85c42793c70c25551046b8cf8e | Java | DzhonPetrus/JAVA-Reservation-System | /RESERVATION SYSTEM-MySQL/SIMPLE-INVENTORY-RESERVATION-SYSTEM/src/simple/inventory/reservation/system/DB/DAO_ACCOUNTS.java | UTF-8 | 6,132 | 2.671875 | 3 | [
"MIT"
] | permissive | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package simple.inventory.reservation.system.DB;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Arr... | true |
61596d18fe12378375977a3d920d83bcc4c5521e | Java | enha-rs/WebWechat | /SecondAccessOfyanfazhongxin/webWeChat/src/com/crs/dao/FriendsDao.java | UTF-8 | 564 | 1.882813 | 2 | [] | no_license | package com.crs.dao;
import com.crs.entity.Friends;
import java.util.List;
/**
* @author shkstart
* @create 2021-05-09 22:06
*/
public interface FriendsDao {
/**
* 添加好友
* @param friend
* @return
*/
public int saveFriend(Friends friend);
/**
* 根据本人id查找本人的好友
* @param userI... | true |
ad211e0a12ff1968f79a96155ca43469bf634f54 | Java | lars-reimann/playground | /Java/VierGewinnt/src/net/bplaced/programmierung/vierGewinnt/Computer.java | UTF-8 | 3,140 | 2.921875 | 3 | [] | no_license | package net.bplaced.programmierung.vierGewinnt;
import java.util.List;
import java.util.Random;
public final class Computer {
private final Engine engine;
private long[][] transpositionIndex = new long[42][10];
private int[][] transpositionValue = new int[42][10];
private int insertionIndex... | true |
b0a0b86da3c823a0746c7e147c2df1e0099ead5b | Java | deternan/Light-tools | /src/Json/XML_to_JSON.java | UTF-8 | 1,351 | 2.75 | 3 | [] | no_license | package Json;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.InputStream;
import org.json.JSONObject;
import org.json.XML;
public class XML_to_JSON
{
private String read_file_path = "";
private String read_file_name = "*.xml";
private String write_file_path = "";... | true |
6f2ab7905cc62988f6befb7b215a3b4a0631ba13 | Java | jaenyeong/Study_Spring-Web-mvc | /src/main/java/com/jaenyeong/springwebmvc/springWebHttpMethod/BaseController.java | UTF-8 | 2,696 | 2.484375 | 2 | [] | no_license | package com.jaenyeong.springwebmvc.springWebHttpMethod;
import org.springframework.http.ResponseEntity;
import org.springframework.ui.Model;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandle... | true |
6c1e94dc9e31de310dd3a2ef9809f4211c2b6060 | Java | rentongfu/MyTestApp | /app/src/main/java/com/tongfu/mytestapp/lifecycle/fragment/FragmentLifecycleActivity.java | UTF-8 | 5,445 | 1.960938 | 2 | [] | no_license | package com.tongfu.mytestapp.lifecycle.fragment;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.view.ContextMenu;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import androidx.an... | true |
0e26179a1a92ffd7c2421e2c438aa121700b2492 | Java | ChristinaDev/android-master | /baker/src/test/java/com/daniel/alexa/baker/services/youtube/YoutubeSuggestionBakerTest.java | UTF-8 | 908 | 2.234375 | 2 | [] | no_license | package com.daniel.alexa.baker.services.youtube;
import org.junit.BeforeClass;
import org.junit.Test;
import com.daniel.alexa.Downloader;
import com.daniel.alexa.baker.Alexa;
import com.daniel.alexa.baker.SuggestionBaker;
import com.daniel.alexa.baker.exceptions.ExtractionException;
import java.io.IOException;
impo... | true |
b80aeb04540c775b6f30d19d88a252979b8e3f8c | Java | JGerdes/Schauburgr | /app/src/main/java/com/jonasgerdes/schauburgr/usecase/home/guide/GuideContract.java | UTF-8 | 956 | 1.882813 | 2 | [
"MIT"
] | permissive | package com.jonasgerdes.schauburgr.usecase.home.guide;
import com.jonasgerdes.schauburgr.model.schauburg.entity.Screening;
import com.jonasgerdes.schauburgr.model.schauburg.entity.ScreeningDay;
import com.jonasgerdes.schauburgr.mvp.BasePresenter;
import com.jonasgerdes.schauburgr.mvp.BaseView;
import io.realm.RealmRe... | true |
5c36461abc9181830998890319670d432c24c2df | Java | jazl/tw | /src/com/fortify/fod/remediation/ui/OpenEditorAction.java | UTF-8 | 2,791 | 2.265625 | 2 | [] | no_license | package com.fortify.fod.remediation.ui;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.fileEditor.FileEditor;
import com.intellij.openapi.fileEditor.FileEditorManager;
import com.intellij.... | true |
9018cc90905b3558f6a45055378604fb248f2501 | Java | Taranovski/EpamSpringProject | /src/test/java/com/epam/training/movie/theater/service/user/UserServiceImplTest.java | UTF-8 | 1,164 | 1.804688 | 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 com.epam.training.movie.theater.service.user;
import com.epam.training.movie.theater.BaseTest;
import org.junit.Test;
import s... | true |