max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
356 | <reponame>gokay/cert-issuer
import unittest
import copy
from cert_issuer.models import verify_presentation
presentation_example = {
"@context": [
"https://www.w3.org/2018/credentials/v1"
],
"type": [
"VerifiablePresentation"
],
"verifiableCredential": [
{
"@cont... | 1,863 |
2,405 | <filename>STM32F1/libraries/MapleCoOS116/utility/OsError.h
/**
*******************************************************************************
* @file OsError.h
* @version V1.1.6
* @date 2014.05.23
* @brief rror dispose header file
* @details This file use to dispose error which from ... | 1,349 |
428 | <gh_stars>100-1000
package org.loon.framework.android.game.action;
import org.loon.framework.android.game.action.sprite.ISprite;
/**
* Copyright 2008 - 2011
*
* 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... | 712 |
3,010 | import wifi
import socketpool
TIMEOUT = None
print("Connecting to Wifi")
wifi.radio.connect("mySSID", "myPASS")
pool = socketpool.SocketPool(wifi.radio)
print("Finding IP address")
print(wifi.radio.ipv4_address)
HOST = str(wifi.radio.ipv4_address)
PORT = 80 # Port to listen on
print("Creating socket")
sock = pool... | 284 |
4,036 | import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.util.Base64;
public class HashWithoutSalt {
// BAD - Hash without a salt.
public String getSHA256Hash(String password) throws NoSuchAlgorithmException {
MessageDigest md = MessageDigest... | 2,049 |
940 | /*
* jit-cache.cpp - Translation cache management
*
* Kheperix (C) 2003-2005 <NAME>
*
* 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... | 1,524 |
945 | <reponame>holtenko/iotdb
/*
* 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... | 2,132 |
663 | /*
* Copyright 2016-2017 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 1,318 |
2,829 | <filename>euler/client/rpc_manager.cc
/* Copyright 2020 Alibaba Group Holding Limited. 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.... | 1,775 |
1,085 | <reponame>weltam/dremio-oss<filename>sabot/kernel/src/test/resources/deltalake/testDataset/_delta_log/00000000000000000012.json<gh_stars>1000+
{"commitInfo":{"timestamp":1613298242407,"operation":"WRITE","operationParameters":{"mode":"Append","partitionBy":"[]"},"readVersion":11,"isBlindAppend":true,"operationMetrics":... | 198 |
2,989 | <reponame>tb-soft/databus
package com.linkedin.databus.client.pub;
/*
*
* Copyright 2013 LinkedIn Corp. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:... | 1,250 |
10,504 | @@@@base_visitor
@@root_base@@Visitor
####
@@@@body@struct_name
void
visit(@@struct_name@@& @@parameter_name@@) override;
####
@@@@main
#pragma once
// Generated File
// DO NOT EDIT
@@extra_inc@@
#include "@@base_visitor@@.h"
namespace @@namespace@@ {
class @@visitor_name@@ : public @@base_visitor@@ {
public:... | 145 |
374 | /**
* \class ResizeDotWidget
* \brief This widget represents a shape which is used in FormView as
* the resizing grip of a FW during resize operation.
* \author <NAME> - GIOWISYS Software
* \date 04/05/2012
*/
#ifndef RESIZEDOTWIDGET_H
#define RESIZEDOTWIDGET_H
//----------------------------------... | 303 |
628 | <filename>addons/zotero/models.py
# -*- coding: utf-8 -*-
from addons.base.models import BaseCitationsNodeSettings, BaseOAuthUserSettings
from addons.base import exceptions
from django.db import models
from framework import sentry
from framework.exceptions import HTTPError
from pyzotero import zotero, zotero_errors
fr... | 5,105 |
1,338 | <filename>headers/build/os/interface/Rect.h
#include <../os/interface/Rect.h>
| 28 |
471 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.28 on 2020-05-25 18:14
from __future__ import unicode_literals
from django.conf import settings
import django.contrib.postgres.fields
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
from corehq.util.django_migrati... | 902 |
451 | <gh_stars>100-1000
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : <NAME>
Contributors : <NAME>, <NAME>... | 3,672 |
5,169 | {
"name": "DZBadgeView",
"version": "0.1.0",
"summary": "DZBadgeView is a badge style view",
"description": "badge style view, it will used for remind. have fun!",
"homepage": "https://github.com/yishuiliunian/DZBadgeView",
"license": "MIT",
"authors": {
"yishuiliunian": "<EMAIL>"
},
"source": {
... | 294 |
511 | <reponame>JojOatXGME/Grammar-Kit<gh_stars>100-1000
// ---- ConsumeMethods.java -----------------
// This is a generated file. Not intended for manual editing.
package ;
import com.intellij.lang.PsiBuilder;
import com.intellij.lang.PsiBuilder.Marker;
import static generated.GeneratedTypes.*;
import static com.intellij.... | 8,334 |
324 | <reponame>morsvolia/mongo<filename>src/mongo/db/txn_complete_hooks.cpp<gh_stars>100-1000
/**
* Copyright (C) 2013 Tokutek Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Softwa... | 2,334 |
445 | import re
def getnametime(x):
matchobj = re.search("(.+)(\d?\d:\d{2}\s*[AP]M)", x)
return(matchobj.group(1), matchobj.group(2))
class Message:
def __init__(self, strings):
self.strings = []
self.strings.extend(strings)
self.name, self.time = getnametime(strings[0])
self.st... | 347 |
13,885 | /*
Copyright (c) 2013 <NAME> - Advanced Micro Devices, Inc.
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... | 4,345 |
534 | {
"values": [
"mekanismadditions:black_plastic_glow_stairs",
"mekanismadditions:blue_plastic_glow_stairs",
"mekanismadditions:green_plastic_glow_stairs",
"mekanismadditions:cyan_plastic_glow_stairs",
"mekanismadditions:dark_red_plastic_glow_stairs",
"mekanismadditions:purple_plastic_glow_stair... | 401 |
2,502 | package com.shuzijun.leetcode.plugin.actions.toolbar;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.ToggleAction;
import com.shuzijun.leetcode.plugin.utils.DataKeys;
import com.shuzijun.leetcode.plugin.window.WindowFactory;
import javax.swing.*;
/**
* @author shuzi... | 459 |
1,645 | <filename>python/seldon/text/tests/test_docsim.py
import unittest
from seldon.text import DocumentSimilarity, DefaultJsonCorpus
import logging
from gensim import interfaces, utils
from gensim.corpora.dictionary import Dictionary
import copy
class Test_DocumentSimilarity(unittest.TestCase):
def get_docs(self):
... | 804 |
6,811 | #ifndef SCREEN_H
#define SCREEN_H
#include <SDL.h>
#include "ScreenSettings.h"
class Screen
{
public:
void init(const struct ScreenSettings* settings);
void destroy(void);
void GetSettings(struct ScreenSettings* settings);
void LoadIcon(void);
void ResizeScreen(int x, int y);
void ResizeTo... | 382 |
799 | EXPECTED_RANSOMWARE_CVES = [
{
"Cve": "CVE-0000-0000",
"CVSS": 7.5,
"VRR": 5.67,
"ThreatCount": 1,
"Trending": "false",
"VulnLastTrendingOn": "2018-05-01",
"Description": "remote code execution",
"Threats": [{
"Title": "Hunter Exploit Kit",... | 1,546 |
2,150 | <gh_stars>1000+
package org.javaee7.cdi.instance;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.Test;
import... | 709 |
6,989 | #include "hash.h"
| 8 |
5,169 | <filename>Specs/JMProgressStepper/0.0.1/JMProgressStepper.podspec.json
{
"name": "JMProgressStepper",
"version": "0.0.1",
"summary": "A simple customizable stepper.",
"description": "JMProgressStepper is a costumizable view that displays\nthe progress of something defined by single steps.",
"homepage": "https... | 282 |
400 | <reponame>tradeshift-zihe/ofdrw
package org.ofdrw.core.basicStructure.pageTree;
import org.dom4j.Element;
import org.ofdrw.core.OFDElement;
import org.ofdrw.core.basicType.ST_ID;
import org.ofdrw.core.basicType.ST_Loc;
/**
* 页节点
* <p>
* 7.6 页树 表 11 页树属性
*
*
* @author 权观宇
* @since 2019-10-05 10:49:09
*/
public... | 1,028 |
1,942 | /* ******************************************************************
* Huffman encoder, part of New Generation Entropy library
* Copyright (c) <NAME>, Facebook, Inc.
*
* You can contact the author at :
* - FSE+HUF source repository : https://github.com/Cyan4973/FiniteStateEntropy
* - Public forum : https://gr... | 25,447 |
876 | #pragma once
namespace rc {
namespace test {
struct NonCopyableModel {
int value = 0;
NonCopyableModel() = default;
NonCopyableModel(const NonCopyableModel &) = delete;
NonCopyableModel &operator=(const NonCopyableModel &) = delete;
NonCopyableModel(NonCopyableModel &&) = default;
NonCopyableModel &opera... | 508 |
368 | <reponame>gta-chaos-mod/plugin-sdk
/*
Plugin-SDK (Grand Theft Auto 3) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#pragma once
#include "PluginBase.h"
#include "CAutomobile.h"
class CCam {
public:
... | 1,261 |
2,177 | <reponame>yagosys/AlfredWorkflow.com
{
"version": 1.0,
"download_url": "https://raw.github.com/vitorgalvao/alfred-workflows/master/bin/PinUnread.alfredworkflow",
"description": "First version"
}
| 80 |
4,639 | from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
from django.test import TestCase
from oscar.apps.dashboard.partners import views
from oscar.test.factories import PartnerFactory, PermissionFactory, UserFactory
class TestPartnerUserUnlinkView(TestCase):
... | 350 |
348 | <filename>docs/data/leg-t2/037/03702166.json
{"nom":"Neuillé-le-Lierre","circ":"2ème circonscription","dpt":"Indre-et-Loire","inscrits":516,"abs":303,"votants":213,"blancs":27,"nuls":2,"exp":184,"res":[{"nuance":"REM","nom":"<NAME>","voix":94},{"nuance":"LR","nom":"<NAME>","voix":90}]} | 121 |
340 | import re
n, m = input().strip().split(' ')
n, m = [int(n), int(m)]
matrix = []
for _ in range(n):
matrix_t = str(input())
matrix.append(matrix_t)
complete = ""
for el in zip(*matrix):
complete += "".join(el)
print(re.sub(r'(?<=\w)([^\w]+)(?=\w)', " ", complete))
| 136 |
449 | <gh_stars>100-1000
#include <stdio.h>
#include <stdlib.h>
#include "Parser.h"
#include "Printer.h"
#include "Absyn.h"
#include "Interpreter.h"
int main(int argc, char ** argv)
{
FILE *input;
input = stdin;
Exp parse_tree = pExp(input);
if (parse_tree)
{
printf("%d\n", interpret(parse_tree));
return ... | 150 |
14,668 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_H_
#define CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_H_
#include "ui/gfx/native_widget_types.h"
namespac... | 479 |
3,579 | /*
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by ... | 522 |
601 | package com.java3y.austin.web.vo.amis;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
/**
* @author 3y
* 图表的Vo
* https://aisuda.bce.baidu.com/amis/zh-CN/components/chart
* h... | 1,064 |
1,014 | <filename>Database/Equities/Countries/Germany/Industries/Shell Companies.json
{
"TIOAU": {
"short_name": "<NAME>",
"long_name": "<NAME>",
"summary": "Tio Tech A intends to effect a merger, share exchange, asset acquisition, share purchase, reorganization, or similar business combination ... | 311 |
3,269 | <filename>C++/reverse-string-ii.cpp
// Time: O(n)
// Space: O(1)
class Solution {
public:
string reverseStr(string s, int k) {
for (int left = 0; left < s.size(); left += 2 * k) {
for (int i = left, j = min(left + k - 1, static_cast<int>(s.size()) - 1);
i < j; ++i, --j) {
... | 218 |
348 | {"nom":"Héricourt-sur-Thérain","dpt":"Oise","inscrits":103,"abs":30,"votants":73,"blancs":6,"nuls":1,"exp":66,"res":[{"panneau":"2","voix":35},{"panneau":"1","voix":31}]} | 74 |
1,142 | # Copyright (c) Microsoft Corporation and Fairlearn contributors.
# Licensed under the MIT License.
"""Preprocessing tools to help deal with sensitive attributes."""
from ._correlation_remover import CorrelationRemover
__all__ = ["CorrelationRemover"]
| 61 |
4,047 | <gh_stars>1000+
#include "../lib.h"
SYMBOL_EXPORT
int get_stnodep_value (void) {
return 2;
}
| 46 |
922 | <gh_stars>100-1000
from dataclasses import dataclass, field
from typing import List, Type
from dataclasses_json import dataclass_json
from paiargparse import pai_dataclass
from tfaip.data.pipeline.datagenerator import DataGenerator
from calamari_ocr.ocr.dataset.datareader.base import CalamariDataGeneratorParams
@da... | 806 |
2,728 | """
Examples to show usage of the azure-core-tracing-opentelemetry
with the Eventhub SDK.
This example traces calls for senda batch to eventhub.
An alternative path to export using AzureMonitor is also mentioned in the sample. Please take
a look at the commented code.
"""
# Declare OpenTelemetry as enabled tracing p... | 756 |
515 | package br.com.caelum.stella.gateway.integration;
import java.math.BigDecimal;
import java.util.Calendar;
import javax.servlet.http.HttpServletRequest;
import junit.framework.Assert;
import org.jmock.Expectations;
import org.jmock.Mockery;
import org.junit.Before;
import org.junit.Test;
import br.com... | 2,730 |
1,795 | #!/usr/bin/python
# coding=utf-8
##########################################################################
from test import CollectorTestCase
from test import get_collector_config
from test import unittest
from mock import patch
from diamond.collector import Collector
from cassandra_jolokia import CassandraJolokiaC... | 2,313 |
5,169 | <gh_stars>1000+
{
"name": "RMDownloadAdapter",
"version": "0.1.1",
"summary": "Object and Data async downloader with progress and completion handler",
"description": "Async Object Downloader using URL - converted to ObjC object or returning NSData. Easy to use and includes cache with a user set size. Concurre... | 291 |
1,738 | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 478 |
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.costmanagement;
import com.azure.core.util.Context;
/** Samples for Exports GetExecutionHistory. */
public final class ExportsG... | 1,257 |
388 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
import logging
import re
import mistune
from PySide6 import QtCore, QtWidgets
from fastflix.resources import changes_file, local_changes_file
__all__ = ["Changes"]
logger = logging.getLogger("fastflix")
markdown = mistune.Markdown()
issues = re.compile(r"\s(#\d+)\s")
c... | 697 |
480 | <filename>polardbx-parser/src/main/java/com/alibaba/polardbx/druid/sql/dialect/mysql/ast/statement/SQLAlterResourceGroupStatement.java<gh_stars>100-1000
/*
* Copyright 1999-2017 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compl... | 906 |
3,952 | #ifndef __PYWHERE_H
#define __PYWHERE_H
#include <string>
#include <atomic>
/**
* Examines the current Python stack frame and let us know where in the code we are.
*/
extern "C" int whereInPython(std::string& filename, int& lineno, int& bytei);
/**
* Pointer to "whereInPython" for efficient linkage between pywhe... | 141 |
528 | import numpy as np
from opytimizer.optimizers.science import eo
from opytimizer.spaces import search
def test_eo_params():
params = {
'a1': 2.0,
'a2': 1.0,
'GP': 0.5,
'V': 1.0
}
new_eo = eo.EO(params=params)
assert new_eo.a1 == 2.0
assert new_eo.a2 == 1.0
a... | 1,355 |
4,234 | <reponame>roblabs/maplibre-gl-native
#include <mbgl/gfx/headless_backend.hpp>
namespace mbgl {
namespace gfx {
HeadlessBackend::HeadlessBackend(Size size_)
: mbgl::gfx::Renderable(size_, nullptr) {
}
void HeadlessBackend::setSize(Size size_) {
size = size_;
resource.reset();
}
} // namespace gfx
} // na... | 140 |
2,587 | <reponame>Fernando-De-Santiago/godeye
package cn.hikyson.godeye.core.internal.modules.imagecanary;
import android.os.Build;
import androidx.test.core.app.ApplicationProvider;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.r... | 1,436 |
324 | <reponame>tormath1/jclouds
{"status": "success", "data": {}, "job_id": 254506373, "msgs": [{"INFO": "logout: Logout successful", "SOURCE": "BLL", "ERR_CD": null, "LVL": "INFO"}]} | 74 |
339 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
"""
@author: truthless
"""
import os
import json
import logging
import sys
root_dir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))))
sys.path.append(root_dir)
from convlab2.util.train_util import init_logging_han... | 376 |
359 | <reponame>laenNoCode/thcrap<filename>thcrap/src/vfs.h
/**
* Touhou Community Reliant Automatic Patcher
* Main DLL
*
* ----
*
* Virtual file system.
*/
#pragma once
#include <string>
#include <unordered_map>
#include <unordered_set>
typedef json_t* jsonvfs_generator_t(std::unordered_map<std::string, jso... | 665 |
4,013 | <reponame>kylelaker/checkov<filename>tests/terraform/checks/resource/azure/test_MSSQLServerMinTLSVersion.py<gh_stars>1000+
import unittest
import hcl2
from checkov.terraform.checks.resource.azure.MSSQLServerMinTLSVersion import check
from checkov.common.models.enums import CheckResult
class TestMSSQLServerMinTLSVer... | 1,267 |
1,511 | /*
* File: linux/nfsacl.h
*
* (C) 2003 <NAME> <<EMAIL>>
*/
#ifndef __LINUX_NFSACL_H | 44 |
3,227 |
/*!
\ingroup PkgArrangementOnSurface2Concepts
\cgalConcept
A model of the `ArrangementPointLocation_2` concept can answer point-location queries on
an arrangement attached to it. Namely, given a `Arrangement_2::Point_2`
object, representing a point in the plane, it returns the arrangement cell
containing it. In the g... | 961 |
320 | // Copyright (c) 2015, <NAME>.
// Distributed under the BSD 2-Clause License (see LICENSE.txt for details)
#include "Checkbox.h"
bool Checkbox::Checked() {
return IsDlgButtonChecked(_parent, _id) == BST_CHECKED;
}
bool Checkbox::Checked(bool checked) {
return CheckDlgButton(
_parent,_id, checked ? BS... | 135 |
326 | package com.bihell.dice.service;
import com.bihell.dice.blog.service.tool.MediaService;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
/**
* @author zhangbowen
* @since 2019/7/9 17:58
*/
@Slf4j
public class MediaServiceTests extends BaseTests... | 191 |
325 | <gh_stars>100-1000
import lxml.html
import tempfile
import webbrowser
import time
from lxmlTree import lxmlTree
from helper import *
class ElhancedTree():
def __init__(self, tree):
self.leafs = set()
self.children = set()
self.tree = tree
self._reference = list(self.tree.iter())... | 1,131 |
737 | <reponame>etnrlz/rtbkit
/* augmentor_base.cc
<NAME>, 4 March 2012
Copyright (c) 2012 Datacratic. All rights reserved.
Object that handles doing augmented bid requests.
*/
#include "augmentor_base.h"
#include "soa/service/zmq_utils.h"
#include "jml/arch/timers.h"
#include "jml/utils/vector_utils.h"
#include... | 2,668 |
852 | import FWCore.ParameterSet.Config as cms
from RecoVertex.BeamSpotProducer.BeamSpot_cfi import *
from RecoVertex.BeamSpotProducer.offlineBeamSpotToCUDA_cfi import offlineBeamSpotToCUDA
offlineBeamSpotTask = cms.Task(offlineBeamSpot)
from Configuration.ProcessModifiers.gpu_cff import gpu
_offlineBeamSpotTask_gpu = off... | 168 |
521 | /* $Xorg: PsDef.h,v 1.4 2001/02/09 02:04:36 xorgcvs Exp $ */
/*
Copyright 1996, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that... | 1,224 |
1,845 | <filename>rajawali/src/main/java/org/rajawali3d/materials/plugins/PosableMaterialPlugin.java
package org.rajawali3d.materials.plugins;
import android.opengl.GLES20;
import androidx.annotation.FloatRange;
import org.rajawali3d.Geometry3D;
import org.rajawali3d.materials.Material;
import org.rajawali3d.materials.plugin... | 3,138 |
984 | <reponame>om-sharma/java-driver<gh_stars>100-1000
/*
* Copyright DataStax, 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
*
* Unl... | 591 |
382 | <gh_stars>100-1000
import math
from pathlib import Path
import numba
import numpy as np
from det3d.utils.buildtools.pybind11_build import load_pb11
from numba import cuda
try:
from det3d.ops.nms.nms import non_max_suppression
except:
current_dir = Path(__file__).resolve().parents[0]
load_pb11(
[".... | 12,250 |
362 | // Copyright (c) 2018-2020, <NAME>. For more information see 'LICENSE'
#pragma once
#ifdef FG_ENABLE_VULKAN
# include "framework/VR/IVRDevice.h"
# include "framework/Window/IWindow.h"
# include "framework/Vulkan/VulkanSwapchain.h"
namespace FGC
{
//
// VR Device Emulator
//
class VRDeviceEmulator final : pub... | 1,427 |
1,932 | package cn.springcloud.book.gateway.filter;
import org.springframework.cloud.gateway.filter.GatewayFilterChain;
import org.springframework.cloud.gateway.filter.GlobalFilter;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Component;
import org.springframework.web.server.ServerWebExchange... | 809 |
333 | <gh_stars>100-1000
module com.fasterxml.jackson.dataformat.toml {
requires com.fasterxml.jackson.core;
requires com.fasterxml.jackson.databind;
exports com.fasterxml.jackson.dataformat.toml;
provides com.fasterxml.jackson.core.TokenStreamFactory with
com.fasterxml.jackson.dataformat.toml.T... | 187 |
372 | <filename>clients/google-api-services-compute/alpha/1.30.1/com/google/api/services/compute/model/BfdStatus.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/li... | 4,171 |
503 | <filename>src/main/java/com/zhaxd/core/mapper/KQuartzDao.java<gh_stars>100-1000
package com.zhaxd.core.mapper;
import org.beetl.sql.core.mapper.BaseMapper;
import com.zhaxd.core.model.*;
public interface KQuartzDao extends BaseMapper<KQuartz> {
} | 105 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000
{"nom":"Gelles","circ":"3ème circonscription","dpt":"Puy-de-Dôme","inscrits":756,"abs":354,"votants":402,"blancs":10,"nuls":14,"exp":378,"res":[{"nuance":"UDI","nom":"<NAME>","voix":220},{"nuance":"MDM","nom":"<NAME>","voix":158}]} | 123 |
1,792 | <filename>whatsmars-spring/src/main/java/org/hongxi/whatsmars/spring/initializing/InitBean.java
package org.hongxi.whatsmars.spring.initializing;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;
import ... | 343 |
2,236 | <reponame>ws1993/TABAnimated
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, GradientType) {
GradientFromTopToBottom = 1, //从上到下
GradientFromLeftToRight, //从做到右
GradientFromLeftTopToRightBottom, //从上到下
GradientFromLeftBottomToRightTop //从上到下
};
@interface UII... | 398 |
370 | int test_des(void);
| 8 |
575 | <filename>chrome/browser/chromeos/policy/affiliation_mixin.cc
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/policy/affiliation_mixin.h"
#include <set>
#include <stri... | 1,444 |
1,150 | # Code heavily inspired (lifted pretty much verbatim) from https://djangostars.com/blog/how-to-create-and-deploy-a-telegram-bot/
# Changes made by @rmoff to add call out to ksqlDB
#
# To run this:
#
# 1. Sign up for ngrok and run it:
# ./ngrok http 8080
# 2. Note the provided external URL from ngrok and set it as w... | 2,307 |
462 | <gh_stars>100-1000
{
"appDesc": {
"description": "App description.",
"message": "Créez et modifiez des feuilles de calcul"
},
"appName": {
"description": "App name.",
"message": "Google Sheets"
}
}
| 102 |
488 | // t0173.cc
// another from jrvb
template<typename foo>
class bar;
| 28 |
1,334 | <filename>mockserver-examples/src/main/java/org/mockserver/examples/proxy/servicebackend/BackEndServiceConfiguration.java
package org.mockserver.examples.proxy.servicebackend;
import org.mockserver.socket.PortFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Con... | 327 |
572 | from flask import Flask, abort, jsonify, make_response, request, url_for
from flask_restx import Api, Namespace, Resource, fields
app = Flask(__name__, static_url_path='')
api = Api(
app,
'todos',
description='Operações ligadas as suas tarefas',
)
ns = Namespace('todos', description='Operações ligadas ... | 1,156 |
60,067 | <reponame>Hacky-DH/pytorch<gh_stars>1000+
import operator_benchmark as op_bench
import torch
"""Microbenchmarks for channel_shuffle operator."""
# Configs for PT channel_shuffle operator
channel_shuffle_long_configs = op_bench.cross_product_configs(
batch_size=[4, 8],
channels_per_group=[32, 64],
height... | 751 |
646 | <gh_stars>100-1000
package pvrms;
import java.io.FileReader;
import java.io.IOException;
import java.text.ParseException;
import java.util.Properties;
import com.opencsv.CSVReader;
import com.toshiba.mwcloud.gs.Collection;
import com.toshiba.mwcloud.gs.GSException;
import com.toshiba.mwcloud.gs.GridStore;
import com... | 1,539 |
3,269 | <gh_stars>1000+
# Time: O(n)
# Space: O(1)
class Solution(object):
def minFlipsMonoIncr(self, S):
"""
:type S: str
:rtype: int
"""
flip0, flip1 = 0, 0
for c in S:
flip0 += int(c == '1')
flip1 = min(flip0, flip1 + int(c == '0'))
return... | 188 |
6,098 | from __future__ import print_function
import sys
sys.path.insert(1,"../../../")
import h2o
from tests import pyunit_utils
from h2o.estimators.glrm import H2OGeneralizedLowRankEstimator
#Analogous to GLRMTest.java#testSubset
#Test based on bug found in glrm_census_large.ipynb
def glrm_subset():
acs_orig = h2o.uplo... | 943 |
808 | <gh_stars>100-1000
/*
* Copyright DDDplus Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package io.github.dddplus.ext;
import io.github.dddplus.api.ApiResult;
import io.github.dddplus.model.IDomainModel;
import io.github.dddplus.api.RequestPr... | 1,612 |
6,443 | /*
* 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 ... | 2,979 |
691 | import torch
from torch.fft import fftn
def roll_quadrants(data, backwards=False):
"""
Shift low frequencies to the center of fourier transform, i.e. [-N/2, ..., +N/2] -> [0, ..., N-1]
Args:
data: fourier transform, (NxHxW)
backwards: bool, if True shift high frequencies back to center
... | 2,392 |
918 | <filename>gobblin-data-management/src/test/java/org/apache/gobblin/data/management/conversion/hive/util/HiveAvroORCQueryGeneratorTest.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 informa... | 8,220 |
328 | <filename>opi_emac_osc_client/lib/buttonsgpio.cpp
/**
* @file buttonsgpio.cpp
*
*/
/* Copyright (C) 2019-2020 by <NAME> mailto:<EMAIL>
*
* 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... | 2,361 |
8,772 | package org.apereo.cas.configuration.model.support.saml.idp.metadata;
import org.apereo.cas.configuration.model.core.util.EncryptionJwtSigningJwtCryptographyProperties;
import org.apereo.cas.configuration.model.support.couchdb.BaseCouchDbProperties;
import org.apereo.cas.configuration.support.RequiresModule;
import or... | 564 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.