max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
575
<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. #include "chrome/browser/ui/app_list/arc/arc_fast_app_reinstall_starter.h" #include "chrome/browser/profiles/profile.h" #i...
1,061
418
// // BFAPIRequestOrderInfo+BFValidation.h // OpenShop // // Created by <NAME> on 21.01.16. // Copyright © 2016 Business-Factory. All rights reserved. // #import "BFAPIRequestOrderInfo.h" NS_ASSUME_NONNULL_BEGIN /* * `BFValidation` category offers methods for `BFAPIRequestOrderInfo` validation */ @interface BF...
275
643
<reponame>Machiaweliczny/oppailang /* Copyright © 2011 MLstate This file is part of Opa. 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 limitat...
782
3,459
#ifndef AF80_H_ #define AF80_H_ #include "atari.h" #include <stdio.h> extern int AF80_palette[16]; int AF80_Initialise(int *argc, char *argv[]); void AF80_Exit(void); void AF80_InsertRightCartridge(void); int AF80_ReadConfig(char *string, char *ptr); void AF80_WriteConfig(FILE *fp); int AF80_D5GetByte(UWORD addr, int...
256
764
{"symbol": "GBX","address": "0x12fCd6463E66974cF7bBC24FFC4d40d6bE458283","overview":{"en": ""},"email": "<EMAIL>","website": "https://www.globitexico.com/","state": "NORMAL","links": {"blog": "https://medium.com/@globitex","twitter": "https://twitter.com/globitex_","telegram": "https://t.me/globitex","github": ""}}
129
964
<reponame>Ilanad/kics [ { "queryName": "Azure Instance Using Basic Authentication", "severity": "HIGH", "line": 53, "filename": "positive1.json" }, { "queryName": "Azure Instance Using Basic Authentication", "severity": "HIGH", "line": 40, "filename": "positive2.json" } ]
130
403
<filename>snippets/camunda-openapi-client/camunda-openapi-client-spring/src/test/java/com/camunda/consulting/openapi/client/handler/HistoricDecisionRequirementsDefinitionApiTest.java /* * Camunda Platform REST API * OpenApi Spec for Camunda Platform REST API. * * The version of the OpenAPI document: 7.16.0 * * ...
526
17,085
<reponame>zmxdream/Paddle # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # ...
4,650
2,494
# Generated via `gentags.py src/tag.in`. # Do not edit; edit src/tag.in instead. # clang-format off TagNames = [ "HTML", "HEAD", "TITLE", "BASE", "LINK", "META", "STYLE", "SCRIPT", "NOSCRIPT", "TEMPLATE", "BODY", "ARTICLE", "SECTION", "NAV", "ASIDE", "H1", "H2", "H3", "H4", "H5",...
959
571
<filename>src/de/gurkenlabs/litiengine/environment/tilemap/ITileOffset.java<gh_stars>100-1000 package de.gurkenlabs.litiengine.environment.tilemap; public interface ITileOffset { public int getX(); public int getY(); }
89
1,139
<filename>hard-gists/3018bf3643f80798bde75c17571a38a9/snippet.py #!/usr/bin/python # # Simple script intended to perform Carpet Bombing against list # of provided machines using list of provided LSA Hashes (LM:NTLM). # The basic idea with Pass-The-Hash attack is to get One hash and use it # against One machine. There...
3,066
394
package net.earthcomputer.multiconnect.protocols.generic; @FunctionalInterface public interface IRegistryUpdateListener<T> { void onUpdate(T thing, boolean inPlace); default boolean callOnRestore() { return false; } }
80
1,144
<filename>backend/de.metas.vertical.healthcare.alberta/src/main/java/de/metas/vertical/healthcare/alberta/bpartner/user/AlbertaUserRepository.java<gh_stars>1000+ /* * #%L * de.metas.vertical.healthcare.alberta * %% * Copyright (C) 2021 metas GmbH * %% * This program is free software: you can redistribute it and/o...
1,015
937
<reponame>HaoZhang95/PythonAndMachineLearning """ shell命令解析器 1- 作用:对用户输入的命令进行解析,中间翻译者 内核 <-> shell命令解析器<-> 终端 01Linux篇章day01,day02先略过,课程内容看pdf文件 """
161
389
<reponame>tcmoore32/sheer-madness /* * Copyright 2014 Guidewire Software, Inc. */ package gw.internal.gosu.compiler; import java.lang.reflect.Method; /** */ public class PropertyIdentifierTest extends ByteCodeTestBase { public void testInstanceVarProperty() throws Exception { Object obj = newPropertyIdent...
1,215
392
<reponame>mouthwater/rgb /* * Index out of bounds exception. */ #ifndef LANG__EXCEPTIONS__EX_INDEX_OUT_OF_BOUNDS_HH #define LANG__EXCEPTIONS__EX_INDEX_OUT_OF_BOUNDS_HH #include "lang/exceptions/exception.hh" namespace lang { namespace exceptions { /* * Index out of bounds exception. */ class ex_index_out_of_boun...
415
5,823
<filename>shell/platform/glfw/headless_event_loop.cc // Copyright 2013 The Flutter 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 "flutter/shell/platform/glfw/headless_event_loop.h" #include <atomic> #include <utility> na...
328
4,071
/* * \file tensorflow_importer.cc * \brief The tensorflow importer */ #include "blaze/model_importer/tensorflow_importer.h" #include "blaze/common/proto_configure.h" #include "blaze/common/string_util.h" namespace blaze { TensorFlowImporter::TensorFlowImporter() { SetProcessNodeFunction("Placeholder", [this](co...
2,775
420
#!/usr/bin/env python from distutils.core import setup long_description = ''' Essential Paxos provides basic implementations of the Paxos algorithm. The distinguishing characteristic of this implementation, as compared to other freely available and open-source implementations, is that this library is independent of a...
520
6,098
package hex.schemas; import hex.ensemble.StackedEnsembleModel; import water.api.API; import water.api.EnumValuesProvider; import water.api.schemas3.KeyV3; import water.api.schemas3.ModelOutputSchemaV3; import water.api.schemas3.ModelSchemaV3; public class StackedEnsembleModelV99 extends ModelSchemaV3<StackedEnsembleM...
625
675
<reponame>hase1128/dragonfly<filename>examples/detailed_use_cases/obj_5d.py """ Synthetic function for 5D optimisation. -- kirthevasank """ from moo_5d import compute_objectives as moo_objectives def objective(x): """ Computes the objectives. """ return moo_objectives(x)[0] # Just returns conductivity
108
435
<reponame>allen91wu/data { "description": "The Pandas soon realized there's no way they are going to survive the\nordeals and hardships of this world, if they didn't finally and without\nthe blink of an eye of hesitation pull themselves together, stop being\nthe lazy fluffy beings, they have long been known for and s...
683
12,278
<gh_stars>1000+ // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; import java.util.*; public abstract class AbstractMutableOptions { protected static final String KEY_VALUE_PAIR_SEPARATOR = ";"; protected static final char KEY_VALUE_SEPARATOR = '='; static final Stri...
3,068
482
<filename>code/iaas/logic/src/main/java/io/cattle/platform/process/cache/ClearCacheHandler.java package io.cattle.platform.process.cache; import io.cattle.platform.core.cache.DBCacheManager; import io.cattle.platform.deferred.util.DeferredUtils; import io.cattle.platform.engine.handler.AbstractProcessLogic; import io....
709
488
#include<stdalign.h> // void *aligned_alloc(size_t algn, size_t size); void foo() { // Test use of the aligned_alloc() function defined in stdalign.h void* memory = aligned_alloc(1,2); }
77
463
<reponame>dentou/Hive2Hive package org.hive2hive.core.exceptions; public class NoSessionException extends Hive2HiveException { private static final long serialVersionUID = 4263677549436609207L; public NoSessionException() { super("No session found."); } }
86
314
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "CDStructures.h" #import <IDEKit/IDEMediaRepository.h> #import "IDEDefaultMediaLibrary-Protocol.h" @class IDEFileReferenceContainerObserver, IDETimedInvalidatableObjectCache, NS...
564
190,993
/* Copyright 2021 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 applicable law or a...
617
488
<gh_stars>100-1000 /// \file ParallelRTS.upc /// /// \brief communication interface for RTED/UPC /// /// \email <EMAIL> #ifndef _PARALLEL_RTS_H #define _PARALLEL_RTS_H #include "CppRuntimeSystem/rted_iface_structs.h" #include "CppRuntimeSystem/ptrops.h" #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #ifd...
1,040
372
<reponame>mjhopkins/google-api-java-client-services<gh_stars>100-1000 /* * 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...
1,597
892
{ "schema_version": "1.2.0", "id": "GHSA-vh8v-h2hp-7m6q", "modified": "2022-05-01T17:53:21Z", "published": "2022-05-01T17:53:21Z", "aliases": [ "CVE-2007-1419" ], "details": "The Java Management Extensions Remote API Remote Method Invocation over Internet Inter-ORB Protocol (JMX RMI-IIOP) API in Java ...
622
360
<reponame>Yanci0/openGauss-server /*-------------------------------------------------------------------- * bgworker.h * Pluggable background workers interface * * A background worker is a process able to run when create index for redistribution, * create a parallel bgworker framework to scan and rebuild index...
1,156
460
<reponame>juandesant/astrometry.net # This file is part of the Astrometry.net suite. # Licensed under a 3-clause BSD style license - see LICENSE from __future__ import print_function import matplotlib matplotlib.use('Agg') import pylab as plt import sys from astrometry.sdss.dr8 import * import numpy as np def test_as...
1,366
1,244
<filename>arch/powerpc/crt_arch.h __asm__("\ .global _start \n\ .type _start, %function \n\ _start: \n\ mr 3, 1 \n\ clrrwi 1, 1, 4 \n\ li 0, 0 \n\ stwu 1, -16(1) \n\ mtlr 0 \n\ stw 0, 0(1) \n\ bl __cstart \n\ ");
134
364
<reponame>xiaobing007/dagli<filename>math-distribution/src/main/java/com/linkedin/dagli/math/distribution/ArrayDiscreteDistribution.java package com.linkedin.dagli.math.distribution; import com.linkedin.dagli.util.array.ArraysEx; import it.unimi.dsi.fastutil.objects.Object2DoubleMap; import java.util.ArrayList; import...
3,547
879
<filename>sdk/src/main/java/org/zstack/sdk/VolumeBackupStorageRefInventory.java package org.zstack.sdk; public class VolumeBackupStorageRefInventory { public java.lang.String volumeBackupUuid; public void setVolumeBackupUuid(java.lang.String volumeBackupUuid) { this.volumeBackupUuid = volumeBackupU...
624
1,537
/**************************************************************************** * * Copyright (c) 2017, 2021 PX4 Development Team. 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. Re...
7,544
8,323
<filename>sympy/combinatorics/tests/test_util.py from sympy.combinatorics.named_groups import SymmetricGroup, DihedralGroup,\ AlternatingGroup from sympy.combinatorics.permutations import Permutation from sympy.combinatorics.util import _check_cycles_alt_sym, _strip,\ _distribute_gens_by_base, _strong_gens_from...
2,225
3,710
/*max@home*/ #include "twain.h" #include "ttwain_state.h" #include "ttwainP.h" #include "ttwain_statePD.h" #include "ttwain_util.h" #ifdef __cplusplus extern "C" { #endif extern void TTWAIN_SetState(TWAINSTATE status); int TTWAIN_LoadSourceManagerPD(void) { if (TTWAIN_GetState() >= TWAIN_SM_LOADED) return TR...
399
335
{ "word": "Natter", "definitions": [ "A casual and leisurely conversation." ], "parts-of-speech": "Noun" }
59
304
<reponame>ProfesseurGibaud/TestSite from django.urls import path # An alternative way is to use relative imports from .views import hello urlpatterns = [ path('', hello), ]
60
354
{ "name": "speakeasy-nlp", "description": "A simple natural language processor for node javascript.", "homepage": "http://www.github.com/nhunzaker/speakeasy", "keywords": [ "natural language" ], "scripts": { "format": "prettier --write lib/**/**/**.{js,md}", "test": "vows" }, "license": "MIT...
293
892
{ "schema_version": "1.2.0", "id": "GHSA-mxp2-5233-73gr", "modified": "2022-05-13T01:51:20Z", "published": "2022-05-13T01:51:20Z", "aliases": [ "CVE-2018-2566" ], "details": "Vulnerability in the Integrated Lights Out Manager (ILOM) component of Oracle Sun Systems Products Suite (subcomponent: Remote ...
689
313
<reponame>gridgentoo/titus-control-plane<gh_stars>100-1000 /* * Copyright 2018 Netflix, 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/LICE...
2,005
1,350
<reponame>Shashi-rk/azure-sdk-for-java<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.security.models; import com.azure.core.annotation.Fluent; import com.azure...
1,006
4,036
def original(the_ast): def walk(node, in_function, in_name_main): def flags(): return in_function * 2 + in_name_main if isinstance(node, ast.Module): for import_node in walk(node.body, in_function, in_name_main): yield import_node elif isinstance(nod...
1,333
2,830
<reponame>nitikagarw/openwhisk<filename>ansible/files/auth_design_document_for_subjects_db_v2.0.0.json<gh_stars>1000+ { "_id": "_design/subjects.v2.0.0", "views": { "identities": { "map": "function (doc) {\n if (doc.namespaces && !doc.blocked) {\n doc.namespaces.forEach(function(namespace) {\n va...
249
2,151
/* * Copyright (c) 2014 The Native Client 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 <string.h> #include "native_client/tests/pnacl_dynamic_loading/test_pso.h" static int var = 2345; /* Zero-initialized variabl...
414
2,542
<reponame>gridgentoo/ServiceFabricAzure // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ----------------------------------------------------...
842
3,482
#include <opencv2/core.hpp> #include <opencv2/highgui.hpp> #include <iostream> #include <math.h> // BGR -> HSV cv::Mat BGR2HSV(cv::Mat img){ // get height and width int width = img.cols; int height = img.rows; float r, g, b; float h, s, v; float _max, _min; // prepare output cv::Mat hsv = cv::Mat::ze...
1,572
6,132
<reponame>matthewpruett/angr<filename>angr/analyses/cfg/indirect_jump_resolvers/amd64_elf_got.py import logging from capstone.x86_const import X86_REG_RIP from pyvex.stmt import IMark from .resolver import IndirectJumpResolver l = logging.getLogger(name=__name__) class AMD64ElfGotResolver(IndirectJumpResolver): ...
837
526
/* SPDX-License-Identifier: Apache-2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs; import com.fasterxml.jackson.databind.ObjectMapper; import org.odpi.openmetadata.repositoryservices.connect...
3,572
307
package com.tairanchina.csp.avm.service; import com.tairanchina.csp.avm.entity.App; /** * Created by hzlizx on 2018/6/25 0025 */ public interface AppService { /** * 根据应用ID获取应用 * @param tenantAppId 应用ID * @return 应用 */ App findAppByTenantAppId(String tenantAppId); }
166
1,444
<gh_stars>1000+ package mage.cards.a; import java.util.UUID; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.EntersBattlefieldTriggeredAbility; import mage.abilities.effects.OneShotEffect; import mage.abilities.keyword.VigilanceAbility; import mage.cards.CardImpl; import mage.cards.Ca...
1,020
1,031
int foofunction(int i) { return i *= 10; } struct FooClass { int foomethod(int i) { return i += 5; } };
52
2,113
<reponame>dandycheung/Markwon<gh_stars>1000+ package io.noties.markwon.app.samples.html; import android.text.style.AbsoluteSizeSpan; import androidx.annotation.NonNull; import java.util.Collection; import java.util.Collections; import java.util.Random; import io.noties.markwon.AbstractMarkwonPlugin; import io.notie...
952
582
<reponame>CyberSinh/chromaprint<gh_stars>100-1000 #include <vector> #include <algorithm> #include <gtest/gtest.h> #include "fft_frame.h" #include "chroma.h" using namespace chromaprint; class FeatureVectorBuffer : public FeatureVectorConsumer { public: void Consume(std::vector<double> &features) { m_features = fe...
1,615
339
<reponame>aliteff/ddd-strategic-design-spring-boot package com.innoq.mploed.ddd.customercontact; import io.prometheus.client.spring.boot.EnablePrometheusEndpoint; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication @EnableProme...
161
1,137
<reponame>Q-Y-H/fitlog<filename>tests/fastgit/test_fastgit.py<gh_stars>1000+ import unittest import os import shutil from fitlog.fastgit import committer class TextExample(unittest.TestCase): def setUp(self): # 定义一个setup,放一些准备的工作,或者准备一些测试数据。 os.mkdir('testArea') def test_init(self): ret = co...
381
313
<gh_stars>100-1000 /* * Copyright 2021 Netflix, 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 applica...
2,485
369
/* * Eos - A 3D Morphable Model fitting library written in modern C++11/14. * * File: include/eos/render/render.hpp * * Copyright 2014, 2015 <NAME> * * 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 t...
4,152
435
<gh_stars>100-1000 { "description": "In the real-world there are 10000s of B2B companies. Their app-stack fits the multi-tenant model - each tenant(customer) deals with it\u2019s own data. It is super critical to build scalable applications which gives the company leeway to grow as more customers get on-boarded. Let\...
273
4,879
#include "generator/processor_world.hpp" #include "generator/cities_boundaries_builder.hpp" #include "generator/feature_builder.hpp" #include "generator/generate_info.hpp" #include "defines.hpp" namespace generator { ProcessorWorld::ProcessorWorld(std::shared_ptr<FeatureProcessorQueue> const & queue, ...
414
491
<gh_stars>100-1000 package top.naccl.service; import top.naccl.entity.CityVisitor; public interface CityVisitorService { void saveCityVisitor(CityVisitor cityVisitor); }
60
306
/* * Copyright (c) 2015 IBM Corporation and others. * * 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 applicab...
1,793
348
{"nom":"<NAME>","circ":"1ère circonscription","dpt":"Yonne","inscrits":436,"abs":223,"votants":213,"blancs":16,"nuls":5,"exp":192,"res":[{"nuance":"LR","nom":"<NAME>","voix":108},{"nuance":"REM","nom":"<NAME>","voix":84}]}
87
365
# Copyright 2021 Zilliz. 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 applicable law or agree...
852
348
<filename>docs/data/leg-t2/040/04003204.json {"nom":"Nerbis","circ":"3ème circonscription","dpt":"Landes","inscrits":211,"abs":66,"votants":145,"blancs":13,"nuls":6,"exp":126,"res":[{"nuance":"SOC","nom":"M. <NAME>","voix":93},{"nuance":"REM","nom":"<NAME>","voix":33}]}
111
3,734
<filename>java8/src/main/java/com/shekhargulati/ninetynine_problems/_02_arithmetic/P37.java package com.shekhargulati.ninetynine_problems._02_arithmetic; /** * (**) Determine the greatest common divisor of two positive integer numbers. */ public class P37 { public static int gcd(int first, int second) { ...
258
1,449
<gh_stars>1000+ #include "downloader/downloader.h" #include <QCoreApplication> #include <QEventLoop> #include <QObject> #include <QSettings> #include <qmath.h> #include <iostream> #include <utility> #include "downloader/download-query-group.h" #include "downloader/image-downloader.h" #include "downloader/printers/print...
2,643
333
from collections import Counter from foo.project_settings import * from operator import itemgetter import sys import json if __name__ == '__main__': pslug = sys.argv[1] if not does_project_exist(pslug): raise NameError(project_dir(pslug) + " does not exist") with open(words_transcript_path(pslug))...
614
480
<filename>options/internal/include/mlibc/debug.hpp #ifndef MLIBC_DEBUG_HPP #define MLIBC_DEBUG_HPP #include <frg/logging.hpp> namespace mlibc { struct InfoSink { // constexpr so that this can be initialized statically. constexpr InfoSink() = default; void operator() (const char *message); }; struct PanicSink { ...
217
335
{ "word": "Untidy", "definitions": [ "Not arranged neatly and in order.", "Not inclined to keep one's possessions or appearance neat and in order." ], "parts-of-speech": "Adjective" }
83
32,544
package com.baeldung.hamcrest; import com.baeldung.hamcrest.objectmatchers.City; import com.baeldung.hamcrest.objectmatchers.Location; import org.junit.Test; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; public class HamcrestObjectUnitTest { @Test public void gi...
594
364
<gh_stars>100-1000 package io.github.jklingsporn.vertx.jooq.shared; import io.vertx.core.json.JsonArray; import org.jooq.Converter; /** * Created by jensklingsporn on 04.10.16. * Use this converter to convert any varchar/String column into a JsonArray. */ public class JsonArrayConverter implements Converter<String...
298
1,025
<reponame>pkh/Core-Data-Editor #import <Foundation/Foundation.h> @interface CDEManagedObjectIDToStringValueTransformer : NSValueTransformer #pragma mark - Register + (void)registerDefaultManagedObjectIDToStringValueTransformer; @end
76
2,338
<gh_stars>1000+ // RUN: %clang -E -mspeculative-load-hardening %s -o - | FileCheck --check-prefix=CHECK-SLH %s // RUN: %clang -E -mno-speculative-load-hardening %s -o - | FileCheck --check-prefix=CHECK-NOSLH %s // RUN: %clang -E %s -o - | FileCheck --check-prefix=CHECK-DEFAULT %s #if __has_feature(speculative_load_har...
213
5,169
<reponame>ftapp/cocoapods { "name": "SobrCameraView", "version": "0.2.1", "summary": "A simple UIView-Subclass which enables border detection of documents.", "homepage": "https://github.com/softwarebrauerei/SobrCameraView-ios", "license": "MIT", "authors": { "<NAME> AG": "<EMAIL>" }, "source": { ...
220
315
package io.budgetapp.model; import java.io.Serializable; /** * */ public class Point implements Serializable { private static final long serialVersionUID = -4254482540288351126L; private String label; private long key; private double value; private PointType pointType; public Point(String ...
285
326
/* //-------------------------------------------------------------------------------- //-- //-- This file is owned and controlled by Xilinx and must be used solely //-- for design, simulation, implementation and creation of design files //-- limited to Xilinx devices or technologies. Use with non-Xilinx //-- devices or...
2,426
351
{ "request": { "api_url": "https://api.baremetrics.com/v1/account", "headers": { "Authorization": "Bearer TEST" } }, "response": { "error": "Unauthorized. Token not found (001)" }, "response-headers": { "Cache-Control":"no-cache", "X-Versio...
674
729
import json import pytest from click.testing import CliRunner from sqlite_utils import Database, cli def test_memory_basic(): result = CliRunner().invoke(cli.cli, ["memory", "select 1 + 1"]) assert result.exit_code == 0 assert result.output.strip() == '[{"1 + 1": 2}]' @pytest.mark.parametrize("sql_fro...
3,947
335
{ "word": "Scrimmage", "definitions": [ "A confused struggle or fight.", "A sequence of play beginning with the placing of the ball on the ground with its longest axis at right angles to the goal line.", "A session in which teams practise by playing a simulated game." ], "parts-o...
115
1,760
<filename>Contests/USACO Training/Ch 1/1.5 pprime.cpp /* ID: bqi3431 PROG: pprime LANG: C++11 */ #include <iostream> #include <fstream> #include <vector> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; typedef long long ll; typedef vect...
875
2,151
<reponame>zipated/src // 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. #ifndef ASH_WM_DRAG_WINDOW_RESIZER_MASH_H_ #define ASH_WM_DRAG_WINDOW_RESIZER_MASH_H_ #include <memory> #include "ash/wm/window_re...
380
634
<reponame>vzsky/Algorithms /* Petar 'PetarV' Velickovic Data Structure: Binary Indexed Tree */ #include <stdio.h> #include <math.h> #include <string.h> #include <iostream> #include <vector> #include <list> #include <string> #include <algorithm> #include <queue> #include <stack> #include <set> #include <map> #include...
438
478
<gh_stars>100-1000 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once namespace AdaptiveCards::Rendering::Uwp::MediaHelpers { winrt::Image GetMediaPosterAsImage(winrt::AdaptiveRenderContext const& renderContext, winrt:...
742
2,151
/* This Java source file was generated by test-to-java.xsl and is a derived work from the source document. The source document contained the following notice: Copyright (c) 2001-2004 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, K...
1,156
312
<filename>mpp/common/h265e_syntax_new.h /* * Copyright 2015 Rockchip Electronics 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...
5,155
679
<filename>main/desktop/source/deployment/gui/dp_gui.h<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 informati...
918
2,151
// Copyright (c) 2012 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 NET_THIRD_PARTY_SPDY_CORE_SPDY_TEST_UTILS_H_ #define NET_THIRD_PARTY_SPDY_CORE_SPDY_TEST_UTILS_H_ #include <stddef.h> #include <stdint.h> #i...
1,094
770
package com.mogujie.trade.tsharding.route.orm; import com.mogujie.trade.tsharding.client.ShardingCaculator; import javassist.ClassPool; import javassist.CtClass; import javassist.CtMethod; import javassist.bytecode.ClassFile; import javassist.bytecode.ConstPool; import org.apache.ibatis.mapping.MappedStatement; import...
3,784
423
<gh_stars>100-1000 from typing import Any, Collection, Union from ..constants.ignore import ignore_vars from ..models.heap_object import HeapObject from ..models.options import Options from ..models.unique_identifier import UniqueIdentifier from ..helpers.dictionary import filter_dict from .base_heap_object_factory im...
445
486
#include <string> #include "cuBERT/common.h" #include "Transformer.h" namespace cuBERT { template <typename T> Transformer<T>::Transformer(void* cublas, const std::string &var_prefix, const std::unordered_map<std::string, T *> &var, ...
5,128
625
<gh_stars>100-1000 #pragma once #include "PDB.h" #include "UdtFieldDefinitionBase.h" class PDBReconstructorBase { public: // // Called when reached the 'enum' type. // If the return value is true, the enum will be expanded. // virtual bool OnEnumType( const SYMBOL* Symbol ) { return false; ...
1,362
471
from django.template.loader import render_to_string # For translations from django.utils.translation import ugettext_noop import pytz from memoized import memoized from corehq.apps.hqwebapp.crispy import CSS_FIELD_CLASS, CSS_LABEL_CLASS class BaseReportFilter(object): """ For filtering the results of Co...
4,943
652
<gh_stars>100-1000 #define REDISMODULE_MAIN #include "DAG_utils.h" #include <errno.h> #include <string.h> typedef enum LLAPI_status { LLAPI_RUN_NONE = 0, LLAPI_RUN_SUCCESS, LLAPI_RUN_ERROR, LLAPI_NUM_OUTPUTS_ERROR } LLAPI_status; pthread_mutex_t global_lock = PTHREAD_MUTEX_INITIALIZER; pthread_cond_...
8,107
713
class MyCalendarTwo(object): def __init__(self): self.bookings = [] def book(self, start, end): """ :type start: int :type end: int :rtype: bool """ # self.bookings = sorted(self.bookings) overlapCount = 0 for slot in self.bookings: ...
327
1,408
<gh_stars>1000+ import pytest from tests import assert_result from presidio_analyzer.predefined_recognizers import EmailRecognizer @pytest.fixture(scope="module") def recognizer(): return EmailRecognizer() @pytest.fixture(scope="module") def entities(): return ["EMAIL_ADDRESS"] @pytest.mark.parametrize( ...
450
2,151
/* * Copyright © 2012 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, pub...
1,704