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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
23a95a5c6ab73cb02f7ab38df1037b5f5f529744 | Java | CedricGatay/portlet-container-custom | /container/src/java/com/sun/portal/container/service/policy/DistributionType.java | UTF-8 | 3,176 | 2.234375 | 2 | [] | no_license | /*
* CDDL HEADER START
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* http://www.sun.com/cddl/cddl.html and legal/CDDLv1.0.... | true |
7e95e72ed6f2775291013a20bb45a6f07769f76c | Java | mdht/mdht-models | /generated/org.openhealthtools.mdht.uml.cda.consol2/src/org/openhealthtools/mdht/uml/cda/consol/impl/NutritionalStatusObservationImpl.java | UTF-8 | 6,030 | 1.804688 | 2 | [] | no_license | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.openhealthtools.mdht.uml.cda.consol.impl;
import java.lang.Iterable;
import java.util.Map;
import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObje... | true |
ba0b6d8205f7b842aa6080ddc6cde22430f4e3eb | Java | apalacioj/ST0245-001 | /laboratorios/lab04/codigo/Octree.java | UTF-8 | 7,867 | 3.671875 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Scanner;
import java.io.IOException;
import java.util.Collections;
/**
*This is our data structure, Octree. This will be responsible for positioning each bee in a specific quadrant,
*so you can determine if it collides or not. Its main funct... | true |
dda3121fe02debfb4398bbe06703748c88d02f36 | Java | GabrielNew/CursoUdemyJava | /src/cursoUdemyJavaV/Main.java | UTF-8 | 1,984 | 3.609375 | 4 | [] | no_license | package cursoUdemyJavaV;
import java.util.Locale;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Locale.setDefault(Locale.US);
Scanner ler = new Scanner(System.in);
// Início do programa da classe Retangulo
Retangulo ret = new Retangulo();
System.out.println("Dig... | true |
33d9e90b75acde3de1f51d6d05769c3a45fd1dbd | Java | professor-lol/professor-lol | /professorlol-riot-api/src/main/java/com/ccs/professorlol/ddragon/DdragonRestTemplate.java | UTF-8 | 730 | 2.015625 | 2 | [] | no_license | package com.ccs.professorlol.ddragon;
import com.ccs.professorlol.ddragon.dto.RealmsDto;
import com.ccs.professorlol.ddragon.dto.champion.DdragonChampionDto;
import com.ccs.professorlol.ddragon.dto.champion.DdragonChampionFullsDto;
import com.ccs.professorlol.ddragon.dto.champion.DdragonChampionSimplesDto;
import com.... | true |
3565e52e0703355346968d9636adf8c599dcb70d | Java | ravi26067/Coding | /coding/LeetcodeJune contest/Average.java | UTF-8 | 360 | 3.28125 | 3 | [] | no_license | class Solution {
public double average(int[] salary) {
int k = salary.length -2;
double sum = 0;
int min = Integer.MAX_VALUE;
int max = Integer.MIN_VALUE;
for(int i=0;i<salary.length;i++) {
if(min>salary[i])
min = salary[i];
if(max<salary[i])
max = salary[i];
sum+=salary[i];
}
sum... | true |
b5b7fbd7c38c3756948899e976f771fb1c231182 | Java | nanbingf2/my-work | /spring4/chapter3/src/main/java/com/rogercw/dao/UserDao.java | UTF-8 | 292 | 1.867188 | 2 | [] | no_license | package com.rogercw.dao;
import com.rogercw.domain.User;
/**
* Created by 1 on 2018/4/16.
*/
public interface UserDao {
public int getMatchCount(String userName,String password);
public User findUserByUserName(String userName);
public void updateUserLoginInfo(User user);
}
| true |
690fc8e4bd95171cd2b8dff0d6bc195c6ea0b567 | Java | wrail/videos-admin | /videos-admin-service/src/main/java/com/wrial/service/UsersService.java | UTF-8 | 207 | 1.640625 | 2 | [] | no_license | package com.wrial.service;
import com.wrial.pojo.Users;
import com.wrial.utils.PagedResult;
public interface UsersService {
public PagedResult queryUsers(Users user, Integer page, Integer pageSize);
}
| true |
7447564040d91dc37c2bf3ae0fbadeb22b2798df | Java | massarfusion/EclipseBackUp2020 | /Chapter_four/src/bank_account/MajorTest.java | UTF-8 | 460 | 2.59375 | 3 | [] | no_license | package bank_account;
import java.util.Scanner;
public class MajorTest {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in=new Scanner(System.in);
SavingsAccount sa= new SavingsAccount(in.next(),in.nextDouble(),in.nextInt(),in.nextDouble());
CurrentAccount ca= new Curren... | true |
1087e4e84a27c748553d94b529017ca023647367 | Java | lonecloud/fly-tools | /tool-object/src/main/java/cn/lonecloud/tools/obj/ObjectsUtils.java | UTF-8 | 2,817 | 3 | 3 | [] | no_license | package cn.lonecloud.tools.obj;
import cn.lonecloud.tools.obj.exception.ObjectException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.beans.IntrospectionException;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import j... | true |
bb800ded838db552a8e57ac1fbe1d8b31a24f863 | Java | lotacmonster/demo | /source/ThapSangTriThuc/src/client/giaodien/GiaoDienChatRoom.java | UTF-8 | 2,576 | 2.328125 | 2 | [] | no_license | package client.giaodien;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Calendar;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax... | true |
c759f1664a61a6ebc9ffe9bc84cdbdeda0d7a462 | Java | jcreyes72/cpsc2150 | /course_lab/Lab10/src/cpsc2150/banking/controllers/MortgageController.java | UTF-8 | 901 | 2.984375 | 3 | [] | no_license | package cpsc2150.banking.controllers;
import cpsc2150.banking.models.Customer;
import cpsc2150.banking.models.IMortgage;
import cpsc2150.banking.views.IMortgageView;
public class MortgageController implements IMortgageController {
// This constant will ensure we do not exceed the maximum amount for credit score
... | true |
73fcf806f9d709cebee1b378a3bd55d42203bf27 | Java | Good-Old-Living/application | /Application-ECom/src/main/java/meru/application/security/action/ResetPasswordOTPAction.java | UTF-8 | 1,294 | 2.40625 | 2 | [] | no_license | package meru.application.security.action;
import java.io.IOException;
import app.domain.security.User;
import meru.app.binding.http.HttpAppRequest;
import meru.application.AppType;
import meru.exception.AppException;
import meru.sys.lang.StringHelper;
import meru.template.TemplateStringData;
public class ResetPasswo... | true |
f16e8ff064bf5903f369787bd53a5f3271bedb67 | Java | rohituppalapati/kylo-source | /integrations/spark/spark-validate-cleanse/spark-validate-cleanse-spark-v1/src/main/java/com/thinkbiganalytics/spark/datavalidator/functions/PartitionLevelCountsV1.java | UTF-8 | 2,219 | 2.328125 | 2 | [
"WTFPL",
"CDDL-1.0",
"MIT",
"CC0-1.0",
"EPL-1.0",
"PostgreSQL",
"BSD-3-Clause",
"LGPL-2.1-only",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-protobuf",
"OFL-1.1"
] | permissive | package com.thinkbiganalytics.spark.datavalidator.functions;
/*-
* #%L
* kylo-spark-validate-cleanse-spark-v1
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* 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... | true |
0c1a1c48b0e8513139dcea2ec1f01c8d3f3a9680 | Java | silentbalanceyh/vertx-zero | /vertx-gaia/vertx-ams/src/main/qas/io/modello/specification/atom/HAtom.java | UTF-8 | 6,708 | 2.125 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | package io.modello.specification.atom;
import io.macrocosm.specification.program.HArk;
import io.modello.atom.normalize.KMarkAtom;
import io.modello.specification.action.HDiff;
import io.modello.specification.meta.HMetaAtom;
import java.util.Set;
import java.util.concurrent.ConcurrentMap;
/**
* Zero中的模型结构处理,主要包括:
... | true |
1a0301d165b0eb91a768574c848b4d3487bfa9f6 | Java | kielbi12/programowanie_2 | /src/main/java/day3/dhl/Adress.java | UTF-8 | 241 | 1.820313 | 2 | [] | no_license | package day3.dhl;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public class Adress {
private String street;
private String postCode;
private String city;
private int homeNumber;
}
| true |
ffdcfc07b8ecf00da2b39190cac67ef8ad7eb30e | Java | rjssouza/AppVendas | /app/src/main/java/com/app/appvenda/dao/ConfiguracaoDAO.java | UTF-8 | 2,440 | 2.140625 | 2 | [] | no_license | package com.app.appvenda.dao;
import android.content.Context;
import com.app.appvenda.entidade.Configuracao;
import com.app.appvenda.enums.EnumTipoConfiguracao;
import com.app.appvenda.modelos.MConfiguracao;
import com.app.appvenda.modelos.MEstoque;
import com.app.appvenda.repositorio.RPConfiguracao;
import com.app.b... | true |
055f2ac3e8133d10e6294c8e4f56ef1d75ad3aa9 | Java | eliseyles/DocFilling | /src/main/java/by/bntu/kharaneka/enrolleedocfillingmvp/repository/ContractRepository.java | UTF-8 | 401 | 1.945313 | 2 | [] | no_license | package by.bntu.kharaneka.enrolleedocfillingmvp.repository;
import by.bntu.kharaneka.enrolleedocfillingmvp.entity.Contract;
import by.bntu.kharaneka.enrolleedocfillingmvp.entity.Personality;
import org.springframework.data.jpa.repository.JpaRepository;
public interface ContractRepository extends JpaRepository<Contrac... | true |
f39f552d97fd976ec75e1486f367cd653f4cc1f5 | Java | zzjzhang/zzj-maven-redis | /src/main/java/com/core/App.java | UTF-8 | 556 | 2.109375 | 2 | [] | no_license | package com.core;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
*
* GitHub: (示例代码)
* https://github.com/josiahcarlson/redis-in-action/tree/master/java/src/main/java
*
* 数据类型:
* 1. STRING
* 2. LIST
* 3. SET
* 4. HASH... | true |
003ae1a07b44b80f92e975d04054724ab4c3fa41 | Java | shanghaif/supplychain | /rpc-supplychain-jst-api/src/main/java/cn/com/glsx/supplychain/jst/enums/LoginTypeEnum.java | UTF-8 | 381 | 2.046875 | 2 | [] | no_license | package cn.com.glsx.supplychain.jst.enums;
public enum LoginTypeEnum {
/**
* 手机号授权
*/
LOGIN_TYPE_PH("PH"),
/**
* 商户号密码
*/
LOGIN_TYPE_PS("PW");
String value;
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
private LoginTypeEnum(String v... | true |
121bf7c99ea390d33ca594bf33db78b8c6660ee2 | Java | AvocadosConstant/coding-competitions | /codecon-2015/codeCon3.java | UTF-8 | 2,063 | 3.46875 | 3 | [] | no_license | //Problem : Funny Elevators
//Language : Java
//Compiled Using : javac
//Version : Java 1.7.0_75
//Input for your program will be provided from STDIN
//Print out all output from your program to STDOUT
import java.util.Scanner;
import java.util.Arrays;
import java.util.Collections;
// THIS CODE IS... | true |
04b36408ff46cb750d21edccf4f1b4095702f65b | Java | domivds/asquaretest | /service/src/main/java/zone/cogni/asquare/service/queryapi/filter/value/LatestDatePipe.java | UTF-8 | 2,575 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package zone.cogni.asquare.service.queryapi.filter.value;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.joda.time.DateTime;
import zone.cogni.asquare.access.ApplicationView.AttributeMatcher;
import zone.cogni.asquare.applicationprofile.model.basic... | true |
0e8f00c6f670bb18b60938f9e13511a71ead9f64 | Java | jforge/vaadin | /uitest/src/test/java/com/vaadin/tests/components/datefield/DateTimeFieldPopupTest.java | UTF-8 | 2,725 | 1.929688 | 2 | [
"CC-BY-ND-2.0",
"Apache-2.0"
] | permissive | /*
* Copyright 2000-2016 Vaadin Ltd.
*
* 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... | true |
177862f3a82aa58e96fbb4ea55febbc9778dbdbf | Java | devsystem123/MobileHHealth | /app/src/main/res/drawable/adapter/AdapterCursosPersonalizado.java | UTF-8 | 2,126 | 2.5 | 2 | [] | no_license | package br.com.alura.cursos.adapter;
import android.app.Activity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.List;
import br.com.alura.cursos.R;
/**
* Created by alex on 02/07/17.
*/
... | true |
c7749fea38ab09d6c0d981e16968a34575d8e936 | Java | alex0730/blog_code_management | /src/main/java/com/lee/entity/RoleOperationModel.java | UTF-8 | 2,314 | 2.46875 | 2 | [] | no_license | package com.lee.entity;
import java.io.Serializable;
/**
* <p>Description: [角色操作权限关系表(对数据或资源的增删改查等)model]</p>
* Created on 2021年02月01日
* @author <a href="mailto: wuyingya@oristartech.com">吴迎亚</a>
* @version 1.0
*/
public class RoleOperationModel implements Serializable {
private static final long serialVersi... | true |
0fd9f909908c182fc438b5f4caab99645c5f1612 | Java | Akshay790/java-Exception | /Checked/Demo.java | UTF-8 | 411 | 2.359375 | 2 | [] | no_license | package Checked;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
public class Demo {
public static void main(String[] args)
{
try {
FileInputStream fs=new FileInputStream("d://data.text");
}
catch (FileNotFoundException e) {
e.printStackTrace();
... | true |
c2c85424aba1c929108dccca92ab25514ba6b0dc | Java | lm50666/dronkaShopNew | /pl/edu/agh/dronka/shop/model/Category.java | UTF-8 | 340 | 2.625 | 3 | [] | no_license | package pl.edu.agh.dronka.shop.model;
public enum Category {
BOOKS("Books"), ELECTRONICS("Electronics"), FOOD("Food"), MUSIC("Music"), SPORT("Sport");
private String displayName;
public String getDisplayName() {
return displayName;
}
private Category(String displayName) {
this.displayName = d... | true |
0f1249fdcf46a904b7c789707a52fb5eea1c0b46 | Java | Undergrounder/neusta-code-challenge-2017 | /facades/src/main/java/de/neustasd/roomsmanager/facades/imprt/converter/impl/CsvImportDataConverterImpl.java | UTF-8 | 1,520 | 2.34375 | 2 | [
"MIT"
] | permissive | package de.neustasd.roomsmanager.facades.imprt.converter.impl;
import de.neustasd.roomsmanager.core.services.converters.ConverterUtils;
import de.neustasd.roomsmanager.core.services.data.ImportData;
import de.neustasd.roomsmanager.core.services.data.RoomData;
import de.neustasd.roomsmanager.facades.imprt.converter.Csv... | true |
b890605ce115057de1c32825e803d0b078f1f833 | Java | tghising/shop-model-simulator | /src/shopmodelsimulator/IScheduler.java | UTF-8 | 277 | 2.484375 | 2 | [] | no_license | package shopmodelsimulator;
/**
* IScheduler interface is implements by simulation to schedule(add new events) on the basis of event occur time
*
* @author tghising
*/
public interface IScheduler {
// method to schedule the event
public void schedule(Event e);
}
| true |
5f2dbfa719e650ad30c9b0bce931f85a08f081a8 | Java | Marcos3yk/Projeto-Vetra | /src/telascontroller/OrcamentoController.java | UTF-8 | 13,433 | 2.09375 | 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 telascontroller;
import DAO.PessoaDAOImpl;
import DAO.VeiculoDAOImpl;
import com.itextpdf.text.Document;
import com.itextpdf.... | true |
d5b6308c08516e310b1d0cfaa51f7d7accec3355 | Java | threeoldman/com.maikun.service.product | /src/main/java/com/maikun/service/buyer/restaurant/Restaurant.java | UTF-8 | 932 | 1.984375 | 2 | [] | no_license | package com.maikun.service.buyer.restaurant;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* @program: products
* @Description: 饭店详细信息
* @author: Mr.Cheng
* @date: 2018/9/5 下午5:29
*/
@Data
public class Restaurant implements Serializable {
private static final long serialVersio... | true |
92697be3912e5b3e39771638f3253722058288e5 | Java | Abrar051/ArrayList | /ArrayList-master/VectorPractice/VectorPractice.java | UTF-8 | 394 | 2.828125 | 3 | [] | no_license | package VectorPractice;
import java.util.Vector;
import java.util.*;
public class VectorPractice {
public static void main (String args[])
{
Vector obj = new Vector();
ArrayList obj1 = new ArrayList();
obj.add("1");
obj.add(34);
obj1.add("string");
obj1.add(23);
... | true |
ca46574e742ab7e953ebfc8465acd632f0cf1b1e | Java | danteidbratt/GymSystem | /PT_App/Models/Note.java | UTF-8 | 587 | 2.46875 | 2 | [] | no_license | package Models;
public class Note {
private String comment;
private IndividualSession individualSession;
public Note() {
individualSession = new IndividualSession();
}
public String getComment() {
return comment;
}
public void setComment(String comment) {
... | true |
992324c9c1183e9a02485a0fbd4429ddd3762710 | Java | jefferson-fidencio/FamilystRestAPI | /src/main/java/api/resources/UsuariosResources.java | UTF-8 | 4,023 | 2.59375 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package api.resources;
import api.model.Usuario;
import database.DAO.UsuarioDAO;
import interfaces.api.resources.IUsuariosResources;
i... | true |
14cd5dab6f3dd26e41564ef4a1348a595390e71c | Java | Urtar/VetClinic | /src/main/java/pl/coderslab/entity/Visit.java | UTF-8 | 1,765 | 2.5625 | 3 | [] | no_license | package pl.coderslab.entity;
import javax.persistence.*;
import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;
import java.util.List;
@Entity
public class Visit {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private long id;
private LocalDateTime dateOfVisit;
private... | true |
e8fc9106992ffd9d6950a27fdfbedc6951817bba | Java | tferenc/Plage-inc. | /server/ServerTest.java | UTF-8 | 211 | 1.6875 | 2 | [] | no_license | package server;
import java.io.ObjectOutput;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.net.Socket;
public class ServerTest {
public static void main(String[] args) {
}
}
| true |
68118fa54836ab8166dcceb5e4dce55c462b1b97 | Java | janaldous/offspringy | /src/main/java/com/janaldous/offspringy/business/activity/EventFullException.java | UTF-8 | 199 | 1.882813 | 2 | [] | no_license | package com.janaldous.offspringy.business.activity;
@SuppressWarnings("serial")
public class EventFullException extends Exception {
public EventFullException() {
super("Event is full");
}
}
| true |
7fc0d843dc3aac8c5e7028175a9acdfdd18c15c2 | Java | codebbgr/cbbini4j | /src/main/java/gr/codebb/cbbini4j/spi/IniBuilder.java | UTF-8 | 917 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2013-2020
* codebb.gr
*/
/**
* Changelog ========= 04/04/2020 (gmoralis) - Change "AbstractProfileBuilder" members visibility
* correspondingly 03/04/2020 (gmoralis) - Initial commit from ini4j project
*/
package gr.codebb.cbbini4j.spi;
import gr.cobebb.cbbini4j.Config;
import gr.cobebb.cbbini4j.I... | true |
82dfe04636331308be414299162ba641b04b7581 | Java | felipef78/school-homework-java | /ft045_MST/src/ft045_mst/Edge.java | UTF-8 | 1,083 | 3.265625 | 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 ft045_mst;
/**
*
* @author Felipe
*/
class Edge implements Comparable<Edge>{
private Node no1;
private Node no2;
... | true |
088de1faa1f504b7667a4491b4b5a13601800416 | Java | deepakot/RopoTest | /app/src/main/java/com/deepak/roposotest/Models/StoryData.java | UTF-8 | 3,258 | 2.390625 | 2 | [] | no_license | package com.deepak.roposotest.Models;
/**
* Created by Sharma on 5/16/2016.
*/
public class StoryData {
private String description;
private String id;
private String url;
private String verb;
private String db;
private String si;
private String type;
private String title;
private ... | true |
3465c3b174f54d5f54e9e6690de634582df25853 | Java | mikhaylov97/ZombieLandGame | /src/main/java/com/zombieland/source/controller/CommonController.java | UTF-8 | 289 | 1.601563 | 2 | [] | no_license | package com.zombieland.source.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class CommonController {
@GetMapping("/")
public String getGameMainPage() {
return "index";
}
}
| true |
11cd28586eb4d771a28d9907537b72f609429489 | Java | Girish-93/AutomationProject | /src/SeleniumSessions/ExtraLocators.java | UTF-8 | 1,123 | 2.171875 | 2 | [] | no_license | package SeleniumSessions;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ByIdOrName;
import org.openqa.selenium.support.pagefactory.ByAll;
import org.openqa.selenium.support.p... | true |
ae83c7f4ee37e8ba8c42bc94ba6c3949145e8581 | Java | katfish125/ctci | /ch2/src/RemoveDups.java | UTF-8 | 1,383 | 3.328125 | 3 | [] | no_license | import java.util.HashSet;
public class RemoveDups {
public static void main(String[] args) {
LinkedList test = new LinkedList(0);
test.append(0);
test.append(1);
test.append(2);
test.append(2);
test.append(3);
test.append(3);
test.append(3)... | true |
f734b09d9ad370a91f375abf91c3335e2778fb7c | Java | jmatheuss/indra-jpa | /desafio-back/src/main/java/com/indracompany/desafio/repositories/MunicipioRepository.java | UTF-8 | 553 | 2.015625 | 2 | [] | no_license | package com.indracompany.desafio.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import com.indracompany.desafio.domain.Municipio;... | true |
a22aaf26b23758c0013948ec560b9deb63a9ee2d | Java | 1054522381/my-jpa-demos | /my-jpa-demo01-simple-crud/src/test/java/cn/com/fubon/entity/EmployeeTest.java | UTF-8 | 6,599 | 2.859375 | 3 | [] | no_license | package cn.com.fubon.entity;
import java.util.HashMap;
import java.util.Map;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
/**
* 单表增删改查
*/
public class EmployeeTest... | true |
eb4437be438cfa60b65e975de259c336d6173033 | Java | leqianbao/leqianbao | /src/cn/lc/dao/FinanceDao.java | UTF-8 | 5,307 | 2.375 | 2 | [] | no_license | package cn.lc.dao;
import java.math.BigInteger;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.co... | true |
54291c2c6f046ebd318a2d5acab55376f396e92f | Java | AitGo/CsiModel | /module_server/src/main/java/com/liany/csiserverapp/network/request/Request.java | UTF-8 | 459 | 1.679688 | 2 | [] | no_license | package com.liany.csiserverapp.network.request;
/**
* @创建者 ly
* @创建时间 2019/4/15
* @描述 ${TODO}
* @更新者 $Author$
* @更新时间 $Date$
* @更新描述 ${TODO}
*/
public interface Request {
// public static String HOST = (String) SPUtils.getParam(MyApplication.getContext(),Constants.URL,"http://192.168.31.88:8080/lianyservice/... | true |
0bcfc2d857a737532e5e1569d1b096fbd47c8170 | Java | galid1/photosend-server | /src/main/java/com/photosend/photosendserver01/domains/user/presentation/request_reponse/RenewApnsDeviceTokenRequest.java | UTF-8 | 334 | 1.539063 | 2 | [] | no_license | package com.photosend.photosendserver01.domains.user.presentation.request_reponse;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
@Getter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class RenewApnsDeviceTokenRequest {
private String apnsD... | true |
8b1f0a93b95d83e4fa486f506a1f19ac9f5d8fab | Java | IRetamales/SisRemu | /src/Clases/clsUsuario.java | UTF-8 | 2,058 | 2.53125 | 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 Clases;
import java.sql.*;
import java.sql.CallableStatement;
/**
*
* @author Sylar
*/
public class clsUsuario... | true |
a2864fc8b586c1b19acd5c2deb7e2e775829b3b6 | Java | zhaoxunyong/quartz-manager | /src/main/java/com/woyi/mhub/task/controller/SchedulerHelper.java | UTF-8 | 4,528 | 2.34375 | 2 | [] | no_license | package com.woyi.mhub.task.controller;
import java.io.FileInputStream;
import java.util.List;
import java.util.Properties;
import org.quartz.Job;
import org.quartz.JobBuilder;
import org.quartz.JobDetail;
import org.quartz.JobKey;
import org.quartz.Scheduler;
import org.quartz.SchedulerContext;
import org.quartz.Sche... | true |
f895f9b9a8a8284cd05ea42c32fd56a599b28b9c | Java | ashik-18/java-lab-programs | /factorial.java | UTF-8 | 382 | 3.1875 | 3 | [] | no_license | package class_programs;
import java.util.*;
public class factorial {
public static void main(String[] args) {
System.out.println("This program is written by\nAshik MR, 4NI19IS017, B section");
int n;
int factorial = 1;
n = 10;
while(n!=0) {
factorial = factorial*n;
n--;
}
... | true |
056be68b4f92fdb85989459e130ceff436253a21 | Java | msalinasicsni/estudios-ics | /src/main/java/ni/org/ics/estudios/service/muestreoanual/LactanciaMaternaService.java | UTF-8 | 3,090 | 2.296875 | 2 | [] | no_license | package ni.org.ics.estudios.service.muestreoanual;
import ni.org.ics.estudios.domain.muestreoanual.LactanciaMaterna;
import ni.org.ics.estudios.domain.muestreoanual.LactanciaMaternaId;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.stereotype.S... | true |
31add358ea4f294d31dd4a2990e124eda1588fd4 | Java | jasleen1291/B2BMobileApplication | /Web Application/build/generated/src/org/apache/jsp/shop_jsp.java | UTF-8 | 13,405 | 1.507813 | 2 | [] | no_license | package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.json.JSONObject;
import java.sql.ResultSetMetaData;
import java.sql.ResultSet;
import org.json.JSONArray;
import Db.DbConnector;
import java.sql.Connection;
public final class shop_jsp extends org.apach... | true |
91533e8667b8af12cd7bd5c43aeed1dee67948ca | Java | kuaifan/eeui-template | /plugins/eeui/framework/android/src/main/java/app/eeui/framework/extend/integration/glide/load/model/stream/UrlLoader.java | UTF-8 | 1,957 | 2.40625 | 2 | [
"MIT"
] | permissive | package app.eeui.framework.extend.integration.glide.load.model.stream;
import androidx.annotation.NonNull;
import app.eeui.framework.extend.integration.glide.load.Options;
import app.eeui.framework.extend.integration.glide.load.model.GlideUrl;
import app.eeui.framework.extend.integration.glide.load.model.ModelLoader;
... | true |
5a9797951eee4ad4bd9b34b24885744ddfcdf430 | Java | cenxui/Interview | /Interview/src/Tree.java | UTF-8 | 3,651 | 3.203125 | 3 | [] | no_license | import java.awt.Checkbox;
import java.util.ArrayList;
import java.util.List;
public class Tree {
private Tree left;
private Tree right;
private int val;
public static void main(String[] args) {
Tree tree = new Tree();
tree.val = 1;
tree.left = new Tree();
tree.left.val = 2;
tree.right = ne... | true |
351ac0f78dd453e69b8259384ca1a6c1943f2ce8 | Java | happyjianguo/pay-1 | /Common/PE/if-pricingstrategy/if-pricingstrategy-impl/src/main/java/com/pay/pricingstrategy/service/CalFeeInnerParam.java | UTF-8 | 811 | 1.632813 | 2 | [] | no_license | /**
*
*/
package com.pay.pricingstrategy.service;
import com.pay.pricingstrategy.dto.PricingStrategyDetailDTO;
/**
* @author
*
*/
public class CalFeeInnerParam {
private long transactionAmount;
private PricingStrategyDetailDTO pricingstategydetaildto;
public long getTransactionAmount() ... | true |
4691b1362abe45046c070133e55356d5cc51d281 | Java | ordnaelmedeiros/jpa-fluid-select | /lib/src/test/java/com/ordnaelmedeiros/jpafluidselect/querybuilder/results/ReturnTest.java | UTF-8 | 6,485 | 2.5 | 2 | [] | no_license | package com.ordnaelmedeiros.jpafluidselect.querybuilder.results;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;
import java.util.Li... | true |
9d5897568fd0a1e77dbf2a8a2c40865c841359ea | Java | RouNNdeL/csgo-dashboard-app | /app/src/main/java/com/roundel/csgodashboard/entities/utility/FilterGrenade.java | UTF-8 | 659 | 2.234375 | 2 | [] | no_license | package com.roundel.csgodashboard.entities.utility;
/**
* Created by Krzysiek on 2017-02-24.
*/
public class FilterGrenade extends FilterBase
{
private static final String TAG = FilterGrenade.class.getSimpleName();
//<editor-fold desc="private variables">
private Integer type;
private Boolean isJump... | true |
9533606bc78e1fd4558a534d1434f8d11ffab417 | Java | KrystianKoziel/androidList | /app/src/main/java/com/studenckie/apartamenty/adapterlist/HousesList.java | UTF-8 | 2,929 | 2.640625 | 3 | [] | no_license | package com.studenckie.apartamenty.adapterlist;
import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
impo... | true |
0f5b9db22fd19b7f2d1dfbec53e51ffe0b2b1a56 | Java | ocorella/tcu501app | /app/src/main/java/comsiteucrtcu501/google/httpssites/tcu501/ElementarySchoolActivity.java | UTF-8 | 4,534 | 2.09375 | 2 | [] | no_license | package comsiteucrtcu501.google.httpssites.tcu501;
import android.app.Activity;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import comsiteucrtcu501.google.httpssites.... | true |
775cedb44c5211020b414fb56205126f9c03d33f | Java | ProRocketeers/bsc-be-petaalm | /src/main/java/com/prorocketeers/bsc/payment/tracker/service/PaymentParser.java | UTF-8 | 331 | 2.1875 | 2 | [] | no_license | package com.prorocketeers.bsc.payment.tracker.service;
import java.text.ParseException;
import com.prorocketeers.bsc.payment.tracker.domain.Payment;
/**
* API specification for an implementation of "payment line parser".
*/
public interface PaymentParser {
Payment fromString(String paymentLine) throws ParseEx... | true |
49b0cc6d1684a67dd4c1747d0a6ba2d0e7a87ae6 | Java | JamesHuangUC/LeetCode-Java | /4.median-of-two-sorted-arrays.java | UTF-8 | 1,713 | 3.6875 | 4 | [] | no_license | /*
* @lc app=leetcode id=4 lang=java
*
* [4] Median of Two Sorted Arrays
*
* https://leetcode.com/problems/median-of-two-sorted-arrays/description/
*
* algorithms
* Hard (26.15%)
* Likes: 4167
* Dislikes: 554
* Total Accepted: 422.5K
* Total Submissions: 1.6M
* Testcase Example: '[1,3]\n[2]'
*
* T... | true |
2968f749a8d4c151bb25af50db197e758548740d | Java | CyberSource/cybersource-rest-samples-java | /src/main/java/samples/authentication/AuthSampleCode/GetGenerateHeaders.java | UTF-8 | 5,419 | 2.1875 | 2 | [] | no_license | package samples.authentication.AuthSampleCode;
import java.lang.invoke.MethodHandles;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Properties;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import com.cyberso... | true |
93a16666ceca7fa7ca80c7b7435e1ee53bffdedf | Java | vandana25/Implementation-of-Design-Patterns | /src/Iterator_Pattern/LAStudents.java | UTF-8 | 631 | 3.078125 | 3 | [] | no_license | package Iterator_Pattern;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
public class LAStudents {
StudentData studentData;
ArrayList<StudentData> Students = new ArrayList<>();
public void addStudent(String l, String f, String m, Strin... | true |
a7efcc573507096fd6f4eff44b7df3f5e8f00f98 | Java | marcus-deans/Logo-LSystem-IDE | /src/oolala/model/commands/conditionals/IfSameConditionalCommand.java | UTF-8 | 1,514 | 2.828125 | 3 | [
"MIT"
] | permissive | package oolala.model.commands.conditionals;
import java.util.ArrayList;
import javafx.scene.Group;
import oolala.model.ModelCreature;
import oolala.model.commands.Commands;
import oolala.model.instructions.CreatureInstruction;
/**
* @author marcusdeans
* <p>
* Purpose: Create a conditional command to execute if sa... | true |
81c18738e440a7477fb22755cf6bc1ca85350149 | Java | torstorruste/CardRest | /src/test/java/org/superhelt/card/DatabaseGenerator.java | UTF-8 | 968 | 2.578125 | 3 | [] | no_license | package org.superhelt.card;
import org.superhelt.card.db.CsvParser;
import org.superhelt.card.db.SQLiteDao;
import org.superhelt.card.om.Player;
import org.superhelt.card.om.Round;
import org.superhelt.card.om.Score;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;
import java.util.Map;
... | true |
b0379fa405428ff9917400c00022ba0eeb1dc01c | Java | opure/Hello-Git | /src/jichu/shuzu/array01.java | GB18030 | 244 | 2.796875 | 3 | [] | no_license | package jichu.shuzu;
public class array01{
public static void main(String args[]){
int score[] = {91,92,93,94,95,96} ; // ʹþ̬ʼ
for(int a :score){ // ѭ
System.out.println(a) ;
}
}
}; | true |
83e093afec358ce15110fd7cbcdf8025e2b8b796 | Java | Flipkart/typescriptpoet | /src/main/java/com/flipkart/typescriptpoet/Modifier.java | UTF-8 | 923 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2018 Flipkart
*
* 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 ... | true |
828b229d95722f4ff0c558919f929312e54426d6 | Java | andy521/NetEase-Cloud-Music | /src/Test.java | UTF-8 | 770 | 2.375 | 2 | [] | no_license | import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.net.URL;
import java.net.URLConnection;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
public class Test {
public static void main(String[] args) {
Document doc;
try {
... | true |
e6b26a007f1cf8c4678fa84200fd11d14a1ee0eb | Java | Insane-neal/ImageMap | /src/com/hck/imagemap/GuideActivity.java | UTF-8 | 1,902 | 2.15625 | 2 | [] | no_license | package com.hck.imagemap;
import java.util.ArrayList;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.view.Display;
import android.view.LayoutInflater;
import android.view.View;
import androi... | true |
cce40ffc4bfe12c0c7b023ba6b5c3b975dd826a1 | Java | newrelic/newrelic-java-agent | /newrelic-agent/src/test/java/com/newrelic/agent/service/module/ShaChecksumsTest.java | UTF-8 | 892 | 1.789063 | 2 | [
"Apache-2.0"
] | permissive | /*
*
* * Copyright 2020 New Relic Corporation. All rights reserved.
* * SPDX-License-Identifier: Apache-2.0
*
*/
package com.newrelic.agent.service.module;
import java.io.IOException;
import java.net.URL;
import java.security.NoSuchAlgorithmException;
import org.junit.Assert;
import org.junit.Test;
public cl... | true |
514026052c0c88b3b9f6d9d0927470a4c720b78a | Java | ebizon/mofluid-community-android | /moFluid/src/main/java/com/mofluid/utility_new/Callback.java | UTF-8 | 112 | 1.765625 | 2 | [] | no_license | package com.mofluid.utility_new;
public interface Callback {
void callback(Object o, int response_code);
}
| true |
6dd4d0483b64ad65be0b248e8da299568dc7f309 | Java | dmisabela/curso_java | /src/modificadores_de_acesso/Product.java | WINDOWS-1250 | 1,208 | 3.46875 | 3 | [] | no_license | package modificadores_de_acesso;
public class Product {
String name; //para ser acessvel a outra classe do mesmo pacote
private double price;
private int quantity;
public Product() {
}
public Product(String a, double b, int c) {
this.name = a;
this.price = b;
this.quantity = c;
}
publi... | true |
2a29462e99ffa8ec162675af2c9b632222ef48a8 | Java | hanjisoo/DAO1 | /src/com/javaex/main/BookMain.java | UTF-8 | 288 | 2.046875 | 2 | [] | no_license | package com.javaex.main;
import com.javaex.dao.BookDao;
import com.javaex.vo.BookVo;
public class BookMain {
public static void main(String[] args) {
BookDao dao=new BookDao();
BookVo vo=new BookVo("나혼자산다","MBC","2017/07/21",8);
dao.insert(vo);
}
}
| true |
fa1d325166f5c43ee2744ffb6099d6e138874d89 | Java | arkapal100/Cipher_Web_apps | /FirstProject/src/main/java/com/example/demo/MovieController.java | UTF-8 | 1,872 | 2.625 | 3 | [] | no_license | package com.example.demo;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.spring... | true |
f720b2dd784a3de6394df9e034345dd21a650783 | Java | vasileboris/espressoprogrammer-blog-code | /references/src/main/java/com/espressoprogrammer/references/MemoryUsageDAO.java | UTF-8 | 1,671 | 2.5625 | 3 | [] | no_license | package com.espressoprogrammer.references;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import javax.annotation.PostConstruct;
import java.uti... | true |
26b6a25614458a168308d6a9e51779e23997ab68 | Java | liwensihan/KangMin_ERP | /src/main/java/com/yidu/service/ErpExpend/ErpExpendServiceImpl.java | UTF-8 | 512 | 1.570313 | 2 | [] | no_license | /**
*
*/
package com.yidu.service.ErpExpend;
import java.util.Date;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.yidu.dao.ErpExpendMapper;
import com.yidu.model.ErpExpend;
import com.yidu.util.Tools;
/**... | true |
3752f5a7681c1a43bc4cc6d83d43694a53a5bf9d | Java | Rainboz/StudyJava | /src/main/java/com/zhb/javaSE/package201904/package_object/obj_all_13_abstract/package_04/DC.java | UTF-8 | 399 | 2.71875 | 3 | [] | no_license | package com.zhb.javaSE.package201904.package_object.obj_all_13_abstract.package_04;
/**
* @program: StudyJava
* @description:
* @author: rainboz
* @create: 2019-04-25 11:55
**/
public class DC implements USB {
@Override
public void connect() {
System.out.println("USB IS DC");
}
public voi... | true |
b54aced0f14b422d8781996ba8fc9dc6cab8a574 | Java | 97UserMubai/GraduationDesign | /我的毕业web/src/main/java/systemOa/bean/BusinessUpdateApplication.java | UTF-8 | 4,249 | 2.125 | 2 | [] | no_license | package systemOa.bean;
import java.util.Date;
public class BusinessUpdateApplication {
private String messageId;
private String style;
private String employeeId;
private String employeeName;
private String department;
private Date applyTime;
private String applyEvent;
private String a... | true |
ff65d78faa51732d4bed37978bcae0335777d100 | Java | Bradone911/LandListView | /app/src/main/java/com/bignerdranch/android/landlistview/Main2Activity.java | UTF-8 | 715 | 2 | 2 | [] | no_license | package com.bignerdranch.android.landlistview;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;
public class Main2Activity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
... | true |
5518f38b0ae13457b073ae7356aa92e7248d46e0 | Java | Liuly-liuly/java-thread-jvm | /src/main/java/com/concurrency/chapter13/Animal.java | UTF-8 | 546 | 3.015625 | 3 | [] | no_license | package com.concurrency.chapter13;
/**
* @version 1.0
* @Description: 1367636569@qq.com
* @Auther: Liuly
* @Date: 2020/2/3
* @since JDK 1.8
*/
public class Animal {
public static final String str = "change job";
private Animal(){}
public Animal(String s){}
public void print(){
System... | true |
3d1bf72092d9d4e3dd553bff9a5d53bb383a89e5 | Java | Aptxsh/SpringMyTest | /src/test3/review/StudentDao.java | UTF-8 | 1,345 | 2.890625 | 3 | [] | no_license | package test3.review;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stere... | true |
47f69e510b971a564aad30713909df6623c8f155 | Java | 6638112/mps-1 | /src/main/java/cn/damei/entity/modules/OrderManagerChange.java | UTF-8 | 2,418 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive |
package cn.damei.entity.modules;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import cn.damei.common.persistence.DataEntity;
public class OrderManagerChange extends DataEntity<OrderManagerChange> {
private static final long serialVersionUID = 1L;
private Integer storeId;... | true |
8808c44ca077dfa448ff5e7bdbd3c2981f3c7f05 | Java | TeamTitanz/Warana | /src/main/java/com/cse/warana/utility/Graph/extraction/BurnerClass.java | UTF-8 | 875 | 2.203125 | 2 | [] | no_license | package com.cse.warana.utility.Graph.extraction;
import com.cse.warana.utility.Graph.network.NetworkConnectionManager;
import org.jsoup.nodes.Document;
import java.io.IOException;
import java.util.Hashtable;
/**
* Created by Anushka on 2015-01-03.
*/
public class BurnerClass {
public NetworkConnectionManager ... | true |
10aa40a823494561edd9646155e130b4d596e1ac | Java | victorolave/AbstractFactory_Java | /src/Vehicle/VehicleFactory.java | UTF-8 | 619 | 2.9375 | 3 | [] | no_license | package Vehicle;
import Car.Car;
import SUV.Suv;
public abstract class VehicleFactory {
public static final String LUXURY_VEHICLE = "Luxury";
public static final String NON_LUXURY_VEHICLE = "NonLuxury";
public abstract Car getCar();
public abstract Suv getSuv();
public static VehicleFactory ge... | true |
2704d221e093970a86ee2b4ee3260c044ead90d3 | Java | HexaHexage/ExerciceSTE | /sudoku/Sudoku/src/ste/sudoku/etape6Bis/exceptions/DoublonSudokuException.java | UTF-8 | 455 | 2.40625 | 2 | [] | no_license | package ste.sudoku.etape6Bis.exceptions;
public class DoublonSudokuException extends SudokuException {
private static final long serialVersionUID = 1L;
public DoublonSudokuException() {
}
public DoublonSudokuException(String message) {
super(message);
}
public DoublonSudokuException(Throwable ... | true |
9d1aa7f6c236d2f8bb1ba0d13f0f6473eb484947 | Java | sallymah/YHDP | /src/main/tw/com/hyweb/svc/yhdp/batch/summary/computeRmCard/AppointJob.java | UTF-8 | 15,033 | 1.765625 | 2 | [] | no_license | package tw.com.hyweb.svc.yhdp.batch.summary.computeRmCard;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Vector;
import org.apache.log4j.Logger;
import tw.com.h... | true |
d2e4898481e07c11584ce7d2449b0d3cfaf89433 | Java | jmcabandara/camel | /dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/main/java/org/apache/camel/dsl/yaml/deserializers/NamedBeanDeserializer.java | UTF-8 | 3,192 | 1.921875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown"
] | 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 ... | true |
705d09b1b44babdb618625715440ba6fe9c7f47e | Java | wordlessly/jftp | /src/main/java/com/myjavaworld/jftp/TransferModesPrefsPanel.java | UTF-8 | 7,230 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2012 jMethods, 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 obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | true |
db765381a8faaa3201abbcbad9803838bcd05144 | Java | learninginb/labWeb | /src/java/common/com/simulation/common/util/TcpipUtil.java | UTF-8 | 1,448 | 2.390625 | 2 | [] | no_license | package com.simulation.common.util;
import javax.servlet.http.HttpServletRequest;
/**
* tcp/ip 工具类
* Description:
* @ClassName: TcpipUtil
* @author Jalf
* @since 2016年5月31日 上午9:20:28
* Copyright foxtail All right reserved.
*/
public class TcpipUtil {
/**
* Description:获得ip地址
* @Title: getIpAddr
* @author... | true |
60c333a7b392dfaadcc4f9c6739bbee369f29dca | Java | JetBrains/intellij-community | /java/java-tests/testData/codeInsight/replaceStringFormat/beforeStringFormatWithArgsAndTokensPassedToPrintf.java | UTF-8 | 921 | 3.15625 | 3 | [
"Apache-2.0"
] | permissive | // "Fix all 'Redundant call to 'String.format()'' problems in file" "true"
import java.io.PrintStream;
import java.util.Locale;
import static java.lang.String.format;
class Main {
static {
System.out.<caret>printf(/* one */ "hello" /* two */);
System.out.printf(/* one */ ("hello") /* two */;
System.out.... | true |
2edcc22b412c5a218e417640b9c4fce7fa4a0d74 | Java | libinjin/ThreadImp | /src/main/java/com/youguu/spring/springIOC/xml/Test001.java | UTF-8 | 751 | 2.109375 | 2 | [] | no_license | package com.youguu.spring.springIOC.xml;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.io.SAXReader;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Test001 {
public static void main(String[] args) throws DocumentException {
/* SAX... | true |
64865c7cec66dd5dfe46142f1aa95b4455e72f55 | Java | Djpet/Poulet4j | /src/main/java/fr/poulet4j/Runner.java | UTF-8 | 6,170 | 2.328125 | 2 | [] | no_license | package fr.poulet4j;
import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.poulet4j.core.SocketReader;
import fr.poulet4j.core.SocketWriter;
import fr.poulet4j.core.message.client.Authenticat... | true |
4ccb47a38383703e558c554ee55c1ea1b43e3db1 | Java | swapnilghadge2390/CafeFinderMVPDemo | /app/src/main/java/com/suma/coffeeshopmvpassignment/views/MapsView.java | UTF-8 | 543 | 1.695313 | 2 | [] | no_license | package com.suma.coffeeshopmvpassignment.views;
import android.app.Activity;
import android.location.Location;
import com.suma.coffeeshopmvpassignment.models.NearByApiResponse;
import retrofit2.Response;
public interface MapsView {
void generateMap();
void updateLocationOnMap(Location location);
void... | true |
45b22d6a20fa4f618217b37c8db4222c0276b6ed | Java | bellmit/cms-1 | /JavaSource/com/yuanluesoft/dpc/keyproject/service/KeyProjectService.java | UTF-8 | 2,140 | 2.0625 | 2 | [] | no_license | package com.yuanluesoft.dpc.keyproject.service;
import java.util.List;
import com.yuanluesoft.dpc.keyproject.pojo.KeyProject;
import com.yuanluesoft.dpc.keyproject.pojo.KeyProjectParameter;
import com.yuanluesoft.jeaf.business.service.BusinessService;
import com.yuanluesoft.jeaf.exception.ServiceException;
import com... | true |
c9f884ac4e4d787f395906aff7ebf56f790ac205 | Java | wjh3323/SCSE | /app/src/main/java/com/example/stevenmeow/template/Activity_CheckOnWorkAttrndance.java | UTF-8 | 3,060 | 2.25 | 2 | [] | no_license | package com.example.stevenmeow.template;
import android.content.Intent;
import android.graphics.Paint;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widg... | true |
05231a7295aabc9e90145ab6abe950ff348e687e | Java | juzer10/Twitter | /app/src/main/java/com/twitter/Authentication.java | UTF-8 | 6,540 | 1.953125 | 2 | [] | no_license | package com.twitter;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.webkit.WebView;
imp... | true |
39ffc156484f273b48bad3fd81b6f390895fcbc4 | Java | juanpquiroga/lombok-demo | /src/main/java/co/com/rockthorum/lombokdemo/dto/PropietarioDataEquivalentDTO.java | UTF-8 | 574 | 2.109375 | 2 | [] | no_license | package co.com.rockthorum.lombokdemo.dto;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.ToString;
/**
* Genera getter and setters automatico, igual que el constructor de parametros requeridos, hashcode, equals y toString
* @author j... | true |
976e7f899caa13116c6a7c9bee41a61056d85d82 | Java | badisreguigui/AdoPet | /src/controllers/DetController.java | UTF-8 | 3,514 | 2.375 | 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 Controllers;
import Entities.DemandeSitting;
import Entities.OffreSitting;
import com.jfoenix.controls.JFXButton;
im... | true |
c4785261b166b3e29507e3b0710c6e4a4f017d12 | Java | Nononoa-Zoro/notes | /JavaTest/src/main/java/com/study/leecode/两数之和.java | UTF-8 | 1,252 | 3.65625 | 4 | [] | no_license | package com.study.leecode;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
public class 两数之和 {
static List<List<Integer>> res = new ArrayList<>();
//方法一 左右指针
public static List<List<Integer>> solve(int[] arr, int target) {
Arrays.sort(arr);
... | true |