max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
14,793
package me.chanjar.weixin.cp.constant; import lombok.experimental.UtilityClass; /** * <pre> * 企业微信api地址常量类 * Created by BinaryWang on 2019-06-02. * </pre> * * @author <a href="https://github.com/binarywang"><NAME></a> */ public interface WxCpApiPathConsts { String DEFAULT_CP_BASE_URL = "https://qyapi.weix...
3,741
1,374
<reponame>norzak/jsweet<gh_stars>1000+ /* * JSweet transpiler - 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 published by * the Free Software Foundation; either ...
6,477
718
<reponame>plutoyuxie/mmgeneration dataset_type = 'SinGANDataset' data = dict( samples_per_gpu=1, workers_per_gpu=4, drop_last=False, train=dict( type=dataset_type, img_path=None, # need to set min_size=25, max_size=250, scale_factor_init=0.75))
158
415
#ifndef GENRL_H #define GENRL_H const float INFINITY = 1.0e7f; const float eps = 1.0e-6f; const float eps2 = eps*eps; const int CONN_UNKNOWN = -1; #define CHECKZ(x,y) ((fabs(y)>1.0e-8)? (x/y) : 0) inline float SQR(float x) { return x*x; } inline int SQR(int x) { return x*x; } inl...
390
778
package org.aion.zero.impl.blockchain; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.math.BigInteger; import java.util.ArrayList; import java.util.Collections; import j...
4,037
392
from __future__ import division import numpy as np from .base import Estimator class Blocking(Estimator): """ Dictionary-like class containing treatment effect estimates. """ def __init__(self, strata, adj): self._method = 'Blocking' for s in strata: s.est_via_ols(adj) Ns = [s.raw_data['N'] for s i...
643
665
<reponame>opencirclesolutions/isis /* * 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 Licen...
1,046
743
{ "DATA_SOURCE_QUICKCONNECT" : { "NAME" : "QuickConnect" }, "QUICKCONNECT" : { "ACTION_CONNECT" : "Verbinden", "ERROR_INVALID_URI" : "Ungültige URI angegeben", "ERROR_NO_HOST" : "Keinen Host angegeben", "ERROR_NO_PROTOCOL" : "Kein ...
271
892
{ "schema_version": "1.2.0", "id": "GHSA-7x55-jrxh-rmp2", "modified": "2022-05-01T01:55:41Z", "published": "2022-05-01T01:55:40Z", "aliases": [ "CVE-2005-1125" ], "details": "Race condition in libsafe 2.0.16 and earlier, when running in multi-threaded applications, allows attackers to bypass libsafe p...
435
3,008
/* * Copyright 2019 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 applica...
3,113
826
<reponame>julescmay/LuxCore # -*- coding: utf-8 -*- ################################################################################ # Copyright 1998-2018 by authors (see AUTHORS.txt) # # This file is part of LuxCoreRender. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this fil...
427
607
<filename>theming/src/main/java/org/pushingpixels/radiance/theming/api/RadianceThemingCortex.java<gh_stars>100-1000 /* * Copyright (c) 2005-2021 <NAME>. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions ar...
52,580
463
<filename>main/src/mockit/asm/classes/InterfaceWriter.java package mockit.asm.classes; import javax.annotation.*; import mockit.asm.constantPool.*; import mockit.asm.util.*; /** * Writes out the interfaces implemented or extended by the class or interface being written. */ final class InterfaceWriter extends Attri...
365
5,169
<reponame>Gantios/Specs { "name": "AURASlideshow", "version": "1.0.0", "summary": "Simple slideshow for in-app tutorials", "description": "AURASlideshow provides an interface to display a sequence of images and associated text. Ideal for a tutorial inside an app. Suports swiping and Voice Over.", "homepage": ...
315
1,817
<reponame>skylar-stark/springdoc-openapi<filename>springdoc-openapi-javadoc/src/test/java/test/org/springdoc/api/app112/sample/PersonController2.java package test.org.springdoc.api.app112.sample; import java.util.ArrayList; import java.util.List; import java.util.Random; import javax.validation.Valid; import javax.va...
689
998
// Copyright 2021 Phyronnaz #pragma once #include "VoxelTools/Impl/VoxelSphereToolsImpl.h" #include "VoxelTools/Impl/VoxelToolsBaseImpl.inl" #include "VoxelUtilities/VoxelSDFUtilities.h" #include "VoxelInterpolator.h" #define VOXEL_SPHERE_TOOL_IMPL() const FVoxelIntBox Bounds = FVoxelSphereToolsImpl::GetBou...
10,707
333
package com.alipay.api.domain; 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, 2021-08-09 10:17:57 */ public class AlipayEbppCommu...
493
921
<reponame>0to1/rmf_traffic /* * Software License Agreement (BSD License) * * Copyright (c) 2011-2014, <NAME>, Inc. * Copyright (c) 2014-2016, Open Source Robotics Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided ...
3,890
336
// SPDX-FileCopyrightText: 2014 MicroPython & CircuitPython contributors (https://github.com/adafruit/circuitpython/graphs/contributors) // SPDX-FileCopyrightText: Copyright (c) 2017 <NAME> // // SPDX-License-Identifier: MIT #ifndef MICROPY_INCLUDED_EXTMOD_VFS_H #define MICROPY_INCLUDED_EXTMOD_VFS_H #include "py/lex...
1,537
628
from addons.base.serializer import StorageAddonSerializer from addons.owncloud.settings import DEFAULT_HOSTS, USE_SSL from website.util import web_url_for from owncloud import Client as OwnCloudClient class OwnCloudSerializer(StorageAddonSerializer): addon_short_name = 'owncloud' def serialized_folder(self,...
994
328
/* Copyright (C) 2019 by <NAME> mailto:<EMAIL> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, mer...
660
348
<filename>docs/data/leg-t2/089/08903460.json {"nom":"Villeneuve-la-Guyard","circ":"3ème circonscription","dpt":"Yonne","inscrits":1997,"abs":1102,"votants":895,"blancs":53,"nuls":14,"exp":828,"res":[{"nuance":"REM","nom":"<NAME>","voix":435},{"nuance":"FN","nom":"<NAME>","voix":393}]}
117
816
<reponame>apurvak/tapas # coding=utf-8 # Copyright 2019 The Google AI Language Team 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...
4,212
4,071
<reponame>Ru-Xiang/x-deeplearning /* Copyright (C) 2016-2018 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 req...
1,788
1,799
// Copyright (c) 2019 PaddlePaddle 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...
3,901
310
<filename>gear/hardware/a/area-51.json<gh_stars>100-1000 { "name": "Area-51", "description": "A souped-up gaming PC computer.", "url": "https://www.pcmag.com/article2/0,2817,2361731,00.asp" }
84
3,765
/* * BSD-style license; for more info see http://pmd.sourceforge.net/license.html */ package net.sourceforge.pmd.lang.scala.ast; /** * @author <NAME> */ public abstract class BaseScalaTest { protected final ScalaParsingHelper scala = ScalaParsingHelper.DEFAULT.withResourceContext(getClass()); }
101
416
<filename>Pods/UIKit.framework/Headers/UIGuidedAccessRestrictions.h // // UIGuidedAccessRestrictions.h // UIKit // // Copyright (c) 2012-2015 Apple Inc. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKitDefines.h> NS_ASSUME_NONNULL_BEGIN /* UIGuidedAccessRestrictions Guided Access ...
698
1,010
/* * The Shadow Simulator * See LICENSE for licensing information */ #include "main/host/network_queuing_disciplines.h" #include <glib.h> #include <stdbool.h> #include "main/host/descriptor/compat_socket.h" #include "main/routing/packet.h" #include "main/utility/priority_queue.h" #include "main/utility/utility.h"...
1,817
6,278
<filename>pythonforandroid/recipes/Pillow/__init__.py from os.path import join from pythonforandroid.recipe import CompiledComponentsPythonRecipe class PillowRecipe(CompiledComponentsPythonRecipe): """ A recipe for Pillow (previously known as Pil). This recipe allow us to build the Pillow recipe with su...
1,659
348
{"nom":"Mézidon-Vallée-d'Auge","circ":"3ème circonscription","dpt":"Calvados","inscrits":7026,"abs":3599,"votants":3427,"blancs":53,"nuls":17,"exp":3357,"res":[{"nuance":"MDM","nom":"Mme <NAME>","voix":813},{"nuance":"FN","nom":"Mme <NAME>","voix":706},{"nuance":"SOC","nom":"Mme <NAME>","voix":659},{"nuance":"LR","nom"...
308
1,044
# -*- coding: utf-8 -*- # pylint: disable=wildcard-import from __future__ import absolute_import from . import nn from . import optim from . import utils from . import data
59
1,008
/* * Copyright (C) 2019 The Turms Project * https://github.com/turms-im/turms * * 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 * *...
432
13,648
# test implicit scoping rules # implicit nonlocal, with variable defined after closure def f(): def g(): return x # implicit nonlocal x = 3 # variable defined after function that closes over it return g print(f()()) # implicit nonlocal at inner level, with variable defined after closure def f(): ...
254
3,659
<filename>components/locales/vi-VN.json { "locale": "vi-VN", "Pagination": { "items_per_page": "/ trang", "jump_to": "Đến", "jump_to_confirm": "xác nhận", "page": "", "prev_page": "Trang Trước", "next_page": "Trang Kế", "prev_5": "Về 5 Trang Trước", "next_5": "Đến 5 Trang Kế", "p...
2,142
475
<gh_stars>100-1000 package com.softwaremill.session.javadsl; import akka.http.javadsl.model.HttpHeader; import akka.http.javadsl.model.HttpRequest; import akka.http.javadsl.model.StatusCodes; import akka.http.javadsl.model.headers.Cookie; import akka.http.javadsl.model.headers.HttpCookie; import akka.http.javadsl.mode...
7,208
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. #ifndef CHROME_BROWSER_NET_NQE_UI_NETWORK_QUALITY_ESTIMATOR_SERVICE_TEST_UTIL_H_ #define CHROME_BROWSER_NET_NQE_UI_NETWORK_QUALITY_ESTIMATOR_SERVICE_TEST_...
351
416
<reponame>ljz663/tencentcloud-sdk-java<gh_stars>100-1000 /* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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 Licens...
4,236
303
<gh_stars>100-1000 /* Copyright (C) 2005-2011 <NAME> */ package com.lightcrafts.ui.rotate; import java.awt.geom.Line2D; import java.awt.geom.Point2D; import java.awt.geom.Rectangle2D; // A model for a Euclidean line (as opposed to a line segment). class InfiniteLine { private Point2D p; private double angl...
886
360
import os import numpy as np from igibson import object_states from igibson.objects.articulated_object import URDFObject from igibson.scenes.empty_scene import EmptyScene from igibson.simulator import Simulator from igibson.utils.assets_utils import get_ig_model_path def main(): s = Simulator(mode="iggui", imag...
1,086
451
/*Header-MicMac-eLiSe-25/06/2007 MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation eLiSe : ELements of an Image Software Environnement www.micmac.ign.fr Copyright : Institut Geographique National Author : <NAME> Contributors : <NAME>, <NAME>. [1] <NAME>, <NAM...
2,953
1,405
<gh_stars>1000+ package com.lenovo.safecenter.MainTab; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import com.lenovo.safecenter.R; import com.lenovo.safecenter.net.support.TrafficSt...
1,376
1,615
<gh_stars>1000+ // // MLNUIKeyframeAnimation.h // MLNUI // // Created by MoMo on 2019/9/6. // #import <QuartzCore/QuartzCore.h> #import "MLNUIValueCalculatorProtocol.h" #import "MLNUIInterpolatorProtocol.h" NS_ASSUME_NONNULL_BEGIN @interface MLNUIKeyframeAnimation : CAKeyframeAnimation @property (nonatomic, stro...
316
5,422
<filename>src/core/grabber/include/grabber/grabber_state_json_writer.hpp #pragma once // `grabber_state_json_writer` can be used safely in a multi-threaded environment. #include "constants.hpp" #include "state_json_writer.hpp" #include <optional> namespace krbn { namespace grabber { class grabber_state_json_writer f...
374
317
#pragma once #include <SDL.h> #include "DataTypes.h" #include "Angle.h" class Map; class Player; class ViewRenderer { public: ViewRenderer(SDL_Renderer *pRenderer); ~ViewRenderer(); void Init(Map *pMap, Player *pPlayer); void Render(bool IsAutomap); void AddWallInFOV(Seg seg, Angle V1Angle, Ang...
363
190,993
/* Copyright 2021 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 Unless required by applicable law or a...
2,588
3,921
/* * Created by LuaView. * Copyright (c) 2017, Alibaba Group. All rights reserved. * * This source code is licensed under the MIT. * For the full copyright and license information,please view the LICENSE file in the root directory of this source tree. */ package com.taobao.luaview.vm.extend.luadc; import org.lu...
419
1,144
/* SPDX-License-Identifier: GPL-2.0+ */ /* * (C) Copyright 2009 Samsung Electronics * <NAME> <<EMAIL>> */ #ifndef __ASM_ARCH_GPIO_H #define __ASM_ARCH_GPIO_H #ifndef __ASSEMBLY__ struct s5p_gpio_bank { unsigned int con; unsigned int dat; unsigned int pull; unsigned int drv; unsigned int pdn_con; unsigned int...
11,078
348
/* * Copyright 2010-2021 Australian Signals Directorate * * 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...
4,746
1,379
# Copyright (c) 2022 PaddlePaddle 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 appli...
3,007
344
<reponame>SPMoo66/cfru #pragma once #include "global.h" #include "sprite.h" int __attribute__((long_call)) CountTrailingZeroBits(u32 value); /* extern const u8 gMiscBlank_Gfx[]; // unused in Emerald extern const u32 gBitTable[]; u8 __attribute__((long_call)) CreateInvisibleSpriteWithCallback(void (*)(struct Sprite...
254
1,550
#@+leo-ver=5-thin #@+node:ekr.20170428084207.353: * @file ../external/npyscreen/npysNPSFilteredData.py #@+others #@+node:ekr.20170428084207.354: ** class NPSFilteredDataBase class NPSFilteredDataBase: #@+others #@+node:ekr.20170428084207.355: *3* __init__ def __init__(self, values=None): self._value...
823
636
package cn.org.atool.fluent.mybatis.generator.shared2.dao.intf; import cn.org.atool.fluent.mybatis.generator.shared2.entity.StudentEntity; import cn.org.atool.fluent.mybatis.generator.shared2.wrapper.StudentQuery; import cn.org.atool.fluent.mybatis.base.IBaseDao; import java.util.List; import java.util.Optional; /**...
451
412
/* Copyright 2015 Google Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
1,729
511
<gh_stars>100-1000 /**************************************************************************** * * 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 cop...
7,911
1,391
#include <stdio.h> #include <ft2build.h> #include FT_FREETYPE_H // renamed record memebers (delphi keyword collision) #define val value #define ptr pointer #define lib library #define typ type // this typedef seems to be missing in C header typedef struct FT_MemoryRec_ FT_MemoryRec; #include "out/c_check.h"
105
1,020
package org.robobinding.codegen.apt.type; import java.util.List; import javax.lang.model.element.TypeElement; import javax.lang.model.type.DeclaredType; import javax.lang.model.type.TypeMirror; import javax.lang.model.util.Elements; import javax.lang.model.util.Types; public class WrappedDeclaredType extends Wrapped...
534
903
/* * 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://aws.amazon.com/apache2.0 * * or in the "license" ...
3,342
1,443
<reponame>cssence/mit-license { "copyright": "<NAME>, http://www.local-pc-guy.com", "url": "http://www.local-pc-guy.com", "theme": "flesch" }
65
348
<reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000 {"nom":"Neuvic","circ":"1ère circonscription","dpt":"Dordogne","inscrits":2369,"abs":1184,"votants":1185,"blancs":91,"nuls":51,"exp":1043,"res":[{"nuance":"REM","nom":"<NAME>","voix":555},{"nuance":"FI","nom":"<NAME>","voix":488}]}
120
386
<reponame>SynapticAP/ios-branch-deep-linking-attribution<filename>Branch-SDK/BNCURLFilter.h /** @file BNCURLFilter.h @package Branch-SDK @brief Manages a list of sensitive URLs such as login data that should not be handled by Branch. @author <NAME> @date February 14, 2018 @...
445
726
from . import serialization
6
5,168
/** * \file src/core/include/megbrain/version_symbol.h * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed ...
384
626
<reponame>satyamedh/craftassist<filename>python/craftassist/ttad/ttad_model/make_dataset.py """ Copyright (c) Facebook, Inc. and its affiliates. """ import json import sys import spacy from spacy.lang.en import English tokenizer = English().Defaults.create_tokenizer() def tokenize(st): return " ".join([str(x) f...
552
1,847
// Copyright (c) 2021 The Orbit Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CAPTURE_FILE_CAPTURE_FILE_SECTION_H_ #define CAPTURE_FILE_CAPTURE_FILE_SECTION_H_ #include <cstdint> namespace orbit_capture_file { constexpr ...
189
349
<gh_stars>100-1000 import ast import random import time from xml.dom import minidom from lib.functions import fastColorWipe, find_between, clamp from neopixel import Color class LedSettings: def __init__(self, usersettings): self.usersettings = usersettings self.red = int(usersettings.get_settin...
13,260
346
<gh_stars>100-1000 // -*-coding: utf-8-unix;-*- #include "gtest/gtest.h" #include "Logger.h" TEST(Logger, sourcePathLength) { #if defined(_WIN32) && !defined(__MINGW32__) static_assert(std::string_view(__FILENAME__) == "sgp\\Logger_unittest.cc"); EXPECT_EQ(GetSourcePathSize("C:\\Jagged Alliance 2\\src\\sgp\\Logg...
368
323
#pragma once #include "core/string_builder.h" #include "core/ustring.h" #include "core/variant.h" namespace GDScriptTranspilerUtils { String snake_to_pascal_case(const String &p_identifier, bool p_input_is_upper = false); String snake_to_camel_case(const String &p_identifier, bool p_input_is_upper = false); String f...
397
977
#include "CylinderModel.hpp" #include "Maths/Maths.hpp" #include "Resources/Resources.hpp" #include "Models/Vertex3d.hpp" namespace acid { std::shared_ptr<CylinderModel> CylinderModel::Create(const Node &node) { if (auto resource = Resources::Get()->Find<CylinderModel>(node)) return resource; auto result = std::...
1,173
2,643
// // Created by ein-krebs on 8/12/21. // #include <prom_metrics.h> #include <prom.h> #include <assert.h> #include <odyssey.h> #include <stdio.h> int od_prom_metrics_init(struct od_prom_metrics *self) { if (self == NULL) return 0; self->stat_metrics = prom_collector_registry_new("stat_metrics"); prom_collector_t...
4,223
345
<filename>test/programytest/services/testcase.py<gh_stars>100-1000 import unittest import yaml from programy.services.config import ServiceConfiguration class ServiceTestCase(unittest.TestCase): def _load_conf_file(self, client_context, conf_file): with open(conf_file, 'r+', encoding="utf-8") as yml_data...
660
937
package com.oath.cyclops.internal.stream.spliterators; import com.oath.cyclops.types.persistent.PersistentCollection; import java.util.Collection; import java.util.Spliterator; import java.util.Spliterators; import java.util.function.*; /** * Created by johnmcclean on 22/12/2016. */ public class GroupedWhileSplite...
1,346
7,137
package io.onedev.server.util; import org.dom4j.io.SAXReader; import org.xml.sax.SAXException; public class XmlUtils { // Prevent XXE attack as the xml might be provided by malicious users public static void disallowDocTypeDecl(SAXReader reader) { try { reader.setFeature("http://apache.org/xml/features/disal...
193
2,881
package com.salesmanager.shop.store.controller.optin; import com.salesmanager.core.model.merchant.MerchantStore; import com.salesmanager.core.model.reference.language.Language; import com.salesmanager.shop.model.system.PersistableOptin; import com.salesmanager.shop.model.system.ReadableOptin; public interface ...
143
629
<reponame>unghee/TorchCraftAI /* * Copyright (c) 2017-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * Legacy defogger featurizer. */ #pragma once #include "cherrypi.h" #include <array> #include <torch/torc...
643
1,549
import logging import os import pickle import re import shutil import tarfile import tempfile try: from urllib.parse import urlparse except ImportError: from urlparse import urlparse import lore from lore.env import require, configparser from lore.util import timer from lore.io.connection import Connection fro...
3,334
889
<filename>hypergan/samplers/aligned_sampler.py from hypergan.samplers.base_sampler import BaseSampler from hypergan.gan_component import ValidationException, GANComponent import numpy as np import time import torch class AlignedSampler(BaseSampler): def __init__(self, gan, samples_per_row=8): BaseSampler....
530
412
package com.simpligility.android.morseflash; import android.app.KeyguardManager; import android.content.Context; import android.os.PowerManager; import android.support.test.runner.AndroidJUnitRunner; import static android.content.Context.KEYGUARD_SERVICE; import static android.content.Context.POWER_SERVICE; import st...
724
770
<reponame>maxchernet/TheiaSfM<filename>src/theia/math/polynomial_test.cc // Copyright (C) 2013 The Regents of the University of California (Regents). // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are...
4,077
336
#include "MenuMarker.h" #include <MainWnd.h> CWndMenuCursor::CWndMenuCursor() { } /*virtual*/ void CWndMenuCursor::Create(CWnd *pParent, int dwFlags) { CWnd::Create("CWndMenuCursor", dwFlags | CWnd::WsListener, CRect(320-CWndMenuItem::MarginLeft, 20, 400, 240), pParent); m_itmX1.Create( (char*)"X1", &Settings.Mar...
1,916
2,151
<gh_stars>1000+ // Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/attestation/attestation_policy_observer.h" #include <string> #include <utility> #include "base/bin...
5,269
1,093
<filename>kayenta-core/src/test/groovy/com/netflix/kayenta/metrics/SynchronousQueryProcessorTest.java /* * Copyright 2019 Playtika * * 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 * * ...
3,940
789
/* * Copyright (c) 2015. <NAME>, <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
1,291
831
<reponame>phpc0de/idea-android package p1.p2; public class MyCode { public void test() { int x = R.drawable.icon; } }
63
549
<gh_stars>100-1000 import os import sys import collections import random import numpy as np import skimage import cv2 import torch import torch.optim as optim from torchvision import transforms from retinanet import model from retinanet.dataloader import CocoDataset, CSVDataset, collater, Resizer, AspectRatioBasedS...
3,720
45,293
<reponame>AndrewReitz/kotlin /* * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.scripting.definitions; import com.intellij.openapi....
248
696
/* * Copyright (C) 2016 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.strata.product.dsf; import java.io.Serializable; import java.time.LocalDate; import java.util.Map; import java.util.NoSuchElementException; import org.joda.bea...
7,532
1,398
<reponame>Mu-L/confluo package confluo.rpc; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.charset.StandardCharsets; /** * Contains data stored as part of a record */ public class Field { private String fieldName; private DataType dataType; private ByteBuffer data; private int field...
1,015
1,327
/******************************************************************************* * Copyright 2019-2021 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.apa...
3,364
9,734
<reponame>timkpaine/arrow // 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 (...
7,518
1,162
<reponame>civitaspo/digdag package io.digdag.core.database.migrate; import org.skife.jdbi.v2.Handle; public class Migration_20160818220026_QueueUniqueName implements Migration { @Override public void migrate(Handle handle, MigrationContext context) { handle.update("drop index queued_tasks_...
761
356
{"currentTime":1343587067923,"text":"OK","data":{"references":{"stops":[],"situations":[],"trips":[],"routes":[],"agencies":[]},"entry":{"levels":"","length":230,"points":"ky`bHvwajVtDJ|DLfDH|@BnALVHn@HhA\\NFDBZHzBhAz@d@pAl@fDdBrBfAf@VpCrAhEvBf@Np@Lp@Fj@DfA?xA?|A?pB@lCDtDElB?`@MVUTe@FSFQNm@BGDKHIRIfDgAbFwA|@_@x@q@b@a@j...
659
303
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from django.forms import models from dbaas_services.analyzing.models import ExecutionPlan class ExecutionPlanForm(models.ModelForm): class Meta: model = ExecutionPlan
83
3,285
{ "publicKey": "<KEY>", "privateKey": "<KEY>" }
23
2,831
#pragma once #include <atomic> #include <thread> #include <algorithm> namespace libgo { template <typename K, typename V, uint8_t MaxHeight = 12> struct LinkedSkipList { public: typedef LinkedSkipList<K, V, MaxHeight> this_type; struct Node; struct PointPair { Node* prev = nullptr; N...
2,962
491
# Copyright 2020 Xiaomi Corporation (author: <NAME>) # See ../../../LICENSE for clarification regarding multiple 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://...
827
2,151
<reponame>zipated/src // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "extensions/browser/error_map.h" #include <stddef.h> #include <memory> #include <utility> #include "base/logging.h" #inc...
2,308
49,076
<filename>spring-web/src/main/java/org/springframework/web/context/annotation/package-info.java /** * Provides convenience annotations for web scopes. */ @NonNullApi @NonNullFields package org.springframework.web.context.annotation; import org.springframework.lang.NonNullApi; import org.springframework.lang.NonNullF...
100
372
/* * Copyright 2013-2014 <NAME> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
1,301
326
<gh_stars>100-1000 package com.bihell.dice.framework.log.bean; import com.alibaba.fastjson.annotation.JSONField; import com.bihell.dice.framework.ip.entity.IpAddress; import com.fasterxml.jackson.annotation.JsonIgnore; import lombok.Data; import lombok.experimental.Accessors; import java.io.Serializable; /** * HTTP...
994