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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4eccae95b3ee7e15d273a4c88ca5b28be5e28309 | Java | sp2020jarvan/bazaar-plugin | /src/main/java/hudson/plugins/bazaar/browsers/OpenGrok.java | UTF-8 | 4,723 | 1.96875 | 2 | [
"MIT"
] | permissive | /*
* The MIT License
*
* Copyright (C) 2010 Alexandre Garnier <zigarn@dev.java.net>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation ... | true |
188d5ee975c53c9d69e34dd78bdf6f1dada53600 | Java | harikrishna553/junit5 | /junit5-examples/src/test/java/com/sample/app/BaseBeforeEachMethods.java | UTF-8 | 275 | 2.15625 | 2 | [] | no_license | package com.sample.app;
import org.junit.jupiter.api.BeforeEach;
public class BaseBeforeEachMethods {
@BeforeEach
void setupSystem() {
System.out.println("Setting up the system");
}
@BeforeEach
void setupLogger() {
System.out.println("Setting up logger");
}
}
| true |
714c11f65be85034ec94a0c9bb5cac09155af604 | Java | jmarquescosta/sapataria-android | /app/src/main/java/br/com/dwd/sapatariaandroid/WebClient.java | UTF-8 | 2,048 | 2.1875 | 2 | [] | no_license | package br.com.dwd.sapatariaandroid;
import android.os.AsyncTask;
import android.widget.ListView;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.Str... | true |
dea8b5ca912f3e5bbeccec4a5a596a8710ea6110 | Java | lpcclown/asespring2017-timedPIPE | /src/formula/absyntree/AExp.java | UTF-8 | 493 | 2.53125 | 3 | [] | no_license | package formula.absyntree;
import formula.parser.Visitor;
public class AExp extends SingleValuedExp<Number> {
private final boolean parenthesized;
public ArithExp ae;
public AExp(int p, ArithExp ae){
this(p, ae, false);
}
public AExp(final int p, final ArithExp pAe, final boolean pIsParenthesized) {
pos = ... | true |
3d03880786b007cb41fa07c42a8d6c06d7391a44 | Java | wukenaihe/Algorithm | /Leetcode/src/UniquePathsII.java | UTF-8 | 871 | 3.109375 | 3 | [] | no_license | public class UniquePathsII {
public int uniquePathsWithObstacles(int[][] obstacleGrid) {
int xLength=obstacleGrid.length;
if(xLength==0){
return 0;
}
int yLength=obstacleGrid[0].length;
int[][] nums=new int[xLength][yLength];
for(int i=0;i<xLength;++i){
if(obstacleGrid[i][0]==0){
nums[i][0]=1;... | true |
7587e8841bfc2bb2ae440d8b6f099796fa296c88 | Java | kingsleynwafor54/Arrays | /test/Kata/ShufflingAnArrayTest.java | UTF-8 | 1,905 | 3.28125 | 3 | [] | no_license | package Kata;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.Arrays;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
public class ShufflingAnArrayTest {
... | true |
e41e915f199a445531471f1b7d60873ef5b0d8a8 | Java | gdouselwc/RedisDemo | /src/main/java/POJO/UserModel.java | UTF-8 | 391 | 2.109375 | 2 | [] | no_license | package POJO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.io.Serializable;
/**
* Created by liangwenchang on 2019/8/2.
*/
@Getter
@Setter
@ToString
public class UserModel implements Serializable{
private static final long serialVersionUID = -2823533000307445849L;
public... | true |
9c568fa3402ce85a1b0593ec279d587775a6f17d | Java | aryendr95/TagFrame | /app/src/main/java/com/tagframe/tagframe/UI/Fragments/Splash.java | UTF-8 | 10,879 | 1.90625 | 2 | [] | no_license | package com.tagframe.tagframe.UI.Fragments;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.provider.Settings;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import andr... | true |
6a416414fc4acbf481591e1785de993b9d9361f9 | Java | StormFeng/LaiPrivateLe | /lailem/src/main/java/com/lailem/app/ui/create/ImageArea.java | UTF-8 | 7,733 | 1.914063 | 2 | [] | no_license | package com.lailem.app.ui.create;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.HorizontalScrollView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.b... | true |
00c4740239d70681abfee3eb5a0c2ba3c8d299bc | Java | adamscherer/Annconia-API-Core | /src/main/java/com/annconia/api/json/DefaultModule.java | UTF-8 | 426 | 1.625 | 2 | [] | no_license | package com.annconia.api.json;
import org.codehaus.jackson.Version;
import org.codehaus.jackson.map.module.SimpleModule;
public class DefaultModule extends SimpleModule {
public DefaultModule() {
super("DefaultModule", new Version(1, 0, 0, null));
}
@Override
public void setupModule(SetupContext c... | true |
bd788ca60d862f38d384022bfdcf1e1eaaff38a4 | Java | depot-air/internet-banking | /ib-engine/src/main/java/com/dwidasa/engine/service/impl/view/TrainPurchaseViewServiceImpl.java | UTF-8 | 1,802 | 1.953125 | 2 | [] | no_license | package com.dwidasa.engine.service.impl.view;
import java.text.DecimalFormat;
import org.springframework.stereotype.Service;
import com.dwidasa.engine.model.Transaction;
import com.dwidasa.engine.model.view.BaseView;
import com.dwidasa.engine.model.view.TrainPurchaseView;
import com.dwidasa.engine.service.view.Train... | true |
7e21aed4914bbe26f78697a8d576fbc7eafa9fbb | Java | Capa-8/ProjectClicker | /clickcoin/src/main/java/clicker/Minado.java | UTF-8 | 662 | 2.15625 | 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 clicker;
import clicker.moneda.Moneda;
import clicker.observer.ObserverEnemigo;
/**
*
* @author Nacho
*/
public class Mina... | true |
449948a4917d1fe51708b1f628a3cd82501bbc8b | Java | peng051410/pattern-study | /strategy/src/cn/imcompany/pay/UnicomePay.java | UTF-8 | 282 | 2.140625 | 2 | [] | no_license | package cn.imcompany.pay;
/**
* Created by tomyli on 2018/6/20.
* Github: https://github.com/peng051410
*/
public class UnicomePay implements Payment {
@Override
public boolean pay(String param) {
System.out.println("UnicomePay");
return true;
}
}
| true |
f266dce2d87dca4f6b2246903c87c266b5bbfaae | Java | HbMeter/HbMeter | /app/src/main/java/hbmeter/hbmeter/ElaborazioneFragment.java | UTF-8 | 53,085 | 1.578125 | 2 | [] | no_license | package hbmeter.hbmeter;
import android.app.Fragment;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics... | true |
372f77f120b2949e7e4d9491e58342d8660df7ff | Java | TanoojSeelam/Railway-Reservation-System | /src/TrainFareEnquiryForm.java | UTF-8 | 11,876 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | // Import Packages
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
// Class for enquirying trains
public class TrainFareEnquiryForm extends javax.swing.JFrame {
public TrainF... | true |
7c7e1bfbc73f677d0e1df320073a3232c7aa9675 | Java | bellmit/BaseApp | /app/src/main/java/com/lr/biyou/ui/temporary/fragment/IndexFragment.java | UTF-8 | 25,767 | 1.515625 | 2 | [] | no_license | package com.lr.biyou.ui.temporary.fragment;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Handler;
import android.os.Message;
import androidx.recyclerview.widget.DefaultItemAnimator;
import androidx.re... | true |
3942a005bcb8f24b41f1a183a009a2c1fe0f9938 | Java | timofeysie/catechis | /src/org/catechis/juksong/BambooCastle.java | UTF-8 | 7,620 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | package org.catechis.juksong;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
... | true |
3e5ef9fc5905f3bcc37e87af07ed0c46ae98ed14 | Java | CosmicRide/pvz | /src/models/entities/zombie/GraveStone.java | UTF-8 | 706 | 2.828125 | 3 | [] | no_license | package models.entities.zombie;
import models.entities.weapon.SkullGenerator;
//玩家选择僵尸阵营时的经济来源,骷髅的生产者
public class GraveStone extends Zombie {
public GraveStone(int positionX, int positionY) {
super("GraveStone", positionX, positionY);
this.setHealth(1000);
this.setDirectionX(0);
t... | true |
217aa26a72f02270c968c6570df005781dca6eee | Java | MaggotIISS/NBFX-BookExamples | /ch10_crudapps/Version2-UsingJavaDB-andJPA/FamilyTreeApp/PersonViewer/src/com/asgteach/familytree/personviewer/PersonChildFactory.java | UTF-8 | 2,657 | 2.34375 | 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.asgteach.familytree.personviewer;
import com.asgteach.familytree.capabilities.RefreshCapability;
import com.asgteach.famil... | true |
96836dbcb5d2c3cab83ad5e7f654ba1581b0a6f0 | Java | grazianiborcai/Agenda_WS | /src/br/com/mind5/masterData/moonPhase/model/action/MoonaseVisiMergeMoonasarch.java | UTF-8 | 1,223 | 2 | 2 | [] | no_license | package br.com.mind5.masterData.moonPhase.model.action;
import java.util.List;
import br.com.mind5.masterData.moonPhase.info.MoonaseInfo;
import br.com.mind5.masterData.moonPhase.info.MoonaseMerger;
import br.com.mind5.masterData.moonPhaseSearch.info.MoonasarchInfo;
import br.com.mind5.masterData.moonPhaseSear... | true |
cddeee437a6e8fc487b6e14e115d6219b6ecef02 | Java | frnkydz/RebelHotel | /src/main/java/edu/unlv/cs/rebelhotel/form/FormStudentMajor.java | UTF-8 | 917 | 2.34375 | 2 | [] | no_license | package edu.unlv.cs.rebelhotel.form;
import java.util.HashSet;
import java.util.Set;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import edu.unlv... | true |
7fd16d8242386f2f8229f5d9c937adeca44a4dbe | Java | miocat2876/streetFlo | /src/main/java/com/streetflo/miocat/dto/table/TagDto.java | UTF-8 | 192 | 1.546875 | 2 | [] | no_license | package com.streetflo.miocat.dto.table;
import lombok.Data;
@Data
public class TagDto {
private int seq;
private int genreSeq;
private String tag;
private String tagDvcd;
}
| true |
865496385d89d6f00e1dfa6be4b59fd083f641f9 | Java | johnyNemo/treasure-hunters | /src/main/java/com/mprzypadlo/thserver/application/command/CommandBus.java | UTF-8 | 1,415 | 2.875 | 3 | [] | no_license | package com.mprzypadlo.thserver.application.command;
import com.mprzypadlo.thserver.application.command.exception.CommandHandlerNotFoundException;
import com.mprzypadlo.thserver.application.command.exception.HandlerRegistrationException;
import java.util.Map;
/**
*
* @author mprzypadlo
*/
public class CommandBus {... | true |
89b31cf047c1887b1fc097512d44ca46db728922 | Java | AnuragSingla911/Algorithms | /src/math/gcd_coprime.java | UTF-8 | 982 | 2.875 | 3 | [] | no_license | package math;
public class gcd_coprime {
public static void main(String[] args) {
gcd_coprime obj = new gcd_coprime();
System.out.println(obj.cpFact(64,6));
}
public int cpFact(int A, int B) {
if(gcd(A,B) == 1) {
return A;
}
int i =2;
while(i<= A && i <= ... | true |
0b7be5c9a430546a6b1fe994882b053a6afd8b03 | Java | easyworld/Gujian1SaveEditor | /src/com/dhu/edu/GujianEditor.java | GB18030 | 5,639 | 3.015625 | 3 | [] | no_license | package com.dhu.edu;
import java.io.EOFException;
import java.io.IOException;
import java.io.RandomAccessFile;
/**
* ƹŽ̷ 1.71浵 ² ݴ² ƺ
*
* @author Home
*
*/
public class GujianEditor {
/**
* rafǰָλõstr.lengthȽstrǷһ
*
* @param raf
* @param str
* @return
* @throws IOException
*/
public static boo... | true |
08c665f27754c8201d3ba98c9e743aed93afd39d | Java | brechttheys/webshopv2 | /spring-mvc/src/main/java/be/ucll/webshop/web/controller/ProductRESTController.java | UTF-8 | 2,398 | 2.328125 | 2 | [] | no_license | package be.ucll.webshop.web.controller;
import be.ucll.webshop.domain.model.Product;
import be.ucll.webshop.domain.service.ProductService;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import org.springframewor... | true |
87759cd608065ae36a82fdc2dbbf076f098680f5 | Java | fannyazapata/Prueba20201108 | /src/main/java/GradleCucumber00/task/Search.java | UTF-8 | 815 | 2.296875 | 2 | [] | no_license | package GradleCucumber00.task;
import GradleCucumber00.userinterface.SearchCoursePage;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Task;
import net.serenitybdd.screenplay.Tasks;
import net.serenitybdd.screenplay.actions.Click;
import net.serenitybdd.screenplay.actions.Enter;
public clas... | true |
9b8b3ec0b6ff18381e5a809ff991a9a50fec783b | Java | chichow5/ccblog | /src/main/java/com/example/ccblog/service/IArticleService.java | UTF-8 | 562 | 1.742188 | 2 | [] | no_license | package com.example.ccblog.service;
import com.example.ccblog.module.domian.Article;
import java.util.List;
public interface IArticleService {
List<Article> selectArticleWithPage(Integer page, Integer count);
Article selectArticleWithId(Integer id);
String selectTitleWithId(Integer id);
Integer count... | true |
ae6e00fe1f9375d2ff13cfb5374497ac4428b764 | Java | hp1100/leetcode | /338. Counting Bits.java | UTF-8 | 670 | 3.0625 | 3 | [] | no_license | public class Solution {
public int[] countBits(int num) {
if(num == 0) return new int[1];
int[] res = new int[num + 1];
for(int i = 1; i <= num; i++){
int temp = i;
int count = 0;
while(temp > 0){
count += (temp % 2 == 1 ? 1 : 0);
... | true |
b316ea38e31f9526def4d45122ee44ea813ff61b | Java | Shaolans/clarinet | /src/main/java/servlet/EventInscription.java | UTF-8 | 1,053 | 2.3125 | 2 | [] | no_license | package servlet;
import java.io.IOException;
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 org.json.JSONObject;
import database.utils.UserTo... | true |
c4abfc806ef248dd05e98a0f9af943ee57ca8fb2 | Java | vikramzmail/tejPlan | /dwdmlinksim/src/com/tejas/eda/spice/device/semi/mos/MOSUtils.java | UTF-8 | 5,327 | 2.15625 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.tejas.eda.spice.device.semi.mos;
import com.tejas.math.Bool;
import com.tejas.math.numbers.Real;
import javolution.lang.MathLib;
/**
*
* @author Kristopher T. Beck
*/
public class MOSUtils {
p... | true |
a054818efbf522d34bebcd61efce6e67b454b6d5 | Java | tushargarg2000/Library_management_System | /Library/src/main/java/com/example/student/Library/Repository/StudentRepository.java | UTF-8 | 798 | 2.171875 | 2 | [] | no_license | package com.example.student.Library.Repository;
import com.example.student.Library.model.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import javax.transaction.Transactional;
@Tran... | true |
5ef64f13ca5db52adce196108d3747f74c1d51ff | Java | ulmez/seleniumwebdriverwebshop | /src/test/java/seleniumjunitwebshop/homeflik/testcases/HomeFlikProductTest.java | UTF-8 | 3,342 | 2.40625 | 2 | [] | no_license | package seleniumjunitwebshop.homeflik.testcases;
import java.util.ArrayList;
import java.util.List;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
import org.openqa.selenium.WebDriver;
import org.openq... | true |
2e249f190e184d1fb40ea5076bc0885f5c99c738 | Java | mwegrzyn2311/Labirynths | /src/pl/agh/edu/dp/gui/ElementImage.java | UTF-8 | 735 | 2.9375 | 3 | [] | no_license | package pl.agh.edu.dp.gui;
import javax.imageio.ImageIO;
import java.awt.*;
import java.io.IOException;
public enum ElementImage {
PLAYER("player.png"),
WALL("wall.png"),
DOOR("door.png");
public Image image;
ElementImage(String imagePath) {
try {
this.image = ImageIO.read(ge... | true |
95eeb8fda0619a2326273dd0a236d53bea4dbdd1 | Java | myliwenbo/Springboot | /java/java-nio/src/main/java/vip/xjdai/nio/ChannelTest.java | UTF-8 | 5,145 | 3.1875 | 3 | [] | no_license | package vip.xjdai.nio;
import org.junit.Test;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
/**
... | true |
8902866561353864e46a5c35130285a97e2516db | Java | a601280239/webdayihd | /dayi-dmanager/src/main/java/com/manger/dao/UserRoleDao.java | UTF-8 | 728 | 1.851563 | 2 | [] | no_license | package com.manger.dao;
import com.hqf.pojo.entity.UserRoleInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import java.util.List;
/**
* @ClassName UserRoleDao
* @Description: TODO
* ... | true |
99b5417d69d298a52b2f9b557a80e42af6e9a780 | Java | gechenrun/scysuper | /src/com/jshx/http/command/GetLddbqkReviewCommand.java | UTF-8 | 2,323 | 2.09375 | 2 | [] | no_license | package com.jshx.http.command;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import net.sf.json.JSONObject;
import com.duanpf.http.comm.BaseResponse;
import com.duanpf.http.comm.Command;
import co... | true |
58d40672457ffe6f5d8d15f2bb4572c962b4b034 | Java | sumedh007/BankApplication | /MyProject/src/com/practice/corejava/ComparatorImplementation.java | UTF-8 | 423 | 2.640625 | 3 | [] | no_license | package com.practice.corejava;
import java.util.TreeSet;
public class ComparatorImplementation {
public static void main(String[] args) {
TreeSet<StringBuffer> h = new TreeSet<StringBuffer>(new ComparatorClass());
h.add(new StringBuffer("a"));
h.add(new StringBuffer("aa"));
h.add(new StringBuffer("f"));
... | true |
1419a09ec62443340f527140c92ecf43800cd038 | Java | google-code-export/gwt-uibinder-mock | /gwt-uibinder-mock/src/marco/stahl/gwt/tdd/util/MockitoGWTMockUtilities.java | UTF-8 | 1,122 | 2.171875 | 2 | [] | no_license | package marco.stahl.gwt.tdd.util;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.GWTBridge;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public class MockitoGWTMockUtilities {
public static void disarm() {
GWTBridge bridge = new GWTWidgetBridg... | true |
62e7643ce9381e7263e0e1b423c003eaf9f73782 | Java | ring2/micro-tutor-it | /tutor-it-services/tutor-it-book/src/main/java/com/lz/read/controller/LoginController.java | UTF-8 | 2,301 | 2.421875 | 2 | [] | no_license | package com.lz.read.controller;
import cn.hutool.core.util.StrUtil;
import com.lz.read.common.RestResult;
import com.lz.read.pojo.vo.CaptchaVo;
import com.lz.read.service.LoginService;
import com.lz.read.service.UserService;
import com.lz.read.utils.RedisUtil;
import com.wf.captcha.ArithmeticCaptcha;
import org.spring... | true |
08719c359e6e5f998f862340b1ebfdff02d44bd4 | Java | jateengit/TechTest | /src/main/java/com/atos/techtest/customer/dao/CustomerDao.java | UTF-8 | 1,037 | 2.609375 | 3 | [] | no_license | package com.atos.techtest.customer.dao;
import java.util.Collection;
import com.atos.techtest.customer.entity.Customer;
import com.atos.techtest.customer.exception.CustomerAlreadyExists;
import com.atos.techtest.customer.exception.CustomerNotFoundException;
/**
* The interface defines the methods that can be used t... | true |
44fc1e7e7f68c7ad536b4301ed11540b09c04d8e | Java | hank5000/SystemBroadcastReceiver | /src/com/example/systembroadcastreceiver/Receiver.java | UTF-8 | 662 | 2.140625 | 2 | [] | no_license | package com.example.systembroadcastreceiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public class Receiver extends BroadcastReceiver{
@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
if(intent.g... | true |
4ab1ee4f98f456393949131fe06b4bba25388401 | Java | FrogIf/SpringDemo | /CoffeeService/src/main/java/sch/frog/learn/spring/contextdemo/BeanDemoConfig.java | UTF-8 | 469 | 1.960938 | 2 | [
"MIT"
] | permissive | package sch.frog.learn.spring.contextdemo;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
@EnableAspectJAutoProxy
public class BeanDemoConfig {
@Bean
public TestBean testBeanX(){
return new TestBean("X");
}
@Bean
... | true |
1dfca2d2d01f8db2af5aad25ebed0e0159b58b7d | Java | IsuruSenarathne/eshopping | /src/main/java/com/bellacore/eshopping/EshoppingApplication.java | UTF-8 | 433 | 1.75 | 2 | [] | no_license | package com.bellacore.eshopping;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
@SpringBootApplication
@EntityScan("com.bellacore.eshopping.entity")
public class EshoppingApplicati... | true |
ff92d63436fca632a6adac20902f7894c7e4c97d | Java | iparvanov/Proj_361 | /BattleshipsGame/src/my_game/networking/server/GameServer.java | UTF-8 | 4,748 | 3.03125 | 3 | [] | no_license | package my_game.networking.server;
import java.awt.Color;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
import jav... | true |
764a4da444ea9c44ebb1b24a4390f0603fb5e5f6 | Java | dopez/ubidom | /java/com/ubi/erp/plan/dao/PurcConferOrderSDao.java | UTF-8 | 460 | 1.570313 | 2 | [] | no_license | package com.ubi.erp.plan.dao;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.ubi.erp.plan.domain.PurcConferOrderS;
@Repository
public interface PurcConferOrderSDao {
void topMainSel(Map<String, Object> map);
void gridMainSel(Map<String, Object> map);
void ... | true |
64cb5daf9f331deed48f74ba78d958b0dc680dd5 | Java | noramehesz/gyak | /src/Mylittlediary/diary/Notes.java | UTF-8 | 554 | 2.6875 | 3 | [] | no_license | package Mylittlediary.diary;
import java.io.Serializable;
public class Notes implements Serializable {
private String eventName;
private String date;
public Notes(){
eventName ="";
date = "";
}
public Notes(String eventName, String date){
this.eventName=eventName;
this.date=date;
}
public St... | true |
2d65bc36d572c6913988e6b3ea30c33bf83dc337 | Java | PRIYANKA-KS/android-app | /Webcoops/app/src/main/java/com/example/priyanka/SecondActivity.java | UTF-8 | 806 | 1.914063 | 2 | [] | no_license | package com.example.priyanka;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;
public class SecondActivity extends AppCompatActivity {
ListView listView;
@Override
protected void... | true |
4adace6a7e6f2cf6b2a610b5fe7b32110a68a280 | Java | evasnowind/rpcfx | /rpcfx-provider/src/main/java/com/prayerlaputa/rpcfx/provider/service/UserServiceImpl.java | UTF-8 | 314 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | package com.prayerlaputa.rpcfx.provider.service;
import com.prayerlaputa.rpcfx.api.User;
import com.prayerlaputa.rpcfx.api.UserService;
public class UserServiceImpl implements UserService {
@Override
public User findById(int id) {
return new User(id, "KK" + System.currentTimeMillis());
}
}
| true |
705e07e541664d7b498da38056168d467734050c | Java | diudiu1210/lemon_java_automation | /src/test/java/homework/StringTest.java | UTF-8 | 1,204 | 3.90625 | 4 | [] | no_license | package homework;
/**
* @author Automation engineer
* @Description The God of automation
* @Date 2021/4/20 21:39
*/
public class StringTest {
/* 1.将如下字符串进行拆分
TOM:20|Jack:22|Rose:24
打印成如下形式:
姓名:tom,年龄:20岁
姓名:Jack,年龄:22岁
姓名:Rose,年龄:24岁
2.编写一个类,提供一个函数实现字符串反转功能,比如传入字符串“abcdefg”返回字符串“gfedcba”。
... | true |
936f829d279277a5abd02b571192dbc35642ce7a | Java | LeagueOfDevelopers/EduHub | /Android/EduHub/app/src/main/java/ru/lod_misis/user/eduhub/Interfaces/View/IChangeUsersDataView.java | UTF-8 | 177 | 1.570313 | 2 | [] | no_license | package ru.lod_misis.user.eduhub.Interfaces.View;
/**
* Created by User on 16.02.2018.
*/
public interface IChangeUsersDataView extends IBaseView{
void getResponse();
}
| true |
76cc4894119fff1889120411e09ca7b352efc9bc | Java | jonataspassos/mvc | /src/main/java/controller/MessagesView.java | UTF-8 | 891 | 2.1875 | 2 | [] | no_license | package controller;
import javax.faces.context.FacesContext;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
@ManagedBean
public class MessagesView {
public void info(String message) {
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.... | true |
2e9ba34557ece7ada3bc2c20e03fb4d0e7d97285 | Java | yavuzalp/TCSS360B | /yavuzalp/src/minesweeper/test.java | UTF-8 | 509 | 2.171875 | 2 | [] | no_license | package minesweeper;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
public class test {
public static void main(String[] args) throws IOException {
if (args.length != 0) {
// Ready to write to a file
} else {
// Ready to write to a file
}
minesweeper mine = new mines... | true |
f6093c18723efb9f487caecc0256888fa12e0a9a | Java | mapalacios2/Control_Aduana | /Control_Aduanero/Control_Aduanero-web/src/main/java/ec/edu/espe/distribuidas/control_aduanero/UsuarioBean.java | UTF-8 | 6,856 | 2.046875 | 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 ec.edu.espe.distribuidas.control_aduanero;
import ec.edu.espe.distribuidas.modelo.Importador;
import ec.edu.espe.distribuidas.... | true |
f1d4ff616a2d282513ae7e030d9ee7fad2a2e771 | Java | radium96/Android_study | /MyApplication/app/src/main/java/com/naca/myapplication/BossListAdapter.java | UTF-8 | 5,435 | 2.34375 | 2 | [] | no_license | package com.naca.myapplication;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.TextView... | true |
3a2f18fb65aeafa87e631cd82207ee64d90be9cd | Java | Akshay6890/Doctor-Appointment | /src/com/YourDoctor/DoctorLogin.java | UTF-8 | 2,063 | 2.359375 | 2 | [] | no_license | package com.YourDoctor;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.*;
import java.util.*;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServl... | true |
ad00b5c5a78c0b7cbd435e85ee4b8df900b6ff7a | Java | devsops/Poc_jenkins | /apps/ipsadminapp/src/main/java/com/bosch/pai/ipsadminapp/adapters/StoreAdapter.java | UTF-8 | 4,946 | 2.109375 | 2 | [] | no_license | package com.bosch.pai.ipsadminapp.adapters;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.TextView;
import com.bosch.pai.ips... | true |
e5de69bbc1d6a5e4d74946f16e3f46e7146d839a | Java | DeliciousGarfield/Game2048 | /src/test/java/org/tianxiduo/game2048/GameControllerTest.java | UTF-8 | 1,745 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | package org.tianxiduo.game2048;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class GameControllerTest {
private GameContentConfig gameContentConfig;
private GameController gameController;
@Before
public void setUp() {
gameContentConfig ... | true |
2ee7ba9e6d741b6710fa740164c001778d5e5472 | Java | suhane/HackerEarthSolution | /src/main/java/Design/atm/ATMMachine.java | UTF-8 | 1,549 | 2.96875 | 3 | [] | no_license | package Design.atm;
public class ATMMachine implements ATMState{
ATMState hasCard;
ATMState noCard;
ATMState hasCorrectPin;
ATMState outOfCash;
ATMState atmState;
boolean correctPinEntered=false;
int cashInMachine=200000;
public ATMMachine() {
this.hasCard = new HasCard(this)... | true |
f4f87d9a0bc80132f3ff57bb96d9b0182ca1a29f | Java | joakim1999/BusAssistant | /app/src/main/java/com/joapet99/busassistant/framework/Bus.java | UTF-8 | 904 | 2.65625 | 3 | [] | no_license | package com.joapet99.busassistant.framework;
import android.os.SystemClock;
import java.util.ArrayList;
import java.util.Calendar;
/**
* Created by Joakim on 22.08.2016.
*/
public class Bus {
String busNumber;
BusTable timeTable;
int worstCase = -1;
int averageCase = -1;
int bestCase = -1;
... | true |
b330262d0936ef2def3758da7906a65a821bc010 | Java | areyouready/vaadin7betaTest | /CDITest/MainApplication/src/main/java/de/sebastian/CDITest/main/Window/MainWindow.java | UTF-8 | 1,298 | 2.4375 | 2 | [] | no_license | package de.sebastian.CDITest.main.Window;
import java.io.Serializable;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
import com.vaadin.cdi.VaadinView;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.Label;
import com... | true |
cea1b65a67f336c8b62272200946502c1bd45cda | Java | hervekambou/mcommerce | /microservice-commandes/src/main/java/com/mcommandes/model/Commande.java | UTF-8 | 534 | 1.882813 | 2 | [] | no_license | package com.mcommandes.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.util.Date;
@NoArgsConstructor
@AllArgsConstructor
@Data
@ToSt... | true |
c47402af497aa6e4ea1f1e71374710cc3316486a | Java | pradipyadav/My-All-Java-Project | /src/fileHandlingDemo/SpreadSheet.java | UTF-8 | 3,457 | 3.109375 | 3 | [] | no_license | package fileHandlingDemo;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.sql.*;
public class SpreadSheet implements ActionListener {
FileOutputStream f;
... | true |
8337c73777e321fea7847668ad5e090c01a1b9ca | Java | ChenBuJiu/Blog | /Alo/src/com/alo/offer/Coins.java | GB18030 | 1,491 | 3.453125 | 3 | [] | no_license | package com.alo.offer;
/**
* ʱƣ3 ռƣ32768K ȶָ7180
֪ʶ㣺 ݹ ̬滮
㷨֪ʶƵ
Ŀ
ӲңֵΪ25֡10֡5ֺ1֣дnмֱʾ
һint n뷵nмֱʾ֤nСڵ100000Ϊ˷ֹ뽫Mod 1000000007
6
أ2
* @author Administrator
*
*/
public class Coins {
//һά
public int countWays(int n) {
// write code here
int []coins= {1,5,10,25};
int dp[]=ne... | true |
d75ebf38678773cb9a0a194b2d197a74217a944b | Java | MuchLonger/springboot | /springboot-data/src/main/java/com/cq/springbootdata/controller/QueryController.java | UTF-8 | 794 | 2.046875 | 2 | [] | no_license | package com.cq.springbootdata.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
i... | true |
fc3e38b69e2c20b73d26086f8b918e970d9aca3c | Java | louisdiatta/miscellaneous-codes | /src/com/luwee/Palindrome1.java | UTF-8 | 312 | 3.1875 | 3 | [] | no_license | public class Palindrome {
public static boolean isPalindrome(String c) {
return c.toLowerCase().equals(new StringBuilder(c.toLowerCase()).reverse().toString());
}
public static void main(String[] args) {
System.out.println(Palindrome.isPalindrome("Deleveled"));
}
}
| true |
a16bf6943737221dcf69874217e09eb771e4e508 | Java | Dong351/softwork | /softwork-api-common/src/main/java/softwork/token/Token.java | UTF-8 | 471 | 2.328125 | 2 | [] | no_license | package softwork.token;
import java.lang.annotation.*;
/**
* 可以注解controller方法参数中
* <p>
* Supported types are:
* <ul>
* <li>{@code {@link } 获得token对应的user实例</li>
* <li>{@code {@link Integer }}获得token对应User的uid</li>
* </ul>
*/
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
@Documented
p... | true |
b27f688ca560e32d036f8a8a3167bf2e0e9b00e0 | Java | ahsan7766/Owl | /app/src/main/java/com/ourwayoflife/owl/activities/StackActivity.java | UTF-8 | 65,464 | 1.625 | 2 | [] | no_license | package com.ourwayoflife.owl.activities;
import android.app.SearchManager;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android... | true |
472844c4bb27fcaaebb43ab4e1a67f4cdf9d07cb | Java | QaRabbi3/SeleniumRepo | /src/BroswerCommands.java | UTF-8 | 2,219 | 3.234375 | 3 | [] | no_license | import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class BroswerCommands {
/*Browser Commands
- Get command
- getTittle Command
- getCurrent Url command
- get page source command
- close Command
- quit command */
public static void main(String[] args) {
... | true |
a2bf87f8e3b7fecbd734c5217ab7b6a403b03270 | Java | SylviaLe/MySocialProfile | /src/dependencies/SNode.java | UTF-8 | 1,105 | 3.34375 | 3 | [] | no_license | //Linh Nguyen, Sylvia Le, Sophie Le
//File: dependencies.SNode.java
//COM212-Prof.Tarimo
//Due date: 5/13/20
package dependencies;
/**
* A generic node class for a SinglyLinkedList class
* This stores an arbitrary element object type
*/
public class SNode<E> {
private E element; //Reference to the element stored... | true |
981ea4229a108b168426cd14bf46d665f49b68e6 | Java | AlucardNosferatu/LiveHelper | /app/src/main/java/com/example/livehelper/MotionActivity.java | UTF-8 | 5,044 | 2.4375 | 2 | [] | no_license | package com.example.livehelper;
import android.content.Context;
import android.graphics.Color;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.hardware.SensorEventListen... | true |
f8ed3fa77ca3f27059bb123124259557cf322dd1 | Java | wzbin/BaiduTieba | /TestHtmlUnit2/src/test1.java | UTF-8 | 2,838 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | import java.io.IOException;
import java.net.MalformedURLException;
import com.gargoylesoftware.htmlunit.BrowserVersion;
import com.gargoylesoftware.htmlunit.CookieManager;
import com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException;
import com.gargoylesoftware.htmlunit.WebClient;
import com.gargoylesoftware.ht... | true |
1e060ded56e8d0e22cba37bdfd841ef27956abda | Java | RazuvaevDD/I2PSecChat | /Android/SecChat/app/src/main/java/net/i2p/router/startup/CreateRouterInfoJob.java | UTF-8 | 6,159 | 2.171875 | 2 | [
"MIT"
] | permissive | package net.i2p.router.startup;
/*
* free (adj.): unencumbered; not under the control of others
* Written by jrandom in 2003 and released into the public domain
* with no warranty of any kind, either expressed or implied.
* It probably won't make your computer catch on fire, or eat
* your children, but it might. ... | true |
ad3043924ff873e1bb954edf1b758d9cf7b308b1 | Java | yang891025/TbsMis | /app/src/main/java/com/tbs/tbsmis/city/CityAdapter.java | UTF-8 | 1,346 | 2.390625 | 2 | [] | no_license | package com.tbs.tbsmis.city;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.tbs.tbsmis.R;
import java.util.List;
public class CityAdapter extends BaseAdapter {... | true |
8cafb0793e6b320b2f1cdad8dbca89ce5494114a | Java | Carlos1515Santana/ccp3an_mca_app_previsoes | /src/main/java/br/usjt/tempo/Controller/ControllerTempo.java | UTF-8 | 1,160 | 1.976563 | 2 | [] | no_license | package br.usjt.tempo.Controller;
import br.usjt.tempo.Model.Bean.Previsao;
import br.usjt.tempo.Repository.PrevisaoRepository2;
import br.usjt.tempo.Service.PrevisaoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web... | true |
18582591b29da513861f49f3212a6db0a699cb20 | Java | alphagov/pay-java-commons | /model/src/test/java/uk/gov/service/payments/commons/model/SupportedLanguageJsonDeserializerTest.java | UTF-8 | 2,831 | 2.328125 | 2 | [
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | package uk.gov.service.payments.commons.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.hamcrest.CoreMatchers;
import... | true |
4d346824b991e9f24b3bfed8940f10815dbd3eb3 | Java | gaofeng4623/spring | /propagation/src/test/java/testTrans/InsertBean.java | UTF-8 | 112 | 2.046875 | 2 | [] | no_license | package testTrans;
public interface InsertBean {
public void insert(String name, int age) throws Exception;
}
| true |
0cfa09b5f6fa81bfae12484e9568d34668af17f2 | Java | dgsilva/AngularJsonServiceJava | /projetoBackAngular/src/entity/Aluno.java | UTF-8 | 1,596 | 2.921875 | 3 | [] | no_license | package entity;
public class Aluno {
private Integer idAluno;
private String nome;
private String disciplina;
private Double nota1;
private Double nota2;
private Double media;
private String situacao;
public Aluno() {
// TODO Auto-generated constructor stub
}
public Aluno(Integer idAluno, String nome, ... | true |
57d795d01d75b029c57e7d864ea222d41293fbb4 | Java | jhouserizer/terracotta-samples | /08-spring-boot-ehcache/src/main/java/com/example/springbootehcache/MainView.java | UTF-8 | 3,593 | 2.078125 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2023 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
* Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software... | true |
c0fe2eed8f1ff7f97f2a15d88c79fd5a31331c7b | Java | RostuslavPerebeynos/JavaBegginer | /JavaBegginer/src/Lesson_31/Array.java | UTF-8 | 629 | 3.796875 | 4 | [] | no_license | package Lesson_31;
public class Array {
public static void main(String[] args) {
int number = 7;
int[] number2 = new int[3];
/*виділить об'єм памяті, достатнього розміру,
* щоб записати три значення типу int*/
number2[0] = 7; number2[1] = 9; number2[2] = 15;
System.out.println(number2[... | true |
5b3ca3be2134ef6d0be89dfa1389492a5f225cb4 | Java | Java9789/MongoDB | /src/tvk/models/AccessColPrueba.java | UTF-8 | 3,338 | 2.890625 | 3 | [] | no_license | package tvk.models;
import com.mongodb.*;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JOptionPane;
public class AccessColPrueba {
private MongoClient mongo;
private DB database;
private DBCollection collection;
private DBCurso... | true |
6d6ae17391e6596cc9e7190c8630260d7d1752e3 | Java | joaovictorc92/market | /src/main/java/com/market/model/TipoEmpresa.java | UTF-8 | 551 | 2.171875 | 2 | [] | no_license | package com.market.model;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "tipoempresa")
public class TipoEmpresa {
@Id
private Integer idtipoempresa;
private String descricao;
public Integer getIdtipoempresa() {
return idtipoempresa;
}
pub... | true |
29347c53273bc5be4448981dfb50312403a27e69 | Java | mmonti/spring-data-couchbase | /src/test/java/org/springframework/data/couchbase/transactions/util/TransactionTestUtil.java | UTF-8 | 1,314 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2022-2023 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | true |
772903fb7814b3f6a6daf1f756b904fb74682452 | Java | 1101480750/video-workbench-report | /src/main/java/com/zxcl/report/BaseApplication.java | UTF-8 | 699 | 1.84375 | 2 | [] | no_license | package com.zxcl.report;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;
imp... | true |
04cc58d44939f03335686a00a0f4fae7733db9ad | Java | THM1707/Weather_Forecast_04 | /app/src/main/java/com/minhth/weatherforecast/data/model/ForecastResponseModel.java | UTF-8 | 2,491 | 2.578125 | 3 | [] | no_license | package com.minhth.weatherforecast.data.model;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.List;
public class ForecastResponseModel {
@SerializedName("latitude")
private double mLatitude;
@SerializedName("longitude")
private double mLongitude;
@... | true |
c801033a4f54fc6386682cbcfdb83507f03ecacb | Java | apoorvnag/javaprograms | /src/assignments/sparse_matrix.java | UTF-8 | 4,903 | 3.734375 | 4 | [] | no_license | package assignments;
//Java code to perform add,
//multiply and transpose on sparse matrices
public class sparse_matrix {
// Maximum number of elements in matrix
int MAX = 100;
// Array representation
// of sparse matrix
//[][0] represents row
//[][1] represents col
//[][2] represents value
int da... | true |
338dfc18b13f64986c98dd946bb53510ca9efffc | Java | alexandra7vaj/GestionGastos | /GestionGastos/src/creation/ExpenseCreation.java | UTF-8 | 569 | 2.96875 | 3 | [] | no_license | package creation;
import java.util.Scanner;
import model.Expense;
public class ExpenseCreation {
public static Expense expenseCreation (Expense newExpense) {
Scanner reader = new Scanner (System.in);
System.out.println("Name:");
newExpense.setName(reader.nextLine());
System.out.pri... | true |
fdfb9569c411db638ef0dab8927d37ebf5338081 | Java | urandu/openmrs-module-clinicalsummary | /api/src/main/java/org/openmrs/module/clinicalsummary/db/CoreDAO.java | UTF-8 | 1,780 | 1.867188 | 2 | [] | no_license | /**
* The contents of this file are subject to the OpenMRS Public License
* Version 1.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://license.openmrs.org
*
* Software distributed under the License is distributed on an "AS IS"
... | true |
5207409ada3c1ae0172179c71f381300cd5726f0 | Java | Aswin-MN/personal | /registration/registration-ui/src/main/java/io/mosip/registration/controller/reg/DocumentScanController.java | UTF-8 | 24,988 | 1.546875 | 2 | [] | no_license | package io.mosip.registration.controller.reg;
import static io.mosip.registration.constants.RegistrationConstants.APPLICATION_ID;
import static io.mosip.registration.constants.RegistrationConstants.APPLICATION_NAME;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.ArrayList;
import ja... | true |
f7e08124b1058da0e6690445613e1d7fb16eb1af | Java | KilianStein/optisoins-batch | /src/main/java/ki/optisoins/export/etat/map/EtatNordJasperMapper.java | UTF-8 | 3,839 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | package ki.optisoins.export.etat.map;
import ki.optisoins.export.etat.EtatJasper;
import ki.optisoins.pojo.Acte;
import ki.optisoins.pojo.Etat;
import ki.optisoins.pojo.FeuilleSoins;
import ki.optisoins.pojo.Orthophoniste;
import ki.optisoins.utils.NumberToWordsUtils;
import java.util.ArrayList;
import java.util.List... | true |
b8ab629b30734c5cdec1ec5c199f173a2b0d80bf | Java | colinbut/java-modules-illustration | /com.mycompany.starwars/src/main/java/com/mycompany/starwars/ships/DeathStar.java | UTF-8 | 119 | 1.648438 | 2 | [] | no_license | package com.mycompany.starwars.ships;
public class DeathStar extends Starship {
@Override
void fire() {
}
}
| true |
6ed83d6a08cc66f7b5acacbbde74111256acdb94 | Java | zhouxin1008/LeetcodeEveryDay | /Java/No52NQueens2.java | UTF-8 | 1,078 | 2.96875 | 3 | [] | no_license | /*
* @lc app=leetcode id=52 lang=java
*
* [52] N-Queens II
*/
class No52NQueens2 {
private int res;
public int totalNQueens(int n) {
res = 0;
generateSolution(new int[0], n);
return res;
}
private void generateSolution(int[] nums, int n) {
int len = nums.length;
... | true |
99abcda0ce1dead51a852c66b0dd22127d64aab1 | Java | qianfangzheng/iot-dc-server | /dc3-common/dc3-core/src/main/java/com/dc3/common/config/RedisTemplateConfig.java | UTF-8 | 2,534 | 1.945313 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018-2020 Pnoker. All Rights Reserved.
*
* 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 |
6aee3ddf9c9413181ef1daf6fbbdd06bd07273bb | Java | Azami7/Ollivanders2 | /Ollivanders/src/net/pottercraft/ollivanders2/spell/MANTEIA_KENTAVROS.java | UTF-8 | 2,472 | 2.921875 | 3 | [] | no_license | package net.pottercraft.ollivanders2.spell;
import net.pottercraft.ollivanders2.divination.O2DivinationType;
import net.pottercraft.ollivanders2.O2MagicBranch;
import net.pottercraft.ollivanders2.Ollivanders2;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
import java.util.ArrayList;
/**
... | true |
ee8f7c4d7181051c8917df3a00e699a8e925aaf2 | Java | 0dayso/dataCompass | /compass-interface/src/main/java/com/shifeng/controller/msg/MsgController.java | UTF-8 | 3,280 | 2.40625 | 2 | [] | no_license | package com.shifeng.controller.msg;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.Reques... | true |
dc7c4343370fcd4de66a41918bacaf622b169ace | Java | jrcosta/GAER_QSE_Final_V2 | /src/GaerTelas/ConsultaAnimal.java | UTF-8 | 7,346 | 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 GaerTelas;
import java.awt.Toolkit;
/**
*
* @author jricm
*/
public class ConsultaAnimal extends javax.swing.JFrame {
... | true |
e109cb12938dbd7970df7b970437555ef8543c9b | Java | GalinaProkator/February | /MazeRecursion.java | UTF-8 | 930 | 3.5 | 4 | [] | no_license |
public class MazeRecursion {
public static void main(String[] args) {
boolean[][] matrix = { { true, false, false, false, false },
{ true, true, false, false, false },
{ false, true, true, false, false },
{ false, false, true, false, false },
{ false, false, true, true, true }};
... | true |
19babf51c7db5df7cc61c319f704ff6a9820ff23 | Java | LeonardsonCC/Faculdade-PSC | /MediaAlunosComTela/src/controladores/TelaMediaController.java | UTF-8 | 1,023 | 2.734375 | 3 | [] | no_license | package controladores;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
public class TelaMediaController {
@FXML
private TextField txtNomeAluno;
@FXML
private TextField txtNota1;
@FXML
private TextField txtNota2;
@FXML
private TextField txtNota3;
@FXML
... | true |
6771c29239d7c4d0674c95c97ca8fa99f5f36085 | Java | dariuszkaszuba/java-p | /src/jp7/Jp7.java | UTF-8 | 445 | 3.03125 | 3 | [] | no_license | package jp7;
public class Jp7 {
public static void main(String[] args) {
String name="Walenty";
name.toUpperCase();
System.out.println("Kim jestes");
System.out.println(name.toUpperCase().charAt(name.length()-1)=='A' && !name.toUpperCase().equals("KUBA") ? "kobieta" : "mezcyzna" )... | true |
cab4c9e572fdd91f74863c5e4f9a0cb3bcd40c3b | Java | jamin0107/JavaBase | /src/com/jamin/java/acm/Main1000.java | UTF-8 | 354 | 3.125 | 3 | [] | no_license | package com.jamin.java.acm;
import java.util.Scanner;
/**
* Calculate A + B.
* @author Jamin
*
*/
public class Main1000 {
public static void main(String arg[]) {
Scanner scin = new Scanner(System.in);
while (scin.hasNextInt()) {
int a = scin.nextInt();
int b = scin.nextInt();
System... | true |