max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,900
<filename>core/src/main/java/org/ehcache/core/spi/service/ExecutionService.java<gh_stars>1000+ /* * Copyright Terracotta, 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 * * h...
732
5,169
<filename>Specs/4/5/c/WMPageController-JQHover/0.1.0/WMPageController-JQHover.podspec.json { "name": "WMPageController-JQHover", "version": "0.1.0", "summary": "Extension of WMPageController, implement pages hover menu.", "description": "Extension of WMPageController, implement pages hover menu.\nSame style as ...
383
348
<filename>docs/data/leg-t1/021/02105249.json {"nom":"Esbarres","circ":"5ème circonscription","dpt":"Côte-d'Or","inscrits":548,"abs":291,"votants":257,"blancs":1,"nuls":2,"exp":254,"res":[{"nuance":"REM","nom":"<NAME>","voix":76},{"nuance":"FN","nom":"M. <NAME>","voix":65},{"nuance":"LR","nom":"M. <NAME>","voix":42},{"n...
263
737
<reponame>jiaruixu/Detectron #!/usr/bin/python # # Converts the polygonal annotations of the Cityscapes dataset # to images, where pixel values encode the ground truth classes and the # individual instance of that classes. # # The Cityscapes downloads already include such images # a) *color.png : the clas...
1,102
310
<filename>nagisa/__init__.py import nagisa_utils as utils from nagisa.tagger import Tagger from nagisa.train import fit version = '0.2.7' # Initialize instance tagger = Tagger() # Functions wakati = tagger.wakati tagging = tagger.tagging filter = tagger.filter extract = tagger.extract postagging = tagger.postaggin...
138
535
<reponame>tinocyngn/mynewt-core /* * 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, Vers...
7,257
348
<gh_stars>100-1000 {"nom":"Rivière","circ":"4ème circonscription","dpt":"Indre-et-Loire","inscrits":589,"abs":312,"votants":277,"blancs":19,"nuls":10,"exp":248,"res":[{"nuance":"REM","nom":"<NAME>","voix":126},{"nuance":"LR","nom":"<NAME>","voix":122}]}
103
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...
1,247
663
<gh_stars>100-1000 from pyspark.sql import SparkSession from pyspark.sql.functions import explode, split, window def main(): spark = ( SparkSession.builder.appName("StructuredStreaming") .config("spark.ui.port", "4050") .config("spark.sql.streaming.metricsEnabled", "true") .getOrCr...
458
2,151
<reponame>zipated/src<gh_stars>1000+ // Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_SAFE_BROWSING_CHROME_PASSWORD_PROTECTION_SERVICE_H_ #define CHROME_BROWSER_SAFE_BROWSING_CHROM...
4,191
327
#include "kull_m_rpc_ms-rprn.h" typedef struct _ms2Drprn_MIDL_TYPE_FORMAT_STRING { SHORT Pad; #if defined(_M_X64) || defined(_M_ARM64) // TODO:ARM64 UCHAR Format[85]; #elif defined(_M_IX86) UCHAR Format[89]; #endif } ms2Drprn_MIDL_TYPE_FORMAT_STRING; typedef struct _ms2Drprn_MIDL_PROC_FORMAT_STRING { SHORT Pad; #...
4,655
543
<gh_stars>100-1000 #!/usr/bin/python # ex:ts=4:sw=4:sts=4:et # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- # The unittest framwork doesn't play nice with pylint: # pylint: disable-msg=C0103 # We're a test, we go where ever we want (within reason, of course): # pylint: disable-msg=protected-access...
2,636
1,144
/** * */ package de.metas.letters.model; /* * #%L * de.metas.adempiere.adempiere.base * %% * Copyright (C) 2015 metas GmbH * %% * 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 ...
532
384
import dataclasses @dataclasses.dataclass class DRQConfig: env = "cartpole_swingup" # IMPORTANT: if action_repeat is used the effective number of env steps needs to be # multiplied by action_repeat in the result graphs. # This is a common practice for a fair comparison. # See the 2nd paragraph in A...
546
852
<filename>Validation/RecoParticleFlow/interface/Comparator.h #ifndef __Validation_RecoParticleFlow_Comparator__ #define __Validation_RecoParticleFlow_Comparator__ #include <cmath> #include <TF1.h> #include <TFile.h> #include <TH1.h> #include <TLegend.h> /* #include <string> */ class Style; class Comparator { publi...
1,113
1,838
<reponame>aaronjeline/checkedc<filename>samples/spec/2_7_checked.c // Simple Example of Checked C, based on code in Section 2.7 of the spec #include <stdchecked.h> void update(ptr<int> a, int b checked[5][5]) { for (int i = 0; i < 5; i++) for (int j = 0; j < 5; j++) b[i][j] = *a; }
128
2,542
<reponame>AnthonyM/service-fabric // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ----------------------------------------------------------...
325
322
<gh_stars>100-1000 package com.imooc.imooc_voice.view.video.mv; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.view.View; import com.imooc.imooc_voice.R; import com.imooc.lib_common_ui.delegate.NeteaseDelegate; public class MvNormalDele...
232
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Astrobiology", "definitions": [ "The branch of biology concerned with the study of life on earth and in space." ], "parts-of-speech": "Noun" }
86
598
<gh_stars>100-1000 #include <assert.h> #include <openssl/ssl.h> struct GlobalState { GlobalState() : ctx(SSL_CTX_new(SSLv23_method())) {} ~GlobalState() { SSL_CTX_free(ctx); } SSL_CTX *const ctx; }; static GlobalState g_state; extern "C" int LLVMFuzzerTestOneInput(uint8_t *buf, size_t len) { // This...
270
463
import java.util.*; import java.io.*; // 2.1 class Man implements Person { private String name; private String description; private int count; Man() { name = ""; description = ""; count = 0; } Man(String myname, String mydesc) { name = myname; description = mydesc; count = 0; } public String getName() { r...
823
463
<filename>vimfiles/bundle/vim-python/submodules/pylint/tests/functional/m/missing/missing_docstring_new_style.py<gh_stars>100-1000 # [missing-module-docstring] # pylint: disable=too-few-public-methods class ClassDocumented: """It has a docstring.""" class UndocumentedClass: # [missing-class-docstring] pass...
328
460
<filename>trunk/win/BumpTop Settings/include/wxWidgets/wx/os2/pen.h ///////////////////////////////////////////////////////////////////////////// // Name: wx/os2/pen.h // Purpose: wxPen class // Author: <NAME> // Modified by: // Created: 10/10/99 // RCS-ID: $Id: pen.h 42834 2006-10-31 12:02:36Z...
2,359
1,086
/* MikMod sound library (c) 1998, 1999, 2000 <NAME> and others - see file AUTHORS for complete list. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or ...
3,318
4,129
<reponame>whataa/booster package org.xmlpull.v1; /** * @author neighbWang */ public class XmlPullParserException extends Exception { public XmlPullParserException(String s) { throw new RuntimeException("Stub!"); } }
84
951
// Copyright 2017 Google Inc. All Rights Reserved. #import <Foundation/Foundation.h> #import <GoogleMobileAds/GoogleMobileAds.h> #import "GADUAdNetworkExtras.h" @interface VungleExtrasBuilder : NSObject<GADUAdNetworkExtras> @end
81
4,071
<gh_stars>1000+ import numpy as np ## a: 1 * 2 ## b: 2 * 3 ## w1: 2 * 2 ## w2: 3 * 2 ## bias: 1 * 2 a = np.ones([1, 2], np.float32) a = [[0.1, 0.2]] b = np.ones([2, 3], np.float32) b = [[0.2, 0.01, 0.03], [-1.0, -0.01, -0.21]] w1 = np.ones([2, 2], np.float32) w1 = [[0.1, 0.2], [-0.3, 0.4]] w2 = np.ones(...
330
7,482
<reponame>rceet/TencentOS-tiny /****************************************************************************** *Copyright(C)2017, Huada Semiconductor Co.,Ltd All rights reserved. * * This software is owned and published by: * Huada Semiconductor Co.,Ltd("HDSC"). * * BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, YO...
12,031
15,435
<reponame>fengjixuchui/DiDiPrism /* * This file is part of the SDWebImage package. * (c) <NAME> <<EMAIL>> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ #import <Foundation/Foundation.h> #import "SDWebImageCompat.h" /// A weak pr...
185
392
{ "name": "meld", "version": "1.3.2", "description": "AOP for JS with before, around, on, afterReturning, afterThrowing, after advice, and pointcut support", "keywords": ["aop", "aspect", "cujo"], "homepage": "http://cujojs.com", "licenses": [ { "type": "MIT", "url": "http://www.opensource.org/licenses/mi...
481
841
/* * Copyright 2017 Red Hat, Inc. and/or its affiliates. * * 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...
2,085
615
<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 by applicable law or agreed to in writing, software # ...
1,515
2,646
<reponame>kagechan/mruby /** ** @file mruby/boxing_word.h - word boxing mrb_value definition ** ** See Copyright Notice in mruby.h */ #ifndef MRUBY_BOXING_WORD_H #define MRUBY_BOXING_WORD_H #if defined(MRB_32BIT) && !defined(MRB_USE_FLOAT32) # define MRB_WORDBOX_NO_FLOAT_TRUNCATE #endif #if !defined(MRB_NO_FLOAT) &&...
3,671
931
<reponame>siddhi-244/CompetitiveProgrammingQuestionBank ''' From all the positive integers entered in a list, the aim of the program is to subtract any two integers such that the result/output is the maximum possible difference. ''' # class to compute the difference class Difference: def __init__(self,...
434
5,169
<reponame>Gantios/Specs<filename>Specs/2/4/b/PayUIndia-Networking/2.0.0/PayUIndia-Networking.podspec.json { "name": "PayUIndia-Networking", "version": "2.0.0", "license": "MIT", "homepage": "https://app.gitbook.com/@payumobile/s/sdk-integration/v/master/ios/upi-standalone-ios", "authors": { "PayUbiz": "<E...
345
14,425
<reponame>luoyuan3471/hadoop<filename>hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/rmadmin/RouterRMAdminService.java /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NO...
5,813
523
<filename>include/cnl/_impl/wide_integer/operators.h // Copyright <NAME> 2018. // 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) #if !defined(CNL_IMPL_WIDE_INTEGER_OPERATORS_H) #define CNL...
399
571
<filename>ufora/distributed/ServerUtils/CaCerts.py # Copyright 2015 Ufora 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 # #...
430
1,875
/* * Copyright 2014 <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 the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
485
575
// 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 THIRD_PARTY_BLINK_RENDERER_MODULES_MEDIASTREAM_MEDIA_STREAM_TRACK_CONTENT_HINT_H_ #define THIRD_PARTY_BLINK_RENDERER_MODULES_MEDIASTREAM_MEDIA_STR...
309
945
<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 ...
606
412
public class Test_decimal_min { public static void main(boolean b) { // -2^63+1, because we currently can't cope with -2^63 String str = new String("-9223372036854775807"); long parsed = Long.parseLong(str, 10); if (b) { assert(parsed == -9223372036854775807L); ...
209
338
<reponame>XmobiTea-Family/ezyfox-server package com.tvd12.ezyfoxserver.nio.websocket; import static com.tvd12.ezyfoxserver.nio.websocket.EzyWsCloseStatus.CLOSE_BY_SERVER; import java.net.SocketAddress; import java.nio.ByteBuffer; import org.eclipse.jetty.websocket.api.RemoteEndpoint; import org.eclipse.jetty.websock...
863
2,225
<gh_stars>1000+ //====== Copyright Valve Corporation, All rights reserved. ==================== #ifndef ISTEAMNETWORKINGSOCKETS #define ISTEAMNETWORKINGSOCKETS #pragma once #include "steamnetworkingtypes.h" #include "steam_api_common.h" struct SteamNetAuthenticationStatus_t; class ISteamNetworkingConnectionSignaling...
11,951
2,072
<reponame>defendercrypt/amundsen<filename>databuilder/databuilder/extractor/dashboard/mode_analytics/mode_dashboard_last_successful_executions_extractor.py # Copyright Contributors to the Amundsen project. # SPDX-License-Identifier: Apache-2.0 import logging from pyhocon import ConfigFactory, ConfigTree from databui...
1,268
784
<filename>jforgame-server/src/main/java/jforgame/server/game/cross/ladder/controller/LadderG2FController.java package jforgame.server.game.cross.ladder.controller; import jforgame.server.cross.core.server.CrossController; import jforgame.server.cross.core.server.SCSession; import jforgame.server.game.cross.ladder.mess...
213
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...
15,016
2,098
/* Generated by Snowball 2.1.0 - https://snowballstem.org/ */ #include "../runtime/header.h" #ifdef __cplusplus extern "C" { #endif extern int yiddish_UTF_8_stem(struct SN_env * z); #ifdef __cplusplus } #endif static int r_standard_suffix(struct SN_env * z); static int r_R1plus3(struct SN_env * z); static int r_R1(st...
36,631
663
<filename>src/main/java/com/github/blindpirate/gogradle/core/dependency/install/LocalDirectoryDependencyManager.java /* * Copyright 2016-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ...
869
5,267
<filename>modules/swagger-maven-plugin/src/test/java/io/swagger/v3/plugin/maven/SwaggerResolveTest.java package io.swagger.v3.plugin.maven; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.File; public class SwaggerResolveTest extends ASwaggerMavenIntegrationTest { protected static Logger...
540
442
package org.jmqtt.bus.impl; import com.alibaba.fastjson.JSONObject; import org.apache.ibatis.session.SqlSession; import org.jmqtt.bus.DeviceMessageManager; import org.jmqtt.bus.enums.ClusterEventCodeEnum; import org.jmqtt.bus.enums.MessageAckEnum; import org.jmqtt.bus.enums.MessageSourceEnum; import org.jmqtt.bus.mode...
3,327
690
package com.artemis.generator.test; import com.artemis.Component; /** * @author <NAME> */ public class FlagWithPublicMethod extends Component { public int field() { return 0;} }
58
317
<filename>src/refract/ExpandVisitor.h // // refract/ExpandVisitor.h // librefract // // Created by <NAME> on 17/06/15. // Copyright (c) 2015 Apiary Inc. All rights reserved. // #ifndef REFRACT_EXPANDVISITOR_H #define REFRACT_EXPANDVISITOR_H #include "ElementFwd.h" #include "ElementIfc.h" #include <memory> namesp...
582
711
package com.java110.utils.cache; import redis.clients.jedis.Jedis; /** * Created by wuxw on 2018/5/5. */ public class JWTCache extends BaseCache{ /** * 获取值(用户ID) * @returne */ public static String getValue(String jdi){ Jedis redis = null; try { redis = getJedis();...
905
348
{"nom":"Cheillé","circ":"4ème circonscription","dpt":"Indre-et-Loire","inscrits":1253,"abs":713,"votants":540,"blancs":66,"nuls":29,"exp":445,"res":[{"nuance":"REM","nom":"<NAME>","voix":265},{"nuance":"LR","nom":"<NAME>","voix":180}]}
94
351
<reponame>wtflian/talos<gh_stars>100-1000 package com.talosvfx.talos.editor.wrappers; import com.talosvfx.talos.runtime.modules.RadToCartModule; public class RadToCartModuleWrapper extends ModuleWrapper<RadToCartModule> { @Override protected void configureSlots() { addInputSlot("angle: ", RadToCartMo...
199
2,962
#!/usr/bin/env python3 # # Copyright (c) 2020, The OpenThread Authors. # 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 # ...
2,068
1,068
#!/usr/bin/env python """This training pipeline leverages Azure ML Pipelines to retrain and store a mobilenet model""" from azureml.core import Workspace, Datastore from azureml.core.compute import AmlCompute, DataFactoryCompute from azureml.core.runconfig import CondaDependencies, RunConfiguration from azureml.dat...
2,417
1,647
<reponame>davidbrochart/pythran #ifndef PYTHONIC_INCLUDE_NUMPY_FLOOR_HPP #define PYTHONIC_INCLUDE_NUMPY_FLOOR_HPP #include "pythonic/include/utils/functor.hpp" #include "pythonic/include/types/ndarray.hpp" #include "pythonic/include/utils/numpy_traits.hpp" #include <xsimd/xsimd.hpp> PYTHONIC_NS_BEGIN namespace nump...
228
3,651
package com.orientechnologies.orient.core.db.tool.importer; import com.orientechnologies.orient.core.db.ODatabaseSession; import com.orientechnologies.orient.core.id.ORID; import java.util.Set; /** Created by tglman on 28/07/17. */ public class OConverterData { protected ODatabaseSession session; protected Set<OR...
166
589
<reponame>ClaudioWaldvogel/inspectIT package rocks.inspectit.server.alerting; import org.slf4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; import rocks.inspectit.server.alerting.actio...
1,265
995
<gh_stars>100-1000 // // Copyright (c) 2016-2019 <NAME> (<EMAIL> at <EMAIL> dot <EMAIL>) // // 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) // // Official repository: https://github.com/boostorg/beast // #...
313
648
<filename>spec/hl7.fhir.core/1.0.2/package/ValueSet-conditional-delete-status.json {"resourceType":"ValueSet","id":"conditional-delete-status","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00","profile":["http://hl7.org/fhir/StructureDefinition/valueset-shareable-definition"]},"text":{"status":"generated","div":"<d...
1,372
323
<gh_stars>100-1000 __version__ = "2.10.6"
21
3,083
<reponame>utumen/binnavi // Copyright 2011-2016 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
2,583
2,338
package geometry; public class Point implements Comparable<Point>{ static final double EPS = 1e-9; double x, y; Point(double a, double b) { x = a; y = b; } public int compareTo(Point p) { if(Math.abs(x - p.x) > EPS) return x > p.x ? 1 : -1; if(Math.abs(y - p.y) > EPS) return y > p.y ?...
1,338
10,101
<filename>locales/fi.json { "Sign In": "Sisäänkirjautuminen", "Sign in": "Kirjaudu sisään", "Username or Email": "Käyttäjätunnus tai sähköposti", "Password": "<PASSWORD>", "I need an account": "Tarvitsen käyttäjätilin", "Register": "Rekisteröidy", "Username": "Käyttäjätunnus", "Email": "Sähköposti", "Display N...
1,291
839
/** * 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 m...
891
619
from typing import List, Tuple from rlbench.backend.task import Task from rlbench.backend.conditions import JointCondition from pyrep.objects.shape import Shape from pyrep.objects.joint import Joint from rlbench.backend.spawn_boundary import SpawnBoundary import numpy as np class TvOn(Task): def init_task(self) ...
669
872
# IDA Sync Server User Management Class # Copyright (C) 2005 <NAME> <<EMAIL>> # # 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 ...
1,752
653
<gh_stars>100-1000 from paypalrestsdk import CreditCard, ResourceNotFound import logging logging.basicConfig(level=logging.INFO) try: credit_card = CreditCard.find("CARD-5U686097RY597093SKPL7UNI") print("Got CreditCard[%s]" % (credit_card.id)) credit_card_update_attributes = [{ "op": "replace", ...
277
5,774
#include "nuklear.h" #include "nuklear_internal.h" /* =============================================================== * * IMAGE * * ===============================================================*/ NK_API nk_handle nk_handle_ptr(void *ptr) { nk_handle handle = {0}; handle.ptr = ptr...
1,603
892
{ "schema_version": "1.2.0", "id": "GHSA-xpr2-v3gx-4h93", "modified": "2022-04-01T00:00:52Z", "published": "2022-03-26T00:00:31Z", "aliases": [ "CVE-2021-35254" ], "details": "SolarWinds received a report of a vulnerability related to an input that was not sanitized in WebHelpDesk. SolarWinds has remo...
514
2,710
package com.zxy.tiny.common; import java.util.List; /** * Created by zhengxiaoyong on 2018/10/23. */ public class FileBatchResult extends Result { public List<String> outfiles; @Override public String toString() { return "FileBatchResult{" + "outfiles=" + outfiles + ...
191
3,102
<reponame>medismailben/llvm-project // RUN: rm -rf %t // PR35939: MicrosoftMangle.cpp triggers an assertion failure on this test. // UNSUPPORTED: system-windows // RUN: %clang_cc1 \ // RUN: -I %S/Inputs/odr_hash-Friend \ // RUN: -emit-obj -o /dev/null \ // RUN: -fmodules \ // RUN: -fimplicit-module-maps \ // RUN:...
1,012
368
/* Plugin-SDK (Grand Theft Auto Vice City) header file Authors: GTA Community. See more here https://github.com/DK22Pac/plugin-sdk Do not delete this comment block. Respect others' work! */ #pragma once #include "PluginBase.h" #include "eCrimeType.h" #include "CVector.h" #include "CEntity.h" class CCrimeBeingQd { pub...
1,084
994
<filename>Competitions/Codechef/KGP16MOS/Coal Mafia and Toll Tax.cpp #include <bits/stdc++.h> using namespace std; int main() { long long int t, i, j, n, a[50], b[500], c[50], ans, temp; cin>>t; for(i=0;i<t;i++){ cin>>n; for(j=0;j<n;j++){ cin>>c[j]; } for(j=0;j<n-...
442
672
/* * Copyright (c) 2012 Apple Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in * compli...
1,336
569
# -*- coding: utf-8 -*- __all__ = [ "PYTHAINLP_DEFAULT_DATA_DIR", "get_full_data_path", "get_pythainlp_data_path", "get_pythainlp_path", "misspell", ] from pythainlp.tools.path import ( PYTHAINLP_DEFAULT_DATA_DIR, get_full_data_path, get_pythainlp_data_path, get_pythainlp_path, ) f...
178
1,461
<reponame>Mu-L/metalnes // Copyright (c) The HLSL2GLSLFork Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE.txt file. #include "propagateMutable.h" #include <set> #include "localintermediate.h" namespace hlslang { struct TPropaga...
665
1,581
<filename>app/src/main/java/com/example/newbiechen/ireader/ui/adapter/SearchBookAdapter.java package com.example.newbiechen.ireader.ui.adapter; import com.example.newbiechen.ireader.model.bean.packages.SearchBookPackage; import com.example.newbiechen.ireader.ui.adapter.view.SearchBookHolder; import com.example.newbiec...
245
342
#include <stdlib.h> #include <string.h> #include <redisclient/redisparser.h> #include <redisclient/redisvalue.h> #define BOOST_TEST_MAIN #define BOOST_TEST_MODULE test_RedisParser #include <boost/test/unit_test.hpp> using namespace redisclient; class ParserFixture { public: RedisValue parse(const char *str) ...
4,339
575
// 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 GOOGLE_APIS_DRIVE_DRIVE_API_REQUESTS_H_ #define GOOGLE_APIS_DRIVE_DRIVE_API_REQUESTS_H_ #include <stdint.h> #include <memory> #include <stri...
15,642
713
@Listener public class PrintWhenAdded { Queue<CacheEntryCreatedEvent> events = new ConcurrentLinkedQueue<>();   @CacheEntryCreated   public CompletionStage<Void> print(CacheEntryCreatedEvent event) { events.add(event); return null;   } }
77
3,102
<reponame>medismailben/llvm-project<filename>clang/test/Driver/at_file.c // RUN: %clang -E %s @%s.args -o %t.log // RUN: FileCheck --input-file=%t.log %s // RUN: %clang -E %s @%s.args.utf16le -o %t.log // RUN: FileCheck --input-file=%t.log %s // CHECK: bar1 // CHECK-NEXT: bar2 zed2 // CHECK-NEXT: bar3 zed3 // CHECK-NE...
332
415
# Copyright (c) 2020-2021, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
1,840
2,151
// 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_POINTER_WATCHER_ADAPTER_CLASSIC_H_ #define ASH_POINTER_WATCHER_ADAPTER_CLASSIC_H_ #include "ash/ash_export.h" #include "base/macros.h" #inclu...
793
445
from .truth_or_dare import TruthOrDare
14
2,859
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import os import tempfile __version__ = '0.1.11' DB = os.path.join( tempfile.gettempdir(), 'fake_useragent_{version}.json'.format( version=__version__, ), ) CACHE_SERVER = 'https://fake-useragent.herokuapp.com/brows...
426
493
<filename>HtmlNativeAndroid/htmlnative-lib/src/androidTest/java/com/mozz/htmlnative/TestGlobal.java package com.mozz.htmlnative; import android.util.Log; /** * @author <NAME>, 17/3/24. */ public class TestGlobal { public static final String TEST_TAG = "HtmlNativeTest"; public static void toLog(String msg...
135
1,025
<reponame>jeongjoonyoo/CodeXL #ifndef _BEPROGRAMBUILDEROPENCL_H_ #define _BEPROGRAMBUILDEROPENCL_H_ // C++. #include <string> #include <sstream> #include "beProgramBuilder.h" #ifdef _WIN32 #include <DXXModule.h> #endif #include <CALModule.h> #include <CL/cl.h> #include <OpenCLModule.h> #include <ACLModule.h> #ifde...
5,375
376
<gh_stars>100-1000 // Copyright (C) 2017 <NAME> // This file is part of the "Nazara Engine - Graphics module" // For conditions of distribution and use, see copyright notice in Config.hpp #include <Nazara/Graphics/Sprite.hpp> #include <Nazara/Graphics/Material.hpp> #include <Nazara/Graphics/RenderSpriteChain.hpp> #inc...
737
1,144
/* SPDX-License-Identifier: GPL-2.0+ */ /* * (C) Copyright 2000 * <NAME>, Hyperion Entertainment * <EMAIL> */ #ifndef _DISK_PART_AMIGA_H #define _DISK_PART_AMIGA_H #include <common.h> #if CONFIG_IS_ENABLED(ISO_PARTITION) /* Make the buffers bigger if ISO partition support is enabled -- CD-ROMS have 2048 byte b...
1,234
640
<gh_stars>100-1000 int mult() { int a,b; return a * b; } int addition(int a) { int b = a + 10; mult(); return b; } int subtract(int a) { int b = a - 10; mult(); return b; } long longops(long l) { return l++; } long longadd(long l) { return l + 10; } long longadd_negative(long l) { long x = l +...
270
369
// Copyright (c) 2017-2021, Mudita <NAME>.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #pragma once #include <Common/Query.hpp> #include <module-db/Interface/AlarmEventRecord.hpp> #include <string> namespace db::query::alarmEvents { class Get : public Query ...
317
1,351
''' ''' # 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");...
2,840
1,162
<gh_stars>1000+ package io.digdag.spi; public class StorageFileNotFoundException extends Exception { public StorageFileNotFoundException(String message) { super(message); } public StorageFileNotFoundException(String message, Throwable cause) { super(message, cause); } ...
153
575
// 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 "base/command_line.h" #include "base/numerics/safe_conversions.h" #include "base/strings/string_number_conversions.h" #include "build/build_confi...
6,323
1,144
/** Generated Model - DO NOT CHANGE */ package org.compiere.model; import java.sql.ResultSet; import java.util.Properties; /** Generated Model for I_BPartner_GlobalID * @author Adempiere (generated) */ @SuppressWarnings("javadoc") public class X_I_BPartner_GlobalID extends org.compiere.model.PO implements I_I_BPa...
2,160
3,845
<reponame>oliverfencott/Carp #!/usr/bin/env python3 # If you want to browse the Carp documentation offline with all the bells and whistles # (e.g. working hyperlinks to other documents and embedded graphics) that are usually # provided by the github webpage, you can convert it to static html with this script. # # It...
1,459