max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
10,876 | {
"name": "xtl",
"version": "0.7.2",
"description": "The x template library",
"homepage": "https://github.com/xtensor-stack/xtl",
"dependencies": [
"nlohmann-json"
]
}
| 78 |
765 | /*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for additional information regarding copyright ownership.
Accellera licenses... | 5,401 |
597 | package com.xiaojukeji.kafka.manager.web.api.versionone.op;
import com.alibaba.fastjson.JSON;
import com.xiaojukeji.kafka.manager.bpm.common.entry.apply.gateway.OrderExtensionAddGatewayConfigDTO;
import com.xiaojukeji.kafka.manager.bpm.common.entry.apply.gateway.OrderExtensionDeleteGatewayConfigDTO;
import com.xiaojuk... | 2,358 |
985 | /*
* (C) 2007-2012 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 copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 752 |
2,268 | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
#include "isaverestore.h"
#include "saverestore_utlvector.h"
#include "ai_saverestore.h"
#include "ai_ba... | 1,809 |
1,755 | <filename>Common/DataModel/Testing/Python/quadraticQuadDeriv.py
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
from vtk.test import Testing
class TestCommand(Testing.vtkTest):
def _test(self, fname):
reader = vtk.vtkX... | 793 |
6,181 | #include <drogon/utils/Utilities.h>
#include <drogon/drogon_test.h>
#include <string>
struct SameContent
{
SameContent(const std::vector<std::string>& container)
: container_(container.begin(), container.end())
{
}
std::vector<std::string> container_;
};
template <typename Container1>
inline ... | 1,258 |
1,306 | <reponame>leewp14/android_dalvik
HANDLE_OP_CMPX(OP_CMPG_DOUBLE, "g-double", double, _DOUBLE, 1)
OP_END
| 53 |
8,027 | package com.test;
public class ClassWithImplicitDependencyOnExportedProvidedLibraryClass
extends ClassThatUseExportedProvidedLibraryClass {}
| 39 |
2,232 | <reponame>JLimperg/lean<gh_stars>1000+
/*
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: <NAME>
*/
#include "library/module.h"
#include "api/decl.h"
#include "api/inductive.h"
#include "api/string.h"
#include "api/exception.h"
... | 2,167 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.security.models;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.... | 1,593 |
826 |
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), 'contrib'))
from cement import App, CaughtSignal # noqa: E402
from .controllers.base import Base # noqa: E402
class CementApp(App):
class Meta:
label = 'cement'
controller = 'base'
template_module = 'cement.... | 754 |
426 | <reponame>supercwn/SuperRecycleView
package com.superrecycleview.library.bean.sidebar;
import com.superrecycleview.superlibrary.sidebar.bean.BaseIndexPinyinBean;
/**
* Created by super南仔 on 2017-05-04. 类备注: 需要传入的参数:
*/
public class WeChatBean extends BaseIndexPinyinBean {
private String name;// 城市的名称
priv... | 410 |
575 | // 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.
#include "components/policy/core/browser/url_blocklist_policy_handler.h"
#include <memory>
#include <utility>
#include "base/values.h"
#include "compone... | 3,030 |
14,668 | <filename>extensions/renderer/user_gestures_native_handler.h
// 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.
#ifndef EXTENSIONS_RENDERER_USER_GESTURES_NATIVE_HANDLER_H_
#define EXTENSIONS_RENDERER_USER_... | 317 |
2,648 | # 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.org/licenses/LICENSE-2.0
#
# or in the "license... | 3,017 |
313 | <reponame>gridgentoo/titus-control-plane
/*
* Copyright 2018 Netflix, 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
*
* Unle... | 1,809 |
805 | //
// MotionBlurFilter.h
// AHKMotionBlur
//
// Created by Arkadiusz on 17-07-14.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#import <CoreImage/CoreImage.h>
@interface MotionBlurFilter : CIFilter
@property (nonatomic, strong) CIImage *inputImage;
@property (nonatomic, strong) NSNumber *inputRadius;
@pr... | 146 |
441 | ///////////////////////////////////////////////////////////////////////////////
// Copyright (c) Electronic Arts Inc. All rights reserved.
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// stdioEA.h
//
// D... | 418 |
1,150 | <reponame>kaedea/android-dynamically-loading-apk
/*
* Copyright (c) 2016 <NAME> (<EMAIL>)
*/
package moe.studio.frontia;
import android.content.Context;
import java.io.File;
import java.io.IOException;
import moe.studio.frontia.ext.PluginError;
import moe.studio.frontia.core.Plugin;
import moe.studio.frontia.core... | 1,405 |
3,269 | <gh_stars>1000+
# Time: O(1)
# Space: O(1)
import math
class Solution(object):
def bulbSwitch(self, n):
"""
type n: int
rtype: int
"""
# The number of full squares.
return int(math.sqrt(n))
| 123 |
3,062 | <reponame>smartyw/organicmaps
#pragma once
#include <functional>
#include <memory>
#include <optional>
#include <string>
namespace search
{
class Results;
struct ViewportSearchParams
{
using OnStarted = std::function<void()>;
using OnCompleted = std::function<void(Results const & results)>;
std::string m_quer... | 168 |
313 | <gh_stars>100-1000
/*
* Copyright 2021 Netflix, 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 applica... | 690 |
852 | <gh_stars>100-1000
#include "TrackingTools/GeomPropagators/interface/PropagationDirectionFromPath.h"
#include "TrackingTools/MaterialEffects/interface/PropagatorWithMaterial.h"
#include "TrackingTools/GeomPropagators/interface/AnalyticalPropagator.h"
#include "TrackingTools/MaterialEffects/interface/CombinedMaterialEff... | 2,364 |
344 | <filename>Baikal/Renderers/adaptive_renderer.h
/**********************************************************************
Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (t... | 1,140 |
2,120 | /**
* @file delay.h
* @brief Delay functions.
*
* This file contains wrapper functions for the compiler built in delay
* functions. The reason for this is that other files which need to use delays
* can include just a single file, delay.h, instead of needing to both define
* FCY and import <libpic30.h>.
*/
#if... | 171 |
2,293 | from datetime import tzinfo,timedelta
class TomlTz(tzinfo):
def __init__(A,toml_offset):
B=toml_offset
if B=='Z':A._raw_offset='+00:00'
else:A._raw_offset=B
A._sign=-1 if A._raw_offset[0]=='-'else 1;A._hours=int(A._raw_offset[1:3]);A._minutes=int(A._raw_offset[4:6])
def tzname(A,dt):return'UTC'+A._raw_offset
... | 203 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-q57g-cp47-3q2m",
"modified": "2022-05-01T18:41:12Z",
"published": "2022-05-01T18:41:12Z",
"aliases": [
"CVE-2007-6272"
],
"details": "Multiple SQL injection vulnerabilities in index.php in Joomla! 1.5 RC3 allow remote attackers to execute arbitrary SQL commands... | 528 |
2,180 | package com.xiaojukeji.kafka.manager.common.utils;
import java.security.MessageDigest;
/**
* @author zengqiao
* @date 20/3/17
*/
public class EncryptUtil {
private static final char[] HEX_DIGITS = {
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'
};
public st... | 592 |
338 | package com.camnter.newlife.ui.activity.smartrouter;
import android.os.Bundle;
import android.widget.TextView;
import com.camnter.newlife.R;
import com.camnter.newlife.core.activity.BaseAppCompatActivity;
import com.camnter.smartrouter.SmartRouters;
/**
* @author CaMnter
*/
public class CustomRouterActivity extend... | 459 |
12,278 | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | 9,929 |
3,442 | <reponame>wcicola/jitsi
/*
* 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 compliance with the License.
* You may obtain a copy of the License at
*
*... | 1,166 |
2,151 | // 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.
#ifndef IOS_CHROME_BROWSER_TABS_TAB_MODEL_LIST_H_
#define IOS_CHROME_BROWSER_TABS_TAB_MODEL_LIST_H_
#import <Foundation/Foundation.h>
#include "base/mac... | 652 |
3,834 | package org.enso.interpreter.node.expression.builtin.number.decimal;
import com.oracle.truffle.api.nodes.Node;
import org.enso.interpreter.dsl.BuiltinMethod;
import org.enso.interpreter.node.expression.builtin.number.utils.BigIntegerOps;
import org.enso.interpreter.runtime.number.EnsoBigInteger;
@BuiltinMethod(type =... | 170 |
520 |
import numpy as np
import matplotlib.pyplot as plt
from CoolProp.HumidAirProp import HAProps
Tdb = np.linspace(-10, 55, 100) + 273.15
# Make the figure and the axes
fig = plt.figure(figsize=(10, 8))
ax = fig.add_axes((0.15, 0.15, 0.8, 0.8))
ax.set_xlim(Tdb[0] - 273.15, Tdb[-1] - 273.15)
ax.set_ylim(0, 0.03)
ax.set_x... | 616 |
350 | # BSD 3-Clause License
#
# Copyright (c) 2020, Elasticsearch BV
# 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, t... | 893 |
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.
package org.chromium.components.page_info;
import org.chromium.base.annotations.NativeMethods;
import org.chromium.content_public.browser.WebContents;
/... | 209 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.analytics.synapse.artifacts.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.fasterxml.... | 507 |
2,709 | #include <matplot/matplot.h>
int main() {
using namespace matplot;
image_channels_t image = imread("lena_color.tiff");
image = imvignette(image);
imshow(image);
show();
return 0;
} | 86 |
965 | <reponame>bobbrow/cpp-docs
CButton myBitmapButton;
// Create a bitmap button.
myBitmapButton.Create(_T("My button"), WS_CHILD | WS_VISIBLE | BS_BITMAP,
CRect(10, 10, 60, 50), pParentWnd, 1);
// If no bitmap is defined for the button, define the bitmap to the
// system close bitmap.
if (myBitmapB... | 169 |
674 | /**
* Copyright (c) 2014 <NAME> (<EMAIL>)
* <p>
* 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, modify, merg... | 839 |
352 | /*
* Command.cpp
*
* This file is part of the XShaderCompiler project (Copyright (c) 2014-2018 by <NAME>)
* See "LICENSE.txt" for license information.
*/
#include "Command.h"
#include "CommandFactory.h"
#include "Shell.h"
#include "Helper.h"
#include "ReportIdents.h"
#include <Xsc/Targets.h>
#include <Xsc/Consol... | 14,655 |
314 | """
Unit testing for particular segmentation module
Copyright (C) 2014-2018 <NAME> <<EMAIL>>
"""
import logging
import os
import sys
import unittest
import matplotlib.pyplot as plt
import numpy as np
sys.path.append(os.path.abspath(os.path.join('..', '..'))) # Add path to root
from imsegm.superpixels import (
... | 854 |
7,137 | <reponame>shivagowda/onedev
package io.onedev.server.rest.jersey;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.ResponseBuilder;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
@Provider
public class InvalidParamExceptionMapper implements ExceptionMapper<InvalidParamExcep... | 202 |
630 | <filename>src/test/java/org/elasticsearch/river/mongodb/tokumx/RiverTokuMXOplogRefTest.java<gh_stars>100-1000
package org.elasticsearch.river.mongodb.tokumx;
import static org.elasticsearch.client.Requests.countRequest;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
... | 1,593 |
809 | /*
* LensKit, an open-source toolkit for recommender systems.
* Copyright 2014-2017 LensKit contributors (see CONTRIBUTORS.md)
* Copyright 2010-2014 Regents of the University of Minnesota
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentati... | 696 |
1,056 | <reponame>timfel/netbeans
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.... | 1,165 |
465 | <reponame>netmebtc/NibbleClassic-Core-CLI_blid
// Copyright (c) 2018-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#pragma onc... | 518 |
468 | <gh_stars>100-1000
/*=============================================================================
GLIntercept - OpenGL intercept/debugging tool
Copyright (C) 2004 <NAME>
Licensed under the MIT license - See Docs\license.txt for details.
==========================================================================... | 3,704 |
1,303 | /*-------------------------------------------------------------------------
*
* gtm_ctl --- start/stops/restarts the GTM server/proxy
*
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
* Portions Copyright (c) 2010-2012 Postgres-XC Development Group
*
* $PostgreSQL$
*
*------------------... | 24,845 |
606 | from .core import ( # noqa
EPOCH,
ExceptionSource,
ExplodingObject,
add_security_data,
all_pairs_matching_predicate,
all_subindices,
assert_single_position,
assert_timestamp_equal,
check_allclose,
check_arrays,
chrange,
drain_zipline,
gen_calendars,
make_commodit... | 370 |
309 | /**
* The MIT License (MIT)
*
* Copyright © 2017-2020 <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, c... | 752 |
2,151 | // 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.
package org.chromium.base.library_loader;
/**
* The exception that is thrown when the intialization of a process was failed.
*/
public class ProcessIni... | 338 |
758 | <filename>fenzo-core/src/main/java/com/netflix/fenzo/SchedulingResult.java
/*
* Copyright 2015 Netflix, 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.or... | 2,098 |
384 | <filename>src/gromacs/applied_forces/awh/correlationgrid.h<gh_stars>100-1000
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 2015,2016,2017,2018,2019,2020,2021, by the GROMACS development team, led by
* <NAME>, <NAME>, <NAME>, and <NAME>,
* and including many others, as listed... | 2,040 |
1,350 | <filename>sdk/modelsrepository/azure-iot-modelsrepository/src/main/java/com/azure/iot/modelsrepository/implementation/ModelsRepositoryAPIImpl.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.iot.modelsrepository.implementation;
import com.azure.cor... | 897 |
3,308 | # Copyright (C) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# This work is made available under the Nvidia Source Code License-NC.
# To view a copy of this license, check out LICENSE.md
import json
import os
import time
import torch
import torchvision
import wandb
from torch.cuda.amp import GradScale... | 19,460 |
305 | <reponame>rarutyun/llvm
//===--- PropertyDeclarationCheck.cpp - clang-tidy-------------------------===//
//
// 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 LLVM-exception
//
//===---... | 1,810 |
765 | <reponame>hyu-iot/gem5
/*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for additional information regarding copyright ownershi... | 1,438 |
364 | /*
* 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... | 608 |
344 | <reponame>jsaynysa/Ksiazka
//===============================================================================
// @ IvEventHandler.h
//
// Class to handle and store event input
// ------------------------------------------------------------------------------
// Copyright (C) 2008-2015 by <NAME> and <NAME>.
// All rights... | 1,073 |
22,688 | <reponame>seeclong/apollo<filename>modules/perception/common/point_cloud_processing/common_test.cc<gh_stars>1000+
/******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"... | 6,788 |
5,169 | {
"name": "KTZCoreDataStack",
"version": "0.1.2",
"summary": "A starting point for a Core Data app w/ non-blocking disk saves and background context for performing work.",
"description": "This is a template for a Core Data stack which can be used in apps needing basic support for background writes, main thread ... | 261 |
345 | from django.utils.translation import ugettext_lazy as _
DISCOUNT_TYPE_ABSOLUTE = 0
DISCOUNT_TYPE_PERCENTAGE = 1
DISCOUNT_TYPE_CHOICES = (
(DISCOUNT_TYPE_ABSOLUTE, _(u"Absolute")),
(DISCOUNT_TYPE_PERCENTAGE, _(u"Percentage")),
)
| 104 |
660 | /*
* Copyright (c) 2017, Intel 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, including without limitation
* the rights to use, copy, modify, merge, publis... | 1,791 |
708 | <reponame>juwangvsu/3dmatch-toolbox<gh_stars>100-1000
/* Include file for the R3 triangle class */
/* Initialization functions */
int R3InitTriangleArray();
void R3StopTriangleArray();
/* Triangle class definition */
class R3TriangleArray : public R3Surface {
public:
// Constructor functions
... | 1,087 |
6,140 | """
step #4: submit result to kaggle
"""
def download_result(
result_file
):
import gcsfs
fs = gcsfs.GCSFileSystem()
fs.get(result_file, 'submission.csv')
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--result_file', type=str)
parser... | 227 |
5,250 | /* 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... | 2,081 |
301 | #pragma once
#include "stdafx.h"
BOOL n2e_IsSubclassedWindow(const HWND hwnd);
BOOL n2e_SubclassWindow(const HWND hwnd, const WNDPROC lpWndProc);
LRESULT n2e_CallOriginalWindowProc(const HWND hwnd, const UINT uMsg, const WPARAM wParam, const LPARAM lParam);
| 108 |
578 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | 2,180 |
310 | <reponame>dreeves/usesthis
{
"name": "Freedombone",
"description": "Self-hosted Internet service software.",
"url": "https://freedombone.net/"
}
| 57 |
1,056 | <gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* ... | 487 |
594 | <gh_stars>100-1000
unsigned char x = 50;
volatile short y = -5;
int main ()
{
x /= y;
if (x != (unsigned char) -10)
abort ();
exit (0);
}
| 66 |
32,544 | package com.baeldung.annotations;
import java.lang.annotation.Repeatable;
@Repeatable(Intervals.class)
@interface Interval {
int hour() default 1;
}
| 54 |
859 | from unittest import TestCase
import os
from pathlib import Path
from samcli.commands.pipeline.init.pipeline_templates_manifest import (
Provider,
PipelineTemplatesManifest,
PipelineTemplateMetadata,
AppPipelineTemplateManifestException,
)
from samcli.lib.utils import osutils
INVALID_YAML_MANIFEST = ""... | 1,393 |
674 | <filename>test_cookies.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for code in cookies.py.
"""
from __future__ import unicode_literals
import re
import sys
import logging
if sys.version_info < (3, 0, 0):
from urllib import quote, unquote
else:
from urllib.parse import quote, unquote
unichr = c... | 45,401 |
379 | package com.oim.core.common.component.remote;
/**
* @author: XiaHui
* @date: 2017年4月12日 下午1:33:56
*/
public interface EventDataHandler {
void handle(EventData eventData);
}
| 71 |
1,530 | package io.github.classgraph.issues.issue370.annotations;
/**
* ApiOperation.
*/
public @interface ApiOperation {
/**
* Value.
*
* @return the string
*/
String value();
/**
* Notes.
*
* @return the string
*/
String notes();
/**
* Extensions.
*
... | 188 |
1,029 | #include <jni.h>
#include <SDL_android.h>
#include "camera.h"
#include "input.h"
#include "gfx.h"
static JNIEnv* javaEnv = NULL;
static jclass cameraClass = NULL;
static jmethodID initCamera = NULL;
static jmethodID deinitCamera = NULL;
static int width;
static int height;
static uint8_t * cameraBuffer = NULL;
static... | 1,879 |
2,151 | <filename>chrome/browser/ui/views/constrained_window_views_browsertest.cc
// 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 <memory>
#include "base/macros.h"
#include "build/build_config.h"
... | 2,939 |
14,425 | <gh_stars>1000+
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
*... | 2,871 |
852 | <filename>EventFilter/ESDigiToRaw/src/ESDataFormatter.cc<gh_stars>100-1000
#include <iostream>
#include <sstream>
#include <iomanip>
#include "EventFilter/ESDigiToRaw/interface/ESDataFormatter.h"
using namespace std;
using namespace edm;
string ESDataFormatter::print(const Word64& word) const {
ostringstream str;... | 308 |
3,083 | <reponame>utumen/binnavi
// Copyright 2011-2016 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applic... | 306 |
5,169 | {
"name": "NDT7",
"version": "0.0.1-beta.4",
"license": "Apache License, Version 2.0",
"summary": "Measure the Internet, save the data, and make it universally accessible and useful.",
"homepage": "https://github.com/m-lab/ndt7-client-ios",
"authors": {
"<NAME>": "<EMAIL>"
},
"source": {
"git": ... | 269 |
570 | <reponame>alexston/Taroco<filename>taroco-common-starter/taroco-common-spring-boot-starter/src/main/java/cn/taroco/common/exception/SmsTooMuchException.java
package cn.taroco.common.exception;
/**
* 短信发送太频繁
*
* @author liuht
*/
public class SmsTooMuchException extends BusinessException {
private static final... | 237 |
3,263 | <gh_stars>1000+
package org.immutables.fixture.annotation;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.google.errorprone.annotations.Immutable;
import org.immutables.value.Value;
/**
* An abstract type which triggers the generation of an immutable type with hidden mutable state.
*
... | 404 |
3,227 |
namespace CGAL {
/*!
\ingroup PkgCombinatorialMapsClasses
The class `Combinatorial_map` represents a <I>d</I>D combinatorial map.
Darts and non void attributes are stored in memory using `Compact_container`, using `Alloc` as allocator.
\cgalModels `CombinatorialMap`
\tparam d the dimension of the map.
\tparam It... | 1,341 |
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... | 30,920 |
1,604 | <reponame>matheus-eyng/bc-java
package org.bouncycastle.oer.its;
import org.bouncycastle.asn1.ASN1EncodableVector;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1.DERSequence;
/**
* <pre>
* LinkageData :... | 699 |
53,007 | import typing
from fastapi import FastAPI
from fastapi.responses import JSONResponse
from fastapi.testclient import TestClient
from pydantic import BaseModel
app = FastAPI()
class JsonApiResponse(JSONResponse):
media_type = "application/vnd.api+json"
class Error(BaseModel):
status: str
title: str
cl... | 1,579 |
8,454 | <filename>UltimateRecyclerView/app/src/main/java/com/marshalchen/ultimaterecyclerview/demo/expandemo/SubCategory.java
package com.marshalchen.ultimaterecyclerview.demo.expandemo;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.marshalchen.ultimaterecyclerview... | 212 |
538 | from __future__ import print_function
import array
import argparse
import sys
import pprint
import subprocess
import time
from qtproxy import Q
import av
parser = argparse.ArgumentParser()
parser.add_argument('path')
args = parser.parse_args()
container = av.open(args.path)
stream = next(s for s in container.strea... | 799 |
72,551 | <reponame>lwhsu/swift<gh_stars>1000+
@protocol RPProto
- (nullable id)accessorInProto;
@end
@interface RPFoo <RPProto>
@property (readonly, nonnull) int *nonnullToNullable;
@property (readonly, nullable) int *nullableToNonnull;
@property (readonly, nonnull) id typeChangeMoreSpecific;
@property (readonly, nonnull) RPFo... | 256 |
2,206 | <reponame>steljord2/deeplearning4j<filename>deeplearning4j/deeplearning4j-modelimport/src/main/java/org/deeplearning4j/nn/modelimport/keras/config/KerasModelConfiguration.java<gh_stars>1000+
/*
* ******************************************************************************
* *
* *
* * This program and the acco... | 650 |
341 | package com.aventstack.extentreports.model;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@AllArgsConstructor
public class Media implements Serializable, BaseEntity {
private static final long serialVersionUID = 5428859443090457608L;
... | 129 |
852 | #ifndef FastTrackerRecHitFwd_H
#define FastTrackerRecHitFwd_H
class FastTrackerRecHit;
class FastSingleTrackerRecHit;
class FastMatchedTrackerRecHit;
class FastProjectedTrackerRecHit;
#endif
| 62 |
1,144 | // SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2000-2009
* <NAME>, ST Microelectronics, <EMAIL>
*/
#include <common.h>
#if (CONFIG_DDR_PLL2 || CONFIG_DDR_2HCLK)
const u32 mpmc_conf_vals[CONFIG_SPEAR_MPMCREGS] = {
#if (CONFIG_DDR_PLL2)
0x00000001,
0x00000000,
#elif (CONFIG_DDR_2HCLK)
0x02020201,
0x020... | 930 |
491 | /*
* Encog(tm) Core v3.4 - Java Version
* http://www.heatonresearch.com/encog/
* https://github.com/encog/encog-java-core
* Copyright 2008-2017 Heaton Research, 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... | 664 |
14,668 | // 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 Chromium source repository LICENSE file.
#include "infcover.h"
#include <cstddef>
#include <vector>
#include "compression_utils_portable.h"
#include "gtest.h"
#includ... | 12,970 |
2,184 | <reponame>mathco-wf/river
from collections import deque
from timeit import default_timer as timer
import numpy as np
from river import metrics
class _ClassificationReport:
""" "Classification report
Incrementally tracks classification performance and provide, at any moment, updated
performance metrics.... | 16,903 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.