max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
488
<reponame>maurizioabba/rose<filename>tests/CompileTests/UnparseHeadersTests/UnparseHeadersTransformVisitor.h #include <string> using namespace std; class UnparseHeadersTransformVisitor : public AstSimpleProcessing { private: static const string matchEnding; static const size_t matchEnding...
164
2,757
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
449
388
<filename>Sound/src/java/example/MainPanel.java // -*- mode:java; encoding:utf-8 -*- // vim:set fileencoding=utf-8: // @homepage@ package example; import java.awt.*; import java.io.IOException; import java.util.Objects; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax....
1,052
3,513
#pragma once #include <SHADERed/UI/UIView.h> #include <SDL2/SDL_events.h> namespace ed { class FrameAnalysisUI : public UIView { public: FrameAnalysisUI(GUIManager* ui, ed::InterfaceManager* objects, const std::string& name = "", bool visible = true) : UIView(ui, objects, name, visible) { m_histogramType...
245
3,012
<reponame>akhakimo/edk2<gh_stars>1000+ /* * WARNING: do not edit! * Generated from include/openssl/opensslconf.h.in * * Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the L...
3,647
3,358
<reponame>urgu00/QuantLib<filename>ql/indexes/ibor/pribor.hpp /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2018 <NAME> This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ Quant...
588
1,016
package io.vertx.ext.web.validation.impl; import io.vertx.core.Vertx; import io.vertx.core.json.JsonObject; import io.vertx.ext.web.validation.MalformedValueException; import io.vertx.ext.web.validation.impl.parameter.ExplodedObjectValueParameterParser; import io.vertx.ext.web.validation.impl.parser.ValueParser; impor...
2,392
435
{ "copyright_text": "CC-BY-NC-SA 4.0", "description": "<NAME>\n\nhttps://2020.pycon.org.au/program/KHULAN\n\nImage datasets are large, and becoming larger. The widely used benchmark dataset COCO (Common Objects in Context) contains 330,000 individual images. The average size of a single entry on the image database ...
1,324
333
package com.alipay.api.domain; import java.util.Date; import java.util.List; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; /** * 券对象 * * @author auto create * @since 1.0, 2019-06-25 19:47:25 */ public clas...
5,244
3,212
<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "Lic...
6,355
403
package com.camunda.bpm.demo.engine_plugin_variable_depending_history_ttl; import static org.camunda.bpm.engine.test.assertions.bpmn.BpmnAwareTests.*; import static org.junit.jupiter.api.Assertions.*; import java.util.Map; import org.apache.ibatis.logging.LogFactory; import org.camunda.bpm.dmn.engine.DmnDecisionTabl...
482
1,056
<reponame>timfel/netbeans<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache Lice...
3,618
2,023
<reponame>tdiprima/code import sha import os def createsha(directory): """Walk through a Directory creating Sha Hashes of each file path""" for root, dirs, files in os.walk(str(directory)): for name in files: filepath = os.path.join(root, name) value = sha.new(filepath).hexdigest...
143
4,223
#import <UIKit/UIKit.h> @interface RootViewController : UITableViewController <NSFetchedResultsControllerDelegate> { NSFetchedResultsController *fetchedResultsController; NSManagedObjectContext *managedObjectContext; } @property (nonatomic) NSManagedObjectContext *managedObjectContext; @end
86
335
<gh_stars>100-1000 { "word": "Leaf", "definitions": ["one of the flat, usually green parts of a plant that are joined at one end to the stem or branch"], "parts-of-speech": "Noun" }
71
2,372
<reponame>ceti-dev/PhysX<gh_stars>1000+ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following ...
8,444
5,169
{ "name": "UITextSubClass", "version": "0.2.3", "summary": "UITextField/UITextView SubClass library.", "homepage": "https://github.com/azu/UITextSubClass", "screenshots": "http://f.cl.ly/items/2O0W2X3e1j3z1a2h3Y0J/UITextWithDatepicker.png", "license": { "type": "MIT", "file": "LICENSE" }, "autho...
1,285
2,151
<gh_stars>1000+ // Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ASH_PUBLIC_CPP_SHELF_ITEM_DELEGATE_H_ #define ASH_PUBLIC_CPP_SHELF_ITEM_DELEGATE_H_ #include <memory> #include <string> #include...
1,222
501
<reponame>QuESt-Calculator/pyscf #!/usr/bin/env python # Copyright 2014-2019 The PySCF Developers. 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.apac...
7,307
1,299
<reponame>MC-JY/tika /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the...
1,258
403
<reponame>igormskru/code<gh_stars>100-1000 package com.camunda.consulting.handleListObjects; public class OrderItem { private int productId; private double productPrice; private int quantity; public OrderItem(int productId, double productPrice, int quantity) { super(); this.productId = product...
276
348
{"nom":"Teigny","circ":"2ème circonscription","dpt":"Nièvre","inscrits":98,"abs":39,"votants":59,"blancs":2,"nuls":5,"exp":52,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":29},{"nuance":"SOC","nom":"M. <NAME>","voix":23}]}
94
680
# Generated by Django 2.1.2 on 2018-10-27 15:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('vespene', '0001_initial'), ] operations = [ migrations.AlterField( model_name='build', name='is_internal', ...
256
30,023
"""Constants for Sonarr.""" DOMAIN = "sonarr" # Config Keys CONF_BASE_PATH = "base_path" CONF_DAYS = "days" CONF_INCLUDED = "include_paths" CONF_UNIT = "unit" CONF_UPCOMING_DAYS = "upcoming_days" CONF_WANTED_MAX_ITEMS = "wanted_max_items" # Data DATA_HOST_CONFIG = "host_config" DATA_SONARR = "sonarr" DATA_SYSTEM_STAT...
194
831
/* * Copyright (C) 2016 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...
4,518
832
<filename>CDDStoreDemo/CDDStoreDemo/Classes/Details(商品详情)/View/CollectionView/Header/DCDetailShufflingHeadView.h // // DCDetailShufflingHeadView.h // CDDMall // // Created by apple on 2017/6/21. // Copyright © 2017年 RocketsChen. All rights reserved. // #import <UIKit/UIKit.h> @interface DCDetailShufflingHeadView ...
173
1,040
// // MLMusic.cpp // // Music logic for MusicLines // // Copyright (c) 1998-1999 Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- #include <windows.h> #include "Debug.h" #include <objbase.h> #include <dmusici.h> #include "MLMusic.h" #include "D...
5,228
329
<filename>Mail/NSColor+DMUIColors.h // // NSColor+DMUIColors.h // DotMail // // Created by <NAME> on 9/8/12. // Copyright (c) 2012 CodaFi Inc. All rights reserved. // @interface NSColor (DMUIColors) - (NSColor *)lighterColor; - (NSColor *)darkerColor; @end
110
713
<reponame>blueblueblue/infinispan package org.infinispan.commons.configuration; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * BuiltBy. An annotation for configuration beans to specify what builder...
195
772
{ "continue": "Pokračovať", "nextLevel": "Gratulujem! Vyriešil si hádanku.", "no": "Nie", "numBlocksNeeded": "Táto úloha môže byť vyriešená s %1 blokmi.", "reinfFeedbackMsg": "Pre návrat k svojej hre môžeš stlačiť tlačidlo \"Skúsiť znova\".", "share": "Zdieľať", "shareGame": "Zdieľaj svoju hru:", "yes":...
181
2,151
<gh_stars>1000+ // // Copyright 2017 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // ProgramPipelineNULL.h: // Defines the class interface for ProgramPipelineNULL, implementing ProgramPipelineImpl. // #ifnd...
264
488
<gh_stars>100-1000 #ifndef ASTPROCESSING_TOPDOWNBOTTOMUP_IMPL_H #define ASTPROCESSING_TOPDOWNBOTTOMUP_IMPL_H namespace AstProcessing { template< typename Evaluator, typename InheritedAttribute, typename SynthesizedAttribute > SynthesizedAttribute TopDownBottomUp<Evaluator, InheritedAtt...
1,580
384
/* * Copyright 2002-2007 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 * * Unless required by ap...
877
374
# -*- coding: utf-8 -*- import pytest import pygame from pibooth.view.window import PiWindow WIN = PiWindow("Test", debug=True) def loop(func, *args, **kwargs): fps = 40 clock = pygame.time.Clock() while True: for event in pygame.event.get(): if event.type == pygame.QUIT: ...
740
412
<reponame>mauguignard/cbmc<filename>jbmc/regression/jbmc/NondetCharSequence/NondetCharSequence.java import org.cprover.CProver; class NondetCharSequence { static void main() { CharSequence x = CProver.nondetWithNull(); assert x == null || x instanceof CharSequence; } }
116
15,337
<reponame>elwoodxblues/saleor # Generated by Django 2.1.3 on 2018-12-06 06:31 from django.db import migrations class Migration(migrations.Migration): dependencies = [("payment", "0003_rename_payment_method_to_payment")] operations = [ migrations.AlterModelOptions(name="payment", options={"ordering"...
124
1,162
#include "environment.h" #include "executor.h" #include "node_wrapper.h" #include "scheduler.h" #include <memory> #include <v8.h> #include <utility> using namespace v8; namespace ivm { namespace { thread_pool_t thread_pool{std::thread::hardware_concurrency() + 1}; } /* * Scheduler implementation */ void Scheduler:...
2,100
344
<gh_stars>100-1000 #ifndef AUTOFDO_LLVM_PROPELLER_FORMATTING_H_ #define AUTOFDO_LLVM_PROPELLER_FORMATTING_H_ #include <cstdint> // for uint64_t #include <ostream> namespace devtools_crosstool_autofdo { class CFGEdge; struct SymbolEntry; struct CommaStyleNumberFormatter { explicit CommaStyleNumberFormatter(uint64...
449
335
<filename>S/South_noun.json { "word": "South", "definitions": [ "The direction towards the point of the horizon 90\u00b0 clockwise from east, or the point on the horizon itself.", "The compass point corresponding to south.", "The southern part of the world or of a specified country, regi...
201
1,056
<filename>ide/mercurial/src/org/netbeans/modules/mercurial/ui/menu/BranchMenu.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 licenses...
3,768
327
{ "main": "react_jqxtreegrid.umd.js", "module": "react_jqxtreegrid.esm.js", "typings": "react_jqxtreegrid.d.ts", "name": "jqwidgets-react/jqxtreegrid", "sideEffects": false }
96
439
<reponame>tsnobip/reason-native /** * 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. */ #define CAML_NAME_SPACE #include <stdio.h> #include <caml/mlvalues.h> #include <caml/memory.h> #i...
391
389
// // VSTagDetailScrollView.h // Vesper // // Created by <NAME> on 4/10/13. // Copyright (c) 2013 Q Branch LLC. All rights reserved. // #import <UIKit/UIKit.h> extern NSString *VSEditingTagViewOriginXDidChangeNotification; extern NSString *VSEditingTagViewOriginXKey; extern NSString *VSNewTagShouldStartNotificat...
322
317
/** * Copyright (c) 2014 Oracle and/or its affiliates. All rights reserved. * * You may not modify, use, reproduce, or distribute this software except in * compliance with the terms of the License at: * https://github.com/javaee/tutorial-examples/LICENSE.txt */ package javaeetutorial.customer.resource; ...
282
2,728
<filename>sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2018_07_01_preview/models/_models.py # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in...
4,198
892
<reponame>westonsteimel/advisory-database-github<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-9pwr-2mv9-jgq5", "modified": "2022-05-02T06:18:50Z", "published": "2022-05-02T06:18:50Z", "aliases": [ "CVE-2010-1077" ], "details": "Directory traversal vulnerability in vbseo.php in Crawlabili...
555
682
/**CFile**************************************************************** FileName [covMinMan.c] SystemName [ABC: Logic synthesis and verification system.] PackageName [Mapping into network of SOPs/ESOPs.] Synopsis [SOP manipulation.] Author [<NAME>] Affiliation [UC Berkeley] Date ...
1,266
327
#ifdef CONFIG_H #include CONFIG_H #endif #ifdef ASYNC_C #pragma once #define ATOMIC_C #define CHANNEL_C #define CONDV_C #define LFQ_C #define MUTEX_C #define REALLOC_C #define SEMAPHORE_C #define SLEEP_C #define SYSTEM_C #define THREAD_C #define TLS_C #endif #include "../detect/detect.c" #include "../memory/memory.c"...
251
335
<filename>V/Valid_adjective.json { "word": "Valid", "definitions": [ "(of an argument or point) having a sound basis in logic or fact; reasonable or cogent.", "Legally binding due to having been executed in compliance with the law.", "Legally or officially acceptable." ], "parts-...
123
1,023
#include "./EmoticonsUnicodeToSoftbank.h" #include "../Platforms/Win32/GUI/SmileyList.h" bool isSmiley(int character) { return characterToResource.find(character) != characterToResource.end(); } int getSmiley(int character) { if (isSmiley(character)) { return character; } auto it = emoticonsUnicodeToSoftbank....
180
634
<filename>zentral/core/stores/backends/splunk.py from datetime import datetime import json import logging import random import time from urllib.parse import urlencode, urljoin from django.utils.functional import cached_property from django.utils.text import slugify import requests from zentral.core.stores.backends.base...
3,296
711
package com.java110.intf.goods; import com.java110.config.feign.FeignConfiguration; import com.java110.dto.groupBuyProductSpec.GroupBuyProductSpecDto; import com.java110.po.groupBuyProductSpec.GroupBuyProductSpecPo; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation....
830
636
package cn.org.atool.fluent.mybatis.test1.basedao; import cn.org.atool.fluent.mybatis.customize.StudentExtDao; import cn.org.atool.fluent.mybatis.generator.ATM; import cn.org.atool.fluent.mybatis.generator.shared2.entity.StudentEntity; import cn.org.atool.fluent.mybatis.test1.BaseTest; import org.junit.jupiter.api.Tes...
1,045
9,402
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*===================================================================== ** ** Source: test2.c ** ** Purpose: Tests that a child thread in the middle of a SleepEx call will be ** ...
2,197
34,359
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. #include "pch.h" #include "KeyChordListener.h" #include "KeyChordListener.g.cpp" #include "LibraryResources.h" using namespace winrt::Windows::UI::Core; using namespace winrt::Windows::UI::Xaml; using namespace winrt::Windows::UI::Xaml::Contro...
2,194
384
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 2016,2017,2018,2019,2021, by the GROMACS development team, led by * <NAME>, <NAME>, <NAME>, and <NAME>, * and including many others, as listed in the AUTHORS file in the * top-level source directory and at http://www.gromacs.org...
2,464
4,050
<gh_stars>1000+ /* * Copyright 2020 LinkedIn Corp. * * 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 la...
1,787
190,993
"""Definition for tflite_model_test rule that runs a TF Lite model accuracy test. This rule generates targets to run a diff-based model accuracy test against synthetic, random inputs. Future work will allow injection of "golden" inputs, as well as more robust execution on mobile devices. Example usage: tflite_model_...
2,395
1,633
package com.fernandocejas.frodo.internal; import android.util.Log; /** * Wrapper around {@link android.util.Log} */ class DebugLog { DebugLog() { } /** * Send a debug log message * * @param tag Source of a log message. It usually identifies the class or activity where the log * call occurs. *...
152
517
<reponame>kant/gratipay.com<gh_stars>100-1000 from __future__ import print_function, unicode_literals import json import itertools from gratipay.models.participant import Participant from gratipay.testing import Harness class Tests(Harness): def setUp(self): self._old = Participant._generate_api_key ...
913
2,151
// 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. // // Holds helpers for gathering UMA stats about downloads. #ifndef COMPONENTS_DOWNLOAD_PUBLIC_COMMON_DOWNLOAD_STATS_H_ #define COMPONENTS_DOWNLOAD_PUBLI...
4,274
1,172
// Copyright (C) 2009 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 t...
2,582
12,824
<filename>tests/disabled/reflect/run/t4788/CAnnotation.java import java.lang.annotation.Retention; import static java.lang.annotation.RetentionPolicy.CLASS; @Retention(value=CLASS) @interface CAnnotation {}
66
467
<gh_stars>100-1000 package com.yoyiyi.soleil.utils; import android.app.Activity; import android.app.PendingIntent; import android.content.BroadcastReceiver; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.S...
8,232
1,118
{"cym":{"common":"Gweriniaeth Canolbarth Affrica","official":"Central African Republic"},"deu":{"common":"Zentralafrikanische Republik","official":"Zentralafrikanische Republik"},"fin":{"common":"Keski-Afrikan tasavalta","official":"Keski-Afrikan tasavalta"},"fra":{"common":"République centrafricaine","official":"Répub...
375
460
///////////////////////////////////////////////////////////////////////////// // Name: wx/utils.h // Purpose: Miscellaneous utilities // Author: <NAME> // Modified by: // Created: 29/01/98 // RCS-ID: $Id: utils.h 53135 2008-04-12 02:31:04Z VZ $ // Copyright: (c) 1998 <NAME> // Licence...
10,234
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...
642
2,453
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12). // // Copyright (C) 1997-2019 <NAME>. // #import <IDEKit/XCLogAnalyzerStepAdapter.h> @interface XCLogAnalyzerEventStepAdapter : XCLogAnalyzerStepAdapter { } - (id)imageForDataNode:(id)arg1; @end
113
977
<reponame>aleyooop/realm-core #include "mock_metrics.hpp" #include <algorithm> #include <string.h> namespace realm { namespace test_util { void MockMetrics::increment(const char* key, int value) { if (m_logger) m_logger->info("Metrics: Increment(%1, %2)", key, value); util::LockGuard lock{m_mutex}; ...
1,886
354
<reponame>k-karakatsanis/BootStomp from re import * from idc import * from idaapi import * from idautils import * import analyze_ast import helper class TaintSource: log_message_xref_addr = 0 log_message_addr = 0 method_name = '' method_addr = 0 caller_name = '' caller_addr = '' taint_addr...
5,311
60,067
"""Tool to fix the nvcc's dependecy file output Usage: python nvcc_fix_deps.py nvcc [nvcc args]... This wraps nvcc to ensure that the dependency file created by nvcc with the -MD flag always uses absolute paths. nvcc sometimes outputs relative paths, which ninja interprets as an unresolved dependency, so it triggers ...
1,515
356
<filename>mind-map/idea-mindmap/src/com/igormaznitsa/ideamindmap/lang/tokens/MMExtraData.java package com.igormaznitsa.ideamindmap.lang.tokens; public class MMExtraData extends MMElementType { public MMExtraData() { super("EXTRA_DATA"); } @SuppressWarnings( {"HardCodedStringLiteral"}) public String toStri...
147
5,169
{ "name": "SVLatexView", "version": "1.1.1", "summary": "Math equation rendering on iOS", "description": "Math equation rendering on iOS using MathJax and WebKit", "homepage": "https://github.com/Mazorati/SVLatexView", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "Mazorati":...
249
432
/* * Copyright (C) 2020 ActiveJ LLC. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
644
72,551
import hashlib import subprocess def call_fingerprint(args, echo_stderr=False, echo_stdout=False): p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE) (stdoutdata, stderrdata) = p.communicate() exit_code = p.wait() h = hashlib.sha256() if exit_code == 0: h.update("...
216
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Engraving", "definitions": [ "A print made from an engraved plate, block, or other surface.", "The process or art of engraving a design on a hard surface, especially to make a print." ], "parts-of-speech": "Noun" }
114
378
<reponame>bkuk69/Azure-TDSP-Utilities #%%add_conf_code_to_report import collections import types try: unicode = unicode except NameError: # 'unicode' is undefined, must be Python 3 str = str unicode = str bytes = bytes basestring = (str,bytes) else: # 'unicode' exists, must be Python 2 ...
879
1,681
package com.easytoolsoft.easyreport.mybatis.service; import java.util.List; import com.easytoolsoft.easyreport.mybatis.data.InsertRepository; import org.springframework.beans.factory.annotation.Autowired; /** * @param <Dao> * @param <Po> * @author <NAME> * @date 2017-03-25 */ public abstract class AbstractAddSe...
297
515
<filename>integration_tests/test_complex_line_type_2.py # Copyright 2018 <NAME> # License: MIT License from __future__ import unicode_literals import pytest import os import ezdxf def test_complex_line_type(tmpdir): dwg = ezdxf.new("R2018") # DXF R13 or later is required dwg.linetypes.new( "GASLEITUN...
841
530
package org.carlspring.strongbox.util; import javax.annotation.Nonnull; import java.util.Arrays; import java.util.HashSet; import java.util.ServiceLoader; import java.util.Set; /** * @author <NAME> */ public final class ServiceLoaderUtils { @Nonnull public static Set<Class<?>> load(Class<?>... classes) ...
372
14,668
<reponame>zealoussnow/chromium // Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ash/login/test/network_portal_detector_mixin.h" #include "base/run_loop.h" #include "chrome/brows...
903
726
import os from keras.models import Model from keras.layers import Input, Dense, Dropout from keras.callbacks import ModelCheckpoint, TensorBoard from keras.optimizers import Adam from keras import backend as K from utils.data_loader import features_generator ''' Below is a modification to the TensorBoard callback to...
1,292
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 "chromeos/services/multidevice_setup/host_verifier.h" #include "base/logging.h" #include "chromeos/components/multidevice/logging/logging.h" na...
389
546
"""UniFi Protect Platform.""" from __future__ import annotations import asyncio from datetime import timedelta import functools import logging from aiohttp import CookieJar from aiohttp.client_exceptions import ServerDisconnectedError from homeassistant.config_entries import ConfigEntry, ConfigEntryState from homeass...
4,492
1,068
<reponame>adizero/KiTTY /* * sftpcommon.c: SFTP code shared between client and server. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <limits.h> #include "misc.h" #include "sftp.h" static void sftp_pkt_BinarySink_write( BinarySink *bs, const void *data, size_t length...
1,656
385
#!/usr/bin/env python3 # 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. import torch import torch.nn as nn from pycls.core.config import cfg def Preprocess(x): if cfg.TASK == 'jig': ...
2,212
1,443
<gh_stars>1000+ { "copyright": "<NAME>", "url": "https://www.orestiskon.com", "email": "<EMAIL>", "format": "text", "license": "mit", "theme": "default", "gravatar": false }
79
16,461
<reponame>ahmadtech199/expo<filename>ios/versioned-react-native/ABI41_0_0/Expo/EXImagePicker/ABI41_0_0EXImagePicker/Permissions/ABI41_0_0EXImagePickerCameraPermissionRequester.h // Copyright 2016-present 650 Industries. All rights reserved. #import <ABI41_0_0UMPermissionsInterface/ABI41_0_0UMPermissionsInterface.h> @...
159
316
#include "nlm.h" #include "maths.h" void AverageFilter(const Color* in, Color* out, int width, int height, int radius) { for (int y=0; y < height; ++y) { for (int x=0; x < width; ++x) { int xlower = std::max(0, x-radius); int xupper = std::min(width-1, x+radius); int ylower = std::max(0, y-radius); ...
726
190,993
<reponame>abhaikollara/tensorflow /* Copyright 2017 The TensorFlow 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 Unle...
997
4,268
<reponame>Daisy000888/Open-Vehicle-Monitoring-System-3 #if !defined(DUK_CBOR_H_INCLUDED) #define DUK_CBOR_H_INCLUDED #include "duktape.h" #if defined(__cplusplus) extern "C" { #endif /* No flags at present. */ extern void duk_cbor_init(duk_context *ctx, duk_uint_t flags); extern void duk_cbor_encode(duk_context *ct...
247
2,728
{ "pages":[ "pages/index/index", "pages/course/course", "pages/mystudy/mystudy", "pages/accounts/accounts", "pages/other/other", "pages/logs/logs" ], "window":{ "backgroundColor":"#31a030", "backgroundTextStyle":"light", "navigationBarBackgroundColor": "#fff", "navigationBa...
650
348
{"nom":"Arboussols","circ":"2ème circonscription","dpt":"Pyrénées-Orientales","inscrits":104,"abs":43,"votants":61,"blancs":8,"nuls":3,"exp":50,"res":[{"nuance":"MDM","nom":"<NAME>","voix":34},{"nuance":"FN","nom":"<NAME>","voix":16}]}
98
363
<filename>src/main/java/com/hantsylabs/restexample/springmvc/DTOUtils.java<gh_stars>100-1000 package com.hantsylabs.restexample.springmvc; import java.util.ArrayList; import java.util.List; import org.modelmapper.ModelMapper; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageImpl...
669
436
<reponame>mariopce/tikxml /* * Copyright (C) 2015 <NAME> * Copyright (C) 2015 Tickaroo, 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/...
449
335
<gh_stars>100-1000 { "word": "Juvenile", "definitions": [ "A young person.", "A person below the age at which ordinary criminal prosecution is possible (18 in most countries)", "An actor playing a juvenile role.", "A young bird or animal." ], "parts-of-speech": "Noun" }
124
528
<reponame>anukaal/opytimizer import numpy as np from opytimizer.optimizers.science import efo from opytimizer.spaces import search np.random.seed(0) def test_efo_params(): params = { 'positive_field': 0.1, 'negative_field': 0.5, 'ps_ratio': 0.1, 'r_ratio': 0.4 } new_efo ...
1,253
322
<reponame>Peach-He/intel-extension-for-pytorch<gh_stars>100-1000 #pragma once #include <ATen/ATen.h> namespace torch_ipex { namespace cpu { template <typename scalar_t, int out_ndims, int interp_size> void cpu_upsample_generic(at::TensorIterator& iter); template <typename scalar_t, typename scale_type> void cpu_ups...
2,551
831
/* * Copyright (C) 2016 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...
358
5,169
{ "name": "JDGridLayout", "version": "0.0.1", "summary": "IOS 网格布局(Grid Layout) 一个方法自动给一组view布局成表格的样式", "description": "IOS中的网格布局,借助这个控件,ios中大部分的网格布局都可以瞬间解决,里面用的是自动布局,之前用的是Masonry写的,后来为了支持第三方,手动改成官方自带的Layout类;", "homepage": "https://github.com/Z-JaDe/JDGridLayout.git", "license": "MIT", "authors": { "...
418