max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,144 | <filename>kernel/nvidia/drivers/net/wireless/realtek/rtl8812au/hal/hal_dm.c
/******************************************************************************
*
* Copyright(c) 2014 - 2017 Realtek Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of... | 25,247 |
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.customerinsights.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fa... | 1,237 |
1,540 | package test.ignore;
import static org.assertj.core.api.Assertions.assertThat;
import org.testng.TestNG;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import test.InvokedMethodListener;
import test.SimpleBaseTest;
import test.ignore.ignorePackage.IgnorePackageSample;
import test.igno... | 1,003 |
504 | <gh_stars>100-1000
/***********************************************************************
*
* Copyright (c) Geoworks 1994 -- All Rights Reserved
*
* GEOWORKS CONFIDENTIAL
*
* PROJECT: PCGEOS
* MODULE: ip.h
* FILE: ip.h
*
* AUTHOR: <NAME>: Jul 6, 1994
*
* REVISION HISTORY:
* Date... | 5,144 |
8,747 | <reponame>lovyan03/esp-idf
// Copyright 2021 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
/... | 1,181 |
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.
#ifndef IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_HEADER_VIEW_CONTROLLER_DELEGATE_H_
#define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS... | 292 |
475 | /*
* Copyright (C) 2020 The zfoo 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 agreed t... | 1,173 |
6,992 | <gh_stars>1000+
/*
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | 7,244 |
1,853 | struct Foo {
int a[5];
float b[];
};
int main()
{
Foo foo{{10}, {}};
auto [a1, b1] = foo;
const auto& [a2, b2] = foo;
}
| 66 |
511 | <reponame>SenthilKumarGS/TizenRT<filename>external/libcxx-test/support/archetypes.ipp
/****************************************************************************
*
* Copyright 2018 Samsung Electronics All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this ... | 2,326 |
796 | <reponame>fjarri/pykka
"""
The :mod:`pykka.messages` module contains Pykka's own actor messages.
In general, you should not need to use any of these classes. However, they have
been made part of the public API so that certain optimizations can be done
without touching Pykka's internals.
An example is to combine :meth... | 621 |
1,812 | #include <qpdf/ClosedFileInputSource.hh>
#include <qpdf/FileInputSource.hh>
ClosedFileInputSource::Members::Members(char const* filename) :
filename(filename),
offset(0),
stay_open(false)
{
}
ClosedFileInputSource::Members::~Members()
{
}
ClosedFileInputSource::ClosedFileInputSource(char const* filename)... | 903 |
2,059 | <filename>app/canvas/datum_editor.h
#pragma once
#include <Python.h>
#include <QGraphicsTextItem>
#include <QRegularExpression>
#include <QToolTip>
#include <QTextCursor>
#include "graph/watchers.h"
#include "undo/undo_catcher.h"
#include "undo/undo_change_expr.h"
class Datum;
class DatumEditor :
public UndoC... | 844 |
828 | <gh_stars>100-1000
/*
* Copyright 2008-2009 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... | 6,680 |
389 | //
// RSCoreDataUtilities.h
// Vesper
//
// Created by <NAME> on 12/6/12.
// Copyright (c) 2012 Ranchero Software. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface RSCoreDataUtilities : NSObject
+ (NSManagedObject *)fetchManagedObjectWithValue:(id)value forKey:(NSString *)key entityName:(NS... | 348 |
14,668 | // 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.
#ifndef CHROME_RENDERER_SUBRESOURCE_REDIRECT_PUBLIC_RESOURCE_DECIDER_AGENT_H_
#define CHROME_RENDERER_SUBRESOURCE_REDIRECT_PUBLIC_RESOURCE_DECIDER_AGENT_H... | 936 |
45,293 | <reponame>AndrewReitz/kotlin
import java.io.*;
import java.net.*;
public class Main {
public static void main(String[] args) throws Exception {
URL[] urls = new URL[args.length];
for (int i = 0; i < args.length; i++) {
urls[i] = new File(args[i]).toURI().toURL();
}
Clas... | 204 |
6,497 | package com.sohu.cache.dao;
import com.sohu.cache.entity.MachineRoom;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
* Created by chenshi on 2018/10/16.
*... | 351 |
3,083 | // Copyright 2011-2016 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 ... | 1,464 |
742 | #include <algorithm>
#include "CitizenUtils.h"
#include "EntityDefinitionLibrary.h"
#include "EntityManager.h"
#include "EntityType.h"
#include "../Assets/ArenaAnimUtils.h"
#include "../Assets/ArenaPaletteName.h"
#include "../Assets/BinaryAssetLibrary.h"
#include "../Game/CardinalDirection.h"
#include "../Game/Cardina... | 3,487 |
582 | <reponame>PinoEire/archi
/**
* This program and the accompanying materials
* are made available under the terms of the License
* which accompanies this distribution in the file LICENSE.txt
*/
package com.archimatetool.editor.browser;
import org.eclipse.ui.part.EditorActionBarContributor;
/**
* Action... | 151 |
1,671 | <gh_stars>1000+
/*
* Copyright 2020 LinkedIn Corp. 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 requ... | 2,009 |
343 | <filename>internal/ccall/sfio/sfungetc.c
/* $Id$ $Revision$ */
/* vim:set shiftwidth=4 ts=8: */
/*************************************************************************
* Copyright (c) 2011 AT&T Intellectual Property
* All rights reserved. This program and the accompanying materials
* are made available under th... | 944 |
567 | //
// Copyright 2020 BigQuery Utils
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... | 1,776 |
948 | /*
* Copyright (c) 2016-2017, University of Bristol - http://www.bristol.ac.uk
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, th... | 2,591 |
1,338 | #pragma once
void __cdecl handleConnection(void *param);
int __cdecl doResponse(SOCKET clientSocket, char *clientName);
int __cdecl main(); | 48 |
2,338 | // RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \
// RUN: -mcpu=pwr10 -mmma %s 2>&1 | FileCheck %s --check-prefix=HASMMA
// RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \
// RUN: -mcpu=power10 -mmma %s 2>&1 | FileCheck %s --check-prefix=HASMMA
// RUN: not %clang -targe... | 434 |
572 | class Fila:
def __init__(self):
self.fila = []
def entrar(self, nome):
self.fila.append(nome)
def sair(self):
self.fila.pop(0)
| 88 |
357 | <reponame>wfu8/lightwave<filename>vmidentity/wsTrustClient/src/main/java/org/oasis_open/docs/ws_sx/ws_trust/_200512/ParticipantType.java<gh_stars>100-1000
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/x... | 818 |
620 | from .imbalance_cifar import IMBALANCECIFAR10, IMBALANCECIFAR100
from .iNaturalist import iNaturalist
| 37 |
2,392 | // Copyright (c) 2016 CNRS and LIRIS' Establishments (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org)
//
// $URL: https://github.com/CGAL/cgal/blob/v5.1/Generalized_map/include/CGAL/internal/Generalized_map_internal_functors.h $
// $Id: Generalized_map_internal_functors.h 52164b1 2019-10... | 1,119 |
862 | /*
* (c) Copyright 2018 Palantir Technologies 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 ... | 1,781 |
1,056 | <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
* ... | 6,281 |
887 | /*
* Copyright (C) 2016 Open Source Robotics 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.0
*
* Unless required by appl... | 755 |
1,165 | /*******************************************************************************
* Copyright 2018 T Mobile, 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. You may obtain a copy
* of... | 816 |
5,169 | <reponame>morizotter/Specs
{
"name": "KAKit",
"version": "1.0",
"platforms": {
"ios": null
},
"summary": "A collection of usefull classes for iOS development.",
"homepage": "http://github.com/ksmandersen/KAKit",
"authors": {
"<NAME>": "<EMAIL>"
},
"source": {
"git": "https://github.com/ksm... | 218 |
5,169 | {
"name": "TimberiOS",
"version": "1.2.0",
"summary": "TimberiOS is here to help you log iOS record direclty in Timber",
"description": "This pod is here to help you with Timber.io // Check the README.md in order to learn more about TimberiOS and Timber.io",
"homepage": "https://github.com/charvoa/TimberiOS",... | 290 |
330 | # Copyright 2020 <NAME>
#
# 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/
#
# or in the "license" file accompanying this file. This file is
# distributed on an ... | 6,694 |
4,261 | <gh_stars>1000+
# -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import logging
from rq import get_current_connection
from rq import Worker
logger = logging.getLogger(__name__)
def cleanup_ghosts(conn=None):
"""
RQ version... | 382 |
14,668 | # 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.
import collections
import functools
import itertools
import re
from typing import Dict, Iterable, Tuple
import wayland_protocol_data_classes
# Short aliase... | 1,996 |
1,127 | # Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from ngraph.opset1.ops import absolute
from ngraph.opset1.ops import absolute as abs
from ngraph.opset1.ops import acos
from ngraph.opset4.ops import acosh
from ngraph.opset8.ops import adaptive_avg_pool
from ngraph.opset8.ops import ada... | 2,442 |
545 | <gh_stars>100-1000
import logging
from sys import exit
from time import sleep
from time import time
import requests
logger = logging.getLogger(__name__)
url = "http://localhost:8082/api/device/deviceprovision/"
data = {
"device_name": "localhost",
"language_id": "en",
"facility": {"name": "Atkinson Hall"... | 512 |
365 | <reponame>jozsa-elod/harvesters<filename>src/harvesters/_private/core/helper/system.py
#!/usr/bin/env python3
# ----------------------------------------------------------------------------
#
# Copyright 2018 EMVA
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in c... | 423 |
322 | <filename>examples/example_enc_dec.py
import sys
import torch
sys.path.insert(0, "../")
from linformer_pytorch import LinformerLM
encoder = LinformerLM(
num_tokens=10000,
input_size=512,
channels=16,
dim_k=16,
dim_ff=32,
nhead=4,
depth=3,
activation="relu",
k_reduce_by_layer=1,
... | 414 |
1,127 | # Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import logging as log
import numpy as np
from openvino.tools.mo.front.caffe.extractors.utils import get_canonical_axis_index
from openvino.tools.mo.graph.graph import Node, Graph
from openvino.tools.mo.ops.op import Op, PermuteAttrs
fr... | 3,097 |
1,145 | <gh_stars>1000+
#pragma once
#include <QString>
#include <QStringList>
#include <stdexcept>
#include <string>
namespace chatterino {
class Exception : public std::runtime_error
{
public:
using std::runtime_error::runtime_error;
};
// Open streamlink for given channel, quality and extra arguments
// the "Additi... | 224 |
703 | <filename>Code/Editor/EditorFramework/Visualizers/Implementation/CylinderVisualizerAdapter.cpp<gh_stars>100-1000
#include <EditorFramework/EditorFrameworkPCH.h>
#include <EditorFramework/Assets/AssetDocument.h>
#include <EditorFramework/Visualizers/CylinderVisualizerAdapter.h>
#include <ToolsFoundation/Object/ObjectAc... | 1,777 |
696 | <filename>modules/measure/src/main/java/com/opengamma/strata/measure/AdvancedMeasures.java
/*
* Copyright (C) 2016 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.measure;
import com.opengamma.strata.calc.Measure;
/**
* The... | 371 |
711 | /*
* Copyright 2021 Scheer PAS Schweiz AG
*
* 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 ... | 2,356 |
879 | <reponame>qianfei11/zstack<gh_stars>100-1000
package org.zstack.compute.vm;
import org.springframework.beans.factory.annotation.Autowired;
import org.zstack.core.cloudbus.*;
import org.zstack.core.db.Q;
import org.zstack.header.Component;
import org.zstack.header.host.*;
import org.zstack.header.message.MessageReply;
... | 1,811 |
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 ServerVulnerabilityAssessment ListByExtendedResource. */
public f... | 367 |
4,013 | import os
from tests.terraform.graph.checks_infra.test_base import TestBaseSolver
TEST_DIRNAME = os.path.dirname(os.path.realpath(__file__))
class ConnectionSolver(TestBaseSolver):
def setUp(self):
self.checks_dir = TEST_DIRNAME
super(ConnectionSolver, self).setUp()
def test_connection_not_f... | 311 |
631 | <gh_stars>100-1000
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 ... | 904 |
5,156 | <gh_stars>1000+
/* -*- Mode: C++; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */
#include "TraceStream.h"
#include <capnp/message.h>
#include <capnp/serialize-packed.h>
#include <inttypes.h>
#include <limits.h>
#include <sched.h>
#include <sys/file.h>
#include <sys/wait.h>
#include <sysexits.h>
#inclu... | 24,497 |
1,144 | <gh_stars>1000+
package de.metas.edi.model.validator;
import org.adempiere.ad.modelvalidator.annotations.DocValidate;
import org.adempiere.ad.modelvalidator.annotations.Interceptor;
import org.adempiere.ad.modelvalidator.annotations.ModelChange;
import org.adempiere.model.InterfaceWrapperHelper;
import org.compiere.mo... | 1,683 |
504 | <gh_stars>100-1000
/***********************************************************************
*
* Copyright (c) Berkeley Softworks 1991 -- All Rights Reserved
*
* PROJECT: PC GEOS
* FILE: object.h
* AUTHOR: <NAME>: February 14, 1991
*
* DECLARER: Kernel
*
* DESCRIPTION:
* This file defines object st... | 6,697 |
1,962 | <filename>mybatis/druidtwosource/src/test/java/com/bolingcavalry/druidtwosource/controller/UserControllerTest.java
package com.bolingcavalry.druidtwosource.controller;
import com.bolingcavalry.druidtwosource.entity.User;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonParser;
... | 1,692 |
927 | <reponame>maoriteam/matrix
{
"footer": "Feito com <heart>❤</heart> por RDoers em alguns lugares.",
"google-signin": "Fazer login com o Google",
"logout": "Sair",
"logout-confirmation": "Você realmente quer se desplugar da matrix?",
"title": "Trabalhe de qualquer lugar. Continue junto.",
"logo-alt": "Logo da... | 128 |
4,358 | <reponame>yull1860outlook/Data-Analysis
import pickle
import pandas as pd
import quandl
import matplotlib.pyplot as plt
from matplotlib import style
import numpy as np
from statistics import mean
style.use("seaborn-dark-palette")
ax1 = plt.subplot(2, 1, 1)
ax2 = plt.subplot(2, 1, 2, sharex=ax1)
def create_labels(cu... | 591 |
349 | <filename>modules/vectorfieldvisualization/src/processors/integrallinevectortomesh.cpp
/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2016-2021 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use... | 7,741 |
1,132 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import pytest
import string
import cv2
from atx import imutils
def test_mark_point():
im = cv2.imread('media/system-app.png')
im = imutils.mark_point(im, 50, 50)
cv2.imwrite('tmp.png', im) | 112 |
636 | <gh_stars>100-1000
# demonstration of a particle cloud (non-interacting)
# similar to particle01.py except that each new state is retained in
# memory and used to assemble a movie with the number of states
# provided below
from random import random
from pymol import cmd
from time import sleep
particle_count = 1000
... | 1,313 |
1,336 | /*
* 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 ... | 887 |
4,339 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 1,060 |
14,425 | <reponame>bzhaoopenstack/hadoop
/**
* 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, Ver... | 3,112 |
1,602 | /* Sandy Bridge gmp-mparam.h -- Compiler/machine parameter header file.
Copyright 2019 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
The GNU MP Library is free software; you can redistribute it and/or modify
it under the terms of either:
* the GNU Lesser General Public License as publish... | 6,854 |
2,492 | from typing import List, Any, Tuple, Optional
from taming.data.helper_types import BoundingBox, Annotation
# source: seaborn, color palette tab10
COLOR_PALETTE = [(30, 118, 179), (255, 126, 13), (43, 159, 43), (213, 38, 39), (147, 102, 188),
(139, 85, 74), (226, 118, 193), (126, 126, 126), (187, 188,... | 1,561 |
640 | /*
Z88DK Z80 Macro Assembler
Unit test for init.h
Copyright (C) <NAME>, InterLogic 1993-99
Copyright (C) <NAME>, 2011-2019
License: The Artistic License 2.0, http://www.perlfoundation.org/artistic_license_2_0
Repository: https://github.com/z88dk/z88dk
*/
#include "minunit.h"
#include "init.h"
DEFINE_init_module()
{... | 277 |
597 | <gh_stars>100-1000
# Copyright 2018 The Cornac 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 requ... | 595 |
2,833 | <reponame>johnbarneta/netmiko
from netmiko.sophos.sophos_sfos_ssh import SophosSfosSSH
__all__ = ["SophosSfosSSH"]
| 56 |
852 | <gh_stars>100-1000
// -*- C++ -*-
//
// Package: NJetsMC
// Class: NJetsMC
//
/**\class NJetsMC NJetsMC.cc
Description: Filter for DPS MC generation.
Implementation:
[Notes on implementation]
*/
//
// Original Author: "<NAME>"
// Created: Thu Aug 12 09:24:46 CDT 2010
// then moved to more gener... | 769 |
682 | <gh_stars>100-1000
/**CFile****************************************************************
FileName [dsdMan.c]
PackageName [DSD: Disjoint-support decomposition package.]
Synopsis [APIs of the DSD manager.]
Author [<NAME>]
Affiliation [UC Berkeley]
Date [Ver. 8.0. Started - Septemb... | 1,552 |
984 | /*
* Copyright DataStax, 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 in wri... | 2,274 |
517 | <filename>src/lib/OpenEXR/ImfLineOrderAttribute.cpp
//
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) Contributors to the OpenEXR Project.
//
//-----------------------------------------------------------------------------
//
// class LineOrderAttribute
//
//------------------------------------------------... | 619 |
1,016 | /**
*
*/
package com.thinkbiganalytics.metadata.api.versioning;
/*-
* #%L
* kylo-metadata-api
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* 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 ... | 822 |
861 | package cn.springcloud.gray.dynamiclogic;
import java.util.Objects;
/**
* @author saleson
* @date 2019-12-26 08:00
*/
public interface DynamicLogicDriver {
default <T> T compleAndRegister(String type, String alias, DynamicLogicDefinition dynamicLogicDefinition) {
DynamicLogicManager dynamicLogicManag... | 265 |
8,657 | <filename>deps/quicly/lib/rate.c
/*
* Copyright (c) 2021 Fastly, <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights ... | 3,735 |
520 | import pandas as pd
import numpy as np
import pickle
# reload data
def reload_feature(data, col1, col2):
# value = data.groupby('SessionId')['ItemId']
value = data.groupby(col1)[col2]
result = []
for i, j in value:
result.append([[i], list(j)])
print('we have get %s' % i)
result = n... | 1,303 |
1,010 | <reponame>cclauss/shadow<gh_stars>1000+
/*
* The Shadow Simulator
* See LICENSE for licensing information
*/
int run_test(int argc, char *argv[]);
int main(int argc, char *argv[]) {
/* if any children fail, this test succeeds */
int testresult = run_test(argc, argv);
if(testresult == 0) {
retur... | 149 |
826 | // SPDX-License-Identifier: BSD-3-Clause
// Copyright Contributors to the OpenColorIO Project.
#ifndef INCLUDED_OCIO_RANGETRANSFORM_H
#define INCLUDED_OCIO_RANGETRANSFORM_H
#include <OpenColorIO/OpenColorIO.h>
#include "ops/range/RangeOpData.h"
namespace OCIO_NAMESPACE
{
class RangeTransformImpl : public RangeTr... | 770 |
819 | <reponame>virdesai/stock-analysis-engine<gh_stars>100-1000
"""
Helper for getting data from redis
Debug redis calls with:
::
export DEBUG_REDIS=1
# to show debug, trace logging please export ``SHARED_LOG_CFG``
# to a debug logger json file. To turn on debugging for this
# library, you can export thi... | 2,788 |
589 | package rocks.inspectit.server.diagnosis.engine.testrules;
import rocks.inspectit.server.diagnosis.engine.rule.annotation.Action;
import rocks.inspectit.server.diagnosis.engine.rule.annotation.Condition;
import rocks.inspectit.server.diagnosis.engine.rule.annotation.Rule;
import rocks.inspectit.server.diagnosis.engine... | 225 |
662 | package io.crossbar.autobahn.websocket.messages;
public class CannotConnect extends Message {
public final String reason;
public CannotConnect(String reason) {
this.reason = reason;
}
}
| 69 |
7,409 | <reponame>avoajaugochukwu/posthog
from .access import can_configure_plugins, can_install_plugins
from .reload import reload_plugins_on_workers
from .utils import download_plugin_archive, get_json_from_archive, parse_url
| 68 |
751 | <reponame>B4dM4n/vpp
/*
* Copyright (c) 2016 Cisco and/or its affiliates.
* 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 ... | 5,927 |
903 | #include "../../src/testlib/qtestlightxmlstreamer.h"
| 21 |
1,074 | # -----------------------------------------------------------------------------
# Copyright (c) 2009-2016 <NAME>. All rights reserved.
# Distributed under the (new) BSD License.
# -----------------------------------------------------------------------------
""" Mandelbrot set with pan & zoom """
import numpy as np
fro... | 884 |
16,989 | # Lint as: python3
# Copyright 2020 The Bazel 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 requir... | 2,182 |
930 | <reponame>A-kriti/Amazing-Python-Scripts
from pynput.keyboard import Key, Listener
import random
file_name = 'file' + str(random.randint(0, 10000)) + '.txt'
f = open(file_name, 'w')
def on_press(key):
listen = str(key)
listen = listen.replace("'", "")
if listen == "Key.space":
listen = " "
if... | 432 |
1,031 | #include "base.h"
class Foo : public Base {
public:
Foo() { }
~Foo() { }
virtual void A() {
printf("I'm Foo::A\n");
}
void B() {
printf("I'm Foo::B\n");
}
virtual Base *toBase() {
return static_cast<Base *>(this);
}
static Foo *fromBase(Base *b) {
return dynamic_cast<Foo *>(b);
}
... | 141 |
945 | <gh_stars>100-1000
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
... | 2,328 |
1,482 | <filename>test/expressions/expr17.py<gh_stars>1000+
a++
b--
++a
--b
a++c
c--b
a(--a)
a : source.python
++ : invalid.illegal.operator.python, source.python
b : source.python
-- : invalid.illegal.operator.python, source.python
++ : invalid.illegal.operator.pytho... | 535 |
516 | // Copyright 2018-2021 Twitter, Inc.
// Licensed under the MoPub SDK License Agreement
// https://www.mopub.com/legal/sdk-license-agreement/
package com.mopub.common;
import android.app.Activity;
import androidx.annotation.NonNull;
/**
* This is a uniform interface to 3rd party SDKs that need to know when Activity ... | 228 |
884 | /*
* Copyright 2014 - 2021 Blazebit.
*
* 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... | 4,219 |
12,252 | <gh_stars>1000+
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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
*
* ... | 695 |
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,078 |
778 | /*
* Copyright (C) 2019-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include <cstdint>
namespace NEO {
enum PreemptionMode : uint32_t {
// Keep in sync with ForcePreemptionMode debug variable
Initial = 0,
Disabled = 1,
MidBatch,
ThreadGroup,
MidThread,
};
} /... | 122 |
2,360 | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyPybtexDocutils(PythonPackage):
"""A docutils backend for pybtex."""
pypi = "pybtex-... | 461 |
2,709 | #include <matplot/matplot.h>
int main() {
using namespace matplot;
std::vector<std::string> newcolors = {"red", "magenta", "blue"};
colororder(newcolors);
scatter(iota(1, 10), rand(10, 0, 1))->marker_face(true);
hold(on);
scatter(iota(1, 10), rand(10, 0, 1))->line_style("*k");
scatter(iot... | 182 |
3,358 | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2007 <NAME>
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and/or modif... | 861 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.