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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
cd695d15f83e8a297077f8ea977fb7c4d6a679cc | Java | gabriel-roque/ia-buscas | /src/espacoDeEstados/Estado.java | ISO-8859-1 | 4,721 | 3.34375 | 3 | [] | no_license | package espacoDeEstados;
import java.util.List;
/**
* Esta classe implementa o nvel mais abstrato de representao do problema sob
* a forma de um espao de estados. Pontualmente, modela uma possvel situao ou
* configurao deste problema (estado), alm de ser possvel vincul-lo com outros
* estados, que o ques... | true |
02ed9bfcdfae85b98e89c4aac83e9ab0275d0492 | Java | truonggiang-java/shop_thoi_trang | /multikart/src/main/java/com/example/multikart/convertor/CategoryConvertor.java | UTF-8 | 837 | 2.25 | 2 | [] | no_license | package com.example.multikart.convertor;
import java.sql.Timestamp;
import org.springframework.stereotype.Component;
import com.example.multikart.dto.request.CategoryDto;
import com.example.multikart.entity.Category;
@Component
public class CategoryConvertor {
public Category convertor(CategoryDto categoryDto,In... | true |
cc5edec05c2276d2ea107f790916213698ce79df | Java | Noobcoder64/Mega-Project-List-Solutions | /PigLatin/PigLatin.java | UTF-8 | 504 | 3.421875 | 3 | [] | no_license |
package PigLatin;
import java.util.Scanner;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class PigLatin {
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
System.out.print("Enter a word: ");
String word = reader.nextLine();
reader.close();
... | true |
d8edcb160c3ca4ec1f9acddcf9b1aa516cb5fe4f | Java | akarshbachu/Practice | /src/practicepkg/BlocksP.java | UTF-8 | 402 | 2.6875 | 3 | [] | no_license | package practicepkg;
public class BlocksP {
//non static block
{
System.out.println("nonstatic");
}
static{
System.out.println("static");
}
static int a=10;
BlocksP(int a){
this.a=a;
System.out.println("constructor"+a);
}
public static void main(String[] args) {
// TODO Auto-gene... | true |
3328ceb8987177e6feda4b3bc93bac3ce6ccf4ac | Java | aijingsun6/leetcode | /src/test/java/org/alking/queue/EvalRPNTest.java | UTF-8 | 482 | 2.265625 | 2 | [] | no_license | package org.alking.queue;
import org.junit.Assert;
import org.junit.Test;
public class EvalRPNTest {
@Test
public void test(){
EvalRPN rpn = new EvalRPN();
String[] tokens = {
"2", "1", "+", "3", "*"
};
int result = rpn.evalRPN(tokens);
Assert.assertE... | true |
689551f7c09e53cf0ef67a8028082f31d7cd779b | Java | Bir-Eda/TestNG_Data | /src/test/java/testSauceLab/Google_Test.java | UTF-8 | 1,589 | 2.1875 | 2 | [] | no_license | package testSauceLab;
import drivers.Driver;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.testng.Assert;
import org.testng.annotations.*;
import org.testng.annotations.Test;
im... | true |
51182d3841c10e650fc05ed6ee4fb8d4757e6830 | Java | MikeTheWayne/MotionDarts | /core/src/com/waynegames/motiondarts/Score_Cricket.java | UTF-8 | 2,939 | 2.640625 | 3 | [] | no_license | package com.waynegames.motiondarts;
public class Score_Cricket extends ScoreSystem {
private int[][] innings = new int[2][7]; // 20, 19, 18, 17, 16, 15, Bull
private int[][] inningHits = new int[2][7];
private int[] score = new int[2];
private int[] accurateHits = new int[2];
@Override
vo... | true |
02ebabec421b33ab7259dfd977e9a9be6fe0bfcb | Java | Duolaimon/algorithm | /src/main/java/com/duol/leetcode/y20/m12/d10/no860/lemonade_change/Solution.java | UTF-8 | 2,188 | 3.296875 | 3 | [
"MIT"
] | permissive | /**
* Leetcode - lemonade_change
*/
package com.duol.leetcode.y20.m12.d10.no860.lemonade_change;
import java.util.*;
import com.duol.common.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* 860. 柠檬水找零
*
* 在柠檬水摊上,每一杯柠檬水的售价为5美元。
*
* 顾客排队购买你的产品,(按账单 bills 支付的顺序)一次购买一杯。
*
* 每位顾客只买一杯柠檬水,然后向你付 5 美元、... | true |
2614dbfc16fd8c426eee0b796c44bb22dca92e1d | Java | tmrdev/MyApplication | /app/src/main/java/org/timreynolds/myapplication/adapter/SearchAdapter.java | UTF-8 | 2,696 | 2.359375 | 2 | [] | no_license | package org.timreynolds.myapplication.adapter;
import com.squareup.picasso.Callback;
import org.timreynolds.myapplication.R;
import org.timreynolds.myapplication.model.Items;
import org.timreynolds.myapplication.utility.Logger;
import org.timreynolds.myapplication.utility.PicassoCache;
import android.app.Activity;
i... | true |
2400c0a6bb6c4d878e21a023330b9af01b5831b5 | Java | jojow/opentosca-container | /org.opentosca.containerapi/src/org/opentosca/containerapi/resources/csar/CSARContentResource.java | UTF-8 | 5,522 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package org.opentosca.containerapi.resources.csar;
import java.util.Set;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws... | true |
d48f7e4aa62e71d933ddc146aa39017ddad4fffd | Java | lgueye/ui-unittesting-poc-root | /ui-unittesting-poc-ui/src/test/java/org/diveintojee/poc/ui/unittesting/deals/model/FindDealByCriteriaResultsTableModelTest.java | UTF-8 | 7,053 | 2.28125 | 2 | [] | no_license | /**
*
*/
package org.diveintojee.poc.ui.unittesting.deals.model;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Currency;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import org.apache.commons.collections.CollectionUtils;
... | true |
55c42cade1ce1632c3f8d78f0b5482c6774d9994 | Java | 97jorx/java-practicas | /TAREAS/T027-TANQUE/src/Tablero.java | UTF-8 | 1,041 | 3.140625 | 3 | [] | no_license | public class Tablero {
public static final int MINFILA = 3;
public static final int MINCOLUMNA = 2;
public static final int MAXFILA = 6;
public static final int MAXCOLUMNA = 5;
private final int FILA; // >= MINFILA
private final int COLUMNA; ... | true |
23727fe5cc2a055ddff6ba538bcd0623c8b1fa46 | Java | tudorpopovici1/demo-plugin-jetbrains-project | /src/main/java/view/DataAggregator.java | UTF-8 | 2,950 | 2.921875 | 3 | [] | no_license | package view;
import service.FileStatistics;
import com.intellij.openapi.project.Project;
import service.FileStatistics.FileStatisticsBuilder;
import service.FileStatisticsService;
import java.util.List;
import java.util.Map;
/**
* @author Tudor Popovici
*
* view.DataAggregator has the responsibility of retrievin... | true |
a4d12c953412893356af9788030905b57adbb85c | Java | yourao424/git-training | /Bird.java | UTF-8 | 79 | 2.203125 | 2 | [] | no_license | public interface Bird {
//run away
public void run();
public void fry();
}
| true |
390a346f37aa42d6023ae9a9af86566109b83528 | Java | manumuralee/service | /src/main/java/com/assessment/projectmanagementservice/model/ParentTask.java | UTF-8 | 2,455 | 2.390625 | 2 | [] | no_license | /**
*
*/
package com.assessment.projectmanagementservice.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColu... | true |
5e71f641e3d71feabad86bd57b9cdca54ec023bb | Java | nerds-odd-e/wordpress_swing | /src/java/com/odde/atdd/demo/view/PostPage.java | UTF-8 | 1,710 | 2.734375 | 3 | [] | no_license | package com.odde.atdd.demo.view;
import com.odde.atdd.demo.controller.CommentActionListener;
import com.odde.atdd.demo.model.Post;
import javax.swing.*;
import java.awt.*;
public class PostPage extends JDialog implements Screen {
private JTextField comment;
public PostPage(Window owner, Post post) {
... | true |
3d2a33c4b80a555b407755ef9d95853dd5016e19 | Java | cha63506/CompSecurity | /Shopping/letgo_source/src/android/support/v7/np.java | UTF-8 | 3,286 | 1.648438 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package android.support.v7;
import android.os.Process;
import java.util.concurrent.BlockingQueue;
// Referenced classes of package android.supp... | true |
3b90179ef3b27bfe5d7b38987a352387e2f0a0ed | Java | changqingshan/bsehk-business | /bsehk-biz/src/main/java/com/bsehk/business/biz/impl/CoachVenueServiceImpl.java | UTF-8 | 554 | 1.984375 | 2 | [] | no_license | package com.bsehk.business.biz.impl;
import com.bsehk.business.dao.mapper.CoachVenueMapper;
import com.bsehk.business.service.CoachVenueService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
@Slf4j
public class CoachV... | true |
182096ae39173f7c979c70bd937289820e02b61c | Java | croesch/dafobot | /src/main/java/de/croesch/dafobot/work/sort_text_components/sort/Sorter.java | UTF-8 | 559 | 2.109375 | 2 | [] | no_license | package de.croesch.dafobot.work.sort_text_components.sort;
import java.util.Collection;
import de.croesch.dafobot.core.Text;
import de.croesch.dafobot.work.api.NoEditNeededException;
import de.croesch.dafobot.work.api.PageNeedsQAException;
/**
* Simple interface for a sorter.
*
* @author dafo
* @since Date: Dec ... | true |
04ff725e2fdfab489aae3aef53681e0549753551 | Java | mish26/spring-boot-sample | /src/main/java/com/example/springbootsample/domain/service/AsyncService.java | UTF-8 | 702 | 2.40625 | 2 | [] | no_license | package com.example.springbootsample.domain.service;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import java.util.concurrent.TimeUnit;
@Service
public class AsyncService {
public void sync(){
System.out.println("service start.");
try {
... | true |
02872dac0667cd5b00df9772024e80197c1ab4da | Java | yunjae2081/HOMECOMPANY | /haeyum/src/main/java/kr/co/haeyum/store/controller/StoreSearchController.java | UTF-8 | 1,786 | 2 | 2 | [] | no_license | package kr.co.haeyum.store.controller;
import java.util.List;
import kr.co.haeyum.store.service.StoreSearchService;
import kr.co.haeyum.store.vo.StoreListVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.a... | true |
90c5fd561f493798152d832aa91ad486629e8733 | Java | stsiwo/e-commerce-starter-kits | /api/src/test/java/com/iwaodev/unit/domain/OrderTest.java | UTF-8 | 4,247 | 2.125 | 2 | [
"MIT"
] | permissive | package com.iwaodev.unit.domain;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.iwaodev.application.iservice.PaymentService;
import com.iwaodev.domain.order.OrderRule;
... | true |
6e14c6b17f861b73dae2f315ed50a28b897d3b92 | Java | hieunugent/SingleCycleCheck | /SingleCycleCheck.java | UTF-8 | 640 | 3.046875 | 3 | [] | no_license | class SingleCycleCheck{
public static boolean hasSingleCycle(int[] array) {
// Write your code here.
int count = 0;
int currentIdx = 0;
while (count < array.length){
if (count > 0 && currentIdx == 0) return false;
currentIdx = getNextmove(currentIdx, array);
count++;
}
return currentIdx == 0;... | true |
38cb1c41e5ddffe96326ddfcce4a222b9b0260c3 | Java | MichealLI/YouDianMusic | /app/src/main/java/com/example/ming/youdianmusic/MyApp.java | UTF-8 | 6,602 | 2.484375 | 2 | [] | no_license | package com.example.ming.youdianmusic;
import android.app.Application;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.database.Cursor;
import android.net.Uri;
import android.os.Environment;
import android.os.... | true |
cc47ba5cb228943f2df66248a8e988b346429a58 | Java | kimikobe/BS-Software-Engineer-Class | /src/main/java/org/dselent/course_load_scheduler/client/event/ReceiveUserClickRequestTabEvent.java | UTF-8 | 1,179 | 2 | 2 | [] | no_license | package org.dselent.course_load_scheduler.client.event;
import org.dselent.course_load_scheduler.client.action.ReceiveClickRequestTabAction;
import org.dselent.course_load_scheduler.client.action.ReceiveClickUserRequestTabAction;
import org.dselent.course_load_scheduler.client.event_handler.ReceiveClickRequestTabEvent... | true |
75147e7c25ced6dbe48890c89fcd5a30741f6b2d | Java | gauravprasad/coding-challenge-hackerrank | /src/main/java/com/gprasad/hackerrank/javasol/ds/linkedlists/InsertNodeAtSpecificPositionInLinkedList.java | UTF-8 | 3,906 | 4.15625 | 4 | [] | no_license | /*
Insert a node at a specific position in a linked list (Hacker Rank Java Solution)
This challenge is part of a tutorial track by MyCodeSchool and is accompanied by a video lesson.
You’re given the pointer to the head node of a linked list, an integer to add to the list and the position at which the integer must be... | true |
a031379754934a594fc00305591a4b12ffb83f49 | Java | claudiodantas/grafos | /EPG02/src/test/VendaImoveisTest2.java | UTF-8 | 1,569 | 2.65625 | 3 | [] | no_license | package test;
import main.java.VendaImoveis;
import org.junit.Before;
import org.junit.Test;
import java.util.HashSet;
import static junit.framework.TestCase.assertTrue;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
public class VendaImoveisTest2 {
VendaImoveis vi;
... | true |
2ab935dab753883a42fdeaf65e3e804100377905 | Java | lizaapr/TubesPBO | /src/jp/entity/Pengunjung.java | UTF-8 | 493 | 1.890625 | 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 jp.entity;
/**
*
* @author LENOVO
*/
public class Pengunjung extends Perpus {
private String idPengunjung;
public ... | true |
2c3c53417256062aaa51936ae78cf755764d31c3 | Java | intel-secl/common-java | /util/mtwilson-util-io/src/main/java/com/intel/dcsg/cpg/io/file/FilenameStartsWithFilter.java | UTF-8 | 1,184 | 2.546875 | 3 | [
"BSD-3-Clause"
] | permissive | /*
* Copyright (C) 2019 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
package com.intel.dcsg.cpg.io.file;
import com.intel.mtwilson.pipe.Filter;
import java.io.File;
import java.io.FilenameFilter;
/**
*
* @author jbuhacoff
*/
public class FilenameStartsWithFilter implements FilenameFilter, Filter... | true |
b1ce8aa2766ed649a224aafeaca0d03020f3374b | Java | Horgun/SistemaTransporte | /src/main/java/br/com/horgun/dao/UnidadeMedidaDAO.java | UTF-8 | 627 | 1.875 | 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 br.com.horgun.dao;
import br.com.horgun.model.UnidadeMedida;
import br.com.horgun.repository.IUnidadeMedidaDAO;
impor... | true |
e2706d12be9d9cbe327d826413979580e97e28da | Java | irratsionaalne/CarRentalService | /src/main/java/com/crs/models/Branch.java | UTF-8 | 688 | 2.28125 | 2 | [] | no_license | package com.crs.models;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Type;
import javax.persistence.*;
import java.util.List;
import java.util.UUID;
@Entity
@Data
public class Branch {
@Id
@GeneratedValue(generator = "UUID")
@Column(updatable =... | true |
28d9796168bc5b8bef9b6296b0fca382cbfe8700 | Java | omar-h-omar/ENG1-Dragonite-Assessment-2.github.io | /tests/src/de/tomgrill/gdxtesting/UserRequirements/UR_FINAL_PLACE.java | UTF-8 | 1,513 | 2.65625 | 3 | [
"MIT"
] | permissive | package de.tomgrill.gdxtesting.UserRequirements;
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
import com.dragonboat.game.*;
import de.tomgrill.gdxtesting.GdxTestRunner;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(GdxTestRunner.class)
/**
* Tests that leaderboard retur... | true |
6be18c4e4ca01d6bbeead964e8def47478c49f1c | Java | NexusSoftwareSolutions/MRNKnockerDroid | /app/src/main/java/com/mrncontracting/mrnknocker/LocationUpdate.java | UTF-8 | 4,278 | 2.203125 | 2 | [] | no_license | package com.mrncontracting.mrnknocker;
import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.AsyncTask;
import android.os.Bundle;
import an... | true |
f419e88cef7d9db5cf967ddace4ff5637e76cffd | Java | hotpads/datarouter | /datarouter-joblet/src/main/java/io/datarouter/joblet/execute/JobletProcessors.java | UTF-8 | 2,790 | 2.0625 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright © 2009 HotPads (admin@hotpads.com)
*
* 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... | true |
2b2e5a8735d89e9777d673e661c3158afc2189db | Java | finesoft/corant | /corant-modules/corant-modules-security/corant-modules-security-shared/src/main/java/org/corant/modules/security/shared/interceptor/SecuredInterceptorHelper.java | UTF-8 | 2,168 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2013-2021, Bingo.Chen (finesoft@gmail.com).
*
* 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 appl... | true |
a975d7f2231780af501cc4fa1b24141ea9f93fb1 | Java | Whi7eW0lf/Exams-SoftUni | /Programming Fundamentals Exams/Programming Fundamentals Mid Exams/Technology Fundamentals Retake Mid Exam - 16 April 2019/EasterCozonacs.java | UTF-8 | 961 | 3.4375 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class EasterCozonacs {
public static void main(String[] args) throws IOException {
BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
double budget = Double.parseDouble(read... | true |
5de15214ffb5166f3e015c8a76b59359faa6eae0 | Java | slskfl/FragmentQR | /app/src/main/java/com/example/fragmentqr/Fragment.java | UTF-8 | 1,866 | 2.109375 | 2 | [] | no_license | package com.example.fragmentqr;
import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager.widget.ViewPager;
import android.os.Bundle;
import android.widget.Button;
import com.google.android.material.tabs.TabLayout;
public class Fragment extends AppCompatActivity {
TabLayout tabs;
ViewPager ... | true |
b92cd94c73808bdacf3e95a5674432dc3ef7674f | Java | evrycollin/perso | /fast-rest/fast-rest-core/src/main/java/com/fastrest/web/FastRestServlet.java | UTF-8 | 2,401 | 2.421875 | 2 | [] | no_license | package com.fastrest.web;
import java.io.IOException;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.fastrest... | true |
42525726eb4119745906704f715d6b8c206a6b33 | Java | Mamoun2020/AlQararaMunicipality | /app/src/main/java/alqarara/municipality/alqararamunicipality/adapters/ViewHolder.java | UTF-8 | 1,256 | 2.4375 | 2 | [] | no_license | package alqarara.municipality.alqararamunicipality.adapters;
import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import com.squareup.picasso.Picasso;
import alqar... | true |
631bf7e1569d47ac37e7e4c4e0024e9cc9863ba9 | Java | smiths39/Paige-Pro | /src/main/java/com/project/paigepro/AudioContent.java | UTF-8 | 1,639 | 2.84375 | 3 | [] | no_license | /*
Name: AudioContent.java
Author: Sean Smith
Date: 28 December 2013
This extracts all .mp3 files within the 'sdcard' folder on the Android device and extracts the song details.
*/
package com.project.paigepro;
import android.os.Environment;
import java.io.File;
import java.io.FilenameFilter;
im... | true |
e4d1a96a998163f86bd83dc5614d79d2a929df3c | Java | Dido1960/fangjian | /agency/src/main/java/com/ejiaoyi/agency/service/ISiteOpenBidService.java | UTF-8 | 1,712 | 2.0625 | 2 | [] | no_license | package com.ejiaoyi.agency.service;
import com.ejiaoyi.agency.dto.SiteBidDecryptDto;
import com.ejiaoyi.common.dto.DecoderCipherInfoDTO;
import com.ejiaoyi.common.entity.Bidder;
import java.util.List;
/**
* 现场开标服务类
*
* @author Make
* @since 2021-01-07
*/
public interface ISiteOpenBidService {
/**
* 现场... | true |
9af402194e460e1f21e1b5a1d28610064697f498 | Java | si21lvi/PrUnder | /src/java/controlador/UsuarioControlador.java | UTF-8 | 2,618 | 2.171875 | 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 controlador;
import dao.UsuarioDAO;
import javax.inject.Named;
import javax.enterprise.context.SessionScoped;
import java.io.S... | true |
be9629d649af266b3132771c7bc321093850afee | Java | pablotbg/Pawel-Praga-Kodilla-Java | /kodilla-patterns/src/test/java/com/kodilla/patterns/strategy/social/UserTestSuite.java | UTF-8 | 1,690 | 2.890625 | 3 | [] | no_license | package com.kodilla.patterns.strategy.social;
import com.kodilla.patterns.strategy.social.media.FacebookPublisher;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
public class UserTestSuite {
@Test
void testDefaultSharingStrategies() {
//Given
User johny = new Mill... | true |
ea2b1749933ae6286f3e05aaa97881eb9a2dc88b | Java | Viral-patel703/Testyourbond-aut0 | /lib/selenium-server-standalone-3.4.0/com/gargoylesoftware/htmlunit/javascript/host/event/EventTarget.java | UTF-8 | 8,845 | 1.851563 | 2 | [] | no_license | package com.gargoylesoftware.htmlunit.javascript.host.event;
import com.gargoylesoftware.htmlunit.BrowserVersion;
import com.gargoylesoftware.htmlunit.BrowserVersionFeatures;
import com.gargoylesoftware.htmlunit.ScriptResult;
import com.gargoylesoftware.htmlunit.html.DomDocumentFragment;
import com.gargoylesoftware.ht... | true |
cb6cc0767c90bdd7bee0706d6afe842714a5ae09 | Java | rhqh12/study | /src/lotto/LottoProgram.java | UTF-8 | 908 | 2.78125 | 3 | [] | no_license | package lotto;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Scanner;
import java.util.Set;
public class LottoProgram{
public static void main(String[] args) {
final int AUTO_ADD = 1;
final int MANUAL_ADD = 2;
final int PRINT = 3;
final int ... | true |
115ace75796856534a0ba0d3a2820a60afd27ecc | Java | bilbo3000/coding | /lintcode/find_minimum_in_rotated_sorted_array_II.java | UTF-8 | 825 | 3.796875 | 4 | [] | no_license | public class Solution {
/**
* @param num: a rotated sorted array
* @return: the minimum number in the array
*
* Whenever need to search something in sorted array, think about binary
* search.
* Maintain two pointers l and r indicates whether the min could fall into
* range [l,... | true |
fc294c22c033de709477daa4cc4a65f5bfb91634 | Java | seeun-320/CampusTour | /app/src/main/java/com/example/campustour/SignupActivity.java | UTF-8 | 10,280 | 2.1875 | 2 | [] | no_license | package com.example.campustour;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import androi... | true |
9301022ebf738e0b29e6698d6a4c618b5c040377 | Java | Vitoraugustorosa/AulaMalwee | /src/br/com/vitor/Media.java | UTF-8 | 990 | 3.34375 | 3 | [] | no_license | package br.com.vitor;
import java.util.Scanner;
public class Media {
public static void main(String[] args) {
Scanner tec = new Scanner(System.in);
System.out.println("Informe o nome: ");
String nome = tec.next();
System.out.println("Informe a primeira nota : ");
double nota1 = tec.nextDouble(... | true |
d02e3ac88019dac726851207f88422ea2e04c145 | Java | gabrielmilioli/pessoas-contatos-api | /src/test/java/com/milioli/pessoascontatos/service/pessoa/PessoaServiceTest.java | UTF-8 | 5,406 | 2.03125 | 2 | [] | no_license | package com.milioli.pessoascontatos.service.pessoa;
import com.milioli.pessoascontatos.base.BaseTest;
import com.milioli.pessoascontatos.exception.RegraNegocioException;
import com.milioli.pessoascontatos.model.entity.pessoa.Pessoa;
import com.milioli.pessoascontatos.model.entity.pessoa.PessoaTestUtils;
import com.mil... | true |
262e1b8013369fd2556bed8649112ce962633937 | Java | shoumik1998/E_Commerce_App | /app/src/main/java/com/example/e_commerceapp/ViewHolder/Cart_View_Holder.java | UTF-8 | 1,099 | 2.234375 | 2 | [] | no_license | package com.example.e_commerceapp.ViewHolder;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.example.e_commerceapp.Interfaces.Item_Click_Listener;
import com.example.e_commerceapp.R;
public class Cart_View_Ho... | true |
3eae8ab99c7203a0dd1d2351e496b9084276158d | Java | jchen1352/BeepBoop | /app/src/main/java/org/jeff/beepboop/TransactionAdapter.java | UTF-8 | 2,204 | 2.4375 | 2 | [] | no_license | package org.jeff.beepboop;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.content.res.ResourcesCompat;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Arr... | true |
c662f32e7f079fac57dedb5c9415e6174efb3e5b | Java | SeshuMiriyala/AddVehicle | /src/com/adp/addvehicle/UploadVehicle.java | UTF-8 | 8,268 | 2 | 2 | [] | no_license | /**
*
*/
package com.adp.addvehicle;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.util.List;
import java.util.concurrent.ExecutionException;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.ContentValues;
import android.conten... | true |
a687bc8b63a68e1b82e87f947e5e1201e546a83e | Java | Girish85/Java | /src/lab_basic/day_2/assignment_5/DefaultConstructor.java | UTF-8 | 495 | 3.484375 | 3 | [] | no_license | package lab_basic.day_2.assignment_5;
public class DefaultConstructor {
public static void main(String[] args) {
Student student = new Student();
System.out.println("Student id is : "+student.getStudentId());
if (student.getStudentType()=='F')
System.out.println("Student is Fres... | true |
d65f6953c19a9d2e5e3735e0910d6c218f6c2d1e | Java | dreeves/scratch | /#archive/fishermen/Klient.java | UTF-8 | 1,269 | 2.03125 | 2 | [] | no_license | package fishermen;
import lombok.*;
import com.esotericsoftware.kryonet.*;
import com.esotericsoftware.kryo.Kryo;
import java.io.IOException;
public class Klient
{
private static final Client client = new Client();
private static boolean RENDERTESTING = false;
public static void main(String[] args... | true |
30e9ee7d960a8c9a3a0f654fecd2ca276591b597 | Java | xiao0803/javaSE | /Thread-demo/src/main/java/com/concurrent/toolClass/ExchangerTest.java | UTF-8 | 1,226 | 3.71875 | 4 | [] | no_license | package com.concurrent.toolClass;
import java.util.concurrent.Exchanger;
public class ExchangerTest {
public static void main(String[] args) {
Exchanger<String> exchanger = new Exchanger<>();
Car car = new Car(exchanger);
Bike bike = new Bike(exchanger);
car.start();
bike.s... | true |
5200720aae16ffa0737254c264c575cb4836d52b | Java | genomeCAT/genomeCATSuite | /suiteGenomeCAT/GuiModul/src/org/molgen/genomeCATPro/guimodul/util/RegionEditText.java | UTF-8 | 1,152 | 2.046875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.molgen.genomeCATPro.guimodul.util;
import javax.print.attribute.AttributeSet;
import javax.swing.ComboBoxModel;
import javax.swing.JComboBox;
import javax.swing.text.PlainDocument;
import org.molgen.genomeCA... | true |
156044fd8b6d2f168dc188f8a95fcfb746cc4030 | Java | protegeproject/swrlapi-drools-engine | /src/main/java/org/swrlapi/drools/owl/axioms/CAA.java | UTF-8 | 1,569 | 2.296875 | 2 | [
"BSD-2-Clause"
] | permissive | package org.swrlapi.drools.owl.axioms;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.dataflow.qual.SideEffectFree;
import org.semanticweb.owlapi.model.OWLClassAssertionAxiom;
import org.swrlapi.drools.extractors.DroolsOWLAxiomExtractor;
import org.swrlapi.drools.owl.core.... | true |
60eb5a9c9c9790ddcc63344584009ad1cad64ba0 | Java | kmingk/javaLearn | /src/main/java/concurrent/concurrentExample/ActiveCountTest.java | UTF-8 | 2,208 | 3.484375 | 3 | [] | no_license | package concurrent.concurrentExample;
import java.nio.channels.InterruptedByTimeoutException;
public class ActiveCountTest {
public static void main(String[] args) {
Thread t1 = new Thread(new Runnable() {
@Override
public void run() {
System.out.println("1..start... | true |
b7db05424217a18e39eea8f6defe28f9b2453be5 | Java | tehnotrack/track17-autumn | /L7_threads/src/main/java/ru/track/lambda/Streams.java | UTF-8 | 1,438 | 3.515625 | 4 | [] | no_license | package ru.track.lambda;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
*
*/
public class Streams {
public static void main(String[] args) {
List<Integer> ints = Arrays.asList(1, 2, 3, 4, 5, 6);
List<Int... | true |
2fc76f80de0f6dc131b10f3466a3616b8b71b837 | Java | davidramosf/Simulacion-restaurante-con-hilos | /SimulacionRestaurante/src/peclparadigmas/Parte1/Cliente.java | UTF-8 | 1,403 | 2.921875 | 3 | [
"Unlicense"
] | permissive | /*
* 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 peclparadigmas.Parte1;
import java.io.IOException;
/**
*
* @author Usuario
*/
public class Cliente extends Th... | true |
477439350e20e40ce968b6be95c2c048c62c0ced | Java | danielm2402/Example-pattern-builder | /src/main/java/co/edu/unicauca/builder/ItalianDishBuilder.java | UTF-8 | 825 | 2.59375 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package co.edu.unicauca.builder;
/**
*
* @author daniel2402
*/
public class ItalianDishBuilder extends DishBuilder {
@Override... | true |
a8800eb8e90aae542ae58d0894ff9ed43b5d9bf3 | Java | mltomlins0n/QAC | /qaProjectSpring/src/test/java/com/qa/controllers/DriverControllerTest.java | UTF-8 | 3,209 | 2.3125 | 2 | [] | no_license | package com.qa.controllers;
import com.qa.models.DriverRecord;
import com.qa.repositories.DriverRepository;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.co... | true |
db37bc99848bf7586ebd3a9ddb90139d0482446a | Java | cosminlinca/academic-grades-management | /src/Service/AccountService.java | UTF-8 | 2,578 | 2.78125 | 3 | [
"MIT"
] | permissive | package Service;
import Domain.ConturiEntity;
import Repository.CrudRepository;
import Utils.PasswordSecurity;
import java.io.*;
import java.util.Iterator;
public class AccountService {
CrudRepository<Integer, ConturiEntity> repository;
public AccountService(CrudRepository<Integer, ConturiEntity> repositor... | true |
b5e4509380cb34fe952429279bf759c669f4b424 | Java | barran-tan/PrivateLib | /library/src/main/java/com/barran/lib/ui/factory/CustomViewFactory.java | UTF-8 | 5,419 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package com.barran.lib.ui.factory;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import com.barran.lib.utils.log.Logs;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.util.Hash... | true |
8234f4fb85cfe1ab40fbb2d5b2bcade99ca6775d | Java | freditation/wizard2 | /src/main/java/com/animagic/wizard/User.java | UTF-8 | 526 | 2.578125 | 3 | [] | no_license | package com.animagic.wizard;
import javax.persistence.*;
@Entity
@Table(name = "users")
public class User {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int userId;
private String name;
private String email;
private String telephone;
public User() {}
public User(St... | true |
f4bcad284ec35efa1c70085dfd824e7efd422fae | Java | Ddmdna/CS260 | /src/Lab6/Timeline.java | UTF-8 | 3,675 | 3.6875 | 4 | [] | no_license | package Lab6;
import java.io.IOException;
import java.io.InputStream;
import java.util.Scanner;
import java.util.Stack;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Timeline {
private Stack<Day> dayStack; //This looks like overhead
private int currentDay; //Updates at the start of ea... | true |
0a0d447c30c747ec8bd76c5d0bccd0bd169e7135 | Java | jjnguy/PublicFun | /ubertorrent/src/edu/iastate/cs309/guiElements/TorrentTable.java | UTF-8 | 4,221 | 2.59375 | 3 | [] | no_license | /**
*
*/
package edu.iastate.cs309.guiElements;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.List;
import javax.swing.Bord... | true |
03ac6cb2bd0b5e490afda1f3c4dab40b22fc0153 | Java | 459353149/netty | /src/main/java/http/TestService.java | UTF-8 | 1,150 | 2.265625 | 2 | [] | no_license | package http;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioServerSocketChannel;
/**
* @ProjectName netty
* @ClassName TestService
* @Description TODO
* ... | true |
8ba5a358c9d37898e906516515d66dde4d7a981e | Java | leeth7830/BuyMe | /app/src/main/java/kappa/buyme/PostItemStepThree.java | UTF-8 | 6,313 | 2.0625 | 2 | [] | no_license | package kappa.buyme;
import android.app.Activity;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget... | true |
50c80cd95683beb2969e798384d1d4a5dfb082fe | Java | kelu124/pyS3 | /org/apache/poi/ss/util/CellReference.java | UTF-8 | 13,225 | 2.4375 | 2 | [
"MIT"
] | permissive | package org.apache.poi.ss.util;
import com.itextpdf.text.pdf.codec.wmf.MetaDo;
import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.poi.ss.SpreadsheetVersion;
import org.apache.poi.ss.formula.SheetNameFormatter;
import org.apache.poi.ss.usermodel.Cell;
public clas... | true |
39a14a1a2f88173853aff1a40985c41e1f0244ee | Java | wss711/Light | /app/src/main/java/com/gr/light/patterns/builder/BmwBuilder.java | UTF-8 | 421 | 2.59375 | 3 | [] | no_license | package com.gr.light.patterns.builder;
import java.util.ArrayList;
/**
* TODO
* <p>
* Created by WSS on 2020-02-16
**/
public class BmwBuilder extends CarBuilder {
private BmwCar bmwCar = new BmwCar();
@Override
public void setSequence(ArrayList<String> sequence) {
this.bmwCar.setSequence(seq... | true |
f8e935d251785de30a9b5ee66f72cf6d08c1f616 | Java | wowwowster/EntretienProJava9 | /src/main/java/hashcode/mainHashCode.java | UTF-8 | 2,717 | 3.125 | 3 | [] | no_license | package hashcode;
import java.util.*;
public class mainHashCode {
public static void main(String[] args) {
TheBean theBeanA = new TheBean();
theBeanA.setNumCmdeSap(new Long(3));
TheBean theBeanB = new TheBean();
theBeanB.setNumCmdeSap(new Long(2));
TheBean theBeanC = new The... | true |
6fbdac17220d7fb69ed140517fa06cee028a7d50 | Java | DrewD39/adaptSchedule_DEAD | /server/src/stp/Timepoint.java | UTF-8 | 6,167 | 2.65625 | 3 | [] | no_license | /*
* Copyright 2010 by The Regents of the University of Michigan
* For questions or permissions contact durfee@umich.edu
*
* Code developed by James Boerkoel and Ed Durfee
*/
package stp;
import java.util.ArrayList;
import java.util.Vector;
import util.XMLParser;
public class Timepoint imple... | true |
5d0af6bf88925ecc993ef8e70fe0558a7daaf6b8 | Java | gaurav2291/Rest-Assured-API | /src/test/java/demo/ExampleForDataDriven.java | UTF-8 | 1,622 | 2.578125 | 3 | [] | no_license | package demo;
import static io.restassured.RestAssured.*;
import org.json.simple.JSONObject;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;
import io.restassured.http.ContentType;
public class ExampleForDataDriven {
@DataProvider(name ... | true |
c324601bb9789d01f13f68aed93a2dd3f84f9838 | Java | kimonic/javaproject | /mytest/src/com/dzx/blurred/AwtDrawSample.java | UTF-8 | 1,377 | 2.875 | 3 | [] | no_license | package com.dzx.blurred;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.geom.Line2D;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
public class AwtDrawSample {
public static void main(String[] args) {
File file = new File("E:\\调试颜色.png");
... | true |
06033039b2f95a62a77bf88d83261ecbaf2b8e52 | Java | Lzw2016/clever-canal | /clever-canal-dbsync/src/main/java/org/clever/canal/parse/dbsync/binlog/event/ViewChangeEvent.java | UTF-8 | 408 | 1.695313 | 2 | [
"MIT"
] | permissive | package org.clever.canal.parse.dbsync.binlog.event;
import org.clever.canal.parse.dbsync.binlog.LogBuffer;
import org.clever.canal.parse.dbsync.binlog.LogEvent;
/**
* @since mysql 5.7
*/
@SuppressWarnings("unused")
public class ViewChangeEvent extends LogEvent {
public ViewChangeEvent(LogHeader header, LogBuff... | true |
cf1fcfab3344985fed0fd99243114eaca2d0b113 | Java | open-devops/easybeam | /src/main/java/com/easybeam/repository/TenantGroupRepository.java | UTF-8 | 988 | 2.09375 | 2 | [] | no_license | package com.easybeam.repository;
import com.easybeam.domain.TenantGroup;
import org.springframework.stereotype.Repository;
import org.springframework.data.jpa.repository.*;
import org.springframework.data.repository.query.Param;
import java.util.List;
/**
* Spring Data JPA repository for the TenantGroup entity.
*/... | true |
358eaafcad91e04eb45178e2081cb176e081fcd8 | Java | djavaphp/pwm | /promotionJPA/src/java/com/fks/promo/entity/MstModule.java | UTF-8 | 3,818 | 2.03125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.fks.promo.entity;
import java.io.Serializable;
import java.util.Collection;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.En... | true |
21d52d02e513e6bf2960400fab85d5eced6007ff | Java | khaled33/SigSpring | /src/main/java/com/sid/Sig/Services/PropietaireServiceImp.java | UTF-8 | 1,892 | 2.203125 | 2 | [] | no_license | package com.sid.Sig.Services;
import com.sid.Sig.Repository.AppUsersRepository;
import com.sid.Sig.Repository.ProprietairesRepository;
import com.sid.Sig.Entity.Proprietaires;
import com.sid.Sig.config.error.NotFoundException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.da... | true |
018c2ab443dca685d45976f656d0d5315cc3f02d | Java | isaolmez/udemy-oca-java | /src/main/java/com/isa/oca/preparation/section1/lecture4/Norf.java | UTF-8 | 239 | 2.125 | 2 | [] | no_license | package com.isa.oca.preparation.section1.lecture4;
public class Norf extends Baz {
void testWhisper() {
/**
* Compiler error "The method whisper() from the type Baz is not visible"
*/
// whisper();
}
}
| true |
5c28621206db5963f57675728a9515ee179c1c99 | Java | matthiasbode/multiskalen | /Programmierung/Transshipment/src/applications/transshipment/model/basics/TransportBundle.java | UTF-8 | 5,631 | 2.03125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package applications.transshipment.model.basics;
import applications.mmrcsp.model.basics.TimeSlot;
import applications.mmrcsp.model.operations.Operation;
import applications.mmrcsp.model.resources.Resource;
import appli... | true |
348e00e3f8c3b490a30df7770d98e5aa3065cc6f | Java | dakto101/SpaciousLib | /SpaciousLibSpigot/src/main/java/org/anhcraft/spaciouslib/inventory/anvil/AnvilSlot.java | UTF-8 | 549 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | package org.anhcraft.spaciouslib.inventory.anvil;
public enum AnvilSlot {
/**
* The item on the left side, represents for the first input of an anvil
*/
INPUT_LEFT(0),
/**
* The item on the center side, represents for the second input of an anvil
*/
INPUT_RIGHT(1),
/**
* Th... | true |
8ecd2a07e0d4e01d97bcba61914fcdd4f45c6d62 | Java | Shahidul1786/Core-Java | /CoreJava(Basic)/src/Use_Of_Super_keyword/Main.java | UTF-8 | 686 | 2.796875 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Use_Of_Super_keyword;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author Shahidul
*/
public class Main {
... | true |
9aecedacd980235b6239cd5355d62fcab7977e37 | Java | adfuhr/JPokemon | /src/item/Stone.java | UTF-8 | 2,773 | 3.25 | 3 | [] | no_license | package item;
import jpkmn.Driver;
import pokemon.Pokemon;
public class Stone extends Item {
public enum Type {
FIRE, WATER, THUNDER, MOON, LEAF;
private String formatName() {
return name().charAt(0)
+ name().substring(1, name().length() - 1).toLowerCase() + "stone";
}
... | true |
4e7d2816ddffc9cba04211d6d8220d05df871f6f | Java | ArneDuyver/RutgerhofClientTwo | /app/src/main/java/com/kindeyeindustries/rutgerhofclienttwo/MainActivity.java | UTF-8 | 6,187 | 2 | 2 | [] | no_license | package com.kindeyeindustries.rutgerhofclienttwo;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.graphics.PorterDuff;
import android.net.ConnectivityManager;
impo... | true |
dafaa20a374d7a0701711da2924badd654778a16 | Java | jianglei-tianma/knows | /java/src/test/java/com/tianma/java/JavaApplicationTests.java | UTF-8 | 1,398 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | package com.tianma.java;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
@SpringBootTest
class JavaApplicationTests {
@Test
void contextLoads() {
}
@Test
void testTryCatch(... | true |
9972366534cc59696a4ab8009cdfe0c2a74b1c6e | Java | YMnkf/java18may | /Java18_05_2018/src/LR12/Lab01.java | UTF-8 | 2,547 | 3.671875 | 4 | [] | 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 LR12;
import java.util.Scanner;
public class Lab01 {
public static void task1860(String a) { //публичный статический мет... | true |
8ac487485297765e19d0f2f963795f0ba193e39f | Java | yeyoung0123/member | /src/com/kosta/dao/MemberDAO.java | UHC | 5,281 | 2.546875 | 3 | [] | no_license | package com.kosta.dao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import com.kosta.dto.MemberDTO;
public class MemberDAO {
String className="oracle.jdbc.OracleDriver";
String ur... | true |
ad99949437c0c558d2b2a58a62aab55eec111144 | Java | Jovtcho/JavaFundamentals | /JavaOOPBasics/01.DefiningClasses-Exercises/pokemonTrainer/Trainer.java | UTF-8 | 995 | 3.03125 | 3 | [
"MIT"
] | permissive | package pokemonTrainer;
import java.util.ArrayList;
import java.util.List;
public class Trainer {
private static final int DEFAULT_BADGE_VALUE = 0;
private String name;
private int badgesCount;
private List<Pokemon> pokemons;
public Trainer(String name) {
this.name = name;
this.ba... | true |
d5955b70fc8a1ca572d5f621914a8eb5537127b5 | Java | jenkinsci/chatter-notifier-plugin | /src/main/java/com/pocketsoap/BuildResultResolver.java | UTF-8 | 1,571 | 2.796875 | 3 | [
"MIT"
] | permissive | package com.pocketsoap;
import hudson.model.AbstractBuild;
import hudson.model.Result;
/**
* Created by jharringa on 4/4/17.
*
* This class provides additional build result statuses such as FIXED and STILL FAILING by understanding the
* current build's context.
*/
public class BuildResultResolver {
public s... | true |
45ed1270c4fcc1313c52f0d2b922cdc56dd75db2 | Java | VincentChrisbone/Java-group-project | /Java Group Project/src/com/company/NaughtyStudent.java | UTF-8 | 327 | 2.890625 | 3 | [] | no_license | package com.company;
import java.util.List;
public class NaughtyStudent extends Student {
public NaughtyStudent(List<Double> grades) {
super(grades);
}
@Override
public double getAverageGrade(){
return super.getAverageGrade() + (getAverageGrade() * 0.1);
}... | true |
f332883e9df8e36dbed9cdb546edfab48d1bc800 | Java | stigkj/tlb | /server/src/tlb/server/resources/VersionedResource.java | UTF-8 | 1,112 | 2.390625 | 2 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | package tlb.server.resources;
import tlb.TlbConstants;
import tlb.domain.Entry;
import org.restlet.Context;
import org.restlet.data.Request;
import org.restlet.data.Response;
import org.restlet.resource.Representation;
import java.io.IOException;
import java.util.Collection;
/**
* @understands accessing and listing... | true |
71bb9a085803faa5f4025d35149e16041ef32c4a | Java | Sciuba/taxOperations | /workspaceOperations/OperationsBussiness/ejbModule/br/com/operations/entity/TbAdmMaterialCategory.java | UTF-8 | 2,497 | 1.8125 | 2 | [] | no_license | package br.com.operations.entity;
import java.io.Serializable;
import java.sql.Blob;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.OneT... | true |
fc8346eccdc1de8894420761d35a7a0c13318e7c | Java | Link-Secret/JavaReps | /Mldn/Practice/c/Test3.java | UTF-8 | 1,522 | 3.421875 | 3 | [] | no_license | package c;
class Person {
private String name;
private String addr;
private char sex;
private int age;
public Person(String name,String addr,char sex,int age){
this.name = name;
this.addr = addr;
this.sex = sex;
this.age = age;
}
public Person(String name,String addr){
this.name = name;
this.addr = ... | true |
a2ef324cdab6514027efa6420ac610cb1f155bf7 | Java | RockTao/ideaWorkSpace | /JavaAndSpringStudy/DesignModel/src/main/java/com/example/demo/factoryPattern/Shape.java | UTF-8 | 86 | 2.25 | 2 | [] | no_license | package com.example.demo.factoryPattern;
public interface Shape {
void draw();
}
| true |
6299c8145ea1c2167dc6e8eb1935a753f3462f7a | Java | Bariskas/OOD | /lab2_observer/src/main/java/TargetingObserver/WeatherConditionData.java | UTF-8 | 171 | 2.234375 | 2 | [] | no_license | package TargetingObserver;
public class WeatherConditionData {
public float temperature = 0.0f;
public float humidity = 0.0f;
public float pressure = 0.0f;
}
| true |
361e0654fa64d5cb35c713a32cdd70923498c114 | Java | 99raul12/Cajero-Interfaz-3 | /CuentaNueva.java | UTF-8 | 1,258 | 2.84375 | 3 | [] | no_license | package cajero;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
public class CuentaNueva extends JFrame {
JTextField pantalla, pantalla2;
public CuentaNueva() {
setSize(500, 100);
setTitle("Calculadora Tarea");
... | true |
7defa61638236264211a3e3d6323f24787a996b7 | Java | kiki0219/Embedded | /java/java_basics1/src/java_basics1/InterfaceDemo2.java | UTF-8 | 1,292 | 3.703125 | 4 | [] | no_license | package java_basics1;
interface Person{
int a=20;
public void fun1();
public void fun2();
}
interface Inter1{
public void fun3();
}
interface Inter2 extends Person{
public void fun4();
}
class Worker implements Inter1,Inter2{
@Override
public void fun1() {
// TODO Auto-generated method stub
System.out.pri... | true |
13d590ba4ca8db00249cad79e8ebb962d0876a10 | Java | Lesmiscore/SpoofBrowser | /src/com/nao20010128nao/SpoofBrowser/v4/ChromeActivity.java | UTF-8 | 698 | 1.757813 | 2 | [] | no_license | package com.nao20010128nao.SpoofBrowser.v4;
import com.nao20010128nao.SpoofBrowser.classes.*;
import android.os.*;
import android.transition.*;
import com.nao20010128nao.SpoofBrowser.*;
import com.nao20010128nao.SpoofBrowser.v3.classes.*;
import com.nao20010128nao.SpoofBrowser.v4.classes.*;
import com.nao20010128nao.Sp... | true |
3db6eddc9f34634044fbdb7dcd41483ef349ca4a | Java | MXYNXC/Airdb | /src/main/java/com/qfedu/service/UserService.java | UTF-8 | 197 | 1.789063 | 2 | [] | no_license | package com.qfedu.service;
import com.qfedu.pojo.User;
import com.qfedu.vo.ResultVo;
public interface UserService {
int addUser(User user);
User findUser(String name,String password);
}
| true |