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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
9c80a5539e097bc881f0483bb4677dec4ce8eaf0 | Java | lmkr/dat159 | /roomcontrol/src/no/hvl/dat159/roomcontrol/tests/SimpleController.java | UTF-8 | 699 | 3.078125 | 3 | [] | no_license | package no.hvl.dat159.roomcontrol.tests;
import no.hvl.dat159.roomcontrol.Heating;
public class SimpleController implements Runnable {
Heating heater;
public SimpleController(Heating heater) {
this.heater = heater;
}
public void run() {
System.out.println("Controller running");
try {
for (int... | true |
d37571986504f099f7facc05986b64d175fbc0a0 | Java | GaryLeong/processonline | /src/main/java/com/careland/processonline/controller/UserLoginController.java | UTF-8 | 3,760 | 2.5 | 2 | [] | no_license | package com.careland.processonline.controller;
import com.careland.processonline.entity.MyUser;
import com.careland.processonline.service.UserLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.util.StringUtils;
impor... | true |
de03388c4a3a8fdcf0732bf8dcd18db13c50fbcb | Java | QXL4515/DRCF | /data and code/surfaceData/Matrix.java | WINDOWS-1252 | 2,478 | 3.296875 | 3 | [] | no_license | package math;
import java.io.*;
import java.util.Scanner;
public class Matrix {
private int m;
private int n;
private double[][] matrix;
public Matrix() {}
public Matrix(int m,int n) {
this.m=m;
this.n=n;
this.matrix=new double[m][n];
for(int i=0;i<m;i++)
for(int j=0... | true |
7e552f818f8f6eac6f0bdc4d9096ddddd3b60748 | Java | ryanbartolay/ocpjp | /OCP Review/chapter09/com/ryan/ioandnio/file/FileExample.java | UTF-8 | 439 | 3.34375 | 3 | [] | no_license | package com.ryan.ioandnio.file;
import java.io.File;
import java.io.IOException;
public class FileExample {
public static void main(String[] args) throws IOException {
File file = new File("file.txt");
if(file.exists()) {
System.out.println("File exists");
} else {
if(file.createNewFile())... | true |
5dea65becfe5def77a5839f0da5c10dae676acaf | Java | ashishshresthatest/Javatest | /LearningJava/src/datastructure/ArrayListExample.java | UTF-8 | 359 | 3.25 | 3 | [] | no_license | package datastructure;
import java.util.ArrayList;
public class ArrayListExample {
public static void main(String[] args) {
ArrayList<String> list = new ArrayList<String>();
list.add("ram");
list.add("tiger");
list.add("is fap");
System.out.println(list.size());
for (String a : list) {
... | true |
2e2c9b1f65e384fe859e1431a10efc6a77067d0d | Java | CoolCommando/StockBucks | /app/src/main/java/imprika/stockbucks/InstanceIDCheck.java | UTF-8 | 541 | 1.976563 | 2 | [] | no_license | package imprika.stockbucks;
import android.content.Intent;
import android.content.SharedPreferences;
import com.google.android.gms.iid.InstanceIDListenerService;
public class InstanceIDCheck extends InstanceIDListenerService {
@Override
public void onTokenRefresh() {
SharedPreferences SharePre= getSh... | true |
802e4602a133401a1db697f91a03d51189349df6 | Java | xf06/crmc | /src/main/java/com/blackjade/crm/apis/dword/CDepositCode.java | UTF-8 | 1,385 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package com.blackjade.crm.apis.dword;
import java.util.UUID;
import com.blackjade.crm.apis.dword.ComStatus.DepositCodeStatus;
//CRMC/GW cDepositCode 0x4001 {requestid, clientid, pnsid, pnsgid} HTTP
public class CDepositCode {
private UUID requestid;
private String messageid;
private int clientid;
private int pn... | true |
530d8845fe869c8423ae9d64d19536dbb3128e56 | Java | pcmac94/CMPE133Cookit | /MainMenuPanel.java | UTF-8 | 4,117 | 2.4375 | 2 | [] | no_license |
import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import javax.swing.JFrame;
import j... | true |
f93c4cd1293491c411055df90ed22e9da02a6ac3 | Java | mitchellirvin/parking-lot | /src/main/java/Vehicle.java | UTF-8 | 3,278 | 3.09375 | 3 | [] | no_license | import java.util.Objects;
public final class Vehicle {
private boolean isCompact;
private boolean isHandicapped;
private String owner;
private String make;
private String model;
private int year;
private Vehicle(
boolean isCompact,
boolean isHandicapped,
... | true |
84b913c8fadd8bbe87eb01a01bc2e03318db356e | Java | djagielo/mgr | /JppfTestsMgr/src/main/java/pl/polsl/kmeans2/JppfKMeansTest2.java | UTF-8 | 5,143 | 2.5625 | 3 | [] | no_license | package pl.polsl.kmeans2;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Random;
import org.apache.commons.math3.linear.RealVector;
import org.jppf.client.JPPFClient;
import org.jppf.client.JPPFJob;
import org.jppf.node.protocol.DataProvider;
imp... | true |
a19429666d614585436c32df479bf840962e3545 | Java | gangsijay/myjob | /LG-MICRO/oauth/src/main/java/com/two/config/CustomUserService.java | UTF-8 | 2,411 | 2.515625 | 3 | [] | no_license | package com.two.config;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userde... | true |
c7f5c511f41a6c629d0f6c46d167282208ec907b | Java | jonasinta/mqtt-mysql | /src/org/eclipse/pahodemoAsync/PahoListenPostSynchronus.java | UTF-8 | 3,770 | 2.25 | 2 | [] | no_license | package org.eclipse.pahodemoAsync;
import java.util.Date;
import org.eclipse.paho.client.mqttv3.IMqttDeliveryToken;
import org.eclipse.paho.client.mqttv3.MqttCallback;
import org.eclipse.paho.client.mqttv3.MqttClient;
import org.eclipse.paho.client.mqttv3.MqttConnectOptions;
import org.eclipse.paho.client.mqttv3.MqttE... | true |
69e9461bb1df6bd421a9cef1d159363c0423c91c | Java | Jally-S/gitLearning | /JDWebStore/src/com/anjoyo/jd/activity/JDMainActivity.java | GB18030 | 1,282 | 2.046875 | 2 | [] | no_license | package com.anjoyo.jd.activity;
import com.anjoyo.jd.ExitApplication;
import com.anjoyo.jd.R;
import android.app.Activity;
import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.view.View.O... | true |
cafb96d5afedd0c82af5b9195a2c1a5f82b39d31 | Java | varuneshwarmathur/adidas-subscriptions | /subscriptionservice/src/main/java/com/adidas/subscription/service/SubscriptionProcessorService.java | UTF-8 | 364 | 1.648438 | 2 | [] | no_license | package com.adidas.subscription.service;
import com.adidas.subscription.model.SubscriptionServiceResponse;
import com.adidas.subscription.model.SubscriptionServiceData;
/**
* @author varmathu0
*/
public interface SubscriptionProcessorService {
public SubscriptionServiceResponse createSubscription(Subscrip... | true |
6cb7fe8959ef4282df725612cbbe39ead2d645b1 | Java | ChrisVent/C-Examples | /Java/Hilo.java | UTF-8 | 799 | 3.65625 | 4 | [] | no_license | package App;
// el otro metodo para hacerlo es public class Hilo implements Runnable
// y se instancia ==> Thread myHilo = new Thread( [objeto tipo clasename] , [nombre del hilo]);
// ej: una clase hilo llamada: MyClase
// MyClase [objeto] = new MyClase();
// Thread myHilo = new Thread([objeto] , [nombre del hilo]);... | true |
988d59b67c3d2f9279e8a16e487363f0aadd8b9c | Java | sjwangzju/leetcode | /LeetcodeProblems/Intuit/ConfigurationValues_OA.java | UTF-8 | 4,908 | 3.15625 | 3 | [] | no_license | package Intuit;
import java.util.*;
public class ConfigurationValues_OA {
/**
* time: O(NlogN), N is the number of different servers
*
* space: O(N)
*
*
*
* input:
*
* [base_server]
* ram = 16G
* disk = 15G
*
* [review_console:admin_console]
... | true |
c51a67d19fde28e3cacf99d10ca78e33271d433c | Java | xiaoxianglala/jvm | /src/main/java/com/ysy/thread/MyTest3.java | UTF-8 | 484 | 3.203125 | 3 | [] | no_license | package com.ysy.thread;
/**
* @ClassName MyTest3
* @Description 设置线程名
* @Author ysy
* @Date 2020/6/3 16:31
**/
public class MyTest3 implements Runnable {
@Override
public void run() {
System.out.println("MyTest runnable is running");
}
public static void main(String[] args) {
Thre... | true |
63d55af0d06ce72c903f27b04083787dae44efad | Java | yollpoll/MyApp | /app/src/main/java/com/example/xlm/mydrawerdemo/utils/RxTools.java | UTF-8 | 7,110 | 2.4375 | 2 | [] | no_license | package com.example.xlm.mydrawerdemo.utils;
import android.content.ContentResolver;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import com.example.xlm.mydrawerdemo.bean.Draft;
import com.example.xlm.mydrawerdemo.bean.DraftWithPath;
im... | true |
7b20bfdcfa135150ce49331fb279d8429cfa6abe | Java | swapan-datahawklab/sql-wrapper-codegen | /src/main/java/org/jet/sql/codegen/wrapper/model/QueryArgument.java | UTF-8 | 3,216 | 2.765625 | 3 | [
"Apache-2.0"
] | permissive | package org.jet.sql.codegen.wrapper.model;
import java.sql.JDBCType;
/**
* Simple POJO to hold the query arguments parsed from the yaml file.
*
* @author tgorthi
* @since December 2019
*/
public class QueryArgument
{
private final int paramType;
private final String paramClassName;
private final Stri... | true |
64256a3965146699aa3b5cb20252910f98890ad2 | Java | DeadActive/CH8 | /src/chip/ChipPanel.java | UTF-8 | 514 | 2.53125 | 3 | [] | no_license | package chip;
import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JPanel;
public class ChipPanel extends JPanel{
/**
*
*/
private static final long serialVersionUID = -5532772509883739069L;
public void paint(Graphics g){
byte[] display = CPU.screen;
for (int i = 0;i<display.length;i++){
... | true |
c206e0978472234965af1d6bc79c206f7adc272a | Java | WilliamHXu/Maven.Casino | /src/main/java/io/zipcoder/casino/utilities/Dice.java | UTF-8 | 1,081 | 3.84375 | 4 | [] | no_license | package io.zipcoder.casino.utilities;
public class Dice {
// Instance Variables
private Integer numberOfDice;
private Integer[] diceArray;
// Constructors
public Dice(Integer numberOfDice){
this.numberOfDice = numberOfDice;
this.diceArray = new Integer[numberOfDice];
for... | true |
5d0313a38a10681c33ba7004874b7f9cfa19f89f | Java | axl72/Analizador_lexico | /src/Principal.java | UTF-8 | 477 | 1.78125 | 2 | [] | no_license |
import controlador.CtrlVista;
import modelo.ADP.Parser;
import modelo.Sistema;
import vista.Vista;
/*
* 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.
*/
/**
*
* @author axell
*/
publi... | true |
c9ecce8f3274b2e2f0ab102c1fa3d7c04ddf86af | Java | ballyang747/sqlserverdemo | /src/main/java/org/fkjava/mybatis1sb/util/wsDemo.java | UTF-8 | 920 | 2.28125 | 2 | [] | no_license | package org.fkjava.mybatis1sb.util;
import java.util.List;
import javax.xml.bind.JAXB;
import javax.xml.transform.dom.DOMSource;
import org.fkjava.mybatis1sb.domain.AirLine;
import org.fkjava.mybatis1sb.domain.AirLine.Address;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import cn.com.webxml.Dom... | true |
05d83660050e7cbac4c22e36fe185cd10f7a9e51 | Java | colining/leetcode | /src/cn/colining/bat/dp/Backpack.java | UTF-8 | 651 | 3.203125 | 3 | [] | no_license | package cn.colining.bat.dp;
/**
* Created by colin on 2017/8/11.
*/
public class Backpack {
public static void main(String[] args) {
int[] a = new int[]{1, 2, 3};
int[] b = new int[]{1, 2, 3};
int n = 3;
int cap = 6;
System.out.println(maxValue(a, b, n, cap));
}
... | true |
a7f3540492a7a96befafe2d29c66f000f37c256f | Java | soldiers1989/forcer | /src/main/java/com/huagu/common/enums/CabinetStatus.java | UTF-8 | 346 | 2.140625 | 2 | [] | no_license | package com.huagu.common.enums;
/**
* @ClassName: CabinetStatus
* @Description: 柜组状态(是否通电<=>是否接入系统)
* @author tj
* @date 2018年3月12日 上午11:37:18
*/
public enum CabinetStatus {
/**
* 0没有接入系统,1接入系统
* 0没有启用,1启用中
*/
NOTJOINUP, JOINUP;
}
| true |
601d19719ee7b536c720a279e85d7336df4d0240 | Java | sullis/twilio-java | /src/main/java/com/twilio/rest/video/v1/CompositionCreator.java | UTF-8 | 11,927 | 1.992188 | 2 | [
"MIT"
] | permissive | /**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
package com.twilio.rest.video.v1;
import com.twilio.base.Creator;
import com.twilio.converter.Converter;
import com.twilio.converter.Promoter;
import com.twilio.exception.ApiConnectionException;
import ... | true |
2a52f48607116671d40eb94d93d3844fc5697087 | Java | 2021-j3/spring-backend | /src/main/java/com/ecommerce/j3/domain/mapper/AccountMapper.java | UTF-8 | 2,602 | 2.3125 | 2 | [] | no_license | package com.ecommerce.j3.domain.mapper;
import com.ecommerce.j3.domain.entity.Account;
import com.ecommerce.j3.controller.dto.AccountDto;
import com.ecommerce.j3.domain.entity.Order;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.MappingTarget;
import org.mapstruct.ReportingPolicy;
@M... | true |
1d8ccccd4669aecc067069864bd9347dd1a41eb0 | Java | sagara177/atndbot | /src/atndbot/CronTaskHandler.java | UTF-8 | 1,133 | 2.203125 | 2 | [] | no_license | package atndbot;
import java.io.IOException;
import java.util.List;
import java.util.logging.Logger;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import atndbot.util.AtndCalendar;
import com... | true |
59babed906bd5e6fe3bdfecb7326e72da8458ae8 | Java | goofy1019/Monster-TECG | /src/cartas/Carta.java | UTF-8 | 1,062 | 2.640625 | 3 | [] | no_license | package cartas;
public class Carta {
private String tipo;
private String nombre;
private String descripcion;
private int ID;
private int mana;
private boolean status;
public Carta(boolean stat, String tip, String nom, String des, int id, int man) {
this.status = stat;
this.tipo = tip;
this.nombre = nom;... | true |
ed6f52acf713a11dffe7ba61927e2c651bb72985 | Java | xlsbz/javaEE | /SignIn/src/controller/SignInS.java | GB18030 | 6,014 | 2.453125 | 2 | [] | no_license | package controller;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
imp... | true |
016a3aabad54d1f9799b0258ecb9afbf782b3549 | Java | rcoolboy/guilvN | /app/src/main/java/com/p118pd/sdk/C9539LliII.java | UTF-8 | 6,140 | 1.695313 | 2 | [] | no_license | package com.p118pd.sdk;
import com.umeng.message.proguard.C3848l;
import java.io.ByteArrayOutputStream;
import java.io.OutputStream;
import java.security.SecureRandom;
import org.bouncycastle.cert.crmf.CRMFException;
import org.bouncycastle.operator.RuntimeOperatorException;
import org.bouncycastle.util.Strings;
/* r... | true |
583ab848f6a769c4121d0015075ad8c4bfe2ff14 | Java | jebedi/java-exercises | /src/main/java/designpattern/behavioral/mediator/ChatParticipant.java | UTF-8 | 654 | 3.234375 | 3 | [] | no_license | package designpattern.behavioral.mediator;
public class ChatParticipant {
private final String username;
private final ChatMediator chatRoom;
public ChatParticipant(String username, ChatMediator chatRoom) {
this.username = username;
this.chatRoom = chatRoom;
}
public String getUse... | true |
26ec85ec964b5e98da332a3c303fc8b37350d4e2 | Java | edisaac/carrito | /cart/src/main/java/cart/com/entity/Orden.java | UTF-8 | 1,659 | 2.0625 | 2 | [] | no_license | package cart.com.entity;
// Generated 15-may-2016 19:15:35 by Hibernate Tools 4.3.1.Final
import java.math.BigDecimal;
import java.util.HashSet;
import java.util.Set;
/**
* Orden generated by hbm2java
*/
public class Orden implements java.io.Serializable {
private int idOrden;
private Establecimient... | true |
0cfb6c71582325d6b2f7fe2488ef401e8d6244b5 | Java | bondardima1990/MainAcademy | /src/SE/Theme08JavaNetworking/Lab1/Main.java | UTF-8 | 1,035 | 4.03125 | 4 | [] | no_license | package SE.Theme08JavaNetworking.Lab1;
/**
* 1) Create a Student class with private fields: String name, String course, int id.
* Add getters and setters to Student class. Override the toString() method. <p>
*
* 2) Create a MyClient class, which receives a Student's instance and sends it to the server via a s... | true |
4450dba2679efef81a41a1c737a6a1b33514c007 | Java | tangflash/jewelryApp | /src/main/java/com/flash/jewelry/service/GoldTypeService.java | UTF-8 | 555 | 1.921875 | 2 | [] | no_license | package com.flash.jewelry.service;
import java.util.Collection;
import java.util.List;
import com.flash.jewelry.model.GoldType;
public interface GoldTypeService {
Collection<GoldType> selectGoldType(List list);
GoldType selectGoldTypeById(long id);
void updateGoldType(GoldType goldType);
void deleteGoldType(lon... | true |
dfd74d931fa4be4313c553c174d37dee63b648ad | Java | aibolit/BaseInvaders | /src/main/java/Server/BIServer.java | UTF-8 | 388 | 1.78125 | 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 Server;
import Objects.GameMap;
/**
*
* @author Aleks
*/
public interface BIServer extends Runnable {
... | true |
dc900ebfa0779703687fb8182aab9a33cc81b4ec | Java | KRUBERLICK/LearnJava | /src/lessons/java_complete_guide/part1/chapter3/AGScope.java | UTF-8 | 406 | 3.0625 | 3 | [] | no_license | package lessons.java_complete_guide.part1.chapter3;
/**
* Created by kruberlick on 2/9/16.
*/
public class AGScope {
public static void main(String[] args) {
int x;
x = 10;
if (x == 10) {
int y = 20;
x = y * 2;
}
// y = 100; Error! y is not known... | true |
6574ed788f08217ff966335a656666a9a46f70c0 | Java | xufuzhou1201/reportBuild | /src/main/java/com/jump/aop/constant/ConvertRegister.java | UTF-8 | 342 | 1.828125 | 2 | [
"MIT"
] | permissive | package com.jump.aop.constant;
/**
* @author Jump
* @date 2020/3/9 11:57
*/
public interface ConvertRegister<T, F, R> {
/**
* 转化
*
* @param targetObj targetObj
* @param filedName filedName
* @param filedVale filedVale
* @return R
*/
R convert(T targetObj, String filedName... | true |
30c4e234bcd5bfc3efd66705fe9934ecdf91b03a | Java | LDawns/java20-homework | /8-Generics/韩畅-171860551/src/Units/OldMan.java | UTF-8 | 5,097 | 2.546875 | 3 | [] | no_license | package Units;
import java.util.Comparator;
import java.util.Iterator;
import java.util.Random;
import java.util.Vector;
import Ground.Ground;
import Ground.Tile;
import UnitCollection.CharacterColl;
import UnitCollection.ORDER;
public class OldMan extends Character {
// private Vector<HuLuBaby> childList;
private ... | true |
0b607f060b1dd092ad77f8b760bf94843d27b11d | Java | imakedev/imakedev-tem | /TEMRestServices/src/th/co/imake/tem/dto/TemMsIsdnPackageDetail.java | UTF-8 | 769 | 1.867188 | 2 | [] | no_license | package th.co.imake.tem.dto;
import java.io.Serializable;
import com.thoughtworks.xstream.annotations.XStreamAlias;
@XStreamAlias("temMsIsdnPackageDetailDTO")
public class TemMsIsdnPackageDetail extends BaseDTO implements Serializable {
private static final long serialVersionUID = 1L;
@XStreamAlias("msIsdn"... | true |
74079cdd3c002f72829249a6991f6a9c617f992e | Java | sfurlow/SMP | /SMP/src/org/optaplanner/examples/tarostering/domain/TaRoster.java | UTF-8 | 5,799 | 1.65625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2010 JBoss 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 i... | true |
7f57852a7f3e2b7eb261a854799e159a96b36bb4 | Java | cenbow/fuxiaofengfugib | /cqliving-online/src/main/java/com/cqliving/cloud/online/config/dao/ConfigPermissionDao.java | UTF-8 | 385 | 1.578125 | 2 | [] | no_license | package com.cqliving.cloud.online.config.dao;
import com.cqliving.framework.common.dao.jpa.EntityJpaDao;
import com.cqliving.cloud.online.config.domain.ConfigPermission;
/**
* 前端资源权限,该表数据需要初始化好 JPA Dao
* Date: 2016-12-14 16:50:57
* @author Code Generator
*/
public interface ConfigPermissionDao extends EntityJpaD... | true |
47d7bb1edb4f395df47a1c95f93b3231c29855e2 | Java | slashman/castlevaniarl | /src/crl/action/vanquisher/Recover.java | UTF-8 | 670 | 2.5625 | 3 | [] | no_license | package crl.action.vanquisher;
import crl.action.Action;
import crl.action.HeartAction;
import crl.actor.Actor;
import crl.level.Level;
import crl.player.Player;
public class Recover extends HeartAction{
public int getHeartCost() {
return 15;
}
public String getID(){
return "RECOVER";
}
... | true |
fd27dcfe0054d6cf8a06c49f14fcc8ed93ab895e | Java | cesaregb/EasyClick | /src/com/il/easyclick/android/adapters/ActivityDetailItemAdapter.java | UTF-8 | 2,765 | 2.453125 | 2 | [] | no_license | package com.il.easyclick.android.adapters;
import java.util.List;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.w... | true |
478d4db3d2545b9d438c25365459df9262319fb1 | Java | archehyun/ksg | /src/main/java/com/ksg/workbench/adv/xls/XLSStringUtil.java | UHC | 9,297 | 2.75 | 3 | [] | no_license | package com.ksg.workbench.adv.xls;
import java.text.DecimalFormat;
import java.text.Format;
import java.text.SimpleDateFormat;
import java.util.StringTokenizer;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apach... | true |
c41519144e66560bf86d6808404dab35f2e67375 | Java | GPC-debug/andclient | /common/src/main/java/com/easymi/common/mvp/splash/SplashPresenter.java | UTF-8 | 2,706 | 1.851563 | 2 | [] | no_license | package com.easymi.common.mvp.splash;
import android.content.Context;
import android.content.Intent;
import com.easymi.common.mvp.home.HomeActivity;
import com.easymi.component.Config;
import com.easymi.component.app.XApp;
import com.easymi.component.entity.CompanyInfo;
import com.easymi.component.entity.EmLoc;
impor... | true |
1f495ff6a4313e81cb2ce0b5cf42418ce8390a38 | Java | whf605319646/docker-monitor | /src/main/java/com/github/docker/monitor/service/impl/CaMonitorServiceImpl.java | UTF-8 | 2,673 | 2.015625 | 2 | [] | no_license | package com.github.docker.monitor.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.github.docker.moni... | true |
3eec3eae6d188f54d696c7a8e60b8389778c5c1e | Java | patytavares/Java | /ss/TesteAnimal.java | UTF-8 | 611 | 2.515625 | 3 | [] | no_license | package Anayr;
public class TesteAnimal {
public static void main(String[] args) {
// TODO Auto-generated method stub
Cachorro trovao = new Cachorro ("trovao",1,"\n preto ", 7 );
trovao.ImprimirInformacoesp();
System.out.println("\n");
Cavalo dio = new Cavalo("dio",6," \n branco ", 1 )... | true |
9dac219d067de1f4ca1f53b7fa8849b35441bda3 | Java | ksalic/brxm-ugc-microservice-integration | /jh-ugc/src/test/java/org/example/ugc/web/rest/UserGeneratedContentResourceIT.java | UTF-8 | 14,442 | 1.914063 | 2 | [] | no_license | package org.example.ugc.web.rest;
import org.example.ugc.UgcApp;
import org.example.ugc.domain.UserGeneratedContent;
import org.example.ugc.repository.UserGeneratedContentRepository;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowir... | true |
1ec1f072891683440f1771a9fb7fbeb56c98b767 | Java | latuan1987/OrderItv2 | /app/src/main/java/com/dinogroup/screen/order/OrderScreen.java | UTF-8 | 789 | 1.882813 | 2 | [] | no_license | package com.dinogroup.screen.order;
import com.dinogroup.R;
import com.dinogroup.screen.main.MainScreen;
import com.dinogroup.screen.status.StatusScreen;
import flow.HasParent;
import flow.Layout;
import mortar.Blueprint;
@Layout(R.layout.activity_table_order)
public class OrderScreen implements Blueprint... | true |
3a4f7a61ffa755eb1bbb4623a7516049ffec8b16 | Java | LittleFlowerPig/lfp-pattern | /src/main/java/com/lfp/demo/pattern/behaviour/memento/Memento.java | UTF-8 | 583 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | package com.lfp.demo.pattern.behaviour.memento;
/**
* Title: 快照对象
* Description: 对应于快照domain
* Project: lfp-pattern
* Date: 2017-12-21
* Copyright: Copyright (c) 2020
* Company: LFP
*
* @author ZhuTao
* @version 1.0
*/
public class Memento {
private String profile;
private SnapObject state;
pub... | true |
b8b56027dee83fad7c487b1bc93da518e219e3ec | Java | suninno/access-log-tiger | /src/main/java/com/lge/cto/swinfra/tiger/form/PeriodDateForm.java | UTF-8 | 1,141 | 2.46875 | 2 | [] | no_license | package com.lge.cto.swinfra.tiger.form;
import javax.validation.constraints.Pattern;
import org.hibernate.validator.constraints.NotEmpty;
public class PeriodDateForm {
/**
* 검색 일자(yyyy-mm-dd)
*/
@NotEmpty(message = "검색할 일자는 필수입니다!.")
@Pattern(
regexp = "^[\\d]{4}-[\\d]{2}-[\\d]{2}$"... | true |
4c55b6a4b36bcfa884a973c43c3819457dd7886e | Java | seo-young-kim/BOJ | /src/단기간성장/우주신과의교감.java | UHC | 1,309 | 2.53125 | 3 | [] | no_license | package ܱⰣ;
import java.util.*;
import java.io.*;
public class ֽŰDZ {
static int N;
static int M;
public static void main(String[] args) throws IOException{
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(bf.readLine());
N = Integer.parseIn... | true |
93cebebfb830b1ebd62f81d1c521459c997c5532 | Java | monkeyzi/monkeyzicloud | /monkeyzicloud-provider/monkeyzicloud-provider-ucloud/src/main/java/com/gaoyg/monkeyzicloud/provider/model/dto/menu/UcloudMenuStatusDto.java | UTF-8 | 743 | 1.703125 | 2 | [] | no_license | package com.gaoyg.monkeyzicloud.provider.model.dto.menu;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* @author: 高yg
* @date: 2018/9/16 17:01
* @qq:854152531@qq.com
* @blog http://www.monkeyzi.xin
* @description:
*/... | true |
34cfa1a691baf212b07fa42eea3c123cd080af17 | Java | aesmeral/fabflix | /movies/src/main/java/edu/uci/ics/AESMERAL/service/movies/resources/Thumbnail.java | UTF-8 | 3,463 | 2.40625 | 2 | [] | no_license | package edu.uci.ics.AESMERAL.service.movies.resources;
import edu.uci.ics.AESMERAL.service.movies.core.MyUtil;
import edu.uci.ics.AESMERAL.service.movies.core.Queries;
import edu.uci.ics.AESMERAL.service.movies.core.ResultResponse;
import edu.uci.ics.AESMERAL.service.movies.logger.ServiceLogger;
import edu.uci.ics.AES... | true |
2f72ad774e215f5720a50c5122c8107b7f2e343a | Java | congtaowang/AFT | /app/src/main/java/cn/aft/sample/adapter/SimpleFrescoImageViewHolder.java | UTF-8 | 2,118 | 2.078125 | 2 | [] | no_license | package cn.aft.sample.adapter;
import android.net.Uri;
import android.view.View;
import android.widget.TextView;
import com.facebook.drawee.backends.pipeline.Fresco;
import com.facebook.drawee.drawable.ProgressBarDrawable;
import com.facebook.drawee.generic.GenericDraweeHierarchy;
import com.facebook.drawee.generic.G... | true |
93587c06ec180445eca05c343a664c29def73909 | Java | TSoftTest/DimQCIntegration | /Dim-QC Integration/src/com/tsoft/dimqc/connectors/utils/parser/HtmlWrapperSpan.java | UTF-8 | 1,475 | 2.703125 | 3 | [] | no_license | package com.tsoft.dimqc.connectors.utils.parser;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class HtmlWrapperSpan extends HtmlWrapper {
@Override
public String dibujar() {
// return getSourceElement().text() + "\n";
return getSourceElement().text();
}
@Override
pub... | true |
3d166366ee89529603170240be64de72183221f4 | Java | Ameg-yag/TLS-Attacker | /TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/protocol/message/cert/CertificateEntry.java | UTF-8 | 1,391 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | /**
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
*
* Copyright 2014-2017 Ruhr University Bochum / Hackmanit GmbH
*
* Licensed under Apache License 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*/
package de.rub.nds.tlsattacker.core.protocol.message.cert;
import de.rub.nds.modifiablevariab... | true |
c453d25e32a63a7e5af67a0a5be6303a50658239 | Java | Kenanfa/AOOP-CALC | /src/UnitConverter/VolumeUnitConverter.java | UTF-8 | 876 | 3.171875 | 3 | [] | no_license | package UnitConverter;
public class VolumeUnitConverter implements UnitConverter {
private static final double GALLON_TO_LITRE = 3.7854;
private static final double LITRE_TO_GALLON = 0.2642;
@Override
public double convert(String fromUnit, String toUnit, double value) {
double valueInLitre... | true |
1ffc125d84aa7179d7bbee92acedf1374bb6a569 | Java | michaelperez/fruitshop | /src/test/java/com/perezma/fruitshop/api/v1/mapper/CustomerMapperTest.java | UTF-8 | 926 | 2.546875 | 3 | [] | no_license | package com.perezma.fruitshop.api.v1.mapper;
import com.perezma.fruitshop.api.v1.model.CustomerDTO;
import com.perezma.fruitshop.domain.Customer;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class CustomerMapperTest {
public static final long ID = 1L;
public static final String... | true |
6c7f2159d8b3c3e4336e06c4a8a283b55c872543 | Java | Sadario/GridBagLayoutEditor | /src/test/java/no/ntnu/imt3281/project1/TextAreaTest.java | UTF-8 | 3,067 | 2.96875 | 3 | [] | no_license | /**
*
*/
package no.ntnu.imt3281.project1;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
/**
* @author oivindk
*
* This class tests the TextArea component. It inherits from
* BaseComponent and is used to represent a JTextArea com... | true |
9b93f19cba0badb814fafbc79371f28c72c294f0 | Java | evilZ1994/JavaLearning | /JavaNotes/src/Thread/demo04/TestReadWriteLock.java | UTF-8 | 1,341 | 3.828125 | 4 | [] | no_license | package Thread.demo04;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
/**
* ReadWriteLock:读写锁
* 写写/读写 需要"互斥"
* 读读 不需要"互斥"
*/
public class TestReadWriteLock {
public static void main(String[] args) {
ReadWriteLockDemo demo = new ReadWriteLockD... | true |
a7453f21e5e88c7456f346e8bf5c14b05b2c4cd5 | Java | wh01683/HW_Grader | /src/main/java/entries/assignments/Lab.java | UTF-8 | 1,528 | 2.875 | 3 | [] | no_license | package entries.assignments;
import static util.Constants.*;
/**
* Created by Howerton on 3/30/2016.
*/
public class Lab implements Assignment{
private static double totalPointWorth = 10;
private String assignmentName, className, section;
boolean reqUML;
public Lab(String assignmentName, String c... | true |
81167fd797bb3e27795b4d1eb3a12dc497e02fe5 | Java | BartoszKowalczyk98/inzynierka | /ZPO/zpo5_1ksiazki/src/dekoratornia/Dekorator.java | UTF-8 | 467 | 2.625 | 3 | [] | no_license | package dekoratornia;
public class Dekorator implements Publikacja {
Publikacja publikacja;
public Dekorator(Publikacja publikacja) {
this.publikacja = publikacja;
}
@Override
public String getAutor() {
return publikacja.getAutor();
}
@Override
public String getTytul(... | true |
fc05856e155258a0deb0f71ec03b542cce095067 | Java | hujunjiehit/HealthMail | /app/src/main/java/com/june/healthmail/model/AccessToken.java | UTF-8 | 1,500 | 1.84375 | 2 | [] | no_license | package com.june.healthmail.model;
/**
* Created by june on 2017/3/4.
*/
public class AccessToken {
private String recId;
private String mallId;
private String telephone;
private String token;
private String userName;
private String openId;
private String unionId;
private String user... | true |
2009510982dca8860171e7ab3cd95a57d2985cd6 | Java | cckmit/ddhb_v2 | /hshb_src/com/huatek/hbwebsite/util/CallERPPublicCls.java | UTF-8 | 4,327 | 2.109375 | 2 | [] | no_license | package com.huatek.hbwebsite.util;
import com.huatek.ddhb.manage.frontsystemsetting.entity.FrontSystemSetting;
import com.huatek.ddhb.manage.frontsystemsetting.service.FrontSystemSettingService;
import com.huatek.framework.util.SpringContext;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.rpc.... | true |
1aab1abf620c34dc02efc520f85925ca323ead3c | Java | MehmedMazlum/Java-Gsu | /son_ekler/src/son_ekler/bomba_bomba.java | UTF-8 | 1,327 | 2.8125 | 3 | [] | no_license | package son_ekler;
import java.awt.*;
import java.applet.*;
import java.awt.event.* ;
public class bomba_bomba extends Applet implements KeyListener {
int x = 50 ;
int v = 10 ;
int p ;
int d ;
int g = 5 ;
int t = 0 ;
int k = 0 ;
int m = 200 ;
public void init() {
setSize(500,300);
setBack... | true |
76e4f1a7e063e063e561f5813bddda2e6072ba43 | Java | ofs-vinoth/myrepo | /src/bean/GetAll.java | UTF-8 | 472 | 2.203125 | 2 | [] | no_license | package bean;
import java.sql.ResultSet;
import java.util.ArrayList;
import database.Database;
public class GetAll {
public static ResultSet getEmp(){
ResultSet result=null;
try {
String queryString ="select a.eid,name,dept,basic,hra,dp,pi " +
"from empone a,emptwo b where a.eid=b.eid";
result = Dat... | true |
c73b50453d1ea3aefcb3fe8858e892f21ce993b5 | Java | gnerga/zzpj | /src/main/java/com/example/zzpj/users/UserController.java | UTF-8 | 554 | 1.75 | 2 | [] | no_license | package com.example.zzpj.users;
import com.example.zzpj.security.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annota... | true |
36dfc0b05b66b68812b9b78a539cad527d7950b0 | Java | ezbake/ezbake-intent-query | /intentquerysampleapp/intentquery-sample-app-mongo/src/main/java/ezbake/IntentQuery/Sample/MongoDatasource/Client/TestPredicatesBuilder.java | UTF-8 | 6,298 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | /* Copyright (C) 2013-2014 Computer Sciences Corporation
*
* 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 ap... | true |
c5d1651e161c2a214107967d232ddfa7488c4eca | Java | happy6eve/AppPackager | /02_SourceCode/front/service/app/enums/LayoutCustomizedEnum.java | UTF-8 | 599 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package enums;
/**
* Created by admin on 2015/11/12.
*/
public enum LayoutCustomizedEnum {
LAYOUT_CUSTOMIZED_PARAMS_ISNULL("layout_customized_0001","缺少主要参数"),
LAYOUT_CUSTOMIZED_SCENEID_ISNULL("layout_customized_0002","场景id为空"),
;
private final String code;
private final String message;
... | true |
c43d1851d6d0c3783f87dcfd235255713a42c8f4 | Java | lbroudoux/apicurio-data-models | /src/main/java/io/apicurio/datamodels/asyncapi/v2/models/Aai20Message.java | UTF-8 | 505 | 2 | 2 | [
"Apache-2.0"
] | permissive | package io.apicurio.datamodels.asyncapi.v2.models;
import io.apicurio.datamodels.asyncapi.models.AaiMessage;
import io.apicurio.datamodels.core.models.Node;
/**
* @author Jakub Senko <jsenko@redhat.com>
*/
public class Aai20Message extends AaiMessage {
/**
* Constructor.
*/
public Aai20Message(St... | true |
f467d67c07efba8a1eb0caea6c5044868ce99ca3 | Java | pjs6747/LBMS | /src/model/Visit.java | UTF-8 | 1,377 | 3.5625 | 4 | [] | no_license | package model;
/*
Project: LBMS
File: Visit
Author: Group 4
*/
import java.time.LocalDate;
import java.time.LocalTime;
public class Visit {
/**
* Visitor makeing the visit
*/
private Visitor visitor;
/**
* Date of the visit
*/
private LocalDate Date;
/**
* Start time o... | true |
4578a32a2f1ac9198f0c14027aa58c0a6340edec | Java | rcauth-eu/OA4MP | /oa4mp-server-loader-oauth2/src/main/java/edu/uiuc/ncsa/myproxy/oa4mp/oauth2/storage/OA2MTStore.java | UTF-8 | 1,770 | 2.3125 | 2 | [] | no_license | package edu.uiuc.ncsa.myproxy.oa4mp.oauth2.storage;
import edu.uiuc.ncsa.myproxy.oa4mp.oauth2.OA2ServiceTransaction;
import edu.uiuc.ncsa.security.core.IdentifiableProvider;
import edu.uiuc.ncsa.security.delegation.storage.impl.TransactionMemoryStore;
import edu.uiuc.ncsa.security.delegation.token.RefreshToken;
/**
... | true |
5c028637004a83d95c58dcbbd27238cb22b78ab4 | Java | FlashChenZhi/ykk_sz_gm | /webapp/wms/WEB-INF/src/jp/co/daifuku/wms/asrs/communication/as21/CommunicationAgc.java | UTF-8 | 14,878 | 2.078125 | 2 | [] | no_license | // $Id: CommunicationAgc.java,v 1.3 2006/11/13 08:30:58 suresh Exp $
package jp.co.daifuku.wms.asrs.communication.as21 ;
//#CM30992
/*
* Copyright 2000-2001 DAIFUKU Co.,Ltd. All Rights Reserved.
*
* This software is the proprietary information of DAIFUKU Co.,Ltd.
* Use is subject to license terms.
*/
import java.... | true |
f44ce41ff62fecefc76fd81ea1b385ad3ab46c4b | Java | longphamit/FakeFlappyBird | /src/Entity/Bird.java | UTF-8 | 852 | 2.8125 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Entity;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Rectangle;
import javax.swing.... | true |
625ee679c28b6bb8921d48806a83c1b315e1a2c3 | Java | Jan-OkeMettendorf/my-first-maven-repo | /src/test/java/CalculatorTest.java | UTF-8 | 2,626 | 3.15625 | 3 | [] | no_license | import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
public class CalculatorTest {
@Test
void testCalcAdd(){
//GIVE
int a = 2;
double b = 3;
//WHEN
double result = Calculator.calculateAdd(a, b);
//THEN
Assertions.assertEquals... | true |
62015e9df3633d7b81d6837cd0d90bb2d5c37046 | Java | SahanaK321/UniversityCourseSelection | /UniversityCourseSelection/src/main/java/com/cg/mts/entities/Applicant.java | UTF-8 | 3,177 | 2.3125 | 2 | [] | no_license | package com.cg.mts.entities;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.pe... | true |
409fd72fcd010b069aea4b7d2ae22790d30aac97 | Java | younesschaoui15/Gestion-Des-Etudiants-ENSA | /app/src/main/java/chaoui/cy_15/www/gestiondabsencecy_15/classesActivity.java | UTF-8 | 3,472 | 2.390625 | 2 | [] | no_license | package chaoui.cy_15.www.gestiondabsencecy_15;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.Recycler... | true |
0043746395072c8131b2e978bb9ecee8acf2e932 | Java | koobonhui/java8 | /java8/src/Day14/DmbCellPhone.java | UHC | 459 | 3.203125 | 3 | [] | no_license | package Day14;
public class DmbCellPhone extends CellPhone{
int channel;
DmbCellPhone(String model, String color, int channel) {
this.model = model;
this.color = color;
this.channel = channel;
}
void On( ) {
System.out.println("Dmb Ҵ");
}
void Off( ) {
System.out.println("Dmb ");
... | true |
95be2ff363d1bd729d20521474c6752f58b4a34b | Java | datree-amdocs-open-demo/zusammen-metadata-cassandra | /zusammen-state-store-cassandra-plugin/src/main/java/com/amdocs/zusammen/plugin/statestore/cassandra/VersionStateStore.java | UTF-8 | 5,054 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright © 2016-2017 European Support Limited
*
* 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 applicab... | true |
077e9de4ef0b3dba007b2d6cd4ebdf6f131d6cba | Java | mwk719/springboot-jpa-frame | /src/main/java/com/jdy/sys/role/decker/SysRoleDecker.java | UTF-8 | 539 | 2.09375 | 2 | [] | no_license | package com.jdy.sys.role.decker;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.jdy.sys.role.dto.SysRole;
import com.jdy.sys.role.repository.SysRoleRepository;
@Repository
public class SysRoleDecker {
... | true |
04fbdec3b22840219eb458177bee8eaa5ca61b3c | Java | almibaren/AlmibarenAndroid | /app/src/main/java/com/baren/almi/almibarenandroid/fragment/SmartphoneTabletFragment.java | UTF-8 | 1,816 | 2.125 | 2 | [] | no_license | package com.baren.almi.almibarenandroid.fragment;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
... | true |
07e5daf45b04ae144df9619ce39535345817fe99 | Java | flywind2/joeis | /src/irvine/oeis/a207/A207724.java | UTF-8 | 567 | 2.546875 | 3 | [] | no_license | package irvine.oeis.a207;
// Generated by gen_pattern.pl - DO NOT EDIT here!
import irvine.oeis.GeneratingFunctionSequence;
/**
* A207724 Number of <code>n X 3 0..1</code> arrays avoiding <code>0 0 0</code> and <code>0 1 0</code> horizontally and <code>0 1 1</code> and <code>1 0 1</code> vertically.
* @author Georg... | true |
50545cea4fceec5dc3cadef39ede7190e7bd4246 | Java | KoopahTManiac/RoadRusherBeta | /core/src/com/koopahtmaniac/roadrusher/Items/Coins.java | UTF-8 | 935 | 2.703125 | 3 | [] | no_license | package com.koopahtmaniac.roadrusher.Items;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.koopahtmaniac.roadrusher.GameCore;
import com.koopahtmaniac.roadrusher.Objects.Coin;
import java.util.ArrayList;
public class Coins
{
public ArrayList<Coin> Coins = new ArrayList<Coin>();
public Coins()
{
... | true |
fcac852dc479fa1d84aa4689849f726f28b65a1e | Java | anathema/anathema-rcp | /net.sf.anathema.character.core/src/net/sf/anathema/character/core/model/content/ModelContentChecker.java | UTF-8 | 1,325 | 2.171875 | 2 | [] | no_license | package net.sf.anathema.character.core.model.content;
import net.sf.anathema.basics.eclipse.extension.AttributePredicate;
import net.sf.anathema.basics.eclipse.extension.ClassConveyerBelt;
import net.sf.anathema.basics.eclipse.extension.EclipseExtensionPoint;
import net.sf.anathema.character.core.plugin.internal.... | true |
08dd3c26cd447e7d803640630d22b66dddc16c56 | Java | hung060798/md2_bai18-thread | /src/taoThread/Main.java | UTF-8 | 474 | 2.5 | 2 | [] | no_license | package taoThread;
public class Main {
public static void main(String[] args) {
NumberGenerator numberGen1 = new NumberGenerator();
NumberGenerator numberGen2 = new NumberGenerator();
// numberGen1.getThread().setPriority(Thread.MAX_PRIORITY);
// numberGen2.getThread().setPriority(Thr... | true |
49323937514c2d6906c80bd7ce814fe79bb44f1b | Java | jenkinsci/prometheus-plugin | /src/test/java/org/jenkinsci/plugins/prometheus/config/PrometheusConfigurationTest.java | UTF-8 | 9,699 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package org.jenkinsci.plugins.prometheus.config;
import hudson.model.Descriptor;
import hudson.util.FormValidation;
import junitparams.JUnitParamsRunner;
import junitparams.Parameters;
import net.sf.json.JSONObject;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.kohsuke.sta... | true |
9e76006e1a405a4e04d3ef4ee4f2c1e42842dfeb | Java | Sknictik/NewsApp | /news/src/main/java/noveo/school/android/newsapp/activity/ReadNewsEntryActivity.java | UTF-8 | 11,677 | 2.078125 | 2 | [] | no_license | package noveo.school.android.newsapp.activity;
import android.app.ActionBar;
import android.app.FragmentManager;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.res.TypedArray;
import android.graphics.drawable.ColorDrawable;
import android... | true |
843234199157dcc2a878dd536e37af046db80eb7 | Java | SE-Stuttgart/riot | /integration-tests/src/test/java/de/uni_stuttgart/riot/clientlibrary/thing/test/Fridge.java | UTF-8 | 13,143 | 2.125 | 2 | [
"WTFPL"
] | permissive | package de.uni_stuttgart.riot.clientlibrary.thing.test;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.io.IOException;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.databind.JsonNode;
import de.u... | true |
74787b524584e30f7a5eb0f7ef2a9bf6a755a961 | Java | Minghou-Lei/A-simple-example-for-getting-started-with-Spring-MVC-and-Hibernate | /src/BookStore/controller/LoginController.java | UTF-8 | 1,199 | 2.25 | 2 | [] | no_license | package BookStore.controller;
import BookStore.service.impl.BookStoreServiceImpl;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;
import ja... | true |
396f6a1d3a47d29f5422ca2bf918608e448e6468 | Java | projectnessie/nessie | /api/client/src/main/java/org/projectnessie/client/builder/BaseGetEntriesBuilder.java | UTF-8 | 3,415 | 1.90625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2022 Dremio
*
* 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 wr... | true |
3816dce716a10c39e29fed29b8d196ad4b817949 | Java | yxm785872911/learngit | /offer/Offer18DeleteNode.java | UTF-8 | 1,091 | 3.84375 | 4 | [] | no_license | package com.yxm.offer;
import com.yxm.leetcode.ListNode;
public class Offer18DeleteNode {
public static void main(String[] args) {
}
/**
* 删除一个链表中指定节点的两种方式:
* 一:从头开始遍历节点
* 二:将指定节点的下一个节点的值替换当前节点的值,并更新节点的指针。(前提是指定的链表中一定包含该节点)
* 需要考虑的情况有:
* 头结点为null的时候直接返回null;
* 只有一个节点并且该节点的值等于要删除的节点的值,那么也应该... | true |
2399336f48fc79dc334e4595044cb110f2cd232e | Java | DequocNga/App_SQLite_Demo_3_Update | /app/src/main/java/com/russia/app_sqlite_demo_3/main/MainActivity.java | UTF-8 | 3,829 | 2.34375 | 2 | [] | no_license | package com.russia.app_sqlite_demo_3.main;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
import com.russia.app_sqlite_demo_3.R;
import... | true |
f609d067df8fcc202b669f7d1e101c8a10f2d657 | Java | alex-sakharov/ShellGame | /app/src/main/java/com/example/lexa/shellgame/MainActivity.java | UTF-8 | 4,075 | 2.78125 | 3 | [] | no_license | package com.example.lexa.shellgame;
import android.app.Activity;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.Toast;
import java.util.ArrayList;
import java.u... | true |
212098db0ac4dfdc0f8fad186641ec678a9b3842 | Java | vigneshnbmedia/task | /app/src/main/java/com/android/task2/di/ActivityBuilder.java | UTF-8 | 465 | 1.835938 | 2 | [
"MIT"
] | permissive | package com.android.task2.di;
import com.android.task2.ui.main.MainActivity;
import com.android.task2.ui.main.MainActivityModule;
import com.android.task2.ui.pages.PageProvider;
import dagger.Module;
import dagger.android.ContributesAndroidInjector;
@Module
public abstract class ActivityBuilder {
@Contribut... | true |
40669dbe48cc340b6fd80258e3e4f49e2b00c807 | Java | rauljose32/consumindoJson | /app/src/main/java/com/example/json_01/MainActivity.java | UTF-8 | 3,620 | 2.359375 | 2 | [
"MIT"
] | permissive | /*https://stackoverflow.com/questions/58889465/json-parsing-error-value-jsonstr-of-type-java-lang-string-cannot-be-converted-t*/
package com.example.json_01;
import androidx.appcompat.app.AppCompatActivity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.widget.ListAdapter;
import android.widget... | true |
d6d09e741ccc14f3d1c5240fefa31b69335bb2c0 | Java | weichk/yiji-sdk | /openapi-sdk-message/src/main/java/com/yiji/openapi/message/common/register/PpmRedirectRegisterResponse.java | UTF-8 | 669 | 1.710938 | 2 | [] | no_license | package com.yiji.openapi.message.common.register;
import com.yiji.openapi.sdk.common.annotation.OpenApiField;
import com.yiji.openapi.sdk.common.annotation.OpenApiMessage;
import com.yiji.openapi.sdk.common.enums.ApiMessageType;
import com.yiji.openapi.sdk.common.message.ApiResponse;
/**
* Created by Jason Ma on 201... | true |
01950f7bd433d12ba396a1bb1946000430604aaf | Java | zyl0501/common-controller | /common/src/main/java/com/ray/common/api/JsonResult.java | UTF-8 | 1,858 | 2.5625 | 3 | [] | no_license | package com.ray.common.api;
import org.json.JSONException;
import org.json.JSONObject;
public class JsonResult<T> implements ApiResult<T> {
protected int code;
protected String msg;
protected T data;
protected boolean success = false;
public JsonResult(IErrorCode errorCode) {
this.code = ... | true |
a979b80679194ed4786b88142fd6190f98942a6c | Java | iju1633/eclipse | /hello/src/ch3class/Ex3Mini.java | UHC | 687 | 3.859375 | 4 | [] | no_license | package ch3class;
import java.util.*;
public class Ex3Mini {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int choice;
int answer = (int) (Math.random() * 100); // Math.random() * 100 ̰ſ ȣ ϸ Math.random()̰ int Ǵϱ ׳ 0. Լ 0!
int i = 0;
do {
System.out.print(... | true |