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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
26999754554beae2310c089db39722c21b0e5248 | Java | Megachilimac/OnTapSTL | /app/src/main/java/com/beertap/ontapstl/BeerListFragment.java | UTF-8 | 2,222 | 2.125 | 2 | [] | no_license | package com.beertap.ontapstl;
import java.util.List;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.support.v4.app.ListFragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewG... | true |
96975d79c0424fec12bab2d4cb484e69ec80a397 | Java | ssysek/converter | /src/main/java/com/agh/kompilatory/ConverterUtils/Csv/CsvObject.java | UTF-8 | 873 | 2.6875 | 3 | [
"MIT"
] | permissive | package com.agh.kompilatory.ConverterUtils.Csv;
import java.util.ArrayList;
import java.util.List;
public class CsvObject {
List<String> headers;
List<List<String>> data;
public CsvObject(List<String> headers, List<List<String>> data) {
this.headers = headers;
this.data = data;
}
... | true |
ef02ac7705077ec0973cbb0b1212755cad80a007 | Java | shuvojit007/masterplannerpro | /app/src/main/java/com/cruxbd/master_planner_pro/utils/PrefUtils.java | UTF-8 | 2,024 | 2.21875 | 2 | [] | no_license | package com.cruxbd.master_planner_pro.utils;
import android.content.Context;
import android.content.SharedPreferences;
import android.support.annotation.NonNull;
import android.widget.Toast;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.au... | true |
4cac3b5749f0187cc224285230848bbeb189f373 | Java | MathiasAbreu/ProjectEdoe.com | /testes/junit/edoe/tests/exceptions/InvalidArgumentExceptionTest.java | UTF-8 | 983 | 2.875 | 3 | [] | no_license | package junit.edoe.tests.exceptions;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import br.com.lp2.edoe.exceptions.InvalidArgumentException;
class InvalidArgumentExceptionTest {
@Test
@DisplayName("Teste para provocar a excecao de... | true |
d0619418ae8d85a25cca031706776a19eedbfae7 | Java | habiburrahmankhan/algo_with_java | /Mywork/src/trees/binarytreeclient.java | UTF-8 | 897 | 2.484375 | 2 | [] | no_license | package trees;
public class binarytreeclient {
public static void main(String[] args) {
BinaryTree bt = new BinaryTree();
bt.display();
System.out.println("height of tree " + bt.height());
bt.preorder();
System.out.println("pre order");
bt.postorder();
Syst... | true |
9d03ed965fb5d14a58b7e2e058112857fd670920 | Java | mYunYu/dataStructures | /src/com/jju/linkedlist/SingleLinkedListDemo.java | UTF-8 | 13,121 | 3.953125 | 4 | [] | no_license | package com.jju.linkedlist;
import java.util.Stack;
//单链表
//单链表与双向链表比较
//1、单向链表,查找的方向只能是一个方向;而双向链表可以向前或者向后查找
//2、单向链表不能自我删除,需要靠辅助节点,而双向链表,则可以自我删除,在单链表删除节点时,总是找到temp的下一个节点来删除
public class SingleLinkedListDemo {
public static void main(String[] args) {
//测试
//先创建节点
HeroNode heroNode1 = new ... | true |
6baa0bef38b38f13dc3be919d9f598c513687e23 | Java | nemeros/AwsApp | /OrderService/src/main/java/com/dao/OrderDao.java | UTF-8 | 1,250 | 2.390625 | 2 | [] | no_license | package com.dao;
import java.util.List;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import com.pojo.Orde... | true |
b33c3543326894d4ef6f5a4a5f0b73a43eadb55c | Java | ashutoshtripathi123/codes-and-notes | /codes/java_programs/parth/ISC_COMPUTER_SCIENCE_PROJECT.java | UTF-8 | 66,417 | 2.34375 | 2 | [] | no_license | //Hutchings High School and Junior College.
//NAME:-Parth.H.Pancholi.
//CLASS:-Xll.
import java.util.*;
class ISC_COMPUTER_SCIENCE_PROJECT
{
int cntr;
char tc;
String bv[]=new String[61];
int br[]=new int[61];
String lv[]=new String[66];
int lr[]=new int[66];
String bmv[]=new Str... | true |
ba3914186192860b8ca6ec7a6a717ae273372ac7 | Java | fin04/GuildFantasy | /app/src/main/java/com/epriest/game/guildfantasy/main/Game_QuestList.java | UTF-8 | 3,830 | 1.921875 | 2 | [] | no_license | package com.epriest.game.guildfantasy.main;
import android.graphics.Bitmap;
import android.view.MotionEvent;
import com.epriest.game.CanvasGL.graphics.GLUtil;
import com.epriest.game.CanvasGL.util.Game;
import com.epriest.game.CanvasGL.util.GameUtil;
import com.epriest.game.guildfantasy.main.enty.ButtonEnty;
import c... | true |
120e53a146f1ee71e90909cb05557f0b8918ea43 | Java | filosofisto/dev-course | /Java/Exemplos/72-nio7/src/main/java/com/javabasico/Main.java | UTF-8 | 931 | 3.453125 | 3 | [
"MIT"
] | permissive | package com.javabasico;
import java.io.IOException;
import java.nio.file.DirectoryStream;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Path;
public class Main {
public static void main(String[] args) {
if (args.length != 1) {
System.err.println("Passe o nome do diretorio p... | true |
85852945b6e25b4fad3847f2896e56cfd8c482d5 | Java | torutk/jjugccc2016fall-javafx | /src/com/torutk/tinymap/TinyMapViewController.java | UTF-8 | 9,758 | 2.1875 | 2 | [] | no_license | /*
* © 2016 Toru Takahashi
*/
package com.torutk.tinymap;
import com.torutk.tinymap.TinyMapModel.MapProjection;
import java.io.File;
import java.net.URL;
import java.nio.file.Paths;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.beans.prope... | true |
3d108000aa7f576db88afb167e86dea9bbcdce3f | Java | Wuming-ta/biliya | /member-domain/src/main/java/com/jfeat/member/task/CouponStatisticJob.java | UTF-8 | 1,284 | 2.171875 | 2 | [] | no_license | package com.jfeat.member.task;
import com.jfeat.job.CronExp;
import com.jfeat.kit.DateKit;
import com.jfeat.member.service.CouponStatisticService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Crea... | true |
b0f29f87a75bf77b08fbacc9490c3e8d238e8370 | Java | marcelx180/jumpnrun | /Klassenserver/src/me/marcel/klassenserver/route/RouteManager.java | UTF-8 | 1,827 | 2.59375 | 3 | [] | no_license | package me.marcel.klassenserver.route;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.Location;
import me.marcel.klassenserver.config.ConfigManager;
public class RouteManager {
private static List<Route> routes = new ArrayList<Route>();
public static void add(Route route) {
... | true |
cc8d2930edcb4472bd8bea99a576bbd12c038227 | Java | reji1974/tutorials | /spring-security-rest-full/src/test/java/org/baeldung/client/RestTemplateLiveTest.java | UTF-8 | 5,757 | 2.1875 | 2 | [] | no_license | package org.baeldung.client;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.http.auth.AuthScope;
import org.apache.http.auth.UsernamePasswordCredentials;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.impl.client.BasicCr... | true |
355c7abbb9fd53b13f2d5f636dadf93433e03b3f | Java | mmatarazzo/p-sol | /app/src/main/java/com/example/mmataraz/game/state/PlayState.java | UTF-8 | 17,050 | 2.46875 | 2 | [] | no_license | package com.example.mmataraz.game.state;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.Rect;
import android.graphics.Typeface;
import android.view.MotionEvent;
import com.example.mmataraz.framework.animation.Animation;
import com.example.mmataraz.framework.util.Painter;
import... | true |
d26d79aeed92d8c4f757449fd25300720bf22da9 | Java | curtis-cecil/image-morph | /src/panelHandler.java | UTF-8 | 17,198 | 2.734375 | 3 | [] | no_license | import javax.swing.*;
import java.awt.event.*;
import java.awt.image.BufferedImage;
import java.awt.image.RescaleOp;
import java.util.Timer;
import java.util.TimerTask;
public class panelHandler extends JPanel {
public gridPanel panel1;
public gridPanel panel2;
private int xSize;
private int ySize;
... | true |
35a0181287a64f4a3e125efb114697c741146708 | Java | seefeesaw/swingy | /src/main/java/com/ashongwe/swingy/model/Obstacle.java | UTF-8 | 464 | 2.734375 | 3 | [] | no_license | package com.ashongwe.swingy.model;
public class Obstacle extends GameEntity {
private ObstacleType obstacleType;
public Obstacle(ObstacleType obstacleType, int y, int x) {
super(EntityType.Obstacle, y, x);
this.obstacleType = obstacleType;
}
public ObstacleType getObstacleType() {
... | true |
9f3ab076072fa44efc10c62f758c6c417d263aec | Java | 1107186916/framework | /spring-cloud-framework/client/src/main/java/com/markyang/framework/client/system/DeptClient.java | UTF-8 | 1,299 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package com.markyang.framework.client.system;
import com.markyang.framework.client.system.fallback.DeptClientFallback;
import com.markyang.framework.pojo.dto.system.DictDto;
import com.markyang.framework.pojo.entity.system.Dept;
import com.markyang.framework.pojo.web.ResultVo;
import org.springframework.cloud.openfeig... | true |
d2e974baa39d03a93c0874dd580b1ecf67dc55b7 | Java | foxalan/ITalker | /factory/src/main/java/com/example/alan/factory/presenter/account/RegisterContract.java | UTF-8 | 680 | 2.296875 | 2 | [] | no_license | package com.example.alan.factory.presenter.account;
import com.alan.push.common.factory.presenter.BaseContract;
/**
* @author alan
* Date 2018/7/15.
* Function :
* Issue :
*/
public interface RegisterContract {
interface View extends BaseContract.View<Presenter> {
/**
... | true |
90f2671f011dd904547bc0534b8ee90ceecfb989 | Java | hacking-android/frameworks | /devices/google/Pixel 2/29/QPP6.190730.005/src/apache-xml/org/apache/xml/serializer/dom3/DOMStringListImpl.java | UTF-8 | 1,190 | 2.484375 | 2 | [] | no_license | /*
* Decompiled with CFR 0.145.
*/
package org.apache.xml.serializer.dom3;
import java.util.Vector;
import org.w3c.dom.DOMStringList;
final class DOMStringListImpl
implements DOMStringList {
private Vector fStrings;
DOMStringListImpl() {
this.fStrings = new Vector();
}
DOMStringListImpl(Ve... | true |
c4a1b982543c8016815f4f93c1c46dda72b307d9 | Java | anil120/day-4-n-5-algorithm | /Temperature.java | UTF-8 | 304 | 2.328125 | 2 | [] | no_license | package pack3;
import com.function.utilities.utility;
public class Temperature
{
public static void main(String[] args)
{
System.out.println("enter 1 for celsius to farenheit conversion");
System.out.println("enter 2 for farenheit to celsius conversion");
utility.temperatureConversion();
}
}
| true |
e3aae81093654382cc2731a3d82406e3265b93f7 | Java | MinZhang20171225/dueros-2 | /demo-test/src/main/java/xin/yysf/gui/DuerOsSwtGui.java | UTF-8 | 7,415 | 1.90625 | 2 | [] | no_license | package xin.yysf.gui;
import com.baidu.duer.dcs.devicemodule.voiceinput.ApiConstants;
import com.baidu.duer.dcs.devicemodule.voiceinput.message.ListenStartedPayload;
import com.baidu.duer.dcs.framework.DeviceModuleFactory;
import com.baidu.duer.dcs.framework.IResponseListener;
import com.baidu.duer.dcs.framework.messa... | true |
4ef5c35c2849bbc62c19e13155780c81328c726a | Java | k-alkiek/draw | /src/models/shapes/Polygon.java | UTF-8 | 1,694 | 3 | 3 | [] | no_license | package models.shapes;
import javafx.scene.canvas.GraphicsContext;
import models.interfaces.Shape;
import java.util.HashMap;
/**
* Created by khaledabdelfattah on 11/14/17.
*/
public class Polygon extends AbstractShape {
private double[] xPoints, yPoints;
private int n;
public Polygon() {
super... | true |
2a8a3832919052b92ac6815c6e4ae42f7e692c63 | Java | mygitzzw/MychatroomClient | /src/webclient/view/ClientLoginBulidJFrame.java | UTF-8 | 3,045 | 3.125 | 3 | [] | no_license | package webclient.view;
import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
/**
* @author 郑志伟
* @create 2020-05-23 10:36
* 登陆界面的起点,初始化登陆界面
*/
public class ClientLoginBulidJFrame {
/**
* @author 郑志伟
* @create 2020-05-23 10:15
*/
pr... | true |
dec2f00cfdceb7411da030dabe3e8e2166edeaed | Java | XQLong/java_workplace | /src/Sword2Offer/SumOfNDice_60/SumOfNDice.java | UTF-8 | 1,461 | 3.25 | 3 | [] | no_license | package Sword2Offer.SumOfNDice_60;
import java.util.*;
/**
* @Author: xql
* @Date: Created in 16:58 2019/6/28
*/
public class SumOfNDice {
public List<Map.Entry<Integer, Double>> dicesSum(int n) {
List<Map.Entry<Integer,Double>> res =new ArrayList<Map.Entry<Integer,Double>>();
int maxSum = 6*n;... | true |
8f85c004fdd62e07bd2f5da3d0ec78fbe0a82851 | Java | Amila1610/JavaCoree-exercises | /src/com/company/Zadaća/SumaPrvihSto.java | UTF-8 | 382 | 3.1875 | 3 | [] | no_license | package com.company.Zadaća;
public class SumaPrvihSto {
public static void main(String[]args){
int sum=0;
for (int i=0;i<=100;i++){
sum+=i;
/* for(int j=0;j<=100;j++){
System.out.print(i+j + " ");
}
System.out.println();*/
}
... | true |
dd958d745bed8309c2068315be3237c86081c0b4 | Java | reloadbrain/botsing | /class-coupling-analyzer/src/test/java/eu/stamp/coupling/analyze/hierarchy/CouplingScoresTest.java | UTF-8 | 594 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package eu.stamp.coupling.analyze.hierarchy;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class CouplingScoresTest {
CouplingScores couplingScores;
@Before
public void before(){
couplingScores = new CouplingScores(2, 1);
}
@Test
public void testIsZ... | true |
316e578e3215fbbf3ade9166a895d2ddef00180a | Java | mtareq340/Playstation_Desktop_Java | /src/entities/Device.java | UTF-8 | 1,505 | 2.34375 | 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 entities;
/**
*
* @author Mostafa
*/
public class Device {
int deviceId;
String deviceName;
String deviceP... | true |
587759bb747d1921663916a9d9f051f51eeef427 | Java | DocN/Game-of-Life | /A2/src/bcit/comp2526/A2/World.java | UTF-8 | 10,648 | 3.265625 | 3 | [] | no_license | package bcit.comp2526.A2;
import static java.awt.Color.BLACK;
import java.awt.Color;
import java.awt.Component;
import java.io.Serializable;
import javax.swing.BorderFactory;
import javax.swing.JPanel;
import javax.swing.border.MatteBorder;
import bcit.comp2526.DoubleLL.CouldNotAddException;
import bcit.comp2526.Do... | true |
a443241654524c36eb515b35e85b3412b45964b8 | Java | thelinh95/Open_Jdk8u_Test | /OpenJdk8uTest/src/test/java/awt/grab/GrabOnUnfocusableToplevel/GrabOnUnfocusableToplevel.java | UTF-8 | 2,733 | 2.40625 | 2 | [] | no_license | package test.java.awt.grab.GrabOnUnfocusableToplevel;
/*
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public Lice... | true |
cb206b4328cf1352205570c81db0885339b174e0 | Java | deep-lee/Momo | /IM_Demo/src/com/deep/ui/fragment/update/RecentUpdateFragment.java | GB18030 | 9,655 | 1.742188 | 2 | [
"Apache-2.0"
] | permissive | package com.deep.ui.fragment.update;
import java.util.List;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.util.TypedValue;
import android.vie... | true |
7dfe4cca7458d3865bcb4d71796d9b45f9caeefe | Java | mknittel/stable-marriage | /src/main/java/cslab/ntua/gr/data/UniformDataGenerator.java | UTF-8 | 810 | 2.96875 | 3 | [
"MIT"
] | permissive | package cslab.ntua.gr.data;
import java.util.Collections;
import java.util.LinkedList;
public class UniformDataGenerator extends DataGenerator
{
public UniformDataGenerator(int datasetSize)
{
super(datasetSize);
}
@Override
protected LinkedList<Integer> line()
{
LinkedList<Integer> res = new LinkedList<... | true |
b6b7ed9e18c1e293edc555c84a09ef3711cdbd8f | Java | yuri2o1o/FlightSimulatorJava | /src/plugin/SimpleAnomalyDetector.java | UTF-8 | 7,777 | 2.46875 | 2 | [] | no_license | package plugin;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map.Entry;
import application.Utils;
import javafx.scene.canvas.Canvas;
import javafx.scene.chart.LineChart... | true |
4316d94dbd0c856a775ca84b35b0827add92fd65 | Java | nicomp42/IT2045Spring2021FinalExam | /IT2045Spring2021FinalExam/src/bathToy/BathToyBehavior.java | UTF-8 | 206 | 2.1875 | 2 | [] | no_license | package bathToy;
/**
* This interface defines the behavior of a Bath Toy in IT2045 Spring 2021
* @author nicomp
*
*/
public interface BathToyBehavior {
void floatAround();
void quack();
}
| true |
a02da34b4262055de4311a0d89d87dd0148e74ec | Java | Nabanita28/chess | /src/main/java/com/games/chess/service/GameService.java | UTF-8 | 2,736 | 2.828125 | 3 | [] | no_license | package com.games.chess.service;
import com.games.chess.game.*;
import com.games.chess.peices.*;
import org.springframework.stereotype.Service;
@Service
public class GameService {
public GameDTO startGame(){
GameDTO gameDTO = new GameDTO();
gameDTO.setBoard(createNewBoard(gameDTO.getBoard()));
... | true |
5217436317c0ac7187447862499c0a05cf215b73 | Java | souravmunjal/businessmania | /app/src/main/java/com/example/souravmunjal/businessmania/Noofplayer.java | UTF-8 | 355 | 1.570313 | 2 | [] | no_license | package com.example.souravmunjal.businessmania;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class Noofplayer extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.la... | true |
8dc35b409df27eaf54423630d003f3fa6e9a7ef6 | Java | HariAarthi/CryptoPals | /src/cryptopals/set3/Ch21_MersenneTwister_PRNG.java | UTF-8 | 1,851 | 3.375 | 3 | [] | no_license | package cryptopals.set3;
public class Ch21_MersenneTwister_PRNG {
private int w = 32;//word length
private int MT_LENGTH = 624;
private int[] MT = new int[MT_LENGTH];
private int index = 0;
public static final int LAST_31_BITS = 0x7fffffff;
public static final int FIRST_BIT = 0x80000000;
private static fina... | true |
140fa526f64d664b5d1129b933f6194718adc438 | Java | markoknezevic/DSA_GeeksForGeeks | /14_Tree/Children_Sum_Parent/code.java | UTF-8 | 2,609 | 3.59375 | 4 | [] | no_license | {
import java.util.*;
class Node
{
int data;
Node left, right;
Node(int key)
{
data = key;
left = right = null;
}
}
class SumProperty
{
public static void insert(Node root,int a,int a1,char lr){
if(root==null){
return;
}
if(root.data==a){... | true |
b6fe6c340a7c148b6e75406bc3fa7d13000133b4 | Java | CSchemmy/lbds-android-messaging | /src/main/java/org/hzi/sormas/lbds/messaging/LbdsSendIntent.java | UTF-8 | 832 | 2.0625 | 2 | [] | no_license | package org.hzi.sormas.lbds.messaging;
import org.hzi.sormas.lbds.core.http.HttpContainer;
import org.hzi.sormas.lbds.core.http.HttpMethod;
public class LbdsSendIntent extends LbdsBaseIntent implements LbdsRelated {
public LbdsSendIntent(HttpMethod method) {
super(new HttpContainer(method));
setC... | true |
60fba8d15bb06e2012039a0d3cbefc118c23e2cb | Java | mateusseger/library-v2 | /src/model/vo/BookVO.java | UTF-8 | 1,515 | 2.6875 | 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 model.vo;
import java.util.ArrayList;
/**
*
* @author mateusseger
*/
public class BookVO {
private int id;
privat... | true |
2466b94f682ce0d95b65f4d602ad1f3fdabd716c | Java | VladMakarevich2017/java-labs | /KPP-homely-сataloging/src/application/Main.java | UTF-8 | 463 | 1.851563 | 2 | [] | no_license | package application;
import javax.swing.text.BadLocationException;
import View.LoginFrame;
import View.MenuFrame;
import View.RegistrationFrame;
import domain.Book;
import domain.Catalog;
public class Main {
public static void main(String[] args) throws BadLocationException {
MenuFrame menu = new MenuFrame();
... | true |
7c878e064a2e55e892c61d02bab4f97b5858ce65 | Java | kaonwong/KWBuddies | /app/src/main/java/com/kwih/kwbuddy/Model/News.java | UTF-8 | 1,427 | 2.3125 | 2 | [] | no_license | package com.kwih.kwbuddy.Model;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.StringTokenizer;
import static android.text.TextUtils.substring;
/*... | true |
ce232f0b24b0708e91aeb08b156fc9762e7c7974 | Java | gweennnnn/Year1RobotGitHub | /Exercise-3/src/part2/Part2.java | UTF-8 | 3,977 | 3.28125 | 3 | [] | no_license | package part2;
import java.util.*;
import lejos.nxt.Button;
import lejos.nxt.LCD;
import lejos.util.TextMenu;
import shared.LineFollower;
public class Part2 extends LineFollower {
private final int LEFT = 0;
private final int RIGHT = 1;
private int[] SEQUENCE = makeSequence("1111");
//OR
//private int[] SE... | true |
d0e47db002891516cf1a4cb60cffd13c483e03fe | Java | ryleeliyixuan/world-elite | /job-server/src/main/java/com/worldelite/job/mapper/ActivityTakeOffMapper.java | UTF-8 | 1,476 | 1.765625 | 2 | [] | no_license | package com.worldelite.job.mapper;
import com.worldelite.job.entity.ActivityTakeOff;
public interface ActivityTakeOffMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_activity_takeoff
*
* @mbg.generated
*/
int deleteByPrim... | true |
a5aa3816a766ca464ca644c3f4a548867b7f7947 | Java | Shen-Kevins/LeetCode-Java | /LeetCode/201611/LeetCode347.java | UTF-8 | 1,459 | 3.265625 | 3 | [] | no_license | package edu.ustc.shshen.LeetCode.y2016m11;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 基数排序 时间复杂度 O(n)
* @author shshen
*
*/
public class LeetCode347 {
class asset{
Integer num;
Integer value;
public asset(int num,int value) {
this.num = num;... | true |
83dce33689f4f3892ee35b16dc7078de26b2ea4f | Java | orf53975/Atom | /src/ecrm-s/src/main/java/com/maven/dao/TakeDepositRecoredDao.java | UTF-8 | 5,010 | 2.078125 | 2 | [
"Unlicense"
] | permissive | package com.maven.dao;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.maven.base.dao.BaseDao;
import com.maven.base.dao.DataSource;
import com.maven.entity.TakeDepositRecord;
@Repository
public interface TakeDepositRecoredDao extends BaseDao<TakeDepositRecor... | true |
0919a81d82a7fec280209b6f9b63571bf44fbb98 | Java | MewX/contendo-viewer-v1.6.3 | /org/apache/pdfbox/pdmodel/common/COSArrayList.java | UTF-8 | 17,521 | 1.859375 | 2 | [
"SMLNJ",
"Apache-1.1",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | /* */ package org.apache.pdfbox.pdmodel.common;
/* */
/* */ import java.util.ArrayList;
/* */ import java.util.Collection;
/* */ import java.util.Iterator;
/* */ import java.util.List;
/* */ import java.util.ListIterator;
/* */ import org.apache.pdfbox.cos.COSArray;
/* */ import org... | true |
35462b25926285f93a761c3c4c5e716721c191ea | Java | EmyJ/Formation-POEI-Accenture | /01.Algorithme et initiation programmation/Semaine1/src/test/cours22.java | UTF-8 | 789 | 3.3125 | 3 | [] | no_license | // TP correction nr de saisie par user
package test;
import java.util.Scanner;
public class cours22 {
public static void main(String[] args) {
final int VAL_MAX = 10; // 10 exclue
int[] nbOcc = new int[VAL_MAX];
for (int i = 0; i < nbOcc.length; i++) {
nbOcc[i] = 0;
}
System.out.println("saisissez des... | true |
41a3fe28299f13740d0b2083d6c7cf686ed3b07d | Java | Egaro555/GustatIF3 | /src/main/java/com/insa/gustatif/web/creerProduitAction.java | UTF-8 | 803 | 2.15625 | 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 com.insa.gustatif.web;
import com.insa.gustatif.metier.modele.Produit;
import com.insa.gustatif.metier.service.Service... | true |
d66c06c82e7f3aa8288a103b91a5d94bb7587a05 | Java | Maick94/Votazione_Tesi | /app/src/main/java/com/example/michele/votazione/adapters/AdapterListConcorsiChiusi.java | UTF-8 | 1,682 | 2.078125 | 2 | [] | no_license | package com.example.michele.votazione.adapters;
import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AlertDialog;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Button;
import... | true |
567425d4c53a8a0a74a6ae5f6d1701bd43ab2302 | Java | rholtzjr/eve_j2ee | /EVE_JPA/src/org/holtz/eve/jpa/dao/TSqstockTripDAO.java | UTF-8 | 389 | 1.984375 | 2 | [] | no_license | package org.holtz.eve.jpa.dao;
import java.util.List;
import org.holtz.eve.jpa.entity.TSqstockTrip;
public interface TSqstockTripDAO {
public TSqstockTrip getStockTripById(int id);
public TSqstockTrip getStockTripByName(String name);
public List<TSqstockTrip> getStockTripList();
public void save(TSqsto... | true |
6ef7805e2e78ee5ec844aff3779a127640b321ab | Java | piece-the-world/inspect | /Inspect/talkingdata/src/main/java/com/tendcloud/tenddata/en.java | UTF-8 | 10,503 | 1.96875 | 2 | [] | no_license | /*
* Decompiled with CFR 0_115.
*/
package com.tendcloud.tenddata;
import com.tendcloud.tenddata.el;
import com.tendcloud.tenddata.em;
import com.tendcloud.tenddata.eo;
import com.tendcloud.tenddata.ep;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
class en {
... | true |
49898fe7f40ea4b40e37fa84c1cab835efadf584 | Java | codehaus-cargo/cargo | /core/containers/weblogic/src/main/java/org/codehaus/cargo/container/weblogic/WebLogic9x10x12x14xConfigXmlInstalledLocalDeployer.java | UTF-8 | 13,008 | 1.890625 | 2 | [] | no_license | /*
* ========================================================================
*
* Codehaus Cargo, copyright 2004-2011 Vincent Massol, 2012-2023 Ali Tokmen.
*
* 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 cop... | true |
2fe8e475f2433d9ea82b5cbf7207f03e58aef114 | Java | mondo-project/mondo-demo-bim | /plugins/org.mondo.ifc.cstudy.metamodel.edit/src/org/bimserver/models/ifc2x3tc1/provider/IfcFailureConnectionConditionItemProvider.java | UTF-8 | 15,024 | 1.539063 | 2 | [] | no_license | /**
*/
package org.bimserver.models.ifc2x3tc1.provider;
import java.util.Collection;
import java.util.List;
import org.bimserver.models.ifc2x3tc1.Ifc2x3tc1Package;
import org.bimserver.models.ifc2x3tc1.IfcFailureConnectionCondition;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common... | true |
457ebf3486b214984dcad270e87af8c76a1b88d6 | Java | causehhc/EmployeeHome | /backend/src/main/java/com/csi/emphome/demo/repository/employee/EmployeeRepository.java | UTF-8 | 1,023 | 1.96875 | 2 | [
"MIT"
] | permissive | package com.csi.emphome.demo.repository.employee;
import com.csi.emphome.demo.domain.employee.EmployeeItem;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaReposito... | true |
863fefb0b603b5e83320580bde2e20735b60b759 | Java | lalapoto0011/web01 | /src/servlet/BookViewServlet.java | UTF-8 | 1,959 | 2.71875 | 3 | [] | no_license | package servlet;
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;
import... | true |
b65aba2f823490ebe9017ca3881865955a7d9dcc | Java | drxaos/spring-gradle-example | /src/main/java/com/example/service/MessageService.java | UTF-8 | 1,218 | 2.359375 | 2 | [] | no_license | package com.example.service;
import com.example.db.Message;
import com.example.db.MessageRepository;
import com.example.db.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.dat... | true |
a75954b3e93bccb0c1cda1048304693d72b76be6 | Java | yyun4535/Lynn | /Ashop/src/Controller/Padd.java | UHC | 11,263 | 2.328125 | 2 | [] | no_license | package Controller;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
... | true |
66db9395728d784e52c53e108251fb6884542906 | Java | RasaMobile/RegisterOrLogin- | /rassauser/src/main/java/com/rassa/rassauser/utils/Utils.java | UTF-8 | 7,603 | 1.75 | 2 | [] | no_license | package com.rassa.rassauser.utils;
/*
* Created by AMiR Ehsan on 7/22/2017.
*/
import android.Manifest;
import android.app.Activity;
import android.app.ActivityManager;
import android.content.ComponentName;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.PackageMan... | true |
7dfe16797ffee6eea363f695d72a26baf11668f8 | Java | MatkoTom/SummerSchoolApp | /app/src/main/java/com/example/summerschoolapp/model/newuser/NewUserInnerResponse.java | UTF-8 | 324 | 1.679688 | 2 | [] | no_license | package com.example.summerschoolapp.model.newuser;
import com.example.summerschoolapp.common.BaseModel;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class NewUserInnerResponse extends BaseModel {
@SerializedName("user")
@Expose
public NewUser newUser... | true |
dfecc7e78549a5e2e6cad20b50c4b3b411837fdc | Java | reverseengineeringer/com.yelp.android | /src/com/google/android/gms/measurement/internal/AppMetadata.java | UTF-8 | 1,968 | 1.65625 | 2 | [] | no_license | package com.google.android.gms.measurement.internal;
import android.os.Parcel;
import android.text.TextUtils;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import com.google.android.gms.common.internal.zzx;
public class AppMetadata
implements SafeParcelable
{
public static final l CREAT... | true |
120c9e160aaffa65126e04b4bd7e0e67841ac362 | Java | Jakegogo/meta-model | /model-core/src/main/java/com/concur/meta/core/dbengine/execute/actions/AggQueryAction.java | UTF-8 | 2,074 | 1.875 | 2 | [] | no_license | package com.concur.meta.core.dbengine.execute.actions;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
import com.concur.meta.client.api.query.QueryParam;
import com.concur.meta.client.constants.ParamKeys;
import com.concur.meta.client.constants.QueryType;
import com.concur.meta.client.datao... | true |
81bd70aec44f461d837f8234e72a9fe6c9a45603 | Java | 100066928/CRUDSQLITE | /app/src/main/java/com/example/ismael/sistemadecontactos/Actualizar.java | UTF-8 | 3,016 | 2.171875 | 2 | [] | no_license | package com.example.ismael.sistemadecontactos;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
impo... | true |
44dc488f48b9cca183989be2d93f3e380658ee9e | Java | tmiao1/zhaoyang | /src/test/Receiver.java | GB18030 | 3,816 | 2.671875 | 3 | [] | no_license | package test;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.MessageConsumer;
import javax.jms.Session;
import javax.jms.TextMessage;
import org.apache.activemq.ActiveMQConnec... | true |
e1afcec121442e3f5be59ce54225f3f9766ebffc | Java | giagiigi/youzan-sdk | /src/main/java/com/youzan/open/sdk/client/oauth/OAuth.java | UTF-8 | 158 | 1.648438 | 2 | [] | no_license | package com.youzan.open.sdk.client.oauth;
import com.youzan.open.sdk.client.oauth.model.OAuthToken;
public interface OAuth {
OAuthToken getToken();
}
| true |
9925197ea5344fc8faa41e8de3c45db0d70d6007 | Java | Nelson-Morais/HS-Prog3 | /Aufgabe02_01_Interfaces/src/de/hsos/prog3/nelsonmorais/ab02/ui/NutzerEingabe.java | UTF-8 | 1,686 | 3.125 | 3 | [] | no_license | package de.hsos.prog3.nelsonmorais.ab02.ui;
import de.hsos.prog3.nelsonmorais.ab02.util.EinUndAusgabe;
public class NutzerEingabe {
private EinUndAusgabe io;
private final int constSpieltZellen = 4;
private final int constSchritte = 10;
NutzerEingabe(EinUndAusgabe io){
if(io == null){
... | true |
7c75555108df1845c3f4785ae5a06941bcf6318b | Java | LeYaR/tms-mobile | /src/main/java/com/example/callaccountingsystem/repository/AddressRepository.java | UTF-8 | 706 | 1.9375 | 2 | [] | no_license | package com.example.callaccountingsystem.repository;
import com.example.callaccountingsystem.domain.dbo.AddressEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Reposi... | true |
52753f2ae06081394c18e6b30be1292ab64ad67c | Java | JuaGem/gestioneebay | /src/main/java/it/prova/gestioneebay/web/controller/UtenteController.java | UTF-8 | 4,201 | 2.1875 | 2 | [] | no_license | package it.prova.gestioneebay.web.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.validation.BindingResult;
import... | true |
4ad63f6a470f12c830b043bd6839412ad69170cf | Java | WeDism/HibernatePetSpace | /src/test/java/com/pet_space/storages/UserEssenceStorageTest.java | UTF-8 | 8,927 | 2.15625 | 2 | [] | no_license | package com.pet_space.storages;
import com.pet_space.models.Pet;
import com.pet_space.models.essences.Friends;
import com.pet_space.models.essences.StateFriend;
import com.pet_space.models.essences.UserEssence;
import org.apache.commons.lang3.SerializationUtils;
import org.junit.After;
import org.junit.Before;
import ... | true |
018f64d132cb2bed1ff83d667397317aaca2a197 | Java | satwik18/SteamPunkBot | /src/me/SteamPunkBot/bot/event/options/GameEventOption.java | UTF-8 | 410 | 2.15625 | 2 | [] | no_license | package me.SteamPunkBot.bot.event.options;
import me.SteamPunkBot.bot.character.PlayerCharacter;
import me.SteamPunkBot.bot.character.PlayerProfile;
import me.SteamPunkBot.bot.event.GameEvent;
public abstract class GameEventOption {
public abstract String getDescription();
public abstract Boolean isAvailabl... | true |
5fc8171ef6b28c0b8e244711b67e1fc5498475a3 | Java | aterDex/homework-java | /hw31-messagingSystem/App/src/main/java/ru/otus/homework/hw31/message/ErrorAction.java | UTF-8 | 286 | 1.703125 | 2 | [] | no_license | package ru.otus.homework.hw31.message;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import ru.otus.messagesystem.client.ResultDataType;
@Getter
@Setter
@AllArgsConstructor
public class ErrorAction extends ResultDataType {
private String error;
}
| true |
75a639f3977720204bdcf7ab166f357cb3e66586 | Java | iamanurag1201/onlinebookstore | /onlinebookstore/onlinebookstore/src/main/java/purchaserequestservices/PurchaseService.java | UTF-8 | 1,027 | 2.015625 | 2 | [] | no_license | package purchaserequestservices;
import java.util.ArrayList;
import org.bson.Document;
import bookcartservices.BookAdapter;
import bookcartservices.BookDatabase;
import bookcartservices.BookService;
import model.UserCart;
import orderservices.OrderService;
public class PurchaseService {
public static void addBook... | true |
3f70b3193b0de9d4d25ede9b68c786348f872c76 | Java | kmlee0314/oa4j | /Project/Logger/src/main/java/at/rocworks/oa4j/logger/queues/BufferQueue.java | UTF-8 | 4,695 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | /*
* 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 at.rocworks.oa4j.logger.queues;
import java.util.LinkedList;
import java.util.Queue;
import java.util.logging.Level;
import at... | true |
d79c48b7c7cbb575b8aa06fbaea48399a79e4167 | Java | andreacrispo/simple-rpg-kata | /server/src/main/java/my/plaground/Domain/Prop.java | UTF-8 | 150 | 1.914063 | 2 | [
"MIT"
] | permissive | package my.plaground.Domain;
public abstract class Prop extends Target {
public boolean isDestroyed() {
return this.hp == 0;
}
}
| true |
831cc24a73ca867a417ebbc91af1c2fad57e6931 | Java | EricksonM/Prueba | /SpringBootMongoDBDemo/src/main/java/com/spring/repository/FamilyRepository.java | UTF-8 | 350 | 1.9375 | 2 | [] | no_license | package com.spring.repository;
import java.util.List;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import com.spring.document.Family;
@Repository
public interface FamilyRepository extends MongoRepository<Family, String>{
List<Family> findByI... | true |
6747dcde514bfc11ba05fd590a223f8989eb9811 | Java | wahnn/springMVC | /src/main/java/com/sp/dao/SysOfficeDao.java | UTF-8 | 2,849 | 2.09375 | 2 | [] | no_license | package com.sp.dao;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.sp.entity.SysOffice;
/**
*
* @ClassName SysOfficeDao
* @Description 组织机构dao
* @author:Gaoxueyong http://blog.csdn.net/fenfenguai
* @Date 2016年11月21日 上午10:26:43
* @version 1.0.0
*/
@R... | true |
60202cd0dc6de970b4fd78d6ff1d36b18cb24fc0 | Java | JunpilPark/DesignPatternStudy | /FactoryPattern/src/main/java/com/example/factory/PamasanCheese.java | UTF-8 | 164 | 2.265625 | 2 | [] | no_license | package com.example.factory;
public class PamasanCheese implements Cheese {
@Override
public String getName() {
return "파마산 치즈";
}
}
| true |
f3248fcb29c5f11ef84631dd50c153f42ba5717b | Java | hwk0319/springboot | /src/main/java/com/it/dao/systemManagement/DictDao.java | UTF-8 | 822 | 1.898438 | 2 | [] | no_license | package com.it.dao.systemManagement;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.it.po.Dict;
import com.it.po.DictInfo;
@Repository(value="dictDao")
public interface DictDao{
public List<Dict> search(@Param("po") Dict p... | true |
75cb19c614cdf5e2f85caf612bb28c6d6504513c | Java | SonyCSL/apis-web | /src/main/java/jp/co/sony/csl/dcoes/apis/tools/web/api_handler/ErrorGeneration.java | UTF-8 | 4,044 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | package jp.co.sony.csl.dcoes.apis.tools.web.api_handler;
import io.vertx.core.Vertx;
import io.vertx.core.http.HttpServerRequest;
import io.vertx.core.logging.Logger;
import jp.co.sony.csl.dcoes.apis.common.Error;
import jp.co.sony.csl.dcoes.apis.tools.web.ApiServer;
/**
* Provides Web API to delivers error received... | true |
9710cddae4168552d39fa7041c6c3c3c7fb07948 | Java | sewonkimm/SSAFY-algo | /Seokhee/algo_1008_boj5639_treeScan.java | UTF-8 | 1,615 | 3.59375 | 4 | [] | no_license | import java.io.*;
import java.util.*;
public class algo_1008_boj5639_treeScan {
static int arr[] = new int[10001];
public static void main(String[] args) throws NumberFormatException, IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int N = Integer.parseI... | true |
c888432b624f4ad6fb52e252d3811f7b5fe5fce4 | Java | FZUSESPR21/meeting-system-5 | /backend/Meeting_System/src/main/java/com/team/meetingsystem/service/impl/AccountServiceImpl.java | UTF-8 | 2,566 | 2.25 | 2 | [] | no_license | package com.team.meetingsystem.service.impl;
import com.team.meetingsystem.dao.AccountForumMapper;
import com.team.meetingsystem.dao.AccountMapper;
import com.team.meetingsystem.dao.NoticeMapper;
import com.team.meetingsystem.model.Account;
import com.team.meetingsystem.model.AccountForum;
import com.team.meetingsyste... | true |
4498ec77c91beea3f21847042a3f9d77edd3055c | Java | lgcwn/J2EE_Util | /j2ee/hq100/utils/SNCode.java | UTF-8 | 465 | 2.421875 | 2 | [] | no_license | package com.up72.hq.utils;
import java.util.Date;
/**
* Created by liuguicheng on 16/5/18.
*/
public class SNCode {
public static String getTradeNo(){
DateUtils d=new DateUtils();
int ran=(int)(Math.random()*899999)+100000;
return d.formatLong2Str(new Date().getTime())+""+ran;
}
... | true |
7e112688a14cabfe17be710cfbb2cb7d7cb05f8d | Java | hiennq99/baitaplop | /BaiTapLon/src/controller/DAOve.java | UTF-8 | 4,625 | 2.203125 | 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 controller;
import Dao.Users;
import Dao.ThongKe;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sq... | true |
5d8ad4ded13d5b1d83795802a684b45fbb58fa5c | Java | AntonovJR/ExamOOP | /Exam/Java-Exam/src/aquarium/entities/fish/FreshwaterFish.java | UTF-8 | 396 | 2.75 | 3 | [] | no_license | package aquarium.entities.fish;
import aquarium.entities.aquariums.Aquarium;
public class FreshwaterFish extends BaseFish {
private int size = 3;
public FreshwaterFish(String name, String species, double price) {
super(name, species, price);
super.setSize(size);
}
@Overri... | true |
cc1e7479003e26186382bba5008c1e96f6660a72 | Java | bys-james-jiang/accela-core | /service/src/main/java/com/accela/aa/snapshot/util/SnapshotConvertClass.java | UTF-8 | 6,356 | 1.765625 | 2 | [] | no_license | package com.accela.aa.snapshot.util;
import java.util.HashMap;
import java.util.Map;
/**
* <pre>
*
* Accela Automation
* File: SnapshotConvertClass.java
*
* Accela, Inc.
* Copyright (C): 2013
*
* Description:
* TODO
*
* Notes:
* $Id: SnapshotConvertClass.java 72642 2009-01-0... | true |
054c974b54670a4b6ffeb2b758509d989b19376e | Java | SilvioLi/Speedy_Skytrain_Vancouver | /StationsAdapter.java | UTF-8 | 2,816 | 2.296875 | 2 | [] | no_license | package com.speedy.skytrain;
import java.util.LinkedHashMap;
import java.util.List;
import com.example.speedyskytrain.R;
import android.content.Context;
import android.graphics.Typeface;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Bas... | true |
6932b560f786db139f390ea4ec938797808a4911 | Java | sakaiproject/sakai | /samigo/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/listener/author/EditPartListener.java | UTF-8 | 8,415 | 1.640625 | 2 | [
"ECL-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-generic-cla",
"GPL-1.0-or-later"
] | permissive | /**********************************************************************************
* $URL$
* $Id$
***********************************************************************************
*
* Copyright (c) 2004, 2005, 2006, 2007, 2008 The Sakai Foundation
*
* Licensed under the Educational Community License, Version ... | true |
f0dd1971f494fbe69a32cb1ea797d1e22b34f871 | Java | dgizer/chucknorrisjoke | /src/main/java/com/springframework/chucknoris/services/ChuckNorisJoke.java | UTF-8 | 108 | 1.59375 | 2 | [] | no_license | package com.springframework.chucknoris.services;
public interface ChuckNorisJoke {
String getJoke();
}
| true |
3bf3048e23ab1e525fdc354e11a214fcf020c210 | Java | togglz/togglz | /servlet/src/test/java/org/togglz/servlet/test/user/thread/ThreadBasedUsersTest.java | UTF-8 | 3,155 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | package org.togglz.servlet.test.user.thread;
import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.net.URL;
import org.htmlunit.TextPage;
import org.htmlunit.WebClient;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jbo... | true |
fe50a8a84e8740ddb5c54e10764743da289fca57 | Java | loelala/analysis-core-plugin | /src/main/java/hudson/plugins/analysis/tokens/AbstractResultTokenMacro.java | UTF-8 | 873 | 2.234375 | 2 | [
"MIT"
] | permissive | package hudson.plugins.analysis.tokens;
import hudson.plugins.analysis.core.BuildResult;
import hudson.plugins.analysis.core.ResultAction;
/**
* Provides a token that evaluates to the plug-in build result.
*
* @author Ulli Hafner
*/
public class AbstractResultTokenMacro extends AbstractTokenMacro {
/**
*... | true |
61ceb778dc43ded22591f1c7fc2d724e96a4c7e4 | Java | deconduo/GosuCoder-2013 | /Problem_2/Main.java | UTF-8 | 1,336 | 3.9375 | 4 | [] | no_license | import java.util.*;
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
//Gets input int for total length of input string
Scanner scan = new Scanner(System.in);
int length = Integer.parseInt(scan.nextLine());
//Gets input string
String input = scan.nextLine();
//Sets a total... | true |
4757fd35c848f8b3868eb1aa8be5a1ba401a1a9a | Java | caioccd/HybridChat | /HybridChatClient/src/model/UserDAOFile.java | UTF-8 | 2,346 | 2.953125 | 3 | [] | no_license | package model;
import java.io.*;
import java.util.*;
public class UserDAOFile implements IUserDAO, Serializable {
private static final long serialVersionUID = 344362098123000066L;
private String databaseFilePath;
private HashMap<String, User> userHashMap;
public UserDAOFile(String databaseFilePath) {
userHa... | true |
1c83123de6b645ba17a710ff7d1730d5c7ba1746 | Java | performancecopilot/parfait | /parfait-core/src/main/java/io/pcp/parfait/timing/StepMeasurements.java | UTF-8 | 4,465 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2009-2017 Aconex
*
* Licensed under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | true |
694f95cb07bd888c1b9de9cd8ce5fa9db2fbf3f6 | Java | gohovd/InternshipAdvisor | /src/core/Subject.java | UTF-8 | 135 | 2.125 | 2 | [] | no_license | package core;
public class Subject extends Topic {
String tag;
public Subject(String tag) {
this.tag = tag;
}
}
| true |
70f7c68dcb335f7794e1ebde174702d0c2074007 | Java | bonghaha/cdp | /cdp/src/main/java/com/to/cdp/info/dao/InfoLangDao.java | UTF-8 | 1,418 | 2.21875 | 2 | [] | no_license | package com.to.cdp.info.dao;
import java.util.List;
import java.util.Map;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.to.cdp.info.model.InfoLang;
@Repository
public class InfoLan... | true |
01499d00150147d18e5fb80249cf28139f311a64 | Java | cfregis-zz/SJSA-CG-Challenge-201811 | /src/products/src/main/java/br/com/cast/challenge/foundation/util/AuxiliaryFunctions.java | UTF-8 | 463 | 2.734375 | 3 | [] | no_license | package br.com.cast.challenge.foundation.util;
import java.math.BigDecimal;
public class AuxiliaryFunctions {
public static BigDecimal customRound(BigDecimal d){
BigDecimal scale = new BigDecimal("0.05");
BigDecimal y = d.divide(scale);
BigDecimal q;
if(d.remainder(scale).doubleValue() == 0){
q = y.setSc... | true |
e7a6f553a2b598cd72fe18d44f0d25b20f6b237a | Java | gongrui1994/Algorithms | /src/main/java/sort/linear/RadixSort.java | UTF-8 | 2,371 | 3.96875 | 4 | [] | no_license | package sort.linear;
/**
* 基数排序
* 为了保证基数排序算法的正确性
* 一位数排序算法必须是稳定的(稳定的意思是经过排序,具有相同关键字的记录其相对次序保持不变)
* Created by gongrui on 2017/6/20.
*/
public class RadixSort {
/**
* 拿到x的个位 十位 百位上的数
* @param x
* @param k 1表示个位 2表示10位..以此类推
* @return 相应位置上的数,没有返回0
*/
public static int getFigure(in... | true |
26dd88907ac2b5aaf9834387b1d97eb32bb78f87 | Java | MLBCoders/FeedReader | /app/src/main/java/lk/nirmalsakila/feedreader/RssFeedModel.java | UTF-8 | 805 | 2.640625 | 3 | [] | no_license | package lk.nirmalsakila.feedreader;
/**
* Created by user on 3/12/2018.
*/
public class RssFeedModel {
public String title;
public String link;
public String description;
public String imageURI;
public String creator;
public String pubDate;
public RssFeedModel(String title, String link... | true |
99d2d2cc4030316e333358f5ea21962835883c41 | Java | Kumar-Patil/sample | /src/main/java/com/taxi/serviceImpl/CitiesServicesImpl.java | UTF-8 | 908 | 2.078125 | 2 | [] | no_license | package com.taxi.serviceImpl;
import com.taxi.dao.CitiesDao;
import com.taxi.domain.Cities;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import com.taxi.service.CitiesService;
import com.taxi.to.City;
public class CitiesServicesImpl implements CitiesService {
@Autowired... | true |
4b97d253f71600dd457c512b94874a46264b8dc2 | Java | haneenbader/songr | /songr/src/main/java/com/example/songr/controller/SongController.java | UTF-8 | 1,852 | 2.46875 | 2 | [] | no_license | package com.example.songr.controller;
import com.example.songr.model.Song;
import com.example.songr.repository.AlbumsRepository;
import com.example.songr.repository.SongRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.sprin... | true |