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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
cf6aa0a46bca866af43a2b119ca4b52535a89ab9 | Java | zippo88li/netstudy | /src/main/java/com/gupao/lzp/pattern/factory/factorymethod/NokiaMobileFactory.java | UTF-8 | 314 | 2.3125 | 2 | [] | no_license | package com.gupao.lzp.pattern.factory.factorymethod;
import com.gupao.lzp.pattern.factory.simplefactory.IMobile;
import com.gupao.lzp.pattern.factory.simplefactory.NokiaMobile;
public class NokiaMobileFactory implements IMobileFactory {
public IMobile create() {
return new NokiaMobile();
}
}
| true |
8883771b734c3a9ae0b949e120988d75917fa0ca | Java | yuripourre/etyllica-slides | /Mario Slide/src/MarioExample.java | UTF-8 | 876 | 2.140625 | 2 | [] | no_license |
import mario.editor.MarioMapEditor;
import mario.stages.first.YoshiIsland2;
import br.com.etyllica.EtyllicaFrame;
import br.com.etyllica.context.Application;
import br.com.etyllica.core.loader.JoystickLoader;
public class MarioExample extends EtyllicaFrame {
private static final long serialVersionUID = 1L;
publi... | true |
3a67965a67320da28f29ec026ca9bf0557ec05a6 | Java | RevelationCollection/study | /study-jdk/src/main/java/com/algorithm/sort/tree/TreeNode.java | UTF-8 | 992 | 3.53125 | 4 | [] | no_license | package com.algorithm.sort.tree;
public class TreeNode {
public int val;
public TreeNode left;
public TreeNode right;
public TreeNode(int x) { val = x; }
public static TreeNode initRoot(int[] arr){
if (arr==null||arr.length<1){
return null;
}
TreeNode root = ne... | true |
d76ab45048e3df7f970cc646a9bacfe24199b9e0 | Java | TOOP4EU/toop-commons-ng | /toop-edm/src/main/java/eu/toop/edm/xml/IJAXBVersatileReader.java | UTF-8 | 9,430 | 1.898438 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"EUPL-1.2"
] | permissive | /**
* Copyright 2021 - TOOP Project
*
* This file and its contents are licensed under the EUPL, Version 1.2
* or – as soon they will be approved by the European Commission – subsequent
* versions of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
* You may obtain a... | true |
3e449459d6cb8119212a9e2f2a6943d4c868235f | Java | MagnusPoppe/6120Eksamen2017 | /app/src/main/java/no/byteme/magnuspoppe/eksamen/AsynkronDestinasjon.java | UTF-8 | 12,185 | 2.546875 | 3 | [] | no_license | package no.byteme.magnuspoppe.eksamen;
import android.os.AsyncTask;
import android.util.Log;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import jav... | true |
ba6890d5a72cd4850bfd307907b8ca75b7b98a60 | Java | mcdehaan/GildedRose-Refactoring-Kata | /Java/src/test/java/com/gildedrose/GildedRoseTestHelper.java | UTF-8 | 1,251 | 3.03125 | 3 | [
"MIT"
] | permissive | package com.gildedrose;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class GildedRoseTestHelper {
public void testAssertion(Item[] items, int expectedSellInChange, int expectedQualityChange) throws Exception {
//Assert each item in list of items
for (Item itemUnderTest : it... | true |
6c3336cb9bf6dfae0386455d0c617a7d6c91b75d | Java | suxuehui/OMS-2 | /src/main/java/com/oms/core/customer/service/ClientServiceImpl.java | UTF-8 | 1,777 | 2.15625 | 2 | [] | no_license | package com.oms.core.customer.service;
import com.oms.core.customer.dao.ClientDao;
import com.oms.core.customer.entity.Client;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.spring... | true |
837244d8545c4aa156e341a9fc27d1e08d62808b | Java | aixohub/aixohub-leetcode | /src/main/java/com/aixohub/leetcode/simple/validParentheses/ValidParentheses.java | UTF-8 | 1,629 | 3.671875 | 4 | [
"Apache-2.0"
] | permissive | package com.aixohub.leetcode.simple.validParentheses;
import com.google.common.primitives.Chars;
import java.nio.charset.Charset;
import java.util.Deque;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
/**
* 给定一个只包括 '(',')','{','}','[',']' 的字符串 s ,判断字符串是否有效。
*
* 有效字符串需满足:
*
* 左括号必须用... | true |
40a6090a3260bd3c4a58f8d8730bc8230c0b166e | Java | XoYoKing/HN | /app/src/main/java/com/example/admin/hn/model/OrderUseInfo.java | UTF-8 | 1,285 | 2.140625 | 2 | [] | no_license | package com.example.admin.hn.model;
/**
* 船舶资料管理 订单为已选状态下数据对象
*/
public class OrderUseInfo {
public String id;//资料id
public String code;//资料编号
public String chs_name;//中文名
public String eng_name;//英文名
public String doc_id;//
public int quantity;//购买数量
public int storage_amount;//库存
pu... | true |
49cd9b604abd0931e877c2fea0fb290bc3d4fad2 | Java | gdufexzq/DataStructures | /src/com/gdufe/extend/CountPrimeSetBits.java | UTF-8 | 1,163 | 3.28125 | 3 | [] | no_license | package com.gdufe.extend;
/**
* @Description: ${todo}
* @author xuzq
* @date 2020/1/13 11:34
* @version V1.0
*/
public class CountPrimeSetBits {
public static int countPrimeSetBits(int L, int R) {
int count = 0;
int sum = 0;
for(int i = L; i <= R; i++) {
String str = Intege... | true |
c41c6d9136216cb40ef289f46985530d15d8c07c | Java | sararathje/ENSF-409-Final-Project | /BackEnd/FileHelper.java | UTF-8 | 1,853 | 3.046875 | 3 | [] | no_license | package BackEnd;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import Constants.ConnectionConstants;
public class FileHelper implements Con... | true |
b3cde29d6752f8550c8c3adc1ffdbdd1488db485 | Java | W1nt0r/mge-gadgeothek | /app/src/main/java/com/example/schef/gadgeothek/ServerAddFragment.java | UTF-8 | 6,024 | 2.09375 | 2 | [] | no_license | package com.example.schef.gadgeothek;
import android.app.Activity;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.app.Fragment;
import android.support.design.widget.TextInputLayout;
import android.support.v7.app.Ap... | true |
1af52290db0a50ece4b427ea2e5aeb37bcfa414c | Java | nicohe/alg | /tp4_ayed/src/tp04/ejercicio1/NodoGeneral.java | UTF-8 | 2,117 | 2.921875 | 3 | [] | no_license | package tp04.ejercicio1;
import tp02.ejercicio2.ColaGenerica;
import tp02.ejercicio2.ListaEnlazadaGenerica;
import tp02.ejercicio2.ListaGenerica;
public class NodoGeneral<T> {
private T dato;
private ListaGenerica<NodoGeneral<T>> listaHijos;
public NodoGeneral(T dato){
this.dato = dato;
... | true |
5e33c995d214bc7ea65f81df616beaa95371d6e0 | Java | mjhost/anagrafica | /server/code/src/main/java/org/mjhost/anagrafica/repository/OrganizationRepository.java | UTF-8 | 307 | 1.671875 | 2 | [] | no_license | package org.mjhost.anagrafica.repository;
import org.mjhost.anagrafica.model.node.Organization;
import org.springframework.data.neo4j.repository.GraphRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface OrganizationRepository extends GraphRepository<Organization> {}
| true |
f5d5cab9bd641acd06338cf99f52df77b9a01e97 | Java | AdrChacon/Dots---Proyecto-1 | /dots/src/GUI/MainClass.java | UTF-8 | 800 | 3.34375 | 3 | [] | no_license | import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class MainClass extends JPanel {
/*Busca las cordenadas en "x" y en "y" para saber donde pintar la figura*/
public void paint(Graphics g) {
int xpoints[] = {155, 205, 255, 255, 255, 255, 205, 155};
... | true |
e1bba2687a8803c6099b4f5f56d83467e9ba0597 | Java | rajneeshkumar146/java_workspace | /Assingments/src/Assingment_06_Recursion/Q05_Nth_Triangle.java | UTF-8 | 531 | 3.4375 | 3 | [] | no_license | package Assingment_06_Recursion;
import java.util.Scanner;
public class Q05_Nth_Triangle {
public static Scanner scn = new Scanner(System.in);
public static void main(String[] args) {
System.out.println("enter number of row's");
int n = scn.nextInt();
System.out.println(triangle(n, 0, 1));
}
public sta... | true |
3e37d831da042d1f23806ad4c3981b415300729b | Java | EfanRu/Spring-Boot-JUnit | /src/main/java/com/example/spring_junit/dao/UserDao.java | UTF-8 | 836 | 2.078125 | 2 | [] | no_license | package com.example.spring_junit.dao;
import com.example.spring_junit.model.Role;
import com.example.spring_junit.model.User;
import java.util.Collection;
import java.util.List;
public interface UserDao {
List<User> getAllUsers();
boolean addUser(User user);
boolean addRole(Role rrole);
boolean delet... | true |
60197d16b64fea6d17a8302d17f3bbaf5bc0784a | Java | chamoddissanayake/SchoolManagementSystem | /src/main/java/com/itp/util/QueryUtil.java | UTF-8 | 2,762 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | package com.itp.util;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXExceptio... | true |
3ceeb699d002adb3dfb2eff76edd44e52e1dec87 | Java | mP1/walkingkooka-tree | /src/test/java/walkingkooka/tree/expression/ExpressionEvaluationContextPrepareParametersListTestCase.java | UTF-8 | 5,907 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2020 Miroslav Pokorny (github.com/mP1)
*
* 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 applic... | true |
f0c9a57eae0f9ea17e60b0b4b1ae6183d3b0051a | Java | bobinush/2DV515 | /A4/src/main/java/A4/App.java | UTF-8 | 497 | 2.21875 | 2 | [] | no_license | package A4;
import weka.core.Instances;
public class App
{
public static final String DATAFILE="spiral.arff";
public static void main( String[] args )
{
//System.out.println( "Hello World!" );
LogisticRegressionDemo test = new LogisticRegressionDemo();
Instances data;
try {
data = te... | true |
edc7b485b79b2a23350474fa3258b1478bed10ad | Java | JakubCachovan/JAVA-letisko | /test/letisko/LetiskoTest.java | UTF-8 | 9,518 | 2.671875 | 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 letisko;
import java.io.File;
import java.util.ArrayList;
import java.util.Calendar;
import java.sql.Date;
import j... | true |
d7c28af5106ec3c2fa937ede0c3995e0ead32847 | Java | thepawlo/ContactsApp | /src/main/java/com/model/Contact.java | UTF-8 | 2,550 | 2.3125 | 2 | [] | no_license | package com.model;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
/**
* Created by Pawel on 2017-05-12.
*/
@Entity
@NamedQuery(name = "Contact.findContactByEmail", query = "select c from Contact c where c.email = :email")
public class Contact implements Serializable {
public s... | true |
b5a3afc6a164fe46362e9388585db45f779c3b90 | Java | ollleg111/moveSHT | /app/src/main/java/movesht/com/movesht/storage/BaseStorageAbs.java | UTF-8 | 891 | 2.34375 | 2 | [] | no_license | package movesht.com.movesht.storage;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
public abstract class BaseStorageAbs implements BaseStorageInterface {
protected static BaseStorageAbs baseStorageAbs;
protected SharedPreferences shared... | true |
7f66a8a68c18fbe90ae27b61ac0f4f74b36de6a4 | Java | bicerin/Itenjoy | /Itenjoy/src/com/itenjoy/action/BuyFormAction.java | UTF-8 | 2,620 | 2.3125 | 2 | [] | no_license | package com.itenjoy.action;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import com.itenjoy.svc.BuyFormService;
import com.itenjoy.svc.GetProductOneService;
import com.... | true |
deab3e02c433d2d4cb65719c977d25646ee35a56 | Java | 994108345/sbc | /sbc-prod/sbc-prod-web/src/test/java/data/Parent.java | UTF-8 | 280 | 2.03125 | 2 | [] | no_license | package data;
/**
* @author wzl
* @date Created in 2019/4/9 17:17
*/
public class Parent {
private String parentId;
public String getParentId() {
return parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
}
| true |
671243d7c6758c2b1328b55b5a5d4d80df39f59b | Java | NoeliaAlbornoz/POOFlix | /PooFlix/src/app/Serie.java | UTF-8 | 1,148 | 3.15625 | 3 | [] | no_license | package app;
import java.util.ArrayList;
import java.util.List;
public class Serie extends Contenido {
public Serie(String nombre, int anio, double calificacion){
this.setNombre(nombre);
this.setAnio(anio);
this.setCalificacion(calificacion);
}
//Constructor que reutiliza el cons... | true |
9e24dbeeb21ca5cc63038980f2c57cc98f0d664d | Java | jeffzhengye/lablucene | /src/application/org/apache/lucene/postProcess/termselector/SocialTermSelector.java | UTF-8 | 29,026 | 1.695313 | 2 | [] | no_license | /**
*
*/
package org.apache.lucene.postProcess.termselector;
import gnu.trove.TIntObjectHashMap;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;
import org.apache.log4j.Logger;
import org.apache.lucene.document.Set... | true |
8483c0ce417c27aa736ec4efc223fa500b13d89e | Java | danielversiane13/full-coffee-cups-bb | /src/main/java/br/com/gamabank/bluebank/services/BalanceMovementService.java | UTF-8 | 4,859 | 2.5625 | 3 | [] | no_license | package br.com.gamabank.bluebank.services;
import java.time.LocalDateTime;
import java.util.UUID;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import br.com.gamabank.bluebank.dto.BalanceMovementDto;
import br.com.gamabank.bluebank.entities.BalanceMovem... | true |
242f88dce94d971022c9bcb1d1ae7feca3bd6e65 | Java | yjjungyo/happicklive-product | /src/main/java/com/factory/happickliveproduct/domain/vo/ProductImage.java | UTF-8 | 339 | 1.609375 | 2 | [] | no_license | package com.factory.happickliveproduct.domain.vo;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data //lombok annotation
@AllArgsConstructor //lombok annotation
@NoArgsConstructor //lombok annotation
public class ProductImage {
String imagePath;
S... | true |
57ae77ec180a90d180f91f2c586c157eea38475e | Java | ahmedibrahim6699/jbpm-form-builder | /jbpm-gwt-form-builder/src/main/java/org/jbpm/formbuilder/client/form/items/CheckBoxFormItem.java | UTF-8 | 5,128 | 1.96875 | 2 | [] | no_license | /*
* Copyright 2011 JBoss 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 |
826fbb3e0b59643afcdf3b7085d980f46dc98844 | Java | oviski/Java3_home_buh | /core-app/src/main/java/java3/core/domain/CheckDetails.java | UTF-8 | 2,548 | 2.078125 | 2 | [] | no_license | package java3.core.domain;
import javax.persistence.*;
/**
* Created by admin on 20.04.2017.
*/
@Entity
@Table(name = "checkdetails")
public class CheckDetails extends BaseEntity{
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column (name = "checkdetailid")
private Long checkDetailID;
@C... | true |
0724973ecb333c738df204d068cdddc3ad704e10 | Java | Jnoee/xo-starter | /xo-starter-jpa/src/main/java/com/github/jnoee/xo/jpa/entity/UuidEntity.java | UTF-8 | 627 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package com.github.jnoee.xo.jpa.entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import org.hibernate.annotations.GenericGenerator;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
* 基于UU... | true |
e12a45940635222e42a8d3e31c3220de46dabd63 | Java | abdurahmanovart/KsWeather | /app/src/main/java/com/github/arturx/weatherbykulibin/CurrentWeatherFragment.java | UTF-8 | 3,135 | 2.4375 | 2 | [] | no_license | package com.github.arturx.weatherbykulibin;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import... | true |
64ddc08b448572d5d7dcd229611d7097b256a169 | Java | rainkin1993/AnomalyDetection | /src/main/java/edu/zju/BasicClass/semantic/SemanticFile.java | UTF-8 | 825 | 2.953125 | 3 | [] | no_license | package edu.zju.BasicClass.semantic;
public class SemanticFile extends SemanticVertex{
public String filePath;
public SemanticFile(String filePath) {
super();
this.filePath = filePath;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((filePath == nul... | true |
ece5c85d2cf434a2bdb6c2ff1c7d470b687cb922 | Java | lyh7712/disease-notification | /src/main/java/nsuproject/diseasenotification/worlddata/WorldDataController.java | UTF-8 | 787 | 1.828125 | 2 | [] | no_license | package nsuproject.diseasenotification.worlddata;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
public class WorldDataController {
@Au... | true |
e58f89253691f045ef590be5578b6f713115d235 | Java | 275779273/zrzk | /zrzk_shiro/src/main/java/com/zrzk/pojo/TUser.java | UTF-8 | 1,655 | 2.3125 | 2 | [] | no_license | package com.zrzk.pojo;
import java.util.Set;
public class TUser {
private Integer id;
private String username;
private String password;
private String loginname;
/**
* 用户对应的角色集合
*/
private Set<TRole> roles;
public TUser(Integer id, String username, String password, String lo... | true |
98a518ff96eae66e4125e90df96e58f69c61a264 | Java | JiessieJ/test01 | /src/main/java/com/jiessie/test01/utils/VerificationUtil.java | UTF-8 | 2,244 | 2.390625 | 2 | [] | no_license | package com.jiessie.test01.utils;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;
import java.util.*;
@Slf4j
@Component
public class VerificationUtil {
pu... | true |
ebfc87de847ed602785fd0424ceff1a8fcd19f53 | Java | jerr/jboss-as-addon | /common/src/main/java/org/jboss/forge/addon/as/jboss/common/util/Files.java | UTF-8 | 11,659 | 2.46875 | 2 | [] | no_license | /*
* Copyright 2014 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/package org.jboss.forge.addon.as.jboss.common.util;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.... | true |
4d8aff091c40620bc0bae74afa545537588c0829 | Java | zhouluoyang0406/SelfIntroduction | /DesignPatterns/src/main/java/interpreter/Client.java | UTF-8 | 397 | 2.75 | 3 | [] | no_license | package interpreter;
import java.util.HashMap;
public class Client {
public static void main(String[] args) {
String ex="a+b-c";
HashMap<String,Integer> var=new HashMap<String, Integer>();
var.put("a",3);
var.put("b",4);
var.put("c",1);
Calculator cal=new Calculator... | true |
6dadade932dc60fa029e959ebc9fea1232c09da1 | Java | green-fox-academy/ZaitzeV16 | /week-08/day-2/connectMySQL/src/main/java/com/greenfox/mysql/connect_mysql/services/AssigneeService.java | UTF-8 | 536 | 2.015625 | 2 | [] | no_license | package com.greenfox.mysql.connect_mysql.services;
import com.greenfox.mysql.connect_mysql.models.Assignee;
import com.greenfox.mysql.connect_mysql.models.Todo;
import java.util.List;
public interface AssigneeService {
public List<Assignee> findAll();
public List<Assignee> findAllByName(String name);
public ... | true |
f92bc691ed1b291910cd57845203536a908bd7ac | Java | RoscaS/java_dreamteam-clean | /PLambda/src/ch/arc/cours/g_annexe/tools/Int.java | UTF-8 | 2,010 | 3.078125 | 3 | [] | no_license |
package ch.arc.cours.g_annexe.tools;
import java.io.Serializable;
/**
* Wrapper Alterable
*/
public class Int implements Serializable
{
/*------------------------------------------------------------------*\
|* Constructeurs *|
\*------------------------------------------------------------------*/
... | true |
6e8fcf3f609d7015535915543fded6fbd9f3a59d | Java | blacksider/javafx-demo | /src/main/java/demo/control/EventBus.java | UTF-8 | 629 | 2.375 | 2 | [
"MIT"
] | permissive | package demo.control;
import io.reactivex.disposables.Disposable;
import io.reactivex.functions.Consumer;
import io.reactivex.subjects.PublishSubject;
/**
* Created by Snart Lu on 2018/2/5.
*/
public class EventBus {
private static final EventBus INSTANCE = new EventBus();
private final PublishSubject<Even... | true |
7c7138899b14c572e77497fc404204b94af2d07e | Java | VoQspu/kwiaciarniaserver | /service/src/test/pl/kielce/tu/kwiaciarnia/service/flower/FlowerServiceImplTest.java | UTF-8 | 4,693 | 2.4375 | 2 | [] | no_license | package pl.kielce.tu.kwiaciarnia.service.flower;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import pl.kielce.tu.kwiaciarnia.dto.bouquet.Bouquet;
import pl.kielce.tu.kwiaciarnia.exce... | true |
3d209d2c14331356b168f20deba8c98e02f3d246 | Java | mohamedh5/Accommodation | /src/main/java/com/iter/accommodation/booking/dto/StrikethroughAmountPerNight__1.java | UTF-8 | 2,557 | 2.0625 | 2 | [] | no_license |
package com.iter.accommodation.booking.dto;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
... | true |
77c2a56e7a4701a20dbf93349481db08f63f5cf8 | Java | dnychava/MISSystem | /MISSystem/src/main/java/com/ikaustubh/missystem/services/impl/ExpenditureServiceImpl.java | UTF-8 | 4,369 | 1.953125 | 2 | [] | no_license | package com.ikaustubh.missystem.services.impl;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
i... | true |
32a7b1b6a6d5a6d0b4a0dad5ed62fb9016653881 | Java | mblackhall/Week4 | /com/marcus/hello/exercises/exercise2/FizzBuzz.java | UTF-8 | 977 | 3.953125 | 4 | [] | no_license | package com.marcus.hello.exercises.exercise2;
/**
* @author marcus
* if int divisble by 3 only print 'Fizz'
* If int dicisible by 5 only print 'Buzz'
* if int divisible by 3 and 5 print FizzBuzz
* otherwise print int
*/
public final class FizzBuzz {
private static final Stri... | true |
741bb9d28a7ee774c09d992c8473158982d34c24 | Java | JiXiaoUIC/CS342-Project4 | /src/battleShip/GameServer.java | UTF-8 | 4,817 | 2.96875 | 3 | [] | no_license | package battleShip;
import java.net.*;
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class GameServer extends JFrame implements ActionListener{
// GUI items
JButton ssButton;
JLabel machineInfo;
JLabel portInfo;
JTextArea history;
private boolean running;
... | true |
eaa44a77ce38511d7c3e6178571e203cc1e48896 | Java | SankalpTaruFoundation/Organic-Green-App | /src/org/sankalptaru/kg/community/AboutusFragment.java | UTF-8 | 675 | 2.015625 | 2 | [] | no_license | package org.sankalptaru.kg.community;
import android.app.Fragment;
import android.os.Bundle;
import android.text.Html;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
public class AboutusFragment extends Fragment {
public AboutusFragment()... | true |
b1a6f4488e118450a9b7eaac58ecad3c55920129 | Java | IssacYoung2013/daily | /00-dialog-mq/src/main/java/com/dialog/mq/rocketmq/simple/Consumer.java | UTF-8 | 1,386 | 2.3125 | 2 | [] | no_license | package com.dialog.mq.rocketmq.simple;
import com.dialog.mq.rocketmq.constant.Const;
import org.apache.rocketmq.client.consumer.DefaultMQPushConsumer;
import org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyContext;
import org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyStatus;
import or... | true |
5f17efcea05ef3945bdb21d079d6c7bb67bb7ffc | Java | sisyphus60/Design_pattern | /src/org/lawrence/pattern/composite/Client.java | UTF-8 | 858 | 2.5625 | 3 | [] | no_license | package org.lawrence.pattern.composite;
public class Client {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Company group = new ConcreteCompany("Alibaba");
Company etao = new ConcreteCompany("etao");
... | true |
a4264413d210cb86de815fdcb9cbd28ef5a9bf93 | Java | Sinahdalir/MiraCosta | /HW06/src/testers/PrintJobTest.java | UTF-8 | 1,102 | 2.671875 | 3 | [] | no_license | package testers;
import edu.miracosta.cs113.PrintJob;
import static org.junit.Assert.*;
import org.junit.Test;
public class PrintJobTest {
PrintJob object = new PrintJob(10, 10);
@Test
public void testPrintJob() {
PrintJob object1 = new PrintJob();
assertEquals(object1.getStartTime(), 0);
}
... | true |
4bb868cc290fcc9999e81b05abac4aa11f1c7163 | Java | jefersonjl99/Java | /PI/src/pi/Montecarlo.java | UTF-8 | 1,054 | 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 pi;
/**
*
* @author jefer
*/
public class Montecarlo extends Metodos {
double x, y;
@Override
double calcular... | true |
5e5083c6c788c7bcfe13d9c570c10650976688d0 | Java | ProyectoBootcamp3/customer-service | /src/main/java/com/everis/controller/CustomerControllerAdvice.java | UTF-8 | 786 | 2.109375 | 2 | [] | no_license | package com.everis.controller;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import reactor.core.publishe... | true |
9759906723956a0473cd32ee93bf4fe827ee265b | Java | bingkuaix3/ylbaas | /src/com/justep/weixin/mp/ylwxServlet.java | UTF-8 | 1,912 | 2.21875 | 2 | [] | no_license | package com.justep.weixin.mp;
import java.io.File;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServlet;
import com.alibaba.fastjson.JSONObject;
import me.chanjar.weixin.common.exception.WxErrorException;
import me.chanjar.weixin.mp.api.WxMpService;
import... | true |
89f58012274976e7ff66595fdbd97f47938742fa | Java | memoryoverflow/shopMall | /admin/src/main/java/com/yj/shopmall/util/MyRedis.java | UTF-8 | 2,082 | 2.484375 | 2 | [] | no_license | package com.yj.shopmall.util;
import com.yj.shopmall.Utils.JsonUtils;
import com.yj.shopmall.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;
import java.util.concurrent.TimeUnit;
... | true |
f973925a2725a2d442918531452d5f3d80e311ad | Java | Lebron-Liu/Basketballl | /vwill/xutil/src/main/java/com/xyy/utils/MediaUtil.java | UTF-8 | 13,386 | 2.546875 | 3 | [] | no_license | package com.xyy.utils;
import android.content.Context;
import android.media.MediaPlayer;
import android.os.Handler;
import android.os.Message;
import android.view.Surface;
import android.webkit.URLUtil;
import android.widget.SeekBar;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import ... | true |
ccb2fa9ebbd84d6fb2f1f7ba40d1f52330e293d3 | Java | saanaraw/expensetracker-backend | /src/main/java/com/example/saana/expense/model/Category.java | UTF-8 | 325 | 2.015625 | 2 | [] | no_license | package com.example.saana.expense.model;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import javax.persistence.*;
@Entity
@NoArgsConstructor
@Data
@Table(name="category")
public class Category {
@Id
private Long id;
@NonNull
//Travel, Grocery..
private String name... | true |
66fcb32fe3a98bd2189944e5a78dfbf11705e156 | Java | AnmolAgarwal141/Android-studio-Projects | /Naaniz-master/app/src/main/java/com/example/naaniz/listofrecipes.java | UTF-8 | 6,596 | 2.09375 | 2 | [] | no_license | package com.example.naaniz;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.... | true |
65ba969e2b4dd5aabddd17cdcaf8e31a6fc6f658 | Java | zhangzhende/spring-boot-examples | /service-seetaface/src/main/java/com/seetaface2/model/SeetaImageData.java | UTF-8 | 1,051 | 2.765625 | 3 | [] | no_license | package com.seetaface2.model;
public class SeetaImageData {
public byte[] getData() {
return data;
}
public void setData(byte[] data) {
this.data = data;
}
public int getWidth() {
return width;
}
public void setWidth(int width) {
this.width = width;
}
... | true |
13161a2890981c63059caea2f5adb43a8590839d | Java | AlperenYilmazyildiz/TraJour | /src/com/trajour/journey/Postable.java | UTF-8 | 172 | 1.898438 | 2 | [] | no_license | package com.trajour.journey;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
public interface Postable {
Post post(String text, Image image);
}
| true |
cf38eb83ee542dee2a2f7720891718f4d5b57a6b | Java | jmllubes/M6 | /objectfile/src/objectfile/client.java | UTF-8 | 601 | 2.59375 | 3 | [] | no_license | package objectfile;
import java.io.Serializable;
public class client implements Serializable{
private String nombre;
private transient String passWord;
public client(String nombre, String passWord) {
this.nombre=nombre;
this.passWord= passWord;
}
public String... | true |
5b47747cf7f0ff0e08424549c0b77c0ede991b72 | Java | jmpereztorres/spotifire-back | /src/main/java/com/spotifire/core/service/IReportService.java | UTF-8 | 662 | 1.765625 | 2 | [] | no_license | package com.spotifire.core.service;
import java.io.IOException;
import com.spotifire.persistence.pojo.Report;
import com.spotifire.web.rest.dto.FireDTO;
import com.spotifire.web.rest.dto.NotificationDTO;
import com.spotifire.web.rest.dto.ReportRequestDTO;
public interface IReportService {
Report processReport(Repo... | true |
057d73bbfec1d75522f00ba1050eba3e7e3a9e85 | Java | syabbahrul/FirstProjek | /app/src/main/java/com/example/firstprojek/MainActivity.java | UTF-8 | 2,083 | 2.09375 | 2 | [] | no_license | package com.example.firstprojek;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity {
public ... | true |
2af410fce502e93b228a17a31c58de3ff5b65456 | Java | xshxsh/design_pattern | /src/main/java/com/example/designpattern/create/prototype/Application.java | UTF-8 | 575 | 2.953125 | 3 | [] | no_license | package com.example.designpattern.create.prototype;
import com.example.designpattern.create.prototype.concreate.Circle;
import com.example.designpattern.create.prototype.interfac.Shape;
import com.example.designpattern.create.prototype.manager.ProtoTypeManager;
public class Application {
public static void main(S... | true |
7d487556eb15be281e9eb07eff182a37edeed09f | Java | sngshivang/IITRPR_ACSE | /src/cosinesim/ToCheck.java | UTF-8 | 12,190 | 2.5625 | 3 | [] | no_license | /* The input code must be compiled and ensured that it is syntactically correct before this program
* can be used. DO NOT USE IT ON INCORRECT SYNTAX as this will lead to unpredictable and possibly
* erroneous output. This program does not have any tolerance to errors.
*/
package cosinesim;
import java.io.BufferedI... | true |
b29aefca6bc44d253fc07ccf55c197560686c6d4 | Java | parthitechnotion/GoogleAndroidTV | /src/com/android/tv/dvr/recorder/DvrRecordingService.java | UTF-8 | 5,915 | 1.65625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2015 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 app... | true |
4766b40740e9aa0db87375d2271bdca3c168e6b4 | Java | fermadeiral/StyleErrors | /eclipse-vorto/2458092eb94690845d6e4c019216329cfc7d280a/292/SimpleSearchService.java | UTF-8 | 2,728 | 2.078125 | 2 | [] | no_license | /**
* Copyright (c) 2018 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional information regarding copyright
* ownership.
*
* This program and the accompanying materials are made available under the terms of the Eclipse
* Public License 2.0 which is availab... | true |
cb04adca45a4d6da5f0c49b89cca1523a96cccae | Java | jerrysbest/git | /sboerp/src/erp/ws/aop/permission/PermissionCheckAdvice.java | GB18030 | 1,432 | 2.421875 | 2 | [] | no_license | package erp.ws.aop.permission;
import java.lang.reflect.Method;
import org.springframework.aop.MethodBeforeAdvice;
import erp.ws.sbo.client.swing.app.appMain;
public class PermissionCheckAdvice implements MethodBeforeAdvice {
public void before(Method m, Object[] args, Object target) throws Throwable { ... | true |
81c56900872837fa462eb66828c74acb2f1570c2 | Java | nlp-lap/Version_Compatible_HL7_Parser | /hl7/pseudo/group/PATHWAY_PGL_PC7.java | UTF-8 | 334 | 1.726563 | 2 | [] | no_license | package hl7.pseudo.group;
import hl7.bean.Structure;
public class PATHWAY_PGL_PC7 extends hl7.model.V2_3.group.PATHWAY_PGL_PC7{
public PATHWAY_PGL_PC7(){
super();
}
public static PATHWAY_PGL_PC7 CLASS;
static{
CLASS = new PATHWAY_PGL_PC7();
}
public Structure[][] getComponents(){
return super.getCompon... | true |
314183f4c61659f3514fce89ba379717f9ba4bc7 | Java | tlee2502/Flooring-Orders | /src/main/java/com/tom/flooringorder/dao/StateTaxDaoFileImpl.java | UTF-8 | 1,736 | 2.828125 | 3 | [] | no_license | package com.tom.flooringorder.dao;
import com.tom.flooringorder.dto.StateTax;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.math.BigDecimal;
import java.util.Map;
import java.util.Scanner;
import java.util.TreeMap;
public class StateTaxDaoFileImpl implemen... | true |
4fbbb6ccd8b572206295e1f1340d2ced728f9c19 | Java | peligroso/streamline | /org.juxtapose.streamline/src/org/juxtapose/streamline/producer/executor/IExecutable.java | UTF-8 | 126 | 1.679688 | 2 | [] | no_license | package org.juxtapose.streamline.producer.executor;
public interface IExecutable extends Runnable{
public int getHash();
}
| true |
91e36503c4015dc689f7a91d35125fca47727ad2 | Java | browleless/Tellybuddy | /tellybuddy/tellybuddy-war/src/java/jsf/managedbean/TransactionManagementManagedBean.java | UTF-8 | 2,981 | 2.03125 | 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 jsf.managedbean;
import ejb.session.stateless.TransactionSessionBeanLocal;
import entity.Transaction;
import entity.Transactio... | true |
83043634fb4d92f540c4162cd81103566d1c03cb | Java | ahmedatef00/digital-wallet | /src/main/java/com/example/digitalwallet/config/RedisConfig.java | UTF-8 | 1,822 | 2.265625 | 2 | [] | no_license | package com.example.digitalwallet.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cache.interceptor.KeyGenerator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Con... | true |
02cb6b1ca01f6782624e0026f21f74af11d8d3ec | Java | coderxiang1523/homework | /JavaCollectPackage/JavaCollectPackage/src/com/ui/test/TestJpcap.java | UTF-8 | 1,145 | 2.890625 | 3 | [] | no_license | package com.ui.test;
import jpcap.JpcapCaptor;
import jpcap.NetworkInterface;
import jpcap.NetworkInterfaceAddress;
public class TestJpcap {
public static void main(String[] args) {
//获得网卡设备的实例列表
NetworkInterface[] devices = JpcapCaptor.getDeviceList();
//循环输出全部网卡设备对象相应的信息
for(int i = 0; i<... | true |
63cacfc385f41c44ac45a79562312cd8d12bbcc3 | Java | AlejandroNeira/Curso-Java | /alneira/Clase17oct/src/main/java/cl/bci/clase17oct/repository/VentasRepo.java | UTF-8 | 671 | 2.1875 | 2 | [] | no_license | package cl.bci.clase17oct.repository;
import cl.bci.clase17oct.valueobject.VentasAgrupadasVO;
import org.springframework.stereotype.Repository;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import java.util.List;
@Repository
public class VentasRe... | true |
010dc42531168454dbbc09601a4818cfe98d57b1 | Java | erichsueh/erichsueh---Habit-Tracker | /app/src/main/java/com/example/ehsueh/erichsueh_habittracker/CompletedHabitListController.java | UTF-8 | 773 | 2.390625 | 2 | [] | no_license | package com.example.ehsueh.erichsueh_habittracker;
/**
* Created by Eric Shay on 2016-10-02.
*
* This code is modeled after Student Pick in android
* (your saga thing)
* This is the Completed Habit List Controller made so I can access the old completed habits from anywhere
*/
public class CompletedHabitListContr... | true |
6b440b34e96366de14a4ead1f6e4c0526db0faab | Java | dragoonvn/javacore | /src/activity35/Activity35.java | UTF-8 | 991 | 3.390625 | 3 | [] | no_license | package activity35;
import java.util.Scanner;
public class Activity35 {
public static void main(String[] args) {
int a, dem1 = 1, dem2 = 1;
char c = 'A';
Scanner scanner = new Scanner(System.in);
System.out.println("Nhập vào số dòng: ");
a = scanner.nextInt();
for (... | true |
0b56a5d0679c1c9b07b1b1495831a42cef78468a | Java | PoetVVV/hebau_training2020 | /数据库/stmng/src/课上/dao/ScoreDao.java | UTF-8 | 666 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package 课上.dao;
import java.util.List;
import 课上.pojo.Score;
/**
* @ClassName: ScoreDao
* @Description: 分数数据信息操作类
* @author: Mr.T
* @date: 2020年6月28日 上午11:20:36
*/
public class ScoreDao extends BaseDao {
public List<Score> selectList() {
String sql = "select sc.id,sc.subject,sc.score,sc.st_i... | true |
99e54d0d70d08e094448c26db5f1a9e703b12452 | Java | francton14/chat | /src/main/java/com/piczon/data/dto/UserShow.java | UTF-8 | 1,603 | 2.125 | 2 | [] | no_license | package com.piczon.data.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Date;
/**
* Created by franc on 9/19/2016.
*/
public class UserShow {
private Long id;
private String username;
private String firstName;
private String lastName;
private String email;
priva... | true |
ec5203d7047645ab9c772d1f25038ae952c08080 | Java | ViniAlex/PBD2019.2 | /src/view/NovoPerfilCurricular.java | UTF-8 | 22,993 | 1.8125 | 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 view;
import control.PerfilControler;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
... | true |
654a811df2d781383d3f3e6d94ae05a3feb6167b | Java | pranavkamble3010/TripPlanner_partA | /app/src/main/java/com/example/tripplanner/ViewProfileFragment.java | UTF-8 | 11,234 | 1.9375 | 2 | [] | no_license | package com.example.tripplanner;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.net.Uri;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragmen... | true |
ae087dc2d278389f647418283a3cf11981d811e4 | Java | yangrui110/asunerp | /framework/entity/src/com/hanlin/fadp/entity/condition/EntityConditionParam.java | UTF-8 | 950 | 2.34375 | 2 | [] | no_license |
package com.hanlin.fadp.entity.condition;
import java.io.Serializable;
import com.hanlin.fadp.entity.model.ModelField;
/**
* Represents a single parameter to be used in the preparedStatement
*
*/
@SuppressWarnings("serial")
public class EntityConditionParam implements Serializable {
protected ModelField mode... | true |
9502ce9ad817c5c42cd47e8c3dd92ac72f977a6f | Java | alinpopa/rapaio | /src/rapaio/core/stat/Sum.java | UTF-8 | 1,778 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | /*
* Apache License
* Version 2.0, January 2004
* http://www.apache.org/licenses/
*
* Copyright 2013 Aurelian Tutuianu
*
* 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
*
... | true |
74517b835a7134e94b6e8a3d605b0311f7002bba | Java | menucha-de/LLRP.Data | /src/main/java/havis/llrpservice/data/message/parameter/FixedFrequencyTable.java | UTF-8 | 1,319 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package havis.llrpservice.data.message.parameter;
import havis.llrpservice.data.message.parameter.ParameterTypes.ParameterType;
import java.util.List;
public class FixedFrequencyTable extends Parameter {
private static final long serialVersionUID = -5941560665499145522L;
private TLVParameterHeader parameterHeade... | true |
2b538410f0538d1aecd8c85fbbde7df06e375724 | Java | zhangpengzhan/TallYou | /src/com/example/tallyou/utils/.svn/text-base/XmppTool.java.svn-base | GB18030 | 5,193 | 2.203125 | 2 | [] | no_license | package com.example.tallyou.utils;
import java.util.Collection;
import org.jivesoftware.smack.ConnectionConfiguration;
import org.jivesoftware.smack.PacketCollector;
import org.jivesoftware.smack.Roster;
import org.jivesoftware.smack.RosterEntry;
import org.jivesoftware.smack.SmackConfiguration;
import org.j... | true |
d61ad225a24bbe7213b714babacb2a8266cdae47 | Java | fergeteges565612/MineResetLite | /src/com/koletar/jj/mineresetlite/SerializableBlock.java | UTF-8 | 953 | 2.796875 | 3 | [] | no_license | package com.koletar.jj.mineresetlite;
import org.bukkit.Material;
/**
* @author jjkoletar
*/
public class SerializableBlock {
private Material mat;
private String matName;
public SerializableBlock(Material material) throws NullPointerException {
mat = material;
if (material == null) {
... | true |
45e3476dca9fb62cfa9d1e2b43a1768501049193 | Java | YuryAmirov/hotel-booking | /src/main/java/ua/com/foxminded/hotelbooking/model/entity/AdditionalOption.java | UTF-8 | 1,690 | 2.375 | 2 | [] | no_license | package ua.com.foxminded.hotelbooking.model.entity;
import com.google.common.base.MoreObjects;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import ua.com.foxminded.hotelbooking.model.entity.core.AdditionalOptionType;
import javax.persistence.C... | true |
f1b7598ef6879e5fc02746ba490d0c6226128483 | Java | unisysTechHub/Ecommerce | /app/src/main/java/com/exemplary/ecommerce/database/table/Colors.java | UTF-8 | 556 | 2.421875 | 2 | [] | no_license | package com.exemplary.ecommerce.database.table;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
@Entity(tableName = "colors")
public class Colors {
@ColumnInfo(name = "color_id")
@PrimaryKey
int Id;
@ColumnInfo(name = "color")
String color;
publ... | true |
7faaa4225ec5d0c4a71c7c3b0e37b49ea9c4fae8 | Java | paulomcnally/place-uca-android | /app/src/main/java/uca/places/app/ui/activities/PlaceAddActivity.java | UTF-8 | 2,945 | 2.296875 | 2 | [] | no_license | package uca.places.app.ui.activities;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.View;
import ... | true |
a2f83632d10859faead0a4f71420241c8543a7d6 | Java | nhatnv7192/JavaProject | /WebSiteSecondNew/src/main/java/com/entities/OrderDetail.java | UTF-8 | 2,373 | 2.359375 | 2 | [] | no_license | package com.entities;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import ja... | true |
4b0a02df1a5518cc56e3c5aecedaae0529fc96bf | Java | astronaut183/data_structure | /src/main/java/zyh/data/main/SymmetricTree.java | UTF-8 | 639 | 2.984375 | 3 | [] | no_license | package zyh.data.main;
public class SymmetricTree {
public boolean IsSymmertric(BinaryTree.Node root) {
if (root == null) return true;
return IsSubSymmertric(root.getRightChind(),root.getLeftChind());
}
public boolean IsSubSymmertric(BinaryTree.Node rChild, BinaryTree.Node lChild) {
... | true |
9cc68d92ba429da67ebb79758f954b2c21c7efdc | Java | huanghui6579/mytest | /src/net/ibaixin/chat/db/DatabaseHelper.java | UTF-8 | 6,230 | 2.171875 | 2 | [] | no_license | package net.ibaixin.chat.db;
import net.ibaixin.chat.provider.Provider;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* 数据库创建
* @author huanghui1
* @version 1.0.0
* @update 2014年10月13日 上午11:26:25
*/
public class DatabaseHelper ... | true |
00a81799a8d09303517bd4f13f0b4da04ef7c5dd | Java | kaidezhanhao/sqltool | /src/com/entity/PreferencInfo.java | GB18030 | 574 | 2.328125 | 2 | [] | no_license | package com.entity;
/**
* ݿϢ
* @author Administrator
*
*/
public class PreferencInfo {
private String name ="";
private String view ="";
public PreferencInfo(String name, String view) {
this.name = name;
this.view = view;
}
public String getName() {
return name;
}
public voi... | true |
9dd26a323788711524939729dac06d120b34666d | Java | juriel/ocelot-html | /src/main/java/net/comtor/ocelot/html/formatting/HtmlSamp.java | UTF-8 | 307 | 2.046875 | 2 | [] | no_license | package net.comtor.ocelot.html.formatting;
import net.comtor.ocelot.html.utils.HtmlTextContainer;
/**
*
* @author Guido A. Cafiel Vellojin
*/
public class HtmlSamp extends HtmlTextContainer {
public HtmlSamp() {
super("samp");
}
public HtmlSamp(String text) {
super("samp",text);
}... | true |
bae1c0ab0e579224f70bfe7dc2833d2dd76b45be | Java | AndreaPCalvin/Plants-vs-Zombies-JAVA | /zombies/Deportista.java | UTF-8 | 885 | 2.875 | 3 | [] | no_license | package zombies;
import logic.Game;
public class Deportista extends Zombie {
public Deportista(int posX, int posY, Game game) {
super(posX, posY, game);
this.damage=1;
this.resist=2;
this.vidaMax=2;
this.ciclosMax=0;
this.frec=0;
this.nombre="Deportista";
this.letra="x";
this.c... | true |
c8471db55eee8761defa0e791d0de825e25bab12 | Java | LDA111222/GraphScope | /interactive_engine/src/api/sdk-common/src/main/java/com/alibaba/maxgraph/compiler/api/schema/PropDataType.java | UTF-8 | 5,285 | 2.078125 | 2 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-elastic-license-2018",
"LicenseRef-scancode-other-permissive"
] | permissive | /**
* Copyright 2020 Alibaba Group Holding Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | true |
6d2272301e2ae6b1256000bce1c9f4e0dfcf9a7a | Java | zhanght86/HSBC20171018 | /LIS/sinosoft-parents/lis-business/src/main/java_other/com/sinosoft/ibrms/UpdateRuleResultThread.java | UTF-8 | 1,505 | 2.75 | 3 | [] | no_license | package com.sinosoft.ibrms;
import org.apache.log4j.Logger;
import java.util.LinkedList;
/**
* 专门用来写规则引擎执行结果的类,只有一个线程来进行执行
* 如果有任务来了,就执行,如果没有的话,就挂起直到有新的任务到来
*
* @author Administrator
*
*/
public class UpdateRuleResultThread extends Thread {
private static Logger logger = Logger.getLogger(UpdateRuleResultThread.... | true |
130f01e54120369fc624b584ea3f3600e1c0c650 | Java | ZhaoWanlia/Zproject | /config-client/src/main/java/com/zhibo/springcloud/config/server/DemoProviderApplication.java | UTF-8 | 622 | 2.09375 | 2 | [] | no_license | package com.zhibo.springcloud.config.server;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
@SpringBootApplication
public class DemoProviderApplication {
public static void main(String[]... | true |
9003d7a0459708b73cff99e846fb4e155b81ca07 | Java | ruwany/carbon-analytics | /components/analytics-core/org.wso2.carbon.analytics.dataservice.core/src/main/java/org/wso2/carbon/analytics/dataservice/core/Constants.java | UTF-8 | 5,376 | 1.609375 | 2 | [] | no_license | /*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/L... | true |
b0aec4fbfb822aada11c0edd2624452773e8b168 | Java | riwa90/Mock-cash-register | /src/se/kth/iv1350/sem/model/SaleLogDTO.java | UTF-8 | 2,642 | 3.046875 | 3 | [] | no_license | package se.kth.iv1350.sem.model;
import java.util.ArrayList;
import java.util.Date;
/**
* Represents a log of a sale that have taken place.
* Contains data meant for a receipt and accounting systems.
*/
public class SaleLogDTO {
private int totalPrice;
private int totalVat;
private int payment;
pri... | true |