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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
156969889ba0ca63b0f80786bc72023ed263de21 | Java | pkhachatrian/voicePlusPlus | /voicePlusPlus-sphinx4/src/main/java/voicePlusPlus/voicePlusPlus_sphinx4/App.java | UTF-8 | 9,118 | 2.96875 | 3 | [] | no_license | package voicePlusPlus.voicePlusPlus_sphinx4;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashSet;
import org.junit.Test;
import static org.junit.Assert.*;
public class App {
public static ArrayList<APICommand> commands = ... | true |
0a10c0a0b6d495efcddfd23e2768a6590c72634f | Java | klezovics/java-sketchbook | /src/test/java/com/klezovich/demo/unittest/PiSupplierTest.java | UTF-8 | 352 | 2.203125 | 2 | [] | no_license | package com.klezovich.demo.unittest;
import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.closeTo;
class PiSupplierTest {
private final PiSupplier supplier = new PiSupplier();
@Test
void get() {
assertThat(supplier.get(), cl... | true |
56a4c377da8dc4550a67fd926944973874948f8f | Java | fanshen2010/P2P_lending | /p2p_all/p2p_mgrweb/src/main/java/cn/com/p2p/mgr/action/content/AdvertisingAction.java | UTF-8 | 4,509 | 2.078125 | 2 | [] | no_license | package cn.com.p2p.mgr.action.content;
import java.util.List;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;
import org.json.JSONExceptio... | true |
1b015cb40276aa857328bb8361e3159179cfe47c | Java | HemersonGH/sigesdp | /backend/app/serializers/DateSerializer.java | UTF-8 | 897 | 2.328125 | 2 | [] | no_license | package serializers;
import java.lang.reflect.Type;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.google.gson.JsonElement;
import com.google.gson.JsonPrimitive;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer;
import flexjson.transformer.DateTr... | true |
cc65ac7eec6176437b8a244c79a93700bfe9f04e | Java | dgtyPedro/Appify | /Appify/app/src/main/java/com/spotify_api_example/MainActivity.java | UTF-8 | 2,650 | 2.140625 | 2 | [] | no_license | package com.spotify_api_example;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.spotify.sdk.a... | true |
5b36efe0c134746133f5bc04405c3cfec9bf54f5 | Java | chunbolin/leetcode | /src/ALi3.java | UTF-8 | 1,150 | 3.28125 | 3 | [] | no_license | import java.util.*;
public class ALi3 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long[] nums = new long[n];
long[] l = new long[n];
long[] r = new long[n];
for (int i = 0; i < n; i++) {
nums[i] =... | true |
87b9aeb1127ad0c15b5d102c740cd40178f38075 | Java | eo339912/yedam2020 | /HelloWorld/src/com/yedam/ljw/classes/PeopleExample.java | UTF-8 | 665 | 3.3125 | 3 | [] | no_license | package com.yedam.ljw.classes;
public class PeopleExample {
public static void main(String[] args) {
People pl2 = new People("Park");
System.out.println(pl2.name);
System.out.println(pl2.age);
People pl = new People("Park", 20, 170);
System.out.println(pl.name);
System.out.println(pl.age);
... | true |
c5b405e73987c648c5b5b00378efd66e3a076e3e | Java | onap/vfc-nfvo-driver-vnfm-gvnfm | /juju/juju-vnfmadapter/Juju-vnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/gvnfm/jujuvnfmadapter/service/rest/VnfResourceRoa.java | UTF-8 | 3,609 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 Huawei Technologies Co., Ltd.
*
* 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... | true |
80c24d780631e5b7955dd864511c48e102eabc6b | Java | tyward/item | /src/main/java/edu/columbia/tjw/item/algo/DoubleVector.java | UTF-8 | 12,311 | 3.296875 | 3 | [
"Apache-2.0"
] | permissive | package edu.columbia.tjw.item.algo;
import org.apache.commons.math3.analysis.BivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction;
import java.io.ObjectStreamException;
import java.io.Serializable;
/**
* A read-only version of a double vector. This is useful where items might need to be pa... | true |
9727e7719d66e0e569f0739569667829ab5403c3 | Java | biolearning-stadius/rdkit | /Code/JavaWrappers/gmwrapper/src-test/org/RDKit/ScaffoldNetworkTests.java | UTF-8 | 1,433 | 2.171875 | 2 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
*
* Copyright (c) 2019 Greg Landrum and T5 Informatics GmbH
* All rights reserved.
*
* This file is part of the RDKit.
* The contents are covered by the terms of the BSD license
* which is included in the file license.txt, found at the root
* of the RDKit source tree.
*/
package org.RDKit;
import s... | true |
df143d876d53745dd0e1b85aa16a4b325981fba3 | Java | ych147142/webManager | /src/main/java/com/neuedu/controller/DoLoginServlet.java | UTF-8 | 1,755 | 2.46875 | 2 | [] | no_license | package com.neuedu.controller;
import com.neuedu.pojo.User;
import com.neuedu.service.IUserService;
import com.neuedu.service.UserServiceImpl;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.*;
import java.io.IOException;
@WebServlet("/dologin")
public cl... | true |
abe381451186173e89281754bb2aa34cdd8bc8fa | Java | maoyueqiang/neuedu1-project-business-interface | /src/main/java/com/neuedu/controller/portal/ProductController.java | UTF-8 | 2,160 | 2.09375 | 2 | [] | no_license | package com.neuedu.controller.portal;
import com.neuedu.common.ServerResponse;
import com.neuedu.service.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.... | true |
87457e6898c8d832141b242d43eb2921ef551345 | Java | ch93/baiduMap | /src/com/ch/dbscan/Point.java | UTF-8 | 2,244 | 2.28125 | 2 | [] | no_license | package com.ch.dbscan;
import java.sql.Timestamp;
import org.json.JSONException;
import org.json.JSONObject;
import com.ch.bean.StayPoint;
public class Point extends StayPoint {
private double x;
private double y;
//簇号
private int clusterID;
private boolean isKey;
private boolean isClassed;
/**
* POI类型
*... | true |
134e54428c76f033c2289bf67137641d9317caad | Java | wengyingjian/kylin-archetype-lead | /artic.test-service/src/main/java/com/a/b/c/service/impl/UserServiceImpl.java | UTF-8 | 1,689 | 2.140625 | 2 | [] | no_license | package com.a.b.c.service.impl;
import com.wengyingjian.kylin.common.model.Result;
import com.wengyingjian.kylin.common.utils.ResultUtil;
import com.wengyingjian.kylin.rpc.server.annotation.RemoteService;
import com.wengyingjian.kylin.rpc.server.annotation.ServiceType;
import com.a.b.c.common.enums.UserType;
import co... | true |
fd173f590da4d2bdef7077a84a98e3ed66c9fefa | Java | rosoareslv/SED99 | /java/sonarqube/2018/12/CeWorkerFactoryImpl.java | UTF-8 | 2,780 | 1.789063 | 2 | [] | no_license | /*
* SonarQube
* Copyright (C) 2009-2018 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... | true |
9e91b79de4ff2dda0a9d5dc6b3656a392c934b98 | Java | BJCreslin/WOQ | /src/Objects/WOQCoord.java | UTF-8 | 292 | 2.09375 | 2 | [] | no_license | package Objects;
public class WOQCoord {
long xCoord;
public long getxCoord() {
return xCoord;
}
public long getyCoord() {
return yCoord;
}
long yCoord;
WOQCoord startCoord(){
xCoord=2;
yCoord=2;
return this;
}
}
| true |
04da813695d4220e33b69f095a00f9af973bbb50 | Java | JoinQ/MyBox | /Box/app/src/main/java/com/box/widget/RankViewHolder.java | UTF-8 | 1,971 | 2.21875 | 2 | [] | no_license | package com.box.widget;
import android.graphics.Color;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.box.box.R;
import com.box.mode.QueryInfoThing;
import com.box.mode.RankThing;
public class RankViewHolder extends BaseViewHolder<RankThing, NullPointerExce... | true |
fe22846209f5c885958488e7eda5e81c836d3339 | Java | zed-technology/TagContentExtractor | /src/main/java/Solution.java | UTF-8 | 1,897 | 3.546875 | 4 | [] | no_license | import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/* Solution assumes we can't have the symbol "<" as text between tags */
public class Solution{
public static void main(String[] args){
Scanner in = new Scanner(System.in);
int testCases = Integer.parseInt(i... | true |
41df7051e213ccab28375e68aee06d8a1b33e75b | Java | ilovechai/egeria | /open-metadata-implementation/access-services/analytics-modeling/analytics-modeling-api/src/main/java/org/odpi/openmetadata/accessservices/analyticsmodeling/metadata/MetadataBase.java | UTF-8 | 591 | 2.21875 | 2 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | /* SPDX-License-Identifier: Apache 2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.accessservices.analyticsmodeling.metadata;
/**
* Base class for metadata beans retrieved from the metadata repository.
*/
public class MetadataBase {
String guid;
/**
* Get reposi... | true |
3621a48e05501318e81f5ee8163b3249f719f40a | Java | markeNick/yxx | /yunxiaoxian/src/main/java/com/yxx/websocket/WebSocketConfig.java | UTF-8 | 1,719 | 2.1875 | 2 | [
"MIT"
] | permissive | package com.yxx.websocket;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframe... | true |
6e96d5c67685892d1d4c269ffed0bfe368c761de | Java | DGovi/soen343house | /src/Tests/ModifySimulationParametersTest.java | UTF-8 | 2,379 | 2.71875 | 3 | [] | no_license | package Tests;
import Controller.Simulation;
import org.json.JSONException;
import org.junit.jupiter.api.Test;
import java.io.File;
import java.io.IOException;
import java.sql.Time;
import java.time.LocalTime;
import static org.junit.jupiter.api.Assertions.*;
class ModifySimulationParametersTest {
private stati... | true |
b0ad253daccd7f10043f75a6e0b5a77f202c61c9 | Java | SciGaP/seagrid-rich-client | /src/main/java/cct/gaussian/ui/SimpleG03EditorPanel.java | UTF-8 | 18,304 | 1.875 | 2 | [
"Apache-2.0"
] | permissive | /* ***** BEGIN LICENSE BLOCK *****
Version: Apache 2.0/GPL 3.0/LGPL 3.0
CCT - Computational Chemistry Tools
Jamberoo - Java Molecules Editor
Copyright 2008-2015 Dr. Vladislav Vasilyev
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with... | true |
32dad87791a1195158df4229f96008060e24afc3 | Java | viveksharma8506/Java-8-features | /src/main/java/com/java8/stearms/StreamsFeatures.java | UTF-8 | 9,835 | 3.71875 | 4 | [] | no_license | package com.java8.stearms;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
import java.util.OptionalInt;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import java.util.stream.Stream;
public class StreamsFeatures {
public static void main(String [] args){
... | true |
ce0731dd1fc2c394cc71043446c28d9ebed3e0d8 | Java | servicecatalog/development | /oscm-portal-webtests/javasrc/org/oscm/webtest/setup/ServiceActivationTask.java | UTF-8 | 5,966 | 2.046875 | 2 | [
"Apache-2.0",
"EPL-1.0",
"BSD-3-Clause",
"W3C",
"LGPL-3.0-only",
"CPL-1.0",
"CDDL-1.1",
"BSD-2-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.1-or-later",
"CDDL-1.0",
"Apache-1.1",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"W3C-19980720",
"LGPL-2.1-only",
"... | permissive | /*******************************************************************************
*
* Copyright FUJITSU LIMITED 2017
*
* Author: Dirk Bernsau
* ... | true |
bb50e1c10bc22e0fccaacbede80b4bea93d623a5 | Java | tjniemis/tietokantasovellus | /src/main/java/fi/helsinki/cs/controller/AdminController.java | UTF-8 | 2,763 | 2.640625 | 3 | [] | no_license | package fi.helsinki.cs.controller;
import fi.helsinki.cs.dao.JobDao;
import fi.helsinki.cs.dao.UserDao;
import fi.helsinki.cs.model.Job;
import fi.helsinki.cs.model.User;
import java.security.Principal;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfram... | true |
34ed7edef423d2cb8c495b0d9bd7cb320ca050a8 | Java | 1005419213zxf/leetcode | /src/main/java/com/litb/bid/component/adw/SearchAdwordsMetricProvider.java | UTF-8 | 5,251 | 2.078125 | 2 | [] | no_license | package com.litb.bid.component.adw;
import com.litb.bid.DirDef;
import com.litb.adw.lib.enums.AdwordsChannel;
import com.litb.adw.lib.enums.AdwordsDevice;
import com.litb.adw.lib.enums.AdwordsReportType;
import com.litb.adw.lib.exception.AdwordsApiException;
import com.litb.adw.lib.exception.AdwordsRemoteException;
im... | true |
d08d1ad5049c10d16c8a7678b259bcea4a15486f | Java | greeneley/STI2020 | /3ASTI/Object-oriented programming/Reviser/workspace2/CoffreAndCo/src/valuables/Gemstone.java | UTF-8 | 1,471 | 2.90625 | 3 | [] | no_license | package valuables;
import genericSafes.GenericSafe;
import genericSafes.IGemstore;
import safes.ToSale;
/**
* @author pascal
* @version 1.0
*/
public abstract class Gemstone implements ToSale, IGemstore {
/**
* @uml.property name="value"
*/
protected double value;
/**
* @uml.property name="weight"
... | true |
7a1dc0d2e7841003a2a4a4de1e4cdf8c77e84810 | Java | whatafree/JCoffee | /benchmark/bigclonebenchdata_partial/7087108.java | UTF-8 | 556 | 2.28125 | 2 | [] | no_license |
class c7087108 {
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
String path = request.getPathTranslated().substring(0, request.getPathTranslated().length() - request.getPathInfo().length()) + request.getServletPath() + request.getPathInf... | true |
3b369840ae7270098d061b8c0f5d022aa3352fa0 | Java | HusseinHroub/ClientUDPRemake | /app/src/main/java/com/example/clientudpremake/commands/senders/WebSocketSenderButton.java | UTF-8 | 696 | 2.234375 | 2 | [] | no_license | package com.example.clientudpremake.commands.senders;
import android.app.Activity;
import com.example.clientudpremake.commands.Command;
import com.example.clientudpremake.utilites.ThreadsUtilty;
import com.example.clientudpremake.workers.websocket.WebSocketManager;
import com.google.gson.Gson;
import lombok.AllArgsC... | true |
095471d09b3f0b9530c33aca629db8dace2c81e1 | Java | RobertBrumbaugh/VendingMachineCapstone1 | /java/src/test/java/com/techelevator/GumTest.java | UTF-8 | 492 | 2.46875 | 2 | [] | no_license | package com.techelevator;
import static org.junit.Assert.*;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class GumTest {
Gum gumTest;
@Before
public void setup() {
gumTest = new Gum("D1", "U-Chews", "3.05", "Gum", 5);
}
@Test
public void test_01_Checking_Price() {
Ass... | true |
e0767dd30d463b7de50c50dd263571764625591c | Java | sonsangjun/java_example | /_20150422_Socket_II/src/_20150422_Socket_II/ServerExample.java | UTF-8 | 548 | 3 | 3 | [] | no_license | package _20150422_Socket_II;
import java.net.ServerSocket;
import java.net.Socket;
public class ServerExample {
public void mainServer()
{
ServerSocket serverSocket = null;
System.out.println("서버시작");
try{
serverSocket = new ServerSocket(9000);
while(true)
{
Socket socket = serverSo... | true |
c617998620b9523f624494ea1d4aa632a6d8e9ef | Java | lospejos/xmldemo | /src/main/java/com/example/N1Node.java | UTF-8 | 1,056 | 2.34375 | 2 | [] | no_license | package com.example;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXm... | true |
525ca4e9d777d5ea3c90c359fec13e905dcddbd8 | Java | nagyist/marketcetera | /trunk/util/src/main/java/org/marketcetera/util/unicode/UnicodeOutputStreamWriter.java | UTF-8 | 9,554 | 2.75 | 3 | [
"Apache-2.0"
] | permissive | package org.marketcetera.util.unicode;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.Reader;
import java.io.Writer;
import org.marketcetera.util.misc.ClassVersion;
/**
* A variation of {@link OutputStreamWriter} that is BOM-aware. It can
* oper... | true |
eb7714bd3eee3bdea017b7943e9f1af19ca9f8bb | Java | fangheart/NiuKeTest | /src/SixFive/NK60PrinterTreeLayer/Solution.java | UTF-8 | 1,496 | 3.453125 | 3 | [] | no_license | package SixFive.NK60PrinterTreeLayer;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Queue;
/**
* Created by FangHeart on 2017/3/19.
*/
/*
题目描述
从上到下按层打印二叉树,同一层结点从左至右输出。每一层输出一行。
*/
class TreeNode {
int val = 0;
TreeNode left = null;
TreeNode right = null;
public TreeNode(... | true |
244bfb562538fa874dfe01ec391d780d3b72dd9c | Java | simonalford42/Everything | /MENSA/src/Jan16.java | UTF-8 | 2,024 | 3.953125 | 4 | [] | no_license | import java.util.Arrays;
public class Jan16 {
public static final String DESCRIPTION =
"Fill in the blanks with spelled-out numbers to make the"
+ " statement true.";
public final String text;
private final char[] letters;
private int[] numOfLetters;
static final String[] SPELLED_OUT_NUMBERS = {"ZERO", "... | true |
5f824e85f6ff8440656efaf2295ba2986316d103 | Java | canavdan/Gagful | /src/main/java/com/gagful/service/impl/CommentServiceImpl.java | UTF-8 | 1,319 | 2.09375 | 2 | [
"MIT"
] | permissive | package com.gagful.service.impl;
import com.gagful.dto.CommentDTO;
import com.gagful.entity.Comment;
import com.gagful.exception.PostNotFoundException;
import com.gagful.mapper.Mapper;
import com.gagful.repository.CommentRepository;
import com.gagful.repository.PostRepository;
import com.gagful.service.CommentService;... | true |
a25a13968101d55e25c89b5a8787ed69926d8b93 | Java | JetBrains/intellij-community | /platform/lang-impl/src/com/intellij/internal/DumpScreenConfigurationAction.java | UTF-8 | 8,035 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.internal;
import com.intellij.ide.ui.UISettings;
import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.... | true |
25fab8b743e3acf6e26de1b6b2778ee50d56daa1 | Java | chives-projects/Java | /src/main/java/LeetCode/RotateRight.java | UTF-8 | 1,175 | 3.390625 | 3 | [] | no_license | package LeetCode;
/**
* @description: 61 旋转链表
* @author: csc
* @create: 2020/1/27 17:27
*/
public class RotateRight {
public static ListNode rotateRight(ListNode head, int k) {
if (head == null || k == 0) return head;
ListNode pre = head;
int sum = 0;
while (pre != null) {
... | true |
5a46b752f78dc35f841859c31df9dbfdd603a69a | Java | yiding-he/sob | /src/main/java/com/hyd/sob/commands/user/UserCommand.java | UTF-8 | 240 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package com.hyd.sob.commands.user;
import com.hyd.sob.Role;
import com.hyd.sob.commands.Command;
public abstract class UserCommand extends Command {
@Override
public Role forRole() {
return Role.User;
}
}
| true |
d3d9d47720f724e8fdee5dc1d3080a257f93f48e | Java | oubijie/JavaSE | /JavaSE02DataType/src/main/java/com/veryoo/dt/Test04String.java | UTF-8 | 577 | 3.09375 | 3 | [
"Apache-2.0"
] | permissive | package com.veryoo.dt;
/**
* String类型演示
* @author obj
* @email oubijie@139.com
* @vserion 2017年12月8日
*
*/
public class Test04String {
public static void main(String[] args) {
System.out.println("Hello");
String name = "obj";
System.out.println("my name is " + name);
String h = "你... | true |
bb8dca4c32b6dd12312edaff96e509682fb2af56 | Java | onexus/intogen-plugins | /src/main/java/org/intogen/decorators/impact/domain/Consequence.java | UTF-8 | 4,244 | 1.921875 | 2 | [] | no_license | package org.intogen.decorators.impact.domain;
import org.onexus.collection.api.IEntity;
import org.onexus.collection.api.IEntityTable;
import org.onexus.resource.api.ORI;
import java.io.Serializable;
public class Consequence implements Serializable {
private String snv;
private String transcript;
priva... | true |
68bf0613595db054ba2dfa81065f91d053cb593a | Java | lizhaowen72/leetcode | /src/main/java/leetcode/editor/cn/ValidPerfectSquare.java | UTF-8 | 2,024 | 3.765625 | 4 | [] | no_license | package leetcode.editor.cn;
//给定一个正整数 num,编写一个函数,如果 num 是一个完全平方数,则返回 True,否则返回 False。
//
// 说明:不要使用任何内置的库函数,如 sqrt。
//
// 示例 1:
//
// 输入:16
//输出:True
//
// 示例 2:
//
// 输入:14
//输出:False
//
// Related Topics 数学 二分查找
public class ValidPerfectSquare {
public static void main(String[] args) {
Solution sol... | true |
067955e04a936d289d06591f9c3b7ac8852fe85d | Java | AnnaKosAlex/Java | /src/leveltwo/lesson2_8/Main.java | UTF-8 | 187 | 1.507813 | 2 | [] | no_license | package leveltwo.lesson2_8;
import leveltwo.lesson2_8.client.OutstandingChat;
public class Main {
public static void main(String[] args) {
new OutstandingChat();
}
}
| true |
7111dccfb208c93731926e0e63aa9e4d99853160 | Java | ZoranLi/thunder | /com/huawei/hms/api/internal/e.java | UTF-8 | 1,001 | 1.695313 | 2 | [] | no_license | package com.huawei.hms.api.internal;
import android.content.Context;
import android.os.Build.VERSION;
import com.huawei.hms.api.HuaweiApiAvailability;
import com.huawei.hms.c.a;
/* compiled from: HuaweiMobileServicesUtil */
public abstract class e {
public static int a(Context context) {
a.a(context, "con... | true |
19921d3f21ea3466e62e3472731bfabee40c32dc | Java | libt83/DB_PROJECT | /src/EmpReportController.java | UTF-8 | 2,328 | 2.71875 | 3 | [] | no_license | import javafx.beans.property.SimpleStringProperty;
import javafx.beans.value.ObservableValue;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.util.Callback;
import j... | true |
6aedd982285ecfb2d00d83e5ac723cc1df1158b3 | Java | wycBig/pms | /src/main/java/com/ujiuye/ExcelUtils/ExcelRead.java | UTF-8 | 1,149 | 2.5625 | 3 | [] | no_license | package com.ujiuye.ExcelUtils;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.ss.usermodel.*;
import java.io.FileInputStream;
import java.io.InputStream;
public class ExcelRead {
public static String getExcelContent(Cell cell){
String result = "";
switch (cell.getCellType())... | true |
a09f0a4ad451779bf22cc31ebef554eb5f9cca0c | Java | koderka/Servlets | /Exercises_I/src/pl/koderka/collection/Servlet_04.java | UTF-8 | 1,565 | 2.703125 | 3 | [] | no_license | package pl.koderka.collection;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpS... | true |
38ec995f5a7a34321ca06509d5209c0d8d7cbdea | Java | CodeNinja90/Java-Practice | /src/ToggleLetters.java | UTF-8 | 665 | 3.3125 | 3 | [] | no_license |
import java.util.*;
public class ToggleLetters {
public static void main(String[] args) {
String str = "mY nAMe is kHaN";
String togWord ="";
String[] words = str.split("\\s");
for (String w :words){
char []cha = w.toCharArray();
for (char c... | true |
6216107e7185728b2bcdf694a59a84830fc3a08b | Java | Harrum/piapp | /piApp/src/piApp/PiInputLogger.java | UTF-8 | 490 | 2.828125 | 3 | [] | no_license | package piApp;
import java.util.ArrayList;
import java.util.List;
public class PiInputLogger
{
public interface PiInputListener
{
void inputReceived(Input input);
}
private List<PiInputListener> listeners = new ArrayList<PiInputListener>();
public void addListener(PiInputListener listener)
... | true |
2e2a1ab82582565cf173860eeeec24f7110c2482 | Java | oONinaOo/Shop-project | /src/bolt/aruk/Sajt.java | UTF-8 | 914 | 2.390625 | 2 | [] | no_license | package bolt.aruk;
import java.util.Date;
public class Sajt extends Elelmiszer {
private double suly;
private double zsirtartalom;
private Long vonalKod;
private String gyarto;
private Date szavatossagiIdo;
public Sajt(Long vonalKod, String gyarto, Date szavatossagiIdo, double zsirtartalom){
super(vonalKod,... | true |
8af04adc8fdb9303977baf23096146ffbc3189ca | Java | myhtls/nature-platform | /nature-view/src/main/java/org/nature/view/primefaces/model/OrderByHandler.java | UTF-8 | 123 | 1.609375 | 2 | [] | no_license | package org.nature.view.primefaces.model;
public interface OrderByHandler {
public String getOrderBy(String orderBy);
}
| true |
49a7bd79aa9b19b015111256c921584f8f692613 | Java | SAIDProtocol/ICNInteroperability | /src/main/java/edu/rutgers/winlab/icninteroperability/ip/DemultiplexingEntityIPDynamic.java | UTF-8 | 1,448 | 2.484375 | 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.rutgers.winlab.icninteroperability.ip;
import edu.rutgers.winlab.icninteroperability.DemultiplexingEntity;
import java.net... | true |
9bda8c82c18dea3a42145993c7f96503b3626ac0 | Java | CaesarHo/AduroSmratSDK | /app/build/generated/source/apt/aduro/debug/com/adurosmart/activitys/ColourMixingActivity_ViewBinding.java | UTF-8 | 5,206 | 1.796875 | 2 | [] | no_license | // Generated code from Butter Knife. Do not modify!
package com.adurosmart.activitys;
import android.support.annotation.CallSuper;
import android.support.annotation.UiThread;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.SeekBar;
import android.widget.... | true |
13d5b973159b5f45fcaa0a5aafdb2633e0d4c3d9 | Java | ntngocanh21/apidemo | /src/main/java/com/example/demo/service/UserServiceImpl.java | UTF-8 | 2,154 | 2.40625 | 2 | [] | no_license | package com.example.demo.service;
import com.example.demo.entity.UserEntity;
import com.example.demo.model.LoginResponse;
import com.example.demo.model.MessageResponse;
import com.example.demo.model.UserModel;
import com.example.demo.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowi... | true |
1952565c8394f79c36803ece901c65f9b2f916be | Java | anmingyu11/AlgorithmsUnion | /LeetCode/src/_java/_0067SqrtX.java | UTF-8 | 2,147 | 3.96875 | 4 | [] | no_license | package _java;
import base.Base;
/**
* Implement int sqrt(int x).
* <p>
* Compute and return the square root of x,
* where x is guaranteed to be a non-negative integer.
* <p>
* Since the return type is an integer,
* the decimal digits are truncated and only the integer part of the result is returned... | true |
9ad2626f5edcfb261c251a52915f303e4e63ec0b | Java | NishithaSalver/Component-based-model | /src/Nisha_JPA/SaveData.java | UTF-8 | 791 | 2.265625 | 2 | [] | no_license | //Renu Nishitha Salver G00941178
package Nisha_JPA;
import javax.persistence.Entity;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.persistence.PersistenceContext;
public class SaveData {
@PersistenceContext
public st... | true |
c6b4e7db755e3f5e202815d7ff37cd5717dd1e59 | Java | eleangel1990/moteles | /app/src/main/java/ua/gov/dp/econtact/activity/BaseActivity.java | UTF-8 | 7,105 | 1.890625 | 2 | [] | no_license | package ua.gov.dp.econtact.activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Point;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.DrawableRes;
import android.support.v4.app.F... | true |
bffddd7e4a811a7afa44b6ce42c2ae71677541be | Java | NayLin-H99/ip | /src/main/java/duke/Parser.java | UTF-8 | 9,784 | 3.171875 | 3 | [] | no_license | package duke;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import duke.command.AddCommand;
import duke.command.AddCommandType;
import duke.command.Command;
import duke.command.DeleteCommand;
import duke.command.DoneCommand;
import duke.command.ExitCommand;
import duke.command.FindCommand;
import du... | true |
b5299d47a97487b62aecd260addfff1739425cfa | Java | linbren/lyt_ssm | /src/main/java/net/test/tools/SQLServerBackup.java | UTF-8 | 3,441 | 2.71875 | 3 | [] | no_license | package net.test.tools;
import java.io.File;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class SQLServerBackup {
/**
* 获取数据库连接
*
... | true |
70eda1cac1fd1d345ed2dee66633cd97d2842431 | Java | cckmit/ontap | /app/src/main/java/com/salesforce/dsa/app/ui/dialogs/DownDialog.java | UTF-8 | 13,879 | 2.109375 | 2 | [] | no_license | package com.salesforce.dsa.app.ui.dialogs;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.Color;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.view.Display;
import android.view.K... | true |
f6d1a4b5d6e8c92516615e7572b2b2a0303fecdc | Java | rykann/android-twitter-client | /app/src/main/java/org/kannegiesser/twitterclient/clients/TwitterApi.java | UTF-8 | 2,932 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package org.kannegiesser.twitterclient.clients;
import android.content.Context;
import com.codepath.oauth.OAuthBaseClient;
import com.loopj.android.http.AsyncHttpResponseHandler;
import com.loopj.android.http.RequestParams;
import org.scribe.builder.api.Api;
public class TwitterApi extends OAuthBaseClient {
pr... | true |
fc05cbabbf9bb5bee1b8a3d896069579fa8909cb | Java | yarokhovich/exam | /src/ru/urllink/jjd/exam4/Application.java | UTF-8 | 3,054 | 3.015625 | 3 | [] | no_license | package ru.urllink.jjd.exam4;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import java.time.LocalDateTime;
import java.util.List;
public class Application {
public static void main(String[] args) {
Climber climber1 = new Climb... | true |
6c70fdc7b51fc8561eb795beca6c61cc7c51d284 | Java | pmd/pmd | /pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/AccessNode.java | UTF-8 | 8,233 | 2.578125 | 3 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.ast;
import static net.sourceforge.pmd.lang.java.ast.JModifier.STRICTFP;
import java.util.Set;
import org.checkerframework.checker.nullness.qual.NonNull;
import net.sourceforge.pmd.lang.ast.... | true |
b7334d472f59992337b3ab39ced9c2f3e579ad76 | Java | skbadhe/CodeAssignmentPyramed | /src/main/java/com/shubhambadhe/CodeAssignmentPyramed/Repository/ChitRepository.java | UTF-8 | 294 | 1.539063 | 2 | [] | no_license | /**
*
*/
package com.shubhambadhe.CodeAssignmentPyramed.Repository;
import org.springframework.data.repository.CrudRepository;
import com.shubhambadhe.CodeAssignmentPyramed.Chit.Chit;
/**
* @author Shubham
*
*/
public interface ChitRepository extends CrudRepository<Chit, Integer>{
}
| true |
6ccc952da5ad45d18500ec3e8908a967679a8874 | Java | Kevinyulianto0307/ProjectHBC | /org.toba.habco/src/org/toba/habco/callout/HBC_CalloutDemurrage.java | UTF-8 | 1,079 | 1.929688 | 2 | [
"MIT"
] | permissive | package org.toba.habco.callout;
import java.util.Properties;
import org.adempiere.base.IColumnCallout;
import org.compiere.model.CalloutEngine;
import org.compiere.model.GridField;
import org.compiere.model.GridTab;
import org.toba.habco.model.MContract;
import org.toba.habco.model.MDemurrage;
/*
* @author yonk
*/... | true |
69b48c20be86ac1cb61d5ea677f406224755dab0 | Java | oozguc/Bubbleator | /src/main/java/pluginTools/ComputeCurvatureCurrent.java | UTF-8 | 3,183 | 1.882813 | 2 | [] | no_license | package pluginTools;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Col... | true |
d5be1984d7e3d50450e4076f3f6bdd3ca7e142aa | Java | alexthaler/OpenSesameDroid | /src/main/java/com/fortysevensixteen/opensesame/activity/SettingsActivity.java | UTF-8 | 997 | 2.34375 | 2 | [] | no_license | package com.fortysevensixteen.opensesame.activity;
import android.app.ActionBar;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.view.MenuItem;
import com.fortysevensixteen.opensesame.fragment.SettingsFragment;
public class SettingsActivity extends PreferenceActivity {
@Ove... | true |
2fd03d7282b7164a4bc37891420efc9741443f20 | Java | gregemel/zipinfo | /src/test/java/com/emelgreg/zipinfo/controllers/ZipHttpControllerSpec.java | UTF-8 | 2,823 | 2.28125 | 2 | [] | no_license | package com.emelgreg.zipinfo.controllers;
import com.emelgreg.zipinfo.models.ZipWeather;
import com.emelgreg.zipinfo.ports.ZipWeatherPort;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servle... | true |
8a3dd6091339876a424f90368030868a4c45acf1 | Java | prag111/Testproject | /February/src/com/pragati/KeyboardUtil.java | UTF-8 | 955 | 2.875 | 3 | [] | no_license | package com.pragati;
import java.sql.Date;
import java.text.SimpleDateFormat;
import java.util.Scanner;
public class KeyboardUtil {
private KeyboardUtil()
{
}
public static int getInt(String message)
{
System.out.println(message);
Scanner sc=new Scanner(System.in);
return sc.nextInt();
}
public s... | true |
c740cc6b1fff7455946a4446f99d4421e882e1be | Java | Wanna-Get-High/Workspace-L-3 | /RSX/MultiCastUdp/src/udp/SendUdp.java | UTF-8 | 1,031 | 3.375 | 3 | [] | no_license | package udp;
import java.io.IOException;
import java.net.*;
public class SendUdp
{
DatagramSocket ds;
DatagramPacket dp;
public SendUdp(String msg,int port,String ad)
{
InetAddress address=null;
// retrieve the InetAdresss from the address passed in argument
try {
address = InetAddress.getByName(ad);
... | true |
5cbcd86943cf220c84a5564b5bde7c15e286a5ae | Java | knovakovskaya/color_chooser | /src/main/java/ru/ifmo/thesis/gui/ChooseColorsApplication.java | UTF-8 | 5,122 | 2.703125 | 3 | [
"MIT"
] | permissive | package ru.ifmo.thesis.gui;
import ru.ifmo.thesis.gui.ColorPanel;
import ru.ifmo.thesis.gui.util.ColorChoosenActionListener;
import ru.ifmo.thesis.gui.util.ImagePanel;
import javax.imageio.ImageIO;
import javax.swing.*;
import javax.swing.filechooser.FileNameExtensionFilter;
import javax.xml.bind.ValidationEvent;
im... | true |
36efe9d1b0ed37c9c5aa2e7df3ba3617cc02bd8b | Java | jenkinsci/rocketchatnotifier-plugin | /src/test/java/jenkins/plugins/rocketchatnotifier/rocket/RocketChatClientImplAcceptanceTest.java | UTF-8 | 2,066 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package jenkins.plugins.rocketchatnotifier.rocket;
import jenkins.plugins.rocketchatnotifier.model.Room;
import jenkins.plugins.rocketchatnotifier.rocket.errorhandling.RocketClientException;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.mockserver.integration.ClientAndSer... | true |
942a91a8e420101482258dedf8ded2351d4a4b06 | Java | jiatianyang/weiDuApp | /app/src/main/java/com/ming/weidushop/adapter/IndexAdapter.java | UTF-8 | 11,698 | 1.828125 | 2 | [] | no_license | package com.ming.weidushop.adapter;
import android.content.Context;
import android.net.Uri;
import android.support.annotation.NonNull;
import android.support.v4.view.ViewPager;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.Rec... | true |
3ac058e43bcd3c5c7ed33242c3ab0ebcee3c9ef7 | Java | liusanmu/practice | /test/src/it/ex3/NiMingClass/Demo2_NoNameInnerClass.java | UTF-8 | 971 | 3.84375 | 4 | [] | no_license | package it.ex3.NiMingClass;
class Demo2_NoNameInnerClass {
public static void main(String[] args) {
Outer2 o = new Outer2();
o.method();
}
}
interface Inter2 {
public void show1();
public void show2();
}
//匿名内部类只针对重写一个方法时候使用
class Outer2 {
public void method() {
/*new Inter(){
public void show1() {
... | true |
a9ffe99d75872710325057efdda540acc2ca64e2 | Java | Left-Behind/study | /redis-distributedlock/src/main/java/work/azhu/redisdistributedlock/controller/RedisLockController.java | UTF-8 | 4,726 | 2.53125 | 3 | [] | no_license | package work.azhu.redisdistributedlock.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.ClassPathResource;
import org.springframework.data.redis.... | true |
907a8df953ec982e4cafe0707cae3ca198c44469 | Java | bellmit/is4103-capstone-backend | /src/main/java/capstone/is4103capstone/admin/service/PermissionControllerService.java | UTF-8 | 2,406 | 2.6875 | 3 | [] | no_license | package capstone.is4103capstone.admin.service;
import capstone.is4103capstone.admin.dto.EmployeeDto;
import capstone.is4103capstone.configuration.DBEntityTemplate;
import capstone.is4103capstone.entities.Employee;
import capstone.is4103capstone.entities.SecurityGroup;
import capstone.is4103capstone.util.enums.Operatio... | true |
98ed75c2d4dba1dbda9f55b50038234619eb44cb | Java | aygeshka10/Credit-Card-Management-System | /src/model/Customer.java | UTF-8 | 2,168 | 2.375 | 2 | [] | no_license | package model;
import java.sql.Timestamp;
public class Customer {
protected String firstName, middleName, lastName, cardNo;
protected String apt, street, city, county, zip, email;
protected int ssn, custPhone;
protected String state;
protected double value;
protected Timestamp lastUpdated;
pub... | true |
eec231aa7515e97a2b7d0835b7b4638ef271be8c | Java | miltonlab/lessons-JPA | /src/main/java/com/mycompany/demo/onetoone/MarcaBi.java | UTF-8 | 2,314 | 2.40625 | 2 | [] | no_license | package com.mycompany.demo.onetoone;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
@Entity
public class MarcaBi{
@Id
@GeneratedValue
private Long id;
private Integer anoFundacion;
pr... | true |
99be4d4eebdd42e4775137d6dda49a0a336802f0 | Java | sanjay-mishra1/SNJDeveloper | /app/src/main/java/com/example/snjdeveloper/RecyclerUI/UserListAdapter.java | UTF-8 | 5,492 | 2.03125 | 2 | [] | no_license | package com.example.snjdeveloper.RecyclerUI;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.recyclervi... | true |
8b07e959a3ddc08931816f946bc2b081cde75ee1 | Java | zhenglu1989/demo | /src/main/java/zbuer/com/cluster/processor/ClusterSupportWithRedis.java | UTF-8 | 3,061 | 2.3125 | 2 | [] | no_license | package zbuer.com.cluster.processor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import redis.clients.jedis.Client;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPubSub;
import zbuer.com.jedis.RedisUtil;
import java.util.concurren... | true |
eb196c1a03c520dd7a1dd74da8d0b38a1cb92a6b | Java | LangtechKHMin/java_practice | /ChapterThreePractice/src/ArrayRandomPrint.java | UTF-8 | 713 | 3.1875 | 3 | [] | no_license | import java.util.Random;
public class ArrayRandomPrint {
public static void main(String[] args) {
Random r = new Random();
int intArray[][] = {{0,0,0,0},{0,0,0,0},{0,0,0,0},{0,0,0,0}};
int a, b, c;
for (int i = 0; i<8;i++) {
while (true) {
a = r.nextInt(4);
b = r.nextInt(4);
if (intArray[a][b] !... | true |
a175e6130984fc41e91b8967816e4b48a0691c37 | Java | benchdoos/Specs | /src/main/java/com/mmz/specs/service/MaterialService.java | UTF-8 | 1,308 | 1.882813 | 2 | [] | no_license | /*
* (C) Copyright 2018. Eugene Zrazhevsky and others.
* 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 la... | true |
bbaf4f3fb00c2a638c4939466b88bc7e3415b4c5 | Java | rhotin/ReveraProjectV3 | /app/src/main/java/com/ideaone/tabletapp1/HomeFragment.java | UTF-8 | 28,559 | 1.585938 | 2 | [] | no_license | package com.ideaone.tabletapp1;
import android.app.AlertDialog;
import android.app.Fragment;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.gr... | true |
43502730b7820d6914b76ca3aa5640fc63dce4e5 | Java | themodernway/themodernway-server-core | /src/main/groovy/com/themodernway/server/core/support/spring/ServletFactoryContextCustomizer.java | UTF-8 | 7,002 | 1.585938 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2018, The Modern Way. All rights reserved.
*
* 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 b... | true |
609bdfdff03b77f408bafb424c6a8efd80e24391 | Java | tanseda/hackerrank | /src/main/java/leetcode/PowerofANum.java | UTF-8 | 1,020 | 3.671875 | 4 | [] | no_license | /**
* Created by stan on 07/04/2021.
*/
package leetcode;
public class PowerofANum {
public boolean isPowerOfFour(int n) {
if(n == 0)
return false;
double temp = Math.log(n) / Math.log(4);
System.out.println("return : " + temp);
System.out.println("return : " + Math... | true |
358b771e2806b02788c6bec44132ff74e0f780af | Java | iamshijun/spring_demo | /spring_demo_module/spring_sample_demo/src/test/java/cjava/walker/common/service/impl/AServiceImpl.java | GB18030 | 1,190 | 2.40625 | 2 | [] | no_license | package cjava.walker.common.service.impl;
import org.springframework.aop.support.AopUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Trans... | true |
dd1689270d82bc1ddba33ef3c8a60b73f5a4859c | Java | eisen1990/PayDoctorApp | /app/src/main/java/com/linepayroll/paydoctor/Utils/RestAPITask.java | UTF-8 | 3,315 | 2.921875 | 3 | [] | no_license | package com.linepayroll.paydoctor.Utils;
import android.os.AsyncTask;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.HttpURLConnection;
import java.net.MalformedUR... | true |
5b715ed5741a3e194364fdd3d1f2889a1c191aea | Java | iwsrh/cinema-server | /src/main/java/ru/megagrinn/model/Action.java | UTF-8 | 481 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | package ru.megagrinn.model;
public class Action {
private int id;
private String imgUrl;
private String description;
public Action(int id, String imgUrl, String description) {
this.id = id;
this.imgUrl = imgUrl;
this.description = description;
}
public int getId() {
... | true |
f0de2c36f41ed6469b9ba2f3298bc7368034527e | Java | syafiqabdillah/TA_6_6 | /src/main/java/com/apap/farmasi/service/PermintaanService.java | UTF-8 | 362 | 1.921875 | 2 | [] | no_license | package com.apap.farmasi.service;
import java.util.List;
import java.util.Optional;
import com.apap.farmasi.model.PermintaanModel;
public interface PermintaanService {
List<PermintaanModel> getAll();
PermintaanModel findById(long id);
PermintaanModel save(PermintaanModel permintaan);
void updateStatusPerminta... | true |
0a23a9dde94463380bd1fd7e12a8502540d6f074 | Java | sharco-code/2DAM | /data-acces/UD3/examenUD3/src/pojos/CicloFormativo.java | UTF-8 | 933 | 2.6875 | 3 | [] | no_license | package pojos;
public class CicloFormativo {
private String nom;
private String familia;
private int grau;
private int hores;
public String getNom() {
return nom;
}
public void setNom(String nom) {
this.nom = nom;
}
public String getFamilia() {
return familia;
}
public void setFamilia(String fami... | true |
544fa0e5cce36b7bf2506336e500d8851b182966 | Java | Open-source-sharing/REST-doc | /smartdoc-oas/src/main/java/io/swagger/v3/core/util/EncodingPropertyStyleEnumDeserializer.java | UTF-8 | 1,565 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package io.swagger.v3.core.util;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.JsonNode;
import io.swagger.v3.oas.models.media.EncodingProperty;
import java.io.IOE... | true |
80f90f93a03c1bfd530e306ffa7a564a59f37807 | Java | gstamatakis/ANAC-agents | /src/Core/ThrashAgent.java | UTF-8 | 8,592 | 2 | 2 | [] | no_license | package Core;
import Utils.SearchMethodEnum;
import Utils.StrategyEnum;
import Utils.ValFreqEnum;
import negotiator.AgentID;
import negotiator.Bid;
import negotiator.Deadline;
import negotiator.actions.*;
import negotiator.parties.AbstractNegotiationParty;
import negotiator.persistent.PersistentDataContainer;
import n... | true |
96d6c72a0f3728d5398d0c1052ba87d1682b5af9 | Java | gspandy/xss-spring | /src/main/java/com/ryanperrizo/spring/sample/cont/AdminController.java | UTF-8 | 3,155 | 2.21875 | 2 | [] | no_license | package com.ryanperrizo.spring.sample.cont;
import java.util.List;
import javax.validation.Valid;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Co... | true |
77b7d42711bb52e9d7f157d17d67474155359163 | Java | isriram/train-ticket | /src/main/java/net/sriramiyer/train/Main.java | UTF-8 | 490 | 1.992188 | 2 | [] | no_license | package net.sriramiyer.train;
public class Main {
public static void main(String[] args){
Loader loader = new Loader();
loader.readFromFile();
loader.readInputsForTesting();
loader.writeCostsToFile();
/*try (BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(... | true |
ee418db6ab7008ea371b2026cc7dcc90c6fdfad5 | Java | filipebastos/taskmanager | /taskmanager/taskmanager-core/src/main/java/com/taskmanager/repository/UserRepository.java | UTF-8 | 668 | 2.625 | 3 | [
"MIT"
] | permissive | package com.taskmanager.repository;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import com.taskmanager.domain.User;
public class UserRepository {
private static final UserRepository INSTANCE = new UserRepository();
private List<User> list = new ArrayList<>();
private UserRep... | true |
b9b28b63f8af472ab37f88f67ca9eff03f87b59b | Java | TergBug/hw9 | /src/main/java/org/mycode/behavioral/mediator/Demo.java | UTF-8 | 542 | 2.3125 | 2 | [] | no_license | package org.mycode.behavioral.mediator;
public class Demo {
public static void main(String[] args) {
CircleDock dock = new CircleDock();
Spaceship bigSpaceship = new BigSpaceship(dock);
Spaceship smallSpaceship = new SmallSpaceship(dock);
dock.setSpaceship1(bigSpaceship);
do... | true |
0d4687aeb99007538aa0e1db888ca4180aaca6cd | Java | pftx/niolex-network-nio | /network-name/src/test/java/org/apache/niolex/network/name/demo/NameServerDemo.java | UTF-8 | 1,261 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | /**
* NameServerDemo.java
*
* Copyright 2012 Niolex, Inc.
*
* Niolex licenses this file to you 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
... | true |
ac416fe84cc2548c628b22a3e615dd54bc79977c | Java | spartalex/geekweb | /src/test/java/ru/geekbrains/lesson6/PageObjectTest.java | UTF-8 | 1,881 | 2 | 2 | [] | no_license | package ru.geekbrains.lesson6;
import io.qameta.allure.Description;
import io.qameta.allure.Story;
import io.qameta.allure.TmsLink;
import org.junit.jupiter.api.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.support.ui.ExpectedConditions;
import static org.hamcrest.MatcherAssert.assertThat;
import st... | true |
72cb54ef463c501ffe02ea340603e1d3a92ecbc8 | Java | akanshamehta17/Gumball-Machine | /Part 1/Main.java | UTF-8 | 1,155 | 3.359375 | 3 | [] | no_license | import java.util.*;
public class Main {
public static void main(String[] args) {
ArrayList<Integer> list = new ArrayList<Integer>();
list.add(25);
list.add(5);
list.add(10);
GumballMachine gumballMachine1 = new GumballMachine(5,25,list);
... | true |
a197023312931844b8fa4797d248c2f576ecbe74 | Java | sureshakella/crack-code | /src/main/java/fornow/linkedlist/GetNthNodeFromLast.java | UTF-8 | 1,354 | 3.640625 | 4 | [] | no_license | package fornow.linkedlist;
import java.util.Random;
import static java.util.Objects.nonNull;
public class GetNthNodeFromLast {
static class Node<T> {
T item;
Node<T> next;
Node(T item) {
this.item = item;
}
}
public static void main(String[] args) {
No... | true |