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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
78e0bbaf194d1a2506ade773f646847cf2b9eb5b | Java | agomezrominsait/mongo_multi_tenancy_spring_boot_2_3_3 | /src/main/java/com/josethomas/mongo/multitenant/TenantProvider.java | UTF-8 | 426 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package com.josethomas.mongo.multitenant;
import org.springframework.stereotype.Component;
/**
* JWT token filter can set DB name in Thread Local
*/
@Component
public class TenantProvider {
static ThreadLocal<String> currentDb=new ThreadLocal();
public static String getCurrentDb(){
return currentDb.... | true |
32dc889b2036e0e6c913d9e0428b215dc1dbd1ed | Java | raulmuresan96/maven-samples | /lab2/src/main/java/com/lab2/PrimitiveRepoState.java | UTF-8 | 921 | 2.59375 | 3 | [] | no_license | package com.lab2;
import com.lab2.primitiveRepo.InMemoryRepositoryPrimitive;
import org.openjdk.jmh.annotations.*;
import java.util.stream.LongStream;
@State(Scope.Benchmark)
public class PrimitiveRepoState {
@Param
private PrimitiveRepositorySupplier repositorySupplier;
public InMemoryRepositoryPrimit... | true |
9a67b1359792067adad5ecd704c089b7e5899a3c | Java | satriaprayoga/infosys-app | /infosys-oauth/src/main/java/com/infosys/oauth/domain/User.java | UTF-8 | 1,769 | 2.046875 | 2 | [] | no_license | package com.infosys.oauth.domain;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistenc... | true |
f0f66199398a7a430d5479162162216374c28a3e | Java | laxmikanthreddyk/SpringRestApp | /src/main/java/com/cts/MyApplication/Controllers/ApplicationController.java | UTF-8 | 985 | 1.875 | 2 | [] | no_license | package com.cts.MyApplication.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
... | true |
3e3487bd8dd13934057efb6750992a93025c60f4 | Java | c-a-services/mule-quick-starter | /src/main/java/de/codecentric/mule/TextForwarder.java | UTF-8 | 1,172 | 3.125 | 3 | [
"Apache-2.0"
] | permissive | package de.codecentric.mule;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintStream;
class TextForwarder extends Thread {
private InputStream inputStream;
private PrintStream destination;
/**
* @param inputStre... | true |
2601be353993f5241a957d12563b6a33d2580278 | Java | 2020KHsemiProject/review0127 | /src/rw/library/controller/LBCInsertBookServlet.java | UTF-8 | 1,655 | 2.265625 | 2 | [] | no_license | package rw.library.controller;
import java.io.IOException;
import javax.print.attribute.standard.RequestingUserName;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRe... | true |
0e90303e7b1281d6d1747f3a5d385ecc1d7ab9dc | Java | Julie0u812/OOP-2015 | /Problems - Solutions/Train Station/src/com/train/station/Main.java | UTF-8 | 2,333 | 3.109375 | 3 | [] | no_license | package com.train.station;
import com.train.station.comparators.TrainNameComparator;
import com.train.station.comparators.TrainProfitComparator;
import com.train.station.entities.Train;
import com.train.station.entities.TrainStation;
import com.train.station.entities.wagons.CargoWagon;
import com.train.station.entitie... | true |
d4a275e2c73aba0eacae684ac14e63472572c232 | Java | vinaymcu/service2 | /033-device-resource-manager-microservice/src/main/java/com/accenture/avs/device/json/object/vqe/Extension3.java | UTF-8 | 2,111 | 1.851563 | 2 | [] | no_license |
package com.accenture.avs.device.json.object.vqe;
import java.io.Serializable;
import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonInclude(JsonInclude.Include.NON_... | true |
01060c6dac005d73265389a5d1c8d5de705751c2 | Java | AL-WUHC2/elasticsearch-analysis-ik-roc | /src/main/java/org/elasticsearch/roc/action/impl/TransportIkDictAddAction.java | UTF-8 | 1,662 | 1.890625 | 2 | [] | no_license | package org.elasticsearch.roc.action.impl;
import java.util.Arrays;
import java.util.List;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.cluster.ClusterName;
import org.elasticsearch.cluster.ClusterService;
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.sett... | true |
d07f0d28c30741fef78b73b252b2036003849e3b | Java | colingor/unlock-places-api | /src/main/java/edina/geocrosswalk/web/ws/PostCodeSearchCommand.java | UTF-8 | 497 | 2.1875 | 2 | [] | no_license | package edina.geocrosswalk.web.ws;
/**
* Command object for <code>PostCodeSearchController</code>.
*
* @author Joe Vernon
*
*/
public class PostCodeSearchCommand extends AbstractGXWCommand {
private String postCode;
/**
* Gets the postcode.
*
* @return the postcode
*/
public String getPostCode() ... | true |
775346e7160ba4471ee41104d8d120eb11f1fbdd | Java | danielVidela/Java_intro | /daniel/1_guia_ java/Ejercisios _Daniel/src/Diecinueve_cuadrado_asteriscos.java | UTF-8 | 940 | 3.140625 | 3 | [] | no_license |
import java.util.Scanner;
/*
* 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 Dany
*/
public class Diecinueve_cuadrado_asteriscos {
/**
* @pa... | true |
8d97f51824f03710e54878d1fa2975a0818404eb | Java | dod24586/Timer | /src/timerdo/TimerDo.java | UTF-8 | 14,668 | 2.484375 | 2 | [] | no_license |
package timerdo;
import java.util.Timer;
import java.util.TimerTask;
import javax.swing.JOptionPane;
import com.sun.speech.freetts.*;
/**
*
* @author Nir
*/
public class TimerDo extends javax.swing.JFrame {
//My variables:
int counter = 0;
Boolean isIt = false;
public TimerDo() {
... | true |
77d5b29ffb4837140ecd570325eb4cba9cb27848 | Java | sixons/SpringPracetice0305 | /src/main/java/com/test/dao/daoImpl.java | UTF-8 | 205 | 1.59375 | 2 | [] | no_license | package com.test.dao;
import org.springframework.stereotype.Repository;
/**
*
*/
@Repository
public class daoImpl {
public void insertUserImpl(){
System.out.println("dao insert");
}
}
| true |
8d1b78140828c57a228922e8504994267ebd924d | Java | Adrian-Gonzalez-Madruga/CloudClient | /app/src/main/java/com/example/adrian/cloudclientv3/DownloadTask.java | UTF-8 | 7,496 | 2.546875 | 3 | [] | no_license | package com.example.adrian.cloudclientv3;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.content.Context;
import android.graphics.Color;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Environment;
import java.io.... | true |
fa74e1e0e460c4d3d655181762afb171414728c3 | Java | GitHubAFeng/freedom | /common/src/main/java/com/afeng/common/config/MyBatisConfig.java | UTF-8 | 1,108 | 2.328125 | 2 | [
"MIT"
] | permissive | package com.afeng.common.config;
import org.apache.ibatis.mapping.DatabaseIdProvider;
import org.apache.ibatis.mapping.VendorDatabaseIdProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.Properties;
@Configuration
public class My... | true |
0820be9c68c10ec6f3d1ac6d178d117e870be39c | Java | joagranadosme/TicTacToe | /app/src/main/java/co/edu/unal/tictactoe/TicTacToe.java | UTF-8 | 2,211 | 3.453125 | 3 | [] | no_license | package co.edu.unal.tictactoe;
/**
* Created by Jonathan on 29/10/17.
*/
public class TicTacToe {
private char[] board;
public TicTacToe(){
board = new char[9];
}
public boolean free(int position){
return board[position]==' ';
}
public int state(char player1, char player2... | true |
21c6767f83a392b047a71dc41259c5f6d0bf1ef0 | Java | dabuntu/es | /EventshopJava/src/main/java/com/eventshop/eventshoplinux/DAO/alert/AlertDAO.java | UTF-8 | 18,655 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package com.eventshop.eventshoplinux.DAO.alert;
import com.eventshop.eventshoplinux.DAO.BaseDAO;
import com.eventshop.eventshoplinux.DAO.user.UserManagementDAO;
import com.eventshop.eventshoplinux.domain.login.User;
import com.eventshop.eventshoplinux.model.Alert;
import org.slf4j.Logger;
import org.slf4j.LoggerFactor... | true |
fb013d3682b858cd0de639e3eb0d8fa81e4e9970 | Java | v-aksenov/mafia-bot-telegram | /src/main/java/com/example/mafia/controller/AnswerGenerator.java | UTF-8 | 4,490 | 2.25 | 2 | [] | no_license | package com.example.mafia.controller;
import com.example.mafia.dto.HandleResponse;
import com.example.mafia.dto.TechResponse;
import com.example.mafia.gaming.AnswerVariant;
import com.example.mafia.gaming.GameMessage;
import com.example.mafia.utils.CallbackEncoder;
import lombok.extern.slf4j.Slf4j;
import org.springfr... | true |
f919ec9e5c90a6239ba645de16eb40da994b9128 | Java | zgdkik/spring-boot-1 | /spring-algorithm/src/main/java/com/jokey/bingo/niuke/string/Main03.java | UTF-8 | 779 | 3.0625 | 3 | [] | no_license | package com.jokey.bingo.niuke.string;
/**
* @author JokeyFeng
* @date: 2020/4/12
* @project: spring-boot
* @package: com.jokey.bingo.niuke.string
* @comment:
*/
public class Main03 {
static {
System.out.println("a");
}
{
System.out.println("b");
}
private final String c = c();
private final Strin... | true |
c6e90fdfd91617782d13c2a6619f9c4bec2f51dd | Java | crinnger/SantanderProjetoCompleto | /api-salareuniao/src/main/java/br/com/crinnger/salareuniao/apisalareuniao/exception/ErrorDetails.java | UTF-8 | 400 | 1.929688 | 2 | [] | no_license | package br.com.crinnger.salareuniao.apisalareuniao.exception;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Embedded;
import java.util.Date;
@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
public class ErrorDetails {
p... | true |
c80ac8877f6f415bfcd1e0dcbb95bff8893b3dec | Java | JetBrains/MPS | /languages/baseLanguage/overloadedOperators/solutions/jetbrains.mps.baseLanguage.overloadedOperators.sandbox/source_gen/jetbrains/mps/baseLanguage/overloadedOerators/sandbox/test/Complex.java | UTF-8 | 454 | 2.015625 | 2 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package jetbrains.mps.baseLanguage.overloadedOerators.sandbox.test;
/*Generated by MPS */
public class Complex {
private double re = 0;
private double im = 0;
public Complex() {
}
public void set(double r, double i) {
this.re = r;
this.im = i;
}
public double getIm() {
return this.im;
}
... | true |
452a5f33e719bd51f2bfc9a4ad0ca5e53d836189 | Java | tobiasvdp/industrialProcessing | /src/minecraft/ip/industrialProcessing/gui/guiContainer/layout/components/GuiContainerLayoutTank.java | UTF-8 | 3,049 | 2.34375 | 2 | [] | no_license | package ip.industrialProcessing.gui.guiContainer.layout.components;
import java.awt.Rectangle;
import java.util.ArrayList;
import net.minecraft.block.Block;
import net.minecraft.client.gui.Gui;
import net.minecraft.inventory.Container;
import net.minecraft.util.Icon;
import net.minecraftforge.fluids.Fluid;
import net... | true |
9791d4ae48f4050f79452bf1bccfd9a7b69c87fa | Java | adele-robots/fiona | /Designer/designer/src/org/oryxeditor/bpel4chor/BPEL4Chor2BPELGroundingAnalyze.java | UTF-8 | 39,563 | 2.421875 | 2 | [
"MIT"
] | permissive | package org.oryxeditor.bpel4chor;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import java.util.logging.Logger;
import javax.xml.namespace.QName;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
/**
... | true |
4f2aaadf0dc3afb9daa7c8f3b9ea4f25f4da299c | Java | akkirilov/SoftUniProject | /04_DB Frameworks_Hibernate+Spring Data/03_OOP Principles EX/src/animals/Cat.java | UTF-8 | 220 | 3.171875 | 3 | [
"MIT"
] | permissive | package animals;
public class Cat extends Animal{
public Cat(String name, Integer age, String gender) {
super(name, age, gender);
}
@Override
public void produceSound() {
System.out.println("MiauMiau");
}
}
| true |
94b506cff00562fb82f94a2a1f61fbc491d13906 | Java | abdukerim/testnorge | /apps/testnorge-tp/src/main/java/no/nav/registre/tp/database/repository/TYtelseRepository.java | UTF-8 | 242 | 1.601563 | 2 | [
"MIT"
] | permissive | package no.nav.registre.tp.database.repository;
import org.springframework.data.repository.CrudRepository;
import no.nav.registre.tp.database.models.TYtelse;
public interface TYtelseRepository extends CrudRepository<TYtelse, Integer> {
}
| true |
44407cd1be75aa2664ad21665d97747a5575d0a1 | Java | SerVac/android_secsor_test | /app/src/main/java/my/test/vs/acceltest/FileUtil.java | UTF-8 | 2,363 | 2.65625 | 3 | [] | no_license | package my.test.vs.acceltest;
import android.os.Environment;
import android.util.Log;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
public class FileUtil {
public static final String FILE_UTIL_TAG = "FileUtil";
public static... | true |
d5e0637552782e35875e14604066329b7e990162 | Java | darnellbelcourt99999/aion | /modApiServer/test/org/aion/api/server/pb/ApiAion0Test.java | UTF-8 | 53,321 | 1.609375 | 2 | [
"MIT"
] | permissive | package org.aion.api.server.pb;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import com.google.protobuf.ByteString;
import io.undertow.ut... | true |
edd0c2701a9af08e8879705a2626ae1f9caef1ee | Java | Nicolas-Vero/WowProject | /app/src/main/java/com/example/wowproject/EncounterViewHolder.java | UTF-8 | 1,553 | 2.109375 | 2 | [] | no_license | package com.example.wowproject;
import android.content.Context;
import android.view.View;
import android.content.Intent;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.squareup.picasso.Picasso;
import j... | true |
f266ad5694d3bf21873cdd39a1511c35b4677b12 | Java | CBZakaria/meteo | /app/src/main/java/com/miage/zak/meteo/data/ForecastInfo.java | UTF-8 | 917 | 2.375 | 2 | [] | no_license | package com.miage.zak.meteo.data;
import org.json.JSONException;
import org.json.JSONObject;
public class ForecastInfo {
private String latitude;
private String longitude;
private String elevation;
public String getLatitude() {
return latitude;
}
public void setLatitude(String lati... | true |
c35a276652b644bcb27517378c0341b95fa42e9f | Java | techbrothers3/practise | /java/src/FindNumberOfOcuurencesOfAnElement.java | UTF-8 | 950 | 3.34375 | 3 | [] | no_license | public class FindNumberOfOcuurencesOfAnElement {
private static int solve(int []arr,int target) {
int count = 0;
int st = 0;
int end = arr.length-1;
while(st <= end) {
int mid = (st+end)/2;
if (arr[mid] == target) {
int k = mid;
... | true |
1a0cae6a9c567495b3ac186a2520d976be9c63f6 | Java | AntonioLopeziti/SAM | /src/java/Entidades/ubicaciones.java | UTF-8 | 1,218 | 1.960938 | 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 Entidades;
/**
*
* @author Zil
*/
public class ubicaciones {
String id_ubi;
String id_ubicacion;
... | true |
bcf7e2678e30a8f0473faa49a476fe1535ab0843 | Java | Reksio111/etb_java | /src/week_4/WeekdaysTemperature.java | WINDOWS-1252 | 1,976 | 4.09375 | 4 | [] | no_license | package week_4;
/*
* Write a program that:
1. Prints out the temperatures for each day in a tabular format. Like so:
Day 12am 6am 12pm 6pm
Monday 7 6 9 5
Tuesday 5 5 7 8
etc
2. Calculates and displays the average temperature for the week
3. Calculates the minimum, maximum and average temperatures for each day and pr... | true |
3b9b2b415e53e8374859e3d003fb5f0e39796c65 | Java | harsh-2711/Pegasus-Sample | /app/src/main/java/com/example/harsh/homeautomation/Adapter/ApplianceAdapter.java | UTF-8 | 3,456 | 2.21875 | 2 | [] | no_license | package com.example.harsh.homeautomation.Adapter;
import android.support.v4.content.LocalBroadcastManager;
import android.support.v7.widget.RecyclerView;
import android.content.Context;
import android.support.v7.app.AppCompatDelegate;
import android.support.v7.widget.SwitchCompat;
import android.view.LayoutInflater;
i... | true |
d8e51c8259e26f5cc9e7ebb541fe7e87bbd68320 | Java | bbestbt/kmitl-esd-exercise3-61090018-Best | /customer service/src/main/java/kmitl/esd/exercise3/customer_service/web/CustomerController.java | UTF-8 | 2,213 | 2.8125 | 3 | [] | no_license | package kmitl.esd.exercise3.customer_service.web;
import kmitl.esd.exercise3.customer_service.model.Customer;
import kmitl.esd.exercise3.customer_service.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.w... | true |
fc2c6006131e7fdc22d3f6c8cd021b85655f9646 | Java | ucicloud/AndroidSwing | /Swing/app/src/main/java/com/kidsdynamic/swing/presenter/ProfileRequestFromDenyConfirmFragment.java | UTF-8 | 10,299 | 1.6875 | 2 | [] | no_license | package com.kidsdynamic.swing.presenter;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.... | true |
2703342bf1907aee723c515eac345a45581abd64 | Java | xiezhifeng/mysource | /jira-project/jira-components/jira-core/src/main/java/com/atlassian/jira/entity/SelectQueryImpl.java | UTF-8 | 9,888 | 1.828125 | 2 | [] | no_license | package com.atlassian.jira.entity;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import com.atlassian.jira.exception.DataAccessException;
import com.atlassian.jira.ofbiz.FieldMap;
import com.atlassian.jira.ofbiz.OfBi... | true |
2351e2a419a0c2aad3825b3b59d2f990e064ac72 | Java | akselreiten/Java | /TDT4100/self/objectstructures/Sudoku/SudokuBoard.java | UTF-8 | 7,172 | 3.4375 | 3 | [] | no_license | package objectstructures.Sudoku;
public class SudokuBoard {
private String strBoard;
SudokuCell[][] board = new SudokuCell[9][9];
String newChars="";
public SudokuBoard(String strBoard) {
if (strBoard.length() == 81) {
this.strBoard = strBoard;
createBoard(newChars);
} else {
throw new IllegalArgum... | true |
3886a034268afcc027bff03cf60d3b52ec77c999 | Java | Dengszzzzz/DAndroidSummary | /app/src/main/java/com/sz/dzh/dandroidsummary/fragment/ViewDetailsFragment.java | UTF-8 | 3,795 | 1.820313 | 2 | [] | no_license | package com.sz.dzh.dandroidsummary.fragment;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View... | true |
7dd1829c51c4f0cb14e6c02cd784204f4ca0ef87 | Java | CKyed/CDIO_final | /src/main/java/model/Fields/Parking.java | UTF-8 | 175 | 2.140625 | 2 | [] | no_license | package model.Fields;
public class Parking extends Field {
public Parking(String state) {
super(state);
group = 10;
type = "parking";
}
}
| true |
9059b03adfcf640b06e0811f97d20b345685a1a9 | Java | mirorauhala/bloom-or-gloom | /core/src/fi/tuni/tamk/tiko/bloomorgloom2/Settings.java | UTF-8 | 3,755 | 2.84375 | 3 | [] | no_license | package fi.tuni.tamk.tiko.bloomorgloom2;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Preferences;
/**
* A class containing all of the settings used through out the game.
*
* This does violate the rule of "Don't Repeat Yourself", but the added
* visibility into the keys used, and the fact that th... | true |
2a675272ea98074feade17217880181004df7418 | Java | pombredanne/descriptors-2 | /metadata-parser/src/main/java/org/jboss/shrinkwrap/descriptor/metadata/MetadataElement.java | UTF-8 | 4,092 | 1.921875 | 2 | [
"Apache-2.0"
] | permissive | /*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not us... | true |
c2e619632524a142b2b6712d01ecf7b5a777849c | Java | bluemana/backtrack | /src/main/java/backtrack/ArrayStack.java | UTF-8 | 738 | 3.15625 | 3 | [] | no_license | package backtrack;
import java.util.AbstractQueue;
import java.util.ArrayDeque;
import java.util.Collection;
import java.util.Iterator;
public class ArrayStack<E> extends AbstractQueue<E> {
private final ArrayDeque<E> queue;
public ArrayStack() {
queue = new ArrayDeque<E>();
}
public ArrayStack(Collection<... | true |
8654047bf347fa2a22d9a4fd010e2a239d630681 | Java | Donia-Azib/Task-Manager-SQLite-Sample | /app/src/main/java/com/example/taskmanager/DbSqlite.java | UTF-8 | 2,549 | 2.546875 | 3 | [] | no_license | package com.example.taskmanager;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.support.annotation.Nullable;
import java.util.ArrayList;
public class D... | true |
04c1b2541f4d6c848c9a4d35cf2c7769265dab58 | Java | eliaguirre/ServerJavaSockets | /src/cliente/fachada/Linea.java | UTF-8 | 3,315 | 2.578125 | 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 cliente.fachada;
import cliente.Decorador.Componente;
import java.io.Serializable;
import java.util.ArrayList;
impor... | true |
2e9fc3881578341f8d3989b8229b3b31fb81316e | Java | Alina-Sakidon/Alina-Sakidon | /src/test/java/testApp/testApp.java | UTF-8 | 286 | 2.03125 | 2 | [] | no_license | package testApp;
import App.Application;
import org.testng.annotations.Test;
public class testApp {
@Test
public void runTest(){
Application application=new Application();
application.setAppInfo();
System.out.println("After main i said cool");
}
}
| true |
003de0365e30143a82a147831d43c0deb80e4290 | Java | FeatureToggleStudy/cmc-claim-store | /domain-model/src/main/java/uk/gov/hmcts/cmc/domain/models/statementofmeans/DisabilityStatus.java | UTF-8 | 335 | 2.59375 | 3 | [
"MIT"
] | permissive | package uk.gov.hmcts.cmc.domain.models.statementofmeans;
public enum DisabilityStatus {
NO("No"),
YES("Yes"),
SEVERE("Severe");
String description;
DisabilityStatus(String description) {
this.description = description;
}
public String getDescription() {
return this.descri... | true |
e9b0da908e6d687003fe81e4870fedcddc2a0c1a | Java | XunPeng715/leetcode | /PrefixSum/1658.MinOperationToReduceXtoZero.java | UTF-8 | 597 | 2.78125 | 3 | [] | no_license | class Solution {
public int minOperations(int[] nums, int x) {
int sum = 0;
for (int num : nums) {
sum += num;
}
int target = sum - x, max = -1, curr = 0, j = 0;
for (int i = 0; i < nums.length; i++) {
curr += nums[i];
while (j <= i && curr... | true |
fc746f50e90d21e268fdaeeb4431aaeaf3cfc8a3 | Java | MarkJackson-github/architect | /1-5周 单体架构 7周redis 9周 分布式会话/BE/chloe-shop-service/src/main/java/com/chloe/service/ItemService.java | UTF-8 | 1,961 | 1.875 | 2 | [] | no_license | package com.chloe.service;
import com.chloe.common.utils.PagedGridResult;
import com.chloe.model.pojo.Items;
import com.chloe.model.pojo.ItemsImg;
import com.chloe.model.pojo.ItemsParam;
import com.chloe.model.pojo.ItemsSpec;
import com.chloe.model.vo.CartVO;
import com.chloe.model.vo.CommentCountsVO;
import java.uti... | true |
0505392eee7ba361dab30dd5228eced2d1b92068 | Java | Zooff/AprentisageAuto | /src/graphicalInterface/Constant.java | UTF-8 | 214 | 1.609375 | 2 | [] | no_license | package graphicalInterface;
import freeman.FreemanCode;
import freeman.TrainingData;
public class Constant {
public static Drawing DRAW;
public static FreemanCode FCODE;
public static TrainingData TDATA;
}
| true |
83304e97d9f5999dc105e2bc7ba90414a6efe9ec | Java | bellmit/ECE | /yhwl-esc/yhwl-esc-api/src/main/java/com/yhwl/yhwl/esc/api/entity/AppGlobalVariable.java | UTF-8 | 1,990 | 1.9375 | 2 | [] | no_license | package com.yhwl.yhwl.esc.api.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yhwl.yhwl.common.tools.entity.DataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@ApiModel
... | true |
37f8a7b55636a2c073b9176bc5e0c960cbcc58ee | Java | coopes-dev/hotelbooking | /CommandServer/src/model/Person.java | UTF-8 | 796 | 2.65625 | 3 | [] | no_license | package model;
public class Person {
int personID;
String surname;
String forename1;
String forename2;
String dateOfBirth;
public int getPersonID() {
return personID;
}
public void setPersonID(int personID) {
this.personID = personID;
}
public String getSurname() {
return surname;
}
public void se... | true |
344e4045d42933b220e1c446d4b89bd6456f3cb4 | Java | justhalf/machine-learning-test | /src/ml/learn/linear/Main.java | UTF-8 | 7,714 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | package ml.learn.linear;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import ... | true |
635cb171fa7eadc86b4f95e2ca54c2d5272e37b9 | Java | tonylangworthy/vehicle-catalog-tutorial | /src/main/java/com/webbdealer/catalog/exceptions/ApiServiceException.java | UTF-8 | 194 | 1.828125 | 2 | [
"MIT"
] | permissive | package com.webbdealer.catalog.exceptions;
public class ApiServiceException extends RuntimeException {
public ApiServiceException(String message) {
super(message);
}
}
| true |
56fe3452c96e5c29b14f819f5b76a68afa850b2c | Java | lnj721/MeiTuanGoodsDetails | /app/src/main/java/com/jack/meituangoodsdetails/view/TickerScrollView.java | UTF-8 | 2,420 | 2.40625 | 2 | [] | no_license | package com.jack.meituangoodsdetails.view;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.view.ViewTreeObserver;
import android.widget.HorizontalScrollView;
import android.widget.LinearLayout;
public class TickerScrollView extends Ho... | true |
3bbba776f3f37a2f2be06f42fc88fc6bb0c23824 | Java | desperatecat/leetcode_practice_set | /Top_300+_Freq_by_Tag/Two Pointers/medium/457. Circular Array Loop.java | UTF-8 | 2,408 | 3.390625 | 3 | [] | no_license | //https://leetcode.com/problems/circular-array-loop/discuss/94148/Java-SlowFast-Pointer-Solution
//slow/fast pointers
class Solution {
public boolean circularArrayLoop(int[] nums) {
int n = nums.length;
for (int i = 0; i < n; i++) {
if (nums[i] == 0) {
continue;
... | true |
13eef1d4f3987c44bb6e134da1c36348c8dffcca | Java | jfwwlong13/java-code-snippet | /src/main/java/design/creational/builder/Keyword.java | UTF-8 | 1,745 | 3 | 3 | [] | no_license | package design.creational.builder;
public class Keyword {
private final long adgroupId;
private final long keywordId;
private final String text;
private final String finalUrl;
private final double bid;
private Keyword(final Builder builder) {
this.adgroupId = builder.adgroupId;
... | true |
5f8cb3c15ebb0c80276210a9acdf5ceb45ad4ae5 | Java | sleeb29/movie-integration | /src/main/java/com/movie/integration/movieintegration/ftp/FileTransferHandler.java | UTF-8 | 2,982 | 2.53125 | 3 | [] | no_license | package com.movie.integration.movieintegration.ftp;
import com.movie.integration.movieintegration.util.FileHandlerUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.integration.ftp.session.DefaultFtpSessionFactory;... | true |
3c141861949221e6355d9e7a73d82659d4d43e18 | Java | Boris010790/bancaapp | /Banca-web/src/main/java/rest/RestGetRubrica.java | UTF-8 | 2,027 | 2.359375 | 2 | [] | no_license | package rest;
import com.google.gson.Gson;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.EJB;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.ht... | true |
39106273a524956d65bcf74d4a3f98557f2eb2d9 | Java | 412745310/spark | /spark-sql/src/main/java/com/chelsea/spark/sql/SparkUDF.java | UTF-8 | 2,265 | 2.9375 | 3 | [] | no_license | package com.chelsea.spark.sql;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.function.Function;
import org.apache.spark.sql.Dataset;
import org.apache.spark.sql.Row;
import org.apache.spark.sql.SQLContext;
import org.apache.spark.sql.SparkSession;
import org.apache.spark.sql.api.ja... | true |
71bf7e78cb1271b82026815f054913045aa21263 | Java | SaifJava575/saifproj575 | /MVCProjAnno13-CustomerRegistration-FormValidation/src/main/java/com/nt/validator/CustomerValidator.java | UTF-8 | 1,440 | 2.765625 | 3 | [] | no_license | //customer validator.java
package com.nt.validator;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import com.nt.model.Customer;
@Component("custValidator")
public class CustomerValidator implements Validator {... | true |
13c76e3a145deb1e06b14857d1c15ddc7b026bd6 | Java | doolieSoft/winebrewdb | /src/main/java/uk/co/pbellchambers/winebrewdb/legacy/recipe/RecipePDF.java | UTF-8 | 7,391 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | package uk.co.pbellchambers.winebrewdb.legacy.recipe;
import com.itextpdf.text.*;
import com.itextpdf.text.pdf.ColumnText;
import com.itextpdf.text.pdf.PdfPageEventHelper;
import com.itextpdf.text.pdf.PdfWriter;
import com.itextpdf.text.pdf.draw.LineSeparator;
import com.itextpdf.text.pdf.draw.VerticalPositionMark;
i... | true |
f146af9d6bfd869cf813d49229c16c498054133e | Java | seongsu90/MyRepository | /JavaProgramming/src/ch09/exam03/A.java | UTF-8 | 380 | 3.25 | 3 | [] | no_license | package ch09.exam03;
public class A {
//Field
//Constructor
//Method
//Nested(Inner) Class
public void method() //메소드 안에서 선언된건 로컬이라고 한다.
{
class B
{
//field
//constructor
//method
}
B b = new B();
}
public void method2()
{
class B{} // 둘의 클래스 형질이 다르다.
}
... | true |
c0aa27c54fb82fe66630f560cd95c62be3860158 | Java | RonnJacob/LeetcodeGrindRepo | /lc/LCABST.java | UTF-8 | 1,250 | 3.625 | 4 | [] | no_license | class TreeNodeS {
int val;
TreeNodeS left;
TreeNodeS right;
TreeNodeS (int x) { val = x; }
}
public class LCABST {
public static TreeNodeS lowestCommonAncestor(TreeNodeS root, TreeNodeS p, TreeNodeS q) {
if(root == null || p == null || q == null){
return null;
}
... | true |
cc01fc05bf105bbc457955c56415bc3d2ba757a4 | Java | ciemic/HomeLibrary | /src/main/java/pl/coderslab/scheduler/Reminder.java | UTF-8 | 1,639 | 2.765625 | 3 | [] | no_license | package pl.coderslab.scheduler;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import java.time.LocalDateTime;
@Component
public class Reminder {
// Link do konfiguracji a'la cron: https://pl.wikipedia.org/wiki/Crontab
//
// Z tą uwagą, że w... | true |
cfdaaa753d86fd68655d1cbc2f7facfa33cce4e6 | Java | kholmgren/dev | /liiklus-sink/src/main/java/io/kettil/fn/liiklus/Sink.java | UTF-8 | 4,719 | 2.390625 | 2 | [] | no_license | package io.kettil.fn.liiklus;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import com.github.bsideup.liiklus.protocol.*;
import io.grpc.ManagedChannel;
import io.grpc.netty.NettyChannelBuilder;
im... | true |
7130ca6688de93dfdc35a52102c49d7424e706c0 | Java | UmalatTorko/crud_spring_boot | /src/main/java/ru/gordanov/crud_spring_boot/controller/UserController.java | UTF-8 | 1,776 | 2.3125 | 2 | [] | no_license | package ru.gordanov.crud_spring_boot.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import ru.gordanov.crud_spring_boot.entity.User;
import ru.gordanov.crud_spring_boot.service.UserService;
import java.security.Princ... | true |
0b59a0695cc3af21f653fda4f67f198ff26fa715 | Java | donaldchi/Java8-sample | /lambda/FunctionalInterface/FunctionalInterfaceTest.java | UTF-8 | 488 | 2.921875 | 3 | [] | no_license | /*
Test stream class
Author : chi
Time : 2017/2/7
*/
public class FunctionalInterfaceTest {
public static void main(String[] args) {
System.out.println();
System.out.println("FunctionalInterfaceTest");
// FunctionalInterface<String, Integer> converter = (from) -> Integer.valueOf(from);
FunctionalInterfa... | true |
9154199d970f36926300c1bc0bb1195995bd1ec2 | Java | Revature-1704-Java/adventure-game-nullpointerxception | /src/main/java/com/nullpointerxception/assets/rooms/RoomFactory.java | UTF-8 | 669 | 2.890625 | 3 | [] | no_license | package com.nullpointerxception.assets.rooms;
import java.util.Random;
public class RoomFactory{
private static RoomFactory roomFactory;
private Random generator;
private RoomFactory(){
generator = new Random();
}
public static RoomFactory getInstance(){
if(roomFactory == null){... | true |
6a943dc02440c6c4af92ff896d04042c16451603 | Java | bellmit/cloud-srm | /biz/cloud-biz-inq-extend/src/main/java/com/midea/cloud/srm/inq/price/service/impl/ApprovalBiddingItemPaymentTermServiceImpl.java | UTF-8 | 865 | 1.648438 | 2 | [] | no_license | package com.midea.cloud.srm.inq.price.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.midea.cloud.srm.inq.price.mapper.ApprovalBiddingItemPaymentTermMapper;
import com.midea.cloud.srm.inq.price.service.IApprovalBiddingItemPaymentTermService;
import com.midea.cloud.srm.model... | true |
ffaef76d00ac938121d55705069bdf5b37147de3 | Java | devpie/spring-reactive-workshop | /RaceTimeService/src/main/java/com/example/racetime/RaceTimeController.java | UTF-8 | 725 | 2.234375 | 2 | [
"MIT"
] | permissive | package com.example.racetime;
import com.example.racetime.model.RaceTime;
import com.example.racetime.repository.RaceTimeRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publi... | true |
60b4ba7e3fdb30a95672e8f8e23feb3b12582919 | Java | anaatondo/ARCHIVOS | /tweetirproyana/src/interfaz.java | ISO-8859-10 | 4,163 | 2.359375 | 2 | [] | no_license |
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.ScrollPane;
import java.awt.TextField;
import java.awt.Toolkit;
i... | true |
c743117a2e2695aa4c12a632e4596e3471c28e2b | Java | jhebda/PROZ_TD | /app/src/main/java/Model/Enemy.java | UTF-8 | 4,537 | 2.703125 | 3 | [] | no_license | package Model;
import Controller.GameInit;
import java.awt.*;
import java.awt.geom.Point2D;
public class Enemy extends Entity {
public static final int SIZE = 24;
private float movementSpeed;
private float maxHitPoints;
private float hitPoints;
private float maxArmor;
private float armor;
... | true |
0c5beef892803cdb006ab1b5164ef1057bb72e39 | Java | AnnisaDwiIrvianda/Pemograman-Lanjut-2A | /Mahasiswa/MahasiswaBeraksi.java | UTF-8 | 306 | 1.515625 | 2 | [] | no_license | // Annisa Dwi irvianda
// 11200930000009
// 2A SI
package Mahasiswa;
public class MahasiswaBeraksi {
public static void main(String[] args){
Mahasiswa Mahasiswa = new Mahasiswa();
Mahasiswa.membaca();
Mahasiswa.menyontek();
Mahasiswa.modifikasi();
}
}
| true |
291a59514d3638166fe36739069d8a946e98415d | Java | maiziheimei/APPsistREST | /src/de/appsist/service/middrv/rest/server/SchemaHandler.java | UTF-8 | 427 | 1.929688 | 2 | [
"Apache-2.0"
] | permissive | /**
* An interface used for the callback when a MachineSchema was received
*/
package de.appsist.service.middrv.rest.server;
import org.vertx.java.core.http.HttpServerResponse;
import de.appsist.service.middrv.rest.ContentType;
import de.appsist.service.middrv.rest.SchemaMessage;
public interface SchemaHandler {
... | true |
a7dd0182262d0ab0bdb4fcdb1c8501f83c1f14a0 | Java | xuqinkun/programing_problems | /src/leetcode/medium/arrays/Exc_059_SpinArrays.java | UTF-8 | 1,323 | 3.46875 | 3 | [] | no_license | package leetcode.medium.arrays;
public class Exc_059_SpinArrays {
public int[][] generateMatrix(int n) {
int step, i, j, counter = 1, total = n * n;
int ans[][] = new int[n][n];
for (step = 0; step <= (n - 1) / 2; step++) {
i = step;
for (j = step; j < n - step; j++... | true |
872ca0cbcb7d0378d70314bdf521bdf128431d09 | Java | aayusha761/LTI-Training---Codility-Java | /src/com/lti/day5/Factorial.java | UTF-8 | 200 | 2.953125 | 3 | [] | no_license | package com.lti.day5;
public class Factorial {
public static void main(String[] args) {
int fact = 1;
int n=5;
for(int i=1;i<(n+1);i++) {
fact = fact*i;
}
System.out.println(fact);
}
} | true |
551f91124dd759edbbb02e5d56292181eaf13a9b | Java | Manouchehri/EMU | /src/test/java/ro/htsp/xmas/operations/ShiftRightUnitTests.java | UTF-8 | 492 | 2.328125 | 2 | [] | no_license | package ro.htsp.xmas.operations;
import ro.htsp.xmas.machine.RAM;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class ShiftRightUnitTests {
@Test
void testOpCode() {
assertEquals(12, ShiftRight.INSTANCE.getOpCode());
}
@Test
void ... | true |
052a3c53ab172197e6ef4a15f38306e89a4731fd | Java | panoskosmas/panosevaluationtest | /Kosmasp/src/main/java/com/n2gkosmas/App.java | UTF-8 | 791 | 2.796875 | 3 | [] | no_license | package com.n2gkosmas;
import java.util.Scanner;
import org.apache.commons.math3.stat.descriptive.DescriptiveStatistics;
import java.util.ArrayList;
/**
* Hello world!
*
*/
public class App
{
public static void main(String[] args )
{
int i=0;
Scanner myscanner = new Scanner(Syste... | true |
b16de622702d30feee6072a901bd4851d19d6580 | Java | imbryan/Blackjack | /src/Player.java | UTF-8 | 2,354 | 3.28125 | 3 | [] | no_license | import javax.swing.*;
public class Player{
private String userName;
private String passWord;
private int chips;
private String accountType;
private Card hand[];
private int total;
private int hCount;
public Player(){
userName = "";
passWord = "";
chips = 0;
accountType = "Normal";
total = 0;
hand = n... | true |
9ace9392b64d24ff152c97befa8717c10fb7dacf | Java | walle6000/whoserver | /src/main/java/io/swagger/api/UserApi.java | UTF-8 | 17,522 | 1.890625 | 2 | [] | no_license | package io.swagger.api;
import io.swagger.model.ResultMsg;
import io.swagger.model.User;
import io.swagger.model.UserFriend;
import io.swagger.model.UserProfile;
import io.swagger.model.UserSearchInfo;
import io.swagger.model.UserSearchLog;
import java.util.Map;
import io.swagger.annotations.*;
import org.springfram... | true |
09072db1c0d8ad51b8a5bb1b4d23d8b16f7ec062 | Java | fengwk/code-helper | /src/com/fengwk/codehelper/gen/GenCoverMethodHandlerIfFromNotNull.java | UTF-8 | 1,035 | 2.34375 | 2 | [] | no_license | package com.fengwk.codehelper.gen;
import java.util.List;
import com.fengwk.codehelper.util.JavaClassParser.MethodMateData;
import com.fengwk.codehelper.util.JavaClassParser.Param;
/**
*
* @author fengwk
*/
public class GenCoverMethodHandlerIfFromNotNull extends GenMethodTemplate {
@Override
protected b... | true |
65b4f265bbfa1c1d0e88811d1b851aad75f2197f | Java | mda06/MultiBomber | /MultiBomber-core/src/com/mda/bomb/network/sync/game/ReadyGameSync.java | UTF-8 | 4,225 | 2.25 | 2 | [] | no_license | package com.mda.bomb.network.sync.game;
import com.badlogic.gdx.math.Vector2;
import com.esotericsoftware.kryonet.Connection;
import com.mda.bomb.ecs.components.ClientStateComponent;
import com.mda.bomb.ecs.components.ClientStateComponent.ClientState;
import com.mda.bomb.ecs.components.CollisionComponent;
import com.m... | true |
d27666ff87c9ab059aea37985eebecfbc4439259 | Java | ZuofeiGithub/miaomaifang | /src/main/java/com/huiketong/sumaifang/service/AttentionService.java | UTF-8 | 396 | 1.875 | 2 | [] | no_license | package com.huiketong.sumaifang.service;
import com.huiketong.sumaifang.domain.Attention;
import java.util.List;
/**
* @Author:  ̄左飞 ̄
* @Date: 2019/7/20 21:48
* @Version 1.0
*/
public interface AttentionService {
Integer attenHouse(Integer houseId, String token);
List<Attention> findAttentionList(String ... | true |
7a7c12374edc37fa3d6ca3b470ff5cfe6d60c0eb | Java | hiwijaya/java-time | /src/test/java/com/hiwijaya/time/TimeZoneTest.java | UTF-8 | 1,065 | 2.84375 | 3 | [] | no_license | package com.hiwijaya.time;
import org.junit.jupiter.api.Test;
import java.util.Arrays;
import java.util.Calendar;
import java.util.TimeZone;
/**
* @author Happy Indra Wijaya
*/
public class TimeZoneTest {
@Test
void create(){
TimeZone currentTimeZone = TimeZone.getDefault();
System.out.pr... | true |
f8a8853178f10f6922f423ee2f416424218707e4 | Java | Dersy2000/Inheritance | /Wolf.java | UTF-8 | 201 | 2.4375 | 2 | [] | no_license |
/**
* Write a description of class Wolf here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Wolf extends Beast
{
public Wolf(){
super(5, 8);
}
}
| true |
d1dd8ea9bc2c93fd804667390a7bc56b7e67404c | Java | hellogitzc/bookstore | /WebStore/src/com/itheima/controller/OrderController.java | UTF-8 | 2,325 | 2.125 | 2 | [] | no_license | package com.itheima.controller;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bin... | true |
f4939871311f8862e18994ed685b3a00d5125844 | Java | raghujanardhan/TestEngine | /TestEngine/src/testengine/dao/user/UserInterface.java | UTF-8 | 556 | 1.835938 | 2 | [] | no_license | package testengine.dao.user;
import java.util.ArrayList;
import testengine.beans.ModuleInfo;
import testengine.beans.UserInfo;
public interface UserInterface {
public int saveUser(UserInfo user);
public ArrayList<UserInfo> listUsers(int offset, int noOfRecords);
public ArrayList<ModuleInfo> getAllModule... | true |
4babc4f70a11f3798fbe83a97904d5c242a76d32 | Java | mehdi30/ProjetGoVoyageDesktop | /src/tn/esprit/GoVoyage/GUI/ClientsSpaceController.java | UTF-8 | 2,999 | 2.125 | 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 tn.esprit.GoVoyage.GUI;
import java.io.IOException;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.... | true |
10351fd51eb70ca26a61dc167d6631252f30c41f | Java | circlespainter/http-server-bench | /exes/loadtargets/undertow-handler-async-queue/src/main/java/Main.java | UTF-8 | 673 | 1.984375 | 2 | [] | no_license | import co.paralleluniverse.comsat.bench.http.server.UndertowAsyncLoadTargetBase;
import co.paralleluniverse.comsat.bench.http.server.handlers.utow.async.UtowHandlerAsyncQueue;
import co.paralleluniverse.comsat.bench.http.server.standalone.Undertow;
public final class Main extends UndertowAsyncLoadTargetBase {
publ... | true |
85c956d7b717607e5d9aaebfa941770b5ad49714 | Java | AdrienCavalieri/Analyseur-reseau-social | /src/DataRMI.java | UTF-8 | 327 | 1.804688 | 2 | [] | no_license | import java.rmi.Remote;
import java.rmi.RemoteException;
public interface DataRMI extends Remote {
void init() throws RemoteException;
void actualScore() throws RemoteException;
String getBest3() throws RemoteException;
void searchBest3() throws RemoteException;
String printer() throws RemoteExcept... | true |
1960367fa18b59477c5e7d7f7b181010d3404998 | Java | FMTeam/FMGitRepository | /elema/src/main/java/com/fm/elema/common/exception/GlobalExceptionHandler.java | UTF-8 | 765 | 1.953125 | 2 | [] | no_license | package com.fm.elema.common.exception;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
imp... | true |
cc7d5c0271f9d32ecb1b8029c24e36c92c6586ba | Java | leejeongchan/webmvc | /BBS/src/main/java/mvc/controller/bbs/SearchListController.java | UTF-8 | 932 | 2.25 | 2 | [] | no_license | package mvc.controller.bbs;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import mvc.command.CommandHandler;
import mvc.model.HBox;
import mvc.service.article.ArticleService;
//검색기능 컨트롤러
/**
* <pre>
* 게시글 검색 기능 컨트롤러
*
* </pre>
* @author Jeong-Chan L... | true |
81eb06ec73224a4ec5ba5d18f09b8f0d68939dc4 | Java | igogo978/contesttimetable | /src/main/java/app/contestTimetable/controller/AreaUploadController.java | UTF-8 | 1,895 | 2.0625 | 2 | [] | no_license | package app.contestTimetable.controller;
import app.contestTimetable.service.ScoresService;
import app.contestTimetable.storage.StorageProperties;
import app.contestTimetable.storage.StorageService;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.slf4j.Logger;
import org.slf4j.LoggerFacto... | true |
dad4ca0b613e043ec4a5624b35777ee247a985da | Java | NikitaChhattani/sdet | /java/Activity3_3B.java | UTF-8 | 964 | 3.734375 | 4 | [] | no_license | package JavaActivity8;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.Iterator;
public class Activity3_3B {
public static void main(String[] args) {
// TODO Auto-generated method stub
Deque<String> dq=new ArrayDeque<String>();
dq.add("Lion");
dq.add("Tiger");
dq.add("... | true |
80e528b76ee2da4a98ef4f268790563296662ca1 | Java | cmcfarlen/Project-Exile | /Project Exile 1.2/Project-Exile/src/main/java/Player.java | UTF-8 | 1,855 | 2.71875 | 3 | [] | no_license | import com.fasterxml.jackson.annotation.JsonIgnore;
public class Player
{
public String name;
public int maxHealth;
public int health;
public int mana;
public int exp;
public int defense;
public int level;
public int attack;
public double critChance;
public double ... | true |
70ddbd91e68f623b93249f1da3e888350dbc6a65 | Java | DalTarek/BatailleNavale_Madeleines | /src/modele/Bateau.java | UTF-8 | 1,520 | 3.46875 | 3 | [] | no_license | package modele;
public abstract class Bateau {
protected boolean vertical; // orientation du bateau
protected int vie; // points de vie du bateau
protected int longueur; // nombre de cases du bateau
protected Position position; // Position de la case la plus en haut à gauche du bateau
public Bateau... | true |
23d19ad73324168bb100c0742e1dee8740d05a4d | Java | mogumogu2333/algorithm | /src/string/LongestPalindromicSubstring.java | UTF-8 | 2,308 | 3.59375 | 4 | [] | no_license | package string;
public class LongestPalindromicSubstring {
// brute forth: N^3
public String longestPalindrome_bf(String s) {
int len = s.length();
if(s==null || len==0)return null;
while(len>0){
for(int i = 0; i<=s.length()-len;i++){
if(isPalindrome(s, i, i+len-1)){
return ... | true |
c1b8184266095e27a4434daf04e2de805a29b609 | Java | caiwenxian/SpringCloud | /blog-parent/blog-main-api/src/main/java/com/wenxianm/model/param/SongSearchParam.java | UTF-8 | 510 | 1.695313 | 2 | [] | no_license | package com.wenxianm.model.param;
import com.wenxianm.model.Page;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 歌曲搜索相关
* @ClassName SongSearchParam
* @Author cwx
* @Date 2021/11/17 11:22
**/
@Data
public class SongSearchParam extends Page implements Serializable {
/**
*... | true |
bea599591c0195bb2f973027749db5ffc41452c7 | Java | VomPom/JWBase | /jwbase/src/main/java/wang/julis/jwbase/basecompact/NoLeakHandler.java | UTF-8 | 928 | 2.375 | 2 | [] | no_license | package wang.julis.jwbase.basecompact;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import java.lang.ref.WeakReference;
/*******************************************************
*
* Created by julis.wang on 2019/10/08 18:41
*
* Description :
* History :
*
******************... | true |
68acc879a9254dab22a1e5fbf860751c77735e30 | Java | rajkumardubey/Java-JdbcConnnectionExample | /src/com/rajkumardubey/jdbc/dao/EmployeeDAO.java | UTF-8 | 5,492 | 3.40625 | 3 | [] | no_license | package com.rajkumardubey.jdbc.dao;
/*
* <h1>EmployeeDAO</h1>
*
* This is a DAO class. DAO means Data Access Object.
* This class provide some static function that is used to Add, Update, Delete or Select an attribute in "employee" table
*/
import java.sql.Connection;
import java.sql.PreparedStatement;
import j... | true |