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
Markdown
UTF-8
1,099
2.9375
3
[]
no_license
# Bamboo Lemur: Anonymous peer-to-peer chat ## About The [bamboo lemurs](https://en.wikipedia.org/wiki/Bamboo_lemur) are medium-sized primates that live on Madagascar (and nowhere else). They are called bamboo lemurs because they almost exclusively eat bamboo. Although they can be active any time of the day, they ar...
C++
UTF-8
1,815
2.609375
3
[ "MIT" ]
permissive
#include "KeyboardDevice.h" #include "KeyboardWindow.h" #include <malloc.h> KeyboardDevice *kbdDev; KeyboardDevice::KeyboardDevice(): handler(this, NULL, NULL, 0, 0) { key_map *keyMap; char *chars; bigtime_t delay; int32 rate; get_key_map(&keyMap, &chars); get_key_repeat_delay(&delay); get_key_repe...
Java
UTF-8
1,743
1.960938
2
[]
no_license
package com.jczc.operatorweb.model; public class PileGroupMessage { private Integer id; private String name; private String buildingsName; private String zoneName; private String cityName; private String provinceName; private String groupTypeName; private Integer maxNum = 0; privat...
C#
UTF-8
1,274
2.5625
3
[ "Apache-2.0" ]
permissive
using System; using System.Collections.Generic; using System.Linq; using System.Reactive.Contrib.Monitoring.UI.Contracts; using System.Reactive.Linq; using System.Text; using System.Threading.Tasks; namespace System.Reactive.Samples { public class WindowCountSample : SampleBase<long> { public override...
Python
UTF-8
846
2.703125
3
[]
no_license
s = input() t = input() inf = pow(10, 4) dp = [[0]*(len(t)+1) for _ in range(len(s)+1)] key = [[0]*(len(t)+1) for _ in range(len(s)+1)] for i in range(len(s)+1): for j in range(len(t)+1): if i == 0 and j == 0: continue if i == 0: dp[i][j] = dp[i][j-1] continue if j == 0: dp[i][j] ...
Markdown
UTF-8
8,951
2.765625
3
[]
no_license
五三 沙士密噫声道:“敌人总共逃走不到十人,他们岂能卷土重去归海堡,在老堡主面前那篇话,我是藉故告别的,现在我们是一直上北京!” 尚文庄啊声道:“我还当是真的呢!” 四人说着走着,于路上经过几宿之后,这日到了平谷,沙士密一看还不到中午,因之不在城中停留,穿城而,意欲急急起到北京。 黑龙鳞一直跟着尚文若寸步不离,它不用人牵,也不招呼,一路上行人看到都感惊讶,可是在出平谷城时,它然放开四蹄向前驰出。 尚文若一见,噫声道:“阿黑发现什么了?” 沙士密笑道:“前面那座山上经过了五骑人马,也许是莲教人,阿黑的目力强,它一定看出了,我们跟上去看四人展开脚步,瞬息追过那座小山,发现山那面有...
Markdown
UTF-8
1,987
3.84375
4
[]
no_license
> # 329.Longest Increasing Path in a Matrix Tags: `Hard` `Dynamic Programming` `Depth-first Search` `Topological Sort` `Memoization` Links: https://leetcode.com/problems/longest-increasing-path-in-a-matrix/ ---- Given an integer matrix, find the length of the longest increasing path. From each cell, you can either...
Markdown
UTF-8
1,337
2.625
3
[]
no_license
# fjordstudio-version4 This is the fourth version of fjordstudio.dk - due in November 2019. This is a custom Wordpress theme - it is geared towards being as well an online resume, as a freelancer profile. As a bonus, I've added a blog to the site in order to express my views and experience in webdesign and UX - inst...
Swift
UTF-8
5,792
2.875
3
[ "Apache-2.0" ]
permissive
// // Copyright 2021 Wultra s.r.o. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
Shell
UTF-8
1,056
3.90625
4
[]
permissive
# extracts the os unameOut="$(uname -s)" case "${unameOut}" in Linux*) os=linux;; Darwin*) os=mac;; esac # checks if python3 is installed, otherwise installs it if command -v python3 &>/dev/null; then echo Python 3 is installed! else echo python3 is now installing... if [ "$os" = 'linux' ];...
Go
UTF-8
1,150
2.6875
3
[]
no_license
package model import ( "context" "log" "github.com/go-redis/redis" ) type RedisConf struct { Host string Port string Pwd string DBName int } var Head = "all_key" var WxHead = "all_key_wx" var Pool *redis.Client var ctx = context.Background() // redis初始化 func InitRedis(redisMsg RedisConf) *redis.Clien...
Ruby
UTF-8
324
2.640625
3
[]
no_license
require_relative '../lib/game_of_life' require_relative '../lib/grid' require_relative '../lib/cell' @game_of_life = GameOfLife.new @grid = Grid.new @game_of_life.live_cells = [Cell.new(1,5), Cell.new(1,6), Cell.new(1,7)] @grid.print_results(@game_of_life) @game_of_life.tick @grid.print_results(@game_of_l...
Python
UTF-8
1,227
3.0625
3
[]
no_license
facs = {} facs[0] = 1 facs[1] = 1 facs[2] = 2 facs[3] = 6 facs[4] = 24 for i in range(5,10): facs[i] = facs[i-1]*i nums = {} for i in range(1,4000001): nums[i] = 100 def iterate(n): string = str(n) new = 0 for dig in string: new += facs[int(dig)] return new def loop(n): new = i...
Java
UTF-8
3,984
1.875
2
[]
no_license
package cn.wildfire.chat.kit.contact; import android.content.Intent; import android.view.View; import com.qiangdong.chat.ui.main.MainActivity; import cn.wildfire.chat.kit.channel.ChannelListActivity; import cn.wildfire.chat.kit.contact.model.ContactCountFooterValue; import cn.wildfire.chat.kit.contact.model.FriendRe...
Java
UTF-8
376
1.796875
2
[]
no_license
package com.locker_wx.weixin.model; import lombok.Data; /** * @describe 父菜单项 :包含有二级菜单项的一级菜单。这类菜单项包含有二个属性:name和sub_button,而sub_button以是一个子菜单项数组 * @author deng * */ @Data public class SubButton { private String name; private String type; private String key; private String url; }
Java
UTF-8
5,052
1.953125
2
[]
no_license
package com.tjsj.wp.mvc.controller.intf; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.s...
Swift
UTF-8
746
2.921875
3
[]
no_license
@testable import SocialNetworking import Foundation class UserBuilder { private var id = UserId(raw: UUID()) private var username = "mjkeenan" private var password = "password" func withId(_ id: UserId) -> UserBuilder { self.id = id return self } func withUserna...
Python
UTF-8
325
2.5625
3
[ "MIT" ]
permissive
import re from unicodedata import normalize ACCENT_GLYPHS = re.compile('[\u0060\u02C6\u02CA\u02CB\u02CE\u02CF\u02DD\u02DF\u02F4\u02F5\u02F6\u0300\u0301\u0302]+') def remove_accent_glyphs(text): text = normalize('NFD', text) text = re.sub(ACCENT_GLYPHS, '', text) text = normalize('NFC', text) return ...
C#
UTF-8
1,808
3.140625
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _3_객체간_통신을_하는_법_Observer.fourth { public class HeadHunter : IObserver, ISubject { List<IObserver> observers = new List<IObserver>(); public string Name { get; } ...
C#
UTF-8
61,144
2.703125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.CompilerServices; #if AdvSIMD using System.Runtime.Intrinsics.Arm; #endif #if SSE using System.Runtime.Intrinsics.X86; #endif namespace Silk.NET.M...
PHP
UTF-8
2,163
2.609375
3
[]
no_license
<?php namespace common\models; use Yii; /** * This is the model class for table "sanpham". * * @property integer $id * @property string $name * @property string $slug * @property integer $price * @property string $coupon * @property integer $status * @property string $title1 * @property string $title2 * @...
Python
UTF-8
465
2.6875
3
[]
no_license
from wtforms import Form, StringField, IntegerField, SubmitField from wtforms.validators import DataRequired, length, NumberRange class UserForm(Form): name = StringField('Name', [DataRequired(), length(2,20, 'name must be 2-20 characters')]) age = IntegerField('Age', [DataRequired(), NumberRange(18, 120,'age...
PHP
UTF-8
1,012
2.8125
3
[ "MIT" ]
permissive
<?php /** * Desc: Log类 * User: baagee * Date: 2019/3/14 * Time: 上午10:17 */ namespace BaAGee\Log; use BaAGee\Log\Base\LogAbstract; /** * Class Log * @method static emergency(string $log, $file = '', $line = 0); * @method static alert(string $log, $file = '', $line = 0); * @method static critical(string $log,...
Java
UTF-8
1,656
2.328125
2
[]
no_license
package com.ulstu.pharmacy.pmmsl.medservice.ejb; import com.ulstu.pharmacy.pmmsl.medicament.binding.MedicamentCountBindingModel; import com.ulstu.pharmacy.pmmsl.medservice.view.MedicalServiceViewModel; import javax.ejb.Local; import java.sql.Timestamp; import java.util.List; import java.util.Set; @Local public inte...
Java
UTF-8
1,252
3.34375
3
[]
no_license
package leetcode; /** * @author Dauren Mussa * @since 11/14/17 */ public class FirstMissingPositive { public static void main(String[] args) { FirstMissingPositive firstMissingPositive = new FirstMissingPositive(); int[] input = new int[3]; input[0] = 3; input[1] = 1; i...
Swift
UTF-8
698
2.65625
3
[]
no_license
// // ImageDetailTableViewCell.swift // TravelPlanner // // Created by Claire on 3/7/15. // Copyright (c) 2015 XiaoJu. All rights reserved. // import UIKit class ImageDetailTableViewCell: UITableViewCell { private var imageDetail: NSData? { didSet { updateUI() } } ...
Python
UTF-8
1,911
3.0625
3
[]
no_license
import pandas as pd import numpy as np import indicators from data import gdax_data def name(): return "EMA Trend" def run(intervals, product_id="ETH-USD", window=3): is_reversed = True for interval in intervals: data, start, end = gdax_data.get_data(product_id, interval, 200) if is_rev...
Python
UTF-8
848
3.28125
3
[ "MIT" ]
permissive
#!/bin/python3 import os # # Complete the intervalSelection function below. # def intervalSelection(intervals): # # Write your code here. # sorted_intervals = sorted(intervals, key=lambda x: x[1]) count = 0 check = [0, 0] for a, b in sorted_intervals: if a > check[1]: ...
Markdown
UTF-8
10,063
2.921875
3
[ "MIT" ]
permissive
--- layout: post title: '[JavaScript] 자바스크립트 런타임' featured-img: javascript/js.png category: [tech, javascript] summary: 자바스크립트 런타임의 동작 원리를 이야기 하도록 하겠습니다. --- 이번 포스트에서는 자바스크립트 런타임의 동작 원리를 이야기하도록 하겠습니다. [런타임(runtime)](https://ko.wikipedia.org/wiki/런타임)이란 프로그래밍 언어가 구동되는 환경을 말합니다.(위키 링크를 보면 런타임 환경이라고 보시면 될 것 같습니다.) Node....
C#
UTF-8
294
2.984375
3
[]
no_license
namespace LeetCode { public class MissingNumberProblem { public int MissingNumber(int[] nums) { int s = 0; int sum = 0; for (int i = 0; i < nums.Length; i++) { sum += nums[i]; s += i; } return s+nums.Length - sum; } } }
Markdown
UTF-8
2,356
3.046875
3
[ "MIT" ]
permissive
--- type: post title: Senior High Immersion description: On January 10, 2020 officially started the Immersion program of the Grade 12—Home Economics (HE) students at Alta D’ Tagaytay. authors: - authors/micaela-denise-sarra.md date: 2020-06-01T02:30:36.992Z lastmod: "" image: /assets/images/immersion.png categories...
Markdown
UTF-8
3,109
2.515625
3
[]
no_license
'''陈德滔'''({{lang-vi|Trần Đức Thảo}},{{bd|1917年|9月26日|1993年|4月24日|C陈德滔}})是一位越南哲学家。他的著作大多以法文写成,试图结合现象学与马克思主义哲学,在1950年代至1960年代的法国较为流行,[[让-弗朗索瓦·利奥塔|让-弗朗索瓦·利奥塔]]、[[路易·皮埃尔·阿尔都塞|路易·皮埃尔·阿尔都塞]]、[[雅克·德里达|雅克·德里达]]都引用过他的文章。 陈德滔生于越南河内并在那儿受了早期教育,17岁时通过了中学毕业考试。1936年,他赴法国继续学业,在[[高等师范学校|高等师范学校]]师从[[莫里斯·梅洛-庞蒂|莫里斯·梅洛-庞蒂]],在那儿他写了一篇关于[[黑格...
C++
UTF-8
2,157
2.8125
3
[]
no_license
#include "Clinica.h" //Animal Animal::Animal(string umNome, string umaEspecie, int numeroConsultas): nome(umNome), especie(umaEspecie), numConsultas(numeroConsultas) {} string Animal::getNome() const { return nome; } string Animal::getEspecie() const { return especie; } int Animal::getNumConsultas() const { retur...
TypeScript
UTF-8
1,970
2.53125
3
[ "Apache-2.0" ]
permissive
import * as ts from 'typescript'; import { Reflection, ReflectionFlag, DeclarationReflection } from '../../models/index'; import { Context } from '../context'; import { Component, ConverterNodeComponent } from '../components'; @Component({name: 'node:export'}) export class ExportConverter extends ConverterNodeCompone...
JavaScript
UTF-8
2,267
2.640625
3
[]
no_license
/** * @class Contacts.ContactDrivePanel * @extends Ext.Panel * * This panel displays a contact's mapped address. */ Contacts.ContactDrivePanel = Ext.extend(Ext.Panel, { layout: 'fit', address: "", model: null, constructor : function(model) { this.model = model; this.address = model.data.address + ' ' + ...
JavaScript
UTF-8
676
2.703125
3
[]
no_license
import React, { useState } from 'react' const BlogDetail = ( {blog, addLike} ) => { console.log(blog) if (!blog) { return null } const handleLike = (event) => { event.preventDefault() const newBlog = { ...blog, likes: blog.likes + 1, } a...
Java
UTF-8
3,623
2.078125
2
[]
no_license
package com.fkl.player.activity; import android.os.Handler; import android.os.Message; import android.support.v4.app.FragmentActivity; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import android.os.Bundle; import android.view.KeyEvent; import android.widget.RadioGro...
Java
UTF-8
22,253
2.515625
3
[]
no_license
package com.racic.lib.business.service.impl; import com.racic.lib.business.service.Util.Utils; import com.racic.lib.business.service.contract.BookService; import com.racic.lib.business.service.contract.BorrowingService; import com.racic.lib.business.service.contract.SessionService; import com.racic.lib.business.servic...
SQL
UTF-8
215
3.03125
3
[]
no_license
with source as ( select * from {{ source('warehouse', 'product') }} ), renamed as ( select product_id, product_name, unit_cost, unit_price from source ) select * from renamed
C++
UTF-8
493
2.5625
3
[]
no_license
// Charles Buyas, cjb8qf, 2-8-17, stack.h #ifndef STACK_H #define STACK_H #include <iostream> #include "List.h" #include "ListItr.h" #include "postfixCalculator.h" using namespace std; //class ListItr; //class List; //class ListNode; class myStack { public: myStack(); // Constructor void push(int x); // Adds t...
Markdown
UTF-8
1,480
3.921875
4
[]
no_license
Unique Paths ========= > A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). > The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the diagram below). > How many possible un...
Java
UTF-8
462
1.765625
2
[]
no_license
package dao.admin; import entity.Music; public interface AdminDao { String login(String name,String password); Object showAllMusic(); void deleteMusic(String id); void addMusic(Object object); Object showAllUser(); Object searchUser(String input); Object selfInfo(String name); v...
Shell
UTF-8
1,834
3.40625
3
[]
no_license
#!/bin/bash picardPath=$1 echo "Found picard path : "$picardPath samJarName=`ls $picardPath"/"sam-*.jar` picardJarName=`ls $picardPath"/"picard-*.jar` mateInfoFixJarName="MateInfoFixer.jar" fixCIGARJarName="CIGARFixer.jar" bamHeaderFixerJarName="BAMHeaderFixer.jar" peToFragJarName="PEToFragConvertor.jar" echo "Buil...
Java
UTF-8
226
2.421875
2
[]
no_license
package 创建型模式.工厂方法模式; public class Client { public static void main(String[] args) { Factroy factroyB=new BFactroy(); Fruit fruit=factroyB.CreatFruit(); fruit.eat(); } }
Java
UTF-8
2,063
2.3125
2
[ "MIT" ]
permissive
package lv.tsi.javacourses.shipping.ships.boundary; import lv.tsi.javacourses.shipping.MessagesHelper; import lv.tsi.javacourses.shipping.ships.control.VesselTypeDAO; import lv.tsi.javacourses.shipping.ships.model.VesselTypeEntity; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.faces.applicatio...
Java
UTF-8
726
1.828125
2
[]
no_license
package cn.edu.njnu.model; import lombok.Data; import java.io.Serializable; import java.util.Date; @Data public class ProductSchedule implements Serializable { private Integer id; private Integer flag; private Date createTime; private Integer createUserid; private Date updateTime; privat...
Java
UTF-8
627
2.625
3
[]
no_license
package Controllers; import project.PersonalInfo; import project.User; import project.UserFunctionalities; import project.UserType; public class User_Controller { UserFunctionalities userfuncs; public User_Controller(UserFunctionalities funs) { this.userfuncs=funs; } public PersonalInfo loginHadler(Strin...
Python
UTF-8
5,993
2.796875
3
[ "MIT" ]
permissive
import logging import os import sys from .settings import get_settings from .strings import is_chars, regex_default __author__ = 'nekmo' class Subcommand(object): """Base para crear subcomandos. Éstos podrán tener propiedades como los argumentos que tendrá por línea de comandos y método para validaciones."""...
C++
UTF-8
1,728
3.0625
3
[]
no_license
#ifndef CONCRETE_COMBINATORS #define CONCRETE_COMBINATORS #include <cctype> #include "parser.h" #include "combinators.h" Parser<char> symbol(char x) { return satisfy([x](char y){ return x == y; }); } Parser<char> digit() { return satisfy([](char y){ return y >= '0' && y <= '9'; }); } Parser<char> lower() {...
Java
UTF-8
910
2.140625
2
[]
no_license
package hooks; import io.cucumber.java.After; import io.cucumber.java.AfterStep; import io.cucumber.java.Before; import io.cucumber.java.BeforeStep; import io.cucumber.java.Scenario; public class AmazonHooks { @Before("@Smoke") public void setup_browser(Scenario sc) { System.out.println("Launch chrome browser"); ...
PHP
UTF-8
338
2.734375
3
[]
no_license
<?php namespace Leaf\Nodes\Tag; class Doctype extends Common { protected $doctype; public function __construct($tagName, $textContent = null) { $this->doctype = 'html'; parent::__construct('doctype'); } public static function render(\Leaf\Node $Node) { return (sprintf("<!DOCTYPE %s>", $Node->...
Markdown
UTF-8
2,254
2.984375
3
[]
no_license
--- tags: - input-control - ui - element --- # Select ## Detailed description TextField is a single line text editor. TextField extends TextInput with a placeholder text functionality, and adds decoration. ## Example usage The following example shows the simplest usage of the Select type. ![alt text](./Select....
Java
UTF-8
4,001
2.265625
2
[]
no_license
package cy.cs.ucy.ade.aioann01.WorkloadGenerator.Services.SensorProtototypeServices; import cy.cs.ucy.ade.aioann01.WorkloadGenerator.Model.SensorPrototype.DatasetSensorPrototype; import cy.cs.ucy.ade.aioann01.WorkloadGenerator.Model.Http.Exchange; import cy.cs.ucy.ade.aioann01.WorkloadGenerator.Model.Thread.ReplayDat...
SQL
UTF-8
2,942
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 15, 2021 at 04:22 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
C#
UTF-8
978
2.5625
3
[ "BSD-2-Clause" ]
permissive
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.Serialization; namespace VoteSystem.Protocol.Vote { using Ragnarok.Utility; /// <summary> /// 投票状態を判別します。 /// </summary> [DataContract()] public enum VoteState { ...
SQL
UTF-8
4,731
4.09375
4
[]
no_license
--recover from invalid ae_i_aqr_r entries made to update inventory cost DELETE FROM ae_i_trans_reg WHERE SOURCE_TRANX_NO IN ( SELECT trans_num FROM AE_I_AQR_R WHERE edit_clerk = 'ETRISKA' AND edit_date LIKE '11-AUG-16' ) AND SOURCE_SCREENNAME = 'INVENTORY EXTERNAL TRANS'; DELETE FROM ae_i_aqr_r WH...
C++
UTF-8
337
2.734375
3
[]
no_license
#include <iostream> #include <math.h> constexpr auto CLK_TCK = 100; using namespace std; int main() { long double c1, c2; cin >> c1 >> c2; int time = round((c2 - c1) / CLK_TCK); int hour, min, sec; sec = time % 60; min = (time / 60) % 60; hour = time / 3600; printf("%02d:", hour); printf("%02d:", min); print...
TypeScript
UTF-8
1,124
2.734375
3
[]
no_license
/* eslint-disable import/no-duplicates */ import { writable, get } from "svelte/store"; import { fly } from "svelte/transition"; type Config = Record<string, unknown>; const transitions = { left: { in: (node: Element, config: Config) => fly(node, { x: 100, delay: 50, ...config }), out: (node: Element,...
Python
UTF-8
4,254
3.578125
4
[]
no_license
import pandas as pd import numpy as np import requests import re import os class LanguageModel: """Build a language model using Moby Dick text corpus""" def __init__(self): self.build() def __load_data(self): """Load the text data as the corpus""" _init_file_dir = os.path.dirname...
Ruby
UTF-8
341
3.8125
4
[]
no_license
array = [1, 2, 3, 4] puts "\nExecutando .map multiplicando cada item por 2" new_array = array.map do |a| a * 2 end puts "\nArray Original" puts " #{array}" puts "\nNovo Array" puts " #{new_array}" puts "\nExecutando .map! multiplicando cada item por 2" array.map! do |a| a * 2 end puts "\nArray Original" put...
Markdown
UTF-8
1,510
3.125
3
[]
no_license
This code is modified from (https://github.com/sunsided/viola-jones-adaboost/blob/master/viola-jones.ipynb) # ECEN 649 pattern recognition class project ## Implement Viola and Jones face detection algorithm ### Data sets download from [here].(http://www.ai.mit.edu/courses/6.899/lectures/faces.tar.gz). ### The algori...
C#
UTF-8
1,028
2.5625
3
[]
no_license
using SQLite.Net.Attributes; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RozkładJazdyv2.Model { public class Track { [PrimaryKey] [Indexed] public int Id { get; set; } public int IdOfName { get; ...
C
UTF-8
1,834
2.640625
3
[]
no_license
/* grantchen - 2014/08/21 * Buddy allocator for string * config BUDDY_UNIT_SZ to fufill your need * */ #ifndef _STR_ALLOC_H #define _STR_ALLOC_H #include <stdint.h> #define BUDDY_UNIT_SZ 16 // MAX_BUDDY_UNIT_NUM -> 2^26 -> 64M #define MAX_BUDDY_UNIT_NUM (1<<26) #define DEFAULT_BUDDY_UNIT_NUM (1<<2...
C#
UTF-8
1,281
2.53125
3
[]
no_license
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Interactable : MonoBehaviour { [SerializeField] public Text interactText; public Transform interactionTransform; private bool interactAllowed; // Use this for ini private void S...
Java
UTF-8
548
2.4375
2
[]
no_license
package com.louis.login.beans; import java.io.Serializable; public class LoginInfo implements Serializable { private static final long serialVersionUID = 1L; public enum LoginState{ Success, UserNameNotExist, PassWordWrong }; LoginState loginState; public LoginInfo() { super(); } public LoginInfo...
Python
UTF-8
3,443
2.796875
3
[]
no_license
import pyrebase config = { "apiKey": "AIzaSyBCJqPcs8VvaLdlHd-J5SdMIOXu1NvwFns", "authDomain": "aggie-tube.firebaseapp.com", "databaseURL": "https://aggie-tube.firebaseio.com", "projectId": "aggie-tube", "storageBucket": "aggie-tube.appspot.com" } firebase = pyrebase.initialize_app(config) # Get a referenc...
C++
UTF-8
2,198
2.890625
3
[]
no_license
#include "TapTempo.hpp" TapTempo::TapTempo(uint8_t pin) : pin_(pin) , state_(state::released) , taps_() , tap_debounce_(0) , bpm_(0) { pinMode(pin_, INPUT); taps_[0] = 0; taps_[1] = 0; } void TapTempo::trigger() { // Rising edge detected on input pin, i.e. the button was pressed if (stat...
PHP
UTF-8
3,241
2.515625
3
[]
no_license
<?php $result = $conn->query("select * from secret_word LIMIT 1"); $result = $result->fetch(PDO::FETCH_ASSOC); $secret_word = $result['secret_word']; $result2 = $conn->query("Select * from interns_data where username = 'joel'"); $user = $result2->fetch(PDO::FETCH_OBJ); ?> <!DOCTYPE html> <html> <h...
SQL
UTF-8
975
4.09375
4
[]
no_license
Drop table if exists `Employee`; CREATE TABLE `Employee` ( `Id`INT (11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id主键', `Salary` VARCHAR (20) NOT NULL COMMENT '薪水', `create_time` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `modify_time` DATETIME DEFAULT NULL COMMENT '修改时间', PRIMARY KEY (`Id`) )ENGINE = INNODB...
C
UTF-8
380
3.25
3
[ "Unlicense" ]
permissive
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "insertion_sort_direto.h" void insertion_sort_direto(dado_t ** dados, int n_linhas){ for(int i = 1; i < n_linhas; i++){ for(int j = i; j > 0 && retornar_temperatura(dados[j - 1]) > retornar_temperatura(dados[j]); j--){ dado_t * aux = dados[j]; ...
PHP
UTF-8
4,731
2.859375
3
[ "MIT" ]
permissive
<?php include_once('minifier.php'); $error_min = ''; // JS Files if (isset($_POST['uploadJS'])) { $error_min = uploadFiles('JSfiles'); } // CSS Files else if(isset($_POST['uploadCSS'])) { $error_min = uploadFiles('CSSfiles'); } // Minify Files function uploadFiles($type) { $error = ''; $files ...
Java
UTF-8
1,908
2.265625
2
[]
no_license
package developingalex.com.waxtradeapp.adapters; import android.app.Activity; import android.content.Context; import android.support.annotation.NonNull; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ImageView; impo...
C++
UTF-8
885
3.5
4
[]
no_license
#include<iostream> #include<vector> #include<string> using namespace std; vector<bool> generate_sieve(int n) { vector<bool> isPrime; for (int i = 0; i <= n; i++) { isPrime.push_back(true); } for (int i = 2; i <= n; i++) { if (isPrime[i]) { int count = 2 * i; while (count <= n) { isPrime[count] = fa...
Go
UTF-8
712
2.921875
3
[ "MIT" ]
permissive
// // contract/invariant_test.go // gocontract // // Created by steve on 2019-03-04. // Copyright © 2019 Klassen Software Solutions. All rights reserved. // Permission is hereby granted for use under the MIT License (https://opensource.org/licenses/MIT). // package contract import "testing" // Note that the followin...
Java
UTF-8
230
2.59375
3
[ "MIT" ]
permissive
import java.util.Scanner; public class App { public static void main(String[] args) { try(Scanner sc = new Scanner(System.in)){ int x = sc.nextInt(); System.out.println(2*x); } } }
Python
UTF-8
365
3.875
4
[]
no_license
def lettersCheck(phrase: str, letters: str = 'aeiou') -> set: return set(letters).intersection(set(phrase)) # Check for intersection def vowelCheck(word: str) -> set: """This function returns a set of vowels, contained in the argument""" vowels = set('aeiou') # Set of vowels return set(vowels).inter...
Swift
UTF-8
1,814
2.828125
3
[]
no_license
// // AuthViewController.swift // HowAmIDoing // // Created by Michael Kavouras on 2/5/15. // Copyright (c) 2015 Mike Kavouras. All rights reserved. // import UIKit @objc protocol AuthViewControllerDelegate { optional func userDidLogin() optional func userDidSignup() } class AuthViewController: UIViewCon...
Shell
UTF-8
249
2.546875
3
[]
no_license
#!/bin/bash for i in {1..11} do echo echo $i#; # cat testfiles/test$i clang -Wall -Werror -g testcase/dry$i.c textbuffer.c -o dry$i ./dry$i >result diff -iEBw testoutput/result$i result valgrind --leak-check=full -v ./dry$i rm dry$i done
C#
UTF-8
6,870
2.53125
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Net.Configuration; using System.Threading; using System.Threading.Tasks; using System.Timers; using ConsoleTestBase; using Microsoft.ServiceBus.Messaging; using Timer = System.Timers.Timer; namespace PollAndPeekTest { internal static ...
Rust
UTF-8
3,001
3.09375
3
[]
no_license
use image; use std::cmp; use image::Pixel; #[derive(Default)] pub struct RgbImageStats { pub max: [u8; 3], pub avg: [f64; 3], pub sum: [u64; 3], pub sum_squares: [u64; 3], } pub trait PixelMath { fn max_per_channel(&self) -> (u8, u8, u8); fn avg_per_channel(&self) -> (f32, f32, f32); fn su...
Java
UTF-8
1,413
1.8125
2
[]
no_license
//package my_manage.ui.password_box; // //import androidx.test.InstrumentationRegistry; //import androidx.test.ext.junit.runners.AndroidJUnit4; // //import org.junit.Assert; //import org.junit.Test; //import org.junit.runner.RunWith; // //import java.util.ArrayList; //import java.util.Calendar; //import java.util.List;...
Java
SHIFT_JIS
2,964
2.84375
3
[]
no_license
import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.List; import java.util.Scanner; public class zentest{ public static void main(String args[]) { Scanner scanner = new Scanner(System.in); System.out.print("yyyy/mm/dd`œt͂ĂBF"); Str...
PHP
UTF-8
2,931
2.671875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Neos\MarketPlace\Eel\FlowQueryOperations; /* * This file is part of the Neos.MarketPlace package. * * (c) Contributors of the Neos Project - www.neos.io * * This package is Open Source Software. For the full copyright and license * information, please view the LICENSE file which was distributed w...
Java
UTF-8
1,901
2.40625
2
[]
no_license
package br.ifsc.edu.firebasemateus; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.EditText; import android.widget.Toast; import com.google.android.gms.tasks.OnCompleteListen...
Python
UTF-8
593
3.53125
4
[]
no_license
class SweetPotato: def __init__(self): self.cookedString="生的" self.cookedLevel=0 def cook(self,cooked_time): if cooked_time>=0 and cooked_time<3: self.cookedString="生的" elif cooked_time>=3 and cooked_time<5: self.cookedString="半生不熟" elif cooked_time>=5 and cooked_time<8: self.cookedString="熟了" ...
C++
UTF-8
1,461
2.671875
3
[]
no_license
#include <iostream> #include <algorithm> #include <string> using namespace std; int main () { string inp; cin >> inp; int n = inp.length(); long long a, b; cin >> a >> b; int adivs[n], bdivs[n]; long long lastmod = (inp[0]-'0')%a; adivs[0] = lastmod==0; for (int i=1; i<n; i++) { ...
Java
UTF-8
1,960
2.984375
3
[]
no_license
package com.dgplugin.asmtest; import org.objectweb.asm.ClassReader; import org.objectweb.asm.ClassWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; /** * author: DragonForest * time: 2019/12/23 */ public class AsmUtil { public static voi...
C#
UTF-8
1,615
2.75
3
[]
no_license
using AutoMapper; using Microsoft.EntityFrameworkCore; using System; using System.Linq; using System.Linq.Expressions; using System.Threading.Tasks; using Domain.Interfaces; using AutoMapper.QueryableExtensions; namespace Domain { public abstract class TeenyURLRepository<TEntity, TEntityMapping> : ITeenyURLReposi...
Java
UTF-8
4,068
2.46875
2
[]
no_license
package Tayfun; import java.awt.BorderLayout; import java.awt.EventQueue; import java.util.ArrayList; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import javax.swing.JTable; import javax.swing.JLabel; import javax.swing.JScrollBar; import javax.swing.JScroll...
Java
UTF-8
1,190
2.21875
2
[]
no_license
package com.example.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import com.example.domain.City; import com.example.domain.Hotel; import com.example.mapper.CityMapper; import com.example.mapper.HotelMapper; ...
Java
UTF-8
1,087
2.5625
3
[]
no_license
package pl.subtelny.utilities.reward.command; import org.bukkit.configuration.file.YamlConfiguration; import pl.subtelny.utilities.Saveable; import pl.subtelny.utilities.file.ObjectFileParserStrategy; import pl.subtelny.utilities.file.PathAbstractFileParserStrategy; import java.io.File; public class CommandRewardFil...
Python
UTF-8
1,803
2.609375
3
[]
no_license
"""Find all articles that are cited by and item or items""" from logging import getLogger from litman.litman import ItemNotFound, load_config, LitItem from litman.experimental.mag_client import MagClient, HttpException, PaperNotFound ARGS = [(['--item', '-i'], {'help': 'Item to perform search on'}), (['--tag-...
Shell
UTF-8
18,611
3.296875
3
[]
no_license
#!/bin/bash # vim:ts=8:sw=2 et:sta # Najib Ibrahim [mnajib@gmail.com] # # NOTE: For list of disk image, please see # qemu/doc/img_list.txt # # IRC channels: # #qemu@irc.oftc.net # #qemu@irc.freenode.net # #virtualsquare@irc.freenode.net # #ubuntu@irc.freenode.net # # Qemu Version QEMUROOT="/usr/bin" QEMU32="${...
Java
UTF-8
1,038
2.328125
2
[ "Apache-2.0" ]
permissive
package com.gentics.mesh.core.field.number; import com.gentics.mesh.core.data.node.field.list.HibNumberFieldList; import com.gentics.mesh.core.field.DataProvider; import com.gentics.mesh.core.field.FieldFetcher; /** * Test helper for number fields. */ public interface NumberListFieldTestHelper { static final doub...
Java
UTF-8
3,009
2.25
2
[]
no_license
package com.example.administrator.positioning.bean; import java.io.Serializable; /** * Created by zz on 2017/4/7. */ public class CarRouteBean implements Serializable{ // "carcode": "0", // "carimage": "&nbsp;", // "driver": "刘世国", // "endsite": "北京西站", // "endtime": ...
C#
UTF-8
1,162
3.40625
3
[]
no_license
using System; using System.Linq; namespace _02.CubicsRube { public class Startup { public static void Main() { var n = int.Parse(Console.ReadLine()); var sum = 0L; var freeDimensions = (int)Math.Pow(n, 3); var input = Console.ReadLine(); ...
Java
UTF-8
286
2.875
3
[]
no_license
package game; public class MoveLeftCommand implements Command { private Robot robot; public MoveLeftCommand(Robot r){ this.robot = r; } public void execute() { this.robot.moveLeft(); } @Override public void undo() { this.robot.moveRight(); } }
Ruby
UTF-8
1,599
3.53125
4
[]
no_license
require_relative 'deck' class Hand HAND_VALUE = {high_card: 1, one_pair: 2, two_pair: 3, three_of_a_kind: 4, straight: 5, flush: 6, four_of_a_kind: 7, straight_flush: 8, royal_flush: 9} attr_accessor :hand, :deck def initialize(deck) @hand = populate_hand(deck) end def ...
JavaScript
UTF-8
1,042
2.984375
3
[]
no_license
import { Haiku } from './../js/haiku.js'; describe('Haiku', function(){ it('should check if a letter is a vowel', function(){ let haiku = new Haiku(); expect(haiku.isVowel("m")).toEqual(false); expect(haiku.isVowel("e")).toEqual(true); }); it('should correctly count number of vowels in a word based...
Python
UTF-8
2,004
2.578125
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
import alsaaudio class Volume: def __init__(self,language): self.language = language['volumeControl'] #for some this can be Master instead of PCM if you get errors try Master try: self.alsaaudioMixer = alsaaudio.Mixer('PCM') except Exception as ex: self.alsa...