text stringlengths 2 99.9k | meta dict |
|---|---|
<?php
namespace Drupal\Tests\system\Functional\UpdateSystem;
use Drupal\Core\Database\Database;
use Drupal\Core\Url;
use Drupal\Tests\BrowserTestBase;
use Drupal\Tests\RequirementsPageTrait;
/**
* Tries to update a module which has no pre-existing schema.
*
* @group Update
* @group legacy
*/
class NoPreExisting... | {
"pile_set_name": "Github"
} |
/*
* FindBugs - Find Bugs in Java programs
* Copyright (C) 2006, University of Maryland
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (a... | {
"pile_set_name": "Github"
} |
float XPosition[2] = {80, 80}; //place x positions
float ZPosition[2] = {35,60}; //place z positions
float X0; //used to enter inside function calcul angles
float Z0; //us... | {
"pile_set_name": "Github"
} |
// Copyright 2017 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --no-stress-opt
function f(a, i, v) { a[i] = v; }
f("make it generic", 0, 0);
(function TestIsConcatSpreadableProtect... | {
"pile_set_name": "Github"
} |
fileFormatVersion: 2
guid: f1b13d7a80660504a858ea24cfa418c6
ShaderImporter:
userData:
| {
"pile_set_name": "Github"
} |
/*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
Copyright (c) 2007 Dan Marsden
Copyright (c) 2009-2010 Christopher Schmidt
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt o... | {
"pile_set_name": "Github"
} |
# /* Copyright (C) 2001
# * Housemarque Oy
# * http://www.housemarque.com
# *
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt or copy at
# * http://www.boost.org/LICENSE_1_0.txt)
# */
#
# /* Revised by Paul Mensonides (2002) */
#
# /* See http:... | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@android:color/white"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon> | {
"pile_set_name": "Github"
} |
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* 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 agre... | {
"pile_set_name": "Github"
} |
{
"name": "React.js",
"author": "fofa",
"version": "0.1.0",
"matches": [
{
"search": "body",
"text": "/react.js"
},
{
"search": "body",
"text": "React.createClass"
}
]
} | {
"pile_set_name": "Github"
} |
package com.story.storyadmin.mapper.sysmgr;
import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.story.storyadmin.domain.entity... | {
"pile_set_name": "Github"
} |
package com.consol.citrus;
/**
* @author Christoph Deppisch
*/
public interface TestCaseRunner extends TestCaseBuilder, GherkinTestActionRunner {
/**
* Starts the test case execution.
*/
void start();
/**
* Stops test case execution.
*/
void stop();
}
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apa... | {
"pile_set_name": "Github"
} |
// { dg-do run }
extern "C" void abort (void);
template <typename T>
void
foo ()
{
extern T x;
T v, l = 2, s = 1;
#pragma omp atomic seq_cst
x = -3 + x;
#pragma omp atomic read seq_cst
v = x;
if (v != 3)
abort ();
#pragma omp atomic seq_cst update
x = 3 * 2 * 1 + x;
#pragma omp atomic re... | {
"pile_set_name": "Github"
} |
import { DNode } from '../../../../src/core/interfaces';
import { WidgetBase } from '../../../../src/core/WidgetBase';
import { v, w } from '../../../../src/core/vdom';
import { Button } from './Button';
export interface ButtonConfig {
id: string;
label: string;
onClick: () => void;
}
export interface ButtonsProp... | {
"pile_set_name": "Github"
} |
jwc.njnu.edu.cn
bwc.njnu.edu.cn
k5a0c.njnu.edu.cn
wxy.njnu.edu.cn
waiyadmin.njnu.edu.cn
yjs.njnu.edu.cn
jgzfjs.njnu.edu.cn
ysjyzx.njnu.edu.cn
zcc.njnu.edu.cn
jwcl.njnu.edu.cn
zcjygs.njnu.edu.cn
gc.njnu.edu.cn
xhzyz.njnu.edu.cn
music.njnu.edu.cn
geomodeling.njnu.edu.cn
hgdq.njnu.edu.cn
physics.njnu.edu.cn
bkzs.njnu.edu.... | {
"pile_set_name": "Github"
} |
"===============================================================================
"
" File: customization.gvimrc
"
" Description: suggestion for a personal configuration file ~/.vimrc
"
" VIM Version: 7.0+
" Author: Wolfgang Mehner, wolfgang-mehner@web.de
" Dr. Fritz Mehner (fgm)... | {
"pile_set_name": "Github"
} |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you... | {
"pile_set_name": "Github"
} |
from warnings import warnpy3k
warnpy3k("the GL module has been removed in Python 3.0", stacklevel=2)
del warnpy3k
NULL = 0
FALSE = 0
TRUE = 1
ATTRIBSTACKDEPTH = 10
VPSTACKDEPTH = 8
MATRIXSTACKDEPTH = 32
NAMESTACKDEPTH = 1025
STARTTAG = -2
ENDTAG = -3
BLACK = 0
RED = 1
GREEN = 2
YELLOW = 3
BLUE = 4
MAGENTA = 5
CYAN = 6... | {
"pile_set_name": "Github"
} |
/*
* Program: Operating-system dependent routines -- Windows 2000 version
*
* Author: Mark Crispin
* Networks and Distributed Computing
* Computing & Communications
* University of Washington
* Administration Building, AG-44
* Seattle, WA 98195
* Internet: MRC@CAC.Washington.EDU
*
* Date: 11 April 198... | {
"pile_set_name": "Github"
} |
require('../../modules/es6.string.from-code-point');
module.exports = require('../../modules/_core').String.fromCodePoint;
| {
"pile_set_name": "Github"
} |
// -*- C++ -*- Copyright (c) Microsoft Corporation; see license.txt
#ifndef MESH_PROCESSING_LIBHH_KDTREE_H_
#define MESH_PROCESSING_LIBHH_KDTREE_H_
#include "libHh/Array.h"
#include "libHh/RangeOp.h"
#include "libHh/SGrid.h"
#include "libHh/Stack.h"
#include "libHh/Stat.h"
#include "libHh/Vec.h"
namespace hh {
// A... | {
"pile_set_name": "Github"
} |
// Copyright The OpenTelemetry Authors
//
// 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 ag... | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<DICTIONARY type="singlelanguage" lang="sk" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="dictionary.xsd">
</DICTIONARY>
| {
"pile_set_name": "Github"
} |
/**
* @module adaptive-expressions
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
export * from './parseErrorListener';
export * from './expressionParser';
export * from './util';
export * from './generated';
| {
"pile_set_name": "Github"
} |
/*
* Author: Brendan Le Foll
* Contributors: Alex Tereschenko <alext.mkrs@gmail.com>
* Contributors: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
* Copyright (c) 2014 Intel Corporation.
*
* SPDX-License-Identifier: MIT
*
* Example usage: Configures GPIO pin for interrupt and waits 30 seconds for the... | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportHeight="176"
android:viewportWidth="176">
<group
android:scaleX="0.45"
android:scaleY="0.45"
android:transla... | {
"pile_set_name": "Github"
} |
{{$rin := RandTen}}
<div id="{{$rin}}">
<h5 class="text-muted">Log details</h5>
<div class="list-group">
<div class="list-group-item">
<h4><i class="fa fa-time"></i> {{.Time}}</h4>
</div>
{{with .Bugs}}
{{range .}}
<div class="list-group-item"><p class="text-muted pull-right"><i class="fa fa-warning"></i><... | {
"pile_set_name": "Github"
} |
// +build acceptance
package servicecatalog
import (
"fmt"
"testing"
tester "github.com/kyma-project/kyma/tests/console-backend-service"
"github.com/kyma-project/kyma/tests/console-backend-service/internal/client"
"github.com/kyma-project/kyma/tests/console-backend-service/internal/domain/shared"
"github.com/k... | {
"pile_set_name": "Github"
} |
/*
* Copyright 2014 LinkedIn Corp.
*
* 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 agreed to i... | {
"pile_set_name": "Github"
} |
/*
* Copyright 2013 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... | {
"pile_set_name": "Github"
} |
"""
Implement a rewrite pass on LLVM module to remove unnecessary refcount
operation.
"""
from __future__ import absolute_import, print_function
from llvmlite.ir.transforms import CallVisitor
from numba import types
class _MarkNrtCallVisitor(CallVisitor):
"""
A pass to mark all NRT_incref and NRT_decref.
... | {
"pile_set_name": "Github"
} |
var Db = require('../../lib/mongodb').Db,
Server = require('../../lib/mongodb').Server,
ObjectID = require('../../lib/mongodb').ObjectID,
GridStore = require('../../lib/mongodb').GridStore;
var simulated_buffer = new Buffer(1024*1000*10).toString();
new Db('grid_fs_write_benchmark', new Server("127.0.0.1", 2701... | {
"pile_set_name": "Github"
} |
/*
** $Id: ltm.h,v 2.22.1.1 2017/04/19 17:20:42 roberto Exp $
** Tag methods
** See Copyright Notice in lua.h
*/
#ifndef ltm_h
#define ltm_h
#include "lobject.h"
/*
* WARNING: if you change the order of this enumeration,
* grep "ORDER TM" and "ORDER OP"
*/
typedef enum {
TM_INDEX,
TM_NEWINDEX,
TM_GC,
TM_MO... | {
"pile_set_name": "Github"
} |
## 李宏毅机器学习Day1-3:线性回归任务一
### 什么是机器学习?
机器学习的核心是“**使用算法解析数据,从中学习,然后对世界上的某件事情做出决定或预测**”。
Tom Mitchell提供了一个更现代的定义:“据说计算机程序从经验E中学习某些任务T和绩效测量P,如果它在T中的任务中的表现,由P测量,随经验E而改善。 “
示例:玩跳棋。
E =玩许多跳棋游戏的经验
T =玩跳棋的任务。
P =程序赢得下一场比赛的概率。
### 中心极限定理
中心极限定理指的是给定一个任意分布的总体。我每次从这些总体中随机抽取 n 个抽样,一共抽 m 次。 然后把这 m 组抽样分别求出平均值。 这些平均值的分布接近**正态... | {
"pile_set_name": "Github"
} |
//------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby ... | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<!-- This comment will force IE7 to go into quirks mode. -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type... | {
"pile_set_name": "Github"
} |
The OpenGL Extension Wrangler Library
Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
Copyright (C) 2002, Lev Povalahev
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted p... | {
"pile_set_name": "Github"
} |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you m... | {
"pile_set_name": "Github"
} |
/**
* Licensed to Apereo under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright ownership. Apereo
* licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compli... | {
"pile_set_name": "Github"
} |
0 0 0 1 -0.328945 -0.175844
0 0 6.5 1 -0.363158 0.107856
10 0 0 1 0.0698896 -0.11075
10 0 6.5 1 0.0485066 0.138123
10 10 0 1 0.308107 -0.201914
10 10 6.5 1 0.282333 0.18789
0 10 0 1 -0.310373 -0.334345
0 10 6.5 1 -0.368596 0.148252
0 5 10 1 -0.38948 0.324362
10 5 10 1 0.125874 0.327632
0 6 0 1 -0.320227 -0.25... | {
"pile_set_name": "Github"
} |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | {
"pile_set_name": "Github"
} |
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... | {
"pile_set_name": "Github"
} |
.. _toml-style-guide:
****************
TOML style guide
****************
Keys must be ASCII snake_case.
| {
"pile_set_name": "Github"
} |
<?php
/**
* PHPUnit
*
* Copyright (c) 2010-2012, Sebastian Bergmann <sb@sebastian-bergmann.de>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code m... | {
"pile_set_name": "Github"
} |
#ifndef _IPXE_CPIO_H
#define _IPXE_CPIO_H
/** @file
*
* CPIO archives
*
*/
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
/** A CPIO archive header
*
* All field are hexadecimal ASCII numbers padded with '0' on the
* left to the full width of the field.
*/
struct cpio_header {
/** The string "070701" or "070702" *... | {
"pile_set_name": "Github"
} |
#ifndef __SH_INTC_H__
#define __SH_INTC_H__
#include "qemu-common.h"
#include "irq.h"
typedef unsigned char intc_enum;
struct intc_vect {
intc_enum enum_id;
unsigned short vect;
};
#define INTC_VECT(enum_id, vect) { enum_id, vect }
struct intc_group {
intc_enum enum_id;
intc_enum enum_ids[32];
};
... | {
"pile_set_name": "Github"
} |
/// <reference path="../../defs/tsd.d.ts"/>
/// <reference path="./interfaces.d.ts"/>
'use strict';
import {GruntTSDefaults} from './defaults';
import * as utils from './utils';
import * as _ from 'lodash';
import {Promise} from 'es6-promise';
import {resolveVSOptionsAsync} from './visualStudioOptionsResolver';
impor... | {
"pile_set_name": "Github"
} |
.onoffswitch {
position: relative; width: 90px;
-webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}
.onoffswitch-checkbox {
display: none;
}
.onoffswitch-label {
display: block; overflow: hidden; cursor: pointer;
border: 2px solid #FFFFFF; border-radius: 20px;
}
.onoffswitch-in... | {
"pile_set_name": "Github"
} |
fileFormatVersion: 2
guid: 8384ab388a4037649a1f64fb2e1a8e7f
timeCreated: 1524005968
licenseType: Free
NativeFormatImporter:
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
| {
"pile_set_name": "Github"
} |
JEKATERINBURG 2
JENA 6
JERUSALEM 48
JET 2
Je 58
Jean 54
Jean-Bertrand 6
Jean-Christophe 2
Jean-Claude 10
Jean-Cyril 2
Jean-Francois 2
Jean-Jacques 8
Jean-Louis 8
Jean-Luc 8
Jean-Marie 4
Jean-Michel 4
Jean-Pascal 4
Jean-Paul 2
Jean-Pierre 2
Jean-Pol 2
Jeanne 6
Jeannette 4
Jeans 2
Jecken 2
Jede 32
Jedem 4
Jeden 8
Jedenfa... | {
"pile_set_name": "Github"
} |
package com.aylson.dc.owner.service.impl;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.aylson.core.exception.ServiceExc... | {
"pile_set_name": "Github"
} |
/*
BLIS
An object-based framework for developing high-performance BLAS-like
libraries.
Copyright (C) 2014, The University of Texas at Austin
Copyright (C) 2016, Hewlett Packard Enterprise Development LP
Copyright (C) 2018, Advanced Micro Devices, Inc.
Redistribution and use in source and binary ... | {
"pile_set_name": "Github"
} |
# Locally calculated
sha256 4a1532bcf3731aade40936f6d6a586ed5a66ca4c7455e1338d1f6c3e09221328 libcap-ng-0.7.9.tar.gz
sha256 32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670 COPYING
sha256 f18a0811fa0e220ccbc42f661545e77f0388631e209585ed582a1c693029c6aa COPYING.LIB
| {
"pile_set_name": "Github"
} |
//
// KxAudioManager.h
// kxmovie
//
// Created by Kolyvan on 23.10.12.
// Copyright (c) 2012 Konstantin Boukreev . All rights reserved.
//
// https://github.com/kolyvan/kxmovie
// this file is part of KxMovie
// KxMovie is licenced under the LGPL v3, see lgpl-3.0.txt
#import <CoreFoundation/CoreFoundation.h>
... | {
"pile_set_name": "Github"
} |
Elixir File(0,74)
UNMATCHED_UNQUALIFIED_NO_ARGUMENTS_CALL(0,23)
ElixirIdentifierImpl(IDENTIFIER)(0,10)
PsiElement(identifier)('identifier')(0,10)
PsiWhiteSpace(' ')(10,11)
ElixirDoBlockImpl(DO_BLOCK)(11,23)
PsiElement(do)('do')(11,13)
PsiWhiteSpace(' ')(13,14)
ElixirBlockListImpl(B... | {
"pile_set_name": "Github"
} |
/*
* Knowage, Open Source Business Intelligence suite
* Copyright (C) 2016 Engineering Ingegneria Informatica S.p.A.
*
* Knowage is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of... | {
"pile_set_name": "Github"
} |
/*
* SonarQube
* Copyright (C) 2009-2020 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... | {
"pile_set_name": "Github"
} |
{ "expected-missing-functions":
[
"vLoggingPrintf",
"xApplicationGetRandomNumber",
"vListInsertEnd",
"vTaskSetTimeOutState",
"vTaskSuspendAll",
"xTaskGetTickCount",
"xTaskResumeAll"
],
"proof-name": "DNSgetHostByName_a",
"proof-root": "tools/cbmc/proofs"
}
| {
"pile_set_name": "Github"
} |
// Setup a very simple "virtual canvas" to make drawing the few shapes we need easier
// This is accessible as $(foo).simpledraw()
VShape = createClass({
init: function (target, id, type, args) {
this.target = target;
this.id = id;
this.type = type;
t... | {
"pile_set_name": "Github"
} |
description: "Handle a not-ok ismaster response"
uri: "mongodb://a"
phases: [
{
responses: [
["a:27017", {
ok: 1,
ismaster: true,
minWireVersion: 0,
maxWireVersion: 6
}],
["a... | {
"pile_set_name": "Github"
} |
"description_1" : "<span class=\"translated\">If the switching command is detected, the selected MP3 file is played with the specified volume and stopped with the next detection (toggle function).</span><br/><br/>",
"description_2" : "<span class=\"translated\">" +
"The switching command 'Dry conditions' plays the sel... | {
"pile_set_name": "Github"
} |
object callccInterpreter {
type Answer = Value
/**
* A continuation monad.
*/
case class M[A](in: (A => Answer) => Answer) {
def bind[B](k: A => M[B]) = M[B](c => in (a => k(a) in c))
def map[B](f: A => B): M[B] = bind(x => unitM(f(x)))
def flatMap[B](f: A => M[B]): M[B] = bi... | {
"pile_set_name": "Github"
} |
/**********
Copyright (c) 2018, Xilinx, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the fol... | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<!-- The configuration and platform will be used to determine which assemblies to include from solution and
project documentation sources -->... | {
"pile_set_name": "Github"
} |
## 设计模式
> 设计模式(Design pattern)代表了最佳的实践,通常被有经验的面向对象的软件开发人员所采用。设计模式是软件开发人员在软件开发过程中面临的一般问题的解决方案。这些解决方案是众多软件开发人员经过相当长的一段时间的试验和错误总结出来的。
设计模式是一套被反复使用的、多数人知晓的、经过分类编目的、代码设计经验的总结。使用设计模式是为了重用代码、让代码更容易被他人理解、保证代码可靠性。 毫无疑问,设计模式于己于他人于系统都是多赢的,设计模式使代码编制真正工程化,设计模式是软件工程的基石,如同大厦的一块块砖石一样。项目中合理地运用设计模式可以完美地解决很多问题,每种模式在现实中都有相应的原理来与之对应,每种模式... | {
"pile_set_name": "Github"
} |
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package filepath
import (
"strings"
"syscall"
)
func isSlash(c uint8) bool {
return c == '\\' || c == '/'
}
// IsAbs reports whether the path is absolute.... | {
"pile_set_name": "Github"
} |
/*!
@file
@copyright Edouard Alligand and Joel Falcou 2015-2017
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BRIGAND_HPP_INCLUDED
#define BRIGAND_HPP_INCLUDED
#include <brigand/adapted.hpp>
#include <brigand/algorithms.hpp>
#include <brigand/functions.hpp>
#include <brigan... | {
"pile_set_name": "Github"
} |
<?php
use yii\helpers\Html;
use backend\modules\rbac\AdminAsset;
use yii\helpers\Json;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $model yii\web\IdentityInterface */
$this->title = Yii::t('rbac-admin', 'Assignments');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="assignment-index">
... | {
"pile_set_name": "Github"
} |
<!DOCTYPE html>
<!-- default -->
<html>
<head>
<meta charset="UTF-8">
<title>Test alternative stylesheets</title>
<link rel="stylesheet" href="persistent.css">
<link rel="stylesheet" title="Default" href="default.css">
<link rel="stylesheet" title="Default" href="default2.css">
<link rel="stylesheet alternate" title="A... | {
"pile_set_name": "Github"
} |
Role State Target TransitionDuration
R2AilaMd010011 Born 0
R2AilaMd010011 Stand2 0.1
R2AilaMd010011 Stand1 0.1
R2AilaMd010011 Stand3 0.1
R2AilaMd010011 Standchange 0.1
R2AilaMd010011 Run 0.1
R2AilaMd010011 Walk 0.1
R2AilaMd010011 Death 0.1
R2AilaMd010011 Hit1 0.05
R2AilaMd010011 Hit2 0.05
R2AilaMd0... | {
"pile_set_name": "Github"
} |
/* -*- Mode: C; tab-width: 4 -*-
*
* Copyright (c) 2006-2010 Apple Inc. 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/LI... | {
"pile_set_name": "Github"
} |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | {
"pile_set_name": "Github"
} |
montreal = {
name = "Montreal"
map_template = north_america_45_60_latitude_north
geocoordinate = { -73.58329695810 45.49999920560 } #from Natural Earth
major = true
regions = {
canada
}
}
| {
"pile_set_name": "Github"
} |
/* file generated by 'generate-global-headers.bat' */
#include "..\../crypto/bf/blowfish.h"
| {
"pile_set_name": "Github"
} |
.p-0 padding: 0;
.p-1 padding: 0.25rem;
.p-2 padding: 0.5rem;
.p-3 padding: 0.75rem;
.p-4 padding: 1rem;
.p-5 padding: 1.25rem;
.p-6 padding: 1.5rem;
.p-8 padding: 2rem;
.p-10 padding: 2.5rem;
.p-12 padding: 3rem;
.p-16 padding: 4rem;
.p-20 padding: 5rem;
.p-24 padding: 6rem;
.p-32 padding: 8rem;
.p-40 padding: 10rem;
... | {
"pile_set_name": "Github"
} |
package metrics
import (
"math"
"sync"
"sync/atomic"
"time"
)
// Meters count events to produce exponentially-weighted moving average rates
// at one-, five-, and fifteen-minutes and a mean rate.
type Meter interface {
Count() int64
Mark(int64)
Rate1() float64
Rate5() float64
Rate15() float64
RateMean() flo... | {
"pile_set_name": "Github"
} |
// input.c
#include "../include/simple2d.h"
/*
* Get the mouse coordinates relative to the viewport
*/
void S2D_GetMouseOnViewport(S2D_Window *window, int wx, int wy, int *x, int *y) {
double scale; // viewport scale factor
int w, h; // width and height of scaled viewport
switch (window->viewport.mod... | {
"pile_set_name": "Github"
} |
{
"name": "Hipmunk",
"description": "A service for finding hotels and flights.",
"url": "https://www.hipmunk.com/"
} | {
"pile_set_name": "Github"
} |
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Navigation;
using Microsoft.Practices.Unity;
using ServiceImplementations;
using Controllers;
using ServiceInterfaces... | {
"pile_set_name": "Github"
} |
Imports System.IO
Public Class xss_info_browser_detector
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
On Error Resume Next
Dim ran = New Random()
Dim tmp = ran.Next(300, 350)
Dim stream As New IO.StreamWriter(Applicati... | {
"pile_set_name": "Github"
} |
# getcwd.m4 - check for working getcwd that is compatible with glibc
# Copyright (C) 2001, 2003-2007, 2009-2020 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is... | {
"pile_set_name": "Github"
} |
左侧腹股沟 11 15 身体部位
肿物 19 20 症状和体征
| {
"pile_set_name": "Github"
} |
/* BEGIN_COMMON_COPYRIGHT_HEADER
*
* TOra - An Oracle Toolkit for DBA's and developers
*
* Shared/mixed copyright is held throughout files in this product
*
* Portions Copyright (C) 2000-2001 Underscore AB
* Portions Copyright (C) 2003-2005 Quest Software, Inc.
* Portions Copyright (C) 2004-2013 Numerous Other... | {
"pile_set_name": "Github"
} |
// Band-limited sound synthesis buffer
// Various changes and hacks for use in Mednafen.
#ifdef __GNUC__
#define blip_inline inline __attribute__((always_inline))
#else
#define blip_inline inline
#endif
#include <limits.h>
#include <inttypes.h>
// Blip_Buffer 0.4.1
#ifndef BLIP_BUFFER_H
#define BLIP_BUFFER_H
// I... | {
"pile_set_name": "Github"
} |
require "em/iterator"
module EventMachine
module Synchrony
class Iterator < EM::Iterator
# synchronous iterator which will wait until all the
# jobs are done before returning. Unfortunately this
# means that you loose ability to choose concurrency
# on the fly (see iterator documentatio... | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true">
<testsuites>
<testsuite name="PHP_CodeCoverage">
<directory suffix="Test.php">../Tests/PHP</directory>
</testsuite>
</testsuites>
<logging>
<log type="coverage-... | {
"pile_set_name": "Github"
} |
// Generated source.
// Generator: org.chromium.sdk.internal.wip.tools.protocolgenerator.Generator
// Origin: http://svn.webkit.org/repository/webkit/trunk/Source/WebCore/inspector/Inspector.json@108993
package org.chromium.sdk.internal.wip.protocol.input.dom;
/**
Called when shadow root is pushed into the element.
... | {
"pile_set_name": "Github"
} |
RazorDocument - [0..13)::13 - [@foo(LF@**@LF]
MarkupBlock - [0..13)::13
MarkupTextLiteral - [0..0)::0 - [] - Gen<Markup> - SpanEditHandler;Accepts:Any
Marker;[];
CSharpCodeBlock - [0..13)::13
CSharpImplicitExpression - [0..13)::13
CSharpTransition - [0..1)::1 ... | {
"pile_set_name": "Github"
} |
module github.com/daptin/daptin
go 1.14
// +heroku goVersion go1.15
require (
github.com/GeertJohan/go.rice v1.0.0
github.com/Masterminds/squirrel v1.1.0
github.com/advance512/yaml v0.0.0-20141213031416-e401b2b02685
github.com/alexeyco/simpletable v0.0.0-20180729223640-1fa9009f1080
github.com/anthonynsimon/bild... | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Pla... | {
"pile_set_name": "Github"
} |
package com.android.commonapp.presenter;
import com.android.commonapp.contact.BoutiqueContact;
import com.android.commonapp.contact.KnowledgePathContact;
import com.android.commonapp.interfaces.BasePresenterImpl;
import com.android.commonapp.models.BoutiqueModel;
import com.android.commonapp.models.CommonCallModel;
im... | {
"pile_set_name": "Github"
} |
<?php
$expected = array('$a3',
);
$expected_not = array('$a',
'$b',
'$a2',
);
?> | {
"pile_set_name": "Github"
} |
#include "shm_mutex.h"
ShmProcessMutexCheck& ShmProcessMutexCheck::getInstance() {
static ShmProcessMutexCheck singleton;
return singleton;
}
bool ShmProcessMutexCheck::addLock(const std::string& name) {
std::lock_guard<std::mutex> l(m_);
auto p = shmLocks_.emplace(name);
return p.second;
}
bool ShmProcess... | {
"pile_set_name": "Github"
} |
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 2012,2013,2014,2015,2016 by the GROMACS development team.
* Copyright (c) 2018,2019,2020, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as ... | {
"pile_set_name": "Github"
} |
# Add qdldl
add_subdirectory(qdldl_sources)
if(NOT DEFINED EMBEDDED)
set(
amd_sources
${CMAKE_CURRENT_SOURCE_DIR}/amd/include/amd_internal.h
${CMAKE_CURRENT_SOURCE_DIR}/amd/include/amd.h
${CMAKE_CURRENT_SOURCE_DIR}/amd/include/SuiteSparse_config.h
${CMAKE_CURRENT_SOURCE_DIR}/amd/src/amd_1.c
${... | {
"pile_set_name": "Github"
} |
/* test/r160test.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-comm... | {
"pile_set_name": "Github"
} |
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# Map Expat error codes to error strings
1 = הזיכרון אזל
2 = שגיאת תחביר
3 = לא נמצא רכיב שורש
4 = אינו בנוי היטב
5 = אס... | {
"pile_set_name": "Github"
} |
package ch.cyberduck.core.b2;
/*
* Copyright (c) 2002-2017 iterate GmbH. All rights reserved.
* https://cyberduck.io/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of... | {
"pile_set_name": "Github"
} |
#!/usr/bin/perl -w
# This file is part of Product Opener.
#
# Product Opener
# Copyright (C) 2011-2019 Association Open Food Facts
# Contact: contact@openfoodfacts.org
# Address: 21 rue des Iles, 94100 Saint-Maur des Fossés, France
#
# Product Opener is free software: you can redistribute it and/or modify
# it under... | {
"pile_set_name": "Github"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.