max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
378 | /**
* 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... | 520 |
2,151 | # 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.
"""Runs Apple's JetStream benchmark.
JetStream combines a variety of JavaScript benchmarks, covering a variety of
advanced workloads and programming techniq... | 1,234 |
8,913 | <filename>MaterialDesign/src/com/gc/materialdesign/views/ProgressBarIndeterminateDeterminate.java
package com.gc.materialdesign.views;
import com.nineoldandroids.animation.Animator;
import com.nineoldandroids.animation.Animator.AnimatorListener;
import com.nineoldandroids.animation.ObjectAnimator;
import com.nineoldan... | 820 |
2,023 | <reponame>tdiprima/code<filename>recipes/C++/580612_MicroXml_Standalone_library_basic_XML/recipe-580612.cpp<gh_stars>1000+
/*
MicroXml provides stand-alone support for the basic, most-used features
of XML -- tags, attributes, and element values. That's all. It produces
a DOM tree of XML nodes.
MicroXml does not suppor... | 5,361 |
365 | /*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... | 1,702 |
2,151 | // 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/loader/fetch/buffering_data_pipe_writer.h"
#include <memory>
#include <random>
#include "testing/gtest/inc... | 870 |
330 | <reponame>sail-sg/envpool
/*
* Copyright 2021 Garena Online Private Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... | 2,133 |
956 | /* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2018 Advanced Micro Devices, Inc. All rights reserved.
*/
#ifndef _CCP_CRYPTO_H_
#define _CCP_CRYPTO_H_
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <rte_atomic.h>
#include <rte_byteorder.h>
#include <rte_io.h>... | 4,310 |
301 | /******************************************************************
*
* Copyright 2016 Samsung Electronics 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://... | 3,993 |
14,668 | <filename>media/formats/hls/types.cc
// Copyright 2021 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 "media/formats/hls/types.h"
#include <cmath>
#include "base/no_destructor.h"
#include "base/strings/string... | 975 |
8,805 | /*
* Copyright <NAME> 2015.
* Copyright <NAME> 2016.
* 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)
*/
/*!
* \file text_ipc_message_queue_backend.hpp
* \a... | 2,588 |
496 | /*
* Copyright (C) 2018 <NAME>
*
* Author: <NAME> <<EMAIL>>
*/
#include <unit/test.h>
#include <lexbor/core/array_obj.h>
typedef struct {
char *data;
size_t len;
}
test_struct_t;
TEST_BEGIN(init)
{
lexbor_array_obj_t *array = lexbor_array_obj_create();
lxb_status_t status = lexbor_array_obj_... | 3,401 |
310 | {
"name": "<NAME>",
"description": "A small backpack.",
"url": "https://www.awaytravel.com/au/en/travel-bags/daypack"
}
| 49 |
387 | from django.apps import AppConfig
class RestFrameworkTrackingConfig(AppConfig):
name = 'rest_framework_tracking'
verbose_name = "REST Framework Tracking"
| 50 |
641 | <gh_stars>100-1000
[
{
"swaggerFile": "http://localhost:5001/swagger/v1/swagger.json",
"csharpClient": "./TestWebApiClientAspNetCore.cs",
"typescriptClient": "./Scripts/TestWebApiClientAspNetCore.ts",
"namespace": "DotVVM.Samples.Common.Api.AspNetCore",
"compileTypescript": true,
... | 411 |
4,283 | /*
* Copyright 2021 Hazelcast Inc.
*
* Licensed under the Hazelcast Community License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://hazelcast.com/hazelcast-community-license
*
* Unless required by applicable law or agree... | 721 |
4,901 | /*
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 17,586 |
627 | /* Copyright 2020 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Type-C port manager for Fairchild's FUSB307 */
#include "console.h"
#include "fusb307.h"
#include "hooks.h"
#include "task.h"
#include "tcpci.h... | 1,393 |
2,177 | <gh_stars>1000+
# Date: June 12, 2013
# Author: <NAME>
# Purpose: Searches anki note fields and displays question and answer in alfred
import alfred
import sqlite3
import string
MAX_RESULTS = 50
(pathToCollection, query) = alfred.args()
# get the cards from the database
db = sqlite3.connect(pathToCollection)... | 425 |
401 | from __future__ import print_function
import sys
import copy
import random
import numpy as np
from collections import defaultdict
def data_partition(fname):
usernum = 0
itemnum = 0
User = defaultdict(list)
user_train = {}
user_valid = {}
user_test = {}
# assume user/item index starting fro... | 495 |
743 | {"name":"Mysterious Parsnip","image":"https://sunflower-land.com/play/erc1155/418.png","decimals":0,"external_url":"https://docs.sunflower-land.com/crafting-guide","attributes":[{"display_type":"boost_percentage","trait_type":"Parsnip Growth Speed","value":50}],"description":"## Mysterious Parsnip\n\nNo one knows where... | 323 |
303 | <gh_stars>100-1000
#include "modules/audio/pool/pool.h"
#include "objects/source/source.h"
using namespace love;
Pool::Pool()
{
for (size_t channel = 0; channel < this->TOTAL_CHANNELS; channel++)
this->available.push(channel);
}
Pool::~Pool()
{
Source::Stop(this);
}
int Pool::GetActiveSourceCount()... | 912 |
321 | package org.hoteia.qalingo.core.pojo.cart;
public class AddToCartPojoRequest {
private String marketAreaCode;
private String cartId;
private String productSkuCode;
private String catalogCategoryCode;
private int quantity;
public String getMarketAreaCode() {
return marketAre... | 511 |
488 | <reponame>maurizioabba/rose
#include <stdio.h>
#include <assert.h>
#include <math.h>
#include <stdlib.h>
// inputs
int inputs[] = {1,2,5,4,3};
const int error_0 = 1;
const int error_1 = 1;
const int error_2 = 1;
const int error_3 = 1;
const int error_4 = 1;
const int error_5 = 1;
const int error_6 = 1;
con... | 14,011 |
1,510 | <filename>exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/join/JoinStatus.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 copyright ownership. The... | 1,775 |
1,761 | from machine import I2C
from vl53l1x import VL53L1X
import time
i2c = I2C(2)
distance = VL53L1X(i2c)
while True:
print("range: mm ", distance.read())
time.sleep_ms(50)
| 87 |
512 | package xyz.staffjoy.company.dto;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ScheduledPerWeek {
private String week;
private int count;
}
| 97 |
635 | import __init__
import redis
from Kite import config
from Gon.stockinfospyder import StockInfoSpyder
redis_client = redis.StrictRedis(config.REDIS_IP,
port=config.REDIS_PORT,
db=config.CACHE_RECORED_OPENED_PYTHON_PROGRAM_DB_ID)
redis_client.lpush(co... | 264 |
897 | <reponame>TechSpiritSS/NeoAlgo
/* C++ program to print the n'th term in the Golomb sequence
Golomb sequence is a non-decreasing integer sequence where n'th
term is equal to the number of times n appears in the sequence */
#include <bits/stdc++.h>
using namespace std;
int golomb_sequence(int n)
{
// Create a dp a... | 555 |
5,169 | <reponame>Gantios/Specs
{
"name": "YJKeychain",
"version": "0.0.1",
"summary": "YJKeychain is a save data tool.",
"homepage": "https://github.com/YjAdair/YJKeychain",
"license": "MIT",
"authors": {
"YjAdair": "<EMAIL>"
},
"platforms": {
"ios": "7.0"
},
"source": {
"git": "https://github.... | 232 |
874 | <gh_stars>100-1000
package com.jnape.palatable.lambda.optics.prisms;
import com.jnape.palatable.lambda.functions.Fn1;
import com.jnape.palatable.lambda.optics.Prism;
import java.util.HashMap;
import java.util.Map;
import static com.jnape.palatable.lambda.adt.Maybe.maybe;
import static com.jnape.palatable.lambda.opti... | 694 |
310 | {
"name": "SourceRepo",
"description": "Source code hosting service.",
"url": "http://sourcerepo.com/"
} | 38 |
956 | #!/usr/bin/env python3
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2020 Intel Corporation
"""
Configure an entire Intel DSA instance, using idxd kernel driver, for DPDK use
"""
import sys
import argparse
import os
import os.path
class SysfsDir:
"Used to read/write paths in a sysfs directory"
def ... | 1,253 |
517 | """Helper functions to extract data from API responses
"""
from __future__ import unicode_literals
import json
from operator import getitem
import xml.etree.ElementTree as ET
from aspen import log
def _getitemchain(o, *keys):
return reduce(getitem, keys, o)
def _popitemchain(obj, *keys):
objs = [obj]
... | 1,644 |
506 | // https://open.kattis.com/problems/rockpaperscissors
#include <iomanip>
#include <iostream>
#include <vector>
using namespace std;
typedef vector<int> vi;
int main() {
bool first = true;
cout << fixed << setprecision(3);
while (true) {
int n, k;
cin >> n;
if (!n) break;
cin >> k;
vi w(n, 0);
vi l(n, ... | 624 |
728 | <gh_stars>100-1000
package com.jude.beam.expansion.list;
import android.content.Context;
import android.os.Build;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import com.jude.beam.R;
import c... | 2,091 |
1,041 | <reponame>GiannisMP/ebean
package io.ebeaninternal.server.deploy.meta;
import io.ebean.annotation.Identity;
import io.ebean.annotation.IdentityGenerated;
import io.ebean.annotation.IdentityType;
import io.ebean.config.dbplatform.IdType;
public final class DeployIdentityMode {
public static DeployIdentityMode auto(... | 1,121 |
679 | <reponame>denisgotthans/togglz
package org.togglz.core.activation;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.togglz.core.Feature;
import org.togglz.core.repository.FeatureState;
import org.togglz.core.user.FeatureUser;
import org.togglz.core.user.SimpleFeatureUser;
import ... | 1,093 |
408 | """
Register mathematical functions using decorators.
"""
import functools
import re
FUNCTIONS = {}
RE_OPERATION = re.compile(r"\((?P<operation>\w+) (?P<v1>\d+) (?P<v2>\d+)\)")
def register(func):
@functools.wraps(func)
def wrapped(v1: int, v2: int) -> int:
result = func(v1, v2)
print(f"res... | 494 |
4,196 | # Copyright © 2020 Interplanetary Database Association e.V.,
# BigchainDB and IPDB software contributors.
# SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
# Code is Apache-2.0 and docs are CC-BY-4.0
# # Stream Acceptance Test
# This test checks if the event stream works correctly. The basic idea of this
# test is... | 1,974 |
336 | <gh_stars>100-1000
extern "C" {
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
}
#include <cstdlib>
#include <iostream>
int main(int argc,const char* argv[])
{
lua_State* L = luaL_newstate();
luaL_openlibs(L);
if (argc > 1 && luaL_dofile(L, argv[1]))
{
std::cerr << lua_tostring(L,-1) << std::endl;
}
... | 188 |
700 | <filename>src/test/java/com/mxixm/fastboot/weixin/test/WxMenuTestApp.java
/*
* Copyright (c) 2016-2017, Guangshan (<EMAIL>) and 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 c... | 2,094 |
953 | <gh_stars>100-1000
package com.chillingvan.canvasglsample.offscreen;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Rect;
import android.graphics.SurfaceTexture;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompat... | 833 |
539 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package org.bondlib;
import org.junit.Test;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
public class StringHelperT... | 11,567 |
395 | #ifndef _LIGHTTPD_FETCH_H_
#define _LIGHTTPD_FETCH_H_
#include <lighttpd/events.h>
/* API to "fetch" data async. entries are revalidated on every lookup; revalidation should only check
* against a simple TTL. revalidation can trigger refresh, which doesn't invalidate the current entry,
* but starts a new lookup to ... | 1,434 |
2,453 | <reponame>haozhiyu1990/XVim2
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <Foundation/NSDateComponentsFormatter.h>
@interface _TtC6IDEKitP33_D963F54003DDFFF234F953EAF19165CC36IDETestReportDateComponentsFormatter : NSDat... | 179 |
498 | package com.yheriatovych.reductor.example;
import android.support.v7.util.DiffUtil;
import com.yheriatovych.reductor.example.model.Note;
import java.util.List;
class NotesDiffCallback extends DiffUtil.Callback {
private final List<Note> oldNotes;
private final List<Note> newNotes;
public NotesDiffCallba... | 360 |
461 | #ifndef BUTTERWORTHLPF_H
#define BUTTERWORTHLPF_H
typedef struct {
float out;
float coeffNum;
float coeffDen[3];
float samplesIn[2];
float samplesOut[2];
} ButterworthLPF;
void ButterworthLPF_Init(ButterworthLPF *lpf, float cutoffFrequencyHz, float sampleTime) {
float wc = 6.28318530718f * cutoffFrequencyHz;
... | 585 |
572 | <reponame>CyberFlameGO/examples<gh_stars>100-1000
#define CATCH_CONFIG_MAIN
#include "my_lib.h"
#include <catch2/catch.hpp>
TEST_CASE( "Sum negative values", "[sum]" ) {
REQUIRE( my_lib::sum(-2, -5) == -7 );
}
TEST_CASE( "Sum positive values", "[sum]" ) {
REQUIRE( my_lib::sum(1, 5) == 6 );
}
| 150 |
718 | <reponame>mikeleber/j2html
package j2html.tags.specialized;
import j2html.tags.ContainerTag;
public final class UlTag extends ContainerTag<UlTag> {
public UlTag() {
super("ul");
}
}
| 80 |
668 | package com.tal.wangxiao.conan.admin.service.impl;
import com.tal.wangxiao.conan.admin.service.HomeService;
import com.tal.wangxiao.conan.common.api.ResponseCode;
import com.tal.wangxiao.conan.common.constant.ReplayConstants;
import com.tal.wangxiao.conan.common.constant.enums.AgentStatus;
import com.tal.wangxiao.cona... | 2,428 |
1,163 | #import <Foundation/Foundation.h>
@protocol SPTAppRemoteTrack;
@protocol SPTAppRemotePlaybackOptions;
@protocol SPTAppRemotePlaybackRestrictions;
NS_ASSUME_NONNULL_BEGIN
/**
* The `SPTAppRemotePlayerState` represents the state within the Spotify player.
*/
@protocol SPTAppRemotePlayerState <NSObject>
/// The tra... | 386 |
2,338 | //===-- ObjectContainer.h ---------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 1,963 |
1,061 | <reponame>leafgray/cola
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Copyright (c) 2013 <NAME> <<EMAIL>>
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/LICE... | 2,837 |
575 | // 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 IOS_CHROME_BROWSER_BOOKMARKS_BOOKMARK_REMOVER_HELPER_H_
#define IOS_CHROME_BROWSER_BOOKMARKS_BOOKMARK_REMOVER_HELPER_H_
#include "base/callback.h... | 576 |
653 | <filename>samples/mobile_backend/merchant_server_tests.py
from merchant_server import app
import paypal_client
import unittest
import json
from mock import patch, Mock
class TestMerchantServer(unittest.TestCase):
def setUp(self):
"""Before each test, set up a test client"""
app.config['TESTING'] ... | 2,589 |
2,151 | <filename>third_party/angle/third_party/glmark2/src/src/libmatrix/test/options.cc
//
// Copyright (c) 2010 Linaro Limited
//
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the MIT License which accompanies
// this distribution, and is available at
// http://... | 855 |
474 | <filename>javacord-core/src/main/java/org/javacord/core/util/cache/UserPresenceCache.java
package org.javacord.core.util.cache;
import org.javacord.core.entity.user.UserPresence;
import java.util.Optional;
/**
* An immutable cache for all user presences.
*/
public class UserPresenceCache {
private static fina... | 711 |
354 | <filename>external/openglcts/modules/glesext/tessellation_shader/esextcTessellationShaderUtils.cpp
/*-------------------------------------------------------------------------
* OpenGL Conformance Test Suite
* -----------------------------
*
* Copyright (c) 2014-2016 The Khronos Group Inc.
*
* Licensed under the A... | 20,987 |
421 | <reponame>jeremylong/owasp-java-encoder
// Copyright (c) 2012 <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 source code must retain the above
// ... | 2,581 |
348 | <filename>docs/data/leg-t1/050/05001556.json
{"nom":"Sainte-Suzanne-sur-Vire","circ":"1ère circonscription","dpt":"Manche","inscrits":534,"abs":234,"votants":300,"blancs":8,"nuls":1,"exp":291,"res":[{"nuance":"REM","nom":"<NAME>","voix":116},{"nuance":"LR","nom":"<NAME>","voix":65},{"nuance":"FN","nom":"<NAME>","voix":... | 278 |
587 | <filename>StoveFireiOSMenu/ViewControllers/Open/SFOpenViewController.h
//
// SFOpenViewController.h
// StoveFireiOSMenu
//
// Created by <NAME> on 8/12/14.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "SFQRCodeViewController.h"
@interface SFOpenViewController : UIViewContr... | 292 |
1,444 | package mage.sets;
import mage.cards.ExpansionSet;
import mage.constants.Rarity;
import mage.constants.SetType;
/**
* https://scryfall.com/sets/pust
*/
public class UnstablePromos extends ExpansionSet {
private static final UnstablePromos instance = new UnstablePromos();
public static UnstablePromos getIn... | 250 |
12,278 | <reponame>189569400/ClickHouse<gh_stars>1000+
// Copyright <NAME> 2000-2004
//
// 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)
//
// Preprocessed version of "boost/mpl/list/list50_c.hpp" header
// -- DO NOT m... | 4,666 |
320 | <gh_stars>100-1000
package jjil.android;
import android.graphics.ImageFormat;
import android.hardware.Camera;
import android.hardware.Camera.Parameters;
import android.hardware.Camera.Size;
import android.os.Handler;
import android.util.Log;
import android.widget.CheckBox;
import android.widget.TextView;
p... | 3,949 |
5,169 | {
"name": "Flow-iOS",
"version": "1.0.0",
"summary": "Make your logic flow and data flow clean and human readable.",
"description": "Flow is an utility/ design pattern that help developers to write simple and readable codes. There are two main concerns: Flow of operations and Flow of data.",
"homepage": "http... | 256 |
685 | import argparse
import os
import yaml
import jinja2
def run_template_engine(blacklist_file, template_file, output_file):
template_path, template_file = os.path.split(template_file)
with open(blacklist_file) as bf:
context = yaml.load(bf)
context['domains'] = [d for blockset in context['bla... | 353 |
2,123 | <filename>riscv-tools/riscv-isa-sim/riscv/insns/mulh.h
require_extension('M');
if (xlen == 64)
WRITE_RD(mulh(RS1, RS2));
else
WRITE_RD(sext32((sext32(RS1) * sext32(RS2)) >> 32));
| 92 |
315 | <reponame>xiaodotgua/renderer.gua<gh_stars>100-1000
#ifndef __Gua__texture__
#define __Gua__texture__
#include "color.h"
class Texture {
uint32_t *_pixels;
int _width;
int _height;
public:
Texture(const char *path);
virtual ~Texture() {
delete [] _pixels;
};
Color ... | 166 |
892 | #!/usr/bin/env python2
'''
A WebSocket to TCP socket proxy with support for "wss://" encryption.
Copyright 2011 <NAME>
Licensed under LGPL version 3 (see docs/LICENSE.LGPL-3)
You can make a cert/key with openssl using:
openssl req -new -x509 -days 365 -nodes -out self.pem -keyout self.pem
as taken from http://docs.py... | 6,696 |
1,511 | <reponame>s4-2/scancode-toolkit<gh_stars>1000+
/*
File: linux/posix_acl.h
(C) 2002 <NAME>, <<EMAIL>>
*/
| 53 |
1,686 | // Copyright (c) 2017 The Chromium Embedded Framework 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 "libcef/browser/extension_impl.h"
#include "libcef/browser/request_context_impl.h"
#include "libcef/browser/thread_util.h... | 1,216 |
369 | <filename>FreeRTOSv10.4.1/FreeRTOS/Demo/PIC32MEC14xx_MPLAB/src/include/MEC14xx/mec14xx_jtvic.h
/*****************************************************************************
* Copyright 2014 Microchip Technology Inc. and its subsidiaries.
* You may use this software and any derivatives exclusively with
* Microchip prod... | 1,099 |
1,363 | <filename>opennmt/tests/sequence_classifier_test.py
import tensorflow as tf
from opennmt.models import sequence_classifier
class SequenceClassifierTest(tf.test.TestCase):
pass
if __name__ == "__main__":
tf.test.main()
| 80 |
480 | <filename>polardbx-optimizer/src/main/java/com/alibaba/polardbx/optimizer/partition/pruning/PartClauseItem.java<gh_stars>100-1000
/*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... | 1,965 |
352 | /*
*Author:GeneralSandman
*Code:https://github.com/GeneralSandman/TinyWeb
*E-mail:<EMAIL>
*Web:www.generalsandman.cn
*/
/*---class TimerQueue---
*This class is used to manage class Timer.
*If we get read event from timefd,we should
*to find timers which are expires.
*Timers we have added to TimerQueue multiplex
*one t... | 621 |
5,169 | {
"name": "MR_Tools",
"version": "1.0.3",
"summary": "A short description of MR_Tools.",
"description": "TODO: Add long description of the pod here.",
"homepage": "http://10.10.10.129/Netpay5.0/Client-component/iOS_Component/MR_Tools",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": ... | 687 |
5,169 | {
"name": "MMNotifications",
"version": "0.1.2",
"summary": "Simple in-app notifications for iOS apps.",
"homepage": "http://www.matmartinez.net/",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"<NAME>": "<EMAIL>"
},
"source": {
"git": "https://github.com/matmartinez/MM... | 263 |
348 | {"nom":"Tabaille-Usquain","dpt":"Pyrénées-Atlantiques","inscrits":39,"abs":13,"votants":26,"blancs":3,"nuls":0,"exp":23,"res":[{"panneau":"1","voix":13},{"panneau":"2","voix":10}]} | 78 |
431 | #!/usr/bin/python
#####
# macro_safe.py
#####
#
# Takes Veil powershell batch file and outputs into a text document
# macro safe text for straight copy/paste.
#
import os, sys
import re
def formStr(varstr, instr):
holder = []
str1 = ''
str2 = ''
str1 = varstr + ' = "' + instr[:54] + '"'
for i in xrange(54, le... | 1,237 |
432 | <filename>versioned/persist/dynamodb/src/main/java/org/projectnessie/versioned/persist/dynamodb/Tables.java
/*
* Copyright (C) 2020 Dremio
*
* 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... | 324 |
14,668 | <filename>chrome/browser/feature_guide/notifications/android/feature_notification_guide_service_factory_android.cc
// Copyright 2021 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/android/scoped_java_ref.... | 456 |
30,023 | """Test the OctoPrint buttons."""
from unittest.mock import patch
from pyoctoprintapi import OctoprintPrinterInfo
import pytest
from homeassistant.components.button import DOMAIN as BUTTON_DOMAIN
from homeassistant.components.button.const import SERVICE_PRESS
from homeassistant.components.octoprint import OctoprintDa... | 3,072 |
1,056 | <reponame>timfel/netbeans
/*
* 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.... | 1,241 |
1,383 | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2021 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... | 2,123 |
435 | package datawave.ingest.data.config.ingest;
import java.util.Map;
import datawave.ingest.data.Type;
import datawave.ingest.data.config.NormalizedContentInterface;
import org.apache.hadoop.conf.Configuration;
import com.google.common.collect.Multimap;
/**
* This class will add the VirtualFieldNormalizer to the lis... | 712 |
4,640 | <reponame>XiaoSong9905/tvm
# 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
... | 1,791 |
614 | <gh_stars>100-1000
[
{ "home": "Real Madrid", "away": "VfL Wolfsburg", "homescore": "3", "awayscore": "0" },
{ "home": "Manchester City", "away": "Paris Saint-Germain", "homescore": "1", "awayscore": "0" },
{ "home": "Birmingham City", "away": "Leeds United", "homescore": "1", "awayscore": "2" },
{ "home": "Mid... | 1,410 |
2,205 | <filename>XCDYouTubeKit Demo/iOS Demo/DemoInlineViewController.h
//
// Copyright (c) 2013-2016 <NAME>. All rights reserved.
//
@import UIKit;
@interface DemoInlineViewController : UIViewController
@property (nonatomic, weak) IBOutlet UIView *videoContainerView;
@property (nonatomic, weak) IBOutlet UISwitch *shouldA... | 125 |
338 | package com.tvd12.ezyfoxserver.nio.testing.websocket;
import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.net.InetSocketAddress;
import org.eclipse.jetty.websocket.api.RemoteEndpoint;
import org.eclipse.jetty.websocket.api.Session;
im... | 544 |
11,393 | package com.interview.array;
/**
* http://www.geeksforgeeks.org/maximum-contiguous-circular-sum/
* Test cases
* All negative
* All positives
* all 0s
*/
class Triplet{
int start;
int end;
int sum;
@Override
public String toString() {
return "Triplet [start=" + start + ", end=" + end ... | 1,154 |
1,431 | <reponame>drmacro/poi<filename>src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFTableColumn.java<gh_stars>1000+
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file d... | 1,235 |
370 | <filename>jte-runtime/src/main/java/gg/jte/runtime/Template.java<gh_stars>100-1000
package gg.jte.runtime;
import gg.jte.TemplateException;
import gg.jte.TemplateOutput;
import gg.jte.html.HtmlInterceptor;
import gg.jte.html.HtmlTemplateOutput;
import java.lang.reflect.InvocationTargetException;
import java.lang.refl... | 1,671 |
325 | <filename>PyFin/Math/Accumulators/__init__.py<gh_stars>100-1000
# -*- coding: utf-8 -*-
u"""
Created on 2015-8-8
@author: cheng.li
"""
from PyFin.Math.Accumulators.IAccumulators import Exp
from PyFin.Math.Accumulators.IAccumulators import Log
from PyFin.Math.Accumulators.IAccumulators import Sqrt
from PyFin.Math.Accu... | 2,559 |
2,338 | <reponame>mkinsner/llvm<filename>libclc/generic/include/clc/workitem/get_local_size.h<gh_stars>1000+
_CLC_DECL _CLC_OVERLOAD size_t get_local_size(uint dim);
| 68 |
678 | <gh_stars>100-1000
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/PrintKit.framework/PrintKit
*/
@class NSMutableDictionary, PKPaper;
@interface PKPrintSettings : NSObject {
@private
NSMutableDictionary *_dict; // 4 = 0x4
PKPaper *paper; // 8 = 0x8
}
@proper... | 440 |
310 | <filename>examples/useful_science/useful_science.py<gh_stars>100-1000
'''
Wrappers around useful science API calls
'''
import requests
from datetime import datetime
import random
import json
categories = {
"new" : 0,
"creativity": 1,
"fitness": 2,
"health": 3,
"happiness": 4,
"nutrition": 5,
... | 996 |
2,151 | <reponame>zipated/src
// 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.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_TIMING_TASK_ATTRIBUTION_TIMING_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_TIMING_TASK_ATTRIB... | 1,437 |
335 | // Copyright (C) 2014-2017, SlashDevin
//
// This file is part of NeoGPS
//
// NeoGPS is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later v... | 1,708 |
1,405 | package com.lenovo.lps.sus.a.a.a;
import com.lenovo.lps.sus.a.a.b.c;
import javax.crypto.KeyGenerator;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
public class d implements b {
public static final String c = "HmacSHA1";
public static String a(String str, String str2) {
try {
... | 772 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.