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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
de3ed5e0694b67db344e24f60f9b764a043f3b79 | Java | cnbusiness/hd-cloud-boss | /src/main/java/com/hd/cloud/domain/TopicSection.java | UTF-8 | 1,719 | 1.851563 | 2 | [] | no_license | package com.hd.cloud.domain;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Builder;
/**
*
* @ClassName: TopicSection
* @Description: 话题实体
* @author yaojie yao.jie@hadoop-tech.com
* @Company hadoop-tech
* @date 2018... | true |
19ba819781b6a2503ec2a359823022f3028f21fd | Java | moutainhigh/bondoldpro | /bond/bond-service/src/main/java/com/innodealing/oss/UploadOss.java | UTF-8 | 5,119 | 2.3125 | 2 | [] | no_license | package com.innodealing.oss;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.facto... | true |
661b8bf128963f525ad11a82040c94bf4e28b6d1 | Java | bouyass/java-room-chat-using-socket- | /ConsoleColors.java | UTF-8 | 193 | 2.078125 | 2 | [] | no_license | package chatRoom;
public class ConsoleColors {
public static final String RESET = "\033[0m"; // Text Reset
public static final String GREEN = "\033[0;32m"; // GREEN
}
| true |
bc722bbbb55de892e30c52a9f4b41d3ccfac4fd6 | Java | HERO5/SparkDroid | /app/src/main/java/com/mrl/sparkdroid/PythonTest.java | UTF-8 | 2,803 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | package com.mrl.sparkdroid;
import android.util.Log;
import com.chaquo.python.Kwarg;
import com.chaquo.python.PyObject;
import com.chaquo.python.Python;
import java.util.ArrayList;
import java.util.List;
public class PythonTest {
public static final String TAG = "PythonTest";
public synchronized static vo... | true |
727d35a38320e7d58b68e8528a65d8d292114326 | Java | suhren/topdown-game | /src/ui/EquipUI.java | UTF-8 | 1,971 | 2.625 | 3 | [] | no_license | package ui;
import itemFramework.ActorItems;
public class EquipUI extends ItemFrame {
private static final String TITLE = "Equipment";
private static final int ICON_DISTANCE = 4;
private static final int COLUMN_WIDTH = 100;
private static final int PADDING = 4;
private static final double ACTOR_PREVIEW_MAGNIFICA... | true |
7b5ef9cdcdd389c55270cc39d1384d785831881b | Java | davidleyendecker/zahlenraten | /src/wk/practices/improved/Zahlenraten.java | UTF-8 | 2,674 | 3.21875 | 3 | [] | no_license | package wk.practices.improved;
import java.util.Scanner;
import java.util.concurrent.ThreadLocalRandom;
public class Zahlenraten {
private static final int ANZAHL_VERSUCHE = 5;
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int zufallszahl = 0;
... | true |
295d779445e5bf6a6dcd194c331d6481018d4adc | Java | freitzzz/edom-19-20-atb-21 | /freitas/increment1/mindmap/src/mindmap/GenerateMindMapUsingCircles.java | UTF-8 | 3,075 | 2.8125 | 3 | [] | no_license | package mindmap;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.R... | true |
f0deff55e8e73cdcc6d61c846d10b82a341273bc | Java | joyoyao/blade | /src/main/java/com/javaxxz/core/interfaces/IRender.java | UTF-8 | 302 | 1.546875 | 2 | [] | no_license |
package com.javaxxz.core.interfaces;
import com.javaxxz.core.aop.AopContext;
public interface IRender {
public void renderIndexBefore(AopContext ac);
public void renderAddBefore(AopContext ac);
public void renderEditBefore(AopContext ac);
public void renderViewBefore(AopContext ac);
}
| true |
b3e942c9f2c0c36cb399932ae50f3558d7703310 | Java | SuitedTo/suited-to | /app/scheduler/Task.java | UTF-8 | 2,191 | 2.484375 | 2 | [] | no_license | package scheduler;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import controllers.Application;
import play.Logger;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import java.util.concurrent.Callable... | true |
2f9e6aa6070ebe10f2aeeb3810fe31bbd461904b | Java | toBeBusy/netmusic | /netmusic-spider/src/main/java/music/spider/service/SongService.java | UTF-8 | 678 | 2.046875 | 2 | [] | no_license | package music.spider.service;
import music.spider.jooq.tables.daos.MusicSongDao;
import music.spider.jooq.tables.pojos.MusicSong;
import org.jooq.DSLContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.List;
import static music.spid... | true |
823d8d15abe80d5bd91bd64585c5f37581f6500c | Java | dgeron/partcq2erg3 | /HRMApp/app/src/main/java/eu/dsgsystems/hrmapp/custom/MyCustomFormatter.java | UTF-8 | 413 | 2.296875 | 2 | [] | no_license | package eu.dsgsystems.hrmapp.custom;
import com.github.mikephil.charting.components.AxisBase;
import com.github.mikephil.charting.formatter.IAxisValueFormatter;
/**
* Created by Dimitris on 11/2/2018.
*/
public class MyCustomFormatter implements IAxisValueFormatter{
public MyCustomFormatter(){}
@Override
... | true |
ff28937c67346856e1180e62a589b31367298527 | Java | lpj0017/TVLauncher1 | /src/tv/aosp/launcher/FavoriteInfo.java | UTF-8 | 594 | 2.421875 | 2 | [] | no_license | package tv.aosp.launcher;
/**
* Created with IntelliJ IDEA.
* User: alsutton
* Date: 13/09/2012
* Time: 10:49
* To change this template use File | Settings | File Templates.
*/
public class FavoriteInfo {
public String packageName;
public String name;
public int position;
/**
* Null constru... | true |
85add8fee4d2fd06d4f9bf31453ecae9ff366cee | Java | ntnprdhmm/codefights | /arcade/land_of_logic/spiralNumbers.java | UTF-8 | 974 | 2.90625 | 3 | [] | no_license | int[][] spiralNumbers(int n) {
int[][] output = new int[n][n];
int startRow = 0, startCol = 0, i = 0;
int endRow = n, endCol = n;
int c = 1;
while (startRow < endRow && startCol < endCol) {
for (i = startCol; i < endCol; i++) {
output[startRow][i] = c++;
}
// we... | true |
98bd70049cb398bc35f835d90e5f01811c482784 | Java | Manotass/CallCenterEjercicio | /src/test/java/DispatcherTest.java | UTF-8 | 3,419 | 2.640625 | 3 | [] | no_license | import org.junit.Before;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class DispatcherTest {
/**TEST UNITARIO QUE SE ENCARGA DE COMPROBAR QUE LOS HILOS SE ESTEN ASIGNADO DE MANERA ADEUCADA*/
@org.junit.jupiter.api.Test
void administradorLLamadas() {
Dispat... | true |
63b7830625c082cfc3caac98d91a33184fa46126 | Java | maciej-pajak/Workshop2 | /src/pl/maciejpajak/schoolAdmin/DbUtils.java | UTF-8 | 670 | 2.375 | 2 | [] | no_license | package pl.maciejpajak.schoolAdmin;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class DbUtils {
private static final String DB_URL = "jdbc:mysql://localhost/coding_school?useSSL=false";
private static final String DB_USER = "root";
private static fi... | true |
9fd8816693058bd3015319223be62b929883459c | Java | MrHalley/SpringInAction5 | /ch2/tacos-cloud/src/main/java/tacos/web/DesignController.java | UTF-8 | 3,490 | 2.515625 | 3 | [] | no_license | package tacos.web;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.Banner;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.Errors;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bi... | true |
639b1c405bbc54e1d8f6ffbdd6b2a95080107847 | Java | yun2-ee/hotel | /src/board/gallService/GetGallListPage.java | UTF-8 | 2,311 | 2.21875 | 2 | [] | no_license | package board.gallService;
import java.util.List;
import board.gall.GallDTO;
import board.gall.GallImgDTO;
public class GetGallListPage {
private int total;
private int currentPage;
private List<GallDTO> content;
private List<GallImgDTO> img;
private int totalPage;
private int startPage;
p... | true |
e7a7bda8efe6439f2c42ab916d931dced8c6f205 | Java | FlowShift/Flow | /src/gwt/client/frame/LevelUpFeeder.java | UTF-8 | 1,829 | 2.125 | 2 | [
"BSD-3-Clause"
] | permissive | //
// $Id$
package client.frame;
import java.util.Map;
import com.threerings.msoy.facebook.gwt.FacebookService.StoryKey;
import com.threerings.msoy.facebook.gwt.FacebookService;
import client.facebookbase.FacebookUtil;
import client.facebookbase.StoryFeeder;
import client.shell.CShell;
/**
* Publishes a level up ... | true |
a86624e8095c2d1a988478f1bde5ab22fb471783 | Java | alirezaasghari/objectorientedprogramming-template | /src/oop/pset1/Pset1Main.java | UTF-8 | 592 | 2.640625 | 3 | [] | no_license | package oop.pset1;
import oop.pset1.controller.MovieDatabaseSummarizer;
import oop.pset1.model.Summary;
import oop.pset1.view.SummaryDisplayer;
import java.util.Optional;
public class Pset1Main {
public static void main(String[] args) {
MovieDatabaseSummarizer summarizer = new MovieDatabaseSummarizer();... | true |
b73edc7b59d1fa6416c733b23a0c3ca07b8e1c76 | Java | AkshayDarekar29/DataStructure_Algorithm | /LeetCodePractise/src/graph/NumberOfIslands/NumberOfIslands.java | UTF-8 | 3,026 | 3.46875 | 3 | [] | no_license | package graph.NumberOfIslands;
import java.util.Arrays;
public class NumberOfIslands {
/* Approach 1 :
* Time Complexity : O(m*n), where E is number of edges
* Space Complexity : O(m*n)
*/
int m;
int n;
public int numIslands(char[][] grid) {
m = grid.length;
if(m == 0){
... | true |
010320df2270b63107ec400a14d1f8180c9c408d | Java | enrichoalkalas01/Java | /Konstanta.java | UTF-8 | 280 | 3.046875 | 3 | [] | no_license | class Konstanta {
static int radius;
static final double PI = 3.14;
public static void main(String[] args) {
Konstanta.radius = 7;
double luas = (Konstanta.radius * Konstanta.radius) * Konstanta.PI;
System.out.print(luas);
}
} | true |
0e45b1b4d24ce3704c6b64c7b564c1cd61f30ba6 | Java | AntoineViau/ThiefTracker | /src/org/thieftracker/Command_realmode.java | UTF-8 | 692 | 2.578125 | 3 | [] | no_license | package org.thieftracker;
public class Command_realmode extends Command {
public void execute() {
Contacter contacter = ThiefTracker.getContacter();
PreferencesService preferencesService = ThiefTracker.getPreferencesService();
String parameter = this.getParameter(0).toLowerCase();
if ( parameter.e... | true |
3ca4205127e079583c45525682341630822fc9b1 | Java | xiaolongyuan/QingTingCheat | /src/org/jdom/IllegalNameException.java | UTF-8 | 880 | 1.835938 | 2 | [] | no_license | package org.jdom;
public class IllegalNameException extends IllegalArgumentException
{
private static final String CVS_ID = "@(#) $RCSfile: IllegalNameException.java,v $ $Revision: 1.14 $ $Date: 2007/11/10 05:28:59 $ $Name: jdom_1_1_1 $";
public IllegalNameException(String paramString)
{
super(paramString);... | true |
d81ea5768b2b2b9b60590108ca9aa958b24ca69a | Java | CaroGomez/LaSalleBello | /gestionacademicaSB/src/main/java/com/lasalle/gestionacademicaSB/dto/NotaDto.java | UTF-8 | 2,041 | 2.140625 | 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 com.lasalle.gestionacademicaSB.dto;
/**
*
* @author Alexis Herrera
*/
import javax.validation.constraints.NotNull;
import j... | true |
449983fc022a7cf06b8b71b63a69c3183c7ebe28 | Java | kqpham/BankingApp | /BankingApp/src/ontario/accounts/Chequing.java | UTF-8 | 5,205 | 3.171875 | 3 | [] | no_license | package ontario.accounts;
import java.text.DecimalFormat;
/**
* Created by Faiq on 2/13/2016.
*/
public class Chequing extends Account {
private double serviceCharge;
private int maxTransactions;
private int tempMaxTransactions;
private int counter =0;
private double[] transactions... | true |
f049ce538ea905b5820442f1cd966fefec3d9070 | Java | sejoung/spring-boot-batch-json2db | /src/main/java/com/github/sejoung/configuration/PartitionerBatchConfiguration.java | UTF-8 | 6,534 | 1.640625 | 2 | [
"MIT"
] | permissive | package com.github.sejoung.configuration;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import javax.sql.DataSource;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.StepContribution;
import org.... | true |
4cc40f653e59966d8f354f4ee6e9898219f8436f | Java | nareshmiriyala/poc-WebClientHttpInvokerRequestExecutor | /spring-remoting/remoting-http/remoting-http-client/src/main/java/com/baeldug/client/Client.java | UTF-8 | 1,317 | 2.171875 | 2 | [
"MIT"
] | permissive | package com.baeldug.client;
import com.baeldung.api.BookingException;
import com.baeldung.api.CabBookingService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.remotin... | true |
dd527b7ba764ece927ed8c748ea8ac0d27dfd563 | Java | rajeshjagarlamudi9/hrp_new | /HRP_App_Version1/src/main/java/com/hrp/service/UserServiceImpl.java | UTF-8 | 957 | 2.109375 | 2 | [] | no_license | package com.hrp.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.hrp.dao.UserDao;
import com.hrp.model.Answer;
import com.hrp.model.User;
... | true |
dd83160e3d4b4a19866f67a85c6cc995751a72f8 | Java | WonYong-Jang/algorithm | /src/com/company/leetcode/leetcode179.java | UTF-8 | 1,046 | 3.265625 | 3 | [] | no_license | package com.company.leetcode;
public class leetcode179 {
public static void main(String[] args) {
// TODO Auto-generated method stub
}
}
/**
class Solution {
public String largestNumber(int[] nums) {
PriorityQueue<String> que = new PriorityQueue<>(new mySort());
... | true |
b9711601fa89f6d8671d7cf356888b721b48717a | Java | MountLion/DroidQuest | /src/com/droidquest/InLevel.java | UTF-8 | 234 | 2 | 2 | [
"MIT"
] | permissive | package com.droidquest;
import com.droidquest.levels.Level;
public interface InLevel {
default Level level() {
return gameState().getLevel();
}
default GameState gameState() {
return GameState.instance();
}
}
| true |
979f84bd281e7116eb5e8c6482bd8c22ac70a6a4 | Java | moutainhigh/source-data-router | /bts-common-report/src/test/java/com/globalegrow/bts/report/UrlUtils.java | UTF-8 | 3,119 | 2.890625 | 3 | [] | no_license | package com.globalegrow.bts.report;
import sun.misc.BASE64Decoder;
import java.io.ByteArrayOutputStream;
public class UrlUtils {
/**
* URL 加密 这是把中文转码
* <p>编码格式:utf-8</p>
*/
public final static String urlEncode(String s) {
try {
return notEmpty(s) ? java.net.URLEncoder.en... | true |
b4ed4935b207415ee03d6ce048b83dc8b486efc3 | Java | rezaparvizi/Arch | /src/main/java/reducer2.java | UTF-8 | 1,066 | 2.765625 | 3 | [] | no_license | /*
* @author Saurabh Nailwal
*/
import java.io.IOException;
import java.util.Iterator;
import org.apache.hadoop.mapred.*;
import org.apache.hadoop.io.*;
public class reducer2 extends MapReduceBase implements Reducer<Text, Text, Text, Text>{
public void reduce(Text key, Iterator<Text> value,
OutputCollector<T... | true |
039cc194185717d5a215786fa210d0ef67b42b66 | Java | robindrew/turnengine-client-api | /src/generated/java/com/turnengine/client/api/local/storage/SetStorageItemXmlSerializer.java | UTF-8 | 1,954 | 2.28125 | 2 | [] | no_license | package com.turnengine.client.api.local.storage;
import com.robindrew.codegenerator.api.serializer.xml.IXmlReader;
import com.robindrew.codegenerator.api.serializer.xml.IXmlSerializer;
import com.robindrew.codegenerator.api.serializer.xml.IXmlWriter;
import com.robindrew.codegenerator.api.serializer.xml.serializer.lan... | true |
063774ddcb7c34cdd23f131423b1073b0939a8a6 | Java | Hagetchi/CreepyWare-0.2.0 | /src/main/java/dev/fxcte/creepyware/features/modules/player/StashLogger.java | UTF-8 | 4,293 | 1.921875 | 2 | [] | no_license | //
// Decompiled by Procyon v0.5.36
//
package dev.fxcte.creepyware.features.modules.player;
import dev.fxcte.creepyware.features.command.Command;
import com.mojang.realmsclient.gui.ChatFormatting;
import net.minecraft.client.audio.ISound;
import net.minecraft.client.audio.PositionedSoundRecord;
import net.minecraf... | true |
1de32c022fabcbbfcb10661f69a388a13e4e0240 | Java | sumaliJayasinghe/AlgorithmsPractice | /PrimeNumbers/PrimeNumbers.java | UTF-8 | 612 | 3.703125 | 4 | [] | no_license | class PrimeNumbers{
public static void main(String args[]){
int num = 3;
int n = 0;
boolean flag = true;
n= num / 2;
if(num == 0 || num == 1){
System.out.println(num + " is not a prime number");
}else{
for(int i = 2; i < n; i++){
... | true |
bd9719d7973b49f915c72a3a3e1af81e498e092c | Java | sagarjadhav180/Thanos | /CFA_API/src/com/convirza/tests/selenium/utils/WaitExecuter.java | UTF-8 | 256 | 2.03125 | 2 | [] | no_license | package com.convirza.tests.selenium.utils;
public class WaitExecuter {
public static void sleep(int milisec) {
try {
Thread.sleep(milisec);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
| true |
6ecf9e02ba262b7ee35927649d9419a5172ad771 | Java | shenyanxiao/hitao_cloud | /hitao_system/src/main/java/com/hzit/SystemMicroService8080.java | UTF-8 | 405 | 1.53125 | 2 | [] | no_license | package com.hzit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@SpringBootApplication
@EnableDiscoveryClient
public class SystemMicroService8080 {
public static void m... | true |
5d861356060873b6b9b4388e959c3e0bddcaed32 | Java | lparis/CSE110 | /cse110-project/src/week3/Lab4.java | UTF-8 | 1,823 | 3.859375 | 4 | [] | no_license | package week3;
import java.util.Scanner;
//***********************************************************
//Name: Lorenzo Paris
//Title: Lab4.java
//Author: Lorenzo Paris
//Description: Loops
//FOR: CSE110 Lab 4
//Time spent: 90 minutes
//Date: 6/9/2019
//**************************************************************
pu... | true |
d22c2eb0c79145b9a22e41fd7e5e3ce358fbc209 | Java | hsparfel/MonPilulierV2 | /app/src/main/java/com/pouillos/monpilulier/activities/afficher/AfficherRdvAnalyseActivity.java | UTF-8 | 14,162 | 1.585938 | 2 | [] | no_license | package com.pouillos.monpilulier.activities.afficher;
import android.app.TimePickerDialog;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.MotionEvent;
import android.view.V... | true |
5025896074a4300186b0bc39f46ae3a142063bd3 | Java | NavruzshoevDaniel/Resume | /Backend/resume/src/main/java/ru/nsu/g/dnavruzshoev/resume/service/mapper/IMapper.java | UTF-8 | 183 | 1.96875 | 2 | [] | no_license | package ru.nsu.g.dnavruzshoev.resume.service.mapper;
/**
* @param <D> Entity
* @param <E> DTO
*/
public interface IMapper<E, D> {
E toEntity(D dto);
D toDto(E entity);
}
| true |
2acc3f2322589f8384002f4a7b13b45726d8f567 | Java | itsokbitch/SocialSDK | /src/eclipse/plugins/com.ibm.commons/src/com/ibm/commons/platform/EclipsePlatformFactory.java | WINDOWS-1252 | 1,937 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright IBM Corp. 2012
*
* 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 t... | true |
04c424eeeac923f4b84d34835ede651136225431 | Java | 2505beto/curso_java | /Demo7/src/demo7/Constructor.java | UTF-8 | 400 | 3.328125 | 3 | [] | no_license |
package demo7;
public class Constructor {
public static void main(String[] args)
{
Cilindro cilindro01 = new Cilindro((float) 4.5, (float) 18.5);
System.out.println("Radio: "+cilindro01.obtenerRadio()+" m");
System.out.println("Altura: "+cilindro01.obtenerAltura()+"m");
... | true |
11ca355b14a7923a90f9468780a30a121eb0d1f6 | Java | soakaqua/petSittingV3 | /petSitting_BackV3/src/main/java/model/Sitter.java | UTF-8 | 4,520 | 2.359375 | 2 | [] | no_license | package model;
import java.util.List;
import java.util.Set;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.EntityManager;
import javax.persistence.OneToMany;
import repositories.DaoAnnonce;
import repositories.DaoAnnonceFactory;
import repositories.DaoReponse;
... | true |
284018a09f94230ecc5eafa5efd42cf9861b7a42 | Java | shiguanqing/hello | /src/study/Animal.java | UTF-8 | 118 | 2.1875 | 2 | [] | no_license | package study;
public class Animal
{
public void bark()
{
System.out.println("animal bark");
}
}
| true |
d11cb88707e2f5cc0afd4b4915f3abb7609f358e | Java | xlabcba/MapReduce-and-Spark | /hw2/src/main/java/noCombiner/StationRecordWritableWithNoCombiner.java | UTF-8 | 1,400 | 2.9375 | 3 | [] | no_license | package noCombiner;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.io.Writable;
public class StationRecordWritableWithNoCombiner implements Writable {
private Text type;
private double temp;
public StationRecordWritab... | true |
7fcab831d11c4c31d10535c6fa4a74ec7af8b525 | Java | HOMMIEMIN/TeamJT | /app/src/main/java/com/example/homin/test1/MypageFragment.java | UTF-8 | 33,277 | 1.5625 | 2 | [] | no_license | package com.example.homin.test1;
import android.Manifest;
import android.annotation.SuppressLint;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.graphics.Bitmap;
i... | true |
4fedda447c8968023eb4e73f1677991b31c92d17 | Java | moutainhigh/yili-onlineshop | /fushionbaby-order/src/main/java/com/fushionbaby/order/service/OrderFeeService.java | UTF-8 | 435 | 1.859375 | 2 | [] | no_license | package com.fushionbaby.order.service;
import com.fushionbaby.order.model.OrderFee;
public interface OrderFeeService <T extends OrderFee>{
OrderFee findByOrderCode(String orderCode);
OrderFee findByOrderFeeId(Long id);
OrderFee findByMemberIdAndOrderCode(Long memberId, String orderCode);
/** 用于测... | true |
1c2fd0b3001058f44128066a37eb4ebae1bea18c | Java | mikebychkov/grokking | /src/stream_api/ToMap.java | UTF-8 | 728 | 3.34375 | 3 | [] | no_license | package stream_api;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
public class ToMap {
public static void main(String[] args) {
List<Integer> list = List.of(1, 5, 3, 2, 7);
Map<Integer, Integer> map = list.stream().collect(
Collectors.toMap(k -> ... | true |
63449472d8926c40d7a2881d4893a0abcd07f1f7 | Java | m-m-m/code | /base/src/main/java/io/github/mmm/code/base/member/BaseMethods.java | UTF-8 | 4,415 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | /* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package io.github.mmm.code.base.member;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import io.github.mmm.code.api.copy.CodeCopyMapper;
import io.gith... | true |
5ef9cac7ce20d502a28d8a4d463d4312a39287ec | Java | shivasurya1710/Flight-Reservations-System | /Flight.java | UTF-8 | 1,257 | 3.359375 | 3 | [] | no_license | package com.company;
public class Flight {
private int flightNumber;
private String airline;
private int capacity;
private int seatsBooked;
public Flight(int flightNumber, String airline, int capacity, int seatsBooked){
this.flightNumber=flightNumber;
this.airline=airline... | true |
86c91dcbc02536d6d41adb6411918857fa50db88 | Java | deepan14/HI | /src/seleniumprog/adactin.java | UTF-8 | 4,062 | 2.125 | 2 | [] | no_license | package seleniumprog;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.Expecte... | true |
4d7045577104d735a52aba954f80666023eb8ed5 | Java | lkmc2/NettyBookDemo | /src/main/java/com/lin/ch09/FixedLengthFrameDecoder.java | UTF-8 | 1,238 | 2.984375 | 3 | [] | no_license | package com.lin.ch09;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ByteToMessageDecoder;
import java.util.List;
/**
* 固定长度的栈帧解码器(用于入站 EmbeddedChannel 测试)
*
* 拓展 ByteToMessageDecoder 以处理入站字节,并将它们解码为消息
* @author lkmc2
* @date 2019/9/15 12:15
*/
publ... | true |
dfc761f88e6b02e458ca19cd271641b0ada34ed7 | Java | Junstar17/CodingTest | /src/GroundX기출/일번.java | UTF-8 | 1,908 | 3.015625 | 3 | [] | no_license | package GroundX기출;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
class Node3 {
int data;
Node3 parent;
List<Node3> _childNodes;
public Node3(int data) {
_childNodes = new ArrayList();
parent = null;
this.data = data;
}
public void ma... | true |
c766624aeabe2ff9648f994eb3352ff6bf8dd1d5 | Java | AliBenjilany/US2XPDL | /src/xpdl/Gateways/impl/GatewayImpl.java | UTF-8 | 5,953 | 1.765625 | 2 | [] | no_license | /**
*/
package xpdl.Gateways.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.ecl... | true |
3ce409eb589d4d7c4b907778bb8972503280c459 | Java | rvsharma-cmu/raft-consensus-proto | /lib/MessageType.java | UTF-8 | 274 | 2.015625 | 2 | [] | no_license | package lib;
/**
* This enum is for distinguishing different message type you might send, for
* example you may need a unique type for each remote function call.
*
*/
public enum MessageType {
RequestVoteArgs, RequestVoteReply, AppendEntriesArgs, AppendEntryReply
} | true |
c50733c68b1bc43bd33896af31f033865744c824 | Java | naz22/Command-Based-App-Store | /src/App.java | UTF-8 | 1,818 | 2.875 | 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.
*/
/**
*
* @author D
*/
public class App {
private String appName,author,appType,desc;
private double cost;
private Stri... | true |
54f971dcd4e86fee318d2242f8c684b202e9608b | Java | jacksonjim/SmartControlCenter | /smartControlCenter/src/main/java/com/googolfist/smartcontrolcenter/devices/DevicePanelActivity.java | UTF-8 | 1,014 | 2.140625 | 2 | [] | no_license | package com.googolfist.smartcontrolcenter.devices;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.MenuItem;
import com.googolfist.smartcontrolcenter.R;
public class DevicePanelActivity extends AppCompatActivity {
private static final String... | true |
175913b6ed32e9f543dbda36ed1873103ef992b2 | Java | anurag444/Grocery-Delivery-App | /app/src/main/java/com/anurag/grocerydelivery/Bill.java | UTF-8 | 1,678 | 2.234375 | 2 | [] | no_license | package com.anurag.grocerydelivery;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
public class Bill extends AppCompatActivity {
private ... | true |
98b3bd6f28f012d664090e63d7763c34fc888c16 | Java | rohit51197/Devops | /Sample7/src/pack/Main8.java | UTF-8 | 380 | 2.8125 | 3 | [] | no_license | package pack;
public class Main8 {
public static void main(String[] args)
{
int a=20;
{
System.out.println(a);
}
Integer b=25;
{
System.out.println(b);
}
Integer i= Integer.valueOf(a);
System.out.println(i);
Integer a1 = new Integer(3);
int j=a1.intValue();
System.out.pri... | true |
e57a520000098cd6b049f26744131f930c926d4d | Java | WiamSA/Task5_Lab_Maven_GitHub | /Model/src/main/java/Student.java | UTF-8 | 901 | 3.1875 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.List;
public class Student {
String name;
long ID;
List<Double> grades=new ArrayList<Double>();
Student(){
name="Mohamed";
ID=231;
grades.add(80.5);
grades.add(60.0);
grades.add(78.5);
grades.add(85.0);
... | true |
75835d53c293f74b7aba215feb6d9d1cb258bcce | Java | Adams1991/weekendHWWk8 | /src/test/java/CompetitionTest.java | UTF-8 | 2,152 | 2.984375 | 3 | [] | no_license | import models.*;
import org.junit.Before;
import org.junit.Test;
import static junit.framework.Assert.assertEquals;
public class CompetitionTest {
Competition competition;
Team team1;
Team team2;
Midfielder midfielderForTeam1;
Striker strikerForTeam2;
Manager manager1;
Manager manager2;
... | true |
0d559d067682625c6d0054bafacdd4b857d5defe | Java | ieru/angelnet | /SNSANGELGUARD/SOURCES/SNSdataBaseIntegratorServer/src/java/es/uah/cc/ie/persistence/UserSettings.java | UTF-8 | 7,174 | 1.859375 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package es.uah.cc.ie.persistence;
import java.io.Serializable;
import java.util.Collection;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
i... | true |
c10893c298de8c1fefb1dc2d1b12ecb74b6c12b6 | Java | debuggerUA/GiveMePhoto | /app/src/main/java/com/denisbabak/givemephoto/net/api/VolleyInstance.java | UTF-8 | 1,244 | 2.1875 | 2 | [] | no_license | package com.denisbabak.givemephoto.net.api;
import android.content.Context;
import com.android.volley.Network;
import com.android.volley.RequestQueue;
import com.android.volley.toolbox.BasicNetwork;
import com.android.volley.toolbox.HttpStack;
import com.android.volley.toolbox.HurlStack;
import java.io.File;
import ... | true |
f493b6cf58b4d687ee10cc3e1a93b7aeb51f9430 | Java | pauliusmi20/L2 | /Semestre1/Java/S1/Javamon/MainApp.java | UTF-8 | 127 | 2.015625 | 2 | [] | no_license | public class MainApp
{
public static void main(String[] args)
{
Javarene temp = new Javarene();
temp.combat();
}
}
| true |
35df98cb21a1dff5955a383f69c675dbf3a9bfaa | Java | treeseedm/mobileproject | /src/org/x/mobile/http/AsyncUtils.java | UTF-8 | 840 | 2.515625 | 3 | [] | no_license | package org.x.mobile.http;
import android.os.AsyncTask;
import android.os.Build;
/**
* 异步操作工具类
*
* @author qiudongchao
*
*/
public class AsyncUtils {
/**
* 异步栈统一执行方法【根据不同版本执行不同的方法】
*
* @param task
* 异步栈
* @param args
* 异步栈参数
*/
public static <T... | true |
62dc45c2129029e0919b9c78d4bb9d88cf32102a | Java | NadibHussain/SOEN-project | /src/main/java/team14/warzone/GameEngine/Observer/Observable.java | UTF-8 | 1,114 | 3.453125 | 3 | [] | no_license | package team14.warzone.GameEngine.Observer;
import java.util.ArrayList;
import java.util.List;
/**
* Observable class
*/
public class Observable {
/**
* List of observers
*/
public List<Observer> d_observers = new ArrayList<>();
/**
* We use this to attach observers to this observable
... | true |
f3b1f987cf32a2c0d5aa5e6b8e46b8204c2cb83e | Java | CGI-CONNECT/Plugins | /CONNECT-AdapterDocumentAssemblyProxy/DocumentAssemblyManagerEJB/src/main/java/gov/hhs/fha/nhinc/assemblymanager/dao/model/DocumentType.java | UTF-8 | 6,472 | 1.671875 | 2 | [] | no_license | /*
* Copyright (c) 2012, United States Government, as represented by the Secretary of Health and Human Services.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions o... | true |
d26524e2f91c33e2af256685878522f12b2c7444 | Java | zhaobaoqiang/AndroidBatter | /batter/src/main/java/com/wudoumi/batter/base/BatterFragment.java | UTF-8 | 1,200 | 2.125 | 2 | [] | no_license | package com.wudoumi.batter.base;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.wudoumi.batter.ioc.ViewUtils;
public abstract class BatterFragment extends Fragment {
... | true |
3afebe468a8a0fe675f486cf2d67a6bc91b6332a | Java | jimyeongKo/sns | /src/main/java/com/laon/sms/domain/user/exception/PasswordNotMatchedException.java | UTF-8 | 352 | 2.28125 | 2 | [] | no_license | package com.laon.sms.domain.user.exception;
import com.laon.sms.global.api.Error.ErrorCode;
import com.laon.sms.global.api.Error.InvalidValueException;
public class PasswordNotMatchedException extends InvalidValueException {
public PasswordNotMatchedException(final String value) {
super(value, ErrorCode.P... | true |
54ac3e3a0957cc278d506a2c7779eaf8946381e0 | Java | 6638112/mps-1 | /src/main/java/cn/damei/web/modules/TaskpackDetailController.java | UTF-8 | 1,049 | 1.828125 | 2 | [
"Apache-2.0"
] | permissive |
package cn.damei.web.modules;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import cn.damei.common.web.BaseController;
import ... | true |
410ec110ce6bdf4ec1ef2162bbad9f3b49a21523 | Java | viniciusccarvalho/doppler-metrics-reporter | /src/test/java/io/pivotal/cloudfoundry/MetricReporterTest.java | UTF-8 | 1,354 | 2.0625 | 2 | [] | no_license | package io.pivotal.cloudfoundry;
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.jvm.GarbageCollectorMetricSet;
import io.pivotal.cloudfoundry.metrics.DopplerReporter;
import io.pivotal.cloudfoundry.metrics.Signer;
import io.pivotal.cloudfoundry.metrics.server.DopplerServer;
import org.junit.Af... | true |
3c13d33ac58c282dd727b78adf7205dac18ba95f | Java | norecoUno/membro | /src/Module/Main/CreateNewConn.java | UTF-8 | 25,414 | 2.28125 | 2 | [] | no_license | package Module.Main;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.swing.JOptionPane;
public class CreateNewConn extends javax.swing.JDialog {
public static ValidatorConn frmParent;
static Statement stmt;
static String classCo... | true |
94a2a11784232b6e25ebb63de67adc0fceec1318 | Java | cpatel1999/warzone-team-08 | /src/main/java/com/warzone/team08/CLI/models/CommandArgument.java | UTF-8 | 3,016 | 3.234375 | 3 | [] | no_license | package com.warzone.team08.CLI.models;
import com.warzone.team08.CLI.constants.specifications.ArgumentSpecification;
import java.util.Objects;
/**
* Predefined structure for the command arguments and its value(s) It also provides the specification to: 1. Validate
* the number of values provided by the user 2. Vali... | true |
f736e55955b191efb4b17f1d4a725b14e92c7bfb | Java | zhctj159/hello-world | /src/main/java/zhc/others/sc/User1Mapper.java | UTF-8 | 88 | 1.617188 | 2 | [] | no_license | package zhc.others.sc;
public interface User1Mapper {
void addUser(User user);
}
| true |
4b773ddb8e1890bea7f4630d32cb13b093208819 | Java | me-unsolicited/spoqn | /spoqn-server/src/main/java/com/spoqn/server/core/exceptions/RoomNameTakenException.java | UTF-8 | 177 | 1.625 | 2 | [] | no_license | package com.spoqn.server.core.exceptions;
public class RoomNameTakenException extends SpoqnException {
private static final long serialVersionUID = 4639289451762549679L;
}
| true |
f389e7b67d0d07251f0172bf86b7705f4762eae5 | Java | RobertaConti-Jarvis/Ammazon-j | /ammazzonserver/src/main/java/it/iad2/ammazzonserver/dto/ListaVarianteColoreDto.java | UTF-8 | 770 | 2.203125 | 2 | [] | no_license | package it.iad2.ammazzonserver.dto;
import it.iad2.ammazzonserver.model.VarianteColore;
import java.util.ArrayList;
import java.util.List;
public class ListaVarianteColoreDto {
List<VarianteColore> listaVarianteColore;
public ListaVarianteColoreDto() {
}
public ListaVarianteColoreDto(List<VarianteCo... | true |
21e0e4b51f89112263b7cdade5823182a02f570f | Java | JaredBanyard/presentations | /strange_loop_2012/samplecode/src/com/squareup/anatomy/HomeActivity.java | UTF-8 | 904 | 2.140625 | 2 | [] | no_license | package com.squareup.anatomy;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import javax.inject.Inject;
public class HomeActivity extends BaseActivity {
/** Starts the customer producer when this first activity is visited. */
@Inject CustomerProducer customerProducer;
@Ove... | true |
ad23192bda540b4ca31e78100b497840eaea0253 | Java | SayWut/URLDatabase | /URLDatabase - App/app/src/main/java/com/ofek/urldatabase/MyReceiver.java | UTF-8 | 1,592 | 2.109375 | 2 | [] | no_license | package com.ofek.urldatabase;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import an... | true |
525f37fc342e69b6fd018b4d3174b2166590e945 | Java | saymonset/surveybackend | /src/main/java/com/rest/AutenticateRest.java | UTF-8 | 5,338 | 2.125 | 2 | [] | no_license | package com.rest;
import com.codahale.metrics.annotation.Timed;
import com.dto.TokenDTO;
import com.dto.UserDTO;
import com.model.mysql.User;
import com.security_delete.SecurityUtils;
import com.security_delete.TokenProvider;
import org.dozer.DozerBeanMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
im... | true |
33160d89b08c89b45f19692fd6a640422aab97c8 | Java | fanmujin/museum | /src/main/java/com/muzi/museum/bean/Work.java | UTF-8 | 1,224 | 2.1875 | 2 | [] | no_license | package com.muzi.museum.bean;
import java.util.Date;
public class Work {
private Integer id;
private String name;
private String address;
private String tel;
private Date createtime;
private String description;
public Integer getId() {
return id;
}
public void setId(... | true |
ce2fdda85127f1600848a9da6728064e70c166d8 | Java | karleenchoie/FPGIns | /app/src/main/java/com/example/fpgins/BottomNavigation/Settings/PolicyFragment.java | UTF-8 | 2,167 | 2.046875 | 2 | [] | no_license | package com.example.fpgins.BottomNavigation.Settings;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.example.fpgins.R;
/**
* A simple {@link Fra... | true |
2c73cf040d85a3d31d5f5c05c241730a23d76d25 | Java | mojo-zd/Elastic | /Runtimes/src/main/java/com/cloud/elastic/runtimes/rabbit/convert/RuntimeInstanceMessageConverter.java | UTF-8 | 1,693 | 2.359375 | 2 | [] | no_license | package com.cloud.elastic.runtimes.rabbit.convert;
import java.io.IOException;
import java.util.Map;
import org.codehaus.jackson.JsonParseException;
import org.codehaus.jackson.map.JsonMappingException;
import org.codehaus.jackson.map.ObjectMapper;
import org.springframework.amqp.core.Message;
import org.springframew... | true |
ed91b1207e619f43ee98620a15e048e45d4b5dcd | Java | yisibugua-chw/springcloud | /spring-studentdemo/src/main/java/com/example/demo/controller/StudentController.java | UTF-8 | 562 | 2.15625 | 2 | [] | no_license | package com.example.demo.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.example.demo.service.StudentService;
@RestController
@RequestMapping("/... | true |
669c8e002a520dd4ac9036e436dd5fd5ea1edb69 | Java | qiuchili/ggnn_graph_classification | /program_data/JavaProgramData/18/1121.java | UTF-8 | 1,496 | 2.78125 | 3 | [
"MIT"
] | permissive | package <missing>;
public class GlobalMembers
{
public static int Main()
{
int[][] a = new int[101][101];
int n;
int i;
int j;
int k;
int p;
int sum;
n = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));
for (k = 1;k <= n;k++)
{
for (i = 1;i <= n;i++) //??
{
for (j = 1;j <= n;j++)
... | true |
1e5803b8b24cf09ba4c3ca173d49cf2cf498ce6f | Java | ColinYu25/yhpc | /src/main/java/com/safetys/nbyhpc/web/action/mobile/AdNormalDangerAction.java | UTF-8 | 6,494 | 1.890625 | 2 | [] | no_license | package com.safetys.nbyhpc.web.action.mobile;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.sf.json.JSONArray;
import com.safetys.framework.domain.model.FkEnum;
import com.safetys.framework.exception.ApplicationAccessException;
impo... | true |
412477fc355b6adafb7ab67336a2acdb7dcdabb0 | Java | yichengye310/UrBack | /src/com/huilaila/service/IOrderItemService.java | UTF-8 | 216 | 1.570313 | 2 | [] | no_license | package com.huilaila.service;
import java.util.List;
import com.huilaila.po.OrderItem;
public interface IOrderItemService {
Long saveOrderItem(OrderItem orderItem);
List findByExample(OrderItem orderItem);
}
| true |
43a2bf9d01e9841f2bdd287650db0406fe2334f8 | Java | 2ket/workspace2mvc | /mvc06/src/com/bit/controller/AddController.java | UTF-8 | 1,115 | 2.34375 | 2 | [] | no_license | package com.bit.controller;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.bit.model.Guest02Dao;
public class AddController e... | true |
c7dc0d46df96aee6ac0e59f6939a4b6d57561177 | Java | trungdoviet/sample-maven-plugin | /mavenizer/src/main/java/com/axonactive/mavenizer/BuildProjectMojo.java | UTF-8 | 1,875 | 2.328125 | 2 | [] | no_license | package com.axonactive.mavenizer;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Date;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.... | true |
8bc200fec16aa771463226a297e044e08ba91d0c | Java | yildirimozge/cse3044spring2019p1_bsenkus_syalcin_oyildirim | /app/src/main/java/com/buraksergenozge/coursediary/Tools/ItemClickListener.java | UTF-8 | 111 | 1.695313 | 2 | [] | no_license | package com.buraksergenozge.coursediary.Tools;
interface ItemClickListener {
void onClick(int position);
} | true |
98924b60398519329618f3bc9820b07ae3d69037 | Java | victorsanchez/nuxeo-platform-document-routing | /nuxeo-routing-dm/src/main/java/org/nuxeo/ecm/platform/routing/dm/adapter/RoutingTaskImpl.java | UTF-8 | 2,834 | 1.664063 | 2 | [] | no_license | /*
* (C) Copyright 2011 Nuxeo SA (http://nuxeo.com/) and contributors.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.o... | true |
74bea6e6124cfa3d1efb4457f359481b836b988a | Java | yashmrsawant/DocKing | /Puggle/LeftRecursiveLookaheadOnePredictiveParser/src/leftrecursivelookaheadonepredictiveparser/LeftRecursiveLookaheadOnePredictiveParser.java | UTF-8 | 10,161 | 2.96875 | 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 leftrecursivelookaheadonepredictiveparser;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStr... | true |
9bade97f45dd2d798f48ad17f1b6edd9e608b687 | Java | MParrella823/Java-OS-Emulator | /TrurlOS-master/src/os/UserCommand.java | UTF-8 | 249 | 2.40625 | 2 | [] | no_license | package os;
import java.util.ArrayList;
public class UserCommand extends ArrayList<String> {
private String command = "";
public UserCommand(String command) {
this.command = command;
}
public String getCommand() {
return command;
}
}
| true |
0a634c22a00aec0db512a73be6fbf60f322ffc21 | Java | lvyitian/javaCompiler | /src/ch/mtSystems/jnc/view/JNC.java | UTF-8 | 12,515 | 1.71875 | 2 | [] | no_license | /*
* JavaNativeCompiler - A Java to native compiler.
* Copyright (C) 2006 Marco Trudel <mtrudel@gmx.ch>
*
* 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 2 ... | true |
38c87675785b2f7835432e9ce5ba36e483092288 | Java | andreyminea/Vote | /app/src/main/java/com/e/meteo/VoteActivity.java | UTF-8 | 4,501 | 2 | 2 | [] | no_license | package com.e.meteo;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
imp... | true |
f45a83694d94cc73e5fbfdc2056549a4ce07cb4b | Java | ShreelataMK/Java-Demo- | /OOPs/src/staticVariables/TestStaticMethod.java | UTF-8 | 465 | 3.28125 | 3 | [] | no_license | package staticVariables;
//Test class for display and create the value of object
public class TestStaticMethod {
public static void main(String[] args) {
// TODO Auto-generated method stub
Student2.college = "BBTS";
//creating objects
Student2 s1 = new Student2(101,"Karan");
Student2 s2 = new Studen... | true |
4dfa3ecd11f35809c4593f522bc34bb8ed581e1f | Java | Aleksey-Terzi/CastleGates | /paper/src/main/java/com/aleksey/castlegates/database/ReinforcementSource.java | UTF-8 | 2,103 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | /**
* @author Aleksey Terzi
*
*/
package com.aleksey.castlegates.database;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
public class ReinforcementSource {
private static final String selectAllScript = ... | true |
77137d938e733663465b1e43897ee5bc23e3cfe1 | Java | ddl5413/specific-sum | /src/main/java/algorithm/SpecificSumOneResult.java | UTF-8 | 965 | 3.484375 | 3 | [] | no_license | package algorithm;
import java.util.ArrayList;
import java.util.List;
public class SpecificSumOneResult {
public void summation(int [] ints, int difference) {
List<Integer> result = new ArrayList<>();
long before = System.currentTimeMillis();
summation(ints, result, difference, 0);
... | true |
a9833596e036c2398db3a1a9e2d595c94d160876 | Java | eliagrego/engvid | /src/engvid/Welcome.java | UTF-8 | 4,646 | 2.171875 | 2 | [] | no_license | package engvid;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.geometry.Rectangle2D;
import javafx.scene.control.Label;
... | true |
042d03e9aa41eed8fd6dfb8e1acb3cc04eff24f5 | Java | ljzyljc/BookPagerView | /app/src/main/java/com/jackie/bookpagerview/camera/FileManagerUtils.java | UTF-8 | 3,409 | 2.890625 | 3 | [] | no_license | package com.jackie.bookpagerview.camera;
import android.os.Environment;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
/**
* Created by Jackie on 2017/2/19.
*/
public class FileManagerUtils {
/**
* 创建文件(照片)
* /DingYin/photo目录下
... | true |
93c6e7250de9c50c5d4f15b89529cb5522fb7c24 | Java | KentaroArimura/JavaBasic | /Practice/src/Practice11.java | UTF-8 | 632 | 4.03125 | 4 | [] | no_license |
public class Practice11 {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
int num = 0;
int sum = 0;
System.out.println("入力された数値を合計します。1から9の数値を入力して下さい。0を入力したら計算結果を表示します。");
while (true) {
num = new java.util.Scanner(System.in).nextInt();
if (0 == num) {
break;
}
if (0 > n... | true |