max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
521 | <filename>third_party/virtualbox/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp
/* $Id: HGSMIBase.cpp $ */
/** @file
* VirtualBox Video driver, common code - HGSMI guest-to-host communication.
*/
/*
* Copyright (C) 2006-2017 Oracle Corporation
*
* Permission is hereby granted, free of charge, to any person
* ... | 5,097 |
3,269 | <filename>C++/maximum-length-of-a-concatenated-string-with-unique-characters.cpp
// Time: O(n) ~ O(2^n)
// Space: O(1) ~ O(2^n)
class Solution {
public:
int maxLength(vector<string>& arr) {
vector<int> dp(1);
for (const auto& x : arr) {
const auto& x_set = bitset(x);
if (!x... | 1,536 |
543 | /*
* Copyright 2019 <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 ... | 2,291 |
4,304 | #ifndef PASS_SERIALISERS_H
#define PASS_SERIALISERS_H
#include <platform.h>
#include "../ast/ast.h"
#include "../pass/pass.h"
PONY_EXTERN_C_BEGIN
bool pass_serialisers(ast_t* program, pass_opt_t* options);
PONY_EXTERN_C_END
#endif
| 104 |
324 | <gh_stars>100-1000
/*
* Copyright 2008 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 applicabl... | 4,956 |
6,304 | // Copyright 2020 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "tools/fiddle/examples.h"
REG_FIDDLE(drawarcs, 256, 256, false, 0) {
void draw(SkCanvas* canvas) {
SkPaint paint;
paint.setAntiAlias(true);
paint.setStyle(SkPaint::kStr... | 359 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-vfq5-wqf5-2qgg",
"modified": "2022-05-13T01:21:09Z",
"published": "2022-05-13T01:21:09Z",
"aliases": [
"CVE-2019-0101"
],
"details": "Authentication bypass in the Intel Unite(R) solution versions 3.2 through 3.3 may allow an unauthenticated user to potentially ... | 482 |
926 | <reponame>dlmarquis/dfhack
using namespace DFHack;
using namespace df::enums;
static bool inc_wear_timer (df::item_constructed *item, int amount)
{
if (item->flags.bits.artifact)
return false;
MaterialInfo mat(item->mat_type, item->mat_index);
if (mat.isInorganic() && mat.inorganic->flags.is_set(i... | 786 |
22,688 | /******************************************************************************
* Copyright 2018 The Apollo 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
... | 3,618 |
305 | <reponame>IntelAI/OpenVINO-model-server
/* Copyright 2017 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.org/licenses/LICENSE-2.0
Unless req... | 4,560 |
5,169 | {
"name": "TBXML",
"version": "1.4",
"license": "MIT",
"summary": "A fast XML parser.",
"homepage": "http://www.tbxml.co.uk",
"authors": {
"<NAME>": "<EMAIL>"
},
"source": {
"git": "https://github.com/steipete/TBXML.git",
"commit": "fc2db6c94e87de3d1e0fff50baf762397bc9e687"
},
"descripti... | 343 |
713 | <filename>leetcode.com/python/428_Serialize_and_Deserialize_N-ary_Tree.py<gh_stars>100-1000
"""
# Definition for a Node.
class Node(object):
def __init__(self, val, children):
self.val = val
self.children = children
"""
# Idea: preorder recursive traversal; add number of children after root val, i... | 768 |
799 | import json
import io
import dateparser
import pytest
from freezegun import freeze_time
import demistomock as demisto
def util_load_json(path):
with io.open(path, mode='r', encoding='utf-8') as f:
return json.loads(f.read())
QUERY_STRING_CASES = [
(
{'query': 'chrome.exe'}, False, # case ... | 5,190 |
60,067 |
import caffe2.python._import_c_extension as C
CAFFE2_NO_OPERATOR_SCHEMA = C.define_caffe2_no_operator_schema
build_options = C.get_build_options()
| 61 |
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.
// ------------------------------------------------------------
#pragma once
namespace Servic... | 265 |
4,140 | <reponame>FANsZL/hive
/*
* 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 (t... | 865 |
360 | /*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ON AN "AS... | 455 |
1,962 | package com.bolingcavalry.springbootrediskyrodemo.config;
import com.bolingcavalry.springbootrediskyrodemo.Serializer.KryoRedisSerializer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnec... | 536 |
340 | <reponame>gajubadge11/HackerRank-1<filename>interview-preparation-kit/largest-rectangle.py
#!/bin/python3
import sys
def largestRectangle(h):
res = 0
for i in range(len(h)):
length = 0
for j in range(i, -1, -1):
if h[j] >= h[i]:
length += 1
else:
... | 409 |
3,631 | /*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* 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... | 2,760 |
1,553 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
__author__ = u'<NAME>'
__copyright__ = u'2013-2019 <NAME>'
__license__ = u'MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-or-later'
__all__ = (u'Trie', u'Tri... | 716 |
757 | {
"关机": "shutdown -s -t 00",
"取消关机": "shutdown -a",
"锁屏": "rundll32.exe user32.dll,LockWorkStation",
"截屏": "screenshot"
} | 78 |
319 | <reponame>AurySystem/Anodyne-1-Repo
#!/usr/bin/python
#
# www.josephlandry.com
#
# buildmap.py
#
# Builds map images from Anodyne game source files.
#
# Anodyne game: http://www.anodynegame.com/
#
# The source folder should be in ./Anodyne/src/
# The map images will be outputted to ./maps/ in PNG format.
#
import os
i... | 3,752 |
21,684 | <filename>src/unittest/coroutine_utils.cc
// Copyright 2010-2015 RethinkDB, all rights reserved.
#include <stdexcept>
#include "arch/runtime/coroutines.hpp"
#include "arch/runtime/runtime.hpp"
#include "arch/timing.hpp"
#include "concurrency/cond_var.hpp"
#include "time.hpp"
#include "unittest/gtest.hpp"
#include "un... | 3,072 |
66,985 | <reponame>techAi007/spring-boot
/*
* Copyright 2012-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/LICENS... | 689 |
1,033 | <filename>models/py_utils/kp_utils.py
import torch
import torch.nn as nn
from .utils import convolution, residual
class MergeUp(nn.Module):
def forward(self, up1, up2):
return up1 + up2
def make_merge_layer(dim):
return MergeUp()
def make_tl_layer(dim):
return None
def make_br_layer(dim):
r... | 8,547 |
432 | <filename>contrib/gdb-7/gdb/python/py-auto-load.c
/* GDB routines for supporting auto-loaded scripts.
Copyright (C) 2010-2013 Free Software Foundation, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License ... | 3,342 |
1,403 | <filename>test/fixture/python_scanner/from_import_simple_package_module1_func.py
from simple_package.module1 import somefunc # noqa: F401 | 45 |
4,538 | #include <rom_ssl_ram_map.h>
#include <section_config.h>
#ifndef SSL_RAM_MAP_SECTION
#define SSL_RAM_MAP_SECTION
#endif
#ifndef HAL_ROM_BSS_V02_SECTION
#define HAL_ROM_BSS_V02_SECTION
#endif
/* RAM table referred by SSL ROM */
SSL_RAM_MAP_SECTION
struct _rom_ssl_ram_map rom_ssl_ram_map;
SSL_RAM_MAP_SECTION
struct _r... | 158 |
634 | <reponame>halotroop2288/consulo
/*
* Copyright 2000-2015 JetBrains s.r.o.
*
* 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 re... | 1,159 |
2,601 | <filename>tsconfig.json<gh_stars>1000+
{
"compilerOptions": {
"target": "es2018",
"lib": ["es2018"],
"module": "commonjs",
"resolveJsonModule": true,
"allowJs": true,
"checkJs": true,
"declaration": true,
"emitDeclarationOnly": true,
"noEmitOnError": true,
"newLine": "lf",
... | 860 |
342 | <filename>ray-rllib/explore-rllib/test_exercises.py
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
def test_chain_env_spaces(chain_env_cls):
test_env = chain_env_cls(dict(n=6))
print("Testing if spaces have been setup correctly...")
assert test... | 876 |
778 | <gh_stars>100-1000
// | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main authors: clabra
//
#if !defined(KRATO... | 13,152 |
796 | <gh_stars>100-1000
/*
* 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 obtain a copy of Mulan PSL v1 at:
*
* http://license.coscl.org... | 884 |
1,269 | package gc;
import java.io.File;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.List;
public class PermGenOOM {
//C:\Program Files (x86)\Java\jdk1.6.0_45\bin>
//java -XX:PermSize=1m -XX:MaxPermSize=9m -Xmx16m PermGenOOM
//C:\Program Files\Java\jdk1.8.0_... | 791 |
2,151 | <reponame>zipated/src<gh_stars>1000+
# 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.
"""IDL type handling.
Classes:
IdlTypeBase
IdlType
IdlUnionType
IdlArrayOrSequenceType
IdlSequenceType
IdlFrozenA... | 7,141 |
456 | <filename>YCCustomTextLib/src/main/java/com/ns/yc/yccustomtextlib/edit/model/HyperEditData.java
/*
Copyright 2017 yangchong211(github.com/yangchong211)
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... | 703 |
1,389 | #include "addsuperstakerpage.h"
#include "qt/forms/ui_addsuperstakerpage.h"
#include <qt/walletmodel.h>
#include <QMessageBox>
AddSuperStakerPage::AddSuperStakerPage(QWidget *parent) :
QDialog(parent),
ui(new Ui::AddSuperStakerPage),
m_model(nullptr)
{
ui->setupUi(this);
setWindowTit... | 1,230 |
335 | # ifndef CPPAD_UTILITY_LU_SOLVE_HPP
# define CPPAD_UTILITY_LU_SOLVE_HPP
/* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-17 <NAME>
CppAD is distributed under multiple licenses. This distribution is under
the terms of the
... | 3,394 |
5,169 | {
"name": "AACountTime",
"version": "1.0.1",
"summary": "iOS count Time lib",
"homepage": "https://github.com/CYHAI9/AACountTime",
"license": "MIT",
"authors": {
"chenyinhai": "<EMAIL>"
},
"platforms": {
"ios": "8.0"
},
"source": {
"git": "https://github.com/CYHAI9/AACountTime.git",
... | 183 |
535 | <gh_stars>100-1000
from sys import exit
from blessings import Terminal
from utils.settings import settings
import sys
NO_SETTINGS=False
try:
if sys.argv[1] == "--store-token" or sys.argv[1] == "--token":
NO_SETTINGS=True
except IndexError:
pass
class GlobalsContainer:
def __init__(self):
... | 1,633 |
777 | // 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 CHROME_TEST_BASE_ALWAYS_ON_TOP_WINDOW_KILLER_WIN_H_
#define CHROME_TEST_BASE_ALWAYS_ON_TOP_WINDOW_KILLER_WIN_H_
enum class RunType {
// Indicat... | 226 |
2,637 | /*
* Copyright 2019, Cypress Semiconductor Corporation or a subsidiary of
* Cypress Semiconductor Corporation. All Rights Reserved.
*
* This software, associated documentation and materials ("Software")
* is owned by Cypress Semiconductor Corporation,
* or one of its subsidiaries ("Cypress") and is protected by ... | 5,998 |
715 | <reponame>iabhimanyu/Algorithms
#include<iostream>
#include<stdlib.h>
using namespace std;
struct node{
int data;
struct node *next;
};
struct node *start = NULL;
void create(int n){
struct node *new_node, *current_node;
new_node=(struct node*)malloc(sizeof(node));
new_node->data=n;
new_node-... | 485 |
338 | <reponame>zhe525069676/WeiBoLayout
package com.zheblog.weibogridview;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;
import com.zheblog.weibogridview.adapter.TestAdapter;
import com.zheblog.weibogridview.model.FeedModel;
import com.zheblog.weibogridview.model.FeedPhotoModel;
i... | 651 |
818 | /*
* Copyright 2020 Red Hat, Inc. and/or its affiliates.
*
* 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... | 1,615 |
735 | /**
* MVEL 2.0
* Copyright (C) 2007 The Codehaus
* <NAME>, <NAME>, <NAME>, <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
... | 1,301 |
5,169 | {
"name": "IBCustomFonts",
"version": "0.0.1",
"summary": "Replace fonts in nibs.",
"description": "\t\t\t\t IBCustomFonts category allows you to use custom fonts from Interface Builder (IB) when building your iOS apps.\n\n\t\t\t\t Apps using IBCustomFonts category are approved by Apple App Store (as of Sep... | 330 |
1,104 | /*
* 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; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that... | 3,426 |
320 | <reponame>2757571500/sdk<filename>jme3-materialeditor/src/com/jme3/gde/materialdefinition/MatDefMetaData.java
/*
* Copyright (c) 2009-2010 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condi... | 7,910 |
5,169 | {
"name": "testsh",
"version": "0.0.1",
"summary": "testsh.",
"description": "this is testsh",
"homepage": "https://github.com/ajiao-github/testsh",
"license": {
"type": "MIT",
"file": "FILE_LICENSE"
},
"authors": "ajiao-github",
"platforms": {
"ios": "8.0"
},
"source": {
"git": "h... | 194 |
3,012 | /** @file
Header file for boot maintenance module.
Copyright (c) 2004 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _BOOT_MAINT_H_
#define _BOOT_MAINT_H_
#include "FormGuid.h"
#include <Guid/TtyTerm.h>
#include <Guid/MdeModuleHii.h>
#inc... | 17,024 |
777 | // 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.
#include "ash/common/system/user/user_view.h"
#include <algorithm>
#include <utility>
#include "ash/common/material_design/material_design_controller.h"... | 11,051 |
645 | # -*- coding: utf-8 -*-
"""
termcolor's documentation settings
"""
from __future__ import unicode_literals
import os
# project information
project = 'termcolor'
copyright = '2013, <NAME>'
version = '0.1'
release = '0.1'
# sphinx settings
extensions = []
templates_path = ['_templates']
source_suffix = '.rst'
master_... | 284 |
335 | <reponame>mrslezak/Engine<filename>QuantExt/qle/time/futureexpirycalculator.hpp
/*
Copyright (C) 2019 Quaternion Risk Management Ltd
All rights reserved.
This file is part of ORE, a free-software/open-source library
for transparent pricing and risk analysis - http://opensourcerisk.org
ORE is free software: you c... | 1,312 |
8,624 | /* GNU Ocrad - Optical Character Recognition program
Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
2012, 2013 <NAME>.
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 Fo... | 4,714 |
6,304 | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef Skottie_DEFINED
#define Skottie_DEFINED
#include "include/core/SkFontMgr.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkSize.h"
#include "include/core... | 3,830 |
5,169 | {
"name": "LocalizationKit",
"version": "1.1.8",
"summary": "iOS Localization made easy. Localize texts and manage your translations in realtime to support multi lingual deployment.",
"description": "LocalizationKit is the easiest way to manage your texts and translations. It removes the need to recompile and r... | 394 |
14,668 | <gh_stars>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.
#ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_PAYMENTS_SAVE_UPI_OFFER_BUBBLE_VIEWS_H_
#define CHROME_BROWSER_UI_VIEWS_AUTOFILL_PAYMENTS_SAVE_UP... | 683 |
474 | <reponame>BoneyIsSpooky/Javacord
package org.javacord.api.event.channel.server.voice;
import org.javacord.api.entity.channel.ServerVoiceChannel;
import org.javacord.api.event.user.UserEvent;
import java.util.Optional;
/**
* A server voice channel member join event.
*/
public interface ServerVoiceChannelMemberJoinE... | 236 |
369 | /*
* Copyright © 2021 <NAME>, 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... | 620 |
3,428 | <gh_stars>1000+
{"id":"01752","group":"easy-ham-1","checksum":{"type":"MD5","value":"a672617b99187e1c4029bc33a4e8a596"},"text":"Return-Path: <EMAIL>\nDelivery-Date: Wed Sep 11 08:10:29 2002\nFrom: <EMAIL> (<NAME>)\nDate: 11 Sep 2002 00:10:29 -0700\nSubject: [Spambayes] stack.pop() ate my multipart message\nIn-Reply-To:... | 306 |
1,133 | /*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 1996-2003
* Sleepycat Software. All rights reserved.
*/
#include "db_config.h"
#ifndef lint
static const char revid[] = "$Id: lock_util.c,v 11.9 2003/01/08 05:22:12 bostic Exp $";
#endif /* not lint */
#ifndef NO_SYSTEM_INCLUDES
#incl... | 1,461 |
1,522 | """Settings for testing zinnia on SQLite"""
from zinnia.tests.implementations.settings import * # noqa
DATABASES = {
'default': {
'NAME': 'zinnia.db',
'ENGINE': 'django.db.backends.sqlite3'
}
}
| 98 |
721 | <filename>generated/google-apis-books_v1/.repo-metadata.json
{
"api_id": "books:v1",
"name_pretty": "Books API",
"distribution_name": "google-apis-books_v1",
"language": "ruby",
"library_type": "REST"
}
| 98 |
460 | <reponame>kohkubo/norminette
int ((*g_conv[13])(t_syntax syntax, t_buffer *buffer, va_list va));
| 44 |
450 | <filename>gum/arch-x86/gumx86backtracer.h
/*
* Copyright (C) 2008-2018 <NAME> <<EMAIL>>
*
* Licence: wxWindows Library Licence, Version 3.1
*/
#ifndef __GUM_X86_BACKTRACER_H__
#define __GUM_X86_BACKTRACER_H__
#include <glib-object.h>
#include <gum/gumbacktracer.h>
G_BEGIN_DECLS
#define GUM_TYPE_X86_BACKTRACER (... | 246 |
1,264 | <filename>spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/SerializationUtils.java<gh_stars>1000+
/*
* Copyright 2012-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 Licens... | 1,818 |
524 | <reponame>broccoliboy/LedFx<filename>ledfx/api/schema.py
import logging
from aiohttp import web
from ledfx.api import RestEndpoint
from ledfx.api.utils import convertToJsonSchema
_LOGGER = logging.getLogger(__name__)
class SchemaEndpoint(RestEndpoint):
ENDPOINT_PATH = "/api/schema"
async def get(self) ->... | 798 |
2,143 | <gh_stars>1000+
package com.tngtech.archunit.example.layers.service.impl;
import com.tngtech.archunit.example.layers.MyService;
@MyService
public class WronglyNamedSvc {
}
| 65 |
660 | /*
* Copyright (c) 2021, Intel Corporation
*
* 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 use, copy, modify, merge, publis... | 1,057 |
370 | <reponame>luoyongheng/dtslam<filename>3rdparty/suitesparse-metis-for-windows-1.2.1/SuiteSparse/UMFPACK/SourceWrappers/umf_i_malloc.o.c<gh_stars>100-1000
#define DINT
#include <../Source/umf_malloc.c>
| 90 |
879 | <filename>header/src/main/java/org/zstack/header/tag/UserTagVO_.java
package org.zstack.header.tag;
/**
*/
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@StaticMetamodel(UserTagVO.class)
public class UserTagVO_ extends TagAO_ {
public static volatile S... | 134 |
1,338 | /*
* Copyright 2013, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME> <<EMAIL>>
*/
#include <package/solver/SolverPackageSpecifier.h>
namespace BPackageKit {
BSolverPackageSpecifier::BSolverPackageSpecifier()
:
fType(B_UNSPECIFIED),
fPackage(NULL),... | 469 |
361 | """GDScript-to-python converter
Experimental converter which produces syntactically correct python3 out of given
GDScript. Produced python code almost for sure will not be runnable, although its
core structure should be the same as of GDScript thus allowing usage of various
python static analysis tools like e.g. radon... | 353 |
942 | #include <mongoc.h>
#include "mongoc-scram-private.h"
#include "TestSuite.h"
#ifdef MONGOC_ENABLE_SSL
static void
test_mongoc_scram_step_username_not_set (void)
{
mongoc_scram_t scram;
bool success;
uint8_t buf[4096] = {0};
uint32_t buflen = 0;
bson_error_t error;
_mongoc_scram_init (&scram);
_... | 475 |
2,740 | # Copyright (c) 2017, Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can be
# found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
import unittest
import tempfile
import os
import pandas as pd
import random
import pytest
from coremlto... | 5,506 |
463 | <gh_stars>100-1000
package org.hive2hive.core.processes.share;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Random;
import org.hive2hive.core.H2HJUnitTest;
import org.hive2hive.core.events.framework.interfaces.file.IFileAddEvent;
import org.hive2hive.core.events.framework.i... | 2,772 |
1,279 | <reponame>huanjiayang-ibm/serverless-application-model
from parameterized import parameterized
from integration.helpers.base_test import BaseTest
class TestFunctionWithMq(BaseTest):
@parameterized.expand(
[
"combination/function_with_mq",
"combination/function_with_mq_using_autoge... | 738 |
407 | <gh_stars>100-1000
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: CellSetMessage.proto
package org.apache.hadoop.hbase.rest.protobuf.generated;
public final class CellSetMessage {
private CellSetMessage() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegis... | 23,646 |
634 | <reponame>gwhitehawk/zentral<gh_stars>100-1000
# Generated by Django 2.2.17 on 2020-11-29 18:33
from django.db import migrations
def set_default_manifest_names(apps, schema_editor):
Manifest = apps.get_model("monolith", "Manifest")
for manifest in Manifest.objects.select_related("meta_business_unit").all():
... | 228 |
348 | {"nom":"Cros","circ":"3ème circonscription","dpt":"Puy-de-Dôme","inscrits":173,"abs":78,"votants":95,"blancs":11,"nuls":5,"exp":79,"res":[{"nuance":"UDI","nom":"<NAME>","voix":45},{"nuance":"MDM","nom":"<NAME>","voix":34}]} | 95 |
5,597 | package demo.soap;
import demo.TestBase;
/**
*
* @author pthomas3
*/
public class SoapRunner extends TestBase {
}
| 47 |
723 | <filename>mac/ATCommons/P2AsyncEnumeration.h
#import <Foundation/Foundation.h>
@interface NSArray (P2AsyncEnumeration)
- (void)p2_enumerateObjectsAsynchronouslyUsingBlock:(void (^)(id obj, NSUInteger idx, BOOL *stop, dispatch_block_t callback))block completionBlock:(dispatch_block_t)completionBlock;
- (void)p2_enume... | 179 |
851 | /*
* Copyright (c) 2017 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 file PATENTS. All contribut... | 1,199 |
426 | package com.richardradics.core.util;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Point;
import android.view.Display;
import android.view.KeyCharacterMap;
import android.view.KeyEvent;
import android.view.ViewConfiguration;
import android.view.WindowManager;
import com... | 995 |
407 | package com.alibaba.tesla.appmanager.server.repository.mapper;
import com.alibaba.tesla.appmanager.server.repository.domain.ProductReleaseTaskAppPackageTaskRelDO;
import com.alibaba.tesla.appmanager.server.repository.domain.ProductReleaseTaskAppPackageTaskRelDOExample;
import org.apache.ibatis.annotations.Mapper;
impo... | 404 |
5,133 | <reponame>Saljack/mapstruct<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.java8stream;
import java.util.ArrayList;
import java.util.Collection;
/**
* @author <NAME>
*/
p... | 293 |
3,428 | {"id":"01037","group":"easy-ham-2","checksum":{"type":"MD5","value":"bfe999fe03b3c6b5b7cc2360c793e5a0"},"text":"From <EMAIL> Fri Aug 16 11:27:54 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Postfix) with ESMTP id... | 1,271 |
7,482 | /*
* Copyright (c) 2012, Freescale Semiconductor, 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:
*
* o Redistributions of source code must retain the above copyright notice, this list... | 7,072 |
348 | <gh_stars>100-1000
{"nom":"Orchies","circ":"6ème circonscription","dpt":"Nord","inscrits":6675,"abs":4021,"votants":2654,"blancs":266,"nuls":139,"exp":2249,"res":[{"nuance":"REM","nom":"<NAME>","voix":1252},{"nuance":"LR","nom":"<NAME>","voix":997}]} | 102 |
852 | #ifndef Fireworks_Core_FWProxyBuilderTemplate_h
#define Fireworks_Core_FWProxyBuilderTemplate_h
// -*- C++ -*-
//
// Package: Core
// Class : FWProxyBuilderTemplate
//
/**\class FWProxyBuilderTemplate FWProxyBuilderTemplate.h Fireworks/Core/interface/FWProxyBuilderTemplate.h
Description: <one line class su... | 474 |
1,607 | <gh_stars>1000+
"""Test for tmuxp workspacefreezer."""
import time
import kaptan
from tmuxp import config
from tmuxp.workspacebuilder import WorkspaceBuilder, freeze
from .fixtures._util import loadfixture
def test_freeze_config(session):
yaml_config = loadfixture("workspacefreezer/sampleconfig.yaml")
scon... | 331 |
590 | #ifndef __H3_RESET_H__
#define __H3_RESET_H__
#ifdef __cplusplus
extern "C" {
#endif
#define H3_RESET_CE (5)
#define H3_RESET_DMA (6)
#define H3_RESET_SD0 (8)
#define H3_RESET_SD1 (9)
#define H3_RESET_SD2 (10)
#define H3_RESET_NAND (13)
#define H3_RESET_SDRAM (14)
#define H3_RESET_EMAC (17)
#define H... | 1,033 |
790 | <filename>lib/grizzled/grizzled/collections/dict.py
"""
``grizzled.collections.dict`` contains some useful dictionary classes
that extend the behavior of the built-in Python ``dict`` type.
"""
__docformat__ = "restructuredtext en"
# ---------------------------------------------------------------------------
# Imports... | 7,455 |
328 | <reponame>frkhit/SeetaFace6OpenIndex<filename>example/qt/seetaface_demo/mainwindow.cpp
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "QDir"
#include "QFileDialog"
#include "QDebug"
#include "qsqlquery.h"
#include "qmessagebox.h"
#include "qsqlerror.h"
#include "qitemselectionmodel.h"
#include <QModelIn... | 19,938 |
394 | <gh_stars>100-1000
from django.db import models
# Put your test models here
| 25 |
4,071 | /* Copyright (C) 2016-2018 Alibaba Group Holding Limited
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 ... | 913 |
1,162 | package io.digdag.core.queue;
import java.time.Instant;
import com.google.common.base.*;
import com.google.common.collect.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.immutables.value.Value;
@Value.Immutable
@JsonSerial... | 213 |
370 | {
"displayName": "Compute Engine default service account",
"email": "<EMAIL>",
"name": "projects/k8s-infra-e2e-boskos-scale-29/serviceAccounts/<EMAIL>",
"oauth2ClientId": "116709224701301223722",
"projectId": "k8s-infra-e2e-boskos-scale-29",
"uniqueId": "116709224701301223722"
}
| 125 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.