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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
8469c816707a64cd24330ef3d4333b4779790bef | Java | anahitkarhanian/Tasks | /src/day5/exercise9.java | UTF-8 | 657 | 3.359375 | 3 | [] | no_license | package day5;
import java.io.IOException;
public class exercise9 {
public static void main(String[] args) throws IOException {
char symb = (char) System.in.read();
switch (symb){
case 'a':
case 'A':
case 'e':
case 'E':
case 'i':
... | true |
d7a41e3acba368d35fd750587cdda5216a9ee708 | Java | innoq/bundle-bee | /Registry/src/main/java/org/bundlebee/registry/directory/Grid.java | UTF-8 | 4,072 | 2.703125 | 3 | [] | no_license | package org.bundlebee.registry.directory;
import java.net.URL;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
/**
* Represents what we know about the entire grid consisting of {@link Node}s.
* Nodes in turn contain {@link Bundle}s.
* <p>
* This datastructure is ONLY manipulated by {@link org.b... | true |
f9e84c118b5c6c7239d185d5d4ef3bf395792cc8 | Java | dfernandezm/user-crud | /user-crud/src/main/java/com/kuluvalley/usercrud/model/user/dao/UserDao.java | UTF-8 | 957 | 2.65625 | 3 | [] | no_license | package com.kuluvalley.usercrud.model.user.dao;
import com.kuluvalley.usercrud.model.user.User;
import com.kuluvalley.usercrud.model.util.GenericDao;
/**
* Here it is defined the DAO layer, which allows accessing persistence of the User entity and provide the functionality needed to create, update
* or delete a Us... | true |
31e8560d2c3f2b9533daadff9e030ae4ab22283e | Java | guramiabramishvili/FREEUNI-OOP-2021 | /assignment 2/BoardTest.java | UTF-8 | 4,415 | 3.0625 | 3 | [] | no_license | import junit.framework.TestCase;
import java.util.Arrays;
public class BoardTest extends TestCase {
Board a,b,c,d,e,f;
Piece pyr1, pyr2, pyr3, pyr4, s, sRotated, L1, L12, L2, S1, S2, Square, Stick;
int [] heights;
boolean hole;
// This shows how to build things in setUp() to re-use
// across tests.
// In thi... | true |
367b7fceff661641054ee9c6c0aaa86bd77dd055 | Java | antrikshv/tp | /src/main/java/seedu/duke/parser/ItemType.java | UTF-8 | 85 | 1.9375 | 2 | [] | no_license | package seedu.duke.parser;
public enum ItemType {
EVENT,
TASK,
MEMBER
}
| true |
9ebb5e8cba5894c774e2d9784495ef6915ce0ee1 | Java | wushanru/whmj.java_server | /bizserver/src/main/java/org/mj/bizserver/mod/oauth/RandomUserConfig.java | UTF-8 | 4,492 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | package org.mj.bizserver.mod.oauth;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.InputStream;
import java.util.Random;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.ReentrantLock;
/**
... | true |
b029d1139de0604940c98014b3f9b074936e3497 | Java | wmh-demos/Secret | /src/main/java/me/wayne/leetcodetop100/LC_Problems_isBalanced.java | UTF-8 | 706 | 3.453125 | 3 | [
"Apache-2.0"
] | permissive | package me.wayne.leetcodetop100;
/**
* 实现一个函数,检查二叉树是否平衡。在这个问题中,平衡树的定义如下:任意一个节点,其两棵子树的高度差不超过 1。
* https://leetcode.cn/problems/check-balance-lcci/
*/
class LC_Problems_isBalanced {
public boolean isBalanced(TreeNode root) {
if (root == null) {
return true;
}
if (Math.abs(dept... | true |
417c6b321e489184f21c77e14e43a406ba2da21f | Java | CuiBow/dagger_mvp | /app/src/main/java/com/example/admin/dragger_mvp/mvp/BasePresenter.java | UTF-8 | 1,089 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | package com.example.admin.dragger_mvp.mvp;
import com.example.admin.dragger_mvp.rx.viewException.ViewNullException;
import java.lang.ref.WeakReference;
import javax.inject.Inject;
/**
* Created by Admin on 2017/4/5.
*/
public abstract class BasePresenter <V extends BaseView,M extends IModel>{
@Inject
V ... | true |
c975d31f9ee7894baefe7bf6e6d84cb831d52b26 | Java | CraigFisher/BusyTimes | /BusyBusy/src/edu/scranton/fisherc5/busybusy/DailyViewFragment.java | UTF-8 | 3,858 | 2.28125 | 2 | [] | no_license | package edu.scranton.fisherc5.busybusy;
import java.util.ArrayList;
import edu.scranton.fisherc5.busybusy.db.daos.BusyTimeDao;
import edu.scranton.fisherc5.busybusy.db.daos.UserDao;
import edu.scranton.fisherc5.busybusy.db.schema.DatabaseCreator;
import edu.scranton.fisherc5.busybusy.utils.BusyTime;
import edu.scrant... | true |
027f2b6de8c0a0507b4b0518b79b991177fa7796 | Java | salahatwa/LoVet | /backend/core/gateway/src/main/java/com/project/gateway/petowner/overview/PetOwnerOverviewRepository.java | UTF-8 | 340 | 1.585938 | 2 | [] | no_license | package com.project.gateway.petowner.overview;
import com.project.domain.petowner.gateway.overview.PetOwnerOverview;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface PetOwnerOverviewRepository extends JpaRepository<PetOwnerOve... | true |
9ffc21538385c5166537740933c0349cc3438818 | Java | llabor/Spring | /com.banco/src/com/banco/Cuenta.java | UTF-8 | 77 | 1.84375 | 2 | [] | no_license | package com.banco;
public interface Cuenta {
public double saldo();
}
| true |
4eb2a1a088037519259421be90b59b1e4adc2bdd | Java | thinkp0907/Algo_Study | /Algo_21_09_28/동적계획법1/9184_신나는_함수_실행/Main_9184_한지희.java | UTF-8 | 885 | 3.046875 | 3 | [] | no_license | import java.util.Scanner;
public class b9184_신나는함수실행 {
static int[][][] dp = new int[21][21][21];
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
while (true) {
int a = in.nextInt();
int b = in.nextInt();
int c = in.nextInt();
if (a == -1 && b == -1 && c == -1) {
br... | true |
e5c6287754e7967645d5eb745115aac795018aa4 | Java | imakabr/voting-system | /src/test/java/ru/imakabr/votingsystem/web/json/JsonUtilTest.java | UTF-8 | 718 | 2.078125 | 2 | [] | no_license | package ru.imakabr.votingsystem.web.json;
import org.junit.jupiter.api.Test;
import ru.imakabr.votingsystem.model.User;
import java.util.List;
import static ru.imakabr.votingsystem.UserTestData.*;
class JsonUtilTest {
@Test
void testReadWriteValue() throws Exception {
String json = JsonUtil.writeVa... | true |
0f16309139438a15fe948d2005ae5a04f5f6db40 | Java | ShenQingchuan/bib-web-BE | /src/main/java/pro/techdict/bib/bibserver/dtos/DocumentCommentDto.java | UTF-8 | 927 | 2.265625 | 2 | [] | no_license | package pro.techdict.bib.bibserver.dtos;
import lombok.AllArgsConstructor;
import lombok.Data;
import pro.techdict.bib.bibserver.entities.DocumentComment;
@Data
@AllArgsConstructor
public class DocumentCommentDto {
Long id;
String content;
UserSimpleDto creator;
DocumentCommentDto replyTo;
int thumbsUpCount... | true |
04dabee3feeb20db63276f2cc4d0cb3a180f0ab9 | Java | hohowin/spring-boot-camunda | /order-service/src/main/java/com/github/ricardocomar/springbootcamunda/orderservice/usecase/CreateOrderUseCase.java | UTF-8 | 788 | 2.3125 | 2 | [] | no_license | package com.github.ricardocomar.springbootcamunda.orderservice.usecase;
import java.util.UUID;
import com.github.ricardocomar.springbootcamunda.orderservice.gateway.SaveOrderGateway;
import com.github.ricardocomar.springbootcamunda.orderservice.model.Order;
import com.github.ricardocomar.springbootcamunda.orderservice... | true |
9344c5af368f6f77a23cb07e29c70963a82d5988 | Java | thanushcst/AlgorithmTraining- | /src/com/techinnoveta/collection/map/MapImpl.java | UTF-8 | 1,510 | 3.5625 | 4 | [] | no_license | package com.techinnoveta.collection.map;
import java.util.HashMap;
import java.util.Map;
public class MapImpl {
public static void main(String args[]) {
Map<Employee, String> map = new HashMap<Employee, String>();
map.put(new Employee(100, "Amit"), "Amit");
map.put(new Employee(101, "Vijay"), "Vijay");
map.p... | true |
b6dd0cc2199a894ce84b06d5624b755ab1bae3ba | Java | fxybl/mrz-cloud | /cloud-seata-order/src/main/java/com/zqj/seata/order/service/OrderService.java | UTF-8 | 253 | 1.75 | 2 | [] | no_license | package com.zqj.seata.order.service;
import com.zqj.seata.api.pojo.Order;
/**
* @author zqj
* @create 2020-01-16 10:21
*/
public interface OrderService {
/**
* 创建订单
* @param order
*/
void createOrder(Order order);
}
| true |
e76bf4fb779b477c17e542017edfc553553918b9 | Java | Gangmi/test | /kos/datatype_exception/f_exception/Ex02_tryCatch.java | UTF-8 | 2,210 | 3.515625 | 4 | [] | no_license | package f_exception;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream.GetField;
public class Ex02_tryCatch {
public static void main(String[] args) {
FileInputStream fis = null; // try 구문에서 사용한 변수는 try가 끝나면 초기화 되기 때문에 따로 ... | true |
c07ae5985b6cdcaf92979f621477d4296936f96c | Java | jmagicdev/jmagic | /engine/src/main/java/org/rnd/jmagic/engine/generators/FaceDown.java | UTF-8 | 623 | 2.859375 | 3 | [] | no_license | package org.rnd.jmagic.engine.generators;
import org.rnd.jmagic.engine.*;
/**
* Returns all objects with {@link GameObject#faceDownValues} not null (that is,
* all face down permanents).
*/
public class FaceDown extends SetGenerator
{
private final static FaceDown _instance = new FaceDown();
public static FaceD... | true |
c85586c9e395ac815342025faf37f3837b87d943 | Java | ljh-dobest/association-android | /app/src/main/java/com/ike/communityalliance/listener/OnGetMineUserInfoFinishListener.java | UTF-8 | 278 | 1.609375 | 2 | [] | no_license | package com.ike.communityalliance.listener;
import com.ike.communityalliance.bean.UserInfo;
/**
* Created by T-BayMax on 2017/3/14.
*/
public interface OnGetMineUserInfoFinishListener {
void showError(String errorString);
void returnMineUserInfo(UserInfo data);
}
| true |
25c411db5c5eb6bb24cf1b50ae5d4a93f080be88 | Java | TomasAusinoPalau/integracion-clase9 | /src/RutinaDiaria.java | UTF-8 | 411 | 2.09375 | 2 | [] | no_license | import java.util.Vector;
public class RutinaDiaria {
private Comida desayuno;
private Comida almuerzo;
private Comida merienda;
private Comida cena;
public RutinaDiaria(Comida desayuno, Comida almuerzo, Comida merienda, Comida cena) {
this.desayuno = desayuno;
this.almue... | true |
3b467a9c70dc8109540fb1d98c00e6e91244ee7a | Java | matthis-d/slack-tcl | /src/main/java/com/matthisd/slacktcl/repositories/SlackRequestRepository.java | UTF-8 | 422 | 1.742188 | 2 | [] | no_license | package com.matthisd.slacktcl.repositories;
import com.matthisd.slacktcl.domain.SlackRequest;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
@RepositoryRestResource(collectionResourceRel = "slackRequests", path = "slackR... | true |
4f10a624cd11b316e3f1d982a7f1d2e04f8af17f | Java | aiyanbo/sliner | /src/main/java/org/sliner/mapper/SearchMapper.java | UTF-8 | 415 | 1.664063 | 2 | [
"Apache-2.0"
] | permissive | package org.sliner.mapper;
import java.util.Set;
/**
* Component:
* Description:
* Date: 13-6-18
*
* @author Andy Ai
*/
public interface SearchMapper {
Set<String> getKeys();
Set<String> getSchemas();
String getSchema(String key);
ConditionMapping getIdentifier(String key);
Set<Condition... | true |
7c9cb18f11fd0b7bbd140274389cbf9bd5ccd074 | Java | jarikol/kesaharjoitukset | /Kesaharjoitukset/src/kesaharjoitukset/K1_Bensankulutus.java | UTF-8 | 1,164 | 3.078125 | 3 | [] | no_license | //jarikol
package kesaharjoitukset;
import java.util.Scanner;
import yleiset.Tarkista;
public class K1_Bensankulutus {
public static void main (String[] args) {
Scanner skanneri = new Scanner(System.in);
String str;
double kulutus, matka, hinta;
while (true) {
System.out.print("Anna ... | true |
98ff5b4c54654cb2e4f04e9162d96a41a2692a07 | Java | ALTEA-2018/trainer-api-malik-olivier | /src/main/java/com/miage/altea/tp/trainer_api/controller/TrainerController.java | UTF-8 | 1,054 | 2.28125 | 2 | [] | no_license | package com.miage.altea.tp.trainer_api.controller;
import com.miage.altea.tp.trainer_api.bo.Trainer;
import com.miage.altea.tp.trainer_api.service.TrainerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web... | true |
eecc3a6c7bf3ce1f46ad76dfce90e29d1eea4fee | Java | lukejhudson/fyp-simulation | /src/code/ControlPanel.java | UTF-8 | 30,263 | 2.25 | 2 | [] | no_license | package code;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEven... | true |
0266a483b60d6f1b7c2ac03341e14c60534d1762 | Java | Sakai1zumi/JavaTestCode | /JavaSenior/CommonCalss/src/com/th1024/String/StringExer.java | UTF-8 | 5,226 | 4.09375 | 4 | [] | no_license | package com.th1024.String;
import org.junit.Test;
/**
* String常见算法题目
*
* @author TuHong
* @create 2021-01-28 10:05
*/
public class StringExer {
/**
* @description: 1. 模拟一个trim方法,去除字符串两端的空格
* @param: [str]
* @return: java.lang.String
* @author TuHong
* @date: 2021/1/28 11:21
*/
... | true |
7f2879a7561513cb6f2d9cba948611acca83cb87 | Java | CodecoolMSC2017/jwdb-advanced-bread-backend | /src/main/java/com/codecool/bread/exception/NoItemsFoundException.java | UTF-8 | 354 | 2.1875 | 2 | [] | no_license | package com.codecool.bread.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(HttpStatus.NOT_FOUND)
public class NoItemsFoundException extends RuntimeException {
public NoItemsFoundException() {
super("There are no items ad... | true |
e4ac9138001878f827737810e42c92579b148876 | Java | Mokshivyas/Hibernate | /SimpleClassMappingAnno/src/com/zensar/hibernate/main/DbOperations.java | UTF-8 | 1,396 | 2.859375 | 3 | [] | no_license | package com.zensar.hibernate.main;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
import com.zensar.entities.Product;
public class DbOperations {
public static void main(String[] args) {
Configuration c = ne... | true |
d996fb08989647136a2b85a6fee092a7c86f1cee | Java | nebula-projects/nebula-builder | /src/main/java/org/nebula/builder/AsyncMethodAspect.java | UTF-8 | 1,323 | 2.03125 | 2 | [] | no_license | /*
* Copyright 2002-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | true |
af3722f38e72ad6b8e3786a5b94260c17b63d443 | Java | wfink/infinispan | /core/src/main/java/org/infinispan/configuration/parsing/ParserContext.java | UTF-8 | 523 | 2.234375 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-dco-1.1"
] | permissive | package org.infinispan.configuration.parsing;
/**
* ParserContext. By using the methods declared in this interface, parsers can register listeners
* which will be invoked when the parsing completes successfully. This is useful when configuration can
* be completed only when the whole file has been parsed (e.g. beca... | true |
5430a48546fdd7b544b98bfe09daebfa394c4457 | Java | ecologylab/BigSemanticsService | /BigSemanticsService/src/main/java/ecologylab/bigsemantics/service/resources/OntoVizService.java | UTF-8 | 7,305 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | package ecologylab.bigsemantics.service.resources;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Respons... | true |
835670892e89155f83c8bc9d7fed7a5caa53d94b | Java | bhecquet/seleniumRobot | /core/src/main/java/com/seleniumtests/reporter/reporters/ReporterControler.java | UTF-8 | 21,024 | 1.585938 | 2 | [
"Apache-2.0"
] | permissive | /**
* Orignal work: Copyright 2015 www.seleniumtests.com
* Modified work: Copyright 2016 www.infotel.com
* Copyright 2017-2019 B.Hecquet
*
* 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... | true |
3f669f6767b4558601822d40343597b25e4cc846 | Java | xiaxiao1/Designpattern24 | /app/src/main/java/com/xiaxiao/designpattern24/chain_of_responsibility/Husband.java | UTF-8 | 432 | 2.625 | 3 | [] | no_license | package com.xiaxiao.designpattern24.chain_of_responsibility;
import com.xiaxiao.designpattern24.util.DPUtil;
/**
* Created by xiaxiao on 2017/7/28.
*/
public class Husband extends AbsHandler {
public Husband() {
super(AbsHandler.HANDLE_LEVEL_HUSBAND);
}
@Override
public void response(IReq... | true |
0739b6a0cd94e85c7ad77b457bf6d603b9665735 | Java | 19550Manish/flight | /flight/src/main/java/com/airline/flight/Enum/Meal.java | UTF-8 | 73 | 1.90625 | 2 | [] | no_license | package com.airline.flight.Enum;
public enum Meal {
veg,nonVeg;
}
| true |
985a0bdb3d625516b5fa55bbbdbbdfcef947faca | Java | Tsuweiquan/main | /src/main/java/seedu/address/model/group/Group.java | UTF-8 | 4,392 | 3 | 3 | [
"MIT"
] | permissive | //@@author rajdeepsh
package seedu.address.model.group;
import static java.util.Objects.requireNonNull;
import static seedu.address.commons.util.CollectionUtil.requireAllNonNull;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import seedu.address.model.person.Person;
import seedu.addr... | true |
c4622f405cc6d86854f05f961f29ba349e0a441e | Java | Drt36/tailor-manager | /src/main/java/com/internship/tailormanager/service/InventoryService.java | UTF-8 | 1,949 | 2.34375 | 2 | [] | no_license | package com.internship.tailormanager.service;
import com.internship.tailormanager.dto.InventoryDto;
import com.internship.tailormanager.mapper.InventoryMapper;
import com.internship.tailormanager.model.Inventory;
import com.internship.tailormanager.repository.InventoryRepository;
import org.springframework.beans... | true |
d3e1075c5d6b37851d4c3c586cbd338616c7baf9 | Java | seppinho/magic-reports | /src/main/java/lukfor/reports/SimpleHtmlReport.java | UTF-8 | 4,488 | 2.46875 | 2 | [
"MIT"
] | permissive | package lukfor.reports;
import java.awt.Desktop;
import java.io.File;
import java.io.IOException;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Vector;
import com.google.gson.Gson;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import lukfor.reports.... | true |
518746f77bdc83b85870802c439b20476d59740e | Java | Webtrekk/webtrekk-android-sdk | /webtrekk_sdk/src/main/java/com/webtrekk/webtrekksdk/Utils/ActivityTrackingStatus.java | UTF-8 | 10,499 | 2.1875 | 2 | [
"MIT"
] | permissive | /*
* The MIT License (MIT)
*
* Copyright (c) 2016 Webtrekk GmbH
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation the rights to use, copy... | true |
bca6e840308f71b8dc2f255697d8562099783aaa | Java | VicXekro/DigitalImageCode | /src/Control/HomePageController.java | UTF-8 | 5,284 | 2.328125 | 2 | [] | no_license | package Control;
import Model.Band;
import Model.Image;
import View.LoaderProvider;
import com.jfoenix.controls.*;
import com.jfoenix.transitions.hamburger.HamburgerBasicCloseTransition;
import com.jfoenix.transitions.hamburger.HamburgerSlideCloseTransition;
import javafx.event.ActionEvent;
import javafx.event.EventTy... | true |
84589927f3f46d0afbea60e61cfa857aa7ce35ea | Java | kuraun/Amazon-S3-FileSystem-NIO2 | /src/test/java/com/upplication/FilesOperationTest.java | UTF-8 | 1,274 | 2.5 | 2 | [
"MIT"
] | permissive | package com.upplication;
import org.junit.Test;
import java.io.IOException;
import java.net.URI;
import java.nio.file.FileSystem;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import java.util.HashMap;
impo... | true |
5caa872870604a7f1acd9dc1522a3bf5c8cf15c1 | Java | liyuansx/first-testing | /meisha_m_site/src/main/java/com/ningpai/m/information/controller/MobInfoSiteController.java | UTF-8 | 2,595 | 1.859375 | 2 | [] | no_license | /*
* Copyright 2013 NINGPAI, Inc.All rights reserved.
* NINGPAI PROPRIETARY / CONFIDENTIAL.USE is subject to licence terms.
*/
/**
*
*/
package com.ningpai.m.information.controller;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bin... | true |
ccc905879d29836e4c3516fb7d85d90d2c1dcd99 | Java | MarioPalma14/adminBasketPoe | /src/pkg2labo_mpwt/conexion.java | UTF-8 | 1,292 | 2.375 | 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 pkg2labo_mpwt;
import com.mysql.jdbc.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQL... | true |
69c24197967336d7462eae4bbe03c0c4f6902df4 | Java | Team3-x/Examination-registration-system | /src/com/zhonghuan/sx/controllor/MemberSearchName.java | UTF-8 | 1,322 | 2.34375 | 2 | [] | no_license | package com.zhonghuan.sx.controllor;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.zho... | true |
f9a2daa0f048417ca99446f9bce5df843617cd1d | Java | catorv/gallop | /data/src/main/java/com/catorv/gallop/cache/adapter/GuavaCacheAdapter.java | UTF-8 | 1,033 | 2.578125 | 3 | [] | no_license | package com.catorv.gallop.cache.adapter;
import com.catorv.gallop.cache.Cache;
import java.util.Map;
/**
* Guava Cache Adapter
* Created by cator on 8/3/16.
*/
public class GuavaCacheAdapter<K, V> implements Cache<K, V> {
private com.google.common.cache.Cache<K, V> adaptee;
public GuavaCacheAdapter(com.google... | true |
f17991f182e894f68a2f9776eb80a6c886624835 | Java | authrus/database | /authrus-database-attribute/src/test/java/com/authrus/attribute/TransformTest.java | UTF-8 | 1,848 | 2.609375 | 3 | [] | no_license | package com.authrus.attribute;
import java.io.Serializable;
import java.util.Date;
import java.util.LinkedHashSet;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import com.authrus.database.attribute.AttributeSerializer;
import com.authrus.database.attribute.CombinationBuilder;
import com.authru... | true |
d750b327a580ebe35857f28d535717e27527aff8 | Java | Taewii/leetcode | /leetcode/src/strings/p125_valid_palindrome.java | UTF-8 | 1,047 | 3.515625 | 4 | [] | no_license | package strings;
public class p125_valid_palindrome {
public static void main(String[] args) {
System.out.println(isPalindrome("A man, a plan, a canal: Panama"));
System.out.println(isPalindrome("race a car"));
}
static boolean isPalindrome(String s) {
if (s == null) return false;
... | true |
ac2542c4f4d26fd83bcd4f6b618bf098f7a9eb63 | Java | Keybinhoainam/Java | /src/Rutgonxaukytu.java | UTF-8 | 826 | 3.21875 | 3 | [] | no_license | import java.util.*;
public class Rutgonxaukytu {
public static String kt(String s)
{
int check=1;
while(check==1)
{
check=0;
for(int i=0;i<s.length()-1;i++)
{
if(s.charAt(i)==s.charAt(i+1))
{
check=1;... | true |
b7379e5537d31d763ddc4487ee9c15145c57ce94 | Java | shilpa24/Project | /GameOfLife/src/gameoflife/Cell.java | UTF-8 | 629 | 3.265625 | 3 | [] | no_license | package gameoflife;
public class Cell
{
private CellState cellState;
private int rowIndex;
private int colIndex;
public Cell(int x, int y, CellState cellstate)
{
this.rowIndex = x;
this.colIndex = y;
this.cellState = cellstate;
}
public CellState getCurrentState()
{
return this.cellState;
}
p... | true |
fd99599eb6f080a82df3424c8906516d43963279 | Java | congson99/Smart-Warehouse | /app/src/main/java/com/example/warehousemanagement/InfoActivity.java | UTF-8 | 5,539 | 1.992188 | 2 | [] | no_license | package com.example.warehousemanagement;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.media.Image;
import android.os.Bundle;
import android.util.Base64;
import a... | true |
24bb5ea1889662c599919a81b240c03e32f7a700 | Java | K-Phoen/JBlog | /src/java/db/factories/CategoryFactory.java | UTF-8 | 3,073 | 2.890625 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package db.factories;
import db.Connexion;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import metier.Category;
public... | true |
e3c3f696dc99f74b7a487f85488ac147a2287b12 | Java | chauluong1995/C0620G1-LuongPhuChau | /module2/src/abstract_class_interface/bai_tap/resizeable/Test.java | UTF-8 | 1,172 | 3.5625 | 4 | [] | no_license | package abstract_class_interface.bai_tap.resizeable;
import abstract_class_interface.bai_tap.colorable.Colorable;
import ke_thua.thuc_hanh.Shape;
public class Test {
public static void main(String[] args) {
Shape[] shapes = new Shape[3];
shapes[0] = new ResizeableCircle(1);
shapes[1] = new... | true |
e3cf9e32e34dadf121f90e87122724e020ab177a | Java | nicolaevieru/ExperimentalAssignment_JavaJuniorLevel | /src/main/java/com/fortech/service/AccountService.java | UTF-8 | 907 | 1.898438 | 2 | [] | no_license | package com.fortech.service;
import java.util.List;
import org.springframework.http.HttpHeaders;
import com.fortech.model.Account;
import com.fortech.model.Token;
import com.fortech.model.dto.AccountCreateDto;
import com.fortech.model.dto.AccountDeleteDto;
import com.fortech.model.dto.CartDetailsDto;
import com.fort... | true |
8545314b54154c22fe102b9a8710c5b00cb04b56 | Java | Proceduresgg/Cookies | /src/main/java/us/rengo/cookies/commands/staff/MuteChatCommand.java | UTF-8 | 765 | 2.171875 | 2 | [] | no_license | package us.rengo.cookies.commands.staff;
import co.aikar.commands.BaseCommand;
import co.aikar.commands.annotation.CommandAlias;
import co.aikar.commands.annotation.CommandPermission;
import co.aikar.commands.annotation.Dependency;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;... | true |
1a098a1b6493979594fd91f19b7227152db223e3 | Java | dafilipaj/OPGHrvatska | /src/com/portal/opghrvatska/ui/Forum.java | WINDOWS-1250 | 4,551 | 2.421875 | 2 | [] | no_license | package com.portal.opghrvatska.ui;
import java.sql.SQLException;
import com.portal.opghrvatska.DB.DBComment;
import com.portal.opghrvatska.DB.DBThread;
import com.portal.opghrvatska.data.User;
import com.portal.opghrvatska.ui.windows.Comments;
import com.portal.opghrvatska.ui.windows.NewThread;
import com.vaadin.data... | true |
035ba089e31ecb173ff4423b7b80cd34d4df887b | Java | Sviatlana-Zenko/module04 | /by/java_online/module04/aggregation_and_composition/task05/bean/ClientRequest.java | UTF-8 | 2,137 | 3.171875 | 3 | [] | no_license | package by.java_online.module04.aggregation_and_composition.task05.bean;
public class ClientRequest {
private TypeOfTransport transport;
private TypeOfMeal meal;
private int maxNumberOfDays;
public ClientRequest() {
}
public ClientRequest(TypeOfTransport transport, TypeOfMeal meal, ... | true |
76c758ae817455a51aa1b81040cecb965ffa7664 | Java | Karlito83/cleaningrobots | /source/CleaningRobot/src/cleaningrobots/generator/ScenarioGenerator.java | UTF-8 | 4,557 | 2.25 | 2 | [] | no_license | package cleaningrobots.generator;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Random;
import javax.imageio.ImageIO;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.EObject... | true |
23dd4913efcc3c5d5a9db61746134ecaa3e2d3cf | Java | truongquangkhai99/FinalProject-1 | /FUTimetabling/src/main/java/vn/edu/fpt/timetabling/auto/algorithms/AssignTeacher2.java | UTF-8 | 28,194 | 2.15625 | 2 | [] | no_license | package vn.edu.fpt.timetabling.auto.algorithms;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Scanner;
import choco.Choco;
import choco.cp.model.CPModel;
import choco.cp.solver.CPSolver;
import choco.kernel... | true |
864f199b0c1108c7d736ae2f2e9db5e7c6da8fc8 | Java | flpanbin/TCAPI | /src/com/tc/push/template/TemplateUtil.java | UTF-8 | 1,487 | 2.21875 | 2 | [] | no_license | /**
*
*/
package com.tc.push.template;
import com.gexin.rp.sdk.template.LinkTemplate;
import com.gexin.rp.sdk.template.TransmissionTemplate;
import com.gexin.rp.sdk.template.style.Style0;
import com.tc.conf.Config;
/**
* @author PB
*
*/
public class TemplateUtil
{
public static TransmissionTemplate getTransmi... | true |
0b1aa046c542b6bfe340eb600ef51365461ea539 | Java | zhaoyou/leetcode.com | /algorithms/src/DP/CanIWin.java | UTF-8 | 138 | 2.15625 | 2 | [] | no_license | package DP;
public class CanIWin {
public boolean canIWin(int maxChoosableInteger, int desiredTotal) {
return false;
}
}
| true |
8c69133c1c4706692af0b2e407b671e18fd5977b | Java | ackintosh/graphql-spring-boot | /graphql-kickstart-spring-support/src/main/java/graphql/kickstart/spring/error/ReflectiveGraphQLErrorFactory.java | UTF-8 | 1,593 | 2.3125 | 2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package graphql.kickstart.spring.error;
import static java.util.Collections.singletonList;
import graphql.GraphQLError;
import graphql.kickstart.execution.error.GenericGraphQLError;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.Optio... | true |
946561edb9e77f940c643b950b190620fcd0471d | Java | trykopa/annotations | /TestAnnotation.java | UTF-8 | 188 | 2.09375 | 2 | [] | no_license | package ua.kiev.prog;
public class TestAnnotation {
@Test(one = 1, two = 2)
public static void testMethod(int a, int b){
System.out.println("Result " + (a + b));
}
}
| true |
510eb25db3973f2680993349326ab685f9d5be21 | Java | rudiw/springboot-app | /src/main/java/com/mitrais/study/bootcamp/dao/impl/RoleDaoImpl.java | UTF-8 | 1,908 | 2.453125 | 2 | [] | no_license | package com.mitrais.study.bootcamp.dao.impl;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.mitrais.study.bootcamp.dao.RoleDao;
import com.mitrais.study.bootcamp.data.jpa.JpaRepositoryBase;
import com.mitrais.study.... | true |
fbfbabb5dfe29dce368a67a5a2f591cd39797ee4 | Java | ganeshrathinasamy/SonyJavaInduction2020 | /InstanceVariablesVsLocalVariables/src/com/sujata/training/DemoClass.java | UTF-8 | 1,075 | 3.375 | 3 | [] | no_license | package com.sujata.training;
public class DemoClass {
//Instance Variables : they get the memory area at the class instantiation time
private int number;
private String name;
private boolean status;
private float someValue;
private char ch;
public int getNumber() {
return number;
}
public v... | true |
16bc4bcf7e19c11e718c52fb3f54844f09a7ea56 | Java | MintGreenTZ/Mx-Compiler | /src/Compiler/SemanticAnalysis/ASTBuilder.java | UTF-8 | 16,080 | 2.78125 | 3 | [] | no_license | package Compiler.SemanticAnalysis;
import Compiler.AST.*;
import Compiler.Parser.MxstarBaseVisitor;
import Compiler.Parser.MxstarParser;
import Compiler.Utils.Location;
import Compiler.Utils.SemanticError;
import Compiler.Utils.SyntaxError;
import java.util.ArrayList;
import java.util.List;
/* ----------------------... | true |
94a02a8288c90051fe29cc39e555b5cdb5ff11a7 | Java | ingRicardo/matrixChallenges | /mirror.java | UTF-8 | 1,778 | 3.09375 | 3 | [] | no_license | import java.io.File;
import java.util.Scanner;
/**
* @author SRT
*
*/
public class mirror {
/**
* @param args
*/
final static int RIGHT =0, DOWN =1, LEFT=2,UP =3;
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = null;
try {
sc = new Scanner(new File("... | true |
1db35908b76607a11490a3fac4e5073cbe44e81e | Java | AlainDaccache98/RestoApp | /src/ca/mcgill/ecse223/resto/view/CancelOrderedItemPage.java | UTF-8 | 7,996 | 2.328125 | 2 | [] | no_license | package ca.mcgill.ecse223.resto.view;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.util.HashMap;
import java.util.Scanner;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JCombo... | true |
78da447e90fadda0fccc2f9a2c8c1c71fe2715c1 | Java | dmartinochoa/ShowHunt | /src/windows/CreateAccount.java | UTF-8 | 10,006 | 2.4375 | 2 | [] | no_license | package windows;
import controlador.*;
import modelo.*;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionAdapter;
import java.awt.geom.RoundRectangle2D;
import java.util.Arrays;
import java.awt.Cursor;
import javax.sw... | true |
8644daf410301b2346b62726a500ff87ae10014c | Java | dianaachim/Methods-of-advanced-programming | /src/Statements/IfStmt.java | UTF-8 | 827 | 2.96875 | 3 | [] | no_license | package Statements;
import ADT.MyADTExc;
import ADT.MyIStack;
import Expressions.Exp;
import Expressions.MyExpExc;
import Model.PrgState;
public class IfStmt implements IStmt {
private Exp exp;
private IStmt thenS;
private IStmt elseS;
public IfStmt(Exp e, IStmt t, IStmt el) {
exp = e;
... | true |
4e1c4c947f39666fa0fb087e545a60ff5a9da9cd | Java | reecedantin/OmniLinkIoT | /src/main/java/com/dantin/omnilinkiot/AllStatusRunner.java | UTF-8 | 2,459 | 2.40625 | 2 | [] | no_license | /**
*
*
*/
package com.dantin.omnilinkiot;
import java.lang.Runnable;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.digitaldan.jomnilinkII.Connection;
import com.digitaldan.jomnilinkII.Message;
import com.digitaldan.jomnilinkII.OmniInvalidResponseException;
impor... | true |
f5122e5a6afd10b1b62b802a0497d9d967c20371 | Java | CardioVascular-Research-Group/cvrg-annotations | /src/main/java/edu/jhu/cvrg/annotations/utilities/interfaces/OrderInfo.java | UTF-8 | 2,437 | 1.726563 | 2 | [] | no_license | package edu.jhu.cvrg.annotations.utilities.interfaces;
/*
Copyright 2014 Johns Hopkins University Institute for Computational Medicine
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.apa... | true |
54803cf9a09ade99578e96c031e9a90151036b32 | Java | bitcoinj/bitcoinj | /wallettemplate/src/main/java/org/bitcoinj/walletfx/application/WalletApplication.java | UTF-8 | 7,872 | 1.765625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright by the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | true |
23110f6c28c13d0cdd38eb7b77f151b6f6a7dc86 | Java | paul45692/Bachelorarbeit_MAS_with_CBR | /src/de/blanke/ba/spieler/Spieler.java | ISO-8859-1 | 3,688 | 2.921875 | 3 | [] | no_license | package de.blanke.ba.spieler;
import java.awt.Color;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import de.blanke.ba.model.Mhle;
import de.blanke.ba.model.Stein;
/**
* Diese klasse bildet einen Spieler ab.
* @author Paul Blanke.
*
*/
public class Spieler implements ... | true |
bbc74e60df7a980ceb86255ab357768c577cc473 | Java | y0-0nhj/WhatisJava | /IdTest01/src/IdTest01.java | UHC | 1,871 | 3.953125 | 4 | [] | no_license |
// νϽ - νϽ 鶧 Ǵ , static
// instance variable : non-static field, ʵ
// Ŭ - Ŭ ʷ Ǵ ѹ Ǿ νϽ ϴ , static ִ
// class variable : static field, ʵ
class Id {
private static int count = 0; // Ŭ , ʵ
private int id = 0; // νϽ , ʵ
//
public Id() {
this.id = ++count;
}
// getter
public ... | true |
b01e598fa130740caa773fb3ca92cc736d5a6255 | Java | dolevd2012/CalendarLibraryWithSample | /CommonCalendar/currentDayDecorator.java | UTF-8 | 911 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | package com.example.mycalendar;
import android.app.Activity;
import android.graphics.drawable.Drawable;
import androidx.core.content.ContextCompat;
import com.prolificinteractive.materialcalendarview.CalendarDay;
import com.prolificinteractive.materialcalendarview.DayViewDecorator;
import com.prolificinteractive.mat... | true |
d5f0a6070d18ea8e2154c91e33d6a3eb1ff03d2d | Java | ljh5043/SpirngBoot-Project | /src/main/java/com/example/test/controller/VolunteerController.java | UTF-8 | 4,131 | 2.15625 | 2 | [] | no_license | package com.example.test.controller;
import com.example.test.model.beans.vo.Criteria;
import com.example.test.model.beans.vo.PageDTO;
import com.example.test.services.VolunteerService;
import com.example.test.model.volunteer.vo.ApplicantsVO;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
impo... | true |
e2840e1826663e5ff73c859e19d44775ef5be675 | Java | solideosystems/esp | /src/main/java/esp/admin/intro/service/dao/IntroDao.java | UTF-8 | 302 | 1.71875 | 2 | [] | no_license | package esp.admin.intro.service.dao;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
@Mapper
public interface IntroDao {
Page<Map<String, Object>> getAllInformation(Pageable page);
}
| true |
b3ceba53a1088783db0f57735c0ada28c4fad6f6 | Java | PostGraduate-Stuff/Plutarch-Parallel-Lives-Refactor | /PlutarchParallelLives/src/gui/tableElements/tableConstructors/TableConstructionWithClusters.java | UTF-8 | 6,277 | 2.453125 | 2 | [] | no_license | package gui.tableElements.tableConstructors;
import java.util.ArrayList;
import java.util.Map;
import java.util.TreeMap;
import phaseAnalyzer.commons.Phase;
import tableClustering.clusterExtractor.commons.Cluster;
import data.dataKeeper.GlobalDataKeeper;
import data.dataPPL.pplSQLSchema.PPLSchema;
import data.dataPPL... | true |
3ecf01288620a26654410553fe58c87317ac175f | Java | ljldgup/JavaTest | /springCloud/ribbon/src/main/java/hello/RibbonClientApplication.java | UTF-8 | 1,363 | 1.882813 | 2 | [] | no_license | package hello;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.... | true |
9b49288770d075323118ad6a6ee84c5613670dc3 | Java | fmalinowski/RamseyNumber | /apps/ramseyapp/src/test/java/edu/ucsb/cs290cloud/strategies/Strategy1RandomTest.java | UTF-8 | 408 | 2.203125 | 2 | [] | no_license | package edu.ucsb.cs290cloud.strategies;
import static org.junit.Assert.*;
import edu.ucsb.cs290cloud.commons.GraphFactory;
import org.junit.Test;
/**
* Created by ethan_000 on 5/10/2015.
*/
public class Strategy1RandomTest {
//@Test
public void runStrategy(){
Strategy s = new Strategy1Random();
... | true |
26a27ed956aa7a12b17c49d84f00eb729ca6e5ce | Java | renbaoke/opendict | /src/opendict/common/Sense.java | UTF-8 | 184 | 1.789063 | 2 | [] | no_license | package opendict.common;
/**
* Created by baoke on 24/12/2016.
*/
public interface Sense {
String[] getDefinitions();
Example[] getExamples();
Sense[] getSubSenses();
}
| true |
6154d6be22e96685b95754d07219a9fd5fb4a4d7 | Java | Sollace/Unicopia | /src/main/java/com/minelittlepony/unicopia/entity/UEntities.java | UTF-8 | 5,917 | 1.796875 | 2 | [] | no_license | package com.minelittlepony.unicopia.entity;
import java.util.function.Predicate;
import com.minelittlepony.unicopia.Unicopia;
import com.minelittlepony.unicopia.entity.behaviour.EntityBehaviour;
import com.minelittlepony.unicopia.projectile.MagicProjectileEntity;
import net.fabricmc.fabric.api.biome.v1.BiomeModificat... | true |
d7005800ffea72a9242b88ac0137d05618a51994 | Java | SillyV/CounterLists | /app/src/main/java/sillyv/com/counterlists/baseline/BaseListView.java | UTF-8 | 293 | 1.632813 | 2 | [] | no_license | package sillyv.com.counterlists.baseline;
/**
* Created by Vasili.Fedotov on 2/21/2017.
*
*/
public interface BaseListView<D> extends BaseView<D> {
void onDeleteItemsSuccess();
void onResetItemsSuccess();
void onResetItemError();
void onDeleteItemsErrorResponse();
}
| true |
1a231b5cae3375f9534faed265a84bd37edb4081 | Java | veryVeri93/ZP4JV | /zp4jv/src/lecture1/Lecture1.java | UTF-8 | 607 | 2.4375 | 2 | [] | no_license | package lecture1;
public class Lecture1 {
public static void main(String[] args) throws Exception {
/*InputStream in = new FileInputStream("recept.xml");
OutputStream out = new FileOutputStream("recept2.xml");
Recipe r;
//= new SAXRecipeReaderWriter();
//Recipe r = rw.loadRecipe(in);
StAXR... | true |
a6daa99e1077b37cfbc205c3b42ec1160135064e | Java | saurabh321gupta/SPOJ | /src/FindAdIds.java | UTF-8 | 1,219 | 2.75 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashSet;
/**
* Created by sreps on 2/22/2017.
*/
public class FindAdIds {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new FileReader("C:\\users\\sr... | true |
dadbf02901c79d1aacfbeb4fc5ecc71cbd84c6ce | Java | DRahul89/ds-algo-practise | /DesignPattern/src/main/java/behavioral/Iterator/IteratorPatternDemo.java | UTF-8 | 485 | 3.5 | 4 | [] | no_license | package src.main.java.behavioral.Iterator;
/**
*
* A demo class for iterator pattern
*
*/
public class IteratorPatternDemo {
private static final String NAME_CONS = "Name : ";
public static void main(String[] args) {
final NameRepository namesRepository = new NameRepository();
for (final Iterator iter = ... | true |
fe699e5d6d22ba367ce4e5d010cabed7f2258dc8 | Java | zhangjianfeng111/spider | /src/main/java/com/spider/common/pojo/NurseryDetail.java | UTF-8 | 9,241 | 1.953125 | 2 | [] | no_license | package com.spider.common.pojo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.beetl.sql.core.annotatoin.Table;
import java.math.BigDecimal;
import java.util.Date;
@Getter
@Setter
@ToString
@Table(name="NURSERY_DETAIL")
public class NurseryDetail {
private Integer id;
privat... | true |
3689f9efa0157c902fdebda5ff5480fb9c47afe7 | Java | AlvinScrp/leetcode | /leetcode-java/solution/src/leetcode/dp/P1143.java | UTF-8 | 1,624 | 3.25 | 3 | [] | no_license | package leetcode.dp;
import java.util.Arrays;
public class P1143 {
public static void main(String[] args) {
System.out.println(longestCommonSubsequence("abcde","ace"));
}
public static int longestCommonSubsequence(String text1, String text2) {
int m = text1.length(), n = text2.length(... | true |
2811303da479d8e578e51c2b95ed3cc4989498f2 | Java | ivanina/Leagues | /LeagueService/src/test/java/info/makeyourpicks/test/suite/ServiceTestSuite.java | UTF-8 | 1,347 | 2.4375 | 2 | [] | no_license | package info.makeyourpicks.test.suite;
import info.makeyourpicks.service.GameManagerTest;
import info.makeyourpicks.service.LeagueManagerTest;
import info.makeyourpicks.service.MessageBoardManagerTest;
import info.makeyourpicks.service.PicksManagerTest;
import info.makeyourpicks.service.PlayerManagerTest;
impor... | true |
0a096b7606a55335bebc884fad47e1b76150f132 | Java | 2199830642/Java-JavaWeb-Knowledge-points | /src/chen/study/自己写的小栗子/MaoPao.java | UTF-8 | 612 | 3.390625 | 3 | [] | no_license | package chen.study.自己写的小栗子;
public class MaoPao {
public static void main(String[] args) {
int[] a = {1, 5, 2, 6, 712, 35, 6633, 357, 8};
demo01(a);
}
private static void demo01(int[] a) {
for (int i = 0; i < a.length - 1; i++) {
for (int j = 0; j < a.length - 1 - i; j+... | true |
7b235ff0c6a5445649313b28e33e969c37e47b5b | Java | jleung1239/JudyLBubbleSort | /src/com/company/BubbleSortRunner.java | UTF-8 | 1,150 | 3.4375 | 3 | [] | no_license | package com.company;
public class BubbleSortRunner {
public static void main(String[] args) {
// Print it before you sort
int[] testArr = {8,6,7,5,3,0,9,10,1,2,3};
System.out.print("Before: ");
for (int num:testArr)
System.out.print(num+" ");
System.out.println();
... | true |
a9cdd0b49c0ada2b678a5befe215dda149ecde1d | Java | liuyiyou/cn.liuyiyou.springcloud | /consumer-base/src/main/java/cn/liuyiou/cloud/controller/BaseConsumerController.java | UTF-8 | 2,264 | 2.453125 | 2 | [] | no_license | package cn.liuyiou.cloud.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.web.bind.an... | true |
860dc6064f2577feb979ecf546a7814005aa69a4 | Java | erki/EasyGrading | /easygrading-backend/src/main/java/at/erki/easygrading/backend/domain/model/AssessmentThreshold.java | UTF-8 | 714 | 2.109375 | 2 | [] | no_license | package at.erki.easygrading.backend.domain.model;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
@Entity
@Data
public class AssessmentThreshold {
@Id
@GeneratedVal... | true |
7e919ac7308317210f7a956cff75a3667251e22b | Java | jiguan/LeetCode | /test/com/leetcode/array/twopointers/LargestRectangleInHistogramBruteForce.java | UTF-8 | 958 | 3.40625 | 3 | [] | no_license | package com.leetcode.array.twopointers;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class LargestRectangleInHistogramBruteForce {
public int largestRectangleArea(int[] heights) {
int res = 0;
for (int i = 0; i < heights.length; ++i) {
int width = expand(h... | true |
cf1b77e111bd0ec33aa3bc708fab60c8e72fa760 | Java | Robi02/HomeStudy | /Java/Spring/jsw_core_spring_security/core-spring-security-board/src/main/java/com/de4bi/study/security/corespringsecurityboard/repository/ResourcesRepository.java | UTF-8 | 585 | 2 | 2 | [] | no_license | package com.de4bi.study.security.corespringsecurityboard.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.List;
import com.de4bi.study.security.corespringsecurityboard.dom... | true |
7c89ce9946142a00de2197f5366d8513e124f6e4 | Java | ohkawatks/orbe | /orbeUtils/src/jp/go/aist/utils/TCPtoUART.java | UTF-8 | 6,179 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | /*
* $Id: TCPtoUART.java 793 2008-09-17 02:09:28Z takaya $
* Copyright (C) 2008 AIST, National Institute of Advanced Industrial Science and Technology
*
*/
package jp.go.aist.utils;
import gnu.io.CommPortIdentifier;
import gnu.io.NoSuchPortException;
import gnu.io.PortInUseException;
import gnu.io.Seri... | true |
ea6da8f9b1a3ff282b9c0c365f6a53316ae13d37 | Java | wilnd/gongxiao | /main5/project_philips_jd/japp_gongxiao_phjd_payment_management/src/main/java/com/yhglobal/gongxiao/payment/dao/SupplierPrepaidFlowDao.java | UTF-8 | 1,810 | 2.015625 | 2 | [] | no_license | package com.yhglobal.gongxiao.payment.dao;
import com.yhglobal.gongxiao.payment.dao.mapping.SupplierPrepaidFlowMapper;
import com.yhglobal.gongxiao.payment.model.FlowSubtotal;
import com.yhglobal.gongxiao.payment.model.SupplierPrepaidFlow;
import org.springframework.beans.factory.annotation.Autowired;
import org.sprin... | true |
064095a29f4006c4d5243515c851ed56a739b580 | Java | douzonemania/scs-project | /scs-project-manager/src/main/java/com/douzonemania/scs/controller/api/ProductController.java | UTF-8 | 14,017 | 2.140625 | 2 | [] | no_license | package com.douzonemania.scs.controller.api;
import java.io.IOException;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.s... | true |
1cc1c64d1f5c71c592c51c851d1f6a590f84145e | Java | PythonicNinja/mevo | /MEVO_apkpure.com_source_from_JADX/sources/com/inverce/mod/events/annotation/ThreadPolicy.java | UTF-8 | 119 | 1.507813 | 2 | [] | no_license | package com.inverce.mod.events.annotation;
public enum ThreadPolicy {
BgThread,
UiThread,
CallingThread
}
| true |
1d51d6b046f076dc6fdc5b89926b320e30c053ce | Java | verdut/MasterEvents | /app/src/main/java/com/example/signapp/RegisterPage.java | UTF-8 | 6,064 | 2.359375 | 2 | [] | no_license | package com.example.signapp;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;... | true |