max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
868
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may n...
2,436
892
<reponame>westonsteimel/advisory-database-github { "schema_version": "1.2.0", "id": "GHSA-7gxq-69xx-2vr4", "modified": "2022-04-05T00:01:03Z", "published": "2022-03-26T00:00:33Z", "aliases": [ "CVE-2021-44751" ], "details": "A vulnerability affecting F-Secure SAFE browser was discovered. A maliciously...
496
5,169
{ "name": "StompKit", "version": "0.1.0", "summary": "STOMP Objective-C Client for iOS.", "homepage": "https://github.com/mobile-web-messaging/StompKit", "license": "Apache License, Version 2.0", "authors": "<NAME>", "source": { "git": "https://github.com/mobile-web-messaging/StompKit.git", "tag":...
248
2,866
#!/usr/bin/env python # coding=utf-8 # Copyright (c) 2020, Google Inc. # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "A...
2,832
12,252
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apach...
976
388
<reponame>koryovip/java-swing-tips<gh_stars>100-1000 // -*- mode:java; encoding:utf-8 -*- // vim:set fileencoding=utf-8: // @homepage@ package example; import java.awt.*; import javax.swing.*; import javax.swing.table.DefaultTableModel; import javax.swing.table.JTableHeader; import javax.swing.table.TableModel; publ...
760
669
<gh_stars>100-1000 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License #pragma once #include "core/session/onnxruntime_cxx_api.h" #include "core/framework/allocatormgr.h" #include "core/framework/execution_provider.h" namespace onnxruntime { bool IsGraphInput(const GraphVie...
1,536
348
<filename>src/lib/geogram_gfx/gui/application.cpp<gh_stars>100-1000 /* * Copyright (c) 2012-2016, <NAME> All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source cod...
24,311
507
<reponame>mjuenema/python-terrascript<gh_stars>100-1000 # terrascript/provider/PagerDuty/pagerduty.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:24:19 UTC) import terrascript class pagerduty(terrascript.Provider): """Terraform PagerDuty provider""" __description__ = "Terraform PagerDuty ...
238
491
package net.andreinc.mockneat.unit.seq; import net.andreinc.mockneat.MockNeat; import net.andreinc.mockneat.abstraction.MockUnitInt; import java.util.concurrent.atomic.AtomicInteger; import java.util.function.Supplier; import static java.lang.Integer.MAX_VALUE; import static java.lang.Integer.MIN_VALUE; import stati...
1,985
11,351
<reponame>LearnJavaByus/eureka package com.netflix.discovery.guice; import com.netflix.appinfo.ApplicationInfoManager; import com.netflix.appinfo.DataCenterInfo; import com.netflix.appinfo.EurekaArchaius2InstanceConfig; import com.netflix.appinfo.EurekaInstanceConfig; import com.netflix.appinfo.InstanceInfo; import co...
1,784
627
<gh_stars>100-1000 /* Copyright 2016 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef __CROS_EC_STM32_USB_DWC_UPDATE_H #define __CROS_EC_STM32_USB_DWC_UPDATE_H extern struct dwc_usb_ep usb_update_ep_ctl; #...
140
5,166
//snippet-sourcedescription:[put_get_records.cpp demonstrates how to get and put records in an Amazon Kinesis data stream.] //snippet-keyword:[C++] //snippet-sourcesyntax:[cpp] //snippet-keyword:[Code Sample] //snippet-keyword:[Amazon Kinesis Data Streams] //snippet-service:[kinesis] //snippet-sourcetype:[full-...
3,481
1,444
package mage.abilities.effects.common.continuous; import mage.ObjectColor; import mage.abilities.Ability; import mage.abilities.effects.ContinuousEffectImpl; import mage.constants.*; import mage.game.Game; import mage.game.permanent.Permanent; /** * @author noxx */ public class AddCardColorAttachedEffect extends ...
887
11,334
/* * Copyright 2014-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
991
1,248
<filename>repository/src/test/java/org/apache/atlas/repository/impexp/DataMigrationStatusServiceTest.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 owne...
983
918
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
1,024
2,023
def makefilter(keep): """ Return a functor that takes a string and returns a copy of that string consisting of only the characters in 'keep'. """ import string # make a string of all chars, and one of all those NOT in 'keep' allchars = string.maketrans('', '') delchars = ''.join([c for ...
195
14,668
<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. #include "chrome/common/extensions/command.h" #include <stddef.h> #include "base/check.h" #include "base/strings/string_number_conve...
8,362
348
<gh_stars>100-1000 {"nom":"Vire-Normandie","circ":"6ème circonscription","dpt":"Calvados","inscrits":13515,"abs":7985,"votants":5530,"blancs":545,"nuls":321,"exp":4664,"res":[{"nuance":"REM","nom":"<NAME>","voix":3275},{"nuance":"FN","nom":"<NAME>","voix":1389}]}
107
1,326
<filename>core/src/main/java/com/github/braisdom/objsql/sql/function/MsSqlServer.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 licens...
3,135
511
/* * Copyright 2011-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. */ package org.intellij.grammar.inspection; import com.intellij.codeInspection.*; import com.intellij.openapi.util.Condition; import com.intellij.psi.PsiElement; import com....
2,001
322
<reponame>hcp922/ramulator #!/usr/bin/env python3 # This script tests different configurations of Ramulator using several traces. # After making changes to the source code, run this script to make sure your changes do not break Ramulator # in terms of simulation accuracy (i.e., cycles to complete a given trace), simul...
3,632
1,418
<filename>aima-core/src/main/java/aima/core/logic/planning/Graph.java package aima.core.logic.planning; import java.util.ArrayList; import java.util.List; /** * Artificial Intelligence A Modern Approach (3rd Edition): page 379.<br> * <p> * A planning graph is a directed graph organized into levels: first a level S...
521
5,169
{ "name": "Sageru", "version": "0.3.0", "summary": "It is a menu library inspired by the music application, AWA.", "description": "- It is a menu library inspired by the music application, AWA.", "homepage": "https://github.com/hakota/Sageru", "license": { "type": "MIT" }, "authors": { "<NAME>":...
238
522
# Copyright 2016 The TensorFlow 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 applica...
6,326
1,072
import torch.nn as nn from actnn.layers import QLinear, QReLU, QBatchNorm1d, QDropout class ActMLP(nn.Module): r"""Multilayer perception with normalization .. math:: x^{(i+1)} = \sigma(W^{i}x^{(i)}) Parameters ---------- in_feats : int Size of each input sample. out_feats : ...
1,150
14,668
/*********************************************************** Copyright 1987, 1994, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both th...
25,964
831
/* * Copyright (C) 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 app...
1,068
969
// Copyright (c) 2010-2021, Lawrence Livermore National Security, LLC. Produced // at the Lawrence Livermore National Laboratory. All Rights reserved. See files // LICENSE and NOTICE for details. LLNL-CODE-806117. // // This file is part of the MFEM library. For more information and source code // availability visit ht...
1,022
1,968
////////////////////////////////////////////////////////////////////////////// // // This file is part of the Corona game engine. // For overview and more information on licensing please refer to README.md // Home page: https://github.com/coronalabs/corona // Contact: <EMAIL> // ///////////////////////////////////////...
3,169
337
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
499
519
/* * Copyright (c) 2016-2021 Morwenn * SPDX-License-Identifier: MIT */ #include <functional> #include <vector> #include <catch2/catch.hpp> #include <cpp-sort/fixed/low_comparisons_sorter.h> #include <cpp-sort/sorter_traits.h> #include <cpp-sort/sorters/merge_sorter.h> #include <cpp-sort/sorters/quick_sorter.h> #incl...
2,508
356
<gh_stars>100-1000 /* * Copyright 2015-2018 <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 applica...
3,219
4,013
'''配置文件''' import os '''屏幕大小''' SCREENSIZE = (640, 480) '''块大小''' BLOCKSIZE = 30 '''FPS''' FPS = 30 '''游戏地图路径''' GAMEMAPPATHS = [os.path.join(os.getcwd(), path) for path in \ ['resources/maps/1.map', 'resources/maps/2.map']] '''墙路径''' WALLPATHS = [os.path.join(os.getcwd(), path) for path in \ ['resources/imag...
819
327
package com.reactnative.googlecast.types; import androidx.annotation.Nullable; import com.facebook.react.bridge.ReadableMap; import com.facebook.react.bridge.WritableMap; import com.facebook.react.bridge.WritableNativeMap; import com.google.android.gms.cast.MediaTrack; import org.json.JSONObject; public class RNGCM...
733
348
<gh_stars>100-1000 {"nom":"Saint-Georges-sur-Baulche","circ":"1ère circonscription","dpt":"Yonne","inscrits":2502,"abs":1034,"votants":1468,"blancs":75,"nuls":26,"exp":1367,"res":[{"nuance":"LR","nom":"M. <NAME>","voix":685},{"nuance":"REM","nom":"<NAME>","voix":682}]}
109
10,225
package io.quarkus.micrometer.runtime.export; import javax.enterprise.inject.Produces; import javax.inject.Singleton; import io.micrometer.core.instrument.Clock; import io.quarkus.micrometer.runtime.registry.json.JsonMeterRegistry; @Singleton public class JsonMeterRegistryProvider { @Produces @Singleton ...
198
789
<filename>datasets/load/load.Ensembl_homo_sapiens_low_complexity_regions.py import hail as hl import argparse raw_data_root = 'gs://hail-datasets-raw-data/Ensembl' hail_data_root = 'gs://hail-datasets-hail-data' parser = argparse.ArgumentParser() parser.add_argument('-v', required=True, help='Dataset version.') pars...
744
327
/* * Copyright 2014 CITIUS <http://citius.usc.es>, University of Santiago de Compostela. * * 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...
343
575
// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // 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 re...
725
583
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: WxCmd.proto package com.yc.inter.websocket.client.protobuf; public final class WxCmdPb { private WxCmdPb() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public static com.google.pro...
558
1,590
<gh_stars>1000+ { "parameters": { "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "sqlcrudtest-6852", "serverName": "sqlcrudtest-2080", "databaseName": "sqlcrudtest-9187", "transparentDataEncryptionName": "current", "api-version": "2014-04-01", "parameters": ...
600
777
<reponame>google-ar/chromium // 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. #include "chromeos/dbus/arc_obb_mounter_client.h" #include "base/bind.h" #include "base/callback.h" #include "dbus/bus.h" #i...
1,245
1,405
<reponame>jarekankowski/pegasus_spyware<gh_stars>1000+ package com.lenovo.performancecenter.performance; import android.app.NotificationManager; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.content.SharedPr...
4,278
575
<reponame>Matheus193dn/Mobile-SDK-iOS // // CameraPushInfoViewController.h // DJISdkDemo // // Copyright © 2015 DJI. All rights reserved. // #import "DemoPushInfoViewController.h" @interface CameraPushInfoViewController : DemoPushInfoViewController @end
88
806
package com.evenwell.powersaving.g3.utils; import android.content.Context; import android.graphics.Point; import android.os.RemoteException; import android.util.DisplayMetrics; import android.view.WindowManager; import android.view.WindowManagerGlobal; import com.evenwell.powersaving.g3.C0321R; public class DisplayRe...
1,753
474
#pragma once #include <ARKit/ARKit.h> typedef struct IXrContextARKit { virtual bool IsInitialized() const = 0; virtual ARSession* XrSession() const = 0; virtual ARFrame* XrFrame() const = 0; } IXrContextARKit;
84
5,169
{ "name": "RoughSwift", "summary": "Create hand-drawn, sketchy, comic shape in Swift", "version": "1.0.0", "homepage": "https://github.com/onmyway133/RoughSwift", "license": "MIT", "authors": { "<NAME>": "<EMAIL>" }, "source": { "git": "https://github.com/onmyway133/RoughSwift.git", "tag": "...
309
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.apimanagement; import com.azure.core.util.Context; /** Samples for ProductGroup CreateOrUpdate. */ public final class ProductGr...
313
9,402
<gh_stars>1000+ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // ==--== // // Shared (non-architecture specific) portions of a mechanism to perform interface dispatch using an alternate // mechanism to VSD that does not require r...
8,088
13,885
<reponame>N500/filament /* * 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/LICENSE-2.0 * ...
2,691
1,096
{ "degradation": [ "Transitions are faster in Safari" ], "issues": [ "The placeholder attribute has to be present on the input with the value of \" \" (space)", "No floating label on Edge", "Textarea scroll overflow is not clipped under label text" ] }
87
1,664
<filename>ambari-server/src/main/java/org/apache/ambari/server/events/AlertStateChangeEvent.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. Th...
1,127
751
<gh_stars>100-1000 /* * Copyright (c) 2018 Cisco and/or 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 re...
605
482
<filename>code/iaas/logic/src/main/java/io/cattle/platform/process/containerevent/ContainerEventInstanceLock.java<gh_stars>100-1000 package io.cattle.platform.process.containerevent; import io.cattle.platform.lock.definition.AbstractBlockingLockDefintion; public class ContainerEventInstanceLock extends AbstractBlocki...
163
7,510
<gh_stars>1000+ [ { "category": "``mediaconvert``", "description": "[``botocore``] Update mediaconvert client to latest version", "type": "api-change" }, { "category": "``cloudformation``", "description": "[``botocore``] Update cloudformation client to latest version", "type": "api-ch...
997
582
<filename>src/qt/notifymnemonic.cpp #include "notifymnemonic.h" #include "ui_notifymnemonic.h" #include "guiutil.h" #include "util.h" #ifdef ENABLE_WALLET #include "walletmodel.h" #endif #include <QFileDialog> #include <QSettings> #include <QMessageBox> #include <QAbstractButton> NotifyMnemonic::NotifyMnemonic(QWi...
793
451
import wrapt import imp import os import warnings from datetime import datetime from tinydb import TinyDB from .tinydb_utils import serializer from .config import get_db_path def open_or_create_db(path=get_db_path()): """Get a TinyDB database object for the recipy database. This opens the DB, creating it i...
2,082
1,144
<filename>querybook/server/lib/form/__init__.py import re from abc import ABCMeta, abstractmethod from typing import Dict, Union from enum import Enum class FormFieldType(Enum): String = "string" Boolean = "boolean" Number = "number" class CompositeFormFieldType(Enum): # expandable key value pair ...
2,199
403
<gh_stars>100-1000 /* * Camunda Platform REST API * OpenApi Spec for Camunda Platform REST API. * * The version of the OpenAPI document: 7.16.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */...
9,406
347
package org.ovirt.engine.core.dal.dbbroker; import java.util.Map; public class StoredProcedureMetaData { private String schemaName; private String dbName; private String sqlCommand; private Map<String, SqlCallParameter> paramatersMetaData; public String getSchemaName() { return schemaName...
388
622
''' generics classes with common base. ''' class A: def __init__(self, x:int): self.x = x def method1(self) -> int: return self.x def getname(self) -> string: return self.__class__ class B(A): def method1(self) ->int: return self.x * 2 def method2(self, y:int): print( self.x + y ) class C(A): def met...
454
2,759
<reponame>bllewell/yugabyte-db<filename>src/yb/yql/pggate/pggate_thread_local_vars.h<gh_stars>1000+ //-------------------------------------------------------------------------------------------------- // Copyright (c) YugaByte, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use t...
811
582
// Copyright (C) 2010-2016 <NAME> // Distributed under the MIT license, see the LICENSE file for details. #include <limits> #include <cassert> #include <cmath> #include "image_builder.h" namespace chromaprint { ImageBuilder::ImageBuilder(Image *image) : m_image(image) { } ImageBuilder::~ImageBuilder() { } void I...
170
495
<filename>tests/test_modular_input_kinds.py #!/usr/bin/env python # # Copyright 2011-2015 Splunk, 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/L...
1,183
1,317
// // CMHTMLSuperscriptTransformer.h // CocoaMarkdown // // Created by Indragie on 1/16/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "CMHTMLScriptTransformer.h" #if TARGET_OS_IPHONE #import <UIKit/UIKit.h> #else #import <Cocoa/Cocoa.h> #endif /** * Transfo...
418
488
typedef shared int* shared_integer; void foobar() { #if 0 shared_integer ptr; ptr = 0L; #endif }
52
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,486
4,036
<reponame>timoles/codeql import base64 # TODO: These tests should be merged with python/ql/test/experimental/dataflow/tainttracking/defaultAdditionalTaintStep-py3/test_string.py base64.a85decode(payload) # $ decodeInput=payload decodeOutput=base64.a85decode(..) decodeFormat=Ascii85 base64.b85decode(payload) # $ deco...
172
3,976
<filename>levantado/0004/worder.py import re import os from pprint import pprint path = os.getcwd() + '/word.txt' def wordstat(path): f = open(path, 'r+') wordcount = {} for t in re.sub('[^0-9a-zA-Z]+', " ", f.read()).split(): if t not in wordcount: wordcount[t] = 1 else: ...
200
406
<reponame>joshua-gould/igv /* * The MIT License (MIT) * * Copyright (c) 2007-2015 Broad Institute * * 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 witho...
1,037
854
<reponame>rakhi2001/ecom7<filename>Java/464.java<gh_stars>100-1000 __________________________________________________________________________________________________ sample 2 ms submission class Solution { public boolean canIWin(int maxChoosableInteger, int desiredTotal) { if ((maxChoosableInteger == 10 && ...
1,746
519
<filename>processor-tests/loads-of-strings/src/androidTest/java/io/michaelrocks/paranoid/processor/loadsofstrings/LoadsOfStringsTest.java /* * Copyright 2020 <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 obtai...
2,767
3,976
<gh_stars>1000+ import uuid def gen(num, len): L = [] for i in range(num): ran = str(uuid.uuid4()).replace('-', '')[:len] if not ran in L: L.append(ran) return L if __name__ == '__main__': for item in gen(200, 16): print(item)
114
392
<filename>jsettlers.mapcreator/src/main/java/jsettlers/mapcreator/mapvalidator/tasks/error/ValidateBuildings.java /******************************************************************************* * Copyright (c) 2015 - 2016 * * Permission is hereby granted, free of charge, to any person obtaining a copy of this softw...
1,299
905
<reponame>naterenegar/ormar from typing import List import databases import pytest import sqlalchemy import ormar from tests.settings import DATABASE_URL metadata = sqlalchemy.MetaData() database = databases.Database(DATABASE_URL, force_rollback=True) class Category(ormar.Model): class Meta: tablename ...
1,777
397
{"courier_defaulting_to_nationwide":false,"post_defaulting_to_nationwide":false,"post_large_delivery_type":"within_island","info":{"lat_long_src":"-41.2829189300537,174.7841796875","dimensions":"Weight 0.1kg; Volumetric Weight 0.0kg; 930.0x0.0x0.0","resolved_postcode_dest":"1010","resolved_postcode_src":"6011","resolve...
386
460
/* * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, ...
2,167
419
<filename>Code/System/Input/InputSystem.cpp<gh_stars>100-1000 #include "System/Input/InputSystem.h" #include "InputDevices/InputDevice_XBoxController.h" //------------------------------------------------------------------------- namespace KRG::Input { MouseInputState const InputSystem::s_emptyMouseState = ...
2,225
3,516
<reponame>rudylee/expo<filename>apps/bare-expo/ios/Pods/SDWebImage/SDWebImage/Private/SDInternalMacros.h /* * This file is part of the SDWebImage package. * (c) <NAME> <<EMAIL>> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ #impo...
786
623
// Copyright 2008 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 to in writ...
502
523
from .lookahead import Lookahead __all__ = ["Lookahead"]
18
1,500
<reponame>sebady/squbs /* * Copyright 2017 PayPal * * 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...
363
2,743
<gh_stars>1000+ from __future__ import unicode_literals from ..classes import MailerBackend class TestBackend(MailerBackend): """ User mailer backend to use with tests """ class_path = 'django.core.mail.backends.locmem.EmailBackend' label = 'Django local memory backend'
103
1,144
<gh_stars>1000+ package de.metas.printing.api; import de.metas.printing.model.I_AD_PrinterHW; import de.metas.printing.model.I_AD_PrinterHW_Calibration; import de.metas.printing.model.I_AD_PrinterHW_MediaTray; import de.metas.printing.model.I_AD_PrinterTray_Matching; import de.metas.printing.model.I_AD_Printer_Matchin...
557
2,449
/* * Copyright 2016 Pinterest, 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...
3,656
301
/****************************************************************** * * Copyright 2018 Samsung Electronics All Rights Reserved. * * * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Licens...
509
337
<reponame>tgeng/intellij-kotlin // RUNTIME_WITH_FULL_JDK // we intentionally do not convert interface to Kotlin fun interface // if it inherits from some other interface, because it is hard to deal // with default methods which were already converted to properties // (and in kotlin fun interface cannot have abstract p...
159
361
/** * @file Dct.cpp * * Discrete Cosine Transform (DCT) calculation. * * This file is part of the Aquila DSP library. * Aquila is free software, licensed under the MIT/X11 License. A copy of * the license is provided with the library in the LICENSE file. * * @package Aquila * @version 3.0.0-dev * @author <NA...
1,529
559
/** * Copyright (c) 2016-2018 Netflix, Inc. 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 requir...
4,868
990
# tag::TRASH_TYPES[] from typing import TypeVar, Generic class Refuse: # <1> """Any refuse.""" class Biodegradable(Refuse): """Biodegradable refuse.""" class Compostable(Biodegradable): """Compostable refuse.""" T_contra = TypeVar('T_contra', contravariant=True) # <2> class TrashCan(Generic[T_contra]...
413
4,538
/* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #include <stdlib.h> #include <string.h> #include <stdio.h> //#include <aos/osal_debug.h> #include <aos/ble.h> #include <yoc/hrs.h> #define TAG "HRS" enum { HRS_IDX_SVC, HRS_IDX_MEA_CHAR, HRS_IDX_MEA_VAL, HRS_IDX_MEA_CCC, HRS_IDX_BODY...
2,298
911
package com.linchaolong.apktoolplus.core; import javafx.animation.FadeTransition; import javafx.fxml.FXMLLoader; import javafx.geometry.Pos; import javafx.scene.Parent; import javafx.scene.layout.StackPane; import java.io.IOException; import java.net.URL; /** * Created by linchaolong on 2016/3/28. */ public class ...
690
460
from __future__ import absolute_import # settings_test.py from astrometry.net.settings_common import * ENABLE_SOCIAL = False DATABASES['default']['ENGINE'] = 'django.db.backends.sqlite3' DATABASES['default']['NAME'] = 'django.sqlite3'
91
679
<reponame>Grosskopf/openoffice /************************************************************** * * 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...
837
559
/*************************************************************************** * Copyright (c) 2016, <NAME>, <NAME>, <NAME> * * Copyright (c) 2016, QuantStack * * * * Distributed under the terms of ...
638
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport */ #import <OfficeImport/OfficeImport-Structs.h> #import <OfficeImport/XXUnknownSuperclass.h> @class SFUZipEntry; __attribute__((visibility("hidden"))) @interface CPBundleResourc...
224
335
{ "word": "Lift", "definitions": [ "Raise to a higher position or level.", "Move (one's eyes or face) to face upwards and look at someone or something.", "Move upwards; be raised.", "(of a cloud, fog, etc.) move upwards or away.", "Increase the volume of (one's voice)", ...
430
348
<filename>docs/data/leg-t2/009/00902276.json<gh_stars>100-1000 {"nom":"Saint-Victor-Rouzaud","circ":"2ème circonscription","dpt":"Ariège","inscrits":171,"abs":86,"votants":85,"blancs":11,"nuls":1,"exp":73,"res":[{"nuance":"REM","nom":"<NAME>","voix":43},{"nuance":"FI","nom":"<NAME>","voix":30}]}
124