max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
356 | <filename>utils/glutil.c
#include "glutil.h"
#include <stdio.h>
#include <candle.h>
#include <stdlib.h>
#include <string.h>
void _check_gl_error(const char *file, int line)
{
#ifdef DEBUG
static char last_error[512] = "";
static int count = 0;
char message[512];
GLenum err = glGetError();
int got_error = 0;
whil... | 805 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/IMAVCore.framework/IMAVCore
*/
#import <IMAVCore/XXUnknownSuperclass.h>
#import <IMAVCore/NSCoding.h>
@class NSString, NSDictionary;
__attribute__((visibility("hidden")))
@interface AVChatParticipantStatusNugget : ... | 1,066 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/iPodUI.framework/iPodUI
*/
#import <iPodUI/iPodUI-Structs.h>
#import <iPodUI/IUMediaQueriesDataSource.h>
@interface IUPodcastTracksDataSource : IUMediaQueriesDataSource {
unsigned _hideVideoIcon : 1; // 93 = 0x5d
... | 355 |
1,444 | <reponame>GabrielSturtevant/mage<gh_stars>1000+
package mage.cards.s;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
import mage.abilities.effects.OneShotEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
impor... | 859 |
1,837 | <reponame>xincao9/Zebra
/*
* Copyright (c) 2011-2018, <NAME>. All Rights Reserved.
*
* 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 ... | 1,513 |
965 | // The string to match.
LPCTSTR lpszmyExactString = _T("item 5");
// Delete all items that exactly match the specified string.
int nDex = 0;
while ((nDex = m_pComboBox->FindStringExact(nDex, lpszmyExactString)) != CB_ERR)
{
m_pComboBox->DeleteString(nDex);
} | 99 |
348 | {"nom":"Villelongue-d'Aude","circ":"3ème circonscription","dpt":"Aude","inscrits":235,"abs":106,"votants":129,"blancs":11,"nuls":3,"exp":115,"res":[{"nuance":"REM","nom":"<NAME>","voix":60},{"nuance":"SOC","nom":"<NAME>","voix":55}]} | 95 |
2,151 | <reponame>google-ar/chromium<gh_stars>1000+
{
"name": "mus_demo_unittests",
"display_name": "MUS Demo Unittests",
"interface_provider_specs": {
"service_manager:connector": {
"requires": {
"*": [ "app", "test" ]
}
}
}
}
| 122 |
1,073 | package org.saiku;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind... | 405 |
308 | # [Backward compatibility]: keep importing modules functions
from ..internal.utils.deprecation import deprecation
from ..internal.utils.importlib import func_name
from ..internal.utils.importlib import module_name
from ..internal.utils.importlib import require_modules
deprecation(
name="ddtrace.contrib.util",
... | 160 |
1,133 | <reponame>vincentschut/isce2
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Copyright 2014 California Institute of Technology. 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.
... | 3,513 |
1,467 | <reponame>mattdanielbrown/userbase
#import <Cordova/CDVPlugin.h>
@interface ScryptPlugin : CDVPlugin
- (void)scrypt:(CDVInvokedUrlCommand*)command;
@property (nonatomic, copy) NSString *callbackId;
@end
| 77 |
17,375 | <filename>jaxlib/cusolver.cc
/* Copyright 2019 Google LLC
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... | 10,583 |
3,782 | """
Script that trains Sklearn multitask models on nci dataset.
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
import os
import numpy as np
import shutil
from deepchem.molnet import load_nci
from sklearn.linear_model import LogisticRegression
from skle... | 519 |
310 | <reponame>dreeves/usesthis
{
"name": "Scrollz",
"description": "A command-line IRC client.",
"url": "http://www.scrollz.com/"
} | 53 |
1,830 | <reponame>thirteen13Floor/zeebe
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Zeebe Community License 1.... | 1,854 |
14,668 | // 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.
package org.chromium.content.browser.accessibility;
import static android.view.accessibility.AccessibilityNodeInfo.EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG... | 1,959 |
852 | <gh_stars>100-1000
/*----------------------------------------------------------------------
Toy EDProducers and EDProducts for testing purposes only.
----------------------------------------------------------------------*/
#include <stdexcept>
#include <string>
#include <iostream>
#include <fstream>
#include <map>
#... | 1,047 |
1,179 | <reponame>fengjixuchui/hypervisor-2
/// @copyright
/// Copyright (C) 2020 Assured Information Security, Inc.
///
/// @copyright
/// 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 r... | 22,307 |
505 | package sample;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.everyItem;
import static org.hamcrest.CoreMatchers.hasItem;
import static org.hamcrest.CoreMatchers.hasItems;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
... | 306 |
3,058 | <filename>Common_3/ThirdParty/OpenSource/TaskScheduler/Scheduler/Include/MTConfig.h
// The MIT License (MIT)
//
// Copyright (c) 2015 <NAME>, <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
// ... | 1,454 |
2,053 | /*
* Copyright 2015 the original author or authors.
* @https://github.com/scouter-project/scouter
*
* 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/licen... | 1,059 |
595 | <filename>lib/bsp/standalone/src/arm/cortexr5/xil_cache.h
/******************************************************************************
* Copyright (c) 2014 - 2021 Xilinx, Inc. All rights reserved.
* SPDX-License-Identifier: MIT
******************************************************************************/
/******... | 1,096 |
5,169 | {
"name": "open-ecard",
"version": "2.1.1-rc.2",
"summary": "ecard framework",
"description": "Open source framework implementing the eCard-API-Framework (BSI-TR-03112) through which arbitrary applications can utilize authentication and signatures with arbitrary chip cards",
"homepage": "https://dev.openecard... | 260 |
6,989 | /*
* Copyright 2006-2018 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... | 1,516 |
1,676 | <filename>chat-sdk-core/src/main/java/sdk/chat/core/types/ReadStatus.java
package sdk.chat.core.types;
/**
* Created by ben on 10/5/17.
*/
public class ReadStatus {
public static int Hide = -2;
public static int None = 0;
public static int Delivered = 1;
public static int Read = 2;
private int... | 448 |
435 | {
"description": "",
"duration": 1531,
"language": "lit",
"recorded": "2015-06-11",
"speakers": [
"<NAME>\u016bnas"
],
"thumbnail_url": "https://i.ytimg.com/vi/3_1_GZaXvY0/hqdefault.jpg",
"title": "Apache Mesos ir artimos ateities python aplikacijos",
"videos": [
{
"type": "youtube",
... | 189 |
348 | <filename>docs/data/leg-t2/074/07403278.json
{"nom":"Thyez","circ":"3ème circonscription","dpt":"Haute-Savoie","inscrits":3925,"abs":2411,"votants":1514,"blancs":147,"nuls":0,"exp":1367,"res":[{"nuance":"LR","nom":"M. <NAME>","voix":700},{"nuance":"REM","nom":"M. <NAME>","voix":667}]} | 121 |
14,668 | <reponame>zealoussnow/chromium
// 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 SERVICES_AUDIO_TEST_MOCK_LOG_H_
#define SERVICES_AUDIO_TEST_MOCK_LOG_H_
#include <string>
#include "base/bind.h"
... | 660 |
350 | package ar.rulosoft.custompref;
/*
* Copyright (C) 2013 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 a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... | 997 |
416 | // HMEvent.h
// HomeKit
//
// Copyright (c) 2015 Apple Inc. All rights reserved.
#import <Foundation/Foundation.h>
@class HMHome;
NS_ASSUME_NONNULL_BEGIN
/*!
* @brief This class is used to represent a generic HomeKit event.
*/
NS_CLASS_AVAILABLE_IOS(9_0) __WATCHOS_AVAILABLE(2_0) __TVOS_AVAILABLE(10_0)
@interfa... | 261 |
380 | <filename>Classes/UVHelpTopicViewController.h
//
// UVHelpTopicViewController.h
// UserVoice
//
// Created by <NAME> on 11/16/12.
// Copyright (c) 2012 UserVoice Inc. All rights reserved.
//
#import "UVBaseViewController.h"
@class UVHelpTopic;
@interface UVHelpTopicViewController : UVBaseViewController<UITableVi... | 152 |
398 | package com.ruiyun.example;
import com.ruiyun.jvppeteer.core.Puppeteer;
import com.ruiyun.jvppeteer.core.browser.Browser;
import com.ruiyun.jvppeteer.core.browser.BrowserFetcher;
import com.ruiyun.jvppeteer.core.page.ElementHandle;
import com.ruiyun.jvppeteer.core.page.JSHandle;
import com.ruiyun.jvppeteer.core.page.P... | 583 |
1,350 | [{"id":"FSRB","type":"radio","calc":false,"value":"FS1"},{"id":"FSRB","type":"radio","calc":false,"value":"FS2"},{"id":"FSRB","type":"radio","calc":false,"value":"FS3"},{"id":"FSRB","type":"radio","calc":false,"value":"FS4"},{"id":"FSRB","type":"radio","calc":false,"value":"FS5"},{"id":"L9AX","type":"box","calc":false,... | 602 |
460 | <reponame>MarianMacik/thorntail<filename>fractions/netflix/archaius/src/main/java/org/wildfly/swarm/netflix/archaius/runtime/ArchaiusCustomizer.java
package org.wildfly.swarm.netflix.archaius.runtime;
import java.util.HashSet;
import java.util.Set;
import javax.annotation.PostConstruct;
import javax.enterprise.contex... | 1,257 |
594 | <reponame>pmp-p/vmir
/* This program tests a data flow bug that would cause constant propagation
to propagate constants through function calls. */
foo (int *p)
{
*p = 10;
}
main()
{
int *ptr = alloca (sizeof (int));
*ptr = 5;
foo (ptr);
if (*ptr == 5)
abort ();
exit (0);
}
| 113 |
307 | <filename>src/test/java/com/appslandia/common/cdi/CDIExtensionTest.java
// The MIT License (MIT)
// Copyright © 2015 AppsLandia. All rights reserved.
// 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 th... | 1,426 |
1,617 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import json
import pytest
from schema import Use
from flask import Flask
from app.utils.validator import Validator
from app.utils.ResponseUtil import standard_response
from . import success, load_data
v = Validator()
@v.register('even')
def even():
... | 852 |
575 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_IMAGE_FETCHER_IMAGE_DECODER_IMPL_H_
#define CHROME_BROWSER_IMAGE_FETCHER_IMAGE_DECODER_IMPL_H_
#include <memory>
#include <vector>... | 424 |
422 | print("111" == "111") | 8 |
675 | /*
* Copyright 2017 The Bazel 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
*
* Unless required by a... | 336 |
508 | // The MIT License (MIT)
//
// Copyright (c) 2014 <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, including without limitation the rights
// to use, copy,... | 921 |
653 | // Copyright (c) 2020 by Chrono
//
// g++ algo.cpp -std=c++11 -o a.out;./a.out
// g++ algo.cpp -std=c++14 -o a.out;./a.out
// g++ algo.cpp -std=c++14 -I../common -o a.out;./a.out
#include <cassert>
#include <iostream>
#include <array>
#include <vector>
#include <set>
#include <algorithm>
using namespace std;
void ... | 2,517 |
527 | import errno
import json
import os
import shutil
import subprocess
import requests
DEFAULT_MODEL_PATH = "model_archiver/tests/integ_tests/resources/regular_model"
DEFAULT_HANDLER = "service:handle"
DEFAULT_RUNTIME = "python"
DEFAULT_MODEL_NAME = "model"
DEFAULT_EXPORT_PATH = "/tmp/model"
MANIFEST_FILE = "MAR-INF/MANIF... | 2,402 |
26,932 | <reponame>OsmanDere/metasploit-framework
#include "interfaces.h"
#include <vector>
bstr_t GetTemp(LPCWSTR name);
bstr_t GetTempPath();
bstr_t WriteTempFile(LPCWSTR name, unsigned char* buf, size_t len);
std::vector<unsigned char> ReadFileToMem(LPCWSTR name);
void DebugPrintf(LPCSTR lpFormat, ...);
bstr_t GetUserSid()... | 325 |
348 | {"nom":"Trévron","circ":"2ème circonscription","dpt":"Côtes-d'Armor","inscrits":537,"abs":306,"votants":231,"blancs":20,"nuls":6,"exp":205,"res":[{"nuance":"REM","nom":"<NAME>","voix":119},{"nuance":"LR","nom":"<NAME>","voix":86}]} | 94 |
1,975 | // Copyright 2008-2010 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 law or agreed ... | 597 |
1,521 | <filename>interactive_engine/groot/src/main/java/com/alibaba/graphscope/groot/coordinator/SnapshotNotifier.java
/**
* Copyright 2020 Alibaba Group Holding Limited.
*
* <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... | 1,171 |
777 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_EXPORT_PASSWORD_EXPORTER_H_
#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_EXPORT_PASSWORD_EXPORTER_H_
... | 515 |
1,914 | <reponame>erikbfeeley/concerto<filename>packages/concerto-core/test/data/id-cards/valid-v0/metadata.json
{
"name": "name",
"description": "A valid ID card",
"businessNetwork": "org-acme-biznet",
"enrollmentId": "conga",
"enrollmentSecret": "<PASSWORD>"
}
| 113 |
348 | <gh_stars>100-1000
{"nom":"Suizy-le-Franc","circ":"3ème circonscription","dpt":"Marne","inscrits":106,"abs":47,"votants":59,"blancs":9,"nuls":0,"exp":50,"res":[{"nuance":"FN","nom":"<NAME>","voix":27},{"nuance":"REM","nom":"<NAME>","voix":23}]} | 101 |
2,586 | <filename>samurai-examples/movie/movie/network/MoviesClient.h
//
// MoviesClient.h
// demo
//
// Created by QFish on 4/7/15.
// Copyright (c) 2015 Geek-Zoo Studio. All rights reserved.
//
#import "STIHTTPSessionManager.h"
#import "NSObject+AutoCoding.h"
#import "Movies.h"
@interface MoviesClient : STIHTTPSessionM... | 175 |
6,098 | <reponame>vishalbelsare/h2o-3
package water;
import org.apache.commons.io.output.NullOutputStream;
import org.junit.Assume;
import org.junit.BeforeClass;
import org.junit.Test;
import water.util.ArrayUtils;
import java.io.Serializable;
import java.util.Arrays;
import static org.junit.Assert.*;
public class AutoBuff... | 3,051 |
14,668 | #ifndef PROTOBUF_BENCHMARKS_UTIL_DATA_PROTO2_TO_PROTO3_UTIL_H_
#define PROTOBUF_BENCHMARKS_UTIL_DATA_PROTO2_TO_PROTO3_UTIL_H_
#include "google/protobuf/message.h"
#include "google/protobuf/descriptor.h"
using google::protobuf::FieldDescriptor;
using google::protobuf::Message;
using google::protobuf::Reflection;
name... | 733 |
7,258 | <reponame>alclol/modin<filename>stress_tests/kaggle/kaggle6.py
import matplotlib
matplotlib.use("PS")
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
np.random.seed(2)
from sklearn.model_selection import train_test_split
from sklearn.metrics import confusion_matrix
import ... | 2,630 |
1,352 | <reponame>Arsenal821/incubator-pegasus
/*
* 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 Licens... | 717 |
14,668 | <gh_stars>1000+
// 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 "chrome/browser/chromeos/extensions/login_screen/login/cleanup/print_jobs_cleanup_handler.h"
#include <utility>
#include "base/... | 538 |
432 | <filename>binutils-2.21.1/gcc-4.5.1/gcc/omega.h
/* Source code for an implementation of the Omega test, an integer
programming algorithm for dependence analysis, by <NAME>,
appeared in Supercomputing '91 and CACM Aug 92.
This code has no license restrictions, and is considered public
domain.
Changes co... | 3,643 |
844 | {
"github-username": "andikaputraputu",
"favourite-emoji": "😂",
"favourite-music": "https://soundcloud.com/greenday/holiday-boulevard-of-broken-1",
"favourite-color": "#347ff7"
} | 87 |
749 | //
// StatsCell.h
// Organic
//
// Created by Mike on 1/19/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import "OrganicCell.h"
@interface StatsCell : OrganicCell
- (instancetype)initWithFollowers:(NSNumber *)followers repos:(NSNumber *)repos following:(NSNumber *)following;
@end
| 104 |
879 | package com.bookstore.repository;
import java.util.List;
import javax.persistence.LockModeType;
import javax.persistence.QueryHint;
import com.bookstore.entity.Book;
import com.bookstore.entity.BookStatus;
import org.hibernate.LockOptions;
import org.springframework.data.domain.Sort;
import org.springframework.data.jp... | 283 |
839 | /**
* 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 m... | 10,869 |
1,391 | #include <u.h>
#include <libc.h>
#include <bio.h>
#define mkdir plan9mkdir
enum{
LEN = 8*1024,
NFLDS = 6, /* filename, modes, uid, gid, mtime, bytes */
};
int selected(char*, int, char*[]);
void mkdirs(char*, char*);
void mkdir(char*, ulong, ulong, char*, char*);
void extract(char*, ulong, ulong, char*, char*, uv... | 2,935 |
350 | <filename>src/py2.x/ml/jqxxsz/8.Regression/regression.py<gh_stars>100-1000
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File : regression.py
@Time : 2019/07/01 19:02:32
@Author : <NAME>
@Version : 1.0
@Contact : <EMAIL>
@Desc : 简单的线性回归和局部加权线性回归
@github : https://github.com/aimi-cn/AILe... | 5,282 |
4,403 | <filename>hutool-extra/src/main/java/cn/hutool/extra/ssh/package-info.java
/**
* Jsch封装,包括端口映射、SFTP封装等,入口为JschUtil
*
* @author looly
*
*/
package cn.hutool.extra.ssh; | 104 |
1,403 | <filename>sources/Renderer/OpenGL/GLRenderSystem.cpp
/*
* GLRenderSystem.cpp
*
* This file is part of the "LLGL" project (Copyright (c) 2015-2019 by <NAME>)
* See "LICENSE.txt" for license information.
*/
#include "GLRenderSystem.h"
#include "GLProfile.h"
#include "Texture/GLMipGenerator.h"
#include "Texture/GLTe... | 7,082 |
14,668 | // Copyright 2019 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 "ios/chrome/browser/ui/overlays/test/fake_overlay_request_coordinator_delegate.h"
FakeOverlayRequestCoordinatorDelegate::FakeOverlayRequestCoord... | 387 |
2,133 | <reponame>uavosky/uavosky-qgroundcontrol<filename>src/QtLocationPlugin/qtlocation/src/location/maps/qgeoroutesegment.h
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the QtLocat... | 955 |
505 | from PyQt4.Qt import QPushButton, SIGNAL, QTextEdit, QScrollArea, QTabWidget,\
QLineEdit
from qtdefines import QRichLabel, makeHorizFrame, GETFONT, relaxedSizeNChar, \
makeVertFrame
from armoryengine.ArmoryUtils import addrStr_to_hash160, LOGINFO,\
BadAddressError, binary_to_hex, coin2str, isLikelyDataType, D... | 1,248 |
1,023 | import argparse
import matplotlib.pyplot as plt
import numpy as np
import seaborn
from matplotlib.ticker import FuncFormatter
from stable_baselines.results_plotter import load_results, ts2xy
def millions(x, pos):
"""
Formatter for matplotlib
The two args are the value and tick position
:param x: (fl... | 1,076 |
1,396 | <reponame>YR1044/NCalendar<filename>app/src/main/java/com/necer/ncalendar/activity/TestMiui10Activity.java
package com.necer.ncalendar.activity;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import androidx.annotation.Nullable;
import android.util.Log;
import and... | 2,228 |
14,668 | <filename>components/sync/base/invalidation_interface.cc
// 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.
#include "components/sync/base/invalidation_interface.h"
namespace syncer {
bool InvalidationIn... | 284 |
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 ... | 500 |
2,151 | /*
*
* Copyright 2016 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 3,944 |
778 | <gh_stars>100-1000
import KratosMultiphysics as Kratos
from KratosMultiphysics import KratosUnittest
from KratosMultiphysics.testing.utilities import ReadModelPart
from KratosMultiphysics.StatisticsApplication.test_utilities import InitializeModelPartVariables
class StatisticsTestCase(KratosUnittest.TestCase):
"""... | 460 |
577 | //
// CWActivityMonitor.h
// PlainReader
//
// Created by guojiubo on 10/22/14.
// Copyright (c) 2014 guojiubo. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface PRActivityMonitor : NSObject
+ (instancetype)sharedMonitor;
- (void)start;
- (void)stop;
@end
| 109 |
764 | <filename>erc20/0x73468010eFda36A42662F000fce2c2A4Ef175097.json
{
"symbol": "LFC",
"address": "0x73468010eFda36A42662F000fce2c2A4Ef175097",
"overview":{
"en": "LiFe Chain is a decentralized digital medical network system developed based on blockchain technology. It is committed to solving the prob... | 485 |
354 | from dataclasses import dataclass
import functools
from numbers import Number
import os
from pathlib import Path
import shutil
import tempfile
from typing import Any, Optional, List, Callable, Dict, Type
from werkzeug.datastructures import FileStorage
from .predictor import Predictor
_VALID_INPUT_TYPES = frozenset([... | 3,270 |
12,824 | <reponame>tanishiking/dotty
package p;
class J {
J() {}
}
| 27 |
11,628 | <filename>proxylib/proxylib/types.h
/*
* Copyright 2018 Authors of Cilium
*
* 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
*
* Unles... | 633 |
1,443 | {
"copyright": "<NAME>",
"url": "http://www.mattclements.co.uk/",
"email": "<EMAIL>"
}
| 43 |
1,681 | <gh_stars>1000+
package com.easytoolsoft.easyreport.mybatis.data;
import java.util.List;
import org.apache.ibatis.annotations.Param;
/**
* @param <T>
* @author <NAME>
* @date 2017-03-25
*/
public interface InsertRepository<T> {
/**
* 插入一条数据,忽略record中的ID
*
* @param record
* @return 影响的记录数
... | 358 |
719 | package org.springframework.security.config.annotation.web.configuration;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target... | 126 |
854 | <gh_stars>100-1000
__________________________________________________________________________________________________
4ms
class Solution {
public:
string fractionToDecimal(int numerator, int denominator) {
if (numerator == 0)
return "0";
string result = "";
if (numerator < 0 ^ denominator < 0)
result += "-... | 1,129 |
7,482 | <gh_stars>1000+
/*************************************************************************//**
* @file dmdif_ssd2119_ebi.c
* @brief Dot matrix display interface using EBI
* @author Energy Micro AS
******************************************************************************
* @section License
* <b>(C) Copyright... | 1,992 |
587 | //
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) Contributors to the OpenEXR Project.
//
#ifndef INCLUDED_IEXNAMESPACE_H
#define INCLUDED_IEXNAMESPACE_H
//
// The purpose of this file is to make it possible to specify an
// IEX_INTERNAL_NAMESPACE as a preprocessor definition and have all of the
// Iex sym... | 1,059 |
3,246 | package com.polidea.rxandroidble2.internal.scan;
import androidx.annotation.RestrictTo;
import com.polidea.rxandroidble2.internal.operations.Operation;
import io.reactivex.ObservableTransformer;
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
public class ScanSetup {
/**
* The scan operation for the device A... | 365 |
3,266 | import numpy as np
import matplotlib
from matplotlib import pyplot as plt
import keras
from keras.models import Sequential
from keras.optimizers import Adam, SGD
from keras.callbacks import ModelCheckpoint, LearningRateScheduler, TensorBoard
from keras.constraints import maxnorm
from keras.models import load_model
from... | 2,851 |
8,599 | /*
* Copyright 2010-2020 Alfresco Software, 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 ... | 591 |
3,372 | <filename>aws-java-sdk-lookoutmetrics/src/main/java/com/amazonaws/services/lookoutmetrics/model/AlertSummary.java<gh_stars>1000+
/*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in c... | 7,570 |
10,997 | import shlex
def parse_cli_args_to_dict(cli_args: str):
args_dict = {}
for arg in shlex.split(cli_args):
if '=' in arg:
key, value = arg.split('=')
args_dict[key] = value
else:
args_dict[arg] = None
return args_dict
| 142 |
473 | /* xerbla.f -- translated by f2c (version 20061008) */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include <assert.h>
/* Subroutine */
int oerbla(char *srname, int *info)
{
/* -- LAPACK auxiliary routine (version 3.2) -- */
/* Univ. of Tennessee, Univ. ... | 484 |
513 | <reponame>mbachry/exxo<filename>setup.py<gh_stars>100-1000
#!/usr/bin/env python3
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'jinja2',
]
test_requirements = [
'pytest',
]
setup(
name='exxo',
version='0.0.7',
description="... | 495 |
879 | <reponame>qianfei11/zstack<filename>sdk/src/main/java/org/zstack/sdk/SharedBlockGroupType.java
package org.zstack.sdk;
public enum SharedBlockGroupType {
LvmVolumeGroupBasic,
}
| 70 |
335 | <filename>N/Noninflammatory_adjective.json
{
"word": "Noninflammatory",
"definitions": [
"Not accompanied by or associated with inflammation.",
"Not controversial or contentious."
],
"parts-of-speech": "Adjective"
} | 89 |
32,544 | package com.baeldung.jpa.postgresql_schema;
import org.junit.BeforeClass;
import org.junit.ClassRule;
import org.junit.Test;
import org.postgresql.ds.PGSimpleDataSource;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import java.sql.Connect... | 1,226 |
2,151 | <gh_stars>1000+
// 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 ASH_SHELL_DELEGATE_H_
#define ASH_SHELL_DELEGATE_H_
#include <memory>
#include <string>
#include "ash/ash_export.h"
#include... | 641 |
2,962 | package com.pushtorefresh.storio3.contentresolver.annotations;
public class NestedClass {
@StorIOContentResolverType(uri = "content://uri")
public static class ActualClass {
@StorIOContentResolverColumn(name = "id", key = true)
long id;
@StorIOContentResolverColumn(name = "author")
... | 167 |
2,695 | <reponame>yxcde/RTP_MIT_RECODED
// Copyright (C) 2003 <NAME> (<EMAIL>)
// License: Boost Software License See LICENSE.txt for the full license.
#ifndef DLIB_DIR_NAV_KERNEL_1_CPp_
#define DLIB_DIR_NAV_KERNEL_1_CPp_
#include "../platform.h"
#ifdef WIN32
#include "dir_nav_kernel_1.h"
#include "../string.h"
#ifdef _... | 3,201 |
683 | <reponame>aphex3k/specter-desktop
from ..addresslist import *
from embit.liquid.addresses import addr_decode, to_unconfidential
class LAddress(Address):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self._unconfidential = to_unconfidential(self.address)
@property
... | 834 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.