max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-r4q9-qxgx-r39m",
"modified": "2022-04-14T00:00:39Z",
"published": "2022-04-06T00:01:38Z",
"aliases": [
"CVE-2022-23732"
],
"details": "A path traversal vulnerability was identified in GitHub Enterprise Server man... | 713 |
504 | <filename>Tools/esp/lmem.c
/***********************************************************************
*
* Copyright (c) Berkeley Softworks 1989 -- All Rights Reserved
*
* PROJECT: PCGEOS
* MODULE: Esp -- Local Memory Segment Stuff
* FILE: lmem.c
*
* AUTHOR: <NAME>: Aug 14, 1989
*
* ROUTINES:... | 10,080 |
4,879 | <reponame>smartyw/organicmaps<filename>android/src/com/mapswithme/maps/editor/data/LocalizedName.java
package com.mapswithme.maps.editor.data;
import androidx.annotation.NonNull;
public class LocalizedName
{
public int code;
@NonNull public String name;
@NonNull public String lang;
@NonNull public String lang... | 184 |
5,079 | <filename>tests/unit/swf/test_layer2_actors.py
import boto.swf.layer2
from boto.swf.layer2 import Decider, ActivityWorker
from tests.unit import unittest
from mock import Mock
class TestActors(unittest.TestCase):
def setUp(self):
boto.swf.layer2.Layer1 = Mock()
self.worker = ActivityWorker(name='... | 1,895 |
322 | <reponame>WanpengQian/ConcurrencyFreaks
//copyright
/*
* This code is compilable with a C99 compiler, i.e. pretty much any gcc version
*/
#include <stdio.h>
#include <stdlib.h>
#include "di_arraylist.h"
// TODO: Provide Equals() in initializer
// TODO: explain that resize occurs in powers of two, or pass min/max s... | 1,800 |
619 | #include "mull/Diagnostics/Diagnostics.h"
#include <memory>
#include <spdlog/sinks/ansicolor_sink.h>
#include <spdlog/spdlog.h>
using namespace mull;
class mull::DiagnosticsImpl {
public:
DiagnosticsImpl() {
logger = std::unique_ptr<spdlog::logger>(new spdlog::logger(
"default", spdlog::sink_ptr(new spd... | 827 |
1,946 | #include "common-utils.h"
std::wstring ToWstring(const std::string &src) {
// TODO: src is really UTF-8?
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> converter;
return converter.from_bytes(src);
}
std::string ToUTF8(const std::wstring &src) {
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> conver... | 142 |
1,155 | <reponame>alexhenrie/poedit
//
// Copyright (c) 2016-2017 <NAME> (<EMAIL> at <EMAIL>)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boostorg/beast
//
#ifndef BOOST... | 15,172 |
647 | <filename>trick_sims/SIM_wheelbot/models/Control/include/differentialDriveController.hh
/*
* PURPOSE: (DifferentialDriveController class)
*/
#ifndef DIFFERENTIAL_DRIVE_CONTROLER_HH
#define DIFFERENTIAL_DRIVE_CONTROLER_HH
#include "Motor/include/motorSpeedController.hh"
#include "Control/include/PIDController.hh"
cl... | 723 |
323 | from copy import copy
from dataclasses import dataclass
from functools import partial
from http.client import IncompleteRead, RemoteDisconnected
from typing import Callable, TYPE_CHECKING, Type
from urllib3.exceptions import ProtocolError
from vnpy.api.rest import Request
from vnpy.trader.constant import Exchange, In... | 3,569 |
954 | <reponame>bufan1228/jdonframework
/*
* $Id: UtilDateTime.java,v 1.2 2005/01/31 05:27:55 jdon Exp $
*
* Copyright (c) 2001, 2002 The Open For Business Project - www.ofbiz.org
*
* Permission is hereby granted, free of charge, to any person obtaining event
* copy of this software and associated documentatio... | 6,971 |
1,652 | package com.ctrip.xpipe.redis.console.healthcheck;
import com.ctrip.xpipe.api.command.CommandFuture;
import com.ctrip.xpipe.api.command.CommandFutureListener;
import com.ctrip.xpipe.api.endpoint.Endpoint;
import com.ctrip.xpipe.api.pool.SimpleObjectPool;
import com.ctrip.xpipe.concurrent.AbstractExceptionLogTask;
impo... | 3,516 |
6,523 | <gh_stars>1000+
import test_pyprof_nvtx.TestPyProfNvtx as TestPyProfNvtx
| 31 |
2,381 | package com.github.dockerjava.cmd;
import com.github.dockerjava.api.command.CreateContainerResponse;
import com.github.dockerjava.api.exception.DockerException;
import com.github.dockerjava.api.model.Image;
import com.github.dockerjava.api.model.Info;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.Lo... | 1,189 |
465 | <filename>GaussianBlur/app/src/main/jni/BoxBlur.cpp
//引入头文件
#include "com_mjj_gaussianblur_GaussianBlur.h"
#include <jni.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
jint* boxesForGauss(jint sigma,jint n)
{
jint wIdeal = sqrt((12*sigma*sigma/n)+1);
jint wl = floor(wIdeal);if(wl%2==0) {wl--;}
... | 3,092 |
438 | <filename>include/Algo-Direct-Common.h
#pragma once
#include <algorithm>
#include <limits>
#include <type_traits>
#include "AAlloc.h"
namespace BinSearch {
namespace Details {
namespace DirectAux {
#define SAFETY_MULTI_PASS true
template <typename T>
struct HResults
{
HResults(T h, double ratio, size_t n) : H(... | 5,245 |
15,337 | from phonenumbers.phonenumberutil import country_code_for_region
from .i18n import AddressMetaForm, get_address_form_class
def get_address_form(data, country_code, initial=None, instance=None, **kwargs):
country_form = AddressMetaForm(data, initial=initial)
preview = False
if country_form.is_valid():
... | 516 |
3,631 | <filename>drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/ConditionalConsequenceBuilder.java<gh_stars>1000+
/*
* Copyright 2005 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... | 1,058 |
462 | <filename>calendarserver/tap/test/test_caldav.py
##
# Copyright (c) 2007-2017 Apple 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/license... | 21,827 |
1,813 | #ifndef SENSORS_ACTIONS_H_INCLUDED
#define SENSORS_ACTIONS_H_INCLUDED
// This file defines which sensor input neurons and which action output neurons
// are compiled into the simulator. This file can be modified to create a simulator
// executable that supports only a subset of all possible sensor or action neurons.
... | 1,580 |
1,853 | <filename>tests/ImplicitCast3Test.cpp
#define HELLO 0x2
int main()
{
unsigned int x = 0x03;
if( x & HELLO ) {}
if( (x & HELLO) == HELLO) {}
}
| 71 |
3,442 | <filename>src/net/java/sip/communicator/service/protocol/event/ContactCapabilitiesEvent.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 complianc... | 1,403 |
2,813 | <filename>src/test/java/org/jabref/logic/integrity/AbbreviationCheckerTest.java
package org.jabref.logic.integrity;
import java.util.Optional;
import org.jabref.logic.journals.Abbreviation;
import org.jabref.logic.journals.JournalAbbreviationLoader;
import org.jabref.logic.journals.JournalAbbreviationRepository;
imp... | 591 |
627 | <reponame>skpatel20/spring-app-boot
/*
* Copyright 2020-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this artifact or file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org... | 404 |
1,016 | <gh_stars>1000+
/**
*
*/
package com.thinkbiganalytics.metadata.modeshape.catalog.datasource;
/*-
* #%L
* kylo-metadata-modeshape
* %%
* Copyright (C) 2017 - 2018 ThinkBig Analytics, a Teradata Company
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except i... | 2,382 |
429 | <filename>chill-avro/src/test/java/avro/FiscalRecord.java
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package avro;
@SuppressWarnings("all")
public class FiscalRecord extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
public static final org.apa... | 4,116 |
956 | /* SPDX-License-Identifier: BSD-3-Clause
* Copyright (c) 2016 - 2018 Cavium Inc.
* All rights reserved.
* www.cavium.com
*/
#ifndef __ECORE_VF_API_H__
#define __ECORE_VF_API_H__
#include "ecore_sp_api.h"
#include "ecore_mcp_api.h"
#ifdef CONFIG_ECORE_SRIOV
#define ECORE_VF_ACQUIRE_THRESH 3
/**
* @brief Read t... | 1,876 |
1,350 | <reponame>ppartarr/azure-sdk-for-java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.compute.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.ExpandableStringEnum;
import java.util.Collection;
/** Compute r... | 415 |
776 | package ghissues;
import act.controller.annotation.UrlContext;
import act.inject.param.NoBind;
import act.job.Every;
import act.job.OnAppStart;
import act.validation.EmailHandler;
import org.osgl.mvc.annotation.GetAction;
import javax.inject.Inject;
import javax.inject.Singleton;
@UrlContext("1141")
public class Gh1... | 227 |
487 | import datetime
def a():
test = 'Test'
return "{name} ({date:%B %d, %Y})".format( name=test, date=datetime.datetime.now() ) | 54 |
5,823 | // Copyright 2013 The Flutter 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 FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_COMPOSITOR_METAL_H_
#define FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_COMPOSITOR_META... | 443 |
390 | //
// RHSocketBase64Decoder.h
// RHSocketKitDemo
//
// Created by zhuruhong on 16/2/15.
// Copyright © 2016年 zhuruhong. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "RHSocketCodecProtocol.h"
@interface RHSocketBase64Decoder : NSObject <RHSocketDecoderProtocol>
@property (nonatomic, strong) i... | 162 |
335 | {
"word": "Hostage",
"definitions": [
"a person seized or held as security for the fulfillment of a condition."
],
"parts-of-speech": "Noun"
}
| 67 |
1,211 | <filename>Classes/CSStickyHeaderFlowLayoutAttributes.h
/*
* This file is part of the CSStickyHeaderFlowLayout package.
* (c) <NAME> <<EMAIL>>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#import <UIKit/UIKit.h>
@interface CSSti... | 142 |
528 | <gh_stars>100-1000
/******************************************************************************
Copyright 2019-2020 <NAME>
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.... | 1,318 |
2,571 | # ***************************************************************
# Copyright (c) 2021 Jittor. All Rights Reserved.
# Maintainers: <NAME> <<EMAIL>>.
# This file is subject to the terms and conditions defined in
# file 'LICENSE.txt', which is part of this source code package.
# ****************************************... | 3,613 |
5,129 | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from functools import lru_cache
from . import BaseWrapperDataset
class LRUCacheDataset(BaseWrapperDataset):
def __init__(self, dataset... | 212 |
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 "components/download/public/background_service/test/test_download_service.h"
#include "base/bind.h"
#include "base/threading/thread_task_runner_... | 1,822 |
439 | {
"blurb": "Find the difference between the square of the sum and the sum of the squares of the first N natural numbers.",
"authors": [
"stkent"
],
"contributors": [
"aadityakulkarni",
"balachandarsv",
"FridaTveit",
"hgvanpariya",
"javaeeeee",
"jmrunkle",
"jtigger",
"kytrinyx... | 416 |
3,734 | package com.shekhargulati.ninetynine_problems._01_lists;
import java.util.ArrayDeque;
import java.util.LinkedList;
import java.util.stream.Stream;
import static java.util.stream.Collectors.toCollection;
public abstract class CollectionUtils {
public static <T> LinkedList<T> linkedList(T... elements) {
r... | 191 |
437 | /*
* *
* * MIT License
* *
* * Copyright (c) 2017-2019 nuls.io
* *
* * Permission is hereby granted, free of charge, to any person obtaining a copy
* * of this software and associated documentation files (the "Software"), to deal
* * in the Software without restriction, including without limitation the r... | 1,024 |
803 | #pragma once
#include "test.h"
class CustomUniformMat : public STDMaterial
{
public:
MATX(CustomUniformMat);
Vector4 uniform = Vector4(0.0f, 0.0f, 0.0f, 0.0f);
void rehash(size_t& hash) const override
{
STDMaterial::rehash(hash);
hash_combine(hash, uniform.x, uniform.y, uniform.z, u... | 2,338 |
335 | <gh_stars>100-1000
{
"word": "Theologian",
"definitions": [
"A person who engages or is an expert in theology."
],
"parts-of-speech": "Noun"
} | 73 |
360 | /*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ... | 4,572 |
577 | # -*- coding: windows-1252 -*-
###
#
# Copyright <NAME>.
#
# You may contact the copyright holder at this uri:
#
# http://www.xhaus.com/contact/modjy
#
# The licence under which this code is released is the Apache License v2.0.
#
# The terms and conditions of this license are listed in a file contained
# in the d... | 1,607 |
348 | <gh_stars>100-1000
{"nom":"Rancy","circ":"4ème circonscription","dpt":"Saône-et-Loire","inscrits":406,"abs":254,"votants":152,"blancs":11,"nuls":2,"exp":139,"res":[{"nuance":"SOC","nom":"<NAME>","voix":80},{"nuance":"REM","nom":"<NAME>","voix":59}]} | 103 |
2,617 | # -*- coding: utf-8 -*-
# Copyright (c) Vispy Development Team. All Rights Reserved.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
"""Vispy setup script.
Steps to do a new release:
Preparations:
* Test on Windows, Linux, Mac
* Make release notes
* Update API documentation and other d... | 2,256 |
2,648 | <reponame>Xiaoxiong-Liu/gluon-ts<gh_stars>1000+
# Copyright 2018 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://www.apache... | 4,584 |
310 | <reponame>tiwaria1/oneAPI-samples
// Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: MIT
#include <CL/sycl.hpp>
#include <mutex>
using namespace sycl;
int main() {
queue Q;
int my_ints[42];
// create a buffer of 42 ints
buffer<int> b{range(42)};
// create a buffer of 42 ints, initialize ... | 363 |
9,228 | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Utils for Controllable Gen Teacher.
"""
from collections import deque
import random
from parlai.core.loader import l... | 1,828 |
2,453 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12).
//
// Copyright (C) 1997-2019 <NAME>.
//
@class IDEEditorDocument;
@protocol IDESingleFileCommandSupportingEditor
@property(readonly) IDEEditorDocument *document;
- (void)compileCurrentFile;
- (BOOL)canCompileFile;
- (void)... | 176 |
2,728 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 533 |
2,338 | <filename>llvm/lib/CodeGen/EHContGuardCatchret.cpp
//===-- EHContGuardCatchret.cpp - Catchret target symbols -------*- 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: Apache-2.0 WITH... | 858 |
575 | // 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 "chrome/browser/media/router/providers/cast/app_activity.h"
#include <algorithm>
#include <memory>
#include <vector>
#include "base/bind.h"
#in... | 2,519 |
2,962 | <reponame>stari4ek/storio<filename>storio-content-resolver/src/test/java/com/pushtorefresh/storio3/contentresolver/operations/get/PreparedGetNumberOfResultsTest.java
package com.pushtorefresh.storio3.contentresolver.operations.get;
import android.database.Cursor;
import android.net.Uri;
import com.pushtorefresh.stori... | 4,019 |
405 | package org.jeecgframework.web.demo.controller.test;
import java.io.IOException;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.htt... | 4,608 |
2,338 | #include "a.h"
#include <stdio.h>
int main()
{
printf ("%d\n", foo());
}
| 40 |
4,071 | <reponame>Ru-Xiang/x-deeplearning<filename>xdl/ps-plus/ps-plus/server/udf/test/hash_variable_initializer_test.cc
/* Copyright (C) 2016-2018 Alibaba Group Holding 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 cop... | 1,093 |
325 | package com.box.l10n.mojito.phabricator;
public class PhabricatorException extends RuntimeException {
public PhabricatorException(String message) {
super(message);
}
public PhabricatorException(String message, Throwable cause) {
super(message, cause);
}
}
| 104 |
576 | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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/licens... | 744 |
313 | <filename>pk/mmap.c
// See LICENSE for license details.
#include "mmap.h"
#include "atomic.h"
#include "pk.h"
#include "boot.h"
#include "bits.h"
#include "mtrap.h"
#include <stdint.h>
#include <stdbool.h>
#include <errno.h>
uintptr_t kva2pa_offset;
typedef struct vmr_t {
struct vmr_t* next;
uintptr_t addr;
si... | 6,400 |
585 | <reponame>richung99/digitizePlots
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ..gtract import gtractResampleAnisotropy
def test_gtractResampleAnisotropy_inputs():
input_map = dict(
args=dict(
argstr="%s",
),
environ=dict(
nohash=True,
used... | 771 |
2,139 | <reponame>barrhaim/jruby
/***** BEGIN LICENSE BLOCK *****
* Version: EPL 2.0/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Eclipse Public
* License Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://w... | 2,492 |
453 | <filename>lib/jxl/enc_xyb.cc
// Copyright (c) the JPEG XL Project 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 "lib/jxl/enc_xyb.h"
#include <algorithm>
#include <cstdlib>
#undef HWY_TARGET_INCLUDE
#define HWY_TARGET_... | 7,754 |
678 | <reponame>RockerHX/FishChat<gh_stars>100-1000
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "FTSResultView.h"
#import "IFTSContactMgrExt.h"
#import "contactInfoDelegate.h"
@class NSString;
@interface FTSFollowedBrdCtDetail... | 560 |
1,847 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#pragma once
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#define INITGUID
#include <memory>
#include <vector>
#include "compiler_check.hpp"
#in... | 2,200 |
877 | <reponame>janrieke/checker-framework
public class Issue2739<E extends Object & Issue2739.EppEnum> {
public interface EppEnum {
String getXmlName();
}
void method(E e) {
String s = e.getXmlName();
}
}
| 85 |
353 | <filename>windows_packages_gpu/torch/include/torch/csrc/autograd/cpp_hook.h
#pragma once
#include <torch/csrc/autograd/function_hook.h>
#include <functional>
#include <memory>
namespace torch { namespace autograd {
using hooks_list = std::vector<std::function<Variable(const Variable&)>>;
struct CppFunctionP... | 220 |
1,989 | # -*- coding: utf-8 -*-
"""
Created on Sat May 13 01:29:33 2017
@author: DIP
"""
from nltk.parse.stanford import StanfordParser
sentence = 'The quick brown fox jumps over the lazy dog'
# create parser object
scp = StanfordParser(path_to_jar='E:/stanford/stanford-parser-full-2015-04-20/stanford-parser.jar',
... | 227 |
815 | #ifndef DIMS_H
#define DIMS_H
#include <mpi.h>
#ifdef __cplusplus
extern "C" {
#endif
int MY_Dims_init_3D(int nnodes, int ndim, int *dims);
int MY_Dims_create_3D(int nnodes, int ndim, int *dims);
#ifdef __cplusplus
}
#endif
#endif
| 118 |
1,172 | <filename>src/com/google/caja/lexer/JsTokenType.java<gh_stars>1000+
// Copyright (C) 2005 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/lice... | 340 |
5,169 | {
"name": "AppProvaUIComponents",
"version": "0.0.4",
"summary": "Common UI components used in AppProva projects",
"description": "AppProvaUIComponents is a collection of UI components used in AppProva projects",
"homepage": "https://github.com/appprova/appprova-ui-components-ios",
"license": {
"type": ... | 301 |
544 | <gh_stars>100-1000
from office365.sharepoint.base_entity_collection import BaseEntityCollection
from office365.sharepoint.files.checkedOutFile import CheckedOutFile
class CheckedOutFileCollection(BaseEntityCollection):
def __init__(self, context, resource_path=None):
super(CheckedOutFileCollection, self).... | 109 |
421 | <reponame>hamarb123/dotnet-api-docs
/*
This program demonstrates 'Credentials' property, 'GetProxy' and 'IsBypassed' methods of
IWebProxy* interface.
The 'WebProxy_Interface' class implements the 'IWebProxy*' interface. It provides an implementation for the
'GetProxy' and 'IsByPassed' methods and 'ICredentials*' p... | 997 |
903 | <reponame>ywelsch/lucene<gh_stars>100-1000
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache Licens... | 596 |
1,738 | /*
* 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 license below or t... | 349 |
861 | /*
* Copyright (c) 2018. Univocity Software Pty Ltd
* <p/>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required ... | 480 |
1,473 | <reponame>ljmf00/autopsy
/*
* Autopsy
*
* Copyright 2020 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* 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
*
* h... | 626 |
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.hyperlink.detectors;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;... | 2,672 |
603 | <reponame>CJL89/pandas
import operator
import numpy as np
import pytest
from pandas import DataFrame, Index, Series
import pandas._testing as tm
class TestMatMul:
def test_matmul(self):
# matmul test is for GH#10259
a = DataFrame(
np.random.randn(3, 4), index=["a", "b", "c"], columns... | 1,356 |
348 | <gh_stars>100-1000
/**
* Copyright 2017 Netflix, Inc.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required b... | 2,630 |
1,104 | package org.apache.lucene.util.packed;
/**
* 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,... | 3,155 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-vj6j-x8fq-xj4j",
"modified": "2022-05-01T07:06:42Z",
"published": "2022-05-01T07:06:42Z",
"aliases": [
"CVE-2006-3202"
],
"details": "The ip6_savecontrol function in NetBSD 2.0 through 3.0, under certain configurations, does not check to see if IPv4-mapped sock... | 505 |
1,235 | # -*- coding: utf-8 -*-
"""
evaluation related module
__author__ = 'Jamie (<EMAIL>)'
__copyright__ = 'Copyright (C) 2019-, Kakao Corp. All rights reserved.'
"""
###########
# imports #
###########
from collections import Counter
import logging
from typing import List, TextIO, Tuple
from khaiii.train.sentence impor... | 2,198 |
14,668 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_FORM_FETCHER_H_
#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_FORM_FETCHER_H_
#include <memory>
#incl... | 1,268 |
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... | 1,120 |
348 | {"nom":"Saint-Lô-d'Ourville","circ":"3ème circonscription","dpt":"Manche","inscrits":442,"abs":188,"votants":254,"blancs":1,"nuls":1,"exp":252,"res":[{"nuance":"REM","nom":"<NAME>","voix":125},{"nuance":"LR","nom":"<NAME>","voix":43},{"nuance":"FN","nom":"Mme <NAME>","voix":39},{"nuance":"FI","nom":"<NAME>","voix":36},... | 217 |
852 | import FWCore.ParameterSet.Config as cms
# Calorimetry Digis (Ecal + Hcal) - * unsuppressed *
# returns sequence "calDigi"
from SimCalorimetry.Configuration.ecalDigiSequence_cff import *
from SimGeneral.Configuration.SimGeneral_cff import *
doAllDigi = cms.Sequence(ecalDigiSequence)
pdigi = cms.Sequence(cms.SequenceP... | 138 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-j6p3-x7q6-j8xv",
"modified": "2022-05-01T02:02:23Z",
"published": "2022-05-01T02:02:23Z",
"aliases": [
"CVE-2005-1832"
],
"details": "Multiple cross-site scripting (XSS) vulnerabilities in MyBulletinBoard (MyBB) 1.00 RC4 and earlier allow remote attackers to ex... | 553 |
319 | <reponame>lucapele/pele-c
# zwei 12/16/2013
# accumulate generator
def group_iter(iterator, n):
# print(iterator)
accumulator = []
for item in iterator:
accumulator.append(item)
if len(accumulator) == n:
yield accumulator
accumulator = []
... | 229 |
503 | <reponame>lamia100/yona<filename>app/utils/ValidationUtils.java
/**
* Yobi, Project Hosting SW
*
* Copyright 2013 NAVER Corp.
* http://yobi.io
*
* @author <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obt... | 314 |
453 | <filename>app/src/main/jni/lluv/lluv/lluv_timer.h
/******************************************************************************
* Author: <NAME> <<EMAIL>>
*
* Copyright (C) 2014-2016 <NAME> <<EMAIL>>
*
* Licensed according to the included 'LICENSE' document
*
* This file is part of lua-lluv library.
*****************... | 182 |
1,338 | <reponame>Kirishikesan/haiku
/*
* Copyright 2018, Haiku Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _FBSD_IFLIB_SYS_TASKQUEUE_H_
#define _FBSD_IFLIB_SYS_TASKQUEUE_H_
/* include the real sys/taskqueue.h */
#include_next <sys/taskqueue.h>
typedef void (*taskqueue_callback_f... | 314 |
310 | <filename>gear/software/s/sourcehut.json
{
"name": "sourcehut",
"description": "A service for managing software development.",
"url": "https://sourcehut.org/"
}
| 56 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-gpfj-4j6g-c4w9",
"modified": "2021-08-30T23:16:08Z",
"published": "2021-08-12T20:42:17Z",
"aliases": [
"CVE-2021-37700"
],
"summary": "Clipboard-based DOM-XSS",
"details": "### Impact\n\nA self Cross-Site Scripting vulnerability exists in the @github/paste-ma... | 1,467 |
1,914 | {
"sw-settings-address": {
"general": {
"mainMenuItemGeneral": "Adressen",
"textHeadline": "Adressen",
"description": "Verwaltung von Adresseinstellungen.",
"buttonSave": "Speichern",
"messageSaveSuccess": "Die Konfiguration wurde erfolgreich gespeichert."
}
}
}
| 131 |
498 | <filename>ncclient/operations/third_party/iosxe/rpc.py
from lxml import etree
from ncclient.xml_ import *
from ncclient.operations.rpc import RPC
class SaveConfig(RPC):
def request(self):
node = etree.Element(qualify('save-config', "http://cisco.com/yang/cisco-ia"))
return self._request(node)
| 126 |
651 | package org.spongycastle.asn1.cmc;
import org.spongycastle.asn1.ASN1Object;
import org.spongycastle.asn1.ASN1Primitive;
import org.spongycastle.asn1.ASN1Sequence;
import org.spongycastle.asn1.DERSequence;
/**
* <pre>
* -- Inform follow on servers that one or more controls have already been
* -- processed
*
* id-... | 868 |
7,482 | <gh_stars>1000+
/*
* Copyright (c) 2011-2012, Freescale Semiconductor, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyri... | 10,121 |
619 | #include <iostream>
/*
* Assume 32-bit x86 windows machine
* sizeof(unsigned short):2
* sizeof(int):4
* sizeof(long):4
* sizeof(char*):4
*/
struct MyStruct
{
unsigned short v1; // 0 bytes offset
unsigned short v2; // 2 bytes offset
unsigned short v3; // 4 bytes offset
} ;// End 6 bytes.
// No part... | 1,370 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.