max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
4,036 | <reponame>vadi2/codeql<gh_stars>1000+
package org.owasp.esapi;
public interface Encoder {
String encodeForLDAP(String input);
}
| 49 |
854 | <filename>Python3/1024.py
__________________________________________________________________________________________________
sample 28 ms submission
class Solution:
def videoStitching(self, clips: List[List[int]], T: int) -> int:
clips.sort()
count = 0
stitched_end = 0
candidate_end ... | 692 |
24,939 | import recorder
addons = [recorder.Recorder("c")]
| 17 |
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.
#ifndef COMPONENTS_PERFORMANCE_MANAGER_PERSISTENCE_SITE_DATA_SITE_DATA_CACHE_INSPECTOR_H_
#define COMPONENTS_PERFORMANCE_MANAGER_PERSISTENCE_SITE_DATA_SIT... | 860 |
342 | <filename>mobile-client-android/sentinel_android/app/src/main/java/sentinelgroup/io/sentinel/network/model/BookmarkEntity.java<gh_stars>100-1000
package sentinelgroup.io.sentinel.network.model;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.Index;
import android.arch.persistence.room... | 548 |
2,323 | {
"author": "ReactJS.NET contributors",
"classifications": [
"Web"
],
"name": "React.NET Webpack Starter Template",
"identity": "React.Template.NetCore.Webpack",
"shortName": "reactnet-webpack",
"tags": {
"language": "C#"
},
"preferNameDirectory": "true"
}
| 109 |
1,738 | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 5,003 |
2,151 | <reponame>UCLA-SEAL/JShrink<filename>code/jshrink/jshrink-lib/src/test/resources/junit4/src/main/java/org/junit/runners/model/TestTimedOutException.java<gh_stars>1000+
package org.junit.runners.model;
import java.util.concurrent.TimeUnit;
/**
* Exception thrown when a test fails on timeout.
*
* @since 4.12
*
*... | 469 |
1,682 | /*
Copyright (c) 2012 LinkedIn Corp.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | 614 |
10,948 | <filename>examples/ace/ttcp/ttcp_asio_sync.cc
#include "examples/ace/ttcp/common.h"
#include "muduo/base/Logging.h"
#include <boost/asio.hpp>
#include <stdio.h>
using boost::asio::ip::tcp;
void transmit(const Options& opt)
{
try
{
}
catch (std::exception& e)
{
LOG_ERROR << e.what();
}
}
void receive... | 1,169 |
761 | <reponame>l1kw1d/stashboard<filename>tests/runner.py<gh_stars>100-1000
#!/usr/bin/python
import sys
import nose
import os
SDK_PATH = os.environ.get("APPENGINE_SDK", "/usr/local/google_appengine/")
def main():
#logging.basicConfig(level=logging.DEBUG)
sys.path.insert(0, SDK_PATH)
sys.path.insert(0, "stashb... | 206 |
589 | package rocks.inspectit.shared.cs.cmr.property.configuration.validator.impl;
import javax.xml.bind.annotation.XmlRootElement;
import org.apache.commons.lang.StringUtils;
import rocks.inspectit.shared.all.util.EMailUtils;
import rocks.inspectit.shared.cs.cmr.property.configuration.SingleProperty;
import rocks.inspect... | 565 |
1,405 | <filename>sample4/recompiled_java/sources/com/lenovo/safecenter/database/AppUtil.java
package com.lenovo.safecenter.database;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
i... | 12,788 |
4,047 | #!/usr/bin/env python3
import sys
f = open(sys.argv[1], 'w')
f.write('#define RETURN_VALUE 0')
f.close()
| 48 |
2,757 | #!/usr/bin/python
# Copyright 2018 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 agree... | 521 |
542 | <filename>src/utest/crypto/tv_sha1.h
// SHA-1 test vectors
struct TV_SHA1 {
const char* message;
uint8_t hash[20];
};
static const TV_SHA1 tv_sha1 [] = {
{
"abc",
{0xA9, 0x99, 0x3E, 0x36, 0x47, 0x06, 0x81, 0x6A,
0xBA, 0x3E, 0x25, 0x71, 0x78, 0x50, 0xC2, 0x6C,
0x9C, 0x... | 383 |
971 | #include "self_driving/planning/seq_tuning/sequence_tuning.h"
#include "common/managed_pointer.h"
#include "loggers/selfdriving_logger.h"
#include "planner/plannodes/abstract_plan_node.h"
#include "self_driving/planning/action/create_index_action.h"
#include "self_driving/planning/action/generators/change_knob_action_... | 4,596 |
956 | #!/router/bin/python
import trex_root_path
from client.trex_stateless_client import *
from common.trex_exceptions import *
import cmd
from termstyle import termstyle
# import termstyle
import os
from argparse import ArgumentParser
import socket
import errno
import ast
import json
class InteractiveStatelessTRex(cmd.C... | 2,361 |
1,338 | <reponame>Kirishikesan/haiku<filename>src/system/boot/platform/openfirmware/machine.h<gh_stars>1000+
/*
* Copyright 2003, <NAME>, <EMAIL>. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef MACHINE_H
#define MACHINE_H
#include <SupportDefs.h>
// Possible gMachine OpenFirmware platf... | 224 |
576 | //
// Custom Casts
//
namespace {
$(when measurements $(foreach measurements
$(if itk_get or ( active and ( custom_cast or label_map ) ) then
OUT=[[
template<typename FilterType>
struct ${name}CustomCast
{
]]
if custom_cast then
OUT=OUT..[[
template <typename T>
static ${type} Helper( const T & value ) { return ${c... | 360 |
1,331 | <gh_stars>1000+
package com.metasploit.meterpreter.core;
import java.security.KeyFactory;
import java.security.PublicKey;
import java.security.SecureRandom;
import java.security.spec.X509EncodedKeySpec;
import javax.crypto.Cipher;
import com.metasploit.meterpreter.Transport;
import com.metasploit.meterpreter.Meterpre... | 890 |
606 | <gh_stars>100-1000
int NetManInitRPCServer(void);
void NetManDeinitRPCServer(void);
int NetManRPCAllocRxBuffers(void);
| 47 |
369 | // Copyright (c) 2017-2021, Mudit<NAME>. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "BedtimeSettingsListItemProvider.hpp"
#include "BellSettingsStyle.hpp"
#include <common/widgets/list_items/Numeric.hpp>
#include <common/widgets/list_items/Text.hpp>
#include <apps... | 1,395 |
1,144 | /*
* Atheros AP83 board support
*
* Copyright (C) 2008-2012 <NAME> <<EMAIL>>
* Copyright (C) 2008 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*/
... | 3,073 |
335 | <gh_stars>100-1000
{
"word": "Unmanageable",
"definitions": [
"Difficult or impossible to manage, manipulate, or control."
],
"parts-of-speech": "Adjective"
} | 76 |
5,169 | {
"name": "BRCLucene",
"version": "1.0.0-beta1",
"summary": "CLucene as a Pod",
"description": "This project provides provides a pod for the\n[CLucene](http://clucene.sourceforge.net/) search framework.",
"homepage": "https://github.com/Blue-Rocket/clucene",
"license": "Apache License, Version 2.0",
"auth... | 1,530 |
8,054 | #include "vxnotebookconfigmgr.h"
#include <QJsonObject>
#include <QJsonArray>
#include <QJsonDocument>
#include <QDebug>
#include <notebookbackend/inotebookbackend.h>
#include <notebook/notebookparameters.h>
#include <notebook/vxnode.h>
#include <notebook/externalnode.h>
#include <notebook/bundlenotebook.h>
#include ... | 16,869 |
8,772 | <gh_stars>1000+
package org.apereo.cas.ticket.registry;
import lombok.NoArgsConstructor;
/**
* This is {@link NoOpTicketRegistryCleaner} that disables support for ticket cleanup.
*
* @author <NAME>
* @since 5.1.0
*/
@NoArgsConstructor
public class NoOpTicketRegistryCleaner implements TicketRegistryCleaner {
... | 240 |
852 | <filename>PhysicsTools/PatAlgos/interface/HemisphereAlgo.h
#ifndef HemisphereAlgo_h
#define HemisphereAlgo_h
/* \class HemisphereAlgo
*
* Class that, given the 4-momenta of the objects in the event,
* allows to split up the event into two "hemispheres" according
* to different criteria (see below)/
*
* Authors:... | 1,153 |
475 | <gh_stars>100-1000
package org.micro.neural.limiter;
/**
* The Excess Exception of Limiter.
*
* @author lry
*/
public class LimiterExceedException extends RuntimeException {
private static final long serialVersionUID = -8228538343786169063L;
public LimiterExceedException(String message) {
super(m... | 116 |
8,107 | <reponame>abhicantdraw/pandas-profiling<gh_stars>1000+
"""This file add the console interface to the package."""
import argparse
from pathlib import Path
from typing import Any, List, Optional
from pandas_profiling.__init__ import ProfileReport, __version__
from pandas_profiling.utils.dataframe import read_pandas
de... | 1,340 |
619 | /*
* Copyright 2016 <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 or agreed to in wr... | 1,687 |
4,756 | // Copyright 2018 The MACE 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 appl... | 1,147 |
17,702 | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
#pragma once
#include "ColumnQuantizer.h"
#include "QuantizedMatrix.h"
#include "MatrixQuantizerImpl.h"
namespace Microsoft { namespace MSR { namespace CNTK ... | 972 |
1,013 | """!
@brief Examples of usage and demonstration of abilities of algorithm (based on modified Sync) in graph coloring.
@authors <NAME> (<EMAIL>)
@date 2014-2020
@copyright BSD-3-Clause
"""
from pyclustering.gcolor.sync import syncgcolor;
from pyclustering.nnet import *;
from pyclustering.utils import... | 1,435 |
383 | <gh_stars>100-1000
package org.gitlab.api.models;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonProperty;
public class GitlabNote {
public static final String URL = "/notes";
private Integer id;
private String body;
private String attachment;
private GitlabUser author;
... | 646 |
15,684 | <reponame>gonencmete/IQKeyboardManager
//
// SettingsViewController.h
// IQKeyboard
//
// Created by Iftekhar on 27/09/14.
// Copyright (c) 2014 Iftekhar. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SettingsViewController : UITableViewController
@end
| 96 |
5,169 | {
"name": "VBAnimator",
"version": "1.0.0",
"summary": "Animator helps you to adding animation for presenting controller",
"description": "Animator helps you to adding animation for presenting controller\nLess coding",
"homepage": "https://github.com/BusyDeveloper-Bhavin/Animator",
"license": "MIT",
"auth... | 209 |
706 | <reponame>deepmining7/RadeonRays_SDK
#pragma once
#include <chrono>
#include <iostream>
#include <stack>
#include "gtest/gtest.h"
#include "mesh_data.h"
#include "radeonrays_vlk.h"
#include "stb_image_write.h"
//#define USE_RENDERDOC
#ifdef USE_RENDERDOC
#define NOMINMAX
#include <windows.h>
#include "C:\\Program ... | 4,030 |
321 | <reponame>AppSecAI-TEST/qalingo-engine
/**
* Most of the code in the Qalingo project is copyrighted Hoteia and licensed
* under the Apache License Version 2.0 (release version 0.8.0)
* http://www.apache.org/licenses/LICENSE-2.0
*
* Copyright (c) Hoteia, 2012-2014
* http://www.hotei... | 3,907 |
333 | //
// VIDMoviePlayerViewController.h
// SuperProject
//
// Created by NShunJian on 2018/4/20.
// Copyright © 2018年 superMan. All rights reserved.
//
#import "SUPBaseViewController.h"
@interface VIDMoviePlayerViewController : SUPBaseViewController
/** <#digest#> */
@property (nonatomic, copy) NSString *videoURL... | 109 |
348 | {"nom":"<NAME>","circ":"10ème circonscription","dpt":"Bouches-du-Rhône","inscrits":2640,"abs":1300,"votants":1340,"blancs":30,"nuls":3,"exp":1307,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":388},{"nuance":"FN","nom":"<NAME>","voix":340},{"nuance":"UDI","nom":"M. <NAME>","voix":131},{"nuance":"DVD","nom":"M. <NAME>"... | 376 |
416 | package org.springframework.roo.classpath.customdata.tagkeys;
import java.util.List;
import org.springframework.roo.classpath.details.InvocableMemberMetadata;
import org.springframework.roo.classpath.details.annotations.AnnotatedJavaType;
import org.springframework.roo.classpath.details.annotations.AnnotationMetadata... | 560 |
372 | /*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under t... | 1,966 |
3,934 | # This sample tests that a descriptor returned by a __getattr__ method
# is not applied as part of a member access expression evaluation.
from typing import Any, Generic, TypeVar
_T = TypeVar("_T")
class A:
pass
class Descriptor:
def __get__(self, instance: object, owner: Any) -> A:
return A()
c... | 243 |
602 | package com.stevesouza.jdk;
import java.sql.*;
/**
* Class that does simple jdbc interactions with an embedded hsqldb database. It is used to demontrate jdbc monitoring.
*/
public class JdbcInteraction {
private Connection conn;
public JdbcInteraction() throws ClassNotFoundException {
Class.forNa... | 967 |
354 | /*
* Copyright (C) 2017 <NAME> Software & Consulting (dlsc.com)
*
* 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... | 2,301 |
2,338 | <filename>clang-tools-extra/test/clang-tidy/checkers/bugprone-macro-repeated-side-effects.c<gh_stars>1000+
// RUN: %check_clang_tidy %s bugprone-macro-repeated-side-effects %t
#define badA(x,y) ((x)+((x)+(y))+(y))
void bad(int ret, int a, int b) {
ret = badA(a++, b);
// CHECK-NOTES: :[[@LINE-1]]:14: warning: side... | 2,661 |
2,441 | <reponame>shawwn/cpython<filename>Lib/idlelib/idle_test/test_pyshell.py
"Test pyshell, coverage 12%."
# Plus coverage of test_warning. Was 20% with test_openshell.
from idlelib import pyshell
import unittest
from test.support import requires
from tkinter import Tk
class FunctionTest(unittest.TestCase):
# Test s... | 987 |
3,428 | <reponame>ghalimi/stdlib<filename>lib/node_modules/@stdlib/datasets/spam-assassin/data/spam-1/00021.effe1449462a9d7ad7af0f1c94b1a237.json<gh_stars>1000+
{"id":"00021","group":"spam-1","checksum":{"type":"MD5","value":"effe1449462a9d7ad7af0f1c94b1a237"},"text":"From <EMAIL> Fri Aug 23 11:08:03 2002\nReturn-Path: <<EMAI... | 1,626 |
338 | <reponame>vu-luong/ezyfox-server
package com.tvd12.ezyfoxserver.nio.testing.socket;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.doNothing;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.when;
import java.nio.ByteBuffer;
im... | 3,769 |
12,718 | /**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#ifndef W32KAPI
#define W32KAPI
#endif
#define TRACE_SURFACE_ALLOCS (DBG || 0)
#define FL_UFI_PRIVATEF... | 16,881 |
348 | {"nom":"Boitron","circ":"1ère circonscription","dpt":"Orne","inscrits":237,"abs":150,"votants":87,"blancs":7,"nuls":0,"exp":80,"res":[{"nuance":"DVD","nom":"<NAME>","voix":45},{"nuance":"SOC","nom":"M. <NAME>","voix":35}]} | 90 |
488 | <gh_stars>100-1000
// Copyright 2005,2006,2007 <NAME>, <NAME>
// $Id: Rule.h,v 1.2 2007-03-08 15:36:49 markus Exp $
#ifndef H_RULE
#define H_RULE
#include <string>
#include <sstream>
#include "spec.h"
class Rule
{
private:
std::string rulename, nodename;
isn type, constr, consti, field, fieldi, ftype;
u... | 440 |
384 | <filename>qd3dt/models/detectrackers/tracker/tracker_model.py
import numpy as np
import torch
from filterpy.kalman import KalmanFilter
class KalmanBox3DTracker(object):
"""
This class represents the internel state of individual tracked objects
observed as bbox.
"""
count = 0
def __init__(sel... | 7,515 |
988 | <reponame>JoachimRohde/netbeans<gh_stars>100-1000
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Ap... | 5,100 |
406 | <reponame>israel-dryer/ttkbootstrap
import ttkbootstrap as ttk
from ttkbootstrap.constants import *
class ScrolledText(ttk.Frame):
"""A text widget with a vertical scrollbar."""
def __init__(self, master=None, padding=2, bootstyle=DEFAULT, **kwargs):
"""
Parameters:
master (Widg... | 864 |
364 | <gh_stars>100-1000
package com.linkedin.dagli.reducer;
import com.linkedin.dagli.producer.Producer;
import com.linkedin.dagli.transformer.TransformerVariadic;
import java.util.List;
/**
* Reduces the case where a variadic transformer is effectively a no-op (the input is equivalent to the output) when it
* has a si... | 523 |
3,638 | /*
* Copyright 2012 GitHub 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 to in ... | 1,255 |
3,372 | <reponame>MC-JY/aws-sdk-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 compliance with
* the License. A copy of the License is located at
*
* http://aws.... | 4,149 |
830 | # Copyright 2021 JD.com, Inc., JD AI
"""
@author: <NAME>
@contact: <EMAIL>
"""
from abc import ABCMeta, abstractmethod
import torch
import torch.nn as nn
from torch.autograd import Variable
from xmodaler.config import kfg
__all__ = ["Decoder"]
class Decoder(nn.Module, metaclass=ABCMeta):
def __init__(self):
... | 328 |
7,629 | <reponame>FeliciaLim/oss-fuzz
/* Copyright 2021 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... | 592 |
903 | <filename>jphp-core/src/org/develnext/jphp/core/compiler/jvm/statement/expr/EchoRawCompiler.java
package org.develnext.jphp.core.compiler.jvm.statement.expr;
import org.develnext.jphp.core.compiler.jvm.statement.ExpressionStmtCompiler;
import org.develnext.jphp.core.tokenizer.token.stmt.EchoRawToken;
import php.runtim... | 325 |
491 | <reponame>rahulchaudhary2244/encog-java-core
/*
* Encog(tm) Core v3.4 - Java Version
* http://www.heatonresearch.com/encog/
* https://github.com/encog/encog-java-core
* Copyright 2008-2017 Heaton Research, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... | 2,074 |
743 | package pl.allegro.tech.hermes.consumers.queue;
import org.jctools.queues.MessagePassingQueue;
public interface MpscQueue<T> {
boolean offer(T element);
void drain(MessagePassingQueue.Consumer<T> consumer);
int size();
int capacity();
}
| 90 |
1,144 | <filename>backend/de.metas.util/src/main/java/org/adempiere/util/proxy/impl/InvocationContext.java
package org.adempiere.util.proxy.impl;
/*
* #%L
* de.metas.util
* %%
* Copyright (C) 2015 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Gene... | 828 |
2,399 | /*
* 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 ... | 6,045 |
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,317 |
5,238 | #include "../lv_examples.h"
#if LV_USE_BTN && LV_BUILD_EXAMPLES
static lv_style_t style_btn;
static lv_style_t style_btn_pressed;
static lv_style_t style_btn_red;
static lv_color_t darken(const lv_color_filter_dsc_t * dsc, lv_color_t color, lv_opa_t opa)
{
LV_UNUSED(dsc);
return lv_color_darken(color, opa);
}... | 1,328 |
378 | <filename>server/openejb-client/src/main/java/org/apache/openejb/client/EJBHomeHandle.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 ASF ... | 1,977 |
1,109 | <gh_stars>1000+
/*******************************************************************************
* Copyright 2016 Intuit
* <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
* <p>
* htt... | 469 |
507 | // +build android
#include <android/log.h>
#include <dirent.h>
#include <jni.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#define LOG_FATAL(...) __android_log_print(ANDROID_LOG_FATAL, "Fyne", __VA_ARGS__)
static jclass find_class(JNIEnv *env, const char *class_name) {
jclass... | 5,688 |
28,814 | <gh_stars>1000+
/*
* Copyright 2018 ZXing 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 applicabl... | 671 |
377 | <filename>src/jpa-engine/core/src/test/java/com/impetus/kundera/persistence/PersistenceUnitLoaderTest.java
/*******************************************************************************
* * Copyright 2012 Impetus Infotech.
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not ... | 1,696 |
382 | '''
count_tab - Count reads per gene from flatfile using UMIs
=================================================================
Purpose
-------
The purpose of this command is to count the number of reads per gene
based on the read's gene assignment and UMI. See the count command if
you want to perform per-cell counti... | 2,100 |
584 | <reponame>zueltor/MercuryTrade
package com.mercury.platform.shared.config.descriptor.adr;
public enum AdrTrackerGroupContentType {
ICONS,
PROGRESS_BARS
}
| 64 |
12,333 | <reponame>chinnsenn/PictureSelector
package com.luck.picture.lib.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import androidx.viewpager.widget.ViewPager;
/**
* @author:luck
* @date:2016-12-31 22:12
* @describe:PreviewViewPager
*/
public class Preview... | 807 |
2,872 | <gh_stars>1000+
from os.path import basename, dirname, splitext, normpath, join
class NodesPackage:
"""
A small container to store meta data about imported node packages.
"""
def __init__(self, directory: str):
self.name = basename(normpath(directory))
self.directory = directory
... | 205 |
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.... | 3,095 |
341 | package com.ccnode.codegenerator.genCode;
import com.ccnode.codegenerator.exception.BizException;
import com.ccnode.codegenerator.pojo.GenCodeResponse;
import com.ccnode.codegenerator.pojoHelper.OnePojoInfoHelper;
import com.ccnode.codegenerator.util.IOUtils;
import com.ccnode.codegenerator.util.LoggerWrapper;
import ... | 2,316 |
876 | #pragma once
#include "rapidcheck/gen/Arbitrary.h"
#include "rapidcheck/gen/Numeric.h"
namespace rc {
/// Useful utility class for testing that `Arbitrary` is actually used. The key
/// here is that if the default constructor is used, the value will be undefined
/// but if `Arbitrary` is used, the value will be `X`.... | 1,438 |
517 | package com.groupon.seleniumgridextras.config.driver;
public class EdgeDriver extends DriverInfo {
@Override
public String getExecutablePath() {
return "C:\\Program Files (x86)\\Microsoft Web Driver\\" + getExecutableName();
}
@Override
public String getExecutableName() {
return ... | 123 |
456 | <reponame>spchal/pwntools-write-ups<filename>2013/pctf/pork/harness.py
#!/usr/bin/env python2
from pwn import *
context.log_level = 1000
with tempfile.NamedTemporaryFile() as fd:
s = randoms(12)
fd.write(s)
fd.flush()
p1 = process(['./pork-patched'])
try:
p2 = process(["./doit.py", "SILEN... | 265 |
682 | /**
* @file timing_place.h
* @brief Interface used by the VPR placer to query information
* from the Tatum timing analyzer.
*
* @class PlacerSetupSlacks
* Queries connection **RAW** setup slacks, which can
* range from negative to positive values. Also maps
* atom... | 8,902 |
314 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "CDStructures.h"
@interface _IDECoverageProcessedRange : NSObject
{
BOOL _isFirstSubrangeInLine;
BOOL _isLastSubrangeInLine;
unsigned long long _lineNumber;
unsig... | 286 |
464 | import random
import pytest
from ding.utils import SingletonMetaclass
@pytest.mark.unittest
def test_singleton():
global count
count = 0
class A(object, metaclass=SingletonMetaclass):
def __init__(self, t):
self.t = t
self.p = random.randint(0, 10)
global co... | 395 |
561 | #ifndef PARALLEL_FOR_H
#define PARALLEL_FOR_H
#include<algorithm>
#include <functional>
#include <thread>
#include <vector>
#if defined(_OPENMP)
#pragma message "Using OpenMP threading."
#define PARALLEL_FOR(nthreads,LOOP_END,O) { \
if (nthreads >1 ) { \
_Pragma("omp parallel num_threads(nthreads)")... | 705 |
310 | {
"name": "Impact 5065",
"description": "A digital amplifier.",
"url": "https://www.amazon.com/sonic-impact-portable-class-t-amplifier/dp/b0014krvqq"
}
| 64 |
4,409 | package org.springframework.security.oauth.examples.tonr;
/**
* @author <NAME>
*/
@SuppressWarnings("serial")
public class SparklrException extends Exception {
public SparklrException(String message) {
super(message);
}
}
| 73 |
953 | package io.spring.sample.graphql.repository;
import java.util.Arrays;
import java.util.List;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;
@Component
public class ArtifactRepositoriesInitializer implements App... | 295 |
8,054 | <reponame>tamlok/vnote
#include "helpunitedentry.h"
#include <widgets/treewidget.h>
#include "entrywidgetfactory.h"
using namespace vnotex;
HelpUnitedEntry::HelpUnitedEntry(UnitedEntryMgr *p_mgr, QObject *p_parent)
: IUnitedEntry("help",
tr("Help information about United Entry"),
... | 956 |
956 | {
"release_date": "2015-02-02",
"version": "2.0.5",
"maintainer": "<NAME> <<EMAIL>>",
"body": "* Refine compatibility of exceptions for file operations.\n* Specify the text encoding when opening the changelog file.\n"
} | 87 |
764 | <reponame>dchain01/token-profile<gh_stars>100-1000
{
"symbol": "GE",
"address": "0xE8f030D3a6e82C84c73460B46a28016f3d744954",
"overview":{
"en": "In GEChain's entire ecosystem, global users and genetic testing organizations are able to turn their own genetic data into their own value and circulate in ... | 589 |
14,443 | /*
* Copyright 2017 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-2.0
*
* Unless required by applicab... | 3,852 |
1,473 | /*
* Copyright 2016 Naver Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 912 |
3,651 | /**
* Copyright 2010-2016 OrientDB LTD (http://orientdb.com)
*
* <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
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
*
* <p>Unless required ... | 1,799 |
348 | {"nom":"Frétigny","circ":"3ème circonscription","dpt":"Eure-et-Loir","inscrits":421,"abs":228,"votants":193,"blancs":7,"nuls":0,"exp":186,"res":[{"nuance":"LR","nom":"<NAME>","voix":128},{"nuance":"RDG","nom":"<NAME>","voix":58}]} | 95 |
1,068 | <reponame>kriegfrj/assertj-android
package org.assertj.android.api.view;
import android.support.annotation.IntDef;
import android.view.View;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.SOURCE;
@IntDef({
View.SCROLLBARS_INSIDE_INSET,
View.SCROLLBARS_INSIDE_OVERLAY... | 178 |
599 | <reponame>masanqi/bk-bcs
# -*- coding: utf-8 -*-
#
# Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
# Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
# Licensed under the MIT License (the "License"); you may n... | 835 |
521 | #pragma once
#include <elle/reactor/Waitable.hh>
namespace elle
{
namespace reactor
{
/// OrWaitable allows for waiting on one Waitable or another.
///
/// \code{.cc}
///
/// elle::reactor::Semaphore s;
/// elle::reactor::Barrier b;
///
/// ...
///
/// // Make the current T... | 456 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.