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/SkyZero1228/react-GraphQL/blob/master/src/components/AntComponents/Avatar/Type/style.scss
Github Open Source
Open Source
MIT
null
react-GraphQL
SkyZero1228
SCSS
Code
11
49
.AvatarDemo { #components-avatar-demo-type .ant-avatar { margin-top: 16px; margin-right: 16px; } }
15,721
https://github.com/Wnatat/gatsby/blob/master/src/store/reducers/lmao-datasource/continents.js
Github Open Source
Open Source
MIT
null
gatsby
Wnatat
JavaScript
Code
1,488
4,467
export default [ { "country": "Afghanistan", "continent": "Asia", "code": "AF" }, { "country": "Albania", "continent": "Europe", "code": "AL" }, { "country": "Algeria", "continent": "Africa", "code": "DZ" }, { "country": "Andorra", "continent": "Europe", "code": "AD" }, { "country": "Angola", "continent": "Af...
45,003
https://github.com/ambassify/OpenMetadata/blob/master/openmetadata-ui/src/main/resources/ui/src/components/DashboardDetails/DashboardDetails.test.tsx
Github Open Source
Open Source
Apache-2.0
null
OpenMetadata
ambassify
TypeScript
Code
396
1,326
/* * Copyright 2021 Collate * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing,...
21,184
https://github.com/kiuchikeisuke/DeviceKanriSan/blob/master/app/src/main/kotlin/jp/ne/keisuke/kiuchi/devicekanrisan/BindingModules.kt
Github Open Source
Open Source
Apache-2.0
null
DeviceKanriSan
kiuchikeisuke
Kotlin
Code
86
554
package jp.ne.keisuke.kiuchi.devicekanrisan import android.support.v4.app.Fragment import dagger.Binds import dagger.Module import dagger.android.AndroidInjector import dagger.android.support.FragmentKey import dagger.multibindings.IntoMap import jp.ne.keisuke.kiuchi.devicekanrisan.presenter.list.DeviceListComponent i...
29,752
https://github.com/jpetrucciani/jh_jwt/blob/master/jh_jwt/__init__.py
Github Open Source
Open Source
Apache-2.0
null
jh_jwt
jpetrucciani
Python
Code
5
11
""" jwt authenticator module """
28,932
https://github.com/Szeba25/hades/blob/master/src/main/java/hu/szeba/hades/wizard/view/components/GraphEditorPanel.java
Github Open Source
Open Source
MIT
null
hades
Szeba25
Java
Code
412
1,895
package hu.szeba.hades.wizard.view.components; import hu.szeba.hades.main.meta.Languages; import hu.szeba.hades.main.model.task.graph.Graph; import hu.szeba.hades.main.util.GridBagSetter; import hu.szeba.hades.main.util.SortUtilities; import hu.szeba.hades.main.view.elements.MappedElement; import hu.szeba.hades.wizard...
34,954
https://github.com/panmar/playgl/blob/master/src/graphics/logging.h
Github Open Source
Open Source
MIT
null
playgl
panmar
C
Code
295
1,222
#pragma once #include "common.h" #include <glad/glad.h> #define GLFW_INCLUDE_GLU #include <GLFW/glfw3.h> namespace debug { inline void APIENTRY opengl_debug_callback(GLenum source, GLenum type, u32 id, GLenum severity, GLsizei length, ...
14,631
https://github.com/luoyuctl/erda/blob/master/modules/dicehub/extension/provider.go
Github Open Source
Open Source
Apache-2.0
null
erda
luoyuctl
Go
Code
288
1,051
// Copyright (c) 2021 Terminus, 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 agree...
24,628
https://github.com/liebharc/terraform-examples/blob/master/kubernetes-magnum/kubernetes_resources/provider.tf
Github Open Source
Open Source
Apache-2.0
null
terraform-examples
liebharc
HCL
Code
7
19
provider "kubernetes" { config_path = "./config" }
15,810
https://github.com/tegaistega/blog-api/blob/master/src/main/java/com/restapi/myblog/payload/response/PhotoResponse.java
Github Open Source
Open Source
MIT
2,021
blog-api
tegaistega
Java
Code
52
143
package com.restapi.myblog.payload.response; import lombok.Data; @Data public class PhotoResponse { private Long id; private String title; private String url; private String thumbnailUrl; private Long albumid; public PhotoResponse(Long id, String title, String url, String thumbnailUrl, Long ...
22,875
https://github.com/cameron-yee/gatsby/blob/master/old/loopbacksleep.js
Github Open Source
Open Source
MIT
null
gatsby
cameron-yee
JavaScript
Code
292
1,111
import React from 'react' // import SleepLog from '../components/sleeplog' import Layout from '../components/layout' import Content from '../components/content' import { Link } from 'gatsby' // import { graphql } from 'gatsby' import axios from 'axios'; import 'bulma/bulma.sass' class LoopbackSleep extends React.Com...
5,276
https://github.com/nickyrucker1979/EAB_SSC_Scripts/blob/master/SQL Scripts/PS_PERSONAL_PHONE.sql
Github Open Source
Open Source
MIT
null
EAB_SSC_Scripts
nickyrucker1979
SQL
Code
44
137
SELECT EMPLID , PHONE_TYPE , COUNTRY_CODE , PHONE , EXTENSION , PREF_PHONE_FLAG FROM PS_PERSONAL_PHONE WHERE 1=1 AND (EMPLID IN (SELECT DISTINCT EMPLID FROM PS_EMPLOYEES WHERE BUSINESS_UNIT = '') OR EMPLID IN (SELECT DISTINCT EMPLID FROM PS_STDNT_CAR_...
40,819
https://github.com/the-mikedavis/khepri/blob/master/test/app.erl
Github Open Source
Open Source
Apache-2.0
null
khepri
the-mikedavis
Erlang
Code
106
417
%% This Source Code Form is subject to the terms of the Mozilla Public %% License, v. 2.0. If a copy of the MPL was not distributed with this %% file, You can obtain one at https://mozilla.org/MPL/2.0/. %% %% Copyright (c) 2022 VMware, Inc. or its affiliates. All rights reserved. %% -module(app). -include_lib("eunit...
4,359
https://github.com/binsta/sol-bot/blob/master/src/discord/commands/commands/saveDiscordKey.js
Github Open Source
Open Source
MIT
2,022
sol-bot
binsta
JavaScript
Code
125
361
/* import UserService from '../../../publicKeyStorage/UserService'; import { COMMAND_PREFIX } from '../../../config'; import Wallet from '../../../wallet'; export default { name: 'save-discordkey', description: 'Use this command to connect your discordId to a public key.' + ' Whenever someone sends you...
11,304
https://github.com/kdmundale/LancasterCityNutrition/blob/master/LCNapp/static/js/admin_member_view.js
Github Open Source
Open Source
MIT
2,020
LancasterCityNutrition
kdmundale
JavaScript
Code
138
583
const all_user = document.getElementById('all_user'); const most_logins = document.getElementById('most_logins'); const most_shakes = document.getElementById('most_shakes'); const member_phone = document.getElementById('member_phone'); tables= [all_user,most_logins,most_shakes,member_phone]; tableL = tables.length; f...
2,748
https://github.com/rzhvn1/REST-API/blob/master/RESTProject/order/migrations/0009_order_promocode.py
Github Open Source
Open Source
MIT
null
REST-API
rzhvn1
Python
Code
33
132
# Generated by Django 3.1.7 on 2021-03-22 14:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('order', '0008_auto_20210322_2014'), ] operations = [ migrations.AddField( model_name='order', name='promocode', ...
25,724
https://github.com/zetter/github/blob/master/lib/containers/issueish-detail-container.js
Github Open Source
Open Source
MIT
2,022
github
zetter
JavaScript
Code
611
2,648
import React from 'react'; import PropTypes from 'prop-types'; import yubikiri from 'yubikiri'; import {QueryRenderer, graphql} from 'react-relay'; import {PAGE_SIZE, CHECK_SUITE_PAGE_SIZE, CHECK_RUN_PAGE_SIZE} from '../helpers'; import RelayNetworkLayerManager from '../relay-network-layer-manager'; import {GithubLogi...
7,747
https://github.com/pdalbora/gosu-lang/blob/master/gosu-core-api/src/main/java/gw/lang/reflect/IEnumType.java
Github Open Source
Open Source
Apache-2.0
null
gosu-lang
pdalbora
Java
Code
30
86
/* * Copyright 2014 Guidewire Software, Inc. */ package gw.lang.reflect; import java.util.List; public interface IEnumType extends IType { public List<IEnumValue> getEnumValues(); public IEnumValue getEnumValue( String strName ); List<String> getEnumConstants(); }
37,640
https://github.com/Sima-G/viveedapp/blob/master/public/assets/backend/js/pages/modules/pricing/product_manage/viveed.js
Github Open Source
Open Source
MIT
null
viveedapp
Sima-G
JavaScript
Code
1,057
4,589
jQuery(document).ready(function () { $('#price_manage_block').find('input, textarea, select, button').not('.price_edit').not('.price_delete').attr('disabled','disabled'); /* |-------------------------------------------------------------------------- | Pricing catalogue block store forms |------...
5,379
https://github.com/waltzio/waltz/blob/master/static/js/shared/utils.js
Github Open Source
Open Source
MIT
2,021
waltz
waltzio
JavaScript
Code
615
2,015
var Utils = { /** * @param String input A match pattern * @returns null if input is invalid * @returns String to be passed to the RegExp constructor */ parse_match_pattern: function (input) { if (typeof input !== 'string') return null; var match_pattern = '(?:^', ...
30,893
https://github.com/katemihalikova/test262/blob/master/test/annexB/built-ins/RegExp/named-groups/non-unicode-malformed-lookbehind.js
Github Open Source
Open Source
BSD-3-Clause
2,022
test262
katemihalikova
JavaScript
Code
49
181
// Copyright 2017 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: prod-GroupSpecifier description: > \k is parsed as IdentityEscape as look-behind assertion is not a GroupName. features: [regexp-named-groups, regexp-lookbehind] ---*/ as...
13,658
https://github.com/medericDelamare/uscl/blob/master/src/AppBundle/Controller/DefaultController.php
Github Open Source
Open Source
MIT
null
uscl
medericDelamare
PHP
Code
116
566
<?php namespace AppBundle\Controller; use AppBundle\Entity\CarriereJoueur; use AppBundle\Entity\NombreLicenciesParAnnee; use AppBundle\Entity\Rencontre; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\DomCrawler\Crawler; use S...
12,580
https://github.com/mcdexio/mai3-trade-mining-protocol/blob/master/hardhat.config.ts
Github Open Source
Open Source
MIT
null
mai3-trade-mining-protocol
mcdexio
TypeScript
Code
489
1,781
import { task } from "hardhat/config"; import "@nomiclabs/hardhat-waffle"; import "hardhat-contract-sizer"; import "solidity-coverage" import "@nomiclabs/hardhat-etherscan"; import "./misc/typechain-ethers-v5-mcdex"; const pk = process.env["PK"]; const etherscanApiKey = process.env["ETHERSCAN_API_KEY"]; task("accoun...
44,073
https://github.com/KaushikDebdas/learn_and_earn/blob/master/app/Models/GroupStudyInterested.php
Github Open Source
Open Source
MIT
null
learn_and_earn
KaushikDebdas
PHP
Code
16
54
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class GroupStudyInterested extends Model { // protected $table = "interested_ingroupstudy"; }
41,399
https://github.com/litsor/core/blob/master/core/methods/strings/from.js
Github Open Source
Open Source
MIT
2,019
core
litsor
JavaScript
Code
31
83
'use strict'; module.exports = { title: 'From', description: 'Get substring from right operand to end of string', leftSchema: {type: 'string'}, rightSchema: {type: 'integer', minimum: 0}, binary: (string, from) => string.substring(from) };
32,912
https://github.com/Toromino/chromiumos-platform2/blob/master/tpm_manager/server/mock_tpm_ownership_interface.h
Github Open Source
Open Source
BSD-3-Clause
null
chromiumos-platform2
Toromino
C
Code
120
633
// Copyright 2015 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 TPM_MANAGER_SERVER_MOCK_TPM_OWNERSHIP_INTERFACE_H_ #define TPM_MANAGER_SERVER_MOCK_TPM_OWNERSHIP_INTERFACE_H_ #include <gmock/gmock.h> #inclu...
21,724
https://github.com/ninjabit/GraffitiMaps/blob/master/api/server/models/user.ts
Github Open Source
Open Source
MIT
null
GraffitiMaps
ninjabit
TypeScript
Code
13
28
import {Profile} from "./profile"; export class User implements Meteor.User { profile?: Profile; }
31,602
https://github.com/harrisayoub/vaccination_ms/blob/master/resources/views/finance/index.blade.php
Github Open Source
Open Source
MIT
null
vaccination_ms
harrisayoub
PHP
Code
78
405
@extends('layout.app') @section('content') <h1> Finance Manager </h1> <button type="button" class="btn btn-default" onClick="document.location.href='finance/create'">Record Finances</button> <p> </p> @if(count($finances) > 0) <div class="well"> <table class="table"> <th...
3,235
https://github.com/deranjer/Py-Multi-Monit/blob/master/main.py
Github Open Source
Open Source
MIT
null
Py-Multi-Monit
deranjer
Python
Code
587
1,851
__author__ = 'deranjer' #import bs4 import datetime import urllib #import pprint #used for printing XML trees import xml.etree.ElementTree as ET #cElemetTree is depreciated apparently from Settings import serverList from flask import Flask, render_template, redirect app = Flask(__name__, template_folder='Templates') ...
16,107
https://github.com/samanca/YCSB/blob/master/tracegen/src/main/java/com/yahoo/ycsb/db/TraceGenClient.java
Github Open Source
Open Source
Apache-2.0
null
YCSB
samanca
Java
Code
398
1,165
/* */ package com.yahoo.ycsb.db; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Properties; import java.util.Set; import java.util.Vector; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicInteger; import java.io.*; import com.yahoo.y...
20,129
https://github.com/Song-Li/TAJS/blob/master/test-resources/src/flowgraphbuilder/switchWithCall.js
Github Open Source
Open Source
Apache-2.0
2,022
TAJS
Song-Li
JavaScript
Code
7
18
function f(){} switch (42){ case f(): }
24,978
https://github.com/agux/faix/blob/master/pstk/data/data7.py
Github Open Source
Open Source
MIT
null
faix
agux
Python
Code
820
3,192
from __future__ import print_function import mysql.connector import sys import sqlalchemy as sqla import numpy as np import pandas as pd import tensorflow as tf from pprint import pprint from time import strftime from data import connect ''' Features: OHLCVAX-LR + MA-LR(8*2) + SH & SZ indices-LR((6+8*2)*2) (7+16+44=6...
28,438
https://github.com/BesselStudio/coingecko/blob/master/src/main/scala/com/besselstudio/coingecko/model/global/Globaldata.scala
Github Open Source
Open Source
Apache-2.0
2,021
coingecko
BesselStudio
Scala
Code
44
186
package com.besselstudio.coingecko.model.global import com.besselstudio.coingecko.model.response.BaseResponse import play.api.libs.json.{Format, Json} case class Globaldata( activeCryptocurrencies: Long, upcomingIcos: Long, ongoingIcos: Long, endedIcos: Long, markets: Long, totalMarketCap: Map[String, Dou...
32,558
https://github.com/madedotcom/pygyver/blob/master/pygyver/etl/facebook.py
Github Open Source
Open Source
MIT
2,020
pygyver
madedotcom
Python
Code
957
3,080
"""Facebook API""" import os import json import logging import pandas as pd import time import numpy as np from datetime import datetime from facebook_business.api import FacebookAdsApi from facebook_business.adobjects.adaccount import AdAccount from facebook_business.adobjects.serverside.event import Event from facebo...
6,417
https://github.com/don-reba/peoples-note/blob/master/src/Test/src/MockVoiceEditorModel.h
Github Open Source
Open Source
BSD-2-Clause
null
peoples-note
don-reba
C
Code
11
36
#pragma once #include "IVoiceEditorModel.h" class MockVoiceEditorModel : public IVoiceEditorModel { };
31,696
https://github.com/markandrus/dynamodb-onetable/blob/master/samples/sensedeep/src/index.js
Github Open Source
Open Source
MIT
null
dynamodb-onetable
markandrus
JavaScript
Code
167
477
/* SenseDeep logging database access */ import DynamoDB from 'aws-sdk/clients/dynamodb.js' import { Table } from 'dynamodb-onetable' import Schema from './schema.js' const client = new DynamoDB.DocumentClient({ // Configure your credentials here or define AWS_PROFILE. region: 'us-east-1' }) /* Sing...
8,325
https://github.com/zhangxuchuan827/FNRouter/blob/master/FNRouter/FNRouter.h
Github Open Source
Open Source
Apache-2.0
2,021
FNRouter
zhangxuchuan827
C
Code
54
486
// // FNRouter.h // financialNews // // Created by 张绪川 on 2017/10/20. // Copyright © 2017年 NewsCenter. All rights reserved. // /** 推荐文件结构: |-ProjectDemo |-APPDelegate.h/m |-Modules(所有的业务模块) |-Resources、Tools、Libs(其他的资源插件静态库等) |-Models(存放工程中全部的模型文件) |-Models.h(将全部的模型文件在该头文件中添加引用) |-FNR...
31,983
https://github.com/sanjid29/health-declaration/blob/master/app/Mainframe/Modules/Spreads/Traits/SpreadObserverTrait.php
Github Open Source
Open Source
MIT
2,019
health-declaration
sanjid29
PHP
Code
7
34
<?php namespace App\Mainframe\Modules\Spreads\Traits; trait SpreadObserverTrait { }
8,273
https://github.com/hemendra-sharma/MiniTheater/blob/master/app/src/main/java/com/hemendra/minitheater/data/Subtitle.kt
Github Open Source
Open Source
Apache-2.0
null
MiniTheater
hemendra-sharma
Kotlin
Code
17
47
package com.hemendra.minitheater.data class Subtitle( var count: Int, var language: String, var name: String, var path: String )
2,315
https://github.com/raulfdm/calisthenic-routines-viewer/blob/master/src/components/ExerciseModal/CycleCounter.js
Github Open Source
Open Source
MIT
null
calisthenic-routines-viewer
raulfdm
JavaScript
Code
134
575
import React from 'react'; import styled from 'styled-components'; import { CardActions, CardContent, Button, InputAdornment, TextField, Typography } from '@material-ui/core'; const StyledCardActions = styled(CardActions)` justify-content: space-around; `; const CyclesContainer = styled.div` display: ...
21,285
https://github.com/dos1/card10-firmware/blob/master/lib/sdk/Documentation/html/group__EMCC__INVALIDATE.js
Github Open Source
Open Source
MIT
null
card10-firmware
dos1
JavaScript
Code
15
119
var group__EMCC__INVALIDATE = [ [ "MXC_F_EMCC_INVALIDATE_IA_POS", "group__EMCC__INVALIDATE.html#ga7435790d2c72c7778c26db6b238b3e8e", null ], [ "MXC_F_EMCC_INVALIDATE_IA", "group__EMCC__INVALIDATE.html#ga031778b1a487353b54585b14cdc166f9", null ] ];
30,894
https://github.com/parinhappy/faculty/blob/master/faculty-main/vendor/friendsofphp/php-cs-fixer/src/RuleSet/AbstractRuleSetDescription.php
Github Open Source
Open Source
MIT
2,022
faculty
parinhappy
PHP
Code
93
246
<?php declare(strict_types=1); /* * This file is part of PHP CS Fixer. * * (c) Fabien Potencier <fabien@symfony.com> * Dariusz Rumiński <dariusz.ruminski@gmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace PhpCsFixer\Rule...
16,592
https://github.com/tamchy/tamchy/blob/master/StreamBuffer.py
Github Open Source
Open Source
MIT
2,017
tamchy
tamchy
Python
Code
369
1,591
# -*- coding: utf-8 -*- import Queue import urllib2 import io import socket import pickle import StringIO class StreamBuffer: def __init__(self,is_server=False,unit_size=256*1024): #buffering -> is the amount of buffering units (1 unit = 512 kb) #stream_buffer - is the buffer with the structure taken from the Kyrg...
18,468
https://github.com/yanhick/intellij-haxe-nightly-builds/blob/master/hxcpp-debugger-protocol/src/JavaProtocol/src/haxe/io/Error.java
Github Open Source
Open Source
Apache-2.0
2,022
intellij-haxe-nightly-builds
yanhick
Java
Code
99
510
package haxe.io; import haxe.root.*; @SuppressWarnings(value={"rawtypes", "unchecked"}) public class Error extends haxe.lang.Enum { static { haxe.io.Error.constructs = new haxe.root.Array<java.lang.String>(new java.lang.String[]{"Blocked", "Overflow", "OutsideBounds", "Custom"}); haxe.io.Error.Blocked = new ha...
39,088
https://github.com/birkoff/cloud-instances/blob/master/test-git.py
Github Open Source
Open Source
MIT
2,019
cloud-instances
birkoff
Python
Code
857
3,000
import os import requests import boto3 import botocore from jinja2 import Template from json import loads, dumps def get_repo_contents(path, headers): resp = requests.get(path, headers=headers) if (100 <= resp.status_code < 600) and (resp.status_code != 200): print(resp.url) raise ConnectionE...
18,174
https://github.com/fracklen/chronomancer/blob/master/app/controllers/alert_integrations_controller.rb
Github Open Source
Open Source
MIT
null
chronomancer
fracklen
Ruby
Code
276
945
class AlertIntegrationsController < ApplicationController before_action :set_alert_integration, only: [:show, :edit, :update, :destroy] before_action :set_teams # GET /alert_integrations # GET /alert_integrations.json def index @alert_integrations = AlertIntegration.all return if authorizor.admin? ...
35,617
https://github.com/schultetwin1/pfctl-rs/blob/master/src/rule/gid.rs
Github Open Source
Open Source
Apache-2.0, MIT
2,022
pfctl-rs
schultetwin1
Rust
Code
152
503
// Copyright 2017 Amagicom AB. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to...
30,547
https://github.com/hyrin/getting_started_with_rails/blob/master/test/controllers/welcome_controller_test.rb
Github Open Source
Open Source
MIT
null
getting_started_with_rails
hyrin
Ruby
Code
19
57
require 'test_helper' class WelcomeControllerTest < ActionDispatch::IntegrationTest =begin test "should get index" do get welcome_index_url assert_response :success end =end end
9,483
https://github.com/arnaudcasame/myH5DAI/blob/master/hls_js/advanced/dai.js
Github Open Source
Open Source
Apache-2.0
null
myH5DAI
arnaudcasame
JavaScript
Code
1,508
4,285
// This stream will be played if ad-enabled playback fails. var BACKUP_STREAM = 'http://storage.googleapis.com/testtopbox-public/video_content/bbb/' + 'master.m3u8'; // Live stream asset key. var TEST_ASSET_KEY = 'sN_IYUG8STe1ZzhIIE_ksA'; // VOD content source and video IDs. var TEST_CONTENT_SOURCE_ID = '252...
41,904
https://github.com/Max135/Raytracer/blob/master/raytracer/features/Tuple/Color.h
Github Open Source
Open Source
MIT
2,021
Raytracer
Max135
C
Code
70
195
// // Created by Max on 2021-01-02. // #ifndef RAYTRACER_COLOR_H #define RAYTRACER_COLOR_H #include "Tuple.h" class Color : public Tuple { public: //FML // double& red = this->x; // double& green = this->y; // double& blue = this->z; Color(double red, double green, double blue); Color() {} ...
8,195
https://github.com/nadameu/pure-ts/blob/master/test/Array.test.ts
Github Open Source
Open Source
MIT
2,022
pure-ts
nadameu
TypeScript
Code
381
1,440
import * as fc from 'fast-check'; import { applicativeIdentity, constant } from '../src'; import { altArray, alternativeArray, applicativeArray, applyArray, array, bindArray, foldableArray, functorArray, makeEqArray, monadArray, monoidArray, plusArray, semigroupArray, traversableArray, } fro...
27,466
https://github.com/FlandreCirno/AzurLaneWikiUtilitiesManual/blob/master/AzurLaneData/zh-CN/gamecfg/guide/newguide/segments/s021.lua
Github Open Source
Open Source
MIT
null
AzurLaneWikiUtilitiesManual
FlandreCirno
Lua
Code
325
1,182
return { id = "S021", events = { { alpha = 0.19, style = { text = "前往<color=#ff7d36>编队</color>,将角色编入队伍", mode = 2, posY = 104.87, dir = 1, posX = 4.77 }, ui = { path = "OverlayCamera/Overlay/UIMain/toTop/frame/rightPanel/eventPanel/formationButton", pathIndex = -1, trigge...
31,832
https://github.com/tmteam/NFun/blob/master/src/NFun.ApiTests/FunnyVarTest.cs
Github Open Source
Open Source
MIT
2,021
NFun
tmteam
C#
Code
372
1,413
using System.Linq; using NFun.TestTools; using NFun.Types; using NUnit.Framework; namespace NFun.ApiTests { public class FunnyVarTest { [Test] public void GetAllVariables_CheckValues() { var runtime = Funny.Hardcore.Build("out1 = (10.0*x).toText()"); var allVariables = runtime.Variables; ...
38,978
https://github.com/PDXFinder/pdx-transformer/blob/master/src/main/java/org/pdxfinder/data/model/CurrentTherapy.java
Github Open Source
Open Source
Apache-2.0
null
pdx-transformer
PDXFinder
Java
Code
138
469
package org.pdxfinder.data.model; import javax.persistence.*; import java.sql.Date; @Entity @Table(name = "Currenttherapy") public class CurrentTherapy { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "currenttherapyseqnbr_Sequence") @SequenceGenerator(name = "currenttherapyseqnbr_Se...
11,278
https://github.com/ippoboi/jac-back/blob/master/src/models/user/dto/user-register.req.dto.ts
Github Open Source
Open Source
MIT
null
jac-back
ippoboi
TypeScript
Code
41
159
import { IsEmail, IsNotEmpty, Length, Matches } from 'class-validator'; import { MESSAGES, REGEX } from 'src/app.utils'; export class UserRegisterRequestDto { @IsNotEmpty() firstName: string; @IsNotEmpty() lastName: string; @IsNotEmpty() @IsEmail() email: string; @IsNotEmpty() @Length(6, 24) @Ma...
27,653
https://github.com/VisionTr2021/appclient/blob/master/app/n-closet/lib/models/currency/currency.dart
Github Open Source
Open Source
RSA-MD
2,022
appclient
VisionTr2021
Dart
Code
23
92
import 'package:json_annotation/json_annotation.dart'; part 'currency.g.dart'; class Currency { String code; String name; String symbol; Currency({this.code, this.name, this.symbol}); } @JsonLiteral('data.json') Map get getCurrencies => _$getCurrenciesJsonLiteral;
36,409
https://github.com/slepic/php-shopify-app-k/blob/master/src/Webhooks/InvalidWebhookRequestException.php
Github Open Source
Open Source
MIT
2,021
php-shopify-app-k
slepic
PHP
Code
10
44
<?php declare(strict_types=1); namespace Slepic\Shopify\Webhooks; class InvalidWebhookRequestException extends \Exception { }
9,522
https://github.com/ministryofjustice/laa-apply-for-legal-aid/blob/master/spec/services/proceeding_sync_service_spec.rb
Github Open Source
Open Source
MIT
2,022
laa-apply-for-legal-aid
ministryofjustice
Ruby
Code
201
1,317
require 'rails_helper' RSpec.describe ProceedingSyncService do let(:legal_aid_application) { create :legal_aid_application } let(:proceeding_type) { create :proceeding_type, :with_scope_limitations } let(:sync_service) { described_class.new(legal_aid_application.application_proceeding_types.first) } before do...
5,060
https://github.com/Rijkie86/search/blob/master/module/Application/src/Application/Controller/Plugin/IsAllowed.php
Github Open Source
Open Source
BSD-3-Clause
null
search
Rijkie86
PHP
Code
35
131
<?php namespace Application\Controller\Plugin; use Zend\Mvc\Controller\Plugin\AbstractPlugin; class IsAllowed extends AbstractPlugin { private $authorize; public function __construct(\Application\Permissions\Authorize $authorize) { $this->authorize = $authorize; } public function __invo...
4,050
https://github.com/laomu1988/todo/blob/master/src/js/index.js
Github Open Source
Open Source
MIT
null
todo
laomu1988
JavaScript
Code
134
494
$(function () { var loading = $('.loading'); function showList(template, result, msg) { msg = msg || '加载失败!'; loading.hide(); if (result && result.code == 0) { riot.mount('view', template, result.data); } else { web.message((result && result.messa...
6,084
https://github.com/sarifsystems/stark/blob/master/pkg/natural/natural.go
Github Open Source
Open Source
MIT
2,022
stark
sarifsystems
Go
Code
361
1,117
// Copyright (C) 2014 Constantin Schomburg <me@cschomburg.com> // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file. // Package natural contains a multitude of natural language parsers. package natural import ( "encoding/json" "fmt" "regexp" "strconv" "string...
4,725
https://github.com/intdata-bsc/idact/blob/master/idact/detail/slurm/run_scancel.py
Github Open Source
Open Source
MIT
2,019
idact
intdata-bsc
Python
Code
42
113
"""This module contains a function for running scancel on a node.""" from idact.core.nodes import Node def run_scancel(job_id: int, node: Node): """Cancels the job by running `scancel`. :param job_id: Job id to cancel :param node: Node to run scancel on. """ node.run...
36,220
https://github.com/hirokikondo86/think_v2/blob/master/var/www/client/src/containers/BoardHeader/Chat/ChatDialog.tsx
Github Open Source
Open Source
MIT
2,021
think_v2
hirokikondo86
TypeScript
Code
503
1,796
import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@material-ui/core/DialogActions'; import DialogContent from '@material-ui/core/DialogContent'; import DialogTitle from '@material-ui/core/DialogTitle'; import IconButton from '@material-ui/core/IconB...
442
https://github.com/petertseng/adventofcode/blob/master/02_presents.rb
Github Open Source
Open Source
Apache-2.0
2,020
adventofcode
petertseng
Ruby
Code
42
135
def paper(dimensions) sides = dimensions.combination(2).map { |c| c.reduce(:*) } sides.sum * 2 + sides.min end def ribbon(dimensions) dimensions.min(2).sum * 2 + dimensions.reduce(:*) end dimensions = ARGF.each_line.map { |line| line.split(?x).map(&method(:Integer)).freeze }.freeze puts dimensions.sum { |d| ...
40,260
https://github.com/SudoOmbro/PiccoloBot/blob/master/main.py
Github Open Source
Open Source
MIT
2,021
PiccoloBot
SudoOmbro
Python
Code
29
103
from telegram_stuff.telegram_bot import PiccoloBot from utils.filesystem import load_json from utils.globals import Globals def main(): settings = load_json("config") Globals.admins_list = settings["admins"] bot = PiccoloBot(settings["token"]) bot.start() if __name__ == '__main__': main()
38,835
https://github.com/skeleton1998/NaCl_prac/blob/master/app/models/concerns/board/association.rb
Github Open Source
Open Source
MIT
null
NaCl_prac
skeleton1998
Ruby
Code
14
56
module Concerns::Board::Association extend ActiveSupport::Concern included do belongs_to(:section) has_many(:comments, class_name: "BoardComment", dependent: :destroy) end end
30,836
https://github.com/aidandamerell/ruby-nmap/blob/master/lib/nmap/os_match.rb
Github Open Source
Open Source
MIT
2,022
ruby-nmap
aidandamerell
Ruby
Code
46
115
module Nmap # # Represents a match for a specific {OS}. # class OSMatch < Struct.new(:name, :accuracy) # # Converts the OS match to a String. # # @return [String] # The String form of the OS match. # def to_s "#{self.name} (#{self.accuracy}%)" end end end
1,214
https://github.com/DSDP/observatorio-electoral/blob/master/front/app/templates/data-entry/elections/elections/formulas/legislative.hbs
Github Open Source
Open Source
MIT
2,016
observatorio-electoral
DSDP
null
Spoken
53
275
<fieldset> <label> Fuerza Politica {{model-selector modelName='political-force' countryFilter=model.country.id value=formula.politicalForce labelPath="name" sigle=true}} </label> <fieldset class="province-poll"> <label> {{#if isDiputies}} Diputados {{else}} {{#if isSena...
36,678
https://github.com/sreejithpillai/HiveQueryMRJoin/blob/master/src/main/java/com/sreejith/mapreduce/utils/JoinConstants.java
Github Open Source
Open Source
Apache-2.0
2,017
HiveQueryMRJoin
sreejithpillai
Java
Code
31
81
package com.sreejith.mapreduce.utils; public interface JoinConstants { String PIPE = "|"; String TILDE = "~"; String CONSUMER = "C"; String PURCHASES = "P"; String TRANSACTION = "T"; String JOIN = "J"; }
15,394
https://github.com/Imasius/AICraft/blob/master/src/main/java/nimo/aic/proxy/ServerProxy.java
Github Open Source
Open Source
MIT
null
AICraft
Imasius
Java
Code
9
23
package nimo.aic.proxy; public class ServerProxy extends CommonProxy { }
7,290
https://github.com/reTHINK-project/dev-runtime-nodejs/blob/master/src/core.js
Github Open Source
Open Source
Apache-2.0
null
dev-runtime-nodejs
reTHINK-project
JavaScript
Code
494
1,260
/** * Copyright 2016 PT Inovação e Sistemas SA * Copyright 2016 INESC-ID * Copyright 2016 QUOBIS NETWORKS SL * Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V * Copyright 2016 ORANGE SA * Copyright 2016 Deutsche Telekom AG * Copyright 2016 Apizee * Copyright 2016 TECHNISCHE UNIVERSIT...
39,511
https://github.com/Bitoholic/Flying-C/blob/master/FlyingC/model/flight.cpp
Github Open Source
Open Source
MIT
null
Flying-C
Bitoholic
C++
Code
403
1,165
#include "flight.h" #include <math.h> using namespace std; namespace Model { static uint uniqueFlightId{ 1 }; /* * Stores the information about the flight. From one airport to another, tgoether with the depature and arrival time. */ /* * This functiion uses the Haversine foru...
6,768
https://github.com/CasparsTools/Khoryl/blob/master/src/main/java/me/limeglass/khoryl/lang/EntitySetEffect.java
Github Open Source
Open Source
Apache-2.0
2,022
Khoryl
CasparsTools
Java
Code
117
394
package me.limeglass.khoryl.lang; import org.bukkit.entity.Entity; import org.bukkit.event.Event; import org.eclipse.jdt.annotation.Nullable; import ch.njol.skript.Skript; import ch.njol.skript.log.ErrorQuality; import me.limeglass.khoryl.Khoryl; public abstract class EntitySetEffect<E extends Entity> extends SetEff...
9,474
https://github.com/triodjangopiter/junior/blob/master/chapter_006/src/test/java/cashForFiles/FileReadTest.java
Github Open Source
Open Source
Apache-2.0
2,019
junior
triodjangopiter
Java
Code
109
388
package cashForFiles; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; import java.io.File; import java.io.IOException; import java.io.RandomAccessFile; import java.nio.file.Files; import static com.oracle.tools.packager.IOUtils.deleteRecursive; import static org.hamcrest.core.Is.is;...
4,046
https://github.com/mk-js/mk-eap/blob/master/src/eap-common/src/main/java/com/mk/eap/common/domain/Context.java
Github Open Source
Open Source
MIT
null
mk-eap
mk-js
Java
Code
119
339
package com.mk.eap.common.domain; import java.io.Serializable; import java.util.Map; public class Context extends Token implements Serializable { /** * */ private static final long serialVersionUID = 1019895023777043336L; Token token; Map<String,String> query; Map<String,String> headers; String accessIP; ...
27,081
https://github.com/test-bench/test-bench-fixture/blob/master/test/automated/session_substitute/context_predicate.rb
Github Open Source
Open Source
MIT
null
test-bench-fixture
test-bench
Ruby
Code
88
256
require_relative '../automated_init' context "Session Substitute" do context "Context Predicate" do substitute = Fixture::Session::Substitute.build substitute.instance_exec do context "Some Context" do # end context "Other Context" do comment "Some Context" end e...
8,252
https://github.com/fridayy/tethys/blob/master/tethys-common/src/main/java/ninja/harmless/tethys/test/annotation/UnitTest.java
Github Open Source
Open Source
Apache-2.0
null
tethys
fridayy
Java
Code
25
65
package ninja.harmless.tethys.test.annotation; /** * Annotation to identify basic unit tests without spring integration. * * @author bnjm@harmless.ninja - 12/9/16. */ public @interface UnitTest { }
12,221
https://github.com/shreepaulnsg/MociPortal_staging_final/blob/master/offline/3.38/esri/themes/calcite/variables/_popovers.scss
Github Open Source
Open Source
Apache-2.0
null
MociPortal_staging_final
shreepaulnsg
SCSS
Code
18
124
$popover-arrow-width: 10px !default; $popover-arrow-color: $Calcite_Gray_050 !default; $popover-arrow-outer-width: ($popover-arrow-width + 1) !default; $popover-arrow-outer-color: fade_in(rgba(0,0,0,.15), 0.05) !default; $popover-arrow-outer-fallback-color: $Calcite_...
18,840
https://github.com/SinnerSchraderMobileMirrors/RestKit/blob/master/Examples/RKDiscussionBoardExample/discussion_board_backend/config/routes.rb
Github Open Source
Open Source
Apache-2.0
2,016
RestKit
SinnerSchraderMobileMirrors
Ruby
Code
21
74
DiscussionBoardBackend::Application.routes.draw do match 'login' => 'sessions#create' match 'logout' => 'sessions#destroy' match 'signup' => 'users#create' resources :topics do resources :posts end end
30,358
https://github.com/JaumeJofre76/NetbeansLinkia/blob/master/fechas/src/main/java/fechas.java
Github Open Source
Open Source
MIT
2,021
NetbeansLinkia
JaumeJofre76
Java
Code
86
217
import java.util.Calendar; import java.util.GregorianCalendar; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author brian */ public class fechas { /** * @pa...
13,391
https://github.com/danielsun1106/groovy-antlr4-grammar-optimized/blob/master/src/test/resources/Annotations_Issue30_2.groovy
Github Open Source
Open Source
Apache-2.0
2,020
groovy-antlr4-grammar-optimized
danielsun1106
Groovy
Code
48
171
import groovy.transform.Canonical @Deprecated import groovy.transform.ToString import groovy.util.logging.Log import java.beans.Transient @Log @Canonical class testNewlinedAnnotations {} class A { @Deprecated testAnnotationOnlyFieldDeclaration private @Deprecated String typedField def field...
15,558
https://github.com/Aayush-N/LeaveManagement/blob/master/leaves/migrations/0022_auto_20170720_2042.py
Github Open Source
Open Source
MIT
null
LeaveManagement
Aayush-N
Python
Code
64
403
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-07-20 20:42 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('leaves', '0021_auto_20170720_2036'), ] operations = [...
38,196
https://github.com/nealfennimore/postgres-express-node-gulp/blob/master/client/views/partials/navbar.hbs
Github Open Source
Open Source
MIT
null
postgres-express-node-gulp
nealfennimore
null
Spoken
55
233
<nav class="top-bar" data-topbar> <ul class="title-area"> <li class="name"> <h1><a href="/">Something</a></h1> </li> <li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li> </ul> <section class="top-bar-section"> <!-- Right Nav Section --> <ul clas...
11,601
https://github.com/KaiaHealth/braze_ruby/blob/master/lib/braze_ruby/version.rb
Github Open Source
Open Source
MIT
null
braze_ruby
KaiaHealth
Ruby
Code
9
36
# frozen_string_literal: true module BrazeRuby VERSION = '0.3.4.4'.freeze end
23,045
https://github.com/sinonsrt/hackathon-alfa-web/blob/master/resources/views/layout/template.blade.php
Github Open Source
Open Source
MIT
null
hackathon-alfa-web
sinonsrt
PHP
Code
295
1,756
<!doctype html> <html lang="pt-BR"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>Cherry Veículos</title> <!-- Bootstrap core CSS --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" ...
11,865
https://github.com/avid-ui/cli/blob/master/src/utils/format.ts
Github Open Source
Open Source
MIT
null
cli
avid-ui
TypeScript
Code
61
195
import prettier from 'prettier' import type { BuiltInParserName } from 'prettier' export const formatComponentName = (componentName: string) => { return componentName.split('-').length > 1 ? componentName .split('-') .map((name: string) => name.slice(0, 1).toUpperCase() + name.slice(1)) ....
11,373
https://github.com/cday97/beam/blob/master/src/main/scala/beam/agentsim/agents/ridehail/allocation/DefaultRideHailResourceAllocationManager.scala
Github Open Source
Open Source
BSD-3-Clause-LBNL
2,022
beam
cday97
Scala
Code
33
128
package beam.agentsim.agents.ridehail.allocation import beam.agentsim.agents.ridehail.RideHailManager class DefaultRideHailResourceAllocationManager(val rideHailManager: RideHailManager) extends RideHailResourceAllocationManager(rideHailManager) { // Only override proposeVehicleAllocation if you wish to do som...
3,859
https://github.com/javivilchis/javivilchisapp/blob/master/plugins/cordova-plugin-fcm/src/android/FCMPluginActivity.java
Github Open Source
Open Source
Apache-2.0
2,018
javivilchisapp
javivilchis
Java
Code
197
681
package com.gae.scaffolder.plugin; import android.app.Activity; import android.app.NotificationManager; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.os.Bundle; import android.preference.PreferenceManage...
15,120
https://github.com/calebmckay1/ds-bw-u3-personal/blob/master/app/api/viz.py
Github Open Source
Open Source
MIT
null
ds-bw-u3-personal
calebmckay1
Python
Code
81
243
from fastapi import APIRouter, HTTPException import pandas as pd import plotly.express as px import logging import pandas as pd from pydantic import BaseModel, Field, validator import os from dotenv import load_dotenv from app.spotify_client import SpotifyAPI load_dotenv() client_id = os.getenv("SPOTIPY_CLIENT_ID") c...
37,276
https://github.com/tran-temple/CIS3342-TermProject/blob/master/CIS3342-TermProject/UserControls/ImageUploadUC.ascx
Github Open Source
Open Source
MIT
null
CIS3342-TermProject
tran-temple
null
Spoken
17
105
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ImageUploadUC.ascx.cs" Inherits="CIS3342_TermProject.UserControls.ImageUploadUC" %> <label for="imageUpload" class="col-form-label"> Upload Image</label> <asp:FileUpload ID="FileUploadControl" runat="server" CssClass="form-control-file" />
21,775
https://github.com/WaveRadio/wm-front/blob/master/engine/cli/userman.php
Github Open Source
Open Source
CC-BY-3.0, Apache-2.0, BSD-3-Clause
2,019
wm-front
WaveRadio
PHP
Code
144
478
#!/usr/bin/env php <?php /* THIS SCRIPT IS FOR COMMAND-LINE USE ONLY DO NOT INVOKE IT WITH A WEB SERVER This script should be used in an emergency case of administrative user management. */ require_once (dirname(__FILE__).'/../enconfig.php'); require_once (WORK_PATH.'/database.php'); require_once (WORK_PATH...
43,738
https://github.com/DelipK/heroku-node/blob/master/module/client.js
Github Open Source
Open Source
MIT
null
heroku-node
DelipK
JavaScript
Code
35
154
var mongoose=require('mongoose'); var Schema =mongoose.Schema; var registration =new Schema ({ Name:{ type:String, unique:false, required:true }, MobileNumber:{ type:Number, unique:true, required:true }, Address:{ type:String, unique:fa...
34,568
https://github.com/infiniteblock/CalemiUtils-1.12.2/blob/master/src/main/java/calemiutils/util/helper/BlockHelper.java
Github Open Source
Open Source
Apache-2.0
2,019
CalemiUtils-1.12.2
infiniteblock
Java
Code
224
742
package calemiutils.util.helper; import calemiutils.item.ItemBuildersKit; import calemiutils.util.Location; import net.minecraft.block.Block; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumFacing; import net.minecraft....
3,785
https://github.com/ncou/Chiron-Template/blob/master/tests/AttributesTraitTest.php
Github Open Source
Open Source
MIT
2,018
Chiron-Template
ncou
PHP
Code
147
637
<?php declare(strict_types=1); namespace Chiron\Views\Tests; use Chiron\Views\Tests\Fixtures\TemplateRendererMock; use PHPUnit\Framework\TestCase; class AttributesTraitTest extends TestCase { protected $class; /** * Setup the tests. */ protected function setUp() { $this->class = n...
11,320
https://github.com/CK159/Webform-vue/blob/master/webform-vue/Application/ApiThingy.asmx
Github Open Source
Open Source
MIT
2,021
Webform-vue
CK159
null
Spoken
6
39
<%@ WebService Language="C#" CodeBehind="ApiThingy.asmx.cs" Class="WebformVue.ApiThingy" %>
11,458
https://github.com/Jinof/flash_card/blob/master/src/main.rs
Github Open Source
Open Source
MIT
null
flash_card
Jinof
Rust
Code
104
296
use std::{ io::Read, net::{TcpListener, TcpStream}, str, thread, }; fn main() { let address = "0.0.0.0:7878"; println!("Use flash card to help your learning !!!"); println!("flash card running at {}", &address); let listener = TcpListener::bind(&address).unwrap(); let mut pool = Pool:...
13,514
https://github.com/Ali-Parandeh/Data_Science_Playground/blob/master/Datacamp Assignments/NLP Skills Track/1. NLP Fundamentals/16_french_ner_polyglot.py
Github Open Source
Open Source
MIT
null
Data_Science_Playground
Ali-Parandeh
Python
Code
45
151
# Create the list of tuples: entities entities = [(ent.tag, ' '.join(ent)) for ent in txt.entities] # Print entities print(entities) """ <script.py> output: [('I-PER', 'Charles Cuvelliez'), ('I-PER', 'Charles Cuvelliez'), ('I-ORG', 'Bruxelles'), ('I-PER', 'l’IA'), ('I-PER', 'Julien Maldonato'), ('I-OR...
30,572
https://github.com/sonic-screwdriver-cd/data-schema/blob/master/test/api/status.test.js
Github Open Source
Open Source
BSD-3-Clause
2,020
data-schema
sonic-screwdriver-cd
JavaScript
Code
33
84
'use strict'; const { assert } = require('chai'); const { api } = require('../..'); const { validate } = require('../helper'); describe('api status', () => { it('status', () => { assert.isNull(validate('status.yaml', api.status).error); }); });
41,949
https://github.com/jhenifferaraujo20/app-consultas/blob/master/agenda/agenda-formulario-inserir.php
Github Open Source
Open Source
MIT
null
app-consultas
jhenifferaraujo20
PHP
Code
143
745
<?php include "../includes/cabecalho.php"; include "../includes/conexao.php"; ?> <h2 class="text-center mb-5">Agendar consulta</h2> <form name="formulario-inserir-consulta" method="post" action="agenda-inserir.php"> <div class="row justify-content-center"> <p class="col-md-4"> <label class="f...
7,621
https://github.com/daniel-butler/python-clean-architecture/blob/master/pca/utils/tests/collections/test_frozendict.py
Github Open Source
Open Source
MIT
null
python-clean-architecture
daniel-butler
Python
Code
138
495
from copy import copy import operator import pytest from pca.utils.collections import ( freeze, frozendict, ) def test_freeze(): collection = { '1': 1, 'list': [2, 3, 4], 'tuple': (5, 6), 'set': {7, 8}, 'dict': { '7': 9, '8': (10, 11), ...
39,454