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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
1ebfbf4555c65eaa005150dba4d8cf52196bf8b9 | Java | apache/jackrabbit-oak | /oak-benchmarks/src/main/java/org/apache/jackrabbit/oak/scalability/ScalabilityRunner.java | UTF-8 | 10,057 | 1.671875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
ca026c65f99cd6e68d9bbceb2c2df8d174739344 | Java | rmzf9192/gy-b2b-svr | /src/main/b2b/com/el/logaop/LogAopService.java | UTF-8 | 1,481 | 2.125 | 2 | [] | no_license | /*
package com.el.logaop;
import com.el.b2b.domain.So;
import com.el.b2b.domain.SoD;
import com.el.b2b.domain.SoObject;
import com.el.b2b.mapper.SoDMapper;
import com.el.b2b.service.SoService;
import com.el.edp.util.StringUtils;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.a... | true |
ee2b049db9609d03c71fe37e4e4b256e9dab81c6 | Java | dvlp-news/dvlpTrunk | /library/src/main/java/com/qianyilc/library/util/FileUtils.java | UTF-8 | 11,119 | 2.921875 | 3 | [] | no_license | package com.qianyilc.library.util;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import android.content.Context;
import android.os.Environment;
public class FileUtils {
private Strin... | true |
5bb25d63d84e45ecb90249b36554c1d82b618dec | Java | agrawald/unico | /src/main/java/com/unico/service/SoapWSService.java | UTF-8 | 2,043 | 2.5 | 2 | [] | no_license | package com.unico.service;
import com.unico.jms.JMSConnection;
import com.unico.jms.JMSConsumer;
import com.unico.jms.JMSMessage;
import org.jboss.logging.Logger;
import javax.jms.JMSException;
import javax.jws.WebMethod;
import javax.jws.WebResult;
import javax.jws.WebService;
import java.math.BigInteger;
import jav... | true |
4ff01e9b8c6f7198ffa8757a0d07381e90d73454 | Java | ligoj/plugin-bt-jira | /src/test/java/org/ligoj/app/plugin/bt/jira/in/JiraImportPluginResourceTest.java | UTF-8 | 29,430 | 1.710938 | 2 | [
"MIT"
] | permissive | /*
* Licensed under MIT (https://github.com/ligoj/ligoj/blob/master/LICENSE)
*/
package org.ligoj.app.plugin.bt.jira.in;
import jakarta.validation.ConstraintViolationException;
import org.hsqldb.lib.StringInputStream;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.ligoj.app.p... | true |
eb039588485a590a25580e504ff5f3565e0ca2d9 | Java | JuniorGuilherme/TechLabERP | /TechLabERP/src/model/dao/CategoriaDAO.java | UTF-8 | 1,971 | 2.71875 | 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 model.dao;
import connection.ConexaoBD;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.s... | true |
693b6282239b37a5f06786389604018dd1813cf8 | Java | Bi11ions/roxwang-algorithm | /road-to-offer/src/main/java/com/roxwang/alogrithms_4th/search/BasicBST.java | UTF-8 | 7,589 | 3.4375 | 3 | [] | no_license | package com.roxwang.alogrithms_4th.search;
import com.roxwang.alogrithms_4th.basic.Queue;
import java.util.Objects;
/**
* 基础版 BST,存放公共方法
*
* @author Bi11ions
* @description TODO
* @date 2021/3/9 17:04
*/
public class BasicBST<Key extends Comparable<Key>, Value> {
protected Node root; // 根节点
/**
*... | true |
a87b759d1f28c5ad439ebacec6e1257cc0eaa7a2 | Java | nathanngabc/Minesweeper | /MineSwpper/src/game/Tile.java | UTF-8 | 907 | 2.484375 | 2 | [] | no_license | package game;
public class Tile {
private Boolean searchFlag;
private Boolean doneFlag;
private int number;
private Boolean opened;
private Boolean flag;
public Tile () {
number = minesAround();
searchFlag = false;
doneFlag = false;
opened = false;
flag = false;
}
public void setFlag (Boolean n) ... | true |
4113eeda3ba35223a042075f9f3ff6442e9fd64c | Java | universe-match/universe-server | /src/main/java/com/univer/universerver/source/pushnoti/service/NotificationService.java | UTF-8 | 1,065 | 2.15625 | 2 | [] | no_license | package com.univer.universerver.source.pushnoti.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.stereotype.Service;
import java.util.concurrent.CompletableFuture;
@Service
publi... | true |
a285f4e255cf8404ad150c3109d06b6ddd671128 | Java | gregmoua19/War | /Player.java | UTF-8 | 1,791 | 3.625 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.Collections;
/**
*
* @author Greg
*
*/
public class Player {
private ArrayList<String> hand = new ArrayList<String>(0);
private static int counter = 0;
private String name;
public ArrayList<String> getHand() {
return hand;
}
public Player(Stri... | true |
815c835752a2bfd4daa86a13813b466716d170ea | Java | prakharpradhan/pizza-ordering-system-sprint5 | /pos/src/main/java/com/cg/pos/dao/CartDao.java | UTF-8 | 619 | 2.140625 | 2 | [] | no_license | package com.cg.pos.dao;
import com.cg.pos.dto.CartDetails;
import com.cg.pos.dto.OrderDetails;
import com.cg.pos.exceptions.PizzaException;
/**
* Cart Dao Interface
*
* @author Prakhar
*
*/
public interface CartDao {
int addToCart(CartDetails cart) throws PizzaException;
int checkDb(int item... | true |
c4b9391c42565f58e7c3d80c4bd7fffb3a4d1b28 | Java | TheKojuEffect/OpERP | /OpERP/src/main/java/devopsdistilled/operp/server/data/service/EntityService.java | UTF-8 | 537 | 1.960938 | 2 | [
"MIT"
] | permissive | package devopsdistilled.operp.server.data.service;
import java.io.Serializable;
import org.springframework.data.jpa.repository.JpaRepository;
import devopsdistilled.operp.server.data.entity.Entiti;
public interface EntityService<E extends Entiti<?>, ID extends Serializable>
extends JpaRepository<E, ID>, Serializa... | true |
ea58ac6fa156a8df5038b10f7fc33d74e7c8f570 | Java | DevCoop-code/MemorySharingApp | /app/src/main/java/com/androidgamedev/com/reminiscence/OtherMemorysFragment.java | UTF-8 | 7,790 | 1.820313 | 2 | [] | no_license | package com.androidgamedev.com.reminiscence;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.Fragment;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
im... | true |
35a9f2c15e693e7f83e80a7b7ad0791be80d73af | Java | Mukul2015/BDD_Cucumber | /Amazon/src/main/java/accountList/AccountList.java | UTF-8 | 4,707 | 1.976563 | 2 | [] | no_license | package accountList;
import common.WebAPI;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.support.FindBy;
import org.testng.Assert;
import static accountList.AccountListWebElements.*;
public class AccountList extends WebAPI {
@FindBy(xpath= accou... | true |
1883746fd247d6274787dd9c18ec42160fe43b23 | Java | ChelseaYijunChen/Homes | /app/src/main/java/com/example/yijunchen/homes/fragments/AddPropertyFragment.java | UTF-8 | 8,427 | 1.875 | 2 | [] | no_license | package com.example.yijunchen.homes.fragments;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
... | true |
62785d4d5a2ad0a7e03baf6a392a9d7806eb7ad9 | Java | akutschera/skip-test-maven-plugin | /src/test/java/com/github/akutschera/maven/plugin/skiptest/PreSkipTestMojoTest.java | UTF-8 | 6,151 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015 Andreas Kutschera
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | true |
a185b1b196c3bf75c72eee67a02dfa5f1cd8965c | Java | msandaa/TrajViz | /src/main/java/org/msandaa/model/Move.java | UTF-8 | 2,569 | 2.8125 | 3 | [] | no_license | package org.msandaa.model;
import java.util.Date;
public class Move implements Comparable<Move> {
public final String id;
public final Trajectory trajectory;
public final Path path;
public final Date startTime;
public final Date endTime;
public final long timedifferenzInMilliSecs;
public final double speedInM... | true |
c0e7e57f5bd8a6e4a52e728d3501f2b8f9e78465 | Java | qinxinddv/appointment | /src/main/java/com/bank/domain/Org.java | UTF-8 | 4,540 | 2.234375 | 2 | [] | no_license | package com.bank.domain;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import javax.persistence.*;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
/**
* 机构表
*/
@Entity
@Table(name = "org")
@Cache(usage = CacheConcurrencyStrategy.NON... | true |
23c40d979b2a406f0f0702f25c124e61f9d70e21 | Java | javJoker/JavaDemo | /src/main/java/com/self/demo/basicType/StringTest.java | UTF-8 | 2,841 | 3.46875 | 3 | [] | no_license | package com.self.demo.basicType;
public class StringTest {
public static void main(String[] args) {
// test4();
// test3();
// test2();
// test1();
}
private static void test4() {
String a = "1234567";
char[] chars = a.toCharArray();
for (char... | true |
0badca2f3f4aeea17846fed0997717f39f781d32 | Java | xowns0509/05.Java_Workplace | /160324_Thu/src/Th03_ABCDmain.java | UTF-8 | 1,168 | 3.34375 | 3 | [] | no_license | public class Th03_ABCDmain{
public static void main(String [] args){
// Th03_Book b1 = new Th03_Book("0001", "그것이 자바", "난자바");
// b1.output();
// Th03_Book b = new Th03_Book(); //자동으로 삽입되는 super에 의해 atem의 인자 없는 놈이 불려
// b.output();
Th03_Book b1 = new Th03_Book(); //이렇게 인자를 줘도 book의 각 생성자마다 자동으로 삽입... | true |
3152f5f333a7d25ff6579e7a32ea4c7d52e6f0f6 | Java | Jibny/design-pattern | /src/main/java/top/shmly/design/created/singleton/s5/Singleton.java | UTF-8 | 573 | 3.359375 | 3 | [] | no_license | package top.shmly.design.created.singleton.s5;
/**
* @Auther: Jibny Zhan
* @Date: 2019/9/12 17:10
* @Description:静态内部类实现(推荐)
*/
public class Singleton {
private static int count;
private Singleton() {
System.out.println("Singleton 私有的构造方法被实例化 " + (++count) + " 次。");
}
private static class... | true |
b39d564d8c072894a9eca7b4ad25488f8d6df0a3 | Java | learning-layers/LivingDocumentsServer | /ld-core/src/test/java/de/hska/ld/core/ResponseHelper.java | UTF-8 | 2,862 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package de.hska.ld.core;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.commons.io.IOUtils;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.ju... | true |
16dc4c0ca3fc6695a990b984b2fc1d141b8efa57 | Java | imgaryyang/campus | /src/com/gzzm/ods/flow/OdFlowInstanceManager.java | UTF-8 | 2,366 | 2.078125 | 2 | [] | no_license | package com.gzzm.ods.flow;
import com.gzzm.platform.commons.Tools;
import com.gzzm.platform.commons.crud.PageTableView;
import com.gzzm.platform.flow.*;
import net.cyan.arachne.annotation.Service;
import net.cyan.commons.transaction.Transactional;
import net.cyan.commons.util.StringUtils;
import net.cyan.nest.annotati... | true |
f00f79b0914b3852381327f44f3f53e7fc035d55 | Java | sandeepkunkunuru/Coding-Exercises | /src/main/java/me/tingri/problemsolving/MergeTwoSortedArrays.java | UTF-8 | 1,795 | 3.828125 | 4 | [] | no_license | package me.tingri.problemsolving;
import java.util.Arrays;
/**
* You are given two sorted arrays, A and B, and A has a large enough buffer at
* the end to hold B. Write a method to merge B into A in sorted order.
*/
public class MergeTwoSortedArrays {
public static void main(String[] s) {
int[] array1 = { 1, ... | true |
1a91b83c41b056ed94e88e5be51346eed487883f | Java | yemer/splash-screen | /MyApplication/app/src/main/java/com/example/alumno/myapplication/models/User.java | UTF-8 | 1,245 | 2.921875 | 3 | [] | no_license | package com.example.alumno.myapplication.models;
import java.lang.reflect.Array;
public class User {
private String username;
private String password;
private String firstName;
private String LastName;
public static User fingUserByUsername(Array<User>users,String username){
St... | true |
dea45faaddb8b51fb52f9fe4e6285f9dc76fcf4f | Java | MaouLim/WifiDirectChat | /app/src/main/java/bupt/wifidirectchat/networks/wifi/WifiP2pStateListener.java | UTF-8 | 1,984 | 2.28125 | 2 | [] | no_license | package bupt.wifidirectchat.networks.wifi;
/*
* Created by Maou on 2017/7/5.
*/
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.NetworkInfo;
import android.net.wifi.p2p.WifiP2pDevice;
import android.net.wifi.p2p.WifiP2pManager;
import andro... | true |
74759df29c539c3679b352095a2c323b07ab42a3 | Java | JetBrains/intellij-community | /platform/lang-impl/src/com/intellij/codeInspection/actions/InspectionElement.java | UTF-8 | 1,713 | 1.921875 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.codeInspection.actions;
import com.intellij.codeInspection.ex.InspectionToolWrapper;
import com.intellij.navigation.ItemPresentation;
import com.intellij.psi.PsiElement;
import ... | true |
7d9ab80d90ec69ba2f71c3fbb0b45410826eb97d | Java | yunjs24/copang-backend | /src/main/java/com/alconn/copang/cart/CartRepository.java | UTF-8 | 250 | 1.757813 | 2 | [] | no_license | package com.alconn.copang.cart;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;
public interface CartRepository extends JpaRepository<Cart, Long> {
Optional<Cart> findCartByClientId(Long clientId);
}
| true |
ab47b01f4d57a8be8f3d88f87705c18dcb775788 | Java | yehyaabdelazize/galisa | /app/src/main/java/com/example/galisa/pojo/request/CheckAnswer_request.java | UTF-8 | 836 | 2.109375 | 2 | [] | no_license | package com.example.galisa.pojo.request;
import java.util.List;
public class CheckAnswer_request {
int setter_id;
List<AnswerModel>list;
public int getSetter_id() {
return setter_id;
}
public void setSetter_id(int setter_id) {
this.setter_id = setter_id;
}
public List<... | true |
74497d049f58b08e3a450cac021d21948b1c6a9e | Java | fracz/refactor-extractor | /results-java/neo4j--neo4j/5cd8227fcf139e777c096d97ca016cda84a8de7a/after/CompositeStatementContextTest.java | UTF-8 | 7,712 | 2.1875 | 2 | [] | no_license | /**
* Copyright (c) 2002-2013 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundati... | true |
a0ef725fc7caaa5ed0da272aedbf30e6e4f2fc0f | Java | LeticiaBurla/Parte1 | /src/Controller/Screen.java | UTF-8 | 12,768 | 2.984375 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* Screen.java
*
* Created on 03/03/2011, 18:28:20
*/
package Controller;
import Model.*;
import Auxiliar.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.util.*;
import java.util.Tim... | true |
a7c7b2e17debfec05f1e838ce8064879429fb1ad | Java | dagenator/ShoppingListSpringMVC | /src/main/java/com/SpringMVC/controller/AddController.java | UTF-8 | 698 | 2.203125 | 2 | [] | no_license | package com.SpringMVC.controller;
import com.SpringMVC.model.ShoppingList;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.b... | true |
413c1b9770affa80fe7851b4f41baa89334849a1 | Java | 88431844/wordgame | /src/main/java/service/WordService.java | UTF-8 | 777 | 2 | 2 | [] | no_license | package service;
import dto.ChildWordDto;
import dto.WordInfoDto;
import dto.WordRoomDto;
import entity.WordInfo;
import entity.WordRoom;
import java.util.List;
public interface WordService {
int haveWordRoom(String wordRoomName);
void addWordRoom(String wordRoomName);
void delWordRoom(int id);
void editW... | true |
1bd301379a6bd918e86ffc839d35c7b9d9cbd916 | Java | rajmuthukrishnan/JavaExamples | /Aggregation/hdfcaggr.java | UTF-8 | 339 | 2.796875 | 3 | [] | no_license | class hdfcaggr {
String name;
String branch;
address addr;
// Parameterized contructor
hdfcaggr(String name, String branch, address addr){
this.name = name;
this.branch = branch;
this.addr = addr;
}
//Method
void displayDetails(){
System.out.println ("Bank Name :"+name + "Branch Name :"+branch);
addr.show... | true |
617a79cd947119da1ede3cea5aafd2bfadf19d4c | Java | testRepositorySH/nasa_demo_web | /src/test/java/com/stepDef/BeforeHook.java | UTF-8 | 376 | 2.03125 | 2 | [] | no_license | package com.stepDef;
import cucumber.api.Scenario;
import cucumber.api.java.Before;
import util.SeleniumHelper;
public class BeforeHook {
public Scenario scenario;
@Before
public void setUp(Scenario scenario) throws Exception {
this.scenario = scenario;
//SeleniumHelper.setUpDriver();
System.out.println... | true |
6b54dafe9c30bd1ef7f2582b385bfcd9c1902494 | Java | wanjing0401/hellogit | /src/main/java/com/lxw/entity/Class.java | UTF-8 | 712 | 1.890625 | 2 | [] | no_license | package com.lxw.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
*
* </p>
*
* @author lxw
* @since 2020-12-30
*/
@Da... | true |
bd37c98b9eddd92da99dae9443878ac302e7677d | Java | ami16/p5 | /src/main/java/edu/cursor/dao/IBookRepo.java | UTF-8 | 246 | 1.609375 | 2 | [] | no_license | package edu.cursor.dao;
import edu.cursor.model.Book;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface IBookRepo extends JpaRepository<Book, Long> {
} | true |
b9dc00f03b9c31b6af1fefa2d58d11f1ec9c72d1 | Java | Topi99/Votaciones | /app/src/main/java/moviles/curso/app/topihernandez/com/cardview/NuevoPartido.java | UTF-8 | 7,375 | 1.835938 | 2 | [] | no_license | package moviles.curso.app.topihernandez.com.cardview;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import and... | true |
6c784b0812936404acdc8c9cb64c780c03ae6e1c | Java | erikhric/WeeR-Android | /app/src/main/java/sk/kebapp/weer/application/HeadData.java | UTF-8 | 6,487 | 2.46875 | 2 | [] | no_license | package sk.kebapp.weer.application;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import com.google.vrtoolkit.cardboard.HeadTransform;
import com.google.vrtoolkit.cardboard.sensor... | true |
36b16e35e6220f6a03232d34d74699769536ed91 | Java | JAfanadorOchoa/MasivTechnicalTest | /CleanCodeMasiv/src/main/java/com/masiv/model/Roulette.java | UTF-8 | 749 | 2.234375 | 2 | [] | no_license | package com.masiv.model;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;
@Document(collection = "roulette")
public class Roulette {
@Transient
public static final String SEQUENCE_NAME = "user... | true |
164f1950eab3daa8920f0d162613d9dbb7b43dd3 | Java | SkipToYourSoul/data-camera | /data-camera-web/src/main/java/com/stemcloud/liye/dc/domain/config/SensorConfig.java | UTF-8 | 1,203 | 2.09375 | 2 | [] | no_license | package com.stemcloud.liye.dc.domain.config;
import javax.persistence.*;
/**
* Belongs to smart-sensor
* Author: liye on 2017/9/20
* Description: base_sensor_config
* @author liye
*/
@Entity
@Table(name = "dc_base_sensor_config")
public class SensorConfig {
@Id
@GeneratedValue
private long id;
@... | true |
556c534eedfa5652c21897f506570c9eb5f1ef47 | Java | DanielRozov/saskaitu-valdymas | /saskaitu-valdymas/src/main/java/lt/vtvpmc/invoice/saskaituvaldymas/models/SaskFaktura.java | UTF-8 | 1,915 | 2.046875 | 2 | [] | no_license | package lt.vtvpmc.invoice.saskaituvaldymas.models;
import java.util.Date;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Temporal;
import... | true |
a21ace4eaf0cff5e3757d4a93f26a4e971770884 | Java | ttran9/ppmtool-backend | /src/main/java/tran/example/ppmtool/constants/mapping/MappingConstants.java | UTF-8 | 391 | 1.523438 | 2 | [] | no_license | package tran.example.ppmtool.constants.mapping;
public class MappingConstants {
public static final String URLS_REGEX = "^\\/[a-zA-Z]+\\/{0,1}$";
public static final String PB_UPT_REGEX = "\\/[a-zA-Z]+\\/[a-zA-Z0-9]{1,5}";
public static final String CONFIRM_REGISTRATION_URL = "/confirmRegistration/";
... | true |
cd06f58340984aa252e25ae308d804be0c3391ed | Java | KayLerch/alexa-skills-kit-tellask-java | /src/main/java/io/klerch/alexa/tellask/util/factory/AlexaIntentHandlerFactory.java | UTF-8 | 2,672 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | /**
* Created by Kay Lerch (https://twitter.com/KayLerch)
*
* Contribute to https://github.com/KayLerch/alexa-skills-kit-tellask-java
*
* Attached license applies.
* This source is licensed under GNU GENERAL PUBLIC LICENSE Version 3 as of 29 June 2007
*/
package io.klerch.alexa.tellask.util.factory;
import io.k... | true |
115754fab1a0e9278e41584515e6d62e3b0e1cea | Java | chenfangzhi123/javainaction | /rabbit-mq-spring-boot/src/test/java/org/yuanfang/rabbit/consumer/CunsumerWithNoneTest.java | UTF-8 | 1,704 | 2.421875 | 2 | [] | no_license | package org.yuanfang.rabbit.consumer;
import lombok.SneakyThrows;
import org.junit.Test;
import org.springframework.amqp.core.AcknowledgeMode;
import org.springframework.test.context.ActiveProfiles;
import org.yuanfang.BaseTest;
import org.yuanfang.rabbit.common.constant.RabbitMQConstant;
import org.yuanfang.rabbit.co... | true |
c2bf9223e87b0df6a37e59fee8a6f774abfd2267 | Java | nakulkumar/ClinicApp | /src/main/java/clinic/util/Constants.java | UTF-8 | 1,286 | 2.046875 | 2 | [] | no_license | package clinic.util;
public class Constants {
/* Used by the different scopes */
public static String IS_AUTHENTICATED = "is_auth";
public static String IS_LOGINERROR = "is_loginerror";
public static String CLINICID = "clinicid";
public static String USERINFO = "userinfo";
public static String CURRWORKSPACE = "c... | true |
41a464a9a6a3404660425174f86628e3cc2603e7 | Java | zluo2/CS465 | /Assignment2/Phone.java | UTF-8 | 2,063 | 3.40625 | 3 | [] | no_license |
public class Phone {
public final static int ROWS = 4;
public final static int COLS = 3;
public int tour(final int x, final int y, final int length) {
int total = 0;
if ((x == 3 && y != 1)) {
// A symbol
return total;
} else if(length == 7) {
r... | true |
61888c2900782acd7b6219d155777c7aa6719943 | Java | chaturya12/LabAssignment_Chaturya | /Lab3_assignment/ReplacingConsonants.java | UTF-8 | 977 | 3.671875 | 4 | [] | no_license | /**
Author: chaturya
Date : 26/10/2020
Desc : replacing cosonants with its next alphabet
*/import java.util.*;
public class ReplacingConsonants {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.println("Enter the string:");
String str=sc.next();
System.out... | true |
a5e5c3de37b4ea443122040e06e7ace565ae0463 | Java | AndrewTkachuk66/junit_learning | /src/main/java/fahrenheit_eclcius_converter/FahrenheitCelciusConverter.java | UTF-8 | 499 | 3.03125 | 3 | [] | no_license | package fahrenheit_eclcius_converter;
public class FahrenheitCelciusConverter {
public static final float FOR_FAR_COEFICIENT = 1.8f;
public static final float FOR_CEL_COEFICIENT = 0.5555555555555556f;
public int toFahrenheit(int poCel){
int result = (int) (poCel * FOR_FAR_COEFICIENT + 32);... | true |
b9746bd61f50ee5dfa334e6d9aab7a830d4603b2 | Java | chocolatenate/Healthy | /app/src/main/java/com/example/lab203_30/healthy/weight/WeightAdapter.java | UTF-8 | 2,104 | 2.390625 | 2 | [] | no_license | package com.example.lab203_30.healthy.weight;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Te... | true |
7c2bb384eae22b919ce52747d3549e04f65e0bc3 | Java | apavluks/mowo | /Mowo2/src/com/cummins/mowo/utils/MowoList.java | UTF-8 | 277 | 2.234375 | 2 | [] | no_license | package com.cummins.mowo.utils;
import java.util.ArrayList;
public abstract class MowoList extends ArrayList<Object> implements Idable {
private int id;
public MowoList() {
super();
this.id = IdGenerator.generate();
}
public int getObjectId() {
return id;
}
}
| true |
ebd18192d24fb35d2c00fd1eee351a0db19f8c6c | Java | blutkind/MPS | /languages/util/extensionMethod/source_gen/jetbrains/mps/baseLanguage/extensionMethods/editor/ExtensionMethodCall_Editor.java | UTF-8 | 5,263 | 1.695313 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | package jetbrains.mps.baseLanguage.extensionMethods.editor;
/*Generated by MPS */
import jetbrains.mps.nodeEditor.DefaultNodeEditor;
import jetbrains.mps.nodeEditor.cells.EditorCell;
import jetbrains.mps.nodeEditor.EditorContext;
import jetbrains.mps.smodel.SNode;
import jetbrains.mps.nodeEditor.cells.EditorCell_Coll... | true |
07a074bec08e9049cc816e551b35213c9202d4e3 | Java | yhc3l-java-1517/java-grundkurs | /lectures/5_more_data_types_and_operators/exercises/filename/Filename.java | UTF-8 | 506 | 3.140625 | 3 | [] | no_license | class Filename {
String fullPath;
char pathSeparator,
extensionSeparator;
Filename(String str, char sep, char ext) {
fullPath = str;
pathSeparator = sep;
extensionSeparator = ext;
}
// get the type of file it is ie. the characters after the extension seperator
... | true |
0925d568ea0d0bbd406536ea9bdbddc711f4e1ca | Java | strolch-li/strolch | /model/src/test/java/li/strolch/model/ModelMarshallingTest.java | UTF-8 | 2,087 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | package li.strolch.model;
import static org.junit.Assert.assertEquals;
import li.strolch.model.activity.Activity;
import li.strolch.model.activity.TimeOrdering;
import org.junit.Test;
public abstract class ModelMarshallingTest {
@Test
public void shouldFormatAndParseOrder() throws Exception {
Order order = Mode... | true |
b2309abf815f6c591f5ad7b89d0a0b8d070754d3 | Java | luciomuramatsu/java_projects | /eclipse-worspace/HelloJavaFX/src/LeetCode/BinarySearch.java | UTF-8 | 1,389 | 3.5 | 4 | [] | no_license | package LeetCode;
import java.util.List;
import java.util.Arrays;
public class BinarySearch {
public static int binarySearch(List<Integer> list, int target,
int left, int right){
if (target < list.get(0) || target > list.get(list.size()-1)){
return -1;
}
int midPoint = (right - left)/2... | true |
f01fd8c3743117747abc69cfd94fc4fcd570ee0f | Java | jacekkrk/jacek | /src/main/java/Zadanko.java | UTF-8 | 754 | 3.484375 | 3 | [] | no_license | import java.util.Scanner;
public class Zadanko {
public static void main(String[] args) {
Scanner insertNumber = new Scanner(System.in);
int[] tablica = new int[]{1, 3, 4, 6, 8, 9, 12};
int tabTemp, tabTemp1;
for (int i : tablica) {
System.out.print(i + " ");
}... | true |
42aa3077ad9e8eaedc3ce428562e514057be3dc1 | Java | gmfcastro/cookyourself | /cookyourself/src/main/java/br/edu/unifei/cookyourself/dao/CommentDAO.java | UTF-8 | 848 | 2.296875 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package br.edu.unifei.cookyourself.dao;
import br.com.caelum.vraptor.ioc.Component;
import br.edu.unifei.cookyourself.model.Comment;
... | true |
df349553308706bb3fbb6dc34349d02b166ab155 | Java | ubicapartes/ubicapartes-back | /src/main/java/com/okiimport/app/dao/configuracion/ConfiguracionRepository.java | UTF-8 | 317 | 1.554688 | 2 | [] | no_license | package com.okiimport.app.dao.configuracion;
import org.springframework.stereotype.Repository;
import com.okiimport.app.model.Configuracion;
import com.okiimport.app.resource.dao.IGenericJPARepository;
@Repository
public interface ConfiguracionRepository extends IGenericJPARepository<Configuracion, Integer> {
}
| true |
f1815199111feb4455942ea533df6cfa336f158b | Java | ahnd38/NoraSeries | /src/NoraCommon/src/main/java/org/jp/illg/util/socketio/napi/SocketIOHandlerWithThread.java | UTF-8 | 6,682 | 2.078125 | 2 | [
"MIT"
] | permissive | package org.jp.illg.util.socketio.napi;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.SelectableChannel;
import java.nio.channels.SelectionKey;
import java.util.concurrent.TimeUnit;
import org.jp.illg.util.socketio.SocketIO;
import org.jp.illg.util.socketio.SocketIO.SocketIOP... | true |
adec69dcc62ad2e6f832d449857e062e589cd788 | Java | byference/blog-samples | /others/samples-without-db/src/main/java/com/github/byference/samples/controller/AsyncController.java | UTF-8 | 1,400 | 2.34375 | 2 | [] | no_license | package com.github.byference.samples.controller;
import com.github.byference.samples.service.AsyncService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestC... | true |
76ac594ea71fc55dab9772050273040e21a51553 | Java | agarwal-abhi/codeFuryProject | /Bug Tracking System/src/com/project/ifaces/UserDAO.java | UTF-8 | 673 | 2.1875 | 2 | [] | no_license | package com.project.ifaces;
import java.sql.SQLException;
import java.sql.Timestamp;
/**
* @author Madhura Satao
* @author Aishwarya Thakur
* @author Gayatri Walve
*User DAO
*
*/
import com.project.entity.User;
public interface UserDAO extends DAO<User> {
boolean exists(String userEmail,... | true |
390047a8b672a46dcc5b0c9da2938d4d99837ed9 | Java | svenefftinge/intellij-community | /platform/vcs-log/graph/src/com/intellij/vcs/log/graph/impl/facade/bek/DelegatedPermanentGraphInfo.java | UTF-8 | 5,184 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | true |
61cdffcfb4bf6f9c4e8905f54d75602a30d2a78b | Java | shuzhen123/huijingschool | /LiveAdmin/src/main/java/dianfan/service/agent/AgentIndexService.java | UTF-8 | 7,039 | 2.390625 | 2 | [] | no_license | package dianfan.service.agent;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.YearMonth;
import java.time.ZoneId;
import java.time.Zoned... | true |
e61adb98aa161b688fd129699d4349defb314a19 | Java | pakdel/Clouderandroid | /app/src/main/java/com/amirpakdel/clouderandroid/BasePlotsLayout.java | UTF-8 | 1,232 | 2.46875 | 2 | [] | no_license | package com.amirpakdel.clouderandroid;
import android.content.Context;
import android.widget.LinearLayout;
import java.util.LinkedList;
import java.util.List;
/**
* Created by amir on 11/13/14.
*/
public abstract class BasePlotsLayout extends LinearLayout {
List<BasePlot> plots;
public BasePlotsLayout(Con... | true |
22dd06f33e247339d11077be8e140ce8dba20e14 | Java | mcarov/spring-mvc-test | /src/main/java/ru/itpark/service/CompanyService.java | UTF-8 | 1,094 | 2.140625 | 2 | [] | no_license | package ru.itpark.service;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import ru.itpark.domain.ProductionCompany;
import ru.itpark.repository.CompanyRepository;
import java.util.List;
import static ru.itpark.Constants.LIST_SIZE;
@Service
@RequiredArgsConstructor
public clas... | true |
343e74e71eb7fbc6cfe051d9e45f12ba5fd19ad1 | Java | RobertShev/t02klass | /andmed.java | UTF-8 | 653 | 2.640625 | 3 | [] | no_license | public class andmed {
protected String koht;
public andmed(String koht) {
this.koht = koht;
}
public String arvestus() {
int arvestus = Integer.parseInt(koht);
String tulemus="";
if (arvestus == 1){
tulemus = "10 pun... | true |
18c187eba613c60c0828485ec703e5d537ecb3ee | Java | ADVavvas/DiscordBot | /friend-bot/src/main/java/DiscordBot/friend_bot/MessageCommands.java | UTF-8 | 6,316 | 2.34375 | 2 | [] | no_license | package DiscordBot.friend_bot;
import java.util.Random;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import javax.security.auth.login.LoginException;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
im... | true |
c3ed4f760292e542e8a20689c3740b64cd65465b | Java | byeoungsang/habakgoguma | /bootstrapfinal (1)/src/com/soccerman/controller/BizpollFrontController.java | UTF-8 | 6,584 | 2.09375 | 2 | [] | no_license | package com.soccerman.controller;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
... | true |
a0ac3cf9edffeb4f58eebc5ca2746bffcf638b3e | Java | vchiranjeevi/shoppingcart | /demo-1/src/main/java/com/sbhol/service/impl/ProductServiceImpl.java | UTF-8 | 3,849 | 2.53125 | 3 | [] | no_license | /**
*
*/
package com.sbhol.service.impl;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sbhol.entity.Appa... | true |
f55e826e3f0180491ecec156509cd9200532654b | Java | VineshChauhan24/Mobile-Desktop-Web-App | /Desktop/Watchable/.svn/pristine/f5/f55e826e3f0180491ecec156509cd9200532654b.svn-base | UTF-8 | 2,938 | 2.265625 | 2 | [] | no_license | package comcast.test.app.testCases.footerLink;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.openqa.selenium.By;
import comcast.test.app.common.XpathObjectRepo;
import comcast.test.app.common.AssertionRepo.common.AssertionRepoFunctions;
import comcast.test.app.common.commonFun... | true |
71e55496e3841c28a75e04645f56cc05602f4e7f | Java | LICHUPENG/blog-manager | /src/main/java/com/lcp/blog/common/utils/AppFunction.java | UTF-8 | 5,854 | 2.75 | 3 | [
"MIT"
] | permissive | package com.lcp.blog.common.utils;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import java.beans.BeanInfo;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Method;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmE... | true |
a9c56d563fdd0db5bac1dee452a882f064bf7520 | Java | umairm929/SEGP_6 | /SEGP/src/UpdateInfo.java | UTF-8 | 1,789 | 2.578125 | 3 | [] | no_license | import javax.swing.JFrame;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class UpdateInfo extends JFrame {
private JTextField tfAddress;
private JTextField tfContact;
public void guiHide... | true |
fc8d87aa9aee5c112ceac0c273395e757dd76c5e | Java | wangyongxing/spring-mvc | /lasha/src/com/yaowang/lansha/dao/impl/YwUserDaoImpl.java | UTF-8 | 20,673 | 1.914063 | 2 | [] | no_license | package com.yaowang.lansha.dao.impl;
import com.yaowang.common.dao.BaseDaoImpl;
import com.yaowang.common.dao.PageDto;
import com.yaowang.common.dao.SQLUtils;
import com.yaowang.lansha.common.constant.LanshaConstant;
import com.yaowang.lansha.dao.YwUserDao;
import com.yaowang.lansha.entity.YwUser;
import com.yaowang.u... | true |
dbdabb2a965b81b1ddb0f80e1c9c09198c175534 | Java | ttoktassynov/DesignPatterns | /src/behavorial_patterns/observer/RadioStation.java | UTF-8 | 674 | 3.515625 | 4 | [] | no_license | package behavorial_patterns.observer;
import java.util.ArrayList;
import java.util.List;
public class RadioStation implements Subject {
private int goldenNumber = 3;
List<Observer> observerList = new ArrayList<>();
@Override
public void registerObserver(Observer o) {
observerList.add(o);
... | true |
1fc84758ffc307889cbfe3712e7ae0a73691bce2 | Java | MahmoudAyari/tp2Gli | /src/main/java/view/ViewImpl.java | UTF-8 | 2,794 | 2.859375 | 3 | [] | no_license | package view;
import controller.Controller;
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.geometry.Pos;
import javafx.scene.Node;
import javafx.scene.Parent;
import java... | true |
89ce69fb423d5f1775bae9d3250cda83da0a9ce5 | Java | norbo112/Edzesnaplov3 | /app/src/main/java/aa/droid/norbo/projects/edzesnaplo3/mvvm/service/files/MyFileService.java | UTF-8 | 2,911 | 1.992188 | 2 | [] | no_license | package aa.droid.norbo.projects.edzesnaplo3.mvvm.service.files;
import android.content.Context;
import android.net.Uri;
import android.util.Log;
import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.... | true |
3f418cf85ad8f517afac170d6e8f1872ccc8c4bd | Java | JetBrains/intellij-community | /java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/params/FormalParamsWithWildcards.java | UTF-8 | 151 | 1.734375 | 2 | [
"Apache-2.0"
] | permissive | class Test {
public interface I<K, V> {
public V put(K k);
}
{
final I<? super Long, CharSequence> i = (Number n) -> n.toString();
}
} | true |
00e5358bc491bfba7785e1eb9e0d228d8409801d | Java | OlukaDenis/E-Shop | /app/src/main/java/com/mcdenny/easyshopug/Common/Common.java | UTF-8 | 2,249 | 2.375 | 2 | [] | no_license | package com.mcdenny.easyshopug.Common;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import com.mcdenny.easyshopug.Model.Cart;
import com.mcdenny.easyshopug.Model.User;
import java.util.ArrayList;
import java.util.List;
public class Common {
//This class... | true |
4586909a5e7defee6e760b91b358347426af5907 | Java | humwawe/leetcode | /src/main/java/count/good/meals/CountGoodMeals.java | UTF-8 | 864 | 3.078125 | 3 | [] | no_license | package count.good.meals;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* @author hum
*/
public class CountGoodMeals {
public int countPairs(int[] deliciousness) {
Map<Integer, Integer> map = new HashMap<>();
Set<Integer> set = new HashSet<>(... | true |
dc8643d819b1be555ad65f129248da19d0015f37 | Java | chuanxing2015/JAVA-01 | /Week_07/mysql-demo/src/main/java/com/mysql/study/service/UserService.java | UTF-8 | 554 | 1.890625 | 2 | [] | no_license | package com.mysql.study.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mysql.study.mapper.User;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface UserService extends IService<User>{
//@Select("select * from user")
List<User> getUsers();
... | true |
a9779decc335c1ee36da9dab38af8ab100928edf | Java | Eve-rine/medical-store | /src/sample/controllers/medictable.java | UTF-8 | 1,569 | 2.40625 | 2 | [] | no_license | package sample.controllers;
public class medictable {
String productId;
String ProductName;
String CompanyName;
String ProductCategory;
String Quantity;
String UnitPrice;
public medictable(String productId, String productName, String companyName, String productCategory, String quantity, St... | true |
23dcd4edf0213a09f67e64857dd9fe306032833f | Java | RyanTech/workplace | /src/com/yueqiu/domain/PlatformUser.java | UTF-8 | 1,145 | 1.648438 | 2 | [] | no_license | package com.yueqiu.domain;
import java.util.List;
/**
* @author 张志强
*
* @date 2015-1-2 上午11:02:28
*/
public class PlatformUser {
public boolean result;
public Data data;
public String reason;
public class Data{
public User user;
public String userId;
public String appId;
public String token;
publi... | true |
a7df4d2fdb66be13bc62620548b57bb6fac38924 | Java | huanglongf/enterprise_project | /service-impl-wms/src/main/java/com/jumbo/webservice/biaogan/clientNew/PushExpressInfoPortTypeClientNew.java | UTF-8 | 2,986 | 1.898438 | 2 | [] | no_license | package com.jumbo.webservice.biaogan.clientNew;
/**
* Please modify this class to meet your needs This class is not complete
*/
import java.net.URL;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.xml.namespace.QName;
import com.jumbo.mq.MarshallerUtil;
import com.jumbo.webservice.biaogan.... | true |
32dcd56634bb6ea20091389e77f640e932350b1f | Java | szuloaga/openpa | /src/com/powerdata/openpa/tools/matrix/FloatArrayMatrix.java | UTF-8 | 938 | 3.1875 | 3 | [] | no_license | package com.powerdata.openpa.tools.matrix;
/**
* A simple array-backed matrix with floating-point values
*
* @author chris@powerdata.com
*
*/
public class FloatArrayMatrix implements FloatMatrix
{
float[][] _m;
public FloatArrayMatrix(int nrow, int ncol)
{
_m = new float[nrow][ncol];
}
public FloatArr... | true |
ce73886fb7a987cc733fc917bb0b587eb1ad0d49 | Java | hoangtu0108/math-ulti | /test/com/tuComputer/mathutil/test/MathUtilityTest.java | UTF-8 | 3,281 | 2.984375 | 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 com.tuComputer.mathutil.test;
import com.tuComputer.methutil.MathUtlity;
import org.junit.Test;
import static org.junit.Assert... | true |
8173d33f123d81f756533773548af7dbbd1f762a | Java | ConnorMatthews/SRSYS | /app/src/main/java/comp3350/GTS/persistence/DataAccessStub.java | UTF-8 | 4,763 | 3.078125 | 3 | [] | no_license | package comp3350.GTS.persistence;
import java.util.ArrayList;
import java.util.List;
import comp3350.GTS.application.Main;
import comp3350.GTS.objects.Student;
import comp3350.GTS.objects.Course;
import comp3350.GTS.objects.SC;
public class DataAccessStub
{
private String dbName;
private String dbType = "stub";
... | true |
a7b9ead7af714c5a71549d8f7e657db1b692227e | Java | tomdev2008/search-1 | /search-core/src/main/java/com/xiu/search/dao/.svn/text-base/XDataAttrDescDAO.java.svn-base | UTF-8 | 457 | 2.015625 | 2 | [] | no_license | package com.xiu.search.dao;
import java.util.Map;
/**
* @Title: XDataAttrDescDAO.java
*
* @Package com.xiu.search.dao
*
* @Description: 属性项相关信息
*
* @author lvshuding
*
* @date 2014年7月21日 上午11:35:33
*
* @version V1.0
*/
public interface XDataAttrDescDAO {
/**
* @Description: 获取所有属性项名称
* @retu... | true |
31dc3e222b32dce9024d0c538db631ae609f68cd | Java | Witaliikaplun/HW6_testing | /src/test/java/MassTest3.java | UTF-8 | 1,187 | 2.6875 | 3 | [] | no_license | import HW6.ArrayMy;
import org.junit.Assert;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import java.util.Arrays;
import java.util.Collection;
@RunWith(Parameterized.class)
public class MassTest3 {
int[] arr... | true |
9bd5684109c103a9eab5e64f8612a48f271593a0 | Java | PeterJMuir/University | /IOO/ass1/Window.java | UTF-8 | 2,004 | 3.828125 | 4 | [] | no_license | /*
* Class Name: Window
*
* Author: Peter Muir
* Creation Date: Thursday, April 27 2017, 22:19
* Last Modified: Friday, April 28 2017, 02:27
*
* Class Description: Creates a Window object to be used with Shape subclasses
* to draw a picture of some kind.
*
*/
import java.util.*;
public class Win... | true |
fada49b1d30793aab1e4ee184226fdf8aaca6704 | Java | Suarezlin/GraduationProject | /snapod-videos-dev/snapod-videos-dev-api/src/main/java/com/suarezlin/controller/UserController.java | UTF-8 | 7,455 | 2.046875 | 2 | [] | no_license | package com.suarezlin.controller;
import com.suarezlin.pojo.UsersReport;
import com.suarezlin.pojo.VO.UsersVO;
import com.suarezlin.pojo.Users;
import com.suarezlin.pojo.VO.PublisherVO;
import com.suarezlin.pojo.Videos;
import com.suarezlin.service.UserService;
import com.suarezlin.service.VideoService;
import com.sua... | true |
4ed0c023588e02fd381f5d29004d85c7c744a116 | Java | PabloJHM/Proyecto_Recetas | /app/src/main/java/com/example/pablo/proyecto_recetas/funciones/Ver.java | UTF-8 | 3,609 | 2.09375 | 2 | [] | no_license | package com.example.pablo.proyecto_recetas.funciones;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;
import com.example.pablo.proyecto_recetas.... | true |
15567554cd9740b202d33bf5ccd4c0bb7798713e | Java | wzssga/Arithmetic | /Arithmetic/src/niuke66/niu7.java | UTF-8 | 429 | 3.390625 | 3 | [] | no_license | package niuke66;
/*
大家都知道斐波那契数列,现在要求输入一个整数n,请你输出斐波那契数列的第n项。n<=39
*/
//在数学上,斐波纳契数列以如下被以递归的方法定义:
//F(0)=0,F(1)=1, F(n)=F(n-1)+F(n-2)(n>=2,n∈N*)
public class niu7 {
public int fibo(int n) {
if (n==0) {
return 0;
}else if(n==1) {
return 1;
}else {
return fibo(n-1)+fibo(n-2);
}
}
}
| true |
43beddeab302d88d98d826d66a485ca67e091176 | Java | yanweiqi/tongren | /phoenix-tongren/phoenix-tongren-api/src/main/java/com/ginkgocap/tongren/organization/resources/service/ResourcesRelatedDetailService.java | UTF-8 | 904 | 1.914063 | 2 | [] | no_license | package com.ginkgocap.tongren.organization.resources.service;
import java.util.List;
import com.ginkgocap.tongren.common.CommonService;
import com.ginkgocap.tongren.organization.resources.exception.ResourceException;
import com.ginkgocap.tongren.organization.resources.model.ResourcesRelatedDetail;
/**
* 关联的详细信息
* ... | true |
90cdb7bdbeeb359df451d201a352f4e8b3c957ba | Java | QXIM/ProductSystemManager | /src/main/java/com/neuedu/entity/Product.java | UTF-8 | 2,365 | 2.59375 | 3 | [] | no_license | package com.neuedu.entity;
import java.io.Serializable;
public class Product implements Serializable{
public Product(int productid, String pname, String detail, double price, int stock, String image) {
super();
this.productid = productid;
this.pname = pname;
this.detail = detail;
this.price = price;
th... | true |
79a7b82bcbbffd279dcc8fd1fe9987714286bac0 | Java | fesabelilla/Books-Cabinet | /Codebase_Books_Cabinet/Books_Cabinet/src/main/java/com/project/Books_Cabinet/controller/OrderController.java | UTF-8 | 4,296 | 2.125 | 2 | [
"MIT"
] | permissive | package com.project.Books_Cabinet.controller;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.sp... | true |
df1fe227854492358a12a5ea5a606914e4927c24 | Java | yaoyue47/spb | /src/main/java/com/example/demo/dao/SystemInfoDao.java | UTF-8 | 308 | 1.875 | 2 | [] | no_license | package com.example.demo.dao;
import com.example.demo.pojo.SystemInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface SystemInfoDao extends JpaRepository<SystemInfo, Integer> {
SystemInfo findById(int id);
}
| true |
8b3ef8c635159600212587a558e42d3a4fdbd4df | Java | doublefantansy/yw1 | /app/src/main/java/hzkj/cc/yw/bean/UserInfo.java | UTF-8 | 436 | 1.6875 | 2 | [] | no_license | package hzkj.cc.yw.bean;
import lombok.Data;
@Data
public class UserInfo {
// int id;
int userId;
String password;
String userName;
String user_Name;
String userType;
String mobile;
String jpushId;
String sex;
String icon;
String user_addr;
Department department;
public UserInfo() {
}
... | true |
638c508202013294bfc4dc4f0ae0cb22665ea5c9 | Java | michael-uhl/Horb_2 | /Vorlesung_01/src/a04_forkJoin/NumberFinderRecursiveTask.java | UTF-8 | 1,355 | 3.578125 | 4 | [] | no_license | package a04_forkJoin;
import java.util.Arrays;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.RecursiveTask;
public class NumberFinderRecursiveTask extends RecursiveTask<Boolean> {
private static final long serialVersionUID = 1L;
private int[] array;
private int element;
public NumberF... | true |
8d2dd1aa33eedef15bb77a92c42f6778375aa77c | Java | rokon12/chatter | /src/main/java/com/therapjavafest/chatter/service/ChatterServiceImpl.java | UTF-8 | 773 | 2.4375 | 2 | [] | no_license | package com.therapjavafest.chatter.service;
import com.therapjavafest.chatter.model.Chatter;
import com.therapjavafest.chatter.repository.ChatterDao;
import com.therapjavafest.chatter.repository.ChatterDaoImpl;
import java.util.List;
/**
* @author Rony Gomes
* @since 1.0
*/
public class ChatterServiceImpl impleme... | true |
75dd34b2a222e654d11c7ffad7ad4721c81f802e | Java | ablhy/Liberg | /src/main/java/cn/liberg/database/IDataReader.java | UTF-8 | 362 | 2.3125 | 2 | [] | no_license | package cn.liberg.database;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
/**
* @author Liberg
*/
@FunctionalInterface
public interface IDataReader {
/**
* 由实现类完成从ResultSet中读取记录
* @param resultSet
* @return
* @throws SQLException
*/
void read(ResultSet resultSet) throw... | true |