max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
451 | /*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>.
[1] <NAME>, <NAM... | 16,815 |
375 | <gh_stars>100-1000
package jenkins.plugins.git;
import hudson.plugins.git.GitSCM;
import io.jenkins.plugins.casc.misc.RoundTripAbstractTest;
import org.jvnet.hudson.test.RestartableJenkinsRule;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.asse... | 553 |
309 | <gh_stars>100-1000
#ifndef ShowEventQt_H
#define ShowEventQt_H
#include "ui_ShowEvent.h"
class ShowEvent : public QWidget, private Ui::ShowEvent
{
Q_OBJECT
public:
ShowEvent(QWidget *parent = 0);
protected:
void showEvent ( QShowEvent * event );
};
#endif
| 102 |
348 | <gh_stars>100-1000
{"nom":"<NAME>","circ":"8ème circonscription","dpt":"Gironde","inscrits":5806,"abs":3280,"votants":2526,"blancs":209,"nuls":91,"exp":2226,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":1514},{"nuance":"LR","nom":"<NAME>","voix":712}]} | 105 |
679 | <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. The ASF license... | 697 |
404 | <filename>source/plugin/PluginVst2xWindows.cpp
//
// PluginVst2xWindows.c - MrsWatson
// Copyright (c) 2016 <NAME>. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of sour... | 1,505 |
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 ... | 553 |
5,169 | <gh_stars>1000+
{
"name": "TalkMEDSDK-Sanofi",
"version": "0.0.12",
"summary": "TalkMEDSDK-Sanofi",
"description": "我就试试dhjksfh结束了附件是两地分居水电费稍等发送到发送到发多少发送到发斯蒂芬稍等",
"homepage": "https://git.edoctor.cn/Truma.Xiang/talkmedsdk-sanofi.git",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {... | 333 |
410 | #ifndef _AFFINE_TRANSFORM_H_
#define _AFFINE_TRANSFORM_H_
// Stolen from RISCBoy
#include <stdint.h>
#include "pico/platform.h"
// Store unpacked affine transforms as signed 16.16 fixed point in the following order:
// a00, a01, b0, a10, a11, b1
// i.e. the top two rows of the matrix
// [ a00 a01 b0 ]
// [ a01 a11... | 2,972 |
594 | <gh_stars>100-1000
{
"title": "Fournisseurs de Support",
"description": "Rocky Linux est commercialement supportée par CIQ, notre partenaire fondateur et sponsor, ainsi que d'autres sociétés non affiliées.",
"support": {
"ciq": {
"name": "CIQ",
"tier": "Partenaire Fondateur/Sponsor",
"blurb"... | 259 |
2,357 | package who;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class TopicsTest {
@Test
public void testCreateTopicName() throws Exception {
System.err.println(
Topics.createTopicName(
Topics.NotificationType.ALL,
Topics.Namespace.LOCATION
)
);
as... | 287 |
1,567 | <reponame>JunjianDiscovery/wujian100_open
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file mutex_test.c
* @brief the main function for the mutex test
* @version V1.0
* @date 02. June 2017
**********... | 1,220 |
363 | <reponame>roomanl/AndroidDownload<gh_stars>100-1000
package cn.sddman.download.mvp.v;
import java.util.List;
import cn.sddman.download.mvp.e.DownloadTaskEntity;
public interface DownLoadSuccessView {
void initTaskListView(List<DownloadTaskEntity> list);
void deleTask(DownloadTaskEntity task);
void openFi... | 143 |
1,405 | package com.lenovo.safecenter.MainTab;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView... | 2,320 |
3,084 | <filename>print/XPSDrvSmpl/src/ui/xdsmplcf.cpp
/*++
Copyright (c) 2005 Microsoft Corporation
All rights reserved.
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR ... | 2,313 |
5,169 | <gh_stars>1000+
{
"name": "QueryItemWrangler",
"version": "0.1",
"summary": "A type-safe and friendly Swift API for NSURLComponents query items",
"description": "Easily manipulate NSURLQueryItem's in a type safe and swiftly manner",
"homepage": "https://github.com/js/QueryItemWrangler",
"license": {
"ty... | 293 |
3,102 | <gh_stars>1000+
// REQUIRES: x86-registered-target
// Test the driver's control over the PIC behavior for PS4 compiler.
// These consist of tests of the relocation model flags and the
// pic level flags passed to CC1.
//
// CHECK-NO-PIC: "-mrelocation-model" "static"
// CHECK-NO-PIC-NOT: "-pic-level"
// CHECK-NO-PIC-N... | 2,588 |
613 | <gh_stars>100-1000
package mezz.jei.config.sorting;
import mezz.jei.api.constants.ModIds;
import mezz.jei.config.sorting.serializers.SortingSerializers;
import mezz.jei.ingredients.IIngredientListElementInfo;
import java.io.File;
import java.util.Comparator;
public class ModNameSortingConfig extends MappedSortingCon... | 269 |
648 | <gh_stars>100-1000
// Copyright 2018 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless requi... | 784 |
2,690 | # Copyright ClusterHQ Inc. See LICENSE file for details.
"""
Tests for ``admin.release``.
"""
import os
from hashlib import sha256
from gzip import GzipFile
from StringIO import StringIO
import tempfile
from textwrap import dedent
from unittest import skipUnless
from effect import sync_perform, ComposedDispatcher,... | 36,446 |
893 | package com.bytedance.android.aabresguard.android;
import java.io.File;
/**
* Manages the location of the android files (including emulator files, ddms config, debug keystore)
*/
public class AndroidLocation {
/**
* The name of the .android folder returned by {@link #getFolder}.
*/
public static ... | 3,629 |
3,269 | <filename>Algo and DSA/LeetCode-Solutions-master/Python/container-with-most-water.py
# Time: O(n)
# Space: O(1)
class Solution(object):
# @return an integer
def maxArea(self, height):
max_area, i, j = 0, 0, len(height) - 1
while i < j:
max_area = max(max_area, min(height[i], height... | 238 |
1,467 | <filename>irohad/model/commands/create_role.hpp
/**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_CREATE_ROLE_HPP
#define IROHA_CREATE_ROLE_HPP
#include <set>
#include <string>
#include "model/command.hpp"
namespace iroha {
namespace model {
/**
... | 433 |
2,326 | <filename>src/rime/gear/ascii_segmentor.h
//
// Copyright RIME Developers
// Distributed under the BSD License
//
// 2011-12-18 <NAME> <<EMAIL>>
//
#ifndef RIME_ASCII_SEGMENTOR_H_
#define RIME_ASCII_SEGMENTOR_H_
#include <rime/segmentor.h>
namespace rime {
class AsciiSegmentor : public Segmentor {
public:
explici... | 184 |
442 | <reponame>AndreyNudko/ClickHouse-Native-JDBC<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 b... | 642 |
5,703 | <reponame>buildyoursite/Keyframes<filename>ios/keyframes/src/Layers/KFVectorFeatureLayerInterface.h
/**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An addition... | 180 |
303 | <gh_stars>100-1000
#pragma once
#include "circleshape/circleshape.h"
#include "common/luax.h"
namespace Wrap_CircleShape
{
int GetRadius(lua_State* L);
int GetPoint(lua_State* L);
int SetPoint(lua_State* L);
int SetRadius(lua_State* L);
love::CircleShape* CheckCircleShape(lua_State* L, int ind... | 160 |
1,233 | <reponame>boost-entropy-repos-org/mantis
/*
* Copyright 2019 Netflix, 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
*
* Unle... | 1,050 |
14,668 | // 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 "device/vr/android/gvr/gvr_device_provider.h"
#include "base/android/build_info.h"
#include "base/android/bundle_utils.h"
#include "base/memory/... | 423 |
5,053 | import numpy as np
import pytest
from espnet2.train.collate_fn import common_collate_fn
from espnet2.train.collate_fn import CommonCollateFn
@pytest.mark.parametrize(
"float_pad_value, int_pad_value, not_sequence",
[(0.0, -1, ()), (3.0, 2, ("a",)), (np.inf, 100, ("a", "b"))],
)
def test_common_collate_fn(flo... | 2,172 |
483 | package org.dizitart.no2.sync.message;
import org.junit.Test;
import static org.junit.Assert.*;
public class ConnectTest {
@Test
public void testCanEqual() {
assertFalse((new Connect()).canEqual("other"));
}
@Test
public void testEquals() {
Connect connect = new Connect();
... | 1,017 |
578 | /*
* Tencent is pleased to support the open source community by making BK-JOB蓝鲸智云作业平台 available.
*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
*
* BK-JOB蓝鲸智云作业平台 is licensed under the MIT License.
*
* License for BK-JOB蓝鲸智云作业平台:
* ----------------------------------------------... | 10,683 |
1,000 | <filename>pyalgotrade/technical/rsi.py
# PyAlgoTrade
#
# Copyright 2011-2015 <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
#
# Unless... | 2,082 |
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.
#ifndef REMOTING_TEST_FAKE_CONNECTION_EVENT_LOGGER_H_
#define REMOTING_TEST_FAKE_CONNECTION_EVENT_LOGGER_H_
#include <memory>
#include <ostream>
#includ... | 573 |
424 | package com.twitter.elephantbird.mapreduce.output;
import java.io.IOException;
import com.twitter.elephantbird.mapreduce.io.BinaryBlockWriter;
import com.twitter.elephantbird.mapreduce.io.BinaryWritable;
import org.apache.hadoop.mapreduce.RecordWriter;
import org.apache.hadoop.mapreduce.TaskAttemptContext;
/**
* A... | 331 |
2,151 | <filename>third_party/blink/renderer/platform/graphics/paint/scroll_hit_test_display_item.cc
// 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.
#include "third_party/blink/renderer/platform/graphics/paint/... | 841 |
696 | package com.sqisland.android.test_demo;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
public abstract class DateUtils {
public static final DateTimeFormatter SHORT_DATE = DateTimeFormat.forPattern("yyyy-MM-dd");
public static String forma... | 130 |
12,718 | /**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif
#include "rpc.h"... | 38,368 |
550 | <reponame>minmie/nlp-tutorial
# -*- coding: utf-8 -*-
"""“TextLSTM-Torch.ipynb”的副本
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1K75NsbkuejOzp2tfsXGDJxP-nQl9V0DC
"""
'''
code by <NAME>(<NAME>) @graykode, modify by wmathor
'''
import torch
import n... | 1,226 |
368 | <reponame>mtps3/charlescd<filename>villager/src/main/java/io/charlescd/villager/interactor/build/impl/UpdateBuildInfoInteractorImpl.java
/*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complianc... | 2,494 |
1,567 | <filename>sdk/board/wujian100_open_evb/include/pin.h
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file pin.h
* @brief header File for pin definition
* @version V1.0
* @date 02. June 2019
************... | 2,154 |
4,036 | <gh_stars>1000+
import java.util.Collection;
class BadCheckOdd {
public boolean goodLiteral() {
return 10 % 2 > 0;
}
public boolean badLiteral() {
return -10 % 2 > 0;
}
public boolean badBrackets1() {
return -10 % 2 > (0);
}
public boolean badBrackets2() {
return -10 % (2) > 0;//
}
public bo... | 489 |
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.storageimportexport.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.az... | 1,271 |
1,016 | <gh_stars>1000+
/**
*
*/
package com.thinkbiganalytics.alerts.api.core;
/*-
* #%L
* thinkbig-alerts-core
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* 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 co... | 9,304 |
576 | #pragma once
#include <Tempest/Matrix4x4>
#include <cstdint>
#include "graphics/sceneglobals.h"
#include "graphics/bounds.h"
class Frustrum;
class VisibleSet;
class VisibilityGroup {
public:
VisibilityGroup();
class Token {
public:
Token() = default;
Token(Token&& t);
Token&... | 606 |
3,428 | <reponame>ghalimi/stdlib
{"id":"00017","group":"spam-1","checksum":{"type":"MD5","value":"1a938ecddd047b93cbd7ed92c241e6d1"},"text":"From <EMAIL> Fri Aug 23 11:03:31 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: zzzz@<EMAIL>.spamassassin.taint.org\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.spama... | 827 |
1,405 | <filename>sample4/recompiled_java/sources/org/apache/commons/httpclient/methods/InputStreamRequestEntity.java
package org.apache.commons.httpclient.methods;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import org.apache.commons.logging.Log;
... | 1,737 |
1,049 | package me.devilsen.czxing.thread;
import me.devilsen.czxing.code.CodeResult;
/**
* desc :
* date : 2019-07-02 20:39
*
* @author : dongSen
*/
public interface Callback {
void onDecodeComplete(CodeResult result);
void onDarkBrightness(boolean isDark);
}
| 101 |
365 | //
// CCBPLayerGradient.h
// SpriteBuilder
//
// Created by Viktor on 9/12/13.
//
//
#import "CCNodeColor.h"
@interface CCBPNodeGradient : CCNodeGradient
@end
| 67 |
21,684 | <filename>src/rdb_protocol/geo/s2/strings/strutil.h<gh_stars>1000+
//
// Copyright 1999-2006 and onwards Google, Inc.
//
// Useful string functions and so forth. This is a grab-bag file.
//
// You might also want to look at memutil.h, which holds mem*()
// equivalents of a lot of the str*() functions in string.h,
// e... | 2,861 |
777 | // 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 CC_TEST_LAYER_INTERNALS_FOR_TEST_H_
#define CC_TEST_LAYER_INTERNALS_FOR_TEST_H_
#include "base/macros.h"
#include "cc/layers/layer.h"
namespace ... | 252 |
1,104 | <reponame>Zorghts/roll20-character-sheets
{
"html": "chanfear.html",
"css": "chanfear.css",
"authors": "Rwan",
"roll20userid": "5047",
"preview": "channel__fear.png",
"instructions": "nothing spécial ... get it and play",
"legacy": true
} | 105 |
322 | #include "includes.h"
/* Open a tar archive */
static int
lc_archive_open(struct archive *a, void *client_data) {
return ARCHIVE_OK;
}
/* Read next page from the archive */
static ssize_t
lc_archive_read(struct archive *a, void *client_data, const void **buffer) {
struct inode *inode = (struct inode *)client_... | 2,583 |
731 | <filename>androguard/gui/binwindow.py
from __future__ import division
from PyQt5 import QtGui, QtCore, QtWidgets
from PyQt5.uic import loadUi
from androguard.gui.Banners import Banners, FileAddrBanner, TopBanner, BottomBanner
from androguard.gui.cemu import Cursor
from androguard.gui.TextDecorators import HighlightAS... | 6,226 |
595 | <reponame>gueux/openduty
__author__ = 'deathowl'
from django.utils import timezone
from django.core.management.base import BaseCommand, CommandError
from openduty.models import Incident
import datetime
class Command(BaseCommand):
help = 'Auto resolves stuck acknowledged incidents'
def handle(self, *args, **o... | 300 |
862 | <gh_stars>100-1000
/*
* (c) Copyright 2020 Palantir Technologies Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENS... | 1,013 |
370 | <reponame>daiwei89/wdai_petuum_public
//author: jinliang
#pragma once
#include <petuum_ps/thread/ssp_push_bg_worker.hpp>
#include <petuum_ps/thread/oplog_meta.hpp>
#include <petuum_ps/thread/bg_oplog_partition.hpp>
#include <petuum_ps_common/util/high_resolution_timer.hpp>
namespace petuum {
class SSPAggrBgWorker :... | 1,663 |
3,459 | #ifdef SMPCORE_CPP
template<int to, int from> alwaysinline void SMP::op_mov_reg_reg() {
op_io();
regs.r[to] = regs.r[from];
regs.p.n = (regs.r[to] & 0x80);
regs.p.z = (regs.r[to] == 0);
}
alwaysinline void SMP::op_mov_sp_x() {
op_io();
regs.sp = regs.x;
}
template<int n> alwaysinline void SMP::op_mov_reg... | 2,241 |
852 | <filename>Alignment/CommonAlignmentProducer/test/GlobalPositionRcd-scan_cfg.py
import FWCore.ParameterSet.Config as cms
process = cms.Process("read")
process.load("CondCore.CondDB.CondDB_cfi")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int3... | 808 |
6,457 | // License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2020 Intel Corporation. All Rights Reserved.
//#test:device L500*
#include "../live-common.h"
#include "alt-ir-common.h"
using namespace rs2;
TEST_CASE( "AltIR", "[l500][live]" )
{
auto devices = find_devices_by_product_line_or_exit( RS... | 406 |
3,783 | package problems.medium;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* Why Did you create this class? what does it do?
*/
public class WordSubsets {
public List<String> wordSubsets(String[] s, String[] b) {
if (s.length == 0 || b.length == 0)
return new Ar... | 729 |
514 | from __future__ import division, print_function
import os
from shutil import rmtree
import argparse
import numpy as np
import matplotlib # Remove this line if you don't need them
matplotlib.use('Agg') # Remove this line if you don't need them
import matplotlib.pyplot as plt
import soundfile as sf
# import lib... | 1,725 |
5,169 | {
"name": "EasyShowView",
"version": "2.1.4",
"summary": "一款超级简单的展示工具,包括吐丝,loding加载,空白页提示,alertview,actionsheet的定制。可自定义动画,显示样式等各种操作。简单到爆。赶紧来试试吧~~~",
"homepage": "https://github.com/chenliangloveyou/EasyShowView",
"license": "MIT",
"authors": {
"chenliangloveyou": "<EMAIL>"
},
"source": {
"git": ... | 874 |
674 | <reponame>slaveuser/honest-profiler20190422
/**
* Copyright (c) 2014 <NAME> (<EMAIL>)
* <p>
* 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 limitat... | 2,008 |
1,256 | <reponame>MKadaner/FarManager<gh_stars>1000+
#include <all_far.h>
#pragma hdrstop
#include "fstdlib.h"
int WINAPI StrColCount(LPCSTR str,LPCSTR seps)
{
int res = 1;
if(!str || !seps || !str[0] || !seps[0]) return 0;
for(int n = 0; str[n]; n++)
if(strchr((char*)seps,str[n]) != NULL)
res++;
return res;
}
... | 320 |
322 | <reponame>phenixmzy/apache-eagle-0.5<filename>eagle-core/eagle-app/eagle-app-base/src/main/java/org/apache/eagle/app/environment/AbstractEnvironment.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for ... | 1,317 |
703 | #include <RendererVulkanPCH.h>
#include <RendererVulkan/Device/DeviceVulkan.h>
#include <RendererVulkan/Resources/TextureVulkan.h>
ezGALTextureVulkan::ezGALTextureVulkan(const ezGALTextureCreationDescription& Description)
: ezGALTexture(Description)
, m_image(nullptr)
, m_memory(nullptr)
, m_memoryOffset(0)
... | 3,753 |
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
... | 2,399 |
772 | <filename>weibo.cn/python/common/common.py
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import os
try:
import cPickle as pickle
except ImportError:
import pickle
__all__ = ['IMAGE_HEIGHT', 'IMAGE_WIDTH', 'IMAGE_SIZE', 'load_label_map']
IMAGE_WIDTH = 32
IMAGE_HEIGHT = 32
IMAGE_SIZE = IMAGE_HEIGHT... | 1,257 |
419 | <filename>Code/Engine/Animation/Graph/Nodes/Animation_RuntimeGraphNode_State.h
#pragma once
#include "Animation_RuntimeGraphNode_Passthrough.h"
//-------------------------------------------------------------------------
namespace KRG::Animation::GraphNodes
{
class KRG_ENGINE_ANIMATION_API StateNode final : publi... | 2,084 |
1,144 | <reponame>rlourette/TI_SDK_u-boot-2019.01
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* (C) Copyright 2009 <NAME> <<EMAIL>>, DENX Software Engineering
*/
#define USBH_BASE 0x00080000
/* Relative offsets of the register adresses */
#define USBH_CAPLENGTH_OFFS 0x00000100
#define USBH_CAPLENGTH(base) ((base) + USBH_C... | 314 |
1,647 | #ifndef PYTHONIC_INCLUDE_NUMPY_BITWISE_XOR_HPP
#define PYTHONIC_INCLUDE_NUMPY_BITWISE_XOR_HPP
#include "pythonic/include/utils/functor.hpp"
#include "pythonic/include/types/ndarray.hpp"
#include "pythonic/include/types/numpy_broadcast.hpp"
#include "pythonic/include/utils/numpy_traits.hpp"
#include "pythonic/include/o... | 251 |
884 | <gh_stars>100-1000
/*
* Copyright 2014 - 2021 Blazebit.
*
* 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 app... | 5,647 |
324 | // Pulled from musl libc
#include <ctype.h>
int toascii(int c)
{
return c & 0x7f;
}
| 44 |
8,851 | import warnings
from django.apps import AppConfig
from django.core.checks import Error, Tags, register
from wagtail.utils.deprecation import RemovedInWagtail217Warning
from .utils import get_postgresql_connections, set_weights
class PostgresSearchConfig(AppConfig):
name = 'wagtail.contrib.postgres_search'
... | 427 |
1,853 | /*
* 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,460 |
386 | <filename>src/IECoreMaya/CacheSet.cpp
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2009, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the follo... | 1,391 |
375 | <gh_stars>100-1000
package com.cybozu.labs.langdetect;
/**
* @author <NAME>
*/
enum ErrorCode {
NoTextError, FormatError, FileLoadError, DuplicateLangError, NeedLoadProfileError, CantDetectError, CantOpenTrainData, TrainDataFormatError, InitParamError
}
/**
* @author <NAME>
*
*/
public class Lan... | 302 |
922 | /*
* Hibernate Validator, declare and validate application constraints
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
*/
package org.hibernate.validator.test.internal.engine.valueextraction.model;
import jakarta.validation... | 181 |
651 | /******************************************************************************
* Copyright (c) Intel Corporation - All rights reserved. *
* This file is part of the LIBXSMM library. *
* *
... | 8,742 |
1,091 | <filename>core/store/dist/src/main/java/org/onosproject/store/flow/impl/BucketId.java<gh_stars>1000+
/*
* Copyright 2018-present Open Networking 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 ... | 680 |
305 | package org.mamute.reputation.rules;
import org.mamute.model.EventType;
import org.mamute.model.VoteType;
public interface VotableRule {
EventType eventType(VoteType type);
}
| 64 |
3,034 | <reponame>NgSekLong/logging-log4j2
/*
* 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, Versio... | 1,086 |
325 | // Copyright 2017 The CRC32C Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
// ARM-specific code checking for the availability of CRC32C instructions.
#ifndef CRC32C_CRC32C_ARM_CHECK_... | 809 |
852 | #include "HeterogeneousCore/SonicCore/interface/SonicDispatcherPseudoAsync.h"
#include "HeterogeneousCore/SonicCore/interface/SonicClientBase.h"
#include "FWCore/Utilities/interface/thread_safety_macros.h"
SonicDispatcherPseudoAsync::SonicDispatcherPseudoAsync(SonicClientBase* client)
: SonicDispatcher(client), ha... | 542 |
459 | <filename>include/oglplus/enums/ext/amd_perf_monitor_type.ipp
// File include/oglplus/enums/ext/amd_perf_monitor_type.ipp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/ext/amd_perf_monitor_type.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// C... | 288 |
3,075 | /*
* Copyright 2008 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 by applica... | 701 |
325 | package com.box.l10n.mojito.cli.command.checks;
import org.apache.commons.lang3.StringUtils;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
public class GlossaryTermCaseCheckerTrie {
private final Node rootNode = new Node();... | 1,733 |
372 | <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, software ... | 1,407 |
14,668 | <reponame>karoyqiu/crashpad
// Copyright 2017 The Crashpad Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2... | 1,538 |
475 | <reponame>SuperV1234/ecst
// Copyright (c) 2015-2016 <NAME>
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: http://opensource.org/licenses/AFL-3.0
// http://vittorioromeo.info | <EMAIL>
#pragma once
#include <vrm/core/strong_typedef.hpp>
#include <ecst/config.hpp>
#include <ecst/aliases.hpp>
EC... | 226 |
760 | <filename>mlens/preprocessing/__init__.py
"""ML-Ensemble
:author: <NAME>
:copyright: 2017-2018
:licence: MIT
Auxiliary transformers to support computational graphs.
"""
from .preprocess import Subset, Shift
__all__ = ['Subset', 'Shift']
| 81 |
1,393 | <filename>app/src/main/java/io/ribot/app/injection/component/ActivityComponent.java
package io.ribot.app.injection.component;
import dagger.Component;
import io.ribot.app.injection.PerActivity;
import io.ribot.app.injection.module.ActivityModule;
import io.ribot.app.ui.LauncherActivity;
import io.ribot.app.ui.checkin.... | 264 |
482 | <filename>documentation/src/docs/examples/copy/to_system_out.java
System.setOut(new FileOutputStream("table.txt")); // <1>
try (Statement statement = connection.createStatement()) {
statement.execute("COPY a_table TO STDOUT"); // <2>
}
| 77 |
5,169 | {
"name": "XPPodLibrary",
"version": "1.0.1",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"summary": "Pod代码私有库",
"homepage": "https://gitee.com/iOSXP/XPPodLibrary",
"platforms": {
"ios": "9.0"
},
"source": {
"git": "https://gitee.com/iOSXP/XPPodLibrary.git",
"tag": "1.0.1"
}... | 244 |
964 | <reponame>lancelotj/elodie<filename>elodie/tests/run_tests.py<gh_stars>100-1000
#!/usr/bin/env python
import nose
import os
import shutil
import sys
import tempfile
if __name__ == "__main__":
# test_directory is what we pass nose.run for where to find tests
test_directory = os.path.dirname(os.path.abspath(__f... | 560 |
567 | package com.kennycason.kumo.collide.checkers;
import com.kennycason.kumo.collide.Collidable;
import java.awt.*;
/**
* Created by kenny on 6/29/14.
*/
public class RectangleCollisionChecker implements CollisionChecker {
@Override
public boolean collide(final Collidable collidable, final Collidable collidab... | 352 |
1,109 | <gh_stars>1000+
"""
Functions we use to record tick time performance stats.
"""
from delorean import Delorean
from gryphon.lib.models.datum import Datum, DatumRecorder
from gryphon.lib.util.profile import tick_profile, tick_profile_data
TICK_SAMPLE_SIZE = 10
TICK_BLOCK_SAMPLE_SIZE = 100
def record_tick_data(tick_... | 443 |
1,350 | <gh_stars>1000+
/**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 2,461 |
317 | //
// RefractElementFactory.h
// drafter
//
// Created by <NAME> on 04-03-2016
// Copyright (c) 2016 Apiary Inc. All rights reserved.
//
#ifndef DRAFTER_REFRACTELEMENTFACTORY_H
#define DRAFTER_REFRACTELEMENTFACTORY_H
#include <string>
#include "MSON.h"
namespace refract
{
struct IElement;
}
namespace drafte... | 741 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.