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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4bda963bbc3985fbf299e099fe5e992e15814caa | Java | ToddBodnar/faster_pca | /src/faster_pca/faster_pca.java | UTF-8 | 13,279 | 1.96875 | 2 | [] | no_license | package faster_pca;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.Vector;
import weka.core.DenseInstance;
import weka.core.Instance;
import weka.core.Instances;
import weka.core.OptionHandler;
import weka.core.SparseInstance;
import weka.core.Utils;
import weka.core.matrix.EigenvalueDecomp... | true |
c49fe983a57b2a7121c33d90d2b945df01b05a86 | Java | MarselSidikov/JavaItis2 | /Tests/src/main/java/test1/B.java | UTF-8 | 119 | 1.820313 | 2 | [] | no_license | package test1;
public class B {
B b = new B();
public int show() {
return (true ? null : 0);
}
}
| true |
31d478a97e57bd41d85113717b34649d86032063 | Java | yudafatah/LeaveRequestRestApi | /src/main/java/com/mii/leaverequestmaven/tools/sendMailNotif.java | UTF-8 | 1,766 | 2.3125 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mii.leaverequestmaven.tools;
import java.util.Properties;
import javax.mail.Message;
import javax.mail.MessagingException;... | true |
d9691d83330f1a9bf2d31d2051c23c8db35faadd | Java | JetBrains/intellij-plugins | /Meteor/src/com/jetbrains/plugins/meteor/ide/action/MeteorPackagesUtil.java | UTF-8 | 7,333 | 1.515625 | 2 | [] | no_license | package com.jetbrains.plugins.meteor.ide.action;
import com.intellij.ide.util.PropertiesComponent;
import com.intellij.lang.ecmascript6.resolve.JSFileReferencesUtil;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.project.Project;
i... | true |
b494273447f379a6bc1d2c98d1adbd2fbd3c49fe | Java | xabaohui/zis | /src/main/java/com/zis/api/response/BookInfoQueryResponse.java | UTF-8 | 389 | 1.664063 | 2 | [] | no_license | /**
*
*/
package com.zis.api.response;
import java.util.List;
/**
* @author lvbin 2015-10-10
*/
public class BookInfoQueryResponse extends BaseApiResponse {
private List<BookInfoQueryData> resultList;
public List<BookInfoQueryData> getResultList() {
return resultList;
}
public void setResultList(List<Bo... | true |
534415f896bd81a51e559a3ade348cf3df2a0ac3 | Java | shroysha/scada-war | /src/main/groovy/dev/shroysha/scada/war/controller/notify/alert/DummyAlertServer.java | UTF-8 | 2,698 | 2.765625 | 3 | [] | no_license | package dev.shroysha.scada.war.controller.notify.alert;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Scanner;
import java.util.logging.Level;
import java.util.logging.Logger;
public class DummyAlertServer {... | true |
8bceb7dd7bf84319a3ff4e3816b9382a985664d0 | Java | newtonker/wechat6.5.3 | /app/src/main/wechat6.5.3/android/support/design/internal/ScrimInsetsFrameLayout.java | UTF-8 | 3,276 | 1.554688 | 2 | [] | no_license | package android.support.design.internal;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.support.design.a.h;
import android.support.design.a.i;
import android.support.v4.view.a... | true |
efaeec3d26c5ffa2514aa7a9d9a49395c50a3d04 | Java | 88nafees77/system-monitor-app | /src/main/java/com/ziroh/systemusagestats/systeminfo/SystemServices.java | UTF-8 | 366 | 2.015625 | 2 | [] | no_license | package com.ziroh.systemusagestats.systeminfo;
public interface SystemServices {
public long getTotalCPU();
public double getCPUUsage();
public long getMemoryUsage();
public long getTotalMemory();
public double getBatteryUsage();
public long getMemoryUsageInApp();
public double getCP... | true |
491f2f2b949549992cb1ac2424bf2ba2a4ff197c | Java | hejun654007112/JavaCode | /基础班/day03/DemoMax.java | UTF-8 | 192 | 2.5625 | 3 | [] | no_license | class DemoMax {
public static void main(String[] args) {
int a = 15;
int b = 19;
int c = 12;
int max1 = a > b ? a:b;
int max2 = max1 > c ? max1:c;
System.out.println(max2);
}
}
| true |
fe88708cd4f603b1fcae1af0d6d004ce9c1a3dfb | Java | FGA-TPPE/programming-techniques-on-emerging-platforms | /trabalho-tdd/patex/src/main/java/com/tppe/tdd/patex/Exceptions/EscritaNãoPermitidaException.java | UTF-8 | 201 | 2.09375 | 2 | [] | no_license | package com.tppe.tdd.patex.Exceptions;
public class EscritaNãoPermitidaException extends Exception{
public EscritaNãoPermitidaException(String errorMesage) {
super(errorMesage);
}
}
| true |
855298c68591dd9e8d857d4a528c58d66c092c07 | Java | Xuguozong/algorithms4th-edition | /src/com/work/algorithms4thedition/sort/insertion/InsertionSortExample.java | UTF-8 | 1,429 | 3.75 | 4 | [] | no_license | package com.work.algorithms4thedition.sort.insertion;
import com.work.algorithms4thedition.sort.Example;
/**
* ClassName InsertionSortExample
* Description 插入排序
* 时间和空间复杂度: 对于随机排列的长度为 N 且主键不重复的数组,平均情况下插入排序需要~ N 2 /4 次比
* 较以及~ N 2 /4 次交换。最坏情况下需要~ N 2 /2 次比较和~ N 2 /2 次交换,最好情况下需要 N-1
* 次比较和 0 次交换。
*
* 特点: 插入排序对于部... | true |
61a17a77eb173ec00a9dbc9153d72614a6525dcd | Java | saber13812002/DeepCRM | /Code Snippet Repository/Spring/Spring1786.java | UTF-8 | 491 | 2.796875 | 3 | [] | no_license | @Override
public Set<String> getStereotypes(Element element) {
Set<String> stereotypes = new LinkedHashSet<>();
ElementKind kind = element.getKind();
if (kind != ElementKind.CLASS && kind != ElementKind.INTERFACE) {
return stereotypes;
}
for (AnnotationMirror annotation : this.typeHelper.getAllAnnotation... | true |
3b6da46e9d0849e81fd7e0c89e6a34360f076a19 | Java | shayhatsor/zookeeper | /src/java/main/org/apache/zookeeper/server/quorum/flexible/QuorumHierarchical.java | UTF-8 | 8,942 | 2.578125 | 3 | [
"MIT",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"LGPL-2.1-only",
"CC-PDDC",
"BSD-2-Clause"
] | permissive | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | true |
44b1a86da11db7ac39c15d9720eed8d39c986827 | Java | ParindaPalansooriya/creditcollectorowner | /app/src/main/java/com/modifica/creditcollectorapp/Due_infor.java | UTF-8 | 4,729 | 1.835938 | 2 | [] | no_license | package com.modifica.creditcollectorapp;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.google.firebase.database.DataSna... | true |
04d38550230911120b4591434665c7e2a4410994 | Java | bodjabodja/TestBogdanLuxTraining | /src/collection/hashSetPractice/main/HashMapIml.java | UTF-8 | 2,821 | 3.375 | 3 | [] | no_license | package collection.hashSetPractice.main;
import java.util.ArrayList;
import java.util.List;
/**
* Created by dsk16 on 10/10/2018.
*/
//TODO: homework to 11.10
public class HashMapIml<K, V> implements Map<K, V> {
private int size;
private final int BUCKET_SIZE = 5;
private List<Entry<K, V>>[] buckets =... | true |
ae1224cfad04c349cfb862623b20574f3e38a7f1 | Java | f19ba073/GraduaionResearch_13 | /app/src/main/java/com/example/graduaionresearch_13/VocabularyBookGraphActivity.java | UTF-8 | 3,789 | 2.390625 | 2 | [] | no_license | package com.example.graduaionresearch_13;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import com.github.mikephil.charting.animation.Easing;... | true |
048ae58b386f4a4ce6fd5d0b6a9c10427d5d8e51 | Java | IgnaceFrederix/PXL-1TIN-Java-Essentials | /JavaEssentials/H17/src/modelView/HigerhLowerConsole.java | UTF-8 | 1,180 | 3.640625 | 4 | [] | no_license | package modelView;
import java.util.*;
import modelView.HigherLowerGame.Result;
public class HigerhLowerConsole {
public static void main(String[] args) {
HigherLowerGame game = new HigherLowerGame(10); // >=0 en <=10
Scanner scanner = new Scanner(System.in);
HigherLowerGame.Result result = nul... | true |
1acc260e532e425465ac47bf0fb552598b7bf332 | Java | henrypoter/tomcatInfinispanSessionManager | /tomcatDistributedSessionManager/src/test/java/org/apache/catalina/session/infinispan/InfinispanSessionManagerTest.java | UTF-8 | 5,645 | 2.46875 | 2 | [] | no_license | package org.apache.catalina.session.infinispan;
import mockit.Expectations;
import mockit.Mocked;
import org.apache.catalina.Engine;
import org.apache.catalina.LifecycleException;
import org.apache.catalina.Session;
import org.apache.catalina.session.StandardSession;
import org.testng.annotations.BeforeMethod;
impor... | true |
baa4a422947dc895f8be79b34eb878fe51440b3f | Java | milanbor88/sitrepo | /projekat-SitRepo/src/main/java/com/example/service/Implement/PovredjeniDrugoVoziloServiceImp.java | UTF-8 | 922 | 2.03125 | 2 | [] | no_license | package com.example.service.Implement;
import com.example.model.PovredjeniDrugoVozilo;
import com.example.repository.PovredjeniDrugoVozilosRepository;
import com.example.service.PovredjeniDrugoVoziloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
... | true |
8b014c0b349ebd10a0a4506c02745a1d0623d575 | Java | OsmiumKZ/DormServer | /src/main/java/kz/dorm/api/dorm/util/gson/Dorm.java | UTF-8 | 487 | 2.21875 | 2 | [
"MIT"
] | permissive | package kz.dorm.api.dorm.util.gson;
import com.google.gson.annotations.SerializedName;
import kz.dorm.utils.DataConfig;
public class Dorm {
/* Индивидуальный номер. */
@SerializedName(DataConfig.DB_DORM_DORM_ID)
private final int id;
/* Название по ID. */
@SerializedName(DataConfig.DB_DORM_DORM_... | true |
34d78b205dc885772b52432d471a5e2ccfbe206f | Java | ssanusi/Advance-Java | /src/generics/User.java | UTF-8 | 253 | 2.8125 | 3 | [] | no_license | package generics;
public class User implements Comparable<User> {
private int point;
public User(int point) {
this.point = point;
}
@Override
public int compareTo(User other) {
return point - other.point;
}
}
| true |
d979e2a2c8e88351e6915f4912db8b0e8683439b | Java | Azure/azure-kusto-java | /data/src/main/java/com/microsoft/azure/kusto/data/exceptions/DataClientException.java | UTF-8 | 591 | 2.078125 | 2 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
package com.microsoft.azure.kusto.data.exceptions;
/*
This class represents an error that happened on the client side and is therefore considered permanent
*/
public class DataClientException extends KustoDataExceptionBase {
public Data... | true |
497bf8221d4e5778ee6ee2b69768d39209a56615 | Java | appddictionstudio/Appddiction-Challenge-API | /src/main/java/com/appddiction/challenge/api/appddiction_challenge_api/controllers/PersonController.java | UTF-8 | 1,465 | 2.234375 | 2 | [] | no_license | package com.appddiction.challenge.api.appddiction_challenge_api.controllers;
import java.util.List;
import com.appddiction.challenge.api.appddiction_challenge_api.models.Person;
import com.appddiction.challenge.api.appddiction_challenge_api.repositories.PersonRepository;
import org.springframework.beans.factory.anno... | true |
6f902c958ef0dc2a8a35db906941e7629aeebd0d | Java | Kanishka6996/FLock | /app/src/main/java/com/kanishka/flock/AddLockActivity.java | UTF-8 | 5,865 | 1.921875 | 2 | [] | no_license | package com.kanishka.flock;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActi... | true |
5d218cc3d674012136c10cc11e5f1bdcbe68d9c9 | Java | evplima/APS_SD | /APS_SD2/APS_SD Webservice (Spring Boot)/src/main/java/com/example/APS_SD/controllers/SPTransController.java | UTF-8 | 2,624 | 2.171875 | 2 | [] | no_license | package com.example.APS_SD.controllers;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.ResponseEntity;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap... | true |
d0138f24817a23193e3f0ba744f0b9127329fe34 | Java | cmeehan1991/Vulcan-Desktop | /src/main/java/com/cbmwebdevelopment/tablecellfactories/CheckBoxCellFactory.java | UTF-8 | 3,165 | 2.5 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.cbmwebdevelopment.tablecellfactories;
import com.cbmwebdevelopment.accounting.OutstandingTransactionsTableController.Outst... | true |
b42195f92a5991ac6fa4eee421b1a90a3d2ff5df | Java | KetBorshe/qaauto-4.02.2019 | /src/test/java/page/MailPage.java | UTF-8 | 1,142 | 2.40625 | 2 | [] | no_license | package page;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import static java.lang.Thread.sleep;
public class MailPage extends BasePage {
@FindBy(xpath = "//tbody[/tr]")
private WebElem... | true |
5c0933f6c80031252f50729966450ee2189874e0 | Java | hanchao5272/hellospring | /src/main/java/pers/hanchao/autowire/MyFavoriteAutowireTypeByAnnotation.java | UTF-8 | 1,615 | 2.734375 | 3 | [] | no_license | package pers.hanchao.autowire;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
public class MyFavoriteAutowireTypeByAnnotation {
private DefaultAutoWire defaultAutoWire;
//通过@Autowired注解setter,默认按byType自动装配
@Autowired
publ... | true |
0465957d48e5e35e4e92cd318f67085e550d9be2 | Java | kensonwu/spring-boot-mybatis | /src/main/java/com/kenson/CatService.java | UTF-8 | 900 | 2.15625 | 2 | [] | no_license | /**
* Project Name:spring-boot-mybatis
* File Name:CatService.java
* Package Name:com.kenson
* Date:Apr 17, 20185:08:58 PM
* Copyright (c) 2018, wc-08-03@hotmail.com All Rights Reserved.
*
*/
package com.kenson;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowi... | true |
bbfee63ad4f4e97dc2636c8ca94f0e9dc198b0de | Java | edamam/SnakeCamel | /snake-camel/test/snakecamel/SnakeCamelTest.java | UTF-8 | 545 | 2.640625 | 3 | [] | no_license | package snakecamel;
import static org.junit.Assert.*;
import org.junit.Test;
public class SnakeCamelTest extends SnakeCamelUtil{
@Test
public void snakeToCamelcasetest() {
String words = "abc" ;
SnakeCamelUtil w = new SnakeCamelUtil();
String wo = w.snakeToCamelcase(words);
assertEquals("abc", words);
}
... | true |
00fe66d68aa5795655f9d108743f4a05b8c96146 | Java | hsj321/android_softsquared | /ListViewProject/app/src/main/java/com/example/listviewproject/InformationActivity.java | UTF-8 | 532 | 1.617188 | 2 | [] | no_license | package com.example.listviewproject;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.ListView;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
public class InformationActivity exten... | true |
6af3f184349f44aa3cf8abe79bf76430157b8cff | Java | vanshit7/Insurance | /packagePolicy.java | UTF-8 | 278 | 2.78125 | 3 | [] | no_license | package policy;
public class packagePolicy extends Policy{
public packagePolicy()
{
selfSettle=0.5;
thirdSettle=0.8;
}
public void func(int selfDamage,int oncomingDamage)
{
selfSettle *= selfDamage;
thirdSettle *= oncomingDamage;
}
}
| true |
bf03c9d7ad515432031fde1fdbbd1f8f8a4598e5 | Java | Deepima04/Fiesta | /app/src/main/java/com/example/deepi/fiesta/Signup.java | UTF-8 | 1,575 | 2.59375 | 3 | [] | no_license | package com.example.deepi.fiesta;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
public class Signup extends AppCompatActivity {
FiestaDBManager fdm=null;
EditText txtname, txtpass, txtconpass;... | true |
7d03f8de2e8c57d4f1a6a7d69c9c41ff609b1267 | Java | ranadheer-bolli/Spring | /AOP-DEMO/src/com/ranadheer/aopdemo/aspect/MyCloudDemoAspect.java | UTF-8 | 1,197 | 2.453125 | 2 | [] | no_license | package com.ranadheer.aopdemo.aspect;
import com.ranadheer.aopdemo.Account;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.c... | true |
3727f1cd1c8c94e5a0629307e020c9748ae5bf6e | Java | julenugalde/proba | /_Sandbox/src/eus/julenugalde/thinkinginjava/rtti/TestClass.java | UTF-8 | 1,410 | 3.65625 | 4 | [] | no_license | package eus.julenugalde.thinkinginjava.rtti;
import java.lang.reflect.Method;
import java.lang.reflect.Parameter;
public class TestClass {
public static void main (String[] args) {
System.out.println("main en marcha");
Clase1 obj = new Clase1();
System.out.println("Objeto Clase 1 creado - " + obj.toString());
... | true |
67573fc1254c628485ad9535ac03e619bbd98bb3 | Java | woofgl/knowledge | /modules/japid-0.9.2/tests/cn/bran/japid/compiler/TemplateClassTest.java | UTF-8 | 765 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | package cn.bran.japid.compiler;
import static org.junit.Assert.*;
import org.junit.Test;
public class TemplateClassTest {
private String validSrc = "package testdir.d1;\n" +
"\n" +
"public class A {\n" +
" Boo boo = new Boo();\n" +
"}\n" +
"";
private String invalidSrc = "package testdir.d1;\n" +
... | true |
d62d096d06b859d8c58be403001e6bb3ead1d427 | Java | DanielHegedus/asdteam | /hu.asd.towerdefence/src/hu/asd/towerdefence/Printer.java | UTF-8 | 5,391 | 2.984375 | 3 | [] | no_license | package hu.asd.towerdefence;
import java.io.IOException;
import java.util.List;
public class Printer {
//error message
public static void printError(String err){
System.out.println("ERROR: "+err);
}
//jatek vege kiirasok
public static void printGameOver(boolean playerWon) {
if (playerWon){... | true |
d489e9bc1cfbf8d9cc44fad57d902ef0676d113d | Java | Kalabaza/Sensors | /app/src/main/java/mx/iteso/msc/rodriguez/roberto/sensors/AccelerometerImageView.java | UTF-8 | 3,860 | 2.421875 | 2 | [] | no_license | package mx.iteso.msc.rodriguez.roberto.sensors;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.drawable.BitmapDrawable;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
impor... | true |
4b4589fc3e1a228f0da097787fd648905a97fef5 | Java | wangscript/lsqoa | /lsq/src/main/java/com/xpsoft/oa/service/statistics/impl/TicketApplyServiceImpl.java | UTF-8 | 489 | 1.859375 | 2 | [] | no_license | package com.xpsoft.oa.service.statistics.impl;
import com.xpsoft.core.service.impl.BaseServiceImpl;
import com.xpsoft.oa.dao.statistics.TicketApplyDao;
import com.xpsoft.oa.model.statistics.TicketApply;
import com.xpsoft.oa.service.statistics.TicketApplyService;
public class TicketApplyServiceImpl extends BaseServic... | true |
ae12e4bd976973bb3c31beaf3ad29b55170f2e7c | Java | Mridhul40/PmpAdminPanel | /src/com/seller/pmp/services/SellerService.java | UTF-8 | 450 | 2 | 2 | [] | no_license | package com.seller.pmp.services;
import java.util.List;
import com.seller.pmp.entities.JWT;
import com.seller.pmp.entities.Seller;
public interface SellerService {
public List<Seller> getAllSellers();
public Seller getSeller(int id);
public JWT addSeller(Seller seller);
public Seller updateSeller(Seller seller)... | true |
a29111bc4c6c00bbe1b85a59682a1890fdf13dce | Java | olgaboiar/MintHTTPServer | /src/main/java/com/olgaboiar/mint/handlers/RouteHandler.java | UTF-8 | 295 | 1.828125 | 2 | [
"MIT"
] | permissive | package com.olgaboiar.mint.handlers;
import com.olgaboiar.mint.*;
public class RouteHandler implements IHandler {
@Override
public Response handleRequest(Request request, IRouteMap routes) {
return ResponseGenerator.generateResponse(Constants.Status.STATUS_CODE_200);
}
}
| true |
9a3c9d22a1e17f929c415cefc64b341fa5f3fd1b | Java | dvien/jeebiz-admin | /jeebiz-admin-extras/jeebiz-admin-extras-authz-feature/src/main/java/net/jeebiz/admin/extras/authz/feature/web/vo/AuthzFeatureRenewVo.java | UTF-8 | 3,705 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (C) 2018 Jeebiz (http://jeebiz.net).
* All Rights Reserved.
*/
package net.jeebiz.admin.extras.authz.feature.web.vo;
import javax.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.SafeHtml;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations... | true |
1d615fd8573e710cac3f8e91fc3e3cfbb804373b | Java | cuba-platform/cuba | /modules/gui/src/com/haulmont/cuba/gui/sys/AbstractScanConfiguration.java | UTF-8 | 2,794 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2008-2018 Haulmont.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | true |
acad3ad9974c4b6280ec9049fec74e5f9f35312e | Java | pramodkumarp6/AutoTextView | /app/src/main/java/com/pramod/autotextview/api/ApiInterface.java | UTF-8 | 547 | 1.820313 | 2 | [] | no_license | package com.pramod.autotextview.api;
import com.pramod.autotextview.RegionRes;
import com.pramod.autotextview.districtRes.DistrictRes;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
public interface ApiInterface {
... | true |
a0585e938508ec85c33422456169db1902bcfe36 | Java | mihaistancu/Android | /Spykes/CloudVision/app/src/main/java/inovation/lab/hearthepicture/ImageManager.java | UTF-8 | 4,437 | 2.375 | 2 | [] | no_license | package inovation.lab.hearthepicture;
import android.Manifest;
import android.app.Activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Environment;
import android.provider.MediaStore;
import android.support.v7.app.Ale... | true |
f253f696f872ab2f5424019e5ceb5adfe9fa624f | Java | adrianprecub/widget-service | /src/main/java/com/miro/widget/exception/WidgetException.java | UTF-8 | 262 | 2.3125 | 2 | [] | no_license | package com.miro.widget.exception;
public class WidgetException extends RuntimeException {
public WidgetException(String msg) {
super(msg);
}
public WidgetException(String msg, Throwable throwable) {
super(msg, throwable);
}
}
| true |
5c0e31abc9539d9848b7f791728f4d44429d80ab | Java | Marcela1396/Mapas | /app/src/main/java/com/example/marce/mapas/datosAPI/PlantasService.java | UTF-8 | 322 | 1.859375 | 2 | [] | no_license | package com.example.marce.mapas.datosAPI;
import retrofit2.Call;
import com.example.marce.mapas.models.Plantas;
import java.util.List;
import retrofit2.http.GET;
/**
* Created by marce on 06/11/2017.
*/
public interface PlantasService {
@GET("e9kg-ftpd.json")
Call<List<Plantas>> obtenerListadeSitios();
... | true |
f4c4a5fc7540e03ac500d83bab63c724902fb1e6 | Java | cy-masaya-kudo/conanSeek01_Android | /Gency/gency/src/main/java/com/gency/commons/misc/GencyPackageUtil.java | UTF-8 | 4,647 | 2.46875 | 2 | [] | no_license | package com.gency.commons.misc;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager.NameNotFoundException;
import android.net.Uri;
import com.gency.commons.log.GencyDLog;
//import com.gency.commons.tracker.GencyTrackerWrapper;
/***
* <h3>アプリのインストールの処理を行うクラス</h3>
... | true |
5d5cc2cca153fafe3f955aabc2855822924b0a94 | Java | twistedtwin/litiengine | /utiliti/src/de/gurkenlabs/utiliti/Program.java | UTF-8 | 44,054 | 1.679688 | 2 | [
"MIT"
] | permissive | package de.gurkenlabs.utiliti;
import java.awt.AWTException;
import java.awt.BorderLayout;
import java.awt.Canvas;
import java.awt.CheckboxMenuItem;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Event;
import java.awt.Font;
import java.awt.Menu;
import java.awt.MenuBar;
i... | true |
3fe64098a32cb8947cb156ef21bb324bc2af2ab9 | Java | gan713/mifaso | /Mifaso/app/src/main/java/com/mifashow/SalonActivity.java | UTF-8 | 47,011 | 1.703125 | 2 | [] | no_license | package com.mifashow;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.Header;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http... | true |
eba539071a5669d3fc07df9dd0c46c33e780da61 | Java | FunnyAnimals/AndroidProject | /wi_fi_modulator/src/ru/Allan/wi_fi_modulator/WifiHelper.java | UTF-8 | 3,801 | 2.46875 | 2 | [] | no_license | package ru.Allan.wi_fi_modulator;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import android.content.Context;
import android.net.wifi.WifiConfiguration;
import android.net.wifi.WifiManager;
public class WifiHelper {
private Context context;
private WifiManager wifiManager... | true |
563c038630a357892c1cb320ff044dffa06e054c | Java | TeamJarvisUCLA/SmileWebApp | /src/ve/smile/gestion/ayudas/egreso_familiar/VM_EgresoFamiliarIndex.java | UTF-8 | 14,583 | 1.820313 | 2 | [] | no_license | package ve.smile.gestion.ayudas.egreso_familiar;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import karen.core.crux.alert.Alert;
import karen.core.util.payload.UtilPayload;
import karen.core.util.validate.UtilVali... | true |
e1a796cd04dd2f77aa36d9f2c78b062d7b89fb59 | Java | alexmereuta/IPPLab | /Lab1/builder/src/builder/MeatBurger.java | UTF-8 | 254 | 2.75 | 3 | [] | no_license | package builder;
//this class extends the burger class
public class MeatBurger extends Burger {
@Override
public String price() {
return "40 lei";
}
@Override
public String name() {
return "Any meat burger";
}
} | true |
9e0e1e5f3910a3a47f303bbae036322196eb6676 | Java | Mayesamomo/DesignPattern | /src/FactoryPattern/BillPayPlan.java | UTF-8 | 489 | 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 FactoryPattern;
/**
*
* @author micha
*/
public class BillPayPlan extends MobilePlan {
private double BillRate;
pr... | true |
3b027a5ee51134f876ea64b6a62724978316f48b | Java | torrances/swtk-eng | /eng-asm/src/main/java/org/swtk/eng/asm/svc/SoundexService.java | UTF-8 | 2,357 | 2.96875 | 3 | [
"Apache-2.0"
] | permissive | package org.swtk.eng.asm.svc;
import com.trimc.blogger.commons.exception.BusinessException;
/**
* One of the first derived match codes schemes is called the Soundex algorithm.
*
* It was first patented in 1918 ( Odell, Russell, 1918 ) and was used in the 1930s as a manual process to match records in the Socia... | true |
79cd41a31ddcf72680dda37a3c4c73eac783abe3 | Java | 921668753/wztx-shipper-android | /ZWBH-Android/app/src/main/java/com/ruitukeji/zwbh/entity/mine/mywallet/recharge/RechargeRecordBean.java | UTF-8 | 3,913 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package com.ruitukeji.zwbh.entity.mine.mywallet.recharge;
import com.ruitukeji.zwbh.entity.BaseResult;
import java.util.List;
/**
* Created by Admin on 2017/7/25.
*/
public class RechargeRecordBean extends BaseResult<RechargeRecordBean.ResultBean> {
public class ResultBean {
/**
* list : [{... | true |
cdcfb11d187a8b64edc8ac5411174d89991e5f26 | Java | CesarChaMal/acs-aem-commons | /bundle/src/main/java/com/adobe/acs/commons/util/WorkflowHelper.java | UTF-8 | 3,072 | 1.945313 | 2 | [
"Apache-2.0"
] | permissive | /*
* #%L
* ACS AEM Commons Bundle
* %%
* Copyright (C) 2016 Adobe
* %%
* 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... | true |
4a7a02e4a96dead614e8ca461e58204021891ea5 | Java | SpyyderGit/Bank_App | /src/test/java/TestClientsDao.java | UTF-8 | 927 | 2.265625 | 2 | [] | no_license | import org.junit.Before;
import ua.spalah.bank.models.Client;
import ua.spalah.bank.services.AccountDao;
import ua.spalah.bank.services.ClientDao;
import ua.spalah.bank.services.ClientService;
import ua.spalah.bank.services.impl.AccountDaoImpl;
import ua.spalah.bank.services.impl.ClientDaoImpl;
import ua.spalah.bank.se... | true |
d9fa4de06ecbef06a92bb5e7d39d38b926ea86a1 | Java | pvrsa/PlayerDatabaseAndroid | /app/src/main/java/com/example/root/first/MyDBHandler.java | UTF-8 | 2,714 | 2.65625 | 3 | [] | no_license | package com.example.root.first;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.database.Cursor;
import android.content.Context;
import android.content.ContentValues;
import android.widget.ProgressBar;
public class MyDBHandler extends SQLiteOpenHelper{
... | true |
5c4b23f444389c58f4b2067e8f992d7d48a73691 | Java | KirisameMarisas/Konachan | /app/src/main/java/com/ess/anime/wallpaper/pixiv/login/IPixivLoginCallback.java | UTF-8 | 174 | 1.59375 | 2 | [] | no_license | package com.ess.anime.wallpaper.pixiv.login;
public interface IPixivLoginCallback {
void onLoginSuccess();
void onLoginError();
void onConnectPixivFailed();
}
| true |
688eb735991f40bef73680f7d145227d43fa073b | Java | bellmit/origin | /family_order/src/soa/com/asiainfo/veris/crm/order/soa/person/busi/changeTeleNber/order/trade/ChangeTeleNbrTrade.java | UTF-8 | 16,404 | 1.5625 | 2 | [] | no_license |
package com.asiainfo.veris.crm.order.soa.person.busi.changeTeleNber.order.trade;
import com.ailk.common.data.IData;
import com.ailk.common.data.IDataset;
import com.ailk.common.data.impl.DataMap;
import com.ailk.common.data.impl.DatasetList;
import com.ailk.org.apache.commons.lang3.StringUtils;
import com.asiainfo.ve... | true |
1ac94b37f2f4f7dc765feff5e860bfd54161e5e8 | Java | pericleskb/whats-cooking | /app/src/test/java/com/example/whatscooking/utilities/MediaOperationsTest.java | UTF-8 | 480 | 2.296875 | 2 | [] | no_license | package com.example.whatscooking.utilities;
import org.junit.Test;
import static com.google.common.truth.Truth.assertThat;
public class MediaOperationsTest {
@Test
public void getUniqueImageName_twoAsyncCalls_generateTwoDifferentNames() throws InterruptedException {
String name1 = MediaOperations.get... | true |
1071aef83107cff71bc5fcab36267930bcad89c5 | Java | Allen-Ning/Algorithm-solutions | /java/Solution796.java | UTF-8 | 228 | 2.578125 | 3 | [] | no_license | class Solution {
public boolean rotateString(String A, String B) {
// eg. trick -> e.g. // abcde|abcde
// cde ab
return A.length() == B.length() && (A + A).contains(B);
}
}
| true |
f2b05ab065a5b31e83a54fafbdea0c6ca684f5d6 | Java | simple4/simple-mvc-impl | /src/main/java/net/simpleframework/mvc/component/ui/tree/TreeUtils.java | UTF-8 | 4,919 | 2.109375 | 2 | [] | no_license | package net.simpleframework.mvc.component.ui.tree;
import java.util.Arrays;
import java.util.Collection;
import java.util.LinkedList;
import net.simpleframework.common.Convert;
import net.simpleframework.common.StringUtils;
import net.simpleframework.common.bean.BeanUtils;
import net.simpleframework.common.h... | true |
5bba4da289a68338947acebbecc6ac1ec83f9917 | Java | matias96rivas/Arriendo | /src/java/Duoc/Portafolio/Clases/Pago.java | UTF-8 | 1,045 | 2.375 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Duoc.Portafolio.Clases;
import java.util.Date;
/**
*
* @author Dheler!
*/
public class Pago {
private int id_pago;
private... | true |
1ccef2aeaa3cba2d8cd3f8e1e786311f1d6aaa8d | Java | dovanduy/SystemUIGoogle | /androidx/core/provider/FontsContractCompat.java | UTF-8 | 20,537 | 1.671875 | 2 | [] | no_license | //
// Decompiled by Procyon v0.5.36
//
package androidx.core.provider;
import android.database.Cursor;
import androidx.core.util.Preconditions;
import androidx.core.graphics.TypefaceCompatUtil;
import java.util.HashMap;
import java.nio.ByteBuffer;
import java.util.Map;
import java.util.Collection;
import java.util.... | true |
2fb90595394b880e302fbc943092d932ac611104 | Java | ssccbb/bookexchange | /net/src/main/java/me/jessyan/updateplugin/DownloadService.java | UTF-8 | 372 | 1.851563 | 2 | [] | no_license | package me.jessyan.updateplugin;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
/**
* Create by sung at 2020/6/10
*
* @desc: 用于下载更新文件apk
* @notice: 不关联任何UI界面
*/
public class DownloadService extends Service {
@Override
public IBinder onBind(Intent intent) {
... | true |
4ccdb86d8ee5ce82ac6e3bc5211867c0e0c92722 | Java | XiaoSiYao/Ledger_App | /app/src/main/java/stu/xuronghao/ledger/fragment/RecordFrag.java | UTF-8 | 3,299 | 2.140625 | 2 | [] | no_license | package stu.xuronghao.ledger.fragment;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.viewpager.widget.ViewPager;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
impor... | true |
f61bf3fe141e52566c81db7133087e74b96084b4 | Java | NikolaosPattelakis/SDU-SE-ST-18-2.-Semester-Gruppe-15 | /Projekt kode/SmartSag/src/View/ViewEvents.java | UTF-8 | 153 | 2.109375 | 2 | [] | no_license | package View;
/*
Interface for events that can occur with each View.
*/
public abstract class ViewEvents {
public abstract void onViewInit();
}
| true |
3165da02121ec1d67eeb90537e3d028e677e178a | Java | AugiteSoul/MorePlanets | /1.7.10/src/main/java/stevekung/mods/moreplanets/planets/fronos/blocks/BlockGlassGemCorn1.java | UTF-8 | 7,057 | 1.976563 | 2 | [] | no_license | /*******************************************************************************
* Copyright 2015 SteveKunG - More Planets Mod
*
* This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License.
* To view a copy of this license, visit http://creativecommons.o... | true |
7587f20b0345cb18abe2c381b84b90282d891d61 | Java | triathematician/firestarter | /firestarter/src/main/java/com/googlecode/blaisemath/firestarter/editor/EnumEditor.java | UTF-8 | 2,459 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | package com.googlecode.blaisemath.firestarter.editor;
/*
* #%L
* Firestarter
* --
* Copyright (C) 2009 - 2022 Elisha Peterson
* --
* 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
*
... | true |
62c67c08e0ea8539e69a660b14e840d5d134e50b | Java | KHikami/ProjectFiCallingDeciphered | /DialerJADXDecompile/defpackage/ccz.java | UTF-8 | 431 | 1.609375 | 2 | [] | no_license | package defpackage;
/* renamed from: ccz */
public final class ccz {
public static final bwi[] a;
static {
a = new bwi[]{new cda(bwi.a("0\u0082\u0003\u00cb0\u0082\u0002\u00b3\u00a0\u0003\u0002\u0001\u0002\u0002\t\u0000\u00a7\u00bf\u0012}\u0011I\u00df\u00ce0")), new cdb(bwi.a("0\u0082\u0003\u00cb0\u008... | true |
f763393f9ec720d473cc24553cb1046d74f3e594 | Java | saglan99/corejava | /CollectionList/hw20.java | UTF-8 | 532 | 2.953125 | 3 | [] | no_license | package CollectionList;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedList;
public class hw20 {
public static void main(String[] args) {
LinkedList<String> arr = new LinkedList<String>();
arr.add("red");
arr.add("blue");
arr.add("yellow");
arr.add("pink");
... | true |
13fe28fce81168485aa8b7c01fe4d33060e4ab6c | Java | timk-blip/java_L_4_1 | /src/BonusMilesService.java | UTF-8 | 140 | 2.34375 | 2 | [] | no_license | import java.util.Scanner;
public class BonusMilesService {
public float calculate (int price)
{
return price / 20;
}
}
| true |
723d8471508ee43166a668bef2167ee9e5cf48a0 | Java | cx0810/tp | /src/main/java/seedu/address/logic/parser/DoneCommandParser.java | UTF-8 | 1,219 | 2.84375 | 3 | [
"LicenseRef-scancode-other-permissive",
"MIT"
] | permissive | package seedu.address.logic.parser;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import java.util.stream.Stream;
import seedu.address.commons.core.index.Index;
import seedu.address.logic.commands.DoneCommand;
import seedu.address.logic.parser.exceptions.ParseException;
/**
* Pa... | true |
0914b149ae78484f511684888a1a7a1af319fe96 | Java | minilooth/MedicalInstitution | /backend/medicalinstitution/src/main/java/by/minilooth/medicalinstitution/MedicalinstitutionApplication.java | UTF-8 | 942 | 1.875 | 2 | [] | no_license | package by.minilooth.medicalinstitution;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework... | true |
b760371493d5e84f9e8ff5643a1ba8ed913ff73c | Java | temasql/TeamSQL | /src/test/java/kr/or/ddit/quiz/quiz_answer/dao/QuizAnswerDaoTest.java | UTF-8 | 716 | 1.773438 | 2 | [] | no_license | package kr.or.ddit.quiz.quiz_answer.dao;
import static org.junit.Assert.*;
import javax.annotation.Resource;
import org.junit.Test;
import kr.or.ddit.testenv.LogicTestEnv;
/**
* CommonsDaoTest.java
*
* @author OWNER
* @version 1.0
* @see
*
* <pre>
* << 개정이력(Modification Information) >>
*
* 수정자 ... | true |
695c46a8474b55c2c21aa52066e50abaf891d9f2 | Java | mars0/Project-Manager | /src/CalendarView.java | UTF-8 | 6,559 | 2.5 | 2 | [] | no_license | import javax.swing.JFrame;
import com.jgoodies.forms.layout.FormLayout;
import com.jgoodies.forms.layout.ColumnSpec;
import com.jgoodies.forms.layout.RowSpec;
import com.jgoodies.forms.factories.FormFactory;
import javax.swing.JTable;
import javax.swing.table.*;
import javax.swing.JLabel;
import javax.swing.JSplitPane;... | true |
d8c66c971aa6e62abbd0cb2b6916ed2622c16335 | Java | iamsterdam800/Java-CNN | /src/main/java/uk/ac/cam/mgm52/cnn/Tensor.java | UTF-8 | 14,861 | 3.53125 | 4 | [
"MIT"
] | permissive | package uk.ac.cam.mgm52.cnn;
import java.util.Arrays;
import java.util.Iterator;
import java.util.Random;
import java.util.stream.DoubleStream;
/**
* Stores an N-dimensional tensor. Facilitates operations including cross-correlation mapping and extracting subsets.
*/
public class Tensor {
//Values of all elemen... | true |
4009f24438cb2c6f2b08ae1c9c55cf77c9b866d6 | Java | nicolael/INF2100 | /no/uio/ifi/pascal2100/parser/EnumLiteral.java | UTF-8 | 910 | 2.703125 | 3 | [] | no_license | package no.uio.ifi.pascal2100.parser;
import no.uio.ifi.pascal2100.main.*;
import no.uio.ifi.pascal2100.scanner.*;
import static no.uio.ifi.pascal2100.scanner.TokenKind.*;
class EnumLiteral extends PascalDecl{
String bool;
EnumLiteral(String bool, int lNum){
super(bool,lNum);
this.bool = bool;
}
@Override pub... | true |
34f7f9b7f78c81d0dbe8bbc2b8f48d2cdaaec32c | Java | ThomasAuberson/COMP261_3DRenderer | /src/Vector.java | UTF-8 | 330 | 3.078125 | 3 | [] | no_license | public class Vector {
public final double x;
public final double y;
public final double z;
public final double mag;
public Vector(double x, double y, double z){
this.x = x;
this.y = y;
this.z = z;
mag = Math.sqrt(x*x+y*y+z*z);
}
public String toString(){
String s = "["+x+","+y+","+z+"]";
return... | true |
43106f167bf26e73ec137cb71a0fc269f1de80c8 | Java | jamesWaugh/Employee_Salaries | /src/employee_salaries/EmployeeTest.java | UTF-8 | 1,345 | 3.703125 | 4 | [] | no_license | package Employee_Salaries;
public class EmployeeTest {
public static void main(String[] args) {
Employee chuck = new Employee("Chuck", "Testa", 1000);
Employee stim = new Employee("Stimy", "Bibble", 1);
System.out.println(chuck.getFirstName() + "'s Yearly Salary: $" + (double) (chuc... | true |
5af047b3491a1a2b37338d9152e4e59ae7ec2cfc | Java | oyachai/HearthSim | /src/main/java/com/hearthsim/card/classic/spell/epic/LayOnHands.java | UTF-8 | 1,713 | 2.78125 | 3 | [
"MIT"
] | permissive | package com.hearthsim.card.classic.spell.epic;
import com.hearthsim.card.minion.Minion;
import com.hearthsim.card.spellcard.SpellTargetableCard;
import com.hearthsim.event.effect.EffectCharacter;
import com.hearthsim.event.filter.FilterCharacter;
import com.hearthsim.event.filter.FilterCharacterTargetedSpell;
import c... | true |
03f7e018f79be9fd750746f5158ca0093b822710 | Java | XuChunH/JAVA-000 | /Week_05/starter-parent/sample/src/main/java/com/yehui/starter/sample/SchoolController.java | UTF-8 | 511 | 1.984375 | 2 | [] | no_license | package com.yehui.starter.sample;
import com.yehui.starter.starter.School;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
* @author yehui
* @date 2020/11/16
*/
@RestController
@RequestMapping("/sch... | true |
3e1000aa97adc0dbc06205989fee36c8c81555bc | Java | ChristopherHX/Dawn | /src/main/java/de/homberger/christopher/dawn/main/Orientation.java | UTF-8 | 267 | 2.265625 | 2 | [] | no_license | package de.homberger.christopher.dawn.main;
/**
* Orientation
* @author Christopher Lukas Homberger
* @version 0.9.2
*/
public enum Orientation {
/**
* Vertical Orientation
*/
VERTICAL,
/**
* Horizontal Orientation
*/
HORIZONTAL
} | true |
c64ded89b4c116d73040e56b3c23892c24b83def | Java | Srilatha53/GoggleNew | /goggle/src/main/java/com/niit/controller/AdminController.java | UTF-8 | 8,372 | 2.140625 | 2 | [] | no_license | package com.niit.controller;
//import java.net.Authenticator.RequestorType;
import java.util.List;
import javax.servlet.http.HttpSession;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframew... | true |
4c4f0ec149e87a1b66b6b94013d9ec2536c413d8 | Java | opensearch-project/OpenSearch | /server/src/test/java/org/opensearch/common/util/BigArraysTests.java | UTF-8 | 20,697 | 1.804688 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"SSPL-1.0"
] | permissive | /*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distribute... | true |
63bd0391fc97eadfe1ebe24c38e787ef2fb3d3d1 | Java | CintiaNeves/the-wall-crud | /src/br/com/les/thewallcrud/viewhelper/VHEntrada.java | UTF-8 | 4,507 | 2.203125 | 2 | [] | no_license | package br.com.les.thewallcrud.viewhelper;
import java.time.LocalDate;
import javax.servlet.RequestDispatcher;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
i... | true |
f4299629bfed4d86540dd20e7a440b7d84727707 | Java | PhatTranSon/NoteMVC | /app/src/main/java/com/example/mvcnote/screens/notelist/NoteListViewMvcImpl.java | UTF-8 | 1,673 | 2.1875 | 2 | [] | no_license | package com.example.mvcnote.screens.notelist;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.example.mvcnote.R;
import com.example.mvcnote.not... | true |
c837eaf60ba91feb48bf0d69d56ed4dcb334916d | Java | ison-grazer/Kattis-Solutions | /src/MissingNumbers.java | UTF-8 | 860 | 3.59375 | 4 | [] | no_license | import java.util.*;
import java.lang.String;
public class MissingNumbers {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int loopfor = sc.nextInt();
List<Integer> numbers = new ArrayList<>();
for (int i = 0; i < loopfor; i++) {
numbers.ad... | true |
127682535df4978c0d037de3db72e46db733ac2b | Java | EricWord/data_structure_algorithm | /src/main/java/search/BinarySearch.java | UTF-8 | 4,582 | 4.1875 | 4 | [] | no_license | package search;
import java.util.ArrayList;
import java.util.List;
/**
* @Description
* @Author eric
* @Version V1.0.0
* @Date 2019/7/17
*/
public class BinarySearch {
/**
* 用于线性查找的数据必须有序,如果没有顺序要排序
* 二分查找的实现方式主要有两种,递归和非递归
* 这里实现方式是递归实现的
* 思路分析:
* 1.确定数组中间下标,mid
* 2.让需要查找的数和中间的值... | true |
99fb7f8ae044aac5fc5497ac8876cefaed2bf462 | Java | seanfitz121/cs4013project | /Property.java | UTF-8 | 2,354 | 2.90625 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Calendar;
public class Property
{
/* Property info */
private String address;
private String eircode;
private double marketValue;
private String locationCategory;
private boolean ppr;
private int year;
private ArrayList<PropertyTax> taxHistory... | true |
4fef0f09b33170d30e79fab7aa0db9dee0701278 | Java | mengtest/gameserver-7 | /src/com/game/module/activity/ActivityService.java | UTF-8 | 24,219 | 2.140625 | 2 | [] | no_license | package com.game.module.activity;
import com.game.data.ActivityCfg;
import com.game.data.ActivityTaskCfg;
import com.game.data.Response;
import com.game.event.InitHandler;
import com.game.module.goods.GoodsEntry;
import com.game.module.goods.GoodsService;
import com.game.module.log.LogConsume;
import com.game.module.p... | true |
17a380d70a0a6149c653b6fdbc8f02d85dbc3a02 | Java | CarrBrent/ClassManager | /src/app/ui/fragment/ProfileFragment.java | UTF-8 | 2,748 | 2.140625 | 2 | [] | no_license | package app.ui.fragment;
import com.lidroid.xutils.HttpUtils;
import com.lidroid.xutils.exception.HttpException;
import com.lidroid.xutils.http.RequestParams;
import com.lidroid.xutils.http.ResponseInfo;
import com.lidroid.xutils.http.callback.RequestCallBack;
import com.lidroid.xutils.http.client.HttpRequest;
import... | true |
c26fc4952ea97c12b130044a5206965d3b7b2f73 | Java | parsamPradeep/Algorithams | /DataStructures/src/com/leetcode/card/arrays/ESquaresofSortedArray.java | UTF-8 | 1,051 | 3.859375 | 4 | [] | no_license | package com.leetcode.card.arrays;
/*
Given an integer array nums sorted in non-decreasing order,
return an array of the squares of each number sorted in non-decreasing order.
Example 1:
Input: nums = [-4,-1,0,3,10]
Output: [0,1,9,16,100]
Explanation: After squaring, the array becomes [16,1,0,9,100].
After sorting, ... | true |
27fdc2d28600abf69fad99ec0e3335bb80a69488 | Java | ElizaCaro/tiny | /src/compilador/Semantico.java | UTF-8 | 16,901 | 2.5625 | 3 | [] | no_license | package compilador;
import ast.*;
//<editor-fold defaultstate="collapsed" desc="Variables Globales">
public class Semantico {
private final TablaSimbolos tablaSimbolos;
private int ambito;
public boolean debug = true;
public String tipoCompara ="";
int Numeros;
boolean booleanos;
boole... | true |
0c02ba0110027ceaec602f2e96b54f93e45c631f | Java | 1102566507/pattern-all | /src/main/java/com/wing/proxy/dbroute/IOrderService.java | UTF-8 | 130 | 1.71875 | 2 | [] | no_license | package com.wing.proxy.dbroute;
/**
* Created by wing.
*/
public interface IOrderService {
int createOrder(Order order);
}
| true |
d01c9a05e8390c761d29c6fb4aa2f850ce0df8cd | Java | LukaszWysmolinski/javabydg8-tdd_Moje | /src/test/java/MyFirstJUnitTest.java | UTF-8 | 1,694 | 3.46875 | 3 | [] | no_license | import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*; // importujemy wszystkie statyczne metody z klasy Assertions
@DisplayName("Test kalkulatora") // zmienia nazwe wyswietlana w konsoli
public class MyFirstJUnitTest {
Calculator calc... | true |
fd348d278e1ec26f8eee4bf66f165dc12a2a936f | Java | 13671148038/java8base | /src/main/java/com/balimiao/socket/MyNetty/SelectorThread.java | UTF-8 | 3,135 | 2.890625 | 3 | [] | no_license | package com.balimiao.socket.MyNetty;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.*;
import java.util.Iterator;
import java.util.Set;
import java.util.concurrent.LinkedBlockingQueue;
public class SelectorThread implements Runnable {
private Selector selector;
private Lin... | true |
32e340d709ae041645f92ee7d853f282103843e7 | Java | Glamzhan/onlinepizza | /src/main/java/com/shop1/shop1/entities/User.java | UTF-8 | 975 | 2.453125 | 2 | [] | no_license | package com.shop1.shop1.entities;
import javax.persistence.*;
@Entity
@Table(name = "users")
public class User {
@Id
@GeneratedValue(strategy= GenerationType.AUTO)
private long id;
private String name;
private String password;
public Role getRole() {
return role;
}
public voi... | true |