max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
396 | <reponame>skedgo/easy-content-providers
package me.everything.providers.sample.fragments;
import android.widget.TextView;
import me.everything.providers.android.browser.BrowserProvider;
import me.everything.providers.android.browser.Search;
import me.everything.providers.core.Data;
import me.everything.providers.samp... | 429 |
412 | #include <assert.h>
#ifdef __GNUC__
typedef int v4si __attribute__((vector_size(16)));
typedef union {
v4si v;
int members[4];
} vector_u;
#endif
int main()
{
#if defined(__GNUC__) && !defined(__clang__)
// https://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html
v4si a = {1, 2, 3, 4};
v4si b = {5, 6, 7, ... | 547 |
1,909 | <filename>xchange-kraken/src/main/java/org/knowm/xchange/kraken/dto/account/results/DepositStatusResult.java
package org.knowm.xchange.kraken.dto.account.results;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import org.knowm.xchange.kraken.dto.KrakenResult;
import org.knowm.xchange.krak... | 211 |
2,151 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/client/in_memory_log_handler.h"
#include "base/containers/ring_buffer.h"
#include "base/logging.h"
#include "base/synchronization/lock... | 632 |
561 | #pragma once
#include <string>
#include "narray/narray.h"
namespace minerva {
// `ImageBatch` should always be 4D
class ImageBatch final : public NArray {
public:
ImageBatch() = delete; // Forbidden
ImageBatch(const ImageBatch&);
ImageBatch(ImageBatch&&);
ImageBatch(NArray);
~ImageBatch();
ImageBatch& o... | 308 |
1,264 | /*
* Licensed to GraphHopper GmbH under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* GraphHopper GmbH licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use t... | 4,177 |
575 | <reponame>Ron423c/chromium
// 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 "ash/system/accessibility/autoclick_menu_view.h"
#include "ash/accessibility/accessibility_controller_impl.h"
#includ... | 5,355 |
319 | <gh_stars>100-1000
from sympy.printing.codeprinter import CodePrinter
from sympy.printing.ccode import ccode
from sympy.core import C, symbols
def setup_test_printer(*args, **kwargs):
p = CodePrinter(*args, **kwargs)
p._not_supported = set()
p._number_symbols = set()
return p
def test_print_Dummy():
... | 219 |
988 | <reponame>JoachimRohde/netbeans
/*
* 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, Vers... | 10,421 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-j5r7-6rm3-99mm",
"modified": "2022-05-04T00:00:41Z",
"published": "2022-04-22T00:00:38Z",
"aliases": [
"CVE-2022-27925"
],
"details": "Zimbra Collaboration (aka ZCS) 8.8.15 and 9.0 has mboximport functionality that receives a ZIP archive and extracts files from... | 554 |
568 | package com.novoda.pianohero;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.support.annotation.DrawableRes;
import android.support.annotation.Nullable;
import android.support.v4.content.ContextCompat;
import android.util.AttributeSet;
import a... | 1,152 |
674 | <reponame>adamsmasher/CLK<filename>Storage/Disk/Controller/DiskController.cpp<gh_stars>100-1000
//
// DiskController.cpp
// Clock Signal
//
// Created by <NAME> on 14/07/2016.
// Copyright 2016 <NAME>. All rights reserved.
//
#include "DiskController.hpp"
using namespace Storage::Disk;
Controller::Controller(Cyc... | 1,341 |
26,932 | <reponame>OsmanDere/metasploit-framework<gh_stars>1000+
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# standard modules
from metasploit import module
import logging
# extra modules
requests_missing = False
random_missing = False
string_missing = False
try:
import requests
except ImportError:
requests_missi... | 1,135 |
1,144 | <gh_stars>1000+
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright 2016 Freescale Semiconductor, Inc.
*
* FSL DCU Framebuffer driver
*/
#include <common.h>
#include <fsl_dcu_fb.h>
#include "div64.h"
#include "../common/dcu_sii9022a.h"
DECLARE_GLOBAL_DATA_PTR;
unsigned int dcu_set_pixel_clock(unsigned int pixclo... | 405 |
956 | <filename>src/dpdk/drivers/vdpa/mlx5/mlx5_vdpa_mem.c<gh_stars>100-1000
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2019 Mellanox Technologies, Ltd
*/
#include <stdlib.h>
#include <rte_malloc.h>
#include <rte_errno.h>
#include <rte_common.h>
#include <rte_sched_common.h>
#include <mlx5_prm.h>
#include <mlx5... | 4,760 |
428 | <filename>src/Sema/ScopeScanner.cpp<gh_stars>100-1000
#include "Sema/ScopeScanner.h"
void ScopeScanner::visit(const SharedPtr<ModuleNode> &module) {
SharedPtr<TopLevelScope> topLevelScope = TopLevelScope::create();
module->internalScope = topLevelScope;
topLevelScope->host = module;
pushScope(topLevelS... | 1,690 |
337 | //statement
String s = null;
if (!s.isEmpty()) { }
| 19 |
2,674 | // Copyright (c) 2018 Microsoft Corporation
// Licensed under the MIT license.
// Author: <NAME> <<EMAIL>>
#ifndef EBM_INTERNAL_HPP
#define EBM_INTERNAL_HPP
#include <inttypes.h>
#include <stddef.h> // size_t, ptrdiff_t
#include <limits> // numeric_limits
#include <type_traits> // is_integral
#include <stdlib.h> // f... | 2,655 |
413 | /* Copyright 2013-2021 MultiMC Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | 874 |
2,868 | /*
* Copyright (c) 2017, 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,
* this list of conditions and the follow... | 1,085 |
1,729 | <reponame>BlueskyFR/determined
import contextlib
import json
import logging
import runpy
import sys
from typing import Any, Iterator, List, Optional, Type, cast
import determined as det
from determined import horovod, load, workload
from determined.common import check
class RunpyGlobals:
"""
RunpyGlobals is ... | 2,067 |
373 | <gh_stars>100-1000
package com.dianrong.common.uniauth.server.util;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
public class JasonUtil {
private static ObjectMapper objectMapper =
n... | 331 |
1,144 | // SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2002
* Sysgo Real-Time Solutions, GmbH <www.elinos.com>
* <NAME> <<EMAIL>>
*
* (C) Copyright 2002
* <NAME>, DENX Software Engineering, <<EMAIL>>
*
* Copyright (C) 2011 Andes Technology Corporation
* <NAME>, Andes Technology Corporation <<EMAIL>>
* <NAME>... | 334 |
306 | <gh_stars>100-1000
#ifndef GL_DISPATCHER_H
#define GL_DISPATCHER_H
#include <thread>
#include <functional>
#include <map>
#include <vector>
#include <memory>
#include "blockingconcurrentqueue.h"
#include "hwc.h"
template<class PerThreadObjects>
class GlDispatcher final
{
// One singleton instance of this class ... | 1,542 |
3,084 | /*++
Copyright (C) Microsoft Corporation, 2009
Module Name:
io.h
Abstract:
Notes:
Revision History:
--*/
#pragma once
ULONG
GetSlotToActivate(
_In_ PAHCI_CHANNEL_EXTENSION ChannelExtension,
_In_ ULONG TargetSlots
);
UCHAR
GetSingleIo(
PAHCI_C... | 1,165 |
2,539 | <reponame>fooziex/7-Zip-zstd
// MainAr.cpp
#include "StdAfx.h"
#ifdef _WIN32
#include "../../../../C/DllSecur.h"
#endif
#include "../../../Common/MyException.h"
#include "../../../Common/StdOutStream.h"
#include "../../../Windows/ErrorMsg.h"
#include "../../../Windows/NtCheck.h"
#include "../Common/ArchiveCommandL... | 1,640 |
4,640 | # 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 not u... | 3,963 |
367 | <gh_stars>100-1000
from sympy import *
from sympy.printing import print_ccode
from math import pi
a, b, c, d, x = symbols('a b c d x')
sine = a*x**7 + b*x**5 + c*x**3 + d*x
sine_d = diff(sine, x)
sine_i = integrate(sine, x)
the_system = [
sine_i.subs(x, pi / 2) - sine_i.subs(x, 0) - 1,
sine_d.subs(x, 0) - 1,... | 260 |
938 | <reponame>karakufire/TinkersConstruct<gh_stars>100-1000
package slimeknights.tconstruct.tools.modifiers.defense;
import net.minecraft.entity.LivingEntity;
import net.minecraft.inventory.EquipmentSlotType;
import net.minecraft.util.DamageSource;
import net.minecraft.util.text.ITextComponent;
import net.minecraftforge.c... | 848 |
852 | <filename>L1Trigger/GlobalCaloTrigger/test/testFirmware_cfg.py
import FWCore.ParameterSet.Config as cms
process = cms.Process("TestGct")
process.load("L1Trigger.GlobalCaloTrigger.test.gctTest_cff")
process.load("L1Trigger.GlobalCaloTrigger.test.gctConfig_cff")
process.source = cms.Source("EmptySource")
process.maxEv... | 238 |
634 | <gh_stars>100-1000
{
"name": "22-combined-stream",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"duplexify": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.1.tgz",
"integrity": "<KEY>
"requires": {
"e... | 1,648 |
320 | /* =====================================================================================
* Keyboard listening class.
*
* Copyright (C) 2018-2020 <NAME> (no) <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the foll... | 2,331 |
12,560 | /*
* 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 ... | 697 |
1,144 | <gh_stars>1000+
/*****************************************************************************
**
** Name: app_link.c
**
** Description: Bluetooth Link activity debug functions
**
** Copyright (c) 2010-2012, Broadcom Corp., All Rights Reserved.
** Broadcom Bluetooth Core. Proprietary and confide... | 4,578 |
1,532 | <filename>scripts/torch/register.py<gh_stars>1000+
#!/usr/bin/env python
"""
Example script to register two volumes with VoxelMorph models.
Please make sure to use trained models appropriately. Let's say we have a model trained to register
a scan (moving) to an atlas (fixed). To register a scan to the atlas and save... | 1,232 |
5,535 | <gh_stars>1000+
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2013 EMC Corp.
//
// @filename:
// CEnumeratorTest.h
//
// @doc:
// Test for plan enumeration and sampling
//---------------------------------------------------------------------------
... | 1,448 |
335 | {
"word": "Commiseration",
"definitions": [
"Sympathy and sorrow for the misfortunes of others; compassion.",
"Expressions of sympathy and sorrow for another."
],
"parts-of-speech": "Noun"
} | 87 |
1,540 | <reponame>JiehangXie/PaddleSpeech<gh_stars>1000+
# Copyright (c) 2021 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/... | 2,789 |
12,718 | /**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#ifndef __MINGW_TRANSMIT_FILE_H
#define __MINGW_TRANSMIT_FILE_H
typedef struct _TRANSMIT_FILE_BUFFERS ... | 201 |
575 | <gh_stars>100-1000
// 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 "fuchsia/engine/renderer/url_request_rules_receiver.h"
#include "content/public/renderer/render_frame.h"
#include "fuchsia/en... | 726 |
2,151 | <reponame>zipated/src
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_VIEWS_EXAMPLES_EXAMPLES_WINDOW_H_
#define UI_VIEWS_EXAMPLES_EXAMPLES_WINDOW_H_
#include <memory>
#include <vector>
... | 393 |
3,353 | //
// ========================================================================
// Copyright (c) 1995-2021 Mort Bay Consulting Pty Ltd and others.
//
// This program and the accompanying materials are made available under the
// terms of the Eclipse Public License v. 2.0 which is available at
// https://www.eclipse.org/... | 7,716 |
374 | //
// SecKeychainSearch.h
// Security
//
// Created by <NAME> on 2/12/10.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Security/Security.h>
@class SecKeychainCursor;
@interface SecKeychainSearch : NSObject {
CFArrayRef _array;
SecItemClass _itemC... | 215 |
7,746 | /*++
Copyright (c) 2006 Microsoft Corporation
Module Name:
proto_model.h
Abstract:
This is the old model object.
smt::context used it during model construction and for
reporting the model for external consumers.
The whole value_factory "business" was due to model construction
and unnecessar... | 1,315 |
432 | /* $FreeBSD: src/sys/netinet6/scope6.c,v 1.1.2.3 2002/04/01 15:29:04 ume Exp $ */
/* $DragonFly: src/sys/netinet6/scope6.c,v 1.11 2008/01/05 14:02:40 swildner Exp $ */
/* $KAME: scope6.c,v 1.10 2000/07/24 13:29:31 itojun Exp $ */
/*
* Copyright (C) 2000 WIDE Project.
* All rights reserved.
*
* Redistribution and u... | 4,232 |
4,798 | // Copyright 2019-present the Material Components for iOS 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
//... | 602 |
543 | package com.yeokhengmeng.docstopdfconverter;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import org.apache.poi.hslf.model.Slide;
import org.apache.poi.hslf.usermodel.SlideShow;
public class PptToPDFC... | 380 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-f373-v3ww-mcwj",
"modified": "2022-01-08T00:00:52Z",
"published": "2021-12-28T00:00:36Z",
"aliases": [
"CVE-2021-24997"
],
"details": "The WP Guppy WordPress plugin before 1.3 does not have any authorisation in some of the REST API endpoints,... | 470 |
450 | <filename>depends/libyarn/test/unit/TestProtocolRecords/TestGetQueueInfoRequest.cpp
/*
* 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 license... | 715 |
2,989 | package com.linkedin.databus.core;
/*
*
* Copyright 2013 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/LICENS... | 1,111 |
782 | <filename>main/boofcv-ip/src/main/java/boofcv/abst/filter/FilterImageReflection.java
/*
* Copyright (c) 2020, <NAME>. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with ... | 1,194 |
920 | <filename>dragonite-sdk/src/main/java/com/vecsight/dragonite/sdk/socket/ConnectionState.java
/*
* The Dragonite Project
* -------------------------
* See the LICENSE file in the root directory for license information.
*/
package com.vecsight.dragonite.sdk.socket;
import com.vecsight.dragonite.sdk.misc.DragoniteG... | 394 |
831 | package p1.p2;
class Java {
public void g() {
int a = R.id.lun<caret>ch;
}
} | 43 |
453 | <filename>codegen/latency.cc
#include <chrono>
#include <iostream>
#include <stdint.h>
#include "include/x64asm.h"
using namespace std;
using namespace std::chrono;
using namespace x64asm;
char garbage_buffer[0x10000] __attribute__((aligned(0x100)));
/** Constant: The number of iterations to run a function for */
c... | 6,948 |
1,144 | /******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
* This program is free software; you can redistribute it and/or modify it *
... | 857 |
304 | /*
* 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
*
* Unless required by... | 939 |
4,054 | # Generated by Django 2.2.12 on 2020-05-19 00:45
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('builds', '0022_migrate_protected_versions'),
('projects', '0048_remove_version_... | 542 |
2,094 | ////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Project: Embedded Learning Library (ELL)
// File: CompareArguments.h (debugCompiler)
// Authors: <NAME>
//
/////////////////////////////////////////////////////////////////////////////////////////////////... | 338 |
3,834 | <filename>tools/performance/comparative-benchmark/benchmarks/java/src/main/java/org/enso/JavaBenchmarks.java
package org.enso;
import org.openjdk.jmh.annotations.*;
import java.util.concurrent.TimeUnit;
@BenchmarkMode(Mode.AverageTime)
@Fork(1)
@Warmup(iterations = 3)
@Measurement(iterations = 3)
@OutputTimeUnit(Tim... | 364 |
672 | <reponame>honeyeeb/objc4-723
/*
* Copyright (c) 2003 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You ma... | 2,673 |
1,338 | #ifndef __AR9300_FREEBSD_INC_H__
#define __AR9300_FREEBSD_INC_H__
/*
* Define some configuration entries for the AR9300 HAL, so #if entries
* don't have to be removed.
*/
#define ATH_DRIVER_SIM 0 /* SIM */
#define ATH_WOW 0 /* Wake on Wireless */
#define ATH_SUPPORT_MCI ... | 6,133 |
2,023 | #On the name of ALLAH and may the blessing and peace of Allah
#be upon the Messenger of Allah <NAME>.
#Author : <NAME>
#Date : 05/08/08
#Version : 2.4
import cmath as c
import math as m
##################################################################
# x**2 = -1 an equation which does not have a solution in the r... | 2,661 |
14,668 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/resource_coordinator/tab_manager_web_contents_data.h"
#include "base/metrics/histogram_macros.h"
#include "chrome/browser/browse... | 989 |
348 | <gh_stars>100-1000
{"nom":"Carly","circ":"5ème circonscription","dpt":"Pas-de-Calais","inscrits":433,"abs":175,"votants":258,"blancs":19,"nuls":9,"exp":230,"res":[{"nuance":"REM","nom":"<NAME>","voix":150},{"nuance":"FN","nom":"<NAME>","voix":80}]} | 102 |
1,909 | /*
* Copyright 2020-2021 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
*
* Unless required by ap... | 458 |
379 | """Fonduer's features module."""
from fonduer.features.feature_extractors import FeatureExtractor
from fonduer.features.featurizer import Featurizer
__all__ = ["Featurizer", "FeatureExtractor"]
| 56 |
2,098 | #ifndef __VARINT_H__
#define __VARINT_H__
#include <stdlib.h>
#include <sys/types.h>
#include <stdint.h>
#include "buffer.h"
#include "redisearch.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Read an encoded integer from the buffer. It is assumed that the buffer will not overflow */
static inline uint32_t ReadVarint(B... | 762 |
537 | #pragma once
#include <cpp_odbc/statement.h>
#include <turbodbc/field.h>
#include <turbodbc/description.h>
#include <turbodbc/column_info.h>
namespace turbodbc {
/**
* @brief This interface represents a single column of a result set.
*/
class column {
public:
/**
* @brief Create a new column
* @param statemen... | 394 |
333 | <gh_stars>100-1000
/**
* Alipay.com Inc.
* Copyright (c) 2004-2021 All Rights Reserved.
*/
package com.alipay.service.schema.exception;
import com.alipay.service.schema.model.enums.SchemaErrorEnum;
/**
* @author hongbi.wang
* @version $Id: SchemaException.java, v 0.1 2021年02月26日 6:03 PM hongbi.wang Exp $
*/
pub... | 1,138 |
16,500 |
#include <ctype.h>
int islower( int c ) {
return ( ( c >= 'a' ) && ( c <= 'z' ) );
}
| 47 |
1,444 | <filename>Mage.Tests/src/test/java/org/mage/test/cards/continuous/MetallicMiminTest.java
package org.mage.test.cards.continuous;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
*
* @author LevelX2
*/
public class Meta... | 1,584 |
72,551 | <reponame>lwhsu/swift
@protocol AmbivalentProtocol
@end
| 23 |
2,084 | /*
* 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 ... | 1,708 |
1,666 | // © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
*****************************************************************
* Copyright (c) 2002-2014, International Business Machines Corporation
* and others. All Rights Reserved.
********************************... | 5,519 |
386 | <filename>src/main/java/com/github/unclecatmyself/scheduling/DataCallable.java
package com.github.unclecatmyself.scheduling;
import com.github.unclecatmyself.core.utils.MessageConversionUtil;
import com.github.unclecatmyself.support.InChatDBManager;
import java.util.Map;
import java.util.concurrent.Callable;
/**
* ... | 397 |
575 | // 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 <memory>
#include <utility>
#include "base/guid.h"
#include "components/download/internal/background_service/entry.h"
#include "components/downl... | 2,242 |
510 | <gh_stars>100-1000
#!/usr/bin/env python3
"""
.. codeauthor:: <NAME> <<EMAIL>>
"""
from textwrap import dedent
import pytablewriter
filename = "sample.csv"
def main():
with open(filename, "w", encoding="utf8") as f:
f.write(
dedent(
"""\
"i","f","c","if","ifc",... | 416 |
2,637 | <reponame>nateglims/amazon-freertos<filename>vendors/microchip/secure_elements/app/example_trust_chain_tool/ca_read_certs.py
import os
import base64
import argparse
import pytz
import binascii
import ctypes
import datetime
import cryptography
from cryptoauthlib import *
from cryptography import x509
from cryptography.... | 7,781 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The... | 933 |
1,264 | <filename>spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoClientParserIntegrationTests.java
/*
* Copyright 2015-2021 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.
... | 1,478 |
969 | <reponame>ajithvallabai/mfem<filename>fem/restriction.hpp
// Copyright (c) 2010-2021, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For... | 4,079 |
310 | package org.seasar.doma.jdbc.command;
import java.sql.CallableStatement;
import java.sql.SQLException;
import org.seasar.doma.jdbc.query.FunctionQuery;
public class FunctionCommand<RESULT> extends ModuleCommand<FunctionQuery<RESULT>, RESULT> {
public FunctionCommand(FunctionQuery<RESULT> query) {
super(query);... | 169 |
1,056 | <filename>webcommon/selenium2.webclient/src/org/netbeans/modules/selenium2/webclient/ui/customizer/SelectProviderPanel.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regardi... | 2,341 |
931 | <filename>General Questions/Sorted-array-to-BST.py
# Python program to convert sorted array into Binary Search Tree
# Definition for a binary tree node.
class Node:
def __init__(self, d):
self.data = d
self.left = None
self.right = None
def sortedArrayToBST(nums):
if not nums:
r... | 349 |
5,964 |
#ifndef IntRectWin_h
#define IntRectWin_h
namespace blink {
inline IntRect winRectToIntRect(const RECT& rt)
{
return IntRect(rt.left, rt.top, rt.right - rt.left, rt.bottom - rt.top);
}
inline RECT intRectToWinRect(const IntRect& rt)
{
RECT r = { rt.x(), rt.y(), rt.maxX(), rt.maxY() };
return... | 330 |
626 | #include "QirContext.hpp"
#include "QirRuntime.hpp"
#include "SimFactory.hpp"
using namespace Microsoft::Quantum;
using namespace std;
extern "C" void Hello__HelloQ();
int main(int argc, char* argv[]){
unique_ptr<IRuntimeDriver> sim = CreateFullstateSimulator();
QirContextScope qirctx(sim.get(), true /*track... | 139 |
507 | <reponame>wujiezero/SpringBoot
package top.lrshuai.encrypt;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @author rstyro
*/
@SpringBootApplication
public class SpringbootEncryptApplication {
public static void main(String[] args) {... | 126 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
namespace... | 2,871 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "documentdbconfig.h"
namespace proton {
/**
* Class specifying which components that should change after a reconfig.
*/
class ReconfigParams {
private:
const DocumentDBConfig::Compari... | 236 |
2,219 | package com.baidu.openrasp.hook.server.bes;
import com.baidu.openrasp.hook.server.ServerInputHook;
import com.baidu.openrasp.tool.annotation.HookAnnotation;
import javassist.CannotCompileException;
import javassist.CtClass;
import javassist.NotFoundException;
import java.io.IOException;
/**
* @description: BES inpu... | 595 |
711 | package com.java110.store.bmo.contract;
import com.alibaba.fastjson.JSONObject;
import com.java110.po.contract.ContractPo;
import org.springframework.http.ResponseEntity;
public interface ISaveContractBMO {
/**
* 添加合同管理
* add by wuxw
*
* @param contractPo
* @return
*/
ResponseE... | 156 |
1,461 | <gh_stars>1000+
// Copyright (c) 2012, NetEase Inc. All rights reserved.
//
// wrt(guangguang)
// 2012/2/22
//
// a thread manager for iter-thread communicatios, etc.
#include "thread_manager.h"
#include "base/framework/message_loop.h"
//#include "base/log/log.h"
#include "base/memory/singleton.h"
#include "base/thir... | 2,344 |
1,781 | <filename>src/chapter3/section2/Exercise29_TreeTraversalConstantExtraMemory.java
package chapter3.section2;
import edu.princeton.cs.algs4.StdOut;
/**
* Created by <NAME> on 03/06/17.
*/
@SuppressWarnings("unchecked")
//Based on http://www.geeksforgeeks.org/inorder-tree-traversal-without-recursion-and-without-stack/... | 972 |
313 | <reponame>740326093/-
//
// YBLAddInvoiceViewController.h
// YC168
//
// Created by 乔同新 on 2017/3/28.
// Copyright © 2017年 乔同新. All rights reserved.
//
#import "YBLMMainViewController.h"
#import "YBLInvoiceModel.h"
typedef void(^AddInvoiceBlock)(YBLInvoiceModel *invoiceModel);
@interface YBLAddInvoiceViewControl... | 184 |
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.
#include "gpu/ipc/host/gpu_switches.h"
namespace switches {
// Enable native GPU memory buffer support when available.
const char kEnableNativeGpuMemory... | 150 |
372 | /*
* 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 ... | 569 |
1,247 | package org.andengine.entity.modifier;
import org.andengine.entity.IEntity;
import org.andengine.util.modifier.ease.EaseLinear;
import org.andengine.util.modifier.ease.IEaseFunction;
/**
* (c) 2010 <NAME>
* (c) 2011 Zynga Inc.
*
* @author <NAME>
* @since 23:37:53 - 19.03.2010
*/
public class ScaleModifier ext... | 1,091 |
5,411 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "mojo/public/cpp/base/file_mojom_traits.h"
#include "base/files/file.h"
#include "mojo/public/cpp/system/platform_handle.h"
namespace mojo {
mo... | 331 |
348 | {"nom":"Mailhac","circ":"1ère circonscription","dpt":"Aude","inscrits":376,"abs":206,"votants":170,"blancs":10,"nuls":6,"exp":154,"res":[{"nuance":"FN","nom":"<NAME>","voix":84},{"nuance":"REM","nom":"<NAME>","voix":70}]} | 87 |
12,063 | from .faster_rcnn import *
from .keypoint_rcnn import *
from .mask_rcnn import *
from .retinanet import *
from .ssd import *
from .ssdlite import *
| 53 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.