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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
a750f4ba3f48c8cca8a080c35aea1503b920da92 | Java | FarahNawafleh/Java | /hr-smartcloud-web/src/main/java/com/app/models/UserRole.java | UTF-8 | 671 | 2.3125 | 2 | [] | no_license | package com.app.models;
import org.springframework.security.core.GrantedAuthority;
import lombok.Data;
import javax.persistence.*;
@Entity
@Table(name = "sec_roles")
public class UserRole implements GrantedAuthority {
public static final String ADMIN = "admin";
@Id
@Column(name = "id")
@GeneratedValue(strategy... | true |
ae24915e76f0271b9b0a58226743eeb95e701f5c | Java | iikirilov/epirus-cli | /src/test/java/io/epirus/console/project/JavaProjectWriterTest.java | UTF-8 | 4,103 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 Web3 Labs Ltd.
*
* 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 in w... | true |
fde085b5a80cab7eaaad6f6d36bccd47de53beb2 | Java | WysockiJakub/Charity | /src/main/java/pl/coderslab/charity/auth/model/User.java | UTF-8 | 1,465 | 2.234375 | 2 | [] | no_license | package pl.coderslab.charity.auth.model;
import javax.persistence.*;
import java.util.Set;
@Entity
@Table(name = "users")
public class User {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(unique = true)
private String username;
private String password;
... | true |
e9ab48af1da5ee074727435552419068d22cff87 | Java | luoyongl/SSM-CRUD | /src/main/java/com/crud/bean/StuInfoExample.java | UTF-8 | 23,881 | 2.25 | 2 | [] | no_license | package com.crud.bean;
import java.util.ArrayList;
import java.util.List;
public class StuInfoExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public StuInfoExample() {
oredCriteria = new ArrayList<Criteria>();
}
public vo... | true |
d165d1479893c76104e1ea4cf12aec7f8734cba6 | Java | consulo/consulo | /modules/base/ide-impl/src/main/java/consulo/ide/impl/presentationAssistant/ActionInfoPanel.java | UTF-8 | 8,541 | 1.90625 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-jgraph"
] | permissive | /*
* Copyright 2013-2017 consulo.io
*
* 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 |
e359c13101d0a7c29781e7030e715b1240081322 | Java | ShayBusidan/RedHat | /src/main/java/lekach/microservice/interfaces/rest/RedHatController.java | UTF-8 | 1,401 | 2 | 2 | [] | no_license | package lekach.microservice.interfaces.rest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotatio... | true |
b8342e71b56396b0d513f87dcfeb5385f5a184a0 | Java | keyur2714/java_datastructure | /GenericsDemo/src/com/webstack/driver/TestDriver.java | UTF-8 | 1,744 | 2.703125 | 3 | [] | no_license | package com.webstack.driver;
import java.util.List;
import com.webstack.dto.EmployeeDTO;
import com.webstack.service.IService;
import com.webstack.service.impl.EmployeeServiceImpl;
public class TestDriver {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hello ... | true |
cbc5db73730a4c0f36a2b6c38f704bcc44746437 | Java | HunJohnny1989/Risk | /Risk/src/model/Battle.java | UTF-8 | 3,217 | 3.21875 | 3 | [] | no_license | package model;
import java.util.Collections;
import model.dto.BattleResult;
import model.dto.Territory;
import java.util.List;
/**
* @author Sajti Tamás
*/
// executes an attack
public class Battle {
private Territory attackingTerritory;
private int attackingTroopCount;
private Territory defendingTerri... | true |
d5e1bccbcf9957d80a188fcd2c95ba1add497568 | Java | nishuai6666/Auth | /src/main/java/com/imooc/auth/context/NativeCache.java | UTF-8 | 1,774 | 2.3125 | 2 | [] | no_license | package com.imooc.auth.context;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.imooc.auth.en... | true |
c08d13a991aad39d117d6f831b612ccffea869d4 | Java | naresh229/happs | /src/main/java/com/happs/dao/impl/UserDaoImpl.java | UTF-8 | 1,365 | 2.1875 | 2 | [] | no_license | package com.happs.dao.impl;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.PersistenceContext;
import org.hibernate.Criteria;
import org.hibernate.SQLQuery;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
impor... | true |
b80ce2feba14a7585d5c2d5d12742b3283accb79 | Java | ParushaSingla/ParushaSingla-NagpAssignmentForTesting- | /product_microservice/product_microservice/src/main/java/com/nagarro/nagpAssignment/product_microservice/services/implementation/ProductServiceImplementation.java | UTF-8 | 1,626 | 2.875 | 3 | [] | no_license | package com.nagarro.nagpAssignment.product_microservice.services.implementation;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Service;
import com.nagarro.nagpAssignment.product_microservice.model.Product;
import com.nagarro.nagpAssignment.product_microservice.service.Produ... | true |
7327e04faeeac75abf20b460bbf09a7547235301 | Java | betangaranga/FilmHub | /app/src/main/java/com/example/filmhub/MainActivity.java | UTF-8 | 8,276 | 1.804688 | 2 | [] | no_license | package com.example.filmhub;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.internal.NavigationMenuPresenter;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.util.... | true |
bc47264d15e5b5c8e8c02415e08160329c935700 | Java | rafaelaragon/ejercicios_de_java | /Tema 09/ejercicio02/Vehiculo.java | UTF-8 | 689 | 2.890625 | 3 | [] | no_license | package ejercicio02;
/**
* kilometrosTotales
* vehiculosCreados
*
* kilometrosRecorridos
*
* recorreKilometros
*
* @author Rafael Aragón Rodríguez
*/
public class Vehiculo {
private static int kilometrosTotales = 0;
private static int vehiculosCreados = 0;
private int kilometro... | true |
441c12f8ff942cd5cab3a3eeac937d6e411615ca | Java | MertDundar1/ETB-0.6 | /src/minecraft/io/netty/handler/codec/mqtt/MqttCodecUtil.java | UTF-8 | 2,454 | 2.453125 | 2 | [] | no_license | package io.netty.handler.codec.mqtt;
import io.netty.handler.codec.DecoderException;
final class MqttCodecUtil
{
private static final char[] TOPIC_WILDCARDS = { '#', '+' };
private static final int MIN_CLIENT_ID_LENGTH = 1;
private static final int MAX_CLIENT_ID_LENGTH = 23;
static boolean ... | true |
2d22c91cd55d7875f7f97687273a2785679e6fab | Java | Muazzi/Third-year-App | /Curo/app/src/main/java/com/example/muaz1/curo/MainActivity.java | UTF-8 | 2,327 | 1.945313 | 2 | [] | no_license | package com.example.muaz1.curo;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class MainActiv... | true |
77a14331b7440a0db5b0f84bcd21464becfcf597 | Java | sigaritus/deputy-willem | /src/info/dourok/dict/MiscUtils.java | UTF-8 | 1,629 | 2.40625 | 2 | [] | no_license | package info.dourok.dict;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.util.TypedValue;
... | true |
cd698c5118abf4e10dc21539985dfa733a1473a4 | Java | flaviodiniz/horarios | /Horarios/src/Views/Janela.java | ISO-8859-1 | 10,690 | 2.453125 | 2 | [] | no_license | package Views;
import java.awt.Color;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.text.ParseException;
import java.util.ArrayList;
import javax.swing.JButton;
import javax.swing.JFormattedTextField;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
imp... | true |
15cb9d438bac0f5010b6e35ea660c6b96a9c7ef2 | Java | 3Andrei/JavaDocs | /Servlets/Day 2/Code/exercises/jsp-app/src/main/java/ro/teamnet/zth/web/HttpServletIncluded.java | UTF-8 | 609 | 2.125 | 2 | [] | no_license | package ro.teamnet.zth.web;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* Created by Nicolescu on 13.07.2016.
*/
public class HttpServletIncluded extends Htt... | true |
4dce931d980c35dd27d4080290891d279d841a39 | Java | lucmoreau/ProvToolbox | /modules-core/prov-model/src/main/java/org/openprovenance/prov/model/WasInformedBy.java | UTF-8 | 2,493 | 2.25 | 2 | [
"MIT"
] | permissive | package org.openprovenance.prov.model;
/**
* <p>Interface for the PROV Communication association.
*
* <p><a href="http://www.w3.org/TR/prov-dm/#concept-communication">PROV-DM Definition for Communication</a>:
* Communication is the exchange of some unspecified entity by two activities, one activity using some en... | true |
85f66d673682a26f759eb26d498743feb198469d | Java | EkiXu/Luo | /src/main/java/xyz/eki/luo/bot/Luo.java | UTF-8 | 2,109 | 1.96875 | 2 | [] | no_license | package xyz.eki.luo.bot;
import net.mamoe.mirai.Bot;
import net.mamoe.mirai.BotFactory;
import net.mamoe.mirai.event.GlobalEventChannel;
import net.mamoe.mirai.event.ListenerHost;
import net.mamoe.mirai.utils.BotConfiguration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.fa... | true |
1bd03b390b95a6c407158af1c0b66d05b3c85ea2 | Java | dannyphillipsUA/palletSystem | /Scheduling/src/New/Order.java | UTF-8 | 902 | 2.78125 | 3 | [] | no_license | package New;
import java.util.Date;
public class Order {
private String customer;
private String item;
private int quantity;
private double price;
private Date due;
public Order(String string, String string2, int i, double d, Date endDay) {
customer = string;
item = string2;
quantity = i;
price = d;
... | true |
d3a48cff212ec373592b45ce1101b70d0eacb0a6 | Java | malaysia21/java-algorithms-tasks | /src/main/java/recursion/Recursion.java | UTF-8 | 1,069 | 3.875 | 4 | [] | no_license | package recursion;
public class Recursion {
public static void main(String[] args) {
Recursion recursion = new Recursion();
System.out.println("Triangular number: " + recursion.getTriangularNumber(6));
System.out.println("Triangular number recursion: " + recursion.getTriangularNumberWithRe... | true |
1eaf9c1d4b9290a59782c8755a49f6536ae579f1 | Java | nelsonjava/simasoft | /models/src/main/java/com/simavirtual/App.java | UTF-8 | 35,982 | 1.851563 | 2 | [] | no_license | /*
for(int i = 0; i < 2; i++) {
*/
package com.simavirtual;
import java.io.*;
import java.util.*;
import co.simasoft.utils.*;
import co.simasoft.gen.asciidoc.*;
import co.simasoft.gen.jpa.*;
import co.simasoft.gen.sql.*;
import co.simasoft.gen.bean.*;
import co.simasoft.gen.xhtml.*;
import co.simasoft.gen.wa... | true |
d1488947dd1bbb0e670df47dc1c309b97349dacd | Java | banerjeeso/demo-restful-service | /src/main/java/com/poc/austin/model/Fibonacci.java | UTF-8 | 206 | 2.015625 | 2 | [] | no_license | package com.poc.austin.model;
/**
* @author Somnath
*
*/
public class Fibonacci {
private int nTH;
public int getnTH() {
return nTH;
}
public void setnTH(int nTH) {
this.nTH = nTH;
}
}
| true |
b7255de96f74ff8b2d5e78b77649d8d6e5ca3051 | Java | Ross97/JavaGame | /src/dev/ross/rossgame/world/World.java | UTF-8 | 5,610 | 2.8125 | 3 | [] | no_license | package dev.ross.rossgame.world;
import java.awt.Graphics;
import dev.ross.rossgame.Handler;
import dev.ross.rossgame.entities.EntityManager;
import dev.ross.rossgame.entities.Tree;
import dev.ross.rossgame.entities.creatures.Enemy;
import dev.ross.rossgame.entities.creatures.Player;
import dev.ross.rossgame.items.It... | true |
f2111833069bf97a4584dce470061c9d8e8b95f2 | Java | PythonicNinja/mevo | /MEVO_apkpure.com_source_from_JADX/sources/com/raizlabs/android/dbflow/converter/BooleanConverter.java | UTF-8 | 495 | 2.578125 | 3 | [] | no_license | package com.raizlabs.android.dbflow.converter;
public class BooleanConverter extends TypeConverter<Integer, Boolean> {
public Integer getDBValue(Boolean bool) {
return bool == null ? null : Integer.valueOf(bool.booleanValue());
}
public Boolean getModelValue(Integer num) {
if (num == null)... | true |
91221c5bd9693cb985dfe8b84513353342e03745 | Java | dyzpq/java_demo | /design_model/template/src/main/java/template/template/ConcreteClassA.java | UTF-8 | 376 | 2.609375 | 3 | [] | no_license | package template.template;
/**
* @author dengyang
* @createdate 2019/11/6 0006 10:33
*/
public class ConcreteClassA extends AbstractClass{
@Override
public void primitiveOperation1() {
System.out.println("具体类A方法1实现");
}
@Override
public void primitiveOperation2() {
System.out.pr... | true |
f1c63cb052141b17e1a62e9ccfe2169fdbca5970 | Java | sherry1992/Android-app---Buy-Old-Book- | /project2src/BuyOldBooks-client/app/src/main/java/com/example/apple/buyoldbooksunit3/ui/buyer_cart/Buyer_Cart_Activity.java | UTF-8 | 4,640 | 2.34375 | 2 | [] | no_license | /**
* Class: Buyer_Cart_Activity
* This class Buyer_Cart_Activity extends the super class Activity, so this class will override the
* method defined in the super class Activity. This class will implement the operation of viewing
* the cart book list and createing a new order for a Buyer.
*
* This class contains t... | true |
6b2841140c91c0d53d12ca195a14a2f96da797b7 | Java | Katchau/Se-diz-o-Bruno-faz | /src/system/RestoreSynch.java | UTF-8 | 1,304 | 2.890625 | 3 | [] | no_license | package system;
import java.util.ArrayList;
public class RestoreSynch {
public ArrayList<ChunkInfo> restoredChunks;
public RestoreSynch(){
restoredChunks = new ArrayList<ChunkInfo>();
}
public synchronized boolean receivedChunk(String fileID, int n){
ChunkInfo c = new ChunkInfo(fileID,n);
... | true |
8edeb34566c29be3d04b0d14c48d05a039e5f201 | Java | tugrr/tugrr | /Endka/src/league.java | UTF-8 | 995 | 2.4375 | 2 | [] | no_license | public class league extends clubs{
private String semifinal;
private String semifinal1;
private String grandfinal;
private int choose;
public league(String real, String barca, String bayern, String juve,String semifinal,String semifinal1,String grandfinal,int choose) {
super(real, barca, bayern, juve);
th... | true |
2ce824c80153cd5ebc2eef7fa74742743f10d04e | Java | likstepan/source | /packages/apps/Phone/src/com/android/phone/PhoneRecorderServices.java | UTF-8 | 4,453 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package com.android.phone;
import java.io.File;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.IntentFilter;
import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteException;
import android.util.Log;
public class... | true |
1c676b6d65d6b705781927a4987beee94a3da0cb | Java | albertoandroid/ViewModelLiveDataComponent | /app/src/main/java/com/androiddesdecero/viewmodellivedata/Sumar.java | UTF-8 | 235 | 2.234375 | 2 | [] | no_license | package com.androiddesdecero.viewmodellivedata;
/**
* Created by albertopalomarrobledo on 18/4/18.
*/
public class Sumar {
public static final int sumar(int numero){
numero = numero + 1;
return numero;
}
}
| true |
f31dccb4100e8c139cdb3155b9a51c3010c43d1f | Java | Mateus-A-Soares/orange-talents-03-template-casa-do-codigo | /src/main/java/br/com/zupacademy/mateus/casadocodigo/config/validation/ValidationErrorHandler.java | UTF-8 | 2,483 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | package br.com.zupacademy.mateus.casadocodigo.config.validation;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.AbstractMap.SimpleEntry;
import java.util.Map.Entry;
import javax.validation.ValidationException;
import org.springframework.beans.factory.annotation.Autowired;
imp... | true |
08fd3f7cea3b7c72ad445ed25b5031795ba4529f | Java | IonutNegru87/android_fundamentals_2020 | /app/src/main/java/com/example/af2020/week8/QueryInterceptor.java | UTF-8 | 928 | 2.609375 | 3 | [] | no_license | package com.example.af2020.week8;
import org.jetbrains.annotations.NotNull;
import java.io.IOException;
import okhttp3.HttpUrl;
import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;
public final class QueryInterceptor implements Interceptor {
private final String name;
private fi... | true |
744bc4cdfc12e70b2276234f226aeb3837945ae7 | Java | wingjay/jayAndroid | /app/src/main/java/com/wingjay/jayandroid/qqitem/DragableListView.java | UTF-8 | 562 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package com.wingjay.jayandroid.qqitem;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;
/**
* Created by wingjay on 10/26/15.
*/
public class DragableListView extends ListView {
public DragableListView(Context context) {
this(context, null);
}
p... | true |
9afa42b94ca4fba7b9abb160d2d62bc012af22c9 | Java | ATrain48/ghs401_Anthony_Guerra | /age.java | UTF-8 | 612 | 3.109375 | 3 | [] | no_license | import javax.swing.JOptionPane;
/**
* Write a description of class age here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class age
{
public static void main()
{
String age = JOptionPane.showInputDialog("Please enter your age.");
int age1 =Integer.parseInt(age);
... | true |
72667feb1762f290adcb401fac0bd4bdcbef030c | Java | Upasana678/SpringProjects | /src/main/java/com/mycompany/springapp/productapp/service/UserService.java | UTF-8 | 2,899 | 2.421875 | 2 | [] | no_license | package com.mycompany.springapp.productapp.service;
import com.mycompany.springapp.productapp.exception.BusinessException;
import com.mycompany.springapp.productapp.model.AddressModel;
import com.mycompany.springapp.productapp.model.UserModel;
import com.mycompany.springapp.productapp.repository.AddressOfUserRepositor... | true |
62f1fad9cbd3a47ab519e6c046adaacb0ea6f614 | Java | dsaborg/sequence | /src/main/java/org/d2ab/iterator/longs/BackPeekingMappingLongIterator.java | UTF-8 | 1,415 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 Daniel Skogquist Åborg
*
* 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... | true |
5e777b3d7c60f4eea0dcfd8c3f95f009126ab209 | Java | ESSE-xiaogui/kom_manager_new | /source/kom-manager-service/src/main/java/com/transsion/store/service/ShopGradeService.java | UTF-8 | 3,885 | 2.109375 | 2 | [] | no_license | /**
* COPYRIGHT (C) 2016 Liuzh. ALL RIGHTS RESERVED.
*
* No part of this publication may be reproduced, stored in a retrieval system,
* or transmitted, on any form or by any means, electronic, mechanical, photocopying,
* recording, or otherwise, without the prior written permission of Liuzh.
*
* Created By: Liuzh
* Cre... | true |
a2eef2f3b606d722e8cbbf268f55ba3f52a33171 | Java | ZiaoXie/TimeManagement | /app/src/main/java/com/example/timemanagement/Habit/Habit.java | UTF-8 | 8,083 | 2.0625 | 2 | [] | no_license | package com.example.timemanagement.Habit;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import ... | true |
2176dff37ce4e74be97c323bd14ef313a3a99857 | Java | felipemoraes/dynamic | /core/src/main/java/br/ufmg/dcc/latin/utils/RescorerSystem.java | UTF-8 | 6,278 | 1.984375 | 2 | [] | no_license | package br.ufmg.dcc.latin.utils;
import java.io.IOException;
import java.io.StringReader;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.en.EnglishAnalyzer;
import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;
import org.ap... | true |
a9e2e967ccfdd2852949203fe740bdedd910f316 | Java | duansuperman/Java | /QuanLy/Bai36-QuanLyChamCong/src/learnjava/com/connection/DriverConnection.java | UTF-8 | 403 | 2.265625 | 2 | [] | no_license | package learnjava.com.connection;
import java.sql.Connection;
import java.sql.DriverManager;
public class DriverConnection {
public static Connection getConnection() {
String filePath = ".\\db\\QuanLyChamCong.accdb";
String strCon = "jdbc:ucanaccess://"+filePath;
try {
return DriverManager.getConnection(st... | true |
e304bb541ec735c1a342846c70577202580bafe0 | Java | Juxingyu/Tourist-Web | /src/main/java/com/xingyu/travel/controller/back/AdminController.java | UTF-8 | 6,066 | 2.25 | 2 | [] | no_license | package com.xingyu.travel.controller.back;
import com.xingyu.travel.model.Admin;
import com.xingyu.travel.model.Users;
import com.xingyu.travel.services.AdminService;
import com.xingyu.travel.services.UserService;
import com.xingyu.travel.task.mailTask;
import org.springframework.beans.factory.annotation.Autowired;
im... | true |
85a809b34aacecc91c9df8ecffd27eefc32fc771 | Java | i49/spine | /spine/src/main/java/io/github/i49/spine/common/Documents.java | UTF-8 | 2,103 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017 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 appli... | true |
9b3c2d7b797935359fe2977100a631964886c57d | Java | MikelFU/Maven-Project | /UF2216/src/com/ipartek/formacion/uf2216/ejemplos/poo/Poligono.java | UTF-8 | 315 | 2.546875 | 3 | [] | no_license | package com.ipartek.formacion.uf2216.ejemplos.poo;
import java.util.ArrayList;
public class Poligono {
private ArrayList<Punto> puntos = new ArrayList<Punto>();
public Punto[] getPuntos() {
return puntos.toArray(new Punto[puntos.size()]);
}
public void add(Punto p) {
puntos.add(p);
}
}
| true |
da18fcc6197104da0041ff7139bcbada22594fc8 | Java | FabianB14/java-fundamentals | /linter/src/test/java/linter/TallyTest.java | UTF-8 | 595 | 2.6875 | 3 | [] | no_license | package linter;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import static org.junit.Assert.*;
public class TallyTest {
@Test
public void tally() {
List<String> votes = new ArrayList<>();
votes.add("Bush");
votes.add("Bush");
votes.add("Bush");
... | true |
48213ce7cea7b416f64b570ce67b753c940dcbaf | Java | lucky-lb/education | /src/main/java/team/xht/education/entity/StatisticsDailyExample.java | UTF-8 | 22,964 | 2.234375 | 2 | [] | no_license | package team.xht.education.entity;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
public class StatisticsDailyExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public StatisticsDailyExample() {
or... | true |
cd2d71e5ce2fdba4105326298a5ac76253debafc | Java | iigortrofimov/ITMOjava | /ITMOjava/src/lesson12/homework/task10.java | UTF-8 | 257 | 1.632813 | 2 | [] | no_license | package lesson12.homework;
public class task10 {
/*Создать множество чисел(Set<Integer>), занести туда 20 различных чисел.
Удалить из множества все числа больше 10.*/
}
| true |
abde58b162bdbc4239021f446391c23697d3398c | Java | EnigmaBridge/client.java | /client/src/main/java/com/enigmabridge/comm/EBResponseParserOptions.java | UTF-8 | 218 | 1.59375 | 2 | [
"MIT"
] | permissive | package com.enigmabridge.comm;
import java.util.Map;
/**
* Parser options.
* Created by dusanklinec on 28.04.16.
*/
public interface EBResponseParserOptions extends Map {
EBResponseParser getParentParser();
}
| true |
a7154180f677938a6e967e7858c77f19308aea65 | Java | Stevesdm/micro-service-dubbo | /micro-service-dubbo-saas/src/main/java/com/steve/framework/TestListener.java | UTF-8 | 810 | 2.203125 | 2 | [] | no_license | package com.steve.framework;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
/**
* @Description:
* @Author: stevejobson
* @CreateDate: 2017/12/13 下午12:52
*/
public class TestListener implements ServletContextListener ... | true |
37b4148697e6353377fe07bffbe50fdd5d8ef5a4 | Java | CS2103JAN2017-F14-B2/main | /src/test/java/seedu/task/model/task/LocationTest.java | UTF-8 | 1,374 | 2.984375 | 3 | [
"MIT"
] | permissive | package seedu.task.model.task;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import seedu.task.commons.exceptions.IllegalValueException;
public class LocationTest {
@Test
public void isValidLocation... | true |
29cc588703de63924f464a51726492255e10dacf | Java | nicoletasarosi/Project_Java | /laborator7_map/src/main/java/controller/VizFinalaNotaController.java | UTF-8 | 1,822 | 2.296875 | 2 | [] | no_license | package controller;
import domain.StructuraAnUniversitar;
import javafx.fxml.FXML;
import javafx.scene.control.Alert;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.stage.Stage;
import service.ServiceNota;
import service.StudentServ... | true |
1f56d965b8163de9bdd690cba3ed876929b4fcba | Java | lzhan107/515MP2Domain | /src/domain/Student.java | UTF-8 | 2,843 | 2.734375 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package domain;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.EnumTyp... | true |
9823051c2767c9f8d0fbd384994a9cd903317627 | Java | andremenezes10/iquestion | /Prototipo/src/br/com/prototipo/util/PilhaDouble.java | UTF-8 | 1,470 | 3.84375 | 4 | [] | no_license | package br.com.prototipo.util;
import br.com.prototipo.exception.ErroException;
public class PilhaDouble {
private NoDouble head;
private int size = 0;
// inserir elemento sempre na cabeça
public void push(Double element) throws ErroException {
/**
* Condiçoes para inserir na Lista: o elemento nao pode ser... | true |
da77f60d57e61a22dce3772512c2b3f2e012843a | Java | lhcabral/estudobczm | /estudobczm/metodo.java | UTF-8 | 419 | 2.296875 | 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.
*/
/**
*
* @author luiz
*/
public class Metodo {
public void recebeParametros(String nome){
if(nome != null){
//resultado m... | true |
017dc4172f5497a1fafed1f4c18479635707ab25 | Java | robertkigobe/EsdbIntranet | /src/technicalResources/staffLoan/SecuritiesBean.java | UTF-8 | 578 | 2.46875 | 2 | [] | no_license | package technicalResources.staffLoan;
public class SecuritiesBean {
String loanRef;
String securitiesPrinted;
public String getLoanRef() {
return loanRef;
}
public void setLoanRef(String loanRef) {
this.loanRef = loanRef;
}
public String getSecuritiesPrinted() {
return securitiesPrinted;
}
public void... | true |
b62d34a7c2a474074930e3109eba81f516c70388 | Java | Anunindale/DGD | /Office/EMCGenLibSys/.svn/pristine/b6/b62d34a7c2a474074930e3109eba81f516c70388.svn-base | UTF-8 | 347 | 2.25 | 2 | [] | no_license | package emc.datatypes.inventory.transactions;
import emc.datatypes.EMCDate;
/**
*
* @author wikus
*/
public class PhysicalDate extends EMCDate {
/** Creates a new instance of PhysicalDate */
public PhysicalDate() {
this.setEmcLabel("Physical");
this.setMandatory(false);
this.setColum... | true |
a6a29f3be4249793efde43060d85f2d82d7161ec | Java | mariocervera/GlossaryEditor | /es.cv.gvcase.gvm.glossary.formseditor/src/es/cv/gvcase/gvm/glossary/formseditor/pages/MainPage.java | UTF-8 | 6,374 | 1.773438 | 2 | [] | no_license | /***************************************************************************
* Copyright (c) 2008 Conselleria de Infraestructuras y Transporte,
* Generalitat de la Comunitat Valenciana . All rights reserved. This program
* and the accompanying materials are made available under the terms of the
* Eclipse Public License... | true |
0df577b7c2aac1b9c3ace4682236b5423267c6b1 | Java | bertavincze/auditorium | /src/main/java/com/auditorium/service/simple/SimpleUserService.java | UTF-8 | 2,394 | 2.578125 | 3 | [] | no_license | package com.auditorium.service.simple;
import com.auditorium.dao.UserDao;
import com.auditorium.model.User;
import com.auditorium.service.UserService;
import com.auditorium.service.exception.ServiceException;
import java.sql.SQLException;
import java.util.List;
public final class SimpleUserService implements UserSer... | true |
5fd207995913035e4e57382f3e70fb59b71478f5 | Java | YauhenBel/MyStore | /app/src/main/java/com/example/genya/mystore/adapters/ProductAdapter.java | UTF-8 | 2,650 | 2.40625 | 2 | [] | no_license | package com.example.genya.mystore.adapters;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.example.genya... | true |
60f4368c18359d31026203d8cb510f8fffa80feb | Java | Hupeng7/spring-boot-demo1 | /spring-boot-demo-mytool/src/main/java/com/example/springbootdemomytool/utils/demo/lockdemo/Foo01.java | UTF-8 | 1,144 | 3.046875 | 3 | [] | no_license | package com.example.springbootdemomytool.utils.demo.lockdemo;
/**
* @ClassName Foo01
* @Description
* @Author hup
* @Date 2020/8/21 10:35
* @Version 1.0
*/
public class Foo01 {
public static void main(String[] args) throws Exception {
final Foo02 foo02 = new Foo02();
// 定义一个线程
Thread ... | true |
b239e980c6987794631511e18671cfc4ae17dabb | Java | sonudabhade/sonali | /app/src/main/java/com/tradegenie/android/tradegenieapp/Utility/MyFirebaseInstanceIDService.java | UTF-8 | 1,372 | 2.328125 | 2 | [] | no_license | package com.tradegenie.android.tradegenieapp.Utility;
import android.util.Log;
import com.google.firebase.iid.FirebaseInstanceId;
import com.google.firebase.iid.FirebaseInstanceIdService;
public class MyFirebaseInstanceIDService extends FirebaseInstanceIdService {
private static final String TAG = MyFirebaseIns... | true |
d904485c79095632cefab48bafd162234019b03f | Java | MehrCurry/commontypes | /src/test/java/de/gzockoll/common/types/ZeitraumTest.java | UTF-8 | 1,803 | 2.53125 | 3 | [] | no_license | package de.gzockoll.common.types;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
import java.text.ParseException;
import org.joda.time.DateTime;
import org.junit.Before;
import org.junit.Test;
public class ZeitraumTest {
@Before
public void setUp() throws Exception {
... | true |
582ee699c1e57777eb2118cb522b88c296d2df39 | Java | ivannleites/AUG21-AED2-M4A | /algoritmos-grafico/src/main/java/uy/edu/ort/algoritmos/sorting/AlgoritmoInsertSort.java | UTF-8 | 1,860 | 3.453125 | 3 | [] | no_license | package uy.edu.ort.algoritmos.sorting;
import uy.edu.ort.ad.InterfazGraficaAlgoritmo;
import javafx.scene.paint.Color;
import uy.edu.ort.algoritmos.AlgoritmoACorrer;
public
class AlgoritmoInsertSort
implements AlgoritmoACorrer
{
private InterfazGraficaAlgoritmo it;
@Override
public
String nombre(... | true |
4e099b30ee1a7663ef000120dbe82a23917e7baf | Java | FrederickPullen/animated-parakeet | /animatedvectortool/src/main/java/com/android2ee/java/tool/animatedvector/morphing/model/Path.java | UTF-8 | 9,348 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | /**
* <ul>
* <li>Path</li>
* <li>com.android2ee.java.tool.animatedvector.morphing.model</li>
* <li>25/11/2015</li>
* <p/>
* <li>======================================================</li>
* <p/>
* <li>Projet : Mathias Seguy Project</li>
* <li>Produit par MSE.</li>
* <p/>
* /**
* <ul>
* Android Tutorial, An... | true |
3b52b9296e72b073c6c0728b1701876b8108cf4e | Java | TURQUOISE11/jax | /src/main/java/cn/lhemi/jax/JaxServerBootstrap.java | UTF-8 | 1,287 | 2.515625 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package cn.lhemi.jax;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelFuture;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.PreDestroy;
import java.net.InetSocketAddress;
/**
* @description: JaxServer 启动
* @author: TURQUOISE
* @create: 2019-07-30 11:05
... | true |
e6b90b3ca7ec2a9f596055445837fd321670c759 | Java | zzshello/xRPC | /xRPC-spring/src/test/java/org/xRPC/spring/test/TestMain.java | UTF-8 | 626 | 1.679688 | 2 | [
"Apache-2.0"
] | permissive | package org.xRPC.spring.test;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import java.io.IOException;
/**
* Created by zhaodong/yaccc(github.com/yaccc)|xRPC on 16/2/11
*/
public class TestMain {
public... | true |
56eab293ac2e248262d1fc12d0c0ec99c95a577f | Java | folaringbolahan/Easycoop | /src/java/com/sift/webservice/model/LoanRequestResponseWS.java | UTF-8 | 1,825 | 2.15625 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.sift.webservice.model;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
/**
*
* @author Nelson Akpos
*/
@XmlRootElement
public class LoanRequest... | true |
740b14dceaffbb94c2678b71770b4fa5b33378e6 | Java | DanoshiFusermoto/cassandra | /core/src/main/java/org/fuserleer/serialization/mapper/JacksonCborObjectBytesSerializer.java | UTF-8 | 1,059 | 2.40625 | 2 | [] | no_license | package org.fuserleer.serialization.mapper;
import java.io.IOException;
import java.util.function.Function;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
public class JacksonCborObjectBytesSerial... | true |
fd2856bfe96fc2633afb65278a14352df012d1f6 | Java | P79N6A/speedx | /reverse_engineered/sources/com/beastbikes/android/modules/cycling/activity/ui/record/p123c/C1978a.java | UTF-8 | 5,301 | 1.875 | 2 | [] | no_license | package com.beastbikes.android.modules.cycling.activity.ui.record.p123c;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.Recycler... | true |
646907cfea8840abfa0c89cb1bb1a17cc967b1d8 | Java | edsionhou/Shujujiegou | /src/HashMapTest.java | UTF-8 | 744 | 2.984375 | 3 | [] | no_license | /**
* @Author: edison
* @Date: 2020/2/7 20时26分
* @Description:
*/
public class HashMapTest {
public static void main(String[] args) {
System.out.println(8>>1);
System.out.println(Integer.toBinaryString(-8));
System.out.println(-8>>>2);
System.out.println(Integer.toBi... | true |
49b03fc95387a364b43c6cdc1a6b7196e15c6488 | Java | SpiderSwift/ClientApplication | /src/client/control/DialogController.java | UTF-8 | 667 | 2.171875 | 2 | [] | no_license | package client.control;
import client.logic.GlobalContainer;
import com.messages.SessionEndMessage;
import javafx.scene.input.MouseEvent;
import java.io.IOException;
public class DialogController {
public void endSession(MouseEvent event) {
GlobalContainer.getInstance().setInSession(false);
Glob... | true |
3c8d2f6e133867e9629866447e4b0f229b7b1ad5 | Java | joseduin/srpollo | /app/src/main/java/com/patricia/srpollo/modelo/Almacen.java | UTF-8 | 617 | 2.5625 | 3 | [] | no_license | package com.patricia.srpollo.modelo;
import java.io.Serializable;
/**
* Created by Jose on 5/3/2018.
*/
@SuppressWarnings("serial")
public class Almacen implements Serializable {
private int id;
private String nombre;
public Almacen(int id, String nombre) {
this.id = id;
this.nombre =... | true |
78301012e7170157520a958bfa1a143d7439db50 | Java | magase/Java | /OperacionesREP/src/Operaciones/MainOperaciones.java | UTF-8 | 831 | 3.671875 | 4 | [] | no_license | package Operaciones;
import java.util.Scanner;
public class MainOperaciones {
public static void main(String [] arg){
Scanner teclado = new Scanner(System.in);
int operador1, operador2, suma, resta, multiplicacion, division;
System.out.println("Escribe un operador");
operador1... | true |
be6a945aa255ae082b1de9084eac240d9d4bcdcd | Java | tianyalu/Algorithm | /app/src/test/java/com/sty/algorithm/other/ReservoirSampling.java | UTF-8 | 4,127 | 3.65625 | 4 | [] | no_license | package com.sty.algorithm.other;
import java.util.Random;
/**
* 蓄水池抽样算法
* 题目描述:
* 从n个数中随机取m个数(n>m)
*
* 算法思想:
* 源数组为a[],大小为n,“水池”即存放取出的数组b[],大小为m,若要做到随机,则每个数据被选中的概率为m/n
* 操作如下:
* ①对数组a[]进行遍历,设置j为遍历时当前元素的下标,将a[]数组的前m个数据依次存入数组b[]中,此操作a[]数组中的前
* m个数被加入b[]数组的概率为100%
* ②当i=m-1时,此时b[]数... | true |
9046fbf4c6071298d825bd6848b23d1e672e1c41 | Java | neilyich/tournament-service | /src/main/java/neilyich/servers/tournamentservice/model/Currency.java | UTF-8 | 99 | 1.9375 | 2 | [] | no_license | package neilyich.servers.tournamentservice.model;
public enum Currency {
USD, EUR, RUB, CNY
}
| true |
2f224c610dcb9da5fd06389694d1ba6e29c5a623 | Java | provalinf/ProjetPFA | /Monnaie/src/BanditManchot/Devise/Franc.java | UTF-8 | 1,082 | 2.59375 | 3 | [] | no_license | package BanditManchot.Devise;
import BanditManchot.PieceQuantite;
import BanditManchot.Symbole;
import BanditManchot.TypeMonnaie;
public class Franc extends Devise {
public Franc() {
super(CodeISO.CHF);
initPieceEuro();
}
private void initPieceEuro() {
PieceQuantite piece50F_C = new PieceQuantite(50, 10, S... | true |
edacb7dec775a356840458a07c313240f30165c1 | Java | MattiaBuffi/ingswAM2021-Buffi-Arvati-Bianchi | /src/main/java/it/polimi/ingsw/Message/Model/LeaderCardActivation.java | UTF-8 | 2,082 | 2.203125 | 2 | [] | no_license | package it.polimi.ingsw.Message.Model;
import it.polimi.ingsw.Client.ModelData.ReducedDataModel.LeaderCard;
import it.polimi.ingsw.Message.Message;
import it.polimi.ingsw.Message.ModelEventHandler;
import it.polimi.ingsw.Model.LeaderCard.RequirementsStrategy.RequireCards;
import it.polimi.ingsw.Model.LeaderCard.Requir... | true |
440355ab6567b4672d817b7dfc689811ff6d01a8 | Java | kingyang/hinapix-server | /openempi/src/main/java/org/openempi/ils/ejb/IlsServiceBean.java | UTF-8 | 3,439 | 2.15625 | 2 | [] | no_license | package org.openempi.ils.ejb;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import javax.ejb.CreateException;
import javax.ejb.EJBException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContex... | true |
aa73e1cf05035bacaaf57dfcf334f746526743c7 | Java | rladeon/mongoservices | /src/main/java/com/mongo/resource/DataResource.java | UTF-8 | 6,229 | 2.234375 | 2 | [] | no_license | /**
*
*/
package com.mongo.resource;
import java.io.IOException;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import javax.inject.Inject;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import java... | true |
d1f6ef92dac97d996cc7a37fa6fcffd21a246c86 | Java | doronkapah/Foodonet.Android.Material.Design-master_2 | /app/src/main/java/DataModel/Group.java | UTF-8 | 6,847 | 2.359375 | 2 | [] | no_license | package DataModel;
import android.content.ContentValues;
import android.database.Cursor;
import android.util.Log;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.simple.JSONObject;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
/**
... | true |
0fd6341216e1ce1dc211c876d952f448a497b434 | Java | mask-hao/JobSchedulerAnalysis | /app/src/main/java/com/zhanghao/jobscheduler/MainActivity.java | UTF-8 | 6,305 | 1.890625 | 2 | [] | no_license | package com.zhanghao.jobscheduler;
import android.app.job.JobInfo;
import android.app.job.JobScheduler;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.MainThread;
import android.support.v7.app.AppCompatActivity;
import android.os.B... | true |
d300eb61def3c95403f105a2d7bc4b9735b58d7b | Java | roboconf/roboconf-platform | /core/roboconf-dm/src/main/java/net/roboconf/dm/internal/commands/CommandsExecutor.java | UTF-8 | 6,765 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2015-2017 Linagora, Université Joseph Fourier, Floralis
*
* The present code is developed in the scope of the joint LINAGORA -
* Université Joseph Fourier - Floralis research program and is designated
* as a "Result" pursuant to the terms and conditions of the LINAGORA
* - Université Joseph Fourie... | true |
29bb66e09cb49c3139dd3b1edb5d4eb56f02a40e | Java | PaLiarMo/GNotes | /app/src/main/java/com/paliarmo/gbnote/models/ENote.java | UTF-8 | 1,051 | 2.4375 | 2 | [] | no_license | package com.paliarmo.gbnote.models;
import android.os.Parcel;
import android.os.Parcelable;
public class ENote implements Parcelable {
Integer id;
String name;
String description;
String createdAt;
String updatedAt;
public ENote() {
}
private ENote(Parcel in) {
name = in.rea... | true |
2bd79393f9b192df14de5471fbd4225c71e26292 | Java | ChenJianzhao/springapp | /src/main/java/org/demo/auto/common/dubbo/service/impl/NotifyService.java | UTF-8 | 358 | 2 | 2 | [] | no_license | package org.demo.auto.common.dubbo.service.impl;
import com.alibaba.dubbo.config.annotation.Service;
import org.demo.auto.common.dubbo.service.INotifyService;
/**
* Created by cjz on 2017/12/13.
*/
@Service
public class NotifyService implements INotifyService{
public String sayHelloWithNotify(String name) {
... | true |
34f0a66acdd9c7d0f40181c532a78c8ba7abe5f8 | Java | lexmart/Pixel-World | /src/com/martin/pixelworld/input/Mouse.java | UTF-8 | 976 | 2.609375 | 3 | [] | no_license | package com.martin.pixelworld.input;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import com.martin.pixelworld.Game;
import com.martin.pixelworld.God;
public class Mouse implements MouseListener, MouseMotionListener {
public static in... | true |
3eb177aafb86f1e452481057812ea0c63c8ab1d4 | Java | cedar997/Leetcode | /src/com/cedar/leetcode/tmp/t_11/Solution2.java | UTF-8 | 682 | 3.09375 | 3 | [] | no_license | package com.cedar.leetcode.tmp.t_11;
/**
* @author xxs
* @date 2020/09/13
**/
public class Solution2 {
// 双指针法
public int maxArea(int[] height) {
int max=0;
if(height.length==0)return 0;
int i=0;
int j=height.length-1;
while (i<j){
int vol=j-i;
... | true |
ab90932a46a2441761498b485bfb1ba78d805ccb | Java | LambdAurora/AuroraKeystrokes | /src/main/java/me/lambdaurora/keystrokes/LayoutMode.java | UTF-8 | 1,241 | 2.75 | 3 | [
"MIT"
] | permissive | /*
* Copyright © 2020 LambdAurora <aurora42lambda@gmail.com>
*
* This file is part of AuroraKeystrokes.
*
* Licensed under the MIT license. For more information,
* see the LICENSE file.
*/
package me.lambdaurora.keystrokes;
import dev.lambdaurora.spruceui.util.Nameable;
import org.jetbrains.annotations.NotNull... | true |
58076044d7f914ec2891b904619d9000e676baae | Java | RyanTech/Android-Apprentissage | /workspace_apprentissage/googleplus/src/com/google/android/apps/plus/realtimechat/BlockingC2DMClient.java | UTF-8 | 3,280 | 2.0625 | 2 | [] | no_license | package com.google.android.apps.plus.realtimechat;
import android.content.Context;
import android.util.Log;
import com.google.android.apps.plus.service.ServiceResult;
import com.google.android.apps.plus.util.EsLog;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
public final class Bl... | true |
4a72a65ab2b87eecc3974d51513d3c76b2388513 | Java | paullewallencom/android-978-1-7832-8529-7 | /_/Libs/ASRLib/src/sandra/libs/asr/asrlib/ASR.java | UTF-8 | 7,704 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package sandra.libs.asr.asrlib;
/*
* Copyright 2013 Zoraida Callejas and Michael McTear
*
* This file is part of the Sandra (Speech ANDroid Apps) Toolkit, from the book:
* Voice Application Development for Android, Michael McTear and Zoraida Callejas,
* PACKT Publishing 2013 <http://www.packtpub.com/vo... | true |
1340ebd2fcbbddc909a759dce4344edc6e8544f4 | Java | LukWebsForge/JustMail | /src/main/java/de/lukweb/justmail/sql/DB.java | UTF-8 | 3,705 | 2.453125 | 2 | [
"MIT"
] | permissive | package de.lukweb.justmail.sql;
import de.lukweb.justmail.console.JustLogger;
import java.io.File;
import java.sql.ResultSet;
import java.sql.SQLException;
public class DB {
private static SqlLite sql;
private static int latestDbVersion = 1;
private static int dbVersion;
static {
sql = new ... | true |
05f8de4bd1a39d5b46a98f418a2af1680f686aef | Java | AG-WW/test-java-generic | /api/src/df/repository/api/ICache.java | UTF-8 | 357 | 1.960938 | 2 | [] | no_license | package df.repository.api;
import df.repository.entry.id.EntityId;
import df.repository.entry.value.EntryValue;
import java.util.Map;
public interface ICache extends IRepository<EntityId, EntryValue> {
<V> V get(K theKey);
<V> Iterable<V> getAll(Iterable<K> theKey);
<K> K put(K theKey, V theValue);
... | true |
b0a9bfe5e2850034ef4d8119a2cd2c6cf80f9af9 | Java | maxwernerde/DocUp | /clinic/src/main/java/com/bosch/onsite/clinic/model/Patient.java | UTF-8 | 142 | 1.976563 | 2 | [] | no_license |
package com.bosch.onsite.clinic.model;
public class Patient extends Person {
public Patient(String name) {
super(name);
}
}
| true |
c53e10bfeb6e8aac8d475dbcbcb12b9aa6250e3c | Java | rockyxiabk/Leyou_Game | /game_main_new_youmi/src/main/java/com/leyou/game/ipresenter/mine/IWithCashNote.java | UTF-8 | 588 | 1.664063 | 2 | [] | no_license | package com.leyou.game.ipresenter.mine;
import com.leyou.game.bean.user.WithCashNoteBean;
import com.leyou.game.ipresenter.IBasePresenter;
import java.util.List;
/**
* Description : com.leyou.game.ipresenter.mine
*
* @author : rocky
* @Create Time : 2017/11/29 下午2:35
* @Modified Time : 2017/11/29 下午2:35
*/
pub... | true |
2f2369093d1b9f2caf1b931486a5d741a1e04eda | Java | Edin-K/BILD-IT | /src/task/seven/StringLengthAndFirstCharacter.java | WINDOWS-1250 | 646 | 3.78125 | 4 | [] | no_license | package task.seven;
//Zadaca_7_4_11_2017
import java.util.Scanner;
/*
* @author Edin Korkic
*
* Napisati program koji pita korisnika da unese neki string te mu
* ispisuje duinu tog stringa kao i prvo slovo stringa.
*
*/
public class StringLengthAndFirstCharacter {
public static void main(String[] args) {
... | true |
4b8f0834373fa9299ff23f63805982f99e37772e | Java | apache/maven-enforcer | /enforcer-rules/src/test/java/org/apache/maven/enforcer/rules/ReactorModuleConvergenceTest.java | UTF-8 | 12,304 | 1.75 | 2 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
0b5252a11aaa4b08cf9329b7ef3401f0ef57ad86 | Java | NullTerrier/sfg-pet-clinic | /pet-clinic-data/src/test/java/marek/makuch/sfgpetclinic/services/springdatajpa/PetSDJpaServiceTest.java | UTF-8 | 2,076 | 2.4375 | 2 | [] | no_license | package marek.makuch.sfgpetclinic.services.springdatajpa;
import marek.makuch.sfgpetclinic.model.Pet;
import marek.makuch.sfgpetclinic.repositories.PetRepository;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.InjectMock... | true |
2a585e1f9d58dd0ae184ba4c7db78c5f9c76c648 | Java | TaeRoen/simple-code | /src/main/java/com/taeroen/simple/vm/VirtualMachine.java | UTF-8 | 647 | 2.421875 | 2 | [
"MIT"
] | permissive | package com.taeroen.simple.vm;
import com.taeroen.simple.vm.Operand.Operand;
import com.taeroen.simple.vm.instruction.VMInstruction;
public interface VirtualMachine {
public void accept(VMInstruction instruct);
long readInt(Operand operand);
long readInt(Register register);
long readInt(long pointe... | true |
94885fd6a38c41ee91c5f794aa32ab975a9d1421 | Java | luwenbin888/rpncalculator | /src/main/java/com/airwallex/rpncalculator/operators/AbstractOperator.java | UTF-8 | 1,077 | 3.09375 | 3 | [] | no_license | package com.airwallex.rpncalculator.operators;
import com.airwallex.rpncalculator.data.UndoData;
import java.math.BigDecimal;
import java.util.Stack;
/**
* Abstract class for all numeric operators.
*
* Any concrete operator class should override:
* 1) operandCount to indicate how many operands involved
* 2) exe... | true |
86d6ad7a6b290c6484f75c0d97c7b3d3d1be9561 | Java | TaufikTS/mediasekolah-mediago | /app/src/main/java/uzi/media/smk/ui/listJudul/PelajaranDialog.java | UTF-8 | 886 | 1.84375 | 2 | [] | no_license | package uzi.media.smk.ui.listJudul;
import android.app.Dialog;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.view.View;
import uzi.media.smk.R;
import uzi.media.smk.ui.base.BaseDialogFragment;
/**
* Created by uzi on 29/09/17.
* Email : fauzisholichin@gmail.com
*/
public cla... | true |