max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
781
<reponame>BeastLe9enD/zpl // // Recommends presence of jeopardy.json file, which can be received at: https://www.reddit.com/r/datasets/comments/1uyd0t/200000_jeopardy_questions_in_a_json_file/ // Modified to use linear memory backing allocator for nodes #define ZPL_IMPLEMENTATION #define ZPL_NANO #define ZPL_ENABLE_PAR...
826
14,668
// 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. #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_ACCESSIBILITY_SCOPED_BLINK_AX_EVENT_INTENT_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_ACCESSIBILITY_SCOPED_BLINK_A...
804
1,862
// ArduinoJson - arduinojson.org // Copyright <NAME> 2014-2019 // MIT License #pragma once #include "VariantCasts.hpp" #include "VariantComparisons.hpp" #include "VariantOr.hpp" #include "VariantShortcuts.hpp" namespace ARDUINOJSON_NAMESPACE { template <typename TImpl> class VariantOperators : public VariantCasts<T...
233
337
<filename>idea/testData/multiModuleQuickFix/addFunctionToCommonClassFromJavaUsage/jvm/Use.java // "Add method 'someFun' to 'Bar'" "true" public class Use { public static void use(foo.Bar bar) { bar.s<caret>omeFun(); } }
91
575
<reponame>jason-fox/Fast-RTPS // Copyright 2020 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/licens...
425
2,002
#pragma once #include "pch.h" #include "MockBackgroundTaskInstance.h" #include "MockRawNotification.h" #include <winrt/base.h> using namespace winrt::Windows::Networking::PushNotifications; winrt::guid MockBackgroundTaskInstance::InstanceId() { return winrt::guid(); } UINT32 MockBackgroundTaskIns...
449
649
<gh_stars>100-1000 package net.serenitybdd.junit5.datadriven.samples; import net.serenitybdd.junit5.SerenityJUnit5Extension; import net.thucydides.core.annotations.Pending; import net.thucydides.core.annotations.Steps; import net.thucydides.samples.SampleScenarioSteps; import org.junit.jupiter.api.extension.ExtendWith...
491
2,151
// © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html /* ****************************************************************************** * * * Copyright (C) 2003-2016, International Busine...
5,078
1,831
<gh_stars>1000+ /** * Copyright (c) 2017-present, Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include "logdevice/common/Sequencer.h" #include <chrono> #include <mu...
17,133
2,293
<reponame>leepro/unladen-swallow<filename>Modules/clmodule.c /* Cl objects */ #define CLDEBUG #include <stdarg.h> #include <cl.h> #if defined(CL_JPEG_SOFTWARE) && !defined(CL_JPEG_COSMO) #include <dmedia/cl_cosmo.h> #endif #include "Python.h" typedef struct { PyObject_HEAD int ob_isCompressor; /* Compressor or D...
31,170
809
/** * @file * * @data 26.11.2015 * @author: <NAME> */ #ifndef THIRD_PARTY_FUSE_FUSE_LINUX_INCLUDE_SYS_MOUNT_H_ #define THIRD_PARTY_FUSE_FUSE_LINUX_INCLUDE_SYS_MOUNT_H_ int mount(const char *source, const char *target, const char *filesystemtype, unsigned long mountflags, const ...
293
764
<reponame>641589523/token-profile {"symbol": "ESPRO","address": "0x7495d89d347aE9DDc95942938B58E933aB3bF7D1","overview":{"en": ""},"email": "<EMAIL>","website": "https://esportspro.gg/","state": "NORMAL","links": {"blog": "","twitter": "https://twitter.com/EsportsProESPRO","telegram": "https://web.telegram.org/#/im?p=@...
142
1,143
<gh_stars>1000+ // ================================================================================================= // Copyright 2011 Twitter, Inc. // ------------------------------------------------------------------------------------------------- // Licensed under the Apache License, Version 2.0 (the "License"); // ...
520
668
<reponame>jkreindl/sulong /* * Copyright (c) 2016, 2018, Oracle and/or its affiliates. * * 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 t...
1,045
405
package org.jeecgframework.core.groovy.impl; import org.jeecgframework.core.groovy.IScript; import org.springframework.stereotype.Component; /** * 公式脚本 */ @Component public class FormulaImpl implements IScript { public Double add(Double a,Double b) { return a*b; } }
101
1,199
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
1,114
395
<reponame>sudongyan/uexam { "usingComponents": { "i-panel": "/component/iView/panel/index", "i-cell-group": "/component/iView/cell-group/index", "i-cell": "/component/iView/cell/index", "i-radio-group": "/component/iView/radio-group/index", "i-radio": "/component/iView/radio/index", "i-row": "...
270
348
<gh_stars>100-1000 {"nom":"Rivesaltes","circ":"2ème circonscription","dpt":"Pyrénées-Orientales","inscrits":6613,"abs":3723,"votants":2890,"blancs":189,"nuls":99,"exp":2602,"res":[{"nuance":"MDM","nom":"<NAME>","voix":1419},{"nuance":"FN","nom":"<NAME>","voix":1183}]}
112
4,036
package com.semmle.js.ast.regexp; import com.semmle.js.ast.SourceLocation; /** A shorthand character class escape such as <code>\w</code> or <code>\S</code>. */ public class CharacterClassEscape extends RegExpTerm { private final String classIdentifier, raw; public CharacterClassEscape(SourceLocation loc, String...
238
766
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
825
3,268
{ "Entries": [ { "RequestUri": "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/ResourceGroup-CUS/providers/Microsoft.Security/iotSecuritySolutions/IotHub-CUS/analyticsModels/default/aggregatedRecommendations?api-version=2019-08-01", "EncodedRequestUri": "<KEY> "RequestMethod"...
1,703
4,138
package com.billy.cc.demo.component.b.processor; import com.billy.cc.core.component.CC; import com.billy.cc.core.component.CCResult; import com.billy.cc.demo.component.b.UserStateManager; /** * 添加监听登录状态的动态组件 * @author billy.qi */ public class LoginObserverAddProcessor implements IActionProcessor { @Override ...
324
777
<gh_stars>100-1000 // // UIScrollView+TYSnapshot.h // UITableViewSnapshotTest // // Created by Tony on 2016/7/11. // Copyright © 2016年 TonyReet. All rights reserved. // #import <UIKit/UIKit.h> #import "UIScrollView+TYSplice.h" @interface UIScrollView (TYSnapshot) - (void )screenSnapshotNeedMask:(BOOL)needMask a...
323
1,104
package com.alipay.bluewhale.core.daemon.supervisor; import com.alipay.bluewhale.core.callback.RunnableCallback; import com.alipay.bluewhale.core.event.EventManager; class SyncCallback extends RunnableCallback { private EventManager eventManager; private RunnableCallback cb; /** * @param cb *...
225
2,835
<filename>consoleme/lib/notifications/models.py from enum import Enum from typing import Any, Dict, List, Optional, Set from pydantic import Field from consoleme.lib.pydantic import BaseModel class ConsoleMeUserNotificationAction(BaseModel): http_method: str = Field( ..., description="HTTP method for th...
1,568
384
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 2017,2018,2019,2020,2021, by the GROMACS development team, led by * <NAME>, <NAME>, <NAME>, and <NAME>, * and including many others, as listed in the AUTHORS file in the * top-level source directory and at http://www.gromacs.org...
4,825
672
/* * Copyright (c) 2000-2016 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_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 ex...
6,718
4,013
from checkov.common.models.enums import CheckCategories from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck from checkov.common.models.consts import ANY_VALUE class SQLServerAuditingEnabled(BaseResourceValueCheck): def __init__(self): name = "Ensure that 'Auditin...
283
1,097
// // HCPPluginConfig.h // // Created by <NAME> on 10.08.15. // #import <Foundation/Foundation.h> #import "HCPJsonConvertable.h" /** * Model for plugin preferences, that can be changed during runtime. * Using this you can disable/enable updates download and installation, * and even change application config f...
430
879
<filename>core/src/main/java/org/zstack/core/workflow/WorkFlowChainStateEvent.java package org.zstack.core.workflow; enum WorkFlowChainStateEvent { done, failed, rollbackDone, }
72
356
#include <cstdio> #include <GL/glut.h> #include "chip8.h" #define SCREEN_WIDTH 64 #define SCREEN_HEIGHT 32 const uint32_t modifier = 10; chip8 momoko; int display_width = SCREEN_WIDTH * modifier; int display_height = SCREEN_HEIGHT * modifier; void display(); void reshape_window(GLsizei w, GLsizei h); void setupText...
2,407
575
<reponame>iridium-browser/iridium-browser // 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 ANDROID_WEBVIEW_COMMON_AW_CONTENT_CLIENT_H_ #define ANDROID_WEBVIEW_COMMON_AW_CONTENT_CLIENT_H_ #in...
576
2,395
<gh_stars>1000+ extern const unsigned char Pods_LGButton_ExampleVersionString[]; extern const double Pods_LGButton_ExampleVersionNumber; const unsigned char Pods_LGButton_ExampleVersionString[] __attribute__ ((used)) = "@(#)PROGRAM:Pods_LGButton_Example PROJECT:Pods-1" "\n"; const double Pods_LGButton_ExampleVers...
112
1,056
<reponame>timfel/netbeans /* * 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....
33,014
392
<filename>src/parquet/column_reader.cc // 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, ...
6,928
507
<filename>plugin/al/lib/AL_USDMaya/AL/usdmaya/nodes/proxy/LockManager.h<gh_stars>100-1000 // // Copyright 2017 Animal Logic // // 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:...
1,338
424
package com.twitter.elephantbird.pig.util; import com.google.protobuf.Message; import com.twitter.elephantbird.mapreduce.io.ProtobufWritable; /** * @author <NAME> */ public abstract class AbstractTestProtobufWritableConverter<M extends Message> extends AbstractTestWritableConverter<ProtobufWritable<M>, Protobu...
433
1,041
package io.ebeaninternal.server.persist.platform; import io.ebean.config.dbplatform.ExtraDbTypes; import io.ebean.core.type.ScalarType; /** * Multi value binder that uses Postgres Array. */ public final class PostgresMultiValueBind extends AbstractMultiValueBind { @Override public String getInExpression(boolea...
323
490
<filename>soundcard/__pyinstaller/__init__.py from os.path import dirname HERE = dirname(__file__) def get_hook_dirs(): return [HERE] def get_test_dirs(): return [HERE]
75
2,177
<reponame>denghuafeng/nutz package org.nutz.lang.util; import org.junit.Test; import org.nutz.json.Json; import org.nutz.json.JsonShape; import org.nutz.lang.Mirror; import junit.framework.Assert; public class ResidentStatusTest { @JsonShape(JsonShape.Type.NAME) public enum ResidentStatus { Init()...
843
314
<reponame>DsCodeStudiok8zey/7pixell package com.didispace.swagger.butler; import org.springframework.cloud.netflix.zuul.EnableZuulProxy; import org.springframework.context.annotation.Import; import java.lang.annotation.*; /** * Created by 程序猿DD/翟永超 on 2018/5/24. * <p> * Blog: http://blog.didispace.com/ * Github:...
205
2,181
// See the file "COPYING" in the main distribution directory for copyright. #include "zeek/script_opt/CPP/RuntimeOps.h" #include "zeek/EventRegistry.h" #include "zeek/IPAddr.h" #include "zeek/RunState.h" #include "zeek/ZeekString.h" namespace zeek::detail { using namespace std; StringValPtr str_concat__CPP(const ...
3,020
302
<reponame>MarcinGanczorz/spartacus { "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", "dest": "../../dist/storefrontlib", "lib": { "entryFile": "./public_api.ts", "umdModuleIds": { "@ngrx/effects": "effects", "@ng-bootstrap/ng-bootstrap": "ngBootstrap", "@ngrx/store": "...
260
3,128
#ifndef OCLINT_COMPILERINSTANCE_H #define OCLINT_COMPILERINSTANCE_H #include <vector> #include <clang/Frontend/CompilerInstance.h> namespace clang { class FrontendAction; } namespace oclint { class CompilerInstance : public clang::CompilerInstance { public: void start(); void end(); private: void ...
172
304
/* * Copyright 2019-2021 CloudNetService team & contributors * * 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...
635
353
<reponame>lihongwu19921215/nutzmore<gh_stars>100-1000 package org.nutz.auth.secken; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.nutz.http.Request; import org.nutz.http.Request.METHOD; import org.nu...
5,562
14,668
// 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 "components/offline_pages/core/prefetch/tasks/metrics_finalization_task.h" #include <memory> #include <set> #include <vector> #include "base/te...
3,044
566
<reponame>uf-reef-avl/dvo_slam<gh_stars>100-1000 /** * This file is part of dvo. * * Copyright 2013 <NAME> <<EMAIL>> (Technical University of Munich) * For more information see <http://vision.in.tum.de/data/software/dvo>. * * dvo is free software: you can redistribute it and/or modify * it under the terms o...
1,256
419
#pragma once #include <algorithm> #include <mutex> #include <unordered_map> #include <vector> #include "Hypodermic/IRegistration.h" #include "Hypodermic/IRegistrationScope.h" #include "Hypodermic/RegistrationContext.h" #include "Hypodermic/ResolutionContainer.h" #include "Hypodermic/TypeAliasKey.h" namespace Hypode...
2,118
1,861
<filename>cpp/spectrum/plugins/webp/LibWebpDecodePlugin.cpp // Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #include "LibWebpDecodePlugin.h" #include <spectrum/Rule.h> #include <spectru...
442
8,319
{ "inherits": ["cortex-m3"], "build-tags": ["qemu", "lm3s6965"], "linkerscript": "targets/lm3s6965.ld", "extra-files": [ "targets/cortex-m-qemu.s" ], "emulator": ["qemu-system-arm", "-machine", "lm3s6965evb", "-semihosting", "-nographic", "-kernel"] }
130
1,056
<filename>ide/schema2beans/src/org/netbeans/modules/schema2beans/Common.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 ownership. The ASF licenses this ...
8,015
5,964
<reponame>AsdMonio/rr-external_skia /* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkCanvasStateUtils_DEFINED #define SkCanvasStateUtils_DEFINED #include "SkCanvas.h" class SkCanvasState; /** * A set of functio...
1,113
474
NS_ASSUME_NONNULL_BEGIN @interface NSDictionary<K, V> (NSGenericFastEnumeraiton) <NSFastEnumeration> - (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(K __unsafe_unretained _Nullable [_Nonnull])buffer count:(NSUInteger)len; @end NS_ASSUME_NONNULL_END
105
1,731
<filename>tasks/max_versions.py<gh_stars>1000+ from __future__ import annotations import json from html.parser import HTMLParser from pathlib import Path import requests PROJECT_DIR = Path(__file__).parent.parent class PythonVersionParser(HTMLParser): def __init__(self, *, convert_charrefs: bool = True) -> Non...
934
1,408
<reponame>sohumango/arm-trusted-firmware<filename>plat/brcm/board/stingray/include/sr_def.h /* * Copyright (c) 2016-2021, Broadcom * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef SR_DEF_H #define SR_DEF_H #ifndef __ASSEMBLER__ #include <lib/mmio.h> #endif #include <common/interrupt_props.h> #include <driver...
10,236
7,353
// // SentrySwizzle.h // Sentry // // Created by <NAME> on 31/05/2017. // Copyright © 2017 Sentry. All rights reserved. // Original implementation by <NAME> on 05.09.13 https://github.com/rabovik/RSSwizzle #import <Foundation/Foundation.h> #pragma mark - Macros Based API /// A macro for wrapping the return type...
6,070
479
<reponame>popcatalin81/boo #ifndef INC_MULTNode_hpp__ #define INC_MULTNode_hpp__ #include "BinaryOperatorAST.hpp" /** A simple node to represent MULT operation */ class MULTNode : public BinaryOperatorAST { public: MULTNode() { } static ANTLR_USE_NAMESPACE(antlr)RefAST factory( void ) { ANTLR_USE_NAMESPACE(ant...
539
3,405
#include "CommonData.hpp" #include "Config.hpp" #include "IOLogWrapper.hpp" #include "UserClient_kext.hpp" namespace org_pqrs_Karabiner { AbsoluteTime CommonData::current_ts_; KeyboardType CommonData::current_keyboardType_; DeviceIdentifier CommonData::current_deviceIdentifier_; Vector_WorkspaceAppId CommonData::curre...
1,237
7,482
<gh_stars>1000+ /* * rpmsg based on virtio * * Copyright (C) 2018 Linaro, Inc. * * All rights reserved. * Copyright (c) 2016 Freescale Semiconductor, Inc. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef _RPMSG_VIRTIO_H_ #define _RPMSG_VIRTIO_H_ #include <metal/io.h> #include <metal/...
2,053
1,471
#!/usr/bin/env python # <NAME> # <EMAIL> # ######################################################################## # Copyright 2015 FireEye # Copyright 2012 Mandiant # # FireEye licenses this file to you under the Apache License, Version # 2.0 (the "License"); you may not use this file except in compliance with the #...
30,490
8,514
/* * 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 ma...
1,969
349
<filename>ask-sdk-local-debug/src/com/amazon/ask/localdebug/guice/ClientModule.java /* Copyright 2020 Amazon.com, Inc. or its affiliates. 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. A copy of the L...
1,331
578
<gh_stars>100-1000 import sys import unittest from argparse import Namespace from ..fixtures import set_up_cluster, set_up_subparser, set_up_cluster_4broker from kafka.tools.models.broker import Broker from kafka.tools.models.topic import Topic from kafka.tools.assigner.actions.balance import ActionBalance from kafka...
3,754
8,772
<gh_stars>1000+ package org.apereo.cas.support.oauth.web.endpoints; import org.apereo.cas.AbstractOAuth20Tests; import org.apereo.cas.support.oauth.OAuth20Constants; import org.apereo.cas.support.oauth.web.response.introspection.OAuth20IntrospectionAccessTokenResponse; import org.apereo.cas.util.EncodingUtils; import...
1,752
2,208
from pybrain.rl.environments.environment import Environment from pybrain.rl.environments.task import Task from pybrain.rl.environments.episodic import EpisodicTask
43
325
<gh_stars>100-1000 # -*- coding: utf-8 -*- u""" Created on 2016-12-25 @author: cheng.li """ import datetime as dt import pandas as pd sample_data = pd.DataFrame( data={'code': [1, 2, 1, 2, 1, 2], 'open': [2.0, 1.0, 1.5, 3.0, 2.4, 3.5], 'close': [1.7, 1.6, 0.9, 3.8, 1.6, 2.1]}, index=[dt.d...
392
393
# coding=utf-8 import os import time import logging import unittest from reudom.TestRunner import HTMLTestRunner logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') logger = logging.getLogger(__name__) reudom_str = """ _ ...
1,319
927
<filename>vyapp/plugins/quick_search.py """ Overview ======== This plugin implements incremental search which is handy to quickly jump to specific positions of the text. Key-Commands ============ Namespace: quick-search """ from vyapp.ask import Get from vyapp.regutils import build_regex from vyapp.stderr import ...
1,305
900
#!/usr/bin/env python # -*- coding: utf-8 -* # Copyright: [CUP] - See LICENSE for details. # Authors: <NAME> (@mythmgn), """ :description: unittest for cup.services.heartbeat """ import os import sys import time _NOW_PATH = os.path.dirname(os.path.abspath(__file__)) + '/' sys.path.insert(0, _NOW_PATH + '../') im...
950
582
/******************************************************************************* * Copyright (c) 2000, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, an...
293
2,338
//===-- libdebugserver.cpp --------------------------------------*- 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 LLVM-exception // //===---------------------------...
6,142
415
<filename>tests/integration-tests/tests/scaling/test_scaling.py # Copyright 2019 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http:...
2,351
324
<filename>core/src/test/java/org/jclouds/http/handlers/RedirectionRetryHandlerTest.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 ownership. * The ASF lice...
3,733
2,074
<gh_stars>1000+ #!/usr/bin/env python #--------- # Script to change the prefix of a framework #--------- import os import re import string #------------------ # Config #------------------ oldPrefix = "CP" # Set to empty string if there is no old prefix newPrefix = "CPT" # Root directories origRootDir = "/Users/cor...
673
3,711
<filename>sesman/scp_v0.h /** * xrdp: A Remote Desktop Protocol server. * * Copyright (C) <NAME> 2004-2013 * * 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.o...
293
479
#include <iostream> #include <memory> #include <string> #include <grpc++/grpc++.h> #include "hello.grpc.pb.h" using grpc::Server; using grpc::ServerBuilder; using grpc::ServerContext; using grpc::Status; using grpc::StatusCode; using hello::HelloReq; using hello::HelloResp; using hello::HelloService; class HelloSer...
505
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...
8,412
347
package net.chrisrichardson.eventstore.examples.kanban.commonauth.model; import org.hibernate.validator.constraints.Email; import org.hibernate.validator.constraints.NotBlank; public class AuthRequest { @NotBlank @Email private String email; public AuthRequest() { } public AuthRequest(Strin...
197
318
<gh_stars>100-1000 package moxy.presenter; import moxy.MvpPresenter; import moxy.view.TestView; public class TestViewPresenter extends MvpPresenter<TestView> { public void testEvent() { getViewState().testEvent(); } }
88
336
<filename>3rdParty/iresearch/external/openfst/fst/fstlib.h // See www.openfst.org for extensive documentation on this weighted // finite-state transducer library. // // This is a library for constructing, combining, optimizing, and searching // "weighted finite-state transducers" (FSTs). Weighted finite-state transduce...
1,531
1,346
package com.huanchengfly.tieba.post.interfaces; import android.view.View; public interface OnItemLongClickListener<T> { boolean onLongClick(View itemView, T t, int position, int viewType); }
64
2,199
/******************************************************************************* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. ************************************...
485
2,326
<reponame>HorsemanWSGI/bjoern from __future__ import print_function import bjoern, socket, threading, time, json, sys, requests, logging def app(e, s): s('200 OK', [("Content-Length", "0")]) return b"" def record_report(reports, request, resp): reports.append({"request": request, "response": resp.decode...
1,697
392
/* * PermissionsEx * Copyright (C) zml and PermissionsEx contributors * * 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...
1,709
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...
1,082
1,350
<gh_stars>1000+ /** * Copyright Microsoft 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 ...
710
2,389
/* Copyright 2020 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwar...
2,563
852
#include <cstdio> #include <cstdlib> #include <iostream> using namespace std; // writing Laser primitives #include "../../interface/ME.h" #include "MERunManager.hh" int main(int argc, char **argv) { int type = ME::iLaser; int color = ME::iBlue; int c; while ( (c = getopt( argc, argv, "t:c:...
402
2,331
<filename>Modules/libxml2-kanna.h #import <libxml2/libxml/HTMLtree.h> #import <libxml2/libxml/xpath.h> #import <libxml2/libxml/xpathInternals.h>
65
2,143
package com.tngtech.archunit.lang.syntax.elements.testclasses; @SuppressWarnings({"unused", "WeakerAccess"}) public class ClassWithPublicAndPrivateConstructor { public ClassWithPublicAndPrivateConstructor(String s) { } private ClassWithPublicAndPrivateConstructor(Integer i) { this(i.toString()); ...
113
72,551
#include "swift/Basic/ClusteredBitVector.h" #include "llvm/Support/Format.h" #include "llvm/Support/raw_ostream.h" #include "llvm/ADT/Twine.h" #include <vector> #include "stdlib.h" using namespace swift; const unsigned NV = 16; /// Random number in [0,n) unsigned randCount(unsigned n) { return unsigned(rand()) % n...
2,553
1,099
<filename>chat/src/main/java/com/example/chat/adapter/PhotoPreViewAdapter.java package com.example.chat.adapter; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.example.chat.R; import com.example.commonlibrary.BaseApplication; imp...
1,528
1,296
#include <lua.h> #include <lauxlib.h> #include "opengl.h" #include "screen.h" #include "shader.h" #include "label.h" #include "ejoy2dgame.h" static int lviewport(lua_State *L) { int w = luaL_checkinteger(L,1); int h = luaL_checkinteger(L,2); glViewport(0, 0, w,h); screen_init(w,h,1.0f); return 0; } static int ...
363
5,169
<filename>Specs/8/0/a/Imager/1.2.1/Imager.podspec.json<gh_stars>1000+ { "name": "Imager", "version": "1.2.1", "summary": "An image viewer for iOS in Swift", "description": "An delightful image viewer for iOS in Swift\"", "homepage": "https://github.com/Meniny/Imager", "license": "MIT", "authors": { "M...
423
742
<reponame>tiaanl/plywood /*------------------------------------ ///\ Plywood C++ Framework \\\/ https://plywood.arc80.com/ ------------------------------------*/ #include <ply-runtime/Base.h> using namespace ply; template <typename T> void testParse(OutStream* outs, StringView type, StringView str, u32 radix) {...
936
1,156
"""Maigret data test functions""" from maigret.utils import is_country_tag def test_tags_validity(default_db): unknown_tags = set() tags = default_db._tags for site in default_db.sites: for tag in filter(lambda x: not is_country_tag(x), site.tags): if tag not in tags: ...
153
988
<filename>java/java.source/src/org/netbeans/modules/java/ui/CategorySupport.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 ownership. The ASF licenses t...
13,297
1,056
<reponame>timfel/netbeans /* * 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....
2,237
316
{ "basename": "asr_preprocess-cpp1-515bcd9", "cmd": "lfortran --cpp --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/cpp1.f90", "infile_hash": "ac5c43ef61efaf9750763941c8ee309b88d00bdfc414901bcd6d4fbe", "outfile": null, "outfile_hash": null, "stdout": null, "stdout_h...
251