max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
407
<gh_stars>100-1000 /** * Copyright 2010 The Apache Software Foundation * * 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 ...
14,772
11,811
<reponame>maximmenshikov/antlr4<filename>runtime-testsuite/test/org/antlr/v4/test/runtime/RuntimeTestUtils.java package org.antlr.v4.test.runtime; import org.antlr.v4.runtime.*; import org.antlr.v4.runtime.atn.ATN; import org.antlr.v4.runtime.atn.LexerATNSimulator; import org.antlr.v4.runtime.dfa.DFA; import org.antlr...
1,052
6,969
<filename>3]. Competitive Programming/08]. LeetCode/1]. Problems/Python/0029)_ii_Divide_Two_Integers.py class Solution: def divide(self, dividend, divisor): ans = 0 pos = [abs(divisor)] cnts = [1] n = 0 while pos and n <= abs(dividend): if n + pos[-1] + pos[-1] <=...
664
5,364
<gh_stars>1000+ { "name": "defuse/php-encryption", "remark": "Symmetric-key encryption library for PHP applications. (**Recommended** over rolling your own!)", "url": "https://github.com/defuse/php-encryption" }
80
1,540
<gh_stars>1000+ package org.testng.internal.invokers; import java.util.Collection; import java.util.Map; import org.testng.ISuite; import org.testng.TestNGException; import org.testng.collections.Maps; import org.testng.xml.XmlSuite; public class SuiteRunnerMap { private final Map<String, ISuite> m_map = Maps.newH...
280
3,182
package de.plushnikov.intellij.plugin.extension.postfix; import com.intellij.psi.PsiClassType; import com.intellij.psi.PsiType; import com.intellij.refactoring.introduceVariable.IntroduceVariableSettings; public class IntroduceVariableSettingsDelegate implements IntroduceVariableSettings { private final IntroduceVa...
352
1,979
/* * 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 ...
720
693
from manim_imports_ext import * class TestScene(AlgoScene): def construct(self): avatar = AlgoAvatar(self) avatar.center().scale(0.5) self.add(avatar) self.wait(2) class TestTexScene(AlgoScene): def construct(self): self.show_diff() self.wait(2) def show_di...
796
765
/***************************************************************************** * McPAT * SOFTWARE LICENSE AGREEMENT * Copyright (c) 2010-2013 Advanced Micro Devices, Inc. * All Rights Reserved * * Redistribution and use in sou...
662
496
#!/usr/bin/env python3 import tweepy import logging from config import create_api import time logging.basicConfig(level=logging.INFO) logger = logging.getLogger() ''' A lot of Twitter API endpoints use pagination to return their results. Tweepy cursors take away part of the complexity of working with paginated resul...
342
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. #ifndef IOS_CHROME_BROWSER_UI_ACTIVITY_SERVICES_REQUIREMENTS_ACTIVITY_SERVICE_PASSWORD_H_ #define IOS_CHROME_BROWSER_UI_ACTIVITY_SERVICES_REQUIREMENTS_ACT...
235
1,234
package org.benf.cfr.reader.state; import org.benf.cfr.reader.bytecode.analysis.types.JavaTypeInstance; import org.benf.cfr.reader.entities.innerclass.InnerClassAttributeInfo; import org.benf.cfr.reader.util.functors.UnaryFunction; import java.util.List; public interface ObfuscationTypeMap { boolean providesInne...
172
1,968
////////////////////////////////////////////////////////////////////////////// // // This file is part of the Corona game engine. // For overview and more information on licensing please refer to README.md // Home page: https://github.com/coronalabs/corona // Contact: <EMAIL> // ///////////////////////////////////////...
688
2,151
// Copyright 2013 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/drive/chromeos/file_system/search_operation.h" #include <stddef.h> #include "base/callback_helpers.h" #include "components/drive/ch...
2,208
1,390
/* * Copyright 2016-2020 chronicle.software * * 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 l...
5,091
506
<reponame>Ashindustry007/competitive-programming // https://open.kattis.com/problems/stararrangements #include <iostream> using namespace std; int main() { int s; cin >> s; cout << s << ":\n"; for (int i = 2; i < s; i++) { if (s % (2 * i - 1) == 0 || s % (2 * i - 1) == i) cout << i << "," << i - 1 << endl; if...
163
1,145
""" To push this predictor to replicate.com, first run download_checkpoints() and save files to omnizart/checkpoints. Then run cog push. Further documentation can be found at https://replicate.com/docs """ import os import tempfile import subprocess import shutil from pathlib import Path import cog import scipy.io.wa...
1,616
2,777
/* Copyright 2013-2021 MultiMC 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 applicable law or...
732
746
// 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...
2,874
975
<filename>seleniumwire/thirdparty/mitmproxy/command_lexer.py import ast import re import pyparsing # TODO: There is a lot of work to be done here. # The current implementation is written in a way that _any_ input is valid, # which does not make sense once things get more complex. PartialQuotedString = pyparsing.Rege...
622
6,424
""" How to use TensorBoard with PyTorch =================================== TensorBoard is a visualization toolkit for machine learning experimentation. TensorBoard allows tracking and visualizing metrics such as loss and accuracy, visualizing the model graph, viewing histograms, displaying images and much more. In ...
1,580
1,310
<filename>data_conversions/prepare_scannet_cls_data.py<gh_stars>1000+ #!/usr/bin/python3 '''Convert ScanNet pts to h5.''' from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import h5py import argparse import numpy as np from datetime import datetime ...
1,505
309
#!/usr/bin/env python import vtk def main(): fileName = get_program_parameters() colors = vtk.vtkNamedColors() # Create the RenderWindow, Renderer and Interactor. # ren1 = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren1) iren = vtk.vtkRenderWindowInteract...
847
474
#include "ChromeDevTools.h" #include <V8JsiRuntime.h> #include <Babylon/JsRuntime.h> namespace Babylon::Plugins { class ChromeDevTools::Impl final : public std::enable_shared_from_this<ChromeDevTools::Impl> { public: explicit Impl(Napi::Env env) : m_env(env) { ...
1,059
5,196
/* * Copyright 2018 The Cartographer 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...
2,252
595
/****************************************************************************** * Copyright (C) 2018 - 2020 Xilinx, Inc. All rights reserved. * SPDX-License-Identifier: MIT ******************************************************************************/ /***************************************************************...
11,055
486
# Copyright (c) 2018 Uber Technologies, 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 ag...
270
14,668
<filename>ash/system/network/network_icon_animation.h // Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ASH_SYSTEM_NETWORK_NETWORK_ICON_ANIMATION_H_ #define ASH_SYSTEM_NETWORK_NETWORK_ICON_ANI...
442
575
<reponame>iridium-browser/iridium-browser<filename>chrome/browser/chromeos/extensions/device_local_account_external_policy_loader_unittest.cc // Copyright 2013 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 "ch...
5,021
2,151
<reponame>zipated/src // Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/webui/chromeos/assistant_optin/assistant_optin_ui.h" #include <memory> #include "base/bind.h" #include...
3,151
4,391
# This sample tests the provision in PEP 544 where a class type can # be assigned to a protocol. from typing import Any, Protocol class ProtoA(Protocol): def meth(_self, x: int) -> int: ... class ProtoB(Protocol): def meth(_self, self: Any, x: int) -> int: ... class C: def meth(self, ...
428
366
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import ins...
1,045
408
package rlbot.gamestate; import com.google.flatbuffers.FlatBufferBuilder; import rlbot.flat.DesiredPhysics; import rlbot.vector.Vector3; /** * See https://github.com/RLBot/RLBotJavaExample/wiki/Manipulating-Game-State */ public class PhysicsState { private DesiredVector3 location; private DesiredRotation ro...
970
348
{"nom":"Fontenois-lès-Montbozon","dpt":"Haute-Saône","inscrits":212,"abs":28,"votants":184,"blancs":6,"nuls":18,"exp":160,"res":[{"panneau":"1","voix":82},{"panneau":"2","voix":78}]}
79
777
// 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 CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_IMPL_H_ #define CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_IMPL_H_ #include <list> #include <memory> #incl...
875
14,499
/* * 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 <vector> struct S { std::vector<int> l; S* next; std::atomic<void*> ptr; }; class C { void foo_Bad(); void goo(...
250
8,130
<filename>src/Native/FastTreeNative/SumupSegment.h //------------------------------------------------------------------------------ // <copyright company="Microsoft Corporation"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //---------------------------------------------------------...
1,632
428
<reponame>SmileyAG/bspsrc /* ** 2011 April 5 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you giv...
1,218
764
<reponame>dchain01/token-profile { "symbol": "ST", "address": "0x744E098e9d3FA11D96C2860B49D33f46dd2Ae167", "overview": { "en": "StatEX is a comprehensive service platform that integrates transaction, storage and financial management. It provides spot and derivative trading services for digital asse...
642
11,356
/* Copyright © 2020 Apple Inc. All rights reserved. * * Use of this source code is governed by a BSD-3-clause license that can * be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause */ #pragma once #if __cplusplus > 201103L #include <experimental/type_traits> #else // this is a C...
455
1,053
/** * User Defined Benchmark Database file * ------------------------------------------------------------------------ * * This is a user-modifiable file, keep it clean, and stay to the rules below. * * Instructions for how to define a benchmark: * 1, All benchmarks MUST begin with a _BMARK_START_(X) macro, wh...
4,067
375
package io.lumify.core.model.properties.types; import io.lumify.core.exception.LumifyException; import io.lumify.core.ingest.video.VideoTranscript; import org.securegraph.property.StreamingPropertyValue; import org.apache.commons.io.IOUtils; import org.json.JSONObject; import java.io.ByteArrayInputStream; import java...
544
2,912
""" Implements method forwarding from one class to another. The `Forwarding` class can be used as a mixin. """ import inspect import warnings class Forwarding(object): @classmethod def _get_class_that_defined_method(cls, meth): """ Returns the class that defines the requested method. ...
1,193
414
<reponame>zjbjbj/Poplar<gh_stars>100-1000 package com.lvwangbeta.poplar.tag.service; import java.util.ArrayList; import java.util.List; import com.alibaba.dubbo.config.annotation.Service; import com.lvwangbeta.poplar.common.intr.TagService; import com.lvwangbeta.poplar.common.model.Tag; import com.lvwangbeta....
603
4,202
<filename>akshare/energy/energy_oil.py<gh_stars>1000+ # -*- coding:utf-8 -*- #!/usr/bin/env python """ Date: 2020/4/2 20:24 Desc: 东方财富-数据中心-中国油价 http://data.eastmoney.com/cjsj/oil_default.html """ import json import pandas as pd import requests def energy_oil_hist() -> pd.DataFrame: """ 汽柴油历史调价信息 http://...
1,084
1,103
#!/usr/bin/python3 # -*- coding: utf-8 -*- # This is a part of CMSeeK, check the LICENSE file for more information # Copyright (c) 2018 Tuhinshubhra import cmseekdb.basic as cmseek ## Good old module import re ## Comes in handy while detecting version import json ## For parsing the wpvulndb result import threading wp...
1,674
526
/* SPDX-License-Identifier: Apache-2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.accessservices.governanceprogram.handlers; import org.odpi.openmetadata.accessservices.governanceprogram.properties.GovernanceDomain; import org.odpi.openmetadata.repositoryservices.connecto...
4,447
938
<filename>src/main/java/slimeknights/tconstruct/common/network/UpdateNeighborsPacket.java package slimeknights.tconstruct.common.network; import lombok.RequiredArgsConstructor; import net.minecraft.block.Block; import net.minecraft.block.BlockState; import net.minecraft.client.Minecraft; import net.minecraft.network.P...
534
2,338
<gh_stars>1000+ //===--- llvm/unittest/IR/VectorTypesTest.cpp - vector types unit tests ---===// // // 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,968
326
/* -- (c) Copyright 2014 Xilinx, Inc. All rights reserved. -- -- This file contains confidential and proprietary information -- of Xilinx, Inc. and is protected under U.S. and -- international copyright and other intellectual property -- laws. -- -- DISCLAIMER -- This disclaimer is not a...
1,469
1,184
/* * Written by: <NAME> * Last Update: December 29, 2013 */ public class MergeSort { /* * Inputs: * array - An array containing a sequence of integers. * start / end - The range that you want to sort. * * Output: * Although the function is void the original array will be sorted in the specified...
598
890
<gh_stars>100-1000 /* * MIT License * * Copyright (c) 2017 Twitter * * 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 ...
1,415
2,151
<gh_stars>1000+ // 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 COMPONENTS_GCM_DRIVER_ACCOUNT_TRACKER_H_ #define COMPONENTS_GCM_DRIVER_ACCOUNT_TRACKER_H_ #include <map> #include <memory> #inclu...
1,923
2,151
// 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. // This file has been auto-generated from the Jinja2 template // third_party/blink/renderer/bindings/templates/union_container.cpp.tmpl // by the script c...
1,118
319
// // ISO8601ForCocoaTimeOnlyTests.h // ISO8601ForCocoa // // Created by <NAME> on 2013-09-17. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <XCTest/XCTest.h> @interface ISO8601ForCocoaTimeOnlyTests : XCTestCase - (void) testParsingStringWithOnlyHourMinuteSecondZulu; - (void) testParsingStringWit...
178
682
{ "function_endfunction/function_call_function/no_arch": { "test_name": "function_endfunction/function_call_function/no_arch", "verilog": "function_call_function.v", "exit": 134, "errors": [ "function_call_function.v:22:1 [NETLIST] This output (simple_op.function_instance...
2,058
1,056
<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * ...
1,267
1,085
/* * Copyright (C) 2017-2019 Dremio 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 l...
969
2,270
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited JUCE is an open source library subject to commercial or open-source licensing. The code included in this file is provid...
2,322
445
<reponame>ThomasGale/pytorch-cpp-rl<gh_stars>100-1000 #pragma once #include <torch/torch.h> namespace cpprl { class Distribution { protected: std::vector<int64_t> batch_shape, event_shape; std::vector<int64_t> extended_shape(c10::ArrayRef<int64_t> sample_shape); public: virtual ~Distribution() = 0; ...
213
2,372
<reponame>Toolchefs/PhysX<gh_stars>1000+ // // 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 conditions and the following...
4,050
629
headers = dict({"X-MIP-ACCESS-TOKEN": "XXXXXxXX-xxXX-<PASSWORD>-<PASSWORD>-<PASSWORD>", "X-MIP-CHANNEL": "ANDROID", "X-MIP-Device-Id": "1", "X-MIP-APP-VERSION": "1.0.1", "X-MIP-APP-VERSION-ID": "1"}); def sendingRequest(msg, initiator, helper): for ...
241
1,050
#define DEFINE_DEFAULT_ITERATOR_CTOR #define CHAR_RANGE_DEFAULT_CONSTRUCTIBLE #include "helpers.hpp" #undef CHAR_RANGE_DEFAULT_CONSTRUCTIBLE #undef DEFINE_DEFAULT_ITERATOR_CTOR #include <combinations.hpp> #include <iterator> #include <set> #include <string> #include <vector> #include "catch.hpp" using iter::combina...
1,636
335
{ "word": "Practically", "definitions": [ "Virtually; almost.", "In a practical manner.", "In practical terms." ], "parts-of-speech": "Adverb" }
85
575
<gh_stars>100-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 "ash/wm/window_cycle/window_cycle_tab_slider_button.h" #include "ash/style/ash_color_provider.h" #include "base/strings/utf_s...
805
1,144
<gh_stars>1000+ package de.metas.purchasecandidate; import java.util.List; import java.util.Map; import java.util.Optional; import javax.annotation.Nullable; import org.adempiere.mm.attributes.AttributeSetInstanceId; import org.compiere.model.I_C_BPartner; import org.compiere.model.I_C_BPartner_Product; import org.s...
2,408
348
{"nom":"Limay","circ":"8ème circonscription","dpt":"Yvelines","inscrits":9687,"abs":5552,"votants":4135,"blancs":68,"nuls":26,"exp":4041,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":901},{"nuance":"FN","nom":"<NAME>","voix":697},{"nuance":"COM","nom":"<NAME>","voix":696},{"nuance":"FI","nom":"M. <NAME>","voix":592}...
360
366
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import sy...
2,001
317
import logging from ...relocation import Relocation l=logging.getLogger(name=__name__) # Reference: https://msdn.microsoft.com/en-us/library/ms809762.aspx class PEReloc(Relocation): AUTO_HANDLE_NONE = True def __init__(self, owner, symbol, addr, resolvewith=None): # pylint: disable=unused-argument ...
915
12,278
// Ordered slots hello world example for Boost.Signals2 // Copyright <NAME> 2001-2004. // Copyright <NAME> 2009. // // Use, modification and // distribution is subject to the Boost Software License, Version // 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // For more in...
452
2,023
#!/usr/local/bin/python -O # read faulty # for each of its arguments, it tries to copy the faulty file to the cwd import sys, os, errno import collections import cPickle as Pickle import gzip # use the correct errno reported per platform if sys.platform == 'win32': read_failed= lambda exc: exc.errno == errno.EACC...
2,983
312
<reponame>RichardRanft/Torque6<gh_stars>100-1000 //----------------------------------------------------------------------------- // Copyright (c) 2015 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // ...
1,203
348
{"nom":"Isse","circ":"4ème circonscription","dpt":"Marne","inscrits":104,"abs":46,"votants":58,"blancs":1,"nuls":1,"exp":56,"res":[{"nuance":"LR","nom":"<NAME>","voix":42},{"nuance":"FN","nom":"M. <NAME>","voix":14}]}
89
2,416
/* * Copyright (C) 2016 Google 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...
2,825
411
<filename>documents4j-util-conversion/src/main/java/com/documents4j/job/InputStreamSourceFromFileSource.java<gh_stars>100-1000 package com.documents4j.job; import com.documents4j.api.IFileSource; import com.documents4j.api.IInputStreamSource; import com.documents4j.throwables.FileSystemInteractionException; import com...
779
14,499
/* * 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. */ #pragma once #include "project_lib.h" // even though it's unused, it should be translated if compiled source is // main.cpp (or a...
139
2,023
import re DIGITS = re.compile(r'[0-9]+') def compnum(x, y): nx = ny = 0 while True: a = DIGITS.search(x, nx) b = DIGITS.search(y, ny) if None in (a,b): return cmp(x[nx:], y[ny:]) r = (cmp(x[nx:a.start()], y[ny:b.start()]) or cmp(int(x[a.start():a.end()])...
347
971
package com.ucar.datalink.manager.core.flinker.cron.entity; /** * Created by yang.wang09 on 2019-02-13 15:51. */ public class EntityCronMaxRuntime { }
58
578
/* * Copyright (C) 2016 Red Hat, 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 agre...
909
421
import requests import random import string # Vuln Base Info def info(): return { "author": "cckuailong", "name": '''Maian Cart 3.8 preauth RCE''', "description": '''A severe vulnerability has been kindly reported to me by security advisor DreyAnd. The issue concerns the elFinder file mana...
1,417
332
<gh_stars>100-1000 from django.contrib import admin import billing.models as billing_models admin.site.register(billing_models.GCNewOrderNotification) admin.site.register(billing_models.AuthorizeAIMResponse) admin.site.register(billing_models.WorldPayResponse) admin.site.register(billing_models.AmazonFPSResponse) cl...
215
809
<reponame>nikitavlaev/embox /** * @file * * @date 27.09.2013 * @author <NAME> */ extern int __cxa_atexit(void (*destructor) (void *), void *arg, void *__dso_handle); int __aeabi_atexit(void *object, void (*dtor)(void *this), void *handle) { return __cxa_atexit(dtor, object, handle); }
120
348
<filename>docs/data/leg-t2/037/03702240.json {"nom":"Saunay","circ":"2ème circonscription","dpt":"Indre-et-Loire","inscrits":487,"abs":265,"votants":222,"blancs":21,"nuls":3,"exp":198,"res":[{"nuance":"LR","nom":"<NAME>","voix":107},{"nuance":"REM","nom":"<NAME>","voix":91}]}
114
575
<filename>ui/views/test/test_desktop_screen_x11.cc // Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/views/test/test_desktop_screen_x11.h" #include <memory> #include "base/memory/singleton....
240
1,444
<filename>Mage.Sets/src/mage/cards/p/Pendelhaven.java package mage.cards.p; import java.util.UUID; import mage.abilities.Ability; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.costs.common.TapSourceCost; import mage.abilities.effects.common.continuous.BoostTargetEffect; import mage.abilit...
646
367
#import <Foundation/Foundation.h> @class MBEOBJGroup; @interface MBEOBJModel : NSObject - (instancetype)initWithContentsOfURL:(NSURL *)fileURL generateNormals:(BOOL)generateNormals; /// Index 0 corresponds to an unnamed group that collects all the geometry /// declared outside of explicit "g" statements. Therefore,...
179
435
<reponame>glasnt/data { "description": "Day 2, 14:30\u201315:00\n\nThis talk will share several python approaches to the thriving field, quantum computing and quantum information. In this talk, Cirq python framework, which is an open source project announced by Google, will be mainly used as examples.\n\nSlides: http...
333
14,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...
379
852
<reponame>ckamtsikis/cmssw<gh_stars>100-1000 import FWCore.ParameterSet.Config as cms from DQM.L1TMonitor.L1TFED_cfi import *
56
1,442
<gh_stars>1000+ #ifndef POINCARE_N_ARY_INFIX_EXPRESSION_H #define POINCARE_N_ARY_INFIX_EXPRESSION_H #include <poincare/n_ary_expression.h> // NAryInfixExpressionNode are additions and multiplications namespace Poincare { class NAryInfixExpressionNode : public NAryExpressionNode { public: using NAryExpressionNode:...
220
1,805
#ifndef infonet_h #define infonet_h ///////////////////////////////////////////////// // Includes #include "base.h" ///////////////////////////////////////////////// // Thermal-Schedule ClassTP(TThermalSch, PThermalSch)//{ private: PXmlDoc TherapyPlacesXmlDoc; PXmlDoc ActivitiesXmlDoc; PXmlDoc Avai...
6,138
6,989
<reponame>avrumnoor/NewsSummarizer ############################################################################### # Customizable Pickler with some basic reducers # # author: <NAME> # # adapted from multiprocessing/reduction.py (17/02/2017) # * Replace the ForkingPickler with a similar _LokyPickler, # * Add Customiza...
4,029
348
<gh_stars>100-1000 {"nom":"Saint-Thibault-des-Vignes","circ":"7ème circonscription","dpt":"Seine-et-Marne","inscrits":4604,"abs":2855,"votants":1749,"blancs":155,"nuls":22,"exp":1572,"res":[{"nuance":"REM","nom":"<NAME>","voix":1172},{"nuance":"FN","nom":"Mme <NAME>","voix":400}]}
117
305
<reponame>victormaneac/mamute package org.mamute.model; import static org.junit.Assert.assertEquals; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import or...
640
1,184
import unittest from russian_peasant import russian_peasant as rp class RussianPeasantTest(unittest.TestCase): def test_correct(self): self.assertEquals(rp(5,15), 75) if __name__ == '__main__': unittest.main()
85
908
package com.googlecode.jsonrpc4j.util; import java.util.ArrayList; import java.util.Collection; @SuppressWarnings("unused") public interface FakeServiceInterface { void doSomething(); int returnPrimitiveInt(int arg); CustomClass returnCustomClass(int arg1, String arg2); void throwSomeException(String messag...
217
331
/** * Copyright (C) 2016 - 2030 youtongluan. * * 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...
365
6,457
<filename>src/ivcam/sr300-fw-update-device.cpp // License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2019 Intel Corporation. All Rights Reserved. #include "sr300-fw-update-device.h" #include "ivcam-private.h" #include <chrono> #include <thread> namespace librealsense { sr300_update_device::s...
561
1,584
<reponame>ddugovic/julius4 /** * @file dfa_determinize.c * * @brief Determinize DFA for Julian grammar. * * @author <NAME> * @date Wed Oct 4 17:42:16 2006 * * $Revision: 1.5 $ * */ /* * Copyright (c) 2006-2013 Kawahara Lab., Kyoto University * Copyright (c) 2006-2013 Julius project team, Nagoya Ins...
4,197
1,082
package com.jzy.game.gate.server.handler; import org.apache.mina.core.session.IdleStatus; import org.apache.mina.core.session.IoSession; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.jzy.game.engine.mina.config.MinaServerConfig; import com.jzy.game.engine.mina.handler.ClientProtocolHandler...
1,576