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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
062ecd919170cf2815a94a62f6710183dad1e4df | Java | Y292450104/MyFramework | /src/com/my/test/service/UserService.java | UTF-8 | 233 | 2.015625 | 2 | [] | no_license | package com.my.test.service;
import java.util.Date;
import com.my.framework.annotation.Service;
@Service
public class UserService {
public String add() {
System.out.println(new Date() + "UserService.add()");
return "";
}
}
| true |
4f9c21de4c80955081d0beb6ac6a5a5f982189dd | Java | priyankas25/JAVA-SEP | /3-assignment-java/27-ques/GS.java | UTF-8 | 397 | 3.484375 | 3 | [] | no_license | import java.util.*;
class Arrnew{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int ar[] = new int[]{2,5,6,7,6};
int max=ar[0];
int min=ar[0];
for(int a=1;a<ar.length;a++){
if(max<ar[a]){
max = ar[a];
}
if(min>ar[a]){
min = ar[a];
}
}
... | true |
b1f6d86dffb5f07e7dc3c58f1bf1f3029c7339b6 | Java | LiXiang0723/LeetCode | /src/implementations/Divide.java | UTF-8 | 1,213 | 3.109375 | 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 implementations;
/**
*
* @author l7xiang
*/
public class Divide {
public int divide(int dividend, int divisor) {
... | true |
4eae8f6f588138430a39f783f7e38945306f6ece | Java | Antonymegar/loginRegister-master | /src/main/java/com/example/loginregister/model/DepartmentCategory.java | UTF-8 | 109 | 1.851563 | 2 | [] | no_license | package com.example.loginregister.model;
public enum DepartmentCategory {
IT, MARKETING, FINANCE, HR;
}
| true |
e042d99ce5a00a1e7718dc41c0d6ec184c1fc3ca | Java | lee-sunmin/spring-service | /src/main/java/springservice/domain/Regions.java | UTF-8 | 462 | 2.15625 | 2 | [] | no_license | package springservice.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import lombok.*;
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@Getter
@Entity
public class Regions {
@Id
@GeneratedValue
private Long code;
... | true |
419b4e8d4ccbb3a726d93dbcff1fe4d2266d5c24 | Java | bybywudi/sshWork | /src/action/SendSetMgrAppAction.java | UTF-8 | 2,225 | 2.140625 | 2 | [] | no_license | package action;
import java.sql.Date;
import java.text.SimpleDateFormat;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import com.opensymphony.xwork2.*;
import org.apache.struts2.interceptor.*;
import except... | true |
52dfefcd5cfccfcf8edc8dc252e48ea1441417de | Java | chenkuan233/SpringBootDemo | /src/main/java/com/springBoot/Application.java | UTF-8 | 1,789 | 2.1875 | 2 | [] | no_license | package com.springBoot;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotatio... | true |
46dc2952382889ae2b4f43602ae4cc238fb40f4a | Java | Pathf/ProjetEniEnchere | /src/org/encheres/ihm/ModifierArticle.java | UTF-8 | 6,715 | 2.109375 | 2 | [] | no_license | package org.encheres.ihm;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Date;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfi... | true |
7c4c596df74bff2c5a5fdd4739eefd7ee1d1fc2c | Java | ashhwini/food-service | /src/main/java/com/stackroute/foodservice/configuration/CommandLineRunnerImpl.java | UTF-8 | 1,372 | 2.640625 | 3 | [] | no_license | package com.stackroute.foodservice.configuration;
/*
Created seed data to pre-fill the database with restaurant information,
whenever the application starts by using CommandLineRunner Approach
*/
import com.stackroute.foodservice.domain.Customer;
import com.stackroute.foodservice.repository.CustomerRepository;
impo... | true |
ee2059432e97f6053bf63098f8ee9707ae43adee | Java | musiJas/jas-job | /job-executor/src/main/java/com/sunbox/job/jobexecutor/dao/JobMappingDao.java | UTF-8 | 378 | 1.78125 | 2 | [] | no_license | package com.sunbox.job.jobexecutor.dao;
import com.sunbox.job.jobexecutor.model.JobMapping;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface JobMappingDao {
JobMapping load(@Param("identification") String identification);
JobMapping loadByP... | true |
83d3f09ad6f264b88c81aedffe46cbc9db2651ed | Java | LogeshLohit/pubhub100_All_Dives | /PubHub100/dive2/UserManager.java | UTF-8 | 1,095 | 3.09375 | 3 | [] | no_license | package reva2prg;
import java.util.Scanner;
public class UserManager {
boolean login(User user)
{
String temp1=user.getUsername();
String temp2=user.getPassword();
if(temp1.equals("admin") && (temp2.equals("admin")))
{
System.out.println("it's true ..you logged in successfully");
return tr... | true |
3fd968135071b936dced89d73c3eb1cd11131c4d | Java | 125964590/java8 | /src/stream/api/StreamParalel.java | UTF-8 | 757 | 3.140625 | 3 | [] | no_license | package stream.api;
import java.util.concurrent.ForkJoinPool;
import java.util.stream.Stream;
/**
* @Author jbzm
* @Date Create on 2018/3/12 1:37
*/
public class StreamParalel {
public static void main(String[] args) {
System.setProperty("java.util.concurrent.ForkJoinPool.common.parallelism","5"); //设... | true |
6a82c4d7d9c9697d06cc42381b0b8d1aff50fa3d | Java | MirrenTools/screw-driver | /src/main/java/org/mirrentools/sd/models/db/update/SdBasicPrimaryKeyContent.java | UTF-8 | 1,055 | 2.734375 | 3 | [
"MIT"
] | permissive | package org.mirrentools.sd.models.db.update;
/**
* 主键属性的基本实现版实现,实际数据库如果操作相同可以继承该类,不同可以选择重写
*
* @author <a href="http://mirrentools.org">Mirren</a>
*
*/
public class SdBasicPrimaryKeyContent extends SdAbstractPrimaryKeyContent {
@Override
public String createSQL() {
StringBuilder sb = new StringB... | true |
83a6d0a1eae67b78620949ca1f6fdc9f6559988b | Java | ilee9999/testinghub1026 | /src/main/java/com/hkesports/matchticker/service/batch/impl/BatchForImageServiceImpl.java | UTF-8 | 875 | 1.96875 | 2 | [] | no_license | package com.hkesports.matchticker.service.batch.impl;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.hkesports.matchticker.service.ImageService;
import com.hkesports.matchticker.service.batch.BatchForImageService;
/**
* Batch Job Service For IMAGE
*/
@Service("batchFor... | true |
df64eac3cf548c62be3cded31bc253caae46ff55 | Java | tengzhang94/OnlineOrder_JavaEE | /onlineBelly-ejb/src/java/belly/ejb/PageRenderInterceptor.java | UTF-8 | 830 | 2.453125 | 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 belly.ejb;
import javax.interceptor.AroundInvoke;
import javax.interceptor.InvocationContext;
/**
*
* @author t... | true |
da523fdd4f234f8cbd430eb284a4a3a86fd0aa5b | Java | Cleanspeech317/RecommendationMovie | /src/main/java/com/movie/os/interceptor/CommonInterceptor.java | UTF-8 | 3,128 | 2.40625 | 2 | [] | no_license | package com.movie.os.interceptor;
//import com.model.StaffInformationEntity;
import com.movie.os.model.UserInfoEntity;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.servlet.ModelAndView;
import jav... | true |
0fbaff0606c72eb04e95b0649d0497e5570b99c8 | Java | vycius/udacity-interview-dry-run | /src/com/vycius/interview/third/StringCompressor.java | UTF-8 | 3,637 | 3.21875 | 3 | [
"Apache-2.0"
] | permissive | package com.vycius.interview.third;
import com.pholser.junit.quickcheck.Property;
import com.pholser.junit.quickcheck.runner.JUnitQuickcheck;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.Set;
import java.... | true |
6620235390520715753c4e45f2eabdda8e29b398 | Java | Niruksorp/highly-intelligent-galler | /src/main/java/com/hig/highlyintelligentgaller/service/ShortProjectFormService.java | UTF-8 | 323 | 1.859375 | 2 | [] | no_license | package com.hig.highlyintelligentgaller.service;
import com.hig.highlyintelligentgaller.dto.ShortFormProjectDTO;
import com.hig.highlyintelligentgaller.entity.Project;
import java.util.List;
public interface ShortProjectFormService {
List<ShortFormProjectDTO> converterProjectListToDTO(List<Project> projectList);... | true |
bff30b1d5f81eb1e22b53b3a70e590092e79b03b | Java | andyzhaozhao/securityclass | /securityday5/src/main/java/cn/com/taiji/security/securityday5/extend/CustomCaptchaWebAuthenticationDetails.java | UTF-8 | 1,480 | 2.5625 | 3 | [] | no_license | package cn.com.taiji.security.securityday5.extend;
import cn.com.taiji.security.securityday5.config.WebSecurityConfig;
import org.springframework.security.web.authentication.WebAuthenticationDetails;
import org.springframework.util.StringUtils;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.H... | true |
d7c26f9d7a1b5889e7cead277292a3afdfb9df36 | Java | codehub-learn/design_patterns | /src/gr/codehub/designpatterns/improved/app/MainNewAndImproved.java | UTF-8 | 1,630 | 2.8125 | 3 | [] | no_license | package gr.codehub.designpatterns.improved.app;
import gr.codehub.designpatterns.improved.common.Constants;
import gr.codehub.designpatterns.improved.io.FileDataReader;
import gr.codehub.designpatterns.improved.service.DataChecker;
import gr.codehub.designpatterns.improved.service.DataConverter;
import gr.codehub.desi... | true |
5b3e9327378ccaff8088a6dfc668b2d17e8bb837 | Java | bingli-borland/pkidemo | /src/main/java/security/x509/extension/logotype/LogotypeAudio.java | UTF-8 | 2,502 | 2 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2006, Axel Nennker - http://axel.nennker.de/ All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice... | true |
8e604dd1c8ce6f403af1fc6bcae0671345385d20 | Java | catyguan/sad | /java.sdk/usecase/src/main/java/bma/servicecall/usecase/service/SMAdd.java | UTF-8 | 568 | 2.25 | 2 | [] | no_license | package bma.servicecall.usecase.service;
import bma.servicecall.core.Answer;
import bma.servicecall.core.Context;
import bma.servicecall.core.Request;
import bma.servicecall.core.ServicePeer;
public class SMAdd extends BaseSM {
@Override
public void execute(ServicePeer peer, Request req, Context ctx) {
dumpSM(re... | true |
1d153fb29fb407db7c6612d629670225ab46c590 | Java | jyce3d/snt | /main/java/be/sdlg/snt/dao/ItemRefDao.java | UTF-8 | 217 | 1.890625 | 2 | [] | no_license | package be.sdlg.snt.dao;
import be.sdlg.snt.model.ItemRef;
public class ItemRefDao extends GenericDaoImpl<ItemRef, Long> {
public String hqlFindAll() {
return "from be.sdlg.snt.model.ItemRef ir";
}
}
| true |
93fb1d579fd36e3760aef64e31782e6b02d0eca7 | Java | thirupathireddygopal/CoreJava | /CoreJava/src/day9/nine/ThreadsInJava2.java | UTF-8 | 413 | 3.546875 | 4 | [] | no_license | package day9.nine;
class Thread2J1 implements Runnable{
public void run() {
for(int i = 1 ; i <= 5 ; i++) {
System.out.println("threadJ2 i values : " + i);
}
}
}
public class ThreadsInJava2 {
public static void main(String[] args) {
//creating 1st thread using java.lang.Runnable Interface
... | true |
2bbeed756f4aba905223ddfd7ba67ed75b11fde7 | Java | HXINGHAI/catalog-tree | /catalog-tree/src/main/java/com/hxh/sinochem/catalogtree/CatalogTreeApplication.java | UTF-8 | 343 | 1.601563 | 2 | [] | no_license | package com.hxh.sinochem.catalogtree;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class CatalogTreeApplication {
public static void main(String[] args) {
SpringApplication.run(CatalogTreeApplication.... | true |
0f4c8a2f3b0fd9b0033bf2809da9c673c2aec6b3 | Java | yusam07/weixin | /gecweixin/src/main/java/com/gec/gecweixin/DemoApplication.java | UTF-8 | 1,938 | 2.703125 | 3 | [] | no_license | package com.gec.gecweixin;
import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.util.Log;
import com.gec.gecweixin.common.GecXmppConnection;
import com.gec.gecweixin.utils.OkHttpManager;
import java.util.LinkedList;
import java.util.List;
/**
* Created by chen... | true |
4cda7bd8c342b6eb26dcffab57a476024f75cb0b | Java | daniel-kranowski/dropwizard-0.9-01-widget-service | /src/main/java/com/example/widget/client/WidgetClient.java | UTF-8 | 4,663 | 2.3125 | 2 | [
"MIT"
] | permissive | package com.example.widget.client;
import com.codahale.metrics.health.HealthCheck;
import com.codahale.metrics.servlets.AdminServlet;
import com.example.widget.health.WidgetHealthCheck;
import com.example.widget.model.api.Widget;
import com.example.widget.resource.WidgetResourceApi;
import org.glassfish.jersey.client.... | true |
7dc74dc9972134bcff8120805e02c6c09184f3a1 | Java | odiszapc/stem | /components/shared/src/main/java/org/stem/api/request/JoinRequest.java | UTF-8 | 1,443 | 1.8125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 Alexey Plotnik
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | true |
9968de51f441b966aca4bc7ee36e1a06f85545da | Java | redmundas/tweets | /src/main/java/co/alttab/tweets/Serializer.java | UTF-8 | 137 | 1.851563 | 2 | [] | no_license | package co.alttab.tweets;
/**
* Created by edmundas on 16.5.31.
*/
public interface Serializer<T> {
String serialize(T source);
}
| true |
6fe9b1cc32523db488054410aba1677c245e6b5c | Java | UkaszK95/MobilePhoneOntology | /mobile-phone-ontology/Scraper/src/Classes/XMLHelper.java | UTF-8 | 2,095 | 2.875 | 3 | [] | no_license | package Classes;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.TreeMap;
import org.jdom.Attribute;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.input.SAXBuilder;
import org.jdom.output.Format;
import... | true |
6176a118a711cb6e15b0b7ef28aa7ce208db9730 | Java | bhupinder414/Data-Structures | /InsertNode.java | UTF-8 | 1,728 | 3.671875 | 4 | [] | no_license | package git;
import java.util.Scanner;
public class InsertNode
{
Node head;
static int count=0;
static class Node
{
int data;
Node next;
Node(int d)
{
data=d;
next=null;
}
}
public static InsertNode insert(InsertNode l,int data)
{
Node n... | true |
9d51501d48947192baef81dcec195b5ade9eda41 | Java | sjaqjwor/Alogo-study | /StringWatch.java | UTF-8 | 488 | 3.234375 | 3 | [] | no_license | public class StringWatch {
public static void main(String[] args) {
String str[] = new String[]{"a","b","c","d","e","f","g"};
StringBuilder sb = new StringBuilder();
sb.append("{");
for(int a=0;a<str.length;a++){
sb.append("\"[arr").append(",").append(str[a]).append("]\"... | true |
9a7aecb570b857a3db1318bb71bfc5562b3ab9b2 | Java | adnenhamdouni/mdev-prisonapp | /app/src/main/java/tn/mdevtunisia/sample/prisonapp/utils/PrisonerContent.java | UTF-8 | 1,000 | 2.421875 | 2 | [] | no_license | package tn.mdevtunisia.sample.prisonapp.utils;
import java.util.ArrayList;
import tn.mdevtunisia.sample.prisonapp.R;
import tn.mdevtunisia.sample.prisonapp.models.Prisoner;
/**
* Created by adnenhamdouni on 23/03/2016.
*/
public class PrisonerContent {
public static String[] names = {"Pablo Escobar" , "Alpho... | true |
3833802da20de9c46ddc3ab875d771697e9da206 | Java | kshilov/restapi | /src/main/java/com/heymoose/domain/site/Site.java | UTF-8 | 5,518 | 2.03125 | 2 | [] | no_license | package com.heymoose.domain.site;
import com.google.common.base.Objects;
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
import com.heymoose.domain.base.AdminState;
import com.heymoose.domain.b... | true |
ddb3ffdf5f903944747f5a124fc21f7be23cab77 | Java | sewerina/MoscowInfo | /app/src/main/java/com/example/elena/moscowinfo/database/AppDatabase.java | UTF-8 | 374 | 2.15625 | 2 | [] | no_license | package com.example.elena.moscowinfo.database;
import androidx.room.Database;
import androidx.room.RoomDatabase;
@Database(entities = {CategoryEntity.class, FavouriteEntity.class}, version = 1, exportSchema = false)
public abstract class AppDatabase extends RoomDatabase {
public abstract CategoryDao categoryDao()... | true |
ffdf412d3492395902992e2c1adef6f2de4c5955 | Java | Hodanchik/UglyCode | /tasks/module2/src/main/java/model/EntireTextComposite.java | UTF-8 | 1,551 | 2.78125 | 3 | [] | no_license | package model;
import repository.TextRepositoryImpl;
import service.EntireTextService;
import java.util.LinkedList;
import java.util.List;
public class EntireTextComposite implements TextComposite {
List<TextLeaf> text = new LinkedList<>();
private long currentId;
private TextRepositoryImpl textRepositor... | true |
576d217d22140aebcdb2572f70bb2bc7925a0e83 | Java | Moon-College/May_PublicWork | /Tz_罗健波/第六次作业(5-28Listview优化与Dialog)/Knight_Dialog/src/com/knight/dialog/ref/RefInitView.java | UTF-8 | 3,996 | 2.5 | 2 | [] | no_license | package com.knight.dialog.ref;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullP... | true |
36dd84cc4a662f0ac945f862b19bd5e31783b164 | Java | rubemkalebe/ResidenciaBar | /src/model/Pessoa.java | UTF-8 | 1,240 | 2.6875 | 3 | [] | no_license | package model;
import javax.persistence.MappedSuperclass;
@MappedSuperclass
public class Pessoa extends AbstractModelJPA {
private String nome;
private String cpf;
private String endereco;
private String telefone;
public Pessoa() {}
public Pessoa(String nome, String cpf) {
this.nome = nome;
this.cpf... | true |
df495f7411b116ee623dfdc1827626d8e8bafe14 | Java | devBuaa/NBlog | /amc/src/com/amc/service/imp/DispatchServiceImp.java | UTF-8 | 2,652 | 2.078125 | 2 | [] | no_license | package com.amc.service.imp;
import java.io.Serializable;
import java.util.List;
import java.util.Set;
import com.amc.domain.AmcDispatchorder;
import com.amc.domain.AmcDodetail;
import com.amc.domain.AmcProduct;
import com.amc.domain.AmcSalesorder;
import com.amc.domain.AmcSodetail;
import com.amc.domain.A... | true |
e5d91520f822fb5dac25385fd03cca517367e257 | Java | slorinc/databasetester | /src/main/java/com/avinode/databasetester/beans/AjaxBean.java | UTF-8 | 599 | 2.09375 | 2 | [] | no_license | package com.avinode.databasetester.beans;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Component;
/**
* AjaxBean
*
* @author <a href="mailto:lorinc.sonnevend@avinode.com">Lorinc Sonnevend</a>
* <p>... | true |
345c8fc75c0514b9afb9e99b39bc6a7ece3296ff | Java | darkogreksa/eBookRepository | /src/main/java/uns/ac/rs/MailApi/common/CopyRuleHandler.java | UTF-8 | 670 | 2.703125 | 3 | [] | no_license | package uns.ac.rs.MailApi.common;
import uns.ac.rs.MailApi.entity.Folder;
import uns.ac.rs.MailApi.entity.Message;
import java.util.List;
public class CopyRuleHandler implements RuleHandler {
/**
* Copies an e-mail to the passed folder.
*
* @param List containing all messages.
* @param Messa... | true |
07e4aacb94c8080679682d8e01e0c525ae504e45 | Java | dajudge/yabuto | /api/src/main/java/com/dajudge/yabuto/api/features/FeatureOwner.java | UTF-8 | 2,374 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | package com.dajudge.yabuto.api.features;
import java.util.function.BiConsumer;
import java.util.function.Function;
public final class FeatureOwner {
private final BiConsumer<String, ApiFeature> featureSink;
public FeatureOwner(final BiConsumer<String, ApiFeature> featureSink) {
this.featureSink = fea... | true |
6bf8b6b24c185e7cea444087a14e6d3f97c7d310 | Java | rkovacevic/Visit-recorder | /src/test/java/com/rkovacevic/visitrecorder/bean/VisitsBeanTest.java | UTF-8 | 2,030 | 2.4375 | 2 | [
"WTFPL"
] | permissive | package com.rkovacevic.visitrecorder.bean;
import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.assertTrue;
import static org.mockito.Matchers.anyString;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.atLeastOnce;
import static org.mockito.Mockito.mock;
impo... | true |
4bbcd08204d885e5808ccca5729832fce7fe6f7d | Java | wang-shun/eichong.web | /wanma/src/main/java/.svn/pristine/94/944625a97ec1a49e3219ce107fcee7b47f72bc90.svn-base | UTF-8 | 489 | 2.359375 | 2 | [] | no_license | package com.bluemobi.core.task;
import org.apache.log4j.Logger;
/**
* 清理缓存中过期的玩家数据
* @author haojian
* May 30, 2013 2:28:33 PM
*/
public class ClearCacheTask implements Runnable {
private static Logger logger = Logger.getLogger(ClearCacheTask.class);
@Override
public void run() {
//1、清理缓存
try{
... | true |
26d297bd39d219cfd045432adb234b577f4a38a0 | Java | jeyeongeun/Chatting | /Client/src/Client.java | UHC | 310 | 2.609375 | 3 | [] | no_license |
// mainŬ
// ClientThread Ű Ҹ Ѵ.
public class Client {
public static void main(String[] args) {
try {
ClientThread thread = new ClientThread();
thread.start();
//thread.run();
} catch (Exception e) {
System.out.println(e);
}
}
}
| true |
024e3475e577569c08611c4467a1db27895093cb | Java | CaptTwigg/Swinklub-Delfin | /src/test.java | UTF-8 | 650 | 2.828125 | 3 | [] | no_license | import java.util.*;
import java.io.*;
public class test {
public static void main(String[] args) throws Exception {
Scanner scan = new Scanner(new File("result"));
ArrayList<ArrayList<String>> arraylist = new ArrayList<>();
String line = scan.nextLine();
String[] array = line.split("],");
for ... | true |
f142b85bb45832cc608648906a7552836da4bdcc | Java | firebotQL/Competitive-Programming | /UVa/Competitive Programming 3/Chapter 3/10660 - Citizen attention offices/Main.java | UTF-8 | 2,132 | 3.453125 | 3 | [] | no_license | import java.util.*;
import java.lang.*;
import java.io.*;
public class Main
{
// Manhattan distance path = Math.abs(threeCoord.x - oneCoord.x) + Math.abs(threeCoord.y - oneCoord.y);
public static void main(String[] args) throws IOException
{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.... | true |
3b7b05ceb22014d2056ff6eaf58e47fe39fdab0e | Java | wei-gong/XiaoJiu | /todo/src/main/java/com/qtec/todo/TodoModel.java | UTF-8 | 898 | 2.546875 | 3 | [] | no_license | package com.qtec.todo;
import java.util.ArrayList;
import java.util.List;
/**
* @author gongw
* @date 2019/1/10
*/
public class TodoModel {
private List<Todo> cachedTodoList;
private static class InstanceHolder{
private static TodoModel instance = new TodoModel();
}
public static TodoMod... | true |
5b1be65d2f0b5c4616f361a5d75f0d59d52141d3 | Java | khoi140499/Java-code | /#2/Cars/src/cars/Cars.java | UTF-8 | 202 | 1.921875 | 2 | [] | no_license | package cars;
public class Cars {
public static void main(String[] args) {
Xe n=new Xe(900, 221333, "Honda", "Tim");
n.chayxe("Honda");
n.dungXe("Das");
}
}
| true |
7401c8707b11797315c29641e20940de14119e79 | Java | iRail/BeTrains-for-Android | /BeTrains/src/main/java/tof/cv/mpp/adapter/MessageViewHolder.java | UTF-8 | 1,424 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package tof.cv.mpp.adapter;
import androidx.recyclerview.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import tof.cv.mpp.R;
public class MessageViewHolder extends RecyclerView.ViewHolder {
private TextView trainid;
private TextView time;
... | true |
d7f1acb6c4a82c5ebf62cd2b095656fc76d1ea89 | Java | andrereyna97/PROYECTO1-FASE2-201504171 | /Codigo/Warlock/src/java/Conexion/ConexionBD.java | UTF-8 | 1,689 | 2.84375 | 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 Conexion;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
... | true |
be3c82e6b691e1e16c00d35c82568bfb70f57144 | Java | upupoo00/Server | /src/tcp/TcpServerByCN.java | UTF-8 | 2,492 | 3.625 | 4 | [] | no_license | package tcp;
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.HashMap;
/**
* 英译汉服务器
*/
public class TcpServerByCN {
// 端口号
private static final int port = 9003;
// 定义翻译字典
static HashMap<String, String> dirMap = new HashMap<>();
static {
dirMap.pu... | true |
eacfb25dad8a323587cc750d538971f754a65242 | Java | geekidea/spring-boot-plus | /src/main/java/io/geekidea/boot/framework/aop/SysLogAop.java | UTF-8 | 21,339 | 1.664063 | 2 | [
"MIT",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-proprietary-license"
] | permissive | package io.geekidea.boot.framework.aop;
import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.NumberUtil;
import cn.hutool.http.useragent.Browser;
import cn.hutool.http.useragent.Platform;
import cn.hutool.http.useragent.UserAgent;
import cn.hutool.http.useragent.UserA... | true |
b479df30d0b7d762c01555271a6018e11ebe6b2b | Java | chenjy2015/demo20190921 | /MyApplication/app/src/main/java/com/example/myapplication/retrofit/HeaderIntercept.java | UTF-8 | 686 | 2.484375 | 2 | [] | no_license | package com.example.myapplication.retrofit;
import java.io.IOException;
import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;
public class HeaderIntercept implements Interceptor {
@Override
public Response intercept(Chain chain) throws IOException {
Request originalRequest = ... | true |
51ba5f7fa399b7e06ba457506e94d22de6ab6163 | Java | Altudy/chang-rok | /Project/pjt_reservation/reservation/src/main/java/kr/or/connect/reservation/dto/ReservationUserCommentImage.java | UTF-8 | 1,340 | 2.328125 | 2 | [] | no_license | package kr.or.connect.reservation.dto;
public class ReservationUserCommentImage {
int id;
int reservationInfoId;
int reservationUserCommentId;
int FileId;
public ReservationUserCommentImage() {
super();
// TODO Auto-generated constructor stub
}
public ReservationUserCommentImage(int id, int reservationInfoI... | true |
585de95225bb1544232decbfb67bfc4aecc47998 | Java | zhouyannian/hello-spring-cloud | /redis-server/src/main/java/com/zhouyn/demo/redisserver/annotation/PicCode.java | UTF-8 | 139 | 1.6875 | 2 | [] | no_license | package com.zhouyn.demo.redisserver.annotation;
public interface PicCode {
String code();
String message();
String name();
} | true |
64df1288564770bb350ed12ce3b1d7cc32677bb4 | Java | lucaspaixaodegois/universidadeCrudJSF | /universidadeCrudJSF/src/br/unitins/model/Universidade.java | UTF-8 | 456 | 2.390625 | 2 | [] | no_license | package br.unitins.model;
import javax.persistence.*;
@Entity
public class Universidade {
@Id
@GeneratedValue
private Integer id;
@Column
private String nome;
public Universidade() {
super();
}
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id... | true |
e93482e9ff67720bce1156792ddfdd7e41b9d975 | Java | nsuspring2019cse427/Group13 | /Project01/Server/src/main/java/com/cse427/server/repository/UserRepository.java | UTF-8 | 536 | 2.015625 | 2 | [] | no_license | package com.cse427.server.Repository;
import com.cse427.server.Model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Optional;
@Repository
public interf... | true |
e32d683396add739583c0a75110a865681f6b50c | Java | AidenZhang1005/paypal-codingTest | /src/main/java/com/example/paypal/entity/Transaction.java | UTF-8 | 785 | 2.109375 | 2 | [] | no_license | package com.example.paypal.entity;
import com.fasterxml.jackson.annotation.JsonBackReference;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.util.Date;
@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "Transaction")
pub... | true |
1b0196e70178b8fa1a473e789c420c3e07771bb4 | Java | JarvisCraft/WildBot | /core/src/main/java/ru/wildbot/core/restart/Restarter.java | UTF-8 | 2,006 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017 Peter P. (JARvis PROgrammer)
*
* 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 ... | true |
70348b794d8a737d88189f6a6901eca5a552bb41 | Java | bogdanspan/calculator | /calculator/src/main/java/org/nexttech/interview/calculator/model/dto/ValidationInfo.java | UTF-8 | 660 | 2.359375 | 2 | [] | no_license | package org.nexttech.interview.calculator.model.dto;
import java.util.List;
public class ValidationInfo {
private boolean valid;
private List<String> errorMessages;
public ValidationInfo(boolean valid, List<String> errorMessages) {
this.valid = valid;
this.errorMessages = errorMessages;
... | true |
09da8b5aeed410814c1c6276dd70d5e0bac99c60 | Java | JackG-eth/Dissertation | /Epic/app/src/androidTest/java/com/example/epic/FragTests/FeedbackTest.java | UTF-8 | 1,957 | 2.0625 | 2 | [] | no_license | package com.example.epic.FragTests;
import androidx.fragment.app.FragmentManager;
import androidx.test.rule.ActivityTestRule;
import com.example.epic.R;
import com.example.epic.ui.Activities.MainActivity;
import com.example.epic.ui.Fragments.FeedbackFragment;
import org.junit.After;
import org.junit.Before;
import o... | true |
e89b956eff4149eb1c223feb29eadc0f828ddbaf | Java | lc3t35/magpi-android | /src/com/themagpi/api/NewsFactory.java | UTF-8 | 646 | 2.625 | 3 | [
"MIT"
] | permissive | package com.themagpi.api;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import org.mcsoxford.rss.RSSFeed;
import org.mcsoxford.rss.RSSItem;
public class NewsFactory {
public static ArrayList<News> buildFromRSSFeed(RSSFeed feed) {
ArrayList<News> news = new ArrayList<News>()... | true |
93ac772efd1315b720d406e3bb5f2c8cb30fd4dc | Java | syvanpera/xsd | /java/OfficeOpenXML-XMLSchema-Strict/shared-customXmlSchemaProperties.xsd.java | UTF-8 | 1,039 | 1.617188 | 2 | [] | no_license | // Code generated by xgen. DO NOT EDIT.
package schema;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind... | true |
88218458fcec8570de91ea36617629c258f3c4f6 | Java | bkbonde/genemania | /plugin/plugin-cy3/src/main/java/org/genemania/plugin/cytoscape3/OsgiTaskHandler.java | UTF-8 | 1,501 | 1.796875 | 2 | [] | no_license | /**
* This file is part of GeneMANIA.
* Copyright (C) 2008-2011 University of Toronto.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at... | true |
2bcedfcca16a9a1ec46a8d24245f2f3e1ace5cbf | Java | christian-vergara/NightClubSystem.Vergara | /src/Controller/AddEmployeeController/AddEmployeeController.java | UTF-8 | 2,059 | 2.734375 | 3 | [] | no_license | package Controller.AddEmployeeController;
import Model.Objects.Employee;
import Model.Objects.User;
import View.AddView.AddEmployeeView;
import javafx.scene.control.Alert;
import javafx.scene.control.ButtonType;
/**
* Created by Studio on 12/13/2016.
*/
public class AddEmployeeController {
public AddEmployeeCo... | true |
3f24e3ac1cea3d610b1f84d9c9688ba4a8d83474 | Java | xqq1994/algorithm | /src/main/java/com/test/algorithm/array/IntervalListIntersections.java | UTF-8 | 2,306 | 3.78125 | 4 | [] | no_license | package com.test.algorithm.array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
*@Description: 986. 区间列表的交集
* 给定两个由一些闭区间组成的列表,每个区间列表都是成对不相交的,并且已经排序。
*
* 返回这两个区间列表的交集。
*
* (形式上,闭区间 [a, b](其中 a <= b)表示实数 x 的集合,而 a <= x <= b。两个闭区间的交集是一组实数,要么为空集,要么为闭区间。例如,[1, 3] 和 [2, 4] 的交集为 [2, ... | true |
99d1758eceac39c4ab5d1040f8cce6b1b2b4527f | Java | hatimiti/trysprings | /spring-aspects/src/main/java/com/github/hatimiti/spring/aspects/SampleController.java | UTF-8 | 888 | 2.359375 | 2 | [] | no_license | package com.github.hatimiti.spring.aspects;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class SampleController {
private SampleService sampleService;... | true |
e2460f42c9315e534699ca943e7a52555e59cd79 | Java | lydiaastrella/eventandguest2 | /app/src/main/java/com/example/eventandguest/EventData.java | UTF-8 | 1,088 | 2.671875 | 3 | [] | no_license | package com.example.eventandguest;
import java.util.ArrayList;
class EventData {
private static String[][] data = new String[][]{
{"1", "Paskah", "12 April 2020", "https://api.time.com/wp-content/uploads/2019/04/gettyimages-617733080.jpg"},
{"2", "Hari Buruh Internasional", "1 Mei 2020", "... | true |
dc9e469c2d7b1b2eabfb5104a3461a44dd8e4f3f | Java | shaofangjie/act_admin | /src/main/java/com/act/admin/commonutil/validation/EmptyOrPatternValidator.java | UTF-8 | 675 | 2.421875 | 2 | [
"MIT"
] | permissive | package com.act.admin.commonutil.validation;
/**
* Created by shaofangjie on 2017/5/15.
*/
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.util.regex.Pattern;
public class EmptyOrPatternValidator implements ConstraintValidator<EmptyOrPattern, String> {
... | true |
51a9ce8b25f9638e21435832b533e77466107ef8 | Java | ChenBaiHong/baihoo.EclipseDataBank | /EclipseDevelop_JavaEE2/EstoreProject/Estore-console/src/main/java/com/baihoo/estore/pojo/EstBsRolePerm.java | UTF-8 | 4,529 | 2.34375 | 2 | [] | no_license | package com.baihoo.estore.pojo;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/**
*
*
* <p> 项目名称:baiHoo 出品系列</p>
* <p>表名称: est_bs_role_perm <... | true |
0a06028121ab660efb8b1ab82cb1282ec99c4c0e | Java | atomixgame/atom-game-framework-sdk | /AtomSuiteModules/VisualCodeSuite/VisualCode/src/sg/gde/visualcode/palette/VCPaletteNode.java | UTF-8 | 475 | 2.171875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package sg.gde.visualcode.palette;
import org.openide.nodes.AbstractNode;
import org.openide.nodes.Children;
/**
* VCPalleteNode is the node in the palette.
* @author cuong.nguyenmanh2
*/
public class VCPaletteNode ... | true |
387a1b9620628a273fa907e993b7d75710d26d8c | Java | BharathPalanivelu/repotest | /src/main/java/com/tencent/cos/xml/model/service/GetServiceResult.java | UTF-8 | 1,308 | 2.015625 | 2 | [] | no_license | package com.tencent.cos.xml.model.service;
import com.tencent.cos.xml.exception.CosXmlClientException;
import com.tencent.cos.xml.exception.CosXmlServiceException;
import com.tencent.cos.xml.model.CosXmlResult;
import com.tencent.cos.xml.model.tag.ListAllMyBuckets;
import com.tencent.cos.xml.transfer.XmlParser;
import... | true |
0ef36d2833e33511d4b2ec2d09aad89b0167092e | Java | imdumbo/Collection | /src/com/Collections/List/ArrayList001.java | UTF-8 | 1,776 | 3.640625 | 4 | [] | no_license | // ArrayList
//-------------
// => allow duplicates
// => follow insertion order
// => not synchronized --> allow more than one thread to run --> parallel execution --> reduce execution time --> increase performance --> doesn't allow data consistency
// --> not threadsafe
// => new_Capacity=(Current_Capacity*3... | true |
d407ea69d63f0ae95e0512a405100b701bc8e194 | Java | lampardchelsea/hello-world | /leetcode/SlidingWindow/GetEqualSubstringsWithinBudget.java | UTF-8 | 3,763 | 4.09375 | 4 | [] | no_license | /**
Refer to
https://leetcode.com/problems/get-equal-substrings-within-budget/
You are given two strings s and t of the same length. You want to change s to t. Changing the i-th character of s
to i-th character of t costs |s[i] - t[i]| that is, the absolute difference between the ASCII values of the characters.
You a... | true |
a6de082ad14b746748e35718273a60f471f90168 | Java | MicheleIessi/JDeBelloNavali | /Client/src/View/core/src/com/debellonavali/Screens/zoneStage.java | UTF-8 | 942 | 2.59375 | 3 | [] | no_license | package com.debellonavali.Screens;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.Table;
import java.util.ArrayList;
import java.util.List;
public abstract class zoneStage extends Stage {
protected zoneStage parent;
protected Table zoneTable;
protected List<zone... | true |
bc4c05b0b9d95f96896585341cc5c5e5daec22bf | Java | rodoggx/SQLite_Test | /app/src/main/java/com/example/sqlitetest/MainActivity.java | UTF-8 | 2,115 | 2.625 | 3 | [] | no_license | package com.example.sqlitetest;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
//step 2 cr... | true |
cfc20c089c18fca39d130ed703b45ef001909018 | Java | Matheusdimer/java-spring-rest-api | /src/main/java/com/betha/cursomc/config/DevConfig.java | UTF-8 | 458 | 1.78125 | 2 | [] | no_license | package com.betha.cursomc.config;
import com.betha.cursomc.services.EmailService;
import com.betha.cursomc.services.SMTPEmailService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
@Configuration
@... | true |
a85aa8127a046fcf337fb7c9921a1f4d7249e995 | Java | xuzhikethinker/logolyze | /src/main/java/de/logotakt/logolyze/view/swing2d/OffsetChangeListener.java | UTF-8 | 420 | 2.28125 | 2 | [
"BSD-2-Clause"
] | permissive | package de.logotakt.logolyze.view.swing2d;
/**
* This is the interface to be implemented by any listener that wants to listen for changes in the scrolling of the
* axis.
*/
public interface OffsetChangeListener {
/**
* This will be called when the axis this listener is registered to is moved.
* @para... | true |
6075e588dc5d8009dfa041a6f9b95d3e9c462029 | Java | returntong/security | /spring-security/src/main/java/com/security/demo/web/LoginController.java | UTF-8 | 405 | 1.820313 | 2 | [] | no_license | package com.security.demo.web;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/test")
public class LoginController {
@PostMapping... | true |
62b97a82c69f77bf57160941452831e2e7de3463 | Java | ssysek/projectDF | /labs/COOLColumn.java | UTF-8 | 264 | 2.375 | 2 | [] | no_license | package labs;
import java.util.ArrayList;
public class COOLColumn extends Column {
ArrayList<COOLValue> col;
public COOLColumn(String name, Class<? extends Value> type)
{
super(name, type);
col = new ArrayList<COOLValue>();
}
}
| true |
40268de26871d87aae2f776982fe95f0907d716a | Java | christophertfoo/MMO-Sentence-Generator | /src/edu/hawaii/ctfoo/lang_generator/CouldNotParseException.java | UTF-8 | 720 | 2.53125 | 3 | [
"MIT"
] | permissive | package edu.hawaii.ctfoo.lang_generator;
/**
* An {@link Exception} to be thrown when the parser cannot parse the given
* string.
*
* @author Christopher Foo
*
*/
public class CouldNotParseException extends Exception {
/**
* Automatically generated ID.
*/
private static final long serialVers... | true |
96c6e31d5092d54cdbde76723a1bace2d1eb6472 | Java | camilledahan/Onzeur | /main/java/com/tp/onzeur/Model/ArtistInfos.java | UTF-8 | 420 | 2.234375 | 2 | [] | no_license | package com.tp.onzeur.Model;
public class ArtistInfos {
private String name;
private String summary;
public ArtistInfos(){}
public String getName() {
return name;
}
public void setName(String name) {
this.name=name;
}
public String getSummary() {
return s... | true |
16b0a0f22203f85eb41ebb5594f49c6fcc9eb13d | Java | dotcompany/SISTEMA-ERP-EM-JAVA-GWT-VAADIN | /src/main/java/dc/visao/framework/component/ReportView.java | UTF-8 | 1,766 | 2.21875 | 2 | [] | no_license | package dc.visao.framework.component;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import com.vaadin.navigator.View;
import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent;
import com.vaadin.server.StreamResource;
import com.vaadin.ui.BrowserFrame;
import com.vaadin.ui.Button;
import com.v... | true |
a72c22e1ee2cfbd4e9da2b03a3296054ddd32b62 | Java | wanmudong/chukudanju | /src/top/wanmudong/util/SqlHelper.java | UTF-8 | 4,565 | 2.515625 | 3 | [] | no_license | package top.wanmudong.util;
/**
* Created by chenjiehao on 2018/6/26
*/
import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Properties;
public... | true |
4986ce16b7238b81de1d5280351ffc3a436d0da4 | Java | agricultureY/javalearn-master | /java-learn/src/main/java/com/demo/designmode/callback/CalMain.java | UTF-8 | 295 | 2.1875 | 2 | [] | no_license | package com.demo.designmode.callback;
/**
* 回掉模式测试
* @author yy
*
*/
public class CalMain {
public static void main(String[] args) {
CalService service = new CalService();
Client client = new Client(service);
client.sendMsg("客户端发送的请求~~~~~~~~~~~~~");
}
}
| true |
07b489ec972dd98126056a3f913d5f1e3eb3e025 | Java | Xurxo654/SpringBootQuizAPI | /src/engine/Entity/Quiz.java | UTF-8 | 2,368 | 2.71875 | 3 | [] | no_license | package engine.Entity;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints... | true |
5106235e497f8cd9dbd72b1183e0cff08dfc75f2 | Java | research-iobserve/iobserve-architectural-runtime-models-JSS-2020 | /code/iobserve-analysis/analysis/src/main/java/org/iobserve/analysis/filter/TDeallocation.java | UTF-8 | 1,660 | 2.375 | 2 | [] | no_license | package org.iobserve.analysis.filter;
import org.iobserve.analysis.model.ResourceEnvironmentModelBuilder;
import org.iobserve.analysis.model.ResourceEnvironmentModelProvider;
import org.palladiosimulator.pcm.resourceenvironment.ResourceContainer;
import org.palladiosimulator.pcm.resourceenvironment.ResourceEnvironmen... | true |
8f8a3c709f107c47154d3492dfe087565fdecb2c | Java | RafRunner/CompiladorMgol | /src/main/arguments/Argument.java | UTF-8 | 1,001 | 3.046875 | 3 | [] | no_license | package main.arguments;
public class Argument {
final ArgumentType type;
final String name;
final char flag;
final String defaultValue;
private String value;
// não faz sentido defaultValue em argumentos do tipo flag
public Argument(final ArgumentType type, final String name, final char ... | true |
d6ab24a5eefc5e65c7a1d8ad6677f8deb8fb4428 | Java | dinhnguyenhd/threadandvoliate | /tessts/src/tessts/Mains.java | UTF-8 | 371 | 2.25 | 2 | [] | no_license | package tessts;
public class Mains {
TestThread s1 = new TestThread( "Context 1");
TestThread s2 = new TestThread("Context 2");
TestThread s3 = new TestThread("Context 3");
TestThread s4 = new TestThread("Context 4");
public void demos() {
s1.run();
s2.run();
s3.run();
s4.run();
}
public static void... | true |
a4d62622655ab4ac171ac53ffec5614acaf1a808 | Java | viseshrp/PageRank-MapReduce-Implementation | /PatternTest.java | UTF-8 | 1,371 | 2.265625 | 2 | [] | no_license | package com.asgn3;
import java.util.regex.Pattern;
import org.apache.hadoop.hdfs.server.balancer.Matcher;
public class PatternTest {
public static void main(String[] args) {
// TODO Auto-generated method stub
String str = "<title>1</title> <text>[[3[[5]]]][[5]]</text>";
Pattern pattern0 = Pattern.compil... | true |
2b03ec1beaaa33e2f518648a368f5a527991f993 | Java | liyanippon/working | /data/work/androidstudio/AndroidStudioProjects/ssr/app/src/main/java/ui/activity/FinancialSalaryStastisticsActivity.java | UTF-8 | 17,060 | 1.882813 | 2 | [
"Apache-2.0"
] | permissive | package ui.activity;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.MenuItem;
i... | true |
87e460b998a959f051ebc0597ad9d86512a5bb31 | Java | Santhosh418/SpringBoot-JPA | /src/main/java/com/cts/springhibernate/employees/EmployeeService.java | UTF-8 | 200 | 1.992188 | 2 | [] | no_license | package com.cts.springhibernate.employees;
import java.util.Optional;
public interface EmployeeService {
void insertEmployee(EmployeeDTO employee);
EmployeeDTO getEmployeeDetails(Long id);
}
| true |
75eb59a17d403efb707e510d60f1e836d037859c | Java | anwar069/InForAll | /app/src/main/java/com/inforall/app/call/CallAdapter.java | UTF-8 | 5,088 | 2.09375 | 2 | [] | no_license | package com.inforall.app.call;
import android.app.Activity;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.net.Uri;
import android.provider.ContactsContract;
import android.s... | true |
814d94bbda72bd3698b951ff6e6dcfe617474449 | Java | jamesliuhk/GS1Hackathon | /app/src/main/java/com/example/yzxing/MyAdapter.java | UTF-8 | 1,836 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | package com.example.yzxing;
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 java.util.List;
/**
* Created by asus on 2018/11/16.
*/
public class MyAdapter extends ... | true |
4d886623e67d681870b30eba0f33aa7b21d50d3e | Java | schwarzahl/atcoder | /arc/arc085/Main.java | UTF-8 | 2,485 | 3.125 | 3 | [] | no_license | package atcoder.arc.arc085;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Main main = new Main();
main.solveE();
}
public static int N;
private void solveC() {
Scanner sc = new Scanner(System.in);
int N = sc.nextI... | true |
8323226ad9975006ab88df959c14679d55edb89e | Java | juan0286/RolCore | /src/main/java/com/websystique/spring/service/TipoObjetoServiceImpl.java | UTF-8 | 974 | 2.109375 | 2 | [] | no_license | package com.websystique.spring.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.websystique.spring.dao.TipoObjetoDao;
import com.websystiqu... | true |
7157d3817aaef0cd4d1b889ecce301ff98a2d4f2 | Java | Creater1/design-pattern | /src/main/java/com/liuleven/designpattern/headfirst/decorate/lower/LowerTest.java | UTF-8 | 806 | 3.328125 | 3 | [] | no_license | package com.liuleven.designpattern.headfirst.decorate.lower;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.InputStream;
/**
* @description: jdk中的InputStream就用到了大量的装饰者模式
* 这里仿照stream,新增一个装饰者 LowerCaseInputStream 转换成小写字母
* @date: 2019-01-10 17:40
* @author: 十一
*/
public class L... | true |
dc2213e506963aa5f3a28acc094f336e353a20dc | Java | bypie5/jsoup | /src/test/java/org/jsoup/parser/TagTest.java | UTF-8 | 4,558 | 2.671875 | 3 | [
"MIT"
] | permissive | package org.jsoup.parser;
import org.jsoup.MultiLocaleExtension.MultiLocaleTest;
import org.junit.jupiter.api.Test;
import java.util.Locale;
import static org.junit.jupiter.api.Assertions.*;
/**
Tag tests.
@author Jonathan Hedley, jonathan@hedley.net */
public class TagTest {
@Test public void isCaseSensitive... | true |
4dfaedb80a5df51218c6b65a7f35f66ef482c6dc | Java | wingersoftprojects/JobCard | /src/java/models/Paper_type.java | UTF-8 | 17,695 | 2.359375 | 2 | [] | no_license | /**
* "Visual Paradigm: DO NOT MODIFY THIS FILE!"
*
* This is an automatic generated file. It will be regenerated every time
* you generate persistence class.
*
* Modifying its content may cause the program not work, or your work may lost.
*/
/**
* Licensee: rlumala
* License Type: Purchased
*... | true |