max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
862
<reponame>palantir/atlasdb<gh_stars>100-1000 /* * (c) Copyright 2018 Palantir Technologies Inc. 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....
3,674
2,151
# 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. import os import os.path import sys PYJSON5_DIR = os.path.join(os.path.dirname(__file__), '..', '..', '..', '..', 'pyjson5', 'src...
312
310
<filename>gear/software/t/the-window-titler.json { "name": "The Window Titler", "description": "A Firefox extension for setting custom tab/window titles.", "url": "https://addons.mozilla.org/en-US/firefox/addon/window-titler/" }
81
5,878
<gh_stars>1000+ #include "simdjson.h" SIMDJSON_PUSH_DISABLE_WARNINGS SIMDJSON_DISABLE_UNDESIRED_WARNINGS #include "to_chars.cpp" #include "from_chars.cpp" #include "internal/error_tables.cpp" #include "internal/jsoncharutils_tables.cpp" #include "internal/numberparsing_tables.cpp" #include "internal/simdprune_tables....
386
448
package org.wlf.filedownloader.file_download.base; import org.wlf.filedownloader.base.Stoppable; /** * DownloadTask interface * * @author wlf(Andy) * @datetime 2016-01-10 00:12 GMT+8 * @email <EMAIL> * @since 0.3.0 */ public interface DownloadTask extends Runnable, Stoppable { /** * get download url ...
292
678
<gh_stars>100-1000 /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/PhotoLibrary.framework/PhotoLibrary */ #import <PhotoLibrary/XXUnknownSuperclass.h> #import <PhotoLibrary/PhotoLibrary-Structs.h> @class UIImageView, UIImage, NSArray, UIView; @interface PLCamera...
825
778
<reponame>lkusch/Kratos #ifndef KRATOS_AMGCL_MPI_SOLVE_FUNCTIONS_H #define KRATOS_AMGCL_MPI_SOLVE_FUNCTIONS_H #include <boost/property_tree/ptree.hpp> namespace Kratos { void AMGCLSolve( int block_size, TrilinosSpace<Epetra_FECrsMatrix, Epetra_FEVector>::MatrixType& rA, TrilinosSpace<Epetra_FECrsMatrix, ...
301
1,144
<filename>backend/de.metas.adempiere.adempiere/base/src/main/java-gen/org/compiere/model/I_C_Fiscal_Representation.java package org.compiere.model; import javax.annotation.Nullable; import org.adempiere.model.ModelColumn; /** Generated Interface for C_Fiscal_Representation * @author metasfresh (generated) */ @Sup...
2,609
1,167
<gh_stars>1000+ /* * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl...
1,679
1,583
<filename>src/bitmessageqt/settingsmixin.py #!/usr/bin/python2.7 """ src/settingsmixin.py ==================== """ from PyQt4 import QtCore, QtGui class SettingsMixin(object): """Mixin for adding geometry and state saving between restarts.""" def warnIfNoObjectName(self): """ Handle objects ...
1,347
14,668
<gh_stars>1000+ // Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/containers/fixed_flat_set.h" #include "base/ranges/algorithm.h" #include "base/strings/string_piece.h" #include "base/test...
536
9,425
import salt.modules.jboss7 as jboss7 from salt.utils.odict import OrderedDict from tests.support.mixins import LoaderModuleMockMixin from tests.support.mock import MagicMock from tests.support.unit import TestCase class JBoss7TestCase(TestCase, LoaderModuleMockMixin): jboss_config = {} org_run_operation = No...
5,870
338
<reponame>ayumi-cloud/browscap<filename>resources/devices/tablet/shiru.json { "<NAME> 10": { "type": "tablet", "properties": { "Device_Name": "Samurai 10", "Device_Code_Name": "Samurai 10", "Device_Maker": "Shiru", "Device_Pointing_Method": "touchscreen", "Device_Brand_Name": "Sh...
159
376
<reponame>cjsmeele/Kvasir #pragma once #include <Register/Utility.hpp> namespace Kvasir { //Quadrature Encoder Interface (QEI) namespace QeiCon{ ///<Control register using Addr = Register::Address<0x400bc000,0x00000000,0x00000000,unsigned>; ///Reset position counter. When set = 1, resets the po...
10,791
333
import os, sys from rpython.tool.version import get_repo_version_info, _get_hg_archive_version def test_hg_archival_version(tmpdir): def version_for(name, items): path = tmpdir.join(name) path.write('\n'.join(('%s: %s' % (tag,value) for tag,value in items))) return _get_hg_archive_version(s...
509
777
{ "name": "service_manager_unittest_target", "display_name": "Service Manager Unittest: Target", "interface_provider_specs": { "service_manager:connector": { "requires": { "service_manager_unittest": [ "service_manager_unittest:create_instance_test" ] } } } }
138
373
<filename>bundle/src/test/resources/remoteassetstest/nodesync/dam.a.a1sub.a3gif.content.json { "jcr:primaryType": "dam:AssetContent", "jcr:lastModifiedBy": "admin", "dam:assetState": "processed", "jcr:lastModified": "Mon Jan 14 2019 13:11:47 GMT-0600", "dam:relativePath": "a/subfolder1/image_a3.gif", "rendi...
565
545
#include <iostream> #include "StrBlob.h" #include "ConstStrBlobPtr.h" void testStrBlob(const StrBlob &sb) { try { std::cout << "front: " << sb.front() << " back: " << sb.back() << std::endl; } catch (std::out_of_range err) { std::cerr << err.what() << " out of range" << std::endl; } catch (std::exceptio...
819
459
<gh_stars>100-1000 /* * This file is part of choco-solver, http://choco-solver.org/ * * Copyright (c) 2021, IMT Atlantique. All rights reserved. * * Licensed under the BSD 4-clause license. * * See LICENSE file in the project root for full license information. */ package org.chocosolver.solver.constraints.graph...
3,029
1,224
/* * Copyright (C) 2005-present, 58.com. All rights reserved. * Use of this source code is governed by a BSD type license that can be * found in the LICENSE file. */ package com.wuba.fair.register; import java.util.concurrent.ConcurrentHashMap; public class LocalRegister { private static LocalRegister localR...
254
1,056
/* * 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 ...
5,789
303
import sys import os import os.path import datetime import argparse from xml.etree.ElementTree import Element, SubElement, tostring from log import Log from texparser import TexParser from latexparser import LatexParser from gettexfile import file_has_suffix from gettexfile import get_tex_file from xiwi.common.misc i...
4,215
879
<filename>sdk/src/main/java/org/zstack/sdk/SftpBackupStorageInventory.java package org.zstack.sdk; public class SftpBackupStorageInventory extends org.zstack.sdk.BackupStorageInventory { public java.lang.String hostname; public void setHostname(java.lang.String hostname) { this.hostname = hostname; ...
330
2,151
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest from blinkpy.common.host_mock import MockHost from blinkpy.common.net.buildbot import Build from blinkpy.common.net.git_cl import TryJobStat...
3,537
809
<filename>src/cmds/hardware/sensors/adxl345/adxl345.c /** * @file adxl345.c * @brief Print adxl345 data in the endless loop * @author <NAME> <<EMAIL>> * @version * @date 18.12.2019 */ #include <stdint.h> #include <stdio.h> #include <drivers/sensors/adxl345.h> int main(int argc, char **argv) { printf("Testing ...
279
2,577
<filename>model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/instance/ModelElementInstanceImpl.java /* * 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 informati...
4,702
798
/* * The MIT License * * Copyright (c) 2019 The Broad Institute * * 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...
3,446
3,212
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
605
348
{"nom":"Moivrons","circ":"6ème circonscription","dpt":"Meurthe-et-Moselle","inscrits":383,"abs":228,"votants":155,"blancs":25,"nuls":5,"exp":125,"res":[{"nuance":"FI","nom":"<NAME>","voix":70},{"nuance":"FN","nom":"<NAME>","voix":55}]}
96
778
class ConvectionSolverSettings: unknown_variable = "TEMPERATURE" diffusion_variable = "CONDUCTIVITY" velocity_variable = "VELOCITY" Dt = 0.001 Start_time = 0.0 max_time = 0.1 output_time = 0.1 domain_size = 2
90
15,337
<reponame>fairhopeweb/saleor<filename>saleor/graphql/shipping/resolvers.py from prices import MoneyRange from ...shipping import models from ..channel import ChannelQsContext def resolve_shipping_zones(channel_slug): if channel_slug: instances = models.ShippingZone.objects.filter(channels__slug=channel_s...
277
5,169
<gh_stars>1000+ { "name": "RelapSDK", "version": "0.0.4", "summary": "Relap.io SDK", "homepage": "https://github.com/relap-io/relap-ios-sdk", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "Username": "<EMAIL>" }, "platforms": { "ios": 7.0 }, "source": { "git": "...
248
489
# This is a proof of concept for CVE-2020-5377, an arbitrary file read in Dell OpenManage Administrator # Proof of concept written by: <NAME> @daveysec with Rhino Security Labs # More information can be found here: # A patch for this issue can be found here: # https://www.dell.com/support/article/en-us/sln322304/dsa-...
1,990
1,162
<reponame>Alex-Werner/isolated-vm<filename>src/isolate/three_phase_task.h #pragma once #include "node_wrapper.h" #include "environment.h" #include "holder.h" #include "functor_runners.h" #include "remote_handle.h" #include "stack_trace.h" #include "util.h" #include <memory> namespace ivm { /** * Most operations in t...
1,705
27,296
// Copyright (c) 2014 <NAME> <<EMAIL>> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, pub...
873
348
{"nom":"Lanrigan","circ":"2ème circonscription","dpt":"Ille-et-Vilaine","inscrits":107,"abs":55,"votants":52,"blancs":3,"nuls":1,"exp":48,"res":[{"nuance":"MDM","nom":"<NAME>","voix":31},{"nuance":"LR","nom":"<NAME>","voix":17}]}
95
448
<gh_stars>100-1000 #include <sys/sysinfo.h> #include <stdio.h> #include <string.h> #include <inttypes.h> #include "linux_utils.h" #define LOG_TAG "linux_utils" //#include "utils/frame_work_log.h" typedef struct { size_t size; /* total program size */ size_t resident; /* resident set size */ size_t share; ...
2,572
876
#include <collection.h> int queue_init(struct queue *queue, size_t element_size, size_t max_queue_size) { memset(queue, 0, sizeof(*queue)); queue->start_index = 0; queue->length = 0; queue->size = 2; queue->elements = calloc(2, element_size); queue->max_queue_size = max_queue_size; queue->element_size = eleme...
4,133
5,169
<reponame>Gantios/Specs<gh_stars>1000+ { "name": "C8oSDK", "module_name": "C8o", "version": "2.4.0", "authors": "Convertigo", "license": "Apache License 2.0", "summary": "Convertigo client SDK for iOS.", "description": "Convertigo Client SDK is a set of native libraries used by iOS applications to access ...
775
2,869
/* * JBoss, Home of Professional Open Source. * Copyright 2014 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Licen...
1,273
1,091
/* * Copyright 2019-present Open Networking Foundation * * 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 appli...
4,337
2,504
<filename>Samples/StreamSocket/cpp/Scenario1.xaml.h //********************************************************* // // Copyright (c) Microsoft. All rights reserved. // This code is licensed under the MIT License (MIT). // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INC...
1,369
988
/* * PROGRAM: Operate lists of plugins * MODULE: ParsedList.h * DESCRIPTION: Parse, merge, etc. lists of plugins in firebird.conf format * * The contents of this file are subject to the Initial * Developer's Public License Version 1.0 (the "License"); * you may not use this file except in compliance with the...
651
386
#pragma once #include <QDialog> namespace Ui { class CNodePortEditorDialog; } class CNode; class CNodePort; class CNodePortEditorDialog : public QDialog { Q_OBJECT public: CNodePortEditorDialog(); ~CNodePortEditorDialog(); int exec(CNodePort &port); private Q_SLOTS: void on_Anchor_currentIndexChanged(int...
216
368
package com.mogujie.tt.ui.activity; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import android.view.Window; import com.mogujie.tt.R; import com.mogujie.tt.config.IntentConstant; import com.mogujie.tt.imservice.event.L...
2,755
4,322
<reponame>arntsonl/gnirehtet /* * Copyright (C) 2017 Genymobile * * 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...
2,208
1,609
<reponame>liuluyang530/gemmlowp-gpt // Copyright 2016 The Gemmlowp 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/L...
2,492
351
import urllib import json import os import shutil import time import random import sys import hashlib import base64 import bencodepy import libtorrent from locking import LockManager def get_torrent_info(h): while not h.has_metadata(): time.sleep(1) return h.get_torrent_info() def get_index_and_fi...
3,360
6,717
/** * OpenAL cross platform audio library * Copyright (C) 1999-2010 by authors. * 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 (at your op...
5,736
584
// // compat.h // AppleIntelWifiAdapter // // Created by <NAME> on 3/31/20. // Copyright © 2020 IntelWifi for MacOS authors. All rights reserved. // /* Original file, with LOTS of functionality ripped out that was unnecessary */ #ifndef APPLEINTELWIFIADAPTER_COMPAT_COMPAT_H_ #define APPLEINTELWIFIADAPTER_COMPAT_C...
229
319
# zwei 05/16/14 # default args foo = 1 bars = [] for i in range(2): def bar(f=foo): print(f) bars.append(bar) foo += 1 bars[0]() foo = 2 bars[1]()
87
17,085
<filename>paddle/fluid/inference/tests/api/analyzer_detect_functional_mkldnn_tester.cc /* Copyright (c) 2021 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 a...
2,006
375
/* * This file is part of the Wayback archival access software * (http://archive-access.sourceforge.net/projects/wayback/). * * Licensed to the Internet Archive (IA) by one or more individual * contributors. * * The IA licenses this file to You under the Apache License, Version 2.0 * (the "License"); y...
1,247
1,168
/** * The MIT License * Copyright © 2010 JmxTrans team * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, mo...
836
678
<filename>Gems/AtomTressFX/External/Code/src/SceneGLTFImpl.h // Copyright(c) 2019 Advanced Micro Devices, Inc.All rights reserved. // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files(the "Software"), to deal // in the Software without...
1,679
312
#ifndef __H263D_API_H__ #define __H263D_API_H__ #include "parser_api.h" #ifdef __cplusplus extern "C" { #endif extern const ParserApi api_h263d_parser; #ifdef __cplusplus } #endif #endif
93
1,299
<filename>rxnetty-common/src/test/java/io/reactivex/netty/channel/WriteStreamSubscriberTest.java<gh_stars>1000+ /* * Copyright 2015 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 Lic...
4,136
349
/* * The MIT License * * Copyright (c) 2021 <NAME>. * * 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, modi...
2,776
3,102
<filename>test/CodeGen/builtins-systemz-vector.c // REQUIRES: systemz-registered-target // RUN: %clang_cc1 -target-cpu z13 -triple s390x-ibm-linux -flax-vector-conversions=none \ // RUN: -Wall -Wno-unused -Werror -emit-llvm %s -o - | FileCheck %s typedef __attribute__((vector_size(16))) signed char vec_schar; typedef ...
18,825
496
#include "program.h" #include <iostream> #include "error.h" using namespace std; int main(int argc, const char* argv[]) { if (argc != 2) { cerr << "Usage: simit-check <simit-source>" << endl; return 3; } simit::init("cpu"); simit::Program program; int status = program.loadFile(argv[1]); if (statu...
255
415
<reponame>zu1kbackup/joern { "description": "A collection of general purpose scripts.", "scripts": [ { "name": "list-funcs.sc", "description": "Lists all functions." } ] }
81
862
/* * (c) Copyright 2018 Palantir Technologies Inc. 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 ...
572
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,618
362
{ "recommendations": [ "esbenp.prettier-vscode", "vscode-icons-team.vscode-icons", "graphql.vscode-graphql" ] }
66
2,151
<reponame>zipated/src // Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "media/capture/video/mock_gpu_memory_buffer_manager.h" #include <memory> #if defined(OS_CHROMEOS) #include "media/capture...
1,463
995
<filename>lib/losses3D/pixel_wise_cross_entropy.py from lib.losses3D.basic import * import torch.nn as nn # Code was adapted and mofified from https://github.com/wolny/pytorch-3dunet/blob/master/pytorch3dunet/unet3d/losses.py class PixelWiseCrossEntropyLoss(nn.Module): def __init__(self, class_weights=None, ignor...
665
3,353
<reponame>bsipocmpi/jetty.project<filename>jetty-rewrite/src/main/java/org/eclipse/jetty/rewrite/handler/TerminatingPatternRule.java // // ======================================================================== // Copyright (c) 1995-2021 Mort Bay Consulting Pty Ltd and others. // // This program and the accompanying m...
536
389
<gh_stars>100-1000 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ Copyright 2019 Adobe ~ ~ 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:...
649
1,337
/* * Copyright (c) 2008-2016 Haulmont. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
9,202
1,932
package cn.springcloud.book.config.config; import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig; import org.springframework.context.annotation.Configuration; /** * @author zunfa.zhong * @date 2018-7-15 19:44:44 */ @Configuration @EnableApolloConfig(value = "application", order = 10) public class ...
107
3,857
<filename>dev.skidfuscator.obfuscator/src/main/java/dev/skidfuscator/obf/skidasm/SkidGraph.java package dev.skidfuscator.obf.skidasm; import dev.skidfuscator.obf.attribute.Attributable; import dev.skidfuscator.obf.attribute.Attribute; import dev.skidfuscator.obf.attribute.AttributeKey; import dev.skidfuscator.obf.attr...
8,686
30,023
<reponame>MrDelik/core<gh_stars>1000+ """Constants for the FiveM integration.""" ATTR_PLAYERS_LIST = "players_list" ATTR_RESOURCES_LIST = "resources_list" DOMAIN = "fivem" ICON_PLAYERS_MAX = "mdi:account-multiple" ICON_PLAYERS_ONLINE = "mdi:account-multiple" ICON_RESOURCES = "mdi:playlist-check" MANUFACTURER = "Cfx...
230
419
/* * Copyright (C) 2015-2018 Alibaba Group Holding Limited */ #ifndef __SDK_IMPL_INTERNAL_H__ #define __SDK_IMPL_INTERNAL_H__ #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include "iot_import.h" #include "iot_export.h" #include "iotx_utils.h" #include "iotx_sy...
1,439
1,478
/** * Copyright (c) 2015-present, Facebook, Inc. * 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. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #pragma on...
477
698
/* Copyright 2010, Strategic Gains, 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 applicable law or agreed to in writ...
522
327
from mythic_payloadtype_container.MythicCommandBase import * import json from mythic_payloadtype_container.MythicRPC import * import base64 class InjectArguments(TaskArguments): def __init__(self, command_line): super().__init__(command_line) self.args = { "template": CommandParameter(...
1,678
454
/************************************************************************ * Licensed under Public Domain (CC0) * * * * To the extent possible under law, the person who associated CC0 with * * this code has waiv...
2,846
3,428
{"id":"02331","group":"easy-ham-1","checksum":{"type":"MD5","value":"20925f3659cfea80ba7be52b3c379524"},"text":"From <EMAIL> Mon Oct 7 12:05:28 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>int.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) with ESMTP id 6F8EF16F7D\n\tfor <jm@lo...
743
777
# Copyright (C) 2010 Google Inc. All rights reserved. # Copyright (C) 2010 <NAME> (<EMAIL>), University of Szeged # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain th...
6,223
320
#include "KBDManager.hpp" #include "utils.hpp" #include "Permissions.hpp" using namespace std; using namespace Permissions; constexpr int FSW_MAX_WAIT_PERMISSIONS_US = 5 * 1000000; KBDManager::~KBDManager() { for (Keyboard *kbd : kbds) delete kbd; } void KBDManager::setup() { for (auto& kbd : kbds) ...
3,106
841
<reponame>brunolmfg/resteasy<gh_stars>100-1000 package org.jboss.resteasy.test.resource.param.resource; import org.jboss.resteasy.test.resource.param.UriParamAsPrimitiveTest; import org.junit.Assert; import jakarta.ws.rs.GET; import jakarta.ws.rs.Path; import jakarta.ws.rs.PathParam; @Path("/double/wrapper/{arg}") p...
226
2,133
#include <Airmap/services/telemetry.h> #include <airmap/flight.h> std::shared_ptr<airmap::services::Telemetry> airmap::services::Telemetry::create(const std::shared_ptr<Dispatcher>& dispatcher, const std::shared_ptr<airmap::Client>& client) { retu...
415
2,114
<filename>jest/src/test/java/io/searchbox/client/http/FailingProxyTest.java package io.searchbox.client.http; import java.io.IOException; import java.util.concurrent.Semaphore; import org.hamcrest.Matchers; import org.junit.After; import org.junit.Before; import org.junit.Test; import io.netty.handler.codec.http.Htt...
1,662
320
from cpu import getCPU import sys def getCPUFlags(cpuName): cpu = getCPU(cpuName) return ' '.join(cpu.gccFlags) if __name__ == '__main__': if len(sys.argv) == 2: cpuName = sys.argv[1] try: print(getCPUFlags(cpuName)) except KeyError: print('Unknown CPU "%s"' % cpuName, file=sys.stderr) else: print(...
173
14,668
#!/usr/bin/python # Copyright (C) 2013 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of c...
4,347
841
package org.jboss.resteasy.spi; import jakarta.ws.rs.WebApplicationException; import jakarta.ws.rs.core.Response; /** * WebApplicationExceptions are logged by RESTEasy. Use this exception when you don't want your exception logged * * @author <a href="mailto:<EMAIL>"><NAME></a> * @version $Revision: 1 $ */ publi...
387
471
<reponame>madanagopaltcomcast/pxCore /////////////////////////////////////////////////////////////////////////////// // Name: src/msw/ole/droptgt.cpp // Purpose: wxDropTarget implementation // Author: <NAME> // Modified by: // Created: // Copyright: (c) 1998 <NAME> <<EMAIL>> // Licence: wxWindows ...
9,382
1,666
<gh_stars>1000+ // Copyright 2018 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_BUILTINS_BUILTINS_UTILS_INL_H_ #define V8_BUILTINS_BUILTINS_UTILS_INL_H_ #include "src/builtins/builtins-utils.h" #include ...
494
1,059
<filename>io/src/FileSystem/FileSystemEntity.h /* * Copyright 2017 BlazingDB, Inc. * Copyright 2018 <NAME> <<EMAIL>> */ #ifndef _BLAZING_FILE_SYSTEM_ENTITY_H_ #define _BLAZING_FILE_SYSTEM_ENTITY_H_ #include "FileSystem/FileSystemConnection.h" #include "FileSystem/Path.h" // NOTE Immutable class class FileSyst...
529
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "const_iterator.h" #include "db_merger.h" #include <vespa/document/bucket/bucketid.h> #include <vespa/vespalib/btree/btree.h> #include <vespa/vespalib/btree/minmaxaggregated.h> #include <vespa...
3,041
1,144
<filename>backend/de.metas.adempiere.adempiere/base/src/main/java/org/adempiere/model/CopyRecordFactory.java<gh_stars>1000+ package org.adempiere.model; import de.metas.logging.LogManager; import de.metas.util.Check; import de.metas.util.Services; import lombok.NonNull; import org.adempiere.exceptions.AdempiereExcepti...
1,204
819
/* Copyright 2017 Google Inc. 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 agreed to in ...
1,132
4,234
#include <assert.h> #include <libnu/defines.h> #include <libnu/ducet.h> #include <libnu/strcoll.h> #include <libnu/strcoll_internal.h> #if (defined NU_WITH_Z_COLLATION) || (defined NU_WITH_N_COLLATION) int32_t _compound_weight(int32_t w, const char **encoded, const char *limit, nu_read_iterator_t read, nu_compound...
4,999
841
package com.gzsll.hupu.bean; /** * Created by sll on 2015/12/12. */ public class BaseError { public int id; public String text; }
56
407
<reponame>rhs0266/FastCampus import heapq import sys si = sys.stdin.readline n = int(si()) m = int(si()) con = [[] for _ in range(n + 1)] for _ in range(m): u, v, weight = map(int, si().split()) con[u].append((v, weight)) start, destination = map(int, si().split()) # 모든 정점까지에 대한 거리를 무한대로 초기화 해주기. # ※주의사항※ # 문...
833
666
/* Copyright 2019 Istio 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 applicab...
781
580
<reponame>bashmish/polymer-tools<filename>packages/web-component-tester/.vscode/settings.json // Place your settings in this file to overwrite default and user settings. { "clang-format.style": "file", "editor.formatOnSave": true, "editor.formatOnType": true, "files.exclude": { "runner/*.js": true, "run...
307
17,085
# Copyright (c) 2021 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 # # Unless required by ap...
1,520
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...
4,426
384
<gh_stars>100-1000 #include<rpc/rpc.h> #include<rpc/xdr.h> int main() { /* This should only compile, not run, so set xd to NULL */ XDR *xd = NULL; float f; xdr_float(xd,&f); return 0; }
97