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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
921286498e7397745c087d6226590e71ced72152 | Java | strohs/springboot-blogen | /src/test/java/com/blogen/services/PostServiceImplTest.java | UTF-8 | 16,903 | 2.03125 | 2 | [] | no_license | package com.blogen.services;
import com.blogen.commands.PageCommand;
import com.blogen.commands.PostCommand;
import com.blogen.commands.SearchResultPageCommand;
import com.blogen.commands.mappers.CategoryCommandMapper;
import com.blogen.commands.mappers.PostCommandMapper;
import com.blogen.domain.Category;
import com.... | true |
551d6379020f9b34fe98b73b55ecb75a44c495f6 | Java | TheUnpunished/tabletop_server | /src/main/java/ru/unpunished/yakovlev/tabletop/Controller/Game/d20/DnD/DnDPersCharacteristicsController.java | UTF-8 | 798 | 1.820313 | 2 | [] | no_license | package ru.unpunished.yakovlev.tabletop.Controller.Game.d20.DnD;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import ru.unpunished.yakovlev.tabletop.Controller.AbstractController;
import ru.unpunished.yakovlev.tabletop.Model.Game.d20.DnD.DnDPersCharac... | true |
ca8657d2deb16c7d695185af22ffa9e753729aa9 | Java | andy-goryachev/FxDock | /src/goryachev/common/util/text/ZQueryParser.java | UTF-8 | 3,899 | 2.515625 | 3 | [
"Apache-2.0",
"LGPL-3.0-only"
] | permissive | // Copyright © 2013-2023 Andy Goryachev <andy@goryachev.com>
package goryachev.common.util.text;
import goryachev.common.util.CKit;
import goryachev.common.util.CList;
public class ZQueryParser
{
private final String expression;
private CList<QuerySegment> includes = new CList();
private CList<QuerySegme... | true |
342e7100b190d1d8f82387a295cade654fe5c9f9 | Java | jayasimhareddy8500/flightbooking | /src/main/java/com/easyfly/booking/repository/LocationRepository.java | UTF-8 | 380 | 2.03125 | 2 | [] | no_license | package com.easyfly.booking.repository;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.easyfly.booking.entity.Location;
@Repository
public interface LocationRepository extends JpaRepository<Location, Integer>{
Op... | true |
1d9348a6db44317eda1be14c0d1db4a7bd5cc3d5 | Java | AnkitPandoh/codechef | /src/practice/MakeHimHappy.java | UTF-8 | 2,055 | 3.328125 | 3 | [] | no_license | package practice;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class MakeHimHappy
{
int mid;
static int min = 99999999;
static boolean check = false;
public st... | true |
5317194052ec3ea80c540f66a6eaac3571c5384c | Java | GuilhermeJackson/games-wiki | /app/src/main/java/br/com/hbsis/hbgameswiki/GameDao.java | UTF-8 | 931 | 2.140625 | 2 | [] | no_license | package br.com.hbsis.hbgameswiki;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import java.util.List;
@Dao
public interface GameDao {
/**Seleciona todos os jogos guardados no banco de dados
*
* @return List<Game>
*/
@Query("SEL... | true |
025576976fa0ca7fb2e61a1e07fc7738871cef4d | Java | LaurentDumont/log121-tp1 | /src/Forme/Square.java | UTF-8 | 520 | 3.328125 | 3 | [] | no_license | package Forme;
import java.awt.Color;
import java.awt.Graphics;
public class Square extends Forme {
private int x1, y1, x2, y2;
public Square(int x1, int y1, int x2, int y2) {
this.x1 = x1;
this.y1 = y1;
this.x2 = x2;
this.y2 = y2;
}
public void draw(Graphics g) {
g.setColor(Color.BL... | true |
203b0dad053498a3a9f027c7fbc02f52a9ddcae3 | Java | elenalexe/bank-accounts-app | /src/Data_Source_Logic_Layer/LoginMapper.java | UTF-8 | 8,836 | 2.84375 | 3 | [] | no_license | package Data_Source_Logic_Layer;
import Domain_Logic_Layer.Login;
import java.sql.*;
import java.lang.String;
public class LoginMapper
{
public static boolean getLoginAdmin(String username, String password)
{
try
{
DataBaseConnection db = DataBaseConnection.getConnection();
... | true |
d69181fd00878eed95366666a6fed08c98630154 | Java | EchoIIR/javaViedoJunit | /src/main/java/echo/viedo/unit4to8/TicketDemo.java | UTF-8 | 1,401 | 3.828125 | 4 | [] | no_license | package echo.viedo.unit4to8;
// 买票:
// 需求:多个人,买票----》多线程
// 一张票,有人买了,其他人就不能再买了。
// 方法一
// class Ticket extends Thread{
// private int num = 10; //票数
// private static int num = 20; //定义为static类型后,大家共享票,不会出现一票多人
// public void run(){
// while(true){
// if(num > 0){
// System.out.print... | true |
1d29b06e60c0d788a0f354fc0218c10551392780 | Java | talluru37/MITS | /ERS API/src/com/ers/jarm/api/folder/impl/RecordFolderOperationsImpl.java | UTF-8 | 52,159 | 1.75 | 2 | [] | no_license | package com.ers.jarm.api.folder.impl;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import org.apache.log4j.Logger;
import com.ers.jarm.api.bean.RecordBean;
import com.ers.jarm.api.bean.RecordFolderBea... | true |
2468b1c64667ce81b1709b042adc175680961b4e | Java | JoseEliasUES/Financiero2020 | /Financiero/src/proyectofinanciero/CxC/FacturaAbono.java | UTF-8 | 19,171 | 2.0625 | 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 proyectofinanciero.CxC;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.print.PageFormat;
import java.aw... | true |
5e0bc5c75f1b38de7025e4d09b4974c0eef9e8f6 | Java | unkownc/homework | /src/com/bigjava/thread/Test.java | UTF-8 | 421 | 2.21875 | 2 | [] | no_license | package com.bigjava.thread;
public class Test {
public static void main(String[] args) {
ProductPool pool = new ProductPool();
Producer p1 = new Producer("p1", pool);
Producer p2 = new Producer("p2", pool);
Producer p3 = new Producer("p3", pool);
Consumer c1 = new Consumer("c1", pool);
Consumer c2 = new... | true |
61cd51514c1969acdf35b5f7a8cc0a4f526a4454 | Java | rahulgurnani/sensorlog | /app/src/main/java/com/curefit/sensorapp/data/AccelerometerData.java | UTF-8 | 766 | 2.3125 | 2 | [] | no_license | package com.curefit.sensorapp.data;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
/**
* Created by rahul on 25/08/17.
*/
public class AccelerometerData {
List<Float> aV;
long ts;
// Contructors
publi... | true |
b990fb34ede83ec4e81aad35c7f5e866b13073be | Java | prabug2010/jenkins-log-analyzer | /jenkins-util/src/main/java/com/ashokram/jenkins/constants/JenkinsStaticStore.java | UTF-8 | 1,652 | 2.390625 | 2 | [] | no_license | package com.ashokram.jenkins.constants;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
impor... | true |
7512357a468bf376c0538e146579dc4e6d04d4be | Java | GaiverK/Java-HomeWork | /06. Home Work/IStudentConverter и IStudentPrinter через анонимные классы/src/Printers/PrintDelegate.java | UTF-8 | 290 | 2.5625 | 3 | [
"MIT"
] | permissive | package Printers;
import Converters.IStudentConverter;
import com.company.Student;
public class PrintDelegate {
public PrintDelegate(IStudentPrinter[] isp, Student aStudent) {
for( IStudentPrinter printer : isp ){
printer.StudentOut(aStudent);
}
}
}
| true |
cdb3fde5ef709b20cee5857a75d51d242d09a7f2 | Java | dardin88/kids-project-unisa | /kids/src/it/unisa/kids/serviceManagement/canteenManagement/servlet/CanteenUtilities.java | UTF-8 | 1,898 | 2.1875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.unisa.kids.serviceManagement.canteenManagement.servlet;
import it.unisa.kids.accessManagement.registrationChildManagement.RegistrationChild;
import it.unisa.kids.common.DBNames;
import it.unisa.kids.common.Re... | true |
d09dc37b0cf20cefb65445b8a18a6dd126e059d2 | Java | hortonworks/cloudbreak | /freeipa-api/src/main/java/com/sequenceiq/freeipa/api/v1/freeipa/user/model/SynchronizeUserRequest.java | UTF-8 | 648 | 1.804688 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"ANTLR-PD",
"CDDL-1.0",
"bzip2-1.0.6",
"Zlib",
"BSD-3-Clause",
"MIT",
"EPL-1.0",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-jdbm-1.00",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.sequenceiq.freeipa.api.v1.freeipa.user.model;
import java.util.Set;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
@ApiModel("SynchronizeUserV1Request")
@JsonIgnoreProperties(ignoreUnknown = true)
public class SynchronizeUserRequest extends Synchro... | true |
3850e825748dbb80fdc8ff9c46ffa853b662c52c | Java | lizhling/scAndroid_project | /esop/genymotion_trunk/src/com/starcpt/cmuc/utils/StarCpyDateUtils.java | UTF-8 | 1,220 | 2.71875 | 3 | [] | no_license | package com.starcpt.cmuc.utils;
import java.util.Calendar;
public class StarCpyDateUtils {
public static long getTodayFrom(){
Calendar start = Calendar.getInstance();
start.set( Calendar.HOUR_OF_DAY,00);
start.set( Calendar.MINUTE, 0);
start.set( Calendar.SECOND,0);
retur... | true |
94826f7f32027a0f870e3e812b36f2404e192f4f | Java | virgiliuguraliuc/Agenda | /src/main/java/org/fasttrackit/web/AgendaServletSearch.java | UTF-8 | 1,341 | 2.234375 | 2 | [] | no_license | package org.fasttrackit.web;
import org.fasttrackit.config.ObjectMapperConfiguration;
import org.fasttrackit.domain.Agenda;
import org.fasttrackit.service.AgendaService;
import org.fasttrackit.transfer.SaveAgendaRequest;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.s... | true |
f7d8b28c5dc43364705859b6a8622060799bd6cd | Java | Sebastian-0/ICPC-Notebook | /code/Structures/ZArray.java | UTF-8 | 1,142 | 3.296875 | 3 | [
"MIT"
] | permissive | // Finds patterns in text, also constructs a z-array
private static class ZArray {
static int search(String text, String pat) {
// Note: replace $ if found in text or pat!
String str = pat + "$" + text;
int[] z = getZArray(str);
for (int i = 1; i < z.length; i++) {
if (z[i] == pat.l... | true |
8d5cd38bef41925274946d17b4940cde427a8a28 | Java | Vitaliu2000/05112019_myVersion_sb_ku_2019_10_materials | /java_reboot_L06/src/main/java/ru/itvitality/sbrf/cu/rj/atm/atm/ATMService.java | UTF-8 | 243 | 1.835938 | 2 | [] | no_license | package ru.itvitality.sbrf.cu.rj.atm.atm;
import java.io.IOException;
/**
* Команды для инкасаторов
*/
public interface ATMService {
Integer getBalance();
void saveToFile(String fileName) throws IOException;
}
| true |
04168e39fa6446459ac91b30b5fbdfc5f806a22a | Java | karolbisztyga/mazeProject | /main/java/com/mazeproject/servlets/ajax/GetMazes.java | UTF-8 | 7,980 | 2.296875 | 2 | [] | no_license | package com.mazeproject.servlets.ajax;
import com.mazeproject.database.MazeEntity;
import com.mazeproject.database.UserEntity;
import com.mazeproject.exceptions.WrongMazeFormatException;
import com.mazeproject.servlets.support.Security;
import com.mazeproject.servlets.support.UserSessionStorage;
import java.io.IOExcep... | true |
e2eea87a99b7aadc3d5a0e6b9e171c3d309b64db | Java | bosscloud/iso8583 | /src/main/java/cn/agiledata/iso8583/config/ISO8583Mac.java | UTF-8 | 1,005 | 2.078125 | 2 | [] | no_license | package cn.agiledata.iso8583.config;
import java.io.Serializable;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
/**
* ISO8583 Mac配置
*
* @author zln
*
*/
@XmlRootElement(name... | true |
31cff6ee9236d43015657918fdc8c29a6ca2dc55 | Java | hexiuyue/licaishi | /baselib/build/generated/data_binding_base_class_source_out/debug/dataBindingGenBaseClassesDebug/out/com/guoshi/baselib/databinding/ShareViewBinding.java | UTF-8 | 3,486 | 1.835938 | 2 | [] | no_license | package com.guoshi.baselib.databinding;
import android.databinding.DataBindingUtil;
import android.databinding.ViewDataBinding;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import andr... | true |
c3393fc85f9a0cdb358583e8a862c2ab8e8c84d4 | Java | GaryCao97/CodeWarehouse | /Java/sy/src/sy5/DateToDay.java | GB18030 | 1,908 | 3.171875 | 3 | [] | no_license | package sy5;
import javax.swing.JOptionPane;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.HPos;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.sce... | true |
b13a5b9f5316b0cfc8a00d8a7cd8e01be8a61435 | Java | BobIsOnFire/chat_revisited | /client/src/main/java/com/bobisonfire/chat/client/message/User.java | UTF-8 | 942 | 2.96875 | 3 | [] | no_license | package com.bobisonfire.chat.client.message;
import java.io.Serializable;
public class User implements Serializable {
private String name;
private boolean pasta;
private int color;
User() {
this.name = "";
this.pasta = true;
this.color = 7;
}
public User(String name) ... | true |
46a689fe142a849504d28b2d12b590d5ca486c52 | Java | 412326qin/NettyStudy | /src/main/java/com/mashibing/io/nio/CharsetTest.java | UTF-8 | 1,888 | 3.09375 | 3 | [] | no_license | package com.mashibing.io.nio;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.charset.Charset;
import java.nio.charset.CharsetDecoder;
import java.nio.charset.CharsetEncoder;
import java.util.Map;
import java.util.Map.Entry;
import org.junit.Test;
public class CharsetTest {
priv... | true |
5aa184585059c05873e3a87b845386859f74c7ad | Java | RideOBuddy/RideoBuddy | /src/main/java/com/rideobuddy/RideoBuddy.java | UTF-8 | 465 | 1.789063 | 2 | [] | no_license | package com.rideobuddy;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
@SpringBootApplication
@EnableConfigurationProperties
public class RideoBuddy {
public sta... | true |
c1e226311c6e7915d5d52d4bfe10dcd69bc5f495 | Java | Luzzu/Metrics | /linked-data-quality-metrics/accessibility/src/main/java/io/github/luzzu/linkeddata/qualitymetrics/accessibility/licensing/HumanReadableLicense.java | UTF-8 | 6,223 | 2.09375 | 2 | [
"MIT"
] | permissive | package io.github.luzzu.linkeddata.qualitymetrics.accessibility.licensing;
import java.util.HashSet;
import org.apache.jena.graph.Node;
import org.apache.jena.rdf.model.Model;
import org.apache.jena.rdf.model.ModelFactory;
import org.apache.jena.rdf.model.Resource;
import org.apache.jena.rdf.model.Statement;
import o... | true |
9c86b4a33f767f8cc68a1f1d07465532612e0a76 | Java | hkeeble/LincolnImpGame | /Advergame/core/src/com/henrik/advergame/pathfinding/Link.java | UTF-8 | 413 | 3.046875 | 3 | [] | no_license | package com.henrik.advergame.pathfinding;
/**
* Represents a link to a node and the cost of the mode.
*/
public class Link {
private NavigationNode node;
private int cost;
public Link(NavigationNode node, int cost) {
this.node = node;
this.cost = cost;
}
public NavigationNode ge... | true |
6b279913b319b03819bc03bbc444e128eea3633c | Java | Abrishges/Algorithms | /src/com/Algorithm/treeBasics/BinaryTree.java | UTF-8 | 2,067 | 4.03125 | 4 | [] | no_license | package com.Algorithm.treeBasics;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Stack;
public class BinaryTree {
public static void main(final String args[]) {
final Node root = new Node(5);
root.left = new Node(7);
root.right = new Node(8);
root.left.left = new Node(9);
root.left.... | true |
f688b0735be91f7b9ebe5047694d70e05b394865 | Java | andreaskrienke/DroidCavation | /app/src/main/java/de/andreaskrienke/android/droidcavation/SUnitListActivityFragment.java | UTF-8 | 6,162 | 2.171875 | 2 | [] | no_license | package de.andreaskrienke.android.droidcavation;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.CursorLoader;
import android.support.v4.content.Loader;
import androi... | true |
f7c86acbe14bd9469d276a6261e04c66c4b7017d | Java | kedarkhetia/DistributedFileSystem | /src/main/java/edu/usfca/cs/dfs/controller/ControllerServer.java | UTF-8 | 541 | 2.640625 | 3 | [] | no_license | package edu.usfca.cs.dfs.controller;
import edu.usfca.cs.dfs.net.ServerMessageRouter;
import java.io.IOException;
public class ControllerServer {
private ServerMessageRouter messageRouter;
private int port;
public ControllerServer(int port, int chunkSize) {
messageRouter = new ServerMessageRoute... | true |
1279ef6047cd48e8b21147b6f78a4eed2c782f13 | Java | DICE-UNC/irods-hive | /hive-master/jargon-hive-3store-integration/src/main/java/org/irods/jargon/hive/external/indexer/HiveIndexerException.java | UTF-8 | 1,383 | 2.03125 | 2 | [] | no_license | package org.irods.jargon.hive.external.indexer;
import org.irods.jargon.hive.external.utils.HiveException;
/**
* General exception for HiveIndexer
*
* @author Mike Conway - DICE (www.irods.org)
*
*/
public class HiveIndexerException extends HiveException {
private static final long serialVersionUID = 8671969... | true |
6d59d23faead0c2201e33ae0988b7a165561055f | Java | erafaelmanuel/cshop | /rest-module/src/main/java/com/rem/cs/rest/controller/ItemController.java | UTF-8 | 10,410 | 1.984375 | 2 | [] | no_license | package com.rem.cs.rest.controller;
import com.rem.cs.commons.NumberUtils;
import com.rem.cs.data.jpa.specification.EntitySpecificationBuilder;
import com.rem.cs.data.jpa.entity.Category;
import com.rem.cs.data.jpa.entity.Item;
import com.rem.cs.data.jpa.repository.ItemRepository;
import com.rem.cs.exception.EntityExc... | true |
212ebf4e425be69bc525dd84cb9961e3a597b3db | Java | zhouzachary01/threads | /src/synchronize/HasNum.java | UTF-8 | 701 | 3.046875 | 3 | [] | no_license | package synchronize;
/**
* @description: 一句话描述功能;
* @author: 周海涛
* @date: 2018/10/18 15:10
* @comment: 备注
* @version: V1.0
*/
public class HasNum {
private int num = 0;
synchronized public void addI (String username){
try {
if(username.equals("a")){
num = 100;
... | true |
5705762cae4798246c1213867806c80f0205141a | Java | neonflame1337/springRestApi | /src/main/java/com/neonflame/myproject/dto/PostDto.java | UTF-8 | 1,439 | 2.484375 | 2 | [] | no_license | package com.neonflame.myproject.dto;
import com.neonflame.myproject.model.Post;
import java.util.Date;
public class PostDto {
protected long id;
protected String owner;
protected Date date;
protected String title;
protected String content;
protected int commentsNumber;
public PostDto(Po... | true |
ba60f6041c62188d4d3475dab8224e1b885809c4 | Java | weishenggg98/MYFeedback | /app/src/main/java/com/myfeedback/myfeedbackprototype/RegisterActivity.java | UTF-8 | 14,491 | 2.078125 | 2 | [] | no_license | package com.myfeedback.myfeedbackprototype;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.constraint.ConstraintLayout;
import android.support.v7.app.AlertDial... | true |
dcf1fc3399a8ed28dd892c124fde07c98b41762d | Java | saturn9er/notes | /src/main/java/com/saturn9er/notes/importer/Importer.java | UTF-8 | 1,480 | 2.609375 | 3 | [] | no_license | package com.saturn9er.notes.importer;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.saturn9er.notes.converter.MultipartFileToFileConverter;
import org.apache.commons.io.FilenameUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.multipart.MultipartFile;
impo... | true |
fea77b300ef28e6ad0f11fbfb44b0613504cf8de | Java | yangrongxin454/gmall0225 | /gmall-manage-service-redisson/src/main/java/com/atguigu/gmall/manage/controller/TestRedissonController.java | UTF-8 | 1,242 | 2.15625 | 2 | [] | no_license | package com.atguigu.gmall.manage.controller;
import com.atguigu.gmall.util.RedisUtil;
import org.apache.commons.lang3.StringUtils;
import org.redisson.api.RLock;
import org.redisson.api.RedissonClient;
import org.redisson.client.RedisClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.spr... | true |
0dbe69b670642e9eaf782c1ddce33294e5c48f20 | Java | cailushan/fulicenter | /app/src/main/java/cn/ucai/fulicenter/model/net/SharedPreferenceUtils.java | UTF-8 | 1,362 | 2.34375 | 2 | [] | no_license | package cn.ucai.fulicenter.model.net;
import android.content.Context;
import android.content.SharedPreferences;
/**
* Created by Administrator on 2017/1/16 0016.
*/
public class SharedPreferenceUtils {
private static final String SHARE_PREFERENCE_NAME = "cn.ucai.fulicenter_user";
private static final Strin... | true |
f3d5062a467b105c624a26761c38dbc56735744d | Java | helenandmir/SimSTVCode | /Baselines/KMeans/Point.java | UTF-8 | 1,661 | 3.09375 | 3 | [] | no_license | package Baselines.KMeans;
import Similarity.SimilarityMeasures;
public class Point {
public int id;
protected float[] coordinates;
private int cluster_number = 0;
float maxSim;
public Point(int id, float[] coordinates)
{
this.id=id;
this.coordinates=coordinates;
}
... | true |
445029f162e7fb4c6a6920f2bd18f9141959da86 | Java | kryukov/jimm-fork-lite | /src/jimm/comm/StringConvertor.java | UTF-8 | 6,483 | 2.953125 | 3 | [] | no_license | /*
* StringConvertor.java
*
* Created on 6 Февраль 2007 г., 19:49
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package jimm.comm;
import java.io.*;
import java.util.Vector;
import jimm.*;
import jimm.util.ResourceBundle;
/**
*
* @author vladimir
*/
... | true |
42fc81e77935819f95477908f4af871254bd5f76 | Java | moutainhigh/mumu-flink | /src/main/java/com/lovecws/mumu/flink/streaming/source/ElasticsearchSource.java | UTF-8 | 7,039 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package com.lovecws.mumu.flink.streaming.source;
import com.lovecws.mumu.flink.common.annotation.ModularAnnotation;
import com.lovecws.mumu.flink.common.elasticsearch.ElasticsearchQuery;
import com.lovecws.mumu.flink.common.elasticsearch.EsConfig;
import com.lovecws.mumu.flink.common.util.MapFieldUtil;
import lombok.e... | true |
388c394e8fc6847944614351d08aec3070ff7904 | Java | mukesh89m/automation | /src/test/java/com/snapwiz/selenium/tests/staf/edulastic/testcases/IT1/R7/StatusOfAssignment.java | UTF-8 | 7,047 | 2.75 | 3 | [] | no_license | package com.snapwiz.selenium.tests.staf.edulastic.testcases.IT1.R7;
import com.snapwiz.selenium.tests.staf.edulastic.Driver;
import com.snapwiz.selenium.tests.staf.edulastic.apphelpers.*;
import org.testng.Assert;
import org.testng.annotations.Test;
/*
* Created by Sumit on 9/11/2014.
*/
public class StatusOfAssign... | true |
588cd15f013bd01e6d0fbf5492e119087b41a68f | Java | menfanyao/demo | /src/main/java/com/trs/controller/SearchController.java | UTF-8 | 3,418 | 2.078125 | 2 | [] | no_license | package com.trs.controller;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.logging.Logger;
import org.apache.commons.logging.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stere... | true |
ebc1048583ed6358fed46f79f5ca5ed54645a427 | Java | easXin/springboot-study | /springboot_07_druid/src/main/java/com/example/dao/UserDao.java | UTF-8 | 337 | 1.890625 | 2 | [] | no_license | package com.example.dao;
import com.example.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
* @author chenjianbing
* @create 2021-11-06 21:06
*/
@Mapper
public interface UserDao {
@Select("select * from user")
public List<U... | true |
028d1698f1b70db5b08bae787f8c7894a2ad04d7 | Java | qqdown/AutoDroid | /src/edu/nju/autodroid/windowtransaction/IWindowTransaction.java | UTF-8 | 1,592 | 2.59375 | 3 | [] | no_license | package edu.nju.autodroid.windowtransaction;
import edu.nju.autodroid.hierarchyHelper.Action;
import java.util.List;
/**
* Created by ysht on 2016/3/7 0007.
* 用于记录Window转移情况的接口
*/
public interface IWindowTransaction<TWindow extends IWindow> {
/**
* 添加窗口,窗口是Window Graph的基本单位
* @param window 窗口
*... | true |
b29a7b6eb7a1c67c67ea506b517f5fb29b8b58c3 | Java | jeanlaurent/LunarMission | /src/test/java/MoonUnitTest.java | UTF-8 | 1,454 | 2.78125 | 3 | [] | no_license | import org.junit.Before;
import org.junit.Test;
import static org.fest.assertions.Assertions.assertThat;
public class MoonUnitTest {
private MoonUnit moonUnit;
@Before
public void init() {
moonUnit = new MoonUnit(100d);
}
@Test
public void should_have_default_characteristics() {
... | true |
4ff0a7493e3765d973402cd4d4cdbccbfd8daf58 | Java | WinstonHanxb/Algorithms4 | /src/extras/ReactorPattern/InitiationDispatcher.java | UTF-8 | 904 | 2.984375 | 3 | [] | no_license | package extras.ReactorPattern;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class InitiationDispatcher {
private Map<EventType,EventHandler> handlers = new ConcurrentHashMap<>();
SynchronousEventDemux synchronousEventDemux;
public InitiationDispatche... | true |
b33f2a1fec435b0cb287f22735e0a99d7b1968cf | Java | lor6/tutorials | /core-java-modules/core-java-8/src/main/java/com/baeldung/spliteratorAPI/Executor.java | UTF-8 | 556 | 2.640625 | 3 | [
"MIT"
] | permissive | package com.baeldung.spliteratorAPI;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class Executor {
public static int countAutors(Stream<Author> stream) {
RelatedAuthorCounter wordCounter = stream.reduce(new RelatedAuthorCounter(0, true),
RelatedAuthorCounte... | true |
229eefbdc21365dcdbcf9e400a104a0a69daf563 | Java | hjun1121/Cnema | /src/main/java/com/cnema/c1/PageController.java | UTF-8 | 15,524 | 1.851563 | 2 | [] | no_license | package com.cnema.c1;
import java.util.List;
import javax.inject.Inject;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web... | true |
841acbccf7b5a9d9782e9264166b22820abf0017 | Java | HPI-Information-Systems/metanome-algorithms | /dcucc/dcucc/src/test/java/de/metanome/algorithms/dcucc/DcuccSimpleTest.java | UTF-8 | 3,409 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package de.metanome.algorithms.dcucc;
import de.metanome.algorithm_helper.data_structures.PLIBuilder;
import de.metanome.algorithm_helper.data_structures.PositionListIndex;
import de.metanome.algorithm_integration.AlgorithmConfigurationException;
import de.metanome.algorithm_integration.input.InputGenerationException;... | true |
e9e4e5f3dcf7f21b849266db535c35b4ed0f4ae1 | Java | dmodzelewski/CrudJavaFX | /src/CrudJava/Main.java | UTF-8 | 962 | 2.625 | 3 | [] | no_license | package CrudJava;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
import java.io.IOException;
public class Main extends Application {
private Stage scena;
... | true |
5d4f904757f2185f5d8ebe2b160122eed6ebb95e | Java | slowturtle93/marketSite | /src/main/java/com/market/server/service/product/ProductService.java | UTF-8 | 581 | 1.710938 | 2 | [] | no_license | package com.market.server.service.product;
import java.util.List;
import com.market.server.dto.Search;
import com.market.server.dto.product.ProductDTO;
import com.market.server.dto.product.ProductDetailDTO;
public interface ProductService {
public List<ProductDTO> productInfo(Search search);
public ProductDeta... | true |
53e1424659fa9d8927a0fb80a2b39d69c8f6b5f5 | Java | XiaoMinwm/shopSystem-learning_IDEA | /taotao-search/src/main/java/com/taotao/search/service/SearchService.java | UTF-8 | 236 | 1.671875 | 2 | [] | no_license | package com.taotao.search.service;
import com.taotao.search.pojo.SearchResult;
/**
* Created by XiaoMin on 2016/6/7.
*/
public interface SearchService {
SearchResult search(String query, int pages, int rows) throws Exception;
}
| true |
8e69db491b8299286f1f6aa781769933e0ac9cf8 | Java | christophersimcik/Clutter_Capstone_Udacity | /Notes/app/src/main/java/com/clutter/note/main/ShadowCircle.java | UTF-8 | 1,123 | 2.296875 | 2 | [] | no_license | package com.clutter.note.main;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.RectF;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.Vie... | true |
4a756138afaa8cc0af7775e36966d938c0fb1b92 | Java | mi-xia/LeetCode | /leetCode/test/leetCode/SixteenPointOneSixTest.java | UTF-8 | 285 | 2.140625 | 2 | [] | no_license | package leetCode;
import org.junit.Test;
import static org.junit.Assert.*;
public class SixteenPointOneSixTest {
@Test
public void subSort() {
SixteenPointOneSix s = new SixteenPointOneSix();
s.subSort(new int[]{1,2,4,7,10,11,7,12,6,7,16,18,19});
}
} | true |
6e93b5065faa7b91bfb7f5e9ccd81782a887b772 | Java | akashthakare/salonapp | /saloonapp/src/main/java/com/springpackage/app/Model/Booking.java | UTF-8 | 2,198 | 2.328125 | 2 | [] | no_license | package com.springpackage.app.Model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
@Entity
@Table(name="booki... | true |
9c568f53222f059b39db1f90a8906e6d83fedd48 | Java | SuSeu1414/BeaconFactions | /src/main/java/pl/suseu/bfactions/data/UserDataController.java | UTF-8 | 4,533 | 2.5 | 2 | [] | no_license | package pl.suseu.bfactions.data;
import pl.suseu.bfactions.BFactions;
import pl.suseu.bfactions.base.user.User;
import pl.suseu.bfactions.data.database.Database;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.UUID;
import java.u... | true |
5ce1430b381aa6a5e69b78b1f75fbcecf2710946 | Java | Sudheerbolla/Dev | /app/src/main/java/com/devotted/fragments/InnerFragment.java | UTF-8 | 1,083 | 2.328125 | 2 | [] | no_license | package com.devotted.fragments;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.devotted.R;
import com.devotted.utils.views.CustomTextView;
public class InnerFragment extends BaseFragment {
public InnerFragment() {
}
pub... | true |
dad0667b989fedb559349dda0173b0dfee5e943b | Java | motown-io/motown | /domain/utils/src/test/java/io/motown/domain/utils/axon/CorrelationCommandHandlerInterceptorTest.java | UTF-8 | 3,163 | 1.8125 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (C) 2013 Motown.IO (info@motown.io)
*
* 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 appl... | true |
c03fe821aad07f2e216940d7dc3013496818859a | Java | AllstarVirgo/algorithms-jeff-java-implement | /src/main/java/dp/BestTimeToBuyAndSellStockWithCooldown.java | UTF-8 | 1,419 | 3.53125 | 4 | [] | no_license | package dp;
public class BestTimeToBuyAndSellStockWithCooldown {
/**
* 定义benefits[i] 为从i开始能盈利的最大值
* @param prices
* @return
*/
public int maxProfit(int[] prices) {
int[] benefits = new int[prices.length];
int last = prices.length-1;
if(last==-1)return 0;
bene... | true |
611339e089035262db407fdb8f02b7c5b2820998 | Java | DBCDK/fcrepo-3.5-patched | /fcrepo-client/fcrepo-client-admin/src/main/java/org/fcrepo/client/ingest/SourceRepoDialog.java | UTF-8 | 15,128 | 2.0625 | 2 | [
"DOC",
"Apache-2.0"
] | permissive | /* The contents of this file are subject to the license and copyright terms
* detailed in the license directory at the root of the source tree (also
* available online at http://fedora-commons.org/license/).
*/
package org.fcrepo.client.ingest;
import java.awt.BorderLayout;
import java.awt.Container;
import java.aw... | true |
21b5032a2d4b9b99e85e3e78fc5042d5b3df5e3c | Java | SujithaMathew/SampleMaven | /src/emp/AxisBank.java | UTF-8 | 344 | 2.828125 | 3 | [] | no_license | package emp;
public class AxisBank extends BankInfo {
public void deposit(int a,float b) {
System.out.println(a);
System.out.println(b);
}
public static void main(String[] args) {
AxisBank a=new AxisBank();
a.deposit(7, 56.7f);
BankInfo b=new BankInfo();
b.saving(2, 34.5f);
b.fixed(4, 23.5f);
b.depo... | true |
4dd3be9283a9a416e96005ce18787c862b7ec97e | Java | ChenYuDream/antifake | /src/com/sinosoft/antifake/ibatis/dao/SfbdSecurityDAO.java | UTF-8 | 532 | 2.03125 | 2 | [] | no_license | package com.sinosoft.antifake.ibatis.dao;
import com.sinosoft.antifake.entity.SfbdSecurity;
/**
*
* @Description:SFBD工厂防伪数据S
* @author wangxueqiang
* @date 2017年12月7日 下午5:10:24
*
*/
public interface SfbdSecurityDAO extends com.sinosoft.antifake.ibatis.dao.DAO {
/**
*
* @Description: 根据产品编码查询信息
* @param... | true |
f11115cb5b511f57ea57f474665f2fafc678454c | Java | lalit7735/practice_ds_workspace | /data_structures/practice/ds/linkedlist/LinkedListDriver.java | UTF-8 | 2,321 | 3.453125 | 3 | [] | no_license | package ds.linkedlist;
import ds.linkedlist.LinkedList.Node;
public class LinkedListDriver {
public static void main(String[] args) {
LinkedList linkedList=new LinkedList();
Node node1=new Node(2);
Node node2=new Node(5);
Node node3=new Node(8);
Node node4=new Node(7);
Node node5=new Node(4);
linkedLi... | true |
bd18f662879bac0870d3d2058a6d0f07057c9f0b | Java | rodsangon/dp1-2020-g3-07 | /src/main/java/org/springframework/samples/petclinic/web/DependienteController.java | UTF-8 | 3,775 | 2.296875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | package org.springframework.samples.petclinic.web;
import java.util.Map;
import java.util.Optional;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.samples.petclinic.model.Dependiente;
import org.springframework.samples.petclinic.servi... | true |
34c12c2d39f01362f2bf486c3cf96e71e3e8eec2 | Java | tugcankoparan/Java-EE-Spring-Framework | /Java Repository/Effective Java/src/chapter02/item04/examples/UtilityClass.java | UTF-8 | 319 | 2.609375 | 3 | [] | no_license | package chapter02.item04.examples;
public class UtilityClass {
private UtilityClass() {
throw new AssertionError();
}
// Explicit constructor is private , it is inaccessible outside the class.
// AssertionError ,it provides insurance in case the constructor is accidentally
// invoked from within the class.
}
| true |
d7b23e95256c34ff1588f7e69f8cafa190593e1a | Java | manoelmeseque/parcelamento-java | /src/model/entities/Prestacao.java | UTF-8 | 765 | 2.828125 | 3 | [] | no_license | package model.entities;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Prestacao {
private static final SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
private Date vencData;
private Double montante;
public Prestacao() {
}
public Prestacao(Date vencData, Double montante)... | true |
a43e5f21dd48ca6870ace8f48d9e061c541f4369 | Java | avinash625/CodingProblems | /LeetCode/move_zeros.java | UTF-8 | 438 | 2.6875 | 3 | [] | no_license | class Solution {
public void moveZeroes(int[] nums) {
int writeIterator = 0;
for(int readIterator = 0;readIterator < nums.length; readIterator++){
if(nums[readIterator] != 0){
nums[writeIterator] = nums[readIterator];
writeIterator++;
}
... | true |
a9503a1c4a894ca2101356c97f25d709f32352dc | Java | weichanghuan/spring-mycat-demo | /share-util/src/test/java/com/base/util/Base58Test.java | UTF-8 | 1,556 | 2.640625 | 3 | [] | no_license | package com.base.util;
import java.nio.charset.Charset;
import org.junit.Assert;
import org.junit.Test;
/**
* Base58测试类
*/
public class Base58Test {
private Charset charset = Charset.forName("UTF-8");
@Test
public void testEncode() {
String str = "Base58测试";
byte[] bytes = str.getBytes... | true |
e5ea61aff426c6f72d0e584b99d82927b4915e52 | Java | zoya-sanjeev/StacksAndQueues | /src/com/bridgelabz/stacksandqueues/LinkedList.java | UTF-8 | 2,221 | 3.609375 | 4 | [] | no_license | package com.bridgelabz.stacksandqueues;
public class LinkedList<K> {
public INode head;
public INode tail;
public LinkedList() {
this.head=null;
this.tail=null;
}
public void add(INode newNode) {
if(tail==null)
this.tail=newNode;
if(head==null)
this.head=newNode;
else
newNode.setNext(head);
... | true |
392c17c97cec979351a2170309be1762585998a7 | Java | Wycers/Codelib | /Software Testing/SuffixTree/src/test/java/net/mooctest/NodeTest.java | UTF-8 | 53,705 | 2.34375 | 2 | [
"MIT"
] | permissive | package net.mooctest;
import org.evosuite.runtime.ViolatedAssumptionAnswer;
import org.junit.Test;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
import java.util.function.BiFunction;
import static org.evosuite.runtime.EvoAssertions.verifyException;
import static org.evosuite.shaded.org.moc... | true |
1cae662c1a2f134cacd4ca6543cd035ed318c83f | Java | SyaoranR/Redes_JAVA | /Alessandro/WebA3/src/java/br/com/dao/MyConnection.java | UTF-8 | 1,417 | 2.609375 | 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 br.com.dao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.util.Scanner;
import javax.swing.JOptionPan... | true |
7743f592c5f2d0fa098098b9fe3767b282620cf9 | Java | 1242599327/myspider | /src/main/java/com/myproject/myspider/MyspiderApplication.java | UTF-8 | 1,871 | 2.046875 | 2 | [] | no_license | package com.myproject.myspider;
import com.myproject.myspider.crawler.CommentPageProcessor;
import com.myproject.myspider.crawler.downloader.SeleniumChromeDownloader;
import com.myproject.myspider.crawler.pipeline.CommentMongodbPipeline;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annota... | true |
2c13bfd86b112d61e3ce896a13e05fde23fd1f6a | Java | meganchu2/cse12 | /HW6/Course_Interface.java | UTF-8 | 1,294 | 3.21875 | 3 | [] | no_license | package hw6;
import java.util.List;
public interface Course_Interface {
/**
* Getter for course name
* @return course name
*/
public String getCourseName();
/**
* Getter for course code
* @return course code
*/
public String getCourseCode();
/**
* Getter for course capacity
* @return course... | true |
9ebc35455a0677a6d0f4d146b919ff011ca924f0 | Java | GitHubLang/MyLearning | /设计模式/状态模式/Proj项目/ProjState.java | UTF-8 | 476 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | package 设计模式.状态模式.Proj项目;
import 设计模式.状态模式.Context;
import 设计模式.状态模式.State;
import 设计模式.状态模式.param.ProjParam;
public abstract class ProjState extends State {
protected ProjContext projContext;
protected ProjParam projParam;
@Override
public void setContext(Context context) {
this.projContext ... | true |
ec5b2e00f90fc30646749b98d13dfb77592b8a30 | Java | proceane/study_design_pattern | /src/tutorial/mediatorPattern/MediatorPatternDemo.java | UTF-8 | 389 | 2.953125 | 3 | [] | no_license | package tutorial.mediatorPattern;
/**
* 3. 메인 메소드 생성
* @date : 2021. 5. 27.
*/
public class MediatorPatternDemo {
public static void main(String[] args) {
User robert = new User("Robert");
User john = new User("John");
robert.sendMessage("Hi! John!");
john.sendMessage("Hello! Robert");
//서로의 대화를... | true |
24a1393ed89deda7f934d757c150395b40dd7e08 | Java | yunusdursunturan/Questions | /Question9/src/main/java/com/project/App.java | UTF-8 | 1,206 | 2.546875 | 3 | [] | no_license | package com.project;
import com.project.entity.Department;
import com.project.entity.Employee;
import com.project.entity.Meetings;
import org.hibernate.Session;
import com.project.config.HibernateConfig;
/**
* Created by yunus on 26.06.2016.
*/
public class App {
public static void main( String[] args ){
... | true |
a066784916f0e01118e3f07f13eb2474afb6b1ac | Java | Noise85/icedynam | /ch/biketrotter/modules/icedynam/model/Account.java | UTF-8 | 1,168 | 2.234375 | 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 ch.biketrotter.modules.icedynam.model;
import java.util.List;
/**
*
* @author Enea
*/
public class Account ... | true |
0abb215149aebb5c58220131309c00bf4092b8be | Java | gujiedmc/spring-cloud-hoxton | /common-api/src/main/java/com/gujiedmc/cloud/hoxton/common/api/UserService.java | UTF-8 | 742 | 1.882813 | 2 | [] | no_license | package com.gujiedmc.cloud.hoxton.common.api;
import com.gujiedmc.cloud.hoxton.common.entity.UserEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.an... | true |
0fcc09b65687a69a54e06f8cacdc26d3ddeaf258 | Java | jsjambar/Project7 | /BertApp/app/src/main/java/com/example/jase/bertapp/kdtree/distance/EuclideanDistance.java | UTF-8 | 413 | 2.953125 | 3 | [] | no_license | package com.example.jase.bertapp.kdtree.distance;
public class EuclideanDistance extends DistanceMetric {
@Override
public double distance(double[] a, double[] b) {
return Math.sqrt(sqrDistance(a, b));
}
private double sqrDistance(double[] a, double[] b) {
double dist = 0;
for (int i = 0; i < a.len... | true |
faaab3ff17675e296eefb6fe21d5056bddaf6e55 | Java | GabrielNoam/WebShareLink | /app/src/main/java/com/webshare/link/WebViewerFragment.java | UTF-8 | 6,737 | 2.15625 | 2 | [] | no_license |
package com.webshare.link;
import android.annotation.SuppressLint;
import android.app.Fragment;
import android.graphics.Bitmap;
import android.os.Build;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
impo... | true |
cb0450a8851c38f0e5f57162cb40632cbe89b012 | Java | ivyxjc/OnlineJudge | /src/main/java/xyz/ivyxjc/codeforces_problemset01/_580C_Kefa_and_Park.java | UTF-8 | 4,327 | 2.796875 | 3 | [] | no_license | package xyz.ivyxjc.codeforces_problemset01;
import java.io.*;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.StringTokenizer;
import static java.lang.Double.parseDouble;
import static java.lang.Integer.parseInt;
import static java.lang.Long.parseLong;
/**
* Created by yanjiusuo4 on 2016/10/2... | true |
64b93870bc2209d292f71dd1c6d64bcd1ad82fbd | Java | KaloyanDragiev/ProEP | /proep-mobile/app/src/main/java/com/proep/cliffin/fragments/NewsFragment.java | UTF-8 | 3,045 | 2.171875 | 2 | [] | no_license | package com.proep.cliffin.fragments;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ProgressBar;
import androidx.annotation.RequiresApi;
import androidx.fragment.app.Fr... | true |
d05751512bd3835efcdc43411f1962fcff2b6ad8 | Java | nationalarchives/ttt-neo4j-import-tool | /src/test/java/uk/gov/nationalarchives/ttt/neo4j/utils/BaseTestClass.java | UTF-8 | 3,004 | 2.03125 | 2 | [] | no_license | package uk.gov.nationalarchives.ttt.neo4j.utils;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.MappingJsonFactory;
import org.apache.commons.... | true |
35366cfae940b9bfab10ff043fc8eb2f8c58b65b | Java | oregor-projects/trinity-scaffolder-java | /trinity-scaffolder-java-core/src/main/java/com/oregor/trinity/scaffolder/java/path/PathService.java | UTF-8 | 1,881 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | /*-
* ==========================LICENSE_START=================================
* Trinity Scaffolder for Java Applications
* ========================================================================
* Copyright (C) 2019 Christos Tsakostas, OREGOR LTD
* ================================================================... | true |
891b37cf2c6141609d92dafcb8ef6b4018fbb0ad | Java | AlvaroMVP/p2-student-service | /src/test/java/com/project/test/service/StudentServiceTest.java | UTF-8 | 4,064 | 2.421875 | 2 | [] | no_license | package com.project.test.service;
import static org.mockito.Mockito.when;
import com.project.model.Student;
import com.project.repository.StudentRepository;
import com.project.service.impl.StudentServiceImpl;
import java.util.Date;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import... | true |
c35a9b60e3459bb8e2314156320ef5a07784c0ee | Java | resess/Slicer4J | /benchmarks/JacksonDatabind_3b/src/main/java/com/fasterxml/jackson/databind/util/StdDateFormat.java | UTF-8 | 16,039 | 2.765625 | 3 | [
"MIT",
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | package com.fasterxml.jackson.databind.util;
import java.text.DateFormat;
import java.text.FieldPosition;
import java.text.ParseException;
import java.text.ParsePosition;
import java.text.SimpleDateFormat;
import java.util.*;
import com.fasterxml.jackson.core.io.NumberInput;
/**
* Default {@link DateFormat} impleme... | true |
9fae57d8a21f0014043d31db0fc3553e125fa76d | Java | prasadsrg/tenant-pg-sb | /src/main/java/com/tenant/master/entity/MasterTenant.java | UTF-8 | 2,423 | 2.1875 | 2 | [] | no_license | package com.tenant.master.entity;
import javax.persistence.*;
import java.io.Serializable;
/**
* @author Md. Amran Hossain
*/
@Entity
@Table(name = "tbl_tenant_master")
public class MasterTenant implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
... | true |
5d4ed61c72664aaf0d6df76c0c599f7fdd76a9d4 | Java | yrx0215/study | /src/main/java/com/jnshu/dreamteam/service/SubjectService.java | UTF-8 | 2,194 | 2.328125 | 2 | [] | no_license | package com.jnshu.dreamteam.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jnshu.dreamteam.pojo.Subject;
import java.util.List;
/**
* 科目subject接口
* @author yrx
*/
public interface SubjectService {
/**
* 新增科目
* @param subject 新增的科目
* @return 返回值为新增的科目id
*/
Lo... | true |
e688e69260598af7e79ef37b584f202e813b3fee | Java | axamit/gathercontent-aem-integration | /core/src/main/java/com/axamit/gc/core/util/Constants.java | UTF-8 | 7,679 | 1.640625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Axamit, gc.support@axamit.com
*/
package com.axamit.gc.core.util;
/**
* Class for constants used around whole application.
*
* @author Axamit, gc.support@axamit.com
*/
public enum Constants {
/*INSTANCE*/;
/**
* AEM property name for imported radio group other option value.
*/
public ... | true |
ecca1949a0ef25b7ca7f2c1bfaef9b079e1d8b2a | Java | drishyah/REPO | /java/assignment3/Assignment3Q3.java | UTF-8 | 507 | 3.265625 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.ListIterator;
public class Assignment3Q3 {
public static void main(String[] args) {
ArrayList<String> aList = new ArrayList<String>();
aList.add("A");
aList.add("B");
aList.add("C");
aList.add("D");
ListIterator<String> ... | true |
8d62e78eb5d2c1103f829cb02b5f8a9c341ec596 | Java | oksana-l/Projet-Spring-Country | /src/main/java/org/a84/formulaire/m/CountryDAO.java | UTF-8 | 166 | 1.546875 | 2 | [] | no_license | package org.a84.formulaire.m;
import org.springframework.data.jpa.repository.JpaRepository;
public interface CountryDAO extends JpaRepository<Country, Integer> {
}
| true |
cbc75e5d6d0ce15d8d85259c966cc5a20b108d53 | Java | pietrangelo/entando-base-image-4.3.2 | /entando-components-enterprise/plugins/entando-plugin-jpforum/src/main/java/com/agiletec/plugins/jpforum/aps/system/services/searchengine/ForumIndexerDAO.java | UTF-8 | 7,376 | 2 | 2 | [] | no_license | /*
*
* Copyright 2013 Entando S.r.l. (http://www.entando.com) All rights reserved.
*
* This file is part of Entando Enterprise Edition software.
* You can redistribute it and/or modify it
* under the terms of the Entando's EULA
*
* See the file License for the specific language governing permissions
* and ... | true |
ba9116871e409fc2a1d50d13294c87736e7ededf | Java | Stanly0407/certificate-system | /service/src/main/java/com/epam/esm/services/service/OrderService.java | UTF-8 | 2,826 | 2.625 | 3 | [] | no_license | package com.epam.esm.services.service;
import com.epam.esm.entities.Order;
import com.epam.esm.services.dto.OrderDto;
import com.epam.esm.services.exceptions.BadRequestException;
import com.epam.esm.services.exceptions.ResourceNotFoundException;
import java.util.List;
/**
* An interface {@code OrderService} defines... | true |
f8f8d2b545cfc6a36c1386eb17a12a1aa6f64ade | Java | z412421957/autotest-ui | /src/com/neso/testcase/TemporaryAssignmentCase.java | UTF-8 | 5,682 | 2.109375 | 2 | [] | no_license | package com.neso.testcase;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.neso.action.TemporaryAssignmentAction;
import org.testng.annotations.AfterTest;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;
import com.neso.factory.CommonUtil;
import com.sql... | true |
c33ce3b4e1744cca046d0f83f42f8c70295de608 | Java | fishsey/code | /javaScala/demo/src/JavaScala/src/main/java/_temp/_spark/ml/evals/LogisticREval.java | UTF-8 | 1,225 | 2.3125 | 2 | [] | no_license | package _temp._spark.ml.evals;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.ml.classification.LogisticRegressionModel;
import org.apache.spark.ml.feature.LabeledPoint;
import org.apache.spark.sql.Dataset;
import org.apache.spark.sql.Row;
import org.apache.spark.sql.SparkSession;
import tools.usage... | true |
aa418e2291194059dbfcb040dc4919ec1e788bb3 | Java | manuel1358000/Proyecto1Compi2_201213580 | /Proyecto1Compi2_201213580/src/ArbolAST/Instrucciones/Funcion.java | UTF-8 | 8,451 | 2.5625 | 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 ArbolAST.Instrucciones;
import ArbolAST.AST;
import static ArbolAST.AST.global;
import ArbolAST.Entorno.Entorno;
imp... | true |