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,503
3.6875
4
[]
no_license
package w06.layoutManager; import javax.swing.*; import java.awt.*; public class BorderLayoutManager extends JFrame { public static final int WIDTH = 500; public static final int HEIGHT = 400; public BorderLayoutManager(){ super("BorderLayout Manager Demo"); setSize(WIDTH, ...
Java
UTF-8
3,228
2.140625
2
[]
no_license
package com.example.demo.entities; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence...
Python
UTF-8
2,295
2.78125
3
[]
no_license
'''UPP unit test module''' from __future__ import print_function import unittest import T5_worldgen.upp as upp class TestUpp(unittest.TestCase): '''UPP unit test class''' def test_upp_str1(self): '''UPP: Test _set str (1)''' siz = upp.Size() siz._set('A') self.assertEqual(str...
Java
UTF-8
830
3.859375
4
[]
no_license
package dynamicProgramming; public class ClimbingStairs { public int climbStairs(int n) { if(n < 2) { return 1; } /* 1. state */ int[] f = new int[n+1]; /* 2. initiate */ f[0] = 1; f[1] = 1; /* 3. function */ for(int i = 2; i <= n; i++) ...
Markdown
UTF-8
3,008
3.46875
3
[]
no_license
# N + 1 queries problem Consider the following code, which finds 10 clients and prints their postcodes: ```ruby clients = Client.limit(10) clients.each do |client| puts client.address.postcode end ``` This code looks fine at the first sight. But the problem lies within the total number of queries executed. The a...
Markdown
UTF-8
872
2.6875
3
[]
no_license
# 查询推广活动ID ## URL [https://www.growingio.com/api/v1/projects/{project\_uid}/meta/campaigns](https://www.growingio.com/api/v1/projects/{project_uid}/meta/campaigns) ## 请求类型 GET ## 请求头参数 公共头部请参考[公共请求头参数](../../authenticate.md)。 ## 参数说明与示例 {% tabs %} {% tab title="请求参数" %} | 路径参数 | 类型 | 是否必传 | 说明 | | :--- | :--- |...
Java
UTF-8
2,446
3.59375
4
[]
no_license
package araay; public class List <T> { private ListNode< T > firstNode; private ListNode< T > lastNode; public String name; public List() { this( "list" ); } public List( String listName ) { name = listName; firstNode = lastNode = null; } // insert item at front of List public void insertAtF...
Markdown
UTF-8
4,262
2.890625
3
[]
no_license
# 3D_houses_numpy * Developer name: Régis Schulze * 3D House Project * Repository: 3D_houses * Type of Challenge: Learning & Consolidation * Duration: 2 weeks * Deadline: 25/02/21 5:00 PM * Deployment strategy : Github page | Powerpoint | Spyder * Team challenge : solo ## Mission objectives Consolidate the knowledge i...
C++
UTF-8
606
2.734375
3
[]
no_license
#include<bits/stdc++.h> using namespace std; void printPermutations(string ques, string ans) { if (ques.size() == 0) { cout << ans << endl; return; } for (int i = 0; i < ques.size(); i++) { string ch = ques.substr(i, 1); string lqpart = ques.substr(0, i); string rqpart = ques.substr(i + 1); string ro...
JavaScript
UTF-8
2,656
2.84375
3
[]
no_license
'use strict'; var barista = require('seed-barista'); var expect = require('chai').expect; var styles = ` body{ width: 100%; margin: 0; background-color: #C9D6FF; background: linear-gradient(to right, #E2E2E2, #C9D6FF); } .nav-items { list-style: none; margin: 0; background: linear-g...
Python
UTF-8
815
2.796875
3
[]
no_license
import page1 as pg from tkinter import * window=Tk() n=IntVar() m=IntVar() l3=Label(window, text="Number of main subjects you want to add", height="3", width="30") l4=Label(window, text="Number extra subjects you want to add", height="3", width="30") l1=Label(window, text="First Name", height="3", width="30") l...
Shell
UTF-8
324
2.75
3
[]
no_license
#!/bin/sh set -e if [ -f etc/config.ini ];then cp etc/config.ini ./config.ini.bak fi rm -rf ./lib ./etc gbsppt tar -xvf gbsppt.tar mkdir lib etc if [ -f ./config.ini.bak ];then mv ./config.ini.bak ./etc/config.ini rm ./config.ini else mv cnofig.ini ./etc/ fi mv *.so ./lib/ echo "update successfully...
Markdown
UTF-8
3,300
2.984375
3
[ "MIT" ]
permissive
# DescribeDomainRealTimeReqHitRateData {#reference1612 .reference} You can call the DescribeDomainRealTimeReqHitRateData operation to query the request hit rate with a time granularity of one minute. **Note:** - You can query the data within the last seven days. The time range specified by the StartTime and EndTi...
C#
UTF-8
918
3.75
4
[ "MIT" ]
permissive
namespace Sortable_Collection.Sorters { using System; using System.Collections.Generic; using Sortable_Collection.Contracts; public class InsertionSorter<T> : ISorter<T> where T : IComparable<T> { public void Sort(IList<T> collection) { for (int firstUnsortedIndex = 0;...
Markdown
UTF-8
4,015
2.796875
3
[ "CC-BY-4.0", "MIT" ]
permissive
--- title: Azure Application Gateway frontend IP address configuration description: This article describes how to configure the Azure Application Gateway frontend IP address. services: application-gateway author: greg-lindsay ms.service: application-gateway ms.topic: conceptual ms.date: 02/26/2023 ms.author: greglin --...
Java
UTF-8
1,174
1.804688
2
[]
no_license
/******************************************************************************* * Copyright (c) 1998, 2013 Oracle and/or its affiliates. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1...
C++
UTF-8
5,270
3.046875
3
[ "MIT" ]
permissive
#pragma once #include <cstdint> #include <utility> #include <vector> #include "../bitmap/rgba.h" namespace geometrize { class Bitmap; class Circle; class Ellipse; class Line; class Polyline; class QuadraticBezier; class Shape; class Rectangle; class RotatedEllipse; class RotatedRectangle; class Triangle; class Scanl...
PHP
UTF-8
774
2.90625
3
[]
no_license
<?php include dirname( __FILE__ ) . '/class-list.php'; class kickpress_xml_list extends kickpress_list { protected $_list_file; protected $_all_items; public function input( $params ) { $params['options'] = array( 'all' => $this->_all_items ); // options are in an xml list $file = sprintf( '%s/lists/...
Markdown
UTF-8
15,400
2.984375
3
[]
no_license
<properties linkid="dev-nodejs-how-to-service-bus-queues" urlDisplayName="Queue Service" pageTitle="How to use the queue service (Node.js) - Windows Azure" metaKeywords="Windows Azure Queue Service get messages Node.js" metaDescription="Learn how to use the Windows Azure Queue service to create and delete queues, and i...
Python
UTF-8
65
3.453125
3
[ "MIT" ]
permissive
sum=0 for i in range(5): n=int(input()) sum+=n print(sum)
SQL
UTF-8
2,360
3.1875
3
[ "Apache-2.0" ]
permissive
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET search_path = report, pg_catalog; SET default_tablespace = ''; SET default_with_oids = fals...
Python
UTF-8
516
3.1875
3
[]
no_license
# -*- coding: utf-8 -*- import numpy as np import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt labels = ['Frogs', 'Hogs', 'Dogs', 'Logs'] sizes = [15, 30, 45, 10] colors = ['yellowgreen', 'gold', 'lightskyblue', 'lightcoral'] explode = (0, 0.1, 0, 0) # distance to the center of a circle, show '...
C++
UTF-8
216
2.65625
3
[]
no_license
#ifndef ARMOR_H #define ARMOR_H #include <string> struct Armor { std::string mName; int mArmorValue; int mSellValue; // usable in the store only, to set sale price, but can't be sold back. }; #endif // ARMOR_H
Java
UTF-8
553
2.515625
3
[]
no_license
package config; import java.sql.*; public class JDBCConnection { static String url="jdbc:mysql://localhost:3306/pcsdb"; static String username="root"; static String password="Rahul&1802"; public static Connection conn=null; public static Connection getDBConnection() { try { Class.forName("com.mysql.jdbc.Drive...
PHP
UTF-8
2,831
3.890625
4
[]
no_license
<?php // Média function calculaMedia($nota1, $nota2, $nota3, $nota4){ return ($nota1 + $nota2 + $nota3 + $nota4) / 4; } // Calculadora If function calculadoraIf($operacao, $valor1, $valor2){ if($operacao == "somar"){ return $valor1 + $valor2; } elseif($op...
Java
UTF-8
259
1.828125
2
[]
no_license
package com.hsbc.happytrip.utilities; import com.hsbc.happytrip.models.Airline; public class AirlineApp { public static void main(String[] args) { // TODO Auto-generated method stub //create an object Airline airline=new Airline(); } }
Python
UTF-8
5,153
3.125
3
[]
no_license
# Uses python3 import sys import numpy as np import math def binary_search_index_right(a,left,right,x): #left, right = 0, len(a) if x<a[left]: return left-0.5 elif x>=a[right]: return right+0.5 if right<=left: print("haaaaaa") return right else: ...
Markdown
UTF-8
2,173
2.78125
3
[]
no_license
[TOC] ## 分支说明 * master: 包含PHP/Nginx/MySQL/Redis * mailhog: 包含PHP/Nginx/MySQL/Redis/Mailhog,邮件服务器 ## 目录说明 - data:存放redis,mysql数据 - doc:暂无作用 - etc:存放各个服务的配置 > 其中最重要的是site目录,所有站点的nginx配置全部存放在该目录下 - log:存放各个服务的日志 ## 文件说明 - .env:管理各个服务的版本和基本配置 > 其中有个关键配置项WORKSPACE_DIR,用于设置nginx服务器的工作目录 ## 准备工作 1. `git c...
Java
UTF-8
684
2.40625
2
[]
no_license
package cn.com.ssdut.forum.exception; /** * 基础运行时异常 * */ public class BaseRuntimeException extends RuntimeException { private static final long serialVersionUID = 1431341934573539432L; /** * 实例化一个基础运行时异常 * @param msg 异常消息 */ public BaseRuntimeException(String msg) { super(msg); } /** * 实例化一个基础运...
C++
UTF-8
2,846
3.65625
4
[]
no_license
/* Given a binary array nums, you should delete one element from it. Return the size of the longest non-empty subarray containing only 1's in the resulting array. Return 0 if there is no such subarray. Example 1: Input: nums = [1,1,0,1] Output: 3 Explanation: After deleting the number in position 2, [1,1,1] contains...
TypeScript
UTF-8
1,790
2.78125
3
[]
no_license
import { Product } from './product.model'; import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { MatSnackBar } from '@angular/material/snack-bar'; import { Observable } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class ProductService { baseUrl: string ...
Markdown
UTF-8
496
2.9375
3
[ "MIT" ]
permissive
# Core Data Structures Tests and implementations for common data structures. This repo contains common data structures I wrote myself to get a better understanding of them. Most of them are written in JavaScript ES6, in order to familiarize myself with the new syntax available for building "classes". This project is...
C
UTF-8
5,428
2.671875
3
[]
no_license
//***************************************************************************** // // command.c - parse the commands user input from uart0 // //***************************************************************************** #include "hw_types.h" #include "uartstdio.h" #include "sysctl.h" #include "lwiplib.h" #in...
Java
UTF-8
4,745
2.140625
2
[ "MIT" ]
permissive
package com.raise.activity; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.os.Looper; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.ImageView; import android.widget.TextView; impor...
JavaScript
UTF-8
647
2.859375
3
[ "MIT" ]
permissive
const daysInMilliseconds = require('./daysInMilliseconds.js'); module.exports = function getDateFunc(time) { return function(data) { const todayEpoch = new Date().getTime(); const fileAgeLimit = todayEpoch - daysInMilliseconds(time); const split = data.split(' '); const date = split .reduce((n, ...
Shell
UTF-8
5,344
3.84375
4
[ "MIT" ]
permissive
#!/usr/bin/env bash KV_BASEDIR=$(dirname "$0") KV_SCRIPT="${KV_BASEDIR}/"kv-sh DB_DEFAULTS_DIR="" DB_DIR="/tmp/.kv-test" . "${KV_SCRIPT}" function setup_usbip() { echo "Setting up USB IP" modprobe usbip_core modprobe usbip_host modprobe vhci-hcd usbipd -D echo "" echo "" } function set_server...
Shell
UTF-8
363
2.546875
3
[ "MIT" ]
permissive
#!/bin/bash PATH="/usr/local/bin:$PATH" ###### fc_input start ###### fc_input="$1" ###### fc_input end ###### fc_output="$(echo "${fc_input}" | sed '{ s/\(NSString\ *\*\ *const *[a-zA-z0-9]*\)\ *=\ *.*;/extern \1;/ s/\(int *const *[a-zA-z0-9]*\)\ *=\ *.*;/extern \1;/ }')" ###### fc_output start ###### echo ...
Java
UTF-8
520
2.1875
2
[ "Apache-2.0" ]
permissive
package org.ns.vk.cachegrabber; import org.apache.http.client.HttpClient; import org.apache.http.impl.client.HttpClientBuilder; import org.ns.ioc.Factory; /** * * @author stupak */ public class HttpClientFactory implements Factory<HttpClient> { private HttpClient httpClient; @Override public...
PHP
UTF-8
2,899
3.140625
3
[ "GPL-2.0-only", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace Drupal\commerce_payment; /** * Represents a credit card type. */ final class CreditCardType { /** * The credit card type ID. * * @var string */ protected $id; /** * The credit card type label. * * @var string */ protected $label; /** * The credit card type num...
Python
UTF-8
679
2.984375
3
[]
no_license
import aiohttp import asyncio import datetime async def retrieve(session, i): async with session.get('http://localhost:8030') as response: payload = await response.json() if i % 1000 == 0: print(i) async def main(n=100): tasks = [] async with aiohttp.ClientSession() as session:...
C
UTF-8
289
3.53125
4
[]
no_license
#include <stdio.h> float berechnenQuadrat (float Laenge, float Breit) { float flaechen = Laenge * Breit; return flaechen; } int main (void){ float berechnenQuadrat (float x, float y); float flaechen = berechnenQuadrat( 15.0, 50.0); printf("A area é:%f", flaechen); return 0; }
Java
UTF-8
282
1.617188
2
[]
no_license
package me.namila.rx.reactivespringboot.core.repository; import me.namila.rx.reactivespringboot.core.model.DepartmentModel; import org.springframework.stereotype.Repository; @Repository public interface DepartmentRepository extends GenericRepository<DepartmentModel, String> { }
Java
UTF-8
2,311
2.203125
2
[]
no_license
package org.celllife.idart.database.hibernate; import java.sql.Date; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; @Entity (name ="patientviralload") public class PatientViralLoad { @I...
C++
UTF-8
2,971
2.78125
3
[]
no_license
#include "FileInfo.h" //---------------------------------------------------------------------- FileInfo::FileInfo( QObject* parent ) : QObject( parent ), m_FileInfo( nullptr ) { } //---------------------------------------------------------------------- FileInfo::FileInfo( const QUrl& url, QObject* parent ) ...
JavaScript
UTF-8
967
2.640625
3
[]
no_license
var url = require('url'); var path = require('path'); module.exports = { // takes in small /ms.jpg path and changes to url of original size at /o.jpg getLargeImg: function(address) { var oldUrl = url.parse(address); var oldPath = path.parse(oldUrl.pathname); // set new base in oldPath to be o.jpg ...
Python
UTF-8
742
3.5625
4
[]
no_license
pieList = ["Pecan", "Apple Crisp", "Bean", "Banoffee", "Black Bun", "Blueberry", "Buko", "Burek", "Tamale", "Steak"] pieOrder = list() flag = "y" while flag != "n": print(f"Welcome to the House of Pies! Here are oure Pies:\n\n{' _ '*30}\n(1) Pecan, (2) Apple Crisp, (3) Bean, (4) Banoffee, (5) Black Bun, (6) B...
Java
UTF-8
1,347
3.078125
3
[]
no_license
package better_write.Java_NIO.learn_api.Buffer_api.P1; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.List; /** * \* Created with IntelliJ IDEA. * \* User: LinZiYu * \* Date: 2020/4/2 * \* Time: 20:02 * \* Description: * \ */ public class T6 { public static void main(String[] arg...
Java
UTF-8
502
2.140625
2
[]
no_license
package com.baidu.unbiz.modules.pool; import java.util.List; import com.baidu.unbiz.common.logger.LoggerSupport; /** * 批处理回声器 * * @author <a href="mailto:xuchen06@baidu.com">xuc</a> * @version create on 2015-3-10 上午11:07:27 */ public class EchoExecutor extends LoggerSupport implements IBatchExecuto...
Java
UTF-8
4,097
2.84375
3
[]
no_license
package br.mia.Controller; import java.util.Collection; import java.util.Iterator; import java.util.Set; public class ClauseSet implements Set<Clause> { protected Node head = new Node(null); protected Node tail = new Node(null); protected int size; public ClauseSet() { clear(); } publi...
JavaScript
UTF-8
1,019
3.015625
3
[]
no_license
// Attack related actions const getWeaponAttack = (weapon) => { if (!weapon) { return 10; } const wepAttacks = { Fist: 20, Knife: 40, Dagger: 60, 'Short sword': 80, 'Long sword': 100, } return wepAttacks[weapon]; } const getAttackRange = (actor) => { const level = actor.stats.l...
JavaScript
UTF-8
5,079
2.65625
3
[]
no_license
import React, { useState, useEffect } from "react"; import "./App.css"; import firebase from "firebase"; import "firebase/firestore"; import StyledFirebaseAuth from "react-firebaseui/StyledFirebaseAuth"; export default function App(props) { const [enemies, setEnemies] = useState([]); // store const [newEnemy, setN...
Java
UTF-8
1,168
1.851563
2
[ "Apache-2.0" ]
permissive
package org.folio.config; import java.util.HashMap; import java.util.Map; import javax.annotation.PreDestroy; import org.apache.kafka.clients.admin.AdminClientConfig; import org.folio.kafka.KafkaConfig; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean;...
Python
UTF-8
21,625
2.65625
3
[]
no_license
import numpy as np from .utils.cp_compat import get_array_module from .utils import assertion, dtype from .math_utils import eigen, linalg """ Many algorithms are taken from http://niaohe.ise.illinois.edu/IE598/lasso_demo/index.html """ AVAILABLE_METHODS = ['ista', 'cd', 'acc_ista', 'fista', 'parallel_cd', 'admm'] ...
Java
UTF-8
7,334
2.28125
2
[]
no_license
package aaafcKeyManage.PairingDemo; import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.Enumeration; import java.util.Vector; import javax.swing.JButton; import javax.swing.JComboBox; import javax.swing.JFrame; import javax.swing.JLabel; import j...
Swift
UTF-8
2,720
3.09375
3
[]
no_license
// // PopupTableViewController.swift // Fridge to Food // // Created by Debanik Purkayastha on 12/24/19. // Copyright © 2019 Debanik Purkayastha. All rights reserved. // import UIKit import PopupDialog final class PopupTableViewController: UIViewController { // MARK: Public /// The PopupDialog t...
C++
UTF-8
1,113
3.125
3
[]
no_license
/* Accepted. Time = 7.04s. Need to improve.*/ #include <cstdio> #include <iostream> #include <queue> #include <string> #include <vector> using namespace std; struct element { string str; int mod; }; string bfs(int n) { vector<bool> v(n,false); queue<element> q; element start,a,b; int x,y; ...
Java
GB18030
283
2.53125
3
[]
no_license
package ln.spring.test; /** * * @author WQL *springľ̬ */ public class SFactory { public static Person getPerson(String flag) { if(flag.equalsIgnoreCase("teacher")) { return new Teacher(); }else { return new Student(); } } }
Python
UTF-8
956
3.453125
3
[]
no_license
class Solution: def findLengthOfShortestSubarray(self, arr: List[int]) -> int: if len(arr) == 1: return 0 ## from front, find first increasing order: a_1, a_2, ... a_i first_b = len(arr)-1 for i in range(len(arr) - 1): if arr[i] > arr[i + 1]: f...
Shell
UTF-8
2,678
4.1875
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # TODO: Consider reimplementing this in Python or Go and adding proper support # for my use cases: # - Conditioning on terminal/GUI # - Conditioning on local/remote (remote is usually over SSH). # - Configuring if a new terminal window should be opened when used from a # terminal # - Configuring ...
Java
UTF-8
1,032
2.203125
2
[]
no_license
package com.social.instagram.service; import com.social.instagram.domain.Account; import com.social.instagram.exception.UserIdDuplicatedException; import com.social.instagram.exception.UserNotAccountException; import com.social.instagram.repository.AccountRepository; import lombok.RequiredArgsConstructor; import org.s...
TypeScript
UTF-8
633
2.703125
3
[]
no_license
import { FsmStateEnum } from "./FsmStateEnum"; export default class FsmState { private state : FsmStateEnum = null; private duration : number = 0; private node : cc.Node; private nextState : FsmStateEnum = null; init(node : cc.Node, state : FsmStateEnum) { this.node = node; this.s...
Java
GB18030
4,552
3.296875
3
[]
no_license
package com.wky.ann; import java.util.List; import com.wky.dbUtils.Matrix; import com.wky.dbUtils.ReadFile; /** * * @author wky * @date 2015-4-15 * @description ʵݹһ */ public class DataNormalization { //ԭʼݽйһõ public static void DataNormalize(){ String fileName = "E:/ʳƷȫھ/ʳƷݷ/ģ/ʵ/ann.txt"; //ÿһԪظ int l...
Swift
UTF-8
3,385
2.640625
3
[]
no_license
// // udp-server.swift // sobt // // Created by Billy He on 2016-10-15. // Copyright © 2016 Billy He. All rights reserved. // import Foundation class UDPServer { private let port: UInt16; private var udpSocket: SobtLib.Socket.UDPSocket? = nil; private var connections = Dictionary<UInt64, ConnectionData>(); ...
Java
UTF-8
1,130
2.5625
3
[]
no_license
package entity; public class Entity { private String id; private String name; private String description; private String link; private String dat;//date and time public Entity() { } public Entity(String id, String name, String description, String link,String dat) { this.id=id; this.name=name; this.desc...
C++
UTF-8
937
2.609375
3
[]
no_license
#include "gaussSeidel.h" GaussSeidel::GaussSeidel(std::shared_ptr<Discretization> discretization) : PressureSolver(discretization) { } void GaussSeidel::iterate() const { double factor = 0.5 * (std::pow(discretization_->dx(), 2) * std::pow(discretization_->dy(), 2)) / (std::pow(discretization_->dx()...
C#
UTF-8
1,038
3.78125
4
[]
no_license
// Fig. 4.12: GradeBook.cs // GradeBook class with a constructor to initialize the course name. // Jennifer Stegina using System; public class GradeBook { // auto-implemented property CourseName implicitly created an // instance variable for this GradeBook's course name public string CourseNam...
C#
UTF-8
907
2.640625
3
[ "Apache-2.0" ]
permissive
 namespace SF.Entitys.Abstraction { using System; /// <summary> /// Metadata information about the entity last update /// </summary> /// <typeparam name="TUpdatedBy">The identifier or entity type</typeparam> public interface IHaveLocalUpdatedMeta<TUpdatedBy> { /// <summary> ...
Markdown
UTF-8
19,015
3.171875
3
[]
no_license
Title: Create your backlog | Visual Studio Online Description: Add items, plan, order, and estimate your backlog of deliverables - Visual Studio Online and Team Foundation Server ms.TocTitle: Create your backlog ms.ContentId: 04df6b31-ef6c-4285-81a6-96768f03ecf4 # Create your backlog Your product backlog corresponds t...
C
UTF-8
306
3.953125
4
[]
no_license
#include <stdio.h> int main() { int num1 = 10, num2 = 2, result1, result2; // Arithmetic operators result1 = num1 / num2; // quotient result2 = num1 % num2; // remainder printf("Result1: %d \n", result1); printf("Result2: %d \n", result2); printf("5/2.0 : %d \n", (5 / 2)); return 0; }
Python
UTF-8
193
3.703125
4
[ "MIT" ]
permissive
user_string = input("Please enter string") reversed_string = "" for item in range(len(user_string) -1, -1, -1): reversed_string += user_string[item] print("reversed: " + reversed_string)
Java
UTF-8
597
2.40625
2
[]
no_license
package items; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import users.User; public abstract class Item { final protected String url = "jdbc:mysql://localhost:3306/"; protected Connection connection; protected Sta...
Shell
UTF-8
1,899
3.640625
4
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
set -e # Arguments PROJECT=$1 SOURCE_DIR=$2 BUILD_DIR=$3 CURR_DIR=$(pwd) # Turn relative paths into absolute paths. if [ "${SOURCE_DIR:0:1}" != "/" ]; then SOURCE_DIR=${CURR_DIR}/${SOURCE_DIR} fi if [ "${BUILD_DIR:0:1}" != "/" ]; then BUILD_DIR=${CURR_DIR}/${BUILD_DIR} fi if ! $USE_CACHE; then echo "---- Not up...
PHP
UTF-8
546
2.90625
3
[]
no_license
<?php declare(strict_types=1); namespace LourensSystems\ApiWrapper\Exception\Validation; /** * Class KeyValueRequiredException * @package LourensSystems\ApiWrapper\Exception\Validation */ class KeyValueRequiredException extends KeyException { /** * Default exceptio...
C#
UTF-8
1,922
3.25
3
[]
no_license
using System; using System.Collections.Generic; namespace TP7 { public class Grafo<T> { public Grafo() { } private List<Vertice<T>>vertices = new List<Vertice<T>>(); public void agregarVertice(Vertice<T> v) { v.setPosicion(vertices.Count + 1); vertices.Add(v); } public void eliminarVertice...
Java
UTF-8
3,950
3.0625
3
[]
no_license
package checkers.classes; import checkers.enums.MoveTransferOrder; import checkers.enums.PawnColor; import checkers.enums.PlayerSide; import java.io.*; import java.net.Socket; import java.util.concurrent.BlockingQueue; /** * Created by Praca on 2017-06-18. */ public class NetworkCommProtocolThread extends Thread {...
Markdown
UTF-8
1,536
2.546875
3
[]
no_license
# Cromwell task monitor This repo contains code for monitoring resource utilization in [Cromwell](https://github.com/broadinstitute/cromwell) tasks running on [Google Genomics Pipelines API v2alpha1](https://cloud.google.com/genomics/reference/rest/v2alpha1/pipelines). The [monitoring script](monitor.py) is indended ...
C#
UTF-8
1,860
2.75
3
[]
no_license
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MyObjectController : MonoBehaviour { [SerializeField] private MyAmmunition[] ammunitionList = new MyAmmunition[5]; [SerializeField] private MyWeapon[] weaponList = new MyWeapon[5]; private int weaponCount = 0; ...
Ruby
UTF-8
727
2.734375
3
[ "MIT" ]
permissive
module Defuser class DivisorSeries class << self def match(arr) divisor = nil arr.each_cons_pair do |first, second| return EmptySeriesMatch.instance if second == 0 return EmptySeriesMatch.instance if first % second > 0 divisor ||= first / second retur...
Java
UTF-8
150
1.578125
2
[]
no_license
package com.example.trip; import android.location.Location; interface PlaceSelectionListener { void onLocationChanged(Location dropLocation); }
Java
UTF-8
1,851
3.671875
4
[]
no_license
package com.company; public class DataTypeNumeric { public static void main(String[] args) { //variable jeb mainīgo tipi (Integers): int intNumber = 200000000; long longNumber = 2005L; // burts L ir, lai sistēmai pateiktu, ka skaitliskā vērtība ir long byte byteNumber = 127; // by...
TypeScript
UTF-8
116
2.609375
3
[]
no_license
export interface IHTTPErrorResponse { message: string; } export interface IHTTPResponse<T> { results: T; }
Java
GB18030
10,964
1.8125
2
[]
no_license
package com.seu.bigocto.browse; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import...
Java
UTF-8
662
1.78125
2
[]
no_license
package me.learnjava.queryhelper.support; import lombok.Data; import me.learnjava.queryhelper.annotation.QueryHelper; import java.util.Collection; import java.util.Map; /** * @author Vinfer * @date 2021-02-02 14:12 **/ @Data public class CommonPaginationQueryDataPack implements PaginationQueryDataPack { p...
Java
UTF-8
5,818
2.25
2
[]
no_license
package com.conference.presentations.web; import com.conference.presentations.model.ResearchField; import com.conference.presentations.model.User; import com.conference.presentations.service.UserService; import com.conference.presentations.validator.UserFormValidator; import org.slf4j.Logger; import org.slf4j.L...
C#
UTF-8
1,031
2.65625
3
[ "MIT" ]
permissive
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net.Http; using System.Diagnostics; namespace IMBD_adopse.classes { class MovieTeiApiRecommends { private int user_id; public MovieTeiApiRecommends(int uid) ...
Markdown
UTF-8
1,577
2.921875
3
[ "MIT" ]
permissive
A simple textile transformer for gridsome with a bit of magic to make things simpler. # Installation & configuration In your gridsome repo: ```npm install gridsome-transformer-textile``` I imagine it's quite likely you'll use the transformer in combination with the `source-filesystem` plugin, so here's config for t...
Markdown
UTF-8
2,831
2.5625
3
[ "MIT" ]
permissive
--- layout: post title: "Collateral" description: "This action thriller follows LA cabbie Max Durocher, the type of person who can wax poetic about other people's lives, which impresses U.S. Justice Department prosecutor Annie Farrell, one of his fares, so much that she gives him her telephone number at the end of her ...
Java
UTF-8
2,025
3.40625
3
[]
no_license
/** * Manage input to be read from either keyboard or file. * * @author (your name) * @version (a version number or a date) */ import java.util.Scanner; public class InputManager { // Method: readOneAccountFrom // Precondition: inputSource is a Scanner object, already set up // to read from a text...
JavaScript
UTF-8
418
2.984375
3
[ "MIT" ]
permissive
const net = require("net"); const formatDate = date => { return date < 10 ? "0" + date : date; }; const server = net.createServer(socket => { let data = new Date(); let date = `${data.getFullYear()}-${formatDate( data.getMonth() + 1 )}-${formatDate(data.getDate())} ${formatDate(data.getHours())}:${formatDa...
Python
UTF-8
1,825
3.828125
4
[]
no_license
from math import sqrt class Coordinate: # Construtor padrão def __init__(self, xi, yi, zi, ti): self.x = xi self.y = yi self.z = zi self.t = ti # Construtor utilizando 2 pontos @classmethod def given_two_points(cls, p1, p2): x = p2.x - p1.x y = p2.y - p1.y z = p2.z - p1.z t ...
C++
UTF-8
1,619
2.75
3
[ "MIT" ]
permissive
#include "StdAfx.h" class ManagedEventListener : Rocket::Core::EventListener { public: typedef void (*ProcessEventCb)(Rocket::Core::Event* evt HANDLE_ARG); typedef void (*AttachDetatchCb)(Rocket::Core::Element* element HANDLE_ARG); ManagedEventListener(ProcessEventCb processEvent, AttachDetatchCb onAtt...
Java
UTF-8
653
3.5
4
[]
no_license
package homework2; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectOutputStream; /** * 在测试类中创建一个学生对象,给学生对象的三个成员变量赋值。 * 然后将该对象保存到当前项目根目录下的stu.txt文件中。 */ public class StuSerialize { public static void main(String[] args) throws IOException { // 创建对象 Student s = ...
C++
UTF-8
889
3.234375
3
[]
no_license
#include "Node.h" #include <iostream> using namespace std; class SortedLinkedList { private: //head of the list Node *head; //total number of items in list int numitems; //get data to overload //double data; public: //default constructor constructing empty linked list SortedLinkedList(); //Accessor for num...
Java
UTF-8
1,408
3.140625
3
[]
no_license
package com.javarush.task.task18.task1809; /* Реверс файла */ import java.io.*; public class Solution { public static void main(String[] args) { String fileName1 = null; String fileName2 = null; try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { ...
PHP
UTF-8
3,581
2.609375
3
[ "MIT" ]
permissive
<?php class detallepedido{ private $_conexion; private $_iddetallepedido; private $_cantidaddepedidodetallepedido; private $_idpedidodetallepedido; private $_iddisenodetallepedido; private $_paginacion=10; function __construct($conexion,$iddetallepedido,$cantidaddepedidodetal...
Java
UTF-8
891
3.25
3
[]
no_license
package com.core.java; public class Employeese { int id; String firstName; String lastName; Double Salary; public Employeese(int id, String firstName, String lastName, Double sallary) { this.id = id; this.firstName = firstName; this.lastName = lastName; this.Salary = Salary; } ...
C#
UTF-8
756
3.03125
3
[]
no_license
using System; using System.Linq; using dotnet_WebAPI.Models; namespace dotnet_WebAPI.Data { public class UserRepository : IUserRepository { private readonly UserContext _context; public UserRepository(UserContext context) { _context = context; } public Use...
Java
UTF-8
1,945
2.921875
3
[]
no_license
package _10_cuteness_tv; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.net.URI; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; public class Cuteness_tv implements ActionListener { JFrame frame=new JFrame(); JPanel panel=new JPanel(); JButton d...
Java
UTF-8
499
2.8125
3
[]
no_license
package ru.job4j.nonbloking; import net.jcip.annotations.ThreadSafe; import java.util.concurrent.atomic.AtomicReference; @ThreadSafe public class CASCount { private final AtomicReference<Integer> count = new AtomicReference<>(0); public void increment() { Integer ref; Integer tmp; do...
Markdown
UTF-8
2,529
2.625
3
[]
no_license
=============================================================================== Ruby version: 1.9.3 Steps to setup and execute bird service 1) git clone https://github.com/njain153/bird_service.git 2) cd bird_service 3) bundle install 4) bundler exec bin/bird_service start This should start the bird service at http:/...