max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,134
<reponame>dendisuhubdy/opentrack #pragma once #define OTR_GENERIC_EXPORT #define OTR_GENERIC_IMPORT #include "../compat/shm.h"
59
583
<filename>resources/kate/symbolviewer/plugin_katesymbolviewer.h /*************************************************************************** plugin_katesymbolviewer.h - description ------------------- begin : Apr 2 2003 author ...
1,924
335
<filename>U/Upscale_verb.json { "word": "Upscale", "definitions": [ "Increase the size or improve the quality of.", "Convert (an image or video) so that it displays correctly in a higher resolution format." ], "parts-of-speech": "Verb" }
103
1,016
package com.thinkbiganalytics.kylo.catalog.datasource; /*- * #%L * kylo-catalog-core * %% * Copyright (C) 2017 - 2018 ThinkBig Analytics, a Teradata Company * %% * 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...
962
826
import sys import unittest from common import platform_skip, TestCase import pyuv @platform_skip(["win32"]) class TYTest(TestCase): def test_tty1(self): tty = pyuv.TTY(self.loop, sys.stdin.fileno(), True) w, h = tty.get_winsize() self.assertNotEqual((w, h), (None, None)) tty.cl...
201
316
/* * Copyright (c) 2016, Salesforce.com, 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: * * 1. Redistributions of source code must retain the above copyright notice, * this list of c...
1,193
32,544
<gh_stars>1000+ package com.baeldung.jcache; import java.util.HashMap; import java.util.Map; import javax.cache.integration.CacheLoader; import javax.cache.integration.CacheLoaderException; public class SimpleCacheLoader implements CacheLoader<Integer, String> { @Override public String load(Integer key) thr...
247
8,451
<filename>benchmarks/src/main/java/org/questdb/GeoHashesSwitchOnIntVsCharBenchmark.java /******************************************************************************* * ___ _ ____ ____ * / _ \ _ _ ___ ___| |_| _ \| __ ) * | | | | | | |/ _ \/ __| __| | | | _ \ * | |_| | |_| | ...
1,534
778
<filename>shared/source/helpers/timestamp_offsets.h /* * Copyright (C) 2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once #define KERNEL_TIMESTAMP_EVENT_GLOBAL_START_OFFSET (1) #define KERNEL_TIMESTAMP_EVENT_GLOBAL_END_OFFSET (3) #define KERNEL_TIMESTAMP_EVENT_CONTEXT_START_OFFSET (0) #def...
158
337
class A { <selection>private static String formatElement(PsiElement element) { element = JetPsiUtil.ascendIfPropertyAccessor(element); if (element instanceof JetNamedFunction || element instanceof JetProperty) { BindingContext bindingContext = AnalyzerFacadeWithCache....
828
2,499
<filename>distributedlog-tutorials/distributedlog-messaging/src/main/java/com/twitter/distributedlog/messaging/RRMultiWriter.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 * ...
1,293
742
{ "name": "auto-generated-vcpkg-json", "version-string": "unversioned", "dependencies": [ "functions-framework-cpp" ] }
48
2,504
<reponame>dujianxin/Windows-universal-samples //********************************************************* // // 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 ...
918
7,073
<reponame>rdagum/robotframework from robot.utils import NormalizedDict from robot.libraries.BuiltIn import BuiltIn BUILTIN = BuiltIn() KEYWORDS = NormalizedDict({'add_keyword': ('name', '*args'), 'remove_keyword': ('name',), 'reload_self': (), ...
555
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...
1,768
12,252
/* * Copyright 2021 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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.apach...
1,328
780
package com.codeborne.selenide; import javax.annotation.Nullable; import java.io.Serializable; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.util.Objects; import static com.codeborne.selenide.CheckResult.Verdict.ACCEPT; import static com.codeborne.selenide.CheckResult.Verdict....
525
1,338
/* * Copyright 2006-2007, Haiku. * Distributed under the terms of the MIT License. * * Authors: * <NAME> <<EMAIL>> */ #ifndef AFFINE_TRANSFORMER_H #define AFFINE_TRANSFORMER_H #include "IconBuild.h" #include "Transformer.h" #include <agg_conv_transform.h> #include <agg_trans_affine.h> _BEGIN_ICON_NAMESPACE ...
539
331
<filename>Coursera/Capstone Retrieving, Processing, and Visualizing Data with Python/Week-4/Example/gmane/gbasic.py import sqlite3 import time import zlib howmany = int(input("How many to dump? ")) conn = sqlite3.connect('index.sqlite') cur = conn.cursor() cur.execute('SELECT id, sender FROM Senders') senders = dict...
611
692
#ifndef _imbalance_hpp_ #define _imbalance_hpp_ #include <cmath> #ifdef HAVE_MPI #include <mpi.h> #endif #include <box_utils.hpp> #include <utils.hpp> #include <YAML_Doc.hpp> namespace miniFE { const int X = 0; const int Y = 1; const int Z = 2; const int NONE = 3; const int LOWER = 0; const int UPPER = 1; templa...
3,820
376
<filename>Lib/Chip/CM4/NXP/LPC5410x_v0.4/SPI1.hpp<gh_stars>100-1000 #pragma once #include <Register/Utility.hpp> namespace Kvasir { //SPI1 namespace Spi1Cfg{ ///<SPI Configuration register using Addr = Register::Address<0x400a8000,0x00000000,0x00000000,unsigned>; ///SPI enable. enum clas...
15,345
1,088
<gh_stars>1000+ /* Copyright 2020 Alibaba Group Holding Limited. 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 ...
4,456
1,408
/* * Copyright (c) 2016 - 2020, Broadcom * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef SR_CHIMP_H #define SR_CHIMP_H #include <common/bl_common.h> #include <common/debug.h> #include <lib/mmio.h> #include <platform_def.h> #define CHIMP_WINDOW_SIZE 0x400000 #define CHIMP_ERROR_OFFSET 28 #define CHIMP_ERROR...
947
578
#ifdef TWO_MODULES module; #include <infra/Cpp20.h> module TWO(tree); #else #include <refl/Module.h> #include <meta/infra.meta.h> #include <meta/tree.meta.h> #endif namespace two { two_tree::two_tree() : Module("two::tree", { &two_infra::m() }) {} } #ifdef TWO_TREE_MODULE extern "C" Module& getModule() { return ...
156
432
/* * Copyright (c) 1985, 1988, 1990, 1992, 1993, 1994 * The Regents of the University of California. 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 mus...
35,694
2,702
<filename>server/src/test/java/keywhiz/auth/cookie/GCMEncryptorTest.java /* * Copyright (C) 2015 Square, 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...
735
378
<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 licenses this file to You under the Apache License, Version 2.0 * (the "...
1,457
722
<filename>egs/wsj0-mix-var/Multi-Decoder-DPRNN/metrics.py import torch import torch.nn as nn from asteroid.losses import PITLossWrapper, pairwise_neg_sisdr from torch.nn.modules.loss import _Loss from scipy.optimize import linear_sum_assignment class PairwiseNegSDR_Loss(_Loss): """ Same as asteroid.losses.Pai...
1,776
1,338
<filename>src/apps/debugger/user_interface/gui/team_settings_window/SignalsConfigView.h /* * Copyright 2013-2015, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #ifndef SIGNALS_CONFIG_VIEW_H #define SIGNALS_CONFIG_VIEW_H #include <GroupView.h> #include "table/Table.h" #include "Team.h" #i...
656
1,561
// Copyright 1996-2021 Cyberbotics 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 by applicable law or agr...
861
743
package pl.allegro.tech.hermes.consumers.supervisor.workload; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Sets; import org.apache.curator.framework.CuratorFramework; import org.apache.curator.framework.recipes.cache.ChildData; import org.apache.curator.framework.recipes.cache.NodeCa...
1,890
1,179
/// @copyright /// Copyright (C) 2020 Assured Information Security, Inc. /// /// @copyright /// 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 limita...
1,469
1,273
package org.broadinstitute.hellbender.tools.walkers.haplotypecaller.readthreading; import org.testng.Assert; import org.testng.annotations.Test; import java.util.Arrays; public final class MultiDeBruijnVertexUnitTest { @Test public void testMergingIdenticals() { final MultiDeBruijnVertex v1 = new Mu...
1,107
4,372
<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "Lic...
1,017
1,234
<gh_stars>1000+ package org.benf.cfr.reader.bytecode.opcode; import org.benf.cfr.reader.bytecode.analysis.stack.StackDelta; import org.benf.cfr.reader.bytecode.analysis.stack.StackDeltaImpl; import org.benf.cfr.reader.bytecode.analysis.stack.StackSim; import org.benf.cfr.reader.bytecode.analysis.types.StackType; impor...
414
2,151
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "media/cdm/cdm_proxy.h" namespace media { CdmProxy::Client::Client() = default; CdmProxy::Client::~Client() = default; CdmProxy::CdmProxy() = d...
122
5,964
<reponame>MinimalOS-AOSP/platform_external_skia<gh_stars>1000+ /* * Copyright 2014 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ // EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL // DO NOT USE -- FOR INTERNAL TESTING ONLY #ifndef sk_pi...
359
693
<filename>solo/utils/auto_umap.py # Copyright 2021 solo-learn development team. # 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 t...
4,678
1,052
#include <stdio.h> typedef enum { TYPE_INT, TYPE_FLOAT, TYPE_STRING, } VariantType; struct Variant { VariantType type; union { int as_integer; float as_float; char *as_string; } data; }; typedef struct Variant Variant; void Variant_print(Variant * var) { switch (v...
624
2,338
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
260
852
#ifndef DataFormats_Provenance_SubProcessParentageHelper_h #define DataFormats_Provenance_SubProcessParentageHelper_h // This class is used to properly fill Parentage in SubProcesses. // In particular it helps filling the BranchChildren container // that is used when dropping descendants of products that // have been ...
288
4,339
<reponame>geertjanw/ignite /* * 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 ...
1,759
2,338
<filename>clang-tools-extra/test/clang-apply-replacements/Inputs/crlf/crlf.cpp // This file intentionally uses a CRLF newlines! void foo() { int *x = 0; }
67
3,897
<reponame>adelcrosge1/mbed-os<gh_stars>1000+ /* * Copyright (c) STMicroelectronics 2021 * SPDX-License-Identifier: Apache-2.0 * * 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 * * h...
1,728
2,151
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_STREAM_HANDLE_H_ #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_STREAM_HANDLE_H_ #includ...
800
335
{ "word": "Galvanometer", "definitions": [ "An instrument for detecting and measuring small electric currents." ], "parts-of-speech": "Noun" }
63
2,338
// Test that optimized flag is properly included in DWARF. // -gsplit-dwarf is supported only on Linux. // REQUIRES: system-linux // This test uses lldb's embedded python interpreter // REQUIRES: python // ObjectFileELF::ApplyRelocations does not implement arm32. // XFAIL: target-arm && linux-gnu // RUN: %clang_hos...
409
5,079
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2007 <NAME>, European Environment Agency # # This is free software. You may redistribute it under the terms # of the Apache license and the GNU General Public License Version # 2 or at your option any later version. # # This program is distributed in the ho...
622
1,443
<filename>users/prajankya.json { "copyright": "Prajankya", "url": "http://rig.solutions/Prajankya", "email": "<EMAIL>", "gravatar": true, "theme": "material-teal" }
79
11,356
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright <NAME> 2010. // 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) // // See http://www.boost.org/libs/stm for docum...
286
2,338
<gh_stars>1000+ // RUN: %clang -O1 %s -o %t // RUN: %env_tool_opts=handle_sigfpe=2 not %run %t 0 2>&1 | FileCheck %s -DSIGNAME=FPE // RUN: %env_tool_opts=handle_sigill=2 not %run %t 1 2>&1 | FileCheck %s -DSIGNAME=ILL // RUN: %env_tool_opts=handle_abort=2 not %run %t 2 2>&1 | FileCheck %s -DSIGNAME=ABRT // RUN: %env_to...
397
841
package org.jboss.resteasy.test.client.resource; import jakarta.ws.rs.Consumes; import jakarta.ws.rs.GET; import jakarta.ws.rs.HeaderParam; import jakarta.ws.rs.POST; import jakarta.ws.rs.Path; import jakarta.ws.rs.Produces; import jakarta.ws.rs.QueryParam; @Path("/foo") public class SmokeParamResource { @POST ...
234
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Lewarde","circ":"16ème circonscription","dpt":"Nord","inscrits":1875,"abs":835,"votants":1040,"blancs":20,"nuls":24,"exp":996,"res":[{"nuance":"COM","nom":"<NAME>","voix":702},{"nuance":"FN","nom":"<NAME>","voix":294}]}
109
1,416
from __future__ import division from datetime import datetime import sys if sys.version_info < (3, 3): import mock else: from unittest import mock import pandas as pd import numpy as np import random from nose.tools import assert_almost_equal as aae import bt import bt.algos as algos def test_algo_name():...
28,816
2,577
/* * 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, * Version 2.0; y...
731
6,958
<filename>source/backend/coreml/execution/CoreMLActivation.hpp // // CoreMLActivation.hpp // MNN // // Created by MNN on 2021/03/31. // Copyright © 2018, Alibaba Group Holding Limited // #ifndef MNN_COREMLACTIVATION_HPP #define MNN_COREMLACTIVATION_HPP #include "CoreMLCommonExecution.hpp" #include "CoreMLBackend....
276
427
//===- GlobalsStream.h - PDB Index of Symbols by Name ------ ----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
472
808
<filename>bootdo/src/main/java/com/bootdo/activiti/service/impl/ProcessServiceImpl.java package com.bootdo.activiti.service.impl; import com.bootdo.activiti.config.ActivitiConstant; import com.bootdo.activiti.service.ProcessService; import com.bootdo.activiti.vo.HisTaskDTO; import com.bootdo.system.dao.UserDao; import...
1,939
2,151
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IOS_CHROME_BROWSER_UI_TOOLBAR_LEGACY_LEGACY_TOOLBAR_VIEW_H_ #define IOS_CHROME_BROWSER_UI_TOOLBAR_LEGACY_LEGACY_TOOLBAR_VIEW_H_ #import <UIKit/UI...
377
902
package org.anychat.dao.base; import java.util.List; import org.anychat.model.base.Chat; import org.anychat.model.base.ChatCriteria; import org.apache.ibatis.annotations.Param; public interface ChatMapper { /** * This method was generated by MyBatis Generator. * This method corresponds to the ...
994
2,583
<filename>blender/arm/logicnode/transform/LN_get_object_location.py from arm.logicnode.arm_nodes import * class GetLocationNode(ArmLogicTreeNode): """Get the location of the given object in world coordinates. @input Parent Relative: If enabled, transforms the world coordinates into object parent local coordin...
338
626
<filename>core/src/test/java/org/jsmart/zerocode/core/runner/parallel/ZeroCodeLoadRunnerTest.java package org.jsmart.zerocode.core.runner.parallel; import org.jsmart.zerocode.core.domain.LoadWith; import org.jsmart.zerocode.core.domain.TestMapping; import org.jsmart.zerocode.parallel.restful.JunitRestTestSample; impor...
1,429
963
package com.vladmihalcea.book.hpjp.hibernate.query.function; import com.vladmihalcea.book.hpjp.util.providers.DataSourceProvider; import com.vladmihalcea.book.hpjp.util.providers.MySQLDataSourceProvider; import org.hibernate.dialect.MySQL57Dialect; import org.hibernate.dialect.function.StandardSQLFunction; import org....
1,444
679
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
3,975
2,568
{ "Telegram": { "domain": "telegram.org", "tfa": [ "sms", "call" ], "documentation": "https://telegram.org/blog/sessions-and-2-step-verification", "keywords": [ "communication" ] } }
112
879
package org.zstack.test.kvm; import junit.framework.Assert; import org.junit.Before; import org.junit.Test; import org.zstack.core.cloudbus.CloudBus; import org.zstack.core.componentloader.ComponentLoader; import org.zstack.core.db.DatabaseFacade; import org.zstack.header.cluster.ClusterInventory; import org.zstack.he...
2,135
327
#include <engine.h> EXPORT int main(int argc, char **argv) { window_create(0.50f, 0); audio_init(0); audio bgm = audio_loadstream( vfs_find("wrath_of_the_djinn.xm") ); audio_play(bgm, 0); while( window_update() ) { ddraw_printf(window_stats()); ddraw_printf("audio playing '%s'", "...
175
418
<reponame>hrchu/pretalx import datetime as dt def serialize_duration(minutes): duration = dt.timedelta(minutes=minutes) days = duration.days hours = int(duration.total_seconds() // 3600 - days * 24) minutes = int(duration.seconds // 60 % 60) fmt = f"{minutes:02}" if hours or days: fmt ...
203
990
<gh_stars>100-1000 #coding:utf-8 import time from DynamicSpider.DataOutput import DataOutput from DynamicSpider.HtmlDownloader import HtmlDownloader from DynamicSpider.HtmlParser import HtmlParser class SpiderMan(object): def __init__(self): self.downloader = HtmlDownloader() self.parser = HtmlPa...
1,022
571
<filename>univocity-trader-core/src/main/java/com/univocity/trader/indicators/BollingerBand.java package com.univocity.trader.indicators; import com.univocity.trader.candles.*; import com.univocity.trader.indicators.base.*; import java.util.function.*; /** * @author uniVocity Software Pty Ltd - <a href="mailto:<EM...
730
1,256
<reponame>MKadaner/FarManager #include "newarc.h" const TCHAR* __stdcall ArchiveModule::GetMsg(INT_PTR nModuleNumber, int nID) { ArchiveModule *pModule = (ArchiveModule*)nModuleNumber; if( pModule->m_pLanguage ) { const TCHAR* lpResult = pModule->m_pLanguage->GetMsg(nID); if ( lpResult ) return lpResult; ...
4,459
575
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // 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...
55,268
492
<reponame>kenjitagawa/youtube_video_code<gh_stars>100-1000 from django.db import models class Programmer(models.Model): name = models.CharField(max_length=20) def __str__(self): return self.name class Language(models.Model): name = models.CharField(max_length=20) programmer = models.ForeignK...
155
12,278
<reponame>rajeev02101987/arangodb // Boost.TypeErasure library // // Copyright 2011 <NAME> // // 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) // // $Id$ #include <boost/type_erasure/any.hpp> #include <boost/type_...
508
1,826
package com.vladsch.flexmark.ast.util;
15
2,959
<reponame>G4brym/aws-sam-cli """Build exceptions""" from samcli.commands.exceptions import UserException class InvalidBuildDirException(UserException): """ Value provided to --build-dir is invalid """ class MissingBuildMethodException(UserException): """ Exception to be thrown when a layer is t...
109
341
package dev.morphia.test.annotations; import com.mongodb.client.MongoCollection; import dev.morphia.annotations.Collation; import dev.morphia.annotations.Entity; import dev.morphia.annotations.Field; import dev.morphia.annotations.Id; import dev.morphia.annotations.Index; import dev.morphia.annotations.IndexHelper; im...
10,584
480
/* * 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 * * Unless required by app...
671
399
<filename>core/src/main/java/edu/wpi/grip/generated/opencv_imgproc/enumeration/DistanceTransformMasksEnum.java<gh_stars>100-1000 package edu.wpi.grip.generated.opencv_imgproc.enumeration; import org.bytedeco.javacpp.opencv_imgproc; public enum DistanceTransformMasksEnum { /** mask=3 */ DIST_MASK_3(opencv_img...
239
3,055
<filename>tools/font/build/single_font_files/u8g2_font_missingplanet_tf.c<gh_stars>1000+ /* Fontname: -FreeType-MissingPlanet-Medium-R-Normal--16-160-72-72-P-56-ISO10646-1 Copyright: Extant Glyphs: 190/420 BBX Build Mode: 0 */ const uint8_t u8g2_font_missingplanet_tf[2109] U8G2_FONT_SECTION("u8g2_font_missingpl...
4,001
686
<gh_stars>100-1000 /* Copyright (C) 1996-1997 Id Software, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program i...
6,784
347
# This file is part of the MapProxy project. # Copyright (C) 2010-2012 Omniscale <http://omniscale.de> # # 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/LI...
588
421
<reponame>hjyuan/reapoc import requests # Vuln Base Info def info(): return { "author": "cckuailong", "name": '''HashiCorp Consul and Consul Enterprise up to version 1.9.4 key-value (KV) raw mode is vulnerable to cross-site scripting''', "description": '''''', "severity": "medium",...
1,026
3,212
/* * 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 ...
2,334
604
#include "../src/std_includes.h" #include "../src/matrix.h" #include "../src/function.h" #include "../src/layer.h" #include "../src/network.h" int main(){ // test network creation srand(time(NULL)); size_t hiddenSize[] = {3, 5}; void (*hiddenActivations[])(Matrix*) = {sigmoid, relu}; Network* netwo...
1,525
1,144
package de.metas.material.dispo.commons; import com.google.common.collect.ImmutableList; import de.metas.material.dispo.commons.candidate.CandidateType; import de.metas.material.dispo.model.I_MD_Candidate; import de.metas.material.dispo.model.X_MD_Candidate; import de.metas.util.Services; import lombok.NonNull; import...
1,874
2,151
<filename>ui/chromeos/ime/input_method_menu_manager.h // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/macros.h" #include "base/observer_list.h" #include "ui/chromeos/ime/input_method_menu...
640
963
<filename>core/src/test/java/com/vladmihalcea/book/hpjp/hibernate/association/UnidirectionalOneToManySetIdEqualsTest.java package com.vladmihalcea.book.hpjp.hibernate.association; import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persist...
1,562
15,666
import os import sys from contextlib import suppress from pytorch_lightning import Trainer from pytorch_lightning.strategies.ddp import DDPStrategy from pytorch_lightning.utilities.exceptions import DeadlockDetectedException from tests.helpers.boring_model import BoringModel if os.getenv("PL_RUN_STANDALONE_TESTS", "0...
491
1,647
#ifndef PYTHONIC_INCLUDE_OPERATOR_INDEXOF_HPP #define PYTHONIC_INCLUDE_OPERATOR_INDEXOF_HPP #include "pythonic/include/utils/functor.hpp" PYTHONIC_NS_BEGIN namespace operator_ { template <class A, class B> long indexOf(A &&a, B &&b); DEFINE_FUNCTOR(pythonic::operator_, indexOf); } PYTHONIC_NS_END #endif
144
1,403
<filename>include/LLGL/RenderSystemChild.h /* * RenderSystemChild.h * * This file is part of the "LLGL" project (Copyright (c) 2015-2019 by <NAME>) * See "LICENSE.txt" for license information. */ #ifndef LLGL_RENDER_SYSTEM_CHILD_H #define LLGL_RENDER_SYSTEM_CHILD_H #include "Interface.h" namespace LLGL { /...
520
2,757
<filename>examples/pxScene2d/external/libnode-v10.15.3/deps/openssl/openssl/crypto/idea/idea_lcl.h /* * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a ...
3,263
2,151
<filename>examples/pxScene2d/external/libnode-v10.15.3/deps/v8/src/trap-handler/handler-outside-win.cc // Copyright 2018 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. // PLEASE READ BEFORE CHANGING THIS FILE! // // T...
367
347
from data_guys import DataModel from mapping import Mapping from ..utils import rotten_peel class JPit(object): def __init__(self, name): self.name = name self.main_struct = None self.data_models = [] self.ioctl_id = None self.devname = None self.target_struct = None def __getitem__(self, idx): retur...
773
1,442
#include <drivers/board_privileged.h> #include <drivers/config/board.h> #include <drivers/config/clocks.h> #include <drivers/internal_flash_otp.h> #include <regs/regs.h> namespace Ion { namespace Device { namespace Board { using namespace Regs; void initSystemClocks() { /* System clock * Configure the CPU at 19...
1,716
1,353
package net.lingala.zip4j.model.enums; import net.lingala.zip4j.exception.ZipException; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.fail; public class CompressionMethodTest { @Test public void testGetCompressionMethodFromCodeForU...
269
365
/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be use...
4,885
448
<gh_stars>100-1000 // // Created by moqi on 2019-01-02. // #ifndef FRAMEWORK_MEMPOOL_H #define FRAMEWORK_MEMPOOL_H #include <cstdint> #include <deque> #include <mutex> namespace Cicada{ class IMemPool { public: IMemPool() = default; virtual ~IMemPool() = default; virtual uint8_t *ge...
394
571
package camelinaction; import java.math.BigDecimal; public class PurchaseOrder { private final String name; private final BigDecimal price; private final int amount; public PurchaseOrder(String name, BigDecimal price, int amount) { this.name = name; this.price = price; this.a...
246
417
#import "FOX.h" @interface FOXSpecHelper : NSObject + (NSUInteger)numberOfTestsPerProperty; + (FOXRunnerResult *)resultForAll:(id<FOXGenerator>)generator then:(BOOL(^)(id value))block; + (FOXRunnerResult *)resultForAll:(id<FOXGenerator>)generator then:(BOOL(^)...
401