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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
22dbfb0159ae9d34202d1d7c9b94a9f548f0d613 | Java | himanshupraveengoyal/NOTES-CDAC | /Advanced Java/day5_AOP/day5_aop/A.java | UTF-8 | 212 | 2.78125 | 3 | [] | no_license | package day5_aop;
public class A {
public void freak1()
{
System.out.println("Freak function 1 called");
}
public void freak2()
{
System.out.println("Freak function 2 called");
}
}
| true |
a230eebdb568ce1f0a91f4eced14f94d5c2fc4a3 | Java | sjain28/Logo-IDE | /src/commands/Not.java | UTF-8 | 335 | 2.859375 | 3 | [
"MIT"
] | permissive | package commands;
import value.Value;
public class Not extends Command{
public Not(){
setNumParams(1);
}
@Override
public double evaluate() {
int result;
Value term1 = (Value) getParams().get(0);
if(term1.getValue().equals(0))
result = 1;
else
result = 0;
super.setValue(result);
return... | true |
07c383299ceb467b5c87ece6bad911a795eb0679 | Java | SLAIAX/AndroidAss2 | /app/src/main/java/com/example/photogallery/ImageViewActivity.java | UTF-8 | 1,619 | 2.609375 | 3 | [] | no_license | package com.example.photogallery;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.os.Bundle;
import android.widget.ImageView;
import java.io.File;
public class ImageV... | true |
6dd4680188a528da1edcbc04254a112aeb901f8a | Java | Phirt/JPA_exercises | /threadExDay1-master/src/Threads2_opg1/Url.java | UTF-8 | 951 | 2.875 | 3 | [] | no_license | package Threads2_opg1;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
/**
*
* @author Philip
*/
public class Url {
public static byte[] getBytesFromUrl(String url) throws IOException {
... | true |
be52bd1277eba01e256dbc16b89022b552c88d8d | Java | baizhantang/spring_cloud | /config_client/src/main/java/com/sunhao/config_client/controller/ConfigController.java | UTF-8 | 568 | 2.21875 | 2 | [] | no_license | package com.sunhao.config_client.controller;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
pub... | true |
24a8dbb9d3e40751ad84802b2f987a0f1fe81ca7 | Java | olegls2000/java4-jdbc | /src/main/java/com/bta/repository/CityRepositoryImpl.java | UTF-8 | 586 | 2.15625 | 2 | [] | no_license | package com.bta.repository;
import com.bta.domain.City;
import java.util.List;
public class CityRepositoryImpl extends AbstractBaseRepository implements CityRepository {
@Override
public List<City> findAll() {
return null;
}
@Override
public boolean save(City entity) {
return fal... | true |
237341f63e8d3f1278d7fb7ae1ff8cedbc770779 | Java | zhv/CarCollector | /src/Detail/Engine.java | UTF-8 | 148 | 2.03125 | 2 | [] | no_license | package Detail;
public class Engine extends AbstractDetail {
public Engine(int detailPrice) {
super("Engine",detailPrice);
}
}
| true |
396e9f1991996d7e87ab5482a2657a0ce9d0eb49 | Java | citrusframework/citrus | /core/citrus-spring/src/main/java/org/citrusframework/config/xml/TimerParser.java | UTF-8 | 3,629 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2006-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | true |
1d64e185f9a0d24cbfe2f7180a6910c74cc7b015 | Java | WouterStemgee/system-design-microservices-expo-management | /ticket/src/main/java/be/ugent/sysdes2/ticket/persistence/TicketRepository.java | UTF-8 | 316 | 1.609375 | 2 | [] | no_license | package be.ugent.sysdes2.ticket.persistence;
import be.ugent.sysdes2.ticket.domain.Ticket;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface TicketRepository extends CrudRepository<Ticket, Integer> {
}
| true |
a1b3a29ea98090c0c2ef3cdb9e3743f454f4d42e | Java | dew-uff/svp-ms | /src/uff/dew/svp/catalog/util/WrapperLocation.java | UTF-8 | 1,210 | 2.65625 | 3 | [
"MIT"
] | permissive | package uff.dew.svp.catalog.util;
import java.io.Serializable;
public class WrapperLocation implements Serializable {
protected String uri;
protected double communicationWeight;
public WrapperLocation(){
}
public WrapperLocation(String uri){
this.uri = uri;
}
public double getCommunicationWeight() {
... | true |
2e1290b46381ed664ba74230b8f2eff5b44995b5 | Java | xuhongchang2008/javadome | /springcode/spring-04/src/main/java/com/xhc/springcode/AppConfig4.java | UTF-8 | 406 | 1.921875 | 2 | [] | no_license | package com.xhc.springcode;
import com.xhc.springcode.injection.UserDAO;
import com.xhc.springcode.injection.UserDAOImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
//@ImportResource("applicationContext.xml")
public class AppConfig4 ... | true |
46277be59871ecf58237a7f1e7e889943dadf3a4 | Java | Stasha73/Java-Project-Track | /src/main/java/com/CoderGirlTrack/JavaProject/dao/UserProfileRowMapper.java | UTF-8 | 792 | 2.4375 | 2 | [] | no_license | package com.CoderGirlTrack.JavaProject.dao;
import com.CoderGirlTrack.JavaProject.models.UserProfile;
import org.springframework.jdbc.core.RowMapper;
import java.sql.ResultSet;
import java.sql.SQLException;
public class UserProfileRowMapper implements RowMapper<UserProfile> {
public UserProfile mapRow(ResultSet... | true |
3ff16b3eb1c24eba85900b96d7d5801735313e32 | Java | lakue119/Java-HtmlEditor | /app/src/main/java/com/lakue/htmleditor/VideoStrategy.java | UTF-8 | 181 | 1.765625 | 2 | [] | no_license | package com.lakue.htmleditor;
import android.net.Uri;
public interface VideoStrategy {
public String uploadVideo(Uri uri);
public String uploadVideo(String videoPath);
}
| true |
f2c360d410704994e04d74a868d72554547fcc1d | Java | AnabelyFernandezT/App-Registro-Desechos | /app/src/main/java/com/caircb/rcbtracegadere/models/response/DtoLotePadreHotel.java | UTF-8 | 746 | 1.882813 | 2 | [] | no_license | package com.caircb.rcbtracegadere.models.response;
public class DtoLotePadreHotel {
private Integer idLoteContenedorHotel;
private String codigo;
private Integer estado;
public DtoLotePadreHotel() {
}
public Integer getIdLoteContenedorHotel() {
return idLoteContenedorHotel;
}
... | true |
3a5281a2f7280aacf72a9760a4cc07b1bbe7e882 | Java | berlinfog/operating-system--firedance | /Code/PROGRAM/src/state1/PageList.java | GB18030 | 4,983 | 3.1875 | 3 | [] | no_license | package state1;
public class PageList {//ҳ
protected final int ItemNumber = 10;//ÿһҳҳΪ10
protected PageListItem pagelistitem[];//ҳĶ
protected int flag;//־Ҫ±
//protected boolean buy;
public PageList()//캯
{
this.pagelistitem = new PageListItem[this.ItemNumber];//ռ
for(int i=0;i<this.ItemNumber;i++)//ÿһҳ... | true |
71b80a6c8119c3bed2b0ce72a7daf7f3a0a8e80e | Java | techvijayverma/onlinecousnsellingbackend | /onlinecounselingbackend/src/main/java/org/cdac/DTO/QuestionDTO.java | UTF-8 | 1,358 | 2.21875 | 2 | [
"MIT"
] | permissive | package org.cdac.DTO;
public class QuestionDTO {
int questNo;
String questDesc;
String questOption1;
String questOption2;
String questOption3;
String questOption4;
String questAnswer;
String questType;
public int getQuestNo() {
return questNo;
}
public void setQuestNo(int questNo) {
this.questNo = que... | true |
7c4b9137219f7b3700b6b0ae77c2afe080683178 | Java | vsankara/Kyron | /trips-ejb-module/src/com/technobrain/trips/compliance/model/ComplianceJobTo.java | UTF-8 | 769 | 2.203125 | 2 | [] | no_license | package com.technobrain.trips.compliance.model;
import java.io.Serializable;
public class ComplianceJobTo implements Serializable {
public ComplianceJobTo() {
}
String errorMessage;
boolean error;
long complianceJobId;
public void setErrorMessage(String errorMessage) {
this.error... | true |
365188b672fc480bbe00dde6d5acbc50295afd69 | Java | ashirovjonibek/api-servise | /service-1/src/main/java/service_1/demo/entity/enums/RoleName.java | UTF-8 | 79 | 1.585938 | 2 | [] | no_license | package service_1.demo.entity.enums;
public enum RoleName {
ROLE_ADMIN
}
| true |
4c7853fb4fe1947087c57ca088be6d0d35b36a4f | Java | Deepa-j1997/PracticeTest | /Animal.java | UTF-8 | 812 | 3.875 | 4 | [] | no_license | package DeepaJadhav;
class Animals{
public void AnimalSounds(){
System.out.println("Animals are \n 1.Dog \n 2.Horse \n 3.Cat \n Makes Different Noises");
}
}
class Dog extends Animals{
public void AnimalSounds() {
System.out.println("Dog Sounds : WOW WOW");
}
}
class Horse extends Animals{
... | true |
5fda9c1a81684375ad45147f5e45c6a4fc66bda7 | Java | KingZero/Old-JTweaks-Code | /1.10/src/main/java/com/JTweaks/Main/Util/CommonProxy.java | UTF-8 | 1,752 | 1.757813 | 2 | [
"MIT"
] | permissive | package com.JTweaks.Main.Util;
import com.JTweaks.Main.JAchievements;
import com.JTweaks.Main.JTweaks;
import com.JTweaks.Main.Blocks.Forge.*;
import com.JTweaks.Main.Crops.JCrops;
import com.JTweaks.Main.Items.*;
import com.JTweaks.Main.Items.Backpack.*;
import net.minecraft.entity.player.EntityPlayer;
imp... | true |
0057a3fd3bac2f13ae2820200b641ca00173304b | Java | arogyaApp/ArogyaStaging | /ArogyaStageWork/src/com/arogya/stage/prop/ReadProp.java | UTF-8 | 1,064 | 2.4375 | 2 | [] | no_license | package com.arogya.stage.prop;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List... | true |
7615c13f8f41194f5fde365f2424692386f47363 | Java | sam-spain/munro-api | /src/main/java/in/samspa/munroapi/MunroService.java | UTF-8 | 2,300 | 2.5 | 2 | [] | no_license | package in.samspa.munroapi;
import org.springframework.stereotype.Service;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
@Service
public class MunroService {
private MunroRepository munroRepository;
public MunroService(MunroReposito... | true |
6dd31f6675a2e1403b2a33ec20b06c3eb68bb8cd | Java | qopeople/Java-EE-EXAMS-2019 | /PIMS/src/java/BuyerServlert/Oneorderlistsevlet.java | UTF-8 | 2,743 | 2.265625 | 2 | [] | no_license | package BuyerServlert;
import BGOrderManager.OrderBean;
import loginRegister.LoginBean;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOExc... | true |
0a4b94fb800c3b02b754cfb437616c85d320434f | Java | Hui-0108/finalProject | /final/src/main/java/com/fin/app/admin/reservationManagement/ReservationManagementService.java | UTF-8 | 203 | 1.59375 | 2 | [] | no_license | package com.fin.app.admin.reservationManagement;
import java.util.List;
public interface ReservationManagementService {
public List<ReservationManagement> listReservation() throws Exception;
}
| true |
c7c75ad36de43bcbd99c8b38e0315e49fb4667a3 | Java | rdebusscher/octopus-backup | /authentication/OAuth2Common/src/test/java/be/c4j/ee/security/credentials/authentication/oauth2/DefaultOauth2ServletInfoTest.java | UTF-8 | 4,437 | 1.835938 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014-2018 Rudy De Busscher (www.c4j.be)
*
* 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 appli... | true |
70329439ae24b1e03b94125fa8a30932c4603708 | Java | jkavdev/ed | /projeto-ed/src/main/java/br/com/jkavdev/ed/grupo/Grupo.java | UTF-8 | 2,667 | 2.53125 | 3 | [] | no_license | package br.com.jkavdev.ed.grupo;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Objects;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Generat... | true |
0260784a6a4ffac73bd7ffac75f3f51fa4063b35 | Java | guoyugit/javabase | /src/com/gy/designpattern/proxy/dynamic/cglib/Real.java | UTF-8 | 315 | 2.203125 | 2 | [] | no_license | package com.gy.designpattern.proxy.dynamic.cglib;
public class Real {
public void removeTopic(int topicId) {
System.out.println("cglib模拟删除Topic记录:" + topicId);
}
public void removeForum(int forumId) {
System.out.println("cglib模拟删除Forum记录:" + forumId);
}
} | true |
2ba8cb34d27e28e888a50477607e0bea5124fab3 | Java | tomxpcvx/pxWorlds | /src/main/java/com/pxworlds/configuration/ConfigurationStorage.java | UTF-8 | 4,121 | 2.515625 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.pxworlds.configuration;
import com.pxworlds.Bootstrap;
import com.pxworlds.Constants;
import com.pxworlds.configuration.profile.ProfilesConfiguration;
import com.pxworlds.configuration.screen.ScreenConfiguration;
import java.io.File;
import java.io.IOException;
public class ConfigurationStorage {
... | true |
32d35b15bdc16e7dc33679052299082c748c3266 | Java | mytanak/FinWeb | /ProjetoFinWeb/src/br/com/etectupa/servlet/EditarModalidade.java | UTF-8 | 927 | 2.171875 | 2 | [] | no_license | package br.com.etectupa.servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import br.com.etectupa.dao.ModalidadeDAO;
import br.com.etectupa.model.Modalidade;
p... | true |
69735c8ed38aa3e2c467a2dd297a2cad49fe7dfe | Java | stepforwards/CRM | /src/com/forward/web/servlet/user/SelectRoDeServlet.java | UTF-8 | 1,207 | 2.203125 | 2 | [] | no_license | package com.forward.web.servlet.user;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.forward.model.Department;
import co... | true |
6d21b222e07a61dc4423fc190a95be646d7ecfc1 | Java | mcgrain/FifthEditionCompanion | /app/src/main/java/mobile/mcgrainsoft/com/fiftheditioncompanion/spells/contract/CastingTime.java | UTF-8 | 817 | 2.96875 | 3 | [] | no_license | package mobile.mcgrainsoft.com.fiftheditioncompanion.spells.contract;
public enum CastingTime {
ONE_ACTION("1 action"),
ONE_BONUS_ACTION("1 bonus action"),
ONE_REACTION("1 reaction"),
ONE_MINUTE("1 minute"),
TEN_MINUTES("10 minutes"),
ONE_HOUR("1 hour"),
EIGHT_HOURS("8 hours"),
TWELVE_... | true |
8644231c919a8050aaa5f5c3d3ef50afb19f8ab4 | Java | siwonscool/Web-Project | /web0726/src/main/java/com/site/web0725/Service/BServiceView.java | UTF-8 | 496 | 1.875 | 2 | [] | no_license | package com.site.web0725.Service;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.site.web0725.Vo.BVo;
import com.site.web0726.Dao.BDao;
public class BServiceView implements Service {
@Override
public void excute(HttpServletRequest request, HttpSe... | true |
79865dd91bbf309a22081ab2e647f6f0ec92883d | Java | rwynne/nci-term-browser | /software/browser-util/src/gov/nih/nci/evs/browser/utils/FTPDownload.java | UTF-8 | 5,288 | 2.53125 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package gov.nih.nci.evs.browser.utils;
import java.io.*;
import java.util.*;
import java.net.*;
import org.apache.commons.io.FilenameUtils;
import java.io.FileInputStream;
import java.io.FileOutputStream;
public class FTPDownload {
public static Vector get(String uri) {
URL u = null;
InputStream is = ... | true |
c25419a19dd900500286bc8b614319520a3babc0 | Java | electricline/algorithm | /leetcode/src/com/company/ProductofArrayExceptSelf.java | UTF-8 | 622 | 3.09375 | 3 | [] | no_license | package com.company;
public class ProductofArrayExceptSelf {
class Solution {
public int[] productExceptSelf(int[] nums) {
int[] res = new int[nums.length];
int left = 1;
for(int i=0; i<nums.length; i++){
if(i > 0)
left = nums[i-1] * ... | true |
0e77ba8eb784d255eae9fae612a6cb338ecb6434 | Java | redd-ugo/Javarush-JavaCore | /src/com/javarush/task/task19/task1920/Solution.java | UTF-8 | 1,486 | 3.15625 | 3 | [] | no_license | package com.javarush.task.task19.task1920;
/*
Самый богатый
*/
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
//import java.util.ArrayList;
import java.util.Collections;
import java.util.Map;
import java.util.TreeMap;
public class Solution {
public static void main(String... | true |
e3d74fa8afc6ef9729cce9be52b7ca2ed1ec7166 | Java | glennbech/Bake-my-day | /src/com/glennbech/prefermentz/newformula/NewFormulaActivity.java | UTF-8 | 1,905 | 2.03125 | 2 | [] | no_license | package com.glennbech.prefermentz.newformula;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import com.glennbech.prefermentz.R;
import com.glennbech.prefermentz.formuladetails.FormulaDetailsActivity;
import com.glennbech.... | true |
ba9a9174c8901e4dce0f26452e721b3380cb2233 | Java | kisorbiswal/accounter | /src/com/vimukti/accounter/web/server/RecurringTool.java | UTF-8 | 11,476 | 1.867188 | 2 | [
"Apache-2.0"
] | permissive | package com.vimukti.accounter.web.server;
import java.io.File;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import org.apache.log4j.Logger;
import or... | true |
a9eea02763c2a96f6effc642a4c1a1bcefb59242 | Java | arosh-segar/MAD-updated | /app/src/main/java/com/example/madprojecttest/SessionManagement.java | UTF-8 | 1,128 | 2.390625 | 2 | [] | no_license | package com.example.madprojecttest;
import android.content.Context;
import android.content.SharedPreferences;
public class SessionManagement {
SharedPreferences sharedPreferences;
SharedPreferences.Editor editor;
String SHARED_PREF_NAME="session";
String SESSION_KEY="session_user";
public Sessio... | true |
c6823ca8f15ba2b2ffbf2f5bc251103ee7e68108 | Java | AndyLvVip/ucacc-transaction-tcc | /order/src/main/java/ucacc/demo/tcc/TccOrderApplication.java | UTF-8 | 519 | 1.929688 | 2 | [] | no_license | package ucacc.demo.tcc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;
@SpringBootApplication
public class TccOrderApplication {
public ... | true |
d35910fdd9807014266516171dcd15cb2dec7115 | Java | doubleslashmonk/DA-IICT_Registration | /Registration/src/action/EmailActivation.java | UTF-8 | 1,389 | 2.34375 | 2 | [] | no_license | package action;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import model.Registration;
import org.apache.struts2.ServletActionContext;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;... | true |
520e3ed201755337cb7904bf186bbd5b45134f36 | Java | haydenjones/popstars | /popstars/test/popstars/model/GameBoard_Test.java | UTF-8 | 997 | 2.453125 | 2 | [] | no_license | package popstars.model;
import org.junit.Test;
public class GameBoard_Test {
// --- Constants and Variables
// --- Constructor and Initialization Methods
// --- Core and Helper Methods
// --- Getter and Setter Methods
// --- Delegate and Convenience Methods
// --- Miscellaneous Met... | true |
579bc8e72dd415d120581d15b181636b44464bfd | Java | mehedishovon01/Library-Management-System-in-Java-Undergraduation-Project-2-1- | /src/login.java | UTF-8 | 10,571 | 2.21875 | 2 | [] | no_license |
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.swing.JOptionPane;
/*
* 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.
*/
/**
*
* ... | true |
84f91818d53cc911a7db980ed3ea9aff60d824ed | Java | vicaworks/FacturaElectronica-App | /FALEC-e1-core-ejb/ejbModule/com/vcw/falecpv/core/constante/parametrosgenericos/PGEmpresaSucursal.java | UTF-8 | 1,645 | 2.359375 | 2 | [] | no_license | /**
*
*/
package com.vcw.falecpv.core.constante.parametrosgenericos;
/**
* @author cristianvillarreal
*
*/
public enum PGEmpresaSucursal implements ParametroGenericoBaseEnum {
GENERAR_SUCURSAL("1"),
SUCURSAL("2"),
ESTADO_BORRADOR("3"),
PLANTILLA_FACTURA("4"),
PLANTILLA_RETENCION("5"),
PLA... | true |
d6f6d3835a67b307054c973e04f52baec21fc75a | Java | nfukuzaki/kii-rest-client4j | /src/main/java/com/kii/cloud/rest/client/resource/servercode/KiiServerCodesResource.java | UTF-8 | 6,680 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package com.kii.cloud.rest.client.resource.servercode;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import com.kii.cloud.rest.client.annotat... | true |
e4b67103ff72cf4ca0bda15f550e1fdbed010f3a | Java | OpenModLoader/Fusion | /src/main/java/me/modmuss50/fusion/transformer/MixinTransformer.java | UTF-8 | 12,303 | 1.796875 | 2 | [] | no_license | package me.modmuss50.fusion.transformer;
import cpw.mods.modlauncher.VotingContext;
import cpw.mods.modlauncher.api.ITransformer;
import cpw.mods.modlauncher.api.ITransformerVotingContext;
import cpw.mods.modlauncher.api.TransformerVoteResult;
import javassist.*;
import javassist.bytecode.AccessFlag;
import javassist.... | true |
5d18053ce9971697ab616b0911951fe3aa337dfc | Java | brawerman/Heroes | /app/src/main/java/com/example/heroes/model/Hero.java | UTF-8 | 681 | 2.796875 | 3 | [] | no_license | package com.example.heroes.model;
public class Hero {
private int img;
private String name;
private String owner;
public Hero() {
}
public Hero(int img, String name, String owner) {
this.img = img;
this.name = name;
this.owner = owner;
}
public int getImg() ... | true |
0da96e84f4a5276c0474c9741b6e56a89a500402 | Java | Kshitij0106/House_OF_Sohe | /app/src/main/java/com/house_of_sohe/Register/SignUp.java | UTF-8 | 6,410 | 1.976563 | 2 | [] | no_license | package com.house_of_sohe.Register;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androi... | true |
af6a1f82887070b90996203f73459cfa99517e50 | Java | javagurulv/java_1_thursday_2020_online | /src/main/java/student_igors_mihejevs/lesson_6/homework/level_5_6/TicTacToe.java | UTF-8 | 4,234 | 3.75 | 4 | [] | no_license | package student_igors_mihejevs.lesson_6.homework.level_5_6;
import java.util.Arrays;
import java.util.Scanner;
class TicTacToe {
// create field and initialise it (fill in with -1)
int[][] createField() {
int[][] field = new int[3][3];
int initNumber = -1;
for (int[] ints : field) {
... | true |
c5e70f702ef0c1fbb3b35eefda9784ecef823fb0 | Java | bl1n/tracktor_new | /app/src/main/java/com/elegion/tracktor/util/CustomViewModelFactory.java | UTF-8 | 1,265 | 2.15625 | 2 | [] | no_license | package com.elegion.tracktor.util;
import android.arch.lifecycle.ViewModel;
import android.arch.lifecycle.ViewModelProvider;
import android.support.annotation.NonNull;
import com.elegion.tracktor.App;
import com.elegion.tracktor.data.IRepository;
import com.elegion.tracktor.di.RepositoryModule;
import com.elegion.tra... | true |
8c83e2613e0d7977c1494727bd59529eff56b090 | Java | JanssenProject/jans | /jans-scim/model/src/main/java/io/jans/scim/model/scim2/provider/schema/SchemaAttribute.java | UTF-8 | 6,147 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Janssen Project software is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
*
* Copyright (c) 2020, Janssen Project
*/
package io.jans.scim.model.scim2.provider.schema;
import io.jans.scim.model.scim2.AttributeDefinition;
import io.jans.scim.model.scim2.annotatio... | true |
2b06a25d94dd7948866a8d221b5d62f40a819256 | Java | bailu-0224/exercise29 | /src/main/java/com/huadi/exercise29/repository/FireCaseRepository.java | UTF-8 | 523 | 2.1875 | 2 | [] | no_license | package com.huadi.exercise29.repository;
import com.huadi.exercise29.entity.FireCase;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
@Mapper
public interface FireCaseRepository {
//插入一条案件记录,成功返回1,失败返回0
int insert(FireCase c);
... | true |
6270da25cb51de10a20c01a931e0517d2d659e65 | Java | dominguesestacio/ProgramacaoI-2017-2 | /src/Aula5/TesteConcatenacao.java | UTF-8 | 652 | 3.359375 | 3 | [] | no_license | package Aula5;
/**
*
* @author aluno
*/
public class TesteConcatenacao {
/**
*
* @param args
*/
public static void main(String[] args) {
String a = "String";
//primeiro exemplo//------------------------------------
//int b = 3;
//int c = 7;
//System.ou... | true |
2ef8f6d62c77d38e38cf80cc149eb26b7cb5af01 | Java | nadas00/blinkcard-flutter | /BlinkCard/android/src/main/java/com/microblink/blinkcard/flutter/overlays/serialization/BlinkCardOverlaySettingsSerialization.java | UTF-8 | 2,103 | 2.015625 | 2 | [
"MIT"
] | permissive | package com.microblink.blinkcard.flutter.overlays.serialization;
import android.content.Context;
import com.microblink.blinkcard.entities.recognizers.RecognizerBundle;
import com.microblink.blinkcard.fragment.overlay.blinkcard.scanlineui.ScanLineOverlayStrings;
import com.microblink.blinkcard.uisettings.BlinkCardUISe... | true |
301e7e6f1de7652662740a508620472720fa6ea0 | Java | 18601344960/dsweb | /src/org/tpri/sc/view/obt/PartyFeesDetailView.java | UTF-8 | 1,312 | 2.421875 | 2 | [] | no_license | package org.tpri.sc.view.obt;
/**
*
* <B>系统名称:</B><BR>
* <B>模块名称:</B><BR>
* <B>中文类名:</B>组织收缴党费明细视图<BR>
* <B>概要说明:</B><BR>
* @author 交通运输部规划研究院(赵子靖)
* @since 2016年7月5日
*/
public class PartyFeesDetailView {
protected int month;//月 01月、02月等
protected double shoulePartyFee = 0.00; //应缴纳党费金额
... | true |
580bfee2e658220885932dc51c8e28aee850966c | Java | huybuidac20593/yakindu | /archive/SCT1/tags/SCT_1.1.0_RELEASE/com.yakindu.statechart.editing.ui/plugins/org.mda4e.statemachine.contribution.diagram/src/org/mda4e/statemachine/contribution/commands/CmdSetupVar.java | UTF-8 | 2,039 | 2.015625 | 2 | [] | no_license | /**
* Copyright (c) 2006-2009 committers of mda4e and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
... | true |
c5a050d1d089cea7c26134750bd040d272f75c9f | Java | bobbyshreeg/vmeet | /VMeetAndroidApp/app/src/main/java/pragma/embd/vmeetandroidapp/ListviewAdapterStudentsNotesList.java | UTF-8 | 5,320 | 2.140625 | 2 | [] | no_license | package pragma.embd.vmeetandroidapp;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.... | true |
1cdd18b88a3529e2d56e37b2344b4aa24e4f8cbd | Java | StarodubOleksiy/springLibrary | /server/src/main/java/springLibrary/model/request/AuthorRequest.java | UTF-8 | 1,353 | 2.6875 | 3 | [] | no_license | package springLibrary.model.request;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import springLibrary.entities.Author;
import springLibrary.entities.Genre;
@Data
public class AuthorRequest {
private Long id;
private String name;
private Integer[] booksId;
public Author toAuthor()... | true |
2215ad3721ca1e7c8fb5d93a48102512e7e1be43 | Java | europeana/contrib | /repox2/repoxEuropeana/branches/repoxEuropeana_12_03_2013/src/test/java/pt/utl/ist/repox/ScheduledTaskTest.java | UTF-8 | 1,362 | 2.234375 | 2 | [] | no_license | package pt.utl.ist.repox;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import pt.utl.ist.repox.task.DataSourceIngestTask;
import pt.utl.ist.repox.task.ScheduledTask;
import pt.utl.ist.repox.task.ScheduledTask.Frequency;
import pt.utl.ist.repox.util.ConfigSingleton;
import pt.utl.ist.repox.u... | true |
0eaa262d999585c27c0c9ab2657434ccf3fd5c4d | Java | eidofravi/JavaInterviewBookCoding | /src/com/leetcode/ZIgzagConversion3.java | UTF-8 | 1,615 | 3.28125 | 3 | [] | no_license | package com.leetcode;
public class ZIgzagConversion3 {
public static void main(String[] args) {
// String str = new ZIgzagConversion2().convert("PAHNAPLSIIGYIR", 4);
String str = new ZIgzagConversion3().convert("PAYPALISHIRING", 4);
System.out.println(str);
}
private String convert(... | true |
049ae6ac2963219864bb23db9adb6722f37ab211 | Java | emamedov/smscenter | /src/main/java/org/eminmamedov/smscenter/receivers/smpp/tasks/SenderTask.java | UTF-8 | 2,547 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package org.eminmamedov.smscenter.receivers.smpp.tasks;
import ie.omk.smpp.BadCommandIDException;
import java.io.IOException;
import org.apache.log4j.Logger;
import org.eminmamedov.smscenter.receivers.smpp.SmppConnectionHandler;
import org.eminmamedov.smscenter.receivers.smpp.SmppConnectionPool;
import org.... | true |
828f9695adb516f0262d0a87fcdf21d853a79ee2 | Java | 2247407869/my-code-library | /java-example/src/main/java/pers/lls/parttern/strategy/Character.java | UTF-8 | 353 | 2.546875 | 3 | [] | no_license | package pers.lls.parttern.strategy;
/**
* @program: parttern-practice
* @description:
* @author: lils
* @create: 2019-06-10 10:26
*/
public abstract class Character {
private WeaponBehavior weapon;
void fight(){
weapon.useWeapon();
}
public void setWeapon(WeaponBehavior weapon) {
... | true |
7621f734bd88ce03ec1a9eb640106855a957cfc7 | Java | wxm1706/MyPatterns | /MyPatterns/src/principle/dip/IPen.java | UTF-8 | 88 | 1.773438 | 2 | [] | no_license | package principle.dip;
public interface IPen {
public void write(String text);
}
| true |
67848cd3f3435ca9598842371d7dd02b97ccbb1c | Java | minhminh230998/C1020G1_NguyenLongPhin | /casestudy/src/commons/Constant.java | UTF-8 | 1,893 | 2.109375 | 2 | [] | no_license | package commons;
public class Constant {
public static final String SEE_YOU_LATER = "===See You Later===";
public static final String CHOOSE_ERROR = "Choose Error!";
public static final String VILLA = "Villa";
public static final String HOUSE = "House";
public static final String ROOM = "Room";
... | true |
63dec524745bcc43fa1e2c75f71bcadd11f074e6 | Java | CoolDonnyTang/online-shopping | /src/main/java/com/cduestc/tyr/online_shopping/dao/IRecommendBrandDao.java | UTF-8 | 240 | 1.671875 | 2 | [] | no_license | package com.cduestc.tyr.online_shopping.dao;
import java.util.List;
import com.cduestc.tyr.online_shopping.beans.RecommendBrandBean;
public interface IRecommendBrandDao {
public List<RecommendBrandBean> findRecommendBrand();
}
| true |
7748ceb2c1786bfcc73858d502e4031c00f02628 | Java | googleapis/google-cloud-java | /java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiEvaluation.java | UTF-8 | 13,540 | 1.921875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | true |
85715605338950e9bb2342b036260c6b51469bd2 | Java | SilleCao/sc-exam | /src/main/java/cn/sille/scexam/controller/StatisticController.java | UTF-8 | 4,528 | 2.140625 | 2 | [] | no_license | package cn.sille.scexam.controller;
import cn.sille.scexam.model.AnswerPaperStat;
import cn.sille.scexam.model.ClassGroup;
import cn.sille.scexam.model.ExamPaper;
import cn.sille.scexam.model.Student;
import cn.sille.scexam.repository.AnswerPaperStatRepository;
import cn.sille.scexam.service.AnswerPaperStatService;
im... | true |
392038f852f91ad63eab53e1cb8e66e9fecfbfa5 | Java | shaunjohnson/ute | /src/main/java/net/lmxm/ute/gui/statusoutput/StatusOutputTabbedPane.java | UTF-8 | 2,710 | 2.53125 | 3 | [] | no_license | package net.lmxm.ute.gui.statusoutput;
import net.lmxm.ute.beans.jobs.Job;
import net.lmxm.ute.enums.ActionCommand;
import net.lmxm.ute.event.StatusChangeEventBus;
import net.lmxm.ute.executers.jobs.JobStatusEventBus;
import net.lmxm.ute.gui.UteActionListener;
import net.lmxm.ute.gui.workers.ExecuteJobWorker;
import ... | true |
e39ccc072ba1ab0e8592c0c2073c87b05047969c | Java | andybuki/BRIL | /BRIL2/src/uk/ac/kcl/cerch/bril/common/fedora/FedoraRelsExt.java | UTF-8 | 5,329 | 2.125 | 2 | [] | no_license | package uk.ac.kcl.cerch.bril.common.fedora;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.Vector;
import javax.xml.namespace.QName;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.stream.... | true |
373a7eb0b631adae997f57064262189d54dfdfd3 | Java | lkhalid0095/CollegeCisc | /CollegeCisc/src/phonebook/Phonebook.java | UTF-8 | 3,638 | 3.671875 | 4 | [] | no_license | package phonebook;
import java.io.*;
import java.util.Scanner;
/** class Phonebook gives us the ability to look up a phone number */
public class Phonebook {
/** main uses PhonebookEntry, which uses Name and PhoneNumber objects
* to read and lookup entries
*/
final static int SIZE=100;
public static void mai... | true |
f89739bbeee10cf037c28def39ce2cdffe6aed31 | Java | EricSeokgon/ReactiveProgrammingWithJava8 | /src/main/java/chapter1/sec02.java | UTF-8 | 435 | 3.640625 | 4 | [] | no_license | package chapter1;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
public class sec02 {
public static void main(String[] args) {
List<String> list = Arrays.asList("One", "Two", "Three", "Four", "Five");
Iterator<String> iterator = list.iterator();
while (iterator.... | true |
8de17c8216331ba28eebaf47a4d7bb304c446b1a | Java | kimsh1006/hansung-unicef | /kickboard/src/helper/designpattern/EventInterceptor.java | UTF-8 | 3,364 | 2.171875 | 2 | [] | no_license | package helper.designpattern;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.... | true |
9ac8602b6be4d31bcb5215bc2ee08a83f648dc2b | Java | vupham314/ManageStudent | /src/ManageStudent.java | UTF-8 | 6,197 | 3.453125 | 3 | [] | no_license | import java.util.*;
public class ManageStudent {
public static Scanner scn = new Scanner(System.in);
public ArrayList<Student> students = new ArrayList<>();
public void showAll(){
for (Student student : students) {
student.showInformation();
System.out.println();
}
... | true |
d7c8fdeeb5dad9f7fd2e2e3f2c2918340c5f7fe7 | Java | dwagelaar/PlatformKit | /platformkit-editor/src/be/ac/vub/platformkit/presentation/util/ConstraintSpaceCache.java | UTF-8 | 4,549 | 2.0625 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2005-2010 Dennis Wagelaar, Vrije Universiteit Brussel.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this ... | true |
8dc4cd5ce38fb28619f3efcb853ea966081373ec | Java | haolin29/Leetcode | /90. Subsets 2.java | UTF-8 | 932 | 3.46875 | 3 | [] | no_license | // Given a collection of integers that might contain duplicates, nums, return all
// possible subsets.
//
// idea
// backtracking approach
// how to handle duplicate
// have to get duplicate element by order
public class Solution {
public List<List<Integer>> subsetsWithDup(int[] nums) {
List<List<Intege... | true |
3cea4b2287c665b1ef2a61d1657acd4d03f790ca | Java | Explorer1092/vox | /agent/agent-core/src/main/java/com/voxlearning/utopia/agent/view/partner/input/UpsertPartnerParams.java | UTF-8 | 762 | 1.6875 | 2 | [] | no_license | package com.voxlearning.utopia.agent.view.partner.input;
import lombok.Builder;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* @description: 创建修改合作伙伴入参
* @author: kaibo.he
* @create: 2019-04-02 11:00
**/
@Data
@Builder
public class UpsertPartnerParams implements Serializable{
p... | true |
61b16e4577a7eaf8cb1377ec58f83824dce9cc1d | Java | P79N6A/icse_20_user_study | /methods/Method_1017026.java | UTF-8 | 54 | 2.203125 | 2 | [] | no_license | public String hash(){
return hashCode.toString();
}
| true |
763e1025afeebc070362cc2274ebc62cd64ec0b9 | Java | aegis1920/2020-legeno-around-here | /back-end/legeno-around-here/src/test/java/wooteco/team/ittabi/legenoaroundhere/infra/JwtTokenGeneratorTest.java | UTF-8 | 870 | 2.203125 | 2 | [] | no_license | package wooteco.team.ittabi.legenoaroundhere.infra;
import static org.assertj.core.api.Assertions.assertThat;
import static wooteco.team.ittabi.legenoaroundhere.utils.constants.UserConstants.TEST_USER_EMAIL;
import java.util.ArrayList;
import java.util.List;
import org.junit.jupiter.api.BeforeEach;
import org.junit.j... | true |
6b9f56c058acfecda9e888cf4b8bb5f96fec8f74 | Java | apache/directory-studio | /plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/actions/SimpleActionProxy.java | UTF-8 | 2,391 | 2.15625 | 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")... | true |
3ab2f60c82888e21c17f54068f943410d952ab4b | Java | thistehneisen/cifra | /src/apk/android/support/v4/media/session/c.java | UTF-8 | 7,114 | 1.65625 | 2 | [] | no_license | package android.support.v4.media.session;
import android.os.Build.VERSION;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder.DeathRecipient;
import android.os.Message;
import android.os.RemoteException;
import android.support.v4.media.MediaMetadataCompat;
import android.support.v4.media.se... | true |
1b0a57494f438004a690511d60b0d2df10f58269 | Java | francoisostyn/ff4j | /ff4j-core/src/main/java/org/ff4j/property/PropertyFactory.java | UTF-8 | 3,750 | 3.0625 | 3 | [
"Apache-2.0"
] | permissive | package org.ff4j.property;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.Arrays;
import java.util.List;
/**
* Create {@link AbstractProperty} from name type and value.
*
* @author <a href="mailto:cedrick.lunven@gmail.com">Cedrick LUNVEN</a>
*/
public cl... | true |
2742d4378b97e27c1318d457c7c3abe45c68eb5d | Java | bburkot/iwium | /src/main/java/pl/edu/agh/iwium/game/Card.java | UTF-8 | 1,728 | 3.796875 | 4 | [] | no_license | package pl.edu.agh.iwium.game;
/**
* Representation of a single playing card. A card consists of a suit value
* (e.g. hearts, spades), a rank value (e.g. ace, 7, king), and an image of the
* front of the card. A card object is immutable; once instantiated, the values
* cannot change.
*
* @author John K. Estell
... | true |
bd1a152f8784fa5ae433ddcc6c1a847919fdcf84 | Java | chenhaoqwe/HotelManageSystem | /src/servlet/NotificServlet.java | UTF-8 | 4,789 | 2.421875 | 2 | [] | no_license | package servlet;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javabean.Notific;
@WebServ... | true |
254654e1523d9c67fe3dde1210cfb03391b9cd58 | Java | JustDman/TheTaskManager | /src/DeadlineTask.java | UTF-8 | 785 | 2.984375 | 3 | [] | no_license | import java.util.GregorianCalendar;
public class DeadlineTask extends Task {
private GregorianCalendar deadline = new GregorianCalendar();
public DeadlineTask(String title, GregorianCalendar deadline) {
super(title);
this.deadline = deadline;
}
public DeadlineTask(String title, Grego... | true |
27b4315942621235d84946342a90d33562b45a20 | Java | GregTCLTK/BotListSpace-API | /src/main/java/space/botlist/api/bot/Owner.java | UTF-8 | 203 | 1.734375 | 2 | [
"MIT"
] | permissive | package space.botlist.api.bot;
import lombok.Getter;
/**
* @author Biosphere
* @date 17.06.18
*/
@Getter
public class Owner {
private String avatar, discriminator, id, username;
}
| true |
319dbfdf84d001a96c3b06402393891772f4d9d9 | Java | felipesulzbach/example-springboot-rest-api | /src/main/java/restapi/controller/SchoolClassController.java | UTF-8 | 4,649 | 2.28125 | 2 | [
"MIT"
] | permissive | package restapi.controller;
import java.util.List;
import javax.validation.constraints.NotNull;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validate... | true |
c28f1b07d2f521770908b732598456ccd150ac74 | Java | 12000/DataBase | /spring/2/code/OrdersWindow.java | WINDOWS-1251 | 4,821 | 2.484375 | 2 | [] | no_license | package app;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.Vector;
import javax.swing.JButton;
import javax.swing.JFrame;
im... | true |
dbcea6865b883edb88c2dc34badc9cd844b74f96 | Java | Subarna1997/JavaBasics | /Banking/src/com/hcl/model/CA.java | UTF-8 | 595 | 2.34375 | 2 | [] | no_license | package com.hcl.model;
import java.util.ArrayList;
import java.util.List;
public class CA implements Account{
@Override
public void debit(User user, double ammount) {
// TODO Auto-generated method stub
user.setBalance(user.getBalance()- ammount);
}
@Override
public void credit(User use... | true |
1a87bd66232fffa5647fe0e6bd4947cf10e3244f | Java | shifou/pms | /src/transIO/TransactionalFileInputStream.java | UTF-8 | 1,062 | 2.890625 | 3 | [] | no_license | package transIO;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.RandomAccessFile;
import java.io.Serializable;
public class TransactionalFileInputStream extends InputStream implements Serializable {
private static final long serialVersionUID = -212220946013637199L;
... | true |
06461e3d47e3c6eb519b34b659e6bfb643adc973 | Java | GeppettoTeam/IPA2_10019 | /projects/desktop/src/main/java/geppetto/module/bootsecurity/idao/IGpUserDao.java | UTF-8 | 177 | 1.695313 | 2 | [] | no_license | package geppetto.module.bootsecurity.idao;
import com.IPA2.domain.core.IPUser;
public interface IGpUserDao {
public IPUser insert(IPUser gpUser) throws Exception;
}
| true |
036cf1cd1c3e31283c303c969840bb000b161810 | Java | DatsOfNads/GitHub-Searcher | /app/src/main/java/com/company/tochka/view/MainActivity.java | UTF-8 | 9,950 | 1.78125 | 2 | [] | no_license | package com.company.tochka.view;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.SearchView;
import androidx.appcompat.widget.Toolbar;
import androidx.cardview.widget.CardView;
import androidx.core.view.ViewCompat;
import androidx.databinding.BindingAdapter;
import androidx.lifecycle.... | true |
81f1f981db60a67a78dd145fd8514965987198e3 | Java | overcrown/Java-servlet | /TesteWeb/src/java/br/com/estoque/gerenciamentoEstoque.java | UTF-8 | 4,726 | 2.765625 | 3 | [] | no_license |
package br.com.estoque;
import java.util.ArrayList;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import br.com.estoque.Estoque;
import database.conexao;
/**
*
* @author gabri
*/
public class gerenciamentoEstoque {
public void inserirEst... | true |
ce3539ef279d3f9e56952e5b455480720373fc6c | Java | noonstate/kbagagu | /src/shop/kbgagu/www/ajax/action/LoginAction.java | UTF-8 | 1,266 | 2.28125 | 2 | [] | no_license | package shop.kbgagu.www.ajax.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import shop.kbgagu.www.app.member.service.MemberService;
import shop.kbgagu.www.common.Action;
import shop.kbgagu.www.common.ActionForward;
import shop.kbgagu.www.common.BCrypt;
import sho... | true |
9cadfd1784200e8c178341d74d7acf7de675d843 | Java | guyAmit/Spl3 | /Server/src/main/java/bgu/spl181/net/impl/BBreactor/ReactorMain.java | UTF-8 | 977 | 1.859375 | 2 | [
"MIT"
] | permissive | package bgu.spl181.net.impl.BBreactor;
import bgu.spl181.net.api.MessageEncoderDecoder;
import bgu.spl181.net.impl.UserServiceTextBasedProtocol.Tasks.FileManager;
import bgu.spl181.net.srv.*;
import bgu.spl181.net.api.LineMessageEncoderDecoder;
import bgu.spl181.net.impl.UserServiceTextBasedProtocol.UserServiceTextBas... | true |
23f1e915d9c8841c0b317df65f7c977368b9d2ea | Java | Mirijam1/OOPP46 | /co-api/src/main/java/nl/tudelft/gogreen/coapi/models/transportation/Train.java | UTF-8 | 862 | 2.453125 | 2 | [
"MIT"
] | permissive | package nl.tudelft.gogreen.coapi.models.transportation;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.Getter;
import lombok.Setter;
import java.io.IOException;
@Getter
@Setter
public class Train {
private String country;
private String ... | true |
ca27fefc76fbe3681c38edd0df4986bd809d0b32 | Java | yawak/ScjpJava6 | /Chap_6_Strings_IO_Formatting_and_Parsing/2_FileNavigationAndIO/NewConsole.java | UTF-8 | 595 | 3.40625 | 3 | [] | no_license | import java.io.Console;
public class NewConsole{
public static final void main(String[] args){
Console c = System.console();
if(c==null){
System.out.println("NULL");
}
char[] pw;
pw = c.readPassword("%s", "pw: ");
for(char ch:pw){
c.format("%c ", ch);
}
c.format("\n");
MyUti... | true |
28d8d92f3fb87a95fdee9693b97cc28c7a97de92 | Java | annawrang/BestGym | /src/bestgymptapplication/ActionHandler.java | UTF-8 | 4,333 | 2.53125 | 3 | [] | no_license | package bestgymptapplication;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.logging.Level;
... | true |
7df8e5ed772aa8254098c4ee6dab2a7a8d57dcec | Java | ackhare/AlgoAndDsInJava | /src/main/java/org/chetanDs/LinkedList/DoublyLinkedList/DoublyListOps.java | UTF-8 | 2,421 | 3.703125 | 4 | [] | no_license | package org.chetanDs.LinkedList.DoublyLinkedList;
/**
* Created by chetan on 2/9/16.
*/
public class DoublyListOps {
// The top of the list.
private static Cell top = null;//As in linked list or tree root is intaliazed to null
private static Cell previous = null;//As in linked list or tree root is in... | true |
4ca53c94a33c589fabb6e655b9164dfcd5d74f5a | Java | Personal-CSC-308/srp-facade-lab | /src/srpfacadelab/PlayerStats.java | UTF-8 | 318 | 2.578125 | 3 | [] | no_license | package srpfacadelab;
public class PlayerStats {
static void calculateStats(RpgPlayer player) {
int armour = 0;
for (int i = 0; i < player.getInventory().getNumItems(); i++) {
armour += player.getInventory().getItem(i).getArmour();
}
player.setArmour(armour);
}
}
| true |
cc78b210e92cf207cee7da38ef9280afa7aada5e | Java | duplyakin/ControlPanel | /ControlPanelDynamic/src/main/java/com/sbt/test/repository/SpringDataUserRepository.java | UTF-8 | 457 | 1.914063 | 2 | [] | no_license | package com.sbt.test.repository;
import com.sbt.test.entities.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import javax.transaction.Transactional;
@Repository
public interface SpringDataUserRepository extends JpaRepository<User, Long> {
Us... | true |
bc3cde4e9eb401d6ec77b6444e1077b5e4bea62c | Java | kivelofff/voteation | /src/main/java/ru/javawebinar/topjava/util/exception/ErrorType.java | UTF-8 | 453 | 2.453125 | 2 | [] | no_license | package ru.javawebinar.topjava.util.exception;
public enum ErrorType {
APP_ERROR("Application error"),
VALIDATION_ERROR("Validation error"),
DATA_NOT_FOUND("Data not found"),
DATA_ERROR("Data error"),
CONFLICT("Conflict"),
TEMPORARILY_UNAVAILABLE("Temporarily unavailable");
private final S... | true |