text stringlengths 3 1.05M |
|---|
Contribution Guidelines
=======================
From the [Rubinius](http://rubini.us/) contribution page:
> Writing code and participating should be fun, not an exercise in
> perseverance. Stringent commit polices, for whatever their other
> qualities may bring, also mean longer turnaround times.
Submit a patch and ... |
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!-- Standard console appender for checking activity (short on detail) -->
<appender name="CONSOLE_APPENDER" class="ch.qos.logback.core.ConsoleAppender">
<!-- Simplified standard logging encoder -->
<encoder>
<pattern>%d{HH:mm:... |
package com.commonsware.android.cp.files;
import android.content.res.AssetManager;
import android.net.Uri;
import android.os.ParcelFileDescriptor;
import android.util.Log;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
public class FileProvider extends AbstractFileProvider {
... |
/*****************************************************************************
NAME GNOMONIC
PURPOSE: Transforms input longitude and latitude to Easting and
Northing for the Gnomonic Projection.
Implementation based on the existing sterea and ortho
im... |
/* $Id: allocpages.c 416 2010-05-15 00:39:28Z solar $ */
/* _PDCLIB_allocpages( int const )
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
*/
/* This is an example implementation of _PDCLIB_allocpages() (declared in
_P... |
#ifndef AppendNodeCommand_h
#define AppendNodeCommand_h
#include "core/editing/EditCommand.h"
namespace blink {
class AppendNodeCommand final : public SimpleEditCommand {
public:
static PassRefPtrWillBeRawPtr<AppendNodeCommand> create(PassRefPtrWillBeRawPtr<ContainerNode> parent, PassRefPtrWillBeRawPtr<Node> n... |
module Azure::EventGrid::Mgmt::V2020_01_01_preview
module Models
#
# Result of the List Event Types operation
#
class EventTypesListResult
include MsRestAzure
# @return [Array<EventType>] A collection of event types
attr_accessor :value
#
# Mapper for EventTypesListRe... |
using System.Collections.Generic;
namespace MS.Test.Common.MsTestLib
{
public class MethodConfig
{
public MethodConfig()
{
methodParams = new Dictionary<string, string>();
}
private Dictionary<string, string> methodParams;
public Dictionary<string, string>... |
<?php
namespace AppBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Sensio\Bundle\FrameworkExtraBundle\Config... |
::ApplicationController.class_eval do
def current_account
@current_account ||= env["X-Houser-Object"]
end
helper_method :current_account
def current_user
if user_signed_in?
@current_user ||= begin
user_id = env["warden"].user(:scope => :user)
Subscribem::User.find_by_id(user_id)
... |
public class C {
public boolean isAcceptable(Object element) {
if (element == null) {
return false;
}
System.out.println();
//c1
if (true) {
//c2
}
return false;
}
}
|
#ifndef TESSERACT_CCMAIN_PARAGRAPHS_INTERNAL_H_
#define TESSERACT_CCMAIN_PARAGRAPHS_INTERNAL_H_
#include "paragraphs.h"
#ifdef _MSC_VER
#include <string>
#else
#include "strings.h"
#endif
// NO CODE OUTSIDE OF paragraphs.cpp AND TESTS SHOULD NEED TO ACCESS
// DATA STRUCTURES OR FUNCTIONS IN THIS FILE.
class WERD_C... |
class MyClass {
test() {
const that = this;
const func = () => this === that;
return func();
}
}
expect(new MyClass().test()).toBe(true);
|
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports Microsoft.CodeAnalysis.Editor.UnitTests.Extensions
Imports Microsoft.CodeAnalysis.Editor.UnitTests.ExtractInterface
Imports Microsoft.CodeAnalysis.Edit... |
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic Page Needs
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<meta charset="utf-8">
<title>Your page title here :)</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Mobile Specific Metas
–––––––––––––––––––––––––––... |
using System;
using System.Collections.Generic;
using Lucene.Net.Search;
using Analyzer = Lucene.Net.Analysis.Analyzer;
using BooleanClause = Lucene.Net.Search.BooleanClause;
using BooleanQuery = Lucene.Net.Search.BooleanQuery;
using MultiPhraseQuery = Lucene.Net.Search.MultiPhraseQuery;
using PhraseQuery = ... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
namespace
{
const size_t page_size = 4096;
size_t align_to_page(size_t value)
{
return (value + page_size - 1) & ~(page_size - 1);
}
void* allocate_page_aligned(size_t size)
{
// We can't use VirtualAlloc because it has 64Kb granularity so we run out of address space quickly
// We can't use malloc because... |
<?php
namespace Monolog\Handler;
use Monolog\Logger;
/**
* Stores to any stream resource
*
* Can be used to store into php://stderr, remote and local files, etc.
*
* @author Jordi Boggiano <j.boggiano@seld.be>
*/
class StreamHandler extends AbstractProcessingHandler
{
protected $stream;
protected $ur... |
interface NumbroLanguage {
delimiters: {
thousands: string;
decimal: string;
};
abbreviations: {
thousand: string;
million: string;
billion: string;
trillion: string;
};
ordinal(num: number): string;
currency: {
symbol: string;
};
}
interface Numbro {
(value?: any): Numbro;
version: string;
isN... |
namespace base {
void ExpectDictBooleanValue(bool expected_value,
const DictionaryValue& value,
const std::string& key) {
bool boolean_value = false;
EXPECT_TRUE(value.GetBoolean(key, &boolean_value)) << key;
EXPECT_EQ(expected_value, boolean_value) << key;... |
#ifndef _LOCAL_STRING_H
#define _LOCAL_STRING_H
#define _GNU_SOURCE
#include <stdio.h>
#include <string.h>
#include <strings.h> // BSD funcs
#ifndef MK_STR_CFG
#include "string/str.cfg"
#endif
#ifdef BK_STR_MEMMEM
char *memmem(char *data, int datalen, char *sub, int sublen);
#endif
#ifdef BK_STR_STRCASESTR
char *s... |
/*
Codice di partenza -- Labo IV (concurrency tuning)
Adattato da Nikolas Augsten
*/
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import java.util.*;
import java.sql.*;
/**
* Dummy transaction that prints a start message, waits for a... |
import { mergeLeft } from '../index';
export default mergeLeft;
|
<?php
namespace Sylius\Behat\Page\Admin\Locale;
use Sylius\Behat\Page\Admin\Crud\IndexPage as BaseIndexPage;
use Sylius\Component\Locale\Model\LocaleInterface;
/**
* @author Arkadiusz Krakowiak <arkadiusz.krakowiak@lakion.com>
*/
class IndexPage extends BaseIndexPage implements IndexPageInterface
{
/**
... |
//
// Copyright (c) Microsoft. 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 l... |
<link type="text/css" rel="stylesheet" href="<?php echo base_url();?>css/texture.css?<?php echo $this->config->item('version');?>" />
<div class="wrap">
<div class="textureCont width100">
<div class="texturetip p2015 clearfix"><span class="fLeft pt5"><?php echo $title; ?></span></div>
<div class="p... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable disable
namespace Microsoft.CodeAnalysis.ExtractInterface
{
internal enum TypeDiscoveryRule
{
... |
package org.apache.drill.exec.store.hive;
import com.google.common.collect.ImmutableList;
import org.apache.drill.common.exceptions.DrillRuntimeException;
import org.apache.drill.common.exceptions.UserException;
import org.apache.hadoop.hive.conf.HiveConf;
import org.apache.hadoop.hive.conf.HiveConf.ConfVars;
import ... |
// Copyright (c) 2015 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.
'use strict';
var CLOSE_TIMEOUT = 0; /* Close window x seconds after disconnect */
var DEBUG_LEVEL = 2; /* If debug is enabled, use this level in NaCl... |
define(["Ti/_/Evented", "Ti/_/lang"], function(Evented, lang) {
var lastShake = (new Date()).getTime(),
lastAccel = {},
threshold = 0.2,
api = lang.setObject("Ti.Accelerometer", Evented);
require.on(window, "devicemotion", function(evt) {
var e = evt.acceleration || evt.accelerationIncludingGravity,
cu... |
YUI.add('oop', function (Y, NAME) {
/**
Adds object inheritance and manipulation utilities to the YUI instance. This
module is required by most YUI components.
@module oop
**/
var L = Y.Lang,
A = Y.Array,
OP = Object.prototype,
CLONE_MARKER = '_~yuim~_',
hasOwn = OP... |
package config
import (
"testing"
apiequality "k8s.io/apimachinery/pkg/api/equality"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/watch"
"k8s.io/client-go/tools/cache"
"k8s.io/kubernetes/pkg/api/v1"
kubetypes "k8s.io/kubernetes/pkg/kubelet/types"
)... |
class Admin::LineItemsController < Admin::BaseController
resource_controller
belongs_to :order
ssl_required
actions :all, :except => :index
create.flash nil
update.flash nil
destroy.flash nil
#override r_c create action as we want to use order#add_variant instead of creating line_item
def create
... |
import * as qpschema from './QuickPulseSchema';
import { QPSchemaConfigurationMetric, QPSchemaDocumentStreamInfo, RequestFieldsEnum, DependencyFieldsEnum } from './QuickPulseSchema';
import axios, { AxiosRequestConfig } from 'axios';
// tslint:disable: max-classes-per-file
export function makeQuickPulseId() {
let ... |
#include <aws/elasticbeanstalk/model/DeleteApplicationVersionRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::ElasticBeanstalk::Model;
using namespace Aws::Utils;
DeleteApplicationVersionRequest::DeleteApplicationVersionRequest() :
... |
package br.org.arquitetura.api.excecao.mapper;
import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
import br.org.arquitetura.excecao.EntidadeJaExisteExcecao;
@Provider
public class EntidadeJaExisteMapper implements ExceptionMapper<EntidadeJaExisteExcecao> {
... |
cd $(dirname $0)
GH_PAGES_DIR=./gh-pages
ember build --environment=production && \
rm -rf ${GH_PAGES_DIR}/* && \
cp -R dist/* ${GH_PAGES_DIR}/ && \
cd ${GH_PAGES_DIR} && \
git add -A && \
git commit -m 'Update GitHub pages' && \
git push origin gh-pages:gh-pages
|
<?php
/**
* Bootstrap application component.
*/
class Bootstrap extends CApplicationComponent
{
// Bootstrap plugins.
const PLUGIN_ALERT = 'alert';
const PLUGIN_BUTTON = 'button';
const PLUGIN_CAROUSEL = 'carousel';
const PLUGIN_COLLAPSE = 'collapse';
const PLUGIN_DROPDOWN = 'dropdown... |
<ActionBar loaded="loaded">
<GridLayout>
<Button class="transparent-bg" text="{{ title }}" horizontalAlignment="center" />
</GridLayout>
</ActionBar> |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="An app to help you adapt to the current energy crisis in Ghana.... |
import { format, formatMongoose, MongodbUriParser, parse } from 'mongodb-uri';
const urlString = 'mongodb://localhost';
const parser = new MongodbUriParser();
const parsed1 = parser.parse(urlString);
const urlString1 = parser.format(parsed1);
const formatMongoose1 = parser.formatMongoose(parsed1);
const parsed2 = pa... |
"""Client side of the conductor RPC API"""
from nova.openstack.common import cfg
from nova.openstack.common import jsonutils
import nova.openstack.common.rpc.proxy
CONF = cfg.CONF
class ConductorAPI(nova.openstack.common.rpc.proxy.RpcProxy):
"""Client side of the conductor RPC API
API version history:
... |
package org.apache.logging.slf4j;
import ch.qos.logback.classic.Logger;
import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.classic.joran.JoranConfigurator;
import ch.qos.logback.core.joran.GenericConfigurator;
import org.junit.rules.TestRule;
import org.junit.runner.Description;
import org.junit.runne... |
GAD_ASSUME_NONNULL_BEGIN
/// Used by mediation adapters to notify the Google Mobile Ads SDK about events occurring in the
/// lifecycle of a GADMediatedNativeAd.
@interface GADMediatedNativeAdNotificationSource : NSObject
/// Called by the adapter when it has registered an impression on the tracked view. Adapter shou... |
var Container = function() { this.services = {}; };
Container.prototype = {
services: {},
set: function(name, instance) {
if(this.services[name] !== undefined) {
throw new Error('The "'+name+'" service already exist');
}
this.services[name] = instance;
return this;
},
get: function(name, error) {
if(... |
package com.google.zxing.datamatrix.decoder;
import com.google.zxing.FormatException;
import com.google.zxing.common.BitSource;
import com.google.zxing.common.DecoderResult;
import java.io.UnsupportedEncodingException;
import java.util.Vector;
/**
* <p>Data Matrix Codes can encode text as bits in one of several m... |
export default function HARError(errors) {
let message = 'validation failed';
this.name = 'HARError';
this.message = message;
this.errors = errors;
if (typeof Error.captureStackTrace === 'function') {
Error.captureStackTrace(this, this.constructor);
} else {
this.stack = new Error(message).stack;
... |
package com.cybercom.javaee.entity;
import java.io.Serializable;
/**
* A shopping list item.
*
* @author Ivar Grimstad (ivar.grimstad@gmail.com)
*/
public class Item implements Serializable {
private Long id;
private String description;
private int amount;
public Item() {
}
publi... |
package org.apache.ignite.ml.tree.impurity.mse;
import org.apache.ignite.ml.tree.TreeFilter;
import org.apache.ignite.ml.tree.data.DecisionTreeData;
import org.apache.ignite.ml.tree.data.TreeDataIndex;
import org.apache.ignite.ml.tree.impurity.ImpurityMeasureCalculator;
import org.apache.ignite.ml.tree.impurity.util... |
package com.intellij.ide.navigationToolbar;
import com.intellij.ide.ui.UISettings;
import com.intellij.openapi.actionSystem.*;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.project.DumbAware;
import com.intellij.openapi.project.Project;
import com.intellij.util.ui.UIUtil;
import java.awt.*;... |
import sys, os
# If your extensions are in another directory, add it here. If the directory
# is relative to the documentation root, use os.path.abspath to make it
# absolute, like shown here.
#sys.path.append(os.path.abspath('.'))
# General configuration
# ---------------------
# Add any Sphinx extension module nam... |
YUI.add('tabview', function (Y, NAME) {
/**
* The TabView module
*
* @module tabview
*/
var _queries = Y.TabviewBase._queries,
_classNames = Y.TabviewBase._classNames,
DOT = '.',
/**
* Provides a tabbed widget interface
* @param config {Object} Object literal specifying tabview configuratio... |
<!-- This Source Code Form is subject to the terms of the MIT license
If a copy of the MIT license was not distributed with this file, you can
obtain one at https://raw.github.com/mozilla/butter/master/LICENSE -->
<div class="butter-dialog butter-form small">
<p>{{ gettext("Are you sure you want to dele... |
namespace cc {
struct CC_EXPORT AnimationEvent {
enum Type { Started, Finished, PropertyUpdate };
AnimationEvent(Type type,
int layer_id,
int group_id,
Animation::TargetProperty target_property,
double monotonic_time);
Type type;
int layer_i... |
package org.osgi.framework;
import java.io.File;
import java.io.InputStream;
import java.util.Collection;
import java.util.Dictionary;
import org.osgi.annotation.versioning.ProviderType;
/**
* A bundle's execution context within the Framework. The context is used to
* grant access to other methods so that this bu... |
import Icon from 'react-native-vector-icons/Ionicons';
import NavigationBar from 'react-native-navbar';
import React, { Component } from 'react';
import { Text, View, TextInput, TouchableOpacity, Dimensions } from 'react-native';
import { GooglePlacesAutocomplete } from 'react-native-google-places-autocomplete';
import... |
<?php
namespace Doctrine\DBAL\Connections;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Driver;
use Doctrine\DBAL\Configuration;
use Doctrine\Common\EventManager;
use Doctrine\DBAL\Event\ConnectionEventArgs;
use Doctrine\DBAL\Events;
/**
* Master-Slave Connection
*
* Connection can be used with master-slave s... |
require File.dirname(__FILE__) + '/../../spec_helper'
describe "MatchData#post_match" do
it "returns the string after the match equiv. special var $'" do
/(.)(.)(\d+)(\d)/.match("THX1138: The Movie").post_match.should == ': The Movie'
$'.should == ': The Movie'
end
end
|
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
using Newtonsoft.Json;
using WebSocketSharp;
using ErrorEventArgs = WebSocketSharp.ErrorEventArgs;
namespace WSClient
{
public partial class MainForm : Form
... |
<!---
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... |
require 'spec_helper'
# Specs in this file have access to a helper object that includes
# the Spree::Admin::FeedHelper. For example:
#
# describe Spree::Admin::FeedHelper do
# describe "string concat" do
# it "concats two strings with spaces" do
# expect(helper.concat_strings("this","that")).to eq("this th... |
package projected
import (
"fmt"
"sort"
"strings"
"github.com/golang/glog"
"k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
utilerrors "k8s.io/apimachinery/pkg/util/errors"
utilstrings "k8s.io/kubernetes/pkg/util/string... |
int main()
{
using namespace std;
ostringstream stream;
try
{
stream.setstate(ios_base::failbit);
stream.exceptions(ios_base::failbit);
VERIFY( false );
}
catch (...)
{
// Don't clear.
}
try
{
// Calls clear(rdstate()), which throws in this case.
... |
package org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.privileged;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.yarn.conf.YarnConfiguration;
import org.junit.Assert;
import org.junit.Before... |
#ifndef __MSM_GPU_H__
#define __MSM_GPU_H__
#include <linux/clk.h>
#include <linux/regulator/consumer.h>
#include "msm_drv.h"
#include "msm_ringbuffer.h"
struct msm_gem_submit;
struct msm_gpu_perfcntr;
/* So far, with hardware that I've seen to date, we can have:
* + zero, one, or two z180 2d cores
* + a3xx o... |
#ifndef CONTROL_H
#define CONTROL_H
#include <map>
#include <string>
#include <stdexcept>
#include <windows.h>
#include "util.h"
class Control
{
public:
typedef LRESULT (*msgHandler)(Control &, HWND, WPARAM, LPARAM);
typedef std::map<UINT, msgHandler> msgMap;
typedef msgMap::iterator msgI... |
package fsblkstorage
import (
"testing"
"time"
"github.com/hyperledger/fabric/common/ledger/testutil"
"github.com/hyperledger/fabric/protos/common"
)
func TestBlocksItrBlockingNext(t *testing.T) {
env := newTestEnv(t, NewConf(testPath(), 0))
defer env.Cleanup()
blkfileMgrWrapper := newTestBlockfileWrapper(e... |
// Copyright 2017 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 auth authenticates a message using a secret key.
The Sum function, viewed as a function of the message for a uniform random
key, is designed to meet... |
from pylint.testutils.global_test_linter import linter
from pylint.testutils.output_line import Message
class UnittestLinter:
"""A fake linter class to capture checker messages."""
# pylint: disable=unused-argument, no-self-use
def __init__(self):
self._messages = []
self.stats = {}
... |
namespace cloud_print {
namespace {
class PrintSystemWatcherWin : public base::win::ObjectWatcher::Delegate {
public:
PrintSystemWatcherWin()
: delegate_(NULL),
did_signal_(false) {
}
~PrintSystemWatcherWin() {
Stop();
}
class Delegate {
public:
virtual ~Delegate() {}
virtual ... |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Vertical text metrics test</title>
<style>
body {
font-family: "HiraMinPro-W3";
font-size: 16pt;
}
#horizontal_TB {
-webkit-writing-mode: horizontal-tb;
}
#vertical_RL {
-webkit-writing-mode: vertica... |
class SceneZoneCullingState
{
public:
friend class SceneCullingState; // mCullingVolumes
/// Result of a culling test in a zone.
enum CullingTestResult
{
/// An includer tested positive on the bounding volume.
CullingTestPositiveByInclusion,
/// An occluder test... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Id... |
/* Search & Filter Styles */
body
{
display:block;
}
.searchandfilter p
{
margin-top: 1em;
display:inline-block;
}
.searchandfilter ul
{
display:inline-block;
}
.searchandfilter li
{
list-style: none;
display:inline-block;
padding-right:10px;
}
/* If in a widget area make a single column by adding display block... |
namespace Gu.Wpf.Adorners
{
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
using System.Windows;
using System.Windows.Media;
internal class User32
{
internal static Point GetMousePosition()
{
var p = default(NativeMethods.Win32Point);
... |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.VisualStudio.Debugger.Metadata
{
// Starting in Visual Studio 2015, Update 1, a new api exists to detect if a type is a function poin... |
<?php
namespace Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\FormLoginBundle\Controller;
use Symfony\Component\Security\Core\Security;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\DependencyInjection\ContainerAware;
class LocalizedContr... |
package com.intellij.structuralsearch.impl.matcher.compiler;
import com.intellij.psi.PsiElement;
import java.util.ArrayList;
/**
* Created by IntelliJ IDEA.
* User: maxim
* Date: 17.11.2004
* Time: 19:24:40
* To change this template use File | Settings | File Templates.
*/
class DeleteNodesAction implements Ru... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-ssreflect: 1 m 31 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.mi... |
'''
Copyright 2011 Google Inc.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
'''
'''
Updates all copyright headers within our code:
- For files that already have a copyright header, the header is modified
while keeping the year and holder intact.
- For files that ... |
import path from 'path';
import { expect } from 'chai';
import jscodeshift from 'jscodeshift';
import transform from './grid-list-component';
import readFile from '../util/readFile';
function read(fileName) {
return readFile(path.join(__dirname, fileName));
}
describe('@mui/codemod', () => {
describe('v5.0.0', ()... |
require File.expand_path('../../../../spec_helper', __FILE__)
module Pod
module Generator
module XCConfig
describe PrivatePodXCConfig do
describe "in general" do
before do
@spec = fixture_spec('banana-lib/BananaLib.podspec')
@consumer = @spec.consumer(:ios)
... |

### Summary ###
This is a collection of solutions to exercises on low level programming,
reverse engineering, cryptography and binary exploitation.
### Contributing ###
Any sort of contribution is welcome ... |
/**
* @file
* Helper functions for packing/unpacking.
*
* Pack/unpacking is necessary for conversion between types of different
* bit width.
*
* They are also commonly used when an computation needs higher
* precision for the intermediate values. For example, if one needs the
* function:
*
* c = compute... |
namespace Orchard.DynamicForms.Elements {
public class UserNameField : FormElement {
public override bool HasEditor {
get { return false; }
}
public override string Name {
get { return "UserName"; }
}
}
} |
@protocol AwesomeMenuItemDelegate;
@interface AwesomeMenuItem : UIImageView
{
UIImageView *_contentImageView;
CGPoint _startPoint;
CGPoint _endPoint;
CGPoint _nearPoint; // near
CGPoint _farPoint; // far
id<AwesomeMenuItemDelegate> __weak _delegate;
}
@property (nonatomic, strong, readonl... |
package upgrades
import (
"context"
"fmt"
"k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/uuid"
"k8s.io/kubernetes/test/e2e/framework"
imageutils "k8s.io/kubernetes/test/utils/image"
"github.com/onsi/ginkgo"
)
// SecretUpgradeTest test that a secret is avai... |
MPL_TEST_CASE()
{
typedef eval_if< true_, identity<char>, identity<long> >::type t1;
typedef eval_if_c< true, identity<char>, identity<long> >::type t2;
typedef eval_if< false_, identity<char>, identity<long> >::type t3;
typedef eval_if_c< false, identity<char>, identity<long> >::type t4;
MPL_ASSER... |
#include"uses_theory.h"
#include"for_each_expr.h"
bool uses_theory(expr * n, family_id fid) {
expr_mark visited;
return uses_theory(n, fid, visited);
}
namespace uses_theory_ns {
struct found {};
struct proc {
family_id m_fid;
proc(family_id fid):m_fid(fid) {}
void operator(... |
import { IConfiguration, IOptions } from 'dependency-cruiser'
/**
* NOTE: IConfiguration.options not provide tsConfig field, so we override it vi IOptions
*/
export type DepcruiseConfig = IConfiguration & { options: IOptions }
|
<!doctype html>
<meta charset="utf-8">
<title>ProseMirror</title>
<link rel=stylesheet href=demo.css>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="ProseMirror" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://prosemirro... |
// Licensed to the .NET Foundation under one or more agreements.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.Drawing.Text;
using System.Linq;
using Xunit;
na... |
package runtime
import (
"io"
"net/url"
"k8s.io/kubernetes/pkg/api/unversioned"
)
// Codec defines methods for serializing and deserializing API objects.
type Codec interface {
Decoder
Encoder
}
// Decoder defines methods for deserializing API objects into a given type
type Decoder interface {
// TODO: chan... |
//**********************************************//
//**Extendiendo las funciones del core OL, para buscar un layer mediante su id, ej.: map.getLayer(<lyrID>);
if (ol.Map.prototype.getLayer === undefined) {
ol.Map.prototype.getLayer = function (id) {
var layer = null;
this.getLayers().forEach(function (lyr) {
if... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
define(function(require, exports, module) {
var oop = require("../lib/oop");
var TextMode = require("../mode/text").Mode;
var PgsqlHighlightRules = require("./pgsql_highlight_rules").PgsqlHighlightRules;
var Range = require("../range").Range;
var Mode = function() {
this.HighlightRules = PgsqlHighlightRules;
};... |
warn "EM::Deferrable::Pool is deprecated, please use EM::Pool"
EM::Deferrable::Pool = EM::Pool |
#ifndef _PERLIO_H
#define _PERLIO_H
/*
Interface for perl to IO functions.
There is a hierarchy of Configure determined #define controls:
USE_STDIO - forces PerlIO_xxx() to be #define-d onto stdio functions.
This is used for x2p subdirectory and for conservative
builds - "ju... |
import Ember from 'ember-metal/core';
import run from 'ember-metal/run_loop';
import Namespace from 'ember-runtime/system/namespace';
import Controller from 'ember-runtime/controllers/controller';
import EmberView from 'ember-views/views/view';
import jQuery from 'ember-views/system/jquery';
import compile from 'embe... |