max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
628 | <reponame>Octaves0911/sunpy
from matplotlib.figure import Figure
import astropy.units as u
from astropy.coordinates import SkyCoord
from sunpy.map.tests.conftest import aia171_test_map # NoQA
from sunpy.visualization import draw_limb
def test_limb_invisible(aia171_test_map):
aia_obs = aia171_test_map.observer_... | 380 |
327 | #include <webots/distance_sensor.h>
#include <webots/robot.h>
#include <webots/supervisor.h>
#include <stdio.h>
#include "../../../lib/ts_assertion.h"
#include "../../../lib/ts_utils.h"
int main(int argc, char **argv) {
ts_setup(argv[0]);
int time_step = wb_robot_get_basic_time_step();
WbDeviceTag ds_def0 = ... | 1,666 |
396 | package com.mapbox.samples;
import com.mapbox.geojson.Feature;
import com.mapbox.geojson.Point;
public class BasicFeatureCollection {
public static void main(String[] args) {
Feature feature = Feature.fromGeometry(Point.fromLngLat(1.0, 2.0));
System.out.println(feature.toJson());
}
}
| 106 |
3,614 | import os
from google.cloud import bigquery
from db.loaders.bigquery_loader import creds_file
def create_tables_bigquery():
create_sessions_table(creds_file=creds_file,
table_id=f"{os.environ['project_id']}.{os.environ['dataset']}.{os.environ['sessions_table']}")
print(f"`{os.enviro... | 8,635 |
1,442 | <reponame>VersiraSec/epsilon-cfw<filename>poincare/test/layout_cursor.cpp<gh_stars>1000+
#include <poincare_layouts.h>
#include <poincare/addition.h>
#include <poincare/cosine.h>
#include <poincare/empty_expression.h>
#include <poincare/integral.h>
#include <poincare/power.h>
#include <poincare/random.h>
#include "help... | 1,710 |
758 | <filename>delivery/tests/integ/test_on_package_created.py<gh_stars>100-1000
import json
import time
import datetime
import boto3
from boto3.dynamodb.conditions import Key
import pytest
from fixtures import get_order, get_product # pylint: disable=import-error
from helpers import get_parameter # pylint: disable=import-e... | 853 |
3,603 | <filename>rasa/engine/recipes/default_components.py<gh_stars>1000+
from rasa.nlu.classifiers.diet_classifier import DIETClassifier
from rasa.nlu.classifiers.fallback_classifier import FallbackClassifier
from rasa.nlu.classifiers.keyword_intent_classifier import KeywordIntentClassifier
from rasa.nlu.classifiers.logistic... | 1,180 |
1,652 | package com.ctrip.xpipe.redis.console.service.migration.exception;
import com.ctrip.xpipe.redis.console.exception.RedisConsoleException;
/**
* @author lishanglin
* date 2020/12/28
*/
public class NoAvailableDcException extends RedisConsoleException {
public NoAvailableDcException(String clusterName) {
... | 127 |
395 | <gh_stars>100-1000
/**
* Copyright 2017-2019 The OpenTracing 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 b... | 2,510 |
6,717 | <gh_stars>1000+
#ifndef PLATFORM_UNIX_PLATFORM__H
#define PLATFORM_UNIX_PLATFORM__H
#include "config/config.h"
#include <Availability.h>
#include <TargetConditionals.h>
#if HAVE_LIBKERN_OSCROSSENDIAN_H
#include <libkern/OSCrossEndian.h>
#endif
#if HAVE_LIBKERN_OSATOMIC_H
#include <libkern/OSAtomic.h>
#endif
#if HAVE... | 851 |
1,473 | import numpy as np
import tensorflow.keras.backend as K
from tensorflow.keras import Input, Model
from tensorflow.keras.layers import Conv2D
from tensorflow.keras.layers import Dense
from tensorflow.keras.layers import Lambda
from tensorflow.keras.layers import MaxPool2D
from tcn import TCN
num_samples = 1000 # numb... | 916 |
306 | # Copyright (c) 2022 NVIDIA CORPORATION. All rights reserved.
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and relate... | 18,746 |
483 | <filename>samples/analytics/mgmt_feed_demo.py<gh_stars>100-1000
#!/usr/bin/python
#
# Copyright 2010 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
#
# ... | 2,855 |
337 | public class Host {
private String name;
public String getName() {
return "Name";
}
} | 41 |
649 | <gh_stars>100-1000
package net.serenitybdd.cli;
import org.kohsuke.args4j.CmdLineException;
import org.kohsuke.args4j.CmdLineParser;
import org.kohsuke.args4j.Option;
import org.kohsuke.args4j.OptionHandlerFilter;
import java.io.PrintWriter;
import java.nio.file.Path;
import java.nio.file.Paths;
public class Serenit... | 1,598 |
1,742 | <reponame>sheerluck/sage<filename>src/sage/interfaces/mathics.py
r"""
Interface to Mathics
Mathics is an open source interpreter for the Wolfram Language.
From the introduction of its reference manual:
.. NOTE::
Mathics — to be pronounced like “Mathematics” without the
“emat” — is a general-purpose computer ... | 20,034 |
2,338 | <reponame>mkinsner/llvm<filename>clang/test/CoverageMapping/branch-mincounters.cpp
// Test to ensure right number of counters are allocated and used for nested
// logical operators on branch conditions for branch coverage.
// RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++11 -fprofile-instrument=clang -fcoverage-... | 871 |
1,224 | """
Color Variables (Homage to Albers).
This example creates variables for colors that may be referred to
in the program by a name, rather than a number.
"""
size(640, 360)
noStroke()
background(51, 0, 0)
inside = color(204, 102, 0)
middle = color(204, 153, 0)
outside = color(153, 51, 0)
# These statements are equi... | 310 |
746 | package org.protege.editor.owl.ui.renderer;
import org.protege.editor.core.plugin.ProtegePluginInstance;
import org.protege.editor.owl.model.OWLModelManager;
import org.semanticweb.owlapi.model.OWLEntity;
import java.awt.*;
/**
* Author: <NAME><br>
* The University Of Manchester<br>
* Medical Informatics Group<b... | 406 |
1,016 | <filename>vertx-template-engines/vertx-web-templ-rythm/src/main/java/io/vertx/ext/web/templ/rythm/package-info.java
@ModuleGen(name="vertx-web-templ-rythm", groupPackage = "io.vertx")
package io.vertx.ext.web.templ.rythm;
import io.vertx.codegen.annotations.ModuleGen;
| 114 |
1,390 | <gh_stars>1000+
"""
Code by <NAME>(@graykode)
https://en.wikipedia.org/wiki/Beta_distribution
"""
import numpy as np
from matplotlib import pyplot as plt
def gamma_function(n):
cal = 1
for i in range(2, n):
cal *= i
return cal
def beta(x, a, b):
gamma = gamma_function(a + b) / \
... | 436 |
799 | {
"isArchived": false,
"discoverySettings": {
"showInTeamsSearchAndSuggestions": true
},
"memberSettings": {
"allowCreateUpdateChannels": true,
"allowDeleteChannels": true,
"allowAddRemoveApps": true,
"allowCreateUpdateRemoveTabs": true,
"allowCreateUpdateRemoveConnectors": true
},
"guestSettings": {
... | 267 |
309 | <reponame>cvandijck/VTKExamples<gh_stars>100-1000
#include <vtkSmartPointer.h>
#include <vtkXMLPImageDataWriter.h>
#include <vtkImageCanvasSource2D.h>
int main(int, char *[])
{
vtkSmartPointer<vtkImageCanvasSource2D> drawing =
vtkSmartPointer<vtkImageCanvasSource2D>::New();
drawing->SetNumberOfScalarComponents... | 344 |
1,146 | <reponame>my-personal-forks/Vintageous
from .state import EOF
from .tokens import TokenEof
from .tokens_base import TOKEN_COMMAND_NMAP
from .tokens_base import TokenOfCommand
from Vintageous import ex
@ex.command('nmap', 'nm')
class TokenCommandNmap(TokenOfCommand):
def __init__(self, params, *args, **kwargs):
... | 412 |
311 | from menpo.shape import PointCloud
def mean_pointcloud(pointclouds):
r"""
Compute the mean of a `list` of :map:`PointCloud` or subclass objects.
The list is assumed to be homogeneous i.e all elements of the list are
assumed to belong to the same point cloud subclass just as all elements
are also a... | 336 |
325 | <reponame>hongshui3000/sof<gh_stars>100-1000
/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2019 Intel Corporation. All rights reserved.
*
* Author: <NAME> <<EMAIL>>
*/
#ifndef __SOF_DRIVERS_IOMUX_H__
#define __SOF_DRIVERS_IOMUX_H__
#include <stdint.h>
#define IOMUX_PIN_NUM 32
struct iomux {
uint32... | 324 |
1,041 | <reponame>bayne/ebean
package io.ebean.querybean.generator;
/**
* Property type for associated beans (OneToMany, ManyToOne etc).
*/
class PropertyTypeScalarComparable extends PropertyTypeScalar {
/**
* Construct given the associated bean type name and package.
*
* @param attributeClass the type in the ... | 148 |
348 | {"nom":"Saint-Céneri-le-Gérei","circ":"1ère circonscription","dpt":"Orne","inscrits":152,"abs":71,"votants":81,"blancs":4,"nuls":0,"exp":77,"res":[{"nuance":"SOC","nom":"M. <NAME>","voix":40},{"nuance":"DVD","nom":"<NAME>","voix":37}]} | 100 |
14,668 | <filename>third_party/blink/renderer/core/frame/csp/conversion_util_test.cc<gh_stars>1000+
// 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.
#include "third_party/blink/renderer/core/frame/csp/conversion_... | 3,259 |
427 |
from __future__ import print_function
import os
import lldbsuite.test.lldbtest as lldbtest
from builder_base import *
def buildDsym(
sender=None,
architecture=None,
compiler=None,
dictionary=None,
clean=True):
"""Build the binaries with dsym debug info."""
commands = ... | 248 |
1,016 | package com.thinkbiganalytics.nifi.v2.thrift;
/*-
* #%L
* thinkbig-nifi-hadoop-service
* %%
* Copyright (C) 2017 <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
*
* ... | 5,976 |
5,169 | {
"name": "EnolaGay",
"version": "3.7.8",
"summary": "便携式 App 架构,由早期的 EMERANA 进化而成。",
"description": "为了更高效地开发 iOS App, EMERANA 经过了几年的历练,在多个 App 中不断完善,最终进化成可适用于绝大部分场景的便携式框架。",
"homepage": "https://github.com/emerana/EnolaGay",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"醉翁... | 1,203 |
567 | /* (c) Copyright 2021 Xilinx, 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 ... | 605 |
13,885 | // Copyright (c) 2020 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | 570 |
1,042 | <reponame>scottcgi/Mojoc<gh_stars>1000+
/*
* Copyright (c) scott.cgi All Rights Reserved.
*
* This source code belongs to project Mojoc, which is a pure C Game Engine hosted on GitHub.
* The Mojoc Game Engine is licensed under the MIT License, and will continue to be iterated with coding passion.
*
* License : h... | 449 |
348 | <filename>docs/data/leg-t2/088/08802463.json
{"nom":"Taintrux","circ":"2ème circonscription","dpt":"Vosges","inscrits":1305,"abs":777,"votants":528,"blancs":30,"nuls":18,"exp":480,"res":[{"nuance":"LR","nom":"<NAME>","voix":249},{"nuance":"REM","nom":"<NAME>","voix":231}]} | 112 |
4,772 | <reponame>fjacobs/spring-data-examples<gh_stars>1000+
package example.repo;
import example.model.Customer1258;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer1258Repository extends CrudRepository<Customer1258, Long> {
List<Customer1258> findByLastName(St... | 110 |
852 | <reponame>ckamtsikis/cmssw
#include "DQMOffline/RecoB/interface/TrackCountingTagPlotter.h"
#include "DQMOffline/RecoB/interface/Tools.h"
using namespace std;
using namespace RecoBTag;
TrackCountingTagPlotter::TrackCountingTagPlotter(const std::string& tagName,
const Et... | 6,276 |
312 | /*******************************************************************************
Copyright (c) 2005-2009 <NAME>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone... | 511 |
755 | /**
* @project: Overload
* @author: <NAME>.
* @licence: MIT
*/
#include "OvGame/Utils/FPSCounter.h"
OvGame::Utils::FPSCounter::FPSCounter(OvWindowing::Window& p_window) : m_window(p_window)
{
m_text.color = OvUI::Types::Color::Yellow;
m_defaultHorizontalAlignment = OvUI::Settings::EHorizontalAlignment::RIGHT;
m_de... | 382 |
847 | <filename>app/src/main/java/com/crazysunj/multityperecyclerviewadapter/helper/BaseViewHolder.java
/**
* Copyright 2017 <NAME>
* <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>
... | 959 |
482 | <filename>code/packaging/bundle/src/main/java/io/cattle/platform/packaging/Bootstrap.java
package io.cattle.platform.packaging;
import java.io.Closeable;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.lang.refle... | 6,290 |
1,025 | // Qt.
#include <QString>
// Infra.
#include <AMDTOSWrappers/Include/osFilePath.h>
#include <AMDTApplicationFramework/Include/afTreeItemType.h>
// Local.
#include <AMDTKernelAnalyzer/src/kaDataTypes.h>
#include <AMDTKernelAnalyzer/src/kaProgram.h>
//Boost
#if AMDT_BUILD_TARGET == AMDT_LINUX_OS
#pragma GCC diagn... | 470 |
778 | package org.aion.zero.impl.valid;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import org.aion.zero.impl.types.BlockHeader;
import org.aion.zero.impl.types.BlockHeader.Seal;
import org.slf4j.Logger;
public class GreatGrandParentBlockHeaderValidator {
pri... | 1,400 |
3,508 | <filename>src/test/java/com/fishercoder/_1062Test.java
package com.fishercoder;
import com.fishercoder.solutions._1062;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
@Ignore
public class _1062Test {
private static _1062.Solution1 soluti... | 446 |
305 | from .fixtures import logstash
import pytest
@pytest.mark.xfail
def test_whitespace_in_config_string_cli_flag(logstash):
config = 'input{heartbeat{}} output{stdout{}}'
assert logstash.run("-t -e '%s'" % config).rc == 0
def test_running_an_arbitrary_command(logstash):
result = logstash.run('uname --al... | 158 |
2,151 | <reponame>zipated/src
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_EXTENSIONS_POLICY_HANDLERS_H_
#define CHROME_BROWSER_EXTENSIONS_POLICY_HANDLERS_H_
#include <memory>
#inclu... | 1,520 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: (null)
*/
#import <AssistantServices/XXUnknownSuperclass.h>
#import <AssistantServices/AFSyncChangeInfo.h>
@class NSString, SADomainObject;
__attribute__((visibility("hidden")))
@interface ASSyncChangeInfo : XXUnknownSuperclass <AFSyncChangeInfo> {... | 434 |
14,668 | <reponame>zealoussnow/chromium
// Copyright 2013 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 "content/browser/service_worker/service_worker_register_job.h"
#include <stdint.h>
#include <utility>
#include ... | 12,613 |
6,449 | /*
* Copyright 2009-2016 Weibo, 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 applica... | 435 |
1,132 | <reponame>cxcx/open-source-search-engine
#include "gb-include.h"
#include "Msg37.h"
static void gotTermFreqWrapper ( void *state ) ;
// . returns false if blocked, true otherwise
// . sets g_errno on error
// . "termIds/termFreqs" should NOT be on the stack in case we block
// . i based this on ../titled/Msg25.cpp s... | 2,378 |
382 | /*
* Copyright 2020 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 727 |
1,185 | <filename>ble-common/src/test/java/no/nordicsemi/android/ble/common/callback/DateTimeDataCallbackTest.java
/*
* Copyright (c) 2018, Nordic Semiconductor
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions ar... | 1,827 |
589 | package rocks.inspectit.shared.cs.ci.export;
import java.util.Collection;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElemen... | 1,104 |
627 | <reponame>closer2/chrome-ec
/* Copyright 2019 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* MAX32660 GPIO module for Chrome EC */
#include "clock.h"
#include "console.h"
#include "common.h"
#include "gpio.h"... | 2,808 |
348 | {"nom":"Blénod-lès-Pont-à-Mousson","circ":"6ème circonscription","dpt":"Meurthe-et-Moselle","inscrits":3229,"abs":2092,"votants":1137,"blancs":86,"nuls":41,"exp":1010,"res":[{"nuance":"FI","nom":"<NAME>","voix":591},{"nuance":"FN","nom":"M. <NAME>","voix":419}]} | 114 |
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... | 3,027 |
493 | /* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental 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
*
* ... | 7,429 |
506 | package com.mixpush.sender;
public class MixPushMessageConfig {
private String channelId;
private long timeToLive = 72 * 3600 * 1000;
private boolean systemMessage;
private String miPushChannelId;
private String oppoPushChannelId;
private String huaweiPushChannelId;
// 声音,震动,渠道,icon,retries... | 823 |
14,668 | /* Copyright 2015 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 "ppapi/c/ppp.h"
/* Add a global symbol to force the linker to generate a LIB. */
void _lib_ppapi_dummy_symbol() {}
| 90 |
3,189 | #include <evnsq/consumer.h>
#include <evnsq/producer.h>
#include <evpp/event_loop.h>
#include <chrono>
#include <thread>
#include <getopt.h>
int OnMessage(const evnsq::Message* msg) {
LOG_INFO << "Received a message, id=" << msg->id << " message=[" << msg->body.ToString() << "]";
return 0;
}
bool Publish(ev... | 1,810 |
569 | <gh_stars>100-1000
/*
* Copyright 2013 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 applicabl... | 2,749 |
7,801 | /*
* Copyright 2010-2019 JetBrains s.r.o.
*
* 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... | 561 |
3,372 | <gh_stars>1000+
/*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* ... | 2,247 |
1,329 | /**
* Copyright (C) 2017 Newland Group Holding Limited
* <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/licenses/LICENSE-2.0
* <p>
* Unless required ... | 1,165 |
2,151 | <gh_stars>1000+
// 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 "chromecast/browser/memory_pressure_controller_impl.h"
#include "base/logging.h"
namespace chromecast {
MemoryPressureControll... | 376 |
8,805 | /*=============================================================================
Copyright (c) 2002-2003 <NAME>
http://spirit.sourceforge.net/
Use, modification and distribution is subject to the Boost Software
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.... | 6,691 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 4,523 |
12,718 | /* Copyright (C) 2012-2021 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the ... | 906 |
9,681 | <gh_stars>1000+
#!/usr/bin/env python
message = input('Enter message to encode:')
poc = '${T(java.lang.Runtime).getRuntime().exec(T(java.lang.Character).toString(%s)' % ord(message[0])
for ch in message[1:]:
poc += '.concat(T(java.lang.Character).toString(%s))' % ord(ch)
poc += ')}'
print(poc) | 125 |
1,602 | import chpl_cpu
import chpl_atomics
import chpl_aux_filesys
import chpl_bin_subdir
import chpl_make
import chpl_platform
import chpl_comm
import chpl_comm_debug
import chpl_comm_segment
import chpl_comm_substrate
import chpl_compiler
import chpl_gasnet
import chpl_gmp
import chpl_hwloc
import chpl_jemalloc
import chpl_... | 246 |
984 |
#pragma warning( disable: 4049 ) /* more than 64k source lines */
/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 500
#endif
/* verify that the <rpcsal.h> version is high enough to compile this file*/
#ifndef __R... | 61,791 |
1,848 | // bindgen-flags: -- -std=c++14
template <typename T>
class IndirectlyUsesTemplateParameter {
using Aliased = T;
Aliased aliased;
};
| 54 |
1,780 | <reponame>yangxlei/GCanvas
/**
* Created by G-Canvas Open Source Team.
* Copyright (c) 2017, Alibaba, Inc. All rights reserved.
*
* This source code is licensed under the Apache Licence 2.0.
* For the full copyright and license information, please view
* the LICENSE file in the root directory of this source tree.
*/
... | 41,407 |
1,511 | /*
* $Id: clientid.c,v 1.1 2004/11/14 07:26:26 paulus Exp $
*
* Copyright (C) 1995,1996,1997 <NAME>
*
* See the file COPYRIGHT for the respective terms and conditions.
* If the file is missing contact me at <EMAIL>
* and I'll send you a copy.
if (( c = strchr(q, ' ')) || (c = strchr(q,'\t'))) {
*c = '\0'; ... | 148 |
1,204 | <reponame>DiegoEliasCosta/gs-collections
/*
* Copyright 2015 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | 6,124 |
482 | /*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#include "A... | 1,585 |
2,856 | <reponame>lukasz-kozlowski/biopython
# Copyright 2012 by <NAME>. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Tests for SearchIO BlastIO parsers."""
import os
import unit... | 20,555 |
3,495 | /*
*
* Copyright (c) 2020 Project CHIP 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 requir... | 2,121 |
357 | from .auc_regressor import AUCRegressor
| 12 |
512 | from typing import Dict, List
from typing import Callable
from kotlin_kernel.add_kernel import add_kernel
from kotlin_kernel.detect_jars_location import detect_jars_location
from kotlin_kernel.install_user import install_user
import sys
commands: Dict[str, Callable[[List[str]], None]] = {
"add-kernel": lambda x:... | 423 |
353 | package com.wepay.waltz.storage.server.internal;
import java.util.ArrayList;
public final class SegmentFinder {
private SegmentFinder() {
//not called
}
/**
* Find segment that contains the transaction. Consider the transaction is
* likely to store in recent segments, here we use expon... | 799 |
6,160 | <filename>src/components/src/test/java/org/apache/jmeter/visualizers/backend/influxdb/HttpMetricsSenderTest.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 o... | 1,417 |
2,027 | <reponame>sullis/atomix<gh_stars>1000+
/*
* Copyright 2018-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,105 |
1,402 | <gh_stars>1000+
// Example of using the GeographicLib::TransverseMercator class
#include <iostream>
#include <iomanip>
#include <exception>
#include <GeographicLib/TransverseMercator.hpp>
using namespace std;
using namespace GeographicLib;
// Define a UTM projection for an arbitrary ellipsoid
class UTMalt {
private:... | 808 |
2,338 | //
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// CONFIG rdar://6405500
#include <stdio.h>
#include <stdlib.h>
#import <dispatch/dispatch.h>
#import <objc/objc-a... | 347 |
559 | /**
* Copyright (c) 2016 Netflix, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | 1,641 |
13,111 | /*
* 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 ... | 366 |
448 | <gh_stars>100-1000
//To check given word is pallindrome or not
#include<bits/stdc++.h>
using namespace std;
int main()
{
int l;
cin>>l;
char arr[l+1];
cin>>arr;
int c=0;
for(int i=0;i<l/2;i++)
{
if(arr[i]!=arr[l-1-i])
{
c++;
break;
}
}
if(c>0)
cout<<"number is not pallindrome";
e... | 193 |
3,301 | <reponame>zhangjun0x01/Alink
package com.alibaba.alink.params.nlp.walk;
public interface MetaPathWalkParams<T> extends
BaseWalkParams <T>,
HasMetaPath <T>,
HasTypeCol <T>,
HasVertexCol <T> {
}
| 82 |
450 | '''test return (x and 'true' or 'false') idiom'''
def f1(test):
'should not warn'
return test and 'true' or 'false'
def f2(test):
'should not warn about None'
return test and 'true' or None
def f3(test):
'should warn about None'
return test and None or 'false'
def f4(test):
'should warn'... | 166 |
1,006 | <filename>libs/libc/misc/lib_crc64.c
/****************************************************************************
* libs/libc/misc/lib_crc64.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional i... | 5,253 |
4,036 | package com.semmle.js.ast;
public class XMLFilterExpression extends Expression {
final Expression left, right;
public XMLFilterExpression(SourceLocation loc, Expression left, Expression right) {
super("XMLFilterExpression", loc);
this.left = left;
this.right = right;
}
public Expression getLeft()... | 170 |
1,909 | package org.knowm.xchange.coinbene.dto.marketdata;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import org.knowm.xchange.coinbene.dto.CoinbeneResponse;
public class CoinbeneOrderBook {
private final List<CoinbeneOrder> asks;
private final List<CoinbeneOrder> bids;
public Coinben... | 455 |
474 | package org.javacord.api.entity.message.component;
public interface Component {
/**
* Get the type of component.
*
* @return The component's type.
*/
ComponentType getType();
}
| 76 |
328 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
"""
知识图谱
"""
import re
import sys
import math
import time
from .base import AipBase
from .base import base64
from .base import json
from .base import urlencode
from .base import quote
class AipKg(AipBase):
"""
知识图谱
"""
__createTaskUrl = 'https://aip.baidu... | 1,291 |
400 | <reponame>mohawk2/json-graph-specification
# Module init
| 21 |
190,993 | <gh_stars>1000+
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by app... | 1,721 |
354 | <gh_stars>100-1000
package me.ele.trojan.record.impl;
import android.content.Context;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.concurrent.atomic.AtomicBoolean;
import me.ele.trojan.config.Troja... | 1,829 |
1,442 | <reponame>VersiraSec/epsilon-cfw
#ifndef SHARED_TEXT_FIELD_DELEGATE_H
#define SHARED_TEXT_FIELD_DELEGATE_H
#include "text_field_delegate_app.h"
#include <escher/container.h>
#include <escher/text_field_delegate.h>
namespace Shared {
class TextFieldDelegate : public Escher::TextFieldDelegate {
public:
bool textFiel... | 230 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.