max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,027
/** * Super.h * * The Super class is used to implement one of the super variables $_POST, * $_GET, $_SERVER, et cetera * * @copyright 2014 Copernica BV * @author <NAME> <<EMAIL>> */ /** * Set up namespace */ namespace Php { /** * Class definition */ class PHPCPP_EXPORT Super { public: /** ...
1,030
11,719
// Copyright (C) 2011 <NAME> (<EMAIL>) // License: Boost Software License See LICENSE.txt for the full license. #ifndef DLIB_HASh_ #define DLIB_HASh_ #include "general_hash/hash.h" #include "general_hash/random_hashing.h" #include "general_hash/count_bits.h" #endif // DLIB_HASh_
111
24,910
<reponame>diwenshi61/ccxt import ccxt print(ccxt.bitfinex().fetch_ticker('BTC/USDT'))
40
14,668
// Copyright 2019 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 "chromeos/services/device_sync/cryptauth_metadata_syncer.h" #include <utility> namespace chromeos { namespace device_sync { CryptAuthMetadata...
602
10,225
package io.quarkus.it.vertx; import javax.enterprise.context.ApplicationScoped; import io.quarkus.vertx.ConsumeEvent; @ApplicationScoped public class EventBusConsumer { @ConsumeEvent("pets") public String sayHi(Pet pet) { return "Hello " + pet.getName() + " (" + pet.getKind() + ")"; } @Cons...
166
428
package loon.srpg.effect; import loon.core.graphics.device.LColor; import loon.core.graphics.device.LFont; import loon.core.graphics.opengl.GLEx; import loon.srpg.SRPGScreen; /** * * Copyright 2008 - 2011 * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in...
755
2,542
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under GPLv2 license. #ifndef _SFBLKDEV_H #define _SFBLKDEV_H #include "sfblkdev_ctrl.h" #include <linux/kfifo.h> #define BLK_MAX_SEGMENT_LMT (MB(1)) #define BLK_SECTOR_SIZE (512) #define SFBLKDEV_NAME "sfblkdev" #define MAX_LU_REGISTRATION 100...
1,584
664
#pragma once #include <qglobal.h> #include "qwindowdefs.h" #if defined(Q_OS_WIN) struct ITaskbarList3; namespace ui_utils { class TaskBar { public: TaskBar(); ~TaskBar(); static unsigned int InitMessage(); void Init(WId main); void Uninit(); void setMaximum(int m) { m_maximum = m; } v...
231
308
import cv2 def main(): imageOne = cv2.imread("../data/4.1.04.tiff", 1) areaInter = cv2.resize(imageOne, None, fx=3, fy=3, interpolation=cv2.INTER_AREA) cubicInter = cv2.resize(imageOne, None, fx=3, fy=3, interpolation=cv2.INTER_CUBIC) linearInter = cv2.resize(imageOne, None, fx=3, fy=3, interpolation...
404
5,169
<filename>Specs/5/b/2/PayUmoney_SDK/1.0/PayUmoney_SDK.podspec.json { "name": "PayUmoney_SDK", "version": "1.0", "license": "MIT", "homepage": "https://github.com/payu-intrepos/PayUMoney-IOS-SDK", "authors": { "PayUmoney Mobile Integration": "<EMAIL>" }, "summary": "PayUmoney iOS SDK", "description":...
351
528
#!/usr/bin/env python import telnetlib import time import getpass def send_command(remote_conn, cmd): '''Send a command down the telnet channel.''' cmd = cmd.rstrip() remote_conn.write(cmd + '\n') time.sleep(1) return remote_conn.read_very_eager() if __name__ == "__main__": debug = False ...
430
476
/* * Copyright (C) 2018-2021. Huawei Technologies Co., Ltd. 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 * * U...
2,743
5,079
<filename>examples/space_invaders/space_invaders.py import curses import logging import random import re import sys import textwrap import time from sqlalchemy import Column from sqlalchemy import create_engine from sqlalchemy import ForeignKey from sqlalchemy import func from sqlalchemy import Integer from sqlalchemy...
9,230
504
<reponame>Andycheng0614/pcl-learning /* * @Description: https://www.cnblogs.com/li-yao7758258/p/6437440.html * @Author: HCQ * @Company(School): UCAS * @Email: <EMAIL> * @Date: 2020-10-08 21:46:40 * @LastEditTime: 2020-10-27 16:03:16 * @FilePath: /pcl-learning/02kdtree/1kdtree_search/kdtree_search.cpp */ #incl...
3,385
2,377
<reponame>allansrc/fuchsia<gh_stars>1000+ /* * Copyright (C) 2016 The Android Open Source 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: * * Redistributions of source code must ...
875
777
<filename>base/task_scheduler/delayed_task_manager.h // 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. #ifndef BASE_TASK_SCHEDULER_DELAYED_TASK_MANAGER_H_ #define BASE_TASK_SCHEDULER_DELAYED_TASK_MANAGER_...
661
1,042
/******************************************************************************** * ReactPhysics3D physics library, http://www.reactphysics3d.com * * Copyright (c) 2010-2016 <NAME> * ********************************************************************************* *...
1,745
3,102
<reponame>medismailben/llvm-project<filename>clang/test/Sema/pragma-attribute-namespace.c // RUN: %clang_cc1 -fsyntax-only -verify %s #if !__has_extension(pragma_clang_attribute_namespaces) #error #endif #pragma clang attribute MyNamespace.push (__attribute__((annotate)), apply_to=function) // expected-error 2 {{'ann...
683
583
<filename>src/lib/utils/meta_tables/meta_system_information_table.cpp #include <fstream> #ifdef __linux__ #include <sys/sysinfo.h> #endif #ifdef __APPLE__ #include <mach/mach.h> #endif #include "hyrise.hpp" #include "meta_system_information_table.hpp" namespace opossum { MetaSystemInformationTable::MetaSystemInfor...
1,353
612
<reponame>jaxnb/icestorm #!/usr/bin/env python3 from fuzzconfig import * import numpy as np import os device_class = os.getenv("ICEDEVICE") working_dir = "work_%s_mem" % (device_class, ) os.system("rm -rf " + working_dir) os.mkdir(working_dir) for idx in range(num): with open(working_dir + "/mem_%02d.v" % idx,...
756
903
package software.amazon.smithy.model.loader; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.equalTo; import java.util.stream.Stream; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider...
2,032
430
/* * xdr.h * * Copyright (c) 2003 <NAME> <<EMAIL>> * All rights reserved. * * $Id: xdr.h,v 1.1 2003/05/02 06:33:28 marius Exp $ */ #ifndef TRICKLE_XDR_H #define TRICKLE_XDR_H int xdr2msg(struct msg *, u_char *, uint32_t); int msg2xdr(struct msg *, u_char *, uint32_t *); #endif /* TRICKLE_XDR_H */
145
777
<gh_stars>100-1000 // 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 "ios/chrome/browser/ui/webui/physical_web_ui.h" #include "base/macros.h" #include "base/memory/ptr_util.h" #include "base/met...
1,332
1,682
<gh_stars>1000+ /* Copyright (c) 2019 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
619
777
<reponame>google-ar/chromium<gh_stars>100-1000 // 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 CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONNECTION_H_ #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_C...
1,367
315
package krasa.grepconsole.gui.table; import com.intellij.openapi.diagnostic.Logger; import com.intellij.ui.treeStructure.treetable.TreeTableModelAdapter; import com.intellij.ui.treeStructure.treetable.TreeTableTree; import com.intellij.util.ArrayUtil; import krasa.grepconsole.gui.MainSettingsForm; import org.jetbrains...
2,882
7,892
<reponame>joshrose/audacity /* Dynamic manifest specification for LV2 Copyright 2008-2011 <NAME> <<EMAIL>> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all ...
1,788
442
<gh_stars>100-1000 package org.jmqtt.bus; import org.jmqtt.bus.event.GatewayListener; import org.jmqtt.bus.model.ClusterEvent; /** * cluster event send and listen */ public interface ClusterEventManager { void sendEvent(ClusterEvent clusterEvent); void registerEventListener(GatewayListener listener); ...
118
335
{ "word": "Homosexuality", "definitions": [ "The quality or characteristic of being sexually attracted solely to people of one's own sex." ], "parts-of-speech": "Noun" }
70
1,526
# https://github.com/dw/mitogen/issues/297 from __future__ import (absolute_import, division, print_function) import os class VarsModule(object): def __init__(self, *args): os.environ['EVIL_VARS_PLUGIN'] = 'YIPEEE' def get_vars(self, loader, path, entities, cache=True): return {}
123
575
<gh_stars>100-1000 // 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. #ifndef IOS_CHROME_APP_APPLICATION_DELEGATE_URL_OPENER_H_ #define IOS_CHROME_APP_APPLICATION_DELEGATE_URL_OPENER_H_ #import <UIKit/UIK...
521
4,234
<gh_stars>1000+ #pragma once #include <mbgl/util/optional.hpp> #include <mbgl/util/string.hpp> #include <mbgl/util/variant.hpp> #include <vector> namespace mbgl { namespace style { namespace expression { namespace type { template <class T> std::string toString(const T& t); struct NullType { constexpr NullType()...
1,508
774
<gh_stars>100-1000 package com.examples; import java.util.List; import net.droidsolutions.droidcharts.core.data.XYDataset; import net.droidsolutions.droidcharts.core.data.xy.XYSeries; import net.droidsolutions.droidcharts.core.data.xy.XYSeriesCollection; import android.app.Activity; import android.content.Int...
790
440
/*========================== begin_copyright_notice ============================ Copyright (C) 2017-2021 Intel Corporation SPDX-License-Identifier: MIT ============================= end_copyright_notice ===========================*/ #ifndef _IGA_IR_DUANALYSIS_HPP #define _IGA_IR_DUANALYSIS_HPP #include "../IR/RegS...
1,473
640
<reponame>ahjelm/z88dk #include <sound.h> /* RAW sound block (bugle.raw) possibly valid 4bit audio conversion tool for che C128: https://github.com/sgjava/garage/blob/master/commodore/cpm/sgctools/src/zbcnv.c */ /*C*/ extern char c[]={ 0x66, 0x67, 0x89, 0xAC, 0xCC, 0xA9, 0x74, 0x32, 0x34, 0x45, 0x67, 0x78, 0x...
26,328
1,093
<gh_stars>1000+ /* * Copyright 2014-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unle...
1,773
486
package edu.tum.cup2.generator.terminals; import edu.tum.cup2.grammar.Terminal; import edu.tum.cup2.util.It; import java.util.Collection; import java.util.Iterator; import java.util.LinkedList; import java.util.Objects; /** * Naive, mutable implementation of {@link ITerminalSeq}. * * @author Gero */ ...
1,381
14,425
<filename>hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/dao/AppRequestAllocationInfo.java /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTIC...
894
2,151
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/core/css/properties/longhands/stroke_dasharray.h" #include "third_party/blink/renderer/core/css/css_value_list.h" #i...
590
7,320
<filename>ClassySharkWS/src/com/google/classyshark/updater/networking/GuiDownloader.java /* * Copyright 2016 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://w...
457
627
<filename>indy_common/test/auth/test_auth_actions.py<gh_stars>100-1000 from indy_common.authorize.auth_actions import compile_action_id, ADD_PREFIX, EDIT_PREFIX, split_action_id, ActionDef def test_get_action_id_action_add(action_add): assert action_add.get_action_id() == compile_action_id(txn_type='SomeType', ...
1,115
587
<reponame>truhlikfredy/light-admin-https<filename>lightadmin-core/src/main/java/org/lightadmin/core/config/bootstrap/parsing/validation/CompositeConfigurationUnitsValidator.java /* * Copyright 2012-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not...
2,840
2,151
// 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. #ifndef IOS_CHROME_BROWSER_UI_QR_SCANNER_QR_SCANNER_ALERTS_H_ #define IOS_CHROME_BROWSER_UI_QR_SCANNER_QR_SCANNER_ALERTS_H_ #include "ios/chrome/browser/...
381
12,718
<filename>lib/libc/wasi/libc-top-half/musl/src/misc/nftw.c<gh_stars>1000+ #include <ftw.h> #include <dirent.h> #include <fcntl.h> #include <sys/stat.h> #include <errno.h> #include <unistd.h> #include <string.h> #include <limits.h> #if defined(__wasilibc_unmodified_upstream) || defined(_REENTRANT) #include <pthread.h> #...
1,609
780
package com.codeborne.selenide.impl; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; public class AliasTest { @Test void userCanProvideAliasForSomething() { assertThat(new Alias("login button").getO...
321
892
<reponame>westonsteimel/advisory-database-github<filename>advisories/unreviewed/2022/04/GHSA-6j9f-c956-rhqf/GHSA-6j9f-c956-rhqf.json<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-6j9f-c956-rhqf", "modified": "2022-04-30T18:20:55Z", "published": "2022-04-30T18:20:55Z", "aliases": [ "CVE-2002-1...
728
1,960
<filename>rl_coach/architectures/mxnet_components/heads/head.py # # Copyright (c) 2017 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/license...
3,392
2,344
#!/usr/bin/env python3 # 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 botorch.models.kernels.categorical import CategoricalKernel from botorch.models.kernels.downsampling import Downsa...
212
401
package com.yomahub.liteflow.test.customThreadPool; import com.yomahub.liteflow.core.FlowExecutor; import com.yomahub.liteflow.entity.data.DefaultSlot; import com.yomahub.liteflow.entity.data.LiteflowResponse; import com.yomahub.liteflow.test.BaseTest; import org.junit.Assert; import org.junit.Test; import org.junit.r...
552
578
<reponame>vk4g/syndesis /* * Copyright (C) 2016 Red Hat, 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 b...
3,749
938
<reponame>brickviking/TinkersConstruct { "modifier_id": "tconstruct:springy", "text": [ { "text": "Has a 25% chance per level to apply up to 2 blocks of knockback per level to the attacker. Applies effect from the piece with the largest bonus." } ], "more_text_space": true, "effects": [ "Can...
149
572
<reponame>BoscoHan/ECE493 """ Simple MLP policy trained via estool (saved in /zoo) code from https://github.com/hardmaru/estool """ import numpy as np import json from collections import namedtuple Game = namedtuple('Game', ['env_name', 'time_factor', 'input_size', 'output_size', 'layers', 'activation', 'noise_bias'...
2,303
1,278
package xyz.danoz.recyclerviewfastscroller; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.RecyclerView.OnScrollListener; /** * To be implemented by any object that scrolls a {@link RecyclerView} */ public interface RecyclerViewScroller { /** * What good is a RecyclerViewS...
442
368
/* * Copyright (c) 2016-2019 <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 to use this software for any purpose, * including commercial appl...
669
690
<reponame>Mr00Anderson/artemis-odb<filename>artemis-backend-gwt/artemis-gwt/src/main/java/com/artemis/backends/gwt/emu/com/artemis/Archetype.java package com.artemis; /** * Provides a blueprint for new entities, offering greatly * improved insertion performance for systems. * </p> * Instance entities using {@link ...
294
12,278
<gh_stars>1000+ /* Copyright 2018 <NAME> (<EMAIL>) 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) */ #ifdef TEST_STD #include <type_traits> #else #include <boost/type_traits/is_bounded_array.hpp> #endif #include "check_...
669
335
<gh_stars>100-1000 { "word": "Receivable", "definitions": [ "Able to be received." ], "parts-of-speech": "Adjective" }
68
311
/** * Copyright 2019 The JoyQueue Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
1,180
17,956
{ "name": "xlsx-ts", "main": "dist/index.js", "types": "dist/index.d.ts", "version": "0.0.0", "license": "Apache-2.0", "scripts": { "build": "tsc && browserify -o dist/browser.js src/index.js", "lint": "tslint lib/*.ts" }, "private": true, "dependencies": { "xlsx": "https://cdn.sheetjs.com...
215
376
#pragma once #include <Chip/CM0+/Freescale/MKL24Z4/FTFA_FlashConfig.hpp> #include <Chip/CM0+/Freescale/MKL24Z4/DMA.hpp> #include <Chip/CM0+/Freescale/MKL24Z4/FTFA.hpp> #include <Chip/CM0+/Freescale/MKL24Z4/DMAMUX0.hpp> #include <Chip/CM0+/Freescale/MKL24Z4/PIT.hpp> #include <Chip/CM0+/Freescale/MKL24Z4/TPM0.hpp> #incl...
1,317
4,994
<reponame>GitHubRepoDescription/tiny-dnn /* Copyright (c) 2013, <NAME> and the respective contributors All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include "tiny_dnn/core/framework/op_kernel.h" #include "tiny_dn...
1,317
707
<filename>glass/src/libnt/native/cpp/NTSpeedController.cpp // Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #include "glass/networktables/NTSpeedController.h" #include ...
755
3,710
<reponame>wofogen/tahoma2d #pragma once #include "sequence_ops.h"
32
531
/* * Copyright (c) 2015-2020, www.dibo.ltd (<EMAIL>). * <p> * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * <p> * https://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required ...
1,344
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,555
2,757
/** @file Copyright (c) 2016-2018, ARM Limited. All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/l...
395
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.security; import com.azure.core.util.Context; /** Samples for JitNetworkAccessPolicies Get. */ public final class JitNetworkAcc...
244
3,603
/* * 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 * distribut...
1,562
952
<gh_stars>100-1000 /** MIT License Copyright (c) 2018 NVIDIA CORPORATION. All rights reserved. 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 th...
3,159
922
/* * Hibernate Validator, declare and validate application constraints * * License: Apache License, Version 2.0 * See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>. */ package org.hibernate.validator.test.constraints.composition.validationtarget; import static org.hibe...
579
1,006
<reponame>eenurkka/incubator-nuttx /**************************************************************************** * arch/arm/include/samd2l2/saml21_irq.h * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for add...
2,548
3,765
/** * BSD-style license; for more info see http://pmd.sourceforge.net/license.html */ package net.sourceforge.pmd.lang.plsql.ast; import net.sourceforge.pmd.lang.ast.Node; import net.sourceforge.pmd.lang.symboltable.Scope; import net.sourceforge.pmd.lang.symboltable.ScopedNode; public interface PLSQLNode extends N...
330
335
<gh_stars>100-1000 { "word": "Treasure", "definitions": [ "A quantity of precious metals, gems, or other valuable objects.", "A very valuable object.", "A much loved or highly valued person." ], "parts-of-speech": "Noun" }
105
5,169
<gh_stars>1000+ { "name": "Giraffe", "version": "1.2.1", "summary": "Lightweight & Elegant Networking Library in Swift", "description": "Giraffe is a lightweight and elegant networking library in swift. The idea and most of codes comes from SwiftTalk.", "homepage": "https://github.com/derekcoder/Giraffe", "...
270
634
/**************************************************************** * 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...
9,043
959
// Version number, extracted from git #define QUOTE(str) #str #define XQUOTE(str) QUOTE(str) const char *kFCServerVersion = XQUOTE(FCSERVER_VERSION);
51
1,338
/* volume_util.h - volume functions * * Copyright (c) 2006-2007 <NAME> (3dEyes**) * * This program/include file is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as published * by the Free Software Foundation; either version 2 of the License, or * (at ...
312
2,106
<gh_stars>1000+ """SparkSQL backend for blaze. Notes ----- Translation happens via the Hive sqlalchemy dialect, which is then sent to SparkSQL. """ from __future__ import absolute_import, division, print_function from functools import reduce from operator import and_ from distutils.version import LooseVersion from ...
988
3,631
/* * Copyright 2005 JBoss 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 i...
695
928
#define _GNU_SOURCE #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <pthread.h> #include <string.h> #include <sys/prctl.h> #include <errno.h> #include "test.h" // ============================================================================ // Helper function // =====================================...
1,841
3,172
# Copyright (c) 2020 PaddlePaddle 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...
2,713
3,102
<filename>clang/test/Sema/attr-minsize.c // RUN: %clang_cc1 -fsyntax-only -verify %s int foo() __attribute__((__minsize__)); int var1 __attribute__((__minsize__)); // expected-error{{'__minsize__' attribute only applies to functions and Objective-C methods}}
89
318
"""test_homeassistantplugin :: Tests for Fauxmo's `HomeAssistantPlugin`.""" import json from http.client import HTTPResponse from unittest.mock import MagicMock, patch from fauxmo.plugins.homeassistantplugin import HomeAssistantPlugin config_path_str = "tests/test_homeassistantplugin_config.json" @patch("urllib....
1,245
850
// GENERATED FILE - DO NOT MODIFY #ifndef tensorflow_core_framework_graph_transfer_info_proto_H_ #define tensorflow_core_framework_graph_transfer_info_proto_H_ #include "tensorflow/core/framework/graph_transfer_info.pb.h" #include "tensorflow/core/platform/macros.h" #include "tensorflow/core/platform/protobuf.h" #incl...
1,216
778
import KratosMultiphysics as Kratos import KratosMultiphysics.StatisticsApplication as KratosStats import KratosMultiphysics.KratosUnittest as KratosUnittest from KratosMultiphysics.StatisticsApplication.spatial_utilities import GetItemContainer from KratosMultiphysics.StatisticsApplication.method_utilities import Get...
5,820
506
<filename>examples/core2_for_aws/FactoryTest/WifiSacn.c const unsigned char wifiSacnImage[28123]={ 0xff,0xd8,0xff,0xe1,0x0b,0x4e,0x45,0x78,0x69,0x66,0x00,0x00,0x4d,0x4d,0x00,0x2a, 0x00,0x00,0x00,0x08,0x00,0x07,0x01,0x12,0x00,0x03,0x00,0x00,0x00,0x01,0x00,0x01, 0x00,0x00,0x01,0x1a,0x00,0x05,0x00,0x00,0x00,0x01,0x00,0...
120,855
1,768
<gh_stars>1000+ package org.lamport.tla.toolbox.tool.prover.ui.output.data; import java.util.Iterator; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import org.lamport.tla.toolbox.tool.prover.ui.ProverUIActivator; import org.lamport.tla.toolbox.tool.prover.ui.util.ProverHelper; im...
3,172
452
<reponame>suztomo/firebase-admin-java<gh_stars>100-1000 /* * 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...
3,285
454
<gh_stars>100-1000 package io.smallrye.mutiny.streams.stages; import org.eclipse.microprofile.reactive.streams.operators.spi.Stage; import io.smallrye.mutiny.Multi; import io.smallrye.mutiny.streams.Engine; import io.smallrye.mutiny.streams.operators.ProcessingStage; import io.smallrye.mutiny.streams.operators.Proces...
277
804
<reponame>CaiRencai/FakeWeather package com.liyu.fakeweather.ui.setting; import android.os.Build; import android.os.Bundle; import android.support.annotation.ColorInt; import android.support.annotation.NonNull; import android.support.v4.view.ViewCompat; import android.view.View; import android.view.ViewGroup; import a...
1,366
1,561
<filename>bigtable/hbase/snippets/src/test/java/com/example/bigtable/ReadsTest.java /* * Copyright 2019 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...
8,764
454
<filename>data_collection/gazette/spiders/sc_campo_alegre.py from gazette.spiders.base.fecam import FecamGazetteSpider class ScCampoAlegreSpider(FecamGazetteSpider): name = "sc_campo_alegre" FECAM_QUERY = "cod_entidade:57" TERRITORY_ID = "4203303"
115
598
#ifndef LIBWEBRTC_H #define LIBWEBRTC_H // shared ABI to Microstack WebRTC and Browsers WebRTC. #ifdef __cplusplus extern "C" { #endif enum libwebrtc_callback_reasons { LWRTC_CALLBACK_LOCAL_DESCRIPTION = 1, LWRTC_CALLBACK_ICE_CANDIDATE = 2, LWRTC_CALLBACK_ESTABLISHED = 3, LWRTC_CALLBACK_DISCONNECTED ...
797
1,085
<filename>sabot/kernel/src/main/java/com/dremio/exec/store/BlockBasedSplitGenerator.java /* * Copyright (C) 2017-2019 Dremio 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 ...
1,382
460
# This file is part of the Astrometry.net suite. # Licensed under a 3-clause BSD style license - see LICENSE #import sqlite3 #import commands from __future__ import print_function import os import sys def backtick(cmd): (childin, childout) = os.popen2(cmd) childin.close() out = childout.read() return ...
687
2,577
<filename>engine/src/test/java/org/camunda/bpm/engine/test/bpmn/event/error/UnhandledBpmnErrorTest.java<gh_stars>1000+ /* * 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 i...
1,817
1,240
package com.eventyay.organizer.core.presenter; import com.eventyay.organizer.common.rx.Logger; import io.reactivex.Observable; public final class TestUtil { public static final Observable ERROR_OBSERVABLE = Observable.error(Logger.TEST_ERROR); private TestUtil() { // Never Called } }
115
721
package crazypants.enderio.conduits.conduit.power; import java.util.Collection; import java.util.HashSet; import java.util.Set; import javax.annotation.Nonnull; import javax.annotation.Nullable; import crazypants.enderio.base.conduit.ConduitUtil.UnloadedBlockException; import crazypants.enderio.base.conduit.IConduit...
1,502
597
<filename>supervisor/security/module.py """Fetch last versions from webserver.""" from __future__ import annotations import logging from ..const import ( ATTR_CONTENT_TRUST, ATTR_FORCE_SECURITY, ATTR_PWNED, FILE_HASSIO_SECURITY, ) from ..coresys import CoreSys, CoreSysAttributes from ..exceptions impo...
2,614
5,087
<reponame>drpreetyrai/ChatBotCourse # coding:utf-8 import copy, numpy as np np.random.seed(0) # compute sigmoid nonlinearity def sigmoid(x): output = 1/(1+np.exp(-x)) return output # convert output of sigmoid function to its derivative def sigmoid_output_to_derivative(output): return output*(1-output) # ...
1,738