max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,968 | //////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: <EMAIL>
//
///////////////////////////////////////... | 304 |
335 | <filename>code/src/mupen64plus-video-paraLLEl/parallel-rdp/vulkan/command_buffer.hpp
/* Copyright (c) 2017-2020 <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 restrictio... | 11,801 |
11,010 | /*
* Copyright (C) 2010 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... | 392 |
5,250 | /* 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, software
* distributed... | 2,370 |
1,456 | <reponame>t-imamichi/qiskit-core
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# A... | 3,306 |
3,034 | <gh_stars>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 licenses this file to You under the Apache license, Version 2.0
* (the "Lice... | 1,000 |
2,293 | package com.googlecode.bshforandroid;
import android.content.Context;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuItem;
import com.googlecode.android_scripting.AsyncTaskListener;
import com.googlecode.android_scripting.InterpreterInstaller;
import com.googlecode.android_scripting.... | 583 |
575 | <reponame>Azile-Ttenneb/ppapi
// Copyright (c) 2012 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 PPAPI_SHARED_IMPL_TEST_GLOBALS_H_
#define PPAPI_SHARED_IMPL_TEST_GLOBALS_H_
#include <stdint.h>
#include "base... | 1,344 |
1,350 | /*
* 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 ... | 674 |
446 | <gh_stars>100-1000
package com.plumdo.flow.rest.task.resource;
import java.util.*;
import org.flowable.engine.common.api.query.QueryProperty;
import org.flowable.task.api.Task;
import org.flowable.task.api.history.HistoricTaskInstance;
import org.flowable.task.api.history.HistoricTaskInstanceQuery;
import org.flowabl... | 3,998 |
6,989 | <gh_stars>1000+
#include "../lib/zstd.h" /* inclink generated by yamaker */
| 29 |
446 | <filename>Source/MediaInfo/Video/File_CineForm.h
/* Copyright (c) MediaArea.net SARL. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the License.html file in the root of the source tree.
*/
//++++++++++++++++++++++++++++++++++++++++++++++++++++++... | 331 |
678 | <gh_stars>100-1000
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport
*/
#import <OfficeImport/ODICycle3.h>
__attribute__((visibility("hidden")))
@interface ODICycle4 : ODICycle3 {
}
+ (unsigned)nodeCountWithState:(id)state; // 0... | 118 |
6,036 | <filename>onnxruntime/test/providers/cpu/tensor/eyelike_op_test.cc<gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "gtest/gtest.h"
#include "test/providers/provider_test_utils.h"
namespace onnxruntime {
namespace test {
TEST(EyeLikeOpTest, EyeLi... | 1,449 |
310 | """
Copyright (c) 2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | 1,421 |
1,074 | # -----------------------------------------------------------------------------
# Copyright (c) 2009-2016 <NAME>. All rights reserved.
# Distributed under the (new) BSD License.
# -----------------------------------------------------------------------------
import numpy as np
from glumpy.api.matplotlib import *
# Crea... | 494 |
1,676 | package sdk.chat.core.dao;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Unique;
import sdk.chat.core.base.AbstractEntity;
@Entity
public class PublicKey extends AbstractEn... | 547 |
798 | /*
* The MIT License
*
* Copyright (c) 2010 The Broad Institute
*
* 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... | 1,170 |
370 | {
"displayName": "<NAME>",
"email": "<EMAIL>",
"name": "projects/k8s-artifacts-prod-bak/serviceAccounts/<EMAIL>",
"oauth2ClientId": "108557486729045644821",
"projectId": "k8s-artifacts-prod-bak",
"uniqueId": "108557486729045644821"
}
| 109 |
56,632 | /*
* jdarith.c
*
* Developed 1997-2019 by <NAME>.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
* This file contains portable arithmetic entropy decoding routines for JPEG
* (implementing the ISO/IEC IS 10918-1 and CCI... | 10,042 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The... | 2,654 |
456 | <filename>src/test/java/com/swingfrog/summer/test/repository/task/TestLogTask.java
package com.swingfrog.summer.test.repository.task;
import com.swingfrog.summer.annotation.Autowired;
import com.swingfrog.summer.annotation.IntervalTask;
import com.swingfrog.summer.annotation.Task;
import com.swingfrog.summer.test.repo... | 374 |
575 | <filename>components/arc/timer/arc_timer_mojom_traits.cc
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/arc/timer/arc_timer_mojom_traits.h"
#include <utility>
namespace mojo {
/... | 458 |
3,651 | package com.orientechnologies.orient.server.network;
import com.orientechnologies.orient.core.config.OContextConfiguration;
import com.orientechnologies.orient.enterprise.channel.binary.OChannelBinary;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStre... | 211 |
410 | #include "private.h"
static void _declare_lookup_dumper(otl_LookupType llt, const char *lt, json_value *(*dumper)(const otl_Subtable *st),
otl_Lookup *lookup, json_value *dump) {
if (lookup->type == llt) {
json_object_push(dump, "type", json_string_new(lt));
json_object_push(dum... | 1,765 |
512 | <filename>tests/spot/blvt/test_blvt_info.py
import responses
from binance.spot import Spot as Client
from tests.util import mock_http_response
from tests.util import random_str
mock_item = {"key_1": "value_1", "key_2": "value_2"}
key = random_str()
secret = random_str()
@mock_http_response(responses.GET, "/sapi/v1/b... | 315 |
446 | <gh_stars>100-1000
class PoeException(RuntimeError):
def __init__(self, msg, *args):
self.msg = msg
self.cause = args[0].args[0] if args else None
self.args = (msg, *args)
class CyclicDependencyError(PoeException):
pass
class ScriptParseError(PoeException):
pass
class Execution... | 204 |
5,908 | <reponame>rnorth/testpackage-containers
package org.testcontainers.containers;
import com.github.dockerjava.api.command.InspectContainerResponse;
import com.github.dockerjava.api.model.Container;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NonNull;
import org.testcontainers.DockerClientFactory... | 701 |
1,831 | /**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* 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.
*/
#include "logdevice/common/protocol/GOSSIP_Message.h"
#include <memory>
#include <fol... | 3,271 |
1,090 | <filename>deps/winpty/src/agent/UnicodeEncodingTest.cc
// Copyright (c) 2015 <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... | 2,853 |
1,008 | /**
* Copyright 2010 - 2021 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 a... | 751 |
14,668 | <reponame>chromium/chromium
// 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 "chrome/browser/extensions/api/identity/identity_get_auth_token_function.h"
#include <set>
#include <vector>
#inclu... | 13,737 |
927 | <filename>MLPP/SoftmaxNet/SoftmaxNet.cpp
//
// SoftmaxNet.cpp
//
// Created by <NAME> on 10/2/20.
//
#include "SoftmaxNet.hpp"
#include "LinAlg/LinAlg.hpp"
#include "Data/Data.hpp"
#include "Regularization/Reg.hpp"
#include "Activation/Activation.hpp"
#include "Utilities/Utilities.hpp"
#include "Cost/Cost.hpp"
#inc... | 5,694 |
1,359 | <reponame>caugner/phpinspectionsea<filename>src/test/java/com/kalessil/phpStorm/phpInspectionsEA/controlFlow/MultipleReturnStatementsInspectorTest.java
package com.kalessil.phpStorm.phpInspectionsEA.controlFlow;
import com.kalessil.phpStorm.phpInspectionsEA.PhpCodeInsightFixtureTestCase;
import com.kalessil.phpStorm.p... | 369 |
716 | <reponame>abrahamtovarmob/flang<filename>runtime/libpgmath/lib/generic/math_tables/mth_aintdefs.h
/*
* 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
*
*/
/*********... | 1,397 |
430 | #include "Function.h"
#include "FunctionLocation.h"
/**
* Free the current function location and stack pad table
*/
Function::~Function() {
if(_current != NULL) {
_current->release();
}
if(_stackPad != NULL) {
getDataHeap()->free(_stackPad);
}
}
/**
* Copy the code and relocati... | 829 |
315 | <filename>encryption/enc_basic.py<gh_stars>100-1000
# MIT License
# Copyright (c) 2018 <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 limitati... | 5,060 |
451 | // File Automatically generated by eLiSe
#include "general/all.h"
#include "private/all.h"
#include "cEqResiduIm1DCBrownId.h"
cEqResiduIm1DCBrownId::cEqResiduIm1DCBrownId():
cElCompiledFonc(1)
{
AddIntRef (cIncIntervale("Intr1",0,17));
AddIntRef (cIncIntervale("Or1",17,23));
AddIntRef (cIncIntervale("Or... | 33,297 |
2,542 | //+---------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
//----------------------------------------------------------------------------
#pragma once
namespace Management
{
namespace LocalSecretService
{
class LocalSecretServiceInsta... | 714 |
1,603 | <filename>metadata-io/src/test/java/com/linkedin/metadata/search/elasticsearch/query/request/AutocompleteRequestHandlerTest.java
package com.linkedin.metadata.search.elasticsearch.query.request;
import com.linkedin.metadata.TestEntitySpecBuilder;
import java.util.List;
import java.util.Map;
import org.elasticsearch.ac... | 1,147 |
496 | <reponame>huangjd/simit-staging<gh_stars>100-1000
#ifndef REWRITE_SYSTEM_ASSIGN_H
#define REWRITE_SYSTEM_ASSIGN_H
#include "ir.h"
namespace simit {
namespace ir {
Func rewriteSystemAssigns(Func func);
}} // namespace simit::ir
#endif
| 103 |
5,023 | # 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 writing, ... | 1,262 |
446 | """
README
======
This file contains Python codes.
======
"""
import numpy as np
import scipy.stats as stats
import pythoncom
class BlackScholes:
_public_methods_ = ["call_pricer", "put_pricer"]
_reg_progid_ = "BlackScholes.Pricer"
_reg_clsid_ = pythoncom.CreateGuid()
def d1(self, ... | 758 |
640 | <gh_stars>100-1000
"""
"""
# Created on 2015.07.09
#
# Author: <NAME>
#
# Copyright 2015 - 2020 <NAME>
#
# This file is part of ldap3.
#
# ldap3 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 Foundat... | 650 |
372 | <reponame>mjhopkins/google-api-java-client-services
/*
* 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 o... | 1,336 |
623 | /*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2017 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | 749 |
2,151 | <reponame>Scopetta197/chromium
#ifndef UTIL_RINGBUFFER_H
#define UTIL_RINGBUFFER_H
#include "pipe/p_compiler.h"
#include "pipe/p_defines.h" /* only for pipe_error! */
/* Generic header
*/
struct util_packet {
unsigned dwords:8;
unsigned data24:24;
};
struct util_ringbuffer;
struct util_ringbuffer *uti... | 386 |
574 | /*
* Copyright 2019 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://www.apache.org/licenses/LICENSE-2.0
*
... | 416 |
12,278 | <filename>3rdParty/boost/1.71.0/libs/mpi/test/cartesian_topology_init_test.cpp
// Copyright <NAME> 2014.
// 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)
// Authors: <NAME>
#include <vector... | 1,219 |
471 | <reponame>andyasne/commcare-hq
import uuid
from django.test import Client, TestCase
from django.urls import reverse
from corehq.apps.data_dictionary.models import CaseProperty, CaseType
from corehq.apps.domain.shortcuts import create_domain
from corehq.apps.users.models import WebUser
from corehq.util.test_utils impo... | 1,691 |
1,648 |
static inline int computeSignal (context frame)
{
return 0;
}
static inline void clear_thread_stepping(thread t)
{
}
static inline void set_thread_stepping(thread t)
{
}
static inline int get_register(u64 num, void *buf, context c)
{
return -1;
}
static boolean set_thread_register(thread t, int regno, u64 ... | 280 |
328 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#pragma once
#include "stdafx.h"
using namespace std;
typedef NTSTATUS(__stdcall *_NtCreateFile)(
PHANDLE FileHandle,
ACCESS_MASK DesiredAccess,
... | 2,775 |
1,144 | <gh_stars>1000+
from typing import Dict, Tuple, Optional, Sequence
from random import choice
def split_hostport(hostport: str) -> Tuple[str, Optional[int]]:
split_host = hostport.split(":")
if len(split_host) == 1:
split_host.append(None)
else:
# Convert port to int
split_host[1] =... | 396 |
1,275 | <gh_stars>1000+
/*
* Copyright 2015-2016 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/
... | 652 |
335 | <gh_stars>100-1000
{
"word": "Consolation",
"definitions": [
"The comfort received by a person after a loss or disappointment.",
"A person or thing providing consolation.",
"(in sport) a goal scored at a point when it is no longer possible for the scoring team to win."
],
"parts-... | 120 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
namespac... | 5,403 |
4,262 | /*
* 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 ... | 770 |
335 | <gh_stars>100-1000
{
"word": "Paramount",
"definitions": [
"more important than anything else; supreme."
],
"parts-of-speech": "Adjective"
}
| 71 |
348 | {"nom":"Cheyssieu","circ":"8ème circonscription","dpt":"Isère","inscrits":809,"abs":493,"votants":316,"blancs":8,"nuls":3,"exp":305,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":101},{"nuance":"FN","nom":"<NAME>","voix":61},{"nuance":"FI","nom":"Mme <NAME>","voix":48},{"nuance":"SOC","nom":"<NAME>","voix":47},{"nuan... | 235 |
304 | <reponame>fjjdev/warnings-ng-plugin
package io.jenkins.plugins.analysis.warnings;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.NoSuchElementException;
import java.util.Optional;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Colle... | 4,252 |
700 | <filename>skidl/protonet.py
# -*- coding: utf-8 -*-
# The MIT License (MIT) - Copyright (c) 2016-2021 <NAME>.
"""
Prototype of a net which can become a Net or a Bus depending upon what is connected to it.
"""
from __future__ import ( # isort:skip
absolute_import,
division,
print_function,
unicode_li... | 1,461 |
1,144 | /* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright (c) 2011 The Chromium OS Authors.
* Copyright (c) 2011, NVIDIA Corp. All rights reserved.
*/
#ifndef _ASM_GENERIC_GPIO_H_
#define _ASM_GENERIC_GPIO_H_
#include <dm/ofnode.h>
struct ofnode_phandle_args;
/*
* Generic GPIO API for U-Boot
*
* --
* NB: This i... | 6,844 |
665 | <filename>rest/opstats/stat_aggregator.h
/* graphite_connector.h -*- C++ -*-
<NAME>, 3 August 2011
Copyright (c) 2011 mldb.ai inc. All rights reserved.
This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
Class to accumulate operational st... | 1,286 |
1,484 | #!usr/bin/env python3
import threading
import time
from typing import Optional
import pytest
from anchore_engine.subsys.caching import (
TTLCache,
local_named_cache,
thread_local_cache,
)
@pytest.fixture
def ttl_cache(request):
cache: TTLCache = TTLCache()
value: str = "test_value"
cache.ca... | 1,117 |
425 | // Copyright 2017-2019 VMware, Inc.
// SPDX-License-Identifier: BSD-2-Clause
//
// The BSD-2 license (the License) set forth below applies to all parts of the
// Cascade project. You may not use this file except in compliance with the
// License.
//
// BSD-2 License
//
// Redistribution and use in source and binary fo... | 8,750 |
348 | {"nom":"Heining-lès-Bouzonville","circ":"7ème circonscription","dpt":"Moselle","inscrits":266,"abs":147,"votants":119,"blancs":6,"nuls":0,"exp":113,"res":[{"nuance":"REM","nom":"<NAME>","voix":71},{"nuance":"FN","nom":"<NAME>","voix":42}]} | 98 |
2,177 | <gh_stars>1000+
package org.nutz.lang.reflect;
public interface FastMethod {
Object invoke(Object obj, Object ... args) throws Exception;
}
| 50 |
2,085 | def test():
assert (
"for doc in nlp.pipe(TEXTS)" in __solution__
), "Are you iterating over docs yielded by nlp.pipe?"
__msg__.good("Nice!")
| 68 |
1,449 | #include <QSharedPointer>
#include <QStringList>
#include "models/image.h"
#include "tags/tag.h"
#include "catch.h"
#include "integration-helpers.h"
TEST_CASE("Booru.org")
{
SECTION("Html")
{
QList<QSharedPointer<Image>> images = getImages("Gelbooru (0.1)", "rm.booru.org", "regex", "rating:safe", "results.html");... | 528 |
14,668 | <gh_stars>1000+
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.gesturenav;
import android.graphics.RectF;
import android.view.ViewGroup;
import org.chromium.chrome... | 1,132 |
1,090 | <filename>buildSrc/src/main/java/com/uber/okbuck/core/model/base/SourceSetType.java
package com.uber.okbuck.core.model.base;
public enum SourceSetType {
MAIN,
TEST,
INTEGRATION_TEST
}
| 75 |
312 | from datetime import datetime
from django.contrib.sessions.models import Session
from django.core.cache import cache
#from apps.forum.views import get_online_count
from apps.support.models import QQ
from apps.forum.models import Forum
from django import template
from django.utils.timezone import now, timedelta
from a... | 434 |
349 | /*
* Copyright (C) 2016-2022 <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 required by applicable law or agreed to ... | 2,063 |
605 | #include "libvim.h"
#include "minunit.h"
void test_setup(void)
{
vimExecute("e!");
vimInput("g");
vimInput("g");
vimInput("0");
}
void test_teardown(void) {}
MU_TEST(test_jumplist_openfile)
{
buf_T *firstBuf = vimBufferOpen("collateral/testfile.txt", 1, 0);
buf_T *secondBuf = vimBufferOpen("collateral/l... | 556 |
340 | <gh_stars>100-1000
'''
A collection of utility functions.
'''
import numpy as np
import scipy.stats as stats
from typing import Iterable
def sim_seasonal_data(n_series, timesteps, measure_noise,
freq=None, level=None, amp=None):
"""Generate sinusoidal data with periodic patterns.
Param... | 6,695 |
743 | <reponame>pipihi/nx<gh_stars>100-1000
#if defined(_MSC_VER) && _MSC_VER <= 1700
#include "msvc/headers/inttypes.h"
#else
#include <inttypes.h>
#endif
| 68 |
2,199 | /*
* Copyright (c) 2016—2021 <NAME> and individual contributors.
*
* 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 require... | 5,333 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 412 |
973 | package org.pcap4j.util;
import static org.junit.Assert.*;
import org.junit.Test;
@SuppressWarnings("javadoc")
public class ByteArraysTest {
@Test
public void testToHexString() throws Exception {
byte[] arr =
new byte[] {
(byte) 0x0,
(byte) 0x1,
(byte) 0x2,
(b... | 719 |
30,023 | """Config flow for SiteSage Emonitor integration."""
import logging
from aioemonitor import Emonitor
import aiohttp
import voluptuous as vol
from homeassistant import config_entries, core
from homeassistant.components import dhcp
from homeassistant.const import CONF_HOST, CONF_NAME
from homeassistant.data_entry_flow ... | 1,711 |
848 | # -*- coding: utf-8 -*-
# Copyright 2016 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
#
# Un... | 26,415 |
432 | package tk.wasdennnoch.androidn_ify.systemui.notifications;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.XModuleResources;
import android.content.res.XResources;
import android.graphics.Outline;
import android.graphics.Rect... | 34,717 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/iLifeSlideshow.framework/iLifeSlideshow
*/
#import <iLifeSlideshow/MPSongManager.h>
#import <iLifeSlideshow/XXUnknownSuperclass.h>
@class NSMutableDictionary, NSString, NSRecursiveLock;
@interface MPSongManager : X... | 389 |
5,169 | {
"name": "PickingColors",
"version": "0.1.2",
"summary": "A versatile color-picker with sliders, hex-presentation, manual input and history.",
"description": "A versatile color-picker library, that was inspired from the pod 'Color-Picker-for-iOS'.\n\nThe features planned for version 1.0 are:\n\n- Manipulate 'h... | 610 |
591 | /*
* ===================== create_go_oth.h ==========================
* -- tpr --
* CREATE -- 2019.04.12
* MODIFY --
* ----------------------------------------------------------
* 通用的 辅助函数
* ---------------
... | 1,242 |
916 | package com.vladmihalcea.flexypool.util;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
/**
* <code>LazyJndiResolver</code> - This class permits fetching a JNDI resource lazily so that the JNDI DataSource is
* retrieved on demand as opposed to the defaul... | 775 |
970 | [{"id":1,"label":{"name":"Testing","color":"#F0AD4E","description":null},"position":1},{"id":2,"label":{"name":"Ready","color":"#FF0000","description":null},"position":2},{"id":3,"label":{"name":"Production","color":"#FF5F00","description":null},"position":3}] | 80 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Marry",
"definitions": [
"Join in marriage.",
"Take (someone) as one's wife or husband in marriage.",
"Enter into marriage.",
"Become a member of (a family) by marriage.",
"(of a parent or guardian) give (a son or daughter) in ... | 216 |
764 | {"symbol": "ELAMA","address": "0xFb444c1f2B718dDfC385cB8Fd9f2D1D776b24668","overview":{"en": ""},"email": "<EMAIL>","website": "http://elamachain.io/","state": "NORMAL","links": {"blog": "https://medium.com/@elamachain","twitter": "https://twitter.com/elamachain","telegram": "https://t.me/elamachain","github": "https:/... | 138 |
521 | <reponame>Andrik-555/retdec<gh_stars>100-1000
/**
* @file include/retdec/loader/loader/image.h
* @brief Declaration of loadable image class.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#ifndef RETDEC_LOADER_RETDEC_LOADER_IMAGE_H
#define RETDEC_LOADER_RETDEC_LOADER_IMAGE_H
#include <mem... | 1,340 |
790 | <filename>lib/django-1.4/django/contrib/databrowse/__init__.py
import warnings
from django.contrib.databrowse.sites import DatabrowsePlugin, ModelDatabrowse, DatabrowseSite, site
warnings.warn("The Databrowse contrib app is deprecated",
PendingDeprecationWarning)
| 95 |
17,004 | <reponame>BillyMagarali/zulip
from zerver.lib.test_classes import WebhookTestCase
class OpenCollectiveHookTests(WebhookTestCase):
STREAM_NAME = "test"
URL_TEMPLATE = "/api/v1/external/opencollective?&api_key={api_key}&stream={stream}"
WEBHOOK_DIR_NAME = "opencollective"
# Note: Include a test functio... | 535 |
1,473 | <filename>test/e2e/test_input/wxWidgets/include/wx/xrc/xh_ribbon.h
/////////////////////////////////////////////////////////////////////////////
// Name: wx/xrc/xh_ribbon.h
// Purpose: XML resource handler for wxRibbon related classes
// Author: <NAME>
// Created: 2010-04-23
// Copyright: (c) 2010... | 549 |
335 | {
"word": "Tactician",
"definitions": [
"A person who uses a carefully planned strategy to achieve a specific end."
],
"parts-of-speech": "Noun"
} | 66 |
937 | <gh_stars>100-1000
{
"name": "webcomponents-polyfills",
"private": true,
"description": "Webcomponents polyfills monorepo",
"license": "BSD-3-Clause",
"author": "The Polymer Authors",
"scripts": {
"bootstrap": "lerna bootstrap --ci --reject-cycles",
"build": "lerna run build --stream",
"build:wa... | 1,280 |
841 | <reponame>brunolmfg/resteasy
package org.jboss.resteasy.test.resource.param.resource;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import java.util.SortedSet;
import jakarta.ws.rs.CookieParam;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import org.jb... | 9,344 |
3,156 | from test.integration.base import DBTIntegrationTest, use_profile
import yaml
class TestGraphSelection(DBTIntegrationTest):
@property
def schema(self):
return "graph_selection_tests_007"
@property
def models(self):
return "models"
@property
def selectors_config(self):
... | 5,191 |
347 | <reponame>jihwahn1018/ovirt-engine<filename>backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VMInfoListReturn.java
package org.ovirt.engine.core.vdsbroker.vdsbroker;
import java.util.HashMap;
import java.util.Map;
@SuppressWarnings("unchecked")
public final class VMInfoListRet... | 378 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport
*/
#import <OfficeImport/EMSheetMapper.h>
#import <OfficeImport/EMWorksheetMapper.h>
#import <OfficeImport/OfficeImport-Structs.h>
@class ECColumnWidthConvertor, CMStyle, EDWorksh... | 827 |
1,700 | <gh_stars>1000+
#include "version.h"
#if FF_API_AUDIOCONVERT
#include "channel_layout.h"
#endif
| 43 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.