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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
24cbdb20ab2760e10f708f898d8c7b7dc56d1b16 | Java | yichengjie/LearningNotes | /spring-aop-study/src/test/java/com/yicj/aop2/test/Test.java | UTF-8 | 673 | 1.921875 | 2 | [] | no_license | package com.yicj.aop2.test;
import com.yicj.aop2.config.Appconfig;
import com.yicj.aop2.dao.IndexDao;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
//https://blog.csdn.net/baomw/article/details/84262006
public class Test {
public static void main(String[] args) {
Annotat... | true |
cb867d301de182c79c00dd44f0b243611f57c9c0 | Java | FranklyCui/Cinderella | /src/main/java/com/cn/service/impl/StoresServiceImpl.java | UTF-8 | 880 | 2.125 | 2 | [] | no_license | package com.cn.service.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.cn.dao.StoresMapper;
import com.cn.model.Stores;
import com.cn.service.StoresService;
@Service("stService")
public class StoresServiceImpl implements StoresService {
@Reso... | true |
3f2a4034b0bb12bfbce17230085993624a089b66 | Java | JxSun/MotionDetect | /app/src/main/java/com/motiondetect/detector/data/analysis/MotionAnalyst.java | UTF-8 | 2,417 | 2.34375 | 2 | [] | no_license | package com.motiondetect.detector.data.analysis;
import android.util.Log;
import com.motiondetect.detector.base.IBackgroundWorker;
import com.motiondetect.detector.base.IReleasable;
import com.motiondetect.detector.data.bluetooth.ArduinoReceiver;
import com.motiondetect.detector.model.MotionModel;
import com.motionde... | true |
b1d5a01426ed36e62fd13cc47154b6510e0a01df | Java | maizesix92/school | /CohortSessionWeek3/src/filenames/FilenamesMain.java | UTF-8 | 1,001 | 3.21875 | 3 | [] | no_license | package filenames;
import java.io.IOException;
import java.util.ArrayList;
public class FilenamesMain {
public static void main(String[] args) {
// Adding filenames
ArrayList<String> fileNames = new ArrayList<>();
fileNames.add("D:\\SUTD\\Term 5\\Software Construction\\week 3\\file1.txt");
fileNames.add("D:... | true |
8ed628cee25dc80451aaf3813b3ed61ceada5559 | Java | zneil123/gene-info-WebServiceProject | /src/Service/crossSession/SearchService.java | UTF-8 | 531 | 2.234375 | 2 | [] | no_license | package Service.crossSession;
import org.apache.axis2.context.MessageContext;
import org.apache.axis2.context.ServiceGroupContext;
public class SearchService {
public String findByName(String name) {
// 第1步:获得key-value对中的value
MessageContext mc = MessageContext.getCurrentMessageContext();
ServiceGroupContext ... | true |
8acf8bb454e42366bd016d67c9f0dcdc752868cb | Java | hhugoac/AlgoritmosBasicosPOO | /src/com/ejerciciosoop/misclases/AppAlbergue.java | UTF-8 | 1,497 | 3 | 3 | [] | no_license | package com.ejerciciosoop.misclases;
import com.ejerciciosoop.misclases.Mascota;
import java.util.Scanner;
//subida a git
public class AppAlbergue {
public static void main(String[] args) {
Mascota firulais=new Mascota();
Mascota objPerro2=new Mascota("2P2","Celeste","Pug","Obesa"); //Asignacion por con... | true |
2d4bba7d609a36f8194f0e75a436e41d75049dc2 | Java | Geidalaodicha/qhbx | /src/com/rh/core/plug/search/client/IndexLogMgr.java | UTF-8 | 1,593 | 2.078125 | 2 | [] | no_license | package com.rh.core.plug.search.client;
import org.apache.commons.lang.exception.ExceptionUtils;
import com.rh.core.base.Bean;
import com.rh.core.serv.ParamBean;
import com.rh.core.serv.ServDao;
import com.rh.core.serv.bean.SqlBean;
import com.rh.core.util.Constant;
/**
* 增加索引失败记录
* @author yangjy
*
*/
public c... | true |
31ccf3f209057f4da06fba790b15c5568b236dec | Java | Sailor-Saturn/Hexagonal-Architecture-Spring-Boot-Postgres-JPA-JDBC-Monolith | /projects/server/src/main/java/com/arqsoft/server/Infrastructure/AdapterPersistanceJPA/Entity/DeliveryScheduleAggregate/DaysOrdersEntity.java | UTF-8 | 1,936 | 2.34375 | 2 | [] | no_license | package com.arqsoft.server.Infrastructure.AdapterPersistanceJPA.Entity.DeliveryScheduleAggregate;
import com.arqsoft.server.Domain.Model.OrderAggregate.Order;
import com.arqsoft.server.Infrastructure.AdapterPersistanceJPA.Entity.DayScheduleAggregate.DayScheduleEntity;
import com.arqsoft.server.Infrastructure.AdapterPe... | true |
3110005664c1e7f9f1e29143853bf1591d31e752 | Java | cz67998/datastructure | /src/main/java/com/wangzhou/datastructure/linkedlist/solution/JudgeBalanceTree.java | UTF-8 | 588 | 3.265625 | 3 | [] | no_license | package com.wangzhou.datastructure.linkedlist.solution;
/**
* Created by IDEA
* author:wangzhou
* Date:2019/4/22
* Time:13:53
**/
public class JudgeBalanceTree {
public boolean isBalanced(TreeNode root) {
return calDepth(root) >= 0;
}
private int calDepth(TreeNode root) {
if (root == ... | true |
9ce3bc19f1ab519c83b6e622a475a529622557e9 | Java | bayaluprantya/e-auction | /src/main/java/com/wipro/auction/bid/impl/DefaultBidder.java | UTF-8 | 3,353 | 3 | 3 | [] | no_license | package com.wipro.auction.bid.impl;
import com.wipro.auction.Bid;
import java.util.logging.Logger;
/**
* Default Bidder implementation
*/
public class DefaultBidder implements com.wipro.auction.bid.Bidder {
/**
* logger
*/
private static final Logger LOG = Logger.getLogger(DefaultBidder.class.get... | true |
c915bafa3b15a12b475221e7d8e383d218de906f | Java | saivarunkoyyana/CapstoneStageTwo | /app/src/main/java/com/example/acer/capstonestagetwo/ModelClass/MovieRating.java | UTF-8 | 809 | 2.34375 | 2 | [] | no_license | package com.example.acer.capstonestagetwo.ModelClass;
public class MovieRating {
String id;
String moviesuggestion;
String title;
public MovieRating() {
}
public MovieRating(String id, String moviesuggestion, String title) {
this.id = id;
this.moviesuggestion = moviesuggestio... | true |
ce22c59cb59ece5015286e9219668cac6ce828be | Java | zrg1215/SelectImage | /choosephoto/src/main/java/com/hp/choosephoto/utils/ToastUtils.java | UTF-8 | 2,074 | 2.21875 | 2 | [] | no_license | package com.hp.choosephoto.utils;
import android.content.Context;
import android.os.Build;
import android.widget.Toast;
import com.hp.choosephoto.finals.DebugConfig;
/**
* desc:ToastUtils
* Author: zrg
* Date: 2017-02-17 09:41
*/
public class ToastUtils {
private Context mContext;
Toast mToast;
pub... | true |
4f5624f017d80642f05a93113d21026cfe0764a7 | Java | wallnerryan/FL_HAND | /src/main/java/net/floodlightcontroller/virtualnetwork/VirtualNetworkWebRoutable.java | UTF-8 | 1,555 | 1.882813 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2013, Big Switch Networks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | true |
1c93c95e7e6012b90d48e708d30dbf6b8ee2f16d | Java | carlov20/oyster-card-problem | /java-impl/src/main/java/org/oyster/card/MainApplication.java | UTF-8 | 2,011 | 2.765625 | 3 | [] | no_license | package org.oyster.card;
import lombok.extern.slf4j.Slf4j;
import org.oyster.card.dto.Customer;
import org.oyster.card.dto.JourneyType;
import org.oyster.card.dto.Station;
import org.oyster.card.dto.Zone;
import org.oyster.card.service.CustomerJourney;
import org.oyster.card.service.CustomerJourneyImpl;
import org.oys... | true |
91b6e3427aec9ed3ea86294762e37b3794d134eb | Java | AlderCape/Economics | /src/com/aldercape/internal/economics/ui/CustomTextField.java | UTF-8 | 630 | 2.5 | 2 | [] | no_license | package com.aldercape.internal.economics.ui;
import javax.swing.JTextField;
public class CustomTextField<T> extends JTextField {
private static final long serialVersionUID = -5871629493420093865L;
@Override
public void setText(String text) {
throw new RuntimeException("Should call setValue");
}
@Override
p... | true |
a3a04ae2eccda911fc6988ca9c33feec4e9dcc16 | Java | landerixx/SystemyOperacyjne | /SOzad3/src/cwik3/Odwolanie.java | UTF-8 | 805 | 2.59375 | 3 | [] | no_license | package cwik3;
import java.io.Serializable;
public class Odwolanie implements Serializable {
@Override
public String toString() {
return "[" + wartosc + "] "+ "bit: "+ bit2szansy ; //"("+czasSprowadzenia+")";
}
int wartosc;
int bit2szansy;
int czasSprowadzenia;
public int getCzasSprowadzenia() {
return cza... | true |
ef7deb8485531471339c067eb38bf3d7667b97ec | Java | lijian12388806/wps | /src/com/liveneo/plat/web/action/LoginAction.java | UTF-8 | 15,985 | 1.898438 | 2 | [] | no_license | package com.liveneo.plat.web.action;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.Strin... | true |
e1134ee20cfec053f4ee538601810bce628d4e56 | Java | Lokts0311/csci-3310-project | /app/src/main/java/edu/cuhk/csci3310/project/EventListAdapter.java | UTF-8 | 6,600 | 2.234375 | 2 | [] | no_license | package edu.cuhk.csci3310.project;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Vi... | true |
251cfa37e4a2e357c7602d3ec94b3aa2c6643e9c | Java | absolutesingh/CSInterviewPrepJuly | /Java Workspace/julyinterviewprep/src/july13/Solution.java | UTF-8 | 673 | 3.53125 | 4 | [] | no_license | package july13;
public class Solution {
static boolean isPrimeRam(int n)
{
if(n<=1) return false;
if(n==2) return true;
for(int i=2;i<n-1;i++)
{
if(n%i==0) return false;
}
return true;
}
static boolean isPrimeSham(int n)
{
if(n<=1) return false;
if(n==2) return true;
for(int i=2;i<=Math.sqrt(... | true |
e10fee6319a7e8ce44f4d0cdab52cf8cd547823a | Java | w3woody/j2oc | /J2OC/src/com/chaosinmotion/j2oc/vm/code/op/GetFieldOp.java | UTF-8 | 815 | 2.3125 | 2 | [] | no_license | /* GetFieldOp.java
*
* Created on Feb 6, 2010 by William Edward Woody
*/
package com.chaosinmotion.j2oc.vm.code.op;
import com.chaosinmotion.j2oc.vm.data.constants.Constant;
import com.chaosinmotion.j2oc.vm.data.constants.FMIConstant;
public class GetFieldOp extends Op
{
private Op pThis;
private FMICon... | true |
caa3836b087d6d608cfd1fd83f655ad446e83ff9 | Java | jihoonk-1116/JavaOOP-Class | /project3/src/project3/CandleList.java | UTF-8 | 1,059 | 3.828125 | 4 | [] | no_license | //CandleList abstract class
package project3;
public abstract class CandleList {
protected CandleNode first;
protected CandleNode last;
protected int size = 0;
public CandleList() {
CandleNode cn = new CandleNode();
first = cn;
last = cn;
size = 0;
}
public void append(Candle c) { //add ... | true |
916fac5b8e8c34a7e7e25a03d192fcfe6dade007 | Java | sunlight3d/Aptech | /C2009i/WCD/24-06-2022/de06/src/java/servlets/Question2Servlet.java | UTF-8 | 2,286 | 2.46875 | 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 servlets;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Hashtable;
import javax.servlet.S... | true |
53d87266292fc827b3c517b05cb95089d3a1b5e9 | Java | saifnalband/JAVA_OOPS | /codes/Lec27/Lec27/Demo278/pack1/Demo278A.java | UTF-8 | 227 | 2.8125 | 3 | [] | no_license | package pack1;
/* Example 1: protected modifier */
public class Demo278A {
protected int rollNo = 555;
void msg(){
// protected doesn't work
System.out.println("Class A: Hello Java!" + rollNo);
}
} | true |
1ecb56e5d59c2a48fb7f65b964439d30a767b73e | Java | KobeGong/TasksApp | /app/src/main/java/defpackage/cle.java | UTF-8 | 140 | 1.789063 | 2 | [] | no_license | package defpackage;
/* renamed from: cle reason: default package */
/* compiled from: PG */
interface cle {
void e();
void f();
}
| true |
f95ddc66ea4db1fbab7ee3f5dd81b8042d6d9649 | Java | poojakudav309/Ticket-Management-System- | /Ticket Management/src/test/AddTicketTest.java | UTF-8 | 2,811 | 2.375 | 2 | [] | no_license | package test;
import org.junit.*;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.Select;
public class AddTicketTest {
WebDriver driver;
@Before
public void openAddTicketPage() throws InterruptedExce... | true |
248c49e8dd07be2dd5f904c5e1bd8cd0f456a639 | Java | johnandrui/java8Demo | /src/main/java/com/john/www/main/completableFuture/CompletableFuture1.java | UTF-8 | 1,506 | 3.296875 | 3 | [] | no_license | package com.john.www.main.completableFuture;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
public class CompletableFuture1 {
public static void main(String[] args) {
//无返回值的Future,默认使用ForkJoin线程池
/* CompletableFut... | true |
546e7526d1f49879bccb6601e96b713bbc8e9e26 | Java | mcouto82/grupomult-api | /src/main/java/br/com/oficina/domain/Carro.java | UTF-8 | 3,679 | 2.21875 | 2 | [] | no_license | package br.com.oficina.domain;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.springframework.data.elasticsearch.annotations.Document;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.io.Serializable;
import java.time.LocalDa... | true |
423ba202ee7cca975689fd21662f4fc623b8fc1b | Java | RakinShafqatChowdhury/MovieApp | /app/src/main/java/com/paperfly/movieapp/Network/MovieApi.java | UTF-8 | 597 | 1.929688 | 2 | [] | no_license | package com.paperfly.movieapp.Network;
import com.paperfly.movieapp.Model.MovieList;
import com.paperfly.movieapp.Model.Search;
import com.paperfly.movieapp.Model.SearchedMovies;
import java.util.List;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
//?i=tt... | true |
651909f2784ca6d45b00240a5d1f3050c4fbf7ed | Java | maximecharron/airchitecture | /src/main/java/ca/ulaval/glo4003/air/domain/flight/FlightQueryBuilder.java | UTF-8 | 873 | 2.25 | 2 | [] | no_license | package ca.ulaval.glo4003.air.domain.flight;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Optional;
public interface FlightQueryBuilder {
FlightQueryBuilder isGoingTo(String airport);
FlightQueryBuilder isDepartingFrom(String airport);
FlightQueryBuilder isLeavingAfterOrOn(Lo... | true |
1266d1bd2c61b5d5ca267102e4c81cdb8dcf6dea | Java | choquidownn25/Plantilla-Android | /app/src/main/java/com/example/plantilla/sqllite/activity/MainActivityPais.java | UTF-8 | 4,152 | 2.34375 | 2 | [] | no_license | package com.example.plantilla.sqllite.activity;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Paint;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.design.widget.Floating... | true |
6ba29bcada5283258a73898714f9ec265d0d1313 | Java | corock/jx | /spring-boot/spring-boot-mysite/src/main/java/com/corock/mysite/config/WebConfig.java | UTF-8 | 4,031 | 2.078125 | 2 | [] | no_license | package com.corock.mysite.config;
import java.nio.charset.Charset;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.List;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;
import org.s... | true |
04f39959fe7ff871fb7ab8b154f30c7068474985 | Java | phwd/quest-tracker | /hollywood/com.oculus.horizon-Horizon/sources/X/C07160rJ.java | UTF-8 | 2,313 | 1.742188 | 2 | [] | no_license | package X;
import android.os.Bundle;
import android.view.View;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityNodeInfo;
import androidx.core.view.accessibility.AccessibilityNodeInfoCompat;
import androidx.viewpager.widget.ViewPager;
/* renamed from: X.0rJ reason:... | true |
1846449b39cc410dc10976779ddcf33013d6eece | Java | 0jinxing/wechat-apk-source | /com/tencent/mm/plugin/mmsight/segment/VideoSegmentUI$12.java | UTF-8 | 1,768 | 1.609375 | 2 | [] | no_license | package com.tencent.mm.plugin.mmsight.segment;
import android.widget.Toast;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ab;
import java.util.concurrent.CountDownLatch;
final class VideoSegmentUI$12
implements c.a
{
VideoSegmentUI$12(VideoSegmentUI paramVid... | true |
a2f3e1441966e966f805c08f4e6c9c2b58113432 | Java | alinursu/Smart-Booking | /backend/src/main/java/com/bfourclass/smartbooking/user/UserService.java | UTF-8 | 7,319 | 2.140625 | 2 | [] | no_license | package com.bfourclass.smartbooking.user;
import com.bfourclass.smartbooking.email.EmailService;
import com.bfourclass.smartbooking.hotel.HotelModel;
import com.bfourclass.smartbooking.hotel.HotelRepository;
import com.bfourclass.smartbooking.hotel.json.HotelJSON;
import com.bfourclass.smartbooking.requests.ResponseEr... | true |
f1230e0dabd41eb831312d04a0b69138230c5161 | Java | zhoux738/JSE | /tools/ide/eclipse/plugin/src/info/julang/ide/editors/scanning/FontStyle.java | UTF-8 | 530 | 2.375 | 2 | [] | no_license | package info.julang.ide.editors.scanning;
import info.julang.ide.themes.PluginColor;
public enum FontStyle {
KEYWORD(PluginColor.KEYWORD, true),
COMMENT(PluginColor.COMMENT, false),
LITERAL(PluginColor.LITERAL, false),
REGEX(PluginColor.REGEX, false)
;
private FontStyle(PluginColor color, boolean isBold) {... | true |
f108dc7a25dcbad00667e44441cd702be4737a15 | Java | kay66668/subject | /src/main/java/org/java/dao/LeaveOfficeMapper.java | UTF-8 | 430 | 1.875 | 2 | [] | no_license | package org.java.dao;
import org.apache.ibatis.annotations.Mapper;
import org.java.entity.LeaveOffice;
@Mapper
public interface LeaveOfficeMapper {
int deleteByPrimaryKey(Integer id);
int insert(LeaveOffice record);
int insertSelective(LeaveOffice record);
LeaveOffice selectByPrimaryKey(Integer id)... | true |
0c0dae9e9fc68f40b3fb75d2099b94e2f922de9c | Java | sayalip22/Student_Result_Management_In_Java | /src/studentHome.java | UTF-8 | 26,721 | 2.109375 | 2 | [] | no_license |
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.*;
import java.sql.Statement;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nb... | true |
1598498b19180c8c167c1e90cba3a8c74825235d | Java | D3Dall/ProjetJava | /ProjetJava/src/gestionfichier/FichierCSV.java | UTF-8 | 698 | 3 | 3 | [] | no_license | package gestionfichier;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Scanner;
public abstract class FichierCSV implements BaseDeDonnees{
protected File path;
public FichierCSV(String path) {
this.path=new File(path);
}
public FichierCSV(File path) {
... | true |
5e4579a477c4c8d4370a4e85e73d73cddd20adfe | Java | mrfawy/enigma-yarn | /src/main/java/com/tito/enigma/stream/StreamCombiner.java | UTF-8 | 1,249 | 2.78125 | 3 | [
"Apache-2.0",
"MIT"
] | permissive | package com.tito.enigma.stream;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.List;
import com.tito.enigma.component.Util;
public class StreamCombiner {
public ByteBuffer combine(ByteBuffer input, List<ByteBuffer> machineMapping, boolean reversed) {
if(input.position()!=0){
... | true |
334784f90d16ad6a815cb16ae4276b07b7a75dde | Java | nemehecat123/JAVAA------ | /Loterija.java | UTF-8 | 1,364 | 3.5 | 4 | [] | no_license | import java.util.Random;
import java.util.Scanner;
public class Loterija {
public static void main(String []args) {
Random random = new Random();
int random1 = random.nextInt(10);
int random2 = random.nextInt(10);
int random3 = random.nextInt(10);
Scanner input = new Scanner(... | true |
49719af108cbdf612199ed205940d1268b2cf585 | Java | dualapp/appowner | /AppOwnner/src/com/appowner/model/AssetCategory.java | UTF-8 | 2,053 | 2.28125 | 2 | [] | no_license | package com.appowner.model;
import java.io.Serializable;
import javax.persistence.Cacheable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
imp... | true |
93c5b9ae81fcf01e963d34a4954971b83901839e | Java | cerijerome/ceri | /ceri-common/src/test/java/ceri/common/function/FluentBehavior.java | UTF-8 | 952 | 2.65625 | 3 | [] | no_license | package ceri.common.function;
import static ceri.common.test.AssertUtil.assertEquals;
import static ceri.common.test.AssertUtil.assertThrown;
import org.junit.Test;
import ceri.common.test.Captor;
public class FluentBehavior {
@Test
public void shouldApplyConsumer() {
Captor.OfInt capturer = Captor.ofInt();
Fl... | true |
1a8a580cf8f29b838cfb6b1aa10138f137838fa4 | Java | sceners/sdloader | /org.sdloader.launcher/src/org/sdloader/launcher/Activator.java | UTF-8 | 2,867 | 2.109375 | 2 | [] | no_license | package org.sdloader.launcher;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.debug.core.DebugEvent;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.IDebugEventSetListener;
import org.eclipse.debug.core.ILaunch;
import org.... | true |
d92ddf9089e553695465df1e117c9fc799677d7e | Java | fujaba/NetworkParser | /src/test/java/de/uniks/networkparser/test/model/util/FullMessageCreator.java | UTF-8 | 843 | 2.453125 | 2 | [
"MIT"
] | permissive | package de.uniks.networkparser.test.model.util;
import de.uniks.networkparser.interfaces.SendableEntityCreator;
import de.uniks.networkparser.test.model.FullMessage;
public class FullMessageCreator implements SendableEntityCreator {
@Override
public String[] getProperties() {
return new String[] { FullMessage.PR... | true |
4318051ff71599f097fa21c7544879a11fc90447 | Java | sylar2019/meAndroidLibs | /common/src/main/java/me/android/library/common/store/IStoreService.java | UTF-8 | 552 | 2.03125 | 2 | [] | no_license | package me.android.library.common.store;
import java.util.List;
import me.java.library.common.Identifiable;
import me.java.library.common.service.Serviceable;
/**
* 实体管理接口
*
* @param <T>
* @param <ID>
* @author sylar
*/
public interface IStoreService<T extends Identifiable<ID>, ID> extends Serviceable {
l... | true |
d3360cd6c1e04ce6ec94273f9f76dfaf81f462e3 | Java | mobilemaster128/firebaseRealtimechat | /app/src/main/java/com/anonymous/messaging/adapters/ItemListingRecyclerAdapter.java | UTF-8 | 7,730 | 2.328125 | 2 | [] | no_license | package com.anonymous.messaging.adapters;
import android.content.Context;
import android.graphics.Color;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com... | true |
ac976ed8693d46b50cbb0e8734b28db4892b112d | Java | jihyoun14/VendingMachine | /src/homework/COFFEE.java | UHC | 808 | 3.453125 | 3 | [] | no_license | package homework;
//name, price, numOfPurchased, numOfStock
public class COFFEE {
protected String Name; //̸
protected int Price; //
protected int numOfPurchased = 0; //ȸ
protected int numOfStock = 10; //
public COFFEE(String name, int price) {
this.Name = name; // = {"AMERICANO", "ESPRESSO", "... | true |
b15495b4c46d090cdf385b3fc3dcac74df4102a7 | Java | liuqiang12/workflow-dev | /workflow-rest/src/test/java/com/workflow/rest/RestApplicationTest.java | UTF-8 | 1,190 | 1.914063 | 2 | [] | no_license | package com.workflow.rest;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTempl... | true |
c921bca0ff412c3a9eae9ad11db29f6a18e1f56f | Java | VaibhawPandey/interview | /src/com/competitiveCodes/VPCodingBlocks/DynamicProgramming/EditDistanceProblem.java | UTF-8 | 999 | 3.265625 | 3 | [
"Apache-2.0"
] | permissive | package com.competitiveCodes.VPCodingBlocks.DynamicProgramming;
/*
* Reference :- https://www.youtube.com/watch?v=UKxWcCRPZmQ
* */
public class EditDistanceProblem {
public static void main(String args[]){
String input="cast",output="cats";
int inpLength=input.length();
int outLength=out... | true |
7e07c9114ab89127176fe8f77b437764000a7e4d | Java | JiedaokouWangguan/leetcode | /day6_3/Question645.java | UTF-8 | 492 | 2.5 | 2 | [] | no_license | public class Question645{
public int[] findErrorNums(int[] nums){
int[] nums1 = new int[nums.length+1];
int[] result = new int[2];
for(int i = 0;i<nums.length;i++){
nums1[nums[i]] += 1;
if(nums1[nums[i]] == 2)
result[0] = nums[i];
}
for... | true |
32c105d6896d8fd508a392f5eb9304657e287f97 | Java | beebit-sec/beebit-cpabe-sdk | /java/tw/edu/au/csie/ucan/beebit/dec.java | UTF-8 | 800 | 2.984375 | 3 | [
"Apache-2.0"
] | permissive | package tw.edu.au.csie.ucan.beebit;
class dec {
public static void main(String[] args) {
if(args.length < 4) {
System.out.printf("Usage: dec [pk] [sk] [ct] [pt]\n");
System.out.printf("pk: path to public key\n");
System.out.printf("sk: path to secret key\n");
System.out.printf("ct: path to encrypted fi... | true |
984b708ad11a532715bd9a6f6fbd7a040187891e | Java | dnddlchrh/-Data-structure-2018-2 | /EqualsEx.java | UHC | 659 | 3.78125 | 4 | [] | no_license | package day0530;
class Point2{
int x,y;
public Point2(int x,int y){this.x=x;this.y=y;}
public boolean equals(Object obj){
Point2 p=(Point2)obj;///ü obj point Ÿ ٿij
if(x==p.x&&y==p.y)return true;
else return false;
}
}
public class EqualsEx {
public static void main(String[] args) {
// TODO Auto-... | true |
ce55b8bc06059b0e81bb5682e3cd1bce22c71eea | Java | commercetools/commercetools-sdk-java-v2 | /commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/order_edit/OrderEditAppliedQueryBuilderDsl.java | UTF-8 | 2,289 | 2.078125 | 2 | [
"Apache-2.0",
"GPL-2.0-only",
"EPL-2.0",
"CDDL-1.0",
"MIT",
"BSD-3-Clause",
"Classpath-exception-2.0"
] | permissive |
package com.commercetools.api.predicates.query.order_edit;
import java.util.function.Function;
import com.commercetools.api.predicates.query.*;
public class OrderEditAppliedQueryBuilderDsl {
public OrderEditAppliedQueryBuilderDsl() {
}
public static OrderEditAppliedQueryBuilderDsl of() {
return... | true |
ea100c1933b056819e3caf3318734888ee44c344 | Java | pamelasandrini/invoice-automation | /InvoiceAutomation/src/main/java/com/vendormanagement/InvoiceValidator.java | UTF-8 | 6,208 | 2.5 | 2 | [] | no_license | package com.vendormanagement;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map.Entry;
import org.apache.commons.lang3.StringUtils;
import org.apache.poi.openxml4j.exceptions.I... | true |
394912ed47cabb9f097527e372111bcaaf22de82 | Java | rfecher/geowave | /extensions/adapters/vector/src/main/java/mil/nga/giat/geowave/adapter/vector/export/VectorExportMapper.java | UTF-8 | 4,574 | 1.960938 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-public-domain"
] | permissive | package mil.nga.giat.geowave.adapter.vector.export;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.avro.mapred.AvroKey;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapreduce.Mapper;
import org.open... | true |
09450d85a3c3b0cccaf97499041c87f8b8e55fb1 | Java | jjfiv/irene | /third_party/galago/core/src/main/java/org/lemurproject/galago/core/links/IndriHavestLinksWriter.java | UTF-8 | 4,931 | 2.265625 | 2 | [
"BSD-3-Clause"
] | permissive | /*
* BSD License (http://lemurproject.org/galago-license)
*/
package org.lemurproject.galago.core.links;
import org.lemurproject.galago.core.types.ExtractedLinkIndri;
import org.lemurproject.galago.tupleflow.InputClass;
import org.lemurproject.galago.tupleflow.Processor;
import org.lemurproject.galago.tupleflow.Tup... | true |
d4282cc9ccd7ef71453c9de2af84c0494e621a29 | Java | SoongMoo/TestRepository | /testSpringBoot/src/main/java/testSpringBoot/domain/ReplyDTO.java | UTF-8 | 452 | 1.859375 | 2 | [] | no_license | package testSpringBoot.domain;
import java.sql.Timestamp;
import org.apache.ibatis.type.Alias;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Alias("reply")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReplyDTO {
private Long commentNo;
private S... | true |
e9ea38d088e310f8ce882244bfdb48abab46b1bc | Java | Waikato/weka-3.8 | /packages/internal/distributedWekaBase/src/main/java/weka/distributed/KMeansReduceTask.java | UTF-8 | 15,855 | 2.0625 | 2 | [] | no_license | /*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it w... | true |
c76c0edb769721b0b2261fa1eddd20809d1e77c9 | Java | fudini/bendec | /src/tests/generated/java/bendec/arrays/Test.java | UTF-8 | 2,462 | 2.765625 | 3 | [
"MIT"
] | permissive | package bendec.arrays;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.nio.ByteBuffer;
import bendec.arrays.JsonSerializable;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.Obje... | true |
63e38f3a92884354ed451345b33e8702a13f7be5 | Java | BorLaze/code | /sb2/src/main/java/ua/in/lbn/sb2/repository/LocationRepository.java | UTF-8 | 387 | 1.710938 | 2 | [] | no_license | package ua.in.lbn.sb2.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;
import ua.in.lbn.sb2.domain.Location;
@Repository
public interface LocationRepository extends JpaR... | true |
6c81f67b479f77f686b7e224492a5c48bda030f7 | Java | Weefle/Umbaska_Reloaded | /src/uk/co/umbaska/Enums/AnvilGUI.java | UTF-8 | 6,131 | 2.25 | 2 | [] | no_license | package uk.co.umbaska.Enums;
import java.util.HashMap;
import net.minecraft.server.v1_9_R2.BlockPosition;
import net.minecraft.server.v1_9_R2.ContainerAnvil;
import net.minecraft.server.v1_9_R2.EntityHuman;
import net.minecraft.server.v1_9_R2.EntityPlayer;
import net.minecraft.server.v1_9_R2.IChatBaseComponent;
import... | true |
4a5cb7741c25c10303fb16ce73e20cdfb1a29982 | Java | DowareSistemas/EM3 | /EM3/src/java/dao/NcmDao.java | UTF-8 | 799 | 2.234375 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package dao;
import java.util.List;
import model.Ncm;
import repository.NcmRepisitory;
/**
*
* @author Marcos Vinícius... | true |
fa74e7bc7b48cb90dae8d2cb4f37d3c30759b4a4 | Java | fontain1128/java-base | /src/com/java/base/wrapper/PackTest.java | GB18030 | 1,997 | 3.640625 | 4 | [] | no_license | package com.java.base.wrapper;
/**
* װ䣺ԶתΪװͣ
* 䣺ԶװתΪ
* @author Administrator
* byte-Byte
* short-Short
* int-Integer
* long-Long
* float-Float
* double-Double
* char-Character
* boolean-Boolean
* ÿһװάһӦ͵cache
* InterCache һInteger͵ij飨λڳأΧ-128-127;
*/
public class PackTest {
public static void main(Stri... | true |
529883ed30d9c2e9aa3121469888e4238595a413 | Java | WingBot/OpenTCS-4.17-Modbus | /lib/EasyModbus/src/de/re/easymodbus/modbusclient/gui/EasyModbusTCPClientExampleGUI.java | IBM852 | 27,384 | 2.28125 | 2 | [
"MIT"
] | permissive | /*
* (c) Stefan Romann
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the ... | true |
ec89481cfd06fbdacc45600b06a2be60da8400c6 | Java | shawntime/shawn-design-pattern | /src/main/java/com/shawntime/designpattern/factory/abstractfactory/TestMain.java | UTF-8 | 1,355 | 2.671875 | 3 | [] | no_license | package com.shawntime.designpattern.factory.abstractfactory;
import com.shawntime.designpattern.factory.abstractfactory.airconditioner.AbstractAirConditioner;
import com.shawntime.designpattern.factory.abstractfactory.tv.AbstractTV;
import com.shawntime.designpattern.factory.abstractfactory.washingmachine.AbstractWash... | true |
28d63a086fc09803e440c841205be718a39eb989 | Java | harshuHarsh/TakeHome | /Question6/OtherSciFiSpaceShips.java | UTF-8 | 312 | 1.90625 | 2 | [] | no_license | package test;
public class OtherSciFiSpaceShips extends SpaceShip {
public int getTonnage()
{
return 2;
}
public String getName()
{
return "scifi";
}
public String getFranchise() // Star Wars, Star Trek, or some other Sci-fi universe
{
return "UNSC Infinity";
}
}
| true |
d340c8aa9de2a6edcdc036395a06b28115a42150 | Java | chorras3/workspace_github_01 | /2015-05-16_1133_Swing/misc/Main.java | UTF-8 | 446 | 2.671875 | 3 | [] | no_license | package misc;
public class Main {
public static void main (String[] args){
Main application = new Main();
application.run();
String strType = "";
String strResult = application.typeRecordToSelect(strType);
}
protected void run(){
System.out.println("run()");
}
pri... | true |
cc8669f19352de29ee119dc23be4d327e9273d31 | Java | matslindh/hiof | /rammeverk/patterns/src/main/java/no/lindh/antipattern_dataonlyasstrings/Framework.java | UTF-8 | 394 | 2.65625 | 3 | [
"MIT"
] | permissive | package no.lindh.antipattern_dataonlyasstrings;
import java.util.Random;
public class Framework {
protected int instanceId;
public Framework() {
instanceId = new Random().nextInt();
}
public String getInstanceId() {
return Integer.toString(instanceId);
}
public String getIns... | true |
376ed9f639f66135d3c300c6ac2f7ae338a6c4cb | Java | nikitinalexx/UsersExample | /src/main/java/com/alex/nikitin/model/ItemOrder.java | UTF-8 | 1,113 | 2.390625 | 2 | [] | no_license | package com.alex.nikitin.model;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Collection;
@Entity
public class ItemOrder implements Serializable{
@Id
@GeneratedValue
private long id;
@NotNull
@ManyToOne(fetch = FetchType.EA... | true |
94f32ec89fce8fdec04f45cf9512ff0557c8a09d | Java | Varinder5997/second | /CodingChalange/src/com/mindtree/codingchalange/client/CodingChalangeApplication.java | UTF-8 | 1,335 | 3.203125 | 3 | [] | no_license | package com.mindtree.codingchalange.client;
import java.util.Scanner;
import com.mindtree.codingchalange.service.FurnitureService;
public class CodingChalangeApplication {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
FurnitureService fs=new FurnitureService();
boolean flag=true... | true |
7607a01a6a2011478b143e6a01f6c9566f208a7c | Java | EdgarFalco/M9 | /M9Act4ProcesosFils/src/Cliente.java | UTF-8 | 369 | 2.828125 | 3 | [] | no_license | public class Cliente {
private String cliente;
private int[] arrayArticulos;
public Cliente() {
}
public Cliente(String cliente, int[] arrayArticulos) {
this.cliente = cliente;
this.arrayArticulos = arrayArticulos;
}
public String getCliente() {
return cliente;
}
public int[] getAr... | true |
8f2b19637557ea210a67145362f717b65749a404 | Java | gurkenlabs/litiengine | /litiengine/src/main/java/de/gurkenlabs/litiengine/environment/tilemap/MapProperty.java | UTF-8 | 1,481 | 2.34375 | 2 | [
"MIT"
] | permissive | package de.gurkenlabs.litiengine.environment.tilemap;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
public final class MapProperty {
private static final Logger log = Logger.getLo... | true |
1605f354287122916eac5a03678e4ad1e9352203 | Java | anilthakur0909/EMS | /src/com/bebo/controller/RegistrationController.java | UTF-8 | 3,693 | 2.203125 | 2 | [] | no_license | package com.bebo.controller;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springf... | true |
cb2629dc4328bd10867c046a3767d0ed37dfdb0c | Java | tsszh/LeetCode | /Java/src/LT050T100/LT076.java | UTF-8 | 1,692 | 3.921875 | 4 | [] | no_license | package LT050T100;
import java.util.*;
/**
* 76. Minimum Window Substring
*
* Given a string S and a string T, find the minimum window in S which will
* contain all the characters in T in complexity O(n).
*
* For example,
* S = "ADOBECODEBANC"
* T = "ABC" Minimum window is "BANC".
*
* Note: If there is n... | true |
decfb18086b1985bbc0af9c4ad26da50747f989d | Java | roquinho/ClinicaPoo | /Clinica/src/main/java/br/upe/poo/clinica/regraNegocio/InterfaceRegraNegocioPacientes.java | UTF-8 | 848 | 1.875 | 2 | [] | no_license |
package br.upe.poo.clinica.regraNegocio;
import br.upe.poo.clinica.entidades.Pacientes;
import br.upe.poo.clinica.listarEntidades.ListarPacientes;
import java.io.Serializable;
import java.util.List;
public interface InterfaceRegraNegocioPacientes extends Serializable{
public void cadastrarPacien... | true |
88639b2aa00818895015de237dd7abcf9497c33b | Java | lukaszmagiera26/TEST | /TIcketMachine/src/Runner.java | UTF-8 | 132 | 1.84375 | 2 | [] | no_license | public class Runner {
Operations operations = new Operations();
public void run(){
operations.operations();
}
}
| true |
839495239fa9fca71493f70993983d651dc5230e | Java | threecube/kmeans-detector | /src/main/java/com/threecube/prod/kmeansDetector/kmeans/processor/KmeansProcessorImpl.java | UTF-8 | 3,101 | 2.734375 | 3 | [] | no_license | /*
* @(#)KmeansProcessorImpl.java $version 2015-1-27
*
* Copyright 2007 THREECUBE Corp. All rights Reserved.
* THREECUBE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package com.threecube.prod.kmeansDetector.kmeans.processor;
//import java.lang.annotation.Annotation;
import java.util.L... | true |
602c5e7cbfb86b0c5df9886925198b3a0c1ceeeb | Java | stackekareem/Week1Assignment | /com/weekone/assignment1/Pattern.java | UTF-8 | 3,062 | 4.0625 | 4 | [] | no_license | package com.weekone.assignment1;
/**
* prints 4 patterns
*/
public class Pattern {
/**
* print pattern one recurizely
* *
* **
* ***
* @param stackSize - maxlayer size
* @param currlayer - currentlayer printed
*/
public void patternOne(int stackSize,int currlayer){
... | true |
79c6b990dbac3ffe1359cca5e54b111b44e1d976 | Java | hrnrstgzl/hrms | /src/main/java/com/rgsoft/hrms/dataAccess/abstracts/EducationDao.java | UTF-8 | 414 | 2.03125 | 2 | [] | no_license | package com.rgsoft.hrms.dataAccess.abstracts;
import java.util.List;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import com.rgsoft.hrms.entities.concretes.Education;
public interface EducationDao extends JpaRepository<Education, Integer>{
public List<E... | true |
7277a9456cd1f8236a2c6db0bb63254d7a1461b0 | Java | mattschwartz/stonequest-original | /StoneQuest/src/com/barelyconscious/worlds/engine/gui/widgets/GameMenuWidget.java | UTF-8 | 359 | 2.078125 | 2 | [] | no_license | package com.barelyconscious.worlds.engine.gui.widgets;
import com.barelyconscious.worlds.engine.gui.LayoutData;
import com.barelyconscious.worlds.engine.gui.Widget;
public class GameMenuWidget extends Widget {
private static final LayoutData LAYOUT = LayoutData.builder()
.build();
public GameMenuWid... | true |
56dc363f6d45c9944ae24b7bb8360495d40f6968 | Java | Adam713/apcontint | /app/src/main/java/p000/lda.java | UTF-8 | 611 | 1.617188 | 2 | [] | no_license | package p000;
/* renamed from: lda */
public class lda extends nda {
/* renamed from: a */
public void mo4700a(int i, Object obj) {
}
/* renamed from: a */
public void mo4701a(int i, Object obj, Object obj2) {
}
/* renamed from: a */
public void mo4702a(int i, Object obj, Object obj2,... | true |
ece9481997b386039387aea98641121e463cd0ff | Java | wastevens/TroupeLarpCharacterRepository | /TroupeLarpCharacterRepository/src/java/com/dstevens/characters/PlayerCharacterRepository.java | UTF-8 | 1,635 | 2.59375 | 3 | [] | no_license | package com.dstevens.characters;
import java.util.function.Predicate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dstevens.persistence.auditing.*;
import com.dstevens.players.*;
@Service
public class PlayerCharacterRepository extends Abstr... | true |
2cd4a7bea779ea6ef3de9688324692036dd9b410 | Java | oliveshannon/sd1olive | /Desktop/sd1/labs/lab3/Driver_lab3.java | UTF-8 | 533 | 3.140625 | 3 | [] | no_license |
import java.util.Scanner;
public class Driver_lab3 {
public static void main (String[] args){
Scanner input= new Scanner(System.in);
while (true){
double x1 = input.nextDouble();
if (x1 == 0.0){
break;
}
double y1= input.nextDouble();
double x2 = input.nextDouble();
doubl... | true |
3d571b3e68c76a712754350713d1fd33105c6fff | Java | FelipeFFS93/turma27java | /Java/Aulas/src/exerciciosJavaLista2/lista2Tarefa02.java | ISO-8859-1 | 547 | 3.71875 | 4 | [] | no_license | //2 - Faa um programa que entre com trs nmeros e coloque em
// ordem crescente.
package exerciciosJavaLista2;
import java.util.Scanner;
import java.util.Arrays;
public class lista2Tarefa02 {
public static void main(String[] args) {
Scanner read = new Scanner(System.in);
long[] numero = new long [3];
... | true |
d33bc4a1bba9ee16cfc9cc29921d9da817ef94e7 | Java | alexr007/http-rq | /src/main/java/org/alexr/httprq/entity/E0.java | UTF-8 | 311 | 2.265625 | 2 | [] | no_license | package org.alexr.httprq.entity;
public class E0 {
private int x;
public E0(int x) {
this.x = x;
}
public E0() {
}
public int getX() {
return x;
}
public void setX(int x) {
this.x = x;
}
@Override
public String toString() {
return String.format("E0{x=%d}", x);
}
}
| true |
bfd59255498ac67cf87ba2bbbad43bd82cac6207 | Java | nuthankumar/AngularSpringBoot | /src/main/java/com/exide/sfcrm/model/PRFListCashAdvanceKey.java | UTF-8 | 3,432 | 1.78125 | 2 | [] | no_license | /**
*
*/
package com.exide.sfcrm.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Embeddable;
/**
* @author neethub
*
*/
@Embeddable
public class PRFListCashAdvanceKey implements Serializable{
/**
*
*/
private static final long serialVersionUID = -61641825494... | true |
71d5158166533da9b257127ad6dd5d200dc35957 | Java | pengyiccb/eshop | /src/main/java/com/tfx0one/center/MarketingCenter/model/EShopMarketing.java | UTF-8 | 3,320 | 2.328125 | 2 | [] | no_license | package com.tfx0one.center.MarketingCenter.model;
import com.tfx0one.common.util.BaseEntity;
import java.util.Date;
import javax.persistence.*;
@Table(name = "e_shop_marketing")
public class EShopMarketing extends BaseEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
... | true |
20c7ef123bc587581d8907dc8f0c66b05f9dbf2e | Java | FranciscoVasc/Java | /Film.java | UTF-8 | 924 | 2.96875 | 3 | [] | no_license | public class Filme {
String nomeDoFilme;
String generoDoFilme;
int anoDeLancamento;
int classificacao;
String distribuicao;
public void criarFilme(){
nomeDoFilme="Sexta feira 13";
generoDoFilme="Terror";
anoDeLancamento=1980;
classificacao=18... | true |
72ceeb0e89aba680a2eb52b5f70fe31a6030f08d | Java | yunipingan/DailyPush | /src/test/java/cn/pingweb/controller/HelloControllerTest.java | UTF-8 | 414 | 1.539063 | 2 | [] | no_license | package cn.pingweb.controller;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by Administrator on 2017/8/7.
*/
public class HelloControllerTest {
@Before
public void setUp() throws Exception {
}
@After
public void tearDow... | true |
40c7926c1a5e7d405015ccbbd8be5f7ad5bff285 | Java | show-my-app/Unity3D | /ShowMyAppNative/Plugins/Android/AndroidStudio~/BasicToolBoxAndroid/basictoolbox/src/main/java/com/idemobi/basictoolbox/BTBDialogAndroidManager.java | UTF-8 | 3,623 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package com.idemobi.basictoolbox;
import android.annotation.SuppressLint;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.util.Log;
import android.view.ContextThemeWrapper;
import android.view.KeyEven... | true |
175e2dadacbb50629bf18870a6f23af216f5f508 | Java | elcomthien/source | /workspace_ehotel/[InterfaceAppeHotelForCPVLaos]/src/com/elcom/eodapp/media/mod/SQL.java | UTF-8 | 759 | 1.523438 | 2 | [] | no_license | package com.elcom.eodapp.media.mod;
public interface SQL {
public static final String sqlSubjectAlbum =
"begin vod.getModSubject(?,?); end;";
public static final String sqlgetModListSongSubject =
"begin vod.getModListSongSubject(?,?,?,?,?); end;";
public static final String sqlgetModFavorite =
... | true |
ef59daa6e1fd37fb986e91b8d10c4fab4a646bf5 | Java | qiuchili/ggnn_graph_classification | /program_data/JavaProgramData/37/944.java | UTF-8 | 1,186 | 2.953125 | 3 | [
"MIT"
] | permissive | package <missing>;
public class GlobalMembers
{
public static int Main()
{
int t;
int rd;
int check = 0;
int output = 0;
String str = new String(new char[100001]);
//C++ TO JAVA CONVERTER TODO TASK: Pointer arithmetic is detected on this variable, so pointers on this variable are left unchanged:
char * p... | true |
1dece260a8d90b05f48a7f4cc0f7f0db7b745692 | Java | RyzhkoAliaksei/Test | /src/main/java/grsu/epam/utilitycompany/app/web/converters/StringToSpecialityConverter.java | UTF-8 | 642 | 2.296875 | 2 | [] | no_license | package grsu.epam.utilitycompany.app.web.converters;
import grsu.epam.utilitycompany.app.domain.Speciality;
import grsu.epam.utilitycompany.app.service.SpecialityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.convert.converter.Converter;
import org.springframew... | true |
14798a0ac1efb793fd41edeea7a08713362f636c | Java | sgros/activity_flow_plugin | /TestApplications/TF-BETA-THERMATK-v5.7.1/DecompiledCode/Fernflower/src/main/java/com/google/android/exoplayer2/source/hls/playlist/_$$Lambda$lKTLOVxne0MoBOOliKH0gO2KDMM.java | UTF-8 | 501 | 1.570313 | 2 | [] | no_license | package com.google.android.exoplayer2.source.hls.playlist;
import com.google.android.exoplayer2.source.hls.playlist.-..Lambda.lKTLOVxne0MoBOOliKH0gO2KDMM;
// $FF: synthetic class
public final class _$$Lambda$lKTLOVxne0MoBOOliKH0gO2KDMM implements HlsPlaylistTracker.Factory {
// $FF: synthetic field
public stati... | true |
ac402bda9094cb3aaa602accafb406db749c544f | Java | nvbach91/labelmaker | /src/java/pdf/PDFMaker.java | UTF-8 | 855 | 2.578125 | 3 | [] | no_license | /**
*
*
*/
package pdf;
import com.itextpdf.text.*;
import com.itextpdf.text.pdf.*;
import data.Item;
import java.util.List;
import java.io.*;
/**
*
* @author Nguyen Viet Bach
*/
public class PDFMaker {
private final List<Item> itemList;
private final Document doc;
private final ByteArrayOutputStre... | true |
b38a78be2ba741ff05b71b7df8aaf7393bab6269 | Java | badion/SpringTesting | /src/main/java/com/epam/splitter/Application.java | UTF-8 | 685 | 2.140625 | 2 | [] | no_license | package com.epam.splitter;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.epam.dao.CustomerDao;
import com.epam.model.Customer;
public class Application {
public static void main(String[] args) {
ApplicationContext con... | true |
2e2e710a5090443a782a5a94a60227e40161a3c9 | Java | AF-files/ATM | /src/sample/Main.java | UTF-8 | 1,900 | 2.4375 | 2 | [] | no_license | package sample;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.ButtonType;
import javafx.scene.control.Dialog;
import javafx.stage.Stage;
import java.io.IOException;
import java.util.Optional;
public class Main ... | true |
16de9ed602d218863961448d31ba5bb1499a9502 | Java | prabhatkumardubey/CompetitiveCode | /src/CombinationLock.java | UTF-8 | 502 | 3.0625 | 3 | [] | no_license | import java.util.Scanner;
public class CombinationLock {
public static void main(String args[]){
Scanner sc=new Scanner(System.in);
int arr[]=new int[5];
int narr[]=new int[5];
for(int i=0;i<5;i++){
arr[i]=sc.nextInt();
}
int ct=0;
for(int i=0;i<5;i++){
narr[i]=sc.nextInt();
if((narr[i]-arr[i])... | true |
e5e653683b2203e59d42af31d28d172109474569 | Java | dev1piece/rx-java | /src/main/milo/ch2/MultiSubscribeAndSample.java | UTF-8 | 636 | 3.375 | 3 | [] | no_license | package milo;
import io.reactivex.Observable;
public class MultiSubscribeAndSample { // p.40
public static void main(String[] args) {
//Multi Subscriber
Observable<Integer> ints =
Observable.create(subscribe -> {
System.out.println("Create");
... | true |
be556342c78b06d0d52e8ebf90a02bb69628fabb | Java | trongtt/exogtn | /webui/core/src/main/java/org/exoplatform/webui/core/model/SelectOptionGroup.java | UTF-8 | 3,144 | 2.484375 | 2 | [] | no_license | /**
* Copyright (C) 2009 eXo Platform SAS.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This softwar... | true |