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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b0735768c59451c3fa0f102f6baa8becf6f000ab | Java | gzacharski/AGH-Teoria-wspolbieznosci | /lab6/zad/IMyList.java | UTF-8 | 187 | 2.59375 | 3 | [] | no_license | package lab6;
public interface IMyList {
boolean add(Object object);
boolean contains(Object object);
boolean remove(Object object);
void print();
boolean isEmpty();
int size();
}
| true |
a24270abac2b545db73f5dfc69f230494cb1da8d | Java | Trivy/GestionBilicence | /GestionBilicence/src/gestionBilicence/dao/postgreSqlDao/PostgreSQLFactory.java | UTF-8 | 2,246 | 2.6875 | 3 | [] | no_license | package gestionBilicence.dao.postgreSqlDao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import javax.swing.JOptionPane;
import org.postgresql.util.PSQLException;
import gestionBilicence.dao.Dao;
import gestionBilicence.dao.abstractDao.AbstractDaoFactory;
import gestionBi... | true |
fad54539133595bf106bf5a887a2b8a7d2bd526c | Java | xaviramirezcom/superliga-rest | /src/main/java/core/application/imp/UserService.java | UTF-8 | 1,689 | 2.453125 | 2 | [] | no_license | package core.application.imp;
import core.application.contract.IUserService;
import core.application.exception.BadRequestException;
import core.application.exception.InternalServerErrorException;
import core.application.exception.NotFoundException;
import core.domain.exception.DomainModelNotLoadedException;
import cor... | true |
976e560775575bce77a0031062c2b8244c539e59 | Java | jgcastillo/Workflow_Machine | /WorkFlowSchool/src/edu/school/entities/State.java | UTF-8 | 5,037 | 2.09375 | 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 edu.school.entities;
import java.io.Serializable;
import java.util.Collection;
import javax.persistence.Basic;
import javax.pe... | true |
ceb0d11ce4807c81c2f6d32588ee718702822369 | Java | xerus-github/ogolem | /src/org/ogolem/adaptive/AdaptiveAmberFF.java | UTF-8 | 21,212 | 1.898438 | 2 | [] | no_license | /**
Copyright (c) 2011-2014, J. M. Dieterich
2015-2016, J. M. Dieterich and B. Hartke
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the a... | true |
0cc08b109a8e033d14de5bb471b2864bf98d248f | Java | anoordover/cyclops | /cyclops-streams/src/main/java/com/aol/cyclops/comprehensions/donotation/Doable.java | UTF-8 | 562 | 2.671875 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | package com.aol.cyclops.comprehensions.donotation;
import java.util.function.Function;
import java.util.function.Supplier;
import com.aol.cyclops.comprehensions.donotation.UntypedDo.DoComp2;
public interface Doable<T> {
default Object getValue(){
return this;
}
default DoComp2 doWithThisAnd(Function<T,?> ... | true |
5b7b549e23d1ab7c7cd3f8ac984309e3166f4b22 | Java | inuxkr/mina-spring | /core/src/org/apache/mina/springrpc/MinaServiceExporter.java | UTF-8 | 2,369 | 1.84375 | 2 | [] | no_license | /*
* Copyright 2008-2013 the original author or authors.
*
* 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 requi... | true |
e58b76a7847043c95063ae4b0c9ee587d466e315 | Java | blueoceandevops/oauth2-with-spring-security | /client-jwt/src/main/java/com/example/clientjwt/web/controller/TodoController.java | UTF-8 | 1,636 | 2.125 | 2 | [] | no_license | package com.example.clientjwt.web.controller;
import com.example.clientjwt.service.TodoService;
import com.example.clientjwt.service.dto.Todo;
import com.example.clientjwt.web.form.TodoForm;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.core.Authentication;
import org.spr... | true |
ac5817eccb34c18d9c27c2039546f029dd9e5f4c | Java | msamkov/itnight-api-rest-grpc | /catalogue/src/main/java/epam/itnight/catalogue/repo/ProductRepo.java | UTF-8 | 394 | 1.914063 | 2 | [] | no_license | package epam.itnight.catalogue.repo;
import epam.itnight.catalogue.domain.Product;
import org.springframework.data.mongodb.repository.ReactiveMongoRepository;
import org.springframework.stereotype.Repository;
import reactor.core.publisher.Flux;
@Repository
public interface ProductRepo extends ReactiveMongoRepository<... | true |
950d7f5e29eca59c70617410f64f13df6da141c0 | Java | hua-1/hauting_ssm | /src/main/java/cn/hua/service/UserDaoImpl.java | UTF-8 | 593 | 2.203125 | 2 | [] | no_license | package cn.hua.service;
import cn.hua.dao.UserDao;
import cn.hua.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class UserDaoImpl implements UserDao {
@Autowired
private UserDao userDao;
... | true |
836c4b75e7b55b3c400ea3ae115ea925cc251487 | Java | Kuan-Wei-Kuo/MyChart | /mychartlib/src/main/java/com/kuo/mychartlib/model/Viewport.java | UTF-8 | 1,357 | 2.828125 | 3 | [
"Apache-2.0"
] | permissive | package com.kuo.mychartlib.model;
import android.graphics.RectF;
/*
* Created by Kuo on 2016/3/16.
*/
public class Viewport extends RectF {
private float minHeight, minWidth, maxHeight, maxWidth;
public Viewport(float left, float top, float right, float bottom) {
set(left, top, right, bottom);
... | true |
38d2f504da83c531834d01f666bade4462398aa6 | Java | scireum/server-sass | /src/test/java/org/serversass/SassTest.java | UTF-8 | 3,303 | 2.3125 | 2 | [
"MIT"
] | permissive | package org.serversass;
import org.junit.Assert;
import org.junit.Test;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.StringWriter;
/**
* Tests the SASS to CSS compiler
*/
public class SassTest {
@Test
public void testVariables() {
compare("variables.scss", "variables... | true |
032c821f4f003b0f20454b569d42a8d56a050f07 | Java | yuanhaiyue/AssessmentPractice | /demoEnd/src/main/java/com/yuan/demo/controller/UserController.java | UTF-8 | 1,102 | 2.09375 | 2 | [] | no_license | package com.yuan.demo.controller;
import com.yuan.demo.entity.User;
import com.yuan.demo.repository.UserRepository;
import com.yuan.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.an... | true |
8dea363fb457235588c08eb7ce5628b9eb9a9ed2 | Java | Padorax/algo | /CC150/Stack.java | UTF-8 | 162 | 2.671875 | 3 | [] | no_license | /** Stack ADT*/
public interface Stack<E>{
public void clear();
public void push(E data);
public E pop();
public E topValue();
public int size();
} | true |
716145d510b44583a82c8ada49f25195a76a1e5d | Java | yutinglu15/ForumDemo | /Lab5Reddit/app/src/main/java/com/example/lab5reddit/Message.java | UTF-8 | 565 | 2.875 | 3 | [] | no_license | package com.example.lab5reddit;
public class Message {
String text;
int score;
public Message(){
this.text = "";
this.score = 0;
}
public Message(String text, int score) {
this.text = text;
this.score = score;
}
public String getText() {
... | true |
08986464b4efc25678f4aa39b4bd61431570aa36 | Java | ggmoura/treinar | /turma_6256/codigo-fonte/estudo/src/gilberto/excecao/Venda.java | UTF-8 | 204 | 1.945313 | 2 | [] | no_license | package gilberto.excecao;
public class Venda {
public Venda(){
}
public void adicionarProduto() throws ProdutoNaoDisponivelException{
throw new ProdutoNaoDisponivelException();
}
}
| true |
4dbf200e19ab0d8196737775888f433eb11cfe67 | Java | thistehneisen/cifra | /src/apk/b/d/d.java | UTF-8 | 12,110 | 2.140625 | 2 | [] | no_license | package b.d;
import java.lang.reflect.Array;
import java.util.Collection;
import java.util.Iterator;
import java.util.Set;
/* compiled from: ArraySet */
public final class d<E> implements Collection<E>, Set<E> {
/* renamed from: a reason: collision with root package name */
private static final int[] f2264a ... | true |
d4d66ecd111d60be07017d1d8b5aaf44644d1f92 | Java | exetreme/MOB403Lab1bai1 | /app/src/main/java/com/example/bai11/MainActivity.java | UTF-8 | 1,900 | 2.15625 | 2 | [] | no_license | package com.example.bai11;
import androidx.appcompat.app.AppCompatActivity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import java.io.IOExcept... | true |
16df8b20dd1b191c64ab4f2efad14fcbfe340eb8 | Java | vvasabi/com.bradchen.faces.rest | /src/main/java/com/bradchen/faces/rest/FacesResourceFactory.java | UTF-8 | 1,194 | 2.3125 | 2 | [] | no_license | package com.bradchen.faces.rest;
import org.jboss.resteasy.spi.HttpRequest;
import org.jboss.resteasy.spi.HttpResponse;
import org.jboss.resteasy.spi.InjectorFactory;
import org.jboss.resteasy.spi.ResourceFactory;
/**
* JSF implementation for the ResourceFactory. This class essentially does not
* do much -- it just... | true |
49880e85440679d072e6aa05dd571ed102c04d95 | Java | valentintintin/RandSode | /app/src/main/java/lpsmin/randsode/models/database/Episode.java | UTF-8 | 2,781 | 2.40625 | 2 | [] | no_license | package lpsmin.randsode.models.database;
import com.raizlabs.android.dbflow.annotation.Column;
import com.raizlabs.android.dbflow.annotation.PrimaryKey;
import com.raizlabs.android.dbflow.annotation.Table;
import com.raizlabs.android.dbflow.structure.BaseModel;
import java.io.Serializable;
@Table(database = AppDatab... | true |
894889ebe3ab0be7ee7f6bfa7b815f022a6911f5 | Java | primarystudent/start | /start/src/main/java/wenlong/concurrent/CountDownLatchDemo.java | UTF-8 | 1,016 | 3.296875 | 3 | [] | no_license | package wenlong.concurrent;
import java.util.concurrent.CountDownLatch;
public class CountDownLatchDemo {
public static void main(String[] args) {
try {
demo(100);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public static void demo(in... | true |
9754f4101bb367a280ea82c6814ce9f048741334 | Java | nagashree-angadi/CompetativeCoding | /Coding Patterns/Breadth First Search/MinimumBinaryTreeDepth.java | UTF-8 | 1,607 | 4.21875 | 4 | [] | no_license | /*
* Minimum Depth of a Binary Tree (easy)
* Find the minimum depth of a binary tree.
* The minimum depth is the number of nodes along the shortest path from the root node to the nearest leaf node.
* */
import java.util.*;
class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) {
... | true |
9511eabfa2112b333f633e63bb074b917eeebe8e | Java | dipu011995/SPRINGWS | /DAOProj103-CallbackInterface-RowCallBackHandler-for-BunchOfRecord/src/main/java/com/pk/test/CallbackInterfaceTest.java | UTF-8 | 989 | 2.5 | 2 | [] | no_license | package com.pk.test;
import java.util.ArrayList;
import java.util.List;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.dao.DataAccessException;
import com.pk.dto.EmployeeDTO;
import com.pk.service.EmployeeSe... | true |
170cff3b7005faf1fff797b34e0e52d03167a831 | Java | WestRyanK/Ticket-To-Ride | /app/src/main/java/byu/codemonkeys/tickettoride/networking/ClientCommunicator.java | UTF-8 | 10,509 | 2.421875 | 2 | [] | no_license | package byu.codemonkeys.tickettoride.networking;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import byu.codemonkeys.tickettoride.shared.Serializer;
import byu.codemonkeys.ticket... | true |
f87195fc44adf054edf3dcf85bb18b739205b407 | Java | dragonxu/street_light_yancheng | /resource/src/main/java/com/exc/street/light/resource/entity/electricity/CanControlObject.java | UTF-8 | 1,325 | 1.789063 | 2 | [] | no_license | package com.exc.street.light.resource.entity.electricity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProp... | true |
bd939c7057fda2eb894418398c149b3fe4796f8b | Java | wendrewshay/ZookeeperCluster | /src/main/java/com/xwq/zk/recipes/lock/LockListener.java | UTF-8 | 366 | 2.296875 | 2 | [] | no_license | package com.xwq.zk.recipes.lock;
/**
* @ClassName: LockListener
* @Description: 锁的获取和释放监听回调
* @author: XiaWenQiang
* @date: 2017年7月21日 上午10:03:33
*
*/
public interface LockListener {
/**
* 获取锁回调
*/
public void lockAcquired();
/**
* 释放锁回调
*/
public void lockReleased();
}
| true |
b675117e8fb54135ac3cdc1ccd634cb6497888ec | Java | moon-watcher/really-old-stuff | /other/Svg2Lrv/src/Viewer.java | UTF-8 | 5,316 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | /*
* This source code file is part of the "Open SVG Viewer" project.
* Copyright (C) 2002 PT Inova��o
* Copyright (C) 2003 Miguel Castro
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Found... | true |
6a0bd01f2c0610c6d5a468b7aa1f28a74a4059f9 | Java | sfdcxc/Blog | /code/lanqiaoTrain/src/com/darcy/lanqiao2013/_03振兴中华.java | UTF-8 | 424 | 3.15625 | 3 | [] | no_license | package com.darcy.lanqiao2013;
public class _03振兴中华 {
public static void main(String[] args) {
//重复
//变化
//边界
int ans = dfs(0, 0);
System.out.println(ans);
}
private static int dfs(int x, int y) {
if(x == 3 || y == 4){
return 1;
}
... | true |
30f5b97687ac7fb11384719e59b8a0474bbe9fd6 | Java | PUCRS-Poli-ES-ALAV/8-algoritmos-gulosos-problemas-do-escal-de-intervalos-feliperoll-e-cristian-cotrena | /Main.java | UTF-8 | 644 | 2.9375 | 3 | [] | no_license |
import java.util.Arrays;
public class Main {
public static int[] guloso(int[] s, int[] f, int n) {
int[] x = new int[n];
int i = 0;
f[0] = 0;
for (int k = 0; k < n; k++) {
if (s[k] > f[i]) {
x[k] = 1;
i = k;
... | true |
e061b097ed53047a9e278280b365fe8f2cf9e436 | Java | tofiquek/E-Commerce | /src/main/java/com/bacancy/ecommerce/controller/CategoryController.java | UTF-8 | 2,093 | 2.21875 | 2 | [] | no_license | package com.bacancy.ecommerce.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.... | true |
ae1e66ca6097d1f13ca886252b198edfaac1f49f | Java | thanniaB/catapi-android | /app/src/main/java/org/otfusion/votecats/ui/activities/MainActivity.java | UTF-8 | 2,012 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package org.otfusion.votecats.ui.activities;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import com.squareup.otto.Bus;
import com.squareup.otto.Subscribe;
import org.otfusion.votecats.R;
import ... | true |
3cdea0f230d6d094afc647792529b631a928dc06 | Java | shakwer1230/order-archetype | /order-common/src/main/java/com/microsoft/order/common/tools/log/logback/LogbackExEncoder.java | UTF-8 | 494 | 1.765625 | 2 | [] | no_license | package com.microsoft.order.common.tools.log.logback;//package com.fang.order.common.tools.log.logback;
//
//import ch.qos.logback.classic.encoder.PatternLayoutEncoder;
//
//import static ch.qos.logback.classic.PatternLayout.defaultConverterMap;
//
///**
// * @author: 陈偲
// * @date: 2017/11/29 19:19
// * @version: 1.0
... | true |
381b40f5767c4606771c3c60da9de4059d4ee68a | Java | checketts/promregator | /src/main/java/org/cloudfoundry/promregator/auth/OAuth2XSUAAEnricher.java | UTF-8 | 6,228 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package org.cloudfoundry.promregator.auth;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.time.Instant;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.Base64;
import java.util... | true |
ef142f40338626ca6d8d0dfbb6d086c420da56ee | Java | ColinParrott/Songle | /app/src/main/java/colinparrott/com/songle/storage/UserPrefsManager.java | UTF-8 | 5,582 | 2.921875 | 3 | [] | no_license | package colinparrott.com.songle.storage;
import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;
import com.google.gson.Gson;
import java.lang.reflect.Type;
import java.util.HashSet;
import java.util.Set;
/**
* This class is for reading and writing data about the user's p... | true |
9987509fcc997bf8bb5fffe1816a73be7ac9ede7 | Java | rkausch/opensphere-desktop | /open-sphere-base/core/src/main/java/com/bitsys/common/http/ssl/KeyStoreUtils.java | UTF-8 | 11,762 | 2.609375 | 3 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | package com.bitsys.common.http.ssl;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.UnrecoverableKeyException;
import java.security.cert.CertificateExc... | true |
9ece321eb044ba18a8aba38b971c3f4524bdbcb3 | Java | ao-libre/finisterra | /design/src/design/editors/AnimationEditor.java | UTF-8 | 3,879 | 2.421875 | 2 | [] | no_license | package design.editors;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.ui.*;
import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;
import design.editors.fields.FieldEditor;
import design.edito... | true |
970d63da1854c2bd5234a1f7149224ddd85954de | Java | xdewx/android | /CoolWeather/app/src/main/java/cn/wdywae/coolweather/db/County.java | UTF-8 | 843 | 2.109375 | 2 | [] | no_license | package cn.wdywae.coolweather.db;
import org.litepal.crud.DataSupport;
/**
* Created by hasee on 2017/7/29.
*/
public class County extends DataSupport
{
private int id;
private String name;
private String id_weather;
private int id_city;
public int getId()
{
return id;
}
p... | true |
6db739ed3b5e4261bfa83bd5f4c0632a383a73d6 | Java | brianstorti/dojos-codeit | /LookAndSay/src/tests/LookAndSayTest.java | IBM852 | 2,285 | 2.875 | 3 | [] | no_license | package tests;
import main.FormatterInFull;
import main.LookAndSay;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class LookAndSayTest {
private LookAndSay lookAndSay;
@Before
public void before(){
lookAndSay = new LookAndSay();
}
@Test
public void testEntradaMaisSimple... | true |
49e13e44adcdfb09717427693e85d8a3718501fb | Java | Avik1914/Competitive-Programming | /string-to-integer-atoi/string-to-integer-atoi.java | UTF-8 | 806 | 3.109375 | 3 | [] | no_license | class Solution {
public int myAtoi(String s) {
int len=s.length();
char[] arr=s.toCharArray();
int itr=0;
while(itr<len && arr[itr]==' ')
itr++;
if(itr==len)
return 0;
int sign=1;
if(arr[itr]=='-' || arr[itr]=='+'){
... | true |
14b6648db5b592acae08a380c3ba54f1d3953e7e | Java | Neha814/HeadsUp | /app/src/main/java/com/headsup/ForgetPassword.java | UTF-8 | 4,624 | 2.40625 | 2 | [] | no_license | package com.headsup;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;
import org.apache.... | true |
8bc0954a81fa2ccb97af79bebf419e940400b951 | Java | xoxleidu/broadband | /src/main/java/com/zjts/broadband/job/controller/CustomerController.java | UTF-8 | 4,020 | 2.140625 | 2 | [] | no_license | package com.zjts.broadband.job.controller;
import com.baomidou.mybatisplus.plugins.Page;
import com.zjts.broadband.common.constant.CodeEnum;
import com.zjts.broadband.common.controller.BaseController;
import com.zjts.broadband.common.model.APIResponse;
import com.zjts.broadband.common.model.req.job.customer.ReqCustomer... | true |
64caabe7f72a399d496ceeca8579bbc442b917a7 | Java | venkatasaranu/training | /Training Samples/frameworks-project-samples/Hibernane _SOAP_Project/HibernateQueryApiDemos/src/com/veritis/query/clients/NamedQueries.java | UTF-8 | 2,411 | 2.734375 | 3 | [] | no_license | package com.veritis.query.clients;
import java.util.Iterator;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import com.veritis.hibernate.query.api.Product;
import com.veritis.hibernate.query.api... | true |
869057f787de40103475d28f3e02a534b4f89566 | Java | goggalor1954/CISC3150-Fall15 | /HW1/Question4/PrintNum.java | UTF-8 | 500 | 3.46875 | 3 | [] | no_license | //James Roesemann
//Cisc3150 HW1 Question4
import java.util.*;
import java.io.*;
public class PrintNum{
// I'm not quite sure what was wanted here. If the point of this exersise was to print the whoile file or just the individual tokenns, so I went with the most literal interpretation.
void go(){
Scanner readNum... | true |
12ac02f95951774904e9439e715394d57b715e1d | Java | liushaoshuaii/mingrui-shop-parent | /mingrui-shop-service-api/mingrui-shop-service-api-xxx/src/main/java/com/baidu/shop/service/BrandService.java | UTF-8 | 1,406 | 1.828125 | 2 | [] | no_license | package com.baidu.shop.service;
import com.alibaba.fastjson.JSONObject;
import com.baidu.shop.base.Result;
import com.baidu.shop.dto.BrandDTO;
import com.baidu.shop.entity.BrandEntity;
import com.baidu.shop.group.MingruiOperation;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api;
import io.swag... | true |
7e80557f646f1ebc86a7ed6bd685f09a3946f8ee | Java | jaro1989/Day4ProjectMentuz | /src/by/javatr/task3/util/ItemInterface.java | UTF-8 | 110 | 2.203125 | 2 | [] | no_license | package by.javatr.task3.util;
public interface ItemInterface {
int getWeight();
String getColor();
}
| true |
acb93a16abcd91f7088873ec0dc730ce44cb4216 | Java | ZuofeiGithub/java_web_maozhanggui | /src/main/java/com/huiketong/catshopkeeper/api/service/FaceSearchService.java | UTF-8 | 1,089 | 2.109375 | 2 | [] | no_license | package com.huiketong.catshopkeeper.api.service;
import com.huiketong.catshopkeeper.util.GsonUtils;
import com.huiketong.catshopkeeper.util.HttpUtil;
import java.util.HashMap;
import java.util.Map;
/**
* @Author: 左飞
* @Date: 2019/2/14 15:53
* @Version 1.0
*/
public class FaceSearchService {
public static Str... | true |
619bfde7e8ddd53e8036dfa066b8159b39b3aec7 | Java | farooh/HW1 | /HW 1/src/main/java/datastructures/concrete/DoubleLinkedList.java | UTF-8 | 10,551 | 3.78125 | 4 | [] | no_license | package datastructures.concrete;
import datastructures.interfaces.IList;
import misc.exceptions.EmptyContainerException;
import misc.exceptions.NotYetImplementedException;
import java.util.Iterator;
import java.util.NoSuchElementException;
/**
* Note: For more info on the expected behavior of your methods, see
* t... | true |
381c4b9bb7b9a7e313888693067b3fb2d9df3d52 | Java | unica-open/siacbilapp | /src/test/java/it/csi/siac/siacbilapp/frontend/webservice/client/bil/CronoprogrammaServiceTest.java | UTF-8 | 1,356 | 2.0625 | 2 | [] | no_license | /*
*SPDX-FileCopyrightText: Copyright 2020 | CSI Piemonte
*SPDX-License-Identifier: EUPL-1.2
*/
package it.csi.siac.siacbilapp.frontend.webservice.client.bil;
import java.util.Date;
import it.csi.siac.siacbilapp.frontend.webservice.client.BaseProxyServiceTest;
import it.csi.siac.siacbilser.frontend.webservice.Progett... | true |
e8ea87326c63c5344b1f0f667756caab991cba43 | Java | FriedrichMykola/MyPortfolio | /Business/app/src/main/java/com/example/business/friedrich/kuzan/business/ui/business/design_fragment/dialog_fragment/UpdateTextDialogFragmentPresenter.java | UTF-8 | 2,080 | 2.0625 | 2 | [] | no_license | package com.example.business.friedrich.kuzan.business.ui.business.design_fragment.dialog_fragment;
import android.content.res.Resources;
import com.arellomobile.mvp.InjectViewState;
import com.arellomobile.mvp.MvpPresenter;
import com.example.business.friedrich.kuzan.business.R;
import com.example.business.friedrich.... | true |
5ac0bc63a196bbf99353cefd2c6b941f1cc00e4f | Java | Messiless/old-code | /io/src/com/imooc/Try1.java | GB18030 | 516 | 2.796875 | 3 | [] | no_license | package com.imooc;
import java.io.*;
public class Try1 {
/*һļиɷݣ
* һֳɼֱͬļ
*
*/
public static void main(String[] args) throws IOException{
FileInputStream k1= new FileInputStream("e:\\l1.jpeg");
FileOutputStream k2=null;
byte[] kk=new byte[1024*1024];
int sd=0;
int count=1;
while((sd=k1.read(kk))!=-1){
k... | true |
d348d555568570ca09dee6203aa3736f21d9929b | Java | Rozzzen/Concurrency2 | /src/CPU.java | UTF-8 | 1,683 | 3.265625 | 3 | [] | no_license | public class CPU extends Thread{
private final static long EXECUTION_TIME;
private CPUProcess process;
private static CPUQueue[] cpuQueues;
private boolean run = true;
static {
EXECUTION_TIME = (long)(Math.random() * 500 + 700);
}
public void stopThread() {
run = false;
... | true |
eb384ca293bf3743bfe59e08d6ef5237033f2d85 | Java | awaisdilber/android | /app/src/main/java/com/cto247/directoryapp/network/IAPIService.java | UTF-8 | 423 | 1.851563 | 2 | [] | no_license | package com.cto247.directoryapp.network;
import com.cto247.directoryapp.models.ContactsData;
import com.cto247.directoryapp.models.Employee;
import java.util.List;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
/**
* Created by Sam on 10/7/2017.
*/
publ... | true |
a2a4a5d052524c909dd9ceea2edf62a2b5e3bcc7 | Java | JetBrains/MPS | /plugins/mps-kotlin/languages/kotlin.javaRefs/source_gen/jetbrains/mps/kotlin/javaRefs/behavior/JavaSignatures.java | UTF-8 | 11,662 | 1.625 | 2 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package jetbrains.mps.kotlin.javaRefs.behavior;
/*Generated by MPS */
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.kotlin.scopes.signed.TopLevelVisibility;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SNodeOperations;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SLinkOper... | true |
bfa3694c2998fdc57aaaf19735b0b5111b4a3df2 | Java | jufeng98/java-master | /spring-test/src/main/java/org/javamaster/spring/test/config/VerifyEnvApplicationContextInitializer.java | UTF-8 | 1,165 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | package org.javamaster.spring.test.config;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;
import java.util.HashSet;
import java.util.Set;
/**
* @author yudong
* @date 2021/5/15
*/
@SuppressWarnings("NullableProblems")
public cla... | true |
c368339fadcd144cbca034f6eb9a9ae0f79936c0 | Java | erickkaiquesilva/projectSchedule | /agendaDeObjetivos-erick/agendaDeObjetivos/agendaDeObjetivos/src/main/java/br/com/ericksilva/agendaDeObjetivos/controller/LoginController.java | UTF-8 | 294 | 1.625 | 2 | [] | no_license | package br.com.ericksilva.agendaDeObjetivos.controller;
import org.springframework.http.ResponseEntity;
public class LoginController {
public ResponseEntity<String> validarLogin(Credenciais credenciais) {
// TODO Auto-generated method stub
return ResponseEntity.ok("Sucesso");
}
}
| true |
4fbc351755a3efce9281cd21a18ffa6a0716cc3f | Java | lxh674685799/posCash | /src/main/java/com/soft/core/util/StringUtil.java | UTF-8 | 18,501 | 2.5625 | 3 | [] | no_license | package com.soft.core.util;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.lang.reflect.Type;
import java.security.MessageDigest;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern... | true |
aadf2ae7eccc9a18b93fe279e54b3d35e8c94f40 | Java | LahiruNikolin/Madd-Tute02 | /app/src/main/java/com/example/intentsproj/FirstActivity.java | UTF-8 | 1,274 | 2.3125 | 2 | [] | no_license | package com.example.intentsproj;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
public class FirstActivity extends A... | true |
371997c77097f7e19d100a28f5eecf9220d28a5b | Java | roosi/utils | /src/com/roosi/utils/net/JsonObjectResponse.java | UTF-8 | 496 | 2.25 | 2 | [] | no_license | package com.roosi.utils.net;
import org.json.JSONException;
import org.json.JSONObject;
public class JsonObjectResponse extends Response {
private JSONObject mJsonObject = null;
public JsonObjectResponse() {
}
@Override
public void setContent(String content) {
super.setContent(content);
try... | true |
e69a729cad2964dd08d5b130130e9582c4f72881 | Java | sinozuke/-Compi1-Proyecto1_server | /src/BackEnd/Analizador/Consola/AnalizadorSintactico_compilador_consola.java | UTF-8 | 281,763 | 2.125 | 2 | [] | no_license |
//----------------------------------------------------
// The following code was generated by CUP v0.11a beta 20060608
// Mon Apr 18 08:10:54 CST 2016
//----------------------------------------------------
package BackEnd.Analizador.Consola;
import java_cup.runtime.*;
import BackEnd.DAO.Objetos.*;
import BackEnd.DAO... | true |
cd70948120efa6fe9ec98c7bf41d3957e6bf53fe | Java | GPC-debug/fss | /runpriority/src/main/java/com/gongbo/fss/runpriority/annotation/RunPriority.java | UTF-8 | 486 | 2.171875 | 2 | [] | no_license | package com.gongbo.fss.runpriority.annotation;
import com.gongbo.fss.runpriority.constant.Priority;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
//运行优先级注解,定义在initView,initListener,initData等方法上
@Reten... | true |
0bd1d5757478978669c234982a7abe930940434b | Java | weydsonmacedo/manage-account-api | /src/main/java/br/com/donus/manageaccountapi/model/Status.java | UTF-8 | 249 | 2.140625 | 2 | [] | no_license | package br.com.donus.manageaccountapi.model;
public enum Status {
ACTIVE("ATIVO"),
INACTIVE("INATIVO");
private String status;
private Status(String status) {
this.status = status;
}
public String getStatus() {
return status;
}
}
| true |
f8236321a4dd28dd7fd5c569beb25b052865454e | Java | sandeepsandy9699/Insight | /src/test/java/com/insight68taf/stepDefinitions/APIStepDefinition.java | UTF-8 | 4,910 | 2.40625 | 2 | [] | no_license | package com.insight68taf.stepDefinitions;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.json.simple.JSONObject;
import com.insight68taf.utils.APIHelper;
import cucumber.api.DataTable;
import cucumber.api.java.en.And;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.... | true |
902ed207ff4bda200ba4cf6fac88139aac0eaca9 | Java | pgu/pgu-geo | /src/pgu/client/contacts/ContactsPlace.java | UTF-8 | 561 | 2.078125 | 2 | [] | no_license | package pgu.client.contacts;
import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;
public class ContactsPlace extends Place {
@Prefix("contacts")
public static class Tokenizer implements PlaceTokenizer<ContactsPlace> {
... | true |
3b01fd1c4b0e686fd2ebf3ea66d39617b524df4a | Java | dav9670/Entourage | /app/src/main/java/com/david/entourage/Application/AppController.java | UTF-8 | 2,921 | 2.203125 | 2 | [] | no_license | package com.david.entourage.Application;
import android.app.Application;
import android.content.Context;
import android.location.Location;
import android.os.Handler;
import android.text.TextUtils;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;
impo... | true |
11f99b0e54794aa7fd64d0fe1dea08b3938e777b | Java | bierzan/mtgboard-REST-back | /src/main/java/com/brzn/mtgboard/card/cardsSet/CardSetRepo.java | UTF-8 | 250 | 1.953125 | 2 | [] | no_license | package com.brzn.mtgboard.card.cardsSet;
import org.springframework.data.jpa.repository.JpaRepository;
public interface CardSetRepo extends JpaRepository<CardSet, Long> {
CardSet findByCode(String code);
CardSet findByName(String name);
}
| true |
541a60c17184e2e02f5a6a7a362419feeacc71d7 | Java | AbnerZheng/DBhwForMIT | /src/java/simpledb/IntegerAggregator.java | UTF-8 | 4,684 | 2.9375 | 3 | [] | no_license | package simpledb;
import java.util.HashMap;
import java.util.Iterator;
import java.util.NoSuchElementException;
/**
* Knows how to compute some aggregate over a set of IntFields.
*/
public class IntegerAggregator implements Aggregator {
private static final long serialVersionUID = 1L;
private final Op op;
pr... | true |
c8265c95bab11f50648b08babbed476dcbd4db09 | Java | jeonminhee/bitcamp-java-2018-12 | /java-spring-webmvc/src/main/java/bitcamp/app1/Controller05_1.java | UTF-8 | 2,997 | 2.53125 | 3 | [] | no_license | // 요청 핸들러의 리턴 값 - 콘텐트를 직접 리턴하기
package bitcamp.app1;
import javax.servlet.http.HttpServletResponse;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype... | true |
381d68857bbf0f2faae063243bbd8bd305018a4f | Java | ArshdeepSingh98/ToDoList | /app/src/main/java/com/example/arshdeep/todolist/CompletedActivity.java | UTF-8 | 785 | 1.59375 | 2 | [] | no_license | package com.example.arshdeep.todolist;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.w... | true |
43dcbc629a3d5182a2b88f1cd4909904827f77fb | Java | rushing-mario/AllMyTestCode | /app/src/main/java/com/okry/amt/animation/PropertyAnimationTest.java | UTF-8 | 2,914 | 2.46875 | 2 | [] | no_license | package com.okry.amt.animation;
import android.animation.*;
import android.app.Activity;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Toast;
import com.okry.amt.R;
import java.util.ArrayList;
/**
* Created by MR on 14-2-19.
*/
public class PropertyAnima... | true |
d8f68094c67430ed3e21a46e5326506bf194fa68 | Java | toku87/Algorytmy | /Algorytmy/src/Algorithms/WydawaniePieniedzy.java | UTF-8 | 1,538 | 3.203125 | 3 | [] | no_license | package Algorithms;
import java.util.Arrays;
public class WydawaniePieniedzy extends AbstractAlgorithm {
@Override
public String getName() {
return "wydawanie kasy";
}
@Override
public void runAlgorithm(String[] input) {
int[] banknoty = {200, 100, 50, 20, 10, 5, 2, 1};
... | true |
f36969d3a0cf22ec39f612d557aec46aba6d2456 | Java | ecrespin12/medicanet | /app/src/main/java/clasesResponse/RecetaModel.java | UTF-8 | 635 | 1.71875 | 2 | [] | no_license | package clasesResponse;
import com.google.gson.annotations.SerializedName;
public class RecetaModel {
@SerializedName("rme_codmdc")
public int rme_codmdc;
@SerializedName("rme_codcme")
public int rme_codcme;
@SerializedName("rme_indicaciones")
public String rme_indicaciones;
@SerializedNam... | true |
599218e7dbb23cbe2495b93ebfd56b11e92cf37a | Java | zokapacker/SeleniumJavaUnsplash | /src/test/java/pages/EditProfilePage.java | UTF-8 | 3,347 | 1.90625 | 2 | [] | no_license | package pages;
import java.io.IOException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class EditProfilePage {
WebDriver driver;
public EditProfilePage(WebDriver driver) {
this.driver=driver;
}
@FindBy(xpath="//*[@id=\"... | true |
2a1e1ec70c7cb99fe385eb2e1967126f4bafd667 | Java | rencclive/flink-sql-computing-platform | /platform-server/server-master/src/main/java/com/woophee/platform/server/master/service/impl/DefineRealtimeJobServiceImpl.java | UTF-8 | 6,523 | 1.929688 | 2 | [
"Apache-2.0"
] | permissive | package com.woophee.platform.server.master.service.impl;
import com.alibaba.fastjson.JSON;
import com.woophee.platform.server.master.common.Response;
import com.woophee.platform.server.master.common.RestResult;
import com.woophee.platform.server.master.dao.mapper.DefineGroupMapper;
import com.woophee.platform.server.m... | true |
2894c05e42022e0625d30c5d34ed40e11fde2c07 | Java | zmyer/rsocket-java | /rsocket-core/src/main/java/io/rsocket/framing/DataFrame.java | UTF-8 | 2,143 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015-2018 the original author or authors.
*
* 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 app... | true |
315f19af74d0e9aa8461bfcb78da9ff6673342ba | Java | Alaeddinalhamoud/Java-RMI-Query-CSV-File | /query-client/src/model/HousesPrices.java | UTF-8 | 1,037 | 2.953125 | 3 | [] | no_license | package model;
import java.io.Serializable;
public class HousesPrices implements Serializable {
//this class to set and get the HousePrice data and print it.
//its Serializable coz of shared with the Interfaces.. at same time saver need it to pass the data using this class
private static final long serialVersion... | true |
56373af63f7ef179cb3f134f72ac26633033183a | Java | KillerBananaZ/POO2019-30223 | /Students/Bouaru Radu/Homework/Zoowsome/src/javasmmr/zoowsome/models/animals/Whale.java | UTF-8 | 908 | 2.546875 | 3 | [] | no_license | package javasmmr.zoowsome.models.animals;
import static javasmmr.zoowsome.repositories.AnimalRepository.createNode;
import javax.xml.stream.XMLEventWriter;
import javax.xml.stream.XMLStreamException;
import org.w3c.dom.Element;
import javasmmr.zoowsome.services.factories.Constants;
public class Whale extends Aquat... | true |
6b984fd6bc7d4f3f57390cf9484ed2cead905445 | Java | caiqianyi/guess | /framework/common-utils/src/main/java/com/lebaoxun/commons/utils/FormulaCalculate.java | UTF-8 | 8,145 | 2.390625 | 2 | [] | no_license | package com.lebaoxun.commons.utils;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.TreeMap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.lebaoxun.commons.exception.I18nMessageException;
public class FormulaCalculate {
private static Logger ... | true |
cd965bb3ef8b5542b247cad3de50c92ee34de1ec | Java | samsonanami/IDAPI | /DocumentVerification/src/main/java/com/fintech/orion/documentverification/custom/common/DateOfBirthValidation.java | UTF-8 | 6,065 | 2.078125 | 2 | [] | no_license | package com.fintech.orion.documentverification.custom.common;
import com.fintech.orion.dataabstraction.entities.orion.ResourceName;
import com.fintech.orion.documentverification.common.exception.CustomValidationException;
import com.fintech.orion.documentverification.custom.CustomValidation;
import com.fintech.orion.d... | true |
5ff3256368ac83f7c43a3bf8710e82665f6c397d | Java | lucapino/sheetmaker | /src/main/java/com/github/lucapino/sheetmaker/renderer/TemplateFilter.java | UTF-8 | 12,876 | 2.375 | 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.github.lucapino.sheetmaker.renderer;
import com.github.lucapino.sheetmaker.model.movie.Movie;
import com.github.lucapino.s... | true |
e3a660c8be76a8b6563c78edc7a21535a2a27817 | Java | toshytwx/AirplaneTickets | /src/java/gmail/dimon0272/WebApp/actions/AddLuggageAction.java | UTF-8 | 526 | 2.421875 | 2 | [] | no_license | package gmail.dimon0272.WebApp.actions;
import gmail.dimon0272.WebApp.model.Luggage;
import gmail.dimon0272.WebApp.service.LuggageService;
public class AddLuggageAction implements Action {
private LuggageService luggageService;
private Luggage luggage;
public AddLuggageAction(LuggageService customerServi... | true |
d29b2df59a71284a2eaf498f916fc2ecd01a512d | Java | MirkoPoder/operaBankBack | /src/main/java/com/example/podermirko/operabankback/models/mappers/TransactionRowMapper.java | UTF-8 | 843 | 2.46875 | 2 | [] | no_license | package com.example.podermirko.operabankback.models.mappers;
import com.example.podermirko.operabankback.models.Transaction;
import org.springframework.jdbc.core.RowMapper;
import java.sql.ResultSet;
import java.sql.SQLException;
public class TransactionRowMapper implements RowMapper<Transaction> {
@Override
... | true |
8b91285de06df98f0fa73bde164d6905e47fb3c8 | Java | gavin-ao/Task_Baby | /src/main/java/data/driven/cm/entity/taskbaby/WechatPublicDetailEntity.java | UTF-8 | 4,430 | 2.25 | 2 | [] | no_license | package data.driven.cm.entity.taskbaby;
import java.util.Date;
/**
* @Author: lxl
* @describe 公众号详细信息表
* @Date: 2018/11/22 17:06
* @Version 1.0
*/
public class WechatPublicDetailEntity {
/**
* 主键
*/
private String id;
/**
* 公众号信息表外键
*/
private String wechatPublicId;
/**
... | true |
4b2ae8302721b4ed39a139dff832a2eda3372f44 | Java | Team2168/2018_Offseason_Project | /src/org/team2168/subsystems/TelescopicArm.java | UTF-8 | 4,367 | 2.796875 | 3 | [] | no_license | package org.team2168.subsystems;
import org.team2168.OI;
import org.team2168.Robot;
import org.team2168.RobotMap;
import org.team2168.commands.TelescopicArm.DriveTelescopicArmWithJoysticks;
import edu.wpi.first.wpilibj.AnalogInput;
import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj.DoubleSolenoid... | true |
1616784ca808fe7bd728442da3f011f492776da7 | Java | alexuaaaa/cucumber-tests | /src/test/java/cucumber/classobjs/PatientGender.java | UTF-8 | 229 | 2.21875 | 2 | [] | no_license | package cucumber.classobjs;
public class PatientGender {
public String gender;
public String path;
public PatientGender(String gender, String path) {
this.gender = gender;
this.path = path;
}
}
| true |
113f3e8a2e5f326c24efce5b230df05b60623600 | Java | kjhulin/secure-notepad | /Crypto.java | UTF-8 | 14,146 | 2.71875 | 3 | [] | no_license | import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.... | true |
90ef187797c180b1d24bd2b02fac6eec156a0017 | Java | JetBrains/intellij-sdk-docs | /code_samples/settings/src/main/java/org/intellij/sdk/settings/AppSettingsState.java | UTF-8 | 1,417 | 1.867188 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.intellij.sdk.settings;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.components.PersistentStateComp... | true |
9da2f58df509addb89f99803c91076945a87f7d6 | Java | divanshuarneja/Ricerocks | /missile.java | UTF-8 | 3,277 | 3.15625 | 3 | [] | no_license | import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.List;
/**
* Missile class. An explosion occurs when it hits the rock
*
* @Team15
*/
public class missile extends SmoothMover implements MissileSubject
{
/**
* Act - do whatever the missile wants to do. This me... | true |
71434ea7b99549c59ee86e8e55a319a3bb370561 | Java | MohammedBesha/FoodDelivery | /app/src/main/java/com/zetatech/foodapp/data/models/ResponseKitchenDetails.java | UTF-8 | 646 | 2.109375 | 2 | [] | no_license | package com.zetatech.foodapp.data.models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
//Represents Kitchen Details Model
public class ResponseKitchenDetails {
@SerializedName("data")
@Expose
private KitchenDetailsData data;
@SerializedName("status")
... | true |
cecc1fc960cdbaa48681c43656725585b8dde7df | Java | zzyviolette/Animalia-DAR | /src/model/dao/CommentDao.java | UTF-8 | 2,406 | 2.609375 | 3 | [] | no_license | package model.dao;
import java.util.ArrayList;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.Transaction;
import model.bo.Comment;
import model.bo.Utilisateur;
import utils.HibernateUtil;
public class CommentDao {
public boolean save... | true |
c909b2b056c32d1eccdeff68ec568a74ad42796d | Java | dmelemed/catan | /src/melemed/catan/cards/DevelopmentCard.java | UTF-8 | 223 | 1.773438 | 2 | [] | no_license | package melemed.catan.cards;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public enum DevelopmentCard {
SOLDIER;
private static final Logger logger = LoggerFactory.getLogger(DevelopmentCard.class);
}
| true |
88fa0ac70155d6ac222084f01ef057d469e49117 | Java | bmarshall-zenoss/optiq | /src/main/java/org/eigenbase/relopt/RelOptAbstractTable.java | UTF-8 | 2,337 | 1.90625 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | /*
// Licensed to Julian Hyde under one or more contributor license
// agreements. See the NOTICE file distributed with this work for
// additional information regarding copyright ownership.
//
// Julian Hyde licenses this file to you under the Apache License,
// Version 2.0 (the "License"); you may not use this file e... | true |
41ec3f3f3f259252803fa95eb8a59a530d9a9e9e | Java | aidenyan/inside | /inside-service/src/main/java/com/jimmy/service/sys/SysConfigService.java | UTF-8 | 229 | 1.585938 | 2 | [] | no_license | package com.jimmy.service.sys;
import com.jimmy.dto.SysConfigDTO;
/**
* Created by Administrator on 2019/5/27/027.
*/
public interface SysConfigService {
SysConfigDTO find();
void save(SysConfigDTO sysConfigDTO);
}
| true |
1caa3e9f48b314b106bead0d5eff45f3c5c1d93f | Java | katiewu/Crawler | /src/test/edu/upenn/cis455/XPathCrawlerTest.java | UTF-8 | 1,606 | 2.453125 | 2 | [] | no_license | package test.edu.upenn.cis455;
import java.util.List;
import junit.framework.TestCase;
import edu.upenn.cis455.crawler.Processor;
import edu.upenn.cis455.crawler.RobotManager;
import edu.upenn.cis455.crawler.URLFrontier;
public class XPathCrawlerTest extends TestCase {
String url;
URLFrontier urlFrontier;
prote... | true |
8d3930608f2800feee61c1b4073caef6608b3894 | Java | crttcr/RoostDomain | /src/main/java/xivvic/roost/dao/UserDao.java | UTF-8 | 508 | 2.453125 | 2 | [] | no_license | package xivvic.roost.dao;
import java.util.List;
import xivvic.roost.domain.User;
public interface UserDao
extends DomainEntityDao
{
/**
* Return the unique user with the matching (case insensitive) email.
*
* @param email the email to match
* @return the user with the provided email, or null if none exis... | true |
40e54066870d822839d4fa1450037df765214bd1 | Java | xfworld/rain | /activity/src/test/java/org/david/pattern/Singleton/num/Singleton.java | UTF-8 | 241 | 2.328125 | 2 | [] | no_license | package org.david.pattern.Singleton.num;
/**
* Created by mac on 15-4-7.
*/
/**单元素的枚举类型是实现单例的最佳方法,自带反序列化,防止多次实例化
*
*/
public enum Singleton {
INSTANCE
}
| true |
8a7ba963bf59740605c15ab3ddea2b103142631e | Java | mikeando/janb | /src/main/java/janb/models/FileModel.java | UTF-8 | 1,545 | 2.46875 | 2 | [] | no_license | package janb.models;
import janb.Action;
import janb.controllers.IController;
import janb.mxl.IMxlFile;
import janb.mxl.MxlAnnotation;
import javafx.util.Pair;
import java.util.ArrayList;
import java.util.List;
/**
* Created by michaelanderson on 7/01/2015.
*/
public class FileModel extends AbstractModel {
pri... | true |
e3ce0ff0bd4faafe752b6e7027f2030783305fd3 | Java | AcadGildAcademy/BD-2015May06-Ajay-Mathais | /Collections/src/collections/Hashmap.java | UTF-8 | 668 | 3.34375 | 3 | [] | no_license | package collections;
import java.util.*;
import java.util.Map.Entry;
public class Hashmap {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Map<Integer, String> map = new HashMap <Integer, String> ();
map.put(1, "tutorials");
map.put(2,... | true |
885d4ec0e26adbae5352dd2d0f27d7a45954923b | Java | zk-spica/LiTZ | /src/litz/ButtonList.java | UTF-8 | 2,030 | 2.546875 | 3 | [] | no_license | package litz;
import java.awt.Color;
import java.awt.Image;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
public class ButtonList extends Div
{
int height, width, buttonHeight, buttonWidth;
Div[] list;
static Image selectorI... | true |
409b26c781d7877fb45b52f77aebb8497884a677 | Java | FRC4561TerrorBytes/TB2016PreSeason | /robot_2015/src/org/usfirst/frc/team4561/robot/subsystems/Loader.java | UTF-8 | 1,365 | 2.734375 | 3 | [] | no_license | package org.usfirst.frc.team4561.robot.subsystems;
import org.usfirst.frc.team4561.robot.RobotMap;
import edu.wpi.first.wpilibj.DigitalOutput;
import edu.wpi.first.wpilibj.SpeedController;
import edu.wpi.first.wpilibj.Talon;
import edu.wpi.first.wpilibj.Victor;
import edu.wpi.first.wpilibj.command.Subsystem;
/**
* ... | true |
687cad12015260b661512c0751bb7c137d66bf02 | Java | logosty/leetcode | /src/main/java/com/logosty/learning/leetcode/section600/part68/Solution684.java | UTF-8 | 2,190 | 3.46875 | 3 | [] | no_license | package com.logosty.learning.leetcode.section600.part68;
/**
* @author logosty(ganyingle) on 2021/1/27 15:19
* 684. 冗余连接 中等
* 在本问题中, 树指的是一个连通且无环的无向图。
*
* 输入一个图,该图由一个有着N个节点 (节点值不重复1, 2, ..., N) 的树及一条附加的边构成。附加的边的两个顶点包含在1到N中间,这条附加的边不属于树中已存在的边。
*
* 结果图是一个以边组成的二维数组。每一个边的元素是一对[u, v] ,满足 u < v,表示连接顶点u 和v的无向图的边。
*
* ... | true |