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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
94a929fffec842234fde7ff6c12456248541e158 | Java | gulbak89/Javaprogramming_B21 | /src/day27_ForEachLoop/ReverseString.java | UTF-8 | 431 | 3.46875 | 3 | [] | no_license | package day27_ForEachLoop;
import java.util.Arrays;
public class ReverseString {
public static void main(String[] args) {
String[] names={"amat", "semet", "anna", "sara"};
for (String each: names){
String reverse="";
for(int i=each.length()-1; i>=0; i--){
... | true |
1a5f699542ae3bb515158689285e4e03111bd6c3 | Java | zlevi91/EladGitHub | /Test7/test7-hodayabusso/Test/com/company/MenuTest.java | UTF-8 | 4,857 | 2.671875 | 3 | [] | no_license | package com.company;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.Test;
import java.io.*;
import java.nio.ByteBuffer;
import java.util.HashSet;
import java.util.Set;
import static com.company.Menu.words;
/**
* Created by hackeru on ... | true |
42c700662f2906a9a4556b68d477068fcc5cc2d1 | Java | bcgit/bc-java | /core/src/main/java/org/bouncycastle/pqc/crypto/sphincs/Wots.java | UTF-8 | 3,219 | 1.984375 | 2 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package org.bouncycastle.pqc.crypto.sphincs;
class Wots
{
static final int WOTS_LOGW = 4;
static final int WOTS_W = (1 << WOTS_LOGW);
static final int WOTS_L1 = ((256 + WOTS_LOGW - 1) / WOTS_LOGW);
//#define WOTS_L 133 // for WOTS_W == 4
//#define WOTS_L 90 // for WOTS_W == 8
static final i... | true |
9545ca735d02475e5843c9aa962a72f156a40bdb | Java | antonisko/omadopoiisi | /graph/Edge.java | UTF-8 | 129 | 2.03125 | 2 | [] | no_license | package pincoc.graph;
public class Edge {
String label;
public Edge(String lbl) {
this.label= lbl;
}
}
| true |
d9a3d9b6203ff79a1f2df439d3fd1e1fd76adab6 | Java | ehsanrst/Java_Tests | /Practice/src/NumToText.java | UTF-8 | 1,787 | 3.46875 | 3 | [] | no_license | import java.util.Scanner;
public class NumToText {
public static void main(String[] args) {
boolean p = true;
AlphabetNum alNum = new AlphabetNum();
Scanner scan = new Scanner(System.in);
while (p) {
// double aa = 0.0;
// int a = 0, b = 0, c = 0;
// String as = null, bs = null, cs = null;
Syst... | true |
4a33be2dfb5919667e35444645b67e7fe2cfc156 | Java | rociograff/LCC | /RPA2018/piramides/piramideletra.java | UTF-8 | 1,156 | 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 RPA2018.piramides;
import RPA2018.utiles.*;
/**
*
* @author usuario
*/
public class piramideletra {
public static... | true |
e57cda89d5ff492b476713c58f15a97c26f6f038 | Java | BugnarGeorgeta/algorithms | /src/main/java/org/fasttrackit/CurrencyConversion.java | UTF-8 | 1,085 | 4.125 | 4 | [] | no_license | package org.fasttrackit;
//Write a program that converts currency. Specifically, convert
// euros to U.S. dollars. Prompt for the amount of money in
// euros you have, and prompt for the current exchange rate
// of the euro. Print out the new amount in U.S. dollars.
// Ensure that fractions ... | true |
ed7a6c0f172ed5625b0809430851dbcc2ca6e042 | Java | trackingfox/MVCCRUDAPP | /src/com/abc/controller/DisplayController.java | UTF-8 | 2,371 | 2.515625 | 3 | [] | no_license | package com.abc.controller;
import java.io.IOException;
import java.io.PrintWriter;
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 com.abc.fac... | true |
11885de7a9d881b4f1a2d141a6c34368e53dca18 | Java | robot-aquila/bootes | /lib/src/test/java/ru/prolib/bootes/lib/config/BasicConfig2SectionTest.java | UTF-8 | 4,079 | 2.515625 | 3 | [] | no_license | package ru.prolib.bootes.lib.config;
import static org.junit.Assert.*;
import static org.easymock.EasyMock.*;
import java.io.File;
import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options;
import org.easymo... | true |
3d1ba23cc186480105f76511cf9e223157761e90 | Java | liuxianghong/Inventory | /Code/Inventory/src/main/Java/cn/liuxh/mapper/UserMapper.java | UTF-8 | 622 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package cn.liuxh.mapper;
import cn.liuxh.model.User;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* Created by liuxianghong on 16/11/23.
*/
public interface UserMapper {
User findUserInfo(@Param(value="userName")String name);
int login(User usr);
User getUserInfoById(@Param(va... | true |
71d5fc8f3d908811f7b9869bbb6e5b3e1572e066 | Java | crbiitr/code | /JavaDataStructure/src/com/java/searching/MaxDiffOfTwoPartsOfArray.java | UTF-8 | 916 | 3.84375 | 4 | [] | no_license | package com.java.searching;
import java.util.Stack;
public class MaxDiffOfTwoPartsOfArray {
public static void main(String[] args) {
int[] arr = {4,3,2,5,1};
System.out.println("Max is :: " + getMax(arr));
}
static int getMax(int[] arr) {
Stack S = getStack(arr);
int lmax = Integer.MIN_VALUE;
int max ... | true |
a82e8fcc10163dd14a43a752030be8dfd721bbc8 | Java | Vastra-Gotalandsregionen/oppna-program-mobile-apps | /mobile/composites/webcomp/src/test/java/se/vgregion/mobile/controllers/PrinterControllerTest.java | UTF-8 | 3,181 | 2.140625 | 2 | [] | no_license | /**
* Copyright 2010 Västra Götalandsregionen
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of version 2.1 of the GNU Lesser General Public
* License as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be u... | true |
19a1e14c7efdd2e8f18372aea09f37c6b1e89d5a | Java | magorska/kodilla-course | /kodilla-good-patterns/src/main/java/com/kodilla/good/patterns/Food2Door/OrderRetriever.java | UTF-8 | 844 | 3 | 3 | [] | no_license | package com.kodilla.good.patterns.Food2Door;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;
public class OrderRetriever {
public OrderRequest retriever() {
Supplier supplier = new Supplier("Extra Food Shop", "Stefan",
"Zamachowski", new BigDecimal(123456789)... | true |
ed1a4e50706431013b630f83137925999c3f9675 | Java | aitp2/a5 | /wechatbackend/src/main/java/com/wechat/backend/controller/WechatController.java | UTF-8 | 7,026 | 2.0625 | 2 | [] | no_license | package com.wechat.backend.controller;
import java.io.File;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.fa... | true |
148d749a6feba4c6ed78c3e10a13f290722a450a | Java | Cardoso21/Helpdesk1 | /src/main/java/com/cardoso/helpdesk/resources/ChamadoResource.java | UTF-8 | 1,771 | 2.265625 | 2 | [] | no_license | package com.cardoso.helpdesk.resources;
import com.cardoso.helpdesk.domain.Chamado;
import com.cardoso.helpdesk.domain.DTO.ChamadoDTO;
import com.cardoso.helpdesk.services.ChamadoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springfra... | true |
45f191d88011ac90aa0bcde4a3e6fcaa2f7ae7c2 | Java | hzheng/algo-problems | /leetcode/array_string/ClosestRoom.java | UTF-8 | 5,120 | 3.28125 | 3 | [
"MIT"
] | permissive | import java.util.*;
import org.junit.Test;
import static org.junit.Assert.*;
// LC1847: https://leetcode.com/problems/closest-room/
//
// There is a hotel with n rooms. The rooms are represented by a 2D integer array rooms where
// rooms[i] = [roomIdi, sizei] denotes that there is a room with room number roomIdi and... | true |
087b166b892388de59c56be21b62b4dec260d2cc | Java | deTemporada/detemporada-app | /app/src/main/java/cat/detemporada/models/CategoriaProducte.java | UTF-8 | 1,052 | 3.203125 | 3 | [] | no_license | package cat.detemporada.models;
// Enum que representa les categories d'un producte. Finalment no s'han fet servir
// en l'àmbit d'aquest treball però serviran per futures millores.
public enum CategoriaProducte {
FRUITA("Fruita", 0),
VERDURA("Verdura", 1),
LLEGUMS("Llegums", 2),
CEREALS("Cereals", 3)... | true |
75540e99cc04cf930850d1832aba6d2771cca24c | Java | 7158798/zuohao | /51tzgl-common/common/base-common/src/main/java/com/base/common/fileupload/client/AzureFileUploadUtils.java | UTF-8 | 1,049 | 1.96875 | 2 | [] | no_license | package com.base.common.fileupload.client;
import com.base.common.fileupload.facade.AliyunFileUploadFacade;
import com.base.common.fileupload.impl.AzureFileUploadFacadeImpl;
import com.base.common.fileupload.impl.request.AliyunOSSReq;
import com.jucaifu.common.property.PropertiesUtils;
/**
* Created by luwei on 17-6... | true |
3b4aeffacd8f7c9162c49a76ecc826dfbf92ad65 | Java | soghao/zgyh | /BocBankMobile/src/main/java/com/boc/bocsoft/mobile/bocmobile/buss/creditcard/EApplyCreditCardFragment.java | UTF-8 | 2,049 | 1.773438 | 2 | [] | no_license | package com.boc.bocsoft.mobile.bocmobile.buss.creditcard;
import com.boc.bocsoft.mobile.bocmobile.ApplicationConfig;
import com.boc.bocsoft.mobile.bocmobile.ApplicationContext;
import com.boc.bocsoft.mobile.bocmobile.R;
import com.boc.bocsoft.mobile.bocmobile.base.activity.web.model.WebInfoProxy;
import com.boc.bocso... | true |
7ee983cdd42bdf35dec9ec31775fd9627be338fc | Java | dfeshed/nw-ueba-saas | /presidio-core/fortscale/presidio-ade/presidio-ade-sdk/src/test/java/presidio/ade/sdk/common/AdeManagerSdkTest.java | UTF-8 | 9,860 | 1.539063 | 2 | [] | no_license | package presidio.ade.sdk.common;
import fortscale.utils.elasticsearch.PresidioElasticsearchTemplate;
import fortscale.utils.spring.TestPropertiesPlaceholderConfigurer;
import fortscale.utils.test.category.ModuleTestCategory;
import fortscale.utils.test.mongodb.MongodbTestConfig;
import fortscale.utils.time.SystemDateS... | true |
9822833bcde4bdf9e152261c5adc3b4b697844f9 | Java | Piffek/FoodFinder | /src/main/java/com/piwkosoft/foodFinder/Core/Services/Interfaces/TokenService.java | UTF-8 | 522 | 2.0625 | 2 | [] | no_license | package com.piwkosoft.foodFinder.Core.Services.Interfaces;
import com.piwkosoft.foodFinder.Core.Persistance.Entities.VerificationTokenEntity;
/**
* Project: FoodFinder
* <p>
* Created on: 13.03.2020
* <p>
* Author : Patryk Piwko
* <p>
* Copyright 2020 (C) PiwkoSoft.
*/
public interface TokenService {
Ver... | true |
76226fa971ea2b577d08cfdfd86e4e235080c624 | Java | Gosh-C/accookeeper | /SKapp/src/main/java/gosh/com/accookeeper/MainActivity.java | UTF-8 | 5,633 | 1.976563 | 2 | [] | no_license | package gosh.com.accookeeper;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.provider.MediaStore;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCom... | true |
fa1b32691439bcad69bdbb7923888b9b86d58ce7 | Java | Dmitriy1Fokin/tavrzCMS_api | /src/main/java/ru/fds/tavrzcms3/service/CostHistoryService.java | UTF-8 | 675 | 1.96875 | 2 | [] | no_license | package ru.fds.tavrzcms3.service;
import ru.fds.tavrzcms3.domain.CostHistory;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Optional;
public interface CostHistoryService {
Optional<CostHistory> getCostHistoryById(Long costHistoryId);
List<CostHistory> getCostHistory... | true |
889903a82e944f7e8f732bfda0ff19034cff5f51 | Java | dashuxia888/ykyzl | /src/main/java/com/github/pengpan/util/CaptchaUtil.java | UTF-8 | 5,261 | 2.203125 | 2 | [] | no_license | package com.github.pengpan.util;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.github.kevinsawicki.http.HttpRequest;
import com.github.pengpan.service.CoreService;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import java.io.File;
import java.io.FileInputStream;
import j... | true |
03b2169bc17c0a1ed7ab35099f2985c9e7f236f1 | Java | Boutaggount/back | /src/main/java/com/example/GestionHackaton/repository/AdministrateurRepository.java | UTF-8 | 261 | 1.53125 | 2 | [] | no_license | package com.example.GestionHackaton.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.example.GestionHackaton.model.Administrateur;
public interface AdministrateurRepository extends JpaRepository<Administrateur, Long>{
}
| true |
7c3a732789868e3a2e12d965aa20c75dc6b6231f | Java | sai10/JAVA-Sample-Programs | /PRACTICE/INTERFACE/Three6.java | UTF-8 | 228 | 2.375 | 2 | [] | no_license |
package test1;
import test1.subtest1.One6;
public class Three6 extends Two6 implements One6 {
public void display(){
System.out.println("Hi");
}
public void show(){
System.out.println("Friend");
}
}
| true |
50b2a0552c6521c9aa0623848dfdab95a48e1689 | Java | xtaticzero/AGACEApp | /AGACEApp/FIS-DTO/src/main/java/mx/gob/sat/siat/feagace/modelo/dto/ordenes/FecetPromocion.java | UTF-8 | 7,710 | 1.859375 | 2 | [] | no_license | /*
* Todos los Derechos Reservados 2013 SAT.
* Servicio de Administracion Tributaria (SAT).
* Este software contiene informacion propiedad exclusiva del SAT considerada
* Confidencial. Queda totalmente prohibido su uso o divulgacion en forma
* parcial o total.
*/
package mx.gob.sat.siat.feagace.modelo.dto.ordene... | true |
0a751456517c6c11a569695266f53ca13c17ed05 | Java | sivanov91/bd_myprogect | /src/main/java/com/myproject/app/domain/Product.java | UTF-8 | 1,913 | 2.421875 | 2 | [] | no_license | package com.myproject.app.domain;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;
/**
* Created by IntelliJ IDEA.
* User: lnex
* Date: 13.04.13
* Time: 8:40
* To change this template use File | Settings | File Templates.
*/
@Entity... | true |
e4b491f144063ece9aebff7ffed9ad6527e98e87 | Java | jzjloveu/Leetcode-java | /LinkedList/RemoveNthNodeFromEndOfList/RemoveNthFromEnd.java | UTF-8 | 1,346 | 4.03125 | 4 | [] | no_license | //Remove Nth Node From End of List
/*
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the linked list becomes 1->2->3->5.
Note:
Given n will always be valid.
Try to do thi... | true |
0374376f0cdb0140c9afb074330270f8e7799159 | Java | Isabaellchen/SpigotEventSniff | /src/main/java/rocks/isor/eventsniff/eventsniff/listeners/EntityEventListener.java | UTF-8 | 9,932 | 1.8125 | 2 | [] | no_license | package rocks.isor.eventsniff.eventsniff.listeners;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.AreaEffectCloudApplyEvent;
import org.bukkit.event.entity.CreatureSpawnEvent;
import org.bukkit.event.entity.CreeperPowerEvent;
import org.bukkit.event.entity.Ender... | true |
f37fbb6e7740ec45ee800b781bdd02fa505e8c80 | Java | nhatthanh2412/demoGra | /src/main/java/com/example/ServerRunorDie/service/SkofteService.java | UTF-8 | 3,431 | 2.078125 | 2 | [] | no_license | package com.example.ServerRunorDie.service;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springfr... | true |
5caaed1b068ce54d2c6b8bb471d124a25f7a4fb3 | Java | jun33199/Study | /lanxum/SMSB_20140527_2014_MAY17/src/com/ttsoft/bjtax/smsb/yhsgl/web/YhsxsdrAction.java | GB18030 | 12,115 | 1.632813 | 2 | [] | no_license | /*
* <p>Title: ˰ϵͳ걨</p>
* <p>Copyright: (C) 2003-2004 еط˰֣廪ͬɷ˾Ȩ. </p>
* <p>Company: 廪ͬɷ˾</p>
*/
package com.ttsoft.bjtax.smsb.yhsgl.web;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
impor... | true |
fa5c3a16fe33afa75b900666816a25e47b2d207d | Java | apolol92/FahrstundenManager2014_archived | /src/com/example/fahrstundenmanager_v5/LessonManager.java | ISO-8859-2 | 9,199 | 2.375 | 2 | [] | no_license | package com.example.fahrstundenmanager_v5;
import java.util.ArrayList;
import java.util.List;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
... | true |
824c30c76930e66182ae5fc45c0d3b2ce3b42ab0 | Java | lipengggg/oystergold | /oystergold-manager/oystergold-manager-pojo/src/main/java/com/itoystergold/pojo/DeployCardbinsExample.java | UTF-8 | 19,801 | 2.203125 | 2 | [] | no_license | package com.itoystergold.pojo;
import java.util.ArrayList;
import java.util.List;
public class DeployCardbinsExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public DeployCardbinsExample() {
oredCriteria = new ArrayLis... | true |
98cf782fa364dd9525018c296a9db0f3dd69135e | Java | dreedyman/Rio | /rio-lib/src/main/java/org/rioproject/impl/opstring/DefaultOpStringParserSelectionStrategy.java | UTF-8 | 1,811 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright to the original author or authors.
*
* 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 app... | true |
c7315005a6bc64eeb8caae71ad04bdd68dd916d0 | Java | kmashint/AkmeCore | /src/akme/core/io/StreamUtil.java | UTF-8 | 2,044 | 3.03125 | 3 | [] | no_license | package akme.core.io;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.ByteBuffer;
import java.nio.channels.ReadableByteChannel;
import java.nio.channels.WritableByteChannel;
import akme.core.util.ExceptionUtil;
/**
* IO-Stre... | true |
4d8196eacba30fe050d82a816211908825b3395b | Java | P79N6A/icse_20_user_study | /methods/Method_1532.java | UTF-8 | 96 | 1.898438 | 2 | [] | no_license | @Override public boolean requiresExtraMap(String id){
return FLog.isLoggable(FLog.VERBOSE);
}
| true |
c16d4504940c3213f7a87c5408694469c14cf74b | Java | Chocohead/Argo | /src/test/argo/jdom/JsonObjectTest.java | UTF-8 | 3,459 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2010 Mark Slater
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... | true |
3ea170d6caa00af7c1db0b1df0f727cc27999bec | Java | PrabhatKJena/CoreAlgoDST | /src/main/java/edu/pk/dst/graph/BellmanFordShortestPart.java | UTF-8 | 3,383 | 3.53125 | 4 | [] | no_license | package edu.pk.dst.graph;
import edu.pk.dst.graph.adt.Edge;
import edu.pk.dst.graph.adt.Graph;
import edu.pk.dst.graph.adt.Vertex;
import edu.pk.dst.graph.util.GraphUtil;
import java.util.Optional;
/**
* Bellman Ford's algorithm solves Single Source Shortest Path problem including -ve weight edges.
* <p>
* Bellma... | true |
ac318ddd5b063c0e3a32b71ff61c118b529f0159 | Java | Ay615/EuropeProgram | /src/main/java/com/unitedcoder/json/Courses.java | UTF-8 | 785 | 2.109375 | 2 | [] | no_license | package com.unitedcoder.json;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
public class Courses {
@JsonProperty("webAutomation")
private List<WebAutomation> webAutomation;
@JsonProperty("Api")
private List<Api> api;
public Courses() {
}
public Courses(Lis... | true |
f0ec700e7b5663d217dbfe4c1d35d21e493e69b2 | Java | kotonoha/akane | /util/src/main/scala/ws/kotonoha/akane/utils/ParseUtil.java | UTF-8 | 1,372 | 2.5 | 2 | [] | no_license | /*
* Copyright 2012-2016 eiennohito (Tolmachev Arseny)
*
* 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 appli... | true |
79b9d3a4d821b12ba81f0402e55f47c26cc844e6 | Java | boydos/kindleweb | /src/main/java/com/ds/kindle/DownloadServlet.java | UTF-8 | 7,143 | 2.359375 | 2 | [] | no_license | package com.ds.kindle;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URLEncoder;
import javax.servlet.ServletException;
import javax.serv... | true |
20908de0dad485e20228a06f1c0f6e3c8aa5c897 | Java | tianqiu/EMS | /src/action/AddPart.java | UTF-8 | 2,026 | 2.40625 | 2 | [] | no_license | package action;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Date;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRe... | true |
4cf52d55e36e449b53f919d36be762c9a5fc1f33 | Java | xiongben-tongxue/show-server | /service/biz_service/src/main/java/one/show/pay/service/impl/ExtractRmbServiceImpl.java | UTF-8 | 2,808 | 1.984375 | 2 | [] | no_license | package one.show.pay.service.impl;
import java.util.List;
import java.util.Map;
import one.show.common.TimeUtil;
import one.show.common.TypeUtil;
import one.show.common.exception.ServiceException;
import one.show.pay.dao.ExtractRmbMapper;
import one.show.pay.domain.ExtractRmb;
import one.show.pay.domain.ReturnList;
i... | true |
38ad3ed50c6c0cee38ad0aeef168672569a39c21 | Java | anilkumarb1248/hiberanate-demos | /src/main/java/com/demo/mappings/OneToOneTest.java | UTF-8 | 1,474 | 2.65625 | 3 | [] | no_license | package com.demo.mappings;
import org.hibernate.Session;
import com.demo.emp.builder.EmployeeSessionBuilder;
public class OneToOneTest {
static {
try {
Class.forName("com.demo.emp.builder.EmployeeSessionBuilder");
} catch (Exception e) {
e.printStackTrace();
System.exit(0);
}
}
public static void... | true |
fe80dad4fa47adf7beee28a3e4527191c6eb21a9 | Java | poetries/StudyNote | /Java/javaDemo/demo21/TestExcep_10.java | UTF-8 | 2,917 | 3.78125 | 4 | [] | no_license | //异常的范围
/*
子类覆盖了基类方法时:
子类方法抛出异常的范围不能大于基类方法抛出的异常范围
子类方法可以不抛出异常,也可以只抛出某类方法的部分异常
但不可以抛出基类方法以外的异常
*/
//自定义异常A
class A extends Exception
{
}
//自定义异常B
class B extends Exception
{
}
//自定义异常C
class C extends Exception
{
}
class M
{
void f() throws A,B
{
}
}
/*
子类覆盖了基类方法时:
子类方法抛出异常的范围不能大于基类方法抛出的异常范围
... | true |
d8626afa309058603a9bd3ddc8a6ffb754a76c66 | Java | Nagarjune1/fap-diplom | /cd/src/fapapp/fuzzy-automata/src/test/java/cz/upol/fapapp/fa/automata/TestAutomataCreator.java | UTF-8 | 2,712 | 2.84375 | 3 | [] | no_license | package cz.upol.fapapp.fa.automata;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
import cz.upol.fapapp.core.automata.State;
import cz.upol.fapapp.core.fuzzy.Degree;
import cz.upol.fapapp.core.fuzzy.sets.FuzzySet;
import cz.upol.fapapp.core.fuzzy.sets.FuzzyTernaryRela... | true |
85d7da87e85fd2311ce9dd15488e2da893e2b015 | Java | manuelpalma96/therialudrink | /app/src/main/java/pmh/prograudrink/VerificacionEdad.java | UTF-8 | 1,214 | 1.984375 | 2 | [] | no_license | package pmh.prograudrink;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
public class VerificacionEdad extends AppCompatActivity {
Button siguiente;
Button no;
... | true |
ebe11bd632bfd2c3b2ca0cd523887d0441ad0a82 | Java | hjc851/SourceCodePlagiarismDetectionDataset | /Entire Dataset/1-24/warehouse/Core.java | UTF-8 | 763 | 2.765625 | 3 | [
"MIT"
] | permissive | package warehouse;
public class Core<T> {
private T evidence = null;
private Core<T> initial = null;
private Core<T> come = null;
public synchronized T takeFiles() {
return this.evidence;
}
public synchronized void dictatedStatistics(T analysis) {
this.evidence = analysis;
}
public synchroni... | true |
5c8cabff7915e741e74e1a86ea80d9486b7b3cd6 | Java | balicamp/balicamp-lib-zk | /sandbox-zk/src/main/java/id/co/sigma/lab/zk/controller/LOVSandboxController.java | UTF-8 | 1,846 | 1.90625 | 2 | [] | no_license | package id.co.sigma.lab.zk.controller;
import java.util.ArrayList;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.select.annotation.Wire;
import org.zkoss.zul.Bandbox;
import org.zkoss.zul.Combobox;
import org.zkoss.zul.ListModelList;
import id.co.sigma.zk.ui.annotations.LookupEnabledControl;... | true |
fd4de343c61a02bae65ab8dda022e3b0f5e06194 | Java | neuqjun/guns-project | /guns-api/src/main/java/com/stylefeng/guns/api/cinema/vo/CinemaConditionVo.java | UTF-8 | 321 | 1.523438 | 2 | [
"Apache-2.0"
] | permissive | package com.stylefeng.guns.api.cinema.vo;
import lombok.Data;
import java.io.Serializable;
import java.util.Map;
@Data
public class CinemaConditionVo implements Serializable {
private static final long serialVersionUID = -7211143274943172805L;
private Integer status;
private Map<String, Object> data;
}... | true |
2981b7b220db1f01554389031cbcfbc4ec32bb3a | Java | liangxm/ws_java_web | /fmall/src/java/com/fm/domain/vo/BaseFinance.java | UTF-8 | 1,929 | 1.921875 | 2 | [] | no_license | package com.fm.domain.vo;
public class BaseFinance {
String currency;
String incomeType;
String salesStatus;
String timeLimite;
String purchaseAmount;
String expectedBenefits;
String riskLevel;
String productType;
String issueBank;
String salesRegion;
String pageNumber;
public BaseFinance(){
}
public... | true |
fb395810d5d08325f6a8375cba4f54ff785120b6 | Java | roza1990/moviePortal | /src/main/java/servlet/AdminServlet.java | UTF-8 | 706 | 2.421875 | 2 | [] | no_license | package servlet;
import manager.GenreManager;
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 java.io.IOException;
@WebServlet(urlPatterns = "/... | true |
1e88baaf9dfec46f755d2769b16ee66d2001f732 | Java | ale-putrinob/TP-DDS | /src/main/java/dominio/validacionPassword/SinCaracteresConsecutivos.java | UTF-8 | 283 | 2.34375 | 2 | [] | no_license | package dominio.validacionPassword;
import dominio.buscador.BuscadorEnArchivo;
public class SinCaracteresConsecutivos implements ValidacionPassword{
public boolean cumpleCondicion(String password) {
return !(BuscadorEnArchivo.encontrarInclusion(password, "caracteresConsecutivos.txt"));
}
}
| true |
4ac2649ddf7611c4c07b2e6e262dde987a686f2c | Java | jianwufeng/myproject | /crm-client/src/main/java/com/ho/service/ILoginSourceService.java | UTF-8 | 160 | 1.578125 | 2 | [] | no_license | package com.ho.service;
import com.crm.domain.ho.LoginSource;
public interface ILoginSourceService {
public LoginSource getLoginSource(Long id);
}
| true |
1f8c92a474fb5f57d5a4076c6c08e09eaef99f5a | Java | n4ela/mcmanager | /monitor/src/main/java/mcmanager/monitor/utils/SymbolicLinkUtils.java | UTF-8 | 646 | 2.71875 | 3 | [] | no_license | package mcmanager.monitor.utils;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import mcmanager.exception.CoreException;
public class SymbolicLinkUtils {
public static void createSymbolicLink(File fileLink, File targetSource) throws CoreException {
... | true |
880f9277c114f61f03dec13d6dcd50142a48a6e8 | Java | profamaroca/biosim | /src/Main.java | ISO-8859-1 | 4,481 | 3.984375 | 4 | [] | no_license | import java.util.Scanner;
import java.util.ArrayList;
public class Main {
static Scanner scan = new Scanner(System.in);
static ArrayList<Animal> array = new ArrayList<Animal>(); // uma lista de variveis genricas
public static void main(String [] args) {
menu();
}
public static void men... | true |
20267ce1ea12f79cffded088606e90b7079dc4a3 | Java | napuping/gfy | /src/main/java/com/nap/entity/po/GdUser.java | UTF-8 | 2,607 | 1.96875 | 2 | [] | no_license | package com.nap.entity.po;
import java.io.Serializable;
import java.util.Date;
public class GdUser implements Serializable{
private static final long serialVersionUID = 1L;
private Integer userId;
private String username;
private String password;
private String phone;
priv... | true |
7734ddc65abb49f535874b322aca5940e631617e | Java | HaslerChoo/Supermercado | /src/Classes/Produto.java | UTF-8 | 1,496 | 2.765625 | 3 | [] | no_license | package Classes;
import java.io.Serializable;
import java.util.Date;
public class Produto implements Serializable
{
private String nome, tipo;
private long codigo;
protected double preco;
private Date dataValidade;
public Produto(String nome, String tipo,double preco, Date dataValidade)
{
this.nome = nome... | true |
6af292308c91b7f40c7d9799d385f8e700cf99a6 | Java | suniltota/TRIDent-CD | /src/main/java/com/actualize/mortgage/cd/datamodels/Deal.java | UTF-8 | 1,054 | 2.28125 | 2 | [] | no_license | package com.actualize.mortgage.cd.datamodels;
import org.w3c.dom.Element;
import com.actualize.mortgage.cd.domainmodels.MISMODataAccessObject;
/**
* represents Deal in MISMO XML
* @author sboragala
*
*/
public class Deal extends MISMODataAccessObject {
Collaterals collaterals;
Liabilities liab... | true |
cacabdc1ccbed5974c84bbc15ebdfe61e0b94207 | Java | eastechsystem/testspring | /src/main/java/com/ts/packagemanager/dao/PackageInformationDao.java | UTF-8 | 643 | 1.953125 | 2 | [] | no_license | /**
*
*/
package com.ts.packagemanager.dao;
import java.util.List;
import com.ts.packagemanager.exception.DaoException;
import com.ts.packagemanager.model.PackageInformation;
/**
* @author Jahanzaib Ali
* @since June 19, 2017
*
*/
public interface PackageInformationDao {
public PackageInformation getPackage... | true |
8e5f845f41259fd4c17fd3a803c66400ef01afff | Java | nisha181/DualTable | /DualTable/src/main/java/com/cognizant/DualTable/DualTableApplication.java | UTF-8 | 356 | 1.671875 | 2 | [] | no_license | package com.cognizant.DualTable;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication(scanBasePackages="com.cognizant")
public class DualTableApplication {
public static void main(String[] args) {
SpringApplication.run(DualT... | true |
8497cd729afed09c12ae317946c43214a71e8328 | Java | zhongxingyu/Seer | /Diff-Raw-Data/30/30_8da1dd21a0b074c9e0e3b0bc68eee2f6fea7103b/RMCustomerImpl/30_8da1dd21a0b074c9e0e3b0bc68eee2f6fea7103b_RMCustomerImpl_s.java | UTF-8 | 6,853 | 2.5 | 2 | [] | no_license | package serversrc.resImpl;
import java.rmi.RMISecurityManager;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.server.UnicastRemoteObject;
import serversrc.resInterface.*;
import java.util.Calendar;
import java.util.Enumeration;... | true |
6bdbe0bb724af90cefd173d86f6f13277d710a48 | Java | Eegabooga/BattleChestEvents | /BattleChestEvents/src/net/thebattlecraft/eegabooga/BattleChestEvents/listeners/BCEPlayerListener.java | UTF-8 | 3,979 | 2.8125 | 3 | [] | no_license | package net.thebattlecraft.eegabooga.BattleChestEvents.listeners;
import java.util.logging.Logger;
import net.thebattlecraft.eegabooga.BattleChestEvents.BattleChestEvents;
import net.thebattlecraft.eegabooga.BattleChestEvents.managers.BCEChestManager;
import net.thebattlecraft.eegabooga.BattleChestEvents.managers.Per... | true |
b955d177e3d9b3befe854fd10eeb80c7be05c2bd | Java | pongpat705/HCU_SAFEKEEP | /src/main/java/th/ac/hcu/repository/master/PatientProfileRepository.java | UTF-8 | 469 | 1.90625 | 2 | [] | no_license | package th.ac.hcu.repository.master;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import th.ac.hcu.entity.master.IpePatientProfile;
@Repository
public interface PatientProfileRepository... | true |
c8775fcd0bf549c921b82eb41b3fd29ff64e6dfd | Java | MAOBIQIONG/jianlian | /src/com/fh/util/noticePushutil.java | UTF-8 | 863 | 2.171875 | 2 | [] | no_license | package com.fh.util;
import org.json.JSONObject;
import com.fh.util.wangyi.WyUtil;
public class noticePushutil {
public boolean toNotice(String noticeText) throws Exception{
//获取notice.properties noticeText2内容。
//String vv3=new String(noticeText.getBytes("ISO-8859-1"),"UTF-8");
String not... | true |
446bc876b9da9f66734e8d7d859414f24b569144 | Java | kevin911/leetcode | /leetCode/src/main/java/com/kevin/leetCode/tree/BinarySearchTreeNode.java | UTF-8 | 518 | 2.890625 | 3 | [] | no_license | package com.kevin.leetCode.tree;
public class BinarySearchTreeNode {
TreeNode root;
public TreeNode getRoot() {
return root;
}
public void setRoot(TreeNode root) {
this.root = root;
}
public TreeNode insert(TreeNode newNode) {
if(root == null) {
return root = newNode;
} else if(new... | true |
afe401482f145d9eb128b0be61d42cd300b37c15 | Java | zbramble/control-center | /backup/scheduler_170716/wenba-scheduler/src/main/java/com/wenba/scheduler/search/SearchServerStatistics.java | UTF-8 | 4,319 | 2.46875 | 2 | [] | no_license | package com.wenba.scheduler.search;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;
import com.wenba.scheduler.AbstractServerStatistics;
/**
* @author zhangbo
*
*/
public class SearchServerStatistics extends AbstractServerStatistics {
/**
* ... | true |
b340220d25f616c53f0c1ab340de40ccecc61c7e | Java | govwhiz/jicofo | /src/main/java/org/jitsi/jicofo/rest/Statistics.java | UTF-8 | 1,302 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package org.jitsi.jicofo.rest;
import org.jitsi.jicofo.*;
import org.jitsi.jicofo.stats.*;
import org.jitsi.jicofo.util.*;
import org.json.simple.*;
import javax.inject.*;
import javax.ws.rs.*;
import javax.ws.rs.core.*;
import static org.jitsi.xmpp.extensions.colibri.ColibriStatsExtension.*;
@Path("/stats")
public... | true |
8a6f656e1c05e0e8e274f12a03d0a5f911ea12bb | Java | JiangLirui/indoor-location | /indoor-location/location-bootstrap/src/main/java/cn/edu/uestc/indoorlocation/exceptions/ILException.java | UTF-8 | 192 | 2.15625 | 2 | [] | no_license | package cn.edu.uestc.indoorlocation.exceptions;
/**
*
* @author vincent
*
*/
public class ILException extends RuntimeException{
public ILException(String error) {
super(error);
}
}
| true |
7807696d096bc232d83de91331cb3332f76e2d8f | Java | kiuwan/rules-examples | /src/com/optimyth/qaking/rules/samples/csharp/UnusedLocalVar.java | UTF-8 | 1,489 | 2.4375 | 2 | [] | no_license | /**
*
*/
package com.optimyth.qaking.rules.samples.csharp;
import com.als.core.AbstractRule;
import com.als.core.RuleContext;
import com.als.core.RuleViolation;
import com.als.core.ast.BaseNode;
import com.google.common.base.Predicate;
import com.optimyth.csharp.symboltable.LocalSymbolTable;
import com.optimyth.csh... | true |
0ff5047ac70fa812a307666ce0b55b23f3df3b99 | Java | justinedelson/hippo-jcr-shell | /src/main/java/org/hippoecm/tools/cli/Terminal.java | UTF-8 | 9,245 | 2.3125 | 2 | [] | no_license | /*
* Copyright 2008 Hippo.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | true |
84f8730a1eab8649c1b661f44f061630b24cf973 | Java | andypuga/springsecurityjsf | /IdeaProjects/serv/src/main/java/com/andy/serv/data/Banco.java | UTF-8 | 2,712 | 2.359375 | 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 com.andy.serv.data;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.... | true |
690e3441ce6a7df5bcda9f50b7e15ae04b497128 | Java | pveeckhout/bachelor-thesis | /implementation/lib/Encog/src/test/java/org/encog/persist/TestPersistRBF.java | UTF-8 | 2,097 | 1.859375 | 2 | [
"MIT"
] | permissive | /*
* Encog(tm) Core v3.2 - Java Version
* http://www.heatonresearch.com/encog/
* https://github.com/encog/encog-java-core
* Copyright 2008-2013 Heaton Research, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... | true |
386c8e1865e1d2a63b9a2b80f0cd49198d73dc30 | Java | VVI94/BooksWorld | /src/controllers/getSessionUser.java | UTF-8 | 798 | 2.296875 | 2 | [] | no_license | package controllers;
import java.io.IOException;
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 com.google.gson.Gson;
import models.entities.U... | true |
2b5eb920a932b0e173d23f4b0b07e0e68fbe7329 | Java | vipview/familyaccount | /src/com/snail/web/ListAccountTypeServlet.java | UTF-8 | 1,534 | 2.109375 | 2 | [] | no_license | package com.snail.web;
import java.io.IOException;
import java.util.List;
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 com.snail.entity.Acco... | true |
5dff9323253018fd131328893f7114fbb705c76b | Java | laity-slf/PTA | /基础编程题目集/7-21 求特殊方程的正整数解.java | UTF-8 | 554 | 3.328125 | 3 | [] | no_license | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sca = new Scanner(System.in);
int num = sca.nextInt();
boolean flag = false;
sca.close();
for(int i = 0; i <= Math.sqrt(num); i++) {
int a = i * i;
for(int j = i + 1; j < Math.sqrt(num); j++) {
int b = ... | true |
f505a79eb6d330e7b616e57df1ca873aa9565692 | Java | ifeilong/feilong | /feilong-lib/feilong-lib-commons-digester3/src/main/java/com/feilong/lib/digester3/binder/SetRootBuilder.java | UTF-8 | 976 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package com.feilong.lib.digester3.binder;
import com.feilong.lib.digester3.SetRootRule;
/**
* Builder chained when invoking {@link LinkedRuleBuilder#setRoot(String)}.
*
* @since 3.0
*/
public final class SetRootBuilder extends AbstractParamTypeBuilder<SetRootRule>{
SetRootBuilder(String keyPattern, String na... | true |
1ab29f049d4ff93d31c7f7b436c388bea3ecf793 | Java | kgbsibbi/PHMRSample | /MiniPHMR/src/phmr/elements/PlayingDevice.java | UTF-8 | 1,091 | 2.0625 | 2 | [] | no_license | package phmr.elements;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
@XmlType(name="playingDevice")
public class PlayingDevice {
private CodeSystem code;
private CodeSystem translation;
private String manufacturerModelName;
... | true |
f08f777d89ccec3ff7252c1b279f6398e89b694f | Java | ianlintner/deep-assoc-completion | /src/org/klesun/lang/Lang.java | UTF-8 | 17,408 | 3.140625 | 3 | [] | no_license | package org.klesun.lang;
import com.intellij.psi.PsiElement;
import org.jetbrains.annotations.NotNull;
import java.util.*;
import java.util.function.*;
/**
* put here wrappers for things you use extremely
* frequently like lists, dicts, functions, etc...
*/
public class Lang
{
// tuple of 2 elements
publi... | true |
2474ade1794a9acfd2444f22b2dcada12507bd27 | Java | masaruohashijr/Kaizen | /logus-kaizen-app/src/main/java/com/logus/kaizen/view/apoio/tipomondai/TipoMondaiGrid.java | UTF-8 | 1,108 | 2.28125 | 2 | [] | no_license | /**
*
*/
package com.logus.kaizen.view.apoio.tipomondai;
import com.logus.core.model.translation.CoreTranslator;
import com.logus.core.model.translation.TM;
import com.logus.core.view.list.BeanGrid;
import com.logus.kaizen.model.apoio.tipomondai.TipoMondai;
import com.logus.kaizen.model.translation.KaizenTranslator;... | true |
8e134e43b68d3f918e5501c896ab753c78253e6a | Java | foryourselfand/programming_lab8 | /Client/src/handlers_responses/HandlerResponse.java | UTF-8 | 192 | 1.8125 | 2 | [] | no_license | package handlers_responses;
import application.ContextClient;
import communication.Response;
public interface HandlerResponse {
void processing(ContextClient context, Response response);
}
| true |
34ef989814afb2d84b8983303d31fe16b4fcb7f9 | Java | Alkazelcer/GlobalLogicTestTask | /src/test/BranchAndBoundHighSums.java | UTF-8 | 3,583 | 3.1875 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.HashSet;
import java.util.List;
import java.util.PriorityQueue;
import java.util.Set;
//runtime = n * m * log(m), but not bigger than n * k; m - arrays count, n - length of the result array, k - length of single array
pu... | true |
8bf8978feec533bd303455c5b39e3122876f7291 | Java | imac01/-Project-Java--Pascu_Andreea-REST_Facebook | /src/main/java/com/practica/demo/web/UserManagmentController.java | UTF-8 | 1,826 | 2.203125 | 2 | [] | no_license | package com.practica.demo.web;
import com.practica.demo.db.entity.User;
import com.practica.demo.db.entity.UserConfirmation;
import com.practica.demo.model.ConfirmEmailModel;
import com.practica.demo.model.UserModel;
import com.practica.demo.model.exception.AuthorizationException;
import com.practica.demo.model.except... | true |
79de3de2e1a8bcacfb9a23b339a720e4a3d51a64 | Java | yehudae/RAS | /RSDK/src/java/com/rafael/sdk/middleware/zmq/MwZmqRequester.java | UTF-8 | 1,604 | 2.28125 | 2 | [] | no_license | package com.rafael.sdk.middleware.zmq;
import org.zeromq.ZMQ;
import com.rafael.sdk.component.Component;
import com.rafael.sdk.middleware.MwRequester;
import com.rafael.sdk.util.Bundle;
// TODO: Auto-generated Javadoc
/**
* The Class MwZmqRequester.
*/
public class MwZmqRequester extends MwRequester {
/** The r... | true |
3c50b75d25ad5b9a0a6516594babf37063d2a831 | Java | zulicn/BP2014projekat | /Project/BPProjekat2014/src/com/bpprojekat2014/classes/Task.java | UTF-8 | 2,467 | 2.6875 | 3 | [] | no_license | package com.bpprojekat2014.classes;
import java.io.Serializable;
public class Task{
private int task_id;
private int activity_id;
private int user_id;
private String name;
private String description;
private int duration = 0;
private String deadline;
private float status;
private float real_duration;
pri... | true |
2a17d7788e7cbe4511b9be25363cf54c5b423a97 | Java | Maurocruzter/TransversaBack | /src/main/java/br/transversa/backend/controller/UserController.java | UTF-8 | 20,292 | 1.898438 | 2 | [] | no_license | package br.transversa.backend.controller;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.UUID;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.ByteArrayResource;
i... | true |
7a79e0682f691dbefc3b202da03834e84efe0d8c | Java | potatofootball/EducationSystem | /EducationSystem/src/test/dao/CollegeDaoTest.java | UTF-8 | 803 | 2.84375 | 3 | [] | no_license | package test.dao;
import dao.CollegeDao;
import db.DBUtil;
import model.College;
public class CollegeDaoTest {
public static void main(String[] args) {
CollegeDao.loadCollege();
for (int i = 1; i <= 10; i++) {
CollegeDao.addCollege(new College(i, "管理学院" + i));
}
// 添加测试数据
College college ... | true |
0da8d22b5623902387871f38cafe0914602bac04 | Java | keshu12345/Interviewpreparation | /ParkingLot/src/parkingLot/ParkingLot.java | UTF-8 | 1,509 | 2.953125 | 3 | [
"BSL-1.0"
] | permissive | package parkingLot;
import java.util.Scanner;
public class ParkingLot {
private static Vehicle vehicle;
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int sizeOfLot=sc.nextInt();
int spot[][]=new int[sizeOfLot][sizeOfLot];
boolean isAvailable= isSpotAvaialble(vehicle)... | true |
796ae279f0841d87afa2c4ece10634bccecb2aab | Java | beltoforion/oss-fuzz | /projects/xmlpull/XmlFuzzer.java | UTF-8 | 1,268 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | import com.code_intelligence.jazzer.api.FuzzedDataProvider;
import org.xmlpull.v1.XmlPullParserFactory;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import org.xmlpull.v1.XmlSerializer;
import java.io.IOException;
import java.io.StringReader;
public class XmlFuzzer {
public ... | true |
ed8b212f701c26bae61d42b4fd8d98ec27995d82 | Java | dagonza/FlightSearch | /src/main/java/org/search/flight/model/Airline.java | UTF-8 | 2,114 | 2.859375 | 3 | [] | no_license | package org.search.flight.model;
import java.math.BigDecimal;
public class Airline {
private String IATACode;
private String name;
private BigDecimal infantPrice;
public Airline(String iATACode, String name, BigDecimal infantPrice) {
IATACode = iATACode;
this.name = name;
this.infantPrice = infantPrice;
... | true |
cbd57241c8443799ab102f3b6c712c68a3039b7a | Java | Lxt000806/eclipse_workspace | /homeProject/src/com/house/home/serviceImpl/project/CustVisitServiceImpl.java | UTF-8 | 2,265 | 2.078125 | 2 | [] | no_license | package com.house.home.serviceImpl.project;
import java.util.Map;
import com.house.framework.bean.Result;
import com.house.framework.commons.orm.BaseServiceImpl;
import com.house.framework.commons.orm.Page;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
... | true |
cbe43eca91cb260e3d8a4cb84cc47deac530cf3f | Java | BekahT/VetApp | /src/vetportal/EditPet.java | UTF-8 | 15,322 | 2.8125 | 3 | [] | no_license | /**
* File: EditPet.java
* Date: April 23, 2020
* @Author: Nour Debiat, Brian Rease
* Purpose: This window displays the window where staff can add a edit an existing pet.
*/
package vetportal;
import com.github.lgooddatepicker.components.DatePicker;
import com.github.lgooddatepicker.components.DatePickerSettings... | true |
f97db379ea892d42a97b53580a4345a2b10b20e2 | Java | lzhp/spring-boot-examples | /spring-boot-jpa/src/main/java/top/h2000/app/CountryService.java | UTF-8 | 1,761 | 2.34375 | 2 | [] | no_license | package top.h2000.app;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.google.common.collect.Iterables;
import top.h2000.utils.ApplicationConst;
import top.h2000.utils.CustomBussine... | true |
1fb16f5d005f6efe448fccaa787cb185c3dd9786 | Java | msize/Partner-Center-Java-SDK | /PartnerSdk/src/main/java/com/microsoft/store/partnercenter/models/entitlements/VirtualMachineReservedInstanceArtifactDetails.java | UTF-8 | 1,607 | 2.09375 | 2 | [
"MIT"
] | permissive | // -----------------------------------------------------------------------
// <copyright file="VirtualMachineReservedInstanceArtifactDetails.java" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ------------------------------------------------------------------... | true |
a8887575f88f25267247ea3c9bf8e2e1b8c84aea | Java | 252319634/boluogamespay | /app/src/main/java/com/game/helper/net/task/GetGiftTask.java | UTF-8 | 1,167 | 1.921875 | 2 | [] | no_license | package com.game.helper.net.task;
import com.game.helper.net.base.BaseBBXTask;
import com.game.helper.sdk.model.comm.GetGiftBuild;
import com.game.helper.sdk.net.comm.GetGiftNet;
import android.content.Context;
/**
* @Description
* @Path com.game.helper.net.task.GetGiftTask.java
* @Author lbb
* @Date 2016年10月8日 上... | true |
42a4026677f847a8e3747191b98e0454d9f406b8 | Java | YohtaKimura/JavaTraining2 | /src/main/java/ch14/ex05/AddingStore.java | UTF-8 | 697 | 3.71875 | 4 | [] | no_license | package ch14.ex05;
final class AddingStore implements Runnable{
private static int currentValue;
private boolean islocked = false;
synchronized void operate(final int value) {
while (islocked) {
// Infinite loop.
}
islocked = true;
synchronizedAdd(value... | true |
9f307e4b1cc512c0815874eba8d807cc20aa3d05 | Java | NayoungLee240/SFRC_Tags | /app/src/main/java/com/tagproject/tags/ThiredActivity.java | UTF-8 | 5,035 | 2.1875 | 2 | [] | no_license | package com.tagproject.tags;
import android.os.Bundle;
import android.support.annotation.IdRes;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.RadioButton;
import android.widget.RadioGroup;
/**
* Created by 이나영 on 2017-10-23.
*/
public clas... | true |
d3a8d6839c8340f8005cd9bb546158d581efcb71 | Java | luluwangjun/LiWuShuo | /app/src/main/java/com/example/lulu/administrator/liwushuohomework/presenter/menu/MenuPresenter.java | UTF-8 | 2,765 | 2.203125 | 2 | [] | no_license | package com.example.lulu.administrator.liwushuohomework.presenter.menu;
import com.example.lulu.administrator.liwushuohomework.bean.MenuBean;
import com.example.lulu.administrator.liwushuohomework.model.MenuApi;
import com.example.lulu.administrator.liwushuohomework.presenter.IMenuPresenter;
import com.example.lulu.ad... | true |
29e6b0ec550ee935058c1724cf8d6862cce55e76 | Java | atthisaccount/SPay-inner-workings | /boot.oat_files/arm64/dex/out0/android/media/AudioPortEventHandler.java | UTF-8 | 3,136 | 1.929688 | 2 | [] | no_license | package android.media;
import android.media.AudioManager.OnAudioPortUpdateListener;
import android.os.Handler;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
class AudioPortEventHandler {
private static final int AUDIOPORT_EVENT_NEW_LISTENER = 4;
private static final int AUDIOPORT_EVENT_PATCH... | true |