max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
590
<filename>uflo-core/src/main/java/com/bstek/uflo/command/impl/QueryCountCommand.java /******************************************************************************* * Copyright 2017 Bstek * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the ...
469
470
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" class IPatchableInterface { // Add interface functions to this class. This is the class that will be inherited to implement this interface. public: virtual void ImportConfig()=0; virtu...
154
558
''' * @file BubbleSort.py * @author (original JAVA) <NAME>, <EMAIL> * (conversion to Python) <NAME>, <EMAIL> * @date 27 Jun 2020 * @version 0.1 * @brief Bubble sort implementation ''' class BubbleSort(): def __init__(self): pass def sort(self, ar): """ Sort the array using bubbl...
438
361
<gh_stars>100-1000 { "name": "Aborea Character Sheet AutoCalculations", "script": "Aborea Character Sheet AutoCalculations.js", "version": "1.0", "previousversions": [], "description": "Provides some automated calculations for values of attributes that cannot be calculated by the html sheet directly...
165
348
{"nom":"Cappelle-en-Pévèle","circ":"6ème circonscription","dpt":"Nord","inscrits":1744,"abs":902,"votants":842,"blancs":55,"nuls":35,"exp":752,"res":[{"nuance":"LR","nom":"<NAME>","voix":399},{"nuance":"REM","nom":"<NAME>","voix":353}]}
99
3,589
<reponame>sadernalwis/WickedEngine<gh_stars>1000+ #pragma once #include "wiLua.h" #include "wiLuna.h" #include "LoadingScreen.h" #include "RenderPath2D_BindLua.h" class LoadingScreen_BindLua : public RenderPath2D_BindLua { private: LoadingScreen loadingscreen; public: static const char className[]; static Luna<Load...
240
1,178
/* * Copyright 2020 Makani Technologies 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 ...
1,631
14,668
/* * Protocol Buffers - Google's data interchange format * Copyright 2014 Google Inc. All rights reserved. * https://developers.google.com/protocol-buffers/ * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * ...
941
348
<reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000 {"nom":"Cenans","circ":"2ème circonscription","dpt":"Haute-Saône","inscrits":106,"abs":48,"votants":58,"blancs":4,"nuls":1,"exp":53,"res":[{"nuance":"REM","nom":"<NAME>","voix":34},{"nuance":"FN","nom":"M. <NAME>","voix":19}]}
121
575
<filename>ui/events/ozone/evdev/input_controller_evdev.h // Copyright 2014 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 UI_EVENTS_OZONE_EVDEV_INPUT_CONTROLLER_EVDEV_H_ #define UI_EVENTS_OZONE_EVDEV_INPUT_CONTR...
1,944
12,718
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2018 Canonical Ltd. * */ #ifndef _LINUX_BINDERFS_H #define _LINUX_BINDERFS_H #include <linux/android/binder.h> #include <linux/types.h> #include <linux/ioctl.h> #define BINDERFS_MAX_NAME 255 /** * struct binderfs_device - retrieve...
293
1,425
/* * 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 ...
914
765
#ifndef B_H #define B_H "$Header: /Users/acg/CVSROOT/systemc-2.3/src/sysc/qt/b.h,v 1.1.1.1 2006/12/15 20:20:06 acg Exp $" #include "copyright.h" extern void b_call_reg (int n); extern void b_call_imm (int n); extern void b_add (int n); extern void b_load (int n); #endif /* ndef B_H */
141
652
import random import warnings from copy import deepcopy from pandas.core.common import _values_from_object import numpy as np from pandas.compat import range, zip # # TODO: # * Make sure legends work properly # warnings.warn("\n" "The rplot trellis plotting interface is deprecated and will be " ...
13,401
1,127
<gh_stars>1000+ // Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <vector> #include <gtest/gtest.h> #include "memory/gna_memory.hpp" using namespace GNAPluginNS::memory; class GNAMemoryTest : public ::testing::Test { protected: GNAMemory<GNAFloatAllocator> mem{ GNAF...
6,525
659
<reponame>swe-zzf/shark-jdbc /* * Copyright 2015-2101 gaoxianglong * * 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 requ...
3,182
575
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/webui/internals/notifications/notifications_internals_ui_message_handler.h" #include <memory> #include <string> #include <uti...
746
396
<filename>glyce/models/srl/make_char_vocab.py<gh_stars>100-1000 import collections import pickle import os def make_char_vocab(filename, output_path): chars = [] with open(filename, 'r', encoding='utf-8') as f: data = f.read() words = data.strip().split('\n') print(len(words)) for word i...
604
1,609
package com.mossle.bpm.persistence.domain; // Generated by Hibernate Tools import java.util.HashSet; import java.util.Set; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.Ma...
2,031
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/GeoServices.framework/GeoServices */ @protocol GEOSupportedTileSetsServerProxyDelegate <NSObject> - (void)supportedTileSetsServerProxyUpdateDidFail:(id)supportedTileSetsServerProxyUpdate; - (void)supportedTileSets...
140
1,080
# -*- coding:utf-8 -*- import sys from multiprocessing import Process, Value as PValue, current_process from os.path import getsize from threading import Thread from paramiko import SSHClient, AutoAddPolicy from hypernets.utils import logging from hypernets.utils.common import Counter logger = logging.get_logger(__...
1,728
16,989
// Copyright 2021 The Bazel 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 appl...
1,892
348
<reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/086/08603237.json {"nom":"Saint-Pierre-d'Exideuil","circ":"3ème circonscription","dpt":"Vienne","inscrits":635,"abs":338,"votants":297,"blancs":26,"nuls":11,"exp":260,"res":[{"nuance":"REM","nom":"<NAME>","voix":186},{"nuance":"FN","nom":"<NAME>","voix"...
134
623
import torch from torch_sparse.tensor import SparseTensor def test_overload(): row = torch.tensor([0, 1, 1, 2, 2]) col = torch.tensor([1, 0, 2, 1, 2]) mat = SparseTensor(row=row, col=col) other = torch.tensor([1, 2, 3]).view(3, 1) other + mat mat + other other * mat mat * other o...
188
593
<gh_stars>100-1000 /** * TLS-Attacker - A Modular Penetration Testing Framework for TLS * * Copyright 2014-2022 Ruhr University Bochum, Paderborn University, Hackmanit GmbH * * Licensed under Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0.txt */ package de.rub.nds.tlsattacker.core.prot...
2,218
471
<gh_stars>100-1000 """ List the IDs of deleted users for a given domain """ from django.core.management import BaseCommand from corehq.apps.domain.dbaccessors import get_doc_ids_in_domain_by_class from corehq.apps.hqwebapp.doc_info import get_doc_info_by_id from corehq.apps.users.dbaccessors import ( get_mobile_u...
622
435
{ "description": "The Python data ecosystem has grown beyond the confines of single\nmachines to embrace scalability. Here we describe one of our approaches\nto scaling, which is already being used in production systems. The goal\nof in-database analytics is to bring the calculations to the data,\nreducing transport ...
537
571
/*************************************************************************** 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/licen...
613
310
/* * Copyright [2019] [恒宇少年 - 于起宇] * * 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 ...
935
5,766
// // TestFailure.h // #ifndef Poco_CppUnit_TestFailure_INCLUDED #define Poco_CppUnit_TestFailure_INCLUDED #include "CppUnit/TestFailure.h" #endif // Poco_CppUnit_TestFailure_INCLUDED
78
735
<reponame>1443213244/small-package /* * Copyright (C) AlexWoo(<NAME>) <EMAIL> */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> #include "ngx_map.h" static ngx_pool_t *ngx_rbuf_pool; static ngx_map_t ngx_rbuf_map; static ngx_chain_t *ngx_rbuf_free_chai...
4,124
318
<reponame>adam11grafik/maven-surefire package org.apache.maven.surefire.api.util; /* * 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...
366
310
<filename>gear/hardware/p/ps4-pro.json<gh_stars>100-1000 { "name": "PS4 Pro", "description": "A gaming console.", "url": "https://www.playstation.com/en-us/explore/ps4-pro/" }
76
1,062
/** * Copyright 2014 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 requir...
648
301
<filename>test/src/tc/re/junit/src/org/iotivity/test/re/tc/stc/REResourceBrokerTest.java<gh_stars>100-1000 //****************************************************************** // // Copyright 2016 Samsung Electronics All Rights Reserved. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Licens...
5,839
892
{ "schema_version": "1.2.0", "id": "GHSA-6r8v-ww3c-grvh", "modified": "2022-04-23T00:03:22Z", "published": "2022-04-16T00:00:53Z", "aliases": [ "CVE-2022-26034" ], "details": "Improper authentication vulnerability in the communication protocol provided by AD (Automation Design) server of CENTUM VP R6....
570
405
<reponame>macharmi/workalendar from datetime import date from ..core import MON, WesternCalendar from ..registry_tools import iso_register @iso_register('GG') class Guernsey(WesternCalendar): 'Guernsey' include_easter_monday = True include_boxing_day = True shift_new_years_day = True include_goo...
798
407
package com.alibaba.tesla.tkgone.server.common; import lombok.Data; import java.util.ArrayList; import java.util.List; @Data public class Range { int start = 0; int stop = 1; int step = 1; public Range(int start, int stop, int step) { this.start = start; this.stop = stop; th...
312
1,425
/* * 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 ...
1,365
536
<gh_stars>100-1000 package com.ctrip.ops.sysdev.cmd; import com.ctrip.ops.sysdev.baseplugin.BaseFilter; import com.ctrip.ops.sysdev.baseplugin.BaseInput; import com.ctrip.ops.sysdev.baseplugin.BaseOutput; import lombok.extern.log4j.Log4j2; import java.lang.reflect.Constructor; import java.util.*; @Log4j2 public clas...
4,416
348
<gh_stars>100-1000 {"nom":"<NAME>","circ":"2ème circonscription","dpt":"Var","inscrits":16399,"abs":9021,"votants":7378,"blancs":498,"nuls":144,"exp":6736,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":3731},{"nuance":"FN","nom":"<NAME>","voix":3005}]}
104
474
package org.javacord.api.listener.server; import org.javacord.api.event.server.ServerChangeMultiFactorAuthenticationLevelEvent; import org.javacord.api.listener.GloballyAttachableListener; import org.javacord.api.listener.ObjectAttachableListener; /** * This listener listens to server multi factor authentication lev...
224
1,435
<reponame>dupontz/libcloud {"status":"ACTIVE","region":"SBG1","name":"test_vm","image":{"visibility":"public","status":"active","region":"SBG1","name":"Ubuntu12.04","minDisk":0,"size":2.19921875,"creationDate":"2016-06-01T07:39:56Z","minRam":0,"user":"ubuntu","id":"3031ed24-8337-4b09-94b5-e51c54bec6c8","type":"linux"},...
363
653
<gh_stars>100-1000 package se.michaelthelin.spotify.enums; import java.util.HashMap; import java.util.Map; /** * An enumeration of all possible Spotify product types. */ public enum ProductType { BASIC_DESKTOP("basic-desktop"), DAYPASS("daypass"), FREE("free"), OPEN("open"), PREMIUM("premium"); privat...
290
14,668
<filename>chrome/test/data/extensions/js_injection_background/manifest.json { "name": "js_injection_background", "description": "Tests JS injection into an extension's background page. The name of a DOM node in the background page is returned and verified.", "version": "0.1", "manifest_version": 2, "backg...
142
778
/* * Copyright (C) 2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/helpers/engine_node_helper.h" #include "test.h" using namespace NEO; TEST(EngineNodeHelperTests, givenValidEngineUsageWhenGettingStringRepresentationThenItIsCorrect) { EXPECT_EQ(std::string{"Regular"}, E...
837
1,127
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include "shared_test_classes/subgraph/matmul_multiply_fusion.hpp" namespace SubgraphTestsDefinitions { TEST_P(MatMulMultiplyFusion, CompareWithRefs) { Run(); } TEST_P(QuantizedMatMulMultiplyFusion, CompareWithR...
147
5,169
{ "name": "IRCrypto", "version": "0.9.1", "summary": "iOS Crypto library: Provides Symmetric and Asymmetric Encryption as well as AEAD using RNCryptor Data Format v3", "description": "IRCrypto aims to provide the following:\n\nCryptographic Key Derivation (using PBKDF2 with 10,000 rounds) from a String\nSymmetr...
595
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 ...
3,439
2,151
<filename>extensions/browser/extension_icon_placeholder.h<gh_stars>1000+ // Copyright 2015 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 EXTENSIONS_BROWSER_EXTENSION_ICON_PLACEHOLDER_H_ #define EXTENSIONS_BROWS...
587
920
<reponame>slikos/espresso # Copyright (c) <NAME> # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import espresso.criterions # noqa import espresso.models # noqa import espresso.modules # noqa import espresso.optim # noqa import espresso....
115
516
# Copyright (c) 2018 Anki, 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 in the file LICENSE.txt or at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
1,116
2,329
/* * 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 ...
1,588
456
<reponame>767214481/Summer package com.swingfrog.summer.test.ecsgameserver.infrastructure; public interface SessionHandlerPriority { int LOGIN = 1000; int PLAYER = 900; }
63
4,054
<reponame>Thendont/lwjgl<filename>modules/lwjgl/opencl/src/generated/java/org/lwjgl/opencl/KHRMipmapImage.java /* * Copyright LWJGL. All rights reserved. * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.opencl; /** * Native bindings to the <strong>khr_mipma...
350
2,542
<gh_stars>1000+ // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #pragma once ...
282
401
<reponame>mariuslindegaard/6.867_MARL_project from matplotlib.pyplot import xcorr import torch as th from torch.distributions import Categorical from torch.distributions.one_hot_categorical import OneHotCategorical from .epsilon_schedules import DecayThenFlatSchedule class GumbelSoftmax(OneHotCategorical): def __...
3,041
5,169
<reponame>Gantios/Specs { "name": "SwiftLocation", "version": "5.0.1", "summary": "Location Manager Made Easy", "description": "Efficient location tracking for iOS with support for oneshot/continuous/background tracking, reverse geocoding, autocomplete, geofencing, beacon monitoring & broadcasting", "homepage...
372
372
<reponame>arithmetic1728/google-api-java-client-services /* * 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 ...
1,738
930
package com.zone.weixin4j.interceptor; import com.zone.weixin4j.exception.WeixinException; import com.zone.weixin4j.handler.WeixinMessageHandler; import com.zone.weixin4j.request.WeixinMessage; import com.zone.weixin4j.request.WeixinRequest; import com.zone.weixin4j.response.WeixinResponse; /** * 消息拦截适配 * * @autho...
488
1,010
<filename>src/lib/shim/shim_api_addrinfo.c /* * The Shadow Simulator * See LICENSE for licensing information */ #include <assert.h> #include <dlfcn.h> #include <errno.h> #include <fcntl.h> #include <glib.h> #include <netdb.h> #include <stdarg.h> #include <stdlib.h> #include <string.h> #include <strings.h> #include <...
7,808
308
package com.wanbo.werb.ui.view; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; /** * Created by Werb on 2016/8/2. * Werb is Wanbo. * Contact Me : <EMAIL> */ public interface ITabView { String getWeiBoId(); RecyclerView getRecyclerView(); LinearLay...
127
719
<gh_stars>100-1000 package com.googlecode.objectify; import com.googlecode.objectify.util.Closeable; /** * A simple thread local namespace manager, similar to legacy GAE's {@code NamespaceManager}. */ public class NamespaceManager { /** */ private static final ThreadLocal<String> NAMESPACE = new ThreadLocal<>();...
610
777
<gh_stars>100-1000 // Copyright 2015 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 WebSelection_h #define WebSelection_h #include "../platform/WebCommon.h" #include "../platform/WebSelectionBound.h" namespace...
467
435
<reponame>amaajemyfren/data<filename>pydata-london-2015/videos/helena-bengtsson-keynote-how-to-find-stories-in-data.json { "description": "This talk is about how data is used to enrich stories at the Guardian.", "duration": 2486, "language": "eng", "recorded": "2015-06-20", "speakers": [ "<NAME>" ], "...
256
1,186
# -*- coding: utf-8 -*- from base import * import requests import socket ASSERT_RESPONSE = b"Hello world!" RESPONSE = [b"Hello ", b"world!"] DEFAULT_HOST = "localhost" DEFAULT_PORT = 8000 DEFAULT_METHOD = "GET" DEFAULT_PATH = "/PATH?ket=value" DEFAULT_VERSION = "HTTP/1.0" DEFAULT_ADDR = (DEFAULT_HOST, DEFAULT_PORT)...
1,406
3,066
<filename>server/src/main/java/org/elasticsearch/common/joda/FormatDateTimeFormatter.java /* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file t...
653
1,001
# 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 not u...
1,624
4,695
{ "1111001": "The upload file was not found", "1111002": "Failed to save file %s", "1111003": "Failed to open file %s", "1111004": "The contents of the file cannot be empty, %s", "1111005": "Failed to get file contents %s", "1111006": "Failed to get host data, error: %s", "1111007": "Failed ...
431
6,989
<filename>thrust/detail/complex/ccosh.h /* * Copyright 2008-2013 NVIDIA Corporation * Copyright 2013 <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.ap...
2,776
307
<gh_stars>100-1000 /** * Copyright 2010 <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 ...
1,778
1,442
<gh_stars>1000+ #include <escher/message_text_view.h> #include <assert.h> namespace Escher { MessageTextView::MessageTextView(const KDFont * font, I18n::Message message, float horizontalAlignment, float verticalAlignment, KDColor textColor, KDColor backgroundColor) : TextView(font, horizontalAlignment, vertical...
267
3,102
<gh_stars>1000+ // RUN: %clang -fsyntax-only %s // rdar://6757323 // foo \ #define blork 32
43
8,514
<reponame>Jimexist/thrift package org.apache.thrift.transport; import junit.framework.TestCase; import java.nio.charset.StandardCharsets; import org.apache.thrift.TException; import java.nio.ByteBuffer; public class TestTByteBuffer extends TestCase { public void testReadWrite() throws Exception { final TByteBu...
480
385
import open3d as o3d import numpy as np import config import constants from config import args from utils.temporal_optimization import OneEuroFilter from visualization.create_meshes import create_body_mesh, create_body_model def convert_trans_scale(trans): trans *= np.array([0.4, 0.6, 0.7]) return trans cla...
2,743
1,515
<reponame>canwdev/PptxGenJS<gh_stars>1000+ { "rules": { "array-type": false, "arrow-return-shorthand": [true, "multiline"], "no-duplicate-switch-case": true, "no-duplicate-variable": true, "no-empty": true, "no-eval": true, "no-string-literal": false, "no-string-throw": true, "no-u...
234
310
package org.seasar.doma.internal.apt.processor.entity; import org.seasar.doma.Entity; import org.seasar.doma.Id; import org.seasar.doma.Version; @Entity public class VersionDuplicatedEntity { @Id Integer id; @Version Integer version; @Version Integer version2; public Integer getId() { return id; } ...
224
2,777
<filename>launcher/ui/themes/FusionTheme.h<gh_stars>1000+ #pragma once #include "ITheme.h" class FusionTheme: public ITheme { public: virtual ~FusionTheme() {} QString qtTheme() override; };
79
363
<reponame>LarsP8/service-proxy<filename>core/src/main/java/com/predic8/membrane/core/jmx/JmxExporter.java<gh_stars>100-1000 /* * Copyright 2016 predic8 GmbH, www.predic8.com * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * ...
1,021
1,069
<gh_stars>1000+ # coding: utf-8 from django.db import models from django_th.models import TriggerService from django_th.models.services import Services from django.utils.translation import ugettext_lazy as _ SCOPES = ( ('home', _('Home')), ('public', _('Public')) ) class Mastodon(Services): """ ...
455
3,702
/* * 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 * distrib...
756
7,353
<gh_stars>1000+ /** * @file list.c * @author <NAME> <<EMAIL>> * * @section LICENSE * * 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 * noti...
9,862
469
{ "continue": "Продолжить", "copy": "Copy", "copySeed": "Copy Seed phrase", "createAccount": "Создать аккаунт", "goBack": "go back", "notHaveAccounts": "У вас нет сохранённых аккаунтов", "nothingHere": "Пока ничего нет…", "password": { "error": "<PASSWORD>!" }, "userList"...
523
2,805
<gh_stars>1000+ # encoding: utf-8 """041 Resource new fields Revision ID: <KEY> Revises: <PASSWORD> Create Date: 2018-09-04 18:49:03.042528 """ from alembic import op import sqlalchemy as sa from ckan.migration import skip_based_on_legacy_engine_version # revision identifiers, used by Alembic. revision = '<KEY>' down...
750
666
# Copyright 2019 BDL Benchmarks 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 applica...
7,111
396
{"routes":[{"geometry":"mklyJf{ph@g@aHh@m@LeBD_BDuNAqC_@_R","legs":[{"summary":"Velbastaðarvegur, Gamli Velbastaðvegur","weight":74.2,"duration":65.3,"steps":[{"intersections":[{"out":0,"entry":[true],"bearings":[74],"location":[-6.808995,62.000073]}],"driving_side":"right","geometry":"mklyJf{ph@g@aH","mode":"driving",...
741
1,350
<filename>sdk/peering/azure-resourcemanager-peering/src/main/java/com/azure/resourcemanager/peering/implementation/PeeringServicesClientImpl.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure...
23,833
1,338
/* Copyright 1999-2001, Be Incorporated. All Rights Reserved. This file may be used under the terms of the Be Sample Code License. */ #ifndef FAT_FILE_H #define FAT_FILE_H mode_t make_mode(nspace *volume, vnode *node); status_t write_vnode_entry(nspace *vol, vnode *node); status_t dosfs_get_vnode_name(fs_volume ...
906
4,879
<filename>base/cancellable.cpp #include "base/cancellable.hpp" #include "base/assert.hpp" namespace base { void Cancellable::Reset() { std::lock_guard<std::mutex> lock(m_mutex); m_status = Status::Active; m_deadline = {}; } void Cancellable::Cancel() { std::lock_guard<std::mutex> lock(m_mutex); m_status ...
480
415
/* * bug-overflow - program causing a buffer overflow when fuzzed * * Copyright © 2002—2015 <NAME> <<EMAIL>> * * This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the Do What the Fuck You W...
231
691
import sys from circuits.models import Provider from startup_script_utils import load_yaml, pop_custom_fields, set_custom_fields_values providers = load_yaml("/opt/netbox/initializers/providers.yml") if providers is None: sys.exit() for params in providers: custom_field_data = pop_custom_fields(params) ...
175
892
<reponame>westonsteimel/advisory-database-github<filename>advisories/unreviewed/2022/05/GHSA-vwm7-fg3f-ffjr/GHSA-vwm7-fg3f-ffjr.json { "schema_version": "1.2.0", "id": "GHSA-vwm7-fg3f-ffjr", "modified": "2022-05-01T18:09:00Z", "published": "2022-05-01T18:09:00Z", "aliases": [ "CVE-2007-2956" ], "detai...
1,138
1,131
// 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...
1,670
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 you unde...
1,667
554
package github.tornaco.xposedmoduletest.ui.adapter; import android.content.Context; import android.support.annotation.ColorInt; import android.support.annotation.LayoutRes; import android.support.v4.content.ContextCompat; import android.support.v7.widget.RecyclerView; import android.util.TypedValue; import and...
2,254
985
extern void b(); extern void bb(); extern void func(void*); void c() { func(&b); func(&bb); }
43
777
// Copyright 2015 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 "modules/cachestorage/CacheStorageError.h" #include "core/dom/DOMException.h" #include "core/dom/ExceptionCode.h" #include "modules/cachestorage...
453
1,921
<reponame>ksvr444/daily-coding-problem<filename>solutions/problem_118.py def merge_sorted_lists(arr1, arr2): i, k = 0, 0 merged = list() while i < len(arr1) and k < len(arr2): if arr1[i] <= arr2[k]: merged.append(arr1[i]) i += 1 else: merged.append(arr2[k]...
474
777
// 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 CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_H_ #define CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_H_ #include <memory> #include "base/macro...
2,129
733
from rx.core import Observable from rx.internal import extensionmethod @extensionmethod(Observable) def do_while(self, condition): """Repeats source as long as condition holds emulating a do while loop. Keyword arguments: condition -- {Function} The condition which determines if the source will b...
152