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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
97f5f5f3a76bb88ef5c61204faa28e7f049be863 | Java | jthou20121212/wanandroid | /app/src/main/java/com/jthou/wanandroid/model/sp/PreferenceHelper.java | UTF-8 | 622 | 1.882813 | 2 | [] | no_license | package com.jthou.wanandroid.model.sp;
/**
* Created by user on 2018/5/16.
*/
public interface PreferenceHelper {
boolean autoCache();
boolean noImage();
boolean nightMode();
void setAutoCache(boolean autoCache);
void setNoImage(boolean noImage);
void setNightMode(boolean nightMode);
... | true |
d6a2faee230a3fbd833f3ec0a5f39c0358662233 | Java | chenx/oj | /leetcode_java/Flip_Game_II.java | UTF-8 | 1,000 | 3.546875 | 4 | [] | no_license | // from: https://leetcode.com/discuss/64344/theory-matters-from-backtracking-128ms-to-dp-0ms
// also see: https://leetcode.com/discuss/oj/flip-game-ii
public boolean canWin(String s) {
s = s.replace('-', ' ');
int G = 0;
List<Integer> g = new ArrayList<>();
for (String t : s.split("[ ]+")) {
int... | true |
843d2e2c92506d8dc9568bd9787323341e7a9893 | Java | ssshhh0402/CNUPsychologyAndTechnology | /src/softwareengineering/DAO_User.java | UTF-8 | 4,465 | 2.8125 | 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 softwareengineering;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.... | true |
11dfc6481b5bc49b13686ab406939dad459c8930 | Java | ivozhegov/codewars | /src/main/java/Ascii85.java | UTF-8 | 5,374 | 2.546875 | 3 | [] | no_license | import org.junit.Test;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import static org.junit.Assert.assertEquals;
public class Ascii85 {
public static final Charset ascii = StandardCharsets.ISO_8859_1;
public final String[] decoded = {
"easy... | true |
efb4db0d5cffab69f50329c9a250f2189d4f0015 | Java | sarxos/smesx | /src/main/java/com/sarxos/smesx/http/NaiveSSLClient.java | UTF-8 | 2,077 | 2.484375 | 2 | [] | no_license | package com.sarxos.smesx.http;
import org.apache.http.HttpHost;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.conn.ClientConnectionManager;
import org.apache.http.conn.params.ConnRoutePNames;
import org.apache.http.conn.scheme.Scheme;
import org.apache.http.conn.scheme.SchemeRegistry;
import o... | true |
b589b18897ea7e4cbbb283fc49ce7c10f31f5a59 | Java | renzoventura/financial-meet | /src/main/java/com/financialmeet/repository/shared/StatusRepostiory.java | UTF-8 | 382 | 1.953125 | 2 | [] | no_license | package com.financialmeet.repository.shared;
import com.financialmeet.dto.shared.Status;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
public interface StatusRepostiory extends JpaRepository<Status, Long> {
Optional<Status> findByStatusCode(String statusCode);
Optional<... | true |
e90f5d23a8cdcd039ac0aa59af0056d4d1ada62e | Java | hanks010/Spring-Project | /project05/src/main/java/com/example/project05/model/board/MaterialCategory.java | UTF-8 | 435 | 2.0625 | 2 | [] | no_license | package com.example.project05.model.board;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import lombok.Data;
import lombok.NoArgsConstructor;
@Entity
@Data
@NoArgsConstructor
public class MaterialCategory {
@Id
@Gene... | true |
17b6c94c5b48a3b6e930c810ce588a4862103ef3 | Java | namphung99/SQA_QLDT | /src/test/java/DAO/StudentDAOTest.java | UTF-8 | 6,530 | 2.796875 | 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 DAO;
import entities.BangDiem;
import entities.Point;
import entities.Student;
import java.util.ArrayList;
import s... | true |
4ee842dab3488648037264188c2a1c299e509e55 | Java | starrymedia/DMA.SuperNode | /super-node-biz/src/main/java/org/elastos/record/biz/dao/NodeIncomeDao.java | UTF-8 | 568 | 1.59375 | 2 | [] | no_license | package org.elastos.record.biz.dao;
import org.beetl.sql.core.annotatoin.Param;
import org.beetl.sql.core.mapper.BaseMapper;
import org.elastos.record.utility.dto.IncomeDto;
import org.elastos.record.utility.entity.NodeIncome;
import org.springframework.stereotype.Component;
/**
* gen by hb.nie mapper 2019-06-20 16... | true |
16daa8a3c6cb15bf7ff1714f0a377e2de93732d7 | Java | gliy/gw2 | /src/com/daemon/job/WatchListCleanupJob.java | UTF-8 | 607 | 1.648438 | 2 | [] | no_license | package com.daemon.job;
import java.util.Date;
import java.util.List;
import java.util.Map;
import javax.xml.bind.DataBindingException;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.springframework.beans.factory.annotation.Autowired;
import com.core.Utils;
import com.db.DB;
import com.d... | true |
def5638cfdf2e388ee024999d0825d0f342437d4 | Java | MarkovShield/architecture_prototype | /core/src/main/java/ch/hsr/markovshield/models/Session.java | UTF-8 | 790 | 2.53125 | 3 | [
"MIT"
] | permissive | package ch.hsr.markovshield.models;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Session {
private final String sessionUUID;
private final String userName;
@JsonCreator
public Session(@JsonProperty ("sessionUUID") String sess... | true |
c55c20abe5a547f8d89a4803080cfa9a478be4e6 | Java | Mocnyzuk/grouppagejava | /src/main/java/com/grouppage/domain/notmapped/GroupLight.java | UTF-8 | 2,069 | 2.25 | 2 | [] | no_license | package com.grouppage.domain.notmapped;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.grouppage.domain.entity.Group;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotNull;
import java.lang.reflect.InvocationTargetException;
... | true |
f2a17350cfe93a75d8a709f69d7c310fd2aaffcc | Java | lpxbetter/601 | /tree/myGraph.java | UTF-8 | 1,747 | 3.203125 | 3 | [] | no_license | package tree;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Stack;
/**
* Created by lipingxiong on 8/17/15.
*/
public class myGraph {
public boolean search (ArrayList<ArrayList<Integer>> adjLists, int start , int end){
boolean[] visited = new boolean[a... | true |
1820fed9663e5447300e8459437f432b63f782fd | Java | automenta/nengo | /gui/src/main/java/ca/nengo/ui/models/constructors/CNode.java | UTF-8 | 2,751 | 2.328125 | 2 | [] | no_license | /*
The contents of this file are subject to the Mozilla Public License Version 1.1
(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.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
W... | true |
b47a5c2a19e5fd5db71a196ebe5dbc25940bab60 | Java | mmuduganti/contact-app | /service/src/main/java/com/nisum/contact/repository/mapper/IContactMapper.java | UTF-8 | 971 | 2.234375 | 2 | [] | no_license | package com.nisum.contact.repository.mapper;
import com.nisum.contact.domain.Contact;
import com.nisum.contact.domain.ContactRequest;
import com.nisum.contact.repository.sql.ContactSelectProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annota... | true |
208c6c79d8ef97dbe72b6d452240a4bf6f2ace7b | Java | alimogh/forResume | /coinnolja-api/src/main/java/com/coinnolja/web/api/member/MemberQnaRepository.java | UTF-8 | 671 | 1.859375 | 2 | [] | no_license | package com.coinnolja.web.api.member;
import com.coinnolja.web.api.member.model.MemberQna;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public inter... | true |
4416e13ab8d4652b98675b64c556b2e5c56d2a84 | Java | alu0100767803/Juegos | /src/TresEnRaya/Casilla.java | UTF-8 | 1,995 | 3.0625 | 3 | [] | no_license | /**
*
*/
package TresEnRaya;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import javax.swing.ImageIcon;
import javax.swing.JPanel;
/**
* @author Jorge
*
*/
public class Casilla extends JPanel {
private final ImageIcon X_ = new ImageIcon("x.png");
private final ImageIcon O_ = new ... | true |
40e41da1f8ba016bd9283630c65fff7663c26a38 | Java | zhengxyzw/seeyon_v3x | /src_web_common/com/seeyon/v3x/common/office/trans/OfficeTransFilterImpl.java | UTF-8 | 6,289 | 2.015625 | 2 | [] | no_license | package com.seeyon.v3x.common.office.trans;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Calendar;
import java.util.Date;
import javax.servlet.http.HttpServlet... | true |
03a694debc5ac4f85211789f952a8f9a9fdc29e8 | Java | Suancaiyu0707/cs | /casaba-dao/src/main/java/com/casaba/dao/mapper/auth/RoleInfoMapper.java | UTF-8 | 752 | 2.25 | 2 | [] | no_license | package com.casaba.dao.mapper.auth;
import com.casaba.dao.entity.auth.RoleInfo;
import org.apache.ibatis.annotations.Param;
/***
* 角色信息mapper
* @author zhifang.xu
*/
public interface RoleInfoMapper {
/***
* 根据id删除某一角色
* @param roleId
* @return
*/
int deleteById(@Param("roleId") Integer ... | true |
60d7c2d6eaba4ce5e1109849145ac9ef07e23583 | Java | KendrickAng/Survive | /core/src/com/survive/game/SettingsScreen.java | UTF-8 | 1,396 | 2.6875 | 3 | [] | no_license | package com.survive.game;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.InputMultiplexer;
import static com.survive.game.Survive.*;
class SettingsScreen extends Screen {
private static final int SCREEN_PADDING = 50;
private Text title;
private TextList options;
SettingsScr... | true |
159ebb89ca29cca05c58f8c875e30e9b215382ba | Java | tangxi123/test-speed-platform | /src/main/java/org/tangxi/testplatform/model/testReport/ReportTestCaseInfo.java | UTF-8 | 1,446 | 1.875 | 2 | [] | no_license | package org.tangxi.testplatform.model.testReport;
import java.util.List;
public class ReportTestCaseInfo {
private String id;
private String reportInfoId;
private String testCaseName;
private int testResultStatus;
private String exceptions;
private List<String> logs;
private long runtime;
... | true |
2587d174af99046ac1860d4ede8b249c0a477dff | Java | chengwm/cs2103aug12-w09-3j | /op3/Storage.java | UTF-8 | 9,287 | 3.328125 | 3 | [] | no_license | // import all classes for now
import java.util.*;
import java.util.logging.Logger;
import java.io.*;
class Storage {
// uses Entries class.
// Variables
// Readers, Writers
// ArrayList/lists etc for quick access
// File for link to doc.
// Functions
// - searches for items with a certain criter... | true |
dc7695ae8b2ce33ff1c2f76231a151499036d109 | Java | Auch-Auch/avito_source | /sources/a2/a/a/g2/a/d.java | UTF-8 | 756 | 1.929688 | 2 | [] | no_license | package a2.a.a.g2.a;
import com.avito.android.rating.details.RatingDetailsPresenterImpl;
import com.avito.android.remote.model.rating_details.RatingDetailsResult;
import io.reactivex.rxjava3.functions.Consumer;
public final class d<T> implements Consumer<RatingDetailsResult> {
public final /* synthetic */ RatingDe... | true |
355b9455257fd859896b70a76d96e0a057414888 | Java | cglazer/glazer-mco152 | /src/glazer/weatherForecast16Day/ForecastThread.java | UTF-8 | 4,533 | 2.609375 | 3 | [] | no_license | package glazer.weatherForecast16Day;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.sql.Date;
import java.text.SimpleDateFormat;
import javax.swing.JLabel;
import com.google.g... | true |
eebbedef2a67b49497f4499b016213b455fa518f | Java | nishu0f0/SpringProjects | /SpringSecurityDemo/src/main/java/in/frodo/dao/entity/Role.java | UTF-8 | 1,092 | 2.09375 | 2 | [] | no_license | package in.frodo.dao.entity;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax... | true |
899911e864c10bc9b8cf552ec7c018bc02de35c6 | Java | eliasall/BetterX-Android | /libs/FeaturesLogger/src/main/java/com/betterx/featureslogger/datamodel/ScreenSize.java | UTF-8 | 499 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package com.betterx.featureslogger.datamodel;
import java.io.Serializable;
public class ScreenSize implements Serializable {
public int height;
public int width;
public ScreenSize() {
}
public ScreenSize(int height, int width) {
this.height = height;
this.width = width;
}
... | true |
57baec04577c8275ae94960d33ad2d7f8eec7dd7 | Java | PopCandier/Java8 | /src/main/java/com/pop/java8/chapter1/Transaction.java | UTF-8 | 186 | 1.84375 | 2 | [] | no_license | package com.pop.java8.chapter1;
import lombok.Data;
/**
* @author Pop
* @date 2019/10/2 15:04
*/
@Data
public class Transaction {
private int price;
private int currency;
}
| true |
df1a26c3272abfd537452e3bdb8e861a1ade2f5e | Java | xust8431/bbs | /src/test/java/test/reply/TestReplyService.java | UTF-8 | 862 | 1.898438 | 2 | [] | no_license | package test.reply;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.xust.bbs.service.reply.ReplyService;
public class TestReplyService {
private ReplyService replyS... | true |
c873a70d3329bf8f018a519c0590f2c7faffb376 | Java | soon14/CODE | /SmartHome/0.2-code/2.1-Trunk/2.1.2-server/SmartHome/hw-module/corpinfo/src/main/java/com/hw/hwsafe/corpinfo/action/B00902Action.java | UTF-8 | 2,764 | 1.96875 | 2 | [] | no_license | package com.hw.hwsafe.corpinfo.action;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import com.hw.hwsafe.corpinfo.pojo.B00902PO;
import com.hw.hwsafe.corpinfo.service.IB00902Service;
import com.hw.hwsafe.platform.action.BaseAction;
public class B00902Action extends BaseActio... | true |
45487fd6de96ec7e1f682f20052eddafbeb34c99 | Java | lunatic0696/Corporativa | /AtividadeA/Transporteaereo/Aeroporto.java | UTF-8 | 110 | 1.539063 | 2 | [] | no_license | package Transporteaereo;
public class Aeroporto {
private String pais;
private String cidade;
}
| true |
c6c8a52899f7353a11f250640e6d07118dfe30bc | Java | coder-oyz/detailcloud | /command_mode/src/com/oyz/command/Client.java | UTF-8 | 928 | 3.046875 | 3 | [] | no_license | package com.oyz.command;
//创建一个ConcreteCommand对象并指定他的Receiver对象
public class Client {
public static void main(String[] args) {
// 命令接收者Receiver
Tv myTv = new Tv();
// 开机命令ConcreteCommond
Command Tvon = new TvOnCommand(myTv);
// 关机命令ConcreteCommond
Command Tvoff = new... | true |
daad17df2374ddf2a48e2587ebb7b34e4bf8a389 | Java | MadhumithaRHCL/AccountCreation | /AirportFlightCollisionDetection/src/test/java/com/demo/flight/timings/collision/controller/FlightsScheduleControllerTest.java | UTF-8 | 3,434 | 1.914063 | 2 | [] | no_license | package com.demo.flight.timings.collision.controller;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import java.util.ArrayList;
import java.util.List;
import org.aspectj.lang.annotation.Before;
import org.junit.jupiter.api.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
impo... | true |
416539fb6c706c8a575302f598864e7b2113044b | Java | mrizkymunggaran/moten-util | /daap-player/trunk/src/main/java/itunes/client/swing/ConnectWorker.java | UTF-8 | 2,010 | 2.609375 | 3 | [] | no_license | /*
* Created on Aug 22, 2004
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
package itunes.client.swing;
import itunes.client.request.NoServerPermissionException;
import org.cdavies.itunes.ConnectionStatus;
import or... | true |
f8358fbff757ca428171571d1bc82ee16397bfc9 | Java | SVMikitjuk/addr_book | /src/main/java/com/mik/model/Phone.java | UTF-8 | 1,379 | 2.765625 | 3 | [] | no_license | package com.mik.model;
import javax.persistence.*;
/**
* Created by mikitjuk on 30.09.15.
*/
@Entity
@Table(name = "phone")
public class Phone {
private Integer id;
private String value;
public Phone() {
}
public Phone(String phone) {
this.value = phone;
}
@Id
@Column(name... | true |
7efd3f6bf691bd7172030b469e444d05b7769801 | Java | shiex/meeting-ams | /src/main/java/com/xbb/meeting/entity/Cost.java | UTF-8 | 3,944 | 2.390625 | 2 | [] | no_license | package com.xbb.meeting.entity;
import javax.persistence.*;
public class Cost {
/**
* 费用表ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 会议ID
*/
@Column(name = "meeting_id")
private Integer meetingId;
/**
* 会议标题
*/... | true |
cd1a73f96ff3582e987cde3f7ab67518769a8fa4 | Java | rmit-s3342707-HAOQUAN-DAI/Assignment2 | /src/GameRecord.java | UTF-8 | 1,836 | 2.609375 | 3 | [] | no_license | import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringPropertyBase;
/**
* Author: HAOQUAN DAI
*/
public class GameRecord {
private SimpleStringProperty athleteID;
private SimpleStringProperty athleteScore;
private SimpleStringProperty points;
/*
public G... | true |
ea5c09fd8e54c421181ad472df91a2af0ebd7f0b | Java | klebeer/peaberry | /extensions/activation/invocations/src/main/java/org/ops4j/peaberry/activation/invocations/util/Proc.java | UTF-8 | 282 | 2.109375 | 2 | [] | no_license | package org.ops4j.peaberry.activation.invocations.util;
import java.util.concurrent.Callable;
public abstract class Proc implements Callable<Void> {
public final Void call() throws Exception {
run();
return null;
}
protected abstract void run() throws Exception;
}
| true |
a12349fd701c543f2f77f57e5f529d8a735d0f93 | Java | MahmoudMabrok/ImageAssistance | /src/sample/test/Temp.java | UTF-8 | 247 | 2.1875 | 2 | [] | no_license | package sample.test;
public class Temp {
public static void main(String[] args) {
String path = "C:\\Users\\motamed\\Desktop\\D-NA" ;
System.out.println("path.contains(\"motamed\") = " + path.contains("motamed"));
}
}
| true |
c1470ae168b78ccb82aed5b04bd8311c44de9188 | Java | ahmetdagci/dagdem-ws | /src/main/java/com/tr/dagdem/dao/revenue/RevenueDAO.java | UTF-8 | 423 | 1.78125 | 2 | [] | no_license | package com.tr.dagdem.dao.revenue;
import java.math.BigDecimal;
import com.tr.dagdem.dao.GenericDAO;
public interface RevenueDAO extends GenericDAO
{
public BigDecimal musteridenYapilanTahsilatTutariSorgula(long musteriId);
public BigDecimal musteriyeYapilanSatisSorgula(long musteriId);
public BigDecimal tumM... | true |
3d694db30ede50b81b01e9826db367b8b4b4c854 | Java | salmadaldoul/configuration-microservice | /src/main/java/com/madar/tracking/configuration/web/rest/CityResource.java | UTF-8 | 8,937 | 2.265625 | 2 | [] | no_license | package com.madar.tracking.configuration.web.rest;
import com.madar.tracking.configuration.domain.City;
import com.madar.tracking.configuration.domain.PlatformConfiguration;
import com.madar.tracking.configuration.domain.Region;
import com.madar.tracking.configuration.domain.DTO.CityIdNameDto;
import com.madar.trackin... | true |
2e5d48a9c56f0a26cc74e3906b7684d51b2ad341 | Java | GouthamRaoD/WinnipegTransitLive | /app/src/main/java/com/youngbro/mytransitlive/News.java | UTF-8 | 359 | 2.3125 | 2 | [] | no_license | package com.youngbro.mytransitlive;
/**
* Created by Goutham on 2017-03-04.
*/
public class News {
private String title;
private String body;
public News(String title, String body){
this.title=title;
this.body =body;
}
public String getTitle(){return title;}
pub... | true |
991f3bed3d64289b4de5108446c7023e5e5a9899 | Java | Nedeja/apps20bas-hw4 | /src/main/java/ua/edu/ucu/queuePackage/ImmutableLinkedList.java | UTF-8 | 5,893 | 3.5 | 4 | [] | no_license | package ua.edu.ucu.queuePackage;
public class ImmutableLinkedList implements ImmutableList {
private class Node {
private Object element = null;
private Node next = null;
private Node previous = null;
Node(Object element, Node next, Node previous) {
this.element = eleme... | true |
68f1dae93931111c762409bf2c62afa392149a85 | Java | hackm/FamiryBoard | /app/src/main/java/com/hackm/famiryboard/view/fragment/NavigationDrawerFragment.java | UTF-8 | 3,018 | 2.125 | 2 | [] | no_license | package com.hackm.famiryboard.view.fragment;
import android.app.Activity;
import android.support.v4.app.Fragment;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.ListView;
import androi... | true |
e9b0e4879f360640719cffed0a445f0be8584b37 | Java | iisys-hof/neo4j-websocket-common | /src/main/java/de/hofuniversity/iisys/neo4j/websock/session/WebsockConstants.java | UTF-8 | 4,039 | 1.679688 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015 Institute of Information Systems, Hof 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/licenses/LICENSE-2.0
*
* Unl... | true |
615564d6f8099f50b256fb1551b0fe63b886f82a | Java | jppf-grid/JPPF | /admin/src/java/org/jppf/ui/options/OptionProperties.java | UTF-8 | 4,586 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /*
* JPPF.
* Copyright (C) 2005-2019 JPPF Team.
* http://www.jppf.org
*
* 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 re... | true |
a10fe1e6386fe0e52a08340116369698d8eb9b21 | Java | randoom13/Files_Viewer | /app/src/main/java/am/android/example/android/filesviewer/finder/SearchedItemInfo.java | UTF-8 | 1,094 | 2.609375 | 3 | [
"MIT"
] | permissive | package am.android.example.android.filesviewer.finder;
import java.io.File;
import am.android.example.android.filesviewer.finder.validation.TextColorProvider;
import am.android.example.android.filesviewer.finder.validation.TextPainter;
public class SearchedItemInfo {
private final String mPath;
private final... | true |
0de001de4d65735e84f30f1cbeac35c2950db7c2 | Java | ffulauh/tech4u | /src/main/java/me/ffulauh/javalang/nio/ChannelCopy.java | UTF-8 | 686 | 2.71875 | 3 | [] | no_license | package me.ffulauh.javalang.nio;
import java.io.File;
import java.io.FileInputStream;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
public class ChannelCopy {
private static final int BSIZE=1024;
public static void main(String[] args)throws Exception {
ByteBuffer bb=ByteBuffer.all... | true |
ab2a7e99b692cb6ace390e55009bb38b5cb403dc | Java | daxingyou/bw | /ecrm-s/src/main/java/com/maven/service/impl/BettingSgsServiceImpl.java | UTF-8 | 1,282 | 1.96875 | 2 | [] | no_license | package com.maven.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.maven.base.dao.BaseDao;
import com.maven.dao.BettingHqNhqDao;
import com.maven.dao.BettingSgsDao;
import com.maven.enti... | true |
fc365713b796a4f3fc263ca3b1b931e1b7ad5b5a | Java | andersonmatte/DesignPatternsJava | /Structural/src/main/java/proxy/control/ContaProxy.java | UTF-8 | 817 | 3.171875 | 3 | [
"Apache-2.0"
] | permissive | package proxy.control;
import proxy.interfaces.Conta;
/**
* @author Anderson Matte
*/
public class ContaProxy implements Conta {
private Conta conta;
public ContaProxy(Conta conta) {
this.conta = conta;
}
@Override
public void deposita(Double valorDeposito) {
System.out.printl... | true |
b03c8c68799a9484712a79c86e58d88f0501c6a3 | Java | YuSeungJong/JavaBasic | /src/j_collection/ArrayListClass.java | UTF-8 | 3,633 | 3.96875 | 4 | [] | no_license | package j_collection;
import java.util.ArrayList;
public class ArrayListClass {
public static void main(String[] args) {
/*
* boolean add(Object obj) : 마지막 위치에 객체를 추가 후 성공여부를 반환한다.
* void add(int index, Object obj) : 지정도니 위치에 객체를 추가한다.
* Object set(int index, Object obj) : 지정된 위치에 객체를 저장 후 기존 객체를 반환한다.
... | true |
bd5efdf8f6cb3c2f56f16e1e603e1c7737e3cf79 | Java | Kate199824/Compiler | /src/main/java/Token.java | UTF-8 | 843 | 3.046875 | 3 | [] | no_license | public class Token {
private int type;
private String content;
public static final int PLUS = 1;
public static final int MULTIPLY = 2;
public static final int PARENTHESES_LEFT = 3;
public static final int PARENTHESES_RIGHT = 4;
public static final int IDENTIFIER = 0;
public static fina... | true |
1f4c01f81969e658a07e83b123b76d67bbfb59fe | Java | JeroenVerkerk/IPASS-Source-Code | /src/main/java/nl/hu/ipass/quizschoolapp/webservices/LeerlingResource.java | UTF-8 | 3,298 | 2.546875 | 3 | [] | no_license | package nl.hu.ipass.quizschoolapp.webservices;
import javax.json.Json;
import javax.json.JsonArray;
import javax.json.JsonArrayBuilder;
import javax.json.JsonObjectBuilder;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
@Path("/leerlingen")
public class Lee... | true |
c92a1a57c8c3bdb5cb3172d9356fb344666c69a5 | Java | Omnicrola/voxel-cascade | /src/main/java/com/omnicrola/voxel/network/messages/ChatMessage.java | UTF-8 | 780 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package com.omnicrola.voxel.network.messages;
import com.jme3.network.AbstractMessage;
import com.jme3.network.serializing.Serializable;
/**
* Created by omnic on 4/13/2016.
*/
@Serializable
public class ChatMessage extends AbstractMessage {
{
setReliable(true);
}
private String message;
pr... | true |
aa280a355b4afe353209a11cbecb2089359ab006 | Java | raintcs/tcs_cmfz | /src/main/java/com/baizhi/serviceImpl/UserServiceImpl.java | UTF-8 | 3,560 | 2.1875 | 2 | [] | no_license | package com.baizhi.serviceImpl;
import cn.afterturn.easypoi.excel.ExcelExportUtil;
import cn.afterturn.easypoi.excel.entity.ExportParams;
import com.baizhi.dao.UserDao;
import com.baizhi.entity.Banner;
import com.baizhi.entity.EchartsMap;
import com.baizhi.entity.User;
import com.baizhi.service.UserService;
import org... | true |
1df6a94ea864e5767415fb51d7c90f9d379ffdc3 | Java | wenxinIsLucky/SeedCat | /src/com/ymkj/furniture/service/impl/VisitorServiceImpl.java | UTF-8 | 5,816 | 1.875 | 2 | [] | no_license | package com.ymkj.furniture.service.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Service;
import com.ymkj.furniture.entity.Retur... | true |
12e43b341bd9c97ecc7e65a65b36f1647292e92e | Java | geleouet/CGBenchmark | /src/main/java/fr/egaetan/cgbench/services/LastBattlesLoaderService.java | UTF-8 | 3,024 | 2.28125 | 2 | [] | no_license | package fr.egaetan.cgbench.services;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import fr.egaetan.cgbench.api.LastBattlesInterface;... | true |
612226edb947774fdb3fc5affb618ee91bea4a5a | Java | aghassikohistani/Taqdeenadin | /src/singleLevel_Inharitance/Constructor.java | UTF-8 | 527 | 3.28125 | 3 | [] | no_license | package singleLevel_Inharitance;
public class Constructor {
public Constructor(int a, int b, int c, double d, String e) {
}
public Constructor(String a, double b, char g) {
this(33.5,44,"Aghassi Jaan",'A' );
}
public Constructor(int a) {
}
public Constructor(int a, int b) {
System.out.println("I a... | true |
32d1c3b40c3334a987e4cc87a228ed538dee2e91 | Java | realjiang/basicjava | /src/basic/_07thread/_1createdemo/CallableTest1.java | UTF-8 | 1,395 | 4.125 | 4 | [] | no_license | package basic._07thread._1createdemo;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;
/**
* 04 实现callable接口,重写call()方法
*/
class ThirdThread implements Callable<String> { //1。创建callable接口实现类,重写call方法
@Override
public String call() ... | true |
d5e0e4c7d3467d70b4ad78cd064422749f0b5aea | Java | broadinstitute/ddp-study-server | /pepper-apis/dsm-core/src/test/java/org/broadinstitute/dsm/model/elastic/export/generate/OncHistoryDetailSourceGeneratorTest.java | UTF-8 | 2,900 | 1.953125 | 2 | [
"BSD-3-Clause"
] | permissive | package org.broadinstitute.dsm.model.elastic.export.generate;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.broadinstitute.dsm.db.OncHistoryDetail;
import org.broadinstitute.dsm.model.NameValue;
import org.broadinstitute.dsm.model.elastic.export.parse.ValueParser;
import org.broad... | true |
7cffb59825b8e488e4b3df1bbf3162a78ae5f2a1 | Java | HarlH/todolist | /src/main/ui/fields/AddImportanceField.java | UTF-8 | 1,345 | 2.734375 | 3 | [] | no_license | package ui.fields;
import ui.ToDoListUI;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
// a box for user to choose the importance status of the task they want to add
public class AddImportanceField extends JComboBox {
private JComboBox importance;
private ToDo... | true |
e0af90eefd5ce1eafab3ab64cc6296c811695872 | Java | lizhenghong20/web | /China/ravv-core/src/main/java/cn/farwalker/waka/oss/qiniu/QiniuProperties.java | UTF-8 | 1,712 | 2.28125 | 2 | [] | no_license | package cn.farwalker.waka.oss.qiniu;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import cn.farwalker.waka.util.Tools;
/**
* @author: EarthChen
* @date: 2018/03/13
*/
@Component
@ConfigurationProperties(prefix = QiniuProperties.CONFIG... | true |
4cff962f41555a8d2dd68c4e274b837a058147a2 | Java | taejoo1990/Spring_MiniProject2021 | /MiniProjectJava/src/kr/co/softsoldesk/controller/UserController.java | UHC | 6,995 | 2.25 | 2 | [] | no_license | package kr.co.softsoldesk.controller;
import javax.annotation.Resource;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.s... | true |
f2e15cea3f7900c3d444f83c32ff0dcac5504887 | Java | Coder-990/javaparser | /src/main/java/hr/java/parser/main/FilesPrint.java | UTF-8 | 506 | 2.578125 | 3 | [] | no_license | package hr.java.parser.main;
import hr.java.parser.model.WebServers;
import java.util.*;
public class FilesPrint {
public void printMap(Map<List<WebServers>, List<Long>> map) {
for (Map.Entry<List<WebServers>, List<Long>> entry : map.entrySet()) {
new ArrayList<>(entry.getValue()).sort(Compa... | true |
09e0f36107ef88d1b3047a1145f1a90fa42ae1b2 | Java | componize/tc-opts | /src/test/java/org/trancecode/opts/OptionsTest.java | UTF-8 | 7,269 | 2.734375 | 3 | [] | no_license | /*
* Copyright 2011 Herve Quiroz
*
* 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 |
fd881c6df9f1ba8968109928dcf1a92c9d6c5e9d | Java | 1657895829/XiaoYi_EveryDay | /LastMonthExam_ShopCart/src/main/java/com/dhw/lastmonthexam/MainActivity.java | UTF-8 | 2,365 | 2.234375 | 2 | [] | no_license | package com.dhw.lastmonthexam;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.Toast;
import com.dhw.lastmonthexam.adapter.MyAdapter;
import com.dhw.lastmonthexam.bean.So... | true |
f476a34b6f7667159fd0a8329d33cbe51b972d15 | Java | summerxhf/dang | /media-soa/media-soa-provider/src/main/java/com/dangdang/digital/service/IDsPayProductService.java | UTF-8 | 702 | 1.921875 | 2 | [] | no_license | package com.dangdang.digital.service;
import java.util.List;
import com.dangdang.digital.exception.MediaException;
import com.dangdang.digital.model.DsPayProduct;
/**
* DsPayProduct Manager.
*/
public interface IDsPayProductService extends IBaseService<DsPayProduct, Integer> {
/**
*
* Description: 根据需要支付的... | true |
94d06d3b08f7c0c3e6e1b34101d5282f46aae22d | Java | akbarhakim29/restaurant | /customer/src/main/java/com/bymankind/customer/PesanMejaParseJSON.java | UTF-8 | 1,576 | 2.40625 | 2 | [] | no_license | package com.bymankind.customer;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
/**
* Created by Server-Panduit on 8/8/2016.
*/
public class PesanMejaParseJSON {
public static String[] id_makanan;
public static String[] nama;
public static String[] harga;
public... | true |
d6e75ec65f2f15faf5c055d2e8096df754f8d381 | Java | huxf15269179758/joffice_yichun | /app/src/main/java/com/hy/powerplatform/oa_flow/metting/activity/OverOpenDetailActivity.java | UTF-8 | 7,764 | 1.757813 | 2 | [] | no_license | package com.hy.powerplatform.oa_flow.metting.activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TextView;
i... | true |
c7fed6a917d36e5efeef3a6a939157fc27a94be7 | Java | JetBrains/intellij-community | /java/java-tests/testData/ig/com/siyeh/igtest/abstraction/weaken_type/AutoClosableTest.java | UTF-8 | 1,577 | 3.28125 | 3 | [
"Apache-2.0"
] | permissive | package com.siyeh.igtest.abstraction.weaken_type;
import java.io.*;
public class AutoClosableTest
{
public static class Foo
{
public void go() {}
}
public static class Bar extends Foo implements AutoCloseable
{
@Override
public void close() {}
}
public static void... | true |
6532a79525ec61e75b2a46a205a311d1be80c7db | Java | yxd123456/JavaDesignModels | /观察者模式/src/main/java/asus/observermodel/NewspaperOffice.java | UTF-8 | 1,096 | 3.171875 | 3 | [] | no_license | package asus.observermodel;
import java.util.ArrayList;
import java.util.List;
/**
* Created by asus on 2016/7/27.
*/
public class NewspaperOffice {
/**
* 存放所有订阅者的集合
*/
private List<Subject> subjects = new ArrayList<>();
private String state;
/**
* 获取当前状态
* @return
*/
... | true |
84806e2e635fef5af77014a2d356258e7b7cf3a0 | Java | lifengTimo/insurance | /src/main/java/com/lifeng/insurance/model/Disease.java | UTF-8 | 2,603 | 2.421875 | 2 | [] | no_license | package com.lifeng.insurance.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* ... | true |
54ecd4fe3debe2106e58856ce923a005dae7c4f6 | Java | mrea1/YelpSample | /app/src/main/java/matt/rea/yelpsample/network/auth/AuthService.java | UTF-8 | 2,304 | 1.890625 | 2 | [] | no_license | package matt.rea.yelpsample.network.auth;
import android.support.annotation.NonNull;
import com.facebook.stetho.okhttp3.StethoInterceptor;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.lang.reflect.Modifier;
import java.util.List;
import matt.rea.yelpsample.APIConstants;
import static... | true |
36b772923e243d922bcc89c1b834ba80b045a4d3 | Java | honpanloi/myCarDealApp | /com.myCarDealer/src/main/java/com/app/service/impl/LoanCrudServiceImpl.java | UTF-8 | 476 | 2.375 | 2 | [] | no_license | package com.app.service.impl;
import com.app.dao.LoanCrudDAO;
import com.app.dao.impl.LoanCrudDAOImpl;
import com.app.exception.BusinessException;
import com.app.model.Loan;
import com.app.service.LoanCrudService;
public class LoanCrudServiceImpl implements LoanCrudService {
LoanCrudDAO loanCrudDAO = new LoanCrudDA... | true |
409f82b0f9ef5469285b87086acb8705195e9702 | Java | reverseengineeringer/me.lyft.android | /src/com/google/android/gms/internal/zzis.java | UTF-8 | 904 | 1.5 | 2 | [] | no_license | package com.google.android.gms.internal;
@zzir
public class zzis
{
public final zzju zzcdt;
public final zzcx zzcdu;
public final zzjb zzcdv;
public final zzga zzcdw;
public final zzjx zzcdx;
public final zzjd zzcdy;
public final zzjc zzcdz;
public final zzix zzcea;
zzis(zzju paramzzju, zzcx param... | true |
81fa12071181b407c0cd6df2f5dfc91733c997d3 | Java | swapnilsen/OCR_2 | /com/google/android/gms/tagmanager/zzn.java | UTF-8 | 724 | 1.960938 | 2 | [] | no_license | package com.google.android.gms.tagmanager;
import com.google.android.gms.internal.zzah;
import com.google.android.gms.internal.zzai;
import com.google.android.gms.internal.zzak.zza;
import java.util.Map;
class zzn extends zzam {
private static final String ID;
private static final String VALUE;
static {
... | true |
745aad4066ff832fb53dfd9c876a35a129bc4df3 | Java | ui4edc/commedc | /src/cn/com/ecrf/trq/repository/UserMapper.java | UTF-8 | 1,023 | 1.960938 | 2 | [] | no_license | package cn.com.ecrf.trq.repository;
import java.util.List;
import java.util.Map;
import cn.com.ecrf.trq.model.Organization;
import cn.com.ecrf.trq.model.Role;
import cn.com.ecrf.trq.model.User;
public interface UserMapper {
int deleteByPrimaryKey(Integer id);
int insertUser(User user);
int updateU... | true |
4e84e3a18b5be994f42daba7a325b306ad633388 | Java | vladzuev00/employee-project-for-bsu-java | /src/by/bsu/zuevvlad/thirdlab/databaseconnection/DataBaseConnection.java | UTF-8 | 808 | 2.109375 | 2 | [] | no_license | package by.bsu.zuevvlad.thirdlab.databaseconnection;
import by.bsu.zuevvlad.thirdlab.databaseconnection.exception.DataBaseConnectionLoadingException;
import by.bsu.zuevvlad.thirdlab.databaseconnection.exception.DataBaseConnectionReloadingException;
import by.bsu.zuevvlad.thirdlab.entity.Entity;
import java.util... | true |
0383cdf0cb9a78c6cd5fc9ad9d34eb5bef78999e | Java | Dmitry029/Patterns_in_AT | /src/main/java/com/udemy/seleniumdesign/abctractFactory/Chair.java | UTF-8 | 78 | 1.796875 | 2 | [] | no_license | package com.udemy.seleniumdesign.abctractFactory;
public interface Chair {
}
| true |
bb69c23841336a2d8564555d58c5968a29bf08a0 | Java | jianyiee96/eQueue | /eQueue/eQueue-ejb/src/java/util/exceptions/UpdateMenuItemException.java | UTF-8 | 207 | 2.25 | 2 | [] | no_license | package util.exceptions;
public class UpdateMenuItemException extends Exception {
public UpdateMenuItemException() {
}
public UpdateMenuItemException(String msg) {
super(msg);
}
}
| true |
86012d7f0fbdc1310905648b26f3a760606ee5a1 | Java | SuperMap/iMobile-SampleCode | /AndroidStudioSampleCode/CarTracking/app/src/main/java/com/supermap/imobile/streamingapp/LoginActivity.java | UTF-8 | 6,648 | 2.171875 | 2 | [] | no_license | package com.supermap.imobile.streamingapp;
import android.Manifest;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.annotation.TargetApi;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.NonNull;
impo... | true |
325bb581bc4d70c6487937fe3299f1f8931b16dd | Java | Fulcinator/NewScout | /plugin/Autopilot.java | UTF-8 | 3,783 | 2.546875 | 3 | [] | no_license | package plugin;
import java.awt.Point;
import java.util.List;
import scout.AppState;
import scout.LeftClickAction;
import scout.PluginController;
import scout.StateController;
import scout.StateController.Mode;
import scout.StateController.Route;
import scout.Widget;
import scout.Widget.WidgetStatus;
import scout.Wid... | true |
207031810ca13769a4563cb157fa3b5c7b1ed8a2 | Java | zxkazukixz/thewormmaptracking | /MapTracking/src/main/java/com/theworm/mymap/model/Item.java | UTF-8 | 548 | 2.625 | 3 | [] | no_license | package com.theworm.mymap.model;
public class Item {
private Map map;
private int quantity;
public Item() {
super();
}
public Item(Map map, int quantity) {
super();
this.map = map;
this.quantity = quantity;
}
public Map getMap() {
return map;
}
public void setMap(Map map) {
this.map = map;
}
pub... | true |
c222b7b1f4bb0572632c1a7b2c4572b368a6b16f | Java | fomalhaut888/TestWeb8 | /spring/test/spring/di/Main9.java | UTF-8 | 688 | 2.796875 | 3 | [] | no_license | package test.spring.di;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Main9 {
public static void main(String[] args) {
ClassPathXmlApplicationContext context =
new ClassPathXmlApplicationContext("/test/spring/di/ex9.xml");
System.out.println("####################... | true |
5c416e73646f4828ea36e85be06a7438cf70accf | Java | pjfredricks/Spring-Boot-JPA-CRUD | /src/main/java/com/example/sqltest/repository/model/Subscriber.java | UTF-8 | 3,071 | 2.40625 | 2 | [] | no_license | package com.example.sqltest.repository.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
/**
* A class for defining the stru... | true |
48000070304960e47a21c4b0118760a3dba0fe04 | Java | Eugenemdk/Hashing | /src/hashing/Main.java | UTF-8 | 1,382 | 2.921875 | 3 | [] | no_license | package hashing;
import java.util.Hashtable;
public class Main {
public static void main(String[] args) {
HashTableOpenAddressing<String, String> ht = new HashTableOpenAddressing<>();
int h;
System.out.println("hash(a) = " + (h = ht.hash("a")) + ", index(a) = " + ht.getIndex(h));
System.out... | true |
acd7ad7e8e274f2e4198006fb767d994c1f22559 | Java | qiuchili/ggnn_graph_classification | /program_data/JavaProgramData/90/1696.java | UTF-8 | 1,052 | 2.921875 | 3 | [
"MIT"
] | permissive | package <missing>;
public class GlobalMembers
{
public static int make(int m,int n,int x)
{
int i;
int s;
if (m == 0)
{
if (n == 0)
{
return 1;
}
else
{
return 0;
}
}
else
{
s = 0;
for (i = x;i <= n;i++)
{
s = s + make(m - 1, n - i, i);
}
return s;
}
}
p... | true |
8f1cc371c60b0bd18cb9b9b1269c76c9d155daa9 | Java | artburkart/iq | /java_code/src/test/java/com/artvb/iq/chapter1/problem3/PermutationsEqualParameterizedTest.java | UTF-8 | 1,198 | 2.8125 | 3 | [
"MIT"
] | permissive | package com.artvb.iq.chapter1.problem3;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import java.util.Arrays;
import static org.junit.Assert.assertEquals;
@RunWith(value = Parameterized.class)
public class PermutationsEqualParameterizedTest {
private String st... | true |
be8fe91567275e75e0461a7704f542cb19de49b1 | Java | tbmelabs/tbmelabs-authorization-server | /src/main/java/ch/tbmelabs/authorizationserver/domain/association/clientscope/ClientScopeAssociationId.java | UTF-8 | 403 | 1.695313 | 2 | [
"MIT"
] | permissive | package ch.tbmelabs.authorizationserver.domain.association.clientscope;
import ch.tbmelabs.authorizationserver.domain.Client;
import ch.tbmelabs.authorizationserver.domain.Scope;
import java.io.Serializable;
import lombok.Data;
@Data
public class ClientScopeAssociationId implements Serializable {
private static fi... | true |
3d600c588278a32f15017f787454367d190a4e29 | Java | atzberg/mango-selm | /src/MANGO-GUI/src/org/atzberger/mango/atz3d/Atz3D_Element_Points.java | UTF-8 | 7,639 | 2.71875 | 3 | [] | no_license | package org.atzberger.mango.atz3d;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.Ellipse2D;
import java.awt.geom.Line2D;
/**
*
* Provides 3D representation of a collection of points.
*
* @author Paul J. A... | true |
b923dfb1ae7997ca6e33ac36eeb2625808495998 | Java | aashish24/aperture-tiles | /binning-utilities/src/main/java/com/oculusinfo/binning/io/PyramidIOFactory.java | UTF-8 | 4,168 | 1.914063 | 2 | [
"MIT"
] | permissive | /*
* Copyright (c) 2014 Oculus Info Inc. http://www.oculusinfo.com/
*
* Released under the MIT License.
*
* 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, includi... | true |
7d949327ebfc6ddffbc9ac8806275d7ebd1883bb | Java | cbsumankalyan/Learning | /src/main/java/Programs/Palindrome.java | UTF-8 | 291 | 3.0625 | 3 | [] | no_license | package Programs;
public class Palindrome {
public static void main(String[] args) {
String name = "Automation";
String reverseName = "";
for(int i = name.length()-1; i>=0; i--) {
reverseName = reverseName + name.charAt(i);
}
System.out.println(reverseName);
}
}
| true |
7b822e5adf4e96079fdda5c7571c572372bee102 | Java | malagreddy/Basic-Java-Assignments | /CompoundInterest/intr.java | UTF-8 | 603 | 3.5 | 4 | [] | no_license | import java.util.*;
//program to calculate simpleinterest and compound interest
class intr {
public static void main(String[] args) {
double p, t, r, ci, si;
Scanner sc = new Scanner(System.in);
System.out.println("Enter value of p");
p = sc.nextDouble();
System.out.println("Enter value of p");
... | true |
b1fac8eaa22260d30796a1fed303de8e3027548e | Java | canepat/Helios | /test/org/helios/journal/strategy/SeekJournallingTest.java | UTF-8 | 397 | 2.015625 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package org.helios.journal.strategy;
import org.helios.journal.Journalling;
import java.nio.file.Path;
public class SeekJournallingTest extends AbstractJournallingTest
{
@Override
protected Journalling createJournalling(Path journalDir, long journalSize, int pageSize, int journalCount)
{
return n... | true |
fe6a881e5d8efbc58543de15ad08caead36ec76b | Java | cckmit/haoxinqing | /src/main/java/com/aebiz/b2b2c/servicestaff/doctorimport/service/DoctorImportService.java | UTF-8 | 712 | 1.984375 | 2 | [] | no_license | package com.aebiz.b2b2c.servicestaff.doctorimport.service;
import java.util.List;
import org.springframework.web.multipart.MultipartFile;
import com.aebiz.b2b2c.baseframework.basecrud.service.BaseService;
import com.aebiz.b2b2c.servicestaff.doctorimport.vo.DoctorImportModel;
import com.aebiz.b2b2c.servicestaff.doct... | true |
9a75540bd3285793bd6138bc3dcb2fc557b7fca7 | Java | aidendeom/soen387-a1 | /src/org/soen387/app/Register.java | UTF-8 | 5,040 | 2.203125 | 2 | [] | no_license | package org.soen387.app;
import java.io.IOException;
import javax.servlet.Servlet;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.dsrg.soe... | true |
ba1faa007eccac52f74693dd040c260acd564004 | Java | cazanbogdan2000/Navigation-System-using-Dijkstra | /Ambuteiaj.java | UTF-8 | 1,364 | 3.265625 | 3 | [] | no_license | /**
* Clasa care defineste un ambuteiaj; prea simpla si prea evidenta pentru a
* spune prea multe despre ea
*/
public class Ambuteiaj {
private String tipAmbuteiaj;
private int cost;
/**
* Constructor fara parametri
*/
public Ambuteiaj() {
}
/**
* Constructor cu parametri
... | true |
ed9fa6fa35f6a0b55b47cfa5dd9ab5f0a0afd314 | Java | RyanHuai/WhereToBuy | /app/src/main/java/com/mainframevampire/ryan/wheretobuy/database/ProductsDataSource.java | UTF-8 | 23,802 | 2.59375 | 3 | [] | no_license | package com.mainframevampire.ryan.wheretobuy.database;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.mainframevampire.ryan.wheretobuy.model.ProductPrice;
import java.util.ArrayList;
public class Product... | true |
b57b69e06021694a9e8a87d439be9decc46c4f64 | Java | mariotavorsoftware/LoginMvpSampleProject | /app/src/main/java/com/mario/example/loginsampleproject/user/UserModelGateway.java | UTF-8 | 448 | 1.898438 | 2 | [] | no_license | package com.mario.example.loginsampleproject.user;
import com.mario.example.loginsampleproject.base.BaseMvpContract;
/**
* Created by mario on 19/07/18.
* gateway to User model handler
*/
public interface UserModelGateway extends BaseMvpContract.Model {
rx.Observable<Boolean> insertUserDetails(UserLoginInfo i... | true |
3fa96204b9849e3c344be9f3ca55aa68ca234416 | Java | caoyangjie/OSIDocker | /open-service-template/open-web-controller-template/src/main/java/org/osidocker/open/web/converter/DemoConverterVO.java | UTF-8 | 376 | 2.171875 | 2 | [] | no_license | package org.osidocker.open.web.converter;
public class DemoConverterVO {
public String content;
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public DemoConverterVO(String content){
this.content = content;
}
public... | true |
db38b541f903e21c44d49aedf52d9800e1bc9337 | Java | manuelgentile/pxlab | /pxlab/src/main/java/de/pxlab/pxl/display/TeemingPhotometry.java | UTF-8 | 2,181 | 2.59375 | 3 | [
"MIT"
] | permissive | package de.pxlab.pxl.display;
import java.awt.*;
import de.pxlab.awtx.RotatedRectangle;
import de.pxlab.util.Randomizer;
import de.pxlab.pxl.*;
/**
* A Teeming Brightness Photometer pattern as suggested by G. K. Kranewitter
* (2001). Helligkeitsmessung durch Bewegungssehen. Dissertation, Universit�t
* ... | true |