max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
377 | #pragma once
//------------------------------------------------------------------------------
/**
@class Linux::LinuxEvent
Linux implementation of Event. Uses pthread condition variables.
(C) 2010 Radon Labs GmbH
(C) 2013-2018 Individual contributors, see AUTHORS file
*/
#include "core/types.h"
#inc... | 1,831 |
335 | {
"word": "Inflationary",
"definitions": [
"Characterized by or tending to cause monetary inflation.",
"Relating to or involving inflation."
],
"parts-of-speech": "Adjective"
} | 80 |
1,085 | package com.sdsmdg.harjot.longshadows.models;
import android.graphics.Path;
/**
* Created by Harjot on 30-Jan-18.
*/
public class ShadowPath {
private Point2D[] points;
private Point2D startPointOne, startPointTwo, endPointOne, endPointTwo;
private Path path;
private boolean isPathDirty = true;
... | 898 |
777 | // Copyright (c) 2011 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 "net/proxy/mock_proxy_resolver.h"
#include <utility>
#include "base/logging.h"
#include "base/memory/ptr_util.h"
namespace net {
MockAsyn... | 2,135 |
820 | from circus import ArbiterHandler as _ArbiterHandler
class ArbiterHandler(_ArbiterHandler):
def __call__(self, watchers, **kwargs):
return super(ArbiterHandler, self).__call__(watchers, **kwargs)
def _get_arbiter_klass(self, background):
if background:
raise NotImplementedError
... | 182 |
550 | package com.dropbox.core.v2.callbacks;
import com.dropbox.core.DbxException;
/**
* Abstract class for network error callback.
*/
public abstract class DbxNetworkErrorCallback {
public abstract void onNetworkError(DbxException networkError);
}
| 73 |
6,036 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/providers/nuphar/mti_x86/math/halide_ops.h"
#include "topi/broadcast.h"
#include "tvm/ir.h"
namespace onnxruntime {
namespace nuphar {
tvm::Tensor Pow(tvm::Tensor A, tvm::Tensor B, const std::string& name =... | 517 |
722 | <gh_stars>100-1000
// Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved.
// 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... | 1,409 |
1,444 | package org.mage.test.cards.single.jou;
import mage.constants.ManaType;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
* @author TheElk801
*/
public class KruphixGodOfHorizonsTest extends CardTestPlayerBase {
priv... | 913 |
984 | <filename>phoenix-core/src/main/java/org/apache/phoenix/expression/function/JavaMathTwoArgumentFunction.java
/*
* 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 ow... | 903 |
2,329 | <gh_stars>1000+
package data;
public class FieldsB {
int[] is = new int[] { 1, 2, 3 };
int i = 23;
boolean b = false;
char c = 'a';
short s = 123;
long l = 32768 * 327;
double d = 2.0d;
float f = 1.4f;
String theMessage = "Hello Andy";
public boolean isB() {
return b;
}
public void setB(boolean b) {
... | 474 |
381 | import py
import sys
from rpython.jit.tool.oparser import pure_parse
from rpython.jit.metainterp.optimizeopt.util import equaloplists
from rpython.jit.metainterp.resoperation import ResOperation, rop
from rpython.jit.backend.model import AbstractCPU
from rpython.jit.metainterp.history import ConstInt, ConstPtr
from rpy... | 3,399 |
4,054 | // Copyright 2020 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package ai.vespa.metricsproxy.metric;
import ai.vespa.metricsproxy.metric.model.ConsumerId;
import ai.vespa.metricsproxy.metric.model.DimensionId;
import java.util.Collections;
import java.util.Map;
import... | 467 |
522 | <reponame>dominico966/Spark
package battleship;
import java.text.MessageFormat;
import java.util.PropertyResourceBundle;
import java.util.ResourceBundle;
import org.jivesoftware.spark.util.log.Log;
public class BsRes {
private static PropertyResourceBundle prb;
static ClassLoader cl = BsRes.class.getClassL... | 300 |
330 | """
Integer Serde
"""
from .._integer import IntegerDeserializer, IntegerSerializer
from .wrapper_serde import WrapperSerde
class IntegerSerde(WrapperSerde[int]):
def __init__(self):
serializer = IntegerSerializer()
deserializer = IntegerDeserializer()
super().__init__(serializer, deseria... | 114 |
754 | /*-
* <<
* UAVStack
* ==
* Copyright (C) 2016 - 2017 UAVStack
* ==
* 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 r... | 699 |
4,857 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 4,121 |
1,825 | package org.mlflow.sagemaker;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.File;
import java.io.IOException;
import java.util.A... | 786 |
3,380 | <filename>src/entropy/dyn_entropy_snd.c<gh_stars>1000+
/*
* Dynomite - A thin, distributed replication layer for multi non-distributed
*storages. Copyright (C) 2015 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... | 3,976 |
2,039 | package org.nd4j.linalg.activations;
import org.nd4j.linalg.api.ndarray.INDArray;
import org.nd4j.linalg.primitives.Pair;
import org.nd4j.serde.json.LegacyIActivationDeserializerHelper;
import org.nd4j.shade.jackson.annotation.JsonAutoDetect;
import org.nd4j.shade.jackson.annotation.JsonTypeInfo;
import java.io.Seria... | 738 |
3,432 | <filename>telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/methods/send/SendLocation.java
package org.telegram.telegrambots.meta.api.methods.send;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.type.TypeReference;
import lombok.AllArgsConstructor;
import lombo... | 2,224 |
340 | <filename>arch/x86_64/fpu/abs_32.h
//
// arch/x86_64/fpu/abs_32.h
//
// This file is subject to the terms and conditions defined in
// 'LICENSE', which is part of this source code package.
//
#include "common.h"
#include <emmintrin.h>
#include <string.h>
static inline void fpu_abs_32(const uint32_t *fs, uint32_t *fd)... | 273 |
1,100 | <gh_stars>1000+
/*********************************************************************************
* (Maximum element in a two-dimensional array) Write a generic method that *
* returns the maximum element in a two-dimensional array. *
* ... | 360 |
505 | <reponame>hartraft/blog-tutorials
package de.rieckpil.blog;
import com.codeborne.selenide.Condition;
import com.codeborne.selenide.Configuration;
import com.codeborne.selenide.junit5.ScreenShooterExtension;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test... | 533 |
1,444 | package org.mage.test.cards.single.m21;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
public class FieryEmancipationTest extends CardTestPlayerBase {
@Test
public void directDamage() {
// If a source you co... | 571 |
7,137 | <reponame>sasaie/onedev
/**
* Copyright (C) 2010 Google, Inc.
*
* 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 requi... | 1,772 |
571 | # Copyright 2015 Ufora Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 1,022 |
1,056 |
package testPackage;
/**
* This is the business interface for OrderTbl enterprise bean.
*/
public interface OrderTblLocalBusiness {
}
| 41 |
480 | <filename>Chapter04/transform_if.cpp<gh_stars>100-1000
#include <iostream>
#include <iterator>
#include <numeric>
template <typename T>
auto filter(T predicate)
{
return [=] (auto reduce_fn) {
return [=] (auto accumulator, auto input) {
if (predicate(input)) {
return reduce_fn(a... | 583 |
726 | <reponame>huangwenl/SprintNBA
package com.yuyh.sprintnba.ui.view;
import com.yuyh.sprintnba.http.bean.player.StatsRank;
import com.yuyh.sprintnba.app.Constant;
import com.yuyh.sprintnba.ui.view.base.BaseView;
import java.util.List;
import java.util.Map;
public interface StatsRankView extends BaseView{
void show... | 174 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
#define V... | 1,097 |
1,615 | <gh_stars>1000+
/**
* Created by MomoLuaNative.
* Copyright (c) 2020, Momo Group. All rights reserved.
*
* This source code is licensed under the MIT.
* For the full copyright and license information,please view the LICENSE file in the root directory of this source tree.
*/
//
// Created by Generator on 2020-10-1... | 13,343 |
353 | <gh_stars>100-1000
/*
* junixsocket
*
* Copyright 2009-2021 <NAME>
*
* 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 req... | 2,445 |
844 | {
"github-username": "dfrzuz",
"favourite-emoji": "🌝",
"favourite-music": "https://soundcloud.com/muhammad-faza-938291781/hindia-secukupnya",
"favourite-color": "#187bcd"
} | 92 |
863 | from social.backends.gae import GoogleAppEngineAuth as GAEBackend
| 18 |
778 | // | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main author: <NAME>
// Co-author : <NAME>
#if !defined... | 2,131 |
1,060 | <reponame>kushal-kumaran/xlwings<gh_stars>1000+
import os
import inspect
import unittest
import xlwings as xw
this_dir = os.path.abspath(os.path.dirname(inspect.getfile(inspect.currentframe())))
SPEC = None # This was used to support Excel 2011: '/Applications/Microsoft Office 2011/Microsoft Excel'
class TestBase... | 471 |
5,169 | <reponame>Gantios/Specs
{
"name": "ThreeDSecureView",
"version": "1.0.0",
"summary": "ThreeDSecureView allows you to handle the 3DSecure payment process in your iOS app.",
"description": "ThreeDSecureView is primarily a WKWebView that handles the 3DSecure payment process by sending a POST request to the provide... | 312 |
1,668 | package org.elixir_lang.elixir_flex_lexer.group_heredoc_line_body.quote;
import com.intellij.psi.tree.IElementType;
import org.elixir_lang.ElixirFlexLexer;
import org.elixir_lang.elixir_flex_lexer.TokenTest;
import org.elixir_lang.psi.ElixirTypes;
import org.jetbrains.annotations.NotNull;
import org.junit.Ignore;
imp... | 722 |
1,656 | /*
* Copyright 2013-2021 the original author or 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 975 |
1,444 | <filename>restclient-lib/src/main/java/org/wiztools/restclient/util/Util.java<gh_stars>1000+
package org.wiztools.restclient.util;
import java.io.*;
import java.net.URLEncoder;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.charset.*;
import java.util.Arrays;
import java.util.HashMap;
import j... | 3,854 |
852 | <gh_stars>100-1000
#ifndef Geometry_TrackerNumberingBuilder_CmsTrackerStringToEnum_H
#define Geometry_TrackerNumberingBuilder_CmsTrackerStringToEnum_H
#include "Geometry/TrackerNumberingBuilder/interface/GeometricDet.h"
#include <string>
#include <map>
/**
* Builds map between Det type and an enum
*/
class CmsTracke... | 314 |
7,407 | <filename>q3map2/q3map2/bsp_analyze.c
/* -------------------------------------------------------------------------------
Copyright (C) 1999-2007 id Software, Inc. and contributors.
For a list of contributors, see the accompanying CONTRIBUTORS file.
This file is part of GtkRadiant.
GtkRadiant is free soft... | 2,503 |
679 | <filename>main/forms/source/xforms/submission/submission_get.cxx
/**************************************************************
*
* 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
* r... | 1,547 |
9,724 | <gh_stars>1000+
#include <setjmp.h>
#include <stdio.h>
static jmp_buf buf;
void a() { printf("a\n"); }
void b() { printf("b\n"); }
void c() { printf("c\n"); }
int d() {
static int first = 1;
if (first) {
first = 0;
printf("d\n");
return 1;
}
return 0;
}
int n = 3;
int main() {
while (n-- > 0) ... | 218 |
679 | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 1,937 |
349 | <gh_stars>100-1000
/*
* Copyright (C) 2020-2021 <NAME>
*
* 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 applicabl... | 647 |
5,250 | <reponame>jiandiao/flowable-engine
/* 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 ... | 931 |
571 | <filename>ufora/FORA/TypedFora/TypedFora.py
# Copyright 2015 Ufora Inc.
#
# 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... | 652 |
311 | <filename>joyqueue-server/joyqueue-broker-kafka/src/main/java/org/joyqueue/broker/kafka/network/codec/ListOffsetsCodec.java
/**
* Copyright 2019 The JoyQueue 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 obt... | 1,889 |
432 | <gh_stars>100-1000
#define MEMMOVE
#include "bcopy.c"
| 26 |
2,406 | <reponame>pazamelin/openvino
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "fuzz-utils.h"
#include <stdexcept>
#include <stdlib.h>
#include <string.h>
#include <string>
#ifndef _WIN32
#include <unistd.h>
#endif // _WIN32
MemoryFile::MemoryFile(const void *data, size_... | 470 |
5,249 | <filename>plugin/embLayerNormPlugin/embLayerNormPlugin.cpp<gh_stars>1000+
/*
* Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License a... | 10,318 |
384 | /*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 2013,2014,2015,2016,2018 by the GROMACS development team.
* Copyright (c) 2019,2020,2021, by the GROMACS development team, led by
* <NAME>, <NAME>, <NAME>, and <NAME>,
* and including many others, as listed in the AUTHORS file i... | 1,669 |
1,338 | //----------------------------------------------------------------------
// This software is part of the OpenBeOS distribution and is covered
// by the MIT License.
//---------------------------------------------------------------------
/*!
\file sniffer/PatternList.h
MIME sniffer pattern list declarations
*/
#ifn... | 352 |
1,946 | #pragma once
#define EPS 1e-6
#define ASSERT_EQ_F(a, b) ASSERT_LE(abs(a - b), EPS)
| 43 |
471 | from corehq.apps.reports.filters.dates import DatespanFilter
import json
from django.utils.translation import ugettext as _, ugettext_noop
from corehq.apps.reports.dont_use.fields import ReportField
class DateRangeField(DatespanFilter):
name = ugettext_noop("Date Range")
template = 'reports/filters/datespan.h... | 525 |
778 | <gh_stars>100-1000
//--------------------------------------------------------------------------------------------------------------------//
// //
// Tuplex: Blazing Fas... | 3,954 |
311 | package datadog.trace.api;
// TODO replace me when baselining against JDK8
public interface IntFunction<T> {
T apply(int value);
}
| 44 |
482 | // License: BSD 3 Clause
// Copyright (C) 2010, Google Inc. All rights reserved.
// Copyright (C) 2015+, The LabSound Authors. All rights reserved.
#ifndef AudioDSPKernel_h
#define AudioDSPKernel_h
#include "LabSound/extended/AudioContextLock.h"
namespace lab
{
class AudioDSPKernelProcessor;
// AudioDSPKernel does... | 394 |
190,993 | <reponame>abhaikollara/tensorflow
/* Copyright 2016 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
Unle... | 2,184 |
1,444 | <filename>Mage.Sets/src/mage/cards/v/VensersSliver.java
package mage.cards.v;
import java.util.UUID;
import mage.MageInt;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
* @author Loki
*/
public final class VensersSliver extends CardI... | 322 |
471 | <gh_stars>100-1000
import os
from django.test import SimpleTestCase
from corehq.motech.dhis2.parse_response import get_errors
from corehq.util.test_utils import TestFileMixin
class GetErrorTests(SimpleTestCase, TestFileMixin):
file_path = ('data',)
root = os.path.dirname(__file__)
def test_imported(sel... | 300 |
2,322 | import cartography.intel.aws.secretsmanager
import tests.data.aws.secretsmanager
TEST_ACCOUNT_ID = '000000000000'
TEST_REGION = 'us-east-1'
TEST_UPDATE_TAG = 123456789
def test_load_load_secrets(neo4j_session, *args):
"""
Ensure that expected secrets get loaded with their key fields.
"""
data = test... | 957 |
1,082 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ServerMessage.proto
package com.jzy.game.message;
public final class ServerMessage {
private ServerMessage() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface ServerRegi... | 119,054 |
5,169 | <filename>Specs/c/5/5/FannexSDKLite/1.0.6/FannexSDKLite.podspec.json
{
"name": "FannexSDKLite",
"version": "1.0.6",
"summary": "Fannex Mobile Entertainment System – Basic Services Integration (Lite)",
"description": "For integration of basic user event check-in and access to Fannex real time interactive product... | 327 |
1,738 | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 3,198 |
1,613 | /*
* Copyright (C) 2016-2018 <NAME>
*
* 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 ... | 527 |
339 | <filename>Legacy/Visualizer/GenerateData.py
'''
(c) 2011, 2012 Georgia Tech Research Corporation
This source code is released under the New BSD license. Please see
http://wiki.quantsoftware.org/index.php?title=QSTK_License
for license details.
Created on April, 20, 2012
@author: <NAME>
@contact: <EMAIL>
@summary: Vi... | 1,103 |
2,443 | <gh_stars>1000+
// Copyright (c) 2015-2019 The HomeKit ADK Contributors
//
// Licensed under the Apache License, Version 2.0 (the “License”);
// you may not use this file except in compliance with the License.
// See [CONTRIBUTORS.md] for the list of HomeKit ADK project authors.
#include "HAP+Internal.h"
static const... | 12,386 |
355 | <gh_stars>100-1000
import copy
from configs.algorithm import algorithm_defaults
from configs.model import model_defaults
from configs.scheduler import scheduler_defaults
from configs.data_loader import loader_defaults
from configs.datasets import dataset_defaults, split_defaults
def populate_defaults(config):
"""P... | 1,536 |
1,861 | <reponame>iamdarshshah/spectrum
// Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
#include "OrientationDecision.h"
#include <spectrum/core/SpectrumEnforce.h>
namespace facebook {
namespa... | 789 |
2,098 | #include "list_reader.h"
#include "VecSim/vec_sim.h"
#include "VecSim/query_results.h"
typedef struct {
IndexIterator base;
VecSimQueryResult_List list;
VecSimQueryResult_Iterator *iter;
t_docId lastDocId;
t_offset size;
} ListIterator;
static inline void setEof(ListIterator *it, int value) {
it->base.isV... | 1,295 |
343 | <filename>syzygy/refinery/analyzers/analysis_runner.h<gh_stars>100-1000
// 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:/... | 702 |
625 | /*
* Copyright 2016 <NAME>
*
* 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 w... | 1,884 |
1,913 | <reponame>CoimLuo/incubator-shenyu<filename>shenyu-common/src/main/java/org/apache/shenyu/common/utils/ThreadShare.java<gh_stars>1000+
/*
* 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... | 910 |
305 | <gh_stars>100-1000
"""
Add space(s) at the beginning of all lines in a file to allow
the html code not to be interpreted as quizes inside !bc/!ec tags.
"""
from __future__ import print_function
import sys
f = open(sys.argv[1], 'r')
try:
spaces = int(sys.argv[2])
except IndexError:
spaces = 1
for line in f.read(... | 130 |
636 | <filename>wrappers/ios/Tests/libzmq-ios-test-app/ZeroMQ_Test/ZeroMQ_Test/ZeroMQTests.h<gh_stars>100-1000
//
// ZeroMQTests.h
// ZeroMQ_Test
//
// Created by <NAME> on 17/04/2017.
// Copyright © 2017 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface ZeroMQTests : NSObject
+(void) testAl... | 133 |
1,658 | <reponame>yunqiic/cskefu
package com.chatopera.cc.peer.im;
import com.chatopera.cc.basic.MainContext;
import com.chatopera.cc.peer.PeerContext;
import com.chatopera.cc.peer.PeerUtils;
import com.chatopera.cc.proxy.AgentAuditProxy;
import com.chatopera.cc.socketio.message.ChatMessage;
import com.chatopera.compose4j.Fun... | 1,473 |
49,076 | /*
* Copyright 2002-2019 the original author or 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 442 |
11,393 | package com.interview.tree;
/**
* Date 04/27/2016
* @author <NAME>
*
* Find lowest common ancestor in binary tree.
*
* Time complexity O(n)
* Space complexity O(h)
*/
public class LowestCommonAncestorInBinaryTree {
public Node lca(Node root, Node n1, Node n2){
if(root == null){
return ... | 298 |
1,444 | <filename>Mage.Sets/src/mage/cards/d/Dreadhound.java
package mage.cards.d;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.TriggeredAbilityImpl;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.LoseLifeOpponentsEffect;
import mage.abilities.effects.... | 1,095 |
734 | <reponame>jbloit/tracktion_engine
/* ========================================
* NonlinearSpace - NonlinearSpace.h
* Created 8/12/11 by SPIAdmin
* Copyright (c) 2011 __MyCompanyName__, All rights reserved
* ======================================== */
#ifndef __NonlinearSpace_H
#define __NonlinearSpace_H
#ifndef... | 2,868 |
1,006 | /****************************************************************************
* libs/libc/machine/xtensa/xtensa_asm.h
*
* 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 copyr... | 509 |
6,851 | <reponame>ashishmjn/gunicorn
from gunicorn.http.errors import InvalidHeaderName
request = InvalidHeaderName | 33 |
5,169 | {
"name": "SwiftyWebSocket",
"version": "1.0",
"license": "MIT",
"homepage": "https://github.com/Tiko94/SwiftyWebSocket",
"authors": {
"<NAME>": "<EMAIL>"
},
"summary": "WebSocket framework for Swift",
"source_files": "SwiftyWebSocket",
"swift_versions": "5.0",
"platforms": {
"ios": "13.0"
... | 193 |
669 | // Copyright (c) Facebook, Inc. and its affiliates.
#pragma once
#include <cmath>
#include <vector>
#include "block_map.h"
#include "types.h"
class Graphics {
public:
// Calculate block/depth vision from player at position `pos` in direction `look`
//
// Arguments:
// - blocks will be populated with id/meta... | 997 |
6,989 | # Module 'riscospath' -- common operations on RISC OS pathnames.
# contributed by <NAME> ( <EMAIL> )
# The "os.path" name is an alias for this module on RISC OS systems;
# on other systems (e.g. Mac, Windows), os.path provides the same
# operations in a manner specific to that platform, and is an alias
# to another ... | 4,101 |
602 | package org.corfudb.runtime.exceptions;
import java.util.Optional;
import org.corfudb.protocols.logprotocol.SMREntry;
/**
* Created by mwei on 11/21/16.
*/
public class NoRollbackException extends RuntimeException {
public NoRollbackException(long rollbackVersion) {
super(String.format(
... | 446 |
14,668 | <filename>ui/ozone/platform/windows/client_native_pixmap_factory_windows.cc
// Copyright 2018 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 "ui/ozone/platform/windows/client_native_pixmap_factory_windows.h"
#... | 197 |
1,900 | /*
* Copyright Terracotta, Inc.
*
* 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 ... | 867 |
441 | <filename>basex-core/src/main/java/org/basex/query/func/lazy/LazyCache.java<gh_stars>100-1000
package org.basex.query.func.lazy;
import org.basex.query.*;
import org.basex.query.expr.*;
import org.basex.query.func.*;
import org.basex.query.value.*;
/**
* Function implementation.
*
* @author BaseX Team 2005-21, BSD... | 298 |
4,038 | <gh_stars>1000+
#ifndef _flextgl_h_
#define _flextgl_h_
/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019,
2020, 2021 <NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and ... | 64,741 |
453 | <gh_stars>100-1000
// Copyright (c) the JPEG XL 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.
#if defined(LIB_JXL_ENC_TRANSFORMS_INL_H_) == defined(HWY_TARGET_TOGGLE)
#ifdef LIB_JXL_ENC_TRANSFORMS_INL_H_
#undef LIB_JXL_E... | 15,557 |
695 | /*
* To change this template, choose Tools | Templates and open the template in the editor.
*/
package view.jme;
import java.util.ArrayList;
import java.util.List;
import model.battlefield.map.atlas.Atlas;
import com.jme3.asset.AssetManager;
import com.jme3.material.Material;
import com.jme3.material.R... | 1,171 |
575 | // Copyright 2020 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 "components/arc/enterprise/snapshot_reboot_controller.h"
#include "base/logging.h"
#include "chromeos/dbus/power/power_manager_client.h"
#includ... | 1,029 |
2,002 | #pragma once
inline wil::unique_hkey GetKeyForTrackingChange(bool isUser)
{
wil::unique_hkey keyToTrackChanges{};
if (isUser)
{
THROW_IF_WIN32_ERROR(RegCreateKeyEx(HKEY_CURRENT_USER
, L"Software\\ChangeTracker"
, 0
, nullptr
, REG_OPTION_N... | 1,209 |
3,102 | // preamble-with-implicit-import-A
| 14 |
5,133 | <gh_stars>1000+
/*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.bugs._2001;
/**
* @author <NAME>
*/
public
class Form {
private FormExtra[] extras;
public FormExtra[] getExtras(... | 163 |
14,668 | // Copyright 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.
#ifndef TOOLS_BLINK_GC_PLUGIN_BLINK_GC_PLUGIN_OPTIONS_H_
#define TOOLS_BLINK_GC_PLUGIN_BLINK_GC_PLUGIN_OPTIONS_H_
#include <set>
#include <string>
#inclu... | 436 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.