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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
7865547cbb4fdfe9e6fc5d808f651dff067b24fd | Java | BooksCup/rm-server | /src/main/java/com/bc/rm/server/entity/printer/result/PrinterResult.java | UTF-8 | 432 | 1.820313 | 2 | [] | no_license | package com.bc.rm.server.entity.printer.result;
/**
* 打印机相关接口返回
*
* @author zhou
*/
public class PrinterResult {
private String[] ok;
private String[] no;
public String[] getOk() {
return ok;
}
public void setOk(String[] ok) {
this.ok = ok;
}
public String[] getNo() {... | true |
93f7de7c11818fa436371c551c3d30724e7a270d | Java | juliuskindlundh/SetLogger | /app/src/main/java/com/example/setlogger/repository/entities/Session.java | UTF-8 | 320 | 2.078125 | 2 | [] | no_license | package com.example.setlogger.repository.entities;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
@Entity(tableName = "session_table")
public class Session {
@PrimaryKey(autoGenerate = true)
public int id;
@ColumnInfo(name = "time")
public int time;
}
| true |
b67f94ed5960094b0d6fb708731f4d7759946fbe | Java | HyunHan-Ji/2-2_Java-Programming-II | /week15/Book.java | UHC | 624 | 3.484375 | 3 | [] | no_license | package week15;
import java.io.*; // Serializable ݵ ʿ
public class Book implements Serializable {
private String name; //
private String author; // ڸ
private String number; // ȣ
public Book(String name, String author, String number) {
this.name = name;
this.author = author;
this.number = num... | true |
2f3ee272cee7a84a8e327b4dda3da7e69e0f171f | Java | macio-matheus/cross-site-scripting-engine-detector | /src/system/Factory.java | ISO-8859-1 | 15,327 | 2.25 | 2 | [] | no_license | package system;
import utilsLib.util.ObjFactory;
import utilsLib.util.Utils;
import utilsLib.util.data.DataType;
import utilsLib.util.data.DefaultEntity;
import utilsLib.util.data.Entity;
import utilsLib.util.data.Field;
import utilsLib.util.data.ParamDataInput;
public class Factory implements ObjFactory {
/**
* ... | true |
f509028270aa5fcf51d164571c4213ff329fcbfb | Java | EduardoJmnz/UPIICSAParking | /app/src/main/java/com/example/eddyh/upiicsaparking/Utils.java | UTF-8 | 217 | 1.90625 | 2 | [] | no_license | package com.example.eddyh.upiicsaparking;
import android.content.Context;
public class Utils {
public static String getStr(Context context, int id) {
return context.getResources().getString(id);
}
}
| true |
c21c910adb298df92f339c3aa3253dc439f94df3 | Java | Vampaire27/360dvr | /app/src/main/java/com/wwc2/dvr/utils/SDCardUtils.java | UTF-8 | 5,519 | 2.6875 | 3 | [] | no_license | package com.wwc2.dvr.utils;
import android.os.Environment;
import android.os.StatFs;
import java.io.BufferedReader;
import java.io.File;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.text.DecimalFormat;
/**
* SD卡相关的辅助类
*
* @see SDCardUtils
*/
public class SDCardUtils {
//剩余1G开始循... | true |
e77da9e9b3c1f04f52980381222cf66f2d8e38fc | Java | piyusht007/loan-manager | /src/main/java/com/example/loan/management/loanmanager/api/LoanApplicationRequest.java | UTF-8 | 2,034 | 2.546875 | 3 | [] | no_license | package com.example.loan.management.loanmanager.api;
public class LoanApplicationRequest {
private String applicantName;
private String amount;
private String tenure;
public LoanApplicationRequest(){
}
public LoanApplicationRequest(final String applicantName,
... | true |
23ab8deb8e57fbe4618840fe58727758579191dc | Java | mhamon1992/springbootdemo2 | /src/main/java/fr/ibformation/springboot/springbootdemo/controller/GreetingController.java | UTF-8 | 602 | 2.09375 | 2 | [] | no_license | package fr.ibformation.springboot.springbootdemo.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
@Controller
public class GreetingController {
// gretting en return va chercher dans les... | true |
f4d08a15e03d18ac5d7141924d13501912dfbb21 | Java | DenisDorokhov/pony | /server/pony.core/src/test/java/net/dorokhov/pony/core/test/integration/InstallationServiceIT.java | UTF-8 | 3,007 | 2.21875 | 2 | [] | no_license | package net.dorokhov.pony.core.test.integration;
import net.dorokhov.pony.core.config.ConfigService;
import net.dorokhov.pony.core.domain.Installation;
import net.dorokhov.pony.core.installation.InstallCommand;
import net.dorokhov.pony.core.installation.InstallationService;
import net.dorokhov.pony.core.installation.e... | true |
935b7b3c2322f8742e07a0a5ecfb3b6b52d5120f | Java | saketverma008/java-collections | /collections/VectorIterator.java | UTF-8 | 406 | 3.34375 | 3 | [] | no_license | package com.programming.java.collections;
import java.util.Iterator;
import java.util.Vector;
public class VectorIterator {
public static void main(String[] args) {
Vector<String> vct = new Vector<String>();
vct.add("Bhalo");
vct.add("Canada");
vct.add("More");
vct.add("Hockey");
Iterator<String> itr = v... | true |
386ea5120b3fb5a3c1329348c699757fed755e46 | Java | koczadly/AoC-2020-Java-Solutions | /src/main/java/uk/oczadly/karl/aoc20/SolutionManager.java | UTF-8 | 919 | 3.140625 | 3 | [] | no_license | package uk.oczadly.karl.aoc20;
import java.util.*;
/**
* @author Karl Oczadly
*/
public class SolutionManager {
private final Map<Integer, Set<PuzzleSolution>> solutions = new HashMap<>();
public void registerSolution(PuzzleSolution solution) {
Set<PuzzleSolution> set = solutions.computeI... | true |
c57dec07f147d9d7d58c6685f93ff2170dd391fc | Java | martin-g/wicket-spring-boot | /wicket-spring-boot-starter/src/main/java/com/giffing/wicket/spring/boot/starter/pages/LoginPage.java | UTF-8 | 1,889 | 2.25 | 2 | [] | no_license | package com.giffing.wicket.spring.boot.starter.pages;
import javax.servlet.http.HttpServletRequest;
import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession;
import org.apache.wicket.authroles.authentication.AuthenticatedWebSession;
import org.apache.wicket.markup.html.WebPage;
import org.apa... | true |
a1fd7e43b035b6fdba30e9e3e9dc4c7a650f0c2b | Java | Jahia/jahia | /gwt/src/main/java/org/jahia/ajax/gwt/client/data/GWTJahiaChannel.java | UTF-8 | 5,687 | 2.109375 | 2 | [] | no_license | /*
* ==========================================================================================
* = JAHIA'S DUAL LICENSING - IMPORTANT INFORMATION =
* ==========================================================================================
*
* ... | true |
46be604d05070237f62d70c326477c507cef7c89 | Java | howroyal/work.study.ui | /src/main/java/work/study/ui/service/ArticleContentService.java | UTF-8 | 1,028 | 2.28125 | 2 | [] | no_license | package work.study.ui.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import work.study.ui.bean.ArticleContentInfo;
import work.study.ui.dao.ArticleContentDao;
@Service
public class... | true |
aff3745c13958c846f2c2fcab1951cf789ceb0de | Java | ngunhaSO/DataStructuresAndAlgorithm | /com/jacky/DSAndDM/ElementaryDataStructure/Hash/HashADT.java | UTF-8 | 1,369 | 3.9375 | 4 | [] | no_license | package com.jacky.DSAndDM.ElementaryDataStructure.Hash;
import java.util.LinkedList;
import java.util.List;
public class HashADT<AnyType> {
private static final int DEFAULT_SIZE = 101;
private List<AnyType>[] theList;
private int size;
public HashADT() {
this(DEFAULT_SIZE);
}
public HashADT(int size) {
... | true |
f44e7ff341d1a0a596ef2ef66a1ff51ef466be4d | Java | XiaoJon/20180914 | /project/src/main/java/com/hjhq/teamface/project/ui/navigation/AddTaskTempDelegate.java | UTF-8 | 975 | 2.03125 | 2 | [] | no_license | package com.hjhq.teamface.project.ui.navigation;
import android.widget.EditText;
import com.hjhq.teamface.basis.util.TextUtil;
import com.hjhq.teamface.basis.zygote.AppDelegate;
import com.hjhq.teamface.project.R;
/**
* 新增任务列表
*
* @author Administrator
* @date 2018/4/16
*/
public class AddTaskTempDelegate exte... | true |
ea84efe6c1a98b9fa2040cbf53774937683e1642 | Java | mas618/CSE2 | /Test/ISBN.java | UTF-8 | 730 | 3.5625 | 4 | [] | no_license | public class ISBN {
public static void main(String[] args) {
// read in one command-line argument
int N = Integer.parseInt(args[0]);
// compute the weighted sum of the digits, from right to left
int sum = 0;
for (int i = 2; i <= 10; i++) {
int digit = N % 10; ... | true |
8a42fadf9540ec51e001751434db92a3626cb6aa | Java | reallifedeveloper/rld-common | /src/main/java/com/reallifedeveloper/common/infrastructure/persistence/JpaPublishedMessageTrackerRepository.java | UTF-8 | 605 | 1.773438 | 2 | [
"MIT"
] | permissive | package com.reallifedeveloper.common.infrastructure.persistence;
import org.springframework.data.jpa.repository.JpaRepository;
import com.reallifedeveloper.common.application.notification.PublishedMessageTracker;
import com.reallifedeveloper.common.application.notification.PublishedMessageTrackerRepository;
/**
* A... | true |
478339928d03fb122d1de74e0850fe0009964a5d | Java | dougxc/SecureSquawk3G | /j2me/src/com/sun/squawk/compiler/tests/TestC20.java | UTF-8 | 4,238 | 2.625 | 3 | [] | no_license | package com.sun.squawk.compiler.tests;
import com.sun.squawk.compiler.*;
import com.sun.squawk.compiler.Compiler;
import com.sun.squawk.os.*;
public class TestC20 implements Types {
public static void main(String[] args) {
Compiler c = Compilation.newCompiler();
Label shr = c.label();
... | true |
7dc9edc04176fa2b6c1ce27fa2ea756e820f9542 | Java | 1065612786/SSMParant | /Day86SSMDao/src/main/java/com/chen/dao/IDeptDao.java | UTF-8 | 144 | 1.742188 | 2 | [] | no_license | package com.chen.dao;
import java.util.List;
import com.chen.pojo.Dept;
public interface IDeptDao {
List<Dept> getAllDepts();
}
| true |
1934c4820ae5c1364637f1ef1e03a4e2321a8422 | Java | hugolribeiro/Curso_Java_Udemy | /ExerciciosCondicionais/src/Ex01.java | UTF-8 | 719 | 4.4375 | 4 | [] | no_license | import java.util.Scanner;
/*
Make a program to read an integer number, after that says if this number is negative or not.
Fazer um programa para ler um número inteiro, e depois dizer se este número é negativo ou não.
@ Programmer: Hugo Leça Ribeiro
*/
public class Ex01 {
public static void main(String[] args){
... | true |
65ef18270ed6d43bd94560e8db0ced5f4a0125d8 | Java | SSBjY-Dave/dorm-rooms-backend | /src/main/java/hu/davidorcsik/dorm/rooms/backed/status/LabelAssociationRequestStatus.java | UTF-8 | 195 | 1.71875 | 2 | [] | no_license | package hu.davidorcsik.dorm.rooms.backed.status;
public enum LabelAssociationRequestStatus {
OK,
PEOPLE_ID_INVALID, LABEL_ID_INVALID,
LABEL_ALREADY_ASSIGNED, LABEL_IS_NOT_ASSIGNED
}
| true |
9030fdc63503c49b9ca91cd11f619c4353ce1bba | Java | lj6684/certmgr | /src/cn/com/emv/certmgr/Console.java | GB18030 | 10,634 | 2.3125 | 2 | [] | no_license | package cn.com.emv.certmgr;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
import ... | true |
40f4330e4a63fb9c63b7134f6970459858124843 | Java | vincizhou/larkc-platform-2.5-rev1797-with-sim | /src/main/java/com/cyc/tool/subl/jrtl/nativeCode/type/core/AbstractSubLList.java | UTF-8 | 24,564 | 1.640625 | 2 | [] | no_license | /***
* Copyright (c) 1995-2009 Cycorp Inc.
*
* 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 appl... | true |
40b0593d20f688803867399111a89221ecb83463 | Java | Priyankanaidubandi/State-pattern-with-builder- | /BookStateBuilder/src/BookType.java | UTF-8 | 51 | 1.5 | 2 | [] | no_license |
public enum BookType {
fun,novel,love
}
| true |
88959197c50119a74394d97f98e05dadcca4f110 | Java | hendisantika/spring-security-spring-boot-mysql | /src/main/java/com/hendisantika/springsecurityspringbootmysql/repository/UserRepository.java | UTF-8 | 669 | 1.867188 | 2 | [] | no_license | package com.hendisantika.springsecurityspringbootmysql.repository;
import com.hendisantika.springsecurityspringbootmysql.domain.AppUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.Optional;
/**
* Created by IntelliJ IDEA.
* Proje... | true |
238517b2db42c6b88eff84c94c188afb5f85fe59 | Java | yotchang4s/gikolet-imona | /gikolet/src/gikolet/base/ui/events/ActionEvent.java | UTF-8 | 801 | 2.484375 | 2 | [] | no_license | /*
* 作成日: 2004/11/25
*
* TODO この生成されたファイルのテンプレートを変更するには次を参照。
* ウィンドウ > 設定 > Java > コード・スタイル > コード・テンプレート
*/
package gikolet.base.ui.events;
import gikolet.base.util.Event;
/**
* @author tetsutaro
*
* TODO この生成された型コメントのテンプレートを変更するには次を参照。
* ウィンドウ > 設定 > Java > コード・スタイル > コード・テンプレート
*/
public c... | true |
6039bd9f2501cca33848ad3046f9899ed2ef8944 | Java | BroLSJlong/tanbao | /src/tanbao/servlet/GoodsServlet.java | UTF-8 | 12,249 | 2.234375 | 2 | [] | no_license | package tanbao.servlet;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.... | true |
2cd5e504ab15f7133189bfb2b69680b5cd9f72c9 | Java | ArthurTerozendi/escalonamento-disco | /src/ERE/SistemasOperacionais/Main.java | UTF-8 | 758 | 2.703125 | 3 | [] | no_license | package ERE.SistemasOperacionais;
import java.io.IOException;
import java.util.ArrayList;
/**
* Autores: Arthur Terozendi e Uciolli Lemos
*/
public class Main {
public static void main(String[] args) throws IOException {
// write your code here
Leitor leitor = new Leitor("entradas.txt");
int ... | true |
3796c0b8da949c7fc8a577b255a39b03f848b1d5 | Java | sdspgy/zhiqiu_meng_backend | /meng-manage/src/main/java/com/manage/sys/service/SysMenuService.java | UTF-8 | 519 | 1.625 | 2 | [] | no_license | package com.manage.sys.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.core.entity.sys.SysMenu;
import java.util.List;
/**
* Author: yuzhu·tao
* Date: 2019/7/24 23:19
* Description:
*/
public interface SysMenuService extends IService<SysMenu> {
List<SysMenu> queryMenuRoute... | true |
0a10ec96928e0b3b53ea9cf2bad83ec4df79e2cc | Java | yukunkun/Gaia | /app/src/main/java/com/gaiamount/module_creator/sub_module_group/beans/GroupAdmin.java | UTF-8 | 2,226 | 2.28125 | 2 | [] | no_license | package com.gaiamount.module_creator.sub_module_group.beans;
import java.io.Serializable;
/**
* Created by haiyang-lu on 16-6-23.
*/
public class GroupAdmin implements Serializable{
/**
* 小组id
*/
private long gid;
/**
* 小组成员id
*/
private long mid;
/**
* 审核权限(0 不允许 1 允许... | true |
db425f043841a873092b377667fabb8f9720cec6 | Java | vu177/VatTu.1903 | /src/Kho/MatHang.java | UTF-8 | 1,604 | 2.234375 | 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 XuLy_Kho;
public class MatHang {
public String maHH;
public String ten;
public String loai;
public String dvt;... | true |
ce802bedb9e08b2d55f55c6fc585c71fa8508d14 | Java | ishwarya87mohanraj/deepakproject1 | /Project1/src/package1/reversestring.java | UTF-8 | 319 | 3.15625 | 3 | [] | no_license | package package1;
public class reversestring {
public static String stringreverse(String str) {
char ch[] = str.toCharArray();
String s="";
for (int i=ch.length - 1;i>=0;i-- )
{
s+= ch[i];
}
return s;
}
public static void main(String[] args) {
System.out.println(reversestring.stringreverse("ishwarya"));
}
} | true |
5da81cdb436e34130999e797d92d67e250215fb8 | Java | liuxiong332/monitor-service | /src/main/java/xiong/monitor/controller/EventRecordController.java | UTF-8 | 1,854 | 2.046875 | 2 | [] | no_license | package xiong.monitor.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import xiong.monitor.device.DeviceCmd;
import x... | true |
0ecea20bd476e307a6b2d327d68c77ae7e609c05 | Java | acsanjeevi/Project | /POC/src/main/java/PageObjects/CompareProductsPageObjects.java | UTF-8 | 797 | 1.78125 | 2 | [] | no_license | package PageObjects;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class CompareProductsPageObjects
{
@FindBy(xpath = "//li[@class='level0 nav-1 first']")
public static WebElement MobileLink;
@FindBy(xpath = "/html[1]/body[1]/div[1]/div[1]/div[2]/div[1]/div[... | true |
5f2ee001b57ae580b6b775fc44a6db41392c5bdc | Java | 794963/APCS_Ajsigel | /semester one/1119/GridTester.java | UTF-8 | 5,148 | 3.296875 | 3 | [] | no_license |
/**
* Write a description of class GridTester here.
*
* @author (Jaan Sigel
* @version (1115
*/
import java.util.*;
public class GridTester
{
// instance variables - replace the example below with your own
int[][] mat = new int[10][10];
/**
* Constructor for objects of class GridTester
*/
... | true |
9b81024265f6762949a6dc7bd22eea4db0331cf0 | Java | ParanoidUser/codewars-handbook | /kata/7-kyu/cartesian-neighbors/main/Kata.java | UTF-8 | 266 | 2.328125 | 2 | [
"MIT"
] | permissive | interface Kata {
static int[][] cartesianNeighbor(int x, int y) {
return new int[][] {
{x - 1, y - 1},
{x - 1, y},
{x - 1, y + 1},
{x, y - 1},
{x, y + 1},
{x + 1, y - 1},
{x + 1, y},
{x + 1, y + 1},
};
}
}
| true |
700138282b806b57f38bd0bb230adb029dca6293 | Java | GIVENGEL/GivEngel-Project | /Spring_Board/GivEngel/src/main/java/com/project/givengel/dao/MypageDAO.java | UTF-8 | 1,047 | 1.578125 | 2 | [] | no_license | package com.project.givengel.dao;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.project.givengel.vo.CartVO;
import com.project.givengel.vo.GoodVO;
import com.project.givengel.vo.UserVO;
import com.project.givengel.vo.User_cashlogVO;
public interface MypageDAO {
public int userGr... | true |
34191a64363d24cf39cd638a83540a7f769edb94 | Java | juanmendez/android_dev | /10.services/00.magazineAppWithIntentServices/app/src/main/java/info/juanmendez/android/intentservice/service/download/MagazineDispatcher.java | UTF-8 | 646 | 2.171875 | 2 | [] | no_license | package info.juanmendez.android.intentservice.service.download;
import com.squareup.otto.Bus;
import com.squareup.otto.Produce;
import javax.inject.Inject;
import info.juanmendez.android.intentservice.model.pojo.Magazine;
/**
* Created by Juan on 8/3/2015.
*/
public class MagazineDispatcher
{
Bus bus;
pr... | true |
e3e90100e1d349bcaba03390d19c444842b15381 | Java | shashank17hn/Projects | /Java programs/Hibernate_pro/src/firstLesson/dto/UserDetails.java | UTF-8 | 1,397 | 2.28125 | 2 | [] | no_license | package firstLesson.dto;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationT... | true |
097d54968c97f72e00e054defbc26d765bff7c11 | Java | marcodigia/LM48 | /src/main/java/it/polimi/ingsw/Server/Game/GameRules/CountEffects/CountRow.java | UTF-8 | 3,538 | 3.078125 | 3 | [] | no_license | package it.polimi.ingsw.Server.Game.GameRules.CountEffects;
import it.polimi.ingsw.Server.Game.Cards.WindowPatternCard;
import it.polimi.ingsw.Server.Game.Components.Dice;
import it.polimi.ingsw.Server.Game.GameRules.Restriction;
import java.io.Serializable;
import java.util.ArrayList;
public class CountRow implemen... | true |
058c8166cf68b0c976b562245835a49d487e64fa | Java | adadlani1/CarDealer | /coursework_cardealer_Anmol_Dadlani/cardealer/src/com/car/form/AddACar.java | UTF-8 | 8,459 | 2.90625 | 3 | [] | no_license | package com.car.form;
import com.car.model.Car;
import com.car.utils.Constants;
import com.car.utils.DatabaseOperations;
import javax.swing.*;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
//ShowGUI is an int... | true |
6c6e775e5faa1c191d88598e0164e2ec4448eae4 | Java | A1myra/JavaProgramming2020_B21 | /src/day50_Polymorphism/PolymorphismIntro.java | UTF-8 | 893 | 2.984375 | 3 | [] | no_license | package day50_Polymorphism;
import day50_Polymorphism.phoneTask.Iphone;
import day50_Polymorphism.phoneTask.Samsung;
import day50_Polymorphism.phoneTask.phone;
import java.util.ArrayList;
import java.util.List;
public class PolymorphismIntro {
public static void main(String[] args) {
// Iphone iphone1=... | true |
1e415b5e08ff3885196fa4d5575d31fba9ffe418 | Java | nooshhub/xa-sample | /tracking-svc/src/main/java/cn/xa/TrackingMapper.java | UTF-8 | 368 | 1.828125 | 2 | [] | no_license | package cn.xa;
import cn.xa.tracking.TrackingDto;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
@Mapper(componentModel = "spring", uses = {}, unmappedTargetPolicy = ReportingPolicy.IGNORE)
public abstract class TrackingMapper {
public abstract TrackingDto toDto(Tracking entity);
public... | true |
35eaeaeab2144ed91a96cf95b7b16f4b18c513e9 | Java | venkateshs2006/quesans | /src/main/java/com/spring/quesans/controller/QuesAnsController.java | UTF-8 | 4,332 | 2.3125 | 2 | [] | no_license | package com.spring.quesans.controller;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Control... | true |
5ef11cdbaaf7554e2424266cf92c6a42aee688d7 | Java | lauchblatt/NutritionDevelopment | /DefaultConsumer/src/de/ur/infwiss/nutrition/defaultconsumer/DefaultConsumerResource.java | UTF-8 | 7,333 | 2.046875 | 2 | [] | no_license | package de.ur.infwiss.nutrition.defaultconsumer;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.FileOutputStream;
import java.util.Iterator;
import java.util.Map;
import javax.servlet.ServletContext;
import javax.ws.rs.Consumes;
import javax.ws.rs.FormParam;
import javax.w... | true |
e963f07d3963c11bf41d941a2544a26c4061a023 | Java | trieu1999/shopphone | /mater/main/java/com/softech/shopphone/controller/singleproduct/SingleProductController.java | UTF-8 | 1,012 | 1.9375 | 2 | [] | no_license | package com.softech.shopphone.controller.singleproduct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.CookieValue;
import org.springframework.web.bind.annotation.GetMa... | true |
88a0f80ff44f2d4353f5801818f114f47d6e10fd | Java | leafarcorbau/spring-mapstruc | /src/test/java/com/dh/sp/map/struc/util/TestUtil.java | UTF-8 | 405 | 2.1875 | 2 | [] | no_license | package com.dh.sp.map.struc.util;
import java.util.UUID;
import static java.lang.String.format;
public class TestUtil {
public static String genField(final String field, final UUID seed){
return format("%s-%s",field, seed.toString().substring(seed.toString().length() - 4));
}
public static Stri... | true |
9756a4a0d851ea22c0f81e1fa323fc42289842a4 | Java | iu28igvc9o0/cmdb_aspire | /mirror-cmdb/cmdb-service/src/main/java/com/aspire/ums/cmdb/v2/assessment/web/CmdbDeviceProduceController.java | UTF-8 | 2,006 | 2.09375 | 2 | [] | no_license | package com.aspire.ums.cmdb.v2.assessment.web;
import com.aspire.ums.cmdb.assessment.IDeviceProduceAPI;
import com.aspire.ums.cmdb.assessment.payload.CmdbDeviceProduce;
import com.aspire.ums.cmdb.util.UUIDUtil;
import com.aspire.ums.cmdb.v2.assessment.service.ICmdbDeviceProduceService;
import lombok.extern.slf4j.Slf4j... | true |
564beb8beb8f1319394adb84a2612e92bf4d8dfc | Java | cg8530/WorkSplace | /04_Code/AdtvPlayer/src/novel/supertv/dvb/adapter/ProgramReservesListAdapter.java | UTF-8 | 2,753 | 2.265625 | 2 | [] | no_license |
package novel.supertv.dvb.adapter;
import novel.supertv.dvb.R;
import novel.supertv.dvb.provider.Channel;
import novel.supertv.dvb.utils.DateFormatUtil;
import android.database.Cursor;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
impor... | true |
5e8d11b76e1d9dc6b6aa96a9a72f5c6731db8c04 | Java | ecarrillo88/Programming_Challenges | /src/tema07/CarmichaelNumbers.java | UTF-8 | 1,668 | 3.765625 | 4 | [] | no_license | /*
* PC/UVA IDs: 110702/10006
* PC: Accepted / UVA: Accepted
* Run Time: 1,969
*/
package tema07;
import java.util.Scanner;
public class CarmichaelNumbers {
private static final int MAX = 65000;
private static boolean[] numerosPrimos = new boolean[MAX + 1];
/*
* La criba de eratostenes nos permite obtener ... | true |
23f84fa2172f138bf084dfa067d6c4e6fe5bfa45 | Java | DDihanov/Java-Advanced-2017 | /Java_OOP_Advanced/src/examPrep2_waste_disposal/src/app/waste_disposal/commands/ChangeManagementRequirementCommand.java | UTF-8 | 812 | 2.5625 | 3 | [] | no_license | package app.waste_disposal.commands;
import app.waste_disposal.annotations.Inject;
import app.waste_disposal.models.data.RecyclingStation;
import java.lang.reflect.InvocationTargetException;
public class ChangeManagementRequirementCommand implements Executable {
@Inject
private RecyclingStation recy... | true |
6c745269678bbc9888e3ed8047024ac47dffae45 | Java | neetavarkala/miui_framework_clover | /android/os/Parcel.java | UTF-8 | 74,950 | 1.6875 | 2 | [] | no_license | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
package android.os;
import android.text.TextUtils;
import android.util.*;
import dalvik.system.VMRuntime;
import java.io.*;
import java.lang.reflect.Array;
i... | true |
99b1673844b6aebb40d9de3ecc803e9f93d2832c | Java | dmorcellet/delta-genea | /src/main/java/delta/genea/web/pages/CousinsPageData.java | UTF-8 | 1,142 | 2.703125 | 3 | [] | no_license | package delta.genea.web.pages;
import java.util.List;
import delta.genea.data.Person;
import delta.genea.data.sources.GeneaDataSource;
/**
* Gathers data needed for the 'cousins' page.
* @author DAM
*/
public class CousinsPageData
{
private Long _key;
private Person _main;
private List<Person> _cousins;
... | true |
2de9e9044a2683b30e66904f2c966037e63bd531 | Java | Mac-Kett/Clases | /Agregacion y Composicion/src/banco/CuentaCorriente.java | UTF-8 | 472 | 2.34375 | 2 | [] | no_license | package banco;
public class CuentaCorriente extends ProductoBancario{
private double limDescubierto;
public CuentaCorriente(String id, String cliente, double saldo, double tasaInteres, double limDescubierto) {
super(id, cliente, saldo, tasaInteres);
setLimDescubierto(limDescubierto);
}
public double get... | true |
4973b04a1a2c137fac68b607f0a811dfd1baa205 | Java | arjun8325/DemoTesting | /Arjun/src/content/List_Topics.java | UTF-8 | 495 | 1.882813 | 2 | [] | no_license | package content;
public class List_Topics {
}
/*
***
****
******
Abstraction -done
Interface-done
Inheritence:Single,Multiple,Multilevel,hierarichal,Hybrid-done
Encapsulation-done
Constructor-done
Modifier-done
polymorphism-done
final keyword-done
static keyword : variable , method -done
super keywo... | true |
1fa81acd394320f0ce1d974fa707ea57dbe75c1e | Java | yjj1314520789/yjj | /jt-common/src/main/java/com/jt/config/RedisConfig.java | UTF-8 | 2,037 | 2.25 | 2 | [] | no_license | package com.jt.config;
import java.util.HashSet;
import java.util.Set;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
impo... | true |
bc3b21eb9e6a5b117603c780a406cd0030f08ef7 | Java | SevDan/jmix-docs | /content/modules/bpm/examples/ex1/src/main/java/bpm/ex1/service/OrderStatus.java | UTF-8 | 137 | 1.8125 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-4.0"
] | permissive | package bpm.ex1.service;
import bpm.ex1.entity.Order;
public interface OrderStatus {
void setStatus(Order order, String status);
}
| true |
6f818c4ae6cb083a44a9374ca4dace79658c0e19 | Java | Navin-Gupta/Forum-app-microservices | /post-micro/src/main/java/com/iiht/forum/postmicro/controller/CommentController.java | UTF-8 | 1,831 | 2.203125 | 2 | [] | no_license | package com.iiht.forum.postmicro.controller;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVari... | true |
1eb598f44759b1705542926c5cb9da84553f0f0b | Java | dumbledorebryant/leetcode | /leetcode/src/pass/lc365.java | UTF-8 | 2,245 | 3.28125 | 3 | [] | no_license | package pass;
import java.util.Deque;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Set;
public class lc365 {
public boolean canMeasureWater(int jug1Capacity, int jug2Capacity, int targetCapacity) {
if (jug1Capacity + jug2Capacity < targetCapacity) return false;
... | true |
7aefdce238b578f3a00789d953aacdf1793a5173 | Java | jcst-group/java-SCM | /src/main/java/com/nongxin/terminal/controller/backstage/envmonitor/VideoEquipmentController.java | UTF-8 | 3,939 | 2.25 | 2 | [] | no_license | package com.nongxin.terminal.controller.backstage.envmonitor;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.nongxin.terminal.entity.envmonitor.VideoEquipment;
import com.nongxin.terminal.service.envmonitor.VideoEquipmentService;
import com.nongxin.terminal.vo.Result;
import... | true |
bbb70174b605d21b3baba09c580c2157c5477c36 | Java | jeanluc-insset/ete-3 | /ete/gel/gel-impl/src/test/java/fr/insset/jeanluc/ete/gel/impl/ModelTest.java | UTF-8 | 2,033 | 2.046875 | 2 | [] | no_license |
package fr.insset.jeanluc.ete.gel.impl;
import fr.insset.jeanluc.ete.meta.model.core.impl.Factories;
import fr.insset.jeanluc.ete.meta.model.emof.MofClass;
import fr.insset.jeanluc.ete.meta.model.emof.MofProperty;
import fr.insset.jeanluc.ete.meta.model.mofpackage.EteModel;
import fr.insset.jeanluc.ete.meta.model.mof... | true |
cecfc4cd18dcb63696291a9ff9f655cdfbeacf89 | Java | elonavsoftware/Java-HW3 | /src/animals/AnimalThatChews.java | UTF-8 | 505 | 2.984375 | 3 | [] | no_license | package animals;
import graphics.ZooPanel;
import mobility.Point;
/**
* an abstracted class that extends animal class
* @author Elon Avisror
*
*/
public abstract class AnimalThatChews extends Animal
{
/**
* constructor AnimalThatChews
* @param name
* @param location
*/
public AnimalTh... | true |
d45f585a3f541e960018dbf487bcb203b0d8c9a2 | Java | LoomDev/Loom | /server/src/main/java/org/loomdev/loom/entity/decoration/AbstractHangingEntityImpl.java | UTF-8 | 1,156 | 2.421875 | 2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package org.loomdev.loom.entity.decoration;
import org.jetbrains.annotations.NotNull;
import org.loomdev.api.entity.decoration.HangingEntity;
import org.loomdev.api.util.Direction;
import org.loomdev.loom.entity.EntityImpl;
public abstract class AbstractHangingEntityImpl extends EntityImpl implements HangingEntity {
... | true |
c0e4561b32c33a514792d85e273b2c2b05b256bc | Java | sirish936/sirish_work | /basicJava/src/main/java/com/sirish/hpe/ListCheck.java | UTF-8 | 383 | 2.53125 | 3 | [] | no_license | package com.sirish.hpe;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class ListCheck {
public static void main(String[] args) {
List list = null;
// list.add(null);
// list.add(null);
// list.add(null);
// list.add(null);
//System.out.println(list.size());
for (Object obje... | true |
3751b21bc4f8e22e36b15a78af3207b191a85ace | Java | changbaolong1989/HANTTEN-WEB | /src/main/java/com/hd/manager/controller/HTTaskExecuteController.java | UTF-8 | 23,034 | 1.8125 | 2 | [] | no_license | package com.hd.manager.controller;
import com.hd.base.controller.BaseController;
import com.hd.base.exception.LogicException;
import com.hd.base.exception.SystemException;
import com.hd.common.dao.TbTaskEntityMapper;
import com.hd.common.dao.TbTenderTaskEntityMapper;
import com.hd.common.entity.TbTaskEntity;
import co... | true |
8ef5f9f617df4d04e98e0c79ccbb7c359dc745c5 | Java | MinecraftModDevelopmentMods/StellarSky | /src/main/java/stellarium/client/overlay/clientcfg/ConfigElementSimple.java | UTF-8 | 2,021 | 2.375 | 2 | [] | no_license | package stellarium.client.overlay.clientcfg;
import java.util.List;
import com.google.common.collect.Lists;
import net.minecraftforge.common.config.ConfigCategory;
import net.minecraftforge.common.config.Configuration;
import stellarapi.lib.gui.GuiElement;
import stellarapi.lib.gui.IRenderer;
import stellarium.clien... | true |
03bfb642c711c9c0a763ce800ef0432fc92e75c9 | Java | catalinstrimbei/oop-bus-track | /TrackJava/JContabilitate/src/app/model/contabilitate/OperatiuneContabila.java | UTF-8 | 4,158 | 2.46875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.model.contabilitate;
import app.exceptii.ExceptieValidare;
import app.model.validare.Validatable;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
impor... | true |
a6a2ac635c26c844bd48ffcb895c16a528b9787c | Java | bnjmr/aspall | /app/src/main/java/ir/jahanmir/araxx/ActivityBrowser.java | UTF-8 | 4,992 | 1.828125 | 2 | [] | no_license | package ir.jahanmir.araxx;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.http.SslError;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import andr... | true |
0f21d00c6cbb274e846d483a870673ee2d38d92c | Java | zhongxingyu/Seer | /Diff-Raw-Data/2/2_91d7d426d15f702c9c10f37b21cb9978a897a98c/RemoteXLCompilerPropertyPage/2_91d7d426d15f702c9c10f37b21cb9978a897a98c_RemoteXLCompilerPropertyPage_s.java | UTF-8 | 4,584 | 1.664063 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and... | true |
c15f233859afe34f5abc4fd72d9e25960cdfc00f | Java | rensxd/breh | /prog1_week7b_oefentoets/src/oefentoets/Main.java | UTF-8 | 566 | 2.53125 | 3 | [] | no_license | package oefentoets;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
Order newOrder = new Order(10);
newOrder.addCoffee("Cappuccino", 2);
newOrder.addCoffee("Koffie Verkeerd", 3);
newOrder.addCoffee("Espresso", 1);
Cake myCake = new Cake("Moorkop", false);
newO... | true |
ecf3f5f99990e090cd1a1d6195ae5ed914f0a040 | Java | wangjianzzn/learningProject | /day14/untitled/src/iii.java | UTF-8 | 313 | 2.4375 | 2 | [] | no_license | public class iii {
public static void main(String[] args) {
String str = "sssssssssssss";
StringBuffer stringBuffer = new StringBuffer("ssdsf");
StringBuffer xxxxxx = stringBuffer.insert(2, "xxxxxx");
System.out.println(stringBuffer);
System.out.println(str);
}
}
| true |
3f4e97c3bd791bf35ff26af2dbb109a69ef76ca7 | Java | houlinan/mylife | /src/main/java/cn/houlinan/mylife/utils/CheckJSONContainkey.java | UTF-8 | 9,214 | 2.25 | 2 | [] | no_license | package cn.houlinan.mylife.utils;
import net.sf.json.JSONObject;
import java.util.Iterator;
/**
* DESC:验证两个json中不包含的key
* CREATED BY :@hou.linan
* CREATED DATE :2020/4/10
* Time : 15:08
*/
public class CheckJSONContainkey {
public static void main(String[] args) {
//key比较的多的json
String jso... | true |
177ec8d729a19e6705be70fb9e25249b82f13032 | Java | qazwsxedc121/leetcode | /src/BinaryTreeRightSideView.java | UTF-8 | 861 | 3.109375 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.List;
/**
* Created by Administrator on 2015/4/4.
*/
public class BinaryTreeRightSideView {
public List<Integer> rightSideView(TreeNode root) {
List<TreeNode> level = new ArrayList<TreeNode>();
List<Integer> res = new ArrayList<Integer>();
if(r... | true |
dd2d2fcd0d8788f878bd4b743080bd37591c2496 | Java | ixxxxxx/JClojure | /counter/src/main/java/jay/mars/market/App.java | UTF-8 | 555 | 2.15625 | 2 | [] | no_license | package jay.mars.market;
import akka.actor.ActorSystem;
import jaskell.util.CR;
import java.io.IOException;
public class App {
public static void main(String[] args) throws IOException {
String config_namespace = "jay.mars.market.config";
CR.require(config_namespace);
String path = (Strin... | true |
5cf6ba3d7bb4a26f075d8eaa01e3a133fd4ab2da | Java | chengjingjing1992/mmall | /src/main/java/com/mmall/exercise/Parent.java | UTF-8 | 202 | 2.171875 | 2 | [] | no_license | package com.mmall.exercise;
public class Parent {
public void method(){
System.out.println("parent");
}
public static void smethod(){
System.out.println("parent");
}
}
| true |
e3d5b9c6db71e3427c67aeb32e33de0df60ad62a | Java | AminaShadan/PracticeAssignments | /BankInterface.java | UTF-8 | 644 | 2.375 | 2 | [] | no_license | package com.amina.test1;
public class BankInterface {
public static void main(String[] args) {
// TODO Auto-generated method stub
HDFCBank hdfc = new HDFCBank();
hdfc.HDFCBankBalance();
hdfc.Credit();
hdfc.Debit();
hdfc.getROI();
hdfc.HDFCBankBalance();
Citibank citi = new Citiban... | true |
2b6dae5a0f7eacde92d61a860cf9b438365a819c | Java | mmaheu/CLTEST | /Eclipse/com.mobilesorcery.sdk.ui.targetphone/src/com/mobilesorcery/sdk/ui/targetphone/AbstractTargetPhone.java | UTF-8 | 1,627 | 2.140625 | 2 | [] | no_license | /* Copyright (C) 2010 Mobile Sorcery AB
This program is free software; you can redistribute it and/or modify it
under the terms of the Eclipse Public License v1.0.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTAB... | true |
199d213b19d884d77398479e681307e1f25437ce | Java | 18610365956/caadmin | /Admin_ca/src/cn/com/infosec/netcert/caAdmin/ui/template/Add_CustomExtend.java | GB18030 | 12,650 | 1.960938 | 2 | [] | no_license | package cn.com.infosec.netcert.caAdmin.ui.template;
import java.util.ResourceBundle;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.eclipse.jface.window.ApplicationWindow;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.Sel... | true |
07f733c1013c3733597e8a3d10bc2ca03fe1d44e | Java | Eragon29692/CS4520 | /app/src/main/java/edu/neu/madcourse/duyvu/twoplayergame/ChoosePlayer.java | UTF-8 | 9,455 | 2.109375 | 2 | [] | no_license | package edu.neu.madcourse.duyvu.twoplayergame;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.BaseAdapter;
import an... | true |
0b64f5f03c26e59db8b42ad5d7c45e65ed912926 | Java | SouthRobotics/BuildSeason2019 | /src/main/java/org/usfirst/frc/team6969/robot/custom_classes/ForwardKin.java | UTF-8 | 3,373 | 2.78125 | 3 | [] | 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 |
ece9e1ec83a99cbc53c4b54e27a9363601051d51 | Java | janion/Snow | /src/snow/Background.java | UTF-8 | 812 | 3.125 | 3 | [] | no_license | package snow;
import javafx.scene.canvas.Canvas;
/**
* Background covering entire panel behind a snow panel.
*/
public class Background {
/**
* State of a flake after a tick.
*/
public enum FlakeState {
DESTROY, SETTLE
}
protected Canvas canvas;
public Background(Canvas canv... | true |
302af55e3b3d813ee93e7cec22eee44144192d5e | Java | ajaganreddy/repo1 | /microservice/src/main/java/com/fiorano/openesb/microservice/launch/impl/SeparateProcessLauncher.java | UTF-8 | 1,268 | 2.140625 | 2 | [] | no_license | package com.fiorano.openesb.microservice.launch.impl;
import com.fiorano.openesb.application.service.Execution;
import com.fiorano.openesb.microservice.launch.JavaLaunchConfiguration;
import com.fiorano.openesb.microservice.launch.LaunchConfiguration;
import com.fiorano.openesb.microservice.launch.Launcher;
import com... | true |
f22f996fc0bb3232f51ec3c7529ed23eb1b68544 | Java | whatafree/JCoffee | /benchmark/bigclonebenchdata_partial/13878511.java | UTF-8 | 783 | 2.109375 | 2 | [] | no_license |
class c13878511 {
private void loadMe(final ResourceBackedScript e) {
if (!loadedResources.containsKey(this.resourceLocation)) {
final InputStream resourceAsStream = this.getClass().getResourceAsStream(this.resourceLocation);
final StringWriter writer = new StringWriter();
... | true |
aa18c32390b28b00d3387665fdf2c02b0017ffee | Java | codypafford/Compiler | /Parser.java | UTF-8 | 27,932 | 2.78125 | 3 | [] | no_license |
public class Parser {
private int n = 0;
private Tokens token = Main.TokenList.get(n);
Boolean endOfFile = false;
public Parser() {
Boolean bool = parse_Program();
if (bool){
System.out.println("ACCEPT");
}else System.out.println("REJECT");
}
... | true |
d4c2b7600019a289ffedcf1371d55e18fed24b50 | Java | evan-choi/EverMeal | /app/src/main/java/com/devjy/devel/evermeal/Widget/cmtlistview/adapter/CommentViewHolder.java | UTF-8 | 232 | 1.578125 | 2 | [] | no_license | package com.devjy.devel.evermeal.Widget.cmtlistview.adapter;
import android.widget.TextView;
/**
* Created by devel on 2016-07-21.
*/
public class CommentViewHolder
{
public TextView tvText;
public TextView timestamp;
}
| true |
e2be1610630748cb78e963ac49d7049d4c587ecd | Java | itsgiri/allaboutmyself | /wifi password.java | UTF-8 | 1,439 | 2.8125 | 3 | [] | no_license | import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int k;
String s=sc.next();
if(n>100&&n<=999){
... | true |
59e52c0ee427cd1373b0f94c6aab059d1b822cde | Java | UpcraftLP/Ancient-Arts | /src/main/java/mod/upcraftlp/ancientarts/init/AncientBlocks.java | UTF-8 | 1,468 | 2.328125 | 2 | [] | no_license | package mod.upcraftlp.ancientarts.init;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import mod.upcraftlp.ancientarts.blocks.BlockDeadWoodLeaves;
import mod.upcraftlp.ancientarts.blocks.BlockDeadWoodLog;
import mod.upcraftlp.ancientarts.blocks.BlockDeadWo... | true |
54a3dc816b3f2f68f676adf7a3ff816a32b98bbe | Java | JetBrains/MPS | /plugins/mps-java/platform/modules/jetbrains.mps.java.platform/source_gen/jetbrains/mps/java/platform/highlighters/methodcallsfixer/MethodCallsUpdateSession.java | UTF-8 | 7,541 | 1.65625 | 2 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package jetbrains.mps.java.platform.highlighters.methodcallsfixer;
/*Generated by MPS */
import jetbrains.mps.annotations.GeneratedClass;
import java.util.Map;
import org.jetbrains.mps.openapi.model.SNode;
import java.util.HashMap;
import org.jetbrains.mps.openapi.module.SRepository;
import org.jetbrains.annotations.... | true |
42a7d3b19ceb96bf8409372e50be4dfb4c3a7d1c | Java | Raruto/IlMagnifico | /IlMagnifico/main/network/server/game/UpdateStats.java | UTF-8 | 20,214 | 2.1875 | 2 | [] | no_license | package main.network.server.game;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import main.model.Famigliare;
import main.model.Giocatore;
import main.model.Plancia;
import main.model.Punti;
import main.model.Risorsa;
import main.model.Scomunica;
import main.model.Spaz... | true |
a1f3c253e7bef9b4ecce9fc9a0b9c7a72465ea0a | Java | kshefchek/svart | /src/test/java/org/monarchinitiative/svart/impl/DefaultVariantTest.java | UTF-8 | 27,575 | 2.5625 | 3 | [
"BSD-3-Clause"
] | permissive | package org.monarchinitiative.svart.impl;
import org.hamcrest.MatcherAssert;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import org.monarchinitiative.svart.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matche... | true |
b8bb5c04bac5f3a24cf57a4fd92b148194430576 | Java | KerryDong666/senior-shop | /src/main/java/com/kerry/senior/validator/IsMobileValidator.java | UTF-8 | 733 | 2.46875 | 2 | [] | no_license | package com.kerry.senior.validator;
import com.kerry.senior.util.PatternUtil;
import org.apache.commons.lang3.StringUtils;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
/**
* @author Kerry Dong
*/
public class IsMobileValidator implements ConstraintValidator<IsMob... | true |
3dcd84affdd44609a138fff9cd822ff5b179747e | Java | donghaihua/work-api | /src/main/java/com/tenmaker/backupwd/model/PassportAccount.java | UTF-8 | 4,217 | 1.820313 | 2 | [] | no_license | package com.tenmaker.backupwd.model;
// Generated 2014-9-9 12:45:23 by Hibernate Tools 3.4.0.CR1
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
* 用户账户类
*/
public class PassportAccount implements java.io.Serializable {
priva... | true |
45e4beb0625fb40713985eef6b52a921592bc4e2 | Java | slowbirdoflsh/CodeLearnedOfMyself | /JavaWeb/reflect/Person.java | UTF-8 | 289 | 3.578125 | 4 | [] | no_license | public class Person {
private String name = "admin";
private int age = 18;
Person() {}
Person(String name, int age) {
this.name = name;
this.age = age;
}
public void display() {
System.out.println("The Person " + name + " " + age);
}
} | true |
ee8adab132062caaae4916a46b74e2662678c3be | Java | Mongen-Initiative/mongen-core | /src/main/java/org/mongen/core/controller/CollaboratorController.java | UTF-8 | 4,851 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package org.mongen.core.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.mongen.core.models.Collaborator;
import org.mongen.core.models.CollaboratorType;
import org.mongen.core.models.payloads.CollaboratorPayload;
import org.mongen.core.models.payloads.MainContactPayload;
... | true |
fd1e0763e342bb0a0ec9395ebc6dba080242dea5 | Java | JetBrains/MPS | /workbench/mps-platform/source/jetbrains/mps/workbench/action/CachingDataContext.java | UTF-8 | 3,947 | 2.203125 | 2 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright 2000-2022 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package jetbrains.mps.workbench.action;
import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.actionSystem.DataKey;
import com.intellij.openapi... | true |
7291d396e26b8f214cbb38fce2de2f7c94fe5ce6 | Java | iuvei/RedPacket-1 | /CommonSDK/src/main/java/me/jessyan/armscomponent/commonsdk/http/service/CommonService.java | UTF-8 | 1,523 | 1.96875 | 2 | [] | no_license | /*
* Copyright 2017 JessYan
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | true |
301b02585c521dfb33db8fb519490a062e0c898a | Java | brmaschio/produtos-api-spring-example | /src/main/java/com/example/produtosapi/model/Mercadoria.java | UTF-8 | 2,973 | 2.609375 | 3 | [] | no_license | package com.example.produtosapi.model;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.... | true |
3fc0af5e48cc3c58f222f6359a55fa44658e89bd | Java | fabiosantambrogio84/contafood | /src/main/java/com/contafood/util/Constants.java | UTF-8 | 3,242 | 1.679688 | 2 | [] | no_license | package com.contafood.util;
import java.util.Arrays;
import java.util.List;
public interface Constants {
String DEFAULT_ENCODING = "UTF-8";
String DEFAULT_FORNITORE = "URBANI GIUSEPPE";
String DEFAULT_FORNITORE_INITIALS = "UR";
String DEFAULT_EMAIL = "info@urbanialimentari.com";
String ZONE_ID_... | true |
4ec65cd16fbb2f544e5e4a902442ecaa2e107eaf | Java | ninamarkovic123/osanajnovije | /prodavnica/src/main/java/api/prodavnica/service/ProdavacService.java | UTF-8 | 710 | 2.140625 | 2 | [] | no_license | package api.prodavnica.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import api.prodavnica.model.Prodavac;
import api.prodavnica.repository.ProdavacRepository;
@Service
public class ProdavacService implements ProdavacSer... | true |