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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
df19aef8da248419da8f27d9917fbe59c673f3bc | Java | EugeneMsv/blog-boot | /blog-domain/src/main/java/ru/text/nastya/domain/entities/credential/UserGroup.java | UTF-8 | 1,178 | 2.15625 | 2 | [] | no_license | package ru.text.nastya.domain.entities.credential;
import ru.text.nastya.domain.entities.base.Dictionary;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
@Entity
@Table(name = "user_group", indexes =
{@Index(name = "user_group_code_idx", columnList = "code", unique = true)})
pu... | true |
cd75fd3b7de39cfb537b385783bf4b89ccb881b8 | Java | araurangel/InstagramClient | /app/src/main/java/com/theostanton/InstagramClient/helpers/AnimationHelper.java | UTF-8 | 745 | 2.5625 | 3 | [] | no_license | package com.theostanton.InstagramClient.helpers;
import android.animation.Animator;
import android.view.View;
import android.view.ViewAnimationUtils;
public class AnimationHelper {
public static void circularReveal(View view){
int cx = (view.getLeft() + view.getRight() ) / 2;
int cy = (view.getTo... | true |
a8188f240d22d0f30c2decd513232dd4bb2ed02d | Java | BiancaStaicu16/DataStorageSystem | /src/Module.java | UTF-8 | 1,191 | 3.375 | 3 | [] | no_license | public class Module {
private int year;
private byte term;
private ModuleDescriptor module;
private StudentRecord[] records;
private double finalAverageGrade;
/**
* Constructor method.
* @param newYear - Year of a module.
* @param newTerm - Term of a module.
* @param newModule - The specific mod... | true |
1d7a3ca6f6759ee010abb850eb78c752be0a43c0 | Java | tolweb/tolweb-app | /OnlineContributors/src/org/tolweb/tapestry/selectionmodels/PhylesisSelectionModel.java | UTF-8 | 1,004 | 2.359375 | 2 | [] | no_license | package org.tolweb.tapestry.selectionmodels;
import org.apache.tapestry.form.IPropertySelectionModel;
import org.tolweb.hibernate.MappedNode;
public class PhylesisSelectionModel implements IPropertySelectionModel {
/*
public static final int MONOPHYLETIC = 0;
public static final int NOT_MONOPHYLETIC = 1;
p... | true |
bd0fab97dd3720fb852c2c9e83ba11c8c3be3369 | Java | yangxiangDece/sam-common | /src/main/java/com/yang/designpattern/han/composite/College.java | UTF-8 | 972 | 3.203125 | 3 | [] | no_license | package com.yang.designpattern.han.composite;
import java.util.ArrayList;
import java.util.List;
// Composite
public class College extends OrganizationComponent {
private List<OrganizationComponent> components = new ArrayList<>();
public College(String name, String desc) {
super(name, desc);
}
... | true |
5763ff7a79eb21c566055fac488fcd30f4a41dc7 | Java | ShifuCifuentes/ridixcr | /SysConPat_1.0/src/org/sysconpat/rx/gui/seguridad/JF_Loguin.java | UTF-8 | 16,426 | 1.851563 | 2 | [] | no_license | package org.sysconpat.rx.gui.seguridad;
import java.awt.Color;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import org.rx.cr.conf.Config;
import static org.rx.cr.util.Utilitarios.*;
im... | true |
bbaabcd832d569a4c728cbb25bff177cff1379be | Java | dwvisser/jam-daq-code | /src/main/java/jam/data/HistogramCollection.java | UTF-8 | 1,604 | 3.09375 | 3 | [
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package jam.data;
import java.util.*;
/**
* A collection of histograms, used by Group.
*
* @author Dale Visser
*
*/
public final class HistogramCollection implements
NameValueCollection<AbstractHistogram> {
/** children of group */
private transient final Map<String, AbstractHistogram> histogramMap = new ... | true |
5db6f24c9ebfb291b4ea715b39d607db9332344c | Java | hui007/sky-allinone | /src/main/java/com/sky/allinone/service/CommonMapperService.java | UTF-8 | 1,744 | 1.945313 | 2 | [] | no_license | /**
* Copyright 2010-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | true |
d842c134ff16006d004bdfba0a40ce4b4dee2a9f | Java | Aigencraft/UltimateModeration | /src/main/java/com/songoda/ultimatemoderation/tickets/TicketStatus.java | UTF-8 | 280 | 2.390625 | 2 | [
"LicenseRef-scancode-other-permissive"
] | permissive | package com.songoda.ultimatemoderation.tickets;
public enum TicketStatus {
OPEN("Open"),
CLOSED("Closed");
private String status;
TicketStatus(String status) {
this.status = status;
}
public String getStatus() {
return status;
}
}
| true |
5240a35492bcff0834b3db995f40c77af234f218 | Java | LucVermeer/Restaurant | /app/src/main/java/vermeer/luc/restaurant/MenuItemActivity.java | UTF-8 | 1,214 | 2.453125 | 2 | [] | no_license | package vermeer.luc.restaurant;
import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;
import com.squareup.picasso.Picasso;
public class MenuItemActivity extends AppComp... | true |
d247f05690be40b1ba4c44f055a938889f4e39f7 | Java | asurovenko/thumbtack-developer-school-2016-asurovenko | /backend/lessons/trainee/src/main/net/thumbtack/asurovenko/trainee/cars/Car.java | UTF-8 | 1,951 | 3.234375 | 3 | [] | no_license | package net.thumbtack.asurovenko.trainee.cars;
import net.thumbtack.asurovenko.trainee.Color;
import net.thumbtack.asurovenko.trainee.exceptions.ColorException;
import net.thumbtack.asurovenko.trainee.interfaces.Colored;
public class Car implements Colored {
private String mark;
private int mass, speed;
p... | true |
14c77c2205bc5a9699d63ab2f909359fe4051251 | Java | nieyue/YaYaoPromotion | /YaYaoPromotion/src/com/nieyue/service/impl/AdsenseServiceImpl.java | UTF-8 | 1,436 | 2.21875 | 2 | [] | no_license | package com.nieyue.service.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.nieyue.bean.Adsense;
import com.nieyue.dao.AdsenseDao;
import com.nieyue.service.AdsenseService;
/**
* 广告位业务实现类
* @author Administrator
*
*/
@Ser... | true |
fa402a703191f99a877b48ebe23298ba61b627f7 | Java | ishwormali/practices | /Android/ToDoApp/ToDoList/ToDoList/src/com/practices/todolist/ToDoListActivity.java | UTF-8 | 5,104 | 1.984375 | 2 | [] | no_license | package com.practices.todolist;
import java.security.Provider;
import java.util.ArrayList;
import java.util.List;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.view.MenuItemCompat;
import android.support.v7.app.ActionBar;
import android.supp... | true |
8b7c4ac0c27e8b78acad5b93b0ad9f62581339f6 | Java | pmakkar93/Napster-Peer2Peer-File-sharing | /MultiClient.java | UTF-8 | 4,395 | 2.390625 | 2 | [] | no_license | package com.filetransfer;
import java.io.File;
import java.io.IOException;
import java.rmi.Naming;
import java.rmi.Remote;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.server.UnicastRemoteObject;
import java.util.Scanner;
// For Calculating Average Search Response time
p... | true |
774a91b6325d26fface92d165b35bf8f333e51d6 | Java | nhidh99/uitPractice | /spring-in-action/chapter01-04/taco.cloud.application/src/main/java/tacos/model/Taco.java | UTF-8 | 914 | 2.375 | 2 | [] | no_license | package tacos.model;
import lombok.Data;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;
@Data
@Entity
@Table(name = "taco")
public class Taco {
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDE... | true |
2de6d76c4dea254ad54c6a98f470b6730443a2b3 | Java | nexochiledesarrollo/MangerGfk2017 | /Manager/src/main/java/cl/nexo/manager/obj/upload/ObjUploadFileMessage.java | UTF-8 | 1,243 | 2.203125 | 2 | [] | no_license | package cl.nexo.manager.obj.upload;
import java.io.Serializable;
public class ObjUploadFileMessage implements Serializable {
private static final long serialVersionUID = -4093981756240899937L;
private String owner;
private String description;
private String filename;
private String fileType;
pub... | true |
00bd835e3cfc4b3e98c5e4d907fbf3594b578f0a | Java | Nirajpaliwal/Cts_Training_DailyWork | /Day 16 Java/Palindrome.java | UTF-8 | 501 | 3.34375 | 3 | [] | no_license | package com.cognizant.training.day16;
import java.util.Scanner;
public class Palindrome {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Input string : ");
String input = sc.nextLine();
char[] array = input.toCharArray();
String reverse = "";
for (i... | true |
463591460d6eff6fc85c355fd1c6561b55d9a182 | Java | wuhuaqiang/SSM | /ssm_strongpower_server/src/main/java/com/kylin/electricassistsys/server/impl/jcsj/TJcsjZllxDataServerImpl.java | UTF-8 | 2,854 | 1.9375 | 2 | [] | no_license | package com.kylin.electricassistsys.server.impl.jcsj;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.kylin.electricassistsys.data.api.jcsj.TJcsjZllxDataApi;
import com.kylin.electricassistsys.dto.jcsj.TJcsjZllxDto;
import com.kylin.electricassistsys.entit... | true |
0344f8cf4fc419bb2c46ea2c80681306a2691b82 | Java | bakhodir10/AlgoCS | /src/leetcode_problems/easy/LargestNumAtLeast_747.java | UTF-8 | 465 | 3.015625 | 3 | [
"MIT"
] | permissive | package leetcode_problems.easy;
public class LargestNumAtLeast_747 {
public int dominantIndex(int[] nums) {
int max = Integer.MIN_VALUE, pos = 0;
for (int i = 0; i < nums.length; i++) {
if (nums[i] > max) {
max = nums[i];
pos = i;
}
}... | true |
a7f0387f32bf5ed97509509bf782b3afbf4ba9e8 | Java | yindongjun/yx-xgov | /ssm-engine/src/main/java/cn/com/common/ssm/engine/tags/support/EntityScanner.java | UTF-8 | 3,733 | 2.109375 | 2 | [] | no_license | package cn.com.common.ssm.engine.tags.support;
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.util.LinkedHashSet;
import java.util.Set;
import org.springframework.beans.factory.annotation.AnnotatedBeanDefinition;
import org.springframework.beans.factory.config.BeanDefinition;
import o... | true |
1f620fafbe70b2f2cbd035bb3994a1438897c9ed | Java | liugongce/AndroidProjectDemo | /app/src/main/java/com/fivefivelike/androidprojectdemo/mvp/delegate/RollViewDelegate.java | UTF-8 | 601 | 1.96875 | 2 | [] | no_license | package com.fivefivelike.androidprojectdemo.mvp.delegate;
import android.widget.RelativeLayout;
import com.fivefivelike.androidprojectdemo.R;
import com.fivefivelike.mybaselibrary.base.BaseDelegate;
/**
* Created by liugongce on 2017/7/28.
*/
public class RollViewDelegate extends BaseDelegate {
public Relativ... | true |
5b79637495fb816e99b11f57230494c980965399 | Java | awwsnappitsrob24/Anacodiam | /app/src/main/java/edu/csulb/rob/anacodiam/Activities/API/AuthenticationService.java | UTF-8 | 500 | 1.929688 | 2 | [] | no_license | package edu.csulb.rob.anacodiam.Activities.API;
import com.google.gson.JsonElement;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.Call;
import retrofit2.http.POST;
public interface AuthenticationService {
@POST("rest-auth/login/")
Call<JsonElement> signin(@Body RequestBody body);
... | true |
f0fe03c465ee759cd8fa551847e48175c8df8484 | Java | my-code-hub/rcs-java-pre-bootcamp | /src/lv/rcs/prebootcamp/lesson16/Person.java | UTF-8 | 134 | 2.125 | 2 | [] | no_license | package lv.rcs.prebootcamp.lesson16;
class Person {
private String name;
public Person() {
name = "Janis";
}
}
| true |
90ccd0d790e113be2ceca8fbeba3b774311cf69b | Java | tanbinh123/movie-service | /netflixclone-team1/src/main/java/com/netflixcloneteam1/model/Latest.java | UTF-8 | 1,325 | 2.03125 | 2 | [] | no_license |
package com.netflixcloneteam1.model;
import java.util.List;
public class Latest {
private Object backdropPath;
private List<Object> genres = null;
private Integer id;
private String overview;
private Integer runtime;
private String title;
private Boolean video;
public Object getBackd... | true |
43c3e3e4c62c0d0cc3b543c5e29cecc782fd2d4a | Java | dmitrybilyk/interviews | /src/main/java/com/learn/patterns/behavioral/trainings/strategy/CountWithDiscountStrategy.java | UTF-8 | 225 | 2.453125 | 2 | [] | no_license | package com.learn.patterns.behavioral.trainings.strategy;
/**
* Created by dmitry on 16.01.17.
*/
public class CountWithDiscountStrategy implements CountSumStrategy{
@Override
public int count() {
return 50;
}
}
| true |
2ca5e03a136a25ff6aa4754bdd2be7954ca53016 | Java | ipb-halle/CRIMSy | /ui/src/test/java/de/ipb_halle/lbac/material/biomaterial/TaxonomyHistoryControllerTest.java | UTF-8 | 6,038 | 1.554688 | 2 | [
"Apache-2.0"
] | permissive | /*
* Cloud Resource & Information Management System (CRIMSy)
* Copyright 2020 Leibniz-Institut f. Pflanzenbiochemie
*
* 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.... | true |
765c7c9bb6b56157bb1d6fa2078204c92708f746 | Java | UCR-Paraiso-Lenguajes/Lenguajes-1-12019 | /B54187/Tareas/Tarea 4/src/main/java/com/videoparaiso/renting/domain/EstadoRentada.java | UTF-8 | 171 | 2 | 2 | [] | no_license | package com.videoparaiso.renting.domain;
public class EstadoRentada implements EstadoPelicula{
@Override
public String Estado() {
return "Rentada con éxito.";
}
} | true |
aed85fe18a3142489166fc7d959954dc777b4d04 | Java | Mararsh/MyBox | /alpha/MyBox/src/main/java/mara/mybox/bufferedimage/AlphaTools.java | UTF-8 | 13,287 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | package mara.mybox.bufferedimage;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import mara.mybox.data.DoubleRectangle;
import mara.mybox.dev.MyBoxLog;
import mara.mybox.value.AppVariables;
import mara.mybox.value.Colors;
import mara.mybox.value.FileExtensions;
/**
* @Author... | true |
c62fb4fde79665d74ddf14589a0fe5cf2039e877 | Java | hoditac068/LucianMS | /lucian-channel/src/com/lucianms/features/controllers/HotPotatoController.java | UTF-8 | 6,083 | 2.46875 | 2 | [] | no_license | package com.lucianms.features.controllers;
import com.lucianms.client.MapleCharacter;
import com.lucianms.client.MapleDisease;
import com.lucianms.events.PlayerMoveEvent;
import com.lucianms.features.GenericEvent;
import com.lucianms.lang.annotation.PacketWorker;
import com.lucianms.scheduler.Task;
import com.lucianms... | true |
15619120073a5692d11144e4dcecf4f9d1467c98 | Java | powerex/MPIUsed | /src/main/java/com/mathpar/students/llp2/student/helloworldmpi/start.java | UTF-8 | 4,227 | 2.640625 | 3 | [] | no_license | package com.mathpar.students.llp2.student.helloworldmpi;
import com.mathpar.number.Ring;
import com.mathpar.number.NumberZp32;
import java.util.Random;
import com.mathpar.matrix.MatrixS;
import mpi.*;
/**
*
* @author andy
* mpirun C java -cp /home/student/parca389edu/build/classes/ -Djava.library.path=$LD_LIBRARY_... | true |
d3445519f82bcc39d7a34ee8e2e224eab822c68d | Java | khj1/java-datastructure-study | /src/main/java/com/example/datastructure/linkedlist/MyDoubleLinkedList.java | UTF-8 | 3,840 | 3.640625 | 4 | [] | no_license | package com.example.datastructure.linkedlist;
public class MyDoubleLinkedList<T> {
private Node<T> head;
private Node<T> tail;
public void addBefore(T newData, T beforeData) {
if (head == null) {
head = new Node<>(newData);
tail = head;
} else if (head.data == befo... | true |
4fd594c88c29bbf2a927fc3926960c6bb96cccab | Java | corinnherrick/NovelAnalyzer | /src/main/java/personal/herrickc/novelanalyzer/NERTagger.java | UTF-8 | 3,922 | 2.25 | 2 | [] | no_license | package personal.herrickc.novelanalyzer;
import edu.stanford.nlp.ie.AbstractSequenceClassifier;
import edu.stanford.nlp.ling.CoreAnnotations;
import edu.stanford.nlp.ling.CoreLabel;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.lang3.tuple.Pair;
import java.io.IOException;
import jav... | true |
a9a2a1d54844027b5cb956e745168f51962ddae7 | Java | KorAP/Krill | /src/main/java/de/ids_mannheim/korap/util/StatusCodes.java | UTF-8 | 4,481 | 1.632813 | 2 | [
"BSD-2-Clause",
"EPL-1.0"
] | permissive | package de.ids_mannheim.korap.util;
public class StatusCodes {
// 600 - 699 - Krill server error codes
public static final int UNABLE_TO_READ_INDEX = 600;
public static final int UNABLE_TO_FIND_INDEX = 601;
public static final int UNABLE_TO_ADD_DOC_TO_INDEX = 602;
public static final int UNABLE_TP_... | true |
acefa1619634538225916a1da023f6f69065538f | Java | niveditaaa/TestingApplication | /Internal/src/test/java/VerifyHomePage.java | UTF-8 | 1,542 | 1.914063 | 2 | [] | no_license | import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.support.ui.Select;
import org.testng.Assert;
import GlobalMethodPack.GlobalMeth... | true |
214edc19bd6c03de180080e13c08b54eae1c0579 | Java | itsmasud/testFlagCountry | /projects/FieldNation/fieldnation/src/main/java/com/fieldnation/v2/ui/dialog/PenaltyListDialog.java | UTF-8 | 4,927 | 1.679688 | 2 | [] | no_license | package com.fieldnation.v2.ui.dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.view.menu.ActionMenuItemView;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.Toolbar;
import android.view.LayoutInflater;
import android.view.View;
import an... | true |
6f3da4a7b8806db6ec7dc2cd3b80afd53dd549bc | Java | darya1380/SedaVSSima | /app/src/main/java/com/group/sedavssima/logic/Channel.java | UTF-8 | 1,221 | 2.9375 | 3 | [] | no_license | package com.group.sedavssima.logic;
public class Channel
{
private final String name;
private ChannelManager channelManager;
private TimeTable timeTable;
private int usualAdsPrice;
private int specialAdsPrice;
public Channel(String name) {
this.name = name;
this.timeTable = new... | true |
a3d18e7137af24a55be52203802fff1c8f654e81 | Java | 13327955131/hafuzhu | /src/main/java/com/hoostec/hfz/dao/HfzProfitRecordMapper.java | UTF-8 | 1,015 | 1.796875 | 2 | [] | no_license | package com.hoostec.hfz.dao;
import com.hoostec.hfz.entity.HfzProfitRecord;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface HfzProfitRecordMapper {
/**
* 批量查询 (分页)
*
* @param obj
* @return
*/
List<HfzProfitRecord> selectAll(HfzProfitRecord ... | true |
4c67f6f4ada5145d78b6e9ec2208f0feed16b812 | Java | Dyleaf/DesignPattern | /src/com/dyleaf/create/FactoryMethodPattern/Factory.java | UTF-8 | 145 | 2.375 | 2 | [] | no_license | package com.dyleaf.create.FactoryMethodPattern;
// 抽象工厂类
public abstract class Factory {
public abstract Product createProduct();
} | true |
d16a52ae269904104b18351196c876a5c1e4d1d7 | Java | lihaijun123/furniture-oss | /furniture-oss-core/src/main/java/com/focustech/oss2008/exception/service/MailSendErrorException.java | UTF-8 | 856 | 1.90625 | 2 | [] | no_license | package com.focustech.oss2008.exception.service;
import com.focustech.oss2008.exception.OssCheckedException;
/**
* <li></li>
*
* @author yangpeng 2008-11-2 下午09:45:43
*/
public class MailSendErrorException extends OssCheckedException {
/***/
private static final long serialVersionUID = -287611866999634541... | true |
f69f2e4f694d76e0f35145cafe42cf70588f40dd | Java | On-time/On-time-on-Android | /app/src/main/java/net/aliveplex/alive/on_timeonandroid/Message/CheckingMessage.java | UTF-8 | 674 | 2.234375 | 2 | [] | no_license | package net.aliveplex.alive.on_timeonandroid.Message;
/**
* Created by Aliveplex on 1/2/2560.
*/
public class CheckingMessage {
public CheckingStudent[] getStudents() {
return students;
}
public String getSubjectId() {
return subjectId;
}
public int getSubjectSection() {
... | true |
e09d5559cc140b2a62700309ea833b18418d1e72 | Java | chenjiangtao/gateway-pack | /src/main/java/net/zoneland/gateway/comm/sgip/message/SGIPReportMessage.java | UTF-8 | 3,213 | 2.171875 | 2 | [] | no_license | package net.zoneland.gateway.comm.sgip.message;
import net.zoneland.gateway.comm.sgip.SGIPConstant;
import net.zoneland.gateway.util.TypeConvert;
public class SGIPReportMessage extends SGIPMessage {
public SGIPReportMessage(byte buf[]) throws IllegalArgumentException {
super.buf = new byte[56];
i... | true |
a2aa024be9100249c6d05fe3adcfe5696b61148e | Java | slav9nin/ThrottlingService | /src/main/java/com/secretcompany/service/ThrottlingService.java | UTF-8 | 676 | 2.6875 | 3 | [] | no_license | package com.secretcompany.service;
/**
* Concerns regarding ThrottlingService. How we determine User if token is null? We cannot do it.
* If method signature for (isRequestAllowed) cannot be changed -> all we can it's:
* restrict RPS for all unauthorized users(w/o tokens).
* For ex.: If GuestRPS == 20 and 21... | true |
0e8d936fedc21496ac23fb897ebd6a6d6ef5bf82 | Java | fharms/10-opensource-frameworks-in-one-hour | /camel/src/main/java/dk/presentation/camel/order/route/PlaceOrderRestRoute.java | UTF-8 | 1,247 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package dk.presentation.camel.order.route;
import dk.presentation.camel.order.mapper.OrderEntityOrderDTOMapper;
import dk.presentation.camel.order.model.Order;
import lombok.extern.slf4j.Slf4j;
import org.apache.camel.Exchange;
import org.apache.camel.LoggingLevel;
import org.apache.camel.spring.SpringRouteBuilder;
im... | true |
3689ec3a4680f6f356a75effc565bb0acc07b91a | Java | EmilRais/thesis-delta-api-original-dependency | /src/test/java/dk/developer/glass/processors/GlassSpecifierProcessorTest.java | UTF-8 | 5,292 | 2.3125 | 2 | [] | no_license | package dk.developer.glass.processors;
import com.google.testing.compile.CompileTester;
import dk.developer.glass.Exclude;
import dk.developer.glass.ExcludeAll;
import dk.developer.glass.Include;
import dk.developer.glass.IncludeAll;
import org.testng.annotations.Test;
import javax.tools.JavaFileObject;
import stati... | true |
8609fef59c9049c6dcff2726ecaedf28b4abd767 | Java | GalyGiGi/EfectiveJava | /EffectJava/app/src/main/java/cn/com/lbb/effectjava/SerializeAttack/Attacker.java | UTF-8 | 3,251 | 3 | 3 | [] | no_license | package cn.com.lbb.effectjava.SerializeAttack;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.Arrays;
import java.util.Date;
import cn.com.lbb.effec... | true |
5143c0d1f968163374f438cef5db93af24a7b377 | Java | Refactula/1MLoC | /DesignPatterns/src/main/java/refactula/design/patterns/behavioral/template_method/FileCounterApp.java | UTF-8 | 2,132 | 3.125 | 3 | [] | no_license | package refactula.design.patterns.behavioral.template_method;
import com.google.common.io.Files;
import java.io.File;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.nio.charset.StandardCharsets;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public c... | true |
cd38006ef52afecf448306b1adf54acc3fcef73b | Java | estebanroblesluna/abstractions | /modules/actions-editor/src/main/java/com/abstractions/web/File.java | UTF-8 | 443 | 2.5 | 2 | [] | no_license | package com.abstractions.web;
public class File {
private String name;
private boolean editable;
public File(String name, boolean editable) {
this.setName(name);
this.setEditable(editable);
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public bo... | true |
a33ee5896c078389027deb6e63aeedc90e8c9459 | Java | mdaraujo/CMUP_Indoor-Matching | /IndoorMatching/indoorconfig/src/main/java/com/mdaraujo/indoorconfig/BeaconConfigActivity.java | UTF-8 | 7,015 | 2.015625 | 2 | [] | no_license | package com.mdaraujo.indoorconfig;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.ColorInt;
import android.support.annotation.NonNull;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
imp... | true |
2b6cddaa6467f880f837da829e174da45599c309 | Java | IlyaSamoylov45/Coding-Challenges-and-Exercises | /Leetcode/Done/126_Word_Ladder_II.java | UTF-8 | 4,535 | 3.078125 | 3 | [] | no_license | // A transformation sequence from word beginWord to word endWord using a dictionary wordList is a sequence of words beginWord -> s1 -> s2 -> ... -> sk such that:
//
// Every adjacent pair of words differs by a single letter.
// Every si for 1 <= i <= k is in wordList. Note that beginWord does not need to be in wordList... | true |
099eb8bf251511055ebc232bb3af104eeb35ba90 | Java | pdeitel/Java9ForProgrammers | /examples/ch20/DrawStars/DrawStarsController.java | UTF-8 | 2,421 | 3.078125 | 3 | [] | no_license | // DrawStarsController.java
// Create a circle of stars using Polygons and Rotate transforms.
import java.security.SecureRandom;
import javafx.fxml.FXML;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import javafx.scene.shape.Polygon;
import javafx.scene.transform.Transform;
public class DrawStarsC... | true |
0336128fd4745d9e4dd1186e6a5dbed1ae9f1ffc | Java | ekochnev/pla | /src/test/java/com/pla/grouplife/quotation/domain/service/QuotationRoleAdapterTest.java | UTF-8 | 2,116 | 2.0625 | 2 | [] | no_license | package com.pla.grouplife.quotation.domain.service;
import com.google.common.collect.Lists;
import com.pla.grouplife.quotation.domain.model.GLQuotationProcessor;
import com.pla.sharedkernel.util.RolesUtil;
import org.junit.Before;
import org.junit.Test;
import org.nthdimenzion.security.service.UserLoginDetailDto;
impo... | true |
b37aefa487acadcaf62f53df728ba228533b6e43 | Java | Sindusk/TreasureHunting | /src/main/java/com/pveplands/treasurehunting/TeleportToTreasureAction.java | UTF-8 | 2,816 | 2.578125 | 3 | [
"Unlicense"
] | permissive | package com.pveplands.treasurehunting;
import com.wurmonline.server.behaviours.Action;
import com.wurmonline.server.behaviours.ActionEntry;
import com.wurmonline.server.creatures.Creature;
import com.wurmonline.server.items.Item;
import com.wurmonline.server.zones.Zones;
import org.gotti.wurmunlimited.modsupport.actio... | true |
837514fa4182dd57bcc3ca556e0eb23e7f2aefaa | Java | TugayIpek/Hashtag-Analyzer | /app/src/main/java/com/example/analytag/TagCollection.java | UTF-8 | 1,475 | 2.875 | 3 | [] | no_license | package com.example.analytag;
import java.util.ArrayList;
import io.realm.RealmList;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
import io.realm.annotations.RealmClass;
@RealmClass
public class TagCollection extends RealmObject {
private String title;
private RealmList<String> tags;
publ... | true |
d61bfc1d779cd835443bfe818f3386977c0f9f12 | Java | shiva404/namma-bmtc-backend-mongo | /src/main/java/com/intuit/client/BusRoute.java | UTF-8 | 1,431 | 2.71875 | 3 | [] | no_license | package com.intuit.client;
import com.intuit.types.Location;
import java.util.Random;
import static com.intuit.client.ClientDaoImpl.CO_ORDINATES;
/**
*
*/
public class BusRoute implements Runnable {
private ClientDaoImpl clientDaoImpl;
private long delay ;
private Location location;
public BusRout... | true |
66c4186795ba4ac1acec3f68bf1c66722a3287fd | Java | TPE-exercises/repo23 | /src/de/hsMannheim/informatik/tpe/ss17/gruppe23/uebung04/aufgabe2/QuicksortParallelTest.java | UTF-8 | 3,366 | 2.9375 | 3 | [] | no_license | package de.hsMannheim.informatik.tpe.ss17.gruppe23.uebung04.aufgabe2;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
/**
* Gruppe 2-3:
* @author Max Granzow(1624770)
* @author Joshua Joost(1626034)
*/
public class QuicksortParallelTest {
QuicksortParal... | true |
675e2c6328b7fccceee355f960dd318c0550ca0f | Java | rakibchp/Cafe-Management-System | /src/cafe/management/system/ForgotPassword.java | UTF-8 | 15,423 | 2.125 | 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 cafe.management.system;
import dao.UserDao;
import javax.swing.JOptionPane;
import model.User;
/**
*
* @author Asus
*/
pub... | true |
6dda98eeefc9d2719f44a6aecc019b4498e6d06f | Java | sathyaprakash123/micro-config | /RandomStudy/src/com/RandomExer/threadtest.java | UTF-8 | 331 | 2.671875 | 3 | [] | no_license | package com.RandomExer;
public class threadtest extends Thread{
public void run() {
System.out.println("Thread Started. Thread Name = " + Thread.currentThread());
}
public static void main(String args[])
{
threadtest t1 = new threadtest();
t1.setName("sathya");
t1.start();
... | true |
9b1a8365603256df0879ab5de8cc7483d269b07c | Java | JoeYichong/marshmallow | /mm-scraper/src/main/java/yich/base/selenium/webdriver/FirefoxDriverProvider.java | UTF-8 | 391 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package yich.base.selenium.webdriver;
public class FirefoxDriverProvider extends AbsDriverProvider {
public FirefoxDriverProvider() {
super();
}
public FirefoxDriverProvider(boolean headless) {
super();
setHeadless(headless);
}
@Override
protected void getDriver0() {
... | true |
1d212b28d12c01c476e546890cef88b7ea61b742 | Java | masachi/self-springmvc-demo | /src/main/java/com/masachi/dao/UserDao.java | UTF-8 | 240 | 1.8125 | 2 | [] | no_license | package com.masachi.dao;
import com.masachi.model.ResponseCode;
import java.sql.SQLException;
/**
* Created by masachi on 2017/7/13.
*/
public interface UserDao {
public ResponseCode findUserByName(String name, String password);
}
| true |
f1ea7e44d44f6d57b1a055b973db7645faee09a3 | Java | ardabakan/popularjs | /popularjs/src/test/java/popularjs/PopularJSTest.java | UTF-8 | 2,689 | 2.734375 | 3 | [] | no_license | package popularjs;
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import org.junit.Test;
import popularjs.model.HtmlLink;
import popularjs.utility.LinkExtractor;
public class PopularJSTest {
@Test
public void readT... | true |
a41d9752d3837718ef2b33739821a4ccafda45fe | Java | k-may/GestureDraw | /src/application/interaction/KinectInputData.java | UTF-8 | 2,677 | 2.546875 | 3 | [] | no_license | package application.interaction;
import static application.interaction.InteractionHelper.ease;
import processing.core.PVector;
import application.interaction.processing.RegionInputData;
import application.view.MainView;
public abstract class KinectInputData extends RegionInputData {
public KinectInputData(ICursorHa... | true |
3995d5f1a0d7382ecc9be27fa80bfbbc5e0b9f74 | Java | roxanacruceanu/sysout | /hamcrest/src/test/java/ru/javalang/hamcrest/HamcrestCollectionsTest.java | UTF-8 | 2,472 | 2.84375 | 3 | [] | no_license | package ru.javalang.hamcrest;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.junit.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
import static org.hamcrest.collection.IsCollectionWithSize.hasSize;
import ... | true |
02a2c7707588abc0e6c06eb8991e73d2a4260d2a | Java | rexlNico/OldJavaProjects | /Lobby Plugin/src/de/rexlNico/lobby/Listeners/Quit.java | UTF-8 | 283 | 1.90625 | 2 | [] | no_license | package de.rexlNico.lobby.Listeners;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerQuitEvent;
public class Quit implements Listener{
@EventHandler
public void on(PlayerQuitEvent e){
e.setQuitMessage(null);
}
}
| true |
d39f9e42fa6a0b662a7911c024280f18176e52d0 | Java | Aurrix/cryptoharvester | /src/main/java/com/finplant/cryptoharvester/cryptoharvester/services/SyntheticService.java | UTF-8 | 3,610 | 2.765625 | 3 | [
"Apache-2.0"
] | permissive | package com.finplant.cryptoharvester.cryptoharvester.services;
import com.finplant.cryptoharvester.cryptoharvester.entities.Quote;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import or... | true |
c76257cd7b558828edda87fbe01e80f8f7d8f8ec | Java | keelsjo/rage-of-wildfire | /Fall2015/CSCI230/FinalProject/CSCI230_FinalProject/src/csci230_finalproject/OpenHashing.java | UTF-8 | 2,176 | 3.140625 | 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 csci230_finalproject;
import java.util.ArrayList;
/**
*
* @author Home
* @param <AnyType>
*/
public class OpenHashing<... | true |
6c5147ac5695a3c8dcd7934380344ac038a7bbc4 | Java | Palaxer/housing-service | /src/main/java/org/palax/dao/WorkTypeDao.java | UTF-8 | 1,782 | 2.40625 | 2 | [] | no_license | package org.palax.dao;
import org.palax.entity.WorkType;
import java.util.List;
/**
* The {@code WorkTypeDao} interface for ORM database entity {@link WorkType}
*
* @author Taras Palashynskyy
*/
public interface WorkTypeDao {
/**
* Method to get all {@link WorkType}
*
* @return return {@link ... | true |
bd0aa4e8c8731bf43a8f5a57922fe56b10dd6d8d | Java | xuxin511/EWMS | /module_transform/src/main/java/xx/com/module_transform/Trans.java | UTF-8 | 731 | 1.578125 | 2 | [] | no_license | package xx.com.module_transform;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.xx.chinetek.chineteklib.base.BaseActivity;
import com.xx.chinetek.chineteklib.base.BaseApplication;
import com.xx.chinetek.chineteklib.base.ToolBarTitle;
import xx.com.lib_common.Common_Model.Action.MainActions;
... | true |
853fd579c3c275239cc01df8e6026a98592cfe52 | Java | Yobin123/POCCms | /app/src/main/java/com/st/cms/activity/FaceDetectActivity.java | UTF-8 | 6,557 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | package com.st.cms.activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.widget.Toast;
import com.squareup.okhttp.Callback;
import com.squareup.okhttp.Request;
import com.squareup.okht... | true |
9e96bdfaee4f19f07bc74ba6e6690e95286ce327 | Java | thisisminh172/Aptech | /sem2/ADF-I/java-1/Ass8/src/goods/Laptop.java | UTF-8 | 1,794 | 3.140625 | 3 | [] | no_license |
package goods;
import java.util.Scanner;
public class Laptop extends Computer {
public String webcam;
public int Qoh;
public Laptop(){
super();
}
public Laptop(String id, String name, int price,String webcam, int Qoh) {
super(id,name,price);
this.webcam = webcam;
... | true |
bd5e27c9f5b37ab9bf76bf4769edf56cc79091f8 | Java | NONO9527/gomk-b-search | /src/main/java/io/gomk/service/impl/ShzjProductpriceNewServiceImpl.java | UTF-8 | 1,262 | 1.789063 | 2 | [] | no_license | package io.gomk.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.gomk.model.entity.ShzjProductpriceNew;
import io.gomk.mapper.ShzjProductpriceNewMapper;
import io.gomk.service.ShzjProductpriceNewService;
import com.ba... | true |
afd00925b028d9785c249a0ebe9ffaa4dd57a1cd | Java | keycloak/keycloak | /services/src/main/java/org/keycloak/services/resources/account/resources/ResourceService.java | UTF-8 | 10,087 | 1.796875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2022 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apach... | true |
a15b715be03d3ac4a3074a08ce17432efbcd4380 | Java | PatrickVibild/TreasureQuest | /LevelScreen.java | UTF-8 | 1,371 | 2.515625 | 3 | [] | no_license | import com.badlogic.gdx.maps.MapObject;
import com.badlogic.gdx.maps.MapProperties;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input.Keys;
public class LevelScreen extends BaseScreen
{
Hero hero;
public void initialize()
{
TilemapActor tma = new TilemapActor("assets/map.tmx", mainStage)... | true |
bb1b81b24c4adcdc864a9308fa930de25e9e4cae | Java | meshkat632/elasticsearch-autocomplete | /src/elastic-client/src/main/java/org/example/xml/stream/XmlStreamReader.java | UTF-8 | 6,477 | 2.859375 | 3 | [] | no_license | package org.example.xml.stream;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
import java.util.stream.Stream;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamReader;... | true |
ba948c9fdb144f5a7b422d0354e9fc3425a58ac2 | Java | mfayaq/url-shortener | /src/main/java/com/fyq/urlshortener/service/ShrinkService.java | UTF-8 | 1,429 | 2.640625 | 3 | [] | no_license | package com.fyq.urlshortener.service;
import com.fyq.urlshortener.model.Counter;
import com.fyq.urlshortener.model.ShrunkUrl;
import com.fyq.urlshortener.repository.ShrinkRepository;
import org.springframework.stereotype.Service;
import java.time.Instant;
import java.util.Optional;
@Service
public class ShrinkServic... | true |
d6181472d9e104c165a6128cbb20aa004521de32 | Java | YucaiTeam/YucaiAdmin | /YucaiAdmin/src/main/java/com/hyg/yucai/service/TNewsService.java | UTF-8 | 1,124 | 1.976563 | 2 | [] | no_license | package com.hyg.yucai.service;
import java.util.List;
import com.hyg.yucai.model.TNews;
import com.hyg.yucai.model.TNewsCustom;
public interface TNewsService {
public List<TNews> selectByExampleWithBLOBs() throws Exception;
///多个表查所有news
public List<TNewsCustom> findAllNews(TNewsCustom newsCusto... | true |
aa5b7d46d358dc9984e60f836015b2433c17c50c | Java | saphyron/randomstuff | /Java/Semester 1 usorteret/Lektion02_Opgave2/src/opgave03/E1_1.java | UTF-8 | 359 | 3.015625 | 3 | [] | no_license | package opgave03;
public class E1_1 {
public static void main(String[] args) {
// Auto-generated method stub
int number = 27;
System.out.println("Goddag 19V");
System.out.println("Idag skal vi udregne simpel matematik.");
System.out.println("X=27");
System.out.println("27X + 15 = "+ (27*number+15));
... | true |
67e72ddaf0ed5258a0c0ba698f31ada8f3c9260d | Java | ebozkurt93/Favor-Android-App | /app/src/main/java/android/ebozkurt/com/favor/EditProfileActivity.java | UTF-8 | 9,057 | 2.125 | 2 | [] | no_license | package android.ebozkurt.com.favor;
import android.content.Context;
import android.content.Intent;
import android.ebozkurt.com.favor.helpers.ActivityHelper;
import android.ebozkurt.com.favor.helpers.DividerItemDecoration;
import android.graphics.drawable.Drawable;
import android.support.v7.app.AppCompatActivity;
impor... | true |
0dee2da3604ce7b79965ead99a5aa94a99773fcf | Java | pmichna/citygame | /app/Global.java | UTF-8 | 1,003 | 2 | 2 | [] | no_license |
import controllers.GameController;
import controllers.routes;
import models.GAME_STATUS;
import models.Game;
import models.User;
import play.*;
import play.libs.F.*;
import play.mvc.Http.*;
import play.mvc.*;
import play.mvc.Controller;
import static play.mvc.Results.*;
public class Global extends GlobalSettings {
... | true |
b67763751b0bdb578ba7dd909638284f20579c91 | Java | HyangKeunChoi/javacafe-oop | /src/main/java/oop/etc/classes/포유류.java | UTF-8 | 253 | 2.359375 | 2 | [] | no_license | package oop.etc.classes;
class 포유류 extends 동물 {
//final class 포유류 extends 동물 {
public 포유류() {
this.className = "포유류";
}
final void 숨쉬다() {
System.out.println("숨을 쉰다.");
}
}
| true |
f483ff4bc67c6cda9a079e07d6e97f8f6c9bb732 | Java | karjunan/designPatterns | /src/main/java/chainOfResponsibility/NegativeHandler.java | UTF-8 | 551 | 2.90625 | 3 | [] | no_license | package chainOfResponsibility;
public class NegativeHandler implements Handler {
private Handler handler;
public NegativeHandler() {
}
@Override
public void setClient(Handler handler) {
this.handler = handler;
}
@Override
public void execute(Request data) {
if(data.... | true |
e7cff918188d18e4b7e5daa5069c7bee15dce390 | Java | moutainhigh/driver | /common/src/main/java/com/easymi/common/widget/MakeOrderPopWindow.java | UTF-8 | 6,183 | 2.078125 | 2 | [] | no_license | package com.easymi.common.widget;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.ColorDrawable;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
import android.view.Gravity;
import android.vie... | true |
cc57435522a7e59edc94c9abb347d87f6710e2c5 | Java | malikmarshall/SHM-2017 | /src/smart/home/security/view/RemoveDevicePanel.java | UTF-8 | 6,223 | 2.578125 | 3 | [] | no_license | package smart.home.security.view;
import java.util.List;
import javax.swing.JOptionPane;
import javax.swing.SwingUtilities;
import javax.swing.table.DefaultTableModel;
import smart.home.security.model.Device;
import smart.home.security.model.Devices;
import smart.home.security.utilities.DeviceSocketManager;
import sma... | true |
07a8919bcc4adf5f477d05c20a84a4b9830cb284 | Java | wangjianwei07/MyApplication | /app/src/main/java/com/example/wangjianwei/myapplication/MainActivity.java | UTF-8 | 2,726 | 2.140625 | 2 | [] | no_license | package com.example.wangjianwei.myapplication;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TabHost;
import android.widget.TextView;
im... | true |
bdb6d0d94a9f3fc220858559536025fb68774e8b | Java | zzj180/colink | /GUI_mtk/src/com/unisound/unicar/gui/view/AMapPoiAroundSearchView.java | UTF-8 | 20,876 | 1.671875 | 2 | [] | no_license | /**
* Copyright (c) 2012-2015 Beijing Unisound Information Technology Co., Ltd. All right reserved.
*
* @FileName : AMapPoiAroundSearchView.java
* @ProjectName : uniCarSolution_dev_xd_20151010
* @PakageName : com.unisound.unicar.gui.view
* @version : 1.1
* @Author : Xiaodong.He
* @CreateDate : 2015-10-21
*/
p... | true |
d63f32176518cf93952f3be896fd13df42746df0 | Java | rori4/jdbc_intro | /src/entity/manager/EntityManager.java | UTF-8 | 4,760 | 3.125 | 3 | [] | no_license | package entity.manager;
import connection.ConnectionManager;
import java.lang.reflect.Field;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.time.LocalDate;
public class EntityManager implements DBContext {
private Connection conn;
public EntityManage... | true |
f0124d2d2566d120d36dc9a695ed960b14bb0ef5 | Java | mfiuzajunior/CORBAGuarda | /idl/br/edu/ifce/mflj/museu/Sino/ISinoHelper.java | UTF-8 | 2,605 | 2.09375 | 2 | [] | no_license | package br.edu.ifce.mflj.museu.Sino;
/**
* br/edu/ifce/mflj/museu/Sino/ISinoHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from Sino.idl
* Tuesday, May 3, 2016 7:20:36 AM BRT
*/
abstract public class ISinoHelper
{
private static String _id = "IDL:br/edu/ifce/mflj/museu/Sino/ISin... | true |
fe8b0a61f99edac36876ddb439ce094d092f0858 | Java | calou/classifier4j7 | /core/src/test/java/net/sf/classifier4j7/vector/VectorClassifierTest.java | UTF-8 | 1,994 | 2.703125 | 3 | [] | no_license |
package net.sf.classifier4j7.vector;
import net.sf.classifier4j7.ClassifierException;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.*;
public class VectorClassifierTest {
private String sentence1 = "hello there is this a long sentence yes it is... | true |
be03214c77fc428064d6ef2110f0e1a57d1bf7f6 | Java | Gianlcc/simulador-loja | /src/produtos/Partileira.java | UTF-8 | 2,451 | 3.21875 | 3 | [] | no_license | package produtos;
import java.util.ArrayList;
import java.util.List;
public class Partileira {
List<Produto> produtos = new ArrayList();
public Partileira() {
this.produtos.add(new Produto(
"Escova de dente",
"Para escovar os dentes",
3.99f,
... | true |
fe159b981233759064251ac9b0038612d53d3898 | Java | scarletstuff/Turbogram | /sources/org/telegram/tgnet/TLRPC$TL_secureValueError.java | UTF-8 | 773 | 1.960938 | 2 | [] | no_license | package org.telegram.tgnet;
public class TLRPC$TL_secureValueError extends TLRPC$SecureValueError {
public static int constructor = -2036501105;
public byte[] hash;
public String text;
public TLRPC$SecureValueType type;
public void readParams(AbstractSerializedData stream, boolean exception) {
... | true |
95d82eef085065677314a4ae93205241627ae2ff | Java | DanielMaly/scheme-truffle | /src/main/java/net/danielmaly/scheme/eval/logical/Cond.java | UTF-8 | 822 | 2.421875 | 2 | [
"MIT"
] | permissive | package net.danielmaly.scheme.eval.logical;
import com.oracle.truffle.api.frame.VirtualFrame;
import net.danielmaly.scheme.eval.SchemeExpression;
import net.danielmaly.scheme.types.NilValue;
public class Cond extends SchemeExpression {
@Children private final CondClause[] clauses;
@Child private SchemeExpres... | true |
1b34592c758c0d3dd88e008c46abe71314272910 | Java | TrollcraftDevelopers/Creative | /src/main/java/pl/trollcraft/creative/shops/CategoriesShop.java | UTF-8 | 2,195 | 2.515625 | 3 | [] | no_license | package pl.trollcraft.creative.shops;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import pl.trollcraft.creative.Creative;
import pl.trollcraft.creative.core.gui.GUI;
import pl.trollcraft.creative.core.gui.GUIManager;
import pl.trollcraft.creative.core.help.Colors... | true |
92143c8bdb1211610be3a5ebe124d39d1904e65c | Java | ultradns/java_rest_api_client | /src/main/java/com/ultradns/ultra/rest/dto/SystemPreferences.java | UTF-8 | 1,940 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | package com.ultradns.ultra.rest.dto;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.google.common.base.MoreObjects;
import com.google.common.base.Objects;
@JsonInclude(Include.NON_NULL)
public class SystemPreferences {
/**
* True ... | true |
2c9dce03186d8ad532db98b519cc0bdd3853649f | Java | allenyll/system-web | /system-web-auth/src/main/java/com/sw/auth/aspect/LogAspect.java | UTF-8 | 3,609 | 2.140625 | 2 | [] | no_license | package com.sw.auth.aspect;
import com.sw.auth.annotation.Log;
import com.sw.auth.service.impl.LogServiceImpl;
import com.sw.cache.service.IRedisService;
import com.sw.common.util.*;
import net.sf.json.JSONObject;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspect... | true |
85fe5ee6480cafaad23a901c36fa6acad9225f80 | Java | Laboulaye/rest-web-service-task | /src/main/java/com/study/restwebservicetask/controller/SearchController.java | UTF-8 | 1,235 | 2.265625 | 2 | [] | no_license | package com.study.restwebservicetask.controller;
import com.study.restwebservicetask.dao.SearchDao;
import com.study.restwebservicetask.model.Contact;
import com.study.restwebservicetask.model.User;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.fac... | true |
c25123072704415fa71ff19fe147855e702782f6 | Java | sunzibin3/finalwork | /src/main/java/com/sun/finalwork/pojo/ClassInfo.java | UTF-8 | 624 | 2.140625 | 2 | [] | no_license | package com.sun.finalwork.pojo;
public class ClassInfo {
/**
* id
*/
private Integer id;
/**
* 班级名
*/
private String classname;
private String deptId;
public String getDeptId() {
return deptId;
}
public void setDeptId(String deptId) {
this.deptId ... | true |
ad424d44e8ed08b706f64f3f70399dc0353e697f | Java | JanGrosse/Firoozbakth | /src/main/Firoozbakht/IFiroozbakht.java | UTF-8 | 211 | 1.851563 | 2 | [] | no_license | package main.Firoozbakht;
import java.util.ArrayList;
public interface IFiroozbakht {
public void processPrimes();
public void checkFalsify();
public ArrayList<String> getFiroozbakhtResults();
}
| true |
091fa84bd8be876bb85af3dc6d0f3ab067569919 | Java | n3sh-source/Desenvolvimento-para-Servidores-I | /aula05/heranca2/Cachorro.java | UTF-8 | 195 | 2.828125 | 3 | [] | no_license | package com.si.heranca2;
public class Cachorro extends Animal{
public Cachorro(String nome) {
super(nome);
}
public void latir() {
System.out.println(getNome() + ": AU AU AU");
}
}
| true |
e20b6774ac4f85a07e1b9e5111e929bf80eb5508 | Java | perfectsense/brightspot-styleguide | /codegen/src/test/java/com/psddev/styleguide/codegen/TestToJavaMethodCase.java | UTF-8 | 6,511 | 2.515625 | 3 | [
"MIT"
] | permissive | package com.psddev.styleguide.codegen;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.List;
imp... | true |
8cc2e2f6a0c78f5de5086db800e4c60468a2a9ca | Java | feiyangwei/DrFileManager | /app/src/main/java/com/drxx/drfilemanager/view/OperationPopupWindow.java | UTF-8 | 4,324 | 2.078125 | 2 | [] | no_license | package com.drxx.drfilemanager.view;
import android.content.ContentResolver;
import android.content.Context;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.support.v4.app.FragmentActivity;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
imp... | true |
ba285dfea2a2a7ca64d40064eb6a2ed2ef5acce3 | Java | UniversityOfRzeszow/zadlab5-kswaczek | /OOPL5/src/main/java/pl/edu/ur/oopl5/Main.java | UTF-8 | 2,359 | 3.890625 | 4 | [] | no_license | package pl.edu.ur.oopl5;
import java.util.Scanner;
import java.util.Stack;
public class Main {
public static void main(String[] args) {
// TODO zad 3, 5, 6
Scanner z = new Scanner(System.in);
System.out.println("Wybierz numer zadania: "
+ "\n1.Działani... | true |