max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
571 | <reponame>nhentai-dev/Hentoid
package me.devsaki.hentoid.database;
import androidx.annotation.NonNull;
import androidx.paging.DataSource;
import androidx.paging.PositionalDataSource;
import com.annimon.stream.function.Function;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import io.... | 965 |
455 | package com.jecelyin.editor.v2.view;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.graphics.drawable.BitmapDrawable;
import android.util.TypedValue;
impor... | 854 |
1,090 | // Copyright (c) 2016 <NAME>
//
// 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, merge, publish, distri... | 1,316 |
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 "components/feed/core/v2/public/ios/pref_names.h"
#include "components/feed/core/common/pref_names.h"
#include "components/feed/core/shared_pref... | 178 |
379 | // Copyright © 2011, Université catholique de Louvain
// 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... | 1,539 |
317 | <gh_stars>100-1000
/**
* 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
*/
/*
* To change this template, c... | 580 |
965 | void CImageListDlg::OnMouseMove(UINT nFlags, CPoint point)
{
m_myImageList.DragMove(point);
CDialog::OnMouseMove(nFlags, point);
} | 55 |
1,630 | import click
from .check_installation import check_installation
__all__ = ['check']
@click.command(help="Check if Colossal-AI is correct based on the given option")
@click.option('-i', '--installation', is_flag=True, help="Check if Colossal-AI is built correctly")
def check(installation):
if installation:
... | 128 |
375 | /*
* Copyright 2016 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.robotframework.ide.eclipse.main.plugin.search.participants;
import java.util.Set;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resourc... | 1,223 |
3,897 | <filename>targets/TARGET_Maxim/TARGET_MAX32625/mxc/tmr_utils.h
/*******************************************************************************
* Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this softwa... | 1,372 |
348 | <filename>docs/data/leg-t2/076/07606058.json
{"nom":"Baromesnil","circ":"6ème circonscription","dpt":"Seine-Maritime","inscrits":201,"abs":94,"votants":107,"blancs":8,"nuls":4,"exp":95,"res":[{"nuance":"REM","nom":"<NAME>","voix":57},{"nuance":"COM","nom":"M. <NAME>","voix":38}]} | 115 |
778 | <reponame>kkkoder/pulsar
/**
* 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.... | 1,449 |
1,338 | <reponame>Kirishikesan/haiku
/*
* Copyright 2003-2009 Haiku Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME>
*/
#include "MixerOutput.h"
#include <MediaNode.h>
#include "MixerCore.h"
#include "MixerDebug.h"
#include "MixerUtils.h"
MixerOutput::MixerOutput(Mi... | 6,798 |
367 | #ifndef GL_TEXTURE_H
#define GL_TEXTURE_H
#define TEXTURE_NOT_LOADED -1 // ID value for a texture that hasn't been loaded
// OGL Texture class
class CGLTexture
{
public:
CGLTexture(); // Constructor
// Loads the texture specified by the file name
// Returns true on success, false otherwise
bool load(c... | 413 |
1,141 | <reponame>sjndhkl/EazeGraph<filename>EazeGraphLibrary/src/main/java/org/eazegraph/lib/models/BaseModel.java
/**
*
* Copyright (C) 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 th... | 999 |
480 | <reponame>weicao/galaxysql
/*
* 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
... | 1,810 |
1,007 | # -*- coding: utf-8 -*-
"""
.. invisible:
_ _ _____ _ _____ _____
| | | | ___| | | ___/ ___|
| | | | |__ | | | |__ \ `--.
| | | | __|| | | __| `--. \
\ \_/ / |___| |___| |___/\__/ /
\___/\____/\_____|____/\____/
Created on Apr 23, 2015
Publishing backends registry.
████████... | 550 |
357 | <gh_stars>100-1000
/*
* MIT License
*
* Copyright (c) 2021 <NAME>
*
* 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,... | 781 |
429 | <reponame>DEDZTBH/ejml
/*
* Copyright (c) 2009-2020, <NAME>. All Rights Reserved.
*
* This file is part of Efficient Java Matrix Library (EJML).
*
* 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 Li... | 11,053 |
839 | /**
* 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 m... | 2,736 |
12,278 | // See www.openfst.org for extensive documentation on this weighted
// finite-state transducer library.
//
// Simple concrete, mutable FST whose states and arcs are stored in STL vectors.
#ifndef FST_VECTOR_FST_H_
#define FST_VECTOR_FST_H_
#include <algorithm>
#include <string>
#include <utility>
#include <vector>
#... | 9,796 |
2,023 | <reponame>tdiprima/code
# This progam creates a non periodic tiling of the plane using 'Penrose tiles',
# wich were invented by <NAME>.
# Each time it runs it will generate a new random pattern.
# There are an infinite number of them.
# Unlike a periodic tesselation the assembly requires forward planning and
# hence th... | 9,098 |
777 | <reponame>google-ar/chromium
// 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 "components/password_manager/content/renderer/credential_manager_client.h"
#include <stdint.h>
#include <memory>
#... | 2,819 |
1,402 | <reponame>kvmanohar22/gtsam
package net.sf.geographiclib.test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import net.sf.geographiclib.*;
public class GeodesicTest {
private static boolean isNaN(double x) { return x != x; }
private static final P... | 13,315 |
557 | <reponame>ericdefelice/GraphicsDemos<filename>GumshoeFramework/v1.00/TinyEXR.h<gh_stars>100-1000
/*
Copyright (c) 2014, <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 sou... | 1,405 |
9,724 | /*
* Copyright 2016 The Emscripten Authors. All rights reserved.
* Emscripten is available under two separate licenses, the MIT license and the
* University of Illinois/NCSA Open Source License. Both these licenses can be
* found in the LICENSE file.
*/
#include <stdio.h>
int funcy(int x) { return x * 9; }
int ... | 126 |
916 | <gh_stars>100-1000
"""
NOTE: This example is from ModernGL 4 or earlier. We simply disable and archive them for now.
"""
# import struct
# import ModernGL
# import pygame
# from pygame.locals import DOUBLEBUF, OPENGL
# width, height = 1280, 720
# pygame.init()
# pygame.display.set_mode((width, height), DOUBLEBUF | ... | 806 |
621 | package net.neevek.android.demo.paginize.pages.main;
import android.util.Log;
import net.neevek.android.demo.paginize.R;
import net.neevek.android.lib.paginize.ViewPagerInnerPage;
import net.neevek.android.lib.paginize.ViewWrapper;
import net.neevek.android.lib.paginize.annotation.InnerPageContainerLayoutResId;
import... | 642 |
307 | <filename>User/app/src/status_usb_uart.c
/*
*********************************************************************************************************
*
* 模块名称 : 联机界面
* 文件名称 : status_link_mode.c
* 版 本 : V1.0
* 说 明 :
* 修改记录 :
* 版本号 日期 作者 说明
* V1.0 2019-10-06 armfly 正式发布... | 2,413 |
2,661 | // Copyright 2017 Google Inc.
// Copyright 2020 The Open GEE 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/LICENSE-2.0
//
// Unles... | 853 |
2,151 | <filename>tests/syscalls/sysconf_cpu_feature.c<gh_stars>1000+
/*
* Copyright (c) 2015 The Native Client 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 <assert.h>
#include <errno.h>
#include <stdio.h>
#include <unistd.h... | 329 |
606 | <gh_stars>100-1000
package org.arend.core.context.binding;
public class FieldLevelVariable extends ParamLevelVariable {
public static class LevelField {}
private final LevelField myField;
public FieldLevelVariable(LvlType levelType, String name, int index, int size, LevelField field) {
super(levelType, nam... | 128 |
704 | <reponame>dumpmemory/fastmoe<filename>cuda/global_exchange.h
#include "stream_manager.h"
#ifdef FMOE_USE_NCCL
void fmoe_cuda_expert_exchange_impl(
const long* local_expert_count,
long* global_expert_count,
int n_expert, int world_size,
CudaStreamManager* smgr);
template<typename scala... | 2,148 |
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 ... | 9,284 |
2,399 | //
// SJDraggingObservation.h
// Pods
//
// Created by 畅三江 on 2019/11/27.
//
#import <Foundation/Foundation.h>
#import "SJDraggingObservationDefines.h"
NS_ASSUME_NONNULL_BEGIN
@interface SJDraggingObservation : NSObject<SJDraggingObservation>
///
/// 拖动开始的回调
///
@property (nonatomic, copy, nullable) void(^willBegi... | 315 |
335 | <filename>D/Diffusion_noun.json<gh_stars>100-1000
{
"word": "Diffusion",
"definitions": [
"The spreading of something more widely.",
"The action of spreading the light from a light source evenly to reduce glare and harsh shadows.",
"The intermingling of substances by the natural movement... | 151 |
1,503 | /*
* 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 ... | 1,946 |
533 | /* Copyright (c) 2018 Anakin Authors, 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 applic... | 1,791 |
1,958 | <filename>src/main/java/com/freetymekiyan/algorithms/level/easy/LongestCommonPrefix.java<gh_stars>1000+
package com.freetymekiyan.algorithms.level.easy;
/**
* Write a function to find the longest common prefix string amongst an array
* of strings.
* <p>
* Tags: String
*/
class LongestCommonPrefix {
public st... | 990 |
765 | /*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for additional information regarding copyright ownership.
Accellera licenses... | 843 |
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 ... | 580 |
418 | <reponame>aequasi/openshop.io-ios
//
// BFNFiltering.h
// OpenShop
//
// Created by <NAME>
// Copyright (c) 2015 Business Factory. All rights reserved.
//
#import <Mantle/MTLModel.h>
#import "BFAppStructure.h"
NS_ASSUME_NONNULL_BEGIN
/**
* `BFNFiltering` protocol specifies data model properties required in th... | 222 |
475 | //
// NotificationController.h
// Oncenote WatchKit Extension
//
// Created by chenyufeng on 15/11/12.
// Copyright © 2015年 chenyufengweb. All rights reserved.
//
#import <WatchKit/WatchKit.h>
#import <Foundation/Foundation.h>
@interface NotificationController : WKUserNotificationInterfaceController
@end
| 100 |
5,893 | import shutil
from functools import reduce
from pathlib import Path
import numpy as np
import pytest
import tensorflow as tf
from deeppavlov.core.layers.tf_layers import cudnn_lstm, cudnn_compatible_lstm, cudnn_gru, cudnn_compatible_gru
tests_dir = Path(__file__).parent
tf_layers_data_path = tests_dir / "tf_layers_d... | 4,112 |
5,169 | <filename>Specs/a/f/d/HFDatePickerPanel/1.0.1/HFDatePickerPanel.podspec.json
{
"name": "HFDatePickerPanel",
"version": "1.0.1",
"summary": "HFDatePickerPanel provide a panel for picking date.",
"description": "HFDatePickerPanel provide a panel for picking date. You can conform the protocol HFDatePickerPanelDele... | 366 |
36,552 | <filename>src/python/grpcio_tests/tests/unit/_server_test.py
# Copyright 2018 The 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-... | 999 |
11,750 | <filename>env/lib/python3.8/site-packages/plotly/express/_special_inputs.py
class IdentityMap(object):
"""
`dict`-like object which acts as if the value for any key is the key itself. Objects
of this class can be passed in to arguments like `color_discrete_map` to
use the provided data values as colors,... | 439 |
1,077 | <gh_stars>1000+
package com.billy.android.autoregister.demo;
/**
* @author billy.qi
* @since 17/9/21 19:26
*/
public class CategoryB extends BaseCategory {
@Override
public String getName() {
return "CategoryB";
}
}
| 95 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Gruffy","circ":"2ème circonscription","dpt":"Haute-Savoie","inscrits":1135,"abs":611,"votants":524,"blancs":41,"nuls":9,"exp":474,"res":[{"nuance":"REM","nom":"<NAME>","voix":301},{"nuance":"LR","nom":"<NAME>","voix":173}]} | 113 |
777 | <reponame>google-ar/chromium
// 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_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_ROOT_MAP_H_
#define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_AR... | 527 |
335 | {
"word": "Otherwise",
"definitions": [
"In circumstances different from those present or considered; or else.",
"In other respects; apart from that.",
"In a different way.",
"As an alternative."
],
"parts-of-speech": "Adverb"
} | 107 |
389 | <filename>auto-api/src/main/java/com/sjtu/yifei/route/ActivityCall.java<gh_stars>100-1000
package com.sjtu.yifei.route;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.ResolveInfo;
import android.net.Uri;
import android.text.TextUtils;
import android.util.Log;
import android.widge... | 829 |
575 | // Copyright 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 "extensions/browser/extension_registry.h"
#include <string>
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "extensions/... | 4,386 |
3,782 | <reponame>deloragaskins/deepchem<filename>deepchem/models/tests/test_pretrained_torch.py
import os
import unittest
import pytest
import deepchem as dc
import numpy as np
from deepchem.models.losses import L2Loss
from deepchem.feat.mol_graphs import ConvMol
try:
import torch
class MLP(dc.models.TorchModel):
d... | 1,362 |
2,996 | // Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.logic.delay;
import org.terasology.gestalt.entitysystem.component.Component;
public class ArbritaryDelayActionComponent implements Component<ArbritaryDelayActionComponent> {
public int value = 1;
... | 142 |
1,350 | <reponame>Shashi-rk/azure-sdk-for-java<filename>sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlScript.java<gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRe... | 1,639 |
1,144 | /* SPDX-License-Identifier: GPL-2.0+ */
/*
* (C) Copyright 2011 Andes Technology Corp
* <NAME> <<EMAIL>>
*/
/*
* DWCDDR21MCTL - Synopsys DWC DDR2/DDR1 Memory Controller
*/
#ifndef __DWCDDR21MCTL_H
#define __DWCDDR21MCTL_H
#ifndef __ASSEMBLY__
struct dwcddr21mctl {
unsigned int ccr; /* Controller Configuration ... | 6,651 |
389 | package editor.search;
import editor.AbstractTree;
import editor.EditorHost;
import editor.FileTree;
import editor.ITreeNode;
import editor.LabFrame;
import editor.NodeKind;
import java.nio.file.Path;
import gw.lang.reflect.IType;
import gw.lang.reflect.ITypeRef;
import gw.lang.reflect.TypeSystem;
import gw.util.GosuE... | 3,044 |
8,323 | from functools import singledispatch
from sympy.external import import_module
from sympy.stats.crv_types import BetaDistribution, CauchyDistribution, ChiSquaredDistribution, ExponentialDistribution, \
GammaDistribution, LogNormalDistribution, NormalDistribution, ParetoDistribution, UniformDistribution, \
Gaussi... | 1,207 |
995 | <reponame>kindlychung/mediasoup-sfu-cpp
//---------------------------------------------------------------------------//
// Copyright (c) 2013-2015 <NAME> <<EMAIL>>
//
// 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... | 2,970 |
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... | 5,095 |
1,760 | #pragma GCC optimize ("O3")
#pragma GCC target ("sse4")
#include <bits/stdc++.h>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/rope>
using namespace std;
using namespace __gnu_pbds;
using namespace __gnu_cxx;
typedef long long ll;
typedef long double ld;
typedef complex... | 2,212 |
2,151 | <reponame>google-ar/chromium<gh_stars>1000+
// 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.
#include "components/web_modal/web_contents_modal_dialog_manager.h"
namespace web_modal {
SingleWebContentsD... | 169 |
1,467 | #include "stdafx.h"
struct Screen
{
int Width;
int Height;
float fWidth;
float fHeight;
float fAspectRatio;
float fHUDScaleX;
float fHudOffset;
const float fHUDScaleXOriginal = 0.003125f;
const float fHudOffsetOriginal = 1.0f;
float fHUDScaleXDyn;
float fHudOffsetDyn;
fl... | 9,807 |
835 | // THIS FILE IS AUTO-GENERATED. DO NOT EDIT
package ai.verta.modeldb.versioning.autogenerated._public.modeldb.versioning.model;
import ai.verta.modeldb.versioning.*;
import ai.verta.modeldb.versioning.blob.diff.*;
import com.pholser.junit.quickcheck.generator.*;
import com.pholser.junit.quickcheck.generator.java.util.... | 432 |
612 | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
import os, sys, time, random, argparse
def obtain_args():
parser = argparse.ArgumentParser(description='Train facial la... | 1,500 |
807 | <gh_stars>100-1000
#include "monitoring/registry.h"
#include <glog/logging.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <memory>
#include <sstream>
#include "monitoring/monitoring.h"
#include "util/testing.h"
namespace cert_trans {
using std::ostringstream;
using std::string;
using std::unique_ptr;... | 434 |
509 | #include "pch.h"
#include "nvEncodeAPI.h"
#include "NvEncoderGL.h"
#include "GraphicsDevice/IGraphicsDevice.h"
#include "GraphicsDevice/ITexture2D.h"
namespace unity
{
namespace webrtc
{
NvEncoderGL::NvEncoderGL(uint32_t nWidth, uint32_t nHeight, IGraphicsDevice* device, UnityRenderingExtTextureFormat textureFor... | 506 |
626 | <gh_stars>100-1000
package org.jsmart.zerocode.core.kafka.common;
public class CommonConfigs {
public static final String BOOTSTRAP_SERVERS = "bootstrap.servers";
}
| 62 |
1,338 | /*
* Copyright 2004-2011, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#include <image.h>
#include <errno.h>
#include <pthread.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <unistd.h>
#include <errno_private.h>
#include <syscall_utils.h>
extern "C" int
system(const char *command... | 324 |
522 | <reponame>shengfuintel/tensorflow<filename>tensorflow/core/kernels/mkl_conv_ops.h
/* 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
... | 5,498 |
1,822 | // Copyright (c) 2013 <NAME>
//
// SPDX-License-Identifier: BSL-1.0
// 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)
#include <hpx/hpx_init.hpp>
#include <hpx/include/lcos.hpp>
#include <hpx/include/threadmanage... | 1,377 |
554 | # import _init_paths
import copy
import json
import operator
from random import seed, shuffle
import numpy as np
from six.moves import xrange
from pycocotools.coco import COCO
def get_det_word(bbox_ann, captions, wtoi, wtod, dtoi, wtol, ngram=2):
# get the present category.
pcats = [box['label'] for box in... | 3,266 |
342 | //
// OSKInstapaperActivity.h
// Overshare
//
// Created by <NAME> on 10/15/13.
// Copyright (c) 2013 Overshare Kit. All rights reserved.
//
#import "OSKActivity.h"
#import "OSKActivity_ManagedAccounts.h"
@interface OSKInstapaperActivity : OSKActivity <OSKActivity_ManagedAccounts>
@end
| 107 |
860 | /*
* 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 ... | 645 |
387 | import struct
import binascii
import io
from typing import Union
from neo.IO.MemoryStream import StreamManager
class BinaryWriter(object):
"""A convenience class for writing data from byte streams"""
def __init__(self, stream: Union[bytearray, bytes]) -> None:
"""
Create an instance.
... | 2,659 |
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... | 1,920 |
370 | # /* **************************************************************************
# * *
# * (C) Copyright <NAME> 2002.
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt or copy ... | 595 |
1,538 | <gh_stars>1000+
/*
* Example program for the Allegro library, by <NAME>.
*
* Test multi line text routines.
*/
#include <string>
#include <cmath>
#include "allegro5/allegro.h"
#include "allegro5/allegro_font.h"
#include "allegro5/allegro_image.h"
#include "allegro5/allegro_ttf.h"
#include "allegro5/allegro_c... | 3,232 |
884 | {
"jsonSchemaSemanticVersion": "1.0.0",
"imports": [
{
"corpusPath": "/core/cdsConcepts.cdm.json"
},
{
"corpusPath": "/core/wellKnownCDSAttributeGroups.cdm.json"
},
{
"corpusPath": "/core/applicationCommon/Account.cdm.json",
"moniker": "base_Account"
},
{
"c... | 1,801 |
6,989 | <reponame>HeyLey/catboost<filename>catboost/cuda/cuda_lib/cuda_buffer_helpers/reduce_scatter.cpp
#include "reduce_scatter.h"
namespace NCudaLib {
REGISTER_KERNEL_TEMPLATE(0x000023, NKernelHost::TShiftMemoryKernel, float);
REGISTER_STREAM_SECTION_TASK_TEMPLATE(0x010001, TReduceBinaryStreamTask, float);
}
| 133 |
349 | /*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2018-2021 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | 725 |
448 | {
"googleAnalyticsID" : "UA-212757129-2",
"environment" : "production",
"update_info_url" : "https://getupdates.brackets.io/prod/updates/<locale>.json",
"notification_info_url" : "https://getupdates.brackets.io/prod/notifications/<locale>.json",
"buildtype" ... | 162 |
421 | import requests
# Vuln Base Info
def info():
return {
"author": "cckuailong",
"name": '''WordPress WP Time Capsule Authentication Bypass''',
"description": '''The Time Capsule plugin before 1.21.16 for WordPress has an authentication bypass. Any request containing IWP_JSON_PREFIX causes th... | 1,032 |
682 | /**CFile****************************************************************
FileName [abcScorr.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Network and node package.]
Synopsis [Signal correspondence testing procedures.]
Author [<NAME>]
Affiliation [UC Berkeley]... | 7,052 |
14,668 | <filename>chrome/browser/apps/app_discovery_service/recommended_arc_app_fetcher.h
// 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.
#ifndef CHROME_BROWSER_APPS_APP_DISCOVERY_SERVICE_RECOMMENDED_ARC_APP_FE... | 369 |
1,120 | /** \file transformation.h
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
* Kinect For Azure SDK.
*/
#ifndef K4ATRANSFORMATION_H
#define K4ATRANSFORMATION_H
#include <k4a/k4atypes.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _k4a_camera_calibration_mode... | 6,464 |
3,083 | <reponame>utumen/binnavi
// Copyright 2011-2016 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applic... | 329 |
695 | <filename>cpp_src/core/index/rtree/greenesplitter.h
#pragma once
#include "splitter.h"
namespace reindexer {
template <typename Entry, typename Node, typename Traits, typename Iterator, size_t MaxEntries, size_t MinEntries>
class GreeneSplitter : private Splitter<Entry, Node, Traits, Iterator, MaxEntries> {
using B... | 2,001 |
335 | <filename>I/Inexact_adjective.json
{
"word": "Inexact",
"definitions": [
"Not quite accurate or correct."
],
"parts-of-speech": "Adjective"
} | 75 |
308 | package com.merxury.libkit;
import android.text.TextUtils;
import androidx.annotation.NonNull;
import com.elvishew.xlog.Logger;
import com.elvishew.xlog.XLog;
import com.topjohnwu.superuser.Shell;
import java.util.List;
/**
* Created by Mercury on 2018/2/4.
*/
public class RootCommand {
private static Logge... | 270 |
1,564 | <gh_stars>1000+
package org.modelmapper.functional.persistence;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
@Entity
public cl... | 161 |
7,482 | /*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2010-06-25 Bernard first version
* 2011-08-08 lgnq modified for Loongson LS1B
*/
#ifndef __BOARD_H__
#define __BOARD_H__
void rt_hw_boar... | 215 |
9,717 | <reponame>siddhantk232/nixpkgs<gh_stars>1000+
from pyspark.sql import Row, SparkSession
from pyspark.sql import functions as F
from pyspark.sql.functions import udf
from pyspark.sql.types import *
from pyspark.sql.functions import explode
def explode_col(weight):
return int(weight//10) * [10.0] + ([] if weight%10=... | 540 |
346 | /*! -*-c++-*-
@file Sensor.cpp
@author <NAME>
@brief Implementation of a class to abstract a sensor/camera.
\copyright Copyright 2014-2016 Elucideye, Inc. All rights reserved.
\license{This project is released under the 3 Clause BSD License.}
*/
#include "drishti/sensor/Sensor.h"
DRISHTI_SENSOR_NAMESPA... | 478 |
627 | <filename>chip/npcx/config_chip-npcx7.h
/* Copyright 2017 The Chromium OS 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 __CROS_EC_CONFIG_CHIP_NPCX7_H
#define __CROS_EC_CONFIG_CHIP_NPCX7_H
/*
* NPCX7 Series Device-Spec... | 2,085 |
859 | <reponame>0xflotus/Bashfuscator
from collections import OrderedDict
import string
from bashfuscator.core.mutators.token_obfuscator import TokenObfuscator
class SpecialCharOnly(TokenObfuscator):
def __init__(self):
super().__init__(
name="Special Char Only",
description="Converts c... | 7,448 |
14,425 | <reponame>bzhaoopenstack/hadoop
/**
* 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, Ver... | 2,833 |
313 | # Copyright 2020 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 applicable la... | 1,671 |
764 | <filename>src/WindowMaximize.cpp
#include <QDesktopWidget>
#include "WindowMaximize.h"
#include "WebPage.h"
#include "WebPageManager.h"
WindowMaximize::WindowMaximize(WebPageManager *manager, QStringList &arguments, QObject *parent) : WindowCommand(manager, arguments, parent) {
}
void WindowMaximize::windowFound(WebP... | 153 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.