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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4d4414e1523ab81cef818fedb9efcbf641703ffc | Java | aleemkhowaja/imal_common_business_code | /service_client_common_src_business/com/path/dbmaps/vo/FMSEOSB_TENORVO.java | UTF-8 | 2,753 | 1.851563 | 2 | [] | no_license | package com.path.dbmaps.vo;
import java.math.BigDecimal;
public class FMSEOSB_TENORVO extends FMSEOSB_TENORVOKey {
/**
* This field corresponds to the database column FMSEOSB_TENOR.EOSB_AMT_PERC_FROM
*/
private BigDecimal EOSB_AMT_PERC_FROM;
/**
* This field corresponds to the d... | true |
28c43ccd06f7c78ae3dbdccb0cdf529fd15639d8 | Java | bobbmarcio/lab-int-inventario | /src/main/java/br/ufg/inf/es/integracao/inventario/dominio/GerenciadorPredios.java | UTF-8 | 1,075 | 2.203125 | 2 | [] | no_license | package br.ufg.inf.es.integracao.inventario.dominio;
import br.ufg.inf.es.integracao.inventario.dominio.entidade.Predio;
import br.ufg.inf.es.integracao.inventario.repositorio.PredioRepository;
import javax.inject.Inject;
import java.util.List;
public class GerenciadorPredios {
@Inject
private PredioRepository ... | true |
3b5de73003f94a646d520762cce1c28cd570ade4 | Java | bingo1118/SST_AS | /sst0405/src/main/java/com/jwkj/data/AlarmMask.java | UTF-8 | 218 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | package com.jwkj.data;
import java.io.Serializable;
public class AlarmMask implements Serializable{
//id
public int id;
//当前登录用户
public String activeUser;
//报警屏蔽ID
public String deviceId;
}
| true |
82ba70a2845c619dda34ff48dbe6642cb94df147 | Java | wwj912790488/Ingest-for-struts2 | /commander-web/src/main/java/com/arcsoft/commander/domain/system/SystemSettingEntity.java | UTF-8 | 611 | 2.328125 | 2 | [] | no_license | package com.arcsoft.commander.domain.system;
/**
* System setting entity.
*
* @author fjli
*/
public class SystemSettingEntity {
private String key;
private String value;
/**
* Returns the setting key.
*/
public String getKey() {
return key;
}
/**
* Set the setting key.
*
* @param key - the ... | true |
b17749d0637b7f3107f3be23e3fd20d436a44d90 | Java | CandyFreak2/HeroesUnited | /src/main/java/xyz/heroesunited/heroesunited/mixin/client/MixinLivingRenderer.java | UTF-8 | 3,278 | 1.796875 | 2 | [
"MIT"
] | permissive | package xyz.heroesunited.heroesunited.mixin.client;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.vertex.IVertexBuilder;
import net.minecraft.client.entity.player.AbstractClientPlayerEntity;
import net.minecraft.client.renderer.IRenderTypeBuffer;
import net.minecraft.client.renderer.entity.Li... | true |
d630dc68cc6ad9eb7f16ee8843c57d4b3efbd78e | Java | echofoo/Java-Notes | /LeetCodeSolutions/src/code_02_find/Code_884_UncommonWordsfromTwoSentences.java | UTF-8 | 1,897 | 3.65625 | 4 | [] | no_license | package code_02_find;
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
/**
* 884. Uncommon Words from Two Sentences
*
* We are given two sentences A and B.
* (A sentence is a string of space separated words. Each word consists only of lowercase letters.)
* A word is uncommon if it appears... | true |
a17b0f89fc7b80832cf47e32db2a4e3aa8d1665f | Java | timboudreau/netbeans-contrib | /jabber/src/main/java/org/netbeans/modules/jabber/ui/AddContactUI.java | UTF-8 | 8,943 | 1.515625 | 2 | [
"Apache-2.0"
] | permissive | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common
* Development and Distribution License("CDDL") (... | true |
99286b262528f74afce9bf7aede7c43a182c71ac | Java | liangyaorong/Hadoop_Code | /HBase/HBaseAdvanceApi.java | UTF-8 | 6,443 | 2.5625 | 3 | [] | no_license | import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.*;
import org.apache.hadoop.hbase.client.*;
import org.apache.hadoop.hbase.filter.*;
import org.apache.hadoop.hbase.util.Bytes;
import org.jruby.RubyProcess;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import... | true |
c1a75cf8f137814c3e89ce1463e08f347c1e1b5b | Java | kmcclean/WebCameraArtProject | /src/JavaFXStaging.java | UTF-8 | 2,790 | 3.234375 | 3 | [] | no_license | import com.github.sarxos.webcam.Webcam;
import com.github.sarxos.webcam.WebcamMotionDetector;
import com.github.sarxos.webcam.WebcamMotionEvent;
import com.github.sarxos.webcam.WebcamMotionListener;
import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.shape.*;... | true |
7cc6b0e138402b7b3ef76f605b59615ab74593af | Java | alexandermtang/Flashcard13 | /src/com/example/flashcard13/AddDeckActivity.java | UTF-8 | 3,430 | 2.5 | 2 | [] | no_license | package com.example.flashcard13;
import model.Backend;
import model.Deck;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
public cl... | true |
656d25e81dc51b04114f8c90d85b15909f621a70 | Java | Adaptivity/Totemic | /src/main/java/totemic_commons/pokefenn/client/rendering/model/ModelTotemicStaff.java | UTF-8 | 726 | 2.125 | 2 | [
"MIT"
] | permissive | package totemic_commons.pokefenn.client.rendering.model;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.model.AdvancedModelLoader;
import net.minecraftforge.client.model.IModelCustom;
/**
* Created with Intell... | true |
3c0399d2a53fc8a195ef4f51211a46fc343b9d53 | Java | agustinferrari/SistemasOperativosObligatorio | /simulador/src/utlilidades/Prueba.java | UTF-8 | 7,900 | 2.609375 | 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 utlilidades;
import dominio.Instruccion;
import dominio.Proceso;
import dominio.Recurso;
import dominio.Sistema;
import domini... | true |
d5b2bb019edf074d7bc323d507b76853e2757f25 | Java | wqsccdhy/jdk1.7 | /src/design/pattern/patternpk/structure/proxypkdecorator/decorator/DRunner.java | UTF-8 | 218 | 2.125 | 2 | [] | no_license | package design.pattern.patternpk.structure.proxypkdecorator.decorator;
public class DRunner implements IDRunner{
@Override
public void run() {
System.out.println("装饰模式,运动员跑步...");
}
}
| true |
be16daf1c510760ab1f087e49886251d4f6fa95e | Java | pengfangxing123/netty | /src/main/java/com/netty/rpc/serializer/serializer/old/SerializerInterface.java | UTF-8 | 424 | 2.09375 | 2 | [] | no_license | package com.netty.rpc.serializer.serializer.old;
/**
* 序列化标准接口
* @author ex-pengfx
*/
public interface SerializerInterface {
/**
* 序列化
* @param <T>
* @param obj
* @return
*/
<T> byte[] serialize(T obj);
/**
* 反序列化
* @param data
* @param tClass
* @param <T>
... | true |
5028db37c7c1ce099e8d1814c3e676550c6804f0 | Java | tankhust/Algorithms | /CompanyCodingTest/src/秋招公司笔试20190727_20190921/小红书20190818/薯券使用问题.java | UTF-8 | 1,650 | 3.546875 | 4 | [] | no_license | package 秋招公司笔试20190727_20190921.小红书20190818;
import java.util.Scanner;
/**
* 薯券使用问题
* 时间限制:C/C++语言 1000MS;其他语言 3000MS
* 内存限制:C/C++语言 65536KB;其他语言 589824KB
* 题目描述:
* 某小红薯在小红书的活动中抽奖中了一定价值的薯券,这些薯券可以用来购买一批商品,求有多少种购买组合。其中一件商品可以买多件。输入 : 薯券金额、商品分别价格输出 : 组合数
*
* 输入
* 输入薯券金额、商品分别价格输出,
*
* 例如: 10 [2,3,5],10 与[2,3,5]中... | true |
a36d30ecc5a6e0698118cf0a8cf65f3f63e92eb8 | Java | AbylovErmek/Android3_hw3 | /app/src/main/java/com/geektech/android3_hw3/utils/Keys.java | UTF-8 | 200 | 1.742188 | 2 | [] | no_license | package com.geektech.android3_hw3.utils;
public class Keys {
private static final String Publish_Id = "PublishId";
public static String getPublishKey() {
return Publish_Id;
}
}
| true |
c02a9353037266121feccd45d5c7d0b01e04dd4a | Java | zzpdream/Seetaface6JNI_cmake | /SeetaGenderPredictor/java/com/seeta/sdk/GenderPredictor.java | UTF-8 | 2,045 | 2.5 | 2 | [] | no_license | package com.seeta.sdk;
public class GenderPredictor {
static{
System.loadLibrary("SeetaGenderPredictor600_java");
}
public enum Property {
PROPERTY_NUMBER_THREADS(4),
PROPERTY_ARM_CPU_MODE(5);
private int value;
private Property(int value) {
this.value ... | true |
433664f9f6bf9e9babf4cd099603c35223aa51b2 | Java | promero401/Randomiser | /Smite God List/src/smite/god/list/SmiteGodList.java | UTF-8 | 20,043 | 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 smite.god.list;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileInputStream;
im... | true |
b63df4b1923c059a2234cfff5cc6162da46154bd | Java | sohyoun/Kitri--Spring | /cafe/src/main/java/com/kitri/cafe/board/dao/MemoDao.java | UTF-8 | 315 | 1.867188 | 2 | [] | no_license | package com.kitri.cafe.board.dao;
import java.util.List;
import java.util.Map;
import com.kitri.cafe.board.model.MemoDto;
public interface MemoDao {
int writeMemo(MemoDto memoDto);
List<MemoDto> listMemo(int seq);
MemoDto viewArticle(int seq);
int modifyMemo(MemoDto memoDto);
void deleteMemo(int mseq);
}
| true |
85ee418211d36f25578dedc0efa9fb759bca5474 | Java | rias1711/spring-login-role | /src/main/java/com/codegym/repository/MyUserRepository.java | UTF-8 | 337 | 1.945313 | 2 | [] | no_license | package com.codegym.repository;
import com.codegym.model.MyUser;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.repository.CrudRepository;
@Qualifier("userRepository")
public interface MyUserRepository extends CrudRepository<MyUser, Long> {
MyUser findByUsername(Str... | true |
bb50f15f07e1f57a4e8f8af2f5c15119b00f006f | Java | FolkGAS/JavaRushHomeWork | /src/com/javarush/test/level18/lesson10/home08/Solution.java | UTF-8 | 2,525 | 3.5 | 4 | [] | no_license | package com.javarush.test.level18.lesson10.home08;
import java.io.*;
import java.util.HashMap;
import java.util.Map;
/* Нити и байты
Читайте с консоли имена файлов, пока не будет введено слово "exit"
Передайте имя файла в нить ReadThread
Нить ReadThread должна найти байт, который встречается в файле максимальное числ... | true |
90d7b3573ed3a5015833d520f607f2665e918481 | Java | SebastianUt/PSS17-TPEO3-Com5 | /src/juego/niveles/Nivel1.java | UTF-8 | 476 | 2.65625 | 3 | [] | no_license | package juego.niveles;
import juego.Juego;
import juego.Mapa;
import juego.ente.Celda;
import juego.ente.Obstaculo;
public class Nivel1 extends Nivel {
public Nivel1 (Mapa mapa, int d) {
super(mapa, d);
}
public void init () {
/*
* TODO: crear obstaculos y setear el fondo del mapa
*/
Obstacul... | true |
11d831c66ce2b6583872693df64675093f19371e | Java | joowon-jung/Model2MVCShop | /03.Model2MVCShop(EL,JSTL)/src/com/model2/mvc/view/product/DeleteProductAction.java | UTF-8 | 666 | 2.140625 | 2 | [] | no_license | package com.model2.mvc.view.product;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.model2.mvc.framework.Action;
import com.model2.mvc.service.product.ProductService;
import com.model2.mvc.service.product.impl.ProductServiceImpl;
public class DeleteProductActi... | true |
776f1de5573e2ca95ce4d76e724c51c8e919533e | Java | Ankit921/Interview-DSA-Questions | /Day 8 - greedy/jobSequencing.java | UTF-8 | 2,121 | 3.46875 | 3 | [] | no_license | // https://practice.geeksforgeeks.org/problems/job-sequencing-problem-1587115620/1#
// Important
class Solution
{
// best approach
// we arrange the jobs array in descending order w.r.t profit
// then we start adding the jobs one by one
// we will do the jobs on the deadline day so that
// we c... | true |
983229767a7d2cbd9afda1397572492d6186a239 | Java | FlorianDeGrijs/jaar2_semester1 | /src/code/school/Main.java | UTF-8 | 362 | 2.34375 | 2 | [] | no_license | package code.school;
public class Main {
public static void main(String[] args) {
BinarySearchTree bst = new BinarySearchTree();
bst.add(12);
bst.add(5);
bst.add(16);
bst.add(11);
bst.add(3);
bst.add(6);
bst.add(15);
bst.add(4);
bst.ad... | true |
3edee49bb51336876d6a57f1f9c2466dc92bd6fa | Java | KorenLior/ElectDay | /src/Boundary/SystemManagementFrame.java | UTF-8 | 11,651 | 2.359375 | 2 | [] | no_license | package Boundary;
import java.awt.EventQueue;
import javax.swing.JInternalFrame;
import javax.swing.JButton;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.Vector;
import java.awt.event.ActionEvent;
import javax.swing.JLabel;
import javax.swing.JMenu;
import j... | true |
617cacb134b73d3c1beb2276ae1766f2d6ef8896 | Java | gocd/gocd | /plugin-infra/go-plugin-access/src/main/java/com/thoughtworks/go/plugin/access/notification/v1/JsonMessageHandler1_0.java | UTF-8 | 5,395 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2023 Thoughtworks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | true |
7fa96eaa6ec26103c24b6768be969f76eaede73c | Java | bardas-oleksandr/exchanger | /src/main/java/ua/pb/service/NbuRateService.java | UTF-8 | 643 | 1.921875 | 2 | [] | no_license | package ua.pb.service;
import lombok.NonNull;
import ua.pb.dto.create.NbuRateCreateDto;
import ua.pb.dto.view.NbuRateViewDto;
import java.util.List;
public interface NbuRateService {
NbuRateViewDto create(@NonNull NbuRateCreateDto nbuRateCreateDto);
NbuRateViewDto update(@NonNull NbuRateCreateDto nbuRateCr... | true |
06e5e739db1cb05e4f255a84bb38a78f05225f42 | Java | lza1997/shopCloud | /shop-admin/src/main/java/com/lza/shopadmin/service/Impl/DocEntityProServiceImpl.java | UTF-8 | 1,823 | 2.171875 | 2 | [] | no_license | package com.lza.shopadmin.service.Impl;
import com.lza.shopadmin.dao.DocEntityProDao;
import com.lza.shopadmin.entity.DocEnProEntity;
import com.lza.shopadmin.service.DocEntityProService;
import com.lza.shopadmin.utils.Pager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.st... | true |
6e5e47e2043d9939a49cebe57bb041d91afd26e9 | Java | CodeSoom/solebysole | /src/main/java/com/solebysole/user/infra/JpaUserRepository.java | UTF-8 | 499 | 1.984375 | 2 | [] | no_license | package com.solebysole.user.infra;
import com.solebysole.user.domain.User;
import com.solebysole.user.domain.UserRepository;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;
/**
* 회원 저장소.
*/
public interface JpaUserRepository
extends UserRepository, JpaRepository<Use... | true |
cb72dcbc74ea868253d0b38eca10125bc411f9dc | Java | superbase-zz/juzicool | /client.gather/IPservice/src/main/java/com/juzicoo/ipservcie/IPPoolImpl.java | UTF-8 | 8,762 | 2.3125 | 2 | [] | no_license | package com.juzicoo.ipservcie;
import com.juzicool.core.Promise;
import com.juzicool.core.PromiseExecutor;
import java.io.File;
import java.util.*;
class IPPoolImpl implements IPPool {
public static void main(String[] args) {
IPservcie iPservcie = new IPservcie(new File("ipservide.db"));
Syste... | true |
5c3ee2b39becf9da09556874c976d66003d6217c | Java | kevinliang43/GroupExpenseApplication | /GroupExpensesApplication/src/Group.java | UTF-8 | 4,330 | 2.859375 | 3 | [] | no_license | import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
/**
* Created by KevinLiang on 12/6/16.
*/
public class Group {
private int groupID;
private Connection connection;
public Group(int g... | true |
be43182d8e2dbf09b2cdb39fc59745453c87dbd8 | Java | Pravinkrchaturvedi/Java48 | /web01/src/controls/PageController.java | UTF-8 | 291 | 2.171875 | 2 | [] | no_license | package controls;
import java.util.Map;
// 인터페이스 => 규칙 => 호출자, 피호출자
// 호출자: Front Controller(DispatcherServlet)
// 피호출자: Page Controller(예: SubjectListControl, ...)
public interface PageController {
String execute(Map<String,Object> model);
}
| true |
1ed6d0c06da8224ed809222c50da17b1687eb41f | Java | mehulsbhatt/tcmonitoring | /models/src/main/java/com/tcmonitor.model/Logs.java | UTF-8 | 756 | 2 | 2 | [
"Apache-2.0"
] | permissive | package com.tcmonitor.model;
public class Logs {
private String logMessage;
private String fileName;
private String vmTag;
private String scope;
public String getLogMessage() {
return logMessage;
}
public void setLogMessage(String logMessage) {
this.logMessage = logMessage... | true |
8aeb60fff0958f368b938dbf86633dfeb38291d3 | Java | rclik/ParameterValidator | /src/test/java/parameter/EmailParameterWrapperTest.java | UTF-8 | 2,093 | 2.90625 | 3 | [
"MIT"
] | permissive | package parameter;
import org.junit.Assert;
import org.junit.Test;
public class EmailParameterWrapperTest {
@Test
public final void validateAndGet_withNullValue_shouldThrowException() {
try {
new EmailParameterWrapper(null).validateAndGetParameter();
} catch (Exception e) {
... | true |
018b53ae5df875056819506d38c90de1909171c4 | Java | gdcodedev/ZonePlay-Streaming | /app/src/main/java/com/projectcode/zoneplay/MainActivity.java | UTF-8 | 3,364 | 2 | 2 | [] | no_license | package com.projectcode.zoneplay;
import androidx.appcompat.app.AppCompatActivity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.webkit.WebChromeClient;
import and... | true |
c262e65f4586d6a04ad1d65feb1ea332dd9662d7 | Java | a1748406428/AttendanceManagementSystem | /src/boot/service/impl/UserServiceImpl.java | GB18030 | 1,689 | 1.945313 | 2 | [] | no_license | /**
*
*/
package boot.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import boot.dao.UserDao;
import boot.po.MannagerPwdBean;
import boot.pojo.UserBean;
import boot.service.UserService;
import boot.vo... | true |
aa53c6af86bb1afa4c6173c401dce65c3205fd98 | Java | vgecalumni/developers | /nikhil/VgecAlumni/app/src/main/java/org/vgecalumni/Adpater/NewsAdapter.java | UTF-8 | 2,465 | 2.359375 | 2 | [] | no_license | package org.vgecalumni.Adpater;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.wi... | true |
1acc7cd7dfb9361bac19859533df03d15a0015ce | Java | hellozjf/JPO | /emxTagLineage_mxJPO.java | UTF-8 | 1,551 | 1.585938 | 2 | [] | no_license | /* emxTagLineage.
**
** Copyright (c) 2002-2016 Dassault Systemes.
** All Rights Reserved.
** This program contains proprietary and trade secret information of MatrixOne,
** Inc. Copyright notice is precautionary only
** and does not evidence any actual or intended publication of such program.
... | true |
0a1d52b81e286055cb91bfd2670501df60590ec7 | Java | dykdykdyk/decompileTools | /android/nut-dex2jar.src/com/twitter/sdk/android/core/internal/scribe/ScribeFilesSender$ScribeService.java | UTF-8 | 1,035 | 1.882813 | 2 | [] | no_license | package com.twitter.sdk.android.core.internal.scribe;
import retrofit.client.Response;
import retrofit.http.Field;
import retrofit.http.FormUrlEncoded;
import retrofit.http.Headers;
import retrofit.http.POST;
import retrofit.http.Path;
abstract interface ScribeFilesSender$ScribeService
{
@FormUrlEncoded
@Headers(... | true |
04b395d2db405030f6a09dcec459f47bf230f706 | Java | moutainhigh/jkzx1 | /servers/quant-server/quantlib/src/main/java/tech/tongyu/bct/service/quantlib/common/enums/CompoundingType.java | UTF-8 | 365 | 2.0625 | 2 | [] | no_license | package tech.tongyu.bct.service.quantlib.common.enums;
import tech.tongyu.bct.service.quantlib.common.annotations.BctQuantEnum;
@BctQuantEnum
public enum CompoundingType {
/**
* Continuous compounding: df = exp(-rt)
*/
CONTINUOUS_COMPOUNDING,
/**
* Simple compounding: df = 1/(1+day count fr... | true |
e2c19836185b5a7dc00102ef88c66cba026cc783 | Java | peter0703257153/water | /src/com/example/work/menu.java | UTF-8 | 967 | 2.1875 | 2 | [] | no_license | package com.example.work;
import android.app.ListActivity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
public class menu extends ListActivity{
String classes[]={"TakeAPi... | true |
6f653d7b46c43be0e8e0cfc8b878b397caeca62f | Java | 95thcobra/VirtueOS | /src/com/oldscape/client/CombatInfo2.java | UTF-8 | 8,726 | 2.0625 | 2 | [] | no_license | package com.oldscape.client;
public class CombatInfo2 extends CacheableNode {
public static IndexDataBase field3532;
static IndexDataBase field3528;
public static NodeCache field3524;
public static NodeCache field3531;
public int field3526;
public int field3536;
public int field3529;
public int field35... | true |
4607ffb753dd3765c9237202f0a8402b7d0c4b6e | Java | jhonidev/StackMaquinas | /src/net/stackmaquinas/plugin/menus/RecolherMaquinas.java | UTF-8 | 2,401 | 2.34375 | 2 | [] | no_license | package net.stackmaquinas.plugin.menus;
import net.stackmaquinas.plugin.StackCore;
import net.stackmaquinas.plugin.objetos.MaquinaPlayer;
import net.stackmaquinas.plugin.objetos.PlayerMaquina;
import net.stackmaquinas.plugin.utils.InfiniteInventory;
import net.stackmaquinas.plugin.utils.ItemBuilder;
import org.bukkit.... | true |
1fba0c52c97d8695a632aea6bff060e7a2aa7452 | Java | soloyes/OpenShuttle | /core/src/ru/geekbrains/game/logic/GameState.java | UTF-8 | 1,694 | 2.640625 | 3 | [] | no_license | package ru.geekbrains.game.logic;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import com.badlogic.gdx.math.Vector2;
import ru.geekbrains.stargame.engine.ui.Font;
/**
* Created by sol on 2/21/18.
* Class for store and manipulate with game state
*/
public class GameState {
private Score score;
priva... | true |
276b8cdb940fe35642614bf0a426ab1cf902b22b | Java | Arham4/advanced-computer-science-frisco-isd | /13. Memoization & Dynamic Programming/TruckBottomUp.java | UTF-8 | 1,649 | 2.921875 | 3 | [] | no_license | import java.io.File;
import java.io.FileNotFoundException;
import java.util.Arrays;
import java.util.Scanner;
public class TruckMemo {
public static void main(String[] args) {
try (Scanner scanner = new Scanner(new File("truck.dat"))) {
int cases = scanner.nextInt();
scanner.nextLin... | true |
4ffd67a09cd74eb24cc9b9adbf8d74a9cf3b4349 | Java | GoogleCloudPlatform/DataflowTemplates | /v2/googlecloud-to-googlecloud/src/main/java/com/google/cloud/teleport/v2/templates/bigtablechangestreamstopubsub/model/PubSubDestination.java | UTF-8 | 2,675 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | true |
67e6bcd6d9035ff9421205c582827cb5af4e7e13 | Java | suevip/trade-1 | /trade-service/src/test/java/com/youzan/trade/BaseTest.java | UTF-8 | 2,229 | 2.34375 | 2 | [] | no_license | package com.youzan.trade;
import com.google.common.collect.Lists;
import junit.framework.TestCase;
import org.dbunit.DataSourceDatabaseTester;
import org.dbunit.dataset.CompositeDataSet;
import org.dbunit.dataset.DataSetException;
import org.dbunit.dataset.IDataSet;
import org.dbunit.dataset.xml.FlatXmlDataSetBuilde... | true |
03948f9c345bcd936b59726664ca66e0803c6fbb | Java | Sanchezz17/WhereIsTheTrolleybusOrTramBot | /bot/src/main/java/com/github/telegram/bot/controllers/TransportController.java | UTF-8 | 1,419 | 2.609375 | 3 | [] | no_license | package com.github.telegram.bot.controllers;
import com.github.telegram.bot.models.FirstLetter;
import com.github.telegram.bot.models.Transport;
import com.github.telegram.bot.utils.KeyboardHelper;
import com.github.telegram.mvc.api.BotController;
import com.github.telegram.mvc.api.BotRequest;
import com.github.telegr... | true |
5678392ec90e9c60721813ac068e6d68a6f21420 | Java | AndreiRosca/AdRespawner | /AdRespawnerPresentation-Module/src/main/java/md/utm/internship/web/controller/MessageRestController.java | UTF-8 | 715 | 2.015625 | 2 | [] | no_license | package md.utm.internship.web.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bi... | true |
3b099cd7ceba857df22c8d8cde5e1a88a25b1d92 | Java | mkristian/asciidoctorj | /asciidoctorj-api/src/main/java/org/asciidoctor/ast/Cursor.java | UTF-8 | 231 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | package org.asciidoctor.ast;
public interface Cursor {
/**
* @return The line number where the owning block begins.
*/
int getLineNumber();
String getPath();
String getDir();
String getFile();
}
| true |
eaf03197a085788a51b6fcb3c11a117ad6736bd0 | Java | qiuchili/ggnn_graph_classification | /program_data/JavaProgramData/89/1124.java | UTF-8 | 767 | 2.921875 | 3 | [
"MIT"
] | permissive | public class man
{
public int a;
public int b;
}
package <missing>;
public class GlobalMembers
{
public static man[] person = tangible.Arrays.initializeWithDefaultmanInstances(10000);
public static int Main()
{
int n = 0;
int x = 0;
int y = 0;
int i = 0;
n = Integer.parseInt(ConsoleInput.readToWhiteSpa... | true |
283233cec7263dae85e5e13d1d342f6eced952ab | Java | treejames/yabo | /module/report/app/models/report/TotalDailyReport.java | UTF-8 | 2,253 | 2.09375 | 2 | [] | no_license | package models.report;
import models.supplier.Supplier;
import play.db.jpa.JPA;
import play.db.jpa.Model;
import play.modules.paginate.JPAExtPaginator;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityManager;
import javax.persistence.ManyToOne;
import javax.persistence... | true |
2a08a6b1a20cf9d898375b5fb99eeacec1bcd835 | Java | Rishvanam/rish | /Program12.java | UTF-8 | 318 | 3.0625 | 3 | [] | no_license | import java.io.*;
import java.util.*;
public class Program12
{
public static void main(String args[])
{
int n,count=0;
Scanner scan=new Scanner(System.in);
n=scan.nextInt();
for(int i=2;i<n/2;i++)
{
if(n%i==0)
count++;
}
if(count==0)
System.out.print("prime number");
else
System.out.print("not a prime number");
}
}
| true |
eccf81da5c68314682791ede7856366ffe733744 | Java | poul32/automated-testing-and-tdd | /src/main/java/com/acme/banking/dbo/service/Processing.java | UTF-8 | 2,237 | 2.546875 | 3 | [] | no_license | package com.acme.banking.dbo.service;
import com.acme.banking.dbo.dao.AccountNotFoundException;
import com.acme.banking.dbo.dao.AccountRepository;
import com.acme.banking.dbo.dao.ClientNotFoundException;
import com.acme.banking.dbo.dao.ClientRepository;
import com.acme.banking.dbo.domain.Account;
import com.acme.banki... | true |
c4c81ce3b82332136d5be7517943af70fbaa49c9 | Java | csd11/MyJavaCode | /SON.java | UTF-8 | 278 | 3.1875 | 3 | [] | no_license | class SON{
public static void main(String args()){
int sum = 0;
int mul = 1;
for(int num=3; num<=100; num++){
sum = sum + num;
mul = mul * num;
}
System.out.println("Sum of numbers = " + sum);
System.out.println("Mul of numbers = " + mul);
}
}
| true |
acf0972f475bfbd9793046d349147898436d370c | Java | Sevastian101/Java-classes-arrays-interfaces | /src/Task1/Entity/Furniture.java | UTF-8 | 854 | 3 | 3 | [] | no_license | package Task1.Entity;
import Task1.Validation.Country;
/**
* Created by sodobescu on 3/28/2017.
*/
public class Furniture extends Task1.Other.Product implements Task1.Other.ProductionProduct {
private final String type = "Furniture";
public Furniture(Country countryToDeliver, double deliveryPrice, double weight... | true |
ae15b36eb76e0fb98114ed502db623ccda57ecee | Java | jdcamachod/iteracion_1_sistrans | /respaldo/uniandes/superAndes/negocio/Sucursal.java | UTF-8 | 1,006 | 2.578125 | 3 | [] | no_license | package uniandes.superAndes.negocio;
import java.util.ArrayList;
public class Sucursal {
private long id;
private String nombre;
private int tamanio;
private String direccion;
private String ciudad;
public Sucursal(long id, String nombre, int tamanio, String direccion, String ciudad) {
this.id = id;
th... | true |
04916d2c483bc894b012a8b50821cb045559600c | Java | MyKitchenManager/my-kitchen-manager | /src/main/java/com/example/myKitchenManager/controller/InventoryController.java | UTF-8 | 4,304 | 2.5625 | 3 | [] | no_license | package com.example.myKitchenManager.controller;
import com.example.myKitchenManager.entity.Inventory;
import com.example.myKitchenManager.entity.Users;
import com.example.myKitchenManager.repository.InventoryRepository;
import com.example.myKitchenManager.repository.UserRepository;
import org.springframework.beans.fa... | true |
37b029ca94016d2b62f40f4119bee6a5611c9e0b | Java | Ponnapati04/HealthCareApplication | /healthcare/src/main/java/com/healthcare/model/Dependent.java | UTF-8 | 1,766 | 2.46875 | 2 | [] | no_license | package com.healthcare.model;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.validation.constraints.NotBlank;
imp... | true |
094c6c6ba5fa6d9bccbf34569fa150fb462a3331 | Java | thojava/ontaxi-backend | /taxihub/src/main/java/vn/ontaxi/hub/service/LazyDataService.java | UTF-8 | 3,351 | 2.015625 | 2 | [] | no_license | package vn.ontaxi.hub.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
... | true |
22f6dd3900a1bcaf87734d74726b405f2b4ed24a | Java | FightTogether/AlgorithmsDemo | /src/com/why/algorithms/sort/MergeSort.java | GB18030 | 2,460 | 4 | 4 | [] | no_license | package com.why.algorithms.sort;
import com.why.algorithms.utils.ArrayUtils;
public class MergeSort {
public static void main(String[] args) {
int[] data = new int[] { 5, 3, 6, 2, 1, 9, 4, 8, 7 };
ArrayUtils.printf(data);
System.out.println("飺");
ArrayUtils.printf(data);
}
/**
*
* @param data
*/
publ... | true |
eeb14502bd0de62e3cc71d12e33393d08dd0f270 | Java | connorgorman/TFS | /TFSMasterServer/src/tfs/master/com/TFSDir.java | UTF-8 | 1,110 | 3 | 3 | [] | no_license | package tfs.master.com;
import java.util.LinkedList;
import java.util.List;
public class TFSDir extends TFSNode {
public TFSDir(String name, TFSDir parent, String absolutePath) {
super(name, parent, absolutePath);
subDirs = new LinkedList<TFSDir>();
subFiles = new LinkedList<TFSFile>();
}
List<TFSDir> su... | true |
9c9b3ed53fbab39f4389c8750e4b56e3ead4c9b1 | Java | shibaiyong/MyiBrain | /src/main/java/com/uec/ibrain/ibrain/user/bean/UserAPIBean.java | UTF-8 | 835 | 2.03125 | 2 | [] | no_license | package com.uec.ibrain.ibrain.user.bean;
import java.io.Serializable;
/**
* <p>Copyright: All Rights Reserved</p>
* <p>Company: 北京荣之联科技股份有限公司 http://www.ronglian.com</p>
* <p>Description: 接口返回用户对象实体 </p>
* <p>Author:jlchen/陈金梁</p>
*/
public class UserAPIBean implements Serializable {
private String uid... | true |
a36b04d2bf187c6544fa20d91712e076950bc002 | Java | wang2da/phone_analysiz | /src/main/java/com/phone/etl/mr/etl/EtlToHdfs.java | UTF-8 | 713 | 1.789063 | 2 | [] | no_license | package com.phone.etl.mr.etl;
import com.phone.etl.analysis.dim.base.BaseDimension;
import com.phone.etl.mr.ua.service.IDimension;
import com.phone.etl.output.BaseOutput;
import org.apache.hadoop.conf.Configuration;
import java.sql.PreparedStatement;
/**
* @ClassName EtlToHdfs
* @Author lyd
* @Date $ $
* @Vesion... | true |
47abdae89843dbdd57d7878312a8d92146fcd01f | Java | manueldeveloper/java_examples | /elasticsearch/src/main/java/com/manueldeveloper/elasticsearch/user/UserModel.java | UTF-8 | 621 | 1.914063 | 2 | [
"MIT"
] | permissive | package com.manueldeveloper.elasticsearch.user;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;
import lombok.Builder;
import lombok.Getter;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.a... | true |
68a91d154ccd3062462cf2fe482fbe555b3209b4 | Java | ahmet422/ICashier | /src/application/StoreProduct.java | UTF-8 | 376 | 3.015625 | 3 | [] | no_license | package application;
public class StoreProduct {
String name;
int amount;
double price;
public StoreProduct(String name, double price, int amount) {
this.name = name;
this.price = price;
this.amount = amount;
}
public String getName() {
return name;
}
public int getAmount() {
return amount... | true |
f8178d8c54c270c0d5f93b582b34c70900afa5cd | Java | israeldb27/blg | /src/main/java/com/busqueumlugar/controller/MapController.java | UTF-8 | 1,458 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package com.busqueumlugar.controller;
import org.codehaus.jackson.map.ObjectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMetho... | true |
02dd315ae61fe27514c8696b720575af30a52d90 | Java | szn-Java/HIS | /src/main/java/com/zhiyou100/service/PermissionServiceImpl.java | UTF-8 | 989 | 2.109375 | 2 | [] | no_license | package com.zhiyou100.service;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zhiyou100.mapper.PermissionMapper;
import com.zhiyou100.model.Permission;
@Service
public class PermissionS... | true |
856fd30eb7689726ab1020cbdc822af469331357 | Java | cmgpguerrracarlos/crud-javaee-jsp | /src/main/java/uy/com/cmgp/datos/ConexionMongoDb.java | UTF-8 | 1,495 | 2.625 | 3 | [] | no_license | package uy.com.cmgp.datos;
import com.mongodb.*;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;
import java.util.ArrayList;
import java.util.List;
import org.bson.Document;
public class ConexionMongoDb {
private MongoDatabase database;
private MongoCollection<Document> coll... | true |
d4b57efe90a2ff57f71ea63b8890789ae680b138 | Java | chenshibi/IBSCORE | /src/basic/resource/bean/basic/TCorpUploadBean.java | UTF-8 | 3,157 | 2.140625 | 2 | [] | no_license | package resource.bean.basic;
/**
* excel列表
*
* @author jason.mao
*
*/
@SuppressWarnings("ucd")
public class TCorpUploadBean {
private String loanCardNo;
private String loanCardPass;
private String corpName;
private String orgCode;
private String loanNo;
private String queryType;
priva... | true |
32b69a7a4f4364a5b581703afc3ba4152a8e4b5c | Java | zhongxingyu/Seer | /Diff-Raw-Data/33/33_cb5553064f5aa5337036ac9bcf81e30d89bd4b00/ErrorPageResolver/33_cb5553064f5aa5337036ac9bcf81e30d89bd4b00_ErrorPageResolver_s.java | UTF-8 | 4,913 | 2.265625 | 2 | [] | no_license | /*
* Copyright (c) 2011 Enrico Franchi, Michele Tomaiuolo and University of Parma.
*
* 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 limitat... | true |
b6405f3d67af824eca189bd30d595c1f4e042c7d | Java | Symsystem/CashAdmin | /app/src/main/java/net/cashadmin/cashadmin/Activities/Model/Category.java | UTF-8 | 3,654 | 2.734375 | 3 | [] | no_license | package net.cashadmin.cashadmin.Activities.Model;
import android.content.ContentValues;
import android.database.Cursor;
import android.graphics.Color;
import net.cashadmin.cashadmin.Activities.Model.Enum.TypeEnum;
public class Category extends Entity {
public static final String TABLE_NAME = "categories";
p... | true |
34bb025c7a0c4d87c842165224fea9be5ee4c6e6 | Java | shenleifan/GuoEr | /app/src/main/java/guoer/lf/ed/guoer/utils/OkHttpUtils.java | UTF-8 | 688 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package guoer.lf.ed.guoer.utils;
import java.io.IOException;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
public class OkHttpUtils {
public static long getContentLength(String url) throws IOException {
OkHttpClient client = new OkHttpClient();
Request request = ne... | true |
38fdbdd19d3c646cb40fedc0de6cfe0578a8c907 | Java | Fettoukh/Gestion-d-hotel | /src/Swing/Client/IHMClient.java | UTF-8 | 36,338 | 2.28125 | 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 Swing.Client;
import Metiers.GestionClients;
import Metiers.GestionCompteClient;
import Metiers.GestionComptePersonnel;
import... | true |
42deb6cc3793612a40280401a89bb9f95101a353 | Java | mustachedk/android-beacon-bacon-lib | /beaconbacon/src/main/java/dk/mustache/beaconbacon/api/GetFloorImageAsync.java | UTF-8 | 2,844 | 1.96875 | 2 | [
"MIT"
] | permissive | package dk.mustache.beaconbacon.api;
/* CLASS NAME GOES HERE
Copyright (c) 2017 Mustache ApS
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... | true |
bc6491ab04366f39d2ab7591651cfe2498a73915 | Java | robsonluz/eeXML | /src/br/ufpr/eeXML/v1/glushkov/regex/ListPosition.java | ISO-8859-13 | 814 | 2.8125 | 3 | [] | no_license | /*
* Created on 06/06/2006
*
*/
package br.ufpr.eeXML.v1.glushkov.regex;
/*
* @autor Robson Joo Padilha da Luz
*
*/
public class ListPosition
{
private NodePosition root;
private NodePosition last;
private int size;
public int add()
{
add(size+1);
return size;
}
public void add(int p)
{
NodePos... | true |
4002d52a29d0ca21adfe87e36ff7734f5a7a1e8d | Java | IEMAI/SMPC | /utils/Request.java | UTF-8 | 747 | 2.890625 | 3 | [] | no_license | package utils;
/**
*
* @author talz
*/
public class Request {
public int neighborId;
public int currentAssignment;
public int request;
public double gain;
public long sendingTime;
public Request(int neighborId, int currentAssignment, int request, double gain,long sendingTime ){
t... | true |
082aca8878c562cb01faf5e04488ca82649e5d13 | Java | epamcia/sbd | /hybris/bin/custom/sbd/sbdcore/src/com/sbd/core/event/PriceBlockedOrderConfirmationEventListener.java | UTF-8 | 2,087 | 2.328125 | 2 | [] | no_license | package com.sbd.core.event;
import com.sbd.core.enums.PriceBlockedOrderStatus;
import com.sbd.core.model.PriceBlockedOrderConfirmationProcessModel;
import com.sbd.core.model.SBDBlockedOrderModel;
import de.hybris.platform.core.Registry;
import de.hybris.platform.processengine.BusinessProcessService;
import de.hybris.... | true |
64f4c47e52553362c879e729f65cf21e172ed823 | Java | Techiefrogs-Champs/Champs-01 | /Srinivas/src/Abstract/Program_4.java | UTF-8 | 596 | 3.796875 | 4 | [] | no_license | package Abstract;
abstract class Constructor{
Constructor(){
System.out.println("This is constructor of Abstract Class");
}
abstract void a_method();
void method(){
System.out.println("This is normal method of Abstract Class");
}
}
class Subclass extends Constructor{
void ... | true |
49d3e4b93823d209e8ac003edec6d5cc5d1f5f7d | Java | caidonglun/chaoshiguanli | /app/src/main/java/com/com/chaoshiguanli/fragments/Two_tu_fragment.java | UTF-8 | 1,984 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package com.com.chaoshiguanli.fragments;
import android.app.Fragment;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.example.ad... | true |
77ba46a94cc78cc115403c1716fc9e3ca422553d | Java | venu54t/loginjsp | /loginjsp/newuser.java | UTF-8 | 1,196 | 2.375 | 2 | [] | no_license | package loginjsp;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletReques... | true |
15a077c460758e07d35d31d6b001a8657bd6aabf | Java | MackValentine/LTDC | /src/mack/scene/Scene_Title.java | UTF-8 | 3,539 | 2.171875 | 2 | [] | no_license | package mack.scene;
import java.awt.FontFormatException;
import java.awt.Graphics;
import java.awt.Image;
import java.io.File;
import java.io.IOException;
import javax.xml.parsers.ParserConfigurationException;
import mack.game.Game_Player;
import mack.main.FileSave;
import mack.main.Graphics_Loader;
import mack.main... | true |
a1be76b21258ed9a7c16bc84d60819d09990cc85 | Java | luoyican/myTestApp | /app/src/main/java/com/rfchina/internet/mytestapp/utils/http/HttpCall.java | UTF-8 | 335 | 2.125 | 2 | [] | no_license | package com.rfchina.internet.mytestapp.utils.http;
import com.squareup.okhttp.Call;
/**
* Created by msi on 2016/3/3.
*/
public class HttpCall {
private Call Call;
public com.squareup.okhttp.Call getCall() {
return Call;
}
public void setCall(com.squareup.okhttp.Call call) {
Call =... | true |
347c7fbbeb0edaf62074f4d824f23b767e3a0116 | Java | hermanwongkm/AlgoPratice | /[Caterpillar] Count Distinct Slices.java | UTF-8 | 2,462 | 3.6875 | 4 | [] | no_license | /**
An integer M and a non-empty array A consisting of N non-negative integers are given. All integers in array A are less than or equal to M.
A pair of integers (P, Q), such that 0 ≤ P ≤ Q < N, is called a slice of array A. The slice consists of the elements A[P], A[P + 1], ..., A[Q]. A distinct slice is a slice cons... | true |
8f6ff0dd422f94e24d5708a1ec905d7e778cba5f | Java | oaoing/Sea-Of-Bottle | /SeoOfBottle/src/main/java/org/sob/controller/MainController.java | UTF-8 | 6,179 | 2.109375 | 2 | [] | no_license | package org.sob.controller;
import java.util.List;
import org.sob.domain.Criteria;
import org.sob.domain.MainVO;
import org.sob.domain.PageDTO;
import org.sob.domain.UserVO;
import org.sob.service.MainService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springfra... | true |
a2772f01d43d98342b5f1705495f92dca6e75e8b | Java | Tsoa27/HikingPartners | /src/Servlets/GetHikeMembers.java | UTF-8 | 1,520 | 2.578125 | 3 | [] | no_license | package Servlets;
import Database.MainDM;
import Models.Member;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.... | true |
afb536ba53bc029c5d9cb36a9567c61c9a15f9fb | Java | Dipak-Agarwal/TestAutothon2019 | /src/test/java/cucumberRunner/CucumberRunner.java | UTF-8 | 832 | 1.765625 | 2 | [] | no_license | package cucumberRunner;
import org.junit.AfterClass;
import org.junit.runner.RunWith;
import com.cucumber.listener.Reporter;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
features = {"features"},
glue= {"stepDefinition"},
plug... | true |
c71430fb5bd52f701afc8b2017a5abefa6eb6a23 | Java | raymondhjm/helloworld | /src/main/java/me/raymond/Helloworld.java | UTF-8 | 739 | 2.78125 | 3 | [] | no_license | package me.raymond;
public class Helloworld {
public static void main(String[] args) {
System.out.println("Hello world!");
System.out.println("Hello world2!");
System.out.println("Hello world3!");
System.out.println("Hello world4!");
System.out.println("Hello world5!");
... | true |
b682637e3c04d748c36151ce65f7ace430dc3fd9 | Java | priyamvadthegame/JAVA-Training-IBM | /JAVA EE/Enterprise/src/com/JavaBasics/AnnotationTestMain.java | UTF-8 | 1,699 | 3.328125 | 3 | [] | no_license | package com.JavaBasics;
import java.lang.reflect.*;
import java.lang.annotation.*;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
@interface Getter
{
}
class AnnotationTestMain
{
private String name;
private int value;
private int age;
public AnnotationTestMain(String name,int value,int age)
{
... | true |
7597dcc73a41f6517ec5c097eed4f4159191a0ee | Java | hmsck/gosu-lang | /gosu-core-api/src/main/java/gw/config/IGosuProfilingService.java | UTF-8 | 1,082 | 2.21875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause"
] | permissive | /*
* Copyright 2014 Guidewire Software, Inc.
*/
package gw.config;
/**
* This is a interface for profiling in modules before pl. Intially the only use is in ph, and they
* only want to profile completed actions, so just publish the one method.
*
* @author dandrews
*/
public interface IGosuProfilingService ext... | true |
f26197aa0ee17109c3576240a319c6a1820736a7 | Java | LouisH-760/MusicPlayer | /src/com/musicplayer/gui/swing/SwingGUI.java | UTF-8 | 6,055 | 2.953125 | 3 | [
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"Unlicense"
] | permissive | package com.musicplayer.gui.swing;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.KeyEvent;
import java.awt.event.WindowEvent;
import java.awt.event.WindowFocusListener;
import java.net.URI;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import com.m... | true |
199b5182b0dfbc3cda495f3c6e62272b29befb2f | Java | spatil022/Microservices_Bookstore | /BookService/src/main/java/com/microusers/bookservice/model/Coupons.java | UTF-8 | 1,690 | 2.296875 | 2 | [] | no_license | package com.microusers.bookservice.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.microusers.bookservice.dto.CouponDto;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.an... | true |
d66ed9151b102765b63c698cc43276cb3f819c65 | Java | allnameoccupied/Board_Game_4521 | /app/src/main/java/com/app/boardgame4521/MaxUtil/utilRealm_Schema.java | UTF-8 | 838 | 2.28125 | 2 | [] | no_license | /**
* # COMP 4521 # Chan Hung Yan 20423715 hychanbr@connect.ust.hk
* # COMP 4521 # Tai Ka Chun 20433540 kctaiab@connect.ust.hk
* # COMP 4521 # Mong Kin Ip 20433629 kimong@connect.ust.hk
*/
package com.app.boardgame4521.MaxUtil;
import io.realm.Dynami... | true |
291bfe850b45e2bbadccc549462cbc64cfa471a7 | Java | frolicdima/job4j | /chapter_002/src/test/java/ru/job4j/tracker/TrackerTest.java | UTF-8 | 3,491 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | package ru.job4j.tracker;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.*;
public class TrackerTest {
@Test
public void whenAddNewItemThenTrackerHasSameItem() {
Tracker tracker = new Tracker();
Item item = new Item("test1", "testName", "testDescr... | true |
e3db32c948e36361310c19f69ed2cd66582c4a06 | Java | auroracs/misc_java | /myJavaProject/src/com/jengle/sftp/SecureFTPExample.java | UTF-8 | 1,484 | 2.859375 | 3 | [] | no_license | package com.jengle.sftp;
import java.io.File;
import java.io.FileInputStream;
import com.jcraft.jsch.Channel;
import com.jcraft.jsch.ChannelSftp;
import com.jcraft.jsch.JSch;
import com.jcraft.jsch.Session;
public class SecureFTPExample {
// set global variables
public static String SFTPHOST = "191.12... | true |
633399758e74bcb84a69d6165742ee010791284a | Java | raframmed/raframmed_iaw | /EjerciciosBluces/src/es/cj/datos/Ejercicio6.java | ISO-8859-1 | 636 | 3.625 | 4 | [
"MIT"
] | permissive | package es.cj.datos;
import java.util.Scanner;
public class Ejercicio6 {
// Disee una aplicacin que muestre las tablas de multiplicar del 1 al 10. Adems, solicite al usuario que tabla quiere mostrar
private static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
for(int i =... | true |
dff8449fa1f34db5e708402692dd244c4d5447d4 | Java | gw-sd-2016/SPLALO | /Project Code/src/jm/audio/io/RTIn.java | UTF-8 | 2,234 | 2.265625 | 2 | [] | no_license | package jm.audio.io;
import java.io.PrintStream;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioFormat.Encoding;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.DataLine.Info;
import javax.sound.sampled.TargetDataLine;
import jm.audio.AOException;
import jm.audio.AudioObject... | true |
90c7d016a31ddb5a56ba5cdbfe111c0cfb79932b | Java | amitkumarx86/Java_Assignments | /learn_java/src/learn_java/Day1_pattern.java | UTF-8 | 634 | 3.609375 | 4 | [] | no_license | package learn_java;
public class Day1_pattern {
public static void main(String[] args) {
String pattern = "0123456789";
/*
* Below for loop is for first one
*/
for(int i=0; i<10; i++){
String reverse = new StringBuffer(pattern.substring(0, i)).reverse().toString();
//System.out.println(reverse);... | true |
ed7bbd93de98fcf5b4aeb15849fdfa1fabd68073 | Java | lucaslpsilveira/TF_Banco | /src/tf_banco/TF_Banco.java | UTF-8 | 3,057 | 3.3125 | 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 tf_banco;
import java.io.IOException;
import java.sql.*;
import java.util.Scanner;
/**
*
* @author lucas
*/
p... | true |