max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
340 | <reponame>ankane/informers<gh_stars>100-1000
from pathlib import Path
import tempfile
from transformers.convert_graph_to_onnx import convert, quantize
dest = Path(tempfile.mkdtemp(), "ner.onnx")
convert(
pipeline_name="ner",
model="dbmdz/bert-large-cased-finetuned-conll03-english",
output=dest,
framework="pt",... | 133 |
3,084 | <reponame>ixjf/Windows-driver-samples
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2012 Microsoft Corporation. All Rights Reserved.
//
// Module Name:
// HelperFunctions_ThreadsAndEvents.cpp
//
// Abstract:
// This modu... | 8,768 |
1,416 | <gh_stars>1000+
from .aitextgen import aitextgen
from .TokenDataset import TokenDataset
from .tokenizers import train_tokenizer
import fire
def aitextgen_cli(**kwargs):
"""Entrypoint for the CLI"""
fire.Fire(
{
"encode": encode_cli,
"train": train_cli,
"generate": g... | 505 |
3,227 | namespace CGAL {
namespace Surface_mesh_simplification {
/*!
\ingroup PkgSurfaceMeshSimplificationRef
The class `Edge_length_cost` is a model for the `GetCost` concept,
which computes the collapse cost as the squared length of the edge.
\tparam TriangleMesh is the type of surface mesh being simplified, and must be a... | 385 |
1,003 | /* Copyright © 2016 <NAME> <<EMAIL>>
* This code is released under the license described in the LICENSE file
*/
#include <iostream>
#include <unordered_map>
#include <functional>
#include <args.hxx>
void Init(const std::string &progname, std::vector<std::string>::const_iterator beginargs, std::vector<std::string>::... | 2,078 |
984 | <reponame>forksnd/win32metadata
//***************************************************************************
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// CHSTRING.h
//
// Purpose: Utility library version of MFC CString
//
//******************************************************************... | 4,196 |
47,880 | /*
* Copyright (C) 2011 The Guava 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 agre... | 4,371 |
6,098 | <gh_stars>1000+
import h2o
class FeatureInteraction:
def _feature_interaction(self, max_interaction_depth=100, max_tree_depth=100, max_deepening=-1, path=None):
"""
Feature interactions and importance, leaf statistics and split value histograms in a tabular form.
Available for XGBoost and... | 1,034 |
512 | <filename>tests/spot/mining/test_mining_earnings_list.py<gh_stars>100-1000
import responses
from tests.util import random_str
from tests.util import mock_http_response
from binance.spot import Spot as Client
from binance.error import ParameterRequiredError
mock_item = {"key_1": "value_1", "key_2": "value_2"}
key = r... | 439 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000
{"nom":"Criquiers","circ":"6ème circonscription","dpt":"Seine-Maritime","inscrits":504,"abs":267,"votants":237,"blancs":8,"nuls":0,"exp":229,"res":[{"nuance":"FN","nom":"<NAME>","voix":95},{"nuance":"UDI","nom":"Mme <NAME>","voix":43},{"nuance":"REM","nom":"<NA... | 229 |
3,027 | <reponame>BGTCapital/hummingbot
from decimal import Decimal
from unittest import TestCase
from hummingbot.connector.exchange.coinbase_pro.coinbase_pro_in_flight_order import CoinbaseProInFlightOrder
from hummingbot.core.event.events import OrderType, TradeType
class CoinbaseProInFlightOrderTests(TestCase):
def ... | 4,206 |
12,278 | <filename>3rdParty/boost/1.71.0/libs/geometry/test/algorithms/area/area.cpp
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Unit Test
// Copyright (c) 2007-2012 <NAME>, Amsterdam, the Netherlands.
// Copyright (c) 2008-2012 <NAME>, Paris, France.
// Copyright (c) 2009-2012 <NAME>, London, UK.
// This file wa... | 3,848 |
10,192 | /*
* Copyright (C) 2009-2021 Lightbend Inc. <https://www.lightbend.com>
*/
package jdocs.stream.operators.sourceorflow;
import akka.NotUsed;
import akka.actor.typed.ActorSystem;
import akka.stream.javadsl.Sink;
import akka.stream.javadsl.Source;
import java.util.List;
import java.util.concurrent.CompletionStage;
... | 225 |
343 | from mayan.apps.testing.tests.base import GenericViewTestCase
from ..events import event_workflow_template_edited
from ..permissions import (
permission_workflow_template_edit, permission_workflow_template_view
)
from .mixins.workflow_template_mixins import WorkflowTemplateTestMixin
from .mixins.workflow_template... | 3,036 |
14,668 | <reponame>zealoussnow/chromium
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/media_router/common/media_sink.h"
#include "components/media_router/common/mojom/media_route_provider... | 567 |
1,104 | package com.cg.baseproject.utils.android;
import android.Manifest;
import android.annotation.TargetApi;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.os.Build;
import android.view.View;
import com.cg.baseproject.utils.FileUtils;
import java.io.File;
impo... | 1,144 |
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 ... | 3,052 |
15,179 | """Argparser module for Flow"""
import argparse
from .base import set_base_parser
from .helper import add_arg_group, KVAppendAction, _SHOW_ALL_ARGS
from ..enums import InfrastructureType
def mixin_flow_features_parser(parser):
"""Add the arguments for the Flow features to the parser
:param parser: the parse... | 810 |
625 | <filename>util/jupyter/seq_kernel/redirector.py
"""
Stdout and stderr redirector.
Based on https://eli.thegreenplace.net/2015/redirecting-all-kinds-of-stdout-in-python/
"""
from contextlib import contextmanager
import ctypes
import io
import os
import sys
import tempfile
libc = ctypes.CDLL(None)
if sys.platfo... | 1,299 |
1,392 | import graphene
from django.core.exceptions import ValidationError
from ....core.permissions import OrderPermissions
from ....core.tracing import traced_atomic_transaction
from ....giftcard.utils import deactivate_order_gift_cards
from ....order.actions import cancel_order
from ....order.error_codes import OrderErrorC... | 686 |
6,139 | <reponame>Digitaltransform/tensorboard
# Copyright 2019 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/LIC... | 1,111 |
1,444 |
package mage.cards.b;
import java.util.EnumSet;
import java.util.UUID;
import mage.abilities.common.EntersBattlefieldTappedAbility;
import mage.abilities.common.FetchLandActivatedAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
... | 354 |
340 | <reponame>definitelyNotFBI/utt<gh_stars>100-1000
# Concord
#
# Copyright (c) 2020 VMware, Inc. All Rights Reserved.
#
# This product is licensed to you under the Apache 2.0 license (the "License").
# You may not use this product except in compliance with the Apache 2.0 License.
#
# This product may include a number of ... | 350 |
2,232 | /*
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: <NAME>
*/
#include "kernel/instantiate.h"
#include "library/placeholder.h"
#include "library/explicit.h"
#include "library/choice.h"
#include "library/vm/vm.h"
#include "library... | 1,280 |
1,814 | <gh_stars>1000+
/* Copyright 2019 The Waymo Open Dataset 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 require... | 1,416 |
1,144 | /*
* Copyright (C) 2013 Realtek Semiconductor Corp.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* ... | 24,361 |
983 | package org.xm.classification;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xm.tokenizer.Tokenizer;
import org.xm.tokenizer.Word;
import java.io.*;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
/**
* 代表一个文档实例
*/
public class Instan... | 753 |
742 | #!/usr/bin/env python
# Software License Agreement (BSD License)
#
# Copyright (c) 2009, <NAME>, Inc.
# 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 r... | 1,898 |
707 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#pragma once
#include <string_view>
namespace frc {
// Maintainer note: this enum is mirrored in WPILibJ and in Shuff... | 314 |
2,724 | <filename>learners/uniform_quantization/utils.py
# Tencent is pleased to support the open source community by making PocketFlow available.
#
# Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved.
#
# Licensed under the BSD 3-Clause License (the "License");
# you may not use this file except in co... | 4,455 |
849 | /*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 1,698 |
2,023 | def num_in_base(val, base, min_digits=1, complement=False,
digits="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"):
"""Convert number to string in specified base
If minimum number of digits is specified, pads result to at least
that length.
If complement is True, prints negative num... | 793 |
856 | <reponame>Project-Xtended/external_armnn<filename>src/backends/backendsCommon/test/layerTests/NegTestImpl.cpp
//
// Copyright © 2020 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "NegTestImpl.hpp"
#include "ElementwiseUnaryTestImpl.hpp"
template<armnn::DataType ArmnnType, typename T>
Laye... | 2,621 |
334 | <filename>qiime2/core/type/tests/test_primitive.py
# ----------------------------------------------------------------------------
# Copyright (c) 2016-2021, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.... | 999 |
787 | /*
* Java Genetic Algorithm Library (@__identifier__@).
* Copyright (c) @__year__@ <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/LICEN... | 867 |
786 | package org.cellocad.adaptors.ucfwriters.ucf_writers_Eco2C2G2T2;
import org.cellocad.MIT.dnacompiler.Util;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.Map;
public class collection_writer_gates extends collection_writer {
@Override
public ArrayList<Map> getObjects() {
... | 838 |
1,444 | <gh_stars>1000+
package mage.cards.s;
import java.util.UUID;
import mage.MageInt;
import mage.ObjectColor;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.effects.common.DamageAllEffect;
import mage.abilities.k... | 634 |
792 | <filename>iPokeGo/LicensesViewController.h
//
// LicensesViewController.h
// iPokeGo
//
// Created by <NAME> on 15/08/2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface LicensesViewController : UIViewController
@property(weak, nonatomic) IBOutlet UIWebView *licensesWebVi... | 116 |
355 | <reponame>joshy56/helper
/*
* This file is part of helper, licensed under the MIT License.
*
* Copyright (c) lucko (Luck) <<EMAIL>>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | 740 |
829 | <reponame>robert0714/flowing-retail
package io.flowing.retail.inventory.messages;
import java.io.IOException;
import java.util.Arrays;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotat... | 814 |
494 | package app.hanks.com.conquer.util;
import android.content.Context;
import android.graphics.PixelFormat;
import android.graphics.drawable.AnimationDrawable;
import android.media.MediaPlayer;
import android.media.MediaPlayer.OnCompletionListener;
import android.media.MediaPlayer.OnPreparedListener;
import android.net.U... | 4,937 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.security.keyvault.keys.models;
import com.azure.core.annotation.Fluent;
import java.time.OffsetDateTime;
/**
* Represents the configurable options to import a key.
*/
@Fluent
public class ImportKeyOpt... | 1,001 |
3,508 | <reponame>Luv8436/Leetcode
package com.fishercoder.solutions;
import java.util.HashMap;
import java.util.Map;
public class _91 {
/**
* Credit: https://discuss.leetcode.com/topic/35840/java-clean-dp-solution-with-explanation
* I used a dp array of size n + 1 to save subproblem solutions.
* dp[0] mea... | 1,340 |
338 | <gh_stars>100-1000
/*
* Copyright 2008-2012 NVIDIA 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.apache.org/licenses/LICENSE-2.0
*
* Unless req... | 1,662 |
5,193 | /*
* Copyright (C) 2016 AriaLyy(https://github.com/AriaLyy/Aria)
*
* 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 requir... | 4,411 |
837 | <gh_stars>100-1000
package me.saket.dank.ui.submission.events;
import com.google.auto.value.AutoValue;
import me.saket.dank.ui.UiEvent;
import me.saket.dank.utils.DankSubmissionRequest;
@AutoValue
public abstract class SubmissionRequestChanged implements UiEvent {
public abstract DankSubmissionRequest request();
... | 144 |
835 | <reponame>pristem/fo-dicom
//
// (C) CharLS Team 2014, all rights reserved. See the accompanying "License.txt" for licensed use.
//
#include "jpegmarkersegment.h"
#include "jpegmarkercode.h"
#include "util.h"
#include <vector>
#include <cstdint>
using namespace std;
using namespace charls;
unique_ptr<JpegMarkerSegm... | 1,878 |
303 | <reponame>thomasleveil/docker-HTPC-Manager<filename>modules/transmission.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import cherrypy
import htpc
import urllib2
import base64
from json import loads, dumps
import logging
from cherrypy.lib.auth2 import require
class Transmission:
# Transmission Session ID
... | 3,944 |
457 | package denominator.dynect;
import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.AtomicReference;
import javax.inject.Inject;
import javax.inject.Provider;
import javax.inject.Singleton;
import denominator.CheckConnection;
import denominator.Credentials;
import denominator.dynect.DynECT.Da... | 1,422 |
400 | <reponame>tradeshift-zihe/ofdrw
package org.ofdrw.layout.element;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class DivTest {
@Test
void split() {
Div div = new Div()
.setWidth(400d)
.se... | 1,075 |
965 | // adds three strings with one call
lpszStrings = _T("String 1\0String 2\0String 3\0"); | 30 |
351 | <gh_stars>100-1000
/*
* cen64_wrapper.cpp - CEN64-specific CPU interfaces
* @author <NAME> <EMAIL>
* Copyright 2019 MIPT-MIPS
*/
#include "cen64_rcp_interrupt_mask.h"
#include "cen64_wrapper.h"
static const constexpr uint64 MI_REGS_BASE_ADDRESS = 0x04300000;
int vr4300::init( std::shared_ptr<FuncMemory> m)
{
... | 1,871 |
887 | <filename>deps/fcl/include/fcl/interval_tree.h
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, <NAME>, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
... | 1,403 |
453 | package com.waylau.spring.boot.blog.repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import com.waylau.spring.boot.blog.domain.User;
/**
* 用户仓库.
*
* @since 1.0.0 2017年3月2日
* @author ... | 279 |
2,151 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package com.squareup.leakcanary;
// Normally generated by Gradle.
class BuildConfig {
static final String LIBRARY_VERSION = "1.4-beta1 (chromium)";
... | 126 |
1,093 | /**
* Provides classes for configuration - parsers, namespace handlers, factory beans.
*/
package org.springframework.integration.ip.config;
| 34 |
1,144 | <filename>backend/de.metas.adempiere.adempiere/client/src/main/java/org/adempiere/ui/IContextMenuAction.java<gh_stars>1000+
package org.adempiere.ui;
/*
* #%L
* de.metas.adempiere.adempiere.client
* %%
* Copyright (C) 2015 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* ... | 817 |
1,350 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.cognitiveservices.language.luis.authoring.models;
import ja... | 1,054 |
1,139 |
package com.journaldev.xml.sax;
import java.util.ArrayList;
import java.util.List;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import com.journaldev.xml.Employee;
public class MyHandler extends DefaultHandler {
// List to hold Employees object
priva... | 786 |
3,212 | /*
* 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 ... | 977 |
1,144 | /*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1996, 97, 98, 99, 2000 by <NAME>
* Copyright (C) 1999, 2000 Silicon Graphics, Inc.
*/
#ifndef _ASM_POSIX_TYPES_H
#define _... | 298 |
1,800 | package com.limpoxe.fairy.core.exception;
/**
* Created by cailiming on 16/11/18.
*/
public class PluginNotFoundError extends Error {
public PluginNotFoundError(String detailMessage) {
super(detailMessage);
}
public PluginNotFoundError(String detailMessage, Throwable throwable) {
super... | 157 |
1,144 | package de.metas.handlingunits;
/*
* #%L
* de.metas.handlingunits.base
* %%
* Copyright (C) 2015 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 2 of the
... | 997 |
1,992 | <reponame>samwestmoreland/please
// please_sandbox is a very small binary to implement sandboxing
// of tests (and possibly other build actions) via cgroups.
// Essentially this is a very lightweight replacement for Docker
// where we would use it for tests to avoid port clashes etc.
//
// Note that this is a no-op on ... | 482 |
778 | /*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
namespace L0 {
// Method called by global factory enabler
template <typename Type>
void populateFactoryTable();
} // namespace L0
| 74 |
2,151 |
/*
This Java source file was generated by test-to-java.xsl
and is a derived work from the source document.
The source document contained the following notice:
Copyright (c) 2001-2004 World Wide Web Consortium,
(Massachusetts Institute of Technology, Institut National de
Recherche en Informatique et en Automatique, K... | 1,141 |
1,056 | <reponame>timfel/netbeans<gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache Lice... | 3,424 |
1,602 | <gh_stars>1000+
typedef struct _R {
int x;
} R;
static void foo(R r) {
printf("foo got: %d\n", r.x);
}
static void bar(R* r) {
printf("bar got: %d\n", r->x);
}
| 82 |
1,603 | package com.linkedin.datahub.graphql.types.container.mappers;
import com.linkedin.common.DataPlatformInstance;
import com.linkedin.common.Deprecation;
import com.linkedin.common.GlobalTags;
import com.linkedin.common.GlossaryTerms;
import com.linkedin.common.InstitutionalMemory;
import com.linkedin.common.Ownership;
i... | 2,553 |
1,475 | <reponame>mhansonp/geode
/*
* 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
*... | 10,506 |
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 ... | 2,289 |
479 | import windows
import windows.generated_def as gdef
evtlogmgr = windows.system.event_log
print("Event log Manager is: {0}".format(evtlogmgr))
print("They are <{0}> channels".format(len(list(evtlogmgr.channels))))
print("They are <{0}> publishers".format(len(list(evtlogmgr.publishers))))
FIREWALL_CHANNEL = "Microsoft... | 877 |
344 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | 2,133 |
653 | //==------- assert_happened.hpp - Assert signalling structure --------------==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 418 |
303 | <reponame>mr-c/LightZone<gh_stars>100-1000
/* Copyright (C) 2005-2011 <NAME> */
package com.lightcrafts.utils.cache;
/**
* A <code>CacheBlock</code> contains information about a contiguous block in
* the cache: its position and size.
*
* @author <NAME> [<EMAIL>]
*/
public final class CacheBlock {
//////////... | 539 |
32,544 | <reponame>DBatOWL/tutorials<filename>core-java-modules/core-java-lang-oop-methods/src/test/java/com/baeldung/utilities/StringUtilsUnitTest.java
package com.baeldung.utilities;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.*;
class StringUtilsUnitTest {
@Test
void givenAnEmp... | 352 |
3,469 | import csv
import pandas as pd
from get_addr_longitude_latitude import get_addr_longitude_latitude
import threading
import time
import os
if not os.path.exists('./csv/全国工业园区企业简要信息_addr.csv'):
header = ['province', 'city', 'county', 'park', 'parkaddr', 'parkxy', 'parkx', 'parky', 'area', 'numcop', 'company',
... | 2,308 |
335 | <gh_stars>100-1000
{
"word": "Aside",
"definitions": [
"A remark or passage in a play that is intended to be heard by the audience but unheard by the other characters in the play.",
"A remark not intended to be heard by everyone present.",
"A remark that is not directly related to the ma... | 129 |
447 | #include <stdio.h>
#include <cstdlib>
#include <sstream>
#include <dlfcn.h>
#include <limits.h>
#include <string>
#include <cstring>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "coreruncommon.h"
#include "binding.hpp"
static const char* serverGcVar = "CORECLR_SERVER_GC";
const char* useServe... | 211 |
887 | package org.javers.core.diff.custom;
import java.util.Objects;
@FunctionalInterface
public interface CustomValueToStringTemplate<T> extends CustomValueComparator<T> {
@Override
default boolean equals(T a, T b) {
return Objects.equals(a, b);
}
}
| 96 |
5,169 | <reponame>morizotter/Specs<filename>Specs/BlurAnimation/0.0.2/BlurAnimation.podspec.json
{
"name": "BlurAnimation",
"version": "0.0.2",
"summary": "A subclass of UIImageView that applies blur and animations. Blur effect using StackBlur",
"description": " The BlurAnimation creates a spyglass or... | 410 |
1,144 | <gh_stars>1000+
package de.metas.adempiere.gui.search.impl;
/*
* #%L
* de.metas.handlingunits.base
* %%
* Copyright (C) 2015 metas GmbH
* %%
* 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 Foundati... | 1,837 |
2,209 | #!/usr/bin/env python2
"""
signal_def.py
"""
from __future__ import print_function
import signal
from typing import List, Dict, Tuple
def _MakeSignals():
# type: () -> Dict[str, int]
"""Piggy-back on CPython to get a list of portable signals.
When Oil is ported to C, we might want to do something like bash/d... | 347 |
852 | #include "RecoJets/JetProducers/plugins/CastorJetIDProducer.h"
#include "DataFormats/JetReco/interface/CastorJetID.h"
#include <vector>
//
// constants, enums and typedefs
//
//
// static data member definitions
//
//
// constructors and destructor
//
CastorJetIDProducer::CastorJetIDProducer(const edm::ParameterSet... | 800 |
771 | # Copyright 2019 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 2,730 |
1,565 | <gh_stars>1000+
/*
* This file is part of LuckPerms, licensed under the MIT License.
*
* Copyright (c) lucko (Luck) <<EMAIL>>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), t... | 2,313 |
1,338 | /*
* Copyright 2011, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#ifndef HID_WRITER_H
#define HID_WRITER_H
#include "HIDDataTypes.h"
class HIDWriter {
public:
HIDWriter(size_t blockSize = 20);
~HIDWriter();
// High Level
status_t DefineInputPadding(uint8 count,
... | 767 |
4,772 | package example.service;
import example.repo.Customer303Repository;
import org.springframework.stereotype.Service;
@Service
public class Customer303Service {
public Customer303Service(Customer303Repository repo) {}
}
| 60 |
410 | <reponame>caryll/node-tin
#include "dep/json-builder.h"
#include "otfcc/sfnt.h"
#include "otfcc/font.h"
#include "aliases.h"
#include "platform.h"
#include "stopwatch.h"
#ifndef MAIN_VER
#define MAIN_VER 0
#endif
#ifndef SECONDARY_VER
#define SECONDARY_VER 0
#endif
#ifndef PATCH_VER
#define PATCH_VER 0
#endif
void p... | 4,934 |
2,540 | <gh_stars>1000+
package bar;
/**
* Foo
*/
public class Foo {
/** perfom request
*
* @param name user name
* @param password <PASSWORD>
*/
public void request(String name, String password) {
}
} | 92 |
435 | {
"copyright_text": "Standard YouTube License",
"description": "Keynote: Data Science Workflow",
"duration": 2806,
"language": "eng",
"recorded": "2017-11-27",
"related_urls": [
{
"label": "schedule",
"url": "https://pydata.org/nyc2017/schedule/"
},
{
"label": "slides",
"... | 314 |
3,508 | <reponame>Anshul1507/Leetcode
package com.fishercoder.solutions;
public class _565 {
public static class Solution1 {
public int arrayNesting(int[] nums) {
if (nums == null || nums.length == 0) {
return 0;
}
boolean[] visited = new boolean[nums.length];
... | 427 |
1,401 | # built-in
from math import isclose
# external
import pytest
# project
import textdistance
ALG = textdistance.MongeElkan
@pytest.mark.parametrize('left, right, expected', [
(['Niall'], ['Neal'], .805),
(['Niall'], ['Nigel'], 0.7866666666666667),
])
def test_similarity(left, right, expected):
actual = ... | 158 |
348 | {"nom":"Saulxures-lès-Vannes","dpt":"Meurthe-et-Moselle","inscrits":261,"abs":55,"votants":206,"blancs":17,"nuls":3,"exp":186,"res":[{"panneau":"2","voix":99},{"panneau":"1","voix":87}]} | 84 |
575 | <reponame>sarang-apps/darshan_browser<filename>chrome/browser/profiling_host/chrome_browser_main_extra_parts_profiling.h
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_PROFILING_... | 357 |
20,995 | // Copyright 2021 the V8 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.
#ifndef INCLUDE_V8_DATA_H_
#define INCLUDE_V8_DATA_H_
#include "v8-local-handle.h" // NOLINT(build/include_directory)
#include "v8config.h" //... | 474 |
2,151 | /*
* Copyright (C) 2015 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 applicable l... | 501 |
5,342 | <filename>src/vp8/util/debug.cc<gh_stars>1000+
#include <sys/types.h>
#ifdef _WIN32
#include <io.h>
#include <fcntl.h>
#else
#include <unistd.h>
#include <sys/fcntl.h>
#endif
#include <errno.h>
#include "debug.hh"
#include "memory.hh"
namespace LeptonDebug{
int med_err;
int amd_err;
int avg_err;
int ori_err;
int loc_e... | 1,471 |
590 | /*!
@file
@author <NAME>
@date 07/2008
*/
#include "Precompiled.h"
#include "ItemBoxWindow.h"
namespace demo
{
ItemBoxWindow::ItemBoxWindow(const std::string& _layout) :
BaseLayout(_layout)
{
assignBase(mItemBox, "box_Items");
}
} // namespace demo
| 109 |
3,861 | /*
* proto.h -- function prototypes
*
* SOFTWARE RIGHTS
*
* We reserve no LEGAL rights to the Purdue Compiler Construction Tool
* Set (PCCTS) -- PCCTS is in the public domain. An individual or
* company may do whatever they wish with source code distributed with
* PCCTS or the code generated by PCCTS, ... | 18,944 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.