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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
7fb5ff004c3380f7d0c44019b76bba314fbd5a2d | Java | moutainhigh/gomeo2o | /venus-trade-api/tags/release-1.0.0/src/main/java/cn/com/gome/trade/dto/io/split/request/ItemPriceInfoBySplitDto.java | UTF-8 | 374 | 1.804688 | 2 | [] | no_license | package cn.com.gome.trade.dto.io.split.request;
import java.io.Serializable;
public class ItemPriceInfoBySplitDto implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
private String amount; // 商品项总金额
public String getAmount() {
return amount;
}
public void setAmount(Strin... | true |
d8f253727a7be3f13bd98a57e847e8aeeb82e9ac | Java | Jaceww/Java-Socket-Rogue-Game | /rouge_game/ClientHandler.java | UTF-8 | 9,691 | 2.9375 | 3 | [] | no_license | import java.io.*;
import java.net.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
class ClientHandler extends Thread {
final DataInputStream dis;
final DataOutputStream dos;
final Socket s;
String playerID;
Game game;
int xPos;
int yPos;
private boolean do... | true |
a030311a0e4313f72fb01b40c95e6c0f300ff222 | Java | TypeMonkey/Wordy | /wordy/logic/runtime/components/StackComponent.java | UTF-8 | 484 | 2.875 | 3 | [
"MIT"
] | permissive | package wordy.logic.runtime.components;
/**
* Represents Components that can be pushed into the runtime stack, such as variables and instances
* (not frame stack, but the computation stack used when interpreting statements)
*
* @author Jose Guaro
*
*/
public abstract class StackComponent extends Component{
... | true |
95aecdc2026d0e5018d796de6afe1fbe7e63000d | Java | Chen768959/flume-custom-extend | /merge-file-name-sink/src/main/java/pers/cly/merge_file_name_sink/MergeFileNameSink.java | UTF-8 | 5,190 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | package pers.cly.merge_file_name_sink;
import com.google.common.collect.Lists;
import org.apache.flume.Channel;
import org.apache.flume.Context;
import org.apache.flume.Event;
import org.apache.flume.EventDeliveryException;
import org.apache.flume.Transaction;
import org.apache.flume.conf.Configurable;
import org.apa... | true |
490cab41e567af40e16c04385fb08e02dca20dee | Java | iantal/AndroidPermissions | /apks/playstore_apps/com_ubercab/source/com/twilio/voice/impl/session/events/UnknownEvent.java | UTF-8 | 250 | 1.851563 | 2 | [
"Apache-2.0",
"GPL-1.0-or-later"
] | permissive | package com.twilio.voice.impl.session.events;
import com.twilio.voice.impl.session.Event;
import com.twilio.voice.impl.session.Event.Type;
public class UnknownEvent
extends Event
{
public UnknownEvent()
{
super(Event.Type.UNKNOWN);
}
}
| true |
ac3fee9a944d66d289d14501374e65b5a0fdde29 | Java | lukaszbinden/jmcs-pattern-recognition | /Exercise_4/src/ch/unifr/jmcs/patrec/ex04/Playground.java | UTF-8 | 230 | 1.6875 | 2 | [
"MIT"
] | permissive | package ch.unifr.jmcs.patrec.ex04;
public class Playground {
public static void main(String[] args) throws Exception {
MoleculeDataSet validSet = ValidationMain.load("data/validation/gxl");
validSet.loadAll();
}
}
| true |
f35117fe0c52499c96d052e6ba45fb861b9312d6 | Java | tkolsen/myplanner | /src/main/java/MyPlanner/exceptions/UserInfoNotSetException.java | UTF-8 | 281 | 2.359375 | 2 | [] | no_license | package MyPlanner.exceptions;
/**
* Created by TomKolse on 24-Nov-14.
*/
public class UserInfoNotSetException extends Exception{
public UserInfoNotSetException(String message) {
super(message);
}
public UserInfoNotSetException() {
super();
}
}
| true |
3f61219fe1dc15c730fa22ed0b1bae817268c08a | Java | quarkusio/quarkus | /integration-tests/redis-cache/src/test/java/io/quarkus/it/cache/redis/CacheTest.java | UTF-8 | 841 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package io.quarkus.it.cache.redis;
import static io.restassured.RestAssured.when;
import static org.hamcrest.Matchers.is;
import org.junit.jupiter.api.Test;
import io.quarkus.test.junit.QuarkusTest;
@QuarkusTest
public class CacheTest {
@Test
public void testCache() {
runExpensiveRequest();
... | true |
3b4787361fff7b2dd8da52ffb411c37ca3cb2ce1 | Java | wilfoderek/onion-architecture | /application/src/main/java/alekseybykov/portfolio/whitepappers/exceptions/WorkWithFilesException.java | UTF-8 | 358 | 2.3125 | 2 | [
"MIT"
] | permissive | package alekseybykov.portfolio.whitepappers.exceptions;
/**
* @author Aleksey Bykov
* @since 03.10.2019
*/
public class WorkWithFilesException extends RuntimeException {
public WorkWithFilesException(String message) {
super(message);
}
public WorkWithFilesException(String message, Throwable cau... | true |
ee42c6af223ab3bdb639159e6aa9bffe2da7f132 | Java | nicomori/CasoBusquedaEnGoogle6 | /src/test/java/com/smartfrog/pageobject/web/external/GmailHomePage.java | UTF-8 | 3,695 | 2.53125 | 3 | [] | no_license | package com.smartfrog.pageobject.web.external;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import com.smartfrog.framework.ParentPage;
public class GmailHomePage extends ParentPage {
/**
* @param driver
*/
public GmailHomePage(WebDriver driver) {
super(driver);
}
private By RECEIV... | true |
8d950e21680ca5d1ce46c510645c0f86c56f40f2 | Java | sgstyjy/DT | /tpcw-nyu/src/edu/nyu/pdsg/tpcw/ejb/country/CountryModel.java | UTF-8 | 1,194 | 2.46875 | 2 | [] | no_license | package edu.nyu.pdsg.tpcw.ejb.country;
import java.io.Serializable;
/**
* Country bean.
*
* @author <a href="mailto:totok@cs.nyu.edu">Alexander Totok</a>
*
* @version $Revision: 1.4 $ $Date: 2005/02/05 21:26:28 $ $Author: totok $
*/
public class CountryModel implements Serializable {
priv... | true |
718cd279727a329817d9a9645dfbcfd2a8d44a4a | Java | Nuccia95/Tesi2018 | /Catalogue/src/model/Review.java | UTF-8 | 1,130 | 2.21875 | 2 | [] | no_license | package model;
public class Review {
String id;
String placeName;
String head;
String stars;
String image;
String description;
String lastLine;
public Review() {
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String g... | true |
c4856395fb42a296feb1cc55d25d04863ceae9fa | Java | Olivki/minecraft-clients | /GodlikeCraft [mc-1.3.2]/se/proxus/hacks/h_Breadcrumb.java | UTF-8 | 5,657 | 2.25 | 2 | [
"LicenseRef-scancode-public-domain",
"Unlicense"
] | permissive | package se.proxus.hacks;
import se.proxus.utils.placeholders.p_Breadcrum;
import net.minecraft.src.*;
import static org.lwjgl.opengl.GL11.*;
public class h_Breadcrumb extends Base_Hack {
public h_Breadcrumb() {
super('6', "Breadcrumb", "Draws lines after where you've walked.", "Render", "NONE");
}
@Override
... | true |
9ef682c3f5fc2998e306f3d6ff8137e50b1d4f01 | Java | akp1989/fabric-java-sdk | /src/main/java/com/java/client/CAClient.java | UTF-8 | 5,764 | 2.25 | 2 | [] | no_license | package com.java.client;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.java.config.Config;
import com.java.user.UserContext;
import org.hyperledger.fabric.gateway.Wallet;
import o... | true |
b6a9bb3c69c080257b9e652aa3817e9349b7814f | Java | agoshka/springDemo | /src/main/java/org/agoshka/demo/data/domain/Role.java | UTF-8 | 106 | 1.71875 | 2 | [] | no_license | package org.agoshka.demo.data.domain;
/**
*
* @author go
*/
public enum Role {
USER,
ADMIN;
}
| true |
1ac4809c1494d8145031432f6627a8ee78843f78 | Java | nekolr/lolibox | /lolibox-server/src/main/java/io/loli/box/service/impl/InvitationCodeServiceImpl.java | UTF-8 | 969 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package io.loli.box.service.impl;
import io.loli.box.service.InvitationCodeService;
import org.hashids.Hashids;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
/**
* @author choco
*/
@Service... | true |
3fd2799c146652c47d5e5f796e23a8d3a523369c | Java | mikechernykh/cellular-provider | /cellular-provider-shell/src/main/java/dev/chernykh/cellular/shell/UserCommands.java | UTF-8 | 4,778 | 2.609375 | 3 | [] | no_license | package dev.chernykh.cellular.shell;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Maps;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import org.springframework.context.expression.MapAccessor;
import org.springframework.expres... | true |
5539c51b085705644df2398e2e95b87a70e2f033 | Java | TweetyTheBird/java-homework | /src/sevenclasswork/animalspoly/runAnimals.java | UTF-8 | 541 | 3.3125 | 3 | [] | no_license | package sevenclasswork.animalspoly;
public class runAnimals {
public static void main(String args[]) {
Bird bird1 = new Bird();
bird1.setAnimalType("bird");
Lion lion1 = new Lion();
lion1.setAnimalType("snake");
Snake snake1 = new Snake();
snake1.setAnimalType("snak... | true |
a3fc58e168964d3b67b76b0d394807d88cfe4162 | Java | JasmineLiuLiuLiu/calculation-generator | /src/main/java/calculate/GenerateAndPrint.java | UTF-8 | 3,397 | 2.96875 | 3 | [] | no_license | package calculate;
import static calculate.metadata.Operator.ADD;
import static calculate.metadata.Operator.SUB;
import calculate.expressions.Equation;
import calculate.expressions.FloatEquation;
import calculate.generators.MixCalculationEquationGenerator;
import calculate.generators.MulCalculationExpressionsGenerato... | true |
0ed4533e2c850a338b6db5f42f6a5f23c83846d5 | Java | shenzhijiangit/ICMServer | /icm-purchase/icm-purchase-rest-api/src/main/java/org/shenzhijian/controller/purchase/PurchaseReportController.java | UTF-8 | 7,753 | 2.109375 | 2 | [] | no_license | package org.shenzhijian.controller.purchase;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.shenzhijian.persistence.purchase.entity.PurchaseReport;
import org.shenzhijian.service.purchase.PurchaseReportService;
import org.springframewor... | true |
912eed7b7b82eb7bdd2cce8c375d91cc4dd5d638 | Java | robinlabs/RobinClient | /app/src/main/java/com/magnifis/parking/Xml.java | UTF-8 | 18,252 | 2.703125 | 3 | [] | no_license | /*
* Xml.java
*
* Created on April 3, 2007, 11:38 AM
*
* Copyright(C) 2007 Ze'ev (Vladimir) Belkin. All rights reserved.
*
<h1>The Artistic License</h1>
<tt>
<p>Preamble</p>
<p>The intent of this document is to state the conditions under which a
Package may be copied, such that the Copyright Holder mai... | true |
17a9c0a9389fda12d910704533fe10df9ca8349c | Java | Miklene/FrequencyGenerator | /app/src/main/java/com/miklene/frequencygenerator/sound_effect/SoundEffectDecorator.java | UTF-8 | 147 | 1.898438 | 2 | [] | no_license | package com.miklene.frequencygenerator.sound_effect;
public abstract class SoundEffectDecorator {
public SoundEffectDecorator() {
}
}
| true |
289633d72591026e6dc911fd49905799e14d3347 | Java | Bottle0oo0/juniorPractice | /src/main/java/com/hust/edu/controller/IndexController.java | UTF-8 | 740 | 2.234375 | 2 | [] | no_license | package com.hust.edu.controller;
import com.hust.edu.entity.User;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;
import java.util.ArrayList;
@RestController
public class IndexController {
@RequestMapping("/index")
p... | true |
c80ca268bb176edca53144d80ef48232dd5f666f | Java | Kierian-50/BattleShip | /src/test/TestGame.java | UTF-8 | 5,332 | 3.203125 | 3 | [] | no_license | package test;
import battle.*;
import java.net.StandardSocketOptions;
import java.util.ArrayList;
/**
* This class test the class game.
*/
public class TestGame {
/**
* The entry point of the program.
* @param args The arguments.
*/
public static void main(String[] args){
... | true |
2169159156970461de239672b0e241bf38235919 | Java | AquillaSLeite/meeting-room-java | /src/main/java/com/meeting/room/api/meetingroomapi/exception/BusinessException.java | UTF-8 | 361 | 2.046875 | 2 | [] | no_license | package com.meeting.room.api.meetingroomapi.exception;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
@AllArgsConstructor
@NoArgsConstructor
@Getter
public class BusinessException extends RuntimeException {
private String field;
private String error;
private Integ... | true |
0ffd808cbbbdfc2822058aa8ab57dbad7cdef443 | Java | github4n/spider-55ht | /spider-55haitao-crawler/src/main/java/com/haitao55/spider/crawler/core/callable/custom/mankind/CrawlerUtils.java | UTF-8 | 8,397 | 2.3125 | 2 | [] | no_license | package com.haitao55.spider.crawler.core.callable.custom.mankind;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.collections.CollectionUtils;
import org.... | true |
f519fc0fa917d0532640f182731b9ef9e250f795 | Java | JimmyInHub/Jimmy-Repo | /logfun/src/main/java/com/jimmy/logfun/utils/ResultInfo.java | UTF-8 | 1,439 | 2.71875 | 3 | [] | no_license | package com.jimmy.logfun.utils;
/**
* @description: 请求返回结果信息
* @fileName: ResultInfo.java
* @date: 2018/7/27 15:34
* @author: Jimmy
* @version: v1.0
*/
public class ResultInfo {
private static final String SUCCESS = "200";
private static final String ERROR = "500"; // 异常时返回错误
private static fina... | true |
aa59ddca198f8460a56e2a51c55488edc347fc3a | Java | roymyboy/cs121 | /lab5/Mood.java | UTF-8 | 811 | 3.421875 | 3 | [] | no_license | public class Mood
{
enum mood { happy, bored, excited, snarky, zombie, grumpy, calm}
public static void main(String[] args) {
mood Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday;
Sunday = mood.happy;
Monday = mood.bored;
Tuesday = mood.excited;
Wednesday = mood.snarky;
Thursday = ... | true |
eeb8c3290295ff93cc9efa3b1a18c462bb63fc02 | Java | ppapzzhCSDN/day17 | /src/com/day8/test/Start.java | UTF-8 | 329 | 2.828125 | 3 | [] | no_license | package com.day8.test;
public class Start {
private Task task; //定义一个Start启动类,内部包含一个任务Task
public void Start(Task task){
this.task=task;
}
public void eat(){
System.out.println("今天又跑步吗??");
//执行task文件
task.task();
}
}
| true |
128c674ecd58e6ed2755e81218f8ead1d300dff5 | Java | tipplerow/jene | /src/test/java/jene/ensembl/EnsemblProteinDbTest.java | UTF-8 | 1,764 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive |
package jene.ensembl;
import jene.hugo.HugoSymbol;
import org.junit.*;
import static org.junit.Assert.*;
public class EnsemblProteinDbTest {
@Test public void testSample2() {
EnsemblProteinDb db = EnsemblProteinDb.load("data/test/ensembl_test2.fa");
HugoSymbol BRAF_Hugo = HugoSymbol.instance("B... | true |
b2af07383d27fdafc2140aa67d08cb96c62337b6 | Java | as425017946/UHF_AS | /app/src/main/java/com/speedata/uhf/adapter/MessagesAdapter.java | UTF-8 | 2,877 | 2.375 | 2 | [] | no_license | package com.speedata.uhf.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.jcodecraeer.xrecyclerview.XRecyclerView;
import com.speedata.uhf.R;
i... | true |
60af8370b791343df36d08fc246496f092579c5c | Java | chaosbastler/apps-android-commons | /commons/src/main/java/org/wikimedia/commons/MediaDataExtractor.java | UTF-8 | 11,884 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package org.wikimedia.commons;
import android.util.Log;
import org.mediawiki.api.ApiResult;
import org.mediawiki.api.MWApi;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;
import javax.xml.parsers.DocumentBuilder;
import j... | true |
7df035f524c6d4c2949ebba9406fb6ed9a824a10 | Java | VladislavKrets/TestVkApplication | /src/main/java/com/vkfriends/task/Controller.java | UTF-8 | 4,911 | 2.015625 | 2 | [] | no_license | package com.vkfriends.task;
import com.vk.api.sdk.client.TransportClient;
import com.vk.api.sdk.client.VkApiClient;
import com.vk.api.sdk.client.actors.UserActor;
import com.vk.api.sdk.exceptions.ApiException;
import com.vk.api.sdk.exceptions.ClientException;
import com.vk.api.sdk.httpclient.HttpTransportClient... | true |
3f056f7270f57932a9bc8bbd72cef011a9878e37 | Java | IOIIIO/DisneyPlusSource | /sources/com/google/android/gms/measurement/internal/C10079i5.java | UTF-8 | 1,124 | 1.65625 | 2 | [] | no_license | package com.google.android.gms.measurement.internal;
/* renamed from: com.google.android.gms.measurement.internal.i5 */
final class C10079i5 implements Runnable {
/* renamed from: U */
private final /* synthetic */ String f23544U;
/* renamed from: V */
private final /* synthetic */ String f23545V;
... | true |
b8c24484d35b8e10a21f191e4c50e52463c0bb11 | Java | weixiding/spring-security | /imooc-security-core/src/main/java/com/imooc/security/core/validate/code/ValidateCodeGenerator.java | UTF-8 | 646 | 1.890625 | 2 | [] | no_license | /**
* Copyright (C), 2015-2019, XXX有限公司
* FileName: ValidateCodeGenerator
* Author: Administrator
* Date: 2019/11/21 11:05
* Description:
* History:
* <author> <time> <version> <desc>
* 作者姓名 修改时间 版本号 描述
*/
package com.imooc.security.core.validat... | true |
e68e888a8c1de8e00fe73b9a9ae344c6eebc89c8 | Java | maitienlong/Lab3_Longmt | /app/src/main/java/com/example/lab3_longmt/MainActivity.java | UTF-8 | 1,556 | 1.976563 | 2 | [] | no_license | package com.example.lab3_longmt;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.RecyclerView;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;
import com.example.lab3_longmt.loade... | true |
7e9a892fe043f93085535b73d90780f74a7b6565 | Java | kakayuw/Java-Metod-Extractor | /src/main/java/fileUtil/FileIO.java | UTF-8 | 1,132 | 3.375 | 3 | [] | no_license | package fileUtil;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
public class FileIO {
/**
* Get filename list in one directory
* @param dirPath
* @return
*/
public static List<String> getFilenameList(String dirPath) {
// scan target directory and get file ... | true |
4990e143605e664c83c1181b88ea74837b4a5f50 | Java | 2393937618/springboot | /src/main/java/com/example/demo/dao/paperRepository.java | UTF-8 | 643 | 1.921875 | 2 | [] | no_license | package com.example.demo.dao;
import com.example.demo.entity.paper;
import com.example.demo.entity.result;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import java.util.List;
public interface paperRepository extends JpaRepository<paper,Integer> {... | true |
b966ee120785efe7473c5429f04af5140b0e9c2c | Java | arkiner/test | /src/postOffice/login/LoginController.java | UTF-8 | 1,188 | 2.296875 | 2 | [] | no_license | package postOffice.login;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframewo... | true |
9363448e80c1fb426f2d1d882251ccde807937a7 | Java | ozygod/leetcode-demo | /src/com/ozygod/elementary/string/Palindrome.java | UTF-8 | 1,452 | 3.859375 | 4 | [] | no_license | package com.ozygod.elementary.string;
import java.util.Locale;
/**
* 验证回文串
*
* 给定一个字符串,验证它是否是回文串,只考虑字母和数字字符,可以忽略字母的大小写。
*
* 说明:本题中,我们将空字符串定义为有效的回文串。
*
* 示例 1:
* 输入: "A man, a plan, a canal: Panama"
* 输出: true
*
* 示例 2:
* 输入: "race a car"
* 输出: false
*
* 作者:力扣 (LeetCode)
* 链接:https://leetcode-cn.com/le... | true |
fbb5b79c299f63034f10b014ca7e5d9b7de0122a | Java | jcerbito/BattleOfHogwarts | /gradle/core/src/com/jcerbito/battleofhogwarts/screens/ChooseCharacterDiff.java | UTF-8 | 6,942 | 2.09375 | 2 | [] | no_license | package com.jcerbito.battleofhogwarts.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.ba... | true |
cf480b213e9c175fa717d9468d9a36032495789e | Java | berty/ble-prototype-v2 | /app/src/main/java/com/example/ble/PeerDevice.java | UTF-8 | 12,551 | 1.867188 | 2 | [] | no_license | package com.example.ble;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothGatt;
import android.bluetooth.BluetoothGattCallback;
import android.bluetooth.BluetoothGattCharacteristic;
import android.bluetooth.BluetoothGattService;
import android.bluetooth.BluetoothProfile;
import android.conte... | true |
78d3a5ff00bff8683c626b87aa5ca73ac6c91fe6 | Java | matrixxun/FMTech | /GooglePlay6.0.5/app/src/main/java/com/google/android/finsky/download/inlineappinstaller/steps/InlineConsumptionAppInstallerReadyToReadStep.java | UTF-8 | 2,377 | 1.632813 | 2 | [
"Apache-2.0"
] | permissive | package com.google.android.finsky.download.inlineappinstaller.steps;
import android.content.res.Resources;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.google.android.finsky.analytics.Fi... | true |
98e8cf03d8c33bc58ef987ce950b7e4beb14292a | Java | BrianKGit/Java-WSU | /Rectangle.java | UTF-8 | 1,314 | 4.15625 | 4 | [] | no_license | /*
* Author: Brian Klein
* Date: 4-1-17
* Program: Rectangle.java
* Purpose: user-defined class to create a rectangle object
*/
import java.util.Scanner; //use a Scanner object to represent the keyboard
public class Rectangle
{
//data members - instance variables
private double length,... | true |
ebb04a886afaa732e9e2b20f2b9f97b95c22d026 | Java | idiraitsadoune/OntoEventB | /fr.cs.ontoeventb.pivotmodel.metamodel/src/pivotmodel/NamedUnit.java | UTF-8 | 1,220 | 2.171875 | 2 | [] | no_license | /**
*/
package pivotmodel;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Named Unit</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link pivotmodel.NamedUnit#getExponent <em>Exponent</em>}</li>
* </ul>
*
* @see pivo... | true |
7c0f06ea846aca167b01f22315a75c435cfb27a9 | Java | anand1996wani/CompetitiveCoding-Hard | /MergeSort.java | UTF-8 | 2,936 | 3.5625 | 4 | [] | no_license | /*
Given an array, find inversion count of array.
Inversion Count for an array indicates – how far (or close) the array is from being sorted.
If array is already sorted then inversion count is 0.
If array is sorted in reverse order that inversion count is the maximum.
Formally speaking, two elements a[i] and a[j] ... | true |
24e01c39ef53a72568e76ddb0f2730c0ecbed121 | Java | googleapis/google-cloud-java | /java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequestOrBuilder.java | UTF-8 | 5,686 | 1.84375 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | true |
a1d47a427cd0bbbda80caad7b89130eb1e2ecdc3 | Java | lovexiaodong/Data-Structure | /DataStructure/src/com/zyd/map/PrimDemo.java | GB18030 | 2,285 | 3 | 3 | [] | no_license | package com.zyd.map;
/**
* prim㷨ͼС
* @author
*
*/
public class PrimDemo {
private static int MAXVEX = 9;
public static void main(String[] args) {
int[][] src = {
{0, 10, 65535, 65535, 65535, 11, 65535, 65535, 65535},
{10, 0, 18, 65535, 65535, 65535, 16, 65535, 12},
{65535, 65535, 0, 22, 6... | true |
b2988da26dac15a09d8e497446ddea5054e781e8 | Java | Newegg/newegg-marketplace-sdk-java | /Seller/src/test/java/com/newegg/marketplace/sdk/seller/inner/SubcategoryCallerTest.java | UTF-8 | 17,698 | 1.765625 | 2 | [] | no_license | package com.newegg.marketplace.sdk.seller.inner;
import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.List;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import com.newegg.marketplace.sdk.common.APIConfig;
import com.newegg.m... | true |
4ced795a27a089849554597e3e27fd26bd57a61d | Java | yapengsong/business | /src-biz/eayun-virtualization/src/main/java/com/eayun/virtualization/ecmccontroller/EcmcCloudVolumeTypeController.java | UTF-8 | 4,894 | 1.875 | 2 | [] | no_license | package com.eayun.virtualization.ecmccontroller;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Cont... | true |
bc4a764808e2b681db361e2be044e6e9404e8d21 | Java | ticod/simplog | /src/main/java/com/ticodev/model/dto/BlogType.java | UTF-8 | 600 | 2.234375 | 2 | [
"MIT"
] | permissive | package com.ticodev.model.dto;
/*
블로그 분야 테이블
*/
public class BlogType {
private int btType;
private String btName;
@Override
public String toString() {
return "BlogType{" +
"btType=" + btType +
", btName=" + btName +
'}';
}
public int ... | true |
d8fe91bac22b1de8fda591cc03bddff1251ebac0 | Java | Maryville-SP2018-ISYS-320-1M/computation-with-functions-Salfurhud | /src/PayProgram.java | UTF-8 | 434 | 3.265625 | 3 | [] | no_license | /*
ISYS 320
Name(s):AlfurhudSolomon
Date: Apr1, 2018
*/
public class PayProgram {
public static void main(String[] args) {
double salary = computePay(4, 11);
System.out.println(salary);
}
public static double computePay( double salary, double numOfHours ) {
if(numOfHours > 8) {
retu... | true |
1b627ef077e48c7025c0405c445e1da88e56b612 | Java | MauricioPortilla/SistemaGimnasio | /SistemaGimnasio/src/sistemagimnasio/controlador/FXMLSistemaGimnasioController.java | UTF-8 | 3,465 | 2.65625 | 3 | [] | no_license | /**
* Sistema de Gimnasio
* Elaborado por (en orden alfabetico):
* Cruz Portilla Mauricio
* Gonzalez Hernandez Maria Saarayim
* Hernandez Molinos Maria Jose
*
* Mayo, 2019
*/
package sistemagimnasio.controlador;
import java.net.URL;
import java.util.ResourceBundle;
import java.io.IOException;
import java... | true |
5e386662a0c86595aff6d579d64e3f6097db8168 | Java | jesusPA/ProyectoJavaHC_GCraft | /ProyectoJava/src/java/Model/Candidate.java | UTF-8 | 8,243 | 2.578125 | 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 Model;
import Database.Database;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import j... | true |
e8c83d4852fe0f43ada874816e4d67678cdbadb5 | Java | prvsh03/springBoot-Project | /StudentTable/src/main/java/com/basic/StudentTable/StudentDetailsController.java | UTF-8 | 827 | 2.375 | 2 | [] | no_license | package com.basic.StudentTable;
import java.util.List;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
@RestController
publ... | true |
ba6ff04daf345e9830feaf3aa0f1095f3ac0b047 | Java | foryou2030/carbondata | /Molap/Molap-Spark-Interface/src/main/java/com/huawei/datasight/molap/query/MolapQueryPlan.java | UTF-8 | 9,867 | 1.960938 | 2 | [
"Apache-2.0"
] | 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 you under the Apache License, Version 2.0 (the
* "License")... | true |
8227b8520c27ca00ec434d96586409fdf6dfbce4 | Java | nekolr/saber | /src/main/java/com/nekolr/saber/entity/IdSeq.java | UTF-8 | 475 | 2.0625 | 2 | [] | no_license | package com.nekolr.saber.entity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import jakarta.persistence.*;
import java.io.Serializable;
@Getter
@Setter
@ToString
@Entity
@Table(name = "id_seq")
public class IdSeq implements Serializable {
@GeneratedValue(strategy = GenerationType.SEQUEN... | true |
8d1aaeb6ba63012db7a035e650baa896a8d9bb84 | Java | pinocchio123/pinocchio-security | /src/main/java/com/pinocchio/security/controller/SysLoginController.java | UTF-8 | 3,836 | 2.140625 | 2 | [] | no_license | /**
* Copyright 2018 人人开源 http://www.renren.io
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by appli... | true |
b39fdebc3a223eb1275eee1ea6b7aff25f16403f | Java | eduardo-bm10/Proyecto-1-Datos | /GameScreen/src/shooting/Colision.java | UTF-8 | 1,224 | 3.703125 | 4 | [] | no_license | package shooting;
import display.Display;
import javax.swing.*;
import java.awt.*;
/**
* Clase Colision provee los métodos que verifican el choque entre dos objetos en pantalla.
* Provee un método estático para que sea fácilmente accesible en cualquier otra clase.
*
* @author Alessandro Hidalgo, Javier Tenorio
*... | true |
01d99f7bbb7e4adb7ebfedfcb45e04b2f77884f0 | Java | jmtimko5/Voogasalad | /src/engine/Updateable.java | UTF-8 | 523 | 2.875 | 3 | [
"MIT"
] | permissive | package engine;
import util.TimeDuration;
/**
* This interface imposes the behavior of being updateable, specifically in a game loop with a
* defined frame time
*
* @author Joe Timko
* @author Dhrumil Patel
* @author David Maydew
* @author Ryan St.Pierre
* @author Jonathan Im
*
*/
public interface Updateab... | true |
80ed91bd738db8318818e174bd8d6f251a600416 | Java | KoisX/JavaExternalFinalProject | /src/main/java/com/javacourse/test/topic/Topic.java | UTF-8 | 1,276 | 2.75 | 3 | [] | no_license | package com.javacourse.test.topic;
import com.javacourse.shared.dataAccess.Entity;
import javax.validation.constraints.PositiveOrZero;
import javax.validation.constraints.Size;
import java.util.Objects;
/**
* A model class for topic database table
*/
public class Topic implements Entity {
@PositiveOrZero
priv... | true |
4742f006ed56c3ac4ad1cd720e59ff58d5e7953e | Java | koreach/Random_Things | /reddit_dailyprogrammer/Intermediate_295.java | UTF-8 | 151 | 1.742188 | 2 | [] | no_license | import java.lang.String;
public class Intermediate_295 {
public static void main(String [] arg) {
}
public int permutations(int n, ) {
}
}
| true |
acec07c293c7d9064adec3d0620e7f590ba51102 | Java | niwatly/SingleDateAndTimePicker | /singledateandtimepicker/src/main/java/com/github/florent37/singledateandtimepicker/widget/LinkableWheelPicker.java | UTF-8 | 226 | 1.890625 | 2 | [
"Apache-2.0"
] | permissive | package com.github.florent37.singledateandtimepicker.widget;
import android.support.annotation.Nullable;
public interface LinkableWheelPicker<T> {
@Nullable public T getGlobalValue();
public void setGlobalValue(T value);
} | true |
40d07d8144b3c192e80ac6a7cc29a11239de440a | Java | code10ftn/building-management | /src/main/java/com/code10/kts/model/dto/SurveyCreateDto.java | UTF-8 | 1,998 | 2.75 | 3 | [
"MIT"
] | permissive | package com.code10.kts.model.dto;
import com.code10.kts.model.domain.Building;
import com.code10.kts.model.domain.Survey;
import org.hibernate.validator.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.stream.... | true |
036c6f82eabe0ba77ede491cf0fca2a66c2ffd55 | Java | hundoy/ursoavg | /core/src/com/urso/avg/graphics/TxtLayer.java | UTF-8 | 3,609 | 2.34375 | 2 | [] | no_license | package com.urso.avg.graphics;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.utils.Align;
import com.urso.avg.UrsoAvgGame;
/**
* Created by hundoy on 2016/7/18.
*/
public class TxtLayer extends PicLayer {
public final static ... | true |
35a946fc6da22a4c0bb67e48791130983976f78e | Java | Bot-Benedict/CZ2002-OODP | /SS4-grp4/src/moblima/view/BaseMenu.java | UTF-8 | 956 | 2.9375 | 3 | [] | no_license | package moblima.view;
import moblima.controller.*;
/**
* Represents the home page.
*/
public class BaseMenu extends View {
/**
* Instantiates a new Base menu.
*
* @param userType the user type
* @param nextView the next view
*/
public BaseMenu(int userType, View nextView) {
super("baseMenu", userType,... | true |
7e025c677edc2c2f325c07d852fe43bf920cf5a6 | Java | Ana-Vi/Homework | /Computador/Computador.java | UTF-8 | 1,564 | 3.078125 | 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 pkg202001;
/**
*
* @author avbvi
*/
public class Computador {
String nomeComputador;
String processador;
String... | true |
ca8927929ae6238db2651c43397d59bdcf95959a | Java | SocialHui/Java17 | /回文串/Solution.java | UTF-8 | 726 | 3.484375 | 3 | [] | no_license | public class Solution {
public boolean isPalindrome(String s) {
String str = s.toLowerCase();
int left = 0;
int right = s.length()-1;
while (left < right) {
char ch1 = str.charAt(left);
char ch2 = str.charAt(right);
if (Character.isLetterOrDigit(c... | true |
91f8aec27694c4f12491ef2c3fd9016731915834 | Java | apache/cassandra | /src/java/org/apache/cassandra/hints/package-info.java | UTF-8 | 2,294 | 1.9375 | 2 | [
"Apache-2.0",
"MIT",
"CC0-1.0",
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] | 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 you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
3cceab6857b7822811e5216099af3d7a468b8f0a | Java | cash2one/fmps | /trunk/fmps-web/src/main/java/cn/com/fubon/fo/repairplatform/entity/response/GiftSetInstructionsResponse.java | UTF-8 | 337 | 1.703125 | 2 | [] | no_license | package cn.com.fubon.fo.repairplatform.entity.response;
import cn.com.fubon.fo.repairplatform.entity.BaseResult;
public class GiftSetInstructionsResponse extends BaseResult {
private String content;
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = cont... | true |
c50cf6d312855c1254e5636f84b973f3a681da4f | Java | rjit987/lambdatest_amazon | /src/main/java/pages/SearchResultPage.java | UTF-8 | 2,438 | 2.5 | 2 | [] | no_license | package pages;
import java.io.IOException;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.open... | true |
c95877b0b5ecd8c4a977c0f04ff1839805b826bf | Java | puklu/UniformSeleniumProject | /Selenium-Automation-Elearning-Framework-TestNG/tests/com/training/sanity/tests/UFM_006_ChangePwd.java | UTF-8 | 2,122 | 2.390625 | 2 | [] | no_license | package com.training.sanity.tests;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;
import org.openqa.selenium.WebDriver;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass;
import org.testng.a... | true |
ce570b325652d604678d00bc687366150c2dc148 | Java | BaibaKondratjeva/demoOnlineStore | /src/main/java/com/example/demo/onlineshop/orders/OrdersProductsTable.java | UTF-8 | 1,164 | 2.34375 | 2 | [] | no_license | package com.example.demo.onlineshop.orders;
import java.math.BigDecimal;
import java.time.LocalDateTime;
public class OrdersProductsTable {
private long id;
private String imageUri;
private String name;
private Integer quantity;
private BigDecimal price;
private Integer totalSum;
public ... | true |
61189e7b424cef828a0e472753da28466f9555f1 | Java | easonlong/Kepler-All | /src/main/java/com/kepler/queue/QueueRunnable.java | UTF-8 | 117 | 1.78125 | 2 | [] | no_license | package com.kepler.queue;
/**
* @author KimShen
*
*/
public interface QueueRunnable {
public void running();
}
| true |
ac736f10e5e7a317a5a71d521b49f78aced1d0d5 | Java | LearnLib/learnlib | /algorithms/active/discrimination-tree/src/test/java/de/learnlib/algorithms/discriminationtree/DTLearnerDFAIT.java | UTF-8 | 2,225 | 1.976563 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | /* Copyright (C) 2013-2023 TU Dortmund
* This file is part of LearnLib, http://www.learnlib.de/.
*
* 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/... | true |
34e1a5af811c947fc6d4c0e0d4d52703f37fda9a | Java | wenhao543/sell | /src/test/java/com/wenhao/SBRedisTest.java | UTF-8 | 1,048 | 1.835938 | 2 | [] | no_license | package com.wenhao;
import java.math.BigDecimal;
import java.util.Date;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.... | true |
3e72527480eaf5f626bf7d6b55db6269aa8cef7a | Java | ravinduu/Service-Throttle-Web | /Service-Throttle-Backend/service-throttle-backend/src/main/java/com/servicethrottle/servicethrottlebackend/controllers/UserController.java | UTF-8 | 4,861 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package com.servicethrottle.servicethrottlebackend.controllers;
import com.servicethrottle.servicethrottlebackend.models.Customer;
import com.servicethrottle.servicethrottlebackend.models.MobileMechanic;
import com.servicethrottle.servicethrottlebackend.models.Supervisor;
import com.servicethrottle.servicethrottleback... | true |
549ab7b61f3cef1c4a233e841b28a77fc972e22d | Java | raeffu/prog2-i18n | /src/internationalizedFrameAppl/Person.java | UTF-8 | 1,265 | 3.046875 | 3 | [
"MIT"
] | permissive | package internationalizedFrameAppl;
@SuppressWarnings("rawtypes")
public final class Person implements Comparable{
private String firstName, lastName, city, country;
public Person(String firstName, String lastName, String city, String country) {
super();
this.firstName = firstName;
this.lastName = lastName;... | true |
64eb1be4c505b441dba7a525eed45ac7790eaa34 | Java | halarotu/WorkingHours | /src/main/java/ha/controller/EmployeeController.java | UTF-8 | 1,589 | 2.296875 | 2 | [] | no_license | package ha.controller;
import ha.domain.Employee;
import ha.repository.EmployeeRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
... | true |
5415a9bc1a1eef8e8f77d7d417d0e14e8ca750cf | Java | P79N6A/icse_20_user_study | /methods/Method_2047.java | UTF-8 | 939 | 2.40625 | 2 | [] | no_license | /**
* Utility method which adds optional configuration to ImageRequest
* @param imageRequestBuilder The Builder for ImageRequest
* @param config The Config
*/
public static void addOptionalFeatures(ImageRequestBuilder imageRequestBuilder,Config config){
if (config.usePostprocessor) {
final Postp... | true |
2eec4a9921a70d31b952ca1659ab76079eadd3fe | Java | liuyun073/wzd | /src/main/java/com/liuyun/site/service/impl/UserLogServiceImpl.java | UTF-8 | 1,486 | 2.0625 | 2 | [] | no_license | package com.liuyun.site.service.impl;
import com.liuyun.site.dao.UserLogDao;
import com.liuyun.site.domain.UserLog;
import com.liuyun.site.model.PageDataList;
import com.liuyun.site.model.SearchParam;
import com.liuyun.site.service.UserLogService;
import com.liuyun.site.tool.Page;
import java.util.List;
public class ... | true |
7fe52b236f7f3f75642dba28dee7748731e7c1f0 | Java | 452693688/NetWork | /app/src/main/java/com/network/common/net/source/SourceTask.java | UTF-8 | 4,756 | 2.21875 | 2 | [] | no_license | package com.network.common.net.source;
import android.text.TextUtils;
import com.network.common.net.connect.URLConnectionBase;
import com.ui.utiles.other.DLog;
import com.ui.utiles.other.JSONUtile;
import org.apache.http.util.ByteArrayBuffer;
import java.io.DataOutputStream;
import java.io.IOException;
import java.... | true |
fdf480f81e33550b283a6dff36e9f460d6f5440d | Java | Karavanych/GrainKingdom | /src/draziw/karavan/grainkingdom/baseclass/Corn.java | WINDOWS-1251 | 3,918 | 2.234375 | 2 | [] | no_license | package draziw.karavan.grainkingdom.baseclass;
import android.app.Activity;
import android.text.style.ForegroundColorSpan;
import draziw.karavan.grainkingdom.GameState;
import draziw.karavan.grainkingdom.R;
import draziw.karavan.grainkingdom.supportclass.mySpannableString;
public class Corn {
/* --
... | true |
77f4585e093c761888cf490d8e5bd86935b4e044 | Java | cmokbel/temporary | /GWTOpenLayers/gwtopenlayers-gwt-openlayers-1d8f2a30c137/gwt-openlayers-client/src/main/java/org/gwtopenmaps/openlayers/client/control/NavigationHistoryImpl.java | UTF-8 | 1,411 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | package org.gwtopenmaps.openlayers.client.control;
import org.gwtopenmaps.openlayers.client.util.JSObject;
/**
*
* @author giuseppe
*
*/
public class NavigationHistoryImpl
{
public static native JSObject create() /*-{
return new $wnd.OpenLayers.Control.NavigationHistory();
}-*/;
public stat... | true |
2c30987329a66d90fd1064f822fe6767780a355d | Java | hemoura12/youblog | /youblog/src/main/java/org/kh/youblog/comment/model/vo/Comment.java | UTF-8 | 1,697 | 2.1875 | 2 | [] | no_license | package org.kh.youblog.comment.model.vo;
public class Comment implements java.io.Serializable {
private final static long serialVersionUID = 12L;
private String cmtno;
private String blogno;
private String memberid;
private String cmtparentno;
private String cmtcontents;
private String state;
public Comment(... | true |
fe93b124e21d53e53d518ff5ef1632cc3a6c1876 | Java | dangfugui/note | /note-other/src/main/java/dang/jdk/thread/MaxThroead.java | UTF-8 | 1,867 | 3.3125 | 3 | [] | no_license | package dang.jdk.thread;
import java.util.Random;
/**
* Created by dangqihe on 2017/2/18.
*/
public class MaxThroead {
public long count = 0;
public Boolean alive = true;
public static void main(String[] args) throws InterruptedException {
MaxThroead maxThroead = new MaxThroead();
int t... | true |
382a0b82e7556766d1831ef5baed7f20d754e30f | Java | thirosan/walmartTest_project | /tests/src/test/java/tests/walmart/step/IntegrationStep2.java | UTF-8 | 702 | 2.21875 | 2 | [] | no_license | package tests.walmart.step;
import cucumber.api.java.pt.Então;
import cucumber.api.java.pt.Quando;
import tests.walmart.page.CartPage;
import tests.walmart.page.LoginPage;
import static org.junit.Assert.assertTrue;
public class IntegrationStep2 {
private CartPage cartPage = new CartPage();
private LoginPage login... | true |
77c847d277c221de0149b32a826bc69500357700 | Java | TarunRahuja/Java-Programs | /practice/SplitArray.java | UTF-8 | 746 | 3.3125 | 3 | [] | no_license | package practice;
import java.util.*;
public class SplitArray {
static int count;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int []arr = new int[n];
for(int i = 0; i<n; i++)
{
arr[i] = sc.nextInt();
}
split(arr,0, "", "",0, 0);
System.out.pr... | true |
5b2097856d766c071756b423ca6bf2a133f5ffab | Java | ymsyms/InventorySystem | /InventorySystem-Team5/src/main/java/sg/edu/iss/inventory/service/TransactionHistoryServiceImpl.java | UTF-8 | 682 | 2.21875 | 2 | [] | no_license | package sg.edu.iss.inventory.service;
import java.util.*;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import sg.edu.iss.inventory.model.TransactionDetail;
import sg.edu.iss.inventory.repository.TransactionDetailRepos... | true |
9f7a3e832a7d80598766640304798bcd1f23731b | Java | dsachdeva1/testAssignment | /app/src/main/java/com/example/deepak/uberassignment/viewmodel/GetImageViewModel.java | UTF-8 | 856 | 2.171875 | 2 | [] | no_license | package com.example.deepak.uberassignment.viewmodel;
import android.arch.lifecycle.MutableLiveData;
import android.arch.lifecycle.ViewModel;
import com.example.deepak.uberassignment.model.ImageItem;
import com.example.deepak.uberassignment.repository.ImageRepository;
import java.util.List;
public class GetImageView... | true |
47204e4386a2fa7eb84e2bc82eeacbc9b79a7816 | Java | armaandev/sheconomyapp | /app/src/main/java/com/sheconomy/sheeconomy/Network/services/AddToCartApiInterface.java | UTF-8 | 549 | 2.046875 | 2 | [] | no_license | package com.sheconomy.sheeconomy.Network.services;
import com.sheconomy.sheeconomy.Network.response.AddToCartResponse;
import com.google.gson.JsonObject;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Header;
import retrofit2.http.Headers;
import retrofit2.http.POST;
public inter... | true |
68cd820bb660af2db1fd60efa7b5461ff14851c6 | Java | Xiezimiao/designer | /src/cn/edu/zjut/action/DesignerAction.java | UTF-8 | 1,672 | 2.4375 | 2 | [] | no_license | package cn.edu.zjut.action;
import java.io.File;
import com.opensymphony.xwork2.ActionSupport;
import cn.edu.zjut.po.Designer;
import cn.edu.zjut.po.Example;
import cn.edu.zjut.service.DesignerService;
import cn.edu.zjut.service.ExampleService;
public class DesignerAction extends ActionSupport {
private Example exam... | true |
7b009cbc8fc08b71fd66c6e75790ac2dca2be6ae | Java | gonzalouli/dss2020-2021-GonJeDav | /Core/src/main/java/com/jedago/practica_dss/persistance/OrdersRepositoryOnMemory.java | UTF-8 | 1,336 | 2.796875 | 3 | [
"MIT"
] | permissive | package com.jedago.practica_dss.persistance;
import java.util.Iterator;
import java.util.List;
import java.util.Optional;
import com.jedago.practica_dss.core.Order;
public class OrdersRepositoryOnMemory implements OrdersRepository {
List<Order> orders;
@Override
public List<Order> findAll() throws Exception {
... | true |
6687213e897213ab3aea6b4b5f98691bd3614b77 | Java | sangjiexun/20191031test | /chintai-migration-cms/src/net/chintai/backend/sysadmin/shop_bukken/service/bean/ShopListingDeleteConfirmInServiceBean.java | UTF-8 | 2,018 | 2.21875 | 2 | [] | no_license | package net.chintai.backend.sysadmin.shop_bukken.service.bean;
/**
* 店舗リスティング設定削除確認
*
* @author
* @version $Revision: $ Copyright: (C) CHINTAI Corporation All Right Reserved.
*/
public class ShopListingDeleteConfirmInServiceBean {
/** 店舗コード */
private String shopCd;
/** 契約コード */
private String k... | true |
12e2880ef5218ab03fd3245e3bc04e797a41f840 | Java | zoozooll/MyExercise | /meep/MeepLib/src/com/oregonscientific/meep/message/common/MsmReportAppVersion.java | UTF-8 | 1,117 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package com.oregonscientific.meep.message.common;
public class MsmReportAppVersion extends MeepServerMessage {
private String appName = null;
private int versionCode = 0;
private String versionName = null;
private long firstInstallTime = 0;
private long lastUpdateTime = 0;
public MsmReportAppVersion(String proc... | true |
00c535ef445e52328b9786c029bebaf8c5e14feb | Java | jakesig/dsa2019-2020 | /Circular Queue/CircularQueue.java | UTF-8 | 1,423 | 3.484375 | 3 | [] | no_license | import java.util.ArrayList;
public class CircularQueue {
public Node thisNode;
private Node lastNode;
private int size;
public CircularQueue(int size) {
thisNode = new Node(1);
Node current = thisNode;
for (int i = 1; i < size; i++) {
current.next = new Node(i+1);
... | true |
70f77bfc1ab121fe8477e9ff8a2d25a1d32e9842 | Java | da-ferreira/poo-java | /POO-CC3A/test/aula_15_interface/BankTestFile.java | UTF-8 | 2,506 | 2.921875 | 3 | [
"MIT"
] | permissive |
package aula_15_interface;
import org.junit.Test;
import static org.junit.Assert.*;
import Aula_15_Interface.Bank;
import Aula_15_Interface.SavingsAccount;
/**
* @author daferreira
*/
public class BankTestFile {
@Test
public void testeConstrutor() {
Bank banco = new Bank("entrada4... | true |
9a5adf202ce170ba4706c9e840148ad7dc299a45 | Java | InhoAndrewJung/SpringLevel1 | /spring07_aop/src/api1/MessageAdvice.java | UHC | 1,027 | 3.453125 | 3 | [] | no_license | package api1;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
/*
* Cross Cutting Concern ִ ̽ Ŭ
* ::
* TARGET CLASS Ͻ ȣǸ
* ̰ ͼ MessageAdvice ̺Ʈ ؼ
* invoke() ȣ
* ᱹ Ͻ DZ invoke() ȴ.
*/
public class MessageAdvice implements MethodInterceptor{
public Object... | true |
b11873cf56e0fa7eab8aafcbdab084edc3b9d765 | Java | TWSSYesterday/WoodMachine | /src/de/chillupx/commands/Command_WoodMachine.java | UTF-8 | 2,220 | 2.84375 | 3 | [] | no_license | package de.chillupx.commands;
import java.util.List;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.entity.Player;
import de.chillupx.WoodMachine;
imp... | true |
887da190f2d6ef6a14fb33a84935a3d3a2ee6d1e | Java | pooi/HappyCake | /app/src/main/java/tk/twpooi/happycake/BaseActivity.java | UTF-8 | 902 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | package tk.twpooi.happycake;
import android.content.Context;
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;
import com.tsengvn.typekit.Typekit;
import com.tsengvn.typekit.TypekitContextWrapper;
/**... | true |