max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
340 | //
// os/unix/x86_64/fpu/fpu_cmp_ole_32.h
//
// This file is subject to the terms and conditions defined in
// 'LICENSE', which is part of this source code package.
//
#include <emmintrin.h>
#include <string.h>
static inline uint8_t fpu_cmp_ole_32(
const uint32_t *fs, const uint32_t *ft) {
float fs_float, ft_floa... | 355 |
647 | <gh_stars>100-1000
#include <stdio.h>
#include <time.h>
#include <iostream>
#include "TimeSession.hh"
#include <cstring>
// CONSTRUCTOR
TimeSession::TimeSession( struct mg_connection *nc ) : WebSocketSession(nc) {
time(&now);
}
// DESTRUCTOR
TimeSession::~TimeSession() {}
void TimeSession::marshallData() {
t... | 602 |
745 | from mrq.utils import MovingETA
def test_movingeta():
eta = MovingETA(2)
assert eta.next(10, t=0) is None
assert eta.next(5, t=1) == 1
assert eta.next(4, t=2) == 4
assert eta.next(2, t=10) == 8
eta = MovingETA(3)
assert eta.next(10, t=0) is None
assert eta.next(9, t=1) == 9
asse... | 254 |
2,144 | <reponame>WangCHX/pinot
/**
* 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... | 13,042 |
2,073 | <filename>activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5814Test.java
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licen... | 1,844 |
353 | package com.xiaomi.infra.chronos.exception;
/**
* The normal exception for chronos.
*/
public class ChronosException extends Exception {
public ChronosException(String message) {
super(message);
}
public ChronosException(String message, Throwable cause) {
super(message, cause);
}
}
| 92 |
348 | {"nom":"Traitiéfontaine","dpt":"Haute-Saône","inscrits":133,"abs":27,"votants":106,"blancs":2,"nuls":23,"exp":81,"res":[{"panneau":"1","voix":52},{"panneau":"2","voix":29}]} | 73 |
905 | from typing import Optional
from uuid import UUID, uuid4
import databases
import sqlalchemy
from fastapi import FastAPI
from starlette.testclient import TestClient
import ormar
app = FastAPI()
DATABASE_URL = "sqlite:///db.sqlite"
database = databases.Database(DATABASE_URL)
metadata = sqlalchemy.MetaData()
class Ba... | 730 |
1,290 | # -*- coding: utf-8 -*-
import binascii
try:
import _winreg as winreg
except ImportError:
import winreg
from lazagne.config.crypto.pyaes.aes import AESModeOfOperationECB
from lazagne.config.module_info import ModuleInfo
from lazagne.config.winstructure import OpenKey, HKEY_CURRENT_USER
class Co... | 1,151 |
1,875 | <filename>src/io/flutter/jxbrowser/JxBrowserStatus.java
/*
* 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.
*/
package io.flutter.jxbrowser;
public enum JxBrowserStatus {
NOT_INSTALLED,
INSTALLATION... | 124 |
348 | {"nom":"Graveron-Sémerville","circ":"2ème circonscription","dpt":"Eure","inscrits":257,"abs":129,"votants":128,"blancs":3,"nuls":2,"exp":123,"res":[{"nuance":"REM","nom":"<NAME>","voix":80},{"nuance":"FN","nom":"<NAME>","voix":43}]} | 93 |
643 | @Controller
public class VelocitySSTI {
@GetMapping(value = "good")
public void good(HttpServletRequest request) {
Velocity.init();
VelocityContext context = new VelocityContext();
context.put("name", "Velocity");
context.put("project", "Jakarta");
String s = "We are using $project $name to render this."... | 151 |
1,337 | <filename>modules/global/src/com/haulmont/cuba/core/sys/javacl/SourcesAndDependencies.java
/*
* Copyright (c) 2008-2016 Haulmont.
*
* 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
*
* ... | 2,340 |
756 | /*
* ====================================================================
* 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
... | 825 |
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.chromecast.base;
class Inheritance {
// Use to test consumption of superclasses of some generic parameter.
public static cla... | 226 |
3,861 | /** @file
This file defines the EFI DNSv6 (Domain Name Service version 6) Protocol. It is split
into the following two main sections:
DNSv6 Service Binding Protocol (DNSv6SB)
DNSv6 Protocol (DNSv6)
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-... | 9,525 |
850 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/framework/versions.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "tensorflow/core/framework/versions.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h... | 7,876 |
648 | {"resourceType":"SearchParameter","id":"Medication-content","url":"http://hl7.org/fhir/SearchParameter/Medication-content","name":"content","publisher":"Health Level Seven International (Pharmacy)","contact":[{"telecom":[{"system":"other","value":"http://hl7.org/fhir"}]},{"telecom":[{"system":"other","value":"http://ww... | 180 |
3,897 | <filename>targets/TARGET_ARM_SSG/TARGET_CM3DS_MPS2/device/drivers/TZ-TRNG/shared/hw/include/dx_reg_base_host.h
/******************************************************************************
* Copyright (c) 2017-2017, ARM, All Rights Reserved *
* SPDX-License-Identifier: Apache-2.0 ... | 1,027 |
1,139 | package com.journaldev.struts2.actions;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.ResultPath;
import org.apache.struts2.convention.annotation.Results;
import com.journaldev.struts2.beans.User;
impo... | 367 |
3,084 |
/*++
Copyright (c) Microsoft Corporation All Rights Reserved
Module Name:
bthhfpmictopo.h
Abstract:
Declaration of topology miniport for the mic (external: headphone).
--*/
#ifndef _SYSVAD_BTHHFPMICTOPO_H_
#define _SYSVAD_BTHHFPMICTOPO_H_
// Function declarations.
NTSTATUS
PropertyH... | 362 |
2,338 | <filename>lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugRanges.cpp
//===-- DWARFDebugRanges.cpp ----------------------------------------------===//
//
// 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... | 1,793 |
14,668 | #ifndef _RAR_VM_
#define _RAR_VM_
#define VM_MEMSIZE 0x40000
#define VM_MEMMASK (VM_MEMSIZE-1)
enum VM_StandardFilters {
VMSF_NONE, VMSF_E8, VMSF_E8E9, VMSF_ITANIUM, VMSF_RGB, VMSF_AUDIO,
VMSF_DELTA
};
struct VM_PreparedProgram
{
VM_PreparedProgram()
{
FilteredDataSize=0;
... | 443 |
511 | /**
******************************************************************************
* @file rtl8721dlp_rcc.h
* @author
* @version V1.0.0
* @date 2016-05-17
* @brief This file contains all the functions prototypes for peripheral reset and clock control driver.
***************************************... | 3,273 |
1,233 | <filename>mantis-connectors/mantis-connector-iceberg/src/test/java/io/mantisrx/connector/iceberg/sink/codecs/IcebergCodecsTest.java
/*
* Copyright 2020 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 obta... | 1,061 |
1,032 | <reponame>Superscalar-riscv/NutShell
#include <cstdio>
#include <cstring>
#include "common.h"
uint64_t getLogLevel(const char * str) {
if(!strcmp("ALL", str)){
return LOG_ALL;
} else if(!strcmp("DEBUG", str)){
return LOG_DEBUG;
} else if(!strcmp("INFO", str)){
return LOG_INFO;
} else if(!strcmp("WA... | 230 |
2,206 | /*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
* * terms of the Apache License, Version 2.0 which is available at
* * https://www.apache.org/licenses/LICENSE-2.0.
* *
* * See the NO... | 742 |
4,075 | /*++
Copyright (c) 2012 Microsoft Corporation
Module Name:
z3_algebraic.h
Abstract:
Additional APIs for handling Z3 algebraic numbers encoded as
Z3_ASTs
Author:
<NAME> (leonardo) 2012-12-07
Notes:
--*/
#ifndef Z3_ALGEBRAIC_H_
#define Z3_ALGEBRAIC_H_
#ifdef __cplusplus
extern "C" {
#endif // __... | 3,347 |
1,035 | desc = """
请先在 config.yaml 中配置以下参数:
addons:
activity:
# 需要刷的关卡
stage: SV-9
# 重复次数
repeat_times: 1000
"""
if __name__ == '__main__':
import config
from addons.activity import ActivityAddOn
try:
stage = config.get('addons/activity/stage')
repeat_times = config.get('addons/... | 242 |
389 | //
// MJCSegmentStylesTools.h
// MJCSegmentInterface
//
// Created by mjc on 2017/11/6.
// Copyright © 2017年 MJC. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
/* 标题栏样式 */
typedef NS_OPTIONS(NSUInteger,MJCTitleBarStyles) {
MJCTitlesClassicStyle = 0, /** 固定无滚动标签样式 */
... | 5,614 |
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... | 1,542 |
19,628 | <reponame>didichuxing/DoraemonKit
package com.didichuxing.doraemonkit.aop.map;
import com.amap.api.location.AMapLocation;
import com.amap.api.location.AMapLocationClient;
import com.didichuxing.doraemonkit.kit.gpsmock.GpsMockManager;
import com.didichuxing.doraemonkit.kit.gpsmock.LocationBuilder;
import com.didichuxin... | 916 |
3,172 | <gh_stars>1000+
import os
from torchtext.utils import (download_from_url, extract_archive)
from torchtext.data.datasets_utils import (
_RawTextIterableDataset,
_wrap_split_argument,
_clean_xml_file,
_clean_tags_file,
_read_text_iterator,
)
from torchtext.data.datasets_utils import _create_dataset_di... | 4,939 |
6,958 | //
// OpFused.hpp
// MNN
//
// Created by MNN on 2020/9/10.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include "geometry/GeometryComputerUtils.hpp"
namespace MNN {
bool opFuse(CommandBuffer& cmd);
} // namespace MNN
| 89 |
1,091 | /*
* Copyright 2020-present Open Networking Foundation
*
* 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... | 717 |
1,062 | <filename>native/src/cpp/impl/dataset/Dataset.cpp
/**
* Copyright 2014 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.apac... | 4,296 |
623 | /*---------------------------------------------------------------------------*/
// Author : hiyohiyo
// Mail : <EMAIL>
// Web : https://crystalmark.info/
// License : The MIT License
/*---------------------------------------------------------------------------*/
#pragma once
#include "Dial... | 478 |
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... | 6,327 |
302 |
# system
from __future__ import print_function
# python lib
import numpy as np
# tf_render
import tensorflow as tf
from src_common.net.resnet_v1_3dmm import encoder_resnet50
from src_common.net.inception_resnet_v1 import identity_inference
from src_common.geometry.face_align.align_facenet import facenet_align
from... | 12,354 |
648 | from imbox.vendors.gmail import GmailMessages
vendors = [GmailMessages]
hostname_vendorname_dict = {vendor.hostname: vendor.name for vendor in vendors}
name_authentication_string_dict = {vendor.name: vendor.authentication_error_message for vendor in vendors}
__all__ = [v.__name__ for v in vendors]
__all__ += ['host... | 138 |
1,724 | /*
* Copyright 2008-present MongoDB, 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 ag... | 821 |
6,478 | <reponame>wzlee/spring-cloud-alibaba<filename>spring-cloud-alibaba-starters/spring-cloud-starter-stream-rocketmq/src/main/java/com/alibaba/cloud/stream/binder/rocketmq/metrics/InstrumentationManager.java
/*
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the ... | 566 |
460 | #include "../../../src/xmlpatterns/parser/qxslttokenlookup_p.h"
| 28 |
427 | package modern.challenge;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.temporal.ChronoUnit;
import java.util.Date;
public class Main {
public static void main(String[] args) {
System.out.println("Working with Date: ");
Date date = new Date();
... | 879 |
347 | <reponame>hbraha/ovirt-engine<gh_stars>100-1000
package org.ovirt.engine.core.vdsbroker.irsbroker;
import org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo;
import org.ovirt.engine.core.common.asynctasks.AsyncTaskType;
import org.ovirt.engine.core.common.vdscommands.DeactivateStorageDomainVDSCommandParamet... | 517 |
15,577 | #pragma once
#include <Parsers/IAST.h>
namespace DB
{
class ASTDatabaseOrNone : public IAST
{
public:
bool none = false;
String database_name;
bool isNone() const { return none; }
String getID(char) const override { return "DatabaseOrNone"; }
ASTPtr clone() const override { return std::make_shar... | 153 |
890 | package com.asylo.client;
import static org.junit.Assert.assertThrows;
import com.asylo.EnclaveInput;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
/** Java te... | 384 |
875 | package com.jeecg.p3.qrcode.service.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.jeecgframework.p3.core.utils.common.PageList;
import org.jeecgframework.p3.core.utils.common.PageQuery;
import org.jeecgframework.p3.core.utils.common.PageQuery... | 1,227 |
3,287 | <filename>src/azure-cli/azure/cli/command_modules/appservice/_completers.py
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license informa... | 315 |
7,451 | <reponame>RJ722/graphene
from graphql.type import GraphQLObjectType, GraphQLSchema
from pytest import raises
from graphene.tests.utils import dedent
from ..field import Field
from ..objecttype import ObjectType
from ..scalars import String
from ..schema import Schema
class MyOtherType(ObjectType):
field = Strin... | 607 |
1,501 | <filename>litex/soc/software/memusage.py
#!/usr/bin/env python3
# This file is Copyright (c) 2020 <NAME> <<EMAIL>>
# License: BSD
import subprocess
import argparse
def print_usage(bios,regions, triple):
rom_usage = 0
ram_usage = 0
readelf = triple + "-readelf"
result = subprocess.run([readelf, '-e'... | 1,059 |
14,668 | <filename>third_party/blink/renderer/core/layout/ng/table/ng_table_row_layout_algorithm.cc
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/layout/ng/table/ng_ta... | 2,986 |
5,146 | {
"pagination": {
"DescribeBatchPredictions": {
"limit_key": "Limit",
"output_token": "NextToken",
"input_token": "NextToken",
"result_key": "Results"
},
"DescribeDataSources": {
"limit_key": "Limit",
"output_token": "NextToken",
"input_token": "NextToken",
... | 315 |
1,576 | package org.commonmark.internal;
import org.commonmark.internal.inline.Position;
import org.commonmark.internal.inline.Scanner;
import org.commonmark.internal.util.Escaping;
import org.commonmark.internal.util.LinkScanner;
import org.commonmark.node.LinkReferenceDefinition;
import org.commonmark.node.SourceSpan;
impor... | 3,920 |
1,760 | <filename>Contests/USACO Solutions/2015-16/Jan 2016/Silver/16 Jan S1.cpp
// #include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
#define ll long long
#define mp make_pair
#define pb push_back
#define pi pair <int, int>
#define vi vector<int>
#define FOR(i, a, b) for (int i=a; i<b; i++)
#defin... | 487 |
475 | /*
* Copyright (C) 2020 The zfoo Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 1,909 |
431 | package com.webcohesion.enunciate.modules.jackson.javac;
import com.webcohesion.enunciate.javac.decorations.DecoratedProcessingEnvironment;
import com.webcohesion.enunciate.javac.decorations.type.DecoratedDeclaredType;
import javax.lang.model.element.Element;
import javax.lang.model.type.DeclaredType;
/**
* @author... | 228 |
1,350 | #!/usr/bin/python
import sys
import os
import fnmatch
import shutil
import re
def main(argv):
# validation
if len(argv) < 4:
print "Usage: " + get_usage()
exit(1)
# figure out source dir
folder = os.path.dirname(os.path.realpath(__file__))
if len(argv) == 5:
folder = argv[4... | 1,599 |
443 | """Remove Job.{author_id,repository_id,patch_id,revision_sha,message,target,cause,parent_id}
Revision ID: <KEY>
Revises: <PASSWORD>
Create Date: 2014-01-05 16:36:43.476520
"""
# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = '<PASSWORD>'
from alembic import op
def upgrade():
op.drop... | 269 |
852 | <reponame>ckamtsikis/cmssw
#include "FWCore/PluginManager/interface/ModuleDef.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "GeneratorInterface/TauolaInterface/interface/TauolaFactory.h"
#include "GeneratorInterface/TauolaInterface/interface/TauolappInterface.h"
DEFINE_EDM_PLUGIN(TauolaFactory, gen::... | 127 |
5,169 | {
"name": "ReactiveSprint",
"version": "0.1.0",
"summary": "ReactiveSprint aims to speed up development by implementing MVVM pattern.",
"description": "ReactiveSprint (RSP) is a framework which provides API for developing apps with MVVM",
"homepage": "https://github.com/ReactiveSprint/RsCocoa",
"license": "... | 306 |
2,151 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/metrics/time_to_first_present_recorder_test_api.h"
#include "ash/metrics/time_to_first_present_recorder.h"
#include "ash/shell.h"
#include ... | 774 |
567 | package org.jolokia.jvmagent.spring.config;
/*
* Copyright 2009-2013 <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
*
* ... | 391 |
695 | <filename>core/src/model/battlefield/army/tacticalAI/TacticalAI.java
package model.battlefield.army.tacticalAI;
import geometry.geom3d.Point3D;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;
import model.battlefield.army.components.Mover;
import model.battlefield.army.co... | 3,328 |
1,116 | from traitlets.config import Config
from ...coursedir import CourseDirectory
from .base import BaseTestApp
from .conftest import notwindows
class TestCourseDirectory(BaseTestApp):
@notwindows
def test_format_path(self):
config = Config()
config.Exchange.course_id = "abc101"
config.Cour... | 262 |
1,346 | <gh_stars>1000+
package com.huanchengfly.tieba.post.adapters;
import android.app.Activity;
import android.content.Context;
import com.huanchengfly.tieba.post.api.models.SearchForumBean;
import com.huanchengfly.tieba.post.R;
import com.huanchengfly.tieba.post.utils.ImageUtil;
import com.huanchengfly.tieba.post.utils.N... | 1,108 |
2,636 | <reponame>yaap/external_honggfuzz
#define _GNU_SOURCE
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <linux/if_tun.h>
#include <net/if.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
#include <sched.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#includ... | 4,196 |
852 | #include "CondFormats/L1TObjects/interface/L1MuScale.h"
#include "CondFormats/L1TObjects/interface/L1MuTriggerScales.h"
#include "CondFormats/L1TObjects/interface/L1MuTriggerPtScale.h"
#include "CondFormats/L1TObjects/interface/L1MuGMTParameters.h"
#include "CondFormats/L1TObjects/interface/L1MuGMTChannelMask.h"
#inclu... | 2,617 |
305 | <reponame>Xaenalt/model_server<filename>tests/functional/object_model/server.py
#
# Copyright (c) 2019-2020 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 1,205 |
799 | <gh_stars>100-1000
import pytest
from dbt.tests.util import run_dbt
models_override__schema_yml = """
version: 2
models:
- name: test_vars
columns:
- name: field
tests:
- accepted_values:
values:
- override
"""
models_override__test_vars_sql = """
select '{{ var("required") }}'::varchar ... | 781 |
460 | package org.wildfly.swarm.arquillian.runtime;
import javax.inject.Inject;
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.asset.StringAsset;
import org.wildfly.swarm.msc.ServiceActivatorArchive;
import org.wildfly.swarm.spi.api.DeploymentProcessor;
import org.wildfly.swarm.spi.api.JARArchive;... | 516 |
2,093 | # ------------------------------------------------------------------------------
# Copyright (c) Microsoft
# Licensed under the MIT License.
# Written by <NAME> (<EMAIL>)
# Modified by <NAME> and <NAME>
# ------------------------------------------------------------------------------
from __future__ import absolute_imp... | 2,325 |
1,738 | <reponame>jeikabu/lumberyard
/*
* 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 ... | 1,076 |
14,668 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_HTML_CONVERSION_MEASUREMENT_PARSING_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_HTML_CONVERSION_MEASUREMENT_PARSING... | 647 |
819 | #coding=utf-8
# Copyright 2017 - 2018 Baidu 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 a... | 624 |
1,144 | #define LOG_TAG "autoconnect_hw"
//#define LOG_NDEBUG 0
#include <hardware/hardware.h>
#include <hardware/autoconnect.h>
#include <cutils/log.h>
#include <malloc.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <math.h>
#include <string.h>
#include <pthread.h... | 4,017 |
735 | <filename>src/test/java/org/mvel2/jsr223/MvelScriptEngineTest.java
package org.mvel2.jsr223;
import javax.script.Compilable;
import javax.script.CompiledScript;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
import javax.script.SimpleBindings;
import org... | 589 |
5,169 | <reponame>Gantios/Specs
{
"name": "OOButtonNode",
"version": "0.1",
"summary": "Custom button class for SpriteKit.",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"homepage": "https://github.com/ooleynich",
"authors": {
"Oleg": "<EMAIL>"
},
"social_media_url": "http://twitter.com/oolein... | 240 |
5,169 | {
"name": "DataViewable",
"version": "0.1.0",
"summary": "An empty data set and loading indicator framework.",
"description": "DataViewable is an extensible, protocol-based framework to make it easy to display empty data sets and loading indicators for any view that is used to display data to users. The DataVie... | 322 |
316 | package com.mapbox.mapboxsdk.location;
import android.animation.TypeEvaluator;
import androidx.annotation.NonNull;
import com.mapbox.mapboxsdk.geometry.LatLng;
class MapboxLatLngAnimator extends MapboxAnimator<LatLng> {
MapboxLatLngAnimator(@NonNull LatLng[] values, @NonNull AnimationsValueChangeListener updateL... | 202 |
369 | /** @file
@brief Header
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
@author
<NAME>
*/
// Copyright 2015 Sensics, Inc.
// TypePack is part of OSVR-Core.
//
// Incorporates code from "meta":
// Copyright <NAME> 2014-2015
//
// Use, modification and distribution is subject to... | 407 |
571 | <gh_stars>100-1000
MSG_OOPP_CALL = "P"
MSG_TEST = "T"
MSG_SHUTDOWN = "S"
MSG_GET_WORKER = "W"
MSG_RELEASE_WORKER = "R"
MSG_TERMINATE_WORKER = "T"
MSG_NO_OP = "N"
| 94 |
453 | <gh_stars>100-1000
package android.widget;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.graphics.PixelFormat;
import android.graphics.RadialGradient;
import android.graphics.Rect;
import android.graphics.Shader;
import android.graphics.drawable.Colo... | 3,725 |
7,407 | <gh_stars>1000+
/*
===========================================================================
Copyright (C) 1999-2005 Id Software, Inc., 2017 Google Inc.
This file is part of Quake III Arena source code.
Quake III Arena source code is free software; you can redistribute it
and/or modify it under the terms of the GNU... | 13,296 |
4,140 | /*
* 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,975 |
578 | package com.tencent.bk.job.crontab.timer;
import lombok.Getter;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
/**
* @author wadema
* @version 1.0
* @date 2021/9/16
*/
@Getter
@ToString
@Component
public class NotificationPolicy ... | 205 |
4,320 | /*
* Copyright (c) 2016-2019, <NAME> <<EMAIL>>
* 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 ... | 1,176 |
636 | <reponame>meadoch1/indy-sdk
from indy import ledger
from typing import List
from indy.error import CommonInvalidStructure
import json
import pytest
@pytest.mark.asyncio
async def test_build_ledgers_freeze_request(did_trustee):
ledgers_ids: List[int] = [0, 6, 78, 751]
expected_response = {
"identifier"... | 650 |
1,917 | <gh_stars>1000+
from flask_sqlalchemy import BaseQuery
from flask_sqlalchemy import SQLAlchemy
def test_default_query_class(db):
class Parent(db.Model):
id = db.Column(db.Integer, primary_key=True)
children = db.relationship("Child", backref="parent", lazy="dynamic")
class Child(db.Model):
... | 677 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridkubernetes.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com... | 4,651 |
4,879 | /*
**********************************************************************
* Copyright (c) 2001-2014, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* Date Name Description
* 08/10/2001 aliu ... | 20,770 |
654 | package org.torproject.android.service.util;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.util.Log;
import org.torproject.android.service.TorServiceConstants;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
imp... | 1,418 |
334 | <reponame>timothygk/c4go
#include "tests.h"
#include <stdio.h>
int main()
{
plan(7);
int i = 0;
// There will be 4 checks in the first loop.
do {
pass("%s", "first do statement");
i = i + 1;
} while (i < 4);
// Only one check in the second loop.
i = 0;
do {
i+... | 383 |
390 | //
// FIFOBufferStream.h
//
// $Id: //poco/1.4/Foundation/include/Poco/FIFOBufferStream.h#1 $
//
// Library: Foundation
// Package: Streams
// Module: FIFOBufferStream
//
// Definition of the FIFOBufferStream class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
/... | 1,675 |
600 | <reponame>mcclung/zfsp<filename>zfs/readcontext.py
import codecs
import logging
from typing import Tuple
from . import ondisk
from . import util
from .constants import Compression, Checksum, TryConfig
logger = logging.getLogger(__name__)
class ReadContext(object):
def __init__(self, vdevs, compression, checks... | 2,363 |
667 | <filename>Zulip/Models/ZUserPresence.h
//
// ZUserPresence.h
// Zulip
//
// Created by <NAME> on 12/31/13.
//
//
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
extern NSString *const ZUserPresenceStatusActive;
extern NSString *const ZUserPresenceStatusIdle;
extern NSString *const ZUserPresenceStat... | 233 |
28,056 | package com.alibaba.json.bvt.basicType;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;
import junit.framework.TestCase;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.LinkedHashMap;
import java.util.Map;
public class BigDecimal_BrowserCompatibl... | 336 |
2,903 | package com.newegg.ec.redis.client;
import com.newegg.ec.redis.entity.AutoCommandParam;
import com.newegg.ec.redis.entity.AutoCommandResult;
import com.newegg.ec.redis.entity.DataCommandsParam;
/**
* 数据相关操作
*
* @author Jay.H.Zou
* @date 2019/8/5
*/
public interface IDatabaseCommand {
String TYPE_NONE = "non... | 797 |
2,691 | <filename>test-suite/generated-src/objc/DBCppException.h
// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from exception.djinni
#import <Foundation/Foundation.h>
@class DBCppException;
@interface DBCppException : NSObject
- (int32_t)throwAnException;
+ (nullable DBCppException *)get;
@end
| 114 |
5,813 | <filename>sql/src/main/java/org/apache/druid/sql/calcite/expression/builtin/HumanReadableFormatOperatorConversion.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding co... | 1,566 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.