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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
1853702e98d1dcf87b765c5d38e89369b8c7ce07 | Java | TrueBrain/xabrain | /mods/transport/ContainerConnector.java | UTF-8 | 1,007 | 2.375 | 2 | [] | no_license | package xabrain.mods.transport;
import net.minecraft.src.Container;
import net.minecraft.src.EntityPlayer;
import net.minecraft.src.InventoryPlayer;
import net.minecraft.src.Slot;
public class ContainerConnector extends Container {
private Connector connector;
public int selected;
public ContainerConnector(Invent... | true |
fa743eaac8036ce0a602c68a39a55d6d91a743fc | Java | dstmath/OppoR15 | /app/src/main/java/java/beans/ChangeListenerMap.java | UTF-8 | 4,462 | 2.546875 | 3 | [] | no_license | package java.beans;
import java.util.ArrayList;
import java.util.Collections;
import java.util.EventListener;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
abstract class ChangeListenerMap<L extends EventListener> {
private Map<String, L[]... | true |
de31647a8dc78fa8505f5e8dcc942c318d3cc6da | Java | Annooo/xiong_mybatis_plugin | /src/main/java/com/shong/xiong_mybatis_plugin/core/impl/DeleteDynamicSql.java | UTF-8 | 2,870 | 2.109375 | 2 | [] | no_license | package com.shong.xiong_mybatis_plugin.core.impl;
import com.shong.xiong_mybatis_plugin.annotation.Ignore;
import com.shong.xiong_mybatis_plugin.core.AbstractDynamicSql;
import org.apache.ibatis.mapping.ResultMap;
import org.apache.ibatis.mapping.SqlCommandType;
import org.apache.ibatis.mapping.SqlSource;
import org.a... | true |
dd38871ea08f01976e1214f54f34fc4111e83529 | Java | T-Ford1/FinalProject | /src/frame/Window.java | UTF-8 | 3,428 | 2.796875 | 3 | [] | no_license | package frame;
import java.awt.Canvas;
import java.awt.image.BufferedImage;
import components.*;
import input.*;
import java.awt.Rectangle;
import java.awt.image.DataBufferInt;
import java.util.ArrayList;
/**
*
* @author ford.terrell
*/
public class Window extends Canvas {
private static fin... | true |
2219e8561719761d70dfd240226d84c228dc0733 | Java | GEMLZC/mymafengwo | /trip-artcle-api/src/main/java/cn/wolfcode/luowowo/article/domain/ViewContent.java | UTF-8 | 299 | 1.570313 | 2 | [] | no_license | package cn.wolfcode.luowowo.article.domain;
import cn.wolfcode.luowowo.common.domain.BaseDomain;
import lombok.*;
/**
* Created by Xhek on 2019/11/24.
*/
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class ViewContent extends BaseDomain {
private String content;
}
| true |
6dc16abd551439432ec475ccdae5830b5c4a9c7a | Java | MadMatt25/SWOPProject | /src/tests/UnregisterForNotificationUseCaseTest.java | UTF-8 | 2,423 | 2.25 | 2 | [] | no_license | package tests;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import controllers.exceptions.UnauthorizedAccessException;
import model.notifications.IRegistration;
import model.notifications.NotificationType;
im... | true |
0e1854041a6f1c66802825eede5962d2031906ca | Java | jorge-luque/hb | /sources/com/tapjoy/internal/C5269u.java | UTF-8 | 835 | 1.71875 | 2 | [] | no_license | package com.tapjoy.internal;
import android.os.Handler;
import android.os.Looper;
/* renamed from: com.tapjoy.internal.u */
public final class C5269u {
/* renamed from: a */
private static Handler f14461a;
/* renamed from: a */
public static synchronized Handler m17670a() {
Handler handler;
... | true |
168cffefb0b1ec5b61d8af5dfdbdbe6d228ec3e8 | Java | saha-arash/saha-backend | /src/test/java/ir/saha/domain/YeganTypeTest.java | UTF-8 | 705 | 2.171875 | 2 | [] | no_license | package ir.saha.domain;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
import ir.saha.web.rest.TestUtil;
public class YeganTypeTest {
@Test
public void equalsVerifier() throws Exception {
TestUtil.equalsVerifier(YeganType.class);
YeganType yeganTy... | true |
8b153d2edc8e9598d279efcde98753ed7b852d2f | Java | combats/ITA-java | /applicants-notification/src/main/java/com/softserveinc/ita/service/impl/MailServiceImpl.java | UTF-8 | 9,271 | 1.921875 | 2 | [] | no_license | package com.softserveinc.ita.service.impl;
import com.softserveinc.ita.entity.*;
import com.softserveinc.ita.service.HttpRequestExecutor;
import com.softserveinc.ita.service.MailService;
import com.softserveinc.ita.service.exception.HttpRequestException;
import com.softserveinc.ita.utils.JsonUtil;
import org.apache.ca... | true |
d7f49056b2d8d5152ff8cb79913656fe5241eac6 | Java | Guilhermefcasagrande/api-java-web | /src/main/java/br/edu/unidavi/trabalhofinalapi/domain/repository/ClienteRepository.java | UTF-8 | 413 | 1.875 | 2 | [] | no_license | package br.edu.unidavi.trabalhofinalapi.domain.repository;
import br.edu.unidavi.trabalhofinalapi.domain.model.Cliente;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
public interface ClienteRepository extends JpaSpecificationExec... | true |
b276dfc2bf3356f818c89b8f277f60e5f5fdaccb | Java | jianmeichen123/starservice | /src/main/java/com/galaxy/im/business/rili/service/ScheduleDictServiceImpl.java | UTF-8 | 566 | 1.90625 | 2 | [] | no_license | package com.galaxy.im.business.rili.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.galaxy.im.bean.schedule.ScheduleDict;
import com.galaxy.im.business.rili.dao.IScheduleDictDao;
import com.galaxy.im.common.db.service.BaseServiceIm... | true |
ff684ca0c0af33bc3fd2848c372b3ada48979d2f | Java | themuks/jwd-final-testing-system | /src/main/java/com/kuntsevich/ts/controller/command/impl/ShowProfileCommand.java | UTF-8 | 1,560 | 2.21875 | 2 | [] | no_license | package com.kuntsevich.ts.controller.command.impl;
import com.kuntsevich.ts.controller.AttributeName;
import com.kuntsevich.ts.controller.PagePath;
import com.kuntsevich.ts.controller.ParameterName;
import com.kuntsevich.ts.controller.command.Command;
import com.kuntsevich.ts.controller.router.Router;
import com.kunts... | true |
641c45c3d64260e891caf58d29d0e89278a35570 | Java | komamj/KomaWeather | /app/src/main/java/com/koma/weather/util/Utils.java | UTF-8 | 1,957 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017 Koma
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | true |
93159577b88420e6df9b30f0c2d056a83e4a235d | Java | JunHyeok96/algorithm | /2021/2/조이스틱-복습.java | UTF-8 | 1,132 | 3.328125 | 3 | [] | no_license | class Solution {
public int solution(String name) {
int answer = 0;
char[] arr = new char[name.length()];
for(int i=0; i < arr.length; i++){
arr[i] = 'A';
}
int idx=0;
while(!new String(arr).equals(name)){
answer += countControll(name.charAt(i... | true |
58ed55e9b60740dca33a99c02e4b903d4672c492 | Java | imathrowback/riftools | /RiftTools/src/org/imathrowback/riftool/actions/ExtractVignettes.java | UTF-8 | 2,659 | 2.390625 | 2 | [] | no_license | package org.imathrowback.riftool.actions;
import java.io.File;
import java.nio.file.Paths;
import org.imathrowback.manifest.ReleaseType;
import org.kohsuke.args4j.Option;
import rift_extractor.Binky;
import rift_extractor.assets.AssetDatabase;
import rift_extractor.assets.AssetProcessor;
import rift_extractor.assets... | true |
933c6cbb7ba3e836f74cc833f004b42d3d52745f | Java | nikanj/WebServicePracticalExercise | /GuestBook2/src/main/java/de/tum/in/dss/controller/GuestBookController.java | UTF-8 | 3,052 | 2.25 | 2 | [] | no_license | package de.tum.in.dss.controller;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.validation.BindException;
import org.springframework.web.servlet.ModelAndVie... | true |
c31866d108dcece2f06f77a0c015a17430a8ea50 | Java | svaithin/Life_Planner | /app/src/main/java/com/labs/svaithin/life_planner/MyBootReceiver.java | UTF-8 | 1,458 | 2.09375 | 2 | [] | no_license | package com.labs.svaithin.life_planner;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import com.labs.svaithin.life_planner.db.TaskContract;
import com.lab... | true |
105b911f5ff5cbe62510c9b5380685c3e93573a7 | Java | CalvinXCui/springboot-activiti-test | /src/main/java/com/example/demo/service/LeaveService.java | UTF-8 | 488 | 1.984375 | 2 | [] | no_license | package com.example.demo.service;
import java.util.List;
import com.example.demo.entity.LeaveInfo;
public interface LeaveService {
/**
* 新增一条请假单记录
* @param entity
*/
void addLeaveAInfo(String msg);
/**
* 查询待办流程
* @param userId
* @return
*/
List<LeaveInfo> getByUserId(String userId);
/**
* 完成任... | true |
056ee30f02ef7362c254dec80c8d39d23afc3a0b | Java | Exzelsios/VCC_PoC | /vcc-admin/src/main/java/de/novatec/vccadmin/datapoolstatus/entity/LoadStatus.java | UTF-8 | 263 | 1.695313 | 2 | [] | no_license | package de.novatec.vccadmin.datapoolstatus.entity;
import com.fasterxml.jackson.annotation.JsonProperty;
public enum LoadStatus {
@JsonProperty("LOADED")
LOADED,
@JsonProperty("UNLOADED")
UNLOADED,
@JsonProperty("UNDEFINED")
UNDEFINED
}
| true |
fd4ff199f92491e18d673432cd4d92ced28e2436 | Java | daviddl9/main | /src/test/java/seedu/address/model/request/UniqueRequestListTest.java | UTF-8 | 7,077 | 2.4375 | 2 | [
"MIT"
] | permissive | package seedu.address.model.request;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.logic.command... | true |
aff959c370370c80809ef96df7bed86619397ff9 | Java | strukov94/login | /app/src/main/java/com/strukov/login/login/login/LoginView.java | UTF-8 | 361 | 1.75 | 2 | [] | no_license | package com.strukov.login.login.login;
import android.content.Intent;
import com.strukov.login.login.dialog.GuestDialogFragment;
public interface LoginView extends GuestDialogFragment.GuestDialogListener {
void startActivityForResult(Intent intent);
void authSuccess();
void authFailure();
void syn... | true |
97f3f1a061ce1a17cd16fa80f52430046536a9fd | Java | samuelyo/Leetcode | /56MergeIntervals3.java | UTF-8 | 1,504 | 3.8125 | 4 | [] | no_license | package com.leetcode.MergeIntervals;
import java.util.ArrayList;
import java.util.List;
public class MergeIntervals3 {
public static void main(String[] args) {
Interval int1 = new Interval(1, 3);
Interval int2 = new Interval(2, 6);
Interval int3 = new Interval(8, 10);
Interval int4 = new Interval(15, 18);
... | true |
5d0914941991389d741f84b589ff67a6233dbfab | Java | stateofzhao/RapidDevelopment | /core/src/main/java/com/diagrams/core/messagemgr/MessageID.java | UTF-8 | 487 | 2.140625 | 2 | [] | no_license | package com.diagrams.core.messagemgr;
public enum MessageID {
OBSERVER_ID_RESERVE {
public Class<? extends IObserverBase> getObserverClass() {
return null;
}
},
SIMPLE {
@Override
Class<? extends IObserverBase> getObserverClass() {
return SimpleObserv... | true |
bdae0d69b808d0818d3b665296af0911ffd7c9e4 | Java | ashwanikumar04/command-line-game | /src/main/java/in/ashwanik/clgame/models/Armoury.java | UTF-8 | 1,227 | 2.9375 | 3 | [
"MIT"
] | permissive | package in.ashwanik.clgame.models;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Ashwani Kumar on 13/04/18.
*/
public class Armoury {
private static Armoury INSTANCE;
private List<Weapon> weapons;
private Armoury() {
}
public static Armoury get() {
if (INSTANCE =... | true |
5431ad0febc453cb1ac8fec2c1c23a1607f9dd09 | Java | camel-man-ims/coding-test-java | /src/inflearn_lecture/string_array/LicenseKeyFormatting.java | UTF-8 | 1,035 | 3.53125 | 4 | [] | no_license | package inflearn_lecture.string_array;
/*
String str= "8F3Z-2e9-w"
String str2 = "8-5g-3-j"
이런식으로 주어질 때
뒤에서 4자리를 끊고, 대문자로 합친 문자열을 만들어라
String str = "8F3Z-2E9W"
String str2 = "8-5G3J"
String,StringBuffer,StringBuilder
*/
public class LicenseKeyFormatting {
public static void main(String[] ... | true |
5be31e0d6a1a92f214468a4b35b8b53a3d2e3b18 | Java | meenuvijay/SeleniumAssignments | /assignments1/SortingUsingCollection.java | UTF-8 | 590 | 3.0625 | 3 | [] | no_license | package week3day2.assignments1;
import java.util.Arrays;
//import java.util.Collections;
public class SortingUsingCollection {
public static void main(String[] args) {
// TODO Auto-generated method stub
String[] input = {"HCL","Wipro","Aspire Systems","CTS"};
Arrays.sort(input);
... | true |
e58378e64c57a1c9ccba3d6a8801cda268a22575 | Java | AKYChan/SetNetTool | /src/csc3095/project/setnet/components/Arc.java | UTF-8 | 1,797 | 2.4375 | 2 | [] | no_license | package csc3095.project.setnet.components;
import csc3095.project.setnet.components.core.SetnetObject;
import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
public class Arc extends SetnetObject
{
@XmlAttribute
@XmlIDREF
private final Place place;
@XmlAttribute
... | true |
5d3d643b302aaa6ee7bc8edf4db17a913c24dd99 | Java | AgaPol/TicTacToeGame | /TicTacToe/src/Game.java | UTF-8 | 773 | 2.828125 | 3 | [] | no_license | import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class Game extends JPanel {
OXButton btn[] = new OXButton[9];
public Game(){
initGame();
}
public void initGame(){
this.setLayout(new GridLayout(... | true |
dacb26b54c8e9e0214fa5d4cda16633358727b23 | Java | renowx/angryBird | /src/Jalon2/Vue/ObstacleView.java | UTF-8 | 1,436 | 3.109375 | 3 | [] | no_license | package Jalon2.Vue;
import Jalon2.Modele.Modele;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Observable;
import java.util.Observer;
import javax.swing.JPanel;
import Jalon2.Modele.MouvementObstacle;
import Jalon2.Modele.Obstacle;
public class ... | true |
8fabbf5f741e035dc2c3f3b83c402af4d4815f74 | Java | annajinneman/EsofA1 | /src/Participation/Participation.java | UTF-8 | 984 | 2.984375 | 3 | [] | no_license | package Participation;
import java.io.Serializable;
/**
* An instance of this class represents a unit of participation to
* a certain service. A customer can buy participations.
*
* See also the background provided in {@link Participation.ApplicationLogic}.
*/
public class Participation implements Serializable ... | true |
a44d772acac31950748c7ff373146bfe8214da3d | Java | bellmit/hxc | /earlyWarningMonintoring/src/main/java/com/cetccity/operationcenter/webframework/trigger/core/converter/AggregatesAlarmConverter.java | UTF-8 | 732 | 1.835938 | 2 | [] | no_license | /**
* Copyright (C), 2019, 中电科新型智慧城市研究院有限公司
* FileName: AggregatesAlarmConverter
* Author: YHY
* Date: 2019/5/16 17:18
* Description:
* <author> <time> <version> <desc>
* 作者姓名 修改时间 版本号 描述
*/
package com.cetccity.operationcenter.webframework.trigg... | true |
60372e133434394015964e278fd7a9371f6218da | Java | varunarya03/VaccNow | /src/main/java/com/xebia/vaccnow/repositories/VaccineRepository.java | UTF-8 | 222 | 1.679688 | 2 | [] | no_license | package com.xebia.vaccnow.repositories;
import com.xebia.vaccnow.models.Vaccine;
import org.springframework.data.repository.CrudRepository;
public interface VaccineRepository extends CrudRepository<Vaccine, Integer> {
}
| true |
2b257a70c479f760ae73b0068d34da7f30076882 | Java | OPTIMALSYSTEMS/yuuvis-momentum-java-tutorials | /upsert-validation-webhook-example/src/main/java/com/os/services/webhook/config/HookException.java | UTF-8 | 329 | 2.125 | 2 | [] | no_license | package com.os.services.webhook.config;
public class HookException extends Exception
{
private static final long serialVersionUID = 1L;
public HookException(String message)
{
super(message);
}
public HookException(String string, Throwable exception)
{
super(string,exception);
... | true |
dcaaa68e192792df25bb54bb3d60d2a7beb4870e | Java | shreyasJoshi30/Immigos | /app/src/main/java/com/example/welcomebot/HospitalListFragment.java | UTF-8 | 13,873 | 1.9375 | 2 | [] | no_license | package com.example.welcomebot;
import android.Manifest;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.location.Location;
import android.location.LocationListener;... | true |
3b5ac10888ba6920d5ff47bcd2e3872011a9d4b5 | Java | yarorage/testGit | /src/main/java/ru/yaro/GuiceModule.java | UTF-8 | 1,920 | 1.960938 | 2 | [] | no_license | package ru.yaro;
import com.google.inject.AbstractModule;
import com.google.inject.Provides;
import org.apache.ibatis.mapping.Environment;
import org.apache.ibatis.session.Configuration;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.apache.iba... | true |
1c03ad02fe7611f8eca344bb676a4a07a70e101b | Java | flywind2/joeis | /src/irvine/oeis/a108/A108213.java | UTF-8 | 364 | 2.703125 | 3 | [] | no_license | package irvine.oeis.a108;
import irvine.oeis.LinearRecurrence;
/**
* A108213 <code>a(0)=44</code>; if n odd, <code>a(n) = a(n-1)/2</code>, otherwise <code>a(n) = 4*a(n-1)</code>.
* @author Sean A. Irvine
*/
public class A108213 extends LinearRecurrence {
/** Construct the sequence. */
public A108213() {
s... | true |
9dbb0b68707e7f256ef4e20db6922aef5933f533 | Java | shiwen1006/Ajax_demo | /wen-web/src/main/java/com/sykean/config/DruidConfig.java | UTF-8 | 5,070 | 1.882813 | 2 | [] | no_license | package com.sykean.config;
import com.alibaba.druid.filter.Filter;
import com.alibaba.druid.filter.stat.StatFilter;
import com.alibaba.druid.pool.DruidDataSource;
import com.alibaba.druid.support.http.StatViewServlet;
import com.alibaba.druid.support.http.WebStatFilter;
import com.baomidou.mybatisplus.MybatisConfigura... | true |
4e789b4d97405d4837f8e521701e8c8527226caa | Java | ybkim1984/prj-yb | /dom2/namoo.board.dom2.da.hibernate/src/test/java/namoo/board/dom2/da/hibernate/BoardUserHibernateStoreTest.java | UTF-8 | 3,316 | 2.171875 | 2 | [] | no_license | /*
* COPYRIGHT (c) Nextree Consulting 2015
* This software is the proprietary of Nextree Consulting.
*
* @author <a href="mailto:demonpark@nextree.co.kr">SeokJae Park</a>
* @since 2015. 2. 2.
*/
package namoo.board.dom2.da.hibernate;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.... | true |
cb1155a37aa25e2b64455e8d0a6722f37f5b928a | Java | Holenkov/EPAM-Training-Projects | /Task4XMLParsing/src/by/training/xmlparsing/bean/CPU.java | UTF-8 | 1,193 | 2.953125 | 3 | [] | no_license | package by.training.xmlparsing.bean;
/**
* CPU bean, extends of Device.
*/
public class CPU extends Device {
/** CPU frequency.*/
protected int frequency;
/** public int getFrequency().
* Getter for CPU frequency.
* @return CPU frequency.
*/
public int getFrequency() {
return frequency;
}
/** public... | true |
b833107401edf2da020bb7578cfa4a24ba4d6a09 | Java | Sinius15/MMV | /src/com/sinius15/MMV/components/ReferenceVariable.java | UTF-8 | 479 | 2.5625 | 3 | [] | no_license | package com.sinius15.MMV.components;
import com.sinius15.MMV.Application;
public class ReferenceVariable extends Variable<Integer>{
public ReferenceVariable(String name, int referenceId) {
super(name, referenceId);
}
public HeapFrame referencingTo(Application app) {
return app.heap.getHeapFr... | true |
bfb793ff858aaea71f8edc2654530f09a19c2f86 | Java | annisafitrianin/Aplikasi-Ruang-Sedekah | /app/src/main/java/ap/annisafitriani/ruangsedekah/Model/Lokasi.java | UTF-8 | 1,323 | 2.046875 | 2 | [] | no_license | package ap.annisafitriani.ruangsedekah.Model;
import java.io.Serializable;
/**
* Created by Hp on 7/12/2018.
*/
public class Lokasi implements Serializable {
private String namaTempat;
private String lokasiId;
private String kegiatanId;
private Double lat, lang;
public Lokasi(String namaTempa... | true |
3f889077df8f88ee24346c68bbeb4091a784c794 | Java | iamfirdous/MIAMuslimIndustrialistAssociation | /app/src/main/java/com/nexusinfo/mia_muslimindustrialistassociation/ui/adapters/ProductAdapter.java | UTF-8 | 3,620 | 2.296875 | 2 | [] | no_license | package com.nexusinfo.mia_muslimindustrialistassociation.ui.adapters;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.support.v7.widget.RecyclerView;
import android.view... | true |
bf6027274ed04b3acb66cc3a0dbb39dea85174d2 | Java | TheRoddyWMS/Roddy | /RoddyCore/src/de/dkfz/roddy/knowledge/files/FileStageSettings.java | UTF-8 | 1,463 | 2.3125 | 2 | [
"LicenseRef-scancode-proprietary-license",
"LGPL-2.1-only",
"EPL-2.0",
"MPL-2.0-no-copyleft-exception",
"MIT",
"CC0-1.0",
"AGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"MPL-2.0",
"EPL-1.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only",
"xpp"... | permissive | /*
* Copyright (c) 2016 German Cancer Research Center (Deutsches Krebsforschungszentrum, DKFZ).
*
* Distributed under the MIT License (license terms are at https://www.github.com/TheRoddyWMS/Roddy/LICENSE.txt).
*/
package de.dkfz.roddy.knowledge.files;
import de.dkfz.roddy.core.DataSet;
import java.io.Serializab... | true |
83f7510820311b53e0bee8db0f7f20dd7801979d | Java | naemoo/Algorithm | /src/Kakao/Problem30.java | UTF-8 | 2,080 | 3.421875 | 3 | [] | no_license | /*
* 2020 KAKAO BLIND RECRUITMENT
* https://programmers.co.kr/learn/courses/30/lessons/60059
* 자물쇠와 열쇠
*/
package Kakao;
import java.util.*;
public class Problem30 {
public static boolean solution(int[][] key, int[][] lock) {
int[][][] keys = getRotatedKey(key);
int n = lock.length;
int m = k... | true |
4188cf810127941bd1f2bdb71eb1aeec0baf9d7f | Java | musol1985/fenix | /Fenix/src/main/java/com/sot/fenix/components/json/NuevoCentroJSON.java | UTF-8 | 233 | 1.664063 | 2 | [] | no_license | package com.sot.fenix.components.json;
import com.sot.fenix.components.models.Centro;
import com.sot.fenix.components.models.Ubicacion;
public class NuevoCentroJSON{
public Centro centro;
public String nombreAdmin;
}
| true |
3d473a6a7b53b63d3da2dda26057280a9b47d0e0 | Java | MukeshAnandmax/JBDL-9 | /REST-APIs_L6/src/main/java/org/geekforgeek/jbdl9/RESTAPIs/TestController.java | UTF-8 | 610 | 2.28125 | 2 | [] | no_license | package org.geekforgeek.jbdl9.RESTAPIs;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*;
@RestController
public class TestController {
@RequestMapping(value = "/song/test-abc", method = RequestMethod.GET)
public String greetUser(){
return "Hello User!!";
... | true |
12d7ffcac1b15a067c917913f604bed298414d55 | Java | ritchirp/School-Work | /COLLEGE/Junior/AI/maze-search/src/mazesearch/cse/miamioh/edu/AStarSearch.java | UTF-8 | 2,104 | 3.46875 | 3 | [] | no_license | package mazesearch.cse.miamioh.edu;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.PriorityQueue;
public class AStarSearch extends SearchStrategy {
public AStarSearch(Maze maze) {
super(maze);
}
@Override
public void solve() {
PriorityQueue<AStarNode> fron... | true |
acbe79d172ecaafe82bfc8ab39c36f41d987960a | Java | charro/subelo | /server/src/main/java/subelo/server/services/.svn/text-base/RestService.java.svn-base | UTF-8 | 2,962 | 2.09375 | 2 | [] | no_license | /** Copyright 2011 UNED
*
* Miguel Rivero
* Juan Manuel Cigarran
*
* Licensed under the EUPL, Version 1.1 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 ... | true |
a23937aabcb1e00b0ad8587bf4c9df4b8c38d89a | Java | clj911/solr | /src/test/java/a/solrTest.java | UTF-8 | 4,491 | 2.34375 | 2 | [] | no_license | package a;
import com.itheima.pojo.Items;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.impl.HttpSolrServer;
import org.apache.solr.client.solrj.response.QueryResponse;
import org.apache.solr.common.SolrDocument;
import org.a... | true |
43b7b092caeb76ebe3f565e4b27745e79e0bc68d | Java | UweTrottmann/SeriesGuide | /app/src/main/java/com/battlelancer/seriesguide/util/SelectionBuilder.java | UTF-8 | 5,230 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | package com.battlelancer.seriesguide.util;
import static android.database.sqlite.SQLiteDatabase.CONFLICT_NONE;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteQueryBuilder;
import android.text.TextUtils;
import a... | true |
2088db1153621fb56c2686508129adbc2584ea53 | Java | nalet/bfh-bachelor-thesis | /src/main/java/ch/certe/optimization/maintenancesolver/product/domain/Interval.java | UTF-8 | 2,669 | 2.28125 | 2 | [] | no_license | /*
* Copyright 2017 JBoss by Red Hat.
*
* 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 agr... | true |
f201e06bccfbe0dc83f414eaaf15fedfd23189fe | Java | HatemBay/donationJAVAFX | /src/javafxapplication1/DisplayAssociationAdminController.java | UTF-8 | 9,702 | 1.882813 | 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 javafxapplication1;
import com.donation.Entite.Association;
import com.donation.Service.ServiceAssociation;
import java.io.IOE... | true |
4786fbb2feb52773a95eaa3bee3ee502c53e764e | Java | jeon9825/grade3_Algorithm | /03 -2 고급정렬/Exercise3_3/quickSort.java | UTF-8 | 796 | 3.765625 | 4 | [] | no_license | import java.util.Arrays;
public class quickSort {
static void swap(String[] s, int index1, int index2) {
String temp = s[index1];
s[index1] = s[index2];
s[index2] = temp;
}
static int partition(String[] s, int start, int end) {
int i = start - 1;
String value = s[end];
for (int j = start; j < end; j++)... | true |
37ac393839dc3e6371cfd718a369b9fa4ca28805 | Java | AgriCraft/AgriCraft | /src/main/java/com/infinityraider/agricraft/plugins/strawgolemreborn/StrawGolemRebornCompat.java | UTF-8 | 1,489 | 2.125 | 2 | [
"MIT"
] | permissive | package com.infinityraider.agricraft.plugins.strawgolemreborn;
import com.google.common.collect.Lists;
import com.infinityraider.agricraft.content.AgriTileRegistry;
import com.infinityraider.agricraft.content.core.TileEntityCrop;
import com.t2pellet.strawgolem.crop.CropRegistry;
import com.t2pellet.strawgolem.entity.E... | true |
d1d17684232008f5dfef8b5eabe9c56007a6a7b2 | Java | magefree/mage | /Mage.Sets/src/mage/cards/b/BayouGroff.java | UTF-8 | 1,343 | 2.421875 | 2 | [
"MIT"
] | permissive | package mage.cards.b;
import mage.MageInt;
import mage.abilities.costs.OrCost;
import mage.abilities.costs.common.SacrificeTargetCost;
import mage.abilities.costs.mana.GenericManaCost;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.... | true |
2550addb4e31069ec87b39cd2fc857a78f408b66 | Java | rentty/rent | /src/main/java/com/rent/controller/HouseShowController.java | UTF-8 | 2,666 | 2.25 | 2 | [] | no_license | package com.rent.controller;
import com.rent.bean.Housedl;
import com.rent.bean.showHousedl;
import com.rent.common.Result;
import com.rent.service.House_managementService;
import com.rent.service.impl.showHousedlM;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.commo... | true |
52fc2e9cd0d5453caa9c2bc07eb2dc4e18236ca2 | Java | hazemmasarani/fruit-ninja | /src/models/ObjThrow.java | UTF-8 | 1,294 | 2.1875 | 2 | [] | no_license | package models;
import javafx.animation.ParallelTransition;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
public interface ObjThrow {
public void updateImageSize( int timeSizeMinimizer );
public void setThrowTransition(ParallelTransition parallelTransition);
public void setCutTra... | true |
0a2f33d5321de63eec9a0b6aad82cf49943fead4 | Java | ahmedifhaam/dhis2-android-sdk | /core-rules/src/main/java/org/hisp/dhis/rules/functions/RuleFunctionModulus.java | UTF-8 | 1,539 | 2.71875 | 3 | [
"BSD-3-Clause"
] | permissive | package org.hisp.dhis.rules.functions;
import org.hisp.dhis.rules.RuleVariableValue;
import java.util.List;
import java.util.Map;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
/**
* Produces the modulus when dividing the first with the second argument.
*/
final class RuleFunctionModulus exten... | true |
d7bc04c7cd289c6897170be27d38ff1b6c4bf4c4 | Java | Gustavokmp/facisa-map-308511 | /Atividade 7/src/NumeroUm.java | UTF-8 | 103 | 2.09375 | 2 | [] | no_license |
public class NumeroUm extends Caractere{
public void imprimir() {
System.out.print("1");
}
}
| true |
4bb9a5ae8ebaf06253be4d9707447f015666067f | Java | HeavenlyBuns/SpringCaseBox | /spring-cloud-test/hystrixs/hystrix-dashboard/src/main/java/com/shehaoran/springcloud/hystrixdashboard/HystrixDashboardApplication.java | UTF-8 | 1,835 | 2.15625 | 2 | [] | no_license | package com.shehaoran.springcloud.hystrixdashboard;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
/**
*启用 Hystrix Dashboard 功能。
*/
@EnableHystrixDashboard
@Spr... | true |
5d954a535d4fa5ff5bb2ac8c582df56444fca8ff | Java | klinker24/talon-for-twitter-android | /shared_assets/src/main/java/com/klinker/android/twitter_l/util/IoUtils.java | UTF-8 | 1,316 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 Luke Klinker
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | true |
b755b8636dac9a01e074261b6e36405c8eb51c7c | Java | sudilshr/eTarkari | /src/com/etarkari/maps/Results.java | UTF-8 | 993 | 1.984375 | 2 | [] | no_license | package com.etarkari.maps;
import java.util.List;
import com.google.gson.annotations.SerializedName;
public class Results {
public String getFormattedAddress() {
return formatted_address;
}
public String getIcon() {
return icon;
}
public String getId() {
return id;
}
... | true |
4883e038f265a9402efd80eb255b61ce4cf2d2af | Java | sengeiou/chp-core | /.svn/pristine/48/4883e038f265a9402efd80eb255b61ce4cf2d2af.svn-base | UTF-8 | 1,640 | 2.125 | 2 | [] | no_license | package com.creditharmony.core.common.entity.ex;
import java.util.Date;
/**
* 已分配门店信息
* @author chenwd
*
*/
public class StoreAssigned {
private String memberId; //分配给的成员id
private String memberName; //分配给的成员姓名
private String groupName; //分配成员所属的小组(机构)名称
private Integer storeAssignedCount; //该... | true |
00f8406736e12e31b8177fbb99b8321765933fa7 | Java | vova-mark/javacore | /src/main/java/center/kit/app/classwork/lesson5/CircleArea.java | UTF-8 | 771 | 3.84375 | 4 | [] | no_license | package center.kit.app.classwork.lesson5;
import java.util.Scanner;
public class CircleArea {
public static float calculateCircleArea(float radius){
float circleArea = (float)Math.PI * (float)Math.pow(radius, 2);
return circleArea;
}
public static String calculateBigger(float radius1, fl... | true |
5d78c70ca01d3757cd35658c5ba5f09597bc4c80 | Java | wushunming/Java.UMC.Data | /src/UMC/Data/Sql/SqlUtils.java | UTF-8 | 564 | 2.09375 | 2 | [] | no_license | package UMC.Data.Sql;
import UMC.Data.Database;
import UMC.Data.Utility;
import java.util.Map;
public class SqlUtils {
public static ISqler sqler(Database.IProgress progress, DbProvider provider, boolean autoPfx) {
return new Sqler(progress, provider, autoPfx);
}
public static <T> IObjectEntity ... | true |
275309d9ebdb40779ef37aa162c9233c37d8db16 | Java | ldj8683/javaBasic | /java11/src/arrayApplication/InputIntoArrayQuiz01.java | UTF-8 | 1,016 | 4 | 4 | [] | no_license | package arrayApplication;
import javax.swing.JOptionPane;
public class InputIntoArrayQuiz01 {
public static void main(String[] args) {
String[] s1 = new String[3];
String[] s2 = new String[3];
// 입력
// 작년에 가고 싶었던 곳
for (int i = 0; i < s1.length; i++) {
s1[i] = JOptionPane.showInputDialog("작년에 가고 싶었던 곳... | true |
681cb77fb765e24fc0cc1508018cb33d501c00df | Java | 43ndr1k/Digital-Text-Forensics | /src/main/java/de/uni_leipzig/digital_text_forensics/preprocessing/ConvertPdfXML.java | UTF-8 | 17,650 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | package de.uni_leipzig.digital_text_forensics.preprocessing;
import java.io.File;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationExceptio... | true |
40eb6c76cc1cb5f740b0789e69f1d7c30a36e8e7 | Java | jneyrach/hr-salieri | /Tmp/asistencia-persistence/src/main/java/com/synapsis/rrhh/asistencia/persistence/service/EntityQueryParameter.java | UTF-8 | 1,043 | 2.0625 | 2 | [] | no_license |
package com.synapsis.rrhh.asistencia.persistence.service;
public class EntityQueryParameter {
private int parCode;
private int parOrdinal;
private String parName;
private Class parType;
public int getParCode() {
return parCode;
}
public void setParCode(int parCode) {
... | true |
1a4527d4dbbced082b0a899e268efa0f79d1de23 | Java | selenium3007/1_Jan_Project | /LiveProject_1_JAN_6PM/Selenium_Maven/src/test/java/com/durgasoft/selenium/testNG/excel/Excel_API.java | UTF-8 | 4,206 | 2.78125 | 3 | [] | no_license | package com.durgasoft.selenium.testNG.excel;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import org.apache.poi.ss.usermodel.CellType;
import org.apache.poi.xssf.usermodel.XSSFCell;
import org.apache.poi.xssf.usermodel.XSSFRow;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.... | true |
5ecce4abc7ce284dd4703319fdd970dce0886dee | Java | ulfricarchive/commons | /src/test/java/com/ulfric/commons/value/OptionalHelperTest.java | UTF-8 | 716 | 2.40625 | 2 | [] | no_license | package com.ulfric.commons.value;
import org.junit.jupiter.api.Test;
import com.google.common.truth.Truth8;
import com.ulfric.veracity.suite.HelperTestSuite;
import java.util.Optional;
import java.util.stream.Stream;
class OptionalHelperTest extends HelperTestSuite {
OptionalHelperTest() {
super(OptionalHelper... | true |
332af79c2ccc67d00cecb458b6b79876d4e4cdef | Java | lawlin00/Consultation-Hour-Booking-System-for-APU-Medical-Center | /MedicalCenter/OODJProject/src/OODJProj1/Controller/C_User.java | UTF-8 | 11,215 | 2.265625 | 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 OODJProj1.Controller;
import OODJProj1.DataLayer.D_User;
import OODJProj1.Model.Users;
import OODJProj1.Others.Validation_User... | true |
e0ebccfce17847dcb73212073cacbf98a52844e7 | Java | bellmit/algorithms | /leetcode/src/main/java/test/concurrent/ThreadPoolFactory.java | UTF-8 | 2,305 | 2.71875 | 3 | [] | no_license | package test.concurrent;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import com.google.c... | true |
aac29e75fde342f87a999b02ace2dfacbab0aa46 | Java | Gtm417/final-project | /src/main/java/ua/training/cruise/repository/CruiseRepository.java | UTF-8 | 225 | 1.617188 | 2 | [] | no_license | package ua.training.cruise.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import ua.training.cruise.entity.cruise.Cruise;
public interface CruiseRepository extends JpaRepository<Cruise, Long> {
}
| true |
8a6fe593d0265885b43491fde89fea8b09096bfc | Java | EncoderDevelopment/facilli | /src/br/com/facili/cenario/tela/CenarioTelaInicio.java | UTF-8 | 1,146 | 2.234375 | 2 | [] | no_license | package br.com.facili.cenario.tela;
import static br.com.facili.configuracao.dispositivo.ConfiguracaoDispositivo.alturaDaCena;
import static br.com.facili.configuracao.dispositivo.ConfiguracaoDispositivo.larguraDaCena;
import org.cocos2d.layers.CCLayer;
import org.cocos2d.layers.CCScene;
import org.cocos2d.nodes.CCSp... | true |
273728e60c95c1413d54ece4d6c723ecc2a08545 | Java | Ontotext-AD/graphdb-autocomplete-plugin | /src/test/java/com/ontotext/trree/plugin/autocomplete/AutocompletePluginTestBase.java | UTF-8 | 10,574 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | package com.ontotext.trree.plugin.autocomplete;
import com.ontotext.graphdb.Config;
import com.ontotext.test.TemporaryLocalFolder;
import com.ontotext.test.functional.base.SingleRepositoryFunctionalTest;
import com.ontotext.test.utils.StandardUtils;
import org.eclipse.rdf4j.common.io.IOUtil;
import org.eclipse.rdf4j.mo... | true |
ff6f0a7354eaaa352bd72ad4e0126881fe3a817b | Java | anton0xf/checklist | /app/src/test/java/checklist/args/def/ArgsBlockDefTest.java | UTF-8 | 6,339 | 2.71875 | 3 | [
"MIT"
] | permissive | package checklist.args.def;
import org.junit.jupiter.api.Test;
import checklist.args.ArgParseException;
import checklist.args.val.ArgsBlockVal;
import checklist.args.val.OptionArgVal;
import checklist.args.val.PositionalArgVal;
import io.vavr.Tuple;
import io.vavr.Tuple2;
import io.vavr.collection.List;
import io.vav... | true |
0381accb0ba8e9cfea61b57a82ccfeaa6925c718 | Java | caiyanzhi/easyfile | /easyfile/app/src/main/java/yanzhi/easyfile/easyfile/Network/FileUtil.java | UTF-8 | 3,932 | 2.75 | 3 | [] | no_license | package yanzhi.easyfile.easyfile.Network;
import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.os.Environment;
import android.util.Log;
import java.io.File;
import java.io.IOException;
/**
* @desc Created by yanzhi on 2016-03-06.
*/
public class FileUtil {
... | true |
7bffe7aa60dbabae9cd4a7de1abcf3fafdbfcaf3 | Java | muchafel/wojatzki | /interactiveStance/src/main/java/de/uni/due/ltl/interactiveStance/backend/ExperimentConfiguration.java | UTF-8 | 628 | 2.734375 | 3 | [] | no_license | package de.uni.due.ltl.interactiveStance.backend;
public class ExperimentConfiguration {
private boolean simpleMode;
private String scenario, mode;
public ExperimentConfiguration(boolean simpleMode, String scenario, String mode) {
this.simpleMode=simpleMode;
this.scenario=scenario;
this.mode=mode;
}
pub... | true |
a5f9b7931fbb2108bda6d05cce8163bf718d36a2 | Java | calabacak/Repl.it | /src/day38_ArrayList/Triangle.java | UTF-8 | 198 | 2.109375 | 2 | [] | no_license | package day38_ArrayList;
import java.util.*;
public class Triangle {
static double area;
int b=2;
int h=3;
public static void main(String[] args) {
System.out.println(args.length);
}
}
| true |
7cad831d72613b81538938d76aea304587674433 | Java | jay-donga/android-recyclerview-example | /app/src/main/java/com/recyclerview/Adapter_Movies.java | UTF-8 | 5,874 | 2.15625 | 2 | [] | no_license | package com.recyclerview;
import android.content.Context;
import android.content.Intent;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.... | true |
2dfa97b9b17a583fb23a88e625dc2d78ad911bdf | Java | Romanasa91/backend_project | /src/main/java/twins/logic/UserLogic.java | UTF-8 | 7,154 | 2.15625 | 2 | [] | no_license | package twins.logic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;
import org.springframework.stereot... | true |
88e261c5dc610dfaee07693c5d04486f56140416 | Java | coder-hx/AlgorithmTraining | /src/com/hxcoder/complete/medium/fiveHundredEighteen/Solution.java | UTF-8 | 579 | 3.25 | 3 | [] | no_license | package com.hxcoder.complete.medium.fiveHundredEighteen;
/**
* 518. 零钱兑换 II
* 要求:
* 给定不同面额的硬币和一个总金额,计算可以凑成总金额的硬币组合数
* 假设每一种面额的硬币有无限个
* <p>
* 提示:
* 0 <= amount (总金额) <= 5000
* 1 <= coin (硬币面额)<= 5000
* 硬币种类不超过 500 种
* 结果符合 32 位符号整数
*
* @author hxcoder
*/
public class Solution {
public static void main... | true |
c6181ab5f91f27a12cf4518308078614dcfe6c90 | Java | Jan111111/RE2011 | /src/main/java/raf/Note.java | UTF-8 | 1,159 | 3.46875 | 3 | [] | no_license | package raf;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.io.UnsupportedEncodingException;
import java.util.Scanner;
/*
完成简易记事本工具
程序启动后要求用户输入一个文件夹,然后对该文件进行写操作
之后用户在控制台输入的每一行为内容都要写入到文件中.
当用户单独输入“exit”时程序退出.
注:写入文件中的数据不需要考虑换行问题
*/
public cla... | true |
2517ad422173a0416468bf47e604686ccd4bac17 | Java | Vyrm/chat | /src/main/java/com/devcolibri/handler/MessageHandler.java | UTF-8 | 381 | 2.234375 | 2 | [] | no_license | package com.devcolibri.handler;
import java.util.concurrent.ConcurrentLinkedDeque;
public class MessageHandler {
private ConcurrentLinkedDeque<String> concurrentLinkedDeque;
public MessageHandler() {
concurrentLinkedDeque = new ConcurrentLinkedDeque<>();
}
public ConcurrentLinkedDeque<String... | true |
98948783b557d9310dd2a852bec158e2763ee27a | Java | duythu3606/lab3 | /src/oop/bai9/CNList.java | UTF-8 | 1,397 | 3 | 3 | [] | no_license | package oop;
public class CNList {
private int n=3;
private Congnhan cnlist[];
private int count =0;
public CNList(){cnlist = new Congnhan[n];}
public void add(Congnhan cn){
if (check_full())
{
cnlist[count] = cn;
count++;
}
}
private boole... | true |
badc1348287165a1aaa1e68112b678cefc2d1cef | Java | GuDongyeong/Server_Basic | /ServletEx/src/hello/HelloServlet.java | UTF-8 | 860 | 2.71875 | 3 | [] | no_license | package hello;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet("/Hello")
public cl... | true |
5bb533e6f1527a3d4eec0537fe242f68878308e8 | Java | akaiserg/tdd_calc_spring_boot | /src/main/java/com/project/calc/rest/Response.java | UTF-8 | 333 | 2.265625 | 2 | [] | no_license | package com.project.calc.rest;
public class Response {
private final long id;
private final double result;
public Response(long id, double result){
this.id=id;
this.result=result;
}
public long getId() {
return id;
}
public double getResult() {
return result;
}
... | true |
56ab84cf419eee2bc4ff5c7ddf2ad31361672b6a | Java | EsfingeFramework/gamification | /Gamification/src/test/java/net/sf/esfinge/gamification/auth/GuardedTrophyImpl.java | UTF-8 | 630 | 2.5 | 2 | [
"MIT"
] | permissive | package net.sf.esfinge.gamification.auth;
import net.sf.esfinge.gamification.annotation.auth.trophy.AllowTrophy;
import net.sf.esfinge.gamification.annotation.auth.trophy.DenyTrophy;
public class GuardedTrophyImpl implements Guarded {
@AllowTrophy(achievementName = "silver")
public void changeProfilePhoto() {
S... | true |
baf3f0eda993883c4701d81dc53bc4e8adf33cfd | Java | P79N6A/icse_20_user_study | /methods/Method_17826.java | UTF-8 | 178 | 2 | 2 | [] | no_license | protected void bindDynamicProp(int dynamicPropIndex,Object value,Object content){
throw new RuntimeException("Components that have dynamic Props must override this method");
}
| true |
f29d298f8a0ba82715df8b43570dda43ee0d0868 | Java | boox30/www | /android/kreader/libraries/onyxsdk-scribble/src/main/java/com/onyx/android/sdk/scribble/data/ShapeDataProvider.java | UTF-8 | 5,269 | 2.140625 | 2 | [] | no_license | package com.onyx.android.sdk.scribble.data;
import android.content.Context;
import com.onyx.android.sdk.scribble.shape.Shape;
import com.onyx.android.sdk.utils.StringUtils;
import com.raizlabs.android.dbflow.annotation.Database;
import com.raizlabs.android.dbflow.config.DatabaseConfig;
import com.raizlabs.android.dbfl... | true |
a86346efe51f97264b9222113b011ce8b5d13d39 | Java | Blueazchevelle/Java-Web-Application | /src/main/java/org/kekelidos/weather/application/WeatherApplication/model/StationPath.java | UTF-8 | 1,830 | 2.515625 | 3 | [] | no_license | package org.kekelidos.weather.application.WeatherApplication.model;
/**
*
* @author kekeli D Akouete
*
* Description:
* A station is a any weather observing platform where data is recorded.
*/
public class StationPath extends PathModel{
protected String datacategoryid;
protected String datatypeid;
protecte... | true |
4792d4dffd4203208e1730a1fb80e471a1eabb81 | Java | PaulieKlein/Module_javaEE | /BankonetWeb/src/com/bankonet/servlet/DateServlet.java | UTF-8 | 1,921 | 2.296875 | 2 | [] | no_license | package com.bankonet.servlet;
import java.io.IOException;
import java.util.Date;
import java.text.SimpleDateFormat;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
//import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
im... | true |
6996707283c0cd21a3367cbaa00414b23dce1f41 | Java | Elena-Bruyako/BrunyatkoFriends | /data/src/main/java/com/bruyako/repository/MessageRepository.java | UTF-8 | 1,440 | 2.578125 | 3 | [] | no_license | package com.bruyako.repository;
import com.bruyako.entity.Message;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import java.util.*;
/**
* Created by brun... | true |
68e115a4e40945ef489e05f5f6ef03f1a25d1ad1 | Java | kashish17/MineSweeper | /app/src/main/java/com/example/kashish/minesweeper/MButton.java | UTF-8 | 461 | 2.1875 | 2 | [] | no_license | package com.example.kashish.minesweeper;
import android.content.Context;
import android.support.v7.widget.AppCompatButton;
import android.widget.Button;
public class MButton extends AppCompatButton {
MButton(Context context){
super(context);
}
int i,j;
boolean lc=false;
boolean shown = fal... | true |
22fb1997ac8016e7b9ff800cd86376780a308b4d | Java | aman-rastogi/70-Days-Coding-Challenge | /Day 2/CONFLIP.java | UTF-8 | 2,373 | 3.25 | 3 | [] | no_license | package codechef.easy;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringTokenizer;
public class CONFLIP {
public static void main(String[] args) {
FastReader fr = new FastReader();
int T = fr.nextInt();
fo... | true |
3ab8ad08c0e392ea5e20d1ec1f94a629892f7412 | Java | subhasis-sys/subhasiscentralizedrepository | /x/src/test/java/test/x/Thissuperconstructorprogram.java | UTF-8 | 721 | 3.265625 | 3 | [] | no_license | package test.x;
public class Thissuperconstructorprogram {
public Thissuperconstructorprogram() {
this(1,2);
System.out.println("default parent constructor");
}
public Thissuperconstructorprogram(int a)
{
this(1,2,3);
System.out.println("1 parametrized parent constructor");
}
publi... | true |
084b5995e1499818a30669153d7388d7a9e00800 | Java | eric-lanita/BigRoadTruckingLogbookApp_v21.0.12_source_from_JADX | /android/support/constraint/solver/C0033a.java | UTF-8 | 16,595 | 1.804688 | 2 | [] | no_license | package android.support.constraint.solver;
import android.support.constraint.solver.SolverVariable.Type;
import com.google.android.gms.maps.model.GroundOverlayOptions;
import java.util.Arrays;
public class C0033a {
int f244a = 0;
private final C0035b f245b;
private final C0036c f246c;
private int f247... | true |
23d697619610ac905b1aee7ccd3dfef00fd78425 | Java | minfaatong/RaspberryPI | /bundles/org.eclipse.ecf.raspberrypi.gpio.pi4j/src/org/eclipse/ecf/raspberrypi/gpio/pi4j/InputListenerTrackerCustomizer.java | UTF-8 | 4,590 | 1.804688 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2014 Composent, Inc. All rights reserved. This
* program and the accompanying materials are made available under the terms of
* the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at ... | true |
30d29a80e163b9ed06db7291813a83d1d09e7fae | Java | SoniCoder/Victum | /src/victum/Notification.java | UTF-8 | 447 | 1.8125 | 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 victum;
import java.time.LocalTime;
import java.util.ArrayList;
/**
*
* @author Addict
*/
public class Notification {
... | true |
10f69c3ab95bfab1998c5b56252e62b8f03e8577 | Java | NF1198/WiFiMapper | /WifiMapperGUI/src/main/java/org/tauterra/wifimapper/wifimappergui/app/NetworkWiFiAnalyzerJSHelper.java | UTF-8 | 2,439 | 2.203125 | 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 org.tauterra.wifimapper.wifimappergui.app;
import com.tauterra.geo.LatLonBounds;
import com.tauterra.geo.LatLonCoord;
import j... | true |