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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
cf5526512d8b52a391141f03358d4ec8ce359bbf | Java | Maxwelljones/SurvivalistLighting | /src/main/java/com/github/wolfiewaffle/survivalistlighting/config/SurvivalistLightingConfigTorches.java | UTF-8 | 1,830 | 2.484375 | 2 | [] | no_license | package com.github.wolfiewaffle.survivalistlighting.config;
import net.minecraftforge.common.config.Configuration;
public class SurvivalistLightingConfigTorches {
public static boolean enableUnlitParticles;
public static boolean enableRelight;
public static boolean generateLitTorches;
public static boolean enabl... | true |
68ff60d76ccb9930efbbc20480de72ad07a14382 | Java | BBK-PiJ-2015-25/Labs | /Lab7/Nine/ListUtilities.java | UTF-8 | 482 | 3.484375 | 3 | [] | no_license | public class ListUtilities {
public static IntItem convertArrayToLinkedList(int[] items) {
int l = items.length;
if (l > 0) {
IntItem start = null;
for (int i = 0; i < l; i++) {
if (start == null) {
start = new IntItem(items[i]);
} else {
IntItem item = start;
while (item.getNext() !... | true |
2d3bb0affccb9770206c2617bd29d27f6fa2d423 | Java | parhelia512/JavaXNA | /Microsoft.Xna.Framework.Game/src/Microsoft/Xna/Framework/DrawOrderComparer.java | UTF-8 | 450 | 2.84375 | 3 | [] | no_license | package Microsoft.Xna.Framework;
class DrawOrderComparer implements java.util.Comparator<IDrawable>
{
public static final DrawOrderComparer Default = new DrawOrderComparer();
public int compare(IDrawable x, IDrawable y)
{
if (x == null && y == null)
return 0;
if (x != null)
{
if (y == null)
ret... | true |
3688bef56b61397ca06248e44cdb30e6356c4801 | Java | jiangbo12345/navigator | /src/com/xhr/entity/CdcOrganization.java | UTF-8 | 1,830 | 1.960938 | 2 | [] | no_license | package com.xhr.entity;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import org... | true |
e7037a11daa2730c29ea06f5e0c23e544b701a7b | Java | zhang765959964/hrbm | /servicemanager/src/test/java/person/SynchServiceTest.java | UTF-8 | 2,504 | 1.898438 | 2 | [] | no_license | ///**
// * FormServiceTest.java Create on 2014年4月17日
// * <p/>
// * Copyright HeNan New Creatsoft. All rights reserved.
// */
//package person;
//
//
//import com.xunfeng.business.careertalk.service.CareerTalkService;
//import com.xunfeng.business.cms.service.ArticleColumnService;
//import com.xunfeng.business.cms.ser... | true |
566bfb062218c0a002ab03c5f3bfb2f162a822b1 | Java | jufcontrerasco/IA2018 | /unalcol/math/src/unalcol/types/real/array/sparse/SparseRealVectorWrite.java | UTF-8 | 311 | 2.0625 | 2 | [] | no_license | package unalcol.types.real.array.sparse;
import java.io.IOException;
import java.io.Writer;
public interface SparseRealVectorWrite {
public void write(SparseRealVector obj, Writer out) throws IOException;
default void write(Object obj, Writer out) throws IOException{ write((SparseRealVector)obj,out); }
} | true |
967c744611b2fed475d52ac91085acec42bb4c8b | Java | bootanik7/auto | /D2/Regression/client_console/applibs/Databaseexe.java | UTF-8 | 506 | 1.953125 | 2 | [] | no_license | package D2.Regression.client_console.applibs;
import java.sql.SQLException;
import core.libs.Database;
public class Databaseexe {
static String driver = "oracle.jdbc.driver.OracleDriver";
static String username="ParvatP";
static String Password="ParvatP!2345";
public static void connectD2QA() throws SQLExc... | true |
704ea3614bd3231980ee240f4fbda9dc60558540 | Java | naumy-code/java_project | /stu-java/src/HuiWen/HuiWen.java | UTF-8 | 2,574 | 4.40625 | 4 | [] | no_license | package HuiWen;
import java.util.Stack;
/**
* 判断是否为回文字符串
* @author Administrator
*/
public class HuiWen {
public static void main(String[] args) {
System.out.println(f1("12321"));
System.out.println(f2("abcba"));
System.out.println(f3("Aa bcb aA "));
}
/**
* 通过数组... | true |
3f26620558bef09fd97e8464864b753ff22990fa | Java | NayrozD/DD2476-Project | /Crawler/data/InvadersKilledAlert.java | UTF-8 | 1,507 | 2.125 | 2 | [] | no_license | 74
https://raw.githubusercontent.com/rayfowler/rotp-public/master/src/rotp/ui/notifications/InvadersKilledAlert.java
/*
* Copyright 2015-2020 Ray Fowler
*
* Licensed under the GNU General Public License, Version 3 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain... | true |
d79d522e072b67b577723f880de4f7e4ffc1fc18 | Java | sjaqjwor/Alogo-study | /example12.java | UTF-8 | 222 | 2.75 | 3 | [] | no_license | public class example12 {
public static void main(String[] args) {
System.out.print(re(10));
}
static int re(int n){
if(n==1){
return n;
}
return re(n-1)+n;
}
}
| true |
2efd4a3043b61042cbebb844d960b31383b66227 | Java | smallwhitelama/UseRetrofit2 | /app/src/main/java/com/stud008/useretrofit2/Repo.java | UTF-8 | 170 | 1.71875 | 2 | [] | no_license | package com.stud008.useretrofit2;
/**
* Created by yvtc on 2016/11/18.
*/
public class Repo {
int id,cID ;
String cName,cSex,cBirthday,cEmail,cPhone,cAddr;
}
| true |
66c7cc812a19f835730394ea6bc53c3ad8d79f1e | Java | JyotimoyKashyap/LeetCodeQuestions | /src/MaximumSumSubArray.java | UTF-8 | 1,073 | 3.8125 | 4 | [] | no_license | public class MaximumSumSubArray {
public int maxSumSubArray(int[] array, int key){
int maxSum = Integer.MIN_VALUE;
// Here we have to use Sliding window technique for solving it in O(n) time
int i=0, j=0; // Here i --> left pointer , j --> right pointer
int sum = 0;
while(j... | true |
0e6b9f1984ab96c10e0ff172c506dded27b436de | Java | federicoviscomi/breath-monitor | /breathMonitorDouble/src/WavFile/ReadExample.java | UTF-8 | 1,884 | 3.078125 | 3 | [] | no_license | package wavFile;
import java.awt.Color;
import java.io.File;
import plot.DiscreteTimePlotter;
import util.Util;
import filters.DoubleInputStream;
public class ReadExample {
public static void main(final String[] args) {
try {
// Open the wav file specified as the first argument
final WavFile wavFile = WavFi... | true |
4116989b97f591e04710f6169b7f00c1bb664860 | Java | mddonly/modules | /application/p2p-platform/src/main/java/com/fenlibao/platform/filter/SignFilter.java | UTF-8 | 2,152 | 2.09375 | 2 | [] | no_license | package com.fenlibao.platform.filter;
import java.io.IOException;
import java.util.Map;
import javax.inject.Inject;
import javax.inject.Singleton;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletReques... | true |
b56203d0e046658f19b37900459c9abd572f356a | Java | Uniandes-ISIS2603-backup/s1_Mudanzas_201910 | /s1_mudanzas-back/src/main/java/co/edu/uniandes/csw/mudanzas/entities/VehiculoEntity.java | UTF-8 | 5,408 | 2.03125 | 2 | [
"MIT"
] | permissive | /*
* 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 co.edu.uniandes.csw.mudanzas.entities;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List... | true |
aa889ba8e312610c05efb3afb287b87c07b5f0f1 | Java | EatHeat/FloatingExample | /src/tk/eatheat/floatingexample/FlyBitch.java | UTF-8 | 2,389 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package tk.eatheat.floatingexample;
import tk.eatheat.floatingexample.R;
import android.app.Service;
import android.content.Intent;
import android.graphics.PixelFormat;
import android.os.IBinder;
import android.view.Gravity;
import android.view.MotionEvent;
import android.view.View;
import android.view.Win... | true |
729802838b53fc5c4fad15f952dcbdcd58615f80 | Java | ymcueva/ProyTravel | /src/pe/com/paxtravel/util/Constantes.java | UTF-8 | 2,701 | 1.539063 | 2 | [] | no_license | package pe.com.paxtravel.util;
public class Constantes {
public static final String CODIGO_TIPO_DOC = "TipoDocumento";
public static final String CODIGO_PAIS = "394";
public static final String CODIGO_COND_MIG = "642";
public static final String CODIGO_CATEGORIA_RENTA = "643";
public static final S... | true |
c96fe4d1d0292957d4af2024d2dc0a1beea49705 | Java | ajorgesantosp/EAPLI_PL_2DB | /eapli.expensemanager/src/Model/Saving.java | UTF-8 | 1,258 | 3.078125 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Model;
/**
*
* @author i111114
*/
public class Saving {
private String description;
private boolean bought;
private float price;
public Saving(String description, boolean bou... | true |
f2a3c0d13973d85c69489c0f12fb9c0c37411bc1 | Java | cha63506/CompSecurity | /whatsapp/src/com/whatsapp/gallerypicker/h.java | UTF-8 | 912 | 1.75 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.whatsapp.gallerypicker;
import android.view.View;
// Referenced classes of package com.whatsapp.gallerypicker:
// Galler... | true |
6fe4575af13317e7189dcf721df937abbb3f02fc | Java | larry10hhobh/RUN | /app/src/main/java/com/larry/shugo/activity/LoginActivity.java | UTF-8 | 12,229 | 2.046875 | 2 | [] | no_license | package com.larry.shugo.activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import com.larry.... | true |
22ee926795ddac452d2c55e798a71add410284f7 | Java | denn1k/core-2020-11 | /src/lesson/lesson16/Person.java | UTF-8 | 1,243 | 3.578125 | 4 | [] | no_license | package lesson.lesson16;
public class Person
{
private String name;
private String surname;
private int age;
Person(String name, String surname, int age)
{
if (age < 16) {
throw new IllegalArgumentException("Person should be older than 16");
}
this.name = name;... | true |
eea35d2d4dc02c4189532255ea3c009d014956a8 | Java | onap/aai-aai-common | /aai-core/src/main/java/org/onap/aai/restcore/search/GremlinGroovyShell.java | UTF-8 | 2,466 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | /**
* ============LICENSE_START=======================================================
* org.onap.aai
* ================================================================================
* Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
* =======================================================... | true |
7c790dce3a9c48667d47935fd54737ce415a695f | Java | AvinashTiwari/Multi-Threading-In-Java | /1_executor_efficientmultithreading/src/avinash/learn/executor/daemon/DaemonThreadExecutor.java | UTF-8 | 869 | 2.6875 | 3 | [] | no_license | package avinash.learn.executor.daemon;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import avinash.learn.executor.common.DaemonThreadFactory;
import avinash.learn.executor.common.LoopTaskD;
public class DaemonThreadExecutor {
public static void main(String[] args) {
Strin... | true |
e2ce7d0f2bacc50c9979dcf6b2eb48b08b0b4908 | Java | bbaarroo/Gabinet2 | /src/main/java/pl/coderslab/controller/RegistrationController.java | UTF-8 | 1,896 | 2.25 | 2 | [] | no_license | package pl.coderslab.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.validation.FieldError;
import org.springframework.web.bi... | true |
84db2ada94611851dfbdb747d354520264ec6bd4 | Java | Bushrasaifi/learnJDBC | /src/ConnectionDemo.java | UTF-8 | 519 | 2.53125 | 3 | [] | no_license | import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.SQLException;
public class ConnectionDemo {
public static void main(String[] args) throws SQLException {
// TODO Auto-generated method stub
String url="jdbc:mysql://localhost:3306/rdecs";
String user="root";
S... | true |
a27d95014cf5aaacb9ba54a57e4e2d345289ae7a | Java | bellmit/crane | /equipmentmonitor-admin/src/main/java/com/xywg/equipmentmonitor/modular/device/model/ProjectHelmetHealthDetail.java | UTF-8 | 4,632 | 1.984375 | 2 | [] | no_license | package com.xywg.equipmentmonitor.modular.device.model;
import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybati... | true |
56898d1a88917a780af10762743fc9a1c0ecd3f9 | Java | xingege662/Algorithm | /src/of44/of44.java | UTF-8 | 4,235 | 3.59375 | 4 | [] | no_license | package of44;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
/**
* Created by xinchang on 2018/3/20.
*/
public class of44 {
/**
* 树的结点定义
*/
private static class TreeNode {
int val;
List<TreeNode> children = new LinkedList<>();
public Tr... | true |
69d7d025267af3e160bf5329e914113e78e424c3 | Java | KuehneThomas/model-to-model-transformation-generator | /src/Common/src/common/util/PrettyPrinter.java | UTF-8 | 3,966 | 2.546875 | 3 | [
"MIT"
] | permissive | package common.util;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import javax.inject.Singleton;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EStructuralFea... | true |
f4b0dd895d999711d488da82b56ba4f9e7616b05 | Java | SinemORUC/Pylos | /pylos_gowm/src/ia/Node.java | UTF-8 | 3,408 | 2.796875 | 3 | [] | no_license | package ia;
import model.Position;
import java.util.ArrayList;
import java.util.List;
import static ia.Move.Type.PLACE;
import static ia.Move.Type.MOUNT;
public class Node {
public final Status status;
public final Move move;
private Node best;
public final List<Node> children = new ArrayList<>();
... | true |
278ad27aaf91d521e868a41febea7a3f189316cb | Java | dcoraboeuf/orbe | /orbe/src/main/java/orbe/gui/map/options/PanelOptionsLine.java | UTF-8 | 458 | 2.0625 | 2 | [] | no_license | /*
* Created on Nov 23, 2006
*/
package orbe.gui.map.options;
/**
* Options pour l'outil ligne.
*
* @author Damien Coraboeuf
* @version $Id: PanelOptionsLine.java,v 1.2 2006/12/04 10:21:28 guinnessman Exp $
*/
public class PanelOptionsLine extends PanelCompoundOptions {
/**
* Initialisation.
*
*/
publ... | true |
1ca2c45a812a08454917c50129dae803353397d5 | Java | dcrops/MYTOLLTestAutomation | /src/test/java/seleniumtests/createshipment/TollIntermodalTest100.java | UTF-8 | 3,178 | 1.921875 | 2 | [] | no_license | package seleniumtests.createshipment;
import org.openqa.selenium.By;
import global.PageBase;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;
import basewebdriver.BaseWebdriver;
import bookapickup.Book... | true |
19a3ed304ff2662de8cca9d6c004159891bce0c2 | Java | xiaosuisui/bekoMES | /src/main/java/com/mj/beko/web/rest/screenApi/TabletScreenToServerApi.java | UTF-8 | 21,916 | 1.960938 | 2 | [] | no_license | package com.mj.beko.web.rest.screenApi;
import com.mj.beko.domain.*;
import com.mj.beko.opcua.OpcUaClientException;
import com.mj.beko.opcua.OpcUaClientTemplate;
import com.mj.beko.repository.OrderRepository;
import com.mj.beko.repository.ProductBrokenDataRepository;
import com.mj.beko.service.*;
import com.mj.beko.se... | true |
5543fbe6f3f1d3acc249d5464efeeb09ac59eee0 | Java | moutainhigh/courier | /courier-supplier/courier-supplier-vacancy/src/main/java/cn/jinyahuan/commons/courier/supplier/vacancy/ThrowableVacancyCourier.java | UTF-8 | 2,092 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2020 The Courier Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | true |
2bd049620ce6347d7c07b92fc9cae19cc4938361 | Java | devwaseem/CSECROCKZZ | /app/src/main/java/com/waseem/csecrockzz/NotificationService.java | UTF-8 | 2,094 | 2.328125 | 2 | [] | no_license | package com.waseem.csecrockzz;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;
import android.widget.Toast;
import java.util.Calendar;
public class Notific... | true |
a83ec118f12b38a83db65b6d30486e96b06518cc | Java | pingchangxinli/el-fsid-svr | /src/main/java/com/el/demo/service/DemoServiceImpl.java | UTF-8 | 1,076 | 2.171875 | 2 | [] | no_license | package com.el.demo.service;
import com.el.core.domain.CodeName;
import com.el.demo.mapper.DemoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;
import javax.validation.constraints.NotNull;
impor... | true |
999eca22a3273be42b404e64934518b583e372f9 | Java | surinKimsurin/Web-page-with-JSP | /eclipse-workspace/blog/src/main/java/com/myspring/blog/member/controller/MemberController.java | UTF-8 | 1,266 | 1.929688 | 2 | [] | no_license | package com.myspring.blog.member.controller;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.a... | true |
5ed3039af9f1b46f774583b148ac1242287499ec | Java | luszowie/Podyplomowe3 | /Loops.java | UTF-8 | 1,095 | 3.1875 | 3 | [] | no_license | import java.sql.SQLOutput;
public class Loops {
public static void main(String[] args) {
//for (;;) {
// System.out.println("Petla nieskończona");
//for (int i =1; i<100; i++) {
// System.out.println("i=" + 1);
// int i = 0;
//do {
// System.out.println("i-... | true |
2349d68dfc2416aa93ef0feaa8d4ce5ce6abf2e7 | Java | msmandy94/bankingSystem | /src/main/java/com/example/bankingSystem/model/AccountDTO.java | UTF-8 | 907 | 2.4375 | 2 | [] | no_license | package com.example.bankingSystem.model;
import com.example.bankingSystem.entities.AccountType;
/**
* Created by mandeep.singh on 12:41 PM 23/03/21 Tuesday
*/
public class AccountDTO {
private int id;
private int customerId;
private double balance;
private AccountType accountType;
public int g... | true |
ca4eb39a9ec5986bef4119dcdec4c54a676e58d0 | Java | LTYYTL/Tender_Info | /src/main/java/com/liu/tender_info/untils/JaveUsePython.java | UTF-8 | 382 | 2.078125 | 2 | [] | no_license | package com.liu.tender_info.untils;
import java.io.IOException;
public class JaveUsePython {
/**
*
* @param path python文件路径
* @throws IOException
*/
public static void runPy(String path) throws IOException {
Runtime.getRuntime().exec("cmd /k start python " + path);
System... | true |
d839876df9407c61e059b9d758a8e2b14efcdcb8 | Java | leandrocruz/Guara | /commons/src/main/java/br/com/ibnetwork/guara/metadata/FieldInfo.java | UTF-8 | 9,718 | 1.875 | 2 | [
"Apache-2.0"
] | permissive | package br.com.ibnetwork.guara.metadata;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Method;
import java.text.Format;
import java.text.MessageFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import java.... | true |
5218581c91c4fd4a5c2da0901fdbc6cfe06fd4fa | Java | superadi04/CompetitiveProgramming | /CodeChef/SumOrDifference.java | UTF-8 | 336 | 3.59375 | 4 | [] | no_license | import java.util.Scanner;
class SumOrDifference {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int n1 = s.nextInt();
int n2 = s.nextInt();
if (n1 > n2) {
System.out.print(n1 - n2);
} else {
System.out.print(n1 + n2);
... | true |
30ec36dc9d91d6dcedb491d44c964442653e76f1 | Java | srinideveloper1/TestAppDagger | /app/src/main/java/com/srinug/testapp/ui/CommitsAdapter.java | UTF-8 | 1,847 | 2.390625 | 2 | [] | no_license | package com.srinug.testapp.ui;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.srinug.testapp.R;
import com.srinug.testapp.api.model.GitCommitsData;
import java.util.ArrayList;
impor... | true |
ed6bf222d1b925a2864c0a265f4e90a5ca31e21d | Java | lukw34/Morfer-lib | /src/main/java/uek/nlp/models/json/rules/GrammaticalAglutynacyjnoscRules.java | UTF-8 | 806 | 2.203125 | 2 | [] | no_license | package uek.nlp.models.json.rules;
import uek.nlp.models.json.GrammaticalCategoryRule;
import uek.nlp.models.json.gramatical.category.GrammaticalAglutynacyjnosc;
import java.util.HashMap;
import java.util.Map;
public class GrammaticalAglutynacyjnoscRules implements GrammaticalCategoryRule {
private static final... | true |
09326799aa25a581df709e8d226867cb5bbf4eda | Java | tre3p/Data-Validator | /src/test/java/hexlet/code/MapSchemaTest.java | UTF-8 | 2,731 | 2.546875 | 3 | [] | no_license | package hexlet.code;
import hexlet.code.schemas.BaseSchema;
import hexlet.code.schemas.MapSchema;
import org.junit.jupiter.api.Test;
import java.util.HashMap;
import java.util.Map;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
public class MapS... | true |
a1444a47c0fe12ddfe0542517e337729ce7c4bd2 | Java | luqian1000/BBS | /src/main/java/com/taru/bbs/controller/SelectFuzzyController.java | GB18030 | 1,507 | 2.125 | 2 | [] | no_license | package com.taru.bbs.controller;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.taru.bbs.service.EssayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.spr... | true |
28606d0bcfc4cc56870b3a1d8dda4b559d7d64a2 | Java | zemuldo/Cyclos_3.7 | /src/nl/strohalm/cyclos/utils/Month.java | UTF-8 | 1,678 | 2.703125 | 3 | [] | no_license | /*
This file is part of Cyclos (www.cyclos.org).
A project of the Social Trade Organisation (www.socialtrade.org).
Cyclos is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of th... | true |
4cdfce9bc902fe43f66f3b835bfd3abc09611360 | Java | elihofni/ES2_damas | /TrabalhoES2/app/src/main/java/com/example/max/trabalhoes2/Interface/Fragment/BotVsBotFragment.java | UTF-8 | 8,846 | 2.015625 | 2 | [] | no_license | package com.example.max.trabalhoes2.Interface.Fragment;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import and... | true |
7ffc5e8e8d9a517b8081d47785a03c77452f1cc4 | Java | chenopodium/tango | /src/tango/experiment/HiddenVariablesIF.java | UTF-8 | 317 | 1.507813 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tango.experiment;
import tango.models.ModelItemIF;
/**
*
* @author Chantal Roth
*/
public interface HiddenVariablesIF extends ModelItemIF{
public void generateHiddenVariables(Particle pA);
... | true |
e72a51489e1e0aa5b95fa54f501bdee27d08a861 | Java | dgrushetskiy/javacore | /src/main/java/ua/epam/javacore/lesson_13/patterns/structural/bridge/Developer.java | UTF-8 | 117 | 1.828125 | 2 | [] | no_license | package ua.epam.javacore.lesson_13.patterns.structural.bridge;
public interface Developer {
void writeCode();
}
| true |
d22416e364b442a6430ff2d7e4a500753ae1ffac | Java | zoricNikola/SF05-2018-OWP2019 | /SF-05-2018-OWP2019/src/cinema/ReportServlet.java | UTF-8 | 3,734 | 2.484375 | 2 | [] | no_license | package cinema;
import java.io.IOException;
import java.time.LocalDate;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServ... | true |
56f1e5fa7d449ce26f06bbad3bbb1cd423484860 | Java | vitalijpv/mvp-rxjava2-dagger2-realm-example | /app/src/main/java/com/venuesapp/nearbyvenues/model/json/Contact.java | UTF-8 | 880 | 2.09375 | 2 | [] | no_license |
package com.venuesapp.nearbyvenues.model.json;
import javax.annotation.Generated;
import com.google.gson.annotations.SerializedName;
@Generated("net.hexar.json2pojo")
@SuppressWarnings("unused")
public class Contact {
@SerializedName("formattedPhone")
private String mFormattedPhone;
@SerializedName("pho... | true |
8a145e5d76078da6baa40193f6f4141b9c3ac460 | Java | ggeorg/chillverse | /src/chillverse/plasma/application/ApplicationContext.java | UTF-8 | 8,273 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | package chillverse.plasma.application;
import java.net.URL;
import java.util.ArrayList;
import java.util.Timer;
import java.util.TimerTask;
import com.sun.jna.Callback;
import com.sun.jna.Pointer;
import chillverse.jna.ClutterLibrary;
import chillverse.util.Version;
/** Base class for application contexts. */
publi... | true |
914a6df3948101fa12b88627663741f9d6df9fe6 | Java | coder-xiaoshuai/GitLearningDemo | /app/src/main/java/com/example/zhangshuai/base/BaseApplication.java | UTF-8 | 318 | 1.953125 | 2 | [] | no_license | package com.example.zhangshuai.base;
import android.app.Application;
import android.content.SharedPreferences;
public class BaseApplication extends Application{
@Override
public SharedPreferences getSharedPreferences(String name, int mode) {
return super.getSharedPreferences(name, mode);
}
}
| true |
33d87767516fced55af7c2bcf7a78bdee62228a4 | Java | steff1461/eshop | /src/main/java/be/technobel/eshop/service/impl/ProductServiceImpl.java | UTF-8 | 2,862 | 2.234375 | 2 | [] | no_license | package be.technobel.eshop.service.impl;
import be.technobel.eshop.mapper.BaseMapper;
import be.technobel.eshop.model.dto.ProductDto;
import be.technobel.eshop.model.entity.Category;
import be.technobel.eshop.model.entity.Product;
import be.technobel.eshop.model.form.ProductForm;
import be.technobel.eshop.repository.C... | true |
29544a1ebdecbcee8ef10c97af2931353d19e37b | Java | kai-morich/dbeaver | /plugins/org.jkiss.dbeaver.ui.editors.base/src/org/jkiss/dbeaver/ui/editors/object/struct/AttributeEditPage.java | UTF-8 | 5,927 | 1.585938 | 2 | [
"EPL-1.0",
"Apache-2.0",
"LGPL-2.0-or-later"
] | permissive | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2022 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICE... | true |
4831d2c52fda7271834ac2a1eb9998cf9e5620a6 | Java | Sjith/chanroid | /GruviceClient/src/kr/co/drdesign/client/SendedMsgListActivity.java | UHC | 3,788 | 2.03125 | 2 | [] | no_license | package kr.co.drdesign.client;
import java.util.List;
import java.util.Map;
import kr.co.drdesign.client.controller.ReceiveMsgController;
import kr.co.drdesign.client.controller.SendMsgController;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.B... | true |
291144708345bdde4a3d4febbcc8230c84fa0cfa | Java | changge458/mapreduce | /src/main/java/com/qst/inputformat/seqfile/WCMapper.java | UTF-8 | 661 | 2.09375 | 2 | [] | no_license | package com.qst.inputformat.seqfile;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.StringReader;
import org.apache.hadoop.io.BytesWritable;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.... | true |
a16839b807a9d14e210d61e7e230d7e12a96c77e | Java | devyash786/Various-Algorithms-in-Java | /Dijkstra.java | UTF-8 | 2,003 | 3.53125 | 4 | [] | no_license | import java.util.*;
class Dijkstra {
public static void dijkstra(int[][] graph, int sourceVertex){
int vertexCount = graph.length;
boolean[] visitedVertex = new boolean[vertexCount];
int[] distance = new int[vertexCount];
for (int i = 0; i < vertexCount; i++){
vi... | true |
fb03aace5b53a2951a85c73c2c3ed37daa227d29 | Java | WangErHei/solo_bug | /src/bug/frontstage/notice_manage/service/imp/ShowNoticeServiceImp.java | UTF-8 | 656 | 1.804688 | 2 | [] | no_license | package bug.frontstage.notice_manage.service.imp;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import bug.frontstage.notice_manage.dao.NoticeDao;
import bug.frontstage.notice_manage.service.IShowNoticeService;
@Service("ShowNotic... | true |
f6d7b22a678c4bdddde88797f64be0aa4e336c6d | Java | andygeek/list-android-java | /app/src/main/java/com/andygeek/shoppinglistjava/ListActivity.java | UTF-8 | 1,341 | 2.6875 | 3 | [] | no_license | package com.andygeek.shoppinglistjava;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.List;
public class ListActivity extends AppCompatActivity... | true |
68e6e91fa36b787b85760957d9c69f2bb5b9914a | Java | ljheee/SpringDI | /src/com/ljheee/spring/di/App.java | GB18030 | 946 | 2.375 | 2 | [
"MIT"
] | permissive | package com.ljheee.spring.di;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
public class App {
public static void main(String[] arg... | true |
9a37bb00b9adfab33488a8fd9d6fafc67b22cb41 | Java | njmube/facturacion | /src/Modelo/sesion.java | UTF-8 | 902 | 2.53125 | 3 | [] | no_license | package Modelo;
import Modelo.conexion;
public class sesion {
private String User;
private String Pass;
private String Permissions;
private String Access;
conexion con;
public sesion(String user,String pass){
con=new conexion();
String[][] data=null;
if((data=con.l... | true |
ee9b792bc0a188021509c8dce98fb9b7befe1313 | Java | ICOnator/ICOnator-backend | /commons/country-filter-service/src/main/java/io/iconator/commons/countryfilter/config/CountryFilterConfigHolder.java | UTF-8 | 620 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | package io.iconator.commons.countryfilter.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import java.util.List;
@Configuration
public class CountryFilterConfigHolder {
@Value("${io.iconator.commons.country-filter.enabled}")
pri... | true |
380e34ccff9c0b4f7c3f437a6454542c1f4d2019 | Java | cecastil/Tutorial | /src/ThinkLikeAProgrammer/Permutation.java | UTF-8 | 620 | 3.796875 | 4 | [] | no_license | package ThinkLikeAProgrammer;
import java.util.ArrayList;
import java.util.List;
public class Permutation {
public static void main(String[] args) {
List<Integer> code = new ArrayList<>();
code.add(2);
code.add(7);
code.add(9);
int code1 =2;
int code2 = 7;
... | true |
4d74cdfba0618c0842bcea7ed8435e80838da40e | Java | MahanteshAmbali/eclipse_workspaces | /Eclipse_Workspace_Spring/spring_jdbc_dao_2ndTime/src/org/spring/jdbc/Manager1.java | UTF-8 | 564 | 2.421875 | 2 | [] | no_license | package org.spring.jdbc;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
public class Manager1 {
public static void main(String[] args) throws Exception{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection connection = DriverManager.getConnection("jdbc:oracle:thin... | true |
802de9b6f625f32a4d3b312140d6634cb0803b7e | Java | shishir-insane/person-api | /src/main/java/com/sk/wagawin/person/controller/ProcessingTask.java | UTF-8 | 1,381 | 2.3125 | 2 | [] | no_license | package com.sk.wagawin.person.controller;
import java.util.TimerTask;
import java.util.concurrent.atomic.AtomicLong;
import org.springframework.web.context.request.async.DeferredResult;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class ProcessingTask extends TimerTask {
private final long reqId;
privat... | true |
dc5677fadb4c8e1bd24bd1f99df0868f2f9c5507 | Java | gulues/TP02 | /src/grafos/Grafo.java | ISO-8859-2 | 2,454 | 3.609375 | 4 | [] | no_license | package grafos;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
public class Grafo
{
// Representamos el grafo por medio de listas de vecinos
private ArrayList<HashSet<Integer>> _vecinos;
// El grafo se construye sin aristas
public Grafo(int verticesIniciales)
{
_vecino... | true |
12aecf459c1a18514734093a1ca2e24c168209bf | Java | Iyeonghun/Mi_Band_SDK | /miband-sdk/src/main/java/com/jellygom/miband_sdk/MiBandIO/Model/MibandUUID.java | UTF-8 | 1,527 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | package com.jellygom.miband_sdk.MiBandIO.Model;
import java.util.UUID;
public class MibandUUID {
public static final String MAC_FILTER_MI1S = "C8:0F:10";
// UUID 기본 형식
private static final String BASIC_UUID = "0000%s-0000-1000-8000-00805f9b34fb";
// 기본 서비스 UUID 및 특성 UUID
public static final UUID UUID_SER... | true |
07956b56940841d484d0c4255b942b1783ac82ab | Java | Drxsmile/algorithm_practice | /practice/FormPoly/src/com/snx/Main.java | UTF-8 | 2,204 | 3.5625 | 4 | [] | no_license | package com.snx;
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Main {
private static int sides;
private static boolean res = false;
/*请完成下面这个函数,实现题目要求的功能
******************************开始写代码******************************/
sta... | true |
c48c9576e96025841ef3e41fc6661ca4530c9332 | Java | enataraj/Coding | /src/leetcode/sep2021/LC806NumberOfLines.java | UTF-8 | 410 | 2.78125 | 3 | [] | no_license | package leetcode.sep2021;
public class LC806NumberOfLines {
public int[] numberOfLines(int[] widths, String s) {
int sum = 0;
int line = 1;
for (char ch : s.toCharArray()) {
if (sum + widths[ch - 'a'] > 100) {
line++;
sum = 0;
}
... | true |
76eb412e527afd9d8ab17480f81a02b78276e7a4 | Java | maneyogesh/EnterpriseRegression | /src/pom/TestBase/LoginPageCredentials.java | UTF-8 | 968 | 2.046875 | 2 | [] | no_license | package pom.TestBase;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.PageFactory;
import pom.excelReader.Mapping.ReadExcelMapping;
public class LoginPageCredentials extends TestBase{
public WebDriver d... | true |
5d6cc1cc144f62e57836c3c5cfe427010b6032ec | Java | Fadwa2020git/FibonacciRecursive | /src/main/FibonacciTest.java | UTF-8 | 580 | 2.515625 | 3 | [] | no_license | package main;
import org.hamcrest.CoreMatchers;
import org.junit.Assert;
import static org.junit.jupiter.api.Assertions.*;
class FibonacciTest {
@org.junit.jupiter.api.Test
void getFibonacciNumberTest5() {
Assert.assertEquals(5, Fibonacci.getFibonacciNumber(5));
}
@org.junit.jupiter.api.Test... | true |
1652b58c8194c9e6e3ac81ec8e0085caaafc203a | Java | Kauaibots/FRC2021 | /GNK-Imported/src/main/java/frc/robot/commands/M_IMU_DRIVE.java | UTF-8 | 2,064 | 2.5 | 2 | [] | no_license | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.commands;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashbo... | true |
d5507cbb3ff24dde3c37bb6bde8fec1756a4789b | Java | GeorgeDoit/Sacchon | /Sacchon-Back/src/main/java/com/sacchon/restapi/resource/interfaces/doctor/DoctorListResource.java | UTF-8 | 689 | 2.03125 | 2 | [] | no_license | package com.sacchon.restapi.resource.interfaces.doctor;
import com.sacchon.restapi.exceptions.BadEntityException;
import com.sacchon.restapi.exceptions.BadRequestException;
import com.sacchon.restapi.exceptions.NotFoundException;
import com.sacchon.restapi.representations.doctor.DoctorRepresentation;
import org.restle... | true |
c5c1b35f1d1f3bffd11bd09ee22503963d445aa5 | Java | BaronBrixius/WeightsTracker | /app/src/main/java/com/example/weightstracker/ExerciseListAdapter.java | UTF-8 | 2,970 | 2.65625 | 3 | [] | no_license | package com.example.weightstracker;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.recyclervi... | true |
5f459a6fa1717435171f990d828e56a46400e574 | Java | yapengsong/business | /src-biz/eayun-eayunstack/src/main/java/com/eayun/eayunstack/service/impl/OpenstackVpnConnectionServiceImpl.java | UTF-8 | 5,979 | 2.109375 | 2 | [] | no_license | package com.eayun.eayunstack.service.impl;
import java.util.ArrayList;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import com.alibaba.fastjson.JSONObject;
import com.eayun.common.exception.AppException;
import com.eayun.datacenter.mod... | true |
3b3e7ab53008712cbe55da81b2ad446860910d6b | Java | lcr863254361/weibao_qd | /OrientServer/orient-history/com/orient/history/core/request/PlanTaskParam.java | UTF-8 | 1,140 | 1.84375 | 2 | [] | no_license | package com.orient.history.core.request;
/**
* Created by qjs on 2016/11/25.
* 保存计划历史信息使传递的封装参数类
*/
public class PlanTaskParam {
private String taskId;
private String taskType;
private String rootModelName;
private String rootDataId;
private String rootModelId;
public String getTaskId() {
... | true |
d14ba77aa0c797c909f9d467b5aee620aae975ee | Java | DemoProjects120/spring-webapp | /src/main/java/com/rootnext/webapp/controllers/api/CategoryController.java | UTF-8 | 984 | 2.15625 | 2 | [] | no_license | package com.rootnext.webapp.controllers.api;
import com.rootnext.webapp.models.Category;
import com.rootnext.webapp.models.repositories.CategoryRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.ann... | true |
5e5fc027f7d9249f322314c3627188fa47ea9b25 | Java | Aniket-Dhumal/SEM4 | /JPR_22412/Practicals/PR30/Squar_Circle.java | UTF-8 | 470 | 3.140625 | 3 | [] | no_license | import java.awt.*;
import java.applet.*;
public class Squar_Circle extends Applet
{
public void paint(Graphics g)
{
/*Squar Inside A Circle*/
g.drawString("(a).Squar Inside A Circle",150,110);
g.drawOval(180,10,80,80);
g.drawRect(192,22,55,55);
/*Circle Inside a Squar*/
g.drawString("(b).Circle Insid... | true |
97abacafc147c75da39362a1ddb52e8649b90d8d | Java | ahnd38/NoraSeries | /src/NoraCommon/src/main/java/org/jp/illg/util/uart/model/UartFlowControlModes.java | UTF-8 | 968 | 2.25 | 2 | [
"MIT"
] | permissive | package org.jp.illg.util.uart.model;
import com.fazecast.jSerialComm.SerialPort;
import com.ftdi.j2xx.D2xxManager;
public enum UartFlowControlModes {
FLOWCONTROL_DISABLE(SerialPort.FLOW_CONTROL_DISABLED, D2xxManager.FT_FLOW_NONE),
FLOWCONTROL_CTS(SerialPort.FLOW_CONTROL_CTS_ENABLED, D2xxManager.FT_FLOW_RTS_CT... | true |
70d24f4696030cc3f83c118f685a064c4610e19c | Java | MarttilaTurunenKarjalainenKoulu/aircube | /Android/AirCube/app/src/main/java/com/kantelesoftware/aircube/HumActivity.java | UTF-8 | 5,677 | 2.515625 | 3 | [] | no_license | package com.kantelesoftware.aircube;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.os.AsyncTask;
import android.util.Log;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.SimpleAdapter;
import android.widget.Toast;
import org.json.JS... | true |
ffd12eb001edf03ac06e50601b1bea184ddec0c8 | Java | jashiscript83/BattleShip-JAVA | /src/main/java/com/example/salvo/SalvoControler.java | UTF-8 | 9,843 | 2.484375 | 2 | [] | no_license | package com.example.salvo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.authentication.AnonymousAuthenticationToken;
import org.springframework.security.core.Authentication... | true |
8a6b0b8001c49af260f051a0206be34400113b62 | Java | avrpic8/Simple-Filimo | /app/src/main/java/com/smartelectronics/filimo/activity/GenreActivity.java | UTF-8 | 3,654 | 2.125 | 2 | [] | no_license | package com.smartelectronics.filimo.activity;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.content.Intent;
import android.graphics.Color;
import android... | true |
96100bdc9fc37f221b0d4410e0d36614c7715a19 | Java | Hawkinski/Mobile_App_4 | /app/src/main/java/com/example/sachin/fms_client_v1/StatusAdapter.java | UTF-8 | 3,444 | 2.1875 | 2 | [] | no_license | package com.example.sachin.fms_client_v1;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Build;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.... | true |
a9c39c3aab369e16a2a84f50799af0aed6bd6b6f | Java | InterPSS-Project/ipss-plugin | /ipss.plugin.dstab/src/org/interpss/dstab/control/gov/psse/ieesgo/PsseIEESGOSteamTurGovernor.java | UTF-8 | 5,755 | 1.960938 | 2 | [] | no_license | package org.interpss.dstab.control.gov.psse.ieesgo;
import java.lang.reflect.Field;
import com.interpss.dstab.BaseDStabBus;
import com.interpss.dstab.controller.cml.annotate.AnController;
import com.interpss.dstab.controller.cml.annotate.AnControllerField;
import com.interpss.dstab.controller.cml.annotate.Anno... | true |
b57d1c1a9729f0a4e98e941b0f4191fcee80ad2b | Java | box/box-android-sdk | /box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxMap.java | UTF-8 | 431 | 1.875 | 2 | [
"Apache-2.0"
] | permissive | package com.box.androidsdk.content.models;
import com.eclipsesource.json.JsonObject;
/**
* Class representing a map of arbitrary keys and values.
*/
public class BoxMap extends BoxJsonObject {
private static final long serialVersionUID = 162879893465214004L;
/**
* Constructs an empty map object.
... | true |
fb76d84c0cb6df482295b3fa46ea03ef59c65a87 | Java | ericdeback/Clock | /src/main/java/App/Clock.java | UTF-8 | 23,612 | 2.796875 | 3 | [] | no_license | package App;
/*
* Apache 2.0 license
*
* Subject to the terms and conditions of this License, each Contributor hereby
* grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
* irrevocable copyright license to reproduce, prepare Derivative Works of,
* publicly display, publicly perform, sub... | true |
2558d43324476b507ef391a27056f328c0dbe147 | Java | Menguelito/inleiding-java | /src/h11/Schaakbord.java | UTF-8 | 1,452 | 3.140625 | 3 | [] | no_license | package h11;
import java.awt.*;
import java.applet.*;
public class Schaakbord extends Applet{
public void init(){
}
public void paint(Graphics g) {
int x;
int y=50;
int breedte=25;
int hoogte=25;
int rij = 0;
Color wit;
Color zwart;
zwart=Co... | true |
7a731c324a988fe8f3778ac1edf75b650f1484c3 | Java | FabianMeiswinkel/azure-sdk-for-java | /sdk/databox/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/databox/v2019_09_01/implementation/DataBoxManager.java | UTF-8 | 4,735 | 1.8125 | 2 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-or-later",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.databox.v2019_09_01.implementation;
import com.m... | true |
bcfa83dddda5c41ef8e65614aeb6ebfdc446e539 | Java | NewLineTechnologies/JavaExamples | /mxmul_Taras/CalcTask.java | UTF-8 | 661 | 3.296875 | 3 | [] | no_license | package com.nlt;
import java.util.concurrent.Callable;
/**
* Task which multiplies the matrix to the row of other
*/
public class CalcTask implements Callable< Boolean > {
private int row;
private HighSpeedMatrix aMatrix;
private HighSpeedMatrix bMatrix;
public CalcTask (int row, HighSpeedMatrix a... | true |
b1c9b45f41390738143ab0dd5ea8fe2c98401db9 | Java | msafari/java-server-sdk | /src/test/java/com/launchdarkly/sdk/server/ModelBuilders.java | UTF-8 | 10,588 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | package com.launchdarkly.sdk.server;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import com.launchdarkly.sdk.LDUser;
import com.launchdarkly.sdk.LDValue;
import com.launchdarkly.sdk.UserAttribute;
import com.launchdarkly.sdk.server.DataModel.FeatureFlag;
import com.la... | true |
2a40efe96e99a11eb85fcb100e4dad175baf1b79 | Java | Jaywen87/MobileSafe | /app/src/main/java/com/wenjie/mobilesafe/CallSmsSafeActivity.java | UTF-8 | 9,211 | 1.84375 | 2 | [] | no_license | package com.wenjie.mobilesafe;
import androidx.appcompat.app.AppCompatActivity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android... | true |
13aead07ad643d05775059b00d5dd8f27f943cf8 | Java | jotd666/gods-deluxe | /src/gods/game/levels/classic/GodsClassicLevel3.java | UTF-8 | 19,474 | 2.109375 | 2 | [
"MIT"
] | permissive | package gods.game.levels.classic;
import java.io.IOException;
import gods.base.GfxObject;
import gods.base.NamedLocatable;
import gods.base.MovingBlock;
import gods.game.GodsLevel;
import gods.game.SfxSet.Sample;
import gods.game.characters.Hero;
import gods.game.characters.HeroWeaponSet;
public class GodsClassicLev... | true |
b730fa13d852d75b39aaad9d31b3260cd44526b2 | Java | amilovskiy/Java-Core | /Core/src/blocks/Main.java | UTF-8 | 157 | 1.828125 | 2 | [] | no_license | package blocks;
public class Main {
public static void main(String[] args) {
Block b = new Block();
b.med1();
Block.medstatic();
}
}
| true |
6923283a2f550d4e0165b01753168527c4f6d9c4 | Java | linxianying/CLEX | /CLEX/CLEX-war/src/java/managedbeans/CourseBean.java | UTF-8 | 1,096 | 1.828125 | 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 managedbeans;
import entity.Course;
import entity.Lecturer;
import entity.Module;
import java.io.IOException;
import java.io.S... | true |
27996f98301f179b7fc6cf371673189858621ed9 | Java | imalimin/FFmpeg4Android | /app/src/main/java/com/lmy/app/ui/MainActivity.java | UTF-8 | 3,261 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package com.lmy.app.ui;
import android.content.Intent;
import android.view.View;
import android.widget.ImageView;
import com.lmy.app.R;
import com.lmy.ffmpeg.codec.MediaDecoder;
import com.lmy.ffmpeg.widget.VideoView;
import butterknife.BindView;
public class MainActivity extends BaseActivity implements View.OnClic... | true |
dcf14ae64208f8c0730ee51301c554f496c94e7c | Java | tectronics/logistics-map | /src/main/java/com/sci/logisticsmap/web/controller/admin/MainController.java | UTF-8 | 2,636 | 1.929688 | 2 | [] | no_license | /*
* $Id$
* $Author$
* $Revision$
* $Date$
*
* Copyright (c) 2013 Supply Chain Intelligence (SCI), Inc.
* http://www.scintelligence.com/, Email: info@scintelligence.com
* All rights reserved.
*
* This file is part of Logistics Map.
*
* Logistics Map is free software: you can redistribute it and/... | true |
0c66d35c54f03705c87c7b467d76adc66c112278 | Java | jblaszczyk/justforward | /src/main/java/just/forward/search/SearchNodeSuccessorGenerator.java | UTF-8 | 141 | 1.695313 | 2 | [] | no_license | package just.forward.search;
import java.util.Set;
public interface SearchNodeSuccessorGenerator<T> {
public Set<T> successors(T node);
}
| true |
65372304d5efd592bbb7edfd93418e93e68c30b2 | Java | Francus13/LWJGL-Graphics-Audio-Input-Library | /src/graphicsLibrary/Texture.java | UTF-8 | 15,009 | 2.71875 | 3 | [] | no_license | package graphicsLibrary;
import org.lwjgl.BufferUtils;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
import static org.lwjgl.opengl.GL11.*;
import static org.lwjgl.stb.STBImage.stbi_image_free;
import static org.lwjgl.stb.STBImage.stbi_load;
public class Texture {
public static final Texture emptyTextu... | true |
c1cd3b17035ab785f9bab32f407e5b7cdf6e3c21 | Java | merlin-pl/merlin | /src/merlin-common/src/merlin/common/annotations/presenceCondition/IParserAction.java | UTF-8 | 168 | 1.703125 | 2 | [] | no_license | package merlin.common.annotations.presenceCondition;
public interface IParserAction {
default void exec (FormulaFeature f1, FormulaFeature f2, Operator op) {}
}
| true |