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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
966c821aa9add26c7f6ca91d4c8d7bd096f9ab10 | Java | mailru/jira-plugins-mrimsender | /src/main/java/ru/mail/jira/plugins/myteam/myteam/dto/parts/Forward.java | UTF-8 | 558 | 1.9375 | 2 | [] | no_license | /* (C)2020 */
package ru.mail.jira.plugins.myteam.myteam.dto.parts;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import ru.mail.jira.plugins.myteam.myteam.dto.Message;
@SuppressWarnings("NullAway")
@ToString
public class Forward extends... | true |
c87778e8517132ceabe057f25cf32597ef9e2745 | Java | mrAlexGiroux/SchoolWork | /OOP/javaOOP/Cours04/src/ca/csf/dfc/classes/CompteInteret.java | UTF-8 | 763 | 2.84375 | 3 | [] | no_license | package ca.csf.dfc.classes;
public class CompteInteret extends CompteBancaire {
public CompteInteret(double p_Solde)
{
super(p_Solde);
}
@Override
public void Deposer(double p_Amount)
{
if (super.getSolde() < (p_Amount - FRAIS_TRANSACTION)) {
throw new Illegal... | true |
2b68f71cbd59c9e91ab5718517762bbe6dd0772d | Java | fallstool/ktw | /KTW_WMS/src/main/java/com/core/scpwms/server/util/FileUtil4Jp.java | UTF-8 | 21,298 | 2.515625 | 3 | [] | no_license | package com.core.scpwms.server.util;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import... | true |
d9ec5572846263cb3ba1716649ab17b36ac8cff1 | Java | Cardman/projects | /desktop/applis/apps/gui/gui_games/pokemongui/src/main/java/aiki/gui/threads/DrawingAnimation.java | UTF-8 | 671 | 2.8125 | 3 | [] | no_license | package aiki.gui.threads;
import aiki.game.fight.animations.AnimationInt;
import aiki.gui.components.fight.Battle;
public final class DrawingAnimation implements Runnable {
private Battle battle;
private AnimationInt animation;
private boolean initial;
public DrawingAnimation(Battle _battle, Animat... | true |
c7e038a621cd0f4f49a59d9e5e7481c4d4e4fd30 | Java | paillardf/PeerSync | /PeerSync/src/com/peersync/network/behaviour/DiscoveryBehaviour.java | UTF-8 | 3,995 | 1.992188 | 2 | [] | no_license | package com.peersync.network.behaviour;
import java.io.IOException;
import net.jxta.discovery.DiscoveryService;
import net.jxta.document.Advertisement;
import net.jxta.document.AdvertisementFactory;
import net.jxta.impl.endpoint.EndpointUtils;
import net.jxta.impl.protocol.RdvAdv;
import net.jxta.impl.rendezvous.Rend... | true |
d3ed87c572c440e708483cbb9bc43c17e4a616d7 | Java | Automattic/elasticsearch-statsd-plugin | /src/main/java/com/automattic/elasticsearch/statsd/StatsdReporterNodeStats.java | UTF-8 | 10,641 | 1.929688 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | package com.automattic.elasticsearch.statsd;
import org.elasticsearch.action.admin.cluster.node.stats.NodeStats;
import org.elasticsearch.http.HttpStats;
import org.elasticsearch.index.stats.IndexingPressureStats;
import org.elasticsearch.monitor.fs.FsInfo;
import org.elasticsearch.monitor.jvm.JvmStats;
import org.ela... | true |
59a31748d984b88c5b2b51650ece0a00c20d7c6f | Java | randyp/jdbj | /src/test/java/io/github/randyp/jdbj/db/h2_1_4/QueriesTest.java | UTF-8 | 2,041 | 2.03125 | 2 | [
"CC0-1.0"
] | permissive | package io.github.randyp.jdbj.db.h2_1_4;
import io.github.randyp.jdbj.student.StudentTest;
import io.github.randyp.jdbj.test.query.*;
import org.junit.ClassRule;
import org.junit.experimental.runners.Enclosed;
import org.junit.runner.RunWith;
import javax.sql.DataSource;
@RunWith(Enclosed.class)
public class Queries... | true |
98959b2151ce4a5d54430a475afc496cb5e9f944 | Java | priyojit1993/gintaa-actions | /src/main/java/com/asconsoft/gintaa/actions/repository/ActionModeRepository.java | UTF-8 | 313 | 1.625 | 2 | [] | no_license | package com.asconsoft.gintaa.actions.repository;
import com.asconsoft.gintaa.actions.model.ActionMode;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ActionModeRepository extends JpaRepository<ActionMode, String> {
}
| true |
84f66d351e8ee42cd331d88dd62a273a476a0321 | Java | Amit-Khobragade/ToDoLists | /com.sample.control/src/com/sample/control/Controls.java | UTF-8 | 8,613 | 2.46875 | 2 | [
"MIT"
] | permissive | package com.sample.control;
import javafx.scene.control.*;
import javafx.fxml.FXML;
import javafx.scene.text.Font;
import javafx.beans.value.ObservableValue;
import javafx.scene.input.*;
import javafx.scene.layout.BorderPane;
import javafx.fxml.FXMLLoader;
import javafx.event.Event;
import javafx.event.ActionEvent;
im... | true |
5ba065780ebb52006443427f07f3e8965ad451c6 | Java | nandhugigaappz/Wishil | /app/src/main/java/com/wishill/wishill/activity/profile/UserFollowingList.java | UTF-8 | 7,394 | 2 | 2 | [] | no_license | package com.wishill.wishill.activity.profile;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.ap... | true |
e2d46344bfb7b9e5ff98425da45bde67760470db | Java | romanticstxj/kafkatest | /kafkatest/src/test/java/michael/kafkatest/controller/TestControllerTest.java | UTF-8 | 4,080 | 2.546875 | 3 | [] | no_license | package michael.kafkatest.controller;
import java.io.IOException;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.concurre... | true |
a6aded6614004ab60e46897c9b2be97f9ede3dff | Java | leleron/fsas | /platforms/android/src/com/phonegap/plugins/fileOperate/FileOperate.java | UTF-8 | 2,625 | 2.1875 | 2 | [] | no_license | package com.phonegap.plugins.fileOperate;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin;
import org.json.JSONArray;
import org.json.JSONException;
... | true |
2368bcdf34217cd8172f0b49a96129b7e5423a72 | Java | ZoranLi/thunder | /com/taobao/tao/remotebusiness/listener/MtopFinishListenerImpl.java | UTF-8 | 4,137 | 1.625 | 2 | [] | no_license | package com.taobao.tao.remotebusiness.listener;
import com.taobao.tao.remotebusiness.IRemoteParserListener;
import com.taobao.tao.remotebusiness.MtopBusiness;
import com.taobao.tao.remotebusiness.a;
import com.taobao.tao.remotebusiness.auth.RemoteAuth;
import com.taobao.tao.remotebusiness.login.RemoteLogin;
import mto... | true |
93367e0483ff6ff44da31c9cc5443d66cd8da59d | Java | JohnnyPron/PO_Projekt1_ProniewiczJan | /main/java/agh/cs/project/main_objects/Jungle.java | UTF-8 | 3,719 | 3.09375 | 3 | [] | no_license | package agh.cs.project.main_objects;
import agh.cs.project.secondary_objects.Vector2d;
import agh.cs.project.interfaces.IWorldMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Random;
public class Jungle {
private final Vector2d bottomLeftCorner;
private final Vector2d uppe... | true |
295ed10f811644f58284a2333c253ec976ebccd6 | Java | yisusxp90/AngularSpringBootappBackend | /src/main/java/com/yisusxp/spring/backend/api/repository/IFacturaRepository.java | UTF-8 | 305 | 1.632813 | 2 | [] | no_license | package com.yisusxp.spring.backend.api.repository;
import com.yisusxp.spring.backend.api.model.Factura;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface IFacturaRepository extends CrudRepository<Factura, Long> {
}
| true |
5c999b51b28d6ce5e3b6dbcd4e9a28cec224038d | Java | raidcraft/rcfarms | /src/main/java/de/raidcraft/rcfarms/tables/TFarm.java | UTF-8 | 3,563 | 2.21875 | 2 | [] | no_license | package de.raidcraft.rcfarms.tables;
import de.raidcraft.RaidCraft;
import de.raidcraft.rcfarms.RCFarmsPlugin;
import lombok.Getter;
import lombok.Setter;
import org.bukkit.Bukkit;
import org.bukkit.World;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax... | true |
f3d99eed4bc377e1edd5cf828e3527ade1538aea | Java | sudha-shanker/CustomExtendingViews | /app/src/main/java/com/example/customextendingviews/CustomViewFan.java | UTF-8 | 1,495 | 2.671875 | 3 | [] | no_license | package com.example.customextendingviews;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.view.MotionEvent;
import android.view.View;
public class CustomViewFan extends View {
Paint p;
int x=100;
public CustomView... | true |
93a9ca5053827f0069984414bbe4693250c502b7 | Java | lauren-dai/FinancialRecorder | /FinancialRecorderServer/src/main/java/com/financial/tools/recorderserver/business/FinancialManager.java | UTF-8 | 3,110 | 2.46875 | 2 | [] | no_license | package com.financial.tools.recorderserver.business;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import com.financial.tools.recorderserver.entity.FinancialRecord;
import com.financial.tools.recorderserver.entity.User;
import com.financial.tools.recorderserver.payload.Financi... | true |
a0bc96cce96753202fe4fc65a60093162cf5ac6b | Java | cckmit/iot-6 | /src/main/java/com/dsw/iot/controller/rpc/VideoRpc.java | UTF-8 | 2,097 | 2.140625 | 2 | [] | no_license | package com.dsw.iot.controller.rpc;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
import com.dsw.iot.dto.FaceBaseInfoRequest;
import com.dsw.iot.dto.FaceHeadInfoDto;
import com.dsw.iot.manager.FaceManager;
import com.dsw.iot.manager.VideoManager;
import com.dsw.iot.model.AttachDo;
... | true |
3d1d006c30e6815233f1a6a7bc63b1426f0db9e9 | Java | cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning | /ast_results/tejado_Authorizer/lib/src/main/java/net/tjado/passwdsafe/lib/view/GuiUtilsFroyo.java | UTF-8 | 1,458 | 1.976563 | 2 | [] | no_license | // isComment
package net.tjado.passwdsafe.lib.view;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.DialogInterface;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.view.View;
/**
* isComment
*/
@TargetApi(isIntegerConstant)... | true |
924337d58668bd9845c9e1e2a6c660e4af2f8be6 | Java | abirahmeds/CSE114 | /Labs/Lab18.java | UTF-8 | 1,992 | 3.75 | 4 | [] | no_license | package com.company;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter the number of rows and columns in the array: ");
int r = sc.nextInt();
int c = sc.nextInt();
double[][] x... | true |
561230ee53654752f3b5edc3c3d1a6f7d4a723ed | Java | himanshu-rana1/SomeAlgorithms | /MergeSort.java | UTF-8 | 529 | 3.3125 | 3 | [] | no_license | package TopAlgorithms;
import java.util.Scanner;
public class MergeSort {
public void mSort(int[] a, int p, int q){
if(p<q){
}
}
public static void main(String[] args) {
System.out.println("Enter Size");
Scanner sc = new Scanner(System.in);
int size = sc.nextInt(... | true |
c80b55ee0f133b07128d4be793e6e7e5c75a3675 | Java | aportolan/kps | /kps/src/main/java/hr/aportolan/kps/entity/Subscribers.java | UTF-8 | 1,851 | 2.296875 | 2 | [] | no_license | package hr.aportolan.kps.entity;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
@Document
public class Subscribers {
public Subscribers(String id, String name, String type, Routes route, Routes parentRoute) {
super();
this.id = id;
this.name = nam... | true |
1b85edbe84c448df2eda0dc9ac98d1cbc07f3b8c | Java | elkana911/b2b-big2 | /src/main/java/com/big/web/b2b_big2/booking/model/BookingFlightVO.java | UTF-8 | 17,203 | 1.632813 | 2 | [] | no_license | package com.big.web.b2b_big2.booking.model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
im... | true |
811ac89bf4672d3936b10ec5a621a7f132220b11 | Java | sameer-sarmah/algorithm | /Algorithm/src/tree/IterativePreOrder.java | UTF-8 | 880 | 4.0625 | 4 | [] | no_license | package tree;
import java.util.ArrayList;
import java.util.List;
import java.util.Stack;
public class IterativePreOrder {
public static void main(String[] args) {
TreeNode<Integer> root = TreeCreator.createBinarySearchTree();
Stack<TreeNode<Integer>> callStack = new Stack<TreeNode<Integer>>();
callStack.push(r... | true |
7eeb5968b2f2d786b61df15311260cbe406ea173 | Java | habeascorpus/habeascorpus-data | /tokens/lucene-3.6.2/core/src/java/org/apache/lucene/store/LockVerifyServer.java | UTF-8 | 8,322 | 1.820313 | 2 | [] | no_license | package TokenNamepackage
org TokenNameIdentifier
. TokenNameDOT
apache TokenNameIdentifier
. TokenNameDOT
lucene TokenNameIdentifier
. TokenNameDOT
store TokenNameIdentifier
; TokenNameSEMICOLON
import TokenNameimport
java TokenNameIdentifier
. TokenNameDOT
net TokenNameIdentifier
. TokenNameDOT
ServerSocket TokenNameI... | true |
6f68c589054089776c5084a5c094cd065d2b645f | Java | javaf/extra-javascript-todo | /src/js/lang/oBoolean.java | UTF-8 | 1,313 | 3.5625 | 4 | [] | no_license | package js.lang;
/**
* The oBoolean object is an object wrapper for a boolean value.
*/
public class oBoolean {
/* data */
boolean value;
/* constructor */
/**
* Create an oBoolean object, which is set to true if value is truthy.
* @param value Value used to set the boolean value.
*/
public oBoolean(Ob... | true |
365ecb9aba7b515db6a351f4cf985b922de5ef8b | Java | mudassir410/flash | /myfirstproject1/src/string/StringComparison.java | UTF-8 | 992 | 3.515625 | 4 | [] | no_license | package string;
import java.lang.*;
public class StringComparison {
public static void main(String[] args) {
// TODO Auto-generated method stub
String s1 = new String("Merit");
String s2 = new String("Merit");
Integer firstReference = new Integer(10);
Integer secondReference = f... | true |
7c089144e9fcdb72ab4fd01f5352b41e7382a6a1 | Java | TopQuadrant/shacl | /src/main/java/org/topbraid/shacl/validation/java/XoneConstraintExecutor.java | UTF-8 | 1,357 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package org.topbraid.shacl.validation.java;
import java.util.Collection;
import org.apache.jena.rdf.model.Model;
import org.apache.jena.rdf.model.RDFNode;
import org.topbraid.shacl.engine.Constraint;
import org.topbraid.shacl.validation.ValidationEngine;
/**
* Validator for sh:xone constraints.
*
* @author Holge... | true |
2db274253b938033590fa9854a6011092ed09d4e | Java | bradym80/MenuMine_Java | /src/java/com/fsrin/menumine/core/menumine/sampledistribution/xwork/SampleDistributionAction.java | UTF-8 | 1,734 | 1.84375 | 2 | [] | no_license | /*
* Created on Mar 9, 2005
*
*
*/
package com.fsrin.menumine.core.menumine.sampledistribution.xwork;
import ognl.OgnlException;
import com.fsrin.menumine.context.webwork.AbstractMenuMineSessionContextAwareAction;
import com.fsrin.menumine.core.menumine.SampleDistributionServiceDelegate;
import com.fs... | true |
635b474c26a45d4d567da3d1a177013adcdc9663 | Java | infinispan/infinispan | /core/src/test/java/org/infinispan/lock/InvalidationModePessimisticLockReleaseTest.java | UTF-8 | 2,566 | 2.40625 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-dco-1.1"
] | permissive | package org.infinispan.lock;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertFalse;
import java.util.concurrent.Callable;
import org.infinispan.configuration.cache.CacheMode;
import org.infinispan.configuration.cache.ConfigurationBuilder;
import org.infinispan.test.Multi... | true |
221eb1652299fc80c0630e477742afafbf4bd466 | Java | LNUisinitiation/practice | /20210326.java | UTF-8 | 2,518 | 2.71875 | 3 | [] | no_license | //package JAVA_eclipse;
//
//public class HelloWorld {
// public static void main(String[] args) {
// System.out.println("���");
// }
//
//}
//package JAVA_eclipse;
//public class HelloWorld{
// public static void main(String[] args) {
// System.out.print("nihao \n");
// System.out.println("nihao liaoningdaxue");
/... | true |
ed8243d872b78323414a81010d1d23bdac48c503 | Java | cebyrdcsa1920/daily-classwork-caseylee8008 | /week6/PetClass.java | UTF-8 | 443 | 3.078125 | 3 | [] | no_license | import java.awt.Color;
public class PetClass
{
private String species;
private Color color;
private int age;
private int legs;
private double weight;
private String name;
public PetClass()
{
species = "Cow";
color = Color.WHITE;
age = 4;
legs = 4;
... | true |
874f5f3d370dfc5074e1a749d8e81017f4714dd7 | Java | HHSAPCompSci2020/capstone-project-duckbill-platypuses | /src/Map.java | UTF-8 | 1,996 | 3.359375 | 3 | [] | no_license | import java.awt.Point;
import java.util.ArrayList;
import processing.core.PApplet;
import processing.core.PImage;
/**
* The map class represents the map of the school, which the user will navigate
* through.
*
* @author Ophir Peleg
* @version 05/06/2021
*/
public class Map {
private double width;
private do... | true |
1bef1d670356f7c165b0b2e37ea861c1f50e1723 | Java | constellation-app/constellation | /CoreHistogramView/src/au/gov/asd/tac/constellation/views/histogram/Bin.java | UTF-8 | 5,083 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2010-2021 Australian Signals Directorate
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | true |
3d39992ce5a16ec6e773e116da805950a74c7959 | Java | mosepulvedar/venta_java_web | /src/java/test/TestProducto.java | UTF-8 | 555 | 2.046875 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package test;
import DAO.ProductoDAO;
import entity.Producto;
/**
*
* @author Duoc
*/
public class TestProducto {
pu... | true |
b3e75f801c48b94501eecf38098a25e76e5c9725 | Java | xiangyuSmith/vstock | /vstock-web/src/main/java/com/vstock/front/controller/UserController.java | UTF-8 | 23,690 | 1.992188 | 2 | [] | no_license | package com.vstock.front.controller;
import com.vstock.db.entity.*;
import com.vstock.ext.base.BaseController;
import com.vstock.ext.base.ResultModel;
import com.vstock.ext.util.DateUtils;
import com.vstock.ext.util.MD5Util;
import com.vstock.ext.util.Page;
import com.vstock.front.service.*;
import com.vstock.server.u... | true |
f37c26a5f6709f35facda1281c4a740bd2c3ffbc | Java | lixin901230/memcache_java_demo | /src/com/lx/memcache/cache/MyCache.java | UTF-8 | 5,560 | 2.796875 | 3 | [
"Apache-2.0"
] | permissive | package com.lx.memcache.cache;
import java.util.Date;
import com.danga.MemCached.MemCachedClient;
import com.danga.MemCached.SockIOPool;
/**
* 基于java_memcached-release_2.5.3.jar的memcached客户端
* @author lixin
* @date 2015-2-4 上午10:55:32
*/
public class MyCache {
//建立MemcachedClient实例
public st... | true |
5a6925066a3b49cef197983cad84687006f18620 | Java | danalittleskier/onlinemembership | /src/main/java/org/ussa/dao/impl/RenewRuleInvDaoJDBC.java | UTF-8 | 3,098 | 2.15625 | 2 | [] | no_license | package org.ussa.dao.impl;
import javax.sql.DataSource;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
import java.util.Iterator;
import java.util.List;
import org.springframework.jdbc.core.SqlParameter;
import org.springframework.jdbc.object.MappingSqlQuery;
import org.uss... | true |
fd093831faacede88ec28cfcf36b26417ac40061 | Java | Wanderer2006/2019-08-otus-spring-Kuznetsov | /DZ-09-11/src/test/java/ru/kusoft/testing/service/PersonServiceImplTest.java | UTF-8 | 1,586 | 2.140625 | 2 | [] | no_license | package ru.kusoft.testing.service;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.... | true |
3b1546555d21812abf40ce26aa05e17be05ccdb5 | Java | Sollace/Psychedelicraft | /src/main/java/ivorius/psychedelicraft/entity/drug/type/SleepDeprivationDrug.java | UTF-8 | 3,242 | 2.3125 | 2 | [
"MIT"
] | permissive | /*
* Copyright (c) 2014, Lukas Tenbrink.
* * http://lukas.axxim.net
*/
package ivorius.psychedelicraft.entity.drug.type;
import ivorius.psychedelicraft.PSGameRules;
import ivorius.psychedelicraft.entity.drug.DrugProperties;
import ivorius.psychedelicraft.entity.drug.DrugType;
import ivorius.psychedelicraft.util.... | true |
a143958daa23da0b82bbcca58237d7dcaac9aceb | Java | tomhai/tandembrowsing | /src/org/tandembrowsing/state/StateMachine.java | UTF-8 | 10,297 | 2.234375 | 2 | [
"MIT"
] | permissive | package org.tandembrowsing.state;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.apache.commons.scxml.Evaluator;
import ... | true |
3883146394a8b25214a0cc2f9ae0559e8ffecdd0 | Java | mjaremczuk/archivizer | /domain/src/main/java/pl/reveo/domain/interactor/MeetingUseCase.java | UTF-8 | 987 | 2.5625 | 3 | [] | no_license | package pl.reveo.domain.interactor;
import pl.reveo.domain.Meeting;
import pl.reveo.domain.executor.PostExecutionThread;
import pl.reveo.domain.executor.ThreadExecutor;
import pl.reveo.domain.repository.MeetingRepository;
import javax.inject.Inject;
import rx.Observable;
/**
* This class is an implementation of {@li... | true |
ad73c9503e48ee87014aeecd845b323734667234 | Java | nab-velocity/java-sdk | /velocity-sdk/velocity-services/src/main/java/com/velocity/model/request/ReturnTransaction.java | UTF-8 | 1,421 | 1.90625 | 2 | [
"MIT"
] | permissive | package com.velocity.model.request;
/**
* This class defines the attributes for ReturnTransaction
*
* @author Vimal Kumar
* @date 19-January-2015
*/
public class ReturnTransaction {
private String type;
private String applicationProfileId;
private String merchantProfileId;
private Transaction tr... | true |
d0c7ea1dad25e5bdd28cb4caf45e770b4c3ae6e0 | Java | haige6502296/myjava | /AOPSpringOne/src/com/lct/BeforeAdvisor.java | UTF-8 | 360 | 2.125 | 2 | [] | no_license | package com.lct;
import org.springframework.aop.MethodBeforeAdvice;
import java.lang.reflect.Method;
// implement MethodBeforeAdvice,just a advisor class
public class BeforeAdvisor implements MethodBeforeAdvice {
@Override
public void before(Method method, Object[] args, Object targets) {
System.out.println(... | true |
44ea3fba0814d13fbc634afdd65f2106edd7e6c5 | Java | medKHALIFI/Systeme_make_decision_banking_risk_management | /pfe/src/pfe/Node.java | UTF-8 | 1,953 | 3.046875 | 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 pfe;
import java.util.Random;
/**
*
* @author simo
*/
public class Node {
public Node() {
}
... | true |
675b4ca4c5aae30cefdf7b37e3741558038e3741 | Java | alex-abramenko/CLIENT_BusinessAssistant | /app/src/main/java/ru/sibsutis/productm/MainContract.java | UTF-8 | 243 | 1.734375 | 2 | [] | no_license | package ru.sibsutis.productm;
interface MainContract {
interface View {
void toStartActivity();
void toBasicActivity();
void showErrorServer();
}
interface Presenter {
void startProgram();
}
}
| true |
6c61650b9a0b42ca2f41ae247d801b236efa2560 | Java | eosite/openyourarm | /glaf-web/src/main/java/com/glaf/workflow/core/util/JumpTaskCmd.java | UTF-8 | 1,910 | 2 | 2 | [] | no_license | package com.glaf.workflow.core.util;
import java.util.Iterator;
import java.util.Map;
import org.activiti.engine.impl.context.Context;
import org.activiti.engine.impl.interceptor.Command;
import org.activiti.engine.impl.interceptor.CommandContext;
import org.activiti.engine.impl.persistence.entity.ExecutionEntity;
im... | true |
2cc09f4e6b68710303b70137bd629ffad8008b62 | Java | diqiuonline/Demo | /study/itcast/Thread/multithreaddemos/thread_safe_demo/src/main/java/com/dhcc/thread/TicketSaleMain.java | UTF-8 | 540 | 2.765625 | 3 | [
"MIT"
] | permissive | package com.dhcc.thread;
/**
* 李锦卓
* 2022/2/26 23:48
* 1.0
*/
public class TicketSaleMain {
public static void main(String[] args) {
// 创建电影票对象
Ticket ticket = new Ticket();
// 创建thread对象 执行电影票售卖
Thread thread = new Thread(ticket,"窗口1");
Thread thread2 = new Thread(ticke... | true |
eea78348545fd10866ea4cbb8de9db3e6c711226 | Java | garibee/acmicpc | /src/마리오.java | UTF-8 | 959 | 2.8125 | 3 | [] | no_license | import java.util.Arrays;
import java.util.Scanner;
public class 마리오 {
static int[] arr = new int[10];
static int[] cache = new int[10];
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int cnt = 10;
Arrays.fill(cache, -1);
for(int i=0;i<cnt;i++) {
arr[i] = s.nextInt();
}
i... | true |
b3a1f36e57efccd578b986c08f1ece4cde24a958 | Java | rafaelgoncalvs/mapskills | /mapskills-api/src/main/java/rafaelgoncalves/mapskills/api/TransactionalProxy.java | UTF-8 | 694 | 2.515625 | 3 | [] | no_license | package rafaelgoncalves.mapskills.api;
import java.lang.reflect.InvocationTargetException;
import java.util.Optional;
import javax.interceptor.AroundInvoke;
import javax.interceptor.Interceptor;
import javax.interceptor.InvocationContext;
@Interceptor
@Transactional
public class TransactionalProxy {
@AroundInvoke
... | true |
f8d7cc29e2e44abc3d85145dac6e35eaffd98047 | Java | Denis-6613/MyFirstAutomationProject | /MyFirstAutomationProject/src/newtours/Cruises_09_12_2019.java | UTF-8 | 1,289 | 2.40625 | 2 | [] | no_license | package newtours;
import org.openqa.selenium.By;
import org.openqa.selenium.chrome.ChromeDriver;
//import static driver.Driver.getDriver;
public class Cruises_09_12_2019 {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver", "C:\\Program Files\\Java\\chromedriver.exe")... | true |
24dbe5cb2b45848e008473b71c3787990733ae58 | Java | sameerb42/SpringbootCurd | /Spring-bootCurd/src/main/java/com/rest/springboot/SpringbootCurd/exception/RecordNotFoundException.java | UTF-8 | 393 | 2.125 | 2 | [] | no_license | package com.rest.springboot.SpringbootCurd.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@SuppressWarnings("serial")
@ResponseStatus(HttpStatus.NOT_FOUND)
public class RecordNotFoundException extends RuntimeException {
String message;
public... | true |
b26fd1499c2f4d8cd25731728b2a213652ddf71b | Java | zhuxj/willow_mvn | /willow-endoor/src/main/java/com/willow/door/admin/doorarticle/web/DoorArticleController.java | UTF-8 | 5,023 | 2.140625 | 2 | [] | no_license | /**
* 版权声明:贤俊工作室 版权所有 违者必究
* 日 期:2012-12-21
*/
package com.willow.door.admin.doorarticle.web;
import com.willow.platform.core.Page;
import com.willow.platform.core.PageParam;
import com.willow.platform.core.base.web.BaseController;
import com.willow.platform.core.context.WebSiteContext;
import com.willow.door.ad... | true |
ed7aa58594bceddffa7f13bbff6e57f96c00081e | Java | SysLord/spring-webhooks-framework | /src/main/java/de/syslord/microservices/webhooks/storage/WebHookException.java | UTF-8 | 488 | 1.945313 | 2 | [] | no_license | package de.syslord.microservices.webhooks.storage;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(value = HttpStatus.PRECONDITION_FAILED, reason = "")
public class WebHookException extends Exception {
private static final long serialVersion... | true |
f41bebf116dc7a820149c9d4096190ac8a80b534 | Java | fengyuting/ir_resume | /resume_dao/src/main/java/com/nlc/ir/resume/dao/ResumeAwardDao.java | UTF-8 | 381 | 1.671875 | 2 | [] | no_license | package com.nlc.ir.resume.dao;
import com.nlc.ir.resume.domain.resume.ResumeAward;
import java.util.List;
public interface ResumeAwardDao {
int deleteByPrimaryKey(Integer id);
int insert(ResumeAward record);
int insertSelective(ResumeAward record);
List<ResumeAward> selectByUserId(String userId);... | true |
f3ce7311ecd60784ebde4cd45ad73d8aae65932c | Java | tlhhup/spring-cloud-learn | /tlh-spring-boot-admin/src/main/java/org/tlh/springcloud/SpringBootAdminApplication.java | UTF-8 | 566 | 1.632813 | 2 | [
"Apache-2.0"
] | permissive | package org.tlh.springcloud;
import de.codecentric.boot.admin.server.config.EnableAdminServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
/**
* @author huping
* @desc
* @... | true |
1617ebdc03d071a0dce8f8227f0aa920deeeb3a8 | Java | mgkkkkkk/test | /test.java | UTF-8 | 31 | 2.203125 | 2 | [] | no_license | printfln("Hello");
23333333;
| true |
967d8b1cb6c462bf1bf4dee0c35a7bb190859dc2 | Java | salomax/machine-learning | /src/test/java/org/salomax/ml/NormalEquationTest.java | UTF-8 | 744 | 2.796875 | 3 | [
"Apache-2.0"
] | permissive | package org.salomax.ml;
import org.junit.Test;
import Jama.Matrix;
/**
* Created by marcos.salomao on 27/12/16.
*/
public class NormalEquationTest {
@Test
public void calculateThetas() {
DataSet dataSet = new SimpleDataSet();
dataSet.add(1.0, 1.0);
dataSet.add(2.0, 2.0);
... | true |
430ede3367f78a503b43336e468a6ef6d74bd9e6 | Java | MorningSongTeacher/MVP_Study | /app/src/main/java/com/example/songwei/mvp_rxjava_retrofit2/net/NetTask.java | UTF-8 | 174 | 1.835938 | 2 | [] | no_license | package com.example.songwei.mvp_rxjava_retrofit2.net;
import rx.Subscription;
public interface NetTask<T> {
Subscription execute(T data, LoadTasksCallBack callBack);
}
| true |
10129903f7f635e893da78f4659006e7d891b618 | Java | keipa/nomapp | /app/src/main/java/com/nomapp/nomapp_beta/UserGuide/HelpDialog.java | WINDOWS-1252 | 973 | 2.046875 | 2 | [] | no_license | package com.nomapp.nomapp_beta.UserGuide;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.support.v7.app.AlertDialog;
import com.nomapp.nomapp_beta.R;
/**
* Created by on 18.03.2016.
*/
public class HelpDial... | true |
f2c6dee2a94fa010870d4d4c51f5721fb2299c75 | Java | guohao-mumu/dubbo-demo | /redis/src/main/java/com/gh/dubbo/redis/config/RedisConfig.java | UTF-8 | 3,978 | 2.0625 | 2 | [] | no_license | package com.gh.dubbo.redis.config;
import com.alibaba.fastjson.parser.ParserConfig;
import com.alibaba.fastjson.support.spring.FastJsonRedisSerializer;
import com.gh.dubbo.redis.RedisUtil;
import com.gh.dubbo.redis.serializer.StringRedisSerializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.sp... | true |
f55054c5744c25de65890b78df4c9017d24287d6 | Java | orbitalsqwib/MAD-2020-threadapp | /app/src/main/java/com/threadteam/thread/adapters/ViewMemberAdapter.java | UTF-8 | 4,700 | 2.40625 | 2 | [] | no_license | package com.threadteam.thread.adapters;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.squareup.picasso.Picasso;
import com.threadteam.thread.libraries.Progression;
import co... | true |
b36abdc34b677209abf3332216518db3eff5a303 | Java | xingqinggele/Ducha | /app/src/main/java/com/zhhl/ducha/activity/ZDActivity/HomeReportActivity.java | UTF-8 | 7,517 | 1.625 | 2 | [] | no_license | package com.zhhl.ducha.activity.ZDActivity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
import com.alibaba.fastjson.J... | true |
6405fc82af0306f083f1fb14a01b2189c69a7852 | Java | gentryhuang/java-base-learning | /design-patterns-example/visitor-example/src/main/java/com/design/pattern/visitor/FreeCourse.java | UTF-8 | 294 | 2.5 | 2 | [] | no_license | package com.design.pattern.visitor;
/**
* FreeCourse
*
* @author shunhua
* @date 2019-10-05
*/
public class FreeCourse extends Course {
/**
* 接受访问
* @param visitor
*/
@Override
public void accept(IVisitor visitor) {
visitor.visit(this);
}
} | true |
d63fb792c3c17d8ac2fc2e3d2ba08fe2a292902d | Java | M4itzZz/myHobi | /app/src/main/java/com/example/kaist/myhobi/ThirdFragment.java | UTF-8 | 544 | 1.9375 | 2 | [] | no_license | package com.example.kaist.myhobi;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
public class ThirdFragment extends Fragment {
View myView;
@Override
... | true |
0e277437173e3a6a8105dd018fec2ecb1bc6c72c | Java | RaelZero/sectesting | /tests/src/schoolmate/admin/EditStudent115.java | UTF-8 | 666 | 1.9375 | 2 | [] | no_license | package schoolmate.admin;
import org.junit.Before;
import org.junit.Test;
import schoolmate.Admin;
public class EditStudent115 extends Admin{
@Before
public void init() {
tester.clickLinkWithExactText("Students");
tester.assertMatch("Manage Students");
tester.setWorkingForm("students");
addSubmitButton(... | true |
6d3cc11484945fe4353e4c1f25c252dc3d147ef0 | Java | rp17/rvnPetr | /src/Raven/Raven_Game.java | UTF-8 | 26,868 | 1.71875 | 2 | [
"MIT"
] | permissive | package Raven;
import static Raven.Main.TODO;
import Raven.armory.projectiles.Bolt;
import Raven.armory.projectiles.Pellet;
import Raven.armory.projectiles.Raven_Projectile;
import Raven.armory.projectiles.Rocket;
import Raven.armory.projectiles.Slug;
import static Raven.lua.Raven_Scriptor.script;
import static Raven.R... | true |
8a5cf484b78cea2ef7e0b6836f53641ae25c3ae7 | Java | r-eddari/sample-spring-boot-spring-cloud | /ms-hr/src/main/java/fr/red/services/application/expensereport/proxy/MsAccountingProxy.java | UTF-8 | 996 | 1.898438 | 2 | [] | no_license | package fr.red.services.application.expensereport.proxy;
import fr.red.services.application.expensereport.model.ExpenseReport;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Map;
@FeignClient(name = "ms-accounting")
@R... | true |
87b258a3e33d3829b72d6f0d130bd8513aaaf6e2 | Java | onurtokat/hal-streaming | /src/main/java/com/github/fge/jsonschema/keyword/digest/helpers/DraftV3TypeKeywordDigester.java | UTF-8 | 2,292 | 2.375 | 2 | [] | no_license | //
// Decompiled by Procyon v0.5.30
//
package com.github.fge.jsonschema.keyword.digest.helpers;
import java.util.Collection;
import java.util.Iterator;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import java.util.EnumSet;
import com.fasterxml.jackson... | true |
5b1f4fc0c47444fe00c121df9562992a88521e7b | Java | jonny999/yago | /java/src/main/java/FIIT/VI/YAGO/reader/Reader.java | UTF-8 | 2,348 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | package FIIT.VI.YAGO.reader;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.LineNumberReader;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
im... | true |
ef8ae3e48416d143c2b49823470e70756eb9808e | Java | triantadim/Tshirt_Design_Patterns | /src/strategypatterntshirt/CashPayment.java | UTF-8 | 296 | 2.953125 | 3 | [] | no_license |
package strategypatterntshirt;
import interfaces.IPayment;
public class CashPayment implements IPayment {
@Override
public boolean pay(float amount) {
System.out.printf("If payment is with Cash, total amount = %s \n", amount);
return(true);
}
} | true |
573981b6ef577988e13382eef1f25369a50aed21 | Java | shahnawaz-eurosofttech/supportlibrary | /src/com/support/google/GeocoderHelperClass.java | UTF-8 | 2,286 | 2.390625 | 2 | [] | no_license | package com.support.google;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import android.content.Context;
import android.location.Address;
import android.location.Geocoder;
import android.os.Handler;
public class GeocoderHelperClass {
private Handler mHandler;
private int... | true |
92b518cbe4841619e8cbd19c5ccb0b9731dd633c | Java | marquinhos87/FSD-project | /refs/examples/echo/fsd/Echo.java | UTF-8 | 643 | 2.796875 | 3 | [] | no_license | package fsd;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
public class Echo {
public static void main(String[] args) throws Exception {
ServerSocketChannel ssc = ServerSocketChannel.open();
ssc... | true |
e46bfb777f69ccce72b7b1181a8edbc3ce18bb4c | Java | rume81/HRM-models | /src/main/java/com/webhawks/Hawks_mapper/SupportingDataMapper.java | UTF-8 | 697 | 2.328125 | 2 | [] | no_license | package com.webhawks.Hawks_mapper;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import com.webhawks.Hawks_model.HSupportingData;
public class SupportingDataMapper extends BaseMapper implements RowMapper<HSupportingData> {
public HSupportingData mapRow(R... | true |
168702b7d0094e74199269827d65971188eeeb6d | Java | aureliancamarasu/problema-AB4 | /eclipse-workspace/ab4 problema/src/oras.java | UTF-8 | 375 | 2.65625 | 3 | [] | no_license |
public class oras extends judet {
String nume ;
oras() {
}
oras(String a , String b, String c)
{
super(a,b);
this.nume=c;
}
public String getNume() {
return nume;
}
public void setNume(String nume) {
this.nume = nume;
}
void afisare() {
super.afisare();
... | true |
b5f3ffd6cc471df4a2adae29f966326cbc34da7f | Java | shanyinke/booksource | /chapter6/Vmall/app/src/main/java/com/parfois/adapter/HonorAPAdapter.java | UTF-8 | 5,219 | 2.03125 | 2 | [] | no_license | package com.parfois.adapter;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.parfois.asynctask.DownSaveImgAsync;
import com.parfois.bean.ActivityPrds;
import com.parfois.vmall.R;
import android.content.Context;
import android.graphics.Bitmap;
import android.view.View;
import android... | true |
ffb72f886a2316a8cc53ebb091aa61f44248abad | Java | anthonycanino1/entbench-pi | /batik/badapt_classes/org/apache/batik/css/engine/value/svg12/MarginShorthandManager.java | UTF-8 | 15,594 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive | package org.apache.batik.css.engine.value.svg12;
public class MarginShorthandManager extends org.apache.batik.css.engine.value.AbstractValueFactory implements org.apache.batik.css.engine.value.ShorthandManager {
public MarginShorthandManager() { super(); }
public java.lang.String getPropertyName() { return org.... | true |
eb09637a2775f49c656756c08158aebdcd0bc858 | Java | ramtej/tdmx | /core/src/main/java/org/tdmx/client/crypto/pwdhash/PwdHashImpl.java | UTF-8 | 701 | 2.75 | 3 | [] | no_license | package org.tdmx.client.crypto.pwdhash;
import org.tdmx.client.crypto.entropy.EntropySource;
/**
* A more secure alternative to MD5 hashing, based on jBCrypt.
*/
public class PwdHashImpl implements PwdHash {
public static String hashpw(String password) {
return BCrypt_v03.hashpw(password, BCrypt_v03.... | true |
fa24be781aee8d8a26bb1e66d0a2f435f091caa6 | Java | Zhanggdong/spring-excel-demo | /src/main/java/com/vivo/soft/excel/springexceldemo/query/AssociationKeyGameQuery.java | UTF-8 | 562 | 1.914063 | 2 | [] | no_license | package com.vivo.soft.excel.springexceldemo.query;
/**
* @author 张贵东
* @Company TODO
* @date 2018-11-17.
* @Time 21:43
* @Description TODO
* @Version 2.0.0
*/
public class AssociationKeyGameQuery {
private Integer keyId;
private String gameName;
public Integer getKeyId() {
return keyId;
... | true |
81c5f3b16bf600e0c95aff9622129ddea0756475 | Java | AngieC96/Freedom-SDMProject | /src/test/java/dssc/project/freedom/basis/PositionTests.java | UTF-8 | 999 | 2.828125 | 3 | [] | no_license | package dssc.project.freedom.basis;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;
import static dssc.project.freedom.basis.Position.at;
import static org.junit.jupiter.api.Assertions.*;
public class PositionTests {
private final Position position = new Po... | true |
68b6759757a9bab23529a22424a00ee63db5c126 | Java | koda-masaru/knowledge-v2 | /backend/src/main/java/org/support/project/knowledge/control/api/internal/articles/comments/likes/PostArticleCommentLikeApiControl.java | UTF-8 | 2,220 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package org.support.project.knowledge.control.api.internal.articles.comments.likes;
import java.lang.invoke.MethodHandles;
import org.support.project.common.log.Log;
import org.support.project.common.log.LogFactory;
import org.support.project.common.util.StringUtils;
import org.support.project.di.DI;
import org.suppo... | true |
80bc8216fca97d456528e53be13b6bbda086601a | Java | T-NOVA/NFS | /src/eu/tnova/nfs/utils/VNFFileWSClient.java | UTF-8 | 7,544 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package eu.tnova.nfs.utils;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import... | true |
f7eba0e0e6b8e55e49667ca92af96d7268a4fdbc | Java | nipsalvin/Dice | /src/simplejavaprog/SimpleJavaProg.java | UTF-8 | 387 | 3.015625 | 3 | [] | no_license | package simplejavaprog;
import java.util.Random;
/**
*
* @author Nips
*/
public class SimpleJavaProg {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Random coolNumber = new Random();
int x = coolNumber.nextInt(6) +1;
... | true |
b19884040e5d2b619a0c5aa3e885de08f7ac5e12 | Java | phwd/quest-tracker | /hollywood/com.oculus.alpenglow-EnterpriseServer/sources/X/AnonymousClass0yZ.java | UTF-8 | 7,736 | 1.570313 | 2 | [] | no_license | package X;
import android.util.SparseArray;
import com.oculus.alpenglow.http.Constants;
import com.oculus.library.utils.app.ImagesBuilder;
import com.squareup.okhttp.internal.framed.Hpack;
/* renamed from: X.0yZ reason: invalid class name */
public class AnonymousClass0yZ extends SparseArray<String> {
public Ano... | true |
af3765fd8dbda27ea0a364b6baaac0598dd120a8 | Java | devryan915/edu | /android/AndroidTutorial/app/src/main/java/org/shenit/tutorial/android/drawable/SimpleDrawableExampleActivity.java | UTF-8 | 1,405 | 2.53125 | 3 | [
"MIT"
] | permissive | package org.shenit.tutorial.android.drawable;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;
import org.shenit.tutorial.android.R;
public class SimpleDrawableExampleActivity extends App... | true |
f61eab8286d19493a852b65517fce7121e4c81f5 | Java | huang714669/leetcode-practice | /src/tree/Solution104.java | UTF-8 | 932 | 3.5625 | 4 | [
"Apache-2.0"
] | permissive | package tree;
import utils.TreeNode;
/**
* 给定一个二叉树,找出其最大深度。
* <p>
* 二叉树的深度为根节点到最远叶子节点的最长路径上的节点数。
* <p>
* 说明: 叶子节点是指没有子节点的节点。
* <p>
* 示例:
* 给定二叉树 [3,9,20,null,null,15,7],
* <p>
* 3
* / \
* 9 20
* / \
* 15 7
* 返回它的最大深度 3 。
* <p>
* 来源:力扣(LeetCode)
*/
public class Solution104 {
private int maxDe... | true |
8960d06e9c71f87adf94c3a85f4623d42aa721de | Java | cnsrui/Hello | /src/PrintStar.java | UTF-8 | 2,222 | 3.140625 | 3 | [] | no_license | import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Map;
import java.util.Properties;
public class PrintStar {
private int layer = 0;
public void printStarLayerDown() {
int layer = 5;
for (int i = layer; i > 0; i--) {
for (int j = i; j > 0; j--)... | true |
dbe55d9914d56736bed291c892e2b56cd7a7dd01 | Java | aravindc26/openapi4j | /openapi-operation-validator/src/test/java/org/openapi4j/operation/validator/validation/operation/OperationValidatorTestBase.java | UTF-8 | 1,936 | 2.21875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package org.openapi4j.operation.validator.validation.operation;
import org.openapi4j.operation.validator.model.Request;
import org.openapi4j.operation.validator.model.Response;
import org.openapi4j.operation.validator.validation.OperationValidator;
import org.openapi4j.parser.OpenApi3Parser;
import org.openapi4j.parse... | true |
9e7d15357820256eb5c3351885044505b3eb06be | Java | mukeshSrana/bysykkel-info | /bysykkel-api/src/main/java/no/oslo/bysykkel/api/StasjonStatusInformasjon.java | UTF-8 | 1,226 | 2.046875 | 2 | [] | no_license | package no.oslo.bysykkel.api;
public class StasjonStatusInformasjon {
private String stationId;
private String navn;
private String adresse;
private int kapasitet;
private int ledigSykler;
private int tilgjengeligeLaaser;
public String getStationId() {
return stationId;
}
... | true |
b3278f65357860747da8eec25d8e1639d53cb1ee | Java | WeTheInternet/xapi | /common/src/api/java/xapi/platform/JrePlatform.java | UTF-8 | 457 | 1.6875 | 2 | [
"BSD-3-Clause"
] | permissive | package xapi.platform;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import xapi.platform.PlatformSelector.AlwaysTrue;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Platform
public @int... | true |
9c377aaf91abc71730edb72367158d2541c976b3 | Java | stokey/algorithm-SimpleDemo | /app/src/main/java/com/stokey/algorithmdemo/Sword2Offer/F47AddTwoNumbers.java | UTF-8 | 1,629 | 4.15625 | 4 | [] | no_license | package com.stokey.algorithmdemo.Sword2Offer;
/**
* Created by tiangen on 2017/6/7.
*/
public class F47AddTwoNumbers {
/**
* 写一个函数,求两个整数之和,要求在函数体内不得使用+、-、✖️、/
* 解法:通过二进制的位运算达到效果
* 加法三步:
* 5+17=22
* 1. 只做各位相加不进位,此时相加结果12(个位5和7相加不进位是2,十位数0和1相加结果是1)
* 2. 做进位,5+7中有进位,进位的值是10
* 3. ... | true |
23d156219af3e4328ae15a51d2247bac4500449d | Java | hzfff/hezhao_vivo_musicplayer | /app/src/main/java/com/example/musicplayer_hezhao/LoginMainActivity.java | UTF-8 | 2,291 | 1.898438 | 2 | [] | no_license | package com.example.musicplayer_hezhao;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TableLayout;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.Fr... | true |
be806c7cc86d414c176cfb21369181f996df4493 | Java | VoxelIndustry/SteamLayer | /tile/src/main/java/net/voxelindustry/steamlayer/tile/modular/ICapabilityModule.java | UTF-8 | 468 | 1.796875 | 2 | [
"Apache-2.0"
] | permissive | package net.voxelindustry.steamlayer.tile.modular;
import net.minecraft.util.Direction;
import net.minecraft.util.math.BlockPos;
import net.minecraftforge.common.capabilities.Capability;
import javax.annotation.Nullable;
public interface ICapabilityModule
{
boolean hasCapability(Capability<?> capability, BlockPo... | true |
b52284421dc057630bc171008f37d573d9e53652 | Java | yashi320/Chess-Validator | /src/com/chess/driver/BoardInitializer.java | UTF-8 | 1,149 | 2.8125 | 3 | [] | no_license | package com.chess.driver;
import com.chess.entities.Board;
public class BoardInitializer {
public static void initialize() {
String board[][] = {
{"BR", "BH", "BC", "BK", "BQ", "BC", "BH", "BR"},
{"BP", "BP", "BP", "BP", "BP", "BP", "BP", "BP"},
{"--", "--", "--", "--", "--", "--", "--", "--"},
... | true |
28401c9dae9db2f93df622dcb51aa238ebef03ba | Java | denis-zhdanov/telegram-contest-chart-android | /library/src/main/java/tech/harmonysoft/android/leonardo/util/IntSupplier.java | UTF-8 | 142 | 1.726563 | 2 | [] | no_license | package tech.harmonysoft.android.leonardo.util;
/**
* @author Denis Zhdanov
* @since 14/3/19
*/
public interface IntSupplier {
int get();
}
| true |
b2b828c282b199ae04d177ac69db0aad16c11f22 | Java | P79N6A/icse_20_user_study | /methods/Method_54729.java | UTF-8 | 264 | 1.820313 | 2 | [] | no_license | /**
* Unsafe version of {@link #m_hitPositionWorld(int,double) m_hitPositionWorld}.
*/
public static void nm_hitPositionWorld(long struct,int index,double value){
UNSAFE.putDouble(null,struct + B3RayHitInfo.M_HITPOSITIONWORLD + check(index,3) * 8,value);
}
| true |
7b008d64b90bd5b7fdc6ae1695c7763b0a34703e | Java | khushboorays2020/Project3new | /src/main/java/in/co/sunrays/proj3/controller/JasperCtl.java | UTF-8 | 3,171 | 2.015625 | 2 | [] | no_license | package in.co.sunrays.proj3.controller;
import java.io.IOException;
import java.sql.Connection;
import java.util.HashMap;
import java.util.Map;
import java.util.ResourceBundle;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax... | true |
fb93f4d615664cc1257f6f982f6551a5b12234b5 | Java | xukingzx/leetcode-game | /hyf/MaxProduct_152.java | UTF-8 | 1,903 | 3.015625 | 3 | [] | no_license | package waitsolve;
public class MaxProduct_152 {
/*public int maxProduct(int[] nums) {
int[] dp = new int[nums.length];
for(int i = 0;i < nums.length;i++){
dp[i] = nums[i];
}
int start = 0;
int preNegativePos = 0;
boolean isNegative = false;
if(n... | true |
135de285f5933769fa5e1a939da6fa99466e13ca | Java | itxiaojian/ahpucampusadmin | /ahpucampus-admin/src/main/java/com/stylefeng/guns/modular/system/model/VisitorLogs.java | UTF-8 | 2,717 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package com.stylefeng.guns.modular.system.model;
import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java... | true |