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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f30c6dd59821623029784b90d1fec2c4d85eb29a | Java | daniel-gc/Proyect_arquitectura | /src/main/java/mx/tecnetia/architecture/security/api_rest_controller/afiliacion/AfiliacionRestController.java | UTF-8 | 8,023 | 1.96875 | 2 | [] | no_license | package mx.tecnetia.architecture.security.api_rest_controller.afiliacion;
import java.time.LocalDate;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
im... | true |
f11caea35a9255ae1961bb229180b97d0a8f5230 | Java | soonphe/timber-android | /app/src/main/java/com/soonphe/timber/entity/PUser.java | UTF-8 | 5,322 | 1.742188 | 2 | [] | no_license | package com.soonphe.timber.entity;
import java.io.Serializable;
/**
* @Author anna
* @Date 2017-12-06 15:09
* @Description 用户表
*/
public class PUser implements Serializable {
/**
* id : 206
* userCode : 1508302196692000
* name : 咕噜
* password : null
* sex : 0
* email : null
... | true |
b4a303d7572f43f5039de9f5814926a4b67b411b | Java | kunalvandra/ethChallenge | /src/test/java/Purchase.java | UTF-8 | 2,645 | 2.171875 | 2 | [] | no_license | import org.openqa.selenium.By;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import java.util.concurrent.... | true |
32cab580675945159f943caf09ee6d9b8ef06b5e | Java | lautimartner/Data-Structures | /estructuras/nolineales/NodoBinario.java | UTF-8 | 452 | 2.5 | 2 | [] | no_license | /*
* Código utilizado para el curso de Estructuras de Datos.
* Se permite consultarlo para fines didácticos en forma personal,
* pero no está permitido transferirlo tal cual a estudiantes actuales o potenciales.
*/
package ed.estructuras.nolineales;
/**
*
* @author blackzafiro
*/
public interface NodoBinario<E>... | true |
7a131354e2cf508fb53b482a3834c6ba1a77e602 | Java | Effective-Quality/DependencyInjection | /src/test/java/GreetingTest.java | UTF-8 | 1,524 | 2.328125 | 2 | [] | no_license | import Helper.TestHelper;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
/**
* Created by sebastian on 14/09/16.
*/
public class GreetingTest {
Greeting sut;
TestHelper h;
@Before
public void setUp(){
sut = new Greeting();
h = new TestHelper();
}
... | true |
8707c85f210ead0e29a141bddaf54c16b76329f3 | Java | Kodr-me/algorithmic-questions | /src/test/java/Solutions/Node/SingleLinkedListNodeTest.java | UTF-8 | 7,895 | 3.328125 | 3 | [] | no_license | package Solutions.Node;
import org.junit.jupiter.api.Test;
import static Solutions.Node.SingleLinkedListNode.*;
import static org.junit.jupiter.api.Assertions.*;
public class SingleLinkedListNodeTest {
@Test
void lengthTest1() {
SingleLinkedListNode head = generateList();
assertTrue(head.leng... | true |
d4b59b0a946bec362f20b56c0006d5cfb392f2d0 | Java | naveen-karthick/java_basics | /src/io/ztech/intern/assignment1_first.java | UTF-8 | 465 | 2.96875 | 3 | [] | no_license | package io.ztech.intern;
import java.util.*;
public class assignment1_first {
static public int sum(String nav1)
{
int sum=0;
for(int i=0;i<nav1.length();i++)
{
if(nav1.charAt(i)>48&&nav1.charAt(i)<57)
{
sum+=Integer.parseInt(Character.toString((nav1.charAt(i))));
}
}
return sum;
}
p... | true |
141b70bdbdfc0a263d44c22fb847b1b3c5d7146c | Java | steerforth/java-io-socket | /src/main/java/com/steer/socket/netty/snmp/SnmpClientHandler.java | UTF-8 | 1,128 | 2.421875 | 2 | [] | no_license | package com.steer.socket.netty.snmp;
import com.steer.socket.Util.HexUtil;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.channel.socket.DatagramPacket;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public ... | true |
36151a5c4cc753b54b1c23b145dffe5632a4579a | Java | lotuswlz/wlz-project | /01.project_as_tool/myTool/src/testFile/FetchFileNames.java | EUC-JP | 2,761 | 2.703125 | 3 | [] | no_license | /*
* History
* Version Update Date Updater Details
* 1.0.00 2011-4-29 Cathy Wu Create
*/
package testFile;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.ut... | true |
d03e9561f674e75708867100fef587867b746950 | Java | iBaDian/fshop | /fshop-user/fshop-user-provider/src/main/java/com/fshop/user/controller/UserController.java | UTF-8 | 2,127 | 1.929688 | 2 | [] | no_license | /*
* Copyright [2020] [rannuo]
*
* 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 i... | true |
da35f1907ffa4165eda35591eb490a6507f9930d | Java | bellmit/yonyou | /dms.gacfca/src/main/java/com/yonyou/dms/gacfca/SADMS051.java | UTF-8 | 310 | 1.8125 | 2 | [] | no_license | package com.yonyou.dms.gacfca;
import java.util.LinkedList;
import com.yonyou.dms.DTO.gacfca.SADMS051DTO;
/**
* @description 经营月报表上报
* @author Administrator
*
*/
public interface SADMS051 {
LinkedList<SADMS051DTO> getSADMS051(String dealerCode,String year,String month);
}
| true |
594922e7dc93371b5730ebb19ffde7affb788a89 | Java | tommyqpeng/decision-tree | /src/Main.java | UTF-8 | 3,684 | 2.875 | 3 | [
"MIT"
] | permissive | import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Objects;
import weka.core.converters.CSVLoader;
//Main class for decision tree
//Author: Tommy Peng
public class Main {
public static void main(String args[])... | true |
64d539190b4cbc4a31afc134ea0c81251d25d0a8 | Java | eureko/DBPediaInterface | /src/main/java/it/unina/egc/DBInterface/Utils/DBpediaTypePropertiesExporter.java | UTF-8 | 6,504 | 2.265625 | 2 | [] | no_license | package it.unina.egc.DBInterface.Utils;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.TreeMap;
import java.util.Vector;
import... | true |
e50b0c9222ea3f221c4c8c90542e94fc07be6ed2 | Java | wexxwebb/sport_schedule | /src/main/java/controllers/RegistrerController.java | UTF-8 | 3,492 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package controllers;
import common.RegisterDataCheck;
import org.apache.log4j.Logger;
import services.impl.RegisterServiceImpl;
import services.impl.SexListServiceImpl;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http... | true |
877544c79ad45a4564ef98108c83b6a887799202 | Java | czmDeRepository/Music_sharing_Backstage | /src/main/java/com/zhuanye/music_system/dao/SingerDao.java | UTF-8 | 1,072 | 2.28125 | 2 | [] | no_license | package com.zhuanye.music_system.dao;
import com.zhuanye.music_system.entity.Singer;
import com.zhuanye.music_system.entity.SingerListView;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface SingerDao {
/**
* 新增
* @param singer
* @return
*/
int in... | true |
2428e53227740ace51bfe14e4c75b63f1a850fb8 | Java | QuyenLy87/snomed-release-service | /api/src/test/java/org/ihtsdo/buildcloud/controller/AbstractControllerTest.java | UTF-8 | 3,245 | 1.65625 | 2 | [
"Apache-2.0"
] | permissive | package org.ihtsdo.buildcloud.controller;
import java.io.IOException;
import java.nio.charset.Charset;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
im... | true |
52d5d51ee677a30fc254f580442f8b14be5fdcc3 | Java | SharonLi123/Leetcode | /src/leetcode/editor/cn/两数之和.java | UTF-8 | 898 | 3.046875 | 3 | [] | no_license | package leetcode.editor.cn;
import java.util.HashMap;
public class 两数之和{
public static void main(String[] args){
Solution solution=new Solution();
}
}
//leetcode submit region begin(Prohibit modification and deletion)
class Solution {
public int[] twoSum(int[] nums, int target) {
/*
... | true |
62a03d254e696dedb11a880103843be0cfae4c45 | Java | newzko91/biomaps | /src/br/com/unip/servlets/admin/CreateAdminConsoleServlet.java | UTF-8 | 3,235 | 2.53125 | 3 | [] | no_license | package br.com.unip.servlets.admin;
import java.io.IOException;
import java.sql.Connection;
import java.sql.SQLException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpSer... | true |
f109de6f7ab1c26955150a3e9f84482f7786cb0a | Java | aoeminh/ShopPhonee | /app/src/main/java/com/example/apple/shopphonee/utils/UtilsSharePref.java | UTF-8 | 514 | 1.9375 | 2 | [] | no_license | package com.example.apple.shopphonee.utils;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
public class UtilsSharePref {
private static SharedPreferences sharedPreferences=null;
public static SharedPreferences getSharedPreferences(Con... | true |
3724f78f9c10d499e3d358ccd8fbf76d261bc6e6 | Java | AmolGangadhare/TG-hackathon | /app/src/main/java/com/techgigandroidhackathon/app_constants/DBConstants.java | UTF-8 | 5,273 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package com.techgigandroidhackathon.Constants;
/**
* Created by Amol G on 01-12-2017.
*/
public interface DBConstants {
/**
* Table names
*/
String COUNTRY_TABLE = "CountryTable";
String CURRENCY_TABLE = "CurrencyTable";
String LANGUAGE_TABLE = "LanguageTable";
String REGIONAL_BLOCKS_T... | true |
fdb2bdd710fd9a414ef0a3d8a33176db54842a20 | Java | digideskio/crash | /src/main/java/com/cloudera/crash/generics/DataFactory.java | UTF-8 | 2,060 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2013 Cloudera 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 agreed to ... | true |
dc24c7bf1a72fda2447dcee2cba26ad5cfc4ff87 | Java | Bickets/508-HD | /src/rs/Class88.java | UTF-8 | 1,920 | 1.546875 | 2 | [] | no_license | /* Class88 - Decompiled by JODE
* Visit http://jode.sourceforge.net/
*/
package rs;
import com.jagex.applet.Applet_Sub1;
import com.jagex.cache.anim.AnimLoader;
import com.jagex.cache.loaders.VarBit;
import com.jagex.cache.loaders.SpotAnimType;
import com.jagex.cache.loaders.UnderlayType;
import com.jagex.... | true |
3086e50178193f396d126b741ece820cab9a5ede | Java | sgarcianepomuceno/CIS-3260 | /CIS-3260/Chapter_2/Chapter2Assignment.java | UTF-8 | 708 | 4.3125 | 4 | [] | no_license | package Chapter_2;
//Import Scanner to receive input from user.
import java.util.Scanner;
//Class name: Chapter2Assignment
public class Chapter2Assignment {
//Write main method and have user input number of days.
public static void main(String[]args) {
Scanner in = new Scanner(System.in);
System.o... | true |
5504b2660a56118e06e3f61638a9f92abfeacd6f | Java | gmol27/google-api-java-client | /google-api-client/src/main/java/com/google/api/client/googleapis/subscriptions/MemorySubscriptionStore.java | UTF-8 | 2,294 | 2.359375 | 2 | [] | no_license | /*
* Copyright (c) 2012 Google 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 agreed to in ... | true |
9247779a3bf4d8013e58d7b41e5e6cbd945c03d6 | Java | djack11/cobb6firstassignment | /objects-and-classes/ObjectsExample2.java | UTF-8 | 530 | 4.46875 | 4 | [] | no_license | //Example: Create objects inside the same class
class Lamp {
// stores the value for light
// true if light is on
// false if light is off
boolean isOn;
// method to turn on the light
void turnOn() {
isOn = true;
System.out.println("Light on? " + isOn);
}
public static void main(String[] ... | true |
7c5ef06663c78cfa12f34114c942a019cc91c44a | Java | pepperonas/TruthOrDare | /truthordare/src/main/java/com/pepperonas/truthordare/model/Truth.java | UTF-8 | 1,307 | 2.25 | 2 | [] | no_license | /*
* Copyright (c) 2016 Martin Pfeffer
*
* 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 ag... | true |
d74a598e6aaa65bbaf3d87cd0e52b8a84c6c9924 | Java | suyash248/mangalam_sarees | /mangalamSaree/src/main/java/com/soni/controller/DailyTransactionCotroller.java | UTF-8 | 2,431 | 2.09375 | 2 | [] | no_license | package com.soni.controller;
import java.util.Arrays;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.w... | true |
129b4d7d8e9a4cc1e4945af11f0dd27d434d5cea | Java | yamadadada/leetcode | /src/RandomizedCollection.java | UTF-8 | 1,777 | 3.953125 | 4 | [] | no_license | import java.util.*;
/**
* 381. O(1) 时间插入、删除和获取随机元素 - 允许重复
*/
public class RandomizedCollection {
private List<Integer> list;
private Map<Integer, List<Integer>> map;
/** Initialize your data structure here. */
public RandomizedCollection() {
list = new ArrayList<>();
map = new Hash... | true |
6a23d1d8b6e2590c37f0fdc40b7a915231c43f37 | Java | Darkyenus/DarkyenusCommand | /src/main/java/darkyenuscommand/systems/WorldSystem.java | UTF-8 | 3,624 | 2.5625 | 3 | [] | no_license | package darkyenuscommand.systems;
import darkyenuscommand.command.Cmd;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.WorldCreator;
import org.bukkit.WorldType;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.event.Listene... | true |
3722ef99f86f5b4aececec635af4f499caf7c6cf | Java | StellaChieh/annual-report-builder | /app_surface/src/main/java/cwb/cmt/surface/service/CreateTableImageForAuxCliSum.java | UTF-8 | 13,632 | 2.296875 | 2 | [] | no_license | package cwb.cmt.surface.service;
import java.util.GregorianCalendar;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import ChartDirector.BaseChart;
import ChartDirector.CDMLTable;
import ChartDirector.Chart;
import ChartDirector.TextBox;
import ChartDirector.... | true |
49e93d7d34e8bb4566008be531e874b1cc10a8b9 | Java | NawazAli90/Waka | /waka/app/src/main/java/com/waka/ride/dialog/dialog_baseUrl.java | UTF-8 | 2,298 | 2.3125 | 2 | [] | no_license | package com.waka.ride.dialog;
import android.graphics.Point;
import android.os.Bundle;
import android.view.Display;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import androidx.f... | true |
e035208a88358fd3724fb34352d17845a6908166 | Java | yggdrash/yggdrash | /yggdrash-core/src/test/java/io/yggdrash/core/blockchain/BranchContractTest.java | UTF-8 | 1,847 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 Akashic Foundation
*
* 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 agre... | true |
b3c622ba09b654591971a4cfe9d86931147bd252 | Java | MorleyMinde/dhis2-core | /dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/program/hibernate/HibernateProgramMessageStore.java | UTF-8 | 5,430 | 1.945313 | 2 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | package org.hisp.dhis.program.hibernate;
/*
* Copyright (c) 2004-2018, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the ab... | true |
8333e3a649435e002bb93a1aa43dc61e217b7455 | Java | raulgonzalezcz/Design-Patterns-Java | /src/proyectofinalpatrones/ConcreteComponent.java | UTF-8 | 437 | 2.5625 | 3 | [
"MIT"
] | permissive | package proyectofinalpatrones;
/**
* Clase que pertenece a Decorator
*
* @author Raúl González <raul.gonzalezcz@udlap.mx> ID: 151211
* @version 1.0
* @since 22/04/17
*
*/
import javax.swing.JTextArea;
public class ConcreteComponent extends Component
{
public void operation(JTextArea textArea)
... | true |
ce035535e5ee0587b0e7fc8c63e55e34aaf010ca | Java | s-goryakin/color-filler-android | /app/src/main/java/ru/fauzzzt/colorfiller/view/mvp/BaseActivity.java | UTF-8 | 409 | 1.726563 | 2 | [] | no_license | package ru.fauzzzt.colorfiller.view.mvp;
import etr.android.reamp.mvp.MvpAppCompatActivity;
import etr.android.reamp.mvp.MvpStateModel;
import ru.fauzzzt.colorfiller.CFApplication;
public abstract class BaseActivity<P extends BasePresenter<SM>, SM extends MvpStateModel> extends MvpAppCompatActivity<P, SM> {
pub... | true |
30d945997f357a72e6624410e72d1283406faaea | Java | gc5k/GEAR | /GEAR/src/gear/family/RabinowitzLairdAlgorithm/rabinowitz/Rabinowitz0.java | UTF-8 | 1,403 | 2.46875 | 2 | [] | no_license | package gear.family.RabinowitzLairdAlgorithm.rabinowitz;
import java.util.TreeMap;
import gear.family.RabinowitzLairdAlgorithm.AbstractGenoDistribution;
import gear.util.NewIt;
/**
*
* @author Guo-Bo Chen, chenguobo@gmail.com
*/
// both parents' genotype were observed
public class Rabinowitz0 exten... | true |
e60e11ca00a9725bf0906f9c48d6d3b228799dc9 | Java | flyingOrange/springcloudLearn | /microservicecloud-provider-dept-8001/src/main/java/com/orange/springcloud/controller/DeptController.java | UTF-8 | 1,721 | 2.3125 | 2 | [] | no_license | package com.orange.springcloud.controller;
import java.util.List;
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.annotation.PathVariable;
impo... | true |
f1935befed68a894ca17b85df0a5cf889d1651ec | Java | Jimmyfoxtrote88/Learn-merging | /src/com/example/animal/Cow.java | UTF-8 | 720 | 3.28125 | 3 | [] | no_license | package com.example.animal;
import com.example.products.Meat;
import com.example.products.Product;
import java.util.Random;
public class Cow implements Animal {
private int volume = new Random().nextInt(13) + 2;
private final String name;
public Cow() {
name = "безымянная";
}
@Override
... | true |
81fb74f784c64c0ef03815c4ab009597f59bfd8e | Java | moutainhigh/agency | /finance_src/com/greatchn/customer/po/.svn/text-base/OperateLog.java.svn-base | UTF-8 | 3,980 | 1.765625 | 2 | [] | no_license | package com.greatchn.customer.po;
/**
* OperateLog entity. @author MyEclipse Persistence Tools
*/
public class OperateLog implements java.io.Serializable {
// Fields
/**
* @Fields serialVersionUID : (用一句话描述这个变量表示什么)
*/
private static final long serialVersionUID = 6880970375407624407L;
private String id;
pr... | true |
4471a06fa5f01048ee62cb81794b785291a6a2d1 | Java | DACS-BAKKER/HashTables-EliJi | /SonnetConcordance.java | UTF-8 | 2,084 | 3.34375 | 3 | [] | no_license | /* *****************************************************************************
* Name: Eli Ji
* Description:
**************************************************************************** */
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import ja... | true |
e848eafc7ea35b23e67251224c65e651cb679fae | Java | Gerrytty/social-network-spring-boot | /social-network-boot/rest/src/main/java/ru/itis/rest/service/CommentForPhotoServiceImpl.java | UTF-8 | 1,125 | 2.125 | 2 | [] | no_license | package ru.itis.rest.service;
import org.springframework.stereotype.Service;
import ru.itis.rest.dto.CommentForPhotoDto;
import ru.itis.rest.model.CommentForPhoto;
import ru.itis.rest.model.Photo;
import ru.itis.rest.model.User;
import ru.itis.rest.repository.CommentsForPhotoRepository;
import java.util.List;
@Servic... | true |
c16583ec8bf97149046173dc2c653937aded3a68 | Java | staskorobeynikov/job4j_hibernate | /src/main/java/carbuyer/servlets/CarShowDetailsServlet.java | UTF-8 | 787 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package carbuyer.servlets;
import carbuyer.logic.Validate;
import carbuyer.logic.ValidateService;
import carbuyer.models.Car;
import com.google.gson.Gson;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
pu... | true |
f43610404c8294889808f1386d2901be52c74a83 | Java | JetBrains/intellij-community | /platform/platform-impl/src/com/intellij/openapi/fileChooser/FileSystemTreeFactory.java | UTF-8 | 821 | 1.765625 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.openapi.fileChooser;
import com.intellij.openapi.actionSystem.DefaultActionGroup;
import com.intellij.openapi.fileChooser.ex.FileSystemTreeFactoryImpl;
import com.intellij.opena... | true |
c798e378ac03009d0d366ae7955c99a68b3a53d6 | Java | av9ash/SS_BankApp | /Server/Services/requestService/src/main/java/org/asu/cse545/group4/server/requestservice/dao/impl/RequestDAOImpl.java | UTF-8 | 6,376 | 2.03125 | 2 | [] | no_license | package org.asu.cse545.group4.server.requestservice.dao.impl;
import java.util.Date;
import org.asu.cse545.group4.server.requestservice.dao.RequestDAO;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype... | true |
9dcc5dc183f894f0238497620aca6bee85fedab6 | Java | DanElias/3D-TicTacToe | /src/tictactoe/Menu.java | UTF-8 | 7,649 | 2.703125 | 3 | [] | no_license | /*Author: Daniel Elias Becerra A01208905
Description: This class creates the GUI for the main menu with the buttons play, open and rules.
Date: 17/04/18
*/
package tictactoe;
import logic.*;//Imports the classes in the package logic: Game and Player
public class Menu extends javax.swing.JFrame {
public Menu() {... | true |
8fdb2b631c595b8a4458824e564de9540c47e1ea | Java | Swathi128/Fanniemae | /root/src/main/java/com/fanniemae/automation/driver/WebDriverProducer.java | UTF-8 | 4,922 | 2.453125 | 2 | [] | no_license | package com.fanniemae.automation.driver;
import java.util.EnumMap;
import java.util.Map;
import java.util.Objects;
import org.apache.log4j.Logger;
import org.openqa.selenium.Capabilities;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.... | true |
5140c5c39111763c82564ac1951704ed9a236660 | Java | Fureniku/cOre | /src/main/java/com/silvaniastudios/core/blocks/BlockOre1.java | UTF-8 | 10,148 | 1.890625 | 2 | [] | no_license | package com.silvaniastudios.core.blocks;
import java.util.Random;
import com.silvaniastudios.core.config.AluminiumConfig;
import com.silvaniastudios.core.config.ChromiumConfig;
import com.silvaniastudios.core.config.CobaltConfig;
import com.silvaniastudios.core.config.CopperConfig;
import com.silvaniastudios.core.con... | true |
642f4dd38b57271f26ea4a85df2dcabe547e6716 | Java | supremehappy/JSP_test02 | /MyHomeMybatisImageTest/src/servlets/UpdateDoServlet.java | UTF-8 | 3,063 | 2.421875 | 2 | [] | no_license | package servlets;
import java.io.IOException;
import javax.servlet.ServletContext;
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.oreilly.... | true |
dc032847296bfe49f59d35ab41fd719d4254d375 | Java | jw0712/SWE3019 | /day5/src/edu/skku/java/bank/Minus.java | UHC | 992 | 3.296875 | 3 | [] | no_license | package edu.skku.java.bank;
public class Minus extends Account {
private int limit; //ѵ
// Constructor
public Minus() {
super();
}
public Minus(String num, int password, long balance, int limit) {
super(num, password, balance);
setLimit(limit);
}
//, ̵
@Override
publ... | true |
8ccd95b9fe6d876731e251b344a37954930d3a93 | Java | sxfcode/common_tools | /src/jdk/detail/io/DivideUtils.java | UTF-8 | 6,237 | 2.8125 | 3 | [] | no_license | package jdk.detail.io;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.ArrayList;
import java.util.List;
/**
* The Class DivideUtils.
*
* @date 2013-6-21 11:42:49
* @author 宿晓斐
* @ve... | true |
2bae9cb5bdbeae59e0acb72fc506e3dc4806310b | Java | nightwolf93/Wakxy-Core-Decompiled | /1_39_120042/com/ankamagames/wakfu/common/game/effect/runningEffect/PullTargetBackToCaster.java | UTF-8 | 12,021 | 2.046875 | 2 | [] | no_license | package com.ankamagames.wakfu.common.game.effect.runningEffect;
import com.ankamagames.framework.kernel.core.common.serialization.*;
import java.nio.*;
import com.ankamagames.baseImpl.common.clientAndServer.game.effect.runningEffect.*;
import com.ankamagames.wakfu.common.datas.specific.*;
import com.ankamagames.baseIm... | true |
ce73c4e75b05a5449645877fbdab619e1cfc0748 | Java | redesperado/music | /src/main/java/com/my/music/dao/MusicDao.java | UTF-8 | 188 | 1.703125 | 2 | [] | no_license | package com.my.music.dao;
import com.my.music.bean.MusicBean;
import java.util.List;
import java.util.Map;
public interface MusicDao {
public List<Map<String,Object>> getMusic();
}
| true |
df49be17db58554f2b45429cdc1aeb6d2ca4c990 | Java | Running-Chen911/safecustody_sdk_java | /safecustody/src/main/java/pro/safeworld/swasdk/Route.java | UTF-8 | 10,437 | 2.34375 | 2 | [] | no_license | package pro.safeworld.swasdk;
import com.alibaba.fastjson.JSON;
import pro.safeworld.swasdk.data.Req.*;
import pro.safeworld.swasdk.data.comm.Resp;
import pro.safeworld.swasdk.data.comm.RespData;
import pro.safeworld.swasdk.data.Resp.*;
import java.util.HashSet;
/**
* 路由
*/
public class Route extends Request {
... | true |
88ff9ce3e2f58250e73b77da62bab86b126dfcc0 | Java | bappleug-tw/exam-plantform | /src/main/java/demo/domain/paper/PaperPolicy.java | UTF-8 | 570 | 2.25 | 2 | [] | no_license | package demo.domain.paper;
import demo.domain.paper.excaption.InvalidBlankQuizIdException;
import demo.repository.QuizRepository;
import java.util.List;
public class PaperPolicy {
private QuizRepository quizRepository;
public PaperPolicy(QuizRepository quizRepository) {
this.quizRepository = quizRep... | true |
420bf817ac016a1883903012552395fecfaa9d06 | Java | sanyamigp/IGP_Automation | /src/main/java/framework/tests/JavaSample.java | UTF-8 | 1,859 | 2.328125 | 2 | [] | no_license | package framework.tests;
import java.net.URL;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.op... | true |
ecc266da594ebff68faaea2cbee672f243f1d417 | Java | AnggitNendyo/CariTourGuide2 | /app/src/main/java/d3ti/uns/anggit/caritourguide/data/helper/SharedPrefManager.java | UTF-8 | 1,447 | 2.296875 | 2 | [] | no_license | package d3ti.uns.anggit.caritourguide.data.helper;
import android.content.Context;
import android.content.SharedPreferences;
public class SharedPrefManager {
public static final String SP_CTG_APP = "spCTGApp";
public static final String SP_EMAIL = "spEmail";
public static final String SP_SUDAH_LOGIN = "s... | true |
e38141f146bd9718c72c3f1da52c9ac7763d2272 | Java | IrinaSendetskaya/onlinestore_zoo_epam | /src/main/java/by/htp/onlinestore/util/constants/ExceptionMessageConstantDeclaration.java | UTF-8 | 409 | 1.9375 | 2 | [] | no_license | package by.htp.onlinestore.util.constants;
/**
* Util class provides methods for declaration a ExceptionMessage constants
* @author Iryna Siandzetskaya
*
*/
public final class ExceptionMessageConstantDeclaration {
/**
* constructor without parameter
*/
private ExceptionMessageConstantDeclaration() {
}
p... | true |
43f65bf380d687950b729c22b219f2577891f6ea | Java | munHunger/StormyNeutron | /src/stormyNeutron/world/Generator.java | UTF-8 | 2,678 | 2.953125 | 3 | [] | no_license | package stormyNeutron.world;
import stormyNeutron.util.Invoke;
import stormyNeutron.util.Tuple;
import stormyNeutron.world.part.Entrance;
import stormyNeutron.world.part.Grass;
import stormyNeutron.world.part.Road;
import stormyNeutron.world.part.Tile;
import java.awt.Color;
import java.awt.Graphics;
import java.util... | true |
2ece662b5b46eafb1925e3214171ebf216252a46 | Java | f3226912/gd | /gd-customer-service/src/main/java/com/gudeng/commerce/gd/customer/service/impl/AreaConfigServiceImpl.java | UTF-8 | 2,458 | 2.0625 | 2 | [] | no_license | package com.gudeng.commerce.gd.customer.service.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gudeng.commerce.gd.custome... | true |
5734069e4ab6adbfa73914ac3222fc929e397e0f | Java | dataduke/DevCon1212Wicket | /widone-web/src/test/java/de/widone/web/panel/newtask/NewTaskPanelTest.java | UTF-8 | 2,917 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (C) 2011-2012 by Jochen Mader (pflanzenmoerder@gmail.com)
* ==============================================================
* 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
... | true |
794e5e1fb950d72db6d10e1f76180c6d88fc9b8a | Java | gnagy87/concrete-backend | /src/main/java/com/concrete/poletime/training/TrainingService.java | UTF-8 | 2,268 | 2.046875 | 2 | [] | no_license | package com.concrete.poletime.training;
import com.concrete.poletime.dto.PoleUserDTO;
import com.concrete.poletime.dto.TrainingDTO;
import com.concrete.poletime.dto.TrainingParamsDTO;
import com.concrete.poletime.exceptions.*;
import com.concrete.poletime.user.PoleUser;
import com.concrete.poletime.utils.TrainingType;... | true |
dececfd99dc30dd45cf30d3cb4b4e15a42a07f9e | Java | thomas40510/TestLog | /app/src/main/java/com/apogee/dev/testlog/MyInstanceIdService.java | UTF-8 | 850 | 2.15625 | 2 | [
"MIT"
] | permissive | /*
* Copyright (c) 2018 Thomas Prévost / CE Sauveterre. Distribué sous license libre.
*/
package com.apogee.dev.testlog;
import com.google.firebase.messaging.FirebaseMessagingService;
public class MyInstanceIdService extends FirebaseMessagingService {
/*@Override
public void onTokenRefresh() {
... | true |
14f50ec26ec0152a57d6468d9cc95ae688fe336c | Java | lhymrr/Fuck11Login | /Fuck11Login/src/com/l/h/y/fucklogin/Grade/Item.java | UTF-8 | 750 | 2.796875 | 3 | [] | no_license | package com.l.h.y.fucklogin.Grade;
public class Item {
/**
* 当前计数器
*/
private int i;
/**
* 当前ID,下标值
*/
private int id;
private IsMaxListener maxListener;
/**
* 当前值加1
*/
public void add(int pwdLength){
i++;
if(i >= pwdLength){
i = 0;
if(null != maxListener){
maxListener.maxListen... | true |
d1afdd7dd60b2a662e4b65635f29121114312fb2 | Java | Golmohammadi-Mostafa/crud-generate-and-check-random-number | /src/main/java/com/felixin/random/configuration/UserRoleConfig.java | UTF-8 | 1,729 | 2.140625 | 2 | [] | no_license | package com.felixin.random.configuration;
import com.felixin.random.domain.Role;
import com.felixin.random.dto.SingUpDTO;
import com.felixin.random.enums.RoleType;
import com.felixin.random.repository.RoleRepository;
import com.felixin.random.service.UserService;
import org.springframework.beans.factory.annotation.Aut... | true |
98ed32a9a12471ece48b58209633e6437e57a589 | Java | DanyloAntonich/auto-works-android | /app/src/main/java/autoworks/app/Utilities/LocationUtility.java | UTF-8 | 1,944 | 2.34375 | 2 | [] | no_license | package autoworks.app.Utilities;
import android.content.Context;
import android.location.Address;
import android.location.Geocoder;
import android.util.Log;
import java.io.IOException;
import java.util.List;
import java.util.Locale;
import autoworks.app.R;
/**
* Created by Administrator on 1/30/2016.
*/
public cl... | true |
65b2368f20d3d5613112c4cf3da4c19516b2a10b | Java | bcgit/bc-java | /util/src/main/java/org/bouncycastle/asn1/cmc/Utils.java | UTF-8 | 833 | 2.15625 | 2 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package org.bouncycastle.asn1.cmc;
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1.x509.Extension;
class Utils
{
static BodyPartID[] toBodyPartIDArray(ASN1Sequence bodyPartIDs)
{
BodyPartID[] ids = new BodyPartID[bodyPartIDs.size()];
for (int i = 0; i != bodyPartIDs.si... | true |
a8cfc14644b8dd08eece10f12f58a70d6f79f64e | Java | GiorgiSheklashvili/Authcoin-Android | /app/src/main/java/com/authcoinandroid/util/AndroidUtil.java | UTF-8 | 348 | 1.945313 | 2 | [] | no_license | package com.authcoinandroid.util;
import android.content.Context;
import android.widget.Toast;
public class AndroidUtil {
public static String SHARED_PREFERENCES = "authcoinPreferences";
public static void displayNotification(Context context, String message) {
Toast.makeText(context, message, Toast.L... | true |
a54d73ea1a6445e29d4ea13b9ac1a94cca5c18e6 | Java | coolduebtn/travelEu-model | /src/main/java/com/travel/model/dto/CountryDto.java | UTF-8 | 328 | 2.171875 | 2 | [] | no_license | package com.travel.model.dto;
import java.util.Set;
import com.google.common.collect.Sets;
public class CountryDto extends AbstractDto{
private Set<CityDto> cities = Sets.newHashSet();
public Set<CityDto> getCities() {
return cities;
}
public void setCities(Set<CityDto> cities) {
this.cities = cities;
}... | true |
abebe0418e5db1cd8d0790d740ba6d303153a178 | Java | MRTangwin8/BigApp_Discuz_Android | /libs/ZUtils/src/com/kit/sharedpreferences/SharedPreferencesUtils.java | UTF-8 | 5,572 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package com.kit.sharedpreferences;
import android.content.Context;
import android.content.SharedPreferences;
import java.util.List;
import java.util.Map;
/**
* 存储配置信息的工具类 <br>
* 注:可读取的数据类型有-<code>boolean、int、float、long、String.</code>
*/
public class SharedPreferencesUtils {
// private final String MAK = "inno... | true |
251afb391f0a7c2339c55c50763798467e7dc400 | Java | pansophism/algorithm | /200.number-of-islands.java | UTF-8 | 799 | 3.265625 | 3 | [] | no_license |
class Solution {
public int numIslands(char[][] grid) {
int count = 0;
for(int r = 0; r < grid.length; r++) {
for(int c = 0; c < grid[0].length; c++) {
if(grid[r][c] == '1') {
count++;
populate(grid, r, c);
}
... | true |
9f89d9f37743fd8207067525fe1bafb5f40bf95e | Java | AlexMackevich/JIS7 | /StreamAPI/src/main/java/Task3And5/Repository/RepositoryOfProducts.java | UTF-8 | 1,093 | 2.953125 | 3 | [] | no_license | package Task3And5.Repository;
import Task3And5.Model.Product;
import java.util.ArrayList;
import java.util.List;
public class RepositoryOfProducts {
public static final List<Product> productList = new ArrayList<>();
public static void initProductsToList() {
productList.add(new Product("br... | true |
392098e1a0f30322376ef4a5911c0985782101d1 | Java | opf-labs/jhove2 | /src/main/java/uk/gov/nationalarchives/droid/signatureFile/SubSequence.java | UTF-8 | 46,897 | 1.875 | 2 | [
"BSD-2-Clause"
] | permissive | /*
* Copyright The National Archives 2005-2006. All rights reserved.
* See Licence.txt for full licence details.
*
* Developed by:
* Tessella Support Services plc
* 3 Vineyard Chambers
* Abingdon, OX14 3PX
* United Kingdom
* http://www.tessella.com
*
* Tessella/NPD/4305
* PRONOM 4
*
* $Id: ... | true |
998af8718249e55d7367463bfb36c96a163e4456 | Java | hahmadzadeh/Tomato | /src/main/java/serializiation/NodeSerializer.java | UTF-8 | 527 | 2.4375 | 2 | [] | no_license | package serializiation;
import GHS.Neighbour;
import GHS.Node;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.Serializer;
import com.esotericsoftware.kryo.io.Input;
import com.esotericsoftware.kryo.io.Output;
public class NodeSerializer extends Serializer<Node> {
@Override
public void... | true |
d7e1d75a6e4ece51b30d39df5a50129a18dbfb70 | Java | wckhg89/MyProject | /GraduationProject/final/src/com/dao/TMModel_Weather.java | UHC | 3,148 | 2.9375 | 3 | [] | no_license | package com.dao;
import java.util.ArrayList;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import com.vo.Weather;
public class TMModel_Weather {
public ArrayList<Weather> parse_wearher... | true |
2cca37463f52fd93731dfe6c9b9969a01d0d03ea | Java | aviundefined/dailypractice | /src/main/java/com/avi/practice/company/cloudkitchen/parsers/xml/jaxb/JaxbExample.java | UTF-8 | 5,628 | 2.640625 | 3 | [] | no_license | package com.avi.practice.company.cloudkitchen.parsers.xml.jaxb;
import com.avi.practice.company.cloudkitchen.parsers.model.Department;
import com.avi.practice.company.cloudkitchen.parsers.model.Employee;
import com.avi.practice.company.cloudkitchen.parsers.model.EmployeeMap;
import com.avi.practice.company.cloudkitche... | true |
bb8d16ec2e8de985eed3ec03c55f211841f1f201 | Java | mtxpj/Server | /src/test/java/com/email/server/tools/GsonMethodsTest.java | UTF-8 | 1,619 | 2.171875 | 2 | [] | no_license | package com.email.server.tools;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.junit.Assert;
import org.junit.Test;
import com.email.server.lamaModel.EmailMessage;
import exampleData.ExampleDatabaseFilling;
public class GsonMethodsTest {
GsonMethods tested = new GsonMethods();
@Test
publ... | true |
997b51bd8ae6dc00936025665d0da1c55632437f | Java | maekus-lee/javaSenior | /src/com/atmaekus/excer/superexer/CheckAccount.java | UTF-8 | 912 | 3 | 3 | [] | no_license | package com.atmaekus.excer.superexer;
/**
* @author maekus
* @Description
* @create 2020-12-07-23:33
*/
public class CheckAccount extends Account{
private double overdradt;
public CheckAccount(double overdradt) {
this.overdradt = overdradt;
}
public CheckAccount(int id, double balance, do... | true |
40cd33d14d7343688bcc27d8d573a5d57d8e38f7 | Java | brucemortland/Battleship | /src/Battleship/Chat.java | UTF-8 | 3,712 | 3.03125 | 3 | [] | no_license | package Battleship;
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.Rectangle2D;
public class Chat
{
int x=0;
int y=0;
int width=0;
int height=0;
String typing="";
String[] messages= new String[100]; // maximum number of messages is 100
int textFontSize = 12;
Font textFont = n... | true |
b3c8277be97aa27ff62413b61051605516dc48ee | Java | TheSilkMiner/SKL-Java-Interpreter | /src/main/java/net/thesilkminer/skl/interpreterx/skdx/thesilkminer/parserex/ParserEx.java | UTF-8 | 1,096 | 2.046875 | 2 | [] | no_license | package net.thesilkminer.skl.interpreterx.skdx.thesilkminer.parserex;
// In Idea all imports are yellow apart from one
// LOL
import net.thesilkminer.skl.interpreterx.base.annotations.Extension;
import net.thesilkminer.skl.interpreterx.base.annotations.VersionCatalog;
import net.thesilkminer.skl.interpreterx.base.anno... | true |
4a33666e49da6debf6eb3af12e80af3b8f40dc7a | Java | honorbounds/nianjiu | /nianjiu-common/src/main/java/com/wangzu/utils/MapUtil.java | UTF-8 | 680 | 2.484375 | 2 | [] | no_license | package com.wangzu.utils;
import org.springframework.validation.FieldError;
import org.springframework.validation.ObjectError;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Map工具类
*
* @author honor
*
*/
public class MapUtil {
/**
* 转换错误信息为Map
*
* @param ... | true |
3189f50ae9475a00691ef890e73f85f97a95151e | Java | ksmigrod/exercise02 | /src/main/java/pl/gov/mofnet/giif/rekrutacja/hr/services/DepartmentDao.java | UTF-8 | 190 | 1.523438 | 2 | [
"Apache-2.0"
] | permissive | package pl.gov.mofnet.giif.rekrutacja.hr.services;
import pl.gov.mofnet.giif.rekrutacja.hr.model.Department;
public interface DepartmentDao extends EntityRepository<Department, Short> {
}
| true |
4735be20cffe13305a1979a9ca30423fc24ace40 | Java | imsangchin/FtpAndroid | /src/com/ftpandroid/net/ftp/FTPConnectionClosedException.java | UTF-8 | 428 | 2.46875 | 2 | [] | no_license | package com.ftpandroid.net.ftp;
/**
* Thrown when an FTP transfer has been closed by the server
*
* @author Eric
*
*/
public class FTPConnectionClosedException extends FTPException {
/**
* Serial uid
*/
private static final long serialVersionUID = 1L;
/**
* Constructor. De... | true |
3e00ffa7cef09820331f8575ed725e58df107e69 | Java | SerjiKSM/JavaExample1 | /JavaExample1/6_Collection/Collection/src/main/java/com/java/collections/MyListReplaceAll.java | UTF-8 | 712 | 3 | 3 | [] | no_license | package com.java.collections;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class MyListReplaceAll {
public static void main(String a[]){
List<String> list = new ArrayList<String>();
list.add("java");
list.add("c");
list.add("c++");
... | true |
1f7731d62e651ea232fc3f825ae6d0019a165c1d | Java | yadp/bookStoreExample | /src/main/java/com/example/bookStore/service/BookServiceImpl.java | UTF-8 | 3,734 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | package com.example.bookStore.service;
import com.example.bookStore.model.Author;
import com.example.bookStore.model.Book;
import com.example.bookStore.model.OpenLibBook;
import com.example.bookStore.repo.AuthorRepo;
import com.example.bookStore.repo.BookRepo;
import com.example.bookStore.repo.OpenLibRepo;
import org.... | true |
fd4e075603ad02454a788756be4474a1658b398d | Java | jdmadhavan/workaround | /Selenium/src/main/java/week3_day1/CR_Learning_IntefaceWith_Multiple_Inheritance.java | UTF-8 | 367 | 2.09375 | 2 | [] | no_license | package week3_day1;
public class CR_Learning_IntefaceWith_Multiple_Inheritance {
public static void main(String[] args) {
/*CR_Bank obj = new CR_Bank();
obj.setCriditscore();
obj.setKYCDocuments();
obj.setTransactionLimits();*/
CR_BankOne obj=new CR_BankOne();
obj.setKYCDocuments();
o... | true |
16d55cc987173e6c8123d773b726237b874e4b08 | Java | mimz-skywalker/design-patterns | /ChainOfResponsibility/src/CityOfPlovdivLogger.java | UTF-8 | 319 | 2.78125 | 3 | [] | no_license |
public class CityOfPlovdivLogger extends Logger{
private String name;
public CityOfPlovdivLogger(String name) {
this.name = name;
this.level = Logger.CITY_OF_PLOVDIV;
}
@Override
protected void writeMessage(String message) {
System.out.println("City of Plovdiv message says: " + message);
}
}
| true |
86881004f1c00c5c3ba74f1f072dcbd9a53b2bda | Java | jinjinE/spring_web_project | /src/main/java/com/exam/mvc/controller/MemberController.java | UTF-8 | 2,843 | 2.328125 | 2 | [] | no_license | package com.exam.mvc.controller;
import java.util.List;
import javax.inject.Inject;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org... | true |
2a66b3c53c0afe044e1ca8ce074b255e685ea49c | Java | srikandi89/ribserverbridge | /src/com/intellinum/rib/test/TestPageSave.java | UTF-8 | 1,207 | 2.265625 | 2 | [] | no_license | package com.intellinum.rib.test;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.intellinum.rib.controller.PageSave;
import com.intellinum.rib.db.Model;
import com.intellinum.rib.model.Page;
import com.intellinum.rib.par... | true |
da2b679c764a5b4f168e2fec7ac98fc579a175e5 | Java | Arolion/diser | /src/test/java/TestHibernate.java | UTF-8 | 2,621 | 2.703125 | 3 | [] | no_license | /**
* Created by Arol on 11.05.2016.
*/
import ddep.hibernate.dao.ModelDAO;
import ddep.hibernate.entity.MorphModel;
import ddep.hibernate.entity.RatioMorphModel;
import iptd.hibernate.Factory;
import iptd.hibernate.entities.RatioModel;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Restric... | true |
c3092324b5c97cfaebd0f12b09e3a67f16e563fb | Java | extmkv/BottomSheetExample | /app/src/main/java/com/bottomsheet/example/bottomsheetexample/CustomBottomSheetDialogFragment.java | UTF-8 | 1,088 | 2.078125 | 2 | [] | no_license | package com.bottomsheet.example.bottomsheetexample;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.design.widget.BottomSheetDialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGrou... | true |
6e315fdbefb537e15fdc7f5f83bdabd054e8d268 | Java | stair-go/SSMGlassesManagement | /src/pojo/SelectByDate.java | UTF-8 | 498 | 1.914063 | 2 | [] | no_license | package pojo;
public class SelectByDate {
private long admin_id;
private String stardate;
private String enddate;
public long getAdmin_id() {
return admin_id;
}
public void setAdmin_id(long admin_id) {
this.admin_id = admin_id;
}
public String getStardate() {
return stardate;
}
public void setStardat... | true |
ebebfdd3473285e22bf395d615d38ebcea8d11fd | Java | CharLiang/spring-boot-boilerplate | /src/main/java/com/youdao/sortinghat/data/dto/RegionDTO.java | UTF-8 | 793 | 2.3125 | 2 | [] | no_license | /**
* @(#)RegionDTO.java, 2019-04-02.
* <p>
* .
* .
*/
package com.youdao.sortinghat.data.dto;
import com.youdao.sortinghat.dao.mysql.model.RegionEntity;
/**
* RegionDTO
*
* @author
*
*/
public class RegionDTO {
private int id;
private String name;
public int getId() {
return id;
... | true |
0d2ca2d08e0763ef55c71038e9c0fc6c5571a143 | Java | rhmangeles/TfgApi | /src/main/java/com/unir/rest/api/service/JwtUserDetailsService.java | UTF-8 | 1,441 | 2.296875 | 2 | [] | no_license | package com.unir.rest.api.service;
import com.unir.entity.pacientes.PacienteEntity;
import com.unir.services.pacientes.PacientesServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserD... | true |
9b4c7fc6bb2df67c0555f2fac03c3a71d0701c07 | Java | bin2907/bin-examples | /pdf/src/main/java/com/bin/framework/pdf/itext/TableDemo.java | UTF-8 | 1,759 | 3.125 | 3 | [] | no_license | package com.bin.pdf.itext;
import java.io.FileOutputStream;
import com.itextpdf.text.Document;
import com.itextpdf.text.Phrase;
import com.itextpdf.text.pdf.PdfPCell;
import com.itextpdf.text.pdf.PdfPTable;
import com.itextpdf.text.pdf.PdfWriter;
public class TableDemo {
public static void main(String[] args) {
... | true |
57752268f6277edfc33bcaca55f03df5f5a57a68 | Java | woai555/ljh | /src/main/java/com/ljh/service/impl/ViewHlhtCdrvisitEntrydiagServiceImpl.java | UTF-8 | 575 | 1.617188 | 2 | [] | no_license | package com.ljh.service.impl;
import com.ljh.bean.ViewHlhtCdrvisitEntrydiag;
import com.ljh.daoMz.ViewHlhtCdrvisitEntrydiagMapper;
import com.ljh.service.ViewHlhtCdrvisitEntrydiagService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* ... | true |
ce29e739decc1572eddc98822ed03aa868e0a9c5 | Java | oksusutea/study-junit | /src/test/java/chapter_04/scratch/AssertMoreTest.java | UTF-8 | 1,377 | 2.71875 | 3 | [] | no_license | /***
* Excerpted from "Pragmatic Unit Testing in Java with JUnit",
* published by The Pragmatic Bookshelf.
* Copyrights apply to this code. It may not be used to create training material,
* courses, books, articles, and the like. Contact us if you are in doubt.
* We make no guarantees that this code is fit for an... | true |
1f674bd7a7314974641cb8475d2f794835ea572f | Java | WooBinJang/beakjoon | /BeakJoon/알람_시계.java | UTF-8 | 633 | 3.15625 | 3 | [] | no_license | import java.util.Scanner;
public class Main{
public static void main(String [] args) {
Scanner sc = new Scanner(System.in);
int h , m ;
h = sc.nextInt();
m = sc.nextInt();
if(1<= h && h <=23 && 0<=m && m<=44 ) {
System.out.println((h-1) + " " + (m+15) );
... | true |
a0700b4587ac641b32d28ff5701c1dd58bad7c5f | Java | chubas13/RecyclerViewTutorial-master | /app/src/main/java/com/androidfizz/recyclerviewdemo/models/AndroidVersion.java | UTF-8 | 817 | 2.375 | 2 | [] | no_license | package com.androidfizz.recyclerviewdemo.models;
/**
* Created by jitendra.singh on 1/10/2018
* for RecyclerViewWithDividers
*/
public class AndroidVersion {
private int imgResId;
private String codeName;
private String versionName;
private String apiLevel;
public AndroidVersion(int imgResId, S... | true |
5ca5615e2d77b41e63bc47765c8133f52877cfbf | Java | juaburgos/calcular-master | /app/src/main/java/com/example/juanpablo/myapplication/MainActivity.java | UTF-8 | 1,043 | 2.109375 | 2 | [] | no_license | package com.example.juanpablo.myapplication;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.o... | true |
9d9bf6d53061101f3505eb8602d3707a1f803396 | Java | nehabindle/LeetCode-Java-Solutions | /src/main/java/twoSumUniquePair/twoSumUniquePair.java | UTF-8 | 940 | 3.40625 | 3 | [] | no_license | package twoSumUniquePair;
import java.util.*;
public class twoSumUniquePair {
int complement;
public List<List<Integer>> twoSum(int[] nums, int target) {
List<List<Integer>> result = new ArrayList<>();
HashMap<Integer, Integer> map = new HashMap<>();
for(int i=0 ; i <nums.length; i++)
{
if(!map.co... | true |