max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,671 | /**
* Copyright 2016 LinkedIn Corp. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 6,978 |
1,953 | package grails.util;
public class Triple<A, B, C> {
final A aValue;
final B bValue;
final C cValue;
public Triple(A aValue, B bValue, C cValue) {
this.aValue = aValue;
this.bValue = bValue;
this.cValue = cValue;
}
public A getaValue() {
return aValue;
}
... | 861 |
3,006 | <gh_stars>1000+
package com.nightonke.wowoviewpagerexample;
import android.annotation.SuppressLint;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
/**
* Created by <NAME> a... | 495 |
349 | <reponame>AntonDyukarev/wiremock
/*
* Copyright (C) 2017-2021 <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 require... | 1,775 |
1,239 | <reponame>1050368550/tiantiCMS
package com.jeff.tianti.common.service;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springf... | 1,502 |
1,916 | <reponame>e-schumann/simbody<filename>Simbody/Visualizer/src/VisualizerProtocol.h
#ifndef SimTK_SIMBODY_VISUALIZER_PROTOCOL_H_
#define SimTK_SIMBODY_VISUALIZER_PROTOCOL_H_
/* -------------------------------------------------------------------------- *
* Simbody(tm) ... | 3,244 |
330 | package com.alphawallet.app.entity;
/**
* Created by James on 18/07/2019.
* Stormbird in Sydney
*/
public interface BackupTokenCallback
{
void BackupClick(Wallet wallet);
void remindMeLater(Wallet wallet);
}
| 69 |
807 | #include <glog/logging.h>
#include <gtest/gtest.h>
#include <string>
#include "merkletree/verifiable_map.h"
#include "util/status_test_util.h"
#include "util/testing.h"
#include "util/util.h"
namespace cert_trans {
namespace {
using std::array;
using std::string;
using std::unique_ptr;
using util::StatusOr;
using u... | 437 |
1,439 | <filename>galen-core/src/main/java/com/galenframework/generator/SpecGenerator.java
/*******************************************************************************
* Copyright 2018 <NAME> http://galenframework.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in... | 4,349 |
364 | package rsc.publisher;
import java.util.ArrayDeque;
import java.util.concurrent.atomic.AtomicLongFieldUpdater;
import java.util.function.BooleanSupplier;
import org.reactivestreams.*;
import rsc.documentation.BackpressureMode;
import rsc.documentation.BackpressureSupport;
import rsc.documentation.FusionMode;
import ... | 2,528 |
14,668 | // 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
#define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
#include ... | 11,377 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Plenipotentiary",
"definitions": [
"A person, especially a diplomat, invested with the full power of independent action on behalf of their government, typically in a foreign country."
],
"parts-of-speech": "Noun"
} | 99 |
887 | /*
* Copyright (C) 2012 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 935 |
6,811 | <reponame>leo60228/VVVVVV
#ifndef INPUT_H
#define INPUT_H
void titleinput(void);
void gameinput(void);
void mapinput(void);
void teleporterinput(void);
void gamecompleteinput(void);
void gamecompleteinput2(void);
#endif /* INPUT_H */
| 95 |
348 | <filename>docs/data/leg-t2/085/08505078.json<gh_stars>100-1000
{"nom":"Damvix","circ":"5ème circonscription","dpt":"Vendée","inscrits":660,"abs":355,"votants":305,"blancs":30,"nuls":11,"exp":264,"res":[{"nuance":"REM","nom":"<NAME>","voix":169},{"nuance":"SOC","nom":"<NAME>","voix":95}]} | 120 |
836 | <reponame>dayanruben/android-test
/*
* Copyright (C) 2018 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/LICENS... | 756 |
426 | package com.richardradics.cleanaa.app;
import android.content.res.TypedArray;
import android.support.v7.widget.Toolbar;
import android.util.TypedValue;
import android.view.View;
import android.widget.TextView;
import com.richardradics.cleanaa.R;
import com.richardradics.core.app.BaseActivity;
import com.richardradics... | 905 |
697 | import nz.sodium.*;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
public abstract class Junction<ContainerA, A> {
private int nextID;
private StreamSink<Lambda1<Map<Integer, ContainerA>,
Map<Integer, ContainerA>>> sUpdate
= new StreamSink<>(... | 698 |
826 | """Cement core mail module."""
from abc import abstractmethod
from ..core.interface import Interface
from ..core.handler import Handler
from ..utils.misc import minimal_logger
LOG = minimal_logger(__name__)
class MailInterface(Interface):
"""
This class defines the Mail Interface. Handlers that implement ... | 1,610 |
301 | //******************************************************************
//
// Copyright 2017 Intel Mobile Communications GmbH All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except ... | 16,846 |
5,169 | {
"name": "TestinDemo",
"version": "1.0.0",
"summary": "This is a testing demo for log message servies",
"description": "This is testing Library Data and working Data",
"homepage": "https://github.com/izooto-mobile-sdk/TestinDemo",
"license": "MIT",
"authors": {
"amitgupta": "<EMAIL>"
},
"platform... | 234 |
348 | {"nom":"Changey","circ":"1ère circonscription","dpt":"Haute-Marne","inscrits":224,"abs":104,"votants":120,"blancs":10,"nuls":10,"exp":100,"res":[{"nuance":"REM","nom":"<NAME>","voix":59},{"nuance":"LR","nom":"<NAME>","voix":41}]} | 89 |
605 | <filename>compiler-rt/lib/hwasan/hwasan_allocation_functions.cpp
//===-- hwasan_allocation_functions.cpp -----------------------------------===//
//
// 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: A... | 2,324 |
5,169 | <filename>Specs/b/6/3/WeSdkMediation_Facebook/5.4.0.4/WeSdkMediation_Facebook.podspec.json<gh_stars>1000+
{
"name": "WeSdkMediation_Facebook",
"version": "5.4.0.4",
"summary": "Facebook Adapters for mediating through WeSdk.",
"homepage": "https://github.com/webeyemob/WeSdkiOSPub",
"license": {
"type": "MI... | 336 |
607 | class A;
template <typename T>
::A* B::fn();
| 21 |
2,151 | /*
* Copyright 2008 <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, modify, merge, publish, distrib... | 16,150 |
7,353 | /* Wrapper for wepoll.c */
#ifdef _WIN32
#include "wepoll.c"
#endif
| 31 |
1,127 | <reponame>kurylo/openvino
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <openvino/cc/ngraph/itt.hpp>
#include "transformations/substitute_softsign.hpp"
#include "transformations/utils/transformation_helper.hpp"
#include "transformations/utils/utils.hpp"
#include <ng... | 1,195 |
348 | {"nom":"Baneuil","circ":"2ème circonscription","dpt":"Dordogne","inscrits":305,"abs":142,"votants":163,"blancs":22,"nuls":6,"exp":135,"res":[{"nuance":"REM","nom":"<NAME>","voix":86},{"nuance":"FN","nom":"<NAME>","voix":49}]} | 91 |
347 | <filename>mapproxy/test/test_http_helper.py
# This file is part of the MapProxy project.
# Copyright (C) 2013 Omniscale <http://omniscale.de>
#
# 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
#... | 3,780 |
589 | <reponame>ClaudioWaldvogel/inspectIT
package rocks.inspectit.ui.rcp.editor.graph.plot;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Objects;
import org.apache.commons... | 3,705 |
2,436 | package com.ss.android.ugc.bytex.common.utils;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.tree.AbstractInsnNode;
import org.objectweb.asm.tree.FieldInsnNode;
import org.objectweb.asm.tree.FrameNode;
import org.objectweb.asm.tree.IincInsnNode;
import org.objectweb.asm.tree.InsnNode;
import org.objectweb... | 8,282 |
5,169 | {
"name": "LLLocation",
"module_name": "LLLocation",
"version": "0.0.1",
"summary": "Simple get location on iOS device. Write in swift4.",
"homepage": "https://github.com/Kila2/LLLocation",
"license": "MIT",
"authors": {
"Kila2": "<EMAIL>"
},
"platforms": {
"ios": "8.0"
},
"requires_arc": ... | 219 |
1,694 | <reponame>CrackerCat/iWeChat<filename>header6.6.1/WXMediaMessage.h
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import <objc/NSObject.h>
@class NSData, NSString;
@interface WXMediaMes... | 418 |
1,998 | <filename>samples/csharp_dotnetcore/63.twilio-adapter/appsettings.json
{
"TwilioNumber": "",
"TwilioAccountSid": "",
"TwilioAuthToken": "",
"TwilioValidationUrl": ""
}
| 75 |
2,151 | <filename>tests/unittests/shared/imc/double_nacl_close_test.c
/*
* Copyright 2010 The Native Client 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 <stdio.h>
#include "native_client/src/shared/imc/nacl_imc_c.h"
#includ... | 469 |
474 | <gh_stars>100-1000
//
// QNTranscodeViewController.h
// ShortVideo
//
// Created by hxiongan on 2019/4/15.
// Copyright © 2019年 ahx. All rights reserved.
//
#import "QNBaseViewController.h"
#import <Photos/Photos.h>
@interface QNTranscodeViewController : QNBaseViewController
@property (nonatomic, strong) PHAss... | 139 |
5,079 | <filename>tests/test_django_settings_module.py
"""Tests which check the various ways you can set DJANGO_SETTINGS_MODULE
If these tests fail you probably forgot to run "python setup.py develop".
"""
import django
import pytest
BARE_SETTINGS = """
# At least one database must be configured
DATABASES = {
'default'... | 6,176 |
455 | #!/foo/python
import os
import fileinput
import json
for line in fileinput.input():
input_data = json.loads(line)
if input_data['message']:
print(json.dumps({'env': os.environ['PT_message'], 'stdin': input_data['message']}))
| 91 |
3,428 | <reponame>ghalimi/stdlib<gh_stars>1000+
{"id":"01510","group":"easy-ham-1","checksum":{"type":"MD5","value":"08454da046a34bf7a209a3f3957066fa"},"text":"From <EMAIL> Fri Sep 20 11:28:07 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: <EMAIL>.spamassassin.taint.org\nReceived: from localhost (jalapeno [1172.16.17.32])\n\tby ... | 658 |
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 REMOTING_IOS_FACADE_HOST_INFO_H_
#define REMOTING_IOS_FACADE_HOST_INFO_H_
#include <string>
#include <vector>
#include "ba... | 420 |
353 | <reponame>johannespitz/functionsimsearch
#include <map>
#include <fstream>
#include <string>
#include <vector>
#include "disassembly/flowgraph.hpp"
#include "disassembly/flowgraphwithinstructions.hpp"
#include "third_party/json/src/json.hpp"
// Copy constructor. Somewhat hideously expensive.
FlowgraphWithInstructions... | 1,267 |
334 | <gh_stars>100-1000
import pytest
from starlite import ImproperlyConfiguredException, Starlite, get, post
from starlite.exceptions import MethodNotAllowedException
from starlite.routes import HTTPRoute
@get(path="/")
def my_get_handler() -> None:
pass
@post(path="/")
def my_post_handler() -> None:
pass
@p... | 382 |
687 | # Lint as: python3
#
# Copyright 2020 The XLS 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... | 7,888 |
1,609 | <gh_stars>1000+
//
//
// Copyright (C) 2020 Schrödinger, LLC
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
#pragma once
#include "Confi... | 255 |
2,151 | <reponame>zipated/src
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/third_party/quic/platform/api/quic_clock.h"
namespace net {
QuicClock::QuicClock() {}
QuicClock::~QuicClock() {... | 458 |
545 | <gh_stars>100-1000
//
// SmileClimacons.h
// SmileWeather-Example
//
// Created by <NAME> on 7/26/15.
// Copyright (c) 2015 rain. All rights reserved.
//
#ifndef SmileWeather_Example_SmileClimacons_h
#define SmileWeather_Example_SmileClimacons_h
typedef enum {
ClimaconCloud = '!',
Climac... | 2,145 |
841 | <filename>resteasy-core/src/main/java/org/jboss/resteasy/core/providerfactory/ResteasyProviderFactoryDelegate.java
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.resteasy.core.providerfactory;
import org.jboss.resteasy.spi.AsyncC... | 6,188 |
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 ... | 3,965 |
11,877 | <gh_stars>1000+
/*
* Copyright 2021 <NAME>. 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 require... | 1,239 |
1,127 | # Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import unittest
import numpy as np
from generator import generator, generate
from openvino.tools.mo.front.common.partial_infer.utils import int64_array, mo_array, is_fully_defined, \
dynamic_dimension_value, dynamic_dimension, shap... | 4,287 |
1,428 | #include <iostream>
#include <cstring>
#include <cstdlib>
using namespace std;
int main(int argc,char *argv[])
{
string str;
int k=0;
str=argv[1];
int n=(str.length());
int arr[n];
int newarr[n];
for(int i=0;i<n;i++)
{
if(str[i]==' ')
arr[i]=-1;
else
arr[i]=str[i]-'0';
}
int i=0, j=0;
for... | 564 |
575 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_FORMATS_MP2T_ES_PARSER_H_
#define MEDIA_FORMATS_MP2T_ES_PARSER_H_
#include <stdint.h>
#include <list>
#include <memory>
#include <utility>... | 985 |
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 "net/third_party/quic/http/decoder/payload_decoders/quic_http_goaway_payload_decoder.h"
#include <stddef.h>
#include "base/logging.h"
#include ... | 2,169 |
19,824 | <gh_stars>1000+
{
"main": "dist/keystone-ui-icons-icons-RefreshCcwIcon.cjs.js",
"module": "dist/keystone-ui-icons-icons-RefreshCcwIcon.esm.js"
}
| 69 |
940 | /*
* util_windows.h - Miscellaneous utilities for Win32
*
* Basilisk II (C) 1997-2008 <NAME>
*
* Windows platform specific code copyright (C) <NAME>
*
* 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
* t... | 1,567 |
432 | /**
* @file screen.h
* @author <NAME>
* @date 2005-2006
*
* @brief Header for screen functions.
*
* Note that screen here refers to physical monitors. Screens are
* determined using the xinerama extension (if available). There will
* always be at least one screen.
*
*/
#ifndef SCREEN_H
#define SCREEN_H
/**... | 426 |
415 | <reponame>Quipyowert2/zzuf<filename>src/common/fd.h
/*
* zzuf - general purpose fuzzer
*
* Copyright © 2002—2015 <NAME> <<EMAIL>>
* 2012 <NAME> <<EMAIL>>
*
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and... | 565 |
346 | package com.kizitonwose.colorpreference;
/**
* Created by <NAME> on 10/2/2016.
*/
public enum PreviewSize {
NORMAL, LARGE;
public static PreviewSize getSize(int num) {
switch (num) {
case 1:
return NORMAL;
case 2:
return LARGE;
defa... | 197 |
833 | # 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 1,463 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Rite",
"definitions": [
"A religious or other solemn ceremony or act.",
"A body of customary observances characteristic of a Church or a part of it.",
"A social custom, practice, or conventional act."
],
"parts-of-speech": "Noun"
} | 122 |
471 | <reponame>madanagopaltcomcast/pxCore
/////////////////////////////////////////////////////////////////////////////
// Name: referencenotes.h
// Purpose: topic overview
// Author: wxWidgets team
// Licence: wxWindows licence
////////////////////////////////////////////////////////////////////////////... | 221 |
3,662 | <gh_stars>1000+
# yellowbrick.style.rcmod
# Modifies the matplotlib rcParams in order to make yellowbrick appealing.
#
# Author: <NAME>
# Created: Thu Oct 06 08:45:38 2016 -0400
#
# Copyright (C) 2016 The scikit-yb developers
# For license information, see LICENSE.txt
#
# ID: rcmod.py [c6aff34] <EMAIL> $
"""
Modifi... | 5,329 |
8,747 | <reponame>lovyan03/esp-idf
#!/usr/bin/env python
import os
import re
import subprocess
import sys
import tempfile
import textwrap
import unittest
from future.utils import iteritems
class ConfgenBaseTestCase(unittest.TestCase):
@classmethod
def setUpClass(self):
self.args = dict()
self.functi... | 4,272 |
3,372 | <filename>aws-java-sdk-codeguruprofiler/src/main/java/com/amazonaws/services/codeguruprofiler/model/FindingsReportSummary.java
/*
* 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 com... | 5,142 |
409 | {
"id": "centrifugal",
"name": "<NAME>",
"description": "insert cool description here",
"author": "<NAME>",
"menuPriority": 71,
"selectable": true,
"styleId": "centrifugal",
"musicId": "tengil",
"luaFile": "Scripts/Levels/centrifugal.lua",
"difficultyMults": [1.2, 1.4, 1.6, 0.6, ... | 152 |
583 | #pragma once
#include <type_traits>
#include "storage/segment_iterables.hpp"
#include "storage/lz4_segment.hpp"
#include "storage/vector_compression/resolve_compressed_vector_type.hpp"
namespace opossum {
template <typename T>
class LZ4SegmentIterable : public PointAccessibleSegmentIterable<LZ4SegmentIterable<T>> ... | 3,147 |
318 | // __BEGIN_LICENSE__
// Copyright (c) 2006-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NASA Vision Workbench is licensed under the Apache License,
// Version 2.0 (the "License"); you may not use this f... | 1,161 |
495 | /*
* Copyright 2014-2016 Media for Mobile
*
* 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 ag... | 346 |
1,006 | /****************************************************************************
* libs/libc/net/lib_freeifaddrs.c
*
* 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 o... | 443 |
1,561 | // Copyright 1996-2021 Cyberbotics Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 542 |
841 | <reponame>brunolmfg/resteasy
package org.jboss.resteasy.test.providers.custom.resource;
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.ext.ExceptionMapper;
import jakarta.ws.rs.ext.Provider;
import java.io.IOException;
@Provider
public class ProviderContextInjectionIOExceptionExceptionMapper implements Exce... | 158 |
1,510 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 1,311 |
1,438 | package com.dexvis.dex.task.vis.prefuse;
import java.util.HashMap;
import java.util.Map;
import javax.swing.JFrame;
import org.simpleframework.xml.Root;
import prefuse.data.Graph;
import prefuse.data.Schema;
import ca.utoronto.cs.prefuseextensions.demo.StarburstDemo;
import com.dexvis.dex.exception.De... | 1,030 |
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 ... | 979 |
1,738 | <gh_stars>1000+
/*
* 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 li... | 7,677 |
1,125 | <filename>modules/lang-mustache/src/main/java/org/elasticsearch/script/mustache/MultiSearchTemplateRequestBuilder.java
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elast... | 857 |
361 | <reponame>romolodevito/commons-codec<filename>src/test/java/org/apache/commons/codec/binary/Codec105ErrorInputStream.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 co... | 560 |
488 | <reponame>ouankou/rose
#ifndef AST_REWRITE_PREFIX_GENERATION_C
#define AST_REWRITE_PREFIX_GENERATION_C
// #include "rose.h"
#include "rewrite.h"
template <class ASTNodeCollection>
MidLevelRewrite<ASTNodeCollection>::PrefixSuffixGenerationTraversal::
PrefixSuffixGenerationTraversal ( bool inputGenerateIncludeDirective... | 19,597 |
2,606 | package weixin.popular.bean.bizwifi.couponput.get;
/**
* @ProjectName weixin-popular
* @Author: zeroJun
* @Date: 2018/7/24 17:16
* @Description:
*/
public class CouponputGetResultData {
private Integer shop_id;
private Integer card_status;
private String card_id;
private String card_describe;
... | 560 |
1,526 | <gh_stars>1000+
import time
import threading
import mock
import unittest2
import testlib
import mitogen.core
class ShutdownTest(testlib.TestCase):
klass = mitogen.core.Broker
def test_poller_closed(self):
broker = self.klass()
actual_close = broker.poller.close
broker.poller.close... | 851 |
5,169 | {
"name": "FlowplayerCore",
"version": "1.2.1",
"summary": "The core library of Flowplayer's native iOS SDK.",
"homepage": "https://flowplayer.com/",
"license": {
"type": "Flowplayer Commercial License v0.4",
"file": "Release-FlowplayerCore/LICENSE.md"
},
"authors": "Flowplayer AB",
"platforms":... | 231 |
335 | {
"word": "Graminivorous",
"definitions": [
"(of an animal) feeding on grass."
],
"parts-of-speech": "Adjective"
} | 64 |
476 | // Copyright (c) Facebook, Inc. and its affiliates.
//
// 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... | 555 |
396 | package me.everything.providers.android.media;
import android.net.Uri;
import android.provider.BaseColumns;
import android.provider.MediaStore;
import me.everything.providers.core.Entity;
import me.everything.providers.core.FieldMapping;
import me.everything.providers.core.IgnoreMapping;
/**
* Created by sromku
*/... | 438 |
457 | <reponame>jdamick/denominator
package denominator;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import denominator.mock.MockProvider;
import denominator.model.ResourceRecordSet;
import denominator.model... | 3,589 |
313 | <reponame>saiive/ain<filename>test/functional/rpc_listaccounthistory.py
#!/usr/bin/env python3
# Copyright (c) 2014-2019 The Bitcoin Core developers
# Copyright (c) DeFi Blockchain Developers
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-lice... | 1,749 |
385 | /* Compiled resource file. DO NOT EDIT! */
#include "Corrade/Corrade.h"
#include "Corrade/Utility/Macros.h"
#include "Corrade/Utility/Resource.h"
namespace {
Corrade::Utility::Implementation::ResourceGroup resource;
}
int resourceInitializer_ResourceTestNothingData();
int resourceInitializer_ResourceTestNothingDat... | 282 |
1,159 | <gh_stars>1000+
#include "trapezoid.h"
#include "base/math/tolerance.h"
#include "triangle.h"
using namespace Geom;
Trapezoid Trapezoid::Square(Point p0, Point p2)
{
auto center = (p0 + p2) / 2;
auto halfDiagonal = (p2 - p0) / 2;
auto p1 = center + halfDiagonal.normal(false);
auto p3 = center + halfDiagonal.nor... | 550 |
1,540 | <reponame>punamsapkale/testng<gh_stars>1000+
package test.failedreporter.issue2521;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Factory;
import org.testng.annotations.Test;
public class DataProviderWithFactoryMultiFailedReporterSample {
private Integer data;
@Factory(dataProvider = ... | 280 |
1,861 |
from pypykatz.commons.common import KatzSystemArchitecture, WindowsBuild, WindowsMinBuild
from pypykatz.commons.win_datatypes import POINTER, ULONG, \
KIWI_GENERIC_PRIMARY_CREDENTIAL, PVOID, DWORD, LUID, \
LSA_UNICODE_STRING, WORD
from pypykatz.commons.common import hexdump
class RDPCredsTemplate:
def __init__(sel... | 707 |
1,259 | <reponame>mevinbabuc/flagsmith
import pytest
from features.feature_types import MULTIVARIATE
from features.models import Feature
from features.multivariate.models import MultivariateFeatureOption
from features.value_types import STRING
@pytest.fixture()
def multivariate_feature(project):
feature = Feature.object... | 359 |
1,946 | #pragma once
#include <memory>
#include <string>
#include <vector>
#include "Poller.h"
#include "Utils.h"
class ControlSocket {
public:
ControlSocket(std::shared_ptr<Poller> poller);
~ControlSocket();
bool Startup();
bool Accept();
bool Recv(std::vector<std::string> &commands);
void CloseClient();
void Shut... | 194 |
432 | /* @(#)main.c 8.2 (Berkeley) 4/2/94 */
/* $NetBSD: main.c,v 1.15 2009/04/14 08:50:06 lukem Exp $ */
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME> at The University of California, Berkele... | 2,036 |
484 | <reponame>BurningEnlightenment/outcome
/* Example of Outcome used with error code enums
(C) 2017-2019 <NAME> <http://www.nedproductions.biz/> (3 commits)
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 Licens... | 1,195 |
3,651 | <gh_stars>1000+
package com.orientechnologies.orient.core.metadata.security;
public class OSecurityResourceDatabaseOp extends OSecurityResource {
public static OSecurityResourceDatabaseOp DB = new OSecurityResourceDatabaseOp("database");
public static OSecurityResourceDatabaseOp CREATE =
new OSecurityResour... | 421 |
640 | # -*- coding: utf-8 -*-
from app.const import *
from app.base.controller import TPBaseHandler, TPBaseJsonHandler
from app.model import stats
class IndexHandler(TPBaseHandler):
def get(self):
ret = self.check_privilege(TP_PRIVILEGE_LOGIN_WEB)
if ret != TPE_OK:
return
... | 160 |
580 | /**
* Copyright 2011, Big Switch Networks, Inc.
* Originally created by <NAME>, Stanford University
*
* 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.apa... | 1,945 |
424 | import asyncio
from collections import deque
from datetime import datetime
from pathlib import Path
from re import Match, match
from typing import Dict, Iterable, List, Tuple, Union
from urllib import parse
import requests
from bs4 import BeautifulSoup, Tag
from more_itertools import unique_everseen
from pyppeteer imp... | 8,383 |
933 | /*
* Copyright (C) 2021 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 app... | 1,700 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.