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
1,835
2.078125
2
[]
no_license
package it.worldpay.fede.offersmanager.dao; import static org.junit.Assert.assertEquals; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.orm.jpa.D...
SQL
UTF-8
192
3.140625
3
[]
no_license
SELECT DepositGroup, SUM(DepositAmount) AS [Total Sum] FROM WizzardDeposits WHERE MagicWandCreator = 'Ollivander family' GROUP BY DepositGroup HAVING SUM(DepositAmount) < 150000 ORDER BY [Total Sum] DESC
Markdown
UTF-8
1,605
2.59375
3
[ "CC-BY-4.0", "MIT" ]
permissive
--- title: "Définir la base, commande | Microsoft Docs" ms.custom: ms.date: 11/04/2016 ms.reviewer: ms.suite: ms.technology: vs-ide-general ms.tgt_pltfrm: ms.topic: article f1_keywords: debug.setradix helpviewer_keywords: - Set Radix command - Debug.SetRadix command ms.assetid: 6ffd1554-7530-4da4-b5f5-e...
Markdown
UTF-8
2,778
3.109375
3
[ "MIT" ]
permissive
--- title: Setting up Development Environment using Vagrant date: '2012-10-03 10:55:05' tags: - cap-abhilash - cap-vimal - technology wp:post_id: '4148' link: http://www.multunus.com/blog/2012/10/setting-up-development-environment-using-vagrant/ --- **Problem** We have some projects which takes lot of effort to set ...
Swift
UTF-8
1,185
2.90625
3
[]
no_license
// // ConfirmView.swift // RekClient (iOS) // // Created by Ivan C Myrvold on 17/05/2021. // import SwiftUI struct ConfirmView: View { @Environment(\.presentationMode) var presentationMode @State var verificationCode = "" var username: String @ObservedObject var loginHandler: LoginHandler ...
C
UTF-8
274
3.046875
3
[]
no_license
#include <stdio.h> int main() { int F, I, contador=0; scanf ("%d%d", &F, &I); if (F >= 140 && I >= 14){ contador++; } if (F >= 150 && I >= 12){ contador++; } if (F >= 170 || I >= 16){ contador++; } printf("%d\n", contador); return 0; }
Java
UTF-8
5,519
3.375
3
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
package cz.salmelu.contests.util; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStreamReader; import java.util.HashMap; import java.util.Map; /** * Custom class used for parsing configuration f...
C++
UTF-8
3,759
2.578125
3
[ "Apache-2.0" ]
permissive
#include <stack> #include <algorithm> #include <unordered_set> #include "emptyeisner2ndf_macros.h" namespace emptyeisner2ndf { bool operator<(const ECArc & arc1, const ECArc & arc2) { if (arc1.first() != arc2.first()) { return arc1.first() < arc2.first(); } if (IS_EMPTY(arc1.second())) { if (IS_EMPTY(ar...
C#
UTF-8
5,338
2.546875
3
[]
no_license
using ChatBot.Models; using System; using System.Collections.Generic; using System.Configuration; using System.Data.Linq; using System.Linq; using System.Web; namespace ChatBot.Dac { public class DeskDac : _Dac { /// <summary> /// 取得所有桌子資料 /// </summary> /// <returns></returns...
Java
UTF-8
10,997
2.0625
2
[]
no_license
package com.wh.interceptor; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import com.wh.pojo.MemberInfo; import com.wh.util.DateUtil; import com.wh.util.StringUtil; import com.wh.util.UUIDUtil; impo...
C++
UTF-8
800
3.140625
3
[]
no_license
#include "pch.h" #include "TriggerFactory.h" TriggerFactory::TriggerFactory() {} /// @brief Register trigger with its name in factory for later cloning /// @param name /// @param trigger void TriggerFactory::registerTrigger(string name, shared_ptr<BaseTrigger> trigger) { if (triggerMap.count(name) == 0) { trigge...
Python
UTF-8
464
3.203125
3
[]
no_license
#!/usr/bin/env python3 import re with open('input.txt') as _file: input_data = _file.read() passports = re.split(r"\n\n", input_data) valid_passports = 0 for passport in passports: fields = re.split(r"\s|\n", passport) if len(fields) == 8: valid_passports += 1 continue if len(fiel...
Java
UTF-8
2,187
2.328125
2
[ "MIT" ]
permissive
package org.checkerframework.framework.qual; import java.lang.annotation.Annotation; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.CONSTRUCTOR; import static...
C#
UTF-8
952
2.546875
3
[]
no_license
public partial class FrmItemSearch : Form { private FrmMasterItem f_mb; public FrmItemSearch(FrmMasterItem fmb) { f_mb = fmb; InitializeComponent(); } private void FrmItemSearch_Load(object sender, EventArgs e) { ...
Rust
UTF-8
2,675
2.625
3
[ "Apache-2.0", "MIT" ]
permissive
// Copyright 2020 Parity Technologies // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except accor...
Ruby
UTF-8
36
2.671875
3
[ "Apache-2.0" ]
permissive
def multiple(p,n) n % p == 0 end
Markdown
UTF-8
1,211
2.5625
3
[ "MIT" ]
permissive
## Project Folder To deploy an app with Dash Enterprise and Conda, three additional files are needed in your **project folder**: 1. A `requirements.txt` file to describe packages to be installed with `pip`. This include Dash Enterprise dependencies like `dash-design-kit` and `dash-snapshots`. 2. A `conda-require...
C#
UTF-8
894
3.859375
4
[]
no_license
using System; namespace detyra6 { class Program { static void Main(string[] args) { Console.WriteLine("Enter first number: "); int firstNumber = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Enter second number: "); int secondNumber = C...
Java
UTF-8
132
1.6875
2
[]
no_license
import java.util.TimerTask; public class AnimPersoChoix extends TimerTask{ public void run(){ Fenetre.panSP.repaint(); } }
C
UTF-8
351
3.484375
3
[]
no_license
#include <stdio.h> int num = 0; unsigned int mask = 1; void Check(unsigned int x) { if (x == 0) printf("1의 개수는 %d개", num); else { if ((mask & x) == mask) num++; return Check(x >> 1); } } int main() { unsigned int argument; printf("1의 개수를 셀 수를 입력하세요:"); scanf("%u", &argument); Check(argument); }
JavaScript
UTF-8
5,242
3.171875
3
[]
no_license
const port = 8000; // node modules 또는 우리가 만든 js 파일: Module const express = require('express'); // express 모듈을 요청 const app = express(); // express 실행 const bodyParser = require('body-parser'); // post방식의 요청시 body를 해석하는 모듈 const db = require("./modules/mysql_conn"); const util = require("./modules/util"); // 서버를 실행한다...
C#
UTF-8
3,215
2.765625
3
[]
no_license
using System.Collections; using System.Collections.Generic; using System; using UnityEngine; namespace TKBase { public sealed class ObjectPools { private static Dictionary<Type, ArrayList> m_dicObject = new Dictionary<Type, ArrayList>(); /** * 回收对象 * @param obj 被...
C++
UTF-8
4,316
3.796875
4
[]
no_license
#pragma once #include <string> #include <stdexcept> #include "Baby.h" using namespace std; class MedicalRecord { public: // default constructor MedicalRecord() { record = new Baby[SIZE]; // array created on the heap numOfEntries = 0; // number of babies on record set to 0 } // destructor ...
TypeScript
UTF-8
1,325
2.875
3
[ "MIT" ]
permissive
import { Channel, GuildChannel, TextBasedChannel } from '../../structures/channels'; import { Snowflake } from '../../types'; import { BaseDeleteController, BaseFetchController } from '../base'; /** * Provides an interface for the bot's channels cache. * The channels are mapped by their IDs */ export declare class B...
JavaScript
UTF-8
308
2.765625
3
[]
no_license
'use strict'; function createUpdatedCollection(collectionA, objectB) { for(let i = 0;i<collectionA.length;i++){ if(objectB.value.indexOf(collectionA[i].key)!=-1){ collectionA[i].count -= parseInt(collectionA[i].count/3+""); //alert(collectionA[i].count); } } return collectionA; }
Java
UTF-8
216
1.664063
2
[]
no_license
package com.iisi.api.office; import java.util.List; import javax.faces.model.SelectItem; import com.iisi.api.model.Office; public interface OfficeService { public List<SelectItem> getOfficeItems(); }
Python
UTF-8
7,821
2.84375
3
[]
no_license
import pygame pygame.init() win = pygame.display.set_mode((500,480)) pygame.display.set_caption("First Game") walkRight = [pygame.image.load('R1.png'), pygame.image.load('R2.png'), pygame.image.load('R3.png'), pygame.image.load('R4.png'), pygame.image.load('R5.png'), pygame.image.load('R6.png'), pygame.image.load('R...
SQL
UTF-8
13,554
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.5deb2 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost:3306 -- Généré le : mar. 30 mars 2021 à 15:15 -- Version du serveur : 8.0.23-0ubuntu0.20.04.1 -- Version de PHP : 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:...
Python
UTF-8
188
3.6875
4
[]
no_license
name = "Jyoti" address = "Bangalore" print("My name is {} and my address is {}".format(name, address)) print("-"*45) print(f"My name is {name} and my address is {address}")
C++
UTF-8
10,948
4.09375
4
[]
no_license
/*********************************************************************** * Program: * Project 13, Sudoku * Brother Macbeth, CS124 * Author: * Heather Mason * Summary: * Load a sudoku board from a file. Display instructions with appropriate * prompts, then go to different functions for each prompt. Displ...
Python
UTF-8
844
2.578125
3
[]
no_license
import matplotlib import textacy import sys #from nltk.stem.lancaster import LancasterStemmer #from nltk.stem import WordNetLemmatizer st = LancasterStemmer() wnl = WordNetLemmatizer() doc = [] for i in range(1,6): file = open('./rapport{}.txt'.format(i), 'r') with open('./articles{}.txt'.format(i), 'r') as a...
Python
UTF-8
163
3.046875
3
[]
no_license
def primer5(): fBrojevi = open("brojevi.txt", "r") lines = fBrojevi.readlines() sum = 0 for line in lines: sum += eval(line) print(sum/len(lines)) primer5()
Java
UTF-8
3,056
2.265625
2
[ "Apache-2.0" ]
permissive
package com.morgan.server.util.soy; import org.junit.Before; import org.junit.Test; import com.google.common.base.Optional; import com.google.common.truth.Truth; import com.google.gwt.safehtml.shared.SafeHtmlUtils; import com.google.gwt.safehtml.shared.UriUtils; import com.google.template.soy.data.SoyData; import com...
Go
UTF-8
611
3.234375
3
[ "MIT" ]
permissive
package utils import ( "context" "reflect" ) type ListLoadFunc func(ctx context.Context, cursor string) (interface{}, string, error) // LoadList iterates over results of a given load function and appends them to a given list. func LoadList(ctx context.Context, list interface{}, loadFunc ListLoadFunc) (err error) {...
Java
UTF-8
1,817
3.015625
3
[]
no_license
package codility.MinAvgTwoSlice; public class Main { public static void print(int[] arr) { StringBuilder builder = new StringBuilder(); builder.append("["); for (int i = 0; i < arr.length; i++) { builder.append(arr[i]); if (i != arr.length - 1) { builder.append(", "); } } ...
Java
UTF-8
7,175
1.890625
2
[ "MIT" ]
permissive
package com.mediamonks.googleflip.pages.game_flow.multiplayer; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.widget.Toast; import com.mediamonks.googleflip.GoogleFlipGameApplication; import com.mediamonks.googleflip.R; import com.mediamon...
JavaScript
UTF-8
1,200
2.546875
3
[]
no_license
import axios from "axios"; class EventService { constructor() { this.api = axios.create({ baseURL: `${process.env.REACT_APP_API_URL}/api/events`, withCredentials: true, }); } createEvent = (artistId, userId, changes) => { const { title, description, date, particip...
Java
UTF-8
209
1.601563
2
[]
no_license
package org.alljson.internal; import java.util.List; public interface HandledType<T> { List<HandledType<?>> getParameters(); Class<T> toClass(); boolean isAssignableFrom(HandledType<?> other); }
Markdown
UTF-8
978
2.5625
3
[ "MIT" ]
permissive
# GPU-GEMS-3D-Fluid-Simulation This project is based on the GPU Gems 3D fluid simulation article. This article presents a method for calculating and rendering 3D fluid simulations. The method used for rendering was designed to best integrate the fluid simulation into the scene and have it interact with other scene com...
Java
UTF-8
1,093
1.671875
2
[]
no_license
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc import android.widget.SeekBar; public final class gal implements gak { public boolean a; private android.widget.SeekBar.OnSeekBarCh...
Markdown
UTF-8
2,848
2.515625
3
[]
no_license
--- title: How Do I Set up the Shipment Tracking Link? --- # How Do I Set up the Shipment Tracking Link? If the **Shipment Tracking** field in your **Shipment Tracking Information** browser (path: From the **Sales Orders** browser or the **Sales Invoices** browser, select **Options** > **Shipment Tracking** **In...
TypeScript
UTF-8
4,827
2.796875
3
[]
no_license
import { State, Store } from "./store" import { Circle } from "ol/geom" import { geometryActions } from "./actions" import { geometryMutations } from "./mutations" const circles = [ new Circle([1, 1], 1), new Circle([2, 2], 2), new Circle([3, 3], 3), new Circle([4, 4], 4), new Circle([5, 5], 5), ] const in...
C
UTF-8
573
2.875
3
[]
no_license
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> #include<assert.h> #include<stdbool.h> #include<limits.h> int in_nextInt(){ int x; scanf("%d", &x); return x; } int main(){ int G = in_nextInt(); int sin[G]; for (int i=0; i<G; ++i) sin[i] = in_nextInt(); int m = 0; bool ok=fa...
Python
UTF-8
702
4.28125
4
[]
no_license
#!/usr/bin/env python3 # -*- coding:UTF-8 -*- """题目4:输入某年某月某日,判断这一天是这一年的第几天?""" def get_days(year, month, day): months1 = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366] # 闰年 months2 = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365] # 平年 if ((year%4==0) and (year%100!=0)) or ((year...
Python
UTF-8
633
3.78125
4
[]
no_license
# угадай число import random a, b = 1, 100 SECRET = random.randint(a, b) if __name__ == '__main__': print(f"<<< УГАДАЙ ЧИСЛО ОТ {a} ДО {b}! >>>") counter, left, right = 0, a, b while True: counter += 1 choice = int(input(f"{counter}) ваш вариант ({left} - {right}): ")) if choice <...
C
UTF-8
967
2.609375
3
[]
no_license
#ifndef PROTOCOLE_H #define PROTOCOLE_H // Type de requete #define CONNECT 1 #define DECONNECT 2 #define TIR 3 #define SOUSMARIN 4 #define BATEAU_COULE 5 // Sens de deplacement des bateaux #define DROITE 1 #define GAUCHE 2 #define HAUT 3 #define BAS 4 struct Bateau { int type; i...
Java
UTF-8
704
3
3
[]
no_license
import org.junit.Assert; import org.junit.Test; public class Test { final double DELTA = 0.001; @Test public void measurementTest() { Measurement good = new Measurement(0); Measurement bad = new Measurement(-999); Measurement empty = new Measurement(); Assert.assert...
Python
UTF-8
1,597
2.546875
3
[]
no_license
from project_app import db class BookMylist(db.Model): __tablename__ = 'bookmylist' title = db.Column(db.String(256), nullable=False) link = db.Column(db.String(256)) image = db.Column(db.String(256)) author = db.Column(db.String(256)) price = db.Column(db.String(256)) discount = db.Colum...
Markdown
UTF-8
1,279
3.640625
4
[]
no_license
# 思路 * 首先删除前面所有的空格; * 使用$minus$记录当前数字的正负; * 遍历字符串,将当前字符加入$ans$ 结果中: * 如果$ans*10+x>INT\_MAX$,则发生溢出; * 如果$-ans*10-x<INT\_MIN$,则发生溢出; * 需要特判负数的最小值,因为其绝对值比整数最大值绝对值大一。 # 时间复杂度 $$ O(n) $$ # 代码 ```java class Solution { public int myAtoi(String s) { int k = 0; char[] str = s.toCharArray(); ...
Python
UTF-8
3,222
3.359375
3
[]
no_license
''' Simeon Smith DPW1607 07-09-16 Simple Form ''' #REQUIREMENTS #Collect 5 pieces of information. #One text based #One radio button #One select item #Organize HTML elements in page class. #Use GET method to deliver info gathered. #List information after GET. #Create a polish...
Java
UTF-8
975
2.453125
2
[]
no_license
import java.util.ArrayList; import java.util.HashMap; public class Chromosom { String activSystem; HashMap<String, Double> evaluateCritic; public HashMap<String, Double> getEvaluateCritic() { return evaluateCritic; } public void setEvaluateCritic(HashMap<String, Double> evaluateCritic) { this.evaluateCriti...
PHP
UTF-8
1,387
2.71875
3
[]
no_license
<?php namespace Yandex\Allure\Adapter\Example; use PHPUnit_Framework_TestCase; use Yandex\Allure\Adapter\Annotation\Title; use Yandex\Allure\Adapter\Support\AttachmentSupport; /** * @package Yandex\Allure\Adapter\Example * @Title("Tests with attachments") */ class AttachmentsTest extends PHPUnit_Framework_TestCas...
C++
UTF-8
1,344
3
3
[]
no_license
#include <iostream> #include <algorithm> #include <vector> #define MAX_N 100000 #define MAX_Q 5000 using namespace std; typedef struct { int s; int e; int k; } Query; int inp(){ char c; int neg = 0; while(1){ c = getchar_unlocked(); if(c == '-'){ neg = 1; } else if (c >= '0' && c <= '9') { break...
C
UTF-8
2,356
3.421875
3
[ "MIT" ]
permissive
#include <stdio.h> #include <stdlib.h> #include <string.h> #define BUFFER_SIZE 1024 #define NUM_PAGES 472 typedef struct matrix { int[NUM_PAGES][NUM_PAGES] data; page_t[NUM_PAGES] pages; } matrix_t; typedef struct link { char* link; struct link* next; } link_t; typedef struct list { link_t *head; } ...
C++
UTF-8
2,014
2.59375
3
[]
no_license
/* YAP - Yet another PWA toolkit Copyright 2015, Technische Universitaet Muenchen, Authors: Daniel Greenwald, Johannes Rauch 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, eithe...
Markdown
UTF-8
646
2.984375
3
[]
no_license
# Numerical Problem Solving course - Spring 2017 - Metropolia UAS The aim of this course is to introduce the most common mathematical and numerical methods and tools that are used for solving engineering problems. * Week 1: Preparation and start up (18.1.2017) * Week 2: Approximation and round-off errors * Week 3...
Java
UTF-8
191
1.71875
2
[]
no_license
package behaviors; import athlete.AthleteTracker; import athlete.Race; import communicator.RaceTracker; public interface RaceEvents { public void raceExecute(Race race, String message); }
Java
UTF-8
391
2.046875
2
[ "BSD-2-Clause" ]
permissive
package com.leemon.wushiwan.enums; /** * @description: 推送消息类型 * @author: limeng * @create: 2019-12-12 22:59 **/ public enum PushPayloadType { NONE, TOAST,//在线显示一个toast,离线显示通知 NOTICE//完成任务或者从后台推送的通知,在线会在消息页面多一条消息(通过socialnotice触发),消息会显示角标,离线显示通知 }
Markdown
UTF-8
7,323
2.828125
3
[]
no_license
--- title: Shoen characterId: 12 occupation: "Calligrapher (書道家)" h2: title: "\"Secret Agent\" Shoen" --- {% capture BIO_H01 %} Transforms into a hakama-clad hero who carries a parallel weapon in the shape of a huge brush. Using his tail as an inkwell, the energy extracted from his body can be used as ink t...
Python
UTF-8
5,419
3.6875
4
[]
no_license
#!/usr/bin/env python # -*- coding: UTF-8 -*- import random import itertools import time cities = [] def plot_tour(tour): "Plot the cities as circles and the tour as lines between them." plot_lines(list(tour) + [tour[0]]) def plot_lines(points, style='bo-'): "Plot lines to connect a series of points."...
C++
UTF-8
1,370
2.640625
3
[]
no_license
//In The Name Of God #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef vector<string> vs; typedef pair<int, int> ii; typedef pair<int, ii> iii; typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<double> vd; typedef vector<vd> vvd; typedef vector<vv...
Java
UTF-8
3,898
2.234375
2
[]
no_license
package version2.prototype.summary; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import version2.prototype.Config; import version2.prototype.ErrorLog; import version2.prototype.Process; ...
C++
UTF-8
977
3.109375
3
[]
no_license
#ifndef ARRAY_MEMORY_MANAGER_HPP #define ARRAY_MEMORY_MANAGER_HPP #include "MemoryManager.hpp" template<class Status> class ArrayMemoryManager : public MemoryManager<Status> { protected: using MemoryManager<Status>::end; using MemoryManager<Status>::size; using MemoryManager<Status>::memory; public: ArrayMemoryMa...
C#
UTF-8
2,739
3.109375
3
[]
no_license
using System; using System.Collections.Specialized; namespace MetaBuilders.Irc.Messages { /// <summary> /// The KillMessage is used to cause a client-server connection to be closed by the server which has the actual connection. /// </summary> /// <remarks> /// KillMessage is used by serv...
Java
UTF-8
6,663
2.265625
2
[]
no_license
package com.medica.core.service.perform; import static org.hamcrest.CoreMatchers.equalTo; import static org.junit.Assert.assertThat; import java.util.ArrayList; import java.util.List; import org.junit.Test; import com.medica.core.domain.CoreDataPiece; import com.medica.core.domain.DiagnosisCoreData; import com.medi...
PHP
UTF-8
1,239
2.5625
3
[]
no_license
<?php namespace Svbk\WP\Log\Hook; class Post { public $id = 'post'; public static function setup() { add_action( 'wp_insert_post', array( __CLASS__, 'insert_post' ), 100, 3 ); } public static function edit_post( $post_ID, $post ) { do_action( 'log', 'info', 'User {user_id} Updated post: {post_id}/{post_...
C
UTF-8
714
3.03125
3
[]
no_license
#include <stdio.h> #define MAX 1000 void digit (int a) { putchar (a+(a<10?48:55)); } int n; void number (int a, int base) { n=1; while (base<a/n+1) n*=base; while (n) { digit (a/n); a%=n; n/=base; } } void puts (char *string) { while (*string) putchar (*string++); ...
Markdown
UTF-8
743
3
3
[ "MIT" ]
permissive
--- layout: post title: First blog post --- This feels like tradition so I'm going to just modify the existing text and not change the title. I want to write a blog because I think (\emph{think}) that I have _something_ to say that interests people. This _something _may have something to do with **baking**, or with pr...
Python
UTF-8
453
2.890625
3
[]
no_license
# -*- coding:utf-8 -*- # 判断'redata.txt'是否有数据损坏 import re with open('redata.txt', 'r') as f: for line_data in f: m = re.match( r'^(Mon|Tue|Wed|Thu|Fri|Sat|Sun)\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s{1,2}\d{1,2}\s\d{2}\:\d{2}\:\d{2}\s\w+', line_data) if m is no...
PHP
UTF-8
1,061
3.375
3
[]
no_license
<?php // Stores classes for use on the global scale. namespace ApexDevelopment\PHP; class ClassRegistry { // The instance of the class, if it exists. private static $instance = null; // Container for all classes. private $objs = []; // Empty constructor so class can only be instantiated once. ...
Swift
UTF-8
1,223
2.625
3
[]
no_license
// // GoalServices.swift // Adidas // // Created by BOLD on 09/01/2020. // Copyright © 2020 BOLD. All rights reserved. // import RealmSwift class GoalServices { class func getGoalsList(successBlock:@escaping (_ result: [GoalViewModel]) -> Void, errorBlock:@escaping (_ error: Error) -> Void){ ...
Java
ISO-8859-1
3,648
2.46875
2
[ "MIT" ]
permissive
package com.ademarazn.bdescola; import android.app.Activity; import android.app.AlertDialog; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.os.Bundle; import android.support.v4.widget.SimpleCursorAdapter; import android.view.View; imp...
Swift
UTF-8
1,623
2.984375
3
[]
no_license
// // ViewController.swift // MakeSchoolNotes // // Created by Martin Walsh on 29/05/2015. // Copyright (c) 2015 MakeSchool. All rights reserved. // import UIKit import RealmSwift class NotesViewController: UIViewController { @IBOutlet weak var tableView: UITableView! var notes: Results<Note>! { ...
Java
UTF-8
896
2.390625
2
[]
no_license
package com.example.forager.Misc; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.widget.Toast; import com.example.forager.Activities.SettingsActivity; public class CustomReceiver extends BroadcastReceiver { @Override public void onRecei...
Java
UTF-8
683
3.734375
4
[]
no_license
package Chapter2_1_ElementarySorts; /* * Deck sort. Explain how you would put a deck of cards in orders by suit(in the order spades, hearts, clubs,diamonds) * and by rank within each suit, with the restriction that the cards must be laid out face down in a row, and the only * allowed operations are to check the v...
Java
UTF-8
346
3.4375
3
[]
no_license
package creational.factory.abstractfactory.autos; public abstract class BMWBase implements Auto { @Override public void turnOn() { System.out.println(name() + " is on and running."); } @Override public void turnOff() { System.out.println(name() + " is off."); } protected ...
Java
UTF-8
20,401
1.859375
2
[]
no_license
/* This file is part of Brewzor. Copyright (C) 2010 James Whiddon Brewzor 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 3 of the License, or (at your option) any ...
C++
UTF-8
7,890
2.859375
3
[]
no_license
// // projectRunner.cpp // os // // Created by Zeke on 5/12/18. // Copyright © 2018 Zeke. All rights reserved. // #include "projectRunner.hpp" #include "SystemConfig.hpp" #include "Job.hpp" #include "HoldQ2.hpp" #include "HoldQ1.hpp" #include "Process.hpp" #include <string> #include <iostream> #include <fstream> #...
Markdown
UTF-8
679
2.53125
3
[]
no_license
# KeyStream This is most likely a terrible idea, but here goes. An agent application will run on a computer and register back with an eureka server. This agent will enable remote users to simulate mouse movement, mouse clicks, mouse wheel and keystrokes. Remote users will be able to access a listing of all available...
Markdown
UTF-8
3,781
2.765625
3
[]
no_license
# Solid application data discovery (Draft) The following describes application data discovery in the Solid framework using HTTP link following aka "follow your nose". This should not be confused with [application preferences/configuration discovery] (https://github.com/solid/solid/tree/master/proposals/app-discovery...
C#
UTF-8
3,276
2.625
3
[]
no_license
// Credits to code by GamesplusJames https://www.youtube.com/user/gamesplusjames using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class GameManager : MonoBehaviour { public GameObject player1; public GameObject player2; public GameObject p1Wins; ...
Java
UTF-8
14,375
2.359375
2
[]
no_license
/** * $RCSfile$ * $Revision$ * $Date$ * * Copyright 2003-2007 Jive Software. * * All rights reserved. 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.apa...
Markdown
UTF-8
3,249
2.65625
3
[]
no_license
--- description: "Recipe of Favorite Chicken Egg Roll-HCG" title: "Recipe of Favorite Chicken Egg Roll-HCG" slug: 54-recipe-of-favorite-chicken-egg-roll-hcg date: 2021-07-20T14:32:26.816Z image: //assets-global.cpcdn.com/assets/blank-4e0bea6785e03f5e602ec562f230caae08da540cada707380b4fe1bbebba43da.png thumbnail: //asse...
Java
UTF-8
1,073
2.4375
2
[]
no_license
package com.gps.chambee.ui.adaptadores; import android.content.Context; import com.gps.chambee.ui.fragmentos.InicioFragment; import androidx.annotation.NonNull; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; import androidx.fragment.app.FragmentPagerAdapter; public class Explor...
Java
UTF-8
3,567
1.953125
2
[]
no_license
package com.saas.adapter.code.business; import java.sql.Timestamp; import java.util.Date; import java.util.HashMap; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpEntity; import org.sprin...
C#
UTF-8
13,005
2.78125
3
[ "Apache-2.0" ]
permissive
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace FImageEditor { public partial class FaceViewControl : UserControl { // モデル ...
C++
UTF-8
478
3.046875
3
[]
no_license
#include <iostream> #include <vector> #include <string> #include <stack> using namespace std; //string getStr(string s) //{ // if (s.size() == 0) // { // return ""; // } // string ans; // stack<char> st1; // for (int i = 0;i < s.size();i++) // { // if (s[i] == '[') // { // st1.push(']'); // } // else if (s[i] ==...
Java
UTF-8
2,412
2.0625
2
[]
no_license
package com.regismutangana.lostandfound.Found; import android.content.Context; import android.support.annotation.Nullable; import android.support.design.widget.TabLayout; import android.support.v4.view.ViewPager; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import...
Java
UTF-8
23,252
2.125
2
[]
no_license
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ import java.awt.Color; import java.util.*; import java.io.File; import javax.swing.JFileChooser; import javax.swing.JList; import javax.swing.DefaultListModel; import javax.swing.ListSelectionModel; /** * * @author Jon...
Shell
UTF-8
766
3.03125
3
[]
no_license
#!/bin/bash set -e # The CentOS 7 lab machines apear to have mvn installed, but snowy does not seem to # a prebuilt maven is available at /home/fe14/as14622/linux/dist/maven/bin/mvn MAVEN=mvn if ! type "$MAVEN" &> /dev/null; then MAVEN=/home/fe14/as14622/linux/dist/maven/bin/mvn echo mvn not found, trying to use...
Java
UTF-8
6,165
1.859375
2
[]
no_license
package com.liferay.test.web.util; import com.google.common.collect.Lists; import com.liferay.portal.kernel.dao.search.DisplayTerms; import com.liferay.portal.kernel.dao.search.SearchContainer; import com.liferay.portal.kernel.dao.search.SearchContainerResults; import com.liferay.portal.kernel.log.Log; import com.life...
C++
GB18030
3,653
2.765625
3
[]
no_license
#pragma once #include <windows.h> #include <vector> #include <iostream> #include <algorithm> #include <GL/glew.h> #include <GL/freeglut.h> #include <cuda_runtime.h> #include <cuda_gl_interop.h> #include "Common.h" /*check error code of cudaMalloc and print out if needed*/ #define safe_cuda(CODE)\ {\ cudaError_t...
Shell
UTF-8
355
3.140625
3
[]
no_license
#!/bin/sh # Jake Yeung # run.goterms.all.sh # # 2016-11-06 indir="/home/yeung/projects/tissue-specificity/scripts/gene_enrichment_analysis" for module in kidneyWT liverKO liverWT; do fname=`echo "go_terms_analysis_different_phases."$module".all.R"` inf=$indir/$fname [[ ! -e $inf ]] && echo "$inf not found, exitin...
Markdown
UTF-8
2,749
2.9375
3
[]
no_license
---?color=var(--color-light-gray-2) @title[Manifest files] ### Managing Pods --- Pods are the smallest deployable units of computing that can be created and managed in Kubernetes. --- @snap[north] #### Create a new namespace to keep everything neat @snapend ```sh # We will use this namespace during this lesson ...
C#
UTF-8
702
2.8125
3
[ "LicenseRef-scancode-warranty-disclaimer", "ISC" ]
permissive
using System; using System.IO; namespace MSIRGB.ScriptService { class Log { private StreamWriter _log; public Log(string logPath) { _log = File.CreateText(logPath); // This should just crash if it fails _log.AutoFlush = true; } public void Outp...
Markdown
UTF-8
746
2.828125
3
[]
no_license
# SEEKr ## Setting up Clone the repository: ```shell $ git clone git@github.com:shravanjeevan/SEEKr.git ``` Navigate into the relevant directory: ```shell $ cd SEEKr ``` Create and activate new Python virtual environment (optional): ```shell $ virtualenv venv $ source venv/bin/activate ``` Install dependencies: ```she...
Markdown
UTF-8
1,733
2.640625
3
[]
no_license
## NC News - Northcoders front end project This is the front end for NC News which is a social news aggregation, web content rating, and discussion website. Northcoders News has articles which are divided into topics. Users can access and submit articles and each article has user curated ratings and can be up or down...
Markdown
UTF-8
1,380
3.25
3
[ "MIT" ]
permissive
# 단지번호붙이기 Step03. [단지번호붙이기](https://www.acmicpc.net/problem/2667) --- ## 문제 <그림 1>과 같이 정사각형 모양의 지도가 있다. 1은 집이 있는 곳을, 0은 집이 없는 곳을 나타낸다. 철수는 이 지도를 가지고 연결된 집의 모임인 단지를 정의하고, 단지에 번호를 붙이려 한다. 여기서 연결되었다는 것은 어떤 집이 좌우, 혹은 아래위로 다른 집이 있는 경우를 말한다. 대각선상에 집이 있는 경우는 연결된 것이 아니다. <그림 2>는 <그림 1>을 단지별로 번호를 붙인 것이다. 지도를 입력하여 단지수를 출력하고,...
C++
UTF-8
1,533
2.578125
3
[]
no_license
#ifndef ABONNEMENT_H #define ABONNEMENT_H #include <QWidget> namespace Ui { class Abonnement; } class Abonnement : public QWidget { Q_OBJECT public: int getID_Abonnement(); void setID_Abonnement(int id_abonnement); int getDuree(); void setDuree(int duree); int getID_Abonne(); void setID...
Java
UTF-8
1,657
4.09375
4
[]
no_license
/* * testarray is a driver program testing all the methods constructed in Arraylist.java */ public class testarray { public static void main(String[] args) { //Method 1 Arraylist() Arraylist a = new Arraylist(); System.out.println("Default Arraylist Constructed"); //Method 2 Arraylist(n) Arraylist b =...