language
stringclasses
15 values
src_encoding
stringclasses
34 values
length_bytes
int64
6
7.85M
score
float64
1.5
5.69
int_score
int64
2
5
detected_licenses
listlengths
0
160
license_type
stringclasses
2 values
text
stringlengths
9
7.85M
Java
UTF-8
10,974
3.421875
3
[]
no_license
package Sorting.sample; //importing the libraries that will be needed in this program import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; //the class with button and main method public class SortGUI { // import javax.swing.JFrame; //a va...
C
UTF-8
2,585
2.765625
3
[ "BSD-3-Clause" ]
permissive
#include <stdlib.h> #include <stdio.h> #include <mkl.h> #include <mkl_extensions.h> #include <string.h> #include <vec.h> #include "nbody.h" #include "nbody_mkl.h" /** Computes Sum(G * pm / r ** 2 * (dx / r)). * * Diagonal elements are not counted in the sum. * */ void compute_force(MKL_INT n, double *dx, do...
Java
UTF-8
7,426
1.773438
2
[]
no_license
package cn.demi.app.bus.action; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework....
Java
UTF-8
625
3.296875
3
[]
no_license
//load with parent class. class Parent { static int i=10; static { m1(); System.out.println("base static block"); } public static void main(String[] args) { m1(); System.out.println("base main"); } public static void m1() { System.out.println("i="+i); } } class Derived extends Base { static int x=100; static { m...
Java
UTF-8
470
3.21875
3
[]
no_license
package main; import math.Prime; public class Problem41 { public static void main(String[] args) { for (int i = 0; i < 10000000; i++) { if (Prime.isPrime(i)) { if (isPandigital(i)) { System.out.println(i); } } } } public static boolean isPandigital(int num) { String chars = (num + ""); ...
C
UTF-8
14,549
2.8125
3
[]
no_license
#include "structures.h" #include "functions.h" #include <stdlib.h> #include <string.h> #include <stdio.h> IsTerminal* insertIdType(char* type, char* value, int line, int col){ IsTerminal* it = (IsTerminal*)malloc(sizeof(IsTerminal)); it->type = type; it->value = value; it->line = line; it->col...
JavaScript
UTF-8
1,337
2.703125
3
[]
no_license
import { useState } from 'react'; import './App.css'; import { Chart } from './components/Chart'; import { PrForm } from './components/PrForm'; function App() { const [event, setEvent]=useState("") const [labelData, setLabelData]=useState([]) const [dataSet, setDataSet]=useState([]) const [backColor, setBackC...
JavaScript
UTF-8
2,195
3.15625
3
[]
no_license
var Auto = { name:"Prov Car Rentals", cars:[ { name: "economy car", price: "$150.00", available: 40 }, { name: "luxury car", price: "$350.00", available: 20 }, { name: "Limo", ...
Java
UTF-8
689
2.46875
2
[ "MIT" ]
permissive
package org.squiddev.plethora.integration.vanilla.method; import net.minecraftforge.energy.IEnergyStorage; import org.squiddev.plethora.api.method.wrapper.FromTarget; import org.squiddev.plethora.api.method.wrapper.PlethoraMethod; public final class MethodsEnergyHandler { private MethodsEnergyHandler() { } @Pleth...
Java
UTF-8
2,439
2.53125
3
[]
no_license
package cn.yunbee.cn.wangyoujar.views; import android.content.Context; import android.graphics.Canvas; import android.os.Handler; import android.os.Looper; import android.util.AttributeSet; import android.view.View; import android.widget.ImageView; public class RefreshRotateView extends ImageView { private static ...
Markdown
UTF-8
2,660
3.0625
3
[]
no_license
[**Back**](https://naji-albatayneh.github.io/reading-notes) # TEXT IN HTML **- Structural Markup: using tags to discribe the structure of a webpage** **- Semantic Markup: using tags to add extra information about the content but will not afect the structure** - \<h1\> Heading 1 is used to show the main head...
Java
UTF-8
947
2.015625
2
[]
no_license
package com.reactive.controller; import java.util.Date; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.a...
Shell
UTF-8
4,140
4.1875
4
[]
no_license
#!/bin/bash # # A script helps writing blogs SUPPORTED_CMDS="new-draft publish unpublish diff commit \ serve site-publish site-init" ## Helpers for AutoCompletion BEGIN # NOTE: A function that helps with AC # For now, only prints the sub commands function __ac_tool { echo "$SUPPORTED_CMDS" } # hijack the whole co...
JavaScript
UTF-8
577
2.875
3
[ "MIT" ]
permissive
import chain from './chain' import toIter from './toIter' import $takeLast from './$takeLast' import toArray from './toArray' const test = require('tape') const m = (arr, n) => chain( toIter(arr), $takeLast(n), toArray ) test('$takeLast', t => { const arr = [...Array(5).keys()] t.deepEqual(m(arr, ...
Markdown
UTF-8
5,127
3.09375
3
[ "MIT" ]
permissive
--- title: అదనపు అధ్యయనము date: 29/07/2022 --- ఎలెన్ జి వైట్, పితరులు మరియు ప్రవక్తలులోని "విశ్వాసము పరీక్షించబడెను” పుటలు 145, 155. సంఘమునకు సాక్ష్యములు సంపుటి 5లోని "ప్రభువును స్తుతించుడి” పుటలు 315-319 చదువుడి. దేవుడు తన ప్రజలను ఎల్లప్పుడు వేదన అనే కొలిమిలో పరీక్షించెను. కొలిమి వేడి వలననే నిజమైన బంగారములోని మలి...
C++
UTF-8
426
3.015625
3
[]
no_license
#pragma once #include <memory> #include "Person.h" class IPersonBuilder { public: virtual ~IPersonBuilder() {}; virtual void buildName(const std::string personName) = 0; virtual void buildHead() = 0; virtual void buildBody() = 0; virtual void buildLeftArm() = 0; virtual void buildrRightArm() = 0; virtual void b...
TypeScript
UTF-8
3,200
2.734375
3
[ "Apache-2.0" ]
permissive
import {HttpClient} from '@angular/common/http'; import {Injectable} from '@angular/core'; import {Observable} from 'rxjs/Observable'; import {ReplaySubject} from 'rxjs/ReplaySubject'; import {ChangePasswordDto, InternalUserLoginDto} from '../_dto/internal-user'; import {InternalUser, User} from '../_dto/user'; import ...
C#
UTF-8
4,255
2.9375
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; using System.IO; using System.Data; namespace Sasila.Common.Tools { /// <summary> /// Xml的操作公共类 /// </summary> public class XmlHelper { /// <summary> /// 构造函数 /// </summa...
JavaScript
UTF-8
4,689
3.5
4
[ "MIT" ]
permissive
import areSame from "../../logic/areSame"; import checker from "../checker"; import findIndex from "../../array/findIndex"; import validate from "../validate"; import validateWith from "../validateWith"; describe("Object validation", () => { const persons = [ { name: "Jane", surname: "Doe", age: 12, city: ...
Java
UTF-8
527
1.929688
2
[ "MIT" ]
permissive
package se.sead.repositories; import se.sead.bugsimport.locations.seadmodel.Location; import se.sead.bugsimport.rdb.seadmodel.Rdb; import se.sead.bugsimport.rdbcodes.seadmodel.RdbCode; import se.sead.bugsimport.species.seadmodel.TaxaSpecies; import java.util.List; public interface RdbRepository extends CreateAndRea...
JavaScript
UTF-8
384
3.296875
3
[]
no_license
/** * @param {number[]} nums * @return {number} */ let removeDuplicates = function (nums) { const K = 2 let slow = 0 let fast = 0 // fast将值丢给前面的slow指针 slow指针检查是否有K个 while (fast < nums.length) { if (nums[slow - K] !== nums[fast]) { nums[slow] = nums[fast] slow++ } fas...
C#
UTF-8
3,215
2.578125
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 生成winform界面 { class NewAddClass { string WinformString = string.Empty; #region 数据库连接 SQL.SQLset SQLSet = new SQL.SQLset(); Access.AccessSet AccessSet =...
Markdown
UTF-8
1,102
3.328125
3
[]
no_license
# Chapter 01 - QuickSight Basic Objective: To create basic QuickSight visualisation using csv files ## Topic 1: AWS Console - Navigating to QuickSight 1. Login to AWS console 1. At the top left corner, click **Services**, type **QuickSight**, click on the item shown ## Topic 2: QuickSight Console (Sign Up) 1. Click o...
Java
UTF-8
6,384
2.296875
2
[]
no_license
package com.algaworks.brewer.model; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Embedded; import javax.persistence.Entity; import javax.persistence.EnumType; import javax.persistence.Enumerated; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType...
Java
UTF-8
684
3.203125
3
[]
no_license
package RGB; import java.util.Scanner; public class RGB7118 { public static void main(String[] args){ int a; Scanner input = new Scanner(System.in); a = input.nextInt(); if(a<=1){ System.out.println("Monday"); }else if(a==2){ System.out.println("Tue...
C++
UTF-8
497
3.125
3
[]
no_license
#include "Pintura.h" #include <iostream> using namespace std; Pintura::Pintura(){ color=""; acabado=""; } Pintura::Pintura(string colo,string aca){ color=colo; acabado=aca; } void Pintura::tostring(){ cout << "pintura: color- " <<color << "acabado: "<< acabado ; } void Pintura::setAcabado(string ac...
C++
UTF-8
4,821
2.796875
3
[]
no_license
#include "StorageManager.h" #include <fstream> #include "json.h" #include "ParameterControlWidget.h" const char* SENSOR_CONFIGURATION_PATH = "SensorConfiguration.json"; // *********************************************** // Sensor Configuration // *********************************************** StorageManager::Stora...
Java
UTF-8
1,301
1.859375
2
[]
no_license
package com.smartmadsoft.xposed.aio.tweaks; import android.media.AudioManager; import android.os.Build; import de.robv.android.xposed.XC_MethodHook; import de.robv.android.xposed.XposedBridge; import de.robv.android.xposed.XposedHelpers; import de.robv.android.xposed.callbacks.XC_LoadPackage; public class MediaStrea...
Java
UTF-8
1,910
2.75
3
[]
no_license
package utils; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.type.TypeFactory; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.List; imp...
Python
UTF-8
136
3.15625
3
[]
no_license
import numpy as np m = np.array( [20,30,40,10,5,8] ).reshape(2,3) print(m) a=np.sin(m) print(a) b=np.cos(m) print(b) print(a+b)
JavaScript
UTF-8
1,059
3.296875
3
[]
no_license
// //function timeout(){ //console.log("running.....") //} //setTimeout(timeout,3000) //var count =0; // interval; //function timer(){ //count++ // console.log(count) //} //interval= setInterval(timer,1000) //setTimeout(function(){ // clearInterval(interval) //},3000) var min= 0; var sec...
Markdown
UTF-8
12,858
2.78125
3
[]
no_license
--- title: Vue构造函数 tags: [Vue, VueConstructor] toc: true mathjax: true date: 2019-03-20 20:19:50 categories: - 框架 - Vue - 原理 --- # Vue构造函数的原型 以`npm run dev`为切入点,查看`package.json`中的`dev script` ```javascript "dev": "rollup -w -c scripts/config.js --environment TARGET:web-full-dev" ``` 找到scripts下的config.js,builds对象中包含...
Java
UTF-8
9,550
2.171875
2
[]
no_license
package materialData; import static java.lang.Math.*; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.text.DecimalFormat; import fem.Model; import math.Mat; import math.Vect; import math.util; public class LamBSCurve { public LamBCurve[] lamB...
Python
UTF-8
1,048
3.21875
3
[]
no_license
#!/usr/bin/env python from sys import argv from itertools import chain, combinations def powerset(group): return chain.from_iterable(combinations(group, r) for r in range(len(group) + 1)) def GCD(x, y): x, y = (x,y) if x > y else (y, x) a0, a1 = x, y x0, x1 = 1, 0 y0, y1 = 0, 1 while(a1 > 0):...
Markdown
UTF-8
3,250
2.84375
3
[]
no_license
Identitas Diri Nim : [2141720103] Nama: [Afifah Nofa Kurnia Rahmadani] ### Soal UTS 2021-2022 Waktu: 90 menit Silakan mengerjakan soal di bawah ini, NIM ganjil untuk mengerjakan nomor.1 sedangkan nomor.2 untuk NIM genap. Tuliskan kode program pada cell yang telah disediakan dan jangan lupa untuk menjalankan hasil k...
Markdown
UTF-8
1,418
2.5625
3
[ "CC-BY-4.0", "MIT" ]
permissive
--- title: TargetFilePath specifica una cartella esistente ms.date: 07/20/2015 ms.prod: .net ms.technology: devlang-visual-basic ms.topic: article ms.assetid: 2334f49e-d080-4ee2-b036-f95c7f76c3ec caps.latest.revision: "9" author: dotnet-bot ms.author: dotnetcontent ms.openlocfilehash: b36f704b60d5964bb1474603a...
Ruby
UTF-8
626
4.09375
4
[]
no_license
#write your code here def echo phrase phrase end def shout phrase phrase.upcase end def repeat phrase, times=2 padded_phrase = phrase + ' ' result = padded_phrase * times result.strip end def start_of_word phrase, num_letters phrase[0..num_letters-1] end def first_word phrase phrase.split(' ').first end def...
Python
UTF-8
767
2.875
3
[]
no_license
from flask_sqlalchemy import SQLAlchemy from core import app db = SQLAlchemy(app) class Person(db.Model): id = db.Column(db.Integer, primary_key=True) age = db.Column(db.Integer) name = db.Column(db.String(80)) last_name = db.Column(db.String(80)) def __repr__(self): return f"Person <{s...
Java
UTF-8
1,343
3.09375
3
[]
no_license
package com.rainbow.games.domino; /** * Created by olehd on 23.12.2015. */ public class Bone { public static final Bone[] COMBINATIONS = new Bone[]{ new Bone(0, 0), new Bone(0, 1), new Bone(0, 2), new Bone(0, 3), new Bone(0, 4), new Bone(0, 5), new Bone(0, 6), new Bone(1, 1), new Bone(1, ...
Python
UTF-8
208
3.28125
3
[]
no_license
n=input() i=0 for i in range(int(n)): word=input() if len(word)>10: length=len(word)-2 ans=word[0]+str(length)+ word[-1] else: ans=word print (ans) i+=1
Markdown
UTF-8
218
2.5625
3
[]
no_license
# hello-world This is a tutorial! Hey, my fake name is Ixen, it looks very cool. The challenge is: can you spell it correctly? If you can, then, you will have the honour to meet me. Otherwise, you will not! The end.
Java
UTF-8
900
2.34375
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 br.edu.ifma.oximetro; import org.eclipse.paho.client.mqttv3.IMqttMessageListener; import org.eclipse.paho.client.mqttv3.MqttMe...
JavaScript
UTF-8
3,822
3.9375
4
[]
no_license
var view = { displayMessage: function (msg) { var messageArea = document.getElementById("messageArea"); messageArea.innerHTML = msg; }, displayHit: function (location) { var cell = document.getElementById(location); cell.setAttribute("class", "hit"); }, displayMis...
Markdown
UTF-8
3,479
3.296875
3
[]
no_license
Preface ======= Dr. Wilson H. Guertin is a scientist and an outstanding psychologist. In addition, he has a great deal of respect towards religion and possesses a broad knowledge in theology. His interest in religion represents the interest of a scientist who thinks that religion, in general, contains some truth, in ...
C++
ISO-8859-1
1,636
2.625
3
[]
no_license
#include "ETSIDI.h" #include <iostream> #include <cmath> #include <stdio.h> #include "Enemigo.h" #include "glut.h" #pragma once using ETSIDI::SpriteSequence; class BossFinal : public Enemigo { private: bool EntrarModoDiablo; //Flag de control del modo diablo. Slo se activa una vez. bool ComienzaCombate; bool es...
Java
UTF-8
1,845
1.875
2
[]
no_license
package com.xiaojing.shop.adapter; import android.os.Build; import android.support.annotation.RequiresApi; import android.support.v7.widget.RecyclerView; import android.view.View; import com.squareup.picasso.Picasso; import com.wuzhanglong.library.adapter.RecyclerBaseAdapter; import com.wuzhanglong.library.utils.Base...
C
UTF-8
326
2.53125
3
[]
no_license
int solution(int N, int M) { //! M * X = N * Y, where X is number of chocolates int gcd = 0; // int lcm = 0; int a = N; int b = M; while (a % b != 0) { gcd = b; b = a % gcd; a= gcd; } gcd = b; // lc = N * M / gcd; // N * M may exceed integer max size // return lcm / M; return N / g...
Java
UTF-8
794
2.796875
3
[]
no_license
package com.zbt.async; import java.io.PrintWriter; import java.util.Date; import javax.servlet.AsyncContext; public class BigPipeExecutor implements Runnable { private AsyncContext ctx = null; public BigPipeExecutor(AsyncContext ctx){ this.ctx = ctx; } public void run(){ try { ...
Go
UTF-8
2,219
3.921875
4
[]
no_license
package main import "fmt" func main() { /* tipos de datos basicos en go son 3: bool, string, numeric */ condicion := true numero := 12 cadena := "cadena de texto" fmt.Printf("Tipo %T , Valor %v \n", numero, numero); fmt.Printf("Tipo %T , Valor %v \n", condicion, condicion); fmt.Printf("Tipo %T , Valor %v ...
JavaScript
UTF-8
5,592
3.734375
4
[]
no_license
var canvas; var canvasContext; var ball_x = 400; // position of the ball for the x coordinate var ball_y = 300; // position of the ball for the y coordinate var ball_speed_x = 5; // ball's speed for the x coordinate var ball_speed_y = 5; // ball's speed for the y coordinate var paddle1Y = 250; // Initial position...
Java
UTF-8
5,937
2.96875
3
[]
no_license
package com.jacken_liu.neteaseeventlib; import java.util.ArrayList; import java.util.List; /** * 容器 */ public class ViewGroup extends View { /** * 存放子控件 */ List<View> childList = new ArrayList<>(); private View[] mChildren = new View[0]; private TouchTarget mFirstTouchTarget; public ...
Markdown
UTF-8
5,519
2.625
3
[ "MIT" ]
permissive
--- layout: post title: windows下使用docker跑node程序 --- win下使用docker进行node的开发。 # prepare * docker-toolbox # install 下载好docker-toolbox后会自动安装上`Oracle VM VirtualBox`,`Docker Quickstart Terminal`。 启动`Docker Quickstart Terminal`会自动初始化虚拟机(前提是你的VT-x已经开启,而且没有被win10没有启用自带的virtual machine)。 在终端中安装必要的环境 ```(shell) > docker im...
Markdown
UTF-8
4,176
2.53125
3
[]
no_license
## Sobre "Tio Patinhas" é um chatbot para Facebook messenger. Ele serve para informar a cotação de moedas diversas e também de algumas criptomoedas. Todas as mensagens são em português brasileiro. ## Como falar com o Tio Patinhas? Há 3 maneiras simples! - Entrar em http://m.me/TioPatinhasBot <br> - Enviar uma mensag...
C++
UTF-8
1,085
3.4375
3
[]
no_license
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ // problem link - https://leetcode.com/problems/palindrome-linked-list // time complexity - O(N) // space complexity - O(1) class Solution { public: bool isP...
Java
UTF-8
818
3.328125
3
[]
no_license
package testcutandchoose; import java.util.ArrayList; import java.util.Collections; import java.util.Random; import java.util.Scanner; public class main { public static void main(String[] args) { int temp1 = 0; int index = 0; Scanner sc = new Scanner(System.in); System.out.println("how many random numbers?"...
C
UTF-8
1,698
3.0625
3
[]
no_license
#include <stdio.h> #include <stdint.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <fcntl.h> #include "forksrv.h" __attribute__((constructor)) void start_forksrv(void) { int32_t tmp = 0; // the value does not matter if (((fcntl(FD_CTL_READ_END, F_GETFD)) < 0) || ((fcntl(FD_ST_...
Java
UTF-8
6,475
3.21875
3
[]
no_license
package com.example.jarek.sudoku; /** * Created by jarek on 20.04.16. */ import android.app.AlertDialog; import android.widget.Toast; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.Arrays; import java.util.Random; /** *...
Java
UTF-8
38,722
2.40625
2
[]
no_license
package visao; import controle.FornecedorController; import java.util.ArrayList; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; import javax.swing.table.DefaultTableModel; import modelo.Fornecedor; public class FrmFornecedor extends javax.swing....
Shell
UTF-8
1,615
3.609375
4
[]
no_license
#!/bin/bash stage="$1" destination="$2" arch="$3" cross_tools="$4" #Include our common functions . ./packages/common/functions echo "Cross-Compiling curl for $arch at $destination - stage: $stage" current_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) download_dir="$destination/packages" destination_dir="$d...
Shell
UTF-8
519
3.59375
4
[]
no_license
#!/usr/bin/env bash main () { ans="" for color in "$@"; do case $color in "black" ) code=0 ;; "brown" ) code=1 ;; "red" ) code=2 ;; "orange" ) code=3 ;; "yellow" ) code=4 ;; "green" ) code=5 ;; "blue" ) code=6 ;; "violet" ) code=...
PHP
UTF-8
1,773
2.8125
3
[]
no_license
<?php class PaypalProvider { protected string $clientId; protected string $clientSecret; protected string $state; public function __construct($clientId, $clientSecret, $state) { $this->clientId = $clientId; $this->clientSecret = $clientSecret; $this->state = $state; } ...
PHP
UTF-8
2,452
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "get_shipping_no". * * @property int $id * @property int $id_order 订单ID * @property int $count 运单号获取次数 * @property string $return_content 物流API返回错误信息 * @property string $last_get_time 最后获取运单号时间 * @property string $create_time 创建时间 ...
Markdown
UTF-8
2,382
2.53125
3
[]
no_license
Introduction ------------ This project allows for the scraping of all necessary eVision datasets. These include Google Trends data, CDC ILI data, and WHO data. This was developed using Python 3.7.x on MacOS, so no guarantees that it works on anything more outdated. This code can be used both on your desktop, or dep...
Java
UTF-8
931
2.578125
3
[]
no_license
package myservlets; import java.io.IOException; import java_beans.Dog; import java_beans.Person; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public cla...
C#
UTF-8
5,083
2.78125
3
[]
no_license
using DAL; using DAO.Interfaces; using Models; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DAO { public class ProjekcijaDAO : IRepository<Projekcija> { private DatabaseManager manager; public ...
Java
UTF-8
282
1.625
2
[]
no_license
/** * */ package cn.himma.entity; import lombok.Data; /** * @Desc * @author wenge.yan * @Date 2016年6月20日 * @ClassName User */ @Data public class UserEntity { private String username; private String password; private String usertype; }
Markdown
UTF-8
2,177
2.640625
3
[]
no_license
# 鄂州市(鄂城区) 🏅中国优秀旅游城市。 🌳市树:樟树、银杏。 📞电话区号:0711 🚘车牌编号:鄂G ## 梁子湖区(太和镇) 🌐下辖乡镇(街道):太和镇、梧桐湖新区、东沟镇、梁子镇、涂家垴镇、沼山镇。 🚩革命文物保护利用片区(湘鄂西片区)(湘鄂赣片区)(鄂豫皖片区)。 * 【涂家垴镇万秀村】:*美丽宜居村庄。全国乡村旅游重点村。* * 【梁子镇】:*全国特色景观旅游名镇(村)。* ## 华容区(华容镇) 🌐下辖乡镇(街道):华容镇、庙岭镇、段店镇、临江乡、蒲团乡。 🚩革命文物保护利用片区(湘鄂西片区)(湘鄂赣片区)(鄂豫皖片区...
C++
UTF-8
6,180
2.921875
3
[]
no_license
#include <Interval.h> /* This sketch makes 100 NeoPixels fade in a candle-like behavior. created 10 Dec 2016 updated 23 Dec 2016 by Tom Igoe */ #include <Adafruit_NeoPixel.h> #include <Bridge.h> #include <Console.h> #include <Mailbox.h> const int neoPixelPin = 3; // pin that's controlling the neoPixels c...
C
UTF-8
950
4
4
[ "MIT" ]
permissive
/// 3.8. Să se scrie o funcţie care primind ca parametru un număr roman sub forma unui şir de caractere, returnează numărul respectiv ca număr arab în baza 10. #include <stdio.h> #include <stdlib.h> #include <string.h> int convert(const char ch){ switch(ch){ case 'M': return 1000; case 'D': return...
Java
UTF-8
635
3.625
4
[]
no_license
package day24_loops; public class WhileLoopReverse { public static void main(String[] args) { int count = 5; while (count >= 0){ System.out.println("count = " + count); count--; } System.out.println("Finished the count"); int unreadSMS = 10; ...
C++
UTF-8
266
3.109375
3
[]
no_license
#include<iostream> #include<conio.h> using namespace std; main(){ int num; cout<<"Enter a number:"; cin>>num; switch(num){ case 10: cout<<"It is 10";break; case 20: cout<<"It is 20";break; case 30: cout<<"It is 30";break; default: cout<<"Unknown"; } }
Java
UTF-8
12,428
1.796875
2
[]
no_license
package com.xdj.interfaces.mallinterface.controller.buyer; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.xdj.interfaces.mallinterface.mv.JModelAndView; import com.xdj.interfaces.mallinterface.mv.PageModel; import com.xdj.interfaces.mallinterface.security.SecurityUserHolder; ...
Java
UTF-8
2,084
2.375
2
[]
no_license
package com.vivek.linkedinsample; import android.app.Activity; import android.app.ProgressDialog; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import com.google.code.linkedinapi.client.oauth.LinkedInAccessToken; imp...
Markdown
UTF-8
1,721
3.21875
3
[ "MIT" ]
permissive
<!-- order: 1 --> # State ## Organization Organizations are the stakeholders that can create, manufacture, and transfer products. There are appended by authorities and are immutable. Once created, an organization cannot be deleted. If the organization misbehaves, it can be relegated by an authority. Once relegated, ...
C
UTF-8
975
3.171875
3
[]
no_license
#include <stdio.h> int main() { float value,commision,shares,price,rival_commission; printf("enter the number of shares:"); scanf("%f",&shares); printf("enter price per share:"); scanf("%f",&price); value = shares*price; if (value<2500) commision=30.00+(0.017*value); else if(val...
C++
UTF-8
1,045
2.5625
3
[ "MIT" ]
permissive
#pragma once #include "Component.h" #include "TransformComponent.h" #include <string> #include <SFML/Graphics.hpp> #include "GameObjectSharer.h" #include <iostream> using namespace sf; using namespace std; class GraphicsComponent : public Component { private: string m_Type = "graphics"; bool m_Enabled = false; pub...
JavaScript
UTF-8
430
2.828125
3
[]
no_license
let games='basketball'; switch (games) { case 'throwball': console.log("i hate throwball"); break; case 'basketball': console.log("basketball is hard"); break; case 'cricket': console.log("am a huge cricket fan"); break; case 'football': console.l...
Java
UTF-8
1,391
2.109375
2
[ "Apache-2.0" ]
permissive
package org.hhn.topicgrouper.paper.perplexity.retail; import java.util.Random; import org.hhn.topicgrouper.doc.DocumentProvider; import org.hhn.topicgrouper.doc.impl.DefaultVocab; import org.hhn.topicgrouper.doc.impl.HoldOutSplitter; import org.hhn.topicgrouper.tg.validation.TGLRPerplexityCalculator; import o...
Java
UTF-8
208
1.515625
2
[]
no_license
package com.newvision.zeus.glasscore.protocol.entity; import java.util.List; /** * Created by yanjiatian on 2017/7/10. */ public interface IScanIPFinishListener { void finish(List<String> ipList); }
Python
UTF-8
162
3.453125
3
[]
no_license
n=int(input("Number please")) x=range(2,n) a=[n % i for i in x] if 0 in a: print("Not a prime") elif n==1: print("Not a prime") else: print("prime")
C++
UTF-8
382
2.796875
3
[]
no_license
// // main.cpp // part2 // // Created by hankang yang on 2/1/16. // Copyright © 2016 hankang yang. All rights reserved. // #include <iostream> int main(int argc, const char * argv[]) { // insert code here... const int* p1; int* p2; p1 = p2; // right p2 = p1; // wrong p2 = (int* )p1...
Java
UTF-8
461
3.3125
3
[]
no_license
package com.basic; public class StaticDemo { static int a=10; int b=20; public static void main(String[] args) { StaticDemo obj1 =new StaticDemo(); StaticDemo obj2 =new StaticDemo(); StaticDemo obj3 =new StaticDemo(); obj1.a=11; obj1.b=21; obj2.a=12; obj2.b=22; obj3.a=13; obj3.b=23; ...
Python
UTF-8
4,670
3.359375
3
[]
no_license
#!/usr/bin/env python # coding: utf-8 # In[14]: # Importing all necessary libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns get_ipython().run_line_magic('matplotlib', 'inline') from sklearn.linear_model import LinearRegression from sklearn.preprocessing import St...
Java
UTF-8
2,667
2.40625
2
[]
no_license
package edu.schoolapp; import android.graphics.Color; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.view.MenuItem; import com.github.mikephil.charting.charts.PieChart; import com.github.mikephil.charting.data.PieData; import com.g...
Python
UTF-8
143
3.515625
4
[]
no_license
check= "abc" if check== True: print("check is true") elif check== "abc": print("check is abc") else : print("check is false")
Python
UTF-8
796
3.3125
3
[]
no_license
''' Created on 24 de set de 2015 @author: cleviton ''' respostas = [0,0,0,0,0] telefonou = input("Telefonou para a vítima? (s/n) ") if(telefonou == "s"): respostas[0] = 1 local = input("Esteve no local do crime? (s/n) ") if(local == "s"): respostas[1] = 1 mora = input("Mora perto da vítima? (s/n) ") if(mora ==...
Java
UTF-8
2,850
2.140625
2
[]
no_license
package tweakyllama.bombardier.base.module; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.OnlyIn; import net.minecraftforge.client.event.ModelRegistryEvent; import net.minecraftforge.client.event.TextureStitchEvent; import net.minecraftforge.fml.event.lifecycle.FMLClientSetupE...
Go
UTF-8
559
2.734375
3
[ "MIT" ]
permissive
package profiles import ( "fmt" "prostokat/configs" "github.com/spf13/cobra" ) func NewCmdProfilesDelete(cfg *configs.Config) *cobra.Command { cmd := &cobra.Command{ Use: "delete", Short: "Deletes a named profile", Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { profile ...
PHP
UTF-8
2,005
2.59375
3
[]
no_license
<?php session_start(); if(isset($_POST['submit'])) { include 'config.php'; $email = mysqli_real_escape_string($database, $_POST['email']); $password = mysqli_real_escape_string($database, $_POST['password']); $db = "SELECT * FROM customer WHERE email='$email' AND password='$password'"; $result = mysqli_query(...
Java
UTF-8
1,520
3
3
[]
no_license
package Modelo; /** * * @author Conni */ //--------DECLARACION DEL VARIABLES--------------------- public class TipoRecurso { private String codigo; private String nombre; private String descripcion; private String tasa; //--------CONSTRUCTOR CON PARAMETROS--------------------- public void TipoRe...
C++
UTF-8
830
3.6875
4
[]
no_license
你的任务是计算 ab 对 1337 取模,a 是一个正整数,b 是一个非常大的正整数且会以数组形式给出。 示例 1: 输入 : a = 2, b = [3] 输出 : 8 示例 2 : 输入 : a = 2, b = [1, 0] 输出 : 1024 //解题思路 //(a * b) % p = (a % p * b % p) % p //先写一个求次方的函数。 //由于次方b给的是数组,直接转为数字求次方也会导致溢出,所有转为每个位上的次方,下一轮开始的时候求个10次方。 class Solution { public: int qpow(int a, int b, int m) { int res...
Markdown
UTF-8
2,065
3.109375
3
[]
no_license
# 课程建议-Team-10 ### 小组成员 | job | name | Student ID | | ---- | ---- | ---------- | | 队长 | 齐炜祯 | PB15020761 | | 成员 | 黄一凡 | PB15111591 | | 成员 | 金泽文 | PB15111604 | 一下是小组里每个人建议的并集,(为避免偏听,所以没有做删减) ### 建议 ``` 时间建议避开考试周。要么在考试周之前,要么在考试周之后,时间冲突,较难做出高质量的内容。 teamwork选题与课程内容很贴近,而且是较为前沿的内容。这个可以保持下去。但很多概...
Java
UTF-8
2,739
2.078125
2
[]
no_license
package com.example.user.alphatest; import android.app.ProgressDialog; import android.content.Intent; import android.content.IntentFilter; import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; i...
Java
UTF-8
538
2.4375
2
[]
no_license
package com.hw.mvpbase.basenetwork.exception; import java.io.IOException; /** * Created by hw on 4/21/17.<br> */ public class ApiException extends IOException { private String code; public ApiException(String detailMessage) { this(null, detailMessage); } public ApiException(String code, ...
C
UTF-8
1,123
2.703125
3
[ "MIT" ]
permissive
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "indice.h" #include "dispersion.h" int generaIndice(char *ficheroDatos, char *ficheroIndice) { FILE *pDataFile; //alumnos.dat FILE *pIndexFile; //alumnos.idx tipoIndice idx; tipoAlumno a; int nReg = 0; if((pDataFile = fopen(ficheroDatos, "...
Python
UTF-8
884
2.5625
3
[ "MIT" ]
permissive
import os import sys import errno import shutil def remove_ignore_missing(path): try: try: shutil.rmtree(path) except OSError as e: if e.errno == errno.ENOTDIR: # Not a directory os.remove(path) else: raise except OSError as ...
Markdown
UTF-8
2,737
2.890625
3
[ "MIT" ]
permissive
--- layout: post title: "Your JavaScript Sucks" date: 2011-12-17T00:00:00.000Z comments: false author: Scott Williams categories: [] --- JavaScript has been getting a lot of press lately. You can write <a href="http://nodejs.org/">servers</a> with it, talk to <a href="http://www.couchbase.com/">databases</a>, and of co...
C++
UTF-8
1,528
2.921875
3
[ "MIT" ]
permissive
#ifndef _SVM_H_ #define _SVM_H_ #include <iostream> using namespace std; typedef double SCALAR; struct SVector { SCALAR *x; int y; SCALAR a; SVector() { x = NULL; } void alloc(int d) { x = new SCALAR[d]; } ~SVector() { if(x != NULL) delete[] x; } }; class SVM { protected: SCALAR kernel(SC...
C
UTF-8
685
2.671875
3
[]
no_license
#ifndef _STACK_H #define _STACK_H #include "TreeNode.h" #define STACK_OK 0 #define STACK_ERR -1 #define TRUE 1 #define FALSE 0 typedef int bool; typedef struct stack { struct sStackNode *top; int len; }sStack,*psStack; typedef struct stacknode { cluetreenode* data; struct sStackNode *pre; }sStackNode,ps...
Python
UTF-8
1,601
2.8125
3
[]
no_license
import cv2 import numpy as np def squarify(location): img = cv2.imread(location) img = cv2.GaussianBlur(img, (5, 5),5) # print(type(img)) # convert to HSV hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV) # set lower and upper color limits (for pink) lower_val = (131, 37, 180) upper_val = (...