max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,169
<reponame>Biangkerok32/punya<filename>appinventor/appengine/src/com/google/appinventor/shared/rpc/Motd.java // -*- mode: java; c-basic-offset: 2; -*- // Copyright 2009-2011 Google, All Rights reserved // Copyright 2011-2012 MIT, All rights reserved // Released under the Apache License, Version 2.0 // http://www.apache....
785
1,224
/* C-style API for DIRECT functions. SGJ (August 2007). */ #include "direct-internal.h" /* Perform global minimization using (Gablonsky implementation of) DIRECT algorithm. Arguments: f, f_data: the objective function and any user data -- the objective function f(n, x, undefined_flag, data) takes 4 a...
1,412
1,350
<reponame>Shashi-rk/azure-sdk-for-java<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.logic.models; import com.azure.core.util.ExpandableStringEnum; import com....
495
338
<reponame>XmobiTea-Family/ezyfox-server<gh_stars>100-1000 package com.tvd12.ezyfoxserver.setting; import com.tvd12.ezyfox.util.EzyToMap; public interface EzyBaseSocketSetting extends EzyToMap { int getPort(); String getAddress(); boolean isActive(); boolean isSslActive(); Stri...
147
348
{"nom":"Meys","circ":"10ème circonscription","dpt":"Rhône","inscrits":608,"abs":265,"votants":343,"blancs":4,"nuls":2,"exp":337,"res":[{"nuance":"REM","nom":"<NAME>","voix":99},{"nuance":"LR","nom":"Mme <NAME>","voix":95},{"nuance":"FN","nom":"Mme <NAME>","voix":74},{"nuance":"FI","nom":"M. <NAME>","voix":31},{"nuance"...
273
11,750
<gh_stars>1000+ import pytest from _plotly_utils.basevalidators import BaseDataValidator from plotly.graph_objs import Scatter, Bar, Box # Fixtures # -------- @pytest.fixture() def validator(): return BaseDataValidator( class_strs_map={"scatter": "Scatter", "bar": "Bar", "box": "Box"}, plotly_name...
1,601
1,268
class SubscriptionHtml(object): """The HTML of an SubscriptionTracking.""" def __init__(self, subscription_html=None): """Create a SubscriptionHtml object :param subscription_html: Html to be appended to the email, with the subscription tracking link. You may ...
658
1,457
package org.kairosdb.rollup; import org.apache.commons.lang3.exception.ExceptionUtils; import org.kairosdb.core.datapoints.LongDataPointFactory; import org.kairosdb.core.datapoints.LongDataPointFactoryImpl; import org.kairosdb.core.datapoints.StringDataPointFactory; import org.kairosdb.core.datastore.KairosDatastore; ...
2,092
1,738
<filename>dev/Code/CryEngine/RenderDll/Common/OcclQuery.h /* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by...
605
14,668
<filename>third_party/protobuf/generate_changelog.py<gh_stars>1000+ #!/usr/bin/env python """Generates a friendly list of changes per language since the last release.""" import sys import os class Language(object): def __init__(self, name, pathspec): self.name = name self.pathspec = pathspec languages = [...
699
679
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
2,626
517
<filename>src/lib/OpenEXRUtil/ImfImage.cpp // // SPDX-License-Identifier: BSD-3-Clause // Copyright (c) Contributors to the OpenEXR Project. // //---------------------------------------------------------------------------- // // class Image // //--------------------------------------------------------------------...
6,547
3,494
/* Copyright (c) 2015, The Cinder Project This code is intended to be used with the Cinder C++ library, http://libcinder.org 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...
3,594
1,017
package com.xiaolyuh; import org.apache.ibatis.session.SqlSession; import java.net.URISyntaxException; import java.sql.Connection; import java.sql.SQLException; import java.sql.Statement; import java.util.Objects; /** * @author yuhao.wang3 * @since 2019/10/12 17:23 */ public class BaseTest { protected void i...
763
1,350
<filename>sdk/automanage/azure-resourcemanager-automanage/src/main/java/com/azure/resourcemanager/automanage/implementation/BestPracticesVersionsImpl.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package ...
1,131
852
/** \file * Implementation of class RawDataCollectorByLabel * */ #include "EventFilter/RawDataCollector/src/RawDataCollectorByLabel.h" #include "DataFormats/FEDRawData/interface/FEDRawDataCollection.h" #include "DataFormats/FEDRawData/interface/FEDRawData.h" #include "DataFormats/FEDRawData/interface/FEDNumbering.h...
1,234
375
<gh_stars>100-1000 /** * */ package org.archive.wayback.replay.charset; import java.io.IOException; import junit.framework.TestCase; import org.archive.io.warc.TestWARCReader; import org.archive.io.warc.TestWARCRecordInfo; import org.archive.io.warc.WARCRecord; import org.archive.wayback.core.WaybackRequest; impo...
2,104
884
<reponame>rt112000/CDM [ { "annotationName" : "version", "traitValue" : "means.measurement.version" } ]
66
2,577
<filename>engine/src/test/java/org/camunda/bpm/engine/test/api/authorization/externaltask/SetExternalTaskRetriesAuthorizationTest.java<gh_stars>1000+ /* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed wit...
710
312
<gh_stars>100-1000 #include "clar_libgit2.h" #include "config.h" static git_config *cfg; void test_config_validkeyname__initialize(void) { cl_fixture_sandbox("config/config10"); cl_git_pass(git_config_open_ondisk(&cfg, "config10")); } void test_config_validkeyname__cleanup(void) { git_config_free(cfg); cfg = N...
594
1,020
<filename>end-to-end-tests/src/main/java/com/amazonaws/blox/integ/BloxTestStack.java /* * Copyright 2017 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 * Li...
831
2,942
/* * Copyright 2012-2019 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,586
453
<reponame>enfoTek/tomato.linksys.e2000.nvram-mod<filename>tools-src/gnu/glibc/sysdeps/unix/sysv/linux/kernel-features.h /* Set flags signalling availability of kernel features based on given kernel version number. Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU C Libr...
2,540
605
{ "pages": { "clipPath": { "cssExampleSrc": "./live-examples/css-examples/masking/clip-path.css", "exampleCode": "./live-examples/css-examples/masking/clip-path.html", "fileName": "clip-path.html", "title": "CSS Demo: clip-path", "type": "cs...
1,882
1,056
<reponame>Antholoj/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 ...
3,007
850
<reponame>langsunny/DEye // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/meta_graph.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "tensorflow/core/protobuf/meta_graph.pb.h" #include <algorithm> #include <google/protobuf/stubs/common.h> #include <g...
114,079
1,601
# ------------------------------------------------------------------------- # # Part of the CodeChecker project, under the Apache License v2.0 with # LLVM Exceptions. See LICENSE for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # # ---------------------------------------------------...
1,132
3,246
package org.datatransferproject.transfer.deezer.model; import com.fasterxml.jackson.annotation.JsonProperty; /** * POJO of track: https://developers.deezer.com/api/track */ public class Track { private long id; private boolean readable; private String title; @JsonProperty("short_title") private String short...
485
301
/****************************************************************** * * Copyright 2016 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 * ...
8,109
965
<reponame>bobbrow/cpp-docs // Declare an array of integers CAtlArray<int> iGrowArray; // Add an element iGrowArray.Add(0); // Add an extra element at position 19. // This will grow the array to accommodate. iGrowArray.SetAtGrow(19, 0); // Confirm size of new array ATLASSERT(iGrowArray.GetC...
144
554
// // UILabel+TextColor.h // UILabel+TextColor // // Copyright (c) 2015 Draveness. All rights reserved. // // These files are generated by ruby script, if you want to modify code // in this file, you are supposed to update the ruby code, run it and // test it. And finally open a pull request. #import <UIKit/UIK...
194
14,668
<reponame>zealoussnow/chromium // Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_METRICS_UI_SCREEN_INFO_METRICS_PROVIDER_H_ #define COMPONENTS_METRICS_UI_SCREEN_INFO_METRICS_PROVIDER_H_...
447
390
package com.rackspacecloud.blueflood.inputs.constraints; import com.rackspacecloud.blueflood.service.Configuration; import com.rackspacecloud.blueflood.service.CoreConfig; /** * Constants to set limits for allowed epoch ranges. */ public enum EpochRangeLimits { BEFORE_CURRENT_TIME_MS(Configuration.getInstance(...
225
475
<gh_stars>100-1000 #include "../include/Neuron.h" #include <assert.h> #include <iostream> #include <stdlib.h> using namespace net; Neuron::Neuron(int numInputs) { weights = std::vector<double>(numInputs+1); for(int a = 0; a < numInputs+1; a++) { weights[a] = Neuron::randomWeight(); } } Neuron::Neuron(std:...
305
335
/* Copyright (C) 2016 Quaternion Risk Management Ltd All rights reserved. This file is part of ORE, a free-software/open-source library for transparent pricing and risk analysis - http://opensourcerisk.org ORE is free software: you can redistribute it and/or modify it under the terms of the Modified BSD License...
25,031
986
<filename>lib-src/libsndfile/tests/ogg_opus_test.c<gh_stars>100-1000 /* ** Copyright (C) 2007-2018 <NAME> <<EMAIL>> ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by ** the Free Software Foundation; either version 2 of the ...
5,508
335
<gh_stars>100-1000 { "word": "Swift", "definitions": [ "Happening quickly or promptly.", "Moving or capable of moving at high speed." ], "parts-of-speech": "Adjective" }
87
2,326
// // Copyright RIME Developers // Distributed under the BSD License // // 2013-07-02 <NAME> <<EMAIL>> // #ifndef RIME_FORMATTER_H_ #define RIME_FORMATTER_H_ #include <rime/common.h> #include <rime/component.h> #include <rime/ticket.h> namespace rime { class Engine; class Formatter : public Class<Formatter, const ...
228
1,809
<filename>java/src/main/java/com/d_project/qrcode/BitBuffer.java package com.d_project.qrcode; /** * BitBuffer * @author <NAME> */ class BitBuffer { private byte[] buffer; private int length; private int inclements; public BitBuffer() { inclements = 32; buffer = new byte[inclements]; length =...
489
957
<reponame>OscarZero/netBare<filename>netbare-core/src/main/java/com/github/megatronking/netbare/ssl/SSLRefluxCallback.java<gh_stars>100-1000 /* NetBare - An android network capture and injection library. * Copyright (C) 2018-2019 <NAME> * Copyright (C) 2018-2019 GuoShi * * NetBare is free software: you can redi...
457
11,811
/* * Copyright (c) 2012-2017 The ANTLR Project. All rights reserved. * Use of this file is governed by the BSD 3-clause license that * can be found in the LICENSE.txt file in the project root. */ package org.antlr.v4.codegen.model; import org.antlr.v4.codegen.OutputModelFactory; import org.antlr.v4.runtime.misc.I...
325
2,382
from matplotlib import pyplot from shapely.geometry import Point from descartes import PolygonPatch from figures import SIZE, BLUE, GRAY, set_limits fig = pyplot.figure(1, figsize=SIZE, dpi=90) a = Point(1, 1).buffer(1.5) b = Point(2, 1).buffer(1.5) # 1 ax = fig.add_subplot(121) patch1 = PolygonPatch(a, fc=GRAY, e...
584
3,428
/** * @license Apache-2.0 * * Copyright (c) 2021 The Stdlib 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 a...
569
1,744
<reponame>jalcoriza/got-your-back mappings = { # af (1/73) 'INKASSIE': 'INBOX', 'ASBLIK': 'TRASH', 'BELANGRIK': 'IMPORTANT', 'GESTER': 'STARRED', 'GESTUURDE E-POS': 'SENT', 'KONSEPTE': 'DRAFT', 'STROOIPOS': 'SPAM', # az (2/73) 'GƏLƏNLƏR': 'INBOX', 'GÖNDƏRILƏNLƏR': 'SENT', 'QARALAMALAR': 'DRAFT',...
10,385
3,269
<filename>C++/reverse-string.cpp // Time: O(n) // Space: O(1) class Solution { public: void reverseString(vector<char>& s) { for (int i = 0, j = s.size() - 1; i < j; ++i, --j) { swap(s[i], s[j]); } } }; // Time: O(n) // Space: O(1) class Solution2 { public: void reverseStrin...
194
9,516
<reponame>ketyi/dgl /*! * Copyright (c) 2016 by Contributors * \file runtime_base.h * \brief Base of all C APIs */ #ifndef DGL_RUNTIME_RUNTIME_BASE_H_ #define DGL_RUNTIME_RUNTIME_BASE_H_ #include <dgl/runtime/c_runtime_api.h> #include <stdexcept> /*! \brief macro to guard beginning and end section of all functi...
430
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Beaujeu","circ":"9ème circonscription","dpt":"Rhône","inscrits":1324,"abs":709,"votants":615,"blancs":4,"nuls":1,"exp":610,"res":[{"nuance":"LR","nom":"<NAME>","voix":218},{"nuance":"REM","nom":"Mme <NAME>","voix":179},{"nuance":"FN","nom":"<NAME>","voix":101},{"nuance":...
311
1,305
<gh_stars>1000+ /* * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package javax.swing.plaf; import java.awt.Color; import java.beans.ConstructorProperti...
514
338
<reponame>ayumi-cloud/browscap<filename>resources/devices/tablet/ceros.json<gh_stars>100-1000 { "Ceros CT9716-B": { "type": "tablet", "properties": { "Device_Name": "Revolution", "Device_Code_Name": "CT9716-B", "Device_Maker": "Ceros", "Device_Pointing_Method": "touchscreen", "De...
171
3,469
#!/usr/bin/env python # -*- coding: utf-8 -*- """ __author__ = 'AJay' __mtime__ = '2019/4/15 0015' """ # ! /usr/bin/env python # -*- coding: utf-8 -*- import time import threading from datetime import datetime import tkinter as tk import os from db import MongoArticle,MongoUrl,MongoConfig from multiprocessing impor...
10,413
516
<reponame>GReguig/kymatio """ Classification of MNIST with scattering ======================================= Here we demonstrate a simple application of scattering on the MNIST dataset. We use 10000 images to train a linear classifier. Features are normalized by batch normalization. """ ##############################...
624
2,647
''' Same Tree Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally identical and the nodes have the same value. Input: 1 1 / \ / \ 2 3 2 3 Output: True Input: 1 1 / \...
568
930
package com.foxinmy.weixin4j.interceptor; import com.foxinmy.weixin4j.handler.WeixinMessageHandler; import com.foxinmy.weixin4j.request.WeixinMessage; import com.foxinmy.weixin4j.request.WeixinRequest; import com.foxinmy.weixin4j.response.WeixinResponse; import io.netty.channel.ChannelHandlerContext; /** * 消息拦截适配 ...
436
4,184
/** * Copyright (c) 2007-2013, <NAME> * * 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...
1,189
1,184
<filename>plyer/platforms/ios/vibrator.py '''Implementation Vibrator for iOS. Install: Add AudioToolbox framework to your application. ''' import ctypes from plyer.facades import Vibrator class IosVibrator(Vibrator): '''iOS Vibrator class. iOS doesn't support any feature. All time, pattern, repetition ...
406
596
<reponame>nandhinianandj/Axelrod """Tests APavlov strategies.""" import axelrod as axl from .test_player import TestPlayer C, D = axl.Action.C, axl.Action.D class TestAPavlov2006(TestPlayer): name = "<NAME>" player = axl.APavlov2006 expected_classifier = { "memory_depth": float("inf"), ...
4,141
986
/********************************************************************** Sneedacity - A Digital Audio Editor Copyright 1999-2018 Audacity Team, 2021 Sneedacity Team License: wxwidgets <NAME> ******************************************************************//** \file SetEnvelopeCommand.h \brief Declarati...
388
450
/* * 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 ...
537
879
<gh_stars>100-1000 package org.zstack.kvm; import org.springframework.http.HttpMethod; import org.zstack.header.host.HostVO; import org.zstack.header.message.APIMessage; import org.zstack.header.message.APIParam; import org.zstack.header.rest.RestRequest; import java.util.HashSet; import java.util.Set; /** * Crea...
551
2,487
/* * Copyright (C) 2018 Zhejiang xiaominfo Technology CO.,LTD. * All rights reserved. * Official Web Site: http://www.xiaominfo.com. * Developer Web Site: http://open.xiaominfo.com. */ package com.github.xiaoymin.knife4j.aggre.eureka; import java.util.List; /** * Eureka注册中心应用Model * @author <a href="mailto:<E...
380
2,151
# 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. import contextlib import httplib import os import shutil import tempfile import unittest from device_setup import _WprHost from options import OPTIONS from ...
5,228
921
// Copyright (c) 2015-2020 <NAME> <<EMAIL>> Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.vladsch.md.nav.psi.element; import com.intellij.psi.stubs.StubElement; import org.jetbrains.annotations.NotNull; public interface MdLinkElementStub<Elem extends...
139
1,936
#ifndef FEATURE_TRACKING_FEATURE_TRACKING_PIPELINE_H_ #define FEATURE_TRACKING_FEATURE_TRACKING_PIPELINE_H_ #include <string> #include <vector> #include <aslam/common/memory.h> #include <aslam/common/statistics/accumulator.h> #include <aslam/frames/feature-track.h> #include <aslam/visualization/feature-track-visualiz...
1,082
668
/* * Copyright (c) 2018, Oracle and/or its affiliates. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are * permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this ...
825
372
package graphql.kickstart.spring.webflux; import graphql.kickstart.execution.context.GraphQLKickstartContext; import org.springframework.web.reactive.socket.WebSocketSession; public interface GraphQLSpringWebSocketSessionContext extends GraphQLKickstartContext { WebSocketSession getWebSocketSession(); }
83
628
<filename>c/custom_alloc.h int use_real_malloc = 1; int use_fake_malloc = 0; void* custom_alloc_opaque = &use_real_malloc; unsigned char huge_buffer[1024*1024 * 255]; size_t huge_buffer_offset = 0; const uint32_t science = 0x5C1E11CE; void * custom_malloc_f(void* opaque, size_t user_size) { unsigned char * retval;...
1,206
2,978
/* * Copyright Strimzi authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package io.strimzi.systemtest.annotations; import io.strimzi.test.k8s.KubeClusterResource; import io.strimzi.test.k8s.cluster.OpenShift; import org.apache.logging.log4j.LogManager;...
489
376
<reponame>cjsmeele/Kvasir #pragma once #include <Chip/Unknown/Spansion/MB9BF10xN/FLASH_IF.hpp> #include <Chip/Unknown/Spansion/MB9BF10xN/CRG.hpp> #include <Chip/Unknown/Spansion/MB9BF10xN/CRTRIM.hpp> #include <Chip/Unknown/Spansion/MB9BF10xN/SWWDT.hpp> #include <Chip/Unknown/Spansion/MB9BF10xN/HWWDT.hpp> #include <Chi...
1,037
713
<gh_stars>100-1000 package org.infinispan.commons.configuration.io; /** * @since 12.1 * @author <NAME> &lt;<EMAIL>%gt; */ public interface Location { int getLineNumber(); int getColumnNumber(); static Location of(int line, int column) { return new Location() { @Override public int getLineNu...
224
1,036
<filename>pkg/alsa-lib/alsa/version.h<gh_stars>1000+ /* * version.h */ #define SND_LIB_MAJOR 1 /**< major number of library version */ #define SND_LIB_MINOR 2 /**< minor number of library version */ #define SND_LIB_SUBMINOR 5 /**< subminor number of library version */ #define SND_LIB_EXTRAVER 1000000 /**< extra v...
237
8,664
<reponame>Taritsyn/ChakraCore //------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------...
296
714
<filename>Examples/external/nowide/test/exampleProject/example_main.cpp<gh_stars>100-1000 // // Copyright (c) 2019 <NAME> // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE or copy at // http://www.boost.org/LICENSE_1_0.txt) // #include <nowide/args.hpp> #include <no...
231
310
<reponame>isabella232/PropertyCross #ifndef FAVOURITES_H #define FAVOURITES_H #include "property.h" #include <QAbstractListModel> /** * A Class which saves Favourited Properties in to persistent storage */ class FavouritesStorage : public QObject { Q_OBJECT public: FavouritesStorage(QObject *parent = 0); pu...
810
448
<filename>Public/Src/Cache/ContentStore/VfsTest/Test/LoggingConfiguration.json { "Types": [ "File", "Console" ], "FileAutoFlush": false, "FileBaseName": "ContentStoreDistributedTest" }
71
9,136
/* GWEN Copyright (c) 2010 <NAME> See license in Gwen.h */ #include "Gwen/Controls/TreeControl.h" #include "Gwen/Controls/ScrollControl.h" #include "Gwen/Utility.h" using namespace Gwen; using namespace Gwen::Controls; GWEN_CONTROL_CONSTRUCTOR(TreeControl) { m_TreeControl = this; m_bUpdateScrollBar = 2; m_Togg...
3,222
884
<reponame>rt112000/CDM { "documentVersion": "1.2.1", "jsonSchemaSemanticVersion": "1.0.0", "imports": [ { "corpusPath": "/core/cdsConcepts.1.0.1.cdm.json" }, { "corpusPath": "/core/wellKnownCDSAttributeGroups.1.2.1.cdm.json" }, { "corpusPath": "/core/applicationCommon/Currenc...
418
18,012
/* * 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 ...
472
1,442
<reponame>VersiraSec/epsilon-cfw<gh_stars>1000+ #ifndef SETTINGS_MAIN_CONTROLLER_H #define SETTINGS_MAIN_CONTROLLER_H #include <apps/shared/settings_message_tree.h> #include <escher/selectable_list_view_controller.h> #include <escher/message_table_cell_with_chevron_and_message.h> #include <escher/message_table_cell_wi...
1,168
1,056
<filename>platform/options.api/src/org/netbeans/modules/options/advanced/AdvancedPanel.java /* * 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...
3,301
327
/* <NAME> `gentilkiwi` https://blog.gentilkiwi.com <EMAIL> Licence : https://creativecommons.org/licenses/by/4.0/ */ #include "kull_m_service.h" BOOL kull_m_service_getUniqueForName(PCWSTR serviceName, SERVICE_STATUS_PROCESS * pServiceStatusProcess) { BOOL status = FALSE; SC_HANDLE hSC, hS; DWORD szNeeded; if(...
2,639
723
#import <AppKit/AppKit.h> @interface PassThruImageView : NSImageView @end
30
1,184
''' CPU === Simple Example --------------- To get CPU count:: >>> from plyer import cpu >>> # 1 socket, 1 core per socket, 2 threads per core >>> cpu.sockets # 1 CPU socket (or slot) 1 >>> cpu.physical # 1 CPU socket * 1 core per socket 1 >>> cpu.logical # 1 CPU socket * 1 core per so...
797
335
{ "word": "Tertiary", "definitions": [ "Third in order or level.", "Relating to or denoting education at a level beyond that provided by schools, especially that provided by a college or university.", "Relating to or denoting the medical treatment provided at a specialist institution.", ...
230
1,592
/* This file is a part of the NVDA project. Copyright 2018 NV Access Limited. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2.0, as published by the Free Software Foundation. This program is distributed in the hope...
501
1,056
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
982
706
/********************************************************************** Copyright (c) 2020 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without ...
5,394
486
// // RKAppDelegate.h // RKTagsView // // Created by <NAME> on 03/02/2016. // Copyright (c) 2016 <NAME>. All rights reserved. // @import UIKit; @interface RKAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
101
831
package com.android.tools.idea.gradle.project; import org.jetbrains.plugins.gradle.service.project.GradleImportCustomizer; public class AndroidStudioGradleImportCustomizer extends GradleImportCustomizer { @Override public String getPlatformPrefix() { return "AndroidStudio"; } @Override public boolean u...
111
2,771
<filename>app/src/main/java/com/shizhefei/indicator/spring/SpringActivity.java package com.shizhefei.indicator.spring; import android.app.Activity; import android.graphics.Color; import android.os.Bundle; import android.os.Handler; import android.support.v4.view.PagerAdapter; import android.support.v4.view.ViewPager; ...
1,731
384
<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 licenses this file * to you under the Apache License, Version 2.0 (the...
917
28,056
package com.alibaba.json.bvt.serializer; import java.io.File; import org.junit.Assert; import junit.framework.TestCase; import com.alibaba.fastjson.JSON; public class FileTest extends TestCase { public void test_file() throws Exception { File file = new File("abc.txt"); String text = ...
241
351
<reponame>possibilities/CQ-editor from sys import platform from path import Path from os import system from shutil import make_archive from cq_editor import __version__ as version out_p = Path('dist/CQ-editor') out_p.rmtree_p() build_p = Path('build') build_p.rmtree_p() system("pyinstaller pyinstaller.spec") if pla...
281
553
/**************************************************************************** Copyright (c) 2012-2013 cocos2d-x.org http://www.cocos2d-x.org 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...
4,709
794
/* * 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")...
1,237
16,989
<reponame>jobechoi/bazel<filename>src/main/res/winsdk_toolchain.bzl # Copyright 2019 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www....
843
463
<reponame>jasnzhuang/Personal-Homework #ifndef __MST_H__ #define __MST_H__ #include "conf.h" #include "union_find_set.h" class MST { UFS ufs; std::vector<Edge>edge, mst; public: //set the precision in output mst total weight static int MST_PRECISION; //Using Kruskal algorithm to calculate minimum...
262
384
<gh_stars>100-1000 import graphene import graphene_django_optimizer as gql_optimizer from nautobot.virtualization.models import VirtualMachine, VMInterface from nautobot.virtualization.filters import VirtualMachineFilterSet, VMInterfaceFilterSet class VirtualMachineType(gql_optimizer.OptimizedDjangoObjectType): ...
390
16,989
// Copyright 2016 The Bazel Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appl...
2,236
511
/**************************************************************************** * * Copyright 2016 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...
1,847
6,224
<filename>drivers/display/display_st7789v.h<gh_stars>1000+ /* * Copyright (c) 2019 <NAME> * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ST7789V_DISPLAY_DRIVER_H__ #define ST7789V_DISPLAY_DRIVER_H__ #include <zephyr.h> #define ST7789V_CMD_SW_RESET 0x01 #define ST7789V_CMD_SLEEP_IN 0x10 #define ST7789V_CM...
1,212