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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
3e9775e2f36eedd4778ec1252479c5ef5b4ef3ca | Java | mapstruct/mapstruct | /processor/src/test/java/org/mapstruct/ap/test/bugs/_3142/Source.java | UTF-8 | 637 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.bugs._3142;
/**
* @author Filip Hrisafov
*/
public class Source {
private final Nested nested;
public Source(Nested nested) {
... | true |
ac0f2b14da647a95c483dd0912be4d843743cb63 | Java | saddamGitHub123/online-restaurants | /restaurantsbackend/src/main/java/net/saddam/restaurantsbackend/daoimpl/ProductDAOImpl.java | UTF-8 | 17,333 | 2.421875 | 2 | [] | no_license | package net.saddam.restaurantsbackend.daoimpl;
import java.util.ArrayList;
import java.util.List;
import org.hibernate.SessionFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
imp... | true |
8e467bd4dec708d96ca29b9dbd5a0f763c1b3ac5 | Java | HiveEdu/CloudEdu | /myedu/src/main/java/com/myedu/app/store/APPYunStoreCouponController.java | UTF-8 | 5,616 | 1.898438 | 2 | [
"MIT"
] | permissive | package com.myedu.app.store;
import com.myedu.common.utils.DateUtils;
import com.myedu.common.utils.ServletUtils;
import com.myedu.framework.aspectj.lang.annotation.AutoIdempotent;
import com.myedu.framework.aspectj.lang.annotation.Log;
import com.myedu.framework.aspectj.lang.enums.BusinessType;
import com.myedu.frame... | true |
74884c25de402687eb11f9c210c83927c644b834 | Java | hpfloresj/spring-boot-starter-temporal | /src/test/java/ai/applica/spring/boot/starter/temporal/samples/apps/HelloAsyncActivityCompletion.java | UTF-8 | 5,687 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2020 Applica.ai All Rights Reserved
*
* Copyright (c) 2020 Temporal Technologies, Inc. All Rights Reserved
*
* Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Modifications copyright (C) 2017 Uber Technologies, Inc.
*
* Licensed under the Apache License,... | true |
a1bd80d13bb325fb34f042e022222afbace1b25a | Java | Loc-Phan/StudentManagement | /src/src/dao/DangKiPhucKhaoDAO.java | UTF-8 | 2,873 | 2.421875 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package dao;
import java.util.List;
import org.hibernate.HibernateException;
import org.hibernate.Query;
import org.hibernate.Session;... | true |
20c2b9a338e2e83162634a310412cbac73fea7c4 | Java | mirasys/wsms | /src/wsms/com/services/DeleteStudent.java | UTF-8 | 717 | 2.359375 | 2 | [] | no_license | package wsms.com.services;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javafx.scene.control.TextField;
import wsms.com.entity.*;
public class DeleteStudent {
public void deleteStudent(TextField id) {
EntityManagerFactory emfac... | true |
9744b2e490395b49da0ac0e1b3cca84226c1cdaf | Java | akcsbtech/datastructure | /src/inheritence/Icici.java | UTF-8 | 438 | 2.78125 | 3 | [] | no_license | /**
*
*/
package inheritence;
/**
* @author akashgoyal
*
*/
public class Icici extends AbstractClassBank {
int calculateInterestRate;
public Icici(int calculateInterestRate) {
super(10,20);
this.calculateInterestRate = calculateInterestRate;
}
@Override
public int calculateInterest() {
// TODO Auto... | true |
6ce2e3388a0fed93496cfcfaf7d4e4a86510adf6 | Java | edwarhub/cyberseguridad-proyecto-final | /tncity-server/tncity-ejb/src/java/com/tncity/util/FtpUtil.java | UTF-8 | 10,407 | 2.484375 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.tncity.util;
import com.zehon.sftp.SFTPClient;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Calend... | true |
c1a453b2177386c9404053d6b9d7c1a1ff0a171d | Java | DanielChorlton/Blue-J-Apps | /app211-enrollments/Module.java | UTF-8 | 1,438 | 3.546875 | 4 | [] | no_license |
/**
* Write a description of class Module here.
*
* @author (Daniel Chorlton)
* @version (v1.0 05-10-2021)
*/
public class Module
{
// instance variables - created variables for class
private String code;
private String title;
private int creditValue;
/**
* Constructor for objects of cla... | true |
dd7afb1b855185e3a251aa1bafe1df29cd075a5d | Java | peacetrue/peacetrue-generator | /src/main/java/com/github/peacetrue/generator/Generator.java | UTF-8 | 491 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package com.github.peacetrue.generator;
import java.io.IOException;
import java.util.Map;
/**
* 生成器
*
* @author xiayx
* @see AbstractGenerator
* @see FolderNameGenerator
* @see AbstractFolderContextGenerator
* @see ProxyFolderGenerator
*/
public interface Generator {
/**
* 生成目标物
*
* @param... | true |
a1a92fd5b8a2fd28b78afaed690463048152aec4 | Java | chenhan1222/Exam-for-C-S | /src/classpackage/Receiveaddress.java | GB18030 | 2,878 | 2.703125 | 3 | [] | no_license | package classpackage;
import JDBCUtil.JDBCUtils;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
/**
* * ջַ
**/
public class Receiveaddress {
public String usernum;
public Stri... | true |
156e90819433e04df7f1234acf04c7911ca6f21a | Java | ZBJDSBJ/leetcode-2 | /062_uniquePaths_1/Solution.java | UTF-8 | 554 | 2.890625 | 3 | [] | no_license | /*
LeetCode Problem No.62: https://leetcode.com/problems/unique-paths/
Author: zhangyixing1007
Idea: recursion
Time: overtime
Space: unknown
*/
class Solution {
public int uniquePaths(int m, int n) {
if(m<=1||n<=1) ret... | true |
d8b7d4f817a733087179a0ba4b7949bfea413749 | Java | Alyssa-Ma/Lab2.2 | /Lab2.2/src/Teacher.java | UTF-8 | 993 | 3.1875 | 3 | [] | no_license | public class Teacher extends Person{
private String subject;
private String title;
private int age;
private int numClass;
public Teacher(int height, String firstName, String familyName, double weight, String subject, String title, int age, int numClass) {
super(height, firstName, familyName, weight);
... | true |
089635e8655bff6cd0f08192f745ef019fb9977e | Java | patricsteiner/efalg | /hw2/data/Schwager/src/ch/fhnw/efalg/NonogramStarter.java | UTF-8 | 3,534 | 3.109375 | 3 | [] | no_license | package Schwager.src.ch.fhnw.efalg;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Observer;
import javax.swing.JFileChooser;
import javax.swing.SwingUtilities;
import Schwager.src.ch.fhnw.efalg.algori... | true |
bce685e55c63ec8e086caf3b90b868f53a31d8d6 | Java | sunita09paul/BasicJavaConcept | /src/Lecture4/ThisConstructorExample.java | UTF-8 | 495 | 3.328125 | 3 | [] | no_license | package Lecture4;
public class ThisConstructorExample {
ThisConstructorExample(){
//this(10);
System.out.println("in no arg constructor");
}
ThisConstructorExample(int a){
this();
System.out.println(a);
}
public void show() {
display(this);
}
public void display(ThisConstructorExample t) {
... | true |
756839585755df4fff94f89f242d15d1f4b8c5ae | Java | dbroda/togglz | /spring-mobile/src/test/java/org/togglz/spring/mobile/DeviceActivationStrategyTest.java | UTF-8 | 5,610 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package org.togglz.spring.mobile;
import org.assertj.core.api.Assertions;
import org.junit.After;
import org.junit.Test;
import org.springframework.mobile.device.Device;
import org.springframework.mobile.device.DeviceType;
import org.togglz.core.Feature;
import org.togglz.core.repository.FeatureState;
import org.toggl... | true |
27f3c543cb369c79f8fa12033776a01c7ad4ed7d | Java | pirati02/SoundCloudMusicView | /app/src/main/java/baqari/dev/com/test/VisualiserView.java | UTF-8 | 6,012 | 2.03125 | 2 | [] | no_license | package baqari.dev.com.test;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.media.MediaPlayer;
import android.media.audiofx.Visualizer;
import android.net.Uri;
import android.text.TextUt... | true |
710977dbb16437737dce2f3dc05659a28478a804 | Java | coderark/xpenses | /app/src/main/java/com/prit/ark/xpenses/SplashActivity.java | UTF-8 | 3,379 | 2.234375 | 2 | [] | no_license | package com.prit.ark.xpenses;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import com.firebase.ui.auth.AuthUI;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseUser;
import com.google.firebase.da... | true |
bc32b944eea356d63a3e3be6cf91e9bfc3273ea9 | Java | vahermihkel/Java-04-2021 | /src/ee/omis/item/ItemType.java | UTF-8 | 85 | 1.882813 | 2 | [] | no_license | package ee.omis.item;
public enum ItemType {
SILVER, GOLD, PLATINUM, TITANIUM
}
| true |
97e3298b18618909ec1f0b68abb80e37f8ad3c46 | Java | ZMTraobin/ZMTraobin | /villager/csp-core/src/main/java/com/cmig/future/csportal/module/properties/mgtuser/mapper/MgtUserCommunityMapper.java | UTF-8 | 1,512 | 1.9375 | 2 | [] | no_license | package com.cmig.future.csportal.module.properties.mgtuser.mapper;
import com.cmig.future.csportal.module.properties.mgtuser.dto.MgtUserCommunity;
import com.hand.hap.mybatis.common.Mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface MgtUserCommunityMapper extends Mapper<MgtU... | true |
35645708af3fb835e21c4fb85d448ecaea5d32d9 | Java | PK-git27/C86-Ppk | /oop/src/opplianxi02/Rect.java | UTF-8 | 469 | 2.890625 | 3 | [] | no_license | package opplianxi02;
public class Rect extends Shape{
protected double High;
private double V;
public void setWidth(double a){
this.Width=a;
}
public void setHeigth(double b){
this.Height=b;
}
public void setHigh(double c){
this.High=c;
}
public void getV(){
V=High*Height*Width;
System.out.printl... | true |
0066224cb0810215886142e2c9dd7732bdc4f90b | Java | sushilpokharel2009/HealthCareManagementSystems | /src/com/service/QueryPharmacyService.java | UTF-8 | 5,854 | 1.890625 | 2 | [] | no_license | package com.service;
import com.util.HcmsConnectionFactory;
import com.util.HcmsException;
import com.forms.QueryPharmacyForm;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import com.opensymphony.xwork2.ActionSupport;
... | true |
b557273e9fa366696ee624e72a7752c2599181aa | Java | zj565061763/scatter-service | /lib/src/main/java/com/sd/lib/scatter/service/Scatterio.java | UTF-8 | 4,280 | 2.546875 | 3 | [] | no_license | package com.sd.lib.scatter.service;
import com.sd.lib.scatter.service.exception.IllegalRequestEventException;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public class Scatterio
{
public static final String MSG_CONNECT = "40/scatter";
public static final String MSG_EV... | true |
6767fd66ce00175c6899d2f2557221c29731083b | Java | hussyn/ABC1 | /src/Arrays/MergeArraySample.java | UTF-8 | 1,038 | 3.875 | 4 | [] | no_license | package Arrays;
public class MergeArraySample {
//How to merge two sorted array and final array should be in descending order with O(n) performance.
//There two integer array int a[] = {12,45,67,89,100} and int b[]={1,13,46,65,88,90,101} and resulted array would be int result[]={101,100,90,89,88,67,65,46,45,13,12,1}
... | true |
2384b4ce2e4526421d7d6c675cf052e855f645ed | Java | akulinski/restmoney | /src/main/java/com/akulinski/restmoney/EntryPoint.java | UTF-8 | 716 | 2.078125 | 2 | [] | no_license | package com.akulinski.restmoney;
import com.akulinski.restmoney.core.components.ApplicationComponent;
import com.akulinski.restmoney.core.components.DaggerApplicationComponent;
import static spark.Spark.port;
public class EntryPoint {
private ApplicationComponent applicationComponent;
private void start() ... | true |
edbfa5159f9dd1d61011d6fd2ada7d216945b130 | Java | elNapoli/PetOperation2 | /app/src/main/java/com/example/elnapoli/petoperation/adapters/PetAdapter.java | UTF-8 | 3,318 | 2.375 | 2 | [] | no_license | package com.example.elnapoli.petoperation.adapters;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
... | true |
8b2d8733d691ab7e09f1ec44ae355bd3b340a054 | Java | EliotFields/TabletopSettlementGenerator | /Town Generator/src/model/NameGenerator.java | UTF-8 | 2,621 | 3.3125 | 3 | [] | no_license | package model;
import java.util.Random;
import java.util.ArrayList;
import java.util.Scanner;
import java.io.File;
import java.io.FileNotFoundException;
public class NameGenerator {
private Random _rand;
private ArrayList<String> _American0;
private ArrayList<String> _American1;
private ArrayLis... | true |
604fc4a38ea645d10473338c6423060a1ba79e64 | Java | ivanDannels/hasor | /src/extends-parent/toos-parent/org.more.toos.const/src/org/dev/toos/constcode/model/ConstModelSet.java | GB18030 | 6,719 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2008-2009 the original (zyc@hasor.net).
*
* 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 require... | true |
aea8d2b5274f9342b17783437f2eb947c7c1b2d7 | Java | Crow20/Courses | /Courses/app/src/main/java/com/sike/courses/activity/MyAdapter.java | UTF-8 | 4,956 | 2.5 | 2 | [] | no_license | package com.sike.courses.activity;
import android.content.Context;
import android.graphics.Color;
import android.util.Log;
import android.view.Display;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.LinearLayout;
imp... | true |
59cf374ee0a6de2ba2d0b1fd684a1d87aebe2fb0 | Java | tup29794/CIS3238_paystation | /test/paystation/domain/FixedDecisionStrategy.java | UTF-8 | 526 | 2.859375 | 3 | [] | no_license | package paystation.domain;
/**
* Created by tuvttran on 9/25/17.
*/
public class FixedDecisionStrategy
implements WeekendDecisionStrategy {
private boolean isWeekend;
/**
* Construct a test stub weekend decision strategy
* @param isWeekend is the boolean value to return
* ... | true |
f0fb6df8093f52f5ac59e9d29b0ae7c174348a98 | Java | changastyle/pdf | /src/modelo/Ticket.java | UTF-8 | 582 | 2.53125 | 3 | [] | no_license | package modelo;
public class Ticket {
private int numeroFila;
private int numeroButaca;
public Ticket(int numeroFila, int numeroButaca) {
this.numeroFila = numeroFila;
this.numeroButaca = numeroButaca;
}
public int getNumeroFila() {
return numeroFila;
}
public voi... | true |
f671419e81b4740f1849526863e1d5de86068bf5 | Java | alankstewart/spring-boot-demo | /src/main/java/alankstewart/store/core/Address.java | UTF-8 | 1,337 | 2.65625 | 3 | [] | no_license | package alankstewart.store.core;
import org.springframework.util.Assert;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.SequenceGenerator;
import static org.springframework.util.Assert.hasText;
@Entity
@SequenceGenerator(name = "seq"... | true |
75dc1706687391d018a75ff2d280af430d48f486 | Java | mikheev-anton/JavaItis | /SixthLecture/DaoJdbc/src/test/java/ru/itis/jdbc/dao/jdbc/UserDaoJdbcImplTest.java | UTF-8 | 1,199 | 2.046875 | 2 | [] | no_license | package ru.itis.jdbc.dao.jdbc;
import org.junit.Before;
import org.junit.Test;
import ru.itis.jdbc.dao.UserDao;
import ru.itis.jdbc.factory.ConnectionFactory;
import ru.itis.jdbc.factory.DaoFactory;
import ru.itis.jdbc.model.User;
import java.util.List;
import static org.junit.Assert.*;
public class UserDaoJdbcImp... | true |
5a5170cf812f74c4c16397cdaec00bb9177cb96f | Java | WalterJX/DiaryCraft | /app/src/main/java/com/next/diarycraft/MapFragment.java | UTF-8 | 15,871 | 1.960938 | 2 | [] | no_license | package com.next.diarycraft;
import android.Manifest;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
i... | true |
5baee7db1c9b090a21b9d1260ba32b644697a63d | Java | ISPPG5/sportsmate | /src/main/java/converters/FolderToStringConverter.java | UTF-8 | 422 | 2.21875 | 2 | [] | no_license |
package converters;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import domain.Folder;
@Component
@Transactional
public class FolderToStringConverter implements Converter<Folder, St... | true |
cb72e71a342ec4937004ef3e018c22e76c96036c | Java | Qtexl2/Pipeline | /src/main/java/by/local/test/model/Pipeline.java | UTF-8 | 2,518 | 2.140625 | 2 | [] | no_license | package by.local.test.model;
import by.local.test.dto.Status;
import lombok.*;
import org.springframework.data.annotation.CreatedDate;
import javax.persistence.*;
import java.util.Date;
import java.util.List;
@Entity
@Table(name = "pipeline")
@Builder
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public cl... | true |
d83f6a7df9280de0ff9bd75997a92c128f3431ec | Java | amordahl/objsim | /src/main/java/edu/utdallas/objsim/profiler/prelude/PreludeTransformerClassVisitor.java | UTF-8 | 3,605 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | package edu.utdallas.objsim.profiler.prelude;
/*
* #%L
* objsim
* %%
* Copyright (C) 2020 The University of Texas at Dallas
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | true |
c642d9f9cb45014f95890bd11c993cfd3ddb1c7c | Java | sengeiou/live_sdk | /lib-showField/src/main/java/com/lib/showfield/ui/adapter/GiftFullAdapter.java | UTF-8 | 3,448 | 2.03125 | 2 | [] | no_license | package com.lib.showfield.ui.adapter;
import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.appcompat.widget.AppCompatImageView;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.a... | true |
a00e9605bcb2b32602a577eb0e283a615851e4a9 | Java | rcontin/curso-java-vnt | /CursoJava/src/Aula1/Ex6_TrechoDeCodigo.java | ISO-8859-1 | 295 | 3.078125 | 3 | [] | no_license | // 6. Qual o valor de i e n aps a execuo?
package Aula1;
public class Ex6_TrechoDeCodigo {
public static void main(String[] args) {
int i = 10;
int n = i++%5;
System.out.println("i = " + i); //Deve ser 11
System.out.println("n = " + n); //Deve ser 0
}
}
| true |
8f98f88a719c10ef5d92282f1a0a73dd959e5b9e | Java | anparmag/F3FStatApp | /app/src/main/java/pl/f3f_klif/f3fstatapp/groups/strategy/menu/UpdateEventRoundStrategy.java | UTF-8 | 2,214 | 2.328125 | 2 | [] | no_license | package pl.f3f_klif.f3fstatapp.groups.strategy.menu;
import android.widget.Toast;
import com.loopj.android.http.AsyncHttpResponseHandler;
import com.loopj.android.http.RequestParams;
import cz.msebera.android.httpclient.Header;
import pl.f3f_klif.f3fstatapp.R;
import pl.f3f_klif.f3fstatapp.api.F3XVaultApiClient;
im... | true |
00b56a7ea33925470e710554a7212845dcc78abe | Java | HaydenVass/Public-Works | /Android/JAV2/VassHayden_CE07/app/src/main/java/com/example/vasshayden_ce07/services/ArticleIntentService.java | UTF-8 | 1,329 | 2.25 | 2 | [] | no_license | //Hayden Vass
//Jav21905
//ArticleIntentService
package com.example.vasshayden_ce07.services;
import android.app.IntentService;
import android.content.Intent;
import android.content.Context;
import com.example.vasshayden_ce07.fragments.MainListFragment;
import com.example.vasshayden_ce07.objects.Article;
import java... | true |
6955240397b24134dd335c59158a3c8c3f73521d | Java | yasarb/springboot-inventory-webapp | /src/main/java/com/ysrbdlgn/spring/webapp/domain/Item.java | UTF-8 | 1,451 | 2.421875 | 2 | [
"Unlicense"
] | permissive | package com.ysrbdlgn.spring.webapp.domain;
import javax.persistence.*;
@Entity
public class Item {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id", nullable = false, updatable = false)
private long id;
@Column(name = "code", nullable = false, updatable = false, unique... | true |
11b41fc07f91265504651f21ad9d7a8d9f0d11f5 | Java | VictorRibeiroLima/Veggie | /src/main/java/bt/com/veggie/burgers/estoque/DAO/HistoricoRepository.java | UTF-8 | 741 | 1.953125 | 2 | [] | no_license | package bt.com.veggie.burgers.estoque.DAO;
import bt.com.veggie.burgers.estoque.entity.Historico;
import bt.com.veggie.burgers.estoque.entity.HistoricoPK;
import bt.com.veggie.burgers.estoque.entity.Produto;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.spring... | true |
1bef58f8b48daaa6fa69b2f536da1bb117729f7f | Java | Zane2453/Java_Bomberman-Jetters | /FP_104502529/src/FP_104502529/Start.java | BIG5 | 4,852 | 2.65625 | 3 | [] | no_license | package FP_104502529;
import java.awt.BorderLayout;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.io.File;
... | true |
2075f4254cad78a1119a513db5fdab5accedc68d | Java | TheTriSonics/PowerUp | /src/org/usfirst/frc/team4003/robot/profiling/ProfileNotifier.java | UTF-8 | 360 | 2.140625 | 2 | [] | no_license | package org.usfirst.frc.team4003.robot.profiling;
import com.ctre.phoenix.motorcontrol.can.TalonSRX;
public class ProfileNotifier implements Runnable {
private TalonSRX talon;
public ProfileNotifier(TalonSRX talon) {
this.talon = talon;
}
@Override
public void run() {
this.talon... | true |
5a779242f2c3b1a1664381f6b09ea2e722f77789 | Java | subes/DockingFrames | /docking-frames-common/src/bibliothek/gui/dock/common/intern/color/ColorTransmitter.java | UTF-8 | 3,143 | 2.640625 | 3 | [] | no_license | /*
* Bibliothek - DockingFrames
* Library built on Java/Swing, allows the user to "drag and drop"
* panels containing any Swing-Component the developer likes to add.
*
* Copyright (C) 2007 Benjamin Sigg
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Le... | true |
e9b90250a58b0c7d783e6866d168d5a9f077384f | Java | ITYim/BeikoHealthDoctorAndroid | /app/src/main/java/com/alensic/beikohealth/doctor/receiver/RongIMReceiver.java | UTF-8 | 794 | 1.8125 | 2 | [] | no_license | package com.alensic.beikohealth.doctor.receiver;
import android.content.Context;
import android.util.Log;
import com.yim.base.utils.Logger;
import io.rong.push.notification.PushMessageReceiver;
import io.rong.push.notification.PushNotificationMessage;
/**
* @author zym
* @since 2017-08-02 11:27
*/
public class R... | true |
724a47a673c919338544c1b9d660355c031156da | Java | wanglicq/11_28homework_FightGame | /src/main/java/identity/Knight.java | UTF-8 | 1,050 | 3.078125 | 3 | [] | no_license | package identity;
import weapon.WeaponCharacter;
public class Knight extends Job {
public Knight(String name, int blood, int damage) {
super(name, blood, damage);
}
@Override
public String getRole() {
return "骑士";
}
@Override
public void checkWearWeaponType(String weaponT... | true |
38bb9df248f6936e64b76914952771061588bd8f | Java | CalvinChen/timebank | /timebank-web-main/src/main/java/tk/persistence/impl/jdbc/CookieAdminDaoImpl.java | UTF-8 | 3,926 | 2.34375 | 2 | [] | no_license | package tk.persistence.impl.jdbc;
//package timebank.persistence.impl.jdbc;
//
//import java.sql.Connection;
//import java.sql.PreparedStatement;
//import java.sql.ResultSet;
//import java.sql.SQLException;
//import java.sql.Timestamp;
//import java.util.ArrayList;
//import java.util.Date;
//
//import org.sp... | true |
12a70b353cbc1a5fecb8b082b9389da8d72617c7 | Java | 7373/enterprise-information-exchange-and-sharing-system | /src/main/java/com/src/xt/system/dto/SysUserDto.java | UTF-8 | 6,064 | 2.265625 | 2 | [] | no_license | /*
* Copyright© 2003-2016 浙江汇信科技有限公司, All Rights Reserved.
*/
package com.icinfo.cs.system.dto;
import com.icinfo.cs.common.constant.DBAuthorConstants;
import com.icinfo.cs.common.utils.StringUtil;
import com.icinfo.cs.system.model.SysDepart;
import com.icinfo.cs.yr.model.DepartMent;
import com.icinfo.framework.cor... | true |
ec9b3bfedbd6a65aa31c4f60099d65498b6d5d9b | Java | cse2016hy/cse2016hy.github.io | /code/unfolding_app_template_with_examples_0/examples/de/fhpotsdam/unfolding/examples/overviewdetail/connection/ConvexHullConnectionApp.java | UTF-8 | 702 | 2.625 | 3 | [
"MIT"
] | permissive | package de.fhpotsdam.unfolding.examples.overviewdetail.connection;
import processing.core.PApplet;
public class ConvexHullConnectionApp extends PApplet {
OverviewPlusDetailConnection convexHullConnection;
public void setup() {
size(500, 500);
background(255);
smooth();
convexHullConnection = new ConvexHu... | true |
fe87e656ef3410a4401dc1c4a70b166942a60e47 | Java | jlwong/NumberSpiral | /main/NumberSpiral.java | UTF-8 | 5,645 | 3.953125 | 4 | [] | no_license | package main;
import java.util.InputMismatchException;
import java.util.Scanner;
/**
* Program that will create a clockwise number spiral based on user input.
*
* @author Jennifer Wong
*/
public class NumberSpiral {
public static final String PROMPT = "Please enter a non-negative integer:\n";
public stat... | true |
2fe05cd55c9e52936d00aa7c85fc4188c8d820d5 | Java | allanim/gradle | /subprojects/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/projectresult/DefaultResolvedLocalComponentsResultBuilder.java | UTF-8 | 2,249 | 1.617188 | 2 | [
"MIT",
"LGPL-2.1-only",
"Apache-2.0",
"CPL-1.0"
] | permissive | /*
* Copyright 2015 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 |
b855d5abe2a61fdc0e1ec281297d44f2d48c7c7c | Java | hamkasatria/praxis-academy | /novice/01-01/Kasus_2.java | UTF-8 | 1,410 | 3.109375 | 3 | [] | no_license | import java.util.Scanner;
public class Kasus_2{
public static void main(String [] args)
{
Scanner scanner = new Scanner(System.in);
System.out.println("masukkan panjang matrik");
String m = scanner.nextLine();
int x = Integer.parseInt(m);
System.out.println(x);
... | true |
21e30ed68fc9dc4e7350ec11175f58c692e730ed | Java | ktmihs/hanium2020_did | /src/main/java/com/example/demo/repository/UserRepository.java | UTF-8 | 345 | 2.0625 | 2 | [] | no_license | package com.example.demo.repository;
import com.example.demo.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
public interface UserRepository extends JpaRepository<User, String> {
User findByUserIdAndUserPassword(String userId, String password);
User findByUserId(String userName);
... | true |
3f0ae153dd938b1be2d98b248462138a743a2983 | Java | danshan/spring-boot-test-demo | /src/main/java/com/shanhh/demo/Application.java | UTF-8 | 357 | 1.578125 | 2 | [] | no_license | package com.shanhh.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @author dan
* @since 2017-04-10 14:35
*/
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.r... | true |
0670a5b6e14242f96628e289397918572c426bbb | Java | elky84/loltracer | /src/main/java/com/lol/tracer/model/lol/spectator/CurrentGameParticipant.java | UTF-8 | 525 | 1.601563 | 2 | [] | no_license | package com.lol.tracer.model.lol.spectator;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class CurrentGameParticipant {
private long teamId;
private long spell1Id;
private long spell2Id;
priva... | true |
691b12d8d50e1ef564e984da92b6844890e448f5 | Java | GeaninaAt/lgo | /src/main/java/com/project/lango/service/UserService.java | UTF-8 | 586 | 2.171875 | 2 | [] | no_license | package com.project.lango.service;
import com.project.lango.domain.User;
import com.project.lango.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**
* Created by ... | true |
99350a2ba48bf39b28798691bb055047ad438360 | Java | CheerZh/Gof-23pattern | /src/structural/proxy/staticProxy/RealStar.java | UTF-8 | 776 | 2.921875 | 3 | [] | no_license | package structural.proxy.staticProxy;
/**
* @author ZHGQ
* @project Gof-23pattern
* @Package structural.proxy.staticProxy
* @date 2019/6/3-21:57
* @Copyright: (c) 2019 USTC. All rights reserved.
* @Description:
*/
public class RealStar implements Star {
@Override
public void confer() {
System.ou... | true |
041d3beb1e75bb52a0be1aeaacf14f9e09cf6332 | Java | wangrollin/leetcode-java | /src/main/java/com/wangrollin/leetcode/n0_normal/p800/p810/problem814/Solution1.java | UTF-8 | 1,492 | 3.65625 | 4 | [
"Apache-2.0"
] | permissive | package com.wangrollin.leetcode.n0_normal.p800.p810.problem814;
/**
* 二叉树剪枝
*
* 给定二叉树根结点root,此外树的每个结点的值要么是 0,要么是 1。
* 返回移除了所有不包含 1 的子树的原二叉树。
* ( 节点 X 的子树为 X 本身,以及所有 X 的后代。)
*
* 示例1:
* 输入: [1,null,0,0,1]
* 输出: [1,null,0,null,1]
*
* 示例2:
* 输入: [1,0,1,0,0,0,1]
* 输出: [1,null,1,null,1]
*
* 示例3:
* 输入: [1,1,0... | true |
5bc5581b988301e112b56e344662de37e1c8518c | Java | NinputerWonder/Anagrams | /src/test/java/org/wonder/AnagramsTest.java | UTF-8 | 896 | 2.703125 | 3 | [] | no_license | package org.wonder;
import org.junit.Test;
import java.util.Arrays;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
public class AnagramsTest
{
@Test
public void testNoCharacters()
{
assertThat(Anagrams.of("") ... | true |
3cd3048164adaa56356edbaad74cd43d911fd923 | Java | bolteraugu/Engr301_group-9 | /src/main/java/nz/ac/vuw/engr301/group9mcs/view/DisplayMapView.java | UTF-8 | 16,057 | 2.609375 | 3 | [] | no_license | package nz.ac.vuw.engr301.group9mcs.view;
import java.awt.BasicStroke;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Stroke;
import java.awt.... | true |
f008894fb0c40953a706a80989fdd30a155eeeab | Java | ERLMKea/RSSFeedReader | /src/ATag.java | UTF-8 | 634 | 2.90625 | 3 | [] | no_license | public class ATag {
private String text;
private String href;
public ATag(String text, String href) {
this.text = text;
this.href = href;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public Strin... | true |
fa13e9a79b75e6fd14ea582ae6f361b5fa3fd41b | Java | ChristinaSte/Homework1 | /hw7/ShapeUtils.java | UTF-8 | 335 | 2.78125 | 3 | [] | no_license | package hw7;
public class ShapeUtils {
public static boolean isRectangle(Figure someFigure) {
boolean figureRectangle = someFigure instanceof Rectangle ? true : false;
}
public static boolean isTriagle(Figure someFigure) {
boolean figureTriangle = someFigure instanceof Triangle ? true : ... | true |
5d18afa591233418088fd9d9c8acc18601615008 | Java | ajaykgp/Jan-29-31-2019 | /Day03/src/ParallelExample2.java | UTF-8 | 1,034 | 3.421875 | 3 | [] | no_license | import java.util.Arrays;
import java.util.List;
import java.util.concurrent.ForkJoinPool;
import java.util.stream.IntStream;
// No of threads = (No of cores)/(1 - blockingfactor)
//Blocking Factor takes a value from 0 to 1
//If CPU intensive, the Blocking factor's value is close to 0, say 0.1
//If not CPU intensive,... | true |
430549275a40b685b4ccfe79b6402c0bef4c9af3 | Java | jeromelandreau/spring-boot | /spring-rest-jpa/src/main/java/hello/Person.java | UTF-8 | 935 | 2.234375 | 2 | [] | no_license | package hello;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import org.springframework.data.rest.core... | true |
97ea0b479aa402e5dccd71fe86c641ea32e159e5 | Java | duqilin1/weektest02 | /app/src/main/java/com/bawie/duqilin20200106/model/bean/ListBeanDao.java | UTF-8 | 665 | 1.953125 | 2 | [] | no_license | package com.bawie.duqilin20200106.model.bean;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
/*
*@auther:杜其林
*@Date: 2020/1/6
*@Time:10:23
*@Description:${DESCRIPTION}
* */
@Entity
public class ListBeanDao {
private String listBean;
@Generated(ha... | true |
bfe952d0a4becbb0c55a1d317a9f458ecbf89b7b | Java | RichelYu1998/pro1 | /day20-all/day20/code/day20/src/cn/tedu/bubble/Test1_Bubble.java | GB18030 | 1,155 | 4.09375 | 4 | [] | no_license | package cn.tedu.bubble;
import java.util.Arrays;
//ðԪرȽ + λ
public class Test1_Bubble {
public static void main(String[] args) {
//1
int[] a = {18, 9, 30, 26, 1};
//2ʼȽϣС
//ѭ -1 Ϊ5ֻҪȽ4֡i= 0 1 2 3
for (int i = 0; i < a.length - 1; i++) {
//ѭڱȽ + λ
//for (int j... | true |
d46af0d60825b8299e6105370c6a8165286fad43 | Java | Smithsonian/sidora-services | /Tabular/tabular-metadata-generator/src/main/java/edu/si/sidora/tabularmetadata/TabularScanner.java | UTF-8 | 7,038 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015-2016 Smithsonian Institution.
*
* 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/
*
* This software and accompanying documentation is su... | true |
42980f664c7b9728cc92517e5eb6b55de60cf422 | Java | hmeftah/tutorial | /src/fr/systems/novia/variableargs/VariableArgs.java | UTF-8 | 1,137 | 3.515625 | 4 | [] | no_license | package fr.systems.novia.variableargs;
/**
* Created by formation2 on 22/05/15.
*/
public class VariableArgs {
public static void main(String[] args)
{
double d1, d2, d3, d4, d5, maximum;
d1 = 10.5;
d2 = 20.5;
d3 = 30.5;
d4 = 40.5;
d5 = 50.5;
maximum = ... | true |
fa66c0bd0db90cf2aff7a6fa164f8bbeba397fa4 | Java | wenxianlong/springBootDemo | /zujuan-service/src/main/java/com/xkw/zujuan/service/impl/KafkaConsumerServiceImpl.java | UTF-8 | 664 | 1.992188 | 2 | [] | no_license | package com.xkw.zujuan.service.impl;
import com.xkw.zujuan.service.KafkaConsumerService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;
/**
* kafka消费
* @author wenxianlong
* @date 2019-08-19
*/
@C... | true |
65b559a8b7634ac357e052a30a125f9cde41d67a | Java | saroj-mandal/appslandia-common | /src/test/java/com/appslandia/common/utils/DateUtilsTest.java | UTF-8 | 5,038 | 2.46875 | 2 | [
"MIT"
] | permissive | // The MIT License (MIT)
// Copyright © 2015 AppsLandia. All rights reserved.
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
... | true |
6e828587ef690d54f4e615cebf2d21a3181e8dd5 | Java | marinabgarcia/SistemaAbastecimientoCarnes | /SistemaJava/Negocio-SA/src/Negocio/Controlador.java | UTF-8 | 20,505 | 2.046875 | 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 Negocio;
import Entidades.Articulo;
import Entidades.LineaDeCompra;
import Entidades.LineaDeVenta;
import Entidades.... | true |
e24c1d6dd53c900c0cd7006a92859305404f0cb7 | Java | jeffytang/douma-algo | /src/com/douma/line/algo/sort/MergeSorter.java | UTF-8 | 3,289 | 3.6875 | 4 | [] | no_license | package com.douma.line.algo.sort;
import java.util.Arrays;
/**
* @微信公众号 : 抖码课堂
* @官方微信号 : bigdatatang01
* @作者 : 老汤
*/
public class MergeSorter {
public void sort(int[] data) {
if (data == null || data.length < 2) return;
int[] tmp = new int[data.length];
sort(data, 0, data.length - 1, ... | true |
9e24e36e0a46fdf58f36aae8a563e17d43a2f14a | Java | vipsql/AIOPS | /aiops-service-api/aiops-prometheus-api/src/main/java/com/coocaa/prometheus/entity/Kpi.java | UTF-8 | 923 | 1.804688 | 2 | [] | no_license | package com.coocaa.prometheus.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.*;
import java.util.Date;
/**
* @description: KPI指标清单实体
* @author: dongyang_wu
* @create: 2019-08-08 0... | true |
b27a0e74668059381a700fae3878bd3bdcd679ea | Java | huangdsh/ArticlePatch | /app/src/main/java/com/lqr/articlepatch/ui/presenter/DownloadManagerPresenter.java | UTF-8 | 5,709 | 2 | 2 | [] | no_license | package com.lqr.articlepatch.ui.presenter;
import android.view.View;
import android.widget.ProgressBar;
import com.liulishuo.filedownloader.FileDownloader;
import com.liulishuo.filedownloader.model.FileDownloadStatus;
import com.lqr.adapter.LQRAdapterForRecyclerView;
import com.lqr.adapter.LQRViewHolderForRecyclerVie... | true |
f5e505a42291b82df7411531e1ee847ac9e6a59d | Java | XuanLee/java_test | /java_u1_2/src/java_02_Landlords/Cards.java | UTF-8 | 599 | 3.359375 | 3 | [] | no_license | package java_02_Landlords;
public class Cards implements Comparable{
private int[] cardArray=new int[56];
private int card;
private int index=0;
public int[] getCardArray() {
return cardArray;
}
public void setCardArray(int[] cardArray) {
this.cardArray = cardArray;
}
public int getCard() {
return card;
... | true |
294c8c6590a52dfcbcaedacfe4dd76e15af80548 | Java | LiamMentens/vluchtenservice | /src/main/java/com/example/vluchten/vluchtenservice/repository/VluchtRepository.java | UTF-8 | 558 | 1.882813 | 2 | [] | no_license | package com.example.vluchten.vluchtenservice.repository;
import com.example.vluchten.vluchtenservice.model.Vlucht;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface VluchtRepository extends MongoRe... | true |
39ca7800f867e445b3caa96d5bd0c709004ae577 | Java | 20160719/SpringNBM | /SpringNMVC/src/main/java/com/myself/interceptor/repeat/TokenInterceptor.java | UTF-8 | 1,798 | 2.328125 | 2 | [] | no_license | package com.myself.interceptor.repeat;
import java.lang.reflect.Method;
import java.util.UUID;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.method.HandlerMethod;
import org.springfr... | true |
970abba5a2c7dee98fd29a11b3dd448959134bce | Java | ELYAZRI/Compilation | /Compilation/src/com/esisa/compiler/scanner/DFA.java | UTF-8 | 1,410 | 2.9375 | 3 | [] | no_license | package com.esisa.compiler.scanner;
public class DFA {
private String name;
private State e[];
private Transition t;
public DFA(String name, int stateCount) {
this.name=name;
t=new Transition(stateCount);
e=new State[stateCount];
for (int i = 0; i < stateCount; i++) {
e[i]=new State(i)... | true |
50dcc3d069f667470137fcf595a31b593ea82642 | Java | xxzhky/taffoo-gadget | /mybatis-generator/src/main/java/cc/dt/plugin/MysqlPaginationPlugin.java | UTF-8 | 5,726 | 1.96875 | 2 | [] | no_license | /**
* Copyright (C), 2012-2022,DapTech.
* @title MysqlPaginationPlugin.java
* @package cc.dt.plugin
* @Description
* @author RID
* @date Sat, 1 Jul 2017 02:10:38, GMT+8
* @date 2017.07.01 02:10:38 GMT+8
* @version v1.0
* History:
* 1. Date: 2017年7月1日 上午2:10:38
* Author: RID
* Modificati... | true |
498cbdb2c072fd10fa02b008f1cb61c52f2785b4 | Java | preceptorVOSS/ToneMatrix | /src/com/example/ToneMatrix/LogicalGrid.java | UTF-8 | 4,640 | 2.875 | 3 | [] | no_license | package com.example.ToneMatrix;
import android.graphics.RectF;
/**
* Created by Dan Voss on 2/17/14.
* This code is also adapted from the following tutorial:
* http://www.barebonescoder.com/2010/06/android-development-simple-2d-graphics-part-2/
*/
public class LogicalGrid {
private int _splitWidth;
priva... | true |
416ce301e44ea37ba662dcac30105db240110e5d | Java | clamwork/demo | /com.jandar.demo/src/main/java/NettyDemo/com/jandar/demo/utils/TimeEncoder.java | UTF-8 | 456 | 2.171875 | 2 | [] | no_license | package NettyDemo.com.jandar.demo.utils;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder;
import NettyDemo.com.jandar.demo.entity.UnixTime;
public class TimeEncoder extends MessageToByteEncoder<UnixTime> {
@Override
pro... | true |
3c0c515c5e378737ffb7a2b4c7a966fec2456e7c | Java | aldenml/libtorrent4j | /src/test/java/org/libtorrent4j/Sha1HashTest.java | UTF-8 | 873 | 2.375 | 2 | [
"MIT"
] | permissive | /*
* Copyright (c) 2018-2020, Alden Torres
*
* Licensed under the terms of the MIT license.
* Copy of the license at https://opensource.org/licenses/MIT
*/
package org.libtorrent4j;
import org.junit.Test;
import java.util.Arrays;
import java.util.Random;
import static org.junit.Assert.assertEquals;
/**
* @au... | true |
561ad3b339f2d8a909716fc2e480743d0b0defc7 | Java | AlondraPalma23/AlondraSaraiPalmaPacheco_66187 | /src/alondrasaraipalmapacheco_66187/Ejercicio1.java | UTF-8 | 918 | 3.296875 | 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 alondrasaraipalmapacheco_66187;
import java.util.Scanner;
/**
*
* @author Alondra Palma
*/
public class Ejerc... | true |
3dca7299158caa537ac461086c7f549541f3a6bb | Java | manchenarajesh/SMSloc | /src/de/pfeufferweb/android/whereru/repository/SimpleLocation.java | UTF-8 | 381 | 2.453125 | 2 | [] | no_license | package de.pfeufferweb.android.whereru.repository;
public class SimpleLocation {
private final double longitude;
private final double latitude;
public SimpleLocation(double longitude, double latitude) {
this.longitude = longitude;
this.latitude = latitude;
}
public double getLongitude() {
return longitude... | true |
bf40c4e65c37f4d4731f3e97780c2ef43e1dd8b7 | Java | fernando1000/Fotoshop | /src/br/com/x10d/fotoshop/util/Utilitario.java | ISO-8859-10 | 4,782 | 2.328125 | 2 | [] | no_license | package br.com.x10d.fotoshop.util;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.widget.ArrayAdapter;
import android.widget.FrameLayout;
import andro... | true |
8bc9cba954f77954c941977c246f6e2f6e2020f4 | Java | windfish/essay | /src/com/demon/hadoop/custom/rpc/common/ProxyFactory.java | UTF-8 | 2,206 | 2.671875 | 3 | [] | no_license | package com.demon.hadoop.custom.rpc.common;
import com.demon.hadoop.custom.rpc.client.NettyRpcClient;
import com.demon.hadoop.custom.rpc.client.RpcClient;
import com.demon.hadoop.custom.rpc.protocol.RpcRequest;
import com.demon.hadoop.custom.rpc.protocol.RpcResponse;
import com.demon.util.JsonUtil;
import java.lang.r... | true |
7541e22fd5610ad93c428ba93a1c70d6ce267ad4 | Java | javaprogrammingbuw/oop2-EngrAbdulMannan | /src/Square.java | UTF-8 | 504 | 3.59375 | 4 | [] | no_license |
public class Square extends Shape {
private double width;
private double height;
public Square() {
this.width=1;
this.height=1;
}
public Square(double width,double height) {
this.width=width;
this.height=height;
}
public double area(){
return this.width*this.height;
}
public double circumf... | true |
280983b1e00d1527cc63ab1fe4acaa765b2fd952 | Java | blueSky1825821/spring03 | /src/main/java/com/combat1200/reflect/HouseSeller.java | UTF-8 | 220 | 2.40625 | 2 | [] | no_license | package com.combat1200.reflect;
/**
* Created by sky on 2017/5/19.
*/
public class HouseSeller implements Seller{
@Override
public void sell() {
System.out.println("销售人员在卖房子");
}
}
| true |
309174962000dbe91d2ebc7a683d894c75bcd50a | Java | kalistrat/it_things | /things/src/main/java/com/vaadin/tCriteriaLabel.java | UTF-8 | 1,286 | 2.90625 | 3 | [] | no_license | package com.vaadin;
import com.vaadin.ui.Label;
/**
* Created by kalistrat on 17.02.2017.
*/
public class tCriteriaLabel extends Label {
public tCriteriaLabel(String eTypeCriteria, Double eValMin, Double eValMax){
if (eTypeCriteria.equals("интервал значений")) {
String sMinVal = String.v... | true |
06faf3d742a4a8b432df066e192cdaa3662170db | Java | dharaksavalia/Scroogle | /app/src/main/java/neu/edu/madcourse/dharaksavalia/numad17s_dharaksavalia/assignment5/WordGame.java | UTF-8 | 2,101 | 2.328125 | 2 | [] | no_license | package neu.edu.madcourse.dharaksavalia.numad17s_dharaksavalia.assignment5;
/**
* Created by Dharak on 1/20/2017.
*/
import android.app.Activity;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Butto... | true |
6340ab3b68d74676567260ebafa054c8d4b2dbfc | Java | cbaciliodev/alfresco-connector | /src/main/java/com/thwet/alfrescoconnector/service/impl/DocumenServiceImpl.java | UTF-8 | 8,591 | 1.976563 | 2 | [] | no_license | /**
*
*/
package com.thwet.alfrescoconnector.service.impl;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import org.apache.chemistry.opencmis.client.api.CmisObject;
import org.apache.chemistry.opencmis.client.api.Document;
import org.... | true |
1683802971f7527c8b16a3d27f9c3802590a21b7 | Java | happyxiaofan/java-core-examples | /src/main/java/com/rhwayfun/examples/concurrency/r0406/CountDownLatchDemo.java | UTF-8 | 1,972 | 3.609375 | 4 | [
"Apache-2.0"
] | permissive | package com.rhwayfun.examples.concurrency.r0406;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.concurrent.CountDownLatch;
/**
* Created by rhwayfun on 16-4-6.
*/
public class CountDownLatchDemo {
//参数2表示一个计数器
//这里可以理解为等待多少个线程执行完毕
static CountDow... | true |
6d2ff09f6b8e95eb5b0bb43a0cac739dbd0cc39d | Java | stefan10stefan/webshop | /android/app/src/main/java/com/lilly021/quickok/domain/services/api/MessageService.java | UTF-8 | 306 | 1.757813 | 2 | [] | no_license | package com.lilly021.quickok.domain.services.api;
import com.lilly021.quickok.domain.model.Message;
import java.util.List;
import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.GET;
public interface MessageService {
@GET("api/message/")
Observable<List<Message>> getMessages();
}
| true |
9ca8544aa9f7b53ee9f9c1e3ff0abb699f4f4f6a | Java | ishtiaq2/My-Projects | /Java-Basics/Multithreading/ForkJoinPool - CompletableFuture/CompletableFuture/Running Multiple Futures in Parallel/RunParallelFutures.java | UTF-8 | 1,822 | 3.546875 | 4 | [] | no_license | import java.util.concurrent.*;
import java.util.function.Supplier;
import java.util.Scanner;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class RunParallelFutures implements Runnable {
String comparer = "Hello Beautiful World";
CompletableFuture<String> future1 = Completab... | true |
208572108e992a330103e7629617c7b6a8bbec18 | Java | kiegroup/optaplanner | /optaplanner-examples/src/main/java/org/optaplanner/examples/taskassigning/domain/Task.java | UTF-8 | 4,964 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package org.optaplanner.examples.taskassigning.domain;
import org.optaplanner.core.api.domain.entity.PlanningEntity;
import org.optaplanner.core.api.domain.variable.InverseRelationShadowVariable;
import org.optaplanner.core.api.domain.variable.ShadowVariable;
import org.optaplanner.examples.common.domain.AbstractPersi... | true |
2abc0964958ae879af35ce26dc1ce48f36c400fb | Java | amangupta26/CoffeeMachine | /src/main/java/model/ingredient/RawItem.java | UTF-8 | 117 | 2.15625 | 2 | [] | no_license | package model.ingredient;
public abstract class RawItem extends Ingredient {
public abstract boolean isLow();
}
| true |
273921b5f547c913c8f01e32ca9c664fa5037af5 | Java | gemini88mill/UnitConverter | /src/com/company/Main.java | UTF-8 | 2,150 | 3.96875 | 4 | [] | no_license | package com.company;
public class Main {
/**
* Unit Converter (temp, currency, volume, mass and more) – Converts various units between one another.
* The user enters the type of unit being entered, the type of unit they want to convert to and then the value.
* The program will then make the convers... | true |
5e2e3c0c011f99c701662502709fcc9db4aa16c6 | Java | Tongqinwei/hhlab_ser2 | /src/com/dao/user_dao.java | UTF-8 | 14,951 | 2.3125 | 2 | [] | no_license | package com.dao;
import com.beans.*;
import com.JDBC.*;
import com.util.*;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.PreparedStatement;
import java.util.Date;
import java.util.List;
import java.util.Vector;
/**
* Creat... | true |