max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,006 | /****************************************************************************
* arch/risc-v/src/esp32c3/esp32c3_efuse_table.c
*
* 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... | 12,413 |
540 | //===-- xpu_any_of.pass.cpp -----------------------------------------------===//
//
// Copyright (C) Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
// This file incorporates work covered by the following copyright and permission
// notice:
//
// Part of the LLVM Project, under the Ap... | 1,125 |
10,340 | <reponame>111andre111/logstash
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (t... | 3,447 |
2,151 | /*
* Copyright (c) 2012 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/*
* NaCl Service Runtime. Directory descriptor abstraction.
*/
#include "native_client/src/include/portability.h"
#include <stdlib.h... | 2,943 |
1,266 | <filename>src/nodeid.h
// Copyright (c) 2021 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_NODEID_H
#define BITCOIN_NODEID_H
#include <cstdint>
typedef int64_t NodeId;
/**
* Special N... | 148 |
1,379 | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 3,822 |
563 | package com.gentics.mesh.util;
import static java.nio.charset.CodingErrorAction.REPLACE;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.charset.CharacterCodingException;
import java.nio.charset.Charset;
/**
* Utility t... | 1,007 |
342 | #include <stdint.h>
#include <inttypes.h>
#include <stdio.h>
#include <string.h>
void __vprintCStr(const char* str) {
printf("%s", str);
}
void __vprintI64(int64_t x) {
printf("%lld", x);
}
void __vprintBool(int8_t x) {
if (x) {
printf("true");
} else {
printf("false");
}
}
| 138 |
1,255 | /*
* Copyright (c) 2014, Oculus VR, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
... | 3,197 |
1,752 | <gh_stars>1000+
package cn.myperf4j.base.metric.exporter.log;
import cn.myperf4j.base.config.ProfilingConfig;
import cn.myperf4j.base.log.ILogger;
import cn.myperf4j.base.log.LoggerFactory;
import cn.myperf4j.base.metric.exporter.JvmCompilationMetricsExporter;
/**
* Created by LinShunkang on 2019/11/09
*/
public ab... | 285 |
411 | <reponame>zhizhangxian/sssegmentation
'''initialize'''
from .psanet import PSANet | 32 |
32,544 | package com.baeldung.entity;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import javax.persistence.*;
@Entity
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class Address {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id", unique = true... | 467 |
431 | <gh_stars>100-1000
from dulwich.refs import DictRefsContainer
from github import Github
import os
# based on RefsContainer(object): https://github.com/dulwich/dulwich/blob/master/dulwich/refs.py#L95
# and DictRefsContainer(RefsContainer): https://github.com/dulwich/dulwich/blob/master/dulwich/refs.py#L390
class Gith... | 969 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport
*/
#import <OfficeImport/PDSlideBase.h>
#import <OfficeImport/XXUnknownSuperclass.h>
@class OADTableStyle, PDTransition, PDAnimation, NSString, OADBackground, NSArray;
__attribut... | 1,386 |
457 | <gh_stars>100-1000
package io.agora.vlive.agora.rtm.model;
import java.util.List;
public class NotificationMessage extends AbsRtmMessage {
public Notification data;
public static class Notification {
public int total;
public List<NotificationItem> list;
}
public static class Notifica... | 215 |
587 | /*
* Copyright (C) 2013 salesforce.com, 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 ... | 4,110 |
5,908 | <filename>core/src/test/resources/auth-config/config-with-json-key.json
{
"auths": {
"https://registry.example.com": {
"auth": "<KEY>
}
}
}
| 89 |
14,668 | {
"extends": "../../tsconfig_base.json",
"compilerOptions": {
"noUnusedLocals": false
}
}
| 43 |
3,102 | extern int v;
#include "a.h"
| 14 |
3,702 | <gh_stars>1000+
//
// Copyright (c) YugaByte, 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 o... | 7,907 |
4,816 | <reponame>mehrdad-shokri/retdec
"""Merges json objects, solves types' conflicts."""
from .io import load_json_file
from .json_types import TYPES
def typedef_loops_with_already_inserted_typedefs(new_type, merged_types):
"""Checks if new type would create circular typedefs in merged_types."""
if new_type['type... | 1,024 |
648 | <gh_stars>100-1000
{"date":"2013-02-19","group":{"group":[{"group":[{"question":[{"linkId":"nameOfChild","text":"Name of child"},{"linkId":"sex","text":"Sex"}]},{"linkId":"neonatalInformation","question":[{"linkId":"birthWeight","text":"Birth weight (kg)"},{"linkId":"birthLength","text":"Birth length (cm)"},{"group":[{... | 567 |
611 | //
// ZIKRouter-umbrella.h
// ZIKRouter
//
// Created by zuik on 2017/7/21.
// Copyright © 2017 zuik. All rights reserved.
//
// This source code is licensed under the MIT-style license found in the
// LICENSE file in the root directory of this source tree.
//
#import <Foundation/Foundation.h>
#import "ZIKPlatfo... | 575 |
3,027 | from enum import Enum
class DydxPerpetualOrderStatus(Enum):
PENDING = 0
active = 100
OPEN = 101
UNTRIGGERED = 102
done = 300
FILLED = 301
failed = 400
expired = 501
CANCELED = 502
def __ge__(self, other):
if self.__class__ is other.__class__:
return self.va... | 363 |
1,738 | <reponame>jeikabu/lumberyard
/*
* 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 provid... | 1,839 |
575 | // Copyright 2021 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 CONTENT_BROWSER_RENDERER_HOST_POLICY_CONTAINER_NAVIGATION_BUNDLE_H_
#define CONTENT_BROWSER_RENDERER_HOST_POLICY_CONTAINER_NAVIGATION_BUNDLE_H_
#... | 2,473 |
578 | <filename>src/gfx/Frustum.h
// Copyright (c) 2019 <NAME> <EMAIL>
// This software is provided 'as-is' under the zlib License, see the LICENSE.txt file.
// This notice and the license may not be removed or altered from any source distribution.
#pragma once
#ifndef TWO_MODULES
#include <stl/span.h>
#include <geom/Ge... | 779 |
1,158 | /*
* JBoss, Home of Professional Open Source
* Copyright 2017, Red Hat, Inc. and/or its affiliates, and individual
* contributors by the @authors tag. See the copyright.txt in the
* distribution for a full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* y... | 3,675 |
326 | #include "cruby.h"
VALUE
llrb_insn_opt_ltlt(VALUE recv, VALUE obj)
{
if (!SPECIAL_CONST_P(recv)) {
if (RBASIC_CLASS(recv) == rb_cString &&
BASIC_OP_UNREDEFINED_P(BOP_LTLT, STRING_REDEFINED_OP_FLAG)) {
return rb_str_concat(recv, obj);
}
else if (RBASIC_CLASS(recv) == rb_cArray &&
BASIC... | 373 |
775 | -- automatically generated by rosy 7.0 #14 (nan<EMAIL>.mcc.<EMAIL>), do not edit!
IMISC DEFINITIONS ::=
BEGIN
IA5List ::=
SEQUENCE OF
IA5String
UTCResult ::=
UniversalTime
TimeResult ::=
INTEGER
GenResult ::=
GeneralizedTime
Data ::=
ANY
Empty ::=
NULL... | 158 |
790 | <filename>lib/django-1.4/django/contrib/localflavor/co/co_departments.py
# -*- coding: utf-8 -*-
"""
A list of Colombian departaments as `choices` in a
formfield.
This exists in this standalone file so that it's only
imported into memory when explicitly needed.
"""
DEPARTMENT_CHOICES = (
('AMA', u'Amazonas'),
... | 572 |
8,629 | <filename>src/Interpreters/executeDDLQueryOnCluster.h
#pragma once
#include <Access/Common/AccessRightsElement.h>
#include <QueryPipeline/BlockIO.h>
#include <Processors/ISource.h>
#include <Interpreters/Context_fwd.h>
#include <Parsers/IAST_fwd.h>
namespace zkutil
{
class ZooKeeper;
}
namespace DB
{
struct DD... | 492 |
425 | <filename>include/highfive/bits/H5DataSet_misc.hpp
/*
* Copyright (c), 2017, <NAME> <<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)
*
*/
#ifndef H5DATASET_MISC_HPP
#define H5DATASET_... | 831 |
836 | <reponame>balakrishnan-rajkumar/ews-java-api
/*
* The MIT License
* Copyright (c) 2012 Microsoft Corporation
*
* 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, inclu... | 864 |
1,247 | <gh_stars>1000+
package org.seckill.web.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpStatus;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecu... | 555 |
310 | {
"name": "Default Folder X",
"description": "A Mac OS X utility for expanding the capabilities of the Open and Save dialogs.",
"url": "https://www.stclairsoft.com/DefaultFolderX/"
} | 56 |
351 | package com.qy.reader.discover;
import android.support.v4.app.Fragment;
/**
* Created by yuyuhang on 2018/1/9.
*/
public class DiscoverFragment extends Fragment {
}
| 59 |
4,262 | <filename>core/camel-core/src/test/java/org/apache/camel/language/RefPredicateTest.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 copyright ownership.
* The ASF lice... | 713 |
562 | import argparse
from pathlib import Path
parser = argparse.ArgumentParser()
parser.add_argument('input', type=Path)
parser.add_argument('output', type=Path)
parser.add_argument('--prefix', default='')
argument = parser.parse_args()
input = argument.input # type: Path
output = argument.output # type: Path
paths = l... | 254 |
815 | <gh_stars>100-1000
/*=========================================================================
Program: ParaView
Module: pqManageFavoritesReaction.h
Copyright (c) 2005,2006 Sandia Corporation, Kitware Inc.
All rights reserved.
ParaView is a free software; you can redistribute it and/or modify it
un... | 731 |
12,278 | // Copyright <NAME> 2002.
// 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)
#ifndef FORCE_INSTANTIATE_DWA200265_HPP
# define FORCE_INSTANTIATE_DWA200265_HPP
namespace boost { namespace python { namespace detail { ... | 183 |
1,337 | <filename>modules/core/test/com/haulmont/cuba/core/EclipseLinkDetachedTest.java
/*
* Copyright (c) 2008-2016 Haulmont.
*
* 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://ww... | 3,777 |
338 | <filename>pom-explorer/src/main/java/fr/lteconsulting/pomexplorer/Builder.java
package fr.lteconsulting.pomexplorer;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.jgrapht.traverse.TopologicalOrderIterato... | 3,069 |
1,550 | <filename>leo/modes/inform.py
# Leo colorizer control file for inform mode.
# This file is in the public domain.
# Properties for inform mode.
properties = {
"doubleBracketIndent": "false",
"filenameGlob": "*.(inf|h)",
"indentCloseBrackets": "}]",
"indentNextLine": "\\s*(((if|while)\\s*\\(|else... | 6,756 |
310 | <filename>gear/hardware/u/ultravac-225.json<gh_stars>100-1000
{
"name": "Ultravac 225",
"description": "A vacuum packaging machine.",
"url": "http://www.kochequipment.com/tsc/tsc_003.htm"
} | 78 |
488 | #pragma once
#include <list>
#include <vector>
#include <set>
#include <map>
#include <string>
#include <iostream>
#include <sstream>
#include <fstream>
#include "dbglog.h"
namespace dbglog {
class scope: public block
{
static std::vector<std::string> colors;
static int colorIdx; // The current index into the li... | 1,472 |
929 | <reponame>ddeadguyy/acl
////////////////////////////////////////////////////////////////////////////////
// The MIT License (MIT)
//
// Copyright (c) 2018 <NAME> & Animation Compression Library contributors
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associ... | 1,636 |
379 | // Copyright © 2011, Université catholique de Louvain
// All rights reserved.
//
// 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... | 1,221 |
565 | /*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2016 The PHP Group |
+--------------... | 5,185 |
643 | package me.panavtec.drawableview.gestures.creator;
import me.panavtec.drawableview.draw.SerializablePath;
public interface GestureCreatorListener {
void onGestureCreated(SerializablePath serializablePath);
void onCurrentGestureChanged(SerializablePath currentDrawingPath);
}
| 82 |
1,520 |
from __future__ import absolute_import
#typing
#overrides
from allennlp.common.util import JsonDict, sanitize
from allennlp.data import DatasetReader, Instance
from allennlp.models import Model
from allennlp.predictors.predictor import Predictor
from allennlp.data.tokenizers.word_splitter import SpacyWordSplitter
#... | 3,520 |
2,113 | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... | 693 |
852 | <filename>PhysicsTools/PatExamples/src/PatBTagCommonHistos.cc<gh_stars>100-1000
// -*- C++ -*-
//
// Package: PatBTag
// Class: PatBTagCommonHistos
//
/**\class PatBTagCommonHistos PatBTagCommonHistos.cc
Description: <Define and Fill common set of histograms depending on flavor>
Implementation:
Create a ... | 7,463 |
4,538 | <filename>vendors/realtek/sdk/amebaZ2/component/common/bluetooth/realtek/sdk/inc/bluetooth/profile/client/gaps_client.h<gh_stars>1000+
/**
*****************************************************************************************
* Copyright(c) 2016, Realtek Semiconductor Corporation. All rights reserved.
**********... | 3,564 |
3,614 | <gh_stars>1000+
from chalicelib.core import users
from chalicelib.utils import email_helper, captcha, helper
def reset(data):
print("====================== reset password ===============")
print(data)
if helper.allow_captcha() and not captcha.is_valid(data["g-recaptcha-response"]):
print("error: I... | 458 |
679 | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 950 |
410 | package com.webank.defibus.hook;
import com.webank.defibus.common.DeFiBusConstant;
import java.util.HashMap;
import org.apache.commons.lang3.StringUtils;
import org.apache.rocketmq.common.protocol.RequestCode;
import org.apache.rocketmq.remoting.RPCHook;
import org.apache.rocketmq.remoting.protocol.RemotingCommand;
p... | 726 |
403 | <filename>OpenMatch/data/tokenizers/word_tokenizer.py
from typing import List
from nltk import word_tokenize
from OpenMatch.data.tokenizers import Tokenizer
class WordTokenizer(Tokenizer):
def tokenize(self, text: str) -> List[str]:
tokens = word_tokenize(text)
return tokens
| 103 |
865 | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
import matplotlib.pyplot as plt
import numpy as np
from collections import Counter
class Evaluator:
def __init__(sel... | 2,117 |
418 | ../../../Mantle/Mantle/NSDictionary+MTLJSONKeyPath.h | 20 |
420 | # Copyright (c) 2012-2016 Seafile Ltd.
import os
import logging
from rest_framework.authentication import SessionAuthentication
from rest_framework.permissions import IsAdminUser
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework import status
from seahub.api2.au... | 1,324 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-qfv9-4gwp-p4m6",
"modified": "2022-05-02T00:09:43Z",
"published": "2022-05-02T00:09:43Z",
"aliases": [
"CVE-2008-4403"
],
"details": "The CGI modules in the server in Trend Micro OfficeScan 8.0 SP1 before build 2439 and 8.0 SP1 Patch 1 before build 3087 allow r... | 715 |
10,016 | <gh_stars>1000+
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2013 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with th... | 3,914 |
397 | <gh_stars>100-1000
/*-
* Copyright 2012-1015 <NAME>
* All rights reserved
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted providing that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this ... | 3,132 |
6,989 | <reponame>fergy/aplit_linux-5
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
* Filesystem based user-mode API to USB Gadget controller hardware
*
* Other than ep0 operations, most things are done by read() and write()
* on endpoint files found in one directory. They are configured by
* writing ... | 925 |
9,106 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "pch.h"
#include "CommandHandler.h"
#include "CommandHandler.g.cpp"
#include <Crash.h>
using namespace winrt::Windows::Foundation;
using namespace winrt::Windows::Data::Json;
namespace winrt::AutomationChannel::implement... | 1,093 |
455 | # Copyright 2020 Stanford University, Los Alamos National Laboratory
#
# 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 ... | 755 |
3,457 | #pragma once
namespace tf {
// ----------------------------------------------------------------------------
// taskflow
// ----------------------------------------------------------------------------
class AsyncTopology;
class Node;
class Graph;
class FlowBuilder;
class Semaphore;
class Subflow;
class Runtime;
class ... | 294 |
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.
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_WTF_TYPED_ARRAYS_BIGINT64_ARRAY_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_WTF_TYPED... | 1,218 |
2,634 | <filename>sopcast-sdk/src/main/java/com/laifeng/sopcastsdk/mediacodec/MediaCodecHelper.java
package com.laifeng.sopcastsdk.mediacodec;
import android.annotation.TargetApi;
import android.media.MediaCodecInfo;
import android.media.MediaCodecList;
/**
* @Title: MediaCodecHelper
* @Package com.laifeng.sopcastsdk.media... | 542 |
547 | /*
* Copyright 2011 <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.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 932 |
6,969 | <filename>3]. Competitive Programming/06]. InterviewBit/1]. Programming/13]. Tree Data Structure/Bst_traversal/Java/KthSmallestElementInTree.java
public class Solution {
List<Integer> al=new ArrayList<Integer>();
public int kthsmallest(TreeNode root, int k) {
inorder(root);
return al.get(k-1);
... | 201 |
842 | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pogoprotos/enums/gender.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf impo... | 830 |
1,473 | /////////////////////////////////////////////////////////////////////////////
// Name: wx/position.h
// Purpose: Common structure and methods for positional information.
// Author: <NAME>, <NAME>, <NAME>, <NAME>
// Created: 2007-03-13
// Copyright: (c) 2007 The wxWidgets Team
// Licence: wxWin... | 892 |
361 | #include "voxgraph/tools/evaluation/map_evaluation.h"
#include <memory>
#include <string>
#include <ceres/ceres.h>
#include <ros/ros.h>
#include <voxblox/io/layer_io.h>
#include "voxgraph/backend/constraint/cost_functions/registration_cost_function.h"
namespace voxgraph {
MapEvaluation::MapEvaluation(const ros::Nod... | 2,690 |
697 | <gh_stars>100-1000
# Copyright 2018 <NAME> LLC, <<EMAIL>>
#
# 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... | 948 |
359 | <filename>front/tcheckarr.c
/**
* Copyright 2018 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mo... | 4,790 |
327 | /*
* Author: <NAME>
* Copyright (c) 2019, Private Octopus, Inc.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THIS SOFTWARE ... | 4,772 |
323 | {
"name": "laravelista/ekko",
"description": "Framework agnostic PHP package for marking navigation items active.",
"license": "MIT",
"keywords": ["php", "function", "active", "bootstrap", "helper", "laravel"],
"authors": [
{
"name": "<NAME>",
"email": "<EMAIL>",
"homepage"... | 486 |
396 | /*
Copyright 2018 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 required by applicable law or agreed to in ... | 1,307 |
575 | <reponame>zealoussnow/chromium
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_STORAGE_ACCESS_API_STORAGE_ACCESS_GRANT_PERMISSION_CONTEXT_H_
#define CHROME_BROWSER_STORAGE_ACCESS_... | 1,396 |
313 | //------------------------------------------------------------------------------
// GrB_Semiring_free: free a semiring
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2022, All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
//-------... | 404 |
348 | {"nom":"<NAME>'Espagne","circ":"2ème circonscription","dpt":"Français établis hors de France","inscrits":477,"abs":432,"votants":45,"blancs":1,"nuls":0,"exp":44,"res":[{"nuance":"REM","nom":"<NAME>","voix":31},{"nuance":"ECO","nom":"<NAME>","voix":13}]} | 100 |
454 | <reponame>ozangunalp/smallrye-mutiny
package io.smallrye.mutiny.helpers;
/**
* The infamous sneaky throw helper.
*/
public interface SneakyThrow {
@SuppressWarnings("unchecked")
static <E extends Throwable> RuntimeException sneakyThrow(Throwable e) throws E {
throw (E) e;
}
}
| 109 |
841 | import json
import time
import urllib2
import lib.core.common
import lib.core.settings
def gather_raw_whois_info(domain):
"""
get the raw JSON data for from the whois API
"""
auth_headers = {
lib.core.common.HTTP_HEADER.CONTENT_TYPE: "application/json",
lib.core.common.HTTP_HEADER.AUT... | 1,565 |
778 | // | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main authors: <NAME>
//
#if !defined(KRATOS... | 7,838 |
613 | package com.interest.annotation.handler;
import com.interest.utils.DateUtil;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.... | 800 |
558 | package com.endava.cats.fuzzer.headers.leading;
import com.endava.cats.model.FuzzingStrategy;
import io.quarkus.test.junit.QuarkusTest;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
@QuarkusTest
class LeadingSingleCodePointEmojisInHeadersFuzzerTest... | 513 |
1,056 | <filename>enterprise/websvc.customization/src/org/netbeans/modules/websvc/customization/multiview/PortPanel.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 copyrigh... | 10,020 |
2,082 | <filename>backend/data_export/pipeline/factories.py
from typing import Dict, List, Type
from django.db.models import QuerySet
from . import writers
from .catalog import CSV, JSON, JSONL, FastText
from .formatters import (
DictFormatter,
FastTextCategoryFormatter,
Formatter,
JoinedCategoryFormatter,
... | 1,960 |
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 "third_party/blink/renderer/core/loader/resource/font_resource.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/pub... | 2,418 |
945 | <filename>Modules/IO/MINC/include/itkMINCImageIO.h
/*=========================================================================
*
* 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 o... | 1,360 |
302 | <gh_stars>100-1000
//---------------------------------------------------------------------------
//
// X68000 EMULATOR "XM6"
//
// Copyright (C) 2001-2006 PI.(<EMAIL>)
// Copyright (C) 2010-2020 GIMONS
// [ ファイルI/O(RaSCSI用サブセット) ]
//
//---------------------------------------------------------------------------
#includ... | 4,009 |
363 | <filename>Java7sample/src/main/java/com/stylingandroid/viewpageranimator/sample/adapter/PagerFragment.java
package com.stylingandroid.viewpageranimator.sample.adapter;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import an... | 519 |
1,860 | <filename>umychart_python/umychart_complier_scanner.py
# Copyright (c) 2018 jones
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# 开源项目 https://github.com/jones2000/HQChart
#
# <EMAIL>
#################################################################
#
#
#
######################################... | 10,119 |
610 | <reponame>rli/aws-toolkit-jetbrains<gh_stars>100-1000
{
"type" : "bugfix",
"description" : "Fix plugin deprecation warning in DynamoDB viewer (#2987)"
}
| 60 |
1,084 | <filename>SLIDE/Network.h
#pragma once
#include "Layer.h"
#include <chrono>
#include "cnpy.h"
#include <sys/mman.h>
using namespace std;
class Network
{
private:
Layer** _hiddenlayers;
float _learningRate;
int _numberOfLayers;
int* _sizesOfLayers;
NodeType* _layersTypes;
float * _Sparsity;
//int* _inputIDs;
i... | 583 |
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... | 1,001 |
575 | <reponame>sarang-apps/darshan_browser
// 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 CHROME_BROWSER_UI_ASH_ASH_UTIL_H_
#define CHROME_BROWSER_UI_ASH_ASH_UTIL_H_
#include <memory>
#include... | 385 |
400 | <reponame>carefree0910/carefree-learn
import os
import numpy as np
import matplotlib.pyplot as plt
from typing import Any
from typing import List
from typing import Tuple
from typing import Union
from typing import Callable
from typing import Optional
from cftool.misc import show_or_save
from ....types import tensor... | 3,983 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.