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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
7a229bb955310012b52254c1f744be3bac8f7e6c | Java | Kangyejiii/JavaExample | /src/main/java/Chap6/sec13/exam03_field_method_access/exam02_constructor_access/package1/A.java | UTF-8 | 466 | 3.25 | 3 | [] | no_license | package Chap6.sec13.exam03_field_method_access.exam02_constructor_access.package1;
public class A {
public int field1;
int field2;
private int field3;
public A(){
field1 = 1;
field2 = 1;
field3 = 1;
method();
method2();
method3();
}
public vo... | true |
764e06f82d298c5328b3bdac871df41c00b570ee | Java | neelgeek/GBFS_Analytics | /Kafka/src/main/java/org/gbfsanalytics/kafka/producer/RealtimeGBFSProducer.java | UTF-8 | 213 | 1.539063 | 2 | [] | no_license | package org.gbfsanalytics.kafka.producer;
import com.google.gson.JsonArray;
public class RealtimeGBFSProducer implements GBFS_Kafka_producer{
@Override
public void publishData(JsonArray data) {
}
}
| true |
a2481f43cb9d99136d673cd53ff521c2ebd5178a | Java | o9sil/cashbook | /cashbook/src/main/java/com/gdu/cashbook/mapper/MemberidMapper.java | UTF-8 | 180 | 1.734375 | 2 | [] | no_license | package com.gdu.cashbook.mapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface MemberidMapper {
public int insertMemberidOne(String memberid);
}
| true |
8137bdcdc8ab0c0c2dadbd0ab7eb4f8af26e3bbc | Java | Seltest001/June2021javasessions | /src/javasessions/Car.java | UTF-8 | 701 | 3.046875 | 3 | [] | no_license | package javasessions;
public class Car {
String name;
int price;
String model;
static int wheels = 4;
public static void main(String[] args) {
Car c1 = new Car();
c1.name = "Audi";
c1.price = 70;
c1.model = "A6";
Car c2 = new Car();
c2.name = "Honda";
c2.price = 50;
c2.model = "Civi... | true |
612bc44b7626c2926493160e89b391a6365a4e1b | Java | romuloss/Alura | /Alura/src/javaLang/EntradaDeUmArquivo.java | UTF-8 | 1,310 | 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 javaLang;
import java.io.BufferedWriter;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import jav... | true |
f977c8e374498f1d1ca8c8d17a5aae70da0a20e1 | Java | jing-chu/java | /Exersices24To26/src/LargestPrime.java | UTF-8 | 332 | 2.9375 | 3 | [] | no_license | public class LargestPrime {
public static int getLargestPrime (int num) {
if (num <= 1) {
return -1;
}
int i = 2;
while(i < num) {
if(num % i == 0) {
num /= i;
continue;
}
i++;
}
return i... | true |
727f29095c894bca82c1d411f197e9c448b8d67d | Java | chenzan/masterSlave | /src/main/java/com/cz/demo/config/DataSourceConfig.java | UTF-8 | 1,317 | 2.125 | 2 | [] | no_license | package com.cz.demo.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.jdbc.DataSourceBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Co... | true |
886ee8ec136c88ad53814199b068ca8a5fd05de6 | Java | vaishnavivasu/Karka | /app/src/main/java/com/example/user/sample/StudentDetails.java | UTF-8 | 1,980 | 2.484375 | 2 | [] | no_license | package com.example.user.sample;
import java.util.ArrayList;
public class StudentDetails {
String nme;
String DOB;
int mark=0;
int current=0;
int new_old=0;
String e_mail;
String city;
String school;
public String getCity() {
return city;
}
public String getSchoo... | true |
d4696b6f8f9e03103b7846c08feb96bae572a9ca | Java | qiutingting/java-exporter | /src/test/java/gaofei/Test.java | UTF-8 | 1,218 | 1.882813 | 2 | [] | no_license | package gaofei;
import exporter.CustomExporter;
import io.prometheus.client.CollectorRegistry;
import io.prometheus.client.Gauge;
import io.prometheus.client.exporter.PushGateway;
import org.testng.Assert;
import org.testng.ITestResult;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMet... | true |
9659dbe5d5f71fab195a97f896df904147567dad | Java | aminturn/od-premium | /cloverandroidapi/src/main/java/com/trubeacon/cloverandroidapi/inventory/service/DeleteAttribute.java | UTF-8 | 1,816 | 2.328125 | 2 | [] | no_license | package com.trubeacon.cloverandroidapi.inventory.service;
import com.fasterxml.jackson.core.type.TypeReference;
import com.trubeacon.cloverandroidapi.CloverService;
import com.trubeacon.cloverandroidapi.client.RESTException;
import com.trubeacon.cloverandroidapi.client.RESTMethod;
import com.trubeacon.cloverandroidapi... | true |
4cb83c24dbf58efdc4e819c9413e460e6294ff85 | Java | sksanket1/Java | /FWL_SanctionClient/src/main/java/com/cjc/fwl/main/model/Disbursement.java | UTF-8 | 1,108 | 2.03125 | 2 | [] | no_license | package com.cjc.fwl.main.model;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToOne;
@Entity
public class Disbursement {
@Id
private int disbursement_id;
private String payment_type;
private String payment_date;
private String transfer_amount;
@OneToOne
private San... | true |
0ecc442cba1e3a472b58361659e80b653df8f3c4 | Java | zhuSir/ddproject | /src/main/java/com/xmsmartcity/maintain/service/impl/message_operation/MessageOperationInvitedPeopleJoinCompany.java | UTF-8 | 3,045 | 2.015625 | 2 | [] | no_license | package com.xmsmartcity.maintain.service.impl.message_operation;
import java.util.Date;
import javax.transaction.Transactional;
import org.apache.commons.lang.StringUtils;
import org.apache.shiro.util.Assert;
import com.xmsmartcity.maintain.common.MessageOperationEntity;
import com.xmsmartcity.maintain.pojo.Company... | true |
d1dcce4ee736e6627aa051d70d26a0badfc829b4 | Java | cuiwjava/springDemo | /spring_14_xmlDefenition/src/main/java/com/cuiwjava/interfacex/ElementLoader.java | UTF-8 | 362 | 1.882813 | 2 | [] | no_license | package com.cuiwjava.interfacex;
import java.util.Collection;
import org.dom4j.Document;
import org.dom4j.Element;
/**
* 加载Element元素
*
*/
public interface ElementLoader {
void addElements(Document doc);//添加元素
Element getElement(String id);//获取元素
Collection<Element> getElements();//获取所有的元... | true |
333a3a79a4cf669e216abc0caacf9fae3f404e1e | Java | eunziny/Bytruck | /src/vo/Profit.java | UTF-8 | 1,861 | 2.515625 | 3 | [] | no_license | package vo;
import java.util.Date;
public class Profit {
private int ad_id;
private String type;
private int price;
private Date start_date;
private Date end_date;
private String detail;
private String bussiness_name;
public Profit() {
super();
// TODO Auto-generated constructor stub
}
public Profit(i... | true |
daac2a57fd6d23efe29c3aaef32543f43ab27df4 | Java | ysy15350/ReadPacket | /app/src/main/java/com/ysy15350/readpacket/adapters/ListViewAdpater_Invite.java | UTF-8 | 961 | 2.140625 | 2 | [] | no_license | package com.ysy15350.readpacket.adapters;
import android.content.Context;
import com.ysy15350.readpacket.R;
import java.util.List;
import base.ViewHolder;
import base.adapter.CommonAdapter;
import base.model.UserInfo;
import common.CommFun;
/**
* 订单
*
* @author yangshiyou
*/
public class ListViewAdpater_Invite... | true |
1ebc12a68b1aab6be265a18bc998b73879d1be48 | Java | designer-citrusbits/Fantasy-Football-Database | /data-scrapers/GamesTableScraper.java | UTF-8 | 5,783 | 2.953125 | 3 | [] | no_license | import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
import com.gargoylesoftware.htmlunit.BrowserVersion;
public class GamesTableScraper
{
// Change constan... | true |
516bf89adf237cd907c7c3e4633e4db1c5dd346a | Java | elisonoliveira/Algoritmos3UltimaAula | /Pessoa.java | ISO-8859-1 | 4,857 | 2.875 | 3 | [] | no_license | import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.Scanner;
import java.sql.*;
public class Pessoa {
String nome;
int cod_instituicao;
int idade;
int CGU;
float notag1;
float notag2;
Scanner tc = new Scanner(System.in);
Banco b = new Banco();
public... | true |
664555025ae0c805328b9fee3c7ac75e00c2cb6d | Java | zfksoul/coding | /src/algorithms/tree/IsCompleteBT.java | UTF-8 | 2,436 | 3.484375 | 3 | [] | no_license | package algorithms.tree;
import java.util.LinkedList;
import java.util.Queue;
public class IsCompleteBT {
public static void main(String[] args){
TreeNode node1 = new TreeNode(1);
TreeNode node2 = new TreeNode(2);
TreeNode node3 = new TreeNode(3);
TreeNode node4 = new Tre... | true |
661955f2363599b6ee746ada3443178220c9b187 | Java | OpenImageAnalysisGroup/IAP | /IAP/src/de/ipk/ag_ba/commands/control/ImageInfo.java | UTF-8 | 1,672 | 2.359375 | 2 | [] | no_license | package de.ipk.ag_ba.commands.control;
import java.awt.image.BufferedImage;
import java.util.TreeMap;
public class ImageInfo {
private TreeMap<Integer, BufferedImage> images;
private TreeMap<Integer, String> imageSubstances;
private TreeMap<Integer, String> imageBarcode;
private TreeMap<Integer, Double> imageRo... | true |
0405ab4488a9791a27ab28ad0285bd70560f2166 | Java | stock17/WeightLoser | /app/src/main/java/com/yurima/weightloser/main/model/MainModel.java | UTF-8 | 470 | 2.234375 | 2 | [] | no_license | package com.yurima.weightloser.main.model;
import android.content.Context;
import java.util.List;
public class MainModel {
private Context mContext;
private DayPointDataBase mDataBase;
public MainModel(Context context) {
mContext = context;
mDataBase = DayPointDataBase.getInstance(conte... | true |
a7f59881eeb02fd69214a52cad9dd07fefda693e | Java | tuziilm/appface | /src/com/zhanghui/appface/service/AdManageService.java | GB18030 | 1,693 | 2.34375 | 2 | [] | no_license | package com.zhanghui.appface.service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zhanghui.appface.domain.AdManage;
import com.zhanghui.appfa... | true |
95099795f61ad12991f75e9b6109546dfdb1b270 | Java | KryptonCaptain/Advanced-Thaumaturgy2 | /src/main/java/net/ixios/advancedthaumaturgy/proxies/CommonProxy.java | UTF-8 | 8,489 | 1.835938 | 2 | [] | no_license | package net.ixios.advancedthaumaturgy.proxies;
import java.util.ArrayList;
import java.util.Iterator;
import cpw.mods.fml.common.network.IGuiHandler;
import net.ixios.advancedthaumaturgy.gui.ContainerNodeModifier;
import net.ixios.advancedthaumaturgy.gui.ContainerWandbench;
import net.ixios.advancedthaumaturgy.gui.Gu... | true |
e4cd8e0cbe9fe524f1be33efb17338abbbb5ab38 | Java | DementorAl/nightBird | /01.wood/src/Point.java | UTF-8 | 753 | 3.671875 | 4 | [] | no_license | public class Point {
private final int x;
private final int y;
@Override
public boolean equals(Object obj) {
Point point = (Point) obj;
if (this.x == point.x && this.y == point.y) {
return true;
}
return false;
}
public Point(int x, int y) {
... | true |
356f17b665a095de8c813e23d378dabd3fc5f53f | Java | walteranyika/Manager | /app/src/main/java/io/walter/manager/fragments/ChargeFragment.java | UTF-8 | 7,799 | 2.078125 | 2 | [] | no_license | package io.walter.manager.fragments;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.Snackbar;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
i... | true |
d03089a690501c730f8bdd89ba4994d0593d365a | Java | neorus616/LabCamera | /app/src/main/java/com/ariel/ckazakov/labcamera/CameraActivity.java | UTF-8 | 1,583 | 2.1875 | 2 | [] | no_license | package com.ariel.ckazakov.labcamera;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.provider.MediaStore;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.Button;
import android.widget.ImageView;
... | true |
ea45533bc0cef2f2a7329582c339b31ace93b939 | Java | bellmit/kim-parent | /kim-quality/src/main/java/com/kim/quality/business/vo/AllocateVo.java | UTF-8 | 2,440 | 2.015625 | 2 | [] | no_license | package com.kim.quality.business.vo;
import java.util.List;
import com.kim.common.base.BaseVo;
/**
* 质检任务分配记录表参数封装类
* @date 2018-9-10 10:10:11
* @author bo.liu01
*/
public class AllocateVo extends BaseVo{
private static final long serialVersionUID = 1L;
private List<String> batchNos; //抽检批次号
private S... | true |
aea6e46693a8fc0e96bf12767750185aa317e333 | Java | dpietrzak1990/SpringDataBaseJPA | /Spring/src/main/java/com/github/xenteros/repositories/CurrencyExchangeEntryRepository.java | UTF-8 | 330 | 1.570313 | 2 | [] | no_license | package com.github.xenteros.repositories;
import com.github.xenteros.model.CurrencyExchangeEntry;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface CurrencyExchangeEntryRepository extends JpaRepository<CurrencyExchangeEntry, Lo... | true |
9c367280e42aa5546ec4c971c81cc0f5b358e2f8 | Java | gustary/spring-rabbitmq | /rabbitmq-spring/src/main/java/rabbitmq/consumer/queue/listener/DirectQueueMessageListener.java | UTF-8 | 2,545 | 2.53125 | 3 | [] | no_license | package rabbitmq.consumer.queue.listener;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.core.ChannelAwareMessageListener;
import org.springframework.stereotype.Service;
import rabbitmq.util.GlobalVar;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Messa... | true |
aab6284ec0c341981adfd74bda531490994b9cbd | Java | slim-gears/slimprefs | /slimprefs-apt/src/test/resources/output/GeneratedDummyPreferences.java | UTF-8 | 2,405 | 2.75 | 3 | [
"Apache-2.0"
] | permissive | import com.slimgears.slimprefs.PreferenceProvider;
import com.slimgears.slimprefs.PreferenceValue;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.Override;
import java.lang.String;
import java.util.Date;
class GeneratedDummyPreferences implements DummyPreferences {
private final PreferenceVal... | true |
b7ab3ef1cf2ec87830b569b332dd073dab554910 | Java | pujain09/TimeSheetApp | /src/com/sample/dao/LoginDAO.java | UTF-8 | 3,678 | 2.609375 | 3 | [] | no_license | package com.sample.dao;
import java.sql.*;
import com.sample.util.*;
public class LoginDAO {
//Validates whether the login fields matches Employee_list Database
public boolean validation(String user, String pass, String role) {
boolean status = false;
Connection conn = null;
PreparedStateme... | true |
b72c821f1d90aa9e66d82b3299697472170ceba2 | Java | vinhtranphuc/pv | /src/main/java/com/so/exception/ResourceNotFoundException.java | UTF-8 | 887 | 2.171875 | 2 | [] | no_license | package com.so.exception;
import org.springframework.core.io.Resource;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@SuppressWarnings("serial")
@ResponseStatus(value = HttpStatus.NOT_FOUND)
public class ResourceNotFoundException extends RuntimeExce... | true |
7101769a2a7e26521b37659750047cfebfbdaa3b | Java | zhongxingyu/Seer | /Diff-Raw-Data/13/13_b71a72670377c3ca82070a335522f5eb9e39f873/FarragoServer/13_b71a72670377c3ca82070a335522f5eb9e39f873_FarragoServer_s.java | UTF-8 | 7,358 | 1.898438 | 2 | [] | no_license | /*
// $Id$
// Farrago is an extensible data management system.
// Copyright (C) 2005-2005 The Eigenbase Project
// Copyright (C) 2005-2005 Disruptive Tech
// Copyright (C) 2005-2005 LucidEra, Inc.
// Portions Copyright (C) 2003-2005 John V. Sichi
//
// This program is free software; you can redistribute it and... | true |
c4726e5150747f9b3423b7e063a5e157567da1b1 | Java | ravikchi/GenericGA | /src/main/java/com/ravi/GenericGA/GeneticAlgorithm/Exceptions/GAException.java | UTF-8 | 218 | 2.1875 | 2 | [] | no_license | package com.ravi.GenericGA.GeneticAlgorithm.Exceptions;
/**
* Created by ravik on 11/02/2017.
*/
public class GAException extends Exception {
public GAException(String message) {
super(message);
}
}
| true |
78cd40099b357caeaf7c3d34b1d048f1a4ec05c6 | Java | GitTeaching/MesTPIHM | /src/org/ihm/tp5/TestJFrame.java | UTF-8 | 672 | 2.265625 | 2 | [] | no_license | package org.ihm.tp5;
import javax.swing.SwingUtilities;
public class TestJFrame {
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable(){
public void run(){
MyJFrameTP5 frame = new MyJFrameTP5();
frame.setVisible(true);
}
});
SwingUtilities.invokeLa... | true |
01675ad0fbd7b3ca70785efed6b39c520d0870c8 | Java | AlanMalikov777/Assignment_6 | /Assignment6_sub4/src/com/company/Director.java | UTF-8 | 397 | 2.734375 | 3 | [] | no_license | package com.company;
public class Director {
HouseBuilder builder;
void setHouse(HouseBuilder builder) {
this.builder = builder;
}
House makeHome(){
builder.buildDoors();
builder.buildWalls();
builder.buildWindows();
builder.buildRoof();
builder.buildGa... | true |
657b305c40486a7a2ca5ec7c7fda550cdd155840 | Java | birladeanuPavel/University | /university-service/src/main/java/com/pavel/university/service/FacultyService.java | UTF-8 | 420 | 2.015625 | 2 | [] | no_license | package com.pavel.university.service;
/**
* Created by Pavel on 30.04.2014.
*/
import com.pavel.university.entity.Faculty;
import java.util.List;
public interface FacultyService {
public void addFaculty(Faculty faculty);
public void editFaculty(Faculty faculty);
public List<Faculty> getAllFaculty();... | true |
1e03a81067b9052d73388c7c0a4d13d201c54d75 | Java | foxhack/NewAgri2018 | /business/agriprpall/agriprpall-core/src/main/java/com/sinosoft/agriprpall/core/policymanage/entity/PrpCmainKey.java | UTF-8 | 810 | 2.1875 | 2 | [] | no_license | package com.sinosoft.agriprpall.core.policymanage.entity;
import com.sinosoft.framework.core.dao.BasePKImpl;
import javax.persistence.*;
/**
* @author codegen@研发中心
* @mail admin@sinosoft.com.cn
* @time 2017-10-25 00:11:08.712
* 保单信息主表主键操作对象
*/
public class PrpCmainKey extends BasePKImpl{
private static final ... | true |
4bc794e329a82e3c58c61598f711fb9b5d6049df | Java | xiaozhugua/Myhuarenb | /TSChat/src/com/thinksns/tschat/chat/VoiceMessageBody.java | UTF-8 | 455 | 2 | 2 | [] | no_license | package com.thinksns.tschat.chat;
import com.thinksns.tschat.bean.ModelChatMessage;
/**
* Created by ZhiYiForMac on 15/12/7.
*/
public class VoiceMessageBody extends MessageBody {
public VoiceMessageBody(int room_id, String path, int length) {
super(room_id, "voice");
this.content = "[语音]";
... | true |
e0d170393c7cefd2912c03d15c19b4c09da134ed | Java | peihe/DataflowJavaSDK | /sdk/src/test/java/com/google/cloud/dataflow/sdk/runners/worker/status/WorkerStatusPagesTest.java | UTF-8 | 2,431 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2015 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | true |
0fa3451215e94e65f36f9508f79d29dd644401e4 | Java | Maria-Sparrow/iot | /BLOOD20/src/main/java/ua/lviv/iot/model/ChemicalsForFloor.java | UTF-8 | 640 | 2.359375 | 2 | [] | no_license | package ua.lviv.iot.model;
public class ChemicalsForFloor extends AbstractHouseholdChemicals {
private String typeOfFloor;
public ChemicalsForFloor(String producer, double priceInUAH, int weightInGrams, String expirationDate,
int harmfulnessInPercent, int solubilityInPercent, String type, String smell,... | true |
aa401613cc08ae541ea336904062ad53ed090d25 | Java | sagar-2000/RISK_SoftwareEngProject | /Biscuit-main/src/ENGINE/Risk.java | UTF-8 | 2,003 | 2.953125 | 3 | [] | no_license | package ENGINE;
/*
* Ruben van Breda, 19200704
* David Sebastian Fernandes, 19203219
* Sagar Mahajan , 19204052
* */
import java.awt.Color;
import javax.swing.JOptionPane;
import ENGINE.GameManager.Phase;
import GameObjects.Player;
import UI.MainFrame;
import UI.Map;
import UI.Map.Node;
public class Risk {
st... | true |
59caae55ffc73264317d706deab5d79dbfda4abc | Java | lovehoroscoper/cadmium | /core/src/main/java/com/meltmedia/cadmium/core/commands/GitLocation.java | UTF-8 | 1,983 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2012 meltmedia
*
* 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 ... | true |
6ad469ab25afea1d06aa512730aef02633dacbfc | Java | hsm0829/webServerDemo | /src/main/java/com/web/generator/controller/CostController.java | UTF-8 | 2,217 | 2.234375 | 2 | [] | no_license | package com.web.generator.controller;
import com.alibaba.fastjson.JSON;
import com.web.generator.dao.entity.Cost;
import com.web.generator.service.CostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.ster... | true |
bdc96ddae8c857bb2e056ea5e7d6ccdf5b618da0 | Java | zembrzuski/geocitizen-elasticsearch-importer | /src/main/java/com/zembrzuski/geolife/geolifeimporter/geojson/entity/Point.java | UTF-8 | 367 | 2.203125 | 2 | [] | no_license | package com.zembrzuski.geolife.geolifeimporter.geojson.entity;
import com.google.common.collect.Lists;
import lombok.Data;
import java.util.List;
@Data
public class Point {
private final String type = "Point";
private final List<Float> coordinates;
public Point(float lat, float lon) {
this.coord... | true |
1a2be3f54b03b8b9a1f35adff5d46e8d3e242648 | Java | farshadfalaki/pim | /modules/aggregator/src/main/java/com/farshad/aggregator/repository/impl/StatisticsRepositoryImpl.java | UTF-8 | 1,435 | 2.34375 | 2 | [] | no_license | package com.farshad.aggregator.repository.impl;
import com.farshad.aggregator.constants.ProductProcessStatus;
import com.farshad.aggregator.model.Statistics;
import com.farshad.aggregator.repository.StatisticsJpaRepository;
import com.farshad.aggregator.repository.StatisticsRepository;
import com.farshad.aggregator.ut... | true |
9e6a08b7afdf5b07ace25133682f4d779e3f1c84 | Java | fadhilahramadhan/Uji_T_2_Sampel_indepent | /app/src/main/java/fadhilahramadhan/skripsi/ujit2sampelindepent/Fragment/DataFragment.java | UTF-8 | 37,623 | 1.609375 | 2 | [] | no_license | package fadhilahramadhan.skripsi.ujit2sampelindepent.Fragment;
import android.Manifest;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.ActivityNotFoundException;
import android.content.ContentValues;
import android.content.Context;
import android.co... | true |
0095a312cd3ff70ca7ccb60e48f13e37071fcfc3 | Java | eviltester/scriptgenerator | /src/main/java/com/eviltester/scriptformatter/files/ScriptConfigFile.java | UTF-8 | 1,471 | 2.671875 | 3 | [
"MIT"
] | permissive | package com.eviltester.scriptformatter.files;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
public class ScriptConfigFile {
Properties properties = new Properties();
final File propertiesFile;
Li... | true |
3abba9115dff0acd78c5f43d6d6472d56bf50a66 | Java | jbebe/ShearableChicken | /src/main/java/com/bajuh/shearablechickenmod/entity/ShearableChickenEggItem.java | UTF-8 | 2,807 | 2.28125 | 2 | [] | no_license | package com.bajuh.shearablechickenmod.entity;
import com.bajuh.shearablechickenmod.init.ObjectRegistration;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.entity.SpawnReason;
import net.minecraft.item.Item;
import net.minecraft.item.Item... | true |
4ee5797a7f389873f14f18d28c7cd8af6a7d2f98 | Java | Noadkoko/msl | /app/src/main/java/com/example/nguyhuy/msl/Season.java | UTF-8 | 924 | 2.546875 | 3 | [] | no_license | package com.example.nguyhuy.msl;
public class Season {
private int episode_count;
private String poster_path;
private int season_number;
public Season() {
}
public Season(int episode_count, String poster_path, int season_number) {
this.episode_count = episode_count;
this.pos... | true |
11757a5742a9b1d8bf833f2e1c31a1f8ae392b29 | Java | autoschool/ya.blogo | /src/main/java/org/yablogo/practice/resources/UserResource.java | UTF-8 | 2,641 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package org.yablogo.practice.resources;
import org.glassfish.jersey.server.mvc.ErrorTemplate;
import org.glassfish.jersey.server.mvc.Template;
import org.yablogo.practice.model.Post;
import org.yablogo.practice.model.User;
import org.yablogo.practice.view.ViewData;
import javax.servlet.http.HttpServletRequest;
import... | true |
2667574bc03c4109b1db96825a29d4a567ca0248 | Java | lkun/enode | /enode/src/main/java/org/enodeframework/messaging/Message.java | UTF-8 | 659 | 2.453125 | 2 | [
"MIT"
] | permissive | package org.enodeframework.messaging;
import org.enodeframework.common.utilities.ObjectId;
import java.util.Date;
public abstract class Message implements IMessage {
private String id;
private Date timestamp;
public Message() {
id = ObjectId.generateNewStringId();
timestamp = new Date();... | true |
ec9d6fa0487f7cc5e52bc784401862e1904c86ec | Java | Ulfsvartr/Films | /src/main/java/controllers/FilmController.java | UTF-8 | 5,698 | 2.296875 | 2 | [] | no_license | package controllers;
import com.tstu.exceptions.MovieLibraryException;
import com.tstu.filters.FilmFilter;
import com.tstu.model.dto.GenreDto;
import com.tstu.utils.jsonResp.NewReview;
import com.tstu.model.Review;
import com.tstu.model.User;
import com.tstu.model.dto.FilmDto;
import com.tstu.model.dto.ReviewDto;
impo... | true |
4b46e2963b827570ef75b360bf1075fd71a76418 | Java | Goodjjob/practice_egov_7 | /src/main/java/egovframework/example/welcomeWeb1/service/impl/WelcomeWeb1Mapper.java | UTF-8 | 786 | 1.804688 | 2 | [] | no_license | package egovframework.example.welcomeWeb1.service.impl;
import java.util.List;
import java.util.Map;
import egovframework.example.welcomeWeb1.service.WelcomeWeb1VO;
import egovframework.rte.psl.dataaccess.mapper.Mapper;
import egovframework.rte.psl.dataaccess.util.EgovMap;
@Mapper("welcomeWeb1Mapper")
public interfa... | true |
fc139921db032ff486278363d2d7b3accbfb4e4f | Java | LeilaHaouassa/BookFinder-App | /src/main/java/com/dps/bookfinderapp/service/BookServiceImpl.java | UTF-8 | 1,309 | 2.515625 | 3 | [] | no_license | package com.dps.bookfinderapp.service;
import com.dps.bookfinderapp.Entity.Book;
import com.dps.bookfinderapp.repository.BookRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.HashSet;
import java.util.Set;
@Service
public class... | true |
344f7c7aba8c2c30db5adb41855c5352ab51a043 | Java | xetra-development/ARAJW | /src/main/java/net/theartex/mathhulkapi/Alert.java | UTF-8 | 1,451 | 2.515625 | 3 | [] | no_license | package net.theartex.mathhulkapi;
import lombok.Getter;
import org.json.JSONObject;
import java.io.IOException;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
public class Alert {
@Getter
... | true |
e56e702f8fb075f8a312f882f3200edcf090a23f | Java | achyut1608/SpringCore | /SpringCore/src/Pojo/Employee.java | UTF-8 | 376 | 3.140625 | 3 | [] | no_license | package Pojo;
public class Employee {
String name;
int id;
Address address;
public Employee(String name,int id) {
this.name = name;
this.id = id;
}
public Employee(String name,int id,Address address){
this.name = name;
this.id = id;
this.address = address;
}
public String toString() {
return ... | true |
805cebc8d9ddbf7807a82e8c80d5dfe520d7c5be | Java | Karginskiy/CoffeeShopManager | /app/src/main/java/ru/nkargin/coffeeshopmanager/service/UserService.java | UTF-8 | 477 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package ru.nkargin.coffeeshopmanager.service;
import com.orm.query.Condition;
import com.orm.query.Select;
import ru.nkargin.coffeeshopmanager.model.User;
public class UserService {
public static final UserService INSTANCE = new UserService();
public UserService() {}
public User getUserByName(String ... | true |
b24b7c3b372367896a57b35b2a01e4e7d58deab3 | Java | the-JJ/zavrsni-rad | /java/src/test/java/com/juricicjuraj/ai/planner/model/CalendarTest.java | UTF-8 | 5,773 | 2.671875 | 3 | [] | no_license | //package com.juricicjuraj.ai.planner.model;
//
//import com.juricicjuraj.ai.fasttime.Duration;
//import com.juricicjuraj.ai.planner.model.calendar.Calendar;
//import com.juricicjuraj.ai.planner.model.calendar.CalendarEvent;
//import org.junit.Before;
//import org.junit.Test;
//
//import java.time.LocalDateTime;
//
//i... | true |
4fa09144b5e6d34e3ee610f33bf26822b1bb57fa | Java | suhangdeng/gitspace | /spring-cloud-mircoservice/spring-cloud-mircoservice-order/src/main/java/com/bjsxt/config/ItemProperties.java | UTF-8 | 144 | 1.523438 | 2 | [] | no_license | package com.bjsxt.config;
import lombok.Getter;
import lombok.Setter;
@Setter
@Getter
public class ItemProperties {
private String url;
}
| true |
22c79cc2244cb28204d59a0ad9ef2829f2c6796c | Java | SnowDrifter/tonkoslovie | /src/main/java/ru/romanov/tonkoslovie/content/theme/Theme.java | UTF-8 | 594 | 2.046875 | 2 | [] | no_license | package ru.romanov.tonkoslovie.content.theme;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import ru.romanov.tonkoslovie.content.exercise.Exercise;
import javax.persistence.*;
import java.util.List;
@Data
@Entity
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handle... | true |
e3bb8060eca76542c6ff833cf087a5f487eca1a8 | Java | microheart/java-learning | /src/main/java/com/iknowers/learning/collection/ConcurrentModificationExceptionDemo.java | UTF-8 | 1,928 | 3.890625 | 4 | [
"Apache-2.0"
] | permissive | package com.iknowers.learning.collection;
import java.util.*;
import java.util.concurrent.TimeUnit;
/**
* 迭代遍历集合,并发修改异常模拟 ConcurrentModificationException
* <p>
* 当迭代器在遍历集合时,若其他线程对集合进行修改,将抛出ConcurrentModificationException
* 其原理是迭代器的修改数量若和集合的修改数量不一致,则抛出异常,快速失败。
*
* @author Shun Xu
*/
public class ConcurrentModi... | true |
8b05a7a2bd153f2849022522a02ae89289ccfeb4 | Java | gabsanchez/Proyecto_Assembler | /Arqui1_Assembler/src/arqui1_assembler/Parser.java | UTF-8 | 17,603 | 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 arqui1_assembler;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOExcep... | true |
1dfde2402133d240447cd02eb3c7bb082320a15b | Java | deniszakharnev/partszone | /src/main/java/domain/CustomerStatus.java | UTF-8 | 569 | 3.0625 | 3 | [] | no_license | package domain;
public enum CustomerStatus {
ACTIVE(1),
DISABLED(0);
private Integer statusId;
CustomerStatus(int statusId) {
this.statusId = statusId;
}
public int getStatusId() {
return statusId;
}
public static CustomerStatus findById(Integer statusId) {
f... | true |
911f177fd48998864aa054b4fdfb2b42a659b361 | Java | dutkwj/WOS | /src/main/java/org/thealpha/controller/InforController.java | UTF-8 | 345 | 1.859375 | 2 | [] | no_license | package org.thealpha.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.ui.Model;
@Controller
public class InforController {
@RequestMapping("/information")
public String helloword(Model model){
return... | true |
63f7eeb7356f2704ebcf85768cf2be082ab14dc6 | Java | Alekc2110/cinema-spr-project | /src/main/java/com/my/booking/cinema/model/dto/SeatDto.java | UTF-8 | 419 | 1.890625 | 2 | [] | no_license | package com.my.booking.cinema.model.dto;
import com.my.booking.cinema.model.Line;
import com.my.booking.cinema.model.enums.Status;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SeatDto {
... | true |
574ff76f9516a0412e24f2515f8198e913f5f1ff | Java | sallareznov/l2s4 | /POO/TP5/src/hanoi/util/Disque.java | UTF-8 | 961 | 3.5 | 4 | [] | no_license | /**
* Classe permettant de modeliser des disques representes par leur diametre
* @author Salla Diagne
*/
package hanoi.util;
public class Disque {
/**
* le diametre du disque
*/
private int diametre;
/**
* le contructeur pour les objets de la classe Disque
* @param d = le diametre du disqu... | true |
449960471e7779932f930c71ebe1bd0445f92759 | Java | Fan-bozhen/- | /src/main/java/com/yan/dao/InputparamMapper.java | UTF-8 | 432 | 1.890625 | 2 | [] | no_license | package com.yan.dao;
import com.yan.pojo.Inputparam;
import com.yan.pojo.InputparamKey;
public interface InputparamMapper {
int deleteByPrimaryKey(InputparamKey key);
int insert(Inputparam record);
int insertSelective(Inputparam record);
Inputparam selectByPrimaryKey(InputparamKey key);... | true |
8627f42c021e426217ba0b652a0105c826153b7d | Java | dilmir95/JavaProgrammingB15Online | /src/OfficeHour/Person.java | UTF-8 | 676 | 3.28125 | 3 | [] | no_license | package OfficeHour;
public class Person {
String firstName;
String lastName;
String dob;
public void setAll (String newFirstName, String newLastName, String newDob){
firstName = newFirstName;
lastName = newLastName;
dob = newDob;
}
public String toString() {
... | true |
9cbbb2e92e57dfeae3bb54bc1934addc3f71124f | Java | zhougt1218/ksh_lw | /src/main/java/com/sdyy/springboot/LwkshApplication.java | UTF-8 | 309 | 1.515625 | 2 | [] | no_license | package com.sdyy.springboot;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class LwkshApplication {
public static void main(String[] args) {
SpringApplication.run(LwkshApplication.class, args);
}
}
| true |
def8d7c9bed8fa48ec1314ab7bbf5127912dae40 | Java | Yichou/UmengDemo | /src/com/edroid/common/utils/IpUtils.java | UTF-8 | 1,937 | 2.703125 | 3 | [] | no_license | package com.edroid.common.utils;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
/**
* 通过 IP 获取省份,城市工具
*
* @author Yichou 2013-11-8 11:36:58
*
*/
public final class IpUtils {
public static class IpInfo {
publi... | true |
a9ef44ffb3b2d3886ef1fee58173bd398fd90134 | Java | sinamalakouti/inverted_index | /invertedIndex/utils/datastructres/stack/Stack.java | UTF-8 | 1,669 | 3.34375 | 3 | [] | no_license | package invertedIndex.utils.datastructres.stack;
import invertedIndex.utils.datastructres.DataStructre;
import java.util.ArrayList;
import java.util.EmptyStackException;
/**
* Created by sina on 11/29/16.
*
*
* stack
*/
public class Stack <T> {
private int MaxSize;
private ArrayList stackArray;
pr... | true |
abd131b7d1d23672e1f2eedba6665da9ada65170 | Java | PreCyz/GitDiffGenerator | /src/main/java/pg/gipter/ui/menu/ApplicationSettingsController.java | UTF-8 | 13,662 | 1.820313 | 2 | [
"MIT"
] | permissive | package pg.gipter.ui.menu;
import javafx.beans.value.ChangeListener;
import javafx.collections.FXCollections;
import javafx.fxml.FXML;
import javafx.scene.control.*;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyEvent;
import javafx.scene.layout.AnchorPane;
import org.quartz.SchedulerException;
impor... | true |
1614b1fa6f8c703eef5937afbbc8258574dd706d | Java | PIYSocial-India/CSE_B-APP | /app/src/main/java/com/piysocial/cse_b/ui/resources/books.java | UTF-8 | 2,563 | 1.632813 | 2 | [] | no_license | package com.piysocial.cse_b.ui.resources;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.google.android.gms.ads.AdView;
import com.piysocial.cse_b.R;
public class books extends AppCompatActi... | true |
7bf0fd8e320be9c9552954c08f18ce85f1b7fe57 | Java | sharonchen0427/poc | /nacos-explore/src/main/java/configuration/LeaderFollowerElectionConfiguration.java | UTF-8 | 1,085 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package configuration;
import com.alibaba.nacos.api.exception.NacosException;
import lombok.extern.slf4j.Slf4j;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* 主备选举测试逻辑
* @author plusman
* @since 2021/4/12 2:52 PM
*/
@Slf4j
public class LeaderFollowerElectionConfiguratio... | true |
f438b1ddc4c65197af48211469bb263971ca9507 | Java | ApolloCEC/socketUtils | /src/main/java/at/uibk/dps/socketutils/resourcemanager/RequestResourceManagerFree.java | UTF-8 | 661 | 2.328125 | 2 | [] | no_license | package at.uibk.dps.socketutils.resourcemanager;
/**
* This class is used to define a request for all free resources which can be
* used to deploy a list of provided function links.
*
* @author Fedor Smirnov
*/
public class RequestResourceManagerFree extends RequestResourceManager {
/**
* Constructor for a f... | true |
40564401b6ad255dd7ef0a94dc830b70426939b7 | Java | nicolashefty/simulaciones | /simulaciones/src/front/Main.java | UTF-8 | 12,925 | 2.359375 | 2 | [] | no_license | package front;
import objects.*;
/*
* 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.
*/
/**
*
* @author nicolashefty
*/
public class Main extends javax.swing.JFrame {
... | true |
0dd76035a29219fc9eaa93746f02ef4e6a1250e4 | Java | palash051/R-D | /VipDashboard/src/com/vipdashboard/app/fragments/ListViewHistoryApdater.java | UTF-8 | 2,091 | 2.140625 | 2 | [] | no_license | package com.vipdashboard.app.fragments;
import java.util.List;
import com.vipdashboard.app.R;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView... | true |
5eba63d4a62ea284662e4749e6436499ba2a8726 | Java | HakemShuabr/IoTCare | /app/src/main/java/com/example/admin/firstversionapp/BackgroundService.java | UTF-8 | 20,927 | 1.804688 | 2 | [] | no_license | package com.example.admin.firstversionapp;
import android.app.AlarmManager;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.CountDownTimer;
import android.os.IBinder;
import android.... | true |
be239be1a94c4f8b62c10a355e30bc730045e5bc | Java | miglepi/RoomReservation | /src/main/java/ui/CheckOutFrame.java | UTF-8 | 791 | 2.578125 | 3 | [] | no_license | package ui;
import javax.swing.*;
public class CheckOutFrame extends JFrame {
private static final int WIDTH = 400;
private static final int HEIGHT = 400;
private JPanel panel;
private JButton backBtn;
private JList list;
private JButton checkOutBtn;
private JTextField title;
public ... | true |
2a1ec02297661d4d4f5981304c52ff1a6639d7dd | Java | htwg-cloud-application-development/static-code-analytics-application | /microservices/core/moodle-service/src/main/java/de/htwg/konstanz/cloud/models/MoodleSubmissionOfAssignmet.java | UTF-8 | 452 | 1.625 | 2 | [] | no_license | package de.htwg.konstanz.cloud.models;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import java.util.List;
/**
* Java bean of a submission in moodle
*/
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class MoodleSubmissionOfAssignmet {
Integer id;
Integer use... | true |
b7099fd2b1bfc7e848dd54bf3db0edc363f28bd5 | Java | umjammer/jlha | /src/main/java/jp/gr/java_conf/dangan/io/DisconnectableOutputStream.java | UTF-8 | 4,923 | 2.546875 | 3 | [
"BSD-2-Clause"
] | permissive | /**
* Copyright (C) 2001-2002 Michel Ishizuka All rights reserved.
*
* 以下の条件に同意するならばソースとバイナリ形式の再配布と使用を
* 変更の有無にかかわらず許可する。
*
* 1.ソースコードの再配布において著作権表示と この条件のリスト
* および下記の声明文を保持しなくてはならない。
*
* 2.バイナリ形式の再配布において著作権表示と この条件のリスト
* および下記の声明文を使用説明書もしくは その他の配布物内に
* 含む資料に記述しなければならない。
*
* このソフトウェアは石塚美珠瑠によって... | true |
cbe14e10d9c66aed40915c99546f906b7a7bac85 | Java | alefhidalgo/HighPerformanceProgramming | /portfolioService-play-rest/test/com/gft/test/akka/actors/FactorialCalculatorActorTest.java | UTF-8 | 1,503 | 2.359375 | 2 | [] | no_license | package com.gft.test.akka.actors;
import static org.junit.Assert.*;
import java.math.BigInteger;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import com.gft.akka.actors.FactorialCalculatorActor;
import com.gft.akka.common.Protocol.UserFact;
import akka.actor.ActorS... | true |
bb3a22b0eb279ee3c5164e150512fe151d583ae6 | Java | xeonye/CloudOCR | /app/src/main/java/com/czm/cloudocr/TextResult/TextResultPresenter.java | UTF-8 | 3,844 | 2.0625 | 2 | [] | no_license | package com.czm.cloudocr.TextResult;
import android.content.ContentValues;
import android.content.Context;
import android.util.Log;
import com.czm.cloudocr.model.PhotoResult;
import com.czm.cloudocr.model.WordResult;
import com.czm.cloudocr.util.MyConstConfig;
import com.google.gson.Gson;
import com.google.gson.JsonA... | true |
76c06b32486b6488f0869d5ca4280ba4814b011e | Java | CCarolLi/piggy_bank | /PiggyBankApp/app/src/main/java/com/example/PiggyBankApp/ConfirmActivity.java | UTF-8 | 4,658 | 2.609375 | 3 | [] | no_license | package com.example.PiggyBankApp;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ImageButton;
import ... | true |
072bfa8fbab7723c79cceb8e6d2e4e395b9e99dc | Java | MinerJackal/mcmod | /java/ruby/bamboo/render/block/RenderInventoryHelper.java | UTF-8 | 4,348 | 2.328125 | 2 | [] | no_license | package ruby.bamboo.render.block;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.Tessellator;
import org.lwjgl.opengl.GL11;
public class RenderInventoryHelper {
public static void standardItemRender(Block par1Block, RenderBlocks renderer,... | true |
daf5f808065aad9ccd5fa485418e571b16572a9e | Java | jullierme/truphone-livescreen-interview | /src/test/java/com/jullierme/test/DeviceServiceTest.java | UTF-8 | 3,538 | 2.515625 | 3 | [] | no_license | package com.jullierme.test;
import com.jullierme.test.business.device.DeviceService;
import com.jullierme.test.business.device.DeviceServiceImpl;
import com.jullierme.test.business.device.exception.DuplicatedDeviceException;
import com.jullierme.test.domain.Device;
import org.junit.jupiter.api.BeforeEach;
import org.j... | true |
3f2c1e5d68f2f3d0759b6a16ee5406c56540bb55 | Java | NikitaSheleg/ppvis2-5sem | /src/Catalog.java | UTF-8 | 1,010 | 2.734375 | 3 | [] | no_license | import java.util.List;
public class Catalog {
private String name, description;
public List<Catalog> catalogList;
public List<Recipe> recipeList;
public String view() {
return this.name + this.description;
}
public void addCatalog(Catalog innerCatalog) {
this.catalogList.add(... | true |
d6d917723764250f29b6bf95f683d5e1dc0da45a | Java | letaotf/webcast | /src/main/java/com/taofeng/webcast/common/DTO/UserSessionDTO.java | UTF-8 | 411 | 1.789063 | 2 | [] | no_license | package com.taofeng.webcast.common.DTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* <p>登录用户信息</p >
*
* @author: 乐陶(letao@maihaoche.com)
* @date: 2018/4/27 下午9:45
* @since V1.0
*/
@Data
public class UserSessionDTO {
@ApiModelProperty(value = "用户ID")
private Long userId;
... | true |
bffb65de432f44ec7ce89ddb38247a573e048d88 | Java | bilalbenma/CompGuide-Editor | /CGuide3 Plugin/src/org/di/uminho/cguide/wizard/Edit/Plan/EditPlanWizard.java | UTF-8 | 3,116 | 2 | 2 | [] | no_license | package org.di.uminho.cguide.wizard.Edit.Plan;
import org.apache.log4j.Logger;
import org.protege.editor.core.ui.wizard.Wizard;
import org.protege.editor.owl.OWLEditorKit;
import org.protege.editor.owl.model.OWLModelManager;
import org.protege.editor.owl.ui.ontology.wizard.create.OntologyIDPanel;
public class EditPla... | true |
79216c2af32f5e96f3b8a49f2a5b0620d9c832b1 | Java | bozongz/fijo-cores | /src/main/java/com/fijo/cores/mapper/MapResultHandler.java | UTF-8 | 219 | 1.546875 | 2 | [
"Apache-2.0"
] | permissive | /**
*
*/
package com.fijo.cores.mapper;
import java.util.Map;
/**
* 通用的Map查询结果集
*
* @author zhangbo
*
*/
public class MapResultHandler<T> extends AbstractResultHandler<Map<String, T>>{
}
| true |
34a7050e8e129331b894cb96154e3435198a8fd4 | Java | yisainan/react | /uyi2/虚拟宝库网/project (1)【虚拟宝库网www.xunibaoku.com】/f28cvt/recursion/LinkedListCreator.java | UTF-8 | 1,337 | 3.90625 | 4 | [
"MIT"
] | permissive | package interview.recursion;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import interview.common.Node;
public class LinkedListCreator {
/**
* Creates a linked list.
*
* @param data the data to create the list
* @return head of the linked list. The returned linked list
... | true |
1f1e5346ce110f9517f2236b76c9353a5ca0e2e9 | Java | wang-shun/app-server | /src/main/java/com/gome/im/api/db/model/FriendGroup.java | UTF-8 | 1,620 | 2.015625 | 2 | [] | no_license | package com.gome.im.api.db.model;
import java.io.Serializable;
/**
* Created by wangshikai on 2016/2/19.
*/
public class FriendGroup implements Serializable{
private long id;
private long uid;
private String nickName;
private String content;
private String extra;
private int con... | true |
76d297dff82383a949c3f33250df3a68a9caf591 | Java | yf956613/Baqiang | /app/src/main/java/com/jiebao/baqiang/global/FileConstant.java | UTF-8 | 345 | 1.90625 | 2 | [] | no_license | package com.jiebao.baqiang.global;
import android.os.Environment;
/**
* Created by Administrator on 2018/1/23 0023.
*/
public interface FileConstant {
// 巴枪在SDcard中创建的文件目录,用于保存所有文件
String APP_SDCARD_FILE_NAME = Environment.getExternalStorageDirectory().getPath() +
"/BaQiang/";
}
| true |
074b66af9d758ea377a52cbc8d213b84097cfa99 | Java | richPurba/httpTutorial | /src/main/java/com/httpTutorial/http/ThreadNameTrackingRunnable.java | UTF-8 | 802 | 2.984375 | 3 | [] | no_license | package com.httpTutorial.http;
public class ThreadNameTrackingRunnable implements Runnable{
private String actioname;
private Runnable runnable;
public ThreadNameTrackingRunnable(Runnable runnable,String actioname){
this.actioname = actioname;
this.runnable = runnable;
}
@Overrid... | true |
eb5ec97322640df78bdd9167504bc141ee6a3acf | Java | spring-projects/spring-boot | /spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/redis/DataRedisTestIntegrationTests.java | UTF-8 | 3,181 | 1.71875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2012-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | true |
0bb0958bcec0628793940cab86cc782299fc5bce | Java | liamlull/Parking-Lot-Template-2019-7-18-5-13-30-271 | /src/main/java/com/thoughtworks/parking_lot/controller/ParkingOrderController.java | UTF-8 | 1,591 | 2.25 | 2 | [] | no_license | package com.thoughtworks.parking_lot.controller;
import com.thoughtworks.parking_lot.model.ParkingLot;
import com.thoughtworks.parking_lot.model.ParkingOrder;
import com.thoughtworks.parking_lot.repository.ParkingLotRepository;
import com.thoughtworks.parking_lot.repository.ParkingOrderRepository;
import com.thoughtwo... | true |
0ee073f4b4fb25ffb797238e2565e984adf5de5a | Java | bellmit/ruoyi-cloud3 | /ruoyi-service/ruoyi-acad/src/main/java/com/ruoyi/acad/controller/SnsController.java | UTF-8 | 2,688 | 2.015625 | 2 | [
"MIT"
] | permissive | package com.ruoyi.acad.controller;
import com.ruoyi.acad.domain.ResponseResult;
import com.ruoyi.acad.domain.Sns;
import com.ruoyi.acad.service.ISnsService;
import com.ruoyi.common.core.domain.RE;
import com.ruoyi.common.log.annotation.OperLog;
import com.ruoyi.common.log.enums.BusinessType;
import io.swagger.annotati... | true |
0d3e1bdf3779d9955f7a6ce7353f64879f15f8dd | Java | NanyangTaiji/AndroidView | /androidview/src/main/java/com/cy/androidview/colorfilterview/ColorFilterCy.java | UTF-8 | 3,566 | 2.296875 | 2 | [] | no_license | package com.cy.androidview.colorfilterview;
import android.content.res.TypedArray;
import android.graphics.ColorMatrixColorFilter;
import android.os.Handler;
import android.view.MotionEvent;
import android.view.View;
import android.widget.ImageView;
import androidx.annotation.StyleableRes;
/**
* @Description:
* @A... | true |
6cd2cd7d80879a153842a7d27caca1ae6920334e | Java | league-level4-student/level4-module4-codeavenger1 | /src/_04_hospital/DoctorFullException.java | UTF-8 | 137 | 1.929688 | 2 | [] | no_license | package _04_hospital;
public class DoctorFullException extends Exception {
public DoctorFullException() {
super("My exception");
}
}
| true |
9ee1c2573598222df4845c6fd749eb43ae90f240 | Java | snehi23/start.spring.io | /start-site/src/test/java/io/spring/start/site/project/GradleDslProjectDescriptionCustomizerTests.java | UTF-8 | 1,893 | 1.742188 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2012-2021 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 |