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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
be18a04fd4c6211c30c96138613aa91a192abac8 | Java | IhorStar/Practice | /Practice6/src/ua/nure/starodubets/Practice6/part7/Range.java | UTF-8 | 3,457 | 3.796875 | 4 | [] | no_license | package ua.nure.starodubets.Practice6.part7;
import java.util.Arrays;
import java.util.Iterator;
/**
* The class implements Iterable
*
* @author Ihor Starodubets
*
*/
public class Range implements Iterable<Integer> {
/**
* The reverse
*/
private boolean reverse;
/**
* The start
*/
private int start... | true |
45a46883a1b1599219f004ad2cdbee5c64e2017e | Java | pm290000/willy.java | /11_Collection/src/com/ict/edu01/Ex07.java | UTF-8 | 436 | 3.21875 | 3 | [] | no_license | package com.ict.edu01;
import java.util.HashSet;
import java.util.TreeSet;
public class Ex07 {
// 로또 번호 : 1- 45, 렌덤, 중복 안됨, 6자리
// TreeSet : 오름차순 정렬
public static void main(String[] args) {
TreeSet<Integer> lotto1 = new TreeSet<Integer>();
for (int i = 0; i < 6; i++) {
int k = (int) (Math.random() * 45) + ... | true |
8c28e6056950495f721420f0c9bb8ca9dc654061 | Java | jackycjw/leewan-fortress | /fortress/src/main/java/com/leewan/util/StringUtils.java | UTF-8 | 1,375 | 2.890625 | 3 | [] | no_license | package com.leewan.util;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
public class StringUtils {
public static String DEFAULT_CHARSET = "UTF-8";
public static boolean... | true |
59c98c9534efb1d10f720e225e4f76d18562f300 | Java | etherfirma/eflattice | /test/com/lattice/validate/ObjectValidatorTest.java | UTF-8 | 1,308 | 2.4375 | 2 | [] | no_license | package com.lattice.validate;
import static org.testng.Assert.*;
/**
* Comment goes here.
*
* @author Lee Crawford (lee.crawford@gmail.com)
* @copyright Copyright (c) 2009, All Rights Reserved.
*/
public class ObjectValidatorTest<Type>
{
public
ObjectValidatorTest (final Class<Type> type)
throws... | true |
6030802c2f5da0e490ce4a378a7e7d75ed4c6b2c | Java | pwalus/hackerrank | /src/Algorithms/QueensAttack.java | UTF-8 | 6,885 | 3.53125 | 4 | [] | no_license | package Algorithms;
public class QueensAttack {
protected static int n;
protected static int[][] obstacles;
public static void setData(int n, int[][] obstacles) {
QueensAttack.n = n;
QueensAttack.obstacles = obstacles;
}
public static int queensAttack(int n, int k, int r_q, int c_... | true |
39352026c0b022de0cee40981e1cc5cd99e8331c | Java | Julyuan/Maven-Learning | /src/main/java/test/Main.java | UTF-8 | 13,402 | 2.640625 | 3 | [] | no_license | //////package test;
//////
//////import org.openjdk.jmh.annotations.Benchmark;
//////import org.openjdk.jmh.runner.Runner;
//////import org.openjdk.jmh.runner.RunnerException;
//////import org.openjdk.jmh.runner.options.Options;
//////import org.openjdk.jmh.runner.options.OptionsBuilder;
//////
//////import javax.crypt... | true |
9c7a91d318aed42274dbeb594d4abf1357b449fb | Java | drm/java-redis-collections | /test/nl/melp/redis/collections/ScanIteratorTest.java | UTF-8 | 1,414 | 2.5 | 2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package nl.melp.redis.collections;
import org.junit.Assert;
import org.junit.Test;
import java.io.IOException;
import java.util.List;
public class ScanIteratorTest extends AbstractIntegrationTest {
@Test
public void testScan() throws IOException {
for (int i = 0; i < 1000; i ++) {
redis.call("SET", "foo:" + ... | true |
cba9481cae4e5333ba81ead235e0afb853dae5e8 | Java | hopmann/msc | /repositories/subversion/src/main/java/de/hopmann/repositories/subversion/SubversionPackageAccessor.java | UTF-8 | 9,741 | 1.640625 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (C) 2014 Holger Hopmann (h.hopmann@uni-muenster.de)
*
* 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
*
... | true |
e4e038013059e23e6573fc8d4c468af7ecf47c0e | Java | maru536/goout | /IdeaProjects/door/src/main/java/com/door/Service/UserConfigService.java | UTF-8 | 167 | 1.859375 | 2 | [] | no_license | package com.door.Service;
import com.door.Database.Entity.UserConfig;
public interface UserConfigService {
public boolean isHavingNull(UserConfig userConfig);
}
| true |
17b871b7daf1f8d0a1e8bbbb653956c2d7ad609f | Java | Ad2Vy/CodingQuestions | /Recursion/generateSubsets.java | UTF-8 | 812 | 3.4375 | 3 | [] | no_license | package Recursion;
public class generateSubsets {
static void subset(String s,int i,String curr) {
if (i == s.length())
{
System.out.println(curr);
return;
}
subset(s,i+1,curr);//not include the i+1 th element
subset(s,i+1, curr.concat(String.valueOf(... | true |
915dd2931501b8cb3795ee7e8c64aab883c8c32a | Java | oooJerry/dibaidanche | /DBDC/app/src/main/java/com/wuwutongkeji/dibaidanche/navigation/contract/wallet/ConsumeItemContract.java | UTF-8 | 951 | 1.84375 | 2 | [] | no_license | package com.wuwutongkeji.dibaidanche.navigation.contract.wallet;
import com.wuwutongkeji.dibaidanche.base.BaseDependView;
import com.wuwutongkeji.dibaidanche.base.BasePresenter;
import com.wuwutongkeji.dibaidanche.common.widget.refreshlayout.RefreshLayout;
import com.wuwutongkeji.dibaidanche.entity.LockEntity;
import... | true |
2cc07af9001c007132964d9e4223d06134916ed9 | Java | anupama-angadi/Wipro-talent-next-2017-2021 | /Concepts_Programs/02-Flow_Control_Statements/FlowControlSt12.java | UTF-8 | 716 | 4.09375 | 4 | [] | no_license | /*******************************************************************************
12)
Write a program to check if a given number is prime or not
Topics Covered: For Loop
*******************************************************************************/
import java.util.*;
public class FlowControlSt12
{
public stat... | true |
7483c8b4a517aa0c16fda107706bd5e63a0912f5 | Java | JS-20/CMR_VENTAS | /src/main/java/ar/com/susan/webservicespring/repositories/ProductoRepository.java | UTF-8 | 315 | 1.671875 | 2 | [] | no_license | package ar.com.susan.webservicespring.repositories;
import ar.com.susan.webservicespring.entities.Producto;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ProductoRepository extends JpaRepository<Producto, Integer> {
}
| true |
1b3ba622993fd6f6a08b184e9c3b5976b18209b5 | Java | litsters/savage-borderlands | /src/main/java/database/dao/NoSuchPlayerException.java | UTF-8 | 191 | 2.15625 | 2 | [] | no_license | package database.dao;
public class NoSuchPlayerException extends Exception {
public NoSuchPlayerException(){super();}
public NoSuchPlayerException(String message){super(message);}
}
| true |
3736dde48dca9b46e6fff3889b9f89b4976de911 | Java | sgomezp/TourGuideMadrid | /app/src/main/java/com/example/android/tourguidemadrid/MadridInfo.java | UTF-8 | 3,997 | 2.65625 | 3 | [] | no_license | package com.example.android.tourguidemadrid;
/**
* Created by sgomezp on 29/05/2017.
*/
public class MadridInfo {
// Constant value that represents no image was provided for the sight
private static final int NO_IMAGE_PROVIDED = -1;
//TopSight name
private String mTopSightName;
// Image Resou... | true |
2d9833e794b6fe99ee0e46be12d1c8d6873e9967 | Java | kumm/vaadin-cdi-239 | /src/main/java/at/ppichl/test/vaadincdi/NavigationService.java | UTF-8 | 536 | 2.109375 | 2 | [] | no_license | package at.ppichl.test.vaadincdi;
import com.vaadin.cdi.CDINavigator;
import com.vaadin.cdi.NormalUIScoped;
import com.vaadin.cdi.internal.Conventions;
import com.vaadin.navigator.View;
@NormalUIScoped
public class NavigationService extends CDINavigator {
public void navigateTo(Class<? extends View> targetView) ... | true |
d72d9fad92f649446aebfdc7153d6054465e9580 | Java | viviand2020/jbb | /jbb-web-app/src/test/java/org/jbb/webapp/architecture/JbbArchRules.java | UTF-8 | 8,241 | 1.648438 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2017 the original author or authors.
*
* This file is part of jBB Application Project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*/
package org.jbb.webapp.architecture;
... | true |
e59a29b376f6366f9dbd438c505383da8d5b3f69 | Java | RafaelSantosBraz/ControleNotasFaltasUENP | /Notes/src/java/controle/AlunoControle.java | UTF-8 | 3,111 | 2.328125 | 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 controle;
import dao.AlunoDao;
import java.io.Serializable;
import java.util.List;
import javax.faces.application.FacesMessage... | true |
53ca82dd1914c55e5f5d8d2ca872fd73a53ca00c | Java | deepesh914/JavaCode | /Practice1/src/com/DS_LinkedList/LinkList.java | UTF-8 | 3,338 | 3.859375 | 4 | [] | no_license | package com.DS_LinkedList;
public class LinkList {
Node head;
Node tail;
public LinkList() {
this.head = null;
this.tail = null;
}
// Add node in the beginning
public void AddNodeBegining(String data) {
if (head == null) {
head = new Node(da... | true |
4025a31302b446e7a422cbf56dd8b695232db4c9 | Java | volumeis/baguetteUser | /baguetteUser/src/main/java/com/model2/mvc/service/bread/BreadService.java | UTF-8 | 708 | 2.140625 | 2 | [] | no_license | package com.model2.mvc.service.bread;
import java.util.Map;
import com.model2.mvc.service.domain.Bread;
//==> 회원관리에서 서비스할 내용 추상화/캡슐화한 Service Interface Definition
public interface BreadService {
// // 회원가입
// public void addUser(User user) throws Exception;
// 빵정보확인
public Bread getBread(int ... | true |
28cdf235a3f51f50459eca1b853f726816bbdeaf | Java | danifeles/Proyecto | /odoo/src/main/java/com/curso/odoo/repositorio/FacturaRepositorio.java | UTF-8 | 423 | 1.84375 | 2 | [] | no_license | package com.curso.odoo.repositorio;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import com.curso.odoo.model.Factura;
public interface FacturaRepositorio extends JpaRepository<Factura, Integer>{
List<Factura> find... | true |
089a660efc12739144700fa43d9f9dcd935590a5 | Java | Tinku12345-del/remoadjchars | /arrayPairsum.java | UTF-8 | 781 | 3.109375 | 3 | [] | no_license | package Ques;
import java.util.*;
public class PairSumOfArray {
public static void main(String[] args) {
Scanner s=new Scanner(System.in);
System.out.println("Enter the size of first array");
int m=s.nextInt();
System.out.println("Enter the size of second array");
int n=s.nextInt();
int A[]=new int[m];
... | true |
b9a66b9eb2a537a666df2edd0b686d56444e1dd7 | Java | petar-gjeorgiev/svs-talent | /SVS-HOMEWORK/src/Exceptions/ExceptionMain.java | UTF-8 | 277 | 2.734375 | 3 | [] | no_license | package Exceptions;
public class ExceptionMain {
public static void main(String[] args) {
try {
ZipCode code = new ZipCode(1234);
System.out.println(code.getZipCode());
} catch (NumberException e) {
System.err.println(e.getMessage());
}
}
}
| true |
3c8bf566bc8da69648f856e1de268f237df4d78b | Java | tekinarslan/AndroidSpoonTestingProject | /app/src/main/java/com/tekinarslan/spoon/wizard/ui/PageFragmentCallbacks.java | UTF-8 | 165 | 1.648438 | 2 | [] | no_license | package com.tekinarslan.spoon.wizard.ui;
import com.tekinarslan.spoon.wizard.model.Page;
public interface PageFragmentCallbacks {
Page onGetPage(String key);
}
| true |
c3fcffafdd7e39ac6861d70bb44a4adb82f63746 | Java | NynkevK/TOSAD2017 | /src/main/java/nl/hu/tosad2017/webservices/DatabaseResource.java | UTF-8 | 2,013 | 2.546875 | 3 | [] | no_license | package nl.hu.tosad2017.webservices;
import nl.hu.tosad2017.model.services.DatabaseService;
import nl.hu.tosad2017.model.services.ServiceProvider;
import nl.hu.tosad2017.model.model.DataInfo;
import javax.json.Json;
import javax.json.JsonArray;
import javax.json.JsonArrayBuilder;
import javax.json.JsonObjectBuilder;
... | true |
aa569805471eb7c96956484d82b865f208545e4a | Java | DanielFernandoUniville2/ESTD2019 | /BinaryTree/src/Tree/BSTInterface.java | UTF-8 | 455 | 3.21875 | 3 | [] | no_license | package Tree;
public interface BSTInterface {
// Complexidade O(Logn)
public void add(int element);
// Complexidade O(Logn)
public boolean contains(int element);
// Complexidade O(Logn)
public void remove(int element);
// Complexidade O(1)
public boolean isEmpty();
// Complexidade O(... | true |
95d987d3e5926a8657a15c7d31255a1c1831d929 | Java | iAnimo/mycodes | /leets/leet031.java | UTF-8 | 744 | 3.453125 | 3 | [] | no_license | package leets;
import java.util.Vector;
import utils.TreeNode;
public class leet031 {
/**
* 递归 1.确定递归函数的参数和返回值 2.确定终止条件 3.确定单层递归的逻辑
*/
/** LeetCode
* 144.二叉树的前序遍历 145.二叉树的后序遍历 94.二叉树的中序遍历
*/
void traversal(TreeNode cur, Vector<Integer> vec) {
if (cur == nul... | true |
101ca6c8a02361b4571a13006cb1a928bdbbe66e | Java | BinbinBian/dkpro-similarity | /dkpro-similarity-algorithms-lexical-asl/src/main/java/dkpro/similarity/algorithms/lexical/string/MongeElkanSecondStringComparator.java | UTF-8 | 897 | 1.570313 | 2 | [] | no_license | /*******************************************************************************
* Copyright 2012
* Ubiquitous Knowledge Processing (UKP) Lab
* Technische Universität Darmstadt
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
... | true |
9777b1c77029196d56775db0ffc457492a81fb51 | Java | Charith071/Group5_final | /StreesController/src/main/java/com/example/demo/Entity/Booking_request.java | UTF-8 | 1,042 | 2.203125 | 2 | [] | no_license | package com.example.demo.Entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class Booking_request {
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
private Long id;
private Long user_id; // (f... | true |
ae23e572bc14e154241044848857ed9acb1b26be | Java | Alex353CAY/publicLearningArt | /src/main/java/components/menu/impl/MenuImpl.java | UTF-8 | 11,165 | 2.578125 | 3 | [] | no_license | package components.menu.impl;
import javafx.scene.Node;
import javafx.scene.control.*;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.Region;
import java.util.concurrent.atomic.AtomicReference;
public class MenuImpl implements components.menu.Menu {
private final MenuItem createNeuralNetworkBt... | true |
1be4e32c4f925c410c14e5dde393920cd7a4c25f | Java | EunnaYoo/Programmers | /Java/Q07_Lv1.두 정수 사이의 합.java | UHC | 418 | 3.15625 | 3 | [] | no_license | package programmers.java;
//
public class Q7 {
public static long solution(long a, long b) {
long answer = (a == b) ? a : ((Math.abs(b-a)+1)*(a+b)/2);
return answer;
}
// Ʈ ڵ
public static void main(String[] args) {
System.out.println(solution(5, 3));
System.out.pri... | true |
ab23ef9ef5c738a468fa70293444cb784cbf5fb1 | Java | andervyd/Java_Frameworks | /src/main/java/Multithreading/Synchronizers/SemaphoreSync.java | UTF-8 | 1,565 | 3.9375 | 4 | [] | no_license | //: Synchronizer Semaphore
// method: .acquire()
// .release()
package Multithreading.Synchronizers;
import java.util.concurrent.Semaphore;
public class SemaphoreSync {
public static void main(String[] args) {
Semaphore callBox = new Semaphore(2);
new Person("John", callBox)... | true |
6c99b7424ca9cf7b0c69dd68b59e20bb46c9f78a | Java | anjijava16/Practice-Geeks-For-Geeks | /Arrays/Find Number of Numbers.java | UTF-8 | 1,787 | 3.953125 | 4 | [] | no_license | //https://practice.geeksforgeeks.org/problems/find-number-of-numbers/1
//Time Comp : 0(n*k - max digit's length)
/*Get each num in array and loop through each digit of the element and check if its equal to k
if so inc count
keep while as >=10
even after failing the loop the last digit value will be stored in d
and... | true |
aecc7df2179ed3b2a8df8335ad84e4600fa9ac22 | Java | Gensitskaya-Tanya/Prog | /src/hw3/sortShell/SortShell.java | UTF-8 | 1,359 | 3.703125 | 4 | [] | no_license | package hw3.sortShell;
import java.util.Arrays;
/**
* 3) Напишите многопоточный вариант сортировки массива
* методом Шелла.
*/
public class SortShell {
public static void main(String[] args) {
int[] a = {9, 8, 7, 6, 5, 4, 3, 2, 1, 1, 2};
System.out.println(Arrays.toString(a));
System.out.println(Arrays.toS... | true |
a08797a4d9ddabdc598b42c5041c1793ad52aa72 | Java | auksasful/Lab1-IFF-8-1-_Tomas_Staskevicius | /Lab1A_intro/Lab1a_IntroductionFX/src/zaidimas/Tic_Tac_Toe.java | UTF-8 | 5,607 | 2.828125 | 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 zaidimas;
//import demos.graphics.Ball;
import extendsFX.BaseGraphics;
import java.util.ArrayList;
import java.util.... | true |
2c9a0032037ffea138b83d202c7bfc3f4b71bd96 | Java | starrymedia/DMA.SuperNode | /super-node-biz/src/main/java/org/elastos/record/biz/service/impl/BaseServiceImpl.java | UTF-8 | 6,880 | 2.09375 | 2 | [] | no_license | package org.elastos.record.biz.service.impl;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.beetl.sql.core.annotatoin.Table;
import org.beetl.sql.core.db.KeyHolder;
import org.beetl.sql.core.engine.PageQuery;
import org.elastos.record.biz.dao.BaseDao;
import org.elastos.record.biz.service.BaseSer... | true |
b926a09005c18a89182a17688432aea0600e9f3f | Java | ghandhikus/TworcyGierStrona | /src/main/java/com/clockwise/tworcy/model/navigation/Navigation.java | UTF-8 | 4,123 | 2.765625 | 3 | [
"MIT"
] | permissive | package com.clockwise.tworcy.model.navigation;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Objects;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.support.ServletUriComponentsBuilder;
/**
* Holds ... | true |
6e478a16be788e0c4313efb58bf271efa5dc8470 | Java | Marloncheg182/ClinicClassic | /src/main/java/clinicapp/dao/ClinicDAO.java | UTF-8 | 315 | 2.125 | 2 | [] | no_license | package clinicapp.dao;
import clinicapp.entity.Clinic;
import java.util.List;
/**
* @author Oleg Romanenchuk
*/
public interface ClinicDAO {
void create(Clinic c);
Clinic getByName(String name);
Clinic getById(Long id);
List<Clinic> getAll();
void update(Clinic c);
void delete(Long id... | true |
f34d896ff7707e29ee87cf7f8ce946ab13b818e7 | Java | levieilfabien/TAG_TST | /TAG_TST/src/elements/LinkedTextField.java | ISO-8859-1 | 2,516 | 2.921875 | 3 | [] | no_license | package elements;
import java.lang.reflect.Field;
import javax.swing.JComponent;
import javax.swing.JTextField;
import java.util.List;
public class LinkedTextField extends JTextField {
/**
* Id de serialisation.
*/
private static final long serialVersionUID = 1L;
/**
* L'objet lien.
*/
... | true |
6592e01d63ba4db67b0c02e88390e99b8a6389a6 | Java | Finderchangchang/WKForShop | /app/src/main/java/wk/shop/model/FoodModel.java | UTF-8 | 4,656 | 2.234375 | 2 | [] | no_license | package wk.shop.model;
import java.util.List;
/**
* Created by Finder丶畅畅 on 2017/3/26 19:40
* QQ群481606175
*/
public class FoodModel {
/**
* FoodID : 3
* Name : 取快递
* MaxPerDay : QKD
* isDelete : y
* publicgood : 0
* intro : 快递
* note :
* FullPrice : 0
* icon : htt... | true |
fb8c5d9553aa64041d4dabb38dcc70ade9938ae7 | Java | jeffyuan/silver-bullet | /silverbullet-common/silverbullet-ml/src/test/java/MahoutTest.java | UTF-8 | 2,905 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | import org.apache.mahout.cf.taste.common.TasteException;
import org.apache.mahout.cf.taste.impl.common.LongPrimitiveIterator;
import org.apache.mahout.cf.taste.impl.model.file.FileDataModel;
import org.apache.mahout.cf.taste.impl.neighborhood.NearestNUserNeighborhood;
import org.apache.mahout.cf.taste.impl.recommender.... | true |
68896f1c896243b67cbfb54bbdcbf5ecce087477 | Java | aggdeepika/DesignPatterns | /src/ATM/atmComponant/ATM.java | UTF-8 | 652 | 2.25 | 2 | [] | no_license | package ATM.atmComponant;
import ATM.Bank.Address;
public class ATM {
private String atmId="1234";
private Address location;
private CashDispenser cashDispenser;
private Keypad keypad;
private Printer printer;
private DepositSlot depositSlot;
private Screen screen;
public ATM(Address... | true |
fcbe05819dd1afc1a3a68e8306f340fd0fa1b21e | Java | marcusvfs/Java | /src/view/jif_cadastroAluguel.java | UTF-8 | 26,049 | 2.015625 | 2 | [] | no_license | package view;
import java.awt.Dimension;
import javax.swing.JOptionPane;
import model.bean.Cliente;
import model.bean.VeiculoAlugado;
import model.dao.AluguelDAO;
import model.dao.ClienteDAO;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Too... | true |
c9862b516852e08e28daa19295467d5b4e687421 | Java | juanBalian35/balian-introini | /src/ecoshop/frontend/InterfazController.java | UTF-8 | 8,046 | 2.1875 | 2 | [] | no_license | package ecoshop.frontend;
import java.io.IOException;
import java.lang.reflect.Array;
import javafx.scene.control.Button;
import java.net.URL;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.animation.TranslateTransition;
import javafx.event.ActionEvent;... | true |
6a8fcf719d6cf51971d83b01d8b2d9fddc1c281e | Java | junsuk5/android-calendar | /app/src/main/java/com/example/calendar/CalendarAdapter.java | UTF-8 | 3,087 | 2.890625 | 3 | [] | no_license | package com.example.calendar;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import ... | true |
d71d08bcd65a8a7575a052d3399e63c2913bcb60 | Java | kodandaram-kodakanti/Java8Practice | /CoreJavaInterviewQuestions/src/io/corejava/EnY/A1.java | UTF-8 | 247 | 2.3125 | 2 | [] | no_license | package io.corejava.EnY;
public class A1 {
public static void main(String args[]) {
try {
int x = 0;
for (x = 1; x < 4; x++)
;
System.out.println(x);
} catch (Exception e) {
} finally {
System.out.println("Error");
}
}
} | true |
ec601a7b750f5f7d36b862ead32c33a2f24a327d | Java | KKowalewski24/SpringProjects | /SpringIO/Guide/RelationalData/src/main/java/pl/kkowalewski/relationaldata/loader/DataLoader.java | UTF-8 | 2,472 | 2.65625 | 3 | [
"MIT"
] | permissive | package pl.kkowalewski.relationaldata.loader;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Compone... | true |
92e876577d2e1630127b1acacd5dff08abbb3a10 | Java | TihiyTi/JavaTest | /SpringTest/src/main/java/com/tihiy/springdemo/ReoSignalModel.java | UTF-8 | 586 | 2.421875 | 2 | [] | no_license | package com.tihiy.springdemo;
import com.tihiy.springdemo.abs.AbstractModel;
import java.util.List;
public class ReoSignalModel extends AbstractModel implements SignalInterface,BaseSignalInterface{
private List<Double> signal;
private List<Double> baseSignal;
private String signalName;
public void s... | true |
f88e7f82d79c9609df0ea1d2817c33d314f3c3d5 | Java | jiri-meluzin/FluentXMLLib | /XML/src/main/java/com/meluzin/fluentxml/xml/builder/SAXParserHandler.java | UTF-8 | 2,830 | 2.34375 | 2 | [] | no_license | package com.meluzin.fluentxml.xml.builder;
import java.io.IOException;
import java.io.InputStream;
import javax.xml.parsers.SAXParser;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
import org.xml.sax.helpers.DefaultHandler;
final class SAXParserHandler extends... | true |
a14f15b4893669ac8197861379e96b0fd1506a94 | Java | dhkyhb/LearnDemo | /src/main/java/dhkyhb/DesignPattern/CreationalPatterns/FactoryPattern/Mouse.java | UTF-8 | 275 | 2.421875 | 2 | [] | no_license | package dhkyhb.DesignPattern.CreationalPatterns.FactoryPattern;
/**
* Create by hl
* Data by 2019-05-15
* Description:
*/
public abstract class Mouse implements Produce{
public Mouse() {
produce();
}
@Override
public abstract void produce();
}
| true |
2eb1cf9042739d96f6998a8f935a70b47706f7b0 | Java | Laura76/ticketWorld | /TicketWorld/src/edu/nju/onlinestock/model/DiscountStrategy.java | UTF-8 | 571 | 2.328125 | 2 | [] | no_license | package edu.nju.onlinestock.model;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="discountStrategy")
public class DiscountStrategy {
@Id
private int vipLevel;
private double discount;
public double getDiscount() {
return dis... | true |
e0250739f7615a1eaad35674230672dbe89583f6 | Java | Lxiaolong/Graduation-Project | /src/main/java/cn/net/sunet/sunetcloud/domain/DeviceRuntime.java | UTF-8 | 1,767 | 2.046875 | 2 | [] | no_license | package cn.net.sunet.sunetcloud.domain;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
public class DeviceRuntime {
private Long id;
private Long deviceId;
private Long runtimeOutput;
private Long additiveOutput;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:... | true |
ce6b7f6756bb4613305ffb9c2eed8c9d305d85c1 | Java | y0geshdev/SpringJdbcExample | /SpringJdbcExample/src/com/yogesh/JdbcTemplateMain.java | UTF-8 | 1,658 | 2.46875 | 2 | [] | no_license | package com.yogesh;
import java.util.List;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.yogesh.roomTypeChangeDemo.SpecialReqDao;
import com.yogesh.roomTypeChangeDemo.SpecialRequestDto;
public class JdbcTemplate... | true |
c11903cd6900b4b0b0536ddc5f949d5e319810e6 | Java | iwakura-lain/DesignPattern | /src/单例模式/容器单例模式/Test.java | UTF-8 | 1,189 | 3.296875 | 3 | [] | no_license | package 单例模式.容器单例模式;
import org.apache.commons.lang.StringUtils;
import java.util.HashMap;
import java.util.Map;
/**
* @Author: antigenMHC
* @Date: 2020/6/30 20:10
* @Version: 1.0
**/
public class Test {
public static void main(String[] args) {
Thread t1 = new Thread(new Th());
Thread t2 =... | true |
39ae195aec67c14e1227e8c678938e9ca5727bfe | Java | 404forD/teaching-supervise | /src/main/java/io/renren/modules/generator/service/impl/ClassServiceImpl.java | UTF-8 | 1,588 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package io.renren.modules.generator.service.impl;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatis... | true |
d1ddd87729bb578c0c8215a13562cfc85d0bc678 | Java | spinach01/teamProject | /inventory_mp/src/main/java/inventory/project/mp/MpproductDAO.java | UHC | 20,535 | 2.25 | 2 | [] | no_license | package inventory.project.mp;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import www.utility.DBClose;
import www.uti... | true |
fc36529592d71561942c78d8e66684582ebd8520 | Java | PedroPascoal6/JavaSQLSAMPLE | /src/basedados/TestSQL.java | UTF-8 | 1,969 | 2.71875 | 3 | [] | no_license | package basedados;
import java.awt.List;
import java.sql.*;
import java.util.ArrayList;
public class TestSQL {
private String connectionUrl ;
private Connection con ;
private Statement stmt = null;
private ResultSet rs = null;
public void connectDB() {
try {
... | true |
f8d2330c6980162a71fe988aeba5580a475c4919 | Java | TM760I/CM1210-Object-Oriented-Java-Programming | /Labs/4/EmployeeTest.java | UTF-8 | 314 | 2.34375 | 2 | [] | no_license | class EmployeeTest{
public static void main(String[] args) {
Employee employee1 = new Employee("Matt Morgan", 67485, "COMSC", "Lecrurer");
Employee employee2 = new Employee("Tim Marshall", 78495, "BIOSI", "Professor");
Employee employee3 = new Employee("Richard Wright", 43637, "PHYSX", "Read... | true |
b0b180eede24c50d89d5e7c96b7ed50d7fa32635 | Java | Abd-Elhadi/Notification-Module | /src/Main.java | UTF-8 | 608 | 3.140625 | 3 | [] | no_license | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Notification not = new Notification();
Scanner sc = new Scanner(System.in);
System.out.println("Notification recipient: ");
not.receiver = sc.nextLine();
System.out.println("Notification subject: ");
not.subject = sc.n... | true |
9ea66e713717aca3d55353b4973b948c52af213a | Java | SergeyKichigin/homework1 | /src/main/java/java2/homework1/Robot.java | UTF-8 | 1,033 | 3.671875 | 4 | [] | no_license | package java2.homework1;
public class Robot implements Participants {
private String name;
private int maxLength;
private int maxHeight;
public Robot(String name, int maxLength, int maxHeight) {
this.name = name;
this.maxLength = maxLength;
this.maxHeight = maxHeight;
}
... | true |
dd751a4f70a57f919e9a6cc53357182c56a75498 | Java | junsoodark/-ssafy-common-PJT | /back-end/src/main/java/com/web/blog/dao/study/StudyMemberDaoImpl.java | UTF-8 | 1,680 | 2.5625 | 3 | [] | no_license | package com.web.blog.dao.study;
import java.util.HashSet;
import java.util.Set;
import org.springframework.stereotype.Repository;
import com.web.blog.model.study.Study;
import com.web.blog.model.user.User;
@Repository
public class StudyMemberDaoImpl implements StudyMemberDao {
@Override
public boolean approve(S... | true |
ead32aff928dcedb9350a2a69c89157d3f4662a1 | Java | JNU-econovation/observer | /server/apm-agent/src/main/java/com/capstone/apm/transaction/TransactionPropagation.java | UTF-8 | 324 | 1.875 | 2 | [] | no_license | package com.capstone.apm.transaction;
import java.util.List;
import java.util.Map;
/*
* 분산 트랜잭션을 추적하기 위해 Http Header에 Trace-Id를 삽입해야한다.
* 관련된 메서드를 제공하는 Interface
*/
interface TransactionPropagation {
void propagate(Map<String, List<String>> headers);
}
| true |
0dbedeb9fdb93dfc3758891824c8fb6475e52b2a | Java | Steven113/predict-me-service-backend | /src/main/java/DataMining/MongoDBDocumentCompatibleObject.java | UTF-8 | 266 | 2.03125 | 2 | [] | no_license | package DataMining;
import org.bson.Document;
/**
* Interface for objects that can be converted to MongoDB Document objects
* for the API
* @author Steven Tupper
*
*/
public interface MongoDBDocumentCompatibleObject {
Document generateMongoDBDocumentFromObject();
}
| true |
a9db1575a5e375533b0683d1899b0aae51be3ee4 | Java | jaeyeong-sso/salest-etl-webapp | /SalestAdminConsole/src/main/java/com/salest/etl/adminconsole/mapreduce/TimeBaseFirstStepAggMapper.java | UTF-8 | 688 | 1.953125 | 2 | [] | no_license | package com.salest.etl.adminconsole.mapreduce;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import java.io.IOException;
// 2014-12-01-01,12:34:15,29,1,3000
public class TimeBaseFirstStepAggMapper extends Mapper<LongWritable, Text, Text, Text> ... | true |
2782d1330600b218e2ae4f8d4a8887db8cf85c21 | Java | letuankiet146/travel | /Server/spr-data/src/main/java/com/spr/dto/TourDto.java | UTF-8 | 3,638 | 1.851563 | 2 | [] | no_license | /**
*
*/
package com.spr.dto;
import java.io.File;
import java.io.FileInputStream;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;
import java.util.Hashtable;
import java.util.jar.Attributes;
import javax.naming.NamingEnumeration;
import lo... | true |
13adf704c31360da5b25fe65d5cb0b0b02ac9c29 | Java | huydaodang2706/AIMS | /AimsProject/src/hust/soict/hedspi/aims/controller/AuthorController.java | UTF-8 | 986 | 2.25 | 2 | [] | no_license | package hust.soict.hedspi.aims.controller;
import java.io.IOException;
import java.net.URL;
import java.util.ResourceBundle;
import hust.soict.hedspi.aims.media.Book;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Node;
im... | true |
cc0d42a616c0c6cc10b4ec2938a546fb1e7b95cf | Java | eyoba2001/eyoba2001.github.io | /WebShop/src/main/java/mvc/webshop/web/ProductController.java | UTF-8 | 1,984 | 2.515625 | 3 | [] | no_license | package mvc.webshop.web;
import mvc.webshop.domain.Product;
import mvc.webshop.service.ProductDTO;
import mvc.webshop.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.spr... | true |
e0a09e7c73a8df5a9aaedefcdcd95937cb82661e | Java | tomasabril/fp2-avaliacao-2014-1-3-grader | /src/test/java/utfpr/ct/dainf/grader/support/ClassEntry.java | UTF-8 | 2,008 | 2.84375 | 3 | [] | no_license | package utfpr.ct.dainf.grader.support;
import java.util.Objects;
/**
*
* @author Wilson
*/
public class ClassEntry {
private String pkg;
private String name;
public ClassEntry(String pkg, String name) {
this.pkg = pkg;
this.name = name;
}
public ClassEntry(String qcn) {
... | true |
a7e4a0271d1822317f35900a76b4aa6ad2b6147c | Java | bibigo2019/AUTOCAR_Project | /AutoCar/src/main/java/edu/autocar/monitor/broker/MjpegBroker.java | UTF-8 | 1,030 | 2.46875 | 2 | [] | no_license | package edu.autocar.monitor.broker;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Observer;
import org.springframework.stereotype.Component;
@Component
public class MjpegBroker {
Map<Integer, List<Obser... | true |
e93a60ec586bdbf79a733171d409657e9198fd8a | Java | rajeshkothari2506/meruhub | /order-service/src/main/java/com/meru/order/model/Cart.java | UTF-8 | 869 | 2.125 | 2 | [] | no_license | package com.meru.order.model;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;... | true |
ea126eb14e43ecfbd553a130b2135e2194b71023 | Java | naabin/Introdution-to-java-and-data-structures | /Chapter 15 (Event-Driven Programming and Anaimations)/src/com/practice/USMap.java | UTF-8 | 2,856 | 3.109375 | 3 | [] | no_license | package com.practice;
import java.net.URL;
import java.util.ArrayList;
import java.util.Scanner;
import javafx.application.Application;
import javafx.geometry.Point2D;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.input.KeyCode;
import javafx.scene.input.MouseButton;
import javafx.scene.la... | true |
a202c786423fb6d509a359e249e0a7119b8b78ff | Java | pp000301/Test_Java2 | /src/oop_Test/polymorphism/Mortaleable.java | UTF-8 | 90 | 2.03125 | 2 | [] | no_license | package oop_Test.polymorphism;
public interface Mortaleable {
boolean isAlive();
}
| true |
1e1df3a140c4487ea7b7248cde8c6de1ec3f6701 | Java | zhangshixiang2/zhangshix | /src/main/java/com/example/erzhou2/ui/base/Presenter/BasePresenter.java | UTF-8 | 442 | 2.171875 | 2 | [] | no_license | package com.example.erzhou2.ui.base.Presenter;
import com.example.erzhou2.ui.base.Contract.BaseContract;
public class BasePresenter<T extends BaseContract.BaseView> implements BaseContract.BasePresenter<T> {
protected T mView;
@Override
public void attchView(T view) {
this.mView = view;
}... | true |
7ee721dbb5edaf3be04630fac5954b09050de365 | Java | teoking/LeetBeer | /src/algo/tree/MaximumDepthOfBinaryTree.java | UTF-8 | 3,201 | 3.9375 | 4 | [] | no_license | package algo.tree;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
// LC 104: https://leetcode.com/problems/maximum-depth-of-binary-tree/
public class MaximumDepthOfBinaryTree {
/**
* Definition for a binary tree node.
* public class TreeNode {
... | true |
6eb16111626b171d19595553bbcbad19d54f0a86 | Java | bass0825cn/MyUtil | /src/com/project/model/Wzlymb.java | UTF-8 | 2,135 | 2.25 | 2 | [] | no_license | package com.project.model;
import com.sdc.connect.ConnectionPool;
import com.sdc.util.Enums;
import java.sql.SQLException;
/**
* wzlymb实体类
* Thu May 19 11:09:49 CST 2016 Song Da Cai Create
*/
public class Wzlymb extends BaseModel{
// 单据号
private String DJID;
// 单据类型
private String CLASS;
// 开单日期
private St... | true |
bd02cd6c0a4fdbfa6a70ba6497fb1c714a831555 | Java | envtlodger/data4Life | /src/test/java/com/hospital/repository/PatientRepositoryTest.java | UTF-8 | 908 | 2.375 | 2 | [] | no_license | package com.hospital.repository;
import com.hospital.model.Patient;
import io.micronaut.test.extensions.junit5.annotation.MicronautTest;
import jakarta.inject.Inject;
import org.junit.jupiter.api.Test;
import java.util.Optional;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jup... | true |
a840563d6f587ffe791fcb788aeaed008129cd32 | Java | xdutaotao/IPCamera | /app/src/main/java/com/rockchip/tutk/activity/VideoPlayerActivity.java | UTF-8 | 10,207 | 1.914063 | 2 | [] | no_license | package com.rockchip.tutk.activity;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.ActivityInfo;
import android.content.res.AssetFileDescriptor;
import android.content.r... | true |
ce638c0bfd287e976393ab4a4f091159ed1cd452 | Java | cameronkung/Practice | /PlayerTest-portlet/docroot/WEB-INF/src/com/liferay4u/PlayerTest.java | UTF-8 | 3,176 | 2.15625 | 2 | [] | no_license | package com.liferay4u;
import java.io.IOException;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
import javax.portlet.PortletException;
import com.liferay.portal.kernel.util.ParamUtil;
import c... | true |
432960aa81b5e813b29c8c8a031fb4566fd2f1b0 | Java | darshanp09/jms | /MessageProducer.java | UTF-8 | 58,878 | 1.921875 | 2 | [] | no_license | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 1997-2014 Oracle and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution Licens... | true |
0e3a8895d1fbf3d27388688136ea3a21923088a4 | Java | colorshifter/caaers | /caAERS/software/core/src/main/java/gov/nih/nci/cabig/caaers/domain/Hospitalization.java | UTF-8 | 2,570 | 2.46875 | 2 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*******************************************************************************
* Copyright SemanticBits, Northwestern University and Akaza Research
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/caaers/LICENSE.txt for details.
******************************************... | true |
e7ec502a4edf8c0e90df90fab55a2130bc14d48c | Java | ShazaHassan/GraduationProject | /app/src/main/java/com/example/shaza/graduationproject/Fragments/YourProduct.java | UTF-8 | 4,663 | 2.203125 | 2 | [] | no_license | package com.example.shaza.graduationproject.Fragments;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
impor... | true |
e00aff6b89319303ba475338672bb249e1d7d127 | Java | HeseltineBTutu/reviews | /src/main/java/com/udacity/course3/reviews/entity/Product.java | UTF-8 | 1,716 | 2.515625 | 3 | [] | no_license | package com.udacity.course3.reviews.entity;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.Set;
/**
* @Author Heseltine Tutu
*/
@Entity
@Table(name = "product")
public class Product {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id... | true |
593ba6d589056520130b44320aaeab2cd8422c27 | Java | SpaaaaceMan/ACM | /src/algorithms/StrategyKruskal.java | UTF-8 | 1,994 | 3.34375 | 3 | [] | no_license | package algorithms;
import java.util.ArrayList;
import GraphModel.Edge;
import GraphModel.Graph;
public class StrategyKruskal extends AbstractAlgo {
public Graph findACM(Graph graph) {
setMainGraph(graph);
createACM();
for (Edge e : edgesNotInACM) {
}
return null;
}
public void initACM() {
sort(... | true |
039cfed5efc858814e77ec0ad7a6e8a3f09edd65 | Java | Ajaodolapo1301/util | /app/src/main/java/com/example/myutils/utilities/DataPersistence.java | UTF-8 | 13,790 | 1.789063 | 2 | [] | no_license | package com.example.myutils.utilities;
import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;
import com.google.firebase.Timestamp;
import com.libramotors.libmot.data.model.FirebaseData;
import com.libramotors.libmot.data.model.Profile;
import java.io.File;
import java.uti... | true |
7a4711e0584b87c23705201a6a6974c9bd77cb62 | Java | AlphaWang/alpha-demo | /alpha-concurrency/src/main/java/com/alphawang/concurrency/c1_work/forkjoin/ForkJoinTest.java | UTF-8 | 2,618 | 3.609375 | 4 | [] | no_license | package com.alphawang.concurrency.c1_work.forkjoin;
import com.alphawang.concurrency.common.Printer;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.Future;
import java.util.concurrent.RecursiveTask;
public class ForkJoinTest {
public static v... | true |
d3eec2434a446be6bd24518906aaca8f55d5793f | Java | kaige0803/java-maven-project | /src/tutorial/java/com/opensourceteams/modules/common/作业/第九天/生产者和消费者3/Bear.java | UTF-8 | 1,068 | 3.1875 | 3 | [] | no_license | package com.opensourceteams.modules.common.作业.第九天.生产者和消费者3;
/**
* 开发者:刘文 Email:372065525@qq.com
* 16/3/6 下午12:27
* 功能描述: 消费者
*/
public class Bear extends Thread{
Pool pool;
private String name;
public Bear(Pool pool,String name){
this.pool = pool;
this.name = name;
}
@Ove... | true |
c39c46bffa1db2f46cf75839d45233ddb0d2d1af | Java | shawnimitch/PrintAnagrams | /HashTableA.java | UTF-8 | 2,516 | 3.765625 | 4 | [] | no_license | package PrintAnagrams;
public class HashTableA {
private String[] array;
private int m; //size of list
int n; //number of records
//Constructors
public HashTableA(){
this(11);
}
public HashTableA(int tableSize) {
m=tableSize;
array = new String[tableSize];
n=0;
}
//hash method
long hash(lo... | true |
49d473c915bb16eca0aa0f04f4cd2cc09f4c40fb | Java | isabella232/gmf-tooling | /examples/org.eclipse.gmf.examples.ocldriven/src/org/eclipse/gmf/examples/ocldriven/toe/TOEPackage.java | UTF-8 | 31,170 | 1.84375 | 2 | [] | no_license | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.eclipse.gmf.examples.ocldriven.toe;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
/**
* <!-- begin-user-doc -->
* The <b>Package</b> for the m... | true |
517abde3256647be01e756227ae346889450aaac | Java | Nickeron-dev/UATrainingPortal | /lesson09(AbstractClasses+Interfaces)/Worker.java | UTF-8 | 1,829 | 3.4375 | 3 | [
"Apache-2.0"
] | permissive | package classes;
public class Worker {
private String name;
private int age;
private String level;
public Worker() {
super();
}
public Worker(String name, int age, String level) {
this.name = name;
this.age = age;
... | true |
f40b47a3b05717c1d0db6b9a432bc18d245d63c2 | Java | Typersun/quiz-engine-servlets | /src/main/java/exceptions/QuizEngineException.java | UTF-8 | 311 | 1.851563 | 2 | [] | no_license | package exceptions;
import dto.errors.ErrorEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class QuizEngineException extends Exception {
private ErrorEntity errorEntity;
}
| true |
a383ff4e6de247f7b41a4c2591e0a36cf95e63b2 | Java | GilmarGS/LP2-UFCG | /colecoes/src/colecoes/Funcionarios.java | UTF-8 | 898 | 2.875 | 3 | [] | no_license | package colecoes;
public class Funcionarios {
private String nome;
private String cpf;
private double salario;
private String setor;
public Funcionarios(String nome, String cpf, double salario, String setor) {
this.nome = nome;
this.cpf = cpf;
this.salario = salario;
this.setor = setor;
}
public St... | true |
e2c5f44f8e9956d0cb9ca91bd09673a5ea182690 | Java | VolodymyrBohuslavskiy/RestaurantExecutiveSuiteAPI | /src/main/java/com/example/res/services/AccountService.java | UTF-8 | 820 | 2.1875 | 2 | [] | no_license | package com.example.res.services;
import com.example.res.DAO.AccountDAO;
import com.example.res.models.Account;
import com.example.res.models.AccountStatuse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
impor... | true |
9477bf6b173de411b396527c0837fc9a75752762 | Java | ktyagi/rest-Assured | /src/test/java/JavaIn.java | UTF-8 | 49 | 1.5 | 2 | [] | no_license | public interface JavaIn {
void printjava();
}
| true |
d4b1e24880e6d7aac0b6411f4f15aa225aa09a06 | Java | luthfiaziz17/PBOUlang-10116435-Latihan23-NilaiTerbesarDanTerkecil | /src/pboulang10116435latihan23nilaiterbesardanterkecil/PBOUlang10116435Latihan23NilaiTerbesarDanTerkecil.java | UTF-8 | 1,913 | 3.125 | 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 pboulang10116435latihan23nilaiterbesardanterkecil;
import java.util.Scanner;
/**
*
* @author Luthfi
* NIM : 101... | true |
9f9a7d1dd97d663284a249812a403cdf3504d39b | Java | 7158798/zuohao | /51szzc-new/src/com/ruizton/main/Enum/EntrustTypeEnum.java | UTF-8 | 905 | 2.5 | 2 | [] | no_license | package com.ruizton.main.Enum;
import com.ruizton.util.zuohao.LanguageUtil;
public class EntrustTypeEnum {
public static final int BUY = 0;//买
public static final int SELL = 1 ;//卖
public static String getEnumString(int value) {
String name = "";
if(value == BUY){
name = "买入";
}else if(value... | true |
5e534634b5b3cbd80e78011180b35356feedc9f0 | Java | sawal16/j8unit | /repository/src/test/java/org/j8unit/repository/javax/sound/sampled/CompoundControlClassTest.java | UTF-8 | 1,690 | 2.3125 | 2 | [] | no_license | package org.j8unit.repository.javax.sound.sampled;
import javax.sound.sampled.CompoundControl;
import javax.sound.sampled.CompoundControl.Type;
import org.j8unit.runners.J8Unit4;
import org.junit.runner.RunWith;
/**
* Specific JUnit test class to proof the type relevant aspects of type {@link CompoundControl} (by si... | true |
7c8c8cedd377736d807ac37dba0298a5432be756 | Java | thiagoalvesec/curso-java-basico | /src/com/loiane/cursojava/aula27/labs/Exercicio04.java | UTF-8 | 2,586 | 3.515625 | 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 com.loiane.cursojava.aula27.labs;
import java.util.Scanner;
/**
*
* @author thiago
*/
public class Exercicio04 {
... | true |
2eb219a370e4c64ea1e6e5e605865319bbd65537 | Java | xiongzhenhai-zh/javaWebBuild | /src/com/carejava/core/test/FollowStatistics.java | UTF-8 | 19,735 | 2.21875 | 2 | [] | no_license | package com.carejava.core.test;
import java.util.ArrayList;
import java.util.List;
import com.carejava.core.entry.DataSource;
import com.carejava.core.entry.Frame;
import com.carejava.core.entry.Function;
import com.carejava.core.entry.Model;
import com.carejava.core.entry.ModelAttribute;
import com.carejava.core.ent... | true |
f44d1efa73a47357c91bb47c184e106585ae5935 | Java | hasithalakmal/RIP | /RIP_UI/src/main/java/com/rip/rip_ui/core/popups/ForeignKeyWizard.java | UTF-8 | 8,059 | 2.09375 | 2 | [
"Apache-2.0"
] | 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 com.rip.rip_ui.core.popups;
import com.rip.rip_ui.core.data.ERData;
import com.rip.rip_ui.core.text.DataLabel;
import com.rip.... | true |
b426ef19daeedbf70552eff255cfaf4ae6d6c368 | Java | kiegroup/optaplanner | /core/optaplanner-core-impl/src/main/java/org/optaplanner/core/api/score/stream/DefaultTriConstraintCollector.java | UTF-8 | 1,269 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package org.optaplanner.core.api.score.stream;
import java.util.function.Function;
import java.util.function.Supplier;
import org.optaplanner.core.api.function.QuadFunction;
import org.optaplanner.core.api.score.stream.tri.TriConstraintCollector;
final class DefaultTriConstraintCollector<A, B, C, ResultContainer_, R... | true |