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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ba01f24b7f9279c3223cda7c9c94f2dd5fd7b8c3 | Java | NurhatMentes/hrms | /hrms/src/main/java/kodlamaio/hrms/business/concretes/JobAdvertisementManager.java | UTF-8 | 2,258 | 2.296875 | 2 | [] | no_license | package kodlamaio.hrms.business.concretes;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.data.domain.Sort;
import kodlamaio.hrms.Constants.Messages;
import kodlamaio.hrms.business.abstracts.JobAdvertisementService;
import kodlamaio.hrms.core.utilities.results.DataRe... | true |
c28f623c453a57ecca3aede34dc64efe0a448dbb | Java | tarunbanda/java | /Adv Data Structures in Java/project02_tarunb/src/StackList.java | UTF-8 | 2,109 | 3.671875 | 4 | [] | no_license | import java.util.Iterator;
import java.util.NoSuchElementException;
//Class Stack ---------------------------------------
class StackList<E> implements Cloneable, Iterable<E>
{
// pointer to top node in stack
private Node top;
private int size;
private class Node {
private E data;
private Node nex... | true |
a7daa1251f8177ce1c29fc5bf4177d5880ff2eaa | Java | Hackergeek/JavaNetWorkProgramming | /src/守护线程/Daemon.java | GB18030 | 869 | 3.34375 | 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 ػ߳;
/**
* ػ߳һ㱻ں̨Ϊ߳ṩ һӦóзػֹ߳ʱʹȻػ߳УӦóҲֹ
*
* @author geek
*/
public class Daemon extends Thread {
private static final int ... | true |
53dc4bcfa664ab4b7c1babae7f78e1a019140476 | Java | mecdcme/is2-microservices | /is2-workflow-monitor/src/main/java/it/istat/is2/workflowmonitor/repository/WorkFlowStatusRepository.java | UTF-8 | 894 | 1.90625 | 2 | [] | no_license | package it.istat.is2.workflowmonitor.repository;
import it.istat.is2.workflowmonitor.domain.WorkflowStatusEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;
import java.util.List;
import java.util.Optional;
public interface WorkFlowStatusRepo... | true |
5bbbc0d15534cd740ee5db6911db1188a653382a | Java | stuxo/REDAndroid | /app/src/main/java/ch/redacted/ui/artist/ArtistPresenter.java | UTF-8 | 5,852 | 2.171875 | 2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package ch.redacted.ui.artist;
import io.reactivex.Observable;
import io.reactivex.Scheduler;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.CompositeDisposable;
import io.reactivex.observers.DisposableSingleObserver;
import io.reactivex.schedulers.Schedulers;
import java.uti... | true |
88ee0d5e7fee28451ea3fcd4752a9d1b67fc0b89 | Java | angelosAngelos/czk_web | /src/main/java/com/czk/login/dao/LoginDao.java | UTF-8 | 265 | 1.632813 | 2 | [] | no_license | package com.czk.login.dao;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
@Repository("loginDao")
public interface LoginDao {
List<Map> login(Map map);
List<Map> getMenu(Map map);
}
| true |
cbbda941fffbacd2ef95e94a568fe7ba6e88cc1d | Java | anfaas1618/jflap-lib | /jflaplib-core/src/main/java/edu/duke/cs/jflap/grammar/CNFConverter.java | UTF-8 | 10,530 | 3.140625 | 3 | [
"MIT"
] | permissive | /*
* JFLAP - Formal Languages and Automata Package
*
*
* Susan H. Rodger
* Computer Science Department
* Duke University
* August 27, 2009
* Copyright (c) 2002-2009
* All rights reserved.
* JFLAP is open source software. Please see the LICENSE for terms.
*
*/
package edu.duke.cs.jflap.gramm... | true |
0ab3747cf08b640f72fd86ef12e16d7e016e8642 | Java | kco1989/LearningCode | /src/game/onestroke/Vertex.java | UTF-8 | 3,527 | 3.15625 | 3 | [] | no_license | package game.onestroke;
import java.awt.Point;
import java.util.HashSet;
import java.util.Set;
/**
* 顶点
* @author kco1989
* @email kco1989@qq.com
* @data 2015年5月27日
*/
public class Vertex {
/**
* 顶点的名字,唯一
*/
private String name;
/**
* 入度
*/
private int inDegree;
/**
*... | true |
d49e00bbb4859f5192fd406434d1dc504de4a9ef | Java | leomolinaro/j-motif | /motif-web-project/src/main/java/com/motif/agot/ang/text/instants/AngMovePowersFromAFactionToAFaction.java | UTF-8 | 803 | 2.25 | 2 | [] | no_license | package com.motif.agot.ang.text.instants;
import com.motif.agot.ang.text.effects.IAngEffect;
import com.motif.agot.ang.text.effects.IAngEffectVisitor;
import com.motif.agot.ang.text.filters.AngPlayerFilter;
import lombok.Getter;
public class AngMovePowersFromAFactionToAFaction implements IAngEffect {
@Ge... | true |
110eb81b179a3e990cadf511f625c759249e7ce7 | Java | hunter0147/SpringScroll | /app/src/main/java/com/example/springscroll/QuickSort.java | UTF-8 | 1,021 | 3.359375 | 3 | [
"Apache-2.0"
] | permissive | package com.example.springscroll;
import java.util.Arrays;
public class QuickSort {
public static void quickSort(int [] arr,int left,int right) {
int pivot=0;
if(left<right) {
pivot=partition(arr,left,right);
quickSort(arr,left,pivot-1);
quickSort(arr,pivot+1,right);... | true |
ebe9d7dc7782e24cd0a46aafb2b40286255f5721 | Java | zero0/zp4 | /ZeroPoint4/Tools/Singularity/src/org/zero0/singularity/task/PopEnvironmentTask.java | UTF-8 | 880 | 2.28125 | 2 | [] | no_license | package org.zero0.singularity.task;
import org.zero0.json.Value;
import org.zero0.singularity.ISingularityTaskExecution;
import org.zero0.singularity.SingularityTask;
import org.zero0.singularity.SingularityTaskExecutionInfo;
import org.zero0.singularity.SingularityTaskExecutionResult;
public class PopEnviron... | true |
67e94d7863174ccd5cc577e54445bb433d32fc6c | Java | treejames/workspace_e | /sea/src/service/com/nari/qrystat/colldataanalyse/impl/.svn/text-base/CurrLoadMonitorManagerImpl.java.svn-base | UTF-8 | 13,948 | 2.1875 | 2 | [] | no_license | package com.nari.qrystat.colldataanalyse.impl;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import org.springframework.dao.DataAccessException;
import com.nari.privilige.PSysUser;
import com.nari.qrystat.colldataanalyse.AOrgLoadStatDto;
import com.nari.qrystat.colldat... | true |
5eb366b506244b178f9820a8cf689ea2e622d3b7 | Java | BackupTheBerlios/x4juli-svn | /trunk/src/java/org/x4juli/logger/X4JuliLoggerFactory.java | UTF-8 | 1,446 | 1.71875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 1999,2005 The Apache Software Foundation.
*
* 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 re... | true |
c811126227aefd973d2b3b9a90871c8cd2a8d67e | Java | pgaref/play2sdg-spark-module | /src/main/java/uk/ac/imperial/lsds/models/User.java | UTF-8 | 2,558 | 2.59375 | 3 | [] | no_license | package main.java.uk.ac.imperial.lsds.models;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "users", schema = "play_cassandra@cassandra_pu")
//create column famil... | true |
52e56d53604738901e02c2874a85029698eaaec3 | Java | xiaohualaila/demo | /app/src/main/java/com/aier/ardemo/http/service/ApiService.java | UTF-8 | 413 | 1.664063 | 2 | [] | no_license | package com.aier.ardemo.http.service;
import com.aier.ardemo.http.basis.model.BaseResponseBody;
import com.aier.ardemo.model.Weather;
import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface ApiService {
@GET("weather_mini")
... | true |
ae8acb3e727ff962fccc6511c6986989c97884cc | Java | DhivyaBharkavi/DhivyaOOPS | /Final1.java | UTF-8 | 593 | 3.140625 | 3 | [] | no_license | package exercise23aug19;
final class A//final class is allowed but not inherits
{
final int i =9;
static double pi=4.4;
static void m()
{
//System.out.println(i);//not allowed in instance variables
System.out.println(pi);//only allowed static instance variables
}
final void c()//it allows a final m... | true |
5b8323cef06748db486c0009239ad9889d1d5efd | Java | septantrionalis/AreaBuilder | /src/org/tdod/ether/areabuilder/BarrierDataReader.java | UTF-8 | 8,705 | 2.0625 | 2 | [] | no_license | /****************************************************************************
* Ether Code base, version 1.0 *
*==========================================================================*
* Copyright (C) 2011 by Ron Kinney *
* A... | true |
78d79a1da8ed718a976c41e7bedbdedb402672b3 | Java | yikey/alipay-sdk-java-all | /src/main/java/com/alipay/api/domain/AlipayMarketingCardBenefitQueryModel.java | UTF-8 | 860 | 1.90625 | 2 | [
"Apache-2.0"
] | permissive | package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 会员卡模板外部权益查询
*
* @author auto create
* @since 1.0, 2019-03-06 14:42:18
*/
public class AlipayMarketingCardBenefitQueryModel extends AlipayObject {
private static final long seri... | true |
e431e58275129483285ad6a671fa7a259e016bac | Java | leonLMR/presto-es | /src/main/java/com/tscloud/presto/es/ElasticsearchMetadata.java | UTF-8 | 7,965 | 2.09375 | 2 | [] | no_license | package com.tscloud.presto.es;
import com.facebook.presto.spi.*;
import com.facebook.presto.spi.connector.ConnectorMetadata;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.tscloud.presto.es.exception.ElasticsearchException;
import com.tscloud.presto.es.utils.C... | true |
978d8c3bde0fb001e7dc9eddff957cd6ba3d1da6 | Java | tedmorning/game-ecosphere | /ChessGame/src/main/java/com/gameco/games/chess/Coord.java | UTF-8 | 1,816 | 3.4375 | 3 | [] | no_license | package com.gameco.games.chess;
public class Coord implements Cloneable {
private int column;
private int row;
/**
* @param column
* @param row
*/
public Coord(int column, int row) {
this.column = column;
this.row = row;
}
public Coord(Coord coord) {
this.setCoord(coord);
}
public int getCol... | true |
03ccbee8bdc86cda65fe4927249bfa430e05a96a | Java | nchichilidze/hangman- | /HangmanLexicon2.java | UTF-8 | 904 | 3.3125 | 3 | [] | no_license | /*
* File: HangmanLexicon.java
* -------------------------
* This file contains a stub implementation of the HangmanLexicon
* class that you will reimplement for Part III of the assignment.
*/
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import... | true |
79fb582b19fbfde893bfcb758f01f21095c333cd | Java | bzude54/uwpce-bzbookstore | /BIllZBookstore04/src/main/java/edu/uwpce/bzbookstore/BZAddressesServiceImpl.java | UTF-8 | 2,113 | 2.4375 | 2 | [] | no_license | package edu.uwpce.bzbookstore;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.springframework.beans.factory.annotation.Autowired;
public class BZAddressesServiceImpl implements BZAddressesService {
@Autowired
BZUsersManager usersManager;
public BZU... | true |
cc6d77863df303da271a2445d7aab87f4eaf3f26 | Java | APDavila/cp_andres_davila | /webviews/src/main/java/com/holalola/chat/controller/PedidosChatController.java | UTF-8 | 8,062 | 1.703125 | 2 | [] | no_license | package com.holalola.chat.controller;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.Ma... | true |
a0603e445d39b7f3bb467acc86fd5bd9c6a18061 | Java | MichalBaczewski/ProjectPatterns | /src/com/baczewski/patterns/structural/flyweight/FlyweightMain.java | UTF-8 | 914 | 3.046875 | 3 | [
"MIT"
] | permissive | package com.baczewski.patterns.structural.flyweight;
public class FlyweightMain {
public static void main(String[] args) {
DocumentParser parser = new DocumentParser();
DocumentFlyweightFactory factory = new DocumentFlyweightFactory(parser);
Document document1 = factory.getDocument("plik1"... | true |
309c48b3e40c53ff84b70f7f51026d3be1cbe73e | Java | ehsstgi/Grupo2 | /WEJB/WEJBTesteCopia/WEJBTesteCopia-ejb/src/java/br/com/interfaces/GerenciaEndereco.java | UTF-8 | 593 | 1.882813 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package br.com.interfaces;
import br.com.DAO.PessoaDAO;
import br.com.bean.Endereco;
import javax.ejb.Stateless;
/**
*
* @author Administrador
*/
@Stateless (mappedName="GerenciaEndereco")
public clas... | true |
8544b552c297195a3c3f089f8f691b2345c1a746 | Java | Scryler/demo | /src/main/java/com/example/demo/controller/MainController.java | UTF-8 | 1,368 | 2.59375 | 3 | [] | no_license | package com.example.demo.controller;
import com.example.demo.domain.Book;
import org.springframework.web.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;
@RestController
public class MainController {
/*private List<Book> bookList = new ArrayList<Book>(){{
add(new Book(1,"someTitle... | true |
2285523c5b3dabfd98ded54f964db555d3b3a46b | Java | cristiansan/FutbolAR | /Metegol/src/com/pmovil/soccer/VideoActivity.java | UTF-8 | 3,469 | 2.1875 | 2 | [] | no_license | package com.pmovil.soccer;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.graphics.PixelFormat;
import android.media.MediaPlayer;
import android.media.MediaPlayer.OnErrorListener;
import android.media.MediaPlayer.OnPreparedListener;
import android.net.Uri;... | true |
ac647dfbc367769802528491184338b62b3e76cc | Java | priyathapa07/Core-Java | /src/main/java/ifElseANDSwitch/ifElse.java | UTF-8 | 1,717 | 3.6875 | 4 | [] | no_license | package ifElseANDSwitch;
/**This is ifElse
* Sample statements
* @Priya
* @06/10/2020
*/
public class ifElse {
public void checkDivisible(int n) {
//int divider=2;
if (n % 2 == 0) {
System.out.println("The number is divisible by 2 ");
} else {
System.out.printl... | true |
d8745c586f5f5d76f1306620f5e5c78a707368f1 | Java | dheeraj9198/androidApp | /app/src/main/java/com/example/dheeraj/superprofs/services/DownloaderService.java | UTF-8 | 6,908 | 1.921875 | 2 | [] | no_license | package com.example.dheeraj.superprofs.services;
import android.app.NotificationManager;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.support.v4.app.NotificationCompat;
import android.util.Log;
import andr... | true |
b7bddf7210a66b0113ef6424ccc37cee468ad207 | Java | juniorVel22/my-construction-repository | /src/semana7/teorico/ejercicio01.java | UTF-8 | 9,915 | 2.390625 | 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 semana7.teorico;
import java.util.ArrayList;
/**
*
* @author JHUNIOR
*/
public class ejercicio01 extends javax.swing.JFram... | true |
da3052b717af98e137d08cffcbc062e0814e9863 | Java | Rx666/Sql_Injection | /sql_injection/src/main/java/com/jsql/view/swing/interaction/AddColumns.java | UTF-8 | 2,998 | 2.34375 | 2 | [] | no_license | /*******************************************************************************
* Copyhacked (H) 2012-2016.
* This program and the accompanying materials
* are made available under no term at all, use it like
* you want, but share and discuss about it
* every time possible with every body.
*
* Contribut... | true |
ec377660f273e49c6b269d42d67d23c95f09c85c | Java | zafar142007/Controlio | /Controlio/ControlioServer/src/main/java/in/control/Platform.java | UTF-8 | 67 | 1.554688 | 2 | [
"Apache-2.0"
] | permissive | package in.control;
public enum Platform{
nix, win, osx;
}
| true |
d13f16b267420ef8519b8bae18dea3f55db27585 | Java | hasan-imam/pogo-route | /src/main/java/pogo/assistance/data/quest/QuestProvider.java | UTF-8 | 271 | 1.804688 | 2 | [] | no_license | package pogo.assistance.data.quest;
import java.util.List;
import javax.annotation.Nonnull;
import pogo.assistance.data.model.Quest;
import pogo.assistance.data.model.Map;
public interface QuestProvider {
@Nonnull List<Quest> getQuests(@Nonnull final Map map);
}
| true |
506475a76dab21eba2c7309fd2ca659a1b369acd | Java | NehaChopra/100DaysOfCode | /src/DataStructure/LRUCache.java | UTF-8 | 1,108 | 3.53125 | 4 | [
"MIT"
] | permissive | //https://www.geeksforgeeks.org/lru-cache-implementation/
package DataStructure;
import java.util.Deque;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Set;
public class LRUCache {
public void generateCache(Set set, Deque queue, int ele, int cacheSize) {
if(!set... | true |
8fab1a6d289ed34b21464d467b924569cbd061c3 | Java | jqno/equalsverifier | /equalsverifier-core/src/test/java/nl/jqno/equalsverifier/integration/operational/SignedJarTest.java | UTF-8 | 711 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package nl.jqno.equalsverifier.integration.operational;
import nl.jqno.equalsverifier.EqualsVerifier;
import nl.jqno.equalsverifier.signedjar.SignedJarPoint;
import org.junit.jupiter.api.Test;
public class SignedJarTest {
@Test
public void succeed_whenTestingAClassFromASignedJar() {
EqualsVerifier.fo... | true |
5316a1987dbf9ea2bbd18e38bf515758616b0dd8 | Java | fajar-upn/Sub4 | /app/src/main/java/com/example/sub4/Database/DatabaseContract.java | UTF-8 | 435 | 2.09375 | 2 | [] | no_license | package com.example.sub4.Database;
import android.provider.BaseColumns;
public class DatabaseContract {
public static String TABLE_NAME = "dbFavoriteMovies";
public static final class FavoriteColoums implements BaseColumns{
public static String ID = "id";
public static String POSTER = "poster... | true |
4cc4fac6f82bbb3a1d0050f50352cfc18290e27b | Java | thmckenzie/Exercises-TW101 | /src/main/java/com/thoughtworks/tw101/exercises/exercise3/OddSum.java | UTF-8 | 304 | 3.15625 | 3 | [] | no_license | package com.thoughtworks.tw101.exercises.exercise3;
public class OddSum {
int oddSum = 0;
//Of method
public int of(int start, int end) {
for(int i = start; i < end; i++){
if(i%2 != 0){
oddSum += i;
}
}
return oddSum;
}
}
| true |
d1257fe058c33f70cb140266160b6b198591a96e | Java | q742972035/ListViewDragDemo | /app/src/main/java/com/test/listviewdragdemo/view/ViewWithDraged.java | UTF-8 | 9,179 | 2.5 | 2 | [] | no_license | package com.test.listviewdragdemo.view;
import android.animation.Animator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.util.AttributeSet;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
import android.widget.FrameLayout;
import... | true |
1c6f8e1aa2fc5e7d08784d0ccd3ea82d64fc5424 | Java | es-repo/Runner | /core/src/com/a1/runner/ControlElement.java | UTF-8 | 82 | 1.5 | 2 | [] | no_license | package com.a1.runner;
public class ControlElement {
public Figure figure;
}
| true |
2d3fd89a26c9e77849a8260529d1c73f9003f639 | Java | taosut/tyhh_backend_v2 | /tasks/src/main/java/com/stadio/task/utils/VietlangUtils.java | UTF-8 | 2,355 | 2.828125 | 3 | [] | no_license | package com.stadio.task.utils;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
public class VietlangUtils
{
protect... | true |
c710e975e5b9c4c8388f0d52b5aed01706c4c1c3 | Java | jabautista/GeniisysSCA | /src/main/java/com/geniisys/framework/util/UserSessionAttributeListener.java | UTF-8 | 609 | 1.820313 | 2 | [] | no_license | package com.geniisys.framework.util;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpSessionAttributeListener;
import javax.servlet.http.HttpSessionBindingEvent;
public class UserSessionAttributeListener extends HttpServlet implements HttpSessionAttributeListener {
/**
*
*/
private stati... | true |
395297df408d47cecef6f1093ac11340c8b82e6f | Java | Vineelaj72/Projects | /zeomega/JivaAutomation/src/main/java/com/jiva/pages/LoginPage.java | UTF-8 | 996 | 2.0625 | 2 | [] | no_license | package com.jiva.pages;
import com.framework.utils.WebElements;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.testng.Reporter;
import com.framework.utils.WebElements;
public class LoginPage extends WebElements {
WebDriver driver;
public LoginPage(WebDriver driver) {
super(dr... | true |
d497d8d1c10a14608dcfacabeeddee1e0d738687 | Java | tanvir-ahmed-m4/fop-0.20.5 | /src/org/apache/fop/pdf/PDFNumber.java | UTF-8 | 5,069 | 2.296875 | 2 | [
"Apache-1.1",
"Apache-2.0"
] | permissive | /*
* $Id: PDFNumber.java,v 1.5.2.2 2003/02/25 14:29:37 jeremias Exp $
* ============================================================================
* The Apache Software License, Version 1.1
* ============================================================================
*
* Copyright (C) 1999-... | true |
b26f14abb5106199770bb851e71931661b798502 | Java | ecagiral/tcommerce | /app/models/TweetJson.java | UTF-8 | 1,459 | 2.484375 | 2 | [] | no_license | package models;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class TweetJson {
public String id;
public String ownerId;
public String ownerScreenName;
public String tweetId;
public String tweet;
public boolean responded;
public String respondedBy;
public String itemId;
pub... | true |
496e53739a3630f7b127bc6b6bdc4d1d4368e96c | Java | shadowoom/lintcode-solutions | /src/com/algorithm/priorityqueue/UglyNumber.java | UTF-8 | 1,555 | 3.953125 | 4 | [] | no_license | package com.algorithm.priorityqueue;
public class UglyNumber {
//method 1 brute force
// public static int nthUglyNumber(int n) {
// int number = 1;
// int count = 1;
// while(count < n) {
// number++;
// if(isUgly(number)) {
// count++;
// }
// }
// return number;
// }
//
// public static boolean is... | true |
ae173e5a401405cc2fd1c865cdfa1f95306aae3f | Java | pratiksha311/Core-Java | /INHERITANCE/src/HW/FinalClass.java | UTF-8 | 130 | 2.453125 | 2 | [] | no_license | package HW;
final class FinalClass {
int a;
FinalClass(int a)
{
this.a=a;
System.out.println("a="+a);
}
}
| true |
526eaa23d00fd7d2a0a708fbbf3a540582d8692a | Java | EmirhanAkyol1721221214/BLM103_2018_2019_Guz | /BLM103_2018_2019_Guz/src/Ders03/Ornek15.java | ISO-8859-3 | 648 | 3.03125 | 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 Ders03;
/**
*
* @author anizam
*/
public class Ornek15 {
public static void main(String[] args) {
... | true |
2c90dc70b33f296f422d29d8e56ff687f23da394 | Java | MuhammedAlmaz/SosyalYardimAndroid | /app/src/main/java/com/muhammedalmaz/sosyalyardim/fragmentler/IhtiyacSahibiFragment.java | UTF-8 | 11,567 | 1.648438 | 2 | [] | no_license | package com.muhammedalmaz.sosyalyardim.fragmentler;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.os.Bundle;
import android.support.annotation.NonNull;
i... | true |
32fcebcb187ee2e383ea37dc035f8c5d993cfd2f | Java | yuanman001/service-mgmt-backend | /iPaaS-MDS/src/main/java/com/ai/paas/ipaas/mds/manage/util/MDSResultWrapper.java | UTF-8 | 3,297 | 1.804688 | 2 | [] | no_license | package com.ai.paas.ipaas.mds.manage.util;
import java.util.List;
import com.ai.paas.ipaas.mds.dao.mapper.bo.MdsUserSubscribe;
import com.ai.paas.ipaas.mds.manage.vo.MsgLstSubPathApplyResult;
import com.ai.paas.ipaas.mds.manage.vo.MsgSrvApply;
import com.ai.paas.ipaas.mds.manage.vo.MsgSrvApplyResult;
import com.ai.pa... | true |
b63ccedf64a35020216150cad8c11c7c04d01960 | Java | spockwangs/snippets | /compiler.in.java/ch9/Absyn/BreakExp.java | UTF-8 | 306 | 2.421875 | 2 | [] | no_license | package Absyn;
import Symbol.Symbol;
public class BreakExp extends Exp {
public BreakExp(int p) {pos=p;}
// public void display(int depth) {
// String pad = "";
// for (int i = 0; i < depth; i++)
// pad += " ";
// System.out.print(pad + "BreakExp");
// }
}
| true |
2ba4efc2d36538066394c3d50c5c80aa774ad599 | Java | achowdhury80/leetcode | /src/com/leet/algo/Prob689.java | UTF-8 | 2,857 | 3.234375 | 3 | [] | no_license | package com.leet.algo;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.stream.IntStream;
/**
* Created by ayanc on 12/21/17.
*/
public class Prob689 {
public int[] maxSumOfThreeSubarrays(int[] nums, int k) {
int n;
if(nums == null || k < 1 || (n = nums.length) == ... | true |
d780b6040c669a8b76b8cb6d3ec5e31355029ff6 | Java | stockd-uwt/Tcss360team-Redwings | /ProjectIOtest.java | UTF-8 | 2,792 | 2.875 | 3 | [] | no_license | package tests;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import model.ProjectIO;
class ProjectIOtest {
ProjectIO io;
@BeforeAll
static void setUpBeforeClass() throws Except... | true |
32f7116ba783286d4682ceebed3dae0a5c998db7 | Java | eloisecoveny/file_manager | /src/main/java/com/codeclan/example/fileManager/repositories/UserRepository.java | UTF-8 | 449 | 1.671875 | 2 | [] | no_license | package com.codeclan.example.fileManager.repositories;
import com.codeclan.example.fileManager.models.User;
import com.codeclan.example.fileManager.projections.EmbedFolders;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
@Repo... | true |
443774608e383737d3e94104c31e3ab74522201c | Java | dylanleijten/VAT-Tool | /Documents/InteliJ/VAT-Tool/src/domain/VormInt.java | UTF-8 | 138 | 2.3125 | 2 | [] | no_license | package domain;
public interface VormInt {
abstract public double giveContent();
abstract public String givePresentation();
}
| true |
6fdc37dde9a3849a496642b3c558be63bec87f25 | Java | pnisarg/selfCheckOutSystem | /src/ca/utoronto/csc301/SelfCheckOut/IntegrationTests/PurchaseLargeNumberOfItems.java | UTF-8 | 8,184 | 2.359375 | 2 | [] | no_license | package ca.utoronto.csc301.SelfCheckOut.IntegrationTests;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import ca.utoronto.csc301.SelfCheckOut.App.BIC;
import ca.utoronto.csc301.SelfCheckOut.App.Gr... | true |
63dc302b55072f510ae626e39d65d18779ff9691 | Java | cengizgoren/facebook_apk_crack | /app/com/facebook/katana/activity/BaseFacebookActivity.java | UTF-8 | 4,218 | 1.507813 | 2 | [] | no_license | package com.facebook.katana.activity;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.view.View;
import com.facebook.analytics.performance.PerformanceLogger;
import com.facebook.common.util.ErrorReporting;
import co... | true |
acbebed27f785a5c6f145596cc2d7ab573ef5d49 | Java | zhangjundong1992/JUC_Learning | /src/JUC/D16Stream.java | UTF-8 | 1,050 | 3.578125 | 4 | [] | no_license | package JUC;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
public class D16Stream {
public static void main(String[] args) {
User u1 = new User(0, 26, "e");
User u2 = new User(2, 22, "b");
User u3 = new User(3, 23, "c");
User u4 = new User(4, 24, "d"... | true |
159efb6db743fb96857b537b280d71bff16592ac | Java | Asianwyz/Java_Path | /OJ/let/num31.java | UTF-8 | 909 | 3.203125 | 3 | [] | no_license | package Lettcode.let;
import java.util.Arrays;
public class num31 {
public static void main(String[] args) {
int[] nums = {5,1,1};
nums = solution(nums);
System.out.println(Arrays.toString(nums));
}
private static int[] solution(int[] nums) {
int i = nums.length - 2;
... | true |
168dd0d60244640e51412a333ff7bd71a2ed9552 | Java | likithkancharlapalli/core-java | /src/com/lwl/cj/day1/Multiplication.java | UTF-8 | 226 | 3.171875 | 3 | [] | no_license | package com.lwl.cj.day1;
public class Multiplication {
public static void main(String[] args) {
int num1 = 5;
int num2 = 3;
int prod = num1 * num2;
System.out.println("The product of the two numbers is "+prod);
}
}
| true |
2c40e1383786aa52e3fd3a3ec8ee7ca676166b4b | Java | vimday/HappyLearning | /Java/JavaNetTest/src/com/lwf/example/net/Server.java | UTF-8 | 773 | 2.8125 | 3 | [] | no_license | package com.lwf.example.net;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
public class Server {
public static void main(String[] args) {
Product product = new Product("手机",500,10);
System.out.println("Waiting...");
ServerSocket serverSocket=null;
... | true |
56eb574c5ce2a70292855815ffe0ebb230aa0e7f | Java | HumerauDzmitry/java-learn-Strings | /src/test/java/com/humerau/developer/RemoveDuplicateCharactersFromStringTest.java | UTF-8 | 1,642 | 2.90625 | 3 | [] | no_license | package com.humerau.developer;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import java.util.Optional;
import static org.junit.jupiter.api.Assertions.*;
class RemoveDuplicateCharactersFromStringTest {
RemoveDuplicateCharactersFromSt... | true |
a437467b0db95a731e04cc088e554289abf45a26 | Java | erikaitm546/demo | /src/main/java/com/example/demo/controller/SaludoController.java | UTF-8 | 833 | 2.171875 | 2 | [] | no_license | package com.example.demo.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annota... | true |
02c8b743ea375c092603ac78a9daf9569fedb90a | Java | TeamFaulkner/FaulknerHospitalKiosk | /src/main/java/Kiosk/Controllers/MapViewController.java | UTF-8 | 12,617 | 2.296875 | 2 | [] | no_license | package Kiosk.Controllers;
import Kiosk.KioskApp;
import Map.*;
import Map.Destination;
import javafx.animation.Animation;
import javafx.animation.KeyFrame;
import javafx.animation.KeyValue;
import javafx.animation.Timeline;
import javafx.application.Platform;
import javafx.collections.ObservableList;
import javafx.ev... | true |
b94e44f95681f63f924265eda17ad0a0bbd9c8b7 | Java | abousselmi/rabbit-tracer | /src/tracer/ui/SearchUI.java | UTF-8 | 13,845 | 2.234375 | 2 | [] | no_license | /*
* Copyright 2016 Orange.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | true |
7fe6cec3c16b84eea7df7c8fca90e51b697f7c8f | Java | hellday/ProjetAndroid | /Android Game/core/src/com/mygdx/game/GameTest.java | UTF-8 | 3,298 | 2.15625 | 2 | [] | no_license | package com.mygdx.game;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.audio.Sound;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.mygdx.game.Database.DataBaseTest;
import com.mygdx.game.Effects.Particles;
import com.mygdx.game.screens.MainMenuS... | true |
f8966082b8579d87699c07172d9aad718ce876fb | Java | andriusbaltrunas/java_sql_2020_03_09 | /pirma_paskaita_03_09/src/com/kcs/example/days/third/TaskFifeReadFromFile.java | UTF-8 | 1,124 | 2.984375 | 3 | [] | no_license | package com.kcs.example.days.third;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class TaskFifeReadFromFile {
public static void main(String[] args) {
UzduotisPenkta uzduotisPenkta = new UzduotisPenkta();
try (BufferedReader bf = new BufferedReade... | true |
85fd5d65562899bb76561e8c15b87b46603bbe32 | Java | M4rtinezT/IDEA | /workspace20210316/day10/src/day10/Person.java | UTF-8 | 518 | 3.234375 | 3 | [] | no_license | package day10;
public class Person {
public static void main(String[] args) {
PersonTest test = new PersonTest();
test.setAge(5);
}
}
class PersonTest{
private int age;
private String name;
public void setAge(int a) {
if(a < 0 || a > 130) {
System.out.println("数据非法");
}else {
age = a ;
}
}... | true |
8147c34185d417af1484c198fe495ff1d6ed8f19 | Java | GasteizkoMargolariak/GasteizkoMargolariakApp | /app/src/main/java/com/ivalentin/margolariak/SettingsActivity.java | UTF-8 | 8,482 | 2.203125 | 2 | [] | no_license | package com.ivalentin.margolariak;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.Dialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import andro... | true |
4ed2584156c2f861323a399ffefccb27dad2637d | Java | programiteu/AngryNerds | /src/main/java/eu/programit/service/IAnswerService.java | UTF-8 | 273 | 1.828125 | 2 | [] | no_license | package eu.programit.service;
import eu.programit.domain.Answer;
import eu.programit.domain.Question;
public interface IAnswerService {
public Answer findOne(int id);
Answer saveAnswer(Answer answer);
Iterable<Answer> findAllByQuestion(Question question);
}
| true |
4041e6e4e716a735cd2841c0e64dd327a1af938d | Java | smarr/effortless-language-servers | /server/org.eclipse.lsp4j-gen/org/eclipse/lsp4j/FileOperationPattern.java | UTF-8 | 5,961 | 2.09375 | 2 | [
"MIT"
] | permissive | /**
* Copyright (c) 2016-2018 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://ww... | true |
98657fb98e774cb4fb9b95fdf56ca12f584770a0 | Java | jtLiBrain/examples-scala-spark | /scala-quality/src/test/java/JavaExampleTest.java | UTF-8 | 240 | 2.21875 | 2 | [] | no_license | import java.util.Date;
import static org.junit.Assert.assertEquals;
public class JavaExampleTest {
@org.junit.Test
public void testSum() {
assertEquals(new JavaExample().sum(1, 5), 6);
new Date().getTime()
}
}
| true |
8dd9e666080ed57bce231b0239e878e905e8d408 | Java | N3X15/MinecartMania | /src/com/afforess/minecartmaniacore/event/MinecartSpeedMultiplierEvent.java | UTF-8 | 1,565 | 2.46875 | 2 | [
"CC-BY-3.0"
] | permissive | package com.afforess.minecartmaniacore.event;
import org.bukkit.event.Cancellable;
import org.bukkit.event.HandlerList;
import com.afforess.minecartmaniacore.minecart.MinecartManiaMinecart;
public class MinecartSpeedMultiplierEvent extends MinecartManiaEvent implements Cancellable {
private final MinecartMa... | true |
e7934410dce902574a1945eeaa3b050323fc46a8 | Java | desibankproject/java8-ocp | /src/datatime/Basket.java | UTF-8 | 946 | 3.359375 | 3 | [] | no_license | package datatime;
import java.util.ArrayList;
import java.util.List;
final public class Basket {
final private String name;
final private int price;
final private List<String> fruits;
public Basket(String name, int price) {
super();
this.name = name;
this.price = price;
fruits=new ArrayList... | true |
e2a89c41749029462ea48741bd1530c6dfd4f9f4 | Java | Antoinep77/myUber | /Group38_Project_IS1220_part1_Abbahaddou_Paris/src/Rides/Pool.java | UTF-8 | 5,348 | 3.0625 | 3 | [] | no_license | package Rides;
import java.util.ArrayList;
import java.util.stream.Collectors;
import GPS.GPScoordinates;
import customersAndDrivers.Driver;
import customersAndDrivers.DriverState;
import myUber.MyUber;
public class Pool {
/**
* The list of shared rides
*/
private ArrayList<UberPool> listPoolRide... | true |
3aaf0fde7c209945fcabcb93aeff3ab37d13e53b | Java | jaspionjpg/livraria-androidnativo | /app/src/main/java/livraria/richardmartins/com/br/livraria/EditarLivro.java | UTF-8 | 5,783 | 1.929688 | 2 | [] | no_license | package livraria.richardmartins.com.br.livraria;
import android.content.ContentValues;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.v7.app.AppCompatActivity;
im... | true |
52dab0a4b9c2e0596ca1cea5125cde650cdf6dbf | Java | railroadman/excel_spring_microservices | /document-manager/src/main/java/com/nayax/intern/microservices/document_manager/helper/Helper.java | UTF-8 | 4,198 | 2.546875 | 3 | [] | no_license | package com.nayax.intern.microservices.document_manager.helper;
import com.nayax.intern.microservices.document_manager.exception.DocumentFormatException;
import org.apache.poi.ss.usermodel.DateUtil;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.time.LocalDate;
import java.time.format.Date... | true |
5f012ae9aaed903d2b27b950a1d4e3aa251fb099 | Java | QiannanWu/FinalProject0 | /src/instayak/serialization/InstaYakCredentials.java | UTF-8 | 4,249 | 3.046875 | 3 | [] | no_license | /************************************************
*
* Author: Qiannan Wu
* Assignment: Program 1
* Class: CSI4321
*
************************************************/
package instayak.serialization;
import java.io.IOException;
/**
* Represents a InstaYakCredential message and provides serialization/deseri... | true |
08601ec224bf7144b908f9d9bf4472644ade3547 | Java | sebaudracco/bubble | /com/onesignal/NotificationExtenderService.java | UTF-8 | 6,685 | 1.96875 | 2 | [] | no_license | package com.onesignal;
import android.app.IntentService;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.v4.app.NotificationCompat.Extender;
import com.onesignal.OneSignal.LOG_LEVEL;
import org.json.JSONException;... | true |
f3a45eb5079b19555bed1fbed079c8dbeb225a68 | Java | CloudOnboarding/OnboardingProcess | /src/pageObjects/Verifycation2Factor_Page.java | UTF-8 | 3,002 | 2.0625 | 2 | [] | no_license | package pageObjects;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import utility.Log;
import utility.psUtility;
public class Verifycation2Factor_Page extends BaseClass {
public static String VerfCode;
private static WebElement element;
public Verifycation2Factor_Page(WebDriver dr... | true |
94cd5442b6e7408f529cabedf89421ed0a07d6b7 | Java | xuh-code/spring-cloud-example | /cn.xuhweb.auth-service-7060/src/main/java/cn/xuhweb/auth/component/mobile/MobileAuthenticationFilter.java | UTF-8 | 2,751 | 2.296875 | 2 | [] | no_license | //package cn.xuhweb.auth.component.mobile;
//
//import cn.xuhweb.common.constant.SecurityConstants;
//import org.springframework.security.authentication.AuthenticationServiceException;
//import org.springframework.security.core.Authentication;
//import org.springframework.security.core.AuthenticationException;
//import... | true |
30ada3a0aad1a418f6d90a55a6dfad08f040adf1 | Java | kairo741/AgendaOO | /src/main/java/Service/ContatoService.java | UTF-8 | 137 | 1.859375 | 2 | [] | no_license | package Service;
public interface ContatoService {
void salvarContato();
void buscarContato();
void deletarContato();
}
| true |
662a822b9d408aff8e3cc2a8be4dafca14e86e48 | Java | H4ppY1/hhome-service | /hhome-service-manage/src/main/java/com/happy/hhome/util/DateExUtils.java | UTF-8 | 4,936 | 3.15625 | 3 | [] | no_license | package com.happy.hhome.util;
import org.apache.commons.lang3.time.DateUtils;
import org.springframework.stereotype.Component;
import java.math.BigDecimal;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.time.tempor... | true |
74206861579951ca1af1f9a854c8195dc655469f | Java | cha63506/CompSecurity | /skype-source/src/com/skype/android/util/accessibility/AccessibilityUtil$5.java | UTF-8 | 813 | 1.710938 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.skype.android.util.accessibility;
import android.view.ViewGroup;
// Referenced classes of package com.skype.android.util.accessibil... | true |
ed12a2bd4268e2041b774d77ba9a76c24a48af05 | Java | lirengui/spring-webflux-security-jwt | /src/main/java/io/natsusai/spring/reactive/security/config/SecurityConfiguration.java | UTF-8 | 4,249 | 2.109375 | 2 | [] | no_license | package io.natsusai.spring.reactive.security.config;
import io.natsusai.spring.reactive.security.auth.CustomAuthorityReactiveAuthorizationManager;
import io.natsusai.spring.reactive.security.auth.DomainReactiveUserDetailsService;
import io.natsusai.spring.reactive.security.auth.jwt.JWTReactiveAuthenticationManager;
im... | true |
1cb68788378190683919258668828eb32fe992c6 | Java | wrtking/WaveCircleProgressView | /src/main/java/com/example/wavedemo/RainItem.java | UTF-8 | 1,880 | 2.546875 | 3 | [] | no_license | package com.example.wavedemo;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.util.Log;
import java.util.Random;
/**
* Created by wenruitao on 2018/6/1.
*/
public class RainItem {
private int width;
private int height;
//圆球
private int centerX;
private int center... | true |
d571793d0e035a0567ae7c572b5ea91eb5aac275 | Java | hichamrayan/testHicham | /src/main/java/ca/hicham/test/model/Role.java | UTF-8 | 773 | 2.25 | 2 | [] | no_license | package ca.hicham.test.model;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
@Entity
public class Role {
@Id
@GeneratedValue
private Long id;
private... | true |
b205b4bc9664d11378addf232e9dd88ebf597cc2 | Java | wang1433256766/GJS_bookMgnSys | /classes/cn/com/miaoto/modules/userInfo/impl/GetAllUsersServiceImpl.java | UTF-8 | 2,480 | 2.1875 | 2 | [] | no_license | package cn.com.miaoto.modules.userInfo.impl;
import cn.com.miaoto.common.mvcBean.AbstractService;
import cn.com.miaoto.dao.inf.RoleDao;
import cn.com.miaoto.dao.inf.UserInfoDao;
import cn.com.miaoto.modules.userInfo.inf.GetAllUsersService;
import cn.com.miaoto.modules.userInfo.model.GetAllUserInfoReq;
import cn.com.mi... | true |
4c548d12a2d9b40c472ab1a65e228f6a7c9e5a5c | Java | XVNYATA/javaSE | /day15/fileTest/src/org/fkjava/fileTest/FileTest文件遍历.java | GB18030 | 647 | 2.78125 | 3 | [] | no_license | package org.fkjava.fileTest;
import java.io.File;
/**
* @Author xlei
* @Tel 13360026135
* @Email 251425887@qq.com
* @Version 1.0
* @Time 201643010:24:55
* @From www.fkjava.org
*
*/
public class FileTestļ {
public static void main(String[] args) {
/** ȡһļ */
File file = new File("D:\\fkja... | true |
dee8dac639625db1ba9142f4ca47f8e3254d2cb6 | Java | BrkingYan/Learning | /src/SwordToOffer/NK29/GetLeastNumbers_Solution/Solution.java | GB18030 | 858 | 3.53125 | 4 | [] | no_license | package SwordToOffer.NK29.GetLeastNumbers_Solution;
import java.util.ArrayList;
import java.util.Collections;
/*
* nҳСK
* 4,5,1,6,2,7,3,88֣С41,2,3,4,
* */
class Solution {
public ArrayList<Integer> GetLeastNumbers_Solution(int[] input, int k) {
ArrayList<Integer> list = new ArrayList<>();
if (k > ... | true |
a174df88dd4947df6fe43f7adc56d00759f13491 | Java | Glitchero/dataprice | /src/main/java/com/dataprice/repository/systemsettings/SystemSettingsRepository.java | UTF-8 | 258 | 1.53125 | 2 | [
"Apache-2.0"
] | permissive | package com.dataprice.repository.systemsettings;
import org.springframework.data.jpa.repository.JpaRepository;
import com.dataprice.model.entity.SystemSettings;;
public interface SystemSettingsRepository extends JpaRepository<SystemSettings, Integer>{
}
| true |
4635eb8395e3926a102d8fc400a5bd17ae44d25c | Java | HailMichael/Age | /persondriver.java | UTF-8 | 848 | 3.765625 | 4 | [] | no_license | public class persondriver {
/**
* Michael Hailemariam
* CSC 200
* 5.2
*/
public static void main (String [] args) {
person person1 = new person();
System.out.println(person1);
person person2 = new person("Michael", 23);
System.out.println(person2);
if (person1.equals(person2)) {
System.out.println... | true |
e615870ded057246571f4968a6c9ec13625eb8cf | Java | gustavious/valor | /src/co/edu/uniandes/valorAndes/servlets/ServletRCF2.java | UTF-8 | 2,737 | 2.671875 | 3 | [] | no_license | package co.edu.uniandes.valorAndes.servlets;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import co.edu.uniandes.valorAndes.vos.OperacionValue;
@SuppressWarnings("serial")
... | true |
275990d2fc9e86be3c27d7c3f8efb10f6a50b212 | Java | bahyhelmihp/si-labor | /src/main/java/com/apap/silabor/rest/LabResult.java | UTF-8 | 824 | 1.929688 | 2 | [] | no_license | package com.apap.silabor.rest;
import java.sql.Date;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class LabResult {
private String jenis;
private String hasil;
private Date tanggalPengajuan;
private PasienTest pasien;
public String getJeni... | true |
bdc77c2a90a53987222144e5ed05dbbbe1382ad7 | Java | wei0820/RayZhangAlbum | /rzalbum/src/main/java/com/rayzhang/android/rzalbum/RZAlbum.java | UTF-8 | 5,681 | 1.828125 | 2 | [
"Apache-2.0"
] | permissive | package com.rayzhang.android.rzalbum;
/*
* Created by Ray on 2017/2/10.
* RZAlbum
* 調用入口類
*/
import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.support.annotation.ColorInt;
import android.support.annotation.DrawableRes;
impo... | true |
fdd016841286e86df8bed40b9234663de01adf3d | Java | brandaphoon/cs2030 | /AssignmentStage3level4/cs2030/simulator/ServedEvent.java | UTF-8 | 2,147 | 3.390625 | 3 | [] | no_license | package cs2030.simulator;
import java.util.Queue;
/**
* ServedEvent class that represents a CustomerEvent when a customer is being
* served.
*/
public class ServedEvent extends CustomerEvent {
/**
* The completion time of the service.
*/
private double doneTime;
/**
* The server that... | true |
5684b2fc7b6c3b30d073dc2b0bb5acfe53f547d5 | Java | wangwangla/qiuzhao | /毕设/毕业设计/jboot-admin/jboot-admin/src/main/java/io/jboot/admin/controller/warehouse/WarehouseInController.java | UTF-8 | 3,445 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | package io.jboot.admin.controller.warehouse;
import com.jfinal.plugin.activerecord.Page;
import io.jboot.admin.base.common.RestResult;
import io.jboot.admin.base.exception.BusinessException;
import io.jboot.admin.base.interceptor.NotNullPara;
import io.jboot.admin.base.rest.datatable.DataTable;
import io.jboo... | true |
fcb3cf7147835acb2388cff4327cac351fd091ee | Java | objectledge/cyklotron | /cyklotron-ui/src/main/java/net/cyklotron/cms/modules/rest/category/CategoryDto.java | UTF-8 | 2,528 | 2.1875 | 2 | [] | no_license | package net.cyklotron.cms.modules.rest.category;
import java.util.ArrayList;
import java.util.Collection;
import org.apache.commons.lang3.Validate;
import org.objectledge.coral.datatypes.ResourceList;
import net.cyklotron.cms.category.CategoryResource;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import c... | true |
3191f4a8c59fbdb5ba84715871efe0f7e482a982 | Java | Landrice/AmicaleGeMaPre | /src/gettersSetters/ListProduitsFinies.java | UTF-8 | 3,466 | 2.09375 | 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 gettersSetters;
/**
*
* @author Ralande
*/
public class ListProduitsFinies {
public String id;
public ... | true |
fb92874d4e9a80ddbc73f81fba4d41e9df83e33f | Java | wks1222/mobius-source | /java/lineage2/gameserver/model/instances/MerchantInstance.java | UTF-8 | 8,166 | 1.757813 | 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 will be u... | true |
cb8188584807d6153e4204c233fd08f1cbfbe229 | Java | balaji043/spring-boot-billing-system | /src/main/java/com/bam/bs/dto/CustomerDto.java | UTF-8 | 560 | 1.953125 | 2 | [] | no_license | package com.bam.bs.dto;
import java.io.Serializable;
import com.bam.bs.util.CustomerType;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class CustomerDto implements Serializable {
/**
* SerialVersionUID
*/
private static final long serialVersionUID = 1L;
private Long id;... | true |