max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
681
# global import pytest from typing import List, Tuple, Dict, Optional, Union # local import ivy def _fn0(xs: Optional[List[ivy.Array]] = None): return xs def _fn1( a: Union[ivy.Array, ivy.NativeArray], b: str = "hello", c: int = None, d: ivy.NativeArray = None, ): return a, b, c, d def _f...
393
4,253
<gh_stars>1000+ package com.mashibing.entity; import java.sql.Date; import java.util.Objects; public class Emp { private Integer empno; private String ename; private String job; private Integer mgr; private Date hiredate; private Double sal; private Double comm; private Integer deptno;...
1,486
575
{ "name": "Login screen APIs in-session test extension", "version": "0.4", "manifest_version": 2, "description": "In session extension for testing the chrome.login extension API", "background": { "scripts": ["background.js"] }, "permissions": [ "login" ] }
95
351
<filename>tryalgo/two_sat.py #!/usr/bin/env python3 # -*- coding: utf-8 -*- """\ Solving 2-SAT boolean formulas <NAME> et <NAME> - 2015-2019 """ from tryalgo.strongly_connected_components import tarjan # snip{ def _vertex(lit): # integer encoding of a litteral if lit > 0: return 2 * (lit - 1) return...
822
337
/* * Copyright 2019 The Polycube Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
1,222
865
<gh_stars>100-1000 #include <iostream> #include <string> #include "ParseHelper.h" #include "ParseListener.h" #include "Interpreter.h" const std::string STD_PROMPT = ">>> "; const std::string MULTILINE_PROMPT = "... "; struct InterpreterRelay : public ParseListener { Interpreter* m_interpreter; InterpreterRel...
709
3,372
<filename>aws-java-sdk-networkmanager/src/main/java/com/amazonaws/services/networkmanager/AbstractAWSNetworkManagerAsync.java /* * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in comp...
6,200
496
<reponame>anshul2807/Automation-scripts<gh_stars>100-1000 import cv2 import numpy as np import pandas as pd import sys # Define the file name of the image INPUT_IMAGE = sys.argv[1] IMAGE_NAME = INPUT_IMAGE[:INPUT_IMAGE.index(".")] OUTPUT_IMAGE = IMAGE_NAME + "_annotated.jpg" output_csv_file = sys.argv[2] # Load the ima...
1,303
488
typedef struct _HTStream HTStream; struct _HTStream {}; typedef HTStream * HTConverter (void * param); extern HTConverter HTThroughLine; extern HTConverter HTBlackHoleConverter;
65
1,847
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
1,747
1,018
<gh_stars>1000+ # SPDX-License-Identifier: MIT # Copyright (C) 2018-present iced project and contributors # ⚠️This file was generated by GENERATOR!🦹‍♂️ # pylint: disable=invalid-name # pylint: disable=line-too-long # pylint: disable=too-many-lines """ Decoder error """ import typing if typing.TYPE_CHECKING: from ...
250
348
{"nom":"Pontis","dpt":"Alpes-de-Haute-Provence","inscrits":92,"abs":19,"votants":73,"blancs":8,"nuls":1,"exp":64,"res":[{"panneau":"2","voix":35},{"panneau":"1","voix":29}]}
75
421
//<snippet1> #using <System.Xml.dll> using namespace System; using namespace System::Xml; using namespace System::Xml::Schema; ref class XmlDocumentSample { private: static XmlReader^ reader; static String^ filename = "bookdtd.xml"; // Display the validation error. static void ValidationCallback(Ob...
533
335
{ "word": "Waif", "definitions": [ "A homeless, neglected, or abandoned person, especially a child.", "A small, thin person who appears to be undernourished and neglected." ], "parts-of-speech": "Noun" }
90
1,056
<reponame>timfel/netbeans /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2....
3,496
338
#include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <pybind11/numpy.h> #include <exception> #include <vector> #include <string> #include "itkImage.h" #include "itkPointSet.h" #include "itkDisplacementFieldToBSplineImageFilter.h" #include "LOCAL_antsImage.h" namespace py = pybind11; template<unsigned...
1,935
751
<filename>src/plugins/ioam/lib-vxlan-gpe/vxlan_gpe_api.c /* * Copyright (c) 2016 Cisco and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.or...
3,585
347
<reponame>hbraha/ovirt-engine # # ovirt-engine-setup -- ovirt engine setup # # Copyright oVirt Authors # SPDX-License-Identifier: Apache-2.0 # # """Notifier plugin.""" import gettext from otopi import plugin from otopi import util from ovirt_engine import configfile from ovirt_engine_setup.engine import constant...
1,326
460
/* * Copyright 2012 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 require...
1,392
4,047
int func1_in_obj(void); int func2_in_obj(void); int func3_in_obj(void); int main(void) { return func1_in_obj() + func2_in_obj() + func3_in_obj(); }
71
476
<filename>presto-orc/src/test/java/io/prestosql/orc/metadata/statistics/TestBooleanStatisticsBuilder.java /* * 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/l...
1,725
1,328
<filename>sample/src/main/java/de/keyboardsurfer/app/demo/crouton/AboutFragment.java /* * Copyright 2012 - 2014 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://ww...
840
577
<gh_stars>100-1000 from red import r as R from green import g from pkg.other.color.blue import b as B r = R g # this comment required for unit test b = B
53
36,552
<filename>test/cpp/end2end/counted_service.h // // Copyright 2017 gRPC 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 // // ...
608
1,761
# Sensor Auto Gain Control # # This example shows off how to control the sensor's gain # using the automatic gain control algorithm. # What's the difference between gain and exposure control? # # Well, by increasing the exposure time for the image you're getting more # light on the camera. This gives you the best sign...
648
1,210
/* * Copyright <NAME> 2007 - 2015. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) */ /*! * \file type_info_wrapper.hpp * \author <NAME> * \date 15.04.2007 * * The header contains ...
2,234
892
<filename>advisories/unreviewed/2022/04/GHSA-wq4g-59xh-hgm3/GHSA-wq4g-59xh-hgm3.json { "schema_version": "1.2.0", "id": "GHSA-wq4g-59xh-hgm3", "modified": "2022-04-30T18:16:12Z", "published": "2022-04-30T18:16:12Z", "aliases": [ "CVE-2001-0516" ], "details": "Oracle listener between Oracle 9i and Orac...
449
555
<filename>easynmt/models/__init__.py from .AutoModel import AutoModel from .OpusMT import OpusMT
32
317
/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
2,586
320
"""Utils.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf from tensorflow.contrib import layers from tensorflow.contrib.framework.python.ops import arg_scope from tensorflow.contrib.layers.python.layers import initializers from te...
752
2,138
<reponame>lbnt1982/jeecg package org.jeecgframework.tag.core.easyui; import java.io.IOException; import java.text.MessageFormat; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import java.util.regex.Matcher; import jav...
83,863
995
<filename>deps/boost/include/boost/random/discrete_distribution.hpp /* boost random/discrete_distribution.hpp header file * * Copyright <NAME> 2009-2011 * Distributed under the Boost Software License, Version 1.0. (See * accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) * ...
10,151
1,443
{ "copyright": "<NAME>", "url": "http://is-uz.com", "email": "<EMAIL>", "format": "txt" }
46
892
<reponame>westonsteimel/advisory-database-github { "schema_version": "1.2.0", "id": "GHSA-r8jj-pf8x-383m", "modified": "2022-04-14T00:00:30Z", "published": "2022-04-07T00:00:20Z", "aliases": [ "CVE-2022-23446" ], "details": "A improper control of a resource through its lifetime in Fortinet FortiEDR ve...
432
672
<gh_stars>100-1000 /* * Copyright (c) 2004 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use ...
1,549
574
# -*- coding: utf-8 -*- import unittest class DictTest(unittest.TestCase): def test_modify_in_loop(self): data = dict( a=dict() ) for key, value in data.items(): value['b'] = 1 print(data)
134
2,366
/* * ============================================================================= * * Copyright (c) 2011-2018, The THYMELEAF team (http://www.thymeleaf.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ob...
747
421
<filename>samples/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.Application.EnableVisualStyles/CPP/form1.cpp //<Snippet1> #using <System.dll> #using <System.Windows.Forms.dll> #using <System.Drawing.dll> using namespace System; using namespace System::Drawing; using namespace System::Windows::Forms...
527
1,788
<filename>nft-admin/src/main/java/com/fingerchar/service/NftEventService.java package com.fingerchar.service; import java.math.BigDecimal; import java.math.BigInteger; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.Iterator; import java...
18,521
3,522
<reponame>dan-mutua/djangowk1 from __future__ import absolute_import, unicode_literals from virtualenv.util.path import Path def handle_store_python(meta, interpreter): if is_store_python(interpreter): meta.symlink_error = "Windows Store Python does not support virtual environments via symlink" retur...
277
692
#include "WebRTCClientTestFixture.h" namespace com { namespace amazonaws { namespace kinesis { namespace video { namespace webrtcclient { // // Global memory allocation counter // UINT64 gTotalWebRtcClientMemoryUsage = 0; // // Global memory counter lock // MUTEX gTotalWebRtcClientMemoryMutex; STATUS createRtpPacke...
4,532
2,062
from django.db import models class Example(models.Model): name = models.CharField(max_length=100)
34
1,074
# the environment module def make_env(spec): from slm_lab.env.openai import OpenAIEnv env = OpenAIEnv(spec) return env
52
2,753
/* * This software is distributed under BSD 3-clause license (see LICENSE file). * * Authors: <NAME> * */ #ifndef SHOGUN_PARAMETEROBSERVERCV_H #define SHOGUN_PARAMETEROBSERVERCV_H #include <shogun/evaluation/CrossValidationStorage.h> #include <shogun/lib/observers/ParameterObserver.h> #include <shogun/lib/observ...
576
1,459
<filename>itext/src/main/java/com/itextpdf/text/pdf/PdfObject.java /* * * This file is part of the iText (R) project. Copyright (c) 1998-2020 iText Group NV * Authors: <NAME>, <NAME>, et al. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General...
4,751
495
/* * Copyright 2014-2016 Media for Mobile * * 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...
1,405
16,461
<filename>ios/versioned-react-native/ABI41_0_0/ReactNative/React/Base/ABI41_0_0RCTDefines.h /* * 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. */ #if __OBJC__ #import <Foundation/Founda...
2,430
4,121
<filename>source/rofi-icon-fetcher.c /* * rofi * * MIT/X11 License * Copyright © 2013-2022 <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, incl...
5,328
5,133
/* * Copyright MapStruct Authors. * * Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package org.mapstruct.ap.test.abstractclass.generics; import org.mapstruct.Mapper; import org.mapstruct.Mapping; import org.mapstruct.MappingTarget; import org.mapstruct.R...
478
954
package com.jdon.container.access; import java.io.Serializable; import java.util.HashMap; import java.util.Map; import com.jdon.bussinessproxy.TargetMetaDef; import com.jdon.container.pico.Startable; /** * 以service name为key, Service TargetMetaDef为value * * this class is registered in contain.xml ever...
612
3,102
<gh_stars>1000+ // RUN: c-index-test -index-file %s -target i686-pc-linux \ // RUN: | FileCheck %s -check-prefix CHECK -check-prefix CHECK-LINUX // RUN: c-index-test -index-file -Wno-unsupported-visibility %s -target i386-darwin \ // RUN: | FileCheck %s -check-prefix CHECK -check-prefix CHECK-DARWIN void __attribute...
247
583
#include <filesystem> #include <memory> #include <string> #include <vector> #include "base_test.hpp" #include "hyrise.hpp" #include "logical_query_plan/stored_table_node.hpp" #include "storage/table.hpp" #include "utils/meta_table_manager.hpp" namespace opossum { class StorageManagerTest : public BaseTest { protec...
3,339
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.storage.blob.changefeed.implementation.models; import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.ArrayList; import java.util.List; import jav...
2,504
716
<filename>src/OrbitGl/TrackHeaderTest.cpp // Copyright (c) 2022 The Orbit 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 <gmock/gmock.h> #include <gtest/gtest.h> #include "CaptureViewElementTester.h" #include "TrackControl...
1,193
2,151
<gh_stars>1000+ #!/usr/bin/env python # 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. import json from copy import deepcopy from cStringIO import StringIO from functools import partial from hashlib import ...
4,119
3,372
<reponame>rbalamohan/aws-sdk-java /* * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com...
1,613
17,481
<reponame>marcin-kozinski/dagger<gh_stars>1000+ /* * Copyright (C) 2021 The Dagger 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...
3,006
1,965
<filename>xbanner/src/main/java/com/stx/xhb/xbanner/transformers/CubePageTransformer.java package com.stx.xhb.xbanner.transformers; import android.support.v4.view.ViewCompat; import android.view.View; /** * Created by jxnk25 on 2016/10/18. * * link https://xiaohaibin.github.io/ * email: <EMAIL> * github: https:/...
606
332
<gh_stars>100-1000 # -*- coding: utf-8 -*- from django.http import HttpResponse def handle404(request): return HttpResponse('404') def handle500(request): return HttpResponse('500') handler404 = 'autofixture_tests.urls.handle404' handler500 = 'autofixture_tests.urls.handle500' urlpatterns = [ ]
115
321
<filename>Coins in a Line.py """ There are n coins in a line. Two players take turns to take one or two coins from right side until there are no more coins left. The player who take the last coin wins. Could you please decide the first play will win or lose? Example n = 1, return true. n = 2, return true. n = 3, retu...
254
303
<gh_stars>100-1000 {"id":2377,"line-1":"New South Wales","line-2":"Australia","attribution":"©2014 CNES / Astrium, Cnes/Spot Image, DigitalGlobe, Landsat","url":"https://www.google.com/maps/@-33.422299,141.862517,13z/data=!3m1!1e3"}
92
1,805
<filename>glib-adv/tagcloud.h #ifndef tagcloud_h #define tagcloud_h ///////////////////////////////////////////////// // Includes #include "mine.h" #include "gks.h" ///////////////////////////////////////////////// // Tag-Cloud ClassTP(TTagCloud, PTagCloud)//{ private: TStrFltPrV WordStrWgtPrV; TFltQ...
434
803
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include <tchar.h> #include "os.hxx" #ifdef BUILD_ENV_IS_NT #include "esent_x.h" #else #include "jet.h" #endif #include "bfreqs.hxx" // requisite thunked out types #include "_bfconst.hxx" // BF constants and simple types we need #i...
8,817
351
<reponame>sundogrd/tensorflow_end2end_speech_recognition #! /usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import re import sys import codecs from glob import glob import numpy as np import pandas as pd sys.path...
2,479
892
<reponame>westonsteimel/advisory-database-github { "schema_version": "1.2.0", "id": "GHSA-455c-7cfq-wgff", "modified": "2022-05-01T07:41:09Z", "published": "2022-05-01T07:41:09Z", "aliases": [ "CVE-2006-6759" ], "details": "A certain ActiveX control in rpau3260.dll in RealNetworks RealPlayer 10.5 allo...
518
1,337
/* * Copyright (c) 2008-2019 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...
2,025
451
<filename>test/monitoring/conftest.py import dataclasses import http import http.server import selectors import socket from concurrent.futures import ThreadPoolExecutor from types import TracebackType from typing import Callable, Iterator, Type import pytest @dataclasses.dataclass(frozen=True) class LoggedRequest: ...
954
14,668
<filename>net/dns/public/util.h<gh_stars>1000+ // 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. #ifndef NET_DNS_PUBLIC_UTIL_H_ #define NET_DNS_PUBLIC_UTIL_H_ #include <string> #include "base/strings/st...
525
335
<filename>T/Travertine_noun.json { "word": "Travertine", "definitions": [ "White or light-coloured calcareous rock deposited from mineral springs, used in building." ], "parts-of-speech": "Noun" }
86
12,895
/* * This file and its contents are licensed under the Apache License 2.0. * Please see the included NOTICE for copyright information and * LICENSE-APACHE for a copy of the license. */ #ifndef TIMESCALEDB_LOADER_LWLOCKS_H #define TIMESCALEDB_LOADER_LWLOCKS_H #define RENDEZVOUS_CHUNK_APPEND_LWLOCK "ts_chunk_append...
175
1,048
#coding:utf-8 import os import shutil from cactus.plugin.loader import CustomPluginsLoader from cactus.plugin.manager import PluginManager from cactus.tests import SiteTestCase class TestPluginLoader(SiteTestCase): def setUp(self): super(TestPluginLoader, self).setUp() self.site.plugin_manager = ...
1,093
419
<gh_stars>100-1000 #include "ResourceLoader_PhysicsRagdoll.h" #include "Engine/Physics/PhysicsRagdoll.h" #include "Engine/Physics/PhysicsSystem.h" #include "System/Core/Serialization/BinaryArchive.h" //------------------------------------------------------------------------- using namespace physx; //----------------...
578
1,542
""" Title: Guide to the Functional API Author: fchollet Date created: 2020/04/04 Last modified: 2020/04/04 Description: Complete guide to the functional API. """ """ ## Setup """ import numpy as np import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers tf.keras.backend.clear_sessi...
1,255
1,861
<reponame>iamdarshshah/spectrum // 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 "All.h" namespace facebook { namespace spectrum { namespace core { namespace matchers { namespac...
424
2,610
import itertools def tsp_action_go_from_a_to_b(a, b): # 0: Up, 1: Down, 2: Left, 3: Right action = None cur_x = a[0] cur_y = a[1] tar_x = b[0] tar_y = b[1] x_diff = tar_x - cur_x y_diff = tar_y - cur_y if abs(x_diff) >= abs(y_diff): # Move horizontally if x_diff ...
2,120
892
<reponame>github/advisory-database { "schema_version": "1.2.0", "id": "GHSA-5pqm-hfmj-g8jg", "modified": "2022-05-13T01:32:20Z", "published": "2022-05-13T01:32:20Z", "aliases": [ "CVE-2018-3763" ], "details": "In Nextcloud Calendar before 1.5.8 and 1.6.1, a missing sanitization of search results for a...
470
340
<reponame>gajubadge11/HackerRank-1 #!/bin/python3 import sys def solve(n, bar, d, m): res = 0 for a_i in range(len(bar)-m+1): if sum(bar[a_i:a_i+m]) == d: res += 1 return res n = int(input().strip()) bar = list(map(int, input().strip().split(' '))) d, m = input().strip().spl...
197
349
<gh_stars>100-1000 package com.ray3k.skincomposer.dialog.scenecomposer.undoables; import com.ray3k.skincomposer.dialog.scenecomposer.DialogSceneComposer; import com.ray3k.skincomposer.dialog.scenecomposer.DialogSceneComposerModel; public class SliderAnimationDurationUndoable implements SceneComposerUndoable { pri...
685
2,291
<filename>issues/osmdroid_issue324.json<gh_stars>1000+ { "id" : 324, "status" : "Invalid", "summary" : "Download osmdroid.zip from android app.", "labels" : [ "Type-Other", "Priority-Medium" ], "stars" : 0, "commentCount" : 4, "comments" : [ { "id" : 0, "commenterId" : 4335488640438512661, "co...
540
708
<reponame>ethz-asl/Matterport #pragma once #include "mLibInclude.h" #include "keyPoint.h" #include "imageHelper.h" class MatchVisualization { public: static void visulizeMatches(const std::vector<SensorData*>& sds, const std::vector<KeyPointMatch>& matches, const std::vector<KeyPoint>& keypoints, size_t numPair...
1,927
650
/* * Copyright 2012-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
11,272
679
<gh_stars>100-1000 /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF license...
2,412
348
{"nom":"Aix-en-Ergny","circ":"4ème circonscription","dpt":"Pas-de-Calais","inscrits":114,"abs":51,"votants":63,"blancs":2,"nuls":5,"exp":56,"res":[{"nuance":"LR","nom":"<NAME>","voix":34},{"nuance":"REM","nom":"<NAME>","voix":22}]}
99
1,744
<gh_stars>1000+ /* * Copyright 2014 The Embulk project * * 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...
1,457
1,083
/* * 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,434
1,574
<reponame>LaudateCorpus1/FirebaseUI-iOS // // 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 // // U...
1,328
482
package org.surus.pig; import static org.junit.Assert.*; import java.io.IOException; import java.util.ArrayList; import java.util.List; import javax.xml.bind.JAXBException; import org.apache.pig.data.DataType; import org.apache.pig.data.Tuple; import org.apache.pig.data.TupleFactory; import org.apache.pig.impl.logi...
3,157
1,353
package net.lingala.zip4j.util; import net.lingala.zip4j.AbstractIT; import net.lingala.zip4j.exception.ZipException; import net.lingala.zip4j.progress.ProgressMonitor; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import java.io.File; import java.io.FileInputStream; import j...
983
3,428
<gh_stars>1000+ {"id":"01267","group":"easy-ham-1","checksum":{"type":"MD5","value":"88686fe91228476214e39e736ef35838"},"text":"From <EMAIL> Mon Oct 7 12:04:42 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy<EMAIL>.spamassassin.taint.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) wit...
1,289
1,405
<filename>sample5/recompiled_java/sources/com/network/android/g.java<gh_stars>1000+ package com.network.android; import android.content.Context; import android.util.Xml; import com.network.android.a.c; import com.network.android.c.a.a; import com.network.b.b; import java.io.ByteArrayOutputStream; import java.io.String...
4,569
13,885
<filename>third_party/spirv-tools/source/fuzz/fuzzer_pass_inline_functions.h // Copyright (c) 2020 <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/l...
559
458
<gh_stars>100-1000 package com.mousebird.maply; import android.os.Handler; /** * The Maply Quad Image Frame Loader is for paging individual frames of image pyramids. * <br> * This works much like the Quad Image Loader, but handles more than one frame. You can animate * between the frames with the QuadImageFram...
3,131
571
<reponame>ufora/ufora<gh_stars>100-1000 /*************************************************************************** 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 Licens...
950
3,227
#include "test_dependencies.h" // and additionally #define CGAL_SPATIAL_SEARCHING_COMMERCIAL_LICENSE 22222222 #define CGAL_APOLLONIUS_GRAPH_2_COMMERCIAL_LICENSE 22222222 #include <CGAL/config.h> #include <CGAL/Exact_predicates_inexact_constructions_kernel.h> #include <CGAL/Constrained_Delaunay_triangulation_2.h> #inc...
453
6,992
/* * Copyright 2002-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
1,774
523
package moonbox.jdbc; import java.sql.*; import java.util.Properties; import java.util.logging.Logger; public class MbDriver implements Driver { public static final String OS = getOSName(); public static final String PLATFORM = getPlatform(); public static final String LICENSE = "APACHE 2"; public static fin...
519
634
<filename>modules/base/platform-api/src/main/java/com/intellij/ui/components/JBPanelWithEmptyText.java /* * Copyright 2000-2016 JetBrains s.r.o. * * 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 Lice...
621
1,511
/* * Copyright 2008, The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); if (c == -1) { break; } switch (c) { case 0: break;
115
1,253
#include<iostream> #include<vector> using namespace std; int hammingDistance(const vector<int> &A) { long long int sol = 0; int n = A.size(); int M = 1000000007; int b = 1; for(int i = 0; i < 32; i++) { int setBits = 0; for(int j = 0; j < A.size(); j++) { int t = A[j] & ...
366
2,151
// Copyright (c) 2012, 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 conditi...
798