max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,531 | package com.sleekbyte.tailor.functional;
import com.sleekbyte.tailor.common.Messages;
import com.sleekbyte.tailor.common.Rules;
import com.sleekbyte.tailor.common.Severity;
import com.sleekbyte.tailor.output.Printer;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
@RunWith(MockitoJUnit... | 1,305 |
341 | <reponame>hkr86/instapy-cli<filename>setup.py<gh_stars>100-1000
from os import path
from io import open
from setuptools import setup, find_packages
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_descr... | 787 |
332 | // Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.queries.wall;
import com.vk.api.sdk.client.AbstractQueryBuilder;
import com.vk.api.sdk.client.VkApiClient;
import com.vk.api.sdk.client.actors.UserActor;
import com.vk.api.sdk.objects.base.responses.BoolResponse;
import java.uti... | 534 |
361 | import torch
from abc import ABC, abstractmethod
from torch_scatter import scatter
class Sampler(ABC):
def __init__(self, intraview_negs=False):
self.intraview_negs = intraview_negs
def __call__(self, anchor, sample, *args, **kwargs):
ret = self.sample(anchor, sample, *args, **kwargs)
... | 1,596 |
335 | <reponame>Safal08/Hacktoberfest-1<gh_stars>100-1000
{
"word": "Finished",
"definitions": [
"(of a task or activity) brought to an end; completed.",
"(of a person) no longer useful or valued; ruined.",
"(of a person's work) expert or accomplished."
],
"parts-of-speech": "Adjective... | 131 |
2,338 | //===-------- Error.h - Enforced error checking for ORC RT ------*- C++ -*-===//
//
// 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
//
//===---------------------------... | 4,465 |
325 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
u"""
Created on 2016-12-21
@author: cheng.li
"""
import unittest
import numpy as np
import pandas as pd
from PyFin.Analysis.SecurityValueHolders import SecurityLatestValueHolder
from PyFin.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecurityMovingAverage
fro... | 3,841 |
2,838 | /**
* Copyright (c) Glow Contributors. See CONTRIBUTORS file.
*
* 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 b... | 4,705 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/iTunesStoreUI.framework/iTunesStoreUI
*/
#import <iTunesStoreUI/iTunesStoreUI-Structs.h>
#import <iTunesStoreUI/NSCoding.h>
#import <iTunesStoreUI/XXUnknownSuperclass.h>
#import <iTunesStoreUI/NSCopying.h>
@class NS... | 817 |
1,590 | <reponame>libc16/azure-rest-api-specs
{
"parameters": {
"resourceGroupName": "mms-eus",
"workspaceName": "testLinkStorageAccountsWS",
"api-version": "2020-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-00000000000"
},
"responses": {
"200": {
"body": {
"value": [
... | 1,875 |
487 | <reponame>srivani/p4c<gh_stars>100-1000
/*
Copyright 2016 VMware, 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 ... | 579 |
4,095 | package com.xiecc.seeWeather.modules.main.domain;
/**
* Created by HugoXie on 16/7/25.
*
* Email: <EMAIL>
* GitHub: https://github.com/xcc3641
* Info:
*/
public class MultiUpdateEvent {
}
| 73 |
1,085 | #!/usr/bin/env python
# <NAME>
"""
Extract features from GFF file.
usage: %prog input1 out_file1 column features
"""
from __future__ import print_function
import sys
from bx.cookbook import doc_optparse
def stop_err(msg):
sys.stderr.write(msg)
sys.exit()
def main():
# Parsing Command Line here
op... | 574 |
338 | import pytest
from py_backwards.transformers.import_dbm import ImportDbmTransformer
@pytest.mark.parametrize('before, after', [
('import dbm',
'''
if __import__('six').PY2:
import anydbm as dbm
else:
import dbm
'''),
('from dbm import ndbm',
'''
if __import__('six').PY2:
import dbm ... | 274 |
511 | /* Copyright JS Foundation and other contributors, http://js.foundation
*
* 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 r... | 3,135 |
14,668 | // 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 IOS_CHROME_BROWSER_WEB_SAD_TAB_TAB_HELPER_H_
#define IOS_CHROME_BROWSER_WEB_SAD_TAB_TAB_HELPER_H_
#import <Foundation/Foundation.h>
#include "ba... | 1,638 |
543 | /*
* Copyright (c) 2013, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 2,988 |
991 | from urllib.request import urlretrieve, URLError
uri_fmt = 'https://portalstoragewuprod.azureedge.net/vision/{}/{}.jpg'
file_fmt = '{}_{}.jpg'
for service in ['Analysis', 'Thumbnail']:
for ix in range(1, 40):
uri = uri_fmt.format(service, ix)
img = file_fmt.format(service, ix)
try:
... | 235 |
430 | <reponame>asheraryam/stabilizer
#if !defined(RUNTIME_FUNCTION_H)
#define RUNTIME_FUNCTION_H
#include <string.h>
#include <sys/mman.h>
#include "Util.h"
#include "Jump.h"
#include "Trap.h"
#include "Heap.h"
#include "MemRange.h"
struct Function;
struct FunctionLocation;
struct FunctionHeader {
private:
union {
... | 1,545 |
473 | <gh_stars>100-1000
/*
Copyright (c) 2014 Cromulence LLC
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, pu... | 3,223 |
504 | /*
* Copyright 2011-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 1,348 |
2,360 | <reponame>kkauder/spack
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from ctest_log_parser import CTestLogParser
def test_log_parser(tmpdir):
log_file = tmpdir.j... | 572 |
584 | /*
Copyright 2013 Adobe
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)
*/
/**************************************************************************************************/
#ifndef STLAB_FOREST_HPP
#define... | 13,901 |
2,023 | #!/usr/bin/python
import sys
import getpass
import poplib
def popPeek(server, user, port=110):
try:
P = poplib.POP3(server, port)
P.user(user)
P.pass_(getpass.getpass())
except:
print "Failed to connect to server."
sys.exit(1)
deleted = 0
try:
l = P.l... | 594 |
15,179 | from jina.helper import get_internal_ip
from jina import __default_host__, __docker_host__
from jina.peapods.networking import get_connect_host, is_remote_local_connection
from jina.parsers import set_pea_parser
import pytest
docker_uses = 'docker://abc'
@pytest.mark.parametrize(
'bind_host, connect_host, conne... | 1,721 |
5,279 | /*
* 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 ... | 600 |
333 | /*
* Copyright (c) 2009 <NAME> University.
* 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
*
* ... | 1,708 |
13,006 | // Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... | 1,466 |
634 | <gh_stars>100-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. Th... | 1,218 |
1,000 | package com.cossacklabs.acrawriter;
import com.cossacklabs.themis.AsymmetricKey;
import com.cossacklabs.themis.InvalidArgumentException;
import com.cossacklabs.themis.KeyGenerationException;
import com.cossacklabs.themis.Keypair;
import com.cossacklabs.themis.KeypairGenerator;
import com.cossacklabs.themis.NullArgumen... | 1,900 |
1,326 | <filename>examples/postgres/src/main/java/com/github/braisdom/objsql/example/domains/Member.java
package com.github.braisdom.objsql.example.domains;
import com.github.braisdom.objsql.annotations.*;
import com.github.braisdom.objsql.example.transition.JsonColumnTransition;
import com.github.braisdom.objsql.relation.Rel... | 486 |
348 | {"nom":"Grémecey","circ":"4ème circonscription","dpt":"Moselle","inscrits":94,"abs":44,"votants":50,"blancs":1,"nuls":2,"exp":47,"res":[{"nuance":"LR","nom":"<NAME>","voix":25},{"nuance":"REM","nom":"<NAME>","voix":22}]} | 92 |
1,346 | <reponame>disrupted/Trakttv.bundle
import logging
import os
import platform
log = logging.getLogger(__name__)
class AndroidHelper(object):
_is_android = None
@classmethod
def is_android(cls):
if cls._is_android is not None:
return cls._is_android
try:
# Check and... | 601 |
347 | <gh_stars>100-1000
package org.ovirt.engine.core.bll.exportimport;
import java.util.HashMap;
import java.util.Map;
import javax.inject.Inject;
import org.ovirt.engine.core.bll.NonTransactiveCommandAttribute;
import org.ovirt.engine.core.bll.context.CommandContext;
import org.ovirt.engine.core.bll.storage.ovfstore.Ov... | 1,052 |
777 | <gh_stars>100-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.
#ifndef GyroscopeReading_h
#define GyroscopeReading_h
#include "modules/sensor/SensorReading.h"
namespace blink {
class GyroscopeRea... | 317 |
674 | /*
* AntiDupl Dynamic-Link Library.
*
* Copyright (c) 2002-2015 <NAME>, 2015 <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 r... | 2,718 |
617 | #include "Economy/RTSResourceSourceComponent.h"
#include "GameFramework/Actor.h"
#include "Net/UnrealNetwork.h"
#include "RTSContainerComponent.h"
#include "RTSGameplayTagsComponent.h"
#include "RTSLog.h"
#include "Libraries/RTSGameplayTagLibrary.h"
URTSResourceSourceComponent::URTSResourceSourceComponent(const FOb... | 1,167 |
6,451 | from great_expectations import DataContext
GREETING = r"""<cyan>
___ _ ___ _ _ _
/ __|_ _ ___ __ _| |_ | __|_ ___ __ ___ __| |_ __ _| |_(_)___ _ _ ___
| (_ | '_/ -_) _` | _| | _|\ \ / '_ \/ -_) _| _/ _` | _| / _ \ ' \(_-<
\___|_| \___\__,_|\__| |___/_\_\ .__/\___\__... | 1,009 |
56,632 | <reponame>thisisgopalmandal/opencv
#include <opencv2/core.hpp>
#include <opencv2/videoio.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp> // cv::Canny()
#include <iostream>
using namespace cv;
using std::cout; using std::cerr; using std::endl;
int main(int, char**)
{
Mat frame;
cout << "Ope... | 1,262 |
4,816 | """Types representation for json output."""
import enum
import hashlib
import re
from .common_types import COMMON_TYPES
from .func_info import CALL_CONVENTIONS
from .params_info import parse_func_parameters
from .parse_enums import Enum
from .parse_structs_unions import CompositeType
from .parse_structs_unions import... | 8,315 |
579 | <reponame>nitaxmx/celo-monorepo
{
"name": "celo-azure-build",
"version": "0.0.1",
"description": "",
"main": "index.js",
"scripts": {
"build-sh": "rm -rf build && mkdir -p build && ./build-sh validator && ./build-sh proxy && ./build-sh attester",
"build-json": "npm run build-sh && node build-json.js c... | 273 |
2,092 | """URLs that require login."""
from django.conf.urls import url
from readthedocs.organizations.views import private as views
urlpatterns = [
url(
r'^$',
views.ListOrganization.as_view(),
name='organization_list',
),
url(
r'^create/$',
views.CreateOrganizationSignup.... | 1,151 |
1,844 | <reponame>reshmabidikar/killbill
/*
* Copyright 2016 Groupon, Inc
* Copyright 2016 The Billing Project, LLC
*
* The Billing Project licenses this file to you 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... | 1,400 |
5,169 | {
"name": "Uatu",
"version": "0.0.2",
"summary": "Uatu: a low-friction Observable library.",
"description": "Uatu is a small library to add Observable functionality to your iOS project with (theoretically) no interference.\nIt is based on ideas from RxSwift and Observables.",
"homepage": "https://bitbucket.or... | 318 |
647 | <filename>include/trick/MessageTCDevice.hh
#ifndef MESSAGETCDEVICE_HH
#define MESSAGETCDEVICE_HH
/*
PURPOSE: ( MessageTCDevice Class )
*/
#include <pthread.h>
#include <vector>
#include "trick/MessageSubscriber.hh"
#include "trick/ThreadBase.hh"
#include "trick/tc.h"
namespace Trick {
class MessageTCDevice ;... | 1,562 |
559 | <reponame>AymaneZizi/Tutorials
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from keras.datasets import mnist
from keras.utils import to_categorical
from keras.models import Sequential, model_from_json
from keras.layers import Conv2D, MaxPool2D, Dropout, Dense, Flatten
from keras.preproc... | 1,605 |
12,377 | <reponame>qaz734913414/insightface
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICEN... | 811 |
375 | /*
* Copyright 2015 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.rf.ide.core.testdata.model.table;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.List... | 7,069 |
451 | <gh_stars>100-1000
/*
* Licensed to the bujiio organization of the Shiro project 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,299 |
373 | /*
* #%L
* ACS AEM Commons Bundle
* %%
* Copyright (C) 2017 Adobe
* %%
* 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... | 822 |
302 | from __future__ import print_function
import autopep8
import itertools
from lark import Lark, Transformer
from os import path
from scipy.stats import rankdata
from six import iteritems, next
class MyTransformer(Transformer):
def __init__(self):
self.cmdlist = []
self.window = 2
self.v... | 10,485 |
533 | # Scripted Forms -- Making GUIs easy for everyone on your team.
# Copyright (C) 2017 <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
#... | 2,116 |
326 | from . import *
from udsoncan.Response import Response
from udsoncan.exceptions import *
import struct
class DynamicallyDefineDataIdentifier(BaseService):
_sid = 0x2C
supported_negative_response = [ Response.Code.SubFunctionNotSupported,
Response.C... | 2,295 |
605 | <gh_stars>100-1000
//=======- ASTUtis.h ---------------------------------------------*- C++ -*-==//
//
// 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
//
//===--------... | 907 |
710 | <reponame>soulqw/SoulPermission
package com.qw.soul.permission.checker;
import android.content.Context;
import android.os.Build;
import android.provider.Settings;
import androidx.core.app.NotificationManagerCompat;
import com.qw.soul.permission.bean.Special;
import com.qw.soul.permission.debug.PermissionDebug;
import... | 905 |
3,594 | #: E721
if type(res) == type(42):
pass
#: E721
if type(res) != type(""):
pass
#: E721
import types
if res == types.IntType:
pass
#: E721
import types
if type(res) is not types.ListType:
pass
#: E721
assert type(res) == type(False) or type(res) == type(None)
#: E721
assert type(res) == type([])
#: E721... | 548 |
5,079 | from tests.unit import AWSMockServiceTestCase
from boto.ec2.connection import EC2Connection
class TestCancelSpotInstanceRequests(AWSMockServiceTestCase):
connection_class = EC2Connection
def default_body(self):
return b"""
<CancelSpotInstanceRequestsResponse xmlns="http://ec2.amazonaws.... | 2,604 |
349 | <reponame>duca/pal<filename>tests/image/check_p_median3x3_f32.c
#include <utest.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
#include <math.h>
#include <pal.h>
#include <common.h>
#define MAX_ABS_DIFF 0.0001
#define CANARY 0x5050aa55
#define OK 1
#define NOK 0... | 2,306 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-42jq-8pvg-2649",
"modified": "2021-12-02T00:01:10Z",
"published": "2021-11-30T00:00:48Z",
"aliases": [
"CVE-2021-43691"
],
"details": "An unspecified version of tripexpress is affected by a path manipulation vulnerability in file system/helpers/dompdf/load_font... | 361 |
11,356 | <gh_stars>1000+
// Copyright <NAME> 2007.
// Copyright <NAME> 2007
// Use, modification and distribution are subject to 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)
#ifndef BOOST_MATH_SF_DETAIL_INV_T_HPP
#define BOOST_MATH_S... | 9,113 |
663 | <reponame>mchelen-gov/integrations-core<filename>cloud_foundry_api/tests/test_utils.py
# (C) Datadog, Inc. 2020-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from datadog_checks.cloud_foundry_api.utils import date_to_ts, get_next_url, join_url
def test_get_next_url():
... | 656 |
2,023 | <gh_stars>1000+
import pygtk,math,string
pygtk.require('2.0')
import gtk
class mainwin():
def __init__(self): #This function autorun at assign object to class >> "win=mainwin()"
self.mwin=gtk.Window()
self.mwin.set_size_request(300,270)
self.mwin.set_resizable(False)
self.mwi... | 3,214 |
1,299 | <reponame>MC-JY/tika<filename>tika-core/src/test/java/org/apache/tika/sax/BasicContentHandlerFactoryTest.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 owne... | 5,496 |
318 | <gh_stars>100-1000
from subprocess import Popen, PIPE
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.http import require_POST
from django.contrib.auth.decorators import permission_required
from pygments import highlight
from pygments.lexers impor... | 469 |
2,542 | <reponame>gridgentoo/ServiceFabricAzure
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ----------------------------------------------------... | 959 |
348 | {"nom":"Tourliac","circ":"3ème circonscription","dpt":"Lot-et-Garonne","inscrits":93,"abs":46,"votants":47,"blancs":3,"nuls":0,"exp":44,"res":[{"nuance":"REM","nom":"<NAME>","voix":34},{"nuance":"FN","nom":"M. <NAME>","voix":10}]} | 95 |
4,262 | /*
* 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,519 |
852 | <filename>Validation/RecoMuon/test/makePlot.cpp
#include "TROOT.h"
#include "TSystem.h"
#include "TStyle.h"
#include "TFile.h"
#include "TH1F.h"
#include "TH2F.h"
#include "TTree.h"
//#include "Riosteram.h"
#include "TPDF.h"
#include "TF1.h"
#include "TGraphAsymmErrors.h"
#include <iostream>
#include <fstream>
#includ... | 6,676 |
11,356 | <reponame>Bpowers4/turicreate
#define BOOST_TEST_MODULE annotation_utility_tests
#include <visualization/annotation/image_classification.hpp>
#include <core/data/sframe/gl_sarray.hpp>
#include <boost/test/unit_test.hpp>
#include <core/util/test_macros.hpp>
#include <core/storage/sframe_data/testing_utils.hpp>
#inclu... | 786 |
1,964 | <gh_stars>1000+
//
// immer: immutable data structures for C++
// Copyright (C) 2016, 2017, 2018 <NAME>
//
// This software is distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//
#pragma once
#include <immer/detail/arrays/with_capa... | 2,318 |
409 | <filename>demos/unassigned_or_unused/soft_to_hard_masking.cpp<gh_stars>100-1000
// ==========================================================================
// SeqAn - The Library for Sequence Analysis
// ==========================================================================
// Copyright (c) 2006-20... | 1,123 |
1,199 | <filename>audio/liboss/files/patch-lib-ossins.c
--- lib/ossins.c.orig 2005-08-15 16:14:02.000000000 +0900
+++ lib/ossins.c 2005-08-15 16:14:05.000000000 +0900
@@ -23,7 +23,7 @@
}
int close (int x) {return liboss_close(x);}
-int write (int x, const void *y, size_t l)
+ssize_t write (int x, const void *y, size_t l)
... | 163 |
1,755 | <gh_stars>1000+
/*
Copyright (c) 1998-2018 University Corporation for Atmospheric Research/Unidata
See COPYRIGHT for license information.
*/
#ifndef NCINDEX_H
#define NCINDEX_H
/* If defined, then the hashmap is used.
This for performance experimentation
*/
#undef NCNOHASH
#undef NCINDEXDEBUG
#include "nclist.h"... | 1,035 |
541 | from helpers import serialize_text, deserialize_text, translate, hash
import yaml
import sys
import os
import re
class DB:
def __init__(self, path):
self.path = path
self.db = {}
def load(self):
if os.path.exists(self.path):
with open(self.path) as input_file:
... | 2,728 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.botservice.models;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import ... | 427 |
1,127 | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <variadic_split_shape_inference.hpp>
#include "utils.hpp"
using namespace ov;
using namespace ov::intel_cpu;
static std::shared_ptr<op::v1::VariadicSplit> build_variadic_split(PartialShape data_shape,
... | 1,092 |
372 | """Default configuration parameters for MSAF."""
import logging
import numpy as np
from msaf.configparser import \
(AddConfigVar, BoolParam, ConfigParam, EnumStr, FloatParam,
IntParam, StrParam, ListParam, MsafConfigParser)
_logger = logging.getLogger('msaf.configdefaults')
config = MsafConfigParser()
# G... | 1,449 |
892 | <reponame>westonsteimel/advisory-database-github<filename>advisories/unreviewed/2022/05/GHSA-2hhx-g28r-fqwv/GHSA-2hhx-g28r-fqwv.json
{
"schema_version": "1.2.0",
"id": "GHSA-2hhx-g28r-fqwv",
"modified": "2022-05-01T18:14:48Z",
"published": "2022-05-01T18:14:48Z",
"aliases": [
"CVE-2007-3544"
],
"detai... | 507 |
2,890 | package com.github.ltsopensource.remoting.protocol;
/**
* 标识RemotingCommand是请求还是应答类型
*/
public enum RemotingCommandType {
REQUEST_COMMAND,
RESPONSE_COMMAND;
}
| 84 |
665 | <reponame>opencirclesolutions/isis
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache Licen... | 4,441 |
410 | """N-dimensional tensor storing value in encrypted form using CKKS.
"""
from typing import List
import tenseal as ts
from tenseal.tensors.abstract_tensor import AbstractTensor
class CKKSTensor(AbstractTensor):
def __init__(
self,
context: "ts.Context" = None,
tensor=None,
scale: f... | 2,480 |
705 | <filename>01_Intro to Java/Basic operation/Exercise/ICE10/src/CS1A/ICE10/Basic_I_O.java
package CS1A.ICE10;
import becker.robots.*;
import java.util.Scanner;
public class Basic_I_O extends Object {
public static void main(String[] args) {
City toronto = new City();
Robot joe = new Robot(to... | 1,195 |
1,374 | package def.dom;
public class CSSConditionRule extends CSSGroupingRule {
public String conditionText;
public static CSSConditionRule prototype;
public CSSConditionRule(){}
}
| 50 |
5,169 | {
"name": "CLUUserAgent",
"version": "0.1.0",
"summary": "Consistent User-Agent Strings for Cocoa",
"description": " Provide consistent User-Agent strings for Cocoa apps:\n\n * Reproduce the default User-Agent for iOS\n * Provide ways to customiz... | 342 |
505 | <reponame>hartraft/blog-tutorials
package de.rieckpil.blog.user;
import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
import java.util.ArrayList;
import java.util.List;
@Service
public class UserService {
private final List<User> inMemoryUserList = new ArrayList<>();
@PostConst... | 315 |
6,160 | <gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you under the Apache License, Version 2.0
* (the "Lic... | 1,339 |
615 | //
// Programmer: <NAME> <<EMAIL>>
// Creation Date: Sun Apr 5 13:07:18 PDT 1998
// Last Modified: Mon Jan 18 18:25:23 PST 2021 Some cleanup
// Filename: midifile/src/Options.cpp
// Web Address: http://midifile.sapp.org
// Syntax: C++11
// vim: ts=3 noexpandtab
//
// Description: Interface... | 9,466 |
30,023 | <filename>tests/components/balboa/conftest.py
"""Provide common fixtures."""
from __future__ import annotations
from collections.abc import Generator
import time
from unittest.mock import MagicMock, patch
from pybalboa.balboa import text_heatmode
import pytest
@pytest.fixture(name="client")
def client_fixture() -> ... | 1,419 |
1,909 | package org.knowm.xchange.btctrade.service;
import java.io.IOException;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.btctrade.dto.BTCTradeSecretData;
import org.knowm.xchange.btctrade.dto.BTCTradeSecretResponse;
import org.knowm.xchange.exceptions.ExchangeException;
public class BTCTradeSecretDataServi... | 311 |
6,036 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "orttraining/core/graph/gradient_builder_base.h"
#include <vector>
#include <string>
#include <nlohmann/json.hpp>
#include "core/framework/tensorprotoutils.h"
namespace onnxruntime {
namespace training {
using j... | 8,032 |
451 | from lightning_transformers.task.nlp.question_answering.datasets.squad import SquadDataModule # noqa: F401
| 35 |
357 | <reponame>dwaynehoy-b2cloud/Ollie<filename>compiler/src/test/java/ollie/internal/ModelAdapterTest.java<gh_stars>100-1000
/*
* 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 t... | 2,591 |
3,227 | <filename>Surface_mesh_deformation/benchmark/Surface_mesh_deformation/optimal_rotation/benchmark_for_concept_models.cpp
#include <CGAL/Timer.h>
#include <iostream>
#include <fstream>
#include <vector>
// models of DeformationClosestRotationTraits_3
#include <CGAL/Deformation_Eigen_closest_rotation_traits_3.h>
#include... | 979 |
1,346 | package com.ctrip.platform.dal.daogen.resource;
import com.ctrip.platform.dal.daogen.CodeGenContext;
import com.ctrip.platform.dal.daogen.DalGenerator;
import com.ctrip.platform.dal.daogen.domain.FreeSqlClassPojoNames;
import com.ctrip.platform.dal.daogen.domain.Status;
import com.ctrip.platform.dal.daogen.domain.Task... | 18,139 |
60,067 | <filename>torch/jit/_pickle.py
# These functions are referenced from the pickle archives produced by
# ScriptModule.save()
# These (`build_*`) functions used to be used by `pickler.cpp` to specify
# the type of the list for certain special types, but now all lists get
# a type attached and restored via `restore_type_... | 308 |
478 | <reponame>undeadinu/minko<gh_stars>100-1000
/*
Copyright (c) 2014 Aerys
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, m... | 1,343 |
6,238 | <reponame>brettcannon/vibora
from collections import deque
from vibora.templates import Template, TemplateParser, ForNode, EvalNode, TextNode, IfNode, ElseNode
from vibora.tests import TestSuite
class NodesParsingSuite(TestSuite):
def test_for_node(self):
"""
:return:
"""
tp = Te... | 1,182 |
1,398 | import requests
from .. import config
from ..logging import pipeline_events
from .notifier import ChatNotifier
class Teams(ChatNotifier):
def __init__(self, token):
"""
Pipeline notifications via Microsoft Teams
Args:
token: The id of the notification web hook, e.g. `'<PASSWOR... | 1,559 |
2,151 | /*
* Copyright (C) 2011 Apple 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. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | 6,500 |
1,327 | <reponame>intel/mkl-dnn
/*******************************************************************************
* Copyright 2020-2022 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License a... | 2,036 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.