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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
cc3dfdcd8a95e67118ea4c5f4ac1b1db95a69306 | Java | Swimzxx/ZookeeperAPI | /src/main/java/com/z/watcher/ZKConnectWatcher.java | UTF-8 | 2,155 | 2.875 | 3 | [] | no_license | package com.z.watcher;
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.ZooKeeper;
import org.junit.Test;
import java.util.concurrent.CountDownLatch;
/**
* @Author: zxx
* @Date: 2020/3/29 22:05
* @Description: watcher机制
* 通知状态 KeeperState:
* SyncConnecte... | true |
a1c155ed663e8ee24dffc40b87a3c67a0d3f96d1 | Java | Jurgen-MK/HSE | /HSERailways/app/src/main/java/kz/ktzh/hserailways/LoginActivity.java | UTF-8 | 8,986 | 2.125 | 2 | [] | no_license | package kz.ktzh.hserailways;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.os.StrictMode;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
im... | true |
da27c3bf3573628122897d9a962e5cea9ee83e13 | Java | StemplerNaama/OOP | /BrickBreaker-ArkanoidGame/src/animation/CountdownAnimation.java | UTF-8 | 2,439 | 3.296875 | 3 | [] | no_license | package animation;
import arkanoid.SpriteCollection;
import biuoop.DrawSurface;
/**
* The CountdownAnimation will display the given gameScreen,
* for numOfSeconds seconds, and on top of them it will show
* a countdown from countFrom back to 1, where each number will
* appear on the screen for (numOfSeconds... | true |
0b89a92666c98a05dfaaaaaa28df7e2ac5fc13ea | Java | adaptris/interlok | /interlok-core/src/test/java/com/adaptris/core/services/mime/FlattenMimePartTest.java | UTF-8 | 2,195 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018 Adaptris Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | true |
9cf5fa6ea9199ffe843c65ef19dd7a2b7987877f | Java | zhongxingyu/Seer | /Diff-Raw-Data/18/18_c37cf8f106e87b80d83fd79f886ce8fb0fa4cfb4/Mobile_HTML5Function/18_c37cf8f106e87b80d83fd79f886ce8fb0fa4cfb4_Mobile_HTML5Function_t.java | UTF-8 | 191,982 | 1.851563 | 2 | [] | no_license | package supersql.codegenerator.Mobile_HTML5;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.I... | true |
6b39a801d33e7319f5a9a64d2387a541f0f3102d | Java | ndunphy/CSE2 | /hw04/Month.java | UTF-8 | 2,261 | 4.03125 | 4 | [] | no_license | //Nicolette Dunphy
//HW4
//CSE2
//Month
//due Tuesday 9/23/2014
/* Program that prompts the user to enter an integer for the month
and then displays the number of days in the month.
User must enter an integer in the range (1-12) */
//import scanner class
import java.util.Scanner;
//add class and main method
public ... | true |
43535a6928bbbc5935a065c873992fc62f830ebb | Java | nikolaabadic/CinemaClient | /src/main/java/rs/ac/bg/fon/CinemaClient/forms/FrmReservationDetails.java | UTF-8 | 6,103 | 2.40625 | 2 | [] | no_license | package rs.ac.bg.fon.CinemaClient.forms;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JTextField;
/**
*
* @author Nikola
*/
public class FrmReservationDetails extends javax.swing.JDialog {
/**
* Creates new form FrmReservationDetails
*/
publ... | true |
51c1b952811c6cbbfdfd677f9b044cfccfc04ce3 | Java | shashiwxy/springboot | /BenchShopingCart/src/main/java/com/mindtree/benchshoppingcart/dtos/CartDetails.java | UTF-8 | 665 | 2.515625 | 3 | [] | no_license | package com.mindtree.benchshoppingcart.dtos;
import java.util.List;
import com.mindtree.benchshoppingcart.entities.CartItem;
public class CartDetails {
private List<CartItem> cartItems;
private float totalAmount;
public List<CartItem> getCartItems() {
return cartItems;
}
public void setCartItems(List<Cart... | true |
4238d2ad1006ffc9043feecd35636fd895409dcc | Java | Neumann789/springboot-learn | /javoszie/src/main/java/com/strobel/decompiler/types/ITypeListener.java | UTF-8 | 122 | 1.640625 | 2 | [] | no_license | package com.strobel.decompiler.types;
abstract interface ITypeListener
{
public abstract void onChanged();
}
| true |
348beeee346993dcb231b026db213e6da9d8e9b5 | Java | CodecoolKRK20171/java-todo-app-filipb3900 | /TodoItem.java | UTF-8 | 547 | 3.21875 | 3 | [] | no_license | public class TodoItem {
String taskName;
Boolean isDone;
public TodoItem(String taskName) {
this.taskName = taskName;
this.isDone = false;
}
public void MarkTask() {
this.isDone = true;
}
public String getTaskName() {
String taskName;
if (this.isDone... | true |
064e1d37c1df414ed93128189c222750e14baf76 | Java | snowgears/XMLShredder | /src/main/java/com/tannerembry/xmlshredder/exporter/SpreadsheetExporter.java | UTF-8 | 2,454 | 2.90625 | 3 | [
"MIT"
] | permissive | package com.tannerembry.xmlshredder.exporter;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import org.apache.poi.xssf.usermodel.XSSFCell;
import org.apache.poi.xssf.usermodel.XSSFRow;
import org.apache.poi.xssf.user... | true |
979cd70a784fb80ec4c9f513243eabe0f3828efc | Java | xindaqi/java-basics | /src/main/java/thread/ScheduledPoolFixedTest.java | UTF-8 | 1,209 | 3.453125 | 3 | [
"MIT"
] | permissive | package thread;
// 引入Executors类
import java.util.concurrent.Executors;
// 引入ScheduledExecutorService接口
import java.util.concurrent.ScheduledExecutorService;
// 引入TimeUnit类
import java.util.concurrent.TimeUnit;
// 引入LocalDateTime类
import java.time.LocalDateTime;
/**
* 线程池:定时线程池
*
* @author xindaqi
* @since 2020-1... | true |
bf89a8ac8cb16dd43210abfc5f42d94380ac5297 | Java | cuizuoli/ufnet-ws | /src/main/java/com/ufnet/ws/repository/PauseRuleRepository.java | UTF-8 | 549 | 1.820313 | 2 | [] | no_license | /*
* @(#)PauseRuleRepository.java $version 2016年5月18日
*
* Copyright 2016 LINE Corporation. All rights Reserved.
* LINE Corporation PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package com.ufnet.ws.repository;
import org.apache.ibatis.annotations.Mapper;
import com.ufnet.ws.model.PauseRule;
/*... | true |
27781dd0a288d790517086985858be24ffe477a0 | Java | Mramangoyal/ADAHOUSEHELP | /SRC_ADA_HH/CookingHelper.java | UTF-8 | 2,031 | 2.21875 | 2 | [] | no_license | package model;
public class CookingHelper {
int i;
private int cookinghelperid;
private String cookinghelpername;
private int age;
private String religion;
private int gender;
private int hours;
private String experience;
private String documents;
private String service;
private String foodt... | true |
d079494428b58fb5f41ea944caa18d37e6256d1b | Java | mevroy/WIR-JDK1.7 | /app/src/main/java/com/mrd/yourwebproject/service/PushedApiService.java | UTF-8 | 391 | 1.632813 | 2 | [
"Apache-2.0"
] | permissive | /**
*
*/
package com.mrd.yourwebproject.service;
import com.mrd.yourwebproject.model.entity.GroupPushNotificationAccount;
/**
* @author mevan.d.souza
*
*/
public interface PushedApiService {
public String sendPushedNotification(String content, GroupPushNotificationAccount groupPushNotficationAccount);
public... | true |
268ed3880b552dd527500f1647b35fcb1b0678a4 | Java | NikolaosPattelakis/SDU-SE-ST-18-2.-Semester-Gruppe-15 | /Projekt kode/SmartSag/src/smartsag/Controller/FXMLControllers/ViewController.java | UTF-8 | 1,291 | 2.890625 | 3 | [] | no_license | package smartsag.Controller.FXMLControllers;
import Model.Persistence;
import javafx.scene.Scene;
import smartsag.Controller.GUIManager;
import View.ViewEvents;
import javafx.scene.control.Alert;
/*
Base class for all FXML View Controllers.
This contains a reference to the GUIManager, Persistence model, Scene... | true |
458caa4d48999beede302680efea78e1125b43eb | Java | dcharlton-tgcs/chec-sandpit | /tgcp-bridge/src/main/java/com/tgcs/tgcp/bridge/checoperations/model/status/TransactionStatusType.java | UTF-8 | 497 | 2.109375 | 2 | [] | no_license | package com.tgcs.tgcp.bridge.checoperations.model.status;
public enum TransactionStatusType {
NOT_IN_TRANSACTION("NOT_IN_TRANSACTION"),
TRANSACTION_START("TRANSACTION_START"),
TRANSACTION_VOID ("TRANSACTION_VOID"),
TRANSACTION_SUSPENDED ("TRANSACTION_SUSPENDED"),
TRANSACTION_END ("TRANSACTION_END"... | true |
c7bf906037292a238b638f21a00f60fedb4112fc | Java | hungmch95/Leetcodes-Practice---HM | /Java/SumMatrix.java | UTF-8 | 1,150 | 3.53125 | 4 | [] | no_license | /*
sum of subset of 2d array
[1,2,3]
[4,5,6]
[7,8,9]
big O(n^2), each subsequent run of get is O(n^2)+O(n^2)+O(n^2)
*//
public class SumMatrix{
public static void main(String []args){
int[][] mat = {{1,2,3},{4,5,6},{7,8,9}};
SumMatrix matrix = new SumMatrix(mat);
System.out.println(matrix... | true |
e6b792c9f5332dfdd7914a6243f3d308d3b32079 | Java | jaymsDooku/Serenno | /Serenno-Crimson/src/main/java/io/jayms/serenno/lobby/item/SetRespawnItem.java | UTF-8 | 1,279 | 2.34375 | 2 | [] | no_license | package io.jayms.serenno.lobby.item;
import java.util.Map;
import org.bukkit.Material;
import org.bukkit.event.player.PlayerInteractEvent;
import io.jayms.serenno.SerennoCrimson;
import io.jayms.serenno.item.CustomItem;
import io.jayms.serenno.kit.ItemMetaBuilder;
import io.jayms.serenno.kit.ItemStackBuilder;
import... | true |
7430e5abec6730768d8346ca680664c41bc09f88 | Java | XuanLI1990/store | /src/main/java/com/idmgroup/ms/client/CrmClientFallback.java | UTF-8 | 316 | 1.703125 | 2 | [] | no_license | package com.idmgroup.ms.client;
import com.idmgroup.ms.client.dto.ProductOrderDTO;
import java.util.Collections;
import java.util.List;
public class CrmClientFallback implements CrmClient {
@Override
public List<ProductOrderDTO> getAllCrmProductOrders() {
return Collections.emptyList();
}
}
| true |
871c2fe10fdf29e0339843f901e2d245470fe93f | Java | tmtariq/AndroidSample | /Clecs/src/com/clecs/fragments/FragmentSuggestions.java | UTF-8 | 1,694 | 2.15625 | 2 | [] | no_license | package com.clecs.fragments;
import com.clecs.utils.AppStatics;
public class FragmentSuggestions extends FragmentFollow {
boolean isStarted = false;
public FragmentSuggestions() {
super(false, null);
}
@Override
public void onStart() {
super.onStart();
if (isStarted) return;
//tvTitle.setText("Suggest... | true |
e346411926bc050dc2281dfaf624f83fa315e7e5 | Java | Shusui95/Breizhlink | /src/beans/Url.java | UTF-8 | 4,306 | 2.390625 | 2 | [] | no_license | package beans;
import java.util.Date;
/**
* Bean : Url
* Fields : id, url_long, url_short, utilisation, date_expiration,
* captcha flag, period_start, email, max_use, date_created, user_id,
* disponible flag, showUrl flag
*/
public class Url {
private int id;
private String url_long;
... | true |
59393978dac3b19bdc2699ca82ebacf5fac0cae8 | Java | chenxiu/codingPractice | /src/practice/fourSum.java | UTF-8 | 1,076 | 3.25 | 3 | [] | no_license | package practice;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class fourSum {
public static void main(String[] args) {
// TODO Auto-generated method stub
int[] nums = {1, 0, -1, 0, 0, -2, 2};
int target = 0;
int len = nums.length;
int p1 = 0;
int p2 =... | true |
1dc06ce60ac0a056c8f007dbc96bb37f69538faa | Java | JoelFdz/PRG-20-21 | /prg20-21/src/main/java/tema1/Ejer9.java | UTF-8 | 200 | 2.109375 | 2 | [] | no_license | /*
* Ejercicio 9
*/
package tema1;
/**
*
* @author JFSam
*/
public class Ejer9 {
public static void main(String args[]) {
System.out.println("Mi primer programa en Java y funciona!!!");
}
}
| true |
277ec0ff2e646db9370000730e5afa3797dac6b8 | Java | mzsilak/arrowhead | /serviceregistry_sql/src/main/java/eu/arrowhead/core/serviceregistry_sql/opcua/RemoveMethod.java | UTF-8 | 1,952 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package eu.arrowhead.core.serviceregistry_sql.opcua;
import org.eclipse.milo.opcua.sdk.core.ValueRanks;
import org.eclipse.milo.opcua.sdk.server.api.methods.AbstractMethodInvocationHandler;
import org.eclipse.milo.opcua.sdk.server.nodes.UaMethodNode;
import org.eclipse.milo.opcua.stack.core.Identifiers;
import org.ecl... | true |
66766c4c0407832fd34fca5eb95783c1c3d55a0d | Java | 23razvan23/jmh-benchmarks | /src/main/java/com/github/jmh/RandomStringsTests.java | UTF-8 | 2,404 | 2.875 | 3 | [] | no_license | package com.github.jmh;
import org.openjdk.jmh.annotations.*;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.RunnerException;
import org.openjdk.jmh.runner.options.Options;
import org.openjdk.jmh.runner.options.OptionsBuilder;
import java.util.Random;
import java.util.concurrent.TimeUnit;
import ... | true |
f249039c5a1f4406eeda589e5b04139ecb165776 | Java | petersdragon/OOP_Projects | /POS/src/POS_UI/POS_Start.java | UTF-8 | 373 | 1.851563 | 2 | [] | no_license | package POS_UI;
import POS_Problem_Domain.Store;
import Problem_Domain_Tests.StoreTest;
public class POS_Start {
public static void main(String[] args) {
// TODO Auto-generated method stub
Store store1 = new Store("1", "Peter's Hut In the Woods");
StoreTest storeTest = new StoreTest();
storeTest.store... | true |
4d0b3c90e9c72b6ede3504aaa9616ea00cade91e | Java | juuljul/WhereIs | /app/src/main/java/com/abcd/projetcnam/MySurfaceView.java | UTF-8 | 13,800 | 2.609375 | 3 | [] | no_license | package com.abcd.projetcnam;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.view.SurfaceHolder;
import android.view.SurfaceV... | true |
e8197e27a22086774ce58e838a30a61e4175206c | Java | ixtf/japp-execution | /server/src/main/java/org/jzb/execution/domain/EnlistInvite.java | UTF-8 | 747 | 1.890625 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.jzb.execution.domain;
import com.fasterxml.jackson.annotation.JsonIgnore;
import javax.persistence.Entity;
import javax.p... | true |
c7bf8f22c385b6c4e181b63c520bb69d81844d46 | Java | dangth/Ticket-Management | /src/View/QLLC/ViewThemLichChieu.java | UTF-8 | 15,408 | 2.53125 | 3 | [] | no_license | /**
* Projectname Quản Lý Bán Vé Xem Phim
* Package View.QLLC
* ClassName ViewSuaLichChieu
* @author RubikCrew
* @Version 1.0 April 2013
*/
package View.QLLC;
import Model.LichChieu;
import Model.Phim;
import Model.PhongChieu;
import View.Main.MainView;
import java.awt.Dimension;
import java.awt.Toolkit;
import... | true |
219d7181de765123ea9e9f4cf292498f3cb07705 | Java | diegoMancini/Trabajos-grupales | /src/TrabajoPractico_Distancia/Tester.java | UTF-8 | 532 | 2.984375 | 3 | [] | no_license | package TrabajoPractico_Distancia;
/**
* Created by DiegoMancini on 17/3/17.
*/
public class Tester {
public static void main(String[] args) {
String name = "marcos";
String name2 = "marian";
String word1 = "Marcos";
String word2 = "Marianito";
DistanceCalculator distan... | true |
ab9ca023115372e4d55048fa6fcf69af6e8b9817 | Java | Haber8023/parking_manager | /src/main/java/com/zzx/Service/ServiceImpl/UserServiceImpl.java | UTF-8 | 9,534 | 2.09375 | 2 | [] | no_license | package com.zzx.Service.ServiceImpl;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpSession;
import org.eclipse.paho.client.mqttv3.MqttMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zzx.Mo... | true |
35a83b4da3d3bded81c95a6445290b840aa5e734 | Java | JZionJ/drum-inference | /src/main/java/uk/ac/cam/ba325/Tab/Translation/Parser.java | UTF-8 | 6,404 | 2.515625 | 3 | [] | no_license | package uk.ac.cam.ba325.Tab.Translation;
import java.io.*;
import java.nio.file.FileSystemException;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;
import uk.ac.cam.ba325.Tab.Translation.Exceptions.AlreadySetException;
import ... | true |
49927501f269eb04efc1114dc46f798b92f15f33 | Java | janbodnar/Java-Advanced | /patterns/builder/TaskBuilder.java | UTF-8 | 1,071 | 2.859375 | 3 | [
"BSD-2-Clause"
] | permissive | package com.zetcode;
import java.time.LocalDate;
public class TaskBuilder {
private String name;
private String description;
private boolean isFinished = false;
private LocalDate dueDate;
public TaskBuilder() {
}
public TaskBuilder(String name, String description, boolean isFinished,
... | true |
3c2a77c49921dcc29ff931f3b8bef8b10a603c76 | Java | kncsolutions/dhelm-gfeed-java-client | /src/main/java/in/kncsolutions/dhelm/gfeed/GfeedClient.java | UTF-8 | 19,888 | 1.882813 | 2 | [
"Apache-2.0"
] | permissive | /**
*Copyright 2018 Knc Solutions Private Limited
*
*Licensed under the Apache License, Version 2.0 (the "License");
*you may not use this file except in compliance with the License.
*You may obtain a copy of the License at
*
*http://www.apache.org/licenses/LICENSE-2.0
*
*Unless required by applicable law or agreed to ... | true |
789799539b1c8037837f58aa526293461b1a846a | Java | smalex-als/com.codeforces.smalex | /src/main/java/com/codeforces/smalex/P682C.java | UTF-8 | 5,182 | 2.515625 | 3 | [] | no_license | package com.codeforces.smalex;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.InputMismatchException;
import java.util.List;
public class P682C {
InputStream is;
PrintWri... | true |
463643271cf646b47218770b9029706e2d91bf3f | Java | william-carvalho12/logicadeprogramacao | /Lote01/Java/Prj_Lot0107022019/src/exercicios_lote01/Lt01_EstDecEx21.java | WINDOWS-1252 | 1,369 | 3.6875 | 4 | [] | no_license | /* 21. Receba 4 notas bimestrais de um aluno. Calcule e mostre
* a mdia aritmtica. Mostre a mensagem de acordo com a mdia:
a. Se a mdia for >= 6,0 exibir APROVADO;
b. Se a mdia for >= 3,0 ou < 6,0 exibir EXAME;
c. Se a mdia for < 3,0 exibir RETIDO.
****************************************
Objetivo: Vigs... | true |
cbca2ecaf234be061bc540de776321ff4671f880 | Java | docentmail/skyincity-qaa | /skyincityqaa/src/main/java/com/skyincity/qaa/util/flexwait/ISnapshot.java | UTF-8 | 379 | 1.867188 | 2 | [] | no_license | package com.skyincity.qaa.util.flexwait;
public interface ISnapshot {
public enum SnapshotTypeEnum {
BEFORE_STATE,OK_STATE, WARNING_STATE, ERROR_STATE
}
public String toHTML();
public String toString();
public SnapshotTypeEnum getType();
public void storeArtifacts(ILogEventsStorage logEventsStorage) t... | true |
204d87366d3047c7b15d9df1cbc63d80518e69ac | Java | alexanderlebedev1989/job4j_design_new | /chapter_001/src/main/java/ru/job4j/generic/UserStore.java | UTF-8 | 569 | 2.578125 | 3 | [] | no_license | package ru.job4j.generic;
public class UserStore implements Store<User> {
private MemStore<User> ms = new MemStore<>();
@Override
public void add(User model) {
ms.add(model);
}
@Override
public boolean replace(String id, User model) {
return ms.replace(id, model);
}
@... | true |
525c4b20b96c9510b24e2e24cb4dc259409232ba | Java | imglib/imglib2-ij | /src/main/java/net/imglib2/img/display/imagej/ImageJVirtualStackUnsignedShort.java | UTF-8 | 4,852 | 2.046875 | 2 | [
"BSD-2-Clause"
] | permissive | /*
* #%L
* ImgLib2: a general-purpose, multidimensional image processing library.
* %%
* Copyright (C) 2009 - 2023 Tobias Pietzsch, Stephan Preibisch, Stephan Saalfeld,
* John Bogovic, Albert Cardona, Barry DeZonia, Christian Dietz, Jan Funke,
* Aivar Grislis, Jonathan Hale, Grant Harris, Stefan Helfrich, Mark Hi... | true |
250fbe82dc2ba690fc33d86d7ab74b93008a9383 | Java | z1kmohso5ol/Lab6 | /Lab6_var7.java | UTF-8 | 1,879 | 3.328125 | 3 | [] | no_license | import java.io.*;
public class Lab6_var7 {
public static String[] words;
public static boolean getLine(char w)
{
StringBuilder sb = new StringBuilder();
for (String word : words)
{
if(word.charAt(0) == word.charAt(word.length()-1))
{
return tr... | true |
c91ed84b5e9eedbccce88548147e4787d11ed2be | Java | DavidGiordana/ExtraClass | /GUI/Layouts/PannedLayout.java | UTF-8 | 12,189 | 3.3125 | 3 | [] | no_license | package ExtraClass.GUI.Layouts;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Insets;
import java.awt.LayoutManager2;
import java.io.Serializable;
/**
* Controlador de distribucion de componentes para contenedores
* basado en paneles.
* La implementacion se basa ... | true |
36505e67e41656d4f61e4fc44907e7085dcb25d7 | Java | dans-lab/BlockchainSimulator | /danslab/cutTrough/simulation/chunksize.java | UTF-8 | 912 | 2.9375 | 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 danslab.cutTrough.simulation;
/**
*
* @author AyinalaKaushik(UMKC-
*/
public class chunksize {
public sta... | true |
daccd7a7ef2c232c61928859c07760ef84d2ca88 | Java | ArpNetworking/logback-steno | /src/main/java/com/arpnetworking/logback/SecureRandomProvider.java | UTF-8 | 1,791 | 2.34375 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright 2014 Groupon.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | true |
053ec5d6c89f29ce30d700776b70d361becc16a8 | Java | kobeandonear/xiamgmu3 | /src/main/java/com/njwb/dao/mapper/MenuMapper.java | UTF-8 | 741 | 2.5625 | 3 | [] | no_license | package com.njwb.dao.mapper;
import java.sql.ResultSet;
import java.sql.SQLException;
import com.njwb.entity.Menu;
import com.njwb.util.RowMapper;
public class MenuMapper implements RowMapper{
/**
* rs:查询结果集, 其实从本质上来讲,它和表没有关系,它只是你的查询的结果,如果你的结果中有重命名(别名),那么,rs中就只有别名
*/
public Object mapperObject(ResultSet rs) th... | true |
97379036dc53f998030c944a0cad7d468131b63a | Java | yinyansheng/leetcode | /src/main/java/com/donne/leetcode/P_面试题01_03_URL化.java | UTF-8 | 847 | 3.1875 | 3 | [
"MIT"
] | permissive | package com.donne.leetcode;
/**
* @Author: yinyansheng
* @Date: 2020-07-02
*/
public class P_面试题01_03_URL化 {
public static void main(String[] args) {
String s = replaceSpaces("ds sdfs afs sdfa dfssf asdf ", 27);
}
public static String replaceSpaces(String S, int length) {
in... | true |
b7665f00ad9dfa92cf0ffb37abcbc947ab18c17e | Java | jiangGit/hci_info | /src/java/org/scauhci/official/util/TokenUtil.java | UTF-8 | 792 | 2.734375 | 3 | [] | no_license | package org.scauhci.official.util;
import java.util.HashSet;
import java.util.Random;
import java.util.Set;
import javax.servlet.http.HttpSession;
public class TokenUtil {
public static String create(HttpSession session) {
@SuppressWarnings("unchecked")
Set<String> tokens = (Set<String>) session.getAttribute("... | true |
288e9c6487f512d9ff246a79c267c0c5e3cfa9a7 | Java | 233deepak/AmazonSpecificProblems | /src/main/java/com/deepak/dp/inter/geeks/dp/Histogram.java | UTF-8 | 805 | 3.5 | 4 | [] | no_license | package com.deepak.dp.inter.geeks.dp;
import java.util.Stack;
public class Histogram {
public int findArea(int[] array) {
Stack<Integer> stack = new Stack<Integer>();
int maxArea = Integer.MIN_VALUE;
int i = 1;
for (; i < array.length; i++) {
if (stack.isEmpty()) {
stack.push(i);
} else if (array... | true |
53fc22184b4245dc34680ab15046214733e58a7a | Java | horatiucd/sunsetheader | /src/main/java/com/hcd/sunsetheader/review/ReviewRepository.java | UTF-8 | 183 | 1.515625 | 2 | [] | no_license | package com.hcd.sunsetheader.review;
import org.springframework.data.jpa.repository.JpaRepository;
public interface ReviewRepository extends JpaRepository<Review, Long> {
}
| true |
3d9ec8f99552912d34ac69774b8e6fc9413ee4b4 | Java | seong954t/Algorithm | /1204. 최빈수 구하기/이충완/Solution.java | UTF-8 | 1,094 | 3.171875 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in))... | true |
a6b6fd431a7d293466e86a5ae22217f90a7b4612 | Java | liuhouer/mai | /mai-persist/src/main/java/com/mai/activity/dao/PersonCardDao.java | UTF-8 | 810 | 1.804688 | 2 | [] | no_license | package com.mai.activity.dao;
import com.mai.card.entity.CardStarPhoto;
import com.mai.card.entity.PersonCard;
import com.mai.framework.exception.BaseException;
import com.mai.framework.page.Page;
import com.mai.framework.page.PaginationParameters;
import java.util.List;
/**
* Created by bruce on 2015/10... | true |
b5fca268e7cb99fa54473c51d161c4373e503e98 | Java | xdc0209/java-code | /basicKnowledge/src/com/xdc/basic/api/thread/lockfree/engine/EngineCopyOnWriteArrayList.java | UTF-8 | 576 | 2.234375 | 2 | [] | no_license | package com.xdc.basic.api.thread.lockfree.engine;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import com.google.common.util.concurrent.ServiceManager.Listener;
class EngineCopyOnWriteArrayList
{
private List<Listener> listeners = new CopyOnWriteArrayList<Listener>();
public bool... | true |
5d1bc52ff1145d2e682494ea3849589a415bf04f | Java | Mstch/netty-learn | /simple-chat/src/main/java/com/tiddar/nettylearn/simplechat/ChatMessageDecoder.java | UTF-8 | 1,525 | 2.40625 | 2 | [] | no_license | package com.tiddar.nettylearn.simplechat;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufUtil;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ByteToMessageDecoder;
import io.netty.handler.codec.MessageToMessageDecoder;
import io.netty.util.CharsetUtil;
import org.apache.com... | true |
f95a2e8de8e71ff16425574b10a13544233dd132 | Java | whhh/fop | /FOPCore/src/main/java/com/fop/framework/service/template/ServiceTemplate.java | UTF-8 | 718 | 1.820313 | 2 | [] | no_license | /**
* 文件名 :ServiceTemplate.java
* 创建日期 :2013-9-16
* Copyright (c) 2003-2013 北京联龙博通 * All rights reserved.
*/
package com.fop.framework.service.template;
import java.util.List;
import java.util.Map;
/**
* 描述: 交易流程模板接口
* @version 1.00
* @author xieyg
*
*/
@SuppressWarnings("all")
public interface ServiceTemp... | true |
c2b1b414e803c8139be1364138d6b39f5ff349ab | Java | takap000/SAO-MOD | /SAO/mods/client/gui/GuiSkill.java | UTF-8 | 2,120 | 2.34375 | 2 | [] | no_license | package SAO.mods.client.gui;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.util.StatCollector;
import org.lwjgl.opengl.GL11;
import SAO.mods.inventory.ContainerSkill;
import cpw.mods.fml.relaunc... | true |
4491d41232878adf9551dd3dc163a66dd53ac404 | Java | CynPa/gambaSoftware | /MIO/AS2/src/main/java/com/asinfo/as2/datosbase/controller/EmpresaAgilBean.java | UTF-8 | 62,942 | 1.617188 | 2 | [] | no_license | /* 1: */ package com.asinfo.as2.datosbase.controller;
/* 2: */
/* 3: */ import com.asinfo.as2.configuracionbase.controller.TipoCuentaBancariaBean;
/* 4: */ import com.asinfo.as2.configuracionbase.controller.TipoIdentificacionBean;
/* 5: */ import com.asinfo.as2.configuracionbase.... | true |
bb763cbf4b4fdec4a9cba81be7a2633b38d68234 | Java | LargePixels/CrackingCodingInterview | /src/main/java/net/largepixels/crackingcodinginterview/Ch01/Ch01Ex07.java | UTF-8 | 1,375 | 3.015625 | 3 | [] | no_license | package net.largepixels.crackingcodinginterview.ch01;
import net.largepixels.crackingcodinginterview.util.UtilMethods;
import java.util.ArrayList;
import java.util.List;
/**
* Created by johnminchuk on 2/7/16.
*/
public class Ch01Ex07 {
private void runMe() {
int[][] mtx1 = {
{1, 1, 1,... | true |
a287174a9c9a68ca94298b696cf5ae94340f34a0 | Java | wangear/LoanSmartCal | /app/src/main/java/wangjoo/pangloancalculator/RepaymentInfo.java | UTF-8 | 1,068 | 2.484375 | 2 | [] | no_license | package wangjoo.pangloancalculator;
/**
* Created by wang on 2014-11-04.
*/
public class RepaymentInfo {
private String date;
private double repayment;
private double interest;
private double principal;
private double restMoney;
private double interestRate;
public double getRepayment() {
return repayment;... | true |
44f64f402c9c3f42fec47589bef7883d0b4dc9ba | Java | hendraaagil/ImageGalleryAndroid | /app/src/main/java/com/imagegallery/ExampleItem.java | UTF-8 | 474 | 2.8125 | 3 | [] | no_license | package com.imagegallery;
public class ExampleItem {
private String imageUrl, creator;
private int likes;
public ExampleItem(String imageUrl, String creator, int likes) {
this.imageUrl = imageUrl;
this.creator = creator;
this.likes = likes;
}
public String getImageUrl() {
... | true |
30686375e2088a4901e9ccfdab04738b061ea4f2 | Java | pangfuCheung/learningcode | /proxy/src/main/java/com/yb/cheung/homework1/TanglangImpl.java | UTF-8 | 167 | 2.109375 | 2 | [] | no_license | package com.yb.cheung.homework1;
public class TanglangImpl implements Tanglang {
public void eating() {
System.out.println("螳螂吃蝉.....");
}
}
| true |
e4ccc586584b6076fe70aff0538d1147958afaab | Java | aplich/SingletonPattern | /src/BasicSingletonThreadSafety.java | UTF-8 | 486 | 2.859375 | 3 | [] | no_license | public class BasicSingletonThreadSafety {
private static BasicSingletonThreadSafety instance;
private BasicSingletonThreadSafety() {
}
public static BasicSingletonThreadSafety getInstance() {
if (instance == null) {
synchronized (BasicSingletonThreadSafety.class) {
... | true |
298df89442e50ed27ecc3bece0d2c01132dc1b59 | Java | kaiIdea/collectTest | /src/com/company/jvm/SubClass.java | UTF-8 | 210 | 1.632813 | 2 | [] | no_license | package com.company.jvm;
/**
* @Auther: YangKai
* @Date: 2021/8/29 22:40
* @Description:
*/
public class SubClass extends SuperClass{
static {
System.out.println("SubClass init...");
}
}
| true |
ac3af4e82e9cbb09812ebd0fb811dda05dd40e1e | Java | technostd/myAwsomeServer | /src/main/java/util/ArticleUtils.java | UTF-8 | 1,576 | 2.484375 | 2 | [] | no_license | package util;
import com.google.gson.Gson;
import com.sun.net.httpserver.HttpExchange;
import java.util.Map;
import database.MyDatabase;
import objects.forms.*;
import static util.DecodeUtils.writeJson;
public class ArticleUtils {
public static void addArticle(HttpExchange exchange, Gson gson, MyDatabase data... | true |
19cba9e12f074419bc3a14c443a3858d9ff9bcff | Java | finit3Loop/IFT-194 | /LectureAct4/src/com/jarret/LectureAct4/Prime.java | UTF-8 | 1,228 | 4.25 | 4 | [] | no_license | package com.jarret.LectureAct4;
public class Prime
{
int count = 0; // Count the number of prime numbers
int number = 2; // A number to be tested for primeness
// System.out.println("The first 50 prime numbers are \n");
// Repeatedly find prime numbers
//Takes first int as number of primes second as the number ... | true |
ba55157b43dc984a1b0de7640427512d3cfa22f3 | Java | i-novus-llc/n2o-framework | /backend/n2o/n2o-config/src/main/java/net/n2oapp/framework/config/metadata/compile/control/ListControlCompiler.java | UTF-8 | 8,957 | 1.585938 | 2 | [
"Apache-2.0"
] | permissive | package net.n2oapp.framework.config.metadata.compile.control;
import net.n2oapp.criteria.dataset.DataSet;
import net.n2oapp.framework.api.StringUtils;
import net.n2oapp.framework.api.exception.N2oException;
import net.n2oapp.framework.api.metadata.compile.CompileContext;
import net.n2oapp.framework.api.metadata.compil... | true |
9b86f721656bdcb3b686fd3fc13fb89e1678b768 | Java | NavarroRamiro14/PruebaTdp2021 | /TDAColaCP/Entry.java | UTF-8 | 266 | 2.375 | 2 | [] | no_license | package TDAColaCP;
public interface Entry<K, V> {
//public methods of the Entry interface
/**
* Consulta la Clave de la entrada
* @return Clave
*/
public K getKey();
/**
* Consulta el Valor de la entrada
* @return Valor
*/
public V getValue();
}
| true |
e45eee00c28001bd68fe7b991ae05b77a17220de | Java | grantkang/AutoTownMayor-WebApp | /server/src/main/java/com/autotownmayor/server/config/ApplicationConstant.java | UTF-8 | 677 | 2.15625 | 2 | [] | no_license | package com.autotownmayor.server.config;
// TODO: Maybe set the values of these constants application-{environment}.properties
public class ApplicationConstant {
public static final int USERNAME_MIN_LENGTH = 4;
public static final int USERNAME_MAX_LENGTH = 30;
public static final String USERNAME_PATT... | true |
68e6a9a5fa745322597fbe0d1ad3d3413d640a99 | Java | akweury/Shanxue0.1 | /app/src/main/java/testlearn/shanxue/edu/shanxue01/models/MomoModel.java | UTF-8 | 3,501 | 2.296875 | 2 | [] | no_license | package testlearn.shanxue.edu.shanxue01.models;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import testlearn.shanxue.edu.shanxue01.control.MyDBHelper;
import java.io.Serializable;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
public class ... | true |
8056bfcc8cfe0d6704fc570f403b2a459ec81142 | Java | haocheng23/om_center | /src/main/java/cn/akeychat/enterprise/config/SwaggerConfig.java | UTF-8 | 2,695 | 2.296875 | 2 | [] | no_license | package cn.akeychat.enterprise.config;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configura... | true |
86e9a2e1b17a7c3ccf48d490404ae84e0d84114a | Java | songsong-ss/hackerda | /web/src/test/java/com/hackerda/platform/infrastructure/repository/GradeRepositoryImplTest.java | UTF-8 | 3,643 | 1.726563 | 2 | [
"MIT"
] | permissive | package com.hackerda.platform.infrastructure.repository;
import com.hackerda.platform.domain.grade.GradeBO;
import com.hackerda.platform.domain.grade.GradeRepository;
import com.hackerda.platform.domain.grade.TermGradeBO;
import com.hackerda.platform.domain.grade.TermGradeViewBO;
import com.hackerda.platform.domain.st... | true |
87c59017ea20ed86c45a9bac3b4b62fce15a4ef4 | Java | mydata-framework/mydata-framework-example | /src/main/java/run/mydata/example/example8/MyDataExample8Application.java | UTF-8 | 503 | 1.898438 | 2 | [] | no_license | package run.mydata.example.example8;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import run.mydata.config.MyDataAutoConfig;
@SpringBootApplication
@MyDataAutoConfig
public class MyDataExample8Application {
public static void main(String[... | true |
8a1d98ce721f8e849519c64d197fffa673125b7b | Java | enaawy/gproject | /gp_JADX/com/google/android/finsky/detailspage/dk.java | UTF-8 | 1,527 | 1.671875 | 2 | [] | no_license | package com.google.android.finsky.detailspage;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;
import com.google.android.finsky.cv.p177a.C2441n;
import com.google.android.play.image.C1294w;
import ... | true |
7cb945e4883d11fcffac3f9f341b9d6de8c667e8 | Java | 403805954/usian | /usian_order_web/src/main/java/com/usian/config/SubmitConfig.java | UTF-8 | 570 | 1.890625 | 2 | [] | no_license | package com.usian.config;
import com.usian.interceptor.SubmitInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class Su... | true |
d1954ee2eaa9cb70c57496590e4e88d5db91c860 | Java | karesti/MowItNow | /mowitnow/Fichero.java | UTF-8 | 2,027 | 2.875 | 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 mowitnow;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
im... | true |
344e956b2d1c332cc08bff0ceae568c94b9cf1a3 | Java | CepheiMD/Homework2 | /august/august31/pentagonalnumber/PentagonalNumbers.java | UTF-8 | 395 | 3.296875 | 3 | [
"MIT"
] | permissive | package com.tekwill.homework2.august.august31.pentagonalnumber;
public class PentagonalNumbers {
public static int pentagonalNumber(int j){
int result = 0;
for (int n = 1; n <=j; n++){
result = (n*(3*n-1))/2;
System.out.printf("%-6d",result);
if(n % 10 ==0)
... | true |
6d1c77436c1366bc31cbe51d29efe2fa469a38aa | Java | noonecare/algorithm | /sortalgorithm/src/test/java/QuickSortTest.java | UTF-8 | 1,490 | 3.21875 | 3 | [] | no_license | import junit.framework.TestCase;
public class QuickSortTest extends TestCase {
public void testPartition() {
int a[] = {1, 2, 3, 4, 5, 6};
int length = a.length;
assertEquals(QuickSort.partition(a, 0, length - 1), length - 1);
int b[] = {6, 5, 4, 3, 2, 1};
length = b.length;... | true |
b282de11aa3b14a0b1102e7c51b6830d138bf7b4 | Java | galibimtiaz/Result-System | /src/database/DatabaseHelper.java | UTF-8 | 15,855 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | package database;
import model.*;
import java.sql.*;
import java.util.ArrayList;
public class DatabaseHelper {
private static DatabaseHelper instance;
private Connection c = null;
private Statement stmt = null;
private DatabaseHelper() {
c = SQLiteConnection.Connector();
... | true |
55509fec862d53ac4cb7596db74e2c39e8348bef | Java | Watson9023/Assignment2 | /Small Programmes Demonstrating TDD-Question1/src/main/java/Truth.java | UTF-8 | 121 | 2.0625 | 2 | [] | no_license | /**
* Created by Long on 3/17/2017.
*/
public class Truth {
public boolean myAge(){
return true;
}
}
| true |
0b9d4d26220ca2bcfb636f30544ba280f4085a8e | Java | zhendexuebuhui/VBlog | /src/main/java/com/xtm/controller/NewsController.java | UTF-8 | 6,522 | 2.328125 | 2 | [] | no_license | package com.xtm.controller;
import com.xtm.model.*;
import com.xtm.service.NewsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
i... | true |
2268fedea0e326ef90e30d2d1ce332f0e7ce27dd | Java | RevatureRobert/2102-Study-Force-Backend | /src/main/java/com/revature/studyforce/notification/model/FlashcardSubscriptionId.java | UTF-8 | 704 | 2.390625 | 2 | [] | no_license | package com.revature.studyforce.notification.model;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Embeddable;
import java.io.Serializable;
/**
* Basic Model for a flashcard subscription compositeKey
* @author Brandon Pinkerton
*/
@Embeddable
@NoArgsConstructor
@Data
public class Fl... | true |
73c747117cf72d92c830dd58733cfb2053e0593c | Java | buddhasfinger/lecture2021 | /Ex0331/src/main/java/com/site/dto/MemberDto.java | UTF-8 | 337 | 1.765625 | 2 | [] | no_license | package com.site.dto;
import java.sql.Timestamp;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MemberDto {
private String id,pw,name,nname,email1,email2,tel,
address1,address2,gender,hobby;
private Tim... | true |
4895ee0d3443cf55e4a029a2add2f871447d844c | Java | vildozo/RAE_JBHAVE_SERENITY | /src/test/java/javier_jbehave_serenity/google/pages/Google_Page.java | UTF-8 | 1,893 | 2.28125 | 2 | [] | no_license | package javier_jbehave_serenity.google.pages;
import static ch.lambdaj.Lambda.convert;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import ch.lambdaj.function.convert.Converter;
import net.serenitybdd.core.annotations.findby.FindBy;
import net.serenitybdd.core.annotat... | true |
394a42f04c910e895dac3b6024f34ad044b969d4 | Java | tanyinqing/JavaSE_20170902 | /src/main/java/cn/edu/tsinghua/javase/multithreading/ObjectTest.java | UTF-8 | 749 | 3.078125 | 3 | [] | no_license | package cn.edu.tsinghua.javase.multithreading;
public class ObjectTest {
public static void main(String[] args) throws InterruptedException {
/* Object o=new Object();
System.out.println(o);
// o.wait();//等待
o.notify();//通知
o.notifyAll();//通知所有的线程
String s="hello";
... | true |
1dabe0b7657aacb14ee9dace7e5232e76200ba91 | Java | UncleThree0402/JavaLearning | /src/ncku/unclethree/SecondsAndMinutesChallenge.java | UTF-8 | 760 | 3.3125 | 3 | [] | no_license | package ncku.unclethree;
import java.text.DecimalFormat;
public class SecondsAndMinutesChallenge {
public static String getDurationString(long minutes, long seconds) {
DecimalFormat df = new DecimalFormat("00");
if (minutes < 0 || seconds < 0 || seconds > 59) {
return "Invalid Value";... | true |
184f491c01016288beb34628bdcff989dc406b9d | Java | ddubtsov35/2bSafe_UI_Tests | /src/main/java/com/dubtsov/safe/PageObject/Registration/Web/RegistrationStep5Page.java | UTF-8 | 609 | 1.828125 | 2 | [] | no_license | package com.dubtsov.safe.PageObject.Registration.Web;
import com.dubtsov.safe.PageObject.AddProfileTemplate.AddProfileStep1Template;
import org.openqa.selenium.By;
import static com.codeborne.selenide.Selenide.$;
/**
* Created by user on 27.10.17.
*/
public class RegistrationStep5Page extends AddProfileStep1Templa... | true |
2d0dc015742241b61d94cd04e30c0e2506c1de6a | Java | bbejeck/ksql | /ksql-engine/src/main/java/io/confluent/ksql/exception/KsqlTopicAuthorizationException.java | UTF-8 | 1,337 | 1.929688 | 2 | [
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | /*
* Copyright 2019 Confluent Inc.
*
* Licensed under the Confluent Community License (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.confluent.io/confluent-community-license
*
* Unless required by applicable law or a... | true |
6b4aecb16ecda643d1e6a03bc74a9eae27cdddca | Java | P79N6A/icse_20_user_study | /methods/Method_49057.java | UTF-8 | 142 | 1.546875 | 2 | [] | no_license | @Override public EdgeLabel addProperties(EdgeLabel edgeLabel,PropertyKey... keys){
return getAutoStartTx().addProperties(edgeLabel,keys);
}
| true |
5c48ab6ff643e9bb5acdf625fa7ed55a2a6a2935 | Java | brianzhu2001/free-him | /core/src/com/adisgrace/games/UIController.java | UTF-8 | 43,243 | 2.28125 | 2 | [] | no_license | package com.adisgrace.games;
import com.adisgrace.games.models.TargetModel;
import com.adisgrace.games.util.AssetDirectory;
import com.adisgrace.games.util.ButtonFactory;
import com.adisgrace.games.util.GameConstants;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.... | true |
4fac4ca734766ede2956cb38d8ac1a51ce4650f3 | Java | Sensiunk/BreakoutStarterLatest1 | /InternalPanel.java | UTF-8 | 997 | 3.546875 | 4 | [] | no_license | package Engine;
import java.awt.Graphics;
import javax.swing.JPanel;
// Internal game class. Should not be used directly.
public class InternalPanel extends JPanel {
/**
* Required for extending from JPanel
*/
private static final long serialVersionUID = 4836735869326587280L;
// Ref... | true |
e398468e69bbf1fa56810b3a44cea8a59ab15c21 | Java | nmthangdn2000/Social_Network_android | /app/src/main/java/thang/com/uptimum/Main/FriendFragment.java | UTF-8 | 7,274 | 2.1875 | 2 | [] | no_license | package thang.com.uptimum.Main;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.util.Log;
import android... | true |
ea190f3e455a276e9c61372f79818bca2d2f909d | Java | kanagalasrivalli/Course | /src/main/java/com/hcl/model/Student.java | UTF-8 | 1,537 | 2.515625 | 3 | [] | no_license | package com.hcl.model;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.Table;
im... | true |
f61c5b743c58ed78cce2fdd3713e6f089b0f7639 | Java | jxblum/spring-data-geode | /spring-data-geode/src/test/java/org/springframework/data/gemfire/repository/sample/AlgorithmRepositoryIntegrationTests.java | UTF-8 | 3,780 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2010-2022 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | true |
19fbb07ba2b542c839020770d78623119cfbfda9 | Java | OZakhlivny/geek-java-ee-01-27 | /first-jsf-app/src/main/java/ru/geekbrains/repositories/ProductRepository.java | UTF-8 | 1,661 | 2.546875 | 3 | [] | no_license | package ru.geekbrains.repositories;
import ru.geekbrains.entities.Product;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import java.util.List;
@Stateless
public class ProductRepository {
p... | true |
422e6ff44d2edae0182c04069b7f8efe09b13cbe | Java | aaslin/shoppinglist | /shoppinglist-web/shoppinglist-web-app/src/main/java/se/aaslin/developer/shoppinglist/client/login/Login.java | UTF-8 | 1,177 | 2.0625 | 2 | [] | no_license | package se.aaslin.developer.shoppinglist.client.login;
import se.aaslin.developer.shoppinglist.client.login.presenter.LoginPresenter;
import se.aaslin.developer.shoppinglist.client.login.service.LoginViewService;
import se.aaslin.developer.shoppinglist.client.login.service.LoginViewServiceAsync;
import se.aaslin.devel... | true |
0759c08baf902addc75f1d15556c5d662e18f1db | Java | maliksoban/school | /src/main/java/com/tss/domain/RoleEnum.java | UTF-8 | 435 | 2.515625 | 3 | [] | no_license | package com.tss.domain;
/**
* Created by MalikSoban on 25/08/2017.
*/
public enum RoleEnum {
USER(3,"ROLE_USER");
private Integer id;
private String roleType;
private RoleEnum(final Integer id, final String roleType){
this.id = id;
this.roleType = roleType;
}
public Strin... | true |
688119f89d9c531a76b16efe6faeeda110016678 | Java | maccopacco/android_lib | /src/main/java/com/maxdreher/consumers/ConsumerWithThrow.java | UTF-8 | 203 | 2.421875 | 2 | [
"MIT"
] | permissive | package com.maxdreher.consumers;
/**
* Same as {@link java.util.function.Consumer}, but with throw
*
* @param <T>
*/
public interface ConsumerWithThrow<T> {
void accept(T t) throws Exception;
}
| true |
6682358f0887d207643e6758803e8427f4c24594 | Java | huanxyx/LeetCode | /src/com/xyx/leetcode/solution/Solution051.java | UTF-8 | 2,232 | 3.546875 | 4 | [] | no_license | package com.xyx.leetcode.solution;
import java.util.ArrayList;
import java.util.List;
//51. N-Queens
public class Solution051 {
private boolean[] rowUsed;
private boolean[] colUsed;
private boolean[] topToBotUsed;
private boolean[] botToTopUsed;
public List<List<String>> solveNQueens(int n) {
... | true |
f8a229f1eab026ab0bced4a92bc116513b861c67 | Java | muradhajiyev/cs425-hcmc | /src/main/java/edu/miu/cs425/hcmc/service/PatientServiceImpl.java | UTF-8 | 914 | 2.3125 | 2 | [] | no_license | package edu.miu.cs425.hcmc.service;
import edu.miu.cs425.hcmc.dao.PatientRepository;
import edu.miu.cs425.hcmc.entity.Patient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class PatientServiceImpl implements Patie... | true |
06b65e8a7645d874345bf0039c566384823ca984 | Java | JesseYang/Tablet | /app/src/main/java/com/efei/student/tablet/utils/CollectionUtils.java | UTF-8 | 283 | 2 | 2 | [] | no_license | package com.efei.student.tablet.utils;
import java.util.Collection;
public final class CollectionUtils
{
private CollectionUtils()
{
}
public static boolean isEmpty(Collection<?> collection)
{
return null == collection || collection.isEmpty();
}
}
| true |
0b7f66f69f6c4e6a6e6e4d2369898cff12b043d2 | Java | byte4sec/cdmi-core-monitor | /src/main/java/javax/cim/CIMDateTimeInterval.java | UTF-8 | 22,208 | 1.734375 | 2 | [
"Apache-2.0"
] | permissive | /**
* (C) Copyright IBM Corp. 2006, 2013
*
* THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
* ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
* CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT.
*
* You can obtain a current copy of the Eclipse Public License from
... | true |