max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
839 | <filename>rt/transports/websocket/src/test/java/org/apache/cxf/transport/websocket/ahc/AhcWebSocketConduitTest.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 copyr... | 1,276 |
3,353 | //
// ========================================================================
// Copyright (c) 1995-2021 Mort Bay Consulting Pty Ltd and others.
//
// This program and the accompanying materials are made available under the
// terms of the Eclipse Public License v. 2.0 which is available at
// https://www.eclipse.org/... | 2,537 |
56,632 | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#if !defined CV_CPU_OPTIMIZATION_DECLARATIONS_ONLY && \
!defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS /... | 283 |
6,989 | """
Shim to maintain backwards compatibility with old IPython.nbformat imports.
"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
import sys
from warnings import warn
from IPython.utils.shimmodule import ShimModule, ShimWarning
warn("The `IPython.nbformat` packa... | 173 |
2,023 | this is ajax.html
------------------------------------------------
<html>
<head>
<title>simple ajax json example</title>
<script language="JavaScript">
//json parser
//from json.org with small modification
var cur_str_chr;
function json_parse(text) {
var at = 0;
var ch = ' ';
fu... | 5,122 |
782 | // Copyright (c) 2018 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, publ... | 2,439 |
4,036 | <reponame>timoles/codeql<gh_stars>1000+
import java.util.Random;
public class Test {
public static void test() {
(new Random()).nextInt();
}
}
| 58 |
619 | <gh_stars>100-1000
from typing import List
from pyrep.objects.joint import Joint
from rlbench.backend.task import Task
from rlbench.backend.conditions import JointCondition
class CloseBox(Task):
def init_task(self) -> None:
box_joint = Joint('joint')
self.register_success_conditions([JointConditi... | 246 |
341 | # -*- coding: utf-8 -*-
# @Author: <NAME>
# @Date: 2018-10-30 19:14:37
# @Last Modified by: <NAME>
# @Last Modified time: 2018-11-22 15:12:36
import os
import cv2
import sys
import numpy as np
from PIL import Image, ImageDraw
data_dir = '/home/song/srpn/dataset/vid/ILSVRC2015_VID_train_0000/ILSVRC2015_train_0001001... | 466 |
1,337 | <gh_stars>1000+
/*
* Copyright (c) 2008-2019 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 564 |
376 | <filename>sample/src/main/java/com/greenfrvr/hashtagview/sample/SamplesAdapter.java
package com.greenfrvr.hashtagview.sample;
import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.ut... | 661 |
6,278 | from multiprocessing import cpu_count
from os.path import join
import sh
from pythonforandroid.util import current_directory, ensure_dir
from pythonforandroid.toolchain import shprint
from pythonforandroid.recipe import Recipe
class LibwebpRecipe(Recipe):
version = '1.1.0'
url = 'https://storage.googleapis.... | 829 |
1,686 | // Copyright (c) 2019 The Chromium Embedded Framework 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 CEF_LIBCEF_DLL_SHUTDOWN_CHECKER_H_
#define CEF_LIBCEF_DLL_SHUTDOWN_CHECKER_H_
#pragma once
namespace shutdown_checker {
/... | 199 |
370 | <reponame>luoyongheng/dtslam
#define ZLONG
#include <../Source/umfpack_report_triplet.c>
| 38 |
421 | <filename>2020/CVE-2020-8196/poc/pocsuite3/CVE-2020-8196.py
import sys
import string
import json
from urllib.parse import quote
from pocsuite3.api import Output, POCBase, POC_CATEGORY, register_poc, requests, logger, VUL_TYPE
from pocsuite3.lib.utils import random_str
requests.packages.urllib3.disable_warnings()
clas... | 2,235 |
496 | package com.tns.system.classes.loading.impl;
import com.tns.system.classes.caching.ClassCache;
import com.tns.system.classes.loading.ClassStorageService;
import com.tns.system.classes.loading.LookedUpClassNotFound;
import com.tns.system.classloaders.ClassLoadersCollection;
import org.junit.Before;
import org.junit.Te... | 1,569 |
2,151 | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SKSL_FLOATLITERAL
#define SKSL_FLOATLITERAL
#include "SkSLContext.h"
#include "SkSLExpression.h"
namespace SkSL {
/**
* A literal floating point number.
*/
struct... | 425 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-54jw-4xpp-q62p/GHSA-54jw-4xpp-q62p.json
{
"schema_version": "1.2.0",
"id": "GHSA-54jw-4xpp-q62p",
"modified": "2022-05-13T01:46:21Z",
"published": "2022-05-13T01:46:21Z",
"aliases": [
"CVE-2017-5948"
],
"details": "An issue was discovered on OnePlus One, X,... | 617 |
1,630 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
import torch.distributed as dist
from colossalai.global_variables import tensor_parallel_env as env
from colossalai.registry import DIST_GROUP_INITIALIZER
from ..parallel_mode import ParallelMode
from .process_group_initializer import ProcessGroupInitializer
@DIST_GRO... | 883 |
376 | <filename>lecture02/src/test/java/ru/atom/geometry/BarPointCollisionTest.java<gh_stars>100-1000
package ru.atom.geometry;
import org.junit.Ignore;
import org.junit.Test;
import static junit.framework.TestCase.assertTrue;
import static org.junit.Assert.assertFalse;
@Ignore
public class BarPointCollisionTest {
@Te... | 643 |
777 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_OMNIBOX_BROWSER_CLIPBOARD_URL_PROVIDER_H_
#define COMPONENTS_OMNIBOX_BROWSER_CLIPBOARD_URL_PROVIDER_H_
#include "base/macros.h"
#inclu... | 443 |
14,668 | <gh_stars>1000+
// 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 CHROMECAST_METRICS_METRICS_UTIL_H_
#define CHROMECAST_METRICS_METRICS_UTIL_H_
#include "net/base/ip_address.h"
namespace chromec... | 239 |
799 | <filename>pyowm/airpollutionapi30/coindex.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from pyowm.commons import exceptions
from pyowm.utils import formatting, timestamps
from pyowm.weatherapi25 import location
class COIndex:
"""
A class representing the Carbon monOxide Index observed in a certain locati... | 2,505 |
3,913 | package cn.iocoder.yudao.framework;
| 15 |
326 | package com.nilhcem.hostseditor.task;
import android.content.Context;
import android.os.AsyncTask;
import com.nilhcem.hostseditor.HostsEditorApplication;
import com.nilhcem.hostseditor.R;
import com.nilhcem.hostseditor.core.Host;
import com.nilhcem.hostseditor.core.HostsManager;
import com.nilhcem.hostseditor.event.L... | 691 |
575 | // 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/page/focus_controller.h"
#include <memory>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party... | 2,080 |
336 | <reponame>idrnyu/LA104
/*
* Terminal-BASIC is a lightweight BASIC-like language interpreter
*
* Copyright (C) 2016-2018 <NAME> <<EMAIL>>
* Copyright (C) 2019,2020 Terminal-BASIC team
* <https://bitbucket.org/%7Bf50d6fee-8627-4ce4-848d-829168eedae5%7D/>
*
* This program is free software: you can redistribute... | 2,649 |
388 | <filename>aws/kinesis/core/kinesis_record.h
/*
* Copyright 2019 Amazon.com, Inc. or 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... | 782 |
392 | <gh_stars>100-1000
package com.platform.service;
import com.platform.dao.ApiAdMapper;
import com.platform.entity.AdVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
@Service
public class ApiAdService {
@... | 400 |
6,717 | //******************************************************************************
//
// Copyright (c) 2016 Intel Corporation. All rights reserved.
// Copyright (c) Microsoft. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND... | 352 |
3,066 | <reponame>skofra0/crate<gh_stars>1000+
/*
* Licensed to Crate.io GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (th... | 2,521 |
4,054 | <reponame>Anlon-Burke/vespa
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.flags;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.DoubleNode;
import javax.annotation.concurrent.Immutable;
/**
... | 316 |
567 | import os
import sys
import numpy as np
import pandas
from time import time
from collections import defaultdict
from davis2017.evaluation import DAVISEvaluation
from davis2017 import utils
from davis2017.metrics import db_eval_boundary, db_eval_iou
davis_root = 'input_dir/ref'
methods_root = 'examples'
def test_ta... | 2,937 |
385 | /*
*
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license.
*
* Project Oxford: http://ProjectOxford.ai
*
* Project Oxford Mimicker Alarm Github:
* https://github.com/Microsoft/ProjectOxford-Apps-MimickerAlarm
*
* Copyright (c) Microsoft Corporation
* All rights reserved.
*
* MIT... | 3,800 |
322 | <filename>app/i18n/locales/cs/dashboard.json
{
"welcome": "Vítejte",
"newNote": "Nová poznámka",
"settings": "Nastavení",
"about": "o aplikaci"
} | 73 |
348 | <filename>docs/data/leg-t2/027/02703516.json
{"nom":"Saint-Aubin-le-Vertueux","circ":"3ème circonscription","dpt":"Eure","inscrits":668,"abs":344,"votants":324,"blancs":6,"nuls":17,"exp":301,"res":[{"nuance":"MDM","nom":"<NAME>","voix":217},{"nuance":"FN","nom":"<NAME>","voix":84}]} | 118 |
1,062 | //
// Generated by class-dump 3.5b1 (64 bit) (Debug version compiled Dec 3 2019 19:59:57).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <MailFW/MFEWSNetworkTaskOperation.h>
@class MFEWSMailboxItemsBatch;
@protocol MFEWSFetchMessageMetadataOperationDelegate;
@interface MFEWSFetchMessageMetadataOperation : M... | 387 |
14,668 | <reponame>zealoussnow/chromium
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_PUBLIC_BROWSER_CONTENT_INDEX_CONTEXT_H_
#define CONTENT_PUBLIC_BROWSER_CONTENT_INDEX_CONTEXT_H_
#include <... | 928 |
1,027 | /*
* 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 ... | 504 |
687 | // Copyright 2021 The XLS Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | 399 |
507 | /*
* Copyright 2019-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 1,488 |
19,046 | /*
* 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... | 408 |
590 | <reponame>lmj0591/mygui
/*
* This source file is part of MyGUI. For the latest info, see http://mygui.info/
* Distributed under the MIT License
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
*/
#ifndef MYGUI_LEVEL_LOG_FILTER_H_
#define MYGUI_LEVEL_LOG_FILTER_H_
#include "MyGUI... | 403 |
17,085 | <filename>python/paddle/fluid/tests/unittests/dist_mnist_gradient_merge_raw_optimizer.py
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the ... | 1,728 |
1,165 | """Module for running the data retrieval and preprocessing.
Scripts that performs all the steps to get the train and perform preprocessing.
"""
import logging
import argparse
import sys
import shutil
import os
#pylint: disable=no-name-in-module
from helpers import preprocess
from helpers import storage as storage_hel... | 914 |
319 | <reponame>Celebrate-future/openimaj<filename>demos/sandbox/src/main/java/org/openimaj/demos/sandbox/ml/linear/learner/stream/experiments/FinancialStreamLearningExperiment.java
/**
* Copyright (c) 2011, The University of Southampton and the individual contributors.
* All rights reserved.
*
* Redistribution and use i... | 2,723 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-4hqp-qgvw-892g",
"modified": "2022-05-07T00:01:05Z",
"published": "2022-04-27T00:00:20Z",
"aliases": [
"CVE-2021-26628"
],
"details": "Insufficient script validation of the admin page enables XSS, which causes unauthorized users to steal admin privileges. When ... | 452 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Villeparisis","circ":"7ème circonscription","dpt":"Seine-et-Marne","inscrits":14363,"abs":9014,"votants":5349,"blancs":84,"nuls":24,"exp":5241,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":1701},{"nuance":"FN","nom":"Mme <NAME>","voix":912},{"nuance":"FI","nom":"<NAME>... | 332 |
3,567 | <reponame>intensifier/ohm
{
"private": true,
"workspaces": [
"packages/cli",
"packages/ohm-js",
"examples/ecmascript",
"examples/es-module",
"examples/markdown",
"examples/operators",
"examples/simple-lisp",
"examples/typescript"
],
"scripts": {
"build": "yarn workspace ohm-j... | 363 |
3,897 | <reponame>mcheah-bose/mbed-os<filename>targets/TARGET_Cypress/TARGET_PSOC6/mtb-pdl-cat1/drivers/include/cy_usbfs_dev_drv_reg.h
/***************************************************************************//**
* \file cy_usbfs_dev_drv_reg.h
* \version 2.20.2
*
* Provides register access API implementation of the USBFS dr... | 18,682 |
6,119 | """This example shows how to define the gradient of your own functions.
This can be useful for speed, numerical stability, or in cases where
your code depends on external library calls."""
from __future__ import absolute_import
from __future__ import print_function
import autograd.numpy as np
import autograd.numpy.rand... | 750 |
5,169 | {
"name": "EasyIAPs",
"version": "0.1.2",
"platforms": {
"ios": "9.0"
},
"license": "MIT",
"summary": "Helping you to manage your In App Purchases easily.",
"homepage": "https://github.com/alvinvarghese/EasyIAPs",
"authors": {
"<NAME>": "<EMAIL>"
},
"source": {
"git": "https://github.com... | 306 |
1,220 | <filename>appshared/src/main/java/io/reark/rxgithubapp/shared/data/DataLayerBase.java
/*
* The MIT License
*
* Copyright (c) 2013-2016 reark project contributors
*
* https://github.com/reark/reark/graphs/contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this soft... | 803 |
609 | <gh_stars>100-1000
#ifndef ____IPV4_H
#define ____IPV4_H
//ipv4.h
#endif
| 63 |
345 | <reponame>xreminded/FakeGps3
package tiger.radio.loggerlibrary;
import android.support.v4.app.FragmentTransaction;
import android.util.Log;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.logging.FileHandler;
im... | 2,738 |
1,936 | #ifndef POSEGRAPH_EXAMPLE_VERTEX_H_
#define POSEGRAPH_EXAMPLE_VERTEX_H_
#include <unordered_set>
#include <maplab-common/pose_types.h>
#include <posegraph/vertex.h>
namespace pose_graph {
namespace example {
class Vertex : public pose_graph::Vertex {
public:
explicit Vertex(const VertexId& id);
virtual ~Vertex... | 378 |
430 | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 984 |
3,425 | from __future__ import absolute_import
import inspect
import types
import warnings
import weakref
from functools import partial
from logging import getLogger
from eventlet.event import Event
from nameko.exceptions import IncorrectSignature
_log = getLogger(__name__)
ENTRYPOINT_EXTENSIONS_ATTR = 'nameko_entrypoin... | 4,725 |
995 | //
// Copyright (c) 2016-2019 <NAME> (<EMAIL> at <EMAIL> dot <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_BEAST_... | 7,267 |
1,011 | <filename>pySPlisHSPlasH/examples/callbacks.py
import pysplishsplash as sph
def key_callback():
print("Hello World")
def time_step_callback():
print("step")
def main():
base = sph.Exec.SimulatorBase()
base.init()
gui = sph.GUI.Simulator_GUI_imgui(base)
base.setGui(gui)
gui.addKeyFunc('k', key_callback)
ba... | 170 |
711 | /*
* Copyright 2015 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 obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 2,099 |
335 | {
"word": "Buff",
"definitions": [
"Polish (something)",
"Give (leather) a velvety finish by removing the surface of the grain.",
"Make (an element in a role-playing or video game) more powerful."
],
"parts-of-speech": "Verb"
} | 108 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Provide",
"definitions": [
"Make available for use; supply.",
"Equip or supply someone with (something useful or necessary)",
"Present or yield (something useful)",
"Make adequate preparation for (a possible event)",
"Supply su... | 213 |
1,144 | <reponame>bingchunjin/1806_SDK
/*
* ADM5120 specific CPU feature overrides
*
* Copyright (C) 2007-2008 <NAME> <<EMAIL>>
*
* This file was derived from: include/asm-mips/cpu-features.h
* Copyright (C) 2003, 2004 <NAME>
* Copyright (C) 2004 <NAME>
*
* This program is free software; you can redistribute it an... | 866 |
1,987 | from social_core.backends.username import UsernameAuth
| 13 |
1,091 | /*
* Copyright 2020-present Open Networking Foundation
*
* 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,390 |
317 | #include "smack.h"
#include <assert.h>
#include <stdlib.h>
// @expect error
void foo(int *x) { *x = *x + 10; }
int main(void) {
int *y = malloc(sizeof(int));
int tmp = __VERIFIER_nondet_int();
*y = 10;
// using a dummy unreachable call, force DSA to analyze foo so
// that __SMACK_code works properly
as... | 173 |
852 | <reponame>ckamtsikis/cmssw
import FWCore.ParameterSet.Config as cms
run2_miniAOD_pp_on_AA_103X = cms.Modifier()
| 52 |
965 | <reponame>bobbrow/cpp-docs
CString theString(_T("This is a test"));
int sizeOfString = (theString.GetLength() + 1);
LPTSTR lpsz = new TCHAR[sizeOfString];
_tcscpy_s(lpsz, sizeOfString, theString);
//... modify lpsz as much as you want | 102 |
303 | /* Abstract Machine for the Pawn compiler, debugger support
*
* This file contains extra definitions that are convenient for debugger
* support.
*
* Copyright (c) ITB CompuPhase, 2005-2011
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance ... | 2,624 |
580 | // https://leetcode.com/problems/running-sum-of-1d-array/submissions/
class Solution {
public:
vector<int> runningSum(vector<int>& nums) {
vector<int>s;
if(nums.size() == 0)
return s;
s.push_back(nums[0]);
int sum;
// Add first element;
... | 340 |
1,178 | <reponame>leozz37/makani<gh_stars>1000+
/* Hash Table Helper for Trees
Copyright (C) 2012-2014 Free Software Foundation, Inc.
Contributed by <NAME> <<EMAIL>>
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by... | 539 |
2,151 | <filename>chrome/browser/media/router/mojo/media_router_mojo_metrics.cc
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/media/router/mojo/media_router_mojo_metrics.h"
#include ... | 2,603 |
450 | //=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 <NAME> and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS sourc... | 2,868 |
552 | <reponame>WinsomLow/CPP-3D-Game-Tutorial-Series
#include "Resource.h"
Resource::Resource(const wchar_t* full_path): m_full_path(full_path)
{
}
Resource::~Resource()
{
}
| 73 |
435 | <filename>warehouse/query-core/src/main/java/datawave/query/tld/TLDTermFrequencyAggregator.java<gh_stars>100-1000
package datawave.query.tld;
import datawave.query.jexl.functions.TermFrequencyAggregator;
import datawave.query.predicate.EventDataQueryFilter;
import org.apache.accumulo.core.data.ByteSequence;
import ja... | 519 |
424 | import torch.nn as nn
PADDING_LAYERS = {
'zero': nn.ZeroPad2d,
'reflect': nn.ReflectionPad2d,
'replicate': nn.ReplicationPad2d
}
def build_padding_layer(cfg, *args, **kwargs):
"""Build padding layer.
Args:
cfg (None or dict): The padding layer config, which should contain:
- ... | 404 |
700 | #include <CommonCrypto/CommonDigestSPI.h>
#define kNone "none"
extern const int kSHA256NullTerminatedBuffLen;
#define MD5File(f, b) Digest_File(kCCDigestMD5, f, b)
#define SHA1_File(f, b) Digest_File(kCCDigestSHA1, f, b)
#define RIPEMD160_File(f, b) Digest_File(kCCDigestRMD160, f, b)
#define SHA256_File(... | 231 |
44,968 | {
"name": "test_run_custom_script",
"version": "1.0.0",
"license": "UNLICENSED",
"scripts": {
"custom-script": "node echo.js"
}
}
| 66 |
1,396 | <reponame>drunderscore/jdbi
/*
* 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 writin... | 572 |
375 | package io.lumify.core.ingest.graphProperty;
import com.google.inject.Inject;
import io.lumify.core.bootstrap.InjectHelper;
import io.lumify.core.config.Configuration;
import io.lumify.core.exception.LumifyException;
import io.lumify.core.ingest.WorkerSpout;
import io.lumify.core.model.properties.LumifyProperties;
imp... | 5,833 |
387 | <reponame>Jaikishan-Saroj-786/jpf-core<gh_stars>100-1000
/*
* Copyright (C) 2014, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The Java Pathfinder core (jpf-core) platform is licensed under the
* Apache License, Ve... | 686 |
30,023 | <reponame>liangleslie/core
"""Support for Vulcan Calendar platform."""
from __future__ import annotations
from datetime import date, datetime, timedelta
import logging
from aiohttp import ClientConnectorError
from vulcan import UnauthorizedCertificateException
from homeassistant.components.calendar import (
ENTI... | 2,568 |
707 | <filename>wpiutil/src/main/native/cpp/llvm/SmallVector.cpp
//===- llvm/ADT/SmallVector.cpp - 'Normally small' vectors ----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
/... | 532 |
743 | <reponame>althink/hermes<filename>hermes-api/src/main/java/pl/allegro/tech/hermes/api/endpoints/ModeEndpoint.java<gh_stars>100-1000
package pl.allegro.tech.hermes.api.endpoints;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import ... | 253 |
2,151 | <filename>third_party_toolchains/gcc_arm_none_eabi/arm-none-eabi/include/c++/4.9.3/parallel/merge.h
// -*- C++ -*-
// Copyright (C) 2007-2014 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the terms
//... | 3,736 |
18,012 | /*
* 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 ... | 1,846 |
6,224 | <gh_stars>1000+
/*
* Copyright (c) 2020 Intel Corporation
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_INTC_INTEL_VTD_H_
#define ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_INTC_INTEL_VTD_H_
#define VTD_INT_SHV BIT(3)
#define VTD_INT_FORMAT BIT(4)
/* We don't care about int_idx[15]... | 696 |
2,989 | package com.linkedin.databus.client.request;
/*
*
* Copyright 2013 LinkedIn Corp. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/lice... | 18,380 |
1,473 | /*
* Autopsy Forensic Browser
*
* Copyright 2011-2021 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
*
* http... | 878 |
543 | package com.adobe.epubcheck.ctc;
import com.adobe.epubcheck.api.Report;
import com.adobe.epubcheck.ctc.epubpackage.EpubPackage;
import com.adobe.epubcheck.opf.DocumentValidator;
/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* i... | 1,143 |
4,920 | <gh_stars>1000+
# Copyright 2020 The StackStorm Authors.
# Copyright 2019 Extreme Networks, 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,006 |
343 | {
"Author": "by <NAME> - Apr 16, 2015 8:02 pm UTC",
"Direction": null,
"Excerpt": "Two-year-old bug exposes thousands of servers to crippling attack.",
"Image": "http:\/\/cdn.arstechnica.net\/wp-content\/uploads\/2015\/04\/server-crash-640x426.jpg",
"Title": "Just-released Minecraft exploit makes it... | 137 |
7,746 | <reponame>jar-ben/z3
/*++
Copyright (c) 2012 Microsoft Corporation
Module Name:
subpaving_mpf.cpp
Abstract:
Subpaving for non-linear arithmetic using multi-precision floats.
Author:
<NAME> (leonardo) 2012-07-31.
Revision History:
--*/
#include "math/subpaving/subpaving_mpf.h"
#include "math/subpavin... | 159 |
1,273 | """
Constants that must remain in sync with the companion StreamingProcessController Java
code in GATK. See StreamingToolConstants.java.
"""
"""
Command acknowledgement messages used to signal positive acknowledgement ('ack',
negative acknowledgement ('nck'), and negative acknowledgement with an accompanying
message ... | 163 |
2,144 | /**
* 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... | 600 |
450 | <reponame>3vilWind/frida-gum
/*
* Copyright (C) 2013-2018 <NAME> <<EMAIL>>
* Copyright (C) 2021 <NAME> <<EMAIL>>
*
* Licence: wxWindows Library Licence, Version 3.1
*/
#include "gumarmbacktracer.h"
#include "guminterceptor.h"
#include "gummemorymap.h"
struct _GumArmBacktracer
{
GObject parent;
GumMemoryMap... | 2,439 |
1,444 | package org.wiztools.restclient.ui.history;
import java.net.URL;
import org.junit.*;
import static org.junit.Assert.*;
import org.wiztools.restclient.bean.RequestBean;
/**
*
* @author subwiz
*/
public class HistoryManagerImplTest {
public HistoryManagerImplTest() {
}
@BeforeClass
public stati... | 1,294 |
3,056 | <reponame>siemenstutorials/stairspeedtest-reborn<gh_stars>1000+
#ifndef GEOIP_H_INCLUDED
#define GEOIP_H_INCLUDED
#include <string>
struct geoIPInfo
{
std::string ip;
std::string country_code;
std::string country;
std::string region_code;
std::string region;
std::string city;
std::string p... | 236 |
5,964 | <reponame>wenfeifei/miniblink49
// Copyright 2015 the V8 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 "src/runtime/runtime-utils.h"
#include "src/arguments.h"
#include "src/objects-inl.h"
namespace v8 {
namespac... | 899 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.