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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4386c5ae7a1ac0e329cec9280d078389150a2b59 | Java | JENNIFER-University/IHotel | /hotel/src/main/java/edu/jennifer/hotel/tasks/DBCleaner.java | UTF-8 | 703 | 2.453125 | 2 | [] | no_license | package edu.jennifer.hotel.tasks;
import edu.jennifer.hotel.util.ConnectionUtil;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.sql.Statement;
/**
* @author Khalid Elshafie
* @Created 9/11/17 2:40 PM.
*/
public class DBCleaner {
Logger logger = LogManager.getRo... | true |
7517f4d21e2f13aae86104fe6759ddf19e0d075b | Java | charroch/chrogeo | /timescape_plugin/src/rewired/state/provider/ImageProvider.java | UTF-8 | 2,001 | 2.359375 | 2 | [] | no_license |
package rewired.state.provider;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.Bitmap.CompressFormat;
import android.net.Uri;
import android.os.ParcelFileDescriptor;
import java.io.File;
import java... | true |
ee3f97a0f752d646e4b515fd210d04dd509105cb | Java | BulkSecurityGeneratorProject/Rock2 | /src/main/java/com/rockbible3/service/Napster/NapsterDTOService.java | UTF-8 | 1,315 | 2.40625 | 2 | [] | no_license | package com.rockbible3.service.Napster;
import com.rockbible3.service.dto.Napster.NapsterTracksDTO;
import com.rockbible3.service.dto.Napster.NapsterArtistsDTO;
import retrofit2.Call;
import java.io.IOException;
public class NapsterDTOService {
public static final String apiKey = "MjM4OWE1MzQtNTUyMy00ODIzLWEyNT... | true |
8130c5bf5a4deda7d081a296f782a71a2fa35b95 | Java | ldurazo/AndroidFinalChallenge | /app/src/main/java/com/example/ldurazo/androidfinalchallenge/AddNoteActivity.java | UTF-8 | 2,706 | 2.421875 | 2 | [] | no_license | package com.example.ldurazo.androidfinalchallenge;
import android.app.Activity;
import android.location.Criteria;
import android.location.Location;
import android.location.LocationManager;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.EditText;
import android.w... | true |
a17c626923da6de08fd10e1e0bbb848eb163d612 | Java | sachin95/SnakeGame | /src/com/example/androidsnakegame/Snake.java | UTF-8 | 8,896 | 3.453125 | 3 | [] | no_license | package com.example.androidsnakegame;
import android.graphics.Point;
import sofia.graphics.Color;
import sofia.graphics.RectangleShape;
/**
* The class represents the entire snake
*
* @author Sachin Yadav (sachin95)
* @version 2014.04.30
*/
public class Snake
{
// --------------------------------------------... | true |
e55542e3326b965e28fb44dc692ead089ea1f8db | Java | PharahPhat/Selenium | /Java/restassured.sandata.interop/src/test/java/AltEVV_Molina/restassured/sandata/Visit/SEVV2858_TC96110_AltEVV_Visit_HoursToBill.java | UTF-8 | 4,469 | 1.640625 | 2 | [] | no_license | package AltEVV_Molina.restassured.sandata.Visit;
/*
@MayankM
OpenEVV-altEVV- Visits- HoursToBill field formats/values
*/
import Utills_ExtentReport_Log4j.BaseTest;
import com.globalMethods.core.CommonMethods;
import com.globalMethods.core.GenerateUniqueParam;
import com.globalMethods.core.globalVariables;
import or... | true |
92bfce55ace04aff1972be9d818d8b9542199c88 | Java | Engelp/CarWashSoftware | /src/main/java/bg/car_wash/areas/activity/service/ActivityService.java | UTF-8 | 1,148 | 2.21875 | 2 | [
"MIT"
] | permissive | package bg.car_wash.areas.activity.service;
import bg.car_wash.areas.activity.entity.Activity;
import bg.car_wash.areas.activity.exceptions.ActivityDBEmptyException;
import bg.car_wash.areas.activity.exceptions.ActivityNotCreateException;
import bg.car_wash.areas.activity.exceptions.ActivityNotFoundException;
import b... | true |
a66cb1ba2f6380e3218ac3fda0429d8e28307eff | Java | maritanasampu/t09veebtest | /homework9/src/main/java/Main.java | UTF-8 | 594 | 1.898438 | 2 | [] | no_license | import org.junit.Test;
import static com.codeborne.selenide.Condition.*;
import static com.codeborne.selenide.Selenide.*;
public class Main {
@Test
public void ConverteTest(){
open("http://localhost:8888/main.html");
$("#ruble-convert-button").click();
$("#euro-convert-button").click(... | true |
c463f86011bbd2363f3b83b06c750584a13865d3 | Java | glason/Cracking | /C4/Vertex.java | UTF-8 | 61 | 1.945313 | 2 | [] | no_license | public class Vertex{
public int value;
public Edge link;
}
| true |
45613c53f3b01906bba3d1f3803f6b1b679ad003 | Java | dmitry-mingazov/JummesLibs | /jummeslibs-core/src/main/java/com/github/jummes/libs/core/Libs.java | UTF-8 | 1,427 | 2.359375 | 2 | [] | no_license | package com.github.jummes.libs.core;
import org.bukkit.plugin.java.JavaPlugin;
import com.github.jummes.libs.listener.PluginInventoryHolderClickListener;
import com.github.jummes.libs.listener.StringSettingChangeChatListener;
import com.github.jummes.libs.wrapper.VersionWrapper;
import lombok.Getter;
publ... | true |
6ef8ff3ca7a519ec1d0f4e3e74233c00af36a98e | Java | Vitsel/Chameleon_Tollgate | /Server/tollgate/src/main/java/com/chameleon/tollgate/face/dao/exception/FaceResultException.java | UTF-8 | 266 | 1.898438 | 2 | [] | no_license | package com.chameleon.tollgate.face.dao.exception;
import com.chameleon.tollgate.rest.exception.BaseException;
@SuppressWarnings("serial")
public class FaceResultException extends BaseException {
public FaceResultException(FaceError error) {
super(error);
}
}
| true |
ecb01524bf7eaf5ac3ded3715d5a57e0f3db79ab | Java | i-robot/myshop | /javashop-eop/src/com/enation/app/shop/core/service/IFavoriteManager.java | UTF-8 | 740 | 1.890625 | 2 | [] | no_license | package com.enation.app.shop.core.service;
import com.enation.framework.database.Page;
import java.util.List;
public abstract interface IFavoriteManager
{
public abstract Page list(int paramInt1, int paramInt2);
public abstract Page list(int paramInt1, int paramInt2, int paramInt3);
public abstract... | true |
d09b3395fbb12f97ed9f88e26d4257135104f8a5 | Java | Jeffery1993/bricks | /src/main/java/com/jeffery/bricks/sort/BubbleSort.java | UTF-8 | 450 | 3.265625 | 3 | [
"MIT"
] | permissive | package com.jeffery.bricks.sort;
import java.util.Objects;
/**
* 冒泡排序
*/
public class BubbleSort implements SortAlgorithm {
@Override
public void sort(int[] arr) {
Objects.requireNonNull(arr);
for (int i = arr.length - 1; i > 0; i--) {
for (int j = 0; j < i; j++) {
... | true |
0e8244d3647b781372130efb7ffc04898b08b5f7 | Java | microcks/microcks | /commons/model/src/main/java/io/github/microcks/domain/EventMessage.java | UTF-8 | 1,573 | 2 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to Laurent Broudoux (the "Author") under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Author licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you may not... | true |
19aac2869af3e49e98e1517db005ed75d2c10305 | Java | afranco7/agendarcitas | /src/test/java/steps/AgendarCitas.java | UTF-8 | 2,117 | 2.4375 | 2 | [] | no_license | package steps;
import model.AgendarPages;
import org.jbehave.core.annotations.*;
import org.jbehave.core.steps.Steps;
/**
* Created by afranco7 on 21/09/2016.
*/
public class AgendarCitas extends Steps{
private AgendarPages agendarPages =new AgendarPages();
@Given("I am at the main page of the system")
... | true |
a1e8bad3a7706e98a53ea8e4fbea4ef96df0aef9 | Java | geraldo-sousa/Francisco-Vieira | /p2-lp2/heranca/src/heranca/q5/Radio.java | UTF-8 | 260 | 2.28125 | 2 | [] | no_license | package heranca.q5;
public interface Radio {
public void setEmissora(String emissora, String tipoEmissora);
public String getEmissora();
public String getTipoEmissora();
public void setVolumeRadio(float volume);
public float getVolumeRadio();
}
| true |
99ce735c130ae3c09e3abafc3508f7b6a70a3083 | Java | 5rom/projetsm2 | /TI1/TP5/annuaire-bundles/annuaire/src/tp1/serveur/Annuaire.java | ISO-8859-1 | 2,821 | 3.15625 | 3 | [] | no_license | package tp1.serveur;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import org.picocontainer.Startable;
import tp1.Site;
import tp1.SiteDAO;
import tp1.SiteXMLDAO;
public class Annuaire implements Startable {
ArrayList<Site> sites = new ArrayList<Site>();
Si... | true |
75b751f6d7b46a2b1b8f78df4f28337e8bf5d9b9 | Java | algorithmtraining/zhaozhen197 | /hot100/0714/Solution.java | UTF-8 | 413 | 2.59375 | 3 | [] | no_license | class Solution {
public boolean divisorGame(int N) {
boolean[] dp = new boolean[N+1];
dp[1] = false;
if(N>1){
dp[2] = true;
}
for(int i =3;i<=N;i++){
for(int j=1;j<i;j++){
if(i%j ==0 && !dp[i-j]){
dp[i] =true;
... | true |
70fece28bd7eda59031c6e9efe208ad4c4ae6d67 | Java | lam8da/text-categorization | /src/test/preprocess/corpus/BadWordHandlerTest.java | UTF-8 | 1,782 | 2.390625 | 2 | [] | no_license | package test.preprocess.corpus;
import java.io.File;
import java.io.IOException;
import java.util.Iterator;
import java.util.Scanner;
import java.util.HashSet;
import java.util.Vector;
import java.io.FileWriter;
import java.lang.Character;
import core.preprocess.corpus.BadWordHandler;
public class BadWo... | true |
30894e4184a99c19e9cf77be18286685e43c95eb | Java | dmfullstack/StatisticalMux | /src/WindowApplication.java | UTF-8 | 21,484 | 2.609375 | 3 | [
"MIT"
] | permissive | /// Import external libraries
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.*;
import javax.swing.Timer;
import java.io.*;
import java.util.*;
import javax.swing.*;
import java.awt... | true |
d7ad2d2f01d92018b1226925b46d33a4bb2ebfab | Java | sesygroup/choreography-synthesis-enactment | /design-synthesis/coordination-delegates/coordination-algorithm-wp7/src/main/java/eu/chorevolution/synthesisprocessor/coordinationprotocol/algorithm/model/additionalMessages/AdditionalMessageNotify.java | UTF-8 | 2,972 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015 The CHOReVOLUTION project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | true |
bcbb102e60c06266bb0187cb79bbfe311fb3bf25 | Java | won21kr/Malware_Project_Skycloset | /skycloset_malware/src/okhttp3/MediaType.java | UTF-8 | 4,508 | 2.59375 | 3 | [] | no_license | package okhttp3;
import java.nio.charset.Charset;
import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public final class MediaType {
private static final Pattern PARAMETER = (TYPE_SUBTYPE = Pattern.compile("([a-zA-Z0-9-!#$%&'*+.^_`{|}~]+)/([a-zA-Z0-9-!#$%&'*+.^_`{|}~]+)")).compi... | true |
7047ba52fff0e70efe46e06785bf5867a40188e5 | Java | veeranji141/BDDFrameWork | /src/org/automation/base/DriverInstance.java | UTF-8 | 1,460 | 2.5 | 2 | [] | no_license | package org.automation.base;
import org.automation.utility.PropertyReader;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
public class DriverInstance {
static WebDriver drive... | true |
d9d8f6c784222f8673362e6c6a7c2f4dec29da54 | Java | handsome-llk/algorithms | /src/main/java/com/study/algorithms/choose/ChooseTestMain.java | UTF-8 | 1,612 | 2.78125 | 3 | [] | no_license | package com.study.algorithms.choose;
import com.study.algorithms.sort.SortMain;
import com.study.algorithms.sort.SortUtil;
import com.study.common.TimeRecord;
import java.util.Random;
public class ChooseTestMain {
public static void main(String[] args) {
int[] numArr = new int[500000];
Random ra... | true |
899edd7e163c3ba5e461d90ba973ab040793ab88 | Java | jSarthak-987/Medicab-Customer-Android-App | /app/src/main/java/com/brightsky/medicab/ProfileSetupActivity.java | UTF-8 | 9,367 | 2.109375 | 2 | [] | no_license | package com.brightsky.medicab;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.text.Te... | true |
41ad77cf4fe4e01edc107add959ca087a154acbe | Java | rbill/momot | /plugins/at.ac.tuwien.big.momot/at/ac/tuwien/big/momot/search/algorithm/local/neighborhood/ChangingNeighborhoodFunction.java | UTF-8 | 2,651 | 2.4375 | 2 | [] | no_license | package at.ac.tuwien.big.momot.search.algorithm.local.neighborhood;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import at.ac.tuwien.big.moea.search.algorithm.local.INeighborhood;
import at.ac.tuwien.big.moea.search.algorithm.local.neighborhood.AbstractNeighborhoodFunction;
import at... | true |
c7711aee31d98985654b990d974db992d4afafda | Java | elshanabd/vs | /src/CreditParts/CreditDetails.java | UTF-8 | 8,144 | 2.40625 | 2 | [] | no_license | package CreditParts;
/**
*
* @author elshan
*/
public class CreditDetails {
private String Saygac;
private String AccountNo;
private String CurrencyOfCredit;
private String CreditType;
private String InitialAmountOfCredit;
private String CreditLineAmount;
private String Disou... | true |
3d05414b00e743e4ed203a556f8bbca606fc77ca | Java | LenHoChi/thuthoi | /src/test/java/com/example/controllerTest/UserControllerTest.java | UTF-8 | 6,705 | 2.09375 | 2 | [] | no_license | package com.example.controllerTest;
import com.example.controller.UserController;
import com.example.dto.UserDTO;
import com.example.service.RelationshipService;
import com.example.service.UserService;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import or... | true |
8d11300336243a4fbf16b16ec1916e374867d57c | Java | a-polyakov/com.zemrow.messenger | /messenger-dao/src/test/java/com/zemrow/messenger/dao/ChatPriorityDaoTest.java | UTF-8 | 6,859 | 2.296875 | 2 | [] | no_license | package com.zemrow.messenger.dao;
import com.zemrow.messenger.SessionStorage;
import com.zemrow.messenger.entity.Chat;
import com.zemrow.messenger.entity.ChatPriority;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter... | true |
f7a527447c33ea3a069ca05a24672019681ec21c | Java | martinezmatias/GenPat-data-C3 | /jgrapht_cluster/1969/tar_0.java | UTF-8 | 4,732 | 2.328125 | 2 | [] | no_license | /* ==========================================
* JGraphT : a free Java graph-theory library
* ==========================================
*
* Project Info: http://jgrapht.sourceforge.net/
* Project Lead: Barak Naveh (http://sourceforge.net/users/barak_naveh)
*
* (C) Copyright 2003-2004, by Barak Naveh and Contri... | true |
5a7ed58a8737cf6a026c325e7d3261b2e00c73c5 | Java | PravatKumarPradhan/his | /Entity/src/main/java/com/param/opd/unit/model/SlotMaster.java | UTF-8 | 14,733 | 1.867188 | 2 | [] | no_license | package com.param.opd.unit.model;
import java.time.LocalTime;
import java.util.Date;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.... | true |
3c2e6378012d366224d6e99a6a7e48e12ca39353 | Java | shanmukrish/tracker-rest-service | /src/main/java/com/gohiram/haj/trackerrestservice/model/TrackerResponse.java | UTF-8 | 650 | 2.109375 | 2 | [] | no_license | package com.gohiram.haj.trackerrestservice.model;
import com.gohiram.haj.trackerrestservice.exception.ErrorInformation;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@ApiModel
@NoArgsConstructor
@Getter
@Setter
public class Tracker... | true |
3f9f7b9b1d8d9b9b5e5609f2eb6b48732a2edf8d | Java | AIT-RAMI/Competitive-Programming | /Coach Codes/FindSmallest.java | UTF-8 | 310 | 2.53125 | 3 | [] | no_license | public static int FindSmallest (int [] arr1){//start method
int index = 0;
int min = arra1[index];
for (int i=1; i<arr1.length; i++){
if (arr1[i] < min ){
min = arr1[i];
index = i;
}
}
return index ;
}
| true |
7fad037e202b1244b9944c34006a6cfbec454bc7 | Java | Naryxus/quacks-of-quedlinburg | /src/main/DelayedEffectIngredient.java | UTF-8 | 475 | 2.984375 | 3 | [] | no_license | package main;
public abstract class DelayedEffectIngredient extends Ingredient {
private final DelayedEffect delayedEffect;
public DelayedEffectIngredient(int quality, DelayedEffect delayedEffect) {
super(quality);
if (delayedEffect == null) throw new NullPointerException("The delayed effect... | true |
a72b9dba7cac1e296d7ccf0694ca1d29105813fc | Java | rmarbeck/aBOOKadabra-sandbox | /web/app/com/abookadabra/utils/amazon/api/XMLDefaultAnswerConstants.java | UTF-8 | 6,936 | 1.609375 | 2 | [] | no_license | package com.abookadabra.utils.amazon.api;
public class XMLDefaultAnswerConstants {
protected static String AMAZON_DATE_FORMAT = "yyyy-MM-dd";
protected static String AMAZON_XML_FIELD_IS_VALID = "IsValid";
protected static String AMAZON_XML_FIELD_ERRORS = "Errors";
protected static St... | true |
cf9bbbc64111e1e23b54e5feb5068d1aba98aa73 | Java | thevpc/atom | /atom-game-engine/src/main/java/net/thevpc/gaming/atom/model/SpriteArmor.java | UTF-8 | 321 | 1.804688 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package net.thevpc.gaming.atom.model;
import java.io.Serializable;
/**
* @author Taha Ben Salah (taha.bensalah@gmail.com)
*/
public interface SpriteArmor extends Serializable {
boolean isActive();
void setA... | true |
23007ee80e0370d4cb9b37dd3ae7208934c0b3a6 | Java | Feavy/Mastermind | /src/fr/feavy/mastermind/ui/UserSelectionPanel.java | UTF-8 | 2,344 | 2.578125 | 3 | [] | no_license | package fr.feavy.mastermind.ui;
import java.awt.Cursor;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import ... | true |
5805ea1ba9ec5cf9a398b9bd938ea800ffd9994b | Java | backonhighway/competitive-backup | /workspace/TopCoder/src/tc600s/tc616/WakingUp.java | UTF-8 | 8,342 | 2.84375 | 3 | [] | no_license | package tc600s.tc616;
import java.util.*;
import java.util.regex.*;
import java.text.*;
import java.math.*;
public class WakingUp
{
public final int INF = 1<<30;
public int maxSleepiness(int[] period, int[] start, int[] volume, int D)
{
int sim = 10000;
int len = period.length;
int sum = 0;
int min = 0;
... | true |
a36aacdaba926030cd74a535b7437f31fe15a23a | Java | JefersonGarcia/ponto-inteligente | /src/main/java/com/garcia/pontointeligente/api/dtos/EmpresaDto.java | UTF-8 | 226 | 1.625 | 2 | [
"MIT"
] | permissive | package com.garcia.pontointeligente.api.dtos;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
public class EmpresaDto {
private Long id;
private String razaoSocial;
private String cnpj;
}
| true |
fb233dbe8237870456c6ac0c68f4dd68208303a2 | Java | cckmit/shixiya | /shixiya/src/com/ehighsun/shixiya/pojo/BProductCourse.java | UTF-8 | 4,421 | 2.109375 | 2 | [] | no_license | package com.ehighsun.shixiya.pojo;
// default package
import java.util.HashSet;
import java.util.Set;
import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.annotation.JSONType;
/**
* BProductCourse entity. @author MyEclipse Persistence Tools
*/
@JSONType(orders = { "BProductTeacher", "BPro... | true |
e76e314246b77c995e5294059f2d7d049cbee6d5 | Java | juxian/shiweikongjian | /src/main/java/com/swkj/zebra/web/view/WifiInfoView.java | UTF-8 | 418 | 1.921875 | 2 | [] | no_license | package com.swkj.zebra.web.view;
/**
* Created by Administrator on 2016/9/27 0027.
*/
public class WifiInfoView {
private String mac;
private Integer acc;
public String getMac() {
return mac;
}
public void setMac(String mac) {
this.mac = mac;
}
public Integer getAcc() {... | true |
4612e3494e300e9e68421e432f148cf81864dd00 | Java | KamilZalewski/kamil-zalewski-kodilla-java | /kodilla-patterns2/src/main/java/com/kodilla/patterns2/observer/homework/KodillaMentor.java | UTF-8 | 688 | 3.125 | 3 | [] | no_license | package com.kodilla.patterns2.observer.homework;
public class KodillaMentor implements Observer {
private final String username;
private int updateCount;
public KodillaMentor(String username) {
this.username = username;
}
@Override
public void update(StudentsHomework studentsHomework... | true |
42ae6a92223466708095d90b02eeb2cb062e07a0 | Java | kute/purejavatest | /src/main/java/com/kute/google/guava/FutureTest.java | UTF-8 | 3,865 | 2.796875 | 3 | [] | no_license | package com.kute.google.guava;
import com.google.common.base.Stopwatch;
import com.google.common.collect.Lists;
import com.google.common.util.concurrent.*;
import org.junit.Test;
import java.util.List;
import java.util.concurrent.*;
import java.util.stream.IntStream;
/**
* created by bailong001 on 2019/02/18 18:38
... | true |
0f99326288888363b51bafa3d7f46b4c9b9afd96 | Java | GO-OFFER/GO-OFFER | /src/main/java/edu/escuelaing/eci/arsw/gooffer/services/CompraServices.java | UTF-8 | 1,329 | 1.945313 | 2 | [] | no_license | package edu.escuelaing.eci.arsw.gooffer.services;
import edu.escuelaing.eci.arsw.gooffer.cache.GoofferCache;
import edu.escuelaing.eci.arsw.gooffer.model.Compra;
import edu.escuelaing.eci.arsw.gooffer.model.Servicio;
import edu.escuelaing.eci.arsw.gooffer.model.Usuario;
import edu.escuelaing.eci.arsw.gooffer.repository... | true |
247a04229d7f5afb8f6c7f513ecb7bedea969270 | Java | rakeshsthakur/algo-ds | /src/main/java/dev/arrays_and_strings/LetterCombinationsOfAPhoneNumber.java | UTF-8 | 1,069 | 3.703125 | 4 | [] | no_license | package dev.arrays_and_strings;
import java.util.LinkedList;
import java.util.List;
/**
* Created by rthakur on 7/12/17.
*/
public class LetterCombinationsOfAPhoneNumber {
public static void main(String[] args) {
LetterCombinationsOfAPhoneNumber ln = new LetterCombinationsOfAPhoneNumber();
Syste... | true |
871c83b588bb4fc1205923235514a3e5ecb9e660 | Java | Monika-Mistry/Twyndyllyngs | /CitizenAPI/src/main/java/com/bae/citizen/domain/Citizen.java | UTF-8 | 1,921 | 2.40625 | 2 | [] | no_license | package com.bae.citizen.domain;
import java.time.LocalDate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class Citizen {
@Id
@Column(name = "citizenid")
private Long citizenId;
@Column(name = "forenames")
private String forenames;
@Column(name =... | true |
21813c944a682b278275c5a682d5c6fe0752ed63 | Java | WorkRock/java_lab | /java_PJ_Exam/src/e2017/exam2/Example2.java | UTF-8 | 545 | 2.984375 | 3 | [] | no_license | package e2017.exam2;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class Example2 {
public static void main(String[] args) {
String[] a1 = { "d", "a", "b", "a", "c", "a" };
String[] a2 = { "b", "a", "f", "e", "b", "b" };
String[] a3 = new String[6];
for(int i =0; i<a1.len... | true |
d4a82daa1cb2bf6377bc5445615858e0e518e53e | Java | wyaadarsh/LeetCode-Solutions | /Java/1108-Defanging-an-IP-Address/soln.java | UTF-8 | 286 | 2.5 | 2 | [
"MIT"
] | permissive | class Solution {
public String defangIPaddr(String address) {
StringBuilder sb = new StringBuilder();
for(char ch : address.toCharArray()) {
if (ch == '.') sb.append("[.]");
else sb.append(ch);
}
return sb.toString();
}
}
| true |
1e5052396a71fedcb1c9f097354b261b5f16762f | Java | jairosousa/scc-indicadores | /src/main/java/br/com/sococo/resumo/service/impl/DestinatarioServiceImpl.java | UTF-8 | 2,814 | 2.359375 | 2 | [] | no_license | package br.com.sococo.resumo.service.impl;
import br.com.sococo.resumo.service.DestinatarioService;
import br.com.sococo.resumo.domain.Destinatario;
import br.com.sococo.resumo.repository.DestinatarioRepository;
import br.com.sococo.resumo.service.dto.DestinatarioDTO;
import br.com.sococo.resumo.service.mapper.Destina... | true |
87b5095d6c50e396c40f98baf98c1de732fe022e | Java | viking1998cp/GoPDUVesion2 | /app/src/main/java/gopdu/pdu/vesion2/Object/Customer.java | UTF-8 | 1,274 | 2.234375 | 2 | [] | no_license | package gopdu.pdu.vesion2.object;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
public class Customer implements Serializable {
@SerializedName("id")
@Expose
private String id;
@SerializedName("name")
@Expose
privat... | true |
68d4ba21ba86261b5516ae2b1f07deadf778f8b9 | Java | grails-core-issues-forks/micronaut-core-524 | /src/main/java/example/VatClient.java | UTF-8 | 236 | 1.515625 | 2 | [] | no_license | package example;
import io.micronaut.function.client.FunctionClient;
import javax.inject.Singleton;
//@Singleton
public class VatClient implements VatValidator {
@Override
public String hello() {
return null;
}
}
| true |
16370f820d47e0ba98a130e2e5eb4404304c2e7e | Java | mingjunz/objectsizeruntime | /ObjectSizeRuntime/src/com/mj/Test.java | UTF-8 | 307 | 2.328125 | 2 | [] | no_license | package com.mj;
import java.util.List;
import java.util.ArrayList;
public class Test {
public static void main(String[] args) {
ArrayTest t = new ArrayTest();
List a = new ArrayList<Object>();
a.add(t);
int res = ObjectSizeCalculator.getSize(a);
System.out.println(res);
}
}
| true |
2b613655ae601966432d265dbbde36092a389d65 | Java | pokala/Progrmas | /com.interview/src/main/java/com/interview/Animal.java | UTF-8 | 232 | 2.84375 | 3 | [] | no_license | package com.interview;
public class Animal {
int i=10;
public void eat()
{
System.out.println("Animal eats....");
}
// public void sound()
// {
// System.out.println("Animal makes sounds...");
// }
}
| true |
f248185916d96d701d484d98a366424b71e9db69 | Java | zouwenhao/practise-base-2020 | /src/main/java/cn/zou/test_jvm/TestReference.java | UTF-8 | 1,407 | 2.953125 | 3 | [] | no_license | package cn.zou.test_jvm;
import java.io.FileInputStream;
import java.lang.ref.WeakReference;
import java.util.Scanner;
public class TestReference {
public static void main(String[] args) {
// Object obj = new Object();
// SoftReference<Object> softReference = new SoftReference<Object>(obj);
// ... | true |
eb8efdfb580c49b439179ff786fae57861ee9c66 | Java | immccc/bank_transactions | /src/main/java/com/immccc/bank/transaction/TransactionAlreadyExistingException.java | UTF-8 | 461 | 2.28125 | 2 | [] | no_license | package com.immccc.bank.transaction;
import org.springframework.web.bind.annotation.ResponseStatus;
import static java.lang.String.format;
import static org.springframework.http.HttpStatus.PRECONDITION_FAILED;
@ResponseStatus(PRECONDITION_FAILED)
class TransactionAlreadyExistingException extends RuntimeException {
... | true |
c85a922b786fd8fc1f289a175da20abeca42ba25 | Java | leilei0220/springboot-learn | /springboot-mybatis-plus-batch/src/test/java/com/leilei/SpringbootMybatisPlusBatchApplicationTests.java | UTF-8 | 1,659 | 2.3125 | 2 | [] | no_license | package com.leilei;
import com.leilei.entity.User;
import com.leilei.mapper.UserMapper;
import com.leilei.util.ListSplitUtil;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.sp... | true |
5975f24673acb714cc6f39105c934176f9987523 | Java | ShylajaAkula/SpringMVCServlets | /src/com/pojo/StudentCompUtil.java | UTF-8 | 899 | 2.484375 | 2 | [] | no_license | package com.pojo;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import com.sortingpkg.StudentCompByBatch;
import com.sortingpkg.StudentCompByFamt;
import com.sortingpkg.StudentCompByName;
import com.sortingpkg.StudentCompBySno;
public class StudentCompUtil{
pub... | true |
e63ad46f9cb28911989df2e007dc79dfe40df0a4 | Java | stamfest/keepass4j | /src/test/java/pl/sind/keepass/BcHashTest.java | UTF-8 | 372 | 1.84375 | 2 | [] | no_license | package pl.sind.keepass;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import pl.sind.keepass.crypto.CipherException;
import pl.sind.keepass.hash.BcSHA256Hash;
@RunWith(JUnit4.class)
public class BcHashTest extends HashTestBase{
@Before
public void prepare() throws Ci... | true |
481057f19fd337d423b7849bdfa80609f07183d1 | Java | hutamasatrio/magang | /app/src/main/java/com/example/projecttimeline/model/DataTimeline.java | UTF-8 | 910 | 2.40625 | 2 | [] | no_license | package com.example.projecttimeline.model;
import com.google.gson.annotations.SerializedName;
public class DataTimeline {
@SerializedName("keterangan")
private String keterangan;
@SerializedName("color")
private String color;
@SerializedName("dateTimeline")
private String dateTimeline;
public void setKete... | true |
f0eb20576dae8cd64e5521456cdba9b474739f26 | Java | mc-mtkmc-de/RPG | /RPG/src/de/tempoo50/rpg/commands/SetResoawnCommand.java | ISO-8859-1 | 7,164 | 2.546875 | 3 | [] | no_license | package de.tempoo50.rpg.commands;
import java.io.File;
import java.io.IOException;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.Player;
public class Se... | true |
a7ac600b0d6ee1b64ab86e9bcb85b3a1080798eb | Java | suhailSj/LC | /src/com/LeetCode/august/VerticalTraversel.java | UTF-8 | 2,870 | 3.09375 | 3 | [] | no_license | package com.LeetCode.august;
import com.LeetCode.util.Tree.TreeHelper;
import com.LeetCode.util.Tree.TreeNode;
import java.util.*;
/**
* created by suhail.jahangir on 09/08/20
*/
public class VerticalTraversel {
public static void main(String... a){
Solution sol =new Solution();
TreeNode root... | true |
61e800be8c57ff44886ba0a73e4e2ff18b0eb54c | Java | sub1186/spring-init | /modules/tools/src/test/java/org/springframework/init/tools/manual/SampleConfigurationInitializer.java | UTF-8 | 991 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package org.springframework.init.tools.manual;
import java.lang.Override;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.support.GenericApplicationContext;
import org.springframework.init.func.ConditionService;
import org.springframework.init.func.InfrastructureUti... | true |
8219cace6b2ea9eb1a999f0b4c422f82cafe83ed | Java | stub-idp/stub-idp | /shared-lib/src/main/java/stubidp/shared/csrf/exceptions/CSRFConflictingFormAttributeException.java | UTF-8 | 121 | 1.640625 | 2 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | package stubidp.shared.csrf.exceptions;
public class CSRFConflictingFormAttributeException extends RuntimeException {
}
| true |
1565132995ffcd958f27829b2fde9f7f269cc25f | Java | dj9308/Temp | /Web/190716/detailDAO.java | UTF-8 | 489 | 2 | 2 | [] | no_license | package dao;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import vo.detailVO;
@Repository
public class detailDAO {
@Autowired
SqlSession session = null;
public List<detailVO> ... | true |
437b82cd1dd57519798f4e309f7d84872de6111c | Java | JesperNordlund/JavaSE | /TileGame/src/com/iftac/jnordlund/tilegame/Tile.java | UTF-8 | 837 | 3.34375 | 3 | [] | no_license | package com.iftac.jnordlund.tilegame;
public class Tile {
private int value;
private boolean isEmpty;
private int height;
private int width;
public Tile(int value, boolean isEmpty, int width, int height) {
this.value = value;
this.isEmpty = isEmpty;
this.width = width;
this.height = he... | true |
73cef985a8af2963d33aacf6566e973f9b7c3e75 | Java | moshangpiaoxue/kUtilsxDemo | /app/src/main/java/com/mo/kutilsx/modle/AdapterModle.java | UTF-8 | 2,228 | 1.945313 | 2 | [] | no_license | package com.mo.kutilsx.modle;
import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import com.mo.kutilsx.R;
import com.mo.kutilsx.bean.MainBean;
import com.mo.libs... | true |
2cdc7a035b96397b7dbebe950965f455c068f43b | Java | J-minkuk/Algorithms | /src/com/swea/D3/D3_1208_재귀.java | UTF-8 | 1,397 | 2.921875 | 3 | [] | no_license | package com.swea.D3;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class D3_1208_재귀 {
static int dumpsCount;
static int count;
private static void activeDump(int[] boxHeights) {
if (count == dumpsCount) return;
... | true |
d1e1129c56c61fd3833479709aa45ce376e1c819 | Java | dimzaghi/digiv | /app/src/main/java/com/ditestudio/digivpro/guestBook.java | UTF-8 | 1,806 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | package com.ditestudio.digivpro;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.net.Uri;
import android.content.Intent;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
public class guestBook extends AppCompatActiv... | true |
db416d07968fd45634c4b8e787feaf35691c44c5 | Java | ashmichheda/advent-of-code | /Day-2/Puzzle2.java | UTF-8 | 1,338 | 3.453125 | 3 | [] | no_license | package com.prog.AdventOfCode2018;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class Puzzle2 {
static final int NUMBER_OF_CHARS = 256;
public static void main(String[] args) {
int checksum = findCheckSum();
System.out.println("Checksum is: "+checksum)... | true |
d9b6616b865a8d82eaace5f17939737565b55670 | Java | Matrixchung/EndMinecraftPlus | /src/luohuayu/EndMinecraftPlus/tasks/attack/IAttack.java | UTF-8 | 827 | 2.1875 | 2 | [
"MIT"
] | permissive | package luohuayu.EndMinecraftPlus.tasks.attack;
import java.util.Map;
public abstract class IAttack {
public int attack_mode;
public int attack_time;
public int attack_maxconnect;
public int attack_joinsleep;
public boolean attack_motdbefore;
public boolean attack_tab;
public ... | true |
5ca15b39b8ef0fb974234ed3ffdd2c46b26a2a33 | Java | jcte02/introduction-to-programming-final-project | /src/PersonalityTestPanel.java | UTF-8 | 850 | 2.859375 | 3 | [
"MIT"
] | permissive | import java.awt.BorderLayout;
import java.awt.event.KeyEvent;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
public class PersonalityTestPanel extends JPanel {
private final static String[] tabNames = {
"Take the test",
"Statistics",
"Search"
};
public PersonalityTestPanel() {
setLayout... | true |
53f0ced015b9a4bd73c09ca5513c91bc54936871 | Java | alinapalamarciuc/mvc-university | /src/dao/StudentDao.java | UTF-8 | 11,782 | 2.484375 | 2 | [] | no_license | package dao;
import java.sql.Connection;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
import model.Ab... | true |
7e4696a0d975cfa050baa102e7aa6ed837c0434a | Java | sylabtechnologies/demo_DP | /Google/081_StoneGameDFS.java | UTF-8 | 813 | 3.0625 | 3 | [] | no_license | package goog27;
// https://leetcode.com/problems/stone-game/
class Solution
{
private Integer memo[][];
public boolean stoneGame(int[] piles)
{
memo = new Integer[501][501];
return dfsDifference(piles, 0, piles.length - 1) > 0;
}
private int dfsDifference(int[] piles, int i, i... | true |
0ccf663ff94b5e6423ec53984a29f793bc2e3932 | Java | vinaykumaraai/GemView | /Backend/Sources/server/shared/data/src/main/java/com/luretechnologies/server/data/dao/impl/ResultDAOImpl.java | UTF-8 | 8,248 | 1.84375 | 2 | [] | no_license | /**
* COPYRIGHT @ Lure Technologies, LLC.
* ALL RIGHTS RESERVED
*
* Developed by Lure Technologies, LLC. (www.luretechnologies.com)
*
* Copyright in the whole and every part of this software program belongs to
* Lure Technologies, LLC (“Lure”). It may not be used, sold, licensed,
* transferred, copied or repro... | true |
506088585feae7bde8ba2778c19a19b372c70749 | Java | YASSER-TAIBI/GestionCommercial | /src/dao/Entity/Versement.java | UTF-8 | 6,728 | 2.015625 | 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 dao.Entity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
impor... | true |
9f465f6995be9048717218a1d9bb2182a3c7825c | Java | techiekashif/discussion-forum | /src/com/forum/units/AbstractEntity.java | UTF-8 | 426 | 2.265625 | 2 | [] | no_license | package com.forum.units;
import java.util.Date;
import com.forum.util.Utility;
public abstract class AbstractEntity {
private Date created;
private long id;
public long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public abstract void autoGenerateId();
public Date getCrea... | true |
b17030c9112e6c8b2d0d75d15ffc7bd74089d05a | Java | jostea/admin-portal | /src/main/java/com/internship/adminpanel/model/CandidateSqlTask.java | UTF-8 | 923 | 2.125 | 2 | [] | no_license | package com.internship.adminpanel.model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
@Data
@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "candidate_sql_task")
public class CandidateSqlTask {
@Id... | true |
2652b9e212f62eb070ac62e34bccec200a4e10c4 | Java | xxy92dec/leetcode-1 | /leetcode/PartitionList.java | UTF-8 | 962 | 3.78125 | 4 | [] | no_license | /**
* Partition List
*
* Given a linked list and a value x, partition it such that all nodes less than
* x come before nodes greater than or equal to x.
*
* You should preserve the original relative order of the nodes in each of the
* two partitions.
*
* For example, Given 1->4->3->2->5->2 and x = 3, return... | true |
48b27a962956d0bba240286e9213aedd349d4bdf | Java | dmissoh/elasticsearch-sliced-scroll | /src/main/java/poimgmt/es/SlicedScrollSearchThread.java | UTF-8 | 4,418 | 2.28125 | 2 | [] | no_license | package poimgmt.es;
import static org.elasticsearch.index.query.QueryBuilders.geoDistanceQuery;
import java.io.IOException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import org.apache.http.HttpHost;
import org.elasticsearch.action.search.... | true |
7b99809ae208789d0f2a40b865e5a477033f554e | Java | MaryAiad/Time2Do | /app/src/main/java/com/example/mkany/time2do/RecyclerAdaptorTasks.java | UTF-8 | 13,588 | 2.234375 | 2 | [] | no_license | package com.example.mkany.time2do;
import android.content.Context;
import android.content.DialogInterface;
import android.database.sqlite.SQLiteDatabase;
import android.graphics.Color;
import android.graphics.Paint;
import android.support.v7.app.AlertDialog;
import android.support.v7.widget.CardView;
import android.su... | true |
84bff47d1c2c108b903fa48cf949620c63f41463 | Java | MewX/contendo-viewer-v1.6.3 | /org/apache/batik/ext/awt/AreaOfInterestHintKey.java | UTF-8 | 980 | 1.984375 | 2 | [
"SMLNJ",
"Apache-1.1",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | /* */ package org.apache.batik.ext.awt;
/* */
/* */ import java.awt.RenderingHints;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* ... | true |
576daf4ce44ceb6c8468f18b0515c8af14684a01 | Java | htdrajiv/DE_Courses_Mum | /ASD/Lab6/StatePattern/Lab/src/OffState.java | UTF-8 | 400 | 2.84375 | 3 | [] | no_license | /**
* Created by Rajiv on 4/2/2017.
*/
public class OffState extends FanState {
public OffState(CeilingFan fan, boolean start) {
super(fan);
if (!start)
System.out.println( "turning off" );
}
public void pullgreen() {
fan.setState(fan.getLowSpeedStatus());
}
p... | true |
1da286abc219c413bc1c22ec53415ea1c7f73ca3 | Java | putusaputra-mitrais/bazzar-transaction-service | /src/main/java/com/putusaputra/bazzar/dto/TransactionSaveRequest.java | UTF-8 | 476 | 1.8125 | 2 | [] | no_license | package com.putusaputra.bazzar.dto;
import java.util.List;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.putusaputra.bazzar.model.Transaction;
import com.putusaputra.bazzar.model.TransactionDetail;
import lombok.Builder;
import lombok.Data;
@Data
@Builder
pub... | true |
7157101351745d33c76b1525a60fc75662f29ef6 | Java | lingdu-0/Rental-system | /src/main/java/com/wb/converter/UserConverter.java | UTF-8 | 408 | 2.25 | 2 | [] | no_license | package com.wb.converter;
import com.wb.pojo.User;
import com.wb.vo.UserVo;
public class UserConverter {
public static User convert(UserVo userVo) {
User user = new User();
user.setUserName(userVo.getName());
user.setUserPass(userVo.getPassword());
user.setUserTel(userVo.getTelepho... | true |
0aff5e27198b99c762a11e6d0d5e4698e5943b01 | Java | shibahime/sotu | /src/model/Login.java | UTF-8 | 245 | 2.640625 | 3 | [] | no_license | package model;
public class Login {
private String id;
private String pass;
public Login(String id,String pass) {
this.id=id;
this.pass=pass;
}
public String getId() {return id;}
public String getPass() {return pass;}
}
| true |
6ba415653f36344b2295c8bbab96c83052872290 | Java | vedina/RESTNet | /restnet-b/src/main/java/net/idea/restnet/b/Project.java | UTF-8 | 266 | 1.875 | 2 | [] | no_license | package net.idea.restnet.b;
public class Project<ID> extends Group<ID> {
/**
*
*/
private static final long serialVersionUID = -2361353568264093741L;
public Project() {
this(null);
}
public Project(ID resourceURL) {
setResourceID(resourceURL);
}
}
| true |
305a69932f16335b4ad8bb1cc9872bb258a55eb1 | Java | sapna392/sonar-esql-plugin | /esql-checks/src/main/java/com/exxeta/iss/sonar/esql/check/NavigatingTreeCouldBeReferenceCheck.java | UTF-8 | 6,545 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | /**
*
*/
package com.exxeta.iss.sonar.esql.check;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.sonar.check.Rule;
import org.sonar.check.RuleProperty;
import com.exxeta.iss.sonar.esql.api.tree.ProgramTree;
im... | true |
fe77908e02e0b2a2d2fbaad34125052f1ba19fda | Java | rxnvz/btpns-android | /DAY 6/android-datastore/app/src/main/java/com/example/android_datastore/viewmodel/UserViewModel.java | UTF-8 | 896 | 2.265625 | 2 | [] | no_license | package com.example.android_datastore.viewmodel;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import com.example.android_datastore.model.LoginRequest;
import com.example.android_datastore.model.UserResponse;
import com.example.android_datastore.ne... | true |
ccce56fd1a7d6762dbf695f65bfe15bac216fb1f | Java | KayRuck/RenderingCompetition_Asteroids | /src/CGA/Framework/OBJLoader.java | UTF-8 | 21,506 | 2.65625 | 3 | [] | no_license | package CGA.Framework;
import org.joml.*;
import org.joml.Math;
import java.util.*;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
/**
* Created by Fabian on 16.09.2017.
*/
public class OBJLoader
{
private static final int OBJECT_SHELL_SIZE = 8;
private static fin... | true |
67fb7336a95d59908f2092871c159ac7b4dcedcb | Java | sajibcu/online-shopping-service | /src/main/java/com/red/code/onlineshopping/service/ProductCategoryService.java | UTF-8 | 735 | 1.851563 | 2 | [] | no_license | package com.red.code.onlineshopping.service;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import com.red.code.onlineshopping.database.entity.model.ProductCategory;
import com.red.code.onlineshopping.service.dto.ProductCategoryDTO;
public inter... | true |
1d0600ee3fd465e8d28159e4b7b680c1038b2242 | Java | akshitmahajan/Algorithms-DS | /src/com/programming/problems/ZeroSumSubArray.java | UTF-8 | 2,034 | 3.4375 | 3 | [] | no_license | package com.programming.problems;
import java.util.*;
class ZeroSumSubArray{
static HashMap<Integer, ArrayList<Integer>> hashing = new HashMap<Integer, ArrayList<Integer>>();
static HashMap<Integer, List<Integer>> indexMap = new HashMap<Integer, List<Integer>>();
public static void filterZeroSumSubArrays(int[] ar... | true |
6c61b6a929bd45f2f82aeb2560bbb5fdd3b77534 | Java | revaturelabs/Reservoir | /p3backend/DataService/src/main/java/com/revature/DataService/services/CurriculumService.java | UTF-8 | 1,383 | 2.625 | 3 | [] | no_license | package com.revature.DataService.services;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.revature.DataService.dtos.SimpleCurriculaDTO;
import com.revature.DataServi... | true |
03531eb31b2ab840327968093fac2cc3d8491ba6 | Java | amathani/TestTravisCI | /src/assignment5/CharacterComparator.java | UTF-8 | 252 | 2.65625 | 3 | [] | no_license | package assignment5;
import java.util.Comparator;
public class CharacterComparator implements Comparator<Character> {
@Override
public int compare(Character o1, Character o2) {
// TODO Auto-generated method stub
return o1.compareTo(o2);
}
}
| true |
4cd6a60cf40400a899a58cdf2aaa00a8af64fb2e | Java | simon-greatrix/CanonicalJson | /src/test/java/io/setl/json/CanonicalTest.java | UTF-8 | 4,751 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | package io.setl.json;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertSame;
import static org.junit.jupiter.api.Assertions.assertT... | true |
b44ca64f6e14fb4ad8ca0f0fa9d3b5e28bea83cf | Java | zafrul-ust/tcmISDev | /src/main/java/radian/web/servlets/pepsi/PepsiClientHome.java | UTF-8 | 364 | 1.570313 | 2 | [] | no_license | package radian.web.servlets.pepsi;
import radian.tcmis.server7.share.helpers.ServerResourceBundle;
public class PepsiClientHome extends radian.web.servlets.share.ClientHome
{
public String getClient()
{
return "Pepsi";
}
protected ServerResourceBundle getBundle()
{
return (ServerResourceBun... | true |
18d10249bf837bd1439e6fd07ec5bbd36e5a4c18 | Java | MaoNuo/Tank_War | /src/Tank_War/MainFrame.java | UTF-8 | 1,086 | 2.65625 | 3 | [] | no_license | package Tank_War;
import java.awt.BorderLayout;
import java.awt.Container;
import javax.swing.JFrame;
public class MainFrame extends JFrame {
private static final long serialVersionUID = 1L;
public final static int WIDTH = 800;
public final static int HEIGHT = 600;
private final static String TITLE = "Tank";
... | true |
4abc9992155b548fe772233de909aaefaedd2376 | Java | viradia2/DataStructure2 | /DuplicatesInAnArray.java | UTF-8 | 955 | 3.984375 | 4 | [] | no_license | package com.leetcode2;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class DuplicatesInAnArray {
public static void main(String[] args) {
// TODO Auto-generated method stub
int array[] = {4,3,2,7,8,2,3,1};
DuplicatesInAnArray d = new DuplicatesInAnArray();
List<Integer> ... | true |
13d7a8275031fe97b59830ea0d7097c3c6bf7f06 | Java | 3yebMB/MyNavDrawer | /app/src/main/java/dev/m13d/mynavdrawer/ThirdActivity.java | UTF-8 | 1,692 | 2.015625 | 2 | [] | no_license | package dev.m13d.mynavdrawer;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import com.google.android.material.floatingactionbutton.Floa... | true |
b03ada7495b4b8b1c03f6644ca92334e99d26a54 | Java | thyjxcf/learn | /system/trunk/src/java/net/zdsoft/eis/system/data/entity/UserRoleRelation.java | UTF-8 | 802 | 1.710938 | 2 | [] | no_license | package net.zdsoft.eis.system.data.entity;
import net.zdsoft.eis.frame.client.BaseEntity;
/**
* @author luxingmu
* @version $Revision: 1.3 $, $Date: 2007/01/09 10:04:35 $
*/
public class UserRoleRelation extends BaseEntity {
private static final long serialVersionUID = -4562369048612429550L;
private Strin... | true |
ef030a0e6df79f148d170220140fccd11a4def28 | Java | yjdini/oauth2 | /src/main/java/com/oauth/controllers/OAuthController.java | UTF-8 | 3,436 | 2.28125 | 2 | [] | no_license | package com.oauth.controllers;
import com.oauth.service.OAuthService;
import com.oauth.util.MapBuilder;
import com.oauth.util.StringUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.s... | true |