text stringlengths 2 99.9k | meta dict |
|---|---|
/*
Copyright 2014 The Kubernetes 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 agreed to in writing, ... | {
"pile_set_name": "Github"
} |
ip = input("please enter the new IP address:")
syspref = App.open("System Preferences.app")
with Region(syspref.window()):
click("Network.png")
click("1254367484704.png")
click("1256519960853.png")
click("1254367285543.png" )
wait("1256520016190.png")
type(ip + "\t")
type("255.255.255.0\t")
type("192.168.0.254\... | {
"pile_set_name": "Github"
} |
// Don't crash when a scripted proxy handler throws Error.prototype.
var g = newGlobal();
var dbg = Debugger(g);
dbg.onDebuggerStatement = function (frame) {
try {
frame.arguments[0].deleteProperty("x");
} catch (exc) {
return;
}
throw new Error("deleteProperty should throw");
};
g.eva... | {
"pile_set_name": "Github"
} |
OpenIDE-Module-Long-Description = API pro vizuální vzhled prvk\u016f
OpenIDE-Module-Short-Description = API pro vizuální vzhled prvk\u016f
NodeGraphFunction.Degree.name = Stupe\u0148
NodeGraphFunction.InDegree.name = Stupe\u0148 Dovnit\u0159
NodeGraphFunction.OutDegree.name = Stupe\u0148 Ven
EdgeGraphFunction.Weig... | {
"pile_set_name": "Github"
} |
<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>菜单模板</title>
</head>
<body>
<div class="perfree-menu" th:fragment="menu">
<!-- menu start 菜单部分开始 -->
<div class="layui-side layui-bg-black left-navbar-menu">
<div class="layui-side-scroll">
<div clas... | {
"pile_set_name": "Github"
} |
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2020, Arnaud Roques
*
* Project Info: http://plantuml.com
*
* If you like this project or if y... | {
"pile_set_name": "Github"
} |
apiVersion: v1
kind: ReplicationController
metadata:
name: redis-master
# these labels can be applied automatically
# from the labels in the pod template if not set
labels:
app: redis
role: master
tier: backend
spec:
# this replicas value is default
# modify it according to your case
replicas:... | {
"pile_set_name": "Github"
} |
snd-au8810-objs := au8810.o
snd-au8820-objs := au8820.o
snd-au8830-objs := au8830.o
obj-$(CONFIG_SND_AU8810) += snd-au8810.o
obj-$(CONFIG_SND_AU8820) += snd-au8820.o
obj-$(CONFIG_SND_AU8830) += snd-au8830.o
| {
"pile_set_name": "Github"
} |
// SPDX-License-Identifier: GPL-2.0
/*
* Implementation of per-board codec beeping
* Copyright (c) 2011 The Chromium OS Authors.
* Copyright 2018 Google LLC
*/
#define LOG_CATEGORY UCLASS_SOUND
#include <common.h>
#include <dm.h>
#include <hda_codec.h>
#include <log.h>
#include <pci.h>
#include <sound.h>
#include... | {
"pile_set_name": "Github"
} |
# Changelog
## [1.0.6] - 2019-05-13
**Fix**
- fix #29 หัวใบกำกับภาษีหายกรณีสร้างใบยกเลิกมากกว่าสองใบ
## [1.0.5] - 2018-10-05
**Update**
- update
1. อัพเดทกระบวนการ read/write database เมื่อมีการ uninstall และ install ข้อมูลลูกค้าจะยังอยู่
*หมายเหตุ หากใช้ Installation version 1.0.4 ลงไปจะต้อง run program... | {
"pile_set_name": "Github"
} |
// Copyright 2016 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.
#include "src/compiler/memory-optimizer.h"
#include "src/codegen/interface-descriptors.h"
#include "src/codegen/tick-counter.h"
#include "src/compiler/... | {
"pile_set_name": "Github"
} |
'use strict'
module.exports = {
up: async function (queryInterface, Sequelize) {
await queryInterface.changeColumn('Notes', 'authorship', { type: Sequelize.TEXT('long') })
await queryInterface.changeColumn('Revisions', 'authorship', { type: Sequelize.TEXT('long') })
},
down: async function (queryInterfa... | {
"pile_set_name": "Github"
} |
---
title: 实现一个简单的html ast解析算法
date: 2017-05-23
---
<!-- 为了更方便归档,请先完善以上信息,正文贴下面 -->
<!--
注意点:
0. 文章中的资源(主要是图片)引用请使用 HTTPS
1. 文章末可以加上自己的署名,如: by [Kaola](http://www.kaola.com)
2. 最好不要用 NOS 图床,感觉加防盗链是迟早的事
-->
## 概述
html ast解析算法的过程是将一段html字符串,解析成一个javascript对象。
<!-- more -->
## 示例字符串
```html
<div>
<input r-value=... | {
"pile_set_name": "Github"
} |
/*
* Based on code written by J.T. Conklin <jtc@NetBSD.org>.
* Public domain.
*/
#include <i387/bsd_asm.h>
//__FBSDID("$FreeBSD: src/lib/msun/i387/s_truncf.S,v 1.4 2011/01/07 16:13:12 kib Exp $")
ENTRY(truncf)
pushl %ebp
movl %esp,%ebp
subl $8,%esp
fstcw -4(%ebp) /* store fpu control word */
movw -4(%ebp),%... | {
"pile_set_name": "Github"
} |
/**
* DataCleaner (community edition)
* Copyright (C) 2014 Free Software Foundation, Inc.
*
* This copyrighted material is made available to anyone wishing to use, modify,
* copy, or redistribute it subject to the terms and conditions of the GNU
* Lesser General Public License, as published by the Free Software F... | {
"pile_set_name": "Github"
} |
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="sales">
... | {
"pile_set_name": "Github"
} |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "sync/internal_api/public/test/test_internal_components_factory.h"
#include "sync/sessions/sync_session_context.h"
#include "sync/syncable/i... | {
"pile_set_name": "Github"
} |
exports.valid = {
fullName : "John Doe",
age : 47,
state : "Massachusetts",
city : "Boston",
zip : 16417,
married : false,
dozen : 12,
dozenOrBakersDozen : 13,
favoriteEvenNumber : 14,
topThreeFavoriteColors : [ "red", "blue", "green" ],
favoriteSingleDigitWholeNumbers : [ 7 ],
favoriteFiveLette... | {
"pile_set_name": "Github"
} |
// Copyright Louis Dionne 2013-2017
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
#include "_specs.hpp"
#include <auto/cartesian_product.hpp>
int main() { }
| {
"pile_set_name": "Github"
} |
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... | {
"pile_set_name": "Github"
} |
#!/bin/sh
LC_ALL=C
export LC_ALL
stat=0
so="$1"
def="$2"
PATTERN="_ANCHOR_"
TMPFILE="$(mktemp .nm-check-exports.XXXXXX)"
get_syms() {
${NM:-nm} "$1" |
sed -n 's/^[[:xdigit:]]\+ [DT] //p' |
sort
}
get_syms_from_def() {
sed -n 's/^\t\(\([_a-zA-Z0-9]\+\)\|#\s*\([_a-zA-Z0-9]\+@@\?[_a-zA-Z0-9]\+\)\);$/... | {
"pile_set_name": "Github"
} |
/*****************************************************************************
*
* ReoGrid - .NET Spreadsheet Control
*
* http://reogrid.net/
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
* KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF... | {
"pile_set_name": "Github"
} |
//! An application to run property tests for `bindgen` with _fuzzed_ C headers
//! using `quickcheck`
//!
//! ## Usage
//!
//! Print help
//! ```bash
//! $ cargo run --bin=quickchecking -- -h
//! ```
//!
//! Run with default values
//! ```bash
//! $ cargo run --bin=quickchecking
//! ```
//!
#![deny(missing_docs)]
exter... | {
"pile_set_name": "Github"
} |
// Copyright 2015 Google 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/LICENSE-2.0
//
// Unless required by applicable... | {
"pile_set_name": "Github"
} |
path: "tensorflow.initializers.uniform_unit_scaling"
tf_class {
is_instance: "<class \'tensorflow.python.ops.init_ops.UniformUnitScaling\'>"
is_instance: "<class \'tensorflow.python.ops.init_ops.Initializer\'>"
is_instance: "<type \'object\'>"
member_method {
name: "__init__"
argspec: "args=[\'self\', \... | {
"pile_set_name": "Github"
} |
// Copyright 2018 The etcd 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 agreed t... | {
"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
... | {
"pile_set_name": "Github"
} |
/*
* Copyright (c) AXA Group Operations Spain S.A.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify,... | {
"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"
} |
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Class: Selenium::Rake::RemoteControlStopTask</title... | {
"pile_set_name": "Github"
} |
/* eslint-disable */
const webpack = require('webpack');
'use strict';
const EngineAddon = require('ember-engines/lib/engine-addon');
module.exports = EngineAddon.extend({
name: 'login',
lazyLoading: { enabled: true },
isDevelopingAddon() {
return true;
},
options: {
babel: { plugins: [requ... | {
"pile_set_name": "Github"
} |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | {
"pile_set_name": "Github"
} |
if (!document.getElementById('mathjaxscript_pelican_#%@#$@#')) {{
var align = "{align}",
indent = "{indent}",
linebreak = "{linebreak_automatic}";
if ({responsive}) {{
align = (screen.width < {responsive_break}) ? "left" : align;
indent = (screen.width < {responsive_break}) ? "0... | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>17E199</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</ke... | {
"pile_set_name": "Github"
} |
<hkobject name="#zcbe$34" class="BSDirectAtModifier" signature="0x19a005c0">
<hkparam name="variableBindingSet">#zcbe$35</hkparam>
<hkparam name="userData">0</hkparam>
<hkparam name="name">Z_AimAttackNPCDAM</hkparam>
<hkparam name="enable">true</hkparam>
<hkparam name="directAtTarget">true</hkparam>
... | {
"pile_set_name": "Github"
} |
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: OpenSSL-libcrypto
Description: OpenSSL cryptography library
Version: 0.9.7l
Requires:
Libs: -L${libdir} -lcrypto -lz
Cflags: -I${includedir}
| {
"pile_set_name": "Github"
} |
@echo off
call python.bat translator.py --root-dir ..
pause | {
"pile_set_name": "Github"
} |
// SPDX-License-Identifier: GPL-2.0
#if defined(__i386__) || defined(__x86_64__)
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
#include <stdint.h>
#include <pci/pci.h>
#include "helpers/helpers.h"
#define MSR_AMD_PSTATE_STATUS 0xc0010063
#define MSR_AMD_PSTATE 0xc0010064
#define MSR_AMD_PSTATE_LIMIT 0xc... | {
"pile_set_name": "Github"
} |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
* Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.
*/
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/completion.h>
#include <linux/buffer_head.h... | {
"pile_set_name": "Github"
} |
{
"_meta": {
"type": {
"text": "markup"
}
},
"ru-RU": {
"text": "<b:include src=\"./ru.tmpl\"/>"
},
"en-US": {
"text": "<b:include src=\"./en.tmpl\"/>"
}
}
| {
"pile_set_name": "Github"
} |
import unittest
import pytest
from geopyspark.geotrellis import SpatialPartitionStrategy, LocalLayout
from geopyspark.geotrellis.constants import LayerType, Operation
from geopyspark.geotrellis.geotiff import get
from geopyspark.geotrellis.neighborhood import Square
from geopyspark.tests.base_test_class import BaseTes... | {
"pile_set_name": "Github"
} |
module PlanService::API
class NoPlans
Plan = PlanService::DataTypes::Plan
def active?
false
end
def authorize(*)
not_in_use
end
def create(*)
not_in_use
end
def create_initial_trial(*)
not_in_use
end
def get_current(community_id:)
Result::Suc... | {
"pile_set_name": "Github"
} |
/**
* Copyright (C) 2016 Turi
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
#ifndef RCPP_SERIALIZE_HPP
#define RCPP_SERIALIZE_HPP
#undef HAVE_VISIBILITY_ATTRIBUTE
#include <stdlib.h>
#include <string.h>
// mo... | {
"pile_set_name": "Github"
} |
var mkdirp = require('../');
var path = require('path');
var test = require('tap').test;
var mockfs = require('mock-fs');
var _0777 = parseInt('0777', 8);
var _0755 = parseInt('0755', 8);
test('opts.fs', function (t) {
t.plan(5);
var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
var y =... | {
"pile_set_name": "Github"
} |
/*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
Copyright (c) 2005-2006 Dan Marsden
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)
=... | {
"pile_set_name": "Github"
} |
/*
* Copyright Andrey Semashev 2007 - 2015.
* 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)
*/
/*!
* \file parser_utils.hpp
* \author Andrey Semashev
* \date 31.03.2008
*
* \brief ... | {
"pile_set_name": "Github"
} |
"""
Use this script to create JSON-Line description files that can be used to
train deep-speech models through this library.
This works with data directories that are organized like LibriSpeech:
data_directory/group/speaker/[file_id1.wav, file_id2.wav, ...,
speaker.trans.txt]
Where speake... | {
"pile_set_name": "Github"
} |
/*
* 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 in writing, software distributed under t... | {
"pile_set_name": "Github"
} |
https://github.com/codehaus/jaxen/blob/master/jaxen/LICENSE.txt
/*
$Id$
Copyright 2003-2006 The Werken Company. 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... | {
"pile_set_name": "Github"
} |
/* GitHub stylesheet for MarkdownPad (http://markdownpad.com) */
/* Author: Nicolas Hery - http://nicolashery.com */
/* Version: b13fe65ca28d2e568c6ed5d7f06581183df8f2ff */
/* Source: https://github.com/nicolahery/markdownpad-github */
/* RESET
==========================================================================... | {
"pile_set_name": "Github"
} |
USE zabbix;
DROP PROCEDURE IF EXISTS partition_maintenance;
DELIMITER $$
CREATE PROCEDURE `partition_maintenance`(SCHEMA_NAME VARCHAR(32), TABLE_NAME VARCHAR(32), INTERVAL_TYPE VARCHAR(10),
INTERVAL_VALUE INT, CREATE_NEXT_INTERVALS INT, KEEP_DATA_DAYS INT)
BEGIN
DECLARE _K... | {
"pile_set_name": "Github"
} |
// RUN: %clang_cc1 %s -verify -fsyntax-only
- (void)compilerTestAgainst; // expected-error {{missing context for method declaration}}
void xx(); // expected-error {{expected method body}}
| {
"pile_set_name": "Github"
} |
package com.suixingpay.config.server;
import com.suixingpay.config.server.condition.ApplicationConfigCondition;
import com.suixingpay.config.server.entity.ApplicationConfigDO;
import com.suixingpay.config.server.entity.ApplicationDO;
import com.suixingpay.config.server.entity.ProfileDO;
import com.suixingpay.config.se... | {
"pile_set_name": "Github"
} |
<div class="rbox" name="tip">
<div class="rbox-title" name="tip">{tr}Tip{/tr}</div>
<div class="rbox-data" name="tip">{tr}To learn more about <a class="rbox-link" target="tikihelp" href="http://mods.tikiwiki.org">mods</a>.{/tr}
</div>
</div>
<br />
<style>
{literal}
.focus { background-color : #eeee77; }
{/literal}
... | {
"pile_set_name": "Github"
} |
import React, { createContext, useState } from 'react'
import t from 'prop-types'
import uuidv4 from 'uuid/v4'
import firebase, { db } from 'services/firebase'
import { useAuth } from 'hooks'
const OrderContext = createContext()
function OrderProvider ({ children }) {
const [pizzas, addPizza] = useState([])
const... | {
"pile_set_name": "Github"
} |
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright 2017 Icenowy Zheng <icenowy@aosc.io>
*
*/
#ifndef _CCU_SUNIV_F1C100S_H_
#define _CCU_SUNIV_F1C100S_H_
#include <dt-bindings/clock/suniv-ccu-f1c100s.h>
#include <dt-bindings/reset/suniv-ccu-f1c100s.h>
#define CLK_PLL_CPU 0
#define CLK_PLL_AUDIO_BASE 1
#define... | {
"pile_set_name": "Github"
} |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0) on Wed Apr 05 01:58:42 EDT 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class org.owasp.appsens... | {
"pile_set_name": "Github"
} |
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation.
// All rights reserved.
//
// This code is licensed under the MIT License.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated doc... | {
"pile_set_name": "Github"
} |
<?xml version="1.0" standalone="no" ?>
<!DOCTYPE pov SYSTEM "/usr/share/cgc-docs/replay.dtd">
<pov>
<cbid>CROMU_00033</cbid>
<replay>
<write echo="ascii"><data>NDIR\x07/GzWnaO</data></write>
<read echo="ascii"><delim>\n</delim><match><data>[INFO] Added new directory\n</data></match></read>
<write echo="ascii"><... | {
"pile_set_name": "Github"
} |
require('../modules/web.timers');
require('../modules/web.immediate');
require('../modules/web.dom.iterable');
module.exports = require('../modules/$.core'); | {
"pile_set_name": "Github"
} |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/media/images/favicon.ico" />
<title>DataTables example</titl... | {
"pile_set_name": "Github"
} |
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\helpers;
use Yii;
use yii\base\ErrorException;
use yii\base\InvalidConfigException;
use yii\base\InvalidParamException;
/**
* BaseFileHelper provides c... | {
"pile_set_name": "Github"
} |
// Copyright 2011 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 openpgp
import "hash"
// NewCanonicalTextHash reformats text written to it into the canonical
// form and then applies the hash h. See RFC 4880, sect... | {
"pile_set_name": "Github"
} |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*
*/
package com.microsoft.azure.management.network.v2017_10_01.implementation;
import co... | {
"pile_set_name": "Github"
} |
import tensorflow as tf
from baselines.common.distributions import make_pdtype
from collections import OrderedDict
from gym import spaces
def canonical_dtype(orig_dt):
if orig_dt.kind == 'f':
return tf.float32
elif orig_dt.kind in 'iu':
return tf.int32
else:
raise NotImplementedErro... | {
"pile_set_name": "Github"
} |
#!/usr/bin/env python
import io
from pathlib import Path
from setuptools import setup, find_packages
import umap
def is_pkg(line):
return line and not line.startswith(('--', 'git', '#'))
with io.open('requirements.txt', encoding='utf-8') as reqs:
install_requires = [l for l in reqs.read().split('\n') if ... | {
"pile_set_name": "Github"
} |
---
layout: post
title: Ground knowledge
order: 20
---
## Web
It is a shame that many developers do not understand the fundamentals of web development. We are creating web apps without even knowing how the Internet (or the web) works. That's why junior developers do not understand what params are and what triggers the... | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2013 The Android Open Source Project
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
Unle... | {
"pile_set_name": "Github"
} |
var _ = require("lodash");
var d3 = require("d3");
var Renderer = require("dataproofer").Rendering;
var util = require("dataproofertest-js/util");
function HTMLRenderer(config) {
Renderer.call(this, config);
var rows = window.rows = config.rows;
this.rows = rows;
// console.log("render config", config, this);
... | {
"pile_set_name": "Github"
} |
{
"images": [
{
"filename": "ic_shopping_basket_white_48pt.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_shopping_basket_white_48pt_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
... | {
"pile_set_name": "Github"
} |
X-Account-Key: account5
X-UIDL: GmailId128181933863ffb0
X-Mozilla-Status: 0000
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:
Delivered-To: mlsubscriber.tech@csmining.org
Received: by 10.143.34.8 with SMTP id m8cs43295wfj;
Mon, 19 Apr... | {
"pile_set_name": "Github"
} |
{
"name": "symfony/workflow",
"type": "library",
"description": "Symfony Workflow Component",
"keywords": ["workflow", "petrinet", "place", "transition", "statemachine", "state"],
"homepage": "https://symfony.com",
"license": "MIT",
"authors": [
{
"name": "Fabien Potencie... | {
"pile_set_name": "Github"
} |
<?php
/*
* This file is part of PHP CS Fixer.
*
* (c) Fabien Potencier <fabien@symfony.com>
* Dariusz Rumiński <dariusz.ruminski@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace PhpCsFixer\Tests\Fixer\StringNotation;
u... | {
"pile_set_name": "Github"
} |
/*global Buffer require exports console setTimeout */
var net = require("net"),
util = require("./lib/util"),
Queue = require("./lib/queue"),
to_array = require("./lib/to_array"),
events = require("events"),
crypto = require("crypto"),
parsers = [], commands,
connection_id = 0,
default_... | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8" ?>
<resources>
<style name="MainTheme" parent="MainTheme.Base">
</style>
<!-- Base theme applied no matter what API -->
<style name="MainTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
<!--If you are using revision 22.1 please use just windowNoTitle. Without a... | {
"pile_set_name": "Github"
} |
/****************************************************************************
* Driver for Solarflare network controllers and boards
* Copyright 2005-2006 Fen Systems Ltd.
* Copyright 2006-2013 Solarflare Communications Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the t... | {
"pile_set_name": "Github"
} |
# Docker Machine Experimental Features
Docker Machine’s experimental features gives you access to bleeding edge features. By identifying experimental features, you can try out features early and give feedback to the Docker Machine maintainers. In this way, we hope to refine our feature designs by exposing them earlie... | {
"pile_set_name": "Github"
} |
package com.ofg.infrastructure.web.resttemplate.fluent;
import java.net.URI;
import java.util.concurrent.Callable;
import org.springframework.cloud.sleuth.Tracer;
import org.springframework.cloud.zookeeper.discovery.dependency.ZookeeperDependencies;
import org.springframework.web.client.RestOperations;
import com.go... | {
"pile_set_name": "Github"
} |
// The UnixCredentials system call is currently only implemented on Linux
// http://golang.org/src/pkg/syscall/sockcmsg_linux.go
// https://golang.org/s/go1.4-syscall
// http://code.google.com/p/go/source/browse/unix/sockcmsg_linux.go?repo=sys
// Local implementation of the UnixCredentials system call for FreeBSD
pac... | {
"pile_set_name": "Github"
} |
# Copyright 2017 The TensorFlow Authors. 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 applica... | {
"pile_set_name": "Github"
} |
{ stdenv, fetchurl, fetchFromGitHub
, autoreconfHook
, glib
, db
, pkgconfig
}:
let
modelData = fetchurl {
url = "mirror://sourceforge/libpinyin/models/model17.text.tar.gz";
sha256 = "1kb2nswpsqlk2qm5jr7vqcp97f2dx7nvpk24lxjs1g12n252f5z0";
};
in
stdenv.mkDerivation rec {
pname = "libpinyin";
version ... | {
"pile_set_name": "Github"
} |
package main
import (
"net/http"
"io"
"os"
"path/filepath"
)
func main() {
http.ListenAndServe(":9000", http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) {
if req.Method == "POST" {
file, _, err := req.FormFile("my-file")
if err != nil {
http.Error(res, err.Error(), 500)
return
... | {
"pile_set_name": "Github"
} |
//
// Podcast.swift
// Podcasts
//
// Created by Eugene Karambirov on 21/09/2018.
// Copyright © 2018 Eugene Karambirov. All rights reserved.
//
import Foundation
final class Podcast: NSObject, Decodable, NSCoding {
var trackName: String?
var artistName: String?
var artworkUrl600: String?
var tra... | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
a... | {
"pile_set_name": "Github"
} |
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source,
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
// SPDX - License - Identifier: GPL - 3.0 ... | {
"pile_set_name": "Github"
} |
#!/usr/bin/env python
"""
This source file is part of the Swift.org open source project
Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
Licensed under Apache License v2.0 with Runtime Library Exception
See https://swift.org/LICENSE.txt for license information
See https://swift.org/CONTRIBU... | {
"pile_set_name": "Github"
} |
use_frameworks!
platform :ios, '10.0'
target 'ISEmojiViewExample' do
pod 'ISEmojiView', :path => '../'
end
| {
"pile_set_name": "Github"
} |
attribute vec4 aPosition;
attribute vec4 aTextureCoord;
uniform mat4 uMVPMatrix;
uniform mat4 uSTMatrix;
varying vec2 vTextureCoord;
void main() {
gl_Position = uMVPMatrix * aPosition;
vTextureCoord = (uSTMatrix * aTextureCoord).xy;
} | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<Product Revision="2"
xmlns="https://github.com/OpenZWave/open-zwave">
<!-- Please refer to https://github.com/OpenZWave/open-zwave/wiki/Adding-Devices for instructions -->
<MetaData>
<MetaDataItem name="Name">Duco CO2/RH sensor</MetaDataItem>
<MetaDataItem name="Descriptio... | {
"pile_set_name": "Github"
} |
#include <stdio.h>
#ifdef _MSC_VER
#pragma warning(disable:4996)
#endif // _MSC_VER
// This convoluted function returns 0
// but will hopefully not be optimized away in release builds...
int return_0_non_optimizable()
{
char buffer[100];
long value = 62831853;
char *c;
int result;
sprintf(buffer, "%ld", v... | {
"pile_set_name": "Github"
} |
package org.elixir_lang.beam.chunk.debug_info.v1.erl_abstract_code.abstract_code_compiler_options.abstract_code
data class Scope(val varNameSet: Set<String>, val pinning: Boolean = false) {
fun union(other: Scope): Scope {
val otherVarNameSet = other.varNameSet
val otherPinning = other.pinning
... | {
"pile_set_name": "Github"
} |
/*
Velociraptor - Hunting Evil
Copyright (C) 2019 Velocidex Innovations.
This program 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 the License, or
(at your option) ... | {
"pile_set_name": "Github"
} |
<!doctype html>
<title>CodeMirror: Julia mode</title>
<meta charset="utf-8"/>
<link rel=stylesheet href="../../doc/docs.css">
<link rel="stylesheet" href="../../lib/codemirror.css">
<script src="../../lib/codemirror.js"></script>
<script src="julia.js"></script>
<style type="text/css">.CodeMirror {border-top: 1px sol... | {
"pile_set_name": "Github"
} |
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>javax.measure</groupId>
<artifactId>unit-api</artifactId>
<versio... | {
"pile_set_name": "Github"
} |
//
// TGMessagesNavigationController.m
// Telegram
//
// Created by keepcoder on 06/04/16.
// Copyright © 2016 keepcoder. All rights reserved.
//
#import "TGMessagesNavigationController.h"
#import "TGViewMessagesDragging.h"
#import "TGInlineAudioPlayer.h"
#import "TGAudioPlayerWindow.h"
@interface TGMessagesNaviga... | {
"pile_set_name": "Github"
} |
# coding: utf-8
require "#{File.dirname(__FILE__)}/../spec_helper"
describe Bonsai::Page do
describe "class methods" do
it "should respond to all" do
Bonsai::Page.should respond_to :all
end
it "should contain pages" do
Bonsai::Page.all.first.should be_an_instance_of(Bonsai::Page)
end... | {
"pile_set_name": "Github"
} |
*******************************************************
* Run Autoruns, Parse the CSV, and copy all of the *
* executables *
*******************************************************
SET:CopyPath=Part
ACQ:\ARN
SAY:[+] Executing Autoruns (Ignoring MS Executables)...
CMD:\SYS\Auto... | {
"pile_set_name": "Github"
} |
dubbo.application.qos.port=33333
| {
"pile_set_name": "Github"
} |
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\mail;
/**
* MessageInterface is the interface that should be implemented by mail message classes.
*
* A message represents the settings and content of... | {
"pile_set_name": "Github"
} |
<?php
namespace Opencart\Application\Controller\Affiliate;
class Login extends \Opencart\System\Engine\Controller {
private $error = [];
public function index() {
if (!$this->config->get('config_affiliate_status') || $this->customer->isLogged()) {
$this->response->redirect($this->url->link('account/account', 'l... | {
"pile_set_name": "Github"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.