max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
428 | <gh_stars>100-1000
/**
* Copyright 2008 - 2011
*
* 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... | 1,041 |
9,402 | <filename>src/coreclr/md/ceefilegen/stdafx.h
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//*****************************************************************************
// stdafx.h
//
//
// Common include file for utility code... | 247 |
30,023 | """An integration with several platforms used with unit tests."""
| 13 |
335 | {
"word": "Parody",
"definitions": [
"Produce a humorously exaggerated imitation of (a writer, artist, or genre)",
"Mimic humorously."
],
"parts-of-speech": "Verb"
} | 84 |
3,508 | <reponame>PraneshASP/Leetcode
package com.fishercoder;
import com.fishercoder.solutions._1528;
import org.junit.BeforeClass;
import org.junit.Test;
import static junit.framework.TestCase.assertEquals;
public class _1528Test {
private static _1528.Solution1 solution1;
private static int[] indices;
@Befor... | 232 |
494 | /**
* Copyright 2013 Netflix, 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 ... | 1,052 |
335 | {
"word": "Traitor",
"definitions": [
"A person who betrays someone or something, such as a friend, cause, or principle."
],
"parts-of-speech": "Noun"
} | 71 |
8,747 | <gh_stars>1000+
// Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD
//
// 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... | 1,514 |
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 ... | 8,074 |
348 | {"nom":"<NAME>","circ":"5ème circonscription","dpt":"Indre-et-Loire","inscrits":1188,"abs":726,"votants":462,"blancs":58,"nuls":16,"exp":388,"res":[{"nuance":"LR","nom":"<NAME>","voix":195},{"nuance":"REM","nom":"<NAME>","voix":193}]} | 95 |
1,886 | """asyncio exceptions."""
__all__ = ('CancelledError', 'InvalidStateError', 'TimeoutError',
'IncompleteReadError', 'LimitOverrunError',
'SendfileNotAvailableError')
class CancelledError(BaseException):
"""The Future or Task was cancelled."""
class TimeoutError(Exception):
"""The oper... | 538 |
1,847 | <gh_stars>1000+
// Copyright (c) 2021 The Orbit 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 CLIENT_DATA_SCOPE_TREE_TIMER_DATA_H_
#define CLIENT_DATA_SCOPE_TREE_TIMER_DATA_H_
#include <absl/synchronization/mutex.h>
#incl... | 1,464 |
365 | # Copyright 2021 Zilliz. 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 agree... | 972 |
302 | <reponame>vadkasevas/BAS
#ifndef SUBPROCESSWEBELEMENT_H
#define SUBPROCESSWEBELEMENT_H
#include "engine_global.h"
#include "iwebelement.h"
namespace BrowserAutomationStudioFramework
{
class ENGINESHARED_EXPORT SubprocessWebElement : public IWebElement
{
Q_OBJECT
QString CreateXmlElement(cons... | 1,717 |
607 | /*
* Copyright (c) 2005-2021 Radiance <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:
*
* o Redistributions of source code must retain the above copyright notice,
* this list of c... | 6,424 |
32,544 | <gh_stars>1000+
package com.baeldung.ctx1;
import com.baeldung.parent.IHomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class Ctx1Controller {
... | 167 |
317 | <gh_stars>100-1000
package com.googlecode.totallylazy;
import com.googlecode.totallylazy.functions.*;
import java.util.Map;
import java.util.concurrent.Callable;
import static com.googlecode.totallylazy.Callers.call;
import static com.googlecode.totallylazy.functions.Functions.returns;
import static com.googlecode.t... | 2,769 |
356 | <reponame>rom1v/usbaudio
#ifndef AOA_H
#define AOA_H
#include <inttypes.h>
#include <stdbool.h>
#include <libusb-1.0/libusb.h>
enum lookup_type {
// devices supporting adb
LOOKUP_BY_ADB_INTERFACE,
// devices having the provided serial
LOOKUP_BY_SERIAL,
// devices having the provided vid:pid
LO... | 431 |
460 | <reponame>zzzgoda/FakeXposed
/*
* Copyright (c) 2021 FakeXposed by sanfengAndroid.
*
* 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
... | 685 |
1,987 | from social_core.backends.echosign import EchosignOAuth2
| 20 |
3,976 | '''
第 0008 题: 一个HTML文件,找出里面的正文。
第 0009 题: 一个HTML文件,找出里面的链接。
'''
# coding=utf-8
from bs4 import BeautifulSoup
def sechBodyUrl(path):
with open(path,encoding='utf-8') as fp:
text = BeautifulSoup(fp, 'lxml')
urls = text.findAll('a')
for u in urls:
print(u['href'])
content ... | 255 |
2,697 | # -*- coding: utf-8 -*-
BOT_NAME = 'spider'
SPIDER_MODULES = ['spiders']
NEWSPIDER_MODULE = 'spiders'
ROBOTSTXT_OBEY = False
# change cookie to yours
DEFAULT_REQUEST_HEADERS = {
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0',
'Cookie': 'OUTFOX_SEARCH_USER_... | 591 |
30,023 | <reponame>MrDelik/core
"""Decorators for ZHA core registries."""
from __future__ import annotations
from collections.abc import Callable
from typing import Any, TypeVar, Union
_TypeT = TypeVar("_TypeT", bound=type[Any])
class DictRegistry(dict[Union[int, str], _TypeT]):
"""Dict Registry of items."""
def re... | 397 |
2,342 | /***********************************************************************
Vczh Library++ 3.0
Developer: <NAME>(vczh)
GacUI::Resource
Interfaces:
***********************************************************************/
#ifndef VCZH_PRESENTATION_RESOURCES_GUIDOCUMENTEDITOR
#define VCZH_PRESENTATION_RESOURCES_GUIDOCUMENT... | 1,118 |
612 | <filename>SAN/lib/procedure/__init__.py
from .train_cycle import train_cycle_gan
from .train_detector import train_san_epoch
| 43 |
5,169 | {
"name": "Combobox",
"version": "1.0.0",
"summary": "swift package combobox of",
"description": "Since the iOS does not own drop-down box controls, so their own packaging drop-down box controls, using swift package",
"homepage": "https://github.com/18739950393/Combobox",
"license": {
"type": "MIT",
... | 286 |
971 | <reponame>adamliheng/DataLink
package com.ucar.datalink.domain.job;
import java.sql.Timestamp;
/**
* Created by user on 2017/9/26.
*/
public class TimingInfo {
private Timestamp preDate;
private Timestamp currentDate;
private Timestamp lastExecuteTime;
private String maxJVMMemory;
private S... | 122 |
347 | <reponame>hbraha/ovirt-engine
package org.ovirt.engine.core.vdsbroker.vdsbroker;
import org.ovirt.engine.core.common.vdscommands.VdsAndVmIDVDSParametersBase;
public class DeleteV2VJobVDSCommand<P extends VdsAndVmIDVDSParametersBase> extends VdsBrokerCommand<P> {
public DeleteV2VJobVDSCommand(P parameters) {
... | 210 |
14,668 | <filename>ui/ozone/platform/wayland/test/mock_buffer.cc
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/ozone/platform/wayland/test/mock_buffer.h"
namespace wl {
const struct wl_buffer_in... | 188 |
484 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Zeebe Community License 1.1. You may not use this file
* ... | 1,414 |
304 | import os
import pycco
import shutil
modules = [
'paip/',
'paip/examples/gps',
'paip/examples/eliza',
'paip/examples/search',
'paip/examples/logic',
'paip/examples/emycin',
'paip/examples/othello',
'./'
]
outdir = 'docs'
prolog_examples = 'paip/examples/prolog'
def module_sources... | 392 |
445 | <filename>tests/models/test_rapidfuzz.py<gh_stars>100-1000
import pandas as pd
from polyfuzz.models import RapidFuzz
from tests.utils import get_test_strings
from rapidfuzz import fuzz
from_list, to_list = get_test_strings()
def test_distance():
model = RapidFuzz()
matches = model.match(from_list, to_list)
... | 412 |
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 ... | 4,543 |
1,144 | <reponame>gokhanForesight/metasfresh
/*
* #%L
* de.metas.adempiere.adempiere.base
* %%
* Copyright (C) 2021 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version... | 1,928 |
1,647 | # Copyright 2019 DeepMind Technologies 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 required by ... | 2,562 |
2,663 | {
"topic": "Docs Basics",
"pageNumber": 6,
"type": "Docs Topic Name",
"definition": {
"text": "Refers to the name of the topic. Pages with the same Docs Topic Name belong to the same topic.",
"updated": 1613755594915
},
"paragraphs": [
{
"style": "Text",
... | 219 |
575 | <reponame>karoyqiu/crashpad<filename>util/process/process_memory_mac.h<gh_stars>100-1000
// Copyright 2014 The Crashpad 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 ... | 1,820 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* 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... | 1,112 |
407 | <gh_stars>100-1000
package com.alibaba.tesla.action.common;
import com.alibaba.tesla.action.constant.ErrorCode;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import java.io.Serializable;
import java.util.HashMap;
/**
* Tesla API后台统一的HTTP body JSON结... | 866 |
777 | // 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 IOS_CHROME_BROWSER_UI_SETTINGS_PHYSICAL_WEB_COLLECTION_VIEW_CONTROLLER_H_
#define IOS_CHROME_BROWSER_UI_SETTINGS_PHYSICAL_WEB_COLLECTION_VIEW_CONT... | 383 |
6,717 | <gh_stars>1000+
#ifndef EXCEPTIONDETAILS_H
#define EXCEPTIONDETAILS_H
#include "../common/Common.h"
#include "../common/JsonWriter.h"
#include "../common/Nullable.h"
#include "../common/Serializer.h"
#include "StackFrame.h"
#include <map>
#include <string>
#include <vector>
namespace ApplicationInsights
{
namespace ... | 625 |
339 | /**
* Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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... | 1,717 |
327 | /*
Copyright (c) DataStax, 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 in writing, so... | 1,137 |
922 | //
// TextElementEditor.h
// TextElementEditor
//
// Created by <NAME> on 7/29/13.
// Copyright (c) 2013 ArkPhone LLC. All rights reserved.
//
#import <MacSVGPlugin/MacSVGPlugin.h>
@class FontPopoverViewController;
@class TextStylesPopoverViewController;
@class TextPathPopoverViewController;
@class TspanPopoverVi... | 752 |
459 | /*
* This file is part of choco-solver, http://choco-solver.org/
*
* Copyright (c) 2021, IMT Atlantique. All rights reserved.
*
* Licensed under the BSD 4-clause license.
*
* See LICENSE file in the project root for full license information.
*/
package org.chocosolver.solver.constraints.nary.alldifferent.algo;
... | 3,854 |
1,738 | <gh_stars>1000+
/*
* 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 li... | 573 |
971 | #pragma once
#include <array>
#include "catalog/catalog_column_def.h"
#include "catalog/catalog_defs.h"
namespace noisepage::storage {
class RecoveryManager;
} // namespace noisepage::storage
namespace noisepage::catalog::postgres {
class Builder;
class PgCoreImpl;
/** The OIDs used by the NoisePage version of pg... | 942 |
310 | <reponame>DevExpress/PropertyCross
//
// SearchResultsTableViewController.h
// propertycross
//
// Created by <NAME> on 17/06/2014.
// Copyright (c) 2014 TasteJS. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "PropertyListingResult.h"
#import "PropertyDataSource.h"
#import "SearchItemBase.h"
@interface... | 189 |
16,870 | // automatically generated by the FlatBuffers compiler, do not modify
import java.nio.*;
import java.lang.*;
import java.util.*;
import com.google.flatbuffers.*;
@SuppressWarnings("unused")
public final class Attacker extends Table {
public static void ValidateVersion() { Constants.FLATBUFFERS_2_0_0(); }
public s... | 807 |
2,479 | <gh_stars>1000+
#!/usr/bin/python
# CSS Test Source Manipulation Library
# Initial code by fantasai, joint copyright 2010 W3C and Microsoft
# additions by <EMAIL> copyright 2013 Hewlett-Packard
# Licensed under BSD 3-Clause: <http://www.w3.org/Consortium/Legal/2008/03-bsd-license>
import lxml
from lxml import e... | 5,866 |
1,655 | <reponame>drewrobb/incubator-storm
/**
* 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, ... | 686 |
6,989 | from __future__ import absolute_import
import unittest
import Cython.Compiler.PyrexTypes as PT
class TestMethodDispatcherTransform(unittest.TestCase):
def test_widest_numeric_type(self):
def assert_widest(type1, type2, widest):
self.assertEqual(widest, PT.widest_numeric_type(type1, type2))
... | 298 |
2,039 | package org.nd4j.parameterserver.distributed.messages.complete;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.nd4j.linalg.api.ndarray.INDArray;
import org.nd4j.parameterserver.distributed.messages.BaseVoidMessage;
import org.nd4j.parameterserver.distributed.messages.MeaningfulMessage;
/**
* This m... | 276 |
3,102 | // RUN: %clang_cc1 -verify -std=c++1y %s
namespace PR17846 {
template <typename T> constexpr T pi = T(3.14);
template <typename T> constexpr T tau = 2 * pi<T>;
constexpr double tau_double = tau<double>;
static_assert(tau_double == 6.28, "");
}
namespace PR17848 {
template<typename T> constexpr T var = 12345... | 500 |
698 | <filename>dv/uvm/core_ibex/list_tests.py
#!/usr/bin/env python3
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
import argparse
import os
import sys
from typing import Dict, List
_CORE_IBEX = os.path.normpath(os.path.jo... | 2,198 |
6,989 | <reponame>AbdulHoffmann/carla_carissma
import pytest
@pytest.fixture(params=[True, False])
def check_dtype(request):
return request.param
@pytest.fixture(params=[True, False])
def check_exact(request):
return request.param
@pytest.fixture(params=[True, False])
def check_index_type(request):
return req... | 187 |
16,259 | # 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.
from fairseq.tasks.translation import TranslationTask
from fairseq.tasks.language_modeling import LanguageModelingTask
from fairseq import che... | 3,284 |
792 | from setuptools import setup, find_packages
setup(
name='catala_en_lexer',
packages=find_packages(),
entry_points="""
[pygments.lexers]
catala_en_lexer = catala_en_lexer.lexer:CatalaEnLexer
""",
)
| 95 |
14,668 | <gh_stars>1000+
// 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.
#include "ui/display/display_layout_builder.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace display {
TEST(DisplayLayoutBui... | 703 |
348 | <filename>docs/data/leg-t2/062/06206794.json
{"nom":"Setques","circ":"6ème circonscription","dpt":"Pas-de-Calais","inscrits":443,"abs":194,"votants":249,"blancs":17,"nuls":4,"exp":228,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":151},{"nuance":"FN","nom":"<NAME>","voix":77}]} | 117 |
14,755 | # -*- coding: utf-8 -*-
from helpers import unittest
import mock
import time
from luigi.contrib.datadog_metric import DatadogMetricsCollector
from luigi.metrics import MetricsCollectors
from luigi.scheduler import Scheduler
WORKER = 'myworker'
class DatadogMetricTest(unittest.TestCase):
def setUp(self):
... | 4,325 |
938 | <gh_stars>100-1000
package slimeknights.tconstruct.smeltery.client.render;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.vertex.IVertexBuilder;
import net.minecraft.block.BlockState;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.IRenderTypeBuffer;
import net.mine... | 1,217 |
1,901 | <gh_stars>1000+
/*
* Copyright 2020 Google LLC. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | 1,952 |
445 | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-
import astropy.units as u
def _parameter_to_value(param):
if param.unit is not None:
return u.Quantity(param)
else:
return param.value
| 101 |
1,178 | from sciapp.action import RectangleROI as Plugin | 13 |
457 | #!/usr/bin/env python
import yaml
import rospy
import os
from collections import OrderedDict
from vrx_gazebo.utils import create_xacro_file
def main():
competition_pkg = rospy.get_param('competition_pkg')
world_name = rospy.get_param('world_name')
s = open(rospy.get_param('requested'))
yaml_name = ro... | 2,754 |
19,438 | <reponame>r00ster91/serenity<filename>Userland/DevTools/HackStudio/ProjectTemplate.h
/*
* Copyright (c) 2021, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/ByteBuffer.h>
#include <AK/LexicalPath.h>
#include <AK/RefCounted.h>
#include <AK/Result.h>
#include <AK/String.h>
#... | 484 |
1,109 | /*******************************************************************************
* Copyright 2016 Intuit
* <p>
* 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
* <p>
* http://www.apache.o... | 707 |
968 | <filename>taokeeper-monitor/src/main/java/com/taobao/taokeeper/monitor/web/BaseController.java<gh_stars>100-1000
package com.taobao.taokeeper.monitor.web;
import org.springframework.beans.factory.annotation.Autowired;
import com.taobao.taokeeper.dao.AlarmSettingsDAO;
import com.taobao.taokeeper.dao.SettingsDAO;
i... | 306 |
751 | <gh_stars>100-1000
/*
* Copyright (c) 2017 Cisco and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | 2,037 |
923 | #ifndef GAIT_CONFIG_H
#define GAIT_CONFIG_H
#define KNEE_ORIENTATION ">>"
#define ODOM_SCALER 1.25
#define PANTOGRAPH_LEG false
#define MAX_LINEAR_VELOCITY_X 0.5
#define MAX_LINEAR_VELOCITY_Y 0.25
#define MAX_ANGULAR_VELOCITY_Z 1.0
#define COM_X_TRANSLATION 0.0
#define SWING_HEIG... | 247 |
1,410 | """Useful distutils commands for continuous integration and deployment
These commands works in python 2 too
"""
from .test import Bench, Test
from .linux_wheels import ManyLinux
from .pypi_version import PyPi
from .s3data import S3Data
__all__ = [
'Bench',
'Test',
'ManyLinux',
'PyPi',
'S3Data'
]
| 110 |
2,015 | #include "applicationoptionsconnection.hpp"
#include <boost/log/trivial.hpp>
#include <nlohmann/json.hpp>
#include <wx/taskbarbutton.h>
#include "../applicationoptions.hpp"
#include "../ui/mainframe.hpp"
using json = nlohmann::json;
using pt::IPC::ApplicationOptionsConnection;
ApplicationOptionsConnection::Applic... | 750 |
4,054 | <filename>documentapi/src/main/java/com/yahoo/documentapi/Session.java
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.documentapi;
/**
* Superclass of all document api sessions. A session provides a handle through
* which an application can ... | 411 |
460 | <reponame>dyzmapl/BumpTop
// Copyright 2012 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
//... | 677 |
1,567 | #pragma once
#include "utils/header.h"
namespace certain {
const uint16_t kMagicNum = 0xac81;
const int kMsgHeaderSize = 14;
struct MsgHeader {
// magic_num equals to kMagicNum
uint16_t magic_num;
uint8_t msg_id;
// The reserved bits are in this field also.
// (TODO)rock: Add use_checksum bit.
uint8_t... | 240 |
425 | <gh_stars>100-1000
{"Sections":[{"Errors":[],"SectionType":"newEntitySection","Id":"newEntitySection_name","Body":"","Name":"name","Type":"composite","Roles":"r1, r2","ListBody":[" - child1"," - child2"],"Range":{"Start":{"Line":2,"Character":0},"End":{"Line":4,"Character":17}}}],"Content":"\n @composi... | 154 |
511 | /****************************************************************************
*
* Copyright 2017 Samsung Electronics 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... | 1,778 |
1,650 | <filename>library/src/main/java/io/nlopez/smartlocation/utils/LoggerFactory.java
package io.nlopez.smartlocation.utils;
import android.util.Log;
/**
* Created by mrm on 20/12/14.
*/
public class LoggerFactory {
public static Logger buildLogger(boolean loggingEnabled) {
return loggingEnabled ? new Blabb... | 1,359 |
2,360 | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RFs(RPackage):
"""Cross-Platform File System Operations Based on 'libuv'
A cross-plat... | 394 |
1,174 | <reponame>lijunru-hub/esp-iot-solution
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
//
// 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/L... | 1,570 |
486 | /*
* 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,589 |
1,414 | #ifndef _BMG_LIB_
#define _BMG_LIB_
/*
// header file for the BMGLib DLL
// This DLL encapsulates the libTIFF library, libJPEG library,
// libPNG library, and the GeoTIFF library.
//
// Copyright 2000, 2001 <NAME>
// All Rights Reserved
// libTIFF is Copyright Sam Leffler and SGI
// libJPEG is Copyright (C) 1991... | 2,473 |
45,293 | /*
* Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
#ifndef RUNTIME_POLYHASH_NAIVE_H
#define RUNTIME_POLYHASH_NAIVE_H
#include <cstdint>
inline int polyHash_naive(int length, uint16_t const* str) {
uint32_t res = 0... | 185 |
321 | <reponame>AppSecAI-TEST/qalingo-engine
/**
* Most of the code in the Qalingo project is copyrighted Hoteia and licensed
* under the Apache License Version 2.0 (release version 0.8.0)
* http://www.apache.org/licenses/LICENSE-2.0
*
* Copyright (c) Hoteia, 2012-2014
* http://www.hotei... | 1,215 |
1,056 | <reponame>ses1112/adito-nb-modules<filename>org-netbeans-modules-db-dataview/src/main/java/org/netbeans/modules/db/dataview/table/JXTableDecorator.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for addit... | 1,728 |
441 | <gh_stars>100-1000
package com.alibaba.markovdemo.engine.stages;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.markovdemo.BO.TestCaseAI;
import com.alibaba.markovdemo.entity.GotReports;
import java.util.List;
import java.util.Map;
/**
* 功能:失败桶
*/
public class FailCaseBucket {
public List<TestCas... | 480 |
2,453 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <swiftCore/_TtCs12_SwiftObject.h>
@class MISSING_TYPE;
@interface _TtC15IDESourceEditor15RenameOperation : _TtCs12_SwiftObject
{
MISSING_TYPE *queue;
MISSING_TYPE *e... | 359 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-rxjf-7fmg-73r7/GHSA-rxjf-7fmg-73r7.json
{
"schema_version": "1.2.0",
"id": "GHSA-rxjf-7fmg-73r7",
"modified": "2022-05-01T07:43:08Z",
"published": "2022-05-01T07:43:08Z",
"aliases": [
"CVE-2006-6941"
],
"details": "index.php in FreeWebshop 2.2.2 and earlier... | 432 |
895 | // slang-ir-lower-generic-call.h
#pragma once
namespace Slang
{
struct SharedGenericsLoweringContext;
/// Lower generic and interface-based code to ordinary types and functions using
/// dynamic dispatch mechanisms.
void lowerGenericCalls(
SharedGenericsLoweringContext* sharedContext);
}
| 97 |
879 | <gh_stars>100-1000
package org.zstack.compute.vm;
import org.zstack.core.cloudbus.CloudBusCallBack;
import org.zstack.core.db.Q;
import org.zstack.core.gc.EventBasedGarbageCollector;
import org.zstack.core.gc.GC;
import org.zstack.core.gc.GCCompletion;
import org.zstack.core.workflow.FlowChainBuilder;
import org.zstac... | 2,185 |
918 | /*
* 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 ... | 536 |
348 | <filename>src/openms/thirdparty/evergreen/src/Tensor/TensorUtils.hpp
#ifndef _TENSOR_UTILS_HPP
#define _TENSOR_UTILS_HPP
#include <vector>
#include "product.hpp"
#include "sum.hpp"
#include "Vector.hpp"
#ifndef MAX_TENSOR_DIMENSION
#define MAX_TENSOR_DIMENSION 12
#endif
// Tuple types:
typedef unsigned long* __rest... | 1,273 |
373 | /** @file
*
* Copyright (c) 2018, Hisilicon Limited. All rights reserved.
* Copyright (c) 2018, Linaro Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*
* Based on the files under Platform/ARM/JunoPkg/AcpiTables/
*
**/
#ifndef _PPTT_H_
#define _PPTT_H_
#include <Platfo... | 885 |
1,144 | <filename>backend/de.metas.business/src/main/java-legacy/org/compiere/process/EMailTest.java
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. ... | 978 |
362 | <filename>api-inference-community/docker_images/spacy/app/pipelines/text_classification.py<gh_stars>100-1000
import os
import subprocess
import sys
from typing import Dict, List
from app.pipelines import Pipeline
class TextClassificationPipeline(Pipeline):
def __init__(
self,
model_id: str,
)... | 770 |
348 | <filename>docs/data/leg-t2/083/08308011.json<gh_stars>100-1000
{"nom":"Bargemon","circ":"8ème circonscription","dpt":"Var","inscrits":1043,"abs":600,"votants":443,"blancs":31,"nuls":7,"exp":405,"res":[{"nuance":"REM","nom":"<NAME>","voix":265},{"nuance":"FN","nom":"<NAME>","voix":140}]} | 116 |
335 | {
"word": "Compression",
"definitions": [
"The action of compressing or being compressed.",
"The reduction in volume (causing an increase in pressure) of the fuel mixture in an internal combustion engine before ignition."
],
"parts-of-speech": "Noun"
} | 94 |
386 | <gh_stars>100-1000
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2010, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are... | 6,344 |
3,062 | import unittest
import datetime
import pykmlib
class PyKmlibAdsTest(unittest.TestCase):
def test_smoke(self):
classificator_file_str = ''
with open('./data/classificator.txt', 'r') as classificator_file:
classificator_file_str = classificator_file.read()
types_file_str = ''
... | 2,446 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.