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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
97d43e0392c504fb5479ad58e9e1508abaafae73 | Java | michal-kk/literate-robot | /cloud-stream-integration-producer/src/main/java/com/example/demo/CloudStreamIntegrationProducerApplication.java | UTF-8 | 1,266 | 2.109375 | 2 | [
"MIT"
] | permissive | package com.example.demo;
import java.util.concurrent.atomic.AtomicInteger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.messaging.Source... | true |
bf230d9e65745048149d761ff781426d0bd84fde | Java | AdmilsonCossa/SMARTCOP | /smartdatacollector/src/eu/smart/cdbm/dao/DBException.java | UTF-8 | 601 | 2.359375 | 2 | [] | no_license | package eu.smart.cdbm.dao;
/**
* Wrapper delle eccezioni verificatesi a livello di database
*
* @author Roberto Di Vincenzo
*
*/
public class DBException extends Exception {
private static final long serialVersionUID = -2564425171991690336L;
/**
*
*/
public DBException() {
super();
}
/**
* @par... | true |
9c9c78728ef8b770a222f3b98d1ef27e91c751ba | Java | avamsykiran/SpringCoreAndAOP_09Aug21_13Aug21_09001100 | /WS/spring-core-demo-1/src/main/java/com/cts/scd/ui/App03.java | UTF-8 | 478 | 2.171875 | 2 | [] | no_license | package com.cts.scd.ui;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.cts.scd.service.GreetService;
public class App03 {
public static void main(String[] args) {
ApplicationContext context = new ClassPathXmlApplicat... | true |
c78e898828c51bc099ccc91cab2a816a15aa40a7 | Java | ZENGY27J/movie_wy | /movie_wy/wy-gateway/src/main/java/com/stylefeng/guns/rest/modular/order/OrderController.java | UTF-8 | 4,350 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package com.stylefeng.guns.rest.modular.order;
import com.alibaba.dubbo.config.annotation.Reference;
import com.stylefeng.guns.rest.config.properties.JwtProperties;
import com.stylefeng.guns.rest.modular.auth.util.Json2BeanUtils;
import com.stylefeng.guns.rest.modular.auth.util.JwtTokenUtil;
import com.stylefeng.guns.... | true |
baec6c05b5df1ddb21836b22f10a2dab674205f3 | Java | suenda/GPS-direction | /src/model/skeleton/SearchFilter.java | UTF-8 | 174 | 1.789063 | 2 | [] | no_license | package model.skeleton;
import java.util.List;
import model.rawData.RouteQueue;
public interface SearchFilter {
public List<RouteQueue> filter(List<RouteQueue> rQ);
}
| true |
66e0f87988fee51c57b373e9b9274970a23a9fce | Java | valerielashvili/SoftUni-Software-University | /Java OOP Basics - October 2017/06. Exam preparation II/src/p1_Need_for_Speed/factories/CarFactory.java | UTF-8 | 884 | 2.65625 | 3 | [
"MIT"
] | permissive | package p1_Need_for_Speed.factories;
import p1_Need_for_Speed.entities.cars.Car;
import p1_Need_for_Speed.entities.cars.PerformanceCar;
import p1_Need_for_Speed.entities.cars.ShowCar;
public final class CarFactory {
private CarFactory() {}
public static Car createShowCar(String brand, String model, int year... | true |
4e6ece8b8037e2b51e4b14f3722f1cf5de3ccce2 | Java | hp0632/jackrabbit-ocm-support | /src/main/java/org/mplus/jcr/support/JcrOcm.java | UTF-8 | 1,982 | 2.1875 | 2 | [] | no_license | package org.mplus.jcr.support;
import java.util.List;
import javax.jcr.Session;
import org.apache.jackrabbit.ocm.manager.ObjectContentManager;
import org.apache.jackrabbit.ocm.manager.impl.ObjectContentManagerImpl;
import org.apache.jackrabbit.ocm.mapper.Mapper;
import org.apache.jackrabbit.ocm.mapper.impl.annotatio... | true |
bf0dfedec0f573445ab79c5d1c9f515e7f4529a5 | Java | m3lm4n/ribcomicapp | /app/src/main/java/com/adamlastowski/rib/saving_screen/SavingScreenBuilder.java | UTF-8 | 641 | 2.015625 | 2 | [] | no_license | package com.adamlastowski.rib.saving_screen;
import com.adamlastowski.rib.renderer.di.RendererComponent;
import com.adamlastowski.rib.saving_screen.di.DaggerSavingScreenComponent;
import com.adamlastowski.rib.saving_screen.di.SavingScreenComponent;
import javax.inject.Inject;
public class SavingScreenBuilder {
@In... | true |
82c74d87c6e498cb4199a8972f2628f1ad6afeae | Java | saiwaiqishi322/bhsc | /gmall-oms/src/main/java/com/bh/gmall/oms/service/impl/OrderServiceImpl.java | UTF-8 | 15,328 | 1.796875 | 2 | [] | no_license | package com.bh.gmall.oms.service.impl;
import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.dubbo.rpc.RpcContext;
import com.alibaba.fastjson.JSON;
import com.bh.gmall.cart.service.CartService;
import com.bh.gmall.cart.vo.CartItem;
import com.bh... | true |
045bb904290705aa72ec9b5ff05a73f032ffdc7f | Java | chdanish/skillmen | /src/main/java/com/esc/skillmen/domain/UserRoles.java | UTF-8 | 1,240 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | package com.esc.skillmen.domain;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;
import com.fasterxml.jackson.annota... | true |
8b97d824f304d87dc595d647dad2be3f97680c0f | Java | Tolulope/COMP1202 | /Coursework1/src/WaterMeter.java | UTF-8 | 569 | 2.921875 | 3 | [] | no_license | /*
* Programming 1 Coursework 2016/17 - Tolulope Ogunremi - Part 1
*/
public class WaterMeter extends Meter{
//constructors depending on how much information is initially given
//this is to help when reading from the config file
public WaterMeter(int startValue, boolean CanGenerate) {
super(startValue... | true |
6a45dc4ba92de740ece2d6c0bab7e9f682ee4399 | Java | Saurabh-Sonawane/VendingMachineAPI | /src/test/java/com/orcl/resource/VendingResourceTest.java | UTF-8 | 2,438 | 2.046875 | 2 | [] | no_license | package com.orcl.resource;
import com.orcl.dto.ChangeDTO;
import com.orcl.model.CoinName;
import com.orcl.service.VendingService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcT... | true |
913acde45ac5d04a5e1af0d413c950d688652ae6 | Java | emptyDrawing/project_2 | /project_21/guro5/123123/src/com/gurobit5/model/bbs/DaoLecNotice.java | UTF-8 | 4,851 | 2.078125 | 2 | [] | no_license | package com.gurobit5.model.bbs;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.gurobit5.model.bbs.entity.DtoLecNotice;
import com.gurobit5.model.entity.DtoScore;
import com... | true |
ec910d31d2b437f6575f1ac7f9f3f59cff9477de | Java | lopezjronald/AstsClothingInventory | /src/main/java/com/asts/clothinginventory/models/PTUniform.java | UTF-8 | 745 | 2.21875 | 2 | [] | no_license | package com.asts.clothinginventory.models;
import lombok.Builder;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
@Data
@Builder
@Getter
@Setter
@Entity(name = "physical_fitness_uniform")
@Table
public class PTUniform extends Uniform {
@Id
@GeneratedValue(strategy... | true |
62a777cca3650a52cc392b6584cea7a80f4ea0f5 | Java | pprdef/Tfox | /src/main/java/com/egg/tfox/repository/attendance/AttendanceDaoImpl.java | UTF-8 | 2,186 | 1.96875 | 2 | [] | no_license | package com.egg.tfox.repository.attendance;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.egg.tfox.entity.attendance.Attend... | true |
b183c61da9da0e1192c2cec6a02e0b3dac3384d1 | Java | practice-mix/spring-data-rest-practice | /src/main/java/com/example/springdatarest/model/package-info.java | UTF-8 | 219 | 1.710938 | 2 | [] | no_license | /**
* @author Luo Bao Ding
* @since 12/11/2020
*/
@GenericGenerator(name = "uuid2", strategy = "org.hibernate.id.UUIDGenerator")
package com.example.springdatarest.model;
import org.hibernate.annotations.GenericGenerator; | true |
17c40cbfffbd1a3f0c281d49286177ca71e333f6 | Java | AlexDo96/OOP_Learning | /src/Lab9_1/Eagle.java | UTF-8 | 659 | 3.3125 | 3 | [] | no_license | package Lab9_1;
import java.security.SecureRandom;
public class Eagle extends Animal {
private static final double MIN_WING_LENGTH = 0.5;
private static final double MAX_WING_LENGTH = 1.2;
private final double wingLength;
private final int numberNo = new SecureRandom().nextInt(100);
public Eagle... | true |
c0e3923d60390f07ccf6421a8886352105e105da | Java | masonseaman/KeepAwake | /app/src/main/java/io/github/masonseaman/keepawake/ThreadRunnerService.java | UTF-8 | 4,109 | 2.53125 | 3 | [] | no_license | package io.github.masonseaman.keepawake;
import android.app.Notification;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.os.Looper;
impo... | true |
3b0064c24c25e248c1130171ba93d61d38df3ef6 | Java | desaisam/piazzza | /api/cs5200_fall2018_final_project/src/main/java/edu/northeastern/cs5200/controller/CompanyController.java | UTF-8 | 3,142 | 2.40625 | 2 | [
"MIT"
] | permissive | package edu.northeastern.cs5200.controller;
import java.util.List;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework... | true |
9605e38a1b4f97e8a81a7247a4e649becb89a516 | Java | vigneshbk/HelloWorldAndroid | /app/src/main/java/helloworl/home/evigkum/helloworld/AddSwitchActivity.java | UTF-8 | 1,600 | 2.015625 | 2 | [] | no_license | package helloworl.home.evigkum.helloworld;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompat... | true |
5de1d20b0d3d078ca2996b14a5ae2b68363ea54f | Java | liumapp/common-backend | /common/common-security/src/main/java/com/liumapp/common/security/controller/CaptchaController.java | UTF-8 | 2,224 | 2.296875 | 2 | [
"MIT"
] | permissive | package com.liumapp.common.security.controller;
import com.liumapp.common.security.captcha.ImageCaptcha;
import org.springframework.stereotype.Controller;
import org.springframework.util.StringUtils;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMappi... | true |
ae1d48ea1a204c68dc99f6f224e18e901236eaa2 | Java | magoo-lau/ok-hr | /src/main/java/com/glaf/report/jxls/MyBatisReportManagerImpl.java | UTF-8 | 2,265 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
ef0b8f0bdee7aeca5af5c9af95e5c9502f324457 | Java | AkhmDIInnoPol/TaskCustomLoggerDop1_14417 | /src/com/company/CustomLogLayout.java | UTF-8 | 580 | 2.640625 | 3 | [] | no_license | package com.company;
import org.apache.log4j.PatternLayout;
import org.apache.log4j.spi.LoggingEvent;
/**
* Created by Di on 14.04.2017.
*/
public class CustomLogLayout extends PatternLayout
{
public String format(LoggingEvent event)
{
UserObject user = (UserObject)event.getMessage();
... | true |
2a13aa5d03a68acc87c764d31773e6306736fe2e | Java | mikevostrikov/ralter | /src/main/java/com/mikevostrikov/ralter/web/viewmodel/SignOutViewModel.java | UTF-8 | 732 | 2.171875 | 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 com.mikevostrikov.ralter.web.viewmodel;
import com.mikevostrikov.ralter.web.controller.Controller;
/**
*
* @author m.vostri... | true |
1b7e9dd13b889cccee10f9492da86dd954739ca2 | Java | netinhoteixeira/series-mix | /src/java/br/upis/ltpiv/turma352/series_mix/model/dto/UsuarioDto.java | UTF-8 | 1,223 | 2.234375 | 2 | [] | no_license | package br.upis.ltpiv.turma352.series_mix.model.dto;
import java.sql.Date;
public class UsuarioDto {
private int id;
private String nome;
private String email;
private String senha;
private NivelDto nivel;
private Date dataCadastro;
public UsuarioDto() {
this.nivel ... | true |
f6edf3bf7a248a8276f0f409d96b69f052a06d41 | Java | ikus060/mvpod | /mvPod/branches/deinterlace/src/net/homeip/entreprisesmd/mvconv/mplayerwrapper/videofilter/TfieldsDeinterlaceFilter.java | UTF-8 | 1,286 | 2.4375 | 2 | [] | no_license | package net.homeip.entreprisesmd.mvconv.mplayerwrapper.videofilter;
import net.homeip.entreprisesmd.mvconv.mplayerwrapper.VideoInfo;
public class TfieldsDeinterlaceFilter extends DeinterlaceFilter {
/**
* If the decoder does not export the appropriate information, it falls back
* to 0 (top field first).
*/
pu... | true |
d34ac7d0ccfc35ea9851ddaf9a16af60f98710f8 | Java | yuchuangu85/androidx | /camera/camera-core/src/androidTest/java/androidx/camera/core/VideoCaptureTest.java | UTF-8 | 7,229 | 1.546875 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | /*
* Copyright 2020 The Android Open Source Project
*
* 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 applica... | true |
e2f262de5a182d9a12beaedd45a474d616d5cb79 | Java | yzl1168/manager | /src/main/java/com/atguigu/bean/T_MALL_SKU_ATTR_VALUE.java | UTF-8 | 1,038 | 1.507813 | 2 | [] | no_license | package com.atguigu.bean;
import java.util.Date;
public class T_MALL_SKU_ATTR_VALUE {
private Integer id,shxm_id,shxzh_id,shp_id,is_sku,sku_id;
private Date chjshj;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getShxm_id() {
return shx... | true |
bff0ca3b261dc7944ab5006a9f9e1ea254202aa6 | Java | dapengzstu/learnNetty | /src/main/java/com/learn/netty/myio/decorator/Main.java | UTF-8 | 277 | 2.25 | 2 | [] | no_license | package com.learn.netty.myio.decorator;
public class Main {
public static void main(String[] args) {
ConcreteDecorator1 concreteDecorator1 = new ConcreteDecorator1(new ConcreteDecorator2(new ConcreteComponent()));
concreteDecorator1.doSomething();
}
}
| true |
9de7b2eb9efb62eb7f0eddc5aae5882e85aa98fe | Java | Hyeondoonge/PCLibrary | /src/Student/showPCinformController.java | UHC | 5,006 | 2.203125 | 2 | [] | no_license | package Student;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URL;
import java.util.ResourceBundle;
import java.util.StringTokenizer;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Parent;
import ja... | true |
2e67c3f7f06807d595fb68b3dedc38dfb1eeabd8 | Java | merovic/Eschoola | /app/src/main/java/com/amirahmed/eschoola/Adapters/CultureAdapter.java | UTF-8 | 3,844 | 2.296875 | 2 | [] | no_license | package com.amirahmed.eschoola.Adapters;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.... | true |
bf0f9eaf7691bbc200adb0303e220b01413ef09b | Java | Waterpicker/Mantle | /src/main/java/slimeknights/mantle/block/EnumBlockConnectedTexture.java | UTF-8 | 4,558 | 2.78125 | 3 | [
"MIT"
] | permissive | package slimeknights.mantle.block;
import javax.annotation.Nonnull;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.properties.PropertyEnum;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
imp... | true |
85c40ec7fc91b61b9f0cf3ec093885824f4cc613 | Java | kkimaya/spring-boot-http | /src/main/java/com/msci/mis/login/captcha/CaptchaService.java | UTF-8 | 1,633 | 2.296875 | 2 | [] | no_license | package com.msci.mis.login.captcha;
import java.net.URI;
import java.util.regex.Pattern;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.util.StringUtils;
import org.springframework.web.client.RestTemplate;
public class CaptchaService implements ICaptchaService {
... | true |
0abc8411fb298668afa796fce59e214c45665f20 | Java | legattes/agendapp | /app/AgendaApp/app/src/main/java/legates/agendapp/AddEspecialidadeActivity.java | UTF-8 | 2,836 | 2.640625 | 3 | [] | no_license | package legates.agendapp;
import android.app.ProgressDialog;
import android.os.AsyncTask;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import ... | true |
b5c141621c775ef4a6a3e5c35b2bd5a555cba25e | Java | GianluBerna/Informatica | /Esercizi/Es10_11_12/src/Cerchio.java | UTF-8 | 866 | 3.40625 | 3 | [] | no_license | public class Cerchio {
private double raggio;
private static final double pigreco = 3.14;
public Cerchio(){
raggio = 0;
}
public Cerchio(double raggio){
if(raggio > 0)
this.raggio = raggio;
else
this.raggio = 0;
}
public void ... | true |
56a1037b2f2219dbc5e434e6dc53276534c6c76e | Java | BackupTheBerlios/dessy | /GoalGetter/src/main/de/uniessen/wiinf/wip/goalgetter/domain/Goal.java | UTF-8 | 5,236 | 2.546875 | 3 | [] | no_license | /*
* Goal.java
* Package: de.uniessen.wiinf.wip.goalgetter.domain
* Project: GoalGetter
*
* GoalGetter is based on a decision supporting method
* developed by Markus Stallkamp (markus.stallkamp@uni-essen.de)
*
* (c) 2004
* Jonas Sprenger (jonas.sprenger@gmx.de),
* Tim Franz (tim.franz@uni-essen.de)
*
*... | true |
9f325e4c67f25e4da521f2bc9aee9c4eaf789528 | Java | xiewen0303/gen_tools | /src/main/java/com/tools/genzlib/GenZlibMain.java | UTF-8 | 6,111 | 2.4375 | 2 | [] | no_license | package com.tools.genzlib;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.ResourceBundle;
import jxl.Cell;
import jxl.Sheet;
impo... | true |
c06efffa9f13c31ba3ceacf19874c8d06241b14a | Java | pacbittencourt/HerosApp | /app/src/main/java/ufjf/heros/HttpHelper.java | UTF-8 | 1,953 | 2.796875 | 3 | [] | no_license | package ufjf.heros;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
/**
* Created by Alex on 19/11/2016.
*/
public class HttpHelper {
public final int TIMEOUT_MILLIS = 15000;
public String doGet(String ur... | true |
bad2f5177e7530e11507747931aab214f794dda1 | Java | xeon-ye/croa | /src/main/java/com/qinfei/qferp/entity/announcementinform/MediaPass.java | UTF-8 | 8,555 | 1.898438 | 2 | [] | no_license | package com.qinfei.qferp.entity.announcementinform;
import com.qinfei.core.annotation.Id;
import com.qinfei.core.annotation.Table;
import com.qinfei.core.annotation.Transient;
import java.io.Serializable;
import java.util.Date;
/**
* 通知公告
* @author dengshenggeng
*/
@Table(name="t_announcement_inform")
public cla... | true |
1b77b2a135e72329bf414082a9c06cb85ae8f9a3 | Java | BlagoyNikolov/ITTalentsWorkspace | /Test3Tasks/src/test3lutenica/veggies/Patlajan.java | UTF-8 | 149 | 2.203125 | 2 | [] | no_license | package test3lutenica.veggies;
public class Patlajan extends Vegetable {
public Patlajan(String name) {
super(name, 9, VegType.PATLAJAN);
}
}
| true |
e6634691de3dcfecea1119c455f16b33240d7b16 | Java | amujahed/AirlineBooking | /src/main/java/airline/repository/AirplaneRepository.java | UTF-8 | 633 | 2.546875 | 3 | [] | no_license | package airline.repository;
import airline.model.Airplane;
public class AirplaneRepository {
public static Airplane getAirplane1()
{
Airplane airplane=new Airplane("Boeing 777",TravelClassRepository.getTravelClass1());
return airplane;
}
public static Airplane getAirplane2()
... | true |
31dc86120bcb3a0537296a42052bc0438c81746b | Java | fincamd/IPS_Teamwork | /src/business/clientLogic/GetClientById.java | UTF-8 | 1,156 | 2.59375 | 3 | [] | no_license | package business.clientLogic;
import java.sql.Connection;
import java.sql.SQLException;
import common.BusinessException;
import common.Jdbc;
import dtos.ClientDto;
import factories.PersistenceFactory;
public class GetClientById {
// Fields
// -----------------------------------------------------------------------... | true |
bba664cceb03f1de02e4ac5ab1a8cb8bb62b6101 | Java | xuzengsheng/wx-mall | /wx-mall/mall-domain/mall-goods-domain/src/main/java/com/wx/mall/entity/ClassfyInfo.java | UTF-8 | 984 | 2.015625 | 2 | [] | no_license | package com.wx.mall.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.... | true |
84084d88cc870c999d64dd5ca139fabc749a1f42 | Java | boojongmin/study_examples | /examples/bank_example/04.java_hibernate_spring(xml)/src/main/java/com/school/bank_java/springtest/test/A.java | UTF-8 | 255 | 2.703125 | 3 | [] | no_license | package com.school.bank_java.springtest.test;
public class A {
public A(){
System.out.println("A 객체 생성");
}
public void destoryA(){
System.out.println("A 객체 소멸");
}
@Override
public String toString() {
return "A 객체";
}
}
| true |
468bf54a25c39670b864a04f0a39c203246a5b44 | Java | keyur2714/springcore | /springcore/src/com/webstack/springcore/bean/AngularQuestion.java | UTF-8 | 252 | 2.09375 | 2 | [] | no_license | package com.webstack.springcore.bean;
import org.springframework.stereotype.Component;
@Component(value = "angularBean")
public class AngularQuestion implements IQuestion {
@Override
public String question() {
return "What is Angular?";
}
}
| true |
97fc39327fe58981854ddc66ec0a345b78505153 | Java | lm165678/DArtE | /src/dae/io/readers/PrefabTextImporter.java | UTF-8 | 946 | 2.4375 | 2 | [
"BSD-2-Clause"
] | permissive | package dae.io.readers;
import dae.components.ComponentType;
import dae.components.PrefabComponent;
import dae.prefabs.Prefab;
/**
*
* @author Koen Samyn
*/
public interface PrefabTextImporter {
/**
* Parses a parameter and sets the value on the correct
* property of the component.
* @param p t... | true |
dbaecd7d99e0b19023e9002b9574e321a358980a | Java | doytowin/doyto-query-web | /src/main/java/win/doyto/query/web/WebMvcConfigurerAdapter.java | UTF-8 | 3,199 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package win.doyto.query.web;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import org.spring... | true |
89ef1f3611df5a036e59a3d732f30d81c62a7703 | Java | im0523/Hanboltaegi-Android | /.svn/pristine/44/44a3b1bc51f7bb963c302d49077ed3f65c900e1a.svn-base | UTF-8 | 426 | 2.140625 | 2 | [] | no_license | package com.csslect.app.command;
import java.util.ArrayList;
import org.springframework.ui.Model;
import com.csslect.app.dao.RecipeDAO;
import com.csslect.app.dto.TodayRecipeDTO;
public class weekRecipeCommand implements ACommand {
@Override
public void execute(Model model) {
RecipeDAO adao = new RecipeDAO();... | true |
159885479de6608a4c7d97f7061fd221ebe7212b | Java | gdcolella/remotebot | /RemoteBot/src/main/java/com/gdcolella/remotebot/ConnectActivity.java | UTF-8 | 2,944 | 2.578125 | 3 | [] | no_license | package com.gdcolella.remotebot;
import android.app.Activity;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import java.io.IOException;
... | true |
1a540f86dcf344a3095bb9737e96c70bed0dc015 | Java | LetsCloud/hw-gae | /hw-gae-server/src/main/java/hu/hw/cloud/server/service/impl/cube/m1/AbstractCubeCoreQueryM1.java | UTF-8 | 3,247 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | /**
*
*/
package hu.hw.cloud.server.service.impl.cube.m1;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import hu.hw.cloud.server.entity.cube.CubeBase;
import hu.hw.cloud.server.entity.cube.CubeOcc;
import hu.hw.cloud.server.entity.cube.CubeQuer... | true |
deda65e8c25bf643266a143e24bfea4b3cc60e35 | Java | Siva6261/prescription-system-with-firebird-5 | /Arduinobluetoothcontroller_v1.3_apkpure.com_source_from_JADX/com/giumig/apps/bluetoothcontroller/DeviceTerminalActivity.java | UTF-8 | 2,946 | 1.757813 | 2 | [] | no_license | package com.giumig.apps.bluetoothcontroller;
import android.os.Bundle;
import android.support.design.widget.Snackbar;
import android.widget.EditText;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.ScrollView;
import android.widget.TextView;
import android.widget.TextView... | true |
d9854ce00676782800baca8f6b3cf9b22c0d35fc | Java | 824728350/batfish | /projects/batfish/src/org/batfish/representation/PolicyMap.java | UTF-8 | 1,268 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | package org.batfish.representation;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class PolicyMap implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
/**
* Clauses in this list are checked in order against a candidate rout... | true |
a65bbad652b4d1a99d89b9718a80ebd490daae83 | Java | ShrikarMukesh/JavaPrograms_2018 | /Data Structure/src/example/CircularQueue.java | UTF-8 | 1,921 | 3.796875 | 4 | [] | no_license | package example;
import java.util.Scanner;
class CircularQueue
{
static int f=0;
static int r=-1;
static int size=5;
static int count=0;
static int q[]=new int[5];
static Scanner scan = new Scanner(System.in);
public static void main(String[] args)
{
int choice;
while(true)
... | true |
35b09234476007331c084d2e07498fb19dc30c07 | Java | jiaoxin1993/myCode | /src/main/java/netty/heatbeat/ServerHeatBeatHandler.java | UTF-8 | 2,756 | 2.78125 | 3 | [] | no_license | package netty.heatbeat;
import io.netty.channel.ChannelFutureListener;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerAdapter;
import io.netty.channel.ChannelHandlerContext;
import java.util.ArrayList;
import java.util.List;
/**
* Created by admin on 2019/10/29.
*/
@ChannelHandler.Sh... | true |
ebe408394c3eeccec37efa34f219a49e5959a0a5 | Java | wedeploy-examples/supermarket-android-example | /app/src/main/java/io/wedeploy/supermarket/resetpassword/ResetPasswordState.java | UTF-8 | 555 | 2.109375 | 2 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | package io.wedeploy.supermarket.resetpassword;
import io.wedeploy.supermarket.util.RequestState;
/**
* @author Silvio Santos
*/
public class ResetPasswordState {
public ResetPasswordState(RequestState state) {
this.state = state;
}
public ResetPasswordState(RequestState state, Exception exception) {
... | true |
df1ee6524627c8203c49d0b0a6b4706d9241559a | Java | Reshi01/DHCP | /DHCP/src/Entidades/ServidorDHCP.java | UTF-8 | 44,522 | 2.484375 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Entidades;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundExcep... | true |
7d43ff93d47962b906c9a0ed3ebfdaae27d9ba83 | Java | onexeno/plow | /server/src/main/java/com/breakersoft/plow/event/JobLaunchEvent.java | UTF-8 | 683 | 2 | 2 | [
"Apache-2.0"
] | permissive | package com.breakersoft.plow.event;
import com.breakersoft.plow.FilterableJob;
import com.breakersoft.plow.Folder;
import com.breakersoft.plow.thrift.JobSpecT;
public class JobLaunchEvent implements Event {
private final FilterableJob job;
private final Folder folder;
private final JobSpecT jobSpec;
... | true |
da7084b285a2cb54ed067f140b5f31445b183b1a | Java | niuxingwei/Java | /Week4/src/Test4.java | UTF-8 | 516 | 3.359375 | 3 | [] | no_license | import java.util.Scanner;
public class Test4 {
private int number;
public Test4(int number)
{
this.number = number;
}
public void BinaryForm()
{
String s = Integer.toBinaryString(number);
System.out.println(s);
}
public static void main(String[] args) {
Scanner in = new ... | true |
11f62a60d8286f41b124f848325e964b044f6f0b | Java | deolivaa082/selenium_bootcamp_2020 | /testngtest/src/test/java/ejercicios/SeleniumHandsOn3.java | UTF-8 | 802 | 2.171875 | 2 | [] | no_license | package ejercicios;
import java.io.File;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.WebDriver;
import utils.WebDriverFactory;
public class SeleniumHandsOn3 {
public static voi... | true |
85910a0686657fe945db3413099c5d5c3110144c | Java | earanda131/Eric-Aranda-Portfolio | /Shortest, Longest, # of paths in a graph/src/Node.java | UTF-8 | 713 | 3.125 | 3 | [] | no_license |
public class Node {
private int shortest;
private int longest;
private int num_paths;
public Node(int nodes){
this.shortest = nodes;
this.longest = 0;
this.num_paths = 0;
}
public int getShortest() {
return shortest;
}
public void setShortest(int n) {
this.shortest = n;
}
public int getLonge... | true |
893432e9bf1831dcce3fe9972eaa03bc741abd09 | Java | shun-chiba/uroborosql-sample | /src/main/java/jp/co/future/uroborosql/sample/Main.java | UTF-8 | 9,366 | 2.421875 | 2 | [
"MIT"
] | permissive | package jp.co.future.uroborosql.sample;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.time.LocalDate;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import ... | true |
56b456d67e3da6d67c8310609d09817481fda5eb | Java | VvencesS/QuanLyDoAnTotNghiep | /src/model/KhoaManager.java | UTF-8 | 1,095 | 2.640625 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package model;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import ... | true |
695e07f042ec2b951bc6de7c71684204d18cfcfd | Java | Sujatabatra/SynechronJan2021Spring | /emp-rest-client-springboot-demo/src/main/java/com/sujata/service/EmployeeServiceImpl.java | UTF-8 | 767 | 2.28125 | 2 | [] | no_license | package com.sujata.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;
import com.sujata.bean.Employee;
import com.sujata.bean.Employees;
@Service
public class EmployeeServiceImpl implemen... | true |
2bdfc9bb921dedfd207b32cc196a021d8faea3bd | Java | danigiri/morfeu | /src/main/java/cat/calidos/morfeu/utils/MorfeuUtils.java | UTF-8 | 2,905 | 2.796875 | 3 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"MIT"
] | permissive | // MORFEU UTILS . JAVA
package cat.calidos.morfeu.utils;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ExecutionException;
import cat.calidos.morfeu.problems.ParsingException;
/**
* @author daniel giribet
*///////////////////////... | true |
84374a16993b5076d54a47603ca600eb39a91a9b | Java | mingshashan/learn-spring | /demo/src/main/java/com/example/demo/thread/deadlock/Test02.java | UTF-8 | 227 | 1.984375 | 2 | [] | no_license | package com.example.demo.thread.deadlock;
/**
* Test02
*
* @author xufj
*/
public class Test02 {
public static void main(String[] args) {
System.out.println(Runtime.getRuntime().availableProcessors());
}
}
| true |
585210f5ed07259b77316a3547cf8a4f5541cec7 | Java | MarkV43/JavaIsland | /src/com/pavogt/javaisland/MainWindow.java | UTF-8 | 3,983 | 2.75 | 3 | [
"MIT"
] | permissive | package com.pavogt.javaisland;
import com.pavogt.javaisland.data.CartListener;
import com.pavogt.javaisland.data.Client;
import com.pavogt.javaisland.data.ClientDataBase;
import com.pavogt.javaisland.data.ProductDataBase;
import com.pavogt.javaisland.screen.*;
import java.awt.*;
import java.awt.event.WindowAdapter;
i... | true |
550bb0c4e30c68c75d9787c241a628ed8c309069 | Java | jinii9/SEProject | /SETermTest/app/src/main/java/gachon/mpclass/setermtest/SqliteManager.java | UTF-8 | 7,879 | 2.53125 | 3 | [] | no_license | package gachon.mpclass.setermtest;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import java.util.ArrayList;
import java.util.List;
public c... | true |
1bb85793dd889fb9cedf9aa30f528f3ad200f0d2 | Java | js3560750/idea-git-test | /src/com/js/Test.java | UTF-8 | 237 | 1.859375 | 2 | [] | no_license | package com.js;
/**
* Author Jinsong
* Email 188949420@qq.com
* Date 2018/5/10
*/
public class Test {
public static void main(String[] args) {
System.out.println("hello");
System.out.println("lalalala");
}
}
| true |
3d01b914f49e30545a8acc7f7af5813a90c90fb2 | Java | cis2206fall2015/t0Hello | /HelloFromGitHub.java | UTF-8 | 132 | 1.757813 | 2 | [
"Unlicense"
] | permissive | public class HelloFromGitHub {
public static void main(String[] args) {
System.out.println("Hello from a GitHub cloning!");
}
}
| true |
4800132e7e4814c639b5756c1e97ed11182fc9ae | Java | khushia1721/FunctionalProgramming | /src/definitions/product/Main.java | UTF-8 | 691 | 2.90625 | 3 | [] | no_license | /* Created by IntelliJ IDEA.
* User: Divyansh Bhardwaj (dbc2201)
* Date: 24/09/20
* Time: 3:09 PM
* File Name : Main.java
* */
package definitions.product;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
Product[] products = new Product[10];
for (int... | true |
5e713b42c5ee54c77c9d3a66de3c369fed7bf93b | Java | imobqel/TajwalApiTask | /src/test/java/testsHelpers/ApiRequests.java | UTF-8 | 1,657 | 2.390625 | 2 | [] | no_license | package testsHelpers;
import static io.restassured.RestAssured.given;
import org.testng.internal.collections.Pair;
import frameworkHelpers.DataReader;
import io.restassured.response.Response;
import resources.ApiPayloads;
// This class holds the actual implementation of both GET & POST requests using RestAssured
pu... | true |
83201b5a60f4cf8a53f60b15d0ada49699186bb9 | Java | ixrjog/opscloud4 | /opscloud-ssh-server/src/main/java/com/baiyi/opscloud/sshserver/config/SshShellListenerConfiguration.java | UTF-8 | 961 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package com.baiyi.opscloud.sshserver.config;
import com.baiyi.opscloud.sshserver.listeners.SshShellEventType;
import com.baiyi.opscloud.sshserver.listeners.SshShellListener;
import com.baiyi.opscloud.sshserver.listeners.event.ISshShellEvent;
import com.baiyi.opscloud.sshserver.listeners.event.SshShellEventFactory;
imp... | true |
42b21be1ee551514aa60cdf738cb347b8158629c | Java | WheezyGold7931/Anti-Rooktube | /src/me/wheezygold/antiRooktube/Main.java | UTF-8 | 7,583 | 1.84375 | 2 | [
"MIT"
] | permissive | package me.wheezygold.antiRooktube;
import java.io.IOException;
import java.util.Arrays;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.entity.Player;
import o... | true |
4f296869cf64b5f26190d3057c0c7de035a5a3f5 | Java | dav-s/RandomProjects | /DavisTimeScanner/Demo.java | UTF-8 | 833 | 3.859375 | 4 | [] | no_license | public class Demo {
public static void main(String[] args) throws InterruptedException{
System.out.println("Please enter an input within the next 10 seconds.");//Prompt user to input data
String str = DavisTimeScanner.getLine(10); //Specify seconds to wait and get input
/*
NOTE:Thi... | true |
bb295181a3d124696196b1fd338bd899b07886fb | Java | StoneInCHN/Rebate-Mechanism | /Rebate-Mechanism/rebate-pom/rebate-operation/src/main/java/org/rebate/request/SellerEvaluateRequest.java | UTF-8 | 991 | 2.015625 | 2 | [] | no_license | package org.rebate.request;
import java.util.Date;
public class SellerEvaluateRequest {
private String userName;
private String sellerName;
private Date beginDate;
private Date endDate;
/**评价得分*/
private Integer score;
public String getUserName() {
return userName;
}... | true |
1203dd8e7fc1102cd899261fc30edc2b4706c7f5 | Java | giljulio/crunch | /crunch-core/src/main/java/com/giljulio/crunch/text/decompressor/reader/BinaryFileDecompressReader.java | UTF-8 | 1,754 | 2.796875 | 3 | [
"Apache-2.0"
] | permissive | package com.giljulio.crunch.text.decompressor.reader;
import com.giljulio.crunch.text.decompressor.model.ReaderItem;
import com.giljulio.crunch.text.io.BitInputStream;
import com.giljulio.crunch.text.io.FileBitInputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.NoSuchElementExcept... | true |
9af5bcd818edcdb50148892d5939f7e4d3f3cba7 | Java | Cosincla/We_Think_Code | /Swingy/src/main/java/WeThinkCode/Swingy/Controller/GameState.java | UTF-8 | 1,031 | 2.703125 | 3 | [] | no_license | package WeThinkCode.Swingy.Controller;
import WeThinkCode.Swingy.Controller.Map.Map;
import WeThinkCode.Swingy.Model.Entities.Heroes.Hero;
import lombok.Getter;
import lombok.Setter;
import javax.swing.*;
public class GameState {
// static variable single_instance of type Singleton
private static GameState ... | true |
e36fa8da1c2e39db5917aac406e7bfd0fa8684a5 | Java | GuillermoBlanco9/DW1E | /Programacion/Workspace/Utilidad/src/UTILIDAD/CLaseHija.java | UTF-8 | 409 | 3.109375 | 3 | [] | no_license | package UTILIDAD;
public class CLaseHija extends ClaseMadre
{
public CLaseHija()
{
super("Juan",1900.00);
}
public static void main(String[] args)
{
CLaseHija obj=new CLaseHija();
System.out.println("Nombre: "+obj.mostrar());
System.out.println("Sueldo: "+(double)Math.round(obj.calculo(1900.00)*... | true |
82928e4575d1535c03f8979fcc435ba0fc1e3336 | Java | Fonx95/DP1-2020-G1-10 | /src/main/java/org/springframework/samples/farmatic/model/UserValidate.java | UTF-8 | 383 | 2.0625 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | package org.springframework.samples.farmatic.model;
import lombok.Data;
@Data
public class UserValidate {
private String username;
private String password;
private String newPassword;
private String validPassword;
public UserValidate() {
}
public UserValidate(String username, String password) {
... | true |
470d4ba00fd3e404f49fd93d9ad90c39700cf6a5 | Java | PoojaShekhar/CS5543-Real-Time-Big-Data-Analytics--Lab-assignments | /Source/Lab3&4/target/classes/org/openimaj/demos/video/VideoTagging.java | UTF-8 | 2,492 | 2.5625 | 3 | [] | no_license | package org.openimaj.demos.video;
import com.clarifai.api.ClarifaiClient;
import com.clarifai.api.RecognitionRequest;
import com.clarifai.api.RecognitionResult;
import com.clarifai.api.Tag;
import org.openimaj.image.DisplayUtilities;
import org.openimaj.image.ImageUtilities;
import org.openimaj.image.MBFImage;
import ... | true |
0e900e34271d553d08e0bcf5781b6903d2e1d384 | Java | weiyien/JAVADesionPattern | /src/proxy/staticproxy/ProxyStar.java | UTF-8 | 702 | 2.921875 | 3 | [] | no_license | package proxy.staticproxy;
/**
* @author: 魏薏恩
* @date: 2019/4/15 16:40
* @description:
*/
public class ProxyStar implements Star {
private Star realStar;
public ProxyStar(Star realStar) {
this.realStar = realStar;
}
@Override
public void confer() {
System.out.println("proxy co... | true |
fecfb126baa2ea39ffb32567d438902ba25b2715 | Java | Beomsik-Lee/ABCFunding | /ABCFunding/src/com/hk/abcfund/model/dto/ABCJudgeResultDto.java | UTF-8 | 1,931 | 2.75 | 3 | [] | no_license | /**
*
*/
package com.hk.abcfund.model.dto;
import java.io.Serializable;
/**
* DTO for examine result
* @author 9age
*
*/
public class ABCJudgeResultDto implements Serializable {
private static final long serialVersionUID = 1L;
/**
* Loan code
*/
private int loanCode;
/**
*... | true |
4fd252d555f98ef4ec01e287527bd08de68dfcae | Java | mchurakou/JMP_D2_2016_Churakou_Radzionau | /task6/Calculator/src/com/epam/jmp/dr/task6/operation/SqrOperator.java | UTF-8 | 221 | 2.546875 | 3 | [] | no_license | package com.epam.jmp.dr.task6.operation;
/**
* Sqrt operator class
*
*/
public class SqrOperator {
/**
*
* @param a - first variable
* @return a * a
*/
public float getSqr(float a) {
return a * a;
}
}
| true |
25a596d599cd4f6f4a0ba34fc0e198a3f9b5100b | Java | 0911-yc/logistics | /src/main/java/com/xr/logistics/controller/TheLibraryController.java | UTF-8 | 326 | 1.742188 | 2 | [] | no_license | package com.xr.logistics.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class TheLibraryController {
@RequestMapping("/TheLibrary")
public String select(){
return "/pages/sortingManagement/theLibrary";
... | true |
0546d5d4c40bd935e25d8192431076fa1fc8f817 | Java | timrobertson100/auacm | /PaintMe.java | UTF-8 | 1,014 | 3.640625 | 4 | [] | no_license | /**
* Paint Me 2012 Southeast
* Author: Chih-Jye Wang
* Date : July 9, 2015
*/
import java.util.Scanner;
public class PaintMe {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
while(true) {
int n = scanner.nextInt();
int w = scanner.n... | true |
c123ac459950493c2b41a0a2e3234d6c1648c6b8 | Java | rishu13raj/AndroidFeed | /feeds-master_final/app/src/main/java/com/example/rishuraj/myapplication/DataAdapter.java | UTF-8 | 5,748 | 2.15625 | 2 | [] | no_license | package com.example.rishuraj.myapplication;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.support.v7.widget.CardView;
import android.text.format.DateFormat;... | true |
31729ed5d1de302f69c7e7eeca0fe6be5da1d818 | Java | saurabhks-fixstream/Zava_Zractice | /src/main/java/com/crackingthecodinginterview/javapractice/RemoveDuplicates.java | UTF-8 | 1,073 | 3.515625 | 4 | [] | no_license | package com.crackingthecodinginterview.javapractice;
import java.util.HashSet;
import java.util.Set;
public class RemoveDuplicates {
public static void deleteDuplicates(ListNode head) {
Set<Integer> set = new HashSet<Integer>();
ListNode prev = null;
ListNode curr = head;
while (c... | true |
2f310a70fa2faac71aa4157700392e66d40db1a3 | Java | JJS-lnu/MDSE-Covid-Analysis | /covid19/src/se/lnu/joa/covid/model/config/ConfigPackage.java | UTF-8 | 51,381 | 1.71875 | 2 | [] | no_license | /**
*/
package se.lnu.joa.covid.model.config;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.EOperation;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
/**
* <!-- begin-user-doc -->
* Th... | true |
436c3acc00749354a020081994d1fec2db3c6c62 | Java | pmattd/survival | /src/main/java/core/config/builder/HostileFactory.java | UTF-8 | 688 | 2.484375 | 2 | [] | no_license | package core.config.builder;
import com.google.inject.Singleton;
import core.combat.Hostile;
import core.config.xml.hostiles.GroupMemberConfig;
import java.util.ArrayList;
import java.util.List;
import static java.util.Collections.emptyList;
/**
* Created by Pete on 03/08/2016.
*/
@Singleton
public class HostileF... | true |
60c60b6e06c3c1be127977274c3390bb0fe940f0 | Java | Connor24601/connectfour | /connectfour/Main.java | UTF-8 | 1,237 | 3.109375 | 3 | [] | no_license | import connectfour.graphics.Connect4Frame;
import connectfour.graphics.Connect4Game;
import connectfour.player.Agent;
import connectfour.player.MyAgent;
import connectfour.player.Human;
/**
* The main driver of the program. This file will create the game, create the two agents,
* and create the window for the ... | true |
6204f965c504c48e3d9d01e095c874c7980e3347 | Java | bartoszcisek/cattle | /modules/caas/backend/src/main/java/io/cattle/platform/lifecycle/K8sLifecycleManager.java | UTF-8 | 174 | 1.648438 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | package io.cattle.platform.lifecycle;
import io.cattle.platform.core.model.Instance;
public interface K8sLifecycleManager {
void instanceCreate(Instance instance);
}
| true |
e935e1bf3bb0d7c9a630689abc538c936f009b93 | Java | jzzy/PerfectBefriend | /src/com/befriend/listener/InitListener.java | UTF-8 | 1,802 | 2.109375 | 2 | [] | no_license | package com.befriend.listener;
import java.util.List;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.befriend.Thread.StasTime;
import co... | true |
636574926bddeaf1b64e554b5d8f6cdb026633c0 | Java | welldoer/DDD-Sample-core | /src/test/java/net/blogjava/dddsample/domain/TrackingScenarioTest.java | UTF-8 | 1,910 | 2.421875 | 2 | [] | no_license | package net.blogjava.dddsample.domain;
import static org.assertj.core.api.Assertions.*;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.SortedSet;
import org.junit.Before;
import org.junit.Test;
public class TrackingScenarioTes... | true |
9f5bc7c727218c5bedf88250527543104e3f2479 | Java | sh3rrythew1n3/Princeton-University-s-Programming-with-a-Purpose | /week 3 - Arrays/DiscreteDistribution.java | UTF-8 | 1,039 | 3.109375 | 3 | [] | no_license | /* *****************************************************************************
* Name: Alan Turing
* Coursera User ID: 123456
* Last modified: 1/1/2019
**************************************************************************** */
public class DiscreteDistribution {
public static void m... | true |
7043062c9fd10a69dabc22681bfb0b0258dcb76d | Java | zslotyi/DuplicatesGame | /src/duplicatesgame/GameElement.java | UTF-8 | 588 | 2.84375 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package duplicatesgame;
/**
*
* @author zslotyi
*/
class GameElement {
private final int i;
public static Game... | true |
545bbea3f8a6be08b107eba99a7441bcb8a578a1 | Java | iCAS-Lab/IMAC | /MNIST_FeedForwardJavaProgram/JavaNeuralNetwork/src/RELU.java | UTF-8 | 1,045 | 3.15625 | 3 | [] | no_license | /*
By Brendan C. Reidy
Created 12/10/2019
Last Modified 12/10/2019
Sigmoid Activation Function
Activates neurons with the sigmoid function 'deactivates' them with inverse derivative
*/
public class RELU implements ActivationFunction {
String name = "RELU";
public float relu(float x)
... | true |
7a41bbbf574e21188f1f9826690ff17666b4c28d | Java | najmeddine98/Restaurant-Reservation | /app/src/main/java/com/najmeddine/BestReservation/Login.java | UTF-8 | 3,825 | 2.171875 | 2 | [] | no_license | package com.najmeddine.BestReservation;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.Vi... | true |
53073d08e7ecb6cfa94bd56d3af24af28f2da6a6 | Java | dogonrider/OrderService | /src/main/java/com/treez/spring/customException/InventoryDeleteException.java | UTF-8 | 224 | 1.976563 | 2 | [] | no_license | package com.treez.spring.customException;
import lombok.Data;
@Data
public class InventoryDeleteException extends Exception {
public InventoryDeleteException(String errorMessage) {
super(errorMessage);
}
}
| true |
941fb365418054a4bc0975163b7cae7799d2a012 | Java | dengjiaping/mall_new | /Mall/app/src/main/java/com/giveu/shoppingmall/cash/view/fragment/MainCashFragment.java | UTF-8 | 3,845 | 1.960938 | 2 | [] | no_license | package com.giveu.shoppingmall.cash.view.fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewStub;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.giveu.... | true |
1823e21710062716c2a72531b7ea5f104acd564d | Java | Trisetyoo/IndustrialTravelGuides | /app/src/main/java/com/eternity/duakelinci/BaseActivity.java | UTF-8 | 685 | 2.09375 | 2 | [
"WTFPL"
] | permissive | package com.eternity.duakelinci;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
/**
* Created by pratama on 2/18/15.
*/
public class BaseActivity extends AppCompatActivity {
public Toolbar toolbar;
@Override
public void setContentView(int layoutResID) {
... | true |