max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
340 | # Copyright (c) 2018, NVIDIA CORPORATION. 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 appli... | 747 |
9,491 | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... | 3,841 |
1,408 | /*
* Copyright (c) 2015, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef SCU_H
#define SCU_H
void disable_scu(unsigned long mpidr);
void enable_scu(unsigned long mpidr);
#endif /* SCU_H */
| 95 |
1,091 | /*
* Copyright 2018-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 915 |
852 | #!/usr/bin/env python3
"""
_trackingOnlyEra_Run2_2018
Scenario supporting proton collisions and tracking only reconstruction for HP beamspot
"""
import os
import sys
from Configuration.DataProcessing.Impl.trackingOnly import trackingOnly
import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Era_Run2_... | 464 |
561 | <reponame>ddesmond/gaffer<filename>src/GafferScene/CopyPrimitiveVariables.cpp
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2019, <NAME>. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provi... | 2,162 |
5,460 | from .models import instance_metadata_backend
instance_metadata_backends = {"global": instance_metadata_backend}
| 30 |
328 | <reponame>YangLingWHU/gAnswer<filename>genrate_fragments/step2_dedubplicate.py
# encoding=utf-8
'''
Step2: remove the dubplicate triples.
'''
triples = set()
j = 1
i = 1
with open('./pkubase/pkubase-triples.txt','r') as f:
while 1:
line = f.readline()
if not line:
break
... | 442 |
708 | <gh_stars>100-1000
package com.ccj.tabview.mypoptabview.myloader;
import com.ccj.poptabview.base.BaseFilterTabBean;
import java.util.List;
/**
* Created by chenchangjun on 17/7/26.
*/
public class MyFilterTabBean extends BaseFilterTabBean<MyFilterTabBean.MyChildFilterBean> {
/*情况1---比如,你需要如下字段*/
protect... | 1,402 |
778 | <gh_stars>100-1000
package org.aion.zero.impl.sync.handler;
import static org.aion.p2p.V1Constants.TRIE_DATA_REQUEST_MAXIMUM_BATCH_SIZE;
import java.util.Arrays;
import java.util.Collections;
import java.util.Map;
import org.aion.p2p.Ctrl;
import org.aion.p2p.Handler;
import org.aion.p2p.IP2pMgr;
import org.aion.p2p.... | 1,982 |
984 | <reponame>forksnd/win32metadata<filename>generation/WinSDK/RecompiledIdlHeaders/shared/ndis/ndisport.h
// Copyright (C) Microsoft Corporation. All rights reserved.
//
// Definitions for NDIS PORTs
//
#pragma once
#pragma region App, Games, or System family
#include <winapifamily.h>
#if WINAPI_FAMILY_PARTITION(WINAPI_... | 428 |
1,575 | // Copyright 2021 DeepMind Technologies Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable la... | 600 |
7,091 | # 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 appli... | 3,351 |
746 | <reponame>kmdkuk/AndroidTraining
package jp.mixi.practice.intent.med;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
public class MainActivity extends Activity {
public static final String ACTION_FIRST = "jp.mixi.practice.intent.med.android.intent.action.FIRST";
public stati... | 822 |
1,694 | <filename>stagemonitor-alerting/src/test/java/org/stagemonitor/alerting/incident/IncidentRepositoryTest.java
package org.stagemonitor.alerting.incident;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.stagemonitor.alerting.ThresholdMon... | 1,305 |
22,688 | /******************************************************************************
* Copyright 2017 The Apollo 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
... | 1,931 |
313 | //
// YBLShopCarModel.h
// YBL365
//
// Created by 乔同新 on 16/12/20.
// Copyright © 2016年 乔同新. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface YBLShopCarModel : NSObject
//添加的购物数量
@property (nonatomic, assign) NSInteger carNumber;
//购物车数据
@property (nonatomic, strong) NSMutableArray *carGood... | 282 |
375 | <filename>device/cpu/core/layer_arithmetic_operation.h
/*
Copyright (c) 2014, Intel Corporation
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
... | 2,269 |
2,728 | <reponame>vincenttran-msft/azure-sdk-for-python
# coding=utf-8
# --------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this s... | 742 |
1,334 | <gh_stars>1000+
# Generated by Django 3.2 on 2021-09-22 12:31
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('leads', '0015_auto_20210913_1918'),
]
operations = [
migrations.RenameField(
model_name='lead',
old_name='comp... | 175 |
649 | <reponame>xjc90s/serenity-core
package net.serenitybdd.screenplay;
/**
* Created by john on 16/08/2015.
*/
public class Uninstrumented {
@SuppressWarnings("unchecked")
public static <T> Class<T> versionOf(Class<T> questionClass) {
return questionClass.getName().contains("EnhancerByCGLIB") ? (Class<T... | 141 |
1,511 | <gh_stars>1000+
/* vim:set expandtab ts=4 shiftwidth=4: */
/* GIO - GLib Input, Output and Streaming Library
*
* Copyright (C) 2006-2007 Red Hat, Inc.
* Copyright (C) 2007 <NAME>.
* Copyright (C) 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
* | 92 |
777 | <reponame>google-ar/chromium
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/ozone/platform/drm/gpu/gbm_device.h"
#include <gbm.h>
#include <utility>
namespace ui {
GbmDevice::GbmDevice(... | 348 |
1,677 | // Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#pragma once
#ifndef WIN32
#include <cstdlib>
#include "pal_mstypes.h"
#include "pal.h"
#include "ntimage.h"
#include "corhdr.h"
#d... | 186 |
652 | //
// WLMInvoiceDetailVC.h
// WLMElectronicInvoice
//
// Created by 刘光强 on 2018/5/4.
// Copyright © 2018年 quangqiang. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface WLMInvoiceDetailVC : WLBaseViewController
@end
| 97 |
11,356 | // Copyright 2010, <NAME>.
//
// 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)
//
// Test program for the boost::value_initialized<T> workaround.
//
// 17 June 2010 (Created) <NAME>
// Switch the workaround off, ... | 1,555 |
634 | /*
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 1,299 |
381 | import gc
import time
import thread
import os
import errno
from pypy.interpreter.gateway import interp2app, unwrap_spec
from rpython.rlib import rgil
NORMAL_TIMEOUT = 300.0 # 5 minutes
def waitfor(space, w_condition, delay=1):
adaptivedelay = 0.04
limit = time.time() + delay * NORMAL_TIMEOUT
while ti... | 1,389 |
14,425 | /**
* 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 n... | 492 |
1,422 | <gh_stars>1000+
/*
* Copyright (C) 2012 The Flogger 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 app... | 1,000 |
777 | <reponame>google-ar/chromium<filename>third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceRadialGradient.cpp<gh_stars>100-1000
/*
* Copyright (C) 2006 <NAME> <<EMAIL>>
* Copyright (C) Research In Motion Limited 2010. All rights reserved.
* Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
*... | 1,095 |
3,262 | <filename>src/plugins/xbl/src/xbl_manager.cpp
#include "xbl_manager.h"
#include "halley/support/logger.h"
#include "halley/text/halleystring.h"
#include "halley/concurrency/concurrent.h"
#include <map>
#include <vccorlib.h>
#include <winrt/base.h>
#include <winrt/Windows.System.UserProfile.h>
#include <winrt/Windows.... | 15,609 |
348 | {"nom":"Labergement-lès-Seurre","circ":"5ème circonscription","dpt":"Côte-d'Or","inscrits":752,"abs":468,"votants":284,"blancs":15,"nuls":8,"exp":261,"res":[{"nuance":"LR","nom":"<NAME>","voix":144},{"nuance":"REM","nom":"<NAME>","voix":117}]} | 101 |
310 | <filename>mgwt/src/main/java/com/propertycross/mgwt/AppPlaceHistoryMapper.java
package com.propertycross.mgwt;
import com.google.gwt.place.shared.PlaceHistoryMapper;
import com.google.gwt.place.shared.WithTokenizers;
import com.propertycross.mgwt.place.FavouritesPlace.FavouritesPlaceTokenizer;
import com.propertycross... | 221 |
809 | /**
* @file
*
* @date 12.03.2015
* @author: <NAME>
*/
#include <kernel/printk.h>
void acpi_shutdown(void) {
printk("No shutdown implemented please enable "
"'embox.arch.x86.kernel.acpi_shutdown'\n");
}
void acpi_reset(void) {
}
| 101 |
3,997 | <reponame>equeim/javacpp
package org.bytedeco.javacpp.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Ta... | 161 |
575 | <filename>device/fido/large_blob.cc
// 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.
#include "device/fido/large_blob.h"
#include "base/containers/span.h"
#include "components/cbor/reader.h"
#include "co... | 4,360 |
705 | <reponame>gaybro8777/klio
# Copyright 2019-2020 Spotify AB
#
# 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 ... | 3,390 |
643 | <reponame>adityasharad/ql<gh_stars>100-1000
class Generic2<T> {
public Generic2(T init) { stored = init; }
private T stored;
T identity2(T param) { return identity(param); }
T identity(T param) { return param; }
T getter() { return stored; }
void setter(T param) { stored = param; }
}
public class Test... | 244 |
1,444 | package org.wiztools.restclient.ui.reqbody;
import com.google.inject.ImplementedBy;
import org.wiztools.restclient.bean.ReqEntity;
import org.wiztools.restclient.ui.ViewPanel;
/**
*
* @author subwiz
*/
@ImplementedBy(ReqBodyPanelImpl.class)
public interface ReqBodyPanel extends ViewPanel {
void enableBody();
... | 150 |
2,151 | #!/usr/bin/env python
# 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.
''' Base class for postprocessing of RC files.
'''
class PostProcessor(object):
''' Base class for postprocessing of the RC fil... | 322 |
2,984 | /*
* 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 ... | 530 |
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... | 7,637 |
1,671 | /**
* 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 required by applica... | 250 |
767 | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | 843 |
4,054 | <filename>config-model/src/test/java/com/yahoo/vespa/model/utils/internal/ReflectionUtilTest.java
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.utils.internal;
import com.yahoo.config.model.producer.AbstractConfigProducer;
import ... | 1,633 |
488 | from .unittest_tools import unittest
from quantlib.time.daycounter import DayCounter
from quantlib.time.daycounters.simple import (
Actual360, SimpleDayCounter
)
from quantlib.time.daycounters.actual_actual import (
ActualActual, ISDA, ISMA, AFB
)
from quantlib.time.daycounters.thirty360 import (
Th... | 3,175 |
416 | package org.simpleflatmapper.converter.impl.time;
import org.simpleflatmapper.converter.Context;
import org.simpleflatmapper.converter.ContextualConverter;
import java.time.OffsetTime;
import java.time.ZoneId;
import java.util.Date;
public class DateToJavaOffsetTimeConverter implements ContextualConverter<Date, Offs... | 240 |
852 | ///
/// \class l1t::Stage2Layer2JetSumAlgorithmFirmwareImp1
///
/// \author: <NAME>
///
/// Description: first iteration of stage 2 jet algo
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "L1Trigger/L1TCalorimeter/interface/Stage2Layer2JetSumAlgorithmFirmware.h"
#include "L1Trigger/L1TCalorimeter/i... | 2,566 |
15,577 | #!/usr/bin/env python3
#!/usr/bin/env python3
import pytest
from helpers.cluster import ClickHouseCluster
import random
import string
import os
import time
from multiprocessing.dummy import Pool
from helpers.network import PartitionManager
from helpers.test_tools import assert_eq_with_retry
from kazoo.client import Ka... | 370 |
737 | /* account.h -*- C++ -*-
<NAME>, 16 November 2012
Copyright (c) 2012 Datacratic Inc. All rights reserved.
*/
#pragma once
#include <string>
#include <vector>
#include <unordered_map>
#include <memory>
#include <unordered_set>
#include "rtbkit/common/curren... | 23,530 |
645 | <gh_stars>100-1000
// Copyright 2013-2016 Stanford University
//
// 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 a... | 644 |
335 | {
"word": "School",
"definitions": [
"Send to school; educate.",
"Train or discipline (someone) in a particular skill or activity.",
"Train (a horse) on the flat or over fences."
],
"parts-of-speech": "Verb"
} | 100 |
834 | // Copyright 2004-present Facebook. All Rights Reserved.
#include "fboss/agent/platforms/sai/SaiBcmWedge40PlatformPort.h"
namespace facebook::fboss {
void SaiBcmWedge40PlatformPort::linkStatusChanged(
bool /*up*/,
bool /*adminUp*/) {}
} // namespace facebook::fboss
| 94 |
503 | package com.smartisanos.sidebar.view;
import java.io.File;
import com.smartisanos.sidebar.R;
import com.smartisanos.sidebar.util.FileInfo;
import com.smartisanos.sidebar.util.Tracker;
import com.smartisanos.sidebar.util.Utils;
import android.content.Context;
import android.content.res.Configuration;
import android.u... | 1,331 |
1,934 | //
// JotTouchBezier.h
// jot
//
// Created by <NAME> on 4/30/15.
//
//
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
/**
* Private class to handle drawing variable-width cubic bezier paths in a JotDrawView.
*/
@interface JotTouchBezier : NSObject
/**
* The start point of the cubic bezier path.
... | 650 |
1,085 | <filename>lib/galaxy/model/migrate/versions/0091_add_tool_version_tables.py
"""
Migration script to create the tool_version and tool_version_association tables and drop the tool_id_guid_map table.
"""
import datetime
import logging
from json import loads
from sqlalchemy import (
Column,
DateTime,
ForeignK... | 1,604 |
335 | {
"word": "Pressing",
"definitions": [
"An act or instance of applying force or weight to something.",
"A record or other object made by the application of force or weight.",
"A series of objects pressed at one time."
],
"parts-of-speech": "Noun"
} | 105 |
301 | package org.iotivity.cloud.base.healthcheck;
public interface HealthHolder {
boolean isHealthy();
void pingAccepted();
}
| 43 |
5,079 | <reponame>Yurzs/boto<gh_stars>1000+
# Copyright (c) 2013 Amazon.com, Inc. or its affiliates. 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, includ... | 5,408 |
521 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... | 1,677 |
835 | <gh_stars>100-1000
package ai.verta.modeldb.config;
import ai.verta.modeldb.common.config.ArtifactStoreConfig;
import ai.verta.modeldb.common.config.Config;
import ai.verta.modeldb.common.config.InvalidConfigException;
import ai.verta.modeldb.common.config.S3Config;
import ai.verta.modeldb.common.exceptions.ModelDBExc... | 764 |
1,756 | #include "com_libmailcore_AbstractMessagePart.h"
#include "TypesUtils.h"
#include "JavaHandle.h"
#include "MCMessageHeader.h"
#include "MCAbstractMessagePart.h"
using namespace mailcore;
#define nativeType AbstractMessagePart
#define javaType nativeType
MC_JAVA_SYNTHESIZE(MessageHeader, setHeader, header)
MC_JAVA_S... | 125 |
764 | <filename>erc20/0x63D0eEa1D7C0d1e89d7e665708d7e8997C0a9eD6.json
{"symbol": "ENOL","address": "0x63D0eEa1D7C0d1e89d7e665708d7e8997C0a9eD6","overview":{"en": ""},"email": "","website": "https://ethanoltoken.com","state": "NORMAL","links": {"blog": "","twitter": "https://twitter.com/TokenEthanol","telegram": "","github": ... | 149 |
521 | /* $Id: QIArrowButtonSwitch.cpp $ */
/** @file
* VBox Qt GUI - QIArrowButtonSwitch class implementation.
*/
/*
* Copyright (C) 2006-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistri... | 744 |
685 | <reponame>adi-g15/LemonOS
#pragma once
#include <Video/VideoConsole.h>
#include <stdarg.h>
#include <Debug.h>
namespace Log{
extern VideoConsole* console;
void LateInitialize();
void SetVideoConsole(VideoConsole* con);
void DisableBuffer();
void EnableBuffer();
void WriteF(const char* __re... | 571 |
676 | package com.alorma.github.ui.fragment.donate;
import android.os.Parcel;
import android.os.Parcelable;
import java.text.DecimalFormat;
public class DonateItem implements Parcelable {
private String sku;
private double quantity;
public DonateItem(String sku, double quantity) {
this.sku = sku;
this.quant... | 455 |
4,054 | <gh_stars>1000+
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <memory>
namespace proton {
class ProtonConfigSnapshot;
/*
* Interface class to handle config changes to proton using config
* snapshots spanning all document types.
*/
... | 152 |
2,824 | <filename>spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/ConstraintData.java
/******************************************************************************
* Spine Runtimes License Agreement
* Last updated January 1, 2020. Replaces all prior versions.
*
* Copyright (c) 2013-2020, Esoteric Software LLC
*... | 818 |
953 | int main() {
struct A *q;
struct A {
int a_int_one;
struct B {
int b_int_one;
long b_long;
int b_int_two;
} b_struct;
int a_int_two, *a_ptr;
int;
} a;
q = &a;
void* p1 = q + 1;
char* p2 = p1;
// this is a hacky test to check sizeof(struct A)
void* p3 = p2 - 8*4;
... | 789 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000
{"nom":"Visan","circ":"4ème circonscription","dpt":"Vaucluse","inscrits":1538,"abs":793,"votants":745,"blancs":11,"nuls":5,"exp":729,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":175},{"nuance":"FN","nom":"Mme <NAME>","voix":129},{"nuance":"EXD","nom":"M. <N... | 361 |
3,442 | <filename>src/net/java/sip/communicator/impl/protocol/sip/OperationSetTypingNotificationsSipImpl.java
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in ... | 8,197 |
1,272 | <reponame>AndersSpringborg/avs-device-sdk
/*
* Copyright 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.... | 609 |
945 | /*
* 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 ... | 402 |
651 | import os, psutil
from aes import AES
# Pin the Python process to the last CPU to measure performance
# Note: this code works for psutil 1.2.x, not 2.x!
cpu_count = psutil.cpu_count()
p = psutil.Process(os.getpid())
proc_list = p.cpu_affinity()
p.cpu_affinity([proc_list[-1]])
# Perform several encryption / decryption... | 391 |
1,178 | /*
* Copyright 2020 Makani Technologies LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 553 |
691 | #pragma once
//#include "taskflow.hpp"
namespace tf {
// ----------------------------------------------------------------------------
// class: Topology
class Topology {
friend class Taskflow;
friend class Executor;
public:
template <typename P, typename C>
Topology(Taskflow&, P&&, C&&);
... | 577 |
507 | <reponame>mjuenema/python-terrascript
# terrascript/data/vmware/vcd.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:30:19 UTC)
import terrascript
class vcd_catalog(terrascript.Data):
pass
class vcd_catalog_item(terrascript.Data):
pass
class vcd_catalog_media(terrascript.Data):
pass
... | 2,004 |
678 | <reponame>bzxy/cydia
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/iWorkImport.framework/iWorkImport
*/
#import <iWorkImport/XXUnknownSuperclass.h>
__attribute__((visibility("hidden")))
@interface GQGroupDisplayInfo : XXUnknownSuperclass {
@private
int mDispl... | 138 |
423 | <gh_stars>100-1000
// clang-format off
/*
* Firebase UI Bindings iOS Library
*
* Copyright © 2015 Firebase - All Rights Reserved
* https://www.firebase.com
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1... | 6,202 |
304 | <gh_stars>100-1000
/*
* Copyright 2019-2021 CloudNetService team & 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
*
*... | 375 |
514 |
package no.priv.garshol.duke.utils;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import no.priv.garshol.duke.DukeException;
import no.priv.garshol.duke.LinkDatabase;
import org.junit.Test;
import static org.junit.Assert.fail;
public class LinkDatabaseUtilsTest {
priva... | 303 |
378 | <filename>test/integration/iam/opencypher/test_opencypher_query_with_iam.py
"""
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
"""
import pytest
from botocore.session import get_session
from test.integration.DataDrivenOpenCypherTest import DataDrivenOpenCypherTes... | 758 |
666 | <reponame>ryansunboy/spring-cloud-config-admin
package com.didispace.scca.rest.web;
import com.didispace.scca.rest.domain.User;
import com.didispace.scca.rest.dto.UserDto;
import com.didispace.scca.rest.dto.base.WebResp;
import com.didispace.scca.rest.exception.ServiceException;
import io.swagger.annotations.Api;
impo... | 1,103 |
1,085 | /*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 2,185 |
507 | <reponame>wujiezero/SpringBoot<filename>springboot-security/springboot-security-jwt/src/main/java/top/lrshuai/security/handler/SelfAuthenticationProvider.java<gh_stars>100-1000
package top.lrshuai.security.handler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authe... | 621 |
2,591 | <reponame>maketubo/liquibase<filename>liquibase-core/src/main/java/liquibase/precondition/Precondition.java
package liquibase.precondition;
import liquibase.changelog.ChangeSet;
import liquibase.changelog.DatabaseChangeLog;
import liquibase.changelog.visitor.ChangeExecListener;
import liquibase.database.Database;
impo... | 377 |
2,101 | <gh_stars>1000+
import time
from http import HTTPStatus
from itertools import count
from typing import Sequence
import gevent
import grequests
import pytest
import structlog
from eth_utils import to_canonical_address
from flask import url_for
from raiden.api.python import RaidenAPI
from raiden.api.rest import APIServ... | 5,439 |
1,131 | <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
# "License"... | 5,782 |
649 | package net.thucydides.core.fixtureservices;
import org.openqa.selenium.remote.DesiredCapabilities;
public class SampleFixtureService implements FixtureService {
@Override
public void setup() {
}
@Override
public void shutdown() {
}
@Override
public void addCapabilitiesTo(DesiredCa... | 120 |
2,177 | <gh_stars>1000+
import os
import alp
import re
from alp.item import Item as I
import codecs
import json
def find_projects():
q = alp.args()[0] if len(alp.args()) else ""
if os.path.exists("/Applications/Sublime Text.app"):
session_path = "~/Library/Application Support/Sublime Text 3/Local/Session.subl... | 877 |
1,235 | <reponame>CodeLingoBot/learn
#include <iostream>
using namespace std;
int main()
{
for ( int i = 1; i < 101; i++ )
{
if ( i%15 == 0 )
{
cout << "FizzBuzz" << endl;
}
else if ( i%3 == 0 )
{
cout << "Fizz" << endl;
}
else if ( i%5 == 0 )
{
cout << "Buzz" << endl;
}
else
{
cout << i <... | 216 |
1,083 | <reponame>agxmaster/polarphp<filename>include/polarphp/parser/LexerFlags.h
// This source file is part of the polarphp.org open source project
//
// Copyright (c) 2017 - 2019 polarphp software foundation
// Copyright (c) 2017 - 2019 zzu_softboy <<EMAIL>>
// Licensed under Apache License v2.0 with Runtime Library Except... | 731 |
1,018 | <reponame>rajdavies/glowroot
/*
* Copyright 2016-2018 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
*
... | 1,311 |
1,707 | #pragma once
//------------------------------------------------------------------------------
/**
@class Oryol::_priv::ioRouter
@ingroup IO
@brief route IO requests to ioWorkers
*/
#include "Core/Containers/StaticArray.h"
#include "IO/private/ioPointers.h"
#include "IO/private/ioWorker.h"
namespace Oryol {... | 262 |
2,151 | <filename>gpu/command_buffer/service/gles2_cmd_validation_autogen.h<gh_stars>1000+
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file is auto-generated from
// gpu/command_buffer/build_gles2_c... | 3,228 |
348 | {"nom":"Tence","circ":"1ère circonscription","dpt":"Haute-Loire","inscrits":2501,"abs":1256,"votants":1245,"blancs":33,"nuls":27,"exp":1185,"res":[{"nuance":"LR","nom":"<NAME>","voix":739},{"nuance":"REM","nom":"<NAME>","voix":446}]} | 94 |
1,891 | <reponame>appdevzhang/AndroidDevByArt-Res
#include "com_ryg_JniTest.h"
#include <stdio.h>
JNIEXPORT jstring JNICALL Java_com_ryg_JniTest_get(JNIEnv *env, jobject thiz) {
printf("invoke get from C\n");
return (*env)->NewStringUTF(env, "Hello from JNI !");
}
JNIEXPORT void JNICALL Java_com_ryg_JniTest_set(JNIEn... | 233 |
921 | // Copyright (c) 2015-2020 <NAME> <<EMAIL>> Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.vladsch.md.nav.actions.api;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.extensions.ExtensionPointName;
import com.vladsch.flexmark.uti... | 1,183 |
1,443 | <gh_stars>1000+
{
"copyright": "<NAME>",
"url": "http://danreev.es",
"email": "<EMAIL>",
"format": "html"
}
| 54 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.