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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
7f251707b79c6724c28f1d951927fc7d3a22bb55 | Java | zhanghuawei123/shop_project | /shop_service_provider/shop_goods_service/src/test/java/com/qianfeng/shop_goods_service/ShopGoodsServiceApplicationTests.java | UTF-8 | 670 | 1.882813 | 2 | [] | no_license | package com.qianfeng.shop_goods_service;
import com.qianfeng.entity.Goods;
import com.qianfeng.service.GoodService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframew... | true |
617a94820b5a19342e6bf5098273d93f9198c29c | Java | rfecher/geowave | /core/store/src/main/java/mil/nga/giat/geowave/core/store/base/Writer.java | UTF-8 | 543 | 2.203125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-public-domain"
] | permissive | package mil.nga.giat.geowave.core.store.base;
import java.io.Closeable;
/**
* This interface is returned by DataStoreOperations and useful for general
* purpose writing of entries. The default implementation of AccumuloOperations
* will wrap this interface with a BatchWriter but can be overridden for other
* mech... | true |
eadbede3c502ca6ad43f14cc2aa85e43f6cfdf67 | Java | SimonDan/svl-app | /app/src/main/java/com/github/simondan/svl/app/PenaltyActivity.java | UTF-8 | 1,699 | 2.109375 | 2 | [
"MIT"
] | permissive | package com.github.simondan.svl.app;
import android.os.Bundle;
import android.util.Log;
import android.view.*;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import com.github.simondan.svl.app.server.IServer;
import com.google.android.material.floatingactionbutton.FloatingAc... | true |
d1baec39ffa763414e58872fe0bef0735d3d6bef | Java | TimfuDeng/gtfree-bank | /suzhou/yuanqu/admin/src/main/java/cn/gtmap/landsale/admin/service/impl/CaPcsServiceImpl.java | UTF-8 | 6,044 | 2.15625 | 2 | [] | no_license | package cn.gtmap.landsale.admin.service.impl;
import cn.gtmap.egovplat.core.ex.AppException;
import cn.gtmap.egovplat.core.util.ArrayUtils;
import cn.gtmap.egovplat.core.util.Charsets;
import cn.gtmap.landsale.Constants;
import cn.gtmap.landsale.service.CaPcsService;
import com.google.common.collect.Lists;
import org.... | true |
1b852774d9cd44db5711c7c7c228fc1586d89b88 | Java | mehmetersin/spor-simdi-bluetooth-turnike | /SporSimdiTurnike/src/com/kayi/sporsimdi/turnike/MainActivity.java | UTF-8 | 8,450 | 1.929688 | 2 | [] | no_license | package com.kayi.sporsimdi.turnike;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient... | true |
ffe6612351859444cd2854f4290b034cea89dc62 | Java | fabiogmail/curso-git | /PortalOsx/WEB-INF/src/Portal/Service/VolumetriaService.java | ISO-8859-1 | 17,130 | 1.84375 | 2 | [] | no_license | package Portal.Service;
import java.util.ArrayList;
import java.util.Iterator;
import net.sf.jasperreports.engine.JasperPrint;
import org.hibernate.Session;
import src.br.com.visent.dbdeteccao.corba.CorbaException;
import src.br.com.visent.dbdeteccao.corba.CorbaUtil;
import src.br.com.visent.dbdeteccao.corba.Format... | true |
4ed3c6626d92421be5f8b815d3126ee74a939ab6 | Java | AmauriPereira/ProjetoServir | /src/br/com/servirjanuaria/amauri/domainModel/repositorios/PessoaRepositorio.java | UTF-8 | 518 | 1.914063 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package br.com.servirjanuaria.amauri.domainModel.repositorios;
import br.com.servirjanuaria.amauri.domainModel.Pessoa;
import ... | true |
406daf8356be86f7e737e69d828304dfc7a7eab7 | Java | TATJAVA-Uladzislau-Seuruk/TATJAVA01_2017_Task03_Uladzislau_Seuruk | /src/main/java/com/epam/oop/controller/command/impl/AddNews.java | UTF-8 | 1,087 | 2.640625 | 3 | [] | no_license | package com.epam.oop.controller.command.impl;
import com.epam.oop.controller.command.Command;
import com.epam.oop.service.exception.ServiceException;
import com.epam.oop.service.factory.ServiceFactory;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
/**
* Implements Command interf... | true |
23f21d18844c9fedae414af9ce811bdc76513542 | Java | haywood2018/gulimall | /gulimall-product/src/main/java/com/wxx/gulimall/product/service/impl/SkuImagesServiceImpl.java | UTF-8 | 1,254 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | package com.wxx.gulimall.product.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wxx.common.utils.PageUtils;
import com.wxx.common.utils.Query;
import co... | true |
dd485f915c12412137bce020335e4cbc1da68c38 | Java | hamidsid/MatchIT_Java_Labs | /Lab02/src/GuessingGameTest.java | UTF-8 | 2,609 | 3.671875 | 4 | [] | no_license | import java.util.Random;
import java.util.Scanner;
public class GuessingGameTest {
private static Random rand = new Random();
private static Scanner input = new Scanner(System.in);
private static boolean quit = false;
private static boolean win = false;
private static int target;
private static... | true |
51ca48d31846e4f88a34bd24d66917126c1aeb24 | Java | ooglooFahad/Explore-114 | /app/src/main/java/oogloo/com/explore114/TabsActivity.java | UTF-8 | 2,153 | 2.125 | 2 | [] | no_license | package oogloo.com.explore114;
import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.text.Spannable;
import android.text.SpannableString;
import android.view.WindowManager;
public class TabsActivity ... | true |
4024b325658fb104749a2a86c5973f85f0547c70 | Java | moutainhigh/firebats | /firebats-http/src/test/java/firebats/http/server/results/RedirectTest.java | UTF-8 | 2,964 | 2.25 | 2 | [] | no_license | package firebats.http.server.results;
import static org.junit.Assert.assertEquals;
import io.netty.handler.codec.http.HttpResponseStatus;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import rx.Observable;
import th.api.common.Ws;
import th.api.common.Ws.WsRequest;
import fireba... | true |
a96dbf08cee5143527ba3d595a8f11a0e20bc75c | Java | akdiallo/BitMusic | /BitMusic/bitmusic/network/api/ApiException.java | UTF-8 | 403 | 1.742188 | 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 bitmusic.network.api;
import bitmusic.network.exception.EnumTypeException;
/**
*
* @author florian
*/
public interface Ap... | true |
907eb5f7f3f65676ddede897bad924d5a2bb7a27 | Java | rrojanat/demoToy | /src/test/java/workshop/toy/controller/CartControllerUnitTest.java | UTF-8 | 1,335 | 2.15625 | 2 | [] | no_license | package workshop.toy.controller;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import org.springframework.http.ResponseEntity;
import workshop.toy.model.CartDetail;
import workshop.toy.model.CartDetailWithToy;
impo... | true |
c0e776ae93e82e41bce18af98f5fec2a3850e775 | Java | mobapp20g6/frivillig-app1 | /project/app/src/main/java/no/ntnu/mobapp20g6/app1/data/repo/SharedNonCacheRepository.java | UTF-8 | 5,096 | 2.21875 | 2 | [
"MIT"
] | permissive | package no.ntnu.mobapp20g6.app1.data.repo;
import com.google.gson.JsonObject;
import java.util.List;
import java.util.function.Consumer;
import no.ntnu.mobapp20g6.app1.data.Result;
import no.ntnu.mobapp20g6.app1.data.ds.GroupDataSource;
import no.ntnu.mobapp20g6.app1.data.ds.LocationDataSource;
import no.ntnu.mobapp... | true |
eb851c489b9735f671ee7bc1b64c1e45ec6e2189 | Java | kingstiger/VoIP | /src/test/java/microphone_tests/EncryptorTest.java | UTF-8 | 2,015 | 2.671875 | 3 | [] | no_license | package microphone_tests;
import com.models.MicrophoneData;
import com.security_utils.DecryptorImpl;
import com.security_utils.EncryptorImpl;
import com.sound_utils.Microphone;
import org.junit.Assert;
import org.junit.Test;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.LineUnavailableException;
... | true |
b6d0a91de44e5dda58db4cc708f7612c5fd18fc6 | Java | Fernum/Cyton_CappStone | /GUI/cyton-robotic-arm-manipulation-project/src/robotinterface/client/RobotClient.java | UTF-8 | 6,800 | 3.09375 | 3 | [] | no_license | package robotinterface.client;
import java.io.IOException;
import java.net.*;
import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;
import java.util.Arrays;
/**
* RobotClient Class. <p>
*
* @author Brian Bailey
*/
public class RobotClient {
private static final boolean VERBOSE = true;
priv... | true |
94d6dc9a056cf37f657c9b850b9d5c754895eb1b | Java | slob-cow/java_performance_optimization | /decorator_seven/src/com/test/java/UpperCaseInputStream.java | UTF-8 | 1,365 | 3.21875 | 3 | [] | no_license | package com.test.java;
/**
* @program: java_performance_optimization
* @Author:chenxuebing
* @Date:2019-09-26 9:47
* @Description:(描述)
*/
/**
* java的Io流机制就使用了装饰模式
* InputStream: 接口类
* FileInputStream: StringBufferInputStream: ByteArrayInPutStream : 被装饰类
* FilterInputStream: 装饰类接口
* --: 具体装饰类
... | true |
ee438be00a00c01d9d3412a86d788b202cd11632 | Java | rustamkremcheev/DETA_CACHE | /src/main/java/org/lyg/common/exceptions/DetaDBException.java | UTF-8 | 705 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package org.lyg.common.exceptions;
public class DetaDBException extends RuntimeException {
private static final long serialVersionUID = 1L;
private String errorId;
private String errorMessage;
public String getErrorId() {
return errorId;
}
public void setErrorId(String errorId) {
this.errorId =... | true |
c7720cb5f7f3f452d339f9a5610936249520018b | Java | sivareddy1/java-for-testers | /src/test/java/com/serenitydojo/HelloWorldWriterTest.java | UTF-8 | 968 | 3.28125 | 3 | [] | no_license | package com.serenitydojo;
import org.junit.Test;
public class HelloWorldWriterTest {
@Test
public void shouldWriteHelloWorldToConsole(){
HelloWorldWriter writer = new HelloWorldWriter();
writer.writeHelloWorldToConsole();
}
@Test
public void declaringNumericalVariables(){
... | true |
789cf76cefd0d4c86806a99a09b74f2c7b93cde8 | Java | Lakshmanm/RBSK_NEW | /app/src/main/java/nunet/rbsk/model/Surgery.java | UTF-8 | 2,580 | 2.28125 | 2 | [] | no_license | //=============================================================================
// All rights reserved to Nunet Cube Software Solutions.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILIT... | true |
80f67bcfb096c1d389c47ef31d2650f67758b330 | Java | saketdchaudhari/fuelsolution | /src/com/fs/dao/UserDao.java | UTF-8 | 750 | 2.5625 | 3 | [] | no_license | package com.fs.dao;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import com.fs.model.User;
public class UserDao extends PersistenceDao<User, Integer> implements IUserDao{
EntityManager entityManager;
public UserDao(EntityManager entityManager) {
super(User.c... | true |
ccfc6219b47a9c8a0b5d939d6693623817bff468 | Java | freestyler734/1Z0-809 | /src/com/company/designPatternsAndPrinciples/patterns/factory/Pencil.java | UTF-8 | 381 | 2.71875 | 3 | [] | no_license | package com.company.designPatternsAndPrinciples.patterns.factory;
/**
* Один из возвращаемых фабрикой типов
*/
public class Pencil extends Item {
// делаем конструктор доступным только в этом пакете
Pencil(){}
@Override
void printName() {
System.out.println("Pencil");
}
}
| true |
6e55c2e3abaae20a47536994ce6a630340949cf1 | Java | GiovanniPoggi/Mastermind_and_Distributed_Puzzle | /es1/src/main/java/es1/util/SetupPlayer.java | UTF-8 | 510 | 3.40625 | 3 | [] | no_license | package es1.util;
/**
* Class That Set Up Player.
*/
public class SetupPlayer {
/**
* Field that represents the number of the Player.
*/
private final int number;
/**
* Constructor of the class.
* @param number of the player.
*/
public SetupPlayer(int number) {
this... | true |
87abb5f320eb861e252336e2e273026d2e10a429 | Java | Amoghavarsha01/JavaConcepts | /src/com/java/TwoArraySpiral.java | UTF-8 | 1,346 | 3.765625 | 4 | [] | no_license | package com.java;
import java.util.Arrays;
public class TwoArraySpiral {
public static void main(String[] args) {
int[][] arr = {{1,2,3,4},{5,6,7,8},{9,10,11,12},{13,14,15,16}};
//1. 1st row all the elements should be displayed (i = 0 )
//
/*for(int i=0; i < arr.length; i++) {
for(int j=0;j < arr[i].leng... | true |
56dc2843cde20269ea3908f0384ecebfff854871 | Java | theaisla/info216 | /Thea sin kode/ProsjektINFO216/src/prosjekt/StudentSenteretSIB.java | UTF-8 | 12,295 | 2.15625 | 2 | [] | no_license | package prosjekt;
import java.io.FileOutputStream;
import org.apache.jena.query.Query;
import org.apache.jena.query.QueryExecution;
import org.apache.jena.query.QueryExecutionFactory;
import org.apache.jena.query.QueryFactory;
import org.apache.jena.query.ResultSet;
import org.apache.jena.query.ResultSetFormatter;
im... | true |
b5ba968edca208fd9f6f810a47d64658e5c47039 | Java | WHAT-ROUGH-BEAST/RepositeManage | /src/util/CheckoutHelper.java | GB18030 | 2,373 | 2.703125 | 3 | [] | no_license | package util;
import java.util.*;
import javaBean.Order;
import javaBean.PickingTask;
import javaBean.Product;
import javaBean.ProductListContainer;
import javaBean.Reposite;;
interface CheckoutInterface
{
void addOrder(Order order);
void removeOrder(int id);
void checkout();
List<Order> getOrders();
}
public c... | true |
c8d4e8bfac747d6a568a0fdcc5b90103399b52e8 | Java | MR-116/com.masociete.projet_mobile-1_source_from_JADX | /sources/fr/pcsoft/wdjava/ui/utils/WDSablierImpl.java | UTF-8 | 3,364 | 2.140625 | 2 | [] | no_license | package fr.pcsoft.wdjava.ui.utils;
import android.app.Activity;
import fr.pcsoft.wdjava.core.application.WDProjet;
import fr.pcsoft.wdjava.core.utils.C0806j;
import fr.pcsoft.wdjava.core.utils.C0808l;
import fr.pcsoft.wdjava.p032m.C0938m;
import fr.pcsoft.wdjava.ui.activite.C0492a;
import fr.pcsoft.wdjava.ui.activite.... | true |
3ab0003d8fd5adc60340256013256bca197d3e50 | Java | pproszowski/Java_University | /PhoneBook/Company.java | UTF-8 | 366 | 3.03125 | 3 | [] | no_license | public class Company extends Record{
String name;
String address;
Company(String _name, String _address, PhoneNumber _phoneNumber){
super(_phoneNumber);
name = _name;
address = _address;
}
@Override
String getDescription(){
return "Company: " + name + ", " + add... | true |
91115d18d95de0b45bda690bafade4c1380ea784 | Java | juandiazgit/Ceiba-ClinicaOdontologica | /java-arquitectura-hexagonal/microservicio/dominio/src/main/java/com/ceiba/clinicaodontologica/dominio/servicio/cita/ServicioObtenerCita.java | UTF-8 | 1,089 | 1.96875 | 2 | [] | no_license | package com.ceiba.clinicaodontologica.dominio.servicio.cita;
import java.util.List;
import org.springframework.stereotype.Service;
import com.ceiba.clinicaodontologica.dominio.Cita;
import com.ceiba.clinicaodontologica.dominio.persistencia.entidad.CitaEntity;
import com.ceiba.clinicaodontologica.dominio.persistencia... | true |
9e12ad25c1a3bb112634e22a7d6848627d6b1f8d | Java | rdzfv/subwayGame | /service/2DGame/src/main/java/com/xyy/subway/game2d/controller/VStationStoreController.java | UTF-8 | 11,412 | 2.109375 | 2 | [] | no_license | package com.xyy.subway.game2d.controller;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.xyy.subway.game2d.dto.ExpAndLevelDTO;
import com.xyy.subway.game2d.dto.VRouteStationDTO;
import com.xyy.subway.game2d.entity.*;
import com.xyy.subway.game2d.error.BusinessException;
impor... | true |
c47a2461f74f6260f8a7ffb300004926bba6b6c5 | Java | martaKlachko/EpamLessons | /lesson6/coffeePoint/src/Entity/Order.java | UTF-8 | 1,549 | 3.0625 | 3 | [] | no_license | package Entity;
import Entity.Customer;
import java.time.LocalDateTime;
import java.util.Map;
import java.util.Set;
/**
* Created by User on 20.01.2018.
*/
public class Order {
private Customer customer;
private LocalDateTime time;
private Map<Product, Integer> products;
private double sum;
pu... | true |
3240729c446a42a0a2c9af808122f2a73a0ca8a0 | Java | sfnelson/blog | /client/src/main/java/org/sfnelson/blog/server/service/TaskService.java | UTF-8 | 311 | 1.953125 | 2 | [] | no_license | package org.sfnelson.blog.server.service;
import java.util.List;
import org.sfnelson.blog.server.domain.Task;
/**
* Author: Stephen Nelson <stephen@sfnelson.org>
* Date: 31/10/11
*/
public interface TaskService {
List<Task> getCurrentTasks(int start, int limit);
void createTask(Task task);
void updateTask(Ta... | true |
15ac3a726fa81d12dfaf8c9b61cebb7c185e5102 | Java | camel-man-ims/algorithm-collection | /src/문제집/프로그래머스/카카오기출/카카오2021/숫자_문자열과_영단어/Main.java | UTF-8 | 1,282 | 3.453125 | 3 | [] | no_license | package 문제집.프로그래머스.카카오기출.카카오2021.숫자_문자열과_영단어;
import java.util.HashMap;
import java.util.Map;
public class Main {
public static void main(String[] args) {
Solution sol = new Solution();
sol.solution("2three45sixseven");
}
static class Solution{
static Map<String,Integer> map;
... | true |
979e2724ab9b41b192dc53de60a0e4c801854911 | Java | jibopeng/cashloan-product-africa-web-app | /cashloan-cl/src/main/java/com/ajaya/cashloan/cl/mapper/UserMessagesMapper.java | UTF-8 | 4,834 | 2.21875 | 2 | [] | no_license | package com.ajaya.cashloan.cl.mapper;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.ajaya.cashloan.cl.domain.UserMessages;
import com.ajaya.cashloan.cl.model.UserMessagesModel;
import org.apache.ibatis.annotations.Param;
import com.ajaya.cashloan.core.comm... | true |
9b90750067287bcbbe21e9ff418bb30c4e69dfbf | Java | Valzavator/SlidingPuzzle | /src/main/java/game/model/SettingsModel.java | UTF-8 | 3,830 | 2.5625 | 3 | [
"MIT"
] | permissive | package game.model;
import game.enumeration.BoardType;
import game.enumeration.Difficulty;
import game.helpers.Player;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
import javax.xml.bind.annotation.XmlElement;
import javax... | true |
09906c063f0834b8630f5fbd1a6dd031b6853c3d | Java | wonwoo/spring-social-daum | /src/main/java/org/springframework/social/daum/api/DaumBoardSearch.java | UTF-8 | 1,180 | 2.25 | 2 | [] | no_license | package org.springframework.social.daum.api;
public class DaumBoardSearch {
private String pubDate;
private String author;
private String title;
private String description;
private String link;
private String keyword;
private String comment;
public String getPubDate() {
return pubDate;
}
public String g... | true |
88338025082eb62cb3a19d7e1560fcc7da16e0d1 | Java | adamtache/cell_society | /src/Model/HexagonCell.java | UTF-8 | 2,750 | 3.140625 | 3 | [
"MIT"
] | permissive | package src.Model;
public class HexagonCell extends Cell{
public HexagonCell(double centerX, double centerY, int state, double sideLength, Grid myGrid, String edgeType) {
super(centerX, centerY, state, sideLength, 6, myGrid, edgeType);
setHeight();
}
public HexagonCell(double sideLen, Grid grid, String edgeTy... | true |
897cb235ce5ab0a4c8572c3f0dd02d52286afe6e | Java | zjwab118/games | /code/service/wm_code/src/main/java/com/wm/boot/proxy/vo/ClassVo.java | UTF-8 | 205 | 1.554688 | 2 | [] | no_license | package com.wm.boot.proxy.vo;
import lombok.Data;
/**
* @author wilson
* @title ClassVo
* @description 类信息
* @date 2021.02.06 08:11
*/
@Data
public class ClassVo {
private String url;
}
| true |
1e7c13e9c0ea5fb342d7ef9733d78bed5c176a77 | Java | ruicao93/oxp-protocol | /src/main/java/org/onosproject/oxp/protocol/OXPFactories.java | UTF-8 | 1,492 | 2.421875 | 2 | [] | no_license | package org.onosproject.oxp.protocol;
import org.jboss.netty.buffer.ChannelBuffer;
import org.onosproject.oxp.exceptions.OXPParseError;
import org.onosproject.oxp.protocol.ver10.OXPFactoryVer10;
import org.onosproject.oxp.types.U8;
/**
* Created by cr on 16-4-9.
*/
public final class OXPFactories {
private stat... | true |
f642784b951396b1f1b3e44e212d8711c344e442 | Java | dangnghia2101/assignmentFinal | /app/src/main/java/com/example/myapplication/DAO/LoaiCarDAO.java | UTF-8 | 2,163 | 2.484375 | 2 | [] | no_license | package com.example.myapplication.DAO;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.example.myapplication.Database.Database;
import com.example.myapplication.Model.Car;
import com.example.myapplication.M... | true |
27d1800f3bc3c66439b93d914d46cbee59eacecb | Java | beiduofen2011/selfStu | /aqsStu/src/main/java/com/fen/dou/aqsStu/hashMapTest/TestUUid.java | UTF-8 | 1,016 | 3.015625 | 3 | [] | no_license | package com.fen.dou.aqsStu.hashMapTest;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;
import java.util.UUID;
public class TestUUid {
public static void main(String[] args) {
HashMap<Integer, Set<String>> map = new HashMap<Integer, Set<String>>();
for(int i=0;i<10000;i++... | true |
bbbffb8a8f9edf39eb76e24b71a0a58576487a7c | Java | LinaMalinaMeow/Lab7 | /common/src/main/java/object/VehicleDisplayerImpl.java | UTF-8 | 957 | 3.109375 | 3 | [] | no_license | package object;
import java.text.SimpleDateFormat;
public class VehicleDisplayerImpl implements VehicleDisplayer{
@Override
public String displayVehicle(Vehicle vehicle) {
SimpleDateFormat format = new SimpleDateFormat("dd.MM.yyyy");
return "\n\tID: " + vehicle.getId() +
"\n\t... | true |
91527d2f8a41e803e68d37b3afb7ef8578b7a2e8 | Java | wuyamei95/excelload | /src/main/java/com/example/demo/pojo/bo/class_teacher.java | UTF-8 | 208 | 1.71875 | 2 | [] | no_license | package com.example.demo.pojo.bo;
import lombok.Data;
import javax.validation.constraints.NotNull;
@Data
public class class_teacher {
@NotNull
int teacher_id;
@NotNull
String class_name;
}
| true |
adf303774f68e7af4cc3b3a66ea705b11de5c820 | Java | paragparalikar/thyng2 | /parent/gateway-parent/gateway/src/main/java/com/thyng/gateway/service/BootstrapService.java | UTF-8 | 6,458 | 2.09375 | 2 | [] | no_license | package com.thyng.gateway.service;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import java.util.ServiceLoader;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ThreadFactory;
... | true |
545681bafa552b2d8e50d6fed7b2911b1b2f35ca | Java | JasonHans316/My_Animal_Haven | /app/src/main/java/com/animalhaven/hansportable/myanimalhaven/DomainInterfaces/IUser.java | UTF-8 | 566 | 1.953125 | 2 | [] | no_license | package com.animalhaven.hansportable.myanimalhaven.DomainInterfaces;
import com.animalhaven.hansportable.myanimalhaven.Domain.Adoption;
import com.animalhaven.hansportable.myanimalhaven.Domain.Schedule;
import com.animalhaven.hansportable.myanimalhaven.Domain.Donation;
import java.util.List;
/**
* Created by Admin ... | true |
df777e4f177154d6d5402f85893b3af08c433ebc | Java | Neitsch/Networks-Assignment | /src/io/Console.java | UTF-8 | 422 | 2.828125 | 3 | [] | no_license | package io;
import java.util.ArrayList;
public class Console {
public enum LOGMODE {
GRAPH, PACKET
}
private static ArrayList<LOGMODE> logmodes;
static {
logmodes = new ArrayList<>();
}
public static void activate(LOGMODE e) {
logmodes.add(e);
}
public static void log(String message, LOGMODE e) {
... | true |
98b326ee738f499a976c97bd6a009a3947e148b8 | Java | wsicong/GraduationProject | /src/main/java/com/wsicong/enroll/service/impl/HobbyTypeServiceImpl.java | UTF-8 | 4,989 | 2.296875 | 2 | [] | no_license | package com.wsicong.enroll.service.impl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.wsicong.enroll.dto.HobbyTypeSearchDTO;
import com.wsicong.enroll.mapper.HobbyTypeMapper;
import com.wsicong.enroll.model.HobbyType;
import com.wsicong.enroll.model.User;
import com.wsicon... | true |
77b4914f0136cedeb5848cf30ab5ebcf6a19c95d | Java | wucanwu/jskDynamicProxy | /src/test.java | UTF-8 | 254 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | public class test {
public static void main(String[] args) {
MyNumImple myNum = new MyNumImple();
MyNum poxy = (MyNum) new MyNumPoxy().getInstance(myNum);
int a = (Integer)poxy.add(1,2);
System.out.println(a);
}
}
| true |
bb3a5d93d45f3c5ad4e633d956da1ea9812762eb | Java | kostikum/time-overseer | /app/src/main/java/com/kostikum/timeoverseer/adapters/ProjectListAdapter.java | UTF-8 | 2,378 | 2.296875 | 2 | [] | no_license | package com.kostikum.timeoverseer.adapters;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerVi... | true |
256807c165feef65e8ecc51b65b046c5f69ed6e3 | Java | Euchigere/simple-plagiarism-checker | /src/main/java/com/emmanuelc/plagiarismchecker/domain/dto/RespFile.java | UTF-8 | 318 | 1.96875 | 2 | [] | no_license | package com.emmanuelc.plagiarismchecker.domain.dto;
import com.emmanuelc.plagiarismchecker.domain.models.enumerations.MimeType;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class RespFile {
private String name;
private String url;
private MimeType type;
private long size;
}
| true |
ecbc2b90e31605b1153ca717917ae13692ce2a23 | Java | AfoH328/131 | /app/src/main/java/com/example/photofreecropofimage/MainActivity.java | UTF-8 | 642 | 2.09375 | 2 | [] | no_license | package com.example.photofreecropofimage;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
... | true |
a9de3d10253991a2c28734028f674c3bb352d47f | Java | vijayasri0805/Demoproject1 | /src/test/java/com/upgrade/api/ApiTest.java | UTF-8 | 1,875 | 2.515625 | 3 | [] | no_license | package com.upgrade.api;
import static io.restassured.RestAssured.*;
import static org.hamcrest.Matchers.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.testng.annotations.Test;
import io.restass... | true |
e59db9fc56ba2d185a74f00c89b063a6ea19d998 | Java | alldatacenter/alldata | /dts/inlong/inlong-manager/manager-service/src/test/java/org/apache/inlong/manager/service/ServiceBaseTest.java | UTF-8 | 6,393 | 1.585938 | 2 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-compass",
"BSD-3-Clause"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may n... | true |
98d61ef8ef7fda684dc59d496c64dafed4d11ade | Java | wangmingle/iyoutianxia | /src/test/notes/NotesModel.java | UTF-8 | 1,327 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package test.notes;
public class NotesModel {
private Integer rownum;
private String id;
private String name;
private String context;
private String uid;
private String tags;
private Long createdate;
private Integer stype;
private Integer status;
public String getTags() {
return tags;
}
public v... | true |
62d2f87a0fb2b3ea57b606ab914c43aaf2b8189e | Java | raidcraft-archiv/rcskills | /src/main/java/de/raidcraft/skills/api/exceptions/CharacterException.java | UTF-8 | 260 | 2.09375 | 2 | [] | no_license | package de.raidcraft.skills.api.exceptions;
import de.raidcraft.api.RaidCraftException;
/**
* @author Silthus
*/
public class CharacterException extends RaidCraftException {
public CharacterException(String message) {
super(message);
}
}
| true |
fcad8b61d5612e4ccd076b5d5ba01c4bacd8926e | Java | dumbledorebryant/leetcode | /leetcode/src/pass/Company/Amazon/OA/k_consistence.java | UTF-8 | 1,299 | 3.234375 | 3 | [] | no_license | package pass.Company.Amazon.OA;
import java.util.HashMap;
import java.util.Map;
public class k_consistence {
public int characterDelete(int[] array, int k) {
if (array == null || array.length == 0 || k > array.length) {
return -1;
}
HashMap<Integer, Integer> map = new... | true |
62ff4cdb841edc42026f1b148d4551bf4318fd4a | Java | zhoujiaping/jsirenia | /src/main/java/org/jsirenia/groovy/GroovyScriptFileRunner.java | UTF-8 | 1,319 | 2.671875 | 3 | [] | no_license | package org.jsirenia.groovy;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import org.springframework.util.ResourceUtils;
import groovy.lang.Binding;
import groovy.util.GroovyScriptEngine;
//https://blog.csdn.net/a906998248/article/detail... | true |
4130b59164050d7c46583e8afb0a4fa93c8d6cde | Java | l-y-s/Bracketeer | /app/src/main/java/com/csci490/bracketeer/SwissRoundPairings.java | UTF-8 | 10,508 | 2.421875 | 2 | [] | no_license | package com.csci490.bracketeer;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.res.ResourcesCompat;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Typeface;
import android.os.Bundle;
import androi... | true |
1716c32145317fab6122370f94a898e4e072903f | Java | daweifly1/xgit-parts-pom | /gw-oauth/gw-oauth-api/src/main/java/cn/com/xgit/gw/enums/SystemEnum.java | UTF-8 | 484 | 2.421875 | 2 | [] | no_license | package cn.com.xgit.gw.enums;
public enum SystemEnum {
BASE(1, "基础平台"),
SHOP(2, "电商平台"),
STORAGE(3, "仓储平台");
private int code;
private String name;
SystemEnum(int code, String name) {
this.code = code;
this.name = name;
}
public long getLongCode() {
return cod... | true |
ed331cdf028de839515a5a8287ec8006fe340d7a | Java | devmngr/SDJ1-Java | /Rental System1/src/GUI/UnavailableVehiclePanel.java | UTF-8 | 2,036 | 2.578125 | 3 | [] | no_license | package GUI;
import Code.*;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextField;
public class UnavailableVehiclePanel extends JPanel
{
private JLabel lblType, lblModel, lblStatus, lblBookingID, lblTimeLeft;
private JTextF... | true |
3ddbc0c9d8bbcb5710c870e86817a8a6414a8faa | Java | dannidanna/Algorithms-with-java | /Ejercicios/src/ejercicios/FillTheContainers11413.java | UTF-8 | 1,505 | 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 ejercicios;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
/**
*
* @author danni
*/
public ... | true |
1aafd19f0e58ccc67d8d274add156251da47d493 | Java | eugeniopacceli/GetJedi | /GetJedi/app/src/main/java/edu/getjedi/frontend/mobile/state/ClientLoggedState.java | UTF-8 | 10,577 | 2.25 | 2 | [
"MIT"
] | permissive | package edu.getjedi.frontend.mobile.state;
import android.os.CountDownTimer;
import android.os.Handler;
import android.util.Log;
import android.widget.Toast;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.model.BitmapDescriptorF... | true |
49b00be544c9215fd7e929822062a31041166683 | Java | Pask423/keycloak-springboot | /base-integration/src/main/java/org/pcs/springboot/keycloak/controller/HelloController.java | UTF-8 | 537 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package org.pcs.springboot.keycloak.controller;
import org.springframework.http.ResponseEntity;
import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class HelloControlle... | true |
acbd1255609ddfef71e708f9f939eb1c0d369d08 | Java | niveksys/spring-mvc-rest | /src/test/java/com/niveksys/mvcrest/service/CustomerServiceImplTests.java | UTF-8 | 4,499 | 2.40625 | 2 | [] | no_license | package com.niveksys.mvcrest.service;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyLong;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.whe... | true |
c83de5d49dc83ffdb3516a27482ef6cb356daf07 | Java | doha-youssef/Assignment2 | /Address.java | UTF-8 | 380 | 2.859375 | 3 | [] | no_license | package test2;
public class Address
{
String streetNo;
String city;
String country;
public Address(String streetNo, String city, String country)
{
this.streetNo=streetNo;
this.city=city;
this.country=country;
}
public String getAddress()
{
r... | true |
3f7c30f4ad72f94ebea07199580a207d92bce546 | Java | rrocharoberto/AgenciaDeViagens | /agencia/src/main/java/br/edu/univas/agencia/agencia/service/api/impl/HotelServiceImpl.java | UTF-8 | 1,271 | 2.34375 | 2 | [] | no_license | package br.edu.univas.agencia.agencia.service.api.impl;
import java.util.Collection;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.QueryParam;
import br.edu.univas.agencia.agencia.business.HotelBusiness;
import br.edu.univas.agencia.agencia.business.PackageBusiness;
imp... | true |
1f836ba5f17a7005b6b1e1eb8d78289dd6ba68a2 | Java | snoor19/Learning | /src/com/spero/learn/TestSample.java | UTF-8 | 1,636 | 2.65625 | 3 | [] | no_license | package com.spero.learn;
import java.io.IOException;
import java.util.Map;
import java.util.stream.Collectors;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
public class TestSample {
public static void main(String[] args) {
/*
* byte[] timeZo... | true |
29bf4739710ac37988b17f89d1cf310e889170d6 | Java | onurkaraduman/customer-service | /src/main/java/com/onrkrdmn/restapi/model/Response.java | UTF-8 | 699 | 2.3125 | 2 | [] | no_license | package com.onrkrdmn.restapi.model;
import com.onrkrdmn.restapi.dto.BaseDto;
import com.onrkrdmn.restapi.dto.MessageDto;
import lombok.Getter;
import lombok.Setter;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
/**
* Custom response body
* In the future, some fields can... | true |
82bbd3b8742caae1d35993b16818634ff5598ab9 | Java | RalphMcDougall/grade-12-pat | /RalphMcDougallPAT2018/src/src/Tile/TileTypeHandler.java | UTF-8 | 3,061 | 3.125 | 3 | [
"MIT"
] | 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 src.Tile;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import src.Utility.DBBridge;
im... | true |
f4d92fec9fcb1afa8e17fd39f20ca7b00c5a1194 | Java | thistestuser007/insurancebarcode | /src/java/PricecheckQuery/PricecheckLookup.java | UTF-8 | 2,345 | 2.6875 | 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 PricecheckQuery;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.... | true |
ee00f3bf62e0425664c16cb777980d345a3d69ce | Java | catmaomao/android_sdk | /GameSDKDemo/gameSDK/src/main/java/com/heyijoy/gamesdk/operatorpay/CTResultActivity.java | UTF-8 | 1,606 | 2.015625 | 2 | [] | no_license | package com.heyijoy.gamesdk.operatorpay;
import com.zb.feecharge.FeeChargeManager;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.Window;
public class CTResultActivity extends Activity{
@Override
protected void onC... | true |
26d096a580ea7e9b4c657cd87ff5e96eda1459bf | Java | jatanrathod/Idea-Plagiarism | /IPlagiarism/src/iplagiarism/GUI.java | UTF-8 | 4,974 | 2.53125 | 3 | [
"MIT"
] | permissive | package iplagiarism;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import java... | true |
152533c4ef9a62a99c73a70a6b336fd6278ca35d | Java | happyforever8/FBonsite | /******missing number in Arithmetic.java | UTF-8 | 1,388 | 3.546875 | 4 | [] | no_license | Given an array that represents elements of arithmetic progression in order. One element is missing in the progression, find the missing number.
Input: arr[] = {2, 4, 8, 10, 12, 14}
Output: 6
Input: arr[] = {1, 6, 11, 16, 21, 31};
Output: 26
class GFG
{
// A binary search function that
// returns the missing... | true |
072757610a94ed7d8128e0216b1720618da93fb1 | Java | v1ckxy/radar-covid | /sources/p119o/p120a/C0926d1.java | UTF-8 | 1,496 | 1.53125 | 2 | [] | no_license | package p119o.p120a;
/* renamed from: o.a.d1 */
public class C0926d1 extends C0932f1 implements C0972r {
/* renamed from: f */
public final boolean f2526f;
public C0926d1(C0916a1 a1Var) {
boolean z = true;
super(true);
mo4248a(a1Var);
C0954m mVar = (C0954m) this._parentHan... | true |
239d05e908f4bb73478b130ac16f80b66e82bfa5 | Java | shashankg1991/eCatalogue | /app/src/main/java/com/e/spectra/presentation/view/BrandListener.java | UTF-8 | 246 | 1.648438 | 2 | [] | no_license | package com.e.spectra.presentation.view;
import android.content.Context;
import androidx.lifecycle.LiveData;
public interface BrandListener {
Context onStarted();
void onInsert(String response);
void onFailed(String message);
}
| true |
4f2219e36b86e0916c9be7216bbceb236e0d8cf8 | Java | nikks-tu/OME_NEW | /app/src/main/java/com/techuva/ome_new/api_interface/SendOTPDataInterface.java | UTF-8 | 491 | 1.898438 | 2 | [] | no_license | package com.techuva.ome_new.api_interface;
import com.google.gson.JsonElement;
import com.techuva.ome_new.app.Constants;
import com.techuva.ome_new.post_parameters.SendOTPPostParameters;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Header;
import retrofit2.http.POST;
public interface Sen... | true |
70c9472a6fa1e1a2bc3e22aecebc7c4352151bb3 | Java | DavidYi/C_DataStructure | /DataStructures/tokens/LeftParenthesisToken.java | UTF-8 | 122 | 1.648438 | 2 | [] | no_license | package tokens;
/**
* Created by David on 2/10/2016.
*/
public class LeftParenthesisToken extends ParenthesisToken{
}
| true |
029e5ce23ac01767acec3167b30695c6593b5fc9 | Java | SantiagoSinatra/SantiagoSinatraAdicional | /MuseumApplicationTest/app/src/main/java/com/dhsantiagosinatra/museumapplication/view/AdapterPaints.java | UTF-8 | 4,066 | 2.28125 | 2 | [] | no_license | package com.dhsantiagosinatra.museumapplication.view;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.ImageView;
impor... | true |
110621fc56618455919869378c9726ee7dc6b451 | Java | yfm049/oldcode | /BakSms/src/com/yfm/sms/NetWorkBroadcastReceiver.java | ISO-8859-1 | 615 | 1.882813 | 2 | [] | no_license | package com.yfm.sms;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public class NetWorkBroadcastReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context arg0, Intent arg1) {
// TODO Auto-generated method stub
Loginfo.write("Broadcas... | true |
c4794673051636ca22097de20cd89a2c0cf0549f | Java | yasyars/parking-app | /src/Model/TableModelGarage.java | UTF-8 | 2,003 | 3.078125 | 3 | [] | no_license | package Model;
import javax.swing.table.AbstractTableModel;
import java.util.List;
public class TableModelGarage extends AbstractTableModel {
List<Garage> listOfGarage;
public TableModelGarage(List<Garage> listOfGarage){
this.listOfGarage = listOfGarage;
}
@Override
public int getRowCoun... | true |
947eefef59e3db1088213987113081bc5f1747b4 | Java | isvilla88/Proyecto | /Platzigram/app/src/main/java/mx/com/platzigram/platzigram/Validación/ValidaciónDatos.java | UTF-8 | 4,609 | 2.328125 | 2 | [] | no_license | package mx.com.platzigram.platzigram.Validación;
import android.os.Bundle;
import android.support.design.widget.TextInputLayout;
import android.support.v7.app.AppCompatActivity;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.Patterns;
import android.view.View;
import android.widget.... | true |
21189c04c82171f208be4ffd6cc4812d0135d6de | Java | chinastyle/GitHub | /AspExecService/src/com/aspire/android/test/task/entity/Task.java | UTF-8 | 8,860 | 2.21875 | 2 | [] | no_license | /**
* @(#) Task.java Created on 2012-4-26
*
* Copyright (c) 2012 Aspire. All Rights Reserved
*/
package com.aspire.android.test.task.entity;
import java.util.Date;
import com.aspire.android.common.entity.BaseEntity;
import com.aspire.android.test.Constants;
import com.j256.ormlite.field.DataType;
impo... | true |
f587ecdd81a7c9a8b13b0baccb4b41dbba9ba215 | Java | Gemuesebau/GSEHEN | /eclipse-workspace/GSEHEN/src/main/java/de/hgu/gsehen/model/Messages.java | UTF-8 | 866 | 2.171875 | 2 | [
"MIT"
] | permissive | package de.hgu.gsehen.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class Messages {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private long id;
private String key;
... | true |
92bebbfa7b98d7c3696d20b4dd05687fb435cf4e | Java | LiuYongxin1995/FlinkDemo | /src/main/java/FlinkWarnByKey.java | UTF-8 | 4,431 | 2.3125 | 2 | [] | no_license | import org.apache.commons.lang3.StringUtils;
import org.apache.flink.api.common.functions.MapFunction;
import org.apache.flink.api.common.serialization.SimpleStringSchema;
import org.apache.flink.api.java.tuple.Tuple11;
import org.apache.flink.streaming.api.datastream.DataStream;
import org.apache.flink.streaming.api.d... | true |
9d479ee9625cb49ce60ab0b2ce8b1928449110e8 | Java | andreisavu/jclouds | /labs/abiquo/src/main/java/org/jclouds/abiquo/domain/enterprise/TemplateDefinitionList.java | UTF-8 | 7,977 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | /**
* Licensed to jclouds, Inc. (jclouds) under one or more
* contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. jclouds licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use ... | true |
21ed016ed1359dbf83be22db6ae04ba19cdab746 | Java | Biblivre/Biblivre-4 | /src/java/biblivre/administration/indexing/IndexingDTO.java | UTF-8 | 3,063 | 2.015625 | 2 | [] | no_license | /*******************************************************************************
* Este arquivo é parte do Biblivre4.
*
* Biblivre4 é um software livre; você pode redistribuí-lo e/ou
* modificá-lo dentro dos termos da Licença Pública Geral GNU como
* publicada pela Fundação do Software Livre (FSF); na versão 3 ... | true |
376e96182375be41ce761467c0ec95250cd37f94 | Java | Fynoli/TurismoTierraMediaWeb | /src/controllers/TipoAtraccionActualizar.java | UTF-8 | 2,148 | 2.203125 | 2 | [] | no_license | package controllers;
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;
import dao.Ti... | true |
005373edd5963b4f3cc9f0a7478708930845ed72 | Java | Queatz/snappy | /village-follower/src/main/java/com/village/things/FollowerMine.java | UTF-8 | 1,665 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package com.village.things;
import com.google.common.collect.ImmutableMap;
import com.queatz.earth.EarthField;
import com.queatz.earth.EarthKind;
import com.queatz.earth.EarthStore;
import com.queatz.earth.EarthThing;
import com.queatz.snappy.as.EarthAs;
import com.queatz.snappy.as.EarthControl;
import com.queatz.snap... | true |
8778b9d80d2d9189340281aea2f0a218e9fda23d | Java | qiuchili/ggnn_graph_classification | /program_data/JavaProgramData/98/2346.java | UTF-8 | 936 | 2.8125 | 3 | [
"MIT"
] | permissive | package <missing>;
public class GlobalMembers
{
public static int Main()
{
int n;
String tempVar = ConsoleInput.scanfRead();
if (tempVar != null)
{
n = Integer.parseInt(tempVar);
}
char[][] word = new char[n][20];
int i;
int sum = 0;
String tempVar2 = ConsoleInput.scanfRead()... | true |
b4df5b96d70d14d3de89197f69fdb170f710f212 | Java | xinil502/LearnJava | /src/netWorkProgram/UDPNetWork/UDP_3_Objcet_Server.java | UTF-8 | 1,560 | 3.28125 | 3 | [] | no_license | package netWorkProgram.UDPNetWork;
import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import java.io.ObjectInputStream;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
/**
* 服务端
*/
public class UDP_3_Objcet_Server {
public static void main(S... | true |
e1feefcabf3534e0db6535144cff37b752e3ee99 | Java | dan323/raytracing | /imaging/src/test/java/com/dan/geometry/phong/texture/test/LightTest.java | UTF-8 | 1,517 | 2.5625 | 3 | [] | no_license | package com.dan.geometry.phong.texture.test;
import com.dan.geometry.objects.Sphere;
import com.dan.geometry.phong.light.Ambient;
import com.dan.geometry.phong.light.ParallelLight;
import com.dan.geometry.phong.light.PointLight;
import com.dan.geometry.phong.material.Color;
import com.dan.geometry.utils.Point;
import ... | true |
2aaaec850789e5f73b10d7cc89a45f0bf70b6bb3 | Java | searleja/Family-History-Map-Server | /shared/src/Results/ClearResult.java | UTF-8 | 550 | 2.96875 | 3 | [] | no_license | package Results;
public class ClearResult {
private String message;
private boolean success;
/**
* Constructor for ClearResult. Stores the message to be output.
* @param message
*/
public ClearResult(String message) {
this.message=message;
success = false;
}
public String getMessage() {
... | true |
32917ae1c3de068aba0dc7e26588795fc2f30915 | Java | ahmedshehab123/Spring-Mvc-Ticketing-and-Booking-App | /src/main/java/com/event/controller/FriendsController.java | UTF-8 | 2,723 | 2.109375 | 2 | [] | no_license | package com.event.controller;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annota... | true |
1d1588e3746360f13d626a9c6ae3cd13e3649cfd | Java | whuang8/weekly-coding-challenge | /week1/Tests.java | UTF-8 | 922 | 2.953125 | 3 | [] | no_license | import junit.framework.*;
public class Tests extends TestCase {
protected Node n;
protected void setUp() {
n = new Node(1);
}
public void testInsert() {
Node head = n.insert(n, 2);
assertEquals(head.data, 2);
assertEquals(head.next.data, 1);
}
public void testFind() {
Node head = n.i... | true |
6e6b4beb92b04ea3488b273465f5e9c16a89d748 | Java | campues/AGRICOLA | /src/java/ModeloDao/ArchivoDao.java | UTF-8 | 4,475 | 2.46875 | 2 | [] | no_license | package ModeloDao;
import Control.Variables;
import Modelo.Archivo;
import config.Conexion;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
public class ArchivoDao {
... | true |
22ab8b2dc573afad29850361e4d49d4e1068e66b | Java | jonkjenn/hiofcommutingclient | /HIOFCommuting/src/no/hiof/hiofcommuting/register/LoginFragment.java | UTF-8 | 4,776 | 2.28125 | 2 | [] | no_license | package no.hiof.hiofcommuting.register;
import java.net.HttpCookie;
import no.hiof.hiofcommuting.R;
import no.hiof.hiofcommuting.objects.User;
import no.hiof.hiofommuting.database.HandleLogin;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask... | true |
4f9632a46a357b261917688c6261bedea20f2b49 | Java | soulofandroid/MVPApp | /app/src/main/java/com/myapp/presenter/BasePresenter.java | UTF-8 | 356 | 2.625 | 3 | [] | no_license | package com.myapp.presenter;
import java.lang.ref.WeakReference;
/**
* 解决内存泄漏
* @param <T>
*/
public class BasePresenter<T> {
protected WeakReference<T> mViewRef;
//进行绑定
public void attachView(T view){
mViewRef=new WeakReference<>(view);
}
//解绑
public void detachView(){
mViewRef.clea... | true |
f72bfc0e06a11995309441293f236d1c5219f812 | Java | DPurp4/ateam99-Social-Network | /Person.java | UTF-8 | 2,177 | 3.21875 | 3 | [] | no_license | // ALL STUDENTS COMPLETE THESE SECTIONS
// Title: Social Network Visualizer Program
// Files: Person.java
// Semester: Autumn 2019
//
// ATeam members: Devin DuBeau, LEC 002, ddubeau@wisc.edu, dubeau
// Mihir Arora, LEC 001, mrarora@wisc.edu, marora
// Xiaoyuan Liu, L... | true |
6855070c7a583f20ec0c8c378a1824ff375bf9ab | Java | Sale1996/Legal-QA-Bot | /Pravna_semanticki_projekat/question-answer-legaldoc/src/main/java/com/pravnainformatikasemantickiweb/questionanswerlegaldoc/sparqlQuestion/exceptions/SparqlQuestionNotFoundException.java | UTF-8 | 314 | 2.03125 | 2 | [] | no_license | package com.pravnainformatikasemantickiweb.questionanswerlegaldoc.sparqlQuestion.exceptions;
public class SparqlQuestionNotFoundException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 1L;
public SparqlQuestionNotFoundException(String message) {
super(message);
}
}
| true |