max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
4,036 | <reponame>vadi2/codeql
// Generated from QL.g4 by ANTLR 4.4
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
public class QLParser {
} | 65 |
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 ... | 671 |
1,729 | # coding:utf-8
import numpy as np
from sklearn.datasets import make_s_curve
import matplotlib.pyplot as plt
from sklearn.manifold import LocallyLinearEmbedding
from mpl_toolkits.mplot3d import Axes3D
'''
author: heucoder
email: <EMAIL>
date: 2019.6.13
'''
def make_swiss_roll(n_samples=100, noise=0.0, random_state=Non... | 1,752 |
931 | def stairCaseSearch(matrix , key):
n , m = len(matrix) , len(matrix[0])
i , j = 0 , m - 1
isFound = False
while(i <= n - 1 and j >= 0):
if(matrix[i][j] == key):
isFound = True
print("Found at : " , i , j)
break
elif(matrix[i][j] > key):
j -= 1
else:
i += 1
if(not(isFound)):
print("Key not... | 282 |
14,668 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/base/network_interfaces_getifaddrs.h"
#include <string>
#include "build/build_config.h"
#include "net/base/ip_endpoint.h"
#include "testin... | 3,010 |
679 | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 5,538 |
6,034 | package cn.iocoder.mall.payservice.dal.mysql.dataobject.transaction;
import cn.iocoder.mall.mybatis.core.dataobject.DeletableDO;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Acce... | 1,026 |
748 | <filename>internal/utf8scannot_lettermarkspecial.h<gh_stars>100-1000
// Copyright 2013 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://ww... | 56,441 |
5,203 | /*
* gcc -z relro -z now -fPIE -pie -fstack-protector-all -o lab8C lab8C.c
*/
#include<errno.h>
#include<fcntl.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<sys/types.h>
#include<unistd.h>
struct fileComp {
char fileContents1[255];
char fileContents2[255];
int cmp;
};
char* readfd(int fd)
... | 1,318 |
584 | /*
* 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/LICENSE-2.0
*
* Unless required by a... | 351 |
360 | <reponame>opengauss-mirror/openGauss-graph<gh_stars>100-1000
/*
* psql - the PostgreSQL interactive terminal
*
* Copyright (c) 2000-2012, PostgreSQL Global Development Group
*
* src/bin/psql/input.h
*/
#ifndef INPUT_H
#define INPUT_H
/*
* If some other file needs to have access to readline/history, include this... | 437 |
377 | /*******************************************************************************
* * Copyright 2012 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
* *
*... | 1,569 |
352 | <reponame>bolt1502/yi-hack<gh_stars>100-1000
/**********
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 3 of the License, or (at your
option) any later version. (See <http://www... | 964 |
2,151 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gfx/paint_vector_icon.h"
#include <gtest/gtest.h>
#include <vector>
#include "base/i18n/rtl.h"
#include "cc/paint/paint_record.h"
#include ... | 6,703 |
32,544 | <reponame>DBatOWL/tutorials
package com.baeldung.zerocode;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.http.HttpStatus;
import org.springfram... | 464 |
14,668 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "services/network/dns_config_change_manager.h"
#include <utility>
namespace network {
DnsConfigChangeManager::DnsConfigChangeManager() {
net... | 299 |
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 "base/test/gtest_xml_unittest_result_printer.h"
#include "base/base64.h"
#include "base/command_line.h"
#include "base/files/file_util.h"
#inclu... | 1,319 |
1,772 | <reponame>mtcolman/django-DefectDojo
{
"errors": [],
"mobsfscan_version": "0.0.6",
"results": {
"android_certificate_transparency": {
"metadata": {
"cwe": "CWE-295 Improper Certificate Validation",
"description": "This app does not enforce TLS Certificate Transparency which helps to det... | 1,858 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-hq47-jrpj-2gwp/GHSA-hq47-jrpj-2gwp.json<gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-hq47-jrpj-2gwp",
"modified": "2022-05-01T18:23:19Z",
"published": "2022-05-01T18:23:19Z",
"aliases": [
"CVE-2007-4412"
],
"details": "Multiple cross-site scri... | 677 |
14,668 | // 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 "third_party/blink/renderer/core/frame/csp/csp_violation_report_body.h"
namespace blink {
void CSPViolationReportBody::BuildJSONValue(V8ObjectB... | 236 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-326g-ww7w-8qhj",
"modified": "2022-05-13T01:32:29Z",
"published": "2022-05-13T01:32:29Z",
"aliases": [
"CVE-2018-1926"
],
"details": "IBM WebSphere Application Server 7.0, 8.0, 8.5, and 9.0 Admin Console is vulnerable to cross-site request forgery, caused by im... | 583 |
1,986 | #include "BLEUtils.h"
#include "BLEServer.h"
#include <esp_log.h>
#include <string>
#include <stdio.h>
#include "BLEDevice.h"
#include "sdkconfig.h"
// See the following for generating UUIDs:
// https://www.uuidgenerator.net/
#define SERVICE_UUID "4fafc201-1fb5-459e-8fcc-c5c9c331914b"
#define CHARACTERISTIC_... | 764 |
3,102 | <reponame>clayne/DirectXShaderCompiler
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
void f() {
int x = 3; // expected-note{{'x' declared here}}
const int c = 2;
struct C {
int& x2 = x; // expected-error{{reference to local variable 'x' declared in enclosing function 'f'}}
int cc = c;
};
(v... | 207 |
479 | // Copyright (C) 2017-2018 Dremio Corporation
//
// 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 ... | 637 |
530 | <reponame>meghasfdc/jmc<filename>application/org.openjdk.jmc.joverflow/src/main/java/org/openjdk/jmc/joverflow/descriptors/AbstractLinkedCollectionDescriptor.java<gh_stars>100-1000
/*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE H... | 1,499 |
307 | # WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
import numpy as np
import cv2
from .colors import get_color
class BoundBox:
def __init__(self, xmin, ymin, xmax, ymax, c=None, classes=None):
self.xmin = xmin
self.ymin = ymin
... | 1,460 |
1,184 | <reponame>YJSoft/Talon-for-Twitter<filename>app/src/main/java/com/klinker/android/twitter/data/sq_lite/DMDataSource.java
/*
* Copyright 2014 <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 L... | 4,795 |
4,303 | #ifndef CONVERT_MODEL_H_
#define CONVERT_MODEL_H_
#include "Halide.h"
#include "onnx/onnx.pb.h"
#include <unordered_map>
#include <vector>
struct Tensor {
std::string name;
onnx::TensorProto::DataType type;
std::vector<Halide::Expr> shape;
Halide::Func rep;
};
struct Node {
std::vector<Tensor> in... | 566 |
551 | <gh_stars>100-1000
package com.klinker.android.peekview;
import android.animation.Animator;
import android.animation.ObjectAnimator;
import android.app.Activity;
import android.graphics.Color;
import android.graphics.Point;
import android.support.annotation.FloatRange;
import android.support.annotation.LayoutRes;
impo... | 5,397 |
683 | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.instrumentation.spring.batch.chunk;
import org.springframework.batch.core.scope.context.ChunkContext;
class ChunkContextAndBuilder {
final ChunkContext chunkContext;
final Class<?> builderClass... | 149 |
6,828 | #!/usr/bin/env python3
import os
ignores = [
'.git/',
'misc/afl-fuzz-tokens/',
'ninja_deps',
'src/depfile_parser.cc',
'src/lexer.cc',
]
error_count = 0
def error(path, msg):
global error_count
error_count += 1
print('\x1b[1;31m{}\x1b[0;31m{}\x1b[0m'.format(path, msg))
for root, directory, filenames in os.w... | 457 |
1,144 | <filename>backend/de.metas.adempiere.adempiere/base/src/test/java/de/metas/dataentry/data/DataEntryRecordFieldTest.java
package de.metas.dataentry.data;
import static de.metas.dataentry.data.DataEntryRecordTestConstants.CREATED_UPDATED_INFO;
import static org.assertj.core.api.Assertions.assertThat;
import java.math.B... | 2,265 |
9,402 | <filename>src/mono/dlls/mscordbi/cordb-assembly.cpp<gh_stars>1000+
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// File: CORDB-ASSEMBLY.CPP
//
#include <cordb-appdomain.h>
#include <cordb-assembly.h>
#include <cordb-class.h>... | 6,824 |
3,513 | <filename>src/SHADERed/Objects/Debug/Breakpoint.h<gh_stars>1000+
#pragma once
#include <SHADERed/Engine/Model.h>
#include <SHADERed/Objects/PipelineItem.h>
#include <glm/glm.hpp>
#include <unordered_map>
namespace ed {
namespace dbg {
class Breakpoint {
public:
Breakpoint() { Line = 0; IsConditional = false; ... | 234 |
1,352 | // pbrt is Copyright(c) 1998-2020 <NAME>, <NAME>, and <NAME>.
// The pbrt source code is licensed under the Apache License, Version 2.0.
// SPDX: Apache-2.0
#ifndef PBRT_UTIL_MESH_H
#define PBRT_UTIL_MESH_H
#include <pbrt/pbrt.h>
#include <pbrt/util/containers.h>
#include <pbrt/util/error.h>
#include <pbrt/util/hash... | 2,824 |
364 | package com.linkedin.dagli.util.io;
import java.io.IOException;
import java.io.InputStream;
/**
* A "virtual stream" backed by another stream (which provides all the read data), which has been previously written
* via {@link OutputSubstream}. This can be used to provide a stream to a consumer that expects to "own... | 1,127 |
5,169 | <reponame>Ray0218/Specs
{
"name": "FPStepView",
"version": "1.0.0",
"summary": "Simple step view",
"homepage": "https://github.com/FellowPlusDev/FPStepView",
"license": "MIT",
"authors": {
"<NAME>": "<EMAIL>"
},
"source": {
"git": "https://github.com/FellowPlusDev/FPStepView.git",
"tag": "1.... | 200 |
2,497 | <reponame>baajur/eta
package eta.runtime.io;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
public class SizeLock {
private static final int INITIAL_PERMITS = 1;
private AtomicInteger permits = new AtomicInteger(INITIAL_PERMITS);
/* This lock is used ... | 486 |
1,599 | # Copyright (c) 2015-2018 Cisco Systems, Inc.
#
# 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... | 1,011 |
384 | <reponame>hejamu/gromacs
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
* Copyright (c) 2013,2014,2015,2017,2018 by the GROMACS development team.
* Copyright (c) 201... | 5,552 |
5,169 | {
"name": "SwiftEvents",
"version": "0.3.0",
"homepage": "https://github.com/denissimon/SwiftEvents",
"authors": {
"<NAME>": "<EMAIL>"
},
"summary": "A lightweight, pure-Swift library for implementing events in iOS and other platforms",
"description": "SwiftEvents is a lightweight, pure-Swift library ... | 336 |
345 | package spring.study.componentprovider.interfaze;
/**
* Created by Format on 2017/6/11.
*/
public interface IConsumer {
}
| 39 |
313 | import os
import numpy as np
import yaml
from director import visualization as vis
from director import objectmodel as om
from director import transformUtils
from director import ioUtils
from director import filterUtils
from director import vtkAll as vtk
from director.debugVis import DebugData
from director import segm... | 7,081 |
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.
#ifndef IOS_CHROME_BROWSER_UI_READING_LIST_IOS_ADD_TO_READING_LIST_INFOBAR_DELEGATE_H_
#define IOS_CHROME_BROWSER_UI_READING_LIST_IOS_ADD_TO_READING_LIST_... | 1,021 |
312 | <filename>tools/federation/src/main/java/org/eclipse/rdf4j/federated/evaluation/iterator/GraphToBindingSetConversionIteration.java
/*******************************************************************************
* Copyright (c) 2019 Eclipse RDF4J contributors.
* All rights reserved. This program and the accompanying ... | 672 |
2,855 | <filename>jctools-core/src/main/java/org/jctools/queues/ConcurrentCircularArrayQueue.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
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 2,249 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.mysqlflexibleserver;
import com.azure.core.credential.TokenCredential;
import com.azure.core.http.HttpClient;
import com.azure.c... | 5,679 |
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.
#ifndef UI_OZONE_PLATFORM_WAYLAND_TEST_TEST_VIEWPORTER_H_
#define UI_OZONE_PLATFORM_WAYLAND_TEST_TEST_VIEWPORTER_H_
#include "ui/ozone/pl... | 255 |
403 | <filename>tests/nipaptest.py<gh_stars>100-1000
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Most of the tests here are performed via Pynipap which makes it a lot easier
# to test things given that we receive python objects and not just basic data
# structures like those returned in xmlrpc.py. If you want to write... | 59,606 |
2,180 | <reponame>alonebehappy/kafka-manager
package com.xiaojukeji.kafka.manager.dao.impl;
import com.xiaojukeji.kafka.manager.dao.HeartbeatDao;
import com.xiaojukeji.kafka.manager.common.entity.pojo.HeartbeatDO;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
impo... | 367 |
2,990 | /*
* GDevelop Core
* Copyright 2008-2016 <NAME> (<EMAIL>). All rights reserved.
* This project is released under the MIT License.
*/
#ifndef COMMONTOOLS_H
#define COMMONTOOLS_H
#include <algorithm>
#include <cmath>
#include <iterator>
#include <sstream>
#include <string>
#include <vector>
#include "U... | 397 |
713 | package org.infinispan.server.router.routes;
import javax.net.ssl.SSLContext;
public interface SniRouteSource extends RouteSource {
SSLContext getSslContext();
String getSniHostName();
}
| 68 |
335 | {
"word": "Pup",
"definitions": [
"(of bitches and certain other female animals) give birth to young."
],
"parts-of-speech": "Verb"
} | 66 |
787 | <reponame>pietelite/SpongeAPI
/*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated ... | 1,852 |
750 | <gh_stars>100-1000
import enum
import random
import string
import typing as t
import uuid
from datetime import date, datetime, time, timedelta
class RandomBuilder:
@classmethod
def next_bool(cls) -> bool:
return random.choice([True, False])
@classmethod
def next_bytes(cls, length=8) -> bytes:... | 950 |
18,599 | <reponame>tanhx2008/GSYVideoPlayer
package com.example.gsyvideoplayer.effect;
import android.graphics.Bitmap;
import android.opengl.GLSurfaceView;
import com.shuyu.gsyvideoplayer.render.view.GSYVideoGLView.ShaderInterface;
/**
* 水印效果
*/
public class BitmapIconEffect implements ShaderInterface {
private final... | 1,693 |
355 | package net.tomp2p.message;
import net.tomp2p.message.Message.Content;
/**
* Describes the index of a {@code Message.Content} enum in a {@code Message}.
* <b>Note:</b> Each {@code Message} can contain up to 8 contents, so indices range from 0 to 7.
*
* @author <NAME>
*
*/
public class MessageContentIndex {
... | 326 |
357 | /*
* Copyright (c) 2012-2015 VMware, 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 required by applicab... | 883 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-6j47-h927-wmwr",
"modified": "2022-05-01T17:57:56Z",
"published": "2022-05-01T17:57:56Z",
"aliases": [
"CVE-2007-1865"
],
"details": "** DISPUTED ** The ipv6_getsockopt_sticky function in the kernel in Red Hat Enterprise Linux (RHEL) Beta 5.... | 437 |
349 | #ifndef _IVW_MODULE_OPENGL_DEFINE_H_
#define _IVW_MODULE_OPENGL_DEFINE_H_
#ifdef INVIWO_ALL_DYN_LINK // DYNAMIC
// If we are building DLL files we must declare dllexport/dllimport
#ifdef IVW_MODULE_OPENGL_EXPORTS
#ifdef _WIN32
#define IVW_MODULE_OPENGL_API __declspec(dllexport)
#else // UNIX (GCC)
#define IVW_MODULE... | 264 |
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,119 |
2,151 | /*
* Copyright (C) 2014 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.0
*
* Unless required by app... | 570 |
429 | <reponame>Andy-K-Sparklight/ponyos<gh_stars>100-1000
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <syscall.h>
#include <syscall_nums.h>
#include <signal.h>
#include <pthread.h>
#include <errno.h>
#include <sys/wait.h>
#define ACQUIRE_LOCK() do { while (__sync_lock_test_and_set(&lock->atomic_loc... | 618 |
368 | package io.charlescd.villager.infrastructure.integration.registry.configuration;
import io.charlescd.villager.infrastructure.integration.registry.authentication.CommonBasicAuthenticator;
import io.charlescd.villager.infrastructure.persistence.DockerRegistryConfigurationEntity;
public final class AzureConfig {
pr... | 192 |
9,367 | //
// MIKMIDIOutputPort.h
// MIDI Testbed
//
// Created by <NAME> on 3/8/13.
// Copyright (c) 2013 Mixed In Key. All rights reserved.
//
#import "MIKMIDIPort.h"
#import "MIKMIDICompilerCompatibility.h"
@class MIKMIDICommand;
@class MIKMIDIDestinationEndpoint;
NS_ASSUME_NONNULL_BEGIN
/**
* MIKMIDIOutputPort is... | 289 |
388 | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | 475 |
5,169 | {
"name": "FormBuilder",
"version": "0.5.8",
"summary": "A swift library to make building data entry forms fast and simple.",
"description": "This is a library written in swift which is intended to make the creation of data entry forms in iOS fast and easy. I have tried to abstract out all of the\nboiler plate... | 542 |
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 ... | 560 |
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... | 3,203 |
368 | package org.nem.core.model;
import org.nem.core.crypto.*;
import org.nem.core.serialization.*;
/**
* Simple key pair view model.
*/
public class KeyPairViewModel implements SerializableEntity {
private final KeyPair keyPair;
private final byte networkVersion;
/**
* Creates a key pair view model.
*
* @para... | 709 |
358 | <gh_stars>100-1000
// Copyright(c) 2015-present, <NAME> & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once
#ifndef SPDLOG_HEADER_ONLY
#include "spdlog/sinks/wincolor_sink.h"
#endif
#include "spdlog/common.h"
#include "spdlog/details/pattern_formatter.h"
nam... | 2,324 |
3,405 | <filename>src/core/kext/VirtualKey/VK_LOCK.cpp
#include "diagnostic_macros.hpp"
BEGIN_IOKIT_INCLUDE;
#include <IOKit/IOLib.h>
END_IOKIT_INCLUDE;
#include "EventOutputQueue.hpp"
#include "FlagStatus.hpp"
#include "KeyCodeModifierFlagPairs.hpp"
#include "VK_LOCK.hpp"
namespace org_pqrs_Karabiner {
bool VirtualKey::VK_... | 1,339 |
3,358 | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2004 <NAME>
Copyright (C) 2007 StatPro Italia srl
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free softwar... | 689 |
391 | import sys
from unittest.mock import MagicMock
def mock_anki_modules():
"""
I'd like to get rid of the situation when this is required, but for now this helps with the situation that
anki modules are not available during test runtime.
"""
modules_list = ['anki', 'anki.hooks', 'anki.exporting', '... | 208 |
30,023 | """The smtp component."""
from homeassistant.const import Platform
DOMAIN = "smtp"
PLATFORMS = [Platform.NOTIFY]
| 40 |
335 | <gh_stars>100-1000
# ifndef CPPAD_CORE_FUN_EVAL_HPP
# define CPPAD_CORE_FUN_EVAL_HPP
/* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-17 <NAME>
CppAD is distributed under multiple licenses. This distribution is under
the terms of ... | 213 |
838 | <reponame>FlorianPoot/MicroPython_ESP32_psRAM_LoBo
/*
* MIT License
*
* Copyright (c) 2017 <NAME>
* Copyright (c) 2017 <NAME> <<EMAIL>>
* Copyright (c) 2018 LoBo (https://github.com/loboris)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated docume... | 7,884 |
575 | <gh_stars>100-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.
#ifndef CHROME_BROWSER_FEEDBACK_SYSTEM_LOGS_LOG_SOURCES_USER_LOG_FILES_LOG_SOURCE_H_
#define CHROME_BROWSER_FEEDBACK_SYSTEM_LOGS_LOG_SO... | 532 |
335 | <gh_stars>100-1000
{
"word": "Alternation",
"definitions": [
"The repeated occurrence of two things in turn."
],
"parts-of-speech": "Noun"
} | 70 |
892 | <filename>advisories/unreviewed/2022/01/GHSA-x4ff-3f7v-q327/GHSA-x4ff-3f7v-q327.json
{
"schema_version": "1.2.0",
"id": "GHSA-x4ff-3f7v-q327",
"modified": "2022-01-29T00:01:21Z",
"published": "2022-01-20T00:02:02Z",
"aliases": [
"CVE-2022-22160"
],
"details": "An Unchecked Error Condition vulnerabilit... | 653 |
1,968 | #ifndef Rtt_Linux_Clear_Sandbox_Dialog
#define Rtt_Linux_Clear_Sandbox_Dialog
#include "wx/wx.h"
#include "wx/image.h"
#include "wx/statline.h"
namespace Rtt
{
class LinuxClearProjectSandboxDialog: public wxDialog
{
public:
LinuxClearProjectSandboxDialog(wxWindow *parent, wxWindowID id, const wxString &title, co... | 266 |
622 | <filename>Duke-Java-Programming-Principles-of-Software-Design/week2- Earthquakes Sorting Algorithms/EfficientSortStarterProgram/src/TitleLastAndMagnitudeComparator.java<gh_stars>100-1000
/**
* @author: salimt
*/
import java.util.Comparator;
public class TitleLastAndMagnitudeComparator implements Comparator <Qua... | 296 |
13,249 | <gh_stars>1000+
/*
* Copyright 2015-2019 The OpenZipkin 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 app... | 564 |
482 | package io.cattle.platform.engine.eventing.impl;
import io.cattle.platform.engine.eventing.ProcessEventListener;
import io.cattle.platform.engine.manager.ProcessManager;
import io.cattle.platform.engine.server.ProcessInstanceDispatcher;
import io.cattle.platform.engine.server.ProcessInstanceReference;
import io.cattle... | 315 |
2,805 | <reponame>ziveo/ckan<filename>ckan/migration/versions/006_c83955e7acb6_add_ratings.py
# encoding: utf-8
"""006 Add ratings
Revision ID: c83955e7acb6
Revises: <PASSWORD>
Create Date: 2018-09-04 17:39:11.520922
"""
from alembic import op
import sqlalchemy as sa
from ckan.migration import skip_based_on_legacy_engine_ver... | 436 |
2,209 | #!/usr/bin/env python2
"""
hexstring.py
"""
from __future__ import print_function
import sys
def main(argv):
hexdigits = '0123456789abcdef'
for c in hexdigits:
for d in hexdigits:
for e in hexdigits:
hexbyte = c + d + e #+ f
byte = hexbyte
byte = byte.replace('0', '0000')
... | 564 |
5,975 | /*
* 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.
*/
package com.facebook.buck_project_builder.cache;
import com.facebook.buck_project_builder.SimpleLogger;
import com.facebook.buck_p... | 1,812 |
974 | <filename>3rdparty/blend2d/src/blend2d/opentype/otname_p.h
// Blend2D - 2D Vector Graphics Powered by a JIT Compiler
//
// * Official Blend2D Home Page: https://blend2d.com
// * Official Github Repository: https://github.com/blend2d/blend2d
//
// Copyright (c) 2017-2020 The Blend2D Authors
//
// This software is prov... | 1,003 |
371 | <gh_stars>100-1000
// This file was adapted from the ze_oss project: https://github.com/zurich-eye/ze_oss/blob/master/ze_data_provider/include/ze/data_provider/data_provider_rosbag.hpp
// Copyright (C) ETH Zurich, <NAME>, Zurich Eye - All Rights Reserved
#pragma once
#include <map>
#include <string>
#include <memory>... | 541 |
435 | {
"description": "Tytu\u0142/Topic: How to make killer robots with Python and Raspberry Pi\nPrelegent/Speaker: <NAME>\n\nKubik is a quadruped robot build around a Raspberry Pi. I will tell you what I learned, what challenges I encoutered building it. I will also tell you how I used the PyGame library to program in. I... | 292 |
691 | /*=============================================================================
Copyright (c) 2011-2019 <NAME>
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
===... | 341 |
378 | <reponame>aleasto/AppImageUpdate
#pragma once
// system headers
#include <algorithm>
#include <climits>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <unistd.h>
#ifdef FLTK_UI
#include <FL/Fl.H>
#endif
#ifdef QT_UI
#include <QMessageBox>
#endif
// library includes
#includ... | 4,933 |
4,140 | <reponame>FANsZL/hive<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
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License,... | 1,014 |
1,125 | <reponame>chefmramos85/monster-mash
// Copyright (c) 2017 <NAME>
// Licensed under the MIT License.
#include "imageUtils.h"
#include <stack>
using namespace std;
using namespace Eigen;
void floodFill(Imguc &I, int startX, int startY, unsigned char targetColor, unsigned char replacementColor)
{
stack<pair<int,int>>... | 1,118 |
310 | <filename>Projects/Editor/Source/Editor/Space/Assets/CTreeFSController.h
/*
!@
MIT License
Copyright (c) 2020 Skylicht Technology CO., LTD
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 ... | 924 |
15,577 | <filename>src/Disks/IVolume.h<gh_stars>1000+
#pragma once
#include <Disks/IDisk.h>
#include <Disks/DiskSelector.h>
#include <Poco/Util/AbstractConfiguration.h>
namespace DB
{
enum class VolumeType
{
JBOD,
RAID1,
SINGLE_DISK,
UNKNOWN
};
class IVolume;
using VolumePtr = std::shared_ptr<IVolume>;
usin... | 1,013 |
332 | /*
*
* Copyright 2020 WeBank
*
* 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... | 440 |
767 | from collections import OrderedDict
from io import BytesIO
import numpy
from numpy.testing import assert_raises, assert_equal
from PIL import Image
from picklable_itertools.extras import partition_all
from six.moves import zip
from fuel import config
from fuel.datasets.base import IndexableDataset
from fuel.schemes imp... | 12,302 |
1,947 | #include "baldr/admin.h"
namespace {
// For transforming ISO 3166-1 country codes from alpha2 to alpha3
std::unordered_map<std::string, std::string> iso2_to_iso3 =
{{"AD", "AND"}, {"AE", "ARE"}, {"AF", "AFG"}, {"AG", "ATG"}, {"AI", "AIA"}, {"AL", "ALB"},
{"AM", "ARM"}, {"AO", "AGO"}, {"AQ", "ATA"}, {"AR", "A... | 2,863 |
4,140 | <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 regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "Lic... | 13,865 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.