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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4d2bae0fb15a848dbd819f263a79e642f85ad745 | Java | denkprozess/IntelligentSystems07 | /src/main/java/UE4/ScheduledJob.java | UTF-8 | 513 | 2.65625 | 3 | [] | no_license | package UE4;
public class ScheduledJob {
private Job job;
private int start;
private int end;
private ConfigurationSchedule schedule;
public ScheduledJob(Job job, int start, int end, ConfigurationSchedule schedule) {
this.job = job;
this.start = start;
this.end = end;
this.schedule = schedule;
}
pub... | true |
0e8cf9bc1c68bb5f550faa38056ce52e2bf5cce0 | Java | SivPal12/PG5100 | /forelesning02/2_7-rmi-egentrening/src/main/java/no/nith/pg5100/BillingService.java | UTF-8 | 439 | 1.929688 | 2 | [] | no_license | package no.nith.pg5100;
import java.math.BigDecimal;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;
public interface BillingService extends Remote {
void registerInvoice(Invoice invoice) throws RemoteException;
List<Invoice> getRegisteredInvoices() throws RemoteException;
... | true |
0236c7be6cd81e2b36e53c2e6a7f2d914b959a90 | Java | olukayodepaul/mobiletreaderv3 | /app/src/main/java/com/mobile/mtrader/util/AppUtil.java | UTF-8 | 2,950 | 2.4375 | 2 | [] | no_license | package com.mobile.mtrader.util;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.widget.Toast;
import java.net.InetAddress;
public class AppUt... | true |
9061cdbaed0c0080d76d5a7dc3b7cd3b5989ddee | Java | atok/twilio-experiment | /src/main/java/atk/handlers/ErrorHandler.java | UTF-8 | 3,681 | 2.234375 | 2 | [] | no_license | package atk.handlers;
import atk.model.ErrorMessage;
import atk.utils.JsonSender;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.util.JSONPObject;
import io.undertow.Handlers;
import io.undertow.io.Sender;
import io.u... | true |
ad4326620dcdf46c4dc1e798d8bc8cc71fd721b6 | Java | shalongteng/netty | /src/main/java/com/slt/netty/io/nio/another/TestChannel2.java | UTF-8 | 1,080 | 3.234375 | 3 | [] | no_license | package com.slt.netty.io.nio.another;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.channels.ReadableByteChannel;
/**
* http://ifeve.com/java-nio-channel-to-channel/
* 如果两个通道中有一个是FileChannel,那你可以直接将数据从一个channel传输到另外一个channel。
*/
public class Test... | true |
5b4245e06b4cb6e9c22eb923aebe007a9925c84c | Java | civyshk/anstop | /app/src/main/java/An/stop/AccelerometerListener.java | UTF-8 | 3,581 | 2.125 | 2 | [] | no_license | /***************************************************************************
* Copyright (C) 2009 by mj *
* fakeacc.mj@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify ... | true |
c3f9d9ceb6b0fbbd0bda6daa9084481941409509 | Java | P79N6A/icse_20_user_study | /methods/Method_54148.java | UTF-8 | 359 | 1.695313 | 2 | [] | no_license | /**
* Unsafe version of: {@link #aiGetMaterialProperty GetMaterialProperty}
*/
public static int naiGetMaterialProperty(long pMat,long pKey,int type,int index,long mPropOut){
long __functionAddress=Functions.GetMaterialProperty;
if (CHECKS) {
AIMaterial.validate(pMat);
}
return invokePPPI(pMat,pKey,typ... | true |
788d89361030750414b12cca34a4943240918a30 | Java | anttiranta/feeds-reader-java | /src/main/java/com/antti/task/item/importing/Helper.java | UTF-8 | 356 | 2.203125 | 2 | [] | no_license | package com.antti.task.item.importing;
import org.springframework.stereotype.Component;
@Component
public class Helper {
public String normalizeUrl(String url) {
return (url != null
&& !url.startsWith("http://")
&& !url.startsWith("https://"))
? "http://" +... | true |
d8923efd00f9f292b9f5d03979ed024b6e9ad614 | Java | endrec/sdn4-abstraction-demo | /src/main/java/com/example/demo/security/domain/AuthUser.java | UTF-8 | 1,474 | 2.375 | 2 | [] | no_license | package com.example.demo.security.domain;
import com.example.demo.domain.UserRole;
import com.example.demo.domain.node.User;
import lombok.RequiredArgsConstructor;
import lombok.experimental.Delegate;
import org.springframework.security.core.GrantedAuthority;
import java.util.Collection;
import java.util.HashSet;
imp... | true |
accaea9b751ed6fc99a24d94102b9d692d91e9e1 | Java | mitraman/hal-forms-spring-example | /src/main/java/com/example/demo/APIListingController.java | UTF-8 | 5,393 | 2.109375 | 2 | [] | no_license | package com.example.demo;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.List;
import java.util.stream.Collectors;
import javax.persistence.Entity;
import static org.springframework.hateoas.server.mvc.WebMvcLinkBuilder.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org... | true |
c07f316bed743fca5412698c8ac576997b9cfe8f | Java | Mariusz3100/MaDKit | /src/madkit/kernel/NetworkAgent.java | UTF-8 | 14,766 | 1.875 | 2 | [] | no_license | /*
* Copyright 1997-2014 Fabien Michel, Olivier Gutknecht, Jacques Ferber
*
* This file is part of MaDKit.
*
* MaDKit is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, o... | true |
345abbc71dd284646a6916b1e29f5ab47e5442e1 | Java | jgoldstein46/CaptialTechGroup | /SmartAutoInsurance/src/main/java/RuleTable.java | UTF-8 | 1,528 | 2.921875 | 3 | [] | no_license | public class RuleTable {
private boolean isRaining;
private int acceleration;
private int risk;
public RuleTable(boolean raining, int inputAcceleration) {
isRaining = raining;
acceleration = inputAcceleration;
}
public RuleTable(){
isRaining = false;
acceleration... | true |
cd3c58a9160b82bf776f2a9d42a78f069fd68dcf | Java | HiagoMM/Sistema-De-Vendas | /src/main/java/projeto/Service/ClienteServ.java | UTF-8 | 406 | 1.929688 | 2 | [] | no_license | package projeto.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import projeto.Abstracts.ServiceAbs;
import projeto.domain.entities.Cliente;
import projeto.Repository.ClienteRep;
@Service
public class ClienteServ extends ServiceAbs<Cliente>{
... | true |
8d6f57ab529dbf730df1e57322112dd615595338 | Java | AntiDesert5/Ingenieria-en-Computacion-UAEM | /AlgoritmosGeneticos/src/org/jgap/audit/FitnessImprovementMonitor.java | UTF-8 | 9,449 | 2.640625 | 3 | [
"MIT"
] | permissive | /*
* This file is part of JGAP.
*
* JGAP offers a dual license model containing the LGPL as well as the MPL.
*
* For licensing information please see the file license.txt included with JGAP
* or have a look at the top of class org.jgap.Chromosome which representatively
* includes the JGAP license policy applicab... | true |
689472610807e8e280a40b8a6010e30e9bc6d451 | Java | rex390/JavaLearningExercises | /IntialProject/src/LibraryExample/RentableItem.java | UTF-8 | 745 | 3.09375 | 3 | [] | no_license | package LibraryExample;
public abstract class RentableItem
{
private String name;
private boolean rentedOut = false;
private int rentPeriod;
private static int counter =0;
public RentableItem(String name, boolean rentedOut, int rentPeriod)
{
super();
this.name = name;
this.rentedOut = false;
this.rentP... | true |
f369631e78167d2e489ba6a9ee825e01105dd97d | Java | josueolvera/respaldo | /src/main/java/mx/bidg/model/BudgetConceptDistributor.java | UTF-8 | 4,867 | 2 | 2 | [] | no_license | package mx.bidg.model;
import com.fasterxml.jackson.annotation.JsonView;
import mx.bidg.config.JsonViews;
import javax.persistence.*;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
/**
*
* @author rafael
*/
@Entity
@T... | true |
021d9cb7d86b40ae0fe3032364d84c28a00a023a | Java | EvgeniiFedorov/mailrem | /app/src/main/java/com/example/mailrem/app/pojo/ProcessesManager.java | UTF-8 | 4,695 | 2.328125 | 2 | [] | no_license | package com.example.mailrem.app.pojo;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.preference.PreferenceManager;
import android.util.Log;
import com.example.mailrem.app.Constants;
import com.example.mail... | true |
c61c6e1bb9db837265078e3463e0aa515a0ea8ac | Java | ucam-cl-dtg/urop-2013-questions | /src/main/java/uk/ac/cam/sup/form/TagDel.java | UTF-8 | 236 | 1.945313 | 2 | [] | no_license | package uk.ac.cam.sup.form;
import javax.ws.rs.FormParam;
public class TagDel {
@FormParam("qid")
private int qid;
@FormParam("tag")
private String tag;
public int getQid(){return qid;}
public String getTag(){return tag;}
}
| true |
f7060bfbe1e646041cd731db9d5e788024c821f5 | Java | as063LAUNCH/csci205Labs | /csci205Labs/test/lab11/AccountTest.java | UTF-8 | 1,554 | 2.859375 | 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 lab11;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import static org.juni... | true |
e9825111a25b001e9a90e0e61935edca66c18223 | Java | Majhi/GitHubRepository | /src/main/java/com/wordsmith/dao/WordUploadDao.java | UTF-8 | 144 | 1.992188 | 2 | [] | no_license | package com.wordsmith.dao;
import com.wordsmith.domain.Word;
public interface WordUploadDao {
public void uploadWord( Word word);
}
| true |
3594107792aeaf53bd5a4ee5f3254baa9ad1d634 | Java | larscase98/lob-pong | /Entity.java | UTF-8 | 1,124 | 2.703125 | 3 | [] | no_license | package my.game;
import java.awt.Rectangle;
import javax.swing.JComponent;
public abstract class Entity extends JComponent {
private static final long serialVersionUID = 1L;
protected double x, y, velX, velY, width, height;
protected ID id;
public abstract void tick();
public double getPosX(... | true |
03bc97b23783dbc4a5b497d5d64320d4ca21d229 | Java | Dzikovskiy/BugTracker | /src/app/Const.java | UTF-8 | 690 | 1.703125 | 2 | [] | no_license | package app;
public class Const {
public static final String USER_TABLE = "users";
public static final String USERS_ID = "id";
public static final String USERS_FIRSTNAME = "firstname";
public static final String USERS_LOGIN = "login";
public static final String USERS_PASSWORD = "password";
publ... | true |
9d3baf7c3bd1367611d9da2d9e655e66cf15de14 | Java | aardralilie/ProjectManagement | /src/main/java/com/pm/service/impl/UserServiceImpl.java | UTF-8 | 623 | 2.125 | 2 | [] | no_license | package com.pm.service.impl;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pm.model.User;
import com.pm.repository.UserRepository;
import com.pm.service.UserService;
@Service
pub... | true |
0e3db92552d46c89296f7b5e422928fff7362dc0 | Java | 13554659514/java-notes | /src/main/java/staticImport/pkg2/ConstantInterface2.java | UTF-8 | 223 | 1.828125 | 2 | [] | no_license | package staticImport.pkg2;
/**
* @Author: YuTengjing
* @Date: 2019/1/3
*/
public interface ConstantInterface2 {
String PROJECT_NAME = "java-notes";
Double JAVA_VERSION = 1.8;
String BUILD_TOOL = "Gradle";
}
| true |
0617948724c31cd1ed271074dc5e7f4c4a5a2f9b | Java | xttlalala/servelt-curd | /src/com/oracle/servlet/DeleteBookServlet.java | WINDOWS-1252 | 971 | 2.234375 | 2 | [] | no_license | package com.oracle.servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.oracle.dao.BookDao;
/**
... | true |
55b8f0438a7070e3f5c9afd80c6dc6d2f68681ff | Java | Coding-hu/Java- | /EXP2/src/Exp2/money.java | UTF-8 | 2,648 | 3.65625 | 4 | [] | no_license | package Exp2;
import java.util.Scanner;
public class money {
public static void main(String[] args){
String number1[]=new String[]{"零","元","拾","佰","仟"};
String number3[]=new String[]{"0","分","角"};
String number2[]=new String[]{"0","壹","贰","叁","肆","伍","陆","柒","捌","镹"};
int ... | true |
e8a1fcb56da6085313df57411b6e8c5a61f80375 | Java | Francispp/cms | /src/src/com/cyberway/common/menu/service/MenuResourceService.java | UTF-8 | 1,817 | 2.390625 | 2 | [] | no_license | package com.cyberway.common.menu.service;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.Restrictions;
import com.cyberway.common.menu.domain.MenuResource;
import com.cyberway.core.dao.HibernateEntityDao;
/**
* com.cyberway.com... | true |
0a22d88255a654e260ae4590419887b2303c459f | Java | mokhtarmoustafa/Wasellak-master | /app/src/main/java/com/unicom/wasalakclientproduct/model/user/LanguageClass.java | UTF-8 | 535 | 2.125 | 2 | [] | no_license | package com.unicom.wasalakclientproduct.model.user;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class LanguageClass {
@SerializedName("languageName")
@Expose
private String languageName;
public LanguageClass(String languageName) {
this.... | true |
91174a80aee7aa1b2151b31b85a5b92130ee3009 | Java | leeaforbes/PaintballCTF | /src/com/javabean/paintballctf/PBCTFGameManager.java | UTF-8 | 5,022 | 2.78125 | 3 | [] | no_license | package com.javabean.paintballctf;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.HashMap;
import javax.swing.Timer;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.chat.ClickEvent;
import n... | true |
2939998c44e76c817fa3d50d52b61f2772e35e67 | Java | apache/pulsar | /pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/MembershipManager.java | UTF-8 | 10,979 | 1.875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-protobuf"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
e0fb7f6e5592ea1c61e049bc121b09b4e616f77c | Java | marmihajl/InteractivePPT | /InteractivePPT-android/entities/src/main/java/hr/foi/air/interactiveppt/entities/Survey.java | UTF-8 | 406 | 1.75 | 2 | [] | no_license | package hr.foi.air.interactiveppt.entities;
import com.google.gson.annotations.SerializedName;
/**
* Created by zeko868 on 31.12.2016..
*/
public class Survey {
@SerializedName("id")
public int id;
@SerializedName("name")
public String name;
@SerializedName("description")
public String d... | true |
ec4572b11605fd55d8bc2009388ede2f5ee72676 | Java | xiaodnn/erp | /src/main/java/com/erp/orm/inter/IWaresWholepriceGroupMapper.java | UTF-8 | 929 | 1.875 | 2 | [] | no_license | package com.erp.orm.inter;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.erp.orm.entity.WaresWholepriceGroup;
import com.erp.orm.entity.WaresWholepriceGroupKey;
@Repository("waresWholepriceGroupMapper")
public interface IWaresWholepriceGroupMapper... | true |
d87f6b8fb8e61403b5d6e133f6eb75224977be99 | Java | ycourtois/hackernews-graphql-java | /src/main/java/com/howtographql/graphql/resolvers/LinkResolver.java | UTF-8 | 779 | 2.140625 | 2 | [] | no_license | package com.howtographql.graphql.resolvers;
import com.coxautodev.graphql.tools.GraphQLResolver;
import com.howtographql.graphql.type.Link;
import com.howtographql.graphql.type.User;
import com.howtographql.repositories.UserRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Compon... | true |
475313723efb0b66fa98ae2ee1b6418138c8f8ea | Java | Cole-Dalton/CIT360 | /CIT360/src/personalSandboxCode/threadsExecutablesRunnables/Fisherman.java | UTF-8 | 1,733 | 4.21875 | 4 | [] | no_license | package personalSandboxCode.threadsExecutablesRunnables;
/**
* Created by daltonsolo on 5/4/2017.
*/
public class Fisherman {
public static void main(String[] args) {
/*
We're going to create the thread here.
You can't implement a class in here if you don't
have it implementing "r... | true |
1179b2056d13a4e76e69a15e0d3a7d20a29afc47 | Java | jchmb/java-evolution | /src/nl/jchmb/evolution/repository/EvolverRepository.java | UTF-8 | 898 | 2.21875 | 2 | [] | no_license | package nl.jchmb.evolution.repository;
import nl.jchmb.evolution.evolver.Evolver;
import nl.jchmb.evolution.evolver.SimpleEvolver;
import nl.jchmb.evolution.replicator.PlanetReplicator;
import nl.jchmb.evolution.replicator.PlanetReplicatorFactory;
import nl.jchmb.math.random.FloatGenerator;
import nl.jchmb.math.vector... | true |
c26844f76c6b4efcbea307ca293630c168bd5b7a | Java | Coady1991/groupboardgame | /src/controllers/Game.java | UTF-8 | 20,819 | 3.140625 | 3 | [] | no_license | package controllers;
import models.*;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Hashtable;
import java.util.List;
import static utils.RaceCard.*;
import static utils.RaceCard.raceCardCostForMove;
//=========================================================================================... | true |
be5d2acd27117140d6d4f93d1a02c31c5465ab9a | Java | wendyxie327/codelibrary | /代码库/可复用Fragement框架/MainActivity.java | UTF-8 | 9,309 | 1.929688 | 2 | [] | no_license | package com.miaotech.health.ui.activity;
import android.annotation.TargetApi;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.... | true |
62e25d58222e3675187052154abfdbfcece54185 | Java | J4ck5R3v3vng3/RC-Backend | /src/main/java/com/rc/SpringRefridgeCreatorApplication.java | UTF-8 | 478 | 1.648438 | 2 | [] | no_license | package com.rc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
//@ComponentScan({"com.rc.core", "com.rc.service"})
//@EntityScan({"com.rc.entity"})
//@EnableJpaRepositories(basePackages = "com.rc.repository")
public class ... | true |
fa8a7a5345eac6ca0ab4152c7233408f601105eb | Java | tiebenxin/tp | /app/src/main/java/com/example/haoyuban111/mubanapplication/adapter/AdapterHostList.java | UTF-8 | 4,138 | 2.234375 | 2 | [] | no_license | package com.example.haoyuban111.mubanapplication.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widge... | true |
991058ff206507203b045b6f659e98c4ded00cd8 | Java | lxingfei/design-pattern | /factory-pattern/src/main/java/com/leh/factorypattern/factory/AbstractFactory/DefaultFactory.java | UTF-8 | 455 | 2.984375 | 3 | [] | no_license | package com.leh.factorypattern.factory.AbstractFactory;
import com.leh.factorypattern.factory.model.Car;
/**
* @Auther: leh
* @Date: 2019/8/29 11:05
* @Description: 假设默认生产奥迪
*/
public class DefaultFactory extends AbstractFactory{
private AudiFactory defaultFactory = new AudiFactory();
@Override
publ... | true |
ea97f5712503d11454212b07ac15faccce45543d | Java | Hamdy10024/Datastructures2 | /AVLTREES/src/binarySearchTrees/AVL.java | UTF-8 | 2,741 | 3.265625 | 3 | [] | no_license | package binarySearchTrees;
/**
* Created by heshamelsawaf on 24/03/17. AVL tree based on BST;
*/
public class AVL<T extends Comparable<T>> extends BST<T> implements AVLTree<T> {
@Override
public INode<T> getTree() {
return super.getRoot();
}
private void leftRotate(INode<T> node) {
INode<T> temp = n... | true |
fcb4a9571dd6c1d4eb2814ca18cba6287a92d42e | Java | Monkeyprime-hub/spring_project | /soulmate/src/main/java/com/example/soulmate/events/BNRestController.java | UTF-8 | 1,573 | 2.203125 | 2 | [
"MIT"
] | permissive | package com.example.soulmate.events;
import lombok.val;
import org.springframework.context.event.EventListener;
import org.springframework.http.MediaType;
import org.springframework.scheduling.annotation.Async;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotatio... | true |
7ce95d087f479aee339cfe72cc25f3cdc1932978 | Java | KandyKad/Computer-Networks | /Java/Single Version/Server.java | UTF-8 | 1,947 | 3.0625 | 3 | [] | no_license | /**
* A UDP Server
* @author Kunal Kanade
Go Back N ARQ(Automatic Repeat Request)
Again just a simulation..
*/
import java.net.*;
import java.io.*;
import java.util.*;
public class Server
{
public static void main(String args[]) throws Exception
{
ServerSocket server = new ServerSocket(6262);
... | true |
b0b6c90d113ecd50a07d4182abe1c98aa479170d | Java | ARESKAN2108/SimakouMaksimTMS2021 | /Lesson3/src/main/java/HomeWork.java | UTF-8 | 9,465 | 4 | 4 | [] | no_license | import java.util.Arrays;
import java.util.Random;
import java.util.Scanner;
public class HomeWork {
public static void main(String[] args) {
//Некоторые тесты для проверки задач. Можно также написать свои тесты.
printArray();
System.out.println(operation(1));
System.out.println(ope... | true |
15ec8a64d5330fd19c4f378e72fd2c277d335c23 | Java | ryw123/misskiss | /src/main/java/com/lin/missyou/dto/BannerDTO.java | UTF-8 | 454 | 1.765625 | 2 | [] | no_license | package com.lin.missyou.dto;
import com.lin.missyou.model.BannerItem;
import lombok.Getter;
import lombok.Setter;
import java.util.Date;
import java.util.List;
/**
* @author yanwei.ren
* @date Created in 11:01 2020/4/21
* @Description:
*/
@Getter
@Setter
public class BannerDTO {
private Long id;
private ... | true |
4910d2cca7b76cdebf2885d851c9ccca5f50070d | Java | paulthoms/JavaSpringBoot | /src/main/java/com/webapp/demo/controller/FileUploadController.java | UTF-8 | 1,038 | 2.546875 | 3 | [] | no_license | package com.webapp.demo.controller;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.... | true |
77676376824d42592caa0efdfd0f37ef8dbf65fa | Java | bkiers/Clay | /src/test/java/clay/ClayTest.java | UTF-8 | 5,116 | 3.125 | 3 | [
"MIT",
"Apache-2.0"
] | permissive | package clay;
import clay.input.FileInput;
import clay.input.CSVInput;
import clay.input.StringInput;
import org.junit.Test;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.not;
import... | true |
06daedc21f9c6ac48bda1859d36e6b148fe9ef34 | Java | BobAndPlay/PlayWeb | /src/main/java/com/bob/ssm/service/impl/UserServiceImpl.java | UTF-8 | 1,930 | 2.234375 | 2 | [] | no_license | package com.bob.ssm.service.impl;
import com.bob.ssm.base.BaseResponse;
import com.bob.ssm.dao.UserDao;
import com.bob.ssm.model.User;
import com.bob.ssm.service.UserService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.data... | true |
0666f4f6bd8fd80f81891893f527869e7b4777a8 | Java | shitianxianga/mystudy | /src/suanfa/K连续位的最小翻转次数.java | UTF-8 | 702 | 2.546875 | 3 | [] | no_license | package suanfa;
/**
* @author shitianxiang
* @version 1.0
* @description
* @updateRemark
* @updateUser
* @createDate 2021/2/19 10:20
* @updateDate 2021/2/19 10:20
**/
public class K连续位的最小翻转次数 {
public int minKBitFlips(int[] A, int K) {
int l=0;
int[] diff=new int[A.length+1];
int r... | true |
bb9635fd2a3ec128beae16c849178936c713435d | Java | gliiii/store02 | /src/main/java/cn/tedu/store02/mapper/DistrictMapper.java | UTF-8 | 583 | 2.328125 | 2 | [] | no_license | package cn.tedu.store02.mapper;
/**
* 处理省市区数据的持久层接口
* @author glii0
*
*/
import java.util.List;
import cn.tedu.store02.entity.District;
public interface DistrictMapper {
/**
* 根据父级代号查询所有省/某省的所有市/某市的所有区
* @param parent 父级代号
* @return 数据集合
*/
List<District> findListByParent(String par... | true |
4c29f9b67715eadb8f02db16ddd2afd22fc09c90 | Java | nuno1212s/Orb | /Punishments/src/main/java/com/nuno1212s/punishments/commands/PunishCommand.java | UTF-8 | 1,780 | 2.375 | 2 | [] | no_license | package com.nuno1212s.punishments.commands;
import com.nuno1212s.main.MainData;
import com.nuno1212s.playermanager.PlayerData;
import com.nuno1212s.punishments.main.Main;
import com.nuno1212s.util.Pair;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.... | true |
06eb917581553c6a4bcb06f0c1339165bd005676 | Java | ridixcr/projects | /SVA_1.0/src/java/org/edessco/sva/cv/EstandarBean.java | UTF-8 | 16,109 | 1.648438 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.edessco.sva.cv;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
import javax.annotation.PostCon... | true |
661122310758d61d7b49f12c5e657e37b48241a5 | Java | showkatbinidris70/CoreJava | /Test/src/TwoDArrySort.java | UTF-8 | 695 | 2.984375 | 3 | [] | no_license |
import java.util.Arrays;
/*
* 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.
*/
/**
*
* @author User
*/
public class TwoDArrySort {
public static void main(String[] args) {
... | true |
e91a11b680f336bf07a18cde015c577bc6ce4a3a | Java | RKUniRitter/thread1 | /src/MeuTeste.java | UTF-8 | 552 | 3.328125 | 3 | [] | no_license | //Professor Isidro Explica - Episódio 11 - Threads
//https://www.youtube.com/watch?v=gILOMDm1xxk&feature=youtu.be
public class MeuTeste {
public static void main(String[] args) {
// TODO Auto-generated method stub
MinhaThread t1, t2;
t1 = new MinhaThread(1, 10, 500);
t2 = new MinhaThread(2, 10, 800);
... | true |
e3d08d9c962849cab486f5089055ec5648079b4c | Java | RalphSu/789 | /p2p-web/src/main/java/com/icebreak/p2p/base/BaseHandlerExceptionResolver.java | UTF-8 | 808 | 2.203125 | 2 | [] | no_license | package com.icebreak.p2p.base;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.HandlerExceptionResolver;
import org.springframework.web.servlet.ModelAndView;
public c... | true |
597f34f1e74b5613c5e295e4891915d1baa40580 | Java | ladyhua/javaOJ | /src/com/leetcode/code/Main15.java | UTF-8 | 1,932 | 3.296875 | 3 | [] | no_license | package com.leetcode.code;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
//AC
public class Main15 {
public static void main(String args[]) {
int[] nums = {-1,0,1,2,-1,-4};
System.out.println(threeSum(nums));
}
public static List<List<Integer>> threeSum(int[] nums) {
... | true |
771601e7deb77c7fe2219f98ce636993b8491af6 | Java | hechengming1112/manage | /src/main/java/admin/com/student/sys/mapper/SysUserRoleMapper.java | UTF-8 | 470 | 1.890625 | 2 | [] | no_license | package admin.com.student.sys.mapper;
import admin.com.student.sys.domain.SysUserRole;
import java.util.List;
/**
* 用户和角色关联Mapper接口
*
* @author hecm
* @date 2019-09-05
*/
public interface SysUserRoleMapper {
/**
* 查询用户和角色关联列表
*
* @param sysUserRole 用户和角色关联
* @return 用户和角色关联集合
*/
... | true |
e32f4f90a72bd88af6f5c913fa8b75700c271afc | Java | ly10228/SpringCloud | /cloud2020/cloud-provider-payment8001/src/main/java/com/ly/springcloud/controller/PaymentController.java | UTF-8 | 2,587 | 2.109375 | 2 | [] | no_license | package com.ly.springcloud.controller;
import com.ly.springcloud.common.CommonResult;
import com.ly.springcloud.common.enums.ResultEnum;
import com.ly.springcloud.entity.Payment;
import com.ly.springcloud.service.PaymentService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.s... | true |
76c0886c285f73e3a399363c8e36dc2c9c5cca2c | Java | wesson818/SMSPluginForCordova2.3.0 | /SMSComposer.java | UTF-8 | 1,817 | 2.234375 | 2 | [] | no_license | /**
*
* Phonegap SMS composer plugin for Android with multiple attachments handling
*
* Version 1.0
*
* Edit from EmailComposer Guido Sabatini 2012
*
*/
package com.wishbonemedia.jimsbookingDev;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.content.In... | true |
be108653680870f8e1846d3139b79a24d47ece15 | Java | vedant9/Hostel-DBMS | /DBS/src/db/Studdetails.java | UTF-8 | 4,305 | 2.59375 | 3 | [] | no_license | package db;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import java.awt.Toolkit;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class Studdetails ... | true |
782158279a9b162cf61832a621b7c9c10843cb4b | Java | WeiXuanYap/tp | /src/test/java/seedu/budgettracker/logic/commands/AddBudgetTest.java | UTF-8 | 2,359 | 3.015625 | 3 | [] | no_license | package seedu.budgettracker.logic.commands;
import org.junit.jupiter.api.Test;
import seedu.budgettracker.data.RecordList;
import seedu.budgettracker.data.records.exceptions.DuplicateBudgetException;
import seedu.budgettracker.logic.commands.exceptions.CommandException;
import java.time.LocalDate;
import st... | true |
c023ccc1e236155ba3b12e5ca7def4665cfe93b3 | Java | eltazar/RobotSample | /src/it/sapienza/robotsample/MyAbsoluteLayout.java | UTF-8 | 3,953 | 2.828125 | 3 | [] | no_license | package it.sapienza.robotsample;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RemoteViews.RemoteView;
/**
* A layout that lets you specify exact locations (x/y coordinates) of its
* children. Absolute layouts are les... | true |
2c25fdbfa60a6a6fa3852b6d05788f8bee9db164 | Java | ShubhamPatelGit/BookShop | /BookShop/src/com/dao/BookDao.java | UTF-8 | 6,975 | 2.734375 | 3 | [] | no_license | package com.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import com.pojos.BookPojo;
import com.sql.SQLConnection;
public class BookDao {
public int maxid() throws Exception{
Connection con = null;
try {
con = SQL... | true |
793f7e54bebfc756a972b01769e23cfe0e4963de | Java | fisher377164/spring-angular-calculator | /src/main/java/com/techmix/fisher/exeptions/DivisionZeroException.java | UTF-8 | 348 | 2.03125 | 2 | [] | no_license | package com.techmix.fisher.exeptions;
import org.springframework.http.HttpStatus;
/**
* @author fisher
* @since 4/8/16
*/
public class DivisionZeroException extends BaseException {
private static final HttpStatus status = HttpStatus.BAD_REQUEST;
public DivisionZeroException(String message) {
supe... | true |
ab8edbeeb38e0524a67094e0349c7b93f5f5e6d8 | Java | snnynhr/stockprediction | /new_src/ark-sage/src/edu/cmu/cs/ark/sage/effects/IntegerEffect.java | UTF-8 | 2,197 | 3.34375 | 3 | [] | no_license | package edu.cmu.cs.ark.sage.effects;
/**
* This is an implementation of a SAGE {@link Effect} that is indexed by an <code>int</code> <code>id</code>.
*
* @author Yanchuan Sim
* @version 0.1
*/
public class IntegerEffect extends Effect
{
private final int id;
/**
* Construct a fixed {@link In... | true |
db25f9ac1f420f2ea6b61f6dc1aded435a292003 | Java | atafs/BackEnd_JavaSE_PCD | /LinguagemJAVA_super/src/control_1Logica/OperadorInstanceOf.java | UTF-8 | 967 | 4.03125 | 4 | [] | no_license | package control_1Logica;
/** Apresentar conceitos de Variaveis
@autor Americo Tomas
*/
public class OperadorInstanceOf {
//método main:
public static void main (String[] args) {
int x = 6;
x %= 3; //x = x + 3; -=, +=, /=, *=;
System.out.println(x);
//x == 6 : true; // = atribuicao; == c... | true |
f0e2730d7324e9ba0a27855521a886ebcb749cd8 | Java | KenAyotte/Comp830-Exam | /Question6/Observer/WorkManager.java | UTF-8 | 502 | 3.09375 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.List;
public class WorkManager {
private List<Worker> workers = new ArrayList<Worker>();
private int state;
public int getState() {
return state;
}
public void setState(int state) {
this.state = state;
notifyAllObservers();
}
publ... | true |
c67e0958570673d8ae74cc51a20b02a88198c558 | Java | blue19demon/spring-cloud | /spring-cloud/user-web/user-web/src/main/java/com/zimadai/userweb/controller/PageController.java | UTF-8 | 870 | 2.140625 | 2 | [] | no_license | package com.zimadai.userweb.controller;
import java.math.BigDecimal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import com.zimadai.userweb.feign.MovieFeign;
import com.zimadai.userweb.feig... | true |
ad8876db414718c53cff30c607459b8ecdf90afa | Java | KevinGitonga/mmarauinfo | /app/src/main/java/ke/co/ipandasoft/mmaraumobileinfo/SingleInfo.java | UTF-8 | 4,583 | 1.929688 | 2 | [] | no_license | package ke.co.ipandasoft.mmaraumobileinfo;
import android.content.Intent;
import android.content.res.AssetManager;
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Too... | true |
df7b4174e405d31638b98d4d909a4809f9c34e1c | Java | felipecesargomes/PROJETO-POSWEB-T52020-FELIPE-CESAR-GOMES | /src/main/java/dev/fujioka/felipe/projetoJava/rest/ConsultasResource.java | UTF-8 | 3,984 | 2.28125 | 2 | [
"MIT"
] | permissive | package dev.fujioka.felipe.projetoJava.rest;
import java.util.List;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.va... | true |
df3f0798d5ba1c91471bec3fc357438a60fe9264 | Java | thabitaaroeira/marvel-rest-client-api | /marvel-client/src/main/java/br/com/thabita/controllers/CharacterController.java | UTF-8 | 2,886 | 2.53125 | 3 | [] | no_license | package br.com.thabita.controllers;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.w... | true |
91dbaeaba74647dbedb08b36ebdc9af475db0432 | Java | fazoolmail89/gopawpaw | /Capricornus/src/com/gopawpaw/erp/hibernate/c/CclsMstr.java | UTF-8 | 828 | 1.710938 | 2 | [] | no_license | package com.gopawpaw.erp.hibernate.c;
import java.util.Date;
/**
* CclsMstr entity. @author MyEclipse Persistence Tools
*/
public class CclsMstr extends AbstractCclsMstr implements java.io.Serializable {
// Constructors
/** default constructor */
public CclsMstr() {
}
/** full constructor */
public CclsMst... | true |
2b6a887b16a59f31fd78c9b2284cf11f03f773a9 | Java | MayurSolanki/BackgroundLocationTrigger | /app/src/main/java/com/locationtrigger/LocationAdapter.java | UTF-8 | 2,330 | 2.109375 | 2 | [] | no_license | package com.locationtrigger;
import android.content.Context;
import android.content.Intent;
import android.location.Location;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Image... | true |
a7c8cde1c5f6c651c6654b6e8f9fed61f413a693 | Java | leenapark/mysite5 | /src/main/java/com/javaex/service/GalleryService.java | UTF-8 | 2,836 | 2.46875 | 2 | [] | no_license | package com.javaex.service;
import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import org.springframework.beans.factory.annotation.Autowi... | true |
12612d86adaa9ed549e74262ef26d1793683e391 | Java | JacobPooleCV/SuperAP_21-22 | /2015_ABCD/34. ExtraStuff/Nick Fish/NickFish Code/MBSGUI.java | UTF-8 | 4,246 | 2.890625 | 3 | [] | no_license | // AP(r) Computer Science Marine Biology Simulation:
// The MBSGUI class is copyright(c) 2002 College Entrance
// Examination Board (www.collegeboard.com).
//
// This class is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Softwar... | true |
8fa1a700b0c49c7b85ae5604c363b5fc0262dacb | Java | mttoksoy/project | /src/main/java/restApi/UserController.java | UTF-8 | 2,893 | 2.40625 | 2 | [] | no_license | package restApi;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.BadCredentialsException;
import org... | true |
0dbc78dfdc6cf4028160fb2a15ab42c0382b3fa4 | Java | ali-sh1985/Appointment-Management-System | /src/main/java/com/cs4/appointmentManagement/jms/AppointmentJmsSender.java | UTF-8 | 914 | 2.359375 | 2 | [] | no_license | package com.cs4.appointmentManagement.jms;
import java.io.Serializable;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.Session;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.jms.core.... | true |
5575653e0c92e68a95c7313f63dbc53ac3d1fffc | Java | DalavanCloud/isis | /core/metamodel/src/main/java/org/apache/isis/core/metamodel/services/swagger/SwaggerServiceDefault.java | UTF-8 | 2,798 | 1.679688 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | true |
49db2e729f29bf5d6ec474ef4e11a5526829d01b | Java | qiankeqin/dubbo-mao | /guns-gateway/src/main/java/com/stylefeng/guns/rest/modular/vo/ResponseVO.java | UTF-8 | 2,094 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package com.stylefeng.guns.rest.modular.vo;
/**
* @author qiankeqin
* @Description: DESCRIPTION
* @date 2019-03-18 20:31
*/
public class ResponseVO<M> {
/**
* 返回状态
* 0成功,1失败,999系统异常
*/
private int status;
/**
* 返回信息
*/
private String msg;
/**
* 返回实体数据
*/
... | true |
49fbaf50cefecc4a31492352706f571ecf134730 | Java | Robinak47/It-centre-Management-sytem | /project/frames/ForgetFrame.java | UTF-8 | 2,787 | 2.5625 | 3 | [] | no_license | package frames;
import java.lang.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import repository.*;
import entity.*;
public class ForgetFrame extends JFrame implements ActionListener
{
private JLabel answerLabel, npasswordLabel,idLabel;
private JPasswordFiel... | true |
28280e4153226fd8db7af6c932d1ecebfa51f234 | Java | toughie88/Machine-Learning-for-Malware-Data-Analysis | /WuKong/com/adobe/reader/javascript/ARJavaScriptUtil.java | UTF-8 | 262 | 1.695313 | 2 | [] | no_license | package com.adobe.reader.javascript;
public class ARJavaScriptUtil
{
public ARJavaScriptUtil() {}
public String printd()
{
return null;
}
public String printf()
{
return null;
}
public String printx()
{
return null;
}
}
| true |
b21dc4f0b10220cb7adda6e38ab680540ff0776b | Java | ArekOsiecki/OOP_Project | /DivingCalculator/src/DivingCalculator/src/RdpFrame.java | UTF-8 | 14,458 | 2.6875 | 3 | [] | no_license | import javax.swing.*;
import javax.swing.border.EmptyBorder;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
public class RdpFrame extends JFrame implements ActionListener {
JFrame rdpFrame;
JMenuBar guiMenuBar = new JMenuBar();
JMe... | true |
55e06d1eb7d744ab5f264b6d65969aaee506b826 | Java | ncummons/Java-Fundamentals | /src/labs_examples/objects_classes_methods/labs/oop/A_inheritance/Animals.java | UTF-8 | 1,290 | 3.984375 | 4 | [] | no_license | package labs_examples.objects_classes_methods.labs.oop.A_inheritance;
public class Animals {
private int NumLegs;
private double length;
private double speed;
public void makeSound(){
System.out.println("Grrr... Says the animal.");
}
public void eatAndGrow(double amount){
Sys... | true |
9bdcfd1c0654c6c581750e9155a3ff2fd6fc06b0 | Java | xuxiangyunuaa/monitorServer | /src/main/java/org/nit/monitorserver/udpClient/udpClient.java | UTF-8 | 1,853 | 2.390625 | 2 | [] | no_license | package org.nit.monitorserver.udpClient;
import io.vertx.core.Future;
import io.vertx.core.Vertx;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.datagram.DatagramSocket;
import io.vertx.core.datagram.DatagramSocketOptions;
public class udpClient {
public int port;
public String address;
public i... | true |
40c795c453ab48c813c1828d06f9da5f24930fff | Java | gurjeet/sqlg | /sqlg-test/src/main/java/org/umlg/sqlg/test/schema/TestGlobalUniqueIndex.java | UTF-8 | 27,747 | 2.421875 | 2 | [
"MIT"
] | permissive | package org.umlg.sqlg.test.schema;
import org.apache.tinkerpop.gremlin.structure.Edge;
import org.apache.tinkerpop.gremlin.structure.T;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.junit.Assert;
import org.junit.Test;
import org.umlg.sqlg.structure.*;
import org.umlg.sqlg.structure.topology.*;
impo... | true |
998015b8fdb3df705dbb9db7d666076bc0613487 | Java | badbuda/JavaProjects | /CDUD/crudSQL/HttpClientMonitor.java | UTF-8 | 2,121 | 2.5 | 2 | [] | no_license | package il.co.ilrd.sql;
import java.io.IOException;
import java.util.Observable;
import java.util.Observer;
import com.google.gson.JsonObject;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.ht... | true |
8ddacf0811953cf5c986d9cf831f8040fb0a125a | Java | bechte/JUT | /src/test/java/de/bechte/jut/matchers/MultipleTimesTest.java | UTF-8 | 1,502 | 2.8125 | 3 | [] | no_license | /*
* Copyright (c) 2014. Stefan Bechtold. All rights reserved.
*/
package de.bechte.jut.matchers;
import de.bechte.jut.annotations.Test;
import static de.bechte.jut.matchers.ExpectThrowable.expectThrowable;
import static de.bechte.jut.matchers.MultipleTimes.multipleTimes;
import static org.hamcrest.MatcherAssert.a... | true |
d6d197ef238992fac7ad88356771c95356d79ec8 | Java | Jason-githubs/repo-jt | /jt-common/src/main/java/com/jt/vo/SysResult.java | UTF-8 | 1,568 | 3.046875 | 3 | [] | no_license | package com.jt.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
/**
* 该VO对象是系统返回值VO对象,主要包含3个属性
* 1.设定状态码 200表示执行成功 201执行失败 人为定义的(和浏览器没关系)业务定义.
* 2.定义返回值信息 服务器可能会给用户一些提示信息.例如:执行成功,用户名或密码错误等
* 3.定义返回值对象 服务器在后端处理完成业务之后,将对象返回给前端... | true |
6cdb813ab62b42088bdd7c687fffb0acbff8ac0f | Java | xanthos203/Pac-Man | /Pac-Man/src/control/listeners/WindowListener.java | ISO-8859-1 | 3,656 | 3.328125 | 3 | [] | no_license | package control.listeners;
import java.awt.Component;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import view.frames.GameMainFrame;
/**Diese <i>Listener-Klasse</i> namens <b>WindowListener</b> wird aufgerufen, wenn der... | true |
c9dc369db59cd659e37632dc4e3abd45ffbbb8f9 | Java | Davi-zzz/Login-e-Cadastro-de-Usuario-JSF | /src/controller/WelcomeController.java | UTF-8 | 614 | 1.984375 | 2 | [] | no_license | package controller;
import java.io.Serializable;
import javax.faces.view.ViewScoped;
import javax.inject.Named;
import model.User;
import util.Session;
import util.Util;
@Named
@ViewScoped
public class WelcomeController implements Serializable {
/**
*
*/
private static final long serialVersionUID = -83941... | true |
3b252b44259196e64c96d6c5f71bfac6f7ef8afb | Java | matheusspaiva/projeto_java | /trabalho/src/view/Inicio.java | UTF-8 | 5,199 | 2.21875 | 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.
*/
/**
*
* @author mathe
*/
package view;
public class Inicio extends javax.swing.JFrame {
/**
* Creates new form principal
... | true |
378229f5b39ba5c5527d569976d7bcf65c192aac | Java | vjetteam/vjet | /core/org.ebayopensource.vjet.core.jsgenshared/src/org/ebayopensource/dsf/jsgen/shared/validation/vjo/semantic/rules/VjoRepoGenerator.java | UTF-8 | 3,231 | 1.90625 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2005-2011 eBay Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available ... | true |
afe64bfec361a20f738d2096ad2d19fd7ca0ee4d | Java | MShultz/Shopping-List | /src/shultz/shopping/Logout.java | UTF-8 | 923 | 2.296875 | 2 | [] | no_license | package shultz.shopping;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
@WebServle... | true |
258e015dce7781c20c3b1b552568eb5195e3d50a | Java | elaine-mou-nisc/Dump | /src/com/example/SystemHealth_Android/MyActivity.java | UTF-8 | 3,538 | 2.375 | 2 | [] | no_license | package com.example.SystemHealth_Android;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
/*
* First screen; displays tile fragments to click and lead into activities
*
*/
public class MyActivity exten... | true |
64ea20e962f9044c08150ca2baf427292b15fccf | Java | Seojeonguk/Algorithm_practice | /BOJ/6889.java | UTF-8 | 1,140 | 3.3125 | 3 | [] | no_license | import java.util.*;
import java.io.*;
public class Main {
static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
static StringTokenizer st;
static StringBuilder sb = new StringBuilder();
pu... | true |
b2457d449f36bb8db266c4314c502c82aaa6ee4c | Java | alexand34/algorithms | /lab11/src/Main.java | UTF-8 | 1,534 | 2.890625 | 3 | [] | no_license | import java.util.List;
public class Main {
public static void main(String[] args)
{
Node nLutsk=new Node("Lutsk");
Node nKovel=new Node("Kovel");
Node nRatne=new Node("Ratne");
Node nKK=new Node("Kamin'-Kashyrs'kyi");
Node nManevichy=new Node("Manevichy");
Node... | true |
3e88cc80d352a325b2ee724ac554cc8c2972cfda | Java | Bharathstark/Hibernate | /com/hibernate/project/EmployeeMain2.java | UTF-8 | 487 | 2.328125 | 2 | [] | no_license | package com.hibernate.project;
import com.hibernate.dao.EmployeeAddDao;
import com.hibernate.datamodel.Address;
import com.hibernate.datamodel.EmployeeAddress;
//Component mapping between Employee and address
public class EmployeeMain2 {
public static void main(String args[])
{
EmployeeAddDao ME = new EmployeeAddDao(... | true |
f87a646965a6bc775edef0a6d4682b64f648acd9 | Java | EfraimChu/CodeDemo | /Test.java | UTF-8 | 1,230 | 3.15625 | 3 | [] | no_license | import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.IntStream;
/**
* @Author efraim.zhu
* @Date 2020/5/28
**/
public class Test {
public static void main(String[] args) {
String re = MessageFormat.format("{0},{1}", 11, "haha");
System.out.p... | true |
ea885c3186e8f28b22948aaa85ba258a658aac19 | Java | unenergizer/MPRPG | /MPRPG/src/com/minepile/mprpg/items/ItemIdentifierManager.java | UTF-8 | 1,043 | 2.703125 | 3 | [] | no_license | package com.minepile.mprpg.items;
import net.md_5.bungee.api.ChatColor;
import org.bukkit.entity.Player;
import com.minepile.mprpg.MPRPG;
public class ItemIdentifierManager {
//setup instance variables
public static MPRPG plugin;
static ItemIdentifierManager itemIdentifierManagerInstance = new ItemIdentifierMa... | true |
ca667a02510cba526d73513f8c6b38ae7835f1c5 | Java | singh-ajeet/leetcode | /src/main/java/org/ajeet/algorithms/concurrency/Solution.java | UTF-8 | 2,037 | 2.9375 | 3 | [] | no_license | package org.ajeet.algorithms.concurrency;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;
class Solution {
private static int K;
private static long maxAllowed = 100;
private static Atomi... | true |