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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
88508de6f401e701cbdf7517b5ca0b7bcc61aaf6 | Java | pavel12230808/cs543group12 | /Nachos/src/nachos/vm/SwapFile.java | UTF-8 | 5,064 | 2.921875 | 3 | [
"MIT-Modern-Variant"
] | permissive | package nachos.vm;
import java.util.HashSet;
import java.util.Set;
import nachos.machine.FileSystem;
import nachos.machine.OpenFile;
import nachos.machine.Processor;
import nachos.threads.Lock;
public class SwapFile {
protected static IMachine machine = LiveMachine.getInstance();
private static fina... | true |
92c0df6a1c3b919fd82f4805e1d1f27ea81b8f5d | Java | yezigl/im | /venus/src/main/java/perhaps/love/im/controller/LoginController.java | UTF-8 | 4,480 | 2.140625 | 2 | [
"MIT"
] | permissive | package perhaps.love.im.controller;
import java.util.UUID;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.be... | true |
d48665d068fb8c81fa12f2d19b6a5e5d80dd0d9f | Java | wallel/spring-learning | /spring-security-session/src/main/java/me/lecoding/springlearning/session/data/User.java | UTF-8 | 2,184 | 2.359375 | 2 | [
"MIT"
] | permissive | package me.lecoding.springlearning.session.data;
import me.lecoding.springlearning.session.auth.Role;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@RedisHash(... | true |
d613246d9423a863aac4ba47f46a412379a4fefb | Java | divesh7777/ML_COM0038 | /Demo/src/com/java/pr/Lab6_3.java | UTF-8 | 509 | 3.53125 | 4 | [] | no_license | package com.java.pr;
public class Lab6_3
{
void area(int r) {
//polymorohism
System.out.println("area of circle is"+3.14*r*r);
}
void area(int l,int b) {
System.out.println("area of rec is"+l*b);
}
void area(int br,float h ) {
System.out.println("area of tri is"+0.5*br*h);
}
void area(float s) {... | true |
284b58f74ea58bde95153d3d044127ee383181fb | Java | OparaAL/cv-generator | /src/main/java/com/application/cvgenerator/dto/user/ExperienceDto.java | UTF-8 | 507 | 1.757813 | 2 | [] | no_license | package com.application.cvgenerator.dto.user;
import com.application.cvgenerator.dto.BaseDto;
import com.application.cvgenerator.model.embedded.DateFrom;
import com.application.cvgenerator.model.embedded.DateTo;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.Embedded;
@Getter
@Setter
public cla... | true |
e96d460a455d301af5b15e7a2a4e0ef29cfc17b7 | Java | vdurshetty/Takkaiah | /POReader/src/main/java/com/takkaiah/pdf/output/Export2XML.java | UTF-8 | 2,432 | 2.53125 | 3 | [] | no_license | package com.takkaiah.pdf.output;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.List;
import com.takkaiah.env.POReaderEnvProp;
import com.takkaiah.env.POReaderReadEnv;
import com.takkaiah.logger.POReaderLogger;
import com.takkaiah.... | true |
f5a59f2b001d09e6d669d2fb9da3d73d1ead618b | Java | JayroBoy/VideoPokerEXTREME | /Poker.java | UTF-8 | 4,051 | 3.171875 | 3 | [] | no_license | //import java.io.IOException;
/**
*
* @author Jayro 9762880
* @author Laura Genari 10801180
*
*/
public class Poker {
/*main*/
/**
* @param args
* @throws Exception
*/
public static void main (String args[]) throws Exception {
String enter;
Jogador player = new Jogador();
int apo... | true |
e3d0939051576426100dea6d3dd379d1f9cf110c | Java | pabhijit/TicketAssistant | /src/main/java/com/walmart/model/SeatHold.java | UTF-8 | 1,760 | 2.4375 | 2 | [] | no_license | package com.walmart.model;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
@XmlRootElement
public class SeatHold {
private int id;
private StatusEnum status;
private Customer customer;
priva... | true |
9f72e1244cd034e83177be6869b23b179fdd654a | Java | fujiangwei/springboot-learn | /springboot-pagehelper/src/main/java/com/example/springbootpagehelper/service/UserService.java | UTF-8 | 456 | 1.945313 | 2 | [
"MIT"
] | permissive | package com.example.springbootpagehelper.service;
import com.example.springbootpagehelper.domain.User;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import java.util.List;
/**
* descripiton:
*
* @author: kinson(2219945910 @ qq.com)
* @date: 2019/1/31
* @time: 21:55
* @modifier:
* @... | true |
bc87551dbb1cfd7e6ed65299983076d1a5bb2c9e | Java | jsnider3/Workspace | /src/test/java/com/joshuasnider/workspace/Esovector/Esotest.java | UTF-8 | 2,217 | 3.03125 | 3 | [] | no_license | import static org.junit.Assert.*;
import org.junit.Test;
public class Esotest {
@Test
public void firstFour() {
Esovector eso = new Esovector();
eso.append(1);
eso.append(2);
eso.append(3);
eso.append(4);
int[] ls = eso.asArray();
assertTrue(ls[0] == 1);
assertTrue(ls[1] == 2);
... | true |
9d54acb7bd9bf3c0a784dfc68fbd1eb6a10bc5bb | Java | radumirea/ParkingManager | /Services/src/main/java/services/ServerInterface.java | UTF-8 | 1,469 | 2.375 | 2 | [] | no_license | package services;
import domain.*;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.time.LocalDate;
import java.util.Collection;
public interface ServerInterface extends Remote {
Collection<Site> getSites() throws RemoteException;
User login(String username, String password, Observer ob... | true |
77fd7e3268cfc5813ebd7c54457fcbcc0e82ee08 | Java | wallyfaye/rotate-matrix | /_Demo.java | UTF-8 | 481 | 2.96875 | 3 | [] | no_license | class _Demo {
public static void main(String[] args){
String error_message = "You must enter a number from 1 - 8";
if(args.length != 1){
System.out.println(error_message);
System.exit(0);
}
int matrix_size = Integer.parseInt(args[0]);
if(matrix_size > 8 || matrix_size < 1){
System.out.println... | true |
e0baeba169c304f4522a186c4cd6ac14761f5554 | Java | Wcamaly/MiCRM_Module_3 | /app/src/main/java/com/next/micrm_module_3/presenter/interfaces/CommerceInteractor.java | UTF-8 | 739 | 2.171875 | 2 | [] | no_license | package com.next.micrm_module_3.presenter.interfaces;
import com.next.micrm_module_3.model.Organization;
import com.next.micrm_module_3.model.People;
import com.next.micrm_module_3.model.interfaces.Entidad;
/**
* Created by Wally1 on 11/06/2016.
*/
public interface CommerceInteractor
{
interface onCommerce{
... | true |
0b9895f950a0807b58cf4023e3230aae5fa3e7b7 | Java | sureshsarvey/SpringBoot | /ShoppingApp/src/main/java/com/example/demo/vo/Order.java | UTF-8 | 1,120 | 2.171875 | 2 | [] | no_license | package com.example.demo.vo;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persis... | true |
9295303b4494e44510ffb3278b6a0fe23c3e03b4 | Java | immzz/hatrick | /HaTrick/src/com/hatrick/test/GetAvatarNames.java | UTF-8 | 1,288 | 2.75 | 3 | [] | no_license | package com.hatrick.test;
import java.io.File;
import com.hatrick.graphic.Avatar;
public class GetAvatarNames {
public static void main(String [] args){
File dir = new File("res/game/graphic/avatars");
File [] files = dir.listFiles();
int i = -1;
for(File file : files){
String name = file.getName().subst... | true |
fda8886ffec27381c4f6c68116916ae90b59bacc | Java | thejinxters/GeoPerception | /storm/topologies/TwitterTopStart/src/com/geoperception/spouts/BasicTwitterSpout.java | UTF-8 | 4,061 | 2.265625 | 2 | [] | no_license | package com.geoperception.spouts;
import java.util.Map;
import java.util.concurrent.LinkedBlockingQueue;
import twitter4j.FilterQuery;
import twitter4j.StallWarning;
import twitter4j.Status;
import twitter4j.StatusDeletionNotice;
import twitter4j.StatusListener;
import twitter4j.TwitterStream;
import twitter4j.Twitter... | true |
974e28075f6b3e52cfa2c30032c724d83da4683f | Java | zbbfufu/grisbigraphs-kenai | /gg.db.datamodel/src/gg/db/datamodel/Installer.java | UTF-8 | 2,887 | 2.328125 | 2 | [] | no_license | /*
* Installer.java
*
* Copyright (C) 2009 Francois Duchemin
*
* This file is part of GrisbiGraphs.
*
* GrisbiGraphs 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 Foundation; either version 2 of the License, or... | true |
af4dfa50c1d88f7223ba98dd9c76599d01a84cb2 | Java | Muskotti/BirdsVoyage | /core/src/fi/tamk/tiko/highscoreScreen.java | UTF-8 | 14,115 | 2.546875 | 3 | [] | no_license | package fi.tamk.tiko;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.math.Vector3;
/**
* class for the high score screen
*
* @author Toni Vänttinen and Jimi... | true |
d00330758dd3384ed374246cd7c349a7bd5883c2 | Java | zyf19990903/shixun1 | /workfiles/Adnimistration/src/main/java/com/zhengyuanfang/adnimistration/controller/AdministratorController.java | UTF-8 | 2,343 | 1.984375 | 2 | [
"Apache-2.0"
] | permissive | package com.zhengyuanfang.adnimistration.controller;
import com.zhengyuanfang.adnimistration.dto.in.*;
import com.zhengyuanfang.adnimistration.dto.out.AdministratorGetProfileOutDTO;
import com.zhengyuanfang.adnimistration.dto.out.AdministratorListOutDTO;
import com.zhengyuanfang.adnimistration.dto.out.AdministratorSho... | true |
1ef9df71456b8083e754599875f8876ef3635c39 | Java | Danny02/WanderrouteJS | /WebTerrainGenerator/src/main/java/wanderroutejs/imageprocessing/srtm/SRTMImageReader.java | UTF-8 | 5,151 | 2.21875 | 2 | [] | no_license | /*
* Copyright (C) 2012 daniel
*
* 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 Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed... | true |
c129b991f7254482e851255b63b4f033432b9650 | Java | benjaminkomen/Galgje | /src/game/main/Helper.java | UTF-8 | 685 | 3.453125 | 3 | [] | no_license | package game.main;
import java.util.Scanner;
/**
* Some helper functionality for user interaction.
*/
public class Helper {
private Helper() {
// intentionally private, this class has only static members
}
// Create a Scanner object, to get keyboard input.
private static Scanner scanner = ... | true |
c404c2ee370f5c95c51955442ba44f1068294af6 | Java | chongbo2013/My-AppLock | /src/com/lewa/app/lock/ConfirmLockPassword.java | UTF-8 | 10,330 | 1.71875 | 2 | [] | no_license | /*
* Copyright (C) 2010 The Android Open Source Project
*
* 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 |
bf65bdd202cc2666c4dbd1ceb0efa2520e89c651 | Java | EBISPOT/OLS | /ols-web/src/main/java/uk/ac/ebi/spot/ols/config/WebConfig.java | UTF-8 | 1,974 | 2 | 2 | [
"Apache-2.0"
] | permissive | package uk.ac.ebi.spot.ols.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.I... | true |
cd294fb1924b5ac3925fb1b999021ba474d1cf36 | Java | dineshmalik99/exercises | /restservice/src/main/java/com/dinesh/restservice/user/UserDao.java | UTF-8 | 1,146 | 2.59375 | 3 | [] | no_license | package com.dinesh.restservice.user;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.stereotype.Component;
@Component
public class UserDao {
private static List<User> users = new ArrayList<>();
private static int countUser =0;
static{
users.add(new User(+... | true |
82317c1b4688517c3ae270daf2e74ce3bf578f6b | Java | joajar/adventOfCode2019 | /src/main/java/pl/joajar/aoc2019/solutions/Day02.java | UTF-8 | 2,352 | 3.421875 | 3 | [] | no_license | package pl.joajar.aoc2019.solutions;
import java.io.*;
import java.util.Arrays;
public class Day02 {
public static int part1result(){
return calculateFirstInteger(12, 2);
}
public static int part2result() {
int minValue = 0, maxValue = 99, noun = minValue-1, verb = minValue, desiredResult... | true |
86cf61d8b8c0fa0745d4db683f16b88aaab77791 | Java | MananBVP/java | /class 5/src/character.java | UTF-8 | 2,137 | 3.421875 | 3 | [] | no_license | import java.util.Scanner;
public class character {
public static void main(String[] args) {
Scanner scn=new Scanner(System.in);
// System.out.println("Enter a character");
// char ch=scn.nextLine().charAt(0);
// if(ch>='A' & ch<='Z') {
// System.out.print("upper case");
// }
// else if(ch>='a' & ch<='z') {
... | true |
30bf55c21e490fee68883258ad427596921d6925 | Java | maxim-kornienko/kattis | /kattis-java/src/main/java/Pripreme.java | UTF-8 | 782 | 3.234375 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
/**
* https://open.kattis.com/problems/pripreme
*/
public class Pripreme {
public static void main(String[] args) {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in), 1024 * 1024);
Sc... | true |
9e09c1443e8753c217cb9ce6faae1a8452f4c09c | Java | 18236905854/XiKouShangCheng | /app/src/main/java/com/xk/mall/model/impl/ManyBuyViewImpl.java | UTF-8 | 1,166 | 1.9375 | 2 | [] | no_license | package com.xk.mall.model.impl;
import com.xk.mall.base.BaseModel;
import com.xk.mall.base.BaseViewListener;
import com.xk.mall.model.entity.ActiveSectionBean;
import com.xk.mall.model.entity.ActiveSectionGoodsPageBean;
import com.xk.mall.model.entity.ManyCartsBean;
import com.xk.mall.model.entity.ManyPageBean;
import... | true |
f18d1952c75c8dde5345ca8f67f7a244d3006d1c | Java | BLTinAnnArbor/Android_ThumbDrive | /Module_10/AsyncRecycleView/app/src/main/java/com/ebookfrenzy/asyncrecycleview/Data.java | UTF-8 | 612 | 2.515625 | 3 | [] | no_license | package com.ebookfrenzy.asyncrecycleview;
import android.util.Log;
import java.util.ArrayList;
public class Data {
public static final String TAG ="Data";
public static ArrayList<String> nameList = new ArrayList<>();
public static ArrayList<Integer> timeList = new ArrayList<>();
public static void... | true |
30f40c82b734805b35d3c7a95ea98559d61d2482 | Java | fossabot/daml-on-sawtooth | /sawtooth-daml-common/src/main/java/com/blockchaintp/sawtooth/daml/util/EventConstants.java | UTF-8 | 1,621 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | /* Copyright 2019 Blockchain Technology Partners
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 |
5055f0827f8d2e2691ac18ad42f7a69156248122 | Java | IceCruelStuff/badlion-src | /org/apache/logging/log4j/ThreadContext.java | UTF-8 | 6,335 | 1.960938 | 2 | [
"NAIST-2003",
"LicenseRef-scancode-unicode",
"ICU",
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | package org.apache.logging.log4j;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.ap... | true |
9adef710def9d71246474c5669592e49b5236ca4 | Java | huangjinping/androidSineNew | /common/src/main/java/com/jaydenxiao/common/view/articlebase/IBaseArticleLayout.java | UTF-8 | 428 | 1.804688 | 2 | [] | no_license | package com.jaydenxiao.common.view.articlebase;
/**
*
* @Title: ArticleDetailsLayout.java
* @Package hbyc.china.medical.view.modules.home.article
* @ClassName: BaseArticleLayout
* @Description: 文章详情Layout
* @author jiahongfei jiahongfeinew@163.com
* @date 2015-3-4 上午10:38:47
* @version V1.0.0
*/
public inter... | true |
62b5a2d0fcca5f5ad548a667176be8d7a5c23c6b | Java | prestosApps/adsbMonitor | /AdsbMonitor/app/src/main/java/com/prestos/adsbmonitor/components/IpAddressDialogFragment.java | UTF-8 | 3,105 | 2.59375 | 3 | [] | no_license | package com.prestos.adsbmonitor.components;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflat... | true |
a23f47cf3918163acba07262588bf80e2585407d | Java | ekzGuille/connection-factory-poc | /PROGRAMA JAVA/Ejercicio5AcesoADatos/src/model/utils/writer/XMLWriterTaxista.java | UTF-8 | 2,705 | 2.375 | 2 | [] | no_license | package model.utils.writer;
import java.io.File;
import java.util.ArrayList;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Transformer;
import javax.xml... | true |
8806cf3d12e2ef6ce34ae09730836671e1568f7d | Java | sunnyfnc/cayenne | /modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/codegen/CodeGeneratorControllerBase.java | UTF-8 | 8,990 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive | /*****************************************************************
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* ... | true |
6f2ba2a31898b653fb1f0e326aa0edd8f6bf291e | Java | Kukant/FIT4 | /IJA/ija/projekt/src/Enviroment/BlockIconType.java | UTF-8 | 176 | 1.703125 | 2 | [] | no_license | package Enviroment;
/**
* Enumeration of Graphical Icon types.
*/
public enum BlockIconType {
_const,
add,
sub,
mul,
root,
div,
pow,
result
} | true |
3f8a4493f849521409fbc5fd7101d1543058cf37 | Java | SUBRAHMANYA966/Banking_Application | /src/banking/Model.java | UTF-8 | 4,778 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package banking;
0
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
public class Model {
private String Name;
private String AccountNumber;
private String Balance;
private String Customerid;
private String Password... | true |
4ed29df2d9cabd3b2fce949bfadadf7ffe093948 | Java | srosenberg/datakernel | /async-streams/src/test/java/io/datakernel/stream/StreamRewiringTest.java | UTF-8 | 7,577 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2015 SoftIndex LLC.
*
* 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 ... | true |
ba20889564f06084c166767977903cad57eabcaf | Java | ArleneAta/android_Project | /main/java/com/example/androidproject/myCursorActivity.java | UTF-8 | 1,330 | 2.1875 | 2 | [] | no_license | package com.example.androidproject;
import android.content.Context;
import android.database.Cursor;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CursorAdapter;
impo... | true |
47637ab2dcc89a421361da27190f6efa7068ea53 | Java | hjshah142/SparqlQuery | /src/responseReader.java | UTF-8 | 3,350 | 2.40625 | 2 | [] | no_license |
import org.apache.jena.query.Query;
import org.apache.jena.query.QueryExecution;
import org.apache.jena.query.QueryExecutionFactory;
import org.apache.jena.query.QueryFactory;
import org.apache.jena.rdf.model.*;
import org.apache.jena.util.FileManager;
import org.apache.log4j.BasicConfigurator;
import java.io.*;
... | true |
94dbd61bed042d9841c3748b3599f47e5c2875f4 | Java | league-level4-student/level4-module1-raunak2007 | /src/_01_Custom_ArrayList/ArrayList.java | UTF-8 | 1,401 | 3.453125 | 3 | [] | no_license | package _01_Custom_ArrayList;
@SuppressWarnings("unchecked")
public class ArrayList <T>{
T[]arr;
public ArrayList() {
arr=(T[]) new Object[0];
}
public T get(int loc) throws IndexOutOfBoundsException {
return arr[loc];
}
public void add(T val) {
T[] duplArr=(T[]) new Object[arr.length+1];
for(int... | true |
ef34b61cdaf18b4760890fe1985623e1a40536e1 | Java | stursyn/greetgo.msoffice | /src/kz/greetgo/msoffice/xlsx/parse/SharedStrings.java | UTF-8 | 2,119 | 2.546875 | 3 | [] | no_license | package kz.greetgo.msoffice.xlsx.parse;
import java.io.File;
import java.io.FileOutputStream;
import java.io.PrintStream;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.charset.StandardCharsets;
public class SharedStrings {
private static final int... | true |
89a974151de670a800263a3b79f6853ca96f7ed3 | Java | waqasrehman/votingapp | /Vote 19.03.55/app/src/main/java/com/example/waqasur_rehman/vote/OptionClass.java | UTF-8 | 261 | 1.945313 | 2 | [] | no_license | package com.example.waqasur_rehman.vote;
/**
* Created by waqas on 17/08/2017.
*/
public class OptionClass {
String option;
boolean box;
OptionClass (String _option, boolean _box){
option = _option;
box=_box;
}
}
| true |
8be0def1f997e99ed4df3169565701ef07e86ec5 | Java | TraiW/PepperAdmin | /app/src/main/java/com/example/valentinwiart/pepperadmin/MovementAdapter.java | UTF-8 | 4,713 | 2.171875 | 2 | [
"MIT"
] | permissive | package com.example.valentinwiart.pepperadmin;
import android.content.Context;
import android.graphics.Color;
import android.os.StrictMode;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.... | true |
496e42ff29e0780a24d31d0044dc862c1f28c2a3 | Java | aaric/mytest-achieve | /springjdbc-achieve/src/main/java/com/github/aaric/achieve/springjdbc/UserRepositoryImpl.java | UTF-8 | 1,527 | 2.484375 | 2 | [] | no_license | package com.github.aaric.achieve.springjdbc;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* UserServiceImpl
*
* @author Aaric, created on 2017-05-26T10:24.
... | true |
02eaf7ce6162a0187ca7d789db394a72236a008b | Java | jukr3410/mobicquiz | /MobicQuiz/src/java/model/Levels.java | UTF-8 | 3,083 | 2.359375 | 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 model;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.... | true |
05341e5eaebdf3a5a99ed4d0304f7545a5716fe8 | Java | pranay-bh/symbiosis | /app/src/main/java/com/solvedunsolved/plantsymbiosis/Data/SymbiosisDB.java | UTF-8 | 6,890 | 2.484375 | 2 | [] | no_license | package com.solvedunsolved.plantsymbiosis.Data;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import androidx.annotation.Nullable;
import com.s... | true |
cc1abad6c34a38fc302b5aae2bfde47e55fe8586 | Java | HenryXi/spring-boot | /spring-boot-quick-start/src/main/java/com/henry/xi/quick/start/CurlExampleController.java | UTF-8 | 876 | 2.15625 | 2 | [] | no_license | package com.henry.xi.quick.start;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import java.io.IOException;
@Controller
@EnableAutoConfigurat... | true |
dc7c2d051521a91c67da34bd8431060f826f1a62 | Java | sdias-code/atividades-psg | /encontro08/java/URI1046.java | UTF-8 | 723 | 3.140625 | 3 | [] | no_license | package econtro08;
import java.util.Scanner;
public class URI1046 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int h1 = sc.nextInt();
int h2 = sc.nextInt();
int tempoDeJogo = 0;
if((h1 > h2) && (((24 - h1) + h2) >= 1) && (((24 - h1) + h2... | true |
bd49241cd7188df511387363e6577e00c3179c75 | Java | Dylan-Cox/Minesweeperish | /src/cs2410/assn8/view/Minesweeperish.java | UTF-8 | 8,766 | 2.84375 | 3 | [] | no_license | package cs2410.assn8.view;
import cs2410.assn8.control.Controller;
import javafx.application.Application;
import javafx.beans.binding.Bindings;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Alert;
import javafx.scene.input.MouseButton;
import ... | true |
bee30c658a965d24bd15b971b6d8c21e6c5f01a4 | Java | anand755/Leetcode | /src/si/basic/RightAngledTrianglePattern.java | UTF-8 | 1,151 | 3.671875 | 4 | [] | no_license | package si.basic;
import java.io.*;
public class RightAngledTrianglePattern {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.ou... | true |
82bd9f7e539687d9013659f39b66350c5f75d9df | Java | cjie888/opensource-research | /src/main/java/drools/RulesEngine.java | UTF-8 | 2,134 | 2.296875 | 2 | [] | no_license | package drools;
import java.io.InputStreamReader;
import java.io.Reader;
import java.util.Properties;
import org.drools.RuleBase;
import org.drools.RuleBaseConfiguration;
import org.drools.RuleBaseFactory;
import org.drools.WorkingMemory;
import org.drools.builder.KnowledgeBuilder;
import org.drools.builder.Knowledge... | true |
887a72abe45b35eb11cc35a3cf6cafe4313bd12c | Java | MonsieurVictor/57_Challenges | /src/main/java/com/stringTests/nonRepeatingChar/NonRepeatingChar.java | UTF-8 | 2,883 | 4.28125 | 4 | [] | no_license | package com.stringTests.nonRepeatingChar;
import java.util.Arrays;
/** Given a string and a number k, find the k’th non-repeating character in the string.
* Consider a large input string with lacs of characters and a small character set.
* How to find the character by only doing only one traversal of input string?
... | true |
730f918dda7c7773768c21ef5b3b523010e983fd | Java | zuodaoyong/Spark-scala | /Spark-java/src/main/java/com/spark/test/rdd/Test.java | UTF-8 | 1,376 | 2.15625 | 2 | [] | no_license | package com.spark.test.rdd;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.JavaSparkContext;
import org.apache.spark.api.java.function.Function;
import org.apache.spark.api.java.function.Function2;
import org.apache.spark.api.java.function.PairFunction;
im... | true |
a499a599af8afb4888171211a6355441817d9ea2 | Java | ranganathmeghana/Java_BackEnd_Projects | /JavaCertification/src/Random.java | UTF-8 | 140 | 2.15625 | 2 | [] | no_license | import java.util.ArrayList;
public class Random {
ArrayList<Integer> al=new ArrayList<Integer>();
public void dis(){
al.co
}
}
| true |
f0dfcd1bcad99f46660cc287cf2a9e22ee12bfce | Java | siddhant2002/CWC_30Days_Of_Code | /Number28.java | UTF-8 | 327 | 3.3125 | 3 | [] | no_license | import java.util.*;
public class Number28 {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n,s=0,i;
System.out.println("Enter number of terms");
n=sc.nextInt();
for(i=0;i<n;i++)
{
s=s+(int)(Math.pow((i+1),(n-i)));
}
System.out.println("The sum is "+s);
... | true |
1804adef73c86a4353be6c1a2e0935354e4667d5 | Java | VPolina93/Purchase | /src/CheckPrinter.java | UTF-8 | 2,582 | 2.9375 | 3 | [] | no_license | import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
public class CheckPrinter {
public static void print(ShoppingBasket basket) {
printTop();
printBody(basket);
printBottom(basket);
}
private static void printTop() {
DateTimeFormatter df = DateTimeFo... | true |
9f66ff611c9ee4d1dd19e1f05043bb529fdbf960 | Java | choommanee/SocialKit-vm3 | /app/src/main/java/co/aquario/socialkit/adapter/TimelinePagerAdapter.java | UTF-8 | 1,263 | 2.625 | 3 | [] | no_license | package co.aquario.socialkit.adapter;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import java.util.Locale;
public class TimelinePagerAdapter extends FragmentPagerAdapter {
public TimelinePagerAdapter(FragmentManager f... | true |
f73378fdc5f81ea7bbd2b2a7e7be4359ca541096 | Java | pjzmove/Smart_Audio_Test | /IoTControllerSDK/swagger2java/out/com/qualcomm/qti/iotcontrollersdk/allplay/resource/attributes/PlayStateAttr.java | UTF-8 | 8,147 | 2.1875 | 2 | [] | no_license | /**************************************************************************************************
* Copyright 2018 Qualcomm Technologies International, Ltd. *
**************************************************************************************************/
package com.qualco... | true |
252c37bfbbb74690cbb5277460e1a7f9113f1b4f | Java | linhongde/spring-cloud-demo | /mybatis-generator/src/main/java/com/hong/mapper/ClientdetailsMapper.java | UTF-8 | 928 | 1.890625 | 2 | [] | no_license | package com.hong.mapper;
import com.hong.entity.Clientdetails;
import com.hong.entity.ClientdetailsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface ClientdetailsMapper {
int countByExample(ClientdetailsExample example);
int deleteByExample(ClientdetailsExample exam... | true |
5664c2a975ae33d54f13084dd60bdee18b3ecde6 | Java | LXY-yu/WebTest | /LibraryMIS/src/com/servlet/B_UpdateServlet.java | WINDOWS-1252 | 2,464 | 2.140625 | 2 | [] | no_license | package com.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.bean.Book;
import com.dao.B_domain;
public c... | true |
6ccad251e5fb623988b9fc97d4a9186c1e908d8d | Java | epakhomov/aws-modernization-with-contrastsecurity | /WebGoat/webgoat-container/src/test/java/org/owasp/webgoat/plugins/PluginTestHelper.java | UTF-8 | 1,264 | 2.28125 | 2 | [
"MIT-0"
] | permissive | package org.owasp.webgoat.plugins;
import java.io.IOException;
import java.net.URISyntaxException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
public class PluginTestHelper {
private static Path tempDirectory;
public static Path createTmpDir() throws IOException {
... | true |
730c4312cf275337ac2651d53fc41ee068f1895a | Java | datahaki/owl | /src/main/java/ch/alpine/owl/bot/kl/Pennant.java | UTF-8 | 1,362 | 2.1875 | 2 | [] | no_license | // code by jph
package ch.alpine.owl.bot.kl;
import ch.alpine.tensor.RealScalar;
import ch.alpine.tensor.Tensor;
import ch.alpine.tensor.Tensors;
/* package */ enum Pennant {
/** 83 */
PUZZLE( //
Tensors.vector(0, 0, 0), //
// ---
Tensors.vector(1, 3, 0), //
Tensors.vector(1, 3, 1), //
... | true |
57304db85c07cc9ab235bbe477c4d3bcd311e59a | Java | Azure/azure-sdk-for-java | /sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsGetSupportInfoSamples.java | UTF-8 | 1,628 | 1.765625 | 2 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-or-later",
"CC0-1.0",
"BSD-3-Clause",
"UPL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
/** Samples for Firewalls GetSupportInfo. */
public final class FirewallsGetSupportInfoSamples ... | true |
085319ce1ee08b07e1a28a2b9af91eda796c7764 | Java | drogba2011/hmmzhtx_multi_spring_boot | /Spring_Boot_Jpa_Thymeleaf_Web/src/main/java/com/myylm/service/UserService.java | UTF-8 | 905 | 2.078125 | 2 | [] | no_license | package com.myylm.service;
import com.myylm.commons.web.response.PageResp;
import com.myylm.dto.request.UserDto;
import com.myylm.model.UserModel;
/**
* @author hmmzhtx
*/
public interface UserService {
/**
* 保存对象
* @param userModel
* @return UserModel
* */
UserModel saveUserModel(Use... | true |
d8433c446ad89f55928b1f83adb50be37b3775e4 | Java | 123ufo/SmartOkHttpUtilsProject | /smartokhttputils/src/main/java/com/ufo/smartokhppt/callback/DownloadCallback.java | UTF-8 | 2,763 | 2.53125 | 3 | [] | no_license | package com.ufo.smartokhppt.callback;
import android.os.Message;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import okhttp3.Call;
import okhttp3.Response;
/**
* Created by Administrator on 2016/5/21.
*/
public abstract class DownloadCallback extend... | true |
f7b17c04bf4eb2dcbc3352fa5de7b57c75aa67d8 | Java | gabriel-ruffo/Hospital-Transfer | /src/com/z2systems/schemas/event/RetrieveEventRegistrationStatsResponse.java | UTF-8 | 1,813 | 1.953125 | 2 | [] | no_license |
package com.z2systems.schemas.event;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import com.z2systems.schemas.common.AbstractResponse;
/**
* <p>Java class for RetrieveEventRegistrationStatsResponse complex type.
*
* ... | true |
f9935735f7816d0d20f1beb2038d1ced3eb9c9d9 | Java | ShwetaMK/microservices-app | /store-service/src/main/java/com/smk/store/model/Store.java | UTF-8 | 1,729 | 2.5 | 2 | [] | no_license | package com.smk.store.model;
import java.time.LocalDateTime;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.PrePersist;
import javax.persistence.PreUpdate;
import ... | true |
e2e691a4a5fac2732aab9d9b56d1f494778a4c04 | Java | sbgermanm/simpleRestClient | /src/main/java/client/RestPost.java | UTF-8 | 356 | 1.632813 | 2 | [] | no_license | package client;
import org.springframework.http.ResponseEntity;
import org.springframework.util.MultiValueMap;
import org.springframework.web.client.RestTemplate;
/**
* Created by sgerman on 14/02/2017.
*/
public interface RestPost {
ResponseEntity<Dato> getDatoResponseEntity(MultiValueMap<String, String> param... | true |
baed9ed49b245cb248b8dd7330463b6c892aa6bd | Java | TMRGZ/Practicas-Estructuras-de-Datos-UMA | /Java/Practica 5/src/dataStructures/heap/WBLeftistHeap.java | UTF-8 | 3,636 | 3.765625 | 4 | [] | no_license | /**
* @author Pepe Gallardo, Data Structures, Grado en Informática. UMA.
*
* Weigth Biased Leftist Heaps
*/
package dataStructures.heap;
/**
* Heap implemented using weight biased leftist heap-ordered binary trees.
* @param <T> Type of elements in heap.
*/
public class WBLeftistHeap<T extends Co... | true |
04fbb1b1e8cbb1995935dc3fa3b90061312016b2 | Java | jeff1GitHub/lottery | /src/main/java/com/sf/lottery/timer/PeriodTimer.java | UTF-8 | 7,561 | 2.453125 | 2 | [] | no_license | package com.sf.lottery.timer;
import java.math.BigDecimal;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springfra... | true |
89ddfc4db0bd59fa2f400253f23da405b619ee40 | Java | vparfonov/plugin-sample-wizard | /che-plugin-sample-wizard-ide/src/main/java/org/eclipse/che/plugin/sample/wizard/ide/action/NewXFileAction.java | UTF-8 | 2,725 | 1.726563 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2012-2016 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available ... | true |
df177b1c5397ff947e7f7717db8be426ee9c9f27 | Java | udovisdevoh/beeerppro | /src/modules/expoModule/entityDefinitions/Muret.java | UTF-8 | 2,843 | 2.40625 | 2 | [] | no_license | package modules.expoModule.entityDefinitions;
import java.util.Hashtable;
import java.util.Vector;
import modules.userRightModule.entityDefinitions.Groups;
import modules.userRightModule.entityDefinitions.User;
import newtonERP.common.Authentication;
import newtonERP.module.AbstractOrmEntity;
import newtonER... | true |
2f824661524fb07e19f0268e2dcf0c44bc6ad8f5 | Java | fleet-footed/The_project_of_actual_combat | /app/src/main/java/com/example/the_project_of_actual_combat/Iinterface/ITrunk.java | UTF-8 | 549 | 2.390625 | 2 | [] | no_license | package com.example.the_project_of_actual_combat.Iinterface;
/**
* 作者-->蜕变~成蝶
* 创建于-->2017/12/13
* 作用--> 里面使用内部类的方式存放 Model 和 View 层
*/
public class ITrunk {
/** Model */
public interface IWorkModel{
/* 需要什么操作进添加对应的方法 */
}
/**************************************************/
/** View... | true |
8f9e9b24e8beade8f260bff35e179eba0b59ca89 | Java | wilsonach/repositoriofinal | /practica/src/main/java/co/edu/cur/practica/managers/ManagerPersona.java | UTF-8 | 1,139 | 2.578125 | 3 | [] | no_license | package co.edu.cur.practica.managers;
import co.edu.cur.practica.daos.IPersonaDao;
import co.edu.cur.practica.daos.PersonaDao;
import co.edu.cur.practica.entidades.Persona;
public class ManagerPersona {
public boolean guardar(Persona pPersona) throws Exception {
if (pPersona != null && pPersona.getEdad... | true |
9656492013d8088cefbbffec0d34ef93dd457d76 | Java | iantal/AndroidPermissions | /apks/test_apks/insb/source/com/google/android/gms/internal/zzpz.java | UTF-8 | 11,977 | 2 | 2 | [
"Apache-2.0"
] | permissive | package com.google.android.gms.internal;
import com.google.android.gms.tagmanager.zzbg;
import com.google.android.gms.tagmanager.zzdf;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.json.JSONArray;
import org.json.JSONException;
... | true |
27fb519894d783c70a58288c4c3e66b47b5de2c6 | Java | y277an/java-you-need-know | /spring-ioc-mvc/src/main/java/com/xiaohui/mvc/HandlerMapping.java | UTF-8 | 1,149 | 2.640625 | 3 | [
"MIT"
] | permissive | package com.xiaohui.mvc;
import java.lang.reflect.Method;
import java.util.regex.Pattern;
public class HandlerMapping {
// 调用对应的具体controller对象
private Object controller;
// 和url匹配的方法
private Method method;
// 对应RequestMapping的url正则
private Pattern pattern;
public HandlerMapping(Object... | true |
260a98aec26f622a03d798bbe2a0a14899d6f125 | Java | ayushiML/LeetCode-Problems | /LongestMontainInArray.java | UTF-8 | 660 | 3.5 | 4 | [] | no_license | public class LongestMontainInArray {
public static void main(String[] args) {
int[] arr = {2,1,4,7,3,2,5};
System.out.println(longestMountain(arr));
}
public static int longestMountain(int[] arr) {
int longestmontain= 0;
for(int i = 1 ; i < arr.length-1; i++)
{
if(arr[i] > arr[i-1] && arr[i] > ... | true |
f79f44d71f0982b4a560f14b47c23d7acecf6cb6 | Java | dovikn/inegotiate-android | /src/com/amazonaws/javax/xml/stream/StaxEntityResolverWrapper.java | UTF-8 | 1,728 | 2.0625 | 2 | [] | no_license | package com.amazonaws.javax.xml.stream;
import com.amazonaws.javax.xml.stream.xerces.xni.XMLResourceIdentifier;
import com.amazonaws.javax.xml.stream.xerces.xni.XNIException;
import com.amazonaws.javax.xml.stream.xerces.xni.parser.XMLInputSource;
import java.io.IOException;
import java.io.InputStream;
public class St... | true |
22ade25756106330ae1188f669adc4528beddd3f | Java | luistbrandao/desafio-pitang | /Desafio-Pitang/src/main/java/manageBean/Bean.java | UTF-8 | 766 | 2.234375 | 2 | [] | no_license | package manageBean;
import java.util.List;
import model.loginBean;
import model.Telefone;
import model.Usuario;
import repository.UsuarioRepository;
public class bean {
private Usuario usuario;
private Telefone telefone;
private List<Usuario> usuarios;
public void cadastrar(Usuario usuario)... | true |
ea314a05a3a7862343f5615e916d9a30de8ecd56 | Java | GiovanniPucariello/TeevraCore | /Development3.0/TeevraServer/extensions/clearinghouse/generic/message/fixml/src/main/java/com/headstrong/fusion/services/message/processor/fixml/impl/NamespaceException.java | UTF-8 | 1,609 | 1.992188 | 2 | [] | no_license | /*
* The information in this document is subject to change without notice and
* does not represent a commitment by Headstrong Corporation. The software
* and/or databases described in this document are furnished under a license
* agreement and may be used or copied only in accordance with the terms of
* the ag... | true |
100e1c3aac9c860d591c9cd4a074b8d2c3887b63 | Java | CMPUT301F17T20/Habitivity | /app/src/main/java/main/habitivity/activities/RequestList.java | UTF-8 | 4,255 | 2.0625 | 2 | [
"MIT"
] | permissive | package main.habitivity.activities;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.LinearLayout... | true |
15ceb416367bd5a649f6719fea9caa16f4b9eec0 | Java | dannydo714/Driver-Record | /src/DannyDo-141-P1/Driver.java | UTF-8 | 6,665 | 3.484375 | 3 | [] | no_license | /*
* Danny Do
* CS141
* Project 1
* 4/27/18
*/
import java.util.Scanner;
import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
public class Driver {
private static final int CURRENTYEAR = 2018;
// Add method to read the temps file
public static ArrayList<R... | true |
fef0091bca4f1fe1e62e471bd840e6e6cec24985 | Java | fanqi1909/csreview | /leet-code/src/main/java/org/jace/cs/review/lc/search/p93/Solution.java | UTF-8 | 2,070 | 3.234375 | 3 | [] | no_license | package org.jace.cs.review.lc.search.p93;
import java.util.LinkedList;
import java.util.List;
public class Solution {
public List<String> restoreIpAddresses(String s) {
List<String> result = new LinkedList<>();
dfs(0, 3, s, new StringBuilder(), result);
return result;
}
private v... | true |
ec2cac0b526cdae5c4ee197f957f58b08d5b9fc8 | Java | M7CORE/Java_Basics | /InterfaceExample/src/interfaceexample/Relatable.java | UTF-8 | 799 | 2.875 | 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 interfaceexample;
/**
*
* @author kwhiting
*/
public interface Relatable
{
enum Result {GREATER_THAN, E... | true |
aba597fc020a8013330b5232f761da4043ca5d05 | Java | sarathvekomy/test | /vbooks-app/src/com/vekomy/vbooks/adapters/SalesReturnAdapter.java | UTF-8 | 9,812 | 2.171875 | 2 | [] | no_license | /**
* com.vekomy.vbooks.adapters.ProductsAdapter.java
*
* This is proprietary work of Vekomy Technologies. Any kind of copying or
* duplication is subject to Legal proceeding. All the rights on this work
* are reserved to Vekomy Technologies.
*
* Created on: 23-Jul-2013
*
* @author nkr
*
*
*/
package com.... | true |
fcb62918c96dfccb019a356ca8666b3f2cb14551 | Java | kyle-liu/springbootdemo | /springboot_study/src/main/java/com/kyle/Application.java | UTF-8 | 627 | 1.625 | 2 | [] | no_license | package com.kyle;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
/**
* Alipay.com Inc.
* Copyright (c) 2004-2015 All Ri... | true |
e1a305ee3e47abe00294f0914d7b0f62e19fd5ca | Java | Ryan7777777/SpacExplorer | /sig16_hhl36_SpaceExplorer/src/sig16_hhl36_SpaceExplorer/LargeMedPack.java | UTF-8 | 497 | 2.734375 | 3 | [] | no_license | package sig16_hhl36_SpaceExplorer;
/**
* Implemented class inherited by Medical_Item class.
* A large med pack that can be used to increase health of crew member at a price.
*/
public class LargeMedPack extends MedicalItem {
private static double price = 5.0;
private static int addHealth = 50;
private ... | true |
4c60f73b51b50462cbd246801f45cd7b1a002320 | Java | raika11/- | /moka-core/moka-core-tps/src/main/java/jmnet/moka/core/tps/mvc/tour/dto/TourApplySearchDTO.java | UTF-8 | 2,072 | 2.015625 | 2 | [] | no_license | /*
* Copyright (c) 2017 Joongang Ilbo, Inc. All rights reserved.
*/
package jmnet.moka.core.tps.mvc.tour.dto;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import jmnet.moka.common.data.sup... | true |
527ae80cdeb73214bf40271a0020b14495958478 | Java | PegaChucho/Java-University | /programacion/ModificadoresAcceso/src/paquete1/TestModificadoresAcceso.java | UTF-8 | 367 | 1.921875 | 2 | [] | no_license | package paquete1;
import paquete1.Clase1;
import paquete1.ClaseHija;
public class TestModificadoresAcceso {
public static void main(String[] args) {
Clase1 clase1 = new Clase1("Cadena");
System.out.println("clase1 = " + clase1.getAtributoprivado());
// clase1.atributoDefault = "Kagabonga";... | true |
ca5a06b2587f12609cd1f9e0c4afe901f4db77bf | Java | choleece/zheng-boot | /zheng-boot-upms/zheng-boot-upms-client/src/main/java/cn/choleece/zhengboot/upms/client/shiro/filter/UpmsSessionForceLogoutFilter.java | UTF-8 | 1,217 | 2.203125 | 2 | [] | no_license | package cn.choleece.zhengboot.upms.client.shiro.filter;
import org.apache.shiro.session.Session;
import org.apache.shiro.web.filter.AccessControlFilter;
import org.apache.shiro.web.util.WebUtils;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
/**
* @author choleece
* @description: 强制退出会... | true |
5ab2e0e558bd48e8acf72487e92091d29059827d | Java | lycfr/lq | /app/src/main/java/com/google/android/gms/cast/zzf.java | UTF-8 | 1,027 | 1.75 | 2 | [] | no_license | package com.google.android.gms.cast;
import android.os.RemoteException;
import com.google.android.gms.cast.Cast;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.internal.zzaxx;
import com.google.android.gms.internal.zzayi;
import ... | true |
b6dd80dd34f8a5f5edbda7a18a2139291ce5f9eb | Java | Ameg-yag/TLS-Attacker | /TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/protocol/message/PskServerKeyExchangeMessage.java | UTF-8 | 4,062 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | /**
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
*
* Copyright 2014-2017 Ruhr University Bochum / Hackmanit GmbH
*
* Licensed under Apache License 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*/
package de.rub.nds.tlsattacker.core.protocol.message;
import de.rub.nds.modifiablevariable.Ho... | true |
1b16d5c9096f44f620350c2b1fcf0d8515d0ad32 | Java | esa1992/priorityQueue | /src/com/myCompany/Main.java | UTF-8 | 1,716 | 3.21875 | 3 | [] | no_license | package com.myCompany;
import java.util.PriorityQueue;
public class Main {
public static void main(String[] args) {
PriorityQueue<Ticket> ticketCostPriorityQueue = new PriorityQueue<>(new CustomComporatorCost());
ticketCostPriorityQueue.add(new Ticket(100, true));
ticketCostPriorityQueue.... | true |
01a6d39af403677d2e9bf5db3ec780b96380a5f8 | Java | googleapis/google-api-java-client-services | /clients/google-api-services-sheets/v4/1.28.0/com/google/api/services/sheets/v4/model/TreemapChartColorScale.java | UTF-8 | 9,309 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | /*
* 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 writing, software distributed under t... | true |
29a5006c50a96d7baaa9fde8befba50a91b7c2b6 | Java | abocideQ/WEB | /app/src/main/java/com/comic/mario/ui/bean/ComicBean.java | UTF-8 | 865 | 2.0625 | 2 | [] | no_license | package com.comic.mario.ui.bean;
public class ComicBean {
private String link;
private String img;
private String title;
private String intro;
private String webName;
public String getWebName() {
return webName;
}
public void setWebName(String webName) {
this.webName ... | true |
ec0a5852aa8bd55eddd6322e8b060a25358d881d | Java | paramdnoid/cockpit | /app/src/main/java/org/aplatanao/billing/cockpit/models/LogEntry.java | UTF-8 | 723 | 2.359375 | 2 | [
"MIT"
] | permissive | package org.aplatanao.billing.cockpit.models;
public class LogEntry {
private String date;
private String level;
private String message;
public LogEntry(String date, String level, String message) {
this.date = date;
this.level = level;
this.message = message;
}
public ... | true |
c835f601c85269b3e2370c1acd25dcc6e969f915 | Java | worph/smillan | /main/process/src/test/java/com/smilan/test/domain/category/process/SearchCategoryTest.java | UTF-8 | 3,306 | 2 | 2 | [] | no_license | package com.smilan.test.domain.category.process;
import com.smilan.api.common.dto.Contexte;
import com.smilan.api.domain.category.Category;
import com.smilan.api.domain.category.CategoryManager;
import com.smilan.api.domain.category.CategoryManagerDTO;
import com.smilan.api.domain.category.builder.CategoryBuilder;
imp... | true |
fbc94cd74e3e55ff25648364af98c7670fff7a49 | Java | sognu/graph | /Vertex.java | UTF-8 | 1,696 | 3.828125 | 4 | [] | no_license | package assignGraphTopologicalSortBreadthFirstSearch;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
/**
* @author Liang Zhang and Chad Miller
*
*Class represents a vertex.
*/
public class Vertex {
// name of the vertex
private String name;
// collection of edges originating from th... | true |
2ad643b02fc0cfa60aae7a76c8642bd43adadf02 | Java | weistar/ProguardPlugin | /src/cn/zgy/proguard/form/PluginHeader.java | UTF-8 | 1,227 | 2.25 | 2 | [] | no_license | package cn.zgy.proguard.form;
import org.junit.Test;
import javax.swing.*;
import java.awt.*;
public class PluginHeader extends JPanel {
protected JLabel mClassSelect;
protected JLabel className;
protected JLabel mFieldInclude;
public PluginHeader() {
mClassSelect = new JLabel("classSelect");
mClassSelect.... | true |