max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
344
<reponame>jbellis/superpixel-benchmark<gh_stars>100-1000 #include "PDS.hpp" #include "Tools.hpp" #include <density/ScalePyramid.hpp> namespace pds { namespace spds_old { void FindSeedsDepthMipmap_Walk( std::vector<Eigen::Vector2f>& seeds, const std::vector<Eigen::MatrixXf>& mipmaps, int level, unsig...
1,299
812
/* * Copyright (C) 2016 Appflate.io * * 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 ...
686
350
/* * Copyright (c) 2009 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish,...
1,742
339
#include <Python.h> typedef struct { PyObject ob_base; PyObject* filelike; PyObject* blksize; } FileWrapper; PyTypeObject FileWrapper_Type; #define FileWrapper_CheckExact(object) ((object)->ob_type == &FileWrapper_Type) void FileWrapper_Init(void);
102
645
<reponame>xuantan/viewfinder # Copyright 2011 Viewfinder Inc. All Rights Reserved. """Classes to handle file object storage. Intended for local testing. FileObjectStore: store files in a temporary directory FileObjectStoreHandler: serves and stores files on GET and PUT requests. """ __author__ = '<EMAIL> (<NAM...
3,110
665
<filename>testing/MLDB-1911_horizontal_agg_no_from.py<gh_stars>100-1000 # # MLDB-1911_horizontal_agg_no_from.py # <NAME>, 2016-09-30 # This file is part of MLDB. Copyright 2016 mldb.ai inc. All rights reserved. # import unittest from mldb import mldb, MldbUnitTest, ResponseException class Mldb1911HorizontalAggNoFrom(...
938
980
package org.jcodec.movtool.streaming; import java.lang.IllegalStateException; import java.lang.System; import java.lang.IllegalArgumentException; import org.jcodec.common.io.NIOUtils; import org.jcodec.platform.BaseInputStream; import java.io.IOException; import java.nio.ByteBuffer; /** * This class is part of JCod...
1,531
2,209
// // Created by <NAME> on 2019-06-10. // #include <kungfu/yijinjing/util/os.h> namespace kungfu { namespace yijinjing { namespace util { } } }
83
984
<filename>phoenix-core/src/main/java/org/apache/phoenix/mapreduce/index/IndexVerificationOutputRow.java /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownersh...
3,708
356
#include "axis.h" #include <utils/drawable.h> #include "model.h" #include "node.h" #include "spatial.h" #include "light.h" #include <utils/nk.h> #include <utils/shader.h> #include <systems/editmode.h> #include <systems/window.h> #include <candle.h> #define SCALE 0.25f static mesh_t *g_rot_axis_mesh = NULL; static voi...
2,082
4,538
#pragma once /****************************************************** * Constants ******************************************************/ #define IPERF_DEBUG_ENABLE #define IPERF_DEBUG_RECEIVE (1<<0) #define IPERF_DEBUG_SEND (1<<1) #define IPERF_DEBUG_REPORT (1<<2)
121
1,240
<gh_stars>1000+ package com.eventyay.organizer.core.main; import androidx.lifecycle.LiveData; import androidx.lifecycle.MutableLiveData; import androidx.lifecycle.ViewModel; import com.eventyay.organizer.common.Constants; import com.eventyay.organizer.common.ContextManager; import com.eventyay.organizer.common.liveda...
1,171
892
{ "schema_version": "1.2.0", "id": "GHSA-qw86-xx8q-rx6f", "modified": "2022-05-04T00:28:31Z", "published": "2022-05-04T00:28:31Z", "aliases": [ "CVE-2012-0178" ], "details": "Race condition in partmgr.sys in Windows Partition Manager in Microsoft Windows Vista SP2, Windows Server 2008 SP2, R2, and R2 ...
705
1,350
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.data.tables.models; import com.azure.core.annotation.Fluent; /** * A model representing configurable metrics settings of the Table service. */ @Fluent public final class TableServiceMet...
1,118
1,340
import torch import torchio as tio from ...utils import TorchioTestCase class TestZNormalization(TorchioTestCase): """Tests for :class:`ZNormalization` class.""" def test_z_normalization(self): transform = tio.ZNormalization() transformed = transform(self.sample_subject) self.assertAl...
396
1,331
<reponame>fergonaut/metasploit-payloads<filename>c/meterpreter/source/extensions/kiwi/main.h /*! * @file main.h * @brief TLV related bits for the KIWI extension. */ #ifndef _METERPRETER_SOURCE_EXTENSION_KIWI_KIWI_H #define _METERPRETER_SOURCE_EXTENSION_KIWI_KIWI_H #include "../../common/common.h" #define TLV_TYPE_...
286
322
/////////////////////////////////////////////////////////////////////////////// // BSD 3-Clause License // // Copyright (C) 2019-2021, LAAS-CNRS, University of Edinburgh // Copyright note valid unless otherwise stated in individual files. // All rights reserved. /////////////////////////////////////////////////////////...
504
5,169
<filename>Specs/3/9/f/TYKYLibrary/1.3.8/TYKYLibrary.podspec.json { "name": "TYKYLibrary", "version": "1.3.8", "summary": "Library for TYKY", "homepage": "https://github.com/chenteng85912/TYKYLibrary", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "CHENTENG": "<EMAIL>" }, "p...
1,395
417
<reponame>1847123212/TeenyUSB #ifndef __CH56x_BUS8_H__ #define __CH56x_BUS8_H__ #ifdef __cplusplus extern "C" { #endif #define ADDR_NONE 0x00 #define ADDR_6 0x04 #define ADDR_10 0x08 #define ADDR_15 0x0c #define WIDTH_3 0x00 #define WIDTH_5 0x10 #define WIDTH_9 0x20 #define WIDTH_16 0x30 #define HOLD_2 ...
279
742
<reponame>TotalCaesar659/OpenTESArena #include "SkyLightningDefinition.h" void SkyLightningDefinition::init(Buffer<TextureAssetReference> &&textureAssetRefs, double animSeconds) { this->textureAssetRefs = std::move(textureAssetRefs); this->animSeconds = animSeconds; } int SkyLightningDefinition::getTextureCount() c...
190
348
{"nom":"Pietrosella","circ":"2ème circonscription","dpt":"Corse-du-Sud","inscrits":1203,"abs":584,"votants":619,"blancs":53,"nuls":21,"exp":545,"res":[{"nuance":"REG","nom":"<NAME>","voix":291},{"nuance":"LR","nom":"<NAME>","voix":254}]}
97
964
{ "id": "6a2c219f-da5e-4745-941e-5ea8cde23356", "queryName": "Example JSON Reference Does Not Exists", "severity": "INFO", "category": "Structure and Semantics", "descriptionText": "Example reference should exists on components field", "descriptionUrl": "https://swagger.io/specification/#components-object",...
130
1,853
int i(0); int main() { int b(0); }
22
1,645
""" :Description: Sphinx extension to remove leading under-scores from directories names in the html build output directory. """ import os import shutil def setup(app): """ Add a html-page-context and a build-finished event handlers """ app.connect('html-page-context', change_pathto) app.connect(...
460
1,099
package com.snew.video.bean; import java.io.Serializable; /** * 项目名称: NewFastFrame * 创建人: 陈锦军 * 创建时间: 2018/12/14 19:55 */ public class HotVideoItemBean implements Serializable { private String title; private String id; private String url; private int videoType; public int ge...
384
428
package loon.build.sys; /* * 此类用来处理Robovm项目的构建 */ public class Robovm { }
55
1,398
<filename>labs/03_neural_recsys/movielens_paramsearch_results.py import pandas as pd from pathlib import Path import json def load_results_df(folder='results'): folder = Path(folder) results_dicts = [] for p in sorted(folder.glob('**/results.json')): with p.open('r') as f: results_dicts...
213
6,270
<reponame>gabegorelick/aws-sdk-js [ { "type": "feature", "category": "EC2", "description": "ec2.DescribeVpcPeeringConnections pagination support" }, { "type": "feature", "category": "Shield", "description": "The DescribeProtection request now accepts resource ...
153
1,962
package com.bolingcavalry.grpctutorials; import com.bolingcavalry.grpctutorials.lib.AddCartReply; import com.bolingcavalry.grpctutorials.lib.CartServiceGrpc; import com.bolingcavalry.grpctutorials.lib.ProductOrder; import io.grpc.stub.StreamObserver; import lombok.Getter; import lombok.extern.slf4j.Slf4j; import net.d...
1,696
575
<reponame>iridium-browser/iridium-browser // 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. #include "chrome/browser/chromeos/policy/remote_commands/user_command_arc_job.h" #include <memory> #include <st...
1,428
917
<filename>bitcoin-script/src/test/java/com/itranswarp/bitcoin/script/ScriptEngineTest.java package com.itranswarp.bitcoin.script; import static org.junit.Assert.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import org.junit.Test; import com.itranswarp.bitcoin.io.BitcoinInput; import co...
2,482
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. #include "components/ntp_tiles/custom_links_manager_impl.h" #include <memory> #include <string> #include <utility> #include "base/auto_reset.h" #include...
3,106
374
""" This file contains definitions of layers used as building blocks in SMPLParamRegressor """ from __future__ import division import torch import torch.nn as nn import torch.nn.functional as F class FCBlock(nn.Module): """Wrapper around nn.Linear that includes batch normalization and activation functions.""" ...
706
631
/** * 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...
403
326
{ "title": "Blog Details", "enabled": true, "systemId": "blog-details", "canBeAddedToColumn": true, "version": "0.0.0.1", "systemidUpperCase": "BLOG-DETAILS", "systemidCamelCase": "blogDetails" }
85
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. #include "third_party/blink/renderer/modules/csspaint/nativepaint/clip_path_paint_image_generator_impl.h" #include "third_party/blink/renderer/modules/cs...
586
988
<reponame>vpostrigan/xdocreport /** * Copyright (C) 2011-2015 The XDocReport Team <<EMAIL>> * * 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 ...
2,291
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Sainte-Aurence-Cazaux","circ":"1ère circonscription","dpt":"Gers","inscrits":87,"abs":42,"votants":45,"blancs":5,"nuls":1,"exp":39,"res":[{"nuance":"REM","nom":"<NAME>","voix":23},{"nuance":"SOC","nom":"<NAME>","voix":16}]}
115
1,467
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #ifndef IROHA_NETWORK_IMPL_HPP #define IROHA_NETWORK_IMPL_HPP #include "consensus/yac/transport/yac_network_interface.hpp" // for YacNetwork #include "yac.grpc.pb.h" #include <memory> #include <mutex> #include "con...
530
521
<filename>third_party/virtualbox/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp /* vim:set ts=2 sw=2 et cindent: */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License")...
53,539
471
<filename>src/test/java/net/greghaines/jesque/SleepAction.java package net.greghaines.jesque; /** * An action that sleeps for the given number of milliseconds. * * @author <NAME> */ public class SleepAction implements Runnable { private final int millis; /** * Construct a sleep action. * * ...
239
335
{ "word": "Vegetarianism", "definitions": [ "The practice of not eating meat or fish, especially for moral, religious, or health reasons." ], "parts-of-speech": "Noun" }
73
2,151
<filename>chromeos/system/version_loader.h // Copyright (c) 2011 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 CHROMEOS_SYSTEM_VERSION_LOADER_H_ #define CHROMEOS_SYSTEM_VERSION_LOADER_H_ #include <string> #in...
469
765
<filename>lldb/include/lldb/Target/UnixSignals.h //===-- UnixSignals.h -------------------------------------------*- C++ -*-===// // // 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 L...
1,443
2,177
<gh_stars>1000+ /** * 分页 */package org.nutz.dao.pager;
32
2,293
<gh_stars>1000+ #include "Test.h" #include "Pattern.h" #include "dsp/svm_functions.h" class SVMF32:public Client::Suite { public: SVMF32(Testing::testID_t id); virtual void setUp(Testing::testID_t,std::vector<Testing::param_t>& params,Client::PatternMgr *mgr); virtual ...
717
429
<reponame>DEDZTBH/ejml /* * Copyright (c) 2021, <NAME>. All Rights Reserved. * * This file is part of Efficient Java Matrix Library (EJML). * * 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...
886
500
<filename>sdk/src/androidTest/java/ly/count/android/sdk/EventTests.java<gh_stars>100-1000 /* Copyright (c) 2012, 2013, 2014 Countly 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 restrict...
7,645
772
<gh_stars>100-1000 { "danceFeedbackNeedNewDancer": "crwdns304606:0crwdne304606:0", "danceFeedbackNoDancers": "crwdns304608:0crwdne304608:0", "danceFeedbackNoBackground": "crwdns304610:0crwdne304610:0", "danceFeedbackTooManyDancers": "crwdns304612:0crwdne304612:0", "danceFeedbackUseSetSize": "crwdns304614:0crw...
606
2,605
// https://leetcode.com/problems/maximum-equal-frequency/ class Solution { public: int maxEqualFreq(vector<int>& nums) { const int n = nums.size(); int answer = 0; map<int,int> freq; map<int,int> freq_freq; for(int i = 0; i < n; i++) { int x = nums[i]; ...
1,053
2,113
<gh_stars>1000+ //~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~// // Arcane-FX for MIT Licensed Open Source version of Torque 3D from GarageGames // Copyright (C) 2015 Faust Logic, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of th...
3,904
473
#!/usr/bin/env python # # Copyright (C) 2014, 2015 # <NAME> <<EMAIL>> # Narf Industries <<EMAIL>> # # 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 ...
4,338
571
package de.gurkenlabs.litiengine.entities; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.Collection; import org.junit.jupiter.api.BeforeEach; import org.junit....
736
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Marcilly-en-Villette","circ":"3ème circonscription","dpt":"Loiret","inscrits":1633,"abs":804,"votants":829,"blancs":69,"nuls":21,"exp":739,"res":[{"nuance":"REM","nom":"<NAME>","voix":428},{"nuance":"LR","nom":"<NAME>","voix":311}]}
116
319
<reponame>84KaliPleXon3/OMEN /* * nGramReader.h * @authors: <NAME>, <NAME> * @copyright: Horst Goertz Institute for IT-Security, Ruhr-University Bochum * * Provides functions to read nGram and the according configuration from files * under the given filenames and store them in the given arrays. * */ #ifndef NG...
584
402
/* * Copyright 2000-2021 Vaadin 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 agreed to...
1,803
665
from adafruit_circuitplayground.express import cpx while True: cpx.red_led = True
32
860
<reponame>xiefan46/samza /* * 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...
577
2,414
<filename>SpringBoot咨询发布系统实战项目源码/springboot-project-news-publish-system/src/main/java/com/site/springboot/core/controller/admin/UploadController.java package com.site.springboot.core.controller.admin; import com.site.springboot.core.config.Constants; import com.site.springboot.core.util.Result; import com.site.springb...
892
2,797
class UnionFind(object): """ Disjoint Set data structure supporting union and find operations used for Kruskal's MST algorithm Methods - insert(a, b) -> inserts 2 items in the sets get_leader(a) -> returns the leader(representative) corresponding to item a make_union(leadera, leade...
1,319
848
<gh_stars>100-1000 /* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by ...
546
1,668
package org.elixir_lang.psi.scope.call_definition_clause; import com.intellij.codeInsight.completion.CompletionType; import com.intellij.codeInsight.lookup.LookupElement; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiReference; import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixture...
832
841
<filename>testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/providers/multipart/resource/InputPartDefaultContentTypeWildcardOverwriteContainerBean.java package org.jboss.resteasy.test.providers.multipart.resource; import org.jboss.resteasy.annotations.providers.multipart.PartType; import jakarta.ws.rs...
266
2,970
# # Copyright 2018 Analytics Zoo 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 ...
885
701
package com.c9mj.platform.demo_list.mvp.model.bean; public class DemoListBean { public DemoListBean() { } }
50
6,098
<gh_stars>1000+ package water.rapids.ast.prims.advmath; import water.fvec.Frame; import water.fvec.Vec; import water.rapids.Env; import water.rapids.vals.ValFrame; import water.rapids.ast.AstPrimitive; import water.rapids.ast.AstRoot; import java.util.Random; public class AstStratifiedKFold extends AstPrimitive { ...
380
14,668
<reponame>chromium/chromium<filename>content/browser/attribution_reporting/attribution_storage_sql_migrations.cc<gh_stars>1000+ // Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/browser/...
17,022
1,202
<filename>source/tvision/tlabel.cpp<gh_stars>1000+ /*------------------------------------------------------------*/ /* filename - tlabel.cpp */ /* */ /* function(s) */ /* ...
1,548
1,168
/* * Copyright (C) 2019 <NAME> <<EMAIL>> * * 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...
2,713
488
<gh_stars>100-1000 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <stdint.h> #include <map> #include <stack> #include <list> #if 1 #ifdef __cplusplus extern "C" { #endif #endif typedef std::pair<uint64_t, uint64_t> IntPair; IntPair insertIntoSLK(); void removeFromSLK(); IntP...
367
1,475
<reponame>mhansonp/geode /* * 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 *...
637
6,240
<filename>src/com/google/javascript/jscomp/Es6CheckModule.java<gh_stars>1000+ /* * Copyright 2017 The Closure Compiler 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 * * ...
1,271
3,633
import pytest import stanza from stanza.utils.conll import CoNLL from stanza.models.common.doc import Document from stanza.tests import * pytestmark = [pytest.mark.pipeline, pytest.mark.travis] # data for testing EN_DOCS = ["<NAME> was born in Hawaii.", "He was elected president in 2008.", "Obama attended Harvard."...
822
892
{ "schema_version": "1.2.0", "id": "GHSA-24wf-7vf2-pv59", "modified": "2021-06-25T13:06:33Z", "published": "2021-06-28T16:38:29Z", "aliases": [ "CVE-2021-29620" ], "summary": "XXE vulnerability on Launch import with externally-defined DTD file", "details": "### Impact\nStarting from version 3.1.0 we...
1,070
348
{"nom":"Saint-Antonin-de-Lacalm","circ":"1ère circonscription","dpt":"Tarn","inscrits":203,"abs":94,"votants":109,"blancs":9,"nuls":5,"exp":95,"res":[{"nuance":"DVD","nom":"<NAME>","voix":62},{"nuance":"FN","nom":"<NAME>","voix":33}]}
95
778
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: <NAME>, <NAME> // // // External includes // Pr...
2,151
884
/* * Copyright 2014 - 2021 Blazebit. * * 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 agre...
1,072
348
{"nom":"Caracas","circ":"2ème circonscription","dpt":"Français établis hors de France","inscrits":3012,"abs":2694,"votants":318,"blancs":10,"nuls":3,"exp":305,"res":[{"nuance":"REM","nom":"<NAME>","voix":259},{"nuance":"ECO","nom":"M. <NAME>","voix":46}]}
99
6,098
package water.rapids.ast.prims.reducers; import org.junit.BeforeClass; import org.junit.Test; import water.TestUtil; import water.fvec.Frame; import water.rapids.Rapids; import water.rapids.Val; import water.util.ArrayUtils; import static org.junit.Assert.assertEquals; /** * Test the AstNaCnt.java class */ public...
530
381
<filename>jgiven-examples/src/test/java/com/tngtech/jgiven/examples/userguide/GivenSomeState.java package com.tngtech.jgiven.examples.userguide; // tag::noPackage[] import com.tngtech.jgiven.Stage; public class GivenSomeState extends Stage<GivenSomeState> { public GivenSomeState some_state() { return self...
127
2,921
<gh_stars>1000+ { "name": "<NAME>", "type": "BEP20", "symbol": "BDCC", "decimals": 18, "website": "https://www.thebitica.com/", "description": "Bitica Token (BDCC), created in 2018, it is based on BEP-20 Smart Technology which is owned by Block Beats Company Registered in Estonia (the first coun...
173
353
package me.maxdev.popularmoviesapp.ui.detail; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.support.annotation.ColorInt; import android.support.annotation.Nullable; import android.support.v4.content.ContextCompat; import android.support.v4.view.ViewCompat; import andro...
4,926
1,144
<filename>backend/de.metas.swat/de.metas.swat.base/src/main/java/org/adempiere/process/AD_ColumnCallout_Migrate.java /** * */ package org.adempiere.process; /* * #%L * de.metas.swat.base * %% * Copyright (C) 2015 metas GmbH * %% * This program is free software: you can redistribute it and/or modify * it unde...
1,806
411
<reponame>sumau/tick # License: BSD 3 clause import pickle import unittest import numpy as np from tick.base import TimeFunction from tick.hawkes import (HawkesKernel0, HawkesKernelExp, HawkesKernelSumExp, HawkesKernelPowerLaw, HawkesKernelTimeFunc) class Test(unittest.TestCase): def s...
1,529
923
<gh_stars>100-1000 package core.config; import java.util.logging.Logger; import argo.jdom.JsonRootNode; public class Parser1_0 extends ConfigParser { private static final Logger LOGGER = Logger.getLogger(Parser1_0.class.getName()); @Override protected String getVersion() { return "1.0"; } @Override protec...
215
310
<filename>research/compression/entropy_coder/dataset/synthetic_model.py # Copyright 2016 The TensorFlow Authors All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ht...
795
416
/* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef _MOUNT_H_RPCGEN #define _MOUNT_H_RPCGEN #define RPCGEN_VERSION 199506 #include <rpc/rpc.h> #define MNTPATHLEN 1024 #define MNTNAMLEN 255 #define FHSIZE 32 typedef char fhandle[FHSIZE]; #ifdef __cplusplus extern "C" bool_t xdr_fhandle...
2,570
2,294
<filename>tutorials/W2D3_BiologicalNeuronModels/solutions/W2D3_Tutorial1_Solution_eba2370f.py """ If we use a DC input, the F-I curve is deterministic, and we can found its shape by solving the membrane equation of the neuron. If we have GWN, as we increase the sigma, the F-I curve has a more linear shape, and the neu...
117
4,403
<filename>hutool-core/src/test/java/cn/hutool/core/clone/CloneTest.java package cn.hutool.core.clone; import lombok.Data; import lombok.EqualsAndHashCode; import org.junit.Assert; import org.junit.Test; /** * 克隆单元测试 * @author Looly * */ public class CloneTest { @Test public void cloneTest(){ //实现Cloneable接口...
514
354
<reponame>muehleisen/OpenStudio<filename>src/energyplus/Test/AirLoopHVAC_GTest.cpp /*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights ...
7,290
713
/** * {@link org.infinispan.manager.EmbeddedCacheManager}-specific listener events * * @public */ package org.infinispan.notifications.cachemanagerlistener.event;
50
329
<filename>macroslib/tests/expectations/return_foreign_enum_as_err.cpp "std::variant<Moo, Foo> f() const"; "Foo f2(Foo a0) const noexcept;"; r#"template<bool OWN_DATA> inline std::variant<Moo, Foo> BooWrapper<OWN_DATA>::f() const noexcept { struct CRustResult4232mut3232c_voidu32 ret = Boo_f(this->self_...
353
34,359
<reponame>Harshitha91/Tmdb-react-native-node<filename>ReactNativeFrontend/ios/Pods/boost/boost/detail/winapi/crypt.hpp /* * Copyright 2017 <NAME> * * Distributed under the Boost Software License, Version 1.0. * See http://www.boost.org/LICENSE_1_0.txt * * This header is deprecated, use boost/winapi/crypt.hpp inst...
288
1,531
<reponame>alykhank/tailor package com.sleekbyte.tailor.common; import static junit.framework.TestCase.assertEquals; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.runners.MockitoJUnitRunner; /** * Tests for {@link Severity}. */ @RunWith(MockitoJUnitRunner.class) public class SeverityTes...
542
892
<reponame>westonsteimel/advisory-database-github { "schema_version": "1.2.0", "id": "GHSA-9m3w-j6gp-86c9", "modified": "2022-05-02T03:41:51Z", "published": "2022-05-02T03:41:51Z", "aliases": [ "CVE-2009-3120" ], "details": "Cross-site scripting (XSS) vulnerability in public/index.php in BIGACE Web CMS...
450
5,411
<filename>code/components/rage-graphics-payne/src/DrawCommands.cpp #include "StdInc.h" #include "DrawCommands.h" #include "Hooking.h" #include "Rect.h" #define PURECALL() __asm { jmp _purecall } static hook::cdecl_stub<void(void(*)(uint32_t, uint32_t), uint32_t*, uint32_t*)> enqueueGenericDC2Args([] () { re...
2,559
435
<filename>pydx-2016/videos/pydx-2016-ansible-101.json { "copyright_text": "Standard YouTube License", "description": "PyDX 2016 talk by <NAME>\n\nWanna use an automation platform written in Python? Of course you do. And I say \"automation platform\" rather than \"configuration management\" because Ansible isn't jus...
312
302
#include "iresourcemodel.h" #include "every_cpp.h" namespace BrowserAutomationStudioFramework { IResourceModel::IResourceModel(QObject *parent) : QObject(parent) { } }
76
332
<filename>plugins/plugin_metadata/python/plugin_metadata.py #!/usr/bin/env python # -*- coding: utf-8 -*- """A simple module that checks if the Plugin Metadata file was sourced correctly.""" # IMPORT THIRD-PARTY LIBRARIES from pxr import Sdf, Vt def main(): """Run the main execution of the current script.""" ...
255
971
<reponame>adamliheng/DataLink package com.ucar.datalink.worker.core.boot; import com.alibaba.fastjson.parser.ParserConfig; import com.ucar.datalink.biz.service.*; import com.ucar.datalink.common.utils.IPUtils; import com.ucar.datalink.domain.worker.WorkerInfo; import com.ucar.datalink.biz.utils.DataLinkFactory; import...
4,151