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
Go
UTF-8
2,431
2.625
3
[]
no_license
package mqtt import ( "errors" "fmt" "strings" "github.com/RedHatInsights/cloud-connector/internal/domain" ) const ( defaultTopicPrefix string = "redhat" controlMessageIncomingTopic string = "insights/+/control/out" controlMessageOutgoingTopic string = "insights/%s/control/in" dataMessageIncomingTop...
C#
UTF-8
1,232
3.46875
3
[]
no_license
using System; using System.Linq; public class IntOrArray { public bool IsInt { private set; get; } public int IValue { private set; get; } public IntOrArray[] AValue { private set; get; } public IntOrArray(int i) { IsInt = true; IValue = i; } public IntOrArray(IntOrArray[] a) { IsInt = false; AValu...
Java
UTF-8
1,727
1.84375
2
[]
no_license
package br.com.wjaa.ranchucrutes.ws.dao; import br.com.wjaa.ranchucrutes.commons.vo.LocationVo; import br.com.wjaa.ranchucrutes.framework.dao.GenericDao; import br.com.wjaa.ranchucrutes.ws.entity.ProfissionalOrigemEntity; import br.com.wjaa.ranchucrutes.ws.entity.ProfissionalEntity; import java.util.List; /** * Cre...
Python
UTF-8
13,380
4.25
4
[]
no_license
""" Functions for reading numbers given type Author: Patrick Kwok (lk2754) December 21, 2019 """ import copy digits = {0: "zero", 1: "one", 2: "two", 3: "three", 4: "four", \ 5: "five", 6: "six", 7: "seven", 8: "eight", 9: "nine"} digits_alt = {0: "oh", 1: "one", 2: "two", 3: "three", 4: "four", \ ...
C
UTF-8
5,229
2.515625
3
[ "BSD-2-Clause" ]
permissive
 /* * Copyright (C) Igor Sysoev * Copyright (C) Nginx, Inc. */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_event.h> /* 实际上,上述问题的解决离不开Nginx的post事件处理机制。这个post事件是什么意思呢?它表示允许事件延后执行。Nginx设计了两个post队列,一 个是由被触发的监听连接的读事件构成的ngx_posted_accept_events队列,另一个是由普通读/写事件构成的ngx_posted_events队列。这样的post事 件可以让用户完成...
Python
UTF-8
1,970
3.421875
3
[]
no_license
''' @author chhattenjr @date 06/12/2019 @description Given an array of integers representing the color of each sock, determine how many pair of socks with matching colors there are. ''' #!/bin/python import math import os import random import re import sys def sockMerchant(n, ar): numberOfIndi...
Python
UTF-8
1,758
2.53125
3
[]
no_license
# @Author:Xiran import torch import torch.nn as nn import torch.nn.functional as F def convbn(in_planes, out_planes, kernel_size, stride, pad, dilation): return nn.Sequential( nn.Conv2d(in_planes, out_planes, kernel_size, stride=stride, padding=dilation if dilation > 1 and kernel_size > 1 else pad, dilati...
JavaScript
UTF-8
3,278
3.3125
3
[]
no_license
/** * * 自定义PubSub实现 * var token=PubSub.subscribe(msg,subscriber)-------订阅消息 * PubSub.publish(msg,data)-------发布消息---异步的 * PubSub.publishSync(msg,data)-------发布消息---同步的 * PubSub.unsubscribe(token)--------取消消息订阅 * * msg-----消息名字-----绑定事件的名字 * subscriber----回调----事件的回调---监听 * data------回调中要用到的数据参数 * token----...
TypeScript
UTF-8
1,228
2.875
3
[ "Apache-2.0" ]
permissive
import Big from 'big.js'; const MOJO_PER_FORK = Big(1000000000000); const BLOCKS_PER_YEAR = 1681920; export function calculatePoolReward(height: number): Big { if (height === 0) { return MOJO_PER_FORK.times(21000000).times(7 / 8); } if (height < 3 * BLOCKS_PER_YEAR) { return MOJO_PER_FORK.times(2).times...
Java
UTF-8
7,035
3.140625
3
[]
no_license
import java.io.BufferedWriter; import java.io.File; import java.io.FileNotFoundException; import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.Scanner; public class ParseGlucoseData { // use LinkedHashMap to maintain original ordering of ...
Markdown
UTF-8
7,556
2.75
3
[]
no_license
--- description: "Recipe of Any-night-of-the-week Cabbage roll stew" title: "Recipe of Any-night-of-the-week Cabbage roll stew" slug: 1310-recipe-of-any-night-of-the-week-cabbage-roll-stew date: 2020-10-02T05:52:37.486Z image: https://img-global.cpcdn.com/recipes/54799793cefe3b29/751x532cq70/cabbage-roll-stew-recipe-ma...
Markdown
UTF-8
8,727
3.03125
3
[]
no_license
# 前言 `ExtractTextWebpackPlugin`是用来提取公共代码的插件. 比方说把 css 的代码提取到一个文件, 方便单独缓存, css 代码独立加载, 异步加载的模块等等. 但是实际在使用的过程中, 有些疑惑的地方. - `new ExtractTextWebpackPlugin({allChunk:true})`里面的`allChunk`作用是什么? - `ExtractTextPlugin.extract`里面的`fallback`什么时候生效? - `css`或者`less`里面, 碰到`import "./a/v/c.less"`, `background:url(./../a.png)`应该怎么配置...
Python
UTF-8
1,676
3.59375
4
[]
no_license
class Rectangle: def __init__(self,width,height): self.width = width self.height = height def __str__ (self): output = "" output += ("Rectangle(width="+str(self.width)+", height="+str(self.height)+")") return output def set_width(self,new_width): ...
Java
UTF-8
1,528
3.03125
3
[]
no_license
package com.jarqprog.controller; import com.jarqprog.calculator.OverlapCalc; import com.jarqprog.calculator.ShapeCoordinatesGenerator; import com.jarqprog.exceptions.IncorrectCoordinatesException; import com.jarqprog.view.View; public class ShapeCalculatorController implements CalculatorController { private Over...
Markdown
UTF-8
4,610
3
3
[]
no_license
--- wordpress_id: 4691 title: The State of Windows Mobile date: 2009-01-14T12:57:00+00:00 author: Colin Ramsay layout: post wordpress_guid: /blogs/colin_ramsay/archive/2009/01/14/the-state-of-windows-mobile.aspx categories: - Compact Framework - windows mobile redirect_from: "/blogs/colin_ramsay/archive/2009/01/14/...
Java
UTF-8
2,425
2.75
3
[]
no_license
package kiwi.sthom.mars; import android.util.Log; import com.microsoft.connecteddevices.RemoteSystem; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Static store for {@link RemoteSystem}, since they can not be passed though bundles */ class DeviceStorage {...
Java
UTF-8
27,122
2.1875
2
[]
no_license
/* SFLSDE.java Isaac Triguero Velazquez. Created by Isaac Triguero Velazquez 23-7-2009 Copyright (c) 2008 __MyCompanyName__. All rights reserved. */ package keel.Algorithms.Instance_Generation.SFLSDE; import keel.Algorithms.Instance_Generation.Basic.PrototypeSet; import keel.Algorithms.Instance_...
Java
UTF-8
759
2.046875
2
[]
no_license
package com.wb.repository; import com.wb.entity.Task; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Repository; import java.util.List; /** * <p>文件名称:TaskRepo </p> * <p>文件描述:</p> * <p>版权所有:版权所有(C)2011-2099 </p>...
Markdown
UTF-8
9,372
3.40625
3
[]
no_license
## iOS 单例 >单例模式可能是设计模式中最简单的形式了,这一模式的意图就是使得类中的一个对象成为系统中的唯一实例。它提供了对类的对象所提供的资源的全局访问点。因此需要用一种只允许生成对象类的唯一实例的机制。 下面让我们来看下单例的作用: - 可以保证的程序运行过程,一个类只有一个示例,而且该实例易于供外界访问 - 从而方便地控制了实例个数,并节约系统资源。 ### 方法一(误) ``` + (instancetype)sharedInstance { static Singleton *instance = nil; if (!instance) { instance = [[Sing...
JavaScript
UTF-8
1,790
2.515625
3
[]
no_license
import React from 'react'; import './styles/App.css' import { FaPen } from "react-icons/fa"; import {GiDoctorFace} from 'react-icons/gi' import {chirpData} from './data'; import {useState} from 'react' const App = () =>{ var [chirps, setChirps] = useState(chirpData) var [thought,setThought] = useState('') var [...
PHP
UTF-8
735
2.5625
3
[]
no_license
<? class session { private $db = null; private $sessionid = null; function __construct($user_id = false) { if (isset($_SESSION['prva_database'])) $this->db = unserialize($_SESSION['prva_database']); else $this->db = new database(); if(isset($_SESSION['prva_sid'])) $this->sessionid = $_SESSION...
C++
UTF-8
1,400
2.9375
3
[]
no_license
/** * @author Quickgrid ( Asif Ahmed ) * @link https://quickgrid.wordpress.com * Problem: UVA */ #include<cstdio> #include<climits> #include<iostream> #include<sstream> static unsigned A[1000001], L[500001], R[500001]; static char inBuffer[10000001], outBuffer[10000001]; static unsigned long long c; void Mer...
Markdown
UTF-8
659
3.40625
3
[]
no_license
## Solution 1 `for (char cur : s.toCharArray())` is faster than `for (int i = 0; i < s.length(); i++) { char cur = s.charAt(i);}` Time complexity: O(n) Space complexity: O(1) ```java class Solution { public int minAddToMakeValid(String s) { int left = 0; int result = 0; for (char cur...
Markdown
UTF-8
838
3.0625
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
# GitHub Integration If you plan on using GitHub with your bot, you'll need to configure a few details ## Personal Access Token The GitHub [Personal Access Token](https://help.github.com/articles/creating-an-access-token-for-command-line-use/) is what will enable the bot to execute actions on your behalf. You can co...
Python
UTF-8
1,260
4.53125
5
[]
no_license
''' Write a function called reverse_vowels. This function should reverse the vowels in a string. Any characters which are not vowels should remain in their original position. You should not consider "y" to be a vowel. reverse_vowels("Hello!") # "Holle!" reverse_vowels("Tomatoes") # "Temotaos" reverse_vowels("Revers...
Java
UTF-8
543
1.640625
2
[]
no_license
package com.foo.web; import com.foo.domain.Patient; import org.springframework.roo.addon.web.mvc.controller.annotations.ControllerType; import org.springframework.roo.addon.web.mvc.controller.annotations.RooController; import org.springframework.roo.addon.web.mvc.thymeleaf.annotations.RooThymeleaf; /** * = PatientsCo...
Ruby
UTF-8
6,793
3.421875
3
[]
no_license
class Node attr_accessor :value, :left, :right def initialize(value=nil, left=nil, right=nil) @value = value @left = left @right = right end end class Tree attr_accessor :root def initialize(ary) @array = ary.uniq.sort end def build_tree len = @array.length mid = len/2 arleft...
C#
UTF-8
1,964
2.859375
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MarsRover { public interface IPlatformCommand { string Execute(Platform platform); } public class PlatformInitializeCommand : IPlatformCommand { private Po...
Python
UTF-8
576
4.53125
5
[]
no_license
# dice_game.py from random import randint sides = input("Enter dice sides: ") sides = int(sides) player1 = input("Enter player 1 name: ") player2 = input("Enter player 2 name: ") player1_diceroll = randint(1, sides) player2_diceroll = randint(1, sides) print(player1 + " rolls " + str(player1_diceroll)) print(play...
JavaScript
UTF-8
2,309
3.296875
3
[]
no_license
// FORK this starter file and save it to your own Repl.it account. // Declare and initialize the 12 variables here: const input = require('readline-sync'); let numOfAstronauts = input.question("How many Astronauts are going on this mission? "); let date = "Monday 2019-03-18"; let time = "10:05:34 AM"; // let astronau...
C++
UTF-8
4,452
2.9375
3
[ "MIT" ]
permissive
#ifndef MD5_HPP #define MD5_HPP #include<iostream> #include<string> using namespace std; #define shift(x, n) (((x) << (n)) | ((x) >> (32-(n))))//右移的时候,高位一定要补零,而不是补充符号位 #define F(x, y, z) (((x) & (y)) | ((~x) & (z))) #define G(x, y, z) (((x) & (z)) | ((y) & (~z))) #define H(x, y, z) ((x) ^ (y) ^ (z)) #define I(x, ...
PHP
UTF-8
2,907
2.65625
3
[]
no_license
<?php $validqualification = true; $validcourse = true; $validlevel = true; $validgrade = true; $validgradeset = true; $fullinput = true; $setcourse = true; $setlevel = true; $setgrade = true; include(dirname(__FILE__) . "/../core/connection.php"); if ( isset($_POST['course']) && isset($_POST['level']) && isset($_P...
Markdown
UTF-8
793
2.546875
3
[]
no_license
EQ Works Coding Challange ### Prerequisites You'll need to have git and node installed in your system. ### Build and Run the project Please note that you will need to set environment variables before running the nodejs server Follow these steps as following: 1. Create .env file in server folder. 2. Copy all enviro...
C++
UTF-8
5,499
3.1875
3
[]
no_license
#include <algorithm> #include <iostream> #include <iterator> #include <set> #include <tuple> #include <unordered_map> #include <vector> using namespace std; // 58. Length of Last Word class Solution { public: int lengthOfLastWord(string s) { istringstream iss(s); vector<string> tokens; copy(istream_ite...
Markdown
UTF-8
25,798
2.71875
3
[ "Apache-2.0" ]
permissive
# Textured Cube Tutorial | <pre><b>Windows (DirectX 12) </pre></b> | <pre><b>Linux (Vulkan) </pre></b> | <pre><b>MacOS (Metal) </pre></b> | <pre><b>iOS (Metal)</pre></b> | |----------------------...
Ruby
UTF-8
296
3.390625
3
[]
no_license
class Phrase attr_reader :sentence def initialize(sentence) @sentence = sentence end def word_count results = Hash.new(0) words.each { |word| results[word] += 1 } results end private def words sentence.gsub(/[\W_]+/, ' ').downcase.split(/[\s,]+/) end end
Markdown
UTF-8
1,059
2.6875
3
[]
no_license
# Article 27 Les personnes titulaires d'un diplôme de docteur en médecine bénéficient, à compter du 31 décembre 2004, d'une dispense totale d'enseignement théorique, sous réserve de suivre, dans la limite des places disponibles, dans un institut de formation en soins infirmiers de leur choix, un enseignement de deux s...
JavaScript
UTF-8
188
3.125
3
[]
no_license
const removeElements = function (head, val) { if (head == null) return head; head.next = removeElements(head.next, val); return head.val === val ? head.next : head; };
PHP
UTF-8
5,560
3.359375
3
[]
no_license
<?php /** * Class PDO MySQL for manipulate SQL * SELECT, INSERT, UPDATE, DELETE */ class MysqlAdapter { public $db; public $id; public $bind; /** * default array fetch mode */ protected $_fetchMode = PDO::FETCH_ASSOC; /** * constructor connect pdo mysql * * @para...
Python
UTF-8
661
3.15625
3
[]
no_license
#file handling file=open("C:\\Users\\fawwa\\OneDrive\\Desktop\\file\\example1.txt", "r") #print(dir(f)) #print(f.read()) #f.seek(0) #print(f.read()) #f.seek(1) #print(f.read()) #a=file.readlines() #file.seek(0) #print(file.readline()) #print(file.readline()) #for f in a: # print(f) print("a") print("b") for f i...
Markdown
UTF-8
8,224
2.578125
3
[ "MIT" ]
permissive
# Autograder Manual The purpose of this document is to outline the functionality, use, and rules of the cs3210 autograder. In cs3210 this semester we will be using an interactive autograder to help evaluate your lab solutions. The autograder will download your submissions from [GaTech's GitHub](https://github.gatech...
Java
UTF-8
1,802
3.171875
3
[]
no_license
package Model; import java.io.File; import java.io.IOException; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.Clip; import javax.sound.sampled.LineUnavailableException; import javax.sound.sampled.UnsupportedAudioFileException; /** * @author Brandon B...
Python
UTF-8
1,605
3.296875
3
[]
no_license
#-*- coding: utf-8 -*- from matplotlib import pyplot as plt import numpy as np import math import scipy as sc #funciones cientificas class AdalineGD(object): def __init__(self, eta = 0.1, n_iter = 50): self.eta = eta self.n_iter = n_iter def fit(self, X, Y): self.w_ = np.zeros(1+X.shape...
Java
UTF-8
466
2.90625
3
[]
no_license
package Calc; public class RomanToArabic { public static int rTA (String arabic) { int result = 0; int[] decimal = {10, 9, 5, 4, 1}; String[] roman = {"X", "IX", "V", "IV", "I"}; for (int i = 0; i < decimal.length; i++) { while (arabic.indexOf(roman[i]) == 0) { ...
Java
UTF-8
606
2.3125
2
[ "Apache-2.0" ]
permissive
package com.eden.sdk.unluac.decompile.expression; import com.eden.sdk.unluac.decompile.Declaration; import com.eden.sdk.unluac.decompile.Output; public class LocalVariable extends Expression { private final Declaration decl; public LocalVariable(Declaration paramDeclaration) { super(9); this.decl =...
Python
UTF-8
4,689
2.78125
3
[ "MIT" ]
permissive
import tensorflow as tf import numpy as np from datetime import datetime from tqdm import tqdm class QueueRunner(object): def __init__(self, filename_list, Model, batch_size=32, image_size=256, image_channels=3): #We create a tf variable to hold the global step, this has the effect #that when a checkpoint is...
Go
UTF-8
723
2.984375
3
[]
no_license
package env import ( "flag" "os" ) var ( Hostname string // hostname Mode string // run mode ) const ( DEBUG = "debug" // 开发 TEST = "test" // 测试 GRAY = "gray" // 灰度 RELEASE = "release" // 生产 ) func init() { var err error if Hostname, err = os.Hostname(); err != nil || Hostname == "" { ...
Java
UTF-8
1,051
2.703125
3
[]
no_license
package db; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; /** * Entity Manager Provider for working with JPA * * @author Michal Siron */ public class EntityManagerProvider { private static final String PERSISTENCE_UNIT_NAME = "bo...
SQL
UTF-8
2,934
3.125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS db_place_holder default charset utf8mb4 COLLATE utf8mb4_general_ci; GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER ON db_place_holder.* TO user_place_holder@"%" IDENTIFIED BY 'password_place_holder'; flush privileges; use db_place_holder; CREATE TABLE `merchant_api_info` ( `id` ...
Java
UTF-8
1,313
3.40625
3
[]
no_license
package multiThread; import java.util.Arrays; import java.util.concurrent.ForkJoinPool; import java.util.concurrent.RecursiveTask; public class ForkJoinClass extends RecursiveTask<Integer> { public int[] intArr; public ForkJoinClass(int[] src) { this.intArr = src; } @Override protected ...
Java
UTF-8
23,816
2.390625
2
[]
no_license
/* * Copyright (C) 2016 jkhome * * This program 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 the License, or (at your option) any later version. * * This program is distributed...
C#
UTF-8
1,998
2.734375
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using zlib; namespace LitMC.Generator { public struct ChunkKey { int x, y; } public class Chunk { public static byte[] generateSimpleChunk(byte siz...
C#
UTF-8
5,059
2.75
3
[]
no_license
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RPG { class Skill : Record { Cost Cost; Cooldown Cooldown; List<Script> Effects; Bitmap Image; public Skill() { ...
Java
UTF-8
638
1.921875
2
[]
no_license
package com.example.demo.scheduler; import com.example.demo.service.SchedulerService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import static com.example.demo.constant.PropertiesConst.Prop...
TypeScript
UTF-8
4,991
2.671875
3
[ "MIT" ]
permissive
/* MIT License Copyright (c) 2019 github0null Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publi...
Java
UTF-8
435
1.867188
2
[]
no_license
package ca.sheridancollege.khoslak.repositories; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import ca.sheridancollege.khoslak.beans.Threadiscussion; public interface ThreadRepository extends JpaRepository<ca.sheridancollege.khoslak.beans.Threadiscussion,Long> { public Lis...
C++
UTF-8
351
3.65625
4
[]
no_license
#include <iostream> using namespace std; int * fun(int size){ int *p; p = new int[size]; //setting the array for(int i =0;i< size;i++){ p[i] = i+1; } return p; } int main(){ int *ptr, size =7; ptr = fun(size); //printing the array for(int i = 0; i < size; i++){ ...
Python
UTF-8
2,459
3.03125
3
[]
no_license
import MySQLdb db=MySQLdb.connect(user='root',db='mysql',passwd='mysql',host='localhost') cursor=db.cursor() cursor.execute("SELECT VERSION()") data=cursor.fetchone() print "Database version : %s" % data db.close() #Database version : 5.6.21-log ###########Create Table####################### import MySQLdb db=MySQ...
C#
UTF-8
1,718
2.6875
3
[]
no_license
using DependencyInjection_Refactoring_Step2; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DependencyInjection_Refactoring_Step2_Test { [TestClass] public class UnitTest2 { [TestMethod]...
Markdown
UTF-8
12,062
3.171875
3
[]
no_license
## Poker-bots Hit a New Milestone in AI <center> <img src="src-poker-bots/cards.jpg" /> </center> Two separate artificial intelligence (AI) programs recently surpassed humans in a game that was once considered too difficult for artificial intelligence to master. Each one of these events represents a significant m...
Markdown
UTF-8
5,121
3.1875
3
[ "Apache-2.0" ]
permissive
# ImageDiff Tool for image comparison. Features: * UI console showing differences, allowing user to make captured images a new baseline * ability to exclude dynamic areas of images that should not be compared > Note that for now we only support PNG images ## Prerequisites `node` and `npm` packages have to be insta...
C++
UTF-8
2,703
2.8125
3
[ "LicenseRef-scancode-public-domain" ]
permissive
/* Dado eletrônico com Franzininho DIY e um módulo matriz de LED 8x8 com MAX7219 by Anderson Costa with ❤ for the Wokwi community Visit https://wokwi.com to learn about the Wokwi Simulator Visit https://franzininho.com.br to learn about the Franzininho */ #include <LedControl.h> #include <TinyDebug.h> #define...
Java
UTF-8
1,231
3.5
4
[]
no_license
package week2.day1; public class ArraySearchTest { public static void main(String[] args) { int[] arr = new int[100_000]; for (int i = 0; i < arr.length; i++) { arr[i] = i; } int number = 2023; boolean isIn = false; long startTime; long endTim...
Markdown
UTF-8
397
2.65625
3
[]
no_license
# Vanilla Javascript project The purpose of this project is to practice some css, html and javascript concepts. The drums, sorting_bands and todo_list was used some info a design inspiration from [this course](https://javascript30.com/). ## Recommended Want to practice more javascript, css, and html, go to [Wesbos C...
Markdown
UTF-8
2,245
2.53125
3
[ "Unlicense" ]
permissive
# У Мукачевому зацвіла «скажена сакура» Published at: **2019-11-06T12:30:47+00:00** Author: **** Original: [ГЛАВКОМ](https://glavcom.ua/country/society/u-mukachevomu-zacvila-skazhena-sakura-638113.html) У центрі міста Мукачеве знову зацвіла «скажена сакура», що квітне кожного року в листопаді. Про це повідомив міс...
Java
UTF-8
341
1.867188
2
[]
no_license
package com.lzj.Feign; import com.lzj.bean.Student; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; import java.util.List; @FeignClient(name = "provider-service") public interface ConsumerFeign { @GetMapping("/student/findAll") public List<S...
Java
UTF-8
2,642
2.125
2
[]
no_license
package com.dayanghome.dayangerp.service; import com.dayanghome.dayangerp.form.AppointmentForm; import com.dayanghome.dayangerp.form.AppointmentQuery; import com.dayanghome.dayangerp.form.CustomerQuery; import com.dayanghome.dayangerp.mapper.AppointmentMapper; import com.dayanghome.dayangerp.mapper.CustomerMapper; imp...
C++
UTF-8
10,459
2.65625
3
[]
no_license
/* * AdminIndicesSecundarios.cpp * * Created on: 17/11/2014 * Author: joaquin */ #include "AdminIndicesSecundarios.h" #include "../Capa Logica/ArbolBMas/ArbolBMas.h" #define MODIFICACION 1 AdministradorIndices::AdministradorIndices(){ this->indices = new list<Indice>; this->indicesCreados = fopen("indic...
JavaScript
UTF-8
3,914
2.53125
3
[]
no_license
import * as d3 from 'd3'; import { attrs } from 'd3-selection-multi'; // ================================ aula 28 ================================---- // ================================ [Axis Generator] ================================--- // const dim = { // width: 600, // height: 400, // }; // const svgCanvas ...
C#
UTF-8
1,191
2.609375
3
[ "Apache-2.0" ]
permissive
using System; using System.Threading; using System.Threading.Tasks; namespace CQRSRx.Domain { /// <summary> /// Asynchronous aggregate root repository. /// </summary> public interface IAggregateRootRepository<TAggregateRoot> where TAggregateRoot : IAggregateRoot { /// <summary> ///...
Java
GB18030
699
2.0625
2
[]
no_license
package nc.bs.hrwa.allocate.ace.bp; import nc.impl.pubapp.pattern.data.bill.BillUpdate; import nc.vo.pub.VOStatus; import nc.vo.wa.allocate.AggAllocateOutVO; /** * ׼˵BP */ public class AceAllocateApproveBP { /** * ˶ * * @param vos * @param script * @return */ public AggAllocateOutVO[] approve(AggAll...
JavaScript
UTF-8
363
2.578125
3
[]
no_license
module.exports = { name: 'twitch', description: 'Sends a link to my twitch', execute(message, args) { if(!args[0]) {return message.reply("@mention who's twitch link you want")} let mention = message.mentions.users.first().id; if(mention === 327261354287431680) message.author.send('This is my twi...
PHP
UTF-8
1,525
2.71875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\components; use GeoIp2\Database\Reader; class CountryHelper { public static function getByIp() { $ip = self::getClientIp(); $country = ''; if (!self::isLocalIp($ip)) { try { $reader = new Reader(__DIR__ . '/../config/GeoIP2-Country.mm...
C++
UTF-8
2,470
3.25
3
[]
no_license
// // Created by yalavrinenko on 15.01.19. // #ifndef XRAY_TRACING_LIB_UTILS_HPP #define XRAY_TRACING_LIB_UTILS_HPP #include <vector> #include <mutex> #include <cstdio> template <class TLogData> class XRTFLogging{ public: XRTFLogging() = default; explicit XRTFLogging(std::string const &path): log_pa...
Markdown
UTF-8
5,384
2.984375
3
[]
no_license
# Chapter 02 - Podcast Questions Podcast Questions Listen to the Podcast at [https://twit.tv/shows/floss-weekly/episodes/500](https://twit.tv/shows/floss-weekly/episodes/500 "Podcast Interview") * 7:21 Who is Vicky Brasseur and what does she do? * Vicky is the director Open Source Strategy for Juniper Networks and...
C#
UTF-8
2,349
3.703125
4
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DelegateConsole { public class Program { static void PrintTitle(Book b) { Console.WriteLine("{0}", b.Title); } static void Main(string[] a...
C
UTF-8
297
3.203125
3
[]
no_license
/** * @file init.c * @brief * * @author Jeru Sanders * @date 2/16/2015 */ #include<stdio.h> int main() { int numbers[1000]; int i; for (i = 1; i < 1001; i++) { numbers[i] = i; printf("%d\n", numbers[i]); } return 0; }
Java
UTF-8
208
1.703125
2
[]
no_license
package com.wendy.repository; import org.springframework.data.jpa.repository.JpaRepository; import com.wendy.model.Purchase; public interface PurchaseRepository extends JpaRepository<Purchase,Long> { }
C#
UTF-8
662
2.734375
3
[]
no_license
namespace Linda.Core.Watch { using System; using System.IO; public class DefaultWatchBuilder : IWatchBuilder { public FileSystemWatcher GetWatcher(string path, Action<object, FileSystemEventArgs> eventMethod, string filter = "*") { var watcher = new FileSystemWatcher(path, ...
JavaScript
UTF-8
1,260
2.8125
3
[]
no_license
const template = document.createElement('template'); template.innerHTML = ` <style> #messanger { } #friend-list{ } .message-form{ } #list-of-messages{ display : flex; flex-direction : column-reverse; } </style> <friend-list></friend-list> ...
Python
UTF-8
5,362
3.234375
3
[ "MIT" ]
permissive
"""Util module that contains the tools to manage input/output files of a control. Functions: read_json_file. read_twf_file. get_files_path. Classes: FileManagerError. FileManager. """ import os import errno import csv import gettext import logging import json def read_json_file(file_name): """Read a JSON...
Python
UTF-8
1,235
2.53125
3
[]
no_license
import argparse, os parser = argparse.ArgumentParser(description='Process some integers.') parser.add_argument('-i',default=os.getcwd(),dest="input") parser.add_argument('-o',dest="output") # El threshold para la conversion BW parser.add_argument('-t', default=150, dest="threshold") # El ancho en pixels del marge...
C
UTF-8
318
3.1875
3
[]
no_license
#include <stdio.h> #include <stdlib.h> int main() { int k; scanf("%d", &k); int* A = (int*)malloc(sizeof(int) * (k + 1)); if (k < 3) printf("%d", k); else { A[0] = 0; A[1] = 1; A[2] = 2; for (int i = 3; i <= k; i++) A[i] = (A[i - 1] + A[i - 2])%15746; printf("%d", A[k]); } free(A); return 0; }
Swift
UTF-8
2,396
2.578125
3
[]
no_license
// // BaseScrollViewController.swift // AppTemplateiOS // // Created by Junio Moquiuti on 29/03/20. // Copyright © 2020 Junio Moquiuti. All rights reserved. // import UIKit import Cartography class BaseScrollViewController: BaseViewController { private var scrollViewConstraintGroup = ConstraintGroup() ...
Markdown
UTF-8
2,904
2.640625
3
[]
no_license
--- title: À propos published: true --- ### À propos de moi Je suis un ingénieur civil de Montréal, au Québec, qui se passionne pour la programmation. Bien que mon emploi à temps plein n’ait rien à voir avec la programmation, mon principal passe-temps y touche directement depuis près de 15 ans. En fait, la technologi...
Java
UTF-8
859
2.625
3
[]
no_license
package cn.android.demo.apis.ui.widget; import cn.android.demo.apis.R; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.TextView; /** * 用系统Movie 来显示GIF动画 * * @author Elroy * */ public class GifViewActivity extends Activity { TextView tvInfo; GifView gifVi...
C#
UTF-8
8,156
2.796875
3
[ "MIT" ]
permissive
using System; using System.Collections.Generic; using System.Linq; namespace Connectivity.test { public class NaiveConnGraph : IConnGraph { private class VertexInfo { private bool Equals(VertexInfo other) { return Equals(vertex, other.vertex); ...
Java
UTF-8
325
1.671875
2
[]
no_license
package com.zrt.zenb.controller.vo.jsonMsg; import com.zrt.zenb.controller.vo.enums.MsgType; import com.zrt.zenb.controller.vo.jsonMsg.BaseMsg; import lombok.Data; /** * @author intent */ @Data public class SysLog extends BaseMsg { String logStr; public SysLog(){ msgType = MsgType.LOG_GET_ACK; ...
C++
UTF-8
6,959
3.171875
3
[]
no_license
// // Created by Michael on 6/21/2015. // #include <iostream> #include <string.h> #include <stdlib.h> #include <stdio.h> #include "matrix_math.h" using namespace std; int inverse_matrix(const double **matrix, double **inverse, int n) { bool flag = true; int i, j, k, ret_val = 1; double m; double **au...
Python
UTF-8
238
2.890625
3
[]
no_license
def checkio(data): x = len(data) if x > 0: count[0] = count[0] + data[x-1] data2 = data[0:x-1] return checkio(data2) else: return count[0] count = [0] print (checkio([1,2,1,2,1]))
Markdown
UTF-8
10,051
2.53125
3
[]
no_license
--- description: "Easiest Way to Prepare Homemade Lemon Layer Cake with Blackberrie Cream Filling and a Lemon Cream Frosting" title: "Easiest Way to Prepare Homemade Lemon Layer Cake with Blackberrie Cream Filling and a Lemon Cream Frosting" slug: 1419-easiest-way-to-prepare-homemade-lemon-layer-cake-with-blackberrie-c...
C
UTF-8
1,337
3.265625
3
[]
no_license
/* * Filename: printPermissions.c * Author: Xiaolong Zhou * Userid: cs30xaeo * Description: This routine prints out the various rwx permissions for the * owner, group, and others when the -l flag is set. * Date: May 25, 2016 * Source of Help: write up, tutors */ /* * Header files include her...
Markdown
UTF-8
2,189
3.515625
4
[]
no_license
# lt067 > Given two binary strings, return their sum (also a binary string). > > The input strings are both non-empty and contains only characters 1 or 0. > Example 1: > Input: a = "11", b = "1" > Output: "100" > Example 2: > Input: a = "1010", b = "1011" > Output: "10101" # code ```Java class...
Java
UTF-8
785
3.265625
3
[]
no_license
package org.yqj.original.demo.lombok; import lombok.val; import java.util.ArrayList; import java.util.HashMap; /** * Created by yaoqijun. * Date:2016-01-23 * Email:yaoqj@terminus.io * Descirbe: */ public class ValTest { public static void main(String[] args) { val test = new ArrayList<>(); // 默认fi...
C++
UTF-8
2,516
2.515625
3
[]
no_license
#include <windows.h> #include <psapi.h> #include <assert.h> #include "process_stat.h" static uint64_t file_time_2_utc(const FILETIME* ftime) { LARGE_INTEGER li; assert(ftime); li.LowPart = ftime->dwLowDateTime; li.HighPart = ftime->dwHighDateTime; return li.QuadPart; } static int get_processo...
Python
UTF-8
1,051
2.90625
3
[]
no_license
import RPi.GPIO as GPIO import Tkinter as tk import socket GPIO.setmode(GPIO.BCM) pin = 14 GPIO.setup(pin, GPIO.OUT) HOST = '' # Symbolic name, meaning all available interfaces PORT = 1338 # Arbitrary non-privileged port s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) print 'Socket created' try: s.bind(...
C++
UTF-8
761
2.875
3
[ "MIT" ]
permissive
// // Created by Karol on 08.09.2016. // #define _USE_MATH_DEFINES #include <cmath> #include "SDL_helpers.hpp" int SDL_RenderDrawCircle(SDL_Renderer * renderer, double x, double y, double r, unsigned sides) { if (sides == 0) sides = (unsigned)(2.0*M_PI*r / 2.0 + 0.5); double d_a = 2.0*M_PI/sides; ...
C++
UTF-8
1,296
2.640625
3
[]
no_license
#include <bits/stdc++.h> #define fi first #define se second using namespace std; typedef long long ll; const int N = 5e4; int parent[N], ranks[N]; void initDSU(int n) { for (int i = 0; i < n; i++) { parent[i] = i; ranks[i] = 0; } } int root(int v) { return v == parent[v] ? v : parent[v]...
TypeScript
UTF-8
3,739
2.6875
3
[ "MIT" ]
permissive
import { CliBuildError, Type } from '../common/cli-types'; import { ModuleRef } from '../module/module-ref'; import { Injector } from '../dependency-injection/injector'; import { ProviderRef } from '../dependency-injection/provider-refs/provider-ref'; import { EvaluatedOption } from '../parser/options-parser'; import ...
Swift
UTF-8
494
2.828125
3
[ "MIT" ]
permissive
// // SelectedManager.swift // HAYO // // Created by mono on 8/22/14. // Copyright (c) 2014 Sheep. All rights reserved. // import Foundation class SelectedManager { var set = NSMutableSet() func toggle(obj: AnyObject) -> Bool { if isSelected(obj) { set.removeObject(obj) ...