max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
435 | {
"copyright_text": "Creative Commons Attribution license (reuse allowed)",
"description": "The cPython\u2019s startup speed generally quite fast compared to other\nsimilar dynamic language interpreters. Despite this, the interpreter\u2019s\nstartup time increases linearly with the number and size of imported\npyth... | 628 |
3,494 | #include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
#include "cinder/Log.h"
#include "cinder/osc/Osc.h"
using namespace ci;
using namespace ci::app;
using namespace std;
#define USE_UDP 1
#if USE_UDP
using Sender = osc::SenderUdp;
#else
using Sender = osc::SenderTcp;
#endif
con... | 1,708 |
5,169 | {
"name": "ROBarcodeScanner",
"version": "1.0.2",
"summary": "Scans different Barcodes and returns the result as String",
"description": "Scans different Barcodes and returns the result as String. Use the ROBarcodeScannerViewController for the View.",
"homepage": "https://github.com/prine/ROBarcodeScanner",
... | 340 |
1,266 | // Copyright (c) 2020 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <eventloop.h>
#include <scheduler.h>
EventLoop::~EventLoop() {
stopEventLoop();
}
bool EventLoop::startEventLoop(CSched... | 625 |
559 | <filename>examples/proxy/src/main/java/com/netflix/msl/ProxyException.java
/**
* Copyright (c) 2015 Netflix, Inc. All rights reserved.
*/
package com.netflix.msl;
/**
* <p>Thrown by the proxy when an exception has occurred. This class is the
* general class of exceptions produced by failed proxy operations.</p>
... | 263 |
409 | <reponame>NearlyTRex/object_threadsafe
/*
This file is a part of libcds - Concurrent Data Structures library
(C) Copyright <NAME> (<EMAIL>) 2006-2016
Source code repo: http://github.com/khizmax/libcds/
Download: http://sourceforge.net/projects/libcds/files/
Redistribution and use in source an... | 3,338 |
2,151 | <filename>data-binding/compiler/src/main/java/android/databinding/annotationprocessor/ProcessBindable.java
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain ... | 4,692 |
1,781 | /*
* HaoRan ImageFilter Classes v0.1
* Copyright (C) 2012 <NAME>
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation; either version 2.1 of the License, or (at your
* option) any lat... | 2,572 |
692 | <reponame>iMats/Singularity<filename>SingularityRunnerBase/src/main/java/com/hubspot/singularity/runner/base/jackson/ObfuscateAnnotationIntrospector.java
package com.hubspot.singularity.runner.base.jackson;
import static com.hubspot.mesos.JavaUtils.obfuscateValue;
import com.fasterxml.jackson.core.JsonGenerator;
impo... | 628 |
28,321 | #!/usr/bin/env python
counts=dict()
mails=list()
fname=input('Enter file name:')
fh=open(fname)
for line in fh:
if not line.startswith('From '):
continue
# if line.startswith('From:'):
# continue
id=line.split()
mail=id[1]
mails.append(mail)
freq_mail = max(mails, key=mails.count) #To... | 276 |
2,040 | #include "ClassFlowCNNGeneral.h"
#include <math.h>
#include <iomanip>
#include <sys/types.h>
#include <sstream> // std::stringstream
#include "CTfLiteClass.h"
#include "ClassLogFile.h"
static const char* TAG = "flow_analog";
bool debugdetailgeneral = false;
ClassFlowCNNGeneral::ClassFlowCNNGeneral(ClassFlowA... | 12,115 |
854 | __________________________________________________________________________________________________
sample 5 ms submission
class Solution {
public int carFleet(int target, int[] position, int[] speed) {
if(position.length==0)return 0;
int fleets=1;
int[] idx=new int[position.length];... | 1,291 |
5,379 | <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
// "Li... | 1,059 |
348 | <filename>docs/data/leg-t2/018/01803273.json
{"nom":"Venesmes","circ":"3ème circonscription","dpt":"Cher","inscrits":637,"abs":340,"votants":297,"blancs":12,"nuls":14,"exp":271,"res":[{"nuance":"SOC","nom":"<NAME>","voix":137},{"nuance":"REM","nom":"<NAME>","voix":134}]} | 110 |
2,206 | <reponame>steljord2/deeplearning4j
[
{
"name":"org.datavec.api.transform.transform.sequence.SequenceOffsetTransform",
"allDeclaredFields":true,
"allDeclaredMethods":true,
"allDeclaredConstructors":true,
"allDeclaredClasses" : true,
"allPublicClasses" : true
},
{
"name":"org.datavec.api... | 1,789 |
493 | <reponame>Dorvaryn/download-manager<filename>library/src/main/java/com/novoda/downloadmanager/FilePersistence.java
package com.novoda.downloadmanager;
import android.content.Context;
/**
* For defining the mechanism by which files should be persisted on the device.
*/
public interface FilePersistence {
void in... | 184 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Vexation",
"definitions": [
"The state of being annoyed, frustrated, or worried.",
"A cause of annoyance, frustration, or worry."
],
"parts-of-speech": "Noun"
} | 100 |
14,668 | // Copyright 2018 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_CHROME_CLEANER_OS_PRE_FETCHED_PATHS_H_
#define CHROME_CHROME_CLEANER_OS_PRE_FETCHED_PATHS_H_
#include <unordered_map>
#include "base/file... | 674 |
768 | package tellh.com.gitclub.presentation.view.fragment.search;
import android.support.v7.widget.RecyclerView;
import com.tellh.nolistadapter.adapter.FooterLoadMoreAdapterWrapper;
import com.tellh.nolistadapter.adapter.FooterLoadMoreAdapterWrapper.UpdateType;
import com.tellh.nolistadapter.adapter.RecyclerViewAdapter;
i... | 1,191 |
1,666 | /*
* Copyright 2014 Google 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/LICENSE-2.0
*
* Unless required by applica... | 1,849 |
3,539 | /*
* Copyright (c) 2015, Freescale Semiconductor, Inc.
* Copyright 2016,2019 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _USB_DEVICE_CDC_ACM_H_
#define _USB_DEVICE_CDC_ACM_H_
/*!
* @addtogroup cdc_acm
* @{
*/
/***************************************************************... | 6,301 |
837 | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2019, University of Stuttgart
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follo... | 34,842 |
323 | /*this creates a yaml or xml list of files from the command line args
*/
#include "opencv2/core/core.hpp"
#include <string>
#include <iostream>
using std::string;
using std::cout;
using std::endl;
using namespace cv;
static void help(char** av)
{
cout << "\nThis creates a yaml or xml list of files from the comma... | 327 |
2,151 | // Copyright 2018 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 "base/time/time.h"
#ifndef CHROME_BROWSER_CHROMEOS_POWER_ML_BOOT_CLOCK_H_
#define CHROME_BROWSER_CHROMEOS_POWER_ML_BOOT_CLOCK_H_
namespace chro... | 242 |
357 | <reponame>debojyoti-majumder/lightwave
/*
* Copyright © 2018 VMware, 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/LICENSE-2.... | 1,120 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Assevent","circ":"3ème circonscription","dpt":"Nord","inscrits":1301,"abs":719,"votants":582,"blancs":35,"nuls":11,"exp":536,"res":[{"nuance":"REM","nom":"<NAME>","voix":283},{"nuance":"FN","nom":"Mme <NAME>","voix":253}]} | 111 |
634 | <reponame>halotroop2288/consulo<filename>modules/base/vcs-api/src/main/java/com/intellij/openapi/vcs/history/VcsAnnotationCachedProxy.java
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... | 3,219 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"<NAME>","circ":"3ème circonscription","dpt":"Aisne","inscrits":191,"abs":82,"votants":109,"blancs":7,"nuls":1,"exp":101,"res":[{"nuance":"SOC","nom":"<NAME>","voix":52},{"nuance":"FN","nom":"<NAME>","voix":49}]} | 109 |
602 | <filename>decompiler/IR2/ExpressionHelpers.h
#pragma once
#include <vector>
namespace decompiler {
class FormElement;
class Form;
class Env;
class FormPool;
class FormStack;
FormElement* handle_get_property_value_float(const std::vector<Form*>& forms,
FormPool& pool,
... | 827 |
306 | <reponame>Ross1503/Brunel<gh_stars>100-1000
/*
* Copyright (c) 2015 IBM Corporation and others.
*
* 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/L... | 1,073 |
2,081 | <filename>tools/iotjs-create-module.py
#!/usr/bin/env python
# Copyright 2018-present Samsung Electronics Co., Ltd. and other contributors
#
# 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
#
#... | 1,618 |
852 | <reponame>ckamtsikis/cmssw
import FWCore.ParameterSet.Config as cms
l1tBasicDemo = cms.EDAnalyzer(
"L1TBasicDemo",
UseTriggerBxOnly = cms.bool(True),
EgTag = cms.InputTag("caloStage2Digis","EGamma"),
TauTag = cms.InputTag("caloStage2Digis","Tau"),
JetTag = cms.InputTa... | 243 |
1,082 | <reponame>gaoml0904/GmlPhoneEdit
/*
* Copyright (C) 2016 jarlen
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | 918 |
5,133 | /*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.bugs._2347;
import org.mapstruct.ap.testutil.IssueKey;
import org.mapstruct.ap.testutil.ProcessorTest;
import org.mapstruct.ap.testutil.WithC... | 654 |
808 | <gh_stars>100-1000
#ifndef SYMENGINE_UTILITIES_MATCHPYCPP_HOPCROFT_KARP_H_
#define SYMENGINE_UTILITIES_MATCHPYCPP_HOPCROFT_KARP_H_
#include <vector>
#include <map>
#include <iostream>
#include <tuple>
#include <deque>
#include <set>
#include <climits>
using namespace std;
/*
* Implementation of the Hopcroft-Karp al... | 2,322 |
539 | <reponame>tenomoto/optim
/*################################################################################
##
## Copyright (C) 2016-2020 <NAME>
##
## This file is part of the OptimLib C++ library.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file e... | 571 |
709 | <reponame>emadurandal/OpenSiv3D
//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2021 <NAME>
// Copyright (c) 2016-2021 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/P... | 662 |
1,056 | <reponame>arusinha/incubator-netbeans<filename>ide/properties/src/org/netbeans/modules/properties/FindPanel.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyrigh... | 4,011 |
458 | <gh_stars>100-1000
// Copyright 2015-2021 Swim 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 applicabl... | 2,915 |
1,475 | /*
* 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 not ... | 801 |
2,151 | <reponame>zipated/src<filename>chrome/browser/chromeos/login/enrollment/enrollment_screen_unittest.cc
// Copyright (c) 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 "chrome/browser/chromeos/login/enrollme... | 4,608 |
393 | package com.marverenic.music.ui.library;
import android.content.Context;
import androidx.databinding.Bindable;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;
import com.marverenic.music.BR;
import com.marverenic.music.R;
import com.marverenic.music.data.annotations.St... | 1,327 |
606 | #include "config.h"
#include "types.h"
u32 skim(const u32 *virgin, const u32 *current, const u32 *current_end);
u32 classify_word(u32 word);
inline u32 classify_word(u32 word) {
u16 mem16[2];
memcpy(mem16, &word, sizeof(mem16));
mem16[0] = count_class_lookup16[mem16[0]];
mem16[1] = count_class_lookup16[mem1... | 1,060 |
953 | package canvastoolbox.florent37.github.com.canvastoolbox.views;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;
import com.github.florent37.mylittlecanvas.animation.Sh... | 1,158 |
852 | <filename>TrackingTools/GeomPropagators/python/AnyDirectionAnalyticalPropagator_cfi.py
import FWCore.ParameterSet.Config as cms
AnyDirectionAnalyticalPropagator = cms.ESProducer("AnalyticalPropagatorESProducer",
MaxDPhi = cms.double(1.6),
ComponentName = cms.string('AnyDirectionAnalyticalPropagator'),
Prop... | 129 |
301 | package com.sap.iot.starterkit.mqtt.ingest.type;
public class ClientCertificateAuthorization
implements Authorization {
private String keyStoreLocation;
private transient String keyStorePassword;
private String trustStoreLocation;
private transient String trustStorePassword;
public String getKeyStoreLocation... | 157 |
2,151 | // 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 COMPONENTS_SYNC_ENGINE_UI_MODEL_WORKER_H_
#define COMPONENTS_SYNC_ENGINE_UI_MODEL_WORKER_H_
#include "base/macros.h"
#include "base/memory/re... | 409 |
914 | <gh_stars>100-1000
//
// WAAVSEExtractSoundCommand.h
// YCH
//
// Created by 黄锐灏 on 2019/1/11.
// Copyright © 2019 黄锐灏. All rights reserved.
//
#import "WAAVSECommand.h"
NS_ASSUME_NONNULL_BEGIN
@interface WAAVSEExtractSoundCommand : WAAVSECommand
@end
NS_ASSUME_NONNULL_END
| 136 |
655 | package com.taobao.bulbasaur.service;
/**
* User: yunche.ch ... (ว ˙o˙)ง
* Date: 14-12-24
* Time: 下午3:43
*/
public class NotifyPage {
public void doNotify(String taskIds) {
System.out.println("将taskId传递给业务bean,可以再来调用 complete 接口!");
System.out.println(taskIds);
}
}
| 167 |
2,742 | /*
* Copyright 2008-2019 by <NAME>
*
* This file is part of Java Melody.
*
* 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... | 4,282 |
11,356 | /*
tests/test_numpy_vectorize.cpp -- auto-vectorize functions over NumPy array
arguments
Copyright (c) 2016 <NAME> <<EMAIL>>
All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LICENSE file.
*/
#include "pybind11_tests.h"
#include <pybind11/num... | 609 |
325 | # -*- coding: utf-8 -*-
"""Geometry functions.
"""
from __future__ import absolute_import, division, print_function
import numpy as np
def create_quad(scale=(1.0,1.0), st=False, rgba=False, dtype='float32', type='triangles'):
"""Returns a Quad reading for rendering.
Output is a tuple of numpy arrays.
The... | 7,577 |
560 | <reponame>sowmyavasudeva/SmartBookmark
#include <stdio.h>
#include <ckd_alloc.h>
#include "test_macros.h"
int
main(int argc, char *argv[])
{
int *alloc1;
int bad_alloc_did_not_fail = FALSE;
ckd_set_jump(NULL, TRUE);
/* Guaranteed to fail, we hope!. */
alloc1 = ckd_calloc(-1,-1);
TEST_ASSERT(bad_alloc_did_not_... | 156 |
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... | 781 |
3,170 | //
// BufferedBidirectionalStreamBuf.h
//
// $Id: //poco/1.4/Foundation/include/Poco/BufferedBidirectionalStreamBuf.h#1 $
//
// Library: Foundation
// Package: Streams
// Module: StreamBuf
//
// Definition of template BasicBufferedBidirectionalStreamBuf and class BufferedBidirectionalStreamBuf.
//
// Copyright (c) 200... | 1,636 |
3,263 | <filename>value-fixture/src/android/os/SparseBooleanArray.java
//THIS IS STUB!!!!
package android.os;
public interface SparseBooleanArray {
int size();
int keyAt(int i);
boolean valueAt(int i);
}
| 71 |
3,434 | package com.alicp.jetcache;
import com.alicp.jetcache.event.CacheEvent;
/**
* Created on 2016/10/25.
*
* @author <a href="mailto:<EMAIL>">huangli</a>
*/
@FunctionalInterface
public interface CacheMonitor {
void afterOperation(CacheEvent event);
}
| 95 |
678 | {
"screengrab":{
"OS": ["windows","linux","darwin"],
"Server": true,
"Arguments": {},
"RunType": ["drop"],
"Info": "Screengrab will return a screenshot for each screen the user has",
"Example": "module drop screengrab",
"ModuleType": "collection"
},
"m... | 850 |
2,151 | // 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 UI_EVENTS_DEVICES_X11_DEVICE_LIST_CACHE_X11_H_
#define UI_EVENTS_DEVICES_X11_DEVICE_LIST_CACHE_X11_H_
#include <map>
#include <memory>
#incl... | 737 |
336 | <gh_stars>100-1000
/*
* Terminal-BASIC is a lightweight BASIC-like language interpreter
*
* Copyright (C) 2016-2018 <NAME> <<EMAIL>>
* Copyright (C) 2019,2020 Terminal-BASIC team
* <https://bitbucket.org/%7Bf50d6fee-8627-4ce4-848d-829168eedae5%7D/>
*
* This program is free software: you can redistribute it ... | 477 |
2,104 | <reponame>0xsan-z/AFLplusplus<filename>unicorn_mode/helper_scripts/unicorn_loader.py
"""
unicorn_loader.py
Loads a process context dumped created using a
Unicorn Context Dumper script into a Unicorn Engine
instance. Once this is performed emulation can be
started.
"""
import argparse
import binasc... | 18,053 |
3,189 | <reponame>chengchenwish/evpp<gh_stars>1000+
#pragma once
#include <evpp/tcp_conn.h>
#include <thrift/protocol/TProtocol.h>
#include <thrift/transport/TBufferTransports.h>
#include <thrift/transport/TTransportUtils.h>
namespace evthrift {
using apache::thrift::TProcessor;
using apache::thrift::protocol::TProtocol;... | 590 |
5,813 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 3,786 |
348 | {"nom":"<NAME>","circ":"5ème circonscription","dpt":"Loire","inscrits":166,"abs":106,"votants":60,"blancs":8,"nuls":2,"exp":50,"res":[{"nuance":"MDM","nom":"<NAME>","voix":37},{"nuance":"LR","nom":"Mme <NAME>","voix":13}]} | 91 |
1,050 | import torch
from torch.nn import functional as F
# TODO: merge these two function
def heatmap_focal_loss(
inputs,
targets,
pos_inds,
labels,
alpha: float = -1,
beta: float = 4,
gamma: float = 2,
reduction: str = 'sum',
sigmoid_clamp: float = 1e-4,
ignore_high_fp: float = -1.,
)... | 1,171 |
2,739 | <filename>models/recall/mind/static_model.py
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/lice... | 1,724 |
1,604 | package org.bouncycastle.tls.test;
import java.io.IOException;
import java.math.BigInteger;
import java.security.KeyPair;
import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.cert.X509Certificate;
import java.util.Date;
import java.util.co... | 2,704 |
1,205 | {
"version": 2,
"path": "\/api\/resourcepath",
"httpMethod": "GET",
"headers": {
"Content-Length": "0",
"Host": "atm5u4y7o1.execute-api.us-west-2.amazonaws.com",
"User-Agent": "Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/78.0.3904.108 Safari\/537.... | 1,515 |
1,103 | /*
* Copyright 2016-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
*
* Unless required by ... | 632 |
567 | package com.google.cloud.bigquery.utils.queryfixer.errors;
import com.google.cloud.bigquery.BigQueryException;
import com.google.cloud.bigquery.utils.queryfixer.entity.Position;
import lombok.Getter;
/**
* A class to represent the "Table Not Found" errors from BigQuery. The errors are presented in this
* form: "No... | 202 |
310 | /*
!@
MIT License
Copyright (c) 2020 Skylicht Technology CO., LTD
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... | 764 |
413 | #include "caffe/profiler.hpp"
#if defined(_MSC_VER) && _MSC_VER <= 1800
#include <Windows.h>
#else
#include <chrono>
#endif // _MSC_VER
#include <fstream>
namespace caffe {
Profiler::Profiler()
: init_(Now()), state_(kNotRunning) {
scope_stack_.reserve(10);
scopes_.reserve(1024);
}
Profiler *Profiler::Get... | 1,101 |
1,172 | <gh_stars>1000+
// Copyright (C) 2007 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | 3,762 |
5,865 | <filename>server/src/test-integration/java/com/thoughtworks/go/server/materials/MaterialDatabaseGitWithSubmodulesUpdaterTest.java
/*
* Copyright 2021 ThoughtWorks, 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 o... | 632 |
2,496 | <reponame>flamendless/love<gh_stars>1000+
/*
** $Id: lstrlib.c,v 1.254 2016/12/22 13:08:50 roberto Exp $
** Standard library for string operations and pattern-matching
** Modified by the Kepler Project and the LOVE Development Team to work with
** Lua 5.1's API
*/
/*****************************************************... | 7,923 |
532 | <reponame>vinaym815/opensim-core
/* -------------------------------------------------------------------------- *
* OpenSim: testJointReactions.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskel... | 1,808 |
4,798 | // Copyright 2020-present the Material Components for iOS authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//... | 360 |
621 | //
// MessagePack for C++ deserializing routine
//
// Copyright (C) 2016 <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)
//
#ifndef MSGPACK_V2_UNPACK_DECL_HPP
#define MSGPACK_V2_UNPACK_DECL_HPP... | 827 |
1,630 | # -*- coding: utf-8 -*-
"""Account family test constants."""
# Fakers
FIRST_NAME = "Quentin"
LAST_NAME = "TARANTINO"
FULL_NAME = FIRST_NAME + " " + LAST_NAME
PERSON_ID = (FIRST_NAME + LAST_NAME).lower()
PRIMARY_EMAIL = PERSON_ID + "@hotmail.fr"
APPLE_ID_EMAIL = PERSON_ID + "@me.com"
ICLOUD_ID_EMAIL = PERSON_ID + "@icl... | 1,793 |
746 | package org.protege.editor.owl.ui.selector;
import org.protege.editor.core.ui.view.ViewComponent;
import org.protege.editor.core.ui.view.ViewComponentPlugin;
import org.protege.editor.core.ui.view.ViewComponentPluginAdapter;
import org.protege.editor.core.ui.workspace.Workspace;
import org.protege.editor.owl.OWLEditor... | 1,853 |
385 | /**
* @file ParameterObj.h
* @brief Parameter instance object.
*/
#pragma once
#include "types.h"
namespace al
{
class ParameterObj
{
public:
ParameterObj();
u64 _0;
u64 _8;
u64 _10;
u64 _18;
u8 _20[0x78-0x20];
};
}; | 156 |
358 | <reponame>kristi/qfs
/*
* GF-Complete: A Comprehensive Open Source Library for Galois Field Arithmetic
* <NAME>, <NAME>, <NAME>,
* <NAME>, <NAME>, <NAME>, <NAME>.
*
* gf_example_7.c
*
* Demonstrating extract_word and Cauchy
*/
#include <stdio.h>
#include <getopt.h>
#include <stdint.h>
#include <string.h>
#incl... | 832 |
3,102 | <gh_stars>1000+
// RUN: %clang_cc1 %s -fsyntax-only -Wno-unused-value -Wmicrosoft -verify -fms-compatibility
// PR15845
int foo(xxx); // expected-error{{unknown type name}}
struct cls {
char *m;
};
char * cls::* __uptr wrong2 = &cls::m; // expected-error {{'__uptr' attribute cannot be used with pointers to members... | 120 |
777 | <reponame>Sun-Joong/aifh<filename>vol1/c-examples/ExampleRandom.c
/*
* Artificial Intelligence for Humans
* Volume 1: Fundamental Algorithms
* C/C++ Version
* http://www.aifh.org
* http://www.jeffheaton.com
*
* Code repository:
* https://github.com/jeffheaton/aifh
* Copyright 2013 by <NAME>
*
* Licensed und... | 2,038 |
765 | /*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for additional information regarding copyright ownership.
Accellera licenses... | 5,733 |
471 | <filename>corehq/util/workbook_reading/adapters/__init__.py
from .csv import open_csv_workbook
from .xls import open_xls_workbook
from .xlsx import open_xlsx_workbook
from .generic import open_any_workbook, valid_extensions
from .raw_data import make_worksheet
__all__ = [
'open_csv_workbook',
'open_xls_workbo... | 169 |
984 | <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 licenses this file
* to you under the Apache License, Version 2.0 (the
... | 752 |
359 | /*
Copyright 2018 New Vector Ltd
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, soft... | 359 |
1,104 | <gh_stars>1000+
package com.cg.baseproject.utils.android;
import android.graphics.ColorMatrixColorFilter;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.ImageView;
/**
* @Description:主要功能:控件点击效果动画工具类
* @Prject: CommonUtilLibrary
* @Package... | 2,396 |
777 | // 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 EXTENSIONS_COMMON_FEATURES_BASE_FEATURE_PROVIDER_H_
#define EXTENSIONS_COMMON_FEATURES_BASE_FEATURE_PROVIDER_H_
#include <map>
#include <memory>
... | 541 |
12,252 | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apach... | 1,021 |
8,575 | //
// SFPreferencePane.h
// Soundfly
//
// Created by <NAME> on 15/02/08.
// Copyright 2008 abyssoft. All rights reserved.
//
#import <PreferencePanes/PreferencePanes.h>
@class SFVersionTextField;
@interface SFPreferencePane : NSPreferencePane
{
BOOL _active;
int _senderStatus;
int _receiverStat... | 255 |
316 | <reponame>roblabs/maplibre-gl-native
[
"BaseLocationActivity",
"MapSnapshotterMarkerActivity",
"MapSnapshotterReuseActivity",
"MapSnapshotterLocalStyleActivity",
"LatLngBoundsActivity",
"BottomSheetActivity",
"MockLocationEngine",
"DeleteRegionActivity",
"RealTimeGeoJsonActivity",
"UpdateMetadataAct... | 471 |
4,879 | #import "MWMTableViewController.h"
#include <string>
#include <vector>
#include <utility>
@interface MWMTTSSettingsViewController : MWMTableViewController
- (void)setAdditionalTTSLanguage:(std::pair<std::string, std::string> const &)l;
- (std::vector<std::pair<std::string, std::string>> const &)languages;
@end
| 107 |
327 | package com.honvay.cola.cloud.framework.base.configuration;
import com.honvay.cola.cloud.framework.core.constant.ErrorStatus;
import com.honvay.cola.cloud.framework.core.exception.ServiceException;
import com.honvay.cola.cloud.framework.core.protocol.Result;
import org.hibernate.validator.internal.engine.path.PathImpl... | 2,699 |
4,612 | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for loading tests by name.
"""
import os
import sys
import unittest as pyunit
from hashlib import md5
from twisted.python import filepath, util
from twisted.python.modules import getModule
from twisted.python.reflect import ModuleNotF... | 9,311 |
678 | package utils;
public class CurrencyConverterGlobal {
public static int global_image_id;
public static String global_country_name;
public static String country_id;
}
| 54 |
507 | <filename>spring-aot/src/main/java/org/springframework/aot/nativex/ConfigurationContributor.java
/*
* Copyright 2019-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of... | 3,376 |
2,293 | /* universal.c
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
* 2005, 2006, 2007, 2008 by <NAME> and others
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specified in the README file.
*
*/
/*
* '"The roots ... | 18,310 |
17,242 | <filename>mediapipe/framework/stream_handler/fixed_size_input_stream_handler.cc
// Copyright 2019 The MediaPipe 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://... | 3,269 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.