max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
3,352 | /*
+----------------------------------------------------------------------+
| Yet Another Framework |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundl... | 1,744 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000
{"nom":"Carville-la-Folletière","dpt":"Seine-Maritime","inscrits":309,"abs":70,"votants":239,"blancs":13,"nuls":9,"exp":217,"res":[{"panneau":"2","voix":110},{"panneau":"1","voix":107}]} | 104 |
5,169 | {
"name": "CriandoPOD",
"version": "0.0.2",
"summary": "Criando o primeiro pod e aprendendo",
"homepage": "https://github.com/adautooli/CreatePOD.git",
"license": {
"type": "MIT",
"file": "LICENSE.md"
},
"authors": {
"<NAME>": "<EMAIL>"
},
"platforms": {
"ios": "14.5"
},
"source": ... | 233 |
628 | // SPDX-License-Identifier: BSD-3-Clause
// Copyright Contributors to the OpenColorIO Project.
package org.OpenColorIO;
import org.OpenColorIO.*;
public class FileTransform extends Transform
{
public FileTransform() { super(); }
protected FileTransform(long impl) { super(impl); }
public native FileTransfo... | 225 |
32,544 | <gh_stars>1000+
package com.baeldung.soap.ws.server;
import java.util.HashMap;
import java.util.Map;
public class CountryRepository {
private static final Map<String, Country> countries = new HashMap<>();
{
initData();
}
private final static void initData() {
Country usa = new Count... | 470 |
349 | <reponame>duca/pal
#include "dev_epiphany.h"
static inline struct epiphany_dev *to_epiphany_dev(struct dev *dev)
{
return container_of(dev, struct epiphany_dev, dev);
}
static int epiphany_team_coords_to_dev_coords(struct team *team,
const p_coords_t *team_coords,
... | 3,202 |
679 | <gh_stars>100-1000
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF license... | 3,085 |
9,953 | <reponame>avrumnoor/NewsSummarizer
# cython: language_level=3
from __future__ import absolute_import
import difflib
from lxml import etree
from lxml.html import fragment_fromstring
import re
__all__ = ['html_annotate', 'htmldiff']
try:
from html import escape as html_escape
except ImportError:
from cgi impo... | 12,966 |
1,144 | /******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
... | 8,274 |
852 | // -*- C++ -*-
//
// Package: Core
// Class : FWHFView
//
// Implementation:
// [Notes on implementation]
//
// Original Author:
// Created: Mon May 31 13:42:13 CEST 2010
//
// system include files
// user include files
#include "TEveCalo.h"
#include "TEveCaloData.h"
#include "TEveTrans.h"
#inc... | 516 |
22,779 | <reponame>SubOptimal/dbeaver<filename>plugins/org.jkiss.dbeaver.ext.db2/src/org/jkiss/dbeaver/ext/db2/model/cache/DB2TriggerDepCache.java
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2013-2015 <NAME> (<EMAIL>)
* Copyright (C) 2010-2021 DBeaver Corp and others
*
* Licensed under the Apache License... | 874 |
32,544 | <filename>spring-mvc-java/src/main/java/com/baeldung/annotations/Driver.java
package com.baeldung.annotations;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@Component
public class Driver {
... | 284 |
1,018 | <reponame>apoorvanand/glowroot
/*
* Copyright 2015-2019 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
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 2,616 |
2,333 | //
// WJYAlertInputTextView.h
// MobileProject 带输入效果的自定义视图,用于WJYAlertView展现,因项目中引入IQKeyboardManager,所以就没再加键盘盖住做处理了
//
// Created by wujunyang on 16/8/4.
// Copyright © 2016年 wujunyang. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "UIPlaceHolderTextView.h"
typedef void (^alertLeftBlock)(NSString *text)... | 377 |
488 | <reponame>ouankou/rose
#include <featureTests.h>
#ifdef ROSE_ENABLE_SOURCE_ANALYSIS
#ifndef BDWY_CPATTERN_H
#define BDWY_CPATTERN_H
class exprPatternNode;
class stmtPatternNode;
class typePatternNode;
// ----------------------------------------------------------------------
// Expression pattern node
// -----------... | 1,814 |
402 | <reponame>dnarqq/WildHack<gh_stars>100-1000
'''
make_active_learning_dataset.py
Creates crops from detections in camera trap images for use in active learning for classification.
Largely drawn from CameraTraps/data_management/databases/classification/make_classification_dataset.py.
'''
import argparse, cv2, glob, js... | 4,671 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-26m8-fjr7-qf85",
"modified": "2022-05-02T00:00:30Z",
"published": "2022-05-02T00:00:30Z",
"aliases": [
"CVE-2008-3465"
],
"details": "Heap-based buffer overflow in an API in GDI in Microsoft Windows 2000 SP4, XP SP2 and SP3, Server 2003 SP1 a... | 664 |
5,597 | package mock.web;
import com.intuit.karate.core.MockServer;
import org.junit.Test;
/**
*
* @author pthomas3
*/
public class CatsMockStarter {
@Test
public void beforeClass() {
MockServer server = MockServer.feature("classpath:mock/web/cats-mock.feature").http(8080).build();
server.waitSync... | 132 |
897 |
/* This is a Java program to find the longest palindromicsubstring from a word using dynamic programming approach
Pallindromic substring means a part of a word which reads the same backward as forward.
There may be more than one pallindromic substring in a word but this program gives the longest pallindromic
substri... | 1,212 |
358 | <filename>mysql_slave_session.cc
// Copyright 2018 The Ripple 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 re... | 10,925 |
1,120 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// This library
#include <k4ainternal/global.h>
// System dependencies
#ifdef _WIN32
#include <windows.h>
#else
#include <pthread.h>
#endif
#include <assert.h>
#ifdef _WIN32
// TODO: static_assert be available with C11.... | 565 |
368 | <filename>villager/src/main/java/io/charlescd/villager/interactor/registry/impl/ListDockerRegistryInteractorImpl.java
/*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.... | 651 |
929 | from django.contrib import admin
from kitsune.products.models import Platform, Product, Topic, Version
class ProductAdmin(admin.ModelAdmin):
list_display = ("title", "slug", "display_order", "visible", "codename")
list_display_links = ("title", "slug")
list_editable = ("display_order", "visible")
rea... | 515 |
303 | package org.codelibs.elasticsearch.taste.eval;
import org.codelibs.elasticsearch.taste.model.DataModel;
import org.codelibs.elasticsearch.taste.writer.ResultWriter;
public interface Evaluator {
/**
* <p>
* Evaluates the quality of a {@link org.codelibs.elasticsearch.taste.recommender.Recommender}'s reco... | 857 |
1,085 | <filename>lib/galaxy/tool_shed/galaxy_install/tool_dependencies/recipe/recipe_manager.py
import logging
from galaxy.tool_shed.galaxy_install.tool_dependencies.recipe import step_handler
from galaxy.tool_shed.galaxy_install.tool_dependencies.recipe import tag_handler
log = logging.getLogger(__name__)
class StepManag... | 3,745 |
419 | from sklearn import datasets, decomposition
import pylab as pl
iris = datasets.load_iris()
pca = decomposition.PCA(n_components=2)
iris_2D = pca.fit(iris.data).transform(iris.data)
pl.scatter(iris_2D[:, 0], iris_2D[:, 1], c=iris.target)
pl.show()
| 100 |
1,350 | <reponame>Shashi-rk/azure-sdk-for-java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.logic.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging... | 756 |
2,816 | <gh_stars>1000+
//===----------------------------------------------------------------------===//
// DuckDB
//
// duckdb/execution/operator/scan/physical_chunk_scan.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "duckdb/common/ty... | 353 |
5,169 | <filename>Specs/9/8/a/ETLane/0.1.39/ETLane.podspec.json
{
"name": "ETLane",
"version": "0.1.39",
"summary": "A short description of ETLane.",
"description": "TODO: Add long description of the pod here.",
"homepage": "https://github.com/teanet/ETLane",
"license": {
"type": "MIT",
"file": "LICENSE"
... | 283 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-26gw-4gmp-qgf3/GHSA-26gw-4gmp-qgf3.json
{
"schema_version": "1.2.0",
"id": "GHSA-26gw-4gmp-qgf3",
"modified": "2022-05-13T01:47:01Z",
"published": "2022-05-13T01:47:01Z",
"aliases": [
"CVE-2017-7563"
],
"details": "In ARM Trusted Firmware 1.3, RO memory is ... | 514 |
534 | package mekanism.tools.common;
import javax.annotation.Nullable;
import mekanism.common.tag.BaseTagProvider;
import mekanism.tools.common.registries.ToolsItems;
import net.minecraft.data.DataGenerator;
import net.minecraft.tags.ItemTags;
import net.minecraftforge.common.data.ExistingFileHelper;
public class ToolsTagP... | 562 |
3,475 | <gh_stars>1000+
// Copyright 2018 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 ... | 1,035 |
1,443 | <reponame>cssence/mit-license
{
"copyright": "Gabrijel Å koro",
"url": "http://gabrijelskoro.com",
"email": "<EMAIL>",
"gravatar": true
}
| 69 |
365 | <gh_stars>100-1000
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by RLogin.rc
//
#define IDD_ABOUTBOX 100
#define IDD_ALGOPARADLG 101
#define IDD_ANYPASTDIG 102
#define IDD_AUTORENDLG 103
#define IDD_CERTKEYDLG ... | 34,656 |
372 | <reponame>socieboy/jetson-utils<filename>threads/Process.cpp
/*
* Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
*
* 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 with... | 742 |
335 | {
"word": "Heartbreaker",
"definitions": [
"A person who is very attractive but who is irresponsible in emotional relationships.",
"A story or event which causes overwhelming distress."
],
"parts-of-speech": "Noun"
} | 84 |
2,504 | <filename>Samples/HolographicVoiceInput/cpp/Common/PrintWstringToDebugConsole.h
#pragma once
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY... | 213 |
1,909 | /*
* The MIT License
*
* Copyright 2015 Coinmate.
*
* 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... | 790 |
418 | {
"name": "webhook-handler",
"version": "0.9.0",
"description": "lagoon handler for webhooks",
"author": "amazee.io <<EMAIL>> (http://www.amazee.io)",
"main": "dist/index.js",
"scripts": {
"test": "jest",
"test:watch": "jest --watch",
"build": "tsc --build",
"start": "node dist/index",
"... | 534 |
3,200 | <gh_stars>1000+
/**
* Copyright 2020 Huawei Technologies Co., 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | 2,160 |
1,694 | <reponame>CrackerCat/iWeChat
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import <MMCommon/MemoryMappedKV.h>
@interface MemoryMappedKV (IDKEY)
+ (void)reportMMapFail;
+ (void)reportTru... | 154 |
304 | <reponame>lcmrvk/analysis-model<gh_stars>100-1000
[
{
"line_number": 3,
"line": "WORKDIR spsp/",
"code": "DL3000",
"description": "Use absolute WORKDIR.",
"message": "",
"severity": "Error",
"file": "testing/Dockerfile.testing"
},
{
"line_number": 5,
"line": "RUN sudo apt-get u... | 344 |
1,085 | <gh_stars>1000+
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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... | 377 |
1,353 | /*
* Copyright (c) 2009, <NAME>
* 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 list of condition... | 8,046 |
638 | <reponame>srosengren/multipledispatch
from multipledispatch.variadic import isvariadic, Variadic
class A(object): pass
class B(A): pass
class C(object): pass
def test_is_variadic():
assert isvariadic(Variadic[A])
assert not isvariadic(A)
def test_equals_simple():
type_a = Variadic[A]
type_b = Vari... | 312 |
2,059 | /*******************************************************************
* File automatically generated by rebuild_wrappers.py (v2.0.0.10) *
*******************************************************************/
#ifndef __wrappedlcms2TYPES_H_
#define __wrappedlcms2TYPES_H_
#ifndef LIBNAME
#error You should only #include t... | 180 |
777 | <filename>content/renderer/media/video_track_adapter.cc<gh_stars>100-1000
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/renderer/media/video_track_adapter.h"
#include <algorithm>
#i... | 7,749 |
5,169 | {
"name": "LYConfigKit",
"version": "1.2.15",
"summary": "Configuration toolkit.",
"description": "Configuration toolkit.\nSystem style.\nLanguage setter.\nLibs configuration file reader.\nTarget version (min): 7.0.",
"homepage": "https://github.com/blodely/ConfigKit",
"license": {
"type": "MIT",
"f... | 408 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-m93m-qfxm-hh2f/GHSA-m93m-qfxm-hh2f.json
{
"schema_version": "1.2.0",
"id": "GHSA-m93m-qfxm-hh2f",
"modified": "2022-05-02T00:05:00Z",
"published": "2022-05-02T00:05:00Z",
"aliases": [
"CVE-2008-3910"
],
"details": "dns2tcp before 0.4.1 does not properly han... | 569 |
14,668 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_PERMISSIONS_BLUETOOTH_SCANNING_PROMPT_CONTROLLER_H_
#define COMPONENTS_PERMISSIONS_BLUETOOTH_SCANNING_PROMPT_CONTROLLER_H_
#include <s... | 960 |
3,040 | package xyz.zinglizingli.books.web;
import com.github.pagehelper.PageInfo;
import lombok.RequiredArgsConstructor;
import org.apache.commons.text.StringEscapeUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springfra... | 7,978 |
530 | # Copyright (c) 2013, <NAME> <<EMAIL>>. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions a... | 1,324 |
10,225 | package org.acme;
import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import org.eclipse.microprofile.rest.client.inject.RestClient;
@Path("/frontend")
public class FrontendService {
@Inject
@RestClient
DownstreamServiceClient client;
@GET
public String getHeaders() {
... | 144 |
1,781 | package com.marshalchen.common.uimodule.signaturepad.utils;
public class Bezier {
public TimedPoint startPoint;
public TimedPoint control1;
public TimedPoint control2;
public TimedPoint endPoint;
public Bezier(TimedPoint startPoint, TimedPoint control1,
TimedPoint control2, TimedPoint endPoint) {
... | 628 |
448 | <reponame>sebpop/php-src
/*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) The PHP Group ... | 3,951 |
1,652 | <reponame>z131031231/x-pipe
package com.ctrip.xpipe.redis.console.notifier;
import com.ctrip.xpipe.spring.AbstractProfile;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* @author lishanglin
* date 2021/1/18
*/
@Component
@Profile... | 210 |
8,772 | <filename>ci/checks/CheckMissingPuppeteerConfig.java
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.concurrent.atomic.AtomicInteger;
/**
* This is {@link CheckMissingPuppeteerConfig}.
*
* @author <NAME>
* @since 6... | 865 |
1,729 | from transformers.data.processors.squad import SquadV1Processor, SquadV2Processor
from transformers import squad_convert_examples_to_features
import urllib.request
import os
def load_and_cache_examples(data_dir: str, tokenizer, task, max_seq_length, doc_stride, max_query_length, evaluate=False):
if (task == "SQuAD... | 903 |
322 | import pandas as pd
import numpy as np
from multiprocessing import Pool
import multiprocessing
from contextlib import closing
from chefboost.commons import functions, evaluate
from chefboost.training import Training
from chefboost import Chefboost as cb
from tqdm import tqdm
import imp
import os
def apply(... | 1,064 |
1,405 | <reponame>jarekankowski/pegasus_spyware
package android.support.v4.content.res;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
class ResourcesCompatIcsMr1 {
ResourcesCompatIcsMr1() {
}
public static Drawable getDrawableForDensity(Resources res, int id, int density) throw... | 142 |
801 | import numpy as np
from sklearn.preprocessing import OneHotEncoder
from sklearn.model_selection import train_test_split
from sklearn import metrics, datasets
from neupy.layers import *
from neupy import algorithms
def load_data():
X, y = datasets.fetch_openml('mnist_784', version=1, return_X_y=True)
X = X.re... | 969 |
14,668 | #!/usr/bin/env python
#
# Copyright 2013 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.
from __future__ import print_function
import base64
import os
import sys
import re
from optparse import OptionParser
"""Extracts t... | 2,018 |
3,227 | // Copyright (c) 2013 <NAME> (France), All rights reserved.
// Copyright (c) 2013 GeometryFactory
//
// This file is part of CGAL (www.cgal.org)
//
// $URL$
// $Id$
// SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial
//
// Author(s) : <NAME> <NAME>
#ifndef CGAL_DEFORMATION_EIGEN_POLAR_CLOSEST_... | 1,052 |
398 | package com.ruiyun.example;
import com.ruiyun.jvppeteer.core.Puppeteer;
import com.ruiyun.jvppeteer.core.browser.Browser;
import com.ruiyun.jvppeteer.core.page.Page;
import com.ruiyun.jvppeteer.options.LaunchOptions;
import com.ruiyun.jvppeteer.options.LaunchOptionsBuilder;
import java.util.ArrayList;
public class P... | 403 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-xcq5-54mm-2r5w",
"modified": "2022-04-20T00:01:07Z",
"published": "2022-04-12T00:00:27Z",
"aliases": [
"CVE-2022-25796"
],
"details": "A Double Free vulnerability allows remote malicious actors to execute arbitrary code on DWF file in Autodesk Navisworks 2022 w... | 444 |
4,036 | <reponame>vadi2/codeql<gh_stars>1000+
#Multiple declarations
def mult(a):
x = 1
y = a
x = 2
#Need to use x, otherwise it is ignored
#(The UnusedLocalVariable query will pick it up)
return x
def unique():
pass
def mult(x,y):
pass
#OK for multiple definition
import M
M = none
def _do... | 1,042 |
480 | <gh_stars>100-1000
/* Copyright (c) [2014 Baidu]. 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 ... | 1,867 |
1,550 | # Leo colorizer control file for csharp mode.
# This file is in the public domain.
# Properties for csharp mode.
properties = {
"commentEnd": "*/",
"commentStart": "/*",
"doubleBracketIndent": "false",
"indentCloseBrackets": "}",
"indentNextLine": "\\s*(((if|while)\\s*\\(|else\\s*|else\\s+... | 7,613 |
1,056 | /*
* 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 ... | 2,204 |
394 | #ifndef DECODINGFAILEXCEPTION_H
#define DECODINGFAILEXCEPTION_H
#include <QException>
class DecodingFailException : public QException
{
};
#endif // DECODINGFAILEXCEPTION_H
| 80 |
2,583 | <reponame>onelsonic/armory<filename>blender/arm/logicnode/object/LN_get_object_mesh.py<gh_stars>1000+
from arm.logicnode.arm_nodes import *
class GetMeshNode(ArmLogicTreeNode):
"""Returns the mesh of the given object."""
bl_idname = 'LNGetMeshNode'
bl_label = 'Get Object Mesh'
arm_section = 'props'
... | 191 |
2,151 | <gh_stars>1000+
// 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_UI_OVERLAYS_TEST_HELPERS_TEST_OVERLAY_PARENT_COORDINATOR_H_
#define IOS_CHROME_BROWSER_UI_OVERLAYS_TEST_HELPERS... | 295 |
1,007 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
* You may obtain a copy of the License at
*
* http://www.apache.... | 1,150 |
471 | <filename>corehq/apps/domain/migrations/0006_fix_domain_es_docs.py<gh_stars>100-1000
# Generated by Django 2.2.13 on 2020-09-01 11:32
from django.db import migrations
from corehq.apps.es.domains import DomainES
from corehq.elastic import send_to_elasticsearch
from corehq.util.django_migrations import skip_on_fresh_in... | 364 |
369 | /*
* Copyright © 2014-2017 <NAME>, 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... | 1,177 |
399 | from openrec.tf1.utils.dataset import Dataset
| 17 |
1,936 | #ifndef LOOP_CLOSURE_PLUGIN_LOOP_CLOSURE_PLUGIN_H_
#define LOOP_CLOSURE_PLUGIN_LOOP_CLOSURE_PLUGIN_H_
#include <string>
#include <console-common/console-plugin-base-with-plotter.h>
namespace common {
class Console;
} // namespace common
namespace visualization {
class ViwlsGraphRvizPlotter;
} // namespace visuali... | 328 |
879 | package org.zstack.sdk;
public class GetOssBucketFileFromRemoteResult {
public java.util.List files;
public void setFiles(java.util.List files) {
this.files = files;
}
public java.util.List getFiles() {
return this.files;
}
}
| 108 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-w49p-prj8-6qfv",
"modified": "2022-05-01T06:37:23Z",
"published": "2022-05-01T06:37:23Z",
"aliases": [
"CVE-2006-0094"
],
"details": "PHP remote file include vulnerability in forum.php in oaBoard 1.0 allows remote attackers to execute arbitrary PHP code via a U... | 423 |
724 | from .metrics import Metrics
from vega.common.class_factory import ClassFactory
ClassFactory.lazy_register("vega.metrics.pytorch", {
"lane_metric": ["trainer.metric:LaneMetric"],
"regression": ["trainer.metric:MSE", "trainer.metric:mse"],
"detection_metric": ["trainer.metric:CocoMetric", "trainer.metric:co... | 353 |
14,668 | // 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 ASH_SHELF_LAUNCHER_NUDGE_CONTROLLER_H_
#define ASH_SHELF_LAUNCHER_NUDGE_CONTROLLER_H_
#include <memory>
#include "ash/ash_export.h"
#include "as... | 1,439 |
1,358 | <gh_stars>1000+
#-------------------------------------------------------------------------------
# Tests the functionality of get_section_index
#
# <NAME> (<EMAIL>)
# This code is in the public domain
#-------------------------------------------------------------------------------
import unittest
import os
from elftoo... | 925 |
480 | <reponame>weicao/galaxysql
/*
* Copyright [2013-2021], 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
... | 714 |
1,293 | <filename>manifold-core-parent/manifold/src/main/java/manifold/api/type/ResourceFileTypeManifold.java<gh_stars>1000+
/*
* Copyright (c) 2018 - Manifold Systems 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... | 6,737 |
887 | /* Copyright (c) 2020 UATC, 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, software
d... | 310 |
302 | #ifndef PLAINTEXTEDIT_H
#define PLAINTEXTEDIT_H
#include <QPlainTextEdit>
class PlainTextEdit : public QPlainTextEdit {
public:
PlainTextEdit(QWidget *parent = 0);
bool event(QEvent *event);
};
#endif // PLAINTEXTEDIT_H
| 87 |
7,482 | /*
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _HARDWARE_STRUCTS_XOSC_H
#define _HARDWARE_STRUCTS_XOSC_H
#include "hardware/address_mapped.h"
#include "hardware/platform_defs.h"
#include "hardware/regs/xosc.h"
/// \tag::xosc_hw[]
typedef struct {
io_r... | 253 |
348 | package com.reoky.crackme.challengefive.fragments;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import com.reoky.crackme.challengefive.R;
import com.reoky.crackme.challengefi... | 355 |
310 | <filename>gear/hardware/e/eph-100.json
{
"name": "EPH-100",
"description": "In-ear headphones.",
"url": "https://usa.yamaha.com/products/audio-visual/headphones/eph-100_silver_w/"
} | 74 |
349 | <filename>app/src/main/java/com/txusballesteros/testing/view/DashboardListAdapter.java
/*
* Copyright <NAME> 2016 (@txusballesteros)
*
* This file is part of some open source application.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
... | 1,010 |
528 | <filename>tests/src/execPolicy/testCuda.c
#include "zfp.h"
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include <stdlib.h>
#include <string.h>
struct setupVars {
zfp_stream* stream;
zfp_field* field;
bitstream* bs;
void* buffer;
size_t streamSize;
};
static int
setup(vo... | 913 |
2,338 | //===- LoopExtractor.h - Extract each loop into a new function ------------===//
//
// 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
//
//===---------------------------... | 396 |
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.deploymentmanager.implementation;
import com.azure.core.management.Region;
import com.azure.core.util.Context;
import com.azure.... | 2,340 |
1,217 | //ROS 头文件
#include <ros/ros.h>
#include <iostream>
//topic 头文件
#include <gazebo_msgs/ModelState.h>
#include <gazebo_msgs/ModelStates.h>
#include <geometry_msgs/Pose.h>
#include <geometry_msgs/Twist.h>
#include <prometheus_msgs/DroneState.h>
using namespace std;
geometry_msgs::Pose qrcode_pose;
geometry_msgs::Twis... | 1,595 |
346 | <filename>src/lib/drishti/graphics/meshtex.cpp
/*! -*-c++-*-
@file meshtex.cpp
@author <NAME>
@brief Declaration of texture backed 3d mesh
\copyright Copyright 2017 Elucideye, Inc. All rights reserved.
\license{This project is released under the 3 Clause BSD License.}
*/
#include <drishti/graphics/mesht... | 710 |
448 | <gh_stars>100-1000
//Bin/Bucket Sort
//Bin/Bucket Sort is similar to Count Sort except that instead of storing the count of occurrences, it stores
//each of the occurrence as a seperate node within the Array in form of a linked list at specified position.
//Time Complexity : O(n)
//Space Compplexity : O(m+n) = O(n)
//w... | 932 |
1,527 | <reponame>KEVINYZY/tdb
"""
Headless debugging of HyperTree where nodes only consist of
TensorFlow nodes
"""
import tensorflow as tf
import unittest
import tdb
def build_graph_tf():
a=tf.constant(2)
b=tf.constant(3)
c=tf.add(a,b)
c2=tf.mul(a,b)
d=tf.neg(c)
return a,b,c,c2,d
class TestDebuggingTF(unittest.TestC... | 739 |
499 | <filename>a314/a314device/fix_mem_region.h
/*
* Copyright 2020-2021 <NAME>
*/
#include <exec/types.h>
extern ULONG translate_address_a314(__reg("a0") void *address);
extern BOOL fix_memory();
| 75 |
21,684 | <gh_stars>1000+
//
// Copyright 2001 - 2003 Google, Inc.
//
#ifndef _BASICTYPES_H_
#define _BASICTYPES_H_
#include "rdb_protocol/geo/s2/base/integral_types.h"
#include "rdb_protocol/geo/s2/base/casts.h"
#include "rdb_protocol/geo/s2/base/port.h"
namespace geo {
//
// Google-specific types
//
// id for odp categor... | 1,286 |
3,459 | <reponame>werminghoff/Provenance
#ifndef GBA_H
#define GBA_H
#include "../System.h"
#define SAVE_GAME_VERSION_1 1
#define SAVE_GAME_VERSION_2 2
#define SAVE_GAME_VERSION_3 3
#define SAVE_GAME_VERSION_4 4
#define SAVE_GAME_VERSION_5 5
#define SAVE_GAME_VERSION_6 6
#define SAVE_GAME_VERSION_7 7
#define SAVE_GAME_VERSIO... | 1,359 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.