max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,738 | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 2,549 |
1,546 | <filename>src/platform/cocoa/private/PAGPlayerImpl.h
/////////////////////////////////////////////////////////////////////////////////////////////////
//
// Tencent is pleased to support the open source community by making libpag available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reser... | 598 |
372 | /*
* 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 writing, software distributed under t... | 1,719 |
5,411 | <filename>code/components/ros-patches-five/include/mojo/public/mojom/base/application_state.mojom-forward.h
// vendor/chromium/mojo/public/mojom/base/application_state.mojom-forward.h is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of th... | 314 |
479 | <filename>automerge-c-v2/automerge.c
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "automerge.h"
#define BUFSIZE 4096
#define CMP_PATCH(x, y) \
do { \
char _buff[BUFSIZE]; \
char _buff2[BUFSIZE]; \
Buffer _rbuff = automerge_create_buff(); \
int ret = automerg... | 4,027 |
892 | <filename>advisories/unreviewed/2022/02/GHSA-2vc7-6w39-6rh2/GHSA-2vc7-6w39-6rh2.json
{
"schema_version": "1.2.0",
"id": "GHSA-2vc7-6w39-6rh2",
"modified": "2022-03-17T00:05:44Z",
"published": "2022-02-12T00:00:48Z",
"aliases": [
"CVE-2022-24112"
],
"details": "An attacker can abuse the batch-requests ... | 765 |
536 | /*
* 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 |
1,080 | <filename>tests/test_weakmethod.py<gh_stars>1000+
#------------------------------------------------------------------------------
# Copyright (c) 2020, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
#---... | 619 |
903 | <reponame>markrmiller/lucene
/*
* 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... | 682 |
543 | <reponame>anastasiard/riiablo<filename>core/src/main/java/com/riiablo/asset/ResolverNotFound.java
package com.riiablo.asset;
public class ResolverNotFound extends RuntimeException {
public final AssetDesc<?> asset;
ResolverNotFound(AssetDesc<?> asset) {
this(asset, null);
}
ResolverNotFound(AssetDesc<?> ... | 172 |
305 | package io.quarkiverse.jberet.it.client;
import static io.restassured.RestAssured.given;
import static javax.ws.rs.core.HttpHeaders.ACCEPT;
import static javax.ws.rs.core.HttpHeaders.CONTENT_TYPE;
import static javax.ws.rs.core.MediaType.APPLICATION_JSON;
import static org.hamcrest.Matchers.equalTo;
import org.junit.... | 641 |
668 | from abc import abstractmethod
from functools import reduce, partial
from typing import Callable, Any, Generic, TypeVar, cast
from .typing import Applicative
from .typing import Functor
from .typing import Monoid
from .typing import Monad
TSource = TypeVar("TSource")
TResult = TypeVar("TResult")
class Maybe(Generi... | 2,550 |
587 | /*
* Copyright 2017-2020 Crown Copyright
*
* 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 a... | 1,256 |
2,151 | <gh_stars>1000+
/*
* Copyright (C) 2011 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... | 2,051 |
857 | {
"currentVersion": 10.71,
"serviceDescription": "NSW Mouse Alert data. The data is originally sourced from https://www.feralscan.org.au/.\nThe data has not been qa and can be out of date. ",
"mapName": "Layers",
"description": "",
"copyrightText": "DPI",
"supportsDynamicLayers": true,
"tables": [],
"sp... | 706 |
3,985 | <reponame>weiwenqiang/Music-Player<gh_stars>1000+
/*
* Copyright (c) 2016. <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | 814 |
3,372 | <filename>aws-java-sdk-docdb/src/main/java/com/amazonaws/services/docdb/model/DBEngineVersion.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 with
* the License.... | 7,466 |
553 | /*
* Copyright (c) 2018-2022 <NAME> <<EMAIL>>
*
* 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, merg... | 624 |
482 | package io.cattle.platform.lock;
public interface LockCallbackWithException<T, E extends Throwable> {
public T doWithLock() throws E;
}
| 44 |
341 | {
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",
"additionalRowClass": "=if([$AverageRating] >= 4 , 'ms-bgColor-themeLighter' , '')"
} | 72 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-7352-fwf3-q5jw",
"modified": "2022-05-01T02:01:32Z",
"published": "2022-05-01T02:01:32Z",
"aliases": [
"CVE-2005-1738"
],
"details": "Format string vulnerability in the logPrintBadfile function in delbadfiles.c I... | 467 |
3,442 | <filename>src/net/java/sip/communicator/plugin/desktoputil/FileDragLabel.java
/*
* 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 Lice... | 2,760 |
3,702 | <filename>managed/src/main/java/com/yugabyte/yw/commissioner/tasks/subtasks/PrecheckNode.java
/*
* Copyright 2019 YugaByte, Inc. and Contributors
*
* Licensed under the Polyform Free Trial License 1.0.0 (the "License"); you
* may not use this file except in compliance with the License. You
* may obtain a copy of t... | 710 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"<NAME>","circ":"4ème circonscription","dpt":"Seine-et-Marne","inscrits":634,"abs":270,"votants":364,"blancs":5,"nuls":0,"exp":359,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":113},{"nuance":"FN","nom":"M. <NAME>","voix":98},{"nuance":"LR","nom":"<NAME>","voix":86},{"n... | 263 |
523 | // Copyright 2018 <NAME> <<EMAIL>>
//
// 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 agree... | 597 |
1,872 | <gh_stars>1000+
# Licensed to the .NET Foundation under one or more agreements.
# The .NET Foundation licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information.
from generate import generate
MaxTypes = 16
def gen_delegate_func(cw):
for i in range(Max... | 431 |
14,668 | <reponame>zealoussnow/chromium
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.autofill_assistant.form;
class AssistantFormSelectionChoice {
private final String... | 368 |
575 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/hud_display/legend.h"
#include "ash/hud_display/graph.h"
#include "ash/hud_display/hud_constants.h"
#include "ash/hud_display/solid_source_... | 2,353 |
4,772 | <filename>jpa/deferred/src/main/java/example/repo/Customer1464Repository.java
package example.repo;
import example.model.Customer1464;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer1464Repository extends CrudRepository<Customer1464, Long> {
List<Custome... | 115 |
798 | package picard.sam.util;
import htsjdk.samtools.util.CollectionUtil;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import java.io.*;
import java.util.List;
/**
* Tests for the ReadNameParser class.
*/
public class ReadNameParserTests {
/** Tests rapid... | 3,936 |
364 | <reponame>jasonfeihe/BitFunnel<gh_stars>100-1000
import csv
with open("/tmp/int/QueryPipelineStatistics.csv") as f:
reader = csv.reader(f)
header = next(reader)
assert header == ['query',
'rows',
'matches',
'quadwords',
... | 300 |
3,200 | #!/usr/bin/python
#
# Copyright 2018-2021 Polyaxon, 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 ... | 408 |
1,039 | <reponame>ishine/simde<gh_stars>1000+
#define SIMDE_TEST_ARM_NEON_INSN cmla_rot90
#include "test-neon.h"
#include "../../../simde/arm/neon/cmla_rot90.h"
static int
test_simde_vcmla_rot90_f32 (SIMDE_MUNIT_TEST_ARGS) {
#if 1
static const struct {
simde_float32 a[4];
simde_float32 b[4];
simde_float32 r[4];... | 7,241 |
1,695 | <filename>core/trino-main/src/main/java/io/trino/operator/scalar/RowToRowCast.java<gh_stars>1000+
/*
* 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/... | 5,457 |
1,510 | /*
* 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 ... | 5,957 |
435 | //
// Copyright (C) 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 License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | 821 |
401 | <reponame>dromara/liteflow<gh_stars>100-1000
package com.yomahub.liteflow.test.refreshRule;
import cn.hutool.core.io.resource.ResourceUtil;
import com.yomahub.liteflow.core.FlowExecutor;
import com.yomahub.liteflow.entity.data.DefaultSlot;
import com.yomahub.liteflow.entity.data.LiteflowResponse;
import com.yomahub.li... | 1,055 |
999 | [
{
"type": "MYSQL",
"name": "analytics_db",
"connectionUrl": "jdbc:mysql://localhost:3306/deliveries"
}
]
| 60 |
2,996 | <reponame>Elyahu41/Terasology<gh_stars>1000+
// Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.persistence;
import org.joml.Vector3fc;
import org.terasology.engine.entitySystem.entity.EntityRef;
public interface PlayerStore {
/**
* @return The i... | 448 |
769 | //
// Created by <NAME> on 2018-12-03.
//
#pragma once
#include <cstdint>
namespace Tangram {
#if TANGRAM_USE_JSCORE
class JSCoreValue;
class JSCoreContext;
using JSValue = JSCoreValue;
using JSContext = JSCoreContext;
#else
class DuktapeValue;
class DuktapeContext;
using JSValue = DuktapeValue;
using JSContext = Du... | 193 |
455 | <filename>StarEngine/jni/Sound/AudioManager.h
#pragma once
#include "BaseSound.h"
#include "SoundFile.h"
#include "SoundEffect.h"
#include "../Helpers/Singleton.h"
#include <vector>
#include <map>
namespace star
{
class AudioManager : public Singleton<AudioManager>
{
public:
friend Singleton<AudioM... | 2,451 |
1,155 | <filename>tests/src/main/java/ma/glasnost/orika/test/generator/RetrieveDestinationValueOnMappingTestCase.java<gh_stars>1000+
/*
* Orika - simpler, better and faster Java bean mapping
*
* Copyright (C) 2011-2019 Orika authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use thi... | 4,223 |
990 | #ifndef COUNTER_HPP
#define COUNTER_HPP
#include "lane_compare.hpp"
#include "hungarianGraph.hpp"
#include <iostream>
#include <algorithm>
#include <vector>
#include <opencv2/core/core.hpp>
using namespace std;
using namespace cv;
// before coming to use functions of this class, the lanes should resize to im_width a... | 487 |
634 | <filename>modules/base/lang-impl/src/main/java/com/intellij/codeInspection/ex/CustomEditInspectionToolsSettingsAction.java
package com.intellij.codeInspection.ex;
import com.intellij.codeInsight.daemon.HighlightDisplayKey;
import com.intellij.codeInsight.intention.IntentionAction;
import com.intellij.openapi.editor.Ed... | 575 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-j9f3-j4r5-j83v",
"modified": "2022-03-18T00:01:19Z",
"published": "2022-03-11T00:02:11Z",
"aliases": [
"CVE-2022-25218"
],
"details": "The use of the RSA algorithm without OAEP, or any other padding scheme, in telnetd_startup, allows an unauthenticated attacker... | 534 |
903 | import torch
import torch.nn as nn
import torch.nn.functional as F
from mmcv.cnn import ConvModule
from mmseg.ops import resize
from ..builder import HEADS
from ..utils import SelfAttentionBlock as _SelfAttentionBlock
from .cascade_decode_head import BaseCascadeDecodeHead
class SpatialGatherModule(nn.Module):
""... | 1,988 |
777 | <filename>ui/aura/test/mus/test_window_tree_client_setup.h
// Copyright 2016 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_AURA_TEST_MUS_TEST_WINDOW_TREE_CLIENT_SETUP_H_
#define UI_AURA_TEST_MUS_TEST_WINDOW_... | 564 |
335 | import torch
import torch.nn as nn
import json
from easydict import EasyDict as edict
from graphs.weights_initializer import weights_init
from graphs.models.custom_functions.weight_norm import WN_Conv3d, WN_ConvTranspose3d
class Generator(nn.Module):
def __init__(self, config):
super().__init__()
... | 1,116 |
351 | <gh_stars>100-1000
package org.antlr.intellij.plugin.psi;
import com.intellij.psi.impl.source.tree.LeafPsiElement;
import com.intellij.psi.tree.IElementType;
/**
* Refs to tokens, rules
*/
public abstract class GrammarElementRefNode extends LeafPsiElement {
protected String name = null; // an override to input tex... | 226 |
30,023 | """
Provide a mock select platform.
Call init before using it in your tests to ensure clean test data.
"""
from homeassistant.components.select import SelectEntity
from tests.common import MockEntity
UNIQUE_SELECT_1 = "unique_select_1"
UNIQUE_SELECT_2 = "unique_select_2"
ENTITIES = []
class MockSelectEntity(MockE... | 658 |
3,139 | /*
* Copyright (c) 2009-2021 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this... | 1,063 |
310 | <gh_stars>100-1000
//==============================================================
// Copyright © 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT
// =============================================================
/*******************************************************************************
! Content:
! ... | 607 |
1,178 | <reponame>leozz37/makani
/*
* Copyright 2020 Makani Technologies LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | 1,035 |
1,711 | /*
_____ _____ _____ __
| __| | | | | The SOUL language
|__ | | | | | |__ Copyright (c) 2019 - ROLI Ltd.
|_____|_____|_____|_____|
The code in this file is provided under the terms of the ISC license:
Permission to use, copy, modify, and/or distribute this software for any p... | 1,845 |
358 | # Grab_MultipleCameras.cpp
# ============================================================================
# This sample illustrates how to grab and process images from multiple cameras
# using the CInstantCameraArray class. The CInstantCameraArray class represents
# an array of instant camera objects. It provides almos... | 1,243 |
9,724 | <reponame>albertobarri/idk<gh_stars>1000+
/*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2007 <NAME> http://bulletphysics.com
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of... | 3,978 |
190,993 | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 4,230 |
890 | /*
*
* Copyright 2017 Asylo 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 law or agree... | 1,893 |
1,093 | /*
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 769 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-4fv8-h7r9-m88g",
"modified": "2022-05-01T18:28:54Z",
"published": "2022-05-01T18:28:54Z",
"aliases": [
"CVE-2007-4969"
],
"details": "Process Monitor 1.22 does not properly validate certain parameters to System Service Descriptor Table (SSDT) function handlers,... | 650 |
469 | <filename>libgdx-ios/src/main/java/com/badlogic/gdx/backends/iosrobovm/IOSMini2DxNet.java<gh_stars>100-1000
/*******************************************************************************
* Copyright 2011 See LIBGDX_AUTHORS file.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not us... | 788 |
526 | <gh_stars>100-1000
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.accessservices.dataengine.server.util;
import org.odpi.openmetadata.accessservices.dataengine.ffdc.DataEngineErrorCode;
import org.odpi.openmetadata.frameworks.auditlog.me... | 580 |
1,338 | <reponame>Kirishikesan/haiku<filename>src/apps/mediaplayer/support/StackBlurFilter.cpp
/*
* Copyright 2008-2010 <NAME> <<EMAIL>>
* Distributed under the terms of the MIT license.
*/
//----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 20... | 7,863 |
678 | <reponame>RockerHX/FishChat
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
#import "SKStoreProductViewControllerDelegate.h"
@class NSString, SKStoreProductViewController, UIViewController;
@interface MMProductC... | 452 |
348 | {"nom":"Saint-Ferjeux","circ":"2ème circonscription","dpt":"Haute-Saône","inscrits":67,"abs":24,"votants":43,"blancs":0,"nuls":6,"exp":37,"res":[{"nuance":"FN","nom":"M. <NAME>","voix":19},{"nuance":"REM","nom":"M. <NAME>","voix":18}]} | 98 |
828 | <filename>hasor-db/src/test/java/net/hasor/db/dal/dynamic/DynamicXmlTest.java
/*
* Copyright 2002-2005 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
*
... | 4,631 |
2,072 | <reponame>defendercrypt/amundsen
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0
import unittest
from mock import patch
from pyhocon import ConfigFactory
from databuilder import Scoped
from databuilder.extractor.dashboard.mode_analytics.mode_dashboard_last_successful_execution... | 926 |
416 | #ifndef _XBOOK_DRIVERS_VIEW_CORE_H
#define _XBOOK_DRIVERS_VIEW_CORE_H
int view_core_init();
int view_core_exit();
void view_core_loop();
#endif /* _XBOOK_DRIVERS_VIEW_CORE_H */
| 78 |
1,451 | <filename>pandora-core/src/main/java/tech/linjiang/pandora/inspector/model/Attribute.java<gh_stars>1000+
package tech.linjiang.pandora.inspector.model;
import androidx.annotation.IntDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* Created by linjiang on 15/06/2018.
*/
... | 1,020 |
704 | <filename>tests/junit-functional/org/jgroups/protocols/RATE_LIMITER_Test.java<gh_stars>100-1000
package org.jgroups.protocols;
import org.jgroups.BytesMessage;
import org.jgroups.Global;
import org.jgroups.Message;
import org.jgroups.stack.Protocol;
import org.jgroups.util.Util;
import org.testng.annotations.Test;
im... | 2,791 |
14,564 | <reponame>Char-CN/datax<filename>otswriter/src/main/java/com/alibaba/datax/plugin/writer/otswriter/model/RowDeleteChangeWithRecord.java<gh_stars>1000+
package com.alibaba.datax.plugin.writer.otswriter.model;
import com.alibaba.datax.common.element.Record;
public class RowDeleteChangeWithRecord extends com.aliyun.open... | 236 |
1,905 | import lightgbm as lgb
import pytest
from dtreeviz.models.lightgbm_decision_tree import ShadowLightGBMTree
import numpy as np
@pytest.fixture()
def lgb_dec_tree():
return lgb.Booster(model_file="fixtures/lightgbm_model_classifier.txt")
@pytest.fixture()
def shadow_dec_tree(lgb_dec_tree, dataset_lightgbm) -> Sha... | 1,599 |
5,169 | {
"name": "libMachO",
"version": "0.1.0",
"summary": "libMachO is a lightweight, C library for parsing in-memory Mach-O images.",
"description": "libMachO is a lightweight, C library for parsing in-memory Mach-O images.\nIt should not be used to parse binaries which have not been loaded into memory\nby the kern... | 497 |
852 | <reponame>malbouis/cmssw
#ifndef RecoPixelVertexing_PixelTrackFitting_PixelTrackReconstruction_H
#define RecoPixelVertexing_PixelTrackFitting_PixelTrackReconstruction_H
#include "FWCore/Framework/interface/ConsumesCollector.h"
#include "FWCore/Framework/interface/FrameworkfwdMostUsed.h"
#include "FWCore/ParameterSet/i... | 420 |
302 | #ifndef HTMLPARSERFACTORY_H
#define HTMLPARSERFACTORY_H
#include "engine_global.h"
#include <QObject>
#include "ihtmlparserfactory.h"
namespace BrowserAutomationStudioFramework
{
class ENGINESHARED_EXPORT HtmlParserFactory : public IHtmlParserFactory
{
Q_OBJECT
public:
explicit HtmlParse... | 187 |
1,013 | package co.aikar.commands;
import org.spongepowered.api.command.CommandSource;
import org.spongepowered.api.entity.living.player.Player;
public class SpongeConditionContext extends ConditionContext <SpongeCommandIssuer> {
SpongeConditionContext(SpongeCommandIssuer issuer, String config) {
super(issuer, co... | 169 |
2,550 | //
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | 787 |
403 | <filename>apache-ftpserver-1.1.1/core/src/test/java/org/apache/ftpserver/usermanager/impl/ClearTextDbUserManagerTest.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding... | 585 |
8,428 | <gh_stars>1000+
# stdlib
import os
def user_hagrid_profile() -> str:
dir_path = os.path.expanduser("~/.hagrid")
os.makedirs(dir_path, exist_ok=True)
return os.path.abspath(dir_path)
| 88 |
391 | <filename>src/limeRFE/RFE_Device.h
/*
* File: RFE_Device.h
* Author: ignas
*
* Created on September 4, 2019, 1:18 PM
*/
#ifndef RFE_DEVICE_H
#define RFE_DEVICE_H
#include "limeRFE_constants.h"
class RFE_Device {
public:
RFE_Device(lms_device_t *d, RFE_COM com);
RFE_Device(const RFE_Device&) = delete;... | 378 |
335 | <filename>Z/Zyzzyva_noun.json
{
"word": "Zyzzyva",
"definitions": [
"A genus of tropical weevils (family Curculionidae) native to South America and typically found on or near palm trees. Also (in form zyzzyva): a weevil of this genus."
],
"parts-of-speech": "Noun"
} | 112 |
1,350 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.automation.implementation;
import com.azure.resourcemanager.automation.fluent.models.ActivityInner;
import com.a... | 794 |
901 | <filename>serialization/src/main/java/com/twitter/serial/stream/SerializerInput.java<gh_stars>100-1000
/*
* Copyright 2017 Twitter
*
* 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
*
* ... | 900 |
374 | <reponame>cnlohr/avrcraft<filename>dumbcraft/dumbcraft.h
//Copyright 2012 <>< <NAME>, under the MIT-x11 or NewBSD license. You choose.
#ifndef _DUMBCRAFT_H
#define _DUMBCRAFT_H
#define PROTO_VERSION 578
#define PROTO_VERSION_STR "578"
#define LONG_PROTO_VERSION "1.15.2"
#define BLOCK_GRASS_ID 9
#define BLOCK_WOOL_B... | 2,286 |
302 | #include "urlstringboxloader.h"
#include <QRegExp>
#include <QTimer>
#include "every_cpp.h"
namespace BrowserAutomationStudioFramework
{
UrlStringBoxLoader::UrlStringBoxLoader(QObject *parent) :
IStringBoxLoader(parent)
{
IsLoading = false;
HttpClient = 0;
HttpClientFactory = ... | 1,985 |
1,104 | <gh_stars>1000+
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: <NAME> (<EMAIL>);
*
* (C) Copyright 2004, by <N... | 1,577 |
672 | <filename>Lumos/Source/Lumos/Utilities/PerformanceTimer.h
#pragma once
#include "Timer.h"
#include "Maths/Vector4.h"
#include "Maths/MathsUtilities.h"
namespace Lumos
{
class LUMOS_EXPORT PerformanceTimer
{
public:
PerformanceTimer()
: m_UpdateInterval(1.0f)
, m_RealTimeEla... | 1,128 |
308 | {"always_ignore":{"message":"Always ignore for this site"},"always_ignore_confirmation":{"message":"Wil jy h\u00ea Wagwoordwaarsku moet altyd hierdie webwerf ignoreer?"},"back":{"message":"Terug"},"contact_security":{"message":"Kontak sekuriteit"},"extension_description":{"message":"Wagwoordwaarsku help beskerm teen ui... | 1,202 |
1,169 | <reponame>kokizzu/amundsen
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0
from typing import ( # noqa: F401
Any, Dict, Iterator, Union,
)
from pyhocon import ConfigFactory, ConfigTree # noqa: F401
from databuilder.extractor.base_teradata_metadata_extractor import BaseTe... | 728 |
8,027 | /*
* Copyright (c) Facebook, Inc. and 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 applic... | 1,290 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000
{"nom":"Thénioux","circ":"2ème circonscription","dpt":"Cher","inscrits":470,"abs":214,"votants":256,"blancs":5,"nuls":0,"exp":251,"res":[{"nuance":"COM","nom":"<NAME>","voix":82},{"nuance":"FN","nom":"Mme <NAME>","voix":77},{"nuance":"MDM","nom":"Mme <NAME>","v... | 264 |
301 | # Authors: <NAME> <<EMAIL>>
# <NAME> <<EMAIL>>
#
# License: BSD (3-clause)
from numbers import Real
import warnings
import numpy as np
import torch
from mne.channels import make_standard_montage
from .base import Transform
from .functional import (
time_reverse, sign_flip, ft_surrogate, channels_dropout... | 14,404 |
335 | /*
* Copyright 2019-2020 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 ap... | 752 |
617 | <reponame>jbdelcuv/openenclave
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.
#ifndef _OE_HASH_H
#define _OE_HASH_H
#include <openenclave/internal/defs.h>
OE_EXTERNC_BEGIN
/* Message digest types supported by RSA and EC digital signing */
typedef enum _oe_hash_type
{
OE_HASH_... | 223 |
37,508 | #!/usr/bin/env python3
import json
import os
import unittest
import random
from PIL import Image, ImageDraw, ImageFont
from cereal import log, car
from common.basedir import BASEDIR
from common.params import Params
from selfdrive.controls.lib.events import Alert, EVENTS, ET
from selfdrive.controls.lib.alertmanager imp... | 1,829 |
1,149 | #! /usr/bin/env python
""" Dump all known UPnP commands """
import argparse
import re
import soco
import soco.services
def main():
""" Run the main script """
parser = argparse.ArgumentParser(
prog='',
description='Dump data about Sonos services'
)
parser.add_argument(
'-d'... | 783 |
412 | package datart.core.mappers;
import datart.core.entity.SourceSchemas;
import org.apache.ibatis.jdbc.SQL;
public class SourceSchemasSqlProvider {
public String insertSelective(SourceSchemas record) {
SQL sql = new SQL();
sql.INSERT_INTO("source_schemas");
if (record.getId() != null... | 766 |
3,395 | {"category":"vegetables","calories":45,"fats_g":0.5,"sugars_g":2}
{"category":"seafood","calories":150,"fats_g":5.0,"sugars_g":0}
{"category":"meat","calories":100,"fats_g":5.0,"sugars_g":0}
{"category":"fruit","calories":60,"fats_g":0.0,"sugars_g":11}
{"category":"seafood","calories":140,"fats_g":5.0,"sugars_g":1}
{"c... | 786 |
9,425 | <gh_stars>1000+
import pytest
import salt.utils.win_update as win_update
from tests.support.mock import MagicMock, patch
pytestmark = [
pytest.mark.windows_whitelisted,
pytest.mark.skip_unless_on_windows,
]
def test_installed_no_updates():
"""
Test installed when there are no updates on the system
... | 1,107 |
415 | from .uart import UART
from .device_information import DeviceInformation
from .colorific import Colorific
| 24 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.