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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
5e1fbac0c51af1a6bcb938200bff0ec3ceddc8a4 | Java | SiddPatki/CodeGrind | /Sorting/QuickSort.java | UTF-8 | 1,564 | 4.21875 | 4 | [] | no_license | // Divide and Conquer Algorithm
// Chooses a Pivot and then partitions the array into left (elements less than Pivot) and right (elements greater than pivot) . Pivot goes in the middle which is its correct position although the left and right may not be sorted in itself.
import java.util.*;
class QuickSort{
public... | true |
969a2d3723916d738b5ab8048c354e00d14c0810 | Java | demirramazan/OCP8 | /OCA8-OCP8-PracticeTest/src/ch16/QX32.java | UTF-8 | 399 | 2.390625 | 2 | [] | no_license | package ch16;
public class QX32 {
class Player implements AutoCloseable {
@Override
public void close() throws RingException {
}
}
class RingException extends Exception {
public RingException(String message) {
}
}
public static void main(String[] args) {
try (Player p = null) {
throw new Excepti... | true |
76e3fa4f06dbc36b5adce0c7fd077946314c8865 | Java | smkumatela/Updated-PremierSoccerLeague | /src/test/java/za/ac/PremierSoccerLeague/domain/PremierSoccerLeagueTest.java | UTF-8 | 1,895 | 2.484375 | 2 | [] | no_license | package za.ac.PremierSoccerLeague.domain;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import za.ac.PremierSoccerLeague.conf.factory.PremierSoccerLeagueFactory;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Created by student on ... | true |
fb8b6de600dbc6cf292a04834127af7e6cbf133c | Java | DoctorOctopusTeam/SpringMVC-Project | /src/main/java/com/telerikacademy/projectattempt/web/CarController.java | UTF-8 | 1,173 | 2.546875 | 3 | [] | no_license | package com.telerikacademy.projectattempt.web;
import com.telerikacademy.projectattempt.models.Car;
import com.telerikacademy.projectattempt.service.CarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind... | true |
177571e481c54493c913f94aa99a264bdc3f6141 | Java | jeanbassan/Images | /Images-Core/src/main/java/com/andavin/images/data/DataManager.java | UTF-8 | 2,578 | 2.625 | 3 | [
"MIT"
] | permissive | /*
* MIT License
*
* Copyright (c) 2020 Mark
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, mer... | true |
a9bb751e9d24f1e93e738d6649e7075f154afdef | Java | saikasireddy/Playground | /Decimal to binary/Main.java | UTF-8 | 226 | 2.171875 | 2 | [] | no_license | import math
def decimal_to_binary(n):
binary = 0
i = 1
flag = 1
while(n != 0):
remainder = n % 2
n = int(n / 2)
binary = binary + remainder * i
i = i * 10
return binary
n = int(input())
print(decimal_to_binary(n)) | true |
24967294d4374a6d881a7b38d92b0954269dbdcd | Java | xabufr/janalyse | /src/com/mcd_composent_graph/auth/CommentaireGraph.java | UTF-8 | 4,186 | 2.515625 | 3 | [] | no_license | package com.mcd_composent_graph.auth;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FontMetrics;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Rectangle;
import java.util.LinkedList;
import com.preferences_mcd_logique.au... | true |
39151fefb59c5a0789326f0bb6af957b5ff2ed08 | Java | everton-rosario/tamandua | /modules/tamandua-persistence/src/main/java/br/com/tamandua/persistence/ArtistDiscographyId.java | UTF-8 | 1,676 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package br.com.tamandua.persistence;
// Generated 21/02/2010 23:04:42 by Hibernate Tools 3.2.4.GA
import javax.persistence.Column;
import javax.persistence.Embeddable;
/**
* ArtistDiscographyId generated by hbm2java
*/
@Embeddable
public class ArtistDiscographyId implements java.io.Serializable {
... | true |
7b7fca25977b61cb77107e25ae23bb114b1c23a2 | Java | marcostark/MPOO | /src/primeirava/aulas/_210518/model/Gerente.java | UTF-8 | 328 | 2.234375 | 2 | [] | no_license | package primeirava.aulas._210518.model;
public class Gerente extends Usuario{
public Gerente(String login, String senha) {
super(login, senha);
}
public void darDesconto() {}
// Implementar metodo toString
@Override
public String toString() {
// TODO Auto-generated method stub
return super.toString();... | true |
90c3485eace7832d01f02b016d79411c3bdc90f5 | Java | haminhngoc/Programming | /Olympic-2014/Phuc/PTIT124J/src/Main.java | UTF-8 | 1,734 | 2.96875 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import ... | true |
e34556b8ffb8c1a9d8f6d074224e01ef89d4dede | Java | booster085/java | /bg.softuni.java/src/homeworks/loops_methods/SumNumbersFromATextFile.java | UTF-8 | 674 | 3.375 | 3 | [] | no_license | package Homeworks.loops_methods;
import java.util.Scanner;
import java.io.File;
import java.io.FileNotFoundException;
public class SumNumbersFromATextFile {
private static final String FILEPATH = "text_files/InputNUmbers.txt";
public static void main(String[] args) {
File file = new File(FILEPATH);
Scann... | true |
b6d4f54d493a549f8c1fe30393fb8f3ab73fd3ff | Java | jaysheth1998/dpc-app | /dpc-api/src/main/java/gov/cms/dpc/api/resources/v1/BaseResource.java | UTF-8 | 2,364 | 1.984375 | 2 | [
"CC0-1.0"
] | permissive | package gov.cms.dpc.api.resources.v1;
import gov.cms.dpc.api.core.Capabilities;
import gov.cms.dpc.api.resources.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.hl7.fhir.dstu3.model.CapabilityStatement;
import javax.inject.Inject;
import javax.ws.rs.Path;
@Path("/v1")
@A... | true |
9a7c6467b51854b57c4f2a9b6e1ba409fe3ee862 | Java | kilaOoO/TinyRPC | /src/main/java/com/hbs/tinyrpc/registry/ServiceRegistry.java | UTF-8 | 346 | 2.125 | 2 | [] | no_license | package com.hbs.tinyrpc.registry;
/**
* 服务注册接口
* Created by bingsenh on 2019/11/21.
*/
public interface ServiceRegistry {
/**
* 注册服务名称与服务地址
*
* @param serviceName 服务名称
* @param serviceAddress 服务地址
*/
void register(String serviceName,String serviceAddress);
}
| true |
072ebdfb229e51bc6d639d0759965bd956d4c6c0 | Java | fangtianq/spring-boot-starter | /liquibase-spring-boot-starter/src/main/java/tk/fishfish/liquibase/dm/DmBooleanType.java | UTF-8 | 1,047 | 2.484375 | 2 | [] | no_license | package tk.fishfish.liquibase.dm;
import liquibase.database.Database;
import liquibase.datatype.DataTypeInfo;
import liquibase.datatype.DatabaseDataType;
import liquibase.datatype.core.BooleanType;
/**
* 达梦 boolean 适配
*
* @author 奔波儿灞
* @version 1.5.0
*/
@DataTypeInfo(name = "boolean", aliases = {"java.sql.Types... | true |
ad103cb5f677589817de67da3cbffbb1f218c1c2 | Java | tigersshi/com.pallasli.base | /poi/src/main/java/com/pallasli/base/poi/pdf/TestRuntime.java | UTF-8 | 744 | 2.34375 | 2 | [] | no_license | package com.pallasli.base.poi.pdf;
import java.io.IOException;
public class TestRuntime {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
// Runtime.getRuntime().exec("C:\\Program Files\\Internet
// Explorer\\IEXPLORE.EXE");
// Runti... | true |
1454ee89a2e4ab5dd27e236a8889ed17be10cc20 | Java | tangtaijia/hui | /src/main/java/com/hui/common/dao/impl/AnswerDaoImpl.java | UTF-8 | 1,663 | 1.84375 | 2 | [] | no_license | package com.hui.common.dao.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.hui.common.dao.IAnswerDao;
import com.hui.common.entity.Answer;
import com.hui.common.webservice.EntityView.AnswerEntityView;
public class AnswerDaoImpl extends AbstractBaseDao<Answer, Answer> implement... | true |
af091f0fb36aee066f3726e52b0796f6d5f78af8 | Java | shendadda/MicroService | /app/src/main/java/com/shenme/androiddemo/activity/shopping/ResultActivity.java | UTF-8 | 4,726 | 1.960938 | 2 | [] | no_license | package com.shenme.androiddemo.activity.shopping;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.ScrollView;
import android.widget.TextView;
import com.goog... | true |
e0a1fec4c2b19a6c24ffe5eeb34e58704eb662e8 | Java | arulnirai/MyExercises | /lab4/InheritanceImpl/AcountImpl.java | UTF-8 | 1,680 | 3.328125 | 3 | [] | no_license | //Author: Arul
package com.capgemini.lab4.InheritanceImpl;
import java.util.Scanner;
import org.apache.log4j.Logger;
import com.capgemini.lab4.Inheritance.Account;
import com.capgemini.lab4.Inheritance.CurrentAccount;
import com.capgemini.lab4.Inheritance.Person;
//import com.capgemini.lab4.Inheritance.Sav... | true |
6b26b51afbd1ff85301b9bd9e43854239372ed04 | Java | Fighter-zzp/second-kill-system | /second-kill-admin-7070/src/main/java/com/zzp/second/kill/admin/configure/WebSecurityConfigurer.java | UTF-8 | 4,297 | 2.15625 | 2 | [] | no_license | package com.zzp.second.kill.admin.configure;
import com.zzp.second.kill.admin.filter.FrontTokenAuthenticationFilter;
import com.zzp.second.kill.admin.filter.ImageCodeFilter;
import com.zzp.second.kill.admin.handler.CustomizeAuthenticationFailureHandler;
import com.zzp.second.kill.admin.handler.CustomizeAuthenticationS... | true |
2aac766f9a67eeada1eac485ecfae3ef501e0439 | Java | Rioudane/gestion_entreprise | /src/main/java/ma/ensa/infosat/gestion_entreprise/inheritance/IntituleDiplome.java | UTF-8 | 780 | 2.015625 | 2 | [] | no_license | package ma.ensa.infosat.gestion_entreprise.inheritance;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import ma.ensa.infosat.gestion_entreprise.base.BaseType;
import ma.ensa.infosat.gestion_entreprise.entity.Diplome;
import... | true |
cf5eaabcde73d3c549a5464de0fc6cb9aaf58057 | Java | Milon34/CodeForces | /Sport_Mafia.java | UTF-8 | 1,042 | 3.171875 | 3 | [] | no_license | package Codeforces;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Sport_Mafia {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n, k;
n = sc.nextInt();
k = sc.nextInt();
// List<Long> l = new Arra... | true |
92a278e88a72db370d32c5b6080b11d26da5445a | Java | Miven666/springboot-learning | /springboot-annotation/src/main/java/com/miven/springboot/annotation/AnnotationEffectsListener.java | UTF-8 | 1,949 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package com.miven.springboot.annotation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.context.event.EventListener;
import org.springfra... | true |
9ab0811bee2434454c55399eb28dd912f07f3410 | Java | jusbrasil/mirror | /src/main/java/net/vidageek/mirror/DefaultAccessorsController.java | UTF-8 | 1,178 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | /**
*
*/
package net.vidageek.mirror;
import net.vidageek.mirror.dsl.AccessorsController;
import net.vidageek.mirror.get.DefaultGetterHandler;
import net.vidageek.mirror.get.dsl.GetterHandler;
import net.vidageek.mirror.invoke.DefaultInvocationHandler;
import net.vidageek.mirror.invoke.dsl.InvocationHandler;
import... | true |
223c99ed579a8cc9e6b25335691d5876a9a0e38a | Java | x69872/DreamBoot | /src/main/java/com/daydream/boot/dreamboot/controller/UserController.java | UTF-8 | 2,645 | 2.21875 | 2 | [] | no_license | package com.daydream.boot.dreamboot.controller;
import com.daydream.boot.dreamboot.entity.User;
import com.daydream.boot.dreamboot.service.UserService;
import com.daydream.boot.dreamboot.utils.CommonResponse;
import com.daydream.boot.dreamboot.utils.ResponseUtil;
import com.daydream.boot.dreamboot.utils.Servic... | true |
ba1b67afa5d76d0e26fa2a9bbf7cd94c2ba604bc | Java | EvelynHC13/T1_JOYCE | /T1_JOYCE/src/T1_Capitulo10/ScentedCandle.java | UTF-8 | 1,283 | 2.71875 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package T1_Capitulo10;
/**
*
* @author evely
*/
public class ScentedCandle {
private Escence scent;
public Escence ... | true |
900b1322d7c3ca47f04fe8fcd3fd4352bbb8204c | Java | Digrol/Denom | /trunk/lib/libDenomCrypt/src/org/denom/crypt/ec/Fp/custom/Secp224r1.java | UTF-8 | 8,583 | 2.421875 | 2 | [
"MIT-0",
"MIT"
] | permissive | package org.denom.crypt.ec.Fp.custom;
import java.math.BigInteger;
import java.util.Arrays;
import org.denom.crypt.ec.*;
import static org.denom.Ex.MUST;
// P-224
public class Secp224r1 extends CustomFpCurve
{
private static final int ARR_LEN = 7;
private static final int ARR_LEN2 = 14;
private static final long... | true |
e029cbfe774bf39729ec1332cae2782a0cc5b6be | Java | BroderickHigby/java_projects | /intro_java/DateSecondTry/src/OverloadingDemo.java | UTF-8 | 705 | 3.90625 | 4 | [] | no_license | /*Program: OverloadingDemo
*Programmer: Broderick Higby
*Date: 3-22-2015
*Description: Test Javas use of overloading with sending three different formats for the same date .*/
public class OverloadingDemo {
public static void main(String[] args) //Start of class
{
//Takes the three formats overloaded from t... | true |
f9f4839293bef0020501f67efd142d70c915aa0e | Java | seaway-john/kit | /src/main/java/com/seaway/kit/task/SyncTask.java | UTF-8 | 291 | 1.796875 | 2 | [] | no_license | package com.seaway.kit.task;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
@Slf4j
@Component
public class SyncTask {
@Async
public void clean() {
log.info("Clean Task");
}
}
| true |
51dd97a7db4492023366377dd657f49fcd57f12d | Java | bonghaha/mission | /mission/src/main/java/com/remarkablesoft/mission/user/model/impl/UserServiceImpl.java | UTF-8 | 1,402 | 2.25 | 2 | [] | no_license | package com.remarkablesoft.mission.user.model.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.remarkablesoft.mission.user.model.UserService;
import com.remarkablesoft.mission.user.vo.UserInfo;
@Service
public class UserServiceImp... | true |
4052d486dfbded4b17e18a14c54be3a478e08624 | Java | Louanna/Bright | /Lib_SC/src/com/movit/platform/sc/module/imagesbucket/activity/PicGridPickedActivity.java | UTF-8 | 4,569 | 1.765625 | 2 | [] | no_license | package com.movit.platform.sc.module.imagesbucket.activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClick... | true |
f3228f2cb26fbee8fa875bb9ab28adefea40be40 | Java | AnilWesley/Pulsus | /app/src/main/java/com/applications/pulsus/models/PaymentRegistration.java | UTF-8 | 3,513 | 2.234375 | 2 | [] | no_license | package com.applications.pulsus.models;
import java.util.List;
public class PaymentRegistration {
/**
* status : true
* registration_details : [{"name":"ANIL","conf_id":"6036","reg_id":"388051","country":"india","email":"anil@gmail.com","phone":"123466","amount":"799","currency":"gbp","paystatus":"pen... | true |
485e02671776530a62a52969a73048ca91290376 | Java | ZihengSun/suis4j | /src/main/java/com/eviware/soapui/support/registry/AbstractRegistry.java | UTF-8 | 2,724 | 1.984375 | 2 | [
"MIT"
] | permissive | /*
* SoapUI, Copyright (C) 2004-2016 SmartBear Software
*
* Licensed under the EUPL, Version 1.1 or - as soon as they will be approved by the European Commission - subsequent
* versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the Licence.
* You may obtain a cop... | true |
6d2308bc5d2d6966509ab9207958673c771dc4ef | Java | Lcpcarlos/CursoAndroid | /app/src/main/java/com/example/pokertentativafinal/ui/JogadorDaEtapa/MainListaJogadorDaEtapaActivity.java | UTF-8 | 17,053 | 1.695313 | 2 | [] | no_license | package com.example.pokertentativafinal.ui.JogadorDaEtapa;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.ListView;
import androidx.... | true |
776a1c581b64ee9d5bff381774dd4b948b68218f | Java | voltek62/h2o-3 | /h2o-core/src/main/java/water/fvec/CNAXDChunk.java | UTF-8 | 2,261 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | package water.fvec;
import water.H2O;
import water.util.UnsafeUtils;
import java.util.Iterator;
//NA sparse double chunk
public class CNAXDChunk extends CNAXIChunk {
protected CNAXDChunk(int len, int valsz, byte [] buf){super(len,valsz,buf);}
// extract fp value from an (byte)offset
protected final double... | true |
fadb1d18fe09f6e9a41ffba9ac83fd4a0918ada9 | Java | shahidfoy/BlueJAnalysisTools | /src/main/edu/msudenver/Command.java | UTF-8 | 294 | 2.09375 | 2 | [] | no_license | package edu.msudenver;
/**
* Object which extend Command can allow the Artisan Code Quality Extension to invoke operations
* from Tools without knowing any of tools' interfaces.
*
* @author Artisan Software
* @version 0.1.0
*/
public abstract class Command {
public abstract void execute();
}
| true |
27e3159c362d3f755f8db0cff17d5e6d62df3782 | Java | ClanWolf/C3-Starmap_Cerberus | /io.nadron.client/src/main/java/io/nadron/client/communication/ReconnectPolicy.java | UTF-8 | 3,281 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | package io.nadron.client.communication;
import io.nadron.client.app.Session;
import io.nadron.client.event.Event;
import io.nadron.client.event.EventHandler;
import io.nadron.client.event.Events;
import io.nadron.client.util.LoginHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.lang.invoke... | true |
e7252c1a3fc4e386a31434515008d7968423bbac | Java | ysm7663-jn/Class-Java | /06_class/src/ex04_constuctor/Ex05_Student.java | UTF-8 | 1,165 | 4.15625 | 4 | [] | no_license | package ex04_constuctor;
import java.util.Arrays;
class Student {
String name;
String school;
int score[];
double average;
boolean isPass;
Student(String name, String school){
this.name = name;
this.school = school;
}
void doExam() {
score = new int[3];
int sum = 0;
for(int i = 0; i < sco... | true |
d6d7f649d449c18433b37ba0ec727a9fc13e502b | Java | BAM89/spring-social-media | /twitter/src/main/java/com/mtb/twitter/entities/Tweet.java | UTF-8 | 1,603 | 1.9375 | 2 | [] | no_license | package com.mtb.twitter.entities;
import java.sql.Timestamp;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import... | true |
e74d0e4201ef2119593fea1bde5823c03081606c | Java | sillasHead/migration-spring-to-quarkus | /src/main/java/sillas/SpringWebWithJPA/repositories/PersonRepository.java | UTF-8 | 693 | 2.421875 | 2 | [] | no_license | package sillas.SpringWebWithJpa.repositories;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import sillas.SpringWebWithJpa.entities.Person;
public interface PersonRepo... | true |
2f33c91e3904e1937847a7d695d0d40199c82f59 | Java | emenumobile/emenu | /app/src/main/java/com/example/ferinadwifitri/emenu/MenuActivity.java | UTF-8 | 2,809 | 2.1875 | 2 | [] | no_license | package com.example.ferinadwifitri.emenu;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import com.example.ferinadwifitri.emenu.Adapter.MenuAdapter;
import com.exa... | true |
6a40b5b39a229cc3a062e1f67d2f4fa355912a2f | Java | aratikaushik/programming-practice | /src/leetCode/Solution.java | UTF-8 | 1,167 | 3.515625 | 4 | [] | no_license | package leetCode;
import java.util.Arrays;
public class Solution {
public boolean containsDuplicate(int[] nums) {
Arrays.sort(nums);
for(int i=1;i<nums.length;i++){
if(nums[i] == nums[i-1])
return true;
}
return false;
}
public boolean isAnagram(String s, String t) {
if(s.l... | true |
907c3164a0342762c78b12133d3e73eebdb67c04 | Java | smarcu/puck-central-android | /PuckCentral/app/src/main/java/no/nordicsemi/puckcentral/db/DBOpenHelper.java | UTF-8 | 991 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package no.nordicsemi.puckcentral.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import org.droidparts.persist.sql.AbstractDBOpenHelper;
import no.nordicsemi.puckcentral.models.Action;
import no.nordicsemi.puckcentral.models.Puck;
import no.nordicsemi.puckcentral.models.Rule;
pub... | true |
475190b74017a9073db08e3649273c555b59aa4a | Java | lhhsiao/XSL2CSV | /XSL2CSV/src/XLS2CSV.java | UTF-8 | 15,344 | 2.375 | 2 | [] | no_license | import java.io.BufferedWriter;
import java.io.File;
import java.io.FileFilter;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.... | true |
1ba991e9f7610d933193884b5672cc04d3e2c080 | Java | Al3xeil/Coding-Kata_Spring | /src/main/java/com/fitness/login/repository/RoleRepository.java | UTF-8 | 422 | 1.695313 | 2 | [] | no_license | package com.fitness.login.repository;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import com.fitness.login.model.user.Role;
import com.fi... | true |
f3fc7caa356e2b0c0b6ebd927f02f500049c1be6 | Java | k9a75333/eooker | /src/main/java/com/modules/sys/dao/UserDao.java | UTF-8 | 749 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | package com.modules.sys.dao;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.modules.sys.entity.Classroom;
import com.modules.sys.entity.LackSeat;
import com.modules.sys.entity.User;
@Repository
public interface UserDao {
public Integer insertUser(User user);
p... | true |
140ff8baebb8d7d6c49822f0dedacd78ee6ac31d | Java | zhongxingyu/Seer | /Diff-Raw-Data/2/2_897810fe411deeae8135109e250424d91aa66170/Economy/2_897810fe411deeae8135109e250424d91aa66170_Economy_s.java | UTF-8 | 7,110 | 2.859375 | 3 | [] | no_license | package com.earth2me.essentials.api;
import com.earth2me.essentials.Essentials;
import com.earth2me.essentials.User;
import com.earth2me.essentials.Util;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.text.DecimalFormat;
import org.bukk... | true |
726144be1df5ffa552dccf8c045c3ce5e58c4d74 | Java | Wenmeilin/pixConsumer-java | /using-java-jaxws/src/com/technicise/COCTMT080000UVSpecimen.java | UTF-8 | 15,730 | 1.75 | 2 | [
"MIT"
] | permissive |
package com.technicise;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.an... | true |
2a5c61ba69d155a19493d50409cc29558c696a86 | Java | moutainhigh/project-exchange | /tui5/src/com/throne212/tui5/action/AllianceAction.java | UTF-8 | 220 | 1.664063 | 2 | [] | no_license | package com.throne212.tui5.action;
import com.throne212.tui5.biz.BaseBiz;
public class AllianceAction extends BaseAction {
private BaseBiz baseBiz;
public String execute() {
return "alliance";
}
}
| true |
c093eb8b3dff961e9ad3b8b6318ed869583fe2f6 | Java | Naramsim/vulnerability-assessment-tool | /lang-java/src/test/java/com/sap/psr/vulas/java/test/ConfigKey.java | UTF-8 | 1,408 | 2.609375 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | package com.sap.psr.vulas.java.test;
import java.io.Serializable;
import java.util.NoSuchElementException;
/**
* Real-world example (modified).
*/
@SuppressWarnings("nls")
public enum ConfigKey implements ConfigurationKey {
MEMBER_MANAGEMENT(Boolean.class, "featureMemberManagementEnabled", "true"),
MEMBER_METAD... | true |
44aeb44e162ae280cbdec2adf1077707c8c898eb | Java | a4227139/testNew | /src/com/normal/testBitSet.java | GB18030 | 570 | 3.265625 | 3 | [] | no_license | package com.normal;
import java.util.BitSet;
public class testBitSet {
public static void main(String[] args) {
int[] array = new int[] { 1, 2, 3, 77, 0, 32 , 3 };
BitSet bitSet = new BitSet(6);//ΪBitSetײlong[]ʵ֣ԲдͶҪһlong64λ
// bitmap
for (int i = 0; i < array.length; i++) {
bitSet.set(array[i]);//ʼbitse... | true |
7be16c4506fe45c43cb9fa06fa8f35efc5d09dc1 | Java | ZenboDeveloper/ZenboExample1 | /RobotDevSample/src/main/java/com/asus/robotdevsample/MotionActivity.java | UTF-8 | 3,392 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package com.asus.robotdevsample;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import com.asus.robotframework.API.RobotCallback;
import com.asus.r... | true |
59a9463539ff928bc4fcd846a5518e553bff9bb7 | Java | lizhen376751/allDays | /src/main/java/com/dudu/lizhen/socket/ServerListen.java | UTF-8 | 830 | 2.96875 | 3 | [] | no_license | package com.dudu.lizhen.socket;
import javax.swing.*;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
/**
* Created by Administrator on 2017/11/24.
*/
public class ServerListen extends Thread {
@Override
public void run(){
ServerSocket serverSocket = nu... | true |
b0b01db7f01f4f5e991b21c73b3513ee728af81b | Java | CornevanDijk/cirqwizard | /src/main/java/org/cirqwizard/layers/Layer.java | UTF-8 | 1,821 | 2.765625 | 3 | [] | no_license | /*
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 3 as published by
the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warrant... | true |
a5bca03df9be785af9d0da6c3064e5d76e0a0671 | Java | vinogor/hight_prog_school | /src/main/java/algo/stack/PostFixNotation.java | UTF-8 | 3,065 | 4.03125 | 4 | [] | no_license | package algo.stack;
// Постфиксная запись выражения -- это запись, в которой порядок вычислений определяется не скобками и приоритетами,
// а только позицией элемента в выражении. Например, в выражениях разрешено использовать целые числа и операции + и * .
// Тогда выражение (1 + 2) * 3 запишется как 1 2 + 3 * (вер... | true |
135324470f775b88e20d075e93a17c119eda60e4 | Java | vinireis/api-client-pet-be | /src/main/java/br/com/petz/apiclientpet/api/dto/form/PetForm.java | UTF-8 | 1,485 | 2.515625 | 3 | [] | no_license | package br.com.petz.apiclientpet.api.dto.form;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import br.com.petz.apiclientpet.model.Client;
import br.com.petz.apiclientpet.model.Pet;
import br.com.petz... | true |
4d561a42019510152245ad916ea50ac5a0b8a107 | Java | jcm951301435/petition-manage-back | /src/main/java/com/ssy/petition/entity/cal/CalculateEntity.java | UTF-8 | 1,289 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package com.ssy.petition.entity.cal;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;
import java.util.Map;
/**
*
* 计算实体
* @author: jcm
* @date: 2020/08/26
*/
public class CalculateEntity<T extends ParamsEntity> {
private MultipartFile file;
private List<T> list;
pri... | true |
d9d300f85bccc138b677c515b083c23d81d35f17 | Java | albuquerquecesar/egravos_mobile | /src/br/com/eagravos/mobile/modelos/UsoCelular.java | UTF-8 | 1,781 | 2.1875 | 2 | [] | no_license | package br.com.eagravos.mobile.modelos;
// Generated 02/06/2014 08:44:54 by Hibernate Tools 3.6.0
import br.com.eagravos.mobile.interfaces.IModel;
/**
* UsoCelular generated by hbm2java
*/
public class UsoCelular extends IModel<UsoCelular> implements java.io.Serializable {
private Integer id;
privat... | true |
931d869764b18fd973416a7a1ff0e9a5015e3c25 | Java | manonmai/flight-reservation-system1 | /flight-reservation-system/src/com/cg/flightreservationsystem/service/FlightOperations.java | UTF-8 | 420 | 1.820313 | 2 | [] | no_license | package com.cg.flightreservationsystem.service;
import java.util.List;
import com.cg.flightreservationsystem.dto.RouteDTO;
import com.cg.flightreservationsystem.exception.EmptyListException;
public interface FlightOperations {
public boolean modify(String routeId,String source, String destination, boolean s... | true |
d84822ca2c69fb5c715466f8791b2373a2aba0ff | Java | Yun-K/Cluedo | /src/test/MyTest.java | UTF-8 | 1,288 | 2.46875 | 2 | [] | no_license | /**
* Project Name:Final_cluedo
* File Name:MyTest.java
* Package Name:test
* Date:6:19:29 pm
* Copyright (c) 2020, bluemobi All Rights Reserved.
*
*/
package test;
import org.junit.Test;
import game.Board;
/**
*
* Description: <br/>
*
* @author Yun & Ruiyang & Andree & Gimani
*/
@SuppressWarnings("java... | true |
81f1f49c77504a78b66c9aa380b5c4268fa025af | Java | Goku1999/June-Leetcode-Challenge | /Week4/SumRootToLeafNumbers.java | UTF-8 | 1,895 | 3.71875 | 4 | [] | no_license | /*
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.
An example is the root-to-leaf path 1->2->3 which represents the number 123.
Find the total sum of all root-to-leaf numbers.
Note: A leaf is a node with no children.
Example:
Input: [1,2,3]
1
/ \
2 3... | true |
bac74ab7b2f3b4ccca413ab9453e2a9f191fbad0 | Java | Mehran-at/OCA-JavaSE8 | /src/com/oca/inheritance/fortyfour/two/AntMan.java | UTF-8 | 145 | 1.617188 | 2 | [] | no_license | package com.oca.inheritance.fortyfour.two;
import com.oca.inheritance.fortyfour.one.Shrinkable;
public class AntMan implements Shrinkable {
}
| true |
1bfa281e20f74e4ebd6a7d716d24304733ebe5f4 | Java | henrihakkarainen/projects | /Java_II/TimeInspector.java | UTF-8 | 1,211 | 3.640625 | 4 | [] | no_license | /*
*
* TimeInspector - ohjelma
*
* Lausekielinen ohjelmointi II
*
* Harjoitus 2 - Tehtävä 6
*
* Henri Hakkarainen (Hakkarainen.Henri.J@student.uta.fi)
*
*/
public class TimeInspector {
// Operaatio vastaanottaa kolme parametria: h = tunnit, m = minuutit ja
// s = sekunnit. Operaatio palauttaa totuu... | true |
be8b80f18248b0561f8704da92cc94cacb9f7418 | Java | robjg/oj-doc | /src/main/java/org/oddjob/tools/doclet/utils/GenericIncludeTagProcessor.java | UTF-8 | 999 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package org.oddjob.tools.doclet.utils;
import com.sun.source.doctree.DocTree;
import com.sun.source.doctree.UnknownInlineTagTree;
import org.oddjob.doc.util.DocUtil;
import org.oddjob.tools.includes.IncludeLoader;
import javax.lang.model.element.Element;
/**
* Process Oddjob XML resource tag.
*
* @au... | true |
f9d03611a8c253464daa98effe4adc8872633005 | Java | SigurdThorlund/tanks-multiplayer-game | /src/main/java/model/Explosion.java | UTF-8 | 986 | 2.953125 | 3 | [] | no_license | package model;
import utils.Vector;
import static model.Model.EXPLOSION_TIME_MS;
import static model.Model.TIMESTEP_MS;
public class Explosion {
private Vector position;
private double finalBlastRadius;
private double currentBlastRadius;
private int numSteps = (int) (EXPLOSION_TIME_MS / TIMESTEP_MS);... | true |
ec46944e9f5138d59d345a53034c7ae0140b37b8 | Java | jeanboydev/Web-Demo | /src/main/java/com/jeanboy/web/demo/domain/repository/RoleRepository.java | UTF-8 | 554 | 2.015625 | 2 | [] | no_license | package com.jeanboy.web.demo.domain.repository;
import com.jeanboy.web.demo.base.BaseRepository;
import com.jeanboy.web.demo.domain.RoleContract;
import com.jeanboy.web.demo.domain.entity.RoleEntity;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
@Tr... | true |
fdb0cdfc3beb67b25226ff72b3f9f55805b57ac1 | Java | vespa-engine/vespa | /container-search/src/test/java/com/yahoo/vespa/streamingvisitors/StreamingVisitorTest.java | UTF-8 | 18,838 | 1.710938 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.streamingvisitors;
import com.yahoo.document.fieldset.AllFields;
import com.yahoo.document.select.parser.ParseException;
import com.yahoo.documentapi.*;
import com.yahoo.documentapi.messageb... | true |
ba17f8e28470d3a9604888cad1d9c7f1e05217bf | Java | lichao20000/WEB | /src/main/java/com/linkage/module/gtms/stb/resource/dao/BSSStatisticsDAO.java | UTF-8 | 675 | 2.109375 | 2 | [] | no_license | package com.linkage.module.gtms.stb.resource.dao;
import java.util.List;
import java.util.Map;
import com.linkage.module.gtms.stb.resource.dto.BSSStatisticsDTO;
public interface BSSStatisticsDAO {
/**
* 根据零配置BSS工单实体查寻想关的工单的sql语句
*/
String getSQL(BSSStatisticsDTO dto);
/**
* 根据零配置BSS工单实体查寻想关的工单的条数
*/
i... | true |
8fba51d9df61bdb5c5423ae776c10b22f0d9cc51 | Java | qinbeibei/learning-java-project | /src/net/my/learning/ch10/TestEx26.java | UTF-8 | 343 | 2.796875 | 3 | [] | no_license | package net.my.learning.ch10;
public class TestEx26 {
public static void main(String[] args) {
OuterQ oq = new OuterQ(1);
R r = new R(oq);
}
}
class OuterQ {
OuterQ(int i) {
System.out.println("Q() i=" + i);
}
class InnerQ {
}
}
class R extends OuterQ.InnerQ {
R(OuterQ q) {
q.super();
System.ou... | true |
224534d20139b58675d153b0058f3ce75d22db6d | Java | Huangqiankun/MyHqkFix | /app/src/main/java/com/hqk/my/fix/MyApplication.java | UTF-8 | 409 | 1.703125 | 2 | [] | no_license | package com.hqk.my.fix;
import android.app.Application;
import android.content.Context;
import com.hqk.fix.MyHqkFixUtil;
/**
* @创建者 HQK
* @创建时间 2019/10/14 17:00
* @描述
*/
public class MyApplication extends Application {
@Override
protected void attachBaseContext(Context base) {
MyHqkFixUtil.getIn... | true |
eefffd79882d95cc3c50674f33adcf4b3b784569 | Java | qinhaonan/weibo | /weiSwift/src/main/java/com/wenming/weiswift/app/common/entity/Question.java | UTF-8 | 9,207 | 1.578125 | 2 | [] | no_license | package com.wenming.weiswift.app.common.entity;
import java.util.List;
public class Question {
/**
* feed_id : 9
* uid : 1
* type : postimage
* app : public
* publish_time : 1499323559
* is_del : 0
* from : 0
* comment_count : 0
* repost_count : 0
* comment_all... | true |
a6d048b5750560f79633060064fdf7ad140f6357 | Java | Milon34/CodeForces | /Box_Fitting.java | UTF-8 | 1,400 | 3.3125 | 3 | [] | no_license | package Codeforces;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Box_Fitting {
static class RealScanner {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = ne... | true |
760a014b4e67d0f37428a66ad652244cd887c240 | Java | Firdana-ac/PBO_4423_A11.2019.11671 | /pertemuan-9/praktikum/src/main/java/Segitiga.java | UTF-8 | 711 | 3 | 3 | [] | no_license | public class Segitiga extends BangunDatar{
double sisi2;
double sisi3;
//meminta panjang sisi kedua
public double getSisi2(){
System.out.print("Masukkan sisi 2 = ");
sisi2=komponenBangunDatar.nextFloat();
return sisi2;
}
//meminta panjang sisi ketiga
public double... | true |
9a34414ba17fe57815bfa5e043cbf15b26535c69 | Java | Akanemiku/DesignPattern | /src/factory/AudiA8.java | UTF-8 | 239 | 2.578125 | 3 | [
"MIT"
] | permissive | package factory;
public class AudiA8 implements Car {
@Override
public void startUp() {
System.out.println("AudiA8 Start Up");
}
@Override
public void run() {
System.out.println("AudiA8 Run");
}
}
| true |
7923b39d8da126d8ed067fe8744fca90669201c3 | Java | HugoLuna5/MusicPlayer | /jamsMusicPlayer/src/main/java/com/jams/music/player/ListViewFragment/ListViewCardsAdapter.java | UTF-8 | 12,741 | 1.890625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2014 Saravan Pantham
*
* 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... | true |
05443f1f3e0fbe236b08ffe828f32b97abb2600e | Java | DagaBienkowska/MiniShop | /src/main/java/com/dagabienkowska/servlets/ProductsListServlet.java | UTF-8 | 1,171 | 2.296875 | 2 | [] | no_license | package com.dagabienkowska.servlets;
import com.dagabienkowska.DAO.Impl.ProductJsonDaoImpl;
import com.dagabienkowska.DAO.Spec.ProductDao;
import com.dagabienkowska.shop.Product;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.serv... | true |
df24f4e5237835afc671787d2c191a46d5a878a0 | Java | onshape/helenus | /src/main/java/net/helenus/core/operation/SelectOperation.java | UTF-8 | 12,097 | 1.617188 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2015 The Helenus 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 ap... | true |
3a1ae5eee2e37b9200bee3b83a9ff964bacc6b15 | Java | nofearnohappy/alps_mm | /vendor/mediatek/proprietary/operator/OP01/packages/apps/RCS/PublicAccount/src/com/mediatek/rcs/pam/provider/PAProvider.java | UTF-8 | 59,123 | 1.703125 | 2 | [
"Apache-2.0"
] | permissive | package com.mediatek.rcs.pam.provider;
import android.content.ContentProvider;
import android.content.ContentProviderOperation;
import android.content.ContentProviderResult;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.Context;
import android.content.OperationApplica... | true |
b612dc6e2a15027268f23fcd3e71a8cf6056c487 | Java | noorishhassan/Ultimate_TicTacToe | /Effects.java | UTF-8 | 1,599 | 3.109375 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ultimatetictactoe;
import java.awt.Color;
import javax.swing.JButton;
import javax.swing.JPanel;
/**
*
* @author noorishha... | true |
5f1dc356abcda40286c84b33eb092d4550f8e7df | Java | bart4223/Uniplay | /src/Uniplay/Kernel/NGGameEngineDefinition.java | UTF-8 | 555 | 2.109375 | 2 | [] | no_license | package Uniplay.Kernel;
import Uniplay.Base.NGUniplayComponentDefinition;
import java.util.concurrent.CopyOnWriteArrayList;
public class NGGameEngineDefinition extends NGUniplayComponentDefinition {
protected CopyOnWriteArrayList<NGGameEngineDefinitionModuleItem> Modules;
public NGGameEngineDefinition() {
... | true |
cd1b7ddaa00c2fc70205c34e2d0a3d9ff5efc8bd | Java | ciencialab/works | /breadwinner/src/main/java/org/ciencialabart/breadwinner/Dinner.java | UTF-8 | 2,389 | 2.46875 | 2 | [] | no_license | package org.ciencialabart.breadwinner;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.T... | true |
1a9f86770bc0947f7f8ffbdf7cdeaa7a63b3bff9 | Java | Jannickvb/Wonderen-1001-nacht | /src/control/VideoHandler.java | UTF-8 | 1,942 | 2.453125 | 2 | [] | no_license | package control;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.io.File;
import javax.swing.JFrame;
import uk.co.caprica.vlcj.component.EmbeddedMediaPlayerComponent;
import uk.co.caprica.vlcj.player.MediaPlayer;
import uk.co.caprica.vlcj.runtime.RuntimeUtil;
import com.sun.jna.NativeL... | true |
7417eef944c1f8a61cc98ed18b3e0d23ca7f9fe3 | Java | johny1122/Java-OOP | /Ex2/src/SpaceShip.java | UTF-8 | 5,278 | 2.8125 | 3 | [] | no_license | import java.awt.Image;
import oop.ex2.*;
import javax.swing.*;
/**
* The API spaceships need to implement for the SpaceWars game. It is your decision whether SpaceShip.java
* will be an interface, an abstract class, a base class for the other spaceships or any other option you will
* choose.
* @author Jonathan B... | true |
de1267c04cacf9981aaef8901104692ff26e7cb0 | Java | xiaodin1/precious | /src/main/java/com/precious/model/User.java | UTF-8 | 1,689 | 2.03125 | 2 | [] | no_license | package com.precious.model;
import java.io.Serializable;
import blade.plugin.sql2o.Table;
/**
* User对象
*/
@Table(value = "t_user", PK = "uid")
public class User implements Serializable {
private static final long serialVersionUID = 1L;
private Integer uid;
//登录名
private String login_name;... | true |
e86a9a0af0dd9ae8c6b1939f1f7a36030ee3a2a1 | Java | ezgisiir/politicallyConnected | /service-provider/service-provider-common/src/main/java/service/provider/common/request/SaveConfigurationRequestDto.java | UTF-8 | 835 | 1.953125 | 2 | [] | no_license | package service.provider.common.request;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import service.provider.common.dto.AbstractRequestDto;
import service.provider.common.dto.ConfigurationDto;
@JsonIgnoreProperties(ignoreUnknown = true)
public class SaveConfigurationRequestDto extends Abstract... | true |
436b82f7a4d42775aa4d9c1505d7028a3dd04f79 | Java | riking/ProtMod | /src/main/java/com/wlan222/ProtMod/listeners/PlayerQuitListener.java | UTF-8 | 542 | 2.46875 | 2 | [] | no_license | package com.wlan222.ProtMod.listeners;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerQuitEvent;
import com.wlan222.ProtMod.ProtMod;
public class PlayerQuitListener implements Listener {
private ProtMod pl;
public PlayerQuitListener(ProtMo... | true |
56eccafd0e11cefd57fc8b6183636374a8597c09 | Java | ttuca123/med-pocos | /src/br/com/med/pocos/model/Hidrometro.java | UTF-8 | 1,124 | 1.875 | 2 | [] | no_license | package br.com.med.pocos.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.Ma... | true |
344719067c560578e33c606d001c3b871cb9fab1 | Java | azurite-Y/Fluorite | /fluorite-beans/src/main/java/org/zy/fluorite/beans/factory/interfaces/processor/BeanDefinitionRegistryPostProcessor.java | UTF-8 | 1,019 | 2.328125 | 2 | [] | no_license | package org.zy.fluorite.beans.factory.interfaces.processor;
import org.zy.fluorite.beans.factory.interfaces.BeanDefinitionRegistry;
import org.zy.fluorite.core.exception.BeansException;
/**
* @DateTime 2020年6月19日 下午1:34:33;
* @author zy(azurite-Y);
* @Description 扩展到标准BeanFactoryPostProcessor
* ... | true |
4d9d4f6e16d421ca2c9a42d90bfbaef886f1c24f | Java | chanhO-Yoo/15_GUI | /src/kh/java/gui/swing/component/ImageIconTest.java | UTF-8 | 1,467 | 3.234375 | 3 | [] | no_license | package kh.java.gui.swing.component;
import java.awt.BorderLayout;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
pu... | true |
3611761ab83d6c177815476a5ab5847e62077e47 | Java | huachengzhou/vote | /WEB-INF/classes/com/cn/vite/dao/InfoDao.java | GB18030 | 1,122 | 2.375 | 2 | [] | no_license | package com.cn.vite.dao;
import java.sql.SQLException;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.BeanHandler;
import com.cn.vite.admin.Info;
import com.cn.vite.mode.DBCP_DataSource;
/**
* ͶƱIPʱ
*
*/
public class InfoDao {
private QueryRunner runner = null;
/**... | true |
d1b3f200ada25c79995d9d7d498e74d48535cc52 | Java | 1eooyang/Surgeon | /surgeon-core/src/main/java/com/surgeon/weaving/core/interfaces/ReplacerImpl.java | UTF-8 | 722 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | package com.surgeon.weaving.core.interfaces;
import com.surgeon.weaving.core.TargetHandle;
/**
* The implements of {@link Replacer}
*
* @param <T> The return value of {@link Replacer#replace(Object[])}
*/
public class ReplacerImpl<T> implements Replacer<T> {
@Override
public void before(Object[] params) ... | true |
1b7ca5c796644efe7a61adb594f66cd379e9de54 | Java | fossabot/Fingertip | /fingertip/src/main/java/com/praszapps/fingertip/model/di/module/ActivityBuilder.java | UTF-8 | 362 | 1.695313 | 2 | [] | no_license | package com.praszapps.fingertip.model.di.module;
import com.praszapps.fingertip.view.FingertipActivity;
import dagger.Module;
import dagger.android.ContributesAndroidInjector;
@Module
public abstract class ActivityBuilder {
@ContributesAndroidInjector(modules = FingertipActivityModule.class)
abstract Finger... | true |
a6c3fc800da15bc319aede3564b15a937ab60612 | Java | hoangquy591/niiit_qlsv | /src/main/java/com/niit/qlsv/dao/repository/UserRepository.java | UTF-8 | 273 | 1.960938 | 2 | [] | no_license | package com.niit.qlsv.dao.repository;
import com.niit.qlsv.dao.entities.UserEnt;
import org.springframework.data.jpa.repository.JpaRepository;
public interface UserRepository extends JpaRepository<UserEnt, Long> {
UserEnt findUserByUsername(String username);
}
| true |
0bf53577b44dc3a7d392fe8f020ad38eeeb2eb68 | Java | eclipseeclipse/agg-pay | /agg-trade/src/main/java/com/bwton/agg/trade/data/entity/TxTradeEntity.java | UTF-8 | 1,983 | 1.796875 | 2 | [] | no_license | package com.bwton.agg.trade.data.entity;
import lombok.Data;
import java.util.Date;
/**
* @author DengQiongChuan
* @date 2019-12-03 20:42
*/
@Data
public class TxTradeEntity {
/** 交易流水号 */
private String txTradeNo;
/** 原交易流水号 */
private String orgTxTradeNo;
/** 聚合支付平台商户号 */
private String ... | true |
c7eef8e77842545c55719ee078027038c63d959b | Java | caoyiqing/spring-study | /src/main/java/com/cyq/ext/MyBeanDefinitonRegistryPostProcessor2.java | UTF-8 | 1,189 | 2.09375 | 2 | [] | no_license | package com.cyq.ext;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor;
imp... | true |
034b819855247430381cb2e182bbae1fcab91477 | Java | javaBin/JavaZone2017_Android | /app/src/main/java/no/javazone/androidapp/v1/archframework/model/data/EventData.java | UTF-8 | 448 | 2.421875 | 2 | [] | no_license | package no.javazone.androidapp.v1.archframework.model.data;
import java.util.ArrayList;
public class EventData {
private ArrayList<EventCard> mCards = new ArrayList<>();
private String mTitle;
public EventData() {}
public void addEventCard(EventCard card) {
mCards.add(card);
}
publi... | true |
02fa25f119c639766865bb88f267fdea5376049d | Java | JavierEspinMegias/android_custon_layouts | /app/src/main/java/com/android/customviews/DialogoEntradaSalida.java | UTF-8 | 2,348 | 2.96875 | 3 | [] | no_license | package com.android.customviews;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;... | true |
f7ad46f686bf2ee3f6b5f9e622025b64bd0318d8 | Java | xjtuafds/crawler | /src/com/hundsun/jinyb/action/ImageAction.java | GB18030 | 1,347 | 2.6875 | 3 | [] | no_license | package com.hundsun.jinyb.action;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.util.Map;
import com.jinyb.crawler.util.ImageUtil;
import com.sun.image.codec.jpeg.JPEGCodec;
import com.sun.image.codec.jpeg.JPEGIm... | true |
cd24c3e7a0883b52e4a376c2d3cd39c04ce04b93 | Java | jinzhoubai/JavaStudy | /src/ch10/Event.java | UTF-8 | 469 | 2.890625 | 3 | [] | no_license | package ch10;
/**
* @Auther:baijinzhou
* @Date:2020/9/2 09:46
* @Description:
*/
public abstract class Event {
private long eventTime;
protected final long delayTime;
public Event(long delayTime){
this.delayTime=delayTime;
start();
}
public void start(){
eventTime=Syst... | true |
004e8979505e838da04226daabaa51e75c325e82 | Java | AccCreate/EoP | /Test Programs/src/cakeLie.java | UTF-8 | 823 | 3.640625 | 4 | [] | no_license |
public class cakeLie {
public static void main (String[] args) {
System.out.println(answer("11111"));
}
// O(1) memory
public static int answer(String s) {
if(s == null || s.length() == 0) return 0;
int lengthS = s.length();
int count = 1;
int tempCount = 1;
// Max size of pattern can only be half o... | true |
37e137a52f24bc3fe5bba184ba1921babd58637e | Java | mengtest/gameserver-7 | /src/com/game/module/activity/ActivityTask.java | UTF-8 | 1,973 | 2.28125 | 2 | [] | no_license | package com.game.module.activity;
import com.game.params.activity.ActivityTaskVO;
/**
* Created by lucky on 2017/11/17.
*/
public class ActivityTask {
private int id;
private int resetType;
private boolean rewardFlag;
private int activityId;
private int state;
private ActivityTaskCdt cond;
... | true |