max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,131 | # 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 not u... | 6,257 |
2,577 | {
"single_source" : {
"kind": "url_extract",
"url": "https://github.com/etcd-io/etcd/releases/download/v3.4.9/etcd-v3.4.9-linux-amd64.tar.gz",
"sha1": "3ecc9563bb3f5043ad763070b026ab1375d99175"
},
"username": "dcos_etcd",
"state_directory": true
}
| 140 |
674 | <gh_stars>100-1000
/*
* Simd Library (http://ermig1979.github.io/Simd).
*
* Copyright (c) 2011-2019 <NAME>,
* 2019-2019 <NAME>.
*
* 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... | 580 |
922 | <reponame>vootan/hibernate-validator
/*
* Hibernate Validator, declare and validate application constraints
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
*/
package org.hibernate.validator.test.internal.engine.methodvalida... | 527 |
365 |
// DO NOT EDIT !
// This file is generated using the MantaFlow preprocessor (prep generate).
/******************************************************************************
*
* MantaFlow fluid solver framework
* Copyright 2011 <NAME>, <NAME>
*
* This program is free software, distributed under the terms of the
... | 1,157 |
9,491 | <reponame>divinity76/hhvm
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.face... | 6,443 |
3,665 | //
// ViewController.h
// TestsProject
//
// Created by <NAME> on 15.12.14.
// Copyright (c) 2014 <NAME> - www.g8production.com.
// All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
| 88 |
861 | <reponame>scotthufeng/spring-cloud-gray<filename>spring-cloud-gray-server/src/main/java/cn/springcloud/gray/server/configuration/ClientRemoteConfiguration.java
package cn.springcloud.gray.server.configuration;
import cn.springcloud.gray.server.discovery.ServiceDiscovery;
import cn.springcloud.gray.server.module.client... | 308 |
852 | <filename>L1Trigger/Configuration/python/L1DummyConfig_cff.py<gh_stars>100-1000
import FWCore.ParameterSet.Config as cms
# for backwards compatibility
from L1Trigger.Configuration.L1Trigger_FakeConditions_cff import *
| 68 |
335 | {
"word": "Celibate",
"definitions": [
"A person who abstains from marriage and sexual relations."
],
"parts-of-speech": "Noun"
} | 65 |
317 | <reponame>Guoanshisb/smack
//
// This file is distributed under the MIT License. See LICENSE for details.
//
//
// This pass normalizes loop structures to allow easier generation of Boogie
// code when a loop edge comes from a branch. Specifically, a forwarding block
// is added between a branching block and the loop ... | 1,678 |
372 | /* Editor Settings: expandtabs and use 4 spaces for indentation
* ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *
* -*- mode: c, c-basic-offset: 4 -*- */
/*
* Copyright © BeyondTrust Software 2004 - 2019
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you m... | 11,493 |
305 | <reponame>gaoxiaoyang/webrtc
/*
* Copyright (c) 2019 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the... | 493 |
852 | <gh_stars>100-1000
#include "Geometry/Records/interface/HGCalGeometryRecord.h"
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"
EVENTSETUP_RECORD_REG(HGCalGeometryRecord);
| 74 |
488 | (http://lod.isi.edu/cs548/person/Ambite, {"@type":"http://lod.isi.edu/ontology/syllabus/Person","foaf:homepage":{"@type":"http://xmlns.com/foaf/0.1/Document","@id":"http://www.isi.edu/~ambite"},"foaf:name":"<NAME>","foaf:lastName":"Ambite","@id":"http://lod.isi.edu/cs548/person/Ambite","foaf:depiction":{"@type":"http:/... | 1,831 |
1,433 | <reponame>Grayray75/fabric<gh_stars>1000+
{
"schemaVersion": 1,
"id": "fabric-networking-api-v1-testmod",
"name": "Fabric Networking API (v1) Test Mod",
"version": "1.0.0",
"environment": "*",
"license": "Apache-2.0",
"depends": {
"fabric-networking-api-v1": "*"
},
"entrypoints": {
"main": [
... | 420 |
325 | <gh_stars>100-1000
#!/usr/bin/env python
import subprocess
import glob
import argparse
import re
import StringIO
def find_symbols_in_libraries():
"""
"""
libraries = glob.glob("ESP8266_RTOS_SDK/lib/*.a")
command = ["xtensa-lx106-elf-readelf"]
command += ["-s"]
command += ["--wide"]
... | 1,124 |
573 | <reponame>Esigodini/dynarmic<gh_stars>100-1000
/* This file is part of the dynarmic project.
* Copyright (c) 2016 MerryMage
* SPDX-License-Identifier: 0BSD
*/
#pragma once
#include <cstddef>
#include <cstdint>
using u8 = std::uint8_t;
using u16 = std::uint16_t;
using u32 = std::uint32_t;
using u64 = std::uint64_t... | 287 |
335 | <gh_stars>100-1000
{
"name": "jquery.growl",
"version": "1.3.5",
"description": "Growl is a jQuery plugin designed to provide informative messages in the browser.",
"main": "./javascripts/jquery.growl.js",
"repository": "git+https://github.com/ksylvest/jquery-growl.git",
"author": "<NAME>",
"license": "MI... | 234 |
2,920 | <filename>WhateverGreen/kern_igfx_lspcon.cpp
//
// kern_igfx_lspcon.cpp
// WhateverGreen
//
// Created by FireWolf on 9/21/20.
// Copyright © 2020 vit9696. All rights reserved.
//
#include "kern_igfx_lspcon.hpp"
#include "kern_igfx.hpp"
// MARK: - LSPCON Driver Foundation
LSPCON *LSPCON::create(void *controller,... | 4,980 |
5,766 | <gh_stars>1000+
//
// ZipCommon.cpp
//
// Library: Zip
// Package: Zip
// Module: ZipCommon
//
// Copyright (c) 2007, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Zip/ZipCommon.h"
#include "Poco/Path.h"
namespace Poco {
namespace Zip {... | 442 |
460 | #include "../../../src/scripttools/debugging/qscriptdebuggerstackwidget_p.h"
| 27 |
1,695 | <filename>testing/trino-product-tests-launcher/src/test/java/io/trino/tests/product/launcher/local/TestManuallyJdbcOauth2.java
/*
* 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
*
* ht... | 1,169 |
14,668 | <gh_stars>1000+
// 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 "chrome/browser/optimization_guide/prediction/prediction_model_download_manager.h"
#include "base/bind.h"
#include "base/contain... | 6,323 |
678 | <gh_stars>100-1000
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/YouTube.framework/YouTube
*/
#import <YouTube/XXUnknownSuperclass.h>
@class NSTimer;
@interface YTNetworkController : XXUnknownSuperclass {
BOOL _registered; // 4 = 0x4
BOOL _isCellular; // 5 =... | 366 |
1,909 | <reponame>grmkris/XChange<filename>xchange-coindeal/src/main/java/org/knowm/xchange/coindeal/service/CoindealMarketDataServiceRaw.java
package org.knowm.xchange.coindeal.service;
import java.io.IOException;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.client.ExchangeRestProxyBuilder;
import org.knowm.xc... | 450 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-mvfx-6wj4-6f8r",
"modified": "2022-05-01T18:32:42Z",
"published": "2022-05-01T18:32:42Z",
"aliases": [
"CVE-2007-5375"
],
"details": "Interpretation conflict in the Sun Java Virtual Machine (JVM) allows user-assi... | 447 |
17,037 | # This module is automatically generated by autogen.sh. DO NOT EDIT.
from . import _Elastic
class _Saas(_Elastic):
_type = "saas"
_icon_dir = "resources/elastic/saas"
class Cloud(_Saas):
_icon = "cloud.png"
class Elastic(_Saas):
_icon = "elastic.png"
# Aliases
| 110 |
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 ... | 612 |
582 | /**
* This program and the accompanying materials
* are made available under the terms of the License
* which accompanies this distribution in the file LICENSE.txt
*/
package com.archimatetool.editor.propertysections;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EObject;
... | 6,784 |
593 | /*=============================================================================
Copyright (c) 2012 <NAME>
extensions.h
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)
======================================... | 825 |
679 | <filename>main/sw/source/core/doc/lineinfo.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
* regarding copyright... | 1,931 |
364 | // File doc/quickbook/oglplus/quickref/enums/conditional_render_mode.hpp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/conditional_render_mode.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2019 <NAME>.
// Distributed under th... | 412 |
393 | package pl.otros.logview.importer.log4jxml;
import static org.testng.Assert.assertEquals;
import java.util.Vector;
import org.apache.log4j.spi.LoggingEvent;
import org.testng.annotations.Test;
public class XMLDecoderTest {
private static final String EVENT_START = "<log4j:event logger=\"package.Class\" timestamp=... | 573 |
5,169 | <gh_stars>1000+
{
"name": "SAProgressHUB",
"version": "1.0.0",
"summary": "Nice progress hub support gif animation and Lottie.",
"description": "Highly costomize progress hub support gif animation and Lottie.",
"homepage": "https://github.com/bbkaf/SAProgressHUB",
"license": "MIT",
"authors": {
"Hank"... | 261 |
669 | // 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/LICENSE-2.0
//
// Unless required by applicable ... | 539 |
462 | # coding=utf-8
##
# Copyright (c) 2005-2017 Apple Inc. 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 the rights
# to... | 2,306 |
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.
#include "chrome/browser/ui/webui/commander/commander_ui.h"
#include <memory>
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/w... | 504 |
5,964 | // Copyright 2014 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.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#include "config.h"
#include "V8Attr.h"
#include "bindings/core/v8... | 5,373 |
1,433 | <reponame>TheSuperShoe/IoT-Experiments
//
// Copyright (c) 2016, Microsoft Corporation
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE S... | 999 |
1,167 | <filename>ruby/ext/-test-/cxxanyargs/failurem1.cpp
#include <ruby/ruby.h>
static VALUE
func_argm1(int argc, VALUE *argv, VALUE self)
{
return argc > 0 ? argv[0] : Qnil;
}
extern "C" void
Init_failure(void)
{
rb_define_method(rb_cObject, "argm1", func_argm1, 0);
}
| 130 |
743 | import os
import re
import subprocess
from compilers.Compiler import Compiler
from config.Config import Config
class LibCompiler(Compiler):
def __init__(self, args=None, aargs=None, arch="x64"):
super().__init__(None, args=args, aargs=aargs, sep=":", arch=arch)
def default_args(self, outfile):
... | 208 |
317 | <reponame>abir1999/xiaoPi
#ifndef UTILITY_NET_H_
#define UTILITY_NET_H_
#include <vector>
#include <iostream>
#include <string>
namespace utility {
class Net {
public:
static std::string GetIpAddr(std::string interface);
static std::string GetNetmask(std::string interface);
static std::string GetHwAddr(std::s... | 143 |
435 | package datawave.ingest.config;
import datawave.ingest.data.RawRecordContainer;
import datawave.ingest.data.Type;
import datawave.ingest.data.config.MarkingsHelper;
import datawave.ingest.data.config.MaskedFieldHelper;
import datawave.ingest.metadata.EventMetadata;
import datawave.ingest.metadata.RawRecordMetadata;
i... | 479 |
852 | #include <stdlib.h>
#include <iostream>
#include <fstream>
#include <vector>
#include <map>
#include "CalibCalorimetry/HcalAlgos/interface/HcalDbASCIIIO.h"
#include "CondTools/Hcal/interface/HcalDbXml.h"
#include "CondTools/Hcal/interface/HcalDbTool.h"
#include "CondFormats/HcalObjects/interface/HcalPedestals.h"
#incl... | 2,183 |
6,098 | <filename>h2o-py/tests/testdir_misc/pyunit_backend_errors.py
import sys
sys.path.insert(1,"../../")
import h2o
from h2o.estimators import H2OGradientBoostingEstimator
from h2o.exceptions import H2OResponseError
from h2o.schemas import H2OErrorV3, H2OModelBuilderErrorV3
from tests import pyunit_utils as pu
def test_b... | 1,665 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-gf4r-624h-wwhq",
"modified": "2022-05-02T06:11:14Z",
"published": "2022-05-02T06:11:14Z",
"aliases": [
"CVE-2010-0250"
],
"details": "Heap-based buffer overflow in DirectShow in Microsoft DirectX, as used in the ... | 863 |
348 | {"nom":"Strazeele","circ":"15ème circonscription","dpt":"Nord","inscrits":651,"abs":302,"votants":349,"blancs":19,"nuls":11,"exp":319,"res":[{"nuance":"REM","nom":"<NAME>","voix":180},{"nuance":"FN","nom":"<NAME>","voix":139}]} | 88 |
2,027 | import re
import pytest
from buildtrigger.triggerutil import matches_ref
@pytest.mark.parametrize(
"ref, filt, matches",
[
("ref/heads/master", ".+", True),
("ref/heads/master", "heads/.+", True),
("ref/heads/master", "heads/master", True),
("ref/heads/slash/branch", "heads/s... | 471 |
473 | <filename>front-end/qemu-2.3/hw/misc/arm_sysctl.c<gh_stars>100-1000
/*
* Status and system control registers for ARM RealView/Versatile boards.
*
* Copyright (c) 2006-2007 CodeSourcery.
* Written by <NAME>
*
* This code is licensed under the GPL.
*/
#include "hw/hw.h"
#include "qemu/timer.h"
#include "qemu/bito... | 10,518 |
12,366 | // Copyright 2017 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 required by applicable law or agreed to in ... | 769 |
23,901 | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 1,168 |
375 | <filename>graph-property-worker/plugins/java-code/src/main/java/io/lumify/javaCodeIngest/ClassFileGraphPropertyWorker.java
package io.lumify.javaCodeIngest;
import io.lumify.core.ingest.graphProperty.GraphPropertyWorkData;
import io.lumify.core.ingest.graphProperty.GraphPropertyWorker;
import io.lumify.core.model.prop... | 4,140 |
416 | <filename>src/main/java/com/tencentcloudapi/ssa/v20180608/models/SaDivulgeDataQueryPubRequest.java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... | 4,259 |
17,702 | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
// ASGDHelper.cpp : Implements ASGDHelper interface. The implementation is based on Multiverso.
//
#define _CRT_SECURE_NO_WARNINGS // "secure" CRT not availabl... | 12,375 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-3p2q-4jpq-m2x2",
"modified": "2022-04-30T18:15:29Z",
"published": "2022-04-30T18:15:29Z",
"aliases": [
"CVE-2001-0135"
],
"details": "The default installation of Ultraboard 2000 2.11 creates the Skins, Database, and Backups directories with world-writeable perm... | 397 |
1,682 | /*
Copyright (c) 2012 LinkedIn Corp.
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... | 3,460 |
1,615 | //
// MLNUIEntityExporterMacro.h
// MLNUICore
//
// Created by MoMo on 2019/8/1.
//
#ifndef MLNUIEntityExporterMacro_h
#define MLNUIEntityExporterMacro_h
#import "MLNUIExporterMacro.h"
#import "NSObject+MLNUICore.h"
#import "MLNUIWeakAssociatedObject.h"
#import <objc/runtime.h>
/**
标记开始实体UserData类导出
@param CL... | 3,448 |
540 | import sys
import warnings
import numpy as np
from progressbar import progressbar
from lib.config import Config
from utils.evaluator import Evaluator
warnings.simplefilter('ignore', np.RankWarning)
def polyfit_upperbound(dataset, degree):
evaluator = Evaluator(dataset, '/tmp', degree)
print('Predicting wit... | 696 |
3,372 | <filename>aws-java-sdk-codecommit/src/main/java/com/amazonaws/services/codecommit/model/CreatePullRequestRequest.java
/*
* Copyright 2016-2021 Amazon.com, 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 w... | 5,339 |
5,169 | <reponame>Gantios/Specs<filename>Specs/3/b/f/Cheats/0.0.1/Cheats.podspec.json
{
"name": "Cheats",
"version": "0.0.1",
"swift_version": "4.2",
"summary": "Retro cheat codes for progressive iOS apps.",
"description": "Allows developers to implement retro style cheat codes like the Konami code consisting of swip... | 299 |
1,840 | <filename>cli/admin/src/test/java/io/pravega/cli/admin/password/PasswordFileEntryParserTest.java
/**
* Copyright Pravega 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
*
* ... | 549 |
3,469 | <reponame>joinsion/google-api-python-client
#!/usr/bin/env python
#
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache... | 1,136 |
3,442 | <reponame>wcicola/jitsi<gh_stars>1000+
/*
* 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 Li... | 3,468 |
14,668 | // Copyright 2021 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 "third_party/blink/renderer/modules/handwriting/handwriting_drawing.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise.h"
#... | 1,469 |
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 ... | 597 |
333 | package com.alipay.api.response;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.commerce.data.custommetric.sync response.
*
* @author auto create
* @since 1.0, 2019-03-22 18:10:00
*/
public class AlipayCommerceDataCustommetricSyncResponse extends AlipayResponse {
private static f... | 152 |
471 | package com.dtflys.forest.springboot.test.override;
import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.DecompressGzip;
import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Header;
import com.dtflys.forest.annotation.Query;
import com.dtflys.forest.http.ForestRe... | 169 |
5,169 | <gh_stars>1000+
{
"name": "YMChannelSwitching",
"version": "1.0.2",
"summary": "Two lines of code get complex channel switching function",
"homepage": "https://github.com/iosdeveloperSVIP/YMChannelSwitching",
"license": "MIT",
"authors": {
"zhaoyimin": "<EMAIL>"
},
"platforms": {
"ios": "8.0"
... | 213 |
367 | <filename>app/src/main/java/com/franktan/memoryleakexamples/vialongrunningtask/LeakActivityToHandlerActivity.java
package com.franktan.memoryleakexamples.vialongrunningtask;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.u... | 421 |
463 | //
// strings.cc
//
// DANGER - This is machine generated code
//
#include "strings.h"
const char* rv_ireg_name_sym[] = {
"zero",
"ra",
"sp",
"gp",
"tp",
"t0",
"t1",
"t2",
"s0",
"s1",
"a0",
"a1",
"a2",
"a3",
"a4",
"a5",
"a6",
"a7",
"s2",
"s3",
"s4",
"s5",
"s6",
"s7",
"s8",
"s9",
"s10",
"... | 24,848 |
2,151 | <filename>base/memory/shared_memory.h
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_MEMORY_SHARED_MEMORY_H_
#define BASE_MEMORY_SHARED_MEMORY_H_
#include <stddef.h>
#include <string... | 2,796 |
3,964 | from stream_framework.exceptions import SerializationException
def check_reserved(value, reserved_characters):
for reserved in reserved_characters:
if reserved in value:
raise SerializationException(
'encountered reserved character %s in %s' % (reserved, value))
| 87 |
533 | {
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentParameters.json#",
"contentVersion": "1.16.08.15",
"parameters": {
"vmName": {
"value": "MySqlServerVM"
},
"vmTimeZone": {
"value": "Pacific Standard Time"
},
"vmSize": {
"value": "Standard_A1"... | 154 |
2,661 | // Copyright 2017 Google Inc.
// Copyright 2020 The Open GEE Contributors
//
// 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
//
// Unles... | 502 |
656 | <filename>examples/examples.py
import osxphotos
import os.path
def main():
db = osxphotos.utils.get_system_library_path()
if db is None:
# Note: get_system_library_path only works on MacOS 10.15+
db = os.path.expanduser("~/Pictures/Photos Library.photoslibrary")
photosdb = osxphotos.Photo... | 649 |
607 | <gh_stars>100-1000
/*
* This file is a part of the open source stm32plus library.
* Copyright (c) 2011,2012,2013,2014 <NAME> <www.andybrown.me.uk>
* Please see website for licensing terms.
*/
#pragma once
namespace stm32plus {
namespace net {
/**
* MAC address structure. This must be packed because ... | 1,595 |
2,077 | /**
Copyright (c) 2015-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.
*/
#ifndef __acdriver_Compile_Convert_h
#define __acdriver_Compile_Convert_h
#include <xcassets/Insets.h>
#include <xc... | 708 |
992 | <reponame>digitalbuddha/androidx
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... | 2,730 |
3,266 | <reponame>DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials
// $ANTLR 3.0 SymbolTable.g 2007-07-25 20:12:44
#import <Cocoa/Cocoa.h>
#import <ANTLR/ANTLR.h>
#pragma mark Tokens
#define SymbolTableParser_INT 5
#define SymbolTableParser_WS 6
#define SymbolTableParser_EOF -1
#define Symbol... | 294 |
2,141 | <reponame>abhishak3/ploomber
"""
For inspiration:
import parso
from parso.utils import parse_version_string
from parso.python.tokenize import tokenize
v = parse_version_string('3')
list(tokenize('[1,2,3]', v))
mod = parso.parse('x = 1')
mod.children
"""
import pytest
from ploomber.static_analysis.parser.rlexer imp... | 784 |
4,036 | import peewee
import playhouse.pool
# This is just one example of one of the support databases
# see https://docs.peewee-orm.com/en/latest/peewee/database.html
db = peewee.MySQLDatabase()
conn = db.connection()
cursor = conn.cursor()
cursor.execute("sql") # $ getSql="sql"
cursor = db.cursor()
cursor.execute("sql") ... | 180 |
348 | <gh_stars>100-1000
{"nom":"Gruchet-le-Valasse","circ":"9ème circonscription","dpt":"Seine-Maritime","inscrits":2142,"abs":1189,"votants":953,"blancs":85,"nuls":28,"exp":840,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":508},{"nuance":"FN","nom":"<NAME>","voix":332}]} | 109 |
402 | from sofi.ui import Jumbotron
def test_basic():
assert(str(Jumbotron()) == "<div class=\"jumbotron\"></div>")
def test_text():
assert(str(Jumbotron("text")) == "<div class=\"jumbotron\">text</div>")
def test_custom_class_ident_style_and_attrs():
assert(str(Jumbotron("text", cl='abclass', ident='123', sty... | 198 |
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 ... | 1,275 |
522 | #include <stdio.h>
int main(void)
{
printf("#ifndef RTPTYPES_H\n\n");
printf("#define RTPTYPES_H\n\n");
printf("#include <sys/types.h>\n\n");
if (sizeof(char) == 1)
{
printf("typedef char int8_t;\n");
printf("typedef unsigned char uint8_t;\n\n");
}
else
return -1;
if (sizeof(short) == 2)
{
printf("... | 419 |
410 | <reponame>PlayMe-Martin/XiMapper
#include "SelPrevTexCoordCmd.h"
namespace ofx {
namespace piMapper {
SelPrevTexCoordCmd::SelPrevTexCoordCmd(TextureEditorWidget * te){
_textureEditor = te;
}
void SelPrevTexCoordCmd::exec(){
ofLogNotice("SelPrevTexCoordCmd", "exec");
_prevSelection = _textureEditor->getSelectedTex... | 205 |
1,235 | <filename>src/main/python/khaiii/train/dataset.py
# -*- coding: utf-8 -*-
"""
corpus for training
__author__ = 'Jamie (<EMAIL>)'
__copyright__ = 'Copyright (C) 2019-, Kakao Corp. All rights reserved.'
"""
###########
# imports #
###########
from argparse import Namespace
import itertools
import logging
import os
im... | 5,403 |
1,117 | package com.pgmmers.radar.service.impl.util;
import org.springframework.util.StringUtils;
public class ValidateUtil {
//^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$
/** Constant <code>EMAIL_REG="^([a-z0-9A-Z]+[-|_|\\.]?)+[a-z0-9A-Z]@("{trunked}</code> */
public stati... | 1,257 |
5,547 | /*----------------------------------------------------------------------------
* Tencent is pleased to support the open source community by making TencentOS
* available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
* If you have downloaded a copy of the TencentOS binary from Tenc... | 4,005 |
1,056 | <reponame>arusinha/incubator-netbeans
/*
* 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... | 2,133 |
346 | #ifndef SHADING_H
#define SHADING_H
void BuildShadeTable(void);
void BuildIntensityTable(void);
void SetShadeTablePercent(float uiShadePercent);
extern UINT16 IntensityTable[65536];
extern UINT16 ShadeTable[65536];
extern UINT16 White16BPPPalette[256];
#define DEFAULT_SHADE_LEVEL 4
#endif
| 110 |
386 | <gh_stars>100-1000
#include<bits/stdc++.h>
using namespace std;
int main()
{
int row,col;
cin>>row>>col;
for(int i=0;i<row;i++)
{
for(int j=0;j<col;j++)
{
cout<<"* ";
}
cout<<endl;
}
return 0;
} | 174 |
7,482 | /**
******************************************************************************
* @file hk32f0xx_it.c
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include "hk32f0xx_it.h"
/** @addtog... | 730 |
1,144 | package org.adempiere.ad.validationRule.impl;
/*
* #%L
* de.metas.adempiere.adempiere.base
* %%
* Copyright (C) 2015 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, eith... | 1,477 |
348 | <filename>docs/data/leg-t2/024/02402274.json
{"nom":"Monbazillac","circ":"2ème circonscription","dpt":"Dordogne","inscrits":735,"abs":363,"votants":372,"blancs":28,"nuls":12,"exp":332,"res":[{"nuance":"REM","nom":"<NAME>","voix":234},{"nuance":"FN","nom":"<NAME>","voix":98}]} | 113 |
14,668 | {
"name": "Capture element",
"version": "1.0",
"description": "A simple extension to allow capturing a tab (or element).",
"background": {
"persistent": true,
"scripts": ["background.js"]
},
"permissions": [
"tabs", "http://*/*"
],
"web_accessible_resources": [
"screenshot.js"
],
"ma... | 138 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Saint-Martial-Viveyrol","circ":"3ème circonscription","dpt":"Dordogne","inscrits":153,"abs":49,"votants":104,"blancs":5,"nuls":1,"exp":98,"res":[{"nuance":"MDM","nom":"<NAME>","voix":50},{"nuance":"SOC","nom":"<NAME>","voix":48}]} | 117 |
2,661 | <reponame>ezeeyahoo/earthenterprise
/* libs/graphics/sgl/SkScan_Path.cpp
**
** Copyright 2006, 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.o... | 6,760 |
316 | <gh_stars>100-1000
#ifndef DG_SYSTEM_DEPENDENCE_GRAPH_H_
#define DG_SYSTEM_DEPENDENCE_GRAPH_H_
#include <memory>
#include <set>
#include <vector>
#include "dg/SystemDependenceGraph/DependenceGraph.h"
namespace dg {
// Use the namespace sdg for now to avoid name collisions.
// When this class is finished and working,... | 681 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.