identifier stringlengths 42 383 | collection stringclasses 1
value | open_type stringclasses 1
value | license stringlengths 0 1.81k | date float64 1.99k 2.02k ⌀ | title stringlengths 0 100 | creator stringlengths 1 39 | language stringclasses 157
values | language_type stringclasses 2
values | word_count int64 1 20k | token_count int64 4 1.32M | text stringlengths 5 1.53M | __index_level_0__ int64 0 57.5k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/babusoundrarajan/scichart.wpf.examples/blob/master/v5.x/Examples/SciChart.Examples.ExternalDependencies/Common/IsChartTypeConverter.cs | Github Open Source | Open Source | MIT | 2,020 | scichart.wpf.examples | babusoundrarajan | C# | Code | 153 | 344 | // *************************************************************************************
// SCICHART® Copyright SciChart Ltd. 2011-2018. All rights reserved.
//
// Web: http://www.scichart.com
// Support: support@scichart.com
// Sales: sales@scichart.com
//
// IsChartTypeConverter.cs is part of the SCICHART® ... | 30,049 |
https://github.com/c080609a/c80_news_tz/blob/master/app/assets/stylesheets/c80_news_tz/backend/notices.scss | Github Open Source | Open Source | MIT | null | c80_news_tz | c080609a | SCSS | Code | 102 | 354 | body.new.admin_notices, body.edit.admin_notices {
/* фото в галерее */
li.has_many_container.gphotos {
padding-top: 0;
> h3 {
display: none;
}
fieldset {
display: inline-block;
float: left;
position: relative;
width: 20%;
height: 201px;
ol {
li ... | 43,506 |
https://github.com/CbIPOKGIT/database-server/blob/master/app/Models/Resources/ReportColumn.php | Github Open Source | Open Source | MIT | null | database-server | CbIPOKGIT | PHP | Code | 27 | 93 | <?php
namespace App\Models\Resources;
use Illuminate\Database\Eloquent\Model;
class ReportColumn extends Model
{
public function productColumns()
{
return $this->where("is_product", 1);
}
public function domenColumns()
{
return $this->where("is_product", 0);
}
}
| 34,542 |
https://github.com/siempredelao/Distance-From-Me-Android/blob/master/app/src/test/java/gc/david/dfm/address/domain/GetAddressCoordinatesByNameInteractorTest.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | Distance-From-Me-Android | siempredelao | Kotlin | Code | 381 | 1,389 | /*
* Copyright (c) 2019 David Aguiar Gonzalez
*
* 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 ... | 43,296 |
https://github.com/Edufacr/University-DB1-Project/blob/master/DataBaseScripts/Queries/SP_getLegalOwnerInfoByDocValue.sql | Github Open Source | Open Source | MIT | null | University-DB1-Project | Edufacr | SQL | Code | 87 | 257 | SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
-- TODO Input validations
-- TODO Transaction
CREATE OR ALTER PROCEDURE [dbo].[S... | 31,301 |
https://github.com/maistra/origin/blob/master/pkg/oc/clusteradd/cmd.go | Github Open Source | Open Source | Apache-2.0 | 2,019 | origin | maistra | Go | Code | 670 | 2,618 | package clusteradd
import (
"fmt"
"os"
"path"
"strings"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/kubernetes/pkg/kubectl/cmd/templates"
"k8s.io/kubernetes/pkg/kubectl/genericclioptions"
cmdutil "github.com/openshift/origin/pkg/cmd/util"
"github.com/open... | 44,526 |
https://github.com/mulesoft-consulting/sumtotal-connector/blob/master/src/main/java/com/sumtotalsystems/sumtotal7/sumtotalbo/SecurityRolePropertyBase.java | Github Open Source | Open Source | Apache-2.0 | null | sumtotal-connector | mulesoft-consulting | Java | Code | 871 | 2,447 |
package com.sumtotalsystems.sumtotal7.sumtotalbo;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotat... | 38,790 |
https://github.com/ekino/jcv-db/blob/master/jcv-db-mongo/build.gradle.kts | Github Open Source | Open Source | MIT | 2,021 | jcv-db | ekino | Kotlin | Code | 156 | 735 | import org.jetbrains.dokka.gradle.DokkaTask
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm")
`java-library`
signing
jacoco
id("org.jmailen.kotlinter") version "2.1.1"
id("org.jetbrains.dokka") version "0.9.18"
}
configurations {
implementation {
resolu... | 21,584 |
https://github.com/Dariop14/TUBANDA/blob/master/ProyectoMusicaNuevo/nuevoPerfil.php | Github Open Source | Open Source | Apache-2.0 | null | TUBANDA | Dariop14 | PHP | Code | 250 | 895 | <html lang="es">
<head>
<meta charset="utf-8" />
<title>Nuevo Perfil</title>
<link rel="stylesheet" href="css/masterEstilos.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript">
function desplegar(){
document.getElemen... | 30,005 |
https://github.com/dollarshaveclub/avro-schema-registry/blob/master/app/api/config_api.rb | Github Open Source | Open Source | MIT | null | avro-schema-registry | dollarshaveclub | Ruby | Code | 153 | 500 | # frozen_string_literal: true
class ConfigAPI < Grape::API
include BaseAPI
rescue_from Compatibility::InvalidCompatibilityLevelError do
invalid_compatibility_level!
end
rescue_from :all do |e|
Rollbar.error(e) if defined?(Rollbar) && Rails.env.production?
server_error!
end
helpers do
def... | 6,632 |
https://github.com/wisrovi/Server-Hospital-Smart-Bracelet/blob/master/authentication/settings.py | Github Open Source | Open Source | MIT | null | Server-Hospital-Smart-Bracelet | wisrovi | Python | Code | 280 | 1,406 | """
Django settings for authentication project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
impor... | 40,001 |
https://github.com/leeleavitt/procPharm/blob/master/python_packages/python_pharmer/python_pharmer/nd2reader/label_map.py | Github Open Source | Open Source | MIT | null | procPharm | leeleavitt | Python | Code | 625 | 1,874 | import six
import struct
import re
class LabelMap(object):
"""Contains pointers to metadata. This might only be valid for V3 files.
"""
def __init__(self, raw_binary_data):
self._data = raw_binary_data
self._image_data = {}
def _get_location(self, label):
try:
la... | 29,519 |
https://github.com/netlabcode/PyExpose/blob/master/pycrypto/lib/Crypto/Util/asn1.py | Github Open Source | Open Source | MIT | null | PyExpose | netlabcode | Python | Code | 2,951 | 7,802 | # -*- coding: ascii -*-
#
# Util/asn1.py : Minimal support for ASN.1 DER binary encoding.
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the extent that dedication to the public domain is not available,
# everyone is granted... | 31,505 |
https://github.com/bbc/programmes-pages-service/blob/master/src/Domain/Entity/Group.php | Github Open Source | Open Source | Apache-2.0 | 2,021 | programmes-pages-service | bbc | PHP | Code | 10 | 31 | <?php
namespace BBC\ProgrammesPagesService\Domain\Entity;
abstract class Group extends CoreEntity
{
}
| 20,552 |
https://github.com/uk-gov-mirror/ministryofjustice.opg-lpa-datamodels/blob/master/src/Opg/Lpa/DataModel/Lpa/Formatter.php | Github Open Source | Open Source | MIT | 2,019 | ministryofjustice.opg-lpa-datamodels | uk-gov-mirror | PHP | Code | 272 | 701 | <?php
namespace Opg\Lpa\DataModel\Lpa;
use InvalidArgumentException;
/**
* Static classes used for formatting values, ready for the end user.
*
* Class Formatter
* @package Opg\Lpa\DataModel\Lpa
*/
class Formatter
{
/**
* Number of characters that fit on a single row, in an instructions or preferences ... | 6,168 |
https://github.com/Hason-Cheung/py-futu-api/blob/master/futu/common/pb/Qot_GetUserSecurityGroup_pb2.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | py-futu-api | Hason-Cheung | Python | Code | 524 | 3,733 | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: Qot_GetUserSecurityGroup.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf imp... | 20,350 |
https://github.com/lfuelling/gitlab/blob/master/app/assets/javascripts/members/components/filter_sort/sort_dropdown.vue | Github Open Source | Open Source | MIT | null | gitlab | lfuelling | Vue | Code | 153 | 684 | <script>
import { mapState } from 'vuex';
import { GlSorting, GlSortingItem } from '@gitlab/ui';
import { visitUrl } from '~/lib/utils/url_utility';
import { parseSortParam, buildSortHref } from '~/members/utils';
import { FIELDS } from '~/members/constants';
export default {
name: 'SortDropdown',
components: { Gl... | 4,575 |
https://github.com/uk-gov-mirror/hmcts.ia-case-api/blob/master/src/test/java/uk/gov/hmcts/reform/iacaseapi/domain/handlers/presubmit/SubmitAppealPreparerTest.java | Github Open Source | Open Source | MIT | 2,021 | hmcts.ia-case-api | uk-gov-mirror | Java | Code | 299 | 2,178 | package uk.gov.hmcts.reform.iacaseapi.domain.handlers.presubmit;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;
impor... | 12,756 |
https://github.com/cpriest/SnapLinksPlus/blob/master/src/lib/Configs.js | Github Open Source | Open Source | MIT | 2,022 | SnapLinksPlus | cpriest | JavaScript | Code | 576 | 2,258 | /*
* This code is a modification of webextensions-lib-configs which contains this license:
* license: The MIT License, Copyright (c) 2016 YUKI "Piro" Hiroshi
* original:
* http://github.com/piroor/webextensions-lib-configs
*/
'use strict';
class Configs {
constructor(aDefaults) {
this.lastValues = {};
t... | 14,518 |
https://github.com/iancmyers/doorman/blob/master/app/util.js | Github Open Source | Open Source | MIT | 2,018 | doorman | iancmyers | JavaScript | Code | 95 | 301 | module.exports = {
announceChoices: function (twiml, choices) {
twiml.gather({ numDigits: 1 }, function () {
for (var key in choices) {
this.say(choices[key].message);
}
});
return twiml;
},
placeCalls: function (twiml, phones) {
twiml.dial(function () {
for (var i = 0;... | 35,318 |
https://github.com/tgjones/rasterizr/blob/master/src/Rasterizr/Pipeline/Rasterizer/FragmentQuad.cs | Github Open Source | Open Source | MIT | 2,022 | rasterizr | tgjones | C# | Code | 52 | 125 | namespace Rasterizr.Pipeline.Rasterizer
{
/// <summary>
/// Stores 2x2 fragments. Used by the rasterizer to process quads of fragments, instead
/// of individual fragments, so that the pixel shader can access partial derivatives.
/// </summary>
internal struct FragmentQuad
{
public Fragment Fragment0;
public... | 41,983 |
https://github.com/jimbach/ctp/blob/master/src/libctp/extractors/energyextractor.h | Github Open Source | Open Source | Apache-2.0 | null | ctp | jimbach | C | Code | 284 | 1,401 | #ifndef VOTCA_CTP_ENERGYEXTRACTOR_H
#define VOTCA_CTP_ENERGYEXTRACTOR_H
#include <votca/tools/propertyiomanipulator.h>
#include <votca/ctp/qmcalculator.h>
#include <boost/format.hpp>
namespace votca { namespace ctp {
class EnergyExtractor : public QMCalculator
{
public:
EnergyExtractor() { };
~EnergyExtract... | 36,540 |
https://github.com/Abendstolz/rust/blob/master/src/test/mir-opt/simplify_match.rs | Github Open Source | Open Source | ECL-2.0, Apache-2.0, MIT-0, MIT | 2,022 | rust | Abendstolz | Rust | Code | 27 | 65 | #[inline(never)]
fn noop() {}
// EMIT_MIR rustc.main.ConstProp.diff
fn main() {
match { let x = false; x } {
true => noop(),
false => {},
}
}
| 17,991 |
https://github.com/Swaelo/mmo-server-2.0/blob/master/Server/Networking/PacketTypes.cs | Github Open Source | Open Source | MIT | 2,019 | mmo-server-2.0 | Swaelo | C# | Code | 211 | 554 | // ================================================================================================================================
// File: PacketTypes.cs
// Description: Defines all the different types of packets which can be sent over the network
// Author: Harley Laurie https://www.github.com/Swaelo/
/... | 16,074 |
https://github.com/Ploffi/utils.js/blob/master/src/is/__tests__/array.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | utils.js | Ploffi | JavaScript | Code | 20 | 94 | import isArray from '../array';
describe('utils/is/array', () => {
it('test', () => {
expect(isArray([])).toBe(true);
expect(isArray([1, 2, 3])).toBe(true);
expect(isArray('test')).toBe(false);
expect(isArray(null)).toBe(false);
});
});
| 30,453 |
https://github.com/zsjdxc251/lesson-chapter/blob/master/lesson-open/chapter-interface-design/src/main/java/com/lesson/open/interfaces/design/chain/ChainSample.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | lesson-chapter | zsjdxc251 | Java | Code | 117 | 488 | package com.lesson.open.interfaces.design.chain;
import com.google.common.collect.Lists;
import java.util.LinkedList;
/**
* @author zhengshijun
* @version created on 2018/9/25.
*/
public class ChainSample {
public static void main(String[] args){
DefualtExecutorChain executorChain = new DefualtExec... | 27,478 |
https://github.com/CondeNastDigital/Sitemap/blob/master/src/SitemapEvent.php | Github Open Source | Open Source | MIT | 2,018 | Sitemap | CondeNastDigital | PHP | Code | 25 | 96 | <?php
namespace Bolt\Extension\Bolt\Sitemap;
use Bolt\Collection\MutableBag;
use Symfony\Component\EventDispatcher\GenericEvent;
class SitemapEvent extends GenericEvent
{
/**
* @return MutableBag
*/
public function getLinks()
{
return $this->subject;
}
}
| 19,069 |
https://github.com/kadekillary/mechmarket-alert/blob/master/mma/alert.py | Github Open Source | Open Source | MIT | 2,021 | mechmarket-alert | kadekillary | Python | Code | 110 | 425 | from typing import Set
from .config import reddit_config, twilio_config
from .helpers import contains_any
from .reddit import MechMarket
from .sms import SMS
class MechMarketAlert:
def __init__(
self,
keywords: Set[str],
twilio_number: str,
my_number: str,
alert_size: int ... | 2,506 |
https://github.com/guoxuivy/flutter-miniframe/blob/master/lib/net/auth_interceptors.dart | Github Open Source | Open Source | MulanPSL-1.0 | 2,020 | flutter-miniframe | guoxuivy | Dart | Code | 97 | 357 | import 'dart:collection';
import 'package:dio/dio.dart';
import 'package:agent/boot.dart';
import 'package:agent/utils/utils.dart';
/// 认证拦截
class AuthInterceptors extends InterceptorsWrapper {
static const String _secret = "mymini";
@override
Future onRequest(RequestOptions options) {
String token = Boot... | 20,322 |
https://github.com/screw-pack/grandpybot/blob/master/grandpybot_app/tests/test_answer.py | Github Open Source | Open Source | MIT | null | grandpybot | screw-pack | Python | Code | 157 | 577 | from grandpybot_app import Seeker
import requests
class MockResponse:
def __init__(self, result_type):
"""Mocks the Requests response object"""
if result_type == 'loc':
self.results = {"candidates": [
{"formatted_address": "Paris, France",
... | 20,277 |
https://github.com/phpc0de/idea-android/blob/master/project-system/src/org/jetbrains/android/AndroidStartupManager.kt | Github Open Source | Open Source | Apache-2.0 | null | idea-android | phpc0de | Kotlin | Code | 215 | 744 | // Copyright 2000-2018 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.jetbrains.android
import com.android.tools.idea.AndroidStartupActivity
import com.intellij.ProjectTopics
import com.intellij.facet.Facet
import com.intellij.facet.Fac... | 1,768 |
https://github.com/vittoriozamboni/dashboard-ui-style/blob/master/style/ui/_page.scss | Github Open Source | Open Source | MIT | null | dashboard-ui-style | vittoriozamboni | SCSS | Code | 99 | 462 | $ui-page-padding: 15px !default;
$ui-dashboard-header-height: 46px !default;
$ui-dashboard-footer-height: 46px !default;
$ui-page-header-height: 68px !default;
$ui-page-header-margin-bottom: 4px !default;
.ui-page__container {
display: flex;
flex-direction: column;
}
.ui-page__header__container {
padding-... | 37,798 |
https://github.com/skynixukraine/Clodify-Business-CRM/blob/master/migrations/m171219_141221_create_access_keys_table.php | Github Open Source | Open Source | BSD-3-Clause | null | Clodify-Business-CRM | skynixukraine | PHP | Code | 80 | 326 | <?php
use app\components\SkynixMigration;
/**
* Handles the creation of table `access_keys`.
*/
class m171219_141221_create_access_keys_table extends SkynixMigration
{
/**
* @inheritdoc
*/
public function up()
{
$this->createTable('access_keys', [
'id' => $this->primaryKey... | 25,112 |
https://github.com/openedx/paragon/blob/master/icons/es5/PhoneMissed.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | paragon | openedx | JavaScript | Code | 102 | 405 | function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
i... | 37,080 |
https://github.com/remytuyeras/petitcaml/blob/master/compilateur/compiler.ml | Github Open Source | Open Source | MIT | null | petitcaml | remytuyeras | OCaml | Code | 1,960 | 6,250 | open Format
open Mips
open Typer
open Spellchecker
let create_lab s = let r = ref 0 in fun () -> incr r; s^(string_of_int !r);;
let labelif = create_lab "Lif";;
let labeland = create_lab "Land";;
let labelor = create_lab "Lor";;
let labelword = create_lab "Lword";;
let active = ref false;;
let frame_size = ref 0;;
... | 36,536 |
https://github.com/Jaywinebrenner/redux-carrot-top/blob/master/src/components/ChapterTwelve.js | Github Open Source | Open Source | Unlicense | null | redux-carrot-top | Jaywinebrenner | JavaScript | Code | 482 | 1,356 | import React, { useState } from "react";
import {
yakovSmirnoff,
} from "../constants/Monsters";
import { useSelector, useDispatch } from "react-redux";
import Container from "react-bootstrap/Container";
import Row from "react-bootstrap/Row";
import Col from "react-bootstrap/Col";
import Battle from "./Battle";
impor... | 23,030 |
https://github.com/saktheeswaranswan/brainfuckinpythonandc/blob/master/c/brainfuck.c | Github Open Source | Open Source | MIT | null | brainfuckinpythonandc | saktheeswaranswan | C | Code | 206 | 610 | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int main(int argc, char *argv[])
{
char program[50000],
memory[30000];
char *ip = program,
*ptr = memory,
*aux_ptr = NULL;
int fd = 0;
ssize_t prg_size ... | 36,221 |
https://github.com/Amitchawarekar/IMS_manjiri09/blob/master/IMS_manjiri09_app/LoginCheckMiddleware.py | Github Open Source | Open Source | Apache-2.0 | null | IMS_manjiri09 | Amitchawarekar | Python | Code | 103 | 447 | from django.http import HttpResponseRedirect
from django.urls import reverse
from django.utils.deprecation import MiddlewareMixin
class LoginCheckMiddleWare(MiddlewareMixin):
def process_view(self,request,view_func,view_args,view_kwargs):
modulename=view_func.__module__
user=request.user
... | 1,435 |
https://github.com/OtwartaPlatformaWyborcza/opw-pre/blob/master/opw-pre-base/src/main/java/pl/otwartapw/opw/pre/entity/OpwProtokol.java | Github Open Source | Open Source | MIT | null | opw-pre | OtwartaPlatformaWyborcza | Java | Code | 939 | 2,851 | /*
* The MIT License
*
* Copyright 2015 Otwarta Platforma Wyborcza.
*
* 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... | 5,651 |
https://github.com/jerolan/dotfiles/blob/master/python/init.zsh | Github Open Source | Open Source | MIT | 2,020 | dotfiles | jerolan | Shell | Code | 6 | 14 | # Pyenv
eval "$(pyenv init -)"
| 4,820 |
https://github.com/sujabshrestha/globalalliance/blob/master/resources/views/frontEnd/cms/newsNotices/all.blade.php | Github Open Source | Open Source | MIT | null | globalalliance | sujabshrestha | PHP | Code | 147 | 809 | @extends('frontEnd.layout.master')
@push('style')
@endpush
@section('content')
<div class="page-section container">
<div class="row">
<div class="col-md-8">
<div class="page-title">
सूचना र सन्देशहरू
<div class="title-bar">
... | 8,161 |
https://github.com/sharma7n/braintree_python/blob/master/tests/integration/test_settlement_batch_summary.py | Github Open Source | Open Source | MIT | null | braintree_python | sharma7n | Python | Code | 123 | 766 | from tests.test_helper import *
class TestSettlementBatchSummary(unittest.TestCase):
possible_gateway_time_zone_offsets = (5, 4)
def test_generate_returns_empty_collection_if_there_is_no_data(self):
result = SettlementBatchSummary.generate('2011-01-01')
self.assertTrue(result.is_success)
... | 3,223 |
https://github.com/Dreed657/Socializer/blob/master/Web/Socializer.Web/Areas/Admin/Services/Groups/AdminGroupsService.cs | Github Open Source | Open Source | MIT | 2,021 | Socializer | Dreed657 | C# | Code | 243 | 957 | namespace Socializer.Web.Areas.Admin.Services.Groups
{
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Socializer.Data.Common.Repositories;
using Socializer.Data.Models;
using Socializer.Data.Models.Enums;
us... | 12,578 |
https://github.com/thenemy/chemical-impex/blob/master/resources/views/components/common/banner.blade.php | Github Open Source | Open Source | MIT | null | chemical-impex | thenemy | PHP | Code | 8 | 62 | <section class="page-title" style="background-image:url({{$banner->image_path}});">
<div class="auto-container">
<h1>{{$banner->title}}</h1>
</div>
</section>
| 35,438 |
https://github.com/khaledboka/django-mapstore-adapter/blob/master/mapstore2_adapter/geoapps/geostories/api/views.py | Github Open Source | Open Source | BSD-2-Clause-FreeBSD | 2,021 | django-mapstore-adapter | khaledboka | Python | Code | 220 | 566 | # -*- coding: utf-8 -*-
#########################################################################
#
# Copyright (C) 2020 OSGeo
#
# 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 3 ... | 34,009 |
https://github.com/serkancelik17/kolayyonetim.com/blob/master/Modules/User/Resources/views/card/create.blade.php | Github Open Source | Open Source | MIT | null | kolayyonetim.com | serkancelik17 | PHP | Code | 8 | 61 | @extends('user::layouts.master')
@section('content')
<h1>user.card.create</h1>
<a href="{{ route("user.card.index") }}">Kaydet</a>
@endsection
| 36,838 |
https://github.com/colbylwilliams/bugtrap/blob/master/iOS/Code/Xamarin/Insights/Insights.iOS/ViewControllers/IssuesNavigationController.cs | Github Open Source | Open Source | MIT | 2,016 | bugtrap | colbylwilliams | C# | Code | 41 | 93 | // This file has been autogenerated from a class added in the UI designer.
using System;
using Foundation;
using UIKit;
namespace Insights.iOS
{
public partial class IssuesNavigationController : UINavigationController
{
public IssuesNavigationController (IntPtr handle) : base (handle)
{
}
}
}
| 19,663 |
https://github.com/zarusz/Workspace/blob/master/trading/fx-domain-model/src/main/java/com/cs/fx/domainmodel/CurrencyRepository.java | Github Open Source | Open Source | Apache-2.0 | null | Workspace | zarusz | Java | Code | 21 | 62 | package com.cs.fx.domainmodel;
/**
* Created by Tomasz on 07.07.2017.
*/
public interface CurrencyRepository extends Repository<Currency, Integer> {
Currency findByIsoCode(String isoCode);
}
| 14,271 |
https://github.com/markomanninen/picoDAQ/blob/master/picodaqa/mpRMeter.py | Github Open Source | Open Source | BSD-2-Clause | null | picoDAQ | markomanninen | Python | Code | 295 | 945 | # -*- coding: utf-8 -*-
'''Rate history display in TKinter window'''
from __future__ import division, absolute_import, print_function, unicode_literals
import sys, numpy as np
import matplotlib
matplotlib.use('TkAgg')
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
if sys.version_info[0] < 3:
imp... | 9,121 |
https://github.com/eCrowdMedia/MooApi/blob/master/Sources/model/StoreModel/StoreCollection/StoreCollectionCategoryItem.swift | Github Open Source | Open Source | MIT | 2,019 | MooApi | eCrowdMedia | Swift | Code | 60 | 138 | //
// StoreCollectionCategoryItem.swift
// MooApi
//
// Created by Apple on 2017/12/5.
// Copyright © 2017年 ecrowdmedia.com. All rights reserved.
//
import Foundation
public struct StoreCollectionCategoryItem: Codable {
public enum CodingKeys: String, CodingKey {
case title = "title"
case id = "id"
... | 46,156 |
https://github.com/rhyswhitley/savanna_iav/blob/master/src/data_preproc/aggit/aggrg_inputs.py | Github Open Source | Open Source | CC0-1.0 | null | savanna_iav | rhyswhitley | Python | Code | 104 | 344 | #!/usr/bin/env python
import os
import cPickle as pickle
from scipy import integrate
def reduce_to_day(df):
# lambda function for integrated sum
dayint = lambda x: integrate.trapz(x, dx=1800)*1e-6
# columns 4-5 are conductance which isn't summed
up_samps = {clab: 'sum' \
if i in [2, ... | 42,124 |
https://github.com/kianmeng/erlang/blob/master/exercises/practice/allergies/src/allergies.erl | Github Open Source | Open Source | MIT | 2,022 | erlang | kianmeng | Erlang | Code | 10 | 56 | -module(allergies).
-export([allergies/1, is_allergic_to/2]).
allergies(_Score) -> undefined.
is_allergic_to(_Substance, _Score) -> undefined.
| 6,517 |
https://github.com/Adsolution/Ray1Map/blob/master/Assets/Scripts/DataTypes/GBAIsometric/Spyro/Object/GBAIsometric_Spyro2_Object2D.cs | Github Open Source | Open Source | MIT | 2,022 | Ray1Map | Adsolution | C# | Code | 140 | 420 | using BinarySerializer;
namespace R1Engine
{
public class GBAIsometric_Spyro2_Object2D : BinarySerializable
{
public ObjCategory Category { get; set; }
public ushort ObjType { get; set; }
public ushort ID { get; set; }
public short LinkedObjectID { get; set; }
public ... | 15,716 |
https://github.com/knownasilya/ember-elsewhere/blob/master/tests/dummy/app/templates/fourth.hbs | Github Open Source | Open Source | MIT | null | ember-elsewhere | knownasilya | null | Spoken | 47 | 147 | {{! BEGIN-SNIPPET fourth }}
<p>This is the fourth page. It sends multiple "button" components into the same orange "actions" bar at the bottom.</p>
<ToElsewhere @named="actions" @send={{component "test-button" text="Button1"}} />
<ToElsewhere @named="actions" @send={{component "test-button" text="Button3"}} />
<ToElse... | 46,682 |
https://github.com/Abolitionist-Project/QuantiModo-SDK-Ruby/blob/master/lib/swagger_client/models/aggregated_correlation.rb | Github Open Source | Open Source | Apache-2.0 | null | QuantiModo-SDK-Ruby | Abolitionist-Project | Ruby | Code | 646 | 2,490 | module SwaggerClient
#
class AggregatedCorrelation < BaseObject
attr_accessor :id, :correlation, :cause_id, :effect_id, :onset_delay, :duration_of_action, :number_of_pairs, :value_predicting_high_outcome, :value_predicting_low_outcome, :optimal_pearson_product, :vote, :number_of_users, :number_of_correlations,... | 21,865 |
https://github.com/alejodelosrios/connected-canine/blob/master/resources/views/components/reservations-table.blade.php | Github Open Source | Open Source | MIT | null | connected-canine | alejodelosrios | PHP | Code | 91 | 402 | <div class="table-responsive">
<table class="table align-items-center mb-0">
<thead>
<tr>
<th class="text-center text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">
Employee
</th>
<th class="text-center text-up... | 9,978 |
https://github.com/Rachine/confound_prediction/blob/master/confound_prediction/sampling.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | confound_prediction | Rachine | Python | Code | 1,283 | 4,626 | """
Sampling methods
"""
import numpy as np
from scipy.stats.kde import gaussian_kde
from sklearn.model_selection import train_test_split
from sklearn import preprocessing
from sklearn.datasets.base import Bunch
from confound_prediction.mutual_information import mutual_kde
from confound_prediction.utils import _ens... | 41,880 |
https://github.com/madanagopaltcomcast/pxCore/blob/master/examples/pxScene2d/external/libnode-v6.9.0/deps/icu-small/source/common/ucase_props_data.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | pxCore | madanagopaltcomcast | C | Code | 916 | 46,940 | /*
* Copyright (C) 1999-2016, International Business Machines
* Corporation and others. All Rights Reserved.
*
* file name: ucase_props_data.h
*
* machine-generated by: icu/tools/unicode/c/genprops/casepropsbuilder.cpp
*/
#ifdef INCLUDED_FROM_UCASE_CPP
static const UVersionInfo ucase_props_dataVersion={8,0,0,... | 20,886 |
https://github.com/tgsmith61591/reclab/blob/master/reclab/utils/testing.py | Github Open Source | Open Source | MIT | 2,019 | reclab | tgsmith61591 | Python | Code | 419 | 1,361 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from sklearn.externals import six, joblib
from abc import ABCMeta, abstractmethod
from numpy.testing import assert_array_equal
import numpy as np
import types
import shutil
import os
from .._config import RECLAB_CACHE, set_blas_singlethread
__all__ = ... | 3,253 |
https://github.com/wahahab/medical-signal-keras/blob/master/train.py | Github Open Source | Open Source | MIT | 2,018 | medical-signal-keras | wahahab | Python | Code | 561 | 1,936 | import sys
import json
import csv
import pandas as pd
import numpy as np
from keras.models import Sequential
from keras.layers import Dense, Dropout
from keras.utils import np_utils
# from common import precision, recall
# from common import mcor, recall, f1
from sklearn.preprocessing import LabelEncoder
from sklearn... | 6,046 |
https://github.com/Center-of-Diagnostics-and-Telemedicine/FAnTom-web/blob/master/main-server/src/main/kotlin/useCases/CovidMark.kt | Github Open Source | Open Source | BSD-3-Clause | 2,021 | FAnTom-web | Center-of-Diagnostics-and-Telemedicine | Kotlin | Code | 89 | 346 | package useCases
import io.ktor.application.*
import io.ktor.locations.*
import io.ktor.request.*
import io.ktor.response.*
import io.ktor.routing.*
import model.*
import repository.CovidMarksRepository
import util.CovidMark
import util.user
fun Route.mark(
covidMarksRepository: CovidMarksRepository
) {
post<Cov... | 32,807 |
https://github.com/majazeh/risloo-samples/blob/master/scoring/dictionary/JSGS93.py | Github Open Source | Open Source | Unlicense | null | risloo-samples | majazeh | Python | Code | 162 | 456 | f1 = 'god_image'
f2 = 'god_concept'
f3 = 'self_image'
f4 = 'self_concept'
factors_names = ('raw',f1,f2,f3,f4)
factors = {
1 :(f2,)
, 2 :(f1,)
, 3 :(f2,)
, 4 :(f1,)
, 5 :(f2,)
, 6 :(f2,)
, 7:(f2,)
, 8 :(f1,)
, 9 :(f1,)
, 10 :(f1,)
, 11 :(f2,)
, 12 :(f2,)
, 13 :(f1,... | 36,804 |
https://github.com/clean-code-craft-tcq-2/coverage-in-c-JitendravansheekumarShelar/blob/master/typewise-alert.c | Github Open Source | Open Source | MIT | null | coverage-in-c-JitendravansheekumarShelar | clean-code-craft-tcq-2 | C | Code | 190 | 847 | #include "typewise-alert.h"
#include <stdio.h>
const coolingTypeInfo_st coolingTypeInfo_pst[NoOfCoolingType] =
{/* COOLING TYPE LOWER LIMIT UPPER LIMIT */
{PASSIVE_COOLING ,PASSIVE_COOLING_LOWERLIMIT ,PASSIVE_COOLING_UPPERLIMIT},... | 3,816 |
https://github.com/kevinkabatra/UnityTutorialLabyrinth/blob/master/Assets/Code/WorldMap.cs | Github Open Source | Open Source | MIT | 2,019 | UnityTutorialLabyrinth | kevinkabatra | C# | Code | 87 | 358 | namespace Assets.Code
{
using UnityEngine;
using UnityEngine.Tilemaps;
public class WorldMap : MonoBehaviour
{
[SerializeField] public TilemapRenderer Start;
[SerializeField] public TilemapRenderer VerticalPipe;
[SerializeField] public TilemapRenderer VerticalPipeModifier;
... | 21,706 |
https://github.com/PhearZero/relational-pouch/blob/master/src/uuid.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | relational-pouch | PhearZero | TypeScript | Code | 273 | 699 | // BEGIN Math.uuid.js
/*!
Math.uuid.js (v1.4)
http://www.broofa.com
mailto:robert@broofa.com
Copyright (c) 2010 Robert Kieffer
Dual licensed under the MIT and GPL licenses.
*/
/*
* Generate a random uuid.
*
* USAGE: Math.uuid(length, radix)
* length - the desired number of characters
* radix - the number o... | 40,215 |
https://github.com/WoodoLee/TorchCraft/blob/master/3rdparty/range-v3/doc/gh-pages/structranges_1_1v3_1_1remove__if__view.js | Github Open Source | Open Source | MIT | null | TorchCraft | WoodoLee | JavaScript | Code | 15 | 133 | var structranges_1_1v3_1_1remove__if__view =
[
[ "remove_if_view", "structranges_1_1v3_1_1remove__if__view.html#add5ddea2ca6da9889cb081ee50c97eb2", null ],
[ "remove_if_view", "structranges_1_1v3_1_1remove__if__view.html#acf052b38527570bfcbb166553cf4dff0", null ]
]; | 38,940 |
https://github.com/LinerSu/DART_IT/blob/master/tests/benchmarks_call/DRIFT/first/is_prime.ml | Github Open Source | Open Source | BSD-3-Clause | 2,020 | DART_IT | LinerSu | OCaml | Code | 224 | 411 | (*
From: jayhorn/benchmarks SatPrimes01_true.java
*)
let rec mult (mn:int) (mm:int) =
if mm < 0 then
mult mn (0 - mm)
else if mm = 0 then 0
else mn + (mult mn (mm - 1))
let rec multiple_of (on:int) (om:int) =
if om < 0 then multiple_of on (0 - om)
else if on < 0 then false
else if om = 0 the... | 28,715 |
https://github.com/lucasvieiravicente/LoginService/blob/master/Domain/Models/Response/LoginResponse.cs | Github Open Source | Open Source | MIT | null | LoginService | lucasvieiravicente | C# | Code | 24 | 72 | namespace LoginService.Domain.Models.Response
{
public class LoginResponse
{
public LoginResponse(string jwtResponse)
{
JwtResponse = jwtResponse;
}
public string JwtResponse { get; set; }
}
}
| 7,187 |
https://github.com/sempr-tk/sempr-gui/blob/master/src/TCPConnectionServer.cpp | Github Open Source | Open Source | BSD-3-Clause | null | sempr-gui | sempr-tk | C++ | Code | 338 | 1,495 | #include "TCPConnectionServer.hpp"
#include "ECDataZMQ.hpp"
#include "LogDataZMQ.hpp"
#include "TCPConnectionRequest.hpp"
#include <cereal/archives/json.hpp>
#include <iostream>
namespace sempr { namespace gui {
TCPConnectionServer::TCPConnectionServer(
DirectConnection::Ptr con,
const std::string& p... | 47,096 |
https://github.com/flybaseio/hello.js/blob/master/tests/specs/unit/modules/apiMePhotos.js | Github Open Source | Open Source | MIT | 2,022 | hello.js | flybaseio | JavaScript | Code | 396 | 4,242 | import helper from './helper';
describe('hello.api(\'/me/photos\')', function() {
helper.sharedSetup();
var tests = [
{
network: 'instagram',
expect: {
length: 5,
first: {
id: '891783660020488189_1636340308',
name: 'Red Carpet Piggy',
picture: 'http://scontent-a.cdninstagram.com/hpho... | 8,846 |
https://github.com/AncientEntity/PVBPublicRepository/blob/master/gamemodes/pvb/gamemode/loadout/sv_showteam.lua | Github Open Source | Open Source | MIT | 2,020 | PVBPublicRepository | AncientEntity | Lua | Code | 7 | 64 | util.AddNetworkString("PVB.SendLoadoutInfo")
function GM:ShowTeam(ply)
net.Start("PVB.SendLoadoutInfo")
net.WriteString(PVB:GetItems(ply))
net.Send(ply)
end | 2,681 |
https://github.com/quickfox15/soliDroid-II/blob/master/test/test_invoker.ts | Github Open Source | Open Source | MIT | null | soliDroid-II | quickfox15 | TypeScript | Code | 549 | 2,031 | import { ethers } from "hardhat";
import { BigNumber, Signer } from "ethers";
import { BotInstance } from "../typechain";
import { _deployBotInstance } from "../scripts/deploy_bot-instance";
import * as chai from 'chai';
import { MockERC20__factory } from "../typechain/factories/MockERC20__factory";
import chalk from "... | 21,061 |
https://github.com/umr666/gdbx/blob/master/runtime/cache/c0/929bcfdc16cf09498970e493cc3cb4.php | Github Open Source | Open Source | Apache-2.0 | null | gdbx | umr666 | PHP | Code | 4 | 169 | <?php
//000000000000
exit();?>
a:10:{s:2:"id";i:16;s:4:"type";s:5:"other";s:4:"name";s:5:"video";s:5:"title";s:12:"在线视频";s:5:"image";s:54:"/uploads/20180831/61adb338ac83ee19395533e104c5e47b.jpg";s:3:"url";s:0:"";s:7:"content";s:0:"";s:10:"createtime";i:1535687647;s:10:"updatetime";i:1535687647;s:6:"status";s:6:"normal... | 1,904 |
https://github.com/mghgroup/Glide-Browser/blob/master/content/common/content_constants_internal.h | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | null | Glide-Browser | mghgroup | C | Code | 171 | 465 | // 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_COMMON_CONTENT_CONSTANTS_INTERNAL_H_
#define CONTENT_COMMON_CONTENT_CONSTANTS_INTERNAL_H_
#include <stddef.h>
#include <stdint.h>
#i... | 17,258 |
https://github.com/astuder/epc901/blob/master/software/breakout/Core/Src/CmdReset.cpp | Github Open Source | Open Source | MIT | 2,022 | epc901 | astuder | C++ | Code | 146 | 441 | /*
* Shell commands to reset components.
*
* Copyright 2020 by Adrian Studer
*
* Licensed under the terms of MIT License, all text here must be included in any redistribution.
* See the LICENSE-SW file for details.
*/
#include "CmdReset.hpp"
#include "EPC901.hpp"
#include "Camera.hpp"
#include "Shell.hpp"
#incl... | 7,084 |
https://github.com/sabreenMohammed107/ampy-future/blob/master/app/Http/Resources/NotificationsResourse.php | Github Open Source | Open Source | MIT | null | ampy-future | sabreenMohammed107 | PHP | Code | 59 | 226 | <?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class NotificationsResourse extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{... | 31,572 |
https://github.com/shubham-king/guess-the-melody/blob/master/quiz/handler.py | Github Open Source | Open Source | MIT | null | guess-the-melody | shubham-king | Python | Code | 167 | 635 | import random
from quiz.bot.bot import Bot, QuizBot
from quiz.bot.message.user import UserMessage, BotUserMessage
from quiz.bot.navigation.keyboard import BotRemoveKeyboard
from quiz.config import Config
from quiz.bot.storage.storage import Storage, MelodyStorage
from telebot.types import Message
from quiz.bot.tools.ut... | 43,073 |
https://github.com/featherflew/DLSA2018/blob/master/mingw/x86_64-w64-mingw32/include/fsrmenums.h | Github Open Source | Open Source | MIT | null | DLSA2018 | featherflew | C | Code | 696 | 3,151 | /**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the w64 mingw-runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#ifndef _INC_FSRMENUMS
#define _INC_FSRMENUMS
#if (_WIN32_WINNT >= 0x0600)
#ifdef __cplusplus
extern "C... | 18,184 |
https://github.com/scottbarstow/ruby-rbtest/blob/master/spec/models/contact_spec.rb | Github Open Source | Open Source | MIT | null | ruby-rbtest | scottbarstow | Ruby | Code | 36 | 113 | require 'rails_helper'
RSpec.describe Contact, type: :model do
it 'should require First Name' do
contact = FactoryGirl.build(:contacts, first_name: '')
expect(contact).to_not be_valid
end
it 'should require Last Name' do
contact = FactoryGirl.build(:contacts, last_name: '')
expect(contact).to_no... | 11,923 |
https://github.com/odiubankov/kick_start/blob/master/2021/round_h/transform_the_string/transform_the_string.cpp | Github Open Source | Open Source | MIT | null | kick_start | odiubankov | C++ | Code | 258 | 799 | #include <algorithm>
#include <fstream>
#include <iostream>
#include <string>
using DiffType = unsigned long long;
bool solve_next_case(const std::size_t case_index) {
std::string padlock;
if (!std::getline(std::cin, padlock) || padlock.empty()) {
std::cerr << "can't read padlock for case " << case_index << s... | 12,193 |
https://github.com/FloWachter/Website-FloW-Portfolio/blob/master/site/plugins/field-switch/field-switch.php | Github Open Source | Open Source | MIT | 2,019 | Website-FloW-Portfolio | FloWachter | PHP | Code | 13 | 32 | <?php
// register the switch field
$kirby->set('field', 'switch', __DIR__ . DS . 'field');
| 17,331 |
https://github.com/lissaferreira/nvim-config/blob/master/config/global-config.vim | Github Open Source | Open Source | MIT | 2,021 | nvim-config | lissaferreira | null | Spoken | 70 | 199 | set autoindent
set autoread
set backspace=indent,eol,start
set clipboard=unnamedplus
set cursorline
set encoding=UTF-8
set expandtab
set fillchars=eob:\ ,
set hidden
set inccommand=split
set incsearch
set laststatus=0
set mouse=a
set nobackup
set noruler
set noshowcmd
set noshowmode
set noswapfile
set number
set scroll... | 3,236 |
https://github.com/kythuattech5s/phuongdong/blob/master/packages/vanhenry/manager/src/views/view/pages/detail_statistic.blade.php | Github Open Source | Open Source | MIT | null | phuongdong | kythuattech5s | PHP | Code | 46 | 509 | @extends('vh::master')
@section('content')
@switch('$type')
@case('hotProduct')
@include('vh::view.pages.hotProduct',['data'=>$data])
@break
@case('byTime')
@include('vh::view.pages.byTime',['data'=>$data])
@break
@case('byMadeIn')
@include('vh::view.pages.byMadeIn',['data'=>$data])
@break
@case... | 4,497 |
https://github.com/kumudunee/Catch-the-Fish/blob/master/server/adminserver.php | Github Open Source | Open Source | MIT | 2,022 | Catch-the-Fish | kumudunee | PHP | Code | 619 | 2,375 | <?php
$keycode = "";
$masterkey = "";
$errors = array();
$db = mysqli_connect('localhost', 'root', '', 'CTF');
//$sql = "UPDATE `levelkeys` SET `keycode` = 'WaZILIXs6VGo9qP5VjPwRaS5y0CCkoQX' WHERE `levelkeys`.`id` = 1;"
if(isset($_POST['key01submit']))
{
$keycode = mysqli_real_escape_string($db, $_POST['keycode01'... | 25,447 |
https://github.com/odlp/rspec-with_params/blob/master/spec/black_box/with_params_spec.rb | Github Open Source | Open Source | MIT | 2,022 | rspec-with_params | odlp | Ruby | Code | 144 | 515 | # frozen_string_literal: true
require "jet_black"
RSpec.describe "integrating RSpec::WithParams" do
let(:session) { JetBlack::Session.new }
it "fails correctly with a non-zero exit status" do
session.create_file("spec/failing_spec.rb", failing_calculator_spec)
expect(session.run("bundle exec rspec")).
... | 32,993 |
https://github.com/maspriyambodo/koperasi/blob/master/config/_kolektibilitas.php | Github Open Source | Open Source | Apache-2.0 | null | koperasi | maspriyambodo | PHP | Code | 12 | 127 | <?php
if($kdkop==1){
$bln=date('m',strtotime($t));
$thn=date('Y',strtotime($t));
$tglakhir=tglAkhirBulan($thn,intval($bln));
$m =$thn.'-'.$bln.'-'.$tglakhir;
}else{
$m=$t;
}
$kolek=$result->kolek(0,$norek,$m);
?> | 45,912 |
https://github.com/alexfikl/pyshocks/blob/master/tests/test_timestepping.py | Github Open Source | Open Source | MIT | null | pyshocks | alexfikl | Python | Code | 201 | 800 | from functools import partial
from pyshocks import get_logger
from pyshocks import timestepping as ts
import jax
import jax.numpy as jnp
import pytest
logger = get_logger("test_timestepping")
@pytest.mark.parametrize(
("cls", "order"),
[
(ts.ForwardEuler, 1),
(ts.SSPRK33, 3),
(ts.R... | 26,325 |
https://github.com/avinor/terraform-azurerm-security-center/blob/master/variables.tf | Github Open Source | Open Source | Apache-2.0 | null | terraform-azurerm-security-center | avinor | HCL | Code | 56 | 106 | variable "resource_types" {
description = "List of resource types to which Azure Defender should be enabled"
type = list(string)
default = []
}
variable "location" {
description = "The Azure Region in which to create resource."
}
variable "tags" {
description = "Tags to apply to all resources cre... | 36,392 |
https://github.com/Leo1034/deer-master/blob/master/android/app/src/main/java/me/wozappz/deer/MainActivity.kt | Github Open Source | Open Source | MIT | 2,022 | deer-master | Leo1034 | Kotlin | Code | 117 | 502 | package me.wozappz.deer;
import android.os.Bundle
import io.flutter.app.FlutterActivity
import io.flutter.plugins.GeneratedPluginRegistrant
import android.app.Activity
import android.graphics.Color
import android.os.Build
import android.view.View
import android.view.WindowManager
class MainActivity(): FlutterActivit... | 46,499 |
https://github.com/sd0408/amazon-cloudwatch-alarms-controller-for-kubernetes/blob/master/test/test_cloudwatch_helper.py | Github Open Source | Open Source | MIT-0 | 2,021 | amazon-cloudwatch-alarms-controller-for-kubernetes | sd0408 | Python | Code | 200 | 866 | """ unit tests for cloudwatch alarms operator. """
from unittest.mock import patch
import sys
import os
import botocore
from botocore.stub import Stubber
import cwoperator.helpers.cloudwatch as cloudwatch
sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, "src"))
CW_CLIENT = botocore.session.get_sess... | 3,622 |
https://github.com/Momen3030/mesdikia/blob/master/app/Console/Commands/everyMonth.php | Github Open Source | Open Source | MIT | null | mesdikia | Momen3030 | PHP | Code | 684 | 2,410 | <?php
namespace App\Console\Commands;
use App\notifications;
use DateTime;
use Illuminate\Console\Command;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\DB;
use Symfony\Component\VarDumper\Cloner\Data;
class everyMonth extends Command
{
/**
* The name and signature of the console command.
... | 40,216 |
https://github.com/wjkxiaowu/nightingale/blob/master/src/modules/agentd/sys/funcs/cpustat.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | nightingale | wjkxiaowu | Go | Code | 771 | 2,844 | // Copyright 2017 Xiaomi, 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... | 42,989 |
https://github.com/delolpor/buefy/blob/master/docs/pages/components/clockpicker/examples/ExFooter.vue | Github Open Source | Open Source | MIT | 2,022 | buefy | delolpor | Vue | Code | 66 | 276 | <template>
<section>
<b-field>
<b-switch v-model="isAmPm">AM/PM</b-switch>
</b-field>
<b-field label="Select time">
<b-clockpicker
v-model="time"
placeholder="Click to select..."
:hour-format="format">
<... | 32,427 |
https://github.com/ammardodin/daily-coding-problem/blob/master/init-new-problem.sh | Github Open Source | Open Source | MIT | null | daily-coding-problem | ammardodin | Shell | Code | 11 | 50 | #!/bin/bash
set -e
DIR="$(date +%Y-%m-%d)"
mkdir $DIR
touch "$DIR/problem.md"
touch "$DIR/solution.py"
| 13,288 |
https://github.com/kingtomato/tribes.scripts/blob/master/KTPack24/protection/FloodProtect.cs | Github Open Source | Open Source | MIT | 2,020 | tribes.scripts | kingtomato | C# | Code | 193 | 600 | // ----------------------------------------------------------------------------
// KingTomato Scripts
// ----------------------------------------------------------------------------
$Script::Creator = "KingTomato";
$Script::Version = "1.0";
$Script::Description = "This should help prevent you from getting kicked on "
... | 18,944 |
https://github.com/soosr/WalletWasabi/blob/master/WalletWasabi/Tor/Control/TorControlClient.cs | Github Open Source | Open Source | MIT | 2,022 | WalletWasabi | soosr | C# | Code | 1,539 | 5,064 | using Nito.AsyncEx;
using System.Collections.Generic;
using System.IO;
using System.IO.Pipelines;
using System.Linq;
using System.Net.Sockets;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading;
using System.Threading.Channels;
using System.Threading.Tasks;
using WalletWasabi.Logging;
usin... | 38,944 |
https://github.com/supreethms1809/magma-2.2.0/blob/master/docs/html/group__magma__gegqr.js | Github Open Source | Open Source | BSD-3-Clause | 2,021 | magma-2.2.0 | supreethms1809 | JavaScript | Code | 25 | 206 | var group__magma__gegqr =
[
[ "magma_cgegqr_gpu", "group__magma__gegqr.html#ga8d2f78c5918ebe07f11d7254cc0c57a3", null ],
[ "magma_dgegqr_gpu", "group__magma__gegqr.html#ga0376527df86ce873c540bd217cb0a50a", null ],
[ "magma_sgegqr_gpu", "group__magma__gegqr.html#gafcfd2327b9c90c250d36347da25f82d6", null ],
... | 40,640 |
https://github.com/alperg/alplication/blob/master/node_modules/grunt-jslint/index.js | Github Open Source | Open Source | MIT | 2,020 | alplication | alperg | JavaScript | Code | 7 | 41 |
module.exports = process.env.JSLINT_COV ?
require('./lib-cov/jslint') :
require('./lib/jslint');
| 43,925 |
https://github.com/tanishiking/dotty/blob/master/tests/untried/neg/t7834neg.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | dotty | tanishiking | Scala | Code | 279 | 638 | class M1
class M2 extends M1
class M3 extends M2
trait S1 { val q = new M1 ; val q1: q.type = q }
trait S2 { val q = new M2 ; val q2: q.type = q }
class B extends S1 with S2 {
override val q = new M3
val q3: q.type = q
var x1: B.super[S1].q1.type = null
var x2: B.super[S2].q2.type = null
var x3: B.this.q3.... | 17,141 |
https://github.com/rushdi1987/interphaze/blob/master/js/owl.carousel.call.js | Github Open Source | Open Source | CC-BY-3.0 | null | interphaze | rushdi1987 | JavaScript | Code | 47 | 162 | $(document).ready(function() {
$("#owl-example").owlCarousel({
//Autoplay
autoPlay : false,
stopOnHover : true,
// Navigation
navigation : true,
navigationText : ["<i class='fa fa-chevron-left '></i>","<i class='fa fa-chevron-right '></i>"],
rewindNav : true,
scrollPerPage : false,
... | 26,762 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.