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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
8d56eeec85322a8fad7f42ccdc1777331d41f1aa | Java | ohMinyoung22/tutorial | /EP06/src/newpackage/OnBlockPlace.java | UTF-8 | 602 | 2.125 | 2 | [
"MIT"
] | permissive | package newpackage;
import org.apache.logging.log4j.core.net.Priority;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockPlaceEvent;
public class OnBlockPlace implements Listener {
@EventHandler(priority = Eve... | true |
1bea8d1b12df2c559fe02cbee28de332dba03791 | Java | mmritesh/hacker-rank | /data-structures/src/main/java/arrays/SparseArrays.java | UTF-8 | 871 | 3.1875 | 3 | [] | no_license | package arrays;
import java.util.*;
import java.util.stream.Collectors;
/**
* Created by ritesh on 12/7/17.
*/
public class SparseArrays {
public static void main(String[] args) {
int N, Q;
String lookupString;
Scanner sc = new Scanner(System.in);
N = sc.nextInt();
List<S... | true |
5fe935b894d4b4e9f43b7926309068c381c6aede | Java | koallann/internship-hiring | /app/src/main/java/com/allancslima/omdbclient/data/network/model/MovieResponse.java | UTF-8 | 2,703 | 2.34375 | 2 | [] | no_license | package com.allancslima.omdbclient.data.network.model;
import com.allancslima.omdbclient.data.db.model.Movie;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* Created by Allan Lima on 11/01/2018.
*/
public class MovieResponse {
@Expose
@SerializedName("Po... | true |
d4ff663dc26432e580d1dac5b246fd51edc31681 | Java | engehagen/youtubeVids | /youtubevids/src/inheritance/Tuna.java | ISO-8859-15 | 281 | 2.75 | 3 | [] | no_license | package inheritance;
public class Tuna extends Food {
//subclass
//her overrider jeg eat fra superclassen.
// alt man m gjre er lage den i subclassen med nsket endring.
public void eat(){
System.out.println("I am the new method of Tuna");
}
}
| true |
84d078e3955f07132068be4dd559dd90fde874d7 | Java | 11changwoo/icia | /src/main/java/com/project/ask/ListAsk.java | UTF-8 | 444 | 2.140625 | 2 | [] | no_license | package com.project.ask;
import java.util.ArrayList;
import org.springframework.ui.Model;
import com.project.dao.AskDAO;
import com.project.dto.AskVO;
import com.project.util.Command;
public class ListAsk implements Command {
@Override
public void execute(Model model) {
ArrayList<AskVO> askList = new ArrayList... | true |
d8ef60e219f8b6e037d9299706a8c0b0e7762a96 | Java | yujunyong/Elegant | /src/main/java/org/elegant/web/controller/PropertiesController.java | UTF-8 | 1,611 | 2.171875 | 2 | [] | no_license | package org.elegant.web.controller;
import org.elegant.model.jooq.tables.pojos.Property;
import org.elegant.service.PropertyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
... | true |
0b06b3ad3ee39f4d497268c011f715ac72e2c631 | Java | CBike1103/MyImageViewer | /app/src/main/java/com/example/crossfire/myimageviewer/MyImageView.java | UTF-8 | 1,058 | 2.59375 | 3 | [] | no_license | package com.example.crossfire.myimageviewer;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.ImageView;
/**
* Created by CrossFire on 2016/7/11.
*/
public class MyImageView extends ImageView {
private OnMeasureListener onMeasureListener;
public void setOnMeasureListe... | true |
05d1df3d9110a0dce223ca9339c7879232a9850b | Java | lalitsharma2404/oauth-sample-java | /src/main/java/com/example/oauthsample/db/repository/impl/TokenRepositoryImpl.java | UTF-8 | 320 | 1.578125 | 2 | [] | no_license | package com.example.oauthsample.db.repository.impl;
import com.example.oauthsample.db.domain.Token;
import com.example.oauthsample.db.repository.TokenRepository;
import org.springframework.stereotype.Repository;
@Repository
public class TokenRepositoryImpl extends BaseRepository<Token> implements TokenRepository {
}
| true |
70d6484078b0a543852d3b9e479eb926942f47f1 | Java | lilligao/my-small-gis | /Point.java | UTF-8 | 3,092 | 3.546875 | 4 | [] | no_license | import java.awt.Color;
import java.awt.Graphics;
import java.util.LinkedList;
import java.util.List;
/**
* Klasse, welche eine Punkt Geometrie (2D) repraesentiert.
*
* @author Paul Vincent Kuper (kuper@kit.edu)
*/
public class Point implements Geometry {
// Instanzvariablen:
private int id;
priv... | true |
412921f90e7b56851d80e4ca5b0361d5e11b5cd3 | Java | jhz-zhangding/talk-story | /src/main/java/com/efrobot/talkstory/db/HistoryManager.java | UTF-8 | 3,638 | 2.46875 | 2 | [] | no_license | package com.efrobot.talkstory.db;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.efrobot.talkstory.TalkStoryApplication;
import com.efrobot.talkstory.bean.HistoryBean;
import com.efrobot.talkstory.env.Cons... | true |
90f2fdf51dedd0a9bb16e9bfdd79b64cf8a1086a | Java | cderfdsa/Kindergarteen-management-System | /幼儿园管理/src/windows/Window.java | GB18030 | 40,300 | 2.125 | 2 | [] | no_license | package windows;
import construction.dayInformation;
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.application.Application;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.collections.FXCollections;
import javafx.collections.Observab... | true |
fbd44f4429c0c1d76d2e7476fd2b9a4cc8411ab1 | Java | ArrayDsj/crmModel | /src/com/lovo/netCRM/service/StudentService.java | UTF-8 | 696 | 2.046875 | 2 | [] | no_license | package com.lovo.netCRM.service;
import com.lovo.netCRM.bean.RecallRecordBean;
import com.lovo.netCRM.bean.StudentBean;
import java.util.ArrayList;
/**
* Created by CodeA on 2015/8/24.
*/
public interface StudentService {
public boolean addRecall(RecallRecordBean re);
public boolean addStudent(int school,... | true |
9382b1a34550b87eb07d82d64a15e955b1e7df9b | Java | it85/denali | /backtest-framework/portfolio/src/main/java/data/TraderImpl.java | UTF-8 | 1,353 | 2.75 | 3 | [] | no_license | package data;
import java.math.BigDecimal;
import java.util.Date;
import com.google.inject.Inject;
import com.google.inject.name.Named;
import app.Trader;
import data.common.Recommendation;
import exception.InvalidBuyOrderException;
import exception.InvalidSellOrderException;
/**
* A Trader instance which encapsula... | true |
122b4e01260cbfadddac4df0d7611182eed558a3 | Java | wrjwrjia/bookstore | /DBProject/src/my/DBProject/Book.java | UTF-8 | 1,306 | 2.515625 | 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 my.DBProject;
import java.util.*;
/**
*
* @author jia
*/
public class Book {
private String ISBN; //primary key
... | true |
8a59519844de306726cc7785022445cdf116d07d | Java | Patypus/TES-Alchemy-App | /Studio-Project-NEW/TESAlchemyReference/app/src/main/java/org/pat/howell/tes/alchemyreference/data/entities/Ingredient.java | UTF-8 | 2,335 | 3.03125 | 3 | [] | no_license | package org.pat.howell.tes.alchemyreference.data.entities;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Class representing an ingredient
*/
public class Ingredient implements Parcelable {
/** Identifying number from database */
private int ID;
/** Name of the Ingredient */
private String Name;
... | true |
211b4268ef23449e0d2340b321ac2423a21dfef3 | Java | quintona/storm-cassandra | /src/test/java/backtype/storm/contrib/cassandra/bolt/CassandraBoltTest.java | UTF-8 | 7,653 | 1.804688 | 2 | [] | no_license | package backtype.storm.contrib.cassandra.bolt;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import org.apache.cassandra.config.ConfigurationException;
import org.apache.thrift.transport.TTransportException;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test... | true |
6b2720b36002d3f0e8ae3e33437308f5a8fc1c78 | Java | jiu2645690/xiaoshitest | /src/main/java/com/xiaoshi/order/dao/TranscationDao.java | UTF-8 | 804 | 2 | 2 | [] | no_license | package com.xiaoshi.order.dao;
import com.xiaoshi.order.pojo.entity.Transcation;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;
@Repository
public interface TranscationDao {
/**
* 通过id获取Transcation
*/
Transcation select(Long id);
/**
* 新增Trans... | true |
0010498b5b7483656ff214ba41d4d023094c30e0 | Java | alexprut/LeetCode | /Problems/2315/Solution.java | UTF-8 | 321 | 2.84375 | 3 | [
"MIT"
] | permissive | class Solution {
public int countAsterisks(String s) {
int counter = 0;
boolean inBar = false;
for (int i = 0; i < s.length(); i++) {
if (s.charAt(i) == '|') { inBar = !inBar; }
if (s.charAt(i) == '*' && !inBar) { counter++; }
}
return counter;
}
... | true |
1fe19deb184c858a5cd2b0a2b3ba3c273606821d | Java | vasanthsenthilkumar/Newloginpages | /Newloginpage/src/main/java/com/venkat/entity/Man.java | UTF-8 | 587 | 2.0625 | 2 | [] | no_license | package com.venkat.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Getter;
import lombok.Setter;
@Entity
@Table(name="man")
@Getter
@S... | true |
fdcd3d8a23aae15a0c7d2dbbcfa1e0f19410943e | Java | rajivranjanbuff/Library-management-System | /LibraryManagement/src/LibraryManagement/LibraryManagement.java | UTF-8 | 2,473 | 3.390625 | 3 | [
"MIT"
] | permissive | package LibraryManagement;
import java.util.*;
import com.google.java.contract.Ensures;
import com.google.java.contract.Invariant;
import com.google.java.contract.Requires;
public class LibraryManagement {
public static void main(String[] args)
{
int choice;
Library l=new Library("ABC Library");
l.getLibrar... | true |
8b36d641a76cbd194ea2909a4e1b948a59c753a3 | Java | ansue1234/Physics-Calculator | /src/OneDimension.java | UTF-8 | 4,241 | 3.1875 | 3 | [] | no_license | import java.util.ArrayList;
import java.lang.Math;
public class OneDimension extends Type{ //place where math and the variable input is done in 1 dimension kinematics
private Variable vo;
private Variable vf;
private Variable a;
private Variable t;
private Variable d;
private Variable[] stat;
private b... | true |
8e999807d694ea449ed7e78bdcb8ef1fc8be2830 | Java | ajoluam/cursomc | /src/main/java/com/nelioalves/cursomc/security/JWTAuthenticationFilter.java | UTF-8 | 3,670 | 2.515625 | 3 | [] | no_license | package com.nelioalves.cursomc.security;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springfra... | true |
634b0ee036c461c086cff607f557f67c48a708ec | Java | deepu105/generator-jhipster | /generators/server/templates/src/main/java/package/security/oauth2/_UaaTokenEndpointClient.java | UTF-8 | 2,446 | 1.929688 | 2 | [
"Apache-2.0"
] | permissive | <%#
Copyright 2013-2017 the original author or authors from the JHipster project.
This file is part of the JHipster project, see https://jhipster.github.io/
for more information.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You ... | true |
4681d995942c946450a4ef5d6169529f39763721 | Java | xiantang/java_learn | /doggame1.11/src/view/MyLable.java | UTF-8 | 2,922 | 2.609375 | 3 | [] | no_license | package view;
import model.*;
import thread.BulletMusicThread;
import thread.PaintThread;
import javax.swing.*;
import java.awt.*;
/**
* Created by Administrator on 2018/4/11.
*/
public class MyLable extends JLabel {
public int width;
public int height;
public static Player player;
public FeiTan fe... | true |
ac3d15255166e6d8ebabc353bd3a79affbb49cbf | Java | JohnGZ/parkingpro | /src/main/java/SmartParkingBoy.java | UTF-8 | 577 | 2.84375 | 3 | [] | no_license | public class SmartParkingBoy extends BaseParkManager {
public static String park(Car car) {
int maxRemainingSpace = 0;
ParkingLot parkingLot = null;
for(ParkingLot pl: parkingLots){
if (pl.remainingSpace() > maxRemainingSpace) {
maxRemainingSpace = pl.re... | true |
097119d722f6ffaabd8a50de686fd1b9eb56ef0d | Java | mayijun6607/MyBBS | /src/main/Tiezi/tieziReply/TieziReplyServlet.java | UTF-8 | 3,137 | 2.125 | 2 | [] | no_license | package main.Tiezi.tieziReply;
import com.mchange.v2.c3p0.ComboPooledDataSource;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;
import main.domain.tiezi.ReplyTiezi;
import javax.servlet.ServletException;
import javax.ser... | true |
42e4fc8f06c254674d8500d5508274c9c16428ef | Java | heshanpadmasiri/WingZigC | /src/main/java/heshan/compilertheory/parser/Compiler.java | UTF-8 | 10,341 | 2.78125 | 3 | [] | no_license | package heshan.compilertheory.parser;
import java.io.FileWriter;
import java.io.IOException;
import java.nio.file.Path;
import java.util.LinkedList;
import java.util.List;
import java.util.stream.Collectors;
public class Compiler {
private List<String> program;
private AbstractSyntaxTree ast;
private Symb... | true |
d3638c3f2ba0b22c96e82eec95b10c4f8753438e | Java | pxson001/facebook-app | /classes5.dex_source_from_JADX/com/facebook/widget/RoundedDrawSizeParams.java | UTF-8 | 885 | 1.898438 | 2 | [] | no_license | package com.facebook.widget;
import javax.annotation.concurrent.Immutable;
@Immutable
@Deprecated
/* compiled from: com.google.android.gms.clearcut.service.START */
public class RoundedDrawSizeParams {
public final int f5752a;
public final int f5753b;
public final int f5754c;
public final int f5755d;
... | true |
d85d9824a946b71b6aae41e179c8c2544fb860b4 | Java | data2health/GraphTagLib | /src/main/java/edu/uiowa/slis/graphtaglib/CommunityDetection/Detector.java | UTF-8 | 4,846 | 2.515625 | 3 | [] | no_license | package edu.uiowa.slis.graphtaglib.CommunityDetection;
import java.io.IOException;
import java.util.Random;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
public abstract class Detector {
static Logger logger = LogManager.getLogger(Detector.class);
enum ModularityType {
st... | true |
8f2f04f2091bdbc867998a9eeb5c20a82c799e64 | Java | Rabbi50/JavaProgramming | /classWork/src/com/lab/work/Stuff.java | UTF-8 | 371 | 2.859375 | 3 | [] | no_license | package com.lab.work;
public class Stuff extends Employee implements IService {
public Stuff(String name, String id) {
super(name, id);
}
public void roomRant() {
System.out.println("Room is available");
}
public void foodService() {
System.out.println("Give food for breakfast");
}
public void roomClea... | true |
42f8376676b44dd284ba660fbe86b5ee2625387f | Java | Robin-jiangyufeng/LazyNetForAndroid | /LazyNet/src/main/java/com/robin/lazy/net/http/core/HttpError.java | UTF-8 | 15,800 | 2.5625 | 3 | [] | no_license | package com.robin.lazy.net.http.core;
import java.io.Serializable;
/**
* http请请求状态反馈
*
* @author 江钰锋
* @version [版本号, 2015年1月13日]
* @see [相关类/方法]
* @since [产品/模块版本]
*/
public class HttpError implements Serializable {
/**
* serialVersionUID
*/
private static final long serialVersionUID = 1L;
... | true |
19c30fa7c1add51e4edf16510792462053f8d294 | Java | alim-firejack/Firejack-Platform | /integration/src/main/java/net/firejack/platform/web/security/oauth/provider/HttpEntryPoint.java | UTF-8 | 1,809 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | /*
* Firejack Open Flame - Copyright (c) 2011 Firejack Technologies
*
* This source code is the product of the Firejack Technologies
* Core Technologies Team (Benjamin A. Miller, Oleg Marshalenko, and Timur
* Asanov) and licensed only under valid, executed license agreements
* between Firejack Technologies ... | true |
86d59225386e542c7b6defd431c8e8fc5ef0eaa5 | Java | VictorT314/turma11java | /java/exercicios/src/entidades/Animal.java | ISO-8859-2 | 664 | 3.40625 | 3 | [] | no_license | package entidades;
public class Animal {
private String nome;
private int idade;
//CONSTRUTORES
public Animal() {
}
public Animal(String nome, int idade) {
this.nome = nome;
this.idade = idade;
}
//GETTERS + SETTERS
public String getNome() {
return nome;
}
public void setNome(String nome) {
t... | true |
5c6ae69afad10aab6bdf766db7ea8869250815a6 | Java | InnocentSmile/BMS | /src/bookAction/UpdatebookAction.java | UTF-8 | 5,276 | 2.109375 | 2 | [] | no_license | package bookAction;
import org.apache.struts2.interceptor.ServletResponseAware;
import com.opensymphony.xwork2.ActionSupport;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.interceptor.ServletResponseAware;
imp... | true |
4f96303a67fb15921fc4753660f08adfa6a6ab0b | Java | luhcas/Opencast-Matterhorn | /modules/matterhorn-distribution-service-youtube/src/main/java/org/opencastproject/distribution/youtube/endpoint/YouTubeDistributionRestService.java | UTF-8 | 5,721 | 1.976563 | 2 | [] | no_license | /**
* Copyright 2009, 2010 The Regents of the University of California
* Licensed under the Educational Community 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.osedu.org/licenses/ECL-2.0
*
* ... | true |
b0e9e02b67d86a45724acc6f712b2ae6aff2721f | Java | cryptobroiler/opds-library | /src/org/highscreen/library/database/DBController.java | UTF-8 | 6,512 | 2.265625 | 2 | [] | no_license | package org.highscreen.library.database;
import java.io.LineNumberReader;
import java.io.Reader;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import j... | true |
581b58cb0abec506aa58249dadb5ce68f6abff7f | Java | 723854867/rapid_old | /rapid-util/src/main/java/org/rapid/util/common/converter/str/Str2ByteConverter.java | UTF-8 | 570 | 2.640625 | 3 | [] | no_license | package org.rapid.util.common.converter.str;
import org.rapid.util.common.converter.StrConverter;
import org.rapid.util.exception.ConvertFailuerException;
public class Str2ByteConverter implements StrConverter<Byte> {
public static final Str2ByteConverter INSTANCE = new Str2ByteConverter();
@Override
... | true |
ad36e54fd2daffda70a474bdf547842f67acf3af | Java | shashajing/myRep | /benison/src/main/java/com/shashajing/benison/dao/MyBatisDao.java | UTF-8 | 372 | 1.828125 | 2 | [] | no_license | package com.shashajing.benison.dao;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 标识MyBatis的DAO,用于扫描.
*
* @author yanghanjing
*
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYP... | true |
d278f7fbbfea701ab97c292c99f1f04b5047ac55 | Java | JobYuan0/leetcode | /leetcode/editor/cn/有效的括号字符串.java | UTF-8 | 2,090 | 3.84375 | 4 | [] | no_license | package leetcode.editor.cn;
import java.util.*;
//给定一个只包含三种字符的字符串:( ,) 和 *,写一个函数来检验这个字符串是否为有效字符串。有效字符串具有如下规则:
//
//
// 任何左括号 ( 必须有相应的右括号 )。
// 任何右括号 ) 必须有相应的左括号 ( 。
// 左括号 ( 必须在对应的右括号之前 )。
// * 可以被视为单个右括号 ) ,或单个左括号 ( ,或一个空字符串。
// 一个空字符串也被视为有效字符串。
//
//
// 示例 1:
//
//
//输入: "()"
//输出: True
//
//
// 示例 2:
//
... | true |
598d585c1e0da81f1c1f516618edc5cd7eca31cf | Java | randyzingle/javaalg | /algorithms/princeton/src/com/bms/alg/ds/StackArray.java | UTF-8 | 429 | 3.03125 | 3 | [] | no_license | package com.bms.alg.ds;
public class StackArray<Item> {
private int cnt = 0;
private Item[] items;
public StackArray() {
// start with a default stack size of 10
this(10);
}
public StackArray(int initCapacity) {
items = (Item[])new Object[initCapacity];
}
public void push(Item item) {
// push
}... | true |
105be2cb29b4e93c025fb8d0bc02d0e082955306 | Java | pyadla/OMBAdatabase | /src/com/OMBAdatabase/ItemFiles/Beneficiary.java | UTF-8 | 1,556 | 2.328125 | 2 | [] | no_license | package com.OMBAdatabase.ItemFiles;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class Beneficiary {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String customerId... | true |
85e103372c18f53edbf045b99cffe6f16bf25f06 | Java | Eymir/android-wakeup | /WakeUp/src/com/xiaoai/wakeup/activity/ActivityMain.java | WINDOWS-1252 | 4,487 | 2.25 | 2 | [] | no_license | package com.xiaoai.wakeup.activity;
import java.util.ArrayList;
import java.util.List;
import android.app.ActivityGroup;
import android.app.LocalActivityManager;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import andro... | true |
9be62c051043c704a2320260a7cc7a09db69b2b5 | Java | raginggeek/sr4character | /src/test/java/com/raginggeek/sr4character/gear/Augmentation/CyberwareTest.java | UTF-8 | 4,580 | 2.6875 | 3 | [
"MIT"
] | permissive | package com.raginggeek.sr4character.gear.Augmentation;
import com.raginggeek.sr4character.gear.AvailabilityRating;
import com.raginggeek.sr4character.gear.GearSizes;
import com.raginggeek.sr4character.gear.MatrixAttributes;
import org.junit.Test;
import static org.junit.Assert.*;
public class CyberwareTest {
@T... | true |
d68768c8cd7faa495b223adead9f14b0000da719 | Java | RadBuilder/UltraCosmetics | /core/src/main/java/be/isach/ultracosmetics/cosmetics/gadgets/GadgetTsunami.java | UTF-8 | 3,351 | 2.359375 | 2 | [] | no_license | package be.isach.ultracosmetics.cosmetics.gadgets;
import be.isach.ultracosmetics.UltraCosmetics;
import be.isach.ultracosmetics.cosmetics.type.GadgetType;
import be.isach.ultracosmetics.player.UltraPlayer;
import be.isach.ultracosmetics.util.MathUtils;
import be.isach.ultracosmetics.util.Particles;
import be.i... | true |
3ad3c7e52f3bce59250a3a691e223132e640752d | Java | IUT-Blagnac/MPA2014G1A2 | /sprint_5/src/Role.java | ISO-8859-1 | 192 | 1.84375 | 2 | [] | no_license |
/**
* Represente les differentes taches pouvant tre effectu par un intervenant pour encadrer
* @author Groupe1A2
*
*/
public enum Role {Superviseur,Client,Support_Technique}
| true |
d6f9c88095fa1734f9eb28b2d613281a0a4c6be3 | Java | tim-butterworth/portsAndAdaptersBigExample | /application/fake-adapters/src/main/java/com/application/organization/portsandadapters/shipments/fakeController/FakeShipmentsController.java | UTF-8 | 1,163 | 2.359375 | 2 | [] | no_license | package com.application.organization.portsandadapters.shipments.fakeController;
import com.application.organization.portsandadapters.shipments.FakeShipmentsRepository;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;... | true |
e9413baa4e0581ce30e904b012f50e0bb12a3b5f | Java | gonzalohk/api-rest-testing-cucumber-restassured | /src/test/java/report/ReportGenerator.java | UTF-8 | 1,179 | 2.125 | 2 | [] | no_license | package report;
import net.masterthought.cucumber.Configuration;
import net.masterthought.cucumber.ReportBuilder;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
public class ReportGenerator {
public static void main(String[]args){
//Relative path to generate report.json
S... | true |
c181e7c2bb1cb9980bbf20c77b8bee64d1eea62a | Java | bradtaniguchi/SearchControlAlgo_AI411 | /TileProblem/src/State.java | UTF-8 | 545 | 2.859375 | 3 | [] | no_license | import java.util.ArrayList;
/**
*
* @author brad
*/
public interface State {
//Determine if state is the winning state
boolean isGoal();
//create a list of successors from the current state
ArrayList<State> gen_children();
//EXPERIMENTAL
//Only creates children that are not already ... | true |
af0e5d8d85dd12bc63ac399dad99adfa0bd0eb83 | Java | aalapdesai112/IssueTrackingSystem | /ISSUETRACKINGSYSTEM/src/dsynhub/its/controller/module/ModuleInsertServlet.java | UTF-8 | 4,217 | 2.28125 | 2 | [] | no_license | package dsynhub.its.controller.module;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.regex.Pattern;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Htt... | true |
eeb2e418636872c9b5aa7bd2d5621d817373a6cb | Java | Blackfact/SpringBoot | /spring-mybatis-test/src/main/java/com/owen/springmybatistest/SpringMybatisTestApplication.java | UTF-8 | 369 | 1.6875 | 2 | [] | no_license | package com.owen.springmybatistest;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringMybatisTestApplication {
public static void main(String[] args) {
SpringApplication.run(Spr... | true |
36d10e6af7edbf23f534c927e6f72fbb08eff539 | Java | kkyehit/vscodeOnline-pratics | /backend/src/main/java/com/vscode/req/onlinevscode/config/KuberentesConfig.java | UTF-8 | 440 | 1.632813 | 2 | [] | no_license | package com.vscode.req.onlinevscode.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import io.fabric8.kubernetes.client.DefaultKubernetesClient;
import io.fabric8.kubernetes.client.KubernetesClient;
@Configuration
public class KuberentesConfig... | true |
a75db138d4bf781097af3bc40ef136f4b397c556 | Java | TheCardinalSystem/Tutorial-Bot | /src/com/Cardinal/TutorialBot/Command/Moderation/CommandKick.java | UTF-8 | 1,497 | 2.671875 | 3 | [] | no_license | package com.Cardinal.TutorialBot.Command.Moderation;
import java.util.EnumSet;
import com.Cardinal.CommandPackage.Command.ArgumentTypes;
import com.Cardinal.CommandPackage.Command.ICommand;
import com.Cardinal.CommandPackage.Command.Category.DefaultCategories;
import com.Cardinal.CommandPackage.Command.Category.ICate... | true |
31216083c876cbd4c4a8fec33a25ce054bda8911 | Java | Gatimelo/PJS4-2 | /src/main/java/com/example/PJS4_2/LoginAssoServlet.java | UTF-8 | 1,656 | 2.40625 | 2 | [] | no_license | package com.example.PJS4_2;
import lib.Association;
import persistant.Data;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;
@WebServlet(name = "LoginAssoServlet", value = "/login/association")
public class LoginAssoServlet extends HttpServlet {
... | true |
66bdfc5ba1fad7d31738f2740141a6c2fbf054d0 | Java | vikas-thecoder/Coursera-DS-Specialization | /Week 4/Inversions.java | UTF-8 | 2,324 | 3.796875 | 4 | [] | no_license | /*
Problem Description
Task. The goal in this problem is to count the number of inversions of a given sequence.
Input Format. The first line contains an integer 𝑛, the next one contains a sequence of integers 𝑎0, 𝑎1, . . . , 𝑎𝑛 1.
Constraints. 1 ≤ 𝑛 ≤ 105, 1 ≤ 𝑎𝑖 ≤ 109 for all 0 ≤ 𝑖 < 𝑛.
Output Format. Output... | true |
1c9e1e398d066243887cae26efd2babf63e454c4 | Java | PrinceCodeur/GestEcole | /src/main/java/com/ecole/entities/Horaire.java | UTF-8 | 2,110 | 2.28125 | 2 | [] | no_license | package com.ecole.entities;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
@Entity
public class Horaire implements Serializabl... | true |
0587acfaea75718d74cd95351833ce0f72bb35c9 | Java | samuelsilveiram/springboot-msql-jpa | /src/main/java/br/com/updateapp/updateapp/UpdateAppApplication.java | UTF-8 | 797 | 1.890625 | 2 | [] | no_license | package br.com.updateapp.updateapp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationCon... | true |
f2d1352a45a3bdfe375203bc2eb277359a68f171 | Java | claramente9/jse | /src/main/java/m14/s15/Blog.java | UTF-8 | 759 | 3.15625 | 3 | [] | no_license | package m14.s15;
import java.util.HashSet;
import java.util.Set;
public class Blog implements Publisher {
private Set<Subscriber> observers;
private String name;
private String currentPostTitle;
public Blog(String name) {
this.name = name;
this.observers = new HashSet<>();
thi... | true |
cb0eedc95d189a589bb30a3a6fc199a2b85af15d | Java | GamaX320/PROJ_T_POST | /app/src/main/java/com/tarpost/bryanty/proj_t_post/fragment/EventDetailsFragment.java | UTF-8 | 3,738 | 2.171875 | 2 | [] | no_license | package com.tarpost.bryanty.proj_t_post.fragment;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.TextView;
import android.widget... | true |
13369d5bd8b4ef12cc9e0eafac07beee107b1ab1 | Java | UnitecSPS/Programacion2_2_4_2012 | /src/Examenes/Parcial1/Servicio.java | UTF-8 | 855 | 2.875 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Examenes.Parcial1;
import java.util.Date;
/**
*
* @author Gotcha
*/
public class Servicio {
protected int codigo;
protected String nombre;
protected Date fecha;
protected double monto;
p... | true |
4774b040e95b0c62a3e097589957af07e95769cd | Java | defrac/defrac-plugin-intellij | /src/defrac/intellij/facet/DefracFacetEditorTab.java | UTF-8 | 8,292 | 1.546875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 defrac 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 to in w... | true |
2998a5e472e3d18ebf5a645592b4895e30560034 | Java | Knight1996/HuaWeiTest | /src/main/java/汽水瓶.java | UTF-8 | 1,471 | 3.625 | 4 | [] | no_license | /**
* @author : Knight
* @program : 华为机试
* @description : 汽水瓶
* @date : 2021-01-01 15:24
**/
//-------------------------数学方法-----------------------
import java.util.* ;
public class Main{
public static void main(String[] args){
Main solution = new Main() ;
}
public Main(){
Scanner sca... | true |
0f7cae7d3b56124641d9c9cd750c57c2c56a4296 | Java | NunoDomingues/EAPLI_PL_2DB | /eapli.expensemanager/src/Presentation/ListExpenseTypeUI.java | UTF-8 | 548 | 2.3125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Presentation;
import Controllers.ExpenseTypeController;
/**
*
* @author Emanuel
*/
public class ListExpenseTypeUI{
public void mainLoop() {
System.out.println("* * * LIST E... | true |
5387bdc33765d3f743e9659545bb2668d5da3e42 | Java | masume-cetin/ARTE | /app/src/main/java/com/example/jojoproject/NewArt.java | UTF-8 | 2,436 | 2.15625 | 2 | [] | no_license | package com.example.jojoproject;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.net.Uri;
import android.os.Bundle;
import... | true |
b03b94d6a40be76e6bfe97bd6189ec798bcd3566 | Java | RemainCurly/SkyMail3000 | /src/org/csc133/a3/ExitCommand.java | UTF-8 | 585 | 2.71875 | 3 | [] | no_license | package org.csc133.a3;
import com.codename1.ui.Command;
import com.codename1.ui.Dialog;
import com.codename1.ui.Display;
import com.codename1.ui.events.ActionEvent;
public class ExitCommand extends Command
{
public ExitCommand()
{
super("Exit");
}
@Override
public void actionPerformed(Act... | true |
2e08a273ee1ea64ebe3631a4649b8b4aa7ef991c | Java | tramanh0105/PollApp | /src/main/java/com/pollapp/pollapp/role/RoleRepo.java | UTF-8 | 265 | 1.875 | 2 | [] | no_license | package com.pollapp.pollapp.role;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface RoleRepo extends JpaRepository<Role, Long> {
Role findByRoleName(RoleName name);
}
| true |
c4a6bd57c8b4576edf426fe36b10177beaac399a | Java | fraudbusters/fraudbusters-management | /src/main/java/com/rbkmoney/fraudbusters/management/domain/payment/PaymentReferenceModel.java | UTF-8 | 449 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | package com.rbkmoney.fraudbusters.management.domain.payment;
import com.rbkmoney.fraudbusters.management.domain.ReferenceModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ToString(callSupe... | true |
d903bc5efee2cfde9897ac2f9b719abfab4658b5 | Java | AliveStill/chaos | /src/main/java/alivestill/VectorEfficiency.java | UTF-8 | 1,505 | 3.109375 | 3 | [] | no_license | package alivestill;
import java.sql.Array;
import java.util.ArrayList;
import java.util.List;
import java.util.Vector;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class VectorEfficiency {
private final static int COUNT = 1 << 24; // 16M
private final static i... | true |
fc7c873bbcfddcd81c64bacf5408c0aeb69a1bcf | Java | fanxunlian/mama-baike | /src/main/java/com/mama/baike/service/TopicManagerService.java | UTF-8 | 618 | 1.820313 | 2 | [] | no_license | package com.mama.baike.service;
import com.mama.baike.entity.topic.TopicManagerEntity;
import com.mama.baike.entity.topic.TopicManagerQuery;
import java.util.List;
public interface TopicManagerService {
/**
* 查询话题管理员
*/
public TopicManagerEntity findTopicManager(TopicManagerQuery topicManagerQuery)... | true |
15380e385483549337a1e271d84fc096b854021e | Java | jshaw93/ClueHelper | /build/tmp/expandedArchives/forge-1.15.2-31.2.0_mapped_snapshot_20200816-1.15.1-sources.jar_a394bb9679754f0926bb9b61d20f7dc3/net/minecraft/network/play/client/CLockDifficultyPacket.java | UTF-8 | 1,317 | 2.625 | 3 | [] | no_license | package net.minecraft.network.play.client;
import java.io.IOException;
import net.minecraft.network.IPacket;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.IServerPlayNetHandler;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
public class ... | true |
29f18c457b61d24a5876656c1d319bc1c11dd636 | Java | inigodm/thermostat | /src/com/inigo/domotik/utils/DateUtils.java | UTF-8 | 680 | 3.109375 | 3 | [] | no_license | package com.inigo.domotik.utils;
import java.util.Calendar;
import java.util.Date;
public class DateUtils {
public static String[] DAYS = {"D","L","M","X","J","V","S"};
public static String dayOfWeek(){
Calendar c = Calendar.getInstance();
c.setTime(new Date());
return DAYS[c.get(Calendar.DAY_OF_WEEK)-1];
... | true |
6a71c2c76822f8ef3ab066612289d612d239f7e3 | Java | davidrudder23/applicantchatter | /app/models/Answer.java | UTF-8 | 1,509 | 2.390625 | 2 | [] | no_license | package models;
import java.util.Date;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import controllers.Security;
import play.db.jpa.Model;
@Entity
public class Answer extends Model {
@ManyToOne
public Question question;
public Strin... | true |
947bb5e280b53867edb97553bba834b230193b2b | Java | ivanrezic/JavaHW | /hw15-0036488109/src/main/java/hr/fer/zemris/java/web/init/Util.java | UTF-8 | 3,629 | 2.609375 | 3 | [] | no_license | package hr.fer.zemris.java.web.init;
import java.util.Date;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import hr.fer.zemris.java.dao.jpa.JPADAOImpl;
import hr.fer.zemris.java.model.BlogComment;
import hr.fer.zemris.java.model.BlogEntry;
import hr.fer.zemris.java.model.Blog... | true |
046f71845693860286a3eaff886f7ee6ea2ecc45 | Java | jsiyoon/JAVA_Lecture02 | /java20210901/src/s210903_2abstract_method/Dog.java | UHC | 288 | 3.296875 | 3 | [] | no_license | package s210903_2abstract_method;
public class Dog extends Animal{
//Ŭ ҵ ִٸ
// Ŭ ü Ŭ϶
// ҵ ؾ.
@Override
public void sound() {
System.out.println("۸");
}
}
| true |
78154572cbc82495c132b49829a466ceafd7c51b | Java | sim-repo/log-service | /src/main/java/com/simple/server/domain/contract/BusClassificator.java | UTF-8 | 1,655 | 2.203125 | 2 | [] | no_license | package com.simple.server.domain.contract;
import java.util.HashSet;
import java.util.Set;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.simple.server.domain.AbstractLog... | true |
343d5911fe4ef62ea13b010f8d7380d745b95cea | Java | jgperrin/net.jgp.books.spark.ch02 | /src/main/java/net/jgp/books/spark/ch02/lab110_csv_to_derby/CsvToApacheDerbyApp.java | UTF-8 | 5,109 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | package net.jgp.books.spark.ch02.lab110_csv_to_derby;
import static org.apache.spark.sql.functions.concat;
import static org.apache.spark.sql.functions.lit;
import java.net.InetAddress;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java... | true |
d722688383743d50cb261bb60195a981a0e506e0 | Java | liujia1990/JLF | /JLF-PLUGIN/JLF-PLUGIN-THREADPOOL/JLF-PLUGIN-THREADPOOL-SERVER/JLF-PLUGIN-THREADPOOL-CUSTOM-SERVER/src/main/java/org/jlf/plugin/server/core/threadPool/custom/FutureExt.java | IBM852 | 650 | 2.421875 | 2 | [] | no_license | package org.jlf.plugin.server.core.threadPool.custom;
import java.util.concurrent.Future;
/**
*
* @ClassName: FutureExt
* @Description:Futureչ
* @author Lone Wolf
* @date 201975
* @param <T>
*/
public class FutureExt<T extends Object> {
private Future<String> future;
private T bean;
public FutureExt(Futu... | true |
ec14766ba57ae66d508e7d8f24a9e9cafa37e189 | Java | onap/policy-drools-pdp | /feature-pooling-dmaap/src/test/java/org/onap/policy/drools/pooling/message/LeaderTest.java | UTF-8 | 2,652 | 2.234375 | 2 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | /*
* ============LICENSE_START=======================================================
* ONAP
* ================================================================================
* Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
* ===================================================================... | true |
2d68e290c25bfda58a2f78ad94176d061d9b55a4 | Java | sunset233/Javacode | /src/main/java/com/Service/Registe.java | UTF-8 | 318 | 1.734375 | 2 | [] | no_license | package com.Service;
import org.apache.catalina.User;
import org.springframework.stereotype.Service;
import com.Model.user;
@Service
public interface Registe {
//public user SelectUser(String uid,String pwd);
//往数据库中存储信息
public Boolean registe(String uid, String pwd,Integer gender);
}
| true |
3694359976bb67bf87124ff34bb8d8864544b59a | Java | freiric/fre-rcer | /net.sf.rcer.conn.test/src/net/sf/rcer/conn/locales/LocaleConverterTest.java | UTF-8 | 2,908 | 2.3125 | 2 | [] | no_license | /**
* Copyright (c) 2008, 2010 The RCER Development Team.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html. If redistri... | true |
d20515831f1180834b4eabdd0e4cd8398fdeed16 | Java | leejhawkins/ss_salesforce_2020 | /salesforce_wk1_assignment/src/com/ss/sf/week1/SumClump.java | UTF-8 | 853 | 3.15625 | 3 | [] | no_license | /**
*
*/
package com.ss.sf.week1;
/**
* @author leejh
*
*/
public class SumClump {
/**
* @param args
*/
public static void main(String[] args) {
int start1 = 0;
int[] intArr1 = new int[] {1,4,4,6,8};
int target1 = 14;
System.out.println(SumClump.sumClump(start1, intArr1, target1));
}
public sta... | true |
d32f4615da8d35d5616022dc87a6ea0317d84189 | Java | vrviu-sdk/AltPlayer-SDK-Android | /VRVIU-AltPlayer-Demo-Android/app/src/main/java/com/vrviu/demo/player/PlayerActivity.java | UTF-8 | 7,565 | 1.8125 | 2 | [] | no_license | /**
* @version V1.0
* @Title: com.silver.player.vrplayer
* @Description: Added by kevin.zha@vrviu.com
* @date 2018/3/5 20:05
*/
package com.vrviu.demo.player;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.KeyEvent;
import androi... | true |
e37d8e8ba7909cb9567c517e01e3a202d2622799 | Java | LuizGGeas/teorema-teste-seletivo | /Plantas-REST/src/main/java/com/example/teorema/plantas/model/CaracteristicaModel.java | UTF-8 | 1,543 | 2.609375 | 3 | [] | no_license | package com.example.teorema.plantas.model;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
@Getter
@Setter
@Entity()
@Table(name = "caracteristica")
public class CaracteristicaModel imple... | true |
00b3af5abdd672f18cb34ea57860ce149f4ac51a | Java | NotSoMadMax/PuzzlesForFun | /src/Medium/MaximumBinaryTree.java | UTF-8 | 728 | 3.46875 | 3 | [] | no_license | package medium;
public class MaximumBinaryTree {
private TreeNode constructMaximumBinaryTree(int[] nums) {
if(nums == null)
return null;
return construct(nums, 0, nums.length - 1);
}
private TreeNode construct(int[] nums, int l, int r){
if(l > r)
return nu... | true |
754ceab49c49c4949a39a909aeb6a350e5355235 | Java | cjyssk/state | /src/main/java/com/zect/config/ActivityStateMachineBuilder.java | UTF-8 | 4,911 | 2.125 | 2 | [] | no_license | package com.zect.config;
import com.zect.domain.ActivityDTO;
import com.zect.domain.ActivityEvents;
import com.zect.domain.ActivityStates;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.statemachine.StateMachine;
import org.springframework.statemachine.config.EnumStateMachineConfigure... | true |
c142c7b900bbc7d4af22ae8ec14e6d4dbcba6b90 | Java | Water-Cat1/FelisBotus | /FelisBotus/src/com/q3/qubedBot/streamAPIs/beam/Beam_Stream.java | UTF-8 | 1,067 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package com.q3.qubedBot.streamAPIs.beam;
import com.google.gson.JsonObject;
public class Beam_Stream {
boolean online;
String username;
String title;
String game;
String url;
public void load(JsonObject jObject) {
setUser(jObject.getAsJsonPrimitive("token").getAsString());
setTitle(jObject.getAsJsonPrimitive("... | true |
c486e8a88e23417382a9f23510b82d40234a902e | Java | DariaFilateva/SbrfStudy | /src/logging/loggerAndException/IllegalPackageException.java | UTF-8 | 146 | 1.554688 | 2 | [] | no_license | package logging.loggerAndException;
/**
* Created by Dasha on 13.01.2018.
*/
public class IllegalPackageException extends RuntimeException {
}
| true |
af998fd58310775a107ec720a103483e993a8dbe | Java | hiwepy/shiro-antisamy-spring-boot-starter | /src/main/java/org/apache/shiro/spring/boot/antisamy/web/filter/HttpServletRequestAntisamyFilter.java | UTF-8 | 4,653 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package org.apache.shiro.spring.boot.antisamy.web.filter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org... | true |
a3165f0b693c3b4231760e70683c0cb50c19fd08 | Java | Molybden/gradle-in-practice | /gradle-open-labs/example/src/main/java/se/molybden/Class8380.java | UTF-8 | 109 | 2.125 | 2 | [] | no_license |
public class Class8380{
public void callMe(){
System.out.println("called");
}
}
| true |
1043e6bfcae228f0675ea409ca2a4bcbb5aef67b | Java | jiahengzhang66/moblima | /src/moblima/Rating.java | UTF-8 | 951 | 2.953125 | 3 | [] | no_license | package moblima;
public class Rating {
private String title;
private int movieID;
private double rating;
private int timesRated;
private double totalRating;
public Rating(String title, int movieID, double rating, int timesRated, double totalRating) {
this.title = title;
this.movieID = movieID;... | true |
b1b678d737fb1ab71d48fd631f739fa61627864f | Java | ngTienPhat/NMCNPM_Group13 | /app/src/main/java/group13/ntphat/evernote/ui/notes/ViewNoteActivity.java | UTF-8 | 11,136 | 1.867188 | 2 | [] | no_license | package group13.ntphat.evernote.ui.notes;
import android.Manifest;
import android.app.Activity;
import android.app.Dialog;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.Me... | true |
dd0c347d487139255755ef16a6b67cc870d8394e | Java | itumeleng96/ass_par | /src/avgSunSeq.java | UTF-8 | 4,398 | 2.921875 | 3 | [] | no_license | import java.io.PrintWriter;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.util.Scanner;
import java.io.FileWriter;
import java.util.Arrays;
import java.util.l... | true |
3d6adf726e9e18c97114f05705bbeb312981aca4 | Java | sbm4034/ABILYTICS | /app/src/main/java/com/Wipocab/abilytics/application/MainActivity.java | UTF-8 | 2,787 | 2.0625 | 2 | [] | no_license | package com.Wipocab.abilytics.application;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import andro... | true |
2c4e36da2a4f491645f4893720b10aa484715749 | Java | Thyxiaoyu/JianZhiOffer | /src/main/java/JianZhiOffer/Q66/Q66Solution.java | UTF-8 | 231 | 1.71875 | 2 | [] | no_license | package JianZhiOffer.Q66;
/**
* @author ThyXiaoyu
* @create 2019-05-06 22:04
*/
public class Q66Solution {
public static void main(String[] args) {
int[] test = new int[]{};
Multiply.multiply(test);
}
}
| true |
0d72d3f5833670b15514b7aac47f95c6cc5706df | Java | nhattruongagtm/Project_CNPM | /app/src/main/java/com/example/project_cnpm/Model/DishDetail.java | UTF-8 | 1,286 | 2.40625 | 2 | [] | no_license | package com.example.project_cnpm.Model;
public class DishDetail {
private String idDish;
private String idSize;
private int restNumber;
private int status;
public DishDetail(String idDish, String idSize, int restNumber, int status) {
this.idDish = idDish;
this.idSize = idSize;
... | true |
00e7b094410639b35709874640054a2aaf40ab42 | Java | JohanRISPAL/examJeeRISPALJohan | /src/main/java/com/humanbooster/examJee/model/Annonce.java | UTF-8 | 1,747 | 2.609375 | 3 | [] | no_license | package com.humanbooster.examJee.model;
import org.hibernate.annotations.Type;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.*;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.... | true |
cad7bb82dc070e2dbb20e059a933be6b815a1368 | Java | Fa0tugzSurg/cloud | /demo-business-client/src/main/java/com/qy/insurance/cloud/client/business/demo/controller/TestController.java | UTF-8 | 1,513 | 2.203125 | 2 | [] | no_license | package com.qy.insurance.cloud.client.business.demo.controller;
import com.qy.insurance.cloud.client.business.demo.service.cloud.DaoOperation;
import com.qy.insurance.cloud.client.business.demo.service.cloud.MathCompute;
import com.qy.insurance.cloud.client.business.demo.service.cloud.StringOperation;
import org.sprin... | true |
17e24af370957d0c463e9d2d0ce625fb79eb29be | Java | tawazz/SoundDown | /app/src/main/java/net/tawazz/sounddown/ActivityListener.java | UTF-8 | 280 | 1.664063 | 2 | [] | no_license | package net.tawazz.sounddown;
import android.support.design.widget.FloatingActionButton;
public interface ActivityListener{
public void destroy();
public void playPause(FloatingActionButton playBtn,Track song);
public void playNext();
public void playPrev();
}
| true |
8db9aeec19138566ca1dbdbc29163555d843a5f5 | Java | Tenshiorg/Tenshi | /app/src/main/java/io/github/shadow578/tenshi/db/model/RelatedMediaRelation.java | UTF-8 | 1,697 | 2.421875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | package io.github.shadow578.tenshi.db.model;
import androidx.annotation.Nullable;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import io.github.shadow578.tenshi.mal.model.type.RelationType;
/**
* describes a relation between two anime / manga
* <p>
* db representation of {@link io.github.shadow57... | true |
eaf844eb5343e36d341061749b41343f8ce11567 | Java | leonardopardo/uade-ioo-1c-2021-tpo | /src/dto/PrecioDTO.java | UTF-8 | 263 | 1.59375 | 2 | [] | no_license | package dto;
import modelos.Proveedor;
import modelos.enums.Rubro;
public class PrecioDTO {
public String itemCodigo;
public String itemTitulo;
public Rubro rubro;
public Double precio;
public String razonSocial;
public String cuit;
}
| true |
366f621da44dc57b34d49b4457faa17a60ba097f | Java | Neressea/MovieManager | /src/view/PopupAddMovie.java | UTF-8 | 3,584 | 2.703125 | 3 | [] | no_license | package view;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import org.jdatepicker.impl.*;
import java.util.*;
import model.*;
import model.List;
public class PopupAddMovie extends JFrame{
/**
*
*/
private static final long serialVersionUID = 1L;
private GraphicalView owner;
private JPa... | true |