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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b707d4b4fb300915bd19aa2bd321a7d86071640e | Java | STAMP-project/dspot-experiments | /benchmark/test/alluxio/server/ft/journal/JournalReplayIntegrationTest.java | UTF-8 | 2,219 | 1.851563 | 2 | [] | no_license | /**
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR COND... | true |
892f4cb56a1f9a5b3313816cd1fbee121119ff3e | Java | lucky-xin/Mybatis | /src/main/java/com/mybatis/mapper/UserMapper.java | UTF-8 | 786 | 2.015625 | 2 | [] | no_license | package com.mybatis.mapper;
import java.util.HashMap;
import java.util.List;
import com.ssm.po.Items;
import com.ssm.po.User;
import com.ssm.po.UserCustom;
import com.ssm.po.UserQueryVo;
public interface UserMapper {
// 用户综合查询
List<UserCustom> findUserList(UserQueryVo queryVo) throws Exception;
// 用户综合查询总数
i... | true |
dbaaa72dbb570e2711be0ec40a251db202d38c99 | Java | greenn-lab/egovframe-msa-edu | /backend/board-service/src/main/java/org/egovframe/cloud/boardservice/api/posts/PostsApiController.java | UTF-8 | 9,437 | 2.125 | 2 | [] | no_license | package org.egovframe.cloud.boardservice.api.posts;
import lombok.RequiredArgsConstructor;
import org.egovframe.cloud.boardservice.api.board.dto.BoardResponseDto;
import org.egovframe.cloud.boardservice.api.posts.dto.*;
import org.egovframe.cloud.boardservice.service.posts.PostsService;
import org.egovframe.cloud.comm... | true |
8d26ea119b8f24fc8031426f07d2ab5e648e01dd | Java | tdc197/study-android-project | /18+19/FragmentHidingAndReplace/app/src/main/java/com/example/x/fragmenthidingandreplace/ui/activity/MainActivity.java | UTF-8 | 2,547 | 2.5 | 2 | [] | no_license | package com.example.x.fragmenthidingandreplace.ui.activity;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import com.example.x.fragmenthidingandreplace.R;
import com.example.x.fragmenthidingandreplace.ui.fragment... | true |
87947ac22ace2b085b8c76c676b5690f750d7baa | Java | motivatedLeroy/ReasonerTest | /src/main/java/EvaluationClasses/WeatherData/Rain.java | UTF-8 | 160 | 2.015625 | 2 | [] | no_license | package EvaluationClasses.WeatherData;
import com.fasterxml.jackson.annotation.JsonAlias;
public class Rain {
@JsonAlias("3h")
public double rain;
}
| true |
14b79dfe4e09e2f1468f9f6c3dc757348762df71 | Java | XiangQianTom/MyNews | /app/src/main/java/com/si/mynews/presenter/contract/LikeContract.java | UTF-8 | 488 | 1.882813 | 2 | [] | no_license | package com.si.mynews.presenter.contract;
import com.si.mynews.base.BasePresenter;
import com.si.mynews.model.bean.RealmLikeBean;
import java.util.List;
public interface LikeContract {
interface View extends BaseView {
void showContent(List<RealmLikeBean> mList);
}
interface Presenter extends ... | true |
309f9bc51bc0b2e149632574fe5fe4d86fc03eb2 | Java | dat0106/datkts0106 | /reference no run/smart connect/src/com/sonyericsson/extras/liveware/actions/ActionResultService.java | UTF-8 | 4,950 | 1.796875 | 2 | [] | no_license | package com.sonyericsson.extras.liveware.actions;
import android.app.IntentService;
import android.content.ComponentName;
import android.content.Intent;
import android.text.TextUtils;
import com.sonyericsson.extras.liveware.asf.ExperienceService;
import com.sonyericsson.extras.liveware.experience.Action;
impor... | true |
bd02b1ff9585231ffd8cde1ba4a6161868a7d22e | Java | kmtong/query-scheduler | /app/forms/DBDriver.java | UTF-8 | 223 | 1.945313 | 2 | [] | no_license | package forms;
import java.io.File;
import play.data.validation.Constraints.Required;
public class DBDriver {
@Required
public String name;
@Required
public String driverClass;
public File jarFile;
}
| true |
cb793acd61a4fe2385ed5d2eb4d38b832686f53e | Java | danivijay/JavaFX_StylePacks | /Material/demo/src/main/java/demos/gui/uicomponents/IconsController.java | UTF-8 | 2,718 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package demos.gui.uicomponents;
import com.jfoenix.controls.JFXBadge;
import com.jfoenix.controls.JFXHamburger;
import com.jfoenix.controls.JFXSnackbar;
import com.jfoenix.controls.JFXSnackbar.SnackbarEvent;
import io.datafx.controller.ViewController;
import javafx.animation.Transition;
import javafx.fxml.FXML;
import... | true |
18c530c673be5cc481996f3b8a32709681473ddd | Java | gomblohcommunity/RetrofitRx | /app/src/main/java/id/web/dstwn/retrofitrx/data/RestClient.java | UTF-8 | 573 | 2.1875 | 2 | [] | no_license | package id.web.dstwn.retrofitrx.data;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
import retrofit2.converter.gson.GsonConverterFactory;
public class RestClient {
public static Retrofit getClient(){
return new Retrofit.Builder().baseUrl("https://api.myjson.com/bin... | true |
bbe0009d955f50335af3bcad1b4dc3be5210e03c | Java | pengjugame/xiaobao | /src/com/hqgj/xb/service/SystemLogService.java | UTF-8 | 812 | 2 | 2 | [] | no_license | package com.hqgj.xb.service;
import java.util.Date;
import java.util.List;
import com.hqgj.xb.bean.SystemLog;
import com.hqgj.xb.bean.easyui.Grid;
import com.hqgj.xb.bean.easyui.Parameter;
/**
* @author 崔兴伟
* @datetime 2015年8月4日 下午3:13:46
*/
public interface SystemLogService {
/**
* 写日志
*
* @author 崔兴伟
... | true |
1bab31c54d366ff87667e1cc4d3d4b1c1561972b | Java | ldp971018/springboot-elasticsearch | /src/main/java/com/ldp/elasticsearch/Springboot12ElasticsearchApplication.java | UTF-8 | 660 | 1.804688 | 2 | [] | no_license | package com.ldp.elasticsearch;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* 有两种技术支持
* springboot默认使用springdata elasticSearch模块进行操作
* 还有一种就是jest(默认不生效)
* <dependency>
* <groupId>io.searchbox</groupId>
* <artifactId>jest</art... | true |
6ce7cbc00c2e08ad0ee80f38d3ce22d95659fc35 | Java | jakartaredhat/cdi-tck | /web/src/main/java/org/jboss/cdi/tck/tests/deployment/packaging/ear/modules/ContainerEventsObserver.java | UTF-8 | 4,730 | 1.664063 | 2 | [
"Apache-2.0"
] | permissive | /*
* JBoss, Home of Professional Open Source
* Copyright 2012, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... | true |
0bcfa99661970380b12bf382de25764f32b1d159 | Java | emmisofia/mooc | /osa02-Osa02_29.FibonaccinLukujono/src/FibonaccinLukujono.java | UTF-8 | 653 | 2.640625 | 3 | [] | no_license |
import java.util.ArrayList;
import java.util.Scanner;
public class FibonaccinLukujono {
public static void main(String[] args) {
Scanner lukija = new Scanner(System.in);
ArrayList<Integer> lista = new ArrayList<>();
lista.add(0);
lista.add(1);
// Toteuta tänne oh... | true |
ed1b10a6ee70cc19a3768ada66ae1c71152d585c | Java | Miradel/jd-spring | /Spring-06-JavaCode-Configuration/src/main/java/configs/AppConfig.java | UTF-8 | 1,161 | 2.359375 | 2 | [] | no_license | package configs;
import interfaces.ExtraSesstions;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stere... | true |
ab402ae86e8add29a3a2d7ef1783c9a00b9b47d9 | Java | zhengweichao/NongCun | /app/src/main/java/com/bishe/nongcun/fragment/Fragment3_buy.java | UTF-8 | 5,888 | 1.992188 | 2 | [] | no_license | package com.bishe.nongcun.fragment;
import android.content.Intent;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget.TextView;... | true |
7762f8635af3d22db327041ec2738cacb1d863ce | Java | abscasey/metaq | /metaq-server/src/main/java/com/taobao/metamorphosis/timetunnel/TimetunnelBroker.java | GB18030 | 4,863 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package com.taobao.metamorphosis.timetunnel;
import java.util.Iterator;
import java.util.Properties;
import org.apache.commons.lang.StringUtils;
import com.taobao.metamorphosis.AbstractBrokerPlugin;
import com.taobao.metamorphosis.network.PutCommand;
import com.taobao.metamorphosis.server.CommandProcessor;
... | true |
866c928f05885fe9ab03b07f9537160f6f4e6591 | Java | D0048/Minecraft-ML | /src/main/java/io/github/d0048/databackend/MLDataCore.java | UTF-8 | 1,470 | 2.453125 | 2 | [
"MIT"
] | permissive | package io.github.d0048.databackend;
import net.minecraft.command.CommandException;
import net.minecraft.command.ICommandSender;
import net.minecraft.server.MinecraftServer;
import java.util.List;
public abstract class MLDataCore {
public enum BackEndType {
TF, MCML
}
;
BackEndType backend;... | true |
14b1b011ec3fef8704beae98e59cd7d0b282f3da | Java | csoda/MoreInventoryMod | /src/main/java/moreinventory/plugin/appeng/AppEngPlugin.java | UTF-8 | 478 | 1.734375 | 2 | [] | no_license | package moreinventory.plugin.appeng;
import appeng.api.AEApi;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Optional.Method;
public class AppEngPlugin
{
public static final String MODID = "appliedenergistics2";
public static boolean enabled()
{
return Loader.isModLoaded(MODID);
}
@Method(modi... | true |
a6f565c6754e6a897e3d91bd1a35d3cfedcd5c34 | Java | liujunhao225/photograp | /src/main/java/com/action/PictureListServlet.java | UTF-8 | 1,694 | 2 | 2 | [] | no_license | package com.action;
import java.io.IOException;
import java.util.List;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import com.photo.grap.photograp.util.MysqlConnector;
import net.min... | true |
d4ffbf1fae06034cddce1bdc077e7bf6ffaa2c6c | Java | hsiao78611/JavaWebBrowser | /src/HistoryXML.java | UTF-8 | 5,099 | 2.609375 | 3 | [] | no_license |
import java.io.*;
import javax.xml.parsers.*;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import org.w3c.dom.*;
import java.util.Vector;
public class HistoryXML {
Vector<HistoryBean>... | true |
759f5a3c25ceaad05fa02a8a714f1c4b67cdca61 | Java | inevitably2484848/MRI | /CardioMRI/src/edu/auburn/cardiomri/gui/views/ModeView.java | UTF-8 | 1,785 | 3.25 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | package edu.auburn.cardiomri.gui.views;
import java.awt.Color;
import javax.swing.JLabel;
import javax.swing.JPanel;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
/** This class creates the JLabel indicating which mode the user is in.
* This JLabel is added to the RightPa... | true |
25f7a9d3e2ca71ad308b46ecd4ce22abb9009bfc | Java | vburca/CPSC-215 | /Project 1/Proj 1 CPSC215/CheckBrackets.java | UTF-8 | 4,078 | 3.25 | 3 | [] | no_license | /**
* @author Vlad Burca, Pauline Lake
* @version 03-16-2011
*/
/**
* This program reads a text file specified in a command-line argument
* into a string named inString. It also has a code segment to echo
* print inString. To execute, assuming an input file is named filename
* and exists in the same direct... | true |
b366e549d0ca9e6552e13b20c81c1cf84a3514ef | Java | CQHui/sourcedemo | /src/main/java/com/qihui/sourcedemo/mybatis/util/SQLUtils.java | UTF-8 | 1,599 | 2.6875 | 3 | [] | no_license | package com.qihui.sourcedemo.mybatis.util;
import java.util.ArrayList;
import java.util.List;
/**
* @author chenqihui
* @date 2019/4/22
*/
public class SQLUtils {
public static String[] sqlInsertParameter(String sql) {
int startIndex = sql.indexOf("values");
int endIndex = sql.length();
... | true |
3a40effef119d83c80c764f7a275b4501f16a9ef | Java | virtbad/SerintClient | /src/main/java/ch/virtbad/serint/client/networking/packets/JoinPacket.java | UTF-8 | 548 | 2.765625 | 3 | [
"MIT"
] | permissive | package ch.virtbad.serint.client.networking.packets;
import ch.virt.pseudopackets.packets.Packet;
import lombok.Getter;
/**
* Sent when a client tries to join the game
* @author Virt
*/
public class JoinPacket extends Packet {
@Getter
private String name;
@Getter
private int color;
/**
*... | true |
d60886abe0b746bbd45d7f6cfe80bf0180277aad | Java | JFXtras/jfxtras-styles | /jmetro-samples/src/main/java/jfxtras/styles/samples/jmetro/TextFieldAndPasswordFieldShrinkGlitch.java | UTF-8 | 1,059 | 2.6875 | 3 | [
"BSD-3-Clause"
] | permissive | package jfxtras.styles.samples.jmetro;
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.PasswordField;
import javafx.scene.control.TextField;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
impor... | true |
7cc4cee3c2dfcb30efc223e6c3c1e6174ae9d3d2 | Java | martingraham/JSwingPlus | /src/example/multiview/renderers/node/KeyedDataGraphCellRenderer.java | UTF-8 | 2,469 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package example.multiview.renderers.node;
import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.font.FontRenderContext;
import model.graph.EdgeSetValueMaker;
import example.graph.renderers.node.NodeRadiusValueCellRenderer;
import example.multiview.Key... | true |
aa29cbd665ca48886ea46f6df93e6c9866e60f42 | Java | TheCorp/mob | /src/main/java/com/mob/model/profile/PayScale.java | UTF-8 | 88 | 1.65625 | 2 | [] | no_license | package com.mob.model.profile;
public enum PayScale {
HOURLY,MONTHLY,YEARLY;
}
| true |
15217f259ba3367c34e11e3d46e30e08a339f9f6 | Java | Sadidadri/RelacionEjerciciosEntornoGraficoJava | /src/conAsistente/Ejercicio03.java | UTF-8 | 4,053 | 3.328125 | 3 | [] | no_license | package conAsistente;
/**
* 3. Pide un DNI y comprueba que es correcto, ser� correcto si tiene 9 caracteres y la letra es correcta.
*
* @author Adrian Moya
*/
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import java.awt.Font;
impor... | true |
f39ee2121cf637022b90266a4d267e4cd55f45f4 | Java | haohao360/video_cloud | /nmp-center/src/main/java/com/hdvon/nmp/mapper/AlarmServerMapper.java | UTF-8 | 530 | 1.703125 | 2 | [] | no_license | package com.hdvon.nmp.mapper;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
import java.util.Map;
import com.hdvon.nmp.entity.AlarmServer;
import com.hdvon.nmp.mybatisExt.MySqlMapper;
import com.hdvon.nmp.vo.AlarmServerVo;
public interface AlarmServerMapper extends Mapper<AlarmServer> , MySqlMapper... | true |
e43764bba5eed75e3c82367cad40fa633dade86b | Java | veeraBhavani/sampath-class-code | /MarchBatch/src/com/whiteboxqa/oop4/AbstractionExample.java | UTF-8 | 325 | 2.734375 | 3 | [] | no_license | package com.whiteboxqa.oop4;
public class AbstractionExample {
public static void main(String[] args) {
Vehicle v1 = new Car();
v1.odoMeterReading = 100000;
v1.mpg = 21;
System.out.println(v1.getGallonsConsumed());
v1.park();
Flyer f = new Aeroplane();
f.fly();
}
... | true |
2e9c03f9a4c681fbdebbf1ae3016b528481aca7a | Java | batfish/batfish | /projects/minesweeper/src/main/java/org/batfish/minesweeper/OspfType.java | UTF-8 | 731 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | package org.batfish.minesweeper;
import com.google.common.collect.ImmutableList;
import java.util.List;
import org.batfish.common.BatfishException;
/**
* The OSPF type of a message. This is either intra area (O), inter area (OIA), external type 1
* (E1), or external type 2 (E2)
*
* @author Ryan Beckett
*/
public... | true |
c0eb59d4eea3e10b77a0a714d388df52388480d3 | Java | shuile/ReadingList | /DesignPatterns/HeadFirstDesignPatterns/src/com/shui/headfirstdesignpatterns/chapter8/second/Tea.java | UTF-8 | 337 | 2.890625 | 3 | [] | no_license | package com.shui.headfirstdesignpatterns.chapter8.second;
/**
* @author shui.
* @date 2021/8/11.
* @time 09:46.
*/
class Tea extends CaffeineBeverage {
@Override
void brew() {
System.out.println("Steeping the tea");
}
@Override
void addCondiments() {
System.out.println("Adding ... | true |
0934bc9f8a4aea23910166f49b1850ede07e62d1 | Java | tuanit1/carsellingapp | /app/src/main/java/com/example/autosellingapp/items/AdsItem.java | UTF-8 | 2,852 | 2.4375 | 2 | [] | no_license | package com.example.autosellingapp.items;
import java.io.Serializable;
import java.util.Date;
public class AdsItem implements Serializable {
private int ads_id;
private int car_id;
private String uid;
private double ads_price;
private int ads_mileage;
private int city_id;
private String ad... | true |
7ed94eda142cb73c78b24fd74562e9e72f0b2bf0 | Java | ses9892/shoppingWeb | /src/main/java/com/store/project/application/controller/ProductRestController.java | UTF-8 | 5,247 | 2.25 | 2 | [] | no_license | package com.store.project.application.controller;
import com.store.project.application.Handling.exception.Upload.FileNotUploadException;
import com.store.project.application.domain.dto.ProductDto;
import com.store.project.application.domain.dto.RequestProduct;
import com.store.project.application.domain.entity.Produ... | true |
fa34724bfb33e9d32af30926e8f83513be51a1db | Java | Tarun2803/Playground | /Armstrong Number /Main.java | UTF-8 | 436 | 3.375 | 3 | [] | no_license | import java.util.Scanner;
class Main{
public static void main (String[] args){
// Type your code here
Scanner in=new Scanner (System.in);
int n=in.nextInt();
int sum=0;
int t=n;
while(n!=0)
{
int r=n%10;
sum=sum+r*r*r;
n=n/10;
}
if (t==sum)
... | true |
a2b0b426f272d11b8ba7ae4a612ef70366913b11 | Java | caseycrafford/MovieRentalAssignment | /src/test/java/za/ac/cput/repository/PriceRepositoryTest.java | UTF-8 | 1,636 | 2.9375 | 3 | [] | no_license | //package za.ac.cput.repository;
//
///*
// PriceRepositoryTest.java
// @author:219169640 - Casey Michael Keven Crafford
// Assignment 3 – Domain Driven Design: Repository
// 26 July 2021
//*/
//
//import org.junit.jupiter.api.MethodOrderer;
//import org.junit.jupiter.api.Test;
//import org.junit.jupiter.ap... | true |
cc39e9c575ef2b97edba75620e4e1bae766d4c72 | Java | vikhyatsharma/Distributed-System | /AggregationServer.java | UTF-8 | 19,790 | 3.1875 | 3 | [] | no_license | import java.io.*;
import java.text.*;
import java.util.*;
import java.net.*;
import com.thoughtworks.xstream.XStream; //Importing xstream libary which help in convert xml to obj and vice versa
import com.thoughtworks.xstream.io.xml.StaxDriver;
// Main class called AggregationServer
public class AggregationServ... | true |
de754479830352a078401bafb49b6214c1a1ac9b | Java | msucil/midpoint | /infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/delta/ContainerDeltaImpl.java | UTF-8 | 15,439 | 2.15625 | 2 | [
"Apache-2.0",
"GPL-1.0-or-later",
"MPL-2.0",
"EPL-1.0",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"CDDL-1.0",
"MIT"
] | permissive | /*
* Copyright (c) 2010-2018 Evolveum
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | true |
44889ccfedec0d6f62e7b814e4c6848081b60aef | Java | hydra13/java_geekbrains | /lesson2-1/src/Team.java | UTF-8 | 1,433 | 3.5625 | 4 | [] | no_license | /**
* Created by Hydra13 on 28.03.2017.
*/
public class Team {
protected Animal[] animals = new Animal[4];
private String name;
private String lastAllResult;
private String lastSuccessResult;
Team (String name, Animal animal1,
Animal animal2,
Anima... | true |
9cbc01944ecc0bbf0338cc73b6c1b94b568feba5 | Java | avkorobitsyin/LoginActivity | /app/src/main/java/com/example/avkor/test/Permission.java | UTF-8 | 705 | 2.328125 | 2 | [] | no_license | package com.example.avkor.test;
import android.app.Activity;
import android.content.pm.PackageManager;
import android.support.v4.app.ActivityCompat;
/**
* Created by avkor on 02.12.2017.
*/
public class Permission {
public static final int REQUEST_PERMISSION = 100;
public static void checkPermission(Activi... | true |
8cba5a369441153f28ee4a10f8119305e52b8b75 | Java | ok0/algorithm | /src/test/java/programmers/hash/runner/RunnerCamouflageTest.java | UTF-8 | 360 | 2.234375 | 2 | [] | no_license | package programmers.hash.runner;
import org.junit.Assert;
import org.junit.Test;
public class RunnerCamouflageTest {
@Test
public void runnerTest() {
String[] participant = {"leo", "kiki", "eden"};
String[] completion = {"eden", "kiki"};
Assert.assertEquals("leo", new Solution().solu... | true |
51076e7ac262f14013843c5d8d5fa419f89352b5 | Java | Malik-Jehangir/AR-module-for-Bahrain-Sports | /AR/src/com/goys/android/app/tvstream/TvStreamActivity.java | UTF-8 | 3,926 | 1.929688 | 2 | [] | no_license | package com.goys.android.app.tvstream;
import java.net.URLEncoder;
import java.util.ArrayList;
import com.goys.android.app.ActionbarActivity;
import com.goys.android.app.GOYSApplication;
import com.goys.android.app.ISettingNotifier;
import com.goys.android.app.R;
import com.goys.android.app.R.id;
import com.goys.andr... | true |
cc23e1f0b9732f1814d767205fd2242843107034 | Java | tintapix/tinta-java | /Tinta/src/com/tinta/common/tintaBufferIO.java | UTF-8 | 1,151 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (C) 2011 - 2019 Mikhail Evdokimov
* tintapix.com
* tintapix@gmail.com
*/
package com.tinta.common;
import java.util.Arrays;
/**
* Buffer wrapper
* @author Mikhail Evdokimov
*
*/
public class tintaBufferIO {
public tintaBufferIO() {
m_iBufferSize = 0;
}
public int GetSize() {
return ... | true |
90be5aade1ce2f863025cc8fba370a899f473ad0 | Java | MoralIntegrity/util | /src/main/java/edu/moral/utils/serializer/DefaultSerializer.java | UTF-8 | 797 | 2.484375 | 2 | [] | no_license | package edu.moral.utils.serializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonPrimitive;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer;
import org.apache.commons.lang3.time.DateFormatUtils;
import java.lang.reflect.Type;
public class DefaultSerializer<T> ... | true |
b6e9a04fd6758716c4ef110c3a0b78c2013d10d6 | Java | fazil-git/Ecommerce-Shopping-Web-Applicaition | /src/model/LoginAction.java | UTF-8 | 865 | 2.46875 | 2 | [] | no_license | package model;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import business.LoginBusiness;
import business.LoginBusinessImpl;
import dao.UserDAO;
import dao.UserDAOImpl;
public class LoginAction extends Action{
@Override
public... | true |
8299613e47ca985500acdef1756bb72a84fb921b | Java | WinterPan2017/Android-Malware-Detection | /getAndroidAPI/src/android/media/ImageWriter.java | UTF-8 | 1,638 | 1.851563 | 2 | [] | no_license | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: ImageWriter.java
package android.media;
import android.os.Handler;
import android.view.Surface;
// Referenced classes of package android.media:
... | true |
a94feaa456b519d15cfc1ee6e682b94aeb4d3570 | Java | LizzieGri/Java_practicalwork | /src/Task21/Task3/MainDoc.java | UTF-8 | 203 | 1.84375 | 2 | [] | no_license | package Task21.Task3;
import java.io.IOException;
public class MainDoc {
public static void main(String[] args) throws IOException {
Framework framework = new Framework();
}
}
| true |
214e42ca82a3ad82bffb52be2fe8d798989be731 | Java | a495800763/headfiestjava | /src/com/liumq/simplejava/array/ArrayTest.java | UTF-8 | 1,483 | 3.765625 | 4 | [] | no_license | package com.liumq.simplejava.array;
public class ArrayTest {
public static void main(String[] args) {
arrayInRam();
}
/**
* 数组的静态初始化
*/
private static void arrayStaticInit() {
int[] intArr;
intArr = new int[]{5, 6, 8, 20};
Object[] objArr;
objArr = ... | true |
13833593dd58bacacac273d1cf1cda00fa0bdc67 | Java | BGCX067/fabrica2009-svn-to-git | /trunk/zaraServidor/src/main/java/fabrica/vo/ArticuloEnListadoVO.java | UTF-8 | 2,465 | 2.609375 | 3 | [] | no_license | package fabrica.vo;
import java.io.Serializable;
import java.util.ArrayList;
import javax.persistence.Transient;
public class ArticuloEnListadoVO implements Serializable{
private static final long serialVersionUID = -2250719913115096635L;
private String referencia = "";
@Transient
private String nombre = "";
... | true |
047ca01dd8b4ca48822053ee735c5e42194227dc | Java | DageHaohao/cocaChat | /common/src/main/java/hjh/factory/data/DbDataSource.java | UTF-8 | 465 | 2.25 | 2 | [] | no_license | package hjh.factory.data;
import java.util.List;
/**
* @author 91319
* @Title: DbDataSource
* @ProjectName cocaChat
* @Description: TODO 基础的数据库数据源接口定义
* @date 2019/1/30
*/
public interface DbDataSource<Data> extends DataSource {
/**
* 有一个基本的数据源加载方法
*
* @param callback 传递一个callback回调,一般回调到Pres... | true |
2ba87ebc4681eecedab7cd7bf0a92b57ea251a38 | Java | ashwinwhat/forumManager | /src/QuitAction.java | UTF-8 | 286 | 2.46875 | 2 | [] | no_license | public class QuitAction implements IForumAction{
private Forum forum;
public QuitAction(Forum forum) {
this.forum = forum;
}
@Override
public String name() {
return "Quit";
}
@Override
public void execute(IConsole console) {
}
}
| true |
8e59848dc3d67c89ccc9b662ad339d9fad64bac3 | Java | thaingo/Arecibo | /dashboard/src/main/java/com/ning/arecibo/dashboard/graph/DashboardGraphLegendServlet.java | UTF-8 | 27,222 | 1.648438 | 2 | [] | no_license | package com.ning.arecibo.dashboard.graph;
import java.util.Iterator;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import java.awt.Color;
import java.io.IOException;
import java.io.ByteArrayOutputStream;
import java.io... | true |
97227cd24f1e1a7dfae740c7cec34c95309ee6c2 | Java | RomanMager/pma-coursework | /src/main/java/by/bsuir/coursework/pmacoursework/repository/ProjectRepository.java | UTF-8 | 619 | 2 | 2 | [] | no_license | package by.bsuir.coursework.pmacoursework.repository;
import by.bsuir.coursework.pmacoursework.entity.Employee;
import by.bsuir.coursework.pmacoursework.entity.Project;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
publ... | true |
9c16964a663e9e9b27c3d70bf3a44933ad8cc93e | Java | sneha5392/sneha2018 | /src/com/java/dao/AllCustomerDAO.java | UTF-8 | 3,763 | 2.46875 | 2 | [] | no_license | package com.java.dao;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import com.java.model.UserInfo;
public class AllCustomerDAO {
public ResultSet getUserDetail(char role){
ResultSet rs=null;
try {
Class.forName("com.mysql.jdbc.Driver");
java.sql.Connection... | true |
b32656f13d68f063d7535f6795e0833f16b44522 | Java | paracetamol31/messenger | /src/main/java/com/server/InitializationOfUsers.java | UTF-8 | 1,134 | 3.03125 | 3 | [] | no_license | package com.server;
import java.io.*;
import java.net.Socket;
import java.util.Scanner;
public class InitializationOfUsers extends Server {
public static User initialization(Socket clientSocket) {
Scanner scanner;
PrintWriter printWriter;
String str = "";
try {
scanner ... | true |
1232bea1c436c3f531bd8e070c4e7d3361c2e139 | Java | nikan1234/NSU-Study-Helper-Android | /app/src/main/java/ru/nsk/nsu/studyhelper/mvp/data/common/DataLayerErrorCreator.java | UTF-8 | 1,216 | 2.203125 | 2 | [] | no_license | package ru.nsk.nsu.studyhelper.mvp.data.common;
import androidx.annotation.NonNull;
import okhttp3.ResponseBody;
import retrofit2.Converter;
import retrofit2.Response;
import ru.nsk.nsu.studyhelper.mvp.data.common.remote.ServiceGenerator;
import java.io.IOException;
import java.lang.annotation.Annotation;
public cla... | true |
4dd7aa52a98774f0f8d5c8b06542c62e5274f7fb | Java | petersmith-hun/leaflet-content-front-application | /core/src/test/java/hu/psprog/leaflet/lcfa/core/converter/FilteringDataConversionSupportTest.java | UTF-8 | 5,343 | 1.914063 | 2 | [] | no_license | package hu.psprog.leaflet.lcfa.core.converter;
import hu.psprog.leaflet.api.rest.response.category.CategoryListDataModel;
import hu.psprog.leaflet.api.rest.response.comment.CommentListDataModel;
import hu.psprog.leaflet.api.rest.response.common.WrapperBodyDataModel;
import hu.psprog.leaflet.api.rest.response.entry.Ext... | true |
a297c7f144a53f8f572b0a3aaaad9f10e1d4ee6e | Java | hydramin/Banking_System_1.0 | /src/system/Main.java | UTF-8 | 21,432 | 3.21875 | 3 | [] | no_license | package system;
import java.io.IOException;
import java.util.Scanner;
public final class Main {
private static boolean back = false; // is used to go back from one page to another based on its value
private static Scanner choice = new Scanner(System.in); // is used to enter discrete integer choices specified by ... | true |
84fcfa0c55826d40f7ea6da1f009a98d1c61e574 | Java | disassemble-io/agent-callback | /src/test/java/BootCaller.java | UTF-8 | 738 | 2.4375 | 2 | [
"MIT"
] | permissive | import io.disassemble.agent.CallbackAgent;
import io.disassemble.agent.callback.CallFactory;
import java.util.Arrays;
/**
* @author Tyler Sedlar
* @since 1/23/16
*/
public class BootCaller {
public static void main(String[] args) {
new CallbackAgent(
cn -> cn.name.contains("Boot"),
... | true |
5c654704a4966d17e8444e45853e691743c0abe4 | Java | minatoyukina/java-note | /src/main/java/leetcode/_351__400/_390/Demo01.java | UTF-8 | 1,087 | 3.203125 | 3 | [] | no_license | package leetcode._351__400._390;
import org.junit.Test;
import java.util.Stack;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
public class Demo01 {
@Test
public void test() {
for (int i = 1; i < 100; i++) {
System.out.println(i + "=>" + lastRemaining(i));
... | true |
1a765d124294431fc589026924e3ff9849180ecf | Java | tylerweng/algorithms | /leetcode/inordermatches.java | UTF-8 | 1,575 | 3.546875 | 4 | [] | no_license | import java.util.*;
class TreeNode {
public Character val;
public TreeNode left;
public TreeNode right;
TreeNode() {
}
TreeNode(Character val) {
this.val = val;
}
public static boolean matches(TreeNode n1, TreeNode n2) {
if (n1 == null && n2 == null) return true;
... | true |
d2fef5196c8a481aef0daf37fe9ae4248e3b6497 | Java | TIGER-FF/mscloud | /order8012/src/main/java/com/tigerff/springcloud/order8012/entities/Page.java | UTF-8 | 465 | 1.890625 | 2 | [] | no_license | package com.tigerff.springcloud.order8012.entities;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
/**
* @author tigerff
* @version 1.0
* @date 2020/9/20 15:39
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Page<T> {
private int pag... | true |
3235faf8a9690d7052e98b9c2b9ebe03005febf3 | Java | tectronics/ostool | /ch.htwchur.ostool/src/ch/htwchur/ostool/types/Kind.java | UTF-8 | 5,258 | 2.53125 | 3 | [] | no_license | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package ch.htwchur.ostool.types;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b... | true |
90b2fcca0d1b8cf427395516fe521da4d839035c | Java | mraynor/mystuff | /ProcessFile.java | UTF-8 | 5,310 | 2.84375 | 3 | [] | no_license | package com.varentech.deploya.Form;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
/**
* This class manages the given Linux shell commands and prints the stdOutput ... | true |
e8273eaea95d1a1d5b3ca0d09eb9f60243e4e943 | Java | chuantianlin/newtwitter | /app/src/main/java/com/codepath/apps/simpletweet/TimelineActivity.java | UTF-8 | 11,789 | 1.851563 | 2 | [
"MIT",
"Apache-2.0"
] | permissive | package com.codepath.apps.simpletweet;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.fragment.app.FragmentManager;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.swiperefreshlayout.w... | true |
a1ebef3087140738a5b524c6c2c61f8d45edb449 | Java | EnlitHamster/udngui | /src/it/taglio/Main.java | UTF-8 | 8,387 | 2.015625 | 2 | [] | no_license | package it.taglio;
import static it.taglio.Constants.cache;
import static it.taglio.Constants.dep_dir;
import static it.taglio.Constants.deps;
import static it.taglio.Constants.doc_dir;
import static it.taglio.Constants.doc_dirs;
import static it.taglio.Constants.doc_files;
import static it.taglio.Constants.max_recent... | true |
a2933382a0bbcc86625f06b6f7b0c2ae5ec9c648 | Java | 7unzhou/yule_teacher | /src/com/yulebaby/teacher/model/Version.java | UTF-8 | 799 | 2.34375 | 2 | [] | no_license | package com.yulebaby.teacher.model;
public class Version implements BaseModel {
private String versionCode;
private boolean force;
private String url;
private String version;
public String getVersionCode() {
return versionCode;
}
public void setVersionCode(String versionCode) {
this.versionCode = versi... | true |
1caddbee4251dc5fe5ea8b33274e9a81fed38130 | Java | NanoToster/BattleShip | /src/main/java/ru/vsu/exceptions/CommonBaseException.java | UTF-8 | 506 | 2.390625 | 2 | [] | no_license | package ru.vsu.exceptions;
/**
* @author Ivan Rovenskiy
* 16 December 2019
*/
public class CommonBaseException extends RuntimeException {
private String message;
public CommonBaseException(String message) {
this.message = message;
}
@Override
public String getMessage() {
return... | true |
94501458f5bb512ab4166f04d4562b2353bc2777 | Java | leping911/springboot-mybatis | /src/main/java/com/zlp/springboot/controller/LoginController.java | UTF-8 | 1,848 | 2.140625 | 2 | [] | no_license | package com.zlp.springboot.controller;
import com.zlp.springboot.entity.User;
import com.zlp.springboot.service.UserService;
import com.zlp.springboot.utils.Md5;
import com.zlp.springboot.vo.LoginProfile;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
i... | true |
32f460e1647da502e0fdfd542ddc5f5daacc2083 | Java | amitrub/Trading-System | /version_1/Trading-System/src/main/java/TradingSystem/Server/DomainLayer/ExternalServices/SupplySystem.java | UTF-8 | 5,567 | 2.453125 | 2 | [] | no_license | package TradingSystem.Server.DomainLayer.ExternalServices;
import TradingSystem.Server.ServiceLayer.DummyObject.Response;
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;
import com.mashape.unirest.http.exceptions.UnirestException;
import java.net.SocketTimeoutException;
import j... | true |
76f444d0afea23d0c5be226c478c5bd10ebfa72c | Java | masonbaesel2/JavaLibs | /Main.java | UTF-8 | 1,405 | 2.90625 | 3 | [] | no_license | //Mason Baesel
// and citations (if necessary)
import javax.swing.JOptionPane;
class Main
{
public static void main(String[] args)
{
String adj = JOptionPane.showInputDialog("Tell me a adjetive");
String adjetive = JOptionPane.showInputDialog("Yell me a adjetive");
String bird = JOptionPane.showInpu... | true |
df1df6edbf314b4e9b335d20b889c6eb4b739df4 | Java | garagu/Marvel | /app/src/main/java/com/garagu/marvel/domain/usecase/GetReviewsByComic.java | UTF-8 | 899 | 2.109375 | 2 | [] | no_license | package com.garagu.marvel.domain.usecase;
import com.garagu.marvel.domain.model.comic.Review;
import com.garagu.marvel.domain.repository.ReviewRepository;
import com.garagu.marvel.domain.thread.ExecutorThread;
import com.garagu.marvel.domain.thread.PostExecutionThread;
import java.util.List;
import javax.inject.Inje... | true |
bf85fb52be4537ac6493d5075defddeb2f4eb29e | Java | tranthithachthao/TranThiThachThao_58133229_BaiTapJava | /src/BaiTap3/SinhVienPoly.java | UTF-8 | 979 | 2.78125 | 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 BaiTap3;
/**
*
* @author Dell
*/
public abstract class SinhVienPoly {
String hoTen;
String nganh;
public S... | true |
a28e050234ebf656b10eaaf9884cbd4ce9eedf9d | Java | nanikaka/procon | /aoj/volume02/AOJ0202.java | UTF-8 | 955 | 3.125 | 3 | [] | no_license | package volume02;
import java.util.Arrays;
import java.util.Scanner;
//At Boss's Expense
public class AOJ0202 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
boolean[] prime = new boolean[1000001];
Arrays.fill(prime, true);
prime[1] = false;
for(int i=2;i<10000... | true |
831999de2910bc29e86f2acbcb1c3c75a96eab0c | Java | bdr27/JTvConvert | /src/com/au/bdr27/JTvConvert/Info/TvMazeShowInfo.java | UTF-8 | 3,118 | 2.453125 | 2 | [
"MIT"
] | permissive | /*
* 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 com.au.bdr27.JTvConvert.Info;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import ja... | true |
f5e45c0effd928614ee4ced4bd7c8e4308e6ab8e | Java | genny-project/bootxport | /src/main/java/life/genny/bootxport/export/RealmAsk.java | UTF-8 | 482 | 1.765625 | 2 | [
"Apache-2.0"
] | permissive | package life.genny.bootxport.export;
import io.vavr.collection.Seq;
import life.genny.qwanda.Ask;
public class RealmAsk {
public static String ask = "Ask";
public static String[] askH = new String[] {"questionCode", "name",
"sourceCode", "targetCode", "attributeCode", "weight",
"readonly", "oneshot"... | true |
c74bc821ddbb4d60eb57125502d24339a3f00c22 | Java | ErinCGallagher/TrekInSync | /app/src/main/java/com/trekinsync/ering/trekinsync/databinders/SectionDividerTitleRowBinder.java | UTF-8 | 772 | 2.28125 | 2 | [] | no_license | package com.trekinsync.ering.trekinsync.databinders;
import android.view.View;
import android.view.ViewGroup;
import com.trekinsync.ering.trekinsync.viewholders.SectionDividerTitleViewHolder;
public class SectionDividerTitleRowBinder extends BaseDataBinder<SectionDividerTitleViewHolder> {
private String title;
... | true |
4b7b6fe3bc12c9f8ff5c8ed919591d778a414fe4 | Java | yasinsoenmez/codingassignment_salestax | /src/main/java/soenmez/yasin/ShoppingBasket.java | UTF-8 | 2,781 | 2.8125 | 3 | [] | no_license | package soenmez.yasin;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.ArrayList;
import java.util.List;
public class ShoppingBasket {
private List<Order> basket;
private List<Tax> taxes;
private BigDecimal totalSalesTax;
private BigDecimal totalPrice;
private static... | true |
28505cad9d708e9608d422240af24ddc2435198f | Java | shang1313/MobileCommand | /appmodule/appbase/src/main/java/android/slc/appbase/ui/utils/recycle/RecyclerLoadMoreView.java | UTF-8 | 1,378 | 1.890625 | 2 | [] | no_license | package android.slc.appbase.ui.utils.recycle;
import android.slc.appbase.R;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.chad.library.adapter.base.loadmore.BaseLoadMoreView;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import org.jetbrains... | true |
345faae07c575b14c485ea78639aa2962b6881a7 | Java | tyleung/CMPUT391Project | /WEB-INF/classes/UploadImage.java | UTF-8 | 6,708 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Iterator;
import java.util.List;
import javax.imageio.ImageIO;
impor... | true |
d372f18e62e0a6353d4373c2159d1490d957b9c7 | Java | infostroytraining/Talanov | /Registration/src/main/java/com/gmail/alexandrtalan/web/tag/CaptchaTag.java | UTF-8 | 463 | 1.851563 | 2 | [] | no_license | package com.gmail.alexandrtalan.web.tag;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.SimpleTagSupport;
import java.io.IOException;
public class CaptchaTag extends SimpleTagSupport {
public void doTag() throws JspException, IOException {
Jsp... | true |
7a089fce4548612e946397982203cfdc1c145158 | Java | liuxigiant/test_java | /test_spring_jta/src/test/java/TestJTA.java | UTF-8 | 556 | 1.804688 | 2 | [] | no_license | import name.liuxi.service.UserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith(SpringJUnit4ClassR... | true |
c3bfc4a78142be4b0889a02e15ff2b3b4574d96b | Java | panangam/oras-banchoff-geom-2018 | /demo-javafiles/mathbuild/functions/Length.java | UTF-8 | 2,089 | 2.671875 | 3 | [] | no_license | //
// Length.java
// Demo
//
// Created by David Eigen on Mon Apr 21 2003.
// Copyright (c) 2003 __MyCompanyName__. All rights reserved.
//
package mathbuild.functions;
import mathbuild.*;
import mathbuild.impl.*;
import mathbuild.type.*;
import mathbuild.value.*;
public class Length implements SyntaxNodeConstru... | true |
6ae405ad337d0c4dbb5bf612e0cc2adb203e7e60 | Java | VijayMVC/Catering-Management-System | /Resturant/src/first/software/cr_login.java | UTF-8 | 8,061 | 1.945313 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package first.software;
import static first.software.Login.da;
import static first.software.Reserve_Page.Final_Recipt_Number;
import ... | true |
311f69a426056b0669a247151c3c9d66fabd07ca | Java | peroh/swen30006-a2 | /src/com/unimelb/swen30006/metromadness/exceptions/FullStationException.java | UTF-8 | 342 | 2.140625 | 2 | [] | no_license | package com.unimelb.swen30006.metromadness.exceptions;
/**
* FullStationException will be thrown if a train tries to enter
* a station that has no room for it.
*/
public class FullStationException extends Exception {
/** Unique Exception serial version id. */
private static final long serialVersionUID = 67... | true |
99ec835a7540603b2b7167d1e02a9a0755232a61 | Java | gunjan07/BayarChain | /app/src/main/java/com/bayarchain/MainActivities/ScrollingActivity.java | UTF-8 | 15,779 | 1.796875 | 2 | [] | no_license | package com.bayarchain.MainActivities;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatAct... | true |
245e9ee252b52ae58a34defc9e05779967dee679 | Java | ochan173/TP1_Echec | /src/echec/Echiquier.java | UTF-8 | 14,241 | 2.921875 | 3 | [] | no_license | package echec;
import echec.Pieces.*;
import java.util.ArrayList;
/**
* Classe de l'échiquier
*
* @author Olivier Chan
* @author David Goulet
*/
public class Echiquier {
private static Echiquier m_instance;
private ArrayList<PieceBase> m_echiquier;
private PieceBase m_pieceCourante;
/**
*... | true |
bc56af8c9447fed813d7f5d7ba5fed67ddf273c7 | Java | mmm2206069/UChicagoCSWork | /CMSC-232-Introduction-to-Computer-Security/proj1/AuthDecryptor.java | UTF-8 | 3,925 | 2.90625 | 3 | [] | no_license | import java.util.Arrays;
public class AuthDecryptor {
// This class is used to decrypt and authenticate a sequence of values that were encrypted
// by an AuthEncryptor.
public static final int KeySizeBytes = AuthEncryptor.KeySizeBytes;
public static final int KeySizeBits = AuthEncryptor.KeySi... | true |
8a8da5358253f0507ccff764c0e1caa215cce45b | Java | seunghopark/myApp1 | /src/psh/testapp/pshfont/MainActivity.java | UHC | 12,106 | 1.945313 | 2 | [] | no_license | package psh.testapp.pshfont;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import android.app.ActionBar;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Intent;
import android.content.res.AssetManager;
import android.content.res.Resources;
import an... | true |
f3d9c7c26ba08945252bf7506905c85f6f3b0978 | Java | xtaticzero/AppDyC | /AppDyC/PjAdministradorProcesosDyC/src/main/java/mx/gob/sat/siat/pjadministradorprocesosdyc/dao/mapper/DyctAdminProcesosMapper.java | UTF-8 | 1,137 | 1.875 | 2 | [] | no_license | package mx.gob.sat.siat.pjadministradorprocesosdyc.dao.mapper;
import java.sql.ResultSet;
import java.sql.SQLException;
import mx.gob.sat.siat.pjadministradorprocesosdyc.dto.DyctAdminProcesosDTO;
import org.springframework.jdbc.core.RowMapper;
public class DyctAdminProcesosMapper implements RowMapper {
@Overr... | true |
8646037893b0c8bd539f35daf8d5b80652460204 | Java | ProgrammingDaisukiClub/Problems2020 | /H-risyuuTouroku/Java-tsubasa-ACver2/Main.java | UTF-8 | 995 | 3.234375 | 3 | [] | no_license |
// recursion solution
import java.util.*;
public class Main {
static List<Integer> vec = new ArrayList<Integer>();
static int n, k;
static int[] a;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
for (int times = 0; times < t... | true |
f6c3df7876f77c3d0996d3913543a6f5eb595b69 | Java | y2kim/sworkspace | /MobileServer/src/main/java/kh/spring/interfaces/MessagesDAO.java | UTF-8 | 290 | 1.851563 | 2 | [] | no_license | package kh.spring.interfaces;
import java.util.List;
import kh.spring.dto.MessagesDTO;
public interface MessagesDAO {
public int insertMessages(MessagesDTO dto);
public int deleteMessages(int seq);
public int modifyMessages(MessagesDTO dto);
public List<MessagesDTO> getAllData();
}
| true |
67c90d7c5298caadd84ae9e2c3bab48535da4fb4 | Java | retenz/project | /testmaven/src/main/java/com/mycompany/testmaven/Deduce.java | UTF-8 | 5,610 | 2.953125 | 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 com.mycompany.testmaven;
import org.apache.commons.cli.*;
import test1.printer.ConsolePrinter;
/**
*
* @author Robert.Tenad... | true |
b601a9e71b2f2b74988d04e17e643f4a186e31d2 | Java | masesgroup/JCOReflector | /netreflected/src/net462/presentationcore_version_4.0.0.0_culture_neutral_publickeytoken_31bf3856ad364e35/system/windows/media/DrawingContext.java | UTF-8 | 20,724 | 1.78125 | 2 | [
"MIT"
] | permissive | /*
* MIT License
*
* Copyright (c) 2023 MASES s.r.l.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, cop... | true |
22cfc6c0b4d952778b8295c632dda762a23100da | Java | tinchogava/Matera | /JAVA/src/matera/jooq/tables/records/TipocompRecord.java | UTF-8 | 5,999 | 2.15625 | 2 | [] | no_license | /**
* This class is generated by jOOQ
*/
package matera.jooq.tables.records;
import javax.annotation.Generated;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import matera.jooq.tables.Tipocomp;
import org.jooq.Field;
import org.jooq.... | true |
62ed44f54f4cbfa4a74c8a0ccc8d0c4b14cd5c27 | Java | Raftel/Storygraph | /Storygraph/src/com/raftel/appear/graphics/expand/AppearRenderGraph.java | UTF-8 | 2,143 | 2.484375 | 2 | [] | no_license | package com.raftel.appear.graphics.expand;
import java.util.ArrayList;
import com.raftel.appear.graphics.expand.AppearRenderModel;
import com.raftel.appear.graphics.expand.AppearRenderTarget;
import com.raftel.appear.graphics.AppearNode;
public class AppearRenderGraph extends AppearNode {
private AppearRen... | true |
d38bab49d85fb4e0027afed6818e0d4bff24f2f9 | Java | CodeLean-VN/JavaTutorials | /src/main/java/DemoJavaApp/Ball.java | UTF-8 | 2,007 | 3.171875 | 3 | [] | no_license | package DemoJavaApp;
/**
* Write a description of class Ball here.
*
* @author (your name)
* @version (a version number or a date)
*/
import java.awt.*;
import java.util.*;
public class Ball extends GameObject
{
private Color color;
private Rectangle rec=new Rectangle(0,0,100,100);
public Ball(float x,float y... | true |
886d8769d008030613b054453080a3192f7c5a42 | Java | OpenMAVN/MAVN.Service.Tests | /src/main/java/com/lykke/tests/api/service/bonuscustomerprofile/model/AggregationsUtils.java | UTF-8 | 718 | 2.078125 | 2 | [
"MIT"
] | permissive | package com.lykke.tests.api.service.bonuscustomerprofile.model;
import static com.lykke.api.testing.api.base.RequestHeader.getHeader;
import static com.lykke.tests.api.base.Paths.CustomerBonusProfile.CUSTOMER_AGGREGATIONS_PATH;
import static org.apache.http.HttpStatus.SC_OK;
import lombok.experimental.UtilityClass;
... | true |
827edee69c4c315e3507197aeb6c3951d00981e6 | Java | mrbing47/CB-Android-Apps | /Reminder/app/src/main/java/garg/sarthik/reminder/Task.java | UTF-8 | 1,096 | 2.515625 | 3 | [] | no_license | package garg.sarthik.reminder;
import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
@Entity
public class Task {
@PrimaryKey(autoGenerate = true)
int id;
String description;
@ColumnInfo(name = "status")
boo... | true |