max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
892 | {
"schema_version": "1.2.0",
"id": "GHSA-8vrj-v84v-pmgx",
"modified": "2022-05-02T03:45:33Z",
"published": "2022-05-02T03:45:33Z",
"aliases": [
"CVE-2009-3489"
],
"details": "Adobe Photoshop Elements 8.0 installs the Adobe Active File Monitor V8 service with an insecure security descriptor, which allo... | 684 |
422 | // file : libbuild2/test/operation.cxx -*- C++ -*-
// license : MIT; see accompanying LICENSE file
#include <libbuild2/test/operation.hxx>
#include <libbuild2/rule.hxx>
#include <libbuild2/variable.hxx>
#include <libbuild2/algorithm.hxx>
#include <libbuild2/test/common.hxx> // test_deadline()
using namespace... | 1,041 |
5,547 | <filename>platform/vendor_bsp/nxp/MIMXRT1052/components/button/button.c
/*
* Copyright 2018-2019 NXP
* All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "fsl_common.h"
#include "gpio.h"
#include "timer_manager.h"
#include "button.h"
/*
* The OSA_USED macro can only be defined when th... | 6,098 |
307 | <gh_stars>100-1000
/*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on the
* source.
*
*/
/**
* @file
* The code in here is just for bookeepin... | 875 |
344 | <gh_stars>100-1000
#pragma once
#include "../global.h"
/**
* \file attackcanceler_battle_scripts.h
* \brief Contains declarations for battle scripts usually at the beginning of
* a move's execution. Many times used to stop the execution.
*/
extern const u8 BattleScript_MagicBounce[];
extern const u8 BattleScri... | 1,036 |
3,212 | <filename>nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-flowfile-repo-serialization/src/main/java/org/apache/nifi/controller/repository/StandardRepositoryRecordSerdeFactory.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file ... | 1,247 |
611 | <reponame>packagesdev/dejalu<gh_stars>100-1000
// DejaLu
// Copyright (c) 2015 <NAME>. All rights reserved.
#ifndef dejalu_DJLAssert_h
#define dejalu_DJLAssert_h
#define DJLAssert(cond) NSAssert(cond, @"%s", #cond);
#endif
| 100 |
1,452 | /*
* This file is part of qpOASES.
*
* qpOASES -- An Implementation of the Online Active Set Strategy.
* Copyright (C) 2007-2017 by <NAME>, <NAME>,
* <NAME> et al. All rights reserved.
*
* qpOASES is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Publ... | 951 |
333 | package com.alipay.api.response;
import java.util.List;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
import com.alipay.api.domain.DashBoardMeta;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.marketing.data.dashboard.batchquery respo... | 470 |
347 | <reponame>jihwahn1018/ovirt-engine<gh_stars>100-1000
package org.ovirt.engine.core.uutils.crypto;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.Random;
import org.... | 903 |
313 | /*
* Copyright 2016 Facebook, 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... | 2,030 |
363 | /*
* Copyright 2015 predic8 GmbH, www.predic8.com
* 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... | 657 |
623 | # SPDX-License-Identifier: Apache-2.0
# To register converter for scikit-learn operators, import associated modules here.
from . import h2o
| 41 |
348 | {"nom":"Sevenans","circ":"1ère circonscription","dpt":"Territoire de Belfort","inscrits":372,"abs":184,"votants":188,"blancs":18,"nuls":0,"exp":170,"res":[{"nuance":"LR","nom":"<NAME>","voix":92},{"nuance":"MDM","nom":"<NAME>","voix":78}]} | 91 |
406 | #ifndef usb_serial_h__
#define usb_serial_h__
#include <stdint.h>
void usb_init(void); // initialize everything
uint8_t usb_configured(void); // is the USB port configured
int8_t usb_keyboard_press(uint8_t key, uint8_t modifier);
int8_t usb_keyboard_send(void);
extern uint8_t keyboard_modifier_keys;
extern uint8_... | 3,101 |
2,564 | <filename>instagram_private_api/utils.py<gh_stars>1000+
import time
import hmac
import base64
import hashlib
from random import randint
import os
from datetime import datetime
import re
VALID_UUID_RE = r'^[a-f\d]{8}\-[a-f\d]{4}\-[a-f\d]{4}-[a-f\d]{4}-[a-f\d]{12}$'
def raise_if_invalid_rank_token(val, required=True)... | 3,471 |
6,717 | <reponame>crossmob/WinObjC
#ifndef PLATFORM_WINDOWS_SYS_TIME__H
#define PLATFORM_WINDOWS_SYS_TIME__H
#ifdef __cplusplus
extern "C" {
#endif
struct timeval;
struct timezone
{
int tz_minuteswest; /* minutes W of Greenwich */
int tz_dsttime; /* type of dst correction */
};
int gettimeofday(struct timeval* tp, ... | 157 |
936 | /*
* Copyright 2016, Yahoo Inc.
* Licensed under the Apache License, Version 2.0
* See LICENSE file in project root for terms.
*/
package example;
import com.yahoo.elide.annotation.CreatePermission;
import com.yahoo.elide.annotation.ReadPermission;
import com.yahoo.elide.annotation.UpdatePermission;
import javax.... | 246 |
7,744 | //
// Sample.h
// Texture
//
// Copyright (c) Pinterest, Inc. All rights reserved.
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
//
#import <UIKit/UIKit.h>
//! Project version number for Sample.
FOUNDATION_EXPORT double SampleVersionNumber;
//! Project version string for Sample.
FOUND... | 151 |
474 | <reponame>sidia-dev-team/GearVRf
/*
* Copyright (C) 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met: Redistributions of source co... | 7,308 |
38,805 | <reponame>BSnelling/julia
// This file is a part of Julia. License is MIT: https://julialang.org/license
#include <julia.h>
#include <stdio.h>
#include <math.h>
JULIA_DEFINE_FAST_TLS // only define this once, in an executable
#ifdef _OS_WINDOWS_
__declspec(dllexport) __cdecl
#endif
double my_c_sqrt(double x)
{
r... | 2,770 |
1,088 | <reponame>acezen/graph-learn
/* Copyright 2020 Alibaba Group Holding Limited. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless... | 914 |
609 | <reponame>stevenybw/thrill
#!/usr/bin/env python
##########################################################################
# benchmarks/hashtable/graph_gen.py
#
# Part of Project Thrill - http://project-thrill.org
#
#
# All rights reserved. Published under the BSD-2 license in the LICENSE file.
#######################... | 586 |
333 | import dis
from pypy.interpreter.reverse_debugging import *
from pypy.interpreter import reverse_debugging
from rpython.rlib import revdb
class FakeCode:
hidden_applevel = False
def __init__(self, co_code='', co_lnotab='', co_filename='?'):
self.co_firstlineno = 43
self.co_code = co_code
... | 2,287 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 1,866 |
732 | <filename>lisp-kernel/x86-exceptions.h
/*
* Copyright 2005-2009 <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 requi... | 1,458 |
808 | // Copyright (c) 2022 PaddlePaddle 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... | 2,842 |
346 | #ifndef BACKEND_H
#define BACKEND_H
#include "Event.hh"
#include "Watcher.hh"
#include "Signal.hh"
#include <thread>
class Backend {
public:
virtual ~Backend();
void run();
void notifyStarted();
virtual void start();
virtual void writeSnapshot(Watcher &watcher, std::string *snapshotPath) = 0;
virtual voi... | 295 |
1,932 | <reponame>ruoshuixuelabi/spring-cloud-code
package cn.springcloud.book.config.security;
import cn.springcloud.book.config.models.JwtAuthenticationRequest;
import com.google.gson.Gson;
import org.springframework.security.authentication.AuthenticationDetailsSource;
import org.springframework.stereotype.Component;
impor... | 593 |
877 | #ifndef YTIMING_H
#define YTIMING_H
#include "config.h"
#if defined(_WINDOWS)
#include <windows.h>
#define USE_CLOCK_TYPE_GETTHREADTIMES
#elif defined(_MACH)
#include <mach/mach.h>
#include <mach/thread_info.h>
#define USE_CLOCK_TYPE_THREADINFO
#elif defined(_UNIX)
#include <time.h>
#include <unistd.h>
#include... | 551 |
310 | // Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: MIT
#include <CL/sycl.hpp>
#include <algorithm>
#include <iostream>
using namespace sycl;
int main() {
// Set up queue on any available device
queue q;
// Initialize input and output memory on the host
constexpr size_t N = 256;
std::vecto... | 456 |
776 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
# Max-Planck-Gesellschaft zur Förderung der Wissenschaften e.V. (MPG) is
# holder of all proprietary rights on this computer program.
# You can only use this computer program if you have closed
# a license agreement with MPG or you get the right to use the computer
# program ... | 381 |
538 | <reponame>mosheavni/vint
from vint.ast.node_type import NodeType
from vint.ast.plugin.scope_plugin import ScopePlugin
from vint.linting.level import Level
from vint.linting.policy.abstract_policy import AbstractPolicy
from vint.linting.policy_registry import register_policy
from vint.ast.plugin.scope_plugin import (
... | 636 |
1,926 | """this package contains all the npm modules translated by js2py via node import""" | 17 |
343 | <gh_stars>100-1000
from django import forms
from ..fields import DocumentVersionField
from ..models.document_version_models import DocumentVersion
__all__ = ('DocumentVersionForm', 'DocumentVersionPreviewForm',)
class DocumentVersionForm(forms.ModelForm):
class Meta:
fields = ('comment',)
model ... | 344 |
788 | /*
* 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 ... | 7,393 |
303 | /* Copyright (C) 2005-2011 <NAME> */
package com.lightcrafts.ui.metadata;
import com.lightcrafts.image.BadImageFileException;
import com.lightcrafts.image.ImageInfo;
import com.lightcrafts.image.UnknownImageTypeException;
import com.lightcrafts.image.metadata.*;
import com.lightcrafts.image.metadata.makernotes.MakerN... | 3,451 |
967 | <filename>cointrol/conf/settings_defaults.py<gh_stars>100-1000
"""
Cointrol default settings.
"""
import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
AUTH_USER_MODEL = 'core.User'
ROOT_URLCONF = 'cointrol.server.urls'
INSTALLED_APPS = [
'django_extensions',
'rest_framework',
... | 920 |
531 | <reponame>pitmanst/jpype<gh_stars>100-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.apa... | 2,680 |
348 | /*
* Copyright 2010-2021 Australian Signals Directorate
*
* 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 appl... | 1,476 |
1,052 | package com.zegoggles.smssync.receiver;
import android.content.Context;
import android.content.Intent;
import com.zegoggles.smssync.service.BackupJobs;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.robolectric.RobolectricTestRunner;
import org.robo... | 428 |
1,379 | # Copyright (c) 2022 PaddlePaddle 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 appli... | 309 |
347 | <reponame>jihwahn1018/ovirt-engine<filename>backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetTagsByVmIdQuery.java
package org.ovirt.engine.core.bll;
import javax.inject.Inject;
import org.ovirt.engine.core.bll.context.EngineContext;
import org.ovirt.engine.core.common.queries.GetTagsByVmIdParame... | 307 |
377 | # Copyright 2021 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 in writing, ... | 393 |
372 | <filename>dcerpc/idl_compiler/cspeldcl.c
/*
*
* (c) Copyright 1993 OPEN SOFTWARE FOUNDATION, INC.
* (c) Copyright 1993 HEWLETT-PACKARD COMPANY
* (c) Copyright 1993 DIGITAL EQUIPMENT CORPORATION
* To anyone who acknowledges that this file is provided "AS IS"
* without any express or implied warranty:
* ... | 3,156 |
853 | #ifndef _DIE_H____
#define _DIE_H____
extern void die_usage(const char *);
extern void die_fatal_(const char *, unsigned long long, const char *, const char *, const char *);
#define die_fatal(a, b, c) die_fatal_(__FILE__, __LINE__, (a), (b), (c))
#endif
| 103 |
945 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 1,079 |
854 | <reponame>rakhi2001/ecom7
__________________________________________________________________________________________________
sample 4 ms submission
class Codec:
def encode(self, longUrl):
"""Encodes a URL to a shortened URL.
:type longUrl: str
:rtype: str
"""
return... | 1,357 |
912 | # -*- encoding: utf-8
"""
Theme loader
"""
import os
import logging
try:
import xml.etree.cElementTree as ET
except:
import xml.etree.ElementTree as ET
from . import hex2xterm
# Map scope name to its color pair index
scope_to_pair = {
"global": 21,
"comment": 22,
"string": 23,
"constant.numer... | 2,646 |
4,606 | import tempfile
from dagster import ResourceDefinition, fs_io_manager
from hacker_news.jobs.hacker_news_api_download import (
configured_pyspark,
hacker_news_api_download,
hourly_download_config,
)
from hacker_news.resources.hn_resource import hn_snapshot_client
from hacker_news.resources.parquet_io_manage... | 559 |
1,602 | <filename>third-party/gmp/gmp-src/mpz/com.c
/* mpz_com(mpz_ptr dst, mpz_ptr src) -- Assign the bit-complemented value of
SRC to DST.
Copyright 1991, 1993, 1994, 1996, 2001, 2003, 2012, 2015 Free Software
Foundation, Inc.
This file is part of the GNU MP Library.
The GNU MP Library is free software; you can redistr... | 913 |
1,602 | <reponame>jhh67/chapel<filename>test/library/draft/DataFrames/psahabu/ArithNoneSeries.py
import pandas as pd
I = ["A", "B", "C", "D", "E"]
oneDigit = pd.Series([1, None, 3, None, 5], pd.Index(I))
twoDigit = pd.Series([10, None, 30, None, 50], pd.Index(I))
twoDigitInv = pd.Series([None, 20, None, 40, None], pd.Index(I)... | 279 |
1,745 | <filename>Source/Plugins/bsfOpenAudio/BsOAAudioListener.cpp
//************************************ bs::framework - Copyright 2018 <NAME> **************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#include "BsOAAud... | 929 |
349 | <gh_stars>100-1000
/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2018-2021 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, a... | 8,962 |
591 | <gh_stars>100-1000
{
"title": "Wedge Salad",
"photo": "http://storage.googleapis.com/recipe-app/img/recipes/wedge-salad.jpg",
"description": "The Wedge salad is so easy to make and there are many variation that you can try. This one uses Romaine hearts instead of Iceberg lettuce and Pancetta instead of bacon.<p>The ... | 981 |
1,105 | <reponame>blaquee/WinObjEx64
/*******************************************************************************
*
* (C) COPYRIGHT AUTHORS, 2020 - 2021
*
* TITLE: SUP.C
*
* VERSION: 1.01
*
* DATE: 08 Jan 2021
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
* ANY KIND, EITHER EXPR... | 5,892 |
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... | 1,894 |
559 | import numpy
from generate import *
def generate():
def process(invert, x):
return [numpy.logical_xor(numpy.logical_xor(numpy.insert(x, 0, False)[:-1], x), invert)]
vectors = []
x = random_bit(256)
vectors.append(TestVector([False], [x], process(False, x), "Non-inverted output, 256 Bit input... | 185 |
7,883 | // Copyright (c) 2021 Computer Vision Center (CVC) at the Universitat Autonoma
// de Barcelona (UAB).
// Copyright (c) 2019 Intel Corporation
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
#include "CarSimManagerComponent.h"
#include "Carla/Gam... | 2,672 |
407 | <filename>include/hal_core/netlist/gate_library/gate_type_component/latch_component.h
// MIT License
//
// Copyright (c) 2019 <NAME>, Chair for Embedded Security. All Rights reserved.
// Copyright (c) 2021 Max Planck Institute for Security and Privacy. All Rights reserved.
//
// Permission is hereby granted, free o... | 2,550 |
348 | <filename>jobsapp/views/employee.py
from django.contrib.auth.decorators import login_required
from django.http import Http404
from django.urls import reverse_lazy
from django.utils.decorators import method_decorator
from django.views.generic import ListView, UpdateView
from accounts.forms import EmployeeProfileUpdateF... | 1,023 |
473 | /*
* Copyright (c) 2014 Kaprica Security, 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, mer... | 6,622 |
1,964 | <reponame>ikrima/immer
//
// immer: immutable data structures for C++
// Copyright (C) 2016, 2017, 2018 <NAME>
//
// This software is distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//
#pragma once
namespace immer {
struct no_loc... | 187 |
526 | <reponame>rychagova/egeria
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright Contributors to the ODPi Egeria project.
*/
package org.odpi.openmetadata.accessservices.securityofficer.server.handler;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.odpi.openmetadata.accessservices.securityo... | 9,102 |
2,603 | /*****************************************************************************
* Copyright 2014 Microchip Technology Inc. and its subsidiaries.
* You may use this software and any derivatives exclusively with
* Microchip products.
* THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS".
* NO WARRANTIES, WHETHER EXPRESS, ... | 11,544 |
30,023 | {
"config": {
"create_entry": {
"default": "Para enviar eventos a Home Assistant, deber\u00e1 configurar la funci\u00f3n de webhook en Plaato Airlock. \n\n Complete la siguiente informaci\u00f3n: \n\n - URL: `{webhook_url}` \n - M\u00e9todo: POST \n\n Consulte [la documentaci\u00f3n]({docs_url})... | 305 |
1,848 | <filename>tests/headers/anon_enum.hpp
// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq --rustified-enum ".*"
struct Test {
int foo;
float bar;
enum { T_NONE };
};
typedef enum {
Foo,
Bar,
} Baz;
| 95 |
332 | <reponame>wwjiang007/spring-xd
/*
* Copyright 2014 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... | 3,060 |
529 | <reponame>PervasiveDigital/netmf-interpreter
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
//////////... | 1,018 |
403 | <reponame>licaon-kter/prim-ftpd<filename>apache-ftpserver-1.1.1/core/src/test/java/org/apache/ftpserver/clienttests/SiteTest.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
* r... | 2,517 |
2,793 | <filename>artichoke-backend/vendor/ruby/ruby.c
/**********************************************************************
ruby.c -
$Author$
created at: Tue Aug 10 12:47:31 JST 1993
Copyright (C) 1993-2007 <NAME>
Copyright (C) 2000 Network Applied Communication Laboratory, Inc.
Copyright (C) 2000 Informati... | 29,074 |
988 | <filename>deps/GraphBLAS/Test/GB_mex_omp_max_threads.c
//------------------------------------------------------------------------------
// GB_mex_omp_max_threads: omp_get_max_threads ( )
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2021, Al... | 297 |
17,143 | <gh_stars>1000+
import io
import json
from setuptools import setup
with open('package.json') as f:
package = json.load(f)
package_name = str(package["name"].replace(" ", "_").replace("-", "_"))
setup(
name='dash_html_components',
version=package["version"],
author=package['author'],
author_email=... | 249 |
5,169 | <gh_stars>1000+
{
"name": "KeyChainItemCRUDKit",
"version": "0.0.2",
"summary": "Swift library to CRUD instances of NSData or objects implementing NSCoding into the iOS KeyChain.",
"description": " \n Having authenticated with a web service using OAuth2 and received the tokens I wanted to be able store them\n... | 494 |
799 | <gh_stars>100-1000
{
"name": "CounterCraft Deception Director",
"description": "CounterCraft Deception Solution detects advanced adversaries. Automate counterintelligence campaigns to discover targeted attacks with real-time active response.",
"support": "partner",
"currentVersion": "1.0.5",
"author... | 273 |
2,013 | <reponame>Allen-Webb/rust-protobuf
#include <iostream>
#include <vector>
#include <google/protobuf/util/json_util.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include "interop_pb.pb.h"
using namespace std;
using namespace google::protobuf::util;
void usage(const char* argv0) {
cerr << "u... | 1,180 |
1,192 | // Don't crash.
// RUN: cp %S/modified-header-crash.h %t.h
// RUN: %clang_cc1 -DCAKE -x c-header %t.h -emit-pch -o %t
// RUN: echo 'int foobar;' >> %t.h
// RUN: not %clang_cc1 %s -include-pch %t -fsyntax-only
// FIXME: It is intended to suppress this on win32.
// REQUIRES: ansi-escape-sequences
void f(void) {
foo ... | 148 |
2,151 | <gh_stars>1000+
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "brl_checks.h"
int
main(int argc, char **argv)
{
int result = 0;
/* First check italics with the English table */
const char *str = "He said it wasn't always working as expected.";
const char *typeform = "110000000000000... | 295 |
303 | # -*- coding: utf-8 -*-
class ServiceNotAvailable(Exception):
pass
| 28 |
642 | #pragma once
#include <optional>
namespace AxiomCommon {
template<class Output, class Input>
std::optional<Output> wrapDynamicCast(Input input) {
if (auto cast = dynamic_cast<Output>(input)) {
return cast;
}
return std::nullopt;
}
template<class Output, class Inpu... | 214 |
460 | package de.saxsys.mvvmfx.examples.todomvc.ui;
import de.saxsys.mvvmfx.FxmlView;
/**
* @author manuel.mauky
*/
public class MainView implements FxmlView<MainViewModel> {
}
| 74 |
2,777 | <gh_stars>1000+
#pragma once
#include <QList>
#include <QString>
#include <QStringList>
#include <QMetaType>
namespace LegacyFTB {
//Header for structs etc...
enum class PackType
{
Public,
ThirdParty,
Private
};
struct Modpack
{
QString name;
QString description;
QString author;
QStringL... | 288 |
665 | /* csv.h -*- C++ -*-
<NAME>, 5 April 2010
This file is part of MLDB. Copyright 2010 mldb.ai inc. All rights reserved.
Comma Separated Value parsing code.
*/
#pragma once
#include <string>
#include <vector>
namespace MLDB {
struct ParseContext;
/*... | 501 |
565 | <filename>src/main/cpp/JavaThreadUtils.cpp
/*
* Copyright (c) 2014 Spotify AB
*
* 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 thi... | 986 |
762 | <reponame>gabicavalcante/pymoo<gh_stars>100-1000
__all__ = ["heatmap",
"pcp",
"petal",
"radar",
"radviz",
"scatter",
"star_coordinate"
]
| 138 |
852 | // just for compilation
#include "CondFormats/HcalObjects/interface/HcalPedestals.h"
| 29 |
335 | {
"word": "Unplugged",
"definitions": [
"(of pop or rock music) performed or recorded with acoustic rather than electrically amplified instruments.",
"(of an electrical device) disconnected.",
"Not using any electrical or electronic devices."
],
"parts-of-speech": "Adjective"
} | 105 |
1,618 | <reponame>243f6a8885a308d313198a2e037/snakeviz<filename>snakeviz/__main__.py
import sys
from .cli import main
if __name__ == "__main__":
# __main__.py is ugly and confusing, monkey patch executable to say snakeviz
sys.argv[0] = "snakeviz"
sys.exit(main())
| 112 |
829 | package io.flowing.retail.payment.flow;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
import org.camunda.bpm.engine.impl.el.FixedValue;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
impor... | 414 |
407 | <filename>paas/appmanager/tesla-appmanager-domain/src/main/java/com/alibaba/tesla/appmanager/domain/schema/CustomAddonSchema.java<gh_stars>100-1000
package com.alibaba.tesla.appmanager.domain.schema;
import lombok.Data;
import java.io.Serializable;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.tesla.app... | 430 |
1,127 | <reponame>ryanloney/openvino-1
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from openvino.tools.mo.front.extractor import FrontExtractorOp
from openvino.tools.mo.front.mxnet.extractors.utils import get_mxnet_layer_attrs
from openvino.tools.mo.graph.graph import Node
from openvino.to... | 354 |
1,792 | <reponame>javahongxi/whatsmars-mars001
package org.hongxi.summer.rpc;
import java.util.concurrent.Executor;
/**
* Created by shenhongxi on 2020/8/22.
*/
public interface Callbackable {
void addFinishCallback(Runnable runnable, Executor executor);
void onFinish();
}
| 106 |
6,989 | from catboost import CatBoost, Pool
from collections import Counter
from utils import mean_ndcg
import lightgbm as lgb
import xgboost as xgb
class Data:
def __init__(self, train, test, RankerType):
self.X_train = train[0]
self.y_train = train[1]
self.queries_train = train[2]
self.... | 1,681 |
1,564 | <reponame>BoltsJ/neovim-qt<filename>src/gui/shellwidget/example2.cpp<gh_stars>1000+
#include <QApplication>
#include <QDebug>
#include <QTimer>
#include "shellwidget.h"
#include "helpers.h"
#if defined(Q_OS_WIN) && defined(USE_STATIC_QT)
#include <QtPlugin>
Q_IMPORT_PLUGIN (QWindowsIntegrationPlugin);
#endif
ShellWid... | 460 |
550 | /*
* Copyright 2016 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 required by a... | 3,438 |
7,482 | <filename>bsp/tms320f28379d/libraries/common/deprecated/inc/hw_ecap.h
//###########################################################################
//
// FILE: hw_ecap.h
//
// TITLE: Definitions for the C28x ECAP registers.
//
//###########################################################################
// $TI Rel... | 4,719 |
1,729 | /**
Lightweight profiler library for c++
Copyright(C) 2016-2019 <NAME>, <NAME>
Licensed under either of
* MIT license (LICENSE.MIT or http://opensource.org/licenses/MIT)
* Apache License, Version 2.0, (LICENSE.APACHE or http://www.apache.org/licenses/LICENSE-2.0)
at your option.
The MIT License
Permissio... | 1,073 |
7,091 | <reponame>tanhanzhuo/PaddleNLP
import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddle.io import Dataset, DataLoader
import paddle.distributed as dist
import os
import re
import argparse
import numpy as np
from sklearn.model_selection import train_test_split
from gensim.models.keyedvectors im... | 4,329 |
335 | <reponame>Safal08/Hacktoberfest-1<filename>V/Vicious_adjective.json
{
"word": "Vicious",
"definitions": [
"Deliberately cruel or violent.",
"(of an animal) wild and dangerous to people.",
"Serious or dangerous.",
"Immoral.",
"(of language or a line of reasoning) imperfect... | 156 |
975 | import queue
import socket
import wsproto
from OpenSSL import SSL
from wsproto import WSConnection, events
from wsproto.connection import ConnectionType
from wsproto.events import AcceptConnection, CloseConnection, Message, Ping, Request
from wsproto.extensions import PerMessageDeflate
from seleniumwire.thirdparty.mi... | 4,265 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.