text
stringlengths 2
99.1k
| meta
dict |
|---|---|
function showIframeDialog(url) {
var dlg = $('#iframeModal');
dlg.find("#iframe").attr("src", url);
dlg.modal({'show':true});
}
|
{
"pile_set_name": "Github"
}
|
/// @ref gtx_vector_angle
/// @file glm/gtx/vector_angle.hpp
///
/// @see core (dependence)
/// @see gtx_quaternion (dependence)
/// @see gtx_epsilon (dependence)
///
/// @defgroup gtx_vector_angle GLM_GTX_vector_angle
/// @ingroup gtx
///
/// @brief Compute angle between vectors
///
/// <glm/gtx/vector_angle.hpp> need to be included to use these functionalities.
#pragma once
// Dependency:
#include "../glm.hpp"
#include "../gtc/epsilon.hpp"
#include "../gtx/quaternion.hpp"
#include "../gtx/rotate_vector.hpp"
#if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
# pragma message("GLM: GLM_GTX_vector_angle extension included")
#endif
namespace glm
{
/// @addtogroup gtx_vector_angle
/// @{
//! Returns the absolute angle between two vectors.
//! Parameters need to be normalized.
/// @see gtx_vector_angle extension.
template <typename vecType>
GLM_FUNC_DECL typename vecType::value_type angle(
vecType const & x,
vecType const & y);
//! Returns the oriented angle between two 2d vectors.
//! Parameters need to be normalized.
/// @see gtx_vector_angle extension.
template <typename T, precision P>
GLM_FUNC_DECL T orientedAngle(
tvec2<T, P> const & x,
tvec2<T, P> const & y);
//! Returns the oriented angle between two 3d vectors based from a reference axis.
//! Parameters need to be normalized.
/// @see gtx_vector_angle extension.
template <typename T, precision P>
GLM_FUNC_DECL T orientedAngle(
tvec3<T, P> const & x,
tvec3<T, P> const & y,
tvec3<T, P> const & ref);
/// @}
}// namespace glm
#include "vector_angle.inl"
|
{
"pile_set_name": "Github"
}
|
Welcome to the Munin Guide
==========================
Contents:
.. toctree::
:maxdepth: 2
preface/index.rst
tutorial/index.rst
architecture/index.rst
installation/index.rst
advanced/index.rst
howtos/index.rst
develop/index.rst
develop/plugins/index.rst
reference/index.rst
others/index.rst
Indices and Tables
==================
* :ref:`genindex`
|
{
"pile_set_name": "Github"
}
|
file(GLOB images *.png)
install(FILES
theme.cfg
${images}
credits.txt
DESTINATION ${SHAREPATH}Data/Themes/Cake)
|
{
"pile_set_name": "Github"
}
|
require_rv64;
WRITE_RD(sext32(int32_t(RS1) >> (RS2 & 0x1F)));
|
{
"pile_set_name": "Github"
}
|
use std::fs;
use std::path::Path;
pub fn main() {
for f in fs::read_dir("/").unwrap() {
let f = f.unwrap();
println!("{}", Path::new(&f.file_name()).display());
}
}
|
{
"pile_set_name": "Github"
}
|
{% extends "base.html" %}
{% block content %}
<article>
<h2>{{ article.title }}</h2>
{{ article.content }}
<h6>Written by <a href="{{ SITEURL }}/author/{{ article.author|lower|replace(' ', '-') }}.html">{{ article.author }}</a> on {{ article.locale_date }}.</h6>
</article>
{% if DISQUS_SITENAME %}
<hr/>
<div class="row">
<div class="small-12 columns">
<h3>Comments</h3>
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = '{{ DISQUS_SITENAME }}';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
</div>
{% endif %}
{% endblock %}
|
{
"pile_set_name": "Github"
}
|
package com.cleveroad.blur_tutorial.explanator
import android.view.View
internal interface ExplanatorCallback {
fun onPopupInflated(popupView: View)
fun onError(errMsg: String)
}
|
{
"pile_set_name": "Github"
}
|
/// <reference path="fourslash.ts" />
//@Filename: jsxExpressionFollowedByIdentifier.tsx
////declare var React: any;
////const a = <div>{<div />[|x|]}</div>
////const b = <div x={<div />[|x|]} />
test.ranges().forEach(range => {
verify.errorExistsAtRange(range, ts.Diagnostics._0_expected.code, "'}' expected.");
// This is just to ensure getting quick info doesn’t crash
verify.not.quickInfoExists();
});
|
{
"pile_set_name": "Github"
}
|
namespace std {
template <typename> struct remove_reference;
template <typename _Tp> struct remove_reference { typedef _Tp type; };
template <typename _Tp> struct remove_reference<_Tp &> { typedef _Tp type; };
template <typename _Tp> struct remove_reference<_Tp &&> { typedef _Tp type; };
template <typename _Tp>
constexpr typename std::remove_reference<_Tp>::type &&move(_Tp &&__t);
} // namespace std
// Standard case.
template <typename T, typename U> void f1(U &&SomeU) {
T SomeT(std::move(SomeU));
// CHECK-MESSAGES: :[[@LINE-1]]:11: warning: forwarding reference passed to
// CHECK-FIXES: T SomeT(std::forward<U>(SomeU));
}
void foo() {
f1<int, int>(2);
}
|
{
"pile_set_name": "Github"
}
|
defmodule GrapevineTelnet.Client do
@moduledoc """
A client to check for MSSP data
"""
use GenServer, restart: :transient
require Logger
alias GrapevineTelnet.Features
alias Telnet.Options
@type message() :: any()
@type option() :: tuple()
@type result() :: {:noreply, state()} | {:stop, :normal, state()}
@type server_options() :: Keyword.t()
@type state() :: map()
@type telnet_data() :: binary()
@doc """
Callback used during client GenServer initialization
Add to the GenServer state during this hook
"""
@callback init(state(), server_options()) :: state()
@doc """
Called after the client has connected to the game
"""
@callback connected(state()) :: :ok
@doc """
Called after the client could not connect to the remote game
"""
@callback connection_failed(state(), reason :: atom()) :: :ok
@doc """
Handle custom messages sent to the client GenServer
All unknown messages are sent down into the client callback module
"""
@callback handle_info(message(), state()) :: result()
@doc """
A hook to process telnet options that the general client does not understand
Specifically to hook into MSSP telnet option data
"""
@callback process_option(state(), option) :: result()
@doc """
New data was received over the telnet connection
"""
@callback receive(state(), telnet_data()) :: result()
@doc """
The TCP connection was dropped
"""
@callback disconnected(state()) :: :ok
@do_mssp <<255, 253, 70>>
@will_charset <<255, 251, 42>>
@will_term_type <<255, 251, 24>>
@wont_line_mode <<255, 252, 34>>
def start_link(callback_module, opts) do
GenServer.start_link(__MODULE__, [module: callback_module] ++ opts)
end
def start_link(opts) do
{server_opts, opts} = Keyword.split(opts, [:name])
GenServer.start_link(__MODULE__, opts, server_opts)
end
@doc """
Send data back to the server through the socket
Note: This uses self()
"""
def socket_send(data, opts \\ []) do
GenServer.cast(self(), {:send, data, opts})
end
def init(opts) do
module = Keyword.get(opts, :module)
state = %{
sid: UUID.uuid4(),
module: module,
buffer: <<>>,
processed: [],
features: %Features{},
term_type: :grapevine
}
state = module.init(state, opts)
:telemetry.execute([:telnet, :start], %{count: 1}, state)
{:ok, state, {:continue, :connect}}
end
def handle_continue(:connect, state) do
case connect(state) do
{:ok, socket} ->
:telemetry.execute([:telnet, :connection, :connected], %{count: 1}, state)
state.module.connected(state)
{:noreply, Map.put(state, :socket, socket)}
{:error, error} ->
state.module.connection_failed(state, error)
:telemetry.execute([:telnet, :connection, :failed], %{count: 1}, %{error: error})
{:stop, :normal, state}
end
end
def handle_cast({:send, iac, opts}, state) do
case state.type do
"telnet" ->
:gen_tcp.send(state.socket, iac)
"secure telnet" ->
:ssl.send(state.socket, iac)
end
case Keyword.has_key?(opts, :telemetry) do
true ->
metadata = Keyword.get(opts, :metadata, %{})
metadata = maybe_add_game_to_metadata(state, metadata)
:telemetry.execute([:telnet] ++ opts[:telemetry], %{count: 1}, metadata)
false ->
:ok
end
{:noreply, state}
end
def handle_info({:tcp, _port, data}, state) do
process_data(data, state)
end
def handle_info({:ssl, _socket, data}, state) do
process_data(data, state)
end
def handle_info({:tcp_closed, _port}, state) do
state.module.disconnected(state)
{:stop, :normal, state}
end
def handle_info({:ssl_closed, _socket}, state) do
state.module.disconnected(state)
{:stop, :normal, state}
end
def handle_info({:process, option}, state) do
case already_processed?(state, option) do
true ->
{:noreply, state}
false ->
process_option(state, option)
end
end
def handle_info(message, state) do
state.module.handle_info(message, state)
end
defp connect(state = %{type: "telnet"}) do
host = String.to_charlist(state.host)
:gen_tcp.connect(host, state.port, [:binary, {:packet, :raw}])
end
defp connect(state = %{type: "secure telnet"}) do
host = String.to_charlist(state.host)
opts = [:binary, {:cacerts, :certifi.cacerts()}, {:depth, 99}]
case is_nil(state.certificate) do
true ->
:ssl.connect(host, state.port, [{:verify, :verify_peer} | opts])
false ->
:ssl.connect(host, state.port, [
{:verify_fun, {&verify_cert/3, [state.certificate]}} | opts
])
end
end
defp verify_cert(cert, {:bad_cert, :selfsigned_peer}, state = [pinned_cert]) do
{_, _, _, cert_binary} = cert
[{:Certificate, pinned_cert, :not_encrypted}] = :public_key.pem_decode(pinned_cert)
pinned_cert = :public_key.der_decode(:Certificate, pinned_cert)
case pinned_cert do
{_, _, _, ^cert_binary} ->
{:valid, state}
_ ->
{:fail, "invalid"}
end
end
defp verify_cert(_cert, reason, _state) do
{:fail, reason}
end
defp process_data(data, state) do
{options, string, buffer} = Options.parse(state.buffer <> data)
state = %{state | buffer: buffer}
Enum.each(options, fn option ->
send(self(), {:process, option})
end)
case String.valid?(String.last(string)) do
true ->
state.module.receive(state, string)
false ->
{:noreply, %{state | buffer: string <> state.buffer}}
end
end
defp maybe_add_game_to_metadata(%{game: game}, metadata) when game != nil do
Map.put(metadata, :game_id, game.id)
end
defp maybe_add_game_to_metadata(_state, metadata) do
Map.put(metadata, :game_id, 0)
end
defp process_option(state, option = {:will, :mssp}) do
socket_send(@do_mssp, telemetry: [:mssp, :sent])
{:noreply, %{state | processed: [option | state.processed]}}
end
defp process_option(state, option = {:will, :gmcp}) do
socket_send(<<255, 253, 201>>, telemetry: [:gmcp, :sent])
hello = Jason.encode!(%{client: "Grapevine", version: GrapevineTelnet.version()})
socket_send(<<255, 250, 201>> <> "Core.Hello #{hello}" <> <<255, 240>>, [])
state = Features.enable_gmcp(state)
supported_packages = Features.supported_packages(state)
encoded_packages = Jason.encode!(supported_packages)
socket_send(<<255, 250, 201>> <> "Core.Supports.Set #{encoded_packages}" <> <<255, 240>>, [])
state = Features.packages(state, supported_packages)
state = Features.cache_supported_messages(state)
{:noreply, %{state | processed: [option | state.processed]}}
end
defp process_option(state, option = {:do, :term_type}) do
socket_send(@will_term_type, telemetry: [:term_type, :sent])
{:noreply, %{state | processed: [option | state.processed]}}
end
defp process_option(state, option = {:do, :charset}) do
socket_send(@will_charset, telemetry: [:charset, :sent])
{:noreply, %{state | processed: [option | state.processed]}}
end
defp process_option(state, option = {:do, :new_environ}) do
state.module.process_option(state, {:do, :new_environ})
{:noreply, %{state | processed: [option | state.processed]}}
end
defp process_option(state, {:new_environ, :send, values}) do
state.module.process_option(state, {:new_environ, :send, values})
{:noreply, state}
end
defp process_option(state, option = {:do, :line_mode}) do
socket_send(@wont_line_mode, telemetry: [:line_mode, :sent])
{:noreply, %{state | processed: [option | state.processed]}}
end
defp process_option(state = %{type: "secure telnet"}, option = {:do, :oauth}) do
socket_send(<<255, 251, 165>>, telemetry: [:oauth, :sent])
params = %{host: "grapevine.haus"}
socket_send(<<255, 250, 165>> <> "Start " <> Jason.encode!(params) <> <<255, 240>>,
telemetry: [:oauth, :start]
)
{:noreply, %{state | processed: [option | state.processed]}}
end
# Not secure telnet, so we WONT do oauth
defp process_option(state, option = {:do, :oauth}) do
socket_send(<<255, 252, 165>>, telemetry: [:oauth, :sent])
{:noreply, %{state | processed: [option | state.processed]}}
end
# Some clients will send a `DO GMCP`, we may have already responded to the WILL
# let this fall into the void.
defp process_option(state, option = {:do, :gmcp}) do
{:noreply, %{state | processed: [option | state.processed]}}
end
defp process_option(state, {:charset, :request, sep, charsets}) do
charsets =
charsets
|> String.split(sep)
|> Enum.map(&String.downcase/1)
case Enum.member?(charsets, "utf-8") do
true ->
socket_send(<<255, 250, 42, 2>> <> "UTF-8" <> <<255, 240>>,
telemetry: [:charset, :accepted]
)
{:noreply, state}
_ ->
socket_send(<<255, 250, 42, 3, 255, 240>>, telemetry: [:charset, :rejected])
{:noreply, state}
end
end
# 1 "ANSI" Client supports all common ANSI color codes.
# 2 "VT100" Client supports all common VT100 codes.
# 4 "UTF-8" Client is using UTF-8 character encoding.
# 8 "256 COLORS" Client supports all 256 color codes.
# 16 "MOUSE TRACKING" Client supports xterm mouse tracking.
# 32 "OSC COLOR PALETTE" Client supports the OSC color palette.
# 64 "SCREEN READER" Client is using a screen reader.
# 128 "PROXY" Client is a proxy allowing different users to connect from the same IP address.
# 256 "TRUECOLOR" Client supports all truecolor codes.
defp process_option(state, {:send, :term_type}) do
start_term_type = <<255, 250, 24, 0>>
end_term_type = <<255, 240>>
mtts = 1 + 4 + 8 + 128 + 256
case state.term_type do
:grapevine ->
socket_send(start_term_type <> "Grapevine" <> end_term_type,
telemetry: [:term_type, :details]
)
state = %{state | term_type: :ansi}
{:noreply, state}
:ansi ->
socket_send(start_term_type <> "ANSI-TRUECOLOR" <> end_term_type,
telemetry: [:term_type, :details]
)
state = %{state | term_type: :mtts}
{:noreply, state}
:mtts ->
socket_send(start_term_type <> "MTTS #{mtts}" <> end_term_type,
telemetry: [:term_type, :details]
)
{:noreply, state}
end
end
defp process_option(state, option = {:gmcp, _, _}) do
metadata = maybe_add_game_to_metadata(state, %{})
:telemetry.execute([:telnet, :gmcp, :received], %{count: 1}, metadata)
state.module.process_option(state, option)
end
defp process_option(state, option = {:oauth, _, _}) do
state.module.process_option(state, option)
end
defp process_option(state, {:ga}) do
state.module.process_option(state, {:ga})
end
defp process_option(state, {:wont, :echo}) do
state.module.process_option(state, {:wont, :echo})
end
defp process_option(state, {:will, :echo}) do
state.module.process_option(state, {:will, :echo})
end
defp process_option(state, {:will, option}) do
byte = Options.option_to_byte(option)
socket_send(<<255, 254, byte>>, telementry: [:wont], metadata: %{option: option})
{:noreply, %{state | processed: [{:will, option} | state.processed]}}
end
defp process_option(state, {:do, option}) do
byte = Options.option_to_byte(option)
socket_send(<<255, 252, byte>>, telemetry: [:dont], metadata: %{option: option})
{:noreply, %{state | processed: [{:do, option} | state.processed]}}
end
defp process_option(state, option) do
state = %{state | processed: [option | state.processed]}
state.module.process_option(state, option)
end
defp already_processed?(state, option) do
Enum.member?(state.processed, option)
end
end
|
{
"pile_set_name": "Github"
}
|
# PromiseKit
# Setup
You'll need to add the following "glue code" to your application, ideally as `ReactiveReSwiftBridge.swift`:
```swift
extension Promise: StreamType {
public typealias ValueType = T
public typealias DisposableType = DisposableFake
public func subscribe(_ function: @escaping (T) -> Void) -> DisposableFake {
_ = self.then(execute: function)
return .init()
}
}
public struct DisposableFake: SubscriptionReferenceType {
public func dispose() {}
}
```
Since PromiseKit doesn't have a property type (since it's not that kind of library), you'll need to use the inbuilt `ObservableProperty` type when making your app's `Store`.
You're all set up!
|
{
"pile_set_name": "Github"
}
|
SHORT GetArray(SHORT row, SHORT column);
void SetArray(SHORT row, SHORT column, SHORT newVal);
|
{
"pile_set_name": "Github"
}
|
// author: Jannik Strötgen
// email: stroetgen@uni-hd.de
// resources automatically created; see our EMNLP 2015 paper for details:
// https://aclweb.org/anthology/D/D15/D15-1063.pdf
//
// english: "and","and"
[Ii]n
[Tt]er
[Pp]a
// english: "or","or"
àli
// english: "to","to"
[Kk]
[Hh]
[Pp]roti
|
{
"pile_set_name": "Github"
}
|
{
"Entries": [
{
"Module": "go",
"Field": "debug",
"Kind": 0,
"FunctionType": {
"Index": 1
},
"TableType": null,
"MemoryType": null,
"GlobalType": null
},
{
"Module": "go",
"Field": "runtime.wasmExit",
"Kind": 0,
"FunctionType": {
"Index": 1
},
"TableType": null,
"MemoryType": null,
"GlobalType": null
},
{
"Module": "go",
"Field": "runtime.wasmWrite",
"Kind": 0,
"FunctionType": {
"Index": 1
},
"TableType": null,
"MemoryType": null,
"GlobalType": null
},
{
"Module": "go",
"Field": "runtime.nanotime",
"Kind": 0,
"FunctionType": {
"Index": 1
},
"TableType": null,
"MemoryType": null,
"GlobalType": null
},
{
"Module": "go",
"Field": "runtime.walltime",
"Kind": 0,
"FunctionType": {
"Index": 1
},
"TableType": null,
"MemoryType": null,
"GlobalType": null
},
{
"Module": "go",
"Field": "runtime.scheduleCallback",
"Kind": 0,
"FunctionType": {
"Index": 1
},
"TableType": null,
"MemoryType": null,
"GlobalType": null
},
{
"Module": "go",
"Field": "runtime.clearScheduledCallback",
"Kind": 0,
"FunctionType": {
"Index": 1
},
"TableType": null,
"MemoryType": null,
"GlobalType": null
},
{
"Module": "go",
"Field": "runtime.getRandomData",
"Kind": 0,
"FunctionType": {
"Index": 1
},
"TableType": null,
"MemoryType": null,
"GlobalType": null
},
{
"Module": "go",
"Field": "syscall/js.stringVal",
"Kind": 0,
"FunctionType": {
"Index": 1
},
"TableType": null,
"MemoryType": null,
"GlobalType": null
},
{
"Module": "go",
"Field": "syscall/js.valueGet",
"Kind": 0,
"FunctionType": {
"Index": 1
},
"TableType": null,
"MemoryType": null,
"GlobalType": null
},
{
"Module": "go",
"Field": "syscall/js.valueCall",
"Kind": 0,
"FunctionType": {
"Index": 1
},
"TableType": null,
"MemoryType": null,
"GlobalType": null
},
{
"Module": "go",
"Field": "syscall/js.valueNew",
"Kind": 0,
"FunctionType": {
"Index": 1
},
"TableType": null,
"MemoryType": null,
"GlobalType": null
},
{
"Module": "go",
"Field": "syscall/js.valuePrepareString",
"Kind": 0,
"FunctionType": {
"Index": 1
},
"TableType": null,
"MemoryType": null,
"GlobalType": null
},
{
"Module": "go",
"Field": "syscall/js.valueLoadString",
"Kind": 0,
"FunctionType": {
"Index": 1
},
"TableType": null,
"MemoryType": null,
"GlobalType": null
}
]
}
|
{
"pile_set_name": "Github"
}
|
# frozen_string_literal: true
require_relative "../lib/tty-markdown"
markdown =<<-TEXT
## Image

## Image Source Location

TEXT
print TTY::Markdown.parse(markdown)
|
{
"pile_set_name": "Github"
}
|
source 'https://github.com/CocoaPods/Specs.git'
platform :osx, '10.10'
target :Switch do
pod 'MASPreferences'
pod 'Sparkle'
target :SwitchTests do
pod 'OCMock'
end
end
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
</Project>
|
{
"pile_set_name": "Github"
}
|
include(Platform/HP-UX-HP)
__hpux_compiler_hp(ASM)
|
{
"pile_set_name": "Github"
}
|
import socket
def pickup_port():
s = socket.socket()
s.bind(('127.0.0.1', 0))
port = s.getsockname()[-1]
s.close()
return port
|
{
"pile_set_name": "Github"
}
|
{
"images" : [
{
"idiom" : "universal",
"filename" : "icon_read.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "icon_read@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
|
{
"pile_set_name": "Github"
}
|
# TomEE Server Composer
Intended soley as a means to improve integration testing by enabling a more expressive way
to build a running server process, including ability to read log output.
|
{
"pile_set_name": "Github"
}
|
{
"created_at": "2015-02-27T22:28:43.971214",
"description": "A meteor smart package for the bootstrap bootboxjs plugin",
"fork": false,
"full_name": "TimHeckel/meteor-bootboxjs",
"language": "JavaScript",
"updated_at": "2015-03-10T07:01:59.041825"
}
|
{
"pile_set_name": "Github"
}
|
include_rules = [
"+grit", # For generated headers
]
|
{
"pile_set_name": "Github"
}
|
version = $(shell git describe --dirty || echo dev)
curl=no
ifneq ($(curl),no)
flags=-DUSE_CURL -lcurl
else
flags=
endif
all: push.so
push.so: push.cpp
CXXFLAGS="$(CXXFLAGS) -DPUSHVERSION=\"\\\"$(version)\\\"\" $(flags)" LIBS="$(LIBS) $(flags)" \
znc-buildmod push.cpp
install: push.so
mkdir -p $(HOME)/.znc/modules/
cp push.so $(HOME)/.znc/modules/push.so
clean:
-rm -f push.so
|
{
"pile_set_name": "Github"
}
|
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var ExternalsPlugin = require("../ExternalsPlugin");
function NodeTargetPlugin() {}
module.exports = NodeTargetPlugin;
NodeTargetPlugin.prototype.apply = function(compiler) {
new ExternalsPlugin("commonjs", Object.keys(process.binding("natives"))).apply(compiler);
};
|
{
"pile_set_name": "Github"
}
|
export function isDef(val) {
return val !== undefined && val !== null;
}
export function isKorean(text) {
const reg = /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;
return reg.test(text);
}
|
{
"pile_set_name": "Github"
}
|
There is a ppro flag in cast-586 which turns on/off
generation of pentium pro/II friendly code
This flag makes the inner loop one cycle longer, but generates
code that runs %30 faster on the pentium pro/II, while only %7 slower
on the pentium. By default, this flag is on.
|
{
"pile_set_name": "Github"
}
|
## _template.properties
## This optional file controls the template processing settings.
## Ignore: file pattern(s) to ignore
# ignore: .gitignore, *.swp
## Resource patterns for processing with the template engine. In
## this example, files matching will not be processed.
# process.before: !*.aaa
|
{
"pile_set_name": "Github"
}
|
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "pic_local_empty_177x120_@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "pic_local_empty_177x120_@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
|
{
"pile_set_name": "Github"
}
|
#define HEADLESS_APP 1
typedef struct ovrHmdStruct {
} OvrHmdContext;
#define OVR_ALIGNAS(n)
/** Removed in 0.5.0, but permanently enabled! */
#define ovrDistortionCap_Chromatic 0x01
#include "OVR_CAPI.h"
|
{
"pile_set_name": "Github"
}
|
package name
func EmptyIfNil(input *string) string {
if input == nil {
return ""
}
return *input
}
|
{
"pile_set_name": "Github"
}
|
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": [
"tconstruct:casting/casts/ingots"
]
},
"criteria": {
"has_item": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"tag": "forge:ingots"
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "tconstruct:casting/casts/ingots"
}
}
},
"requirements": [
[
"has_item",
"has_the_recipe"
]
]
}
|
{
"pile_set_name": "Github"
}
|
module.exports = {
ROOT : 0,
GROUP : 1,
POSITION : 2,
SET : 3,
RANGE : 4,
REPETITION : 5,
REFERENCE : 6,
CHAR : 7,
};
|
{
"pile_set_name": "Github"
}
|
*** Error at (8,15): syntax error
|
{
"pile_set_name": "Github"
}
|
RADXA_ROCK
M: Heiko Stuebner <heiko@sntech.de>
S: Maintained
F: board/radxa/rock
F: include/configs/rock.h
F: configs/rock_defconfig
|
{
"pile_set_name": "Github"
}
|
require('../../modules/es7.reflect.has-metadata');
module.exports = require('../../modules/_core').Reflect.hasMetadata;
|
{
"pile_set_name": "Github"
}
|
/* ===== dialog.css ======================================================
== Styles used by the XUL dialog element.
======================================================================= */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
{
"pile_set_name": "Github"
}
|
// Copyright 2012-present Oliver Eilhard. All rights reserved.
// Use of this source code is governed by a MIT-license.
// See http://olivere.mit-license.org/license.txt for details.
package elastic
import (
"encoding/json"
"testing"
)
func TestTypeQuery(t *testing.T) {
q := NewTypeQuery("my_type")
src, err := q.Source()
if err != nil {
t.Fatal(err)
}
data, err := json.Marshal(src)
if err != nil {
t.Fatalf("marshaling to JSON failed: %v", err)
}
got := string(data)
expected := `{"type":{"value":"my_type"}}`
if got != expected {
t.Errorf("expected\n%s\n,got:\n%s", expected, got)
}
}
|
{
"pile_set_name": "Github"
}
|
export default [
{
text: 'Apple',
},
{
text: 'Banana',
},
{
text: 'Cherry',
},
{
text: 'Grapefruit',
},
{
text: 'Lemon',
},
];
|
{
"pile_set_name": "Github"
}
|
rootProject.name = "cross-compilation"
|
{
"pile_set_name": "Github"
}
|
temple = {
name = "Temple"
conditions = {
unit_class = lumber_mill
}
}
|
{
"pile_set_name": "Github"
}
|
import Elm from './Main';
// We need embed the Elm app to the div, if we call fullscreen we will have duplicated html
Elm.Main.embed(document.getElementById('root'));
if (module.hot) {
module.hot.accept();
}
|
{
"pile_set_name": "Github"
}
|
package synthetic
// Generator is a pseudo-random numbers generator.
type Generator interface {
Int() int
}
|
{
"pile_set_name": "Github"
}
|
exclude :test_install_into, "needs investigation"
exclude :test_install_into_development_shallow, "needs investigation"
|
{
"pile_set_name": "Github"
}
|
# Several scripts pull information from Galaxy's standard configuration
# file. The post-processing scripts use the following variables.
[app:main]
enable_api = True
library_import_dir = /source/galaxy/upload
[galaxy_amqp]
host = rabbitmq.host.machine
port = 5672
userid = rabbitmq_user
password = rabbitmq_passwd
virtual_host = galaxy_messaging_engine
queue = galaxy_queue
exchange = galaxy_exchange
routing_key = bar_code_scanner
|
{
"pile_set_name": "Github"
}
|
nocibambi
|
{
"pile_set_name": "Github"
}
|
# frozen_string_literal: true
module PayHelper
end
|
{
"pile_set_name": "Github"
}
|
UITour
======
.. toctree::
UITour-lib
.. js:autoclass:: Mozilla.UITour
:members: none
|
{
"pile_set_name": "Github"
}
|
// #Conformance #TypesAndModules #Records
#light
// Verify no errors for type inference with ambiguous types
// and type annotations.
type Red = { A : char }
type Blue = { A : char; B : int }
type Green = { A : char; B : int; C : string }
let test1 () =
let t : Red = { A = 'a' }
t.A
let test2 () =
let funcExpectsBlue (x : Blue) = x.B
let temp : Blue = { A = ' '; B = 42 }
(funcExpectsBlue temp)
let test3 () =
// This shouldn't be ambig, since only one record has a C field
let g = { A = '1'; B = 0; C = "abc" }
g.C
if test1() <> 'a' then exit 1
if test2() <> 42 then exit 1
if test3() <> "abc" then exit 1
exit 0
|
{
"pile_set_name": "Github"
}
|
//
// Use this file to import your target's public headers that you would like to expose to Swift.
//
|
{
"pile_set_name": "Github"
}
|
error: too many `#` when terminating raw string
--> $DIR/raw-str-unbalanced.rs:3:9
|
LL | "##
| ^ help: remove the extra `#`
|
= note: the raw string started with 1 `#`s
error: aborting due to previous error
|
{
"pile_set_name": "Github"
}
|
'use strict';
module.exports = function () {
var isSafeInteger = Number.isSafeInteger;
if (typeof isSafeInteger !== 'function') return false;
return !isSafeInteger('23') && isSafeInteger(34232322323) &&
!isSafeInteger(9007199254740992);
};
|
{
"pile_set_name": "Github"
}
|
from pathlib import Path
def list_v2_defs():
return [deffile.stem for deffile
in (Path(__file__).parent
/ '..' / '..' / '..'
/ 'module' / 'definitions' / '2')
.iterdir()]
|
{
"pile_set_name": "Github"
}
|
class Regexp
def to_json(options = nil) #:nodoc:
inspect
end
end
|
{
"pile_set_name": "Github"
}
|
This is to explore common versioning issues with persisted events when using
event sourcing with ncqrs.
Run CreateEventStore.sql script to your local SQL database. Update the connection
strings when needed.
* AppV1 is the base app, run this first to create a person with an "old" event.
* AppV2 represents a common refactoring change to namespaces but does not alter
the events themselves, only their names.
This is to test that the old events can de-serialize correctly despite the
namespace change.
* AppV3 represents a change to the event, this would be considered a new
version of the event.
This is to ensure that if fields are added and remove convertors can be used
to reformat the old events to match the new event.
NOTE: When changing an event, semantic changes should be a new event, this is
just to ensure ncqrs can handle such changes correctly.
See, http://bloggingabout.net/blogs/vagif/archive/2010/05/28/is-event-versioning-as-costly-as-sql-schema-versioning.aspx
|
{
"pile_set_name": "Github"
}
|
{
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"dependencies": {
"pump": "^3.0.0"
},
"description": "Get a stream as a string, buffer, or array",
"devDependencies": {
"ava": "*",
"into-stream": "^3.0.0",
"xo": "*"
},
"engines": {
"node": ">=6"
},
"files": [
"index.js",
"buffer-stream.js"
],
"homepage": "https://github.com/sindresorhus/get-stream#readme",
"license": "MIT",
"name": "get-stream",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/get-stream.git"
},
"version": "4.1.0"
}
|
{
"pile_set_name": "Github"
}
|
#!/bin/bash
if grep -q -Ew "(drbl-live-debug|ocs-debug|ocs-live-debug)" /proc/cmdline; then
/bin/bash
fi
|
{
"pile_set_name": "Github"
}
|
// RUN: %clang_cc1 -fsyntax-only -verify -Wreserved-user-defined-literal -fms-extensions -fms-compatibility -std=c++98 %s
#define bar(x) #x
const char * f() {
return "foo"bar("bar")"baz"; /*expected-warning {{identifier after literal will be treated as a reserved user-defined literal suffix in C++11}} */
}
|
{
"pile_set_name": "Github"
}
|
--- src/input/device_mouse_osg.hh.orig 2011-12-14 01:56:48 UTC
+++ src/input/device_mouse_osg.hh
@@ -41,7 +41,6 @@ private:
HandlerOSG( void ) { }
virtual ~HandlerOSG() { }
virtual bool handle( const osgGA::GUIEventAdapter& event, osgGA::GUIActionAdapter& action );
- virtual void accept( osgGA::GUIEventHandlerVisitor& visitor );
};
};
|
{
"pile_set_name": "Github"
}
|
package org.ligi.passandroid.model
import org.ligi.passandroid.model.pass.PassType.*
object PassDefinitions {
val TYPE_TO_NAME = mapOf(COUPON to "coupon",
EVENT to "eventTicket",
BOARDING to "boardingPass",
GENERIC to "generic",
LOYALTY to "storeCard")
val NAME_TO_TYPE = TYPE_TO_NAME.entries.associate { it.value to it.key }
}
|
{
"pile_set_name": "Github"
}
|
name = "FlatBuffers"
uuid = "53afe959-3a16-52fa-a8da-cf864710bae9"
repo = "https://github.com/JuliaData/FlatBuffers.jl.git"
|
{
"pile_set_name": "Github"
}
|
/usr/local/vesta/log/*.log {
missingok
notifempty
size 30k
yearly
create 0600 root root
}
|
{
"pile_set_name": "Github"
}
|
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"
[packages]
[dev-packages]
|
{
"pile_set_name": "Github"
}
|
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
define( ["jquery", "../jquery.validate"], factory );
} else {
factory( jQuery );
}
}(function( $ ) {
/*
* Translated default messages for the jQuery validation plugin.
* Locale: HR (Croatia; hrvatski jezik)
*/
$.extend($.validator.messages, {
required: "Ovo polje je obavezno.",
remote: "Ovo polje treba popraviti.",
email: "Unesite ispravnu e-mail adresu.",
url: "Unesite ispravan URL.",
date: "Unesite ispravan datum.",
dateISO: "Unesite ispravan datum (ISO).",
number: "Unesite ispravan broj.",
digits: "Unesite samo brojeve.",
creditcard: "Unesite ispravan broj kreditne kartice.",
equalTo: "Unesite ponovo istu vrijednost.",
extension: "Unesite vrijednost sa ispravnom ekstenzijom.",
maxlength: $.validator.format("Maksimalni broj znakova je {0} ."),
minlength: $.validator.format("Minimalni broj znakova je {0} ."),
rangelength: $.validator.format("Unesite vrijednost između {0} i {1} znakova."),
range: $.validator.format("Unesite vrijednost između {0} i {1}."),
max: $.validator.format("Unesite vrijednost manju ili jednaku {0}."),
min: $.validator.format("Unesite vrijednost veću ili jednaku {0}.")
});
}));
|
{
"pile_set_name": "Github"
}
|
//! `cortex-m-rt` based program with a function run before RAM is initialized.
#![deny(warnings)]
#![no_main]
#![no_std]
extern crate cortex_m_rt as rt;
extern crate panic_halt;
use rt::{entry, pre_init};
#[pre_init]
unsafe fn disable_watchdog() {
// Do what you need to disable the watchdog.
}
#[entry]
fn main() -> ! {
loop {}
}
|
{
"pile_set_name": "Github"
}
|
format_version: '2.0'
input_files: 'aws_hash_ptr_harness.i'
properties:
- property_file: ../properties/unreach-call.prp
expected_verdict: true
options:
language: C
data_model: LP64
|
{
"pile_set_name": "Github"
}
|
Cleaning up comments on config files with `grep`
Intro to `sed`
Using `lynx` to convert HTML to text
Count non-empty lines with `nl` utility
Wrap text with `fold`
|
{
"pile_set_name": "Github"
}
|
#define __NR_read 6000
#define __NR_write 6001
#define __NR_open 6002
#define __NR_close 6003
#define __NR_stat 6004
#define __NR_fstat 6005
#define __NR_lstat 6006
#define __NR_poll 6007
#define __NR_lseek 6008
#define __NR_mmap 6009
#define __NR_mprotect 6010
#define __NR_munmap 6011
#define __NR_brk 6012
#define __NR_rt_sigaction 6013
#define __NR_rt_sigprocmask 6014
#define __NR_ioctl 6015
#define __NR_pread64 6016
#define __NR_pwrite64 6017
#define __NR_readv 6018
#define __NR_writev 6019
#define __NR_access 6020
#define __NR_pipe 6021
#define __NR__newselect 6022
#define __NR_sched_yield 6023
#define __NR_mremap 6024
#define __NR_msync 6025
#define __NR_mincore 6026
#define __NR_madvise 6027
#define __NR_shmget 6028
#define __NR_shmat 6029
#define __NR_shmctl 6030
#define __NR_dup 6031
#define __NR_dup2 6032
#define __NR_pause 6033
#define __NR_nanosleep 6034
#define __NR_getitimer 6035
#define __NR_setitimer 6036
#define __NR_alarm 6037
#define __NR_getpid 6038
#define __NR_sendfile 6039
#define __NR_socket 6040
#define __NR_connect 6041
#define __NR_accept 6042
#define __NR_sendto 6043
#define __NR_recvfrom 6044
#define __NR_sendmsg 6045
#define __NR_recvmsg 6046
#define __NR_shutdown 6047
#define __NR_bind 6048
#define __NR_listen 6049
#define __NR_getsockname 6050
#define __NR_getpeername 6051
#define __NR_socketpair 6052
#define __NR_setsockopt 6053
#define __NR_getsockopt 6054
#define __NR_clone 6055
#define __NR_fork 6056
#define __NR_execve 6057
#define __NR_exit 6058
#define __NR_wait4 6059
#define __NR_kill 6060
#define __NR_uname 6061
#define __NR_semget 6062
#define __NR_semop 6063
#define __NR_semctl 6064
#define __NR_shmdt 6065
#define __NR_msgget 6066
#define __NR_msgsnd 6067
#define __NR_msgrcv 6068
#define __NR_msgctl 6069
#define __NR_fcntl 6070
#define __NR_flock 6071
#define __NR_fsync 6072
#define __NR_fdatasync 6073
#define __NR_truncate 6074
#define __NR_ftruncate 6075
#define __NR_getdents 6076
#define __NR_getcwd 6077
#define __NR_chdir 6078
#define __NR_fchdir 6079
#define __NR_rename 6080
#define __NR_mkdir 6081
#define __NR_rmdir 6082
#define __NR_creat 6083
#define __NR_link 6084
#define __NR_unlink 6085
#define __NR_symlink 6086
#define __NR_readlink 6087
#define __NR_chmod 6088
#define __NR_fchmod 6089
#define __NR_chown 6090
#define __NR_fchown 6091
#define __NR_lchown 6092
#define __NR_umask 6093
#define __NR_gettimeofday 6094
#define __NR_getrlimit 6095
#define __NR_getrusage 6096
#define __NR_sysinfo 6097
#define __NR_times 6098
#define __NR_ptrace 6099
#define __NR_getuid 6100
#define __NR_syslog 6101
#define __NR_getgid 6102
#define __NR_setuid 6103
#define __NR_setgid 6104
#define __NR_geteuid 6105
#define __NR_getegid 6106
#define __NR_setpgid 6107
#define __NR_getppid 6108
#define __NR_getpgrp 6109
#define __NR_setsid 6110
#define __NR_setreuid 6111
#define __NR_setregid 6112
#define __NR_getgroups 6113
#define __NR_setgroups 6114
#define __NR_setresuid 6115
#define __NR_getresuid 6116
#define __NR_setresgid 6117
#define __NR_getresgid 6118
#define __NR_getpgid 6119
#define __NR_setfsuid 6120
#define __NR_setfsgid 6121
#define __NR_getsid 6122
#define __NR_capget 6123
#define __NR_capset 6124
#define __NR_rt_sigpending 6125
#define __NR_rt_sigtimedwait 6126
#define __NR_rt_sigqueueinfo 6127
#define __NR_rt_sigsuspend 6128
#define __NR_sigaltstack 6129
#define __NR_utime 6130
#define __NR_mknod 6131
#define __NR_personality 6132
#define __NR_ustat 6133
#define __NR_statfs 6134
#define __NR_fstatfs 6135
#define __NR_sysfs 6136
#define __NR_getpriority 6137
#define __NR_setpriority 6138
#define __NR_sched_setparam 6139
#define __NR_sched_getparam 6140
#define __NR_sched_setscheduler 6141
#define __NR_sched_getscheduler 6142
#define __NR_sched_get_priority_max 6143
#define __NR_sched_get_priority_min 6144
#define __NR_sched_rr_get_interval 6145
#define __NR_mlock 6146
#define __NR_munlock 6147
#define __NR_mlockall 6148
#define __NR_munlockall 6149
#define __NR_vhangup 6150
#define __NR_pivot_root 6151
#define __NR__sysctl 6152
#define __NR_prctl 6153
#define __NR_adjtimex 6154
#define __NR_setrlimit 6155
#define __NR_chroot 6156
#define __NR_sync 6157
#define __NR_acct 6158
#define __NR_settimeofday 6159
#define __NR_mount 6160
#define __NR_umount2 6161
#define __NR_swapon 6162
#define __NR_swapoff 6163
#define __NR_reboot 6164
#define __NR_sethostname 6165
#define __NR_setdomainname 6166
#define __NR_create_module 6167
#define __NR_init_module 6168
#define __NR_delete_module 6169
#define __NR_get_kernel_syms 6170
#define __NR_query_module 6171
#define __NR_quotactl 6172
#define __NR_nfsservctl 6173
#define __NR_getpmsg 6174
#define __NR_putpmsg 6175
#define __NR_afs_syscall 6176
#define __NR_reserved177 6177
#define __NR_gettid 6178
#define __NR_readahead 6179
#define __NR_setxattr 6180
#define __NR_lsetxattr 6181
#define __NR_fsetxattr 6182
#define __NR_getxattr 6183
#define __NR_lgetxattr 6184
#define __NR_fgetxattr 6185
#define __NR_listxattr 6186
#define __NR_llistxattr 6187
#define __NR_flistxattr 6188
#define __NR_removexattr 6189
#define __NR_lremovexattr 6190
#define __NR_fremovexattr 6191
#define __NR_tkill 6192
#define __NR_reserved193 6193
#define __NR_futex 6194
#define __NR_sched_setaffinity 6195
#define __NR_sched_getaffinity 6196
#define __NR_cacheflush 6197
#define __NR_cachectl 6198
#define __NR_sysmips 6199
#define __NR_io_setup 6200
#define __NR_io_destroy 6201
#define __NR_io_getevents 6202
#define __NR_io_submit 6203
#define __NR_io_cancel 6204
#define __NR_exit_group 6205
#define __NR_lookup_dcookie 6206
#define __NR_epoll_create 6207
#define __NR_epoll_ctl 6208
#define __NR_epoll_wait 6209
#define __NR_remap_file_pages 6210
#define __NR_rt_sigreturn 6211
#define __NR_fcntl64 6212
#define __NR_set_tid_address 6213
#define __NR_restart_syscall 6214
#define __NR_semtimedop 6215
#define __NR_fadvise64 6216
#define __NR_statfs64 6217
#define __NR_fstatfs64 6218
#define __NR_sendfile64 6219
#define __NR_timer_create 6220
#define __NR_timer_settime 6221
#define __NR_timer_gettime 6222
#define __NR_timer_getoverrun 6223
#define __NR_timer_delete 6224
#define __NR_clock_settime 6225
#define __NR_clock_gettime 6226
#define __NR_clock_getres 6227
#define __NR_clock_nanosleep 6228
#define __NR_tgkill 6229
#define __NR_utimes 6230
#define __NR_mbind 6231
#define __NR_get_mempolicy 6232
#define __NR_set_mempolicy 6233
#define __NR_mq_open 6234
#define __NR_mq_unlink 6235
#define __NR_mq_timedsend 6236
#define __NR_mq_timedreceive 6237
#define __NR_mq_notify 6238
#define __NR_mq_getsetattr 6239
#define __NR_vserver 6240
#define __NR_waitid 6241
#define __NR_add_key 6243
#define __NR_request_key 6244
#define __NR_keyctl 6245
#define __NR_set_thread_area 6246
#define __NR_inotify_init 6247
#define __NR_inotify_add_watch 6248
#define __NR_inotify_rm_watch 6249
#define __NR_migrate_pages 6250
#define __NR_openat 6251
#define __NR_mkdirat 6252
#define __NR_mknodat 6253
#define __NR_fchownat 6254
#define __NR_futimesat 6255
#define __NR_newfstatat 6256
#define __NR_unlinkat 6257
#define __NR_renameat 6258
#define __NR_linkat 6259
#define __NR_symlinkat 6260
#define __NR_readlinkat 6261
#define __NR_fchmodat 6262
#define __NR_faccessat 6263
#define __NR_pselect6 6264
#define __NR_ppoll 6265
#define __NR_unshare 6266
#define __NR_splice 6267
#define __NR_sync_file_range 6268
#define __NR_tee 6269
#define __NR_vmsplice 6270
#define __NR_move_pages 6271
#define __NR_set_robust_list 6272
#define __NR_get_robust_list 6273
#define __NR_kexec_load 6274
#define __NR_getcpu 6275
#define __NR_epoll_pwait 6276
#define __NR_ioprio_set 6277
#define __NR_ioprio_get 6278
#define __NR_utimensat 6279
#define __NR_signalfd 6280
#define __NR_timerfd 6281
#define __NR_eventfd 6282
#define __NR_fallocate 6283
#define __NR_timerfd_create 6284
#define __NR_timerfd_gettime 6285
#define __NR_timerfd_settime 6286
#define __NR_signalfd4 6287
#define __NR_eventfd2 6288
#define __NR_epoll_create1 6289
#define __NR_dup3 6290
#define __NR_pipe2 6291
#define __NR_inotify_init1 6292
#define __NR_preadv 6293
#define __NR_pwritev 6294
#define __NR_rt_tgsigqueueinfo 6295
#define __NR_perf_event_open 6296
#define __NR_accept4 6297
#define __NR_recvmmsg 6298
#define __NR_getdents64 6299
#define __NR_fanotify_init 6300
#define __NR_fanotify_mark 6301
#define __NR_prlimit64 6302
#define __NR_name_to_handle_at 6303
#define __NR_open_by_handle_at 6304
#define __NR_clock_adjtime 6305
#define __NR_syncfs 6306
#define __NR_sendmmsg 6307
#define __NR_setns 6308
#define __NR_process_vm_readv 6309
#define __NR_process_vm_writev 6310
#define __NR_kcmp 6311
#define __NR_finit_module 6312
#define __NR_sched_setattr 6313
#define __NR_sched_getattr 6314
#define __NR_renameat2 6315
#define __NR_seccomp 6316
#define __NR_getrandom 6317
#define __NR_memfd_create 6318
#define __NR_bpf 6319
#define __NR_execveat 6320
#define __NR_userfaultfd 6321
#define __NR_membarrier 6322
#define __NR_mlock2 6323
#define __NR_copy_file_range 6324
#define __NR_preadv2 6325
#define __NR_pwritev2 6326
#define __NR_pkey_mprotect 6327
#define __NR_pkey_alloc 6328
#define __NR_pkey_free 6329
#define __NR_statx 6330
#define __NR_rseq 6331
#define __NR_io_pgetevents 6332
|
{
"pile_set_name": "Github"
}
|
export const delay = (time) => new Promise((resolve) => setTimeout(() => resolve(), time));
|
{
"pile_set_name": "Github"
}
|
var pako = require('pako');
var Binary = require('bodec').Binary;
if (Binary === Uint8Array) {
module.exports = pako.inflate;
}
else {
module.exports = function inflate(value) {
return new Binary(pako.inflate(new Uint8Array(value)));
};
}
|
{
"pile_set_name": "Github"
}
|
#!/bin/sh
mkdir colors
cp SublimeMonokai.xml colors
touch IntelliJ\ IDEA\ Global\ Settings
jar cfM SublimeMonoKai.jar IntelliJ\ IDEA\ Global\ Settings colors
rm -r colors
rm IntelliJ\ IDEA\ Global\ Settings
|
{
"pile_set_name": "Github"
}
|
func something() {
fatalError("this should never be ran")
}
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="Theme" value="Dark" />
</appSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>
|
{
"pile_set_name": "Github"
}
|
within Buildings.Fluid.HeatExchangers.DXCoils.AirCooled.Data;
package DoubleSpeed "Performance data for DoubleSpeed DXCoils"
extends Modelica.Icons.MaterialPropertiesPackage;
annotation(preferredView="info",
Documentation(info="<html>
<p>
Package with performance data for air-cooled DX coils.
</p>
</html>", revisions="<html>
<p>
Generated on 04/25/2016 13:21 by thierry
</p>
</html>"));
end DoubleSpeed;
|
{
"pile_set_name": "Github"
}
|
/**
* Implementation of REST API using Jersey.
*
* @author Cedrick Lunven (@clunven)</a>
* @version 1.0
*/
package org.ff4j.web.api;
/*
* #%L
* ff4j-core
* %%
* Copyright (C) 2013 - 2016 FF4J
* %%
* 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 the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
|
{
"pile_set_name": "Github"
}
|
new (A, B)
new (A || B)
new (X ? A : B)
|
{
"pile_set_name": "Github"
}
|
Checked 2 interleaving(s). No errors found.
|
{
"pile_set_name": "Github"
}
|
/**
* @swagger
* parameter:
* tl_limit:
* name: limit
* in: query
* description: The maximum number of timeline entries to include in the response.
* required: false
* type: integer
* tl_offset:
* name: offset
* in: query
* description: Start the list of results after skipping N results (where N=offset).
* required: false
* default: 0
* type: integer
*/
|
{
"pile_set_name": "Github"
}
|
//
// Border
//
.border-0 { border: 0 !important; }
.border-top-0 { border-top: 0 !important; }
.border-right-0 { border-right: 0 !important; }
.border-bottom-0 { border-bottom: 0 !important; }
.border-left-0 { border-left: 0 !important; }
//
// Border-radius
//
.rounded {
@include border-radius($border-radius);
}
.rounded-top {
@include border-top-radius($border-radius);
}
.rounded-right {
@include border-right-radius($border-radius);
}
.rounded-bottom {
@include border-bottom-radius($border-radius);
}
.rounded-left {
@include border-left-radius($border-radius);
}
.rounded-circle {
border-radius: 50%;
}
.rounded-0 {
border-radius: 0;
}
|
{
"pile_set_name": "Github"
}
|
using System;
using Windows.UI.Xaml.Data;
namespace Q42.WinRT.SampleApp.Common
{
/// <summary>
/// Value converter that translates true to false and vice versa.
/// </summary>
public sealed class BooleanNegationConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, string language)
{
return !(value is bool && (bool)value);
}
public object ConvertBack(object value, Type targetType, object parameter, string language)
{
return !(value is bool && (bool)value);
}
}
}
|
{
"pile_set_name": "Github"
}
|
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <UIKit/UIView.h>
@class TVSImageProxy, UIColor, UIImage, UIImageView;
@interface TVImageView : UIView
{
_Bool _rendersImageAsTemplates;
UIImage *_image;
UIImageView *_imageView;
UIImage *_placeholderImage;
TVSImageProxy *_imageProxy;
UIColor *__tintColor;
}
@property(retain, nonatomic, setter=_setTintColor:) UIColor *_tintColor; // @synthesize _tintColor=__tintColor;
@property(retain, nonatomic) TVSImageProxy *imageProxy; // @synthesize imageProxy=_imageProxy;
@property(retain, nonatomic) UIImage *placeholderImage; // @synthesize placeholderImage=_placeholderImage;
- (void).cxx_destruct;
- (void)_setImage:(id)arg1;
- (id)_imageView;
@property(nonatomic) double cornerRadius;
- (void)setImageProxy:(id)arg1 completion:(CDUnknownBlockType)arg2;
@property(retain, nonatomic) UIImage *image;
- (struct CGSize)sizeThatFits:(struct CGSize)arg1;
- (void)setFrame:(struct CGRect)arg1;
- (void)setContentMode:(long long)arg1;
- (void)layoutSubviews;
- (long long)contentMode;
- (struct CGSize)intrinsicContentSize;
- (void)dealloc;
- (id)initWithFrame:(struct CGRect)arg1;
@end
|
{
"pile_set_name": "Github"
}
|
require('../../modules/es.array.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'values');
|
{
"pile_set_name": "Github"
}
|
.gradient-mixin(@color) {
background: svg-gradient(to bottom,
fade(@color, 0%) 0%,
fade(@color, 5%) 60%,
fade(@color, 10%) 70%,
fade(@color, 15%) 73%,
fade(@color, 20%) 75%,
fade(@color, 25%) 80%,
fade(@color, 30%) 85%,
fade(@color, 35%) 88%,
fade(@color, 40%) 90%,
fade(@color, 45%) 95%,
fade(@color, 50%) 100%
);
}
|
{
"pile_set_name": "Github"
}
|
{
"id": "blue-mosaic-tile-flooring",
"name": "Blue Mosaic-tile Flooring",
"games": {
"nh": {
"sellPrice": {
"currency": "bells",
"value": 225
},
"buyPrices": [
{
"currency": "bells",
"value": 900
}
]
}
},
"category": "Flooring"
}
|
{
"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/. */
import React from 'react';
import { withTheme } from '../../../cn';
import Icon from '../..';
import { IconProps } from '../../icon';
class IconCardVisa extends React.PureComponent<IconProps> {
render() {
return (
<Icon
{ ...this.props }
name="card-visa"
/>
);
}
}
export default withTheme<IconProps, IconCardVisa>(IconCardVisa);
|
{
"pile_set_name": "Github"
}
|
# See the OWNERS docs at https://go.k8s.io/owners
reviewers:
- deads2k
- mbohlool
|
{
"pile_set_name": "Github"
}
|
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { createTestConfig } from '../common/config';
// eslint-disable-next-line import/no-default-export
export default createTestConfig('security_and_spaces', {
disabledPlugins: [],
license: 'trial',
ssl: true,
});
|
{
"pile_set_name": "Github"
}
|
#include <asm-generic/termbits.h>
|
{
"pile_set_name": "Github"
}
|
Scope: []
Kind: Module
FrameDescriptor: Empty
CellVars: Empty
FreeVars: Empty
Scope: gen
Kind: Generator
FrameDescriptor: [x, <return_val>]
CellVars: Empty
FreeVars: Empty
|
{
"pile_set_name": "Github"
}
|
<%- list_categories({style: 'list', depth: '0'}) %>
|
{
"pile_set_name": "Github"
}
|
{
"log_level": "INFO",
"server": true,
"ui": true,
"data_dir": "/opt/consul/data",
"bind_addr": "IP_ADDRESS",
"client_addr": "IP_ADDRESS",
"advertise_addr": "IP_ADDRESS",
"bootstrap_expect": SERVER_COUNT,
"service": {
"name": "consul"
}
}
|
{
"pile_set_name": "Github"
}
|
Payload: <%= @payload.inspect %>
Exception: <%= @error %>
Backtrace: <%= @backtrace %>
|
{
"pile_set_name": "Github"
}
|
define( [
"../core",
"../var/document",
"../ajax"
], function( jQuery, document ) {
"use strict";
// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)
jQuery.ajaxPrefilter( function( s ) {
if ( s.crossDomain ) {
s.contents.script = false;
}
} );
// Install script dataType
jQuery.ajaxSetup( {
accepts: {
script: "text/javascript, application/javascript, " +
"application/ecmascript, application/x-ecmascript"
},
contents: {
script: /\b(?:java|ecma)script\b/
},
converters: {
"text script": function( text ) {
jQuery.globalEval( text );
return text;
}
}
} );
// Handle cache's special case and crossDomain
jQuery.ajaxPrefilter( "script", function( s ) {
if ( s.cache === undefined ) {
s.cache = false;
}
if ( s.crossDomain ) {
s.type = "GET";
}
} );
// Bind script tag hack transport
jQuery.ajaxTransport( "script", function( s ) {
// This transport only deals with cross domain requests
if ( s.crossDomain ) {
var script, callback;
return {
send: function( _, complete ) {
script = jQuery( "<script>" ).prop( {
charset: s.scriptCharset,
src: s.url
} ).on(
"load error",
callback = function( evt ) {
script.remove();
callback = null;
if ( evt ) {
complete( evt.type === "error" ? 404 : 200, evt.type );
}
}
);
// Use native DOM manipulation to avoid our domManip AJAX trickery
document.head.appendChild( script[ 0 ] );
},
abort: function() {
if ( callback ) {
callback();
}
}
};
}
} );
} );
|
{
"pile_set_name": "Github"
}
|
.container{
width: 100%;
height: 100%;
}
.map{
width: 100%;
height: 100%;
}
|
{
"pile_set_name": "Github"
}
|
using WowPacketParser.Enums;
using WowPacketParser.Misc;
using WowPacketParser.Parsing;
namespace WowPacketParserModule.V1_13_2_31446.Parsers
{
public static class ActionBarHandler
{
[Parser(Opcode.CMSG_SET_ACTION_BUTTON)]
public static void HandleSetActionButton(Packet packet)
{
short action = packet.ReadInt16();
short type = packet.ReadInt16();
packet.AddValue("Action ", action);
packet.AddValue("Type ", type);
packet.ReadByte("Slot Id");
}
}
}
|
{
"pile_set_name": "Github"
}
|
class Build
constructor: (@singool) ->
description: 'Build Layout, JS and CSS'
run: =>
@singool.build()
module.exports = Build
|
{
"pile_set_name": "Github"
}
|
'use strict'
angular.module '<%= appname %>'
.filter '<%= compname %>', ->
(input) ->
'<%= compname %> filter: ' + input
|
{
"pile_set_name": "Github"
}
|
callbacks
html: aBlock
"Conveniance method that takes a block that is used to render the contents of the window when being opened."
self autoOpen: false.
self onOpen: (self owner copy load
html: aBlock)
|
{
"pile_set_name": "Github"
}
|
import { helper } from '@ember/component/helper';
export default helper(function([value]) {
return value + 1;
});
|
{
"pile_set_name": "Github"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.