language
stringclasses
15 values
src_encoding
stringclasses
34 values
length_bytes
int64
6
7.85M
score
float64
1.5
5.69
int_score
int64
2
5
detected_licenses
listlengths
0
160
license_type
stringclasses
2 values
text
stringlengths
9
7.85M
Markdown
UTF-8
4,173
3.765625
4
[]
no_license
## Data Structures Data structures in IFJ15 are implemented to be as generic as possible. They accept keys and items of type `void*` (with exceptions) and don't care if you interpret that as an `int` or a pointer to some structure. **Warning:** This means that the data structures don't do type checking. They make no a...
C++
UTF-8
1,236
2.640625
3
[]
no_license
#include "stdafx.h" #include "CommonTouchMessageHandler.h" #include "logger.h" #define LOG_TAG "TouchHandler" CommonTouchMessageHandler::CommonTouchMessageHandler() { memset( mTouchPoints, 0, sizeof( TouchPoint ) * cMaxNumFingers ); } CommonTouchMessageHandler::~CommonTouchMessageHandler() { } void CommonTouchMe...
Java
UTF-8
1,801
2.109375
2
[]
no_license
package net.arunoday.web.book; import java.util.HashMap; import net.arunoday.entity.Book; import net.arunoday.web.BasePage; import net.arunoday.web.book.model.BookDetachableModel; import org.apache.wicket.PageParameters; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.markup.html.panel.Empt...
Python
UTF-8
4,485
3.171875
3
[ "MIT" ]
permissive
#!/usr/bin/env python3 # Author:: Justin Flannery (mailto:juftin@juftin.com) """ Camply Configuration Script """ from collections import OrderedDict from datetime import datetime import logging from os.path import isfile from time import sleep from camply.config import FileConfig logger = logging.getLogger(__n...
C++
UTF-8
3,956
3.109375
3
[]
no_license
// // Client.cpp // lab5 // Client implementation // #include "Client.h" #include "Account.h" #include "ODAccount.h" #include <iomanip> //------------------------------------------------------------------------------ // Constructor // create a client and all of their accounts and history of transactions Client::C...
Python
UTF-8
1,365
3.359375
3
[]
no_license
import numpy from pylab import * # 1a: Compute convolution of a 2D (grayscale) image and a 2D filter def zeroPad(img, h, w, h_pad, w_pad): # zero matrix ni_h = h + h_pad ni_w = w + w_pad new_img = numpy.zeros((ni_h, ni_w), 'uint8') # copy image into matrix n = 0 for i in range(h_pad // 2, ni_h - h_pad // 2): ...
C#
UTF-8
2,132
2.78125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
using System; using System.IO; using Org.BouncyCastle.Utilities; namespace Org.BouncyCastle.Tls { public sealed class PskIdentity { private readonly byte[] m_identity; private readonly long m_obfuscatedTicketAge; public PskIdentity(byte[] identity, long obfuscatedTicketAge) {...
Java
UTF-8
400
2.109375
2
[]
no_license
package si.fri.prpo.skupina27.storitve.dtos; public class DodajanjeVratDto { private int sobaId; private int stVrat; public int getSobaId() { return sobaId; } public void setSobaId(int sobaId) { this.sobaId = sobaId; } public int getStVrat() { return stVrat; }...
TypeScript
UTF-8
997
2.609375
3
[]
no_license
import { Injectable } from '@angular/core'; import { FormControl, FormGroup, ValidationErrors } from '@angular/forms'; import { Observable } from 'rxjs'; import { delay } from 'rxjs/operators'; import { HttpClient } from '@angular/common/http'; @Injectable() export class ValidationService { constructor( private...
C++
UTF-8
4,503
3.734375
4
[]
no_license
/* Ly Cao CS2124 ELAB This program combines Hydrocarbon of the same formulas but different names and output these formulas in the order according to the number of carbons and hydrogens they have. */ #include <iostream> #include <fstream> #include <string> #include <vector> using namespace std; //consistent naming con...
TypeScript
UTF-8
1,334
2.546875
3
[]
no_license
import * as request from 'request'; import { TStrings } from '../models/strings'; import { logError } from '../utils'; export interface IGetProjectStringsOptions { token: string; projectId: string; langs: string[]; } export interface IGetProjectStringsResponse { strings?: TStrings; } export function getPr...
Python
UTF-8
1,452
3.21875
3
[]
no_license
#!/usr/bin/env python # coding: utf-8 # In[1]: import pandas myData = pandas.read_csv('rentals.csv') # In[2]: print (myData) # In[3]: print (myData.shape) # In[4]: type(myData) # In[5]: myData.head() # In[6]: myData.head(10) # In[7]: myData.tail() # In[8]: myData.tail(8) # In[9]: myDa...
Python
UTF-8
1,139
3.390625
3
[]
no_license
#!/usr/bin/python import socket serverName = socket.gethostname() serverIP = socket.gethostbyname(serverName) serverPort = 12000 serverSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Establish a welcoming door, we will wait and listen for some client to knock on the door serverSocket.bind((serverIP, serv...
Java
UTF-8
772
1.867188
2
[]
no_license
package com.waben.stock.monitor; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.netflix.hystrix.EnableHystrix; import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard; import org.springfr...
Java
UTF-8
6,625
1.6875
2
[]
no_license
// Test2 // C:/AXE_Projects/TestHarnessAPI/data/Tests.xml:Tests Test2 package axe; import objectmap.objectmap; import resources.axe.*; import com.jacob.activeX.ActiveXComponent; import com.jacob.com.Variant; import com.jacob.com.Dispatch; import com.rational.test.ft.*; import com.rational.test.ft.object.interfaces.*; i...
Markdown
UTF-8
12,994
3.25
3
[ "MulanPSL-2.0", "LicenseRef-scancode-mulanpsl-2.0-en", "LicenseRef-scancode-unknown-license-reference" ]
permissive
--- --- --- title: 运输 --- 在整个民国时期,运输的发展始终是中国经济最弱的一环。无论从微观或从宏观来看,这都是显而易见的。中国的主要工厂汉阳铁厂,在1919年生产1吨生铁成本是48.50元;而满洲本溪的日本铁厂,1915年生产1吨生铁成本只需22.00元。本溪本地产的焦炭5.74元1吨。由于粤汉铁路修筑进展缓慢,从300英里外的江西萍乡用木船运送焦炭到汉阳,每吨成本上升到24.54元。[96]由于上述两家铁厂都是从自己控制的矿山中得到原料,所以其生产成本的差异,绝非1915年和1919年的市场价格不同所致。 苦力劳动工钱低得令人难以置信,而在地方运输中起主要作用的脚夫经济效率更低。一位考察者报告称: ...
Python
UTF-8
950
3.15625
3
[]
no_license
def file_compare(file1,file2): count='' try: with open(file1) as fl1,open(file2) as fl2: f1=fl1.readlines() f2=fl2.readlines() count=0 for i in range(len(f1)): list1=list() if f1[i]!=f2[i]: for i1 in rang...
SQL
UTF-8
1,706
4
4
[]
no_license
/* 3. Stored Procedure Write a stored procedure that adds a lineitem into an order that already exists (AddLineItemSP.sql). This stored procedure will receive three parameters:  an orderid, a partid and a quantity. Issue an INSERT to the ORDERITEMS table. When the INSERT is executed, the trigger on INSERT for the ORD...
PHP
UTF-8
782
2.609375
3
[]
no_license
<?php namespace Potogan\DoctrineBundle\Query\Functions\Mysql; use Doctrine\ORM\Query\AST\Functions\FunctionNode; use Doctrine\ORM\Query\Parser; use Doctrine\ORM\Query\Lexer; use Doctrine\ORM\Query\SqlWalker; /** * BitAndGroupingFunction ::= "GROUP_AND_OR" "(" ArithmeticPrimary ")" */ class BitAndGrouping extends F...
TypeScript
UTF-8
3,823
2.734375
3
[ "MIT" ]
permissive
import { AgentClient } from "../src/AgentClient"; import { RestClient } from "../src/RestClient"; import { isValidSkillsWithPriorities } from "../src/Utils"; import { doesNotReject } from "assert"; import { SkillPriority } from "../src"; describe("AgentClient.ts", () => { let client: AgentClient; beforeEach(()...
Java
UTF-8
334
1.820313
2
[]
no_license
package br.com.jump.core.dao.pessoa.iface; import br.com.jump.model.enums.ETipoPessoa; import br.com.jump.model.pessoa.Cliente; import in.macor.core.dao.iface.IGenericDao; /** * Created by macorin on 05/08/14. */ public interface IClienteDao extends IGenericDao<Cliente, Long> { public Cliente findByPessoa(Long...
Markdown
UTF-8
823
2.53125
3
[ "Apache-2.0" ]
permissive
Sope ==== > Marathi, IPA: /sə/ /o/ /pə/ /e/ (Adjective: Achieved without great effort) **Sope** is set of utilities and library functions that helps with ETL development using **Apache Spark**. The project contains following sub-modules - *sope-spark* - *sope-etl* 1. **sope-spark**: This module contains library fu...
C#
UTF-8
1,207
3.40625
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CompositeMenu { public class Waitress { private IMenu _pancakeHouseMenu; private IMenu _dinerMenu; public Waitress(IMenu pancakeHouseMenu, IMenu dinerMenu) ...
JavaScript
UTF-8
2,478
2.640625
3
[]
no_license
var fileSystem = require('fs'); var Contact = require('../models/contact').init(); var contacts = [ { _id: guid(), name: 'Tony Stark', email: 'iamironman@email.com' }, { _id: guid(), name: 'Steve Rogers', email: 'captainamerica@email.com' }, { ...
Python
UTF-8
1,820
2.578125
3
[]
no_license
# ライブラリのインポート import sys # import heapq,copy import pprint as pp # from collections import deque # pypy3用 # import pypyjit # 再帰制御解放 # pypyjit.set_param('max_unroll_recursion=-1') # sys.setrecursionlimit(10**6) from logging import getLogger, StreamHandler, DEBUG # 入力のマクロ def II(): return int(sys.stdin.read...
Java
UHC
1,477
3.90625
4
[]
no_license
package java02_Control_01if.Exam; import java.util.Scanner; /* * ȭ ϴ ˷ ֱ * ⺻ ڵ忡  ȭϴ ̴. * * Ǯ ȭ ó * 1. Է ޴´. * 2. ù ° ° ؼ ù ° ũ ù ° Ѵ. * 3. ù ° ° ؼ ° ũ ° Ѵ. * 4. ù ° ° ؼ ù ° Ѵ. * * 3 4 ش. * 1. Է ޴´. * 2. ù ° ° ؼ ù ° ũ ù ° Ѵ. * 3. ù ° ° ؼ ° ũų ...
Python
UTF-8
361
3.578125
4
[]
no_license
class Queue: def __init__(self): self.queue = [] def enqueue(self, item): self.queue.append(item) def dequeue(self): x = None try: x = self.queue[0] del self.queue[0] except IndexError: pass return x def si...
SQL
UTF-8
97
3.0625
3
[]
no_license
SELECT COUNT(*) AS "Number of movies ending with tion" FROM movies WHERE title LIKE '%tion';
Java
UTF-8
280
1.859375
2
[]
no_license
package test.payload; import lombok.Data; import javax.validation.constraints.NotBlank; @Data public class IdTmpReq { @NotBlank public String id; public String getId() { return id; } public void setId(String id) { this.id = id; } }
Java
UTF-8
905
2.09375
2
[ "Apache-2.0" ]
permissive
package com.alibaba.dubbo.rpc; import com.alibaba.dubbo.common.URL; import org.apache.dubbo.rpc.ProtocolServer; import java.util.Collections; import java.util.List; @Deprecated public interface Protocol extends org.apache.dubbo.rpc.Protocol { <T> Exporter<T> export(Invoker<T> invoker) throws RpcException; ...
C#
UTF-8
5,014
2.609375
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; using System.Speech.Synthesis; using System.Threading; namespace Lee_y_Escribe { public partial clas...
Go
UTF-8
234
2.875
3
[]
no_license
package main import ( "fmt" "net/http" ) func sayhelloName(w http.ResponseWriter, r *http.Request){ fmt.Fprintf(w, "Go Web Hello World!") } func main() { http.HandleFunc("/", sayhelloName) http.ListenAndServe(":8083", nil) }
C
UTF-8
1,283
3.59375
4
[]
no_license
#include "msort.h" #include <stdlib.h> void merge(void **destination, void** leftArr, void** rightArr, int leftLength, int rightLength, Compare* compare){ int i = 0,j = 0,k = 0; for(; i < leftLength && j < rightLength;){ if(compare(leftArr[i], rightArr[j]) < 0){ des...
C
UTF-8
361
3.515625
4
[]
no_license
#include "lists.h" /** * sum_dlistint - finds sum of all node data values * @head: pointer to head of list * * Return: sum of node values */ int sum_dlistint(dlistint_t *head) { dlistint_t *temp; int sum = 0; if (!head) return (sum); temp = head; while (temp->next) { sum += temp->n; temp = temp->nex...
C++
UTF-8
2,989
2.546875
3
[]
no_license
#include "common.h" #include "detectLoop.h" #ifndef SLIMINST_H #define SLIMINST_H using namespace llvm; using namespace std; class ModuleMeta{ public: ModuleMeta(Module &M):__M(M), __maxF(0), __maxB(0), __pFofMaxB(0), __loopBBLs(new unordered_set<BasicBlock const*>()), __numBBLs(0), __numLoops(0), __numType1Loops(0)...
Java
UTF-8
355
2.359375
2
[]
no_license
package ro.jademy.carrental.cars; import ro.jademy.carrental.cars.parts.Engine; import java.math.BigDecimal; public class Dacia extends Car { public Dacia(String model, Integer year, Engine engine, CarDetails details, BigDecimal basePrice, boolean isRented) { super("Dacia", model, year, engine, details,...
Java
UTF-8
2,703
2.1875
2
[]
no_license
package com.itheima.health.controller; import com.alibaba.dubbo.config.annotation.Reference; import com.itheima.health.constant.MessageConstant; import com.itheima.health.utils.POIUtils; import com.itheima.health.entity.Result; import com.itheima.health.pojo.OrderSetting; import com.itheima.health.service.OrderSetting...
C#
UTF-8
1,241
2.625
3
[]
no_license
using System.Collections; using System.Collections.Generic; using UnityEngine; public class RandomArrowSpawner : MonoBehaviour { public GameObject arrowRightSpawner; public GameObject arrowLeftSpawner; public float spawnRate = 2f; float nextSpawn = 0.0f; int whatToSpawn; Vector2 whereToSpawn...
C++
UTF-8
825
2.90625
3
[]
no_license
#include<iostream> #include<cctype> #include<string> using namespace std; int main(){ string s1,s2,s3,s4; cin>>s1>>s2>>s3>>s4; int len1=s1.length()<s2.length()?s1.length():s2.length(); int len2=s3.length()<s4.length()?s3.length():s4.length(); char c1,c2; int c3; int i=0; for(;i<len1;i++){ if(s1...
Markdown
UTF-8
646
2.59375
3
[]
no_license
There are 4 different types of NoSQL databases: 1. Key-Value Store - Has a big hash table of keys and values (examples include Riak, Amazon S3) 2. Document-based Store - Stores documents made up of tagged elements (CouchDB, MongoDB) 3. Column-based Store - Each storage block contains data from only one column (HBase, ...
Python
UTF-8
1,184
3.359375
3
[]
no_license
# MNIST(Modified National Institude of Standards and Technology) # - 손으로 직접 쓴 숫자(필기체 숫자)들로 이루어진 데이터 셋 # - 0 ~ 9까지의 숫자 이미지로 구성되며, 60,000개의 트레이닝 데이터와 # 10,000개의 테스트 데이터로 이루어져 있음. # - 28x28 size import sys, os sys.path.append(os.pardir) # 부모 디렉토리의 파일을 가져 올 수 있도록 설정. import numpy as np from dataset.mnist import load...
PHP
UTF-8
4,962
2.859375
3
[]
no_license
<?php /** * Blog Helper class file. * * varios methods for use in the blog app * * Copyright (c) 2009 Carl Sutton ( dogmatic69 ) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @filesource * @copyright Copyright (c) 2009 Carl Sutton ( dogmatic69 ) *...
Python
UTF-8
682
3.3125
3
[]
no_license
#Name: Haira Aguilar #Date: 9/13/19 #Program Name: ping-log.py #Run Python IDLE #Ctrl + C to stop import subprocess, time, sys def ping(): while True: stat = subprocess.call(["ping", server], stdout = pingStat) print() if stat == 0: print("SERVER STATUS...
Python
UTF-8
2,141
2.640625
3
[]
no_license
import numpy as np import os import cv2 import pickle import random from sklearn.preprocessing import LabelEncoder from sklearn.preprocessing import OneHotEncoder from sklearn.model_selection import train_test_split DATADIR = ".\\dataset-original" CATEGORIES = ["cardboard","glass","metal","paper","plastic","trash"] IM...
Python
UTF-8
213
3.40625
3
[]
no_license
def indexes(s, word): res = [] for i in range(len(s)): if s[i] == word: res.append(i) print(res) indexes('mississippi', 's') indexes('mississippi', 'i') indexes('mississippi', 'a')
JavaScript
UTF-8
411
3.796875
4
[]
no_license
var obj = { a: 1, b: 2, c: 3 }; for (var p in obj) { console.log("The value of obj." + p + " is " + obj[p]); } /** if (someCondition) { doSomething(); } else if (someOtherCondition) { doSomeOtherThing(); } else if (yetAnotherCondition) { doYetAno...
Java
UTF-8
708
2
2
[]
no_license
package org.ucomplex.ucomplex.Modules.MessagesList.model; import java.util.ArrayList; import java.util.List; /** * --------------------------------------------------- * Created by Sermilion on 02/06/2017. * Project: UComplex * --------------------------------------------------- * <a href="http://www.ucomplex.org...
C++
UTF-8
3,223
3.015625
3
[ "Apache-2.0" ]
permissive
/** * This sketch is part of IOAbstraction, it shows how to use the EEPROM abstraction, * for which you can choose from NoEeprom, AvrEeprom and I2cAt24C based eeproms. * This example chooses AvrEeprom, but could equally be replaced by any of the others. * * This allows any libraries or code you write to work easil...
Python
UTF-8
544
2.609375
3
[ "BSD-3-Clause" ]
permissive
from numpy import isnan from wonambi import Dataset from .paths import mff_file d = Dataset(mff_file) def test_mff_read(): d.read_data(begtime=10, endtime=20) def test_mff_before_start(): data = d.read_data(begsam=-100, endsam=10) assert isnan(data.data[0][0, 0]) def test_mff_after_end(): n_sam...
Java
UTF-8
40,184
2.65625
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
package com.mixpanel.mixpanelapi; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Collection; import java.util.Date; import java.util.Iterator; import java.util.Map; import java.util.TimeZone; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; /** ...
Markdown
UTF-8
882
2.609375
3
[ "MIT" ]
permissive
--- id: "6F8ACC" date: "2019-08-18T15:53:00.000Z" title: "Facebook Page is Live" description: "" tags: - Social Media instagram: https://www.instagram.com/p/B1UUFsKnvCL/ titlecard: top --- This week I launched a Facebook page for Curvy and Trans. It mirrors a lot of the content here on Instagram, but also receives th...
Python
UTF-8
26,242
2.890625
3
[]
no_license
""" Class definition and utilities for the Local Outlier Factor tool. """ import time as _time import logging as _logging from array import array as _array import graphlab as _gl import graphlab.connect as _mt from graphlab.toolkits._model import CustomModel as _CustomModel import graphlab.toolkits._internal_utils as ...
Java
UTF-8
602
2.53125
3
[]
no_license
package fr.obd2Reader.command; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.ArrayList; public class EngineFuelRateCommand extends ObdCommand implements CompatibleCommand{ public EngineFuelRateCommand(OutputStream out, InputStream in){ super("01 5E", "Engin...
Markdown
UTF-8
8,985
2.734375
3
[]
no_license
--- copyright: years: 2017, 2018 lastupdated: "2018-05-17" --- {:new_window: target="\_blank"} {:shortdesc: .shortdesc} {:screen: .screen} {:codeblock: .codeblock} {:pre: .pre} # リソース・レベル・アクセス制御の構成 {: #configure_RLAC} リソース・レベル・アクセス制御を使用すれば、デバイスを管理するためにユーザーと API キーのアクセスを制御できます。 それぞれのユーザーや API キーで管理できる組織内のデバイスを定義す...
Markdown
UTF-8
12,719
2.53125
3
[ "CC-BY-4.0", "MIT" ]
permissive
--- title: CThreadPool 类 ms.date: 11/04/2016 f1_keywords: - CThreadPool - ATLUTIL/ATL::CThreadPool - ATLUTIL/ATL::CThreadPool::CThreadPool - ATLUTIL/ATL::CThreadPool::AddRef - ATLUTIL/ATL::CThreadPool::GetNumThreads - ATLUTIL/ATL::CThreadPool::GetQueueHandle - ATLUTIL/ATL::CThreadPool::GetSize - ATLUTIL/ATL::CThreadPoo...
TypeScript
UTF-8
3,560
2.53125
3
[]
no_license
import { Subject } from "rxjs"; import IPCMessageRequestModel from "../../../shared-network/ipc/models/IPCMessageRequestModel"; import IPCMessageResponseModel from "../../../shared-network/ipc/models/IPCMessageResponseModel"; import { fork } from "child_process"; import { forkOptions } from "../../../shared-network/ipc...
C
UTF-8
2,121
2.59375
3
[]
no_license
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_width_for_int.c :+: :+: :+: ...
Python
UTF-8
185
3.265625
3
[]
no_license
#!/usr/bin/env python3 x, y = 1, 1 num = 0 for a in range(30): num += 1 if a != 29: print("%7d"%x, end = ' ') else: print("%7d"%x) x, y = y, x + y
Markdown
UTF-8
6,398
3.8125
4
[]
permissive
--- layout: post title: Variance in Scala categories: [Blogging, Scala] tags: [scala, functional programming, variance] seo: date_modified: 2020-03-25 06:51:27 -0300 --- There are different types of polymorphism in Scala. Inheritance, Parametric polymorphism (Generics in Java), etc. We are concerned about Parametri...
C++
UTF-8
1,130
3.765625
4
[ "MIT" ]
permissive
// // Brief: Same as chapter5_4, only with 3 years of sales data and a 2D array // Topics: loops, 2d arrays // #include <iostream> int main () { using namespace std; const string months[12] = { "January", "February", "March", "April", "May", "June", "July", "August", "September...
C
UTF-8
11,551
3.3125
3
[ "Apache-2.0" ]
permissive
/** Functions for starting a subprocess and communicating with it. */ #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #include "capabilities.h" #include "subprocess.h" #define MAX_ERROR_OUTPUT_SIZE 1000 typedef struct { ...
C
UTF-8
2,410
2.546875
3
[]
no_license
#include <regx51.h> //we use keil c51 #include "gpio.h" #include "rtc1.h" //we use tmr1 for rtc //use black roman's zero cumulative error approach //this approach will generate an output pulse whose long-term accuracy depends only on the crystal/clock source //however, it does generate jitter between clocks:...
Python
UTF-8
10,158
2.90625
3
[]
no_license
import requests import datetime import json import time import boto3 import uuid import io import pandas as pd def createBucketName(bucketPrefix): """ Creates and returns a globally unique bucket name from the prefix provided using a uuid4. The generated bucket name must be between 3 and 63 chars long. ...
C++
GB18030
606
2.59375
3
[]
no_license
#ifndef MYDATABASE_H #define MYDATABASE_H #include"connectionpool.h" /* * ݿ * ʵݿ * :addData(QString const& strSql) * ɾ:deleteData(QString const& strSql) * :changeData(QString const& strSql) * :selectData(QString const& strSql) * */ class MyDatabase { private: //QString m_strPath; //ļ· public: MyDatab...
Java
UTF-8
487
1.9375
2
[]
no_license
package com.alphacat.vo; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.util.Map; /** * 方框标注:map中存放标签-结果键值对 * @author 161250102 */ @Data @AllArgsConstructor @NoArgsConstructor public class SquareVO { private int squareIndex; private int x; private i...
Java
UTF-8
20,858
1.710938
2
[]
no_license
package com.unisoft.algotrader.provider.ib.api.event; import com.unisoft.algotrader.model.event.data.Bar; import com.unisoft.algotrader.model.event.execution.ExecutionReport; import com.unisoft.algotrader.model.event.execution.Order; import com.unisoft.algotrader.model.refdata.Instrument; import com.unisoft.algotrader...
C#
UTF-8
3,637
2.5625
3
[]
no_license
using UnityEngine; namespace ImGui { /** * (0, 0) -> (w, 0) * | | * v v * (0, h) -> (w, h) * * root -> max * | | * v v * min --> span */ public class DrawContext { public readonly Vector2 root; public readonly float width, height; public float left { get { return ro...
Python
UTF-8
350
3.765625
4
[ "MIT" ]
permissive
# program to Display the pattern # * # * * # * * * # n inputs the number of lines n=input("Enter the limit: ") # num is set as * num="*" # nested for to printing each line for i in range(1,n+1): for j in range(1,i+1): # print num in each line and "," is important to print next output in saame line print num, # ...
SQL
WINDOWS-1252
221
3.03125
3
[]
no_license
--up_sal.sql create or replace procedure up_sal (vempno in emp.empno%type) --⿡ 7900 is begin update emp set sal = sal * 1.1 where empno = vempno end select * from emp where empno in(7900,7902)
Markdown
UTF-8
1,297
2.78125
3
[]
no_license
# Protofuf case Study ## Description You are tasked with building 2 applications: one that receives events and one that stores the events. These 2 applications must communicate with each other via Google Protocol Buffers. The first application receives logs of events via HTTP and must pass them to the second applicat...
Java
UTF-8
737
3.125
3
[]
no_license
package LoginBank; import java.util.Scanner; /** * * @author dell */ public class DataInput { public int getIntInput(String msg, int min, int max) { Scanner sc = new Scanner(System.in); boolean check = true; int result = 0; while (check) { System.out.print(msg); ...
Rust
UTF-8
4,194
3.15625
3
[ "MIT" ]
permissive
use super::*; use std::fs::metadata; use std::path::Path; type Subject = Disk; const PATH: &'static str = "/tmp/superpermutation-test"; fn subject(test_id: &'static str, gzip: bool) -> Subject { let path = format!("{}/{}", PATH, test_id); Subject::new(path, gzip) } fn bucket() -> VecDeque<Candidate> { ...
PHP
UTF-8
429
2.71875
3
[]
no_license
<?php declare(strict_types=1); namespace Knp\Rad\User\Salt\Generator; use Knp\Rad\User\Salt\Generator; class PseudoRandomBytesGenerator implements Generator { private int $length; public function __construct(int $length) { $this->length = $length; } /** * {@inheritdoc} */ ...
Python
UTF-8
2,899
3.421875
3
[]
no_license
import scipy.stats import numpy as np import point_process.poisson import matplotlib.pyplot as plt def uniform_disk(x, y, r): """ Равномерно распределённая в круге точка :param x: координата X центра круга :param y: координата Y центра круга :param r: радиус круга :return: """...
Java
UTF-8
3,909
2.109375
2
[ "Apache-2.0" ]
permissive
/** * Copyright (C) 2014 Roman Ripp * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
Java
UTF-8
544
2.484375
2
[]
no_license
package com.fivehl.tp2.Factory; import com.fivehl.tp2.Model.CreditCard; import com.fivehl.tp2.util.GenericHelper; public class CreditCardFactory { public static CreditCard createCreditCard(String nameOnCard, String expiredDate ) { String cardNumber = GenericHelper.generateId(); CreditCard credit...
Python
UTF-8
839
3.3125
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env python3 # silly exercise that does nothing useful # this is a learning exercise to build on equally useless things. import os import random import subprocess banner = "====================" print(banner) print("Welcome to File Picker 3000\n\n") fileloc = str(input("Type location to pick random files\n\...
Markdown
UTF-8
4,599
2.71875
3
[]
no_license
# StoredProcedures Plik opisujący załączone procedury. W bazie danych każda z tych procedur jest utworzona w odrębnym schemacie, agregującym encje z wybranego modułu aplikacji w celu łatwiejszego nadawania uprawnień oraz przejrzystości bazy. ----------------------------------------------------------------------------...
Shell
UTF-8
349
3.625
4
[ "MIT" ]
permissive
#!/bin/sh # Module Name : user.sh # Description : Module for simple user-related functionalities # Naming Convention : uppercase & leading __ for global variables, lowercase for local variables # function user_is_root : check if current user is root user_is_root () { if [ $EUID == 0 ]; then return 1 e...
Java
UTF-8
4,726
2.015625
2
[ "Apache-2.0" ]
permissive
package com.hutchgrant.contacts; import java.util.Collections; import java.util.LinkedList; import java.util.List; import com.hutchgrant.Elements.Invite; import com.hutchgrant.Elements.LifeInvite; import com.hutchgrant.app.TunaApp; import com.hutchgrant.coconut.R; import com.nostra13.universalimageloader.core.Display...
Java
UTF-8
819
2.109375
2
[]
no_license
package com.ljm.springbootdemo.properteis; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.PropertySource; @Configuration //使用配置加载器 @ConfigurationProperties(prefix = "loginvo.lijm") /...
Python
UTF-8
4,985
2.703125
3
[]
no_license
# !usr/bin/env python import os import sys import yaml import csv import urllib import urllib.request import urllib.error import re # 版本列表 VERSION_DICT = { '1.7.10': '2020709689:4449', '1.8.9': '2020709689:5806', '1.9.4': '2020709689:6084', '1.10.2': '2020709689:6170', '1.11....
Java
UTF-8
409
1.640625
2
[]
no_license
package com.laoh.core.annotation; import com.laoh.core.WxConstants; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * @author hyd * @date 2020/8/15 12:49 */ @Retention(RetentionPolicy.RUNTIME) @Tar...
Ruby
UTF-8
1,976
2.609375
3
[]
no_license
require 'rubygems' require 'nokogiri' require 'open-uri' HEADERS = ["photo", "title", "price", "quantity", "availible", "ends"] DIAPER_NAMES = ["bububebe", "elemental", "lil joeys", "rumparooz", "bright star baby", "crankypants"] start_url = "http://hyenacart.com/stores/Spots_corner/index.php?title=1&desc=1&tags=1...
PHP
UTF-8
850
2.609375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: shumer * Date: 6/16/14 * Time: 1:09 PM */ class Instruction extends CActiveRecord { public static function model($className = __CLASS__) { return parent::model($className); } public function rules() { return array( array('exercise_...
Markdown
UTF-8
1,653
2.609375
3
[ "WTFPL" ]
permissive
# AAXtoMP3 Read the original complete instruction @ https://github.com/KrumpetPirate/AAXtoMP3 This is a (much) shorter summary of MacOS practice. Essentially you want to find your 8 char long AuthCode by any means. The AuthCode remains same for same Audible account, across all your purchased Audible audiobooks. The n...
Python
UTF-8
2,228
2.703125
3
[]
no_license
from kivy.app import App from kivy.uix.button import Button from kivy.core.window import Window from kivy.uix.screenmanager import Screen from kivy.properties import ObjectProperty from kivy.lang import Builder Builder.load_file(r'kivy_env\scr\nonMD\sell_public\sell_public.kv') from scr.nonMD.database_functions imp...
PHP
UTF-8
811
3
3
[ "Apache-2.0" ]
permissive
<?php /** * DropLeft function * * dropLeft :: [a, b] Int c -> [b] * @package bingo-functional * @author Lochemem Bruno Michael * @license Apache 2.0 */ namespace Chemem\Bingo\Functional\Algorithms; const dropLeft = "Chemem\\Bingo\\Functional\\Algorithms\\dropLeft"; function dropLeft(array $collection, int $...
Python
UTF-8
1,463
2.828125
3
[ "MIT" ]
permissive
from os import PathLike from typing import Optional, Union, Tuple, List import pygame from pygame.color import Color from pygame.font import Font from pygame_widgets.widget import WidgetBase class Frame(WidgetBase): Color = Union[ Color, Tuple[int, int, int], List[int], int, Tuple[int, int, int, int] ...
JavaScript
UTF-8
2,555
2.875
3
[]
no_license
var db = firebase.firestore(); var List = [] function loadPage() { getUserLogged().then(user => { cvUser(user.uid).then(list => { List = list loadDataListCV(list) }) }) } function getUserLogged() { return new Promise((resove, reject) => { firebase.auth().onA...
Python
UTF-8
3,200
2.984375
3
[]
no_license
import os import torch import time import numpy as np import matplotlib.pyplot as plt import copy class TextTrainer: def __init__(self, train_dataloader, val_dataloader, model, criterion, optimizer, scheduler, early_stoper, EPOCH): self.train_dataloader = train_dataloader self.val_dataloader = va...
Java
UTF-8
4,642
2.515625
3
[]
no_license
package mapperreduce; import mapperreduce.mappers.*; import mapperreduce.mr_beans.Bean01; import mapperreduce.partition.Bean01Partition; import mapperreduce.reducers.*; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.NullWritable; import org.apache.hadoop.io.Text;...
C#
UTF-8
1,690
3.046875
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NatlParkTracker { /// <summary> /// This is information about a visit to a park /// </summary> /// public enum TripType { Business, Wi...
Markdown
UTF-8
3,576
2.890625
3
[ "LicenseRef-scancode-public-domain" ]
permissive
> *The following text is extracted and transformed from the mylookout.com privacy policy that was archived on 2017-09-04. Please check the [original snapshot on the Wayback Machine](https://web.archive.org/web/20170904134958id_/https%3A//www.mylookout.com/about/privacy) for the most accurate reproduction.* # | Privacy...
C
UTF-8
2,887
4.0625
4
[]
no_license
#include<stdio.h> #define PI 3.14 int main(){ // Format Specifier - It tells the compiler what type of data is in a varibale during taking input and displaying output to the user. // For Example:- // printf("This is a good boy %a.bf", var) will print var with b decimal points in a 'a' character space. ...
Java
UTF-8
3,829
2.359375
2
[]
no_license
package com.Smileyes.nsfw.user.service.impl; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.OutputStream; import java.util.List; import javax.annotation.Resource; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.ss.usermodel.Workbook; import or...
C#
UTF-8
2,199
2.890625
3
[]
no_license
using Microsoft.Extensions.Localization; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Reflection; using System.Threading.Tasks; namespace WebApplication1.Data { public class Device { private readonly IStringLocalizer<Device> _loca...
Java
UTF-8
8,578
2.3125
2
[]
no_license
package mojang.entity.projectile; import mojang.*; import mojang.entity.Entity; import mojang.entity.LivingEntity; import mojang.tags.CompoundTag; import mojang.world.World; import java.io.IOException; import java.util.List; public class Arrow extends Entity { private int c = -1; private int d = -1; privat...
Python
UTF-8
1,235
2.625
3
[]
no_license
from django.core.management.base import BaseCommand from users.models import User class Command(BaseCommand): help = 'Fill DB with test users' def add_arguments(self, parser): parser.add_argument('count', type=int) def handle(self, *args, **options): count = options['count'] User...
JavaScript
UTF-8
2,395
3.0625
3
[]
no_license
import React, {Component} from "react" import Square from "./Square" class ParentComponent extends Component { constructor() { super() this.state = { colors: ["white", "white", "white", "white"] } this.handleClick = this.handleClick.bind(this) this.handleClick2 =...