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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4ddd3be8c41830e59259f2f865450fc6b58da5eb | Java | mayee007/Client | /src/main/java/com/mine/SpringDataTest/Model/Technology.java | UTF-8 | 968 | 2.21875 | 2 | [] | no_license | package com.mine.SpringDataTest.Model;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;
//@RedisHash("Technology")
public class Technology implements java.io.Serializable {
int technologyId;
String technologyType;
String category;
public Technology() {
... | true |
a2d2a38e9933aee197276f50bb3d4126187a08bc | Java | shen1123/wuxing | /tu/src/main/java/com/carl/tu/api/ConsumerApi.java | UTF-8 | 2,237 | 1.835938 | 2 | [] | no_license | package com.carl.tu.api;
import com.carl.tu.conf.ESHighLevelRESTClientTool;
import org.elasticsearch.action.get.GetResponse;
import org.elasticsearch.action.search.SearchRequest;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.index.query.BoolQueryBuilder;
import org.elasticsearch.index... | true |
c92e704b103975e6a76f38f063c739d20722a0b7 | Java | alexandrubalea/studyit-backend | /src/main/java/com/ubbdevs/studyit/service/UserServiceImpl.java | UTF-8 | 6,536 | 2.140625 | 2 | [] | no_license | package com.ubbdevs.studyit.service;
import com.ubbdevs.studyit.dto.*;
import com.ubbdevs.studyit.exception.custom.DuplicateResourceException;
import com.ubbdevs.studyit.exception.custom.ResourceNotFoundException;
import com.ubbdevs.studyit.mapper.AuthenticationMapper;
import com.ubbdevs.studyit.mapper.GroupMapper;
im... | true |
0295e632a5f2106262f8dcc8bd969d316772bb8b | Java | lindaLiuDan/school-portal | /o-owner/src/main/java/com.info/modules/move/service/impl/MoveInfoSignupServiceImpl.java | UTF-8 | 4,120 | 2.078125 | 2 | [] | no_license | package com.info.modules.move.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.info.date.DateUtils;
import com.info.modules.move.entity.MoveInfoSignupEnti... | true |
9a6791a0d0bea0f79ee2b875b3fe2422dfba9e1b | Java | suethan/love | /app/src/main/java/com/wisedu/scc/love/utils/BarCodeUtil.java | UTF-8 | 6,649 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | package com.wisedu.scc.love.utils;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import com.wisedu.scc.love.bean.Book;
import com.wisedu.scc.love.bean.Product;
import org.apache.http.params.BasicHttpParams;
import org.apache.http.params.HttpParams;
import org.json.JSONArray;
import org.json.... | true |
e1c953bf4ef695f6342a304c5df7786b7137371c | Java | mellamonaranja/JAVA_Practice | /Ch08-Object/src/com/abs2/Terran.java | UTF-8 | 311 | 2.921875 | 3 | [] | no_license | package com.abs2;
public class Terran extends Unit{
boolean fly;
public Terran(String name, int energy, boolean fly) {
this.name=name;
this.energy=energy;
this.fly=fly;
}
@Override
public void decEnergy() {
energy -=2;
}
@Override
public void incEnergy() {
energy +=2;
}
}
| true |
87cd1c6f3eca89d17e92642f35a41eb6c68d5f63 | Java | csikobalint/JavaMinimal | /net/NetMaskConverter.java | UTF-8 | 227 | 2.359375 | 2 | [] | no_license | package net;
/**
* Naive implementation with String processing
**/
abstract class NetMaskConverter implements NetMaskConverterI{
final String dotFormat;
NetMaskConverter(String dotFormat){
this.dotFormat = dotFormat;
}
} | true |
b1df5bc2647a5c4e585cb4b6087869c0fca736cf | Java | Mlethe/view | /app/src/main/java/com/mlethe/app/view/day11/TouchActivity.java | UTF-8 | 1,031 | 2.28125 | 2 | [] | no_license | package com.mlethe.app.view.day11;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import com.mlethe.app.view.R;
import com.mlethe.app.view.day10.TouchView;
public class TouchActivity extends AppCompatActiv... | true |
98903c58d5af4e3e65d2965b392314c95434a46d | Java | spriadka/PV260-BrainMethodCheck | /src/main/java/cz/muni/fi/pv260/brainmethod/visitor/AbstractCheckVisitor.java | UTF-8 | 869 | 2.359375 | 2 | [] | no_license | package cz.muni.fi.pv260.brainmethod.visitor;
import com.puppycrawl.tools.checkstyle.api.DetailAST;
import cz.muni.fi.pv260.brainmethod.BrainMethodCheck;
import java.util.Collection;
import java.util.HashSet;
public abstract class AbstractCheckVisitor {
protected VisitReport report;
protected BrainMethodChec... | true |
587d7ad67afb48ba63a9511de9f3a0587ab85b35 | Java | drakemd/Fluida | /app/src/main/java/edu/upi/cs/sukidaa/fluida/Materi/HukumPascal/HukumPascal.java | UTF-8 | 3,275 | 1.8125 | 2 | [] | no_license | package edu.upi.cs.sukidaa.fluida.Materi.HukumPascal;
import android.content.Intent;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.support.v4.view.GravityCompat;
import android.support.v4.view.PagerAdapter;... | true |
69e3a8da10ee8cf48a041138c869b781bb9b90f9 | Java | RiazShaik79/spring-activeMQ-email-notificaiton-subscriber-api | /src/main/java/io/javabrains/Receiver.java | UTF-8 | 667 | 2.25 | 2 | [] | no_license | package io.javabrains;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;
@Component
public class Receiver {
@Autowired
private EmailService emailService;
@JmsListener(destination = "... | true |
b831dbe60173e1ae3f0861f97d15476d8d6a9647 | Java | jenkinsci/buildgraph-view-plugin | /src/main/java/org/jenkinsci/plugins/buildgraphview/MatrixBuildDownstreamDeclarer.java | UTF-8 | 852 | 2.40625 | 2 | [] | no_license | package org.jenkinsci.plugins.buildgraphview;
import hudson.Extension;
import hudson.matrix.MatrixBuild;
import hudson.model.Run;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutionException;
/** Add all combination-builds of a Matrix-build to downstream-builds.
*
* Created by ... | true |
18d09dba2c0167f561c360807b24f13a3d53d0ea | Java | saksityod/ChandraEduqaActive | /src/th/ac/chandra/eduqa/service/EduqaService.java | UTF-8 | 11,990 | 1.617188 | 2 | [] | no_license | package th.ac.chandra.eduqa.service;
import java.util.List;
import th.ac.chandra.eduqa.mapper.ResultService;
import th.ac.chandra.eduqa.model.BaselineModel;
import th.ac.chandra.eduqa.model.CdsEvidenceModel;
import th.ac.chandra.eduqa.model.CdsModel;
import th.ac.chandra.eduqa.model.CdsResultDetailModel;
imp... | true |
937618a20838d3a0e006190458fcaa94040704a1 | Java | gameguyr/learning-spring | /src/test/java/lego/learningSpring/MultiplicationTest.java | UTF-8 | 458 | 2.703125 | 3 | [] | no_license | package lego.learningSpring;
import org.junit.jupiter.api.Test;
public class MultiplicationTest {
private final Multiplication addition = new Multiplication();
@Test
public void shouldMatchOperation() {
assert(addition.handles('*'));
assert(!addition.handles('/'));
}
@Test
publ... | true |
addaca2386ff5e981a9e9029f0d12160dd780b29 | Java | austin110068/NEU_CS5010_PDP | /Lab/lab3/src/dungeon/Monster.java | UTF-8 | 1,223 | 3.765625 | 4 | [] | no_license | package dungeon;
/**
* Class representing monsters in our dungeon.
*/
public class Monster {
private final String name;
private final String description;
private final int hitpoints;
/**
* Constructor for a monster.
*
* @param name the name of the monster
* @param descrip... | true |
9a0d5c2004a54a0d93cb7b5f242dc1d2c1b7905a | Java | Azat666/UserProject | /AndroidAppAzat2/app/src/main/java/com/example/student/androidappazat2/activitys/InformationActivity.java | UTF-8 | 2,614 | 1.960938 | 2 | [] | no_license | package com.example.student.androidappazat2.activitys;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ImageButton;
import android.widget.TextView;
import com.e... | true |
0bfe51f2c395a750d70a65b1dd9e63847eb2cb24 | Java | edgarlizcano/adminapp | /src/main/java/com/adminapp/models/UserModel.java | UTF-8 | 779 | 2.078125 | 2 | [] | no_license | package com.adminapp.models;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import lombok.Data;
import lombok.ToString;
import javax.persistence.*;
import java.util.List;
import java.util.Set;
@Entity
@Data
@ToString
@Table(name = "users")
public class UserModel extends Audit{
@Id
@Column(name... | true |
a7dc5f79eb0d2b3c0a2402a876eb9f41e856b3fc | Java | axelFrau/aterlier_prog_poo | /Atelier_4/src/root/Forme.java | UTF-8 | 907 | 3.453125 | 3 | [] | no_license | package root;
public abstract class Forme {
/***************** Class and Static variables *****************/
protected static int counter = 0;
protected String identifier;
protected double surface;
/***************** Constructor *****************/
protected Forme(String name){
counter ... | true |
d5fe0ae9ce852bacde5879a250039ae2e9a0b7cc | Java | strugcoder/myRpc | /src/main/java/club/codermax/rpc/protocol/loadbalance/impl/RandomLoadStrategy.java | UTF-8 | 502 | 2.203125 | 2 | [] | no_license | package club.codermax.rpc.protocol.loadbalance.impl;
import club.codermax.rpc.framework.ServiceProvider;
import club.codermax.rpc.protocol.loadbalance.LoadStrategy;
import java.util.List;
import java.util.Random;
public class RandomLoadStrategy implements LoadStrategy {
@Override
public String sele... | true |
f361ed8b3358def2dcd876142ddb5c3735c87fd8 | Java | gkbamrah/Todo-list-application | /main/model/exceptions/TaskNotCompleteException.java | UTF-8 | 107 | 1.765625 | 2 | [] | no_license | package model.exceptions;
public class TaskNotCompleteException extends CannotDeleteTaskException {
}
| true |
833264e1df9d88ae7eda6fdda1f4206dfd7e56f7 | Java | JetBrains/intellij-community | /java/java-tests/testSrc/com/intellij/java/codeInsight/intention/ChangeUIDActionTest.java | UTF-8 | 541 | 1.632813 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2000-2018 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 com.intellij.java.codeInsight.intention;
import com.intellij.codeInsight.daemon.LightIntentionActionTestCase;
public class ChangeUIDActionTest extends LightIntentionActi... | true |
5524cc9446f15b7eeca307e2fb1f770783740541 | Java | TheCBProject/MinablesOverhaul | /src/main/java/teamasm/moh/client/render/tile/RenderTileDebug.java | UTF-8 | 3,066 | 2.03125 | 2 | [
"MIT"
] | permissive | package teamasm.moh.client.render.tile;
import codechicken.lib.colour.Colour;
import codechicken.lib.render.CCRenderState;
import codechicken.lib.texture.TextureUtils;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.EntityRenderer;
import net.minecraft.client.renderer.GlStateManager;
import... | true |
a32effd5b58325224fa8b900700d4ea25b5e723d | Java | hiopro2016/linkshow | /src/main/java/com/ddzhuan/manage/service/impl/UploadFileServiceImpl.java | UTF-8 | 2,758 | 2.078125 | 2 | [] | no_license | package com.ddzhuan.manage.service.impl;
import java.io.InputStream;
import java.util.List;
import java.util.Map;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;
import com.ddzhuan.manage.service.UploadFileService;
import com.ddzhuan.manage.tool.UploadFileTool;
@Service
public class U... | true |
4b040e0a9adddebd3cd05d74213c83d02f626262 | Java | HoelzelJon/MatchstickPuzzle | /src/jonathan/hoelzel/matchsticks/Util/Grid.java | UTF-8 | 3,266 | 3.046875 | 3 | [] | no_license | package jonathan.hoelzel.matchsticks.Util;
import java.util.*;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class Grid<T> implements Iterable<Vector> {
private final List<List<T>> grid;
public Grid(T[][] ar... | true |
fa69d6797e304f4259a500ddf9d5613c01acc4e7 | Java | Mega343/FinalProject2 | /src/com/homework/corefinalproject/util/UserInputReader.java | UTF-8 | 820 | 2.8125 | 3 | [] | no_license | package com.homework.corefinalproject.util;
public class UserInputReader {
public static double parseDouble(String userInputText, String fieldName) {
double result = 0;
try {
result = Double.parseDouble(userInputText);
} catch (Exception e) {
throw new IllegalArgu... | true |
8effc8e747b74aa7614bf7614726dad195413c18 | Java | gan00000/qinquanfabu | /DownLoadCopyApp/src/com/egame/cn/DownLoadCopyAppActivity.java | UTF-8 | 6,232 | 2.046875 | 2 | [] | no_license | package com.egame.cn;
import java.io.File;
import com.brave.shine.sea.R;
import com.efun.core.db.EfunDatabase;
import com.efun.core.tools.ApkUtil;
import com.efun.core.tools.EfunLocalUtil;
import com.efun.download.EfunDownLoader;
import com.efun.download.listener.EfunDownLoadListener;
import com.efun.service.FileServ... | true |
2eee23eb538a5750478c0fcbc47638676ca019b4 | Java | JoeysWang/Leetcode | /src/main/java/test/CharTest.java | UTF-8 | 359 | 2.546875 | 3 | [] | no_license | package test;
public class CharTest {
public static void main(String[] args) {
char sperate = 9;
// String s = "\t";
// System.out.println(s.length());
// System.out.println(s.charAt(0)==sperate);
long l1 = 187_355_241_007_485L;
long l2 = 185_175_888_636_806L;
S... | true |
fe324eea425f51a933bd33802ead4c6a1f750e78 | Java | jandppw/ppwcode-recovered-from-google-code | /java/vernacular/persistence/trunk/src/main/java/org/ppwcode/vernacular/persistence_III/dao/RemoteAtomicStatelessCrudDao.java | UTF-8 | 11,921 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | /*<license>
Copyright 2005 - $Date$ by PeopleWare n.v..
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 t... | true |
9705f1b1b3fa2ebd12afb9b5cd00ca93cf8ae4ea | Java | uo269412/IPS2020-PL61 | /src/sprint1/ui/ventanas/administracion/actividades/PlanificarActividadDialog.java | ISO-8859-1 | 17,488 | 2.171875 | 2 | [] | no_license | package sprint1.ui.ventanas.administracion.actividades;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import sprint1.business.Programa;
import sprint1.business.dominio.centroDeportes.... | true |
956986a9a5fd527f5e2ebaacf7cf213a4a52aa67 | Java | dearKundy/cranberry | /src/main/java/com/kundy/cranberry/javabasis/multithread/lock/TestReentrantLockMain.java | UTF-8 | 707 | 2.890625 | 3 | [] | no_license | package com.kundy.cranberry.javabasis.multithread.lock;
/**
* @author kundy
* @date 2020/7/21 6:55 PM
*/
public class TestReentrantLockMain {
public static void main(String[] args) {
ReentrantLockThread reentrantLockThread = new ReentrantLockThread("ReentrantLock测试对象1");
ReentrantLockThread r... | true |
b732ff15b0ad9d69695c5a8868ccc6356c58278f | Java | majbe/JavaDeluppgiftNote | /src/Note.java | UTF-8 | 1,618 | 3.375 | 3 | [] | no_license |
/**
*
* @author MikaelBergstrom
*/
public class Note {
//Deklarerar variabler
private String heading;
private String text;
private String signed;
private int numberOfChars;
private int numberOfWords;
private int priceClass;
public Note(String rubrik, String notistext, String under... | true |
90f01b4682dc16d234fce1ca3679b5b8e9cce00f | Java | TheCahyag/BL4DEToys | /src/main/java/com/servegame/bl4de/BL4DEToys/EventHandlers/AbstractEventHandler.java | UTF-8 | 373 | 2.09375 | 2 | [] | no_license | package com.servegame.bl4de.BL4DEToys.EventHandlers;
import org.spongepowered.api.event.Event;
/**
* File: AbstractEventHandler.java
* @author Brandon Bires-Navel (brandonnavel@outlook.com)
*/
public interface AbstractEventHandler {
/* A purpose for this file hasn't been found yet,
I hope to use some k... | true |
96d7160d00ff96c67985dcb571c25dde702b929e | Java | s19110/MASprojekt_koncowy | /src/GUI/DyrektorProblemyPanel.java | UTF-8 | 1,988 | 2.984375 | 3 | [] | no_license | package GUI;
import Controller.ProblemController;
import Controller.ProblemyDyrektorTableModel;
import Model.Nauczyciel;
import Model.Problem;
import Utils.WindowUtils;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
* Klasa zarządzająca oknem z listą problemów prz... | true |
93d6b5adc659d9a27b523d15513baa526c14c80e | Java | Dawidjuve/OCA_Exam | /src/chapter4/lambda/LambdaSearching.java | WINDOWS-1250 | 2,026 | 3.984375 | 4 | [] | no_license | package chapter4.lambda;
import java.util.ArrayList;
import java.util.List;
public class LambdaSearching {
public LambdaSearching() {
}
public static void main(String[] args) {
List<Animal> animals = new ArrayList<Animal>(); // list of animals
animals.add(new Animal("fish", false, true));
animals.add(new ... | true |
3ac53326d334005cc105888665a6e0a41e115df8 | Java | mhtpky/javaadvancehours | /src/day06_04april/Question05_Exception.java | UTF-8 | 531 | 2.765625 | 3 | [] | no_license | package day06_04april;
public class Question05_Exception {
public static void main(String[] args) {
/*
Motor isminde bir degisken olusturun ve sonra ki satirda
yine ayni isimde bir degisken olusturmaya calisin ve
eger bir hata alirsajiz bu hatayi handle edin
*/
/*String motor = " Ferrari mot... | true |
3968f826a4421f3ef2bc82e4b05e7f288c8f54e8 | Java | healthy183/springBoot | /spring_boot_freemarker/src/main/java/com/kang/boot/study/run/Application.java | UTF-8 | 1,139 | 1.914063 | 2 | [] | no_license | package com.kang.boot.study.run;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;
import org.springframework.boot.context.embedded.EmbeddedServletContainerCust... | true |
47053d98958888e063979e813fd41e78a68752f5 | Java | sayymon/CertificacaoOCJP | /src/br/certificacao/ocjp6/declaracaoInicializacaoEscopo/Arrays.java | ISO-8859-1 | 964 | 3.125 | 3 | [] | no_license | package br.certificacao.ocjp6.declaracaoInicializacaoEscopo;
/**
* <h1>Arrays</h1><br/>
* Arrays podem ser dos tipos (primitivos,Referencia ou arrays de arrays(Matrizes))
* <br/>
* <br/>
* Java verifica as posies a serem acessadas no array. caso seja feita referencia a uma posio invalida retornada a exc... | true |
3fe386ac4159d4ed141bafbef4c439f61d1a9e12 | Java | langwan1314/map_server | /map-mobile/src/main/java/com/youngo/mobile/controller/location/GoogleLocationHandler.java | UTF-8 | 3,617 | 2.40625 | 2 | [] | no_license | package com.youngo.mobile.controller.location;
import java.io.IOException;
import java.util.List;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.StatusLine;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpResponseException;
impor... | true |
2f31b19a1e9144732980233e477e4e357f6a101a | Java | Catfeeds/rog-backend | /src/main/java/com/rograndec/feijiayun/chain/business/goods/sale/controller/SpecialPriceStrategyController.java | UTF-8 | 8,076 | 2.109375 | 2 | [] | no_license | package com.rograndec.feijiayun.chain.business.goods.sale.controller;
import com.rograndec.feijiayun.chain.business.goods.sale.service.SpecialPriceStrategyService;
import com.rograndec.feijiayun.chain.business.goods.sale.vo.SpecialPriceStrategyVO;
import com.rograndec.feijiayun.chain.common.Result;
import com.rog... | true |
9d6d6a52ad78ea4161d3fdd76dc6108954be54d8 | Java | LukaszP12/HibernateAssociationsDemo1 | /src/main/java/CascadeRemoveApp.java | UTF-8 | 1,251 | 2.53125 | 3 | [] | no_license | import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import pl.strefakursow.entity.Company;
import pl.strefakursow.entity.CompanyDetail;
public class CascadeRemoveApp {
public static void main(String[] args) {
Configuration configuration = new Config... | true |
abb2a80538eefd0eeb158f40885ab5db71c1f14a | Java | whatawurst/OpenCustomizationSelector | /src/com/sonymobile/customizationselector/CustomizationSelectorService.java | UTF-8 | 3,528 | 1.914063 | 2 | [] | no_license | package com.sonymobile.customizationselector;
import android.app.IntentService;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.UserManager;
import android.provider.Settings.Secure;
public class Customizat... | true |
83e0a4d5fb3f9283c66d12657bc61993984329cb | Java | Guzalinuer822/JavaStudyByGuzal | /src/day39_finalKeyword/FinalMethods.java | UTF-8 | 815 | 4.21875 | 4 | [] | no_license | package day39_finalKeyword;
public class FinalMethods {
public void method1() {
System.out.println("Method 1");
}
public static void staticMethod(String word) {
System.out.println("Static Method");
}
}
class Sub extends FinalMethods{
@Override
public void method1() {
System.out.println("Metho... | true |
095c3272da555e6c9bce5d70d4caa5f13c62b7c8 | Java | mARk-LzZ/LzZ | /task2/multithreading.java | UTF-8 | 3,093 | 3.328125 | 3 | [] | no_license | package 第二次考核.task2;
import java.util.Scanner;
import java.util.concurrent.*;
public class multithreading {
public static void main(String[] args) throws ExecutionException, InterruptedException {
long begin=0 ;
long end=100000000 ;
//创建10个线程
thread callable1 = new thread(begin,... | true |
bd4f19c9445cafe6f15025ced0012c5199e1b54f | Java | PabloValdivia/org.idempiere.pos | /src/org/adempiere/pos/command/CommandReverseSalesTransaction.java | UTF-8 | 3,096 | 1.765625 | 2 | [] | no_license | /** ****************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *... | true |
f0490fae58068625c929ac9e12cfc69bc00a1d6c | Java | JohanAdam/Dagger2-Retrofit-Mvp | /app/src/main/java/io/reciteapp/recite/di/module/MainActivityModule.java | UTF-8 | 732 | 2.03125 | 2 | [] | no_license | package io.reciteapp.recite.di.module;
import dagger.Module;
import dagger.Provides;
import io.reciteapp.recite.data.sharedpref.SharedPreferencesManager;
import io.reciteapp.recite.di.scope.PerActivity;
import io.reciteapp.recite.main.MainContract;
import io.reciteapp.recite.main.MainDataManager;
import io.reciteapp.r... | true |
10aff46b11a3db82a1f6e5ed029d7ac2fb3d2b58 | Java | mingtiandejiyi/HttpHelper | /src/main/java/com/zp/HttpHelper/HttpHelper.java | UTF-8 | 8,672 | 2.484375 | 2 | [
"MIT"
] | permissive | package com.zp.HttpHelper;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.apache.http.Header;
import org.apache.http.HttpEntity;
import org.apache.http.NameValuePair;
import org.apache.http.client.ClientProto... | true |
ac629477c5c5bec20f8fb153f278b960aa61b0b1 | Java | deepsharma951/adEsale | /src/main/java/com/org/abde/service/LoginService.java | UTF-8 | 304 | 1.914063 | 2 | [] | no_license | package com.org.abde.service;
import java.util.List;
import com.org.abde.beans.User;
public interface LoginService {
List<User> listAllUser();
long saveOrUpdate(User user);
User findUserByID(int id);
void deleteUser(long id);
User findByusername(String username, String password);
}
| true |
1e7ebe9b7f4525f2370b18a58a57a0fab6c1eea2 | Java | lalabib/a14-android-fundamental-labs | /navigation/LatihanNavigationComponent/java/app/src/main/java/com/dicoding/picodiploma/mynavigation/DetailCategoryFragment.java | UTF-8 | 1,899 | 2.125 | 2 | [] | no_license | package com.dicoding.picodiploma.mynavigation;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.navigation.Navigation;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;... | true |
ac1ff312538bb2a98e10068137d1453c9ff384dd | Java | alexbajzat/nature-escape-android | /app/src/main/java/com/bjz/naturescape/service/LoginService.java | UTF-8 | 340 | 1.90625 | 2 | [] | no_license | package com.bjz.naturescape.service;
import com.bjz.naturescape.model.request.LoginRequest;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;
/**
* Created by bjz on 10/23/2017.
*/
public interface LoginService {
@POST(value = "/login")
Call<Void> loginAccount(@Body LoginReque... | true |
12dc52464163cde142e1ba523d23d41fb06609bb | Java | mdatsev/elsys_homeworks | /oop/oop2017-2018/practice/07-postfix-calculator/test/org/elsys/postfix/DuplicateTest.java | UTF-8 | 493 | 2.328125 | 2 | [
"Unlicense"
] | permissive | package org.elsys.postfix;
import org.junit.Test;
public class DuplicateTest extends CalculatorAbstractTest {
@Test
public void test() {
input("10");
input("dup");
inputCtrlC();
runCalculator();
assertCalculatorLastValue(10);
assertCalculatorStackSize(2);
}
@Test
public void testDuplicateAndNegate(... | true |
2049a2bd212a088bc0951f1f63eba93224269310 | Java | warchiefmarkus/WurmServerModLauncher-0.43 | /TOOLS/server/1.0/com/sun/tools/xjc/generator/unmarshaller/automaton/AutomatonToGraphViz.java | UTF-8 | 5,095 | 2.265625 | 2 | [
"IJG"
] | permissive | /* */ package 1.0.com.sun.tools.xjc.generator.unmarshaller.automaton;
/* */
/* */ import com.sun.tools.xjc.generator.unmarshaller.automaton.Alphabet;
/* */ import com.sun.tools.xjc.generator.unmarshaller.automaton.Automaton;
/* */ import com.sun.tools.xjc.generator.unmarshaller.automaton.State;
/* ... | true |
4e7920cbd3d6e9bba67b407165a12e261dbafd9a | Java | yitzackRabin/Datastructures | /src/hashtable/SecondaryHash.java | UTF-8 | 195 | 1.96875 | 2 | [] | no_license | /**
* Simple interface file for double hashing
*
* @author RABIN
*/
package hashtable;
public interface SecondaryHash {
// A method for a second hash function
public int hashCode2();
}
| true |
225614cc9e8a76144edc977232306f299a38545b | Java | AnanthaRajuC/JavaConcepts | /VariableTypes/src/vtPackage/VariableTypes.java | UTF-8 | 681 | 3.625 | 4 | [
"MIT"
] | permissive | /**
* @author anantharaju
* Variable is name of reserved area allocated in memory
*/
package vtPackage;
public class VariableTypes
{
int data=50; //Instance variable - A variable that is declared inside the class but outside the method
//Instance variable doesn't get memory at compile time.It get... | true |
a05e2a69ae352b145af8215801ddf4ddb91f6a57 | Java | luccas-freitas/school-registration | /br/edu/ifpr/utils/validators/RgValidator.java | UTF-8 | 236 | 2.109375 | 2 | [] | no_license | package br.edu.ifpr.utils.validators;
import java.util.regex.Pattern;
public final class RgValidator {
public static boolean validateRg(final String rg) {
if(Pattern.matches("(\\d{9})", rg))
return true;
return false;
}
}
| true |
b189de4659c0e485eab495a3894110560618499e | Java | datonli/moead_spark | /src/mr_partition/MapClass.java | UTF-8 | 1,649 | 2.359375 | 2 | [] | no_license | package mr_partition;
import java.io.IOException;
import moead.MOEAD;
import mop.MopData;
import mop.MopDataPop;
import org.apache.hadoop.io.*;
import org.apache.hadoop.mapred.*;
import mop.AMOP;
import mop.CMOP;
import problems.AProblem;
import problems.DTLZ1;
import utilities.WrongRemindException;
import utiliti... | true |
bd0532c9c88bb2bf2d8fdc27a2c9fcee63082c38 | Java | chrisp-cbh/FitnesseTables | /src/main/java/FileUtilities.java | UTF-8 | 754 | 3.25 | 3 | [] | no_license | import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
public class FileUtilities {
private File theFile;
public boolean createFile(String path) throws Exception{
makeSureFileDoesntExist(path);
theFile.createNewFile();
return theFile.exists();
}
public void initiali... | true |
a12d103b641ed524d5dc7eb772d0ae9388af7544 | Java | Game-Designing/Custom-Football-Game | /sources/p005cm/aptoide/p006pt/home/apps/C3548Ja.java | UTF-8 | 493 | 1.585938 | 2 | [
"MIT"
] | permissive | package p005cm.aptoide.p006pt.home.apps;
import p026rx.p027b.C0129b;
/* renamed from: cm.aptoide.pt.home.apps.Ja */
/* compiled from: lambda */
public final /* synthetic */ class C3548Ja implements C0129b {
/* renamed from: a */
private final /* synthetic */ AppsPresenter f6930a;
public /* synthetic */ ... | true |
d78cebe9991e6c69c3b858106f05123ac1d10a5b | Java | dharapshah/50JavaAssignments | /src/com/wbl/oops/Overloading.java | UTF-8 | 678 | 3.953125 | 4 | [] | no_license | package com.wbl.oops;
// a class having multiple methods like below, having same name (i.e add-method name) but diff parameters (i.e int, double, etc) is know as overloading
public class Overloading {
public static int add (int a, int b){
return (a+b);
}
public static double add (double a, doubl... | true |
6f19197d22bd0447302578f954992da54e3b9252 | Java | hjc851/SourceCodePlagiarismDetectionDataset | /Entire Dataset/1-45/read/DepositoryAccomplishment.java | UTF-8 | 775 | 2.28125 | 2 | [
"MIT"
] | permissive | package read;
import throughputMaterials.FissionableCavil;
public class DepositoryAccomplishment extends read.SeminarRead {
private throughputMaterials.FissionableCavil discipline = null;
public static final java.lang.String SeemedMurder = "DID_REMOVE";
public DepositoryAccomplishment(
double beginning, ... | true |
f2fd805137f83d16a5bde281991ece286246ad6d | Java | kailaisi/databindingTest | /app/src/main/java/com/tcsl/databindingtest/lib/httpLoader/ResultCallback.java | UTF-8 | 913 | 2.140625 | 2 | [] | no_license | package com.tcsl.databindingtest.lib.httpLoader;
import com.google.gson.internal.$Gson$Types;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import okhttp3.Request;
/**
* 描述:
* <p/>作者:wjx
* <p/>创建时间: 2017/3/9 14:07
*/
public abstract class ResultCallback<T> {
Type mType;
pub... | true |
0293589991a96bb23291bd509eb7be0b71a87ae8 | Java | NemanjaTck/GoaiFrameworkNeuroph | /src/org/goai/classification/samples/UniversalEvaluator.java | UTF-8 | 3,599 | 2.78125 | 3 | [] | no_license | package org.goai.classification.samples;
import java.util.HashMap;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.goai.classification.api.ClassificationProblem;
import org.goai.classification.api.Classifier;
import org.goai.classification.eval.ClassifierEvaluationBase;
import org.goai.clas... | true |
546518691fd841220c5b90e73f9b9dc9993c0faa | Java | vanduc1102/spring-boot-2-skeleton | /src/main/java/com/wizeline/skeleton/controller/OverrideErrorWhitelabelController.java | UTF-8 | 1,074 | 1.945313 | 2 | [] | no_license | package com.wizeline.skeleton.controller;
import com.wizeline.skeleton.dto.response.GenericResponse;
import com.wizeline.skeleton.util.ResponseBodyBuilder;
import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import or... | true |
97bf6ee6389d35b47c1e0d95a72328cc5aa0e1a6 | Java | TheShermanTanker/Server-1.16.3 | /io/netty/handler/codec/http/DefaultHttpRequest.java | UTF-8 | 2,783 | 2.515625 | 3 | [] | no_license | package io.netty.handler.codec.http;
import io.netty.util.internal.ObjectUtil;
public class DefaultHttpRequest extends DefaultHttpMessage implements HttpRequest {
private static final int HASH_CODE_PRIME = 31;
private HttpMethod method;
private String uri;
public DefaultHttpRequest(final HttpVers... | true |
4950e9c271f5439ea73a66c92d0d33765cee8bb9 | Java | kayazas123/microframeworks | /todo-backend-test/src/test/java/nl/jaapcoomans/demo/microframeworks/todo/test/BladeTodoBackendTest.java | UTF-8 | 725 | 1.90625 | 2 | [
"MIT"
] | permissive | package nl.jaapcoomans.demo.microframeworks.todo.test;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.images.builder.ImageFromDockerfile;
import org.testcontainers.junit.jupiter.Container;
import org.testcontainers.junit.jupiter.Testcontainers;
import java.nio.file.Paths;
@Testconta... | true |
24a9d80d9f098a1d58ac57be61e52a8f3a0865a1 | Java | inspire-software/geda-genericdto | /core/src/test/java/com/inspiresoftware/lib/dto/geda/assembler/examples/complex/multidescriptors/dto/CustomerOrderDeliveryDetailDTOImpl.java | UTF-8 | 1,046 | 1.953125 | 2 | [] | no_license | /*
* This code is distributed under The GNU Lesser General Public License (LGPLv3)
* Please visit GNU site for LGPLv3 http://www.gnu.org/copyleft/lesser.html
*
* Copyright Denis Pavlov 2009
* Web: http://www.genericdtoassembler.org
* SVN: https://svn.code.sf.net/p/geda-genericdto/code/trunk/
* SVN (mirror... | true |
7ca80008bde2ea4200cae44736e551f6888a05da | Java | iamaga/java_test | /sxtoa/src/com/liu/service/impl/PaymentServiceImpl.java | UTF-8 | 1,433 | 2.03125 | 2 | [] | no_license | package com.liu.service.impl;
import com.liu.mapper.PaymentMapper;
import com.liu.pojo.NV;
import com.liu.pojo.Payment;
import com.liu.service.PaymentService;
import com.liu.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;
import java.util.List;
public class PaymentServiceImpl implements PaymentService... | true |
293c4446eb2e4d4b8731144a50a63955755a1efd | Java | BankaiNoJutsu/sbrw-mp-sync-2018 | /br/com/sbrw/mp/handler/race/PlayerInfoBeforeHandler.java | UTF-8 | 3,319 | 2.09375 | 2 | [] | no_license | /*
* This file is part of the Soapbox Race World MP source code.
* If you use any of this code for third-party purposes, please provide attribution.
* Original source code by Nilzao, 2018
*/
package br.com.sbrw.mp.handler.race;
import br.com.sbrw.mp.pktvo.IPkt;
import br.com.sbrw.mp.pktvo.race.MainRacePa... | true |
9cebc82cfcfdba567dc532d07e0b70e9672947c6 | Java | antoinecronier/pokeAndroid | /src/com/antoinecronier/pokebattle/view/poketypepokemon/PokeTypePokemonListAdapter.java | UTF-8 | 4,738 | 2.265625 | 2 | [] | no_license | /**************************************************************************
* PokeTypePokemonListAdapter.java, pokebattle Android
*
* Copyright 2016
* Description :
* Author(s) : Harmony
* Licence :
* Last update : May 25, 2016
*
*************************************************************************... | true |
896102d0b5f588395e9c162c9d50be24330a36e1 | Java | Swop4a/link-rest | /link-rest/src/main/java/com/nhl/link/rest/runtime/protocol/IIncludeParser.java | UTF-8 | 327 | 1.945313 | 2 | [
"Apache-2.0"
] | permissive | package com.nhl.link.rest.runtime.protocol;
import com.nhl.link.rest.protocol.Include;
import java.util.List;
/**
* Parsing of Include query parameter from string value.
*
* @since 2.13
*/
public interface IIncludeParser {
List<Include> fromStrings(List<String> values);
Include oneFromString(String val... | true |
06d1ce82d4f5c09f08ad03a36162adfa93ea5e98 | Java | danielgoncharov/algorithm-playground | /src/main/java/com/daniel/goncharov/algorithm/playground/interviewbit/dp/DungeonPrincess.java | UTF-8 | 1,700 | 3.4375 | 3 | [] | no_license | package com.daniel.goncharov.algorithm.playground.interviewbit.dp;
import java.util.ArrayList;
public class DungeonPrincess {
public int calculateMinimumHP(ArrayList<ArrayList<Integer>> matrix) {
for (int i = matrix.size() - 1; i >= 0; i--) {
ArrayList<Integer> row = matrix.get(i);
... | true |
a5136335253459c4b4915919501977932eae530d | Java | lixianch/Java | /src/test/java/activiti/gateway/ExclusiveGateWayProcessTest.java | UTF-8 | 1,207 | 2.140625 | 2 | [] | no_license | package activiti.gateway;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngines;
import org.activiti.engine.repository.Deployment;
import org.junit.Test;
/**
* Created by lixianch on 2018/9/30.
*/
public class ExclusiveGateWayProcessTest {
private ProcessEngine processEngine = Proc... | true |
8fa69ae3711719fb656af3cfee95c9ff95298c57 | Java | evgeniy-fitsner/riot | /common/src/org/riotfamily/common/web/mvc/interceptor/RequestInterceptorAdapter.java | UTF-8 | 1,422 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | /* 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 writing, software
* distributed ... | true |
06658110f9c4aabb966a31269998d503bf30c167 | Java | Dante-101/PoolUp | /src/com/example/firstapp/LoaderActivity.java | UTF-8 | 3,608 | 2.296875 | 2 | [] | no_license | package com.example.firstapp;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import org.json.JSONObject;
import android.app.ListActivity;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.AsyncTask;
import android.os.Bundle;
im... | true |
aea2e5c88bcdeedfbc2da97d1a3079cf7eb0ce2b | Java | wpelaez55/ExposingIndustryMediocrity | /com.citi.mobile.co/Sources/ny0k/bG.java | UTF-8 | 21,185 | 1.617188 | 2 | [
"MIT"
] | permissive | package ny0k;
import android.util.Log;
import android.widget.BaseAdapter;
import com.konylabs.android.KonyMain;
import com.konylabs.api.ui.LuaWidget;
import com.konylabs.api.ui.eO;
import com.konylabs.api.ui.iq;
import com.konylabs.vm.LuaNil;
import com.konylabs.vm.LuaTable;
import java.util.ArrayList;
import java.uti... | true |
24df6c61f55ddb5a163b54557f445e0975d65179 | Java | TianGuisen/mvvmDemo | /app/src/main/java/tgs/com/mvvm/core/retrofit/RetrofitUtil.java | UTF-8 | 3,323 | 2.375 | 2 | [] | no_license | package tgs.com.mvvm.core.retrofit;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import okhttp3.Cache;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;
import retrofit2.Converter;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJa... | true |
128fa38472c9c36b9b8bcdf9606dc69a6a474e63 | Java | NPashaO/Uncontested_Testing_Team | /url-shrtnr-guitarosexuals/src/test/java/shortener/database/tables/AliasTableTest.java | UTF-8 | 2,214 | 2.703125 | 3 | [] | no_license | package shortener.database.tables;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardOpenOption;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeEach;
import or... | true |
082d402c12a96449c9a0ebd3f81b038ec91fcf98 | Java | JobanCai/study | /src/main/java/com/joban/study/design/media/Colleague.java | UTF-8 | 279 | 2.53125 | 3 | [] | no_license | package com.joban.study.design.media;
public abstract class Colleague {
private int number;
public int getNumber() {
return number;
}
public void setNumber(int number) {
this.number = number;
}
public abstract void setNumber(int number, Media media);
}
| true |
fdd2fc1160071c3fc8ad72b76bd8ce4e0d4582a6 | Java | Nyaungbinhla/spring-hadoop | /spring-hadoop-store/src/main/java/org/springframework/data/hadoop/store/expression/MapPartitionKeyPropertyAccessor.java | UTF-8 | 4,863 | 1.742188 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | true |
a55702c22a32343882aae87d551187d6383c18b4 | Java | bug123luo/gunlocation | /src/main/java/com/tct/codec/pojo/DeviceBulletCountReplyMessage.java | UTF-8 | 342 | 1.6875 | 2 | [
"Apache-2.0"
] | permissive | package com.tct.codec.pojo;
public class DeviceBulletCountReplyMessage extends SimpleMessage {
private DeviceBulletCountReplyBody messageBody;
public DeviceBulletCountReplyBody getMessageBody() {
return messageBody;
}
public void setMessageBody(DeviceBulletCountReplyBody messageBody) {
this.messageBody = me... | true |
f63f4954cdf2d76d4a6e5d4c6aefe7fdd83c2f61 | Java | arpitmittal99635/OSS | /eclipselink.runtime-2.5.0/moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/oxm/events/descriptor/PostBuildEventTestCases.java | UTF-8 | 2,686 | 1.789063 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 1998, 2013 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | true |
99a20ab670b87ef3acac807ffd0ff423145dd98e | Java | cha63506/CompSecurity | /Shopping/offerup_source/src/com/offerup/android/activities/bk.java | UTF-8 | 1,031 | 1.546875 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.offerup.android.activities;
import android.content.DialogInterface;
import android.support.v4.e.a;
import com.offerup.android.utils.... | true |
0459fbc971cc7fd01618761cf1cd32f2a4a14f11 | Java | zhangchunling/JavaEE_CodeNote | /src/com/study/网络编程/TCP协议网络编程/Demo/Server.java | UTF-8 | 2,280 | 3.28125 | 3 | [] | no_license | package com.study.网络编程.TCP协议网络编程.Demo;
import java.io.InputStream;
import java.io.PrintStream;
import java.net.ServerSocket;
import java.net.Socket;
/**
* TCP Server
* @author 矫迩
* HTTP(HyperText Transfer Protocol):超文本传输协议:规定好了数据格式
* HTML语言 (超级文本标记语言)
*/
public class Server {
// 1.请求协议
public sta... | true |
a07b7673d9d113c4c2f13937757b708cf15f90c9 | Java | oxford-fumble/anathema | /Namegenerator/src/net/sf/anathema/namegenerator/presenter/model/INameGeneratorModel.java | UTF-8 | 478 | 2.078125 | 2 | [] | no_license | package net.sf.anathema.namegenerator.presenter.model;
import net.sf.anathema.lib.control.ChangeListener;
import net.sf.anathema.lib.util.Identifier;
import java.util.Set;
public interface INameGeneratorModel {
void addGeneratorTypeChangeListener(ChangeListener listener);
Set<Identifier> getGenerato... | true |
bc1df22546f139bf954e8b2a5263bb910bb90e9e | Java | ivanteejj/main | /src/test/java/seedu/address/testutil/TeacherBuilder.java | UTF-8 | 4,770 | 2.875 | 3 | [
"MIT"
] | permissive | package seedu.address.testutil;
import seedu.address.model.modelObjectTags.*;
import seedu.address.model.modelStaff.Staff;
import seedu.address.model.tag.Tag;
import seedu.address.model.util.SampleDataUtil;
import java.util.HashSet;
import java.util.Set;
/**
* A utility class to help with building Teacher objects.
... | true |
c693471126c378da8fc7daf61198d70773f3e09c | Java | xiaobxia/haze_api | /gringotts-core/src/main/java/com/vxianjin/gringotts/web/dao/impl/PublicAboutDao.java | UTF-8 | 810 | 2.046875 | 2 | [] | no_license | package com.vxianjin.gringotts.web.dao.impl;
import com.vxianjin.gringotts.web.dao.IPublicAboutDao;
import com.vxianjin.gringotts.web.pojo.PublicAbout;
import org.springframework.stereotype.Repository;
@Repository
public class PublicAboutDao extends BaseDao implements IPublicAboutDao {
/**
* 新增关于
*/
... | true |
3ebb4eb3a3c1ab68d98177b2b399361ac3c25d15 | Java | sspringday/springboot-mybatis | /src/main/java/com/ergou/springbootmybatis/web/json/DefaultResponseJson.java | UTF-8 | 4,684 | 2.515625 | 3 | [] | no_license | package com.ergou.springbootmybatis.web.json;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializeConfig;
import com.alibaba.fastjson.serializer.SimpleDateFormatSerializer;
import java.util.Date;
import java.util.List;
/**
* @author 程二狗
* @since 2019/6/25 0025 17:04
*/
public class D... | true |
8ac89f9fe95405b55325599be0b6ebc4e8aa15ad | Java | bilalbenma/Onto-Metrics | /src/de/edu/rostock/ontologymetrics/owlapi/ontology/metric/basemetric/graphbasemetric/graphmetric/AverageBreadthMetric.java | UTF-8 | 829 | 2.421875 | 2 | [] | no_license | package de.edu.rostock.ontologymetrics.owlapi.ontology.metric.basemetric.graphbasemetric.graphmetric;
import java.util.Set;
import org.semanticweb.owlapi.model.OWLClass;
import org.semanticweb.owlapi.model.OWLOntology;
import de.edu.rostock.ontologymetrics.owlapi.ontology.metric.basemetric.graphbasemetric.GraphBaseL... | true |
80677c1fea7c1c57567ed1ee94db54769767f942 | Java | clachic00/AIA | /java_project/MyPhoneBook/src/versionA5/PhoneCompanyInfor.java | UTF-8 | 385 | 2.734375 | 3 | [] | no_license | package versionA5;
public class PhoneCompanyInfor extends PhoneInfor {
String company;
PhoneCompanyInfor(String name, String phoneNumber, String address, String email, String company) {
super(name, phoneNumber, address, email);
this.company = company;
}
@Override
public void showData() {
super.showIn... | true |
e3601251c46047ed7f15563c5dbb044e0f20a150 | Java | FeraFLN/war | /src/main/java/com/ferafln/war/territorio/util/Props.java | UTF-8 | 1,180 | 2.5 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.ferafln.war.territorio.util;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
/**
*
* @author fera... | true |
9e822229faaaadf8660aff1f94e84721eeb65141 | Java | flozano/lucene-problems | /lucene-problems/lucene-query-parse/src/test/java/com/kii/testcase/lucenequery/QueryParseProblemTest.java | UTF-8 | 5,165 | 2.5 | 2 | [] | no_license | package com.kii.testcase.lucenequery;
import org.apache.lucene.search.Query;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TestName;
public class QueryParseProblemTest {
@Rule
public TestName name = new TestName();
public void check(Query oldStyle, Query newStyle) ... | true |
9227c997d2427fe3f511b4af11289124a61fc428 | Java | marianaNamubiru/I-Doctor | /app/src/main/java/com/example/i_doctor/helpers/MyPreferenceManager.java | UTF-8 | 3,764 | 2.484375 | 2 | [] | no_license | package com.example.i_doctor.helpers;
import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;
public class MyPreferenceManager {
private String TAG = MyPreferenceManager.class.getSimpleName();
// Shared Preferences
SharedPreferences pref;
// Editor for Shar... | true |
bdb43ad440ceb887b280744f6bcd4ae11ef9e5b5 | Java | Excombatient/Minas | /Minas/src/minas/leerTXT.java | UTF-8 | 2,075 | 2.6875 | 3 | [] | no_license | package minas;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.layout.GridPane;
import javafx.scene.text.Font;
import javafx.scene.text.FontWeig... | true |
61872f71dc7560f2fd8d396df61f09dee15e42f2 | Java | ithub-moscow/course_java_2 | /lambda.expressions/src/main/java/ru/course/stream/api/homework/Task1.java | UTF-8 | 1,008 | 3.40625 | 3 | [] | no_license | package ru.course.stream.api.homework;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.function.BinaryOperator;
public class Task1 {
public static void main(String[] args) {
List<String> list = new ArrayList<>();
list... | true |
2863fe07305ad8358d6e873f5e359987df29130a | Java | linsir6/WeChat_java | /com/tencent/mm/modelsfs/g.java | UTF-8 | 9,800 | 1.921875 | 2 | [] | no_license | package com.tencent.mm.modelsfs;
import java.util.EnumSet;
final class g {
public enum a {
NOESCAPE,
PATHNAME,
PERIOD,
LEADING_DIR,
CASEFOLD
}
/* JADX WARNING: inconsistent code. */
/* Code decompiled incorrectly, please refer to instructions dump. */
stat... | true |
8c2e9870700710986cef69adef25e4d96245ad67 | Java | tomcatx7/utils | /TimeUtil.java | UTF-8 | 1,578 | 3.296875 | 3 | [] | no_license | package util;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;
public class TimeUtil {
public static String format(Long time) {
if (time == null) {
return null;
} else {
long hou... | true |
83c1080f2f8387cd775461f6ba6b024a33871f62 | Java | gzstyp/spring_security_frontend_backend | /src/main/java/com/fwtai/config/AuthLoginFilter.java | UTF-8 | 2,276 | 2.453125 | 2 | [] | no_license | package com.fwtai.config;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
im... | true |
c7da5ad65f715d89b090c1151c39f1863774fe97 | Java | rzndev/compiler | /src/main/java/ru/tokenizer/CsvParser.java | UTF-8 | 1,397 | 3.078125 | 3 | [] | no_license | package ru.tokenizer;
import java.io.IOException;
import java.io.Reader;
import java.nio.CharBuffer;
/**
* Получение токена CSV
*/
public class CsvParser {
private static final int DEFAULT_BUFFER_CAPACITY = 65536;
/**
* Источник данных
*/
private Reader reader;
/**
* Буфер исходных ... | true |
72f6752b624f3531ee588f9d0d23549cba59ecf3 | Java | pswainuu/Hello_world | /src/test/java/com/caiofilipini/upload/handler/DetailsHandlerTest.java | UTF-8 | 2,151 | 2.390625 | 2 | [] | no_license | package com.caiofilipini.upload.handler;
import static org.mockito.Matchers.anyString;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import javax.servlet.RequestDispatcher;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.ht... | true |
5f05dcbb07779de753737d3abec471e35f103163 | Java | maiphong0411/OOLT.20202.20184172.MaiThePhong | /Lab09/AimsProject/src/main/java/hust/soict/hedspi/gui/javafx/JavaFXAims.java | UTF-8 | 875 | 2.390625 | 2 | [] | no_license | package hust.soict.hedspi.gui.javafx;
import java.io.IOException;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.StackPane;
import javafx.sta... | true |
cd731fffe38a3941d508b866bc2008f3b3ce505b | Java | mutyalu38/InstaMoneyWebApp | /src/main/java/com/gtids/InstaMoney/model/LoansCustomerOccupationDTO.java | UTF-8 | 173 | 1.796875 | 2 | [] | no_license | package com.gtids.InstaMoney.model;
public interface LoansCustomerOccupationDTO {
String getBeneficiary_lineofactivity();
int getCountOfBeneficiary_lineofactivity();
}
| true |