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 | 661 | 2.171875 | 2 | [] | no_license | package com.example.crawler_server.service.serviceImp;
import com.example.crawler_server.dao.ITaskDao;
import com.example.crawler_server.entity.Task;
import com.example.crawler_server.service.ITaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@S... |
C | UTF-8 | 360 | 3.1875 | 3 | [] | no_license | // Lap trinh C tren Ubuntu su dung Geany
// Build: gcc baitap4.c -o baitap4 -lm
/* Tinh log(a, x) voi a, x nhap tu ban phim x>0, a>0 va a khac 1
*/
#include <stdio.h>
#include <math.h>
int main(){
float a, x;
printf("Nhap vao 2 so a, x: ");
scanf("%f%f", &a, &x);
float logax = log(x)/log(a);
printf("Log(... |
Markdown | UTF-8 | 4,150 | 3 | 3 | [
"MIT"
] | permissive | ---
uid: first-terrain
title: Your first terrain
---
## The Absolute Basics
Creating a terrain in Gaea is very simple. If you are new to graph based workflows, let's look at how easy it is to get a realistic mountain in seconds.
If you have worked in graph-based applications, you will find it very easy to use Gaea. ... |
Java | UTF-8 | 2,111 | 2.171875 | 2 | [] | no_license | package com.boneix.base.mail.test;
import com.boneix.base.mail.HtmlVelocityEngine;
import com.boneix.base.mail.MailSender;
import org.apache.commons.collections.map.HashedMap;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.io.FileSystemResource;
import o... |
Java | UTF-8 | 927 | 2.15625 | 2 | [] | no_license | package com.jaygoaler.pitools.service.impl;
import com.jaygoaler.pitools.model.User;
import com.jaygoaler.pitools.mapper.UserMapper;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.codec.digest.Md5Crypt;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.Sprin... |
PHP | UTF-8 | 1,287 | 2.515625 | 3 | [] | no_license | <?php
/*
* 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.
*/
include_once '../control/pohv_pri.php';
$abc = new pp(); // objekt
//$abc ->vstaviPohvaloPritozbo('ulala', 'Pohvala', 'no ja... |
Java | UTF-8 | 5,989 | 1.914063 | 2 | [] | no_license | package project.client.internshipPlatform.userActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import androi... |
JavaScript | UTF-8 | 5,346 | 2.609375 | 3 | [] | no_license | $(document).ready(function(){
$(".cell").html(" ");
$("body").append("<div class='d8'>abc</div>");
start();
$(document).on("click",".btn",function(){
clicked($(this).attr("id"));
});
});
function clicked(name){
orientation="empty";direction="empty";
if ((name==="left")||(name==="right")) orientation="hori... |
Java | UTF-8 | 3,092 | 2.3125 | 2 | [] | no_license | package com.example.demo.client.api;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.example.demo.client.api.entity.DesireUserInGroupResponce;
import com.example.demo.client.exception.NotFoundException;
import ... |
C++ | ISO-8859-10 | 875 | 3.640625 | 4 | [] | no_license | #include <iostream>
#include <conio.h>
#include <stdlib.h>
//Pila= Es una estructura de datos ordenada en la que el modo
// de acceso a sus elementos de tipo LIFO
using namespace std;
struct Nodo{
int dato;
Nodo *siguiente;
};
void agregarPila(Nodo *&,int);//Prototipo agregar Nodo
int main(int argc, char** argv) {... |
C# | UTF-8 | 351 | 2.546875 | 3 | [] | no_license | using System;
namespace BasicAtmMachine
{
public class Customer
{
public Customer()
{
Id = Guid.NewGuid();
CardNo = Guid.NewGuid().ToString();
}
#region Properties
public Guid Id { get; set; }
public string CardNo { get; set; }
... |
TypeScript | UTF-8 | 528 | 2.546875 | 3 | [
"MIT"
] | permissive | import { Currency } from '../Generated/web/org/xrpl/rpc/v1/amount_pb'
/**
* An issued currency on the XRP LEdger
* @see: https://xrpl.org/currency-formats.html#currency-codes
*/
export default class XRPCurrency {
public static from(currency: Currency): XRPCurrency {
return new XRPCurrency(currency.getName(), ... |
Markdown | UTF-8 | 973 | 3.734375 | 4 | [] | no_license | # cs50
It is a repository of all my programs written for solving problem sets in the CS50 course of Harvard University.
It is a C program that determines whether a provided credit card number is valid according to Luhn’s algorithm.
In addition to that, the program is written in such a manner that it can also print th... |
Markdown | UTF-8 | 3,001 | 2.8125 | 3 | [] | no_license | # As dez virgens {#as-dez-virgens}
[Mateus 25:1-5](http://bibliaonline.com.br/acf/mt/25/1-5)
Enquanto a primeira parte do [capítulo 24](http://bibliaonline.com.br/acf/mt/24) de Mateus trata da vinda do Messias e Rei para Israel no final da grande tribulação, o [capítulo 25](http://bibliaonline.com.br/acf/mt/25) fala ... |
Markdown | UTF-8 | 3,596 | 3.984375 | 4 | [] | no_license | # 斐波那契数列
## 1.数学定义
斐波那契数列: [维基百科](https://en.wikipedia.org/wiki/Fibonacci_number)
<img src = "https://github.com/shawshanks/Data-Structure-and-Algrithm/blob/master/image/%E8%8F%B2%E6%B3%A2%E9%82%A3%E5%88%87%E6%95%B0%E5%88%97%E5%AE%9A%E4%B9%89.PNG" width = '100%'>
即
```python
Fib(n) = n , if n = 0,1
= Fib(n-... |
Markdown | UTF-8 | 4,972 | 2.984375 | 3 | [] | no_license | # Git
## 使用频率较高的操作
### 分支
* `git checkout master` 切换分支
* `git branch dev` 新建分支dev
* `git checkout -b dev` 新建dev分支并切换到dev
* `git merge dev` 在当前分支上将dev合并进来
* `git stash` 将当前工作现场“储藏”起来,等以后恢复现场后继续工作,存储之后status是干净的,可以切其他分支操作,操作完成之后再切回来,取回暂存
* `git stash list` 查看暂存区有哪些
* `git stash apply` 将暂存区内容回复到本地,但是暂存区内容不删除
* `git stas... |
Java | UTF-8 | 5,474 | 2.234375 | 2 | [] | no_license | package com.qtpselenium.suiteA;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.apache.commons.lang3.RandomStringUtils;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebElement;
import org.testng.Assert;
import org.testng.SkipExceptio... |
Java | UTF-8 | 348 | 1.84375 | 2 | [] | no_license | package com.example.demo.model;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface JobRepo extends CrudRepository<Job, String>{
public List<Job> findAll();
public Job findJobByjobId(String jobId);
//publi... |
JavaScript | UTF-8 | 1,119 | 2.734375 | 3 | [] | no_license | const Application = require('./src/application');
const argv = require('yargs')
.usage('Usage: $0 [options]')
.describe('i', 'File with employees. Should be in JSON format.')
.describe('y', 'Year to get vacation days')
.describe('o', 'File to save result')
.demandOption(['i', 'y'])
.defau... |
Python | UTF-8 | 2,273 | 3.234375 | 3 | [] | no_license | #!/usr/bin/env python3
import hashlib
import base64
from typing import Callable
def encode_decode_bytes(byte_message: bytes, encode_fn: Callable[[bytes], bytes]) -> bytes:
return encode_fn(byte_message)
def encode_text(text: str, encoding_format: str = 'ascii') -> str:
return encode_decode_bytes(text.encode... |
Java | UTF-8 | 545 | 2.53125 | 3 | [] | no_license | package org.jugru.minijunit.assertion;
import static org.jugru.minijunit.assertion.AssertUtils.buildPrefix;
import static org.jugru.minijunit.assertion.AssertUtils.fail;
public class AssertNull {
private static final String EXPECTED_NULL = "expected: <null>";
static void assertNull(Object object) {
a... |
JavaScript | UTF-8 | 1,230 | 3 | 3 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Introduction to the DOM Lab</title>
</head>
<body>
<!--All our work for this lesson will go here-->
<h... |
C# | UTF-8 | 1,143 | 3.40625 | 3 | [] | no_license | //-----------------------------------------------------------------------
// <copyright file="Program.cs" company="Telerik Academy">
// Telerik Academy by Progress
// </copyright>
// <author>Petromil "Dominent" Pavlov </author>
//-----------------------------------------------------------------------
namespace IEnume... |
Python | UTF-8 | 2,045 | 2.703125 | 3 | [] | no_license | import numpy as np
from astropy import wcs
from astropy.io import fits
import pdb
import astropy.coordinates as coord
import astropy.units as u
def add_wcs_to_nirc2(nirc2_file, x_16C, y_16C):
"""
x_16C -- pixel position
y_16C -- pixel position
"""
# Create a new WCS object. The number of axes must... |
Java | UTF-8 | 1,044 | 3.203125 | 3 | [] | no_license | package by.it.malyshev.jd01_12;
import java.util.*;
/**
* @author Sergey Malyshev
*/
public class TaskA2 {
public static void main(String[] args) {
Integer[] intArray={1,3,1,2,5,3,4,2,0,0,0,2,4,5,7,9,7,6,5};
List<Integer> a = Arrays.asList(intArray);
List<Integer> arrayListA=new Array... |
PHP | UTF-8 | 1,895 | 2.953125 | 3 | [
"MIT"
] | permissive | <?php
/**
* @package framework
* @copyright Copyright (c) 2005-2020 The Regents of the University of California.
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Hubzero\Utility;
/**
* Cookie utility class
*
* Set and retrieve cookies in consistent manner
*/
class Cookie
{
/**
* Drop a... |
Python | UTF-8 | 405 | 3.9375 | 4 | [] | no_license | """
Given two strings, determine if one is an anagram of the other. For example, the two strings “anagram” and “margana” are anagrams of each other.
"""
def is_anagram(string_1: str, string_2: str) -> bool:
n = len(string_1)
if len(string_2) != n:
return False
for i in range(n):
if string_1... |
PHP | UTF-8 | 2,795 | 2.765625 | 3 | [
"MIT",
"BSD-3-Clause"
] | permissive | <?php
namespace AppBundle\Repository;
/**
* EventRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class EventRepository extends \Doctrine\ORM\EntityRepository
{
// requete sql sur mesure;
/**
* @param $date
* @return Event[]
... |
JavaScript | UTF-8 | 488 | 3.046875 | 3 | [] | no_license | const $cards = document.querySelector(".cards");
const newCard = document.createElement("figure");
const cloneCards = $cards.cloneNode(true);
newCard.innerHTML = `
<img src="https://placeimg.com/200/200/any" alt="Any">
<figcaption>Any</figcaption>
`;
newCard.classList.add("card");
//$cards.replaceChild(newCard... |
TypeScript | UTF-8 | 911 | 2.984375 | 3 | [
"MIT"
] | permissive |
export const IGNORE_ERRORS = true
export const THROW_ERRORS = false
export const prettyPrint = (ugly: string, ignoreErrors: boolean = THROW_ERRORS): string => {
let pretty: string = ""
try {
const jsonObject = JSON.parse(ugly)
pretty = JSON.stringify(jsonObject, undefined, 4)
} catch (error) {
i... |
C++ | UTF-8 | 2,900 | 2.765625 | 3 | [] | no_license |
#include <boost/asio/basic_waitable_timer.hpp>
#include <boost/asio/io_service.hpp>
#include <boost/math/tools/univariate_statistics.hpp>
#include <boost/optional.hpp>
#include <algorithm>
#include <chrono>
#include <iostream>
#include <mutex>
#include <string>
#include <thread>
#include <vector>
template <class Cloc... |
JavaScript | UTF-8 | 10,996 | 2.53125 | 3 | [] | no_license | const jwt = require('jsonwebtoken'); // Compact, URL-safe means of representing claims to be transferred between two parties.
const bcrypt = require('bcrypt-nodejs'); // A native JS bcrypt library for NodeJS
const url = require('url');
module.exports = (router) => {
/* =============================================... |
Markdown | UTF-8 | 1,364 | 2.921875 | 3 | [] | no_license | # TMDB-Movie-App
This application integrates with TMDB APIs and displays list of now playing movies with filter capability.
The application uses [The Movie Database (TMDb) API](https://www.themoviedb.org/documentation/api) to display movie data.
## Installation
Please install node.js to run this application.
Follow ... |
C++ | UTF-8 | 964 | 3.265625 | 3 | [
"MIT"
] | permissive | /**
Name: Pavan Kumar Kamra
Course: BTP200
**/
#include <iostream>
#include "Molecule.h"
#include <cstring>
using namespace std;
int main() {
int n;
Molecule * molecule;
cout << "Molecular Information\n";
cout << "=====================" << endl;
cout << "Number of Molecules : ";
cin >> n;
// allo... |
Python | UTF-8 | 797 | 3.484375 | 3 | [] | no_license | import random
def sorted_merge(arr_a, arr_b):
i = len(arr_a) - len(arr_b) - 1
j = len(arr_b) - 1
k = len(arr_a) - 1
while i >= 0 and j >= 0:
if arr_a[i] >= arr_b[j]:
arr_a[k] = arr_a[i]
i -= 1
else:
arr_a[k] = arr_b[j]
j -= 1
k -= ... |
Markdown | UTF-8 | 2,850 | 2.6875 | 3 | [] | no_license | ---
name: "Karwar Style Madgane Recipe With Oats & Rajgira"
slug: "karwar-style-madgane-recipe-with-oats-rajgira"
layout: 'RecipeLayout'
prepTime: "55"
cuisine: "Karnataka"
cuisineSlug: "karnataka"
image: "https://www.archanaskitchen.com/images/archanaskitchen/1-Author/panditp253-gmail.com/MADGANE_.jpg"
excerpt... |
C | UTF-8 | 2,034 | 2.796875 | 3 | [] | no_license | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_map.c :+: :+: :+: ... |
Markdown | UTF-8 | 5,949 | 2.78125 | 3 | [] | no_license | # Online Shopping Application Admin
> This project has been refactored by Laravel, if you are interested in it, click here: [Online-Shopping-Admin-Lararvel](https://github.com/maorutian/Online-Shopping-Admin-Lararvel)
## Technical skills
Pure PHP + DatabaseAPI:PDO + Bootstrap + XAMMP
## Introduction
This is a cake... |
Python | UTF-8 | 466 | 2.96875 | 3 | [] | no_license | import socket
url = input('Enter url to connect to:\n>')
url_parts = url.split('/')
host = url_parts[2]
mysocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
mysocket.connect((host, 80))
except:
print('ERROR: URL MALFORMED OR NONEXISTANT!')
exit()
cmd = f'GET %s HTTP/1.0\r\n\r\n'%url
mysocket.s... |
Swift | UTF-8 | 2,023 | 2.546875 | 3 | [] | no_license | //
// View1.swift
// Sparta
//
// Created by Guillian Balisi on 2016-02-27.
// Copyright © 2016 Sparta. All rights reserved.
//
import UIKit
import ChameleonFramework
class View1: UIViewController {
@IBOutlet weak var realHelloLabel: UILabel!
@IBOutlet weak var helloLabel: UILabel!
@IBOutlet weak... |
TypeScript | UTF-8 | 1,513 | 2.515625 | 3 | [] | no_license | export namespace ScrollEventNS {
/**
* 滚动事件 Use 入参
*/
export interface ScrollEventUseOptions {
value?: { el: any; };
/**
* 默认监听滚动元素 querySelector 选择器
*/
el?: string;
/**
* 防抖延迟时间[ms]
*/
debounceNumber?: number;
/**
* 过渡动画名
*/
transformName?: string;... |
C | UTF-8 | 1,360 | 3.9375 | 4 | [] | no_license | #include <stdio.h>
#include <stdlib.h>
typedef struct node
{
int data;
struct node *next;
} ListNode;
typedef struct
{
ListNode *first,*last;
} list;
ListNode *CreatNode(int n)
{
ListNode *temp;
temp=(ListNode *)malloc(sizeof(ListNode));
temp->data=n;
temp->next=NULL;
return temp;
}
void MakeFirstLast(list *s... |
Python | UTF-8 | 5,551 | 2.953125 | 3 | [] | no_license | # -*- coding: utf-8 -*-
"""
Created on Fri May 7 18:35:37 2021
@author: User
"""
def all_black_rows():
black_rows_y = []
for row in range(height):
sum = 0
for pix in range(width):
# sum of all pixels' red channel in a row (could be any channel of the RGB):
sum += iar[row][pix][0]
# last pixel in a row... |
C | UTF-8 | 199 | 2.78125 | 3 | [] | no_license | #include<stdio.h>
int main()
{
int count=3,k,res=1,rem=3;
for (k=1;k<=count;k++)
{
res=res*rem;
printf("%d\n",res);
}
printf("%d\n",res);
}
|
Python | UTF-8 | 2,050 | 2.5625 | 3 | [] | no_license | import RPi.GPIO as GPIO
import time
import pyodbc
indicatorParkingSlot1 = 0
indicatorParkingSlot2 = 0
vipParkingSlotAvailable = 8;
GPIO.setmode(GPIO.BOARD)
GPIO.setup(18,GPIO.IN) #parkingSlot1
GPIO.setup(16,GPIO.IN) #parkingSlot2
print ("IR Sensor Ready")
def queryDatabase(count):
conn = pyo... |
Java | UTF-8 | 551 | 1.992188 | 2 | [] | no_license | package me.kaimson.melonclient.ingames.utils.ReplayMod.core;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.server.S3FPacketCustomPayload;
public class Restrictions {
public static final String PLUGIN_CHANNEL = "Replay|Restrict";
public String handle(S3FPacketCustomPayload packet)... |
Java | UTF-8 | 212 | 1.984375 | 2 | [] | no_license | package com.estafet;
public class ShellException extends Exception {
/**
* Serial ID
*/
private static final long serialVersionUID = 1L;
public ShellException(String messgae) {
super(messgae);
}
}
|
Markdown | UTF-8 | 1,458 | 2.5625 | 3 | [] | no_license | ---
layout: post
title: Apple WWDC 2013 - New AppleTV World?
category: digital
tags: tech apple
---
This years developer conference to be held by Apple beginning June, 10th is teased with a headline:
> Where a whole new world is developing
Apple wouldn't be Apple, if there wasn't a deeper meaning in this headline. S... |
Java | UTF-8 | 5,563 | 2.34375 | 2 | [] | no_license | package com.Plugdisk1.tests;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.List;
import org.openqa.selenium.*;
public class E013 extends BaseTestLogic {
private static String System_Out = "", Success = "", Folder_Name = "";
... |
Markdown | UTF-8 | 1,160 | 2.53125 | 3 | [] | no_license | # Tanks
- Tank game with 2 players
- Top-down perspective
- Shooting game
## Gameplay
https://user-images.githubusercontent.com/12951412/120386231-ad633400-c328-11eb-95e6-7cd99373486b.mp4
## Developers
- [Luka Vujčić](https://github.com/LukaVujcic)
- [Božidar Mitrović](https://github.com/AizenAngel)
- [Dušan Petrovi... |
C | UTF-8 | 2,982 | 3.0625 | 3 | [] | no_license | #include "myLib.h"
volatile unsigned short *videoBuffer = (volatile unsigned short *)0x6000000;
// setPixel -- set the pixel at (row, col) to color
void setPixel(int row, int col, unsigned short color) {
videoBuffer[OFFSET(row, col, 240)] = color;
}
void waitForVblank() {
while(*SCANLINECOUNTER > 160)
;
while(*S... |
Python | UTF-8 | 265 | 3.65625 | 4 | [] | no_license | num = int(input())
from collections import OrderedDict
d = OrderedDict()
for i in range(num):
inp = input()
if inp not in d:
d[inp] = 1
else:
d[inp] += 1
print(len(d))
for i, j in d.items():
print(j, end = " ")
|
C# | UTF-8 | 1,796 | 3.46875 | 3 | [] | no_license | using System;
namespace Graph
{
/// <summary>
/// 环检测(访问一个顶点v的连接顶点w,若此节点已经被访问且v的上个顶点不是w,则有环)
/// </summary>
public class CircleDetection
{
/// <summary>
/// 图的表示
/// </summary>
private readonly IAdjacency _adjacency;
/// <summary>
/// 记录节点是否被访问过
... |
Java | UTF-8 | 915 | 2.21875 | 2 | [] | no_license | package com.aho.gestionabscence.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
public class Elimination {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private long id;
... |
Java | UTF-8 | 953 | 3.296875 | 3 | [] | no_license | package melwin.leetcode.medium;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.PriorityQueue;
public class TopKFrequentElements {
public static List<Integer> topKFrequent(int[] nums, int k) {
HashMap<Integer, Integer> char_count = new Hash... |
Java | UTF-8 | 2,357 | 2.1875 | 2 | [] | no_license | package com.xlw.test;
import org.junit.Test;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpMethod;
import org.springframework.http.ResponseEntity;
import com.xlw.goodscm.model.SupplierGroup;
import com.xlw.goodscm.utils.JsonUtilTool;
public class SupplierGroupTest extends ... |
Python | UTF-8 | 339 | 2.90625 | 3 | [] | no_license | def aniversariantes_de_setembro(dic):
novodic={}
listadatas=[]
listanomes=[]
for nome,data in dic.items():
lisnomes.append(nome)
lisdatas.append(data)
i=0
while i<len(listadatas):
if listadatas[i][3:5] == "09":
novodic[listanomes[i]]=listadatas[i]
i+=1... |
Java | UTF-8 | 2,219 | 2.359375 | 2 | [] | no_license | package com.sudigital.burnyourcalories.fragment;
import android.content.Intent;
import android.database.Cursor;
import android.icu.text.SimpleDateFormat;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view... |
Python | UTF-8 | 7,591 | 2.859375 | 3 | [] | no_license | import time
import scipy.signal
import numpy as np
import cv2
import util
def normalize_window(window):
return window / window.sum()
def gaussian_window(window_length, standard_deviation):
return normalize_window(scipy.signal.gaussian(window_length, standard_deviation))
def half_gaussian_window(window_leng... |
Java | UTF-8 | 560 | 2.03125 | 2 | [] | no_license | package X;
import javax.net.ssl.SSLException;
/* renamed from: X.11f reason: invalid class name */
public final class AnonymousClass11f extends Exception {
public final byte description;
public final boolean errorTransient = false;
public final SSLException ex;
public AnonymousClass11f(byte b, SSLEx... |
Java | UTF-8 | 507 | 1.9375 | 2 | [] | no_license | package com.hackathon.meetup.exceptions;
import org.springframework.boot.context.config.ResourceNotFoundException;
import org.springframework.core.io.Resource;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
/**
* Created by David Turk on 8/10/17.
*/
@Respo... |
Markdown | UTF-8 | 1,130 | 2.6875 | 3 | [] | no_license | ---
title: Encontro noSQL e Ruby + Rails no Mundo Real
author: Erick Sasse
layout: post
permalink: /encontro-nosql-e-ruby-rails-no-mundo-real/
dsq_thread_id:
- 262151335
categories:
- Geral
---
Este mês pretendo participar de dois eventos apenas por curiosidade, pois não utilizo nenhuma das tecnologias no dia-a-dia... |
Java | UTF-8 | 1,163 | 2.46875 | 2 | [
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | package com.oxygenxml.profiling;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.Set;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
/**
* Handler for find profile conditions from a document.
* @author Cosmin Duna
*
*/
public class ProfileDocsFinderHan... |
Shell | UTF-8 | 496 | 3.046875 | 3 | [] | no_license | #!/bin/bash
#
gcc -c -I/usr/local/dislin orbital.c >& compiler.txt
if [ $? -ne 0 ]; then
echo "Errors compiling orbital.c"
exit
fi
rm compiler.txt
#
gcc orbital.o -L/usr/local/dislin -ldislin -L/opt/local/lib -lXm -lm
if [ $? -ne 0 ]; then
echo "Errors linking and loading orbital.o."
exit
fi
#
rm orbital.o
#
mv... |
PHP | UTF-8 | 10,772 | 3.046875 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: Nevena
* Date: 7/23/14
* Time: 2:09 PM
*/
class Konobar implements JsonSerializable{
private $konobarID;
private $ime;
private $prezime;
private $godinaRodjenja;
private $mestoRodjenja;
private $korisnicko... |
Python | UTF-8 | 208 | 2.75 | 3 | [] | no_license | import math
def main():
N, K = map(int, input().split())
count_list = [0] * N
for i in l:
index = i - 1
count_list[index] += 1
for out in count_list:
print(out)
main() |
Swift | UTF-8 | 2,328 | 2.6875 | 3 | [
"MIT"
] | permissive | //
// MBXCompassMapView.swift
// MapboxCompassMapViewSwift
//
// Created by Jordan Kiley on 7/19/17.
// Copyright © 2017 Mapbox. All rights reserved.
//
import Mapbox
class MBXCompassMapView: MGLMapView, MGLMapViewDelegate {
var isMapInteractive : Bool = true {
didSet {
/... |
TypeScript | UTF-8 | 206 | 2.734375 | 3 | [] | no_license | export class HistoryPiece {
hiddenText: string;
shownText: string;
public constructor(hiddenText: string, shownText: string) {
this.hiddenText = hiddenText;
this.shownText = shownText;
}
}
|
Java | UTF-8 | 1,349 | 2.109375 | 2 | [] | no_license | package com.example.dennis.selfmademoney.view.activity;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import com.example.dennis.selfmademoney.R;
public class RegisterActivi... |
Markdown | UTF-8 | 14,051 | 2.859375 | 3 | [
"CC-BY-4.0",
"MIT"
] | permissive | ---
title: SignupCustomer Service Operation - Customer Management
ms.service: bing-ads-customer-management-service
ms.topic: article
author: eric-urban
ms.author: eur
description: Creates a new customer and account that rolls up to your reseller payment method.
dev_langs:
- csharp
- java
- php
- python
---
# S... |
PHP | UTF-8 | 2,976 | 2.609375 | 3 | [] | no_license | <?php
use bdk\CssXpath\CssSelect;
/**
* PHPUnit tests for CssSelect
*/
class CssSelectTest extends \PHPUnit\Framework\TestCase
{
/**
* Test
*
* @return array of serialized logs
*/
public function selectProvider()
{
return array(
array('*', 14),
array(... |
Markdown | UTF-8 | 10,807 | 3.109375 | 3 | [
"Apache-2.0"
] | permissive | ---
slug: /zh/engines/table-engines/mergetree-family/collapsingmergetree
---
# CollapsingMergeTree {#table_engine-collapsingmergetree}
该引擎继承于 [MergeTree](mergetree.md),并在数据块合并算法中添加了折叠行的逻辑。
`CollapsingMergeTree` 会异步的删除(折叠)这些除了特定列 `Sign` 有 `1` 和 `-1` 的值以外,其余所有字段的值都相等的成对的行。没有成对的行会被保留。更多的细节请看本文的[折叠](#table_engine-collaps... |
Ruby | UTF-8 | 1,230 | 2.734375 | 3 | [] | no_license | # # https://github.com/heroku/rack-timeout
# require "rack-timeout"
# class Rack::TimeoutHelper
# def initialize(app)
# @app = app
# end
# def call(env)
# @app.call(env)
# rescue Rack::Timeout::RequestTimeoutError
# [504, {"Content-Type" => "text/html"}, ["Gateway Timeout"]]
# end
# end
# use Ra... |
SQL | UTF-8 | 238 | 3.515625 | 4 | [] | no_license | SELECT
dept_name, COUNT(student_id) AS student_number
FROM
department
LEFT OUTER JOIN
student ON department.dept_id = student.dept_id
GROUP BY department.dept_name
ORDER BY student_number DESC , department.dept_name
;
|
C++ | UTF-8 | 518 | 3.078125 | 3 | [] | no_license | #include "ArkMath.h"
Vec4 ArkMath::operator*(Mat4 const & matrix, Vec4 const & vec4)
{
Vec4 vec;
vec.x = matrix[0] * vec4.x
+ matrix[1] * vec4.y
+ matrix[2] * vec4.z
+ matrix[3] * vec4.w;
vec.y = matrix[4] * vec4.x
+ matrix[5] * vec4.y
+ matrix[6] * vec4.z
+ matrix[7] * vec4.w;
vec.z = matrix[8] * ve... |
Markdown | UTF-8 | 305 | 2.578125 | 3 | [] | no_license | # Work-day-scheduler
This is a website that allows you to schedule your day out. To schedule something click on a time block and then write your to do item and then click the save icon.
Project link: https://smashercoder.github.io/Work-day-scheduler/
 |
Markdown | UTF-8 | 18,784 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | 12 cool things you can do with GitHub
============================================================
translating by softpaopao
I can’t for the life of me think of an intro, so…
### #1 Edit code on GitHub.com
I’m going to start with one that I _think_ most people know (even though I didn’t know until a week ago).
Wh... |
Python | UTF-8 | 860 | 2.875 | 3 | [] | no_license | import time
import pprint
import numpy as np
from NeuralNetwork import *
from Controler import *
X = np.random.uniform(low=1.0, high=100.0, size=(100,1))
y = []
X_test = np.random.uniform(low=1.0, high=100.0, size=(100,1))
y_test = []
for sample in X:
y.append((pow(sample, 0.5))/10)
for sample in X_test:
y_test.a... |
C++ | GB18030 | 2,585 | 2.96875 | 3 | [] | no_license | #include<opencv2/opencv.hpp>
#include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;
using namespace cv;
void RGB2CMY(Mat& rgb, float k)
{
int height = rgb.rows;
int width = rgb.cols;
Mat cmy = rgb.clone();
for (int i = 0; i < height; i++)
{
for (int j = 0; j < width; j++)
{
float b = rg... |
Python | UTF-8 | 811 | 4.5 | 4 | [] | no_license | """ Dada a classe TV abaixo, crie um objeto da classe TV, de 50 polegadas de tamanho,
da marca Xingling, aumente o volume duas vezes utilizando os métodos fornecidos
pela classe TV, e mostre mensagem informando a marca da TV e qual o volume do som atual.
Não é necessário alterar a definição da classe TV.
class TV:
... |
Markdown | UTF-8 | 738 | 2.5625 | 3 | [] | no_license | ---
weight: 40
bookFlatSection: true
bookToc: false
title: "Let's try to use"
---
# Let's try to use
The general flow for using this software is as follows.
1. Install timer software in advance.
2. Create a new profile.
3. Make initial settings.
4. Create a template image ([Tool]-> [Preview/Create temp... |
Java | UTF-8 | 8,240 | 3.125 | 3 | [] | no_license | package com.example.martin.tugas2_pengcit;
import java.util.ArrayList;
import java.util.Collections;
public class ConvolutionProcessor {
private boolean isValid(int x, int y, int w, int h) {
if (x < 0 || x >= w || y < 0 || y >= h) {
return false;
}
return true;
}... |
Java | UTF-8 | 662 | 2.328125 | 2 | [] | no_license | /*
* 南京新网互联网络科技有效公司
* 预警平台1.0
*/
package xwtec.alertor.thread;
/**
*
* @author 张岩松
*/
public interface RegistedTask extends AtomicTask, Runnable {
/**
* 获得注册的任务的名称
*
* @return
*/
public abstract String getKey();
/**
* 判断当前任务是否已经中断
*
* @return
*/
public bo... |
Markdown | UTF-8 | 3,309 | 2.546875 | 3 | [
"MIT"
] | permissive | ---
title: Retrieve BitLocker keys shortcuts
categories:
- BitLocker
tags:
- PowerShell
- BitLocker
excerpt: Two quick ways to get BitLocker keys from AD accros the realm
---
# Ups
Some [time ago](https://www.mczerniawski.pl/bitlocker/retrieve-bitlocker-recovery-key) I've posted how to set AD environment f... |
TypeScript | UTF-8 | 572 | 3.015625 | 3 | [] | no_license | import { MenuActionTypes, MenuActions } from '../actions';
export interface MenuState {
open: boolean;
closed: boolean;
}
const initialState: MenuState = {
open: false,
closed: true
};
export function menuReducer(
state: MenuState = initialState,
action: MenuActions
): MenuState {
switch (action.type) ... |
TypeScript | UTF-8 | 1,060 | 2.828125 | 3 | [
"MIT"
] | permissive | import {
HEIGHT,
gridSize,
WIDTH
} from '../../config';
export const neighbors = (map: any[], node:any) => {
let dirs = [
{x: -gridSize, y: -gridSize},
{x: 0, y: -gridSize, distance: 10},
{x: gridSize, y: -gridSize},
{x: -gridSize, y: 0},
{x: gridSize, y: 0},
{x: -gridSize, y: gridSize}... |
Python | UTF-8 | 427 | 3.25 | 3 | [] | no_license | class Solution:
def removeDuplicates(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if len(nums) == 1:
return 1
if not nums:
return 0
index, dic = 0, {}
for item in nums:
if item not in dic:
... |
C++ | UTF-8 | 563 | 2.890625 | 3 | [] | no_license | #include <iostream>
#include<math.h>
#include <vector>
#include <numeric>
#include <algorithm>
using namespace std;
int abc103_b() {
int N;
cin >> N;
string S, T;
cin >> S >> T;
long length = S.size();
for (int i = 0; i < length; ++i) {
// 一個ずらす
string first = S.substr(0, 1... |
Python | UTF-8 | 2,781 | 2.609375 | 3 | [] | no_license | # DROP TABLES
songplay_table_drop = "DROP TABLE IF EXISTS sonplays"
user_table_drop = "DROP TABLE IF EXISTS users"
song_table_drop = "DROP TABLE IF EXISTS songs"
artist_table_drop = "DROP TABLE IF EXISTS artists"
time_table_drop = "DROP TABLE IF EXISTS time"
# CREATE TABLES
songplay_table_create = (""""
CREATE TABLE... |
C# | UTF-8 | 385 | 3.171875 | 3 | [] | no_license | using System;
namespace Epam.Task_2._2._1.GAME
{
public class Tree : Barrier
{
public Tree(int _x, int _y) : base(_x, _y)
{
Name = "Tree";
}
public override void MovedHero(Hero hero)
{
Console.WriteLine("Oh you hit a tree and it threw you 1 coor... |
C | UTF-8 | 15,219 | 2.921875 | 3 | [] | no_license | /**********************************************************************
* 版权所有 (C)2019, Zhou Zhaoxiong
*
* 文件名称:WriteLog.c
* 文件标识:无
* 内容摘要:日志系统源代码文件
* 其它说明:无
* 当前版本:V1.0
* 作 者:Zhou Zhaoxiong
* 完成日期:20190905
*
**********************************************************************/
#include "WriteLog.h"
... |
C++ | UTF-8 | 3,005 | 3.28125 | 3 | [] | no_license | /*
Получавате като вход число N.
Следват N числа които трябва да ги прочетете и съхраните в собственоръчно написан Свързан Списък.
Следва число P. Следват P числа на нов ред. ( тях може да съхраните по начин който е най-удобен за вас ).
От вас се изисква да върнете броя на различните двойки елементи ( (1,2) и (2,1) е ... |
C++ | UTF-8 | 5,889 | 3.046875 | 3 | [] | no_license | /*
HJ2509
Hyun Soo Jeon
*/
#include <iostream>
#include <vector>
#include <iterator>
#include <type_traits>
#include <ctime>
#include <algorithm>
//#include <concepts>
template<typename T> using Value_type = typename T::value_type;
template<typename T> using Iterator_of = typename T::iterator;
template <typen... |
TypeScript | UTF-8 | 1,568 | 2.53125 | 3 | [] | no_license | import { Component, ComponentFactoryResolver, OnInit } from '@angular/core';
import { FormGroup, FormBuilder, Validators, FormArray, FormControl } from '@angular/forms';
@Component({
selector: 'app-dynamics',
templateUrl: './dynamics.component.html',
styles: [
]
})
export class DynamicsComponent implements OnI... |
JavaScript | UTF-8 | 1,008 | 3.53125 | 4 | [] | no_license | // Day 2
// Part 1: Car
var paintColor = 'black';
console.log('paintColor:', paintColor);
var make = 'Nissan';
console.log('make:', make);
var model = 'Maxima';
console.log('model:', model);
var year = 2021;
console.log('year:', year);
var isManualTransmission = false;
console.log('isManualTransmission:', isManua... |
Python | UTF-8 | 1,090 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | import json
from pathlib import Path
from typing import Optional
from slack_notifications.user_api.message_type import SlackInstance
class RunConfig:
def __init__(self, path: Path):
self._path = path
self._data = {}
def _reload(self):
if not self._path.exists():
self._pat... |
C | UTF-8 | 2,498 | 4.0625 | 4 | [] | no_license | #include "node.h"
#include <stdio.h>
#include <stdlib.h>
void insert(Node **head, int data)
{
Node *temp = *head;
if (*head == NULL) {
Node *new = malloc(sizeof(Node));
if (new == NULL) {
return;
}
new->data = data;
new->left = NULL;
new->right = NULL... |
Java | UTF-8 | 865 | 2.375 | 2 | [] | no_license | package configuration.securityconfiguration;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.AuthenticationEntryPoint;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import ja... |
Java | UHC | 680 | 2.046875 | 2 | [] | no_license | package com.bit.pro.dao;
import java.util.Map;
import com.bit.pro.vo.JoinVo;
public interface JoinDao {
// Ǿ DB ̵ ̿ ش
JoinVo selectUser(String userid) throws Exception;
//Էµ DB
int insertUser(JoinVo bean) throws Exception;
//̵ ߺüũ
int checkId(JoinVo bean) throws Exception;
//
void updateUser(J... |
Java | UTF-8 | 1,024 | 2.859375 | 3 | [] | no_license | package javanet;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;
public class ReadNetworkFileSock {
public static void main(String[] args){
Socket soc=null;
try{
soc = new Socket("www.este... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.