text stringlengths 1 1.04M | language stringclasses 25
values |
|---|---|
<filename>database/ticket_test.go
// Copyright (c) 2020 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package database
import (
"reflect"
"testing"
"time"
)
func exampleTicket() Ticket {
return Ticket{
Hash: "Hash",
Commi... | go |
“Leadership can take many forms. M S Dhoni is an inspiring captain who is open to ideas,” he added. Fleming said the Pune team has a good blend of overseas players and young talent. With Dhoni as captain, the team has players like Mitchell Marsh, Kevin Pietersen, Ajinkya Rahane, Ravichandran Ashwin and the two overseas... | english |
<reponame>niklasf/flexmark-java
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<p>flexmark-java extension for definition list processing</p>
<p>Converts definition syntax of
<a href="https://michelf.ca/projects/php-markdown/extra/#def-list">Php Markdown Extra Definition List</a>
into <code><dl></dl></c... | html |
/**
* Created by himanshuahuja on 27/05/17.
*/
function Population(p, m, num) {
this.population; // Array to hold the current population
this.matingPool; // ArrayList which we will use for our "mating pool"
this.generations = 0; // Number of generations
... | javascript |
<filename>index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/style.css">
... | html |
<filename>mysql-replicator-supplier-model/src/main/java/com/booking/replication/supplier/model/XIDRawEventData.java<gh_stars>10-100
package com.booking.replication.supplier.model;
@SuppressWarnings("unused")
public interface XIDRawEventData extends RawEventData {
long getXID();
}
| java |
<filename>src/componentTest/resources/expectedTemplateContent/service-bus-sessions-enabled/src/main/java/com/blackbaud/service/servicebus/ServiceBusConfig.java<gh_stars>1-10
package com.blackbaud.service.servicebus;
import com.blackbaud.azure.servicebus.config.ServiceBusProperties;
import org.springframework.beans.fac... | java |
Indian-origin Amarpreet Singh Samar was among the top 10 gangsters on the United Nations designated list.
The Tamil Nadu cabinet on Sunday decided to recommend the premature release of all seven convicts in the Rajiv Gandhi assassination case to the TN Governor.
The Tamil Nadu cabinet held a special meeting chaired b... | english |
Lakme Fashion Week (LFW) is set to return with its Winter/Festive edition from August 21-25 at St. Regis, Mumbai.
LFW will celebrate 20 years with this edition. The fashion gala has had several firsts to its credit in all these years. These include promoting local artisans, identifying as well as fostering new talent ... | english |
<reponame>TheoCadoret/racing
package tddmicroexercises.turnticketdispenser;
public class TicketDispenser
{
private final Compteur compteur;
public TicketDispenser(Compteur compteur){
this.compteur = compteur;
}
public TurnTicket getTurnTicket()
{
int newTurnNumber = ... | java |
The National Company Law Tribunal (NCLT) on Tuesday approved Mumbai-based Suraksha Group’s bid to buy bankrupt real estate firm Jaypee Infratech, nearly two years after the committee of creditors (CoC) had approved its resolution plan. The final approval comes nearly six years after the debt-ridden company entered into... | english |
<filename>examples/highfreq/highfreq_ops.py<gh_stars>1000+
import numpy as np
import pandas as pd
import importlib
from qlib.data.ops import ElemOperator, PairOperator
from qlib.config import C
from qlib.data.cache import H
from qlib.data.data import Cal
from qlib.contrib.ops.high_freq import get_calendar_day
class D... | python |
---
title: Linkertoolwarnung LNK4096
ms.date: 11/04/2016
f1_keywords:
- LNK4096
helpviewer_keywords:
- LNK4096
ms.assetid: ef6fba38-59a1-4d86-bcac-cadf44d87a36
ms.openlocfilehash: 5b561d5e9c48d806be566aec104f63743d4409e8
ms.sourcegitcommit: 0ab61bc3d2b6cfbd52a16c6ab2b97a8ea1864f12
ms.translationtype: MT
ms.contentlocal... | markdown |
var annotated_dup =
[
[ "Feature", "class_feature.html", "class_feature" ],
[ "Filter", "class_filter.html", "class_filter" ],
[ "Freenect2Pcl", "class_freenect2_pcl.html", "class_freenect2_pcl" ],
[ "Mutex", "class_mutex.html", "class_mutex" ],
[ "MyFreenectDevice", "class_my_freenect_device.html",... | javascript |
Rafael Nadal’s indomitable grip on Roland-Garros finals has firmed with the Spanish great collecting an unprecedented 12th trophy from the same Grand Slam on Sunday.
Austrian fourth seed Dominic Thiem fell victim in the title match for the second year running, this time salvaging a set for the first time in four meeti... | english |
<filename>services/core/src/main/java/com/cube/learning/DynamicInjectionRulesLearner.java
/*
* Copyright 2021 MeshDynamics.
* 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... | java |
export class Intent {
public name: string;
public displayName: string;
public parameters: {[name: string]: string};
constructor(name: string, displayName: string, parameters: {[name: string]: string}) {
this.name = name;
this.displayName = displayName;
this.parameters = parameters;
}
isFollowUpIntent() {... | typescript |
from src.gridworld_mdp import GridWorld
class EquiprobableRandomPolicy:
def __init__(self):
self.world_model = GridWorld()
def get_prob(self, selected_action, state):
assert state in self.world_model.states
assert selected_action in self.world_model.actions
num_all_possible_a... | python |
Horoskopi i Dashit Pesë yje për Dashin. Afërdita është më në fund në anën tuaj, kështu që duhet të lini gjëra pas e sigurisht nuk është koha për të rimenduar të kaluarën, gabimet dhe problemet. Thjesht do të ishte humbje kohe. Duhet të ecni përpara, të kënaqeni me pasionet dhe sfidat e reja.
Në punë, për shumëkush nuk ... | english |
It was a bittersweet season for the New York Yankees last year. While the team dominated the American League East with a record of 99-63, they again fell to their playoff rivals, the Houston Astros.
However, fans of the club were treated to a historic season by their superstar outfielder Aaron Judge. The slugger enjoye... | english |
By Rule of Crow's Thumb Movie Streaming Watch Online. Constantly on the run from a vicious loan shark, two small-time con artists, Take and Tetsu, plan their biggest and most complex con yet in order to get revenge and retire from a life of crime. However, things get complicated when they cross paths with Mahiro, a you... | english |
The Supreme Court, on Thursday, sought response from Centre on a plea seeking direction to the Department of Justice to issue guides/handbooks in plain English and in vernacular -- easily understandable by laymen explaining the law and procedure for vindication of rights and redressal of grievances under the law.
NEW ... | english |
/* styling for latest posts list */
.latest-posts {
margin: 10px 0;
padding: 1em;
border: 2pt solid #000;
} | css |
The AIB might as well become an orphan acronym, like WWE and KFC, entities that have stopped using the full form of their acronyms. The more people hear about them, the more the curiosity about the name, and the more occasion for naysayers to spite them for it. Not that the AIB worries. They might have more people list... | english |
<p> Repo Details - View 2</p>
<p>
</p>
<div>{{repoowner}} {{reponame}}</div>
<div>{{data}} </div>
<ul>
<li ng-repeat="item in items">
{{item.full_name}} {{item.owner.login}} {{item.name}}
</li>
</ul>
| html |
Borussia Dortmund are all set to take on Sevilla in the Round of 16 second leg-tie of the ongoing UEFA Champions League 2020/21 competition. The match between the two sides will be played on Wednesday (March 10) at the Signal Iduna Park. In the first leg-tie match between the two sides, Dortmund defeated Sevilla by a o... | english |
Tales from the Grave Movie Streaming Watch Online. See 3 deadly and chilling TALES FROM THE GRAVE! In "Beyond Death", a renegade band of young filmmakers breaks into an abandoned hospital and open a portal that releases dozens of zombies. In "Brides of the Dead", the Reality-TV program "Chill Challenge" sends five sexy... | english |
<!DOCTYPE html>
<html>
<head>
<title>My Projects</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<ul>
<li><a href="https://ronmintz.github.io/">Home</a></li>
<li><a href="https://ronmintz.github.io/bio.html">My Bio</a></li>
<li><a c... | html |
Hall of Famer Shaquille O'Neal recently decided to stir up a spirited debate by sharing his list of the top 10 NBA players of all time. In a post on Instagram on Wednesday morning, O'Neal sent the NBA community into a frenzy as debates started to break out over his top 10.
In the caption, Shaquille O'Neal invited debat... | english |
I know I am not like this.
I don't want to understand anything.
I just don't want to be mature!
I know, I don't get angry easily.
after every 5 minutes.
because I know you'll take all efforts to console me and make me laugh again.
I know, I am a listener.
but only after finishing my talks!
every damn thing with you.
th... | english |
import java.io.*;
class o
{
public static void main(String[]args)
{
double x=8.99,y=9.99;
System.out.println("W="+Math.pow(Math.floor((x),2)));
System.out.println("Z="+Math.sqrt(36)+Math.ceil(x));
}
} | java |
<reponame>JuniorNovoa1/sonicexe-psychengine-port
{
"songs": [
["you-cant-run", "sonic2", [26, 113, 253]],
["triple-trouble", "sonicp3", [26, 113, 253]]
],
"hideFreeplay": true,
"weekBackground": "sonic",
"difficulties": "Hard",
"weekCharacters": [
"dad",
"bf",
"gf"
],
"storyName": "Sonic.exe",
"weekN... | json |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | json |
<filename>chapter3/ArraySubclassing.java
public class ArraySubclassing {
public static void main(String[] args) {
String[] stringData = new String[3] {"Larry","Moe","Curly"};
Object[] objectData = stringData;
objectData[0] = new Integer(3);
}
}
| java |
<gh_stars>0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Based on AboutClassMethods in the Ruby Koans
#
from runner.koan import *
class AboutClassAttributes(Koan):
class Dog:
pass
def test_objects_are_objects(self):
fido = self.Dog()
self.assertEqual(True, isinstance(fido, obje... | python |
AS Roma manager Jose Mourinho is keen to reunite with Manchester United midfielder Nemanja Matic, according to La Gazzetta dello Sport (via the Cult of Calcio).
Nemanja Matic and Jose Mourinho have previously worked together at two different clubs. The Portuguese tactician first managed Matic whilst at Chelsea, where t... | english |
WWE legend Mick Foley recently shared his prediction for the upcoming match between Dominik Mysterio and AJ Styles.
The Phenomenal One has been at odds with The Judgment Day over the last few weeks. Styles was joined by his old friends Luke Gallows and Karl Anderson in his feud against the villainous stable on RAW last... | english |
Lt General Anil Chauhan has been appointed our country’s 2nd Chief of Defence Staff (CDS) on 28th September 2022. Lt General Anil Chauhan was the Director General of Military Operations (DGMO) during the Balakot airstrike of February 2019. In September 2019, he was even made the Eastern Command’s General Officer Comman... | english |
# -*- coding: utf-8 -*-
"""
Created on Sat Jan 4 19:54:23 2020
@author: Mustapha
"""
import sys
def main(argv):
if len(argv) != 2:
sys.exit('Usage: simple_multi.py <a> <b>')
a = int(sys.argv[1])
b = int(sys.argv[2])
sum = 0
for i in range(a):
sum += b
print "The result of " +... | python |
import { Injectable } from '@nestjs/common';
import { Connection } from 'typeorm';
@Injectable()
export class HelloService {
constructor(private connection: Connection) {}
public getHello() {
return 'Hello World!';
}
}
| typescript |
package com.ruanyun.chezhiyi.commonlib.model.params;
/**
* Created by msq on 2016/9/6.
*/
public class GetCaseParams extends PageParamsBase{
private String libraryName;//搜索的关键字
private Integer userType;//1-技师【技师个人】 2-企业
private String libraryType;//案例库分类【读取服务类型一级】
private String createUserNum;// 案例用户... | java |
{"jquery.hideseek.js":"sha256-1glll01qQOUySZVlYjdgkomqqjFhxOomEF/w++cRuYY=","jquery.hideseek.min.js":"<KEY>}
| json |
html {
color: var(--primary-color);
font-family: sans-serif;
font-size: 100%;
}
@media screen {
html {
background-color: var(--primary-color);
}
}
@media screen {
body {
margin: auto;
padding: var(--adaptive-lg) var(--adaptive-xl);
max-width: 900px;
background-color: var(--secondary-co... | css |
package commands
import (
"os"
"github.com/urfave/cli/v2"
"golang.org/x/sys/execabs"
)
// Vendor returns the vendor cli command.
//
// Deprecated: Use "go mod vendor" instead.
func Vendor() *cli.Command {
return &cli.Command{
Name: "vendor",
Usage: "Deprecated: Use \"go mod vendor\" instead.",
Action: fun... | go |
package com.tom.cpm.client;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import java.util.Map.Entry;
import java.util.function.Predicate;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.minecraft.clie... | java |
Former World Champions, Sri Lanka will kick off their 2019 World Cup campaign against the runners-up of the previous World Cup, New Zealand at Cardiff. The Lankan Lions had a disastrous outing in their warm-up games as they lost both of their warm-up encounters. Dimuth Karunaratne's men could not give South Africa and ... | english |
It has been 40 years since the Indian cricket team lifted its first World Cup trophy. The smile that adorned the former captain Kapil Dev’s face as he held the coveted trophy on June 25, 1983, marked a turning point in India’s cricketing history.
While the smiling skipper is forever etched in our memories, what remains... | english |
New norms put in place for awarding irrigation contracts in Maharashtra have just blown the lid off another raging controversy. It turns out that irregular tenders, which were collectively worth several hundred crores, were floated in the run-up to assembly polls. Allegations of a multi-crore scam in irrigation contrac... | english |
{
"_id": "MCIp76IWZ2pk7dyz",
"content": "<p>The Criminal One of your associates committed crimes regularly. They regaled you with many stories of daring robberies and break-ins-perhaps even murders. You learned what you know of the criminal element from this friend.</p>\n<p>Add a Dexterity ability boost to your... | json |
<reponame>mathletedev/mathletedev.github.io<gh_stars>1-10
export const __colors__ = {
black: "#282c34",
white: "#dcdfe4",
red: "#e06c75",
yellow: "#e5c07b",
green: "#98c379",
cyan: "#56b6c2",
blue: "#61afef",
magenta: "#c678dd"
};
export const __char__ = 10.55;
export const __mobile__ = /Mobi/.test(navigator.us... | typescript |
//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2021 <NAME>
// Copyright (c) 2016-2021 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include <Siv3D/Common.hpp>
# inclu... | cpp |
<filename>main.py
from utils.config import Config, main
from repo import aws, jaguar
from urllib import parse
from flask import Flask, request, jesonify
app = Flask('__name__')
@app.route('/')
@app.route('/index')
def index():
return "Hello home!"
@app.route('/get-instances/<string:tag_name>', methods=['GET'])
def ... | python |
---
title: Změna informací o účtu Microsoft
ms.author: pebaum
author: pebaum
manager: mnirkhe
ms.audience: Admin
ms.topic: article
ms.service: o365-administration
ROBOTS: NOINDEX, NOFOLLOW
localization_priority: Priority
ms.collection: Adm_O365
ms.custom:
- "9002956"
- "5658"
ms.openlocfilehash: c1df53e9ab0c34065b7bed3... | markdown |
The schedule for the 13th edition of the Indian Premier League (IPL) was announced earlier today. Defending champions Mumbai Indians will play the curtain-raiser against Chennai Super Kings at the Wankhede Stadium on 29th March.
The group-stage fixtures will culminate on 17th May, with Royal Challengers Bangalore taki... | english |
package it.unive.lisa.callgraph;
import it.unive.lisa.analysis.AnalysisState;
import it.unive.lisa.analysis.CFGWithAnalysisResults;
import it.unive.lisa.analysis.HeapDomain;
import it.unive.lisa.analysis.SemanticException;
import it.unive.lisa.analysis.ValueDomain;
import it.unive.lisa.cfg.CFG;
import it.unive.lisa.cf... | java |
import os
class Config:
SQLALCHEMY_TRACK_MODIFICATIONS = False
CSRF_ENABLED = True
FLASK_DEBUG = True
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL', 'mysql+mysqlconnector://root:root@localhost:8889/lak_db')
DATABASE_URL = os.environ.get('CLEARDB_DATABASE_URL', 'mysql+mysqlconnector://roo... | python |
However, according to the General Confederation of Labor (CGT), France's largest union, the number of protesters on Tuesday exceeded 900,000 nationwide, reports Xinhua news agency.
All the protests were relatively peaceful, although 28 people were arrested in Paris.
The general mobilisation is no longer widely suppor... | english |
/*
* OPT3001.cpp
*
* Created: 4/18/2020 4:36:15 PM
* Author: MQUEZADA
*/
/*
Arduino library for Texas Instruments OPT3001 Digital Ambient Light Sensor
Written by AA for ClosedCube
---
The MIT License (MIT)
Copyright (c) 2015 ClosedCube Limited
Permission is hereby granted, free of charge, to any person obtai... | cpp |
---
title: Criar uma política de firewall do aplicativo web para frente do Azure usando o portal do Azure
titlesuffix: Azure web application firewall
description: Saiba como criar uma política de WAF (firewall) do aplicativo web usando o portal do Azure.
services: frontdoor
documentationcenter: na
author: KumudD
manage... | markdown |
<filename>packages/store/src/accounts/reducer.spec.ts
import {INITIAL_STATE, reducer} from './reducer';
import {ActionTypes, IAccountsState} from './types';
import {Wallet} from '@emeraldpay/emerald-vault-core';
describe('accounts reducer', () => {
it('handles Actions.LOADING', () => {
const state = reducer(unde... | typescript |
Ranchi: A fast track court in Jharkhand’s Ramgarh district on Wednesday awarded 11 people, including a BJP leader, life imprisonment for killing a person on charges of carrying beef.
According to a lawyer, the court convicted 11 people including BJP’s Nityanand Mahto on 16 March.
The court of additional district judge ... | english |
// Copyright 2019 Intel Corporation. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by app... | go |
<reponame>allansrc/fuchsia<filename>build/images/assembly/make_assembly_inputs.py
#!/usr/bin/env python3.8
# Copyright 2021 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import argparse
import json
import os
import sys
... | python |
import { CalendarToolbarElementSetting } from "../interfaces/CalendarToolbarSettings";
import { CalendarToolbarButtonType } from "../interfaces/CalendarToolbarButtonType";
import { ToolbarElement } from "./ToolbarElement";
import { TodayButton } from "./TodayButton";
import { ChangeDateButton } from "./ChangeDateButto... | typescript |
As part of SKPop's GRAMMYs roundup, here is a look at Best Global Music Album.
While the Best Global Music Album originated so that international performers exhibiting "non-European, indigenous traditions" could be recognized, the category now represents global albums outside the GRAMMY category umbrella that make a s... | english |
New Delhi: The death toll in the country due to novel coronavirus rose to 124 and the number of cases climbed to 4,789 on Tuesday, registering an increase of 508 cases in the last 24 hours, according to the Union Health Ministry.
While the number of active COVID-19 cases stood at 4,312, as many as 352 people were cure... | english |
import React from 'react';
import { connect } from 'react-redux';
import { View, Text, SectionList, TouchableOpacity } from 'react-native';
import moment from 'moment';
import Ionicons from 'react-native-vector-icons/Ionicons';
import PropTypes from 'prop-types';
import styles from './styles';
const Faves = ({ sessi... | javascript |
1. Lack of effort to understand each and every word while listening. Especially in L2 acquisition they are unable transfer their L1 skill easily to a second language.
2. Failure or laziness to build up their vocabulary gradually and this greatly reflects in their listening and keeps them low spirited in acquiring the l... | english |
use crate::core::{InternalVM, VMInstruction};
use crate::core::{RuntimeError, VirtualMachine};
use algebra::Field;
use r1cs_core::ConstraintSystem;
use zinc_bytecode::instructions::StoreSequenceGlobal;
impl<F, CS> VMInstruction<F, CS> for StoreSequenceGlobal
where
F: Field,
CS: ConstraintSystem<F>,
{
fn ex... | rust |
With the Indian economy registering a GDP growth of 8. 2 per cent in the first quarter of the current fiscal, Union Finance Minister Arun Jaitley on Friday said that it represented the potential of a 'New India' in an environment of global turmoil.
"India's GDP for the first quarter this year growing at 8. 2 per cent ... | english |
<reponame>felipetodev/covid-vacuna-chile<gh_stars>1-10
[{"Region":"Total","primerasDosisAdministradas":6387953,"fechaUltRegistro":"2021-03-28","poblacionOver18":15200840,"segundasDosisAdministradas":3258782,"totalDosisAdministradas":9646735,"porcentajePoblacionAdministradas":0.6346185473960649,"porcentajePoblacionCompl... | json |
<gh_stars>10-100
import torch.nn as nn
import torch.utils.model_zoo as model_zoo
import torch
import numpy as np
from torchvision import models
from torch.nn import functional as F
__all__ = ['vgg19']
model_urls = {
'vgg19': 'https://download.pytorch.org/models/vgg19-dcbb9e9d.pth',
}
class VGG(nn.Module):
def... | python |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 22