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
C#
UTF-8
1,617
2.703125
3
[]
no_license
// <copyright file="GameTest.cs" company="Gavin Greig"> // Copyright (c) Dr. Gavin T.D. Greig, 2015. // </copyright> // <author>Dr. Gavin T.D. Greig</author> // <date>2015-07-08</date> // <summary> // A suite of unit tests for the Game class. // </summary> namespace GavinGreig.OXO.UnitTest { using System; ...
Go
UTF-8
821
3.21875
3
[]
no_license
package main import ( "encoding/json" "fmt" "log" "net/http" ) type Item struct { Author string `json:"author"` Score int `json:"score"` URL string `json:"url"` Title string `json:"title"` } type response struct { Data1 struct { Children []struct { Data2 Item `json:"data"` } `json:"children"`...
C#
UTF-8
830
2.609375
3
[]
no_license
using System; using UnityEngine; namespace VRSashimiTanpopo.Tanpopo { public class TanpopoCounter : MonoBehaviour { public event Action IncreasedToOne; public event Action IncreasedToTwo; public event Action DecreasedToZero; public bool IsZero => count == 0; int count...
Java
UTF-8
1,675
2.671875
3
[]
no_license
import fillers.AbstractPdfFiller; import fillers.implementations.CR115Filler; import fillers.implementations.CR180Filler; import fillers.implementations.CR181Filler; import fillers.implementations.FW001Filler; import fillers.implementations.FW003Filler; import fillers.implementations.Pos040Filler; import object.Defenda...
Markdown
UTF-8
317
2.515625
3
[]
no_license
# Times Series Forecasting Projetos criados a partir de curso Time Series Forecasting da Udacity. Segue o link do curso: https://www.udacity.com/course/time-series-forecasting--ud980. Os exercícios foram feitos no Jupyter Notebook, apesar de o curso usar o Alteryx, por alinhamento com propósito de aprendizado.
Python
UTF-8
2,902
3.21875
3
[]
no_license
import math import matplotlib.pyplot as plt import numpy as np def f(x): return math.e ** (-x / 2) * math.sin(4 * x) h = 0.5 def generate_points(): ret_points = [] step = 0.5 for k in np.arange(-1, 7 + 2 * step, step): ret_points.append((k, f(k))) return ret_points def B(x0, h, x): ...
PHP
UTF-8
5,679
2.609375
3
[]
no_license
<?php header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past $DEFAULT_MAX_NB_FILES = 15; $MaxNumberOfFiles=$DEFAULT_MAX_NB_FILES;//12 would probly be the max number of files that would fit in the div $FileIDs = array();//to be provided with ...
C++
UTF-8
1,756
3.25
3
[]
no_license
// // main.cpp // bsearch // // Created by Sridhar on 21/09/12. // Copyright (c) 2012 Sridhar. All rights reserved. // #include <iostream> using namespace std; #define null 0 typedef struct linkedlist { int num; struct linkedlist *r; struct linkedlist *l; }dlist; dlist *root=null; void create() { ...
C++
UTF-8
2,305
3.375
3
[]
no_license
#include <iostream> #include <queue> using namespace std; struct node { int n; // nr wierzcho�ka node * next; }; const int V = 5; bool czy_dwudzielny(node * G[V], int colour[V]) // s - wierzcho�ek startowy { queue < int > Q; for (int i = 0; i < V; i++) colour[i] = 0; for (int i = 0; i < V; i++) { if ...
C#
UTF-8
1,254
2.671875
3
[]
no_license
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 PMetodosMenus { public partial class frmExercicio2 : Form { Int3...
Python
UTF-8
683
2.6875
3
[]
no_license
import tensorflow as tf import numpy as np def thoraric_surgery_learning(): from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense np.random.seed(3) tf.compat.v1.set_random_seed(3) data_set = np.loadtxt("dataset/ThoraricSurgery.csv", delimiter=",") x = data...
Java
UTF-8
9,503
2.875
3
[]
no_license
package test; import java.util.ArrayList; import java.util.List; import scheduler.MessageHandlerTerminationMessageAware; import scheduler.MessageImpl; import scheduler.TerminationMessage; import scheduler.TerminationMessageProcessedException; import scheduler.interfaces.Message; import org.junit.Test; import static...
Markdown
UTF-8
1,587
2.78125
3
[]
no_license
# Status [![Project Status: Inactive – The project has reached a stable, usable state but is no longer being actively developed; support/maintenance will be provided as time allows.](https://www.repostatus.org/badges/latest/inactive.svg)](https://www.repostatus.org/#inactive)[![CircleCI](https://circleci.com/gh/eapower...
Python
UTF-8
327
3.59375
4
[ "CC0-1.0", "MIT" ]
permissive
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: Juan Emilio Martinez Manjon """ from math import sqrt cateto1 = float(input("Introduzca el primer cateto dle triangulo:")) cateto2 = float(input("Introduzca el segundo cateto dle triangulo:")) hipotenusa = sqrt(cateto1*cateto1 + cateto2*cateto2) print("La ...
C
UTF-8
516
2.703125
3
[]
no_license
#include "share_queue.h" #include <stdio.h> #define SHM_SIZE 18 int main() { const char *data = "hello"; const char *key_path = "/Users/zhanggx/code/share_queue/test/share_queue.key"; shm_queue_t queue; if (shm_queue_init(&queue, key_path, SHM_SIZE)) { perror("shm_queue_init failed"); return -1; } for (siz...
Java
UTF-8
7,174
1.71875
2
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
package com.project.convertedCode.globalNamespace.namespaces.Illuminate.namespaces.Support.classes; import com.runtimeconverter.runtime.nativeInterfaces.Countable; import com.project.convertedCode.globalNamespace.namespaces.Illuminate.namespaces.Support.classes.Arr; import com.runtimeconverter.runtime.passByReference....
JavaScript
UTF-8
483
2.8125
3
[]
no_license
//-------------------------Toogle imagenes de recetas------ let mostrarRecetas = document.querySelectorAll(".card-title") let cuerpoRecetas = document.querySelectorAll(".card-body") mostrarRecetas.forEach((mostrarReceta) => { mostrarReceta.addEventListener("click", () => { cuerpoRecetas.forEach((...
SQL
UTF-8
547
4.125
4
[]
no_license
-- DML (CRUD) -- 1. INSERT 구문 INSERT INTO `TBL`( `COL1`, `COL2` )VALUE( 'VAL1', 'VAL2' ); -- 2. SELECT 구문 SELECT `ID`, `NAME` FROM `TBL` WHERE '조건'; -- 뒤에 WHERE, GROUP BY, ORDER BY 등이 온다. -- 3. UPDATE 구문 UPDATE `TDL` SET `COL1` = 'VAL1', `COL2` = 'VAL2' WHERE '조건'; -- 4. DELETE 구문 DELETE FROM `TBL` W...
Java
UTF-8
1,418
2.390625
2
[]
no_license
package test.supplier; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.math.BigDecimal; import java.util.Arrays; import java.util.List; /** * Тестирование поступления заказа, доставки и его завершения */ public class SupplierReceiveAndDeliverAndCompleteTest extends Suppl...
Python
UTF-8
3,736
2.671875
3
[ "MIT" ]
permissive
import heat as ht from .test_suites.basic_test import TestCase class TestStrideTricks(TestCase): def test_broadcast_shape(self): self.assertEqual(ht.core.stride_tricks.broadcast_shape((5, 4), (4,)), (5, 4)) self.assertEqual( ht.core.stride_tricks.broadcast_shape((1, 100, 1), (10, 1, 5)...
C#
UTF-8
448
2.578125
3
[]
no_license
using (var stream = File.Create("test.pdf")) using (var doc = new Document()) using (var pdfWriter = PdfWriter.GetInstance(doc, stream)) { doc.Open(); foreach (var file in ofd.SafeFileNames) { using (var imageStream = File.OpenRead(file)) { ...
Markdown
UTF-8
2,481
3.265625
3
[ "MIT" ]
permissive
This is a brief introduction to the most used commands that you will (probably) need for navigating around the server. ### Get your current location. ``` pwd ``` ### Changing directories ``` # Moving to your home directory cd # Moving forward cd path/to/directory # Moving to the parent/previous directory cd .. ``` ...
SQL
UTF-8
18,202
4.03125
4
[]
no_license
WITH cte_ra_contacts AS (SELECT ACCT_ROLE.CUST_ACCOUNT_ROLE_ID AS CONTACT_ID, SUBSTR (PARTY.PERSON_LAST_NAME, 1, 50) AS last_name, SUBSTR (PARTY.PERSON_FIRST_NAME, 1, 40) AS first_name FROM rawdb.HZ_CUST_ACCOUNT_ROLES ACCT_ROLE INNER JOIN rawdb.HZ_RELATIONSHIPS REL ON ACCT_ROLE.PARTY_ID = R...
Python
UTF-8
343
2.78125
3
[]
no_license
from Crypto.Cipher import DES f = open('key.txt', 'r') key_hex = f.readline()[:-1] # discard newline f.close() KEY = key_hex.decode("hex") IV = '13245678' a = DES.new(KEY, DES.MODE_OFB, IV) f = open('plaintext', 'r') plaintext = f.read() f.close() ciphertext = a.encrypt(plaintext) f = open('ciphertext', 'w') f.write...
Markdown
UTF-8
1,126
2.90625
3
[]
no_license
# Graphics Project - Conor Tighe # A 2D game for web browser *** This is a game where the objective is to dodge the poisonous fish for as long as possible. every time a enemy leaves the screen you score a point, but there speed improves and the number of enemys will increase as time goes on. *** The libary I use...
Python
UTF-8
295
2.6875
3
[]
no_license
import win32clipboard win32clipboard.OpenClipboard() try : clip2 = win32clipboard.GetClipboardData() print(clip2) except TypeError: print("Nothing in clipboard !!!") ##win32clipboard.SetClipboardText(clip2) win32clipboard.EmptyClipboard() win32clipboard.CloseClipboard()
Java
UTF-8
1,861
2.546875
3
[]
no_license
package com.sw.upload; /** * <p>Title: �������</p> * * <p>Description: ��Ҫ�����Ƕ�FileUploadStatus���й��?Ϊ�ͻ����ṩ��Ӧ�� * FileUploadStatus���������һ�������ࡣ</p> * */ import java.util.Vector; public class BeanControler { private static BeanControler beanControler = new BeanControler(); private...
Java
UTF-8
305
1.75
2
[]
no_license
package com.kk.think.user.service; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.core.Response; @Path("/healthcheck") public class HealthCheck { @GET @Path("/test") public Response healthCheck() { return Response.status(200).entity("Success").build(); } }
PHP
UTF-8
3,527
2.75
3
[]
no_license
<?php use Dt\Lib\Tpl; function normalizeRow($array) { $output = array(); if (is_array($array) && !empty($array)) $output = $array[0]; return $output; } function normalizeOneList($array, $id = null) { $output = array(); if (is_array($array)) { foreach ($array as $ar) { ...
Markdown
UTF-8
11,428
2.53125
3
[ "MIT" ]
permissive
--- layout: post title: rabbitMQ-Spring配置 categories: java spring mq tags: java spring mq --- * content {:toc} > 我的技术博客,主要是记载看过的书以及对写的好的博客文章的搬运整理,方便自己他人查看,也方便别人指出我文章中的错误,达到一起学习的目的。 > 技术永无止境 本文主要是对spring文档中项目配置的部分翻译 # Messing with RabbitMQ 这份指导会带领你配置RabbitMQ AMQP服务器,从而发布和订阅消息。 ## What you'll build 你可以通过Sprin...
JavaScript
UTF-8
4,647
2.71875
3
[]
no_license
import React, { Component } from 'react'; import axios from 'axios'; import Container from '@material-ui/core/Container'; import TextField from '@material-ui/core/TextField'; import Button from '@material-ui/core/Button'; import Board from './components/board'; import Clue from './components/clue'; import ResetConfi...
Shell
UTF-8
922
3.453125
3
[]
no_license
#!/bin/bash set -e if command -v git >/dev/null 2>&1; then echo "git: exists" elif command -v apt-get >/dev/null 2>&1; then # ubuntu sudo apt-get install -y git-all elif command -v /opt/local/bin/port >/dev/null 2>&1; then # macports sudo port clean git-core sudo port selfupdate sudo port install ...
C++
UTF-8
575
3.15625
3
[]
no_license
#include <fstream> using namespace std; ifstream is ("test.in"); ofstream os ("test.out"); bool Prim(int x); int main() { int n; int a[100]; is >> n; for(int i = 1; i <= n; ++i) { is >> a[i]; if(Prim(a[i])) os << a[i] << ' '; } return 0; } bool Prim(int x) { ...
C#
UTF-8
4,638
2.578125
3
[ "MS-PL" ]
permissive
using System; using System.Collections.Generic; using System.Linq; using Ogdi.InteractiveSdk.Mvc.Repository; namespace Ogdi.InteractiveSdk.Mvc.Models.Request { public class RequestListModel { public RequestFilter Filter {get; set;} public RequestListModel() { OrderBy = ne...
Ruby
UTF-8
499
2.859375
3
[ "MIT" ]
permissive
require 'sinatra/activerecord' require_relative '../models/badwords' module BanFinder def BanFinder.find_bannable(text, group_id) words_db = Badwords.find_by(group_id: group_id) banned_words = Array.new words_db.each do |i| banned_words.push(i.word) end tokens = text.split(' ') tokens.e...
Java
GB18030
5,397
2.703125
3
[]
no_license
package com.alg.scholarship.view; import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.ButtonGroup; import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JRadioButton; import javax.swing.JTextField; import com.alg.scholarship.bean.Types...
SQL
UTF-8
126
3.609375
4
[]
no_license
SELECT e.name, b.bonus FROM employee e LEFT JOIN bonus b ON (e.empid = b.empid) WHERE (b.bonus < 1000 OR b.bonus IS NULL)
C
UTF-8
491
3.015625
3
[]
no_license
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <errno.h> void printfile(const char *filename){ FILE *p=fopen(filename,"r"); if(p==NULL){ printf("error is %s\n", strerror(errno)); return -1; } char buf[1024]; while(1){ memset(buf,0,sizeof(buf)); if(fgets(buf,sizeof(b...
JavaScript
UTF-8
385
3.265625
3
[]
no_license
function output(m) { for (var i = 1; i <= m; i++) { var a = ""; for (var j = 1; j <= m - i; j++) { var space = " "; a = a + space; } for (var k = 1; k <= 2 * i - 1; k++) { var star = "*"; a = a + star; } console.log(a); ...
JavaScript
UTF-8
746
2.578125
3
[]
no_license
// Third Party Libaries var _api = require('./API'); // Helper function that takes movie info and makes MovieSummary object. // This object is used for outputing it as a element in the list // of the movies which are discovered. function MovieSummary(movie, quest) { if (movie['release_date']) { this.year = mo...
Markdown
UTF-8
9,098
3.53125
4
[]
no_license
*****NOTE: My cousin borrowed my computer one month ago for his CS assignment using his github account, but I didn't realize. So this folder might shows two coordinators, one is "edwardyang12"(he), one is "ziyanc080"(me). But all the works are done by myself, without any collaboration with him or other people. I have ...
C#
UTF-8
2,194
2.515625
3
[]
no_license
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyFollow : MonoBehaviour { public Transform player; public Rigidbody2D rb; public GameObject bullet; public Transform weapon, firePoint, firePoint2; public float speed, distanceBeforeAttack, bulletForce,...
JavaScript
UTF-8
1,696
3.515625
4
[]
no_license
// Function for Increase and Decrease input value function handleSeat(isIncrease, seat) { const seatInput = document.getElementById(seat + "-quantity") const seatCount = parseInt(seatInput.value) let seatNewCount = seatCount if (isIncrease == true) { seatNewCount = seatCount + 1 } else if (i...
Java
UTF-8
330
1.796875
2
[]
no_license
package cn.design.adapter.service.impl; import cn.design.adapter.service.AdapterOrderService; import java.util.logging.Logger; public class OrderService implements AdapterOrderService { @Override public boolean getFirstOrderByid(String id) { System.out.println("外部请求"); return true; } ...
Java
UTF-8
1,680
2.421875
2
[]
no_license
package com.pps.sharpturn.adapter; import java.util.List; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; import com.pps.sharpturn.R; import com.pps.sharpturn.mo...
PHP
UTF-8
14,488
2.9375
3
[ "MIT" ]
permissive
<?php namespace PrateekKathal\SimpleCurl; use PrateekKathal\SimpleCurl\ResponseTransformer; class SimpleCurl { /** * Config Variable * * @var array */ protected $config; /** * CURL Response * * @var array */ protected $response; /** * URL of CURL req...
Java
UTF-8
8,500
1.953125
2
[]
no_license
package com.example.wlk.zzuar.obj; import android.content.Context; import android.content.res.Resources; import android.graphics.Bitmap; import android.opengl.GLES20; import android.opengl.GLUtils; import android.opengl.Matrix; import android.util.SparseArray; import com.example.wlk.zzuar.utils.Gl2Utils; import com.e...
Python
UTF-8
724
2.796875
3
[]
no_license
#!/usr/bin/env python2.7 import tika from tika import parser if __name__ == "__main__": tika.initVM() parsed = parser.from_file('Kevin_DelRosso_Resume.pdf') metadata = parsed["metadata"] content = parsed["content"] print type(metadata), type(content) print "\nMetadata" for k, v in metadat...
Markdown
UTF-8
1,355
2.515625
3
[ "MIT" ]
permissive
# passport-inventory-sync-worker Processes inventory records, combining inventory counts with item property data. Writes combined data to separate queues for updating the Plant API and the web store. Once the process is complete an optional SNS message is sent. ## Required Environment Variables ### TASK_QUEUE_URL Thi...
Java
UTF-8
1,230
2.09375
2
[]
no_license
package com.huemedia.cms.model.dao.jpa; import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Repository; import com.huemedia.cms.model.dao.GroupDAO; import com.huemedia.cms.model.entity.Group; import com.huemedia.cms.model.entity.QGroup; import com.huemedia.cms.web.form.MasterFor...
Markdown
UTF-8
1,977
2.765625
3
[ "MIT", "Unlicense" ]
permissive
--- title: TechEd - Developing Manageable WCF Services categories: .Net, IT Related tags: TechEd, WCF date: 2006-08-24 10:10:46 +10:00 --- ![][0] Chris and I got to the presentation room early in the morning so we could setup and make sure everything was sorted. We then went out to have a relaxed breakfast at a cafe...
Python
UTF-8
532
3.09375
3
[]
no_license
def function1(): f = open("sam.txt","r") for line in f.readlines(): print("-------") new_line = line.replace(line,'"'+line.strip("\n")+'",'+"\n") print(new_line) open("sam2.txt","a").write(new_line) # a = "aaaaaaaaaabbbbbbbbbcccccccdaldkadla" # b = a.replace('a','N') # print(b) # def function2(): f = open...
Markdown
UTF-8
12,332
2.59375
3
[]
no_license
--- aid: "0003" zid: "0046" title: 雷州糖业公司 author: 吹牛者 --- 常师德半躺半靠在床上,喝了一点醒酒汤下去,人虽然晕乎乎的,却十分畅快。正待要睡觉,只见文秀悄没声的走进屋来,只穿着贴身的小褂,发髻解开梳在后面,满面桃花,杏眼含春。常师德一时呆了,不知道他这副模样来作甚。 只见文秀如同女人般的打了万福,小声道:“文秀伺候老爷就寝。”说着便上来给他宽衣解带,一双柔荑小手在他身上轻轻的按揉,千娇百媚轻声的呼唤着:“老爷——” 常师德呆了大约五秒钟,忽然全身的酒都从毛孔里散了出去,一阵凉意从脚跟直冲脑门,全身顿时起了一层鸡皮疙瘩。 “不——”他发出一声悲鸣,赶紧推开文秀,连滚带爬的从...
Python
UTF-8
822
2.703125
3
[]
no_license
class Benchmark: kernels = [] def __init__(self, name, label, max_thread_count): self.name = name self.label = label self.max_thread_count = max_thread_count def __repr__(self): return self.name + ": " + self.label + " w/ " + self.max_thread_count + " threads" class Kernel: def __init__(self, n...
JavaScript
UTF-8
8,990
3.171875
3
[]
no_license
var assert = require("assert"); var parser = require(".."); describe("parser", () => { it("parses booleans", () => { assert.strictEqual( parser.parseString("true", true), true); assert.strictEqual( parser.parseString("false", true), false); }); it("parses null", () => { assert.strictEqual( pa...
C
UTF-8
936
3.484375
3
[]
no_license
#include "linked_list.h" #include <stdlib.h> //Delete, insert, search, predecessor functions for linked list data structure. void delete_list(list **l, player_struct *x) { list *p, *pred; list *search_list(), *predecessor_list(); p = search_list(*l, x); if (p != NULL) { pred = predecessor_list(*l, x); ...
PHP
UTF-8
2,817
2.65625
3
[]
no_license
<?php /** * Copyright 2001-2015 Horde LLC (http://www.horde.org/) * * See the enclosed file COPYING for license information (GPL). If you * did not receive this file, see http://www.horde.org/licenses/gpl. * * @category Horde * @copyright 2001-2015 Horde LLC * @license http://www.horde.org/licenses/gpl GPL ...
Java
UTF-8
2,660
3.3125
3
[ "MIT" ]
permissive
package ec.edu.ups.mysql.jdbc; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; /** * Class ContextJDBC. * * Clase que permite obtener una conexión a la base de datos y asegura que si ya * existe una conexión no la vuel...
JavaScript
UTF-8
368
3.28125
3
[]
no_license
let count = 11; const slideFunction = () => { const sliderDiv = document.getElementById('slider'); sliderDiv.innerHTML = ` <img style="width: 500px" src="images/(${count}).jpg" alt="">` } const intervalID = setInterval(() => { slideFunction(count); count++; if (count === 21) { count...
Markdown
UTF-8
3,535
2.78125
3
[ "Unlicense" ]
permissive
# Easing burden on telcos: Government panel mulls repayment of AGR dues over 20 years Published at: **2019-11-04T04:50:40+00:00** Author: **Deepshikha Sikarwar** Original: [The Times of India](https://timesofindia.indiatimes.com/business/india-business/easing-burden-on-telecom-companies-government-panel-mulls-repay...
C++
UTF-8
2,195
3.203125
3
[ "Artistic-2.0" ]
permissive
///A tutorial about the use of Pizza & Chili index. #include <iostream> #include <seqan/index.h> using namespace seqan; template <typename TSpec> void testPizzaChili() { ///The following code creates a Pizza & Chili index and assigns it a text. typedef Index<String<char>, PizzaChili<TSpec> > index_t; ...
C++
UTF-8
541
2.8125
3
[ "MIT" ]
permissive
/** * @file simpleclient.cpp * @date 03.01.2013 * @author Peter Spiess-Knafl <dev@spiessknafl.at> * @brief This is a simple client example. */ #include <iostream> #include <jsonrpccpp/client.h> #include <jsonrpccpp/client/connectors/httpclient.h> using namespace jsonrpc; using namespace std; int main() { Http...
Java
UTF-8
1,034
3.15625
3
[]
no_license
package com.arun.companies; public class Kraken { public static void main(String[] args) { assert krakenCount(2,2) == 3; assert krakenCount(3, 2) == 5; } public static int krakenCount(int m, int n) { if (m == 0 && n == 0) { return 0; } int[][] memo = ne...
Java
UTF-8
540
2.125
2
[]
no_license
package com.pushok.skilap.apiData; public class CmdtyData { public String id; public String space; public Double rate; public CmdtyData() {} public CmdtyData(String id, String space) { this.id = id; this.space = space; } public String getId() { return id; } public void setId(String id) { this.id = id;...
C#
UTF-8
2,557
2.671875
3
[]
no_license
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CubeMovement : MonoBehaviour { private Vector3 offset; public GameObject player; public GameObject center; public GameObject up; public GameObject Down; public GameObject Left; public GameObject ...
Markdown
UTF-8
9,065
3.265625
3
[ "Apache-2.0" ]
permissive
--- title: mv-expand operator description: Learn how to use the mv-expand operator to expand multi-value dynamic arrays or property bags into multiple records. ms.reviewer: alexans ms.topic: reference ms.date: 03/15/2023 --- # mv-expand operator Expands multi-value dynamic arrays or property bags into multiple record...
Java
UTF-8
8,148
3.015625
3
[ "Apache-2.0" ]
permissive
package ro.jademy.hm.ai; import java.util.ArrayList; import java.util.Scanner; import ro.jademy.hm.main.App; import ro.jademy.hm.repository.DataBase; import ro.jademy.hm.ui.UserInterface; public class RoboHangman { Scanner keyboard = new Scanner(System.in); UserInterface userInit = new UserInterface...
C#
UTF-8
2,809
3.03125
3
[]
no_license
using System; using System.IO; using System.Security.Cryptography; using System.Text; namespace CryptoCourse { public class Crypto { public static void CryptFile(string fileIn, string fileOut, SymmetricAlgorithm algo, byte[] rgbKey, byte[] rgbIv) { if (string.IsNullOrEmpty(fileIn))...
TypeScript
UTF-8
568
2.59375
3
[]
no_license
import genericSort from '@core/utils/genericSort'; import { GroceryItemEdit } from 'inventory/types'; import { Option } from '@core/types'; const getNameOptions = ( groceries: Record<string, GroceryItemEdit>, targetCollection: string[] ): Option[] => { const names: Option[] = []; Object.entries(groceries).for...
C++
UTF-8
7,885
3.3125
3
[]
no_license
#include "assignments/ev/euclidean_vector.h" #include <algorithm> // Look at these - they are helpful https://en.cppreference.com/w/cpp/algorithm #include <cassert> #include <cmath> #include <iostream> #include <sstream> /* * CONSTRUCTORS */ EuclideanVector::EuclideanVector(int i, double d) { this-...
Markdown
UTF-8
1,373
2.84375
3
[]
no_license
--- layout: post author: Anthony --- # Anthony-s-Blog- Anthony's Adventures Around ISD! title: Day 1! date: 2021-06-8 Day 1 at KUB!!! I'm going to be here for 8 weeks and looking forward to it. This day has been pretty chill. The people here are mostly quiet and keep to them themselves. I had computer problems be...
Java
UTF-8
5,864
2.1875
2
[]
no_license
package com.lph.exam_web.controller; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.lph.exam_web.common.Result; import com.lph.exam_web.pojo.ExamPaper; import com.lph.exam_web.service.NoticeService; import com.lph.exam_web.vo.SetScoreVo; import io.swagger.annotations.Api; imp...
Markdown
UTF-8
1,089
2.609375
3
[]
no_license
Flowspace Bakery ================ Flowspace Bakery is an artisanal digital bakery, crafting the finest digital cookies in New York City. We don't mass produce our cookies in faceless factories. Instead, We bake cookies to order, one at a time. Set up docker ------------- Run docker-compose to start the Redis and P...
Python
UTF-8
723
3.5
4
[]
no_license
// Did this code successfully run on Leetcode : Yes // Any problem you faced while coding this : None // Your code here along with comments explaining your approach In this problem we have to find the maximum sum of the minimu of the pairs in the array.For this we have to sort the array first and then all the even in...
Go
UTF-8
2,369
3.234375
3
[]
no_license
package picture import ( "fmt" "image" "log" "github.com/BurntSushi/graphics-go/graphics" "github.com/fogleman/gg" "github.com/nfnt/resize" ) const ( backgroundPATH string = "pictures/sea.jpg" picsPATH string = "pictures/%v.png" ) // RepresentationShip структура для передачи нужным нам // на репрезент...
PHP
UTF-8
7,565
2.953125
3
[ "MIT" ]
permissive
<?php /** * This file is part of PHPDebugConsole * * @package PHPDebugConsole * @author Brad Kent <bkfake-github@yahoo.com> * @license http://opensource.org/licenses/MIT MIT * @copyright 2014-2022 Brad Kent * @version v3.0 */ namespace bdk\Debug\Dump\Html; use bdk\Debug\Dump\Html as Dumper; /** * ...
Python
UTF-8
1,676
3.5
4
[]
no_license
#Every valid email consists of a local name and a domain name, separated by the '@' sign. Besides lowercase letters, the email may contain one or more '.' or '+'. # - For example, in "alice@leetcode.com", "alice" is the local name, and "leetcode.com" is the domain name. #If you add periods '.' between some characters ...
Java
UTF-8
194
1.65625
2
[ "Apache-2.0" ]
permissive
package com.inventario.microservice.user.service; import org.springframework.http.ResponseEntity; public interface IEmployeeService { public abstract ResponseEntity<?> delete(String id); }
C#
UTF-8
8,861
2.765625
3
[ "MIT" ]
permissive
namespace MSTranslate { using MSTranslate.ExtensionMethods; using MSTranslate.Interfaces; using MSTranslate.Service; using System; using System.Collections.Generic; using System.Data.Services.Client; using System.Linq; using System.Net; using System.Security; /// <summary> /...
PHP
UTF-8
788
2.71875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: victorsecuring * Date: 23.12.16 * Time: 12:18 PM */ namespace zaboy\res\Di\Example\ExtendedIC; use zaboy\res\Di\InsideConstruct; class SimpleDependency { protected $simpleStringA; public $simpleNumericB; private $simpleArrayC; public function __construc...
C#
UTF-8
1,363
4.0625
4
[]
no_license
using System; namespace MovieList { class Program { static void Main(string[] args) { //this is a list of type MovieDatabase MovieDatabase MovieL = new MovieDatabase(); bool keepGoing = true; do { Movi...
JavaScript
UTF-8
1,012
2.53125
3
[]
no_license
const songApi = require('./api/songApi'); const calorieApi = require('./api/calorieApi'); const recipeApi = require('./api/recipeApi'); const tvApi = require('./api/tvApi'); var getSongApi = function(type) { return async function(ctx) { const obj = ctx.query let res = await songApi[type](ob...
Java
UTF-8
884
2.578125
3
[]
no_license
package edu.kit.tm.cm.scdm.vehicle.domain.model; import lombok.Getter; import org.apache.commons.lang3.RandomStringUtils; import org.apache.commons.lang3.RandomUtils; @Getter public class StaticVehicleData { private final String vin; private final String tag; private final VehicleType type; private fi...
Swift
UTF-8
1,744
2.703125
3
[ "MIT" ]
permissive
// // MapOfBarnetViewController.swift // Speak Out! // // Created by admin on 08/06/2017. // Copyright © 2017 Samuel Benke Calabresi. All rights reserved. // import UIKit class MapOfBarnetViewController: UITableViewController { var locations = [Location]() // MARK: - Lifecycle override func...
Python
UTF-8
1,648
2.984375
3
[]
no_license
import pytest #导入pytest def setup_module(): """在整个模块用例测试开始前执行""" print("----->setup_module") def teardown_module(): """在整个模块用例测试结束后执行""" print("----->teardown_module") def setup_function(): """在每一个外部的用例测试开始前执行""" print("----->setup_function") def teardown_function(): """在每一个外部的用例测试结束后执行"...
JavaScript
UTF-8
1,030
3.953125
4
[]
no_license
function destroyer(arr) { //use arguments to take item [1] and above and create a new array from this var myArgs = []; for (i=1; i<arguments.length; i++) { myArgs.push(arguments[i]); } //return an array (myArgs) that takes 2nd item and after from arr; for ([1,2], 3, 4, 5), takes item 3, 4 & 5; ...
Python
UTF-8
1,995
4.3125
4
[]
no_license
import math first_num=50 #first number in integer second_num=25 #second number in integer float_a=30.25 #first number in float float_b=25.50 #second number in float #perform different Mathematical Computations print("Different Mathematical Computations") print("------------------------------...
Java
UTF-8
282
2.234375
2
[]
no_license
package builder.examples.email; import java.util.Optional; public class Sender extends CommonModule{ public Sender() { super.moduleName = "发件人"; } @Override public String showInfo(String info) { return Optional.ofNullable(info).orElse("sender : nicky@qq.com \n"); } }
Markdown
UTF-8
914
3.078125
3
[]
no_license
# FlipCards A React-Native mobile app using Redux to handle data. The `_DATA.js` file represents a fake database and methods that let you access the data. This mobile app presents the user with a list of decks to study several topics. Each deck contains a number of cards, which can be flipped to view the answer. T...
Rust
UTF-8
1,941
2.578125
3
[ "CC0-1.0", "Apache-2.0" ]
permissive
use crate::currency::{CurrencyDenom, DecCoin}; use nym_config::defaults::DenomDetails; use schemars::JsonSchema; use serde::{Deserialize, Serialize}; #[cfg_attr(feature = "generate-ts", derive(ts_rs::TS))] #[cfg_attr( feature = "generate-ts", ts(export_to = "ts-packages/types/src/types/rust/Account.ts") )] #[d...
Java
UTF-8
11,170
1.976563
2
[]
no_license
package com.resmenu.activity; import android.app.ProgressDialog; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity; import android.support....
Java
UTF-8
228
2.125
2
[]
no_license
package com.dal.entities; import androidx.room.Entity; import androidx.room.PrimaryKey; @Entity public class Contact { @PrimaryKey(autoGenerate = true) public int id; public String name; public String phone; }
C#
UTF-8
1,842
3.0625
3
[ "MIT" ]
permissive
using System.Collections.Generic; using EcommerceDDD.Domain.SeedWork; namespace EcommerceDDD.Domain.SharedKernel; public class Currency : ValueObject<Currency> { public string Code { get; } public string Symbol { get; } public static Currency USDollar => new Currency("USD", "$"); public static Curren...
Java
UTF-8
5,673
2.0625
2
[]
no_license
package com.tekitsolutions.remindme.Adapter; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.CompoundButton; import android.widget.ImageView; import android.widget.TextView; import android.widget.ToggleButton; import co...
C++
UTF-8
774
2.828125
3
[]
no_license
#ifndef REKD_ICONTAINER_H_ #define REKD_ICONTAINER_H_ #include <vector> #include "Error.h" namespace Rekd2D { namespace Core { class IContainer { public: /// <summary> /// Adds a container. Can only succeed. /// </summary> /// <param name="container">Container to be added</param> virtual Error ...
Java
UTF-8
2,932
2.390625
2
[]
no_license
package com.example.demo.util; import java.util.concurrent.atomic.AtomicInteger; import javax.annotation.PostConstruct; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import o...
Java
UTF-8
2,439
2.625
3
[]
no_license
package com.facebook.javatest.actions; import java.util.List; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.openqa.selenium.By; import org.openqa.selenium.TimeoutException; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.s...
Python
UTF-8
1,046
2.953125
3
[]
no_license
''' Created on Apr 9, 2016 @author: david ''' #f=open("exampleB.txt") #f=open("B-small-attempt0.in") f=open("B-large.in") T=int(f.readline()) P=[] for i in range(T): s = f.readline().strip() P.append(s) def rev(o): if o=='+': return '-' return '+' def is_ok(s): p='0' nt = [] for i,c in e...
Markdown
UTF-8
1,984
2.875
3
[ "CC-BY-4.0", "MIT" ]
permissive
--- title: '&#39;&lt;Method1&gt; &#39; и &#39; &lt;метод2&gt; &#39; не могут перегружать друг друга, так как они отличаются только типами возврата' ms.date: 07/20/2015 f1_keywords: - bc30301 - vbc30301 helpviewer_keywords: - BC30301 ms.assetid: 5adc442b-9671-4d93-add8-42929b1a09b9 ms.openlocfilehash: 5826938a8f...
Java
UTF-8
1,136
2.96875
3
[]
no_license
package io.server; import io.executePool.TimeServerHandlerExecutePool; import io.handler.TimeServerHandler; import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; /** * 伪异步IO server */ public class TimeServer2 { public static void main(String[] args) throws IOException { int...