max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,718 | <filename>torchaudio/models/wav2vec2/utils/__init__.py
from .import_fairseq import import_fairseq_model
from .import_huggingface import import_huggingface_model
__all__ = [
"import_huggingface_model",
"import_fairseq_model",
]
| 89 |
14,499 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package codetoanalyze.java.nullsafe;
import android.annotation.SuppressLint;
import android.view.View;
/**
* Test to ensure we h... | 291 |
506 | <reponame>Ashindustry007/competitive-programming
// https://codeforces.com/problemsets/acmsguru/problem/99999/116
#include <bits/stdc++.h>
using namespace std;
using vb=vector<bool>;
using vi=vector<int>;
int INF=1000000000;
int main(){
int n;
cin >>n;
vb p(n+1,true);
p[0]=p[1]=false;
for(int i=2;i<=n;i++)
... | 654 |
480 | <reponame>weicao/galaxysql<filename>polardbx-optimizer/src/main/java/com/alibaba/polardbx/optimizer/core/function/calc/scalar/string/Length.java
/*
* 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 complia... | 1,030 |
348 | {"nom":"Saint-Jean-du-Pin","circ":"5ème circonscription","dpt":"Gard","inscrits":1193,"abs":655,"votants":538,"blancs":68,"nuls":32,"exp":438,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":262},{"nuance":"FN","nom":"<NAME>","voix":176}]} | 95 |
631 | package com.neu.his.cloud.service.dms.mapper;
import com.neu.his.cloud.service.dms.model.SmsSkdRuleItem;
import com.neu.his.cloud.service.dms.model.SmsSkdRuleItemExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SmsSkdRuleItemMapper {
int countByExample(SmsSkdRuleItemExa... | 344 |
9,729 | <reponame>tetianakravchenko/beats
import os
import socket
import sys
from xpack_metricbeat import XPackTest, metricbeat
STATSD_HOST = '127.0.0.1'
STATSD_PORT = 8126
METRIC_MESSAGE = bytes('dagrun.duration.failed.a_dagid:200|ms|#k1:v1,k2:v2', 'utf-8')
class Test(XPackTest):
def test_server(self):
"""
... | 996 |
479 | <gh_stars>100-1000
/**
* 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, s... | 1,061 |
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... | 440 |
2,270 | <reponame>kzantow-audio/JUCE<gh_stars>1000+
//------------------------------------------------------------------------
// Project : VST SDK
//
// Category : Interfaces
// Filename : pluginterfaces/vst/ivstmidicontrollers.h
// Created by : Steinberg, 02/2006
// Description : VST MIDI Controller Enumeration
//... | 1,726 |
2,743 | from __future__ import unicode_literals
import logging
from django import forms
from django.utils.encoding import force_text
from django.utils.translation import ugettext
from django.utils.translation import ugettext_lazy as _
from documents.forms import DocumentForm
from .models import (
IMAPEmail, POP3Email, ... | 1,699 |
903 | package org.develnext.jphp.zend.ext.standard.date;
import static org.assertj.core.api.Assertions.assertThat;
import static org.develnext.jphp.zend.ext.standard.date.DateTimeTokenizer.Token.EOF;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
im... | 5,999 |
476 | <filename>hetu-greenplum/src/main/java/io/hetu/core/plugin/greenplum/GreenPlumSqlPlugin.java
/*
* 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... | 758 |
9,136 | <gh_stars>1000+
"""This file implements the robot specific pose tools."""
import math
import attr
import numpy as np
from pybullet_envs.minitaur.envs_v2.utilities import laikago_pose_utils
from pybullet_envs.minitaur.envs_v2.utilities import mini_cheetah_pose_utils
from pybullet_envs.minitaur.envs_v2.utilities import... | 3,692 |
1,585 | <filename>ompi/mpi/java/java/Op.java
/*
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee and The University
* ... | 1,367 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-rj9r-9hqf-9323",
"modified": "2022-04-09T00:00:39Z",
"published": "2022-04-03T00:01:00Z",
"aliases": [
"CVE-2022-1098"
],
"details": "Delta Electronics DIAEnergie (all versions prior to 1.8.02.004) are vulnerable to a DLL hijacking condition. When combined with... | 452 |
5,169 | {
"name": "FetchAndSetImage",
"version": "0.1.0",
"summary": "FetchAndSetImage is a set image to UIViewImage using URL.",
"description": "'FetchAndSetImage is a set image to UIViewImage using URL.'",
"homepage": "https://github.com/dada4747/FetchAndSetImage",
"license": {
"type": "MIT",
"file": "LIC... | 266 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/WebCore.framework/WebCore
*/
#import <WebCore/DOMHTMLElement.h>
@class DOMHTMLFormElement, NSURL, DOMDocument, NSString;
@interface DOMHTMLObjectElement : DOMHTMLElement {
}
@property(readonly, copy) NSURL *absolut... | 1,603 |
339 | <filename>src/RaZ/Render/Material.cpp
#include "RaZ/Render/Material.hpp"
#include "RaZ/Render/Renderer.hpp"
namespace Raz {
void Material::loadBaseColorMap(const FilePath& filePath, int bindingIndex, bool flipVertically) {
m_baseColorMap = Texture::create(filePath, bindingIndex, flipVertically);
}
MaterialCookTorr... | 2,834 |
366 | <reponame>jettangtzj/WechatHook-Dusan<filename>MainApp/src/main/java/site/duqian/wchook/base/BaseHook.java
package site.duqian.wchook.base;
import android.content.Context;
/**
* Created by Dusan (duqian) on 2017/5/11 - 12:24.
* E-mail: <EMAIL>
* Description:BaseHook
* remarks:
*/
public class BaseHook {
prot... | 201 |
1,210 | /*==============================================================================
Copyright (c) 2011 <NAME>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=====================================================... | 387 |
1,615 | /**
* Created by MomoLuaNative.
* Copyright (c) 2019, Momo Group. All rights reserved.
*
* This source code is licensed under the MIT.
* For the full copyright and license information,please view the LICENSE file in the root directory of this source tree.
*/
package com.immomo.mls.util;
import android.cont... | 3,811 |
344 | <gh_stars>100-1000
package com.clickhouse.jdbc.parser;
public enum StatementType {
UNKNOWN(LanguageType.UNKNOWN, OperationType.UNKNOWN, false), // unknown statement
ALTER(LanguageType.DDL, OperationType.UNKNOWN, false), // alter statement
ALTER_DELETE(LanguageType.DML, OperationType.WRITE, false), // delet... | 898 |
848 |
#
# Copyright 2019 Xilinx 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 writi... | 417 |
8,805 | <gh_stars>1000+
/* boost random auto_link.hpp header file
*
* Copyright <NAME> 2010
* 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)
*
* $Id$
*/
#ifndef BOOST_RANDOM_DETAIL_AUTO_LINK_HPP
#define B... | 492 |
8,054 | <filename>src/unitedentry/entrywidgetfactory.cpp<gh_stars>1000+
#include "entrywidgetfactory.h"
#include <QLabel>
#include <widgets/widgetsfactory.h>
#include <widgets/treewidget.h>
using namespace vnotex;
QSharedPointer<QTreeWidget> EntryWidgetFactory::createTreeWidget(int p_columnCount)
{
auto tree = QSharedP... | 318 |
17,395 | <reponame>scratchmex/django-rest-framework
import pytest
from django.db import models
from django.http import Http404
from django.shortcuts import get_object_or_404
from django.test import TestCase
from rest_framework import generics, renderers, serializers, status
from rest_framework.response import Response
from res... | 10,522 |
3,861 | /*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2005,2006,2007,2008 Free Software Foundation, Inc.
*
* GRUB 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 3 of the License, ... | 2,251 |
410 | #include "tenseal/cpp/tensors/ckksvector.h"
using namespace seal;
using namespace std;
namespace tenseal {
CKKSVector::CKKSVector(const shared_ptr<TenSEALContext>& ctx,
const CKKSVector::plain_t& vec,
std::optional<double> scale) {
this->link_tenseal_context(ctx);
... | 9,397 |
675 | <reponame>sophie-h/gtk4-rs
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files.git)
// DO NOT EDIT
#include "manual.h"
#include <stdio.h>
#define PRINT_CONSTANT(CONSTANT_NAME) \
printf("%s;", #CONSTANT_NAME); \
printf(_Generic((CONSTANT_NAME... | 2,418 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-vcpg-cfvx-g342",
"modified": "2022-05-01T18:21:49Z",
"published": "2022-05-01T18:21:49Z",
"aliases": [
"CVE-2007-4242"
],
"details": "The pop3 Proxy in Astaro Security Gateway (ASG) 7 does not perform virus scanning of attachments that exceed the maximum attach... | 597 |
342 | <gh_stars>100-1000
//
// OSKPresentationManager_Protected.h
// unread
//
// Created by <NAME> on 12/5/13.
// Copyright (c) 2013 Nice Boy LLC. All rights reserved.
//
#import "OSKPresentationManager.h"
@class OSKNavigationController;
@interface OSKPresentationManager ()
- (BOOL)_navigationControllersShouldManage... | 145 |
4,901 | /*
* Copyright (c) 1997, 2007, 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,837 |
1,382 | <gh_stars>1000+
//
// polyfit_lagrange_example.c
//
// Test exact polynomial fit to sample data using Lagrange
// interpolating polynomials.
// SEE ALSO: polyfit_example.c
//
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "liquid.h"
#define OUTPUT_FILENAME "polyfit_lagrange_example.m"
int main()... | 1,068 |
1,467 | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file ... | 1,030 |
1,146 | /*
* 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,673 |
3,428 | <gh_stars>1000+
{"id":"00464","group":"easy-ham-2","checksum":{"type":"MD5","value":"a528da6b60ce0122804319d1d3a9a708"},"text":"From <EMAIL> Tue Aug 20 11:52:47 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Postfi... | 1,192 |
348 | <gh_stars>100-1000
{"nom":"Doncourt-sur-Meuse","circ":"1ère circonscription","dpt":"Haute-Marne","inscrits":35,"abs":13,"votants":22,"blancs":1,"nuls":2,"exp":19,"res":[{"nuance":"LR","nom":"<NAME>","voix":12},{"nuance":"REM","nom":"<NAME>","voix":7}]} | 103 |
320 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.jme3.gde.textureeditor;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.URISyntaxException;
import o... | 440 |
985 | /*
* (C) 2007-2012 Alibaba Group Holding Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 3,104 |
358 | # Basler USB3 Vision cameras can send event messages. For example, when a sensor
# exposure has finished, the camera can send an Exposure End event to the PC. The event
# can be received by the PC before the image data for the finished exposure has been completely
# transferred. This sample illustrates how to be not... | 2,097 |
558 | # -*- coding: utf-8 -*-
import allure
from behave import given
@given(u'passed step')
@given(u'{what} passed step')
@given(u'passed step {where}')
@given(u'{what} passed step {where}')
def step_impl(*args, **kwargs):
if 'with attachment' in kwargs.values():
allure.attach('Hi there!', name='user attachmen... | 512 |
1,299 | <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... | 831 |
2,338 | """
Test some expressions involving STL data types.
"""
import unittest2
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
class STLTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
@skipIf
@expectedFailureAll(bugn... | 1,189 |
590 | <reponame>LZU-OSLab/xfel
#ifndef __V831_REG_CCU_H__
#define __V831_REG_CCU_H__
#define V831_CCU_BASE (0x03001000)
#define CCU_PLL_CPUX_CTRL (0x000)
#define CCU_PLL_DDR0_CTRL (0x010)
#define CCU_PLL_PERI0_CTRL (0x020)
#define CCU_PLL_UNI_CTRL (0x028)
#define CCU_PLL_VIDEO0_CTRL (0x040)
#define CCU_PLL_AUD... | 822 |
628 | {
"bitbucket_file_added" : "${user} added file ${path} to Bitbucket repo ${bitbucket_repo} in ${node}",
"bitbucket_file_removed" : "${user} removed ${path_type} ${path} in Bitbucket repo ${bitbucket_repo} in ${node}",
"bitbucket_file_updated" : "${user} updated file ${path} in Bitbucket repo ${bitbucket_repo} in ... | 284 |
518 | {
"name": "Finamatic",
"category": "Accounting & Finance",
"start_url": "http://finamatic.fr",
"icons": [
{
"src": "https://cdn.filestackcontent.com/y9OagSOoSP2Y0M8GFzh6",
"platform": "browserx"
}
],
"theme_color": "#507ABD",
"scope": "http://finamatic.fr",
"bx_legacy_service_id": "f... | 154 |
3,371 | <reponame>KrunalStrategyX/ChipsLayoutManager
package com.beloo.widget.chipslayoutmanager.layouter.breaker;
public class ColumnBreakerFactory implements IBreakerFactory {
@Override
public ILayoutRowBreaker createBackwardRowBreaker() {
return new LTRBackwardColumnBreaker();
}
@Override
publi... | 146 |
347 | <reponame>Red-Asuka/nanomq
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include "../include/msg_pool.h"
#include "../include/dbg.h"
char * test_msg_pool()
{
nnl_msg_pool * mp;
nng_msg * msg, * msgs[65];
uint8_t rv = 0;
log("create msg pool?");
CHECK(nnl_msg_pool_create(&mp) == 0);
log("get?");
CH... | 859 |
388 | // -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.awt.event.MouseEvent;
import javax.swing.*;
import javax.swing.border.Border;
import javax.swing.event.MouseInputAdapter;
import javax.swing.event.MouseInputListener;
import javax.swing.pl... | 3,014 |
1,027 | // Copyright (c) 2012 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_MEDIA_WEBRTC_MEDIA_STREAM_CAPTURE_INDICATOR_H_
#define CHROME_BROWSER_MEDIA_WEBRTC_MEDIA_STREAM_CAPTURE_INDICATOR_H_
#include ... | 340 |
386 | <gh_stars>100-1000
#include "CUtils.h"
#include <QPoint>
#include <QPointF>
#include <QColor>
#include <QFont>
#include <QTextStream>
#include <cmath>
QVariant CUtils::textToVariant(const QString& text, int type)
{
switch (type)
{
case QMetaType::QStringList:
return text.split('|', QString::SkipEmptyPart... | 2,037 |
2,151 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/android/widget/thumbnail_generator.h"
#include <memory>
#include "base/android/jni_string.h"
#include "base/files/file_path.h"
... | 2,450 |
1,305 | #include "../../../rtaudio_c.h"
| 14 |
852 | // Date: 11.10.02
// Description: Transient Hit class for the calorimeters
#include "SimG4CMS/PPS/interface/TotemRPG4Hit.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <iostream>
TotemRPG4Hit::TotemRPG4Hit() : entry_(0) {
theIncidentEnergy_ = 0.0;
theTrackID_ = -1;
theUnitID_ = 0;
theTim... | 2,124 |
327 | <reponame>dorawyy/7_cola-cloud
package com.honvay.cola.cloud.vcc.cache;
/**
* @author LIQIU
* @date 2018-3-16
**/
public interface VerificationCodeCache {
/**
* 设置值
*
* @param cacheName
* @param key
* @param value
*/
void set(String cacheName, String key, String value, long ex... | 387 |
1,391 | <reponame>newluhux/plan9port<filename>src/libhtml/runetab.h
typedef struct AsciiInt AsciiInt;
struct AsciiInt {
char* key;
int val;
};
enum {
Ltab2space,
Lspace,
Lempty,
Lhash,
Lplus,
Lcommaspace,
Lminus,
Larrow,
Lone,
Llt,
Lgt,
Lquestion,
Lindex,
Lreset,
Lsubmit,
Lnot0to9,
Lisindex,
L_blank,
Lfr... | 386 |
702 | <filename>besu/src/test/java/org/hyperledger/besu/PrivacyReorgTest.java
/*
* Copyright ConsenSys AG.
*
* 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... | 8,514 |
1,040 | // Copyright (c) <NAME>
// Licensed under the MIT License
#include "Util.h"
#include <shlobj.h>
LONGLONG NameToId (const char *name)
{
LONGLONG id = 0;
const char *c;
char *cid = (char*)&id;
int i = 0;
for (c = name; *c; c++, i++) cid[i%8] += toupper (*c);
return id;
}
DWORDLONG Str2Crc (const char *str)
{
DW... | 954 |
589 | package rocks.inspectit.server.service;
import javax.annotation.PostConstruct;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import rocks.inspectit.server.util.AgentStatusDataProvider;
import rocks.inspectit.shared.all.cmr.servi... | 401 |
9,782 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 1,896 |
1,350 | <filename>sdk/purview/azure-resourcemanager-purview/src/main/java/com/azure/resourcemanager/purview/models/OperationMetaMetricSpecification.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.... | 3,603 |
518 | {
"name": "Qonto",
"category": "Accounting & Finance",
"start_url": "https://app.qonto.eu/signin",
"icons": [
{
"src": "https://cdn.filestackcontent.com/p3ECkzb9QCcqi7SIya7w",
"platform": "browserx"
}
],
"theme_color": "#5040B2",
"scope": "https://app.qonto.eu",
"bx_legacy_service_id... | 158 |
549 | /***************************************************************************
* Copyright (c) <NAME>, <NAME>, <NAME> and *
* <NAME> *
* Copyright (c) QuantStack *
* Copyright (c) <NAME> ... | 4,143 |
852 | #include <stdexcept>
#include <string>
#include "OnlineDB/Oracle/interface/Oracle.h"
#include "OnlineDB/EcalCondDB/interface/DCUCCSDat.h"
#include "OnlineDB/EcalCondDB/interface/RunTag.h"
#include "OnlineDB/EcalCondDB/interface/RunIOV.h"
using namespace std;
using namespace oracle::occi;
DCUCCSDat::DCUCCSDat() {
m... | 3,943 |
582 | #include "chipmunk/src/cpBody.c"
| 15 |
1,658 | /*
Copyright 2015 shizhefei(LuckyJayce)
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, sof... | 755 |
492 | <reponame>yangxinbin/ponymusic-master<filename>app/src/main/java/me/wcy/music/activity/BaseActivity.java
package me.wcy.music.activity;
import android.app.ProgressDialog;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
impor... | 2,168 |
715 | <reponame>iabhimanyu/Algorithms
// Longest Common Sequence of 3 Sequences
#include <bits/stdc++.h>
using namespace std;
int lcs3(vector<int> &a, vector<int> &b, vector<int> &c) {
int n = a.size(); int m = b.size(); int p = c.size();
vector < vector < vector <int> > > dp(n + 1, vector < vector <int> > (m + 1, vecto... | 628 |
5,169 | <gh_stars>1000+
{
"name": "DZCamera",
"version": "0.1.0",
"summary": "DZCamera基于AVFoundation的拍照组件,界面易于扩展和自定义",
"description": " DZCamera基于AVFoundation的拍照组件,界面易于扩展和自定义。是否从设计那里拿来了设计稿,结果发现相机的界面和系统的完全不一样,基于ImagePicker来改造界面也非常啰嗦。那么可以试一下DZCamera。\n This a project in progr... | 674 |
956 | /* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2020 Intel Corporation
*/
#include <jansson.h>
#include <rte_ethdev.h>
#include <rte_string_fns.h>
#ifdef RTE_LIB_TELEMETRY
#include <rte_telemetry_legacy.h>
#endif
#include "rte_metrics.h"
#include "rte_metrics_telemetry.h"
struct telemetry_metrics_data tel... | 6,019 |
1,139 | package com.journaldev.jdbc.batch;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
public class JDBCPreparedStatementBatch {
public static void main(String[] args) {
Connection con = null;
PreparedStatement ps = null;
String query = "insert into Employee (empId,... | 427 |
3,227 | <reponame>ffteja/cgal
namespace CGAL {
/*!
\ingroup PkgMinkowskiSum2Ref
The `Polygon_nop_decomposition_2` class implements a convex
decomposition of a polygon, which merely passes the input polygon to
the list of output convex polygons. It should be used when it is known
that the input polygon is convex to start with... | 189 |
448 | /***** defines *****/
#define LFDS711_BTREE_AU_GET_KEY_FROM_ELEMENT( btree_au_element ) ( (btree_au_element).key )
#define LFDS711_BTREE_AU_SET_KEY_IN_ELEMENT( btree_au_element, new_key ) ( (btree_au_element).key = (void *) (lfds711_pal_uint_t) (new_key) )
#define LFDS711_BTREE_AU_GET_VALUE_FROM_ELEMEN... | 2,925 |
1,418 | <filename>aima-core/src/main/java/aima/core/probability/ProbabilityMass.java
package aima.core.probability;
/**
* Artificial Intelligence A Modern Approach (3rd Edition): page 487.<br>
* <br>
* A probability distribution for discrete random variables.
*
* @see <a href="http://en.wikipedia.org/wiki/Probabi... | 162 |
29,258 | package com.taobao.arthas.core.command.view;
import com.taobao.arthas.core.command.model.ProfilerModel;
import com.taobao.arthas.core.command.monitor200.ProfilerCommand.ProfilerAction;
import com.taobao.arthas.core.shell.command.CommandProcess;
/**
* Term view for ProfilerModel
*
* @author gongdewei 2020/4/27
*/... | 619 |
679 | <filename>main/sw/source/ui/misc/glshell.cxx
/**************************************************************
*
* 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 o... | 3,545 |
533 | #include "framework/graph/llvm/optimizer/parall_scheduler.h"
namespace anakin {
namespace graph {
void SyncFlagController::init(VGraph* vgraph) {
auto graph_in_names = vgraph->get_graph_ins();
int lane = 0;
for (auto& name : graph_in_names) {
(*vgraph)[name].lane = lane;
auto& arc_out_it... | 1,475 |
315 | <reponame>bonigarcia/mastering-junit5
/*
* (C) Copyright 2020 <NAME> (https://bonigarcia.github.io/)
*
* 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/license... | 519 |
366 | {
"name": "swampdragon",
"version": "0.4.4",
"description": "SwampDragon client",
"main": "./src/swampdragon.js",
"dependencies": {
"browserify-shim": "*"
},
"browserify": {
"transform": ["browserify-shim"]
},
"browser": {
"sockjs": "./vendor/sockjs-0.3.4.js"
... | 305 |
488 | /*Example to show outlining vs. inlining*/
#ifdef _OPENMP
#include <omp.h>
#endif
void do_sth(int a, int b, int c)
{
}
int main(void)
{
int a,b,c;
#pragma omp parallel private(c) firstprivate(a)
do_sth(a,b,c);
return 0;
}
| 110 |
575 | // Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... | 1,815 |
35,083 | /*
* 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 ... | 682 |
471 | import uuid
from datetime import datetime
from django.test import TestCase
from casexml.apps.case.mock import CaseBlock, IndexAttrs
from pillowtop.es_utils import initialize_index_and_mapping
from corehq.apps.domain.shortcuts import create_domain
from corehq.apps.es.case_search import CaseSearchES
from corehq.apps.e... | 2,368 |
1,511 | <gh_stars>1000+
#
# Copyright (c) nexB Inc. and others. All rights reserved.
# ScanCode is a trademark of nexB Inc.
# SPDX-License-Identifier: Apache-2.0
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
# See https://github.com/nexB/scancode-toolkit for support or download.
# See https://aboutcode... | 2,741 |
2,270 | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2020 - Raw Material Software Limited
JUCE is an open source library subject to commercial or open-source
licensing.
The code included in this file is provid... | 2,670 |
7,601 | <gh_stars>1000+
#include "libuwebsockets.h"
#include <stdio.h>
void get_handler(uws_res_t *res, uws_req_t *req) {
uws_res_end(res, "Hello CAPI!", 11);
}
void listen_handler(void *listen_socket) {
if (listen_socket) {
printf("Listening on port now\n");
}
}
int main() {
uws_app_t *app = uws_cre... | 209 |
542 | /**
* Order Operations
*/
#include <math.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "hftlob.h"
int
pushOrder(Limit *limit, Order *newOrder){
/**
* Add an Order to a Limit structure at head.
*/
if(limit->limitPrice != newOrder->limit){
return 0;
}
newOrde... | 1,040 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace Servi... | 494 |
5,823 | // Copyright 2013 The Flutter 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 FLUTTER_SHELL_PLATFORM_LINUX_FL_DART_PROJECT_PRIVATE_H_
#define FLUTTER_SHELL_PLATFORM_LINUX_FL_DART_PROJECT_PRIVATE_H_
#include <glib-object.h>
... | 292 |
852 | #ifndef DataFormats_Common_RefItemGet_h
#define DataFormats_Common_RefItemGet_h
/*----------------------------------------------------------------------
RefItemGet: Free function to get pointer to a referenced item.
----------------------------------------------------------------------*/
#include "DataFormats/Com... | 2,510 |
784 | template struct Result<{{cpp_full}}>;
| 12 |
374 | <gh_stars>100-1000
// clang-format off
// cp949 to Unicode table
// Derived from the tables available at unicode.org
static uint16_t cp949[] = {
0x00 ,0x0000 //NULL
,0x01 ,0x0001 //START OF HEADING
,0x02 ,0x0002 //START OF TEXT
,0x03 ,0x0003 //END OF TEXT
,0x04 ,0x0004 //END OF TRANSMISSION
,0x... | 536,617 |
1,549 | <reponame>timgates42/lore
from lore.stores.base import Base
class Redis(Base):
def __init__(self, redis_conn):
self.r = redis_conn
def __getitem__(self, key):
return self.r.get(key)
def __setitem__(self, key, value):
self.r.set(key, value)
def __delitem__(self, key):
... | 337 |
432 | /*
* Copyright (c) 2018. Aberic - <EMAIL> - 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... | 1,026 |
5,169 | {
"name": "JKCAddressManagement",
"version": "0.0.1",
"summary": "JKCAddressManagement.",
"description": "this is JKCAddressManagement , 地址管理界面",
"homepage": "http://gitlab.jianke.com/com_iOS/JKCAddressManagement",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"潘振权": "<EMAI... | 606 |
1,695 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 633 |
2,151 | // Copyright 2019 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 "osp/impl/quic/testing/quic_test_support.h"
#include <memory>
#include "osp/impl/quic/quic_client.h"
#include "osp/impl/quic/quic_server.h"
#in... | 751 |
504 | <reponame>mumtozvalijonov/fastapi_contrib<filename>fastapi_contrib/auth/permissions.py<gh_stars>100-1000
from starlette.requests import Request
from starlette import status
from fastapi_contrib.permissions import BasePermission
class IsAuthenticated(BasePermission):
"""
Permission that checks if the user has... | 352 |
3,212 | <reponame>westdart/nifi<filename>nifi-registry/nifi-registry-core/nifi-registry-framework/src/main/java/org/apache/nifi/registry/db/CustomFlywayMigrationStrategy.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this... | 2,498 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.