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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
3de81ae48a114658ea5fec488f436edc3f8b9af3 | Java | AlbornozMilton/EjercicioCine | /src/ClasesCine/Sala.java | UTF-8 | 485 | 2.484375 | 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 ClasesCine;
/**
*
* @author Milton
*/
public class Sala {
private int numero;
private int capacidad; ... | true |
c96063a759438d0e8ef9156bb025db2ef0dd7723 | Java | vijayakanth89/Memcached-Java-Client | /test/src/cacheTest/cacheClient.java | UTF-8 | 876 | 2.15625 | 2 | [] | no_license | package cacheTest;
import com.meetup.memcached.SockIOPool;
import com.meetup.memcached.MemcachedClient;
//import java.util.*;
public class cacheClient {
public static void main(String[] args)
{
String[] servers = {"marketsimplified.com:11211"};
SockIOPool pool = SockIOPool.getInstance("BetaCache");
... | true |
74b86acf26201318f0a720d8ae7008d6229335a5 | Java | 1003021685/DiaoH-master | /app/src/main/java/com/arcgis/mymap/Alert_dialogActivity.java | UTF-8 | 15,895 | 1.742188 | 2 | [
"Apache-2.0"
] | permissive | package com.arcgis.mymap;
import android.app.Activity;
import android.content.ContentValues;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import android.... | true |
f52134a72592a1521bf9c8e4957b5e743135dbda | Java | wuguangxue/hbase | /src/main/java/com/bboniao/asynchbase/GetReq.java | UTF-8 | 1,023 | 2.328125 | 2 | [] | no_license | package com.bboniao.asynchbase;
import java.util.Map;
import java.util.NavigableSet;
/**
* Created by bboniao on 11/19/14.
*/
public class GetReq {
private byte[] row;
private boolean cacheBlocks;
private int maxVersions = 1;
private Map<byte[], NavigableSet<byte[]>> families;
public GetReq... | true |
9945c48e4716d07f6949d29dc0d42fc4240e2a6e | Java | sjg2020/COMP2000_2020 | /src/Actor.java | UTF-8 | 165 | 1.890625 | 2 | [] | no_license | import java.awt.*;
import java.util.ArrayList;
public interface Actor {
public void paint(Graphics g);
ArrayList<Polygon> Jkss = new ArrayList<Polygon>(20);
} | true |
b07f1c4beb16923ad862578f396eae8d4591f6de | Java | davidnewcomb/cfgen4j | /src/main/java/uk/co/bigsoft/apps/cfgen4j/gen/files/CfGen4jExceptionGenerator.java | UTF-8 | 1,815 | 2.28125 | 2 | [
"MIT"
] | permissive | package uk.co.bigsoft.apps.cfgen4j.gen.files;
import java.io.IOException;
import javax.lang.model.element.Modifier;
import com.squareup.javapoet.ClassName;
import com.squareup.javapoet.CodeBlock;
import com.squareup.javapoet.FieldSpec;
import com.squareup.javapoet.JavaFile;
import com.squareup.javapoet.MethodSpec;
i... | true |
e2310ae900aa8fa7e6e026f14b94da258c17b072 | Java | Lizhny/coding2017 | /group26/89460886/src/week05/source/constant/NameAndTypeInfo.java | UTF-8 | 1,103 | 2.75 | 3 | [] | no_license | package jvm.constant;
/**
* @author jiaxun
*/
public class NameAndTypeInfo extends ConstantInfo {
public int tag = ConstantInfo.NAME_AND_TYPE_INFO;
private int index1;
private int index2;
public NameAndTypeInfo(ConstantPool pool) {
super(pool);
}
public int getIndex1() {
r... | true |
2df6beddf26db8c3d8c9ac5e6acd30c1b4d530ce | Java | BartekSmalec/squashapp | /src/main/java/io/squashapp/squashapp/resource/UserResource.java | UTF-8 | 3,426 | 2.453125 | 2 | [] | no_license | package io.squashapp.squashapp.resource;
import io.squashapp.squashapp.repository.UserRepository;
import io.squashapp.squashapp.models.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org... | true |
2f57e07ab4dbe642d3af3b5992da4ebc5453d7da | Java | marekventur/myHome | /src/de/wi08e/myhome/nodeplugins/camerasimulator/JuliaGenerator.java | UTF-8 | 1,731 | 2.671875 | 3 | [] | no_license | package de.wi08e.myhome.nodeplugins.camerasimulator;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.util.Random;
public class JuliaGenerator {
private double reC, imC;
private Random random = new Random();
public int checkZo(double r... | true |
04d68eb67166e7fc00b369b09942805092e80135 | Java | green-fox-academy/pingithefrosty | /week8/day2/heroku-todo/src/main/java/com/greenfoxacademy/sqlspringpractice/collections/Types.java | UTF-8 | 364 | 2.484375 | 2 | [] | no_license | package com.greenfoxacademy.sqlspringpractice.collections;
import org.springframework.stereotype.Component;
import java.util.Arrays;
import java.util.List;
@Component
public class Types {
private List<String> todoTypes;
public Types() {
todoTypes = Arrays.asList("Work", "Fun");
}
public List<String> g... | true |
32cb8198dcd25f480e5d13f98cb5c150e949db77 | Java | knmsk/java-test-stock-quote-manager | /src/main/java/com/stock/stockquotemanager/repository/entity/Quote.java | UTF-8 | 637 | 2.421875 | 2 | [] | no_license | package com.stock.stockquotemanager.repository.entity;
import javax.persistence.Embeddable;
import javax.persistence.Table;
@Embeddable
@Table(name="quotes")
public class Quote {
private String date;
private String price;
public Quote() {
}
public Quote(String date, String price) {
th... | true |
6c9611703dbd76447c7a8f1cad2ff039bc2b230a | Java | Li-amK/School-Chemie-App | /sources/androidx/lifecycle/Transformations.java | UTF-8 | 2,109 | 2.171875 | 2 | [
"Unlicense"
] | permissive | package androidx.lifecycle;
import androidx.annotation.MainThread;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.arch.core.util.Function;
/* loaded from: classes.dex */
public class Transformations {
private Transformations() {
}
@MainThread
public static <X... | true |
6dc90b46b51857945caad2f6edd22a29a618bebb | Java | me-dalii/municipalite-project | /src/main/java/org/fsb/municipalite/controllers/AutorisationPageController.java | UTF-8 | 15,636 | 2.15625 | 2 | [] | no_license | package org.fsb.municipalite.controllers;
import javafx.beans.binding.Bindings;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializa... | true |
46a81e90f7dfb1ca8431bcb3214d73d4939660fe | Java | oweson/java--basic | /java/src/pig/daoyun/ArrayTest.java | UTF-8 | 430 | 2.609375 | 3 | [] | no_license | package pig.daoyun;
/**
* the class is create by @Author:oweson
*
* @Date:2019/3/20 0020 8:48
*/
public class ArrayTest {
// 构造函数可以修饰符不同;
ArrayTest() {
}
private ArrayTest(int a) {
}
public static void main(String[] args) {
// 数组的局部或者成员变量都会初始化默认值;
int[] arr = new int[10];
... | true |
aea4ccfdd3707b8421d1a8fc7fd6f7c8adcd49c3 | Java | AyozeVera/MoneyCalc | /src/MoneyCalculator/model/Number.java | UTF-8 | 2,694 | 3.625 | 4 | [] | no_license | package MoneyCalculator.model;
public class Number {
private long numerator;
private long denominator;
public Number(long numerator, long denominator) {
this.numerator = numerator;
this.denominator = denominator;
reduce();
}
public Number(Number number) {
this(num... | true |
90a90747c746a06e640b205339a24cbc97da1639 | Java | hhu-propra2-2019/abschlussprojekt-big_f_for_auas | /src/main/java/mops/infrastructure/config/GroupSyncConfig.java | UTF-8 | 1,581 | 2.1875 | 2 | [] | no_license | package mops.infrastructure.config;
import lombok.NoArgsConstructor;
import mops.domain.repositories.GroupRepository;
import mops.infrastructure.groupsync.GroupSyncService;
import mops.infrastructure.groupsync.GroupSyncValidator;
import mops.infrastructure.groupsync.GroupSyncWebclient;
import org.springframework.beans... | true |
095113b883bc3d5babb9f0e9d32e5ee7143f0653 | Java | konglinghai123/his | /his-statistics/src/main/java/cn/honry/statistics/bi/outpatient/outpatientPassengers/vo/DimensionVO.java | UTF-8 | 2,401 | 2.328125 | 2 | [] | no_license | package cn.honry.statistics.bi.outpatient.outpatientPassengers.vo;
//门诊人次统计 VO
public class DimensionVO {
/**总人次**/
private Integer sumPeople;
/**急诊人次**/
private Integer emerGencyPeople;
/**普诊人次**/
private Integer ordinaryPeople;
/**年度**/
private String years;
/**科室**/
private String dept;
/**地域... | true |
efc5dea34d22e36782be2728380e5c7d44063ff3 | Java | WXRain/GameCommunity | /src/main/java/com/rain/gameCommunity/entity/ShoppingCartEntity.java | UTF-8 | 1,918 | 2.3125 | 2 | [] | no_license | package com.rain.gameCommunity.entity;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.springframework.stereotype.Repository;
/**
*
* @author wangxinyu
*
*/
@Repository
public class ShoppingCartEntity implements Serializable {
//购物车id
private long id;
//用户i... | true |
6dfbc75d9d1866fd07bf39f0d28b5b917537d689 | Java | snehalpande216/FromHome | /src/com/awtandevents/Label2.java | UTF-8 | 1,648 | 3.09375 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.awtandevents;
import java.awt.Button;
import java.awt.FlowLayout;
import java.awt.Frame;
import java.awt.Label;
... | true |
37e2c24ed6051b770be64bee8887a5132385e22c | Java | azanoviv02/HermesWeb | /src/main/java/com/hermes/core/domain/hauls/BasicHaul.java | UTF-8 | 281 | 1.773438 | 2 | [] | no_license | package com.hermes.core.domain.hauls;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
/**
* Created by ivan on 26.10.16.
*/
@Entity
@DiscriminatorValue("BASIC_HAUL")
public class BasicHaul extends AbstractHaul {
public BasicHaul() {
}
}
| true |
0e4951863b80c92a3185dba26c838db054073677 | Java | herve8913/Abuse_Reporting_System | /src/bean/Patient.java | UTF-8 | 12,938 | 2.203125 | 2 | [] | no_license | package bean;
import java.sql.Connection;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.LinkedList;
import java.util.List;
public class Patient {
private int id;
private int status;
private String patie... | true |
d8bcc67aa32f74861fb564937a0e31809011a69e | Java | OleksZamkovyi/PaymentProject | /src/test/java1/ozamkovyi/web/servlet/clientServlets/ClientPaymentMenuServletTest.java | UTF-8 | 12,198 | 2.125 | 2 | [] | no_license | package ozamkovyi.web.servlet.clientServlets;
import org.junit.Test;
import ozamkovyi.db.bean.BankAccountBean;
import ozamkovyi.db.bean.PaymentBean;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession... | true |
7d4936325eacee603ec7bcfe5c21d310e95e0aee | Java | willp-bl/eidas-mirror | /EIDAS-SpecificCommunicationDefinition/src/main/java/eu/eidas/specificcommunication/protocol/util/SecurityUtils.java | UTF-8 | 3,919 | 2.171875 | 2 | [] | no_license | /*
* Copyright (c) 2019 by European Commission
*
* Licensed under the EUPL, Version 1.2 or - as soon they will be
* approved by the European Commission - subsequent versions of the
* EUPL (the "Licence");
* You may not use this work except in compliance with the Licence.
* You may obtain a copy of the Licence at... | true |
06be567ebe1a38fe7d53648b4ea54147c801b4fa | Java | mpirnazarov/ERP | /src/main/java/com/lgcns/erp/tapps/viewModel/usermenu/JobexpViewModel.java | UTF-8 | 1,953 | 2.28125 | 2 | [] | no_license | package com.lgcns.erp.tapps.viewModel.usermenu;
import java.sql.Date;
/**
* Created by Dell on 25-Oct-16.
*/
public class JobexpViewModel {
private String organization;
private String position;
private Date startDate;
private Date endDate;
private int contractType;
private int id;
publ... | true |
f83b50a632dd9a9bd3b4a52549b93383e634f2e9 | Java | jonccooke/com.tere.tools.modelling | /src/main/java/com/tere/modelling/exeptions/TypeNotFoundException.java | UTF-8 | 222 | 1.945313 | 2 | [
"Apache-2.0"
] | permissive | package com.tere.modelling.exeptions;
import com.tere.TereException;
public class TypeNotFoundException extends ModellingException
{
public TypeNotFoundException(String typeName)
{
super(typeName);
}
}
| true |
ce48d2a9302a2b1ac6159a7451711731546a7279 | Java | DeveloperAdam/PFD | /app/src/main/java/com/techease/pfd/Fragments/Recipe.java | UTF-8 | 4,176 | 2.296875 | 2 | [] | no_license | package com.techease.pfd.Fragments;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentStatePagerAdapter;
impor... | true |
543f56f4a379ab06c61712d4d513f52f250bcd9f | Java | CIoann/cuciTraceAnalyzers | /Data Analyser/src/DataStructures/Sce.java | UTF-8 | 2,806 | 2.734375 | 3 | [] | no_license | package DataStructures;
public class Sce {
private String user;
private String sce_gaze_id;
private String sce_name;
private String sce_type;
private String how;
private String total_length;
private String start_line;
private String end_line;
private String start_col;
private String end_col;
pr... | true |
3cd8301ec4538950a6c86c05ab23997c9eeff8b4 | Java | UltimateTM/DNDRipOff | /Main.java | UTF-8 | 4,988 | 3.28125 | 3 | [] | no_license |
import java.util.*;
import java.lang.Thread;
class Main {
public static void main(String[] args) {
Weapon w = new Weapon();
Potion p = new Potion();
Helper h = new Helper();
Item j = new Item();
Scanner scan = new Scanner(System.in);
int input = 0;
String sinput = "";
boole... | true |
4de4b3a23d3e8baf8253f2570cdf6a313e6a6e38 | Java | dagike/Practica7Arbol | /src/numero/NumeroComplejo.java | UTF-8 | 757 | 3.046875 | 3 | [] | no_license | package numero;
public class NumeroComplejo extends Numero {
private double parteImaginaria;
public NumeroComplejo() {
super();
parteImaginaria = 0.0;
}
public NumeroComplejo(double parteReal, double parteImaginaria) {
super(parteReal);
this.parteImaginaria = parteImaginaria;
}
public double getParteI... | true |
26d16bd38e784a95c64a4dcc4845cb1442bda61a | Java | mesutsaritas/good-api | /src/main/java/com/goodapi/enums/PasswordHashUtil.java | UTF-8 | 2,076 | 3.046875 | 3 | [] | no_license | package com.goodapi.enums;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.SecureRandom;
import javax.xml.bind.DatatypeConverter;
/**
* A util class to encrypt and check password.
*
* @author tcmsaritas
*/
publi... | true |
c25c81db33f2f857536c4041f475e6810dbf6d08 | Java | fmreina/ine5448-TopicosEspeciais-Testes | /codigo/SistemaBancario.Estoria/src/estoriatests/TesteDeposito.java | UTF-8 | 1,014 | 2.328125 | 2 | [] | no_license | package estoriatests;
import static org.junit.Assert.assertNotEquals;
import org.junit.Before;
import org.junit.Test;
import br.ufsc.ine.leb.projetos.estoria.Fixture;
import br.ufsc.ine.leb.projetos.estoria.FixtureSetup;
import br.ufsc.ine.leb.sistemaBancario.Conta;
import br.ufsc.ine.leb.sistemaBancario.Dinheiro;
i... | true |
9ea636631b8cd5f7a575515f93e694575903298d | Java | nendraharyo/presensimahasiswa-sourcecode | /b/a/a/a/b/c/b$2.java | UTF-8 | 611 | 1.625 | 2 | [] | no_license | package b.a.a.a.b.c;
import b.a.a.a.c.a;
import b.a.a.a.e.i;
import java.io.IOException;
class b$2
implements a
{
b$2(b paramb, i parami) {}
public boolean a()
{
try
{
i locali = this.a;
locali.b();
bool = true;
}
catch (IOException localIOException)
{
for (;;)
... | true |
202fa281077b67ed88d22858e8f3c3a76cff1afa | Java | NevarDima/finalproject | /web/src/main/java/com/github/alexeysa83/finalproject/web/servlet/user/UpdatePasswordServlet.java | UTF-8 | 2,851 | 2.21875 | 2 | [] | no_license | package com.github.alexeysa83.finalproject.web.servlet.user;
import com.github.alexeysa83.finalproject.model.AuthUser;
import com.github.alexeysa83.finalproject.service.validation.AuthValidationService;
import com.github.alexeysa83.finalproject.service.auth.DefaultSecurityService;
import com.github.alexeysa83.finalpro... | true |
a1072252e8e77af4ef5062bb36037e253e3666d6 | Java | pillfill/pf-java-client | /src/main/java/com/apothesource/pillfill/datamodel/spl/Pkg.java | UTF-8 | 3,943 | 1.914063 | 2 | [
"MIT"
] | permissive | /*
* The MIT License
*
* Copyright 2015 Apothesource, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, co... | true |
0c4d740f7287b5dc9c184adb234f8f0c76f023cc | Java | heumjun/common | /src/java/stxship/dis/bom/bom/controller/BomController.java | UTF-8 | 3,225 | 2.03125 | 2 | [] | no_license | package stxship.dis.bom.bom.controller;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind... | true |
64b66d43243a1103c5d431807dc54d796148dced | Java | whaooooot/MxS | /MxS/src/main/java/repository/StoreSessionRepository.java | UTF-8 | 1,940 | 2.34375 | 2 | [] | no_license | package repository;
import java.util.ArrayList;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;
import model.StoreDTO;
@Repository
public class StoreSessionRepository extends AbstractRepository {
private final String namespace = "rep... | true |
d161e191a9fa37daa24adce7752d61672ef1240c | Java | bberzhou/JavaWeb | /book/src/com/bberzhou/dao/BookDao.java | UTF-8 | 1,950 | 2.84375 | 3 | [] | no_license | package com.bberzhou.dao;
import com.bberzhou.pojo.Book;
import com.bberzhou.pojo.Page;
import java.util.List;
/**
* @description: Book相关操作的接口
* @author: bberzhou@gmail.com
* @date: 8/8/2021
* Create By Intellij IDEA
*/
public interface BookDao {
/**
* 根据书籍id来查询
* @param id 传入id号
* @return
... | true |
3116a0eb5485e4d9b1b5bf87cda00a7709f7419c | Java | Daniel-Roa-P/Mario_Data_Base | /src/java/Logica/YoshiAzul.java | UTF-8 | 352 | 2.40625 | 2 | [] | no_license |
package Logica;
public class YoshiAzul extends Yoshi {
@Override
public void setImagen(){
this.imagen="https://raw.githubusercontent.com/DanielRoa20171020077/Mario/master/src/java/Imagenes/YoshiAzul.png";
}
@Override
public void setPoder(){
this.poder="Azul, sopla por su boca... | true |
5182505826650fc3015262951f3e4b932bf974d5 | Java | opengeospatial/geoapi | /geoapi/src/main/java/org/opengis/metadata/quality/DataQuality.java | UTF-8 | 3,918 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | /*
* GeoAPI - Java interfaces for OGC/ISO standards
* Copyright © 2004-2023 Open Geospatial Consortium, Inc.
* http://www.geoapi.org
*
* 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 ... | true |
9d388487ff0669f55c9086636ce510e21a691f31 | Java | pawankumarsharm/UST-Global-16-SEP-19-PAWANKUMARSHARMA | /codes of ust/JPA Hibernate/assignment/src/main/java/com/ustglobal/assignment/UpdateQuery.java | UTF-8 | 780 | 2.359375 | 2 | [] | no_license | package com.ustglobal.assignment;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
import javax.persistence.Persistence;
import com.ustglobal.assignment.dto.Department;
public class UpdateQuery {
public static void main(String[] args... | true |
dc08e81c2c3e28839be147994c85f62acb409754 | Java | THYC/Actus | /src/main/java/net/teraoctet/actus/commands/portal/CommandPortalCreate.java | UTF-8 | 4,881 | 2.046875 | 2 | [] | no_license | package net.teraoctet.actus.commands.portal;
import java.util.function.Consumer;
import static net.teraoctet.actus.Actus.plm;
import static net.teraoctet.actus.Actus.ptm;
import net.teraoctet.actus.plot.PlotSelection;
import net.teraoctet.actus.portal.Portal;
import net.teraoctet.actus.portal.PortalManager;
im... | true |
5056d266c7dbc270780812d1c0ddaf9688552c0a | Java | bigprincipalkk/sqlServie | /src/main/java/com.youngc.pipeline/model/UnitModel.java | UTF-8 | 618 | 1.695313 | 2 | [] | no_license | package com.youngc.pipeline.model;
import lombok.Data;
import java.util.Date;
@Data
public class UnitModel {
private Long unitId;
private String unitCode;
private String unitName;
private String phoneOne;
private String phoneTwo;
private String contactOne;
priv... | true |
59d66bdc112f39fd4385dbd3b22c79beeae376fc | Java | gizmore/jpk | /src/org/gizmore/jpk/menu/file/JPKDiff.java | UTF-8 | 1,831 | 3.140625 | 3 | [
"MIT"
] | permissive | package org.gizmore.jpk.menu.file;
import java.io.File;
import java.io.FileReader;
import org.gizmore.jpk.JPKMethod;
public final class JPKDiff implements JPKMethod {
public String getName() {
return "Diff";
}
public int getMenuID() {
return MENU_FILE;
}
public String getHelp() {
retur... | true |
45a548eb254f707763479c521ccf32b8615b9e94 | Java | the-rahul/microservices | /Fare-Service/src/main/java/com/cts/flight/service/FareService.java | UTF-8 | 342 | 1.867188 | 2 | [] | no_license | package com.cts.flight.service;
import java.time.LocalDate;
import com.cts.flight.entity.Fare;
import com.cts.flight.entity.Flight;
public interface FareService {
Flight findByFlightNumberAndFlightDateAndOriginAndDestination(String flightNumber, LocalDate flightDate,
String origin, String destination);
Fare g... | true |
88068e3083469d82751170e17f4180cc6298f459 | Java | lunax28/albumCreator | /src/main/java/AlbumCreatorController.java | UTF-8 | 15,609 | 2.453125 | 2 | [] | no_license | import com.equilibriummusicgroup.albumCreator.model.Model;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.*;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.Priority;
import javafx.stage.DirectoryChooser;
import javafx.stage.Stage;
import org.apache.commons.io.File... | true |
ef1f9ef42cc4035d7663f2628a87d64e6cc383f1 | Java | prashant2906/ePricer | /epricer-automation-master/epricer-automation-master/src/com/ibm/stax/Tests/RegressionBP/PCS_TC13_Request_VS_quote_and_distributor_approves.java | UTF-8 | 6,634 | 1.71875 | 2 | [] | no_license | /**
* @author Harsha Agarwal
*
*/
package com.ibm.stax.Tests.RegressionBP;
import org.openqa.selenium.WebDriver;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;
import com.ibm.stax.BusinessLogic.Eprice... | true |
68a194d81f5168939d7a678199112fc9d0aa3ec5 | Java | OS-Revolution/OS-Revolution_Source | /src/ethos/phantasye/job/pay/impl/RandomPaymentModifier.java | UTF-8 | 477 | 2.40625 | 2 | [] | no_license | package ethos.phantasye.job.pay.impl;
import ethos.phantasye.job.pay.Payment;
import ethos.phantasye.job.pay.PaymentDecorator;
import java.util.Random;
public class RandomPaymentModifier extends PaymentDecorator {
private final int bound;
public RandomPaymentModifier(Payment payment, int bound) {
... | true |
f986436c5f1c00656e19e588fbf16e3832898dde | Java | kwonhyuksung/boardmvc | /src/com/kitri/board/controller/PictureUploadController.java | UTF-8 | 3,172 | 2.453125 | 2 | [] | no_license | package com.kitri.board.controller;
import java.io.File;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.servlet.*;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.*;
import com.kitri.board.model.AlbumDt... | true |
e2d6de2d81744984ec16528030cadaccd876f03c | Java | harisstavrinos/cb4-Project1-Messaging | /menu/Choices.java | UTF-8 | 3,800 | 2.859375 | 3 | [] | no_license | package menu;
import java.util.Scanner;
import java.util.concurrent.TimeUnit;
import javax.swing.SwingUtilities;
import database.DataBase;
import extra.Flag;
import window.EditText;
import window.TextAreaGetContent;
public class Choices {
DataBase db=DataBase.getConnect();
public void choice1(String username) {
... | true |
e429a93b9ed0f971fe402349677ad2b218a20f5f | Java | peterhhh/DesignModelSummary | /app/src/main/java/observer_pattern/Observable.java | UTF-8 | 460 | 2.59375 | 3 | [] | no_license | package observer_pattern;
/**
* @author dingbin
* @date 2019/3/27 11:37
* 被观察者
*/
public interface Observable {
/**
* 注入观察者
* @param observer
*/
void addObservers(Observer observer);
/**
* 移除
* @param observer
*/
void removeObservers(Observer observer);
/**
... | true |
23678630222bb5109a000d4fb41da0672122f877 | Java | fznsakib/scotland-yard | /src/main/java/uk/ac/bris/cs/scotlandyard/ui/ai/Scoring.java | UTF-8 | 1,351 | 2.8125 | 3 | [] | no_license | package uk.ac.bris.cs.scotlandyard.ui.ai;
import uk.ac.bris.cs.scotlandyard.model.ScotlandYardPlayer;
import uk.ac.bris.cs.scotlandyard.model.ScotlandYardView;
import java.util.List;
public abstract class Scoring {
private int totalScore;
private int destination;
private DijkstraPath boardPath;
priv... | true |
1d6e5b24d8026487f0544f72e8495370c1dc14df | Java | LambdaInnovation/HorrorFurniture | /cn/otfurniture/network/MsgInvsStateUpdate.java | UTF-8 | 1,026 | 2.296875 | 2 | [] | no_license | /**
*
*/
package cn.otfurniture.network;
import cn.otfurniture.investigate.Investigator;
import io.netty.buffer.ByteBuf;
import cpw.mods.fml.common.network.simpleimpl.IMessage;
import cpw.mods.fml.common.network.simpleimpl.IMessageHandler;
import cpw.mods.fml.common.network.simpleimpl.MessageContext;
/**
* 玩家调查状态... | true |
19f12a824b840804a7dd1a183f2b1136d2a3c464 | Java | gayatrriiii/dsa-rep | /Basiccodes/Operators.java | UTF-8 | 1,130 | 4.3125 | 4 | [] | no_license | import java.util.Scanner;
public class Operators {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.print("Please enter a number: ");
double num1 = in.nextDouble();
System.out.print("Please enter another number: ");
double num2 = in... | true |
68a67d99cf9dd86cd84b8c300b8a5e44b06dfb09 | Java | joelnewcom/embeddedOracleKv | /src/main/resources/oracle-db/kv-18.1.19/src/oracle/kv/impl/admin/plan/task/VerifyBeforeMigrate.java | UTF-8 | 10,926 | 1.828125 | 2 | [
"Apache-2.0",
"Zlib",
"MIT",
"CC0-1.0",
"FSFAP",
"BSD-3-Clause"
] | permissive | /*-
* Copyright (C) 2011, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This file was distributed by Oracle as part of a version of Oracle NoSQL
* Database made available at:
*
* http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html
*
* Please see the LICENS... | true |
f89d6e17437a568566d1923183c2b7a69c5fd3cf | Java | frwck/GemsJax-2.0 | /GemsJaxClient/src/org/gemsjax/shared/communication/serialisation/instantiators/experiment/ExperimentGroupDTOInstantiator.java | UTF-8 | 395 | 1.914063 | 2 | [] | no_license | package org.gemsjax.shared.communication.serialisation.instantiators.experiment;
import org.gemsjax.shared.communication.message.experiment.ExperimentGroupDTO;
import org.gemsjax.shared.communication.serialisation.ObjectInstantiator;
public class ExperimentGroupDTOInstantiator implements ObjectInstantiator{
@Overri... | true |
5c00ae3ea82f45e18847fc16ef706a74640a5f84 | Java | dongguiyan/android | /book/Book/src/main/java/tgc/edu/mcy/security/User2.java | UTF-8 | 528 | 2.4375 | 2 | [] | no_license | package tgc.edu.mcy.security;
import java.util.Collection;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;
public class User2 extends User {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
... | true |
1ba2b1e1e5384217036070061dfc0de9d9568b21 | Java | lovejing0306/Junit4 | /test/com/tju/junit/TriangleTest.java | UTF-8 | 1,474 | 2.71875 | 3 | [] | no_license | package com.tju.junit;
import static org.junit.Assert.*;
import org.junit.Test;
public class TriangleTest {
Triangle c_t=new Triangle();;
@Test
public void testF_triangle_one() {
assertEquals(0, c_t.f_triangle(1, 2, 3));
}
@Test
public void testF_triangle_one_01() {
assertEquals(0, c_t.f_triangle(1, ... | true |
d8dfdd979a543e4e213a1f71b33cbede4d5fce1d | Java | williamhenry94/OOAD | /chapter10/Test16.java | UTF-8 | 659 | 2.40625 | 2 | [] | no_license | package chapter10;
import static org.junit.Assert.*;
import java.io.File;
import java.io.IOException;
import org.junit.AfterClass;
import org.junit.Test;
public class Test16 {
@Test
public void test() {
try {
SubwayLoader loader = new SubwayLoader();
Subway objectville = loader.loadFromFi... | true |
40a493f543d00a23b9f9f2fd9233674d3c54859e | Java | yuzhicheng/ace | /src/main/java/com/yzc/dao/impl/PaintAuthorDaoImpl.java | UTF-8 | 7,461 | 2.1875 | 2 | [] | no_license | package com.yzc.dao.impl;
import java.math.BigInteger;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.persistence.Query;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.spring... | true |
7bf18211c005f20c7a907c40c945bc7575d9a409 | Java | moniad/Concurrency-Theory | /Lab7/src/server/MethodRequest.java | UTF-8 | 200 | 2.265625 | 2 | [] | no_license | package server;
public abstract class MethodRequest {
public boolean guard() { // checks if synchronization conditions are fulfilled
return false;
}
public void call() {
}
}
| true |
5285a150c52af4df6284f6cb9cc8f7624925d2f9 | Java | xwzl/spring-security | /security-core/src/main/java/com/security/core/authorize/CoreAuthorizeConfigProvider.java | UTF-8 | 1,925 | 2.015625 | 2 | [] | no_license | package com.security.core.authorize;
import com.security.core.constant.SecurityConstants;
import com.security.core.proterties.SecurityProperties;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.config.annotation.web.builder... | true |
bc420fdecac3c975b4c246bfe3ca33c3a2a002d3 | Java | Katsshura/Ze-Delivery-Challenge | /api/src/main/java/com/katsshura/zechallenge/api/viewModels/PartnerModel.java | UTF-8 | 640 | 1.648438 | 2 | [] | no_license | package com.katsshura.zechallenge.api.viewModels;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
@Getter
@Setter
public class PartnerModel {
@JsonProperty("id")
private String id;
@JsonProperty("tradingName")
private String tra... | true |
d08be325053746ff846212672c1c8e175ab08b3f | Java | greenstevester/flightAlert | /src/main/java/net/greensill/flightalert/repository/FlightSliceRepository.java | UTF-8 | 942 | 2.140625 | 2 | [] | no_license | package net.greensill.flightalert.repository;
import net.greensill.flightalert.domain.FlightSlice;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.*;
import org.springframework.data.repository.query.Param;
import java.util.L... | true |
1995677cabd2cbcecc96d194ee3fadbfe28d9162 | Java | rageappliedgame/AssetManager-Java | /src/java/eu/rageproject/asset/manager/IDataStorage.java | UTF-8 | 1,981 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018 e-ucm, Universidad Complutense de Madrid
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* This project has received funding from the European Union’s Horizon
* 2020 research and innovation programme under g... | true |
28818e63b654194d5c5fcecd7657972d251a284b | Java | gmarchontes/Archore | /common/Commands.java | UTF-8 | 76,157 | 2.09375 | 2 | [] | no_license | package common;
//import game.GameServer;
import game.GameThread;
import game.GameServer.SaveThread;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.PrintWriter;
import java.util.Map.Entry;
import javax.swing.Timer;
import common.World.ItemSet;
import objects.Action;
import ... | true |
ef19db0be5eb69149458f6447aa5223a7818794b | Java | JurajKE/musicapp | /juraj-music-web/src/main/java/com/pacholsky/juraj/music/service/view/SongViewService.java | UTF-8 | 929 | 1.914063 | 2 | [] | no_license | package com.pacholsky.juraj.music.service.view;
import com.pacholsky.juraj.music.dto.PlaylistView;
import com.pacholsky.juraj.music.dto.SongView;
import com.pacholsky.juraj.music.entity.Song;
import com.pacholsky.juraj.music.exception.ErrorCode;
import com.pacholsky.juraj.music.exception.MusicException;
import com.pac... | true |
dace42009da8f8a60e1acb14941d2fb3dfe56d0f | Java | fredericoeca/gestaodefluidos | /src/com/gf/model/dao/exception/RelatorioNuloException.java | ISO-8859-1 | 247 | 1.984375 | 2 | [] | no_license | package com.gf.model.dao.exception;
public class RelatorioNuloException extends Exception{
private static final long serialVersionUID = 1L;
public RelatorioNuloException(){
super("Relatrio sem dados para esses parmetros!");
}
}
| true |
edff9ff6dd0efa9088319e4c8225f673e3704a22 | Java | shubha1994/CRAFTSVILLADEMO | /src/main/java/ObjectRepository/Quickveiwpopup.java | UTF-8 | 754 | 1.945313 | 2 | [] | no_license |
package main.java.ObjectRepository;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class Quickveiwpopup {
private WebDriver driver;
@FindBy(xpath="//div[@class='col-xs-12 c... | true |
d840eb6eb73c4d5835353ec24b3392e983f4b3b2 | Java | zlzlxm13/KH-Final-Project | /finalproject/src/main/java/controller/ChatWebSocketHandler.java | UTF-8 | 1,802 | 2.8125 | 3 | [] | no_license | package controller;
import java.util.ArrayList;
import java.util.List;
import org.springframework.web.socket.CloseStatus;
import org.springframework.web.socket.TextMessage;
import org.springframework.web.socket.WebSocketMessage;
import org.springframework.web.socket.WebSocketSession;
import org.springframework.web.so... | true |
22ca273a644b11624c698f6eb650498d9e120ff8 | Java | geely-shoping/geely-shopping-parent | /geely-service/src/main/java/com/geely/service/impl/CouponTbServiceImpl.java | UTF-8 | 1,699 | 1.945313 | 2 | [] | no_license | package com.geely.service.impl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.geely.entity.CouponTb;
import com.geely.dao.CouponTbMapper;
import com.geely.service.CouponTbService;
@Service
public class CouponTbServiceImpl implements CouponTbService{
... | true |
a6adf0e172f7f28697a1d5b0f38ec0f0ff105277 | Java | consulo/consulo | /modules/base/util/util-collection/src/main/java/consulo/util/collection/WeakList.java | UTF-8 | 3,774 | 2.625 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-jgraph"
] | permissive | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | true |
817b0984f4f85fe83992065dc95f984c731c7887 | Java | ruxeom/FMM-Web-Server | /src/fmmserver/MimeTypes.java | UTF-8 | 610 | 2.765625 | 3 | [] | no_license | package fmmserver;
import java.util.Hashtable;
import java.util.Scanner;
import java.io.*;
public class MimeTypes
{
public Hashtable<String,String> getMimeHash()
{
Hashtable<String,String> table = new Hashtable<String,String>();
try
{
Scanner scanner = new Scanner(new FileInputStream("mimetable.txt"));
... | true |
f727fee5a4c5f1a95c65354cd8a1750708a68f0a | Java | jimcurry/premieraco | /src/main/java/com/lpasystems/premieraco/dao/UserDAO.java | UTF-8 | 1,848 | 2.28125 | 2 | [] | no_license | package com.lpasystems.premieraco.dao;
import java.util.List;
import org.skife.jdbi.v2.HashPrefixStatementRewriter;
import org.skife.jdbi.v2.sqlobject.Bind;
import org.skife.jdbi.v2.sqlobject.SqlQuery;
import org.skife.jdbi.v2.sqlobject.customizers.Mapper;
import org.skife.jdbi.v2.sqlobject.customizers.Overri... | true |
1941f837f67f5834ca2995a7f61ca063557d6be3 | Java | JungYOsup/java_standard | /20171023_XY_Calculation/src/min/edu/XY_Main.java | UTF-8 | 505 | 3.296875 | 3 | [] | no_license | package min.edu;
public class XY_Main {
public static void main(String[] args) {
// 값을 가지고 있는 객체를 생성
XY a = new XY();
a.x = 10.0;
a.y = 20.0;
XY b = new XY();
b.x = 5.0;
b.y =10.0;
XY rCal1 =XY_Calculation.Minus(a, b);
System.out.printf("마이너스 결과는 ? x = %f , y = %f \n",rCal1.x , rCal1.y... | true |
2bc27313bead103ee6a72f532b6340006f463fbd | Java | koma2412/Greenbook | /src/main/java/org/example/repositories/LocationRepository.java | UTF-8 | 343 | 1.976563 | 2 | [] | no_license | package org.example.repositories;
import org.example.entity.Location;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface LocationRepository extends CrudRepository<Location, Integer> {
@Override
List<... | true |
1ff6508f1b5ed16396ebd71996e51869c0158520 | Java | wangdg/projecteuler-java | /src/main/java/com/wangdg/projecteuler/level2/problem42/Problem42.java | UTF-8 | 1,658 | 3.421875 | 3 | [] | no_license | package com.wangdg.projecteuler.level2.problem42;
import org.apache.commons.io.IOUtils;
import java.io.IOException;
import java.util.HashSet;
import java.util.Set;
/**
* https://projecteuler.net/problem=42
*/
public class Problem42 {
protected static String LETTER_STR = "abcdefghijklmnopqrstuvwxyz";
publ... | true |
3621937bdca2926733085ad708a433a0e9158811 | Java | billa513/MFPE-Project | /Newhospitalmanagement/src/main/java/com/example/newhospitalmanagement/repository/EmployeeRepository.java | UTF-8 | 718 | 2 | 2 | [] | no_license | package com.example.newhospitalmanagement.repository;
import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.NoRepositoryBean;
import org.springframework.da... | true |
b6defec59ddb5f164a5370a096c28af4000e077c | Java | mamingrui8/mmrlearning | /basicknowledge/src/main/java/com/mmr/learn/theory/thinkinginjava/part21/DaemonFromFactory.java | UTF-8 | 2,595 | 3.875 | 4 | [] | no_license | package com.mmr.learn.theory.thinkinginjava.part21;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
/**
* 通过ThreadFactory来初始化的Executors
* @author Charles Wesley
* @date 2019/11/27 23:47
*/
public class DaemonFromFactory implements Runnable{... | true |
830bb612ddfdc8a190d65f7d6e66ea1ab45ebf51 | Java | JetBrains/intellij-community | /plugins/maven/src/test/java/org/jetbrains/idea/maven/importing/MavenConfigImportingTest.java | UTF-8 | 5,598 | 1.671875 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.idea.maven.importing;
import com.intellij.maven.testFramework.MavenDomTestCase;
import com.intellij.openapi.application.WriteAction;
import com.intellij.ope... | true |
54f27d2928a399145a32be05b165ddfe3519b0ed | Java | CodeChina888/testgit | /Release/update/20181204/src/com/hanweb/jmp/cms/dao/cols/ColDAO.java | UTF-8 | 34,549 | 2.25 | 2 | [] | no_license | package com.hanweb.jmp.cms.dao.cols;
import java.util.List;
import com.hanweb.common.basedao.BaseJdbcDAO;
import com.hanweb.common.basedao.LikeType;
import com.hanweb.common.basedao.Query;
import com.hanweb.common.basedao.UpdateSql;
import com.hanweb.common.util.DateUtil;
import com.hanweb.common.util.NumberUtil;
i... | true |
7e34cada23a051feebf459c57c14249210196d25 | Java | zxin-git/zjs-grape | /src/test/java/com/zxin/java/spring/utils/UnixTimeStampUtilsTest.java | UTF-8 | 382 | 2.1875 | 2 | [] | no_license | package com.zxin.java.spring.utils;
import org.junit.Test;
public class UnixTimeStampUtilsTest {
@Test
public void timestamp() {
System.out.println(UnixTimeStampUtils.timeSecond(1583379547L));
}
@Test
public void timeMill() {
System.out.println(UnixTimeStampUtils.timeMill(158337... | true |
aedffbd70667a7cdad44257a31d3e4d3f9bba061 | Java | androidok/KTV | /ktv_portrait/src/main/java/com/beidousat/karaoke/ui/fragment/setting/FmSettingRoomInfo.java | UTF-8 | 10,327 | 1.671875 | 2 | [] | no_license | package com.beidousat.karaoke.ui.fragment.setting;
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.Recyc... | true |
623438477a2aad05ce21bbad651dc5f56c36b7ad | Java | Nilhcem/xebia-android-flaws | /03-coding-confessional/src/main/java/com/example/codingconfessional/models/Secret.java | UTF-8 | 632 | 2.28125 | 2 | [] | no_license | package com.example.codingconfessional.models;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Secret {
private String mAuthor;
private String mContent;
@JsonProperty("author")
... | true |
89d17abc1d162040d5167c2a120bfb1e633ace17 | Java | sayederfanarefin/springboot-backend-hr-module | /src/main/java/com/sweetitech/hrm/controller/superadmin/SuperAdminLeaveController.java | UTF-8 | 2,375 | 2.15625 | 2 | [] | no_license | package com.sweetitech.hrm.controller.superadmin;
import com.sweetitech.hrm.common.Constants;
import com.sweetitech.hrm.common.exception.EntityNotFoundException;
import com.sweetitech.hrm.domain.LeaveStatus;
import com.sweetitech.hrm.domain.dto.LeaveDTO;
import com.sweetitech.hrm.domain.dto.LeaveResponseDTO;
import co... | true |
0358557ae9e79660a12841bf7af222ff0e8e33ae | Java | wenyadi/Calculator | /Source Code/Calc/src/main/visual/VisualControl.java | UTF-8 | 3,509 | 2.796875 | 3 | [] | no_license | package main.visual;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
import main.audio.AudioPresentation;
public class VisualControl implements Act... | true |
d8a7020b1c0ac29eb38ee3d4dc199ab636d1a0c8 | Java | nayeemahmed24/eShop-Website | /Daraz/src/main/java/com/daraz/service/HomeSliderService.java | UTF-8 | 611 | 2.15625 | 2 | [] | no_license | package com.daraz.service;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.daraz.obj.HomeSlider;
import com.daraz.repo.HomeSliderRepo;
@Service
public class HomeSliderService {
@Autowired
p... | true |
bb34fe77ecbf202fd10b5ebe933a12ddabf1d58a | Java | ignesious/MyDataStructures | /DataStructures/src/LinkedList/LinkedListTwo.java | UTF-8 | 10,573 | 3.234375 | 3 | [] | no_license | package LinkedList;
import java.util.ArrayList;
public class LinkedListTwo {
ListNode head;
ListNode headTwo;
ListNode slowPointPali;
ListNode fastPointPali;
ListNode reverseCheck;
ListNode newHead;
ListNode slowcut ;
int reorderSwitch=1;
ArrayList<Integer> storeNodeValue = new ArrayList<Integ... | true |
49a3ff14650520a827aa48286a2f78fbca9c5a87 | Java | DevNebula/android_packages_app_lgcamera | /src/main/java/com/lge/camera/managers/BarManager.java | UTF-8 | 12,632 | 2.140625 | 2 | [] | no_license | package com.lge.camera.managers;
import android.app.Activity;
import android.util.SparseArray;
import android.view.MotionEvent;
import android.view.View;
import com.lge.camera.C0088R;
import com.lge.camera.components.BarAction;
import com.lge.camera.components.BarView;
import com.lge.camera.components.BarView.BarManag... | true |
b244c4997861692bbf10a4a517273f6d15075456 | Java | danielzhe/kie-wb-common | /kie-wb-common-screens/kie-wb-common-data-modeller/kie-wb-common-data-modeller-client/src/main/java/org/kie/workbench/common/screens/datamodeller/client/util/DataObjectComparator.java | UTF-8 | 1,348 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* 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 a... | true |
3d54cb5562854e4ab11f62027f553fb098773099 | Java | gaurav21/structotest | /src/main/java/io/github/khangnt/downloader/EventDispatcher.java | UTF-8 | 4,514 | 2.578125 | 3 | [] | no_license | package io.github.khangnt.downloader;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Executor;
import io.github.khangnt.downloader.model.TaskReport;
/**
* Created by Khang NT on 6/3/17.
* Email: khang.neon.1997@gmail.com
*/
class EventDispatcher implements EventListener {
pri... | true |
d427ac54f8da4d7b521c55f7b435b8b95a258cb3 | Java | JPB117/flexiPayImprovement | /src/main/java/com/icpak/rest/models/membership/ApplicationCategory.java | UTF-8 | 2,467 | 2.234375 | 2 | [] | no_license | package com.icpak.rest.models.membership;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import j... | true |
694d02b95fceceeb721b4fd9a0d9df7d3a3a4cfd | Java | sedavSdk/XandOclient_v2.0 | /core/src/com/mygdx/game/Player.java | UTF-8 | 2,685 | 2.265625 | 2 | [] | no_license | package com.mygdx.game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.graphics.g2d.freetype.... | true |
83b25eb575dfc760bb097cacd8382cf56fedb19c | Java | nahuelsgk/ichnaea-pfc-nahuel | /amqp/src/test/java/edu/upc/ichnaea/amqp/xml/XmlBuildModelsRequestReaderTest.java | UTF-8 | 1,951 | 2.296875 | 2 | [] | no_license | package edu.upc.ichnaea.amqp.xml;
import static org.junit.Assert.*;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collection;
import org.junit.Test;
import org.xml.sax.SAXException;
import edu.upc.ichnaea.amqp.IOUtils;
import edu.upc.ichnaea.amqp.model.BuildModelsRequest;
import edu.upc.i... | true |
165e988856dbc463e3324bfbad1cf14ce4cd2e47 | Java | LancCJ/TrasAddForMultiple | /src/main/java/com/lsm/controller/TransactionController.java | UTF-8 | 2,722 | 2.34375 | 2 | [] | no_license | package com.lsm.controller;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.HashMap;
import java.util.Map;
import org.apache.http.HttpEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEn... | true |
eb8b3f064b3928bae3b96fbad27ed39896da65fe | Java | a252937166/com.system.service | /src/com/crm/controller/HelloController.java | UTF-8 | 829 | 2.1875 | 2 | [] | no_license | package com.crm.controller;
import com.crm.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annot... | true |
b6ac4886f283d7b4574697b4144b621dc5e999ba | Java | NTRsolutions/POSwithQRwithoutGPS | /app/src/main/java/com/example/pef/prathamopenschool/MultiPhotoSelectActivity.java | UTF-8 | 70,087 | 1.5625 | 2 | [] | no_license | package com.example.pef.prathamopenschool;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.os.Environment;
import android.provider.Settings;
import android.suppor... | true |
777d732087442c4b9682119c668b55afe75b04ae | Java | mario1oreo/dungproxy | /client/src/main/java/com/virjar/dungproxy/client/ippool/config/DomainContext.java | UTF-8 | 3,902 | 2.171875 | 2 | [] | no_license | package com.virjar.dungproxy.client.ippool.config;
import com.google.common.base.Preconditions;
import com.virjar.dungproxy.client.ippool.strategy.Offline;
import com.virjar.dungproxy.client.ippool.strategy.ResourceFacade;
import com.virjar.dungproxy.client.ippool.strategy.Scoring;
/**
* Created by virjar on 17/1/23... | true |
b4dfe9167cfbecd0cbec0f986334602a4b34ea95 | Java | TinsPHP/tins-inference-engine | /test/ch/tsphp/tinsphp/inference_engine/test/integration/reference/ParameterDoubleDefinitionErrorTest.java | UTF-8 | 2,875 | 2.03125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | /*
* This file is part of the TinsPHP project published under the Apache License 2.0
* For the full copyright and license information, please have a look at LICENSE in the
* root folder or visit the project's website http://tsphp.ch/wiki/display/TINS/License
*/
/*
* This class is based on the class ParameterDoubl... | true |
9c49f97d8e607be818154c7b68c36ea4d2d44dbe | Java | shabbirahussain/NEU-CS6200-InformationRetrieval | /HW5/src/com/ir/homework/hw5/evaluators/AbstractEvaluator.java | UTF-8 | 1,909 | 2.484375 | 2 | [] | no_license | package com.ir.homework.hw5.evaluators;
import java.text.DecimalFormat;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import com.ir.homework.hw5.models.ModelQrel;
import com.ir.homework.hw5.models.ModelQres;
public abstract class Abstr... | true |
f02f890d02dfbfd5929e3ec6783fbaaf307053e7 | Java | Walkerstar/patterns_learn | /patterns/src/com/bjsxt/prototype/Client1.java | GB18030 | 631 | 3.21875 | 3 | [] | no_license | package com.bjsxt.prototype;
import java.util.Date;
/**
* ԭģ(dz¡)
* @author Administrator
*
*/
public class Client1 {
public static void main(String[] args) throws Exception {
Date date=new Date(141646313164464L);
Sheep s1=new Sheep("",date);
System.out.println(s1);
System.out.println(s1.getSname());
... | true |