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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b8221113d1f87b0808d9c8fb4b1172ebf758de72 | Java | Osaczony/5726 | /src/arena/trafienieKrytyczne.java | UTF-8 | 580 | 2.1875 | 2 | [] | no_license | package arena;
import java.util.Random;
public class trafienieKrytyczne extends silnikWalki{
owadInfo domyslnyTemplate = new owadInfo("JestemŻuk1", 1500, 200, 100, 100, 10, "Test");
Random losowanieKrytycznegoTrafienia = new Random();
public int losowanieKrytycznePierwszegoGracza(){
int wyn... | true |
54e52e46f86b355e5f95e7fc3cce5824b8686f6f | Java | icudroid/AdBeBack-Mobile | /src/fr/k2i/adbeback/business/jackpot/ClassementBean.java | UTF-8 | 2,020 | 2.28125 | 2 | [] | no_license | package fr.k2i.adbeback.business.jackpot;
import org.json.JSONException;
import org.json.JSONObject;
import fr.k2i.adbeback.business.LotBean;
public class ClassementBean {
private long classement;
private long nbPlayer;
private LotBean lot;
private long idJackPot;
private boolean showJackPotChanel =... | true |
8b38f907c5bf6d9a32594e10802f03e56434d6a9 | Java | navikt/k9-format | /soknad/src/test/java/no/nav/søknad/ytelse/omsorgspenger/utvidetrett/OmsorgspengerMidlertidigAleneValidatorTest.java | UTF-8 | 3,147 | 2.234375 | 2 | [
"MIT"
] | permissive | package no.nav.søknad.ytelse.omsorgspenger.utvidetrett;
import static org.assertj.core.api.Assertions.assertThat;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.time.LocalDate;
import java.time.ZonedDateTime;
import java.util.List;
import no.nav.k9.søknad.ytelse.omsorg... | true |
0acf316080ddb1aad4c6e45b4968382272098d7b | Java | constellation-app/constellation | /CoreOpenGLDisplay/src/au/gov/asd/tac/constellation/visual/opengl/renderer/GLVisualProcessor.java | UTF-8 | 21,365 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2010-2021 Australian Signals Directorate
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | true |
6d790f2f8a482d4a15775dff6318fa427a31aeda | Java | SystemJMRS/jmrs | /systemjmrs/src/main/java/br/com/systemjmrs/entity/ProvaTp.java | UTF-8 | 1,315 | 2.046875 | 2 | [] | no_license | package br.com.systemjmrs.entity;
import java.io.Serializable;
import javax.persistence.*;
import java.util.List;
/**
* The persistent class for the prova_tp database table.
*
*/
@Entity
@Table(name="prova_tp")
@NamedQuery(name="ProvaTp.findAll", query="SELECT p FROM ProvaTp p")
public class ProvaT... | true |
394681f388aaba6d5f25f977af4a6600fe9f2d37 | Java | chaitu1990/Hello | /Rahul.java | UTF-8 | 121 | 1.828125 | 2 | [] | no_license | public class Rahul{
public static void main (String[] args)
{
System.out.println ("My Name is chaitali");
}
}
| true |
786a001de13207f065ae38c28d638273454d41f4 | Java | jackey/newstoday | /androidapp/src/com/bonesdev/newstoday/Library/SampleListView.java | UTF-8 | 3,962 | 2.34375 | 2 | [] | no_license | package com.bonesdev.newstoday.Library;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.widget.AbsListView;
import android.widget.ListView;
import com.bonesdev.newsto... | true |
d0d85f9c97d1c5eb35361cb934edd99a17669ea4 | Java | VivienBarousse/MicroJava | /src/com/aperigeek/mj/codegen/Code.java | UTF-8 | 5,294 | 2.1875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.aperigeek.mj.codegen;
import com.aperigeek.mj.symtab.SymbolTable;
import java.io.IOException;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.Map;
/**
*
* @author Vivien Barousse
... | true |
5a310a13659dcb8ecd10d97d59ef129f89dc4288 | Java | dnmaricle/myPrograms | /Heap/Lab1/src/bp/Data.java | UTF-8 | 522 | 3.234375 | 3 | [] | no_license | package bp;
public class Data {
public int value;
public int priority = 5;
//Make an array of these guys
//constructor
public Data(int pValue, int pPriority) {
value = pValue;
priority = pPriority;
}
public Data(int pValue) {
value = pValue;
priority = 5;
}
//p... | true |
ce8925d76abad15b63b59a82fcd81ab41b63296f | Java | jwiszowata/code_reaper | /code/my-app/functions/9/lootCargo_InGameInputHandler.java | UTF-8 | 350 | 1.6875 | 2 | [] | no_license | private void lootCargo(LootCargoMessage message) {
final Game game = getGame();
final Unit unit = message.getUnit(game);
final String defenderId = message.getDefenderId();
final List<Goods> goods = message.getGoods();
if (unit == null || goods == null)
return;
invokeLater(() -> igc().loo... | true |
14d71343c86ff5f1ce8536df554aba71202b4fce | Java | corus19/corus-android | /app/src/main/java/com/jamdoli/corus/utils/ProgressDialogCustom.java | UTF-8 | 1,757 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package com.jamdoli.corus.utils;
import android.app.ProgressDialog;
import android.content.Context;
import android.widget.TextView;
import com.jamdoli.corus.R;
public class ProgressDialogCustom {
private Context context;
private ProgressDialog progressDialog;
private TextView uiTvProgressBatText;
pu... | true |
5aef71366f3b6471de3c1d28893aa2ab01099b60 | Java | SSAwk/Object-Oriented-Programming-in-Java | /Project 2/Project2.java | UTF-8 | 1,283 | 3.78125 | 4 | [] | no_license | /**
* Name: Steven Wang
* Lab: 11G
* Description: Reads a list of dimensions of boxes contained in a file and sorts it based on volume
*/
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class Project2 {
public static void main(String[] args) {
SortedBoxLi... | true |
c00c13dcbe01ae4b5eeb53cf122628e21d981d4f | Java | mrozowski/Grpc-and-rabbitmq | /Bridge/src/main/java/com/mrozowski/bridge/datasource/RequestEntity.java | UTF-8 | 377 | 1.9375 | 2 | [] | no_license | package com.mrozowski.bridge.datasource;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import java.util.UUID;
@Getter
@Builder
public class RequestEntity {
private final UUID id;
private final String name;
private final String request;
private final Local... | true |
3003ef4182989a18ae4dc4f3b562eda1e0f35a6f | Java | Nisargpatel20/TrainerHunt | /app/src/main/java/com/example/nisargpatel/trainerhunt/activity/OTP_activity.java | UTF-8 | 1,665 | 1.953125 | 2 | [] | no_license | package com.example.nisargpatel.trainerhunt.activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widge... | true |
3998485ca01826a9eb0ffc87fd5ffc09352fcfa7 | Java | albertoggago/TextAnalyzer | /TextAnalyzer/src/main/java/com/alberto/analyzer/config/ConfigLiferay.java | UTF-8 | 11,190 | 2.0625 | 2 | [] | no_license | package com.alberto.analyzer.config;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class ConfigLiferay extends Config {
public ConfigLiferay (){
super();
paramBasicTaxRate = 10;
paramTokensZeroBasicTaxRate = createListTokensTaxes(listTokensZeroBasicTax... | true |
8600308f2109a3482868b821e89b76cf15dd7f13 | Java | wchb2015/algorithm_and_leetcode | /src/test/java/course1/chapter8/MaxHeapTest.java | UTF-8 | 1,647 | 3.125 | 3 | [] | no_license | package course1.chapter8;
import com.wchb.course1.chapter8.MaxHeap;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
/**
* @date 5/30/18 11:34 PM
*/
public class MaxHeapTest {
Integer[] nums;
Random random = new Random();
MaxHe... | true |
7d057645b6a8b89a0228d907d38149403ce27a96 | Java | ibrahimebrahim/vksong | /VkSong/src/vkontakte/VKontakte.java | UTF-8 | 9,149 | 2.296875 | 2 | [] | no_license | package vkontakte;
import java.net.*;
import java.io.*;
import java.util.regex.*;
import java.util.Iterator;
import java.util.LinkedList;
import android.util.Log;
// TODO сделать защиту от слишком частых запросов
public class VKontakte {
public String login = "";
public String pass = "";
public String cookie = "... | true |
524fe1d50de467d2a747adaf4f1738d96547d5ff | Java | DroidSoul/InterviewPrep | /DynamicProgramming/RegularExpressionII.java | UTF-8 | 1,214 | 3.21875 | 3 | [
"Apache-2.0"
] | permissive | public class Solution {
// DO NOT MODIFY THE ARGUMENTS WITH "final" PREFIX. IT IS READ ONLY
public int isMatch(final String A, final String B) {
if (B == null || B.length() > 0 && B.charAt(0) == '*') {
return 0;
}
int[][] dp = new int[A.length() + 1][B.length() + 1];
... | true |
57f60a9d2088ae975d6cf4bec69cd41faf1a6f89 | Java | agupta306/CS4400TeamMocha | /TeamMochaGTMRS/src/PatientProfilePanel.java | UTF-8 | 5,339 | 2.515625 | 3 | [] | no_license | import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
... | true |
2fffe458c8f7027cb19e548ca0ff752111d9330f | Java | zhuweiwu/J2SE | /algorithm/src/com/sort/Sorts.java | UTF-8 | 7,381 | 3.890625 | 4 | [] | no_license | package com.sort;
/**
* Util class of sort: bubblesort, insertsort, selectsort
* @author zhuwei wu
* 2014-2-21
*/
public class Sorts {
private static int[] arrTemp;
/**
* Bubble Sort
*
* O(N^2)
*
* @param arr[]
* @return arr[]
*/
public static int[] bubbleSort(int[] arr){
arrTemp = arr.clone... | true |
cf4dfe27309cbac0ff01504ae149f5673589864e | Java | 505519551/unifig | /unifig-modules/unifig-mall/src/main/java/com/unifig/mall/controller/CmsArticleCategoryController.java | UTF-8 | 5,296 | 2.03125 | 2 | [
"MIT"
] | permissive | package com.unifig.mall.controller;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.unifig.context.Constants;
import com.unifig.mall.bean.model.CmsArticleCategory;
import com.unifig.mall.service.CmsArticleCategoryService;
import com.unifig.result.MsgConst... | true |
44c0f65750d6ace4a63c827975923017226f21f3 | Java | evodicka/decorative-displays | /digital-frame/src/test/java/de/eduardvodicka/applications/digitalframe/dao/FileBasedNotificationProviderTest.java | UTF-8 | 1,827 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | package de.eduardvodicka.applications.digitalframe.dao;
import de.eduardvodicka.applications.digitalframe.dao.provider.FileBasedNotificationProvider;
import de.eduardvodicka.applications.digitalframe.model.Notification;
import org.junit.Test;
import java.util.Arrays;
import java.util.List;
import static org.hamcrest... | true |
36d66c14adf754c1e88306d41d865b4ac1b7991f | Java | jaeyoon492/JavaTheory | /src/javatutorials/Polymorphism/example1/CalculatorDemo.java | UTF-8 | 323 | 3 | 3 | [] | no_license | package javatutorials.Polymorphism.example1;
public class CalculatorDemo {
public static void main(String[] args) {
Calculator c1 = new CalculatorDecoPlus();
c1.serOperands(10,20);
c1.run();
Calculator c2 = new CalculatorDecoMinus();
c2.serOperands(10,20);
c2.run();
}... | true |
d14d73999b188b8e4fba78e5692ed5a40cedbb5b | Java | JoAlbornoz/TP1Grupo3 | /src/parque/Producto.java | UTF-8 | 835 | 2.546875 | 3 | [] | no_license | package parque;
public abstract class Producto {
protected String nombre;
protected double costoDeVisita;
protected double tiempoNecesario;
protected int CupoPersonasPorDia;
protected TipoDeAtraccion tipo;
public Producto() {
}
public Producto(String nombre, double costoDeVisita, double tiempoNecesario,
i... | true |
95949c3e72a95dd436480d24e8cd69676f2000e8 | Java | cyfronet-fid/sat4envi | /s4e-backend/src/test/java/pl/cyfronet/s4e/service/AppUserServiceTest.java | UTF-8 | 2,247 | 1.835938 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2020 ACC Cyfronet AGH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | true |
82ffa5333ea77137d98f030664bde82e8f6ed4b5 | Java | chiamakacha/DesignPatterns | /src/factorypattern/pizzaproduction/pizzastore/PizzaStore.java | UTF-8 | 815 | 3.671875 | 4 | [] | no_license | package factorypattern.pizzaproduction.pizzastore;
import factorypattern.pizzaproduction.pizza.Pizza;
/*
Abstract class which defines the abstract factory method that the subclass implement to produce product.
it contains code that depends on an abstract class (Pizza) It never really knows which concrete product was
... | true |
dd893e6aba4b69c1d8d305247a9990dc0b1a07e1 | Java | ABDULKHADER-INCTURE/GitConfigurationRepository | /Automation/src/com/incture/automation/maven/VerifyTitle.java | UTF-8 | 2,124 | 2.140625 | 2 | [] | no_license | package com.incture.automation.maven;
import library.Utility;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.Assert;
import org.testng.ITestResult;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.Test;
import com.relev... | true |
5844fc6c76abce24b1258ce33f7dd79089292d69 | Java | Cenck/yyshop | /shop_public/shop_frame/src/main/java/com/cengel/yyshop/service/impl/MenuCacheServiceImpl.java | UTF-8 | 1,747 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package com.cengel.yyshop.service.impl;
import com.cengel.redis.helper.RedisHelper;
import com.cengel.starbucks.mapper.JsonMapper;
import com.cengel.yyshop.pojo.UserMenuPojo;
import com.cengel.yyshop.service.MenuCacheService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ste... | true |
07fb4216388fe6f56b81a968422142aea586670e | Java | caiwei56011/s_oa | /src/com/jsoft/oa/admin/identity/action/DeptAction.java | UTF-8 | 1,996 | 2.1875 | 2 | [] | no_license | package com.jsoft.oa.admin.identity.action;
import java.util.List;
import com.jsoft.oa.admin.identity.entity.Dept;
/**
* 部门处理器
* @author jack
* @version 1.0
*/
public class DeptAction extends IdentityAction{
private static final long serialVersionUID = 6821912002003171121L;
private List<Dept> depts;
private ... | true |
e77e55364a71e05ad520fdbb7ee8f18a8181efbb | Java | cuinipeng/learning-spring-mvc | /src/main/java/com/percy/controller/HomeController.java | UTF-8 | 609 | 2.109375 | 2 | [] | no_license | package com.percy.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
@Reques... | true |
579f600ee0133e1bdc19613d008577289b90c2f5 | Java | fengle-team/fengle | /FengLe/app/src/main/java/com/yunqi/fengle/presenter/Splash1Presenter.java | UTF-8 | 2,312 | 2.109375 | 2 | [] | no_license | package com.yunqi.fengle.presenter;
import com.yunqi.fengle.base.RxPresenter;
import com.yunqi.fengle.model.bean.SplashBean;
import com.yunqi.fengle.model.http.BmobListResponse;
import com.yunqi.fengle.model.http.RetrofitHelper;
import com.yunqi.fengle.presenter.contract.SplashContract;
import com.yunqi.fengle.rx.Err... | true |
d2ae2f061c7b960d1f4eed96be77e27ab46a5090 | Java | PiotrDros/Generics | /src/bridgemethod/StringHolder.java | UTF-8 | 272 | 2.875 | 3 | [] | no_license | package bridgemethod;
public class StringHolder extends Holder<String> {
@Override
public String getT() {
return t;
}
@Override
public void setT(String t) {
System.out.println("Wywoalano setT(String) z StringHolder z argumentem: " + t);
this.t = t;
}
}
| true |
80a08610c28e4bf728df06de4a921c1c55418257 | Java | asrafumar/selenium-getting-started-examples | /Selenium/GoogleDropDown.java | UTF-8 | 518 | 1.890625 | 2 | [] | no_license | import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class GoogleDropDown {
public static void main(String[] args) {
//System.setProperty("webdriver.chrome.driver", "D:\\Automation\\Selenium2\\JavaCode\\Library\\chromedriver.exe");
WebDri... | true |
3bf98225986d71b90d294629478777e824972e3f | Java | isaacloud-getresults/wereables-pebble | /Android/Pebble/src/main/java/com/sointeractive/getresults/pebble/isaacloud/data/AchievementIC.java | UTF-8 | 1,152 | 2.515625 | 3 | [] | no_license | package com.sointeractive.getresults.pebble.isaacloud.data;
import com.sointeractive.getresults.pebble.pebble.responses.AchievementResponse;
import com.sointeractive.getresults.pebble.pebble.responses.ResponseItem;
import org.json.JSONException;
import org.json.JSONObject;
public class AchievementIC {
private fi... | true |
a00dad6e390dbee28796b5985e97236f9599855a | Java | zhengguilin/yixianqian | /src/com/bp/mongo/SumDTO.java | UTF-8 | 468 | 2.046875 | 2 | [] | no_license | package com.bp.mongo;
import com.bp.mongo.e.QueryDTO;
public class SumDTO extends BaseDTO{
private String sumP;
private QueryDTO queryDTO;
public String getSumP() {
return sumP;
}
public void setSumP(String sumP) {
this.sumP = sumP;
}
public QueryDTO getQueryDTO() {
if(queryDTO==nul... | true |
44252b5811473d36b146332ea6a960b3ee591a37 | Java | Rafal-J/rafaljanus-kodilla-java | /kodilla-stream/src/main/java/com/kodilla/stream/array/ArrayOperations.java | UTF-8 | 510 | 3.28125 | 3 | [] | no_license | package com.kodilla.stream.array;
import java.util.OptionalDouble;
import java.util.stream.IntStream;
public interface ArrayOperations {
public static double getAverage(int[] integers) {
IntStream.range(0,integers.length)
.map(c -> integers[c])
.forEach(c ->System.out.print... | true |
6c1f8180d9ab0c621aca922c40f0f256e15ddecf | Java | AHobbyistDev/Stabilise-2 | /core/src/com/stabilise/entity/component/AbstractComponent.java | UTF-8 | 2,220 | 2.9375 | 3 | [] | permissive | package com.stabilise.entity.component;
import com.stabilise.entity.Entity;
import com.stabilise.entity.event.EntityEvent;
import com.stabilise.util.Checks;
import com.stabilise.world.World;
/**
* Skeletal implementation of {@link Component}. Importantly, this provides an
* override for {@link Object#equals(Object... | true |
e25143e5f6cd2c8be994e40299e0aa9e90c5c438 | Java | guowangheng/Springboot-weather | /com-weather-eureka-data/src/main/java/com/weather/eureka/ConfigurationContext.java | UTF-8 | 3,309 | 2.453125 | 2 | [] | no_license | package com.weather.eureka;
import com.weather.eureka.client.job.WeatherFlushJob;
import org.quartz.Trigger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.cont... | true |
41be1480b4fe5aea1a4a3f2c039d1886b54764ae | Java | prashantrai/Algo_DS_InterviewPrep | /src/leetcode/SerializeAndDeserializeNaryTree_428_Hard.java | UTF-8 | 3,558 | 3.71875 | 4 | [] | no_license | package leetcode;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Deque;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
public class SerializeAndDeserializeNaryTree_428_Hard {
public static void main(String[] args) {
Node root = new Node(1, new ArrayList<N... | true |
515d50d1249f90b211c125732471c308512df4cf | Java | youlingwangzi/HR-System | /src/cn/edu/lnu/domain/Admin.java | UTF-8 | 736 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package cn.edu.lnu.domain;
public class Admin {
private int adminId;
private String adminNameString;
private String password;
private int adminAuthority;
public int getAdminId() {
return adminId;
}
public void setAdminId(int adminId) {
this.adminId = adminId;
}
public String getAdminNameString() {
retur... | true |
49d32b37cfbb536bec42e50cf3bc9f8a6bb38a0d | Java | Arnold-Huang/core-ng-project | /ext/log-processor/src/main/java/core/log/service/ActionLogForwarder.java | UTF-8 | 1,050 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package core.log.service;
import core.framework.kafka.MessagePublisher;
import core.framework.log.message.ActionLogMessage;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* @author neo
*/
public class ActionLogForwarder {
private final MessagePublisher<ActionLogMessage> publisher;
... | true |
f4b6e6ee0743e75a8c5794e9b3f66422b2caaf78 | Java | RiscoBogdan/DataStructure_Algorithms | /src/DataStructure_Algorithms/Hashes/Hash.java | UTF-8 | 5,053 | 3.609375 | 4 | [] | no_license | package DataStructure_Algorithms.Hashes;
import java.util.LinkedList;
public class Hash<K,V>{
class HashElement<K,V> implements Comparable<HashElement<K,V>>{
K key;
V value;
public HashElement(K key, V value){
this.key=key;
this.value=value;
}
@Override
... | true |
1acb4f48d0f53ee192ff87d1be53e46322f86449 | Java | asan3524/web_rest | /ddshteam-util-service/src/main/java/com/ddsh/util/service/impl/PDFServiceImpl.java | UTF-8 | 5,088 | 1.882813 | 2 | [] | no_license | package com.ddsh.util.service.impl;
import java.io.File;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import com.alibaba.dubbo.config.annotation.Service;
import com.ddsh.util.service.api.IPDFService;
import com.ddsh.util.service.api.c... | true |
9976ec5ced7ed2cab13ed2f81540b092ae8c980d | Java | niroshan-ran/RDMNS_LK_REDESIGNED | /app/src/main/java/com/uee/rdmns_lk_redesigned/ui/liveUpdates/ui/KVLine/SlideshowViewModel.java | UTF-8 | 4,556 | 1.9375 | 2 | [] | no_license | package com.uee.rdmns_lk_redesigned.ui.liveUpdates.ui.KVLine;
import com.uee.rdmns_lk_redesigned.mainNewsFeed.NewsFeedModel;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
public class SlideshowViewModel {
//int[] newsBanners = {R.drawable.news1, R.drawable.news2, R.drawable.news3... | true |
f820ca903ba9666dba2029db06a54666e529f8ac | Java | 963-shi/javabasic | /第五章循环结构课后作业2Whilepint.java | GB18030 | 378 | 3.4375 | 3 | [] | no_license | package cn.jbit.sgc;
/**
* ѭṹκҵ2
* @author ShiGuocai
*/
public class Whilepint {
public static void main(String[] args) {
int i=100;
while(i>=5){
System.out.println(i+"\n");
i-=5;
}
System.out.println("******");
//ڶַ
i=100;
do{
System.out.println(i+"\n");
i-=5;
}w... | true |
1a2cc8ef88fd3a26421591324f6d881b28f5c46d | Java | PotoYang/yinbao-app | /app/src/main/java/com/chh/yinbao/fragment/PaybackPlanFragment.java | UTF-8 | 3,317 | 1.945313 | 2 | [] | no_license | package com.chh.yinbao.fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import com.chh.yi... | true |
486109a274c58fd635d6dcd494abde8b3b14cc07 | Java | tianzhiao/springcluod | /cloud-consumer-hystrix-dashboard9001/src/main/java/com/mr/HystrixDashboardMain9001.java | UTF-8 | 574 | 1.585938 | 2 | [] | no_license | package com.mr;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
/**
* @ClassName HystrixDashboardMain9001
* @Description: TODO
* @Author tianzhiao
* @Date 2020... | true |
1920dc18f9618ef9596984b7cff5aeee2eccde65 | Java | GalinDimitrov91/Auction | /Auction/src/main/java/com/dxc/auction/domain/item/DefaultItemService.java | UTF-8 | 964 | 2.234375 | 2 | [] | no_license | package com.dxc.auction.domain.item;
import java.util.List;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Item Service class implements ItemService.
*
* @author gdimitrov5
*
*/
@Service... | true |
7a25996b39949e58765d8e02f54bd97d2b238140 | Java | tearsnight/springboot-cloud | /dangdang-pay/src/main/java/com/qf/dao/PayMapper.java | UTF-8 | 222 | 1.554688 | 2 | [] | no_license | package com.qf.dao;
import com.qf.pojo.TrAccount;
import org.apache.ibatis.annotations.Mapper;
/**
* Created by 54110 on 2020/6/4.
*/
@Mapper
public interface PayMapper {
void insertMoney(TrAccount trAccount);
}
| true |
14af26352b5ad75d5ff882e494b42e912d745aea | Java | abhisheknishad/sprint_practice | /src/main/java/com/cg/apps/task1/item/controller/ItemRestController.java | UTF-8 | 1,377 | 2.140625 | 2 | [] | no_license | package com.cg.apps.task1.item.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bi... | true |
61d90269a012d64ed971cd0b71da346f163f4ba1 | Java | hyb1234hi/reverse-wechat | /weixin6519android1140/src/sourcecode/com/tencent/mm/plugin/wear/model/e/i.java | UTF-8 | 8,381 | 1.53125 | 2 | [] | no_license | package com.tencent.mm.plugin.wear.model.e;
import com.tencent.gmtrace.GMTrace;
import com.tencent.mm.protocal.c.bsb;
import java.util.ArrayList;
import java.util.List;
public final class i
extends a
{
public bsb rAy;
public i()
{
GMTrace.i(9207470358528L, 68601);
GMTrace.o(9207470358528L, 68601);
... | true |
64e6f2fb5784033ece18593748cdae794c940ec5 | Java | AdamMaciak/ciphers | /src/main/java/Euklides/Euklides.java | UTF-8 | 1,373 | 3.15625 | 3 | [] | no_license | package Euklides;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertAll;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class Euklides {
static public int modInverse(int a, int b) {
int modulo = b;
... | true |
ce273c15814aa7771e7b3c952bf148eb4bb37b4a | Java | liuxko/com.liuxk.common | /src/main/java/com/liuxk/common/spring/SpringContextUtil.java | UTF-8 | 2,158 | 2.65625 | 3 | [] | no_license | package com.liuxk.common.spring;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import java.util.Properties;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.config.Prope... | true |
a2c106cf3b034b81f2a7f8f60ddcd894891335c7 | Java | morningtea/java-web-generator | /src/main/java/org/mybatis/generator/plugins/MapperAnnotationPlugin.java | UTF-8 | 2,594 | 1.90625 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2006-2017 the original author or authors.
*
* 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
*
* Unle... | true |
e3c147023d6b9cc118ce80491a19143c93c782c0 | Java | shukad333/DS-Algo | /src/com/general/geeks/tree/ConstructTreeFromPostAndInorder.java | UTF-8 | 1,084 | 3.671875 | 4 | [] | no_license | package com.general.geeks.tree;
/**
* Given inorder and postorder traversal of a tree, construct the binary tree.
*
* Note: You may assume that duplicates do not exist in the tree.
*
* For example, given
*
* inorder = [9,3,15,20,7] postorder = [9,15,7,20,3] Return the following binary
* tree:
*
* 3 / \ 9... | true |
5cef08a8bb5324fd043d610d2326534f0b727ba9 | Java | phutlq/ForgotPassword | /app/src/main/java/com/example/pc/forgotpassworddemo/model/Users.java | UTF-8 | 340 | 1.789063 | 2 | [] | no_license | package com.example.pc.forgotpassworddemo.model;
import com.google.gson.annotations.SerializedName;
/**
* Created by PC on 24/01/2017.
*/
public class Users {
@SerializedName("email")
String mEmail;
@SerializedName("password")
String mPassWord;
@SerializedName("password_confirmation")
Str... | true |
b3acdb172e3dff80bebaa1d2d5ad4466dfbab878 | Java | vaibnak/testapp | /app/src/main/java/com/example/user/testapp/MainActivity.java | UTF-8 | 11,840 | 1.9375 | 2 | [] | no_license | package com.example.user.testapp;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.support.annotation.NonNull;
import android.support.design.widget.Snackbar;
import android.support.design.widget.TextInputEditText;
import and... | true |
888f7b1d80b78bf60fc99eeca495eea032034755 | Java | riazaka/GestionUFR | /src/presentation/Controleur/ControleurGestionUser.java | ISO-8859-2 | 3,559 | 2.59375 | 3 | [] | no_license | package presentation.Controleur;
import java.util.ArrayList;
import Mtier.GestionnaireUser;
import Mtier.User;
import presentation.Beans.userBean;
import presentation.Models.ModelUser;
import presentation.Vue.VueAddUser;
import presentation.Vue.VueGestionUser;
import presentation.Vue.VueModifierUser;
import Persistan... | true |
26a777ddeabc17b7f51868c4826e9ead078f4e77 | Java | mahima1198/Projects | /Funding Stack/WEB-INF/classes/controller/CrowdChangePasswordServlet.java | UTF-8 | 2,599 | 2.390625 | 2 | [] | no_license | package controller;
import java.io.IOException;
import java.sql.SQLException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import dao.Dao;
import model.... | true |
feb1012f1359c865839879c608dd3dd078fa62c3 | Java | EugeneVlasov2018/rest_feign | /src/main/java/ua/vlasov_eugene/rest_feign/config/SwaggerConfig.java | UTF-8 | 1,268 | 2.25 | 2 | [] | no_license | package ua.vlasov_eugene.rest_feign.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHand... | true |
a8d574c8ac4e49508d94604a450b646d642e6a2f | Java | hassanarshad115/paper5 | /JavaApplication8/src/Class2.java | UTF-8 | 539 | 3.28125 | 3 | [] | no_license | import java.util.Scanner;
public class Class2 {
public static void main(String[]args)
{
Scanner sc=new Scanner(System.in);
int a;
int b;
int max;
int min;
System.out.println("enter the value of a");
a=sc.nextInt();
System.out.println("enter the value of b... | true |
42453f41e5d969c706480e834796fe6a37a839c1 | Java | saturn1mc/mosart | /MosArt-Active/src/dependent/gui/MosArtPreviewFrame.java | UTF-8 | 2,585 | 2.5 | 2 | [] | no_license | package dependent.gui;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GraphicsConfiguration;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Image;
import java.awt.image.BufferStrategy;
import java.... | true |
7338ac9672e4b06005b914f6b937892e43fa23c2 | Java | zlyITGod/pattern-learning | /structure/src/main/java/org/structure/adapter/target_adapter/Target.java | UTF-8 | 168 | 2.171875 | 2 | [] | no_license | package org.structure.adapter.target_adapter;
//目标接口,或称为标准接口 想象成大陆插头
public interface Target {
public void request();
}
| true |
7f40e956a7d921f6c7c94de835991517ea660587 | Java | sumyiaswarna721/SchoolManagementSystem | /SchoolManagementSystem/src/student/ModifyStudent.java | UTF-8 | 27,292 | 2.234375 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package student;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
impo... | true |
7e817d1ad6f70098d7de66c9b29ad4a6a506d4ae | Java | khushbubandewar/khushbu-java | /java learning/src/com/test/multithreading/PriorityEx.java | UTF-8 | 197 | 2.421875 | 2 | [] | no_license | package com.test.multithreading;
public class PriorityEx extends Thread {
public void run() {
System.out.println("PriortyExa");
for(int i=1;i<=10;i++) {
System.out.println(""+i);
}
}
}
| true |
f1f03c3f9e9238e3670d85c84ce8945d7fd151c0 | Java | sri595/onforcedeploymenttool | /src/main/java/com/processflow/ProcessStatus.java | UTF-8 | 797 | 2.671875 | 3 | [] | no_license | package com.processflow;
public class ProcessStatus {
String activity;
String activityStatus;
String activityDetails;
public ProcessStatus(String activity, String activityStatus, String activityDetails){
this.activity = activity;
this.activityStatus = activityStatus;
this.activityDetails = activityDetails... | true |
5cde271b0d4654974ef6b206fc8a9460fea7dc1d | Java | psanrosa13/java_basico | /src/referencia/Usuario.java | UTF-8 | 406 | 2.859375 | 3 | [] | no_license | package referencia;
public class Usuario {
private int codigo;
private String nome;
public Usuario(int codigo, String nome) {
this.codigo = codigo;
this.nome = nome;
}
public int getCodigo() {
return codigo;
}
public String getNome() {
return nome;
}
... | true |
1b4ea600eef98922351684f6d25f812a551eb933 | Java | IKATS/ikats-datamodel | /TemporalDataManagerWebApp/src/test/java/fr/cs/ikats/temporaldata/business/TemporalDataManagerTest.java | UTF-8 | 2,248 | 2.15625 | 2 | [
"Apache-2.0",
"LGPL-2.0-or-later",
"EPL-1.0",
"LGPL-2.1-only",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"CDDL-1.1",
"MPL-1.1",
"GPL-2.0-only",
"CPL-1.0",
"PostgreSQL",
"CDDL-1.0",
"MIT"
] | permissive | /**
* Copyright 2018-2019 CS Systèmes d'Information
*
* 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 applicabl... | true |
c96dc63ee3119079f0d68febf3234260e5a2e618 | Java | smartcommunitylab/smartcampus.service.roveretoexplorer | /src/test/java/eu/trentorise/smartcampus/service/roveretoexplorer/TestDataFlow.java | UTF-8 | 1,066 | 1.945313 | 2 | [] | no_license | package eu.trentorise.smartcampus.service.roveretoexplorer;
import it.sayservice.platform.servicebus.test.DataFlowTestHelper;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import junit.framework.TestCase;
import com.google.protobuf.Message;
import eu.trentorise.smartcampus.serv... | true |
beba6a7c4ad3b521802d3169505d398ac8657b4e | Java | shekinaraj/YarnCom | /YarncomsProject/src/com/yarncoms/model/YarnBase.java | UTF-8 | 4,410 | 1.929688 | 2 | [] | no_license | package com.yarncoms.model;
import javax.persistence.Column;
public class YarnBase {
@Column(name = "enquiryId")
private String enquiryId;
@Column(name = "enquiryFor")
private String enquiryFor;
@Column(name = "enqDate")
private String enqDate;
@Column(name = "enqStatus")
private String enqStatus;
@Col... | true |
93a6f3f3ce9a7af3e7d239c031a7dea58a049be9 | Java | GavinMulvany/RecursionApp | /TwoPower.java | UTF-8 | 495 | 2.90625 | 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 recursionapp;
/**
*
* @author Gavin Mulvany
*/
public class TwoPower {
private int input;
public TwoPower... | true |
2eb21f8f0c8d6e69ffd8763b1dff92fd53b78bec | Java | ShrutiTiwari/classical_music | /music-core/src/main/java/com/aqua/music/model/raag/song/SongBhopali.java | UTF-8 | 2,043 | 2.484375 | 2 | [] | no_license | package com.aqua.music.model.raag.song;
import static com.aqua.music.model.core.ClassicalNote.D;
import static com.aqua.music.model.core.ClassicalNote.D1;
import static com.aqua.music.model.core.ClassicalNote.G;
import static com.aqua.music.model.core.ClassicalNote.G3;
import static com.aqua.music.model.core.Cla... | true |
f466e09692db2e4da2d4695b92540f70478336ea | Java | CodingDreamteam/RestauranTO | /RestauranTO/src/main/java/RestauranTO/controller/Selector/CRestaurantSelectorController.java | UTF-8 | 4,788 | 1.929688 | 2 | [] | no_license | package RestauranTO.controller.Selector;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Execution;
import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.Session;
import org.zkoss.zk.ui.Sessions;
import org.zkoss.zk.ui.event.... | true |
e691f3fe68f68e8bfbdd84c73b4d3135e85ead8b | Java | jhasanov2019/ibar-etaskify | /src/test/java/az/ibar/etaskify/etaskify/CustomerServiceTest.java | UTF-8 | 1,692 | 2.078125 | 2 | [] | no_license | package az.ibar.etaskify.etaskify;
import az.ibar.etaskify.etaskify.dto.BaseResponse;
import az.ibar.etaskify.etaskify.dto.CustomerDTO;
import az.ibar.etaskify.etaskify.dto.UserDTO;
import az.ibar.etaskify.etaskify.enums.StatusCode;
import az.ibar.etaskify.etaskify.enums.UserRole;
import az.ibar.etaskify.etaskify.ser... | true |
4368abe5854a318641553e7051e7d673eb8047b3 | Java | binazon/angular | /docs/assets/src/main/java/com/orange/srs/refreport/model/parameter/GroupEntityAttributeParameter.java | UTF-8 | 1,809 | 2.078125 | 2 | [] | no_license | package com.orange.srs.refreport.model.parameter;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "groupEntityAttribute")
public class GroupEntityAttributeParameter implements Serializable, Comparable<GroupEnt... | true |
692005632fed67c0ef60ce7e54cb8d4b6f9af633 | Java | rickycaron/2020.05.DA_CourseChoosingSystem | /src/main/java/com/a20da10/dao/spring/StudentDao.java | UTF-8 | 792 | 2.296875 | 2 | [] | no_license | package com.a20da10.dao.spring;
import com.a20da10.Entity.spring.CourseEntity;
import com.a20da10.Entity.spring.StudentEntity;
import java.util.List;
public interface StudentDao {
//1.Create
public void addStudent(StudentEntity studentEntity);
//2.Read
public StudentEntity getStudentEntity(Integer st... | true |
717a906d031d7fe79c45cdc4330a52409d1a9e33 | Java | anegian/java_udemy_challenges | /src/Sum3and5Challenge/Sum3And5.java | UTF-8 | 617 | 3.90625 | 4 | [] | no_license | package Sum3and5Challenge;
public class Sum3And5 {
public static void main(String[] args) {
int count=0;
int sum=0;
for (int i=1; i<=1000; i++){
if (getSum(i)) {
count++;
sum +=i;
System.out.println("Number " + i + " meets the co... | true |
b08980fa83c968d1ad35b2d6a765dcb402c22f76 | Java | Firsteva/java01 | /src/java01/Test39/Test39.java | UTF-8 | 1,836 | 3.921875 | 4 | [] | no_license | /* 다형성(polymorphism) : overloading(오버로딩)
- 파라미터 갯수나 파라미터의 타입이 다르더라도 결국 동일한 기능을 수행할 경우
메서드의 이름을 같게 하는 것 => 프로그래밍의 일관성을 유지
- 규칙 :
1) 메서드 이름은 같아야 한다.
2) 파라미터의 갯수가 다르거나, 데이터형이 달라야한다.
3) 리턴타입이 다른것은 의미가 없다. => 호출할 때 메서드를 결정해야 하는데,
리턴타입으로는 어떤 메서드를 호출할 지 결정할 수 없기 때문이다.
*/
package java01.Test39;
public... | true |
481ad42a5da93eccbef8193f483d475aa7d636e1 | Java | CS2103-AY1819S1-F10-4/main | /src/test/java/seedu/restaurant/logic/commands/menu/SelectItemCommandTest.java | UTF-8 | 5,024 | 2.296875 | 2 | [
"MIT"
] | permissive | package seedu.restaurant.logic.commands.menu;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static seedu.restaurant.logic.commands.CommandTestUtil.assertCommandFailure;
import static seedu.restaurant.logic.commands.CommandTest... | true |
5f6ce514d5d0ca577221adc1f18a9ef7f192edc3 | Java | deeputom/Test | /app/src/mock/java/com/sams/test/data/productinfojson/remote/FakeRemoteDataSource.java | UTF-8 | 1,484 | 2.3125 | 2 | [] | no_license | package com.sams.test.data.productinfojson.remote;
import android.support.annotation.NonNull;
import android.support.annotation.VisibleForTesting;
import com.google.common.collect.Lists;
import com.sams.test.data.productinfojson.ProductInfo;
import com.sams.test.data.productinfojson.IProductInfoSource;
import java.... | true |
131ebfac585b16578b6dd64c8b7966b9177b0fe6 | Java | homoantropos/com.blogspot.homoantroposs | /src/com/blogspot/homoantroposs/MainForLessons.java | UTF-8 | 1,016 | 2.859375 | 3 | [] | no_license | package com.blogspot.homoantroposs;
import com.blogspot.homoantroposs.LessonsDifferent.A;
import com.blogspot.homoantroposs.LessonsDifferent.B;
import com.blogspot.homoantroposs.Utilites.DatesPeriodsCounter;
import java.time.*;
import java.time.temporal.ChronoUnit;
import java.util.Calendar;
import java.util.Date;
p... | true |
f8c33cc0ebaf8d7a7b832d37100b361edf1457c1 | Java | openGDA/gda-core | /uk.ac.gda.client.tomo/src/uk/ac/gda/client/tomo/composites/TomoAlignmentControlComposite.java | UTF-8 | 67,243 | 1.578125 | 2 | [] | no_license | /*-
* Copyright © 2011 Diamond Light Source Ltd.
*
* This file is part of GDA.
*
* GDA is free software: you can redistribute it and/or modify it under the
* terms of the GNU General Public License version 3 as published by the Free
* Software Foundation.
*
* GDA is distributed in the hope that it will be usef... | true |
db4d85d8f503b9f0dbd298e4305bf0f8d471f133 | Java | filhefor/Chatt | /Message.java | UTF-8 | 2,593 | 3.015625 | 3 | [] | no_license | package gu;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import javax.swing.ImageIcon;
/**
* Message class which cointain all information regarding messages
* @author Lucas, David, Elias, Alexander, Filip, John
*
*/
public class Message implements Seri... | true |
25e00145549f2f97ee57ce8e2a888ff8e502d2bc | Java | WildWind03/Noveo-ProducerConsumer | /src/main/java/com/noveogroup/data/Banana.java | UTF-8 | 145 | 2.0625 | 2 | [] | no_license | package com.noveogroup.data;
public class Banana implements Data {
@Override
public String getName() {
return "banana";
}
}
| true |
9370e840f33f35e793b81843bb94f6dd4427d83a | Java | jayangyy/SpringIoc | /domain/com/cssdriver/domains/Component1.java | UTF-8 | 258 | 1.75 | 2 | [] | no_license | package com.cssdriver.domains;
import org.springframework.stereotype.Component;
@Component("Compoent1")
public class Component1 implements IComponent{
@Override
public void fun() {
// TODO Auto-generated method stub
System.out.println("com");
}
}
| true |
69e1968ee8f59870ae8b927fade3b91329225516 | Java | benedict333/Car-Sale-System | /CarSaleSystem/src/com/controllers/SellCarListServlet.java | UTF-8 | 2,500 | 2.421875 | 2 | [] | no_license | package com.controllers;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet... | true |
0a688e51f20a826d858362d9535baa42be8101fe | Java | haziquehaikal/smartfire | /mobileapp/app/src/main/java/com/picotech/smartfire/activity/test.java | UTF-8 | 1,916 | 2.328125 | 2 | [] | no_license | package com.picotech.smartfire.activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.picotech.smartfire.R;
public class test ex... | true |
60fcd61a136d621f689e035de03f527f035da348 | Java | NovaFox161/auxilium | /src/me/xaanit/auxilium/listeners/ReactionListener.java | UTF-8 | 2,032 | 2.265625 | 2 | [] | no_license | package me.xaanit.auxilium.listeners;
import me.xaanit.auxilium.GlobalConstants;
import me.xaanit.auxilium.commands.BotInfo;
import me.xaanit.auxilium.util.Util;
import sx.blah.discord.api.events.EventSubscriber;
import sx.blah.discord.handle.impl.events.guild.channel.message.reaction.ReactionAddEvent;
import s... | true |
f2e237eec45e89c1af20f1fa26f8731361f59684 | Java | RoyalSkye/LeetCode | /101-150/101. Symmetric Tree.java | UTF-8 | 2,165 | 3.84375 | 4 | [] | no_license | /**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode(int x) { val = x; }
* }
*/
// 1.my solution - 191 / 193 test cases passed.
// failed test case: [1,2,3,3,null,2,null]
class Solution {
// Inorder Traversal: symmetric... | true |
cc4a85c7f830fa1de3235ad487cec0c4c4575aab | Java | tarunakalr/FST-M1 | /Selenium/Activities/activity7_3.java | UTF-8 | 1,547 | 2.28125 | 2 | [] | no_license | package activities;
import org.apache.poi.util.SystemOutLogger;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.... | true |
11df8593232bc989efeb6c200325f698593285a3 | Java | smkdeena/Pattern_Printing_Java | /Star_Pattern/src/MirroredRightTriangleStarPattern.java | UTF-8 | 321 | 3.28125 | 3 | [] | no_license |
public class MirroredRightTriangleStarPattern {
public static void main(String[] args) {
int n=5;
for(int row=1;row<=n;row++) {
for(int space=n;space>row;space--) {
System.out.print(" ");
}
for(int star=1;star<=row;star++) {
System.out.print("*");
}
System.out.println("");
}
}
}... | true |
233cdf9540d9a49b09905974ccd5cb8b1c15a7bd | Java | whyiamafool/Pure-Pursuit-Experimental | /TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Hardware/Motor.java | UTF-8 | 1,652 | 2.796875 | 3 | [
"BSD-3-Clause"
] | permissive | package org.firstinspires.ftc.teamcode.Hardware;
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
public class Motor { //DCMotor Wrapper Class with added functionality and usb communication spam avoidance and speedometer
private DcMotor motor;
private dou... | true |
5fdbb113a761244e5f4962a6bde6af1afc521170 | Java | HGitMaster/geotools-osgi | /modules/unsupported/postgis-versioned/src/main/java/org/geotools/data/postgis/WrappingPostgisFeatureStore.java | UTF-8 | 3,732 | 1.835938 | 2 | [] | no_license | /*
* GeoTools - The Open Source Java GIS Toolkit
* http://geotools.org
*
* (C) 2002-2008, Open Source Geospatial Foundation (OSGeo)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by... | true |
53a7bcc3ddbb04a3452e4ab06cfe721da6eeb27c | Java | hetykai/DomainReg | /biz/web/src/main/java/com/jinmibao/web/common/util/FileUploadAction.java | UTF-8 | 1,595 | 2.296875 | 2 | [] | no_license | package com.jinmibao.web.common.util;
import java.io.File;
import org.apache.commons.io.FileUtils;
import org.apache.struts2.ServletActionContext;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
/**
* 文件上传公用ACTION TODO-待完善
*
* @author chongan.wangca 2012-3-25 下午3:44:0... | true |
c4166f092526a74fb7ef9b2e358b670e68505bcf | Java | Muhaiminur/ALGORITHM | /OLD/SUMON CSE221/Lab 05 (Submitted)/src/cse221lab05/Node.java | UTF-8 | 360 | 2.8125 | 3 | [] | no_license | package cse221lab05;
public class Node {
int value;
public Node next;
boolean isVisited=false;
public Node(){
}
public Node(int value){
this.value=value;
isVisited=false;
}
public int getValue(){
return value;
}
public void se... | true |
026ecec9a8635553aa506950666112e5941bb0be | Java | SpencerSharp/Competitive-Programming | /CodeForces/Practice Problems/CF4C.java | UTF-8 | 1,298 | 3.0625 | 3 | [] | no_license | import java.io.*;
import java.util.*;
import java.math.*;
import static java.lang.System.out;
public class CF4C
{
public static void main(String[] args) throws IOException
{
//BufferedReader f = new BufferedReader(new FileReader("/Users/spencersharp/Desktop/input.txt"));
BufferedReader... | true |
8890f0c45341d66b4d4c06f9dc73558cba59f92f | Java | wavecos/android-basic | /HelloWorld/app/src/main/java/com/xiobit/helloworld/MainActivity.java | UTF-8 | 304 | 1.648438 | 2 | [
"Apache-2.0"
] | permissive | package com.xiobit.helloworld;
import android.app.Activity;
import android.os.Bundle;
/**
* Created by onix on 6/20/15.
*/
public class MainActivity extends Activity {
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.main_activity);
}
}
| true |
b943c078bd05dc96fbef8d0ac33a2aaf3ea2cfae | Java | AndreiVaida/Chatbot_Server | /src/main/java/domain/information/FacultyInformation.java | UTF-8 | 2,329 | 2.3125 | 2 | [] | no_license | package domain.information;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.CollectionTable;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import jav... | true |
e9a306f31f4727ba7ba7225cc80c5b2aef2b4551 | Java | MaleicAcid/zxhtRecord | /src/main/java/com/maleic/demo/service/ExcelService.java | UTF-8 | 598 | 2.578125 | 3 | [] | no_license | package com.maleic.demo.service;
import com.maleic.demo.utils.excel.ExcelFormat;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
@Service
public class ExcelService {
private List<ExcelFormat> excels = new ArrayList<ExcelFormat>();
private List<String> resul... | true |
12a55de45f0bfabc930c74207b1d85f479ea5f21 | Java | kantale/nobletools | /src/main/java/edu/pitt/dbmi/nlp/noble/ontology/IOntologyError.java | UTF-8 | 548 | 2.46875 | 2 | [
"BSD-3-Clause"
] | permissive | package edu.pitt.dbmi.nlp.noble.ontology;
/**
* exception caused for whatever reason, unhandled
* wraps other exceptions.
*
* @author tseytlin
*/
public class IOntologyError extends RuntimeException {
/**
* Instantiates a new i ontology error.
*
* @param reason the reason
*/
public IOntologyError(Stri... | true |