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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
1e7d4671fe18a4f14d1e5fe5b847e0ec03960dc4 | Java | newtonker/wechat6.5.3 | /app/src/main/wechat6.5.3/android/support/v7/widget/AppCompatButton.java | UTF-8 | 2,700 | 1.726563 | 2 | [] | no_license | package android.support.v7.widget;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.PorterDuff.Mode;
import android.graphics.drawable.Drawable;
import android.support.v4.view.w;
import android.support.v7.a.a.a;
import android.util.AttributeSet;
import android.view.acce... | true |
3e919a1ae95acb74f9fb1082ae9fc1e267cb13ba | Java | eng-edu/APP_ARCO | /app/src/main/java/com/developer/edu/app_arco/bd/DB_OpemHelper.java | UTF-8 | 1,845 | 2.375 | 2 | [] | no_license | package com.developer.edu.app_arco.bd;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class DB_OpemHelper extends SQLiteOpenHelper {
private static final String nomeBD = "DB01";
private static final int versaoBD = 1;
... | true |
8422b0f78bd015c9b0908426b8359d58d1dac917 | Java | sanoussi98saadia/SANOUSSI-ESSAADIA | /SANOUSSI-ESSAADIA/src/services/serviceLivre.java | UTF-8 | 317 | 1.664063 | 2 | [] | no_license | package services;
import java.sql.SQLException;
import java.util.ArrayList;
import dao.daoLivre;
import models.Livre;
public class serviceLivre {
public static ArrayList<Livre> listeLivres() throws ClassNotFoundException, SQLException {
return daoLivre.listeLivres();
}
}
| true |
fe9f0c11820e7ade103ad4af6d63c6d341f5c7fa | Java | varmenise/myappOnGithub | /src/main/java/example/HelloServlet.java | UTF-8 | 3,364 | 2.4375 | 2 | [] | no_license | package example;
import java.io.IOException;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.AddressExcepti... | true |
05c6a5c82f1339fb7c02eb936e9d06324abad50a | Java | StiggyB/bernieundert | /SS2011_AD_Last/src/a10/Entry.java | UTF-8 | 700 | 3.25 | 3 | [] | no_license | package a10;
/**
* This class represents an entry in the HashTable implementation.
*
* @param <K> the type of keys maintained by the table
* @param <V> the type of the values in the table
*
* @author Tugend und Laster
* @see IHashTable
*/
public class Entry<K ,V> {
K key;
V value;
Entry<K,... | true |
aab0964b85c0bcaa28b0953690b5efbac22385e4 | Java | nucularmoo/fuk-roglyk | /fuk-roglyk/src/test/java/fukroglyk/logiikka/OvigeneraattoriTest.java | UTF-8 | 1,461 | 2.34375 | 2 | [] | no_license |
package fukroglyk.logiikka;
import fukroglyk.entiteetit.Ovi;
import fukroglyk.logiikka.maailma.Alue;
import fukroglyk.logiikka.maailma.Maailmanrakentaja;
import java.util.ArrayList;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
impor... | true |
e19e2fae9e911402002aaf9cd536a39d5aafe3c8 | Java | LetmeAlittle/QX | /app/src/main/java/com/ttt/qx/qxcall/function/login/model/api/LoginServiceApi.java | UTF-8 | 5,978 | 2.015625 | 2 | [] | no_license | package com.ttt.qx.qxcall.function.login.model.api;
import com.ttt.qx.qxcall.function.login.model.entity.InvitedRecord;
import com.ttt.qx.qxcall.function.login.model.entity.LoginedResponse;
import com.ttt.qx.qxcall.function.login.model.entity.ThreeLoginResponse;
import com.ttt.qx.qxcall.function.login.model.ent... | true |
548425e3311f6dfd92ad62bf11c86459ab6eaad8 | Java | Dinnerwolph/otl | /src/main/java/fr/dinnerwolph/otl/base/Main.java | UTF-8 | 563 | 2.484375 | 2 | [] | no_license | package fr.dinnerwolph.otl.base;
import fr.dinnerwolph.otl.servers.OTLServer;
import java.io.IOException;
/**
* @author Dinnerwolph
*/
public class Main {
private static Base base;
public static void main(String[] args) {
if (args.length == 0)
base = new Base();
else if(args[... | true |
08ce122d32364a7a404deb610d95851dbdbbaedb | Java | tainarareis/SisRes | /Codigo/src/model/Patrimonio.java | UTF-8 | 1,723 | 3.234375 | 3 | [] | no_license | package model;
import exception.PatrimonioException;
public class Patrimonio {
private String codigo;
private String descricao;
//Mensagens de Erro e Alertas
//private final String CODIGO_INVALIDO = "Codigo Invalido.";
private final String CODIGO_BRANCO = "Codigo em Branco.";
private final String CODIGO_NULO =... | true |
cf007b146b2eb86a501fe0edbd89d0e338391e66 | Java | oborotovnikolaj/homework-tcs | /diploma/target/generated-sources/annotations/ru/tfs/diploma/entities/yellow/Order_.java | UTF-8 | 740 | 1.726563 | 2 | [] | no_license | package ru.tfs.diploma.entities.yellow;
import javax.annotation.Generated;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
import ru.tfs.diploma.entities.grey.Client;
@Generated(value = "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor")
@StaticMetamodel(... | true |
37b44f147f24b0ccd9543e9c2763f4f0d014a879 | Java | IvanPerez9/ProgramacionCompetitiva | /programacionCompetitiva/curso19/victoriaMagistral.java | UTF-8 | 486 | 3.140625 | 3 | [
"MIT"
] | permissive | /**
*
*/
package curso19;
import java.util.Scanner;
/**
* @author Ivan.Perez
*
* https://github.com/IvanPerez9
*/
public class victoriaMagistral {
public static void main(String[] args) {
Scanner entrada = new Scanner (System.in);
int n = entrada.nextInt();
for (int i = 0; i < n; i++) {
int nume... | true |
475f63ec0d00411055c55ab83d4291e2616cfa43 | Java | AndyDingo/NuclearCraft | /src/main/java/nc/container/SlotInaccessible.java | UTF-8 | 741 | 2.34375 | 2 | [
"CC0-1.0"
] | permissive | package nc.container;
import nc.tile.inventory.ITileInventory;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
public class SlotInaccessible extends Slot {
public SlotInaccessible(ITileInventory ti... | true |
8b1d56f8ed44de9d9e990601f1c643efde615ce2 | Java | RodrigoEstay/Programacion-II | /ejemplos/InterfazListas/src/interfazlistas/PanelDibujo.java | UTF-8 | 918 | 3.015625 | 3 | [] | no_license |
package interfazlistas;
import java.awt.Graphics;
import java.awt.Point;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.JPanel;
public class PanelDibujo extends JPanel implements MouseListener{
Stack s;
public PanelDibujo(){
s = new Stack();
... | true |
a732b66ca2eaaa336cec69f15aa3a51fed60a135 | Java | johnsteele/Xtext2-DSLs | /nl.dslmeinte.xtext.sgml.base/src/nl/dslmeinte/xtext/sgml/lexer/TokenHelper.java | UTF-8 | 2,715 | 2.734375 | 3 | [] | no_license | package nl.dslmeinte.xtext.sgml.lexer;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map.Entry;
import org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider;
import org.eclipse.xtext.parser.antlr.TokenTool;
import org.eclipse.xtext.util.Strings;
import com.google.in... | true |
d17070ed1ff2df0f3e29c035119d488b997ba7c1 | Java | brentlrayjr/planet-gravity-box2d | /src/main/java/ch/leozulfiu/planetGravity/Spaceship.java | UTF-8 | 2,972 | 2.734375 | 3 | [
"MIT"
] | permissive | package ch.leozulfiu.planetGravity;
import org.jbox2d.collision.shapes.CircleShape;
import org.jbox2d.collision.shapes.PolygonShape;
import org.jbox2d.common.Transform;
import org.jbox2d.common.Vec2;
import org.jbox2d.dynamics.Body;
import org.jbox2d.dynamics.BodyDef;
import org.jbox2d.dynamics.BodyType;
import proces... | true |
2681e740416add434b5e98ce7b6ae3bfeea128f5 | Java | zhumeilu/sharding-jdbc-demo | /sharding-jdbc-demo1/src/main/java/com/zml/model/Admin.java | UTF-8 | 384 | 1.664063 | 2 | [] | no_license | package com.zml.model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Getter;
import lombok.Setter;
import org.apache.ibatis.type.Alias;
/**
* Description:
* User: zhumeilu
* Date: 2017/8/29
* Time: 20:48
*/
@Getter
@Setter
@TableName("admin")
@Alias("Admin")
public class Admin extends Base... | true |
e8c31d5f3d5570c0077ba680beeb1f2a1d3f7b63 | Java | brunojoenk/transactions-routine | /src/main/java/com/transactionsroutine/services/OperationTypeRetrieval.java | UTF-8 | 376 | 2.125 | 2 | [] | no_license | package com.transactionsroutine.services;
import com.transactionsroutine.enums.OperationType;
public class OperationTypeRetrieval {
public static OperationType getOperationType(Long operationTypeId) {
return OperationType.getOperationById( operationTypeId )
.orElseThrow( () -> new IllegalArgumentException( "O... | true |
f5d35774f147a73e533e68d85eb995ee08c81f25 | Java | twosan2/back | /project/src/Team1/JoinPage.java | UHC | 8,626 | 2.625 | 3 | [] | no_license | package Team1;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPan... | true |
6956050c35e4ba11af6199a708efcaa9eda5d0e5 | Java | jimc1682000/YahooFinanceLab | /src/com/sinopacsitc/yfs/fx/FxInfo.java | BIG5 | 1,220 | 2.4375 | 2 | [] | no_license | /**
* Project Name:YahooFinanceServ
* File Name:FxInfo.java
* Package Name:com.sinopacsitc.yfs.fx
* Date:2015~811W10:08:31
* Copyright (c) 2015, jim@sinopac.com All Rights Reserved.
*/
package com.sinopacsitc.yfs.fx;
import java.io.IOException;
import java.util.Map;
import com.sinopacsitc.yfs.util.LogUtil;
im... | true |
8e44735b92d40892146f4b0e18c09808dec02e02 | Java | IsmaelHG/TAP_Prac1 | /src/part3/RedisMailStore.java | UTF-8 | 1,981 | 3.03125 | 3 | [] | no_license | package part3;
import part1.MailStore.MailStore;
import part1.Message;
import redis.clients.jedis.Jedis;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.LinkedList;
import java.util.List;
import java.util.StringTokenizer;
/***
*
* MailStore implementation via Redis.
* M... | true |
1ce3cfd54f29c11102e299268c733c9c3ec7684f | Java | gnpavan430/automationusinggooglesheet | /src/test/java/setup/NewSetup.java | UTF-8 | 5,032 | 2.03125 | 2 | [] | no_license | package setup;
import io.appium.java_client.ios.IOSDriver;
import io.appium.java_client.ios.IOSElement;
import io.appium.java_client.remote.IOSMobileCapabilityType;
import io.appium.java_client.remote.MobileCapabilityType;
/*import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.jun... | true |
d15b8ac5d48243d3358527b58d15e52eaf652190 | Java | louisoutin/multi-agent_soccerbot | /src/behaviour/UnlockBehaviour.java | UTF-8 | 1,881 | 2.625 | 3 | [] | no_license | package lakradiOutinTeam.behaviour;
import EDU.gatech.cc.is.util.Vec2;
import lakradiOutinTeam.SoccerAction;
import lakradiOutinTeam.SoccerMap;
import lakradiOutinTeam.SoccerUtils;
/**
* Comportement de "débloquage" de situation
*/
public class UnlockBehaviour extends Behaviour {
protected boolean panic;
... | true |
8d9521397dc0be035f66261ff7a50f8c0f37db94 | Java | tachagon/AI_Assignment_3 | /src/MF.java | UTF-8 | 16,768 | 3.140625 | 3 | [] | no_license |
import java.text.DecimalFormat;
import java.util.List;
import java.util.ArrayList;
import javax.swing.JFrame;
import static javax.swing.JFrame.EXIT_ON_CLOSE;
// __________________ _________ _________
// / _______/ _______ \ / _______ \ / _______/
// / / / / \ \/ / \ \/ / ... | true |
f1b2e418bdc648cf60e6b4ddba0a2d024f7b46bb | Java | ArmanBekmuratov/JavaCore | /src/com/ArmanBekmuratov/javacore/chapter15/VarCapture.java | UTF-8 | 524 | 3.125 | 3 | [] | no_license | package com.ArmanBekmuratov.javacore.chapter15;
public class VarCapture {
public static void main(String[] args) {
// Локальная переменная, которая может быть захваачена
int num = 10;
MyFunc myLambda = (n) -> {
//такое применение переменной num допустимо,
// посколь... | true |
c5887ff03c372b84cae932d269a72bab0f8512b6 | Java | chesarin/FloreantPOS | /src/com/floreantpos/ui/dialog/DrawerPullReportDialog.java | UTF-8 | 14,613 | 1.945313 | 2 | [] | no_license | /*
* CashDrawerReportDialog.java
*
* Created on August 24, 2006, 11:20 PM
*/
package com.floreantpos.ui.dialog;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.DecimalFormat;
im... | true |
4944055fc85698a5e8a44a2be9dfc39bfff73a1c | Java | yemiolukoya/framework | /CarsGuide/src/main/java/pages/SearchPage.java | UTF-8 | 877 | 2.25 | 2 | [] | no_license | package pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class SearchPage {
WebDriver driver;
@FindBy(xpath = "//*[@id=\"u_H\"]/di... | true |
51798d04704d204d2d188c2eb3a0441c867c5815 | Java | vertigo-io/vertigo-bot-factory | /vertigo-bot-designer/src/main/javagen/io/vertigo/chatbot/designer/domain/admin/ChatbotProfiles.java | UTF-8 | 2,429 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package io.vertigo.chatbot.designer.domain.admin;
import io.vertigo.core.lang.Generated;
import io.vertigo.datamodel.structure.model.DtStaticMasterData;
import io.vertigo.datamodel.structure.model.UID;
import io.vertigo.datamodel.structure.stereotype.Field;
import io.vertigo.datamodel.structure.util.DtObjectUtil... | true |
d307af077d796a2d9207056c2c275ca5afa97923 | Java | jatinverma12/ra | /src/main/java/com/risingarjun/arjun/service/impl/StudentsSubjectsServiceImpl.java | UTF-8 | 3,523 | 2.359375 | 2 | [] | no_license | package com.risingarjun.arjun.service.impl;
import com.risingarjun.arjun.service.StudentsSubjectsService;
import com.risingarjun.arjun.domain.StudentsSubjects;
import com.risingarjun.arjun.repository.StudentsSubjectsRepository;
import com.risingarjun.arjun.service.dto.StudentsSubjectsDTO;
import com.risingarjun.arjun.... | true |
d48649b76af6b968f2e8fc48a439648399ffa2e7 | Java | GabrielFernandez14/fernandez-cop3330-assignment2 | /src/test/java/oop/assignment2/ex35/base/PickWinnerTest.java | UTF-8 | 2,925 | 3.578125 | 4 | [] | no_license | /*
* UCF COP3330 Summer 2021 Assignment 2 Solution
* Copyright 2021 Gabriel Fernandez
*/
package oop.assignment2.ex35.base;
import org.junit.jupiter.api.Test;
import java.util.Random;
import static org.junit.jupiter.api.Assertions.*;
class PickWinnerTest {
@Test
void pickWinnerRandomly_check_that_count... | true |
9ae05ad3a70c51a1c013de4887b84af64ab11f26 | Java | daoos/apiRouterSafeGate | /src/main/java/com/ztgeo/biz/WfmActivityApiStepRelBiz.java | UTF-8 | 606 | 1.773438 | 2 | [] | no_license | package com.ztgeo.biz;
import com.github.wxiaoqi.security.common.biz.BusinessBiz;
import com.ztgeo.entity.WfmActivityApiStepRel;
import com.ztgeo.mapper.WfmActivityApiStepRelMapper;
import org.springframework.stereotype.Service;
/**
* 活动步骤和API关系表
*
* @author zoupeidong
* @email 806316372@qq.com
* @version 2018-1... | true |
8ae2536edcd62e9328405a60ed9200be2a73657d | Java | anaelChardan/Mines-A2-EventManagerJEE | /src/main/java/fr/mines/event_manager/framework/tags/PathTag.java | UTF-8 | 703 | 2.234375 | 2 | [] | no_license | package fr.mines.event_manager.framework.tags;
import java.io.IOException;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.tagext.SimpleTagSupport;
public class PathTag extends SimpleTagSupport {
private String endpoint;
@Override
public void doTag() ... | true |
ed1b645ea5fc61d85b7229f882e5917507d18ff3 | Java | ryeol2/Shoppingmall | /ShoppingMall/src/main/java/spring/project/shopping/paging/PageMaker.java | UHC | 3,032 | 2.796875 | 3 | [] | no_license | package spring.project.shopping.paging;
import java.net.URLEncoder;
import org.springframework.web.util.UriComponents;
import org.springframework.web.util.UriComponentsBuilder;
public class PageMaker {
private int totalCount; // Խñ .
private int startPage; //
private int endPage; //
private bool... | true |
8034ed6ff721140ada092d1f5f9ff7c2142d1081 | Java | paradigm258/Indie-Vibe-Back | /src/main/java/com/swp493/ivb/common/report/ServiceReportImpl.java | UTF-8 | 4,429 | 1.960938 | 2 | [] | no_license | package com.swp493.ivb.common.report;
import java.util.Date;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import javax.mail.MessagingException;
import com.swp493.ivb.common.artist.EntityArtist;
import com.swp493.ivb.common.artist.RepositoryArtist;
import com.swp493.ivb.common... | true |
a97c26d1a1c0bd2b91384cc0e75d98cf2761e9be | Java | ghcui/IDCardReader | /app/src/main/java/com/yunqi/cardreader/ui/adapter/CheckOutAdapter.java | UTF-8 | 2,401 | 2.125 | 2 | [] | no_license | package com.yunqi.cardreader.ui.adapter;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseV... | true |
ac3b9add7096575456edf9b148ab2871ac68dd40 | Java | CrossLee/CPS | /src/com/cemso/action/LoginAction.java | UTF-8 | 2,603 | 2.234375 | 2 | [] | no_license | package com.cemso.action;
import java.net.URLDecoder;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.cemso.dto.ActionlogDTO;
import com.cemso.dto.UserDTO;
import com.cemso.service.UserService;
import com.googlecode.jsonplugin.annotatio... | true |
fddd3a83f77c2fa41f59680e1352ed6db1a3e726 | Java | zhangh165/algorithmPractice | /src/com/zhh1011/algorithmPractice/leetcode/LT18_fourSum.java | UTF-8 | 1,396 | 3.234375 | 3 | [] | no_license | package com.zhh1011.algorithmPractice.leetcode;
import java.util.*;
/**
* author: dsa44
* create time: 2020/10/5 20:11
*/
public class LT18_fourSum {
private static Set<List<Integer>> result = new HashSet<>();
public static List<List<Integer>> getResult(int[] nums, int target) {
if(nums == null || ... | true |
da39d4e01b9e7f90b0b93f7372d3e944b0eeb51f | Java | raffaeleconforti/risk-aware-bpm | /risk-monitoring-and-mitigation/src/main/java/org/yawlfoundation/yawl/sensors/actions/taskactions/abstractactions/XResourceAbstract.java | UTF-8 | 5,954 | 2.171875 | 2 | [] | no_license | package org.yawlfoundation.yawl.sensors.actions.taskactions.abstractactions;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Vector;
import org.jdom2.Element;
import org.yawlfoundation.yawl.sensors.YSensorUtilities;
import org.yawlfoundation.yawl.sensors.databaseInterfac... | true |
0b87dc08df7626827d2695b9e706cd39f91b9d58 | Java | Curllen/best-spring | /src/main/java/temp/UserServiceImpl.java | UTF-8 | 455 | 2.390625 | 2 | [] | no_license | package temp;
public class UserServiceImpl implements UserServicePlus {
private String name;
public UserServiceImpl() {
this.name = "yhm";
}
@Override
public void queryUserInfo() {
System.out.println("查询用户信息:" + name);
}
@Override
public String toString() {
f... | true |
7916b23456a0587a4fa562c80d11d1f1a19ffc30 | Java | erika1013/genesys | /src/main/java/com/guandera/core/shared/model/Servicio.java | UTF-8 | 1,500 | 2.03125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.guandera.core.shared.model;
import java.io.Serializable;
import com.googlecode.objectify.Ref;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;
import com.goo... | true |
eda22b2a0dbd4dd7b5ca3b73c5b8551270d703d6 | Java | un-knower/ESGUI | /src/main/java/com/believeus/ESGUI/controller/RootLayoutController.java | UTF-8 | 1,825 | 2.234375 | 2 | [] | no_license | package com.believeus.ESGUI.controller;
import java.io.File;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import com.anosi.asset.exception.CustomRunTimeException;
import com.believeus.ESGUI.fileGenerate.FileGenerateAdapter;
import de.felixro... | true |
3c46e409c696dab35d50ddb5716717a68894f995 | Java | jokoframework/captura-formserver-community | /fs_web/src/test/java/py/com/sodep/mobileforms/test/authorization/integration/AuthorizationControlIT.java | UTF-8 | 6,570 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | package py.com.sodep.mobileforms.test.authorization.integration;
import java.net.URL;
import java.util.List;
import org.apache.log4j.xml.DOMConfigurator;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowi... | true |
94c5aee9700e2306a0f01c9198ff2dc198c77920 | Java | rllcoelho/JogoDaVelha | /src/JogoDaVelha.java | UTF-8 | 4,052 | 3.65625 | 4 | [] | no_license | public class JogoDaVelha {
private int[][] grade;
//espaços vazios = 0
//jogador 1 (x) = 1
//jogador 2 (o) = -1
public JogoDaVelha(){
//instancia um vetor 3x3
grade = new int[3][3];
//incicializa grade com zeros
for (int i = 0; i < 3; i++){
for (int... | true |
d69e0ef9fac8b6c8b28199bf0210b7f57f7efa62 | Java | rviano96/HappyWeather | /app/src/main/java/ar/iua/edu/viano/happyWeather/Preferences/PreferencesUtils.java | UTF-8 | 4,444 | 2.25 | 2 | [] | no_license | package ar.iua.edu.viano.happyWeather.Preferences;
import android.content.Context;
import android.content.SharedPreferences;
public class PreferencesUtils {
private Context context;
private SharedPreferences sharedPreferences;
private static final String USER_NAME = "user_name";
private static final S... | true |
cebece291655368043d3ae98eaab68ef5fad3f55 | Java | mullair/OCJP_practice | /18chapter/threadsWithConcurrencyAPI/ScheduledExecutiorService.java | UTF-8 | 568 | 3.109375 | 3 | [] | no_license | import java.util.*;
import java.util.concurrent.*;
public class ScheduledExecutiorService{
public static void main(String[] args) throws Exception{
ScheduledExecutorService service = null;
try{
service = Executors.newSingleThreadScheduledExecutor();
Callable<String> task1=() -> "test";
Runnable task2=()->Sys... | true |
31d4e30859d9e14fc452ae7293c65aff102db09a | Java | deivid33/AnalisisAlgoritmos | /AlgoritmosOrdenamiento/src/inter/Interface.java | UTF-8 | 200 | 2 | 2 | [] | no_license | package inter;
public interface Interface {
public void obtenerDatos(double[] datos);
public void ordenarDatos();
public double[] getResultado();
public double getTiempo_e();
} | true |
bbcb1cfffce56e8e92ebe13e6edbc950c71918c9 | Java | sec2018/secwatchdog | /src/main/java/sec/secwatchdog/controller/CountyController.java | UTF-8 | 2,510 | 2.1875 | 2 | [] | no_license | package sec.secwatchdog.controller;
import java.net.URLDecoder;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.st... | true |
d1b63315f54ad37009781ece47c369ebcead64ea | Java | luchosic/VikingoState | /src/Vikingo.java | ISO-8859-10 | 561 | 3.171875 | 3 | [] | no_license |
public class Vikingo {
private static final int SALUD = 100;
private Estado estado;
private int salud;
public Vikingo(){
estado = new Normal();
salud = SALUD;
}
public Estado getEstado() {
return estado;
}
public int getSalud() {
return salud;
}
public void sacudir(){
estado = estado.sacu... | true |
5c47ffbdea1708b6f38fe0a692d659f83844c8a4 | Java | a-xp/deploy-tool | /src/main/java/ru/shoppinglive/model/service/local/LinuxService.java | UTF-8 | 6,899 | 2.125 | 2 | [] | no_license | package ru.shoppinglive.model.service.local;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.file... | true |
76bfa40efcb4eb82ea755947d5dff53e01943585 | Java | josnih21/ultimate_refactoring | /src/main/java/signatureChange/AuthenticationService.java | UTF-8 | 153 | 2.1875 | 2 | [] | no_license | package signatureChange;
public class AuthenticationService {
public boolean isAuthenticated(Id id1) {
return id1.getId() == 12345;
}
}
| true |
c495c2a651f401f746e2542a1b068da92518da96 | Java | Mechwv/labs-praks | /praktika/Prak12/MusicDocument.java | UTF-8 | 228 | 1.796875 | 2 | [] | no_license | package praktika.Prak12;
public class MusicDocument implements IDocument {
@Override
public String read() throws Exception {
return null;
}
@Override
public void save() throws Exception {
}
}
| true |
d5efe2d53e9d61fcb543d2fa499d29b4bec738ce | Java | zrsj/SENG2050Ass3 | /WEB-INF/classes/servlets/AppointmentBean.java | UTF-8 | 1,067 | 2.96875 | 3 | [] | no_license | package servlets;
import java.util.Date;
public class AppointmentBean
{
private String title;
private String description;
private Date date;
private int time;
public AppointmentBean(String title, String description, Date date, int hour)
{
this.title = title;
... | true |
deaef4e09653a3812398b3b997f262faebc043cf | Java | damianwenne/udemy-kursJavaOdPodstaw | /src/main/java/com/udemy/sekcja18_klasy_abstarakcyjne_interfejsy_i_inne/PrzykladowyInterfejs.java | UTF-8 | 193 | 1.9375 | 2 | [] | no_license | package com.udemy.sekcja18_klasy_abstarakcyjne_interfejsy_i_inne;
public interface PrzykladowyInterfejs {
void metodaWInterfejsie();
int metodaZParametremWInterfejsie(String z);
}
| true |
ad70b64b17415d39697ac54f43743d7187e93d5c | Java | AbebeAsnake/icar | /src/main/java/com/abebe/icar/CarApp.java | UTF-8 | 1,040 | 2.609375 | 3 | [] | no_license | package com.abebe.icar;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
@RestController
public class CarApp {
Car Porsche = new Car();
Car Jetta = new Car();
Vehicle car = new Vehicle();
Arr... | true |
9c8f4e80b51c082dc35fe96660c510dc9db69d1f | Java | wherego/DoubanMovie | /app/src/main/java/com/tttony3/doubanmovie/ui/BooksDetailActivity.java | UTF-8 | 3,503 | 2.109375 | 2 | [] | no_license | package com.tttony3.doubanmovie.ui;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.widget.ImageV... | true |
74eedf1dee4736c182014df2f7d61b90125a7bcd | Java | GitMasterBart/WekaInterface_v2.0 | /src/main/java/nl/bioinf/wekainterface/service/SerializationServiceUploadedFiles.java | UTF-8 | 2,056 | 2.609375 | 3 | [] | no_license | package nl.bioinf.wekainterface.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import java.io.FileOutputStream;
import java.io.*;
import java.util.ArrayList;
/**
* This class is a setup for the SerializationAlgorithmInformation.
* Used for creating... | true |
f00b62e143810da8cc73b2c8d0e18a08fd9f36ba | Java | giannis20012001/ancor | /app/src/main/java/org/lumi/ancor/app/filereceiver/CsvFileReader.java | UTF-8 | 18,344 | 1.929688 | 2 | [
"Apache-2.0"
] | permissive | package org.lumi.ancor.app.filereceiver;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.google.common.base.Stopwatch;
import com.google.common.io.Files;
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.ObjectMapper;
import com.mashape.unirest.http.Unirest;
import com... | true |
57e9657ef44cda93b73389c7346c782809133b42 | Java | hellomonkey123/github | /javatest/test6/src/cn/itcast/sax/Demo2.java | UTF-8 | 1,715 | 2.59375 | 3 | [] | no_license | package cn.itcast.sax;
import java.io.IOException;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.Attributes;
import org.xml.sax.ContentHandler;
import org.xml.sax.Locator;
import org.xml.sax.Parser;
import org.... | true |
36c803cab213dea15671a5ecc25ac4cf8219b2f1 | Java | d9nchik/Section8 | /src/exercise21.java | UTF-8 | 1,536 | 3.71875 | 4 | [] | no_license | import java.util.Scanner;
public class exercise21 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Enter number of cities: ");
double[][] cities = new double[input.nextInt()][2];
System.out.println("Enter the coordinates of the c... | true |
6462b06b38254851a4eb0a1bc0382db0508e5801 | Java | manonsacre/IPO | /Woz IPO/DamageObjectTest.java | UTF-8 | 762 | 2.5625 | 3 | [] | no_license | import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
/**
* The test class DamageObjectTest.
*
* @author (your name)
* @version (a version number or a date)
*/
public class DamageObjectTest
{
private DamageObject testItem;
/**
* Default constr... | true |
0072981e1b21d0323196ff63e75c11d11b9a85cd | Java | 231004427/playcatweb | /src/main/java/com/sun/playcat/dao/AreaDao.java | UTF-8 | 531 | 1.859375 | 2 | [] | no_license | package com.sun.playcat.dao;
import com.sun.playcat.domain.Area;
import com.sun.playcat.domain.AreaList;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;
import java.util.List;
/**
* Created by sunlin on 2017/8/13.
*/
@MapperScan
public interface AreaDao {
public int... | true |
fc4bfed1da3fabd31d01372669d91b6084a1b78d | Java | PravatKumarPradhan/his | /LIS/src/main/java/com/param/lis/global/dao/TechinqueMasterDaoImpl.java | UTF-8 | 6,368 | 1.9375 | 2 | [] | no_license | package com.param.lis.global.dao;
import java.math.BigInteger;
import java.util.List;
import org.apache.log4j.Logger;
import org.dozer.DozerBeanMapper;
import org.hibernate.HibernateException;
import org.hibernate.transform.Transformers;
import org.springframework.beans.factory.annotation.Autowired;
import ... | true |
033ff36d89c9b3e03c3d334e607b6bf4bb7e8e63 | Java | lyslys/study | /src/main/java/com/learn/tuling/concurrency/jmm/VolatileAtomicSample.java | UTF-8 | 1,263 | 3.328125 | 3 | [] | no_license | package com.learn.tuling.concurrency.jmm;
import java.util.concurrent.locks.ReentrantLock;
/**
* 原子性
*/
public class VolatileAtomicSample {
private static int counter = 0;
static Object object = new Object();
static ReentrantLock reentrantLock = new ReentrantLock();
public static void main(String[... | true |
34de8677dabfe5d318080abe47c8590b7ddc647b | Java | ASU/rampart | /modules/savan/src/org/apache/savan/messagereceiver/MessageReceiverDeligater.java | UTF-8 | 2,302 | 1.921875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright 1999-2004 The Apache Software Foundation.
*
* 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 ... | true |
202a4b93810df97a2cbe9db8705f9febfa2c00a0 | Java | weixuke/demo-learning | /src/main/java/com/demo/awt/GraphicsShowFont.java | UTF-8 | 5,390 | 3.234375 | 3 | [] | no_license | package com.demo.awt;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
public class GraphicsShowFont {
public static void main(String args[]){
//show();
//yPic(... | true |
ac94314bcdfc182226b045ccbf0af9a164ff7284 | Java | cangwuwuwu/wecoding | /src/main/java/work/niter/wecoding/admin/resource/service/ResAdminService.java | UTF-8 | 9,096 | 2.109375 | 2 | [] | no_license | package work.niter.wecoding.admin.resource.service;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.an... | true |
caf9aa0c5d056761f9bfcc57ae31195488de1733 | Java | mikleee/virtual1-salesforcebox | /src/main/java/com/virtual1/salesforcebox/sf/model/Opportunity.java | UTF-8 | 13,515 | 1.84375 | 2 | [] | no_license | /**
*
*/
package com.virtual1.salesforcebox.sf.model;
import java.util.Date;
/**
* @author nsaputro
*/
public class Opportunity extends BaseSalesforceObject {
private static final long serialVersionUID = 1L;
private String opportunityNumber; // Create a new opportunity, Opportunity_Number__c
pr... | true |
8046bcc72d5fffbe4b19b4444d973003b19743ec | Java | peterfunfest/WebCrawlerNew | /WebCrawlerNew/src/test/HTMLReaderTestOld.java | UTF-8 | 1,479 | 2.703125 | 3 | [] | no_license | package test;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
/*
* I am canning this class to use the eclipse generated Junit template instead, just to keep things cons... | true |
24990b61872b296a0edd6ff04f687bb307fecffd | Java | limuheng/MySampleApps | /FotoGrab/src/main/java/com/muheng/fotograb/utils/DimenUtils.java | UTF-8 | 1,002 | 2.84375 | 3 | [] | no_license | package com.muheng.fotograb.utils;
/**
* Reference web page:
* 1. http://stackoverflow.com/questions/4743116/get-screen-width-and-height
* 2. http://stackoverflow.com/questions/8295986/how-to-calculate-dp-from-pixels-in-android-programmatically
*/
import android.content.res.Resources;
public class DimenUtils {
... | true |
1102b9ba14234b5b235304c189bc797ea6a81f90 | Java | 1989rat/libcan59-TsMainUI | /sources/com/ts/can/gm/comm/CanGMACActivity.java | UTF-8 | 11,222 | 1.539063 | 2 | [] | no_license | package com.ts.can.gm.comm;
import android.os.Bundle;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import com.lgb.canmodule.Can;
import com.lgb.canmodule.CanDataInfo;
import com.lgb.canmodule.CanJni;
import com.ts.MainUI.MainTask;
import com.ts.MainUI.R;
import com.ts.MainUI.User... | true |
256482e17a27a5bbcc2837e3405d170da0207275 | Java | rahulvish001/learnjava | /NaturalWhile.java | UTF-8 | 234 | 2.96875 | 3 | [] | no_license | import java.util.Scanner;
public class NaturalWhile{
public static void main (String args[]){
int x;
int sum;
int i=1;
Scanner s =new Scanner(System.in);
x =s.nextint();
while(i<=x)
{
sum=sum+i;
i++;
}
System.out.println("+sum");
}
} | true |
f0b8e7823d68d0e17a56ab0d98cd209dc9b7654f | Java | joeruiz1/menos_libros | /src/java/Servicios/Inventario.java | UTF-8 | 1,369 | 2.5625 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Servicios;
import dato.Factura;
import dato.Libro;
import java.io.Serializable;
import java.util.ArrayList;
/**
... | true |
fb318e66f360f2bf8a9d255eb3fedb6347ffa67b | Java | cozos/emrfs-hadoop | /com/amazon/ws/emr/hadoop/fs/shaded/com/amazonaws/regions/RegionMetadataFactory.java | UTF-8 | 739 | 1.757813 | 2 | [] | no_license | package com.amazon.ws.emr.hadoop.fs.shaded.com.amazonaws.regions;
import com.amazon.ws.emr.hadoop.fs.shaded.com.amazonaws.partitions.PartitionsLoader;
public class RegionMetadataFactory
{
public static RegionMetadata create()
{
RegionMetadata metadata = createLegacyXmlRegionMetadata();
if (metadata == nul... | true |
1edf06c410b8e929b74160597d43e7269a7dc552 | Java | DomenicDev/heartcapture | /application/fxapp/src/main/java/de/cassisi/heartcapture/ui/event/AddNirsDataEvent.java | UTF-8 | 339 | 1.65625 | 2 | [] | no_license | package de.cassisi.heartcapture.ui.event;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.time.LocalDateTime;
@Getter
@AllArgsConstructor
public final class AddNirsDataEvent {
private final LocalDateTime timestamp;
private final int left;
private final int right;
private final lo... | true |
607168583aa056ed243d3d1a5ba46eceb06c633c | Java | STAMP-project/Cling-application | /results/randoop5/lang-org.apache.commons.lang3.ArrayUtils-14/RegressionTest5.java | UTF-8 | 893,951 | 2.515625 | 3 | [] | no_license | import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class RegressionTest5 {
public static boolean debug = false;
@Test
public void test2501() throws Throwable {
if (debug)
System.out.forma... | true |
c9327652c17c129201f36cd6bce8b3ebee5c9ebc | Java | Krzmbrzl/Orinoco-SQF | /code/tests/arma/orinocosqf/ValueTypeEquivalenceTest.java | UTF-8 | 16,265 | 2.40625 | 2 | [] | no_license | package arma.orinocosqf;
import arma.orinocosqf.type.CodeType;
import arma.orinocosqf.type.ExpandedValueType;
import arma.orinocosqf.type.PolymorphicWrapperValueType;
import arma.orinocosqf.type.SingletonArrayExpandedValueType;
import org.junit.Test;
import static arma.orinocosqf.type.ValueType.BaseType;
import stati... | true |
76a3b6293f04adf899b7c2d1dfcb4f507f48556d | Java | mcpereira7/senac | /PrimeiroSemestre/aula20170407/src/aula20170407/valoresPositivos.java | UTF-8 | 1,000 | 4.0625 | 4 | [] | no_license | /*
Use o laço while para ler 06 valores do usuário. Ao final do laço, imprimir:
1. Soma de todos os valores digitados que foram positivos;
2. Quantidade de valores digitados que foram positivos.
3. Média (decimal) de todos os valores digitados que foram positivos
*/
package aula20170407;
import java.u... | true |
ab01695ea0971931204ca085002572c490c31fea | Java | orosz-usgs/time-series-services | /src/main/java/gov/usgs/wma/waterdata/openapi/schema/collections/LinkGeoJSON.java | UTF-8 | 802 | 2.234375 | 2 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | package gov.usgs.wma.waterdata.openapi.schema.collections;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import io.swagger.v3.oas.annotations.media.Schema;
@JsonPropertyOrder(value={"type","rel","title","href"})
public class LinkGeoJSON {
@Schema(description="The media type referenced url produces.", e... | true |
9830fa468cbd799e4034c664434d36bf687a191e | Java | shanmicheal25/javablogs | /src/main/java/com/blogs/demo/service/inter/ICommentService.java | UTF-8 | 228 | 1.632813 | 2 | [] | no_license | package com.blogs.demo.service.inter;
import com.blogs.demo.pojo.CommentPojo;
import com.blogs.demo.pojo.common.ResponseObject;
public interface ICommentService {
public ResponseObject addComment(CommentPojo commentPojo);
}
| true |
19daf01ad87401763b6abf1665a4dd4c6ccc3759 | Java | Himanshu0809/Hacktoberfest | /Languages/Java/BST/BinarySearchTree.java | UTF-8 | 3,434 | 3.734375 | 4 | [
"MIT"
] | permissive | package BST;
import java.util.LinkedList;
public class BinarySearchTree {
private Node root;
public BinarySearchTree(){
}
public boolean isEmpty(){
return this.root == null;
}
public void display(){
display(this.root, "Root Node: ");
}
private void display(Node nod... | true |
89ec218b4f2c2ad17107be0aabaef70a53137ffc | Java | arumagam/Prolan-11 | /Pertemuan ke 12/main.java | UTF-8 | 584 | 2.875 | 3 | [] | no_license | public class main{
motor<Integer> p = new motor <Integer>(123);
int y = p.gettype();
Sytem.out.println("tipe yang digunaka integer" +y);
Sytem.out.println("");
Sytem.out.println(""---------);
Sytem.out.println("");
motor<String> p2 = new motor <String>("sds");
String z = p2.gettype();
... | true |
6f345089ea5467de42c8d8d16af1377c7f18807a | Java | peaceable4396/WaterGaugeDetectorService | /src/test/com/xlauncher/util/JDBCUtilTest.java | UTF-8 | 3,345 | 2.203125 | 2 | [] | no_license | package com.xlauncher.util;
import com.xlauncher.entity.Predict;
import freemarker.template.Configuration;
import freemarker.template.Template;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfigura... | true |
b25a168e12e74eafa3ac33089e2b3ac73a3a40c9 | Java | marianc000/UploadResizedImagesWithJSON | /src/main/java/service/MyApplication.java | UTF-8 | 1,148 | 2.46875 | 2 | [] | no_license | package service;
import java.util.HashSet;
import java.util.Set;
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
@ApplicationPath("/api")
public class MyApplication extends Application {
public MyApplication() {
singletons = new HashSet<Object>() {
{
... | true |
b7b410f9c95b8376cff9dfd5d429d5c1ef7d2c4b | Java | hardeeksharma/POS_Application | /src/com/nagarro/pos/daoImp/CustomerDaoImpl.java | UTF-8 | 1,325 | 2.203125 | 2 | [] | no_license | package com.nagarro.pos.daoImp;
import java.util.List;
import javax.persistence.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.nagarro.pos.constant.Constant;
import ... | true |
d9b71a93375e5a139841165dc1294fef153b4b2e | Java | hitesh11121984/intellect-18-11 | /user-cud/src/main/java/com/intellect/test/user_cud/util/DateConverter.java | UTF-8 | 755 | 2.703125 | 3 | [] | no_license | /**
*
*/
package com.intellect.test.user_cud.util;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import com.intellect.test.user_cud.exception.InvalidBirthDateException;
/**
* @author admin
*
*/
public class DateConverter {
private static String REQUEST_DATE_FOR... | true |
ea1d72045a2a25b39aa1ae4af9e6421b6754db9d | Java | DiyaWadhwani/Modules-SpringBootBackEnd | /src/main/java/com/wolken/wolkenapp/exception/ExperienceException.java | UTF-8 | 226 | 2.421875 | 2 | [] | no_license | package com.wolken.wolkenapp.exception;
public class ExperienceException extends Exception {
@Override
public String toString() {
return "Invalid Entry - Experience must be of format : (int) months/ (int) years";
}
}
| true |
14cefd112486ca42778cf926267d675cc2554170 | Java | sarabonardi/AlgorithmicProblemSolving | /NegativeBase.java | UTF-8 | 691 | 3.0625 | 3 | [] | no_license | import java.util.Scanner;
public class NegativeBase {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int n = input.nextInt();
int remainder;
String converted = "";
if (n == 0) {
System.out.print(0);
}
else {
... | true |
1ffaae12f09de9b662693c6f71665e4328eff111 | Java | JPLanh/Inventory_System | /src/Components/GUIList.java | UTF-8 | 4,873 | 2.96875 | 3 | [] | no_license | package Components;
import java.awt.Graphics;
import java.awt.event.KeyEvent;
import java.util.ArrayList;
import java.util.LinkedList;
public class GUIList<T> {
private ArrayList<UIComponent> listOfGui;
private AlertBox alert;
private String alertCmd;
private T alertItem;
private InputInterface focus... | true |
2c1b7629eec1ac5d7450617e35fbc881cf020689 | Java | duongthenho/website-tin-tuc | /javaweb09/src/main/java/com/devpro/controller/admin/UserController.java | UTF-8 | 3,692 | 2.203125 | 2 | [] | no_license | package com.devpro.controller.admin;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;... | true |
c3feb1ad5c0a9f9cd7aacdb5d71b19599d6702c6 | Java | achowdhury80/leetcode | /src/comp/prep2019/less1000/Prob384.java | UTF-8 | 863 | 3.5 | 4 | [] | no_license | package comp.prep2019.less1000;
import java.util.*;
public class Prob384 {
private int[] original;
public Prob384(int[] nums) {
this.original = nums;
}
/** Resets the array to its original configuration and return it. */
public int[] reset() {
return original.clone();
}
/... | true |
e499b70defbdbd4ce37e8cb5ba46dec8049a9c61 | Java | moutainhigh/dachaung | /src/test/java/com/dandelion/management/mapperTest/ContractMapperTest.java | UTF-8 | 825 | 2.078125 | 2 | [] | no_license | package com.dandelion.management.mapperTest;
import com.dandelion.management.bean.Contract;
import com.dandelion.management.mapper.ContractMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBo... | true |
d2534af99fdfa7c9f143177ade9b34b241b5d66f | Java | BarnaBotond96/Cassa | /Cassa/src/hu/ak_akademia/cassa/db/sqlbuilder/cassa/SelectLastEditedCassaSqlBuilder.java | UTF-8 | 284 | 2.015625 | 2 | [] | no_license | package hu.ak_akademia.cassa.db.sqlbuilder.cassa;
import hu.ak_akademia.cassa.db.sqlbuilder.SqlBuilder;
public class SelectLastEditedCassaSqlBuilder implements SqlBuilder {
@Override
public String build() {
return "SELECT * FROM cassa ORDER BY last_edit DESC";
}
} | true |
97ae697f071ccfe3fc3ebace59512936c9d763d1 | Java | Alamusitl/CommonUtil | /KSC-SDK-Util/src/main/java/com/afk/client/util/StorageUtils.java | UTF-8 | 8,110 | 2.671875 | 3 | [] | no_license | package com.afk.client.util;
import android.content.Context;
import android.os.Build;
import android.os.Environment;
import android.os.StatFs;
import android.text.format.Formatter;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java... | true |
8c0b127e9f67be4fce9d4f77d66666ed236fffc0 | Java | SDRC-India/SCSL | /SCSL Web/src/main/java/org/sdrc/scsl/repository/HistoricalDataFileDetailRepository.java | UTF-8 | 411 | 1.757813 | 2 | [] | no_license | package org.sdrc.scsl.repository;
import org.sdrc.scsl.domain.HistoricalDataFileDetail;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.transaction.annotation.Transactional;
/**
* @author Sarita
* {@link CreatedDate : 22-03-2018}
*/
public interface HistoricalDataFileDetailRepos... | true |
d7b68ad0cc36547c08ee9c7c52471306bd6630d1 | Java | luiz-filipe/msc-project | /msc-model/src/main/java/com/luizabrahao/msc/model/annotation/FrameworkExclusive.java | UTF-8 | 660 | 2.34375 | 2 | [] | no_license |
package com.luizabrahao.msc.model.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Tells users that the annotated method must not be used in their... | true |
ba62bcfe4bafddd240b0b9a08859ca58eb6f210e | Java | cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning | /ast_results/acl33_AndroidDasher/src/dasher/CAlphabetManager.java | UTF-8 | 25,382 | 1.625 | 2 | [] | no_license | // isComment
package dasher;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import static dasher.CDasherModel.NORMALIZATION;
public class isClassOrIsInterface<C> {
/**
* isComment
*/
private final CLanguageModel<... | true |
fd60ef056d10a695126125b543ee1a89dedbfe28 | Java | gitmahmud/Application_House_Rent_BD | /app/src/main/java/com/experiment/comp/application_house_rent_bd/TabN2.java | UTF-8 | 6,338 | 2.296875 | 2 | [] | no_license | package com.experiment.comp.application_house_rent_bd;
/**
* Created by comp on 7/7/2015.
*/
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.Vi... | true |
c7adea94d1d8b0940f06c1be22b240402c21a049 | Java | davidalain/testebibliotecasvn | /BibliotecaVirtual/branches/Arquitetura_Entidade/Implementação/BibliotecaVirtual/src/br/com/bibliotecavirtual/lib/livros/ILivroDAO.java | UTF-8 | 479 | 1.929688 | 2 | [] | no_license | package br.com.bibliotecavirtual.lib.livros;
import java.sql.SQLException;
public interface ILivroDAO {
public void inserir (Livro livro) throws SQLException;
public void remover (String isbn) throws SQLException;
public void atualizar (Livro livro) throws SQLException;
public Livro buscarPorISBN (S... | true |
8be45df1611d7c588925fa298d8640ddf73a37a5 | Java | libinmath3w/GreenPooling | /app/src/main/java/com/aksharam/greenpooling/activity/MainActivity.java | UTF-8 | 4,401 | 2.15625 | 2 | [] | no_license | package com.aksharam.greenpooling.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransacti... | true |
c6f63f2052c836a9e8ea988dcda59b02768de95b | Java | CronutJun/NICE | /nibs_msg_broker/.svn/pristine/c6/c6f63f2052c836a9e8ea988dcda59b02768de95b.svn-base | UTF-8 | 557 | 2.1875 | 2 | [] | no_license | /**
* com.nicetcm.nibsplus.filesend.service.FileSendService
* 프로젝트명 : 차세대 운영관리시스템 구축
* 작성일 : 2014. 10. 10.
*
* Copyright ©2014 NICE TCM All rights reserved.
*/
package com.nicetcm.nibsplus.filemng.service;
/**
* 여기에 클래스(한글)명.
* <pre>
* 여기에 클래스 설명 및 변경 이력을 기술하십시오.
* </pre>
*
* @author 박상철
... | true |
ff495facc2c7763fff733fbf4872492880e3ed2a | Java | yubaoquan/algorithm | /src/acm_club/_1051/P1056.java | UTF-8 | 1,040 | 3.203125 | 3 | [] | no_license | package acm_club._1051;
import java.util.Scanner;
/**
*
* @author yubaoquan
* @Date 2014年10月11日
* @Description WA
*
*/
public class P1056 {
private static int result = 0;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int row = sc.nextInt();
sc.nextLine();
for (int i ... | true |