max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
3,428 | <reponame>ghalimi/stdlib<gh_stars>1000+
{"id":"00699","group":"easy-ham-2","checksum":{"type":"MD5","value":"92050ab0ff44527ebf0358341ba86684"},"text":"From <EMAIL> Wed Jul 24 02:08:39 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.... | 1,335 |
348 | {"nom":"Eaux-Bonnes","dpt":"Pyrénées-Atlantiques","inscrits":321,"abs":72,"votants":249,"blancs":20,"nuls":6,"exp":223,"res":[{"panneau":"1","voix":159},{"panneau":"2","voix":64}]} | 76 |
2,151 | // 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 CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_FULLSCREEN_TRANSITION_H_
#define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_FULLSCREEN_TRANSITION_H_
#import <... | 1,820 |
1,826 | package com.vladsch.flexmark.html2md.converter;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jsoup.nodes.Node;
import java.io.IOException;
public abstract class HtmlNodeConverterSubContext implements HtmlNodeConverterContext {
final protected HtmlMarkdownWriter ... | 545 |
1,253 | <gh_stars>1000+
import java.util.Scanner;
public class IsPalindromeWithStringBuilder {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String value = in.next(); // add string
System.out.println(isPalindromeWithStringBuilder(value) ? "is Palindrome" : "Not Palindrome");
}
... | 160 |
357 | <filename>Screener/QMAScreener.py
'''
Author: <NAME>
Date: 8/15/2018
Description: Script attempts to filter out stocks which can be used for quantified moving average strategy.
'''
from datetime import datetime, timedelta
import pandas as pd
from pandas_datareader import data
from iexfinance import Stock, get_historic... | 655 |
1,338 | /*
* Copyright 2008 Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME> <EMAIL>
* <NAME> <EMAIL>
*/
#ifndef DRIVER_H
#define DRIVER_H
#include <KernelExport.h>
#include <PCI.h>
#include "joystick_driver.h"
#define VENDOR_ID_CREATIVE 0x1102
#define DEVICE_ID_CREATIVE_EMU10K1 0x... | 476 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-rm98-fj9p-fjh8/GHSA-rm98-fj9p-fjh8.json
{
"schema_version": "1.2.0",
"id": "GHSA-rm98-fj9p-fjh8",
"modified": "2022-05-01T02:25:17Z",
"published": "2022-05-01T02:25:17Z",
"aliases": [
"CVE-2005-4231"
],
"details": "Cross-site scripting (XSS) vulnerability i... | 579 |
9,156 | /**
* 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... | 7,705 |
777 | // 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 "modules/canvas/HTMLCanvasElementModule.h"
#include "core/dom/DOMNodeIds.h"
#include "core/html/canvas/CanvasContextCreationAttributes.h"
#inclu... | 926 |
14,668 | // Copyright (c) 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 "net/base/network_activity_monitor.h"
#include <atomic>
#include <type_traits>
namespace net {
namespace activity_monitor {
namespace {
s... | 386 |
703 | package cc.mrbird.web.controller.security;
import cc.mrbird.common.annotation.Limit;
import cc.mrbird.common.domain.FebsConstant;
import cc.mrbird.common.domain.ResponseBo;
import cc.mrbird.security.code.ValidateCode;
import cc.mrbird.security.code.ValidateCodeGenerator;
import cc.mrbird.security.code.img.ImageCode;
i... | 978 |
319 | <filename>examples/file_operations/dub.json<gh_stars>100-1000
{
"name": "file-operations-example",
"description": "Read/write/append with task yielding.",
"dependencies": {
"vibe-d:core": {"path": "../../"}
},
} | 86 |
394 | <reponame>simonw/ijson
/*
* asynchronous reading generator for ijson's C backend
*
* Contributed by <NAME> <<EMAIL>>
*
* ICRAR - International Centre for Radio Astronomy Research
* (c) UWA - The University of Western Australia, 2020
* Copyright by UWA (in the framework of the ICRAR)
*/
#ifndef ASYNC_READING_GE... | 383 |
327 | #!/usr/bin/env python
#
# Software License Agreement (BSD License)
#
# Copyright (c) 2014-, Open Perception, Inc.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of sourc... | 1,687 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Fontpédrouse","circ":"3ème circonscription","dpt":"Pyrénées-Orientales","inscrits":118,"abs":47,"votants":71,"blancs":28,"nuls":10,"exp":33,"res":[{"nuance":"REM","nom":"<NAME>","voix":22},{"nuance":"FN","nom":"<NAME>","voix":11}]} | 116 |
3,807 | <reponame>kentanakae/firebase-ios-sdk<filename>FirebasePerformance/Sources/Instrumentation/FPRNetworkTrace+Private.h
// Copyright 2020 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 Lice... | 362 |
1,109 | /*******************************************************************************
* Copyright 2016 Intuit
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.o... | 1,715 |
348 | {"nom":"Ferrières-la-Verrerie","circ":"1ère circonscription","dpt":"Orne","inscrits":144,"abs":76,"votants":68,"blancs":8,"nuls":2,"exp":58,"res":[{"nuance":"DVD","nom":"<NAME>","voix":33},{"nuance":"SOC","nom":"M. <NAME>","voix":25}]} | 97 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-hpw7-xrjw-4cx3",
"modified": "2022-04-05T00:01:02Z",
"published": "2022-03-26T00:00:31Z",
"aliases": [
"CVE-2021-22100"
],
"details": "In cloud foundry CAPI versions prior to 1.122, a denial-of-service attack in which a developer can push a service broker that ... | 484 |
1,738 | <reponame>jeikabu/lumberyard
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provid... | 395 |
409 | // RUN: %check_clang_tidy %s cppcoreguidelines-no-malloc %t
using size_t = __SIZE_TYPE__;
void *malloc(size_t size);
void *calloc(size_t num, size_t size);
void *realloc(void *ptr, size_t size);
void free(void *ptr);
void malloced_array() {
int *array0 = (int *)malloc(sizeof(int) * 20);
// CHECK-MESSAGES: :[[@LI... | 610 |
410 | #include "BaseSurface.h"
namespace ofx {
namespace piMapper {
BaseSurface::BaseSurface(){
_moved = false;
_scale = 1.0f;
createDefaultTexture();
}
BaseSurface::~BaseSurface(){
delete defaultSource;
defaultSource = 0;
defaultTexture.clear();
}
void BaseSurface::createDefaultTexture(){
ofPixels pixels;
pixels... | 1,732 |
1,293 | /*
* 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 a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 610 |
2,151 | /* Return number of program headers in the ELF file.
Copyright (C) 2010 Red Hat, Inc.
This file is part of elfutils.
This file is free software; you can redistribute it and/or modify
it under the terms of either
* the GNU Lesser General Public License as published by the Free
Software Foundati... | 930 |
32,544 | <reponame>DBatOWL/tutorials
package com.baeldung.pangram;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class PangramUnitTest {
@Test
public void givenValidString_isPangram_shouldReturnSuccess() {
String input = "Two driven jocks... | 557 |
440 | /*========================== begin_copyright_notice ============================
Copyright (C) 2019-2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
#pragma once
#include "Object.h"
#include "Queue.h"
namespace iSTD
{
/**********... | 2,046 |
5,169 | {
"name": "AwesomeButton",
"version": "0.2.0",
"summary": "UIButton inheritance with @IBDesignable and @IBInspectable force.",
"description": "AwesomeButton is an open source control with ability to add image and text just using Interface Builder. This control inheritance with IBDesignable and IBInspectable for... | 274 |
348 | <filename>docs/data/leg-t2/088/08801417.json
{"nom":"Saint-Gorgon","circ":"1ère circonscription","dpt":"Vosges","inscrits":304,"abs":181,"votants":123,"blancs":11,"nuls":3,"exp":109,"res":[{"nuance":"LR","nom":"<NAME>","voix":61},{"nuance":"REM","nom":"<NAME>","voix":48}]} | 110 |
5,169 | <reponame>DanToml/Specs-Test
{
"name": "Appodeal",
"version": "1.2.3",
"summary": "Appodeal iOS Framework",
"description": "Appodeal’s supply-side platform is designed and built by veteran publishers,for publishers. Appodeal is not an ad network; it is a new approach to monetizing for publishers.\nThe platform ... | 721 |
678 | /*
* inject.h
*
* Created by <NAME> on 9/27/2018
* Copyright 2018 <NAME>. All Rights Reserved.
*
*/
#ifndef _INJECT_H_
#define _INJECT_H_
#include <Foundation/Foundation.h>
NSString *cdhashFor(NSString *file);
int injectTrustCache(NSArray <NSString*> *files, uint64_t trust_chain, int (*pmap_load_trust_cach... | 151 |
595 | <reponame>gyetvan-andras/ModernLook-OSX
//
// PBGlassView.h
// Predicitve Budget
//
// Created by <NAME> on 2015. 02. 19..
// Copyright (c) 2015. DroidZONE. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <QuartzCore/QuartzCore.h>
@interface MLGlassView : NSView
@property (nonatomic, strong) NSColor* bac... | 139 |
1,008 | <reponame>warmchang/turms
/*
* Copyright (C) 2019 The Turms Project
* https://github.com/turms-im/turms
*
* 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/... | 8,684 |
663 | # (C) Datadog, Inc. 2020-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import pytest
from datadog_checks.azure_iot_edge.config import Config
from datadog_checks.azure_iot_edge.metrics import EDGE_AGENT_METRICS, EDGE_AGENT_TYPE_OVERRIDES, EDGE_HUB_METRICS
from datadog_checks.... | 1,112 |
751 | <reponame>xerothermic/vpp
# Copyright (c) 2016 Comcast Cable Communications Management, 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.... | 902 |
14,668 | <filename>components/services/font/public/cpp/mapped_font_file.h
// 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_SERVICES_FONT_PUBLIC_CPP_MAPPED_FONT_FILE_H_
#define COMPONENTS_SERVIC... | 549 |
340 | <filename>thredo/requests.py
# requests.py
#
# Session adapter that allows requests to use thredo socket objects.
# This is a bit of plumbing, but it's a clean interface that doesn't
# require any monkeypatching or other low-level magic
__all__ = ['get_session']
# -- Thredo
from . import socket
# -- Requests/third p... | 1,162 |
417 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package de.janquadflieg.mrracer.evo.adapter;
import de.janquadflieg.mrracer.evo.FitnessEvaluator;
import de.janquadflieg.mrracer.behaviour.DefensiveFallbackBehaviour;
import de.janquadflieg.mrracer.behaviour.OffTrackRe... | 3,413 |
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
... | 1,283 |
421 | <gh_stars>100-1000
/*
System::Configuration::Install::Installer.Context
The following example demonstrates the 'Context' property of
the 'Installer' class. The contents of the 'Context' property
like information about the location of the log file for the
installation, the location of the file to save information... | 781 |
2,577 | <gh_stars>1000+
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
... | 1,007 |
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.desktopvirtualization.models;
import com.azure.resourcemanager.desktopvirtualization.fluent.models.StartMenuItemInner;
/** An i... | 627 |
473 | <filename>include/El/core/Permutation.hpp
/*
Copyright (c) 2009-2016, <NAME>
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#ifndef EL_PERM_PER... | 1,300 |
488 | /* This is the stuff that must be included in both the target and the snippets if AST fixups are being performed. */
#ifndef errorSnippets_H
#define errorSnippets_H
#include <stdlib.h>
#include <string.h>
static int *savedInteger;
/* Declarations for all functions that might be copied to the target as a function. *... | 163 |
2,116 | <gh_stars>1000+
{"string1":"attention","string2":"recognize","string3":"modern","string4":"ago","string5":"part","string6":"list","string7":"despite","string8":"seat","string9":"I","string10":"toward"}
{"string1":"probably","string2":"society","string3":"just","string4":"why","string5":"door","string6":"be","string7":"... | 170 |
310 | <filename>gear/hardware/0/1029a.json<gh_stars>100-1000
{
"name": "1029A",
"description": "Studio speakers.",
"url": "https://www.genelec.com/previous-models/1029a"
}
| 73 |
310 | package com.propertycross.mgwt.page;
import com.propertycross.mgwt.view.FavouritesView;
public class FavouritesPage extends PageBase {
private final FavouritesView view;
public FavouritesPage() {
super(true, false, "Favourites");
view = new FavouritesView(this);
addContent(view);
}
public FavouritesView ... | 122 |
2,151 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_MEDIA_ANDROID_REMOTE_MEDIA_CONTROLLER_BRIDGE_H_
#define CHROME_BROWSER_MEDIA_ANDROID_REMOTE_MEDIA_CONTROLLER_BRIDGE_H_
#include "b... | 398 |
11,094 | # Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
import numpy as np
import matplotlib.pyplot as plt
from Activators.Relu import *
from Activators.Elu import *
from Activators.LeakyRelu import *
from Activators.Sigmoid ... | 469 |
401 | #!/usr/bin/env python
import sys
print(sys.path)
| 19 |
1,640 | <reponame>IvoVargas/gitblit<filename>src/main/java/com/gitblit/wicket/pages/NewTicketPage.java
/*
* Copyright 2014 gitblit.com.
*
* 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
*
... | 3,796 |
7,676 | from horovod.runner.driver.driver_service import (_run_probe,
HorovodRunDriverService)
def _actor_launch_task_servers(*, node_actors, num_hosts, driver_addresses,
settings):
for index, w in enumerate(node_actors):
def execut... | 934 |
4,124 | /**
* 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... | 601 |
12,718 | #ifndef __wasilibc___mode_t_h
#define __wasilibc___mode_t_h
#define S_IFMT \
(S_IFBLK | S_IFCHR | S_IFDIR | S_IFIFO | S_IFLNK | S_IFREG | S_IFSOCK)
#define S_IFBLK (0x6000)
#define S_IFCHR (0x2000)
#define S_IFDIR (0x4000)
#define S_IFLNK (0xa000)
#define S_IFREG (0x8000)
#define S_IFSOCK (0xc000)
#defi... | 642 |
742 | {
"name": "website",
"version": "1.0.0",
"scripts": {
"build": "vuepress build",
"deploy:gh": "node scripts/deploy-gh.js",
"dev": "vuepress dev",
"test": "echo \"Error: no test specified\""
},
"dependencies": {},
"devDependencies": {
"@vuepress/plugin-google-analytics": "1.5.0",
"gh-... | 217 |
351 | <reponame>leezhenghui/Mushroom
/**
* > Author: UncP
* > Github: www.github.com/UncP/Mushroom
* > License: BSD-3
* > Time: 2017-06-03 09:37:22
**/
#include <unistd.h>
#include <fcntl.h>
#include <vector>
#include "../src/mushroom/db.hpp"
#include "../src/network/signal.hpp"
#include "..... | 1,526 |
14,668 | <reponame>zealoussnow/chromium
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_AUTOFILL_PAYMENTS_LOCAL_CARD_MIGRATION_CONTROLLER_OBSERVER_H_
#define CHROME_BROWSER_UI_AUTOFILL_... | 325 |
4,036 |
def del1():
x = 0
del x
x = 0
return x
def del2():
x = 0
if random():
del x
else:
x = 1
return x
| 85 |
997 | <gh_stars>100-1000
#include "crypto_encode_1277x2627.h"
/* auto-generated; do not edit */
#define int16 int16_t
#define uint16 uint16_t
#define uint32 uint32_t
void PQCLEAN_SNTRUP1277_CLEAN_crypto_encode_1277x2627(unsigned char *out, const void *v) {
const int16 *R0 = v;
/* XXX: caller could overlap R with i... | 2,023 |
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... | 1,124 |
335 | {
"word": "Contradiction",
"definitions": [
"A combination of statements, ideas, or features which are opposed to one another.",
"A situation in which inconsistent elements are present.",
"The statement of a position opposite to one already made."
],
"parts-of-speech": "Noun"
} | 107 |
422 | from all_models.models import TbUserPermissionRelation
class UserPermissionRelationService(object):
@staticmethod
def updateUserPermission(userPermissionData):
tbModel = TbUserPermissionRelation.objects.filter(id=userPermissionData["id"])
tbModel.update(**userPermissionData)
| 103 |
13,006 | /*******************************************************************************
* Copyright (c) 2019 <NAME>.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* Unless req... | 1,754 |
16,259 | <reponame>fairseq-FT/fairseq
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import torch.nn.functional as F
def unfold1d(x, kernel_size, padding_l, pad_value=0):
"""unfold T x B x C t... | 276 |
476 | <reponame>mogad0n/Limnoria
###
# Copyright (c) 2020-2021, The Limnoria Contributors
# 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 cop... | 2,398 |
1,144 | // Copyright (C) 2015 The Android Open Source Project
//
// 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,235 |
348 | {"nom":"Charmes-Saint-Valbert","dpt":"Haute-Saône","inscrits":37,"abs":9,"votants":28,"blancs":2,"nuls":4,"exp":22,"res":[{"panneau":"2","voix":14},{"panneau":"1","voix":8}]} | 76 |
852 | #ifndef DataFormats_TestObjects_Thing_h
#define DataFormats_TestObjects_Thing_h
#include "FWCore/Utilities/interface/typedefs.h"
namespace edmtest {
struct Thing {
~Thing() {}
Thing() : a() {}
explicit Thing(cms_int32_t v) : a{v} {}
cms_int32_t a;
};
} // namespace edmtest
#endif
| 134 |
5,169 | {
"name": "CocktailDB",
"version": "0.0.1",
"summary": "A Framework to fetch data from cocktaildb.com",
"description": "A macOS framework to help fetching cocktails from cocktaildb.com",
"homepage": "https://github.com/caiobzen/Cocktail",
"license": {
"type": "MIT",
"file": "LICENSE.txt"
},
"aut... | 310 |
1,146 |
/*
* 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... | 305 |
1,550 | <reponame>ATikhonov2/leo-editor
# Leo colorizer control file for text mode.
# This file is in the public domain.
# Properties for text mode.
properties = {}
# Attributes dict for text_main ruleset.
text_main_attributes_dict = {
"default": "null",
"digit_re": "",
"escape": "",
"highlight_dig... | 420 |
2,503 | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PA... | 609 |
563 | package com.gentics.mesh;
import static com.gentics.mesh.MeshEnv.CONFIG_FOLDERNAME;
import static com.gentics.mesh.MeshEnv.MESH_CONF_FILENAME;
import static org.apache.commons.lang3.StringUtils.isEmpty;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOExcepti... | 2,710 |
6,989 | #define NPY_NO_DEPRECATED_API NPY_API_VERSION
#include "Python.h"
#include "numpy/arrayobject.h"
#include "fftpack.h"
static PyObject *ErrorObject;
static const char fftpack_cfftf__doc__[] = "";
static PyObject *
fftpack_cfftf(PyObject *NPY_UNUSED(self), PyObject *args)
{
PyObject *op1, *op2;
PyArrayObject ... | 4,674 |
335 | package com.kalvin.kvf.common.dto;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kalvin.kvf.common.constant.Constants;
import java.io.Serializable;
/**
* 返回前端 数据封闭类
*/
public class R implements Serializable {
private static final long serialVersionUID = 1L;
private Integer... | 729 |
772 | <reponame>ryansloan/code-dot-or
{
"avoidCowAndRemove": "одбегнија кравата и отстрани",
"continue": "Продолжи",
"dig": "отстрани 1",
"digTooltip": "отстрани 1 дел од нечистотијата",
"dirE": "Исток",
"dirN": "Север",
"dirS": "Југ",
"dirW": "Запад",
"doCode": "изврши",
"elseCode": "инаку",
"fill": "п... | 324 |
3,489 | <gh_stars>1000+
/*
* Copyright (c) 2012-2013 Spotify AB
*
* 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... | 262 |
661 | package com.example;
import dagger.Component;
@Component
public interface AbstractBuilderClass {
@Component.Builder
abstract class Builder {}
}
| 38 |
32,544 | package com.baeldung.filewriter;
import org.junit.After;
import org.junit.Assert;
import org.junit.Test;
import java.io.FileWriter;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
public class FileWriterExampleUnitTest {
@After
public void tearDown() throws IOException {
... | 650 |
852 | #ifndef DPGAnalysis_SiStripTools_DigiInvestigatorHistogramMaker_H
#define DPGAnalysis_SiStripTools_DigiInvestigatorHistogramMaker_H
#include <string>
#include <map>
#include "FWCore/Framework/interface/ConsumesCollector.h"
#include "DPGAnalysis/SiStripTools/interface/RunHistogramManager.h"
namespace edm {
class Par... | 553 |
3,139 | /*
* Copyright (c) 2017-2021 jMonkeyEngine
* 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 ... | 3,078 |
377 | <reponame>gburd/Kundera<filename>src/kundera-neo4j/src/test/java/com/impetus/client/neo4j/imdb/IMDBNativeLuceneQueryTest.java
/**
* Copyright 2012 Impetus Infotech.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtai... | 2,695 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The... | 10,965 |
1,442 | #include "../shared/platform.h"
#include <ion/src/simulator/windows/images.h>
#include <SDL.h>
#include <windows.h>
#include <olectl.h>
#include <gdiplus.h>
#include <assert.h>
/* Loading images using GDI+
* On Windows, we manipulate images using GDI+ which is widely available.
* Note that this adds an extra runtim... | 1,756 |
430 | <reponame>asheraryam/stabilizer
/* pad.h
*
* Copyright (C) 2002, by <NAME> and others
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specified in the README file.
*
* This file defines the types and macros associated with the API for
* m... | 3,718 |
2,392 | #ifndef DUST3D_UV_UNWRAP_H
#define DUST3D_UV_UNWRAP_H
#include <set>
#include <QVector2D>
#include "object.h"
void uvUnwrap(const Object &object,
std::vector<std::vector<QVector2D>> &triangleVertexUvs,
std::set<int> &seamVertices,
std::map<QUuid, std::vector<QRectF>> &uvRects);
#endif
| 137 |
5,267 | package io.swagger.v3.core.converting.override.resources;
public class MyCustomClass {
// does nothing, really
}
| 39 |
328 | package com.stx.core.widget;
import android.content.Context;
import android.content.res.TypedArray;
import android.support.annotation.ColorRes;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.... | 1,045 |
1,326 | <filename>tests/atomic.c
#include "brubeck.h"
#include "thread_helper.h"
#include "sput.h"
#define INCREMENTS (1024*4)
#define DELTA 0.5
struct spinlock_test {
double value;
pthread_spinlock_t lock;
};
static void *thread_spinlock(void *ptr)
{
struct spinlock_test *spt = ptr;
size_t i;
for (i = 0; i < INCREMEN... | 333 |
14,668 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_VIZ_HOST_GPU_HOST_IMPL_H_
#define COMPONENTS_VIZ_HOST_GPU_HOST_IMPL_H_
#include <map>
#include <queue>
#include <set>
#include <string... | 4,603 |
341 | <reponame>PublicFork/VidEffects
package com.sherazkhilji.videffects.interfaces;
import android.opengl.GLSurfaceView;
/**
* An interface that every effect must implement so that there is a common
* getShader method that every effect class is force to override
*
* @author sheraz.khilji
*
*/
@Deprecated... | 233 |
2,151 | // Copyright 2018 The Feed 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... | 700 |
335 | <gh_stars>100-1000
{
"word": "Religious",
"definitions": [
"Relating to or believing in a religion.",
"(of a belief or practice) forming part of someone's faith in a divine being.",
"Belonging or relating to a monastic order or other group of people who are united by their practice of re... | 154 |
632 | import warnings
from . import PYQT5, PYQT6
from . import PYSIDE2
from . import PYSIDE6
if PYQT5:
from PyQt5.QtMultimedia import *
elif PYQT6:
from PyQt6.QtMultimedia import *
elif PYSIDE6:
from PySide6.QtMultimedia import *
elif PYSIDE2:
from PySide2.QtMultimedia import *
else:
raise PythonQtError... | 151 |
1,109 | import numpy as np
import time
sampleData = open('sampleData.txt','r').read()
splitData = sampleData.split('\n')
date,closep,highp,lowp,openp,volume = np.loadtxt(splitData, delimiter=',',unpack=True)
def standard_deviation(tf,prices):
sd = []
sddate = []
x = tf
######
while x <= len(prices):
... | 547 |
2,502 | package com.shuzijun.leetcode.plugin.listener;
import com.intellij.openapi.actionSystem.ActionGroup;
import com.intellij.openapi.actionSystem.ActionManager;
import com.intellij.openapi.progress.ProgressIndicator;
import com.intellij.openapi.progress.ProgressManager;
import com.intellij.openapi.progress.Task;
import co... | 1,003 |
302 | #ifndef DATASOURCEMODEL_H
#define DATASOURCEMODEL_H
#include "datasourceobject.h"
#include <QAbstractListModel>
class DataSourceModel : public QAbstractListModel
{
Q_OBJECT
public:
enum datasourceRoles {
idRole = Qt::UserRole ,
nameRole,
unitRole,
valueRole
};
expli... | 395 |
3,748 | // Copyright (c) OpenMMLab. All rights reserved
#ifndef BOX_IOU_ROTATED_PYTORCH_H
#define BOX_IOU_ROTATED_PYTORCH_H
#include <torch/extension.h>
using namespace at;
void box_iou_rotated_cpu(const Tensor boxes1, const Tensor boxes2, Tensor ious,
const int mode_flag, const bool aligned);
#ifdef... | 238 |
306 | <gh_stars>100-1000
{
"enabled": true,
"realm": "service-account",
"clients": [
{
"clientId": "config-cli",
"enabled": true,
"clientAuthenticatorType": "client-secret",
"secret": "config-cli-secret",
"directAccessGrantsEnabled": false,
"serviceAccountsEnabled": true,
"... | 402 |
1,738 | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 11,608 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.