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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
885958c7de2f3e94e77cae67c20229a4a3e8b73e | Java | henriqueakao/pooaf | /src/main/java/com/example/af/dto/VeiculoDTO.java | UTF-8 | 264 | 2.15625 | 2 | [] | no_license | package com.example.af.dto;
public class VeiculoDTO
{
private float ValorDiaria;
public float getValorDiaria()
{
return ValorDiaria;
}
public void setValorDiaria(float valorDiaria)
{
ValorDiaria = valorDiaria;
}
}
| true |
9208db7d3d4676f0236790094a9150f7a29bd8f9 | Java | X-TEAM-PLUS/tourismpay | /tourismpay-alibaba/src/main/java/com/alipay/api/response/AlipayGotoneTodoSearchResponse.java | UTF-8 | 1,031 | 1.703125 | 2 | [] | no_license | package com.alipay.api.response;
import java.util.List;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
import com.alipay.api.domain.TodoRemind;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.gotone.todo.search response.
*
* @author auto creat... | true |
1abecab49a18b520a21a5aad5a10122b6604c468 | Java | GrkRise/RepositoryDemo | /src/ru/miit/demo/repository/Repository/SoftBookRepository.java | UTF-8 | 833 | 2.34375 | 2 | [] | no_license | package ru.miit.demo.repository.Repository;
import ru.miit.demo.repository.Models.DigitalBook;
import ru.miit.demo.repository.Models.SoftBook;
import ru.miit.demo.repository.Storage.IStorage;
import java.util.List;
public class SoftBookRepository extends AbstractRepository implements ITypedBookRepository<SoftBook> {... | true |
bc862bf3998422052d9f68342ca7b3b397020b49 | Java | DanielGopal/ICS4C0-Work | /Mod B Assignments/Mod B.2/FactorialCalculatorJOptionPaneSWT.java | UTF-8 | 1,058 | 3.609375 | 4 | [] | no_license |
// A dialog box that displays a message to the user and allows for inputs within the same window
import javax.swing.JOptionPane;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
public class FactorialCalculatorSW... | true |
0d357e2641c43e89d26942575f0bd83757f74fc0 | Java | FeedeRino/Projekt226B | /Projekt226B/src/logic/startBrowser.java | ISO-8859-1 | 1,087 | 2.65625 | 3 | [] | no_license | package logic;
import java.awt.Desktop;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import dto.Game;
/**
*
* @author Noah Hermann
* In dieser Klasse werden die Browser Spiele gestartet
*/
public class startBrowser extends Starter {
/**
* Hier wird an... | true |
d06eca57911401ecce932423cfd62ea1a91306a1 | Java | thonnyhu/designpattern | /oo/src/main/java/guitarshop2ed/thirdgeneration/InstrumentSpec.java | UTF-8 | 649 | 2.46875 | 2 | [] | no_license | package guitarshop2ed.thirdgeneration;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.util.Iterator;
import java.util.Map;
@Data
@AllArgsConstructor
public class InstrumentSpec {
private Map<String, Object> properties;
public boolean match(InstrumentSpec otherInstrumentSpec){
for(... | true |
c7c0315464566df9f6527c4ca8e20288988542ab | Java | aermicioi/rest-cached | /spring/src/main/java/io/aermicioi/restcached/spring/CacheControlInterceptor.java | UTF-8 | 4,965 | 2.109375 | 2 | [
"BSL-1.0"
] | permissive | package io.aermicioi.restcached.spring;
import io.aermicioi.restcached.annotations.cachecontrol.MaxAge;
import io.aermicioi.restcached.annotations.cachecontrol.MustRevalidate;
import io.aermicioi.restcached.annotations.cachecontrol.NoCache;
import io.aermicioi.restcached.annotations.cachecontrol.NoStore;
import io.aer... | true |
424d45be5f1aa59c948a6f4a3ea9321564b4f55a | Java | giripal/genesis | /genesis_src/translator/Distributor.java | UTF-8 | 6,190 | 2.171875 | 2 | [] | no_license | /* 1: */ package translator;
/* 2: */
/* 3: */ import bridge.reps.entities.Entity;
/* 4: */ import bridge.reps.entities.Function;
/* 5: */ import bridge.reps.entities.Relation;
/* 6: */ import bridge.reps.entities.Sequence;
/* 7: */ import connections.AbstractWiredBox;
/* 8:... | true |
c2eb607197be14132e4e1f6325b18843ee95ea8b | Java | Harnamkaur/cineplexMovie | /app/src/main/java/com/example/letsmovie/Login.java | UTF-8 | 3,273 | 2.109375 | 2 | [] | no_license | package com.example.letsmovie;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import android.util.Patterns;
import android.view.View;
import android.widget.... | true |
93a9b95e48355c798fc62c89874c28b9a67ec63c | Java | cha63506/CompSecurity | /emoji-source/src/org/chromium/content/browser/DeviceSensors.java | UTF-8 | 17,480 | 1.882813 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package org.chromium.content.browser;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
impor... | true |
f0c4b6239a716e7c9b3e9abdd25a1e7c6916ce77 | Java | jay-hg/DesignPatterns | /src/main/java/com/hgc/observer/Main.java | UTF-8 | 310 | 2.5 | 2 | [] | no_license | package com.hgc.observer;
public class Main {
public static void main(String[] args) {
Baby baby = new Baby();
Dad dad = new Dad();
baby.addListener(dad);
baby.addListener(new Mom());
baby.wakeup();
baby.removeListener(dad);
baby.wakeup();
}
}
| true |
03ccf979579436ab04efc2a4c5da061a3606edc6 | Java | KingLQ/lll_Leave | /app/src/main/java/com/goldze/mvvmhabit/app/AppViewModelFactory.java | UTF-8 | 3,576 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | package com.goldze.mvvmhabit.app;
import android.annotation.SuppressLint;
import android.app.Application;
import android.arch.lifecycle.ViewModel;
import android.arch.lifecycle.ViewModelProvider;
import android.support.annotation.NonNull;
import android.support.annotation.VisibleForTesting;
import com.goldze.mvvmhabi... | true |
105bfdad66e18e1acfd6775fdee52386a4785a56 | Java | nnyy/mycode | /HCloudParent/HCloudLib/src/main/java/org/head/cloud/util/Column.java | UTF-8 | 2,239 | 2.296875 | 2 | [] | no_license | package org.head.cloud.util;
import java.io.Serializable;
import java.util.List;
public class Column implements Serializable {
private String columnName;
private int SqlType;
private String typeName;
private int columnSize;
private int decimalDigits;
private int nullLable = 3;
private int isPrimarykey;
privat... | true |
58bfb92abb3ff2861ad2f9c08278c3ac7deabc8a | Java | Thebowers89/DeathArena3 | /src/DeathArena3/Commands/SetCommonAreaCommand.java | UTF-8 | 812 | 2.5 | 2 | [] | no_license | package DeathArena3.Commands;
import DeathArena3.Utils.LocationUtils;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class SetCommonAreaCommand implements CommandExecutor {
@Override
public boolean ... | true |
5b605eb098a47a1fc504755430a8d19906da4ddf | Java | TLin-Y/CS-Concordia | /COMP 352 2018 fall/Assignment 3/ArrayHeap.java | UTF-8 | 2,408 | 3.328125 | 3 | [] | no_license | import java.util.Comparator;
public class ArrayHeap<K, V> extends AbstractPriorityQueue<K, V> {
private MyArrayList<Entry<K, V>> heap = new MyArrayList<>();
public ArrayHeap(Comparator<K> comp) {
super(comp);
}
private int parent(int i) {
return (i - 1) / 2;
}
private int le... | true |
3953bcd72c5d38e2d39503c63f92aa609cc8a5ba | Java | qiedingding/bookStroe1.0 | /src/com/footprint/lx/struts/action/LoginAction.java | UTF-8 | 1,512 | 2.078125 | 2 | [] | no_license | /*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.footprint.lx.struts.action;
import java.sql.SQLException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.struts.act... | true |
d56c4bdffbedb53d61aac2b8b0174cf9d8d00980 | Java | Dan-Dan-Man/Honrs-Proj | /The Importance of Being Android/src/com/lines/activitys/MainActivity.java | UTF-8 | 50,292 | 1.78125 | 2 | [] | no_license | /*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | true |
3532df8cc350275c6dac9dd22d3abcfc534557b5 | Java | jonathan89r/proyectos-funcionales | /proyecto_inventario/ProyectoInventario/src/java/managedBeans/beanProveedor_Producto.java | UTF-8 | 7,787 | 2.078125 | 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 managedBeans;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util... | true |
9c4056fa53edcd38f21a528e7422cbfcc5450000 | Java | trak2016/e-kpir-tr | /src/main/java/pl/ekpir/registration/RegistrationController.java | UTF-8 | 870 | 2.0625 | 2 | [] | no_license | package pl.ekpir.registration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMeth... | true |
448aa032ccde34254e6a23cf94f0fa2a11bbacdd | Java | LmV4corbeau/j2mod | /j2mod/src/main/java/com/ghgande/j2mod/modbus/msg/ReadCoilsRequest.java | UTF-8 | 6,326 | 2.21875 | 2 | [] | no_license | //License
/**
* *
* Java Modbus Library (jamod) Copyright (c) 2002-2004, jamod development team
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must reta... | true |
ce89cd53473888f78f4553e35889eadbe947ae14 | Java | minajsaaa/hello_counselor | /src/main/java/org/trams/hello/data/repository/jpa/BusinessJpaRepository.java | UTF-8 | 3,011 | 2.046875 | 2 | [] | no_license | package org.trams.hello.data.repository.jpa;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.P... | true |
309d4bc89116aab3ee639cdfbb8df23e99074bcc | Java | soniajain2016/codebase | /Test/src/linkedin/twosum/PrintMultiplicationSet.java | UTF-8 | 976 | 3.203125 | 3 | [] | no_license | package linkedin.twosum;
import java.util.ArrayList;
import java.util.List;
public class PrintMultiplicationSet {
List<String> list=new ArrayList<>();
List<Integer> primeNumbers=new ArrayList<>();
void printMultiply(int n){
for(int i=1;i<n;i++){
if(n%i==0){
String s=i+"*"+n/i;
String k=n/i+"*"+i;
if(!(li... | true |
7c539d19137a3aa6298192bc258e517fc5f37b7f | Java | sansom/StarAgent | /src/com/core/jadlwork/model/fwgl/FwddBean.java | UTF-8 | 2,154 | 2.53125 | 3 | [] | no_license | package com.core.jadlwork.model.fwgl;
public class FwddBean{
public static final String db_tablename = "t_fwgl_fwdd";
public static final String db_tablepkfields = "id";
/*
* 状态 0:有效 1:无效
*/
private String zt;
/*
* 最后修改时间
*/
private java.util.Date zhxgsj;
/*
* 设置时间
... | true |
007b653446e2ff626816ac5ab856bf2733cfc46f | Java | edwinrjrc/rhviajes | /RHViajesNegocioClient/ejbModule/pe/com/viajes/negocio/exception/EjecucionSQLException.java | UTF-8 | 1,459 | 2.109375 | 2 | [] | no_license | /**
*
*/
package pe.com.viajes.negocio.exception;
/**
* @author EDWREB
*
*/
public class EjecucionSQLException extends RHViajesException {
private static final long serialVersionUID = 4120398851674954736L;
/**
*
*/
public EjecucionSQLException() {
// TODO Auto-generated constructor s... | true |
41b641811ee9b64b0f9d71773d992d6ce7364112 | Java | MrCheckSum/training-solutions | /src/main/java/classstructureintegrate/Product.java | UTF-8 | 522 | 3.34375 | 3 | [] | no_license | package classstructureintegrate;
public class Product {
private String name;
private int price;
public Product(String name, int price) {this.name = name; this.price=price;
}
public String getName() {
return this.name = name;
}
public int getPrice() {
return this.price = p... | true |
80c88c9bb3c14a8d55985e9c2b3574fdc7b37c5a | Java | VanHauTran2001/TaiLieuGit | /BT2_Day4_J56/src/MainBT4_D4.java | UTF-8 | 6,550 | 3.046875 | 3 | [] | no_license | import java.util.Scanner;
public class MainBT4_D4 {
public static void main(String[] args) {
boolean flag = true;
Scanner sc = new Scanner(System.in);
System.out.println("Nhap so luong van dong vien :");
int n = sc.nextInt();
sc.nextLine();
VanDongVien a[] = new VanDongVien[n];
for(int i=0;i<n;i... | true |
40807fafab147b46b0c5478b5038528cc5bb03fa | Java | xxrepo/saa | /saareport.2012/src/com/saa/model/auto/_PL_REQ_DT.java | UTF-8 | 1,045 | 1.578125 | 2 | [] | no_license | /*
* _PL_REQ_DT.java
*
* Created on Apr 19, 2008, 3:35:32 AM
*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.saa.model.auto;
import com.saa.util.AutoInitialize;
import java.sql.Timestamp;
/**
*
* DOC_NO
DOC_DATE
TRX_TYPE
ITEM_CODE
ITEM_DESCS
LOT_... | true |
be84e15696954708bc35fa4da057a4503fa98b22 | Java | PranaliW/ParcelBooking-POC | /ParcelBooking/src/test/java/automation/parcel/PageObjectModel.java | UTF-8 | 1,513 | 1.914063 | 2 | [] | no_license | package automation.parcel;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.Select;
import com.page.objects.BookParcel;
import com.page.objects.ParcelPage;
public c... | true |
645145e91f3f4c39fd9a6a8b226774c661a24ad3 | Java | NDCFL/SchoolStudy | /Struts2Study/src/Action/LuntanAction.java | UTF-8 | 528 | 2.234375 | 2 | [] | no_license | package Action;
import com.opensymphony.xwork2.ActionSupport;
public class LuntanAction extends ActionSupport{
private String title;
private String content;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getContent() {
return conte... | true |
6f3eb90c4cf1a496f0cbf468c2ade73a5c60d4b2 | Java | zhangxf14/IvrJack.RU01.Demo | /IvrJack.RU01.Demo/src/com/ivrjack/ru01/demo/TagTemperatureDao.java | UTF-8 | 6,410 | 2.765625 | 3 | [] | no_license | package com.ivrjack.ru01.demo;
import java.util.ArrayList;
import java.util.Date;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
/**
* 对应标签的温度集合操作
* @author Sai
*
*/
public class TagTemperatureDao {
private static TagTemperatureDao instance;
private Context... | true |
b65a1ff2980b47cfed8c026dad0ccf93d625aa3a | Java | kullo/client-android | /app/src/main/java/net/kullo/android/kulloapi/ClientConnector.java | UTF-8 | 955 | 2.09375 | 2 | [
"BSD-3-Clause"
] | permissive | /*
* Copyright 2015–2018 Kullo GmbH
*
* This source code is licensed under the 3-clause BSD license. See LICENSE.txt
* in the root directory of this source tree for details.
*/
package net.kullo.android.kulloapi;
import android.support.annotation.NonNull;
import android.util.Log;
import net.kullo.javautils.Runti... | true |
e7ff6d8f37c5392e0e0e78a61ab49de010b794f4 | Java | yaolianghu/RestfulAPI1 | /src/main/java/com/buyerzone/controllers/ReportController.java | UTF-8 | 3,917 | 1.953125 | 2 | [] | no_license | package com.buyerzone.controllers;
import com.buyerzone.service.ReportService;
import com.buyerzone.util.DateUtil;
import com.buyerzone.util.report.ReportCriteria;
import com.buyerzone.util.report.impl.EQReportCriteria;
import org.apache.http.entity.ByteArrayEntity;
import org.apache.log4j.Logger;
import org.springfra... | true |
5a35ef71b4096fa44cdbeef102e481f4faab9c55 | Java | cisc275/project-assignment-10-7 | /Model.java | UTF-8 | 8,350 | 3.375 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Iterator;
public class Model{
int SCOREINC = 100; //amount to increase score
int SCOREDCR = 25; //amount to decrease score
static boolean correctQuiz = false; //lets view know if answer is right
int foxMax = 4; //max amount of foxes on screen
Direction direction;
... | true |
c940f701c1213ced783ba6f5e2c650f69a5d2eb5 | Java | liukaifeng/vihacker-cloud | /vihacker-core/vihacker-common/src/main/java/com/vihackerframework/core/constant/ViHackerConstant.java | UTF-8 | 1,561 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | package com.vihackerframework.core.constant;
/**
* @Description
* @Author: Ranger
* @Date: 2021/1/25 14:57
* @Email: wilton.icp@gmail.com
*/
public class ViHackerConstant {
/**
* 默认头像
*/
public static final String DEFAULT_AVATAR = "https://oss.wiltonic.cn/defult.jpeg";
/**
* 默认密码
... | true |
fc68c86e2fd45dc44fb4ce6fa6a2935e533be177 | Java | hiperesp/Sistema-de-Farmacia | /src/src/view/telas/TelaClientes.java | ISO-8859-1 | 6,453 | 2.625 | 3 | [] | no_license | package view.telas;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.beans.PropertyChangeEvent;
import javax.swing.JButton;
import javax.swing.JOptionPane;
import javax.swing.JTable;
import javax.... | true |
61160a92f950c067b779963691f90acf026767e2 | Java | SplotyCode/Sploty4 | /src/main/java/me/david/sploty4/setting/settings/GeneralSettings.java | UTF-8 | 3,640 | 2.515625 | 3 | [] | no_license | package me.david.sploty4.setting.settings;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.scene.control.*;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.scene.text.Font;
import javafx.scene.text.FontWeight;
import javafx.stage.Direct... | true |
e8c6f41401b5f1d8f8cdd7f7acb5700bf802ce64 | Java | Disastorm/mikopoly | /src/coolmonopoly/board/TileType.java | UTF-8 | 322 | 1.757813 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package coolmonopoly.board;
/**
*
* @author Disastorm
*/
public enum TileType {
PROPERTY,RAILROAD,UTILITY,VISITING_JAIL,IN_JAIL,GOTO_JAIL,FREE_PARKING,GO,LUXURY_TAX,CHANCE,COMMUNITY_CHEST,INCOME_TAX
}... | true |
213da1305f6cf84133b00c923660725470b3a191 | Java | VitaliyFilatov/component_manager_client | /app/src/main/java/com/example/vitaliy/myapplication/Model/ComplexModel.java | UTF-8 | 17,863 | 2.203125 | 2 | [] | no_license | package com.example.vitaliy.myapplication.Model;
import android.content.Context;
import android.database.Cursor;
import com.example.vitaliy.myapplication.Entity.ComplexComponent;
import com.example.vitaliy.myapplication.Entity.ComplexInfo;
import com.example.vitaliy.myapplication.Entity.ComplexInfoServer;
import jav... | true |
07af246c6514a2546e881b0181e79477fdf4b71e | Java | munifgebara/voucher | /src/main/java/br/com/munif/treinamento/unicesumar/voucher/entidades/Voucher.java | UTF-8 | 1,129 | 2.015625 | 2 | [] | no_license | package br.com.munif.treinamento.unicesumar.voucher.entidades;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import org.hibernate.envers.Audited;
import br.com.munif.framework.vicente.domain.BaseEntity;
@Entity
@Audited
public class Voucher extends BaseEntity {
private String codigoVoucher;... | true |
1af9a31e99dece5822f85b188e653347efb167d4 | Java | Bogdan-G/chocolateQuest | /src/main/java/com/chocolate/chocolateQuest/gui/GuiGolem.java | UTF-8 | 958 | 2.125 | 2 | [] | no_license | package com.chocolate.chocolateQuest.gui;
import com.chocolate.chocolateQuest.entity.EntityHumanBase;
import com.chocolate.chocolateQuest.gui.ContainerGolemInventory;
import com.chocolate.chocolateQuest.gui.GuiHuman;
import com.chocolate.chocolateQuest.utils.BDHelper;
import net.minecraft.entity.player.EntityPla... | true |
0ffbd83ea48f12248e1420a1cc8724a42f27a7f6 | Java | Fettoukh/Gestion-d-hotel | /src/Metiers/Personne.java | UTF-8 | 2,714 | 2.640625 | 3 | [] | no_license | /***********************************************************************
* Module: Gerant.java
* Author: omar
* Purpose: Defines the Class Personnel
***********************************************************************/
package Metiers;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.*... | true |
b764d13eca3b3d89ef845de81c35314f7b873ed9 | Java | Beat2BeatMatias/practico4ES | /src/main/java/Application.java | UTF-8 | 3,223 | 2.640625 | 3 | [] | no_license | import com.google.gson.Gson;
import com.google.gson.JsonElement;
import java.io.IOException;
import java.util.ArrayList;
import static spark.Spark.*;
public class Application {
public static void main(String[] args) {
port(8080);
ItemService.makeConnection();
System.out.println("Inse... | true |
850ce6916bffb050f488c9893577a5141aad660f | Java | chenpeiyuan1987/spring | /src/main/java/org/yuan/study/spring/beans/factory/support/AbstractAutowireCapableBeanFactory.java | UTF-8 | 58,155 | 1.546875 | 2 | [] | no_license | package org.yuan.study.spring.beans.factory.support;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.security.AccessController;
import java.security.Pr... | true |
777c356ee1dfc9a5274c0cf2973bc46da607fdab | Java | sanjaykumar81/playthreads | /src/sj/threads/ProducerConsumerSemaphore.java | UTF-8 | 2,127 | 3.640625 | 4 | [] | no_license | package sj.threads;
import java.util.LinkedList;
import java.util.concurrent.Semaphore;
import java.util.concurrent.ThreadLocalRandom;
public class ProducerConsumerSemaphore {
private static LinkedList<Integer> queue = new LinkedList<>();
private static Semaphore lock = new Semaphore(1);
public static vo... | true |
acc73ef165245f08d3517e4e61e2b803a44e2b0e | Java | LadjalMohammedLaid/mltFInal | /src/mlt/ui/Dashboard/Controller.java | UTF-8 | 13,977 | 1.914063 | 2 | [] | no_license | package mlt.ui.Dashboard;
import animatefx.animation.*;
import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXComboBox;
import com.jfoenix.controls.JFXDrawer;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.event.ActionEvent;
import javafx.fxm... | true |
dc7add44944f3ab7e5ee34b1bada8c54098dc1f9 | Java | jshvlv/CRUDAppRestWithSpring | /src/main/java/mvc_h_aop/controller/MyController.java | UTF-8 | 1,683 | 2.3125 | 2 | [] | no_license | package mvc_h_aop.controller;
import mvc_h_aop.entity.Employee;
import mvc_h_aop.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
... | true |
ba969ee939126ef4d27482534d29ce331995b434 | Java | joisgori/Labo3_PDM_ejercicio_00034715 | /app/src/main/java/com/example/formulario/AppConstant.java | UTF-8 | 374 | 1.546875 | 2 | [] | no_license | package com.example.formulario;
public class AppConstant {
//Acá defino el id con el que se intercambian entre activities los mensajes que quiero mandar...
public static String TEXT_USUARIO = "textKeyU";
public static String TEXT_CONTRASEÑA = "textKeyC";
public static String TEXT_EMAIL = "textKeyE";
... | true |
7f4df7a1243d8b100183179faf986c6f066ea35a | Java | zj3310012/springcloud | /springcloud_integration/uni-platform/src/main/java/com/zj/uniPlatform/service/AbstractServiceImpl.java | UTF-8 | 1,734 | 2.390625 | 2 | [] | no_license | package com.zj.uniPlatform.service;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.springframework.util.CollectionUtils;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zj.uniPlatform.utils.BaseConvert;
import com.zj.uniPlatform.util... | true |
42f6887e6c1e62543fbfd7f071745fe1719adca9 | Java | fengyulong625908/house | /src/main/java/com/fyl/house/service/HouseService.java | UTF-8 | 1,550 | 2.390625 | 2 | [] | no_license | package com.fyl.house.service;
import com.fyl.house.entity.House;
import com.fyl.house.utils.HouseCondition;
import com.fyl.house.utils.Page;
import com.github.pagehelper.PageInfo;
public interface HouseService {
/**
* 发布新的租房信息
* @param house 新增的信息
* @return
*/
int addHouse(House house);
... | true |
98ef63fd51e04f560b2c8ab6de5f2ccb4f84823f | Java | NghiemHieu7295/NetbeanProjects | /GoogleDrivePermissionManagerV2/src/main/java/hieu/GoogleDrivePermissionManagerV2/controller/HomeController.java | UTF-8 | 2,513 | 2.34375 | 2 | [] | no_license |
package hieu.GoogleDrivePermissionManagerV2.controller;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.api.services.drive.Drive;
import com.google.api.services.drive.model.Permission;
import hieu.GoogleDrivePermissionManagerV2.DTO.PermissionDTO;
import java.io.IOException;
import java.io.PrintW... | true |
2aac1eb6f2dc779fc696b73073b0f4f083e80874 | Java | wangyue033/advanceapp | /video/src/main/java/com/example/video/adapter/VideoPagerAdapter.java | UTF-8 | 966 | 2.421875 | 2 | [] | no_license | package com.example.video.adapter;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import androidx.viewpager2.adapter.FragmentStateAdapter;
import com.example.video.bean.VideoInfo;
import com.example.video.fragment.VideoFragment;
import java.util.List;
public class VideoPagerAd... | true |
c437abcac45e91b625cf0a8ddcf015055663da16 | Java | chenshi91/springMVC2 | /src/main/java/com/quanhu/my/dao/UserDaoImpl.java | UTF-8 | 900 | 2.328125 | 2 | [] | no_license | /**Created by chenshi at 2018年1月3日 下午8:03:06*/
package com.quanhu.my.dao;
import java.util.HashMap;
import org.springframework.stereotype.Repository;
import com.quanhu.my.entity.User;
import com.quanhu.my.exception.SystemException;
/**
* @description: UserDaoImpl.java
* @packageName: com.quanhu.my.da... | true |
3b5774ba9f38b8ba5e1f06b83d0ccc04b1612984 | Java | edgarmv/NTNU | /IT1901/Find_my_sheep/src/com/g19/find_my_sheep/RegisterSheep.java | UTF-8 | 3,990 | 2.359375 | 2 | [] | no_license | package com.g19.find_my_sheep;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity... | true |
e0976f17dd2262142c05e28c3c1966051ec30ca8 | Java | thumb-tack/tt | /testsuite/simple/hibernate-search-should-fail/src/test/java/io/thorntail/testsuite/hibernate_search/HibernateSearchDeploymentTest.java | UTF-8 | 698 | 1.773438 | 2 | [
"Apache-2.0"
] | permissive | package io.thorntail.testsuite.hibernate_search;
import io.thorntail.hibernate_search.MissingQueryBuilderContextException;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import org.jboss.weld.exceptions.DefinitionException;
import org.junit.ru... | true |
34dca02b1542ffb3897645923d1b379bf0623671 | Java | Eldarian/solvd-laba-maven | /src/main/java/com/eldarian/solvdelivery/database/dao/RestaurantDao.java | UTF-8 | 308 | 2.078125 | 2 | [] | no_license | package com.eldarian.solvdelivery.database.dao;
import com.eldarian.solvdelivery.model.city.Restaurant;
import java.util.List;
public interface RestaurantDao {
Restaurant getRestaurantByName(String name);
Restaurant getRestaurantById(int id);
List<String> getRestaurantNames();
}
| true |
2647a86464459d33386ad4e1e16b8881ba9aca8a | Java | mimancino/HelloWorld | /src/CH8Classes/MichaelMancinoDVDCollection.java | UTF-8 | 1,894 | 3.828125 | 4 | [] | no_license | /** The DVDCollection class allows you to create and edit lists of movies, and calculates the total and average cost of the movies
* @author Michael Mancino
* @version 1.0
* @since 1/2/19
*/
package CH8Classes;
public class MichaelMancinoDVDCollection {
private MichaelMancinoDVD[] collection;
private int c... | true |
9aa78e46eaaa8b2ae2b9fcad35dd8ce6e713c185 | Java | assertlab/extractviewer_project | /mapping-application-web/src/main/java/br/ufpe/cin/cloud/mapeamento/negocio/extracaodados/dao/EstudoDAO.java | UTF-8 | 6,316 | 2.125 | 2 | [
"MIT"
] | permissive | /**
* CloudMapping - Sistema de Extração de Dados de Mapeamento dos Experimentos em Computação em Nuvem
*
* Copyright (c) AssertLab.
*
* Este software é confidencial e propriedade da AssertLab. Não é permitida sua distribuição ou divulgação
* do seu conteúdo sem expressa autorização do AssertLab. Este arquivo ... | true |
2831f744662cf17cbccb9990b4a18a3ab53fc7e8 | Java | orange-cloudfoundry/elpaaso-sandbox-service | /src/test/java/com/orange/clara/cloud/services/sandbox/infrastructure/CloudfoundryIdentityServiceIT.java | UTF-8 | 1,888 | 1.640625 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /**
* Copyright (C) 2015-2016 Orange
* 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 writi... | true |
9f65202fa85f66ba337eb0dea9aa41f08099e88a | Java | MrHeadShot62/BlueBearMessanger | /app/src/main/java/com/mrheadshot62/bluebearmessanger/activities/StartActivity.java | UTF-8 | 2,073 | 2.375 | 2 | [] | no_license | package com.mrheadshot62.bluebearmessanger.activities;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import com.mrheadshot62.bluebearmessanger.Activities;
import com.mrhea... | true |
4ee93faa1bc98ed9ec8524ed0ce5a87c77fac856 | Java | thanglyphan/ThesisCSC | /app/src/main/java/SicsWsAdministrationEntryPoint/SicsFaultDetails.java | UTF-8 | 7,281 | 2.4375 | 2 | [] | no_license | package SicsWsAdministrationEntryPoint;
//----------------------------------------------------
//
// Generated by www.easywsdl.com
// Version: 5.0.1.8
//
// Created by Quasar Development at 29/01/2017
//
//---------------------------------------------------
import java.util.Hashtable;
import org.ksoap2.serialization... | true |
8ebe3a6a1e0f5fd855d15e68012fc89ca35cdbb9 | Java | JuJinPark/seating-map-api | /src/main/java/com/gabia/internproject/config/security/CurrentUser.java | UTF-8 | 1,370 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.gabia.internproject.config.security;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import java.util.Collection;
import java.util.List;
public class CurrentUser implements UserDetails {
private List<GrantedAuthority> roles;... | true |
3e00d70df41b9a6716e929047992b4bad7aa34a0 | Java | Sathriyansiva/vcs | /app/src/main/java/com/testing/admin/myapplication/MainActivity.java | UTF-8 | 2,012 | 2.328125 | 2 | [] | no_license | package com.testing.admin.myapplication;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.wi... | true |
e3d1e37ed5c4bd0dce6351a4d92d62b669c5d857 | Java | naps-healthcare/patient-service | /src/main/java/com/redhat/healthcare/patient/dao/IPatientDAO.java | UTF-8 | 392 | 2 | 2 | [] | no_license | package com.redhat.healthcare.patient.dao;
import java.util.List;
import com.redhat.healthcare.patient.domain.Patient;
public interface IPatientDAO {
public List<Patient> getPatients();
public Patient getPatient(Integer patientId);
public Integer addPatient(Patient patient);
public void deletePa... | true |
79d83e2c8a06a545f7d7afe0d017510eed680e42 | Java | effieMoran/pelotero | /src/main/java/com/metodologia/sistemas/controller/FacturaController.java | UTF-8 | 3,411 | 2.25 | 2 | [] | no_license | package com.metodologia.sistemas.controller;
import com.metodologia.sistemas.entity.Factura;
import com.metodologia.sistemas.entity.Fiesta;
import com.metodologia.sistemas.entity.Pago;
import com.metodologia.sistemas.repository.FacturaRepository;
import com.metodologia.sistemas.service.imp.FacturaServiceImplementatio... | true |
ea7d3dcc6180187c73d9497a6be68ea1703ebd2d | Java | tanmle/SelJava | /HearingFusion/src/action/config/DataInstanceConfiguration.java | UTF-8 | 1,731 | 2.578125 | 3 | [] | no_license | package config;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
/**
* The instance element brings together all of the testbed components to fully define everything
* That a test needs to execute.
*
*/
public class DataInstanceConfiguration extends DataConfiguration
{
public String getUrl()
{
... | true |
da90d4890172d54163a63685bd88c8977e002f93 | Java | ravi9989/algo-ds | /topologicalSort.java | UTF-8 | 2,477 | 3.890625 | 4 | [] | no_license | import java.util.*;
class Graph{
int vertices;
List<Integer> adjacent[];
// *list is interface which is implemented by different classes like stack, liked list, Array, Vector
//?constructor
public Graph(int v) {
this.vertices = v;
adjacent = new ArrayList[v];
for(int i = 0;... | true |
16427acea19f8ca692e0bf941130e8b44abecd05 | Java | google-code/assembla-timetracker | /src/net/davidlauzon/assemblandroid/exceptions/AssemblaAPIException.java | UTF-8 | 1,098 | 2.796875 | 3 | [] | no_license | package net.davidlauzon.assemblandroid.exceptions;
/**
* Exception thrown by the AssemblaAPIAdapter when it receives an unexpected answer from the
* RestfulClient.
*
* For example : http status 422 Unprocessable Entity
*
* Another possible case could be raised by an UnsupportedEncodingException in
* ... | true |
9bed2c0e1ff18d097c8f91cb11339f635d2f8ec2 | Java | 1906jun10java/TheDungeonMasters | /P2/src/main/java/com/revature/controllers/ConditionsController.java | UTF-8 | 542 | 1.9375 | 2 | [] | no_license | package com.revature.controllers;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.revature.beans.Conditions;
@Controller
@RequestMapping("/conditions... | true |
87c19025477a940971c556fa0e2fa4d01047023a | Java | MohitSaluja/articles-rest-assignment | /src/main/java/com/practise/assignment/security/WebSecurityConfigurer.java | UTF-8 | 1,165 | 2.203125 | 2 | [] | no_license | package com.practise.assignment.security;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.... | true |
2a0ce5ff75957fea9b9a67249a8368c03ef703d8 | Java | avivfridman01/couponSystem | /src/coupon/dao/CustomerDAO.java | UTF-8 | 903 | 2.234375 | 2 | [] | no_license | package coupon.dao;
import coupon.beans.*;
import java.util.Set;
import system.exception.CouponSystemException;
public interface CustomerDAO {
void createCustomer (Customer customer) throws CouponSystemException ;
void removeCustomer (Customer customer) throws CouponSystemException ;
void updateCustomer (Customer ... | true |
8e31506be7bf8fcdb8f455afd8108d8671458c63 | Java | TimHeiszwolf/NBP_Java | /Controller.java | UTF-8 | 6,308 | 3.15625 | 3 | [
"MIT"
] | permissive | import java.io.*;
import java.util.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Controller {
Simulation currentSimulation;
ArrayList<Simulation> oldSimulations = new ArrayList<Simulation>();
Double trailTime = 0.0;
/*
* Initialises controler wi... | true |
4c29865a2d03b8b76bf0100b55ed1dff676dbb03 | Java | elpacoloco/sirutest | /src/main/java/com/madfeet/sirutest/objects/blocks/SiruPressurePlate.java | UTF-8 | 281 | 2.015625 | 2 | [] | no_license | package com.madfeet.sirutest.objects.blocks;
import net.minecraft.block.PressurePlateBlock;
public class SiruPressurePlate extends PressurePlateBlock {
public SiruPressurePlate(Sensitivity sensitivity, Properties properties) {
super(sensitivity, properties);
}
}
| true |
0aaa9021193d5e890a92746a4d05f33d84020d8d | Java | Draqneel/Java-and-Python-practice | /Task 1 (Codewars Two to One)/src/ru/ivmiit/Main.java | UTF-8 | 1,450 | 3.6875 | 4 | [] | no_license | package ru.ivmiit;
/**
* SPECIFICATION
* Take 2 strings s1 and s2 including only letters from ato z. Return a new sorted string, the longest possible,
* containing distinct letters,each taken only once - coming from s1 or s2.
* #Examples: ``` a = "xyaabbbccccdefww" b = "xxxxyyyyabklmopq" longest(a, b) -> "abcdefkl... | true |
2a33af5fdf03cf2efb72864f2a1a0811fbd45dd7 | Java | crasyrus/LogAnalyser | /src/main/java/de/siewarez/loganalyser/gui/timeline/CaseColorWrapper.java | UTF-8 | 1,362 | 2.15625 | 2 | [
"MIT"
] | permissive | /*
* | \ |
* | _ \ _` | _ \ \ _` | | | | (_-< -_) _|
* ____| \___/ \__, | _/ _\ _| _| \__,_| _| \_, | ___/ \___| _|
* ____/ ___/
*
* author: Klaus Sie... | true |
0718e7c60a7d0c8ebc7f65688f3057cd03f91ca9 | Java | zmdominguez/bug-configure-kotlin-compile | /app/src/main/java/com/zdominguez/sdksandbox/MainActivity.java | UTF-8 | 767 | 1.984375 | 2 | [] | no_license | package com.zdominguez.sdksandbox;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
import com.zdominguez.sdksandbox.databinding.ActivityMainBinding;
public clas... | true |
676e4c9dcef4eb6a7dbf380e0859ab386db63460 | Java | cosmin-robert/MuVi | /app/src/main/java/com/samaras/muvi/Backend/MovieInfo.java | UTF-8 | 1,084 | 2.65625 | 3 | [] | no_license | package com.samaras.muvi.Backend;
import android.graphics.Bitmap;
import java.util.ArrayList;
/**
* Created by apo on 11.05.2017.
*/
public class MovieInfo {
public String title;
public String description;
public String genres;
public String rating;
public Bitmap bitmap;
public boolean eq... | true |
a243886abeab02f08af8e7850e89afedff767321 | Java | batsulirh/DooBotJava | /src/main/java/com/doobot/database/TeamsDB.java | UTF-8 | 15,392 | 2.75 | 3 | [] | no_license | package com.doobot.database;
import com.doobot.entities.GameResult;
import com.doobot.entities.Match;
import com.doobot.entities.Team;
import com.doobot.services.TeamService;
import net.dv8tion.jda.api.entities.Guild;
import net.dv8tion.jda.api.entities.Member;
import org.sqlite.SQLiteErrorCode;
import org.sqlite.SQLi... | true |
913689a3a40111416af753cc9974188007806cd6 | Java | nuruliislam/LocalNews24-SimpleWebView- | /app/src/main/java/capsulestudio/biswanathnews24/MainActivity.java | UTF-8 | 9,105 | 1.976563 | 2 | [] | no_license | package capsulestudio.biswanathnews24;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.... | true |
4b1d6accd21ebf523307592555a6798b9efe8be1 | Java | jinwooyu/cs193a-programming-assignment-1 | /app/src/main/java/edu/stanford/cs193/tipcalculator/MainActivity1.java | UTF-8 | 1,753 | 2.984375 | 3 | [] | no_license | // Jin Woo Yu <jinwooyu@stanford.edu>
// TipCalculator Version 1 - This app allows user to calculate tips they should pay
// by inputting the price of the meal, as well as their satisfaction rates.
package edu.stanford.cs193.tipcalculator;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
im... | true |
a7277da7a54f6cfc4bf4455b706d2037a8f29796 | Java | sr677/it114-final-silvanaromero | /src/main/java/section2/State.java | UTF-8 | 847 | 2.765625 | 3 | [] | no_license | /**
*
*/
package section2;
/**
* @author Silvana
*
*/
public class State <C extends Capital, G extends Govenor> implements HasCapital<C>, HasGovenor<G>, HasName {
/**
*
*/
private String name;
private C capital;
private G govenor;
public State (String _name, C _capital, G _govenor)... | true |
4bbcc798351146f82a844eff3f54ae77f1e45ef9 | Java | whatafree/JCoffee | /benchmark/bigclonebenchdata_completed/8908943.java | UTF-8 | 1,040 | 2.8125 | 3 | [] | no_license |
class c8908943 {
public static String GetMD5SUM(String s) throws NoSuchAlgorithmException {
MyHelperClass MessageDigest = new MyHelperClass();
MessageDigest algorithm =(MessageDigest)(Object) MessageDigest.getInstance("MD5");
algorithm.reset();
algorithm.update(s.getBytes());
... | true |
cfd6a30fc5437ebb8e1a904f3fff162b24abe6d7 | Java | Gabrielcv98/grupo6Lab5 | /app/src/main/java/pe/pucp/tel306/firebox/IniciarSesion.java | UTF-8 | 3,724 | 2.21875 | 2 | [] | no_license | package pe.pucp.tel306.firebox;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
/**
* A simple {@link Fragment} subclass.
* Use the {@link Ini... | true |
b2461b51d17a0701c93e55c24c6a69a3eea4a43f | Java | Shenglei-Mao/risc-v-compiler | /step5/src/assembly/instructions/Instruction.java | UTF-8 | 4,270 | 3.0625 | 3 | [] | no_license | package assembly.instructions;
import java.util.HashSet;
import java.util.Set;
/**
* Superclass for all Instructions. Most fields do not have accessors
* because they are only used in toString methods used to emit instructions.
*/
public abstract class Instruction {
/*
* list of possible op codess
*/
public e... | true |
9a926602f32729e8b54045ac3a97fe4fed25ff0f | Java | MichalGuz/java-basics | /src/main/java/dependency_injection/journaldev/Executor.java | UTF-8 | 124 | 1.695313 | 2 | [] | no_license | package dependency_injection.journaldev;
public interface Executor {
void performMethodSend(String msg, String rec);
}
| true |
e128d155b8a6ce410fe8c404f3900aa1e8e3be95 | Java | ArtemisProjektZespolowy/Artemis | /src/java/src/DanePolaczenia.java | UTF-8 | 400 | 1.625 | 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 src;
public interface DanePolaczenia{
String username = "postgres";
String pass = "26!D$196eF85";
... | true |
2400ed545044ddc068dd0e58eda961eab34c59b0 | Java | viniciusufop/reactive-dynamic-api | /src/main/java/br/com/vfs/reactivedynamicapi/database/repository/EntityRepository.java | UTF-8 | 298 | 1.601563 | 2 | [] | no_license | package br.com.vfs.reactivedynamicapi.database.repository;
import br.com.vfs.reactivedynamicapi.database.model.EntityDataBase;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;
public interface EntityRepository extends ReactiveCrudRepository<EntityDataBase, String> {
}
| true |
7a8f21c2c9c69cc3981867d6f354c1230a282fde | Java | ArvinDing/competitive | /usaco/msquare.java | UTF-8 | 3,365 | 3.046875 | 3 | [] | no_license |
/*
ID: dingarv1
LANG: JAVA
TASK: msquare
*/
import java.io.File;
import java.io.FileReader;
import java.io.PrintWriter;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import java.util.TreeSet;
public class msquare {
public static ... | true |
a7080d2a740529ae40563d73969c9d6f75a83da3 | Java | LiPancheng/DSAStudy | /src/main/java/newIdea/FindOddCountNum.java | UTF-8 | 1,485 | 4.0625 | 4 | [] | no_license | package newIdea;
public class FindOddCountNum {
/**
* 在一个整型数组中,其中只有一个数出现奇数次,其余数出现偶数次,找到这个出现奇数次的数
*/
public int findNum(int[] arr){
int res = 0;
for (int v : arr) {
res ^= v;
}
return res;
}
/**
* 在一个整型数组中,有两个个数出现奇数次,其余数出现偶数次,打印这两个数
*
... | true |
2b33b77718a4e6e31b6d688dc66b82c2a69044f4 | Java | liushengGitHub/file_downloader | /src/main/java/liusheng/url/bilibili/Main1.java | UTF-8 | 1,010 | 2.671875 | 3 | [] | no_license | package liusheng.url.bilibili;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
/**
* 年: 2020 月: 04 日: 09 小时: 13 分钟: 41
* 用户名: LiuSheng
*/
public class Main1 {
public static void main(String[] args) throws IOException {
String file = "F:\\NodeProject\\file_downloade... | true |
699e407273c80f27325a87607ec900a220b6a538 | Java | thomsbg/qubic | /src/controller/ActionController.java | UTF-8 | 8,756 | 2.921875 | 3 | [] | no_license | package controller;
import java.awt.event.ActionEvent;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import javax.swing.AbstractAction;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing... | true |
ec7b71065635ec7e225ff61abdf5e4728fbc2680 | Java | aleksey-kochetkov/job4j | /part_3_001/2c_avito/src/main/java/e/BusinessLogic.java | UTF-8 | 5,196 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | package e;
import java.util.List;
import java.util.Map;
import java.util.Optional;
public class BusinessLogic {
private static final int LENGTH = 3;
private final Repository repository;
public BusinessLogic(Repository repository) {
this.repository = repository;
}
public void closeReposit... | true |
a256f796529af5a5d66920b858f277dcb0253d8e | Java | SUEP-Hy/Wisdom_EC_United-Labs | /后端代码/smartbuild/smart-admin/src/main/java/edu/suep/smart/admin/sevice/impl/StaffBiofeatureServiceImpl.java | UTF-8 | 1,628 | 2.125 | 2 | [] | no_license | package edu.suep.smart.admin.sevice.impl;
import java.util.List;
import edu.suep.smart.admin.sevice.StaffBiofeatureService;
import edu.suep.smart.core.page.MybatisPageHelper;
import edu.suep.smart.core.page.PageRequest;
import edu.suep.smart.core.page.PageResult;
import org.springframework.beans.factory.annotation.Au... | true |
81b9045425fc851aa09767e9970e0fde3707042a | Java | junhen/notification | /linearnotificationapplication/src/main/java/com/example/linearnotificationapplication/Listener.java | UTF-8 | 12,592 | 1.640625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | true |
2bb7bb13cc624a53f435208a42b0c59f994ef651 | Java | katlog/TestJava | /java-base-study/src/main/java/name/katlog/international/TestFormat.java | UTF-8 | 7,692 | 3.234375 | 3 | [] | no_license | package name.katlog.international;
import static org.junit.Assert.assertEquals;
import java.io.File;
import java.text.ChoiceFormat;
import java.text.DateFormat;
import java.text.MessageFormat;
import java.text.NumberFormat;
import java.text.ParseException;
import java.util.Date;
import java.util.GregorianCalendar;
im... | true |
a144a7d093d8242ac451e8fc806b2d982cacd85a | Java | mmacdonnacha/exercism.io-solutions | /java/Anagram/Anagram.java | UTF-8 | 1,047 | 3.3125 | 3 | [] | no_license | import java.util.List;
import java.util.stream.Collectors;
import java.util.Arrays;
public class Anagram {
private String originalWord;
public Anagram(String word){
originalWord = word;
}
public List<String> match(List<String> words){
return words.stream()
.filte... | true |
125b093e20119c536b4133665bf9e90798bee98b | Java | Aishu-ai/Java-Algorithms | /percolation/Percolation.java | UTF-8 | 3,502 | 3.5 | 4 | [] | no_license | import java.util.*;
public class Percolation extends QuickUnionUF{
//Array to track status either closed 'c' or open 'o' of the sites
private char[]status;
//Size of the grid i.e n
private int size;
//Parametrized constructor
public Percolation(int n){
super(n*n+2);//Creating an array of size n*n+2
//+2 as... | true |
6801a772a80a18ade89cec33093fa0f5c3377839 | Java | luoyanqiang/mybatis-generator | /src/test/java/com/hepai/admin/service/impl/SpaceTagServiceImplTest.java | UTF-8 | 647 | 1.742188 | 2 | [] | no_license | package com.hepai.admin.service.impl;
import com.hepai.admin.service.SpaceTagService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.Spring... | true |
df30040545c74e08ecd2bf0e7a2cdcef0a08ba0a | Java | bellmit/xn-htwt | /src/main/java/com/cdkj/loan/dao/IOverdueMenuDAO.java | UTF-8 | 290 | 1.929688 | 2 | [] | no_license | package com.cdkj.loan.dao;
import com.cdkj.loan.dao.base.IBaseDAO;
import com.cdkj.loan.domain.OverdueMenu;
//dao层
public interface IOverdueMenuDAO extends IBaseDAO<OverdueMenu> {
String NAMESPACE = IOverdueMenuDAO.class.getName().concat(".");
int update(OverdueMenu data);
}
| true |
0cb70f6be142809e77b16caa1a8ab58d6d216b36 | Java | loktevalexey/JD2017-02-20 | /src/by/it/radivonik/jd02_09/beans/ObjectFactory.java | UTF-8 | 1,744 | 2.203125 | 2 | [] | no_license | package by.it.radivonik.jd02_09.beans;
import javax.xml.bind.annotation.XmlRegistry;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the by.it.radivonik.jd02_09.beans.generate package.
* <p>An ObjectFactory allows you to programatically
* ... | true |
6c254f49e6c16bf4da86967c147d39d9453c67ee | Java | bulutluoz/batch30-POM | /src/test/java/tests/day19/C03_Raporlama.java | UTF-8 | 4,046 | 2.34375 | 2 | [] | no_license | package tests.day19;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.Select;
import org.testng.Assert;
import org.testng.annotations.Test;
import pages.AmazonPage;
import utilities.ConfigReader;
import utilities.Driver;
import... | true |