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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
fbfa3393db4c1a0c9ada2cda405b5dc4517224a1 | Java | dhis2/dhis2-core | /dhis-2/dhis-web-api/src/main/java/org/hisp/dhis/webapi/filter/AppCacheFilter.java | UTF-8 | 4,588 | 1.726563 | 2 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | /*
* Copyright (c) 2004-2022, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of cond... | true |
b4768f42f5a68480b0c00d9c8933178623ca4473 | Java | dubenju/javay | /src/java/com/tulskiy/musique/gui/menu/LibraryMenu.java | UTF-8 | 2,584 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2008, 2009, 2010, 2011 Denis Tulskiy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
... | true |
8e50e6d2bb91b5abe0237afcce1eb5f38b3f8b67 | Java | SergioCarvalho/SocialSports | /SocialSportsPlatform/src/indexacao/Evento.java | ISO-8859-2 | 2,637 | 2.90625 | 3 | [] | no_license | package indexacao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.Vector;
public class Evento {
public static Vector<String> devolveEventosBD() {
// TODO Auto-generated method stub
Vector<String> vector_eventos = new Vector<Stri... | true |
2f2914cf9b4c50619a3c9975299d16e82959defa | Java | vijayks25/Java | /Polygon.java | UTF-8 | 448 | 3.09375 | 3 | [] | no_license | public class Polygon
{
Point [] vertices;
Polygon(int n)
{
vertices = new Point[n];
}
Polygon()
{
vertices = new Point[4];
}
float perimeter()
{
float per=0;
for (int i = 0;i < vertices.length-1; i+=1)
{
per += vertices[i].distan... | true |
7d6dc8ae5e01b0d2cc0fe5338fcfdb126e355134 | Java | lufei1992/coderising | /coreJava/src/main/java/java36/c1/s02/Demo02.java | UTF-8 | 2,860 | 3.84375 | 4 | [] | no_license | package java36.c1.s02;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Objects;
/**
* Exception 实践选择
*/
public class Demo02 {
public static void main(String[] args) {
readPreferences1(null);
readPrefer... | true |
d298e8cc5c764a35a3c67122f773193786ac2ea6 | Java | CyranoChen/HAK-AMS | /fqdb/fqdb/src/main/java/com/nlia/fqdb/service/impl/CheckInDeskResolve.java | UTF-8 | 5,484 | 1.984375 | 2 | [] | no_license | package com.nlia.fqdb.service.impl;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Resource;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.DocumentHelper;
import org.dom4j.Node;
import org.springframework.stereotype.Service;
import com.nlia.fqd... | true |
4d64e08625e4161ea83fffa0aa88dae2ea4bbb0f | Java | Dowat/main | /src/main/java/seedu/task/logic/commands/DeleteTaskCommand.java | UTF-8 | 2,278 | 2.984375 | 3 | [
"MIT"
] | permissive | package seedu.task.logic.commands;
import java.util.logging.Logger;
import seedu.task.model.item.ReadOnlyTask;
import seedu.task.model.item.Task;
import seedu.task.model.item.UniqueTaskList.TaskNotFoundException;
import seedu.task.commons.core.LogsCenter;
import seedu.task.commons.core.Messages;
import seedu.task.com... | true |
4548b288c1219f3b5787c0b83c7800162658c295 | Java | RainmanJin/ZhejiangMicroEnt | /.svn/pristine/a4/a42143260b009dcb1b162c79570734df431fbb64.svn-base | UTF-8 | 7,544 | 2.3125 | 2 | [] | no_license | package gscloud;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import cn.gov.zj.gsj.v1.api.GsjClient;
import cn.gov.zj.gsj.v1.obj.entity.DeleteRequest;
import cn.gov.zj.gsj.v1.obj.entity.DeleteResponse;
import cn.gov.zj.gsj.v1.obj.entity.Inpu... | true |
2b094fdecb16696663dabdc01124c888c92595ec | Java | floodboad/IBM-Resilience4J-June | /functional-Programm/src/main/java/com/example/demo/LambdaArgsParameters.java | UTF-8 | 2,303 | 3.921875 | 4 | [] | no_license | package com.example.demo;
@FunctionalInterface
interface Single {
void setName(String name);
}
//Two or more parameters
@FunctionalInterface
interface Concatation {
void concat(String firstName, String lastName);
}
//ReturnValues
@FunctionalInterface
interface Producer {
String produce();
}
@FunctionalI... | true |
8b2894dc1b895f19eca12f5d68d13ba72e1d4665 | Java | littleredcap/Douyu | /my_player/src/main/java/liang/zhou/lane8/no5/my_player/common/Loader.java | UTF-8 | 182 | 1.6875 | 2 | [] | no_license | package liang.zhou.lane8.no5.my_player.common;
import java.util.Map;
public interface Loader<T> {
void load(Map<String,String> header,String url,ServerResponse<T> listener);
}
| true |
ef8e36b369303aa59f5ce708a4a71c244e98c21c | Java | webroboteu/sdk | /src/webrobotapi/model/transform/Delete_bot_from_idRequestProtocolMarshaller.java | UTF-8 | 2,103 | 1.992188 | 2 | [] | no_license | /**
* null
*/
package webrobotapi.model.transform;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.Request;
import com.amazonaws.http.HttpMethodName;
import webrobotapi.model.*;
import com.amazonaws.transform.Marshaller;
import com.amazonaws.protocol.*;
import com.... | true |
4686cde3e82a20dc7c88429aa58561fa4169870c | Java | logzio/logzio-java-sender | /logzio-sender-test/src/main/java/io/logz/test/MockLogzioBulkListener.java | UTF-8 | 10,992 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package io.logz.test;
import com.google.common.base.Splitter;
import com.google.common.base.Throwables;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import org.eclipse.jetty.io.RuntimeIOException;
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.Server;
import org.eclip... | true |
bc84d19797cef1b95906835a68a088cfc4c9f5de | Java | zzhujing/JavaDataStructureAndAlgorithm | /src/test/java/com/concurrent/juc/AtomicIntegerTest.java | UTF-8 | 845 | 3.125 | 3 | [] | no_license | package com.concurrent.juc;
import org.junit.Test;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.stream.IntStream;
/**
* AtomicInteger 之类的原子类型主要是通过{@link sun.misc.Unsafe#compareAndSwapInt(Object, long, int, int)}
* 来进行CPU指令级别的比较和赋值
*/
public class AtomicIntegerTest {
@Test
public voi... | true |
5695bd1c018aab1c0a8ccdf5a87d15744de903dc | Java | GLTron3000/PacmanProject | /src/main/java/entity/Pacgum.java | UTF-8 | 787 | 2.890625 | 3 | [] | no_license | package entity;
import game.Kernel;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.paint.Color;
public class Pacgum extends Pickable{
public Pacgum(double x, double y) {
super(x, y);
type="Pacgum";
}
@Override
public void onPick(Ke... | true |
bb5e271a798b15e32532b5e3acf394289806f924 | Java | jainaks2010/SpringBootDemoActuator | /src/main/java/com/demo/spring/boot/actuator/authentication/UserServiceHealth.java | UTF-8 | 820 | 1.867188 | 2 | [] | no_license | package com.demo.spring.boot.actuator.authentication;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.endpoint.web.annotation.RestControllerEndpoint;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annota... | true |
44b2afd2f6948999b781bd0c93fae7b0505225dc | Java | jsonx-org/java | /generator/src/main/java/org/jsonx/Spec.java | UTF-8 | 1,477 | 2.59375 | 3 | [
"MIT"
] | permissive | /* Copyright (c) 2020 JSONx
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distrib... | true |
a34ab33635257a9667a649b9b57ced375cb5f8de | Java | piupiuhwt/codenote | /src/main/java/com/hwt/notes/basic/RadixExample.java | UTF-8 | 1,493 | 2.96875 | 3 | [] | no_license | package com.hwt.notes.basic;
import java.lang.management.ManagementFactory;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
//进制问题
//java中默认没有无符号数
//所以记得 int类型 二进制表示时 最高位为1 表示负数
//所以下方得最后一个输出为false
//改正方法时在进制数据后方加个L使他变为long类型
public class RadixExample {
... | true |
caeaf1c52115c7a3cd1bf7c94410f19e823e4f08 | Java | damithsenanayake/openaz-pep-implementation | /src/main/java/org/wso2/identity/entitlement/proxy/pep/PepResponseImpl.java | UTF-8 | 15,377 | 1.96875 | 2 | [] | no_license | package org.wso2.identity.entitlement.proxy.pep;
import java.util.HashMap;
import org.openliberty.openaz.azapi.AzResponseContext;
import org.openliberty.openaz.azapi.AzResult;
import org.openliberty.openaz.azapi.AzEntity;
import org.openliberty.openaz.azapi.AzObligations;
import org.openliberty.openaz.azapi.c... | true |
b3825b29e94147e1c2bfde61538dc6ddfa8b928e | Java | AlexMaskovyak/hardware-varying-network-simulator | /src/network/IData.java | UTF-8 | 365 | 2.734375 | 3 | [] | no_license | package network;
/**
* Describes an abstract unit of data.
* @author Alex Maskovyak
*
*/
public interface IData {
/**
* Obtains the unique identifier for this piece.
* @return the ID;
*/
public int getID();
/**
* Obtains the actual content stored in this data wrapper.
* @return Dat... | true |
987d0ff3d2eed0de1043b3d17807c060a9aab682 | Java | ZackZhouc/springboot-mybatis-base | /web/src/main/java/com/yzj/cep/web/config/BadRequestHandler.java | UTF-8 | 1,486 | 2.171875 | 2 | [] | no_license | package com.yzj.cep.web.config;
import com.yzj.cep.common.pojo.vo.ResponseVO;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import javax.servlet.http.HttpServletRequest;
@RestControllerAdvice
public class BadRequestHandler {
... | true |
1f90ed2327ced9acb52ebf2eb918e19bad1ccbf5 | Java | alsysew/workspace_java_VM | /VeiculosAbstratos/src/model/Moto.java | ISO-8859-1 | 491 | 2.875 | 3 | [] | no_license | package model;
public class Moto extends Veiculo{
private String estilo;
public Moto(String marca, String placa, String estilo) {
super(marca, placa);
this.estilo = estilo;
}
@Override
public void acelerar() {
System.out.println("Moto "+super.marca+"/"+super.placa+"/"+this.estilo+" acelerando na mo! PROPR... | true |
8b331aa535067dfa6dc068acd9bd93de9cb0d28f | Java | pointdisarr/flyinna | /src/main/java/DAO/DAOflight.java | UTF-8 | 2,992 | 2.953125 | 3 | [] | no_license | package DAO;
import console.Console;
import console.SystemConsole;
import entity.City;
import entity.Flight;
import java.io.*;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.ArrayList;
import java.util.Random;
public class DAOflight implements DAO {
pri... | true |
cfb803afd02fc2d4e8654764a53d8896db0a989b | Java | StutiSri/twu-biblioteca-stutisrivastava | /src/main/java/com/twu/io/outputwriter/ConsoleOutputWriter.java | UTF-8 | 610 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | package com.twu.io.outputwriter;
import com.twu.io.output.ConsoleOutput;
import java.io.BufferedWriter;
import java.io.IOException;
public class ConsoleOutputWriter implements OutputWriter {
private final BufferedWriter bufferedWriter;
public ConsoleOutputWriter(BufferedWriter bufferedWriter) {
thi... | true |
671598d4a6a3c9caec8a3a475c9c51cb42e78fe5 | Java | GabeOchieng/ggnn.tensorflow | /data/libgdx/AndroidOnscreenKeyboard_subSequence.java | UTF-8 | 121 | 1.835938 | 2 | [] | no_license | @Override
public CharSequence subSequence(int start, int end) {
Log.d("Editable", "subSequence");
return null;
}
| true |
29057f210abd976794e331eaf913920ebdd182dd | Java | anantkshirsagar/FingerPrintRecognition | /src/com/mantra/service/BiometricService.java | UTF-8 | 1,423 | 2.75 | 3 | [] | no_license | package com.mantra.service;
import java.util.logging.Logger;
import com.mantra.manager.FingerPrintEventManager;
import MFS100.FingerData;
import MFS100.MFS100;
public class BiometricService {
private static final Logger LOG = Logger.getLogger(BiometricService.class.getName());
private final MFS100 mfs1... | true |
df41359ac72c68e14cdbb21539a279630132a0f8 | Java | Cantara/Whydah-SecurityTokenService | /src/main/java/net/whydah/sts/errorhandling/AppExceptionMapper.java | UTF-8 | 560 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package net.whydah.sts.errorhandling;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
@Provider
@Produces(MediaType.APPLICATION_XML)
public class AppExceptionMapper implements ExceptionMapper<App... | true |
e2ef0ea4bb746a0a417da4ebc1f8238655937c4b | Java | sebaudracco/bubble | /com/inmobi/rendering/a$4.java | UTF-8 | 2,217 | 1.8125 | 2 | [] | no_license | package com.inmobi.rendering;
import com.inmobi.commons.core.utilities.Logger;
import com.inmobi.commons.core.utilities.Logger.InternalLogLevel;
import com.inmobi.rendering.InMobiAdActivity.C3179b;
/* compiled from: JavaScriptBridge */
class a$4 implements C3179b {
final /* synthetic */ String f7970a;
final /... | true |
70c44be7ff14eb40cdbd420f0754bb254e831044 | Java | flywind2/joeis | /src/irvine/oeis/a015/A015939.java | UTF-8 | 484 | 2.765625 | 3 | [] | no_license | package irvine.oeis.a015;
import irvine.math.z.Z;
import irvine.oeis.Sequence;
/**
* A015939 <code>A015938(n)-2^n</code>.
* @author Sean A. Irvine
*/
public class A015939 implements Sequence {
private int mN = 0;
@Override
public Z next() {
Z k = Z.ONE.shiftLeft(++mN);
long j = 0;
final Z n = Z... | true |
53d02b82b0756be40116bbc7df0871ade3b66ab1 | Java | yamiko/cv_service | /src/main/java/org/cvs/application/services/CandidateServiceImpl.java | UTF-8 | 6,036 | 2.5625 | 3 | [
"MIT"
] | permissive | package org.cvs.application.services;
import java.util.Comparator;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import javax.validation.ConstraintViolation;
import javax.validation.ConstraintViolationException;
import javax.validation.Validator;
import org.cvs.application.exceptio... | true |
c30b5ec82def4f4374938a7583024686d4712531 | Java | lfystyle/YiXianUser | /app/src/main/java/com/example/lfy/myapplication/SubmitOrder/PayType.java | UTF-8 | 2,803 | 1.945313 | 2 | [] | no_license | package com.example.lfy.myapplication.SubmitOrder;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import com.example.lfy.myapplication.Bea... | true |
f4bd706c2bb2f8db1c9c3bbd6f90b6123a776b10 | Java | Jcondori/Template_PFUltima | /src/java/Controller/Controller.java | UTF-8 | 498 | 1.84375 | 2 | [] | no_license | package Controller;
import java.io.IOException;
import javax.inject.Named;
import javax.enterprise.context.SessionScoped;
import java.io.Serializable;
import javax.faces.context.FacesContext;
@Named(value = "controller")
@SessionScoped
public class Controller implements Serializable {
public void tem... | true |
7596086c60893d24dca7a8e26d9490852db1c649 | Java | jojo8775/leet-code | /src/main/java/interview/leetcode/prob/MinimizeDeviationInArray.java | UTF-8 | 2,048 | 4.1875 | 4 | [] | no_license | package interview.leetcode.prob;
import java.util.PriorityQueue;
/**
* You are given an array nums of n positive integers.
You can perform two types of operations on any element of the array any number of times:
If the element is even, divide it by 2.
For example, if the array is [1,2,3,4], then you can do this op... | true |
34a9a9fb0f60428cae1342f8085565cbda23b51c | Java | nmerris/StockUp | /src/main/java/com/stockup/group/repository/TransactionRepo.java | UTF-8 | 221 | 1.632813 | 2 | [] | no_license | package com.stockup.group.repository;
import com.stockup.group.model.Transaction;
import org.springframework.data.repository.CrudRepository;
public interface TransactionRepo extends CrudRepository<Transaction, Long>{
}
| true |
aa757d3be34fbd769ecfc02ffa034de80fb0f963 | Java | jacobthewest/340_Twitter_Clone | /app/src/main/java/edu/byu/cs/tweeter/client/model/service/UpdateFollowServiceProxy.java | UTF-8 | 1,246 | 2.5 | 2 | [] | no_license | package edu.byu.cs.tweeter.client.model.service;
import java.io.IOException;
import edu.byu.cs.tweeter.client.model.net.ServerFacade;
import edu.byu.cs.tweeter.shared.net.TweeterRemoteException;
import edu.byu.cs.tweeter.shared.service.UpdateFollowService;
import edu.byu.cs.tweeter.shared.service.request.UpdateFollow... | true |
f072ea738513d4ebc480ddf13c14344abbaa8349 | Java | Yongki40/belajar-MDP | /fragment-v3/app/src/main/java/com/belajar/fragment_v3/Pengeluaran.java | UTF-8 | 2,437 | 2.28125 | 2 | [] | no_license | package com.belajar.fragment_v3;
import android.graphics.Color;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.... | true |
8ab6f7d04d8c9fa1e87e1194369f5dab699972de | Java | karino2/sk-livejournal-offline | /lj/src/com/googlecode/karino/ProfileManager.java | UTF-8 | 3,231 | 2.203125 | 2 | [] | no_license | package com.googlecode.karino;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import com.googlecode.karino.R;
import com.googlecode.karino.db.BlogDBAdapter;
import android.app.Activity;
import android.database.Curso... | true |
ffbd13d6ce61db937517eecdff42f54fe11b6f5f | Java | chenrushui/SpringBootProject | /src/main/java/com/demo/www/springbootdemo/controller/DoctorEducationController.java | UTF-8 | 2,116 | 2.203125 | 2 | [] | no_license | package com.demo.www.springbootdemo.controller;
import com.demo.www.springbootdemo.module.anno.loginpermission.LoginPermission;
import com.demo.www.springbootdemo.pojo.BaseResult;
import com.demo.www.springbootdemo.pojo.DoctorEducation;
import com.demo.www.springbootdemo.service.DoctorEducationService;
import io.swagg... | true |
74f809e914ad667545f88749e8e8daf8bceb7cbd | Java | Siddhartha1193/Just-ParkIt | /app/src/main/java/com/parkingapp/sample/MainActivity.java | UTF-8 | 58,348 | 1.742188 | 2 | [] | no_license | package com.parkingapp.sample;
/*
* File history
* 1. Raymond Thai
* changes: added onlocationchangelistener to setupmaps method which changes map camera to user's current location
* changed information snippet to parking spot snippet
* added personal icons
* implemented pooja's fix to ... | true |
3dc54a8fa70e88cee3285ff008792f6d8229d6f5 | Java | Phuriwut/Worker | /src/Database/DBInstance.java | UTF-8 | 969 | 2.765625 | 3 | [] | no_license | package Database;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class DBInstance {
Connection con;
Statement stmt;
DBInstance() throws SQLException, ClassNotFoundExc... | true |
603dcef64031f262a496a84f3bdefe1da0685772 | Java | jimyeongKo/study_cafe | /src/main/java/com/study/cafe/studycafe/global/error/ErrorCode.java | UTF-8 | 2,060 | 2.28125 | 2 | [] | no_license | package com.study.cafe.studycafe.global.error;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
@Getter
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ErrorCode {
//common
INVALID_INPUT_VALUE(400, "C001", "올바르지 않은 형식입니다"),
METHOD_NOT_ALLOWED(405, "C002", "지원하지 않는 메소드입니다.... | true |
07720860ba15413d06c3596e6a14e65303528be6 | Java | zhongxingyu/Seer | /Diff-Raw-Data/27/27_16dfbf19876c2652fab66ad8c1cf39274e9d4e7c/ClipOptionsPane/27_16dfbf19876c2652fab66ad8c1cf39274e9d4e7c_ClipOptionsPane_s.java | UTF-8 | 8,883 | 2.375 | 2 | [] | no_license | package gui;
import static gui.GuiConstants.LARGE_BUTTON;
import static gui.GuiConstants.LARGE_BUTTON_RADIUS;
import static gui.GuiConstants.SMALL_BUTTON;
import static gui.GuiConstants.STANDARD_GROWTH_FACTOR;
import static sound.MusicConstants.REVERSE_MAJOR_CHORD;
import java.awt.BasicStroke;
import java.a... | true |
ab4f569a9c61e81e9a05c527526ae8b4f24378d3 | Java | sh-zeynalli/todoList | /src/main/java/com/example/todolist/util/constant/ErrorCodes.java | UTF-8 | 460 | 2.578125 | 3 | [] | no_license | package com.example.todolist.util.constant;
public enum ErrorCodes {
GENERAL_ERROR(5001,"General Error"),
DATA_NOT_FOUND(5002,"Empty Field"),
SUCCESS(0,"Success");
private int code;
private String message;
ErrorCodes(int code, String message) {
this.code = code;
this.messag... | true |
b5abf6638b122f8b40db5e511c2f3e4acd57b645 | Java | cstdiohao/xiaogao | /leetcode/src/main/java/com/leetcode/Leetcode85.java | UTF-8 | 1,696 | 3.125 | 3 | [] | no_license | package com.leetcode;
public class Leetcode85 {
public static void main(String[] args) {
Leetcode85 leetcode85 = new Leetcode85();
char[][] m = {{'1', '0', '1', '0', '0'},
{'1', '0', '1', '1', '1'},
{'1', '1', '1', '1', '1'},
... | true |
b8f63701342d0f27ba7b84c3f929958d880bbe4d | Java | mmuellersoppart/MathematicianInTime | /src/main/java/org/openjfx/HomeController.java | UTF-8 | 1,408 | 2.53125 | 3 | [] | no_license | package org.openjfx;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
import java.io.IOExceptio... | true |
88ccc640a59dbfc7c1233f6137c05fe00dcf6486 | Java | thyferny/indwa-work | /AlpineMinerWeb/src/com/alpine/miner/impls/flowHistory/FlowHistoryInfo.java | UTF-8 | 2,559 | 2.265625 | 2 | [] | no_license | package com.alpine.miner.impls.flowHistory;
import java.io.File;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.alpine.miner.impls.web.resource.FlowInfo;
public class FlowHistoryInfo implements Serializable {
private static final long serialVersionUID = 62992221734... | true |
b93de225e5ff8fed387fb0d72b643bbb76858cde | Java | VidhyaMadhavan/code_kata6 | /leapyear.java | UTF-8 | 442 | 3.140625 | 3 | [] | no_license | import java.io.*;
import java.lang.*;
class leapyear
{
public static void main(String args[])throws Exception
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int year;
System.out.println("Enter year:");
year=Integer.parseInt(br.readLine());
if(year>0&&year%4==0)
{
System.out.println(year+" is... | true |
7e0f9b81b9254d7361a145d6e9fa1e6d864578c4 | Java | ljukip/ISA | /application/src/main/java/com/booking/application/model/korisnici/AdminKompanije.java | UTF-8 | 3,903 | 2.328125 | 2 | [] | no_license | package com.booking.application.model.korisnici;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persiste... | true |
82a660749edd6a14105a7c01706eaa2770b3a07a | Java | dengkang/springboot-laboratory | /rabbitmq/src/main/java/com/nged/rabbitmq/Consumer.java | UTF-8 | 1,122 | 2.0625 | 2 | [] | no_license | package com.nged.rabbitmq;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
/**
* @author: dengk
* @Date: 2019/4/30 12:04
* @Description:
*/
@Component
public class Consumer {
@RabbitListener(queues = RabbitConfig.topicQueue)
public void c... | true |
b5b3ae61f05780141464672209cd168ac9b38c29 | Java | ojsanglovememe/mylive | /domain/src/main/java/com/src/isec/domain/interactor/ExitRoomUseCase.java | UTF-8 | 1,524 | 2.15625 | 2 | [] | no_license | package com.src.isec.domain.interactor;
import com.src.isec.domain.BaseParams;
import com.src.isec.domain.entity.BaseResponse;
import com.src.isec.domain.repository.IUserRepository;
import javax.inject.Inject;
import io.reactivex.Observable;
/**
* @author wj
* @name IsecLive
* @class name:com.src.isec.domain.int... | true |
7826d2cb76249c64d0df544c9dbd433a25e92038 | Java | nijesung/Javafirst | /nije0801/src/DBex/DeptnoEx.java | UTF-8 | 2,066 | 3.234375 | 3 | [] | no_license | package DBex;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.util.Scanner;
public class DeptnoEx {
public static void main(String[] args) {
Connection con = null;
PreparedStatement ppsm = null;
Scanner sc = new Scanner(System.in);
... | true |
1874b79cab3dc37d289271d51e7bf829708d82a6 | Java | songc/MyPlant | /src/main/java/com/songc/core/ap/detect/wave/FindAPPositionIndex.java | UTF-8 | 11,554 | 2.40625 | 2 | [] | no_license | package com.songc.core.ap.detect.wave;
import java.util.Arrays;
/**
* Created by songc on 2/14/2017.
*/
class FindAPPositionIndex {
private Wave lowFilterWave;
private Wave centralDiffWave;
private Peaks peaksNoThreshold;
private Peaks peaksWithThreshold;
private int sampleFrequency;
private... | true |
a8344b8ab7ae6c6af15d2544a93b00054ef7a44b | Java | alenafdr/gamelexicon | /src/main/java/ru/study/gamelexicon/service/WordServiceImpl.java | UTF-8 | 1,800 | 2.28125 | 2 | [] | no_license | package ru.study.gamelexicon.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import ru.study.gamelexicon.dao.WordDao;
import r... | true |
effd11761ef230085e3704ac2c2a46b0449b17d9 | Java | ericignite/lusaapp | /app/src/main/java/com/example/android/sunshine/app/routing/models/CrewMember.java | UTF-8 | 358 | 2.09375 | 2 | [] | no_license | package com.example.android.sunshine.app.routing.models;
/**
* Created by lancehughes on 9/17/14.
*/
public class CrewMember {
public String id;
public String name;
public String leader;
public CrewMember(String id, String name, String leader)
{
this.id = id;
this.name = name;
... | true |
32d0afc010295b5b036e714a69c2eed0ce1d0a7f | Java | sgros/activity_flow_plugin | /TestApplications/TF-BETA-THERMATK-v5.7.1/DecompiledCode/JADX/src/main/java/org/telegram/messenger/C0770-$$Lambda$MessagesStorage$ANII5DCxsANA4ox20RDROdwMfjc.java | UTF-8 | 592 | 1.773438 | 2 | [] | no_license | package org.telegram.messenger;
/* compiled from: lambda */
/* renamed from: org.telegram.messenger.-$$Lambda$MessagesStorage$ANII5DCxsANA4ox20RDROdwMfjc */
public final /* synthetic */ class C0770-$$Lambda$MessagesStorage$ANII5DCxsANA4ox20RDROdwMfjc implements Runnable {
private final /* synthetic */ MessagesStor... | true |
07ef532d926991b4dfc9a2f126a5e2b1b626a4da | Java | herojing/JokeTask | /app/src/main/java/com/example/wangjing/joketask/adapter/JokeAdapter.java | UTF-8 | 2,186 | 2.40625 | 2 | [] | no_license |
package com.example.wangjing.joketask.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.example.wangjing.joketask.R;
import com.example.wangjing.joketask.e... | true |
5f67443708cd6678768c63bb999c74e9c53a7e61 | Java | LuizFernandesOliveira/lpp-java-learning-solid | /src/main/java/solid/srp/App.java | UTF-8 | 260 | 2.34375 | 2 | [] | no_license | package solid.srp;
public class App {
public static void main(String[] args) {
Calculator calculator = new Calculator();
calculator.sum(10, 10);
calculator.subtract(10, 10);
calculator.multiply(10, 10);
calculator.divide(10, 10);
}
}
| true |
6f699fa08b59cde10bc0e7ca50f2a811170ba81e | Java | daniela-becheanu/POO--tema1 | /src/compare/CompareActors.java | UTF-8 | 490 | 2.828125 | 3 | [] | no_license | package compare;
import convert.Actor;
import java.util.Comparator;
public final class CompareActors implements Comparator<Actor> {
@Override
public int compare(final Actor actor1, final Actor actor2) {
if (actor1.getFirstCriterion() > actor2.getFirstCriterion()) {
return 1;
}
... | true |
5c86daf4c2d528a31f12351b6ec3ca1fcf256729 | Java | princesingh00/Java-Functional | /twoD.java | UTF-8 | 891 | 3.234375 | 3 | [] | no_license | import java.util.Scanner;
import java.io.*;
import java.util.ArrayList;
public class twoD {
public static void main(String[] args)
{ Scanner obj = new Scanner(System.in);
// PrintWriter x = new PrintWriter(System.out);
System.out.println("Enter the Number of rows : ");
int row = obj.nextInt(... | true |
8520a8c7d5e3fc5b4ce7d1ce4a43dfef0a8851c5 | Java | tusharmahamuni/Ladder | /src/main/java/com/snl/model/Square.java | UTF-8 | 1,547 | 3.359375 | 3 | [] | no_license | package com.snl.model;
public class Square {
protected int position;
protected Board board;
private Player player;
public Square(Board board, int position) {
this.position = position;
this.board = board;
validate();
}
protected void validate() {
if(board == null) {
throw new IllegalArgumentExcepti... | true |
ee9a6f847a9d4d7551982a22542f4ec88c6bfe96 | Java | Ans123/ReadyBid | /rb-server-master/rb-server-api-aggregator/rb-server-api-main/src/main/java/net/readybid/api/main/access/PermissionsCheck.java | UTF-8 | 321 | 1.570313 | 2 | [] | no_license | package net.readybid.api.main.access;
import net.readybid.app.entities.authorization.dirty.InvolvedAccounts;
import net.readybid.auth.user.AuthenticatedUser;
/**
* Created by DejanK on 4/7/2017.
*
*/
public interface PermissionsCheck {
boolean check(AuthenticatedUser user, InvolvedAccounts involvedAccounts);
}... | true |
1e05918f99ea52440cb11d0c50dc6aac1dead07e | Java | kazak-358/Caloric | /src/main/java/net/caloric/controller/ControllerConstants.java | UTF-8 | 464 | 1.789063 | 2 | [] | no_license | package net.caloric.controller;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
public class ControllerConstants {
public static final ResponseEntity<?> CREATED_RESPONSE = new ResponseEntity<>(HttpStatus.CREATED);
public static final ResponseEntity<?> OK_RESPONSE = new R... | true |
281f44aa13340b1860d3a39b06fc1d4946f38e37 | Java | JMartinez7477/Util | /src/util/classes/RacingCondition.java | UTF-8 | 1,811 | 3.21875 | 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 util.classes;
import java.util.ArrayList;
/**
*
* @author S531749
*/
public class RacingCondition {
Stri... | true |
823c05b15b802805f55b1dd67d1ff9f0a6c26975 | Java | otaviohenrique1/Vecx-System-Java-Desktop | /Vecx System180/Sistema/moduloFinanceiroCompraTabelas/TabelaModeloHistoricoCompra.java | IBM852 | 1,847 | 2.765625 | 3 | [] | no_license | package moduloFinanceiroCompraTabelas;
import java.util.ArrayList;
import javax.swing.table.AbstractTableModel;
public class TabelaModeloHistoricoCompra extends AbstractTableModel{
/**
*
*/
private static final long serialVersionUID = 1L;
private ArrayList<HistoricoCompraTabela> listaHistorico... | true |
6cf919a0808d6fcbbc9f97d89d49813cc9c08dc0 | Java | wangchao550586585/nio | /src/main/java/nio/regex/A_Regex.java | UTF-8 | 638 | 3 | 3 | [] | no_license | package nio.regex;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class A_Regex {
public static void main(String[] args) {
String input = "str";
Pattern pattern = Pattern.compile("ABC|XYZ");
Matcher matcher = pattern.matcher(input);
String match0 = input.sub... | true |
10bbd4cf585c483b899b29d1dfc456da3085037d | Java | dancarvie/material-da-aula | /aula03/Exercicios/exercicio05.java | UTF-8 | 1,007 | 3.671875 | 4 | [] | no_license | package Exercicios;
import java.util.Scanner;
public class exercicio05 {
public static void main(String[] args) {
Scanner entrada = new Scanner(System.in);
double mediaAluno, mediaTurma, mediaGeral;
final int NUM_ALUNO = 3;
final int NUM_TURMA = 2;
mediaGeral = 0;
... | true |
24811ed16e331b5d4f417d427b1143c35f0c212e | Java | thanh23091991/FirstProjectGroup1 | /StudentManagerGroup1/src/main/java/com/studentmanager/entity/Diem.java | UTF-8 | 1,782 | 2.265625 | 2 | [] | no_license | package com.studentmanager.entity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;
@Entity
@IdClass(Diem.class)
@Table(name = "Diem")
public class Diem implements... | true |
a234e0f80b02840e8c11eaf7145b1979eb940818 | Java | liulei6696/A1Restaurant | /RestaurantClient/app/src/main/java/edu/neu/a1/restaurantclient/item/Chickens.java | UTF-8 | 248 | 2.515625 | 3 | [] | no_license | package edu.neu.a1.restaurantclient.item;
public class Chickens implements Item{
private final String name = "chickens";
private final static double price = 7.0;
@Override
public double getPrice() {
return price;
}
}
| true |
3c2dc463a096a15c14ea510f23409cfbe3dc136f | Java | xckNull/Algorithms-introduction | /src/test/java/algorithms/introduction/sort/test/RadixSortTest.java | UTF-8 | 361 | 2.5625 | 3 | [] | no_license | package algorithms.introduction.sort.test;
import java.util.Arrays;
import org.junit.Test;
import algorithms.introduction.sort.RadixSort;
public class RadixSortTest {
@Test
public void testRadixSort() {
int[] arr = new int[] { 1100, 192, 221, 12, 23 };
RadixSort.radixSort(arr, 10, 4);
System.... | true |
45c948b4ac8a26560fd14aae428e6c23ab4deb2e | Java | gjhutchison/pixelhorrorjam2016 | /core/src/com/kowaisugoi/game/rooms/RoomBathroomEntrance.java | UTF-8 | 8,526 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package com.kowaisugoi.game.rooms;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.utils.Timer;
import com.kowaisugoi.game.audio.AudioManager;
import com.kowaisugoi.game.audio.MusicId;
import com.kowaisugoi.game.aud... | true |
35dc62bb8602b73df2c951d62d0b119835a346fc | Java | mariadiana0914/HearMe | /app/src/main/java/com/girlesc/enguard/data/source/local/UserLocalDataSource.java | UTF-8 | 1,269 | 2.3125 | 2 | [] | no_license | package com.girlesc.enguard.data.source.local;
import com.girlesc.enguard.data.source.UserDataSource;
import com.girlesc.enguard.utils.AppExecutors;
import com.google.firebase.auth.AuthCredential;
public class UserLocalDataSource implements UserDataSource {
private static volatile UserLocalDataSource INSTANCE;
... | true |
8b9caf6a8c8e91e45f1880fb830ac4642051ac50 | Java | Udaydeep/Test-Repository | /String_Functions/src/main/java/com/excel/ReadDataExcel.java | UTF-8 | 1,038 | 2.765625 | 3 | [] | no_license | package com.excel;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
public class ReadDa... | true |
93f5fd8cc62449bd25692283a2b0e5b766f414b6 | Java | masud-technope/EMSE-2019-Replication-Package | /Extra-DS/Corpus/class/aspectj/716.java | UTF-8 | 9,138 | 1.640625 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is a... | true |
398f1a42f38042c9a7d971c63d9d2fa7705e2a05 | Java | Arnaud-PIGNEROL/Hadoop-MapReduce | /hadoop-examples-mapreduce/src/main/java/com/opstty/job/SumTrees.java | UTF-8 | 2,614 | 2.421875 | 2 | [] | no_license | package com.opstty.job;
import com.opstty.mapper.SumTreesMapper1;
import com.opstty.reducer.SumTreesReducer1;
import com.opstty.mapper.SumTreesMapper2;
import com.opstty.reducer.SumTreesReducer2;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWrita... | true |
1ace183720225a9148d2dae6d0b76731012b07c5 | Java | ribeirowill/Teste | /src/main/java/com/pc/cofipa/session/TabelaItensSaida.java | UTF-8 | 2,370 | 2.625 | 3 | [] | no_license | package com.pc.cofipa.session;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.stream.IntStream;
import com.pc.cofipa.model.Produto;
import com.pc.cofipa.model.ItemSaida;
class TabelaItensSaida {
private String uuid;
private List<Ite... | true |
2f9276996d7036065553cdc97765b9b197a3e3a7 | Java | emrekirman/kiemTracking | /src/main/java/com/tasinirdepo/dao/jpa/IslemCesidiRepositoryImpl.java | UTF-8 | 1,189 | 2.25 | 2 | [] | no_license | package com.tasinirdepo.dao.jpa;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;
import com.tasinirdepo.dao.IIslemCesidiRepository;
import com.... | true |
206c9bca37817a56911b9d4673b54a144ea67636 | Java | TaliosFactoryTech/QA-Testing-Automatization | /src/test/java/com/ea/SpringBasic/pages/GuideSelfOnboardingPages/Step11Page.java | UTF-8 | 1,460 | 2.09375 | 2 | [] | no_license | package com.ea.SpringBasic.pages.GuideSelfOnboardingPages;
import com.ea.SpringBasic.models.GuideDetails;
import com.ea.SpringBasic.pages.BasePage;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factor... | true |
1316a03b2d24163bc8dacca1e6d5026b82ea76b1 | Java | Eant99/effective-octo-eureka | /CWYTH/src/com/googosoft/controller/base/ProvincesController.java | UTF-8 | 1,053 | 1.867188 | 2 | [] | no_license | package com.googosoft.controller.base;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.google.gson.Gson;
import com.googos... | true |
504676012d404e7b2295c9882f296bacc27d10cd | Java | pynacl/amazon-mock | /app/src/main/java/com/pynacl/amazonmock/MainActivity.java | UTF-8 | 1,427 | 2.21875 | 2 | [] | no_license | package com.pynacl.amazonmock;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import com.pynacl.amazonmock.databinding.ActivityMainBinding;
import com.pynacl.amazonmock.models.Product;
public c... | true |
635df09b019414addad73bba0eabd4728bdd4eea | Java | JetBrains/intellij-community | /java/java-tests/testData/refactoring/methodDuplicates/ReturnField.java | UTF-8 | 614 | 2.828125 | 3 | [
"Apache-2.0"
] | permissive | class Return {
private Return myReturn;
private int myInt;
public Return <caret>method() {
myReturn = new Return();
myReturn.myInt++;
return myReturn;
}
public void contextLValue() {
myReturn = new Return();
myReturn.myInt++;
myReturn = null;
}
public void contextNoUsage() {
... | true |
81326561d2bcad17e39198510532f22b3e8922c2 | Java | Camibaza/turma37gen | /java/ECOMMERCE/src/entities/Carrinho.java | ISO-8859-2 | 2,922 | 3.359375 | 3 | [] | no_license | package entities;
import java.util.ArrayList;
import java.util.List;
public class Carrinho {
List<Carrinho> carrinho = new ArrayList<>();
//ATRIBUTOS
private String Produto;
private String codigo;
private double valor;
private int quantidade;
private double valorTotal;
int atualizaQuantidade;
... | true |
f22e3cf63722f60332f3c433c653ce54fceb6145 | Java | dudebf7/ADS2N14_1B | /Pessoa/Pessoa/src/com/senac/mvc/view/Visao.java | UTF-8 | 278 | 1.898438 | 2 | [] | no_license | package com.senac.mvc.view;
import com.senac.mvc.controller.Controlador;
public class Visao{
public static void main(String[] args) {
Controlador controlador=new Controlador();
controlador.obtemAgenda();
controlador.toString();
System.out.println(controlador);
}
} | true |
6f55de6e9918251359ae788fd4b65f311acb29b6 | Java | bafomdad/zenscape | /com/bafomdad/zenscape/util/Rainbow.java | UTF-8 | 1,781 | 2.78125 | 3 | [] | no_license | package com.bafomdad.zenscape.util;
import net.minecraft.util.MathHelper;
public class Rainbow {
public static float r(float phase) {
phase = (float) (phase * 6.283185307179586D);
float r = (MathHelper.sin(phase + 0.0F) + 1.0F) * 0.5F;
float g = (MathHelper.sin(phase + 2.094395F) + 1.0F) * 0.5F;
float b... | true |
e51c4aaef101d610eb5f063bf9871682bae3738a | Java | wilfredkim/BankingSolution | /src/main/Java/Pojo/Account.java | UTF-8 | 808 | 2.453125 | 2 | [] | no_license | package Pojo;
public class Account {
private String customerId;
private String accNumber;
AccountType accountType;
double balance;
public String getAccNumber() {
return accNumber;
}
public void setAccNumber(String accNumber) {
this.accNumber = accNumber;
}
publi... | true |
a2203d23a049ed6dd96bc407602ba57c9f1eb14f | Java | BugBang/EShop | /app/src/main/java/com/edianjucai/eshop/model/impl/ResetPasswordModelmpl1.java | UTF-8 | 2,455 | 2.09375 | 2 | [] | no_license | package com.edianjucai.eshop.model.impl;
import com.alibaba.fastjson.JSON;
import com.edianjucai.eshop.model.entity.BaseActModel;
import com.edianjucai.eshop.model.entity.RequestModel;
import com.edianjucai.eshop.model.mode.ResetPasswordMode1;
import com.edianjucai.eshop.presenter.usb.OnResetPasswordListener1;
import ... | true |
20fcb32e20fee10d37672234c6ec97e3011e86a0 | Java | mindstorms6/OAConstants | /src/main/java/org/bdawg/open_audio/interfaces/IPlayable.java | UTF-8 | 1,304 | 2.625 | 3 | [] | no_license | package org.bdawg.open_audio.interfaces;
import java.io.File;
import java.util.List;
import java.util.Map;
public interface IPlayable {
/**
* Used to get the next {@code}ISinglePlayable that {@code}SlaveManager will start playing.
* Ideally, the slaves will have already downloaded this file.
* @return The ... | true |
a8b3cfa03cfa627c984afe2b8081a49748a843a2 | Java | LeeDane/app | /app/src/main/java/com/leedane/cn/handler/SearchHandler.java | UTF-8 | 3,155 | 2.328125 | 2 | [] | no_license | package com.leedane.cn.handler;
import com.leedane.cn.application.BaseApplication;
import com.leedane.cn.bean.HttpRequestBean;
import com.leedane.cn.task.TaskListener;
import com.leedane.cn.task.TaskLoader;
import com.leedane.cn.task.TaskType;
import com.leedane.cn.util.ConstantsUtil;
import java.util.HashMap;
import... | true |
56fae4a46f32434dd930f584e3ecf423c85c4c6d | Java | sorianom/groupGo | /userClient/Vegos/src/com/ideanest/vegos/game/SemiPrimitiveGame.java | UTF-8 | 1,654 | 3.375 | 3 | [] | no_license | package com.ideanest.vegos.game;
import com.ideanest.vegos.gtp.*;
/**
* Doesn't allow playing in eyes or passing. Game is over when there are no more legal moves.
* @author Piotr Kaminski
*/
public class SemiPrimitiveGame extends TrompTaylorGame {
private boolean gameOver;
public SemiPrimitiveGam... | true |
a6398869b91b4d21d4bb35674d1e05b5f21c461c | Java | krishnakc239/Blogging-Application | /src/main/java/com/edu/mum/controller/SearchController.java | UTF-8 | 2,624 | 2.015625 | 2 | [] | no_license | package com.edu.mum.controller;
import com.edu.mum.domain.Comment;
import com.edu.mum.domain.Post;
import com.edu.mum.domain.User;
import com.edu.mum.service.PostService;
import com.edu.mum.service.UserService;
import com.edu.mum.util.ArithmeticUtils;
import com.edu.mum.util.Pager;
import org.springframework.beans.fac... | true |
58ada32f1c30da9b154c806729d852e69e8166b1 | Java | heshanjse/Lineme | /LIne/src/extrogene/gamedev/linegame/view/Main.java | UTF-8 | 3,957 | 1.890625 | 2 | [] | no_license | package extrogene.gamedev.linegame.view;
import com.example.line.R;
import com.example.line.R.id;
import com.example.line.R.layout;
import com.example.line.R.menu;
import extrogene.gamedev.linegame.view.level.levels;
import extrogene.gamedev.linegame.view.multiplayer.listclass;
import android.app.Activity;
import and... | true |
d74bdff5fad313a535e851c0a2f0d671b817fa2f | Java | slideclick/Functional-Programming-Patterns-in-Scala-and-Clojure | /JavaExamples/src/main/java/com/mblinn/oo/tinyweb/StrategyView.java | UTF-8 | 860 | 2.390625 | 2 | [] | no_license | /***
* Excerpted from "Functional Programming Patterns",
* published by The Pragmatic Bookshelf.
* Copyrights apply to this code. It may not be used to create training material,
* courses, books, articles, and the like. Contact us if you are in doubt.
* We make no guarantees that this code is fit for any purpose.... | true |
2bf3b3a60f16184f4a524c10cd47900f194e0edb | Java | Pastew/ingameads-server | /ingameads-ui/src/main/java/com/pastew/ingameadsui/Image/ImageService.java | UTF-8 | 10,187 | 1.914063 | 2 | [] | no_license | package com.pastew.ingameadsui.Image;
import com.cloudinary.Cloudinary;
import com.cloudinary.utils.ObjectUtils;
import com.pastew.ingameadsui.Advert.*;
import com.pastew.ingameadsui.Game.Game;
import com.pastew.ingameadsui.Game.GameRepository;
import com.pastew.ingameadsui.User.User;
import com.pastew.ingameadsui.Use... | true |
11dde27f0a8df166e81ac08fa9d51ad53e75f8e0 | Java | alankouakou/iskool | /iskool/src/main/java/net/ycod3r/converters/FrenchDateFormatter.java | UTF-8 | 750 | 2.59375 | 3 | [] | no_license | package net.ycod3r.converters;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import org.springframework.format.Formatter;
public class FrenchDateFormatter implements Formatter<Date>{
private SimpleDateFormat dateFormatter;
public... | true |
440c2cd2da102bda7680dd777fe1e1a545123f50 | Java | shichunlei/Notes | /src/com/leo/notes/view/LoginOneKeyActivity.java | UTF-8 | 4,814 | 2 | 2 | [] | no_license | package com.leo.notes.view;
import scl.leo.library.utils.other.SPUtils;
import net.tsz.afinal.FinalActivity;
import net.tsz.afinal.annotation.view.ViewInject;
import com.leo.notes.R;
import com.leo.notes.been.User;
import com.leo.notes.util.Constants;
import com.leo.notes.util.ThemeUtil;
import com.leo.notes.view.bas... | true |
b1149ba0d3b79651d34778b648b0d8e26c0652a5 | Java | HansiDenis/ProjetH | /src/events/FoodAndDrink.java | UTF-8 | 1,856 | 3.375 | 3 | [] | no_license | package events;
/**
* Authors:MALTESE Salomé et DENIS Hansi
**/
/**
* Classe représentant les évènements de type Nourriture et boisson
*/
public class FoodAndDrink extends Event {
String kind; //le type, ie si c'est un restaurant, un bar, etc
String cuisine;
/**
* Constructeur
*
* @para... | true |
d0972ab72e0cd4d1044ae4f65c261aadf128b00f | Java | MyWorkProj/api_ocr_java | /.svn/pristine/d0/d0972ab72e0cd4d1044ae4f65c261aadf128b00f.svn-base | UTF-8 | 10,908 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package com.aliyun.api.gateway.demo.util;
import com.aliyun.api.gateway.demo.Client;
import com.aliyun.api.gateway.demo.Request;
import com.aliyun.api.gateway.demo.constant.Constants;
import com.aliyun.api.gateway.demo.constant.ContentType;
import com.aliyun.api.gateway.demo.constant.HttpHeader;
import com.aliy... | true |
55925e528e43d247fa14f3e6ba36a40e083223d9 | Java | samer420/Examples | /Polymorphism/src/com/training/domains/Application.java | UTF-8 | 1,201 | 3.078125 | 3 | [] | no_license | package com.training.domains;
import java.util.Scanner;
import com.training.ifaces.Automobile;
public class Application {
public static void main(String[] args) {
// TODO Auto-generated method stub
ShowRoom showRoom = new ShowRoom();
NewShowRoom nShowRoom=new NewShowRoom();
Automobile polyAut... | true |
dfa0ede26a03a63137f0a3569abbef8b97d8428e | Java | Shreyabhr/Java | /collection-generic-app/src/com/techlab/test/LineItemTest.java | UTF-8 | 821 | 3.234375 | 3 | [] | no_license | package com.techlab.test;
import java.util.ArrayList;
import com.techlab.model.LineItem;
public class LineItemTest {
public static void main(String[] args) {
LineItem item1 = new LineItem(1,"Maggie",10,2);
LineItem item2 = new LineItem(2,"Shampoo",50,1);
LineItem item3 = new LineItem(3,"Soap",10,3... | true |
73216bcfb0a41a7a992dbc1585ee625837030c56 | Java | ksoontjens/1_Arteau_de_Meester_Nick_Verstocken | /oefeningen_Nick_Verstocken/oefp31/Oef7/Main.java | UTF-8 | 1,469 | 3 | 3 | [] | no_license | public class Main
{
public static void main(String[] args)
{
Werknemer nick = new Werknemer("nick", "maris", 1, 2000);
Werknemer erik = new Werknemer("erik", "wijnen", 2, 50);
Werknemer jorgos = new Werknemer("jorgos", "gilis", 3, 2000000);
Werknemer tom = new Werknemer("tom", "niemand", 4, 9000000);
Part... | true |
34bf018a44e7a349dbd9f2eb8c69cf50961f19e2 | Java | samienaseem/java- | /new-java-codes/areatest.java | UTF-8 | 145 | 1.984375 | 2 | [] | no_license | class areatest {
int a=10;
int b=20;
public static void main(String[] args) {
//int c=a*b;
System.out.println(new areatest().a*b);
}
} | true |
28e2f3685aa3345bc2b58aa951eed63c10a4c2e3 | Java | bloodfinger8/MentorMan | /mentor/src/main/java/adminReply/controller/AdminReplyController.java | UTF-8 | 5,167 | 2.0625 | 2 | [] | no_license | package adminReply.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.... | true |