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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
1ff0604d1b6735e1c6acf4db589d80fa5b9f4e49 | Java | ramendushandilya/coreJavaConcepts | /MultiThreading/src/com/ramendu/basic/SemaphoreDemo.java | UTF-8 | 1,887 | 3.875 | 4 | [] | no_license | package com.ramendu.basic;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Semaphore;
/**
* Semaphores maintain a set of permits
* acquire() - if a permit is available then take it
* release() - adds a permit
* Semaphore will just keep count of the n... | true |
a4e957d1edb244280d43d3db8df1ac81c191b86f | Java | liuhyneusoft/thymeleaf3.0-demo | /src/main/java/com/web/UserEntity.java | UTF-8 | 1,326 | 2.328125 | 2 | [] | no_license | package com.web;
import org.hibernate.validator.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
/**
* Created by Administrator on 2017/6/4.
*/
public class UserEntity {
private Integer id;
@Size(max = 10,min = 2, message="备注: 长度2-10")
@Not... | true |
0ac9954ae0e2c882e9e4e5d5b0a10c4f9f65f566 | Java | Jahia/jahia | /taglib/src/main/java/org/jahia/taglibs/search/SuggestionsTag.java | UTF-8 | 8,227 | 1.757813 | 2 | [] | no_license | /*
* ==========================================================================================
* = JAHIA'S DUAL LICENSING - IMPORTANT INFORMATION =
* ==========================================================================================
*
* ... | true |
74fa584729b483bb981f407341fd96eb1a459386 | Java | FuZhongWang/JD | /app/src/main/java/xudeyang/bawie/com/jd/model/UpdateCarts.java | UTF-8 | 1,228 | 2 | 2 | [] | no_license | package xudeyang.bawie.com.jd.model;
import android.content.Context;
import android.util.Log;
import java.util.Map;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;
import io.reactivex.subscribers.DisposableSubscriber;
import xudeyang.bawie.com.jd.utils.RxRetrofitU... | true |
0f46d7b8bb7da6469c2dc7d22fa036caa3c84044 | Java | sycomix/OpenSource_Cryptography | /to_organize/catoblepas_web/phase_2/LOCAL/src/FileServer.java | UTF-8 | 17,843 | 2.75 | 3 | [] | no_license | /*
*Note: This is just a test code for a distributed crypto project I am
*working on as a hobby. Must fully test the functionality, then will optimize!
*/
import java.net.Socket;
import java.util.Scanner;
//import javax.swing.JOptionPane;
import java.io.*;
import java.rmi.RemoteException;
import java.rmi.registry... | true |
cddd2fe2baa8a0df348a7aa64ec9adbd8f757ee8 | Java | u-ma-jak/innlevering3 | /Innlevering3/src/SnuTekst.java | UTF-8 | 503 | 3.53125 | 4 | [] | no_license | import java.util.Scanner;
public class SnuTekst {
public static void main(String[] args)
Scanner input = new Scanner(System.in);
System.out.print("Skriv inn en tekst: ");
String s = input.nextLine();
System.out.print("Teksten baklengs blir: ");
baklengs(s);
}
public static void baklen... | true |
df2629c33685a1765b1de631e4bdb8fc0d822dc7 | Java | auxor/android-wear-decompile | /decompiled/android/filterfw/core/Frame.java | UTF-8 | 41,412 | 1.953125 | 2 | [] | no_license | package android.filterfw.core;
import android.graphics.Bitmap;
import java.nio.ByteBuffer;
public abstract class Frame {
public static final int NO_BINDING = 0;
public static final long TIMESTAMP_NOT_SET = -2;
public static final long TIMESTAMP_UNKNOWN = -1;
private long mBindingId;
private int mB... | true |
ac0b5cc63ba9961b1255aa3f5c11ec758e2106e9 | Java | okellyson/jogo-da-vida | /src/application/Vida.java | UTF-8 | 1,994 | 3.328125 | 3 | [] | no_license | package application;
public class Vida {
private int tamanho;
private int field[][];
public Vida () {
this.tamanho = 6;
this.field = new int[this.tamanho][this.tamanho];
for (int i = 1; i < (this.tamanho - 1); i++) {
for (int j = 1; j < (this.tamanho - 1); j++) {
this.field[i][j] = (int) (Math... | true |
ead2e143cba89c104094e228a8b14ea3d694c502 | Java | marky-mark/MTT | /acceptance-tests/src/test/java/com/mtt/test/page/registration/RegisterForm.java | UTF-8 | 424 | 2.09375 | 2 | [] | no_license | package com.mtt.test.page.registration;
import com.mtt.test.page.BaseForm;
import org.openqa.selenium.WebDriver;
public class RegisterForm extends BaseForm {
public RegisterForm(WebDriver driver) {
super(driver);
}
@Override
protected String getSubmitButtonName() {
return "register-u... | true |
caf6ebbd990b10ca5da1966bb70013697ff2be8f | Java | nicolasssssguo/franklin | /src/tests/responders/RedirectResponderTest.java | UTF-8 | 1,035 | 2.4375 | 2 | [] | no_license | package tests.responders;
import httpserver.responders.RedirectResponder;
import org.junit.Before;
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
public class RedirectResponderTest {
RedirectRespon... | true |
c46fa34041db8ef6b7a85b09d3ee0008cdad7e1f | Java | nathan2303/projet_software_groupe23 | /Group23_Projet_IS1220_part1_Nativel_Vermeersch/GUI_restaurant/AddDish.java | ISO-8859-1 | 2,480 | 2.640625 | 3 | [] | no_license | package GUI_restaurant;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.... | true |
ce5357750b882b086524f842cdd828c993894669 | Java | Mohamedj23/DummyWebProject | /eventhub-data-access-layer/src/main/java/org/eventhub/dal/aspects/EncryptPassword.java | UTF-8 | 1,463 | 2.34375 | 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 org.eventhub.dal.aspects;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.aspectj.lang.ProceedingJ... | true |
232249777cba6d953308fe2099cdfed653de56b4 | Java | simunovic/ExerciseLeapwise | /src/main/java/com/rss/feed/logging/LoggerAspect.java | UTF-8 | 4,848 | 2.90625 | 3 | [] | no_license | package com.rss.feed.logging;
import java.lang.reflect.Method;
import java.time.Instant;
import java.time.temporal.ChronoUnit;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annot... | true |
c285567073a16b2b7999c613cafd97d5c7bb779c | Java | duolagong/EAI_Adapter | /src/com/longtop/Util/PostMan/JmsUtil.java | UTF-8 | 1,896 | 2.4375 | 2 | [] | no_license | package com.longtop.Util.PostMan;
import javax.jms.*;
import javax.naming.Context;
import javax.naming.InitialContext;
import java.util.Properties;
public class JmsUtil {
public String SendMessage(String message, String targetUrl, String targetFactoryName, String targetName,int time) {
boolean transacte... | true |
6d1713c2f70c9df525dc87d656c5f333f2366a36 | Java | CodeLpea/MicroPrc | /lpautosize/src/main/java/com/example/lp/lpautosize/AutoSizeUtils/Desity.java | UTF-8 | 2,162 | 2.4375 | 2 | [] | no_license | package com.example.lp.lpautosize.AutoSizeUtils;
import android.app.Activity;
import android.app.Application;
import android.content.ComponentCallbacks;
import android.content.res.Configuration;
import android.util.DisplayMetrics;
/**
* Desity
* 今日头条适配方案
* 简单,低成本
* */
public class Desity {
private static fin... | true |
7eb2a611e5efd548e76c25b3907952f7f0e0eb55 | Java | xiaoHzhuang/redisJwt | /src/main/java/com/inspur/goods/dao/GoodsMapper.java | UTF-8 | 516 | 1.984375 | 2 | [] | no_license | package com.inspur.goods.dao;
import com.inspur.goods.DO.Goods;
import com.inspur.goods.DO.GoodsQueryModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface GoodsMapper {
int insert(Goods record);
int insertSelective(Goo... | true |
eade87cb9ae217da2a89e4c08f0bfd98f9b6556e | Java | stolser/netty-http-server | /nettyserver/src/main/java/com/stolser/nettyserver/server/data/FullStatisticsData.java | UTF-8 | 8,478 | 2.34375 | 2 | [] | no_license | package com.stolser.nettyserver.server.data;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.Serializable;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.net.URI;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.t... | true |
dc24678f602231e6d483c937490ddc996b9d2a74 | Java | Smail-ssm/myFamily | /app/src/main/java/com/emna/myfamily/member.java | UTF-8 | 1,872 | 2.34375 | 2 | [] | no_license | package com.emna.myfamily;
public class member {
String name;
String lastname;
String age;
String relation;
String email;
String phone;
String latit;
String longtit, Id;
public member() {
}
public String getName() {
return name;
}
public void setName(Stri... | true |
2298a16b4ded8dcab12c76089fe47dc01821574c | Java | vivemeno/minibase_repo | /src/global/NodeTable.java | UTF-8 | 300 | 2.046875 | 2 | [] | no_license | package global;
import global.IntervalType;
//adding NodeTable schema
public class NodeTable {
public String nodename;
public IntervalType interval;
public NodeTable (String _nodeName, IntervalType _interval) {
nodename = _nodeName;
interval = _interval;
}
public NodeTable() {
}
} | true |
97740b0ed29ba64d46a8ca9f346ef22b2772117d | Java | yongfeiuall/zheyi-taotao | /zheyi-rest/src/main/java/com/izheyi/rest/service/impl/ItemServiceImpl.java | UTF-8 | 2,372 | 1.984375 | 2 | [] | no_license | package com.izheyi.rest.service.impl;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import com.izheyi.common.pojo.TaotaoResult;
import com.izheyi.comm... | true |
65caca55dadea47358049702e0f9333bf20a9213 | Java | vaibhavjain11/youtubeApp | /app/src/main/java/com/example/vaibhav/model/VideoList.java | UTF-8 | 497 | 2.546875 | 3 | [] | no_license | package com.example.vaibhav.model;
/**
* Created by Vaibhav on 7/15/2015.
*/
public class VideoList {
String videoId;
String title;
String url;
public VideoList(String id, String title, String url){
this.videoId = id;
this.title = title;
this.url = url;
}
public Str... | true |
6c60cec4e1f29a93a944dc3f8a94ff15941acc99 | Java | CindoddCindy/oneToManyDto | /dtoonetomany/src/main/java/com/dtoonetomany/dtoonetomany/service/ShelfService.java | UTF-8 | 292 | 1.960938 | 2 | [] | no_license | package com.dtoonetomany.dtoonetomany.service;
import com.dtoonetomany.dtoonetomany.dto.ShelfDto;
import java.util.List;
public interface ShelfService {
ShelfDto findById(Long id);
List<ShelfDto> findAll();
ShelfDto save(ShelfDto shelfDto);
void deleteById(Long id);
}
| true |
3ee5af9e4472cd314805e7a9651fbe5f492c0558 | Java | Randi07/Systeme-d-information | /src/OtherFolder/FormMenuPrincipale.java | UTF-8 | 42,882 | 1.78125 | 2 | [
"Apache-2.0"
] | 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 OtherFolder;
import Connexion.ConnexionBase;
import District.FormDistrict;
import Fokontany.FormPopulation1;
import Fokontany.... | true |
04f9e27f9cc515adf12211b0ea208dda6f58c33d | Java | lucascraft/ubq_wip | /net.sf.smbt.dxxp/src-model/net/sf/smbt/ezdxxp/impl/DaapAplyImpl.java | UTF-8 | 746 | 1.554688 | 2 | [] | no_license | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package net.sf.smbt.ezdxxp.impl;
import net.sf.smbt.ezdxxp.DaapAply;
import net.sf.smbt.ezdxxp.EzdxxpPackage;
import org.eclipse.emf.ecore.EClass;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Daap Aply</b></em>'.
* <!-- end-user-do... | true |
24d7cbfc623f16ffec4209e76da1aa2f0da9ef38 | Java | stealth-17/Calculator-app | /src/com/stealth/calculator/.svn/text-base/Global.java.svn-base | UTF-8 | 1,101 | 2.640625 | 3 | [] | no_license | package com.stealth.calculator;
public class Global {
private static String expression;
private static int drg;
private static String ans;
private static int sum;
private static double start,end,step;
public static String getVar()
{
if(expression.length()>0)
return expression;
else
return "";
}
... | true |
bbe8be62d41e95f957500c5f7596ae5b8154c44c | Java | FRC-4277/2019DeepSpace | /src/main/java/frc/robot/map/XboxControllerMap.java | UTF-8 | 1,304 | 1.695313 | 2 | [] | no_license | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | true |
55032aa887d2f8f28af83b7c01c84b292e255664 | Java | Jesiel99/DBVendas | /src/venda/Pessoa.java | UTF-8 | 360 | 2.4375 | 2 | [] | no_license | package venda;
public class Pessoa {
private int codigo;
private String nomeCompleto;
public int getCodigo() {
return codigo;
}
public void setCodigo(int codigo) {
this.codigo = codigo;
}
public String getNomeCompleto() {
return nomeCompleto;
}
public void setNomeCompleto(String nomeCompleto) {
t... | true |
d946cf5097a3fc7e6fd18478a6434589d03e8574 | Java | YisongZou/Risc-Game | /Evolution3/risc/hostmaster/src/main/java/edu/duke/ece651/hostmaster/HostClient.java | UTF-8 | 3,793 | 2.875 | 3 | [] | no_license | package edu.duke.ece651.hostmaster;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.util.ArrayList;
import edu.duke.ece651.shared.Message;
public class HostClient extends Thre... | true |
e89a56954076672e42f2d087d1dd902670823211 | Java | shumin1027/JPSON | /src/main/java/com/jpson/internal/ArrayUtils.java | UTF-8 | 1,080 | 3.265625 | 3 | [] | no_license | package com.jpson.internal;
public final class ArrayUtils {
public static void reverse(final byte[] array, int startIndexInclusive, int endIndexExclusive) {
if (array == null) {
return;
}
int i = startIndexInclusive < 0 ? 0 : startIndexInclusive;//等同与上面第二段代码中的head变量
int... | true |
aacbb28d56513b20e58f5087cde20a476554220c | Java | FlashChenZhi/exercise | /wms/WEB-INF/src/jp/co/daifuku/wms/base/common/WMSConstants.java | UTF-8 | 2,320 | 2.234375 | 2 | [] | no_license | // $Id: WMSConstants.java 2512 2009-01-06 02:18:46Z kishimoto $
/*
* Copyright 2000-2001 DAIFUKU Co.,Ltd. All Rights Reserved.
*
* This software is the proprietary information of DAIFUKU Co.,Ltd.
* Use is subject to license terms.
*/
package jp.co.daifuku.wms.base.common;
import jp.co.daifuku.Constants;
import jp... | true |
b69d20105477dc8736cfa4e5a8233d45e6222c6d | Java | leechaean7714/Academy_java | /Java05_Switch/src/com/test03/MTest.java | UTF-8 | 806 | 3.59375 | 4 | [] | no_license | package com.test03;
import com.test02.Season;
public class MTest {
public static void main(String[] args) {
/* Score 클래스를 완성하자.
* getAvg 메서드는, 국어 영어 수학 점수를 전달하면
* 평균을 리턴해준다.
* getGrade 메서드는, 평균을 전달하면
* 90~100 : A
* 80~89 : B
* 70~79 : C
* 60~79 : D
* 0 ~59 : ... | true |
0f917024a2fb21fce022d0da38b19a64357834cd | Java | luthfitabey/Koor_Yuk | /app/src/main/java/com/anjilibey/kooryuk/viewModel/TLAdapterUser.java | UTF-8 | 2,560 | 2.078125 | 2 | [] | no_license | package com.anjilibey.kooryuk.viewModel;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.anjilibey.kooryuk.R;
im... | true |
a5cdb259258fbf8f4d59cc6b748f566078cb09fb | Java | RomanovskijAlexandr/JavaTweetProject | /src/com/company/Parser_States.java | UTF-8 | 1,402 | 3.109375 | 3 | [] | no_license | package com.company;
import java.awt.*;
import java.awt.geom.Point2D;
import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Parser_States {
public static ArrayList<State> parse (String stateCoordinate){
Pattern nameState = Pattern.compile("[A-Z]{2}");
... | true |
3276dbc7de6b0e720ef04ae69aa38c0a6ac56ce7 | Java | m-shayanshafi/FactRepositoryProjects | /FruitWar/src/fruitwar/IFruitWarRobot.java | UTF-8 | 913 | 3.046875 | 3 | [] | no_license | package fruitwar;
/**
* This is the base of Fruit War robot. Implement this interface
* to create your own robot.
*
* @author wangnan
*
*/
public interface IFruitWarRobot {
/**
* This method is used to set actions in the next round. Customize
* this method to set action of each thrower in th... | true |
3f45330c7942e0da5a40d3eb30b4aa2ff5d6ca49 | Java | Gigaspaces/xap-openspaces | /src/main/java/org/openspaces/events/notify/NotifyType.java | UTF-8 | 2,197 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2006-2007 the original author or authors.
*
* 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 ap... | true |
afdbe4eb24973cdecb2d43a71df106be87729b57 | Java | slikhaar/WebStudyPoint2702 | /src/java/rest/PersonResource.java | UTF-8 | 1,744 | 2.46875 | 2 | [] | no_license | package rest;
import com.google.gson.Gson;
import exception.PersonNotFoundException;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.UriInfo;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
impo... | true |
b05c208e27b82af04266a3e10766ef3d1fce63ac | Java | ioreskovic/CrackingTheCodingInterview | /src/com/lopina/exercises/chapter8/question2/EmployeeResourcePools.java | UTF-8 | 1,149 | 3.328125 | 3 | [] | no_license | package com.lopina.exercises.chapter8.question2;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.HashMap;
import java.util.Map;
public class EmployeeResourcePools {
private static Map<Rank, Deque<Employee>> queues;
static {
queues = new HashMap<Rank, Deque<Employee>>();
createRespon... | true |
b292131577c4b9e79bf5332ef9481b23fc29a894 | Java | spring-projects/spring-data-examples | /jpa/deferred/src/main/java/example/service/Customer244Service.java | UTF-8 | 221 | 1.671875 | 2 | [
"Apache-2.0"
] | permissive | package example.service;
import example.repo.Customer244Repository;
import org.springframework.stereotype.Service;
@Service
public class Customer244Service {
public Customer244Service(Customer244Repository repo) {}
}
| true |
2892305235a1c75170bba12183fd0ed184040783 | Java | liu-liang15/huo_shen_shan | /src/main/java/com/example/model/dao/inpatient/ExpCalDao.java | UTF-8 | 341 | 1.875 | 2 | [] | no_license | package com.example.model.dao.inpatient;
import com.example.model.pojos.inpatient.ExpCal;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface ExpCalDao {
//查看消费记录
public List<ExpCal> selExpCal(String param);
//新增消费记录
public void addExpCal(ExpCal expCal);
}
| true |
49fe7137b251e8d2c25c7173b4bcdabf860e908b | Java | hq666666/java-basic | /src/tests/java/com/person/test/AnnotationTest.java | UTF-8 | 3,697 | 3.0625 | 3 | [] | no_license | package com.person.test;
import com.person.annotations.*;
import org.junit.Test;
import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.util.ArrayList;
public class AnnotationTest {
/**
* 反射对于注解的应用;
*
* 注意:
*/
@Test
public void test(){
//通过isAn... | true |
23a4170811e578b789c78b56ead04ba4e2bbcdde | Java | jpreciadom/OptiTransmi | /ShippingData/src/Information/News.java | UTF-8 | 654 | 2.265625 | 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 Information;
import Base.BasePackage;
/**
*
* @author Juan Diego
*/
public class News extends BasePackage {
private fi... | true |
02eccd8c69892b636f2ad02742012bd92e78773d | Java | luolian0/wust-AIStation | /container-scheduler-service/src/main/java/com/wust/pojo/kubernetes/Rbd.java | UTF-8 | 1,680 | 1.921875 | 2 | [] | no_license | /**
* Copyright 2019 bejson.com
*/
package com.wust.pojo.kubernetes;
import java.util.List;
/**
* Auto-generated: 2019-02-20 21:8:53
*
* @author bejson.com (i@bejson.com)
* @website http://www.bejson.com/java2pojo/
*/
public class Rbd {
private List<String> monitors;
private String image;
privat... | true |
231e6f1ecfba0636de5b5d29f517cbbfde2a4ffc | Java | OtabO/main.template | /dao.template/src/main/java/dao/template/RoleDAO.java | UTF-8 | 227 | 1.507813 | 2 | [] | no_license | package dao.template;
import bean.template.RoleDO;
import org.springframework.data.jpa.repository.JpaRepository;
/**
* Created by zhangsx on 2017/6/15.
*/
public interface RoleDAO extends JpaRepository<RoleDO, Integer> {
}
| true |
7eb7c4ccc842e509959ba86f5e633fb13c99aa4b | Java | orbeon/saxon | /src/main/java/org/orbeon/saxon/sort/DoubleSortComparer.java | UTF-8 | 4,262 | 2.90625 | 3 | [] | no_license | package org.orbeon.saxon.sort;
import org.orbeon.saxon.expr.XPathContext;
import org.orbeon.saxon.om.StandardNames;
import org.orbeon.saxon.value.AtomicValue;
import org.orbeon.saxon.value.NumericValue;
/**
* An AtomicComparer used for sorting values that are known to be numeric.
* It also supports a separate method... | true |
2340bc3ce688f6974120ac0fe9bd049e0a2f003f | Java | liuboyan69/openmessaging-connect | /connector/src/main/java/io/openmessaging/connector/api/data/SinkDataEntry.java | UTF-8 | 3,765 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
250b50a910ab1c9c56cbffe73b772fee78585e17 | Java | fe-lsc/PrimeiroExercicioPOO2 | /Atividades/primeiro_exercicio_poo/src/main/java/com/primeiro/exercicio/primeiro_exercicio_poo/Controller/EmployeeController.java | UTF-8 | 917 | 2.0625 | 2 | [] | no_license | package com.primeiro.exercicio.primeiro_exercicio_poo.Controller;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import com.primeiro.exercicio.primeiro_exercicio_poo.DTOs.EmployeeDTO;
import com.primeiro.exercicio.primeiro_exercicio_poo.Services.ServiceEmployee;
import org.spr... | true |
3b0ec5d933e54c574e1d3012578e393644a9e73a | Java | daniel-va/Jei | /src/jei/collections/Array.java | UTF-8 | 1,110 | 2.78125 | 3 | [
"MIT"
] | permissive | package jei.collections;
import jei.functional.Predicate;
public interface Array<T> extends FinalArray<T>
{
public static <T> Array<T> withSize(int size) {
return new DefaultArray<>(size);
}
@SafeVarargs
public static <T> Array<T> of(T... values) {
Array<T> array = new DefaultArray<>(values.length);
array.a... | true |
4989c48f384172629a2c92376f3436b7ac4e6c18 | Java | 1210040004/-offer- | /src/面试/算法/leetcode/Q77Combinations/Solution2.java | UTF-8 | 1,296 | 3.4375 | 3 | [] | no_license | package 面试.算法.leetcode.Q77Combinations;
import java.util.ArrayList;
import java.util.List;
/**
* 给定两个整数 n 和 k,返回 1 ... n 中所有可能的 k 个数的组合。
*
* 示例:
*
* 输入: n = 4, k = 2
* 输出:
* [
* [2,4],
* [3,4],
* [2,3],
* [1,2],
* [1,3],
* [1,4],
* ]
*
* 来源:力扣(LeetCode)
* 链接:https://leetcode-cn.com/proble... | true |
ec872651d5a387278b9da80a52f268ffe95d20df | Java | BorderTech/webfriends | /webfriends-api/src/main/java/com/github/bordertech/webfriends/api/idiom/widget/HDisclosure.java | UTF-8 | 295 | 1.609375 | 2 | [
"MIT"
] | permissive | package com.github.bordertech.webfriends.api.idiom.widget;
import com.github.bordertech.webfriends.api.element.Element;
/**
* Disclosure element.
* <p>
* https://www.w3.org/TR/wai-aria-practices/#disclosure
* </p>
*/
public interface HDisclosure extends Element {
// TODO
}
| true |
97c42568bb1e8449bc9ed3371fbfef19284fb52e | Java | koloheohana/MyMap | /app/src/main/java/com/koloheohana/mymap/MapStreetView.java | UTF-8 | 1,438 | 2.15625 | 2 | [] | no_license | package com.koloheohana.mymap;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import com.google.android.gms.maps.OnStreetViewPanoramaReadyCallback;
import com.google.android.gms.maps.StreetViewPanorama;
import com.google.android.gms.maps.StreetViewPanoramaFrag... | true |
582a034a53f6549657e3531571cd310bd84d09fc | Java | Kylem92/FYP | /src/main/java/scrapers/Render.java | UTF-8 | 2,079 | 2.703125 | 3 | [] | no_license | package scrapers;
/**
* Created by Amanda on 06/03/2017.
*/
import javafx.application.Application;
import javafx.application.Platform;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.concurrent.Worker;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebV... | true |
737b6cc3d3b7688bd7cb6449d3f6859ccb20789a | Java | Phantoms007/zhihuAPK | /src/main/java/org/conscrypt/NativeLibraryLoader.java | UTF-8 | 13,488 | 1.9375 | 2 | [] | no_license | package org.conscrypt;
import com.ali.auth.third.core.model.Constants;
import com.zhihu.android.apm.traffic.p1007b.HttpURLWrapper;
import java.io.ByteArrayOutputStream;
import java.io.Closeable;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.la... | true |
4d456a244379cb217219547f835f20b2bf445d89 | Java | KristinaPak/java_group_8_homework_28_kristina_pak | /src/com/company/ACTION.java | UTF-8 | 629 | 2.875 | 3 | [] | no_license | package com.company;
public enum ACTION {
USUAL_DAY( "Обычный день"),
RAIN( "Дождь"),
GOOD_ROAD( "Ровная дорога"),
WHEEL_IS_BROKEN( "Сломалось колесо"),
RIVER( "Река"),
MEET_LOCAL( "Встретил местного"),
BANDITS_ON_THE_ROAD("Разбойники большой дороги"),
SHOP("Придорожный трактир"),
... | true |
9912e15d704aaea30ca842b766d6591784bd8d9a | Java | maniert/ile_interdite2.0 | /src/PasDefaultPackage/Message.java | UTF-8 | 1,436 | 2.625 | 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 PasDefaultPackage;
import java.util.ArrayList;
/**
*
* @author maniert
*/
public class Message {
public TypesMessages... | true |
5416277565ee1694784529038e02e49b60f7fa4d | Java | yql1999/yql_hotel | /src/com/ASH/service/visitorSelServlet.java | UTF-8 | 1,190 | 2.09375 | 2 | [] | no_license | package com.ASH.service;
import com.ASH.dao.visitorDao;
import com.ASH.entity.Visitor;
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 java.io.I... | true |
f1349279d0fab8956185e03993a49ceb34307610 | Java | poxiaozheng/ImageDealWith | /app/src/main/java/com/example/imagedealwith/Model/ImageState.java | UTF-8 | 389 | 2.578125 | 3 | [] | no_license | package com.example.imagedealwith.Model;
public class ImageState {
private int StateID;
private int StateImageRes;
public ImageState(int stateID, int stateImageRes) {
StateID = stateID;
StateImageRes = stateImageRes;
}
public int getStateID() {
return StateID;
}
... | true |
b26a113f769bca314dc6e44180aac5ccd94664f9 | Java | lazarow/chain-panic-button | /app/src/main/java/pl/nowakowski_arkadiusz/chain_panic_button/activities/AlarmChainActivity.java | UTF-8 | 5,620 | 1.96875 | 2 | [] | no_license | package pl.nowakowski_arkadiusz.chain_panic_button.activities;
import android.content.Intent;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.Menu;
import android.view.MenuItem;
import android.view.... | true |
d2fe83b12dc0253248afb579ae686dd77a102bf9 | Java | jhkim105/tutorials | /utils/src/main/java/utils/ReflectionUtils.java | UTF-8 | 611 | 2.328125 | 2 | [] | no_license | package utils;
import java.lang.annotation.Annotation;
import java.lang.reflect.ParameterizedType;
import java.util.Set;
import org.reflections.Reflections;
public class ReflectionUtils {
public static Set<Class<?>> getAnnotatedClass(String packageName, Class<? extends Annotation> annotation) {
Reflections ref... | true |
d72fa36752157117cbd9b4c8918e14722b822c4e | Java | Tschierv/MemoryProject | /src/main/java/com/github/tschierv/memorygame/domain/player/usecase/RemovePlayer.java | UTF-8 | 887 | 2.671875 | 3 | [] | no_license | package com.github.tschierv.memorygame.domain.player.usecase;
import com.github.tschierv.memorygame.domain.player.Player;
import com.github.tschierv.memorygame.domain.player.PlayerRepositoryService;
import com.github.tschierv.memorygame.domain.player.exception.PlayerNotExistException;
public class RemovePlayer implem... | true |
99a81503a3cdb431e057a1db2ffa98d76f66b40b | Java | ClickerMonkey/ship | /Courses/DBMS Final Project/src/dbms/commands/AddGroup.java | UTF-8 | 2,239 | 3.203125 | 3 | [] | no_license | package dbms.commands;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import dbms.Database;
import dbms.common.InputPrompt;
import dbms.menu.MenuCommand;
import dbms.validator.BooleanValidator;
import dbms.validator.NameValidator;
/**
* ====================... | true |
36ab709f805f2bb6726e514d0d8da70f69388c53 | Java | professorik/Jaconet | /src/UI/SortImage.java | UTF-8 | 6,956 | 2.375 | 2 | [] | no_license | package UI;
import com.drew.imaging.ImageMetadataReader;
import com.drew.imaging.ImageProcessingException;
import com.drew.metadata.Metadata;
import com.drew.metadata.exif.ExifSubIFDDirectory;
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
im... | true |
e45166e67ea60cb4ed81c765ad2eae418c12a228 | Java | FL0RlAN/android-tchap-1.0.35 | /sources/org/matrix/androidsdk/crypto/cryptostore/db/RealmCryptoStore$setKeyBackupVersion$1.java | UTF-8 | 1,571 | 1.898438 | 2 | [] | no_license | package org.matrix.androidsdk.crypto.cryptostore.db;
import io.realm.Realm;
import io.realm.RealmQuery;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
import org.matrix.androidsdk.crypto.cryptostore.db.model.C... | true |
e8e86651869a8a1870dcb80b9f6e1b6bb3887178 | Java | juank9225/backend-solution-main | /src/main/java/co/com/sofka/questions/usecasebusiness/ModifyAnswerUseCase.java | UTF-8 | 1,549 | 2.1875 | 2 | [] | no_license | package co.com.sofka.questions.usecasebusiness;
import co.com.sofka.questions.mapper.AnswerModificadaMapper;
import co.com.sofka.questions.model.AnswerDTO;
import co.com.sofka.questions.reposioties.AnswerRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Se... | true |
1d07c454f6d4bf4c12f4bdfd0723d46854654d08 | Java | paulken12/iGrave | /app/src/main/java/com/secure/paulken/igrave/DBHelper/OwnerProvider.java | UTF-8 | 1,297 | 2.671875 | 3 | [] | no_license | package com.secure.paulken.igrave.DBHelper;
import com.secure.paulken.igrave.Model.OwnerItems;
import java.util.ArrayList;
import java.util.List;
public class OwnerProvider {
private static List<OwnerItems> data = new ArrayList<>();
public static List<OwnerItems> getData() {
return data;
}
... | true |
6f224594b5b9578109267879391df444e0fb465d | Java | swaraliGujrathi/JAVA_Assignment | /Assignment2/Circle.java | UTF-8 | 585 | 3.40625 | 3 | [] | no_license | public class Circle extends Shape implements Calculatable {
private int radius;
public Circle(){
super("Circle");
this.radius = 50;
}
public Circle(int radius){
super("Circle");
this.radius = radius;
}
public int getRadius() {
return radius;
}
public vo... | true |
577b64a281bd7f9ec8be71e461771a1b5d0a92a7 | Java | mlc0202/j2ee_v2 | /spring_jdbc/src/main/java/spring_jdbc/dao/impl/StudentDAOImpl.java | UTF-8 | 3,259 | 2.875 | 3 | [] | no_license | package spring_jdbc.dao.impl;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.... | true |
e360e6f42998c38fa58972426551f68209bfc2de | Java | wangyue-whaty/mpen-test | /src/main/java/com/mpen/api/domain/DdbUserPraiseRelationship.java | UTF-8 | 1,002 | 2.0625 | 2 | [] | no_license | package com.mpen.api.domain;
import java.util.Date;
/**
* 点赞与被点赞关系
* 涉及:教师端以及app2.0点赞相关
*
*/
public class DdbUserPraiseRelationship {
private String id;
// 点赞者
private String praiseLoginId;
// 被点赞者
private String byPraiseLoginId;
private Date createTime;
public String getId() {
... | true |
9ac5f8d80b469e7d705096f49070cf55986ffe04 | Java | hooke72/CityChat | /app/src/main/java/com/hooke/citychat/DatabaseUtil.java | UTF-8 | 421 | 2.09375 | 2 | [] | no_license | package com.hooke.citychat;
import com.google.firebase.database.FirebaseDatabase;
/**
* Just make firebase cashed
*/
public class DatabaseUtil {
private static FirebaseDatabase mDatabase;
public static void setPersistenceEnabled() {
if (mDatabase == null) {
mDatabase = Fireb... | true |
e47e3e6931c6b59b9d8bf73c21b4a0ae6c2c2e7c | Java | AkhileshCovetus13/Access4MiiAndroid | /app/src/main/java/ABS_GET_SET/SideMenu.java | UTF-8 | 560 | 2.0625 | 2 | [] | no_license | package ABS_GET_SET;
/**
* Created by admin1 on 15/3/18.
*/
public class SideMenu {
Integer mSideMenuIconActive;
String mSideMenuTitle;
public Integer getmSideMenuIconActive() {
return mSideMenuIconActive;
}
public void setmSideMenuIconActive(Integer mSideMenuIconActive) {
this.mSi... | true |
6db23369748c24463f6ef363c550ab7fdc36e090 | Java | yhuihu/Java-Study | /leetcode/src/main/java/com/study/leetcode/Question9.java | UTF-8 | 1,533 | 3.6875 | 4 | [
"Apache-2.0"
] | permissive | package com.study.leetcode;
/**
* @author Tiger
* @date 2020-06-09
* @see com.study.leetcode
**/
public class Question9 {
/**
* 判断一个整数是否是回文数。回文数是指正序(从左向右)和倒序(从右向左)读都是一样的整数。
* <p>
* 示例 1:
* <p>
* 输入: 121
* 输出: true
* 示例 2:
* <p>
* 输入: -121
* 输出: false
* 解释:... | true |
4b959188a281e9877fcf8bebbf4ed57dd14c8de5 | Java | chenlanlan/leetcodeJava | /KthSmallestElementInABST.java | UTF-8 | 1,117 | 3.578125 | 4 | [] | no_license | /**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode(int x) { val = x; }
* }
*/
public class Solution {
//inorder recursive
public int kthSmallest(TreeNode root, int k) {
ArrayList<Integer> list = new ArrayList<Integer>();
... | true |
de81967434ef32f2e7f1430850b79328a8153433 | Java | kubavation/Interest-matcher | /TagService/src/main/java/io/duryskuba/interestmatcher/TagService/utils/CollectionUtils.java | UTF-8 | 646 | 2.734375 | 3 | [] | no_license | package io.duryskuba.interestmatcher.TagService.utils;
import java.util.HashSet;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class CollectionUtils {
@SafeVarargs
public static <T> HashSet<T> of(T... items) {
return Stream.of(items)
.... | true |
93f24022eb10a4a082070d272df95a27e6547dd8 | Java | alexmuratidi/UrChallenge | /app/src/main/java/com/hotstavropol/urchallenge1/VK.java | UTF-8 | 3,393 | 1.9375 | 2 | [] | no_license | package com.hotstavropol.urchallenge1;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ListView;
import android.widget.Toast;
import com.vk.sdk.VKAccessToken;
import com.vk.sdk.VKCallback;
import com.vk.sdk.VKScope;
import com.vk.sdk.VKSd... | true |
0e048512845ba7b55867ab775858ed9098fb65cb | Java | kirsong/KirChat | /KirChatServer/src/main/java/com/chat/mobile/controller/ChattingController.java | UTF-8 | 3,385 | 2.21875 | 2 | [] | no_license | package com.chat.mobile.controller;
import com.chat.mobile.Define;
import com.chat.mobile.model.*;
import com.chat.mobile.service.ChattingService;
import com.chat.mobile.service.UserService;
import com.chat.mobile.util.FcmUtil;
import com.chat.mobile.util.Util;
import com.chat.mobile.vo.ChattingVO;
import com.chat.mob... | true |
d809fc2ad0e4f0c7cf47f5f45c558945b52ffb48 | Java | teasingmonkey/PollEvApplication | /Mileston2/client/voter/SingleVote.java | UTF-8 | 1,796 | 2.859375 | 3 | [] | no_license | package voter;
import static org.junit.Assert.*;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketException;
import java.net.UnknownHostException;
import org.junit.Test;
public class SingleVote {
private i... | true |
db90dc357b06146342d9bc9f2f5515491d81cb01 | Java | ohmkunz/Proj | /src/fields/RentDvd.java | UTF-8 | 190 | 2.21875 | 2 | [] | no_license | package fields;
public interface RentDvd {
public boolean returnDVD(String name, int stock)throws MyException;
public double rentDVD(String name,int day,int stock) throws MyException ;
}
| true |
0d8495b738e42f17f7da251c72674752c5fcbacb | Java | zhangyanrui/car4s | /app/src/main/java/cn/car4s/app/bean/WebviewBean.java | UTF-8 | 415 | 1.984375 | 2 | [
"Apache-2.0"
] | permissive | package cn.car4s.app.bean;
/**
* Description:
* Author: Alex
* Email: xuebo.chang@langtaojin.com
* Time: 2015/4/22.
*/
public class WebviewBean extends BaseBean {
public String webTitle;
public String loadUrl;
public boolean isShare;
public WebviewBean(String webTitle, String loadUrl, boolean isS... | true |
3cca74e99e003126b231bdb7bfcb07ee2fcfbe71 | Java | q01201203/Solution | /src/Solution8.java | UTF-8 | 913 | 3.578125 | 4 | [] | no_license | /**
* Created by Administrator on 2018/3/30.
* 一只青蛙一次可以跳上1级台阶,也可以跳上2级。求该青蛙跳上一个n级的台阶总共有多少种跳法。
*/
public class Solution8 {
int count = 0; //跳法
public int JumpFloor(int target) {
if (target == 1){
return 1;
}
if (target == 2){
return 2;
}
int f =... | true |
4707735505f04e68efe46d433ad27c3c2e0c199b | Java | doGe-personal/sign_up_svr | /src/main/java/com/el/util/WebResultUtils.java | UTF-8 | 2,294 | 2.46875 | 2 | [] | no_license | package com.el.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
/**
* web 返回值整理
* @author Danfeng
* @since 2018/6/29
*/
public class WebResultUtils {
private static final Logger log = LoggerFactory.getLo... | true |
df14b5db9913e14b63ba7f9919be442d93e47cef | Java | Anunindale/DGD | /Office/EMCClientSys/.svn/pristine/df/df14b5db9913e14b63ba7f9919be442d93e47cef.svn-base | UTF-8 | 569 | 2.234375 | 2 | [] | no_license | package emc.menus.hr.menuitems.display;
import emc.enums.enumMenuItems;
import emc.forms.hr.display.absscarcity.HRAbsScarcityForm;
import emc.framework.EMCMenuItem;
/**
*
* @author claudette
*/
public class HRAbsScarcityMI extends EMCMenuItem {
/** Creates a new instance of HRAbsScarcityMI. */
public HRA... | true |
96a13617fc11a3f093f89a73e4fb8244bcb1a76a | Java | coolutkarshraj/Choozo_ecommerce | /app/src/main/java/com/io/choozo/model/dataModel/todayDealsModel/Store.java | UTF-8 | 3,617 | 1.773438 | 2 | [
"Apache-2.0"
] | permissive | package com.io.choozo.model.dataModel.todayDealsModel;
import com.google.gson.annotations.SerializedName;
public class Store{
@SerializedName("description")
private String description;
@SerializedName("isOtpVerify")
private Object isOtpVerify;
@SerializedName("isActive")
private boolean isActive;
@Serializ... | true |
386656ecc3587f73582b97a0e4a371f425f0d748 | Java | haoranleo/Online-shopping-store | /app/models/productStatus/OrderedStatus.java | UTF-8 | 414 | 2.265625 | 2 | [
"CC0-1.0"
] | permissive | package models.productStatus;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
//@Entity
//public class OrderedStatus extends ProductStatus{
// public String getStatus(){
// return "Ordered";
// }
//
// /**
// * Generic query helper for entity Product with id Long
// */
/... | true |
c747a37ba1cbb97b2e295ab645398e5cd558c197 | Java | jmalue/virtual-pet-2 | /src/VirtualPet.java | UTF-8 | 1,279 | 2.65625 | 3 | [] | no_license | //cookie cutter template (blueprint)
public class VirtualPet {
private int thirst = 0;
private int hunger = 0;
private int boredom=0;
private int appearance = 0;
private int health = 0;
private int energy = 0;
private String petsName = "";
private String petDescription = "";
public VirtualPet (int thirst, ... | true |
294f39040d001567b7d7d02387ee2f6398cf20c7 | Java | OnlyCastiel/BaseUtil | /src/main/java/com/train/bianchengzhimei/CFlapjackSorting2.java | UTF-8 | 4,788 | 3.671875 | 4 | [] | no_license | package com.train.bianchengzhimei;
/**
* 有一些服务员会把上面的一摞饼子放在自己头顶上(放心,他们都戴着洁白的帽子),
* 然后再处理其他饼子,在这个条件下,我们的算法能有什么改进?
*
*一堆烙饼分成两堆,分别有序即可,无需合并两个饼堆
* 可以分成两段来进行翻转;
* 复杂问题分解:对于n块饼,分的方案共有 n-1钟,假设头顶上的为K,盘子里的为n-k
* 对两摞饼分别进行翻转(两堆饼各自的最少翻转次数),找到翻转次数之和最小的
*
*
* 2.事实上,饭店的师傅经常把烙饼烤得一面非常焦,另一面则是金黄色。这时,服务员还得考虑让烙饼大小有序,并且金黄色的一面都要向上。... | true |
7139f57d4cab3465df34b130ec538038b90d8a11 | Java | JerryLi912/CMSC204Projects | /Project4/CourseDBManager.java | UTF-8 | 4,911 | 3.28125 | 3 | [] | no_license | import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;
import java.util.ListIterator;
import java.util.Scanner;
/**
* This is the Data Manager class.
* This class has add(), get(int crn), r... | true |
be0161ed8ad6c0a4ecf141b92095b62a3597be6d | Java | samhay2u/EMP | /src/emp/pojo/Employee.java | UTF-8 | 2,337 | 2.890625 | 3 | [
"MIT"
] | permissive | package emp.pojo;
import java.io.Serializable;
public class Employee implements Serializable {
/**
* Serialization Id FOR PORTABILITY Java provides a mechanism, called object
* serialization where an object can be represented as a sequence of bytes that
* includes the object's data as well as informati... | true |
a8fef49b4a2c54a62e99db69c0aea9f3ec84a110 | Java | YeroMing/GitPractise | /xokhttp/src/main/java/com/loction/xokhttp/response/GsonResponseHandler.java | UTF-8 | 2,748 | 2.359375 | 2 | [] | no_license | package com.loction.xokhttp.response;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.loction.xokhttp.BaseResponse;
import com.loction.xokhttp.XOkhttpClient;
import java.io.IOException;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import okhttp3.Respons... | true |
635f096a1c56e97b953af14c10b022f1e429c5d8 | Java | Andreas237/AndroidPolicyAutomation | /ExtractedJars/PACT_com.pactforcure.app/javafiles/com/itextpdf/text/pdf/parser/LocationTextExtractionStrategy$1.java | UTF-8 | 1,455 | 1.929688 | 2 | [
"MIT"
] | permissive | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.itextpdf.text.pdf.parser;
// Referenced classes of package com.itextpdf.text.pdf.parser:
// LocationTextExtractionStrategy, LineSegment, Te... | true |
4517c38b3a06280a8a02e7614a5d21596e698220 | Java | f981545521/iblog-data | /src/main/java/cn/acyou/iblogdata/commons/AbstractService.java | UTF-8 | 2,092 | 2.203125 | 2 | [] | no_license | package cn.acyou.iblogdata.commons;
import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
import com.google.common.reflect.TypeToken;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transact... | true |
1c0ca26b878633199eba24b083d502b56037564f | Java | VA-NI/Springboot_Microservices_Sample_Code | /src/main/java/com/census/zipcode/data/dao/ZipCodeRepository.java | UTF-8 | 2,772 | 2.578125 | 3 | [] | no_license | package com.census.zipcode.data.dao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import java.util.ArrayList;
import java.util.List;
@Repository
public class ZipCodeRepository {
@Autowired
... | true |
9a96a55e3fb93dfcbd60dfd22ef71e2c2c5c7324 | Java | mcrowder65/settlers-of-catan | /Project/test/communication/PollerTests.java | UTF-8 | 1,929 | 2.328125 | 2 | [] | no_license | package communication;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import client.communication.HTTPProxy;
import client.communication.MockProxy;
import client.communication.Poller;
import client.data.GameManager;
public class PollerTests {
... | true |
8cf213dd535050e0ca70486968e359f64efb6318 | Java | ningwy/GooglePlay | /src/main/java/io/github/ningwy/googleplay/http/protocol/RecommendProtocol.java | UTF-8 | 738 | 2.203125 | 2 | [] | no_license | package io.github.ningwy.googleplay.http.protocol;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import java.util.List;
import io.github.ningwy.googleplay.utils.GsonUtils;
/**
* 推荐页面网络请求
* Created by ningwy on 2016/9/6.
*/
public class RecommendProtocol ext... | true |
587ef3d051f7bafb50038e3ee69e4ef601779357 | Java | stripe/stripe-java | /src/main/java/com/stripe/model/billingportal/Session.java | UTF-8 | 12,145 | 2 | 2 | [
"MIT"
] | permissive | // File generated from our OpenAPI spec
package com.stripe.model.billingportal;
import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
import com.stripe.model.ExpandableField;
import com.stripe.model.HasId;
import com.stripe.model.StripeObject;
import com.stripe.net.ApiMode;
im... | true |
aba5d21467950fec45a360bbbda5178097e95ba4 | Java | a5221985/algorithms | /BitArray.java | UTF-8 | 2,639 | 3.640625 | 4 | [] | no_license | public class BitArray {
private int[] bitArray;
private int size;
public void init(int size) {
int arraySize = size / 32;
if (size % 32 > 0)
arraySize++;
bitArray = new int [arraySize];
this.size = size;
print();
}
public void set(int i, int val)... | true |
641b770eb2bf632e98feeedf744c3f67fc4356bd | Java | SM-Tiwari/Spring-Security | /old/vnm-selfcare-webapps-mega2-master/vnm-selfcare-core-2.0/src/main/java/com/gnv/vnm/selfcare/core/adapter/rtbs/ws/CancelReservationResponse.java | UTF-8 | 1,524 | 1.960938 | 2 | [] | no_license |
package com.gnv.vnm.selfcare.core.adapter.rtbs.ws;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonym... | true |
3203fc6d29954ba0f5cc73cbc545c3d9d651e733 | Java | KervinHjw/android-spain | /app/src/main/java/com/en/scian/entity/MyFriend_Message.java | UTF-8 | 958 | 2.046875 | 2 | [] | no_license | package com.en.scian.entity;
/**
* 我的好友留言
*
* @author jiyx
*
*/
public class MyFriend_Message {
private int friendsMessageId;// 留言消息ID
private String friendsRealName;// 姓名
private String messageContent;// 留言内容
private String messageTime;// 留言时间
public int getFriendsMessageId() {
return friendsMessageId;... | true |
552d390a87abc9d71af1e96c6bb8a5ab6567b4fc | Java | fitsense/BeaconsLocalisation-Triangulation | /app/src/main/java/com/example/a1716342/beaconslocalisation2/Localisation.java | UTF-8 | 11,535 | 2.140625 | 2 | [] | no_license | package com.example.a1716342.beaconslocalisation2;
import android.Manifest;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.RemoteException;
import an... | true |
e97003e00acde80053f0d235ab51185f091201c6 | Java | Konhaque/Vivendo-o-Parque | /app/src/main/java/com/projetobeta/vidanoparque/Criar_Publicacao.java | UTF-8 | 7,202 | 1.945313 | 2 | [] | no_license | package com.projetobeta.vidanoparque;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.app.Dialog;
import android.content.ContentResolver;
import... | true |
c1b049527f7e8ed0c892d99929c5c7b7b8976143 | Java | ciphercrunch1919/JavaBoisHome | /FamilyTree/BuildFamilyTree.java | UTF-8 | 3,037 | 3.5625 | 4 | [] | no_license | import java.util.Scanner;
public class BuildFamilyTree
{
public static void mainMenu()
{
System.out.println("1. Load from file");
System.out.println("2. Find siblings");
System.out.println("3. Find children");
System.out.println("4. Find parents");
System.out.println("5. List family ... | true |
2e5db5d700cc90ef3774882231603a3956424ecf | Java | Bedrock-Addons/Android | /app/src/main/java/com/mcres/octarus/utils/PermissionUtil.java | UTF-8 | 2,747 | 2.25 | 2 | [
"MIT"
] | permissive | package com.mcres.octarus.utils;
import android.Manifest;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Build;
import android.provider.Settings;
import androidx.core.app.ActivityCompat;
import androidx.fragment.app.Fragme... | true |