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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
c7347bce66bca6b28fecc0c2c5a550b36eee83e0 | Java | AkhmetT02/MyMovies | /app/src/main/java/com/example/mymovies/data/FavouriteMovie.java | UTF-8 | 930 | 2.453125 | 2 | [] | no_license | package com.example.mymovies.data;
import androidx.room.Entity;
@Entity(tableName = "favourite_movie")
public class FavouriteMovie extends Movie {
public FavouriteMovie(int uniqueId, int id, int voteCount, String title, String originalTitle, String overview, String smallPosterPath, String posterPath, String bigPo... | true |
23866da1bba63f4b97c10d3c6c3af041ca2c9fb0 | Java | MalcevStepan/LabsCPP | /src/main/java/controllers/RequestCounterController.java | UTF-8 | 361 | 1.945313 | 2 | [] | no_license | package labsKPP.controllers;
import labsKPP.requestCounter.RequestCounter;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class RequestCounterController {
@GetMapping("/requestCount")
public int getCount() {
... | true |
a02971475dcfaa8c06e08660f39a50062f7b787b | Java | jDTOBinder/jDTO-Binder | /jdto/src/main/java/org/jdto/mergers/DateFormatMerger.java | UTF-8 | 3,517 | 2.890625 | 3 | [] | no_license | /*
* Copyright 2012 Juan Alberto López Cavallotti
*
* 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 |
c2059e3e98bb7fe10dbfc7be89a110e7502e82b5 | Java | HanteIsHante/KotlinProject | /app/src/main/java/com/example/ht/kotlinproject/fragment/Fragment1.java | UTF-8 | 3,267 | 2.421875 | 2 | [] | no_license | package com.example.ht.kotlinproject.fragment;
import android.animation.Animator;
import android.annotation.TargetApi;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
imp... | true |
c85c15d322a999a903d7cf950905dc81f69123a0 | Java | telstra/open-kilda | /src-java/server42/server42-control-storm-topology/src/main/java/org/openkilda/server42/control/topology/service/RouterService.java | UTF-8 | 4,933 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | /* Copyright 2021 Telstra Open Source
*
* 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 |
5d9d1b1c8666ed1100147fa8ffd300189c38a67c | Java | keshav7/machine-code | /design/food-processor/src/main/java/com/base/foodprocessor/domain/Item.java | UTF-8 | 91 | 1.765625 | 2 | [] | no_license | package com.base.foodprocessor.domain;
public class Item {
String id;
Double price;
}
| true |
a75491bf0279559c262993fc3eec8271f25be2aa | Java | szhang1114/MKS22X-HW | /10Deque/MyDeque.java | UTF-8 | 1,052 | 3.203125 | 3 | [] | no_license | public class MyDeque{
private String[] deque;
private int front, back, size;
public MyDeque(){
deque = new String[1];
size = 0;
front = 0;
back = 0;
}
public void addFirst(String s){
if(s == null){
throw new NullPointerException;
}
if(size == deque.length){
resi... | true |
4e2bb558d8bc7ea8863dce592a49f34e0aac8864 | Java | chenqixu/ojdbc7 | /src/main/java/oracle/jdbc/driver/BinaryFloatAccessor.java | UTF-8 | 4,990 | 1.90625 | 2 | [] | no_license | //
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package oracle.jdbc.driver;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.SQLException;
import java.util.Map;
import oracle.sql.BINARY_FLOAT;
import oracle.sql.Datum;
import oracle.sql.... | true |
8a03ba80990baef8047919f54bdffee28512830d | Java | yulang1992/EdwinYu | /e-order-web/src/main/java/com/edwin/fsg/aop/base/BaseAspect.java | UTF-8 | 737 | 2.453125 | 2 | [] | no_license | package com.edwin.fsg.aop.base;
import java.lang.reflect.Method;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.reflect.MethodSignature;
import com.edwin.fsg.common.exception.FrameworkException;
public class BaseAspect {
/**
* [通过织入点获取源方法]
*
* @version [版本, 2017-04-12]
*/
prote... | true |
ce92bcdc6ee5aeb77f3fc38de0be72bdf44e85ee | Java | cotrix/cotrixrep | /cotrix/cotrix-domain/src/main/java/org/cotrix/domain/user/DefaultRole.java | UTF-8 | 3,899 | 2.5625 | 3 | [] | no_license | package org.cotrix.domain.user;
import static org.cotrix.action.Action.*;
import static org.cotrix.common.CommonUtils.*;
import java.util.Collection;
import java.util.HashSet;
import org.cotrix.action.Action;
import org.cotrix.action.ResourceType;
/**
* A user role.
* <p>
* A role is a binding between a {@link R... | true |
5e8515f6abeea0797007999ec819222d0aefd66b | Java | fredx30/Kebbiter | /src/kebbiter/tasks/WalkToArena.java | UTF-8 | 981 | 2.359375 | 2 | [] | no_license | package kebbiter.tasks;
import org.powerbot.game.api.methods.interactive.Players;
import kebbiter.util.ITile;
import kebbiter.util.Util;
import kebbiter.walk.rta.AscendStepsToArena;
import kebbiter.walk.rta.RunToRing;
import kebbiter.walk.rta.RunToSteps;
import kebbiter.walk.rta.UseRing;
import Structure.Job;
import ... | true |
7690c4432364811c47165b275b2863fe140b07da | Java | nnn-yureva/Laba_2 | /src/Calculator.java | UTF-8 | 8,320 | 3.90625 | 4 | [] | no_license | import java.util.Stack;
public class Calculator {
/**
* выражение, содержащие числа, операторы(+,-,*,/), скобки, пробелы, мусор
*/
private String str = "";
/**
* удаление пробелов в выражении
*/
private void delSpace()
{
String newstr = "";
for(int pos = 0; pos ... | true |
55c33a30be9041926190d3658b05414078195254 | Java | ncibi-core-dev/ncibi-commons | /src/main/java/org/ncibi/commons/collections/MapUtilities.java | UTF-8 | 2,667 | 3.28125 | 3 | [] | no_license | package org.ncibi.commons.collections;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import org.ncibi.commons.exception.ConstructorCalledError;
import com.google.common.collect.ImmutableMap;
/**
* Utility functions on maps.
*
* @author gtarcea
*/
public final class... | true |
c67f67b19e201fa55d776858a01f8af2a61a7616 | Java | qianyue92/Design-pattern | /src/main/java/decorator/Decorator.java | UTF-8 | 143 | 2.21875 | 2 | [] | no_license | package decorator;
/**
* 抽象装饰类
*/
public abstract class Decorator extends Sweet {
public abstract String getDescription();
}
| true |
8acaf05206c9fcdc6c6c8b6e5bce13bfec7db891 | Java | juvenildo01/rosworldwind | /src/org/ros/worldwind/AdapterProperties.java | UTF-8 | 3,503 | 2.0625 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2011 Martin Frassl, Michael Lichtenstern
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* ... | true |
cc7b68f9bf496f063906f60d99172ab29cf2daff | Java | HQebupt/storm-project | /storm.monitor/src/main/java/bolts/CellSplit.java | UTF-8 | 1,415 | 2.296875 | 2 | [] | no_license | package bolts;
import backtype.storm.task.OutputCollector;
import backtype.storm.task.TopologyContext;
import backtype.storm.topology.OutputFieldsDeclarer;
import backtype.storm.topology.base.BaseRichBolt;
import backtype.storm.tuple.Fields;
import backtype.storm.tuple.Tuple;
import backtype.storm.tuple.Values;
import... | true |
23c5ddae830d9e5740f7b708ffedf1bfa6f29021 | Java | RabeS/model-T | /TRAVACC_R5/travelfulfilmentprocess/testsrc/de/hybris/platform/travelfulfilmentprocess/listeners/PickupConfirmationEventListenerTest.java | UTF-8 | 2,128 | 1.9375 | 2 | [] | no_license | /*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the te... | true |
374474c745d74e15f764dd12086d9e09a9ec6460 | Java | chdanish/replica | /config/NeoConfig.java | UTF-8 | 1,668 | 1.882813 | 2 | [] | no_license | /*package so.pickme.replica.config;
import javax.annotation.PostConstruct;
import org.neo4j.graphdb.GraphDatabaseService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.*;
import org.springframewo... | true |
e7f28d02ced7558505e76dc22ac4f8c5666d76ba | Java | qingpeng911/NovelCrawler | /bookCrawler/src/main/java/com/dsy/model/View.java | UTF-8 | 796 | 1.976563 | 2 | [] | no_license | package com.dsy.model;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 小说阅... | true |
fb2b47cb13c1e7cc15878c0cc81d2b524280050f | Java | quarkusio/quarkus | /extensions/kubernetes-client/runtime-internal/src/main/java/io/quarkus/kubernetes/client/runtime/KubernetesDevServicesBuildTimeConfig.java | UTF-8 | 2,850 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package io.quarkus.kubernetes.client.runtime;
import java.util.Map;
import java.util.Optional;
import io.smallrye.config.WithDefault;
public interface KubernetesDevServicesBuildTimeConfig {
/**
* If Dev Services for Kubernetes should be used. (default to true)
*
* If this is true and kubernetes c... | true |
a3b9c555b66a6e22e2f9cf39edb9eabb1c4dcdec | Java | aceso/med-cognition | /src/main/java/org/atgc/bio/domain/CS.java | UTF-8 | 5,105 | 2.03125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.atgc.bio.domain;
import org.atgc.bio.BioFields;
import java.util.Collection;
import java.util.HashSet;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.atgc.bio... | true |
72e1f0a010937814f217671e73d8fc90abda6f70 | Java | thirpathi/newjavaproject | /src/com/collectoins/PrintLn.java | UTF-8 | 374 | 2.671875 | 3 | [] | no_license | package com.collectoins;
public class PrintLn {
public static void main(String[] args) {
final int a=100;
int b =200 ;
String x ="Hello";
String y = "World";
System.out.println(x+y+a+b);
System.out.print(a+b+x+y);
System.out.println("sssssssssss------" ... | true |
b999071a994b33cc6e78764cdc2756c9d4ecedf6 | Java | 1and1/reactive | /reactive-http/src/test/java/net/oneandone/reactive/sse/client/ServerSentEventSourceTest.java | UTF-8 | 14,095 | 1.984375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 1&1 Internet AG, https://github.com/1and1/
*
* 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 |
4a3fb6bf03975ee4474f3ff619c9fca0ca063456 | Java | ersinciftci/ReferenceWebApp | /core/src/main/java/com/example/referencewebapp/service/GeneService.java | UTF-8 | 207 | 1.828125 | 2 | [] | no_license | package com.example.referencewebapp.service;
import com.example.referencewebapp.model.Gene;
/**
* Created by ersin on 4/8/16.
*/
public interface GeneService {
Gene getGene(String hugoGeneSymbol);
}
| true |
3c89412bd86a5b882acd87d3e00503d25df2e230 | Java | soon14/wucaiqi | /WiFi室内定位1.1/src/com/exmaple/model/ClusterLocInfo.java | UTF-8 | 430 | 2.25 | 2 | [] | no_license | package com.exmaple.model;
public class ClusterLocInfo {
public int i_center;
public int cluster_j;
public ClusterLocInfo(int i,int j){
i_center = i;
cluster_j = j;
}
public int getI_center() {
return i_center;
}
public void setI_center(int i_center) {
this.i_center = i_center;
}
public int getCluster... | true |
dc03b42ddc3cd78647b968a7d946965d1116d986 | Java | isabella232/android-sdk-sources-for-api-level-1 | /java/security/cert/CertSelector.java | UTF-8 | 455 | 1.671875 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space
// Source File Name: CertSelector.java
package java.security.cert;
// Referenced classes of package java.security.cert:
// Certificate
... | true |
9cc7bc2b3b08a9ace61d70322b3bb8e4d73d80cf | Java | Anusham3/ALPGIT | /src/generic/WebdriverUtils.java | UTF-8 | 1,100 | 2.4375 | 2 | [] | no_license | package generic;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.sup... | true |
725aa5fe8c20169646dd7a8a721c01704600ac36 | Java | milostopolic/UDD | /es/src/main/java/com/ftn/es/controller/WorkController.java | UTF-8 | 3,966 | 2.1875 | 2 | [] | no_license | package com.ftn.es.controller;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springf... | true |
b000d5e1925c1f7b236e550ffec8e9a65a9c5103 | Java | Scarso327/Mantle | /src/gb/Jack/mantle/utils/Maths.java | UTF-8 | 555 | 2.671875 | 3 | [] | no_license | package gb.Jack.mantle.utils;
public class Maths {
public static boolean isInteger(String str) {
if (str == null) {
return false;
}
try {
int d = Integer.parseInt(str);
} catch (NumberFormatException nfe) {
return false;
}
return... | true |
3e616fc239a8cf6a7281f7061a7b5b40d986f6a0 | Java | Spiralcraft/core | /source/spiralcraft/data/persist/XmlBean.java | UTF-8 | 5,025 | 2.359375 | 2 | [] | no_license | //
// Copyright (c) 1998,2005 Michael Toth
// Spiralcraft Inc., All Rights Reserved
//
// This package is part of the Spiralcraft project and is licensed under
// a multiple-license framework.
//
// You may not use this file except in compliance with the terms found in the
// SPIRALCRAFT-LICENSE.txt file at the top of ... | true |
3fb672f7ce7751548fdaaac36cf78b5e747f43b5 | Java | VijayEluri/technbolts-commons | /technbolts-serializer/src/main/java/org/technbolts/dto/domain/common/StringSearch.java | UTF-8 | 1,673 | 2.390625 | 2 | [] | no_license | /* $Id$ */
package org.technbolts.dto.domain.common;
import org.technbolts.dto.configuration.Version;
import org.technbolts.dto.configuration.annotation.Alias;
import org.technbolts.dto.configuration.annotation.Since;
/**
* StringSearch utility DTO to define a search within a string field.
*
*
* @author <a hre... | true |
5cd26bb6d838f1044ccc917e5a0ada49087dd8d3 | Java | spencertipping/flotsam | /java/org/flotsam/Flotsam32.java | UTF-8 | 2,823 | 3.40625 | 3 | [
"MIT"
] | permissive | package org.flotsam;
/**
* 32-bit single-precision Flotsam encoder/decoder. For example:
* {@pre
* float[] xs = {1.0f, 2.0f, 3.0f};
* String encoded = Flotsam.encode(xs);
* float[] ys = Flotsam.decode(encoded);
* }
*
* @author Spencer Tipping
*/
public abstract class Flotsam32 {
/** Number ... | true |
7efa04e7161be8ab8cb0860e1475d3bb7d80099f | Java | AnkushThobhani/mooc-java-programming-i | /part06-Part06_09.SimpleDictionary/src/main/java/TextUI.java | UTF-8 | 1,669 | 3.25 | 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.
*/
/**
*
* @author ankushthobhani
*/
import java.util.Scanner;
import java.util.ArrayList;
public class TextUI {
private Scanner ... | true |
56fffb4a187e5892f6fa80623e3f1282e2634cac | Java | krayon/anne-pro-community-app | /com/obins/anne/listmusic/TitleToPinyinUtil.java | UTF-8 | 1,474 | 2.578125 | 3 | [] | no_license | package com.obins.anne.listmusic;
import android.text.TextUtils;
import com.obins.anne.utils.Music;
import java.util.ArrayList;
import java.util.List;
public class TitleToPinyinUtil {
private static List<Music> SourceDateList = new ArrayList();
private static CharacterParser characterParser = CharacterParser.... | true |
2c604341a2b9a42db6582454a3a8f0adac7e397e | Java | vitorbarbarisi/amiko | /src/main/java/amiko/api/facade/KostoServiceFacade.java | UTF-8 | 3,390 | 2.3125 | 2 | [] | no_license | package amiko.api.facade;
import amiko.api.KostojRequestEnum;
import amiko.api.to.KostoTO;
import amiko.api.to.KostojRequestTO;
import amiko.model.Kosto;
import amiko.service.HashtagService;
import amiko.service.KostoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ste... | true |
7d136c168fdf84babf3a848efd4f28a5bbc591b2 | Java | fredplusplus/EZBacklog | /src/webplus/ezbacklog/module/interfaces/ActivityUpdateModule.java | UTF-8 | 1,039 | 2.453125 | 2 | [] | no_license | package webplus.ezbacklog.module.interfaces;
import java.util.Date;
import java.util.List;
import webplus.ezbacklog.model.Activity;
import webplus.ezbacklog.model.Item;
import webplus.ezbacklog.values.ActivityType;
/**
* Logic for updating activities for each item.
*
*/
public interface ActivityUpdateModule {
... | true |
e18430ea8fd3091dbaffa6a4d410cb7739304005 | Java | christian86360/Topicos_avanzados_de_programacion_java | /src/hilosrunnable/HilosRunnable.java | UTF-8 | 430 | 2.90625 | 3 | [] | no_license | package hilosrunnable;
public class HilosRunnable implements Runnable{
long ms=0;
@Override
public void run() {
ms=(long)(Math.random()*6)*1000;
try {
Thread.sleep(ms);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Sy... | true |
ec44556ea93f0c8d4f36374166eb9f6814dd56cc | Java | SachinBhat/AndroidApp2 | /YTOI_appcode/YTOI/src/com/android/ytoi/fragment/Fragment_Category.java | UTF-8 | 6,018 | 1.679688 | 2 | [] | no_license | package com.android.ytoi.fragment;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import android.app.Fragment;
import android.app.FragmentManager;
import android.content.Context;
import android.graphics.Typeface;
... | true |
62791a222eb982bbbeaf70544f84d301019a54f9 | Java | octa-vian/TravelocScanner | /app/src/main/java/co/id/gmedia/travelocscanner/ActivityScan.java | UTF-8 | 2,606 | 2 | 2 | [] | no_license | package co.id.gmedia.travelocscanner;
import android.Manifest;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
... | true |
d30272eec84ad126ddab11eb41f8588567a31d7a | Java | CongCongBig/JSeetaface6 | /src/test/java/cn/yezhss/seetaface/demo/MaskDetectorTest.java | UTF-8 | 1,390 | 2.5625 | 3 | [] | no_license | package cn.yezhss.seetaface.demo;
import cn.yezhss.seetaface.api.FaceDetector;
import cn.yezhss.seetaface.api.MaskDetector;
import cn.yezhss.seetaface.demo.base.SeetafaceTest;
import cn.yezhss.seetaface.po.MaskStatus;
import cn.yezhss.seetaface.po.SeetaFaceInfo;
import cn.yezhss.seetaface.po.SeetaFaceInfoArray;
import... | true |
c4ff73fb19f2f1fde0dd0eafb5229583be6b4ab4 | Java | bgMargarita/StockList-lab | /src/main/java/ru/billing/stocklist/FoodItem.java | UTF-8 | 1,920 | 3.09375 | 3 | [] | no_license | package ru.billing.stocklist;
import java.util.Date;
import java.util.Objects;
public class FoodItem extends GenericItem {
private Date dateOfIncome;
private short expires;
public void setExpires(short expires) {
this.expires = expires;
}
public void setDateOfIncome(Date dateOfIncome) ... | true |
8e4621ef8360b9ef9ab11e9bba37ddbf2dd49874 | Java | JoyfulAndSpeedyMan/Friend | /common/src/main/java/top/pin90/common/unti/zookeeper/ZkUtils.java | UTF-8 | 4,532 | 2.09375 | 2 | [] | no_license | package top.pin90.common.unti.zookeeper;
import com.alibaba.fastjson.JSON;
import org.apache.curator.x.async.AsyncCuratorFramework;
import org.apache.curator.x.async.api.CreateOption;
import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.data.Stat;
import reactor.core.publisher.Flux;
import reactor.core.... | true |
ed367db1dad29b2605f7fed62bebbb4f398d4c78 | Java | BAT6188/company-database | /安慧软件资料/gitRepository/ITMS-3.0/Code/cy.its.video/cy.its.video.domain/src/main/java/cy/its/video/domain/criteria/TrafficVideoGroupCriteria.java | UTF-8 | 630 | 1.8125 | 2 | [] | no_license | package cy.its.video.domain.criteria;
public class TrafficVideoGroupCriteria {
private String createUser;
private String orgAuthorityCode;
private String groupName;
public String getCreateUser() {
return createUser;
}
public void setCreateUser(String createUser) {
this.createUser = createUser;
}
publi... | true |
b33a45e9866451190549f325df6ce9b64208970a | Java | bellmit/FMS-1 | /core/src/main/java/clb/core/supplier/service/ISpeCalendarService.java | UTF-8 | 743 | 1.726563 | 2 | [] | no_license | package clb.core.supplier.service;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.hand.hap.core.IRequest;
import com.hand.hap.core.ProxySelf;
import com.hand.hap.system.service.IBaseService;
import clb.core.common.exceptions.CommonException;
import clb.core.common.utils.ImportUtil.I... | true |
00fa90e78f7500546afc575337375f40e4d99a0e | Java | hgobir/Reservations | /test/uk/co/airline/reservations/TicketTest.java | UTF-8 | 846 | 2.625 | 3 | [] | no_license | package uk.co.airline.reservations;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class TicketTest {
private Ticket t1;
@Before
public void setUp() throws Exception {
t1 = new Ticket();
}
@After
public void tearDown() th... | true |
8dcf925b092e5f8d589d1eaef6726ed3c0695ebd | Java | Smile-Forever/pms | /pms-server/src/main/java/cn/tedu/pms/vo/PageableVO.java | UTF-8 | 915 | 2.390625 | 2 | [] | no_license | package cn.tedu.pms.vo;
import java.io.Serializable;
import java.util.List;
/**
* @author Smile
* Created at 2018/12/31
*/
public class PageableVO<T extends Serializable> {
private Long totalCount;
private List<T> data;
public static <E extends Serializable> PageableVO<E> empty() {
return new ... | true |
94c0fb010a6d666a9bcedbb23ca339e3002ee4e7 | Java | yuexiaoguang/tomcat8.5 | /src/org/apache/naming/SelectorContext.java | UTF-8 | 23,956 | 2.359375 | 2 | [] | no_license | package org.apache.naming;
import java.util.Hashtable;
import javax.naming.Binding;
import javax.naming.Context;
import javax.naming.Name;
import javax.naming.NameAlreadyBoundException;
import javax.naming.NameClassPair;
import javax.naming.NameNotFoundException;
import javax.naming.NameParser;
import javax.naming.Na... | true |
0c81a71fc75ab5afdde3db0fabf751db669992ba | Java | ZhangTongLe/database-interface-doc-management | /JFinalDemo/src/com/chengjf/jfinaldemo/common/Constants.java | UTF-8 | 1,235 | 1.734375 | 2 | [
"Apache-2.0"
] | permissive | package com.chengjf.jfinaldemo.common;
import com.jfinal.kit.PropKit;
public class Constants {
// Page use
public final static String LOGIN_ERROR = "error";
// Session
public final static String SESSION_USER = "user";
// Cookie
public final static String COOKIE_USER_TOKEN = "cookie_user_token";
public stati... | true |
2e270b974feb78faa8e16c6f17a548053559f057 | Java | JetBrains/MPS | /plugins/mps-kotlin/languages/kotlin/source_gen/jetbrains/mps/kotlin/behavior/Assignment__BehaviorDescriptor.java | UTF-8 | 3,486 | 1.679688 | 2 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package jetbrains.mps.kotlin.behavior;
/*Generated by MPS */
import jetbrains.mps.core.aspects.behaviour.BaseBHDescriptor;
import org.jetbrains.mps.openapi.language.SAbstractConcept;
import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory;
import jetbrains.mps.core.aspects.behaviour.api.SMethod;
import jetbr... | true |
8cdcaedaa9451105b3685406c910e34c90020808 | Java | chatwith/look | /look-common/look-common-logback/src/main/java/com/look/common/builder/DefaultLoggerInfoBuilder.java | UTF-8 | 1,151 | 2.203125 | 2 | [] | no_license | package com.look.common.builder;
import com.look.common.logback.LoggerFileNamesCollector;
import com.look.common.model.LoggerInfo;
import com.look.common.util.HostUtil;
/**
* user: xingjun.zhang
* Date: 2015/8/5
*/
public class DefaultLoggerInfoBuilder implements LoggerInfoBuilder {
@Override
public Logge... | true |
c6a503b272988257b04d4cda6b103a18b22109d1 | Java | esc777690/SeeTo-Android | /app/src/main/java/seeto/c2/artoria/us/myapplication/Adapter/TodoAdapter/TodoRecyclerAdapter.java | UTF-8 | 7,603 | 2.171875 | 2 | [] | no_license | package seeto.c2.artoria.us.myapplication.Adapter.TodoAdapter;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import ... | true |
e5e1b27a915e171a2042efd298c3a0ffb54fd8b5 | Java | markwinspear/cucumber-selenium-po-example | /src/test/java/com/the_internet/pages/BasePage.java | UTF-8 | 1,118 | 2.3125 | 2 | [] | no_license | package com.the_internet.pages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import static org.junit.Assert.assertEquals;
public class BasePage... | true |
6c613b7877b5866f51a07f59ad5037c77c6a944e | Java | signofthefour/chatServer | /src/main/java/com/example/server/DirectMessage.java | UTF-8 | 1,039 | 2.890625 | 3 | [
"MIT"
] | permissive | package com.example.server;
import java.util.ArrayList;
import java.util.Iterator;
import com.example.protocol.Message;
import com.example.server.ChatClientHandler;
public class DirectMessage implements Runnable {
private ChatServer chatServer;
private Message message;
public DirectMessage(ChatServer chatServer... | true |
09ebce6113b7cfee0a5f7c236a4fd575df946352 | Java | githubzxy/home | /kunmingrinms/.svn/pristine/09/09ebce6113b7cfee0a5f7c236a4fd575df946352.svn-base | UTF-8 | 3,759 | 2.140625 | 2 | [] | no_license |
/**
* 文件名:SpareUseStockService.java
* 版本信息:IRMS1.0
* 日期:2016-11-30 下午5:14:27
* Copyright Enovell Corporation 2016
* 版权所有
*
*/
package com.enovell.yunwei.dailySpare.service.impl;
import com.enovell.system.common.domain.User;
import com.enovell.yunwei.dailySpare.domain.DailyS... | true |
03aa510a83cf11943336906595c3c901266fe71a | Java | ivenDev/Android-School_Engurazov | /Lesson_4_Engurazov/app/src/main/java/com/cloniamix/lesson_4_engurazov/pojo/InfoItem.java | UTF-8 | 1,420 | 2.609375 | 3 | [] | no_license | package com.cloniamix.lesson_4_engurazov.pojo;
public class InfoItem {
private String name;
private String hint;
private int iconResId;
private boolean attention;
private boolean singleInLine;
public InfoItem(String name, String hint, int iconResId, boolean attention) {
this.name = n... | true |
922d151a66f2bc4da5c4c6562b18ad9e46db7f4f | Java | rahulmistry33/CP | /Codeforces/Prob6.java | UTF-8 | 742 | 3.09375 | 3 | [] | no_license | import java.util.*;
import java.io.*;
import java.util.Map.*;
public class Prob6{
public static void main(String args[]){
Scanner s = new Scanner(System.in);
String seq = s.next();
Map<Character,Integer> hm = new HashMap<Character,Integer>();
for(int i=0;i<seq.length();i++){
... | true |
adfa4e28b8036e5ffb5e71ca017c2a56119e7981 | Java | Romman/MEDS | /server/src/main/java/org/meds/Inn.java | UTF-8 | 3,734 | 2.4375 | 2 | [] | no_license | package org.meds;
import java.util.ArrayList;
import java.util.List;
import org.meds.data.domain.CharacterInnItem;
import org.meds.enums.InnFilters;
import org.meds.item.Item;
import org.meds.item.ItemFactory;
import org.meds.item.ItemPrototype;
import org.meds.net.message.ServerMessage;
import org.meds.net.message.se... | true |
69b44c352bf77c2870ae89cbc790e02bd8dc3293 | Java | nurub52/fmbApplication | /api/src/main/java/apps/kool/tms/api/repository/ISubscriberScheduleRepository.java | UTF-8 | 1,578 | 1.976563 | 2 | [
"MIT"
] | permissive | package apps.kool.tms.api.repository;
import java.util.Date;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import apps.kool.tms.api.agregate.OverrideSubscriptionSchedule;
import apps.kool.tms.api.agregate.SubscriptionSchedule;
public interface ISubscriberScheduleRepository {
S... | true |
f9c41697bb53ce22b7ed3b0c4d15e12169b09d44 | Java | mkotsur/restito | /src/main/java/com/xebialabs/restito/semantics/ActionSequence.java | UTF-8 | 883 | 2.609375 | 3 | [
"MIT"
] | permissive | package com.xebialabs.restito.semantics;
import org.glassfish.grizzly.http.server.Response;
import java.util.Arrays;
import java.util.List;
public class ActionSequence {
private List<Applicable> actions;
public ActionSequence(List<Applicable> actions) {
this.actions = actions;
}
public int... | true |
697f79b531282e1438e2d13b9ff2668a4daf677c | Java | SharikaNargis2014/DeshBanglaApp | /app/src/main/java/com/deshbangla/shrimpandfish/viewmodel/FeaturedProductViewModel.java | UTF-8 | 645 | 2.140625 | 2 | [] | no_license | package com.deshbangla.shrimpandfish.viewmodel;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.ViewModel;
import com.deshbangla.shrimpandfish.repository.FeaturedProductRepository;
import com.deshbangla.shrimpandfish.response.ProductResponse;
public class FeaturedProductViewModel extends ViewModel {
... | true |
f1a8419ebfd5f378ad3154f0cf51446896a6fc5c | Java | JxKnight/FYP1 | /BackEnd/Intellij/fyp/src/main/java/com/example/fyp/Model/Task.java | UTF-8 | 460 | 2.078125 | 2 | [] | no_license | package com.example.fyp.Model;
import javax.persistence.*;
@Entity
@Table(name="Task")
public class Task {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int id;
@Column(name = "task_id",unique = true)
private String taskId;
@Column(name = "task_description")
private String t... | true |
78869c5363e0d4902e973a1c0a40f20a0a101cdf | Java | BogdanJWK/Assignments_UBB | /2nd Year/Semester 2/SDI/Lab_2/lab2x-c-team/src/test/java/repository/FileRepositoryTest.java | UTF-8 | 3,649 | 2.40625 | 2 | [] | no_license | package repository;
import model.Client;
import model.Rental;
import model.WebDomain;
import model.validators.ClientValidator;
import model.validators.RentalValidator;
import model.validators.WebDomainValidator;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.a... | true |
f0a4fa09e36e57d9fb39fc5f0993ba17996a640d | Java | yuhb0303/Calligraphy | /calligraphy/src/main/java/uk/co/chrisjenx/calligraphy/CalligraphyFactory.java | UTF-8 | 2,269 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package uk.co.chrisjenx.calligraphy;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
class CalligraphyFactory implements LayoutInflater.Factory {
private static final String[] sClassPrefixList = {
... | true |
4df390fa0a0d0dcea0ffadc28fa489fa2af4c639 | Java | threefour-34/HustHoleTest-1 | /app/src/main/java/com/example/hustholetest1/View/RetrievePassword/Activity/ModifyPasswordActivity.java | UTF-8 | 3,210 | 1.984375 | 2 | [] | no_license | package com.example.hustholetest1.view.retrievepassword.activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.SpannableString;
import android.text.method.PasswordTransformationMethod;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android... | true |
1d3a1bcb4447aa9a1c443986873c0c904638a9e7 | Java | AlexZFX/AlgorithmStudy | /src/main/java/com/alexzfx/leetCode/StrStr.java | UTF-8 | 484 | 3.28125 | 3 | [] | no_license | package com.alexzfx.leetCode;
/**
* Author : Alex
* Date : 2018/5/5 16:46
* Description : 28 fin
* 给定一个 haystack 字符串和一个 needle 字符串,在 haystack
* 字符串中找出 needle 字符串出现的第一个位置 (从0开始)。如果不存在,则返回 -1。
*/
public class StrStr {
public int strStr(String hayStack, String needle) {
if (needle == null) {
... | true |
312aaf06bf0bcbe3d88ea5f4c8cf810e9dc65797 | Java | b3838438org/selenium-jupiter | /src/test/java/io/github/bonigarcia/seljup/test/basic/ChromeAndFirefoxJupiterTest.java | UTF-8 | 1,591 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | /*
* (C) Copyright 2017 Boni Garcia (http://bonigarcia.github.io/)
*
* 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 require... | true |
d6e3f34fdb6bff9c8c1b63803af1839ea40744a8 | Java | lazekki/LoftCoin | /app/src/main/java/com/loftschool/ozaharenko/loftcoin19/ui/welcome/WelcomePage.java | UTF-8 | 412 | 2.09375 | 2 | [] | no_license | package com.loftschool.ozaharenko.loftcoin19.ui.welcome;
import com.google.auto.value.AutoValue;
@AutoValue
abstract class WelcomePage {
static WelcomePage create(int imageResId, int titleResId, int subtitleResId) {
return new AutoValue_WelcomePage(imageResId, titleResId, subtitleResId);
}
abstr... | true |
0a9e09f5f8bfef6f829e4166602c6412fbe96018 | Java | mhaas/twitter-sentiment-analysis | /src/taggerserver/SentimentTagger.java | UTF-8 | 2,482 | 2.765625 | 3 | [] | no_license |
import java.io.File;
import java.io.FilenameFilter;
import java.io.FileReader;
import java.io.BufferedReader;
import java.io.FileWriter;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import cmu.arktweetnlp.impl.Model;
im... | true |
0ae9f95d750d095275ab36ddd7075b5b6408920a | Java | making/solid-drill | /src/main/java/net/unit8/drill/solid/adapter/impl/DeleteUserPortImpl.java | UTF-8 | 507 | 2.140625 | 2 | [] | no_license | package net.unit8.drill.solid.adapter.impl;
import net.unit8.drill.solid.DeleteUserPort;
import net.unit8.drill.solid.domain.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
@Component
public class DeleteUserPortImpl implements DeleteUserPort {
privat... | true |
973cd9e87d122e8c09836cd8c8aab447420b9a8f | Java | xtgodlike/SPManage | /src/main/java/com/qy/sp/manage/dao/TSdkconfigGlobalDao.java | UTF-8 | 1,752 | 1.921875 | 2 | [] | no_license | package com.qy.sp.manage.dao;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.qy.sp.manage.controller.TimerTask;
import com.qy.sp.manage.dao.base.BaseDao;
import com.qy.sp.manage.dao.impl.SdkconfigGlobalDao;
import com.qy.sp.manage.... | true |
de43bd3c7772ebf78bd19b039ef9a17002a62684 | Java | 2537953144/tourism | /src/main/java/com/dh/tourism/controller/PersonController.java | UTF-8 | 6,104 | 2.3125 | 2 | [] | no_license | package com.dh.tourism.controller;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.dh.tourism.commom.JsonResult;
import com.dh.tourism.commom.PageResult;
import com.dh.tourism.model.Person;
import com.dh.tourism.model.Team;
import com.dh.tourism.service.Pe... | true |
e4fd04812fe671245fb0201d4a98caddb97c7f0c | Java | t202621165/payment | /cy_common/src/main/java/com/cypay/common/pattern/template/payee/alipay/AlipayRequest.java | UTF-8 | 3,489 | 2.15625 | 2 | [] | no_license | package com.cypay.common.pattern.template.payee.alipay;
import com.alibaba.fastjson.JSONObject;
import com.alipay.api.AlipayClient;
import com.alipay.api.DefaultAlipayClient;
import com.cypay.common.annotation.NoSignature;
import com.cypay.common.annotation.NotParam;
public class AlipayRequest {
/* 请求地址 */
... | true |
b4b800e4d0a55c72fe9c64fa20c021ec48332629 | Java | tonlion/school | /src/com/example/school/AddNewMessActivity.java | GB18030 | 6,280 | 1.984375 | 2 | [] | no_license | package com.example.school;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import com.android.volley.Response;
import com.android.volley.Response.Listener;
import com.android.volley.VolleyError;
import com.example.adapter.Conte... | true |
e46c3fa09953f3a52506780d434132e9dc7dede0 | Java | ilgarmehmetali/sharedoc | /src/main/java/net/milgar/sharedoc/domain/repository/TermClassRepository.java | UTF-8 | 434 | 2.078125 | 2 | [] | no_license | package net.milgar.sharedoc.domain.repository;
import net.milgar.sharedoc.domain.model.TermClass;
import net.milgar.sharedoc.domain.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
public interface TermClassRepository extends JpaRepository<TermClass, Long> {
TermClass findByName(String na... | true |
3aa0937b49673794c9aabc855fde352bb16c8540 | Java | acgist/snail | /snail/src/main/java/com/acgist/snail/net/NatContext.java | UTF-8 | 4,969 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | package com.acgist.snail.net;
import java.util.concurrent.TimeUnit;
import com.acgist.snail.config.SystemConfig;
import com.acgist.snail.context.IContext;
import com.acgist.snail.context.SystemThreadContext;
import com.acgist.snail.logger.Logger;
import com.acgist.snail.logger.LoggerFactory;
import com.acgist.snail.n... | true |
7a6242c51835a89766a4371eabcb3e4c95c774f5 | Java | felipekian/JAVA_Projeto_Sistema_Balada | /Codigo Fonte/Balada/src/model/dao/FuncionarioDAO.java | UTF-8 | 5,019 | 2.609375 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package model.dao;
import connection.ConnectionFactory;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql... | true |
edc355d0703cf4d44cb5a11d08fe96e290c4bc2e | Java | XiaoLan12/TaoSha | /app/src/main/java/com/yizhisha/taosha/bean/json/PersonalDataBean.java | UTF-8 | 1,893 | 2.21875 | 2 | [] | no_license | package com.yizhisha.taosha.bean.json;
/**
* Created by lan on 2017/7/4.
*/
public class PersonalDataBean {
private String uid;
private String username;
private String linkman;
private String sex;
private String mobile;
private String email;
private String company;
private Stri... | true |
15cc6618bafe7abbdff5208c577df0a7fd2005b3 | Java | SharmaMohita/xFusion-Android-SDK | /Xfusion_PlatformApp/app/src/main/java/com/example/satku/xfusion_platformapp/Util.java | UTF-8 | 793 | 1.976563 | 2 | [] | no_license | package com.example.satku.xfusion_platformapp;
import android.support.v4.app.Fragment;
import fragment.DashboardFragment;
/**
* Created by satku on 2/14/2017.
*/
public class Util {
public static void loadFragment(MainActivity mainActivity, Fragment fragment) {
if (fragment instanceof DashboardFragme... | true |
900d87da8af071143c61ea083380de3c41fc6356 | Java | frostwire/frostwire-jlibtorrent | /src/main/java/com/frostwire/jlibtorrent/TorrentStats.java | UTF-8 | 12,662 | 2.140625 | 2 | [
"MIT"
] | permissive | package com.frostwire.jlibtorrent;
import com.frostwire.jlibtorrent.swig.torrent_status;
/**
* To be used in concert with {@link SessionManager}.
* <p>
* The call to {@code SessionManager#postTorrentUpdates()} is done approximately
* every second. This class holds a time series per metric and a time series for
*... | true |
3c3c4c2e624797a46bc05ae406db0e1da12d63c0 | Java | nessary/java | /lock/src/main/java/com/java/lock/Test2.java | UTF-8 | 1,502 | 3.640625 | 4 | [] | no_license | package com.java.lock;
/**
* Created by Ness on 2017/7/4.
*/
public class Test2 {
//资源类
static class Service {
public void print(String stringParam) {
try {
synchronized (stringParam) {
while (true) {
System.out.println(Thread.cu... | true |
f74ac13b626583dfdcf9e0d7f70b4e9a8247a67e | Java | vikassingh15/sponsors | /src/main/java/com/sponsors/service/UserService.java | UTF-8 | 284 | 1.859375 | 2 | [] | no_license | package com.sponsors.service;
import com.sponsors.dto.AccessTokenModel;
import com.sponsors.dto.UserLoginDto;
import com.sponsors.model.User;
public interface UserService {
AccessTokenModel getUserDetailForLogin(UserLoginDto loginDto);
User getUserByEmail(String email);
}
| true |
1284fb85b12a2483f40970e139adc89f7dfd171a | Java | rodrigoords/estruturaDados | /repeatedString/src/Solution.java | UTF-8 | 1,817 | 3.78125 | 4 | [] | no_license | /***
* Lilah has a string, s, of lowercase English letters that she repeated infinitely many times.
*
* Given an integer, n, find and print the number of letter a's in the first n letters of Lilah's infinite string.
*
* For example, if the string s='abcac' and n=10, the substring we consider is abcacabcac, the fir... | true |
3fb50923005b5d17c8afe4e26f338c824db86ccc | Java | larcz94/RestPro-POS-System | /Java/src/Interface/Employee.java | UTF-8 | 15,737 | 2.015625 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Interface;
//import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMessages;
import java.sql.Connection;
import ja... | true |
613d993cabea4d3f977efe3bebf6e65b2678b6bd | Java | zhangluting123/ZhiLvClient | /client/ZhiLvDemo/app/src/main/java/cn/edu/hebtu/software/zhilvdemo/Adapter/LocalSceneAdapter.java | UTF-8 | 2,938 | 2.203125 | 2 | [] | no_license | package cn.edu.hebtu.software.zhilvdemo.Adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import java.util.Date;
import java.util.List;... | true |
5c764160eac12fa016c012f1b986c4451940f13f | Java | jutzig/jabylon | /org.jabylon.properties/src/test/java/org/jabylon/properties/tests/ProjectTest.java | UTF-8 | 6,222 | 1.898438 | 2 | [] | no_license | /**
* (C) Copyright 2013 Jabylon (http://www.jabylon.org) and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
... | true |
bda033dc6b14cba8d3a76ebc502db8cd70791ca6 | Java | vahehambardzumyan/Main1 | /src/Main.java | UTF-8 | 613 | 3.5 | 4 | [] | no_license | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
System.out.println("Please enter number:");
Scanner scanner = new Scanner(System.in);
int m = scanner.nextInt();
int n = scanner.nextInt();
int s = scanner.nextInt();
System.out.... | true |
a98fe8d03df381f771d32306443d2109521a5d68 | Java | mauroxavier/Livraria | /Livraria/src/testes/TestaFuncionario.java | ISO-8859-1 | 1,471 | 2.609375 | 3 | [] | no_license | package testes;
import org.junit.Test;
import br.com.trabalhoPrimeFaces.dao.FuncionarioDAO;
import br.com.trabalhoPrimeFaces.persistence.FuncionarioVO;
/**
*
* Classe responsvel por realizar os testes unitarios do sistema.
*
* Estamos utilizando aqui o JUnit 4.10
*
*
* @author Augusto Csar F... | true |
7beb5b7de917dfeca1e41dd6e62ee6d233e00aeb | Java | HywelZhang/datastruct-algorithm | /algorithm/src/main/java/pers/hywel/algorithm/tree/BinaryTreeLevelOrderTraversal2.java | UTF-8 | 1,731 | 3.9375 | 4 | [] | no_license | package pers.hywel.algorithm.tree;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* 107. Binary Tree Level Order Traversal II [Medium]
*
* Given the root of a binary tree, return the bottom-up level order traversal of its nodes' values.
* (i.e., from left to right, level by l... | true |
d6e2cc009ba4a09dad244d59ce43246fdcce149e | Java | mobile02-2019/lyrio | /app/src/main/java/com/example/lyrio/models/Hotspot.java | UTF-8 | 3,042 | 2.15625 | 2 | [] | no_license | package com.example.lyrio.models;
public class Hotspot {
private String id;
private String title;
private String artUrl;
private String date;
private String date_fmt;
private String link;
private String descr;
private String pic_src;
private String art_pic_src;
private String p... | true |
de36ae3d9c8f309bb0b06b61599c7baf5a89cde4 | Java | smacena/SGPC | /projeto-sgpcWeb/src/br/sgpc/mbeans/MbMantemConfiguracao.java | ISO-8859-1 | 1,835 | 2.203125 | 2 | [] | no_license | package br.sgpc.mbeans;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import br.sgpc.dlo.MantemConfiguracaoDLO;
import br.sgpc.dlo.fun... | true |
89b7afe443d1b8a639225346941d3323a205e9e7 | Java | LeeTun2k2Edu/VietShop | /app/src/main/java/hcmute/edu/vn/id18110377/adapter/RecyleItemViewAdapter.java | UTF-8 | 2,806 | 2.046875 | 2 | [] | no_license | package hcmute.edu.vn.id18110377.adapter;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx... | true |
d51c4beaa2bbc138823006a7d39c561fb2751c80 | Java | zhongxingyu/Seer | /Diff-Raw-Data/23/23_b4062c97756637677676cb42099187866d4467e0/MemoizationGrammar/23_b4062c97756637677676cb42099187866d4467e0_MemoizationGrammar_t.java | UTF-8 | 2,270 | 2.1875 | 2 | [] | no_license | /*
* SonarSource Language Recognizer
* Copyright (C) 2010 SonarSource
* dev@sonar.codehaus.org
*
* 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... | true |
c6034705e7c83cedf6b92a698be7b5f08d826506 | Java | Dmitryyyyo/java_1_tuesday_2020_online | /src/test/java/student_eduards_jasvins/lesson_13/day_5/task_31_32/StringCalculatorTest.java | UTF-8 | 1,640 | 2.796875 | 3 | [] | no_license | package student_eduards_jasvins.lesson_13.day_5.task_31_32;
import org.junit.Test;
import static org.junit.Assert.*;
public class StringCalculatorTest {
StringCalculator stringCalculator = new StringCalculator();
@Test
public void addZero() {
int result = stringCalculator.addNumb("");
... | true |
a0f309c8c9f71ca11f4246f526b77bf6a6471c3b | Java | AmitRoy3370/Code-forces | /A_Parallelepiped.java | UTF-8 | 1,920 | 3.078125 | 3 | [] | no_license |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class A_Parallelepiped {
static Scanner in=new Scanner();
static PrintWriter out=new PrintWriter(System.out);
static long a,b,... | true |
52d7f89f04fe722478fb6a18be195339f97030fb | Java | VladLinkevich/KPP_Game | /src/sample/Collision.java | UTF-8 | 819 | 3.078125 | 3 | [] | no_license | package sample;
import java.util.List;
public class Collision {
public static boolean AABB(final Rect recA, final Rect recB) {
return recA.x + recA.w > recB.x &&
recB.x + recB.w > recA.x &&
recA.y + recA.h > recB.y &&
recB.y + recB.h > recA.y;
... | true |
41c4069ba0160b3812e47b1ab88e9245fcbd83e2 | Java | gobalkrishnanv/Collaboration-Backend | /backend/src/main/java/com/niit/oracle/DAO/ProfilePictureDAO.java | UTF-8 | 601 | 2 | 2 | [] | no_license | package com.niit.oracle.DAO;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql.SQLException;
import java.util.List;
import org.springframework.stereotype.Service;
import com.niit.oracle.model.ProfilePicture;
@Service
public interface ProfilePictureDAO {
public List<... | true |
33dce49e8338650122253b22d9ea7f845d159ba4 | Java | hugocardososilva/SysconTec | /src/main/java/mb/CondominioMB.java | UTF-8 | 2,175 | 2.375 | 2 | [] | no_license | package mb;
import java.io.Serializable;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import dao.DAOCondominio;
import model.Condominio;
import model.Telefone;
@ManagedBean
@ViewScoped
public class CondominioMB extends AbstractMB imple... | true |
37e32607f7edb7c546916c167062fd55b43050ce | Java | ghtmdaks/javasource | /Api/src/string/SubString.java | UHC | 235 | 2.84375 | 3 | [] | no_license | package string;
public class SubString {
public static void main(String[] args) {
String ssn = "880515-1220146";
//ڿ ߶
System.out.println(ssn.substring(7));
System.out.println(ssn.substring(0,6));
}
}
| true |
b276bfe832e94abb5719f7bc481f151bd15cd35f | Java | pedrocamejo/modelodemeter | /test/cpc/negocio/demeter/gestion/NegocioMaquinariaImpropiaTest.java | UTF-8 | 3,171 | 2.09375 | 2 | [] | no_license | package cpc.negocio.demeter.gestion;
import static org.junit.Assert.*;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import cpc.modelo.demeter.gestion.EstadoMaquinariaImpropia;
import cpc.modelo.demeter.gestion.ImplementoImpropio;
import cpc.modelo.demeter.gestion.ImplementoUnidad;
import... | true |
4018f3ddaede27252e3906c7ff8316a6f40141f0 | Java | shlshl211/releasator | /samples/aimexample/aimexample-cli/src/test/java/aim/demo/AimDemoTest.java | UTF-8 | 371 | 1.898438 | 2 | [] | no_license | package aim.demo;
import junit.framework.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* @author Petr Kozelka
*/
public class AimDemoTest {
@Test
public void testMain() throws Exception {
AimDemo.main();
}
@Ignore("this represents a fix")
@Test
public void breakingTest... | true |