max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
377 | <filename>public/locales/pt/offers.json
{
"Send a message": "Enviar uma mensagem",
"At most {{count}} guests.": "No máximo, um hóspede.",
"At most {{count}} guests._plural": "No máximo, {{count}} hóspedes.",
"Accommodation": "Alojamento",
"Travelling? Organising an event? Just making a dinner and wo... | 583 |
3,102 | <gh_stars>1000+
// RUN: %clang_cc1 -E -verify %s
#define FOO 1
// The error message should be on the #include line, not the 1.
// expected-error@+1 {{expected "FILENAME" or <FILENAME>}}
#include FOO
#define BAR BAZ
// expected-error@+1 {{expected "FILENAME" or <FILENAME>}}
#include BAR
| 111 |
5,156 | <gh_stars>1000+
/* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */
#include "util.h"
static void* do_thread(__attribute__((unused)) void* p) {
atomic_puts("EXIT-SUCCESS");
return NULL;
}
int main(void) {
pthread_t thread;
struct rlimit limit;
int ret = getrlimit(RLIMIT_NOFILE, &... | 413 |
515 | <reponame>kraehlit/CTK
/*=============================================================================
Library: CTK
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except ... | 622 |
455 | <reponame>zmxdream/FlexFlow
# Copyright 2020 Stanford University, Los Alamos National Laboratory
#
# 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... | 1,909 |
352 | <filename>plugins/crawloverview-plugin/src/test/java/com/crawljax/plugins/crawloverview/BeanToReadableMapTest.java
package com.crawljax.plugins.crawloverview;
import static org.hamcrest.collection.IsMapContaining.hasEntry;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
import java.u... | 288 |
1,444 | <gh_stars>1000+
package mage.cards.d;
import mage.abilities.Ability;
import mage.abilities.dynamicvalue.common.StaticValue;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.abilities.effects.common.ReturnToHandFromBattlefieldAllEffect;
import... | 1,922 |
407 | <gh_stars>100-1000
// MIT License
//
// Copyright (c) 2019 <NAME>, Chair for Embedded Security. All Rights reserved.
// Copyright (c) 2021 Max Planck Institute for Security and Privacy. All Rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and a... | 742 |
1,345 | from functools import lru_cache
import numpy as np
def interpolate_coordinates(old_coord, new_coord, brush_size):
"""Interpolates coordinates depending on brush size.
Useful for ensuring painting is continuous in labels layer.
Parameters
----------
old_coord : np.ndarray, 1x2
Last posit... | 2,414 |
821 | /*
* Copyright (C) 2018 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 required by applicable law or agreed to ... | 338 |
764 | // 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... | 591 |
367 | #import "MBEMesh.h"
@import Metal;
@interface MBECubeMesh : MBEMesh
- (instancetype)initWithDevice:(id<MTLDevice>) device;
@end
| 53 |
618 | <reponame>xuejike/hprose-java_rl<filename>src/main/java/hprose/io/serialize/java8/OffsetDateTimeSerializer.java
/**********************************************************\
| |
| hprose |
| ... | 1,377 |
831 | /*
* Copyright (C) 2019 Square, 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 agre... | 7,695 |
2,116 | {
"name": "end-to-end-instrumentation-browser",
"version": "0.0.1",
"description": "Following https://webpack.js.org/guides/getting-started/",
"private": true,
"scripts": {
"lint": "npx eslint -c .eslintrc.js 'src/**/*.js' --fix",
"build": "webpack"
},
"author": "",
"license": "ISC",
"devDepen... | 342 |
4,552 | <reponame>ojmakhura/DIGITS
from model import Tower
from utils import model_property
import tensorflow as tf
import tensorflow.contrib.slim as slim
import utils as digits
class UserModel(Tower):
@model_property
def inference(self):
_x = tf.reshape(self.x, shape=[-1, self.input_shape[0], self.input_sha... | 1,098 |
4,320 | /*
* Copyright (c) 2019, Adam <<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 of cond... | 1,544 |
305 | <reponame>gaoxiaoyang/webrtc
/*
* Copyright (c) 2016 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the... | 2,481 |
1,350 | <filename>sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/CourseWithEtag.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.spring.data.cosmos.domain;
import com.azure.spring.data.cosmos.core.mapping.Containe... | 1,049 |
826 | <reponame>julescmay/LuxCore<gh_stars>100-1000
// SPDX-License-Identifier: BSD-3-Clause
// Copyright Contributors to the OpenColorIO Project.
#include <algorithm>
#include <cmath>
#include <iostream>
#include <sstream>
#include <OpenColorIO/OpenColorIO.h>
#include "BitDepthUtils.h"
#include "HashUtils.h"
#include "Gp... | 2,848 |
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.
#include "core/layout/ng/ng_physical_fragment.h"
#include "core/layout/ng/ng_break_token.h"
#include "core/layout/ng/ng_physical_box_fragment.h"
#include... | 561 |
373 | /** @file
Implementation of Fsp Misc UPD Initialization.
Copyright (c) 2017 - 2021, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <PiPei.h>
#include <Library/DebugLib.h>
#include <Library/PciLib.h>
#include <Library/PeiLib.h>
#include <FspEas.h>... | 1,196 |
545 | <gh_stars>100-1000
/*
Copyright (c) 2011, Intel 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 notice, this
list of ... | 8,710 |
2,113 | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... | 10,294 |
2,753 | /*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: <NAME>
*/
#include <benchmark/benchmark.h>
#include "shogun/features/DotFeatures_benchmark.h"
#include "shogun/features/hashed/HashedDocDotFeatures.h"
#include "shogun/lib/NGramTokenizer.h"
#include "shogun/mathematics/R... | 721 |
513 | #ifdef AM_EXPORT
struct am_export_flags {
bool export_windows;
bool export_windows64;
bool export_mac;
bool export_mac_app_store;
bool export_linux;
bool export_html;
bool export_ios_xcode_proj;
bool export_android_studio_proj;
bool export_data_pak;
bool debug;
bool recurse;... | 667 |
6,958 | //
// SoftmaxGrad.hpp
// MNN
//
// Created by MNN on 2019/04/22.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef SoftmaxGrad_hpp
#define SoftmaxGrad_hpp
#include "OpGrad.hpp"
#endif /* SoftmaxGrad_hpp */
| 88 |
595 | {
"shader-toy.textures": {
"0": "file://C:/Users/keijiro/Documents/ShaderSketches/Images/Adventure.png"
}
} | 59 |
2,109 | <filename>tests/test_utils.py
import pytest
from click.testing import CliRunner
from jupyter_book.cli.main import init as myst_init
from jupyter_book.utils import init_myst_file
def test_myst_init(cli: CliRunner, temp_with_override):
"""Test adding myst metadata to text files."""
path = temp_with_override.jo... | 510 |
629 | /*
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "base.h"
namespace cherrypi {
using namespace cherrypi::buildtypes;
using namespace cherrypi::autobuild;
class ABBOhydrachees... | 886 |
446 | <reponame>apivovarov/neo-ai-dlr
package com.amazon.dlr.examples.classification.dlr;
import android.app.Activity;
import java.io.IOException;
/** This is DLRKerasMobileNetV2. */
public class DLRKerasMobileNetV2 extends DLRModelBase {
/** MobileNet requires additional normalization of the used input. */
priva... | 497 |
431 | <reponame>FauxFaux/PuTTYTray<gh_stars>100-1000
/*
* sizetip.c - resize tips for PuTTY(tel) terminal window.
*/
#include <stdio.h>
#include <stdlib.h>
#include <tchar.h>
#include "putty.h"
static ATOM tip_class = 0;
static HFONT tip_font;
static COLORREF tip_bg;
static COLORREF tip_text;
static LRESULT CALLBACK S... | 2,338 |
1,014 | <filename>Database/Funds/USD Cautious Allocation.json<gh_stars>1000+
{
"0P00006HY5.SI": {
"short_name": "GrowthPath Today",
"long_name": "UOB GrowthPath Portfolios - UOB GrowthPath Today",
"currency": "SGD",
"summary": "The objective of GrowthPath Today is to provide income and ... | 635 |
6,958 | <reponame>JujuDel/MNN
//
// PoolBufExecution.cpp
// MNN
//
// Created by MNN on 2019/02/28.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef MNN_OPENCL_BUFFER_CLOSED
#include "backend/opencl/execution/buffer/PoolBufExecution.hpp"
#include "core/Macro.h"
#include "core/TensorUtils.hpp"
#include "backe... | 2,293 |
567 | <gh_stars>100-1000
//
// Copyright 2020 BigQuery Utils
//
// 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... | 878 |
7,258 | <reponame>maksimbo1/modin<filename>modin/core/storage_formats/pandas/utils.py
# Licensed to Modin Development Team under one or more contributor license agreements.
# See the NOTICE file distributed with this work for additional information regarding
# copyright ownership. The Modin Development Team licenses this file... | 1,873 |
997 | <reponame>indutny/webpack-common-shake
{
"name": "webpack-common-shake",
"version": "2.0.2",
"description": "CommonJS Tree Shake Plugin for Webpack",
"main": "lib/shake.js",
"scripts": {
"test": "mocha --reporter=spec test/*-test.js && npm run lint",
"lint": "eslint lib/*.js lib/**/*.js test/*js"
},... | 474 |
601 | <gh_stars>100-1000
{
"combine_datasets": ["clevr_question"],
"combine_datasets_val": ["clevr_question"],
"clevr_img_path": "",
"clevr_ann_path": "CLEVR-Humans/",
"split_qa_heads": 1,
"clevr_variant": "humans",
"no_detection": 1,
"do_qa": 1
}
| 134 |
360 | <gh_stars>100-1000
package uk.co.flax.luwak.benchmark;
/*
* Copyright (c) 2015 Lemur Consulting 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.or... | 942 |
1,355 | // Copyright (c) 2018 <NAME>
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#include "advection_solver.h"
#include "pybind11_utils.h"
#include <jet/advection_solver2.h>
#include <jet... | 454 |
1,444 | <filename>Mage.Sets/src/mage/cards/f/Floodgate.java
/*
* Copyright 2010 BetaSteward_at_googlemail.com. 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 c... | 1,906 |
480 | /*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* 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... | 1,135 |
1,499 | #
# cuneiform_python.py
#
# Example showing how to create a custom Unicode set for parsing
#
# Copyright <NAME>, 2021
#
from typing import List, Tuple
import pyparsing as pp
class Cuneiform(pp.unicode_set):
"""Unicode set for Cuneiform Character Range"""
_ranges: List[Tuple[int, ...]] = [
(0x10380, 0... | 1,170 |
381 | <filename>pypy/tool/pytest/apptest.py<gh_stars>100-1000
# Collects and executes application-level tests.
#
# Classes which names start with "AppTest", or function which names
# start with "app_test*" are not executed by the host Python, but
# by an interpreted pypy object space.
#
# ...unless the -A option ('runappdire... | 2,506 |
2,151 | <gh_stars>1000+
// Copyright 2014 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_BINDINGS_CORE_V8_SCRIPT_PROMISE_RESOLVER_H_
#define THIRD_PARTY_BLINK_RENDERER_BINDINGS_CORE_V8_SCRIPT_... | 2,314 |
353 | package org.nutz.integration.dwr;
import org.directwebremoting.create.AbstractCreator;
import org.directwebremoting.util.LocalUtil;
import org.directwebremoting.util.Messages;
import org.nutz.ioc.Ioc;
import org.nutz.lang.Lang;
import org.nutz.mvc.Mvcs;
@SuppressWarnings("rawtypes")
public class NutCreator extends Ab... | 421 |
330 | <reponame>krzjoa/torch
#include <iostream>
#define LANTERN_BUILD
#include "lantern/lantern.h"
#include <torch/torch.h>
#include "utils.hpp"
void *_lantern_nn_utils_rnn_pack_padded_sequence(void *input, void *lengths, bool batch_first, bool enforce_sorted)
{
LANTERN_FUNCTION_START
auto out = torch::nn::util... | 1,638 |
362 | /*
* Copyright (c) 2005, The JUNG Authors
* All rights reserved.
*
* This software is open-source under the BSD license; see either "license.txt"
* or https://github.com/jrtom/jung/blob/master/LICENSE for a description.
*
* Created on Jul 21, 2005
*/
package edu.uci.ics.jung.visualization.transform;
import ed... | 1,209 |
445 | #ifndef _WIN32
#include <LLDB/SBBreakpoint.h>
#include <LLDB/SBCommandInterpreter.h>
#include <LLDB/SBCommandReturnObject.h>
#include <LLDB/SBDebugger.h>
#include <LLDB/SBEvent.h>
#include <LLDB/SBHostOS.h>
#include <LLDB/SBListener.h>
#include <LLDB/SBModuleSpec.h>
#include <LLDB/SBProcess.h>
#include <LLDB/SBStream.... | 11,302 |
2,577 | /*
* 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. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | 862 |
634 | <filename>modules/base/remote-servers-impl/src/main/java/com/intellij/remoteServer/impl/runtime/ui/tree/actions/DeploymentActionBase.java
package com.intellij.remoteServer.impl.runtime.ui.tree.actions;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.remoteServer.impl.runtime.ui.ServersToolW... | 505 |
472 | <filename>_other_languages/cpp/Maths/divisors.cpp
/**
* Find all divisors of a natural number
*
* Given a natural number n, print all distinct divisors of it.
*
* Examples:
* Input : n = 10
* Output: 1 2 5 10
*
* Input: n = 100
* Output: 1 2 4 5 10 20 25 50 100
*
* Input: n = 125
... | 412 |
988 | /*
* 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 ... | 16,455 |
12,718 | #include "pwf.h"
#include <pthread.h>
struct spwd *fgetspent(FILE *f)
{
static char *line;
static struct spwd sp;
size_t size = 0;
struct spwd *res = 0;
int cs;
pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
if (getline(&line, &size, f) >= 0 && __parsespent(line, &sp) >= 0) res = &sp;
pthread_setcancelst... | 155 |
495 | from __future__ import division, print_function, absolute_import
# lookup()
##########
import petl as etl
table1 = [['foo', 'bar'],
['a', 1],
['b', 2],
['b', 3]]
lkp = etl.lookup(table1, 'foo', 'bar')
lkp['a']
lkp['b']
# if no valuespec argument is given, defaults to the whole
# row ... | 1,735 |
648 | <filename>spec/hl7.fhir.core/3.0.1/package/CodeSystem-definition-status.json<gh_stars>100-1000
{"resourceType":"CodeSystem","id":"definition-status","meta":{"lastUpdated":"2017-04-19T07:44:43.294+10:00"},"text":{"status":"generated","div":"<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <h2>DefinitionStatus</... | 1,629 |
653 | #!/usr/bin/env python
# Copyright (c) 2015-2017, The Kovri I2P Router Project
#
# 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 copyrig... | 835 |
2,519 | <gh_stars>1000+
// This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited.
#pragma once
#include <memory>
#include "common/status.h"
#include "exec/parquet/types.h"
#include "gen_cpp/parquet_types.h"
#include "runtime/types.h"
#include "utils.h"
namespace starrocks {
class Ra... | 725 |
1,056 | <filename>enterprise/maven.j2ee/src/org/netbeans/modules/maven/j2ee/execution/DeploymentLogger.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. ... | 468 |
1,592 | /*
* 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,139 |
775 | <filename>micropolis/micropolis-java/src/micropolisj/engine/TileBehavior.java
// This file is part of MicropolisJ.
// Copyright (C) 2013 <NAME>
// Portions Copyright (C) 1989-2007 Electronic Arts Inc.
//
// MicropolisJ is free software; you can redistribute it and/or modify
// it under the terms of the GNU GPLv3, with ... | 325 |
365 | <filename>SpriteBuilder/CCPhysicsNode/CCBPPhysicsNode.h
//
// CCBPPhysicsNode.h
// SpriteBuilder
//
// Created by Viktor on 10/4/13.
//
//
#import "CCNode.h"
@interface CCBPPhysicsNode : CCNode
@property (nonatomic,assign) CGPoint gravity;
@property (nonatomic,assign) float sleepTimeThreshold;
@end
| 113 |
14,668 | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.tabmodel;
import android.app.Activity;
import android.support.test.InstrumentationRegistry;
import androidx.test.fil... | 3,660 |
861 | package cn.springcloud.gray.client.plugin.dynamiclogic.configuration;
import cn.springcloud.gray.GrayManager;
import com.fm.compiler.dynamicbean.DefaultDynamicBeanManager;
import com.fm.compiler.dynamicbean.DynamicBeanManager;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.spring... | 217 |
667 | #import <UIKit/UIKit.h>
@interface LoginViewController : UIViewController
@property (strong, nonatomic) IBOutlet UITextField *email;
@property (strong, nonatomic) IBOutlet UITextField *password;
@property (strong, nonatomic) IBOutlet UIButton *loginButton;
@property (nonatomic, retain) NSMutableArray *entryFields;
... | 133 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 1,659 |
762 | import numpy as np
from pymoo.algorithms.soo.nonconvex.ga import FitnessSurvival, GA
from pymoo.docs import parse_doc_string
from pymoo.core.survival import Survival
from pymoo.operators.selection.tournament import compare, TournamentSelection
from pymoo.util.clearing import EpsilonClearing
from pymoo.util.display im... | 3,467 |
313 | # 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 dataclasses import dataclass
from pathlib import Path
from typing import Collection, List, Optional, Sequence, cast
from libcst import M... | 1,673 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/iPodUI.framework/iPodUI
*/
#import <iPodUI/XXUnknownSuperclass.h>
#import <iPodUI/IUViewControllerContext.h>
#import <iPodUI/NSCoding.h>
@class MPMediaQuery, IUMediaEntitySpecifier, NSString, UIImage, IUMediaDataSou... | 2,047 |
1,056 | <reponame>Antholoj/netbeans
/*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package org.netbeans.test.editor.smartcompletion;
/**
*
*
*/
public class Types {
/** Creates a new instance of Types */
public Types() {
}
}
| 140 |
368 | <filename>tools/rs-sysmon/plugins/dstat_utmp.py
### Author: <NAME> <<EMAIL>>
class dstat_plugin(dstat):
def __init__(self):
self.name = 'utmp'
self.nick = ('ses', 'usr', 'adm' )
self.vars = ('sessions', 'users', 'root')
self.type = 'd'
self.width = 3
self.scale = 10
... | 542 |
20,453 | <gh_stars>1000+
"""
Shim for _umath_tests to allow a deprecation period for the new name.
"""
import warnings
# 2018-04-04, numpy 1.15.0
warnings.warn(("numpy.core.umath_tests is an internal NumPy "
"module and should not be imported. It will "
"be removed in a future NumPy release."),
... | 163 |
4,036 | package com.semmle.js.ast.jsdoc;
import com.semmle.js.ast.SourceLocation;
/** A non-nullable type such as <code>!string</code>. */
public class NonNullableType extends UnaryTypeConstructor {
public NonNullableType(SourceLocation loc, JSDocTypeExpression expression, Boolean prefix) {
super(loc, "NonNullableType"... | 144 |
608 | {
"name": "seemple-monorepo",
"private": true,
"version": "0.0.0-by-lerna",
"description": "Seemple.js framework",
"main": "seemple.js",
"scripts": {
"test": "npm run lint && npm run unit && cat ./packages/seemple/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"post-publish-test": ... | 1,814 |
2,039 | <filename>tests/repositories/helpers/methods/test_registration.py
import pytest
@pytest.mark.asyncio
async def test_registration(repository):
await repository.async_pre_registration()
await repository.async_post_registration()
| 81 |
374 | #import <CFNetwork/CFSocketStream.h>
#import <CFNetwork/CFHost.h>
#import <CFNetwork/CFNetServices.h>
| 39 |
777 | <filename>chrome/installer/setup/setup_singleton_unittest.cc
// 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 "chrome/installer/setup/setup_singleton.h"
#include <windows.h>
#include <function... | 2,663 |
619 | <filename>src/biss0001/biss0001.hpp<gh_stars>100-1000
/*
* Author: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* Copyright (c) 2014-2016 Intel Corporation.
*
* This program and the accompanying materials are made available under the
* terms of the The MIT License which is available at
* https://opensource.org/li... | 1,055 |
590 | /*!
@file
@author <NAME>
@date 07/2012
*/
#include "Precompiled.h"
#include "DataListBaseControl.h"
#include "CommandManager.h"
#include "DialogManager.h"
#include "MessageBoxManager.h"
#include "DataManager.h"
#include "ActionManager.h"
#include "ActionCreateData.h"
#include "ActionCloneData.h"
#include "ActionD... | 1,441 |
1,844 | <filename>usage/src/main/java/org/killbill/billing/usage/api/user/DefaultRolledUpUsage.java
/*
* Copyright 2010-2013 Ning, Inc.
*
* Ning 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 th... | 616 |
1,408 | package com.pancm;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
/**
*
* @Title: Application
* @Description: springBoot... | 637 |
5,169 | {
"name": "BCCommonModule",
"version": "0.0.6",
"summary": "樊登读书 公共模块",
"description": "\"樊登读书\"",
"homepage": "https://github.com/developeryh/BCCommonModule",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"developeyh": "<EMAIL>"
},
"platforms": {
"ios": "9.0"
},
... | 1,271 |
1,059 | <filename>sample/src/main/java/com/inforoeste/mocklocationdetector/sample/MainActivity.java
package com.inforoeste.mocklocationdetector.sample;
import android.location.Location;
import android.support.annotation.NonNull;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
... | 2,091 |
1,278 | package de.komoot.photon.nominatim;
import com.google.common.collect.ImmutableList;
import com.vividsolutions.jts.geom.Geometry;
import com.vividsolutions.jts.geom.GeometryFactory;
import com.vividsolutions.jts.geom.Point;
import com.vividsolutions.jts.linearref.LengthIndexedLine;
import de.komoot.photon.PhotonDoc;
i... | 1,563 |
462 | <reponame>backwardn/ccs-calendarserver<gh_stars>100-1000
##
# Copyright (c) 2012-2017 Apple 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... | 2,100 |
2,757 | <reponame>CEOALT1/RefindPlusUDK
#ifndef Py_METAGRAMMAR_H
#define Py_METAGRAMMAR_H
#ifdef __cplusplus
extern "C" {
#endif
#define MSTART 256
#define RULE 257
#define RHS 258
#define ALT 259
#define ITEM 260
#define ATOM 261
#ifdef __cplusplus
}
#endif
#endif /* !Py_METAGRAMMAR_H */
| 142 |
5,035 | #include "requestData.h"
#include "epoll.h"
#include "threadpool.h"
#include "util.h"
#include <sys/epoll.h>
#include <queue>
#include <sys/time.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <stdio.h>
#include <string.h>
#include <cstdlib>
#include <iostream>
#include <vector>
#include <un... | 4,017 |
952 | <reponame>samisouabni/Main
{
"version": "0.9.8",
"description": "command line tool to download and extract data from HTML/XML pages as well as JSON APIs.",
"homepage": "http://www.videlibri.de/xidel.html",
"license": "GPL-3.0-or-later",
"url": "https://github.com/benibela/xidel/releases/downloa... | 354 |
1,253 | #include<stdio.h>
#include<stdlib.h>
int sorted (int *array, int size) {
while (size >= 1) {
if (array[size] < array[size-1]) return 0;
size--;
}
return 1;
}
void shuffle (int *array, int size) {
int i, tmp, random;
for (i = 0; i < size; i++) {
tmp = array[i];
rando... | 466 |
1,338 | <gh_stars>1000+
/*
* Copyright 2007 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Ramshankar, <EMAIL>
* <NAME> <<EMAIL>>
*/
//! BCommandPipe class to handle reading shell output
// (stdout/stderr) of other programs into memory.
#include "CommandPipe.h"
#in... | 2,719 |
1,178 | /*
* Copyright 2020 Makani Technologies LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 1,033 |
380 | <gh_stars>100-1000
#pragma once
#include "common.h"
#include "capi/random.h"
#include "cng/random.h"
namespace mini::crypto {
using random = MINI_CRYPTO_RANDOM_NAMESPACE::random;
//
// TODO:
// it would be great to come up with better
// solution than this.
//
static auto& random_device = MINI_CRYPTO_RANDOM_NAMESPAC... | 135 |
2,151 | <filename>extensions/common/extensions_aliases.cc
// 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 "extensions/common/extensions_aliases.h"
namespace extensions {
std::vector<Alias> GetExtensi... | 236 |
2,446 | /*
Copyright (C) 2018 Apple Inc. All Rights Reserved.
See LICENSE.txt for this sample’s licensing information
Abstract:
Behavior that is used by enemies when they become frightened by the player.
*/
#import <GameplayKit/GameplayKit.h>
#import "AAPLBaseComponent.h"
#import "AAPLPlayerComponent.h"
@interface AAP... | 176 |
2,151 | <gh_stars>1000+
// Copyright 2014 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 CHROMECAST_BROWSER_CAST_BROWSER_PROCESS_H_
#define CHROMECAST_BROWSER_CAST_BROWSER_PROCESS_H_
#include <memory>
#include "base/m... | 1,073 |
764 | {
"symbol": "AEF",
"address": "0xd6CD14d3BE0F72a9a7231C810417317093c3c588",
"overview":{
"en": "AISI Ecosystem FOF (Hereafter AEF) is the first global tokenized fund of fund open to all community investors.",
"zh": "爱思生态凭证(AEF)是面向所有社区投资者的全球第一支通证化的母基金。"
},
"email": "<EMAIL>",
"website": "http... | 396 |
988 | <reponame>AlexeyMochalov/firebird
/*
* PROGRAM: Firebird Trace Services
* MODULE: TraceConfigStorage.h
* DESCRIPTION: Trace API shared configurations storage
*
* The contents of this file are subject to the Initial
* Developer's Public License Version 1.0 (the "License");
* you may not use this file except i... | 2,277 |
360 | /*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ... | 423 |
2,332 | import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output, State
from app import sf_manager, app
from panels import opportunities, cases, leads
server = app.server
app.layout = html.Div(
[
html.Div(
className="row header",
... | 2,224 |
345 | <reponame>ishandutta2007/sonnet<gh_stars>100-1000
# Copyright 2017 The Sonnet Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licens... | 6,497 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.