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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
925ede31e928f35526cdadb489af7154c301ed9f | Java | MerDeli/springCouldDemo | /security/src/main/java/com/lyy/security/sso/controller/SsoUserController.java | UTF-8 | 2,143 | 2.265625 | 2 | [] | no_license | package com.lyy.security.sso.controller;
import com.lyy.auth.entity.Account;
import com.lyy.security.sso.service.UserService;
import dto.ApiResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.sprin... | true |
83de1f33d78c20ff71774ad4be685d6cec0357c7 | Java | DXShelley/codeGym | /1.JavaSyntax/src/zh/codegym/task/task08/task0801/Solution.java | UTF-8 | 628 | 3.125 | 3 | [] | no_license | package zh.codegym.task.task08.task0801;
/*
包含植物的 HashSet
*/
import java.util.HashSet;
public class Solution {
public static void main(String[] args) throws Exception {
//在此编写你的代码
HashSet<String> set = new HashSet<>();
set.add("西瓜");
set.add("香蕉");
set.add("樱桃");
... | true |
34342910b8c8102be883efafd64c63d18b863f5b | Java | bannanvitya/SOATestTool | /IBMMqClient/src/main/java/SOATestTool/IBMMqClient/IBMMqClient.java | UTF-8 | 3,351 | 2.234375 | 2 | [] | no_license | package SOATestTool.IBMMqClient;
import SOATestTool.api.*;
import com.ibm.jms.JMSTextMessage;
import com.ibm.mq.jms.JMSC;
import com.ibm.mq.jms.MQQueueConnection;
import com.ibm.mq.jms.MQQueueConnectionFactory;
import com.ibm.mq.jms.MQQueueSender;
import com.ibm.mq.jms.MQQueueSession;
import javax.jms.JMSException;
... | true |
1a3bff73decc7c65574fd9be31ebae3217d705fc | Java | BomireddySrilakshmi/Flowers | /app/src/main/java/com/vvitguntur/flowers/Fragments/MyFlowers.java | UTF-8 | 2,793 | 1.890625 | 2 | [] | no_license | package com.vvitguntur.flowers.Fragments;
import android.app.AlertDialog;
import android.arch.lifecycle.Observer;
import android.arch.lifecycle.ViewModelProvider;
import android.arch.lifecycle.ViewModelProviders;
import android.content.Context;
import android.content.DialogInterface;
import android.net.ConnectivityMan... | true |
2cc77cfba4502332b62bb66eae129a9f48dc5193 | Java | Dantistnfs/bds | /src/org/bds/lang/nativeMethods/list/MethodNativeList.java | UTF-8 | 1,124 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | package org.bds.lang.nativeMethods.list;
import org.bds.lang.nativeMethods.MethodNative;
import org.bds.lang.type.Type;
import org.bds.lang.type.TypeList;
import org.bds.lang.value.Value;
import org.bds.lang.value.ValueList;
import org.bds.run.BdsThread;
/**
* Methods for list/array/stack
*
* @author pcingola
*/
... | true |
0cf490fb21ea61e65799008a24ebf489c32926a0 | Java | suho2012/TestGit | /PasswordSave/app/src/main/java/com/suho/passwordsave/utils/UIUtils.java | UTF-8 | 15,358 | 2.125 | 2 | [] | no_license | package com.suho.passwordsave.utils;
import android.app.Activity;
import android.app.ActivityManager;
import android.content.ContentUris;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.g... | true |
a4fb204037488fce57b7a9ae7f5f7d20908bc891 | Java | zjj1379805106/acuibc | /acuibc-main/src/com/acuilab/bc/main/coin/ICFXCoin.java | UTF-8 | 371 | 2.109375 | 2 | [
"MIT"
] | permissive | package com.acuilab.bc.main.coin;
import java.math.BigInteger;
/**
*
* @author admin
*/
public interface ICFXCoin extends ICoin {
public String deposit(String privateKey, BigInteger value) throws Exception;
public String withdraw(String privateKey, BigInteger value) throws Exception;
pub... | true |
decd42030025533d7fb15d031bf160df451a278f | Java | xwh1108/ssm_bdms | /itxwh-ssm-web/src/main/java/com/xie/controller/ProudctController.java | UTF-8 | 955 | 2.125 | 2 | [
"MIT"
] | permissive | package com.xie.controller;
import com.xie.domain.Product;
import com.xie.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.Model... | true |
3836f5742f850f4c4880e8ab24c1aae851751459 | Java | smartnews/jpa-entity-generator | /sample-wordpress/src/main/java/com/example/entity/Post.java | UTF-8 | 1,884 | 1.734375 | 2 | [
"MIT"
] | permissive | package com.example.entity;
import java.sql.*;
import javax.persistence.*;
import lombok.Data;
@Data
@Entity(name = "com.example.entity.Post")
@Table(name = "wp_posts")
public class Post {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "\"ID\"")
private Long id;
@Column(name = "\"po... | true |
565f2912f5b5556720c6aa1c1b1fce08ffc4e8c2 | Java | aeuan/BBE2101.aliados.android | /app/src/main/java/com/dacodes/bepensa/entities/DetailPromotionsEntity.java | UTF-8 | 1,872 | 2.1875 | 2 | [] | no_license | package com.dacodes.bepensa.entities;
import com.google.gson.annotations.SerializedName;
public class DetailPromotionsEntity{
@SerializedName("image")
private String image;
@SerializedName("lng")
private String lng;
@SerializedName("updated_at")
private String updatedAt;
@SerializedName("ends")
private Str... | true |
a271e84952d809c9fb248dd7c30b8204c02efd90 | Java | treejames/yabo | /operate/report/test/unit/RefundReportUnitTest.java | UTF-8 | 3,885 | 1.976563 | 2 | [] | no_license | package unit;
import controllers.operate.cas.Security;
import factory.FactoryBoy;
import factory.callback.SequenceCallback;
import models.RefundReport;
import models.RefundReportCondition;
import models.operator.OperateUser;
import models.order.ECoupon;
import models.order.ECouponStatus;
import models.order.Order;
imp... | true |
2b15fbe37f51ea5959def17cadf7b3b21229fbe2 | Java | karthikeyanr97/Programs | /MasteringHashmap.java | UTF-8 | 967 | 3.71875 | 4 | [] | no_license | import java.util.HashMap;
import java.util.Scanner;
import java.util.Set;
public class MasteringHashmap extends UserMainCode {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Enter the number of elements:");
int size = scanner.nextInt();
... | true |
2635b9eedebc9cd7a74bb73b987adea5d4b03c02 | Java | bbbbest/zzxlock | /src/test/java/sta/ThreadRun.java | UTF-8 | 1,003 | 3.078125 | 3 | [] | no_license | package sta;
/**
* @author fzh
* @since 2017/10/4
*/
public class ThreadRun {
public static void main(String[] args) throws InterruptedException {
Thread thread = new Thread(() -> {
try {
for (int i = 0; i < 100; i++) {
if (Thread.currentThread().isInterru... | true |
0e1ca0ae9081ccd17b1ffa95906730cc5e719412 | Java | sayi21cn/smartcosmos-framework | /smartcosmos-extension-starter-parent/smartcosmos-extension-archetype/src/main/resources/archetype-resources/src/main/java/visitor/HappyBirthdayWaldoObjectVisitorService.java | UTF-8 | 2,618 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | package ${package}.visitor;
import net.smartcosmos.model.base.EntityReferenceType;
import net.smartcosmos.platform.api.visitor.VisitableObject;
import net.smartcosmos.platform.base.AbstractVisitor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Calendar;
import java.util.GregorianCalendar;
... | true |
4e80355a83eaccd97c550211b5d8403a05359c54 | Java | asiekierka/Up_And_Down_And_All_Around | /src/main/java/uk/co/mysterymayhem/gravitymod/asm/patches/PatchEntityLivingBase.java | UTF-8 | 13,435 | 2.484375 | 2 | [] | no_license | package uk.co.mysterymayhem.gravitymod.asm.patches;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.tree.AbstractInsnNode;
import org.objectweb.asm.tree.FieldInsnNode;
import org.objectweb.asm.tree.MethodNode;
import org.objectweb.asm.tree.VarInsnNode;
import uk.co.myst... | true |
5e9b45f8e986ffb0e1aa69d343408108fe09d848 | Java | Thegoodmen/PhoenixDiscordBot | /src/main/java/com/github/goody/phoenixbot/pterodactylwarpper/Servers.java | UTF-8 | 826 | 2.171875 | 2 | [
"MIT"
] | permissive |
package com.github.goody.phoenixbot.pterodactylwarpper;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
/**
*
* @author Maron Möller
*... | true |
07513efff42a4c762340610edceff9c1c94cdb4c | Java | Geetanjali83Mohanty/SeleniumTest | /src/test/java/com/uniblox/util/PropertyReaderUtil.java | UTF-8 | 603 | 2.484375 | 2 | [] | no_license | package com.uniblox.util;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;
public class PropertyReaderUtil {
public static Properties auto = new Properties();
public static void readProperties() {
auto = new Properties();
try {
FileInputStre... | true |
7b7b5ad1a7274e652ac432d80fab00668cda11ba | Java | sftruelx/spring-security-family | /src/main/java/com/phoenix/security/dto/permission/PidRidsDto.java | UTF-8 | 347 | 1.8125 | 2 | [] | no_license | package com.phoenix.security.dto.permission;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
@Data
@ApiModel
public class PidRidsDto {
@ApiModelProperty("权限id")
private Long pid;
@ApiModelProperty("一组角色id")
private Lis... | true |
ef28bcbd6d7d6d8e660d01acca1237cc96372573 | Java | wivire/designPattern | /src/main/java/design/patterns/creational/factorymethod/JavaVedio.java | UTF-8 | 232 | 2.3125 | 2 | [] | no_license | package design.patterns.creational.factorymethod;
/**
* Date: 2019/3/22
* Time: 11:02
* User: Driss.
*/
public class JavaVedio extends Vedio {
public void produce() {
System.out.println("录制Java课程");
}
}
| true |
b26cc27c8d84078574ca21475a5562f829f806e0 | Java | CarlosZiegler/comcave | /LambdaExpressions/src/lambdas/EingabeTransformer.java | UTF-8 | 445 | 3.015625 | 3 | [] | no_license | package lambdas;
import java.util.function.*;
public class EingabeTransformer
{
public static String transform(String zeichenkette, UnaryOperator<String> t)
{
return t.apply(zeichenkette);
}
public static <T> UnaryOperator<T> compose(UnaryOperator<T>...operatoren)
{
return k ->
{
T ergebnis=k;
f... | true |
10769c770d40e6a8e13ee9476fc306cb9ffaa004 | Java | satelite54/BUSAN_IT_ACADEMY | /Spring_Infearn/WebRTC_UseTrading/src/test/java/com/satelite54/usetrading/DAOTester.java | UTF-8 | 739 | 1.898438 | 2 | [] | no_license | package com.satelite54.usetrading;
import javax.inject.Inject;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.satelite54.usetrading.model.board.dao.IBoardDAO;
@Ru... | true |
9e3d59ab59a074a95377d1c83659abcb63d2c2f6 | Java | florianesapin/PersonMoviesApp | /PersonMoviesApp/src/java/ch/hearc/ig/odi/personmoviesapp/bean/ListPersonBean.java | UTF-8 | 982 | 2.015625 | 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 ch.hearc.ig.odi.personmoviesapp.bean;
import ch.hearc.ig.odi.personmoviesapp.business.Person;
import ch.hearc.ig.odi.p... | true |
e1b26acc502a563e38a183aa5beb9af9243d7e06 | Java | AhmedMansour9/BekaPhone | /app/src/main/java/bekya/bekyaa/Model/Cities_Response.java | UTF-8 | 1,158 | 2.125 | 2 | [] | no_license | package bekya.bekyaa.Model;
import androidx.annotation.NonNull;
import bekya.bekyaa.Activites.Home;
public class Cities_Response {
private String id;
private String name;
private String name_ar;
private String cu;
public Cities_Response() {
}
public Cities_Response(String id, String nam... | true |
a7c406d0b76f1de667450366e048f31b46d79866 | Java | PierreAnken/HEVS_S2_projet_smartphone | /src/smartphone/SerializationManager.java | UTF-8 | 2,353 | 2.90625 | 3 | [] | no_license | package smartphone;
import java.io.EOFException;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
// TODO: Auto-generated Javadoc
/**
* The Class Serializa... | true |
7734cf35b026bd79074670a06b4cf9f6693b0fe2 | Java | gitter-badger/DOP | /src/main/java/ee/hm/dop/service/SearchEngineService.java | UTF-8 | 307 | 1.578125 | 2 | [] | no_license | package ee.hm.dop.service;
import ee.hm.dop.model.solr.SearchResponse;
public interface SearchEngineService {
public SearchResponse search(String query, long start, String sort);
public SearchResponse search(String query, long start, long limit, String sort);
public void updateIndex();
}
| true |
51d5e401361dc6baae99b307ac9e3cce85228631 | Java | Zekzek/TheFour | /src/model/Unit.java | UTF-8 | 19,342 | 2.296875 | 2 | [] | no_license | package model;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.net.URL;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import javax.swing.Imag... | true |
3a0e4bb448cf6dd74377a46a81b1afdf93679017 | Java | ramdcoder/samsung-It-school | /module1/1.4-1.5.java | UTF-8 | 11,780 | 3.625 | 4 | [] | no_license | //Напишите программу, которая обнуляет заданное количество последних бит числа.
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
long number,A,i;
A = in.nextLong();
i = in.nextLong();
A >>=i;
A... | true |
705d1991e95d9208e73e80e6bf84b166d74002c9 | Java | bingely/God | /app/src/main/java/com/meetrend/haopingdian/env/CommonFinalHttp.java | UTF-8 | 5,336 | 2.28125 | 2 | [] | no_license | package com.meetrend.haopingdian.env;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import net.tsz.afinal.FinalHttp;
import org.apache.http.Header;
import org.apache.http.HttpEntity;
import org.apache.http.Ht... | true |
5f6037f04360a7fbe66d0d2eff6a7964eaa7c922 | Java | Kimi2016/FontZip | /src/com/google/typography/font/sfntly/table/Header.java | UTF-8 | 3,108 | 2.484375 | 2 | [
"ICU",
"LicenseRef-scancode-unicode"
] | permissive | package com.google.typography.font.sfntly.table;
import com.google.typography.font.sfntly.Tag;
import java.util.Comparator;
public final class Header
{
private final int tag;
private final int offset;
private final boolean offsetValid;
private final int length;
private final boolean lengthValid;
private f... | true |
02d17f98ab8b5ce8c97b67309094346506bc720e | Java | sdgdsffdsfff/qchat | /sdk/android/src/main/java/com/huajiao/comm/im/rpc/MsgCmd.java | UTF-8 | 1,398 | 2.3125 | 2 | [
"MIT"
] | permissive | package com.huajiao.comm.im.rpc;
/***
* 发送消息
* */
public class MsgCmd extends Cmd {
private static final long serialVersionUID = -2007896494031775953L;
protected String _receiver;
protected int _account_type;
protected int _msg_type;
protected long _sn;
protected byte[] _body;
protected int _timeout_ms;
... | true |
2bbff7dbcd06b7ff83405c24f5bd9b1373e4be37 | Java | theoBattani/javafx_triangle_mesh_sample | /src/main/java/fr/theo/ViewController.java | UTF-8 | 1,938 | 2.421875 | 2 | [] | no_license |
/**
* 'view.fxml' Controller Class
*/
package fr.theo;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.FXML;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.Group;
import javafx.scene.shape.TriangleMesh;
import javafx.scene.paint.PhongMaterial;
import javafx.scen... | true |
17b78463748003838ddb27483fb6366fc6ced1fb | Java | srikanth0115/HealthFitness | /Downloads/HealthFit/app/src/main/java/com/example/srikanthbandi/healthfit/activity/BMIActivity.java | UTF-8 | 2,137 | 2.484375 | 2 | [] | no_license | package com.example.srikanthbandi.healthfit.activity;
import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.CompoundButton;
import android.widget.E... | true |
7a593707b08c865cb094354d9fe0df4f96c98845 | Java | sec00/osee-4 | /plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/integration/skynet/core/utils/TestUtil.java | UTF-8 | 6,846 | 1.609375 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2004, 2007 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
*... | true |
5294499dc4eb6e82ffe49ff300605675d1b97bdd | Java | selbert/jark | /jArk/src/ch/unisi/inf/pfii/teamblue/jark/model/bonus/DoubleRifleVausBonus.java | UTF-8 | 1,065 | 2.484375 | 2 | [] | no_license | package ch.unisi.inf.pfii.teamblue.jark.model.bonus;
import ch.unisi.inf.pfii.teamblue.jark.model.Game;
import ch.unisi.inf.pfii.teamblue.jark.model.vaus.DefaultVaus;
import ch.unisi.inf.pfii.teamblue.jark.model.vaus.DoubleRifleVaus;
import ch.unisi.inf.pfii.teamblue.jark.model.vaus.Vaus;
/**
* Changes the vaus in a... | true |
a7b65d74fefc17d370ca1085ce63909faf4b719f | Java | shaon010/problem-solving | /src/leetcode_tecognize/part2_linkedList/chapter5/detectCycle_141/Solution.java | UTF-8 | 1,673 | 3.671875 | 4 | [] | no_license | package leetcode_tecognize.part2_linkedList.chapter5.detectCycle_141;
import leetcode_tecognize.part2_linkedList.chapter4.implementation.LinkedList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
/**
* Learning: Set is much faster -> contains, add , remove O(1) than arrayList
* Check null... | true |
10d15d530629b791c198fefe680c2321cedbfb48 | Java | songzhantao/gitrepository | /picsys/src/org/picsys/utils/BeanJsonUtil.java | GB18030 | 768 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | package org.picsys.utils;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.http.HttpServletResponse;
import com.google.gson.Gson;
/**
* ѶתJsonǰ
* @desc: TODO
* @author songzhantao
* @date 2016827 8:48:26
*/
public class BeanJsonUtil {
public static void w... | true |
0302b373e78c4c6bfeaa6ee370a86c1b184f4646 | Java | habbyge/mediajourney | /app/src/main/java/com/av/mediajourney/opengl/filter/ImageFilter/objects/BgTextureObject.java | UTF-8 | 1,796 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | /***
* Excerpted from "OpenGL ES for Android",
* published by The Pragmatic Bookshelf.
* Copyrights apply to this code. It may not be used to create training material,
* courses, books, articles, and the like. Contact us if you are in doubt.
* We make no guarantees that this code is fit for any purpose.
* Visit... | true |
3359d8f577f03ff9d95a80c6d646f750aa123a9a | Java | codeatmordor/Algorithms | /src/org/gks/problems/dp/SubsetSum.java | UTF-8 | 1,627 | 3.609375 | 4 | [] | no_license |
// PACKAGE/IMPORTS --------------------------------------------------
package org.gks.problems.dp;
public class SubsetSum {
static boolean isSubsetSum(int[] set, int n, int sum) {
if (sum == 0)
return true;
if (n == 0 && sum != 0)
return false;
// If last element is greater than
// sum... | true |
31db328c3da676eea5ae91f51d0f36e497beabe0 | Java | olehP/checkplease | /src/main/java/com/angelhack/service/MessengerService.java | UTF-8 | 928 | 2.15625 | 2 | [] | no_license | package com.angelhack.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;
import com.angelhack.model.incomming.User;
@Service
public class ... | true |
43e17df892d00ade13d8bd87589a1806366fd61f | Java | MargaretaGalaju/LFPC | /Parser_LFPC/src/com/parser/ParseStack.java | UTF-8 | 931 | 3.46875 | 3 | [] | no_license | package com.parser;
import java.util.ArrayList;
import java.lang.StringBuilder;
public class ParseStack {
private ArrayList<SyntaxNode> data = new ArrayList<SyntaxNode>();
public void push(SyntaxNode input) {
data.add(0, input);
}
public SyntaxNode at(int x) {
return data.get(x);
}
public ArrayList<Syn... | true |
7d414b3b9922ab9565d332f4aae151258fba8c55 | Java | swsw1005/03_jsp | /src/upload/FileUploadBean2.java | UTF-8 | 728 | 2.375 | 2 | [] | no_license | package upload;
import javax.servlet.http.*;
import com.oreilly.servlet.*;
import com.oreilly.servlet.multipart.*;
public class FileUploadBean2 {
public String upload(HttpServletRequest request) {
String reply = "";
String name = request.getParameter("name");
String id = request.getParam... | true |
50b45945269d780af7477dd4e64aab2aa62392e5 | Java | venky611/venky-project | /Lab1/src/main/java/Lab1/CheckNumber.java | UTF-8 | 1,029 | 3.703125 | 4 | [] | no_license | package Lab1;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class CheckNumber {
public static void main (String[] args) throws Exception{
int number;
boolean increasingNumber=false;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
S... | true |
81a48aa3cf1271ab1ed04c14a04629677617c6e7 | Java | lwq030409/hello-world | /src/main/java/org/lyc/test/DemoThread.java | UTF-8 | 581 | 2.609375 | 3 | [] | no_license | package org.lyc.test;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import org.lyc.test.thread.WorkerThread;
public class DemoThread extends Thread {
private int totalCnt = 5;
private ExecutorService fixedThreadPool;
public DemoThread(int totalCnt) {
supe... | true |
b595089937b69f41c2c33114c3ab06d8aeb66232 | Java | alicance/MoneyManage | /moneymanage/src/main/java/com/samego/alic/moneymanage/view/activity/ModifyIncomeActivity.java | UTF-8 | 6,715 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package com.samego.alic.moneymanage.view.activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import com.atermenji.android.iconicdroid.I... | true |
d2cd198e119909eab4cb6610249afa916c91298f | Java | vramanr/MyProject | /src/co/rajaram/venkatraman/MainOutsideTheClass.java | UTF-8 | 435 | 3.15625 | 3 | [] | no_license | package co.rajaram.venkatraman;
//Java Program to demonstrate having the main method in
//another class
//Creating Student class.
class Student {
int id;
String name;
}
//Creating another class TestStudent1 which contains the main method
class MainOutsideTheClass {
public static void main(Str... | true |
a13daade77c25b64e69224025f341851e94e7fe2 | Java | nithinjs88/MyWork | /src/dynamicprogramming/LongestIncreasingSequence.java | UTF-8 | 6,024 | 3.765625 | 4 | [] | no_license | package dynamicprogramming;
import utils.ArrayUtilities;
/**
* http://www.geeksforgeeks.org/dynamic-programming-set-3-longest-increasing-subsequence/
* The longest Increasing Subsequence (LIS) problem is to find the length of the longest subsequence
* of a given sequence such that all elements of the subs... | true |
ef511e3a71f761c3465c0730197272666eb29634 | Java | android8-9/api | /src/java/controller/RegisterController.java | UTF-8 | 1,520 | 2.65625 | 3 | [] | no_license | package controller;
import com.google.gson.Gson;
import dao.UserDAO;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import model.User;
impo... | true |
9c06a9669af504fb4b2e4d148806d3a5e4bcba90 | Java | arwinstanley/Emminent-Domain | /src/RaceDoor.java | UTF-8 | 906 | 3.171875 | 3 | [] | no_license | /**
* @author arwinstanley
* @Date 3/11/18
*
* This Class is used to represent Race cards and it extends DoorCard
*
*/
public class RaceDoor extends DoorCard {
// A string desc of the passive trait
private String passive;
// sets the type to race for all of these cards
private static final String TYP... | true |
b8557fbf0409a37015e0119a8583dddad9784ab7 | Java | anigupta1121/coding_practice | /src/practice/QuickSort.java | UTF-8 | 1,546 | 3.015625 | 3 | [] | no_license | package practice;
import sun.rmi.runtime.Log;
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class QuickSort {
static int partition(int[] ar, int low, int high) {
int p=ar[low];
int t;
int i=high+1;
for(int j=high;j... | true |
834d5dc43c97e49a84555e230deade7657021464 | Java | SimoneBuranti/ingswAM2021-arneodo-bagnacani-buranti | /src/main/java/it/polimi/ingsw/client/view/ViewController.java | UTF-8 | 25,991 | 2.875 | 3 | [] | no_license | package it.polimi.ingsw.client.view;
import it.polimi.ingsw.client.SocketClient;
import it.polimi.ingsw.client.lightModel.LightGame;
import it.polimi.ingsw.client.lightModel.LightGameSolitaire;
import it.polimi.ingsw.messages.*;
import it.polimi.ingsw.messages.observable.*;
import java.io.IOException;
/**
* This cl... | true |
130dc651e6d01b0af88b9284b6f46a19eb14d2a5 | Java | vaidpranav89/SeleniumJavaFrameWork | /src/test/java/Selenium/Automation2/test2.java | UTF-8 | 947 | 2.6875 | 3 | [] | no_license | package Selenium.Automation2;
import resources.dataDrivenExcel;
public class test2 {
public static void main(String[] args) throws Exception {
dataDrivenExcel excel = new dataDrivenExcel(System.getProperty("user.dir")+ "\\excelDataDriven.xlsx");
//System.out.println(excel.workbook.getNumberOfSheets());
exce... | true |
b15907c546d2b8c6d7715ec9b1648a158efd2a7e | Java | verve111/alfresco3.4.d | /root/projects/repository/source/java/org/alfresco/repo/cache/TransactionalCache.java | UTF-8 | 28,717 | 1.96875 | 2 | [] | no_license | /*
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at y... | true |
bf81e82110ec34bb06c1ccd8688f056b6d7d54b3 | Java | ocean-ift/BlackjackGUI | /BJGUI.java | UTF-8 | 4,186 | 3.34375 | 3 | [] | no_license | package Blackjack;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
public clas... | true |
1cae4225fe4b4bbe9b297cc33b4361329b664955 | Java | rahuldhangar02/CustomFetch | /demo/CustomMapper.java | UTF-8 | 454 | 2.46875 | 2 | [] | no_license | package com.example.demo;
import java.util.ArrayList;
import java.util.List;
public class CustomMapper {
public static List<SellInFileDto> toDto(List<String> sellInFileList) {
List<SellInFileDto> sellInFileDtoList = new ArrayList<>();
sellInFileList.stream().forEach(obj -> {
SellInFileDto sellInFileDto = new... | true |
4c3b6f86e6a4f5a080008280c691eeccb28837ab | Java | linsir6/JavaSwingCalculator | /src/ElementContainer.java | UTF-8 | 7,636 | 2.703125 | 3 | [] | no_license | import javax.swing.*;
import java.awt.*;
import java.time.Year;
import java.util.ArrayList;
import java.util.Date;
import java.util.Map;
class ElementContainer extends JFrame {
Map<String, ViewHolder> buttonHolderMap;
private JPanel keyPad = new JPanel();
private JPanel footer = new JPanel();
JTextFie... | true |
fa742d9a711dd73824057f10f44888cb2146a2b3 | Java | anita-martin5703/BeerBuddy | /app/src/main/java/edu/cnm/deepdive/beer_buddy/model/viewModel/BeerViewModel.java | UTF-8 | 2,479 | 2.453125 | 2 | [] | no_license | /**
* Copyright 2019 Anita Martin. All rights reserved.
*/
package edu.cnm.deepdive.beer_buddy.model.viewModel;
import android.app.Application;
import androidx.annotation.NonNull;
import androidx.lifecycle.*;
import edu.cnm.deepdive.beer_buddy.BuildConfig;
import edu.cnm.deepdive.beer_buddy.model.entity.Beer;
import... | true |
7bd73c713211acd940f50f550604c9a89f8f89f1 | Java | willikay11/Hardware | /src/hardware/system/NewSupplier.java | UTF-8 | 23,064 | 2.265625 | 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 hardware.system;
import javax.swing.JOptionPane;
import net.proteanit.sql.DbUtils;
import java.awt.event.KeyEvent;
import java... | true |
df65a7660f8fc0d215ec3e726d9e2be7dbc8ead8 | Java | anhun0810/MyBatisLesson | /src/main/java/cn/easytop/lesson02/annotion/FoodMapper.java | GB18030 | 1,186 | 2.25 | 2 | [] | no_license | package cn.easytop.lesson02.annotion;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectKey;... | true |
0665a697d83f1bcbadb36397ad40221961228dbe | Java | seedsunrise/haoche | /src/main/java/com/haoche/bos/util/CurrentUser.java | UTF-8 | 723 | 2.359375 | 2 | [] | no_license | package com.haoche.bos.util;
import com.haoche.bos.config.security.EmpInfo;
import com.haoche.remoting.dto.ActionDTO;
import org.springframework.security.core.context.SecurityContextHolder;
public class CurrentUser {
public static EmpInfo get() {
Object user = SecurityContextHolder.getContext().ge... | true |
ba2b37d92ab577d955cc3a930647b8745f952d59 | Java | F21HGG/first_use_github | /ArithmeticTest1.java | GB18030 | 3,988 | 3.40625 | 3 | [] | no_license | import java.io.*;
import java.util.Date;
import java.util.Random;
public class SZYS
{
public static void main(String[] args)throws Exception
{
int number,score=0,operator=0;
final int add=0, sub=1, mul=2, div=3, ran=4;
final String operation[]={"","","",""};
//ʮеڴ10 ÿзֱΪ 1 2 û
int quest... | true |
b66cd8a6e678a45fd5aa1855891a5d8b97c9e2b5 | Java | srivathsanav/DistributedEvents | /src/main/java/com/distributedevents/eventing/EventType.java | UTF-8 | 96 | 1.695313 | 2 | [] | no_license | package com.distributedevents.eventing;
public enum EventType {
TYPE_A,
TYPE_B,
TYPE_N;
}
| true |
2d672644f91e369c55645a17067186ef3838e42a | Java | ehrbase/openEHR_SDK | /serialisation/src/main/java/org/ehrbase/openehr/sdk/serialisation/flatencoding/std/marshal/postprocessor/EntryMarshalPostprocessor.java | UTF-8 | 4,232 | 1.8125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2020 vitasystems GmbH and Hannover Medical School.
*
* This file is part of project openEHR_SDK
*
* 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
*
* https://www... | true |
7580faeee97b201c4d75321a3ef46e457cd877cb | Java | pedroeml/acidentes-de-transito-porto-alegre | /src/pucrs/alpro2/tf/ocorrencias/OcorrenciaDiaSem.java | UTF-8 | 890 | 3 | 3 | [
"MIT"
] | permissive | package pucrs.alpro2.tf.ocorrencias;
import java.util.Calendar;
public class OcorrenciaDiaSem extends Ocorrencia<Calendar> {
private int dia_sem;
public OcorrenciaDiaSem(Calendar c) {
super(c);
super.setValue(c);
this.dia_sem = c.get(Calendar.DAY_OF_WEEK);
}
public int getDia_sem() {
return this.dia_s... | true |
a75def84dc9807624e1ee6513a5ad4e5e6a841e0 | Java | luyanjie/mmc-core.pattern | /pattern-observer/src/main/java/com/maochong/xiaojun/subscribe/ISubscribeService.java | UTF-8 | 333 | 1.671875 | 2 | [] | no_license | package com.maochong.xiaojun.subscribe;
/**
* @author jokin
* @date 2018/6/3 0003 12:17
*/
public interface ISubscribeService {
/**
* 新增
* */
void add();
/**
* 删除
* */
void remove();
/**
* 编辑
* */
void edit();
/**
* 查询
* */
void query();
}
| true |
bf27689f82d46ff34b6526bf432242fdcf60aa32 | Java | bigzidane/spring-batch-validate-reader | /src/main/java/com/bigzidane/example/springbatch/SimpleReaderListener.java | UTF-8 | 756 | 2.296875 | 2 | [] | no_license | package com.bigzidane.example.springbatch;
import org.springframework.batch.core.ItemReadListener;
import javax.validation.ConstraintViolation;
import javax.validation.Validation;
import javax.validation.Validator;
import java.util.Set;
public class SimpleReaderListener implements ItemReadListener<SoccerTeam> {
... | true |
fba51699bf80eb966576597ac3ca205e97292329 | Java | victorbadoual/TrueBlock | /FakeBlock App/app/src/main/java/com/example/cameraapp/BlockPusher.java | UTF-8 | 5,289 | 2.34375 | 2 | [] | no_license | package com.example.cameraapp;
import android.net.Uri;
import android.os.Environment;
import android.os.StrictMode;
import org.web3j.crypto.CipherException;
import org.web3j.crypto.Credentials;
import org.web3j.crypto.RawTransaction;
import org.web3j.crypto.TransactionEncoder;
import org.web3j.crypto.WalletUtils;
imp... | true |
e3b46536649981c557d3de02c1a45b2739bab8b6 | Java | vuhson30799/List | /src/Queue/MyQueue.java | UTF-8 | 1,860 | 3.78125 | 4 | [] | no_license | package Queue;
public class MyQueue<E> {
int capacity;
Object queueArr[];
int head = 0;
int tail = -1;
int currentSize = 0;
public MyQueue (int capacity){
this.capacity = capacity;
queueArr = new Object[capacity];
}
public void enqueue (E obj){
if (currentSize ==... | true |
30ecdcdc6d534f5631a15f1f90f41e92aefa82c6 | Java | IraklisBek/MapRecude | /src/TransactionRecord.java | UTF-8 | 1,734 | 3.0625 | 3 | [
"MIT"
] | permissive | package project;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.io.Writable;
/**
* Class that will be used in MapReduceClass
* in order to help the TransactionsMap class (check in M... | true |
5ef57ed3a6b7e0efb6b34f8683cb8aee898a3367 | Java | DivyaSwetha/ELF-06June19-Covalense-SwethaUnnam | /CoreJava/CoreJavaAssignments/src/com/covalense/assignmentssecond/LevelTwo.java | UTF-8 | 172 | 1.914063 | 2 | [] | no_license | package com.covalense.assignmentssecond;
import lombok.extern.java.Log;
@Log
public class Level2 extends Level {
void status() {
log.info("fuel status:3liters");
}
}
| true |
d2e916f8c35d7f1283fc35eb710f59ff692c74bb | Java | edimailzaProjects/CursoDePOO | /AulasPOO/src/main/java/edi/curso/poo/aulas/aula05/reforco/DadosBanco.java | UTF-8 | 1,044 | 2.71875 | 3 | [] | no_license | package edi.curso.poo.aulas.aula05.reforco;
import java.util.ArrayList;
import java.util.List;
public class DadosBanco
{
List<ContaBanco> dados = new ArrayList<>();
public List<ContaBanco> getDados()
{
return dados;
}
public void setDados(List<ContaBanco> dados)
{
this.dados ... | true |
5730f31ce15acfc5cf59b607c3c253b59375b6db | Java | tayfuncelik/freenow | /src/main/java/com/freenow/service/driver/DriverService.java | UTF-8 | 1,069 | 2.140625 | 2 | [] | no_license | package com.freenow.service.driver;
import com.freenow.datatransferobject.CarSelectDTO;
import com.freenow.datatransferobject.DriverDTO;
import com.freenow.domainobject.DriverDO;
import com.freenow.domainvalue.OnlineStatus;
import com.freenow.exception.CarAlreadyInUseException;
import com.freenow.exception.Constraints... | true |
c27d88ea1ac5f008996f666dae06572faabcc4aa | Java | suevip/sdk_parent | /trunk/hytx_sdk_model/src/main/java/com/hytx/dao/baseConf/ori/CpInfoMapper.java | UTF-8 | 867 | 1.921875 | 2 | [] | no_license | package com.hytx.dao.baseConf.ori;
import com.hytx.model.baseConf.CpInfo;
import com.hytx.model.baseConf.CpInfoExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CpInfoMapper {
int countByExample(CpInfoExample example);
int deleteByExample(CpInfoExample exa... | true |
98a31bbabbcc5e6139350d7fd1fadde529902904 | Java | datahaki/owl | /src/test/java/ch/alpine/owl/util/img/ImageAlphaTest.java | UTF-8 | 1,395 | 2.421875 | 2 | [] | no_license | // code by jph
package ch.alpine.owl.util.img;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import java.awt.image.BufferedImage;
import org.junit.jupiter.api.Test;
import ch.alpine.tensor.Tensor;
import ch.alpine.tensor.Tensors;
import ch.... | true |
45a8c17ffb080bdd6a9377c062771dc21059f804 | Java | highj/highj | /src/main/java/org/highj/data/List.java | UTF-8 | 34,160 | 2.890625 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package org.highj.data;
import org.derive4j.hkt.__;
import org.highj.data.eq.Eq1;
import org.highj.data.instance.list.*;
import org.highj.data.instance.list.ListEq1;
import org.highj.data.ord.Ord1;
import org.highj.function.F3;
import org.highj.function.F4;
import org.highj.function.Strings;
import org.highj.data.tupl... | true |
c09bcd71f7c5800b6dfbe8b271094b7c3816a72e | Java | rgarcial1983/XrayJiraRestClient | /src/main/java/es/cuatrogatos/jira/xray/rest/client/core/internal/json/TestRunJsonParser.java | UTF-8 | 2,716 | 2.265625 | 2 | [] | no_license | package es.cuatrogatos.jira.xray.rest.client.core.internal.json;
import com.atlassian.jira.rest.client.api.domain.BasicIssue;
import com.atlassian.jira.rest.client.internal.json.GenericJsonArrayParser;
import com.atlassian.jira.rest.client.internal.json.JsonObjectParser;
import com.atlassian.jira.rest.client.internal.... | true |
014ebdafff8f6605863333630550b116f1b479fd | Java | SigmaITC/competencebyjava-microservice-springboot | /src/test/java/se/sigma/microservice/springboot/services/UserServiceTest.java | UTF-8 | 2,907 | 2.328125 | 2 | [
"MIT"
] | permissive | package se.sigma.microservice.springboot.services;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import io.vavr.collection.List;
import io.vavr.control.Option;
import java.util.U... | true |
f19a53ae10013151979e14d174c484786a618bf0 | Java | LiaoYuxuan/DataStructure | /studyjava/BucketSort.java | UTF-8 | 2,600 | 3.984375 | 4 | [] | no_license | package studyjava;
import java.util.ArrayList;
import java.util.Arrays;
public class BucketSort {
public static void main(String[] args) {
ArrayList<Integer> arrayList = new ArrayList<Integer>();
arrayList.add(5);
arrayList.add(77);
arrayList.add(11);
arrayList.add(3);
... | true |
d9f600d15ef48347950cbbbafde8654b5c231fa3 | Java | Prem212/JAVA | /Practise/Udemy/Practise Test/caveOfProgrammingTest/DdoAndWhile.java | UTF-8 | 337 | 3.09375 | 3 | [] | no_license | package caveOfProgrammingTest;
import java.util.Scanner;
public class DdoAndWhile {
public static void main(String[] args) {
Scanner s =new Scanner(System.in);
int i=0;
do {
System.out.println("Enter the number: ");
i = s.nextInt();
}
while (i < 10);
System.out.println("Greater than 10 dete... | true |
670e1f0681c6b403ff983f924f9a754243a5ecf0 | Java | thuatsi01/i-commerce | /icommerce-apis/rest-apis/src/main/java/com/icommerceapis/restapis/entity/ProductCategoryEntity.java | UTF-8 | 1,040 | 2.09375 | 2 | [] | no_license | package com.icommerceapis.restapis.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "product_category")
public class ProductCategoryEntity {
@Id
@Column(name = "category_code", nullable = false)
pri... | true |
a04547dd83ae86b02769cdce6a104fc7497f0472 | Java | youngsam-byun/bv | /src/test/java/com/ys/web/controller/Log4jTest.java | UTF-8 | 1,024 | 1.898438 | 2 | [] | no_license | package com.ys.web.controller;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.junit.Before;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.MethodSorters;
import org.springframework.test.context.ContextConfiguration;
impo... | true |
263cb1973ea45e40274051723dda48408d42cea6 | Java | chaomao/lunzi-orm | /src/main/java/com/thoughtworks/orm/DataRow.java | UTF-8 | 2,222 | 2.953125 | 3 | [] | no_license | package com.thoughtworks.orm;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
public class DataRow {
private Map<String, Object> map = new Has... | true |
804dfd9928b57b7e9b83c9b0f60d713dacc37a47 | Java | qjijk/uixy | /app/src/main/java/com/url/msi/uixy/SQLiteDataBaseSerializable.java | UTF-8 | 462 | 2.140625 | 2 | [] | no_license | package com.url.msi.uixy;
import android.database.sqlite.SQLiteDatabase;
import java.io.Serializable;
public class SQLiteDataBaseSerializable implements Serializable {
private SQLiteDatabase db;
public SQLiteDataBaseSerializable(AssetsDatabaseManager mg, String name){
this.db = mg.getDatabase(name);
... | true |
29018910e29d1f4fcbbce2940498e75fba75e278 | Java | 973319261/shiro-demo | /shiro/src/com/koi/service/impl/UserRoleServiceImpl.java | UTF-8 | 3,849 | 2.203125 | 2 | [] | no_license | package com.koi.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.hutool.core.collection.CollUtil;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.koi.annotation.LogA... | true |
6c0c145ab7a1b69a54ade8027fc4fd9dd51c555a | Java | Ancrazyking/HibCRM | /CRM/src/com/ancrazyking/dao/CustomerDao.java | UTF-8 | 348 | 2.109375 | 2 | [] | no_license | package com.ancrazyking.dao;
import com.ancrazyking.bean.Customer;
import java.util.List;
/**
* @author Ancrazyking
* @date 2018/4/17 11:21
**/
public interface CustomerDao
{
//保存客户
void save(Customer c);
//查询所有客户
List<Customer> queryAll();
//根据id获得客户
Customer getById(Long cust_id);
}
| true |
6568f2c2db591c0f883ea7ac4b3ed9d476dda526 | Java | bigfatpancha/template-tp-grupal | /src/main/java/ar/fiuba/tdd/tp/engine/JsonReaderExample.java | UTF-8 | 546 | 2.359375 | 2 | [] | no_license | package ar.fiuba.tdd.tp.engine;
import ar.fiuba.tdd.tp.engine.conf.GameConfigurationReader;
import ar.fiuba.tdd.tp.engine.conf.GameNotFoundException;
/**
* Created by pablo on 4/27/16.
*/
public class JsonReaderExample {
public static void main(String[] args) {
try {
GameConfigurationReade... | true |
3de395ce0a986827b7afd59c3272654f0604a436 | Java | imaresss/Our_BB_BE_Project | /app/src/main/java/ieee/donn/Main/ConnectUsers.java | UTF-8 | 6,585 | 1.921875 | 2 | [] | no_license | package ieee.donn.Main;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import and... | true |
c5b2402e4056ce24c669fc4c19a5d718f23455f1 | Java | yfgeek/blog-md | /leetcode/src/test/java/org/xiyou/leetcode/leetcode/Test.java | UTF-8 | 984 | 2.421875 | 2 | [] | no_license | package org.xiyou.leetcode.leetcode;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Stack;
/**
* @author xiyou
* @version 1.0
* xiyou-todo XXX功能
* @date 2020/5/12 23:11
*/
public class Test {
public static void test45() {
try {
Class.for... | true |
15595d63c97b3fadef3bc97fa051e1e91cc9a78f | Java | chis123/MyFounder | /e5-core/src/com/founder/e5/doc/exception/DifferentGroupException.java | GB18030 | 1,332 | 2.46875 | 2 | [] | no_license | /**
* $Id: e5project com.founder.e5.doc.exception DifferentGroupException.java
* created on 2005-8-3 9:39:26
* by liyanhui
*/
package com.founder.e5.doc.exception;
import com.founder.e5.context.E5Exception;
/**
* ϵʱĵͬʱ׳쳣
* @author liyanhui
* @version 1.0
* @created 2005-8-3 9:39:26
*/
public class Different... | true |
9fedb1f616c2da5d7e67163f66dc14b283409e0c | Java | freeEasyUse/diyspringboot | /src/main/java/org/freeuse/spbt/controller/PersonController.java | UTF-8 | 2,637 | 2.40625 | 2 | [] | no_license | package org.freeuse.spbt.controller;
import java.util.List;
import org.freeuse.spbt.jpa.dao.PersonRepository;
import org.freeuse.spbt.jpa.entity.Person;
import org.freeuse.spbt.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org... | true |
6b24d5443956434e497cfa311c01d84ec9c2624a | Java | TJHL/Level_1 | /src/Month.java | UTF-8 | 1,293 | 3.265625 | 3 | [] | no_license | import javax.swing.JOptionPane;
public class Month {
int days;
String name;
Month nextmonth;
public static void main(String[] args) {
Month january = new Month(31, "January");
Month febuary = new Month(29, "Febuary");
Month march = new Month(31, "March");
Month april = new Month(30, "April");
Month may ... | true |
eded3c266cbd6a7b2bc246f493818c265a311e2f | Java | shenjiabing/wrapper | /wrapper-http/src/main/java/com/sayweee/wrapper/http/RetrofitIml.java | UTF-8 | 6,851 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package com.sayweee.wrapper.http;
import android.app.Application;
import android.content.Context;
import com.sayweee.wrapper.http.converter.WrapperConverterFactory;
import com.sayweee.wrapper.http.cookie.CookieJarImpl;
import com.sayweee.wrapper.http.cookie.CookieStore;
import java.util.ArrayList;
import java.util.H... | true |
6b4953567d1ad58c33fe301a3add44d1f91a22bd | Java | gongva/async-mvc | /app/src/main/java/com/vivi/asyncmvc/ui/me/FeedBackActivity.java | UTF-8 | 13,539 | 1.679688 | 2 | [] | no_license | package com.vivi.asyncmvc.ui.me;
import android.Manifest;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.studio.view.ViewUtils;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
imp... | true |
5d5fc87b31bc6c11ba26c951a0117c002be90253 | Java | gxlioper/xajd | /main/com/zfsoft/xgxt/xyfd/fdkcwh/fdkcsq/FdkcsqDao.java | GB18030 | 8,191 | 1.835938 | 2 | [] | no_license | package com.zfsoft.xgxt.xyfd.fdkcwh.fdkcsq;
import com.zfsoft.xgxt.base.dao.impl.SuperDAOImpl;
import xgxt.comm.search.SearchService;
import xgxt.form.User;
import java.util.HashMap;
import java.util.List;
/**
* Created by llf on 2019/8/2.
*/
public class FdkcsqDao extends SuperDAOImpl<FdkcsqForm> {
@Override
... | true |
cf6cb050d4eeb90673e5c303e858e3603b036afe | Java | luolibing/Study | /src/test/java/sync/UpdaterTest.java | UTF-8 | 399 | 2.203125 | 2 | [] | no_license | package sync;
import org.junit.Test;
import sync.object.Author;
import sync.object.Updater;
/**
* Created by LuoLiBing on 15/6/13.
*/
public class UpdaterTest {
@Test
public void test() {
Updater.UpdateBuilder builder = new Updater.UpdateBuilder();
Updater updater = builder.author(new Autho... | true |
0d3a3fa81c1082b16c91ea3bd98414b2508b3668 | Java | reverseengineeringer/me.lyft.android | /src/com/facebook/ProfileTracker.java | UTF-8 | 2,100 | 1.976563 | 2 | [] | no_license | package com.facebook;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.support.v4.content.LocalBroadcastManager;
import com.facebook.internal.Validate;
public abstract class ProfileTracker
{
private final Loc... | true |
1f6d1a7cf06fd352ede1740bf96c8d60a5b09dfe | Java | kmehrunes/Scenario | /scenario/src/main/java/org/scenario/runners/ScenarioRunner.java | UTF-8 | 2,435 | 2.46875 | 2 | [] | no_license | package org.scenario.runners;
import org.scenario.definitions.*;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* Runs a scenario including its hooks.
*/
class ScenarioRunner {
private final StepRunner stepRunner;
... | true |
0b787c19a9acd865aa421d9e3fd0e845f58b169b | Java | mpicbg-scicomp/BioImageAnalysisToolbox | /src/main/java/de/mpicbg/scf/rhaase/volumemanager/plugins/manipulation/ColourVolumesAccordingToSliceNumberPlugin.java | UTF-8 | 3,736 | 2.21875 | 2 | [
"BSD-3-Clause"
] | permissive | package de.mpicbg.scf.rhaase.volumemanager.plugins.manipulation;
import de.mpicbg.scf.imgtools.geometry.data.PolylineSurface;
import de.mpicbg.scf.imgtools.ui.DebugHelper;
import de.mpicbg.scf.volumemanager.VolumeManager;
import de.mpicbg.scf.volumemanager.plugins.AbstractVolumeManagerPlugin;
import fiji.util.gui.Gene... | true |
b985ec027f7e0a179ee916c26ec7377ee16b923b | Java | colegarien/SDDTermProject | /app/src/main/java/edu/uco/schambers/classmate/SocketActions/StudentRollCallAction.java | UTF-8 | 1,976 | 2.671875 | 3 | [] | no_license | package edu.uco.schambers.classmate.SocketActions;
import android.util.Log;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.net.InetAddress;
import java.net.Socket;
import edu.uco.schambers.classmate.ObservableManagers.IPAddressM... | true |
d0ca09ca3e2358aa960fc0709bf24ce26cc921a2 | Java | vineelbharath/Account | /CheckingAccount.java | UTF-8 | 338 | 2.453125 | 2 | [] | no_license | package com.fmr;
public class CheckingAccount extends Account {
public CheckingAccount(double initialBalance){
super(initialBalance);
}
@Override
public void getcheckBal() {
//Account account = new Account(1000.0);
System.out.println("balance is " + super.getBal... | true |
bb7c8bfaac861c409acd3b020f94036433734844 | Java | jayramrout/batch20 | /employeeweb/src/jrout/tutorial/servlet/GetEmployeeServlet.java | UTF-8 | 2,911 | 2.65625 | 3 | [] | no_license | package jrout.tutorial.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebSe... | true |