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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d8278b062249193c47e113d972753ef4e833126e | Java | Tritoniwe/rps-tourney | /rps-tourney-console/src/test/java/com/justdavis/karl/rpstourney/app/console/ConsoleGameDriverTest.java | UTF-8 | 2,563 | 2.765625 | 3 | [] | no_license | package com.justdavis.karl.rpstourney.app.console;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.io.UnsupportedEncodingException;
import org.junit.Assert;
import org.junit.Test;
import com.justdavis.karl.rpstourney.api.GameSession;
import com.justd... | true |
bbf257030f38c3736a5fb37846ed2e462e80c426 | Java | GabeOchieng/ggnn.tensorflow | /data/libgdx/ETC1_getPixelSize.java | UTF-8 | 231 | 2.453125 | 2 | [] | no_license | private static int getPixelSize(Format format) {
if (format == Format.RGB565)
return 2;
if (format == Format.RGB888)
return 3;
throw new GdxRuntimeException("Can only handle RGB565 or RGB888 images");
}
| true |
5a7b596357465d57259fbbefd32085469aa5e062 | Java | jenkymn/Flower | /src/anim/CustomFont.java | UTF-8 | 543 | 2.84375 | 3 | [
"CC0-1.0"
] | permissive | package demo.anim;
import java.awt.Font;
import java.io.InputStream;
public class CustomFont {
public CustomFont() {
}
public Font getFont(String name, float size) {
Font font = null;
try {
InputStream is = this.getClass().getResourceAsStream("/demo/resources/" +... | true |
ff32641500bf4d9da30022322c16309ba8079378 | Java | weixiaoxiaosi/travel | /travel/src/main/java/com/wanjia/web/filter/AutoFilter.java | UTF-8 | 1,599 | 2.203125 | 2 | [] | no_license | package com.wanjia.web.filter;
import com.wanjia.domain.User;
import com.wanjia.service.impl.UserService;
import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.io.IOException... | true |
dc1f672d4bafc616ef22802a4ed81749197370c2 | Java | MeezyProductions/Virtue857-Client | /source/Class528_Sub16.java | UTF-8 | 2,670 | 1.84375 | 2 | [] | no_license | /* Class528_Sub16 - Decompiled by JODE
* Visit http://jode.sourceforge.net/
*/
public class Class528_Sub16 extends Node
{
public static final int anInt10372 = 3;
public static final int anInt10373 = 1;
public static final int anInt10374 = 2;
int anInt10375;
public static final int anInt... | true |
f7e13d14474ab6d7263c08957f6a3e8af75389b0 | Java | Danbono325/Game-Dev-Final-Project | /core/src/com/mygdx/game/GameScreen.java | UTF-8 | 1,963 | 2.765625 | 3 | [] | no_license | package com.mygdx.game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.audio.Sound;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.m... | true |
121fb0ffc1fc91818ee7cc19c6a6c44f32563cfc | Java | rbfriedman/MCO152-Spring-2014 | /src/friedman/flicker/Photos.java | UTF-8 | 202 | 1.578125 | 2 | [] | no_license | package friedman.flicker;
import java.util.ArrayList;
public class Photos extends ArrayList<Photo> {
/**
*
*/
private static final long serialVersionUID = -754649629904204034L;
}
| true |
6da864d12c27a5285c6b0b62f64657672e376e62 | Java | ken-y/demo1 | /src/main/java/com/ken/common/DateComUtil.java | UTF-8 | 1,884 | 3.03125 | 3 | [] | no_license | package com.ken.common;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Date;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.TimeUnit;
import static java.util.concurrent.Executors.... | true |
a8cbc8833d4165539e461326f2b1335f7ccb554a | Java | nikitachebotarev/mvvm | /app/src/main/java/ru/cnv/sample/vm/PersonDetailViewModel.java | UTF-8 | 933 | 2.21875 | 2 | [] | no_license | package ru.cnv.sample.vm;
import javax.inject.Inject;
import io.reactivex.Observable;
import ru.cnv.App;
import ru.cnv.sample.data.provider.entity.PersonWithSpecs;
import ru.cnv.sample.data.scheduler.DataSchedulers;
import ru.cnv.sample.vm.base.BaseViewModel;
import ru.cnv.sample.data.provider.abs.PersonDetailsProvid... | true |
da85a8ffd9666f838a2b4fdc4b1fe63d16c5f86e | Java | khalifandiaye/bus-reservation | /WIP/Source/Project/src/main/java/vn/edu/fpt/capstone/busReservation/action/route/UpdateSegmentAction.java | UTF-8 | 10,569 | 1.945313 | 2 | [] | no_license | package vn.edu.fpt.capstone.busReservation.action.route;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import org.apache.stru... | true |
c41be2854217a311d3d4d27024998dc97d98886d | Java | johnliran/JavaProject | /Game2048Solver/src/model/GameMazeState.java | UTF-8 | 390 | 2.59375 | 3 | [] | no_license | package model;
import java.io.Serializable;
import model.algorithms.State;
/**
* Game Maze State
*/
public class GameMazeState extends State implements Serializable {
private int mouseDirection;
public int getMouseDirection() {
return mouseDirection;
}
public void setMouseDirection(int mo... | true |
acbdb774e9cc7b381acb2d09adf4d1a39b7e3a6f | Java | wildex999/StjerncraftControlPanel | /Common/src/main/java/com/stjerncraft/controlpanel/common/ModuleEvent.java | UTF-8 | 685 | 2.390625 | 2 | [
"MIT"
] | permissive | package com.stjerncraft.controlpanel.common;
import com.stjerncraft.controlpanel.api.annotation.DataObject;
import com.stjerncraft.controlpanel.common.data.ModuleInfo;
/**
* Event sent out when something changes with a Module
*/
@DataObject
public class ModuleEvent {
public enum Action {
Added, //New Module has ... | true |
84a964461c460d22d80f17c73cc61db51c6fe8fb | Java | ly0199/furniture-market | /src/main/java/com/furniture/market/util/RentUtil.java | UTF-8 | 3,242 | 3.015625 | 3 | [
"Apache-2.0"
] | permissive | package com.furniture.market.util;
import java.math.BigDecimal;
/**
* @author Lijq
* @date 2018/4/20 13:39
* @description 租金工具类
*/
public class RentUtil {
public static final int PAY_1 = 1;
public static final int PAY_6 = 6;
public static final int PAY_12 = 12;
public static final int PAY_18 = 18... | true |
c350be90c945cc0fbd36860b9058ea13390d3675 | Java | williamdengnewyork/DDF | /core/src/test/java/io/ddf/analytics/SummaryTest.java | UTF-8 | 1,674 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | package io.ddf.analytics;
import io.ddf.util.Utils;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class SummaryTest {
private double[] da, db, dc, dd;
private Summary a, b, c, d;
@Before
public void setUp() throws Exception {
da = new double[] { 1, 2, 3 };
... | true |
a1cb2f805ae133c2f15c0b46cf7c1d8089f5fb36 | Java | samudranil7/spring_app_log | /springrest/src/main/java/com/example/springrest/controller/MyController.java | UTF-8 | 1,193 | 2.203125 | 2 | [] | no_license | package com.example.springrest.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;... | true |
7653a93b6e6c88f34e9fdd38109f3cd805be91ca | Java | vgaray/seguridad | /src/main/java/pe/com/pivo/seguridad/service/UsuarioService.java | UTF-8 | 317 | 1.789063 | 2 | [] | no_license | package pe.com.pivo.seguridad.service;
import pe.com.pivo.seguridad.dominio.request.UsuarioListarRequest;
import pe.com.pivo.seguridad.dominio.response.UsuarioListarResponse;
public interface UsuarioService {
public UsuarioListarResponse usuarioListar(UsuarioListarRequest request)throws Exception;
}
| true |
b5e71d62f38632cbb6d1127c5e6f006eb2a3dd73 | Java | vikas149r/AoC2015 | /src/main/java/day15/Puzzle.java | UTF-8 | 5,325 | 3.25 | 3 | [] | no_license | package day15;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.LinkedList;
import java.util.List;
import java.util.Objects;
public class Puzzle {
static class Ingredient {
String name;
int capacity;
int ... | true |
b7bd1a3e1ddeb98ee4a15de39ab23c59bd4af106 | Java | ybw2016/fast-functional-programming | /src/test/java/com/fast/programming/TradeServiceTest.java | UTF-8 | 3,163 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package com.fast.programming;
import com.fast.programming.service.condition.CheckCondition;
import com.fast.programming.service.designpatterns.command.Command;
import com.fast.programming.service.designpatterns.observer.IdeaIDEActionCenter;
import com.fast.programming.service.example.field.GetAndSetFieldValue;
import ... | true |
e94580bccec22aab3da17998f216546bac67c045 | Java | ShawnNorrie/BlockFlow | /src/ca/blockflow/logic/Scope.java | UTF-8 | 2,066 | 3.28125 | 3 | [] | no_license | package ca.blockflow.logic;
import javafx.beans.property.SimpleMapProperty;
import javafx.collections.FXCollections;
/**
* A container class for variables in a particular closure (i.e scope) such as inside functions. Scopes enable variable shadowing
*/
public class Scope {
/**
* A map of all variables... | true |
132445658c1afc9cfffb62f73acf1338a3c6e024 | Java | dhj/MyMediaGallery | /src/ru/denonline/utils/Utils.java | UTF-8 | 917 | 3.171875 | 3 | [] | no_license | package ru.denonline.utils;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public class Utils {
public static int IO_BUFFER_SIZE = 1024;
/**
* Copy the content of the input stream into the output stream, using a
* temporary byte array buffer whose size is de... | true |
9718a45bcccb2563e374d2fe6036067f8c2c3110 | Java | P79N6A/icse_20_user_study | /files/File_1011198.java | UTF-8 | 1,471 | 1.742188 | 2 | [
"Apache-2.0"
] | permissive | package jetbrains.mps.lang.behavior.typesystem;
/*Generated by MPS */
import jetbrains.mps.errors.QuickFix_Runtime;
import jetbrains.mps.smodel.SNodePointer;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SPropertyOperations;
import jetbrains.mps.smodel.adapter.... | true |
9699867d8bdd883477a50239b4f9ebde4af6e926 | Java | pirsquare4/constellation | /src/main/java/constellation/commands/CxCommandReader.java | UTF-8 | 2,231 | 2.96875 | 3 | [] | no_license | package constellation.commands;
import static java.lang.String.format;
import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import org.apache.log4j.Logger;
/**
* Constellation Command Reader
* @author lawrence.danie... | true |
edb9a133c6894b7248563352eec4283f584b384a | Java | SteveLim99/Cracking-the-Coding-Interview- | /src/com/company/arrays_and_strings/decodeWays.java | UTF-8 | 1,778 | 3.4375 | 3 | [] | no_license | package com.company.arrays_and_strings;
import java.util.ArrayList;
import java.util.List;
public class decodeWays {
public int numDecodings_1(String s) {
List<String> res = new ArrayList();
backtrack(s,res,new StringBuilder(), 0);
return res.size();
}
public int numDe... | true |
55fdc86854f52138073d14bd3e8050c4feffa293 | Java | denpere/jes | /src/main/java/io/jes/reactors/ReactorUtils.java | UTF-8 | 2,204 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | package io.jes.reactors;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.HashSet;
import java.util.Set;
import javax.annotation.Nonnull;
import io.jes.Event;
import io.jes.ex.BrokenReactorException;
import io.jes.util.Check;
class ReactorUtils {
private Reac... | true |
7811c346a0ec667950b2b17a8813528661fd10a7 | Java | xjcherie/algorithm | /src/main/java/leetcode/array/CountSquareSubmatricesWithAllOnes.java | UTF-8 | 1,867 | 3.25 | 3 | [] | no_license | package leetcode.array;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
/**
* Created by Cherie on 2020/05/21
* https://leetcode.com/problems/count-square-submatrices-with-all-ones/
**/
public class CountSquareSubmatricesWithAllOnes {
... | true |
9cf9b576422ee1fa925060a965452ac85bf8f5f8 | Java | michaael-l/sonalake-michal_laskowski | /NetPay/src/main/java/com/sonalake/task/CurrencyRatesFetcher.java | UTF-8 | 3,272 | 2.25 | 2 | [] | no_license | package com.sonalake.task;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.util.Map;
import java.util.Objects;
import java.util.function.Function;
import java.util.stream.Collectors;... | true |
fb3d3ed8b6c313ff1bb026b09b72844587203bbc | Java | huanglongf/enterprise_project | /service-interface-wms/src/main/java/com/jumbo/wms/manager/outbound/OutboundInfoManager.java | UTF-8 | 3,949 | 1.9375 | 2 | [] | no_license | package com.jumbo.wms.manager.outbound;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.jumbo.wms.manager.BaseManager;
import com.jumbo.wms.model.authorization.User;
import com.jumbo.wms.model.warehouse.StaDeliveryInfo;
import com.jumbo... | true |
582b92683b37fb0395c75fa2e20e90d27621040d | Java | arkadutta87/code_to_glory | /src/main/java/org/udemy/design_patterns/chain_of_responsibility/broker_chain/assignment/GoblinKing.java | UTF-8 | 232 | 2.34375 | 2 | [] | no_license | package org.udemy.design_patterns.chain_of_responsibility.broker_chain.assignment;
public class GoblinKing extends Goblin{
public GoblinKing(Game game){
super(game);
this.baseAttack = 3;
this.baseDefense = 3;
}
}
| true |
90d8d58af6c5349ca8067d27b316ccd0668b2b5f | Java | anfaas1618/aestheticAM-clientApp | /app/src/main/java/com/mibtech/aesthetic_am/fragment/HomeFragment.java | UTF-8 | 18,211 | 1.609375 | 2 | [] | no_license | package com.mibtech.aesthetic_am.fragment;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.graphics.Rect;
import android.os.Bundle;
import android.os.Handler;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.... | true |
8f490d98af33a02fd52ac1bd4f7985e618901b7d | Java | AlekssGu/insurance-premium-calculator | /src/main/java/policy/Policy.java | UTF-8 | 312 | 1.929688 | 2 | [] | no_license | package policy;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import java.math.BigDecimal;
import java.util.List;
@Getter
@Setter
@Builder
public class Policy {
private String number;
private String status;
private List<Object> objects;
private BigDecimal premium;
}
| true |
7c41081e322f038893f81d6294d10b7b36c8ef06 | Java | EricPedley/Hackathon-Game | /src/rishab/Map.java | UTF-8 | 738 | 2.65625 | 3 | [] | no_license | package rishab;
import eric.BossRoom;
import eric.Hero;
import processing.core.PApplet;
public class Map {
private Room[][] map;
private int x = 0,y = 0;
private Room activeRoom;
public Map() {
/*map = new Room[5][5];
for(int p=0;p<5;p++) {
for(int q=0;q<5;q++) {
map[p][q] = new Roo... | true |
5cd92401011fcb38d2013708591e49212c7ea31c | Java | rohitnotes/UdacitySpotifyStreamer | /app/src/main/java/com/blundell/udacityspotifystreamer/toptracks/Trackz.java | UTF-8 | 3,147 | 2.765625 | 3 | [] | no_license | package com.blundell.udacityspotifystreamer.toptracks;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import kaaes.spotify.webapi.android.models.Image;
public class Trackz {
private final List<Track> tracks;
public static Trackz from(Li... | true |
2e154b8f2607b0b131ead7567e21c650789bd794 | Java | timehaswings/WorkSpace | /HalfFaceMedia/src/com/example/halffacemedia/MainActivity.java | UTF-8 | 5,146 | 2.046875 | 2 | [] | no_license | package com.example.halffacemedia;
import java.io.File;
import com.example.utils.HalfFaceApp;
import android.Manifest;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android... | true |
6ca79e235f350421248f3bac733083f38c7e97ef | Java | medikid/Medroid | /src/com/meditrainer/medroid/ui/UserRegisterActivity.java | UTF-8 | 621 | 1.921875 | 2 | [] | no_license | package com.meditrainer.medroid.ui;
import com.meditrainer.medroid.R;
import com.meditrainer.medroid.R.layout;
import com.meditrainer.medroid.R.menu;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
public class UserRegisterActivity extends Activity {
@Override
public void on... | true |
d5bce0f541304420a5c29a5adf2a85876b82953e | Java | project-box/springbox | /springbox/src/main/java/com/naver/springbox/dto/FaqBean.java | UTF-8 | 1,521 | 2.484375 | 2 | [] | no_license | package com.naver.springbox.dto;
import java.sql.Date;
public class FaqBean {
private int faq_num;
private String faq_subject;
private String faq_content;
private int faq_readcount;
private Date faq_date;
public FaqBean() {
super();
}
public FaqBean(int faq_num, String faq_subject, String f... | true |
fb450b4b275f7b0fb588477e7caf217b6cbb76c9 | Java | apache/openoffice | /main/wizards/com/sun/star/wizards/ui/UnoDialog2.java | UTF-8 | 17,412 | 1.882813 | 2 | [
"Apache-2.0",
"CPL-1.0",
"bzip2-1.0.6",
"LicenseRef-scancode-other-permissive",
"Zlib",
"LZMA-exception",
"LGPL-2.0-or-later",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-philippe-de-muyter",
"OFL-1.1",
"LGPL-2.1-only",
"MPL-1.1",
"X11",
"LGPL-2.1-or-later",
"GPL-2.0-only",
... | permissive | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | true |
0ec2a2eb75217fe02223dcd2e7b91140052c0598 | Java | Sure-Li/SituFormalCurriculumStudy | /oa/src/main/java/com/siti/oa/user/controller/UserLoginServlet.java | UTF-8 | 3,163 | 2.25 | 2 | [] | no_license | package com.siti.oa.user.controller;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
impor... | true |
abc23a5c16d0a85512351c2e4d9569841a411232 | Java | huanglongf/enterprise_project | /service-interface-wms/src/main/java/com/jumbo/wms/model/vmi/espData/ESPPoTypeCommand.java | UTF-8 | 1,802 | 2.046875 | 2 | [] | no_license | package com.jumbo.wms.model.vmi.espData;
import java.util.Date;
import com.jumbo.util.StringUtils;
public class ESPPoTypeCommand extends ESPPoType {
/**
*
*/
private static final long serialVersionUID = 5280665367326878379L;
private Date startTime;
private Date endTime;
private String ty... | true |
4c45e41afebd14589e3b6bf9ed599e81d526db15 | Java | yuri0x7c1/uxcrm | /uxcrm-ofbiz/generated-entity/src/main/java/org/apache/ofbiz/webapp/website/WebPage.java | UTF-8 | 1,963 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package org.apache.ofbiz.webapp.website;
import lombok.experimental.FieldNameConstants;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import java.sql.Timestamp;
import org.apache.ofbiz.entity.GenericValue;
import java.util.List;
import java.util.ArrayList;
/**
* Web Page
*/
@FieldNameCons... | true |
8b914476c2b5e9d4e6687476f2272a287e08d5c4 | Java | spaul5/search-engine | /src/WebCrawler.java | UTF-8 | 9,265 | 2.9375 | 3 | [] | no_license |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.MalformedURLException;
import java.net.Socket;
import java.net.URI;
import java.net.URL;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.HashMap;
i... | true |
9f894f7e382cc00b6e0144cbe3b6b93f9602efe1 | Java | mvm78/test_java | /tiles/tables/Database/DatabaseTopQueryStatus.java | UTF-8 | 828 | 1.851563 | 2 | [] | no_license | package test_java.tiles.tables.Database;
import test_java.tiles.tables.Table;
import test_java.tiles.common.Database.CommonTopQueryStatus;
import test_java.tiles.common.CommonByDatabaseLatencyAndSessions;
public class DatabaseTopQueryStatus extends Table {
//******************************************************... | true |
47d640f225111601eef54b4e5b92b136849b39a5 | Java | tsvikaw/HomeLedger2 | /home.ledger.parent/home.ledger.storage/src/main/java/com/tsvika/home/ledger/storage/utilities/LedgerLogger.java | UTF-8 | 8,585 | 2.5 | 2 | [] | no_license | package com.tsvika.home.ledger.storage.utilities;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Objects;
public final class LedgerLogger {
private static final String CLOSER = " : {}";
private static String format;
private static String formatError;
private static String ... | true |
0efb0cbc94ce11cf4c219256a2c3ddc82732686b | Java | isabella232/android-sdk-sources-for-api-level-11 | /android/widget/BaseExpandableListAdapter.java | UTF-8 | 1,897 | 1.921875 | 2 | [] | no_license | /* */ package android.widget;
/* */
/* */ import android.database.DataSetObserver;
/* */
/* */ public abstract class BaseExpandableListAdapter
/* */ implements ExpandableListAdapter, HeterogeneousExpandableList
/* */ {
/* */ public BaseExpandableListAdapter()
/* */ {
/* 5 */ thro... | true |
567c1a0ff0d5d2652627ab7842be619291ab6717 | Java | kkousounnis/JavaCoreBasics | /src/qdemo/Qdemo.java | UTF-8 | 935 | 3.5625 | 4 | [] | no_license | package qdemo;
public class Qdemo {
public static void main(String[] args) {
// TODO Auto-generated method stub
//construct 10 element array
Queue q1=new Queue(10);
//construct queue from array
char name[]= {'T','o','m'};
Queue q2=new Queue(name);
char ch;
int i;
//put some charact... | true |
dc03eb7f100ac6fbe0bba34d80013dfd566defcb | Java | Whyat/ShortUrl | /src/main/java/prs/whyat/service/impl/UrlServiceImpl.java | UTF-8 | 3,438 | 2.515625 | 3 | [] | no_license | package prs.whyat.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import prs.whyat.dao.UrlDao;
import prs.whyat.entity.Url;
import prs.whyat.service.UrlService;
import prs.whyat.util.Converter;
import java.util.List;
/**
* @ClassName: UrlSe... | true |
1456e144489d3b9f3bf8eca6cfbc7a8d7d5d1f25 | Java | SSEHUB/EASyProducer | /Plugins/EASy-Producer/EASy-Examples/src/net/ssehub/easy/producer/examples/AvailableExamples.java | UTF-8 | 5,218 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2009-2015 University of Hildesheim, Software Systems Engineering
*
* 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
*
* ... | true |
2c6ef8883ab3b2d58221edd8cf0c1c687d786c52 | Java | AlexQYXU/SLG | /src/main/java/Display/Steal_Menu.java | UTF-8 | 3,544 | 2.71875 | 3 | [] | no_license | package Display;
import Characters.Character;
import Item.Item;
import Item.Consumables;
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
public class Steal_Menu extends JLayeredPane {
Character thief;
... | true |
eef1ae80c16407c149f11360a29a513387774354 | Java | Shankar1056/webspider | /app/src/main/java/apextechies/etodo/common/ClsGeneral.java | UTF-8 | 2,943 | 2.09375 | 2 | [] | no_license | package apextechies.etodo.common;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class ClsGeneral {
public static Context mContext;
... | true |
62feabf59f9b7abba6c74eb5f82eb74feba9baf0 | Java | GJ12281139/DemoOne | /src/Mining/TopCountPoints.java | UTF-8 | 3,792 | 3.140625 | 3 | [] | no_license | package Mining;
import java.io.IOException;
import java.util.HashMap;
import java.util.Iterator;
import static Tools.GetXRow.GetXRow;
import static Tools.WriteTxt.WriteTxt;
import java.io.IOException;
import java.util.HashMap;
import java.util.Iterator;
import static Tools.GetXRow.GetXRow;
import static Tools.Write... | true |
4f202c77ec64f9b6bca1c4ccbe3b31f6d0e44eee | Java | CondorJul/Inventario | /src/equipos/TipoEquipo/TipoEquipo.java | UTF-8 | 1,111 | 2.75 | 3 | [] | no_license | package equipos.TipoEquipo;
public class TipoEquipo {
private int idTipoEquipo=-1;
private String nombreTipoEquipo=null;
public TipoEquipo(int idTipoEquipo, String nombreTipoEquipo){
this.idTipoEquipo=idTipoEquipo;
this.nombreTipoEquipo=nombreTipoEquipo;
}
public int getIdTipoEquipo() {
return idT... | true |
77e7e4fe76174020e3e3e27d527ae762e813878d | Java | DsonSolo/Converting-Database-Tables-into-Entities-via-Forward-Engineering | /src/main/java/domain/Event.java | UTF-8 | 985 | 2.421875 | 2 | [] | no_license | package domain;
import java.io.Serializable;
import javax.persistence.*;
import java.util.Set;
/**
* The persistent class for the event database table.
*
*/
@Entity
@NamedQuery(name="Event.findAll", query="SELECT e FROM Event e")
public class Event implements Serializable {
private static final long serialVersi... | true |
c3caf79530f56d65c5f43d6baf903a7da242887d | Java | PStopa/pawel-stopa-kodilla-java | /kodilla-stream/src/main/java/com/kodilla/stream/forumuser/Forum.java | UTF-8 | 1,026 | 2.703125 | 3 | [] | no_license | package com.kodilla.stream.forumuser;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
public class Forum {
private final List<ForumUser> theUserList = new ArrayList<>();
public Forum(){
theUserList.add(new ForumUser(1, "Piotr",'M', LocalDate.of(1990,01,05), 10));
... | true |
1e0d15d4b9fbb529585b582f42b5d5f5ea2d0fb8 | Java | thoang43/JUnitTest | /JUnit/Sample Student Submitting Folders/Project4/Student02/Plot.java | MacCentralEurope | 8,026 | 3.9375 | 4 | [] | no_license |
/**
*
* CMSC 203
* Assignment 4
*/
/**
* Data Element class Plot.java
* The class Plot will contain:
* 1. Instance variables (attributes) to represent the x and y coordinates of the upper left corner of the location, and depth and width to represent the vertical and horizontal extents of the plot.
... | true |
18d9659a49c5b0c21724fca1721b8c8be09817c8 | Java | silnith/organic-browser | /src/test/java/org/silnith/css/model/data/PropertyNameTest.java | UTF-8 | 606 | 2.203125 | 2 | [] | no_license | package org.silnith.css.model.data;
import static org.junit.Assert.assertSame;
import org.junit.Test;
public class PropertyNameTest {
@Test
public void testGetPropertyName() {
for (final PropertyName propertyName : PropertyName.values()) {
final PropertyName retrieved = ... | true |
3e89166b88cacce77aed76d510b0dcbfac810ff4 | Java | ahartens/helloLittleFicus | /allenmvn/src/main/java/allen2hpo/clustering/kmeans/calck/GapStat.java | UTF-8 | 13,480 | 3.140625 | 3 | [] | no_license | package allen2hpo.clustering.kmeans.calck;
import allen2hpo.matrix.*;
import allen2hpo.clustering.kmeans.algorithms.Kmeans;
import allen2hpo.clustering.kmeans.distance.*;
import allen2hpo.clustering.kmeans.initclust.*;
import org.apache.log4j.Logger;
/**
* <p>Finds optimal number of clusters using kmeans.
* <br>GapS... | true |
11643af95a58b4cc4d2896948aabbdecae16dedd | Java | TTLOVEWW/Activiti | /src/main/java/com/voidforce/activiti/mapper/roleMenu/provider/RoleMenuMapperProvider.java | UTF-8 | 808 | 2.078125 | 2 | [] | no_license | package com.voidforce.activiti.mapper.roleMenu.provider;
import com.voidforce.activiti.bean.RoleMenu;
import com.voidforce.activiti.common.constant.CommonConstant;
public class RoleMenuMapperProvider {
public String deleteBy(RoleMenu roleMenu) {
roleMenu.setDeleted(CommonConstant.NOT_DELETED);
St... | true |
f95f2ed8dce7985fa6bc84145f22e944051dd01b | Java | Vural-xx/Schiffe | /src/main/java/de/hs/bremen/model/Zerstoerer.java | UTF-8 | 329 | 2.28125 | 2 | [] | no_license | package de.hs.bremen.model;
public class Zerstoerer extends Schiff {
/**
* SerialVersionUID zum Speichern und Lesen
*/
private static final long serialVersionUID = 5304549716161218230L;
public Zerstoerer(){
super();
}
public Zerstoerer(Position position, boolean horizontal){
super(position, horizonta... | true |
a1434e193b3bdf26729bb4e08752d985dfe9445e | Java | Sanket-777/Stay | /app/src/main/java/com/example/stay/MainActivity.java | UTF-8 | 2,261 | 1.90625 | 2 | [] | no_license | package com.example.stay;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.appcompat... | true |
16e522eb825de9873cd7f95b0ecdd3d76a166d1d | Java | weskempa-liferay/dealers | /modules/dealer/dealer-api/src/main/java/com/liferay/raybia/dealer/service/DealerLocalServiceUtil.java | UTF-8 | 17,511 | 2.03125 | 2 | [] | no_license | /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any la... | true |
6bee459d222bb0bbefb603265df4023384d8cf7a | Java | gchoudharyb/java | /src/com/gaurav/java/stream/TopThreeRepeatedWordInFileMain.java | UTF-8 | 551 | 2.625 | 3 | [] | no_license | package com.gaurav.java.stream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;
public class TopThreeRepeatedWordInFileMain {
public static void main(String[] args) throws IOException {
... | true |
157eea2e2362ad410016b1215ba388ff54890bea | Java | EvgeniyLis/LeetcodeEx | /src/easy/PlusOne.java | UTF-8 | 597 | 3.234375 | 3 | [] | no_license | package easy;
public class PlusOne{
public int[] plusOne(int[] digits) {
int degree=digits.length-1;
Long sum=0L;
for (int i=0; i<digits.length; i++){
sum+=digits[i]*(long)Math.pow(10,degree);
degree--;
}
sum+=1;
long[] arr=new long[sum.toString... | true |
4a81b3a954e095d5dc14a79f50170aa33203afb9 | Java | nguyenhuyenag/java | /java-core/src/main/java/com/basic/serializable/Serialization.java | UTF-8 | 2,008 | 3.609375 | 4 | [] | no_license | package com.basic.serializable;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
/**
* - Chuyển đổi trạng thái của một object thành một định dạng khác (thường là
* byte stream) để lưu trữ hoặc truyển qua... | true |
11fdaf022ece01c31502974782b4bdefe115e92b | Java | caoguzelmas/employee-management | /src/main/java/com/EmployeeManagement/employeemanagement/dto/ExpenseDTO.java | UTF-8 | 1,750 | 2.140625 | 2 | [] | no_license | package com.EmployeeManagement.employeemanagement.dto;
import com.EmployeeManagement.employeemanagement.entity.ExpenseType;
import java.util.Date;
public class ExpenseDTO {
private Long expenseId;
private Double totalAmount;
private String updatedAt;
private String createdAt;
private EmployeeDTO ... | true |
e0ac9ace12d67ca1ca15dd2831088927fc2f0efd | Java | a559927z/doc | /hrd-framework/src/main/java/net/chinahrd/core/module/ModuleLocal.java | UTF-8 | 509 | 2.1875 | 2 | [] | no_license | /**
*net.chinahrd.core.module
*/
package net.chinahrd.core.module;
import net.chinahrd.core.module.model.ModuleModel;
/**获取当前线程模块
* @author htpeng
*2016年11月8日下午6:23:44
*/
public class ModuleLocal {
private static ThreadLocal<ModuleModel> threadLocal =new ThreadLocal<ModuleModel>();
public static v... | true |
a90003feb109d4474b5568f653806350a5b6b799 | Java | maksimteacher/proff2 | /iev_strygul/iev_web_project/src/main/java/domain/Theme.java | UTF-8 | 1,256 | 2.703125 | 3 | [] | no_license | package domain;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
/**
* Created by Notebook on 27.04.2016.
*/
@Entity
public class Theme {
private Integer id;
private String theme;
@Id
@GeneratedValue(generator = "increment")
@GenericGenerator(name = "increment", s... | true |
7aadd995441dd368a2f8e565be53151db27dbfe8 | Java | kietnguyen250/BOOKSTORE_MANAGER | /app/src/main/java/com/kietnt/du_an_mau/adapter/SachAdapter.java | UTF-8 | 4,791 | 2.34375 | 2 | [] | no_license | package com.kietnt.du_an_mau.adapter;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.... | true |
c6e164ff0ef1efffb23bd1343b5755b6f601f4e1 | Java | yangheqingvip/elasticsearch-helper | /src/main/java/io/github/snowthinker/eh/template/CustomElasticsearchTemplate.java | UTF-8 | 11,101 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive | package io.github.snowthinker.eh.template;
import static org.springframework.util.CollectionUtils.isEmpty;
import java.util.List;
import org.elasticsearch.action.ActionFuture;
import org.elasticsearch.action.search.SearchRequestBuilder;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.... | true |
9d90c6a6546d7dec8a1a4bbc854692523dd81f1c | Java | spdimov/FMI_Java | /Homeworks/02_SpellCheckTool/src/bg/sofia/uni/fmi/mjt/spellchecker/Metadata.java | UTF-8 | 278 | 2.453125 | 2 | [] | no_license | package bg.sofia.uni.fmi.mjt.spellchecker;
public record Metadata(int characters, int words, int mistakes) {
@Override
public String toString() {
return String.format("%d characters, %d words, %d spelling issue(s) found", characters, words, mistakes);
}
}
| true |
1fed961399cc27693034b287859566f78ef07fe0 | Java | SweeneyZhou/open-platform | /src/main/java/com/example/openplatform/entity/Role.java | UTF-8 | 258 | 1.609375 | 2 | [] | no_license | package com.example.openplatform.entity;
import lombok.Data;
/**
* @author sweeney
* @since 2021/06/25 15:39 created.
*/
@Data
public class Role {
private Integer id;
private String name;
private String remark;
private Integer status;
}
| true |
7755cf98896bd4b56eed01120e8a22da12b3617e | Java | ookwrd/suzume | /src/nodes/Agents/statisticaggregators/AbstractCountingAggregator.java | UTF-8 | 961 | 2.71875 | 3 | [] | no_license | package nodes.Agents.statisticaggregators;
import java.util.ArrayList;
import nodes.Node;
import nodes.Agents.Agent;
import nodes.Node.StatisticsCollectionPoint;
import tools.Pair;
public abstract class AbstractCountingAggregator extends BaseStatisticsAggregator {
private double count = 0;
private int agentCoun... | true |
dabdf4905518f3b7a6bb937101e2a4089b87ab1c | Java | weichk/yiji-sdk | /openapi-sdk-message/src/main/java/com/yiji/openapi/message/common/bankcard/CommonBankCardBindingSetDefaultRequest.java | UTF-8 | 1,240 | 1.898438 | 2 | [] | no_license | /*
* www.yiji.com Inc.
* Copyright (c) 2015 All Rights Reserved.
*/
package com.yiji.openapi.message.common.bankcard;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import com.yiji.openapi.sdk.common.annotation.... | true |
66c8b383f22a82117e941f4b12380c3b7c68bc78 | Java | Brax99/sz-104-health | /health_service/src/main/java/com/itheima/health/service/impl/OrderSettingServiceImpl.java | UTF-8 | 3,617 | 2.46875 | 2 | [] | no_license | package com.itheima.health.service.impl;
import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.health.Exception.MyException;
import com.itheima.health.dao.OrderSettingDao;
import com.itheima.health.pojo.OrderSetting;
import com.itheima.health.service.OrderSettingService;
import org.springframework.bea... | true |
3d5b08eb2ddb873b42c9fc3212156155ecbf98a2 | Java | adij1206/E-Voting-App | /app/src/main/java/com/aditya/onlinevoting/RegisterActivity.java | UTF-8 | 11,798 | 1.890625 | 2 | [] | no_license | package com.aditya.onlinevoting;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import android.Manifest;
import android.app.ProgressDialog;
import android.content.Intent;
import android.content.p... | true |
e80ee7b93d31f4043e0b9b7bc40c75fe20f63103 | Java | MagnusChase03/TicTacToeAI | /TicTacToe.java | UTF-8 | 2,747 | 3.296875 | 3 | [] | no_license | import java.util.Scanner;
public class TicTacToe {
private char[][] board;
private Ai ai;
private TicTacToe () {
board = new char[3][3];
for (int i = 0; i < board.length; i++) {
for (int j = 0; j < board[0].length; j++) {
board[i][j] = '-';
}
... | true |
ebf268097121f8df3e44fec2b157c2bf7a902198 | Java | TestOrani/Test01 | /src/cn/mldn/oracle/factory/ServiceFactory.java | UTF-8 | 333 | 2.171875 | 2 | [] | no_license | package cn.mldn.oracle.factory;
import cn.mldn.oracle.service.proxy.ServiceProxy;
public class ServiceFactory {
private ServiceFactory() {}
public static <T> T getInstance(Class<T> cls) {
try {
return new ServiceProxy().bind(cls) ;
} catch (Exception e) {
e.printStackTrace();
}
return nul... | true |
9d3252ce11c661db07f7c307cb7bd2a7e1f011d3 | Java | m2ohara/CausalGame | /core/src/com/causal/game/data/FollowerRepo.java | UTF-8 | 2,549 | 2.65625 | 3 | [] | no_license | package com.causal.game.data;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.causal.game.state.Follower;
import com.causal.game.state.FollowerType;
public class FollowerRepo {
private static FollowerRepo instance;
... | true |
d087dd79990c58f6feedc6b5ec5cda7e776c83e6 | Java | LBFan/LeetCode | /src/com/leetcode/fan/arrays/Sixty_six.java | UTF-8 | 1,672 | 3.96875 | 4 | [] | no_license | package com.leetcode.fan.arrays;
/**
* Created by : PF
* Date on : 2018/11/13.
* <p>
* 给定一个由整数组成的非空数组所表示的非负整数,在该数的基础上加一。
* <p>
* 最高位数字存放在数组的首位, 数组中每个元素只存储一个数字。
* <p>
* 你可以假设除了整数 0 之外,这个整数不会以零开头。
* <p>
* 示例 1:
* 输入: [1,2,3]
* 输出: [1,2,4]
* 解释: 输入数组表示数字 123。
* <p>
* 示例 2:
* 输入: [4,3,2,1]
* 输出: [4,3,2,2]... | true |
6f25a952a8afed64e3386f6aecd7a7bda1a7f4e7 | Java | mmmyang/OperatingSystemProjects | /Batch File Processor/eclipse project/BatchFileProcessor/src/MyProcessor/BatchProcessor.java | UTF-8 | 1,429 | 3.375 | 3 | [] | no_license | package MyProcessor;
import java.io.File;
import MyCommand.Command;
/**
* Batch file processor used to parse and execute a batch file containing a number of commands
* Execute the processor as an executable jar file from command line using command such as "java -jar myBatchProcessor.jar work\batch1.dos.xml"
*
*/... | true |
3a8c2a322a1386dcf76955a3cd8b2148d99d6c31 | Java | step-up-labs/Droppy | /library/src/main/java/com/shehabic/droppy/animations/DroppyFadeInAnimation.java | UTF-8 | 1,521 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package com.shehabic.droppy.animations;
import android.view.View;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import com.shehabic.droppy.DroppyMenuPopup;
import com.shehabic.droppy.views.DroppyMenuPopupView;
public class DroppyFadeInAnimation implements DroppyAnimation {
... | true |
dd31ac4eacce6b1763836002bd22eff3230b22e9 | Java | jordisanchezcarbonell/AndroidABP | /Projecte14012019/app/src/main/java/com/example/cep/projecte/com/example/cep/projecte/activities/PerfilActivity.java | UTF-8 | 4,877 | 2.203125 | 2 | [] | no_license | package com.example.cep.projecte.com.example.cep.projecte.activities;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.MotionEvent;
import android.view.View;
import android.widget.AdapterView;
import android.widget.GridView;
import android.widget.... | true |
424d9e4ba0b20dfa43524d83ff8d736772f5582d | Java | JPMartin93/WordFinder | /wordFinder/src/wordfinder/WordFinder.java | UTF-8 | 1,617 | 3.25 | 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 wordfinder;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.... | true |
7fd7561c8a56a47942f1073b4898ab156abb2401 | Java | zrunker/ZGraphics | /app/src/main/java/cc/ibooker/zgraphics/CanvasActivity.java | UTF-8 | 454 | 1.875 | 2 | [] | no_license | package cc.ibooker.zgraphics;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
/**
* 画布实例测试
* Created by 邹峰立 on 2018/3/1.
*/
public class CanvasActivity extends AppCompatActivity {
@Override
protected void onCreate(@Nullable Bundle save... | true |
3286ccc6cb408235c196ba0d0dbc342b3b0434de | Java | abhijeet-yahoo/jewels | /src/main/java/com/jiyasoft/jewelplus/service/marketing/transactions/IStkTrfCompDtService.java | UTF-8 | 547 | 1.632813 | 2 | [] | no_license | package com.jiyasoft.jewelplus.service.marketing.transactions;
import java.util.List;
import com.jiyasoft.jewelplus.domain.marketing.transactions.StkTrfCompDt;
import com.jiyasoft.jewelplus.domain.marketing.transactions.StkTrfDt;
public interface IStkTrfCompDtService {
public void save(StkTrfCompDt stkTr... | true |
90c632c262846f3d74936477c754ec6f6b7b3f3c | Java | CNAlphaCat/LeetCode | /leetcode-solution/src/main/java/org/alphacat/leetcode/solution/easy/no201to300/No270.java | UTF-8 | 1,352 | 3.328125 | 3 | [] | no_license | package org.alphacat.leetcode.solution.easy.no201to300;
import org.alphacat.leetcode.datastructure.TreeNode;
public class No270 {
public int closestValue(TreeNode root, double target) {
int thisNum = root.val;
if (root.left == null && root.right == null) {
return root.val;
} else if (root.left == null && r... | true |
4dcb47c9c78c9b7fddd3d712ab78e6865c99516d | Java | WillZ22/wr | /src/main/java/com/wr/Interceptor/SInterceptor.java | UTF-8 | 1,203 | 2.171875 | 2 | [] | no_license | package com.wr.Interceptor;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;
public class SInterceptor implements HandlerInterceptor{
@Override
pub... | true |
2056ea4eb8feee88d8bf72b6fc9579e4f97d524b | Java | cul-it/da-solr-availability | /src/main/java/edu/cornell/library/integration/availability/RefreshAvailability.java | UTF-8 | 2,807 | 2.203125 | 2 | [] | no_license | package edu.cornell.library.integration.availability;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.Date;
import java.util.HashSet;
import java.util.Properties;
import java.uti... | true |
2790494529a9b04ab1e4c307d88c3f003ac8dbd8 | Java | daravi/modelio | /uml/diagram.editor.sequence/src/org/modelio/diagram/editor/sequence/elements/gate/GmGatePrimaryNode.java | UTF-8 | 5,650 | 1.765625 | 2 | [] | no_license | /*
* Copyright 2013-2018 Modeliosoft
*
* This file is part of Modelio.
*
* Modelio is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ve... | true |
bbfadd4f7ee55c140ae07d7cfd3409eda759861a | Java | qza/java-integration-examples | /jms-spring-example/src/main/java/org/qza/integration/spring/Sender.java | UTF-8 | 285 | 1.984375 | 2 | [] | no_license | package org.qza.integration.spring;
import org.springframework.jms.core.JmsTemplate;
public class Sender {
private JmsTemplate template;
public Sender(JmsTemplate template) {
this.template = template;
}
public void send() {
template.convertAndSend("Test message");
}
} | true |
8cb760b4cafa09d5fa7473c6fdf393ecdada2785 | Java | Ismailalkouz94/spring-boot-microservices | /user-management/src/main/java/com/weatherguess/usermanagement/service/UsersService.java | UTF-8 | 258 | 1.960938 | 2 | [] | no_license | package com.weatherguess.usermanagement.service;
import com.weatherguess.usermanagement.model.Users;
import java.util.List;
public interface UsersService {
List<Users> getUsers();
Users getUserByName(String name);
Users save (Users users);
}
| true |
beb2dd5e27b0123451ca459f9119186a5947089e | Java | tanzijian1/mytest | /tg/META-INF/classes/nc/bs/tg/carryovercost/ace/bp/AceCarryoverCostUpdateBP.java | GB18030 | 2,056 | 2.125 | 2 | [] | no_license | package nc.bs.tg.carryovercost.ace.bp;
import nc.bs.tg.carryovercost.plugin.bpplugin.CarryoverCostPluginPoint;
import nc.impl.pubapp.pattern.data.bill.template.UpdateBPTemplate;
import nc.impl.pubapp.pattern.rule.processer.CompareAroundProcesser;
import nc.impl.pubapp.pattern.rule.IRule;
import nc.vo.tgfn.carryovercos... | true |
f1219de94be4dbe11f439de7f75f710dc1a84ab4 | Java | aasince1981/quivu | /quivu_android/src/com/it/reloved/adapter/FollowersListAdapter.java | UTF-8 | 8,717 | 1.96875 | 2 | [] | no_license | package com.it.reloved.adapter;
import java.util.List;
import android.R.color;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.AsyncTask;
... | true |
379eaa1d319296062d3ab6b82a89ff3c091898d5 | Java | Spencer-Arbour/TopCard | /src/test/java/com/spencerarbour/Lib/DeckTest.java | UTF-8 | 2,344 | 2.828125 | 3 | [] | no_license | package com.spencerarbour.Lib;
import org.hamcrest.core.IsEqual;
import org.hamcrest.core.IsNot;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;
import java.util.stream.Stream;
impor... | true |
7259e8a26a95153e37ddacac8e4732a7fef8f558 | Java | hstrada/java-jdbc-conceitos | /src/br/com/jdbc/entity/Clientes.java | UTF-8 | 822 | 2.484375 | 2 | [] | no_license | package br.com.jdbc.entity;
import java.io.Serializable;
import java.util.List;
public class Clientes implements Serializable {
private int id;
private String nome;
private String email;
private List<Pedidos> pedidos;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
publi... | true |
f22d74d02be009f71b2d32213c7eed609e0a28de | Java | tuluce/AStarImplementation | /AStarTest/desktop/src/com/crow/prototype/desktop/DesktopLauncher.java | UTF-8 | 530 | 2.015625 | 2 | [] | no_license | package com.crow.prototype.desktop;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import com.crow.astar.AStarExample;
public class DesktopLauncher {
public static void main (String[] arg) {
LwjglApplicationConfiguration confi... | true |
a9522c71a8e139e90f04878cca3cd752772079ec | Java | oraclebill/edairy_desktop | /plugins/com.agritrace.edairy.desktop.member.ui/src/com/agritrace/edairy/desktop/member/ui/controllers/LiveStockListController.java | UTF-8 | 13,055 | 1.625 | 2 | [] | no_license | package com.agritrace.edairy.desktop.member.ui.controllers;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.eclipse.core.databinding.observable.list.WritableList;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.window.... | true |
de2349e613e9238572384ecc54405d7d6d4d5869 | Java | me-kry-student-task-checker/stc-main | /backend/task-service/src/main/java/hu/me/iit/malus/thesis/task/controller/TaskController.java | UTF-8 | 3,787 | 2.1875 | 2 | [] | no_license | package hu.me.iit.malus.thesis.task.controller;
import hu.me.iit.malus.thesis.task.controller.dto.BriefTaskDto;
import hu.me.iit.malus.thesis.task.controller.dto.CreateTaskDto;
import hu.me.iit.malus.thesis.task.controller.dto.DetailedTaskDto;
import hu.me.iit.malus.thesis.task.controller.dto.EditTaskDto;
import hu.me... | true |
1baa9e9f834235fcc8eda235ca6b286f27fab0cd | Java | crio-xx/SeleniumWebDriverCourse | /src/main/java/configuration/ConfigurationUtils.java | UTF-8 | 553 | 2.578125 | 3 | [] | no_license | package configuration;
import java.io.File;
public class ConfigurationUtils{
private static final String driversDir = "src/test/resources/drivers/";
private static final String chromedriverName = "chromedriver.exe";
private static final String geckodriverName = "geckodriver.exe";
public static Strin... | true |
0428776ee5dc139c0bc349e9b003312dc0d9d5a4 | Java | rockbite-bootcamp/product-shop-Ruviks | /src/com/company/Commands/Command.java | UTF-8 | 184 | 1.867188 | 2 | [] | no_license | package com.company.Commands;
import com.company.Pool.Poolable;
public interface Command extends Poolable {
void execute() throws Exception;
void undo() throws Exception;
}
| true |
c0356e7baf567f37a30bbdcb6116df9d5790309d | Java | DonSaik/ss | /src/main/java/lt/viko/eif/donatas/service/UserService.java | UTF-8 | 287 | 1.921875 | 2 | [] | no_license | package lt.viko.eif.donatas.service;
import java.util.List;
import lt.viko.eif.donatas.model.User;
public interface UserService {
List<User> getUsers();
User getUserByUsername(String username);
User resigterNewUser(User user);
List<User> filterUsersByUsername(String username);
}
| true |
3ee02c43bec9c5146a1c65560703518f77195add | Java | alwx/cocktaildepot-android | /cocktaildepot/src/com/cocktaildepot/fragment/CategoriesFragment.java | UTF-8 | 5,653 | 2.109375 | 2 | [] | no_license | package com.cocktaildepot.fragment;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.*;
import ... | true |