max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,338 | <filename>src/tests/kits/storage/BasicTest.cpp
// BasicTest.cpp
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <set>
using std::set;
#include "BasicTest.h"
// count_available_fds
static
int32
count_available_fds()
{
set<int> fds;
int fd;
while ((fd = dup(1)) != -1)
fds.insert(fd);
for (se... | 1,067 |
347 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.cjj;
public final class R {
public static final class anim {
public static int abc_fade_in=0x7f040000;
pu... | 160,622 |
1,863 | <gh_stars>1000+
//
// 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 list of conditions and the following disclaimer.
// * Redist... | 3,120 |
482 | <gh_stars>100-1000
// License: BSD 2 Clause
// Copyright (C) 2010, Google Inc. All rights reserved.
// Copyright (C) 2015+, The LabSound Authors. All rights reserved.
#include "LabSound/core/AudioNodeInput.h"
#include "LabSound/core/AudioBus.h"
#include "LabSound/core/AudioContext.h"
#include "LabSound/core/AudioNode.... | 2,046 |
23,464 | #import "GeneratedPluginRegistrant.h" | 12 |
2,707 | <reponame>ronaldocan/jetlinks-community
package org.jetlinks.community.notify.voice.aliyun;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.aliyuncs.CommonRequest;
import com.aliyuncs.CommonResponse;
import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.IAcsClient;
import com.a... | 1,807 |
831 | <filename>android/src/com/android/tools/idea/navigator/nodes/ndk/includes/resolver/IncludeResolver.java
/*
* Copyright (C) 2017 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 c... | 893 |
421 |
/*
This program converts a String* containing an IP address, in dotted-quad notation for
IPv4 or in colon-hexadecimal for IPv6, into an instance of the IPAddress class.
Then it uses the overloaded IPAddress ToString method to display the address in
its standard notation.
*/
// <Snippet1>
#using <System.dll>
... | 885 |
465 | <reponame>jasonnoy/COMP5329<filename>src/models/utils/__init__.py<gh_stars>100-1000
from .factory import create_model
__all__ = ['create_model'] | 55 |
6,989 | ///////////////////////////////////////////////////////////////////////////////
//
/// \file outqueue.h
/// \brief Output queue handling in multithreaded coding
//
// Author: <NAME>
//
// This file has been put into the public domain.
// You can do whatever you want with this file.
//
////////////////... | 1,998 |
600 | <reponame>villcore/jafka
/**
* 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
*... | 2,666 |
713 | package org.infinispan.scripting.utils;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.stream.Stream;
public class JSArrays {
static final Method SCRIPTUTILS_CONVERT;
static {
Class<?> SCRIPTUTILS;
try {
SCRIPTUTILS = Class.forName("org.openjdk.nashorn.api.scrip... | 459 |
3,027 | from hummingbot.strategy.market_trading_pair_tuple import MarketTradingPairTuple
from hummingbot.strategy.hedge.hedge_config_map import hedge_config_map as c_map
from hummingbot.strategy.hedge.hedge import HedgeStrategy
from hummingbot.strategy.hedge.exchange_pair import ExchangePairTuple
def start(self):
maker_e... | 729 |
665 | /* floating_point.h -*- C++ -*-
<NAME>, 27 January 2005
Copyright (c) 2005 <NAME>. All rights reserved.
This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
---
Utilities to deal with floating point numbers.
*/
#pragma once
#inclu... | 2,933 |
8,468 | <filename>src/Cedar/CM.h
// SoftEther VPN Source Code - Developer Edition Master Branch
// Cedar Communication Module
// CM.h
// Header of CM.c
#ifdef OS_WIN32
#ifndef CM_H
#define CM_H
#include "GlobalConst.h"
#include "Mayaqua/MayaType.h"
// Constants
#define CM_REG_KEY "Software\\" GC_REG_C... | 705 |
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 CHROME_BROWSER_CONTINUOUS_SEARCH_INTERNAL_SEARCH_RESULT_EXTRACTOR_PRODUCER_H_
#define CHROME_BROWSER_CONTINUOUS_SEARCH_INTERNAL_SEARCH_RESULT_EXTR... | 797 |
347 | <filename>backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AbstractGraphicsDeviceCommand.java
package org.ovirt.engine.core.bll;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import org.ovirt.engine.core.bll.context.CommandContext;
import org.ovirt.engine.core.bll.... | 975 |
3,428 | <gh_stars>1000+
{"id":"00072","group":"spam-2","checksum":{"type":"MD5","value":"eb147f0714c89bf35a0ab1852890555d"},"text":"From <EMAIL> Thu Jul 5 12:24:46 2001\nReturn-Path: <<EMAIL>>\nDelivered-To: <EMAIL>\nReceived: from ns.ns.gongbuhaja.com (unknown [172.16.58.315]) by\n mail.netnoteinc.com (Postfix) with SMTP... | 1,922 |
348 | <gh_stars>100-1000
{"nom":"Beaumont-Monteux","circ":"1ère circonscription","dpt":"Drôme","inscrits":865,"abs":482,"votants":383,"blancs":43,"nuls":11,"exp":329,"res":[{"nuance":"REM","nom":"<NAME>","voix":180},{"nuance":"LR","nom":"<NAME>","voix":149}]} | 102 |
505 | package de.rieckpil.blog.dashboard;
import org.springframework.stereotype.Service;
@Service
public class DashboardService {
public Integer[] getAnalyticsGraphData() {
return new Integer[]{1, 2, 3, 4, 5, 6};
}
}
| 77 |
578 | /*
* 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... | 2,550 |
510 | package com.jpmorgan.cakeshop.metrics;
public interface TickListener {
public void nextTick(double val);
}
| 36 |
1,644 | // Copyright 2017 The Nomulus 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 a... | 3,064 |
14,499 | <reponame>JacobBarthelmeh/infer
/*
* 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.
*/
#include <stdlib.h>
void test() {
int* s = NULL;
*s = 42;
}
| 96 |
1,131 | //
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you ... | 1,809 |
468 | <filename>examples/libc/x86_64/_types/_uint64_t.h
#ifndef __UINT64_T_H_
#define __UINT64_T_H_
typedef unsigned long long uint64_t;
#endif //__UINT64_T_H_
| 76 |
394 | #include "switchfiltercommand.h"
#include "model/modellocator.h"
#include "gitlivkcmdevt.h"
#include <QDebug>
SwitchFilterCommand::SwitchFilterCommand(QObject *parent) :
GitlAbstractCommand(parent)
{
}
bool SwitchFilterCommand::execute(GitlCommandParameter &rcInputArg, GitlCommandParameter &rcOutputArg)... | 441 |
2,151 | #ifdef _MSC_VER
__declspec(dllexport)
#else
__attribute__((visibility("default")))
#endif
int foo() {
return 42;
}
| 47 |
575 | // 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 "chrome/browser/ui/user_education/active_tab_tracker.h"
#include <utility>
#include "base/time/tick_clock.h"
#include "chrome/browser/ui/tabs/t... | 816 |
6,304 | <filename>src/third_party/skia/src/ports/SkNDKConversions.cpp
/*
* Copyright 2020 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/ports/SkNDKConversions.h"
namespace {
static const struct {
SkColorType colorType;
... | 1,929 |
4,054 | <filename>searchlib/src/vespa/searchlib/fef/itablemanager.h
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "table.h"
namespace search {
namespace fef {
/**
* This is an interface used to access registered tables.
**/
class ITableManag... | 215 |
524 | #pragma once
#include "contentloader.h"
#include "../types/chat.h"
namespace Utils {
class MediaLoader;
}
namespace Ui
{
class DialogPlayer;
}
namespace Previewer
{
class GalleryItem;
class GalleryLoader : public ContentLoader
{
Q_OBJECT
public:
GalleryLoader(const QString& _aimId, const QString& _... | 1,669 |
328 | <gh_stars>100-1000
package com.dragon.flow.config;
import com.dragon.tools.common.SpringContextHolder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @program: flow
* @description: 流程配置
* @author: Bruce.Liu
* @create: 2021-04-01 23:36
**/
@C... | 191 |
348 | {"nom":"Velaine-sous-Amance","circ":"1ère circonscription","dpt":"Meurthe-et-Moselle","inscrits":242,"abs":123,"votants":119,"blancs":12,"nuls":3,"exp":104,"res":[{"nuance":"SOC","nom":"Mme <NAME>","voix":53},{"nuance":"REM","nom":"Mme <NAME>","voix":51}]} | 105 |
922 | //
// SCPDownload.h
// macSVG
//
// Created by <NAME> on 8/12/13.
//
//
// adapted from -
//
// DFSSHWrapper
//
// Created by <NAME> on 23/10/2011.
// Copyright 2011 Home. All rights reserved.
//
// and libssh2 - http://libssh2.org
#import <Foundation/Foundation.h>
@interface SCPDownload : NSObject
- (NSData... | 192 |
1,127 | <reponame>si-eun-kim/openvino
// Copyright (C) 2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <vector>
#include "intel_gpu/primitives/roll.hpp"
#include "test_utils.h"
namespace cldnn {
template <>
struct type_to_data_type<FLOAT16> {
static const data_types value = data_types::f16;
};
... | 4,925 |
1,689 | <gh_stars>1000+
package org.hamcrest.object;
import org.hamcrest.Matcher;
import org.junit.Test;
import static org.hamcrest.AbstractMatcherTest.*;
import static org.hamcrest.core.IsEqual.equalTo;
import static org.hamcrest.object.HasToString.hasToString;
public final class HasToStringTest {
private static final ... | 692 |
1,428 | <reponame>kennethsequeira/Hello-world
#include<iostream>
using namespace std;
int main(){
int n;
cout<<"Give number of stations ";
cin>>n;
int a[2][n];
cout<<"Give ass1"<<endl;
for(int i=0;i<n;i++){
cin>>a[0][i];
}
cout<<"Give ass2"<<endl;
for(int i=0;i<n;i++){
cin>>a[1][i];
}
int t[2][n];
t[0][0]=0;t[1][0]=0;
cout<<... | 812 |
372 | /*
* Copyright 2013-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 law or agreed to in w... | 7,489 |
372 | <reponame>tizenorg/platform.upstream.krb5<gh_stars>100-1000
/*
* Copyright 2008 Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States Government.
* It is the responsibility of any person o... | 1,864 |
334 | <gh_stars>100-1000
"""Handle package compatibility."""
try:
from dse import cqlengine
from dse.cluster import Session, Cluster
from dse.cqlengine import columns, connection, CQLEngineException, query, management
from dse.auth import PlainTextAuthProvider
from dse.cqlengine.management import create_... | 464 |
592 | {
"layers": {
"AMSRE_Soil_Moisture_SCA_Day": {
"id": "AMSRE_Soil_Moisture_SCA_Day",
"title": "Soil Moisture (Single Channel Algorithm, Day)",
"subtitle": "Aqua / AMSR-E",
"description": "amsre/AMSRE_Soil_Moisture_SCA_Day",
"group": "overlays",
"tags": "soil moisture sca",
... | 260 |
14,668 | <reponame>chromium/chromium<filename>chrome/browser/ui/user_education/tutorial/tutorial_test_util.h
// 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 CHROME_BROWSER_UI_USER_EDUCATION_TUTORIAL_TUTO... | 530 |
376 | <gh_stars>100-1000
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//AES CCM Mode Encryption
namespace CcmTasksKsgen{ ///<Start generation of key-stream. This operation will stop by itself when completed.
using Addr = Register::Address<0x4000f000,0xffffffff,0x00000000,unsigned>;
}
... | 4,614 |
777 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This command-line program converts an effective-TLD data file in UTF-8 from
// the format provided by Mozilla to the format expected by Chrome. Th... | 1,474 |
2,151 | // 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.
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_HEAP_MARKING_VISITOR_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_HEAP_MARKING_VISITOR_H_
#include "third_p... | 3,060 |
2,151 | // 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.
#ifndef UI_GL_GL_IMAGE_IO_SURFACE_EGL_H_
#define UI_GL_GL_IMAGE_IO_SURFACE_EGL_H_
#include "ui/gl/gl_image_io_surface.h"
#include <egl/EGL.h>
namespace... | 349 |
831 | <reponame>phpc0de/idea-android
/*
* Copyright (C) 2017 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... | 2,599 |
643 | <filename>java/ql/test/query-tests/security/CWE-200/semmle/tests/Files.java
package com.google.common.io;
import java.io.File;
public class Files {
/** Maximum loop count when creating temp directories. */
private static final int TEMP_DIR_ATTEMPTS = 10000;
public static File createTempDir() {
Fi... | 357 |
1,894 | # 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.
import contextlib
from google.appengine.api import modules
from google.appengine.api import namespace_manager
from google.appengine.ext import ndb
from inf... | 801 |
1,668 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import taggit.managers
class Migration(migrations.Migration):
dependencies = [
('taggit', '0002_auto_20150616_2121'),
('assets', '0008_auto_20160122_1429'),
]
operations = [
... | 1,253 |
1,511 | /* Copyright 2006-2008, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License"); | 31 |
3,227 | // Copyright (c) 2005 INRIA (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
//
// $URL$
// $Id$
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
//
// Author(s) : <NAME>, <NAME>, <NAME>
#ifndef CGAL_SURFACE_MESH_PARAMETERIZATION_DISCRETE_CONFORMAL_MAP_PARAMET... | 3,323 |
571 | /***************************************************************************
Copyright 2015 Ufora 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/licen... | 819 |
678 | <filename>Source/ActionNodeController.h<gh_stars>100-1000
/* ActionNodeController */
#import <Cocoa/Cocoa.h>
typedef enum {
CMSelectedSegmentForBuiltinAction = 0,
CMSelectedSegmentForScriptAction,
CMSelectedSegmentForUserScriptAction
} CMSelectedSegment;
@interface ActionNodeController : NSObject
{
IBOutlet NSOu... | 515 |
14,668 | <filename>components/paint_preview/browser/paint_preview_base_service_test_factory.h
// 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 COMPONENTS_PAINT_PREVIEW_BROWSER_PAINT_PREVIEW_BASE_SERVICE_T... | 644 |
753 | # -*- coding: utf-8 -*-
"""
BLE Client for python-for-android
"""
import asyncio
import logging
import uuid
import warnings
from typing import Callable, Optional, Union
from bleak.backends.device import BLEDevice
from bleak.backends.service import BleakGATTServiceCollection
from bleak.exc import BleakError
from bleak.... | 9,468 |
32,544 | package com.baeldung.java14.record;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class PersonUnitTest {
@Test
public void givenSameNameAndAddre... | 1,588 |
11,750 | try:
# Set matplotlib backend once here
import matplotlib
matplotlib.use("Agg")
except:
pass
| 43 |
2,137 | <reponame>lxconan/cms-attacking<gh_stars>1000+
package org.hibernate.tool.internal.dialect;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Iterator;
import java.util.Map;
import java.util.NoSuchElementException;
import org.hibernate.exception.spi.SQLExcep... | 941 |
3,417 | from fastapi import APIRouter, Body, Depends, HTTPException, status
from pydantic.error_wrappers import ErrorWrapper, ValidationError
from sqlalchemy.exc import IntegrityError
from sqlalchemy.orm import Session
from dispatch.database.core import get_db
from dispatch.database.service import common_parameters, search_fi... | 1,368 |
856 | <reponame>OlegJakushkin/s3prl
# -*- coding: utf-8 -*- #
"""*********************************************************************************************"""
# FileName [ preprocess_timit.py ]
# Synopsis [ preprocess text transcripts and audio speech for the TIMIT dataset ]
# Author [ <NAME> (Andi611)... | 1,770 |
406 | package com.nirima.jenkins.plugins.docker;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;
import hudson.model.Node;
import jenkins.model.Jenkins;
/**
* This constant interface defines the identifiers of label keys used at containers, which
* are generated using this plu... | 964 |
301 | <reponame>ZeroMagic/Community-Policy
{
"resourceGroupSuffix": {
"type": "String",
"metadata": {
"displayName": "Resource Group Suffix",
"description": "Resource Groups containing this suffix will be permitted to deploy only the VM images definied in other parts of this Policy... | 443 |
3,212 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 1,304 |
320 | <filename>src/sound/SDLSoundDriver.hh
#ifndef SDLSOUNDDRIVER_HH
#define SDLSOUNDDRIVER_HH
#include "SoundDriver.hh"
#include "SDLSurfacePtr.hh"
#include "MemBuffer.hh"
#include <SDL.h>
namespace openmsx {
class Reactor;
class SDLSoundDriver final : public SoundDriver
{
public:
SDLSoundDriver(const SDLSoundDriver&)... | 415 |
328 | <gh_stars>100-1000
/**
* @file olashowfile.cpp
*
*/
/* Copyright (C) 2020 by <NAME> mailto:<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 with... | 1,634 |
5,169 | <gh_stars>1000+
{
"name": "GKUtilities",
"version": "0.1.3",
"summary": "GKUtilities component",
"description": "GKUtilities UI component",
"homepage": "http://appus.pro",
"license": "Apache License Version 2.0",
"authors": {
"<NAME>": "<EMAIL>"
},
"platforms": {
"ios": "8.0"
},
"source": ... | 208 |
713 | package org.infinispan.remoting.transport;
/**
* A listener to be notified when an asynchronous cross-site request is completed.
*
* @author <NAME>
* @since 10.0
*/
@FunctionalInterface
public interface XSiteAsyncAckListener {
/**
* Invoked when an ack for an asynchronous request is received.
* <p>
... | 273 |
482 | <filename>code/iaas/model/src/main/java/io/cattle/platform/core/util/VolumeUtils.java
package io.cattle.platform.core.util;
import org.apache.commons.codec.digest.DigestUtils;
public class VolumeUtils {
public static String externalId(String externalId) {
if (externalId == null) {
return null... | 203 |
310 | <reponame>DevExpress/PropertyCross<filename>neomad/src/com/propertycross/neomad/event/Event.java
package com.propertycross.neomad.event;
/**
* @author Neomades
*/
public class Event {
public static class Type {
public static final char ERROR = 0x01;
public static final char LOAD = 0x02;
public static final ch... | 485 |
1,806 | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
import os.path
from pants.backend.terraform.target_types import (
TerraformModulesGeneratingSourcesField,
TerraformModulesGeneratorTarget,
... | 901 |
677 | /*
* Copyright (c) 2020 Bitdefender
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _GPACACHE_H_
#define _GPACACHE_H_
#include "introtypes.h"
///
/// Describes on GPA cache entry.
///
typedef struct _GPA_CACHE_ENTRY
{
QWORD Gpa; ///< Gpa this entry maps to.
void *Hva; ///< Host ... | 1,112 |
615 | //
// Programmer: <NAME> <<EMAIL>>
// Creation Date: Tue Feb 10 21:57:42 PST 2015
// Last Modified: Tue Feb 10 21:57:45 PST 2015
// Filename: midifile/tools/shutak.cpp
// Website: http://midifile.sapp.org
// Syntax: C++11
//
// Description: Convert lines of MIDI note numbers into MIDI files.
// ... | 2,485 |
3,262 | <reponame>code-disaster/halley
#pragma once
#include "halley/core/api/halley_api_internal.h"
namespace Halley {
class CoreAPIWrapper : public CoreAPIInternal {
public:
CoreAPIWrapper(CoreAPI& parent);
void registerPlugin(std::unique_ptr<Plugin> plugin) override;
Vector<Plugin*> getPlugins(PluginType type) o... | 299 |
14,668 | <reponame>zealoussnow/chromium
// 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.
package org.chromium.chrome.browser.ui.android.webid.data;
import org.chromium.base.annotations.CalledByNative;
import org... | 370 |
441 | /**
* XQuery implementation.
*/
package org.basex.query; | 18 |
1,056 | <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
* ... | 2,472 |
2,663 | {
"topic": "Docs Paragraph Styles",
"pageNumber": 7,
"type": "Docs Error - Style",
"definition": {
"text": "This style is used by the system itself to show you when you entered incorrect parameters for some styles. You can use this style as well to show readers errors in the context of what you ... | 305 |
453 | /* libc/sys/linux/sys/errno.h - Errno variable and codes */
/* Written 2000 by <NAME> */
#ifndef _SYS_ERRNO_H
#define _SYS_ERRNO_H
/* --- from newlin's sys/errno.h --- */
#include <sys/reent.h>
#ifndef _REENT_ONLY
#define errno (*__errno())
extern int *__errno _PARAMS ((void));
#endif
extern __IMPORT _CONST char... | 329 |
1,936 | // Original code Copyright Willowgarage as part of ROS, adapted here (BSD).
// http://ros.org/wiki/vocabulary_tree
#ifndef VOCABULARY_TREE_DISTANCE_H_
#define VOCABULARY_TREE_DISTANCE_H_
#include <stdint.h>
#include <Eigen/Core>
#include <vocabulary-tree/hamming.h>
namespace loop_closure {
namespace distance {
/**
... | 1,216 |
12,252 | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apach... | 1,215 |
1,352 | package com.ruoyi.common.base;
import lombok.Data;
import java.io.Serializable;
/**
* Ztree树结构实体类
*
* @author ruoyi
*/
@Data
public class Ztree implements Serializable {
private static final long serialVersionUID = 1L;
/** 节点ID */
private Long id;
/** 节点父ID */
private Long pId;
/** 节点... | 270 |
372 | from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from builtins import object
import os
import sys
import logging
import threading
from ..dag import walk, ThreadedWalker, UnlimitedSemaphore
from ..plan import Step, build_plan, build_graph
import botocore.exce... | 3,309 |
3,353 | <filename>tests/utils.h<gh_stars>1000+
#pragma once
#include "pch.h"
std::wstring new_guid();
| 42 |
729 | /*-
* Copyright (c) 2010 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | 1,123 |
1,909 | package org.knowm.xchange.oer.service;
import static org.assertj.core.api.Assertions.assertThat;
import java.io.IOException;
import java.math.BigDecimal;
import org.junit.Test;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.ExchangeFactory;
import org.knowm.xchange.currency.Currency;
import org.knowm.xch... | 513 |
2,151 | <filename>experimental/svg/model/SkSVGAttributeParser.cpp<gh_stars>1000+
/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkParse.h"
#include "SkSVGAttributeParser.h"
#include "SkSVGTypes.h"
namespace {
// TODO: ... | 8,551 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-m67w-v6pq-c7w8",
"modified": "2022-05-13T01:06:34Z",
"published": "2022-05-13T01:06:34Z",
"aliases": [
"CVE-2016-3685"
],
"details": "SAP Download Manager 2.1.142 and earlier generates an encryption key from a small key space on Windows and Mac systems, which a... | 619 |
335 | {
"word": "Eulogy",
"definitions": [
"A speech or piece of writing that praises someone or something highly, especially a tribute to someone who has just died."
],
"parts-of-speech": "Noun"
} | 76 |
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.
package org.chromium.support_lib_glue;
import android.webkit.WebView;
import com.android.webview.chromium.SharedWebViewRendererClientAdapter;
import org... | 909 |
335 | {
"word": "Perfectionism",
"definitions": [
"Refusal to accept any standard short of perfection.",
"A doctrine holding that perfection is attainable, especially the theory that human moral or spiritual perfection should be or has been attained."
],
"parts-of-speech": "Noun"
} | 97 |
4,538 | <gh_stars>1000+
/*
* Copyright 1999-2019 Alibaba Cloud 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
*
* Un... | 417 |
354 | <filename>src/memhunter.cpp<gh_stars>100-1000
#include "common.h"
void ShowHelp()
{
TraceHelpers::TraceConsole(" _____ _ _ ");
TraceHelpers::TraceConsole("| |___ _____| |_ _ _ ___| |_ ___ ___ ");
TraceHelpers::TraceConsole("| | | | -_| | | | | | _| -_| _|");
TraceHelpers... | 1,799 |
719 | <filename>katrain/core/utils.py
import heapq
import math
import os
import random
import struct
import sys
from typing import List, Tuple, TypeVar
try:
import importlib.resources as pkg_resources
except ImportError:
import importlib_resources as pkg_resources
T = TypeVar("T")
def var_to_grid(array_var: List[... | 1,303 |
3,428 | {"id":"00776","group":"spam-2","checksum":{"type":"MD5","value":"22f3f3942932c3d3b6e254bcab9673d1"},"text":"From <EMAIL> Mon Jul 22 18:34:42 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy@localhost.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Postfix) with ESMTP ... | 932 |
340 | # -*- coding: utf-8 -*-
from ..regression import least_squares, irls
from ..testing import requires
@requires("numpy")
def test_irls():
import numpy as np
x = np.linspace(0, 100)
y = np.exp(-x / 47)
b, c, info = irls(x, np.log(y))
assert abs(b[1] + 1 / 47) < 1e-5
assert np.all(c < 1e-4)
... | 370 |
3,913 | <reponame>inprise1980/ruoyi-vue-pro
package cn.iocoder.yudao.coreservice.modules.infra.service.file.impl;
import cn.hutool.core.io.FileTypeUtil;
import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.file.InfFileDO;
import cn.iocoder.yudao.coreservice.modules.infra.dal.mysql.file.InfFileCoreMapper;
import cn... | 848 |
765 | //===-- RangeTest.cpp ----------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------------------------... | 3,806 |
3,252 | <reponame>dk25021999/mmf
import json
import pandas as pd
import torch
from mmf.utils.file_io import PathManager
class CaptionsDatabase(torch.utils.data.Dataset):
"""
Dataset for Flickr Annotations
"""
SPLITS = {"train": ["train"], "val": ["val"], "test": ["test"]}
def __init__(self, config, spl... | 1,712 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.