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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
edc8eb9f9a89047543e5853d4f546be2f456a6b3 | Java | U7K4R5H/DataStructure | /bucketsort/src/u7/practice/bucketsort/Main.java | UTF-8 | 1,280 | 3.859375 | 4 | [] | no_license | package u7.practice.bucketsort;
import java.util.*;
public class Main {
public static void main(String[] args) {
int[] intArray = {54, 83, 46, 66, 95, 92, 43};
bucketSort(intArray);
for (int i = 0; i < intArray.length; i++) {
System.out.println(intArray[i]);
}
}
... | true |
6e2ab85d4a591da4af04ab345369ad720f963546 | Java | AsaelCalizaya/RoomManager-Automation | /src/test/java/tablet/search/WhenPutMinimumCapFieldAndLocationRoomsThatMatchAreFiltered.java | UTF-8 | 1,841 | 2.484375 | 2 | [] | no_license | package test.java.tablet.search;
import java.io.IOException;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import jxl.read.biff.BiffException;
import org.testng.Assert;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.Test;
import main.java.pages.tablet.HomeTablet... | true |
a7eebb573a9e8d7fe30df2c3aeedc9e27faa93b6 | Java | sawal16/j8unit | /repository/src/main/java/org/j8unit/repository/javax/naming/CompositeNameTests.java | UTF-8 | 17,019 | 2.421875 | 2 | [] | no_license | package org.j8unit.repository.javax.naming;
import javax.naming.CompositeName;
import org.j8unit.repository.categories.Draft;
import org.j8unit.repository.categories.J8UnitRepository;
import org.j8unit.repository.java.lang.ObjectTests;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.experimental.categ... | true |
21a95be4dc88aba99da9534bb9d420705fa68f52 | Java | WinsomeYuen/BookStoreApp | /app/src/main/java/com/example/winsome/bookstoreapp/MainActivity.java | UTF-8 | 5,801 | 2.171875 | 2 | [] | no_license | package com.example.winsome.bookstoreapp;
import android.app.LoaderManager;
import android.content.ContentResolver;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.CursorLoader;
import android.content.Intent;
import android.content.Loader;
import android.database.Cursor... | true |
f020bf347c62c82e2ccc56d8d46f21cc71441352 | Java | adityasinghal2/DSA | /src/main/java/gfg/algorithm/Stock.java | UTF-8 | 951 | 3.546875 | 4 | [] | no_license | package gfg.algorithm;
import java.util.ArrayList;
class Stock {
//Function to find the days of buying and selling stock for max profit.
static ArrayList<ArrayList<Integer>> stockBuySell(int A[], int n) {
// code here
ArrayList<ArrayList<Integer>> ans = new ArrayList<ArrayList<Integer>>();
... | true |
e196e8c86118860cb7f0aecc304f6a8a08b7f379 | Java | nwabear/omega-bot | /src/main/java/com/nwabear/discord/Join.java | UTF-8 | 949 | 2.625 | 3 | [] | no_license | package com.nwabear.discord;
import net.dv8tion.jda.core.entities.ChannelType;
import net.dv8tion.jda.core.entities.TextChannel;
import net.dv8tion.jda.core.entities.VoiceChannel;
import net.dv8tion.jda.core.events.message.MessageReceivedEvent;
import net.dv8tion.jda.core.managers.AudioManager;
import java.util.List;... | true |
02830e7f6e460d512289afcb8fb4618f915a7263 | Java | ManetsMaria/javaEx | /Task4_28.10.2017/input.java | UTF-8 | 3,393 | 2.53125 | 3 | [] | no_license | import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class FileCorr... | true |
784750ec755caac173dc779191ae185ef45d1162 | Java | wangping66/shop | /shop-gateway/src/main/java/constant/ManageConstant.java | UTF-8 | 1,560 | 1.695313 | 2 | [] | no_license | package constant;
public class ManageConstant {
/** 平台用户token前缀 **/
public static final String TOKEN_PRE = "MANAGE_TOKEN_PRE:";
/**
* 人员库标签 1 - 黑名单
*/
public static final String PERSONNEL_LAB_BLACK = "0";
/**消息队列--------- start*/
public static final String BAIDU_COMPARE_EXCHANGE = "... | true |
9515246fc13b73ec26cee9883b36249cf7b89bfc | Java | samphin/myDocs | /shiro+redis+session/MainController.java | UTF-8 | 3,509 | 2.21875 | 2 | [] | no_license | package cn.yesway.yconnect.mgt.controller;
import javax.servlet.http.HttpServletRequest;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.DisabledAccountException;
import org.apache.shiro.authc.IncorrectCredentialsException;
import org.apache.... | true |
9ba122f7a46fa12d4a5739dcad03f50a5ffde674 | Java | wondershow/coursera | /princeton/algoritm2/2ndtime/src/class4/practice/test/TrieSTTest.java | UTF-8 | 1,414 | 3.15625 | 3 | [] | no_license | package class4.practice.test;
import static org.junit.Assert.*;
import org.junit.Assert;
import org.junit.Test;
import class4.practice.TrieST;
public class TrieSTTest
{
/**
* To create a trie according to the example at page 731 of textbook(RW V4)
* */
private TrieST intialize()
{
TrieST<Integer> st = ne... | true |
2de08b4ca74285b9180364d26f86e72f3e2d3beb | Java | mikejyg/cloep | /src/main/java/mikejyg/cloep/ParseUtils.java | UTF-8 | 991 | 2.984375 | 3 | [
"Apache-2.0"
] | permissive | package mikejyg.cloep;
/**
* misc utilities.
*
* @author jgu
*
*/
public class ParseUtils {
public static class KeyValuePair {
public String key;
public String value;
public KeyValuePair() {}
public KeyValuePair(String key, String value) {
this.key=key;
this.value=value;
}
}
/**
* T... | true |
0de380e73a3d440cbcfff3300923a9a4e31ca1b8 | Java | hellocsss/elicpseremote | /MedicalMangerment/src/com/itcast/service/StatisticsService.java | UTF-8 | 1,322 | 1.976563 | 2 | [] | no_license | package com.itcast.service;
import java.util.List;
import org.springframework.transaction.annotation.Transactional;
import com.itcast.Dao.StatisticsDao;
import com.itcast.entity.Promot;
import com.medical.webBean.TypeBean;
@Transactional
public class StatisticsService {
private StatisticsDao statisti... | true |
56132f887968482f06af08756f5962bcbd6047fe | Java | InexactVim/PaymentsSystem | /src/main/java/me/inexactvim/paymentssystem/controller/account/RefillController.java | UTF-8 | 5,055 | 2.5 | 2 | [] | no_license | package me.inexactvim.paymentssystem.controller.account;
import me.inexactvim.paymentssystem.controller.AbstractController;
import me.inexactvim.paymentssystem.exception.DAOException;
import me.inexactvim.paymentssystem.exception.account.AccountNotFoundException;
import me.inexactvim.paymentssystem.exception.card.Card... | true |
56e02fa8d5c83d9c57974a9f55d8ddc752d9d64c | Java | MavonCmc/wdw | /news-master/news-admin/src/main/java/com/kanfa/news/admin/rpc/burst/BurstRest.java | UTF-8 | 5,295 | 1.898438 | 2 | [] | no_license | package com.kanfa.news.admin.rpc.burst;
import com.kanfa.news.admin.entity.Burst;
import com.kanfa.news.admin.entity.BurstResource;
import com.kanfa.news.admin.entity.Channel;
import com.kanfa.news.admin.entity.burst.BurstType;
import com.kanfa.news.admin.feign.IChannelServiceFeign;
import com.kanfa.news.admin.feign.b... | true |
062ad6dbbe57c36c1d877a955c0ae05b47519d8a | Java | cloudzon-hitesh/SpringMVCRestSetup | /Huddle/src/main/java/com/cloudzon/huddle/common/Constant.java | UTF-8 | 1,547 | 1.679688 | 2 | [] | no_license | package com.cloudzon.huddle.common;
public interface Constant {
Double TRANSCATION_LIMIT = 10000D;
// TODO mvc
String SESSION_USER = "sessionUser";
// TODO mvc end
String DATE_FORMAT = "dd/MM/yy";
String DATE_FORMAT_WITH_TIME = "dd/MM/yyyy HH:mm:ss.SSS";
// template name for email
String TEMPLATE_EMAIL_CRE... | true |
228c6485a6c2e2b906ae0836e1210e3dc235b13f | Java | d66pak/learn.deepak.java | /myjava/src/main/java/learn/deepak/java/nio/FastCopyFile.java | UTF-8 | 1,146 | 3.09375 | 3 | [] | no_license | package learn.deepak.java.nio;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
/**
* Created by deepak on 18/10/15.
*/
public class FastCopyFile {
public static void main(String[] args) throws Exception {
String inputFi... | true |
75508e9d4c1a9815684e791f1ccf02b2bab995a1 | Java | BGCX262/zygomeme-svn-to-git | /branches/0.66/com/zygomeme/york/propertiesdialog/EditPane.java | UTF-8 | 6,404 | 2.28125 | 2 | [] | no_license | package com.zygomeme.york.propertiesdialog;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Frame;
import java.awt.event.*;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import javax.swing.*;
impor... | true |
bc12fa0bf80195bbf6a9bd988119729a6c497230 | Java | xjarkov/PA165-ice-hockey-manager | /manager-persistence/src/main/java/cz/fi/muni/pa165/hockeymanager/dao/UserDaoImpl.java | UTF-8 | 1,940 | 2.59375 | 3 | [] | no_license | package cz.fi.muni.pa165.hockeymanager.dao;
import cz.fi.muni.pa165.hockeymanager.entity.User;
import org.springframework.stereotype.Repository;
import javax.persistence.EntityManager;
import javax.persistence.NoResultException;
import javax.persistence.PersistenceContext;
import java.util.List;
/**
* @author Matus... | true |
015d7408386415edb9f8aa31286506c635cc81aa | Java | santosh450/AmazonOreder | /src/test/java/com/amazon/qa/testcases/HomePageTest.java | UTF-8 | 1,182 | 2.21875 | 2 | [] | no_license | package com.amazon.qa.testcases;
import java.io.IOException;
import org.testng.Assert;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import com.amazon.qa.base.TestBase;
import com.amazon.qa.pages.HomePage;
import com.amazon.qa.pages.LoginPage... | true |
4da0e687cd430f13d3ce50501a0902effc586b8c | Java | liwangisgood/dms_back | /src/main/java/com/hzvtc/myproject/dao/RepairMapper.java | UTF-8 | 702 | 1.90625 | 2 | [] | no_license | package com.hzvtc.myproject.dao;
import com.hzvtc.myproject.entity.Repair;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @author XiongXinxin
* @date 2021-03-13
*/
@Repository
public interface RepairMapper {
void save(Repair repair);
... | true |
9aef4bd6bd88079d45d4de8ada22bbcab524d5e6 | Java | venkks/Pareto | /src/main/java/it/upspring/laabam/service/BranchService.java | UTF-8 | 335 | 1.96875 | 2 | [] | no_license | package it.upspring.laabam.service;
import it.upspring.laabam.domain.Branch;
import java.util.List;
/**
* Created by sri on 6/11/15.
*/
public interface BranchService {
boolean addBranch(Branch branch);
List<Branch> getBranches(int companyId);
Branch getBranchFromNameAndCompany(String branchName, int ... | true |
8cdd313ea39a136c46615bbcfc43926e9cf3c2ef | Java | tingshuonitiao/GaugeView | /gaugeview/src/main/java/com/gauge/tsnt/gaugeview/GaugeView.java | UTF-8 | 7,499 | 2.15625 | 2 | [] | no_license | package com.gauge.tsnt.gaugeview;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.VelocityTracker;
import android.v... | true |
8b607e39395f73d52b5f55c0b997a90e22258004 | Java | nagyist/marketcetera | /photon/photon/plugins/com.swtworkbench.community.xswt/src/com/swtworkbench/community/xswt/DefaultURIHandler.java | UTF-8 | 816 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | package com.swtworkbench.community.xswt;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
public class DefaultURIHandler implements URIHandler {
publ... | true |
648483d22f0438937a75476c393917adeba07201 | Java | nishitakheur/ProgramsPractice1 | /src/Anagram.java | UTF-8 | 2,118 | 3.71875 | 4 | [] | no_license | import java.util.HashMap;
import java.util.Objects;
import java.util.Arrays;
import java.util.*;
/**
* Created by nishita.kheur on 2/4/17.
*/
//Arrays can be sorted
//Strings can be compared
//Array to string --> toString
//MAKE IT A CHAR ARRAY ONLY
//charArray to string --> use new String(a)
//f(str != null &... | true |
abd48c422e3a6a81bd743c79f9e9c12d7ac16022 | Java | liujianqiang01/videoService | /src/main/java/com/video/util/ErweimaUtil.java | UTF-8 | 2,919 | 2.171875 | 2 | [] | no_license | package com.video.util;
import com.alibaba.druid.util.StringUtils;
import com.alibaba.fastjson.JSONObject;
import com.video.common.Configure;
import com.video.common.HttpRequest;
import org.apache.commons.codec.binary.Base64;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.Htt... | true |
791368573973783ee8ee837c8e6c902766c9947c | Java | ZhuKaishengy/testSpringmvc-01 | /Springmvc-01/src/main/java/com/aisino/utils/ExcelUtils.java | UTF-8 | 1,885 | 2.96875 | 3 | [] | no_license | package com.aisino.utils;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.List;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
public class ExcelUtils ... | true |
9de98b8c8575641790427b45bffe65567195e106 | Java | bbeyne/sirh-gestion-paie | /src/main/java/dev/paie/web/controller/BulletinController.java | UTF-8 | 2,511 | 2.09375 | 2 | [] | no_license | package dev.paie.web.controller;
import java.math.BigDecimal;
import java.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.annotation.Secured;
import org.springframework.stereotype.Controlle... | true |
db1d4a74c800d1e43b44e39721c9326a0f7e30b1 | Java | linzhiji/DesignPattern | /AbstractFactory/src/main/java/Circle.java | UTF-8 | 270 | 2.765625 | 3 | [] | no_license | /**
* @author linzhiji
* @description
* @date 2021/1/30
**/
public class Circle extends Shape{
public Circle(String color){
super(color);
}
@Override
public void draw(){
System.out.println("draw circle ,color = " + color);
}
}
| true |
049f873114d83a88689bdd936c548d06597f19f2 | Java | yangyusong1121/Android-car | /app/src/main/java/com/tgf/kcwc/mvp/view/EditCustomerView.java | UTF-8 | 294 | 1.648438 | 2 | [] | no_license | package com.tgf.kcwc.mvp.view;
/**
* @anthor noti
* @time 2017/8/15 18:05
*/
public interface EditCustomerView extends WrapView{
/**
* 保存资料成功
*/
void saveSuccess();
/**
* 保存资料失败
* @param msg
*/
void saveFail(String msg);
}
| true |
81b3f2e4f45356a8495290e2b5d7e38bffdc042a | Java | Mihaitzaa/Agenda | /Agenda/src/com/mihai/Descriere.java | UTF-8 | 930 | 2.625 | 3 | [] | no_license | package com.mihai;
import java.util.Scanner;
public class Descriere implements IDescriere {
private String tipEveniment;
private String descc;
Scanner sc = new Scanner(System.in);
public Descriere(String nume, String descc) {
this.tipEveniment = nume;
this.descc = descc;
... | true |
c06e2e918c36f0b8d4b0ce076de64146c88fbc37 | Java | BBPL/ardrone | /android/src/main/java/org/apache/sanselan/formats/tiff/TiffField.java | UTF-8 | 16,691 | 2.1875 | 2 | [] | no_license | package org.apache.sanselan.formats.tiff;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.Hashtable;
import java.util.List;
import java.util.Map;
import org.apache.sanselan.ImageReadException;
import org.apac... | true |
a9d6a5a990a7052df94cb6fbb4684af2d46a3060 | Java | Saljack/NUR-Zavody | /src/cz/cvut/fel/nur/zavody/MainActivity.java | UTF-8 | 3,913 | 2.21875 | 2 | [] | no_license | package cz.cvut.fel.nur.zavody;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.View;
import android.widget.Button;
import androi... | true |
5ecfa288f5430bae8486575f14a6c32e0e8b8724 | Java | rrzaniolo/MyWeatherApp | /app/src/main/java/rodrigo/zaniolo/myshowcaseapp/city_list/CityListInterface.java | UTF-8 | 730 | 2.015625 | 2 | [] | no_license | package rodrigo.zaniolo.myshowcaseapp.city_list;
import android.content.Context;
import android.databinding.ObservableBoolean;
import android.os.Parcelable;
import rodrigo.zaniolo.myshowcaseapp.base.BaseActivity;
import rodrigo.zaniolo.myshowcaseapp.custom.MyRecyclerViewConfiguration;
public interface CityListInterf... | true |
6fec95727322726458b579efa63516e4963c0670 | Java | ivantm24/Interview-Task3 | /src/com/jorsek/usersearch/Node.java | UTF-8 | 3,011 | 3.328125 | 3 | [] | no_license | package com.jorsek.usersearch;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
/**
* Created by ivantactukmercado on 10/16/15.
*/
public class Node {
private HashMap<Character,Node> child;
private List<String> ZipCodes;
/**
* zipCodes and lastNames have to be sorted by... | true |
b78ae48ca44c0c102c8c2b6bfb37262862250a9a | Java | ndoomah/Spring | /articles-spring-app/src/main/java/br/example/beans/ArticleBean.java | UTF-8 | 3,761 | 2.1875 | 2 | [] | no_license | /**
*
*/
package br.example.beans;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.context.FacesContext;
import org.springframework.binding.mes... | true |
a7075b6fb49a34cecd01cd8ff90f43725ec4372f | Java | Marcelafuertes/Reto3 | /src/main/java/com/sa/G8/Grupo01/Reto3/service/ReservationService.java | UTF-8 | 1,536 | 2.40625 | 2 | [] | no_license | /*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
*/
package com.sa.G8.Grupo01.Reto3.service;
import com.sa.G8.Grupo01.Reto3.entity.Reservation;
import com.sa.G8.Grupo01.Re... | true |
91b01aeb9b6dac8a0d3eeddf3d834ee374a15cd7 | Java | sgdc3/BestViewDistance | /src/main/java/me/lxct/bestviewdistance/functions/async/LoginDataLoad.java | UTF-8 | 795 | 2.140625 | 2 | [] | no_license | package me.lxct.bestviewdistance.functions.async;
import org.bukkit.entity.Player;
import static me.lxct.bestviewdistance.functions.data.Variable.*;
public class LoginDataLoad implements Runnable {
private Player player;
public LoginDataLoad(Player player) {
this.player = player;
}
... | true |
4c63a82a1553ed7952f25969f75ad1471cb9641c | Java | mohankumar2019/Hello-book | /src/Hellobook.java | UTF-8 | 122 | 1.679688 | 2 | [] | no_license |
public class Hellobook {
public static void main(String[] args) {
System.out.println("Hello book ");
}
}
| true |
3872161ccff0cdebd0bc82f831560cf0cffc8dcd | Java | tevjef/NJIT-Course-Tracker | /android/libraries/ratemyprofessors/src/main/java/com/tevinjeffrey/rmp/common/Professor.java | UTF-8 | 714 | 2.125 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | package com.tevinjeffrey.rmp.common;
public class Professor {
public String lastName;
public String title;
public String email;
public String department;
public String firstName;
public Rating rating;
public Location location;
public String getLastName() {
return lastName;
... | true |
c36603c691f618f67d554dce7e42f641e8e114c0 | Java | poojagun/remote-repository | /src/NumberPatterns.java | UTF-8 | 610 | 3.765625 | 4 | [] | no_license |
public class NumberPatterns {
public void pattern1(int n) {
int count=0;
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= i; j++) {
count++;
System.out.print(count+" ");
}
System.out.println();
}
}
public void pattern2(int n) {
for (int i = 1; i <= n; i++) {
for (int j = ... | true |
4da2ce11c933fc40cfba244d215854e39fb8fe21 | Java | PaaS-TA/OPENPAAS-IEDA-WEB-v3.0 | /OPENPAAS-IEDA-DEPLOY-SERVICE/src/main/java/org/openpaas/ieda/deploy/web/config/credential/dao/CredentialManagementVO.java | UTF-8 | 2,675 | 1.976563 | 2 | [] | no_license | package org.openpaas.ieda.deploy.web.config.credential.dao;
import java.util.Date;
public class CredentialManagementVO {
private Integer recid; //recid
private Integer id;//id
private String credentialName;
private String credentialKeyName;
private String directorPublicIp;
private String direc... | true |
d924ac757165963fab72a902ab3d7c750c4967c3 | Java | pedrocleto/Java | /SiaSoft/src/pt/inescporto/siasoft/asq/ejb/dao/LegalRequirementDao.java | UTF-8 | 1,014 | 1.945313 | 2 | [] | no_license | package pt.inescporto.siasoft.asq.ejb.dao;
import pt.inescporto.template.elements.TplString;
import pt.inescporto.template.elements.TmplKeyTypes;
import pt.inescporto.template.elements.TplBoolean;
/**
* <p>Title: SIASoft</p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2005</p>
*
* <p>... | true |
d5b55b79159545541dd48df78f4d8d8a8be15074 | Java | 94192448/online-store | /src/main/java/com/store/catalog/domain/Catalog.java | UTF-8 | 5,047 | 2.3125 | 2 | [] | no_license | package com.store.catalog.domain;
import java.io.Serializable;
import java.time.ZonedDateTime;
import java.util.List;
import java.util.Objects;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.I... | true |
6a3348793c563916da4c99d2bab584a2b112afdf | Java | qoo7972365/timmy | /OSWE/oswe/openCRX/rtjar/rt.jar.src/com/sun/corba/se/impl/ior/ByteBuffer.java | UTF-8 | 4,732 | 2.09375 | 2 | [] | no_license | /* */ package com.sun.corba.se.impl.ior;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
... | true |
50772b80c2cf470fb41985d4c896b81b5389c393 | Java | bassista/FuseSupport | /cxfMetrics/src/main/java/com/redhat/MetricService.java | UTF-8 | 137 | 1.679688 | 2 | [] | no_license | package com.redhat;
import javax.jws.WebService;
@WebService
public interface MetricService {
public String sayHello(String name);
}
| true |
a98f5da9eaa5b877d07b58226a275544e2c9327f | Java | nzumb3/nlp4web_milestone3 | /code/src/main/java/types/Genre_Type.java | UTF-8 | 2,029 | 2.125 | 2 | [] | no_license |
/* First created by JCasGen Mon Feb 04 15:49:40 CET 2019 */
package types;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.cas.impl.TypeImpl;
import org.apache.uima.cas.Type;
import org.apache.uima.cas.impl.FeatureImpl;
import org.apache.uima.cas.Feature;
import org.... | true |
fbbe2d0b633fa9d538093e11a775d490e40e4f21 | Java | NikOrin/aws-greengrass-cli | /client/src/test/java/com/aws/greengrass/cli/util/logs/impl/FilterImplTest.java | UTF-8 | 13,812 | 1.914063 | 2 | [
"Apache-2.0",
"MIT"
] | permissive | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
// SPDX-License-Identifier: Apache-2.0
package com.aws.greengrass.cli.util.logs.impl;
import com.aws.greengrass.cli.TestUtil;
import com.aws.greengrass.cli.util.logs.LogEntry;
import com.aws.greengrass... | true |
93044475595db1ae0cdb708716a9b371d0ca8080 | Java | AdamBobFei/classRelationship | /src/dependency/Driver.java | UTF-8 | 97 | 2.1875 | 2 | [] | no_license | package dependency;
public class Driver {
private void driver(Car car) {
car.move();
}
}
| true |
cd6f6fc5d2f0ed7d9a33bb475bf1648f34d5623f | Java | mastersaintjerome/HidenWord | /src/hidenword/App/Core/Configuration/PropertiesDriver.java | UTF-8 | 1,859 | 2.875 | 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 hidenword.App.Core.Configuration;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOExce... | true |
cb055a4fd85f9f23e49bb088ab86c491341167ae | Java | hmatic/fer-java-course | /16 JVDraw/src/main/java/hr/fer/zemris/java/hw16/jvdraw/models/DrawingObjectListModel.java | UTF-8 | 1,525 | 3.0625 | 3 | [] | no_license | package hr.fer.zemris.java.hw16.jvdraw.models;
import javax.swing.AbstractListModel;
import hr.fer.zemris.java.hw16.jvdraw.listeners.DrawingModelListener;
import hr.fer.zemris.java.hw16.jvdraw.objects.GeometricalObject;
/**
* Adapter class for DrawingModel used as model of JList.
* See Adapter design pattern.
* @... | true |
5708c99fafa6ae9e009a2d9cd12ccfeac7e6da60 | Java | vimalcvs/Hindi-to-English-Translation | /app/src/main/java/com/vimalinc/hieg/topic/GrammerRules.java | UTF-8 | 21,712 | 1.921875 | 2 | [
"Apache-2.0"
] | permissive | package com.vimalinc.hieg.topic;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.... | true |
a604b15d20a205aaab157b09aa6e781f97873c13 | Java | epoc-software-open/SEDC | /Ver.2/2.00/source/JavaModel/web/b599_pc08_map_item_res.java | SHIFT_JIS | 44,478 | 1.75 | 2 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | /*
File: B599_PC08_MAP_ITEM_RES
Description: }bsOϕi}X^擾
Author: GeneXus Java Generator version 10_3_3-92797
Generated on: July 3, 2017 17:12:50.73
Program type: Callable routine
Main DBMS: mysql
*/
import java.sql.*;
import com.genexus.db.*;
import com.genexus... | true |
36332ad8535fe01471aa66926629b92e75de0f54 | Java | RKazantsev/JavaProjects | /Golovach.Courses/App01/src/main/java/org/learning/java8/Exceptions/AppExceptions_12.java | UTF-8 | 270 | 2.34375 | 2 | [] | no_license | package org.learning.java8.Exceptions;
public class AppExceptions_12 {
public static void main(String[] args) throws Exception {
try {
throw new B();
} catch (B e) {
}
}
}
class A extends Exception {}
class B extends A {}
| true |
91c90e39eb0f765cb18d943c4ffdb5edbefa1324 | Java | EvhenLevchenko/IT-Cloud | /src/moduleThird/LabworkOne/labwork4/ReplacementInFile.java | UTF-8 | 1,018 | 3.265625 | 3 | [] | no_license | package moduleThird.LabworkOne.labwork4;
import java.io.*;
public class ReplacementInFile {
public static void main(String[] args) {
RandomAccessFile rafi = null;
try {
rafi = new RandomAccessFile("outputCode.txt", "rw");
} catch (Exception e) {
e.printStackTrace()... | true |
07e893c320c7990cf7418531f586f6e4e9dc9750 | Java | lastdayzzh/lastdayzzh | /tool_server/backend/src/main/java/com/zkcm/problemtool/system/service/group/IGroupDetailService.java | UTF-8 | 929 | 1.679688 | 2 | [] | no_license | package com.zkcm.problemtool.system.service.group;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zkcm.problemtool.common.domain.QueryRequest;
import com.zkcm.problemtool.comm... | true |
c0b588cf9754e534bcd4fd2f64932e1c070e2765 | Java | lazyguy21/nioCombo | /src/main/java/org/yyf/nioCombo/FirstShot.java | UTF-8 | 704 | 2.375 | 2 | [] | no_license | package org.yyf.nioCombo;
import com.google.common.base.Throwables;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
/**
* Created by tobi on 16-10-31.
*/
public class FirstShot {
public static void main(String[] arg... | true |
33d914563abe4e5e967d99c5f595f5e7f8836ea8 | Java | rymdbullen/mediacontroller | /dbus-control-mediaplayer/src/main/java/net/tux/mediaplayer/config/Constants.java | UTF-8 | 621 | 1.828125 | 2 | [] | no_license | package net.tux.mediaplayer.config;
public class Constants {
public static final String DBUS_SERVICE_BUS_NAME_SPOTIFY = "org.mpris.MediaPlayer2.spotify";
public static final String DBUS_SERVICE_BUS_NAME_CLEMENTINE = "org.mpris.MediaPlayer2.clementine";
public static String[] PLAYER_IDS = new String[] {DBUS_SERVICE_... | true |
5bd6c6b4cb9b5ffc3c79deb647f0915803260549 | Java | KevinHui0117/urule | /urule-springboot/src/main/java/com/bstek/urule/springboot/PropertiesConfiguration.java | UTF-8 | 565 | 1.984375 | 2 | [
"Apache-2.0"
] | permissive | package com.bstek.urule.springboot;
import java.util.Properties;
import org.springframework.beans.factory.InitializingBean;
import com.bstek.urule.URulePropertyPlaceholderConfigurer;
/**
* @author Jacky.gao
* @since 2016年10月12日
*/
//@Component
public class PropertiesConfiguration extends URulePropertyPlaceholder... | true |
54a4a5f5444d733dd7c8acd54d5d7cad66cfddf9 | Java | Peter955107/week2 | /FilterTest/src/cc/openhome/CharacterFilter.java | UTF-8 | 1,467 | 2.4375 | 2 | [] | no_license | package cc.openhome;
import java.io.*;
import java.util.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.servlet.*;
import javax.servlet.annotation.*;
import javax.servlet.http.*;
@WebFilter(
urlPatterns={"/guestbook"},
initParams={
@WebInitParam(
... | true |
300ee0b7cecb673eb40097388478b13d5095defd | Java | henryco/GrInjector | /src/test/java/com/github/henryco/injector/injector/module/ModuleD.java | UTF-8 | 550 | 2.0625 | 2 | [
"MIT"
] | permissive | package com.github.henryco.injector.injector.module;
import com.github.henryco.injector.injector.component.ComponentA;
import com.github.henryco.injector.meta.annotations.Module;
import com.github.henryco.injector.meta.annotations.Provide;
import javax.inject.Singleton;
/**
* @author Henry on 17/12/17.
*/
@Module... | true |
7ea2de1bd5b7f3d48d270ba32ae67b6ea5bccbb4 | Java | krongrah/3.-Semester | /3_semester_ServerDomain/src/jobCalculation/JobCalculator.java | UTF-8 | 3,848 | 3.03125 | 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 jobCalculation;
import ProjectInterfaces.*;
import static commondata.Constants.*;
import java.util.List;
/**
*
* @author ah... | true |
a4872d53f7a7365034714cebab55989b04121847 | Java | gaoshoutuo/leetcode_java | /src/leetcode_161_TO_180/Program_180.java | UTF-8 | 99 | 1.632813 | 2 | [] | no_license | package leetcode_161_TO_180;
public class Program_180 {//pow(n,x) -100<n<100 x属于integer
}
| true |
68ecfc26c98e413e462278d72c48b9e986096899 | Java | taiyrkhassen/Android_Twitter | /app/src/main/java/com/example/tweet/RegistrationActivity.java | UTF-8 | 3,157 | 2.390625 | 2 | [] | no_license | package com.example.tweet;
import android.graphics.Paint;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView... | true |
de263d00cecb81c09d3863838ef89f976dc2b04c | Java | bamossza/spring-boot2-webflux-azure-mssql-jdbc | /src/main/java/com/mindbase/demo/handle/DemoHandle.java | UTF-8 | 912 | 2 | 2 | [] | no_license | package com.mindbase.demo.handle;
import com.mindbase.demo.dto.Employee;
import com.mindbase.demo.service.DemoService;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.jetbrains.annotations.NotNull;
import org.springframework.stereotype.Service;
import org.springframework.web.reacti... | true |
b236d11e4cccf7e93fbb0e83070c7299b9c3a7cf | Java | sauravomar/Java-code | /Practice/src/HackerEarth/HalloweenParty.java | UTF-8 | 524 | 3.3125 | 3 | [] | no_license | package HackerEarth;
import java.util.Scanner;
/**
* Created by saurav on 21/6/14.
*/
public class HalloweenParty {
public static long calculate(long no){
if(no%2==0){
return (no/2)*(no/2);
}else{
return ((no-1)/2)*((no+1)/2);
}
}
public static void main... | true |
d7d8f9c9a78817634129f20d1beef9d78e60c563 | Java | benry3000/Qa-AwesomeTeam | /ZEROBANK_POMFramework/src/main/java/com/zero/qa/pages/ForgotPass.java | UTF-8 | 1,579 | 2.203125 | 2 | [] | no_license | package com.zero.qa.pages;
import com.zero.qa.base.*;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.ui.Select;
public class ForgotPass extends TestBase
{
... | true |
531ab6514c6d6adf3aa19d85af1ea2be2b09cee5 | Java | MED1024/Aerohack-Mobile | /main/java/com/example/probamap/MainActivity.java | UTF-8 | 8,541 | 1.804688 | 2 | [] | no_license | package com.example.probamap;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.icu.text.IDNA;
import... | true |
ce4d180f6376d27c212653a27348cade30809960 | Java | getDateDE/backend | /src/main/java/de/getdate/backend/infrastructure/UserRepository.java | UTF-8 | 799 | 2.265625 | 2 | [] | no_license | package de.getdate.backend.infrastructure;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import de.getdate.backend.data.StringId;
import de.getdate.backend.data.jpa.AbstractJpaCrudRepository;
import de.getdate.backend.data.jpa.ComparisonSpecifica... | true |
1dbca225ecc76856495b096cf503785b3a22f208 | Java | moutainhigh/goddess-java | /modules/communicatemeeting/communicatemeeting-api/src/main/java/com/bjike/goddess/communicatemeeting/to/OrganizeContentTO.java | UTF-8 | 3,511 | 2.125 | 2 | [] | no_license | package com.bjike.goddess.communicatemeeting.to;
import com.bjike.goddess.common.api.entity.ADD;
import com.bjike.goddess.common.api.entity.EDIT;
import com.bjike.goddess.common.api.to.BaseTO;
import org.hibernate.validator.constraints.NotBlank;
/**
* 交流会组织内容
*
* @Author: [ chenjunhao ]
* @Date: [ 2017-05-26 02:1... | true |
6d2dd93ce8bbc9a67a76a5e31b10f229f94edea6 | Java | jatinwatts007/LeetCode | /1168.java | UTF-8 | 1,469 | 2.890625 | 3 | [] | no_license | class Solution {
public int findParent(int[] par, int p){
while(p != par[p]) p = par[p];
return p;
}
public int minCostToSupplyWater(int n, int[] wells, int[][] pipes) {
int m = pipes.length;
int w = wells.length;
int[][] edges = new int[m + w][3];
... | true |
4d126fd94cf99d367a071836b5ff0abae088479e | Java | KunmiaoYang/DNNCodeGenerator | /src/main/java/org/ncsu/dnn/tf/TFConcatLayer.java | UTF-8 | 1,782 | 2.0625 | 2 | [] | no_license | package org.ncsu.dnn.tf;
import org.ncsu.dnn.SimpleCodeGenerator;
import org.ncsu.dnn.caffe.CaffeLayer;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import static org.ncsu.dnn.tf.TFModel.KEY_INDENT;
import static org.ncsu.dnn.tf.TFModel.SHAPE_C;
public class T... | true |
a5b346f24ed100989721cf0fab42967de7a1dbfa | Java | aleksm/simple_click_tracker | /src/main/java/com/aleksm/simpleclicktracker/config/SettingsProviderFactory.java | UTF-8 | 538 | 2.515625 | 3 | [] | no_license | package com.aleksm.simpleclicktracker.config;
/**
* Factory for settings provider
*
* <P> Ensure appropriate settings provider is used when reading configuration.
*
* @author aleksm
* @version 1.0.0
*/
public class SettingsProviderFactory {
/**
* Factory method provides settings provider
*
* @return Goog... | true |
b38e7ef0a1d1a3def8ee6b617fea911cbdde1e49 | Java | logzio/sawmill | /sawmill-core/src/test/java/io/logz/sawmill/parser/PipelineParsingTest.java | UTF-8 | 2,633 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | package io.logz.sawmill.parser;
import com.google.common.collect.ImmutableMap;
import com.google.common.io.Files;
import io.logz.sawmill.Doc;
import io.logz.sawmill.Pipeline;
import io.logz.sawmill.PipelineExecutor;
import org.assertj.core.util.Maps;
import org.junit.Test;
import java.io.File;
import java.io.IOExcept... | true |
b970db56807c4e899dc8dc5f0f5644c5321b21c2 | Java | Invizible/Catdogtion | /src/main/java/com/github/invizible/catdogtion/domain/AuctionStatus.java | UTF-8 | 344 | 2.125 | 2 | [
"MIT"
] | permissive | package com.github.invizible.catdogtion.domain;
public enum AuctionStatus {
/**
* Created and not started
*/
CREATED,
/**
* Currently is happening
*/
IN_PROGRESS,
/**
* Finished or was closed by {@link com.github.invizible.catdogtion.service.AuctionScheduler#scheduleAuctionStartDateCheck(Auc... | true |
8438b7322a4060f11c40bfed66a4323ec302712d | Java | GZzzhsmart/QQ2016 | /src/com/ht/ui/ChatUI.java | UTF-8 | 14,572 | 2.078125 | 2 | [] | no_license | package com.ht.ui;
import java.awt.Color;
import java.awt.Cursor;
import java.awt.FileDialog;
import java.awt.Font;
import java.awt.Point;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.awt.event.KeyEvent;
import... | true |
b0fbda615816b6221b68a14872a3a013aa9e281a | Java | stefanroock/BeispielCodeAgileEntwicklungspraktiken | /tdd/src/kapitel7/stand4/AppendingGameReportTest.java | UTF-8 | 1,711 | 2.765625 | 3 | [] | no_license | package kapitel7.stand4;
import static org.junit.Assert.*;
import java.io.*;
import org.junit.*;
public class AppendingGameReportTest {
private File reportFile;
private AppendingGameReport report;
@Before
public void initialize() throws IOException {
reportFile = File.createTempFile("game-report", "txt");
... | true |
22382de15695a613286f4c81c3b0d75ba9792492 | Java | mskwak/topProject | /topProject-web/src/main/java/com/hangugi/config/Config.java | UTF-8 | 275 | 1.5625 | 2 | [] | no_license | package com.hangugi.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.hangugi.lotto.Lotto;
@Configuration
public class Config {
@Bean
public Lotto mskwList() {
return new Lotto(5);
}
}
| true |
45c11170b55403bfadb5cdd295e3dd2e8d5b8853 | Java | DMC007/javaDesign2020 | /src/com/tom/demo/design08/IntelligentPhone.java | UTF-8 | 452 | 2.9375 | 3 | [] | no_license | package com.tom.demo.design08;
/**
* @Author ZX
* @Date 2020/4/20 11:21
* @Version 1.0
*/
public class IntelligentPhone extends Phone {
public IntelligentPhone(Brand brand) {
super(brand);
}
@Override
public void open() {
super.open();
System.out.println("智能手机打开");
}
... | true |
f8233ca2ba399046dd42f2887e4d2591f44737e8 | Java | MatheusFFM/ASHOW-TIS-II-BE | /Ashow/src/main/java/Ashow/business/Evento.java | UTF-8 | 3,297 | 2.65625 | 3 | [] | no_license | package Ashow.business;
import java.io.Serializable;
import java.time.LocalDateTime;
public class Evento implements Serializable {
private static int maxIDEventos = 0;
private int id;
private int capacidadeEsperada;
private int quantidadeArtistas;
private double valor;
private String estilo;
private Str... | true |
9fc93a57f5d314f05fbe0be03d5661efa392390f | Java | 8431/GZ | /src/main/java/com/gz/medicine/yun/doctor/bean/DTfollowupRecord.java | UTF-8 | 7,184 | 2.09375 | 2 | [] | no_license | ... | true |
6727fac50b9e7d18aeb7775e57c1760cf2897074 | Java | parhelia512/BurningKnightJava | /core/src/org/rexcellentgames/burningknight/entity/level/levels/desert/DesertLevel.java | UTF-8 | 1,049 | 2.359375 | 2 | [] | no_license | package org.rexcellentgames.burningknight.entity.level.levels.desert;
import org.rexcellentgames.burningknight.Dungeon;
import org.rexcellentgames.burningknight.assets.Locale;
import org.rexcellentgames.burningknight.entity.level.Level;
import org.rexcellentgames.burningknight.entity.level.RegularLevel;
import org.rex... | true |
88f2cb01a05cf362460f0d0f3cd2fdd145a949c8 | Java | chrisQQQiu/SSM-Dubbo | /Demo-api/src/main/java/com/starcor/demo/service/impl/UserServiceImpl.java | UTF-8 | 1,045 | 1.820313 | 2 | [] | no_license | package com.starcor.demo.service.impl;
import com.github.pagehelper.Page;
import com.starcor.common.result.Result;
import com.starcor.demo.facade.UserFacade;
import com.starcor.demo.param.UserPageParam;
import com.starcor.demo.param.UserParam;
import com.starcor.demo.result.UserResult;
import com.starcor.demo.service.... | true |
a27485e8d22475cbb621e03110b4512595f08175 | Java | leoroos/VAADTreeAnimation | /junit/de/lere/vaad/treebuilder/BreadthFirstBuilderTest.java | UTF-8 | 2,061 | 2.859375 | 3 | [] | no_license | package de.lere.vaad.treebuilder;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
public class BreadthFirstBuilderTest {
private Breadt... | true |
816704033511996bad48ab41f26173b3a8b4cca5 | Java | eriklievaart/refactor | /main/java/com/eriklievaart/refactor/text/Replacer.java | UTF-8 | 133 | 1.773438 | 2 | [] | no_license | package com.eriklievaart.refactor.text;
public interface Replacer {
boolean matches(String line);
String in(String contents);
}
| true |
deda1ecb659228f05b814abb7bd9c9cc45aa35aa | Java | yudahendriawan/ExplorePonorogo | /app/src/main/java/com/yudahendriawan/exploreponorogo/wisata/DetailWisata.java | UTF-8 | 2,049 | 1.960938 | 2 | [] | no_license | package com.yudahendriawan.exploreponorogo.wisata;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.ImageView;
import android.widget.TextView;
import com... | true |
527a8379ce7acdb387f2ce6025672f94361159ba | Java | VPanasenko/ru.vtb.education.java | /SpringBoot/src/main/java/lesson9/controllers/OrdersController.java | UTF-8 | 929 | 2.3125 | 2 | [] | no_license | package lesson9.controllers;
import lesson9.model.Order;
import lesson9.services.OrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@RequestMapping("/api/v1/... | true |
412a6e9966b8b21a1724bd99a688125ab029b6e0 | Java | happyfeetw/E3MALL | /e3-manager/e3-manager-interface/src/main/java/cn/e3/manager/service/ItemCatService.java | UTF-8 | 489 | 2.1875 | 2 | [] | no_license | package cn.e3.manager.service;
import java.util.List;
import cn.e3.utils.TreeNode;
public interface ItemCatService {
/**
* 需求: 根据节点的父id查询其所属的子节点
* 参数: Long parentId
* 返回值: List<TreeNode> list(集合中包含前台页面需要树形节点.)
* 前台需要节点的text属性和state属性,需要在工具类工程中创建一个对象用来保存这些属性.
*/
public List<TreeNode> findItemCatTreeNo... | true |
ad279f4902a376809519b4c21fcf6c394974f0e2 | Java | anoopst/soa | /consumerms/src/main/java/com/example/ConsumerService.java | UTF-8 | 1,672 | 2.328125 | 2 | [] | no_license | package com.example;
import java.net.URI;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.spri... | true |
c1394228fcfeeda729485edc2ce190c5374d4b18 | Java | htm52/Daba | /dabaspring/src/com/daba/backend/web/controller/UploadCreator.java | UTF-8 | 1,361 | 2.09375 | 2 | [] | no_license | package com.daba.backend.web.controller;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.a... | true |
b15468b3152e6758b0613a6b21f03e134084a105 | Java | FernandesJr/ProjetoPP | /src/main/java/controller/ControllerLogin.java | ISO-8859-2 | 2,249 | 2.5625 | 3 | [] | no_license | package controller;
import java.io.IOException;
import java.sql.SQLException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import model.Usuario;
/**
... | true |
e6e0dde510472c9f986c9ce1e42aea4577bce7a3 | Java | ohyeah521/Android_Unshell | /src/ls/Debug/DebugLog.java | UTF-8 | 1,091 | 2.5625 | 3 | [] | no_license | package ls.Debug;
import android.util.Log;
/**
* DebugLog
* 打印日志
* @author LsMouse
*/
public class DebugLog {
public static final String TAG = "Lslog";
public static void Out(boolean inEn){
Log.i(TAG,inEn+"");
}
public static void Out(Boolean inEn){
Log.i(TAG,inEn+"");
}
public stati... | true |
052b9350b3a2d90228bf7d092ff79580751dbca7 | Java | caalador/FloorPlanner | /src/main/java/org/percepta/mgrankvi/floorplanner/gwt/client/floorgrid/CFloor.java | UTF-8 | 14,653 | 2.125 | 2 | [] | no_license | package org.percepta.mgrankvi.floorplanner.gwt.client.floorgrid;
import java.util.Collections;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.percepta.mgrankvi.floorplanner.gwt.client.Comma... | true |
7656c920f8b6d186d4e49e8e7f16f9a2dd082fa9 | Java | MelissaLobo/camel-example-spring-boot | /src/main/java/com/lobo/Application.java | UTF-8 | 501 | 1.914063 | 2 | [] | no_license | package com.lobo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
/**
* @author Melissa Lobo
* Class with main method, responsible for starting the application
*
*/
@SpringBootAppl... | true |
734f658880cbf1b45167fd7f9462b37d1697d66e | Java | andyqin1989/assistant_app | /app/src/main/java/com/assistant/ua/imageloader/glide/GlideImageLoader.java | UTF-8 | 395 | 2.09375 | 2 | [] | no_license | package com.assistant.ua.imageloader.glide;
import android.content.Context;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
/**
* Created by qinbaoyuan on 2018/11/13
*/
public class GlideImageLoader {
public static void loadImage(Context context, String url, ImageView view) {
Glide.wit... | true |
0176359a57c086ea49fe020be0b90242ef42216a | Java | giantcrabi/CRTool | /CRToolv1/app/src/main/java/com/kreators/crtoolv1/Fragment/Adapter/TrackRecordAdapter.java | UTF-8 | 2,429 | 2.265625 | 2 | [] | no_license | package com.kreators.crtoolv1.Fragment.Adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.kreators.crtoolv1.Model.IndoCurrencyFormat;
import com.kreators.crt... | true |
52668bdafea784b5421c0a392a1436dde1e05ae1 | Java | festewart/quality-measure-and-cohort-service | /cohort-translation/src/main/java/com/ibm/cohort/translator/provider/InJVMCqlTranslationProvider.java | UTF-8 | 5,727 | 1.734375 | 2 | [
"Apache-2.0"
] | permissive | /*
* (C) Copyright IBM Corp. 2020, 2020
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.ibm.cohort.translator.provider;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.InputStream;
import java.io.Reader;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXB... | true |
5aea651132c3cb7017668d7188a258d1564b6937 | Java | itpers/ctdialog | /ctdialog/src/main/java/com/beike/ctdialog/popup/CTPopupWindow.java | UTF-8 | 2,679 | 2.296875 | 2 | [] | no_license | package com.beike.ctdialog.popup;
import android.content.Context;
import android.view.View;
import android.widget.PopupWindow;
/**
* Created by liupeng on 2017/6/15.
*/
public class CTPopupWindow extends PopupWindow {
private PopuController controller;
@Override
public int getWidth() {
return... | true |
1999c87b726400b187c8df258da1c1bd1b63bc12 | Java | TylerHaigh/seng2050-assignment3 | /src/rgms/mvc/HttpMethod.java | UTF-8 | 307 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package rgms.mvc;
/**
* Lists the available HTTP Methods available for use in the application
*
* @author Tyler Haigh - C3182929
* @author Simon Hartcher - C3185790
* @author Josh Crompton - C3165877
*
*/
public class HttpMethod {
public static final String Get = "GET";
public static final String Post = "P... | true |
326a5e152808cd82c28998cbb45f531478f4fe1b | Java | mehdiabouzaid/E-commerce_Website | /Kristazax/src/register/action/Administration.java | UTF-8 | 2,099 | 2.40625 | 2 | [] | no_license | /**
* @author Pierre Bernard
* @version 1.0
*/
package register.action;
import com.opensymphony.xwork2.ActionSupport;
import com.sun.corba.se.spi.orbutil.fsm.Action;
import register.model.AccesBD;
import register.model.Compte;
import java.util.*;
import java.sql.SQLException;
public class Administration extend... | true |
53a39f436388e4b7a10a39573f21317305de0b29 | Java | makecloud/MyAndroidExample | /playvideodemoapp/src/main/java/com/liuyihui/playvideodemo/MySurfaceVideoViewDemoActivity.java | UTF-8 | 2,258 | 2.09375 | 2 | [] | no_license | package com.liuyihui.playvideodemo;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.RelativeLayout;
import androidx.appcompat.app.AppCompatActivity;
import com.liuyihui.playvideodemo.customerView.MyIjkSurfaceVideoView;
/**
* MediaPlayer+SurfaceView播放视频
*/
public ... | true |