max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,392
import datetime import pytest import pytz from .....product.models import Collection, CollectionChannelListing from ....tests.utils import assert_graphql_error_with_message, get_graphql_content @pytest.fixture def collections_for_sorting_with_channels(channel_USD, channel_PLN): collections = Collection.objects....
3,499
491
<reponame>dharmesh5591/realworld-serverless-application<gh_stars>100-1000 package software.amazon.serverless.apprepo.cucumber.steps; import static org.assertj.core.api.Assertions.assertThat; import software.amazon.serverless.apprepo.api.client.AWSServerlessApplicationRepository; import software.amazon.serverless.appr...
1,798
347
<gh_stars>100-1000 #pragma once #include "stdafx.h" #include <string> class TxtUtils { public: static bool WriteStringToTxt(std::wstring &filePath, std::wstring &content); };
70
1,806
<reponame>wimax-grapl/pants # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). """Information on your project, such as listing the targets in your project.""" from pants.backend.project_info import ( count_loc, dependees, depe...
328
575
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/lite_video/lite_video_switches.h" #include "base/command_line.h" #include "base/strings/string_number_conversions.h" namespace ...
722
576
<filename>modules/bullet_physics/components_generic.h #pragma once #include "../../components/component.h" #include "../../storage/dense_vector.h" #include "../../storage/dense_vector_storage.h" #include "components_area.h" struct Force { COMPONENT_BATCH(Force, DenseVector, -1) static void _bind_methods(); static...
343
619
/* * Author: <NAME> <<EMAIL>> * Copyright (c) 2014 Intel Corporation. * * This program and the accompanying materials are made available under the * terms of the The MIT License which is available at * https://opensource.org/licenses/MIT. * * SPDX-License-Identifier: MIT */ #include <iostream> #include <signa...
406
348
<filename>docs/data/leg-t2/080/08003406.json {"nom":"Hallencourt","circ":"3ème circonscription","dpt":"Somme","inscrits":1101,"abs":576,"votants":525,"blancs":58,"nuls":25,"exp":442,"res":[{"nuance":"LR","nom":"M. <NAME>","voix":246},{"nuance":"REM","nom":"M. <NAME>","voix":196}]}
114
417
<filename>modules/basic/stream/recordbatch_stream.cc /** Copyright 2020-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/LICENS...
1,729
665
<filename>vfs_handlers/testing/azure_blob_storage_test.cc /** -*- C++ -*- * azure_blob_storage_test.cc * Mich, 2017-02-15 * This file is part of MLDB. Copyright 2017 mldb.ai inc. All rights reserved. **/ #include <sys/types.h> #include <sys/stat.h> #i...
2,299
794
<reponame>xxoolm/Thanox-1 package github.tornaco.android.thanos.service; import android.app.Service; import android.content.Intent; import android.os.IBinder; import androidx.annotation.Keep; import androidx.annotation.Nullable; import com.elvishew.xlog.XLog; import com.topjohnwu.superuser.Shell; import java.util.A...
390
3,651
/* * * * Copyright 2010-2016 OrientDB LTD (http://orientdb.com) * * * * 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...
773
791
<gh_stars>100-1000 #ifndef GENERATOR_SVG_HPP #define GENERATOR_SVG_HPP #include <algorithm> #include <array> #include <map> #include <memory> #include <sstream> #include <vector> #include "math.hpp" #include "iterator.hpp" #include "mesh_vertex.hpp" #include "path_vertex.hpp" #include "shape_vertex.hpp" #include "tr...
2,456
344
<gh_stars>100-1000 import numpy as np from mushroom_rl.core import Serializable class QRegressor(Serializable): """ This class is used to create a regressor that approximates the Q-function using a multi-dimensional output where each output corresponds to the Q-value of each action. This is used, for ...
1,288
930
from Algos.Encrypt import Encrypt from Algos.Decrypt import Decrypt """ [NOTE] Here we demostrate an use of the Encrypt and Decrypt algorithms We also play the audio file as well. """ # You can try with Forest.wav as well message_path = input("Enter path of Audio file: ") secret = input("Enter secret message: "...
221
416
<filename>iPhoneOS11.4.sdk/System/Library/Frameworks/StoreKit.framework/Headers/SKAdNetwork.h // // SKAdNetwork.h // StoreKit // // Copyright © 2017 Apple Inc. All rights reserved. // #import <Foundation/Foundation.h> #import <StoreKit/StoreKitDefines.h> NS_ASSUME_NONNULL_BEGIN SK_EXTERN_CLASS_AVAILABLE(11_3) @in...
440
1,870
<reponame>Kunple-w/sofa-boot<filename>sofa-boot-project/sofa-boot-core/healthcheck-sofa-boot/src/main/java/com/alipay/sofa/healthcheck/impl/ModuleHealthChecker.java<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed...
1,520
4,054
<filename>vespalib/src/vespa/vespalib/util/array.hpp // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "array.h" #include <cstdlib> #include <cstring> #include <type_traits> namespace vespalib { template <typename T> void construct(T * dest...
2,087
585
/* The MIT License (MIT) Copyright (c) [2016] [BTC.COM] 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, me...
2,381
5,169
{ "name": "MTLManagedObjectAdapter", "version": "1.0", "license": "MIT", "summary": "Model framework for Cocoa and Cocoa Touch.", "homepage": "https://github.com/Mantle/Mantle", "authors": { "GitHub": "<EMAIL>" }, "source": { "git": "https://github.com/Mantle/MTLManagedObjectAdapter.git", "t...
843
319
package com.evacipated.cardcrawl.modthespire.lib; import org.apache.commons.lang3.NotImplementedException; public class SpireSuper { public static <R> R call(Object... params) { throw new NotImplementedException("This shouldn't happen."); } }
98
1,708
"""Manage filesystems in temporary locations. A temporary filesytem is stored in a location defined by your OS (``/tmp`` on linux). The contents are deleted when the filesystem is closed. A `TempFS` is a good way of preparing a directory structure in advance, that you can later copy. It can also be used as a temporar...
1,749
587
<filename>seq2seq/tools/__init__.py import torch from random import randrange from math import floor from torch.nn.utils.rnn import pack_padded_sequence, PackedSequence from .config import PAD def _limit_lengths(seqs, max_length=None, max_tokens=None): max_length = max_length or float('inf') lengths = [min(s....
2,682
575
// 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. #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_FETCH_BODY_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_FETCH_BODY_H_ #include "third_party/blink/renderer/bindings...
872
475
package org.micro.neural.config.store; import lombok.extern.slf4j.Slf4j; import org.micro.neural.common.URL; import org.micro.neural.common.utils.SerializeUtils; import org.redisson.Redisson; import org.redisson.api.*; import org.redisson.api.listener.PatternMessageListener; import org.redisson.codec.SerializationCode...
2,639
5,169
<filename>Specs/4/7/2/PhraseSDK/2.2.0/PhraseSDK.podspec.json { "name": "PhraseSDK", "version": "2.2.0", "summary": "iOS SDK for Phrase", "homepage": "https://phrase.com", "license": { "type": "Commercial", "file": "LICENSE.md" }, "authors": { "Dynport GmbH": "<EMAIL>" }, "source": { "g...
316
305
/* * Copyright (c) 2015 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
5,268
5,169
<gh_stars>1000+ { "name": "libev", "version": "4.15.0", "summary": "Unofficial libev mirror for Cocoapods", "description": " This is a binary distribution of the libev library built for iOS and OSX.\n The library uses configure which makes it a bit tricky to cross compile.\n"...
452
356
<reponame>EvilPudding/candle #ifndef MESH_H #define MESH_H #include "macros.h" #include "mafs.h" #include "material.h" #include "vector.h" #include "khash.h" struct mesh; struct face; struct edge; typedef struct vec3_t(*support_cb)(struct mesh *self, const vec3_t dir); #ifdef MESH4 # define vecN vec4 # define vecN_...
4,404
477
/* * Copyright (C) 2018 <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 to ...
6,526
1,139
<reponame>ghiloufibelgacem/jornaldev<gh_stars>1000+ package com.journaldev.springhibernate.dao; import java.util.List; import com.journaldev.springhibernate.model.Person; public interface PersonDAO { public void addPerson(Person p); public List<Person> listPersons(); }
109
647
<reponame>Bertware/transitfeed<gh_stars>100-1000 #!/usr/bin/python2.5 # Copyright (C) 2010 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...
665
945
<reponame>arobert01/ITK // This is core/vnl/vnl_float_3x3.h #ifndef vnl_float_3x3_h_ #define vnl_float_3x3_h_ //: // \file // \brief 3x3 matrix of float // // vnl_float_3x3 is a vnl_matrix<float> of fixed size 3x3. // It is merely a typedef for vnl_matrix_fixed<float,3,3> // // \author <NAME> // \date 1 Apr...
225
2,143
<gh_stars>1000+ package com.tngtech.archunit.testutil.assertion; import java.lang.reflect.Constructor; import java.lang.reflect.Method; import com.tngtech.archunit.core.domain.JavaCodeUnit; import com.tngtech.archunit.core.domain.JavaTypeVariable; import org.assertj.core.api.AbstractObjectAssert; import static com.t...
1,227
1,288
// Copyright 2020 Google LLC. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd #include "packager/media/formats/webvtt/webvtt_muxer.h" #include "packager/file/file.h" #include ...
644
1,329
from .easylog import write_config_into_log from .ramp import ramp_up, ramp_down
31
1,970
<reponame>liufangqi/hudi<filename>hudi-common/src/main/java/org/apache/hudi/common/table/timeline/dto/ClusteringOpDTO.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 * regardin...
757
335
{ "word": "Frontier", "definitions": [ "A line or border separating two countries.", "The extreme limit of settled land beyond which lies wilderness, especially in reference to the western US before Pacific settlement.", "The extreme limit of understanding or achievement in a particular ...
112
1,144
<gh_stars>1000+ /****************************************************************************** * * Copyright(c) 2016 - 2017 Realtek Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published by the Free ...
7,570
1,056
<filename>java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/expr/EvaluatorExpression.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. T...
1,039
511
#include <spng.h> #include <iostream> int main(int argc, char **argv) { (void)argc; (void)argv; unsigned char buf[30] = {0}; spng_ctx *ctx = spng_ctx_new(0); spng_set_png_buffer(ctx, buf, 30); struct spng_plte plte; int e = spng_get_plte(ctx, &plte); std::cout << spng_strerror(e); sp...
176
1,928
<filename>dpark/file_manager/mfs_proxy.py from __future__ import absolute_import import os import grp import time import socket import getpass from .utils import unpack, pack, uint8, attrToFileInfo, uint64 from .consts import * import six from six.moves import range from dpark.utils.log import get_logger logger = get...
4,804
393
<gh_stars>100-1000 from . import base_config __all__ = ['base_config']
26
302
package io.github.iamazy.elasticsearch.dsl.jdbc.statement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.SQLWarning; /** * @author iamazy * @date 2019/12/16 **/ public abstract class AbstractStatement extends AbstractFeatureNotSupportedStatement { private boolean isClosed=false; ...
1,215
4,535
<gh_stars>1000+ // Copyright 2017-2018 Intel Corporation. #include "tile/platform/local_machine/tdep_scheduler.h" namespace vertexai { namespace tile { namespace local_machine { TransitiveDepScheduler::TransitiveDepScheduler(const std::shared_ptr<Placer>& placer, std::size_t max_in_flight) : placer_{placer}, max...
355
348
<reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000 {"nom":"Barésia-sur-l'Ain","circ":"2ème circonscription","dpt":"Jura","inscrits":126,"abs":62,"votants":64,"blancs":8,"nuls":1,"exp":55,"res":[{"nuance":"LR","nom":"<NAME>","voix":34},{"nuance":"MDM","nom":"<NAME>","voix":21}]}
123
1,144
// Generated Model - DO NOT CHANGE package org.compiere.model; import java.sql.ResultSet; import java.util.Properties; import javax.annotation.Nullable; /** Generated Model for AD_Window * @author metasfresh (generated) */ @SuppressWarnings("unused") public class X_AD_Window extends org.compiere.model.PO implemen...
3,227
3,579
<gh_stars>1000+ /* * Copyright 2015, The Querydsl Team (http://www.querydsl.com/team) * * 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 * Unl...
1,331
852
// -*- C++ -*- // CMS includes #include "FWCore/Utilities/interface/InputTag.h" #include "DataFormats/Common/interface/Handle.h" #include "DataFormats/JetReco/interface/CaloJet.h" #include "PhysicsTools/FWLite/interface/EventContainer.h" #include "PhysicsTools/FWLite/interface/CommandLineParser.h" // Root includes ...
1,009
575
<reponame>mghgroup/Glide-Browser // Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/core/events/pointer_event_util.h" #include <cmath> #include "third_party/blink/rend...
2,464
453
#include <math.h> #include "headers/cosh.h" double cosh(double x) { return _cosh(x); }
41
347
<reponame>hbraha/ovirt-engine package org.ovirt.engine.core.bll.network; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.hasEntry; import static org.mockito.ArgumentMatchers.same; import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.verify; import static...
1,426
10,225
<filename>extensions/resteasy-classic/resteasy-multipart/runtime/src/main/java/io/quarkus/resteasy/multipart/runtime/MultipartInputPartConfigContainerRequestFilter.java package io.quarkus.resteasy.multipart.runtime; import java.io.IOException; import javax.enterprise.inject.Instance; import javax.inject.Inject; impor...
433
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...
6,986
6,497
<gh_stars>1000+ package com.sohu.cache.web.enums; import com.sohu.cache.util.NumberUtil; import java.util.Collections; import java.util.HashMap; import java.util.Map; /** * 机器内存使用或分配区间 */ public enum MachineMemoryDistriEnum { BETWEEN_0_TO_1_PERCENT("0_1", "0-1%", 2), BETWEEN_1_TO_10_PERCENT("1_10", "1-10%...
1,084
360
/* ------------------------------------------------------------------------- * * EUC_JIS_2004 <--> UTF8 * * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION * src/backend/utils/mb/conversion_procs/...
1,081
603
# -*- coding: utf-8 -*- """API module v1.""" # from .views import blueprint
29
2,001
package deadlock; public class ThreadLockFixedDemo { /* Both method are now requesting lock in same order, * first Integer and then String. * This will solve the problem, * as long as both method are requesting lock in consistent order. * */ public void method1() { synchronized (In...
318
490
import torch import torch.nn as nn class SimulTransOracle(nn.Module): """ Forward-backward based controller """ def __init__(self, penalty): super().__init__() self.penalty = penalty def forward(self, scores): """ Inputs: Scores : log p(y_t | x<j) : B, Tt...
1,363
929
<filename>automation/scripts/testnet-validation/logs.py from google.cloud import logging as glogging from kubernetes import client, config import logging from datetime import datetime, timedelta import sys import time def fetch_logs(namespace="default", hours_ago=1, log_filter="", max_entries=1000): # Python Logging...
532
14,668
// Copyright 2021 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 "ash/webui/help_app_ui/help_app_manager_factory.h" #include "ash/webui/help_app_ui/help_app_manager.h" #include "chromeos/components/local_search...
551
8,657
<reponame>sharksforarms/h2o #include "h2o.h" #include "h2o/configurator.h" struct headers_util_add_arg_t { yoml_t *node; h2o_iovec_t *name; h2o_iovec_t value; }; struct headers_util_configurator_t { h2o_configurator_t super; h2o_configurator_t *child; h2o_configurator_get_headers_commands_cb g...
6,009
1,671
/* * Copyright 2016 LinkedIn Corp. 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 applicab...
7,465
3,182
// Generated by delombok at Sat Jun 11 11:12:44 CEST 2016 class LoggerSlf4jOnNonType { void foo() { } }
44
1,487
package com.frogermcs.androiddevmetrics.internal.ui; import android.content.res.Resources; import android.text.Html; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseExpandableListAdapter; import android.widget.TextView; import com.frogermcs.androi...
2,773
4,857
/** * 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...
762
879
package org.zstack.test.storage.volume; import junit.framework.Assert; import org.junit.Before; import org.junit.Test; import org.zstack.core.cloudbus.CloudBus; import org.zstack.core.componentloader.ComponentLoader; import org.zstack.core.db.DatabaseFacade; import org.zstack.header.configuration.DiskOfferingInventory...
1,594
307
# Databricks notebook source import os import datetime # For testing base_path = 'dbfs:/mnt/datalake/data/lnd/2019_10_06_05_54_25' parkingbay_filepath = os.path.join(base_path, "MelbParkingBayData.json") sensors_filepath = os.path.join(base_path, "MelbParkingSensorData.json") # COMMAND ---------- parkingbay_sdf = sp...
241
892
{ "schema_version": "1.2.0", "id": "GHSA-65gc-65c8-rc75", "modified": "2022-05-13T01:01:38Z", "published": "2022-05-13T01:01:38Z", "aliases": [ "CVE-2017-12114" ], "details": "An exploitable improper authorization vulnerability exists in admin_peers API of cpp-ethereum's JSON-RPC (commit 4e1015743b958...
511
386
package com.github.unclecatmyself.support; import com.github.unclecatmyself.bootstrap.channel.protocol.Response; import com.github.unclecatmyself.core.constant.Constants; import java.util.HashMap; import java.util.Map; /** * 列入项目中,默认返回实现 * Created by MySelf on 2018/11/23. */ public class InChatResponse implements...
861
897
<gh_stars>100-1000 /* Given a N * N square matrix. A matrix has two diagonals. One diagonal is principal which starts from the first row, first column another diagonal is secondary which starts from the first row, last column Find the sum of it's principal and secondary diagonal elements. */ #include <bits/stdc+...
992
572
<reponame>cassiasamp/live-de-python from collections import ChainMap # problema: Unir dois dicionário a = {1: 'a', 2: 'b', 3: 'c'} b = {2: 'x', 3: 'z', 4: 'w'} c = ChainMap(a, b)
86
460
package org.flhy.ext.utils; import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils; import javax.servlet.http.HttpServletResponse; import java.io.File; import java.io.IOException; import java.io.InputStream; public class JsonUtils { public static void success(String message) throws IOExcepti...
752
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 "third_party/blink/renderer/core/css/properties/css_parsing_utils.h" #include "testing/gtest/include/gtest/gtest.h" #include "third_party/blink/r...
3,889
468
{ "name": "metamask", "author": "<NAME>", "license": "CC BY-NC-SA 4.0", "raster": "http://hexb.in/hexagons/metamask.png" }
62
369
<filename>FreeRTOSv10.4.1/FreeRTOS/Demo/CORTEX_LM3S316_IAR/hw_include/diag.h //***************************************************************************** // // diag.h - Prototypes for the diagnostic functions. // // Copyright (c) 2005,2006 Luminary Micro, Inc. All rights reserved. // // Software License Agreement /...
840
3,861
#ifndef GRUB_OFPATH_MACHINE_UTIL_HEADER #define GRUB_OFPATH_MACHINE_UTIL_HEADER 1 char *grub_util_devname_to_ofpath (const char *devname); #endif /* ! GRUB_OFPATH_MACHINE_UTIL_HEADER */
88
983
package org.xm; /** * @author xuming */ public class PhraseSimilarityDemo { public static void main(String[] args) { String phrase1 = "继续努力"; String phrase2 = "持续发展"; double result = Similarity.phraseSimilarity(phrase1, phrase2); System.out.println(phrase1 + " vs " + phrase2 + " ...
168
522
from unittest import mock import pytest from briefcase.platforms.macOS.app import macOSAppBuildCommand @pytest.fixture def build_command(tmp_path): command = macOSAppBuildCommand(base_path=tmp_path) command.select_identity = mock.MagicMock() command.sign_app = mock.MagicMock() command.sign_file = m...
349
684
/* 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 writing, software * distribut...
1,032
431
def remove_prefix(text, prefix): if text.startswith(prefix): return text[len(prefix):] return text # or whatever
49
5,169
<gh_stars>1000+ { "name": "Leto", "version": "2.0.0", "summary": "掌通无线旗下的小游戏工具库", "description": "Leto使用了双WebView的结构, 在iOS/Android上都是这样. 一个WebView可以叫Service WebView, 这个就用来提供微信api的功能. 一个叫做Page WebView, 用来提供ui组件的那些功能. 在Page WebView里想要调用微信api的时候, 是通过释放一个PAGE EVENT这种间接的方式去调用Service WebView", "homepage": "https://...
494
2,106
from __future__ import absolute_import, division, print_function from .serialization import * from .json_dumps import json_dumps from .json_dumps_trusted import json_dumps_trusted from .object_hook import object_hook from .object_hook_trusted import object_hook_trusted
79
831
<reponame>qq1056779951/android<gh_stars>100-1000 /* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/...
572
1,562
/* * * Copyright 2017 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
834
383
<reponame>MerijnHendriks/gelectron<gh_stars>100-1000 { "prettier.tabWidth": 2, "editor.formatOnSave": true, "tslint.enable": true, "tslint.autoFixOnSave": true, "files.autoSave": "off" }
95
892
{ "schema_version": "1.2.0", "id": "GHSA-j433-wpfx-cxg3", "modified": "2022-05-13T01:04:15Z", "published": "2022-05-13T01:04:15Z", "aliases": [ "CVE-2018-6508" ], "details": "Puppet Enterprise 2017.3.x prior to 2017.3.3 are vulnerable to a remote execution bug when a specially crafted string was passe...
494
2,436
<filename>cpp/perspective/src/include/perspective/path.h<gh_stars>1000+ /****************************************************************************** * * Copyright (c) 2017, the Perspective Authors. * * This file is part of the Perspective library, distributed under the terms of * the Apache License 2.0. The fu...
258
310
// // AppDelegate.h // PropertyCross // // Created by <NAME> on 11/10/2012. // Copyright (c) 2012 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import <CoreData/CoreData.h> @class PropertyCrossViewController; @class PersistentDataStore; @interface AppDelegate : UIResponder <UIApplicationDelegate> @pr...
158
1,209
<reponame>JJPowelly/u8glib<filename>fntsrc/u8g_font_courb08.c<gh_stars>1000+ /* Fontname: -Adobe-Courier-Bold-R-Normal--11-80-100-100-M-60-ISO10646-1 Copyright: Copyright (c) 1984, 1987 Adobe Systems Incorporated. All Rights Reserved. Copyright (c) 1988, 1991 Digital Equipment Corporation. All Rights Reserved. Ca...
5,464
4,535
<filename>pmlc/dialect/eltwise/ir/ops.h // Copyright 2019, Intel Corporation #pragma once #include "llvm/ADT/SmallVector.h" #include "mlir/IR/Builders.h" #include "mlir/IR/OpDefinition.h" #include "mlir/IR/StandardTypes.h" #include "pmlc/dialect/eltwise/ir/types.h" #include "pmlc/dialect/eltwise/ir/util.h" #include...
513
435
{ "copyright_text": "Standard YouTube License", "description": "Recorrido pr\u00e1ctico a trav\u00e9s de las opciones que Python ofrece para la optimizaci\u00f3n de c\u00f3digo n\u00famerico de baja fricci\u00f3n (esto es, sin dejar de escribir Python), incluyendo: agotando CPython, NumPy, Numba, Parakeet, Cython, ...
394
1,751
/*- * #%L * rapidoid-http-server * %% * Copyright (C) 2014 - 2020 <NAME> and contributors * %% * 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/...
656
760
<reponame>hexiangyuan/react-native-multibundler package com.facebook.react.bridge; import android.content.Context; public class BridgeUtil { public static void loadScriptFromAsset(Context context, CatalystInstance instance, String assetName...
401
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Meh", "definitions": [ "Uninspiring; unexceptional.", "Unenthusiastic; apathetic." ], "parts-of-speech": "Adjective" }
96
1,658
package org.rocksdb; import org.rocksdb.Cache; /** * Java wrapper over native write_buffer_manager class */ public class WriteBufferManager extends RocksObject { static { RocksDB.loadLibrary(); } /** * Construct a new instance of WriteBufferManager. * * Check <a href="https://github.com/facebook...
285
1,104
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
1,254
8,629
#pragma once #include <Core/Names.h> #include <Core/NamesAndTypes.h> #include <Core/SettingsEnums.h> #include <Parsers/ASTTablesInSelectQuery.h> #include <Interpreters/IJoin.h> #include <Interpreters/join_common.h> #include <Interpreters/asof.h> #include <QueryPipeline/SizeLimits.h> #include <DataTypes/getLeastSuperty...
4,260
12,278
/* Copyright 2016 <NAME>. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) * * See http://www.boost.org/libs/poly_collection for library home page. */ #include "test_algorithm1.hpp" #include "any_types.hpp" #...
215
3,262
package com.tencent.angel.graph.embedding.node2vec; import com.tencent.angel.ml.matrix.psf.update.base.PartitionUpdateParam; import com.tencent.angel.ml.matrix.psf.update.base.UpdateFunc; import com.tencent.angel.ps.storage.matrix.ServerMatrix; import com.tencent.angel.ps.storage.partition.RowBasedPartition; import co...
815