max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,108 | import pytest
import django
from raven.contrib.django.resolver import RouteResolver
try:
from django.conf.urls import url, include
except ImportError:
# for Django version less than 1.4
from django.conf.urls.defaults import url, include
@pytest.fixture
def route_resolver():
return RouteResolver()
... | 473 |
4,895 | import superimport
import daft
# Colors.
p_color = {"ec": "#46a546"}
s_color = {"ec": "#f89406"}
r_color = {"ec": "#dc143c"}
SUB = str.maketrans("0123456789", "₀₁₂₃₄₅₆₇₈₉")
pgm = daft.PGM(shape=(12, 5), origin=(-1,0))
pgm.add_node("Ax", r"$\theta^h$", 2.5, 3, observed=False)
for i in range(4):
pgm.add_node("x{... | 753 |
952 | <filename>bucket/apimtemplate.json
{
"version": "0.7",
"description": "Azure API Management DevOps Resource Kit",
"homepage": "https://github.com/Azure/azure-api-management-devops-resource-kit",
"license": "MIT",
"depends": "azure-cli",
"architecture": {
"64bit": {
"u... | 513 |
1,688 | //
// SMState.h
// CarpoolBusiness
//
// Created by DaiMing on 2017/11/21.
//
#import <Foundation/Foundation.h>
@interface SMState : NSObject
@end
| 60 |
5,279 | /*
* 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 ... | 645 |
575 | <reponame>Ron423c/chromium
// 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.
#ifndef COMPONENTS_UNIFIED_CONSENT_UNIFIED_CONSENT_SERVICE_H_
#define COMPONENTS_UNIFIED_CONSENT_UNIFIED_CONSENT_SERVICE_H_
#i... | 1,346 |
330 | package chapter_10;
/**
* 只写一次的变量更好
*
* @author biezhi
* @date 2018/7/25
*/
public class Example6 {
public static final int NUM_THREADS = 10;
}
| 76 |
997 | <reponame>mkannwischer/PQClean<filename>crypto_sign/sphincs-haraka-192f-robust/aesni/sign.c<gh_stars>100-1000
#include <immintrin.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "address.h"
#include "api.h"
#include "fors.h"
#include "hash.h"
#include "hash_state.h"
#include "params.h"
#include... | 8,184 |
333 | <reponame>JustinKyleJames/irods
#include "rsModDataObjMeta.hpp"
#include "modDataObjMeta.h"
#include "icatHighLevelRoutines.hpp"
#include "objMetaOpr.hpp"
#include "dataObjOpr.hpp"
#include "miscServerFunct.hpp"
#include "irods_file_object.hpp"
#include "irods_stacktrace.hpp"
#include "irods_configuration_keywords.hpp"... | 6,229 |
972 | package com.hannesdorfmann.fragmentargs.processor.test;
@com.hannesdorfmann.fragmentargs.annotation.FragmentWithArgs
public class InnerClassWithProtectedField extends android.app.Fragment {
@com.hannesdorfmann.fragmentargs.annotation.Arg
protected String arg;
@com.hannesdorfmann.fragmentargs.annotation.F... | 181 |
1,723 | <gh_stars>1000+
#
# Copyright (C) 2019 Intel Corporation. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
import sys
import time
import random
import logging
import json
from framework.case_base import *
from framework.test_api import *
from harness.harness_api import *
class CTestC... | 807 |
351 | # Copyright: (c) 2018, <NAME> (@jborean93) <<EMAIL>>
# MIT License (see LICENSE or https://opensource.org/licenses/MIT)
import struct
class GssChannelBindingsStruct(object):
INITIATOR_ADDTYPE = 'initiator_addtype'
INITIATOR_ADDRESS_LENGTH = 'initiator_address_length'
ACCEPTOR_ADDRTYPE = 'acceptor_addrty... | 1,072 |
435 | <filename>writethedocs-na-2018/videos/making-your-code-examples-shine-larry-ullman-write-the-docs-portland-2018.json
{
"abstract": "Thorough and optimal technical documentation often requires not just an\nAPI reference of endpoints and parameters, or long contextual\ninstructions, but also code examples that users ca... | 552 |
648 | <filename>spec/hl7.fhir.core/1.0.2/package/SearchParameter-Composition-context.json<gh_stars>100-1000
{"resourceType":"SearchParameter","id":"Composition-context","url":"http://hl7.org/fhir/SearchParameter/Composition-context","name":"context","publisher":"Health Level Seven International (Structured Documents)","conta... | 216 |
369 | <reponame>Shiva-D/rtos-course
/* ----------------------------------------------------------------------------
* SAM Software Package License
* ----------------------------------------------------------------------------
* Copyright (c) 2012, Atmel Corporation
*
* All rights reserved.
*
* Redistribution a... | 2,665 |
775 | # Copyright (C) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
import torch
import numpy as np
from mmcv.utils.registry import build_from_cfg
from mmcls.datasets.builder import DATASETS, PIPELINES
from mmcls.datasets.pipelines import Compose
from mmcls.datasets.base_dataset import BaseDataset
from mpa... | 2,269 |
647 | <filename>include/trick/compat/sim_services/Integrator/include/IntegJobClassId.hh
#include "trick/IntegJobClassId.hh"
| 41 |
348 | {"nom":"Courrières","circ":"11ème circonscription","dpt":"Pas-de-Calais","inscrits":7881,"abs":4311,"votants":3570,"blancs":139,"nuls":104,"exp":3327,"res":[{"nuance":"FN","nom":"Mme <NAME>","voix":1774},{"nuance":"REM","nom":"Mme <NAME>","voix":1553}]} | 106 |
1,062 | /**
* Copyright 2014 Google 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 requir... | 2,311 |
1,529 | <reponame>IgiArdiyanto/PINTO_model_zoo<gh_stars>1000+
from openvino.inference_engine import IENetwork, IECore
import cv2
import numpy as np
import pprint
ie = IECore()
vino_model_path = f'saved_model/openvino/FP16'
vino_model = 'saved_model'
net = ie.read_network(model=f'{vino_model_path}/{vino_model}.xml', weights=f'... | 1,806 |
14,668 | <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.
// Constants used by MimeHandlerView.
#ifndef EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_CONSTANTS_H_
#define EXTE... | 246 |
14,668 | <reponame>zealoussnow/chromium<filename>media/base/media_content_type.cc
// 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 "media/base/media_content_type.h"
namespace media {
namespace {
const ... | 245 |
6,036 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "orttraining/core/optimizer/dropout_recompute.h"
#include "orttraining/core/graph/recompute_graph_utils.h"
namespace onnxruntime {
Node& InsertDropoutRecompute(Graph& graph, Node& node, bool use_original_input) {... | 943 |
468 | <reponame>benparsons/hexbin<gh_stars>100-1000
{
"name": "netlify",
"author": "<NAME>",
"license": "CC0",
"vector": "http://hexb.in/vector/netlify.svg",
"description": "The all-in-one platform for automating modern web projects.",
"raster": "http://hexb.in/hexagons/netlify.png",
"filename": "meta/netlify.j... | 131 |
474 | package org.gearvrf.widgetlib.widget.custom;
import android.graphics.Color;
import static org.gearvrf.widgetlib.main.Utility.equal;
import org.gearvrf.widgetlib.log.Log;
import org.gearvrf.widgetlib.adapter.Adapter;
import org.gearvrf.widgetlib.adapter.BaseAdapter;
import org.gearvrf.widgetlib.main.WidgetLib;
impor... | 3,685 |
831 | <filename>profilers/testSrc/com/android/tools/profilers/memory/MemoryUsageTest.java
/*
* Copyright (C) 2018 The Android Open Source Project
*
* 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 a... | 1,432 |
2,151 | <reponame>zipated/src
// 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 "chrome/browser/vr/model/controller_model.h"
namespace vr {
ControllerModel::ControllerModel() = default;
ControllerMode... | 296 |
434 | # Copyright 2021 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 3,508 |
6,304 | /*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrDriverBugWorkarounds_DEFINED
#define GrDriverBugWorkarounds_DEFINED
// External embedders of Skia can override this to use their own list
// of workaround names.
#i... | 490 |
2,035 | <reponame>chakpongchung/tinyflow
"""Wrapping of certain ops for positional arguments.
Mainly because NNVM accepts kwargs for some additional arguments,
while TF sometimes support positional ops.
"""
from __future__ import absolute_import as _abs
from nnvm import symbol
from nnvm import _symbol_internal
def argmax(x,... | 171 |
348 | {"nom":"Guillac","circ":"4ème circonscription","dpt":"Morbihan","inscrits":997,"abs":450,"votants":547,"blancs":5,"nuls":8,"exp":534,"res":[{"nuance":"REM","nom":"<NAME>","voix":321},{"nuance":"FI","nom":"Mme <NAME>","voix":64},{"nuance":"FN","nom":"Mme <NAME>","voix":57},{"nuance":"LR","nom":"Mme <NAME>","voix":43},{"... | 260 |
348 | {"nom":"Belle-et-Houllefort","circ":"6ème circonscription","dpt":"Pas-de-Calais","inscrits":413,"abs":166,"votants":247,"blancs":7,"nuls":4,"exp":236,"res":[{"nuance":"REM","nom":"M<NAME>","voix":106},{"nuance":"LR","nom":"<NAME>","voix":48},{"nuance":"FN","nom":"M<NAME>","voix":34},{"nuance":"FI","nom":"Mme <NAME>","v... | 229 |
575 | // 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.
#include "components/javascript_dialogs/android/app_modal_dialog_view_android.h"
#include "base/android/jni_android.h"
#include "base/android/jni_str... | 2,069 |
659 | <reponame>xiaosimao/ip_pool
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by shimeng on 17-9-19
"""
代理网址及解析字典
status 代理状态, 若不想爬取此网站,可以将status设置为非active的任意值
request_method , 请求方法, 必写, 当为post的时候, 必须定义提交的post_data, 否则会报错.因项目的特殊性, 提交的数据中会带有页码数据, 所以在这里将
post_data 定义为列表, 里面的数据为字典格式
url 代理网址
parse_type 解析类型,默认提... | 2,326 |
1,738 | <gh_stars>1000+
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the li... | 2,442 |
2,189 | import numpy as np
from typing import List
import plotly.graph_objects as go
def visualize_term_rank(topic_model,
topics: List[int] = None,
log_scale: bool = False,
width: int = 800,
height: int = 500) -> go.Figure:
""... | 1,829 |
4,054 | <filename>clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/staterestapi/errors/InvalidContentException.java
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.clustercontroller.utils.staterestapi.errors;
public c... | 175 |
2,151 | // 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 "chromeos/components/proximity_auth/mock_proximity_auth_client.h"
#include "base/memory/ptr_util.h"
namespace proximity_auth {
MockProximityAu... | 192 |
15,179 | <filename>tests/distributed/test_workspaces/test_exceptions.py
import os
import pytest
from daemon.clients import JinaDClient
from jina import __default_host__
cur_dir = os.path.dirname(os.path.abspath(__file__))
def test_flow_error_in_partial_daemon():
client = JinaDClient(host=__default_host__, port=8000)
... | 491 |
984 | <filename>phoenix-pherf/src/test/java/org/apache/phoenix/pherf/workload/mt/WeightedRandomLoadEventGeneratorTest.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
* regarding copy... | 4,311 |
14,668 | // 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.
#include "ui/wm/core/visibility_controller.h"
#include "ui/aura/test/aura_test_base.h"
#include "ui/aura/test/test_window_delegate.h"
#include "ui/au... | 1,555 |
421 | <filename>samples/snippets/cpp/VS_Snippets_CLR/StringCompareTo/CPP/stringcompareto.cpp
//<snippet1>
using namespace System;
String^ CompareStrings(String^ str1, String^ str2)
{
// compare the values, using the CompareTo method on the first string
int cmpVal = str1->CompareTo(str2);
if (cmpVal == 0)
... | 541 |
1,702 | <reponame>mhalbritter/spring-native
/*
* 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
*
* https://www.apache.org/licenses/LI... | 3,074 |
979 | <gh_stars>100-1000
#include "bec/bitfield-enum-class.hpp"
#include <iostream>
enum class Key
{
None = 0,
Red = 1 << 0,
Green = 1 << 1,
Blue = 1 << 2,
Purple = 1 << 3,
Yellow = 1 << 4,
Orange = 1 << 5,
};
template<>
struct bec::EnableBitMaskOperators<Key>
{
static const ... | 509 |
438 | <filename>src/languages/en-upside/music/join.json<gh_stars>100-1000
{
"DESCRIPTION": "˙lǝuuɐɥɔ ǝɔᴉoʌ ɹnoʎ uᴉoɾ ʇoq ǝɥʇ sǝʞɐW",
"USAGE": "join",
"NO_VC": "˙oʇ ʇɔǝuuoɔ uɐɔ I ʇɐɥʇ lǝuuɐɥɔ ǝɔᴉoʌ ɐ uᴉ ʇou ǝɹ,no⅄",
"JOIN": "I have successfully joined the channel.",
"MOVED": "˙lǝuuɐɥɔ pǝʌoɯ ʎllnɟssǝɔɔns ǝʌɐɥ I"
}
| 254 |
892 | <reponame>westonsteimel/advisory-database-github<gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-h445-hrmv-gh6r",
"modified": "2022-04-29T01:27:19Z",
"published": "2022-04-29T01:27:19Z",
"aliases": [
"CVE-2003-0995"
],
"details": "Buffer overflow in the Microsoft Message Queue Manager (MSQM... | 419 |
312 | // Copyright <NAME> 2020
//
// 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)
#if !defined(MQTT_STRAND_HPP)
#define MQTT_STRAND_HPP
#include <boost/asio/io_context.hpp>
#include <boost/asio/strand.hpp>
#include ... | 286 |
13,111 | /*
* 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 ... | 2,893 |
1,025 | # encoding: utf-8
import datetime
import json
import logging
import urllib.parse
import urllib.request
import redis
import time
# 日期开始
start_date = time.strftime("%Y%m%d", time.localtime())
today = datetime.date.today()
yesterday = today - datetime.timedelta(days=1)
fifteenago = today - datetime.timedelta(days=11)
pr... | 3,342 |
2,813 | /**
* The files in this directory are copied from JabRef's main source.
* We need top have a copy, because
* a) symblinks do not work on git for windows out of the box (<a href="https://stackoverflow.com/a/59761201/873282">https://stackoverflow.com/a/59761201/873282</a>)
* b) using a source directory of another pro... | 132 |
9,724 | <filename>system/lib/compiler-rt/lib/builtins/atomic_flag_clear.c
//===-- atomic_flag_clear.c -----------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: ... | 255 |
2,806 | package com.idormy.sms.forwarder.sender;
import android.os.Handler;
import android.util.Log;
import androidx.annotation.NonNull;
import com.idormy.sms.forwarder.utils.LogUtil;
import com.idormy.sms.forwarder.utils.SettingUtil;
import java.io.IOException;
import java.net.URLEncoder;
import java.util.Obje... | 2,511 |
1,590 | {
"parameters": {
"api-version": "2017-04-01",
"subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40",
"parameters": {
"name": "sdk-Namespace-2924"
}
},
"responses": {
"200": {
"body": {
"isAvailiable": false,
"id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7... | 285 |
313 | <gh_stars>100-1000
package com.imperva.apispecparser.parsers.swagger.propertynode;
import com.imperva.apiattacktool.model.tests.ParameterLocation;
import io.swagger.models.Model;
import io.swagger.models.ModelImpl;
import io.swagger.models.RefModel;
import java.util.Map;
public class SwaggerModelToPropertyNodeFactor... | 394 |
823 | /*
* Copyright 2019 The Project Oak 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 o... | 2,053 |
348 | {"nom":"Saint-Julien-de-Concelles","circ":"10ème circonscription","dpt":"Loire-Atlantique","inscrits":5347,"abs":3129,"votants":2218,"blancs":163,"nuls":47,"exp":2008,"res":[{"nuance":"REM","nom":"<NAME>","voix":1234},{"nuance":"LR","nom":"<NAME>","voix":774}]} | 103 |
380 | {"options":{},"indexes":[{"v":2,"key":{"_id":1},"name":"_id_","ns":"openrasp.plugin"},{"v":2,"key":{"app_id":1},"name":"app_id","ns":"openrasp.plugin","background":true},{"v":2,"key":{"upload_time":1},"name":"upload_time","ns":"openrasp.plugin","background":true}],"uuid":"4518b8aeec984278809ec45ebe1cbab4"} | 116 |
711 | package com.java110.intf.community;
import com.java110.config.feign.FeignConfiguration;
import com.java110.dto.repair.RepairDto;
import com.java110.po.owner.RepairPoolPo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.b... | 1,216 |
14,668 | // Copyright (c) 2011 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 "jingle/glue/jingle_glue_mock_objects.h"
namespace jingle_glue {
MockStream::MockStream() {}
MockStream::~MockStream() {}
} // namespace... | 112 |
2,039 | /*-
*
* * Copyright 2017 Skymind,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
* *
* * ... | 4,959 |
5,766 | /* XzCrc64.c -- CRC64 calculation
2010-04-16 : <NAME> : Public domain */
#include "XzCrc64.h"
#define kCrc64Poly UINT64_CONST(0xC96C5795D7870F42)
UInt64 g_Crc64Table[256];
void MY_FAST_CALL Crc64GenerateTable(void)
{
UInt32 i;
for (i = 0; i < 256; i++)
{
UInt64 r = i;
int j;
for (j = 0; j < 8; j++)... | 365 |
6,270 | [
{
"type": "feature",
"category": "ComputeOptimizer",
"description": "Adds support for 1) the AWS Graviton (AWS_ARM64) recommendation preference for Amazon EC2 instance and Auto Scaling group recommendations, and 2) the ability to get the enrollment statuses for all member accounts of an or... | 332 |
515 | package br.com.caelum.stella.gateway.pagseguro;
import br.com.caelum.stella.gateway.core.DefinedByCode;
public enum PagSeguroTipoPagamento implements DefinedByCode{
PAG_SEGURO("PAGAMENTO"),CARTAO_CREDITO("CARTAO DE CREDITO"),BOLETO("BOLETO"),PAGAMENTO_ONLINE("PAGAMENTO ONLINE");
private String codigo;
... | 253 |
375 | /*
* Copyright 2016 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.robotframework.ide.eclipse.main.plugin.assist;
import java.util.List;
import com.google.common.collect.ImmutableList;
class LibraryAliasReservedWordProposal extend... | 211 |
1,800 | package com.limpoxe.fairy.core.compat;
import android.content.Context;
import androidx.collection.SimpleArrayMap;
import com.limpoxe.fairy.util.RefInvoker;
import java.util.HashMap;
import java.util.Map;
/**
* for supportv7
*/
public class CompatForFragmentClassCache {
private static final String androidx_f... | 3,626 |
324 | <filename>src/test/java/net/openhft/chronicle/bytes/Allocator.java<gh_stars>100-1000
/*
* Copyright 2016-2020 chronicle.software
*
* https://chronicle.software
*
* 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... | 1,534 |
848 | <filename>tools/Vitis-AI-Runtime/VART/vart/util/include/vitis/ai/simple_config.hpp
/*
* Copyright 2019 Xilinx 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.ap... | 656 |
1,742 | from .generic_nodes import is_pAdicField, is_pAdicRing
from .factory import Zp, Zq, Zp as pAdicRing, ZpCR, ZpCA, ZpFM, ZpFP, ZpLC, ZpLF, ZqCR, ZqCA, ZqFM, ZqFP, ZpER
from .factory import Qp, Qq, Qp as pAdicField, QpCR, QpFP, QpLC, QpLF, QqCR, QqFP, QpER
from .factory import pAdicExtension
from .padic_generic import loc... | 183 |
6,726 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#ifdef FB_SONARKIT_ENABLED
#pragma once
#import <Flipper/FlipperSocket.h>
#import <Flipper/FlipperSocketProvider.h>
#import <Flip... | 820 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-8ww7-x4wm-w3qh",
"modified": "2022-05-03T03:18:08Z",
"published": "2022-05-03T03:18:08Z",
"aliases": [
"CVE-2007-2230"
],
"details": "SQL injection vulnerability in CA Clever Path Portal allows remote authenticat... | 915 |
3,102 | // RUN: %clang_cc1 -S -emit-llvm -o - -O2 -disable-llvm-passes %s | FileCheck %s -check-prefixes=CHECK,O2
// RUN: %clang_cc1 -S -emit-llvm -o - -O2 -disable-lifetime-markers %s \
// RUN: | FileCheck %s -check-prefixes=CHECK,O0
// RUN: %clang_cc1 -S -emit-llvm -o - -O0 %s | FileCheck %s -check-prefixes=CHECK,O0
e... | 1,178 |
1,558 | {
"name": "Theme Selection",
"description": "Ergänzt Ihre Anwendung mit Designunterstützung."
}
| 47 |
372 | /*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under t... | 1,982 |
590 | /*******************************************************************************
* Copyright 2017 Bstek
*
* 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/l... | 1,923 |
911 | <reponame>Pieter12345/ComputerCraft<gh_stars>100-1000
/*
* This file is part of the public ComputerCraft API - http://www.computercraft.info
* Copyright <NAME>, 2011-2017. This API may be redistributed unmodified and in full only.
* For help using the API, and posting your mods, visit the forums at computercraft.inf... | 1,014 |
4,772 | <filename>jpa/deferred/src/main/java/example/repo/Customer1356Repository.java
package example.repo;
import example.model.Customer1356;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer1356Repository extends CrudRepository<Customer1356, Long> {
List<Custome... | 115 |
799 | import demistomock as demisto
from CommonServerPython import *
from JSONFeedApiModule import * # noqa: E402
def main():
params = {k: v for k, v in demisto.params().items() if v is not None}
params['feed_name_to_config'] = {
'CIDR': {
'url': 'https://api.fastly.com/public-ip-list',
... | 401 |
1,545 | <reponame>pkumar-singh/bookkeeper
/*
* 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, Ve... | 2,130 |
668 | /*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates.
*
* All rights reserved.
*
* 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,... | 1,515 |
781 | <reponame>BeastLe9enD/zpl<filename>code/source/threading/sem.c
// file: source/threading/sem.c
ZPL_BEGIN_C_DECLS
void zpl_semaphore_release(zpl_semaphore *s) { zpl_semaphore_post(s, 1); }
#if defined(ZPL_SYSTEM_WINDOWS)
void zpl_semaphore_init (zpl_semaphore *s) { s->win32_handle = CreateSemaphore... | 836 |
3,384 | //
// XVimLowercaseEvaluator.h
// XVim
//
// Created by <NAME> on 6/04/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import "XVimOperatorEvaluator.h"
@interface XVimLowercaseEvaluator : XVimOperatorEvaluator
@end
| 98 |
4,262 | <reponame>rikvb/camel
/*
* 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
* (th... | 1,331 |
1,346 | <gh_stars>1000+
package com.ctrip.platform.dal.daogen.generator.processor.csharp;
import com.ctrip.platform.dal.daogen.CodeGenContext;
import com.ctrip.platform.dal.daogen.DalProcessor;
import com.ctrip.platform.dal.daogen.generator.csharp.CSharpCodeGenContext;
import com.ctrip.platform.dal.daogen.log.LoggerManager;
i... | 881 |
14,668 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_SHARING_SHARING_HANDLER_REGISTRY_H_
#define CHROME_BROWSER_SHARING_SHARING_HANDLER_REGISTRY_H_
#include "chrome/browser/sharing/pr... | 371 |
348 | {"nom":"Jury","circ":"2ème circonscription","dpt":"Moselle","inscrits":715,"abs":427,"votants":288,"blancs":21,"nuls":4,"exp":263,"res":[{"nuance":"LR","nom":"<NAME>","voix":139},{"nuance":"REM","nom":"<NAME>","voix":124}]} | 90 |
2,449 | /**
* Copyright 2021 Pinterest, 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 agree... | 1,009 |
357 | /*
*
* Copyright (c) 2012-2015 VMware, 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 required ... | 2,040 |
452 | package com.perfree.common;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* 正则校验工具
*/
public class RegexUtill {
/**
* 验证是否是URL
*
* @param url url
* @return boolean
*/
public static boolean verifyUrl(String url) {
String regEx = "[a-zA-z]+://[^\\s]*";
... | 217 |
1,857 | #ifndef PLATFORM_H
#define PLATFORM_H
#include "graphics.h"
typedef struct window window_t;
typedef enum {KEY_A, KEY_D, KEY_S, KEY_W, KEY_SPACE, KEY_NUM} keycode_t;
typedef enum {BUTTON_L, BUTTON_R, BUTTON_NUM} button_t;
typedef struct {
void (*key_callback)(window_t *window, keycode_t key, int pressed);
void... | 439 |
26,932 | #ifndef _ESCALATE_COMMON_H
#define _ESCALATE_COMMON_H
/*! @brief When defined, debug output is enabled on Windows builds. */
//#define DEBUGTRACE 1
#ifdef DEBUGTRACE
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#define dprintf(...) real_dprintf(__VA_ARGS__)
#else
#define dprintf(...) do{}whi... | 780 |
4,035 | {
"private": true,
"name": "preact-prerendering-hydration-preact8",
"dependencies": {
"preact": "8.5.3",
"preact-render-to-string": "4.1.0"
}
}
| 77 |
862 | <filename>atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/SweepableCells.java<gh_stars>100-1000
/*
* (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 Lic... | 9,040 |
6,098 | package water.api;
import hex.grid.Grid;
import hex.schemas.GridSchemaV99;
import water.Key;
import water.KeySnapshot;
import water.Value;
import water.api.schemas99.GridsV99;
/**
* /Grids/ end-point handler.
*/
public class GridsHandler extends Handler {
/**
* Return all the grids.
*/
@SuppressWarnings(... | 446 |
314 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "CDStructures.h"
@class NSMutableDictionary;
@interface IDETemplateMacroEngine : NSObject
{
NSMutableDictionary *_macroSubstitutions;
}
+ (id)standardSubstitutionsForMacros... | 431 |
581 | #!/usr/bin/env python -*- coding: utf-8 -*-
#
# Python Word Sense Disambiguation (pyWSD): WSD all-words lesk speed tests
#
# Copyright (C) 2014-2015 alvations
# URL:
# For license information, see LICENSE.md
from __future__ import print_function
import time
from nltk.corpus import brown
from pywsd.lesk import simple... | 468 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-7hgh-752m-38mj",
"modified": "2022-05-17T00:12:15Z",
"published": "2022-05-17T00:12:15Z",
"aliases": [
"CVE-2017-14585"
],
"details": "A Server Side Request Forgery (SSRF) vulnerability could lead to remote code execution for authenticated administrators. This ... | 598 |
675 | #include "shadow_depth_render_stage.h"
namespace Echo
{
ShadowDepthRenderStage::ShadowDepthRenderStage()
: RenderStage()
{
// Add default render queue
Echo::IRenderQueue* renderQueue = EchoNew(RenderQueue);
if (renderQueue)
{
renderQueue->setName("Shadow Depth");
addRenderQueue(renderQueue);
}
}
... | 174 |
775 | <filename>micropolis/micropolis-activity/src/tk/tktxtag.c
/*
* tkTextTag.c --
*
* This module implements the "tag" subcommand of the widget command
* for text widgets, plus most of the other high-level functions
* related to tags.
*
* Copyright 1992 Regents of the University of California.
* Permission to use,... | 11,940 |
421 | <gh_stars>100-1000
//<Snippet2>
using namespace System;
using namespace System::Globalization;
ref class DummyProvider: public IFormatProvider
{
public:
// Normally, GetFormat returns an object of the requested type
// (usually itself) if it is able; otherwise, it returns Nothing.
virtual Object^ ... | 1,103 |
14,668 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "extensions/browser/extensions_browser_interface_binders.h"
#include <string>
#include "base/bind.h"
#include "content/public/browser/render_fr... | 349 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.