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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
1634301449bd364299d5a9b8752aa999afe02539 | Java | alex-estela/peerframe | /src/main/java/fr/estela/peerframe/device/entity/SmugmugProviderEntity.java | UTF-8 | 1,731 | 2.03125 | 2 | [
"MIT"
] | permissive | package fr.estela.peerframe.device.entity;
import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import fr.estela.peerframe.device.service.AbstractDownloadManager;
import fr.estela.peerframe.device.service.SmugmugDownloadManager;
@Entity
@Discriminat... | true |
5da00439d3a890bb414a1ac621c4076abdd3ba49 | Java | zhangle05/PuzzleMaster | /app/src/main/java/master/sudoku/widgets/WidgetBase.java | UTF-8 | 1,063 | 2.4375 | 2 | [] | no_license | /**
*
*/
package master.sudoku.widgets;
import android.graphics.Canvas;
import android.graphics.Rect;
import java.util.Vector;
import master.sudoku.event.EventSource;
import master.sudoku.shapes.ShapeBase;
import master.sudoku.views.ViewBase;
/**
* @author dannyzha
*
*/
public abstract class ... | true |
7398e005902e2afaaf21316c46ae4ac1315139d2 | Java | SiarheiBialtsou/JavaLearn | /task02/Task02.java | UTF-8 | 1,363 | 3.625 | 4 | [] | no_license | /* №2. Вычислить значение выражения по формуле (все переменные принимают
* действительные знвчения): z = ((b + sqrt(b*b+4*a*c)/2/a - a*a*a*c + 1/b/b);
*/
package by.java.training.task02;
/**
* @author Siarhei Bialtsou
*/
import java.util.Scanner;
public class Task02 {
public static void main(String[] args) {... | true |
e95e8b31209bbe664177ab1ddc24585670f013d5 | Java | kdvolder/tyRuBa | /src/tyRuBa/engine/visitor/CollectTemplateVarsVisitor.java | UTF-8 | 1,884 | 2.1875 | 2 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package tyRuBa.engine.visitor;
import java.util.HashSet;
import tyRuBa.engine.RBCountAll;
import tyRuBa.engine.RBDisjunction;
import tyRuBa.engine.RBExistsQuantifier;
import tyRuBa.engine.RBFindAll;
import tyRuBa.engine.RBIgnoredVariable;
import tyRuBa.engine.RBNotFilter;
import tyRuBa.engine.RBTemplateVar;
import ty... | true |
4eff58529d2e6b3dc9ef14d77ecb9a8d84c505c3 | Java | JinlongLiao/easy-tools | /commons/commons-common/src/test/java/io/github/jinlonghliao/common/core/date/TimeZoneTest.java | UTF-8 | 1,309 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2020-2021 JinlongLiao
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law... | true |
bc0de1e6c8aff1a5cb8d882126b600c49d504bd2 | Java | coelhae/flickrized | /app/src/main/java/pt/alex/flickrized/data/DataHelper.java | UTF-8 | 847 | 2.265625 | 2 | [] | no_license | package pt.alex.flickrized.data;
import com.googlecode.flickrjandroid.photos.PhotoList;
/**
* Created by nb19875 on 24/06/16.
*/
public class DataHelper {
/***
* Data que é consistente e deve ser assevivel em todas as actividades.
* Definir como singleton para facil acesso.
*/
private stati... | true |
9792a2532920c4bc3bf9c2dcf531f024f2295059 | Java | rewritehackathon/tech-miners | /src/main/java/com/hackathon/tech_miners/controllers/SendMerchantSelectionController.java | UTF-8 | 770 | 2.171875 | 2 | [
"MIT"
] | permissive | package com.hackathon.tech_miners.controllers;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.hackathon.tech_miners.beans.MerchantInfo;
@RestController
public class S... | true |
cd7be84848f6eec213a9c3137b0fcf7a3e7a691c | Java | AAEfremov/VkRestApi | /src/main/java/core/VkApiGetCitiesMethod.java | UTF-8 | 3,765 | 2.125 | 2 | [] | no_license | package core;
import beans.VkGetCitiesAnswer;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import io.restassured.RestAssured;
import io.restassured.builder.RequestSpecBuilder;
import io.restassured.builder.ResponseSpecBuilder;
import io.restassured.http.ContentType;
import io.restassured.resp... | true |
9668d3de853129943aa1c881c814d353dcb0bd9d | Java | shl4sg/Blog | /src/com/servlet/IndexServlet.java | UTF-8 | 2,258 | 2.265625 | 2 | [] | no_license | package com.servlet;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import ... | true |
40e4a91490608210e015316ff0735a3159edeb91 | Java | luolinyin/MilkTea | /app/src/main/java/com/xiaozhi/frame/main/view/SetTickeyView.java | UTF-8 | 911 | 1.960938 | 2 | [] | no_license | package com.xiaozhi.frame.main.view;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import com.xiaozhi.frame.main.R;
import com.xiaozhi.frame.mvp.v.view.BaseView;
/**
* Created by Fynner on 2017/1/1.
* 账户信息视图
*/
public class SetTickeyView extends BaseView {
private C... | true |
78605bcc5e07044482e1d95199a88f14ab919add | Java | brownry1986/CleenSweeper | /HardwareInterface/src/main/java/com/sweeper/hardware/interfaces/MovementApparatus.java | UTF-8 | 178 | 1.992188 | 2 | [] | no_license | package com.sweeper.hardware.interfaces;
public interface MovementApparatus {
void moveLeft();
void moveRight();
void moveForward();
void moveBackward();
}
| true |
8fb6fa92473aafd6545f657dee780305dfd07550 | Java | power-coders/javatrack-cmdhandler | /src/StreamExercises/Exercise2.java | UTF-8 | 560 | 3.71875 | 4 | [] | no_license | package StreamExercises;
import java.util.Arrays;
import java.util.List;
/**
* Created by joris on 19.01.17.
*/
/*
Given is a list of the following Strings: "adam", "anna", "eva".
Print the first string names if any. Use streams in combination with stream operations to solve the
problem.
Output is:
adam
*/
public... | true |
bb33ddfba46aba5eff5601e5d6a08d93ea44c3be | Java | HlubyLuk/Euler_java | /src/main/java/cz/hlubyluk/euler/problems/Problem31.java | UTF-8 | 732 | 3.546875 | 4 | [] | no_license | package cz.hlubyluk.euler.problems;
import cz.hlubyluk.euler.solvers.SolverKnapsack;
/**
*
*
* In England the currency is made up of pound, £, and pence, p, and there are eight coins in general circulation:
*
* 1p, 2p, 5p, 10p, 20p, 50p, £1 (100p) and £2 (200p).
*
* It is possible to make £2 in the following w... | true |
28ddeae17dd52efd0d4dd67cda92add64d9fc639 | Java | ingridc/WhereOnEarthIsRickyFortAndroidGrupo9 | /app/src/main/java/com/example/gaston/rickyapp/CarmenSanDiegoService.java | UTF-8 | 1,108 | 1.953125 | 2 | [] | no_license | package com.example.gaston.rickyapp;
import com.example.gaston.rickyapp.model.Caso;
import com.example.gaston.rickyapp.model.PistaAdapter;
import com.example.gaston.rickyapp.model.Villano;
import com.example.gaston.rickyapp.model.Lugar;
import retrofit.Callback;
import retrofit.http.Body;
import retrofit.http.GET;
i... | true |
d6cff987e7008227f16103114edce7da5bdd4f44 | Java | NoorMohamme/firstassi | /Assignement/src/test/java/Assignment1Tests.java | UTF-8 | 1,115 | 2.8125 | 3 | [] | no_license |
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.io.IOException;
import org.apache.commons.io.FileSystemUtils;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
/**
* @author STUDENT_NAME //TODO
*
*/
public clas... | true |
06c58f054c4fda4769a46f620178b5c2a60e8f70 | Java | d391/UBB-Advanced-Methods-of-Programming | /ToyLanguageInterpreter/src/model/expressions/VarExp.java | UTF-8 | 659 | 2.390625 | 2 | [] | no_license | package model.expressions;
import model.adt.Heap;
import model.type.Type;
import model.value.Value;
import model.MyException;
import model.adt.MyIDictionary;
public class VarExp implements Exp
{
private String id;
public VarExp(String _id) {id = _id;}
@Override
public String toString(... | true |
e224c5f61808b704e16d54a07733ffc852056f5b | Java | B3tah3/DSA | /Tests/graphs/GraphTest.java | UTF-8 | 1,571 | 3.015625 | 3 | [] | no_license | package graphs;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class GraphTest {
@Test(expected = IllegalArgumentException.class)
public void depthFirstSearchNoPath() {
int[][] k = { { 0, 1 } };
Graph g = new Graph(k);
g.depthFirstSearch(1, 0);
}
@Test(expected = IllegalArgum... | true |
065320f46ff685ff58fae03b245ee8cfe835ebcb | Java | cha63506/CompSecurity | /Entertainment/youtube_kids_source/src/crk.java | UTF-8 | 5,510 | 1.804688 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
import android.net.Uri;
import android.text.TextUtils;
import java.text.ParseException;
import java.util.Arrays;
import java.util.Collections;
im... | true |
87dfba4aa879f565523295b455bf013031f04dcf | Java | metroliu/NewBalanceServer | /src/com/newbalance/rickie/services/UserServiceImp.java | GB18030 | 2,501 | 2.40625 | 2 | [] | no_license | package com.newbalance.rickie.services;
import java.sql.SQLException;
import javax.management.RuntimeErrorException;
import com.newbalance.rickie.dao.UserDao;
import com.newbalance.rickie.dao.UserDaoImp;
import com.newbalance.rickie.utils.Macro;
import com.newbalance.rickie.vo.UserVO;
public class UserServiceImp im... | true |
fe66039f32e9c72217a3a3e4e97ef9cb233143e8 | Java | Milica775/Design-patterns | /DO Project/src/export/SaveToDrawFile.java | UTF-8 | 825 | 2.96875 | 3 | [] | no_license | package export;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
public class SaveToDrawFile implements Export{
@Override
public void export(ArrayList<Object> data, String path) {
try {
... | true |
f0c52cb9b32b5636b884d7a7dd57943ecc5656ef | Java | isaacherrera47/polish-j | /src/modelos/Articulo.java | UTF-8 | 6,745 | 2 | 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 modelos;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import javax.persistenc... | true |
850d5aadbd73897c82d58d5ed7e38ecfa7b9f829 | Java | giridhar/TactfulTokenizer | /src/tactful/tokenizer/Doc.java | UTF-8 | 2,793 | 3.359375 | 3 | [] | no_license | package tactful.tokenizer;
import java.io.BufferedReader;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.List;
//A document represents the input text. It holds a list of fragments generated
//from the text.
public class Doc {
public List<Frag> frags = new ArrayList<Frag>();
// # Receive... | true |
86286a7578ad3b78416172060b075c41a6dc665e | Java | avantikasingh/Hotel-Management-System | /Sprint 4/src/main/java/com/cg/hotelmanagement/test/HotelTest.java | UTF-8 | 1,697 | 2.3125 | 2 | [] | no_license | package com.cg.hotelmanagement.test;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import com.cg.hotelmanagement.dao.AdminDao;
import com.cg.hotelmanagement.dao.IAdminDao;
import com.cg.... | true |
85398671116240f279b7466a893cd2056c7472fc | Java | archimatetool/archi | /org.eclipse.gef/src/org/eclipse/gef/RootEditPart.java | UTF-8 | 1,745 | 2.265625 | 2 | [
"EPL-1.0",
"LicenseRef-scancode-free-unknown",
"MIT"
] | permissive | /*******************************************************************************
* Copyright (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | true |
f50d222788ca417aeaec18589dd213758c18df58 | Java | lilperso/gesEmp | /src/test/java/ca/ulaval/glo4003/ULavalWebTimeSheet/Domaine/Travail/TacheTest.java | UTF-8 | 1,269 | 2.40625 | 2 | [] | no_license | package ca.ulaval.glo4003.ULavalWebTimeSheet.Domaine.Travail;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
public class TacheTest
{
private static final String EMPLOYE1 = "employe1";
private static final Stri... | true |
682aa3408a311a1ceb42077318227ea994e7f4d4 | Java | jasonyell/JasonyellCode | /2020-08-18-项目-在线抽奖系统/javaee-study/lucky-draw/src/main/java/jasonyell/service/MemberService.java | UTF-8 | 484 | 2.0625 | 2 | [] | no_license | package jasonyell.service;
import jasonyell.mapper.MemberMapper;
import jasonyell.model.Award;
import jasonyell.model.Member;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class MemberService {
@Aut... | true |
5e66e4f2e662f9aeecfe9847192bd52dc1a83850 | Java | NaruseII/ServerManager-GitDeploy | /src/org/eclipse/jgit/api/RemoteAddCommand.java | UTF-8 | 2,688 | 2.328125 | 2 | [] | no_license | /*
* Copyright (C) 2015, Kaloyan Raev <kaloyan.r@zend.com> and others
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0 which is available at
* https://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Claus... | true |
8c81c586ed1e5d1585af1acb452c9d7faa7003f2 | Java | ajperalt/BPMN-Cmof2Ecore | /fr.obeo.bpmn.cmof/src/bpmdi/BpmdiFactory.java | UTF-8 | 2,153 | 1.71875 | 2 | [] | no_license | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package bpmdi;
import org.eclipse.emf.ecore.EFactory;
/**
* <!-- begin-user-doc -->
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
* @see bpmdi.BpmdiPackage
* @generated
*/
pub... | true |
2e69ca64eab195adf38b1cfa9a2e6f73f6889578 | Java | tu-nd/Java | /HocString_TachChuoi_Split/src/communityuni/com/Test_Split.java | UTF-8 | 704 | 3.5 | 4 | [] | no_license | package communityuni.com;
public class Test_Split {
public static void main(String[] args) {
String s = "Obama>putin kim Jong Un";
String []arr = s.split("\\ "); // "\\" dùng để đánh dấu đây là ký hiệu đặc biệt trong mọi trường hợp đều thêm "\\"
if(arr.length == 3);
{
// System.out.println("Ten 1 :... | true |
796237cd287cc6f2b514681d36ce2d94fa0c10f9 | Java | Phynvi/Library | /src/entity/geometry/path/PathNode.java | UTF-8 | 584 | 2.90625 | 3 | [] | no_license | package entity.geometry.path;
import java.util.ArrayList;
import java.util.List;
import entity.geometry.Point3D;
/**
*
* @author Albert Beaupre
*/
public class PathNode extends Point3D {
public PathNode(int x, int y, int z) {
super(x, y, z);
}
/**
*
*/
public List<PathNode> neighbors(int radius) {
... | true |
7c732be0a0ef94fcf8856074d54ed62eaf4c08cf | Java | hpplayer/CrackingCodeNew | /src/Chapter5/p_5_3.java | UTF-8 | 859 | 3.484375 | 3 | [] | no_license | package Chapter5;
public class p_5_3 {
/*
* count the num of 1 in the input
*/
static int CountOne(int num){
int count = 0;
String binary = Integer.toBinaryString(num);
for(int i = 0; i < binary.length(); i++){
if(binary.charAt(i) == '1'){
count ++;
}
}
return count;
}
static int findm... | true |
aaffbb781983c534d28e61dd57073e269c59cd6e | Java | veronicaL510/EclipseWorkspaceCompSci20 | /tutorial/src/Lesson11/number6.java | UTF-8 | 271 | 2.546875 | 3 | [] | no_license | package Lesson11;
public class number6 {
public static void main(String[] args) {
// TODO Auto-generated method stub
double d = 100.01;
int b = 0;
for (int iMus = 0; iMus < 10; iMus++)
b = 19 + iMus;
d++;
System.out.println(d);
}
}
| true |
e9a8e810a9e8988e6d94911fcc2951adcc62da5f | Java | valentinokusec/lolmains | /src/main/java/com/lolmains/services/NotificationServiceImpl.java | UTF-8 | 1,888 | 1.851563 | 2 | [] | no_license | package com.lolmains.services;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
... | true |
6587abe78455f1e15c97d4206fa16dde3e1bd216 | Java | stormbaron/ImageLoaderHelper | /ImageHelperlibrary/src/main/java/com/juli/library/ImageHelper/imageLoader/ImageLoaderManager.java | UTF-8 | 3,021 | 2.25 | 2 | [] | no_license | package com.juli.library.ImageHelper.imageLoader;
import android.view.View;
import com.juli.library.ImageHelper.ImageShowActivity;
/**
* Created by stormbaron on 17-7-17.
*/
public class ImageLoaderManager {
private static ImageLoaderManager instance = new ImageLoaderManager();
private ImageLoaderHelper ... | true |
5449303dfcefa8a763e6329c0384148f042954e2 | Java | mayankkumar0078/CollegeDaysProject | /src/main/java/com/collegeDays/factory/ProcessorFactory.java | UTF-8 | 627 | 2.53125 | 3 | [] | no_license | package com.collegeDays.factory;
import java.util.Map;
import com.collegeDays.processors.IModuleProcessor;
public class ProcessorFactory {
private Map<ProcessorFactory.Module, IModuleProcessor> processorsMap;
public Map<ProcessorFactory.Module, IModuleProcessor> getProcessorsMap() {
return processorsMap;
}
... | true |
85fe5e0a9424863cda9cdd3cd6cbb6fda417e170 | Java | NitinChella/Carifit | /app/src/main/java/com/example/android/carifit/CharityActivity.java | UTF-8 | 2,274 | 2.3125 | 2 | [] | no_license | package com.example.android.carifit;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.googl... | true |
8e6660f11fe02b1d3f3380f869dd29de12026ece | Java | cbnusw/Judger-Main | /professor/src/test/java/com/qt/homework/HomeworkAcceptanceTest.java | UTF-8 | 1,682 | 1.976563 | 2 | [] | no_license | //package com.qt.homework;
//
//import org.junit.jupiter.api.BeforeEach;
//import org.junit.jupiter.api.DisplayName;
//import org.junit.jupiter.api.extension.ExtendWith;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.http.MediaType;
//import org.springframework.test.context.... | true |
222a981a1445d09defa07c7d88fb73e2d5177501 | Java | jaimeefrainguira/mis-proyectos | /Sistema-De-Ventas/src/clases/FacturaDetalle.java | UTF-8 | 2,890 | 2.421875 | 2 | [] | no_license | package clases;
public class FacturaDetalle
{
private int FAC_CAB_ID;
private int PRO_ID;
private int FAC_DET_CANTIDAD;
private double FAC_DET_PVP;
private double FAC_DET_DESCUENTO;
private double FAC_DET_TOTAL;
private double FAC_DET_PC;
public FacturaDetalle()
{
}
... | true |
8befc5d16dee9025a5213da5bbfa13c8d703f3d4 | Java | Chepell/JavaRushTasks | /2.JavaCore/src/com/javarush/task/task15/task1507/Solution.java | UTF-8 | 3,514 | 4.03125 | 4 | [] | no_license | package com.javarush.task.task15.task1507;
/*
ООП - Перегрузка
Перегрузите метод printMatrix 8 различными способами. В итоге должно получиться 10 различных методов printMatrix.
Требования:
1. В классе Solution должны быть реализованы 10 методов printMatrix с различными аргументами.
2. Класс Solution должен быть pub... | true |
06470f67fcec35713afd4a2d85b7fd1a21656d5a | Java | witoza/algh-4-fun | /test/org/wito/BSTTest.java | UTF-8 | 565 | 2.65625 | 3 | [] | no_license | package org.wito;
import org.junit.Test;
public class BSTTest {
@Test
public void sampleTest() {
BST<Integer> bst = new BST<Integer>();
bst.add(30, 60, 70, 80, 90, 12, 5, 6, 7, 8, 9, 100, 200, 300, 56, 57, 58);
bst.getInOrder();
bst.findAndPrint(10);
bst.findAndPrint(99);
bst.findAndPrint(101);
bst.f... | true |
ba9944c6afe487e14776efecc5a021a313360fdc | Java | HanSolo/charts | /src/main/java/eu/hansolo/fx/charts/YPane.java | UTF-8 | 26,884 | 1.734375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2017 by Gerrit Grunwald
*
* 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... | true |
4cf4c88565b92d3a26b94f53ea05bb3397bebabe | Java | mian4work/Algorithm | /Autocomplete System/src/Main.java | UTF-8 | 317 | 2.734375 | 3 | [] | no_license | public class Main {
public static void main(String[] args) {
String[] strings = new String[]{"dog", "deer", "deal"};
Solution solution = new Solution(strings);
String[] result = solution.search("de");
for(int i = 0; i < result.length; i++) {
System.out.println(result[i]);
}
}
}
| true |
faaa6e232f4d1e3d52d1613e6ae84602cc93c9ce | Java | colps/handson | /battleship/src/test/java/com/tw/battleship/game/PlayerUnitTest.java | UTF-8 | 3,061 | 2.9375 | 3 | [] | no_license | package com.tw.battleship.game;
import com.tw.battleship.game.board.BattleArea;
import com.tw.battleship.game.piece.AttackResult;
import com.tw.battleship.game.piece.Target;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import static org.junit.Assert.... | true |
57f46cdbc1a58e515f401a3e7d3f684e043fbdde | Java | nstdio/assertj-core | /assertj-core/src/test/java/org/assertj/core/presentation/StandardRepresentation_unambiguousToStringOf_Test.java | UTF-8 | 21,449 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under t... | true |
418a1ef532bee4eeedb1702df7e42be8ebb45843 | Java | wangjianlin1985/android_hotel | /安卓服务器/src/com/chengxusheji/action/EvaluateAction.java | GB18030 | 11,706 | 2.171875 | 2 | [] | no_license | package com.chengxusheji.action;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import org.apache.struts2.ServletActionContext;
import org.springframework.context.annotation.Scope;
import org.springframework.stereoty... | true |
18a25959954c639e92af512ba4a8bf627ac9a3d0 | Java | yinhanxy/volunteer | /.svn/pristine/e8/e899cb89d9db10a1481ee5363dc5de6b8fc489c7.svn-base | UTF-8 | 535 | 2 | 2 | [] | no_license | package com.topstar.volunteer.service;
import java.util.List;
import com.github.pagehelper.PageInfo;
import com.topstar.volunteer.model.LockUser;
public interface LockUserService {
/**
* 分页显示被锁住的用户信息
* @param userName 供查询的用户名或昵称
* @param pageIndex
* @param pageSize
* @return
*/
public PageInfo<LockUs... | true |
34fd3315c773d7bbf78de3608195635599122afd | Java | galahade/Common_SSO | /domain/src/main/java/com/yang/young/common/sso/persistance/jpa/repository/RoleRepository.java | UTF-8 | 348 | 1.890625 | 2 | [
"Apache-2.0"
] | permissive | package com.yang.young.common.sso.persistance.jpa.repository;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import com.yang.young.common.sso.persistance.jpa.entity.RoleEntity;
public interface RoleRepository extends JpaRepository<RoleEntity, Long>{
Optional<RoleEntity> ... | true |
737a4da08fe8d2f6e574f99d3e0702718546f469 | Java | kaissapy/IntroduccionJavaGS | /TareaTercerParcial/src/py/com/uaa/pooj/interfaces/Mascota.java | UTF-8 | 104 | 1.617188 | 2 | [] | no_license | package py.com.uaa.pooj.interfaces;
public interface Mascota {
public String desplegarNombre();
}
| true |
412bb5e903d6bd70845b31890f2ca706fbe678a2 | Java | Aleks-Ya/yaal_examples | /Java+/Libs+/WebDav+/Sardine/test/sardine/ListTest.java | UTF-8 | 1,302 | 2.15625 | 2 | [] | no_license | package sardine;
import com.github.sardine.DavResource;
import com.github.sardine.Sardine;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import static org.assertj.core.api.Assertions.assertThat;
class ListTest extends ... | true |
3c07ffb96b7561e93cb8ac97e8a77aa4cd1b3d41 | Java | DreamCloudWalker/ChestnutShell | /app/src/main/java/com/dengjian/chestnutshell/highlevelui/particleexplode/FallingParticle.java | UTF-8 | 1,204 | 2.515625 | 3 | [
"MIT"
] | permissive | package com.dengjian.chestnutshell.highlevelui.particleexplode;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.util.Log;
import com.dengjian.common.utils.Utils;
public class FallingParticle extends Particle {
private stat... | true |
603538483a859339950581006666c7be6bf6881d | Java | jison228/MarioPartyChuckNorris | /src/main/java/com/chucknorris/server/Sala.java | UTF-8 | 666 | 2.21875 | 2 | [] | no_license | package com.chucknorris.server;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.chucknorris.game.Game;
public class Sala {
public List<String> players;
public Map<String,ClientLobbyThread> threadsMap;
public boolean playing;
public String name;
publi... | true |
0b417792fa64c7a4a6ac58199bc7ba576b4f751b | Java | cherieruan/DawgDebauchery | /app/src/main/java/edu/uw/cruan/dawgdebauchery/LoginActivity.java | UTF-8 | 6,730 | 2.265625 | 2 | [] | no_license | package edu.uw.cruan.dawgdebauchery;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.KeyEvent;
... | true |
e1a1d345c36635364608633f6b7919e581c5e0f7 | Java | jishuke/Lj_costomapp | /app/src/main/java/com/defence/costomapp/adapter/BuhuoCeguiGoodsAdapter.java | UTF-8 | 2,566 | 2.171875 | 2 | [] | no_license | package com.defence.costomapp.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.LinearLayout;
import android.widget.TextView;
import c... | true |
1ddd282ba6122e8a270ed5c2fd24a8b30dddba36 | Java | shmuelse/Ray-tracing-project | /src/unittests/ImprovementsTests.java | UTF-8 | 17,173 | 3.03125 | 3 | [] | no_license | package unittests;
import org.junit.Test;
import elements.*;
import geometries.*;
import primitives.*;
import renderer.*;
import renderer.Render;
import scene.Scene;
import java.io.IOException;
/**
* Tests for improvements features:
* anti-aliasing
* soft-shadow
* multi-threading
* adaptive anti-aliasing
*
*... | true |
97e3b49a0e705cf38a591ad71779feeba7625c31 | Java | apache/cxf | /services/xkms/xkms-client/src/test/java/org/apache/cxf/xkms/cache/XKMSClientCacheTest.java | UTF-8 | 4,792 | 2.171875 | 2 | [
"LicenseRef-scancode-unknown",
"Apache-2.0"
] | permissive | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you m... | true |
0aab9e3db46ddd6a34bb0c895110f2fb6a38502a | Java | hakanai/TimeFlow | /src/timeflow/app/ui/ReorderFieldsPanel.java | UTF-8 | 2,032 | 2.5625 | 3 | [] | no_license | package timeflow.app.ui;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.util.ArrayList;
import java.util.Enumeration;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.table.TableColumn;
import timeflow.data.db.Field;
import timeflow.model.Mode... | true |
8db00b5e1093fb927e639d2d44466352f862f538 | Java | Corinne-zhu/Head_first_Java | /src/Chapter3_VariableType/Dog.java | UTF-8 | 610 | 3.703125 | 4 | [
"MIT"
] | permissive | package Chapter3_VariableType;
// 創建dog 對象
public class Dog {
public String name;
public int size; // 大小影響叫聲
public Dog() {
super();
}
public Dog(String name, int size) {
super();
this.name = name;
this.size = size;
}
public void bark() {
if (this.size > 60) {
System.out.println("Woof! Woof!");... | true |
0f92a91fb3a29765a334ac9b0a4eebe4b950ae82 | Java | Ethon/logmaker | /logmaker-desktop/src/main/java/cc/ethon/logmaker/gen/model/WeightModel.java | UTF-8 | 1,374 | 2.703125 | 3 | [] | no_license | package cc.ethon.logmaker.gen.model;
import java.text.DecimalFormat;
import freemarker.template.SimpleScalar;
import freemarker.template.TemplateMethodModelEx;
import freemarker.template.TemplateModelException;
public class WeightModel {
private static final String DEFAULT_FORMAT = "$KGkg";
private static final D... | true |
59bd1ccaec1a16aab616e27b9d2708e0b7452977 | Java | mhelmi/CarShowroom | /app/src/main/java/com/bugevil/mhelmi/carshowroom/features/cars/domain/models/Car.java | UTF-8 | 952 | 2.34375 | 2 | [] | no_license | package com.bugevil.mhelmi.carshowroom.features.cars.domain.models;
import android.content.Context;
import androidx.annotation.Keep;
import com.bugevil.mhelmi.carshowroom.R;
import com.google.gson.annotations.SerializedName;
@Keep
public class Car {
@SerializedName("id")
private int id;
@SerializedName("brand")... | true |
15b6c79ab0df24e0531870de0874c3a9187a7368 | Java | atsisy/yes_bomber | /src/filed/BattleField.java | UTF-8 | 433 | 2.390625 | 2 | [] | no_license | package filed;
import javafx.scene.input.KeyCode;
/**
* Created by Akihiro on 2017/04/30.
*/
public class BattleField extends Field {
public BattleField(){
super();
}
@Override
public void ReceiveKeyCode(KeyCode code){
if(code.equals(KeyCode.UP)){
}else if(code.equals(KeyCo... | true |
2e3cdb9769ac7e1ff68f988b39e0044b67ae98cb | Java | chyciu/hibernate_pacjentUpo_Embedded_Embeddable | /src/main/java/rozwiazanie/Zadanie1_rozwiazanie.java | UTF-8 | 243 | 1.5 | 2 | [] | no_license | package rozwiazanie;
import org.hibernate.Session;
public class Zadanie1_rozwiazanie {
public static void main(String[] args) {
Session session = HibernateUtil.getSessionFactory().openSession();
session.close();
}
}
| true |
4fcbf71962ed7f7a5ab78b3861ec170875cbd9df | Java | SN4NTR/TelegramBot | /src/main/java/com/company/bot/service/BotService.java | UTF-8 | 648 | 2.03125 | 2 | [] | no_license | package com.company.bot.service;
import org.telegram.telegrambots.meta.api.methods.send.SendChatAction;
import org.telegram.telegrambots.meta.api.methods.send.SendMessage;
import org.telegram.telegrambots.meta.api.objects.Update;
import org.telegram.telegrambots.meta.api.objects.replykeyboard.ReplyKeyboardMarkup;
imp... | true |
d0c222deb974ed4f79a7b9c4b98c6a432faaa2e6 | Java | IF3110-II-7/IF3110-02-Simple-Blog-Java | /src/java/Bean/UnpublishedPost.java | UTF-8 | 1,276 | 2.296875 | 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 Bean;
import Database.DatabaseAccess;
import Model.Post;
import Model.Posts;
import java.sql.SQLException;
import java.util.A... | true |
fd28cd4cb7fbaf5cbb9c8517b1c85acd491f276f | Java | mateusgon/TesteSoftware | /src/test/java/PaginaTeste.java | UTF-8 | 919 | 1.953125 | 2 | [] | no_license |
import org.junit.BeforeClass;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.PageFactory;
//
public class PaginaTeste {
static WebDriver driver;
@BeforeClass
public static void configura()
{
S... | true |
41e53151c750f4e7383df68ee04e453312f80a4f | Java | AviAvin/ArrayJavaScript | /Avinash2/src/webdriver/DropdownPB.java | UTF-8 | 908 | 2.125 | 2 | [] | no_license | package webdriver;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.Select;
public class DropdownPB {
public static void main(String[... | true |
4d09daf75024072f4ae12abdfe519f4efc20a3f0 | Java | merkle-open/spring-configuration-support | /spring-configuration-support/src/main/java/com/namics/oss/spring/support/configuration/model/ConfigurationValue.java | UTF-8 | 1,718 | 2.390625 | 2 | [
"MIT"
] | permissive | /*
* Copyright 2000-2011 namics ag. All rights reserved.
*/
package com.namics.oss.spring.support.configuration.model;
import com.namics.oss.spring.support.configuration.Environment;
import java.io.Serializable;
/**
* Represents a configuration value.
*
* @author Sandro Ruch, namics ag
* @since namics-configu... | true |
48f9b0ed7ae9b9f82f9f3aa3e28bb9b8ae854a06 | Java | 623162052/spring-demo | /src/main/java/com/dubbo/service/impl/CustomerServiceImpl.java | UTF-8 | 660 | 2.125 | 2 | [] | no_license | package com.dubbo.service.impl;
import com.dubbo.service.ICustomerService;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.Map;
/**
* 客户信息接口
* Created by shiwx on 2017/6/15.
*/
@Service
public class CustomerServiceImpl implements ICustomerService {
/**
* 查询客户信息
... | true |
d295fdd9b2a2ae89d6bac4e477650fefdcd4706c | Java | ElisaaRodrigues/Agenda-Telefonica | /src/main/java/poo/Principal.java | UTF-8 | 556 | 2.734375 | 3 | [] | no_license | package poo;
import java.time.LocalDate;
public class Principal {
public static void main(String[] args) {
Agenda agenda = new Agenda();
Pessoa stefanie = new Pessoa("Stefanie", "Martins", LocalDate.of(1997,7,14));
stefanie.addTelefone("celular", "48996948370");
stefanie.addEmail(... | true |
d8e34295835886b5913171e020636ad195598231 | Java | edwinvanelk/multifactor-authentication | /javasource/googleauthenticator/proxies/constants/Constants.java | UTF-8 | 625 | 1.585938 | 2 | [] | no_license | // This file was generated by Mendix Studio Pro.
//
// WARNING: Code you write here will be lost the next time you deploy the project.
package googleauthenticator.proxies.constants;
import com.mendix.core.Core;
public class Constants
{
// These are the constants for the GoogleAuthenticator module
public static ja... | true |
0f45b95ec5bec8fde77a3dae756e1be7306772e6 | Java | SulthanRafif/PushNotification | /app/src/main/java/com/example/pushnotification/MainActivity.java | UTF-8 | 3,713 | 2.03125 | 2 | [] | no_license | package com.example.pushnotification;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.NotificationCompat;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import ... | true |
796eae5df700b9b7acd6f761dd3d71751d6be449 | Java | zhangweimtan/zhangweiJava | /proj3MyFlowControl/src/com/mytest_for_03/ForTest_99_Table.java | UTF-8 | 361 | 3.125 | 3 | [] | no_license | package com.mytest_for_03;
/*
九九乘法口诀
*/
public class ForTest_99_Table {
public static void main(String[] args) {
// 定义变量
for(int i=1; i<10; i++ ) {
for(int j =1; j<=i; j++) {
System.out.printf("%d*%d=%2d%s",i, j, i*j,"\t");
}
System.out.println(... | true |
0a97e44eb80b02174bd025012ff23d922c9770a4 | Java | chun2333/incubator-inlong | /inlong-manager/manager-workflow-engine/src/main/java/org/apache/inlong/manager/workflow/util/WorkflowFormParserUtils.java | UTF-8 | 3,598 | 2.203125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-compass",
"MIT",
"BSD-3-Clause"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may n... | true |
21451cbb18f7c5f8fdb67c6c4b5fbf9a51251d75 | Java | yonathanliem2489/DEMO-CONFIGURATION-SPRING-BOOT | /src/main/java/demo/configuration/service/cache/DefaultDirectoryCache.java | UTF-8 | 679 | 2.28125 | 2 | [] | no_license | package demo.configuration.service.cache;
import demo.configuration.service.model.entity.Directory;
import org.springframework.data.redis.core.ReactiveRedisTemplate;
import org.springframework.util.Assert;
import reactor.core.publisher.Mono;
public class DefaultDirectoryCache implements DirectoryCache {
private fi... | true |
03460926938cdece1b617e2affa18574e88f267f | Java | snobotsim/CoordinateGui | /CoordinateGuiCore/src/main/java/org/snobot/coordinate_gui/ui/layers/BaseGuiController.java | UTF-8 | 8,598 | 2.046875 | 2 | [
"MIT"
] | permissive | package org.snobot.coordinate_gui.ui.layers;
import javafx.scene.paint.Color;
import org.snobot.coordinate_gui.model.FieldLoader;
import org.snobot.coordinate_gui.model.Coordinate;
import org.snobot.coordinate_gui.model.DataProvider;
import org.snobot.coordinate_gui.model.Distance;
import org.snobot.coordinate_gui.mod... | true |
7498093e384770a049feab81ceb7d1a02788f416 | Java | geakstr/labs | /corp-dev/lab5/src/ru/aspu/javaee/lab5/datamanager/dao/UserDao.java | UTF-8 | 387 | 2.046875 | 2 | [] | no_license | package ru.aspu.javaee.lab5.datamanager.dao;
import java.util.List;
import ru.aspu.javaee.lab5.datamanager.dao.generics.IGenericDao;
import ru.aspu.javaee.lab5.entities.Comment;
import ru.aspu.javaee.lab5.entities.User;
public interface UserDao extends IGenericDao<User> {
public abstract List<User> getAll(... | true |
c4d9b584e79672c73dfb9933c79555de311d102a | Java | nlp-lap/Version_Compatible_HL7_Parser | /hl7/pseudo/message/MFR_M06.java | UTF-8 | 298 | 1.617188 | 2 | [] | no_license | package hl7.pseudo.message;
import hl7.bean.Structure;
public class MFR_M06 extends hl7.model.V2_6.message.MFR_M06{
public MFR_M06(){
super();
}
public static MFR_M06 CLASS;
static{
CLASS = new MFR_M06();
}
public Structure[][] getComponents(){
return super.getComponents();
}
}
| true |
c98336edd10f73ed2b58536a780134d11f093063 | Java | DongPhamBK/Java_Eclipse | /Exception/src/exp/None.java | UTF-8 | 504 | 3.484375 | 3 | [] | no_license | package exp;
public class None {
public static void main(String[] args) {
//chia2So(1, 2);//không thể đứng 1 mình, bắt buộc try catch
try {
chia2So(1, 0);
} catch (NewException e) {
//System.out.println(e);
System.out.println(e.getErr());// vi diệu
}
}
public static void chia2So(int a, int b) throws NewExce... | true |
b7b4bc6a35c69fb8f919168ce11cc49e3eeafd98 | Java | sameer9314/Log_In_SignUp_UsingServlet | /src/com/bridgelabzservlet/dao/JdbcImpl.java | UTF-8 | 5,348 | 2.765625 | 3 | [] | no_license | package com.bridgelabzservlet.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import com.bridgelabzservlet.dto.ConnectionPoolManager;
import com.bridgelabzservlet.dto.UserBean;
/**
* Purpose : To authenticate email,password ,user log in d... | true |
30346adef9c839873334b91b7577d116e5282693 | Java | SudokuLover/ChildVaccination | /app/src/main/java/com/example/gauranggoel/childvacination/DatabaseVaccinationDetails.java | UTF-8 | 4,793 | 2.5625 | 3 | [] | no_license | package com.example.gauranggoel.childvacination;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import java.util.ArrayList;
import java.util.L... | true |
6042d55d63a400d73c07cbe7f488f0c376c3017c | Java | mod-magnabeo/Ainur-UHC | /AinurUHC/src/com/Wolf_IV/AnuirUHC/Role/BalrogNoir.java | ISO-8859-1 | 627 | 2.265625 | 2 | [] | no_license | package com.Wolf_IV.AnuirUHC.Role;
import org.bukkit.entity.Player;
import com.Wolf_IV.AnuirUHC.Commands.CStart;
import com.Wolf_IV.AnuirUHC.Timers.TimerMort;
public class BalrogNoir {
static boolean pou = false;
public static boolean u(CStart p, Player player, String[] args) {
if(p.balrog_noir == null || p.balr... | true |
1cd28cd4003c6e19c114825403bd9950a37b7571 | Java | beat-virus/corona_tracker | /backend/corona-server/src/main/java/de/govhackathon/wvsvcoronatracker/model/mapper/UserMapper.java | UTF-8 | 864 | 1.875 | 2 | [] | no_license | package de.govhackathon.wvsvcoronatracker.model.mapper;
import de.govhackathon.wvsvcoronatracker.model.User;
import org.mapstruct.*;
import de.ghwct.service.model.UserDto;
@Mapper(componentModel = "spring",
collectionMappingStrategy = CollectionMappingStrategy.ADDER_PREFERRED,
nullValueCheckStrategy = NullV... | true |
d383e2db95feaa44d57e9bff257a83e8941ee67a | Java | Shuo93/Ticker | /common/src/main/java/com/ticker/common/model/Label.java | UTF-8 | 885 | 2.328125 | 2 | [] | no_license | package com.ticker.common.model;
import java.util.List;
import java.util.Map;
public class Label extends AbstractProduct {
private Map<String, Double> price;
private String unit;
private double scale;
public Map<String, Double> getPrice() {
return price;
}
public void setPrice(Map<S... | true |
170e9d003acebc9a7f3737f403fa0c32d999f11c | Java | sikdernizam/Simple-Chatty-Bot | /Problems/The (un)-ordered sequence/src/Main.java | UTF-8 | 846 | 3.296875 | 3 | [] | no_license | import java.util.Scanner;
class Main {
public static void main(String[] args) {
// put your code here
Scanner scanner = new Scanner(System.in);
int[] a = new int[10];
int n = a.length;
int count1 = 0;
int count2 = 0;
for (int i = 0; i < n; i++) {
... | true |
e648780df9e172a5e9200dc55120b9266fd64533 | Java | statecs/KTH | /ID1005/EnArmadBandit/src/SlotControl.java | UTF-8 | 2,563 | 3.5625 | 4 | [] | no_license | import java.awt.event.ActionListener;
/**
* This interface defines the methods available for interacting
* with a slot machine simulator.
*
* @author fki@kth.se
*
*/
public interface SlotControl {
/**
* Returns information about the wheel model provided by the
* simulator. The returned matrix contains on... | true |
722d858ec9365d093c30854fcb74129b6343a76b | Java | maxrporto/RestWithSpringBoot | /02 rest-with-spring-boot-scaffold-calculator/src/main/java/br/com/studies/request/converters/NumberConverter.java | UTF-8 | 496 | 3.03125 | 3 | [] | no_license | package br.com.studies.request.converters;
public class NumberConverter {
public static Double convertToDouble(String number) {
if(number == null) return 0D;
String num = number.replaceAll(",", ".");
if (isNumeric(num)) return Double.parseDouble(num);
return 0D;
}
public static boolean isNumeric(Str... | true |
e258424884a39305ca62fe315993f08be3ddf51c | Java | Migaloco/SD_TP1 | /BackUpReal/src/microgram/api/rest/RestProfiles.java | UTF-8 | 1,394 | 2.375 | 2 | [] | no_license | package microgram.api.rest;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import jav... | true |
b50e1198d3e1445033c1068167bde4936e767c01 | Java | prashant-pant/fabcards | /src/main/java/com/fabhotels/assignment/fabcards/dao/FabCardDao.java | UTF-8 | 645 | 2.203125 | 2 | [] | no_license | /**
*
*/
package com.fabhotels.assignment.fabcards.dao;
import org.hibernate.Query;
import org.hibernate.Session;
import org.springframework.stereotype.Repository;
import com.fabhotels.assignment.fabcards.model.FabCard;
/**
* @author prashant
*
*/
@Repository
public class FabCardDao extends BaseDao {
public... | true |
90bf5f9f2e5e16d4c44c05330931175049793edd | Java | bjk96/COJI | /app/src/main/java/com/cojigae/coji/item/SettingItem.java | UTF-8 | 806 | 2.5625 | 3 | [] | no_license | package com.cojigae.coji.item;
public class SettingItem {
private String title;
private String subtitle;
private Boolean isSwitchExist;
public SettingItem(String title, String subtitle, Boolean isSwitchExist) {
this.title = title;
this.subtitle = subtitle;
this.isSwitchExist = ... | true |
d2f982757fdb31be195ed5e08cf701070306c4ff | Java | mohamedabdo99/e-learning | /app/src/main/java/com/bin/smart/za/Model/Lecture.java | UTF-8 | 497 | 2.1875 | 2 | [] | no_license | package com.bin.smart.za.Model;
public class Lecture {
int state;
String pdf;
String video;
public int getState() {
return state;
}
public void setState(int state) {
this.state = state;
}
public String getPdf() {
return pdf;
}
public void setPdf(Strin... | true |
f336bfa5cc29c2277937afe2578d8fae1a384b3a | Java | SKlimczuk/clinic-app | /src/main/java/custom/clinic/dao/DoctorDao.java | UTF-8 | 231 | 2 | 2 | [] | no_license | package custom.clinic.dao;
import custom.clinic.model.Doctor;
import org.springframework.data.jpa.repository.JpaRepository;
public interface DoctorDao extends JpaRepository<Doctor, Integer> {
Doctor getDoctorById(int id);
}
| true |
0df55e69bdc1fb0e8da9172cc18d8cdf6a75fb37 | Java | jakedv24/senior-design-sdmay21-26 | /src/main/java/edu/iastate/ece/sd/sdmay2126/runner/gui/driver/SeleniumDriverUtilities.java | UTF-8 | 748 | 2.84375 | 3 | [
"MIT"
] | permissive | package edu.iastate.ece.sd.sdmay2126.runner.gui.driver;
/**
* General utilities for interaction with Selenium drivers.
*/
public class SeleniumDriverUtilities {
/**
* Identifies a Selenium driver enum value from its string.
*/
public static SeleniumDrivers getDriverFromString(String driverName) thr... | true |
30a671b2289abe1f6181f9e4e208db2d9697d553 | Java | gowoonsori/weTaYo | /wetayo-api/src/main/java/wetayo/wetayoapi/WetayoApiApplication.java | UTF-8 | 626 | 1.851563 | 2 | [
"MIT"
] | permissive | package wetayo.wetayoapi;
import org.modelmapper.ModelMapper;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.PropertySource;
@SpringBootApplication... | true |
96bd3dba955aa341b57855211529ece53fef2168 | Java | ben12138/msj | /src/com/jlkj/msj/test/TestEncryption.java | UTF-8 | 3,950 | 2.234375 | 2 | [] | no_license | package com.jlkj.msj.test;
import com.aliyuncs.dysmsapi.model.v20170525.QuerySendDetailsResponse;
import com.aliyuncs.dysmsapi.model.v20170525.SendSmsResponse;
import com.aliyuncs.exceptions.ClientException;
import com.jlkj.msj.uitl.EncryptionUtil;
import com.jlkj.msj.uitl.SendMail;
import org.junit.Test;
import java... | true |
95124b4433e99c9edc0fb84587b8aac5d486370e | Java | NashiKanjou/Space-Invaders-PLUS | /src/main/java/scene/PausedScene.java | UTF-8 | 1,435 | 2.59375 | 3 | [] | no_license | package main.java.scene;
import main.java.manager.GameSceneManager;
import main.java.manager.InputManager;
import java.awt.Graphics;
import java.awt.Color;
public class PausedScene extends BaseScene {
private String topMsg, bottomMsg;
private int xOffset;
public PausedScene(GameSceneManager gsm) {
... | true |
004e1672e78eabc76f7d8ab1ce087dd811b0dc3c | Java | ntsprashantjha/myfirstproject | /garbagecollector/src/com/nts/annexvi/model/MasterTableAnx.java | UTF-8 | 1,788 | 2.234375 | 2 | [] | no_license | package com.nts.annexvi.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "master_table_annexvi")
public class MasterTableAnx {
@Id
@GeneratedValue
priv... | true |
0e625ec364514de32ed264e0b1e5364bf73f8d7e | Java | JohanSvartdal/Roforbund | /src/main/java/servlets/Sider/TrenerServlets/TrenerDash.java | UTF-8 | 2,402 | 2.5 | 2 | [] | no_license | package servlets.Sider.TrenerServlets;
import servlets.AbstractAppServlet;
import tools.databaseTools.DatabaseReader;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletReques... | true |
3576fc6c1054b1e45296f55bb73a36a99e96715f | Java | gavin2010/JavaSE | /jse/src/main/java/com/gavin/generic/Generic.java | UTF-8 | 2,211 | 3.453125 | 3 | [] | no_license | package com.gavin.generic;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.List;
/**
* 泛型类测试
*/
public class Generic {
/**
* 由于没有添加泛型,会造成类转换异常
*/
public void generci(){
List arrayList = new ArrayList();
arrayList.add("AAA");
arrayList.add(... | true |
55175c7cf348b0f21390eb6326ae367a4b1bbab5 | Java | FitnessTime/mobile-app | /FitnessTime/app/src/main/java/com/fitnesstime/fitnesstime/Servicios/ServicioRegistro.java | UTF-8 | 1,449 | 2.0625 | 2 | [] | no_license | package com.fitnesstime.fitnesstime.Servicios;
import android.util.Log;
import com.fitnesstime.fitnesstime.Application.FitnessTimeApplication;
import com.fitnesstime.fitnesstime.Configuracion.Constantes;
import com.fitnesstime.fitnesstime.Modelo.ResponseHelper;
import com.fitnesstime.fitnesstime.Modelo.SecurityToken;... | true |
1db97cbb143a60763811d285a4aff55d10ae8863 | Java | zhou8361907/sog-shop | /SOG-shop/src/main/java/com/sog/service/ChooseServiceImpl.java | UTF-8 | 2,166 | 2.359375 | 2 | [] | no_license | package com.sog.service;
import java.util.List;
import java.util.Map;
import com.sog.dao.AdminDaoI;
import com.sog.dao.AdminDaoImpl;
import com.sog.dao.ChooseDaoI;
import com.sog.dao.ChooseDaoImpl;
import com.sog.entity.Admin;
import com.sog.entity.Choose;
/**
*
* @类名: ChooseServiceImpl
* @描述: choose的接口实现 利用 循环删... | true |
e5c1fd4005b7376dc4d3f3cb4d58630058b90312 | Java | peytondodd/CodCraftPlugins | /CodCraftPerks/src/main/java/com/codcraft/perks/lightweight/LightWight.java | UTF-8 | 340 | 1.851563 | 2 | [] | no_license | package com.codcraft.perks.lightweight;
import com.codcraft.perks.Perks;
public class LightWight {
@SuppressWarnings("unused")
private Perks plugin;
public LightWight(Perks plugin) {
this.plugin =plugin;
plugin.getServer().getPluginManager().registerEvents(new LightWeightListener(plugin), plugin);
... | true |