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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
7941f78eb0c58fabe9ced15fe0695c33acfa9aaf | Java | Emiliemorais/Tecnicas-de-Programacao---Grupo-1 | /APB/src/view/GenerateReceipt.java | UTF-8 | 11,820 | 2.625 | 3 | [] | no_license | package view;
import java.awt.EventQueue;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.DecimalFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
import javax.swing.JFrame;
i... | true |
95a66a8f7de2df2be5a6b401899b8aeb6e8c2a58 | Java | shiinx/1D_Kifu | /chat/src/main/java/org/chat21/android/core/users/models/IChatUser.java | UTF-8 | 654 | 2.140625 | 2 | [] | no_license | package org.chat21.android.core.users.models;
import java.io.Serializable;
/**
* Created by frontiere21 on 27/09/16.
*/
public interface IChatUser extends Serializable {
String getId();
void setId(String id);
String getFullName();
void setFullName(String fullName);
String getEmail();
vo... | true |
3684b47fe2c139a2d4c71299761d43fe8d4bc351 | Java | rhmythili/CaseStudy | /src/main/java/com/example/poc/entity/LoanDetailsDE.java | UTF-8 | 1,889 | 2.28125 | 2 | [] | no_license | package com.example.poc.entity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
@Entity
@Table(nam... | true |
ca73dcd0e811ee666e5fcab8b272fd220d31e3d3 | Java | RiccardoCantoni/Propp | /src/TextGeneration/ExistantType.java | UTF-8 | 130 | 1.703125 | 2 | [] | no_license | package TextGeneration;
public enum ExistantType {
HERO,
VILLAIN,
DONOR,
DISPATCHER,
FRIEND,
FALSEHERO,
ITEM,
LOCATION
}
| true |
2e73a9e10aad8496697924085368d5690ce01ad8 | Java | knoppixmeister/pgjdbc-ng | /src/main/java/com/impossibl/postgres/system/procs/ProcProvider.java | UTF-8 | 448 | 1.898438 | 2 | [] | no_license | package com.impossibl.postgres.system.procs;
import com.impossibl.postgres.types.Type.BinaryIO;
import com.impossibl.postgres.types.Type.TextIO;
public interface ProcProvider {
public BinaryIO.ReceiveHandler findBinaryReceiveHandler(String name);
public BinaryIO.SendHandler findBinarySendHandler(String name);
pu... | true |
3315e1987a6bde3385e443e219e4fb05e8e1f8bb | Java | viruspt/virus | /core/src/main/java/com/virus/pt/core/controller/AuthController.java | UTF-8 | 13,076 | 1.953125 | 2 | [
"MIT"
] | permissive | package com.virus.pt.core.controller;
import com.virus.pt.common.enums.FileTypeEnum;
import com.virus.pt.common.enums.ResultEnum;
import com.virus.pt.common.exception.TipException;
import com.virus.pt.common.util.*;
import com.virus.pt.core.service.UserService;
import com.virus.pt.core.service.impl.CaptchaStorageServi... | true |
414b0dedea9fff16232f50b00d0796b245f79bb1 | Java | brew42/tbtest | /src/main/java/com/anaeko/ts/service/impl/TableServiceImpl.java | UTF-8 | 657 | 1.804688 | 2 | [] | no_license | package com.anaeko.ts.service.impl;
import java.util.List;
import org.influxdb.dto.QueryResult.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.anaeko.ts.dao.ITableDAO;
import com.anaeko.ts.service.ITableService;
/**
* @author tombrew... | true |
bdce1354e58683703cd0ad2285e6fc2e8946c078 | Java | terazzo/CustomLogTool | /src/main/java/sample/custom_log/core/FieldSplitter.java | UTF-8 | 4,703 | 3.265625 | 3 | [] | no_license | package sample.custom_log.core;
/**
* LogFormat書式およびCustomLog出力結果をパースするクラス。
* スレッドセーフではない!
*/
public class FieldSplitter {
private static final int DEFAULT_BUFFER_SIZE = 1024;
/** エスケープ文字(「\\」) */
private static final char ESCAPE_CHAR = '\\';
/** セパレータ(半角空白) */
private static final ch... | true |
fd0adebb694375934d336eaf89b63039cd24a4e7 | Java | SandraNAguayoN/ApliacionCRUDSQLite | /app/src/main/java/mx/edu/utng/appinformativa/NuevaNoticiaActivity.java | UTF-8 | 3,334 | 2.203125 | 2 | [] | no_license | package mx.edu.utng.appinformativa;
import android.content.ContentValues;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RatingBar;
import android.widge... | true |
9e80fdeac75cba8d098ce1035ce5c8b152a33479 | Java | KunjalBhatt/fakeNewsDetection | /src/main/java/com/parul/fakeNews/logoutController/LogoutUser.java | UTF-8 | 659 | 2.140625 | 2 | [] | no_license | //this one for logging out (ending session comes here)
package com.parul.fakeNews.logoutController;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import ... | true |
be9cb55a975f2c6f5f938348433714e735cca950 | Java | xiaoshitouye/DesignPatterns | /适配器模式/src/com/zereao/adapter/demo03/UserInfo.java | UTF-8 | 899 | 2.640625 | 3 | [] | no_license | package com.zereao.adapter.demo03;
/**
* @author Zereao
* @version 2018/09/18 20:20
*/
public class UserInfo implements IUserInfo {
@Override
public String getUserName() {
System.out.println("姓名叫做...");
return null;
}
@Override
public String getHomeAddress() {
System.ou... | true |
fb15eae1d911f7e071d0a785158412d69dd84e4e | Java | tectronics/iabin-threats | /ita/src/main/java/org/ciat/ita/proxy/tcp/ResultManagerTCP.java | UTF-8 | 317 | 1.820313 | 2 | [] | no_license | package org.ciat.ita.proxy.tcp;
import java.util.List;
import org.ciat.ita.iclient.IResultManager;
import org.ciat.ita.model.Record;
public class ResultManagerTCP implements IResultManager {
@Override
public boolean insertResult(String clientName,List<Record> data) {
return false;
}
}
| true |
e89772f0f1855e1d32b7dd7c135bafe80abb46c1 | Java | dougm/hudson-plugins | /dashboard-view/src/main/java/hudson/plugins/view/dashboard/test/TestUtil.java | UTF-8 | 1,502 | 2.421875 | 2 | [] | no_license | package hudson.plugins.view.dashboard.test;
import hudson.model.Job;
import hudson.model.Run;
import hudson.tasks.junit.TestResultAction;
import hudson.tasks.test.AbstractTestResultAction;
import hudson.tasks.test.TestResultProjectAction;
import java.util.Collection;
public class TestUtil {
/**
* S... | true |
7f8a9d9e6cc6baa8fe6fd5784c3e163e123ead29 | Java | tangbinhlam/waa-online-shopping | /src/main/java/edu/miu/waa/onlineshopping/data/jpa/entity/AccountEntity.java | UTF-8 | 638 | 2.171875 | 2 | [] | no_license | package edu.miu.waa.onlineshopping.data.jpa.entity;
import lombok.*;
import javax.persistence.*;
import java.time.LocalDate;
@Getter
@Setter
@ToString
@Entity
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "ACCOUNT")
public class AccountEntity {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@... | true |
02d2f245dfa2187870a5ed038ca0deaeb6487e91 | Java | teppeiMatsuda/KisyaKadaiTimeCard | /TimeCardWeb/src/main/java/com/example/model/TUserDetail.java | UTF-8 | 4,111 | 2.125 | 2 | [] | no_license | package com.example.model;
import java.util.Date;
public class TUserDetail {
/**
* This field was generated by MyBatis Generator. This field corresponds to the database column t_user_detail.user_id
* @mbg.generated
*/
private Integer userId;
/**
* This field was generated by MyBatis Generator.... | true |
4551377bb2cebca375b70f1f2b9273aad8a9fb66 | Java | minidmnv/Dude | /Chat/src/main/java/pl/mn/dude/chat/config/ChatConfig.java | UTF-8 | 1,357 | 2.203125 | 2 | [] | no_license | package pl.mn.dude.chat.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.co... | true |
34baf9b4c1b4697942bbc179db21ee096c47b101 | Java | l2005jian/projiectSorces | /LifeCircle/src/com/sinaleju/lifecircle/app/exception/ADSessionTiimeOutException.java | UTF-8 | 308 | 1.78125 | 2 | [] | no_license | package com.sinaleju.lifecircle.app.exception;
/**
* 用户会话过期异常
* @author wrg
*
*/
public class ADSessionTiimeOutException extends ADRemoteException {
private static final long serialVersionUID = 526181787867800903L;
public ADSessionTiimeOutException(String msg) {
super(msg);
}
}
| true |
a75dbd3b806a92a5065738d7a4fe0744def53ece | Java | AlessioGalluccio/ing-sw-2019-Galluccio-Galli-Fortina | /src/main/java/it/polimi/se2019/model/player/WeaponIsLoadedException.java | UTF-8 | 361 | 2.21875 | 2 | [] | no_license | package it.polimi.se2019.model.player;
public class WeaponIsLoadedException extends Exception{
private static final long serialVersionUID = -5576423842259048518L;
/**
* constructor
*/
WeaponIsLoadedException() {
super();
}
/**
* constructor
*/
WeaponIsLoadedExcepti... | true |
26b0f30524fefeccc8149717e8635f4f70b0f064 | Java | maykonhs/pm87-agiletickets | /src/test/java/br/com/caelum/agiletickets/models/SessaoTest.java | UTF-8 | 1,489 | 2.78125 | 3 | [] | no_license | package br.com.caelum.agiletickets.models;
import static org.junit.Assert.*;
import java.math.BigDecimal;
import org.junit.Assert;
import org.junit.Test;
public class SessaoTest {
@Test
public void deveVender1ingressoSeHa2vagas() throws Exception {
Sessao sessao = new Sessao();
sessao.setTotalIngressos... | true |
81383ee1fc6810a34c34a91122a86d7187852ea3 | Java | JeremiasSantacruz/EshopInfo | /src/main/java/com/informatorio/eshop/producto/services/imp/ServiceProductoImp.java | UTF-8 | 2,750 | 2.40625 | 2 | [] | no_license | package com.informatorio.eshop.producto.services.imp;
import com.informatorio.eshop.producto.models.Producto;
import com.informatorio.eshop.producto.models.dtos.ProductoDto;
import com.informatorio.eshop.producto.models.mappers.ProductoMapper;
import com.informatorio.eshop.producto.repository.ProductoDao;
import com.i... | true |
2e621e60a1ff78c850fa449e9206011724fe92a9 | Java | szm981120/HIT-SoftwareConstrucutre-Class17Lab | /Lab5-1170301007/test/circularorbittest/AtomStructureTest.java | UTF-8 | 10,938 | 2.234375 | 2 | [] | no_license | package circularorbittest;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import atomtransitionmement.Caretaker;
import centralobject.Nucleus;
import circularorbit.AtomStructureFactory;
import circularorbit.CircularOrbit;
import iostrategy.AtomStructureFileReader;
import iostr... | true |
7076df9a5d5be7e8c8715f91db4abd3dac2988f6 | Java | rafaellasa/unpa | /rpya/TP12/eje12/UsoSistemaOperativo.java | UTF-8 | 945 | 2.96875 | 3 | [] | no_license | package ej12;
import parcialrecursividad.Console;
import parcialrecursividad.Menu;
public class UsoSistemaOperativo {
public static void main(String[] args) {
SistemaOperativo s= new SistemaOperativo();
int opcion=0;
Trabajo trabajo;
Menu m= new Menu();
m.agregarItem("Agregar");
m.agregarItem(... | true |
c17e057605f73cd00370b8017490590f98bfc8c3 | Java | githubbrunob/DSLTransGIT | /EMFtoProlog/src/SATEL/impl/InclusionImpl.java | UTF-8 | 5,735 | 1.8125 | 2 | [] | no_license | /**
* <copyright>
* </copyright>
*
* $Id: InclusionImpl.java,v 1.1 2011/09/27 18:59:52 domingues Exp $
*/
package SATEL.impl;
import SATEL.HMLFormula.HMLTerm;
import SATEL.Inclusion;
import SATEL.IntentionDec;
import SATEL.SATELPackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.c... | true |
94d8d872032b2ad2d63f6c1bb05e32b837c2d6e8 | Java | sputnik47/succ | /src/succ/Display.java | UTF-8 | 1,885 | 2.90625 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | package succ;
import java.awt.*;
import java.awt.event.ActionListener;
import java.util.*;
import java.util.Timer;
import javax.swing.*;
public abstract class Display implements ActionListener{
public static void main(String[] args) {
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize... | true |
821b1e9ed51f03ea8f47a21272a3834d0b45ec89 | Java | agnpawicka/kurs-Javy | /kalendarz/src/MonthsInYearPanel.java | UTF-8 | 2,950 | 3.15625 | 3 | [] | no_license | import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
public class MonthsInYearPanel extends JPanel {
private JLabel name;
private JLabel[][] daysNumbers;
private static String[] daysOfTheWeek = {"Pn", "Wt", "Śr", "Cz", "Pt", "So", "Nd"};
private... | true |
7dbd3b95e0c8df1aa713fe445c7a2b25ddac208a | Java | HunterVector/Spring_Test | /demoConst/src/main/java/model/UserFileExample.java | UTF-8 | 1,797 | 2.15625 | 2 | [] | no_license | /****************************************************************************************
Copyright © 2003-2012 ZTEsoft Corporation. All rights reserved. Reproduction or <br>
transmission in whole or in part, in any form or by any means, electronic, mechanical <br>
or otherwise, is prohibited without the prio... | true |
9107fff9f3cd3fac968ab8c66bb8dd0deb700644 | Java | BingAndMing/alicloud | /scacommon/src/main/java/com/sca/common/controller/CommonUserController.java | UTF-8 | 866 | 2.015625 | 2 | [] | no_license | package com.sca.common.controller;
import com.alibaba.fastjson.JSON;
import com.sca.common.model.CommonUser;
import com.sca.common.service.CommonUserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.ann... | true |
2feba25ba4b92649688e55743f6344f61f8a4223 | Java | pzzy2000/http-request-parser | /test/HttpRequestParser/Utility/InputStreamReaderTest.java | UTF-8 | 4,309 | 2.890625 | 3 | [] | no_license | package HttpRequestParser.Utility;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import static junit.framework.Assert.assertEquals;
/**
* Author: Myles Megyesi
*/
public class InputStreamReaderTest {
InputStream inputS... | true |
f487fd7b49a95ef0aa51f4c1e9076ba31d1946d2 | Java | alejandrocastrounqui/spring-security-rest | /src/main/java/castro/alejandro/error/ErrorViewDTO.java | UTF-8 | 554 | 2.34375 | 2 | [] | no_license | package castro.alejandro.error;
import java.util.Map;
import castro.alejandro.error.hierarchy.BusinessException;
public class ErrorViewDTO {
private Map<String, String> data;
private String key;
private String description;
public ErrorViewDTO(BusinessException model) {
this.description = model.getMessage()... | true |
9276bfbd852269865234dc886c3707b457892561 | Java | kismanhong/kismiss-csv | /src/main/java/com/softtech/kismiss/csv/entity/CsvColumnEntity.java | UTF-8 | 1,054 | 2.453125 | 2 | [] | no_license | package com.softtech.kismiss.csv.entity;
public class CsvColumnEntity {
private int position;
private String fieldName;
private String header;
private boolean index;
private String pattern;
public CsvColumnEntity(int position, String fieldName, String header, boolean index, String pattern){
this.position = p... | true |
bd51504663001318b2390090491816420863e797 | Java | nirajankarki02/Java-Class-Practice | /src/day17/Map3.java | UTF-8 | 1,737 | 3.90625 | 4 | [] | no_license | package day17;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.TreeMap;
public class Map3 {
public static void main(String[] args) {
//prints in random order
Map<Integer,String> studentMap = new HashMap<>();
studentMap.put(100, "ram sharma"... | true |
2406cca278bb4007830534e38ed2e8b4117ec78a | Java | tanlinh/GkiAndroid | /GiuakyAndroid/app/src/main/java/com/example/gkiandroid/MyArrayAdapter.java | UTF-8 | 1,825 | 2.609375 | 3 | [] | no_license | package com.example.gkiandroid;
import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import java.util.ArrayList... | true |
5fdf6815593be8df20be12cf5d12feb235057679 | Java | dnup1092/Practice | /HealthBot/src/com/dnu/check/health/exceptions/GenericException.java | UTF-8 | 300 | 2.46875 | 2 | [] | no_license | package com.dnu.check.health.exceptions;
@SuppressWarnings("serial")
public class GenericException extends RuntimeException {
public GenericException(String message) {
super(message);
}
public GenericException(String message, Exception e) {
super(message,e.getCause());
}
}
| true |
bd6f626d387d9a821f9a862927b9dc0b08c7f541 | Java | Sadlek/PA165-HauntedHouse | /haunted-house/web/src/main/java/cz/muni/fi/pa165/controllers/CommentController.java | UTF-8 | 2,683 | 2.46875 | 2 | [] | no_license | package cz.muni.fi.pa165.controllers;
import cz.muni.fi.pa165.dto.CommentCreateDto;
import cz.muni.fi.pa165.dto.CommentDto;
import cz.muni.fi.pa165.dto.HouseDto;
import cz.muni.fi.pa165.facade.CommentFacade;
import cz.muni.fi.pa165.facade.HouseFacade;
import org.springframework.stereotype.Controller;
import org.spring... | true |
cc80d3ff70e18168cc28ed1c564cef3be2aa368e | Java | josescgar/BetaLoL | /app/src/main/java/com/escobeitor/betalol/model/ListGame.java | UTF-8 | 521 | 2.25 | 2 | [] | no_license | package com.escobeitor.betalol.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.io.Serializable;
import java.util.List;
/**
* Wrapper for mapping a list of games from the API
* Created by escobeitor on 1/21/15.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class ListGame im... | true |
50833d76ac1e2cbe038bc2fff4b59ff7742adcb7 | Java | ftc8626/2016-2017 | /The Terminator/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Other_Code/color_sensor/Color_Sensor_LED_Test.java | UTF-8 | 863 | 2.203125 | 2 | [
"BSD-3-Clause"
] | permissive | package org.firstinspires.ftc.teamcode.Other_Code.color_sensor;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.ColorSensor;
import com.qualcomm.robo... | true |
735b77356d68081ade359e641dbf1834c142b3b2 | Java | IvorM/Java3WebShop | /src/java/controllers/HomeServlet.java | UTF-8 | 850 | 2.171875 | 2 | [] | no_license | package controllers;
import DAL.Repo;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import... | true |
e58befbd08b2dadafa192a4657520ff3eb47c4cf | Java | rmpestano/mobi-challenge | /src/main/java/com/mobiquityinc/model/Item.java | UTF-8 | 2,048 | 3.25 | 3 | [] | no_license | package com.mobiquityinc.model;
import java.util.Objects;
import static java.lang.String.format;
/**
* represents a package item
*/
public class Item {
private static final double MAX_ITEM_WEIGHT = 100;
private static final double MAX_ITEM_COST = 100;
private final Integer index;
private final Do... | true |
73613fa20ba268e848364eb14cc22962c344e753 | Java | jameswang1992/test | /SpringWorkSpace/DVD租凭/src/com/james/entity/DVD.java | UTF-8 | 1,305 | 2.515625 | 3 | [] | no_license | package com.james.entity;
import java.util.Date;
public class DVD {
private Integer id;
private String name;
private int lendCount;
private Date lendDate;
private String status;
public DVD() {
super();
// TODO Auto-generated constructor stub
}
public DVD(Integer id, String name, int le... | true |
ad01c7e35bdbae3b5f4208a760a0ceeda397df51 | Java | webos21/NtripClient | /webos21-android/src/main/java/com/gmail/webos21/android/ild/FileCache.java | UTF-8 | 1,420 | 2.75 | 3 | [
"Apache-2.0"
] | permissive | package com.gmail.webos21.android.ild;
import android.content.Context;
import android.os.Environment;
import java.io.File;
public class FileCache {
private File cacheDir;
public FileCache(Context context) {
// Find the dir at SDCARD to save cached images
if (Environment.getExternalStorageSt... | true |
48afa889187c0faac7cfd7757c5a2ced5eb838ff | Java | Alientales/favegame | /fg-game-web/src/main/java/cn/dmdream/game/authority/UserAuthVo.java | UTF-8 | 1,036 | 2.125 | 2 | [] | no_license | package cn.dmdream.game.authority;
import cn.dmdream.entity.vo.UserVo;
import lombok.Data;
import org.springframework.security.core.userdetails.UserDetails;
import java.util.HashSet;
import java.util.Set;
/**
* 需要实现接口UserDetails,用于封装用户的基本信息、权限信息,和entity层的最好分开使用。
* 可以选择继承entity层的用户实体类
*/
@Data
public class UserAut... | true |
3216de8d1ad9aa3092e715ae099a9908a0ac1fae | Java | Danboru/UsdaKu | /app/src/main/java/com/example/priad/usdaku/provider/PenjualanUser.java | UTF-8 | 1,539 | 2.109375 | 2 | [] | no_license | package com.example.priad.usdaku.provider;
/**
* Created by priad on 31/03/2017.
*/
//FIX
public class PenjualanUser {
private int id_penjualan;
private String nama_barang;
private String keterangan_barang;
private int harga_barang;
public PenjualanUser() {
}
public PenjualanUser(Strin... | true |
6fec1378161fee94be6c336bb56c0d363fd0ef03 | Java | JLCarveth/Grocer | /app/src/main/java/com/github/jlcarveth/grocer/util/StorageHandler.java | UTF-8 | 1,251 | 2.671875 | 3 | [] | no_license | package com.github.jlcarveth.grocer.util;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.github.jlcarveth.grocer.model.GroceryContract;
/**
* Created by John on 9/30/2017.
*
* A storage wrapper for SQLite3 library. The DB ... | true |
e91a51b4671d68f8684b8818fff56599036edbca | Java | ZoranLi/thunder | /com/xunlei/downloadprovider/notification/b.java | UTF-8 | 586 | 1.664063 | 2 | [] | no_license | package com.xunlei.downloadprovider.notification;
import android.graphics.Bitmap;
import com.bumptech.glide.request.animation.GlideAnimation;
import com.bumptech.glide.request.target.SimpleTarget;
/* compiled from: DownloadADNotification */
final class b extends SimpleTarget<Bitmap> {
final /* synthetic */ a a;
... | true |
91cd78fa7bb443c3a982f725bdf8e4cd047665b6 | Java | mlalma/CFTA | /CFTA-FrontEnd-App/src/com/cfta/ta/handlers/TextRankSummarizationHandler.java | UTF-8 | 6,817 | 2.3125 | 2 | [] | no_license | // CFTA -- Content Fetching & Text Analysis System
// Lassi Maksimainen, 2019
package com.cfta.ta.handlers;
import cfta.client.CFTARequest;
import com.cfta.cf.handlers.protocol.ContentExtractionRequest;
import com.cfta.cf.handlers.protocol.ContentExtractionResponse;
import com.cfta.log.CFTALog;
import com.cfta.ta.hand... | true |
d28997583b2ef9df5ed179130980db55a2643e24 | Java | TsaiYongChuan/lottery | /lottery-web/src/main/java/me/zohar/lottery/betting/controller/BettingController.java | UTF-8 | 4,059 | 2.125 | 2 | [] | no_license | package me.zohar.lottery.betting.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import... | true |
07843d7611827701125ce7d09fba11b0a113244c | Java | XuNeverMore/OpenGL | /app/src/main/java/com/example/opengl/MyUtil.java | UTF-8 | 4,258 | 2.4375 | 2 | [] | no_license | package com.example.opengl;
import android.content.Context;
import android.content.res.AssetManager;
import android.opengl.GLES20;
import android.opengl.GLES30;
import android.util.Log;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java... | true |
ca8548657fb78570b4ef5315440529281cab9092 | Java | jvranish/Camping-Mod | /common/rikmuld/core/register/ModItems.java | UTF-8 | 3,326 | 1.828125 | 2 | [] | no_license | package rikmuld.core.register;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.MinecraftForge;
import rikmuld.core.lib.Config;
import rikmuld.core.lib.Items;
import rikmuld.item.GuideBoo... | true |
d934f94c7510b1ee12237877d826e56283dea356 | Java | rasoftwaredivision/RisingArjun | /src/main/java/com/risingarjun/arjun/domain/enumeration/Natureofbusiness.java | UTF-8 | 142 | 1.601563 | 2 | [] | no_license | package com.risingarjun.arjun.domain.enumeration;
/**
* The Natureofbusiness enumeration.
*/
public enum Natureofbusiness {
COACHING
}
| true |
db5119da1a7dffbe5e41a95c5f50e6b9b0ed2d87 | Java | linhdo39/JPaint | /src/controller/command/DeleteCommand.java | UTF-8 | 1,333 | 2.703125 | 3 | [] | no_license | package controller.command;
import java.util.ArrayList;
import java.util.List;
import controller.Interface.ICommand;
import controller.Interface.IUndoRedo;
import model.shape.Shape;
import view.gui.DrawAllShape;
public class DeleteCommand implements ICommand,IUndoRedo{
private List<Shape> shapeList, sel... | true |
8c34f6bf48fb20123d25f7768f0a6f3e76afa0f3 | Java | MaisieHu8891/xxx_restfulapi_autotest | /src/test/java/data/model1DataProvider.java | UTF-8 | 562 | 1.882813 | 2 | [] | no_license | package data;
import org.testng.annotations.DataProvider;
import utils.DockerCmd;
/**
* testng数据驱动: 提供docker仓库镜像有关的数据
* Created by hujunxiang on 2019-05-09
*/
public class model1DataProvider {
static DockerCmd dockerCmd = new DockerCmd();
@DataProvider(name = "get_image_digest")
public static Object[]... | true |
44e29ab17200d806aa2e88c5c844310b1fed0cb0 | Java | treejames/Security_git | /src/com/calvin/security/utils/MD5Encoder.java | UTF-8 | 1,066 | 3.125 | 3 | [] | no_license | package com.calvin.security.utils;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class MD5Encoder {
public static String encode(String pwd) {
try {
//拿到MD5加密的对象
MessageDigest messageDigest = MessageDigest.getInstance("MD5");
b... | true |
951977601b712ec53353ab1980caff2a78a2d0e6 | Java | LafiteCraft/camera | /src/com/lafite/demo/controller/DailyAction.java | UTF-8 | 8,322 | 2.1875 | 2 | [] | no_license | package com.lafite.demo.controller;
import com.google.gson.Gson;
import com.lafite.demo.base.NullTool;
import com.lafite.demo.entity.Daily;
import com.lafite.demo.entity.User;
import com.lafite.demo.service.IDailyService;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.convention.annotation.*... | true |
8fc9e69bc5ec324c38a424f17167941b3038f1ab | Java | vaicThor/eclipse-workspace | /Progra_Evenementielle/src/Observer.java | UTF-8 | 64 | 2.34375 | 2 | [] | no_license |
public interface Observer {
void update(int posX, int posY);
}
| true |
3419ffbeaf96f170b4d75501bf79983157bd26b4 | Java | InteractiviteVideoEtSystemes/mediaserver | /XmlRpcMcuClient/src/org/murillo/MediaServer/XmlRPCJSR309Client.java | UTF-8 | 37,472 | 1.835938 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.murillo.MediaServer;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashMap;
//import java.util.logging.Level;
//import java.util.logging.Logger;
import org.apache.xmlrpc.XmlRp... | true |
b697efea861ce1d35a8f0fef9a2dd5321babdc43 | Java | zhangwenhai/MessageSend | /TheOne/src/com/theone/sns/util/uiwidget/ImageWithDelete.java | UTF-8 | 2,608 | 2.140625 | 2 | [] | no_license | package com.theone.sns.util.uiwidget;
import android.content.Context;
import android.graphics.Bitmap;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import com.theone.sns.R;
import com.theone.sns.ut... | true |
7bce9f33f5cc34351b1e190e1577cbf359f6db39 | Java | BlinfoldKing/Pajak.in | /server/src/main/java/pajakin/model/PPh.java | UTF-8 | 1,368 | 3.015625 | 3 | [] | no_license | package pajakin.model;
import pajakin.model.Tax;
import pajakin.model.Taxable;
import pajakin.model.Person;
public class PPh extends Tax implements Taxable {
/* Term used in this section */
// PPh : Pajak Penghasilan
// PTKP : Penghasilan Tidak Kena Pajak
// PKP : Penghasilan Kena Pajak
pri... | true |
a9a1a5530b30b1caf4335112294d225f9f8ced4f | Java | shanxf1992/permission_managment_system | /src/test/java/com/itheima/acl/util/PasswordUtilsTest.java | UTF-8 | 210 | 1.546875 | 2 | [] | no_license | package com.itheima.acl.util;
import org.junit.Test;
import static org.junit.Assert.*;
public class PasswordUtilsTest {
@Test
public void randomPassword() throws Exception {
}
} | true |
f1fdb1b0419c506a02ffba9edcf9f9aba2c06bce | Java | VitaliyVoron/Lessons | /src/ua/itea/less15/MyEx.java | UTF-8 | 136 | 1.726563 | 2 | [] | no_license | package ua.itea.less15;
public class MyEx extends Exception {
public String getMessage(){
return "myException";
}
}
| true |
1f2550cf980838a61c6b5b3db77dc62f99da3b47 | Java | thoale3499/Laptrinhdidong_App | /app/src/main/java/com/example/foody/adapter/News_Notification_Adapter.java | UTF-8 | 2,105 | 2.25 | 2 | [] | no_license | package com.example.foody.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.example.foody.R;
import com.example.foody.model... | true |
154da37389df9b34e1c0ba764afbc2ccf31b5409 | Java | uknadkarni/cc-demo | /src/main/java/com/pivotal/example/xd/OrderRepository.java | UTF-8 | 489 | 1.976563 | 2 | [] | no_license | package com.pivotal.example.xd;
import org.springframework.data.repository.CrudRepository;
public interface OrderRepository extends CrudRepository<Order, String> {
Order findByTransactionId(String name);
Iterable<Order> findByCreditCardType(String creditCardType);
Iterable<Order> findByZip(int ... | true |
208dafbdc310cb84547d70279dbbdc53597e4960 | Java | TalentDonation/Handicraft-Android | /app/src/main/java/kr/co/landvibe/handicraft/error/UnAuthorizationException.java | UTF-8 | 344 | 2.3125 | 2 | [] | no_license | package kr.co.landvibe.handicraft.error;
public class UnAuthorizationException extends RuntimeException {
public UnAuthorizationException() {
super();
}
public UnAuthorizationException(String msg) {
super(msg);
}
public UnAuthorizationException(String msg, Throwable t) {
... | true |
ffdbf432bdc34234a821b6e0dcf574e342cd96e5 | Java | 08-albert/OnlineShop | /src/main/java/com/sda/shop/entity/UserEntity.java | UTF-8 | 1,031 | 2.109375 | 2 | [] | no_license | package com.sda.shop.entity;
import javax.persistence.*;
import java.util.List;
@Entity
@Table(name="users")
public class UserEntity {
@Id
@Column(length = 50)
private String username;
@Column(length = 150)
private String password;
private Boolean enabled;
@OneToMany(mappedBy = "user")
... | true |
4d904726161145baa2e025901e005959a32a1a98 | Java | blingwang/coding-collections | /pie/StringUtils.java | UTF-8 | 3,838 | 3.3125 | 3 | [] | no_license | import java.util.*;
class StringUtils{
public static Character firstNonRepeated(String str){
HashMap<Character, Integer> charHash = new HashMap<Character, Integer>();
int i, length;
Character c;
length = str.length();
// scan str, building hash table
for (i = 0; i < ... | true |
6d510f4b3b7c5220ec62064315b057d6da1ae530 | Java | zeroneqin/tscase_api | /src/main/java/com/qinjun/autotest/tsapi/dao/IAPIResBodyDao.java | UTF-8 | 564 | 1.882813 | 2 | [] | no_license | package com.qinjun.autotest.tsapi.dao;
import com.qinjun.autotest.tsapi.bean.API;
import com.qinjun.autotest.tsapi.bean.APIResBody;
import java.util.List;
public interface IAPIResBodyDao {
APIResBody get(Long id);
Long save(APIResBody apiResBody);
void update(APIResBody apiResBody);
void delete(APIRe... | true |
4278ff0b232cd266921d04cedb4846b90c991174 | Java | huangjianqin/kin-rpc | /kin-rpc-api/src/main/java/org/kin/kinrpc/cache/Cache.java | UTF-8 | 451 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package org.kin.kinrpc.cache;
/**
* rpc result cache
*
* @author huangjianqin
* @date 2023/7/24
*/
public interface Cache {
/**
* cache rpc result
*
* @param key key(rpc handler + param)
* @param value rpc result
*/
void put(String key, Object value);
/**
* get cached ... | true |
227ccc46fedaee5882e2943dda90c9226963426a | Java | 94shinshinhy/First_Project | /bitenter/src/com/bitenter/ui/SignUpLoginUI.java | UTF-8 | 4,446 | 2.765625 | 3 | [] | no_license | package com.bitenter.ui;
import java.util.Scanner;
import com.bitenter.dto.SignUpLoginDto;
public class SignUpLoginUI {
Scanner scanner = new Scanner(System.in);
// 로그인 시 입력한 id, pwd 값을 사용하기 위한 멤버변수
static String id;
static String pwd;
// 로그인 시 입력한 id, pwd 값을 사용하기 위한 메서드
... | true |
2309e8070c3901ff0039a49bad94cc87ba0e43d6 | Java | gugulla/offerz | /app/src/main/java/cn/fanrunqi/materiallogin/volley/API.java | UTF-8 | 958 | 1.679688 | 2 | [
"Apache-2.0"
] | permissive | package cn.fanrunqi.materiallogin.volley;
/**
* Created by priya on 26-04-2018.
*/
public class API {
public static String regurl="http://www.fratelloinnotech.com/offerz/sellerreg.php";
public static String loginurl="http://www.fratelloinnotech.com/offerz/sellerlogin.php";
public static String reseturl=... | true |
b8bdddd663df230fd5cb82109d96d00c5bf98fc7 | Java | F12-Syntex/SeniorCrates | /SeniorCrates/src/com/scrates/data/Crate.java | UTF-8 | 1,823 | 2.625 | 3 | [] | no_license | package com.scrates.data;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;
import com.scrates.main.SeniorCrates;
import com.scrates.utils.Luck;
public class Crate {
private String name;
private I... | true |
ef19468ffc34a30c186bfb6c71dccc589f490394 | Java | J0703-SSM/yz_Netctoss | /src/main/java/com/lanou/account/mapper/AccountMapper.java | UTF-8 | 523 | 1.976563 | 2 | [] | no_license | package com.lanou.account.mapper;
import com.lanou.account.domain.Account;
import java.util.List;
import java.util.Map;
/**
* Created by dllo on 17/11/15.
*/
public interface AccountMapper {
Account findByIdCard(String idcard_no);
int findCount(Map<String,Object> map);
List<Account> findAll(Map<Strin... | true |
f8ec17622299c4220f017473163eb226f1ba8579 | Java | deepparekh1998/Lead_insert | /app/src/main/java/com/example/lead_insert/ProductDetailing.java | UTF-8 | 6,456 | 2 | 2 | [] | no_license | package com.example.lead_insert;
import android.content.Context;
import android.os.Bundle;
import android.text.Editable;
import android.text.InputType;
import android.text.TextWatcher;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import ... | true |
408b1d139396dc6030220388b3a96d29ffbda1a2 | Java | markomisk/TooBadENumbers | /app/src/main/java/com/giantturtle/badenumbersquiz/PrepareYourSelfActivity.java | UTF-8 | 7,186 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | true |
4fb968a96812de12e0bd72f1b5b1fed1ae7bad4e | Java | OlgaKonko/SeleniumEducationProject | /src/main/java/pages/lists/CreateNewListPage.java | UTF-8 | 524 | 2.203125 | 2 | [] | no_license | package pages.lists;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import pages.PageObject;
public class CreateNewListPage extends PageObject {
@FindBy(id = "list-create-name")
private WebElement listNameField;
@FindBy(xpath = "//button[text()=\"CREATE\"]")
private... | true |
f5b5887ff7997aa8e37da3bb385ec64aed8a3b5b | Java | wuqq-20191129/wlmq | /4数据交换系统/ACCCommu/src/com/goldsign/commu/app/vo/FlowHourMinFiveUnit.java | UTF-8 | 1,066 | 2.421875 | 2 | [] | no_license | package com.goldsign.commu.app.vo;
public class FlowHourMinFiveUnit {
private int traffic = 0;
private String hourMinFive = "";
private String dateKey = "";
public FlowHourMinFiveUnit(int traffic, String hourMinFive, String dateKey){
this.traffic = traffic;
this.hourMinFi... | true |
0ff9b44f4e5580c343347853d7ae05c23ea6996f | Java | sabelassm/Ejemplo_J2EE | /EjemploPruebaCarga/src/ejemplo/pruebacarga/LoginValidator.java | UTF-8 | 576 | 2.765625 | 3 | [] | no_license | package ejemplo.pruebacarga;
import java.util.Hashtable;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class LoginValidator {
private static Map<String, String> users = new Hashtable<String, String>();
static {
users.put("pepe", "pepe123");
users.put("juan", "juan123");
users... | true |
1d067ba894e85ba16bd9dd8a5881bf5ae937ff0f | Java | UlhasDeshmukh/everreal-reg-tests | /src/test/java/everreal/StepDefinitions.java | UTF-8 | 8,357 | 2.140625 | 2 | [] | no_license | package everreal;
import io.cucumber.java.After;
import io.cucumber.java.Scenario;
import org.openqa.selenium.*;
import org.openqa.selenium.chrome.ChromeDriver;
import io.cucumber.java.en.Given;
import io.cucumber.java.en.Then;
import io.cucumber.java.en.When;
import org.openqa.selenium.interactions.Actions;
import o... | true |
f7ac73c845e3117dac4336ab6d08e8d0bef5537b | Java | taoyingqi/dh-excel-1 | /src/main/java/dh/data/util/NumericUtil.java | UTF-8 | 1,646 | 3.078125 | 3 | [] | no_license | package dh.data.util;
import java.math.BigDecimal;
import java.text.DecimalFormat;
/**
* Created by lonel on 2017/6/10.
*/
public class NumericUtil {
public static String toStr(Float f) {
return f == null ? "" : "" + f;
}
public static String toStr(Integer i) {
return i ... | true |
146c77c2658c1fce1f74a9c63c50835d9fddec7e | Java | vinaykrprajapat/JavaPrograms | /src/BookExamples/Chapter 2/AutoCastDemo.java | UTF-8 | 168 | 2.5 | 2 | [] | no_license | class AutoCastDemo
{
public static void main (String ar[])
{
int i=150;
long l;
l=i;
System.out.println ("The value of Long variable is "+ l);
}
}
| true |
b3e0170f18050233f48ba7227a97aabd5c7949a1 | Java | ankursaxena150/tcoeAppiumJava | /tcoeAppiumJava/src/main/java/DDDD/_ICustomizationType.java | UTF-8 | 377 | 1.734375 | 2 | [] | no_license | package DDDD;
import com4j.*;
/**
* For HP use. _ICustomizationType Interface.
*/
@IID("{542912D4-D481-440A-8DB2-39D8D4E2EA93}")
public interface _ICustomizationType extends Com4jObject {
// Methods:
/**
* @param icon Mandatory java.lang.Object parameter.
*/
@VTID(3)
void setIcon(
@MarshalA... | true |
dbb46fa1c44e4d9441301901855eaa99f8bb3f8b | Java | guixiaojian/txing | /src/main/java/com/tx/common/BaseResponse.java | UTF-8 | 1,346 | 2.296875 | 2 | [] | no_license | package com.tx.common;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* <pre>
* Description 公共返回对象
* Copyright: Copyright (c)2014
* Company: 上海天地汇
* Author: xubinbin
* Version: 1.0
* Created at: 2016年12月9日 下午1:5... | true |
99378532813cb6017b2b819ef92ada3b0267a316 | Java | AndrewSviridov/SpringBootDemo_V2 | /SearchUtils/src/main/java/com/search/SearchApp.java | UTF-8 | 1,446 | 1.929688 | 2 | [] | no_license | package com.search;
import com.search.filter.BodyFilter;
import com.search.filter.LanguageFilter;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.spring... | true |
09696c13287810ed5bd486af5437b445b9350cf0 | Java | medsec/BUW-Secure-SMS | /BUW-Secure-SMS/src/com/mslab/encryptsms/misc/ReceivedSMS.java | UTF-8 | 3,329 | 3.140625 | 3 | [] | no_license | package com.mslab.encryptsms.misc;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Helper class to store received, encrypted messages.
* @author Paul Kramer
*
*/
public class ReceivedSMS implements Parcelable {
public static byte ENCRYPTED_BYTE_7 = (byte)0x3F; //7-Bit encoded encrypted byte in AS... | true |
4019488696d2c49b52f1813c9c6a420648052253 | Java | Scowluga/DSA-Java | /Competitive/CCC/src/_y2001/_s5/Main.java | UTF-8 | 8,954 | 3.140625 | 3 | [] | no_license | package _y2001._s5;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/* Post's Correspondence Problem
* Recursion, String algorithms
* 10/10 points
*/
public class Main {
static int M;
static int N;
static St... | true |
94fe34b3003cc5e813e6c2e438040c11fecb2488 | Java | RattsDen/BrainfarmAndroid | /app/src/main/java/ca/brainfarm/serviceclient/ExceptionHandler.java | UTF-8 | 225 | 2.046875 | 2 | [] | no_license | package ca.brainfarm.serviceclient;
/**
* Handler interface for handling any exceptions that occur during communication with the service.
*/
public interface ExceptionHandler {
void handleException(Exception ex);
}
| true |
949fc71eaa72ea20c6713966bc212f5dbaa748e8 | Java | feresrafael/TrabHerancaPOO | /Tecnico.java | UTF-8 | 582 | 2.5625 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Heranca;
public class Tecnico extends Aluno{
private String registroProfissional;
public void Praticar() {
Sys... | true |
601f9a3826d619ec3417ccc673bdd5b03c3e055d | Java | ArtyrGetman/powerOfProperties | /examples/src/main/java/com/properties/examples/examples/method_with_default_propertie_value/PhoneValidation.java | UTF-8 | 302 | 1.90625 | 2 | [] | no_license | package com.properties.examples.examples.method_with_default_propertie_value;
import org.springframework.stereotype.Component;
@Component
public class PhoneValidation implements ValidationRule {
@Override
public void doValidation() {
System.out.println("validate phone");
}
}
| true |
0ec51dd473d7b262709472cf4846997ddeb4a106 | Java | headmastersquall/AndroidClass | /CH02/GeoQuiz-tut/app/src/main/java/com/bignerdranch/android/geoquiz/Question.java | UTF-8 | 360 | 2.453125 | 2 | [] | no_license | package com.bignerdranch.android.geoquiz;
public class Question {
private int textResourceId;
private boolean answer;
public Question(int textResourceId, boolean answer) {
this.textResourceId = textResourceId;
this.answer = answer;
}
public boolean isAnswer() {
return answer;
}
public int getTextResou... | true |
9e7ff9688a8cc08ead505ddaee0813bbeb7c1da2 | Java | risbo59300/food-search-back | /src/main/java/com/foodsearchback/controllers/SpecialiteController.java | UTF-8 | 1,165 | 2.21875 | 2 | [] | no_license | package com.foodsearchback.controllers;
import com.foodsearchback.entities.FsSpecialite;
import com.foodsearchback.services.SpecialiteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@CrossOrigin(origins =... | true |
62ee9f92bada407875ab1e962aee7cb62b8bfd45 | Java | akshay11agrawal/TechmojoTest | /TweetsCounter.java | UTF-8 | 2,639 | 3.15625 | 3 | [] | no_license | package com.tm.test;
import static java.util.Map.Entry.comparingByValue;
import static java.util.stream.Collectors.toMap;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
public class TweetsC... | true |
f2a245328a10cc141233482786e46416a677b981 | Java | java24july-ank-meh/batch-src | /CakeSpringProject/src/com/revature/cake/Driver.java | UTF-8 | 500 | 2.625 | 3 | [] | no_license | package com.revature.cake;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Driver {
public static void main(String[] args) {
//Load app context .xml
ApplicationContext ctx = new ClassPathXmlApplicationContext("appCont... | true |
29234a7640ca5512ff09b809b2fa0e652b95b3a4 | Java | MatheusMMariano/TAFatec | /src/test/java/TesteAnaliseDoValorLimite.java | UTF-8 | 1,083 | 2.78125 | 3 | [] | no_license | package test.java;
import static org.junit.Assert.*;
import org.junit.Test;
import main.java.RaizQuadrada;
public class TesteAnaliseDoValorLimite {
@Test
public void numerosPositivos() {
assertEquals(Double.valueOf(1.9748417658131499), Double.valueOf(new RaizQuadrada().sqrt(3.9)));
assertEquals(Double.value... | true |
c5fb634e17a41c074ce14761312f2a609b30cf9e | Java | 115130/springbootpractise | /src/main/java/com/example/android/domain/ClassInfo.java | UTF-8 | 200 | 1.664063 | 2 | [] | no_license | package com.example.android.domain;
import lombok.Data;
@Data
public class ClassInfo {
private Long id;
private String classes;
private String grade;
private String speciality;
} | true |
ac001888a379f28f88112bbd9f19682c176b2c3a | Java | treasureanimal/jsrmock | /src/main/java/com/zxxhw/jsrmock/JsrmockApplication.java | UTF-8 | 324 | 1.585938 | 2 | [] | no_license | package com.zxxhw.jsrmock;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class JsrmockApplication {
public static void main(String[] args) {
SpringApplication.run(JsrmockApplication.class, args);
}... | true |
16b8d5ea8f415a42e58f2d60274fa58b72caf292 | Java | user815886724/WG | /wg-metadata/src/main/java/com/service/DatasourceService.java | UTF-8 | 3,959 | 2.15625 | 2 | [] | no_license | package com.service;
import com.dao.DatasourceDao;
import com.model.DatasourceEntity;
import common.CallbackResult;
import common.CommonPageInfo;
import common.PageParam;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Ex... | true |
826e0bd35a85acf85d8c6863b0f21faac669d941 | Java | Moverr/scholar-backoffice | /backoffice/src/main/java/com/codemovers/scholar/v1/backoffice/api/v1/accounts/GeneralAccountsEndpoint.java | UTF-8 | 4,284 | 1.953125 | 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.codemovers.scholar.v1.backoffice.api.v1.accounts;
import com.codemovers.scholar.v1.backoffice.api.v1.abstracts.AbstractEnd... | true |
cb5022bc6832ad0fe435e491a33c98c1e53fbeaa | Java | amirsaleh-salehzadeh/Java-servlets | /NimaChocolate/src/java/addChocolate.java | UTF-8 | 2,130 | 2.5625 | 3 | [] | no_license |
import business.projectBusinessLayer;
import common.Chocolate;
import java.io.*;
import java.net.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class addChocolate extends HttpServlet {
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws Serv... | true |
228829939948152f8eab0d356642f8ce5aaf44b3 | Java | kelmore5/Archives-Java | /src/kelmore5/java/dewan/recitations/Recitation12/main/AddCommand.java | UTF-8 | 411 | 2.40625 | 2 | [] | no_license | package kelmore5.java.dewan.recitations.Recitation12.main;
public class AddCommand<T> implements UndoableCommand<T>{
MyStack<T> aStack;
T newVal;
public AddCommand(MyStack<T> newStack, T val){
aStack = newStack;
newVal = val;
}
public void execute() {
try {
aStack.push(newVal);
} catch (FullCollectio... | true |
0e19283c96c4e9aea04aa1ed65335e8166b0921b | Java | muralicmr/mybank | /src/main/java/com/assignment/mybank/exception/MyBankException.java | UTF-8 | 966 | 2.359375 | 2 | [] | no_license | package com.assignment.mybank.exception;
import com.assignment.mybank.business.domain.MyBankProblemDetails;
import lombok.Getter;
import lombok.Setter;
import org.springframework.http.HttpStatus;
@Getter
@Setter
public class MyBankException extends RuntimeException {
private HttpStatus httpStatus;
private My... | true |
b221d2e0381ea0bb828e2871476ec3f066472e29 | Java | nekromant322/zoo-telegram-bot | /src/main/java/com/andrienko/telegram/commands/SetRoomTypeCommand.java | UTF-8 | 1,872 | 2.484375 | 2 | [] | no_license | package com.andrienko.telegram.commands;
import enums.AnimalType;
import enums.RoomType;
import org.springframework.stereotype.Component;
import org.telegram.telegrambots.meta.api.methods.send.SendMessage;
import org.telegram.telegrambots.meta.api.objects.Chat;
import org.telegram.telegrambots.meta.api.objects.User;
i... | true |
f516bc893b46fe9bff83d92b1fa77ca5c5a2ca8a | Java | vicompy/gamba-ioc-container | /gamba-container/src/test/java/org/homs/gamba/container/test/ents/IA.java | UTF-8 | 242 | 2.046875 | 2 | [] | no_license | package org.homs.gamba.container.test.ents;
public interface IA {
public abstract String getName();
public abstract void setName(final String name);
public abstract Integer getAge();
public abstract void setAge(final Integer age);
} | true |