max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
831 | // Copyright 2000-2019 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.
package org.jetbrains.android.database;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.startup.StartupActivity;
import org.jetbrains.annotations.NotNull... | 156 |
373 | /** @file
Whiskey Lake U RVP Board Initialization Pre-Memory library
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <PiPei.h>
#include <Library/BaseLib.h>
#include <Library/IoLib.h>
#include <Library/BoardInitLib.h>
#include... | 666 |
1,742 | <reponame>fchapoton/sage
"""
TESTS::
sage: from sage.combinat.lyndon_word import *
"""
from sage.misc.lazy_import import lazy_import
lazy_import('sage.combinat.words.lyndon_word', '*', deprecation=19150)
| 87 |
571 | <filename>ContactsSearch/app/src/main/java/com/handsomezhou/contactssearch/view/T9TelephoneDialpadView.java
package com.handsomezhou.contactssearch.view;
import android.annotation.SuppressLint;
import android.content.Context;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;... | 3,204 |
1,883 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright 2012 The MITRE Corporation *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* y... | 4,329 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/Symbolication.framework/Symbolication
*/
#import <Symbolication/Symbolication-Structs.h>
@protocol VMUMemory <NSObject>
- (VMURange)addressRange;
- (id)architecture;
- (BOOL)isContiguous;
- (id)memoryAtAddress:(un... | 179 |
678 | <gh_stars>100-1000
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/iTunesStoreUI.framework/iTunesStoreUI
*/
#import <iTunesStoreUI/SUScriptObject.h>
@class NSArray;
@interface SUScriptABMultiValue : SUScriptObject {
void *_multiValue; // 36 = 0x24
}
@property(r... | 533 |
336 | #ifndef _SYSTEM_DNET_H
#define _SYSTEM_DNET_H
#ifdef _WIN32
#include <windows.h>
#include <pthread.h>
#define inline __inline
#define __attribute__(x)
typedef long ssize_t;
#define fcntl(a,b,c) 0
#define close closesocket
#define strtok_r strtok_s
#define localtime_r(a,b) localtime_s(b,a)
#define usleep(x) 0
static p... | 225 |
310 | {
"name": "iF-281DPB",
"description": "A 28 inch TFT display.",
"url": "http://www.i-inc-usa.com/Product/iF281HPB.htm"
} | 57 |
3,799 | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 9,020 |
763 | package org.batfish.datamodel.bgp.community;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertFalse;
import com.google.common.testing.EqualsTester;
import java.math.BigInteger;
import org.apache.commons.lang3.SerializationUtils;
imp... | 1,553 |
348 | <gh_stars>100-1000
{"nom":"Fontaine-le-Comte","circ":"2ème circonscription","dpt":"Vienne","inscrits":3012,"abs":1621,"votants":1391,"blancs":100,"nuls":39,"exp":1252,"res":[{"nuance":"REM","nom":"<NAME>","voix":933},{"nuance":"LR","nom":"M. <NAME>","voix":319}]} | 108 |
1,433 | //******************************************************************
//
// Copyright 2015 Samsung Electronics All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance... | 783 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000
{"nom":"Villers-les-Pots","circ":"2ème circonscription","dpt":"Côte-d'Or","inscrits":784,"abs":441,"votants":343,"blancs":19,"nuls":14,"exp":310,"res":[{"nuance":"LR","nom":"<NAME>","voix":175},{"nuance":"REM","nom":"<NAME>","voix":135}]} | 124 |
314 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "CDStructures.h"
@class NSString;
@interface IDEEntityIdentifier : NSObject <NSCopying>
{
unsigned long long _hashValue;
int _sharedState;
int _entityType;
NSSt... | 562 |
933 | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 999 |
3,084 | /*++
Copyright (c) Microsoft Corporation. All rights reserved.
Module Name:
batclass_prepublish.h
Abstract:
This module defines pre-publish definations to be made available in DDK/SDK.
N.B. This file must not be included when batclass.h defines
BATTERY_MINIPORT_INFO_V1_1 type an... | 700 |
303 | <gh_stars>100-1000
{"id":8013,"line-1":"New Mexico","line-2":"United States","attribution":"©2016 DigitalGlobe, Landsat, NMRGIS, USDA Farm Service Agency","url":"https://www.google.com/maps/@33.773154,-106.895428,13z/data=!3m1!1e3"} | 89 |
811 | <reponame>mitsuhiko/lol-html<filename>tests/data/selector_matching/css3-modsel-78b-info.json
{
"description": "Selectors - NEGATED :last-child pseudo-class (css3-modsel-78b)",
"selectors": {
".green": "css3-modsel-78b.expected0.html",
".t1 td:not(:last-child)": "css3-modsel-78b.expected1.html",
"p > *:n... | 211 |
536 | <filename>src/main/java/freemarker/core/BuiltInsWithLazyConditionals.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 licenses this fil... | 2,532 |
335 | {
"word": "Genu",
"definitions": [
"The knee.",
"A part of certain structures resembling a knee, in particular a bend in the corpus callosum of mammals."
],
"parts-of-speech": "Noun"
} | 86 |
1,968 | <filename>include/mpg123/src/libmpg123/dct64_i486.c
/*
dct64_i486.c: DCT64, a plain C variant for i486
copyright 1998-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
see COPYING and AUTHORS files in distribution or http://mpg123.org
initially written by <NAME>
*/
/* Discrete Cosine Tans... | 6,636 |
5,169 | {
"name": "FaceDetectSDK",
"version": "0.0.3",
"summary": "A face detect SDK to detect face acts, poses, landmarks.",
"homepage": "https://g.hz.netease.com/MultiMediaiOS/FaceDetectSDK",
"license": "MIT",
"authors": {
"shenqianqian": "<EMAIL>"
},
"source": {
"git": "https://g.hz.netease.com/Multi... | 337 |
460 | #include "../../../src/network/socket/qabstractsocket_p.h"
| 23 |
1,916 | <reponame>e-schumann/simbody<filename>SimTKcommon/Random/src/SFMT-params216091.h
#ifndef SFMT_PARAMS216091_H
#define SFMT_PARAMS216091_H
#define POS1 627
#define SL1 11
#define SL2 3
#define SR1 10
#define SR2 1
#define MSK1 0xbff7bff7U
#define MSK2 0xbfffffffU
#define MSK3 0xbffffa7fU
#define ... | 1,042 |
15,577 | #pragma once
#include <Parsers/IParserBase.h>
namespace DB
{
class ParserExplainQuery : public IParserBase
{
protected:
const char * end;
const char * getName() const override { return "EXPLAIN"; }
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
public:
ParserExplainQuery(co... | 130 |
1,093 | /*
* Copyright 2015-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 2,254 |
488 | <reponame>ouankou/rose<filename>projects/RTC2/tests/c/pointer_example9.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#define PTR_SIZE 100
#define PTR2_SIZE 10
unsigned int* fn1(unsigned int* input) {
printf("input: %u\n", *input);
printf("input: %u\n", *(input++));
return (uns... | 323 |
800 | {
"navigationBarTitleText": "掘金",
"enablePullDownRefresh": true,
"usingComponents": {
"postItemOne": "/components/postItemOne/postItemOne",
"postItemTwo": "/components/postItemTwo/postItemTwo"
}
} | 83 |
1,848 | <filename>tests/headers/objc_interface_type.h
// bindgen-flags: --objc-extern-crate -- -x objective-c
// bindgen-osx-only
@interface Foo
@end
struct FooStruct {
Foo *foo;
};
void fooFunc(Foo *foo);
static const Foo *kFoo;
| 91 |
612 | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
from PIL import Image
from PIL import ImageDraw
from PIL import ImageFont
import os, torch
from pathlib import Path
import... | 3,194 |
32,544 | <reponame>DBatOWL/tutorials
package com.baeldung.streamcollectors;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;
import org.junit.Assert;
import org.junit.Test;
public class StreamGroupingByCol... | 1,135 |
1,358 | import builtins
import io
import sys
import psutil
import pytest
from distributed.system import memory_limit
def test_memory_limit():
limit = memory_limit()
assert isinstance(limit, int)
assert limit <= psutil.virtual_memory().total
assert limit >= 1
def test_memory_limit_cgroups(monkeypatch):
... | 413 |
8,092 | #
# 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 not... | 2,272 |
1,609 | <reponame>kazuyaujihara/rdkit
//
// Copyright (c) 2018, <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:
//
// * Redistributions of source code must retain the above copyright
/... | 838 |
389 | #
# The MIT License (MIT)
#
# Copyright (c) 2016 <NAME>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, ... | 770 |
2,698 | <filename>app/src/main/java/io/pslab/communication/sensors/AD7718.java
package io.pslab.communication.sensors;
import android.util.Log;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.math3.analysis.polynomials.PolynomialFunction;
import io.pslab.communication.peripherals.SPI;
import java.io.IO... | 5,091 |
3,200 | <reponame>GuoSuiming/mindspore<gh_stars>1000+
/**
* Copyright 2020 Huawei Technologies Co., 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/license... | 684 |
49,076 | <gh_stars>1000+
/**
* Annotations denoting the roles of types or methods in the overall architecture
* (at a conceptual, rather than implementation, level).
*
* <p>Intended for use by tools and aspects (making an ideal target for pointcuts).
*/
@NonNullApi
@NonNullFields
package org.springframework.stereotype;
im... | 116 |
389 | <filename>gosu-core-api/src/main/java/gw/lang/ir/IRAbstractLoopStatement.java
/*
* Copyright 2014 Guide<NAME>, Inc.
*/
package gw.lang.ir;
import gw.lang.UnstableAPI;
import gw.lang.ir.statement.IRLoopStatement;
import gw.lang.ir.statement.IRReturnStatement;
@UnstableAPI
public abstract class IRAbstractLoopStateme... | 126 |
532 | package ai.yue.library.test.webflux.aspect;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.Signature;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.beans.factory.annotation.Autowired;
imp... | 828 |
1,475 | <filename>geode-core/src/main/java/org/apache/geode/management/internal/util/JsonUtil.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 li... | 783 |
579 | #include "transport.h"
#include "util/huge_alloc.h"
namespace erpc {
Transport::Transport(TransportType transport_type, uint8_t rpc_id,
uint8_t phy_port, size_t numa_node, FILE *trace_file)
: transport_type_(transport_type),
rpc_id_(rpc_id),
phy_port_(phy_port),
numa_node_(n... | 190 |
1,682 | /*
Copyright (c) 2012 LinkedIn Corp.
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... | 1,980 |
1,338 | /*
* Copyright 2006, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef NET_STAT_H
#define NET_STAT_H
#include <OS.h>
#include <sys/socket.h>
#define NET_STAT_SOCKET 1
#define NET_STAT_PROTOCOL 2
typedef struct net_stat {
int family;
int type;
int protocol;
c... | 214 |
3,139 | package com.jme3.shadow;
/*
* Copyright (c) 2009-2021 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above ... | 4,595 |
9,516 | <gh_stars>1000+
import copy
import torch.nn as nn
import dgl
from modules import MemoryModule, MemoryOperation, MsgLinkPredictor, TemporalTransformerConv, TimeEncode
class TGN(nn.Module):
def __init__(self,
edge_feat_dim,
memory_dim,
temporal_dim,
... | 1,830 |
350 | package com.github.penfeizhou.animation.webp.decode;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Paint;
import com.github.penfeizhou.animation.decode.Frame;
import com.github.penfeizhou.animation.io.Reader;
import com.github.penfeizhou... | 810 |
27,296 | <reponame>frank-dspeed/nw.js<gh_stars>1000+
#!/usr/bin/env python
import BaseHTTPServer, SimpleHTTPServer
import ssl
import sys
PORT = int(sys.argv[1])
class MyHandler(BaseHTTPServer.BaseHTTPRequestHandler):
def _set_headers(s):
s.send_response(200)
s.send_header('Content-type', 'text/html')
... | 1,046 |
1,125 | // Copyright 2020-2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | 766 |
695 | <reponame>arock121/pocketnet.core<gh_stars>100-1000
/* This file was generated automatically by the Snowball to ANSI C compiler */
#ifdef __cplusplus
extern "C" {
#endif
extern struct SN_env* german_UTF_8_create_env(void);
extern void german_UTF_8_close_env(struct SN_env* z);
extern int german_UTF_8_stem(struct SN_... | 138 |
698 | <gh_stars>100-1000
//
// MSWKCustomProtocol.h
// JXBWebKit
//
// Created by jinxiubo on 2018/5/9.
// Copyright © 2018年 jinxiubo. All rights reserved.
//
#import <Foundation/Foundation.h>
__attribute__((objc_subclassing_restricted))
@interface JXBWKCustomProtocol : NSURLProtocol
@end
| 116 |
1,350 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.cosmos.implementation;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.ser.std.StdSerializer... | 464 |
4,054 | <gh_stars>1000+
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/storage/persistence/filestorage/has_mask_remapper.h>
#include <gtest/gtest.h>
namespace storage {
using NodeList = std::vector<api::MergeBucketCommand::Node>;
const NodeList merge... | 965 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/006/00602131.json
{"nom":"Sallagriffon","circ":"2ème circonscription","dpt":"Alpes-Maritimes","inscrits":58,"abs":25,"votants":33,"blancs":4,"nuls":1,"exp":28,"res":[{"nuance":"FN","nom":"<NAME>","voix":15},{"nuance":"REM","nom":"<NAME>","voix":13}]} | 133 |
764 | package io.eventuate.javaclient.commonimpl.common.schema;
import com.fasterxml.jackson.databind.JsonNode;
public interface EventUpcaster {
JsonNode upcast(JsonNode json);
}
| 63 |
746 | <reponame>tomassatka/OpenLineage<filename>client/python/tests/test_events.py
# 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 requir... | 1,682 |
2,542 | <reponame>gridgentoo/ServiceFabricAzure<filename>src/test/current/source/NativeReplicatorStack/TpccService/StockValue.cpp<gh_stars>1000+
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt ... | 820 |
1,682 | <gh_stars>1000+
/*
Copyright (c) 2018 LinkedIn Corp.
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 ... | 644 |
622 | <reponame>Jackque/flashback
/*
* Copyright (c) LinkedIn Corporation. All rights reserved. Licensed under the BSD-2 Clause license.
* See LICENSE in the project root for license information.
*/
package com.linkedin.flashback.serializable;
import org.testng.Assert;
import org.testng.annotations.Test;
/**
* @autho... | 293 |
335 | {
"word": "Manifestation",
"definitions": [
"An event, action, or object that clearly shows or embodies something abstract or theoretical.",
"The action or fact of showing something.",
"A symptom of an ailment.",
"A version or incarnation of something or someone.",
"An ap... | 138 |
333 | package com.alipay.api.domain;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 模版主核销区信息
*
* @author auto create
* @since 1.0, 2020-09-03 15:40:07
*/
public class TemplateOperation... | 1,385 |
1,982 | <filename>libs/utils.py<gh_stars>1000+
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The package that contains groups all the functions needed by other scripts."""
import logging
import os
import bs4
import requests
import pymongo
from telegram import TelegramError
DATABASE = ""
USERS = {
'telegramID': [],
... | 1,569 |
2,391 | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import itertools
from collections import OrderedDict
from typing import List, Union
import networkx as nx
from pytorchvideo.neural_engine import HookBase
class NeuralEngine:
"""
NeuralEngine takes a list of hooks and executes them in th... | 1,018 |
30,023 | """The NEW_NAME integration."""
from __future__ import annotations
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import Platform
from homeassistant.core import HomeAssistant
from homeassistant.helpers import aiohttp_client, config_entry_oauth2_flow
from . import api
from .const import ... | 522 |
354 | <reponame>iabernikhin/VK-GL-CTS
/*-------------------------------------------------------------------------
* drawElements Quality Program OpenGL ES 3.0 Module
* -------------------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 ... | 5,868 |
1,244 | <reponame>caiohamamura/libcxx<gh_stars>1000+
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
... | 209 |
435 | <gh_stars>100-1000
{
"copyright_text": "Standard YouTube License",
"description": "Understanding bubble dynamics is an important component in understanding a variety of physical systems. Numerical simulations of these systems is appealing given the limited number of analytic cases and the expense and constraints of... | 440 |
2,151 | // Copyright 2014 the V8 project 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 V8_COMPILER_C_SIGNATURE_H_
#define V8_COMPILER_C_SIGNATURE_H_
#include "src/machine-type.h"
namespace v8 {
namespace internal {
namespace comp... | 1,868 |
17,481 | <filename>javatests/dagger/functional/producers/cancellation/CancellationPolicyTest.java
/*
* Copyright (C) 2018 The Dagger 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
*
*... | 1,805 |
479 | <reponame>jeremyvdw/aurora
#
# 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... | 664 |
1,056 | <reponame>arusinha/incubator-netbeans
/*
* 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... | 1,191 |
918 | /*
* Copyright (c) 2018 <NAME>
*
* Distributed under the MIT License. See LICENSE.md at
* https://github.com/LiquidPlayer/LiquidCore for terms and conditions.
*/
#include "HeapObjects.h"
#include "Isolate.h"
#include "Context.h"
using namespace V82JSC;
using namespace v8;
HeapObject * HeapAllocator::Alloc(Isola... | 8,737 |
2,111 | <gh_stars>1000+
/*
* nvbio
* Copyright (c) 2011-2014, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright... | 3,836 |
1,664 | /*
* 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 ... | 706 |
679 | <gh_stars>100-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 license... | 1,542 |
377 | <gh_stars>100-1000
from typing import Callable, Optional, Tuple
import equinox as eqx
import jax
import jax.flatten_util as fu
import jax.lax as lax
import jax.numpy as jnp
import jax.scipy as jsp
from ..custom_types import Bool, Int, PyTree, Scalar
from ..misc import rms_norm
from ..solution import RESULTS
from .bas... | 2,654 |
1,425 | /*
* 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 ... | 653 |
52,316 | import os
import unittest
from test import support
from test.support import import_helper
# skip tests if _ctypes was not built
ctypes = import_helper.import_module('ctypes')
ctypes_symbols = dir(ctypes)
def need_symbol(name):
return unittest.skipUnless(name in ctypes_symbols,
'{!r... | 174 |
2,661 | /* include/graphics/SkOSSound.h
**
** Copyright 2006, Google 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 req... | 337 |
490 | from sys import argv
from os.path import expanduser as expu, expandvars as expv
from os.path import basename, dirname, abspath, exists
from builtins import input
from rm_protection.config import Config
c = Config()
def pprint(msg):
global c
print(c.protect_prefix + msg)
def protect(protect_args=None):
... | 536 |
32,544 | package com.baeldung.patterns.es.events;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class UserCreatedEvent extends Event {
private String userId;
private String firstName;
private String las... | 110 |
438 | <reponame>StuntsPT/toyplot
# Copyright 2014, Sandia Corporation. Under the terms of Contract
# DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain
# rights in this software.
"""Generate MPEG-4 videos."""
import logging
import os
import subprocess
import toyplot.png
log = logging.getLogge... | 1,272 |
1,127 | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <vpu/middleend/pass_manager.hpp>
#include <precision_utils.h>
#include <utility>
#include <memory>
#include <set>
#include <vpu/compile_env.hpp>
#include <vpu/stages/stub_stage.hpp>
#include <vpu/stages/mx_stage.hpp>
#inc... | 4,361 |
329 | //
// DMSearchFieldCell.h
// DotMail
//
// Created by <NAME> on 11/12/13.
// Copyright (c) 2013 CodaFi Inc. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface DMSearchFieldCell : NSTextFieldCell <NSTextViewDelegate, NSLayoutManagerDelegate>
- (id)_fieldEditor;
@end
| 113 |
413 | <reponame>developersancho/FolderResideMenu
package com.dk.sample.folder.residemenu;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import and... | 2,002 |
573 | <gh_stars>100-1000
// Copyright 2015, VIXL authors
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this ... | 11,846 |
12,278 | <filename>ReactNativeFrontend/ios/Pods/boost/boost/gil/dynamic_step.hpp<gh_stars>1000+
//
// Copyright 2005-2007 Adobe Systems Incorporated
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
#ifndef BOOST_GIL_DYN... | 326 |
389 | package gw.specification.temp.generics;
public interface AssertEvaluator<T, A extends BaseAssert<T,A>> {
A evaluate( A assertion );
} | 48 |
550 | package play.mvc.results;
import play.exceptions.UnexpectedException;
import play.mvc.Http.Request;
import play.mvc.Http.Response;
/**
* 200 OK with a text/plain
*/
public class RenderHtml extends Result {
String text;
public RenderHtml(CharSequence text) {
this.text = text.toString();
... | 251 |
573 | <reponame>capablevms/VIXL<gh_stars>100-1000
// Copyright 2015, VIXL authors
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyr... | 62,750 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.io;
import java.nio.channels.WritableByteChannel;
import java.nio.ByteBuffer;
import java.io.IOException;
import com.yahoo.io.GrowableBufferOutputStream;
import org.junit.Before;
import org.junit.... | 1,601 |
809 | /*
* @file
*
* @date Apr 12, 2013
* @author: <NAME>
*/
#ifndef NO_PAGE_H_
#define NO_PAGE_H_
#define PAGE_SIZE() OPTION_MODULE_GET(embox__mem__NoPage,NUMBER,page_size)
#ifndef __LDS__
static inline struct page_allocator *page_allocator_init(char *start, size_t len, size_t page_size) {
return NULL;
}
static i... | 288 |
6,304 | /*
* Copyright 2019 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SKSL_EXTERNALFUNCTIONCALL
#define SKSL_EXTERNALFUNCTIONCALL
#include "include/private/SkTArray.h"
#include "src/sksl/ir/SkSLExpression.h"
#include "src/sksl/ir/SkSLExt... | 940 |
821 | <gh_stars>100-1000
import sys
sys.path.append("./CommonTestScripts")
import System
import Test
import CircuitEditorUtil
CircuitEditorUtil.SetGlobals(schemaLoader, Schema)
doc = atfDocService.OpenNewDocument(editor)
#Add a button and verify
btn1 = editingContext.Insert[Module](CircuitEditorUtil.CreateModuleN... | 1,323 |
3,102 | // RUN: %clang_cc1 -fsyntax-only %s
template<unsigned I>
struct FibonacciEval;
template<unsigned I>
struct Fibonacci {
enum { value = FibonacciEval<I-1>::value + FibonacciEval<I-2>::value };
};
template<unsigned I>
struct FibonacciEval {
enum { value = Fibonacci<I>::value };
};
template<> struct Fibonacci<0> {
... | 559 |
351 | __doc__ = '''
Logger for testing.
'''
__author__ = "<NAME> <<EMAIL>>"
__version__ = "0.1-1.45"
import sys
def print_newline():
print("")
def print_title(s):
fmt = "=========={0:^30}=========="
print(fmt.format(s))
def print_section(s):
fmt = "----------{0:^30}----------"
print(fmt.format(s))
d... | 334 |
343 | from django.utils.translation import ugettext_lazy as _
from mayan.apps.rest_api import serializers
from mayan.apps.rest_api.relations import MultiKwargHyperlinkedIdentityField
from ..literals import DOCUMENT_FILE_ACTION_PAGE_CHOICES
from ..models.document_file_models import DocumentFile
from ..models.document_file_p... | 2,480 |
784 | <reponame>hejiang123/jboot<gh_stars>100-1000
/**
* Copyright (c) 2015-2021, <NAME> 杨福海 (<EMAIL>).
* <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.org/lice... | 674 |
939 | <reponame>srihari-humbarwadi/neural-structured-learning
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | 4,520 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.