max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,286
#include "pdbimpl.h" #include "pdbcommon.h" #include "locator.h" #ifdef _DEBUG // Do some support for devenv and other processes for using vsassert instead of this typedef BOOL (__stdcall *PfnVsAssert)( SZ_CONST szMsg, SZ_CONST szAssert, SZ_CONST szFile, UINT line, BOOL * pfDisableAssert ); ...
3,926
390
<reponame>fengjixuchui/RHSocketKit // // NSMutableDictionary+RHExtends.h // Pods // // Created by zhuruhong on 2019/10/1. // #import <Foundation/Foundation.h> //NS_ASSUME_NONNULL_BEGIN @interface NSDictionary (RHExtends) - (NSString *)rh_stringForKey:(id)key; - (NSString *)rh_stringForKey:(id)key defaultValue:(N...
306
424
<filename>vertx-sql-client-templates/src/test/java/io/vertx/sqlclient/templates/wrappers/StringWrapper.java package io.vertx.sqlclient.templates.wrappers; public class StringWrapper extends WrapperBase<String> { public StringWrapper(String value) { super(value); } }
94
2,023
// Copyright 2019 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 to in ...
440
818
/* * Copyright 2020 Red Hat, Inc. 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.org/licenses/LICENSE-2.0 * * Unless required by a...
652
310
<filename>nncf/common/hardware/config.py<gh_stars>100-1000 """ Copyright (c) 2020 Intel 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....
5,207
3,395
<gh_stars>1000+ package com.airbnb.android.react.navigation; import android.os.Build.VERSION; import android.os.Build.VERSION_CODES; final class AndroidVersion { static boolean isAtLeastJellyBeanMR1() { return VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR1; } static boolean isAtLeastJellyBeanMR2() { r...
420
5,169
{ "name": "AZPeerToPeerConnection", "version": "0.1.1", "summary": "Wrapper on top of Apple iOS Multipeer Connectivity framework", "description": "AZPeerToPeerConnectivity is a wrapper on top of Apple iOS Multipeer Connectivity framework. It provides an easier way to create and manage sessions. Easy to integrat...
259
387
<filename>Chapter 13/code/background_subtraction.py import cv2 import numpy as np # Define a function to get the current frame from the webcam def get_frame(cap, scaling_factor): # Read the current frame from the video capture object _, frame = cap.read() # Resize the image frame = cv2.resize(frame, N...
683
11,356
// Boost.Geometry (aka GGL, Generic Geometry Library) // This file is manually converted from PROJ4 // Copyright (c) 2008-2012 <NAME>, Amsterdam, the Netherlands. // This file was modified by Oracle on 2017, 2018. // Modifications copyright (c) 2017-2018, Oracle and/or its affiliates. // Contributed and/or modified b...
1,629
1,618
package com.xiaojuchefu.prism; import android.app.Application; import com.xiaojuchefu.prism.monitor.PrismMonitor; import com.xiaojuchefu.prism.playback.PrismPlayback; public class MainApplication extends Application { @Override public void onCreate() { super.onCreate(); PrismMonitor.getInsta...
145
3,459
<gh_stars>1000+ /**************************************************************************** * gx_video.c * * Genesis Plus GX video support * * Copyright Eke-Eke (2007-2013), based on original work from Softdev (2006) * * Redistribution and use of this code or any derivative works are permitted * ...
1,525
852
<filename>Alignment/MuonAlignment/src/AlignableGEMRing.cc /* AlignableGEMRing * \author <NAME> - TAMU */ #include "Alignment/MuonAlignment/interface/AlignableGEMRing.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" AlignableGEMRing::AlignableGEMRing(const std::vector<AlignableGEMSuperChamber*>& GEMSuperC...
859
45,293
<filename>compiler/testData/compileJavaAgainstKotlin/targets/getter.java package test; @getter class My { @getter int foo() { return 1; } }
66
335
<reponame>Safal08/Hacktoberfest-1<gh_stars>100-1000 { "word": "Brainchild", "definitions": [ "An idea or invention which is considered to be a particular person's creation." ], "parts-of-speech": "Noun" }
92
692
<filename>ports/esp32/modules/urequests.py ../../../../micropython-lib/urequests/urequests.py
35
14,668
// 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 "base/rand_util.h" #include "mojo/public/cpp/base/big_buffer_mojom_traits.h" #include "mojo/public/cpp/test_support/test_utils.h" #include "mojo/...
862
369
<filename>tests/test_geometry.py # coding=utf-8 import ee from geetools.tools.geometry import getRegion ee.Initialize() l8SR = ee.Image("LANDSAT/LC8_SR/LC82310772014043") p_l8SR_cloud = ee.Geometry.Point([-65.8109, -25.0185]) p_l8SR_no_cloud = ee.Geometry.Point([-66.0306, -24.9338]) list1 = ee.List([1, 2, 3, 4, 5])...
310
348
{"nom":"Aubenton","circ":"3ème circonscription","dpt":"Aisne","inscrits":448,"abs":241,"votants":207,"blancs":3,"nuls":2,"exp":202,"res":[{"nuance":"FN","nom":"<NAME>","voix":70},{"nuance":"SOC","nom":"<NAME>","voix":39},{"nuance":"LR","nom":"<NAME>","voix":37},{"nuance":"MDM","nom":"<NAME>","voix":33},{"nuance":"FI","...
232
338
{ "Telechips TCC890": { "type": "tablet", "properties": { "Device_Name": "Wince 6.0", "Device_Code_Name": "TCC890", "Device_Maker": "Telechips", "Device_Pointing_Method": "touchscreen", "Device_Brand_Name": "Telechips" }, "standard": true } }
140
3,227
#include <CGAL/Polynomial.h> #include <CGAL/Polynomial_traits_d.h> #include <CGAL/Polynomial_type_generator.h> #include <CGAL/use.h> #include <CGAL/assertions.h> int main(){ typedef CGAL::Polynomial<int> Poly_int_1; typedef CGAL::Polynomial<Poly_int_1> Poly_int_2; typedef CGAL::Polynomial<Poly_int_2> Pol...
350
4,538
/* File generated automatically by the QuickJS compiler. */ #include <inttypes.h> const uint32_t jslib_checksum_size = 332; const uint8_t jslib_checksum[332] = { 0x01, 0x08, 0x1e, 0x73, 0x72, 0x63, 0x2f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x2e, 0x6a, 0x73, 0x10, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x53, 0...
1,478
4,140
/* * 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 ...
674
399
<reponame>PranavPurwar/procyon /* * TypeVisitor.java * * Copyright (c) 2013 <NAME> * * This source code is based on Mono.Cecil from Jb Evain, Copyright (c) <NAME>; * and ILSpy/ICSharpCode from SharpDevelop, Copyright (c) AlphaSierraPapa. * * This source code is subject to terms and conditions of the Apa...
667
372
<filename>dcerpc/libdcethread/dcethread_select.c /* Clean */ #include <config.h> #include "dcethread-private.h" #include "dcethread-util.h" #include "dcethread-debug.h" #include "dcethread-exception.h" #ifdef API int dcethread_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, s...
199
666
import sys sys.path.append("../../") from appJar import gui def launch(win): app.showSubWindow(win) app=gui() # this is a pop-up app.startSubWindow("one", modal=True) app.addLabel("l1", "SubWindow One") app.stopSubWindow() # this is another pop-up app.startSubWindow("two") app.setLocation(20,20) app.addLabel("...
168
3,807
/* * Copyright 2017 Google * * 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 w...
403
480
/* * Copyright [2013-2021], Alibaba Group Holding Limited * * 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,403
10,225
package io.quarkus.qute.deployment.i18n; import static io.quarkus.qute.i18n.Message.UNDERSCORED_ELEMENT_NAME; import io.quarkus.qute.i18n.Message; import io.quarkus.qute.i18n.MessageBundle; @MessageBundle public interface AppMessages { @Message("Hello world!") String hello(); @Message("Hello {name}!") ...
539
549
from torch.nn.parallel import DataParallel, DistributedDataParallel from mmcv.utils import Registry MODULE_WRAPPERS = Registry('module wrapper') MODULE_WRAPPERS.register_module(module=DataParallel) MODULE_WRAPPERS.register_module(module=DistributedDataParallel)
79
319
<filename>alligator-compiler/src/main/java/me/aartikov/alligatorcompiler/ProcessingException.java package me.aartikov.alligatorcompiler; import javax.lang.model.element.Element; public class ProcessingException extends Exception { private Element element; public ProcessingException(Element element, String message,...
137
1,144
<filename>backend/de.metas.adempiere.adempiere/base/src/test/java/de/metas/dataentry/data/DataEntryRecordTest.java<gh_stars>1000+ package de.metas.dataentry.data; import static de.metas.dataentry.data.DataEntryRecordTestConstants.DATE; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj...
1,779
488
<filename>projects/SATIrE/src/analyzer/support/satire/satire_file_utils.h // A few functions to take care of annoying file naming and creation issues. #ifndef H_SATIRE_FILE_UTILS #define H_SATIRE_FILE_UTILS #include <vector> #include <string> #include <fstream> namespace SATIrE { // Split a path name: "a//b/c" -> [...
370
1,139
package com.journaldev.androidrssfeedtutorial; import android.app.ListActivity; import android.content.Intent; import android.os.AsyncTask; import android.os.Bundle; import android.support.v7.widget.Toolbar; import android.view.View; import android.widget.AdapterView; import android.widget.ListAdapter; import android....
2,235
577
package org.apache.commons.cli; import java.math.BigDecimal; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; import junit.textui.TestRunner; public class OptionBuilderTest extends TestCase { public OptionBuilderTest( String name ) { super( name ); } ...
2,134
311
<reponame>80952556400/java-language-server<gh_stars>100-1000 package org.javacs.debug.proto; public class StoppedEventBody { /** * The reason for the event. For backward compatibility this string is shown in the UI if the 'description' * attribute is missing (but it must not be translated). Values: 'step...
436
1,197
/** * Copyright (c) 2013, 2015, ControlsFX * 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 cond...
3,581
316
<filename>plugins/k8s/resoto_plugin_k8s/resources/replica_set.py from kubernetes import client from .common import KubernetesResource from resotolib.baseresources import ( BaseResource, ) from typing import ClassVar, Dict from dataclasses import dataclass @dataclass(eq=False) class KubernetesReplicaSet(Kubernetes...
224
1,134
""" Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: MIT-0 """ import six from cfnlint.rules import CloudFormationLintRule, RuleMatch class SubNotJoin(CloudFormationLintRule): """Check if Join is being used with no join characters""" id = 'I1022' shortdesc = 'Use...
464
574
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://www.apache.org/licenses/LICENSE-2.0 *...
8,702
1,958
package com.freetymekiyan.algorithms.level.easy; import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; /** * 405. Convert A Number To Hexidecimal * <p> * Given an integer, write an algorithm to convert it to hexadecimal. For negative integer, two’s complement method is *...
761
344
<reponame>jsaynysa/Ksiazka //=============================================================================== // @ Player.cpp // ------------------------------------------------------------------------------ // Player // // Copyright (C) 2008-2015 by <NAME> and <NAME>. // All rights reserved. // // Use of this source co...
1,984
386
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2008-2009, Image Engine Design 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: // // ...
5,012
1,189
/* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package io.opentelemetry.exporter.otlp.internal.metrics; import io.opentelemetry.exporter.otlp.internal.MarshalerUtil; import io.opentelemetry.exporter.otlp.internal.MarshalerWithSize; import io.opentelemetry.exporter.otlp.internal.P...
768
376
<filename>Lib/Chip/MKV45F15.hpp #pragma once #include <Chip/CM4/Freescale/MKV45F15/FTFL_FlashConfig.hpp> #include <Chip/CM4/Freescale/MKV45F15/AIPS.hpp> #include <Chip/CM4/Freescale/MKV45F15/DMA.hpp> #include <Chip/CM4/Freescale/MKV45F15/FMC.hpp> #include <Chip/CM4/Freescale/MKV45F15/FTFA.hpp> #include <Chip/CM4/Frees...
1,374
368
<filename>plugin_vc/game_vc/NodeName.cpp /* Plugin-SDK (Grand Theft Auto Vice City) source file Authors: GTA Community. See more here https://github.com/DK22Pac/plugin-sdk Do not delete this comment block. Respect others' work! */ #include "NodeName.h" PLUGIN_SOURCE_FILE PLUGIN_VARIABLE int &gPluginOf...
1,454
910
/* * Copyright (c) 2021 VMware, Inc. * SPDX-License-Identifier: MIT * * 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 ...
2,905
400
// -*- C++ -*- Copyright (c) Microsoft Corporation; see license.txt #pragma once #include "GMesh.h" #include "Set.h" #include "Queue.h" #include "MeshOp.h" // triangulate_face() #include "Stat.h" #include "PArray.h" #include "SGrid.h" #if 0 { auto func_eval = [](const Vec3<float>& p) { return ...
15,020
1,837
<filename>zebra-client/src/main/java/com/dianping/zebra/shard/jdbc/ShardConnection.java /* * Copyright (c) 2011-2018, <NAME>. All Rights Reserved. * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for addit...
4,150
45,293
public final class Prop /* Prop*/ { @org.jetbrains.annotations.NotNull() private final java.lang.Object someProp; public Prop();// .ctor() } final class null /* null*/ { private ();// .ctor() } final class C /* C*/ { @org.jetbrains.annotations.NotNull() private final kotlin.jvm.functions.Function0<...
690
708
from numpy import array from scipy.cluster.vq import vq, kmeans, whiten from dml.CLUSTER.spectralCluster import SCC import matplotlib.pyplot as plt ''' features = array([ [1,6,11.05], [1,7.35,10.6], [1,8.35,8.35], [1,10.1,7.8], [1,10.2,8.7], [1,9.25,10], [1,8.05,10.8], [1,6.6,11.6], [1,6.4,9.15], [1,8.35,8.25], [1,9.5...
1,412
432
<reponame>ewie/activej<filename>extra/cloud-dataflow/src/main/java/io/activej/dataflow/node/AbstractNode.java package io.activej.dataflow.node; import io.activej.dataflow.DataflowException; import io.activej.dataflow.stats.NodeStat; import org.jetbrains.annotations.Nullable; import java.time.Instant; public abstract...
336
3,227
// Copyright (c) 1999 // Utrecht University (The Netherlands), // ETH Zurich (Switzerland), // INRIA Sophia-Antipolis (France), // Max-Planck-Institute Saarbruecken (Germany), // and Tel-Aviv University (Israel). All rights reserved. // // This file is part of CGAL (www.cgal.org) // // $URL$ // $Id$ // SPDX-License-Id...
935
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. #ifndef COMPONENTS_VIZ_COMMON_QUADS_AGGREGATED_RENDER_PASS_H_ #define COMPONENTS_VIZ_COMMON_QUADS_AGGREGATED_RENDER_PASS_H_ #include <...
1,632
5,169
{ "name": "ICENewSecondPod", "version": "0.1.0", "summary": "My new Pod", "description": "TODO: This is my second Pod , I use new cocoapods. I hope is success.", "homepage": "https://github.com/My-Pod/ICENewSecondPod", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "gumengxiao...
235
2,338
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve \ // RUN: -emit-llvm -o - %s -debug-info-kind=limited 2>&1 | FileCheck %s void test_locals(void) { // CHECK-DAG: name: "__clang_svint8x2_t",{{.*}}, baseType: ![[CT8:[0-9]+]] // CHECK-DAG: ![[CT8]] = !DICompositeType(tag: DW_TAG_array_type, bas...
2,407
1,442
# Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd. # 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/LI...
1,612
3,562
// 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...
606
16,461
<filename>ios/versioned-react-native/ABI41_0_0/Expo/ExpoKit/Core/UniversalModules/ABI41_0_0EXScopedSegment.h // Copyright © 2019-present 650 Industries. All rights reserved. #if __has_include(<ABI41_0_0EXSegment/ABI41_0_0EXSegment.h>) #import <ABI41_0_0EXSegment/ABI41_0_0EXSegment.h> #import <ABI41_0_0UMCore/ABI41_0_0...
226
3,151
package com.rarchives.ripme.tst.ripper.rippers; import java.io.IOException; import java.net.URL; import com.rarchives.ripme.ripper.rippers.FooktubeRipper; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; public class FooktubeRipperTest extends RippersTest { @Test @Disabled("test or r...
219
331
<reponame>Lauzy/TicktockMusic package com.freedom.lauzy.ticktockmusic.contract; import android.content.Context; import android.graphics.Bitmap; import com.freedom.lauzy.ticktockmusic.base.IBaseView; import com.freedom.lauzy.ticktockmusic.model.SongEntity; import com.lauzy.freedom.librarys.widght.music.lrc.Lrc; impor...
510
4,036
<gh_stars>1000+ package com.semmle.js.extractor.test; import com.semmle.js.ast.Node; import com.semmle.js.extractor.ExtractionMetrics; import com.semmle.js.extractor.ExtractorConfig; import com.semmle.js.extractor.ExtractorConfig.SourceType; import com.semmle.js.extractor.NodeJSDetector; import com.semmle.js.parser.JS...
2,156
921
package sqlancer.mysql.ast; public class MySQLUnaryPostfixOperation implements MySQLExpression { private final MySQLExpression expression; private final UnaryPostfixOperator operator; private boolean negate; public enum UnaryPostfixOperator { IS_NULL, IS_TRUE, IS_FALSE; } public MySQ...
655
497
/* * Copyright DataStax, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
370
1,473
<filename>Core/src/org/sleuthkit/autopsy/commandlineingest/UserPreferences.java /* * Autopsy Forensic Browser * * Copyright 2019-2019 Basis Technology Corp. * Contact: carrier <at> sleuthkit <dot> org * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compli...
394
2,206
/* * * Copyright (c) 2006-2020, Speedment, 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 requi...
549
43,677
/* * Copyright (C) 2020 Square, 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...
619
511
/**************************************************************************** * * Copyright 2019 Samsung Electronics 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...
2,244
482
/** * Copyright (c) 2013, <EMAIL> * 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 conditions...
3,755
14,668
#!/usr/bin/env python # Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import sys import unittest import PRESUBMIT sys.path.append(os.path.abspath(os.path.dirname(os.path.abspath(__file__)) ...
3,928
2,236
<filename>solution/dynamic_programming_1/9095/main.py # Authored by : osy0056 # Co-authored by : - # Link : http://boj.kr/da3d10e3ebc945349d778cb06444ffb1 import sys def input(): return sys.stdin.readline().rstrip() tc = int(input()) dp = [0] * 15 dp[1] = 1 dp[2] = 2 dp[3] = 4 for i in range(4, 12): dp[i] = ...
204
14,668
<filename>chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationTriggerScheduler.java // 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. package org.chromium.chrome.browser.notifica...
1,665
358
from copy import deepcopy from functools import partial from random import choice, randint, random, sample from typing import Any, Callable, List, TYPE_CHECKING, Union import numpy as np from fedot.core.composer.constraint import constraint_function from fedot.core.log import Log from fedot.core.optimisers.gp_comp.gp...
6,952
389
<filename>ip/Pmods/PmodKYPD_v1_0/drivers/PmodKYPD_v1_0/src/PmodKYPD.c<gh_stars>100-1000 /******************************************************************************/ /* */ /* PmodKYPD.c -- Driver for the Pmod Keypad ...
3,953
1,262
<filename>metacat-connector-s3/src/main/java/com/netflix/metacat/connector/s3/dao/DatabaseDao.java /* * Copyright 2016 Netflix, Inc. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at...
631
3,269
<gh_stars>1000+ // Time: O(n) // Space: O(1) class Solution { public: int balancedString(string s) { unordered_map<int, int> count; for (const auto& c : s) { ++count[c]; } int result = s.length(); int left = 0; for (int right = 0; right < s.length(); ++r...
435
1,044
__test__ = False if __name__ == "__main__": import eventlet eventlet.monkey_patch(builtins=True, os=True) with open(__file__, mode="rt", buffering=16): pass print("pass")
82
918
/* * Copyright (c) 2018-2019 <NAME> * * Distributed under the MIT License. See LICENSE.md at * https://github.com/LiquidPlayer/LiquidCore for terms and conditions. */ #ifndef V82JSC_Message_h #define V82JSC_Message_h #include "Value.h" namespace V82JSC { struct Message : Value { v8::Persistent<v8::Script> ...
976
1,374
<filename>candy-generator/src/main/java/org/jsweet/util/Tree.java /* * TypeScript definitions to Java translator - http://www.jsweet.org * Copyright (C) 2015 CINCHEO SAS <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as pu...
3,522
1,118
<gh_stars>1000+ {"name":{"common":"Botswana","official":"Republic of Botswana","native":{"eng":{"common":"Botswana","official":"Republic of Botswana"},"tsn":{"common":"Botswana","official":"Lefatshe la Botswana"}}},"demonym":"Motswana","capital":"Gaborone","iso_3166_1_alpha2":"BW","iso_3166_1_alpha3":"BWA","iso_3166_1_...
527
1,838
//---------------------------------------------------------------------// // Wrapper header file that excludes Checked-C-specific declarations // // if the compilation is not for Checked C, or if is for Checked C // // but the implicit inclusion of checked header files is disabled. // ////////////////////////...
266
578
<reponame>gddhatdisqus/Hive-JSON-Serde-tmp /*======================================================================* * Copyright (c) 2011, OpenX Technologies, Inc. All rights reserved. * * * * Licensed under the New BSD License (the "License"); ...
828
1,144
<gh_stars>1000+ package de.metas.material.planning.interceptor; import de.metas.material.planning.IResourceDAO; import de.metas.product.IProductDAO; import de.metas.product.ResourceId; import de.metas.util.Services; import org.adempiere.ad.modelvalidator.annotations.Interceptor; import org.adempiere.ad.modelvalidator....
701
3,850
<reponame>dodgex/androidannotations package org.androidannotations.preference; public class R { public static final class xml { public static final int preferences = 0x7f06000a; } public static final class string { public static final int myKey = <KEY>; } }
85
6,036
/** * Copyright (c) 2016-present, Facebook, 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...
2,806
345
<reponame>stefangomez/botbuilder-js<filename>libraries/teams-scenarios/integrationBot/recordings/20191030203555603-reply-integrationBot.json {"scope":"https://smba.trafficmanager.net:443","method":"POST","path":"/amer/v3/conversations","body":{"isGroup":true,"activity":{"type":"message","attachments":[{"contentType":"a...
436
304
package io.jenkins.plugins.analysis.core.util; import org.jenkinsci.plugins.workflow.actions.WarningAction; import org.jenkinsci.plugins.workflow.graph.FlowNode; import hudson.model.Result; import hudson.model.Run; /** * {@link StageResultHandler} that sets the overall build result of the {@link Run} and annotates t...
462
1,644
<filename>core/src/main/java/google/registry/export/BackupDatastoreAction.java // Copyright 2018 The Nomulus 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 ...
1,074
2,049
<gh_stars>1000+ # -*- coding: utf-8 -*- # Copyright 2012 splinter authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. import os TESTS_ROOT = os.path.abspath(os.path.dirname(__file__))
95
432
<filename>debugger/src/common/generic/cmd_reg_generic.cpp<gh_stars>100-1000 /* * Copyright 2018 <NAME>, <EMAIL> * * 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....
1,054
984
/* * Copyright DataStax, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
735
844
{ "github-username": "mr-siddy", "favourite-emoji": "🙂", "favourite-music": "https://soundcloud.com/cigarettesaftersex/falling-in-love-1", "favourite-color": "#03fcad" }
83
625
<gh_stars>100-1000 package com.jtransc.charset.charsets; import com.jtransc.charset.JTranscCharBuffer; import com.jtransc.charset.JTranscCharset; import java.io.ByteArrayOutputStream; import java.nio.ByteBuffer; import java.nio.CharBuffer; public class JTranscCharsetUTF8 extends JTranscCharset { public JTranscCh...
2,319
2,633
<filename>test/python/ctx_iter_atexit/wsgi.py import atexit class application: def __init__(self, environ, start_response): self.environ = environ self.start = start_response def __iter__(self): atexit.register(self._atexit) content_length = int(self.environ.get('CONTENT_LENG...
332
332
<reponame>wwjiang007/spring-xd /* * Copyright 2014 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
574
8,772
<filename>support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/flow/DefaultDelegatedClientIdentityProviderConfigurationProducer.java package org.apereo.cas.web.flow; import org.apereo.cas.authentication.AuthenticationServiceSelectionPlan; import org.apereo.cas.authentication.principal.Service; imp...
2,557
733
// // ZoomTransitioning.h // ZoomTransitioning // // Created by shoji on 7/19/16. // Copyright © 2016 com.shoji. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for ZoomTransitioning. FOUNDATION_EXPORT double ZoomTransitioningVersionNumber; //! Project version string for ZoomTransition...
158
599
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
770
1,756
package com.libmailcore; /** Operation to fetch the content of a given article. */ public class NNTPFetchArticleOperation extends NNTPOperation { /** Content of the article in RFC 822 format. */ public native byte[] data(); }
66
1,444
<reponame>amc8391/mage<filename>Mage.Sets/src/mage/cards/s/SizzlingBarrage.java package mage.cards.s; import mage.MageObjectReference; import mage.abilities.effects.common.DamageTargetEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.WatcherScope; ...
954