max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
3,285 | <reponame>grybd/oneflow<filename>oneflow/user/data/data_reader.h
/*
Copyright 2020 The OneFlow 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.or... | 1,038 |
1,816 | from tests import TestCase
from src.masonite.notification import Notification, Notifiable
from src.masonite.mail import Mailable
from masoniteorm.models import Model
class User(Model, Notifiable):
"""User Model"""
__fillable__ = ["name", "email", "password"]
class WelcomeUserNotification(Notification):
... | 722 |
522 | package algs.example.gui.problems.segmentIntersection;
import algs.example.gui.canvas.ElementCanvas;
import algs.example.gui.canvas.NopDrawer;
import algs.example.gui.canvas.SegmentCanvas;
import algs.example.gui.generator.GeneratorPanel;
import algs.example.gui.model.IModelUpdated;
import algs.example.gui.problems.se... | 1,842 |
449 | <gh_stars>100-1000
from helper import *
from model.compgcn_conv import CompGCNConv
from model.compgcn_conv_basis import CompGCNConvBasis
class BaseModel(torch.nn.Module):
def __init__(self, params):
super(BaseModel, self).__init__()
self.p = params
self.act = torch.tanh
self.bceloss = torch.nn.BCELoss()
d... | 2,337 |
831 | <gh_stars>100-1000
/*
* Copyright (C) 2019 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
*
* Unl... | 7,631 |
686 | /*
* (C) Copyright IBM Corp. 2021.
*
* 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 w... | 1,361 |
808 | #include <ntddk.h>
// This implementation is derived from Hvpp by <NAME>
// - https://github.com/wbenny/hvpp
// Based on my benchmarks, this simple implementation beats other (often
// more complex) spinlock implementations - such as queue spinlocks, ticket
// spinlocks, MCS locks. The only difference betwee... | 512 |
852 | #ifndef _CALOMISCALIBTOOLSMC_H
#define _CALOMISCALIBTOOLSMC_H
// -*- C++ -*-
//
// Package: CaloMiscalibToolsMC
// Class: CaloMiscalibToolsMC
//
/**\class CaloMiscalibToolsMC CaloMiscalibToolsMC.cc CalibCalorimetry/CaloMiscalibToolsMC/src/CaloMiscalibToolsMC.cc
Description: Definition of CaloMiscalibToolsMC
... | 764 |
3,372 | <reponame>MC-JY/aws-sdk-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 compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apac... | 3,691 |
3,041 | <gh_stars>1000+
import pytest
from ethpm import (
Package,
)
from ethpm.dependencies import (
Dependencies,
)
from ethpm.exceptions import (
EthPMValidationError,
FailureToFetchIPFSAssetsError,
)
@pytest.fixture
def piper_coin_pkg(piper_coin_manifest, w3):
return Package(piper_coin_manifest, w3)
... | 569 |
1,909 | <filename>xchange-okcoin/src/test/java/org/knowm/xchange/okcoin/service/MetaDataFileTest.java
package org.knowm.xchange.okcoin.service;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.stream.Collectors;
import org.junit.Test;
import org.knowm.xchange.BaseEx... | 1,049 |
1,056 | <reponame>timfel/netbeans<gh_stars>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 Apache Lice... | 1,435 |
988 | <reponame>JoachimRohde/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, Vers... | 3,647 |
521 | <gh_stars>100-1000
#include <elle/nbd/Server.hh>
#include <chrono>
#include <fstream>
#include <boost/endian/conversion.hpp>
#include <boost/range/algorithm/find_if.hpp>
#include <elle/bitfield.hh>
#include <elle/enum.hh>
#include <elle/log.hh>
#include <elle/reactor/Scope.hh>
#include <elle/reactor/network/Error.hh... | 10,279 |
650 | <reponame>radish2012/flask-restful-example
from datetime import datetime
from app.models.model import User
from app.utils.core import db
def my_job():
print(datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
def db_query():
with db.app.app_context():
data = db.session.query(User).first()
print(da... | 133 |
416 | <filename>src/main/java/com/tencentcloudapi/cwp/v20180228/models/AssetUserKeyInfo.java<gh_stars>100-1000
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the... | 1,322 |
703 | #pragma once
#include <Core/World/Component.h>
/// \brief Base class for settings components, of which only one per type should exist in each world.
///
/// Settings components are used to store global scene specific settings, e.g. for physics it would be the scene gravity,
/// for rendering it might be the time of d... | 413 |
5,903 | <gh_stars>1000+
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2018 by <NAME> : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache L... | 1,436 |
419 | #pragma once
#include "VisualGraph_StateMachineGraph.h"
#include "VisualGraph_FlowGraph.h"
//-------------------------------------------------------------------------
namespace KRG::VisualGraph
{
// Helper to unsure we can maintain selection after a undo/redo
struct SelectedNode
{
SelectedNode( Ba... | 4,707 |
2,023 | optparser = OptionParser()
...
optparser.disable_interspersed_args()
(opts, argv) = optparser.parse_args()
## argv now has the options to pass to the second program
| 51 |
445 | #include "multiverso/blob.h"
#include "multiverso/util/allocator.h"
#include "multiverso/util/log.h"
namespace multiverso {
Blob::Blob(size_t size) : size_(size) {
CHECK(size > 0);
data_ = Allocator::Get()->Alloc(size);
}
// Construct from external memory. Will copy a new piece
Blob::Blob(const void* data, size... | 449 |
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 ... | 6,385 |
721 | <gh_stars>100-1000
/*
* [The "BSD licence"]
* Copyright (c) 2010 <NAME> (JesusFreke)
* 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 a... | 2,574 |
8,851 | <gh_stars>1000+
# -*- coding: utf-8 -*-
from django.db import migrations
def grant_instance_level_collection_management_permissions(apps, schema_editor):
"""
Give the groups who currently manage all collections permission to manage root collections
"""
Collection = apps.get_model('wagtailcore.Collecti... | 999 |
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.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.faste... | 983 |
575 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/extensions/settings_overridden_dialog_view.h"
#include "base/path_service.h"
#include "base/strings/utf_string_conversi... | 4,369 |
839 | from typing import Any, Optional
from baserow.core.models import Application, TrashEntry, Group
from baserow.core.registries import application_type_registry
from baserow.core.signals import application_created, group_restored
from baserow.core.trash.registries import TrashableItemType, trash_item_type_registry
clas... | 997 |
4,640 | # 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 not u... | 3,591 |
2,127 | <filename>spring-boot-freemarker/src/main/java/com/lance/freemaker/web/system/SystemLoginController.java
package com.lance.freemaker.web.system;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.an... | 657 |
1,144 | /** Generated Model - DO NOT CHANGE */
package org.compiere.model;
import java.sql.ResultSet;
import java.util.Properties;
/** Generated Model for C_Mail
* @author Adempiere (generated)
*/
@SuppressWarnings("javadoc")
public class X_C_Mail extends org.compiere.model.PO implements I_C_Mail, org.compiere.model.I_Pe... | 3,620 |
13,648 | // Include MicroPython API.
#include "py/runtime.h"
// Declare the function we'll make available in Python as cppexample.cppfunc().
extern mp_obj_t cppfunc(mp_obj_t a_obj, mp_obj_t b_obj);
| 68 |
5,169 | <reponame>Gantios/Specs<filename>Specs/d/3/8/Quicksilver/1.0.5/Quicksilver.podspec.json<gh_stars>1000+
{
"name": "Quicksilver",
"version": "1.0.5",
"summary": "Quicksilver is an iOS/macOS/tvOS/watchOS framework that extends the collection classes and makes them easier to work with.",
"description": "Quicksilver... | 455 |
1,330 | <gh_stars>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 Apache License, Version 2.0 (the
* ... | 2,212 |
684 | <filename>modules/activiti-explorer/src/main/java/org/activiti/explorer/ui/custom/TabbedSelectionWindow.java
/* 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... | 2,212 |
540 | package com.mooveit.fakeit.viewmodels;
import com.mooveit.fakeit.models.ChuckNorrisFactsData;
import com.mooveit.library.Fakeit;
public class ChuckNorrisFactsViewModel extends BaseViewModel {
private ChuckNorrisFactsData mData;
public ChuckNorrisFactsViewModel(ChuckNorrisFactsData data) {
this.mData... | 242 |
3,269 | <filename>C++/insert-interval.cpp
// Time: O(n)
// Space: O(1)
class Solution {
public:
vector<vector<int>> insert(vector<vector<int>>& intervals, vector<int>& newInterval) {
size_t i = 0;
vector<vector<int>> result;
// Insert intervals appeared before newInterval.
while (i < size(... | 417 |
468 | <gh_stars>100-1000
"""An implementation of ESIM Model."""
import typing
import torch
import torch.nn as nn
from torch.nn import functional as F
from matchzoo.engine.param_table import ParamTable
from matchzoo.engine.param import Param
from matchzoo.engine.base_model import BaseModel
from matchzoo.modules import RNNDr... | 3,319 |
331 | package am.gaut.android.toolbarbutton;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.content.Context;
import android.graphics.Rect;
import android.os.Build;
import android.support.annotation.Nullable;
import android.support.design.widget.AppBarLayout;
import androi... | 4,629 |
1,511 | /*
* Advanced Linux Sound Architecture - ALSA - Driver
* Copyright (c) 1994-2003 by <NAME> <<EMAIL>>,
* <NAME> <<EMAIL>>
* | 71 |
60,067 | <filename>benchmarks/sparse/utils.py
import torch
import functools
import random
import operator
import numpy as np
import time
# shim for torch.cuda.Event when running on cpu
class Event(object):
def __init__(self, enable_timing):
pass
def record(self):
self.time = time.perf_counter()
de... | 651 |
937 | package com.oath.cyclops.matching;
import java.util.function.Function;
public interface Sealed2<T1,T2> {
public <R> R fold(Function<? super T1, ? extends R> fn1, Function<? super T2, ? extends R> fn2);
}
| 79 |
1,199 | <reponame>davidlrichmond/macports-ports<gh_stars>1000+
package org.jd.gui.view.component;
import org.jd.gui.util.io.FileUtils;
import org.jd.gui.util.sys.SystemUtils;
import javax.swing.*;
import java.awt.*;
import java.io.File;
import java.io.FilenameFilter;
/**
* Created by jianhua.fengjh on 27/11/2015.
*/
publi... | 1,448 |
1,367 | <reponame>developer-inspur/SwissArmyKnife
package com.wanjian.sak;
import android.app.Application;
import com.wanjian.sak.config.Config;
/**
* Created by wanjian on 2017/2/20.
*/
public class SAK {
public static void init(Application application, Config config) {
}
private SAK() {
}
public... | 134 |
578 | /*
* Copyright (c) 2003-2021 <NAME> <<EMAIL>>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
/** \file winutils.cpp
*
* Con... | 5,183 |
494 | <reponame>MaksTuev/ferro
package com.agna.ferro.sample.ui.screen.catalog;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.Toast;
import com... | 1,377 |
5,119 | <filename>tests/codegen/call_system.cpp
#include "common.h"
namespace bpftrace {
namespace test {
namespace codegen {
TEST(codegen, call_system)
{
test(" kprobe:f { system(\"echo %d\", 100) }",
NAME,
false);
}
} // namespace codegen
} // namespace test
} // namespace bpftrace
| 117 |
379 | <filename>datavec-data/datavec-data-image/src/test/java/org/datavec/image/transform/ResizeImageTransformTest.java
package org.datavec.image.transform;
import org.bytedeco.javacv.Frame;
import org.datavec.image.data.ImageWritable;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEqu... | 667 |
729 | <reponame>probonopd/imagewriter<filename>powersaveblocker.cpp<gh_stars>100-1000
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright (C) 2020 Raspberry Pi (Trading) Limited
*/
#include "powersaveblocker.h"
#include <QDebug>
#include <string>
PowerSaveBlocker::PowerSaveBlocker(QObject *parent) :
QObje... | 597 |
409 | #!/usr/bin/env python2
"""Execute the tests for micro_razers.
The golden test outputs are generated by the script generate_outputs.sh.
You have to give the root paths to the source and the binaries as arguments to
the program. These are the paths to the directory that contains the 'projects'
directory.
Usage: run_... | 2,902 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-2qh3-cx4w-cf3x",
"modified": "2022-05-13T01:13:58Z",
"published": "2022-05-13T01:13:58Z",
"aliases": [
"CVE-2018-18809"
],
"details": "The default server implementation of TIBCO Software Inc.'s TIBCO JasperReports Library, TIBCO JasperReports Library Community ... | 1,121 |
678 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "UIFont.h"
@interface UIFont (Extend)
+ (void)loadOldFontSet:(unsigned int)arg1;
+ (void)copyFontSetToLocalInfo;
+ (void)setIpadClassic:(_Bool)arg1;
+ (unsigned int)getWebviewFon... | 554 |
1,080 | <filename>src/protocol/admin/format.c<gh_stars>1000+
#include "format.h"
#include <cc_print.h>
size_t
print_stats(char *buf, size_t cap, struct metric *metrics, unsigned int nmetric)
{
size_t offset = 0;
/* TODO: report error if running out of space in buf */
for (int i = 0; i < nmetric; ++i) {
o... | 215 |
309 | """Complex type annotations."""
from pathlib import Path
from typing import List, Tuple, Union
import aria2p
PathOrStr = Union[Path, str]
OptionsType = Union["aria2p.options.Options", dict]
OperationResult = Union[bool, "aria2p.client.ClientException"]
CallsType = List[Tuple[str, List[str], Union[str, int]]]
Multica... | 120 |
2,056 | <filename>driver/c++/src/driver_api.cc
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/poll.h>
#include <sys/time.h>
#include <sys/shm.h>
#include <errno.h>
#include <iostream>
#include <vector>
#include <string>
#include "qconf_log.h"
#include "qcon... | 3,427 |
1,679 | /**
* \file
*
* \brief SPI related functionality declaration.
*
* Copyright (C) 2015 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions ar... | 2,528 |
1,444 |
package mage.cards.b;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.BeginningOfEndStepTriggeredAbility;
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.condition.Condition;... | 895 |
5,535 | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2013 VMware, Inc. or its affiliates.
//
// @filename:
// CXformJoin2IndexApply.cpp
//
// @doc:
// Implementation of Inner/Outer Join to Apply transform
//-----------------------------------------------... | 4,025 |
335 | {
"word": "Pinpoint",
"definitions": [
"Find or identify with great accuracy or precision."
],
"parts-of-speech": "Verb"
} | 61 |
852 | /* L2TauIsolationInfo Class
Holds output of the Tau L2 IsolationProducer
Author: <NAME>
University of Wisconsin-Madison
e-mail: <EMAIL>
*/
#ifndef L2TAUISOLATION_INFO_H
#define L2TAUISOLATION_INFO_H
#include <vector>
namespace reco {
class L2TauIsolationInfo {
public:
L2TauIsolationInfo() {
ecalIsolE... | 933 |
1,178 | /*
* Copyright 2020 Makani Technologies 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 ... | 418 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
// These are used by FAST Web Search for host name anchoring.
// NB! Should be changed to uppercase once the functionality is implemented!!
static const char *ANCHOR_START_OF_HOST = "StArThOsT";
sta... | 185 |
1,232 | <reponame>JunZCn/DBus<gh_stars>1000+
{
"admin": [
{ "name": "resource-manage", "id": "app.components.navigator.resourceManage","text":"数据源管理","icon": "hdd"},
{ "name": "project-manage", "id": "app.components.navigator.projectManage","text":"项目管理","icon": "appstore-o"},
{ "name": "config-mana... | 544 |
568 | <filename>src/test/java/com/fincatto/documentofiscal/nfe310/classes/nota/NFInfoProdutorRuralReferenciadaTest.java
package com.fincatto.documentofiscal.nfe310.classes.nota;
import com.fincatto.documentofiscal.DFUnidadeFederativa;
import org.junit.Assert;
import org.junit.Test;
public class NFInfoProdutorRuralReferenci... | 3,373 |
11,396 | import base64
import os
from awx.main.utils import get_awx_version
def csp(request):
return {'csp_nonce': base64.encodebytes(os.urandom(32)).decode().rstrip()}
def version(request):
context = getattr(request, 'parser_context', {})
return {
'version': get_awx_version(),
'tower_version': ... | 195 |
2,338 | //===-- Definitions of common POSIX types ---------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 275 |
852 | #ifndef FWCore_Framework_IntersectingIOVRecordIntervalFinder_h
#define FWCore_Framework_IntersectingIOVRecordIntervalFinder_h
// -*- C++ -*-
//
// Package: Framework
// Class : IntersectingIOVRecordIntervalFinder
//
/**\class IntersectingIOVRecordIntervalFinder IntersectingIOVRecordIntervalFinder.h FWCore/Fram... | 675 |
1,079 | <filename>ReactUbuntu/runtime/src/ubuntudatepickermanager.h
/**
* Copyright (C) 2016, Canonical Ltd.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in th... | 443 |
1,577 | from abc import (ABC, abstractmethod)
class Evaluator(ABC):
"""Evaluates predictions for a set of scenes."""
@abstractmethod
def process(self, scenes):
pass
| 64 |
1,587 | package io.reflectoring.staticdata;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import java.util.List;
@Component
@ConfigurationProperties("static")
class QuotesProperties {
private final List<Quote> quotes;
QuotesProperties(L... | 151 |
1,738 | <reponame>jeikabu/lumberyard<filename>dev/Code/Sandbox/Editor/SurfaceInfoPicker.h
/*
* 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... | 3,903 |
66,985 | <gh_stars>1000+
/*
* Copyright 2012-2021 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | 1,292 |
367 | from utils import utils
def write_rows(rows, domain, base_domain, scanner, csv_writer, meta=None):
# If we didn't get any info, we'll still output information about why the scan failed.
if rows is None:
empty_row = [None] * len(scanner.headers)
rows = [empty_row]
# Always output Domain a... | 608 |
2,936 | ["gli", "dove", "a", "fossero", "stiano", "alle", "avevano", "hanno", "mie", "sar\u00f2", "suoi", "stai", "questo", "un", "nei", "anche", "facessimo", "starebbe", "stemmo", "questa", "stesse", "sua", "dov", "o", "dallo", "ero", "dell", "starei", "stando", "negl", "fossi", "all", "sarai", "di", "suo", "far\u00f2", "tu",... | 1,214 |
657 | # Generated by Django 2.1 on 2018-08-24 09:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("mainapp", "0084_contributor_contribution_type"),
]
operations = [
migrations.RemoveField(model_name="contributor", name="commodities",),
... | 217 |
382 | <reponame>pemmasanikrishna/clouddriver<gh_stars>100-1000
/*
* Copyright 2021 Netflix, 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-... | 1,336 |
1,034 | __author__ = '<NAME>'
import os
import sys
import fnmatch
import matplotlib.pyplot as plt
sys.path.append("../../modelzoo/")
from generators import *
from multiprocessing.dummy import Pool
from urllib import urlretrieve
def prep_folders():
if not os.path.isdir("data"):
os.mkdir("data")
if not os.path.... | 1,970 |
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 "base/run_loop.h"
#include "build/build_config.h"
#include "components/signin/core/browser/account_info.h"
#include "components/signin/core/brows... | 11,393 |
1,179 | <reponame>RavenSpear/optee_os<gh_stars>1000+
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
*/
#include <stdlib.h>
#include <string.h>
char *strdup(const char *s)
{
size_t l = strlen(s) + 1;
char *p = malloc(l);
if (p)
memcpy(p, s, l);
return p;
}
| 144 |
355 | <reponame>chefmoensch/TomP2P<gh_stars>100-1000
package net.tomp2p.relay.android.gcm;
import java.util.ArrayList;
import java.util.Collection;
import net.tomp2p.futures.FutureResponse;
import net.tomp2p.message.Message;
import net.tomp2p.message.Message.Type;
import net.tomp2p.p2p.Peer;
import net.tomp2p.peers.PeerAdd... | 1,025 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace Naming... | 961 |
5,718 | <reponame>raymondmuller/vue-strap
{
"name": "vue-strap",
"homepage": "https://github.com/yuche/vue-strap",
"authors": [
"yuche <<EMAIL>>"
],
"description": "Boostrap components built with Vue.js",
"main": [
"dist/vue-strap.js",
"dist/vue-strap.js.map",
"dist/vue-strap.min.js"
],
"moduleT... | 288 |
887 | <reponame>trajchen/javers
package org.javers.core.graph;
import org.javers.core.metamodel.object.GlobalId;
import org.javers.core.metamodel.object.ValueObjectId;
import org.javers.core.metamodel.object.ValueObjectIdWithHash;
import org.javers.core.metamodel.property.Property;
import org.javers.core.metamodel.type.Mana... | 1,082 |
485 | <reponame>708yamaguchi/MaixPy_scripts
# This file is part of MaixPY
# Copyright (c) sipeed.com
#
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license.php
#
from network_espat import wifi
wifi.reset()
print(wifi.at_cmd("AT\r\n"))
print(wifi.at_cmd("AT+GMR\r\n"))
'''
>>> reset...
b'\r\n... | 272 |
370 | <filename>audit/projects/k8s-staging-sp-operator/services/logging/logs.json
[
"projects/k8s-staging-sp-operator/logs/cloudaudit.googleapis.com%2Factivity",
"projects/k8s-staging-sp-operator/logs/cloudbuild"
]
| 88 |
692 | <reponame>utdsimmons/ohpc
/*
Copyright (c) 2013, Intel Corporation
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions an... | 4,903 |
764 | <gh_stars>100-1000
{
"symbol": "YOO",
"address": "0x1D4105534dA120DA243281cfC3f26Aaf038E2D6f",
"overview":{
"en": "Yooba is a decentralized e-commerce system based on blockchain technology, where anyone can securely and privately provide services and purchase services",
"zh": "一个去中心化的,全球性的,安全的,隐私的... | 504 |
1,738 | <filename>dev/Code/Framework/GridMate/GridMate/Replica/Interest/InterestQueryResult.h
/*
* 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 ... | 358 |
365 | <gh_stars>100-1000
// Copyright 2013 Blender Foundation. All rights reserved.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any la... | 667 |
2,728 | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import json
SUPPORTED_VERSIONS = {"1.0"}
class AuthenticationRecord(object):
"""Non-secret account information for an authenticated user
This class enables ... | 1,107 |
1,178 | <reponame>leozz37/makani
/*
* Copyright 2020 Makani Technologies 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 re... | 476 |
7,892 | <gh_stars>1000+
/* A program to test real 2d forward and inverse fast fourier transform routines */
#include <stdio.h>
#include <stdlib.h>
#include <fp.h>
#include <math.h>
#include "fftlib.h"
#include "fftext.h"
#include "fft2d.h"
#if macintosh
#include <timer.h>
#endif
#define BIPRAND(a) (2.0/(RAND_MAX+1.0)*a-1.... | 958 |
325 | <gh_stars>100-1000
// Tencent is pleased to support the open source community by making Mars available.
// Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
// Licensed under the MIT License (the "License"); you may not use this file except in
// compliance with the License. You may obtain a... | 936 |
376 | <gh_stars>100-1000
import dataclasses
import pytest
import numpy as np
import whynot as wn
from whynot.gym import envs
from spec_list import spec_list
# This runs a smoketest on each official registered env. We may want
# to try also running environments which are not officially registered
# envs.
@pytest.mark.param... | 1,666 |
809 | /**
* @file
* @brief Adoptaion of NRF24 library to STM32F4 Cube
*
* @date 27.06.18
* @author <NAME>
*/
#ifndef NRF24_STM32_CUBE
#define NRF24_STM32_CUBE
#include <stdint.h>
extern int nrf24_hw_init(void);
extern void nrf24_ce_digitalWrite(uint8_t state);
extern void nrf24_csn_digitalWrite(uint8_t state);
/... | 278 |
387 | """
##################################################################################################
# Copyright Info : Copyright (c) <NAME> @ Hikvision Research Institute. All rights reserved.
# Filename : east.py
# Abstract : The main pipeline definition of EAST model
# Current Version: 1.0... | 611 |
2,111 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2016
// <NAME> Codeplay Software Ltd.
// <NAME> Codeplay Software Ltd.
// <NAME> Codeplay Software Ltd.
// Contact: <<EMAIL>>
// <NAME> <<EMAIL>>
//
// This Source Code Form is subject to the terms of the M... | 1,528 |
379 | <reponame>rychallener/george<gh_stars>100-1000
# -*- coding: utf-8 -*-
from __future__ import division, print_function
__all__ = ["HODLRSolver"]
import numpy as np
from .basic import BasicSolver
from ._hodlr import HODLRSolver as HODLRSolverInterface
class HODLRSolver(BasicSolver):
def __init__(self, kernel,... | 648 |
14,668 | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ash/policy/reporting/metrics_reporting/audio/audio_events_observer.h"
#include <utility>
#include "chromeos/services/cros_healt... | 379 |
1,350 | <reponame>billwert/azure-sdk-for-java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.dataprotection.implementation;
import com.azure.core.annotation.BodyParam;
import com.azur... | 30,433 |
333 | __all__ = ['statannot']
from .statannot import add_stat_annotation
from .statannot import stat_test
from ._version import __version__
| 39 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.