max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
703 | /*
* This source file is part of RmlUi, the HTML/CSS Interface Middleware
*
* For the latest information, see http://github.com/mikke89/RmlUi
*
* Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
* Copyright (c) 2019 The RmlUi Team, and contributors
*
* Permission is hereby granted, free of charge, to... | 1,822 |
529 | <gh_stars>100-1000
from enum import Enum
from typing import Any, Dict, List, Tuple, Union
SQL = str
SQLWithParams = Tuple[str, Union[Tuple[Any, ...], Dict[str, Any]]]
class StrEnum(str, Enum):
@classmethod
def all(cls) -> List["PostgresPartitioningMethod"]:
return [choice for choice in cls]
@cla... | 339 |
7,451 | from functools import partial
from importlib import import_module
def import_string(dotted_path, dotted_attributes=None):
"""
Import a dotted module path and return the attribute/class designated by the
last name in the path. When a dotted attribute path is also provided, the
dotted attribute path wou... | 621 |
317 | #include <iostream>
#include <fstream>
#include <iterator>
#include <opencv2/opencv.hpp>
#include <json/json.h>
#ifdef _OPENMP
#include <omp.h>
#endif
#include "NavGraph.hpp"
namespace mattersim {
NavGraph::Location::Location(const Json::Value& viewpoint, const std::string& skyboxDir,
bool preload, bool de... | 5,184 |
4,205 | <reponame>EMellau/reactor-core<filename>reactor-core/src/test/java/reactor/test/MockUtils.java
/*
* Copyright (c) 2016-2021 VMware Inc. or its affiliates, 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.
* Yo... | 993 |
694 | <filename>app/src/main/java/fuzion24/device/vulnerability/vulnerabilities/system/SamsungCREDzip.java
package fuzion24.device.vulnerability.vulnerabilities.system;
import android.content.Context;
import android.content.pm.PackageManager;
import android.content.res.AssetManager;
import java.io.File;
import java.io.Inpu... | 1,361 |
4,303 | import bisect
import warnings
from torch._utils import _accumulate
from torch import randperm
class Dataset(object):
"""An abstract class representing a Dataset.
All other datasets should subclass it. All subclasses should override
``__len__``, that provides the size of the dataset, and ``__getitem__``,... | 1,388 |
839 | <reponame>AnEmortalKid/cxf
/**
* 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.... | 4,734 |
721 | @ParametersAreNonnullByDefault // Not the right one, but eclipse knows only 3 null annotations anyway, so it's ok
package crazypants.enderio.zoo.config;
import javax.annotation.ParametersAreNonnullByDefault;
| 58 |
5,567 | #ifndef NEU_EVENT_H
#define NEU_EVENT_H
#include <string>
#include "lib/json/json.hpp"
using namespace std;
using json = nlohmann::json;
namespace events {
void dispatch(string event, json data);
} // namespace events
#endif // #define NEU_EVENT_H
| 97 |
5,169 | {
"name": "Bullitt",
"version": "0.0.1",
"summary": "An iOS framework for interacting with the vBulletin API.",
"description": "Bullitt is a simple framework that provides access to the vBulletin mobile API.\n\nSo far its feature set is limited:\n* It can load the list of forums.\n* It can load threads for a fo... | 390 |
348 | {"nom":"Foncegrive","circ":"4ème circonscription","dpt":"Côte-d'Or","inscrits":124,"abs":69,"votants":55,"blancs":3,"nuls":7,"exp":45,"res":[{"nuance":"LR","nom":"<NAME>","voix":23},{"nuance":"REM","nom":"Mme <NAME>","voix":22}]} | 96 |
577 | <reponame>ender8282/jython
'''
Checks that files are closed in three situations:
1. Garbage collection/finalization close
2. Regular close
3. Shutdown time, close out open PyFiles
'''
import os
import support
from java.io import File
from java.lang import System, Thread
def check(fn='test.txt'):
f = File(fn)
... | 333 |
3,246 | package org.datatransferproject.types.common;
public class PortabilityCommon {
/** The protocol used for authorization. */
public enum AuthProtocol {
UNKNOWN,
OAUTH_1,
OAUTH_2,
CUSTOM
}
}
| 79 |
326 | // <COMPONENT>: os-apis
// <FILE-TYPE>: component public header
/*!
* @defgroup OS_APIS_SIGNALS Signals
* @brief Contains signals related os apis
*/
#ifndef OS_APIS_SIGNALS_H
#define OS_APIS_SIGNALS_H
#include "os-apis.h"
#include "signals-core.h"
/*!
* Retrun the Max number of signals possible
*/
int OS_MaxSign... | 1,612 |
1,780 | /*
* Copyright 1999-2018 Alibaba Group Holding Ltd.
*
* 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 a... | 485 |
347 | <filename>backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetAllVmsFilteredAndSortedQuery.java<gh_stars>100-1000
package org.ovirt.engine.core.bll;
import java.util.List;
import org.ovirt.engine.core.bll.context.EngineContext;
import org.ovirt.engine.core.common.businessentities.VM;
import org.ovi... | 390 |
1,861 | <filename>cpp/spectrum/core/proc/ScalingScanlineProcessingBlock.cpp
// 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 "ScalingScanlineProcessingBlock.h"
#include <spectrum/core/S... | 4,928 |
584 | /*
Copyright 2015 Adobe
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
/**************************************************************************************************/
#ifndef STLAB_MODEL_HPP
#define... | 2,205 |
740 | #include "approx_path_distance.hpp"
namespace vg {
namespace algorithms {
using namespace std;
size_t min_approx_path_distance(const PathPositionHandleGraph* graph, const pos_t& pos1, const pos_t& pos2, uint64_t max_search) {
auto nearest1 = nearest_offsets_in_paths(graph, pos1, max_search);
auto nearest2 = ... | 440 |
575 | <filename>chrome/android/java/src/org/chromium/chrome/browser/contextmenu/RevampedContextMenuItemWithIconButtonViewBinder.java<gh_stars>100-1000
// Copyright 2019 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.
package o... | 964 |
14,668 | <reponame>zealoussnow/chromium
{
"name": "ActivityLog test for SW with messaging API",
"key": "<KEY>",
"version": "0.1",
"manifest_version": 3,
"description": "Tests activity log for long lived connection between tab and SW extension",
"permissions": ["activityLogPrivate"],
"background": {"service_worker"... | 111 |
8,633 | <reponame>nicolasiltis/prefect
from prefect.tasks.mysql.mysql import MySQLFetch, MySQLExecute
from prefect import Flow, task
EXAMPLE_TABLE = "user"
HOST = "localhost"
PORT = 3306
DB_NAME = "ext"
USER = "admin"
PASSWORD = "<PASSWORD>"
mysql_fetch = MySQLFetch(
host=HOST, port=PORT, db_name=DB_NAME, user=USER, pas... | 347 |
309 | <filename>src/Cxx/PolyData/ColorCellsWithRGB.cxx
#include <vtkSmartPointer.h>
#include <vtkPolyDataMapper.h>
#include <vtkActor.h>
#include <vtkRenderWindow.h>
#include <vtkRenderer.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkMath.h>
#include <vtkUnsignedCharArray.h>
#include <vtkCellData.h>
#include <vtkPo... | 864 |
3,442 | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* 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.or... | 361 |
2,816 | <filename>src/planner/binder/statement/bind_copy.cpp
#include "duckdb/catalog/catalog.hpp"
#include "duckdb/parser/statement/copy_statement.hpp"
#include "duckdb/planner/binder.hpp"
#include "duckdb/parser/statement/insert_statement.hpp"
#include "duckdb/planner/operator/logical_copy_to_file.hpp"
#include "duckdb/plann... | 1,823 |
430 | # pylint: disable=g-bad-file-header
# Copyright 2020 DeepMind Technologies Limited. 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/... | 9,542 |
553 | <filename>examples/features/src/main/java/com/github/kagkarlsson/examples/TrackingProgressRecurringTaskMain.java
package com.github.kagkarlsson.examples;
import com.github.kagkarlsson.examples.helpers.Example;
import com.github.kagkarlsson.scheduler.Scheduler;
import com.github.kagkarlsson.scheduler.task.helper.Custom... | 792 |
945 | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... | 1,905 |
14,668 | <reponame>zealoussnow/chromium
// Copyright 2019 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 "chromeos/network/network_activation_handler_impl.h"
#include "base/bind.h"
#include "base/callback_helpers.h"
#i... | 546 |
634 | /*
* Copyright 2013-2017 consulo.io
*
* 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 ... | 801 |
589 | package rocks.inspectit.server.jetty;
import javax.annotation.PostConstruct;
import javax.servlet.ServletContext;
import org.mortbay.jetty.servlet.Context;
import org.slf4j.Logger;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframe... | 831 |
12,278 | <filename>ReactNativeFrontend/ios/Pods/boost/boost/callable_traits/args.hpp
/*
@Copyright <NAME> 2015-2017
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_CLBL_TRTS_ARGS_HPP
#define BOOST_CLBL_TRTS_ARGS_HPP
#i... | 1,425 |
384 | /*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 2021, by the GROMACS development team, led by
* <NAME>, <NAME>, <NAME>, and <NAME>,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
*
* GROMACS is f... | 13,277 |
774 | <gh_stars>100-1000
"""
Tests for testuser command.
"""
from django.conf import settings
from django.core import management
from django.contrib.auth import get_user_model
def test_testuser():
user_model = get_user_model()
# the test user is already there, created by conftest.py
# change its email address,... | 234 |
535 | /*
* 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,280 |
868 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may n... | 2,715 |
1,083 | //===--- PILWitnessTable.h - Defines the PILWitnessTable class --*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | 3,902 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-8pr4-q5mj-2m5q",
"modified": "2022-05-05T00:29:42Z",
"published": "2022-05-05T00:29:42Z",
"aliases": [
"CVE-2013-4717"
],
"details": "Multiple SQL injection vulnerabilities in Open Ticket Request System (OTRS) Help Desk 3.0.x before 3.0.22, 3.1.x before 3.1.18,... | 472 |
1,144 | # -*- coding: utf-8 -*-
# Copyright 2010-2021, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this... | 2,137 |
521 | //////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright <NAME> 2014-2014. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/intrusive for ... | 2,545 |
389 | package com.mrcoder.sbredisannotations.controller;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annota... | 551 |
428 | package loon.live2d.framework;
import loon.BaseIO;
import loon.live2d.ALive2DModel;
import loon.live2d.physics.PhysicsHair;
import loon.live2d.util.Json;
import loon.live2d.util.UtSystem;
import loon.live2d.util.Json.Value;
import loon.utils.TArray;
public class L2DPhysics {
private TArray<PhysicsHair> physicsList;
... | 1,149 |
440 | import os
import subprocess
# hardcoded paths
HUNTER_DIR='..'
PACKAGES_DIR=os.path.join(HUNTER_DIR, 'cmake/projects')
DOCS_PKG_DIR=os.path.join(HUNTER_DIR, 'docs', 'packages', 'pkg')
# get all wiki entries
docs_filenames = [x for x in os.listdir(DOCS_PKG_DIR) if x.endswith('.rst')]
docs_entries = [x[:-4] for x in doc... | 888 |
1,056 | /*
* 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 ... | 8,816 |
1,444 | <filename>Mage.Sets/src/mage/cards/c/CryptRats.java<gh_stars>1000+
package mage.cards.c;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.VariableCost;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage... | 713 |
5,703 | <gh_stars>1000+
/**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.... | 433 |
16,461 | package abi42_0_0.org.unimodules.adapters.react.views;
import android.view.View;
import abi42_0_0.com.facebook.react.bridge.ReadableMap;
import abi42_0_0.com.facebook.react.uimanager.ThemedReactContext;
import abi42_0_0.com.facebook.react.uimanager.SimpleViewManager;
import abi42_0_0.com.facebook.react.uimanager.anno... | 637 |
448 | //
// IAnalyticsRender.h
// Analytics
//
// Created by huang_jiafa on 2018/11/07.
// Copyright (c) 2018 Aliyun. All rights reserved.
//
#ifndef IANALYTICS_RENDER_H
#define IANALYTICS_RENDER_H
namespace Cicada {
class IAnalyticRender {
public:
virtual ~IAnalyticRender() = default;
virtual ... | 250 |
971 | #include "execution/sql/value_util.h"
#include "common/allocator.h"
#include "execution/sql/value.h"
namespace noisepage::execution::sql {
std::pair<StringVal, std::unique_ptr<byte[]>> ValueUtil::CreateStringVal(
const common::ManagedPointer<const char> string, const uint32_t length) {
if (length <= StringVal:... | 423 |
848 | <filename>tensorflow/python/ops/ragged/ragged_to_tensor_op_test.py
# Copyright 2018 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:/... | 10,166 |
763 | <reponame>zabrewer/batfish
package org.batfish.representation.juniper;
import static org.junit.Assert.assertEquals;
import org.batfish.common.Warnings;
import org.batfish.datamodel.EmptyIpSpace;
import org.batfish.datamodel.HeaderSpace;
import org.batfish.datamodel.IpSpaceReference;
import org.batfish.datamodel.IpWil... | 595 |
752 | from elegantrl.train.run_tutorial import *
from elegantrl.train.config import Arguments
from elegantrl.agents.AgentSAC import AgentModSAC
# demo for MuJoCo environment, using 1 GPU
args = Arguments(env=build_env('AntBulletEnv-v0', if_print=True), agent=AgentModSAC())
GPU_ID = 0
args.learner_gpus = (GPU_ID, )
args.age... | 270 |
4,218 | <reponame>Verchasve/conductor_test
/*
* Copyright 2020 Netflix, Inc.
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unles... | 1,339 |
2,482 | package com.argusapm.android.debug.storage;
import android.os.Build;
import com.argusapm.android.Env;
import com.argusapm.android.core.Manager;
import com.argusapm.android.debug.config.DebugConfig;
import com.argusapm.android.utils.LogX;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.Fi... | 4,805 |
2,296 | <gh_stars>1000+
/*
* ir_Sony.hpp
*
* Contains functions for receiving and sending SIRCS/Sony IR Protocol in "raw" and standard format with 5 bit address 7 bit command
*
* This file is part of Arduino-IRremote https://github.com/Arduino-IRremote/Arduino-IRremote.
*
**********************************************... | 3,728 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-6r8p-cw9m-43r8",
"modified": "2022-05-01T02:20:58Z",
"published": "2022-05-01T02:20:58Z",
"aliases": [
"CVE-2005-3764"
],
"details": "The image gallery (imagegallery) component in Exponent CMS 0.96.3 and later versions does not properly check the MIME type of u... | 387 |
461 | <filename>系统综合能力—虚拟机/ics2019/nexus-am/tests/cputest/tests/bubble-sort.c<gh_stars>100-1000
#include "trap.h"
#define N 20
int a[N] = {2, 12, 14, 6, 13, 15, 16, 10, 0, 18, 11, 19, 9, 1, 7, 5, 4, 3, 8, 17};
void bubble_sort() {
int i, j, t;
for(j = 0; j < N; j ++) {
for(i = 0; i < N - 1 - j; i ++) {
if(a[i] > a[... | 374 |
459 | <reponame>jose-villegas/VCT_Engine
/*
Copyright 2005-2015 Intel Corporation. All Rights Reserved.
This file is part of Threading Building Blocks. Threading Building Blocks is free software;
you can redistribute it and/or modify it under the terms of the GNU General Public License
version 2 as publis... | 6,305 |
6,098 | import sys
sys.path.insert(1,"../../../")
import h2o
from tests import pyunit_utils
from h2o.estimators.glm import H2OGeneralizedLinearEstimator as glm
# Given alpha array and using default lambda, build two cross-validation models, one with validation dataset
# and one without for binomial. Since they use the metric... | 861 |
345 | import tensorflow as tf
from agent.forward import Forward
from config import *
class Access(object):
def __init__(self, state_size, action_size):
with tf.variable_scope('Access'):
# placeholder
self.inputs = tf.placeholder(tf.float32, [None] + state_size, "states")
self... | 692 |
1,811 | <filename>packages/cucumber-runner/schema/cucumber-runner-options.json
{
"$schema": "http://json-schema.org/draft-07/schema",
"title": "CucumberRunnerOptions",
"type": "object",
"additionalProperties": false,
"properties": {
"cucumber": {
"description": "Configuration for @stryker-mutator/cucumber-r... | 935 |
837 | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2015, Rice University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions... | 2,300 |
314 | #pragma once
#include <Arduino.h>
#include <Service.h>
#ifdef __USENSOR__
#include <HCSR04.h>
#else
#include <Rotary.h>
#endif
typedef enum {
CCW,
CW,
OFF
} MotorState;
typedef enum {
UNCALIBRATED, // nothing calibrated
SEMICALIBRATED, // bottom calibrated
CALIBRATED // bottom-top cal... | 910 |
5,813 | <reponame>RomaKoks/druid<filename>processing/src/main/java/org/apache/druid/segment/virtual/ExpressionPlanner.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
* r... | 3,332 |
1,318 | <filename>tensorflow_model_optimization/python/core/internal/tensor_encoding/testing/__init__.py
# Copyright 2019, 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 o... | 728 |
1,968 | #include "Rtt_AndroidBuildDialog.h"
#include "Rtt_LuaContext.h"
#include "Rtt_LuaFile.h"
#include "Rtt_MPlatform.h"
#include "Rtt_PlatformAppPackager.h"
#include "Rtt_PlatformPlayer.h"
#include "Rtt_PlatformSimulator.h"
#include "Rtt_RenderingStream.h"
#include "Rtt_Runtime.h"
#include "Rtt_SimulatorAnalytics.h"
#inclu... | 8,023 |
571 | <gh_stars>100-1000
/**
* @file ellipse.cpp
* @brief mex interface for cv::ellipse
* @ingroup imgproc
* @author <NAME>
* @date 2012
*/
#include "mexopencv.hpp"
#include "opencv2/imgproc.hpp"
using namespace std;
using namespace cv;
/**
* Main entry called from Matlab
* @param nlhs number of left-hand-side argum... | 1,541 |
2,141 | <reponame>MarcoJHB/ploomber
import os
from pathlib import Path
import pytest
from ploomber.util import default
from ploomber.exceptions import DAGSpecInvalidError
def create_package_with_name(name, base='.'):
Path('setup.py').touch()
parent = Path(base, 'src', name)
parent.mkdir(parents=True)
pkg_lo... | 6,389 |
669 | <reponame>Dig-Doug/runtime<gh_stars>100-1000
/*
* Copyright 2020 The TensorFlow Runtime Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/... | 780 |
45,293 | <gh_stars>1000+
package test.Boo.SubBoo;
public class C {
public interface Nested {}
}
| 34 |
8,966 | <reponame>tkmikan/pwntools
#ifndef _STRING_H
#define _STRING_H
#include <sys/cdefs.h>
#include <sys/types.h>
__BEGIN_DECLS
__readmem__(2) __writemem__(1)
char *strcpy(char* __restrict__ dest, const char* __restrict__ src) __THROW __nonnull((1,2));
__readmemsz__(2,4) __writememsz__(1,4)
void *memccpy(void* __restric... | 2,780 |
14,668 | // 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.
#ifndef COMPONENTS_REPORTING_STORAGE_STORAGE_QUEUE_H_
#define COMPONENTS_REPORTING_STORAGE_STORAGE_QUEUE_H_
#include <list>
#include <map>
#include <memo... | 5,367 |
450 | package uk.co.adventuregamestudio.runtime;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;
public class ReadOnlyINI {
private Properties cfg;
private String dir = "/";
public ReadOnlyINI(String directory) {
cfg = new Pr... | 772 |
440 | <filename>tools/GUIEditor/CGUIDummyEditorStub.h<gh_stars>100-1000
/*
This is a custom editor for stubbing problematic elements out,
for example elements which include modal screens
*/
#ifndef __C_GUI_DUMMY_EDITOR_STUB_H_INCLUDED__
#define __C_GUI_DUMMY_EDITOR_STUB_H_INCLUDED__
#include "IGUIElement.h"
#in... | 669 |
1,346 | package com.ctrip.platform.dal.dao.helper;
import org.junit.Test;
import java.sql.SQLException;
/**
* @author c7ch23en
*/
public class DalRowMapperExtractorTest {
@Test
public void testOOMForLargeCount() throws SQLException {
DalRowMapperExtractor<Integer> extractor = new DalRowMapperExtractor<>(n... | 162 |
441 | <reponame>vinhig/rbfx<filename>Source/ThirdParty/SLikeNet/Source/src/PS4Includes.cpp
/*
* This file was taken from RakNet 4.082 without any modifications.
* Please see licenses/RakNet license.txt for the underlying license and related copyright.
*/
| 101 |
5,169 | {
"name": "Sniper",
"version": "0.1.1",
"summary": "Sniper help you to manage localization strings in Google Spread Sheet",
"description": "Sniper provide a easy way to sync your location strings in Google Spread Sheet. You no longer need to build your app again because of fixing a typo. It also included versio... | 306 |
370 | <reponame>celestehorgan/k8s.io<filename>audit/projects/k8s-infra-e2e-boskos-021/service-accounts/1073676230139-compute@developer.gserviceaccount.com/description.json
{
"displayName": "Compute Engine default service account",
"email": "<EMAIL>",
"name": "projects/k8s-infra-e2e-boskos-021/serviceAccounts/<EMAIL>",
... | 188 |
461 | <gh_stars>100-1000
/*
* Academic License - for use in teaching, academic research, and meeting
* course requirements at degree granting institutions only. Not for
* government, commercial, or other organizational use.
*
* updateEKFQuatAtt2.h
*
* Code generation for function 'updateEKFQuatAtt2'
*
*/
#ifndef U... | 317 |
2,041 | <reponame>altundasbatu/SublimeTextSettings
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sublime, sublime_plugin
import os
import re
import webbrowser
import itertools
import threading
from datetime import datetime, tzinfo, timedelta
import time
platform = sublime.platform()
ST3 = int(sublime.version()) >= 3000
i... | 25,296 |
879 | package com.bookstore.repository;
import com.bookstore.entity.Author;
import com.bookstore.entity.Book;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springf... | 392 |
796 | <reponame>harmonyos-mirror/OpenArkCompiler-test
#!/usr/bin/python3
# -*- coding:utf-8 -*-
#
# Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved.
#
# OpenArkCompiler is licensed under the Mulan PSL v1.
# You can use this software according to the terms and conditions of the Mulan PSL v1.
# You may obt... | 2,685 |
12,940 | {
"$schema": "https://aka.ms/azure-quickstart-templates-metadata-schema#",
"type": "QuickStart",
"itemDisplayName": "Create a Service Bus Topic with Subscription and SQL Filter",
"description": "This template creates a Service Bus Namespace and Topic with a Subscription using a SQL Filter expression to recieve ... | 154 |
353 | CSEXPORT IPluginManager& CSCONV Export_IPluginManager_Get()
{
return IPluginManager::Get();
}
CSEXPORT void CSCONV Export_IPluginManager_RefreshPluginsList(IPluginManager* instance)
{
instance->RefreshPluginsList();
}
CSEXPORT csbool CSCONV Export_IPluginManager_LoadModulesForEnabledPlugins(IPluginManager* instance... | 1,054 |
302 | <reponame>vadkasevas/BAS
#ifndef WRITEFILE_H
#define WRITEFILE_H
#include <string>
void WriteStringToFile(const std::string& filename,const std::string& data);
#endif // WRITEFILE_H
| 68 |
5,454 | <filename>source/.eslintrc.json
{
"extends": ["../.eslintrc.json", "plugin:node/recommended"],
"plugins": ["node"],
"parserOptions": {
"ecmaVersion": 2020,
"parser": "babel-eslint",
"sourceType": "module"
},
"rules": {
"no-control-regex": "off", // Control characters are used to split git mess... | 142 |
617 | /**
* Copyright 2011-2013 FoundationDB, LLC
*
* 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 la... | 1,065 |
1,256 | /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/. */
#ifndef nsUTF8Prober_h__
#define nsU... | 386 |
302 | from builtins import map
import re
def split_name(name):
dot = name.rfind('.')
if dot >= 0:
return name[:dot], name[dot + 1:]
else:
return '', name
def get_package(name):
return split_name(name)[0]
_escape_re = re.compile('\W')
def escape(name):
return _escape_re.sub('_', name)
_id_re = re.compile(r'[^a-z... | 302 |
397 | <gh_stars>100-1000
/**
* Copyright (c) <NAME> <Centrum Wiskunde & Informatica> and Contributors.
* All rights reserved.
*
* This file is licensed under the BSD 2-Clause License, which accompanies this project
* and is available under https://opensource.org/licenses/BSD-2-Clause.
*/
package io.usethesource.capsule... | 297 |
3,702 | <reponame>mondeique/metatron-discovery
/*
* 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 agr... | 412 |
377 | /*******************************************************************************
* * Copyright 2013 Impetus Infotech.
* *
* * 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
* *
*... | 2,472 |
4,457 | {
"main": "dist/trpc-server-adapters-express.cjs.js",
"module": "dist/trpc-server-adapters-express.esm.js"
}
| 49 |
1,178 | <reponame>leozz37/makani
#!/usr/bin/python
# Copyright 2020 Makani Technologies LLC
#
# 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
#
# Unl... | 9,536 |
2,461 | /*
* 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... | 1,412 |
777 | <filename>tools/cygprofile/cygprofile_utils_unittest.py
#!/usr/bin/python
# 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.
import unittest
import cygprofile_utils
class TestCygprofileUtils(unittest.TestC... | 251 |
1,025 | <reponame>jeongjoonyoo/CodeXL
//==================================================================================
// Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved.
//
/// \author AMD Developer Tools Team
/// \file gwApplicationCommands.h
///
//==================================================... | 902 |
348 | <filename>docs/data/t2/076/76501.json
{"nom":"Pierrefiques","dpt":"Seine-Maritime","inscrits":108,"abs":22,"votants":86,"blancs":13,"nuls":4,"exp":69,"res":[{"panneau":"1","voix":44},{"panneau":"2","voix":25}]} | 89 |
652 | #include "Python.h"
#include "Python-ast.h"
#include "node.h"
#include "token.h"
#include "graminit.h"
#include "code.h"
#include "symtable.h"
#define UNDEFINED_FUTURE_FEATURE "future feature %.100s is not defined"
#define ERR_LATE_FUTURE \
"from __future__ imports must occur at the beginning of the file"
static int
... | 2,156 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.