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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
878787b31d1896bd45f45c29c4c72868f41a95b6 | Java | padmanaresh1986/redis-lettuce | /redis-lettuce/src/main/java/com/padmanaresh/redis/controller/RedisBasicOperationsController.java | UTF-8 | 2,254 | 2.65625 | 3 | [] | no_license | package com.padmanaresh.redis.controller;
import com.padmanaresh.redis.data.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.ListOperations;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisT... | true |
b256be4d194869f142c65a2eebc1a05e5bffaaa0 | Java | NeverMore93/eureka_client | /src/main/java/com/ywt/eureka_client/service/UserService.java | UTF-8 | 148 | 1.71875 | 2 | [] | no_license | package com.ywt.eureka_client.service;
import com.ywt.eureka_client.entity.User;
public interface UserService {
User createUser(User user);
}
| true |
6aff0864be1c863c359acd5bde7c64998a2e2a94 | Java | TaXueWWL/order-charge-notify | /order-charge-gateway-merchant/src/main/java/com/snowalker/gateway/merchant/order/OrderChargeController.java | UTF-8 | 2,201 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package com.snowalker.gateway.merchant.order;
import com.alibaba.fastjson.JSON;
import com.snowalker.gateway.merchant.order.dto.CodeMsg;
import com.snowalker.gateway.merchant.order.dto.Result;
import com.snowalker.gateway.merchant.order.handler.RequestParamValidateHandler;
import com.snowalker.gateway.merchant.order.s... | true |
8b1392157d565a40be240fb172b0d63f61ed214e | Java | btlcode/javaee | /src/main/java/org/sample/jpa/data/dao/impl/ParameterDAO.java | UTF-8 | 288 | 1.695313 | 2 | [] | no_license | package org.sample.jpa.data.dao.impl;
import org.springframework.stereotype.Repository;
@Repository
public class ParameterDAO {//extends JdbcTemplate {
// @Qualifier(value = "TEST")
// public void setDataSource(DataSource dataSource) {
// super.setDataSource(dataSource);
// }
}
| true |
6d4fbde70039e05f6eaf2a93763470016716457f | Java | timzyt/CrimeBuster | /PM6/src/crimebuster/dal/PersonDao.java | UTF-8 | 7,177 | 3.203125 | 3 | [] | no_license | package crimebuster.dal;
import crimebuster.model.Person;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
/**
* Data access object (DAO) class to interact with the underlying Person table in you... | true |
0683f7e3b5343141e65b1da699caf57e55d159dd | Java | ayush-sah/Java | /JavaPracticals/src/Exp3/Cabs.java | UTF-8 | 3,986 | 3.453125 | 3 | [] | no_license | package Exp3;
import java.util.*;
import java.lang.*;
class Car{
public int number, revenue;
public String Location;
public Car(int number, String Location, int revenue){
this.number = number;
this.Location = Location;
this.revenue = revenue;
}
}
public class Cabs{
public s... | true |
e8a8fdf28bf936c560658b41468c45c0f72a2c8e | Java | panduranggiram/HibernateWorkspace | /HibernateCJC/StoredProcedureMappingPhoneCount/src/com/storeprocedure/Test.java | UTF-8 | 1,255 | 2.671875 | 3 | [] | no_license | package com.storeprocedure;
import javax.persistence.ParameterMode;
import javax.persistence.StoredProcedureQuery;
import org.hibernate.Session;
public class Test
{
public static void main(String[] args)
{
Session session=HibernateUtil.getSessionFacory().openSession();
Student s=new Student();
s.setName... | true |
6f43c83164f0f633afe0ca629ad369a42760a165 | Java | ysakanaka/BioNEAT | /src/main/java/use/processing/rd/RDLexicographicFitnessFunction.java | UTF-8 | 2,088 | 2.171875 | 2 | [] | no_license | package use.processing.rd;
import java.util.Arrays;
import erne.AbstractFitnessFunction;
import erne.AbstractFitnessResult;
import erne.AbstractLexicographicFitnessResult;
import model.OligoGraph;
import model.OligoSystem;
import model.chemicals.SequenceVertex;
import reactionnetwork.ReactionNetwork;
import utils.Gra... | true |
57922906eda8215f4bfb87d51cbc907571cb2c93 | Java | lhendrickson3/DiscountStrategy | /src/discountstrategy/DiscountStrategy.java | UTF-8 | 288 | 2.4375 | 2 | [] | no_license | package discountstrategy;
/**
* @author lhendrickson
*/
public interface DiscountStrategy {
/**
* create getDiscountAmt universal method for all discounts
* (pass unitCost and quantity)
*/
public abstract double getDiscountAmt(double unitCost, int qty);
}
| true |
57695d8d740372bc40f0823399937473dbcc8ae1 | Java | Noguik06/colegio | /sistemaColegio/src/ejb/AbstractFacade.java | UTF-8 | 13,393 | 2.46875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ejb;
import java.util.Date;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.Query;
/**
*
* @author juannoguera
*/
public abstract class AbstractFacade<T> {
privat... | true |
66bd144387bb0d25f9a706c2ea997336ab24bbfd | Java | snehalhs/Bill-Payment-System | /BillPaymentSystem1/src/com/bps/dao/UserDAO.java | UTF-8 | 4,960 | 2.453125 | 2 | [] | no_license | package com.bps.dao;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import org.apache.log4j.Logger;
import com.bps.exceptions.Cust... | true |
c801ee37f8983dfce3e45c1af08e51f2232997c0 | Java | dengjiaping/baicaio_android | /app/src/main/java/com/cnxxp/cabbagenet/activity/MyFortuneActivity.java | UTF-8 | 10,244 | 1.859375 | 2 | [] | no_license | package com.cnxxp.cabbagenet.activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import ... | true |
07fb7cb75c3d2c2d3d369ef5aa334823302f9155 | Java | nikuyoshi/java-playground | /multi-thread-sample/src/main/java/com/github/nikuyoshi/Thread2.java | UTF-8 | 1,450 | 3.34375 | 3 | [
"Apache-2.0"
] | permissive | package com.github.nikuyoshi;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;
class Thread2 implements Runnable{
private Count count;
private Lock lock;
public Thread2(Count count, Lock lock){
this.count = count;
this.lock = lock;
}
@Override
... | true |
0ee4a5adc5b9e18681578e7207df67d35e0211cb | Java | dev0psunleashed/Sandata_SampleDemo | /Rules/CallMatching/cep-engine/src/test/java/com/sandata/lab/rules/call/matching/processors/test/ConfigsPropertiesAndLookupsProcessorTest.java | UTF-8 | 2,039 | 2.59375 | 3 | [] | no_license | /**
*
*/
package com.sandata.lab.rules.call.matching.processors.test;
import org.junit.Test;
import com.sandata.lab.rules.call.matching.processors.ConfigsPropertiesAndLookupsProcessor;
import com.sandata.lab.rules.call.model.VisitEventFact;
/**
* @author thanhxle
*
* @Description :
*
* @date Apr 19, 2016
* ... | true |
27019a175fbdbf05ad5e0e56f5f59cb67586bc74 | Java | aakash01/codebase | /src/com/aakash/practice/interviewbit_may2017/linked_list/ReverseMToN.java | UTF-8 | 1,186 | 3.265625 | 3 | [] | no_license | package com.aakash.practice.interviewbit_may2017.linked_list;
import com.aakash.practice.common.GoodQuestion;
import java.util.ArrayList;
import java.util.Arrays;
/**
* Created by Aakash(anagar@walmartlabs.com) on 5/26/17.
*/
@GoodQuestion
public class ReverseMToN {
public ListNode reverseBetween(ListNode a, i... | true |
07596d966d2c08f983f85d29fa9a9ccb98817b2e | Java | dongzeW/ZipTools-master | /src/com/jotabout/zipdownloader/util/DecompressZip.java | UTF-8 | 4,075 | 2.734375 | 3 | [
"MIT"
] | permissive | package com.jotabout.zipdownloader.util;
/**
* ZipDownloader
*
* A simple app to demonstrate downloading and unpacking a .zip file
* as a background task.
*
* Copyright (c) 2011 Michael J. Portuesi (http://www.jotabout.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* ... | true |
568646f0661efef673bb05fd49a97ae2f69335c1 | Java | timelytest/hackathon-server | /src/main/java/com/timelytest/hackathon/serviceImpl/UserServiceImpl.java | UTF-8 | 4,637 | 2.109375 | 2 | [] | no_license | package com.timelytest.hackathon.serviceImpl;
import com.timelytest.hackathon.bean.RegisterBean;
import com.timelytest.hackathon.bean.UserContextBean;
import com.timelytest.hackathon.entity.Appointment;
import com.timelytest.hackathon.entity.PasswordEntity;
import com.timelytest.hackathon.entity.User;
import com.timel... | true |
fc399d8e94f16402a2335e6aa2d3bbc528498f57 | Java | bearDream/mandal | /mandal-monitor/mandal-monitor-default/src/main/java/cn/ching/mandal/monitor/Statistics.java | UTF-8 | 3,355 | 2.234375 | 2 | [] | no_license | package cn.ching.mandal.monitor;
import cn.ching.mandal.common.URL;
import cn.ching.mandal.monitor.api.MonitorService;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
/**
* 2018/3/13
*
* @author chi.zhang
* @email laxzhang@outlook.com
*/
public class Statistics implements Serializable {... | true |
0a7038b18ff1a1e222c2acafd9153728b8425439 | Java | pinus/OpenDolphin-1.3.0 | /client/src/main/java/open/dolphin/stampbox/StampBoxPlugin.java | UTF-8 | 36,535 | 1.710938 | 2 | [] | no_license | package open.dolphin.stampbox;
import open.dolphin.client.*;
import open.dolphin.delegater.StampDelegater;
import open.dolphin.dnd.StampTreeNodeTransferHandler;
import open.dolphin.helper.ComponentBoundsManager;
import open.dolphin.helper.MenuSupport;
import open.dolphin.helper.WindowSupport;
import open.dolphin.infom... | true |
de7b2662c7d4bf9381fca29e3c53e7985785d32f | Java | cietwwl/loginFengTian | /loginFengTian/src/com/zxz/service/OperaterUserService.java | UTF-8 | 493 | 2.171875 | 2 | [] | no_license | package com.zxz.service;
import com.zxz.dao.OperateUserDao;
import com.zxz.dao.impl.OperateUserDaoImpl;
import com.zxz.domain.OperateUser;
public class OperaterUserService {
OperateUserDao operateUserDao = new OperateUserDaoImpl();
public OperaterUserService() {
}
public OperateUser findOperateUserB... | true |
a2ac01ad801fba6bfdd11a8e658fa6046b52c7e0 | Java | shamanomania/NetCrackerProjectRep | /src/main/java/netcracker/repository/CompanyRepository.java | UTF-8 | 579 | 2.078125 | 2 | [] | no_license | package netcracker.repository;
import netcracker.domain.entities.Company;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/... | true |
7a68407c506bb446996b65042c20d2ab48731842 | Java | annazhang2002/Flixster | /app/src/main/java/com/example/flixster/activities/MovieDetailsActivity.java | UTF-8 | 6,444 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package com.example.flixster.activities;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.graphics.drawable.Drawable;
import android.media.Image;
import android.os.Bundle;
import android.util.Log;
i... | true |
d547b7a322e7efa2334f658eab2759389b3635e5 | Java | gostranger/ktool | /src/main/java/main/App.java | UTF-8 | 2,707 | 2.390625 | 2 | [] | no_license | package main;
import datalake.adlsGUI;
import eventhub.ehGUI;
import jms.jmsGUI;
import java.awt.*;
import kafka.kafkaGUI;
import java.awt.event.*;
import java.io.IOException;
import javax.swing.*;
import akfire.akfireGUI;
import akstream.akstreamGUI;
import config.conf;
public class App extends J... | true |
bd22d388ef9ba6134d40c18689168725e52248df | Java | gitexec/Nombres | /app/src/main/java/com/example/wington/nombres/UsersAdapter.java | UTF-8 | 1,266 | 2.640625 | 3 | [] | no_license | package com.example.wington.nombres;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import org.w3c.dom.Text;
import java.util.List;
/**
* Created by wington on 10/30/16.... | true |
f3c8ed10d8c472e41d83fbf5e4b6d759e46df275 | Java | Czkl/twu-biblioteca-KaiLing-Zhang | /src/com/twu/biblioteca/main/Book.java | UTF-8 | 947 | 2.984375 | 3 | [
"Apache-2.0"
] | permissive | package com.twu.biblioteca.main;
public class Book {
private String author;
private Number publicationYear;
private boolean isBorrowed;
public Book(String author, Number publicationYear, boolean isBorrowed) {
this.author = author;
this.publicationYear = publicat... | true |
a77bdf9e297bbf0ae557cc26278299892c1f941f | Java | ilukericherson/gradebook | /src/main/java/Course.java | UTF-8 | 634 | 2.921875 | 3 | [] | no_license | /* Course */
public class Course {
//course info
private final String name;
private final String courseNum;
private final String subject;
private ArrayList<String> prereqs;
public Course(String courseName, String courseNumber,
String courseSubject, ArrayList<String> coursePrereqs) {
this.name = cours... | true |
473b60816ab3228069261a2c1c8f277bda0e4f7d | Java | f3226912/gd | /gd-order-intf/src/main/java/com/gudeng/commerce/gd/order/enm/ETaskType.java | UTF-8 | 1,855 | 2.59375 | 3 | [] | no_license | package com.gudeng.commerce.gd.order.enm;
/**
* 任务类型枚举类
*
* @author panmin
* @version [版本号, 2014-4-3]
* @since [产品/模块版本]
*/
public enum ETaskType {
/**
* 补贴
*/
SUB("1", "补贴"),
/**
* 发送短信
*/
SEND_SMS("2", "发送短信"),
/**
* 自动撤单
*/
AUTO_CANCEL_ORDER("3", "自动撤单"),
/**
* 发送邮件
*/
SEND_... | true |
ffffb0f69c9cbf0a0a28f2bbc002baaa3334445f | Java | uoshy/CS4770 | /Resources/3715-Rod-Notes/notes/producer-consumer/tests/RealisticDeadLock.java | UTF-8 | 1,768 | 3.78125 | 4 | [] | no_license | import java.io.PrintStream;
class MyCounter {
int count;
MyCounter() {
count = 0;
}
}
class T1 extends Thread {
protected PrintStream out;
protected MyCounter counter;
public T1( String name, MyCounter counter, PrintStream out ) {
super( name );
this.counter = counter... | true |
047f07c09214ac7631db3205d1e9bb867f86ee19 | Java | victropolis/project-euler-solved | /src/test/java/com/victropolis/euler/TestProblem420.java | UTF-8 | 870 | 2.828125 | 3 | [] | no_license | package com.victropolis.euler;
import org.junit.Assert;
import org.junit.Test;
/**
* Generated programatically by victropolis on 07/04/15.
*/
public class TestProblem420 {
/*
Description (from https://projecteuler.net/problem=420):
A positive integer matrix is a matrix whose elements are all positive integers. So... | true |
b5e13a998d47273ecfedeccb4f1ddf6839ac2ed1 | Java | firewire01/mimbase | /src/main/java/com/elisharedservices/mims/core/xml/XmlBuilder.java | UTF-8 | 705 | 2.359375 | 2 | [] | no_license | package com.elisharedservices.mims.core.xml;
import java.util.Map;
/**
* Created by marlon on 4/17/17.
*/
public interface XmlBuilder {
String build(XmlObject xml);
default String parseAttribute(Map<String, String> attributes){
StringBuilder sb = new StringBuilder();
if(attributes.entrySe... | true |
19b344a4066fc1d4c89adf38e2bce936930b4530 | Java | elambert/honeycomb | /server/src/java/com/sun/honeycomb/util/sysdep/solaris/SystemInfo.java | WINDOWS-1252 | 4,616 | 1.953125 | 2 | [] | no_license | /*
* Copyright 2008, Sun Microsystems, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the fo... | true |
7f4ad3c6160f43488e5403bd1599f02ae170007c | Java | abhijeetroshan/Study | /Module-2/Class_Codes/M2_MavenProjects/HelloWorld/src/test/java/com/cg/capgemini/HelloWorld/CalculatorTest.java | UTF-8 | 344 | 2.515625 | 3 | [] | no_license | package com.cg.capgemini.HelloWorld;
import org.junit.Assert;
import org.junit.Test;
public class CalculatorTest
{
@Test
public void Test1()
{
Calculator cal = new Calculator();
Assert.assertEquals(10,cal.add(4,6));
}
@Test
public void Test2()
{
Calculator cal = new Calculator();
Assert.assertEqual... | true |
59b8fe905e52b3e7015f1b838e3d2dafc2f7d4d9 | Java | Ikegorgon/DnDCharacterMaker | /src/charactermaker/model/features/feats/racialfeat/LabyrinthRecall.java | UTF-8 | 260 | 2.296875 | 2 | [] | no_license | package charactermaker.model.features.feats.racialfeat;
public class LabyrinthRecall extends RacialFeats{
public LabyrinthRecall() {
super("Labyrinth Recall", "Minotaur");
this.setDescription("You can perfectly recall any path you have traveled.");
}
}
| true |
3bc4f9c65616ade0bada722c540ad28f3d2ace98 | Java | Vladeslaw/Vlad2122 | /Homework/Lesson1/part3/Accountant.java | UTF-8 | 321 | 2.046875 | 2 | [] | no_license | public class Accountant extends Worker {
public char accdeg; // name of the university degree
public char accpcs; // pc usage skill level
private boolean accvis; // have a healthy vision?
private countWorSal(); // to count salary of some worker
private countAssigExp(); // to measure expences on some assigment
... | true |
0e1f1a5abe54192ad28dadebe4cab711165154bb | Java | bsw1223/itsroom | /itsroom/src/main/java/com/nothouse/itsroom/repository/RoomRepository.java | UTF-8 | 698 | 2.109375 | 2 | [] | no_license | package com.nothouse.itsroom.repository;
import java.util.List;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import com.nothouse.itsroom.entity.Room;
import com.nothouse.itsroom.entity.RoomPK;
... | true |
8cb061dd1a639b957c4aad3df3d3362945d6f419 | Java | sigpwned/stork | /src/main/java/com/sigpwned/stork/engine/compilation/ast/StmtAST.java | UTF-8 | 534 | 2.28125 | 2 | [] | no_license | package com.sigpwned.stork.engine.compilation.ast;
import com.sigpwned.stork.engine.compilation.Translator;
import com.sigpwned.stork.engine.compilation.ast.stmt.DeclareStmtAST;
import com.sigpwned.stork.engine.compilation.ast.stmt.EvalStmtAST;
import com.sigpwned.stork.engine.runtime.Stmt;
public abstract class Stmt... | true |
831c3ab6df9d4e2bb9d23e6fd91298910b76bb87 | Java | brunofamiliar/gold | /src/br/com/gold/utils/TokensAddOperation.java | UTF-8 | 681 | 2.375 | 2 | [] | no_license |
package br.com.gold.utils;
import br.com.gold.lexion.*;
import br.com.gold.lexion.LexicalAnalyzer.Symbols;
import java.util.ArrayList;
import java.util.List;
public class TokensAddOperation implements Operation {
private List<Token> tokens;
int line, column;
String image, classToken;
public TokensAddOperati... | true |
3b630232fe642e7aeb7f55d455564741c476dd62 | Java | jykun/react-native-invoke | /android/react-native-invoke/src/main/java/com/wix/reactnativeinvoke/ContextWrapper.java | UTF-8 | 1,327 | 2.359375 | 2 | [
"MIT"
] | permissive | package com.wix.reactnativeinvoke;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.NativeViewHierarchyManager;
import java.lang.ref.WeakReference;
/**
* Created by rotemm on 25/10/2016.
*/
public class ContextWrapper {
private static WeakReference<ReactApplicatio... | true |
755bc454170ce89863171e1d2a020bb8c0e66fe4 | Java | PapithaKp/GetQuotes-Filters | /src/test/java/com/Sulekha/User/UserSide/Listing_GetQuote.java | UTF-8 | 1,278 | 1.875 | 2 | [] | no_license | package com.Sulekha.User.UserSide;
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.junit.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.BeforeClass;
import org.testng.annota... | true |
98c8789fe3950519cc4f227027a70565f6b66cbf | Java | GuillaumeFrtn/testNumberOfChildren | /NumberOfChildren_v1_test/src/test/Interface5.java | UTF-8 | 72 | 1.992188 | 2 | [] | no_license | package test;
public interface Interface5 {
public int getNumber();
}
| true |
41d784e3e59fd6cd3fae05212483f56028b3c81c | Java | atishayjain25/Virtual-Combat | /atishay-workspace-Dec-9-0300hrs/target/robocode-1.7.2.2-Beta-src/robocode-1.7.2.2-Beta/robocode.battle/src/main/java/net/sf/robocode/battle/ClassicRules.java | UTF-8 | 749 | 1.53125 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2001, 2009 Mathew A. Nelson and Robocode contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies thi... | true |
d9e1a68ad265c2a8dfbd8f8da934a8ce4600c600 | Java | pilipalala/Treasure | /Treasure/app/src/main/java/com/wyj/treasure/customcontrol/CustomControlActivity.java | UTF-8 | 1,653 | 2.25 | 2 | [] | no_license | package com.wyj.treasure.customcontrol;
import com.wyj.treasure.R;
import com.wyj.treasure.activity.BaseActivity;
import com.wyj.treasure.mode.ItemInfo;
import java.util.List;
public class CustomControlActivity extends BaseActivity {
@Override
protected int getContentViewID() {
r... | true |
4e30d9cb8f13d361ac9c1530c2b2aff734fd38c8 | Java | CaptainGlac1er/swen-356-sublet | /src/main/java/sublet/Commands/Listing/SetVisibilityListing.java | UTF-8 | 898 | 2.140625 | 2 | [] | no_license | package sublet.Commands.Listing;
import spark.Request;
import sublet.Commands.LoggedInCommand;
import sublet.Exceptions.DatabaseException;
import sublet.Exceptions.PermissionException;
import sublet.controllers.Controller;
import sublet.models.Listing;
import sublet.models.Listings;
import sublet.util.Path;
public cl... | true |
30a7b309728fe6fc8501083a32bdcdff20beffae | Java | SalmanQureshi97/WhatsAppClone | /app/src/main/java/com/salmanqureshi/i170282_170019/UserSearchAdapter.java | UTF-8 | 4,885 | 2.21875 | 2 | [] | no_license | package com.salmanqureshi.i170282_170019;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerv... | true |
469a7dad0f3d1acda73c31b1a9b409cfe1f6d802 | Java | xhoiyenx/iats | /app/src/main/java/com/hoiyen/iats/models/CommentModel.java | UTF-8 | 390 | 2.21875 | 2 | [] | no_license | package com.hoiyen.iats.models;
public final class CommentModel {
public String username;
public String avatar;
public String comment;
public String date;
public CommentModel(String username, String avatar, String comment, String date) {
this.username = username;
this.avatar = avat... | true |
07597468dc40cb434c210faf088c2282c4f82db0 | Java | RenHongJia/toolbox | /core/src/main/java/eu/amidst/core/learning/parametric/bayesian/StreamingVariationalBayesVMP.java | UTF-8 | 14,144 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this... | true |
36948db9844415592db5eb3a19074e1af0e7e3b8 | Java | bnovoa/PosTrainerOpen | /app/src/main/java/com/wiseass/postrainer/ui/fragment/FragmentManageReminder.java | UTF-8 | 7,184 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package com.wiseass.postrainer.ui.fragment;
import android.content.Context;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.AppCompatCheckBox;
import android.support.v7.widget.AppCompatEditText;
import android.util.Log;
import android.view.Lay... | true |
2063ecd78a2bce2c22f2efbae96d1b2a18492490 | Java | BobGranata/GranataProject | /wspa/src/com/wspa/app/notification/PostStruct.java | UTF-8 | 399 | 2.15625 | 2 | [] | no_license | package com.wspa.app.notification;
public class PostStruct {
public String Caption;
public String PostUrl;
public String ImageUrl;
public String ShortText;
public String PreviewText(){
String Result ="";
if(ShortText != null){
Result += ShortText + " ";
}
if(Caption != null){
Result += Caption + "... | true |
8f724d6adc507e9fe788f753ebee8b0978d77cda | Java | MilesAlfrey/IdleLife | /app/src/main/java/com/example/idlelife/Fragments/TestsFragment.java | UTF-8 | 24,225 | 2.296875 | 2 | [] | no_license | package com.example.idlelife.Fragments;
import android.app.AlertDialog;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.res.ColorStateList;
import android.graphics.PorterDuff;
import android.os.Bundle;
import android.os.Handler;
import android.util.Pair;
import android.... | true |
4d8beb0833de2348617faa88aaa9f4dde98c2ed3 | Java | wukongcxy/design-pattern2019 | /src/main/java/com/cxy/designpattern/strategy/GreenDuck.java | UTF-8 | 217 | 2.40625 | 2 | [] | no_license | package com.cxy.designpattern.strategy;
/**
* @author chenxinyue <chenxinyue@kuaishou.com>
* Created on 2019-12-30
*/
public class GreenDuck extends Duck {
public GreenDuck() {
this.flyable = new NormalFly();
}
}
| true |
cf804e65ea6939fc57bc8f323e81305ece0a66be | Java | garciapau/Transferator | /infra/rest/src/main/java/com/acme/transferator/infra/rest/contract/model/AddUserPostRequest.java | UTF-8 | 1,252 | 2.421875 | 2 | [] | no_license | package com.acme.transferator.infra.rest.contract.model;
public class AddUserPostRequest {
private String identifier;
private String initialBalance;
public String getInitialBalance() {
return initialBalance;
}
public void setInitialBalance(String initialBalance) {
this.initialBala... | true |
8126ea16b0725f4fd7de7e308fac9b97a32e7da6 | Java | brauni800/Teatro-Patito-Feo | /src/elementos/ElementoObras.java | UTF-8 | 356 | 1.835938 | 2 | [] | no_license | package elementos;
import eventos.EventosObras;
import paneles.PanelObras;
import vista.VentanaPrincipal;
public class ElementoObras extends ElementoFactory {
public ElementoObras(VentanaPrincipal ventana) {
super(ventana);
super.panel = new PanelObras();
ventana.setPanelDinamico(super.panel);
super.eventos... | true |
10aa6474a5acf2353f0cbe2ca1316ff788601720 | Java | laozhu123/JianShu | /app/src/main/java/com/zhu/zjut/jianshu/activity/BaseActivity.java | UTF-8 | 2,626 | 2.15625 | 2 | [] | no_license | package com.zhu.zjut.jianshu.activity;
import android.app.Activity;
import android.content.Context;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.app.ActionBarActivity;
import andro... | true |
76166e55da9e8a4fbc0429f6e4937edac5477f79 | Java | cocan4/fullbasketballweb | /fullbasketballweb/src/main/java/com/finalBasketballWeb/fullbasketballweb/service/PlayerService.java | UTF-8 | 1,143 | 2.6875 | 3 | [] | no_license | package com.finalBasketballWeb.fullbasketballweb.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.finalBasketballWeb.fullbasketballweb.beans.Player;
import com.finalBasketballWeb.fullbasketballweb.exceptio... | true |
86ac307c77fe478c699febbefa4030f6ac09a846 | Java | liubao19860416/personal-web-project | /personal-web-project/src/main/java/system/SystemInOutTest.java | UTF-8 | 1,332 | 3.375 | 3 | [] | no_license | package system;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
/**
* 字符数据从输入流读到输出流中
* 使用System.in和System.out
*
* @author Liubao
* @2014年12月3日
*
*/
public class SystemInOutTest {
... | true |
bab52ad486c084bc54ffda67ec9a058e3d67c31a | Java | JohnLimHTL/Diplomarbeit-Server | /mahlzeit_backend/src/main/java/io/swagger/client/model/KundenPropAllergene.java | UTF-8 | 3,597 | 1.976563 | 2 | [] | no_license | /*
* parat
* Development
*
* OpenAPI spec version: v1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.swagger.client.model;
import java.util.Objects;
import java.util.Arrays;... | true |
3aac71e629220fee504f0b741a83f0e8385fc53d | Java | uchicom/repty | /src/main/java/com/uchicom/repty/draw/OffsetStringDrawer.java | UTF-8 | 2,614 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | // (C) 2022 uchicom
package com.uchicom.repty.draw;
import com.uchicom.repty.Repty;
import com.uchicom.repty.dto.Draw;
import com.uchicom.repty.dto.Font;
import com.uchicom.repty.dto.Text;
import com.uchicom.repty.dto.Value;
import com.uchicom.repty.util.DrawUtil;
import java.awt.Color;
import java.io.IOException;
imp... | true |
b5639ba8f04e29a20add4e42c2d1e199cff3557c | Java | grayros/carmelo | /src/main/java/carmelo/examples/server/rpc/action/RpcTestAction.java | UTF-8 | 550 | 2.078125 | 2 | [] | no_license | package carmelo.examples.server.rpc.action;
import org.springframework.stereotype.Component;
import carmelo.examples.server.rpc.dto.TestArg1Dto;
import carmelo.examples.server.rpc.dto.TestArg2Dto;
import carmelo.examples.server.rpc.dto.TestReturnDto;
import carmelo.servlet.annotation.PassParameter;
@Component
public... | true |
752904ef24a2b33170a37111d9c5e255d05bb833 | Java | PalinaAlbrechtsen/lesson5 | /src/lesson5String/PalindromLine.java | UTF-8 | 693 | 3.734375 | 4 | [] | no_license | package lesson5String;
import java.util.Scanner;
public class PalindromLine {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter line:");
String myLine = in.nextLine();
System.out.println(isLinePalindrom(myLine));
}
p... | true |
d0139aed54fd428a4a50e201dafc6ab25d1fc38c | Java | Seliutina/GoJava | /src/Module04/Shapes/LineDistance/PointOne.java | UTF-8 | 301 | 2.5625 | 3 | [] | no_license | package Module04.Shapes.LineDistance;
public class pointOne {
double x1;
double y1;
public double GetX1(){
return x1;
}
void SetPointOne(double a, double b){
x1 = a;
y1 = b;
}
void SetPointOne(double a){
x1 = a;
y1 = a;
}
}
| true |
65927334bccfecadef21c7c8af6f533fa3db2eb5 | Java | muazahamd/RCP_Application | /RCP Application/src/com/rcp/application/editor/PersonEditor.java | UTF-8 | 4,174 | 2.5 | 2 | [] | no_license | package com.rcp.application.editor;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.sw... | true |
08959c57edc381353ef7ef0a880551362c751e72 | Java | Scrubu/APCS-2 | /10Deque/MyDeque.java | UTF-8 | 1,669 | 3.421875 | 3 | [] | no_license | import java.util.*;
public class MyDeque<T>{
private Object[]ary;
private int size,head,tail;
public MyDeque(){
ary = new Object[5];
size = 0;
head = 1;
tail = 0;
}
public int getS(){
return size;
}
public int getSize(){
return ary.length;
}
public void getHead(){
System... | true |
46d7c1e49c8e6bc32850af5ff950e954285dd811 | Java | svsaikumar/lara | /lara/sep-4th batch/java/41.Wrapper classes/src/M17.java | UTF-8 | 492 | 3.296875 | 3 | [] | no_license | class M17
{
static void test(Integer i)
{
System.out.println("test(Integer)");
}
public static void main(String[] args)
{
test(10);// test(new Integer(10))
System.out.println("=============");
Integer obj = new Integer(90);
System.out.println(obj);
test(obj);// test(obj.intValue());
System.out.pri... | true |
32f067cec05afa84eed56ffd289735fc83158341 | Java | joker-learner/sprinbootShiro | /src/main/java/com/lc/config/ShireConfi.java | UTF-8 | 4,497 | 2.03125 | 2 | [] | no_license | package com.lc.config;
import at.pollux.thymeleaf.shiro.dialect.ShiroDialect;
import org.apache.shiro.authc.credential.HashedCredentialsMatcher;
import org.apache.shiro.cache.ehcache.EhCacheManager;
import org.apache.shiro.mgt.AuthenticatingSecurityManager;
import org.apache.shiro.mgt.DefaultSecurityManager;
import or... | true |
ce8d43321a860b9c626c0fe27e5667912befe034 | Java | shchurin-aleksandr/moonscript-idea | /src/com/eightbitmage/moonscript/lang/psi/statements/MoonFunctionDefinitionStatement.java | UTF-8 | 1,264 | 1.5 | 2 | [
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | /*
* Copyright 2010 Jon S Akhtar (Sylvanaar)
*
* 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 applicabl... | true |
be9d82166f302e8250d9e7243f4cd56773470039 | Java | issyu-summer/middlerware1 | /src/main/java/org/middleware/demo1/acitvemq/controller/ImSystemController.java | UTF-8 | 13,220 | 2.21875 | 2 | [] | no_license | package org.middleware.demo1.acitvemq.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;
import org.apache.activemq.command.ActiveMQQueue;
import org.middleware.demo1.acitvemq.config.Response;
import org.middleware.demo1.acitve... | true |
7dded3d97acf56be220ccac9adea087d754eb10b | Java | kitianFresh/javaStudy | /javaStudy/Socket/UdpClient.java | UTF-8 | 571 | 2.421875 | 2 | [] | no_license | import java.io.*;
import java.net.*;
public class UdpClient {
public static void main(String args[]) throws Exception{
long l = 10000L;
ByteArrayOutputStream bos = new ByteArrayOutputStream();
DataOutputStream dos = new DataOutputStream(bos);
dos.writeLong(l);
byte[] buf =bos.toByteArray();
//byte[] buf =(... | true |
5d4b11ae2411a71995e8028c96530b2fd7bccb93 | Java | oracle/olcut | /olcut-core/src/test/java/com/oracle/labs/mlrg/olcut/config/SimpleFieldConfigurable.java | UTF-8 | 7,552 | 1.8125 | 2 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-protobuf",
"EPL-2.0",
"EPL-1.0",
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2004-2020, Oracle and/or its affiliates.
*
* Licensed under the 2-clause BSD license.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the abov... | true |
e2b3096672ba6c0e662597b55efc3d43733f2459 | Java | nitincoded/supplycat | /src/main/java/com/enterprisecat/biz/PartStatusHandler.java | UTF-8 | 1,150 | 2.234375 | 2 | [] | no_license | package com.enterprisecat.biz;
import com.enterprisecat.entity.PartStatus;
import com.enterprisecat.util.HibernateUtility;
import javax.persistence.Query;
import java.util.List;
/**
* Created by Developer on 4/7/17.
*/
public class PartStatusHandler {
public static List getList() throws Exception {
Que... | true |
55fb03442158f430288fcab53bb1c1ce41a2ad32 | Java | RafalWrzesniak/CurrencyExchange | /Currency.java | UTF-8 | 1,611 | 2.890625 | 3 | [] | no_license | package kambu.rekrutacja;
import com.fasterxml.jackson.databind.JsonNode;
import lombok.Getter;
import lombok.Setter;
import java.util.Objects;
public class Currency {
// == fields ==
@Getter private final String name;
@Getter private final String code;
@Getter @Setter private double e... | true |
46b5240bc117abec6bde4d41473fa4c0c3ff1192 | Java | sonicmax/bloodrogue | /app/src/main/java/com/sonicmax/bloodrogue/renderer/vbos/SpriteBatch.java | UTF-8 | 9,610 | 2.796875 | 3 | [] | no_license | package com.sonicmax.bloodrogue.renderer.vbos;
import android.opengl.GLES20;
import android.util.Log;
import com.sonicmax.bloodrogue.renderer.shaders.ShaderAttributes;
import com.sonicmax.bloodrogue.utils.BufferUtils;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
/**
* Creates... | true |
928aa06b65030c0f73e10ded2848893c8226cf67 | Java | KoniWatson/CS308_Boston_Metro | /src/Edge.java | UTF-8 | 1,511 | 4.3125 | 4 | [] | no_license | /**
* Edge.java
* Implementation of EdgeADT for a weighted edge connecting two nodes with a label
*/
public class Edge implements EdgeADT {
private String label;
private NodeADT nodeA;
private NodeADT nodeB;
private int weight;
/**
* Constructor for the Edge, takes a label, 2 nodes and a w... | true |
4c3bc805671d97dba94bc0152414f57a57dbe44a | Java | google/compile-testing | /src/test/java/com/google/testing/compile/TreeContextTest.java | UTF-8 | 4,751 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2014 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | true |
b29fe236f91ebecdb09c3d95d93d543946eb8b19 | Java | jeniq/ProjectManagement | /src/main/java/com/company/config/WebAppConfig.java | UTF-8 | 3,355 | 2.0625 | 2 | [] | no_license | package com.company.config;
import com.company.filters.LoginPageInterceptor;
import org.postgresql.ds.PGPoolingDataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springfra... | true |
75554057231b1784da8b25e057d32a1558ca60ba | Java | yuehanniubi/FleaMarket | /fleamarket-core/src/main/java/com/fleamarket/core/mapper/LetterMapper.java | UTF-8 | 298 | 1.71875 | 2 | [] | no_license | package com.fleamarket.core.mapper;
import com.fleamarket.core.IMapper;
import com.fleamarket.core.model.Letter;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface LetterMapper extends IMapper<Letter> {
List<Letter> selectSessionList(Integer uid);
} | true |
55db7e8b90e23c5b5a2e54fb7e80f89c634a680c | Java | altitdb/swagger-tc-generator | /src/main/java/com/matera/swagger/loader/JsonLoader.java | UTF-8 | 978 | 2.578125 | 3 | [] | no_license | package com.matera.swagger.loader;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import org.apache.commons.io.IOUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class JsonLoader {
private static f... | true |
fad8d19d4a9cf9f20405e57636d9225766e6ff7f | Java | k896152374/Kodgames | /Server/GameServer/gen/xbean/RoleRank.java | UTF-8 | 3,359 | 2.421875 | 2 | [] | no_license | package xbean;
import limax.codec.OctetsStream;
import limax.codec.MarshalException;
public final class RoleRank extends limax.zdb.XBean {
private int roleId;
private String nickname;
private int score;
RoleRank(limax.zdb.XBean _xp_, String _vn_) {
super(_xp_, _vn_);
nickname = "";... | true |
8ef24328c728471022aac0f2df74480eddce5d17 | Java | grimjjow/ExplorationProject | /src/main/java/Group10/Agents/GuardMode/BoltzmannAgent.java | UTF-8 | 24,856 | 2.359375 | 2 | [] | no_license | package Group10.Agents.GuardMode;
import Group10.Agents.Functionalities.ActionsQueue;
import Group10.Algebra.Vector;
import Group10.Engine.Game;
import Interop.Action.*;
import Interop.Agent.Guard;
import Interop.Geometry.Angle;
import Interop.Geometry.Direction;
import Interop.Geometry.Distance;
import Interop.Geomet... | true |
65e3e53f7bbef395bb9ea39c7daf89ea269526ef | Java | pbj1203/NUMAD14S-PBJ | /src/edu/neu/madcourse/bojunpan/finalproject/Final_Project_GameResults.java | UTF-8 | 4,183 | 2.1875 | 2 | [] | no_license | package edu.neu.madcourse.bojunpan.finalproject;
import java.util.prefs.Preferences;
import edu.neu.madcourse.bojunpan.R;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import android.pref... | true |
f19eef2db9ca93f02e2bac11ac6124afb7141b5e | Java | fkimuu/RestClient | /src/main/java/com/example/demo/SpringRestClient.java | UTF-8 | 258 | 1.625 | 2 | [] | no_license | package com.example.demo;
import org.springframework.web.client.RestTemplate;
public class SpringRestClient {
private static RestTemplate restTemplate = new RestTemplate();
private static final String baseURL = "http://localhost:8888/persons/1";
}
| true |
6cd3a1b3566e8339151f7e9ffceb7398712bf4f9 | Java | Mahmoud-S-Ali/Sarcazon | /app/src/main/java/com/joyapeak/sarcazon/data/network/model/server/comment/CommentRequest.java | UTF-8 | 10,700 | 2.3125 | 2 | [] | no_license | package com.joyapeak.sarcazon.data.network.model.server.comment;
import com.joyapeak.sarcazon.data.network.model.server.ActionRequest;
import com.joyapeak.sarcazon.data.network.model.server.BaseItemsRequest;
/**
* Created by Mahmoud Ali on 5/1/2018.
*/
public class CommentRequest {
// Comments
public stat... | true |
e0c07737914067e1b4305a9ebc101a64f5b4e86d | Java | Huminecraft/HumineRespawn | /src/com/huminecraft/huminerespawn/listeners/RespawnListener.java | UTF-8 | 813 | 2.359375 | 2 | [] | no_license | package com.huminecraft.huminerespawn.listeners;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerRespawnEvent;
import com.huminecraft.huminerespawn.commands.CommandDeathroom;
import com.huminecraft.huminerespawn.objects.Coun... | true |
baba93dbad3686e718e59ef5ba92b95e79ef9e69 | Java | mikhail-sokolov/gof_examples | /src/main/java/com/luxoft/gof/factorymethod/accounts/AccountFactory.java | UTF-8 | 153 | 2.03125 | 2 | [] | no_license | package com.luxoft.gof.factorymethod.accounts;
/**
* Created by teacher109 on 8/23/2017.
*/
public interface AccountFactory {
Account create();
}
| true |
d721528216f3ec7172b56c35bc2ac8a6a8272c8d | Java | JonasMotaBr/Curso-JSP | /curso_jsp/src/beans/beansCursoJSP.java | UTF-8 | 571 | 2.609375 | 3 | [] | no_license | package beans;
public class beansCursoJSP {
private String nome;
private String ano;
private String sexo;
public int Soma(int... nums) {
int total=0;
for (int i = 0; i < nums.length; i++) {
total+= nums[i];
}
return total;
}
public String getNome() {
return nome;
}
public void setNome(Str... | true |
fd8f8a012cd65a422e23c9e82685f1f7b44126c2 | Java | SebastianGironArcila/Asistente-de-voz-PIPEC-UV | /src/cliente/ThreadCliente.java | UTF-8 | 15,757 | 2.40625 | 2 | [] | no_license | package cliente;
/*
* 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.
*/
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStr... | true |
507ff7d7b8dea334b1b565e4586af7ff09afc30e | Java | HarryQing/Harry-s-Java-Homwork | /wyq.test5 20.9.4.java | UTF-8 | 2,184 | 3.5 | 4 | [] | no_license | package TheFirst;
/**
*
* @author 庆子哥
*2020年9月4日 下午12:41:45
*description:
*(1)定义该类的bookID、bookName、price、publisher、author等属性,各属性的数据类型大家根据实际进行定义,bookID的值要求自动增长(其值是每个Book对象产生时,自动让bookID加1得到)
*(2)分别定义该类的无参构造函数、带bookName、author参数的构造函数、以及带除bookID之外的其他所有属性参数的构造函数;
*(3)bookID的值要求在构造代码块中形成;
*(4)定义Book类所有属性的访问器方法,bookI... | true |
bfaec33c9971ba68a2abfbcddc08da4654c6e7ae | Java | Jean-at-simplon/Java-chrono | /Chronopost/src/fr/simplon/chronopost/Main.java | UTF-8 | 977 | 2.703125 | 3 | [] | no_license | package fr.simplon.chronopost;
public class Main {
public static void main(String[] args) {
ListePetitVehicule listePetitVehicule = new ListePetitVehicule();
ListeGrosVehicule listeGrosVehicule = new ListeGrosVehicule();
listePetitVehicule.constituerPetitVehicule();
listePetitVehicule... | true |
3fbf1783d4303101ce189ea9531ea80598a83aa3 | Java | sdarangoh/ST0245-003 | /proyecto/codigo/Tester.java | UTF-8 | 5,418 | 2.734375 | 3 | [] | no_license | import java.util.ArrayList;
/**
* Write a description of class tRAINER here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Tester{
Node n = new Node();
Reader r = new Reader();
private Tree tree = new Tree(r.list);
Node empty = new Node();
public Tester(Stri... | true |
7b8c0e2d3d0df5cb4dc9f115158d35c13ba20409 | Java | bogdansolga/spring-cloud-intro | /order-service/src/main/java/com/sg/spring/cloud/order/service/dto/OrderDTO.java | UTF-8 | 989 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | package com.sg.spring.cloud.order.service.dto;
import java.io.Serializable;
import java.util.Objects;
import java.util.Set;
public class OrderDTO implements Serializable {
private final Set<ProductDTO> products;
private final double totalPrice;
public OrderDTO(final Set<ProductDTO> products, final doubl... | true |
55a21f925b65bfed26f2098e2c3b4377da2d60a3 | Java | grisha99/spring-context-hiber | /src/main/java/ru/grishchenko/dao/BuyerDAO.java | UTF-8 | 1,395 | 2.46875 | 2 | [] | no_license | package ru.grishchenko.dao;
import org.hibernate.Session;
import org.springframework.stereotype.Component;
import ru.grishchenko.configs.DBFactory;
import ru.grishchenko.models.Buyer;
import ru.grishchenko.models.Product;
import java.util.ArrayList;
import java.util.List;
@Component
public class BuyerDAO {
priva... | true |
b52ea0089f0578cdc7de7ebd5dbef326eec5fbd9 | Java | YessyNP/midterm-pbo | /src/id/ac/polinema/midterm/DiscountItem.java | UTF-8 | 1,571 | 3 | 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 id.ac.polinema.midterm;
/**
*
* @author YESSYNP
*/
public class DiscountItem extends Item {
private float d... | true |
1c1f17a14dce814a74f39aaa4a73ca7635d56e5c | Java | PauloLeca/Wadden | /src/nl/vogelbescherming/wadvogels/SplashActivity.java | UTF-8 | 1,362 | 2.078125 | 2 | [] | no_license | package nl.vogelbescherming.wadvogels;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.os.Bundle;
import android.os.Handler;
public class SplashActivity extends Activi... | true |
ad94b647db43c188fe2aa58998646ad783dba05e | Java | Iqboliddin/debts_book | /src/main/java/service/DebtService.java | UTF-8 | 2,320 | 2.796875 | 3 | [] | no_license | package service;
import model.authorization.Debtor;
import model.debt.Debt;
public class DebtService extends BaseService{
private Debt[] debts = new Debt[1000];
private int index = 0;
@Override
public boolean add(Object object) {
return false;
}
@Override
public boolean addDeb... | true |
fa8684b659c1da0e2268fb25faa241b282dac85f | Java | dalcaa/Sabloane | /Sabloane/Sabloane/src/Builder/JSonBuilder.java | UTF-8 | 857 | 2.875 | 3 | [] | no_license | package Builder;
import Elements.Book;
import Elements.Element;
import java.io.FileReader;
import java.util.Iterator;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
public class JSonBuilder implements Builder{
private String filePath;
private E... | true |
cb0c662358e5d270b8363f6ddb3ab5c207a68c9f | Java | jtlai0921/JAVA-example | /程式實例/ch20/ch20_22.java | BIG5 | 431 | 3.203125 | 3 | [] | no_license | class MyException extends Exception { // MyExceptionO
}
public class ch20_22 {
public static void main(String[] args) {
try {
System.out.println("try϶");
throw new MyException(); // ߥX`
}
catch(MyException e) { // MyException`()
System.out.println("catch϶");
System.out.println("ڪ`OMyExcept... | true |
b3dd98cebf5817897232f8902813f7542e8a9dcd | Java | mashanxue/movie | /src/main/java/com/movie/service/impl/DeleteMoviesServiceImpl.java | UTF-8 | 577 | 2.109375 | 2 | [] | no_license | package com.movie.service.impl;
import com.movie.entity.Movies;
import com.movie.mapper.DeleteMoviesMapper;
import com.movie.service.DeleteMoviesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
//删除电影信息
@Service
public class DeleteMoviesServiceImpl ... | true |
9076749c4f5fa326658db1bd67514c26061ff789 | Java | gabrielSpassos/java-sandbox | /receipt-poc/src/main/java/com/gabrielspassos/poc/Main.java | UTF-8 | 426 | 2.296875 | 2 | [] | no_license | package com.gabrielspassos.poc;
import com.gabrielspassos.poc.service.ReceiptService;
import java.io.IOException;
import java.util.List;
public class Main {
public static void main(String[] args) throws IOException {
List<String> receiptSplittedContent = ReceiptService.createReceiptSplittedContent();
... | true |
16c4724840528a8ec6f031b71ef1333736ef7221 | Java | ddooxthawsng/DangKyHocPhan | /src/DAO/IHocPhanDAO.java | UTF-8 | 609 | 1.828125 | 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 DAO;
import Entity.HocPhan;
import java.util.ArrayList;
/**
*
* @author User
*/
public interface IHocPhanDAO {
public ... | true |
7f2b7eaf9eeafc7bf598cd9db92ba198f4e39b49 | Java | wingersoftprojects/ISMS | /src/java/beans/Agent_typeBean.java | UTF-8 | 5,203 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | /*
* 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 beans;
import entityclasses.Agent_type;
import entityclasses.ISMSPersistentManager;
import java.io.Serializable;
imp... | true |
bd6e97518f0d83213626ab78ca48f954058a2437 | Java | vitorsfarias/novi-public | /ponder2/src/main/java/eu/novi/ponder2/Domain.java | UTF-8 | 13,118 | 2.109375 | 2 | [] | no_license | /**
* Created on Jul 4, 2005
* Copyright 2005 Imperial College, London, England.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your... | true |