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,165
2.3125
2
[ "Apache-2.0" ]
permissive
package drakonli.jcomponents.file; import drakonli.jcomponents.file.impl.BufferedCharsetLineEndingIncludedFileReaderFactory; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; import org.mockito.internal.matchers.apachecommons.ReflectionEquals; import java.io.*; import java.nio.charset.Charset; ...
Java
UTF-8
367
1.710938
2
[]
no_license
package edu.wpi.cs3733.d19.teamO; import com.google.common.eventbus.EventBus; import com.google.inject.AbstractModule; public class ProjectModule extends AbstractModule { @Override protected void configure() { bind(EventBus.class).asEagerSingleton(); bind(AppPreferences.class).asEagerSingleton(); bin...
Markdown
UTF-8
1,190
2.9375
3
[]
no_license
# spring-boot-camel This application is developed on Spring Boot Framework. It receives address parameter in HTTP GET request via a REST interface, forwards it to an integration layer written on Apache Camel. The integration layer then sends this request to Google Geocoding API as an HTTP request, receives the respon...
Python
UTF-8
253
3.765625
4
[]
no_license
n1 = float(input('Diga quantos KM tem a sua viagem: ')) if n1 <= 200: print('O preço da sua passagem ficara R${}' .format(n1 * 0.50)) else: print('O preço da sua passagem ficara R${}' .format(n1 * 0.45)) print('Tenha uma boa viagem!! ;D')
C#
UTF-8
6,039
2.703125
3
[]
no_license
using Oracle.ManagedDataAccess.Client; using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Linq; using System.Reflection; using System.Web; namespace MultiBank.DAL { public class OracleHelper { protected OracleConnection Connection; private...
C++
UTF-8
624
2.734375
3
[]
no_license
#ifndef RAMMODULE_HPP #define RAMMODULE_HPP #include "Info.hpp" #include "Item.hpp" class Info; class RamModule: public Info { public: RamModule(std::string title); ~RamModule(void); /** * Methods */ void refresh(void); void addItem(Item...
Python
UTF-8
1,261
2.609375
3
[]
no_license
import os, sys parent_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) sys.path.append(parent_dir) sys.path.append(os.path.dirname(parent_dir)) from helpers import train_and_evaluate, display_predictions, display_classification_evaluation from svm_classification_model import SupportVectorMachinesBa...
C++
UTF-8
1,824
2.703125
3
[]
no_license
//pins int v24a = 2; int v24b = 3; int v24c = 4; int v24s = 5; int v5a = 8; int v5b = 9; int v5c = 10; int v5d = 11; int i; void setup() { pinMode(v24a, OUTPUT); pinMode(v24b, OUTPUT); pinMode(v24c, OUTPUT); pinMode(v24s, OUTPUT); pinMode(v5a, OUTPUT); pinMode(v5b, OUTPUT); pinMode(v5c, OUTPUT); pinMode...
C#
UTF-8
2,259
3.515625
4
[]
no_license
using System; namespace OtherMembers { // It is OK to define the following types: //internal sealed class AType { } //internal sealed class AType<T> { } //internal sealed class AType<T1, T2> { } //// Error: conflicts with AType<T> that has no constraints //internal sealed class AType<T> where...
Markdown
UTF-8
2,649
2.703125
3
[]
no_license
# clip-preprocess This repository holds scripts for pre-processing of clip data. This is not in a usable state for others! This repository is not intended to be useful to others at the moment, as file paths are hardcoded, it is not generalized, ect. First, the fastq files were split by barcode: $ python src/split_...
Markdown
UTF-8
439
2.765625
3
[]
no_license
What happens to the layout when you resize the screen to less than 550 px. How do you think that works? The webpage's layout rearrages itself so that all the elements are in the middle of the page. This is because Skeleton media queries are mobile first, so any screen smaller than 550px makes the page adopt the layout...
PHP
UTF-8
1,170
2.625
3
[ "MIT" ]
permissive
<?php /** * This file is part of CaptainHook * * (c) Sebastian Feldmann <sf@sebastian-feldmann.info> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace CaptainHook\App; use SebastianFeldmann\Git\Operator\Info; use Sebasti...
Java
UTF-8
678
2.234375
2
[]
no_license
/* * License information at https://github.com/Caltech-IPAC/firefly/blob/master/License.txt */ package edu.caltech.ipac.visualize.plot; import java.util.EventListener; /** * A listener that is called when a PlotView status has a changed * @author Trey Roby */ public interface PlotViewStatusListener extends Event...
PHP
UTF-8
882
2.734375
3
[]
no_license
<?php /** * Author: avsudnichnikov (alsdew@ya.ru) * Date: 17.04.2019 * Time: 18:21 */ class DataRecordModel { private $data; private $guid; public function __construct() { $this->data = new JsonObjDataModel(strtolower(static::class)); } public function myself() { $this...
JavaScript
UTF-8
1,414
2.5625
3
[]
no_license
const jwt = require("jsonwebtoken"); const store = require("./store"); const crypto = require("crypto"); const getUser = (data) => { return new Promise(async (resolve, reject) => { const loginDB = await store.singIn(data); if (!loginDB.length > 0) { reject({message: "Ingrese usuario y contraseña válido...
Swift
UTF-8
2,839
2.828125
3
[]
no_license
// // Singleton.swift // Template // // Created by Pulkit Rohilla on 21/06/17. // Copyright © 2017 PulkitRohilla. All rights reserved. // import UIKit class Singleton : NSObject, NSCoding{ static let shared = Singleton() var userName : String = "" var endpointARN : String = "" var devicePinCode ...
C#
UTF-8
4,351
2.640625
3
[]
no_license
using Core.Abstract; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace Core.Concrete { public class EFBaseRepository<TEntity> : IRepository<TEntity> where TEnti...
C#
UTF-8
651
3.46875
3
[]
no_license
using System; using System.Text; using System.Threading.Tasks; namespace IfStatement2 { class Program { static void Main(string[] args) { Console.WriteLine(GetMax(10,20,30)); } static int GetMax(int num1,int num2,int num3) { int re...
C++
UTF-8
3,607
3.6875
4
[]
no_license
#include <iostream> #include <vector> int main(int argc, char const *argv[]) { char choix(0); std::vector<int> list; do { std::cout << "\n---------------------------" << std::endl; std::cout << "P - Print numbers (Afficher)" << std::endl; std::cout << "A - Ajouter un ...
Java
UTF-8
260
2.015625
2
[]
no_license
package com.labus.transportation.hash; import java.io.UnsupportedEncodingException; import java.security.NoSuchAlgorithmException; public interface Hash { public String getHash(String str) throws NoSuchAlgorithmException, UnsupportedEncodingException; }
Markdown
UTF-8
1,900
3.75
4
[]
no_license
# Operating Systems: Three Easy Pieces > Operating Systems: Three Easy Pieces > > Remzi H. Arpaci-Dusseau and Andrea C. Arpaci-Dusseau > > Arpaci-Dusseau Books > > March, 2015 (Version 0.90) Read online: http://pages.cs.wisc.edu/~remzi/OSTEP/ ## Preface The three easy pieces in the title refer to **virtualizatio...
Java
UTF-8
1,083
2.703125
3
[]
no_license
package elf_crawler.crawler; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import com.google.gson.stream.JsonReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.lang.reflect.Type; import java.util.HashMap; import java.util.LinkedList; import java.util.List; im...
PHP
UTF-8
3,542
3.4375
3
[]
no_license
<?php /** * Developed by : Muhammad Elgendi * Date : 14/12/2018 * * || Notes || * This class implemented to comply Fluent interface pattern * You can build the tree of Shannon Fano from a message or predefined table */ // build code book from a predefined table (letters with frequencies) // $table =...
TypeScript
UTF-8
2,921
2.5625
3
[ "Apache-2.0" ]
permissive
import { IMPORTS } from "../../internalImports"; import { packageNameToVariable } from "../../packageNameToVariable"; import { staticOrProvider } from "./staticOrProvider"; import { urlParser } from "./standardConfigurationProperties"; import { ConfigurationPropertyDefinition, ConfigurationDefinition } from "@aws-s...
PHP
UTF-8
1,769
2.65625
3
[]
no_license
<?php namespace App\Services; use App\Models\Invoice; use Illuminate\Http\Client\Response; use Illuminate\Support\Facades\Http; use Illuminate\Http\RedirectResponse; class PaymentGateway { public Invoice $invoice; /** * Constructor * * @param \App\Models\Invoice $invoice */ public fu...
Markdown
UTF-8
8,063
3.0625
3
[]
no_license
# CS253 HW3: Options!                 ## Description                 For this assignment, you will improve upon your previous work, adding command-line options, and changing a few things.                  ## Arguments                 The first argument is no longer a keyword file. Instead, the first command-line argu...
Markdown
UTF-8
2,052
3.859375
4
[]
no_license
# 如何在 Java 中创建文件 > 原文: [https://beginnersbook.com/2014/01/how-to-create-a-file-in-java/](https://beginnersbook.com/2014/01/how-to-create-a-file-in-java/) 在本教程中,我们将了解如何使用`createNewFile()`方法在 Java 中创建文件。如果文件在指定位置不存在并且返回 true,则此方法创建一个空文件。如果文件已存在,则此方法返回 false。它抛出: [`IOException`](https://docs.oracle.com/javase/7/docs/ap...
C
UTF-8
48,768
2.703125
3
[]
no_license
#include <stdlib.h> #include <stdio.h> #include <assert.h> #include <string.h> #include "Game.h" #define DEFAULT_DISCIPLINES { STUDENT_BQN, STUDENT_MMONEY, STUDENT_MJ, \ STUDENT_MMONEY, STUDENT_MJ, STUDENT_BPS, STUDENT_MTV, \ STUDENT_MTV, STUDENT_BPS,STUDENT_MTV, STUDENT_BQN, \ ...
Ruby
UTF-8
425
3.96875
4
[]
no_license
puts "How many pizzas would you like?" pizza = gets.chomp!.to_i while pizza == 0 puts "quit messing around here, give me a number!" pizza = gets.chomp!.to_i end puts "How many toppings on each pizza would you like?" toppings = gets.chomp!.to_i while toppings == 0 puts "quit messing around here, give me a numbe...
Swift
UTF-8
3,215
2.75
3
[]
no_license
// // TableViewCell.swift // Peretz // // Created by Асельдер on 24.08.2020. // Copyright © 2020 Асельдер. All rights reserved. // import UIKit import SDWebImage //MARK: - Protocol delegate protocol BasketDelegate { func getPrice(dishItem: DishModel) -> Int func minusButtonAction(_ sender: Any) func p...
Java
UTF-8
1,932
2.796875
3
[ "Apache-2.0" ]
permissive
package com.main.plugins.date.helpers; import com.main.model.dto.MealDayDto; import com.main.plugins.date.Day; import com.main.plugins.date.Week; import org.springframework.stereotype.Component; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.List; /** * Cr...
C
UTF-8
606
2.640625
3
[]
no_license
#include <stdlib.h> #include "stm32f4xx.h" #include "board.h" #include "FreeRTOS.h" #include "task.h" TaskHandle_t xTaskLedHandle1 = NULL; void vTask_Led_handler_1(void *params); int main(void) { /* Hardware board init */ board_hardware_init(); /* Create task */ xTaskCreate(vTask_Led_handler_1, "Tas...
PHP
UTF-8
9,802
2.90625
3
[]
no_license
<?php function statsPrintTableSingle($stationID, $type){ include "dbConnect.php"; //query to get Stats $query = "SELECT * FROM stats WHERE gasStationID = ? AND MONTH(timestamp) = ? AND DAY(timestamp) = ? AND YEAR(timestamp) = ? ORDER BY timestamp ASC;"; $query1 = "SELECT MIN($type) AS MINI FROM stats WHERE gasStati...
Java
UTF-8
4,758
2.5
2
[]
no_license
package rest; import retrofit.RestAdapter; import retrofit.client.Response; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.HashMap; import java.util.Map; /** * Created by vasiliy on 12.12.15. */ //https://en.wikipedia.org/w/api.php?action=query&prop=p...
C#
UTF-8
3,674
2.546875
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using DAL; using OnlineEventBooking.ViewModel; using System.IO; using System.Data.Entity; namespace OnlineEventBooking.Controllers { public class VenuedataController : Controller { // GET: Venued...
Java
UTF-8
4,528
2.203125
2
[ "CC0-1.0" ]
permissive
package controllers; import akka.http.scaladsl.Http$; import akka.stream.impl.QueueSource; import com.fasterxml.jackson.databind.JsonNode; import context.NormalExecutionContext; import play.libs.Json; import play.libs.concurrent.HttpExecution; import play.mvc.Http; import play.mvc.Result; import services.QandAService;...
Java
UTF-8
26,035
3.34375
3
[]
no_license
package algorithms.maze3D; import algorithms.search.AState; import algorithms.search.ISearchable; import java.util.ArrayList; public class SearchableMaze3D implements ISearchable { private Maze3D maze; private Maze3DState startState; private Maze3DState goalState; private boolean [][][] visit; //visi...
JavaScript
UTF-8
675
2.625
3
[]
no_license
function showRestaurants() { var latestitems = document.getElementById("latest"); var dbRef = firebase.database().ref().child("Restaurants").child('1').child('Items'); window.alert('lol'); dbRef.on('value', function(datasnapshot) { datasnapshot.forEach(function(childSnapshot) { var childData = chil...
Java
UTF-8
283
1.90625
2
[ "Apache-2.0" ]
permissive
package org.apache.thriftstudy.transport; import java.nio.channels.Selector; /** * @author Yaochao * @version 1.0 * @date 2017/8/17 */ public abstract class TNonblockingServerTransport extends TServerTransport { public abstract void registerSelector(Selector selector); }
Java
MacCentralEurope
2,294
1.898438
2
[]
no_license
package org.example.asteroides; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.app.Service; import android.content.Intent; import android.media.MediaPlayer; import android.net.Uri; import android.os.IBinder; import android.provider.MediaStore.A...
Markdown
UTF-8
3,350
2.8125
3
[]
no_license
###### Capital in the 14th century # New research suggests that secular stagnation is centuries old ##### Central bankers’ biggest problem may be ancient—and getting worse ![image](images/20200111_FND001_0.jpg) > Jan 9th 2020 HOW LOW can interest rates go? It is a question that worries central bankers everywhe...
TypeScript
UTF-8
229
2.78125
3
[]
no_license
import genId from "../utils/genId"; export default class Todo { id!: number; text!: string; completed!: boolean; constructor(text: string) { this.id = genId(); this.text = text; this.completed = false; } }
Markdown
UTF-8
2,148
4.21875
4
[]
no_license
# Variables / Expressions / Statements ## Q1.a ```python number1 = 13 number2 = 5 # Printing numbers in separate lines print(number1) print(number2) # Printing numbers in a single line print(number1, number2) ``` ## Q1.b ```python number1 = int(input()) number2 = int(input()) print(number1)...
C#
UTF-8
1,147
2.921875
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using DUIP.UI.Graphics; namespace DUIP.UI { /// <summary> /// Content that displays a text block to allow the user to create objects based on written code. /// </summary> public class EditorContent : Content { public Edito...
C++
UTF-8
878
3.4375
3
[]
no_license
#include <iostream> #include <iomanip> #include <string> using namespace std; #include "View.h" void View::mainMenu(int& selection) { int numOptions = 1; selection = -1; cout << endl; cout << "(1) Add student" << endl; cout << "(0) Exit" << endl; while (selection < 0 || selection > numOptions) { co...
C++
UTF-8
713
3.34375
3
[]
no_license
// https://www.geeksforgeeks.org/largest-rectangle-under-histogram/ int Solution::largestRectangleArea(vector<int> &A) { stack<int> st; int maxArea = -1, i = 0; while(i < A.size()) { if(st.empty() || A[st.top()] <= A[i]) st.push(i++); else { int currMax = st.top...
Python
UTF-8
1,764
2.515625
3
[]
no_license
#You must have Chocolatey installed here for this to work ##Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) ...
SQL
UTF-8
312
2.84375
3
[]
no_license
CREATE TABLE IF NOT EXISTS `cps_admin_user` ( `id` SMALLINT NOT NULL AUTO_INCREMENT, `email` VARCHAR(50) NOT NULL, `status` TINYINT NOT NULL DEFAULT 0, `last_login_time` INT NOT NULL, PRIMARY KEY (`id`) ); ALTER TABLE cps_admin_user ADD UNIQUE (email);
Markdown
UTF-8
29,225
2.96875
3
[ "MIT" ]
permissive
# Beginner tutorial I'm using the data from the [dplyr tutorial](https://cran.r-project.org/web/packages/dplyr/vignettes/dplyr.html). The data is in the test folder of this package. I created it with the following R code: ```R library(nycflights13) setwd("C:/Users/hp/.julia/dev/LightQuery/test") write.csv(airports, ...
PHP
UTF-8
613
2.8125
3
[ "MIT" ]
permissive
<?php namespace nyx\notify\transports\slack\interfaces; // Internal dependencies use nyx\notify\transports\slack; /** * Slackable Interface * * Represents an object that can be cast to a Slack Message. * * @package Nyx\Notify * @version 0.1.0 * @author Michal Chojnacki <m.chojnacki@muyo.io> * @co...
C#
UTF-8
3,465
2.890625
3
[ "MIT" ]
permissive
using System.Drawing; namespace Ada.Framework.UI.WinForms.Diagram.Entities { public class Triangulo : Forma { public override Point StartPoint { get { Point punto = new Point(); punto.X = PuntoA.X; punto.Y = Pu...
Markdown
UTF-8
4,946
2.640625
3
[]
no_license
贷款方:中国___银行___分(支)行(或信用社); 法定代表人: _______职务:________ 地址:_______邮码:_______电话:________ 借款方:_______________(单位或个人); 法定代表人:_______________职务:____________ 地址:___________邮码:___________电话:____________ 保证方:________________ 法定代表人:___________职务:________ 地址:___________邮码:___电话:____ 借款方为进行生产(或经营活动),向贷款方申请借款,...
JavaScript
UTF-8
3,079
2.84375
3
[ "Unlicense" ]
permissive
const types = { AUTO_ID: { name: "AUTO_ID", class: "INTEGER", typeCheck: val => Number.isInteger(val), decorators: [ "PRIMARY KEY", "AUTOINCREMENT" ], }, UTC_DATE: { name: "UTC_DATE", class: "INTEGER", typeCheck: val =...
Ruby
UTF-8
1,277
2.59375
3
[]
no_license
# -*- coding: utf-8 -*- require './zip_cloud' RSpec.describe ZipCloud do describe '#get' do subject {ZipCloud.get zipcode: zipcode} context 'address is not found' do let(:zipcode){'5368421'} res = {} it {is_expected.to match res} end context 'with argument 7830060' do...
Java
UTF-8
3,285
2.4375
2
[]
no_license
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.sanjose.model; import java.io.Serializable; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persi...
Markdown
UTF-8
8,623
3.640625
4
[]
no_license
# Lists and pattern matching ## Lists informally Составные типы данных (compound data type). Список — упорядоченная последовательность элементов (0 или больше). Могут содержать другие списки. Списки придумали в Лиспе. Лист — рекурсивный тип данных, определяется в терминах самого себя. Лист — это пустой лист (nil, n...
Java
UTF-8
4,913
1.90625
2
[]
no_license
package com.oax.controller; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.oax.common.AccessLimit; import com.oax.common.AssertHelper; import com.oax.common.ResultResponse; import com.oax.context.HttpContext; import com.oax.entity.front.vo.SnatchCoinVo; import com.oax.entity.front.vo.Sna...
JavaScript
UTF-8
1,187
3.578125
4
[ "MIT" ]
permissive
/** * Created by Vladi on 23-Oct-16. */ function reducers(input) { console.log(`Sum = ${input.reduce((a,b) => a+b)}`) } function commands(input) { let commandProcessor = (function() { let string ='' return { append: function (str) { string+=str }, ...
Java
UTF-8
3,170
3.078125
3
[]
no_license
package tda; public class Lista<T> { private Nodo<T> primerNodo; private Nodo<T> ultimoNodo; private int cantidadElementos; public Lista() { this.primerNodo = this.ultimoNodo = null; this.cantidadElementos = 0; } protected boolean pushBack(T obj) { Nodo<T> nuevoNodo = new Nodo<T>(obj, null); if (this.c...
Python
UTF-8
2,638
2.703125
3
[ "Apache-2.0" ]
permissive
# Copyright (c) 2021. Alexander Hermes import logging import uuid from collections import deque from Changeset import Changeset from Release import Release logger = logging.getLogger(__name__) class PQScheduler: """ Scheduler with a single queue but where queued requests can progress in parallel with t...
Markdown
UTF-8
2,151
3.21875
3
[ "Apache-2.0" ]
permissive
--- id: api-react-components-results-per-page slug: /search-ui/api/react/components/results-per-page title: ResultsPerPage date: 2022-02-27 tags: ["demo"] --- Shows a dropdown for selecting the number of results to show per page. Uses [20, 40, 60] as default options. You can use `options` prop to pass custom options....
Java
UTF-8
1,317
2.5625
3
[]
no_license
package org.springproject.db; import java.io.Serializable; import java.util.ArrayList; import javax.persistence.Entity; import javax.persistence.Id; @Entity public class Posts implements Serializable{ @Id private int id; private String name; private int price; private int vehicle_fk; private String descrptio...
PHP
UTF-8
754
2.59375
3
[]
no_license
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { protected $table = 'usuario'; use Notifiable; /** * The attributes that are mass assignable. * * @var array */ protected $fil...
Java
UTF-8
885
2.3125
2
[]
no_license
package uk.co.datadisk.ddflix.entities.user; import lombok.AllArgsConstructor; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import uk.co.datadisk.ddflix.entities.AbstractDomainClass; import javax.persistence.*; import javax.validation.constraints.NotNull; import java.util.Hash...
Markdown
UTF-8
2,834
3.3125
3
[]
no_license
# jsPsych Template jsPsych is a framework for web-based experiments that is particularly useful for vision science. The following jsPsych template is built for the DML and also includes a framework for a web server for testing purposes, separate source and public trees, and standard html for an intro and outro. # How...
Java
UTF-8
7,429
2.125
2
[]
no_license
package com.hp.cc.util; import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.FileInputStream; import java.io.InputStreamReader; import java.nio.file.Files; import java.nio.file.Paths; import java.security.KeyFactory; import java.security.KeyManagementException; import java.secur...
JavaScript
UTF-8
540
2.640625
3
[]
no_license
var getmac = require('getmac'); var fs = require('fs'); function getMacAddr(callback) { var getmacCallback = function (err, macAddr) { if (err) { errlog.error(err); setTimeout(() => { getmac.getMac(getmacCallback); },5000); return; } if(macAddr){ // 소문자로 변환 // '-'를 ':'로 변환 ...
C#
UTF-8
7,717
2.984375
3
[]
no_license
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; /*Name : Gursharan Singh *Student Id : 300931676 * Date : 10th August,2017 *...
Markdown
UTF-8
1,374
2.546875
3
[ "BSD-3-Clause" ]
permissive
<img src="https://atsign.dev/assets/img/@developersmall.png?sanitize=true"> ### Now for some internet optimism. # at_contacts_flutter A flutter plugin project for CRUD operations on contacts. ## Getting Started This plugin can be added to the project as git dependency in pubspec.yaml ``` dependencies: at_contac...
C
UTF-8
2,678
3.015625
3
[]
no_license
#include "pokemon.h" #include <stdio.h> #include <string.h> void loadPokemonList(char* pokemon_list[], unsigned int pokemon_type[]) { FILE *pokemon_list_p; if(( pokemon_list_p=fopen("pokemon_list", "r") )==NULL) { printf("pokemon_list 파일이 없습니다.\n"); exit(1); } fscanf(pokemon_list_p, "%*[^\n]\n"); unsigned int...
Python
UTF-8
2,406
2.734375
3
[ "BSD-2-Clause" ]
permissive
""" marker dialog """ import tkinter as tk from tkinter import ttk from typing import TYPE_CHECKING from core.gui.dialogs.colorpicker import ColorPickerDialog from core.gui.dialogs.dialog import Dialog from core.gui.graph import tags if TYPE_CHECKING: from core.gui.app import Application MARKER_THICKNESS = [3, ...
JavaScript
UTF-8
2,376
2.796875
3
[]
no_license
//Require Express and Use it. var express = require('express'); var app = express(); //Require BodyParser. var bodyParser = require("body-parser"); //Require Morgan to show logger. var logger = require("morgan"); //Require Mongoose to build MongoDB schema. var mongoose = require("mongoose"); //Require My Model. var New...
C
UTF-8
2,798
4.15625
4
[]
no_license
#include <stdlib.h> #include <stdbool.h> #include <stdio.h> void print_array(int size, int array[size]); bool check_arrays_equal(int size, int array_a[size], int array_b[size]); void swap(int array[], int i, int j); void quick_sort(int array[], int left, int right); int partition(int array[], int left, int right); in...
Java
UTF-8
1,534
3.3125
3
[]
no_license
package com.JavaCode.nd.nd2.nd2_tankas; public class Tank { private int positionA; private int positionB; private int shotsFired; private String face; public Tank(int positionA, int positionB, int shotsFired, String face) { this.positionA = positionA; this.positionB = positionB; ...
C++
SHIFT_JIS
2,962
2.8125
3
[]
no_license
/* wb_t@C */ #include "OptionWaitOwnCrashState.h" #include "BaseOption.h" #include "BasePlayer.h" //------------------------------------------------------------- //! //! @brief RlNgEH[Y //! @brief RlNgEH[Y֘A̖O //! //------------------------------------------------------------- namespace ConnectWars { /***********...
Java
UTF-8
11,677
1.765625
2
[]
no_license
package com.arcsoft.arcfacedemo.activity; import android.content.Context; import android.media.AudioManager; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import com.arcsoft.arcfacedemo.R; import com.arcsoft.arcfacedemo.faceserver.SignalingClient; import com.arcs...
C++
UTF-8
1,775
2.9375
3
[]
no_license
#include<stdio.h> #include<string.h> char alp[]="abcdefghijklmnopqrstuvwxyz"; char str[200]; char ch[50]; int value[50],total[50]; int space() { int i,k=0; for(i=0;str[i];i++) if(str[i]!=' ') str[k++]=str[i]; str[k]=NULL; return 0; } int main() { int i,c,j,k,sum,tc; char dup[150]; while(...
Markdown
UTF-8
878
2.875
3
[]
no_license
# HM-5 Homework #5 - Work Day Scheduler ## Use moment().format(); for time and date * display time and date in the header ## Build Timeblocks ### Each timeblock needs the hour, an input for memos, and a save button ### Memos need to save and be retrieved upon opening the scheduler * memo data stored to and pulled from...
Python
UTF-8
774
3.65625
4
[]
no_license
class Canvas: def __init__(self, width,height): self.width = width self.height = height self.screen = [['' for i in range(height)] for j in range(width)] self.clearCanvas() def clearCanvas(self): for y in range (0,self.height): for x in range (0,se...
Shell
UTF-8
151
2.625
3
[]
no_license
#!/usr/bin/env zsh if [ "$INSIDE_EMACS" = 'vterm' ]; then . "$HOME/.config/zsh/vterm.zsh" find_file "$@" else emacsclient -t -nw "$@" fi
C#
UTF-8
1,285
2.53125
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.ComponentModel.DataAnnotations; namespace PNI.Entities { public class Unit { public Unit() { BuyersID = 0; UnitPurchased = ""; LoanAmount = 0; ...
C++
UTF-8
7,468
2.578125
3
[ "MIT" ]
permissive
#pragma once #ifdef _WIN32 #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif #include <winsock2.h> #include <ws2tcpip.h> #pragma comment(lib, "ws2_32.lib") #else #include <arpa/inet.h> #include <netinet/in.h> #include <sys/socket.h> #include <unistd.h> #endif #ifndef INPORT_ANY #define INPORT_ANY 0 #endif...
Python
UTF-8
336
2.734375
3
[]
no_license
digs = [4275710637398865385, 4275710637398865381, 4275710637398865399, 4275710637398865405, 4275710637398865383, 4275710637398865400, 4275710637398865386][::-1] expected = "easyctf"[::-1] x = digs[0] - ord(expected[0]) out = "" for letter in digs: out = chr(letter - x) + out assert out == "easyctf" print x # 4275...
Python
UTF-8
1,035
3.4375
3
[ "MIT" ]
permissive
from rit_lib import * def createBST(): return BinaryTree(None) class BinaryTree(struct): _slots = (BSTNode, 'root') class BSTNode(struct): _slots = ((('BSTNode',NoneType),'left'), (object, 'value'),(('BSTNode', NoneType), 'right')) def add(self, value): if self.root == None: ...
JavaScript
UTF-8
1,574
3.53125
4
[ "MIT" ]
permissive
RunOnEnter(); let ArrayOfPrimeNumbers =[]; let ArrayOfAllTheNumbers =[]; function FindPrime() { document.getElementById("PrimeNumberOutput").innerHTML = ""; ArrayOfPrimeNumbers=[]; ArrayOfAllTheNumbers=[]; let i; let j; let NumberOfMultiples = 0; let range = document.getElementById("myInput...
JavaScript
UTF-8
1,761
3.3125
3
[]
no_license
var content = document.getElementById('content'), button = document.getElementById('button'), ul = document.createElement('ul'), messages = document.getElementById('message'); var nombreDeMessage = 1; content.appendChild(ul); ul.setAttribute('id', 'ulListDom'); var storage = localSto...
Ruby
UTF-8
748
2.734375
3
[ "MIT" ]
permissive
require 'singleton' module Codesake class Kernel include Singleton attr_reader :engine NONE = 0 TEXT = 1 JSP = 2 UNKNOWN = -1 def choose_engine(filename, options) engine = nil case detect(filename) when TEXT engine = Codesake::Engine::Text.new(f...
Python
UTF-8
424
2.671875
3
[]
no_license
import sys import subprocess types = ['md5', 'sha1', 'sha256'] keys = [4*'a', 16*'a', 32*'a'] fs = sys.argv[1:] for fname in fs: for t in types: for k in keys: cmd = 'openssl dgst -{type} -hmac "{key}" {fname}'.format(type=t, key=k, fname=fname) output = subprocess.check_output(cmd...
Python
UTF-8
1,301
3.15625
3
[]
no_license
import A3 """Please do not edit any part of this code!""" def score(): score = 0 test1 = ([[5,0], [6,0], [7,1,0], [8,1,0], [9,1]], 5, 9) ans1 = 3 test2 = ([[5, 0], [6, 0], [7, 0], [8, 0]], 5, 0) ans2 = 1 test3 = ([[5, 3, 1, 0], [6, 2, 1, 0], [7, 3, 2, 1], [8, 3, 2, 0]], 5, 7) ans3 = 2 ...
Java
UTF-8
1,360
2.203125
2
[]
no_license
package com.zry.demo.dao.teacher; import java.util.List; import javax.annotation.Resource; import javax.sql.DataSource; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.stereotype.Repository; import com.zry.demo.d...
Java
UTF-8
12,636
2.484375
2
[]
no_license
package com.maliang.core.service; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Random; import org.bson.types.ObjectId; public class DBData { public final static Map<String,Object> ObjectMetadataMap = new HashMa...
Java
UTF-8
2,610
2.46875
2
[]
no_license
package org.launchcode.controllers; import org.launchcode.models.Task; import org.launchcode.models.data.TaskDao; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.validation.Errors; import or...
JavaScript
UTF-8
309
2.765625
3
[]
no_license
// let id = 0 // class Comment{ // // constructor(obj,content){ // this.book_id = obj.id // this.content = content // this.id = ++id // } // // // render() { // let html = ` // <div class="card"> // <p>${content}</p> // </div> // ` // return html // } // }
Java
UTF-8
5,883
3
3
[]
no_license
package com.example.edd; import java.io.IOException; /** * * @author ozmarescobar */ public class TablaHash { public ListaDoble[] tabla; public int MAX_TABLA; public TablaHash() { int i, j; for (i = 996 + 1;; i++) { for (j = 2; j < i; j++) { ...
Python
UTF-8
224
3.46875
3
[]
no_license
name=input("write your first name :").lower().strip() key_name= "clark" if name==key_name: print(f"hello,{key_name.capitalize()}! The password is : @12") else: print (f"Hello, {name.capitalize()}! See you later.")
Go
UTF-8
3,135
3.109375
3
[]
no_license
package main import ( "math/rand" ) func avg(counts []int) float64 { n := float64(len(counts)) avg := float64(0) for _, count := range counts { avg += float64(count) / n } return avg } func simulateOne() int { var gaps [10][2]float64 count := 0 gapCount := 1 gaps[0][0] = 0 gaps[0][1] = 1 const minGap =...
Python
UTF-8
968
2.609375
3
[]
no_license
#-*- coding: utf-8 -*- # # # # # Author: # # Copyright (c) SomeCorp. from marshmallow import Schema, fields, ValidationError, post_load from sqlalchemy_model import Person import sys def name_valid(data): if not data: raise ValidationError("No name provided") def length_conforms_to_iso_country_standar...
C#
UTF-8
3,615
3
3
[]
no_license
using System; using System.Drawing; using System.Windows.Forms; using System.Drawing.Drawing2D; namespace Apress.VisualCSharpRecipes.Chapter08 { public partial class Recipe08_02 : Form { // Define the shapes used on this form. private GraphicsPath path; private Rectangle rectangle; ...
Java
UTF-8
1,832
3.375
3
[]
no_license
package leetcode.pickone; public class PallindromeLinkedList { public static boolean isPallindrome(ListNode node) { if (node == null) return false; if (node.next == null) return true; boolean flag = false; LinkedListUtility llu = new LinkedListUtility(); int size = llu.siz...
C#
UTF-8
1,655
2.640625
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Interactivity; namespace WpfPitchTuner.Helper { /// <summary> /// Detach EventTrigger from element on Unload event /// </summary> class EventTriggerBehavior : Behavior<Depen...