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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e7d48134e528d32f6f341f63f5bd4f081aa5d4f7 | Java | thien2010/Admin_Booking_Pitch | /app/src/main/java/com/example/booking_pitch/data/model/TKNgayThang.java | UTF-8 | 461 | 2.15625 | 2 | [] | no_license | package com.example.booking_pitch.data.model;
public class TKNgayThang {
private String pitchName;
private float totalPrice ;
public String getPitchName() {
return pitchName;
}
public void setPitchName(String pitchName) {
this.pitchName = pitchName;
}
public float getTota... | true |
f2b1bf01879afa1e9a5403743a3fbee59beb7ae3 | Java | engikeer/westee | /spmvc/src/main/java/com/mfun/controller/EmployeeController.java | UTF-8 | 7,467 | 2.359375 | 2 | [
"MIT"
] | permissive | package com.mfun.controller;
import com.mfun.bean.Department;
import com.mfun.bean.Employee;
import com.mfun.dao.DepartmentDao;
import com.mfun.dao.EmployeeDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.*;
import org.springframework.stereotype.Controller;
import org... | true |
8f2552a2956b682b418399fabdc5e35ee7992b0d | Java | Vild/WildHTTP | /src/main/java/se/definewild/wildhttp/io/net/PacketHandler.java | UTF-8 | 2,862 | 2.5625 | 3 | [] | no_license | package se.definewild.wildhttp.io.net;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;
import java.util.HashMap;
import se.definewild.wildhttp.io.file.log.Log;
import se.definewild.wildhttp.io.net.packet.PacketReceiver;
import se.definewil... | true |
12be981dde6b7dad6a6d4a111eb4f5e9b4a4d1f7 | Java | Alec-WAM/CrystalMod | /src/main/java/alec_wam/CrystalMod/tiles/machine/worksite/gui/GuiWorksiteBase.java | UTF-8 | 3,184 | 2.234375 | 2 | [
"MIT"
] | permissive | package alec_wam.CrystalMod.tiles.machine.worksite.gui;
import alec_wam.CrystalMod.handler.GuiHandler;
import alec_wam.CrystalMod.tiles.machine.worksite.TileWorksiteBoundedInventory;
import alec_wam.CrystalMod.tiles.machine.worksite.gui.elements.Button;
import alec_wam.CrystalMod.tiles.machine.worksite.gui.elemen... | true |
eb465e9b91017b71a1e7b46ce0d46d9d5502b96d | Java | hengjiang689/jeecg-boot | /jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/wanbang/course/service/IWbCourseCommentService.java | UTF-8 | 611 | 1.625 | 2 | [
"MIT",
"Apache-2.0"
] | permissive | package org.jeecg.modules.wanbang.course.service;
import org.jeecg.modules.wanbang.course.entity.WbCourseComment;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.wanbang.course.entity.WbCourseUserComment;
import java.util.List;
/**
* @Description: 万邦课程评论
* @Author: je... | true |
66532756a1197aba4c8e584b54d596a43a3f21a8 | Java | TechnionYP5779/Team5-Diet-Tracker | /src/test/java/Utils/DBUtilsTestTravisIgnore.java | UTF-8 | 6,668 | 2.328125 | 2 | [] | no_license | package Utils;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import java.util.List;
import java.util.stream.Collectors;
import org.junit.Test;
import com.amazon.ask.model.services.Pair;
import Utils.Portion.Portion;
import Util... | true |
d835244822b075e12da0f4fc4225e98f7c8790ad | Java | synthetichealth/synthea | /src/main/java/org/mitre/synthea/helpers/RandomNumberGenerator.java | UTF-8 | 3,093 | 3.1875 | 3 | [
"LicenseRef-scancode-public-domain",
"LGPL-3.0-only",
"Apache-2.0"
] | permissive | package org.mitre.synthea.helpers;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Arrays;
import java.util.UUID;
public interface RandomNumberGenerator {
/** Returns a double between 0-1 from a uniform distribution. */
public double rand();
/**
* Returns a random double in the ... | true |
9c056ed0d4800f4d77cf40857b09f69f1a113c7a | Java | Bhartisharma28/Transaction-service | /src/main/java/com/example/service/TxrServiceImpl.java | UTF-8 | 2,599 | 2.515625 | 3 | [] | no_license | package com.example.service;
import java.util.List;
import java.time.LocalDateTime;
import org.apache.log4j.Logger;
import com.example.entity.Account;
import com.example.entity.Txn;
import com.example.entity.TxnType;
import com.example.repository.AccountRepository;
import com.example.repository.TxnRepository;
publi... | true |
b3e05a08ef8d0b2fd42088a875c98dc584214f25 | Java | iamrita/Alertness | /app/src/main/java/com/amrita2015/app/MainActivity.java | UTF-8 | 7,088 | 2.171875 | 2 | [] | no_license | package com.amrita2015.app;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.TextView;
import android.widget.To... | true |
999ce30dd44132a226dce089e8bc054ada49eca2 | Java | StaSotiro/auction_house | /WebStoreProject/src/daos/CategoryDAOImpl.java | UTF-8 | 2,722 | 2.734375 | 3 | [] | no_license | package daos;
import java.util.List;
import javax.management.Query;
import javax.persistence.EntityExistsException;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
import javax.persistence.Persistence;
import javax.persistence.Persiste... | true |
4f5df74c7044d383a9c04c739989153de22faec3 | Java | akankshachandre/Courses | /CSC540/LibraryMgmt/src/main/java/edu/ncsu/csc540/model/Databasechangelog.java | UTF-8 | 483 | 1.953125 | 2 | [] | no_license | package edu.ncsu.csc540.model;
// Generated Oct 22, 2015 4:43:38 PM by Hibernate Tools 3.4.0.CR1
/**
* Databasechangelog generated by hbm2java
*/
public class Databasechangelog implements java.io.Serializable {
private DatabasechangelogId id;
public Databasechangelog() {
}
public Databasechangelog(Databasech... | true |
33e7621affd456c976c4a8bb1fa03baa15944c0a | Java | alvariux/practicasandroid | /practica4/ListaSQLite/app/src/main/java/com/example/tecnologico/listasqlite/PersonaDB.java | UTF-8 | 2,872 | 2.765625 | 3 | [] | no_license | package com.example.tecnologico.listasqlite;
/**
* Created by tecnologico on 17/10/2016.
*/
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import java.uti... | true |
be8e59d73cdb7d24734cafa3df4790b7317e31fa | Java | IWANABETHATGUY/easyHighlightlingEditor | /src/com/example/TextEditor/Editor.java | UTF-8 | 7,315 | 2.71875 | 3 | [] | no_license | package com.example.TextEditor;
import com.example.Lex;
import com.example.Main;
import com.example.bean.Token;
import javax.swing.*;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
import javax.swing.text.*;
import java.awt.*;
import java.awt.event.KeyAdapter;
import java.awt.event... | true |
4752f9aff53844f0da1ef724f44631ee976e06e0 | Java | keepYourHairOn/Software-Architecture | /src/java/entity/Animal.java | UTF-8 | 792 | 3.296875 | 3 | [] | no_license | package java.entity;
import java.interfaces.FlyBehaviour;
import java.interfaces.SwimBehaviour;
import java.interfaces.WalkBehaviour;
/**
* Created by Sophy on 19.02.2015.
*/
public abstract class Animal {
WalkBehaviour walkBehaviour;
FlyBehaviour flyBehaviour;
SwimBehaviour swimBehaviour;
public v... | true |
65bf44b5f2bb42127026dcab48dff81f5e302fc9 | Java | ccbrantley/Formal-Logic-Aiding-Tutor | /src/main/java/com/flat/tools/data/base/tool/DataTool.java | UTF-8 | 972 | 2.390625 | 2 | [
"MIT"
] | permissive | package com.flat.tools.data.base.tool;
import com.flat.tools.data.json.JsonTools;
import java.io.File;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.nio.file.Path;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author ch... | true |
6ab4cd07a6d0eb851d9d00cf537e70df3240f2bb | Java | mariomrtsnz/watsontv | /android/app/src/main/java/com/mario/watsontv/ui/dashboard/media/collections/addTo/AddToCollectionAdapter.java | UTF-8 | 2,616 | 2.078125 | 2 | [] | no_license | package com.mario.watsontv.ui.dashboard.media.collections.addTo;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import com.mario.watsontv.R;
import com.mario.watsontv.responses.CollectionResponse;
import com.... | true |
42cd6c3e6ebba496dde1648abbc9e3fcb567e108 | Java | camille-viallet/Projet_SIH | /princetonPlainsboro/Patient.java | UTF-8 | 6,887 | 3.421875 | 3 | [] | no_license | package princetonPlainsboro;
/**
* Modélise un patient
*
* @author Groupe 8
*/
public class Patient {
private String nom;
private String prenom;
private String adresse;
private Date dateDeNaissance;
private String numeroSecuriteSociale;
private double poids;
private double taille;
... | true |
399d12b7c61b43da683d79e0a2df3a5c7f2e6d55 | Java | jaekeon02/Studying-Progress | /java/Day07_SJK/src/final_method/Child.java | UTF-8 | 826 | 3.515625 | 4 | [] | no_license | package final_method;
public class Child extends Parent {
/*
final클래스는 자식 클래스를 가질 수 없고, 오직 외부에서 객체생성을 통해서만 사용할 수 있습니다.
상속을 받아 메서드를 재 정의하는 등 클래스의 확장을 막기위해 클래스에 final을 붙입니다
대표적인 예) String(extends로 상속하려고 해도 상속이 불가능)
*/
@Override
public void method1() {
// TODO Auto-generated method stub
super.method1... | true |
0e76f76f52fa2b561026a6b73bfadb0bd2d46e34 | Java | dgebzwhs/project--whs | /ozh2zh/src/main/java/com/translate/ozh2zh/Mapper/ArticleMapper.java | UTF-8 | 2,468 | 1.96875 | 2 | [] | no_license | package com.translate.ozh2zh.Mapper;
import com.translate.ozh2zh.Pojo.Article;
import org.apache.ibatis.annotations.*;
import org.springframework.data.annotation.Id;
import java.util.List;
import java.util.Map;
/**
* @author whs
* @date 2020/5/6 0006 上午 9:13
*/
public interface ArticleMapper {
@Insert("inser... | true |
6eac33973f7af2fbf6ac4fd1c2156f96b711fbc9 | Java | gzz2017gzz/notebook | /55-spring-boot-webservice2/src/test/java/com/gzz/CxfClient.java | UTF-8 | 512 | 2.421875 | 2 | [] | no_license | package com.gzz;
import org.apache.cxf.endpoint.Client;
import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;
public class CxfClient {
public static void main(String[] args) throws Exception {
// 创建动态客户端
JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
Client ... | true |
2a05998cbc680297a8be8e526b7997ef01305740 | Java | sengeiou/smarthome_wl_master1 | /JiuCai_smarthome/src/main/java/com/fbee/smarthome_wl/request/UpdateUserinfoReq.java | UTF-8 | 1,354 | 1.984375 | 2 | [] | no_license | package com.fbee.smarthome_wl.request;
/**
* @class name:com.fbee.smarthome_wl.request
* @anthor create by Zhaoli.Wang
* @time 2017/4/18 14:36
*/
public class UpdateUserinfoReq {
/**
* safe_update : true
* password : xxxxxxxx
* new_alias : 王力小王子
* new_username : xxxxxx
* new_sms_code... | true |
ba41cea1c5c15c65460f5e5824d5c12ac28c68e3 | Java | moutainhigh/lotto-skeleton-wl | /src/main/java/com/hhly/skeleton/lotto/base/order/bo/OrderInfoSingleBO.java | UTF-8 | 2,987 | 2 | 2 | [] | no_license | package com.hhly.skeleton.lotto.base.order.bo;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hhly.skeleton.base.bo.BaseBO;
/**
* @author yuanshangbing
* @version 1.0
* @desc
* @date 2017/4/5 15:07
* @company 益彩网络科技公司
*/
public class OrderInfoSingleBO extends BaseBO {
/**
* 订单编号
... | true |
163864d619fb809388b866ac4207a266b71fba95 | Java | daovanthe/DataWc | /app/src/main/java/wc2018/data/raw/stadium/Stadium.java | UTF-8 | 101 | 1.820313 | 2 | [] | no_license | package wc2018.data.raw.stadium;
public class Stadium {
private String name, location, image;
}
| true |
7c229bb6ef417ada03cf13fe1e84ad08f940b097 | Java | spring-cloud/spring-cloud-contract | /docker/spring-cloud-contract-docker/project/src/test/java/contracts/MessagingAutoConfig.java | UTF-8 | 7,796 | 1.71875 | 2 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | /*
* Copyright 2013-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | true |
18717dca24a07100421f3912d475718ab71a218b | Java | lenkalee814089/domain | /insight-domain-security/src/main/java/com/dataexa/insight/domain/security/spark/dataset/util/RailwayFindUtils.java | UTF-8 | 5,695 | 2.765625 | 3 | [] | no_license | package com.dataexa.insight.domain.security.spark.dataset.util;
import com.alibaba.fastjson.JSONObject;
import com.dataexa.insight.domain.security.spark.dataset.model.RailwayRecord;
import org.apache.log4j.Logger;
import java.util.*;
public class RailwayFindUtils {
private static final Logger LOGGER = Logger.ge... | true |
bd772897df2b32edbc6d9f2536630fee257b3aa4 | Java | bdaughety/AndroidBJ | /app/src/main/java/com/benjamindaughety/games/blackjack/model/Card.java | UTF-8 | 875 | 2.953125 | 3 | [] | no_license | package com.benjamindaughety.games.blackjack.model;
/**
* Created by benjamindaughety on 2/13/16.
*/
public class Card {
private String suit;
private Integer position;
private int drawableId;
private Integer score;
private String name;
public Card(final String suit, final Integer position, f... | true |
73a501df28ee5031411e41e4d462fd477e39bef1 | Java | nirojkoirala3/ClinicAppointmentSystem | /src/main/java/edu/mum/waa/validator/PasswordMatchValidator.java | UTF-8 | 580 | 2.5 | 2 | [] | no_license | package edu.mum.waa.validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import edu.mum.waa.domain.Patient;
public class PasswordMatchValidator implements ConstraintValidator<PasswordMatchContraintValidator, Object> {
@Override
public void initialize(PasswordM... | true |
3727a4ddbb52f3fd76bb50bdd5ebd1754d1d72fa | Java | moyu3390/EasyChatJavaFXClient | /src/main/java/com/easychat/fx/controller/Login.java | UTF-8 | 1,853 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package com.easychat.fx.controller;
import com.easychat.fx.client.Client;
import com.easychat.fx.util.DateUtils;
import com.easychat.fx.support.request.LoginReq;
import com.easychat.fx.support.request.RegisterReq;
import io.netty.channel.Channel;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javaf... | true |
d95f75125de4cb72c7a2791485ca87ae6e1aec29 | Java | zgy520/codeGenerate | /src/main/java/com/tonfun/tools/Model/sys/Map_rolemenubutton.java | UTF-8 | 2,652 | 2.078125 | 2 | [] | no_license | package com.tonfun.tools.Model.sys;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.time.LocalTime;
import java.time.LocalDateTime;
import java.time.LocalDate;
import javax.persistence.... | true |
780cd332703d756a3fbded9e178b53021218b9b7 | Java | burnandgun/DouyuAnchor | /app/src/main/java/com/example/administrator/douyuanchor/activity/MainActivity.java | UTF-8 | 2,996 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package com.example.administrator.douyuanchor.activity;
import android.app.ProgressDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;
import com.example.administrator.douyuanchor.R;
import ... | true |
e56d525ab0b70f8d38fb49fea78ad03cfb9152a8 | Java | Nahesha/fileDistributiveSystem | /DFSServer/tests/FileManagerTest.java | UTF-8 | 3,501 | 3 | 3 | [] | no_license | import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import DFSApp.ServerToServerPackage.FileLockedForWriteFailure;
/**
* Test the FileManager class
*
* @author merlin
*
*/
public class FileManagerTest
{
/**
* Open an existing file and make sure we can read from the beginning a... | true |
f895cfb16c4885bd16b61fc291584e7451283403 | Java | jean880814/rpc-client | /src/main/java/service/consumerWithSocket/RpcClientProxy.java | UTF-8 | 431 | 2.375 | 2 | [] | no_license | package service.consumerWithSocket;
import java.lang.reflect.Proxy;
public class RpcClientProxy {
private final String ip;
private final int port;
public RpcClientProxy(String ip, int port) {
this.ip = ip;
this.port = port;
}
public <T> T proxy(Class<T> clazz){
return (T)... | true |
2260cc35c8e35065cbd64b85579dc3af2c7bf51c | Java | jjmnbv/km_dev | /kmzyc-common/src/main/java/com/kmzyc/b2b/vo/EraInfo.java | UTF-8 | 9,122 | 1.960938 | 2 | [] | no_license | package com.kmzyc.b2b.vo;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* 时代会员信息
*
* @author Administrator
*
*/
public class EraInfo implements Serializable {
private static final long serialVersionUID = -1175770299811870327L;
private BigDecimal eraI... | true |
63dd3cd8078f855c06f76f7a2eb70d1d1707c328 | Java | robyprot/sanfo-restaurant | /SanFoRestaurant/src/controller/DailyCtrl.java | WINDOWS-1252 | 19,807 | 2.390625 | 2 | [] | no_license | package controller;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.GregorianCalendar;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JTextField;
i... | true |
7d6a627b7cbc68bb553b0f289df63c82d0f7d6fa | Java | Janhavi1612/Sincro-Training | /MavenAndJunit/mockito-junit/src/main/java/FakeEmployeeVallidatorService.java | UTF-8 | 272 | 2.46875 | 2 | [] | no_license |
public class FakeEmployeeVallidatorService implements EmployeeValidatorService {
public boolean isValid(Employee employee) {
if (employee == null) {
return false;
}
if (employee.getName().equals("bot")) {
return false;
} else {
return true;
}
}
}
| true |
d83d12d820514d889795f3d0356c305f74bb6023 | Java | gradle/gradle | /subprojects/execution/src/main/java/org/gradle/internal/execution/history/InputExecutionState.java | UTF-8 | 1,616 | 1.625 | 2 | [
"BSD-3-Clause",
"LGPL-2.1-or-later",
"LicenseRef-scancode-mit-old-style",
"EPL-2.0",
"CDDL-1.0",
"MIT",
"LGPL-2.1-only",
"Apache-2.0",
"MPL-2.0",
"EPL-1.0"
] | permissive | /*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | true |
8a7f9cdd2affeb2cb0c78bc9d3c54370d791368d | Java | somon122/farhadHostEarningApp | /app/src/main/java/com/digital/farhad_app/SaveUser.java | UTF-8 | 1,207 | 2.40625 | 2 | [] | no_license | package com.digital.farhad_app;
import android.content.Context;
import android.content.SharedPreferences;
public class SaveUser {
private Context context;
private SharedPreferences sharedPreferences;
private SharedPreferences.Editor editor;
public SaveUser(Context context) {
this.context = c... | true |
96672454e4b5f5d316a8d0511de37b00488fdfeb | Java | humanolaranja/JavaSoft | /src/Model/Loja.java | UTF-8 | 3,392 | 2.953125 | 3 | [] | no_license | package Model;
import Controller.GerenciadorId;
import View.JFPrincipal;
import java.util.ArrayList;
import java.time.LocalTime;
public class Loja implements Comparable<Loja>{
// Atributos
private final ArrayList<Funcionario> funcionarios;
private String nome;
private double valorAluguel;
privat... | true |
80ab8ac0b26bcf11161313c3801bb8ff0b534435 | Java | jryoun1/orderFree-owner | /app/src/main/java/com/example/userapplication/UI/mainview/order/orderlistAdapter.java | UTF-8 | 2,193 | 2.265625 | 2 | [] | no_license | package com.example.userapplication.UI.mainview.order;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.example.userapplication.R;
import com.example.userapplication.UI... | true |
aff90f21054c1b8d92b29b8bfd1a978cd20e7fe4 | Java | NailGaliev/nail22 | /task4/Linked.java | UTF-8 | 3,879 | 3.328125 | 3 | [] | no_license | import java.util.Iterator;
import java.util.stream.IntStream;
public class Linked {
private Elem head;
private int length;
public Linked(int[] ar) {
int[] arr = new int[ar.length];
for (int i = 0; i < ar.length; i++) {
arr[i] = ar[ar.length - i - 1];
if... | true |
7f7531e59c96faec8463bdb6aefb794bbe3bceae | Java | vinay-kumbhar/one | /Project_On_Micro_Finance_Client_Master_Module/src/main/java/com/cjc/app/mfi/master/main/model/Bank_Details.java | UTF-8 | 1,321 | 2.09375 | 2 | [] | no_license | package com.cjc.app.mfi.master.main.model;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
@Entity... | true |
d425638a1dc95acef3ebea00cc51d0299236001d | Java | Archana-Jadhav12/java | /Day-1/src/PrimeNoAll.java | UTF-8 | 799 | 4.125 | 4 | [] | no_license | //13:Write a program to print all Prime numbers between 1 to n.
import java.util.Scanner;
public class PrimeNoAll
{
public static void main(String[] args)
{
int n,num,i;
System.out.println("Find prime numbers upto : ");
Scanner sc = new Scanner(System.in);
n = sc.nextInt();
Syst... | true |
63384f299fbae75db0965d47a3be771d539c5066 | Java | Fei-Lu/GroupPlantGenetics | /src/daxing/common/table/ColumnTableTool.java | UTF-8 | 2,003 | 2.796875 | 3 | [
"Apache-2.0"
] | permissive | package daxing.common.table;
import pgl.infra.table.ColumnTable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class ColumnTableTool<T> extends ColumnTable<T> {
public ColumnTableTool(String infileS) {
super(infileS);
}
public ColumnTableTool(List<String> he... | true |
3cbda5253a037b49b130307ee06d84742062d9c2 | Java | VovaIdzo/zd-server | /src/main/java/zd_server/client/Client.java | UTF-8 | 1,308 | 2.734375 | 3 | [] | no_license | package zd_server.client;
import java.io.*;
import java.math.BigInteger;
import java.net.HttpURLConnection;
import java.net.URL;
/**
* Created by vova on 09.12.15.
*/
public class Client {
final ClientHellman hellman;
public Client(ClientHellman hellman) {
this.hellman = hellman;
}
public... | true |
f901a70df032e6729c69f5ac1bec7ba86da3ce8b | Java | macchicken/designpatterns | /src/factory/abstractfactory/Driver.java | UTF-8 | 124 | 2.453125 | 2 | [] | no_license | package factory.abstractfactory;
public interface Driver {
public Car driverCar(String carBrandName) throws Exception;
}
| true |
a7fa4d520ea5b9ffee5d260858bc727a581a2aef | Java | buddygroup/itravel | /src/main/java/com/app/common/value/objects/User.java | UTF-8 | 1,632 | 2.15625 | 2 | [] | no_license | package com.app.common.value.objects;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.Type;
import org.joda.time.L... | true |
01e69c1c163fc3c75ebcab960690256b5d309c11 | Java | cazyonce/swagger2-ui-example | /src/main/java/site/amass/swagger/example/config/Swagger2Config.java | UTF-8 | 1,247 | 2.09375 | 2 | [] | no_license | package site.amass.swagger.example.config;
import java.util.List;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import site.amass.swagger.example.consts.Const;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.buil... | true |
86a70f17f314c32384d30f075cd4f0a4a38e21fd | Java | hjc851/Dataset2-HowToDetectAdvancedSourceCodePlagiarism | /Variant Programs/3-4/39/Plantation.java | UTF-8 | 1,222 | 3.1875 | 3 | [
"MIT"
] | permissive | import java.util.concurrent.Semaphore;
public class Plantation implements Runnable {
public synchronized void run() {
while (true) {
System.out.println(ownership + ": Waiting for bridge.");
try {
ora.acquire();
chooseThings();
System.out.println(ownership + ": Crossing brid... | true |
8042928ae05c5d2b318738dbae350710d5f0b968 | Java | arturich/GW2Gadget | /src/main/java/com/torrenal/craftingGadget/ui/CheckBoxFilters.java | UTF-8 | 5,554 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package com.torrenal.craftingGadget.ui;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.AbstractCollection;
import java.util.Vector;
import javax.swing.JCheckBox;
import javax.swing.JPanel;
import com.torrena... | true |
816082c2af1d1df94f60e3f9074c96090dd85e60 | Java | phongtran0715/SpiderClient | /java/netxms-eclipse/Dashboard/src/org/netxms/ui/eclipse/dashboard/widgets/TableComparisonChartElement.java | UTF-8 | 6,941 | 1.929688 | 2 | [] | no_license | /**
* NetXMS - open source network management system
* Copyright (C) 2003-2015 Victor Kirhenshtein
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* ... | true |
1b18e183b66ca9a3ad0fdcb5c992cbcc219dcd04 | Java | KuyaShawn/Java-Animated-art | /Practice/WorkshopScreensaver.java | UTF-8 | 2,394 | 3.171875 | 3 | [] | no_license | import acm.program.GraphicsProgram;
import acm.graphics.*;
import java.awt.Color;
public class WorkshopScreensaver extends GraphicsProgram {
//Creating a constants for the window
public static final int APPLICATION_WIDTH = 1920;
public static final int APPLICATION_HEIGHT = 1080;
final int BUBBLE=80;
final in... | true |
46fedfa085d715ad8abdbea0dd479134c88599ec | Java | fsjhut/shangMaStudy | /Three_Step/crm/electronicBusinessInvoicingSystem/src/main/java/com/javasm/sys/entity/GoodsSupplier.java | UTF-8 | 769 | 1.867188 | 2 | [
"LicenseRef-scancode-mulanpsl-2.0-en",
"MulanPSL-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.javasm.sys.entity;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.javasm.commons.base.BaseEntity;
/**
* (GoodsSupplier)实体类
*
* @author makejava
* @since 2021-07-05 17:16:06
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class GoodsSupplier extends ... | true |
c43718f993e804d0a7a0b94b69d17e1b832b5715 | Java | EEIT82-Bakery/RepositoryBakery | /bakery/src/com/article/model/ArticleBean.java | UTF-8 | 4,749 | 1.984375 | 2 | [] | no_license | package com.article.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
... | true |
0ad785d5765c584272fec7c01afb92a99c538f28 | Java | jzarsuelo/weatherapp | /app/src/main/java/com/jzarsuelo/android/weatherapp/data/network/model/WeatherSeveralCitiesIdResponse.java | UTF-8 | 946 | 2.1875 | 2 | [] | no_license | package com.jzarsuelo.android.weatherapp.data.network.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Class that represent root response of
* {@link com.jzarsuelo.android.weatherapp.data.network.service.OpenWeatherMapService}
*/
pu... | true |
5b250b0059c02953af752c8df7fb2ea3c932acc8 | Java | OrangeSpatial/sshTransformer | /src/main/java/com/orange/sshtransformer/controller/TaskController.java | UTF-8 | 1,255 | 2.28125 | 2 | [] | no_license | package com.orange.sshtransformer.controller;
import com.jcraft.jsch.JSchException;
import com.orange.sshtransformer.entity.Task;
import com.orange.sshtransformer.service.TaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List... | true |
3e28be7acd9fc9e7a76f297694b765067edd1b53 | Java | tjysdsg/CS201 | /group-lab-8/src/nspace/NSpaceCoordinate.java | UTF-8 | 570 | 3.0625 | 3 | [] | no_license | package nspace;
import java.util.*;
public class NSpaceCoordinate {
protected ArrayList<Double> coords;
public NSpaceCoordinate(Double[] coords) {
this.coords = new ArrayList<>(Arrays.asList(coords));
}
public final double getCoordinateAt(int index) {
return this.coords.get(index);
... | true |
9fcc27e86074b2fef4604419da877be983892b87 | Java | ussass/converter | /src/main/java/ru/trofimov/utils/CurrencyHandler.java | UTF-8 | 2,988 | 2.5 | 2 | [] | no_license | package ru.trofimov.utils;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import ru.trofimov.models.Currency;
import ru.trofimov.models.ExchangeRates;
import java.util.List;
public class CurrencyHandler extends DefaultHandler {
private List<Currency> cu... | true |
8ea9928bc60bdf506c214f2d64ca3b5f6b99d7ff | Java | recycon/Espaillat-cop3330-assignment3 | /src/main/java/ex45/wordfind.java | UTF-8 | 1,393 | 3.609375 | 4 | [] | no_license | package ex45;
/*
* UCF COP3330 Fall 2021 Assignment 3 Solution
* Copyright 2021 Mario Espaillat
*/
import java.io.*;
import java.util.Scanner;
public class wordfind {
///scan word by word and if it finds the specific string it will replace it with the word use and then print it to the new file
public st... | true |
272d83b01503d975973b0d5dbf94dcd8531981b8 | Java | patglavin/CR-MesoLab-Strings-JerkSON | /src/main/java/io/zipcoder/Entry.java | UTF-8 | 337 | 2.75 | 3 | [] | no_license | package io.zipcoder;
public class Entry {
Double price;
Integer occurence;
public Double getPrice() {
return price;
}
public Integer getOccurence() {
return occurence;
}
public Entry(Double price, Integer occurence){
this.price = price;
this.occurence = oc... | true |
6deeedb9313fdfa3d85125586aa70aa8c89fad41 | Java | evanjs97/Peer2Peer | /src/main/java/cs555/p2p/util/Utils.java | UTF-8 | 818 | 2.96875 | 3 | [] | no_license | package cs555.p2p.util;
import java.io.*;
import java.nio.file.Files;
import java.util.logging.Logger;
public class Utils {
private final static Logger LOGGER = Logger.getLogger(Utils.class.getName());
public static String formatString(String s, int newLength) {
if(s.length() >= newLength) return s;
StringBuild... | true |
e93ebef4a62e0c7c0ddfbeeec54b45c365ad9841 | Java | Turkanbozdag/JavaSpringPractice2020 | /src/Practice_05_06_2020/ScrumTeam.java | UTF-8 | 596 | 2.65625 | 3 | [] | no_license | package Practice_05_06_2020;
import java.util.ArrayList;
public class ScrumTeam {
ArrayList<Tester>testerTeam=new ArrayList<>();
ArrayList<Developer>devpTeam=new ArrayList<>();
public void hireATester(Tester tester){
testerTeam.add(tester);//tester testerTeam icine koydu
}
public void fi... | true |
8b77aab5307354a849a584d9cfb70641c01768d3 | Java | Alexhuihui/managementBook | /src/main/java/com/servlet/lendList/relend.java | UTF-8 | 1,472 | 2.0625 | 2 | [] | no_license | package com.servlet.lendList;
import com.dao.DbDao;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWri... | true |
fc917d1d7e35d4514ceb2c22ca174ceeeed8db01 | Java | IagoAleksander/CoffeeBreak | /app/src/main/java/com/filipe/cofeebreak/FoodCategory.java | UTF-8 | 3,315 | 2.453125 | 2 | [] | no_license | package com.filipe.cofeebreak;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.support.v4.app.ListFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
im... | true |
ea1834c46a6b0e9b217726d7383ea707ed7579c4 | Java | codjo/codjo-datagen | /src/main/java/kernel/Util.java | ISO-8859-1 | 13,908 | 2.265625 | 2 | [] | no_license | /*
* Team : AGF AM / OSI / SI / BO
*
* Copyright (c) 2001 AGF Asset Management.
*/
package kernel;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.Reader;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.Arrays;
impo... | true |
b484b1762194bf6e6bb867e7792abe19279da42e | Java | NuliBoy/LuuAllCode | /异常/src/cn/sxt/exception/A1.java | UTF-8 | 173 | 2.078125 | 2 | [] | no_license | package cn.sxt.exception;
public class A1 {
public int a = 20;
public int b= 10;
public void add(){
System.out.println(a+b+"*****");
}
}
| true |
53c5156a00a80489d03ca2de435fa6846b7d0d67 | Java | gzsig/algoritmos | /TI2A-Estrutura-de-Dados/prova-II/q4/Q4.java | UTF-8 | 517 | 3.59375 | 4 | [] | no_license | /**
* Q4
*/
public class Q4 {
public static void main(String[] args) {
System.out.println(binaryRec(56));
System.out.println(binaryLoop(56));
}
public static int binaryRec(int decimal) {
if (decimal == 0)
return 0;
return decimal % 2 + 10 * binaryRec(decimal / 2);
}
public static in... | true |
f90267cd2090b8139e48dee609cbf85b0b788147 | Java | lani009/AU_CA | /oop programming/practice_week15/src/app/ChildPair.java | UTF-8 | 142 | 2.234375 | 2 | [
"MIT"
] | permissive | package app;
public class ChildPair<K, V> extends Pair<K, V> {
public ChildPair(K key,V value) {
super(key, value);
}
} | true |
dd157737cceac826ddb79172b0fca8d98e1787a8 | Java | A-Montenegro/PED_PL2_2018-2019 | /src/compiler/syntax/nonTerminal/SentAsign.java | ISO-8859-2 | 642 | 2.90625 | 3 | [] | no_license | package compiler.syntax.nonTerminal;
/**
*
* Clase que representa una sentencia de asignacin.
* @author Alberto Martnez Montenegro
*/
public class SentAsign extends Sent {
private String nombreVariable;
private Expresion expresion;
/**
*
* Constructor de clase.
* @param nombreVariable
* @param expre... | true |
73bba3895839bcfc755992cd9528f9d86f61c711 | Java | ogsub/Virtual-piano | /Virtual-piano/pack/CompositionText.java | UTF-8 | 451 | 2.75 | 3 | [
"MIT"
] | permissive | package pack;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* Contains imput file with constructor and getter
* @author Ognjen
*
*/
public class CompositionText {
private File file;
... | true |
33589a10d9b4a8d967db2a6cbcfaf85073f48976 | Java | marcosalv92/Nueva_Cliente | /app/src/main/java/com/example/marcos/nuevacliente/Dialogos/DialogBuscarPunto.java | UTF-8 | 2,965 | 2.59375 | 3 | [] | no_license | package com.example.marcos.nuevacliente.Dialogos;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import ... | true |
cb5d1a70ff664ffbe602e1047ffc12ca84b2c4a9 | Java | Anuprekshajain/MyNotes | /app/src/main/java/com/anupreksha/mynotes/ui/AddNewFragment.java | UTF-8 | 2,298 | 2.4375 | 2 | [] | no_license | package com.anupreksha.mynotes.ui;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;... | true |
59f09cc426eca4caeabc552198daec3431d7f7e4 | Java | GTNDYanagisawa/merchandise | /bin/ext-deprecated/cybersource/testsrc/de/hybris/platform/cybersource/services/card/CardAuthorizationTest.java | UTF-8 | 5,263 | 1.84375 | 2 | [] | no_license | /*
* [y] hybris Platform
*
* Copyright (c) 2000-2014 hybris AG
* All rights reserved.
*
* This software is the confidential and proprietary information of hybris
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* li... | true |
6b4f76eae8d82fe070fe94a9fe43f1feb0ec8e44 | Java | antoiba86/trivial | /src/Trivial/Sino.java | UTF-8 | 1,363 | 3.21875 | 3 | [] | no_license | package Trivial;
import java.io.DataOutputStream;
import java.io.RandomAccessFile;
/**
* Class of the son of Respuestas, Sino
* @author AntoIba
*/
public class Sino extends Respuestas {
/**
* Constructor of the class
*/
public Sino(){
super();
}
/**
* C... | true |
8789cd8ca99d5a18cdd352ce185a6e23db0d7c28 | Java | hongeinh/Intro-to-Java | /HW/HomeWork3V2.java | UTF-8 | 1,059 | 3.71875 | 4 | [] | no_license |
package hongeinh.homework;
import java.util.Scanner;
public class HomeWork3V2 {
public static void main(String[] args) {
Calculate c = new Calculate();
c.display();
}
}
class Calculate implements Factorial{
public void display(){
Scanner sc = new Scanner(System.in);
System.ou... | true |
732ac45ec5129442f19e5f09ee92ffac68e47cb4 | Java | jojoldu/blog-code | /spring-boot-spock/src/main/java/com/jojoldu/spock/service/CustomerService.java | UTF-8 | 1,423 | 2.078125 | 2 | [] | no_license | package com.jojoldu.spock.service;
import com.jojoldu.spock.domain.Customer;
import com.jojoldu.spock.domain.CustomerRepository;
import com.jojoldu.spock.service.dto.OrderDto;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.web.client.RestTemplateBuilder;
import... | true |
a34ebc06a42b3a0909a4f7d891cefbdbe184f8ff | Java | suyash-capiot/bookingEngine | /src/main/java/com/coxandkings/travel/bookingengine/controller/visa/VisaController.java | UTF-8 | 3,479 | 2.1875 | 2 | [] | no_license | package com.coxandkings.travel.bookingengine.controller.visa;
import java.io.InputStream;
import org.json.JSONObject;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
impor... | true |
30581b0073ca68798ed92ff74281cb9eca4e509a | Java | dev-Ji/KOREABOX | /src/main/java/com/goldspoon/koreabox/movie/beans/CommentDTO.java | UTF-8 | 357 | 1.640625 | 2 | [] | no_license | package com.goldspoon.koreabox.movie.beans;
import java.sql.Date;
import lombok.Data;
@Data
public class CommentDTO {
private int cmt_num;
private int cmt_star;
private String cmt_content;
private Date cmt_regDate;
private int cmt_movieNum;
private String cmt_movieName;
private int cmt_memberUid... | true |
bd515883501dd3d8036e868f37dfb7cb0b854e76 | Java | Pashinian/NiceStart2 | /app/src/main/java/com/example/mynicestart/MainActivity2.java | UTF-8 | 2,588 | 1.851563 | 2 | [] | no_license | package com.example.mynicestart;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import ... | true |
bfda397760ae04c3b6849569ecd967663fa20903 | Java | yu132/leetcode-solution | /src/main/java/old/_0800_0899/_804.java | UTF-8 | 694 | 2.84375 | 3 | [] | no_license | package old._0800_0899;
import java.util.HashSet;
import java.util.Set;
public class _804 {
class Solution {
private String[] map = new String[] {
".-", "-...", "-.-.", "-..", ".", "..-.", "--.", "....", "..", ".---", "-.-",
".-..", "--", "-.", "---", ".--.", "--.-", ".-.", "...", "-", "..-", "...-", ... | true |
ca88ca5bb95e7d571fd02bf110cb5c09e1356f48 | Java | castle/castle-java | /src/test/java/io/castle/client/CastleAuthenticateHttpTest.java | UTF-8 | 24,649 | 1.828125 | 2 | [
"MIT"
] | permissive | package io.castle.client;
import com.google.gson.JsonParser;
import io.castle.client.internal.utils.VerdictBuilder;
import io.castle.client.model.*;
import io.castle.client.internal.json.CastleGsonModel;
import io.castle.client.utils.SDKVersion;
import okhttp3.mockwebserver.MockResponse;
import okhttp3.mockwebserver.R... | true |
8cdc1bdda5bbe54974701344ef43746d1b332002 | Java | LadyCailin/PureUtilities | /src/test/java/com/methodscript/PureUtilities/RSAEncryptTest.java | UTF-8 | 1,082 | 2.5625 | 3 | [] | no_license | package com.methodscript.PureUtilities;
import com.methodscript.PureUtilities.Common.RSAEncrypt;
import org.junit.After;
import org.junit.AfterClass;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
/**
*
*/
public class RSAEncryptTest {
RS... | true |
3a002f2a8ef457a92864d0977e5d117d5392cdfd | Java | lwwn/appointment | /appointment-server2/src/main/java/com/appointment/config/dao/DataSourceConfiguration.java | UTF-8 | 1,233 | 2.171875 | 2 | [] | no_license | package com.appointment.config.dao;
import com.mchange.v2.c3p0.ComboPooledDataSource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.beans.PropertyVetoException;
//数据库配置类
@Configu... | true |
7343c166923482d33cd78c01c78f39385b088627 | Java | metaphori/uni-projects | /LM_Web/WebProjectNetbeans/WebApplication/src/java/asw1022/repositories/RepositoryJAXB.java | UTF-8 | 2,530 | 2.5625 | 3 | [] | no_license | package asw1022.repositories;
import asw1022.db.IDB;
import asw1022.model.User;
import asw1022.db.UserDB;
import asw1022.kb.AppKB;
import asw1022.model.BasicObject;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.xml.... | true |
46829e825c89a04745929ff8c3860a2db34bce01 | Java | jmakr0/Distributed-Entity-Resolution | /approaches/deram/src/main/java/de/hpi/cluster/actors/MatchingCoordinator.java | UTF-8 | 4,287 | 2.34375 | 2 | [] | no_license | package de.hpi.cluster.actors;
import akka.actor.AbstractActor;
import akka.actor.ActorRef;
import akka.actor.Props;
import akka.event.Logging;
import akka.event.LoggingAdapter;
import com.typesafe.config.Config;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.io.Serializable;
import java.util.HashS... | true |
307e8549816c3e1a4271d9eafa20cef795b433db | Java | Wandering/power-cloud | /cloud-monitor/src/main/java/com/power/cloud/monitor/model/FormatMonitorEvent.java | UTF-8 | 3,734 | 2.59375 | 3 | [] | no_license | package com.power.cloud.monitor.model;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import java.util.List;
import java.util.Map;
/**
* 监控事件,所有的监控使用此事件模型处理
* <p/>
* 创建时间: 14/10/28 下午6:14<br/>
*
* @author qyang
* @since v0.0.1
*/
public class FormatMonitorEvent implements Event... | true |
0148299ba812bfca132fa98e0483648d4582858e | Java | dingzhaowei/TestMP | /datastore-client/src/test/java/org/testmp/datastore/client/DataInfoTest.java | UTF-8 | 4,081 | 2.640625 | 3 | [] | no_license | package org.testmp.datastore.client;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
public class DataInfoTest {
public static class Pair {
private String key;
private String value;
public Pair() {
}
public Pair(String ke... | true |
a2c90a49eaf6ea4b8322f68dbdfd4fcdf664f1a0 | Java | xwzl/spring-framework | /spring-context-test/src/test/java/com/spring/test/SpringTest.java | UTF-8 | 1,523 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | package com.spring.test;
import com.spring.test.autowire.Baby;
import com.spring.test.bean.look_up.Display;
import com.spring.test.module.Book;
import com.spring.test.module.Car;
import org.junit.Test;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.context.Appli... | true |
c611d25aec962a468ddb415b4c93179fed56b67c | Java | FreeTimeWork/JoyClubBackPriLab | /api-back/src/main/java/com/joycity/joyclub/apiback/service/impl/ManagerServiceImpl.java | UTF-8 | 6,162 | 2.078125 | 2 | [] | no_license | package com.joycity.joyclub.apiback.service.impl;
import com.joycity.joyclub.apiback.constant.ProjectType;
import com.joycity.joyclub.apiback.constant.UserType;
import com.joycity.joyclub.commons.exception.BusinessException;
import com.joycity.joyclub.apiback.mapper.manual.SysProjectMapper;
import com.joycity.joyclub.... | true |
0c0429cd5f1a7c8e0def7b30d6563642f8a38916 | Java | OuchMyHead/Snowbell | /app/controllers/Application.java | UTF-8 | 3,168 | 2.21875 | 2 | [] | no_license | package controllers;
import models.*;
import notifiers.Mails;
import play.libs.Codec;
import play.mvc.*;
import tools.Codes;
import ugot.recaptcha.Recaptcha;
import java.util.List;
public class Application extends Controller {
@Before
static void getUser(){
User user = Users.getUser();
rende... | true |
fb56aaa2fc217b098e54906c77229643669c1fa1 | Java | TechieFrogs-Warriors/JavaBasics | /ANSWINI/src/Array_Concept/Program31.java | UTF-8 | 1,798 | 4.21875 | 4 | [] | no_license | package Array_Concept;
import java.util.Scanner;
public class Program31
{
public static void main(String[] args)
{
//program to find sum of each row and coloumn in the matrix
Scanner sc=new Scanner(System.in);
System.out.println("Enter the matrix size");
int row=sc.nextInt();... | true |
4bc294ad5ac0e6502169a9167cbae070f72420cb | Java | mkorszun/biegajmy | /app/src/main/java/com/biegajmy/location/LocationDialog.java | UTF-8 | 1,594 | 2.125 | 2 | [] | no_license | package com.biegajmy.location;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.provider.Settings;
import com.biegajmy.R;
import org.androidannotations.annotations.EBean;
import org.android... | true |
7b8f6d884ca6690595c34e53f4b8c0d4bcd885de | Java | bujuetianyihei/HelloJavaWeb | /notes/java/src/demoCollectionList.java | UTF-8 | 1,394 | 3.671875 | 4 | [] | no_license | import java.util.List;
import java.util.Iterator;
import java.util.ArrayList;
// import java.util.Vector;
// import java.util.LinkedList;
public class demoCollectionList {
public static void main(String[] args) {
List<String> buffer = new ArrayList<String>();
// List<String> buffer = new V... | true |
92a5bcf23ebcacce8268d957805401c218894859 | Java | weilengdeyu/t24 | /src/main/java/com/openmind/day03/Tool.java | UTF-8 | 325 | 1.90625 | 2 | [
"Apache-2.0"
] | permissive | package com.openmind.day03;
import java.sql.Connection;
import java.util.LinkedList;
/**
* @Classname Tool
* @Description 微冷的雨训练营 www.cnblogs.com/weilengdeyu
* @Date 2019/8/28 11:08
* @Created by Happy-微冷的雨
*/
public class Tool {
public void executeData() {
int num=5/0;
}
}
| true |
7ae2896731c4199ef27eef62d25466e2b903443d | Java | Patel-Sid/Vacuum-Game | /Vacuum Game/A1soln/src/game/Grid.java | UTF-8 | 433 | 2.921875 | 3 | [
"MIT"
] | permissive | /**
*
*/
package game;
/**
* Generic abstract class that defines a two dimensional grid of objects of type T,
* where <T> is the type parameter.
* @author siddh
*
*/
public abstract class Grid<T> {
public abstract T getCell(int row, int column);
public abstract void setCell(int row, int column, T item);
... | true |
0caeeff43f1b62d3bbce79410c47f2ea2708ba79 | Java | annkolyadenko/JavaExternal_06_03_2018 | /2Max_Veres_completed tasks/RPNcalculator/src/main/java/inputdata_inversion/InputInversion.java | UTF-8 | 3,102 | 3.203125 | 3 | [] | no_license | package inputdata_inversion;
public class InputInversion {
private InputStack inputStack;
private String[] input;
private String[] output;
private int top;
public InputInversion(String[] in) {
input=in;
int stackSize = input.length;
inputStack = new InputStack(stackSize);
... | true |
6e16417e8cc7f590421082b8e22fdc049a324487 | Java | Sednor/sednor-blog | /src/main/java/com/webapp/dao/PostsTagsDao.java | UTF-8 | 438 | 1.828125 | 2 | [] | no_license | package com.webapp.dao;
import com.webapp.entity.Post;
import com.webapp.entity.PostsTags;
import com.webapp.entity.Tag;
import java.util.List;
/**
* Created by sednor-5 on 3/28/17.
*/
public interface PostsTagsDao {
List<Post> getPosts(Long id);
List<Tag> getTags(Long id);
PostsTags save(PostsTags po... | true |
a9d6c8c10afbe17cc56df0698ea72164b3255893 | Java | ymhew/HeadMeasurement | /src/org/dlr/me/scalpometer/model/ImageStackHolder.java | UTF-8 | 394 | 2 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.dlr.me.scalpometer.model;
import ij.ImageStack;
/**
*
* @author Matthias Bremser
*/
public class ImageStackHolder {
ImageStack stack;
public void setStack(ImageStack stack) {
this.stack... | true |
bd46e600f721cd5849973f4cfad5d62d75aad9dc | Java | royappa/contests | /SignatureDecorator.java | UTF-8 | 3,566 | 2.984375 | 3 | [] | no_license | import java.util.*;
import java.util.regex.*;
import java.text.*;
import java.math.*;
import java.awt.geom.*;
public class SignatureDecorator
{
public String applyDecoration(String name, String[] commands, String[] decorations)
{
for (int i = 0; i < commands.length; i++)
{
String ch = decorations[i];
if (c... | true |
91b7789c2a41091c1ec866eff6d62bda5791a1e3 | Java | gs1wojcik/dictionary_management_system | /DirectoryWebService/src/main/java/com/gswcode/dictionarywebservice/dto/WebhookRequest.java | UTF-8 | 725 | 2.28125 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.gswcode.dictionarywebservice.dto;
public class WebhookRequest {
private String webhookUrl;
public WebhookReq... | true |
9d1af5c73e7c56fd86339637f397b22b52eb8598 | Java | ManiSidhu12/RetiredBrainiacs | /app/src/main/java/com/retiredbrainiacs/common/SharedPrefManager.java | UTF-8 | 10,809 | 2.125 | 2 | [] | no_license | package com.retiredbrainiacs.common;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import com.retiredbrainiacs.activities.MainScreen;
public class SharedPrefManager {
//the constants
private static final String SHARED_P... | true |