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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
c19905337942aa7448f5e467a84df616cc916e08 | Java | alemak/testframework | /src/main/java/com/netaporter/test/utils/pages/driver/WebDriverFactory.java | UTF-8 | 12,293 | 1.976563 | 2 | [] | no_license | package com.netaporter.test.utils.pages.driver;
import org.apache.commons.lang.StringUtils;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.firefox.FirefoxDriver;
impo... | true |
eb28be48b413046f1d3b90e142ed5fc317313965 | Java | si1991Van/TrackCarVCC | /app/src/main/java/com/vcc/trackcar/model/managerCarApproveRejectBookCar/ManagerCarApproveRejectBookCarRespon.java | UTF-8 | 1,070 | 1.789063 | 2 | [] | no_license | package com.vcc.trackcar.model.managerCarApproveRejectBookCar;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.vcc.trackcar.model.auth.ResultInfo;
public class ManagerCarApproveRejectBookCarRespon {
@SerializedName("resultInfo")
@Expose
p... | true |
255cb7d49f55ee973f46fd06e0260425d5aa7e93 | Java | je1lylee/Guess | /app/src/main/java/com/example/guess/shake_hands.java | UTF-8 | 2,624 | 2.40625 | 2 | [] | no_license | package com.example.guess;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import jav... | true |
b6173fdc121ab88335b4f67194db1cccfaa799b2 | Java | aodhen/axis2swing | /axis2swing2/src/axis2swing/ui/content/AvailablePhasesPanel.java | UTF-8 | 2,660 | 2.515625 | 3 | [] | no_license | package axis2swing.ui.content;
import java.util.List;
import javax.swing.BoxLayout;
import javax.swing.JLabel;
import org.apache.axis2.deployment.DeploymentException;
import org.apache.axis2.deployment.util.PhasesInfo;
import org.apache.axis2.engine.Phase;
import axis2swing.ui.Axis2SwingUIController;
public class ... | true |
4c5ebe81deb2b713965bee5180f854402a538942 | Java | abhisheksinghrgit/library-spring-boot | /src/main/java/com/needle/library/models/BookCollection.java | UTF-8 | 252 | 1.609375 | 2 | [] | no_license | package com.needle.library.models;
import lombok.*;
import javax.persistence.Entity;
import javax.persistence.Table;
@Entity
@Table(name = "book_collection")
@Getter
@Setter
@Builder
@NoArgsConstructor
public class BookCollection extends Book {
}
| true |
e99619a43229d8c09f4253d4ccf98a161210d776 | Java | leyahpoonkathir/Adactin_MyProject | /src/main/java/com/adat/pom/Page1.java | UTF-8 | 1,356 | 2.109375 | 2 | [] | no_license | package com.adat.pom;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class Page1 {
public static WebDriver driver;
@FindBy(id="location")
private WebElement location;
@FindBy(id="hotels"... | true |
06b9df8c3b7c1ab457fbaecf118c86ffde65af63 | Java | sunnyshah2894/LeetCodeJava | /src/com/medium/SplitLinkedListInParts.java | UTF-8 | 2,818 | 3.625 | 4 | [] | no_license | /**
*
*/
package com.medium;
import com.medium.ListNode;
/**
*
Author:
Sunny Shah
sunnyshah452@gmail.com
https://github.com/sunnyshah2894
https://leetcode.com/sunnyshah28
https://www.linkedin.com/in/sunnyshah28
*
*
-------------------------------------------------------
https://leetcode.com/problems/sp... | true |
65f9069d2aca82fbc747fe0e79c7c8079f4f82be | Java | georgematos/firewarning_jwt | /src/main/java/com/fortalezasec/firewarning/config/TestConfig.java | UTF-8 | 579 | 1.953125 | 2 | [] | no_license | package com.fortalezasec.firewarning.config;
import com.fortalezasec.firewarning.services.DBService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotat... | true |
d45a70600cebb51ce0b4290c07deaccdf4e9266f | Java | BestJex/niuh-designpatterns | /src/main/java/com/niuh/designpattern/singleton/reflect/Reflectattack.java | UTF-8 | 802 | 3.40625 | 3 | [] | no_license | package com.niuh.designpattern.singleton.reflect;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
/**
* 反射攻击实例
*/
public class Reflectattack {
public static void main(String[] args) throws IllegalAccessException, InvocationTargetException, InstantiationException, NoSu... | true |
24ef81ebc1e61d866c6a9b6dfde32a832c9aca74 | Java | tramanh0105/SWT-OnlineShop | /src/Fachlogik/ArtikelZustand.java | UTF-8 | 684 | 3.0625 | 3 | [] | no_license | package Fachlogik;
public enum ArtikelZustand {
AUSVERKAUFT{
@Override
public ArtikelZustand changeState() {
return AVAILABLE;
}
},
AVAILABLE{
@Override
public ArtikelZustand changeState() {
return AUSVERKAUFT;
}
}
;
publi... | true |
edb3f896bf84151a56e2869ef3ff7e44d39e6620 | Java | vasanthnarayanan/Intelligentfinancialaccounting | /Intelligentfinancialaccounting/src/test/java/com/curious365/ifa/dao/DummyTest.java | UTF-8 | 2,074 | 2.921875 | 3 | [] | no_license | package com.curious365.ifa.dao;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.curious365.ifa.dto.Purchase;
import com.curious365.ifa.util.NumberToWord;
public class DummyTest {
public static void main(String[] args) {
/*Ma... | true |
144ea0a80abf2cd38278ed914216f5285770981d | Java | terrason/interior | /src/main/java/org/terramagnet/interior/module/user/Employee.java | UTF-8 | 666 | 2.203125 | 2 | [
"MIT"
] | permissive | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.terramagnet.interior.module.user;
/**
* 员工.
* @author lee
*/
public class Employee {
private Long id;
private String name;
private Office office;
public Long getId() {
return id;
... | true |
f083c82b1d7877ad3878feeeceda8354dbb848eb | Java | hustchai/dao-helper | /dao-biz/src/main/java/com/dianping/core/parse/DBParser.java | UTF-8 | 236 | 1.804688 | 2 | [] | no_license | package com.dianping.core.parse;
import com.dianping.core.schema.DB.Table;
import org.springframework.stereotype.Component;
/**
* Created by jychai on 16/6/29.
*/
public interface DBParser {
public Table parse(String schema);
} | true |
653ff6b0ef6b247b8cf0cffa41bc0579cf427d58 | Java | tectronics/superman-container-asep | /asep-1.0.0-20130105-code/src/com/sinosoft/perfect/system/_authorization/service/IRoleResourceAuthorizeService.java | UTF-8 | 1,006 | 1.851563 | 2 | [] | no_license | package com.sinosoft.perfect.system._authorization.service;
import java.sql.SQLException;
import java.util.List;
import com.sinosoft.perfect.system._authorization.vo.RoleResourceRelationAuthorize;
public interface IRoleResourceAuthorizeService {
public void insertByRoleResourceRelationAuthorize
(RoleRe... | true |
1f7b770196d99044023b53ee4b83a9deba985c30 | Java | kandjiabdou/ProjetTutoUMLJava | /src/carte/Carte.java | UTF-8 | 4,399 | 2.6875 | 3 | [] | no_license | package carte;
import objet.*;
import personnage.*;
public class Carte {
// Attributs
public static int LONGUEUR = 22;
public static int LARGEUR = 20;
public Objet[][] casePlateau;
public PersonnageJoueur joueur1=new PersonnageJoueur(this,"1");
public PersonnageJoueur joueur2=new PersonnageJ... | true |
82ec3e79b963d555071c94586bee56830a348765 | Java | Shreyashpatel2701/WindalbarcodeApp | /app/src/main/java/com/example/admin/barcodescanneractivity/sp2.java | UTF-8 | 966 | 2.125 | 2 | [] | no_license | package com.example.admin.barcodescanneractivity;
import androidx.appcompat.app.AppCompatActivity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.widget.Toast;
public class sp2 extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
... | true |
e7840c73e83169113d6ac1659c5e7d6db1e12421 | Java | Zacharyye/JAVA-01 | /Week_11/redis-demo/src/main/java/com/zachary/redisdemo/controller/TestController.java | UTF-8 | 1,064 | 2.21875 | 2 | [] | no_license | package com.zachary.redisdemo.controller;
import com.zachary.redisdemo.aspect.RedisCount;
import com.zachary.redisdemo.lock.RedisDistributedLock;
import lombok.extern.slf4j.Slf4j;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.PostMapping;
import org.springfram... | true |
7fb3a6aa79f3a22181e030af075d4ab929dfb3e0 | Java | todayGitHub/class23 | /TestAPI/src/IO/TestObject.java | WINDOWS-1252 | 455 | 2.734375 | 3 | [] | no_license | package IO;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
public class TestObject {
public static void main(String[] args) throws IOException {
FileOutputStream fos = new FileOutputStream("C:/daxiang.txt");
ObjectOutputStream... | true |
3379329631727c3bc798c4c5e7d7a17b2df46816 | Java | MichaelSabbah/ProgrammingPlayground | /src/main/java/playground/plugins/AnswerTheQuestionPlugin.java | UTF-8 | 3,565 | 2.3125 | 2 | [] | no_license | package playground.plugins;
import java.io.IOException;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMap... | true |
854e20688ec0485cc496a15e0f793df327ead92c | Java | 17688971686/test-dome | /szcshl-web/src/main/java/cs/repository/repositoryImpl/project/SignRepo.java | UTF-8 | 4,169 | 1.898438 | 2 | [] | no_license | package cs.repository.repositoryImpl.project;
import cs.common.ResultMsg;
import cs.domain.project.Sign;
import cs.domain.project.SignDispaWork;
import cs.domain.sys.User;
import cs.model.project.SignDto;
import cs.repository.IRepository;
import java.util.Date;
import java.util.List;
public interface Sig... | true |
c89bed551c1d518a2efcb8c977475fa81e65c5ea | Java | hoangdang1449/IFramework | /src/main/java/com/sss/testng/IFrameworkCustomReportHTML.java | UTF-8 | 4,700 | 2.0625 | 2 | [] | no_license | package com.sss.testng;
import org.apache.velocity.Template;
import org.apache.velocity.VelocityContext;
import org.apache.velocity.app.Velocity;
import org.apache.velocity.app.VelocityEngine;
import org.apache.velocity.exception.ParseErrorException;
import org.apache.velocity.exception.ResourceNotFoundException;
impo... | true |
e522739446c103a60b3bbf11cf1080e33a482817 | Java | cliu0507/CodeForFun | /Java/Path Sum 2.java | UTF-8 | 4,110 | 3.828125 | 4 | [] | no_license | /*
Question:
113. Path Sum II
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.
For example:
Given the below binary tree and sum = 22,
5
/ \
4 8
/ / \
11 13 4
/ \ / \
7 2 5 ... | true |
c0976bc96fd9df39b949a88ae50e975ae0703a30 | Java | hungnd2126/Capstone | /Android/MVVMProject/app/src/main/java/vn/baonq/mvvmproject/ui/map/MapModule.java | UTF-8 | 400 | 1.875 | 2 | [] | no_license | package vn.baonq.mvvmproject.ui.map;
import dagger.Module;
import dagger.Provides;
import vn.baonq.mvvmproject.data.DataManager;
import vn.baonq.mvvmproject.utils.rx.SchedulerProvider;
@Module
public class MapModule {
@Provides
MapViewModel mapViewModel(DataManager dataManager, SchedulerProvider schedulerProv... | true |
df8ea1b429115de363055e2bda06808fef20e70a | Java | vivekkurri98/SimpliLearn-Training | /java_demos/inheritance&composition_demo/src/eg2/Main.java | UTF-8 | 1,368 | 3.46875 | 3 | [] | no_license | package eg2;
public class Main {
public static void main(String[] args) {
Team t1 = new Team(2000, "India", "INDIA");
Player p1 = new Player(100, "Vivek", 1, t1);
//p1.printPlayer();
printAnyObject(p1);
Player p2 = new Player(101, "Sachin", 2, t1);
//p2.printPlayer();
printAnyObject(p2);
Perso... | true |
c1726b9191a5f313af187cb941c7c12b7d525c3e | Java | kkevlar/Quinton | /src/com/flipturnapps/quinton/command/QorkHelpCommand.java | UTF-8 | 561 | 2.1875 | 2 | [] | no_license | package com.flipturnapps.quinton.command;
import java.util.ArrayList;
import com.flipturnapps.kevinLibrary.command.CommandOutput;
import com.flipturnapps.kevinLibrary.command.HelpCommand;
public class QorkHelpCommand extends HelpCommand {
public QorkHelpCommand(CommandOutput output)
{
super(output);... | true |
8a44de30bc8b1c4cd9710f2e5f5e6a71674d2912 | Java | Akshat2002s/Projecteuler12 | /Projecteuler12/src/Triangle.java | UTF-8 | 693 | 3.171875 | 3 | [] | no_license |
public class Triangle {
static boolean CalTriangle(int a) {
int tempsum=0;
for(int i=1; i<a; i++) {
tempsum=tempsum+i;
if(tempsum==a) {
return true;
}
}
return false;
}
static int Checkdiv(int b) {
int count=0;
for(int z=1; z<b; z++) {
if(b%z==0) {
count++;
}
}
return count;
... | true |
8e1d1780bd161767679aa0712d5dd2f6e23405d0 | Java | anhnguyen4/mobileappproject | /app/src/main/java/com/example/sipln/mobile_dict_app/Models/WordHelper.java | UTF-8 | 3,016 | 2.09375 | 2 | [] | no_license | package com.example.sipln.mobile_dict_app.Models;
import android.app.IntentService;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.support.annotation.Nullable;
import android.util.Log;
import com.example.sipln.mobile... | true |
a2ee29818955d04b795a07216bb5c56fe7e8e7a2 | Java | sterry1/manage_allocations | /docroot/WEB-INF/src/edu/utexas/tacc/portlets/PersonGateway.java | UTF-8 | 1,540 | 2.09375 | 2 | [] | no_license | package edu.utexas.tacc.portlets;
import edu.utexas.tacc.portlets.beans.SystemBean;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Map;
/**
* Created with IntelliJ IDEA.
* User: steve
* Date: 7/9/12
* Time: 3:27 PM
* To change this template use File | Settings | File Templates.
*/
pu... | true |
3f4e7bc86a8cb9c2c65fbf836bbb0ddcf45c3228 | Java | liuhaosource/OppoFramework | /A1_7_1_1/src/main/java/android/icu/text/DictionaryMatcher.java | UTF-8 | 4,965 | 2.109375 | 2 | [] | no_license | package android.icu.text;
import java.text.CharacterIterator;
/* JADX ERROR: NullPointerException in pass: ExtractFieldInit
java.lang.NullPointerException
at jadx.core.utils.BlockUtils.isAllBlocksEmpty(BlockUtils.java:546)
at jadx.core.dex.visitors.ExtractFieldInit.getConstructorsList(ExtractFieldInit.... | true |
3738d136fbe545fcb232f1d67897d3cd62b3c44a | Java | VanadeysHaven/CoolVote | /src/main/java/me/Cooltimmetje/CoolVote/Database/MysqlManager.java | UTF-8 | 4,079 | 2.796875 | 3 | [] | no_license | package me.Cooltimmetje.CoolVote.Database;
import com.zaxxer.hikari.HikariDataSource;
import me.Cooltimmetje.CoolVote.Main;
import me.Cooltimmetje.CoolVote.Utilities.ChatUtils;
import org.bukkit.entity.Player;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQ... | true |
0c22b867449085ac553f3b5913cec3313e913d28 | Java | bluebluefrog/long-black-backend-backend | /src/main/java/com/knowonespace/longblack/service/impl/ArticleServiceImpl.java | UTF-8 | 1,795 | 2.296875 | 2 | [] | no_license | package com.knowonespace.longblack.service.impl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.knowonespace.longblack.exception.LongBlackExceptionEnum;
import com.knowonespace.longblack.exception.LongblackException;
import com.knowonespace.longblack.model.dao.ArticleMapper;... | true |
c7bb5b7a9a3fb7c63e3727dbc3ca4a7ce95bc1d8 | Java | enbugexpert/OOP2021_16 | /src/main/java/com/OOP2021_16/servlet/RenterServlet.java | UTF-8 | 981 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package com.OOP2021_16.servlet;
import com.OOP2021_16.dao.RenterDao;
import com.OOP2021_16.dao.impl.RenterDaoImpl;
import com.OOP2021_16.domain.Renter;
import com.alibaba.fastjson.JSON;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRespo... | true |
7b80ae19bd7c28d973513ca38a712a701e38e219 | Java | vmlens/vmlens | /trace-agent-bootstrap/src/main/java/com/vmlens/trace/agent/bootstrap/callback/AnarsoftWeakHashMap.java | UTF-8 | 7,517 | 2.96875 | 3 | [
"Apache-2.0"
] | permissive | package com.vmlens.trace.agent.bootstrap.callback;
import java.lang.ref.ReferenceQueue;
import java.lang.ref.WeakReference;
public class AnarsoftWeakHashMap<V> {
private static final int DEFAULT_INITIAL_CAPACITY = 16;
/**
* The maximum capacity, used if a higher value is implicitly specified
* by... | true |
0c47be519fc8fb330bad834d5dc44f4c013d454e | Java | iloveruning/Courses | /src/main/java/com/hfut/glxy/controller/StudentCourseController.java | UTF-8 | 4,026 | 2.28125 | 2 | [] | no_license | package com.hfut.glxy.controller;
import com.github.pagehelper.PageInfo;
import com.hfut.glxy.dto.Result;
import com.hfut.glxy.entity.StudentCourse;
import com.hfut.glxy.service.StudentCourseService;
import com.hfut.glxy.utils.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.spring... | true |
1a33183e5718496b0eceb3a2fbbd76b7d06313e7 | Java | Androidkunwenli/peini | /app/src/main/java/com/jsz/peini/utils/UiUtils.java | UTF-8 | 4,336 | 2.390625 | 2 | [] | no_license | package com.jsz.peini.utils;
import android.app.Activity;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.util.DisplayMetrics;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowMana... | true |
1a34cbaaa0cdf209278dc70d961a8076dddac88a | Java | alexmaxevt/Wishlist | /app/src/main/java/ru/evtukhov/android/wishlist/EnterPinActivity.java | UTF-8 | 6,189 | 1.828125 | 2 | [] | no_license | package ru.evtukhov.android.wishlist;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.Toast;
import androidx.annotation.StringRes;
import androidx.appcompat.app.Ap... | true |
9d623832e03eec87eb2a6f1dd67d5c0e5da82f8b | Java | xsjzn/kuang_mybatis | /MyBatis-study/mybatis-08/src/main/java/com/xsj/dao/BlogMapper.java | UTF-8 | 443 | 1.828125 | 2 | [] | no_license | package com.xsj.dao;
import com.xsj.pojo.Blog;
import java.util.List;
import java.util.Map;
/**
* @author xsj
* @create 2020-12-18 20:55
*/
public interface BlogMapper {
//插入博客
int addBlog(Blog blog);
//查询博客
List<Blog> queryBlogIF(Map<String,String> map);
List<Blog> queryBlogChoose(Map<Stri... | true |
658c630088c31163c883668cc62c1a5de6cad1ea | Java | hackthon-tech/codecheck-31364-hackthon-tech-v2 | /app/web/src/main/java/net/yboy/okosune/web/app/form/UserAlarmForm.java | UTF-8 | 468 | 1.953125 | 2 | [] | no_license | package net.yboy.okosune.web.app.form;
import java.io.Serializable;
public class UserAlarmForm implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
private UserRegisterSettingForm setting;
public UserRegisterSettingForm getSetting() {
return setting;
}
public void setSe... | true |
9358b65d38386de3029c27ce47e4ee4eb791ebfa | Java | kaysonyang/JS-Spring | /src/test/java/com/kayson/test/Test3.java | UTF-8 | 1,441 | 2.359375 | 2 | [] | no_license | package com.kayson.test;
import com.kayson.test.bean.ProductService;
import com.kayson.test.bean.UserDao;
import com.kayson.springframework.beans.PropertyValue;
import com.kayson.springframework.beans.PropertyValues;
import com.kayson.springframework.beans.factory.config.BeanDefinition;
import com.kayson.springframewo... | true |
7e4cb5d5f34a98dabf29736efed23302808be705 | Java | shubhamtrigunait/neuralnetwork | /src/main/java/com/kunal/neuralnetwork/domain/Pickup.java | UTF-8 | 1,921 | 1.875 | 2 | [] | no_license |
/*
* *
* * Copyright (c) 2019 Narvar Inc.
* * All rights reserved
*
*/
package com.kunal.neuralnetwork.domain;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotati... | true |
cd4abf11f58cabcc38c88dc0774f1e7ff497d43f | Java | jessideng/upgrade | /src/main/java/com/upgrade/qa/pages/OfferPage.java | UTF-8 | 1,675 | 2.015625 | 2 | [] | no_license | package com.upgrade.qa.pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class OfferPage extends BasePage{
@FindBy(css="[data... | true |
3b1763833e98865f9cbc068e5b29eed3be0b1ff4 | Java | hik4ru/PRO.NetBeans | /pro.03UsoObjetos/src/_03ejercicios/Strings/_04DesplazarIzquierda.java | UTF-8 | 456 | 3.34375 | 3 | [] | no_license | package _03ejercicios.Strings;
import java.util.*;
public class _04DesplazarIzquierda {
public static void main(String args[]){
Scanner tec = new Scanner(System.in);
System.out.println("Introduce una palabra");
String cosa = tec.next();
String palabro1 = cosa.s... | true |
7a9c102351f702ba200b012de72689abfde5e021 | Java | majohadev/Hospital-Kiosk | /src/main/java/edu/wpi/N/views/mapDisplay/MapDoctorSearchController.java | UTF-8 | 4,558 | 2.28125 | 2 | [] | no_license | package edu.wpi.N.views.mapDisplay;
import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXToggleButton;
import edu.wpi.N.AppClass;
import edu.wpi.N.database.DBException;
import edu.wpi.N.entities.DbNode;
import edu.wpi.N.entities.States.StateSingleton;
import edu.wpi.N.entities.employees.Doctor;
import... | true |
0a38570da0e20764b828013c374e6b0d2b7e536c | Java | KarloDipetrio/AndroidProjects | /ShopingList/app/src/main/java/com/karlodipetrio/shopinglist/gui/MainActivity.java | UTF-8 | 3,214 | 2.34375 | 2 | [] | no_license | package com.karlodipetrio.shopinglist.gui;
import android.app.ActionBar;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;
import android.view.Menu;
import android.view.MenuItem;
import com.karlodipetrio.shopingl... | true |
cc666544fe2d4086b6785038dbbca6a609f4babc | Java | Shrivallabh/panopticode | /unittest/src/org/panopticode/PanopticodeFileTest.java | UTF-8 | 9,118 | 2.28125 | 2 | [] | no_license | /*
* Copyright (c) 2006-2007 Julias R. Shaw
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge,... | true |
734a13a3f4a71a7c577bc4d54a69fefa1c8cecdd | Java | ff4j/ff4j | /ff4j-store-aws-dynamodb/src/main/java/org/ff4j/dynamodb/property/PropertyStoreDynamoDB.java | UTF-8 | 7,432 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package org.ff4j.dynamodb.property;
/*-
* #%L
* ff4j-store-aws-dynamodb
* %%
* Copyright (C) 2013 - 2023 FF4J
* %%
* 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://ww... | true |
2b2710fb2fb855b109d279ccb07e81175093561f | Java | shailendher/tracer | /src/main/java/com/shailendher/tracer/input/SimpleTraceReader.java | UTF-8 | 1,010 | 2.671875 | 3 | [
"MIT"
] | permissive | package com.shailendher.tracer.input;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStreamReader;
import java.util.stream.Stream;
import com.google.common.io.Closeables;
import com.shailendher.tracer.Settings;
public class SimpleTraceReader i... | true |
165ae5ce9b84942d731f6d796a6de4b471c6a1ca | Java | shaikrasool-java/CoreJava | /src/com/java/polymorphism/OverloadingB.java | UTF-8 | 336 | 3.15625 | 3 | [] | no_license | package com.java.polymorphism;
public class OverloadingB {
public void test(){
System.out.println("test()");
}
void test(int i){
System.out.println("test(int i)");
}
public static void main(String[] args) {
OverloadingB ob=new OverloadingB();
ob.test(10);
System.out.println();
ob.test(... | true |
3fd4ffd02abfbdbd64b3511f3bc037af230d3bba | Java | eurekaclinical/protempa | /protempa-dsb-relationaldb/src/main/java/org/protempa/backend/dsb/relationaldb/JDBCDateTimeTimestampDateValueFormat.java | UTF-8 | 2,003 | 2.53125 | 3 | [
"GPL-2.0-only",
"Apache-2.0",
"BSD-3-Clause",
"EPL-1.0",
"CDDL-1.0",
"Classpath-exception-2.0",
"CDDL-1.1",
"MPL-1.0",
"MPL-2.0"
] | permissive | /*
* #%L
* Protempa Commons Backend Provider
* %%
* Copyright (C) 2012 - 2013 Emory University
* %%
* 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/lic... | true |
ba84df4006c8edfde209a25a438f06571296bccd | Java | wiltonlazary/snappydata | /core/src/main/java/org/apache/spark/sql/internal/SnappySharedState.java | UTF-8 | 9,750 | 1.5625 | 2 | [
"OFL-1.1",
"MPL-1.1",
"BSD-3-Clause",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-mx4j",
"LGPL-2.0-or-later",
"OpenSSL",
"LGPL-2.1-only",
"FSFAP",
"LicenseRef-scancode-other-permissive",
"LGPL... | permissive | /*
* Copyright (c) 2017-2019 TIBCO Software Inc. All rights reserved.
*
* 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 requir... | true |
4f4cdd1f408606d049ef169014156da507b03920 | Java | Lianite/wurm-server-reference | /com/sun/codemodel/JTypeWildcard.java | UTF-8 | 1,442 | 1.929688 | 2 | [] | no_license | //
// Decompiled by Procyon v0.5.30
//
package com.sun.codemodel;
import java.util.List;
import java.util.Iterator;
final class JTypeWildcard extends JClass
{
private final JClass bound;
JTypeWildcard(final JClass bound) {
super(bound.owner());
this.bound = bound;
}
public... | true |
8b324688f5f91e44d45d1dfc3e56ae0c9d10bf27 | Java | Khushboo1028/VSM-Sarees | /app/src/main/java/com/replon/vsm/Utility/ContentsUser.java | UTF-8 | 2,628 | 2.328125 | 2 | [] | no_license | package com.replon.vsm.Utility;
import android.os.Parcel;
import android.os.Parcelable;
public class ContentsUser implements Parcelable {
String name;
String phone;
String company_name;
String city;
String gst_no;
String dealer;
String state;
public ContentsUser(String name, String ph... | true |
78f1f2604245046fc2fcca7b0b157ba3c01075b0 | Java | Adewagold/k8-cluster-heartbeat | /src/main/java/com/delinktech/heartbeat/appheartbeat/server/service/impl/AppServiceImpl.java | UTF-8 | 1,039 | 2.125 | 2 | [] | no_license | package com.delinktech.heartbeat.appheartbeat.server.service.impl;
import com.delinktech.heartbeat.appheartbeat.server.model.App;
import com.delinktech.heartbeat.appheartbeat.server.repository.AppRepository;
import com.delinktech.heartbeat.appheartbeat.server.service.AppService;
import org.springframework.beans.factor... | true |
31e0015634fb0547cc55fa818e1f47239929fbe2 | Java | jacobzeransky/java-multiplayerserver | /src/main/mpsClient.java | UTF-8 | 5,155 | 2.6875 | 3 | [
"MIT"
] | permissive | package main;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.concurrent.LinkedBlockingDeque;
import objects.Game;
import threads.C_delegatorThread;
// backend clien... | true |
18f2095ff27f3b9482dd8053130432631c8a9335 | Java | DomarievRoman/money-management-api | /src/main/java/com/domariev/financialproject/service/impl/WishServiceImpl.java | UTF-8 | 3,389 | 2.34375 | 2 | [] | no_license | package com.domariev.financialproject.service.impl;
import com.domariev.financialproject.dto.WishDto;
import com.domariev.financialproject.exception.ResourceCreationException;
import com.domariev.financialproject.exception.ResourceNotFoundException;
import com.domariev.financialproject.mapper.WishMapper;
import com.do... | true |
eec7555acccf98abe1bed0558dfb786b95eba356 | Java | asdfv/GithubSimpleApp | /presentation/src/main/java/by/grodno/vasili/githubsimpleapp/feature/users/UsersViewModelFactory.java | UTF-8 | 1,032 | 2.34375 | 2 | [] | no_license | package by.grodno.vasili.githubsimpleapp.feature.users;
import androidx.annotation.NonNull;
import androidx.lifecycle.ViewModel;
import androidx.lifecycle.ViewModelProvider;
import by.grodno.vasili.domain.interactor.GetUsersUseCase;
/**
* ViewModel factory for {@link UsersActivity}
*/
class UsersViewModelFactory im... | true |
5f5572494ab052a100d9f8a33289965ea2cb48ad | Java | lizhifeng-sky/DesignMode | /app/src/main/java/lzf/design/mode/template/CarModel.java | UTF-8 | 385 | 2.84375 | 3 | [] | no_license | package lzf.design.mode.template;
/**
* Created by Administrator on 2017/4/14 0014.
*/
public abstract class CarModel {
protected abstract void method1();
protected abstract void method2();
protected boolean canDo(){
return true;
}
final public void start(){
this.method1();
i... | true |
ec88db08be80e331ff47ebe7f018064605c4ba02 | Java | rivasyshyn/vocabulario-spring | /src/main/java/com/irm/vocabulario/dao/CardRowMapper.java | UTF-8 | 531 | 2.25 | 2 | [] | no_license | package com.irm.vocabulario.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import com.irm.vocabulario.domain.Card;
public class CardRowMapper implements RowMapper<Card> {
@Override
public Card mapRow(ResultSet arg0, int arg1) throws SQLExceptio... | true |
51461ad720c87281e4cf840f545b01a075ab5e4c | Java | tanujraj08/IMDB-master | /app/src/main/java/Model/MovieDetails.java | UTF-8 | 2,083 | 2.65625 | 3 | [] | no_license | package Model;
public class MovieDetails {
private String movieTitle;
private String movieRating;
private String movieDescription;
private String releaseDate;
private double budget;
private double revenue;
private String status;
private String posterPath;
public MovieDetails(Stri... | true |
9b03b21ecde98f896622de3ca845b3e010ca93ae | Java | jcant/JavaOOP | /HW62BigArraySumThreads/src/com/gmail/gm/jcant/BigArraySum.java | UTF-8 | 1,802 | 3.34375 | 3 | [] | no_license | package com.gmail.gm.jcant;
import java.util.*;
public class BigArraySum implements Runnable, AddResult {
// private List<Long> sumParts = new LinkedList<Long>();
private int[] array;
private int threadParts = 1;
private long[] sumArr;
public BigArraySum(int[] array, int threadParts) {
super();
this.array =... | true |
43c1a2aa753ef9586040ffc21e56f958122e5920 | Java | okiwa86/suwonit | /3기/디자인패턴/최혁/workspace/Iterator/src/IteratorPackage/SeoulIterator.java | UTF-8 | 413 | 3.078125 | 3 | [] | no_license | package IteratorPackage;
public class SeoulIterator implements IteratorFunc {
Seoul seoul;
int index;
public SeoulIterator(Seoul seoul) {
this.seoul = seoul;
this.index = 0;
}
@Override
public Object next() {
String x = seoul.map.get(index);
index ++;
return x;
}
@Override
public boolean hasNex... | true |
be06a3355fd944185c7f355a14f4020a2a08c5aa | Java | Harshaay/Harsha--AppiumClass | /src/test/java/com/appium_sdet10/HandleToastMessage.java | UTF-8 | 1,422 | 1.953125 | 2 | [] | no_license | package com.appium_sdet10;
import java.io.IOException;
import org.openqa.selenium.WebElement;
import org.testng.annotations.Test;
import com.genericutility.GenericToLaunch;
import com.genericutility.StartServerGeneric;
import com.genericutility.WebDriverUtility;
import io.appium.java_client.android.AndroidDriver;
i... | true |
5bf7f11e385ffbca91e4f961bece17f336357521 | Java | mahmudsalomov/sping-boot-jpa-demo | /src/main/java/uz/pdp/springbootjpademo/repository/CourseRepository.java | UTF-8 | 232 | 1.710938 | 2 | [] | no_license | package uz.pdp.springbootjpademo.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import uz.pdp.springbootjpademo.entity.Course;
public interface CourseRepository extends JpaRepository<Course,Integer> {
}
| true |
e6fb50d552ace16c88d45d69ec27523d381db36e | Java | Sambalinski/TestDrive | /src/IOTests/ByteArrayOutputWhite.java | UTF-8 | 654 | 3.140625 | 3 | [] | no_license | package IOTests;
import java.io.*;
public class ByteArrayOutputWhite {
public static void main(String[] args) throws IOException {
String fileName1 = "D:\\f1.txt", fileName2 = "D:\\f2.txt";
ByteArrayOutputStream array = new ByteArrayOutputStream();
FileInputStream file1 = new FileInputStr... | true |
8e8d682f3b3606adaa98845e270bd7e17b7957d1 | Java | SilenceMing/Relaxation | /app/src/main/java/com/xiaoming/slience/utils/BtnUtils.java | UTF-8 | 655 | 2.59375 | 3 | [] | no_license | package com.xiaoming.slience.utils;
import android.view.View;
/**
* @author slience
* @des
* @time 2017/7/920:11
*/
public abstract class BtnUtils implements View.OnClickListener {
// 两次点击按钮之间的点击间隔不能少于1000毫秒
private static final int MIN_CLICK_DELAY_TIME = 1000;
private static long lastClickTime;
... | true |
d7af652749f3af66dbdd79e0924e9d3feea496b0 | Java | CS2103AUG2016-T11-C1/main | /src/test/java/seedu/tasklist/logic/LogicManagerTest.java | UTF-8 | 12,822 | 2.296875 | 2 | [
"MIT"
] | permissive | package seedu.tasklist.logic;
import com.google.common.eventbus.Subscribe;
import seedu.tasklist.commons.core.EventsCenter;
import seedu.tasklist.commons.core.Messages;
import seedu.tasklist.commons.events.model.TaskListChangedEvent;
import seedu.tasklist.commons.events.ui.JumpToListRequestEvent;
import seedu.tasklis... | true |
b7f0d0fec013c8d6d0bb62c5221e3986fd78fe9b | Java | apache/helix | /helix-core/src/main/java/org/apache/helix/api/rebalancer/constraint/AbstractRebalanceHardConstraint.java | UTF-8 | 1,819 | 1.984375 | 2 | [
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | package org.apache.helix.api.rebalancer.constraint;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the... | true |
4eda4bbe006b11defac36ae45bc2d3d7c900836d | Java | mainapi/dashboard | /src/main/java/xyz/mainapi/dashboard/core/data/AuditableEntity.java | UTF-8 | 2,346 | 2.15625 | 2 | [] | no_license | package xyz.mainapi.dashboard.core.data;
import java.time.Instant;
import java.util.Optional;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;
import org.apache.commons.lang3.... | true |
390300aa37aa31b6d50befc9ce77afd9b61b5700 | Java | loki980/PSWind | /PSWind-android/src/com/lokico/PSWind/SpotDataXMLHandler.java | UTF-8 | 2,668 | 2.265625 | 2 | [] | no_license | package com.lokico.PSWind;
import java.util.StringTokenizer;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import android.content.Context;
import com.google.android.maps.GeoPoint;
public class SpotDataXMLHandler extends DefaultHandler {
p... | true |
408cc5000d7a1fd99d4152c17b95818bdc62bdf1 | Java | TakarinTD/Web-Note | /baitaptuan1/src/lop/triangle/Triangle.java | UTF-8 | 1,483 | 3.65625 | 4 | [] | no_license | package lop.triangle;
import static java.lang.StrictMath.sqrt;
import java.util.*;
public class Triangle {
private int a,b,c;
public int getA () {
return a;
}
public void setA (int a) {
this.a = a;
}
public int getB () {
return b;
}
public void setB (int b) ... | true |
24f44eadda510d9091e952a838c1094908e5fef1 | Java | gustavotemple/Squad4HospitalAPI | /gestao-hospital/src/test/java/gestao/controllers/HospitalControllerTest.java | UTF-8 | 3,463 | 1.976563 | 2 | [
"MIT"
] | permissive | package gestao.controllers;
import static org.assertj.core.api.Assertions.assertThat;
import gestao.ApplicationTest;
import gestao.configuration.ApplicationConfig;
import gestao.controllers.HospitalController;
import gestao.models.Hospital;
import gestao.repositories.HospitalRepository;
import gestao.service.GeocodeC... | true |
6783506952a999ee90aed8ba58aaed1d5fe8e6cc | Java | apinzhin/spring-course-learning | /src/main/java/media_player/ShuffleAnnotationBeanPostProcessor.java | UTF-8 | 1,064 | 2.21875 | 2 | [] | no_license | package media_player;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.stereotype.Component;
import java.lang.reflect.Field;
import java.util.Collections;
import java.util.List;
@Component
public class ShuffleAnnotationBean... | true |
1021201fd5932c9de119e2704d9812a51a87faaf | Java | shamshers/bare-random | /main/java/com/exlservice/lds/libraries/PublicVariables.java | UTF-8 | 1,282 | 1.554688 | 2 | [] | no_license | package com.exlservice.lds.libraries;
public class PublicVariables {
public static final String RUNMODE_YESVALUE = "Y";
public static final String RUNMODE_NOVALUE = "N";
public static final String MASTER_TEST_SUITE = "MasterTestSuite.xlsx";
public static final String TEST_SUITE_TASK_SHEET_NAME = "Tas... | true |
4b6cc52f692f0fbeaabb2128c1bbf013b694393e | Java | cckmit/crmd-platform | /.svn/pristine/4b/4b6cc52f692f0fbeaabb2128c1bbf013b694393e.svn-base | UTF-8 | 619 | 1.851563 | 2 | [] | no_license | package com.ffcs.crmd.platform.idempotency.core.repository.impl;
import org.springframework.stereotype.Repository;
import com.ffcs.crmd.platform.core.ddd.repository.impl.AbstractCrmDomBaseRepository;
import com.ffcs.crmd.platform.idempotency.core.entity.MktResource;
import com.ffcs.crmd.platform.idempotency.core.repo... | true |
a23ac56d1b3a973cc089bf7d2db0f5e6cf66db25 | Java | moutainhigh/lotto-skeleton-wl | /src/main/java/com/hhly/skeleton/lotto/base/trend/num/bo/QxcTrendBO.java | UTF-8 | 10,351 | 2.171875 | 2 | [] | no_license | package com.hhly.skeleton.lotto.base.trend.num.bo;
import java.util.ArrayList;
import com.hhly.skeleton.base.util.trendutil.Assemble;
import com.hhly.skeleton.base.util.trendutil.TrendIgnore;
import com.hhly.skeleton.lotto.base.trend.bo.TrendBaseBO;
@SuppressWarnings("serial")
public class QxcTrendBO extends TrendBa... | true |
e287b69a5764193a48fc1d9d272986e0bc37798c | Java | fangdongcy/diabetesProxy | /Back-end/DiabetesProxy/src/main/java/com/nbicc/diabetes/model/CloudEntity.java | UTF-8 | 2,008 | 2.25 | 2 | [] | no_license | package com.nbicc.diabetes.model;
import com.nbicc.diabetes.utils.IdGen;
import java.io.Serializable;
import java.util.Date;
public class CloudEntity implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
private String id;
private Date createdAt;
private Date update... | true |
feb36feddbf707c09aeb9ff906fc83a7a6ae506d | Java | cha63506/CompSecurity | /Spotify_source/src/bkn.java | UTF-8 | 1,663 | 1.570313 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
import android.content.Context;
import android.text.TextUtils;
import com.google.android.gms.ads.internal.formats.NativeAdOptionsParcel;
import c... | true |
f363608356613d0166a24f9f69088529beb9c063 | Java | 103945089/yunshaoNote | /app/src/main/java/com/example/yunshaonote/db/NoteItem.java | UTF-8 | 666 | 1.960938 | 2 | [] | no_license | package com.example.yunshaonote.db;
import org.litepal.crud.DataSupport;
/**
* Created by 允少 on 2017/9/19.
*/
public class NoteItem extends DataSupport {
private long date;
private String item;
private long remindTime;
public long getRemindTime() {
return remindTime;
}
public v... | true |
a8a771d81494d98fd1cfe3e927f8863cf3cdedb9 | Java | tschiman/multi-version-ex | /src/main/java/com/schimandle/example/SchimandledemoApplication.java | UTF-8 | 330 | 1.609375 | 2 | [] | no_license | package com.schimandle.example;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SchimandledemoApplication {
public static void main(String[] args) {
SpringApplication.run(SchimandledemoApplication.class, ar... | true |
d075d1357a56ced3a00ce7fc9eaba442d5ab53af | Java | tiida1120/esnavi | /esnavi/src/main/java/jp/co/ipublishing/esnavi/impl/alert/AlertStore.java | UTF-8 | 4,590 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015 iPublishing Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | true |
7c54c862325318356195ccd2d17f3b7fbd859bc5 | Java | CEPFU/ems | /src/main/java/de/fu_berlin/agdb/crepe/algebra/operators/numeric/ComparisonOperation.java | UTF-8 | 3,984 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | package de.fu_berlin.agdb.crepe.algebra.operators.numeric;
import de.fu_berlin.agdb.crepe.algebra.Match;
import de.fu_berlin.agdb.crepe.algebra.Operator;
import de.fu_berlin.agdb.crepe.algebra.OperatorNotSupportedException;
import de.fu_berlin.agdb.crepe.data.IEvent;
import javax.annotation.Nonnull;
import javax.anno... | true |
007ad453a572442a7c021f4156603aab6b147a99 | Java | shanweifeng/spring-boot | /spring-boot-170818/src/main/java/com/swf/web/interrupter/MyWebAppConfigurer.java | UTF-8 | 2,088 | 2.359375 | 2 | [] | no_license | package com.swf.web.interrupter;
import java.nio.charset.Charset;
import java.util.List;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.StringHttp... | true |
4b595521740b9848ca086f90d98c9e4f8f6872a7 | Java | pd-stone/Apartment-Finder | /src/main/java/ApartmentFinder/Apartment.java | UTF-8 | 832 | 3.703125 | 4 | [] | no_license | package ApartmentFinder;
/**
* CS 232 Programming Project 4
* This program utilizes constructors, methods and functions to create an Apartment
* finder that the user can utilize to find an apartment that suits their needs
* @author pauld
*/
public class Apartment
{
int aptNumber;
int numBedr... | true |
9f93cd39042310485016a58373f694c18f4924eb | Java | ToxicBard/MP3TagProcessor | /src/songStructures/AlbumBag.java | UTF-8 | 1,669 | 3.46875 | 3 | [] | no_license | package songStructures;
import java.io.BufferedWriter;
import java.io.Serializable;
import java.util.ArrayList;
public class AlbumBag implements Serializable {
private static final long serialVersionUID = 8852937180442568962L;
private ArrayList<Album> mAlbums = new ArrayList<Album>();
public void addSong(Song ... | true |
6c405bd0ee398275c05dafcfd25f8eabaa05e79a | Java | sunshiqiang/git-msc | /msc-web-b2bsearch/src/main/java/com/shyl/msc/b2b/monitor/controller/PurchaseOrderPlanController.java | UTF-8 | 7,833 | 1.929688 | 2 | [] | no_license | package com.shyl.msc.b2b.monitor.controller;
import java.io.IOException;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import com.shyl.common.util.ExcelUtil;
import com.shyl.msc.b2b.... | true |
5aa5654a9013ba020adff8a6f87aa75c86f292c3 | Java | tjr7788/bitcamp | /java-basic/src/main/java/bitcamp/java100/ch03/Test17_3.java | UTF-8 | 700 | 3.59375 | 4 | [] | no_license | package bitcamp.java100.ch03;
public class Test17_3 {
// 파라미터(parameter) : 호출한 쪽에서 보낸 값을 저장하기 위해 선언한 로컬 변수
static void m1(String name) {
System.out.printf("%s님 반갑습니다.\n",name);
}
static void m2(String name, int age) {
System.out.printf("%s(%d)님 반갑습니다.\n",name,age);
}
pu... | true |
633c1bce34243b9089899b3013c7eee3af7f0f4a | Java | rachitjain123/SWE_ASSIGNMENT1 | /src/test/java/ArgsExceptionTest.java | UTF-8 | 2,938 | 2.859375 | 3 | [] | no_license | import junit.framework.TestCase;
public class ArgsExceptionTest extends TestCase {
public void testUnexpectedMessage() {
ArgsException e = new ArgsException(ErrorCode.UNEXPECTED_ARGUMENT, 'x', null);
assertEquals("Argument -x unexpected.", e.errorMessage());
}
public void testMissingStrin... | true |
ca10d472c5204b7d4409d5332e29b63d68bb9f27 | Java | red1408/healthcare-dicom-dicomweb-adapter | /import/src/main/java/com/google/cloud/healthcare/imaging/dicomadapter/CStoreService.java | UTF-8 | 3,855 | 1.695313 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | true |
95a6ae4cf96948466eef37a94051ab17b43484dd | Java | SLPeoples/CSS143-Java-Object-Oriented-Programming | /Labs/Lab5/src/ColorException.java | UTF-8 | 423 | 2.6875 | 3 | [] | no_license |
/**
* @author Samuel L. Peoples, 1527650
* ColorException class
*/
public class ColorException extends RuntimeException{
/**
* Throws error to parent
*/
public ColorException(){
super("There was an error in Color");
}
/**
* Throws error to parent
* @param msg, what to report
*/
public ColorExceptio... | true |
939717d98a289d81c52cacfcf1d99cc6f29ea214 | Java | IgorZaporozhtsev/SpringStart | /src/ex3/java/performer/MainPerformer.java | UTF-8 | 3,665 | 2.9375 | 3 | [] | no_license | package ex3.java.performer;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class MainPerformer {
public static void main(String[] args) {
//контейнер
ApplicationContext ctx = new ClassPathXmlApplicationCont... | true |
61a4ccd43c5f0e5b014009722ae8fc7f66d09aed | Java | sarvex/intellij-community | /platform/structuralsearch/source/com/intellij/tokenindex/LanguageTokenizer.java | UTF-8 | 355 | 1.695313 | 2 | [
"Apache-2.0"
] | permissive | package com.intellij.tokenindex;
import com.intellij.lang.LanguageExtension;
/**
* @author Eugene.Kudelevsky
*/
public class LanguageTokenizer extends LanguageExtension<Tokenizer> {
public static final LanguageTokenizer INSTANCE = new LanguageTokenizer();
private LanguageTokenizer() {
super("com.intellij.t... | true |
6fd26e90884650c75056e8b153bf0eeb5804c472 | Java | jasonnth/AirCode | /sources/com/google/android/gms/internal/zzmz.java | UTF-8 | 1,270 | 2.1875 | 2 | [] | no_license | package com.google.android.gms.internal;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import com.google.android.gms.common.internal.safeparcel.zzb;
import com.google.android.gms.common.internal.safeparcel.zzb.zza;
import com.google.android.gms.common.internal.safeparcel.zzc;
public class zzmz imple... | true |
531575ecd2c20b5db42ea57089436f9e52f5c671 | Java | codo-a-codo-cfp31/prueba_001 | /Nury/Conversor2/src/conversor/ConversorDistancia.java | UTF-8 | 1,143 | 3.21875 | 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 conversor;
/**
*
* @author CFP31-15
*/
public class ConversorDistancia {
protected float distance;
protected S... | true |
c3a040e08b7d1d9c485b492ea1b9b18c3cf64d8e | Java | juanRocksat/MatSuperiorVirus | /src/principal/Principal.java | UTF-8 | 1,524 | 3.28125 | 3 | [] | no_license | package principal;
import algoritmos.Biseccion;
import algoritmos.NewtonRaphson;
import algoritmos.PuntoFijo;
import datos.Datos;
public class Principal {
public static void ejemplo() {
Datos ejemplo=new Datos(1,2,(double)1e-4) {
@Override
public double f(double x) {//f(x)
return (double)((Math.pow(Math.E,... | true |
12a30f8e6b85f84d84c74b50601720e97efb9e7e | Java | libaoshen/java-exercise | /test/src/com/fhpt/java/thread/ThreadSleep.java | UTF-8 | 1,009 | 3.671875 | 4 | [] | no_license | package com.fhpt.java.thread;
import java.util.Random;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
/**
* @author libaoshen
* @description 线程休眠
* @createdDate 2017年10月13日 上午10:26:10
*/
public class ThreadSleep implements... | true |
02c8ad8255405f1f2f83d33b926323883f723d27 | Java | xingfengsuiyu/autocode | /autogeneration/src/main/java/com/auto/generation/core/util/WriteJavaFileUtil.java | UTF-8 | 632 | 2.484375 | 2 | [] | no_license | package com.auto.generation.core.util;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
/**
* 输出java文件
*
* @author zc
* @create 2018-07-12 21:07
**/
public class WriteJavaFileUtil {
public static void writeJavaFile(File file , StringBuilder... | true |
cf947f6d0a7fc26d41abe956f33713f78de5235a | Java | fnuecke/oc2 | /src/main/java/li/cil/oc2/api/bus/BlockDeviceBusElement.java | UTF-8 | 951 | 2.3125 | 2 | [
"MIT",
"CC0-1.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | /* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus;
import net.minecraft.core.BlockPos;
import net.minecraft.world.level.LevelAccessor;
import javax.annotation.Nullable;
/**
* Implementing this interface allows providing positional information to the {@link DeviceBusController}.
* <p>
* Controllers ma... | true |
c5e0f6c1353596c05384621a5858d35cda601a10 | Java | hjp2/2019-OOD-project | /stock_simulator/src/guimaker/SecondFrameHaveStock.java | UTF-8 | 1,393 | 3.078125 | 3 | [
"MIT"
] | permissive | package guimaker;
import javax.swing.JLabel;
import javax.swing.JPanel;
import templateMethod.HaveStockList;
import templateMethod.MyButton;
import templateMethod.MyListBox;
import templateMethod.SellButton;
/**
*
* @author guswn
*/
public class SecondFrameHaveStock {
private JPanel myPanel;
public S... | true |
24083063a8fbbdd0ace390bd901bbc301b42e67c | Java | HillkingF/LeetCode | /src/Stack/Medium_739_dailyTemperatures.java | UTF-8 | 1,095 | 3.984375 | 4 | [] | no_license | package Stack;
import java.util.Stack;
public class Medium_739_dailyTemperatures {
public static void main(String[] args){
int[] T = {73, 74, 75, 71, 69, 72, 76, 73};
int[] res = dailyTemperatures(T);
for (int i = 0; i< res.length; i++){
System.out.println(res[i]);
}
... | true |
d4ae15239dc1dcf43901e783083219de92aa826b | Java | ReactiveX/RxNetty | /rxnetty-common/src/test/java/io/reactivex/netty/test/util/embedded/EmbeddedConnectionProvider.java | UTF-8 | 2,292 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | true |