max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
348 | {"nom":"Montoulieu","circ":"1ère circonscription","dpt":"Ariège","inscrits":317,"abs":136,"votants":181,"blancs":14,"nuls":13,"exp":154,"res":[{"nuance":"FI","nom":"<NAME>","voix":102},{"nuance":"REM","nom":"<NAME>","voix":52}]} | 88 |
575 | <gh_stars>100-1000
// 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_BROWSER_ASH_DRIVE_FILEAPI_DRIVEFS_ASYNC_FILE_UTIL_H_
#define CHROME_BROWSER_ASH_DRIVE_FILEAPI_DRIVEFS_ASYNC_FILE_UTIL_H_... | 544 |
2,757 | /*++
Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved
This program and the accompanying materials are licensed and made available under
the terms and conditions of the BSD License that accompanies this distribution.
The full text of the license may be found at
http://opensource.org/l... | 352 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/021/02104165.json
{"nom":"Chemin-d'Aisey","circ":"4ème circonscription","dpt":"Côte-d'Or","inscrits":58,"abs":23,"votants":35,"blancs":11,"nuls":0,"exp":24,"res":[{"nuance":"REM","nom":"<NAME>","voix":14},{"nuance":"LR","nom":"<NAME>","voix":10}]} | 136 |
6,436 | #include "ofFpsCounter.h"
ofFpsCounter::ofFpsCounter()
:nFrameCount(0)
,then(ofGetCurrentTime())
,fps(0)
,lastFrameTime(0)
,filteredTime(0)
,filterAlpha(0.9){}
ofFpsCounter::ofFpsCounter(double targetFPS)
:nFrameCount(0)
,then(ofGetCurrentTime())
,fps(targetFPS)
,lastFrameTime(0)
,filteredTime(0)
,filterAlpha(0.9){... | 644 |
1,056 | /*
* 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 ... | 2,124 |
1,154 | <reponame>TheRakeshPurohit/memfs
{
"extends": [
"config:base"
],
"automerge": true,
"pinVersions": false,
"major": {
"automerge": false
},
"devDependencies": {
"automerge": true,
"pinVersions": true
},
"packageRules": [
{
"packageNames": ["@types/jest", "ts-jest"],
"gro... | 167 |
496 | import mmdet2trt.ops.util_ops as mm2trt_util
import torch
def batched_distance2bbox(points, distance, max_shape=None):
x1 = points[:, :, 0] - distance[:, :, 0]
y1 = points[:, :, 1] - distance[:, :, 1]
x2 = points[:, :, 0] + distance[:, :, 2]
y2 = points[:, :, 1] + distance[:, :, 3]
if max_shape is... | 568 |
1,090 | package com.uber.okbuck.example;
import android.content.ComponentName;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Bundle;
import android.os.IBinder;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
import androidx.appcompat.app.AppCompat... | 1,493 |
521 | <reponame>PLNech/filprofiler
"""Send SIGUSR2 to this process to trigger dumps."""
import os
import signal
import time
import numpy
data1 = numpy.ones((1024, 1024, 20), dtype=numpy.uint8)
os.kill(os.getpid(), signal.SIGUSR2)
time.sleep(0.5)
data2 = numpy.ones((1024, 1024, 50), dtype=numpy.uint8)
| 118 |
3,102 | typedef __SIZE_TYPE__ size_t;
| 13 |
852 | #ifndef RCTINPUTTEXTTODIGI_H
#define RCTINPUTTEXTTODIGI_H
// -*- C++ -*-
//
// Class: RctInputTextToDigi
//
/**\class RctInputTextToDigi L1Trigger/TextToDigi/plugins/RctInputTextToDigi.cc
L1Trigger/TextToDigi/plugins/RctInputTextToDigi.h
Description: Creates an EcalTrigPrimDigiCollection and an
HcalTrigPrimDi... | 673 |
348 | {"nom":"Abancourt","circ":"2ème circonscription","dpt":"Oise","inscrits":435,"abs":232,"votants":203,"blancs":9,"nuls":4,"exp":190,"res":[{"nuance":"FN","nom":"<NAME>","voix":132},{"nuance":"REM","nom":"<NAME>","voix":58}]} | 88 |
1,056 | /*
* 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,798 |
383 | /*
* Copyright 2015-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 1,306 |
513 | <gh_stars>100-1000
/*
* The MIT License
*
* Copyright (C) 2015-2017 <NAME> <<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 without restriction, including
* without limitat... | 1,713 |
542 | <filename>OneSignalSDK/unittest/src/test/java/com/onesignal/ShadowFirebaseApp.java
package com.onesignal;
import android.content.Context;
import androidx.annotation.NonNull;
import com.google.firebase.FirebaseApp;
import com.google.firebase.FirebaseOptions;
import org.robolectric.annotation.Implements;
@Implements... | 212 |
4,054 | <filename>readthedocs/projects/migrations/0048_remove_version_privacy_field.py
# Generated by Django 2.2.12 on 2020-05-04 18:41
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('projects', '0047_webhook_url_set_blank_default'),
]
operations = [
m... | 183 |
14,668 | <filename>ui/android/java/src/org/chromium/ui/widget/RippleBackgroundHelper.java
// 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.
package org.chromium.ui.widget;
import android.content.res.ColorStateLis... | 4,052 |
315 | <gh_stars>100-1000
package no.nordicsemi.android.nrfmesh.viewmodels;
import javax.inject.Inject;
import androidx.annotation.NonNull;
import androidx.lifecycle.MutableLiveData;
import dagger.hilt.android.lifecycle.HiltViewModel;
import no.nordicsemi.android.mesh.NetworkKey;
import no.nordicsemi.android.nrfmesh.keys.Ap... | 615 |
622 | # -*- coding: utf-8 -*-
"""
@author: salimt
"""
'''
In[37]: import doctest
In[38]: doctest.testmod()
Out[39]: TestResults(failed=0, attempted=2)
'''
import doctest
doctest.testmod()
def get_divisors(num, possible_divisors):
"""(int, list of int) -> list of int
Return a list of the val... | 680 |
356 | <filename>mind-map/scia-reto/src/main/java/com/igormaznitsa/sciareto/services/SciaRetoLoggerService.java
/*
* Copyright (C) 2018 <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 Founda... | 400 |
453 | <reponame>The0x539/wasp
/* @(#)z_ispos.c 1.0 98/08/13 */
/******************************************************************
* Numtest
*
* Input:
* x - pointer to a floating point value
*
* Output:
* An integer that indicates if the number is positive.
*
* Description:
* This routine returns an integer... | 246 |
4,405 | <gh_stars>1000+
/*
** 2016-05-28
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
**********... | 13,175 |
575 | // 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.
#include "components/sync/model/sync_data.h"
#include <algorithm>
#include <ostream>
#include <utility>
#include "base/json/json_writer.h"
#include ... | 1,577 |
1,902 | # coding=utf-8
# Copyright 2018 Google LLC & <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 required by applicable law o... | 9,840 |
1,056 | package javahints;
public class TestShortErrors9 {
public TestShortErrors9() {
final int y;
final TestShortErrors9 t;
new Runnable() {
public void run() {
System.err.println(y);
System.err.println(t.y);
}
};
}
... | 185 |
362 | package net.ripe.db.whois.common.pipeline;
import io.netty.channel.Channel;
import io.netty.util.AttributeKey;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.net.Inet6Address;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.UnknownHostException;
import java.nio.ch... | 586 |
1,362 | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from tests import IntegrationTestCase
from tests.holodeck import Request
from twilio.base import serialize
from twilio.base.exceptions import TwilioException
from twilio.http.response import Response... | 557 |
12,718 | #include <windows.h>
#include <malloc.h>
#include <time.h>
#include <errno.h>
#include <msvcrt.h>
static errno_t __cdecl _int_gmtime64_s (struct tm *, const __time64_t *);
static errno_t __cdecl _stub (struct tm *, const __time64_t *);
errno_t __cdecl (*__MINGW_IMP_SYMBOL(_gmtime64_s))(struct tm *, const __time64_t *... | 567 |
326 | package com.bihell.dice.blog.service.task;
import com.bihell.dice.blog.model.tool.Task;
/**
* @author haseochen
*/
public interface TaskService {
/**
* @param task
* @return
*/
Task save(Task task);
public Task disable(Long id);
Task enable(Long id);
void delete(Long id);
}
| 125 |
310 | <gh_stars>100-1000
{
"name": "Gmail (Android)",
"description": "A Gmail client for Android.",
"url": "https://play.google.com/store/apps/details?id=com.google.android.gm"
} | 65 |
816 | <reponame>JoshuaJeme/mybatis-dynamic-sql
/*
* Copyright 2016-2020 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.apach... | 5,569 |
852 | // \class JetTracksAssociationDRCalo
// Associate jets with tracks by simple "delta R" criteria
// <NAME> (UMd), Aug. 28, 2007
#ifndef JetTracksAssociationDRCalo_h
#define JetTracksAssociationDRCalo_h
#include "DataFormats/JetReco/interface/JetTracksAssociation.h"
#include "DataFormats/Math/interface/Point3D.h"
clas... | 498 |
337 | class Utils {
public static int foo(int arg) { return arg; }
} | 23 |
1,582 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import os
from datetime import datetime
from urllib import urlencode
from quixote import get_user as get_current_user_id, get_session
from vilya.libs.store import store, cache, mc, ONE_MONTH
from vilya.libs.text import gravatar_url
from vilya.libs.props... | 10,976 |
460 | <filename>mvvmfx-utils/src/test/java/de/saxsys/mvvmfx/utils/listener/ListenerManagerTest.java
/*******************************************************************************
* Copyright 2013 manuel.mauky
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in comp... | 1,895 |
809 | /**
* @file
* @brief SPI MSP layer derived from Cube
*
* @date 23.06.18
* @author <NAME>
*/
#include <errno.h>
#include <string.h>
#include <assert.h>
#include <util/log.h>
#include <embox/unit.h>
#include "stm32f4_discovery.h"
static int spix_sck_pin(void *spi) {
assert(spi == SPI1 || spi == SPI2);
retur... | 1,217 |
4,054 | <reponame>Thendont/lwjgl<filename>modules/lwjgl/opengles/src/generated/java/org/lwjgl/opengles/OESRGB8RGBA8.java
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.opengles;
/**
* Native bindings to the <a target="_b... | 310 |
3,195 | /*
* 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 ... | 734 |
4,054 | <gh_stars>1000+
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.query;
import com.yahoo.prelude.query.textualrepresentation.Discloser;
import java.nio.ByteBuffer;
/**
* Common implementation for Item classes implementing the IndexedI... | 725 |
2,113 | package io.noties.markwon.image.destination;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
import static org.junit.Assert.*;
@RunWith(RobolectricTestRunner.class)
@Config(manifest = Config.NONE)
public class ImageDestin... | 907 |
1,436 | <reponame>jenniew/IntelCaffeOnSpark_mirror
'''
Copyright 2016 Yahoo Inc.
Licensed under the terms of the Apache 2.0 license.
Please see LICENSE file in the project root for terms.
'''
import subprocess
def toCamelCase(prefix,string):
return prefix+string[0].upper()+string[1:]
def isPrefix(prefix,string):
retur... | 383 |
599 | {
"name": "static-land",
"version": "1.0.0",
"description": "",
"main": "lib/index.js",
"jsnext:main": "lib-es/index.js",
"files": [
"lib",
"lib-es",
"umd"
],
"scripts": {
"lobot": "lobot",
"lint": "eslint .",
"test": "eslint . && lobot test"
},
"keywords": [],
"author": "<... | 348 |
1,264 | import pycuda.autoinit
import pycuda.gpuarray as gpuarray
import pycuda.driver as cuda
import numpy
free_bytes, total_bytes = cuda.mem_get_info()
exp = 10
while True:
fill_floats = free_bytes / 4 - (1<<exp)
if fill_floats < 0:
raise RuntimeError("couldn't find allocatable size")
try:
print(... | 238 |
1,085 | <gh_stars>1000+
/*
* Copyright (C) 2017-2019 Dremio 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... | 323 |
629 | //
// File: biekbimofknojmop_pinv.cpp
//
// Code generated for Simulink model 'est_estimator'.
//
// Model version : 1.1137
// Simulink Coder version : 8.9 (R2015b) 13-Aug-2015
// C/C++ source code generated on : Wed May 3 15:13:05 2017
//
#include "rtwtypes.h"
#include "jmgljmgdphdjlfcj_svd.h... | 1,065 |
1,157 | /**
* Test a simple two-server multimaster topology with MariaDB-Monitor.
*/
#include <maxtest/testconnections.hh>
using mxt::ServerInfo;
void test_main(TestConnections& test);
int main(int argc, char* argv[])
{
TestConnections test;
return test.run_test(argc, argv, test_main);
}
void test_main(TestConne... | 1,146 |
2,023 | # Remove duplicates from a list:
>>> L = [1,2,2,3,3,3]
>>> [x for x in L if x not in locals()['_[1]'].__self__]
[1,2,3]
# That's a bit ugly, so let's encapsulate it in a function.
# Be carefull with nested list comprehensions. The inner one is
# called "_[2]" (or "_[3]", and so on if you nest them deeply).
def thisli... | 1,089 |
732 | <gh_stars>100-1000
//
// UIView+JKPicker.h
// JKImagePicker
//
// Created by Jecky on 15/1/11.
// Copyright (c) 2015年 Jecky. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIView (JKPicker)
@property (nonatomic) CGFloat left;
@property (nonatomic) CGFloat top;
@property (nonatomic) CGFloat right;
@pr... | 230 |
460 | #include "../../../src/declarative/graphicsitems/qdeclarativetranslate_p.h"
| 29 |
8,747 | <reponame>DCNick3/esp-idf
/* $Id: //depot/dev/Foxhill/Xtensa/OS/include/xtensa/mpuasm.h#5 $ */
/*
* Copyright (c) 2016 Cadence Design Systems, 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 ... | 1,633 |
4,816 | <gh_stars>1000+
/**
* @file include/retdec/common/file_type.h
* @brief Common file type representation.
* @copyright (c) 2019 Avast Software, licensed under the MIT license
*/
#ifndef RETDEC_COMMON_FILE_TYPE_H
#define RETDEC_COMMON_FILE_TYPE_H
namespace retdec {
namespace common {
/**
* Represents input binary'... | 412 |
970 | <filename>spec/fixtures/project_update_commit_status.json
{"id":498,"sha":"7d938cb8ac15788d71f4b67c035515a160ea76d8","ref":"decreased-spec","status":"failed","name":"test","target_url":null,"description":null,"created_at":"2015-10-23T23:56:49.499+02:00","started_at":null,"finished_at":"2015-10-23T23:56:49.534+02:00","a... | 194 |
14,391 | import re
from wxpy import *
class TestUser:
def test_friend_attributes(self, friend):
assert isinstance(friend, Friend)
assert friend.nick_name == 'wxpy 机器人'
assert friend.wxid in ('wxpy_bot', None)
assert friend.province == '广东'
assert friend.city == '深圳'
assert ... | 537 |
3,228 | /*
* RED5 Open Source Flash Server - http://code.google.com/p/red5/ Copyright 2006-2013 by respective authors (see below). 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 htt... | 787 |
3,337 | // This program demonstrates how to use multi-condition task
// to jump to multiple successor tasks
//
// A ----> B
// |
// |---> C
// |
// |---> D
//
#include <taskflow/taskflow.hpp>
int main() {
tf::Executor executor;
tf::Taskflow taskflow("Multi-Conditional Tasking Demo");
auto A = taskflow.emplac... | 315 |
709 | <filename>Siv3D/include/Siv3D/CopyOption.hpp
//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2021 <NAME>
// Copyright (c) 2016-2021 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pra... | 413 |
332 | <reponame>wtlgo/vk-java-sdk
// Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.exceptions;
public class ApiPrivateProfileException extends ApiException {
public ApiPrivateProfileException(String message) {
super(30, "This profile is private", message);
}
}
| 110 |
7,880 | /**
* A card from a deck - the value is between 2-14 to cover
* cards with a face value of 2-9 and then a Jack, Queen, King, and Ace
*/
public class Card {
private int value;
private String name;
Card(int value) {
init(value);
}
private void init(int value) {
this.value = value;... | 582 |
3,031 | <gh_stars>1000+
# encoding: utf-8
"""Unit test suite for docx.image package"""
from __future__ import absolute_import, print_function, unicode_literals
import pytest
from docx.compat import BytesIO
from docx.image.bmp import Bmp
from docx.image.exceptions import UnrecognizedImageError
from docx.image.gif import Gif... | 5,323 |
2,151 | <gh_stars>1000+
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this ... | 1,239 |
1,056 | /*
* 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 ... | 2,021 |
5,169 | <gh_stars>1000+
{
"name": "HRSCustomErrorHandling",
"version": "0.4.0",
"summary": "HRSCustomErrorHandling provides an easy way to handle error presentation and creation on iOS.",
"description": "HRSCustomErrorHandling is a small Framework that provides a base implementation for error handling in iOS applicatio... | 463 |
2,494 | <filename>deps/mozjs/src/builtin/WeakSetObject.cpp
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You... | 1,757 |
1,799 | <gh_stars>1000+
// Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
//... | 21,937 |
2,293 | <reponame>DavidLesnjak/CMSIS_5
#include "Test.h"
#include "Pattern.h"
#include "dsp/matrix_functions.h"
class UnaryTestsF64:public Client::Suite
{
public:
UnaryTestsF64(Testing::testID_t id);
virtual void setUp(Testing::testID_t,std::vector<Testing::param_t>& params,Client::Pattern... | 1,017 |
17,275 | <reponame>hammadismae/jenkins
/*
* The MIT License
*
* Copyright (c) 2004-2009, Sun Microsystems, Inc., <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, in... | 912 |
937 | <reponame>zmyer/cyclops-react
package com.oath.cyclops.trycatch;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.Matchers.instanceOf;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.*;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.i... | 1,802 |
508 | <filename>src/main/java/com/github/instagram4j/instagram4j/responses/locationsearch/LocationSearchResponse.java
package com.github.instagram4j.instagram4j.responses.locationsearch;
import java.util.List;
import com.github.instagram4j.instagram4j.models.location.Location.Venue;
import com.github.instagram4j.instagram4... | 171 |
1,577 | from typing import List, Optional
import csv
from io import StringIO
import os
from pathlib import Path
from tempfile import TemporaryDirectory
import rasterio
from shapely.strtree import STRtree
from shapely.geometry import shape, mapping
from shapely.ops import transform
from rastervision.core import Box
from raste... | 3,455 |
348 | <filename>docs/data/leg-t1/076/07604178.json
{"nom":"Cléon","circ":"4ème circonscription","dpt":"Seine-Maritime","inscrits":3105,"abs":1749,"votants":1356,"blancs":27,"nuls":9,"exp":1320,"res":[{"nuance":"SOC","nom":"<NAME>","voix":366},{"nuance":"REM","nom":"M<NAME>","voix":303},{"nuance":"FN","nom":"M. <NAME>","voix"... | 318 |
10,876 | <filename>ports/catch/vcpkg.json
{
"name": "catch",
"version-string": "alias",
"port-version": 1,
"description": "Deprecated alias for Catch2 unit testing framework",
"dependencies": [
"catch2"
]
}
| 78 |
778 | from __future__ import print_function, absolute_import, division #makes KratosMultiphysics backward compatible with python 2.6 and 2.7
import KratosMultiphysics
import KratosMultiphysics.DelaunayMeshingApplication as KratosDelaunay
import KratosMultiphysics.PfemFluidDynamicsApplication as KratosPfemFluid
from importli... | 6,167 |
945 | /*
* 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,389 |
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.
#include "third_party/blink/renderer/platform/loader/fetch/source_keyed_cached_metadata_handler.h"
#include "third_party/blink/renderer/platform/crypto.h... | 3,277 |
487 | var = 5
a = "my string {}".format(var)
| 16 |
463 | package com.hystrix.normal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class Hys... | 191 |
1,592 | # appModules/1password.py
# A part of NonVisual Desktop Access (NVDA)
# Copyright (C) 2020 <NAME>
# This file is covered by the GNU General Public License.
# See the file COPYING for more details.
import appModuleHandler
import UIAHandler
class AppModule(appModuleHandler.AppModule):
def shouldProcessUI... | 223 |
5,193 | /*
* Copyright (C) 2016 AriaLyy(https://github.com/AriaLyy/Aria)
*
* 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 requir... | 1,304 |
437 | package com.brianway.learning.spring.aop.aspectj.example;
import com.brianway.learning.spring.aop.advice.NaiveWaiter;
import com.brianway.learning.spring.aop.advice.Waiter;
import org.junit.Test;
import org.springframework.aop.aspectj.annotation.AspectJProxyFactory;
import org.springframework.context.ApplicationContex... | 450 |
6,989 | #include "printf.h"
#include <util/stream/printf.h>
#include <util/stream/str.h>
int vsprintf(TString& s, const char* c, va_list params) {
TStringOutput so(s.remove());
return Printf(so, c, params);
}
int sprintf(TString& s, const char* c, ...) {
va_list params;
va_start(params, c);
const int k ... | 325 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.test;
import com.yahoo.config.model.producer.AbstractConfigProducer;
import com.yahoo.vespa.model.AbstractService;
import com.yahoo.vespa.model.PortAllocBridge;
/**
* This is a servi... | 417 |
310 | {
"name": "<NAME>",
"description": "A spirit level.",
"url": "https://sasworkwear.co.uk/products/surfacemaster-600mm-24in-girder-spirit-level"
}
| 61 |
2,636 | //
// kern_time.hpp
// Lilu
//
// Copyright © 2018 vit9696. All rights reserved.
//
#ifndef kern_time_hpp
#define kern_time_hpp
#include <kern/clock.h>
/**
* Obtain current system time in nanoseconds
*
* @return current time
*/
inline uint64_t getCurrentTimeNs() {
uint64_t currt = 0;
absolutetime_to_nanos... | 953 |
2,151 | <filename>chrome/browser/resources/chromeos/chromevox/PRESUBMIT.py
# 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.
"""Presubmit script for ChromeVox."""
def CheckChangeOnUpload(input_api, output_api):
p... | 512 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-cf9h-mc58-gqvq",
"modified": "2022-05-01T18:45:04Z",
"published": "2022-05-01T18:45:04Z",
"aliases": [
"CVE-2007-6652"
],
"details": "cpie.php in XCMS 1.83 and earlier sends a redirect to the web browser but does not exit, which allows remote... | 540 |
1,444 | <filename>Mage.Sets/src/mage/cards/n/NaiadOfHiddenCoves.java
package mage.cards.n;
import mage.MageInt;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.condition.common.NotMyTurnCondition;
import mage.abilities.decorator.ConditionalCostModificationEffect;
import mage.abilities.effects.common.co... | 607 |
319 | <reponame>Celebrate-future/openimaj
/**
* Copyright (c) 2011, The University of Southampton and the individual contributors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistr... | 2,209 |
335 | <filename>F/Forefather_noun.json
{
"word": "Forefather",
"definitions": [
"A member of the past generations of one's family or people; an ancestor.",
"A precursor of a particular movement."
],
"parts-of-speech": "Noun"
} | 97 |
409 | <filename>_RELEASE/Packs/experimental/Levels/collision_test.json
{
"id": "collisiontest",
"name": "Collision Test",
"description": "Side collision testing on ordinary walls",
"author": "Morxemplum",
"menuPriority": 12,
"selectable": true,
"styleId": "wall_ref",
"musicId": "jackRussel",
... | 179 |
30,023 | """Tests for the sun component."""
| 10 |
4,339 | /*
* 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 ... | 575 |
335 | <gh_stars>100-1000
{
"word": "Sterling",
"definitions": [
"(of a person or their work or qualities) excellent or valuable."
],
"parts-of-speech": "Adjective"
} | 76 |
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 ... | 1,985 |
721 | <filename>src/tests/BadRkDemo/Installer/main.c
/*******************************************************************************
*
* (C) COPYRIGHT AUTHORS, 2017
*
* TITLE: MAIN.C
*
* VERSION: 1.10
*
* DATE: 14 May 2017
*
* Installer for BadRkDemo BSOD generator.
*
* THIS CODE AND INFORMATION IS PRO... | 4,161 |
897 | /*
Given a number's base and power.
return the number.
base and power can be large as 10^6 to 10^9
so we need to mod with some big number in order to get the number
this can be done by bigmod algorithm
*/
import java.util.Scanner;
import java.lang.*;
import java.math.*;
public class NumberofDivisors
{
//this funct... | 790 |
316 | package com.salesforce.dva.argus.service.schedule;
import static com.salesforce.dva.argus.system.SystemAssert.requireArgument;
import java.math.BigInteger;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Properties;
import org.quartz.CronSche... | 9,336 |
2,027 | <filename>protocols/raft/src/main/java/io/atomix/protocols/raft/roles/InactiveRole.java<gh_stars>1000+
/*
* Copyright 2015-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 cop... | 2,847 |
542 | <reponame>js20166098/sxfStandard
/*
* Copyright ©2018 vbill.cn.
* <p>
* 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
*
* U... | 3,340 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.