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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
04934c481c7b615842b2780f14360d2ef0bd8f3a | Java | LukeRobbins2112/HelsinkiJavaMOOC_Pt2 | /week7-week7_08.Airport/src/Main.java | UTF-8 | 352 | 2.328125 | 2 | [] | no_license | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
//Airport air = new Airport(reader);
//air.start();
AirPortManager manager = new AirPortManager(reader);
manager.s... | true |
94a29dc05d0e33c5f935b38a0e4ef1710e4f9c9a | Java | sevennight1989/customviews | /AndroidFx/app/src/main/java/com/android/custview/service/IntercomTimeWindowService.java | UTF-8 | 4,636 | 2.28125 | 2 | [] | no_license | package com.android.custview.service;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.graphics.PixelFormat;
import android.os.Handler;
import android.os.IBinder;
import android.view.Display;
import android.view.Gravity;
import android.view.MotionEvent;
import a... | true |
9a3d1d63712919e13f45c31855ca9ed202375dad | Java | tndangana/javacrud | /src/main/java/zw/co/test/covid/service/impl/CustomUserDetailsService.java | UTF-8 | 1,761 | 2.1875 | 2 | [] | no_license | package zw.co.test.covid.service.impl;
import lombok.SneakyThrows;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetai... | true |
daa4a072120e3fce62e59c02e0696bbcaad7694f | Java | lixiao1k/TrainingCollege | /src/main/java/com/xrom/ssh/service/impl/RegisterApplicationServiceImpl.java | UTF-8 | 3,768 | 2.203125 | 2 | [] | no_license | package com.xrom.ssh.service.impl;
import com.xrom.ssh.entity.Institution;
import com.xrom.ssh.entity.RegisterApplication;
import com.xrom.ssh.enums.ApplicationState;
import com.xrom.ssh.repository.InstitutionRepository;
import com.xrom.ssh.repository.RegisterApplicationRepository;
import com.xrom.ssh.service.Institut... | true |
573ab84003290057fc73dc9088991f4fca6c9dc3 | Java | NNHSAPCS201718/robotics-3061 | /Hello World/HardwareIO.java | UTF-8 | 655 | 3.15625 | 3 | [] | no_license | import lejos.nxt.UltrasonicSensor;
import lejos.nxt.SensorPort;
import lejos.nxt.LCD;
import lejos.nxt.Motor;
/**
* Write a description of class HardwareIO here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class HardwareIO
{
public static void main(String[] args)
{
Ult... | true |
08b3ec26524cacf7793ba4f599dce96a4d7c25c1 | Java | DoHyeong/OuiJuLawyerBeta | /app/src/main/java/ouijulawyer/project/soma/ouijulawyerbeta/Structure/NaverInfoService.java | UTF-8 | 372 | 1.78125 | 2 | [] | no_license | package ouijulawyer.project.soma.ouijulawyerbeta.Structure;
import retrofit.http.GET;
import retrofit.http.Path;
import retrofit.http.Query;
/**
* Created by Kim on 2016-07-14.
*/
public interface NaverInfoService {
@GET("/api/{api_name}.php")
NaverInfoRepo listRepos(@Path("api_name") String auth, @Query("t... | true |
ca8ce4e4d78a0656dbd4ccd281389d29308bde17 | Java | babizhu/QuantTrader | /src/main/java/org/bbz/stock/quanttrader/consts/ErrorCodeException.java | UTF-8 | 541 | 2.546875 | 3 | [] | no_license | package org.bbz.stock.quanttrader.consts;
public class ErrorCodeException extends RuntimeException {
private final int errorCode;
public ErrorCodeException(ErrorCode errorCode, String message) {
super(message);
this.errorCode = errorCode.toNum();
}
public ErrorCodeException(ErrorCode errorCode) {
... | true |
42d8b90e3cffbb61510594110159a3e90bea48bd | Java | Praful-a/Java | /program/DefaultCons.java | UTF-8 | 623 | 3.6875 | 4 | [] | no_license | class Student {
String name;
int rollno;
String gender;
double height;
int weight;
public Student(String n, int rn, String gen, double h, int w) {
name = n;
rollno = rn;
gender = gen;
height = h;
weight = w;
}
public void display() {
System.out.println(" Name : " + name);
System.out.println(" Rol... | true |
0b87f70c61485b76f5c5864a815d860a7c9949e5 | Java | RyanTech/myali | /main/src/com/alipay/android/widget/security/ui/authentication/UploadIdImgFragment$4.java | UTF-8 | 1,304 | 1.820313 | 2 | [] | no_license | package com.alipay.android.widget.security.ui.authentication;
import android.annotation.SuppressLint;
import android.view.View;
import android.view.View.OnClickListener;
import com.alipay.mobile.framework.app.ui.BaseFragmentActivity;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
cla... | true |
6688f557909c99887692faee419cf556d20b6df5 | Java | BlightBlight/LeetCode | /src/Number191.java | UTF-8 | 1,537 | 4.0625 | 4 | [] | no_license | /*
编写一个函数,输入是一个无符号整数,返回其二进制表达式中数字位数为 ‘1’ 的个数(也被称为汉明重量)。
示例 1:
输入:00000000000000000000000000001011
输出:3
解释:输入的二进制串 00000000000000000000000000001011 中,共有三位为 '1'。
示例 2:
输入:00000000000000000000000010000000
输出:1
解释:输入的二进制串 00000000000000000000000010000000 中,共有一位为 '1'。
示例 3:
输入:11111111111111111111111111111101
输出:31
解释:输... | true |
5a455cac27713849d692ec48014350aeb6387828 | Java | Fagam32/CppTasksS2 | /S2.E4.T1234/Task4/src/com/company/Main.java | UTF-8 | 3,195 | 3.15625 | 3 | [] | no_license | package com.company;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.*;
public class Main {
static Set<String> wordsOfLength = new HashSet<>();
public static void main(String[] args) throws FileNotFoundException {
char[] alphabet = {
'а', 'б', 'в... | true |
9705e055b46fa8ed27abef71bceeb00c49f3a9ec | Java | okubis/BIA | /src/ann/ANN.java | UTF-8 | 2,772 | 2.984375 | 3 | [] | no_license | package ann;
import java.util.HashMap;
import gene.Connection;
import gene.Node;
import individual.Genotype;
public class ANN {
Node[] nodes;
Connection[] connections;
HashMap<Integer,Integer> indexOf = new HashMap<Integer, Integer>();
double[] values;
int[] outputs;
public ANN (Genotype gen){
int nodeCoun... | true |
ed828c6bb69f468632c201ab6be6705fe0ad995c | Java | 5l1v3r1/Summer2019_Java | /src/Assignments/replit_101.java | UTF-8 | 286 | 2.640625 | 3 | [] | no_license | package Assignments;
public class replit_101 {
public static void main(String[] args) {
String[] words = {"hello","why","by","what","who"};
for(int i =0; i<words.length;i++) {
System.out.println(words[i].substring(0,1) + words[i].substring(words[i].length()-1));
}
}
}
| true |
b28a4611507d78b772f5fbf158b2bdcd50ec902a | Java | subhodip7/repo | /src/test/java/teammates/test/pageobjects/InstructorCourseEditPage.java | UTF-8 | 6,750 | 2.28125 | 2 | [] | no_license | package teammates.test.pageobjects;
import static org.testng.AssertJUnit.assertEquals;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class InstructorCourseEditPage extends AppPage {
@FindBy(id = "courseid")
private WebElement cou... | true |
98fc398e236a4cbda37f723c11d9c507dbd82a91 | Java | paulosoujava/recipe | /app/src/main/java/receita/com/br/recipe/adapter/RecipeAdapter.java | UTF-8 | 6,407 | 2.234375 | 2 | [] | no_license | package receita.com.br.recipe.adapter;
import android.content.Context;
import android.graphics.Color;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.ProgressBar;
import an... | true |
a817740573170c11105827a7669b6a53ae5ef3f4 | Java | vlad-polyakov/Book-of-RA | /src/sample/Controller.java | UTF-8 | 1,694 | 2.90625 | 3 | [] | no_license | package sample;
import javafx.collections.ObservableList;
import javafx.scene.image.ImageView;
public class Controller {
private Game game;
private MainWindow mainWindow;
private ObservableList<ObservableList<ImageView>> imagesList;
public Controller (MainWindow mainWindow){
game = new Game();
... | true |
5b910ef097a0f9bfc8b1020a2cd8f0e26d83d29f | Java | MagdyZamel/VockApps | /MyApplication/app/src/main/java/com/vokapps/support/VoktechApplication.java | UTF-8 | 491 | 1.625 | 2 | [] | no_license | package com.vokapps.support;
import android.app.Application;
import io.intercom.android.sdk.Intercom;
/**
* Created by magdyzamel on 7/12/17.
*/
public class VoktechApplication extends Application {
static final String YOUR_API_KEY = "android_sdk-50527976245ff341377aaa16ea82c12e58817cd2";
static final St... | true |
004b772ca54c048146b02fb5af97e1a9c0204d02 | Java | zahirahmed/CGP | /app/src/main/java/com/eleganzit/cgp/models/SaleBaleFormData.java | UTF-8 | 2,855 | 1.890625 | 2 | [] | no_license | package com.eleganzit.cgp.models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class SaleBaleFormData {
@SerializedName("sell_id")
@Expose
private Integer sellId;
@SerializedName("user_id")
@Expose
private String userId;
@SerializedNa... | true |
cd3304fc543bec11927bcaea6f3a62c00c4c9806 | Java | My-Management-System/test | /src/com/my/eight/PredTest.java | GB18030 | 800 | 3.203125 | 3 | [] | no_license | package com.my.eight;
import java.util.Collection;
import java.util.HashSet;
import java.util.function.Predicate;
public class PredTest {
public static void main(String[] args){
Collection books = new HashSet();
books.add("java");
books.add("java");
books.add("java helloworld");
books.add("ʯͷ")... | true |
906b92c97fa20dd51c89318aa5256ff8566a83b0 | Java | Aidikg/GitDemo | /src/arrayList/InClass.java | UTF-8 | 1,321 | 3.765625 | 4 | [] | no_license | package arrayList;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class InClass {
public static void main(String[] args) {
// Converting Array to ArrayList
String[] city= {"town", "Street"};
List<String> city1=Arrays.asList(city);
System.out.println(city1.size());
// c... | true |
667506e15b0a6bcccdd13ff2e125f3f710569416 | Java | minniexu/Queues-Deques | /RandomizedQueue.java | UTF-8 | 2,311 | 3.5625 | 4 | [] | no_license | import java.util.NoSuchElementException;
import java.util.Iterator;
public class RandomizedQueue<Item> implements Iterable<Item> {
private Item[] rq;
private int N = 0;
public RandomizedQueue(){
rq = (Item[]) new Object[1];
} // construct an empty randomized queue
public boolean isEmpty(){
... | true |
419056999b1ccfe2202b6624e13ca9358131bdb4 | Java | rihabbh2/Barcode_Battle | /app/src/main/java/com/mbds/deptinfo/barcodebattler/LocalCombat.java | UTF-8 | 8,094 | 2.28125 | 2 | [] | no_license | package com.mbds.deptinfo.barcodebattler;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Base64;
import android.view.View;
import android.widget.Button;
import android.w... | true |
563e71a73c22ae7eed5daf747dff667e51ffff77 | Java | xXMariusXx/Cocktailmaker | /server/src/main/java/cocktailServer/controller/ZutatenController.java | UTF-8 | 473 | 1.929688 | 2 | [] | no_license | package cocktailServer.controller;
import cocktailServer.DataManager;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
@RestController
@CrossOrigin("*")... | true |
e38aa109c638af8490f92eda4f9257aeb260b5e9 | Java | jygsdjflsd/DeliveryLocker_Big | /app/src/main/java/com/ysxsoft/deliverylocker_big/ui/activity/NetWorkLoseActivity.java | UTF-8 | 2,422 | 1.984375 | 2 | [] | no_license | package com.ysxsoft.deliverylocker_big.ui.activity;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import com.lzy.okgo.model.Response;
import com.ysxsoft.deliverylocker_big.R;
import com.ysxsoft.deliverylocker_big.api.ApiUtils;
import co... | true |
bd8872dfd6aa8689e8563b4fb2195e1761a6b6fa | Java | BruhKofi/projects | /java/intro_programming/1.2/Euler.java | UTF-8 | 768 | 3.296875 | 3 | [] | no_license | public class Euler
{
public static void main(String[] args) {
for (long i = 0; i<Long.MAX_VALUE; i++) {
for (long j = 0; j<Long.MAX_VALUE; j++) {
for (long k = 0; k<Long.MAX_VALUE; k++) {
for (long l = 0; l<Long.MAX_VALUE; l++) {
for (l... | true |
1fa0fbbac21e4062f0c4cc5f84d16b7c96a3011e | Java | Titolasanta/AninfoTribu-Impar-2019-1c | /HolaMundo/hellocucumber/src/test/java/hellocucumber/Saludador.java | UTF-8 | 210 | 2.015625 | 2 | [] | no_license | package hellocucumber.src.test.java.hellocucumber;
/**
* Created by tito on 01/04/19.
*/
class Saludador {
static String saludar(String saludo, String persona) {
return saludo + persona;
}
}
| true |
c78e8cfa6c62a6d2b8cc145b521feb0e745c57f1 | Java | kroltan/Aula-Programacao | /src/br/com/eliti/kroltan/rectgame/GamePanel.java | UTF-8 | 5,052 | 2.625 | 3 | [] | no_license | package br.com.eliti.kroltan.rectgame;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.awt.image.*;
@SuppressWarnings("serial")
public class GamePanel extends JPanel implements Runnable {
public final static int PWIDTH = 800;
public final static int PHEIGHT = 600;
private Thread anim... | true |
b84c87ec33dd982d6d622ca394a4c52cce9f38db | Java | nicolas997/tp-parcial | /src/main/java/tp/model/purchase/PurchaseOperations.java | UTF-8 | 200 | 1.726563 | 2 | [] | no_license | package tp.model.purchase;
import tp.model.rider.Rider;
public interface PurchaseOperations {
public void confirm();
public void dispatch(Rider rider);
public void finishDelivery();
}
| true |
0e845c567cc4a6278faec17a2ebbff5e6966f9ca | Java | jmebia/javafx-rpg | /src/main/framework/state/GameMenuState.java | UTF-8 | 4,019 | 3.03125 | 3 | [
"MIT"
] | permissive | package main.framework.state;
import javafx.application.Platform;
import javafx.scene.Scene;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.input.KeyCode;
import javafx.scene.paint.Color;
import javafx.scene.text.Font;
import javafx.scene.text.FontWeight;
import main.framework.object2D.GameObject2D;
... | true |
b8f69c68253a150b566ca2c804946ee7818becf3 | Java | youssef02/Car-Autosniper | /src/sample/DataHandler/CarDataHandler.java | UTF-8 | 364 | 2.125 | 2 | [] | no_license | package sample.DataHandler;
public class CarDataHandler {
private boolean demodata = false;
public CarDataHandler(boolean demodata) {
this.demodata = demodata;
}
public void setDemodata (boolean d)
{
this.demodata = d;
if (d)
{
//add demo data
... | true |
e089fa659245b2993379a577db768e5107e2fc43 | Java | oscarlasso/ExamenPractico | /app/src/main/java/com/example/sistemas/examenpractico/MainActivity.java | UTF-8 | 2,096 | 2.234375 | 2 | [] | no_license | package com.example.sistemas.examenpractico;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
public class MainActivity extends A... | true |
eaeb8a0ea8af24a1782bd48b384188335013a408 | Java | yahorpaulson/FactoryObserverDesignPatterns | /src/at/omi/blatt6/a4/sensor/example/observer/IObserver.java | UTF-8 | 102 | 2.015625 | 2 | [] | no_license | package at.omi.blatt6.a4.sensor.example.observer;
public interface IObserver {
void update();
}
| true |
58a617054a84cbbd9fda6b4293fd6ce899eba0a6 | Java | idavehuwei/auto-answer | /src/main/java/com/cbz/cti/autoanswer/action/PlayFileAction.java | UTF-8 | 3,796 | 1.875 | 2 | [] | no_license | package com.cbz.cti.autoanswer.action;
import ai.cbz.inbound.common.response.DialogAction;
import ai.cbz.inbound.common.response.DialogData;
import ai.cbz.inbound.common.response.DialogPlayFileParams;
import com.cbz.cti.autoanswer.constant.FsApplicationName;
import com.cbz.cti.autoanswer.message.BaseEventMessage;
impo... | true |
5422447f77ac5e78e817eca19089e2e51c5f4728 | Java | igorilin13/CLRS | /src/igorilin13/com/github/test/number/NumberAlgorithmsTest.java | UTF-8 | 2,567 | 2.8125 | 3 | [
"MIT"
] | permissive | package igorilin13.com.github.test.number;
import igorilin13.com.github.main.number.NumberAlgorithms;
import igorilin13.com.github.main.util.TupleN;
import org.junit.Test;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.TimeoutException;
import java.util.funct... | true |
d7af6a52d8d70b416300cf06b29b189800d64deb | Java | payamdowlatyari/PGFSD-Phase-1 | /assignment2/Main.java | UTF-8 | 215 | 2.1875 | 2 | [] | no_license | package assignment2;
public class Main {
public static void main(String[] args) {
Infosys m = new Hello();
m.absOne();
m.absTwo();
m.normalOne();
Hello h = new Hello();
h.normalTwo();
}
}
| true |
abccb610ee71d5d1b2e06b866a188c5de70445b7 | Java | KimBoKyu/201611059_j | /com/sd/io/WriteFile.java | UTF-8 | 421 | 2.9375 | 3 | [] | no_license | package com.sd.io;
import java.io.*;
public class WriteFile{
public static void main(String[] args){
try{
FileWriter file = new FileWriter("test.txt");
BufferedWriter bf = new BufferedWriter(file);
String str = "buffer test file";
bf.write(str);
bf.newLine();
bf.close();}
catch(IOException e){
... | true |
50c2de3e6924a9178dd00eba9076bbdbcd8a6765 | Java | Etiena821/Employee-Management-System-demo | /src/main/java/com/myemployeee/service/impl/EmployeeServiceImplJPA.java | UTF-8 | 2,538 | 2.5 | 2 | [] | no_license | package com.myemployeee.service.impl;
import com.myemployeee.model.Attendance;
import com.myemployeee.model.Employee;
import com.myemployeee.repository.AttendanceRepository;
import com.myemployeee.repository.EmployeeRepository;
import com.myemployeee.service.EmployeeService;
import org.springframework.beans.factory.an... | true |
c9b0367db39f8ab31a014de636dec03815229347 | Java | mmathkar/SequenceAlignment | /DovetailAlignBackup.java | UTF-8 | 7,654 | 2.515625 | 3 | [] | no_license | import java.io.*;
import java.util.*;
public class DovetailAlignBackup {
static ArrayList<ArrayList<Integer>> scoreMat;
static Map<Character,Integer> alpha;
public static void main(String[] args) throws IOException {
// hw1 1 queryfile datafile alphabet scorematrix 10 -3
Output out = new SystemOut();
... | true |
cebe90f09525b96891ffb0bd62ba47beddb52c69 | Java | aralco/acredito | /src/main/java/com/bo/acredito/service/SupplierService.java | UTF-8 | 820 | 2.375 | 2 | [] | no_license | package com.bo.acredito.service;
import com.bo.acredito.domain.Product;
import com.bo.acredito.domain.Supplier;
import com.bo.acredito.util.Constants;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
/**
* Created by Alvaro on 4/17/2015.
*/
@Stateless... | true |
8f524a9fad913d6eaaab493ccc4abe2ac898c5ed | Java | rnbiv45/reactive21030329-project1 | /src/main/java/com/rbierly/services/AttachmentService.java | UTF-8 | 415 | 2 | 2 | [] | no_license | package com.rbierly.services;
import java.io.InputStream;
import com.rbierly.beans.Employee;
import io.javalin.http.UploadedFile;
public interface AttachmentService {
public void create(Employee loggedInEmployee, Integer appId, UploadedFile file);
public void delete(Employee loggedInEmployee, Integer appId, Strin... | true |
4889cc5d73308a52011391a1b33ef353d5f397f0 | Java | rajithd-aurea/eweb4j-framework | /src/main/java/org/eweb4j/config/bean/LogConfigBean.java | UTF-8 | 1,105 | 2.1875 | 2 | [] | no_license | package org.eweb4j.config.bean;
import org.eweb4j.util.xml.AttrTag;
import org.eweb4j.util.xml.Skip;
public class LogConfigBean {
@AttrTag
private String console = "1";
@AttrTag
private String level = "debug";
@AttrTag
private String file = "logs/logs.log";
@Skip
@AttrTag
private String insert = "";
@AttrT... | true |
fd4f16dcbdfb0360dccf5bf1d49cb871724ee54e | Java | hutomadotAI/web-api | /service/core-service/src/main/java/com/hutoma/api/logic/chat/ChatIntentHandler.java | UTF-8 | 2,502 | 2 | 2 | [
"Apache-2.0"
] | permissive | package com.hutoma.api.logic.chat;
import com.hutoma.api.connectors.WebHooks;
import com.hutoma.api.containers.sub.ChatRequestInfo;
import com.hutoma.api.containers.sub.ChatResult;
import com.hutoma.api.containers.sub.ChatState;
import com.hutoma.api.containers.sub.MemoryIntent;
import com.hutoma.api.logging.LogMap;
i... | true |
6b9d083527873d802ad7292f0285d7175c7652b5 | Java | yunluoyu/androidTest | /AndroidTest/app/src/main/java/bean/AppInfo.java | UTF-8 | 588 | 2.15625 | 2 | [] | no_license | package bean;
import java.util.ArrayList;
/**
* Created by yunlu on 2019/9/4.
*/
public class AppInfo {
public ArrayList<AppMsg> list;
public ArrayList<String> picture;
public class AppMsg{
public String des;
public String downloadUrl;
public String iconUrl;
public Stri... | true |
67bfbf856148b85015a5849cbacc66ee529b6917 | Java | zhongxingyu/Seer | /Diff-Raw-Data/28/28_da31e17987012355369abfcf2dcfa2a045f6a4fd/StepResponse/28_da31e17987012355369abfcf2dcfa2a045f6a4fd_StepResponse_s.java | UTF-8 | 8,145 | 2.515625 | 3 | [] | no_license | /*
* Owl Platform World Model Library for Java
* Copyright (C) 2012 Robert Moore and the Owl Platform
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of... | true |
34dafd824ead6ce571aa7b386c951ad5cc6599e6 | Java | albertleng/CoolFriendsApp | /src/main/java/com/coolfriend/springboot/coolfriendsapp/service/UserService.java | UTF-8 | 479 | 1.914063 | 2 | [] | no_license | package com.coolfriend.springboot.coolfriendsapp.service;
import java.util.List;
import com.coolfriend.springboot.coolfriendsapp.entity.Login;
import com.coolfriend.springboot.coolfriendsapp.entity.User;
public interface UserService {
public List<User> getUsers();
public void saveUser(User theUser);
public Use... | true |
db1cc7b58594beb3f9b07c8aa4a0c5c27fc16029 | Java | konexios/moonstone | /selene-device-rfid/src/main/java/moonstone/selene/device/harting/rfid/command/SetOutput.java | UTF-8 | 4,250 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | package moonstone.selene.device.harting.rfid.command;
import java.nio.ByteBuffer;
import java.util.List;
public class SetOutput extends AbstractExtendedCommand {
private static final long serialVersionUID = -2400485740828418767L;
private static final int CONTROL = 0x72;
private int mode = 1;
private List<OutputR... | true |
4b05e016952e6dab3c692fc64dd0aa4facc4b925 | Java | mmesutaksu/winter2021turkish | /day03_scanner/C1_Scanner1.java | ISO-8859-1 | 550 | 3.15625 | 3 | [] | no_license | package day03_scanner;
import java.util.Scanner;
public class C1_Scanner1 {
public static void main(String[] args) {
Scanner scan=new Scanner(System.in);
System.out.print("Ltfen Adinizi Yaziniz: ");
String name=scan.nextLine();
System.out.print("Ltfen Soyadinizi Yaziniz: ");
String surnam... | true |
8d46556a50d05153f634464431f6c9036c64b759 | Java | Lakshamana/spm | /tmp/service/AgentHasAbilityService.java | UTF-8 | 2,791 | 2.40625 | 2 | [] | no_license | package br.ufpa.labes.spm.service;
import br.ufpa.labes.spm.domain.AgentHasAbility;
import br.ufpa.labes.spm.repository.AgentHasAbilityRepository;
import br.ufpa.labes.spm.service.dto.AgentHasAbilityDTO;
import br.ufpa.labes.spm.service.mapper.AgentHasAbilityMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFact... | true |
573b120f15e1523e82072a3081e4aac29863048b | Java | KarinaAndreea/LaboratoareJava | /lab5/src/com/company/GraphForm.java | UTF-8 | 5,240 | 2.859375 | 3 | [] | no_license | package com.company;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import javax.swing.table.DefaultTableModel;
import java.awt.event.ActionListener;
import javax.swing.border.Border;
import javax.swing.border.EtchedBorder;
import javax.swing.border.TitledBorder;
public class GraphForm ext... | true |
32f6410bf1aedfa7c99c1ac6b6d054af66175d2b | Java | CTCbaxia/HelloWorld | /Easy/141-Linked-List-Cycle.java | UTF-8 | 3,364 | 4.125 | 4 | [] | no_license | /*
EASY
141. Linked List Cycle
https://leetcode.com/problems/linked-list-cycle/description/
*/
/*
快慢指针
*/
public class Solution {
public boolean hasCycle(ListNode head) {
ListNode fast = head;
ListNode slow = head;
while(fast != null && fast.next != null){
fast = fast.next.next;
... | true |
bb27558e7612156aef2f83f27a8b21b7781fa439 | Java | whatafree/JCoffee | /benchmark/bigclonebenchdata_completed/5557139.java | UTF-8 | 5,129 | 2.265625 | 2 | [] | no_license |
import java.io.UncheckedIOException;
class c5557139 {
public MyHelperClass modelContent;
public MyHelperClass APIVersionTester;
public void valueChanged(ListSelectionEvent e) {
if ((boolean)(Object)e.getValueIsAdjusting()) return;
ListSelectionModel lsm = (ListSelectionModel)(ListSe... | true |
4af65fa43cf90435ed376bbf1b107d70547f1452 | Java | bsdshell/java | /GenericClass/Object1.java | UTF-8 | 152 | 2.734375 | 3 | [] | no_license | public class Object1
{
String str;
public Object1(String str)
{this.str = str;}
public void print()
{
System.out.println("Object1");
}
}
| true |
dcf247a8c5bc6e2b70952e9d520cc14241c16292 | Java | maghi711/Core-Java-for-the-Impatient-Tasks | /src/main/java/com/task/chapter2/task9/Car.java | UTF-8 | 744 | 3.40625 | 3 | [] | no_license | package com.task.chapter2.task9;
public class Car {
private double gas;
private double mileage = 0;
private final float COMBUSTION;
public Car(double gas,float combustion){
this.gas = gas;
this.COMBUSTION = combustion;
}
public Car(float combustion){
this.COMBUSTION = ... | true |
bfefff54bdfe55639d25b1da2a5b79c28b577921 | Java | zhangning-accp/shixun | /src/com/shixun/c14/work/Test.java | UTF-8 | 210 | 1.953125 | 2 | [] | no_license | package com.shixun.c14.work;
/**
* Created by zn on 2015/12/31.
* 测试类
*/
public class Test {
public static void main(String [] args) {
System.out.println(Utils.isBoolean("TRUE"));
}
}
| true |
6f7300e8bacb2597b2d47ea38f2dab6aa8b443dc | Java | cckmit/mint | /mint-common/src/test/java/pep/per/mint/common/resource/ExceptionResourceTest.java | UTF-8 | 531 | 2 | 2 | [] | no_license | package pep.per.mint.common.resource;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import pep.per.mint.common.resource.ExceptionResource;
public class ExceptionResourceTest {
@Before
public void setUp() throws Exception {
}
@After
... | true |
6602441884eddc9311d85aef6d85468c117eb6fb | Java | codingchili/chili-core | /core/main/java/com/codingchili/core/listener/MultiHandler.java | UTF-8 | 5,437 | 2.703125 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.codingchili.core.listener;
import io.vertx.core.*;
import java.util.*;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.function.BiConsumer;
import java.util.stream.Collectors;
import com.codingchili.core.context.CoreContext;
import com.codingchili.core.context.CoreRuntimeException;
imp... | true |
50e908537e1020ffcb05d6c1aab2b52629d8290e | Java | rafaelbdutra/remind-me | /remind-me-command/src/main/java/com/dutra/remind/me/command/RemindMeCommandConfig.java | UTF-8 | 1,827 | 2.234375 | 2 | [] | no_license | package com.dutra.remind.me.command;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.config.EnableWebFlux;
import org.springframework.web.reactive.function.server.RouterFunction;
import org.springframework.web.reac... | true |
9db083d7455bff815ecb1bf4b52c9fc8e157a88a | Java | Peddaraju/microservices | /callicoder/app-qa-service/src/main/java/com/app/rest/assembler/QuestionModelAssembler.java | UTF-8 | 718 | 2.234375 | 2 | [] | no_license | package com.app.rest.assembler;
import com.app.rest.entity.Question;
import com.app.rest.model.QuestionModel;
import org.springframework.hateoas.server.mvc.RepresentationModelAssemblerSupport;
//https://howtodoinjava.com/spring5/hateoas/spring-hateoas-tutorial/
public class QuestionModelAssembler extends Representati... | true |
14231f48a8bc51ae57d729a77f9629cccb6aa0ce | Java | igorplyukhin/rest_api | /src/main/java/com/igor/rest_api/services/ProductService.java | UTF-8 | 2,279 | 2.515625 | 3 | [] | no_license | package com.igor.rest_api.services;
import com.igor.rest_api.models.Product;
import com.igor.rest_api.repository.ProductRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.data.domain.PageRequest;
import or... | true |
aefe3dddaa55b2ab5716f0feea458902784ca577 | Java | wgw110/dubbo | /util/src/main/java/mobi/mixiong/util/SqlChecker.java | UTF-8 | 2,111 | 2.921875 | 3 | [] | no_license | package mobi.mixiong.util;
import org.apache.commons.lang3.StringUtils;
import java.util.Arrays;
import java.util.stream.Stream;
public class SqlChecker {
public static boolean isIdArray(String input) {
if (StringUtils.isEmpty(input) || aroundWithChar(input, ',')) {
return false;
} e... | true |
e13928e783acf3ec33f842b2e12e52b2cb985f71 | Java | onlucscrin/datastructure-trie | /src/main/java/org/datastructure/trie/TrieRestController.java | UTF-8 | 2,673 | 2.5625 | 3 | [] | no_license | package org.datastructure.trie;
import org.datastructure.trie.model.Trie;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
... | true |
61413638266455201dba3ff2d4f03e6643b8ecb2 | Java | brunomktd/Visitantes-Springboot-Java | /src/main/java/br/com/inovelab/visitantes/services/form/UpdateVisitForm.java | UTF-8 | 2,015 | 2.546875 | 3 | [] | no_license | package br.com.inovelab.visitantes.services.form;
import br.com.inovelab.visitantes.repository.VisitRepository;
import br.com.inovelab.visitantes.services.Visit;
import javax.validation.constraints.*;
import java.time.LocalDateTime;
public class UpdateVisitForm {
@Positive
private Long idRepresentative;
... | true |
f7ba145e79fff18b51e03709b27e8b0fd9152f7e | Java | HareeshaHilmi/TAU_JavaPractices | /Java/chapter8/TextProcessor.java | UTF-8 | 1,943 | 3.96875 | 4 | [] | no_license | package chapter8;
import java.util.ArrayList;
import java.util.Arrays;
public class TextProcessor {
public static void main(String[] args) {
countWords("I love Test Automation University");
reverseString("Hello TAU!");
addSpaces("HeyWorld!It'sMeHaree");
}
/**
*... | true |
522d1a000d1e20c763dd65d7163018facb385914 | Java | JJJyo/IPersistence | /IPersistence_test/src/main/java/com/lagou/dao/IUserDaoImpl.java | UTF-8 | 1,449 | 2.234375 | 2 | [] | no_license | package com.lagou.dao;
import com.lagou.io.Resource;
import com.lagou.pojo.User;
import com.lagou.sqlSession.SqlSession;
import com.lagou.sqlSession.SqlSessionFactory;
import com.lagou.sqlSession.SqlSessionFactoryBuilder;
import org.dom4j.DocumentException;
import java.beans.PropertyVetoException;
import java.io.Inpu... | true |
01585d8e7b3867691da957abfd7b61aeabc0cbeb | Java | bai-ge/imchat | /app/src/main/java/com/baige/view/ShareHomeBottomToolBar.java | UTF-8 | 2,647 | 2.109375 | 2 | [] | no_license | package com.baige.view;
import android.content.Context;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.WindowManager;
import android.widget.LinearLayout;
import com.baige.... | true |
0649cf769f5e44264eaf2a68311e6b48a8ff3085 | Java | Webtrekk/webtrekk-android-sdk | /sdk_test/src/androidTest/java/com/webtrekk/SDKTest/WebViewIntegrationTest.java | UTF-8 | 2,388 | 2.171875 | 2 | [
"MIT"
] | permissive | package com.webtrekk.SDKTest;
import android.webkit.WebView;
import org.junit.After;
import org.junit.Rule;
import org.junit.Test;
import static android.support.test.espresso.Espresso.onView;
import static android.support.test.espresso.action.ViewActions.click;
import static android.support.test.espresso.matcher.Vie... | true |
71bf118ce1723f83582d9f34e8e3f43455b6ed2e | Java | andsotval/Acme-BnB | /src/main/java/domain/Attribute.java | UTF-8 | 639 | 2.53125 | 3 | [] | no_license |
package domain;
import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Embeddable;
import org.hibernate.validator.constraints.NotBlank;
@Embeddable
@Access(AccessType.PROPERTY)
public class Attribute {
//Attributes
private String name;
private String value;
//Construct... | true |
6dfe06a7da484c0a4d35a5e63bc29cf271761f7d | Java | mirohs/prog1javalib | /src/prog1/graphics/Image.java | UTF-8 | 6,435 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 michaelrohs.
*
* 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 |
a370f3379e3dabe4fea6894dc0d211dd77aed4b9 | Java | HHHHH-Y/LeetCode | /每日一题/day04/src/TestDemo2.java | UTF-8 | 2,053 | 3.703125 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
/**
* Created with IntelliJ IDEA.
* Description: 问题描述: 删除公共字符
* 输入两个字符串, 从第一个字符串中删除第二个字符串中所有字符
* 输入: They are students. 和 aeiou, 则删除之后第一个字符串变成: Thy r stdnts.
* User: HHH.Y
* Date: 2020-06-04
*/
public class TestDemo2 {
// public sta... | true |
f200c9072b3ff65107898b821cf7aa4e802d0a2d | Java | raquelfermel/ProyectoJava | /PrimeraEvaluacion/src/variablesDatosOperadores/OperacionesConTiposEnteros/Ejemplos4.java | UTF-8 | 583 | 3.546875 | 4 | [] | no_license | package variablesDatosOperadores.OperacionesConTiposEnteros;
import java.util.Scanner;
public class Ejemplos4 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("escribe cuatro números");
int num1 = sc.nextInt();
int num2 = sc.nextInt... | true |
344abd09cb53ff057360dc11c6f19a166d860c0e | Java | StepanMudra/Arexx-RA-1-Pro-Control | /tests/Pc/Logic/Services/Calculations/CalculatePosTest.java | UTF-8 | 236 | 1.867188 | 2 | [] | no_license | package Pc.Logic.Services.Calculations;
import org.junit.Test;
import static org.junit.Assert.*;
public class CalculatePosTest {
@Test
public void calculate() {
CalculatePos calculatePos = new CalculatePos();
}
} | true |
f123c49c798e89305d706c30ff1223684a4f256f | Java | Gupta126/MVPExample | /app/src/main/java/com/rahulgupta/cambiumnetworks_kickstarter/ui/project/ProjectHomeActivity.java | UTF-8 | 2,206 | 2.015625 | 2 | [] | no_license | package com.rahulgupta.cambiumnetworks_kickstarter.ui.project;
import android.app.Activity;
import android.os.Bundle;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import com.rahulgupt... | true |
f7a807fc8e16f5d617bf492b174d8dfde0764f98 | Java | laymen/Alarm | /app/src/main/java/com/microsoft/mimickeralarm/utilities/GeneralUtilities.java | UTF-8 | 8,304 | 1.664063 | 2 | [] | no_license | /*
*
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license.
*
* Project Oxford: http://ProjectOxford.ai
*
* Project Oxford Mimicker Alarm Github:
* https://github.com/Microsoft/ProjectOxford-Apps-MimickerAlarm
*
* Copyright (c) Microsoft Corporation
* All rights reserved.
*
* MIT... | true |
ff62493620184ac68645860c3c8a4269ab6d9edf | Java | fathzer/sites-supervisor-core | /src/main/java/com/fathzer/sitessupervisor/db/Influx.java | UTF-8 | 6,556 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package com.fathzer.sitessupervisor.db;
import java.io.IOException;
import java.net.URI;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
import org.influxdb.InfluxDB;
import org.influxdb.InfluxDBFactory;
import org.influxdb.InfluxDBIOEx... | true |
f92eafea163670b92197f6c22ac56d6b8223d612 | Java | Enaium-Archive/accessor | /src/main/java/cn/enaium/accessor/util/ASMUtil.java | UTF-8 | 1,147 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | package cn.enaium.accessor.util;
import org.objectweb.asm.Opcodes;
/**
* @author Enaium
*/
public class ASMUtil {
public static int getLoadOpcode(String descriptor) {
switch (descriptor.replace("[", "")) {
case "Z":
case "C":
case "B":
case "S":
... | true |
2231c032c466045b96cd1cffa06b5eaebbd9123e | Java | CorfuDB/CorfuDB | /infrastructure/src/main/java/org/corfudb/infrastructure/utils/Persistence.java | UTF-8 | 990 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | package org.corfudb.infrastructure.utils;
import java.io.IOException;
import java.nio.channels.FileChannel;
import java.nio.file.Path;
import java.nio.file.Paths;
/**
* Utils class for classes that need to write to the filesystem.
* <p>
* Created by maithem on 4/4/18.
*/
public final class Persistence {
pri... | true |
909d86b2ac1ad6863671ed75cfb5c008a0bc8df4 | Java | RedickWQ/automation-testing-java | /automation-testing-debug/src/test/java/com/patsnap/automation/analyticsGui/testcase/common/AnalyticsDemoTestComponent.java | UTF-8 | 2,812 | 2.03125 | 2 | [] | no_license | package com.patsnap.automation.analyticsGui.testcase.common;
import com.patsnap.automation.analyticsGui.page.LoginPage;
import com.patsnap.automation.analyticsGui.page.simple.SimpleSearchPage;
import com.patsnap.automation.annotation.AutomationComponent;
import com.patsnap.automation.annotation.AutomationTestCase;
imp... | true |
642c9cdd4cfd2bc22bad0bd1fc825031021a6964 | Java | JohanAOstbye/chessYess | /project/src/main/java/core/chess/pieces/Knight.java | UTF-8 | 1,257 | 3.203125 | 3 | [] | no_license | package core.chess.pieces;
import core.chess.Board;
import core.chess.Square;
public class Knight extends Piece {
double knightMoveDist = Math.hypot(2,1);
public Knight(Square square, boolean isWhite){
super(square, isWhite);
}
public Knight(boolean isWhite){
super(isWhite);
}
... | true |
47980b0b1ab1c0e8e911c0ba8f5d7a1f7a6de930 | Java | riskaamalia/BigData | /graph-accumulo/src/main/java/code.java | UTF-8 | 420 | 3.171875 | 3 | [] | no_license | /**
* Created by 1224A on 8/16/2016.
*/
class code {
public static int getCount(String str) {
int vowelsCount = 0;
// your code here
String vowel = "aiueo";
for (int a=0;a < str.length();a++) {
if (vowel.contains(String.valueOf(str.toLowerCase().charAt(a)))) {
... | true |
ba2f367bd377fe4ea843ed9dca4fa0305f837254 | Java | krack/Ecuries-du-loup | /EcurieLoup/ImageChooser/src/main/java/fr/ecuriesduloup/imagechooser/server/ImageChooserServiceImpl.java | UTF-8 | 1,069 | 2.53125 | 3 | [] | no_license | package fr.ecuriesduloup.imagechooser.server;
import java.util.ArrayList;
import java.util.List;
import service.photo.MediaManager;
import donnees.photo.Media;
import fr.ecuriesduloup.imagechooser.client.ImageChooserService;
import fr.ecuriesduloup.imagechooser.shared.Album;
import fr.ecuriesduloup.imagechooser.share... | true |
8a17f807f51b90c23cfea2ce4e8692dfa52feb88 | Java | justkeep/gong-customer-situation | /gong-customer-situation-api/src/main/java/com/gong/demo/StudentInfo.java | UTF-8 | 4,657 | 3.0625 | 3 | [] | no_license | package com.gong.demo;
import com.google.gson.Gson;
import jodd.util.CollectionUtil;
import org.nustaq.serialization.annotations.Flat;
import java.math.BigInteger;
import java.util.*;
import java.util.stream.Collectors;
/**
* 1.学生总分进行倒序排列
* 2.总分相同数学成绩倒序排列
* 3.数学成绩相同,按录入顺序正序排列
*
* 主要利用稳定性排序规则
*/
public class St... | true |
238a5980e238d597091cc75a457be86e5598ec96 | Java | Erlan01/CommunicationCompany | /src/main/java/pdp/uz/service/CommunicationService.java | UTF-8 | 3,829 | 2.421875 | 2 | [] | no_license | package pdp.uz.service;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import pdp.uz.entity.ServiceCategory;
import pdp.uz.entity.Services;
import pdp.uz.entity.enums.ServiceCategoryEnum;
import pdp.uz.entity.enums.TariffType;
import pdp.uz.payload.ServiceDto;
import pdp.uz.paylo... | true |
58be109c2c2e90fd3d793164797f80ff8b9b374c | Java | SwanGone/SwanAssistant2 | /src/main/java/com/swansoft/repository/PCCommentThreadRepository.java | UTF-8 | 380 | 1.875 | 2 | [] | no_license | package com.swansoft.repository;
import com.swansoft.domain.PCCommentThread;
import org.springframework.data.jpa.repository.*;
import org.springframework.stereotype.Repository;
/**
* Spring Data repository for the PCCommentThread entity.
*/
@SuppressWarnings("unused")
@Repository
public interface PCCommentThreadR... | true |
df075bc6725cd93a7aa79c1a88874ff9d7b63ca2 | Java | ZaichenkoIvan/CarFactorySpring | /src/main/java/ua/company/abstractfactory/parts/cabin/Cabin.java | UTF-8 | 96 | 1.820313 | 2 | [] | no_license | package ua.company.abstractfactory.parts.cabin;
public interface Cabin {
void getInfo();
}
| true |
d4015c9147fbc6352bdef793b17689edbb4c424f | Java | Ciyan97/OOSE-DEA-Spotitube-548189 | /src/main/java/nl/han/oose/services/rest/PlaylistService.java | UTF-8 | 5,153 | 2.21875 | 2 | [] | no_license | package nl.han.oose.services.rest;
import com.google.gson.GsonBuilder;
import nl.han.oose.controllers.track.TrackController;
import nl.han.oose.domain.requests.TrackRequest;
import nl.han.oose.domain.responses.TrackResponse;
import nl.han.oose.exceptions.DatabaseException;
import nl.han.oose.exceptions.EntityNotFoundE... | true |
a9d3d53e47d95716ac847451f00ecd8fadf0e16a | Java | basilevs/RED | /src/Eclipse-IDE/org.robotframework.ide.eclipse.main.plugin/src/org/robotframework/ide/eclipse/main/plugin/tableeditor/assist/AssistProposalAdapter.java | UTF-8 | 5,476 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.robotframework.ide.eclipse.main.plugin.tableeditor.assist;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Optional;
import java.util.funct... | true |
67351b2094370594d5e10071513236d2e0f7bede | Java | LucciaChia/sudoku-with-tests | /src/main/java/sudoku/command/Command.java | UTF-8 | 595 | 2.828125 | 3 | [] | no_license | package sudoku.command;
import sudoku.exceptions.NoAvailableSolutionException;
import sudoku.model.Sudoku;
import sudoku.strategy.Resolvable;
/**
* Command runs given strategy on sudoku to achieve next state
*/
public interface Command {
/**
* Given strategy will be executed and returns sudoku that should... | true |
2c2da19ad0e08529b6ce221a7b593970737e83e4 | Java | marcellinodeodatus/COP3330 | /marcellino_p2/src/App.java | UTF-8 | 3,148 | 3.453125 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Scanner;
public class App {
public static void main(String[] args) {
ArrayList<BodyMassIndex> bmiData = new ArrayList<BodyMassIndex>();
while (moreInput()) {
double height = getUserHeight();
double weight = getUserWeight();
... | true |
d0931a805e9a116380219bfbbe68d9328b2be1de | Java | vivekashwinraman/MovieReferee | /app/src/main/java/com/vraman/moviereferee/apis/MovieDataServiceImpl.java | UTF-8 | 1,943 | 2.421875 | 2 | [] | no_license | package com.vraman.moviereferee.apis;
import android.content.Context;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;
import ... | true |
45b2b9aec3e34127f251446ba535b31af8a6f105 | Java | MilindShingote/LB-Assignments | /Ass60_1.java | UTF-8 | 1,479 | 3.875 | 4 | [] | no_license | /* Write a java program which accepts 2 strings from user and concat N characters of second string after first string.Value of N
should be accepted from user.
Note : If third parameter is greater than the size of second string then concat whole string after first string.
Input : “Marvellous Infosystems”
“Logic Build... | true |
105b72596b0bcd5a4245f693cfd5bfa3eb70775e | Java | snovaks/socket-server | /src/main/java/com/snovaks/server/ServerService.java | UTF-8 | 3,266 | 2.65625 | 3 | [] | no_license | package com.snovaks.server;
import com.snovaks.data.PhoneBookDataService;
import com.snovaks.protocol.NuclearProtocol;
import com.snovaks.protocol.NuclearProtocolTranslator;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;... | true |
38b6ed90d36cbdecace6830169475de9f921daf4 | Java | taylorhessel/spring-playground | /src/main/java/com/example/demo/movie/OMDBResponse.java | UTF-8 | 973 | 2.3125 | 2 | [] | no_license | package com.example.demo.movie;
import com.example.demo.movie.Movie;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonSetter;
import java.util.List;
public class OMDBResponse {
private List<Movie> search;
private int totalResults;
private boolean response;
... | true |
96ca6df535b9be83c19d98342b33b214c17a0f46 | Java | LUHANGSS/lssah | /duoxiancheng.java | UTF-8 | 1,191 | 3.421875 | 3 | [] | no_license | package com.lh.demo;
import java.util.concurrent.Executors;
import java.util.concurrent.ExecutorService;
/**java多线程,线程池
* Created by 路航 on 2017/7/31 0031.
*/
public class duoxiancheng {
public static void main(String[] args) {
// 创建一个固定线程数为三的线程池
ExecutorService pool = Executors.newFixedThreadPool(3);
... | true |
aaf28827e5c5e9ffdc07baeded2468d36294599a | Java | divine13/simple_java_projects | /Dummy.java | UTF-8 | 176 | 2.03125 | 2 | [] | no_license | class Dummy{
public static void main(String[] args) {
String s = System.getProperty("line.separator");
int z = s.length();
System.out.println("line" + z + "line");
}
} | true |
878d998600fb40733ab836d61fc9ed247e0a83f5 | Java | mayannaworld/aws-sqs-cloud | /src/main/java/com/mayanna/awssqscloud/configurations/ProducerConfiguration.java | UTF-8 | 550 | 1.828125 | 2 | [] | no_license | package com.mayanna.awssqscloud.configurations;
import com.amazonaws.services.sqs.AmazonSQSAsync;
import org.springframework.cloud.aws.messaging.core.QueueMessagingTemplate;
import org.springframework.context.annotation.Bean;
public class ProducerConfiguration {
QueueMessagingTemplate queueMessagingTemplate;
... | true |
50bce7588a4c1a4a59f4f437640d91a724783165 | Java | hermanosoares/projetos | /java/gestaoemrede/src/br/com/bulktecnologia/modelo/dao/EspacoFisicoDAO.java | UTF-8 | 2,241 | 2.25 | 2 | [] | no_license | package br.com.bulktecnologia.modelo.dao;
import java.util.List;
import javax.persistence.NoResultException;
import javax.persistence.Query;
import org.hibernate.NonUniqueObjectException;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.AutoCreate;
import org.jboss.seam.annotations.Name;
import org... | true |
11f989f21a91070675b4fc0b8e022f744c05e17e | Java | D-a-r-e-k/Code-Smells-Detection | /Preparation/processed-dataset/god-class_1_1087/8.java | UTF-8 | 639 | 2.703125 | 3 | [] | no_license | //}}}
//{{{ constructPath() method
/**
* Constructs a path from the specified directory and
* file name component. This must be overridden to return a
* non-null value, otherwise browsing this filesystem will
* not work.<p>
*
* Unless you are writing a VFS, this method should not be called
* directly.... | true |
b22419210417ef5c06271a84d9331e42356aa463 | Java | Kiran-Bahalaskar/android-task | /app/src/main/java/com/kiranbahalaskar/androidtaskfromlattice/Authentication/ActivityRegistration.java | UTF-8 | 9,152 | 1.9375 | 2 | [] | no_license | package com.kiranbahalaskar.androidtaskfromlattice.Authentication;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.app.DatePickerDialog;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bu... | true |
55e69bf43036429b6feb16a75f86b5554fa895a0 | Java | cjp472/wuxiaobo-Android | /app/src/main/java/com/xiaoe/shop/wxb/business/earning/presenter/EarningListViewHolder.java | UTF-8 | 569 | 1.90625 | 2 | [] | no_license | package com.xiaoe.shop.wxb.business.earning.presenter;
import android.view.View;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.xiaoe.shop.wxb.R;
public class EarningListViewHolder {
@BindView(R.id.earning_item_title)
TextView listItemTitl... | true |
c1a3c96591cb04bb330620fa94abba55a48b503a | Java | rchenhyy/design-pattern-learning | /src/main/java/com/rchenhyy/helloworld/dp/structural/flyweight/Font.java | UTF-8 | 165 | 1.804688 | 2 | [] | no_license | package com.rchenhyy.helloworld.dp.structural.flyweight;
/**
* 字体
*
* @author chenjiahua.chen
* @version v1.0.0
* @since 17/11/3
*/
public class Font {
}
| true |