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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
71cbd96e77b1e82401bce04edaf087cb6b464071 | Java | pdewan/YAAS | /src/yaas/layout/CompositeShape.java | UTF-8 | 230 | 2.0625 | 2 | [] | no_license | package yaas.layout;
import java.util.List;
import shapes.FlexibleShape;
public interface CompositeShape extends FlexibleShape{
public List<FlexibleShape> getShapes();
public void setShapes(List<FlexibleShape> _shapes);
}
| true |
785445b44e265bd8cb89f7fbf0665d93b996220a | Java | NURGALIMOV/inurgalimov | /level_junior_001/src/main/java/ru/inurgalimov/list/MyNode.java | UTF-8 | 855 | 3.421875 | 3 | [
"Apache-2.0"
] | permissive | package ru.inurgalimov.list;
/**
* @param <T> - generalized parameter
* @author Nurgalimov Ilshat
* @version 2.0
*/
public class MyNode<T> {
private T value;
private MyNode<T> next;
public MyNode(T value) {
this.value = value;
}
/**
* The method implements the Floyd algorithm.
... | true |
a4cba28897b68926d8f856f48d441d58c116cf8b | Java | petarcurcin/Rent-a-Car-MicroservicesApp | /advertisement/src/main/java/com/advertisement/dto/CodeBookDTO.java | UTF-8 | 400 | 1.828125 | 2 | [] | no_license | package com.advertisement.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CodeBookDTO {
private List<CarBrandDTO> carBrands;
private List<CarClassDTO> carClasses;
private List<Fue... | true |
b6b21a1015e15852c6784720c483833306548808 | Java | LLQ1208/training | /src/com/acsm/training/dao/impl/BaseDaoImpl.java | UTF-8 | 9,472 | 2.34375 | 2 | [] | no_license | package com.acsm.training.dao.impl;
import java.lang.reflect.ParameterizedType;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.inject.Inject;
import com.acsm.training.dao.BaseDao;
import com.acsm.training.model.basic.PageHelper;
import org.hibernate.Query... | true |
81313a01fda38992f3665f4c9c10cf43364ba108 | Java | bosstkd/monHotelReal | /src/java/model/agc/MhConventionAgcChambre.java | UTF-8 | 3,253 | 2.078125 | 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 model.agc;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import java... | true |
31c79e6e4f695c00da2cc7c3ad0dfc0a99d35bde | Java | rayhan-ferdous/code2vec | /codebase/selected/2498502.java | UTF-8 | 21,916 | 1.96875 | 2 | [] | no_license | package strudle;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import javax.sound.sampled.AudioFileFormat;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
imp... | true |
73f90f09b1c02e7c521780214a2d2f1bbe030a53 | Java | keestux/avr-eclipse-plugin | /de.innot.avreclipse.ui/src/de/innot/avreclipse/ui/editors/ByteValuesSourceEditor.java | UTF-8 | 5,624 | 1.820313 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2008, 2011 Thomas Holland (thomas@innot.de) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies ... | true |
5822e8fa5d31e016977c4965855d2a5117267bf6 | Java | michalush/esanalysis | /src/main/java/service/ElasticQueryExecutor.java | UTF-8 | 565 | 2.015625 | 2 | [] | no_license | package service;
import io.searchbox.client.JestClient;
import io.searchbox.core.Count;
import io.searchbox.core.CountResult;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.io.IOException;
@Service
public class ElasticQueryExecutor {
@Resource
private JestClient client... | true |
c2f9391ccba17f98894d857d00511eb39c88bc0d | Java | anantsaini-git/JavaProblems | /JAVA8Programs/src/com/practise/method/reference/ExecuteMain.java | UTF-8 | 1,925 | 4.3125 | 4 | [] | no_license | package com.practise.method.reference;
public class ExecuteMain {
/*
* Java provides a new feature called method reference in Java 8. Method
* reference is used to refer method of functional interface.
*
* It is compact and easy form of lambda expression. Each time when you are
* using lambda exp... | true |
243b1a604f87fa97ccebb17005dd1184a23301be | Java | KozlovDanila/Valutes | /src/main/java/com/example/Writers/XmlWriter.java | UTF-8 | 2,075 | 2.625 | 3 | [] | no_license | package com.example.Writers;
import com.example.Currencies.ValCurs;
import java.io.File;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerExcept... | true |
cd8cfc2848a24df6e79cc4d3b1bd8b5bbfde7fd5 | Java | Kumar-Neelamegam/mvvm-github-bitpanda | /app/src/main/java/com/example/test/bitpanda/view/ui/Dashboard.java | UTF-8 | 1,813 | 1.96875 | 2 | [] | no_license | package com.example.test.bitpanda.view.ui;
import android.os.Bundle;
import com.example.test.bitpanda.R;
import com.example.test.bitpanda.service.model.Repository;
import javax.inject.Inject;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;... | true |
2925e04baebcbb78417ab61d3904860c1b2a4c75 | Java | superGao/Android_mobilesafe | /src/service/AppLockService.java | UTF-8 | 3,358 | 2.28125 | 2 | [] | no_license | package service;
import java.util.ArrayList;
import java.util.List;
import com.superGao.db.dao.AppLockDao;
import com.superGao.mobilesafe.EncryptAppActivity;
import android.app.ActivityManager;
import android.app.Service;
import android.app.ActivityManager.RunningTaskInfo;
import android.content.BroadcastReceiver;
i... | true |
7983e72e7490e539ea97347300adcdfe2bae570a | Java | mizna-d/conference-system | /src/user/organizer/OrganizerAccountPresenter.java | UTF-8 | 1,247 | 3.078125 | 3 | [] | no_license | package user.organizer;
import user.AccountPresenter;
/**
* A presenter class. This class is responsible for anything related to logging in,
* logging out, and navigating through the account. It also creates a menu specific to an organizer.
* @author multiple
* @version 1
* */
public class OrganizerAcc... | true |
76cabc1f4f5182c411fcf47e3fe8f0297f494440 | Java | LeonardoZ/fatec-lp3 | /src/java/com/edu/fatecbt/produto/ProdutoNovoServlet.java | UTF-8 | 1,160 | 2.1875 | 2 | [] | no_license | package com.edu.fatecbt.produto;
import com.edu.fatecbt.departamento.DepartamentoDAO;
import com.edu.fatecbt.sistema.controle.ServletBase;
import com.edu.fatecbt.sistema.controle.AppUrls;
import java.io.IOException;
import java.util.Date;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServle... | true |
1dc18e6b7aa6fc10bec51fb977ee0bcdda25d945 | Java | scanry/dove | /dove-transport/dove-transport-api/src/main/java/com/six/dove/transport/NetAddressChecker.java | UTF-8 | 656 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | package com.six.dove.transport;
/**
*@author:MG01867
*@date:2018年3月30日
*@E-mail:359852326@qq.com
*@version:
*@describe //TODO
*/
public class NetAddressChecker {
public static String generateConnectionKey(String host, int port) {
return host+":"+port;
}
public static String checkHost(String host... | true |
0b295191c5ab01f1d93d4948bc8d9ef2824fcc7f | Java | hemantseth0210/design-patterns | /factory-pattern/abstract-factory/PizzaExample/src/com/sethjava/abstractfactory/product/ingredient/RedPepper.java | UTF-8 | 104 | 1.710938 | 2 | [] | no_license | package com.sethjava.abstractfactory.product.ingredient;
public class RedPepper implements Veggies {
}
| true |
d549d043598ba72d22f07d253cea39f8708da1ff | Java | willdgomes/web2tads | /src/java/com/ufpr/tads/web2/dao/ClienteDAO/ClienteDAO.java | UTF-8 | 6,759 | 2.578125 | 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.ufpr.tads.web2.dao.ClienteDAO;
import com.ufpr.tads.web2.beans.Cliente.Cliente;
import com.ufpr.tads.web2.dao.ConnectionFa... | true |
db26e3874b97dd5fe9491560059621b3cb0ba8d0 | Java | micaren/SuperBuilder | /src/main/java/com/macren/business/enums/ChapterStatus.java | UTF-8 | 90 | 1.585938 | 2 | [] | no_license | package com.macren.business.enums;
public enum ChapterStatus {
active,inactive,delete
}
| true |
2be67d39825019566189f6c35b5973d5759d674c | Java | DaisyHax/SpringbootMicroservicesTraining | /day03palindrome/src/main/java/com/intuit/day03palindrome/Day03palindromeApplication.java | UTF-8 | 349 | 1.625 | 2 | [] | no_license | package com.intuit.day03palindrome;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Day03palindromeApplication {
public static void main(String[] args) {
SpringApplication.run(Day03palindromeApplic... | true |
af80e525de717653f1488e324f830d2a80b8c938 | Java | EBIBioStudies/CoreModel | /src/main/java/uk/ac/ebi/biostd/authz/User.java | UTF-8 | 7,442 | 1.929688 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2014-2017 Functional Genomics Development Team, European Bioinformatics Institute
*
* 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/LICENS... | true |
ab6b16a5950be51dc019b71a2369377289abaac8 | Java | gitjinyubao/MyProject | /PreviousProjects/java/ssm/Mybatis_Two/src/com/dao/Demo.java | UTF-8 | 498 | 1.945313 | 2 | [] | no_license | package com.dao;
//import java.util.List;
import com.dao.impl.UesrDaoImpl;
import com.entity.User;
public class Demo {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
UesrDaoImpl userDaoImpl = new UesrDaoImpl();
User user=userDaoImpl.findUser(1);... | true |
045958be13002cccc606fbfebfb4957107af0d7a | Java | tppt/HitchHikeRU | /src/servlets/SRegisterRequest.java | UTF-8 | 2,685 | 2.28125 | 2 | [] | no_license | package servlets;
/**
* @author Yuriy Garnaev
*/
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.Map;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax... | true |
e74619e817d0c01168d21ba2416df9617d9f02ec | Java | mablds/banking-system-poo-senac | /src/main/java/poo/simplebankpoo/HomeController.java | UTF-8 | 619 | 1.976563 | 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 poo.simplebankpoo;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.... | true |
b8e73638dc2256c1396b28b412cacd89228665c3 | Java | cklxl/AsciidocFX | /src/main/java/com/kodedu/config/FoldStyle.java | UTF-8 | 379 | 2.53125 | 3 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | package com.kodedu.config;
/**
* Created by usta on 22.06.2016.
*/
public enum FoldStyle {
DEFAULT,
MANUAL,
MARKBEGIN,
MARKBEGINEND;
public static boolean contains(String test) {
for (FoldStyle c : FoldStyle.values()) {
if (c.name().equals(test)) {
return tr... | true |
1c9fe9d97cf6d9f028d01af6a26ee20ffc45e0ae | Java | luotianwen/pgy | /dd_adv_op/src/main/java/com/kkgame/feeop/record/service/OperatorService.java | UTF-8 | 623 | 1.90625 | 2 | [] | no_license | package com.kkgame.feeop.record.service;
import com.kkgame.feeop.record.bean.OperatorVO;
import com.kkgame.feeop.util.DatabaseException;
import java.util.List;
public interface OperatorService {
List<OperatorVO> getOperatorVOList(OperatorVO operatorVO) throws DatabaseException;
void create(OperatorVO o... | true |
c804b883c5d2808f44b58158e812b33c1c4fd20a | Java | BrandonCoats/MovieAPI | /src/main/java/Models/Movie.java | UTF-8 | 1,396 | 2.640625 | 3 | [] | no_license | package Models;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToMany;
... | true |
99ae1c93f2cb7f0c1a01871ea14a0e8f68314e47 | Java | hdu-xsy/Java | /spring/src/main/java/aop/EncoreableImpl.java | UTF-8 | 146 | 1.960938 | 2 | [] | no_license | package aop;
public class EncoreableImpl implements Encoreable{
public void performEncore() {
System.out.println("Encore");
}
}
| true |
65cd9f98258817dd1c5608453f26657170f7b917 | Java | imglib/imglib2-algorithm | /src/test/java/net/imglib2/algorithm/integral/IntegralImgTest.java | UTF-8 | 4,871 | 2.171875 | 2 | [
"BSD-2-Clause"
] | permissive | /*
* #%L
* ImgLib2: a general-purpose, multidimensional image processing library.
* %%
* Copyright (C) 2009 - 2023 Tobias Pietzsch, Stephan Preibisch, Stephan Saalfeld,
* John Bogovic, Albert Cardona, Barry DeZonia, Christian Dietz, Jan Funke,
* Aivar Grislis, Jonathan Hale, Grant Harris, Stefan Helfrich, Mark Hi... | true |
db05cc6a7ffb4ac0724bb14d3bea67c6e6b6e53c | Java | zhoufeng/a-cp | /alicopy-web/src/main/java/com/shenma/top/imagecopy/controller/AdminController.java | UTF-8 | 9,220 | 1.804688 | 2 | [] | no_license | package com.shenma.top.imagecopy.controller;
import com.shenma.alicopy.dao.OwnCatInfoDao;
import com.shenma.alicopy.entity.OwnCatInfo;
import com.shenma.alicopy.service.AliBaBaSaveService;
import com.shenma.alicopy.util.AliCateAuto2Util;
import com.shenma.alicopy.util.AliCateListAutoUtil;
import com.shenma.alicopy.uti... | true |
6852a044a662781e8ac37c5de2411c16e59cf2d5 | Java | avanderw/advent-of-code | /src/main/java/net/avdw/adventofcode/year2021/Day11.java | UTF-8 | 3,158 | 3.1875 | 3 | [] | no_license | package net.avdw.adventofcode.year2021;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.SneakyThrows;
import net.avdw.adventofcode.Day;
import net.avdw.adventofcode.Runner;
import java.util.*;
import java.util.concurrent.atomic.AtomicInteger;
public class Day11 extends Day {
public static voi... | true |
591017be2f7aa6e9036df5231b712316f206821e | Java | MubaiLi/PAT | /Basic/test1046.java | UTF-8 | 736 | 3.125 | 3 | [] | no_license | package Basic;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class test1046 {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String N_str = br.readLine();
int N = Integer... | true |
c502c539d9fe70287731e79472d3d6ce5350bfff | Java | bogdanstoica69/Tema2 | /src/test/MethodsTest.java | UTF-8 | 460 | 2.1875 | 2 | [] | no_license | package test;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import lab.City;
import utils.Methods;
public class MethodsTest {
City city;
@Before
public void setup(){
city = new City(819827, "Razvilka", 55.591667, 37.740833, "RU");
}
@Test
public void testMe... | true |
fa5b09a7545c423faddc7b2e309e651b9a844205 | Java | hustxiaolian/Concurrency | /src/com/xiaolianhust/concurrency/thinkingInjava/chapter21/E26_Restaurant.java | GB18030 | 3,885 | 3.34375 | 3 | [] | no_license | package com.xiaolianhust.concurrency.thinkingInjava.chapter21;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
class E26_WaitPerson implements Runnable{
E26_Restaurant restaurant;
public E26_WaitPerson(E26_Restaurant restaurant) {
... | true |
1de96782ba4468bdec7066b489ee61eefdbe97c7 | Java | PatrykBrzuchacz/playing-field-managment | /src/main/java/engineersthesis/playingfieldmanagment/web/controller/InviteController.java | UTF-8 | 1,775 | 2.046875 | 2 | [] | no_license | package engineersthesis.playingfieldmanagment.web.controller;
import engineersthesis.playingfieldmanagment.modules.playingField.availability.invite.InviteService;
import engineersthesis.playingfieldmanagment.web.dto.InviteDto;
import engineersthesis.playingfieldmanagment.web.dto.InviteWithUserDto;
import engineersthes... | true |
c60d478b191550dbf9937be71ae7e051a001599c | Java | smartluobo/tea1 | /src/main/java/com/ibay/tea/cms/controller/login/CmsLoginController.java | UTF-8 | 2,177 | 2.015625 | 2 | [] | no_license | package com.ibay.tea.cms.controller.login;
import com.alibaba.fastjson.JSONObject;
import com.ibay.tea.api.response.ResultInfo;
import com.ibay.tea.cms.service.login.CmsLoginService;
import com.ibay.tea.entity.TbCmsUser;
import org.apache.ibatis.annotations.ResultType;
import org.slf4j.Logger;
import org.slf4j.LoggerF... | true |
a8c1468d85efbd2c2137b76eef8556f5bea277ca | Java | stanserw/sdacademy-examples | /06_klasa_podstawa/src/main/java/pl/sdacademy/inner/OuterClass.java | UTF-8 | 604 | 2.890625 | 3 | [] | no_license | package pl.sdacademy.inner;
public class OuterClass {
private static void privateOuterMethod() {
System.out.println("private outer method");
}
void outerMethod2() {
new InnerHelperClass().method2();
}
void outerMethod() {
InnerHelperClass innerHelperClass = new InnerHelperClass();
innerHelperClass.meth... | true |
8f29552a0f153a11615f895aaf299e759d50c18b | Java | CloudsoftGithub/CCLPortal | /src/java/COM/JambPracPortal/MODEL/subjectreg.java | UTF-8 | 623 | 2.5 | 2 | [] | no_license | package COM.JambPracPortal.MODEL;
public class subjectreg {
private int sid;
private String subject;
private int year;
private int time;
public int getSid() {
return this.sid;
}
public String getSubject() {
return this.subject;
}
public void setSubject(Str... | true |
5e35638a741c0af63f7307457525f7ff5d2ef70a | Java | danielp111/CRUD_ANGULAR_SPRING_BACKEND | /src/main/java/soap_corba/NotificacionesHolder.java | ISO-8859-1 | 846 | 1.976563 | 2 | [] | no_license | package soap_corba;
/**
* soap_corba/NotificacionesHolder.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from operaciones.idl
* mircoles 9 de diciembre de 2020 12:12:31 AM COT
*/
public final class NotificacionesHolder implements org.omg.CORBA.portable.Streamable
{
public soap_corba.Noti... | true |
502764c30b73b2bc6eaf49e662f62241bc629174 | Java | VijayEluri/java-microedition-libraries | /api-stubs/cldc-1.1-stub/src/main/java/java/lang/Short.java | UTF-8 | 769 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | package java.lang;
/**
* @since CLDC 1.0
*/
public final class Short {
public final static short MAX_VALUE= 32767;
public final static short MIN_VALUE= -32768;
/**
* @throws NumberFormatException
*/
public static short parseShort(String s) throws NumberFormatException {
return 0;
... | true |
2851a52c3d56ce36df7efbe45f9355b9d247dc04 | Java | soleiana/Conference-Planner | /src/main/java/com/conferenceplanner/core/services/ConferenceRoomChecker.java | UTF-8 | 2,083 | 2.4375 | 2 | [] | no_license | package com.conferenceplanner.core.services;
import com.conferenceplanner.core.domain.Conference;
import com.conferenceplanner.core.domain.ConferenceInterval;
import com.conferenceplanner.core.domain.ConferenceRoom;
import com.conferenceplanner.core.domain.ConferenceRoomAvailabilityItem;
import org.springframework.ste... | true |
d306fd028c0aba389de0266a28d69a81acc62c9c | Java | KILLBILLKILL/Book-Management-System | /src/classes/Record.java | UTF-8 | 510 | 2.5 | 2 | [] | no_license | package classes;
import javax.xml.crypto.Data;
import java.lang.annotation.Annotation;
import java.util.Date;
public class Record {
private String userId;
private String bookISBN;
private Data borrowedAt;
public Record(String id, String ISBN) {
this.userId=id;
this.bookISBN=ISBN;
... | true |
8ef1e68816ed8a97624da058e1b3c41654a44bb3 | Java | Aigencraft/SlackMC | /src/main/java/org/circuitsoft/slackmc/plugin/bukkit/broadcaster/LoginBroadcaster.java | UTF-8 | 330 | 1.9375 | 2 | [
"MIT"
] | permissive | package org.circuitsoft.slackmc.plugin.bukkit.broadcaster;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.player.PlayerLoginEvent;
public class LoginBroadcaster {
@EventHandler(priority = EventPriority.MONITOR)
public void onLogin(PlayerLoginEvent event) {... | true |
ff2abdb7ea76c95df0563990b401e63e61664721 | Java | asytnik/Selenium_WD_Basic | /web_windows.java | UTF-8 | 1,761 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | import java.util.Iterator;
import java.util.Set;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class web_windows {
/**
* @param args
* @throws InterruptedException
*/
public static void main(String[] args) throws InterruptedExc... | true |
8561b45d9ac9c20d273011c9ed836442715d9452 | Java | yago-silva/csclglobe4j | /src/test/java/com/suse/csclglobe4j/docker/registry/client/dto/templates/ListRepositoryImagesResponseTemplate.java | UTF-8 | 1,339 | 2.265625 | 2 | [] | no_license | package com.suse.csclglobe4j.docker.registry.client.dto.templates;
import br.com.six2six.fixturefactory.Fixture;
import br.com.six2six.fixturefactory.Rule;
import br.com.six2six.fixturefactory.loader.TemplateLoader;
import com.suse.csclglobe4j.docker.registry.client.dto.ListRepositoryImagesResponse;
import java.util.... | true |
c0ce18c4034ec0371edad5d8f2e429dbd6568118 | Java | orcknight/GameServer | /trunk/backup/server/entity/NpcEntity.java | UTF-8 | 2,410 | 2.375 | 2 | [] | no_license | package com.tian.server.entity;
import javax.persistence.*;
/**
* Created by PPX on 2017/7/26.
*/
@Entity
@Table(name = "npc", schema = "bdm25683027_db", catalog = "")
public class NpcEntity {
private int id;
private String name;
private String cmdName;
private String resource;
private String ra... | true |
d827855c83bc9a7edac037276a7417786b5a2303 | Java | be1iever/python-52-weeks | /m16_java/Device.java | UTF-8 | 754 | 2.625 | 3 | [
"MIT"
] | permissive | package quokka.home;
import java.util.HashMap;
import java.util.Map;
public class Device {
public static void main(String[] args) {
HashMap<String, String> device = new HashMap<>();
device.put("name", "sbx-n9kv-ao");
device.put("vendor", "cisco");
device.put("model", "Nexus90f00 ... | true |
3db023ffab90180b6834bfdd22e38eb18716ae12 | Java | arpgupta/javacode | /testallclass/src/testallclass/TypeCasting.java | UTF-8 | 874 | 3.09375 | 3 | [] | no_license | package testallclass;
public class TypeCasting {
public static void main(String arg[]){
// double>float>long>int>short>byte
/* int i=5;
byte by=1;
short sh =2;
double d=7;
float f=5.5155115f;
int j=(byte) by;
char ch='a';
int chtoint=ch;
String s="abc";
chtoint=(int)ch;
System.out.println(i)... | true |
7579b2821d2f8676f1782d09715b658dab2fc7c5 | Java | yuanfengcaichen/project2.0 | /src/main/java/club/codeqi/project/pojo/Role.java | UTF-8 | 490 | 1.796875 | 2 | [] | no_license | package club.codeqi.project.pojo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.util.Date;
import java.util.List;
/**
* @Author: codeqi
* @Description:
* @Date: create in 2021/3/26 0026 16:43
*/
@Data
public class Role {
private Integer id;
private String roleName;
... | true |
baf68614956c8a8277527a9e114fc5540ff48fac | Java | flywind2/joeis | /src/irvine/oeis/a089/A089011.java | UTF-8 | 550 | 2.3125 | 2 | [] | no_license | package irvine.oeis.a089;
// Generated by gen_pattern.pl - DO NOT EDIT here!
import irvine.oeis.GeneratingFunctionSequence;
/**
* A089011 <code>a(n) = 1</code> if n is an exponent of the Weyl group <code>W(E_7), 0</code> otherwise.
* @author Georg Fischer
*/
public class A089011 extends GeneratingFunctionSequence ... | true |
0e481c2f528253b64b05938cadfd33640ca048ba | Java | LizavetaArkhanhelskaya/mentoring | /patterns/src/main/java/com/epam/exceptions/BusinessException.java | UTF-8 | 174 | 2.171875 | 2 | [] | no_license | package com.epam.exceptions;
public class BusinessException
extends RuntimeException
{
public BusinessException()
{
System.out.println("Business exception");
}
}
| true |
11a3727bff2ad2374ce5bd2903d9550fa50c3c49 | Java | bzhu17/myorange | /src/main/java/com/ood/myorange/service/impl/FileDirServiceImpl.java | UTF-8 | 3,241 | 2.265625 | 2 | [] | no_license | package com.ood.myorange.service.impl;
import com.ood.myorange.auth.ICurrentAccount;
import com.ood.myorange.constant.enumeration.FileType;
import com.ood.myorange.dao.UserDirDao;
import com.ood.myorange.dao.UserFileDao;
import com.ood.myorange.dto.DirsDto;
import com.ood.myorange.dto.FilesDto;
import com.ood.myorange... | true |
a823f38f09042e50165863b76c4526719c25f9ae | Java | Nadakd/TimesheetProjectDevOps | /src/main/java/tn/esprit/spring/services/EntrepriseServiceImpl.java | UTF-8 | 3,408 | 2.4375 | 2 | [] | no_license | package tn.esprit.spring.services;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import tn.esprit.spring.advic... | true |
9e0f53c7f28fd3f8c82950e8d81ed22373fa49fc | Java | grantbigelow/Grant-Bigelow-AdvanJava | /Lab 2/src/RecipeMain.java | UTF-8 | 1,622 | 3.734375 | 4 | [] | no_license | import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;
/*
* Programmer: Grant Bigelow
* Date: 1/28/18
* Description: Main recipe class that allows the user
* to enter in the recipe name, ingredients, and steps involved
* and creates a text file with the information entered.
*/
public c... | true |
5234d531d8ca1e15968f97fe6001e9433bfbdf3c | Java | majidtiny/FWS | /master/FWS_Master/src/fws_master/ViewMain.java | UTF-8 | 7,433 | 2.28125 | 2 | [] | no_license | package fws_master;
import org.eclipse.swt.*;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.events.*;
import org.eclipse.swt.layout.*;
import org.eclipse.swt.widgets.*;
public class ViewMain {
private Shell shell;
@SuppressWarnings("unused")
private Display display;
private ScrolledCompo... | true |
25e1d6acdb7f9233368093eeefe6c29907b2bb96 | Java | International-Data-Spaces-Association/DataspaceConnector | /src/main/java/io/dataspaceconnector/controller/message/ids/processor/AgreementToArtifactsLinker.java | UTF-8 | 2,296 | 2.015625 | 2 | [
"Apache-2.0",
"JSON"
] | permissive | /*
* Copyright 2020-2022 Fraunhofer Institute for Software and Systems Engineering
*
* 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
*
... | true |
e41ce7b47f1c3cf1bcd627e14b08657d91a64a4e | Java | aurora-java/aurora | /aurora/service/json/JSONServiceInterpreter.java | UTF-8 | 8,004 | 1.71875 | 2 | [] | no_license | /*
* Created on 2007-11-4
*/
package aurora.service.json;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.HashSet;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.json.JSONException;
import org.json... | true |
4d99250e55cd8acd64d3c833a2fbf1d914119686 | Java | sf44tdw/tinavi | /TinyBannavi/src/tainavi/AbsChannelSettingView.java | UTF-8 | 9,234 | 1.976563 | 2 | [] | no_license | package tainavi;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.ScrollPaneConstants;
import javax... | true |
4733735324bf90ecebee891f981864c3afb88062 | Java | gwest4/CTA | /src/cta/api/TrainStop.java | UTF-8 | 1,406 | 2.546875 | 3 | [] | no_license | package cta.api;
import java.util.ArrayList;
public class TrainStop {
public final String stopId;
public final Direction dir;
public final String stopName;
public final String stationName;
public final String stationDescriptiveName;
public final String stationId;
public final boolean handicapAccessable;
publi... | true |
c554b94645266e765990cb232ce4af99193ae15d | Java | DodoMonster/myFoodMarket | /opp/src/main/java/scau/zxck/serviceImpl/admin/CommodityOrderServiceImpl.java | UTF-8 | 2,198 | 2.09375 | 2 | [] | no_license | package scau.zxck.serviceImpl.admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import scau.zxck.base.dao.mybatis.Conditions;
import scau.zxck.base.dao.utils.Page;
import scau.zxck.base.exception.BaseException;
import scau.zxck.dao.admin.CommodityOrder... | true |
c308b5e69c1581a3752e69fda0b2ecd80160ea4e | Java | RobotsByTheC/SmartDashboardExtensions2016 | /src/main/java/org/usfirst/frc/team2084/smartdashboard/extensions/vision/RemoteVisionExtension.java | UTF-8 | 903 | 2.328125 | 2 | [] | no_license | package org.usfirst.frc.team2084.smartdashboard.extensions.vision;
import org.usfirst.frc.team2084.CMonster2016.vision.VisionParameters;
import edu.wpi.first.smartdashboard.properties.Property;
import edu.wpi.first.smartdashboard.properties.StringProperty;
@SuppressWarnings("serial")
public class RemoteVisionExtensi... | true |
bece20bcf4aa468a5375d0c796f11137492db387 | Java | staley7/bookManager-backend | /src/main/java/com/bookManager/converter/SeriesDtoToSeriesConverter.java | UTF-8 | 946 | 2.46875 | 2 | [] | no_license | package com.bookManager.converter;
import org.springframework.core.convert.converter.Converter;
import com.bookManager.dao.model.Series;
import com.bookManager.dto.SeriesDto;
/**
* Converts a SeriesDto to a Series
* @author Lance Staley
*
*/
public class SeriesDtoToSeriesConverter implements Converte... | true |
f84d12f1d2316bc7331b2ce2f36b4c05b25be7ec | Java | NJLOVER/jettyMVC | /src/main/java/cn/whm/rest/result/AbstractRESTResult.java | UTF-8 | 349 | 2.21875 | 2 | [] | no_license | package cn.whm.rest.result;
/**
* Created by wanghm on 2014/9/30.
*/
public abstract class AbstractRESTResult {
private boolean handled = false;
public boolean isHandled() {
return handled;
}
public void setHandled(boolean handled) {
this.handled = handled;
}
public abstrac... | true |
1f38485bf7ec9c909b628759d9ce211537ab82c0 | Java | harsh-2109/AppManager | /app/src/main/java/com/deeppandya/appmanager/managers/RuntimePermissionManager.java | UTF-8 | 2,785 | 2.15625 | 2 | [] | no_license | package com.deeppandya.appmanager.managers;
import android.Manifest;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.support.design.widget.Snackbar;
import android.support.v4.app.ActivityCompat;... | true |
150fa0db2539ee9560f2706183a9a59ef23131f6 | Java | Codename-047/Mara | /app/src/main/java/com/eternal_series/mara/Fire.java | UTF-8 | 1,462 | 2.875 | 3 | [] | no_license | package com.eternal_series.mara;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.view.MotionEvent;
public class Fire
{
//Bitmap to get the button.
private Bitmap fireButton;
//coordinates.
private float x;
private... | true |
77f769cea88d4fabc460b4da55e0d68f88d0608a | Java | deardeng/Learning-1 | /SICP/Lecture_1/Code/Java/Sqrt/src/fayelab/sicp/sqrt/second/SqrtCalculator.java | UTF-8 | 735 | 3.28125 | 3 | [] | no_license | package fayelab.sicp.sqrt.second;
public class SqrtCalculator
{
public static final double TOLERANCE = 0.001;
public static double sqrt(double x)
{
return tryOnce(1.0, x);
}
private static double tryOnce(double guess, double x)
{
double nextGuess = average(gue... | true |
7c0ba83aad9759b2436d99dcf9b6e58b5ab13a1c | Java | TaoShenming/learngit | /src/main/java/com/dianping/cosmos/hive/server/store/domain/QueryHistory.java | UTF-8 | 956 | 2.109375 | 2 | [] | no_license | package com.dianping.cosmos.hive.server.store.domain;
import java.io.Serializable;
import java.util.Date;
public class QueryHistory implements Serializable {
private static final long serialVersionUID = 1L;
private String username;
private String hql;
private Date addtime;
private String filename;
public St... | true |
04251025d43c89202630156b5c751a83a8bc0fa7 | Java | krishnasai1924/MyTask | /app/src/main/java/com/mytask/test/Helper/UserService.java | UTF-8 | 527 | 1.648438 | 2 | [] | no_license | package com.mytask.test.Helper;
import com.mytask.test.Model.Resul;
import com.mytask.test.Model.Result;
import java.util.Map;
import retrofit2.Call;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retr... | true |
e70dd3391da396ee083803b0ceb472ac0ad5be03 | Java | cherepanovadr/FNDS_May_2020 | /MethodExercise/src/com/company/Main.java | UTF-8 | 461 | 3.0625 | 3 | [] | no_license | package com.company;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = Integer.parseInt(scanner.nextLine());
int b = Integer.parseInt(scanner.nextLine());
int c = Integer.parseInt(scanner.nextLine());
printMin(a,b,c);
}
... | true |
044954b00b2daaa64e448388cd2666f6742b92b4 | Java | k4netmt/Ogaga | /oGAGA/app/src/main/java/com/ogaga/flash/adapters/ProductRecyclerViewAdapter.java | UTF-8 | 2,748 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package com.ogaga.flash.adapters;
import android.content.Context;
import com.firebase.client.ChildEventListener;
import com.firebase.client.DataSnapshot;
import com.firebase.client.Firebase;
import com.firebase.client.FirebaseError;
import com.firebase.client.Query;
import com.firebase.client.ValueEventListener;
impo... | true |
635e6e57882fa31d64998b2be2c279d2807f9984 | Java | valevoz/demo-free-ride | /src/org/v5k/retrospective/Circle.java | UTF-8 | 715 | 3.328125 | 3 | [] | no_license | package org.v5k.retrospective;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public class Circle {
public static void main(String[] args) {
List<String> stars = new ArrayList<>(Arrays.asList("Valentyn", "Vitalii", "Justin", "Ken", "Raghu", "Slav... | true |
9bb3e0b3237e94b1ce900031b856e6ba32a72bde | Java | typhoon820/mode-selector | /src/main/java/ru/heroes/modeselector/model/Status.java | UTF-8 | 87 | 1.5 | 2 | [
"MIT"
] | permissive | package ru.heroes.modeselector.model;
public enum Status {
ACTIVE,
FINISHED
}
| true |
7aeba954f71fe772e902de348f867a5ffc0b3b47 | Java | LyricsRH/java- | /src/九/I7.java | GB18030 | 1,312 | 3.203125 | 3 | [] | no_license | package ;
import java.util.ArrayList;
import java.util.Set;
import java.util.TreeSet;
//ҳɸʼеĸӼɵӢĵ
public class I7 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Set<String>dicSet=new TreeSet<String>();
dicSet.add("happy");
dicSet.add("a");
dicSet.add("ay... | true |
1c95e43c48841bb5d5e250ca2fafba0d2fb6a3ca | Java | FINTLabs/fint-p360-rpc-arkiv-adapter | /src/main/java/no/fint/p360/data/noark/codes/variantformat/VariantformatService.java | UTF-8 | 921 | 1.679688 | 2 | [
"MIT"
] | permissive | package no.fint.p360.data.noark.codes.variantformat;
import lombok.extern.slf4j.Slf4j;
import no.fint.model.resource.arkiv.kodeverk.VariantformatResource;
import no.fint.p360.data.p360.SupportService;
import no.fint.p360.data.utilities.BegrepMapper;
import org.springframework.beans.factory.annotation.Autowired;
import... | true |
4c174baa1f355ccfb1bebbcefc2b0489d1b99689 | Java | Imkbhat/DesignPatterns | /singleton-design-patterns/break-singleton/ReflectionSingletonTest.java | UTF-8 | 873 | 3.015625 | 3 | [] | no_license | package com.bob.hms.admin.common.pract;
import java.lang.reflect.Constructor;
public class ReflectionSingletonTest {
public static void main(String[] args) {
SingletonEagerInitialization singletonObjOne = SingletonEagerInitialization.getInstance();
SingletonEagerInitialization singletonObjTwo = null;
try {... | true |
1a48f53514f65f19c85acd656b9f18fe6ee5f641 | Java | Masamune42/poo | /00-Resume/src/fr/eni/model/Animal.java | ISO-8859-2 | 710 | 3.09375 | 3 | [] | no_license | package fr.eni.model;
public abstract class Animal {
private String nom;
private int age;
// Aggrgation
private Humain humain;
public Animal() {
}
public Animal(String nom, int age, Humain humain) {
this.nom = nom;
this.age = age;
this.humain = humain;
}
public String getNom() {
return nom;
}
... | true |
c10a54d08b6f8b952c6c9b030590eec3a901be65 | Java | zackforhack/MagicMouse_Selenium | /MagicMouse/src/pageObjects/Accessories_Page.java | UTF-8 | 1,461 | 2.46875 | 2 | [] | no_license | package pageObjects;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import utility.Log;
public class Accessories_Page {
private static WebEle... | true |
80ed01aa7cbd5ecbc40c28c338bb65a04eed1138 | Java | dgr8akki/DS-Algo-Made-Easy-With-Aakash | /Leetcode/Solution_88_MergeSortedArray.java | UTF-8 | 495 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | package Leetcode;
class Solution_88_MergeSortedArray {
public void merge(int[] nums1, int m, int[] nums2, int n) {
int lPtr = m - 1, rPtr = n - 1, mPtr = m + n - 1;
while (lPtr >= 0 && rPtr >= 0) {
if (nums1[lPtr] > nums2[rPtr]) {
nums1[mPtr--] = nums1[lPtr--];
} else {
nums1[mPtr... | true |
3c2255ce975aa0f300d47a157da720a9365e14c1 | Java | lieying15/jinhui | /app/src/main/java/com/thlh/jhmjmw/view/DialogSimple.java | UTF-8 | 3,780 | 2.34375 | 2 | [] | no_license | package com.thlh.jhmjmw.view;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;... | true |
2f537aa596ed93204e90a36da7355683d34bbddc | Java | huidh123/GiliGIli | /app/src/main/java/com/cch/danmakuproj/javaBean/DanmuFileData.java | UTF-8 | 1,304 | 2.25 | 2 | [] | no_license | package com.cch.danmakuproj.javaBean;
import java.lang.reflect.Array;
import java.util.ArrayList;
/**
* Created by 晨晖 on 2015-06-30.
*/
public class DanmuFileData {
private String chatServer;
private int chatId;
private int mission;
private int maxlimit;
private String source;
private ArrayL... | true |
239cad20f69b2a5b2288c9bc0c240fcf283b1dc1 | Java | LuisDa9529/AndroidEmp | /Empleados/app/src/main/java/com/example/empleados/Empleado.java | UTF-8 | 2,674 | 2.78125 | 3 | [] | no_license | package com.example.empleados;
import java.io.Serializable;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Empleado implements Serializable{
private int emp_no;
private String birth_date;
private String first_name;
private String last_name;
private String ... | true |
2d81576bbd9bfefb0860a1e6cad44d9222e3ce0d | Java | KryptonCaptain/Et-Futurum | /src/main/java/ganymedes01/etfuturum/blocks/PrismarineBlocks.java | UTF-8 | 1,355 | 2.21875 | 2 | [
"LicenseRef-scancode-public-domain",
"Unlicense"
] | permissive | package ganymedes01.etfuturum.blocks;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import ganymedes01.etfuturum.EtFuturum;
import ganymedes01.etfuturum.IConfigurable;
import ganymedes01.etfuturum.core.utils.Utils;
import net.minecraft.block.material.Material;
import net.minecraft.clien... | true |
fa8682cdede09df53322bcbd91d55fddd13d37f2 | Java | whbanner/review | /review/src/main/java/com/wh/reflect/I/PeronReflectTest.java | UTF-8 | 2,864 | 3.25 | 3 | [] | no_license | package com.wh.reflect.I;
import com.wh.reflect.entity.Person;
import org.junit.Test;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public class PeronReflectTest {
@Test
public void test() throws Cl... | true |
e34757c450a0cf40b2ea3601ff05d1377a2000cf | Java | marrcolino/MyManager | /app/src/main/java/com/example/mymanager/MainActivity.java | UTF-8 | 2,221 | 2.25 | 2 | [] | no_license | package com.example.mymanager;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;
import and... | true |
69c552b3cc944efaa168e59cae2f7fa64eb93000 | Java | samuelyi/j00lun-2.8.2 | /base-mall/base-mall-admin/src/main/java/com/joolun/cloud/mall/admin/service/GoodsCategoryUserService.java | UTF-8 | 696 | 1.6875 | 2 | [] | no_license | /**
* Copyright (C) 2018-2019
* All rights reserved, Designed By www.joolun.com
* 注意:
* 本软件为www.joolun.com开发研制,未经购买不得使用
* 购买后可获得全部源代码(禁止转卖、分享、上传到码云、github等开源平台)
* 一经发现盗用、分享等行为,将追究法律责任,后果自负
*/
package com.joolun.cloud.mall.admin.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jool... | true |
2e96fe2abdf6d33151ff2fee4c4507c023bf8c92 | Java | CHENYUBO7798238/root | /security/src/main/java/com/cyb/controller/Abs.java | UTF-8 | 719 | 2.9375 | 3 | [] | no_license | package com.cyb.controller;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;
public class Abs {
public static void main(String[] args) throws InterruptedException, ExecutionException{
FutureTask<Integer> future = new FutureTask<>(new ThreadDemo());
FutureTask<Integer> futu... | true |
422af4dbe216bc713d3c343552b85e5c332c44db | Java | Alina1vanova/pft_AlinaIvanova | /src/test/java/pft/config/PrintPhonesLocators.java | UTF-8 | 213 | 1.570313 | 2 | [
"Apache-2.0"
] | permissive | package pft.config;
import org.openqa.selenium.By;
/**
* Created by linka on 16.03.2015.
*/
public interface PrintPhonesLocators {
By PRINT_PHONES_CELL = new By.ByXPath("//td[@valign='top']");
}
| true |
893487ac47c013713ff910a7be1257aba6777fa9 | Java | orangejyc/wechatcontainer | /src/main/java/org/orange/wechatcontainer/dao/hibernate4impl/BaseHibernate4Dao.java | UTF-8 | 4,730 | 2.140625 | 2 | [] | no_license | package org.orange.wechatcontainer.dao.hibernate4impl;
import java.io.Serializable;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.... | true |
d7f6dd70989de13f6b06d62b0a51f1b0e63de552 | Java | anorangecom/TestAccumulator | /src/main/java/com/metapack/AccumulatorImpl.java | UTF-8 | 862 | 3.234375 | 3 | [] | no_license | /**
*
*/
package com.metapack;
/**
* @author Alexey Moroz
*
*/
public class AccumulatorImpl implements Accumulator {
private static int accumulatedValue = 0;
public int accumulate(int... values) {
for (int i=0; i<values.length; i++) {
accumulatedValue = accumulatedValue + values[i];
}
return accu... | true |
a4317a945f0eb711b8809f059f3e3fa86ccd96f6 | Java | abbisQQ/MakeSomeServices | /app/src/main/java/com/example/babis/makesomeservices/MainActivity.java | UTF-8 | 2,043 | 2.34375 | 2 | [] | no_license | package com.example.babis.makesomeservices;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.IBinder;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
impo... | true |
0d6121083649064d617ed1efe09b97f60ec08db4 | Java | sitaluo/sitaluo-mvc | /src/main/java/com/sitaluo/mvc/annotation/RequestMapping.java | UTF-8 | 312 | 2.015625 | 2 | [] | no_license | package com.sitaluo.mvc.annotation;
import java.lang.annotation.*;
/**
* 作用于controller类和方法上
* @author sitaluo
* date 2019-10-17
*/
@Documented
@Target({ElementType.METHOD,ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface RequestMapping {
public String value();
}
| true |
b22b0bda5fe70037a56a25cce008b865ad75c16b | Java | cpcho/algo | /1-Easy/Arranging_Coins.java | UTF-8 | 800 | 3.859375 | 4 | [] | no_license | #441. Arranging Coins
/*You have a total of n coins that you want to form in a staircase shape,
where every k-th row must have exactly k coins.
Given n, find the total number of full staircase rows that can be formed.
n is a non-negative integer and fits within the range of a 32-bit signed integer.
Example 1:
n = ... | true |
3a72bc2d1976dd65b562977a0be9cfb66617f087 | Java | farahfa/jenkins-discord | /src/main/java/nz/co/jammehcow/jenkinsdiscord/DiscordWebhook.java | UTF-8 | 3,673 | 2.5625 | 3 | [
"MIT"
] | permissive | package nz.co.jammehcow.jenkinsdiscord;
import hudson.model.AbstractBuild;
import hudson.Launcher;
import hudson.model.BuildListener;
import com.google.common.primitives.UnsignedInteger;
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.JsonNode;
import com.mashape.unirest.http.Unirest;
imp... | true |
e75b1d5b37d792e3b497e6f233d162810c10b39d | Java | mscburul/readinglist | /src/main/java/cs/readinglist/repository/ReadingListRepository.java | UTF-8 | 511 | 2.015625 | 2 | [] | no_license | package cs.readinglist.repository;
import cs.readinglist.entity.Book;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
public interface ReadingListRepository extends JpaRepository<Book, Long> {
@Override
List<Book> findAll();
@Override
List<Book> findAllById(Itera... | true |
2d089c79e383def40cc8dc55c219b1de83abdd9d | Java | UT-EL-OTL/express-loan | /investor/src/main/java/com/ut/loans/express/investor/dto/response/FundedHistoryResponseDTO.java | UTF-8 | 1,560 | 2 | 2 | [] | no_license | package com.ut.loans.express.investor.dto.response;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Date;
public class FundedHistoryResponseDTO {
private static final long serialVersionUID = 1L;
@JsonProperty(value = "applicationID", required = true)
private String applicationID;... | true |
b09e9e5ff2976dfdf21a462781a777f958dae4dc | Java | debbieMary/GAMEA | /gamea-app/app/src/main/java/elalto/gamea/map/canchas/presenter/CanchasPresenter.java | UTF-8 | 200 | 1.640625 | 2 | [] | no_license | package elalto.gamea.map.canchas.presenter;
import elalto.network.entities.TokenManager;
public interface CanchasPresenter {
void getCanchas(TokenManager tokenManager);
void onDestroy();
}
| true |
4ec6ff4bc5e1e874a8c76639ef845eddf9a6d1d3 | Java | deniseannesilva/MODESTA-Card-Drawing-Simulator | /CardDrawing/src/Logger.java | UTF-8 | 3,176 | 3.0625 | 3 | [] | no_license | import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
public class Logger {
private static final String COMMA_DELIMITER = ",";
private static final String NEW_LINE_SEPARATOR ="\n";
public Logger(){
}
public boolean writeFile(String filename, String conte... | true |
9c885bc0fb868c3c68d10ac7746101b73e099231 | Java | bkrahmer/ja-micro | /src/main/java/com/sixt/service/framework/health/HealthCheckContributor.java | UTF-8 | 1,078 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2016-2017 Sixt GmbH & Co. Autovermietung KG
* 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... | true |
b06443f2f877f88fb880667bf3b70fc8279b5ebf | Java | brucehvn/android-opengts | /src/org/gc/gts/GtsActivity.java | UTF-8 | 11,373 | 1.851563 | 2 | [] | no_license | // Created by cristigav on 00:23:14 - 03.10.2010
package org.gc.gts;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import org.andnav.osm.util.GeoPoint;
import org.andnav.osm.views.OpenStreetMapView;
import org.andnav.osm.views.overlay.MyLocationOverlay;
import org.gc.gts.util.C... | true |
d0a7967ccc82421ce565503b44d0fe1e9cd962de | Java | adityavs/elasticsearch | /x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/expression/Attribute.java | UTF-8 | 4,650 | 2.25 | 2 | [
"Elastic-2.0",
"LicenseRef-scancode-elastic-license-2018",
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-other-permissive"
] | permissive | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.sql.expression;
import org.elasticsearch.xpac... | true |
5b9939f8a61830a8d5059083b39cf69bee0d262b | Java | jchambers/rettys | /src/test/java/com/eatthepath/rettys/ScanSpliteratorTest.java | UTF-8 | 2,805 | 2.625 | 3 | [] | no_license | package com.eatthepath.rettys;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.lang.reflect.Array;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Spliterator;
import java.util.concurrent.ato... | true |