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/StEvUgnIntv/adobe-webplatformy/blob/master/browser/external/Modernizr-master/feature-detects/css/transitions.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | adobe-webplatformy | StEvUgnIntv | JavaScript | Code | 10 | 46 | define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) {
Modernizr.addTest('csstransitions', testAllProps('transition'));
});
| 1,849 |
https://github.com/en0/pyecs/blob/master/examples/pong/providers/opts.py | Github Open Source | Open Source | MIT | null | pyecs | en0 | Python | Code | 12 | 42 | from typing import NamedTuple
class NetOpts(NamedTuple):
listen_port: int
publish_port: int
publish_addr: str
| 34,811 |
https://github.com/jagermesh/bright/blob/master/classes/BrResponse.php | Github Open Source | Open Source | MIT | null | bright | jagermesh | PHP | Code | 762 | 3,142 | <?php
/**
* Project: Bright framework
* Author: Jager Mesh (jagermesh@gmail.com)
*
* @version 2.0
* @package Bright Core
*/
namespace Bright;
class BrResponse extends BrObject
{
const EXPIRES_IMMEDIATELY = 'Mon, 26 Jul 1997 05:00:00 GMT';
const CACHE_CONTROL_NO_CACHE = 'no-cache, no-store, must-re... | 3,396 |
https://github.com/weblate/unity/blob/master/web-admin-common/src/main/java/io/imunity/webadmin/reg/forms/layout/FormLayoutEditor.java | Github Open Source | Open Source | BSD-3-Clause | 2,022 | unity | weblate | Java | Code | 457 | 1,952 | /*
* Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package io.imunity.webadmin.reg.forms.layout;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import com.vaadin.ui.... | 52,863 |
https://github.com/anthonyhl/rcscore/blob/master/src/main/com/orangelabs/rcs/core/ipcall/AudioCodecManager.java | Github Open Source | Open Source | Apache-2.0 | null | rcscore | anthonyhl | Java | Code | 521 | 1,443 | /*******************************************************************************
* Software Name : RCS IMS Stack
*
* Copyright (C) 2010 France Telecom S.A.
*
* 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 cop... | 28,442 |
https://github.com/vharsh/cattle2/blob/master/modules/caas/backend/src/main/java/io/cattle/platform/launcher/AuthServiceLauncher.java | Github Open Source | Open Source | Apache-2.0 | null | cattle2 | vharsh | Java | Code | 389 | 1,808 | package io.cattle.platform.launcher;
import com.netflix.config.DynamicBooleanProperty;
import com.netflix.config.DynamicPropertyFactory;
import com.netflix.config.DynamicStringProperty;
import io.cattle.platform.archaius.util.ArchaiusUtil;
import io.cattle.platform.core.dao.AccountDao;
import io.cattle.platform.core.d... | 4,321 |
https://github.com/divisi-security-poros/hology3-penyisihan-public/blob/master/forensics/basic-steg/script/random2.py | Github Open Source | Open Source | MIT | 2,020 | hology3-penyisihan-public | divisi-security-poros | Python | Code | 42 | 134 | # Lipsum
lipsum_file = open('lipsum-src.txt','r')
lipsum_out = open('random2.txt','w')
lipsum = lipsum_file.read()
line_length = 10
text_length = 10000
output = ''
index = 0
for char in lipsum :
if(char.isalpha() == True):
output += char
if(len(output) %line_length == 0):
output += '\n'
lips... | 18,497 |
https://github.com/ronenhamias/pipeline/blob/master/internal/federation/reconcile_crb.go | Github Open Source | Open Source | Apache-2.0 | null | pipeline | ronenhamias | Go | Code | 385 | 1,234 | // Copyright © 2019 Banzai Cloud
//
// 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 ... | 5,307 |
https://github.com/bobtwinkles/neovim/blob/master/scripts/run-functional-tests.py | Github Open Source | Open Source | Vim | null | neovim | bobtwinkles | Python | Code | 254 | 896 | # Run functional tests using lua, busted and the python client
import os
import sys
import textwrap
from lupa import LuaRuntime, as_attrgetter
from neovim import Nvim, spawn_session
# Extract arguments
busted_script = sys.argv[1]
busted_argv = sys.argv[2:]
# Setup a lua state for running busted
lua = LuaRuntime(un... | 44,827 |
https://github.com/defuj/Saean/blob/master/app/src/main/java/com/saean/app/search/RecentStoreModel.kt | Github Open Source | Open Source | MIT | null | Saean | defuj | Kotlin | Code | 24 | 50 | package com.saean.app.search
class RecentStoreModel {
var storePicture : String? = null
var storeID : String? = null
var time : Long? = null
} | 51,710 |
https://github.com/seokjoong-yoon/dnd-kit-toy-project/blob/master/node_modules/@dnd-kit/core/dist/hooks/monitor/useDndMonitor.d.ts | Github Open Source | Open Source | MIT | 2,021 | dnd-kit-toy-project | seokjoong-yoon | TypeScript | Code | 79 | 225 | /// <reference types="react" />
import { Action } from '../../store';
import type { DragStartEvent, DragCancelEvent, DragEndEvent, DragMoveEvent, DragOverEvent } from '../../types';
export interface Arguments {
onDragStart?(event: DragStartEvent): void;
onDragMove?(event: DragMoveEvent): void;
onDragOver?(e... | 36,408 |
https://github.com/almassapargali/aws-cdk/blob/master/packages/@aws-cdk/aws-codepipeline/test/artifacts.test.ts | Github Open Source | Open Source | Apache-2.0 | null | aws-cdk | almassapargali | TypeScript | Code | 718 | 2,224 | import { Match, Template } from '@aws-cdk/assertions';
import * as cdk from '@aws-cdk/core';
import * as codepipeline from '../lib';
import { FakeBuildAction } from './fake-build-action';
import { FakeSourceAction } from './fake-source-action';
/* eslint-disable quote-props */
describe('artifacts', () => {
describe... | 39,581 |
https://github.com/sarahjliu/cdp-backend/blob/master/cdp_backend/database/functions.py | Github Open Source | Open Source | MIT | 2,021 | cdp-backend | sarahjliu | Python | Code | 1,028 | 4,360 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
import pickle
from datetime import datetime
from hashlib import sha256
from typing import Any, List, Optional
import fireo
from fireo.models import Model
from google.cloud.firestore_v1.batch import WriteBatch
from google.cloud.firestore_v1.transaction impor... | 32,633 |
https://github.com/chaishi/tdesign-react/blob/master/src/anchor/_util/dom.ts | Github Open Source | Open Source | MIT | 2,022 | tdesign-react | chaishi | TypeScript | Code | 291 | 787 | import raf from 'raf';
import { easeInOutCubic, EasingFunction } from '../../_util/easing';
export type AnchorContainer = HTMLElement | Window;
export function getOffsetTop(target: HTMLElement, container: AnchorContainer) {
const { top } = target.getBoundingClientRect();
if (container === window) {
// 减去docum... | 7,111 |
https://github.com/Bryan-Guner-Backup/DOWN_ARCHIVE_V2/blob/master/LAMBDA_LABS/juxta-city-data-ds/findurcity/test/test_data/test_datasets.py | Github Open Source | Open Source | MIT | 2,021 | DOWN_ARCHIVE_V2 | Bryan-Guner-Backup | Python | Code | 59 | 254 | import os
import unittest
import pandas as pd
from datetime import date, timedelta
from dotenv import load_dotenv
load_dotenv()
FILEPATH = os.getenv("repo_filepath") + "findurcity/src/datasets/"
yesterday = (date.today() - timedelta(days=1)).strftime("%m-%d-%Y")
class TestDataShape(unittest.TestCase):
def te... | 13,992 |
https://github.com/Monarul007/mshop/blob/master/resources/views/checkout.blade.php | Github Open Source | Open Source | MIT | null | mshop | Monarul007 | PHP | Code | 554 | 3,177 | @extends('layouts.master')
@section('content')
<div class="container" style="margin-top: 30px;">
<div class="page-top-info">
<div class="breadcrumb"> <a href="index.html">Home </a> » <a href="#">Checkout </a> </div>
<div class="section-title">
<h3><span>Checkout</span></h3>
</... | 10,915 |
https://github.com/eubotas/kuyun/blob/master/kuyun-cms/kuyun-cms-web/src/main/resources/config.properties | Github Open Source | Open Source | MIT | 2,018 | kuyun | eubotas | null | Spoken | 6 | 61 | app.name=${app.name}
env=${profile.env}
kuyun-ui.path=${kuyun-ui.path}
### activeMq
AvtiveMQ.brokerURL=${AvtiveMQ.brokerURL} | 18,127 |
https://github.com/teddypickerfromul/wix-ui-lib/blob/master/tests/mocks/sdk/Wix.js.override.js | Github Open Source | Open Source | MIT | 2,016 | wix-ui-lib | teddypickerfromul | JavaScript | Code | 81 | 541 | if(Wix){
Wix.__disableStandaloneError__ = true;
Wix.Settings.getSiteColors = function(){
return [
{value:'#FFF', reference:'color-1'},
{value:'#666', reference:'color-2'},
{value:'#000', reference:'color-3'}
];
};
Wix.Styles.getStyleFontByReference = function(presetName){
return { fontFamil... | 9,748 |
https://github.com/AhmedAldahshoury/HololensApp/blob/master/DesignLabs_Unity_Examples/Assets/MRDesignLab/HUX/Scripts/Buttons/ButtonSounds.cs | Github Open Source | Open Source | MIT | 2,019 | HololensApp | AhmedAldahshoury | C# | Code | 225 | 751 | //
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
//
using UnityEngine;
namespace HUX.Buttons
{
/// <summary>
/// A convenient way to play sounds in response to button actions / states
/// </summary>
... | 55,784 |
https://github.com/danielezonca/drools-wb/blob/master/drools-wb-screens/drools-wb-dtable-xls-editor/drools-wb-dtable-xls-editor-backend/src/test/java/org/drools/workbench/screens/dtablexls/backend/server/conversion/GuidedDecisionTableGeneratorListenerTest.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | drools-wb | danielezonca | Java | Code | 7,041 | 39,109 | /*
* Copyright 2012 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 56,649 |
https://github.com/Khanhvuong8939/project/blob/master/GNT-Forval/trunk/ユーザサイト/01_code/ft30user/target/maven-archiver/pom.properties | Github Open Source | Open Source | Apache-2.0 | 2,019 | project | Khanhvuong8939 | null | Spoken | 12 | 46 | #Generated by Maven
#Tue Dec 25 16:40:31 ICT 2018
version=1.0
groupId=jp.co.forvaltel.user
artifactId=user
| 2,461 |
https://github.com/LordXaoca/StarlingGAFPlayer/blob/master/gaf/src/com/catalystapps/gaf/data/config/CTextureAtlasCSF.as | Github Open Source | Open Source | BSD-2-Clause | null | StarlingGAFPlayer | LordXaoca | null | Spoken | 190 | 684 | package com.catalystapps.gaf.data.config
{
/**
* @private
*/
public class CTextureAtlasCSF
{
//--------------------------------------------------------------------------
//
// PUBLIC VARIABLES
//
//--------------------------------------------------------------------------
//----------------------... | 40,907 |
https://github.com/saptakds/VMart/blob/master/vmart/src/main/java/com/tmsl/vmart/model/Cart.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | VMart | saptakds | Java | Code | 98 | 341 | package com.tmsl.vmart.model;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.... | 54,471 |
https://github.com/zhanght2008/Kline/blob/master/Kline/Texture.h | Github Open Source | Open Source | MIT | 2,015 | Kline | zhanght2008 | C++ | Code | 90 | 244 | #pragma once
namespace kl {
class Texture {
public:
Texture( const std::string &path, GLenum target );
Texture( unsigned int width, unsigned int height );
// Deprecated, use Texture(path, GL_TEXTURE_2D)
Texture( const std::string &path );
Texture( const std::string &posX,
const std::string &negX,
const st... | 29,018 |
https://github.com/GeekTeam-CN/mdui/blob/master/src/progress/less/spinner.less | Github Open Source | Open Source | MIT | 2,022 | mdui | GeekTeam-CN | Less | Code | 481 | 1,816 | /**
* =============================================================================
* ************ Progress Circular 圆形进度条 ************
* =============================================================================
*/
.mdui-spinner {
display: inline-block;
position: relative;
width: 28px;
height: 28px... | 23,066 |
https://github.com/geekhall/algorithms/blob/master/leetcode/01300-01399/01325_delete-leaves-with-a-given-value/Solution.ts | Github Open Source | Open Source | MIT | null | algorithms | geekhall | TypeScript | Code | 281 | 548 | /**
* ID: 01325
* Title: Delete Leaves With a Given Value
* Difficulty: Medium
* Description: Given a binary tree root and an integer target, delete all the leaf nodes with value target.
*
* Note that once you delete a leaf node with value target, if its parent node becomes a leaf node and has the value target... | 10,226 |
https://github.com/jmpantoja/prueba/blob/master/admin/components/Ad/Panel/Header.vue | Github Open Source | Open Source | MIT | null | prueba | jmpantoja | Vue | Code | 105 | 435 | <template>
<el-header>
<div class="logo aside-collapsable" :class="{'aside-collapsable__collapsed':closed}">
aqui el logo
</div>
<div class="left-menu">
<ad-panel-toggle/>
</div>
<div class="right-menu">
<ad-panel-profile/>
<ad-panel-language-switcher/>
</div>
</el-... | 7,935 |
https://github.com/parker-moore/BlockBusterz-Assets-Unity3D/blob/master/Block Buster/Assets/Animations/Gem Death.controller.meta | Github Open Source | Open Source | MIT | 2,019 | BlockBusterz-Assets-Unity3D | parker-moore | Unity3D Asset | Code | 14 | 77 | fileFormatVersion: 2
guid: 80876e2f44f72c74182f1bbc01338e0c
timeCreated: 1516063920
licenseType: Free
NativeFormatImporter:
mainObjectFileID: 9100000
userData:
assetBundleName:
assetBundleVariant:
| 52,870 |
https://github.com/ctjhoa/docfy/blob/master/packages/ember/addon/components/docfy-demo/description.hbs | Github Open Source | Open Source | MIT | 2,021 | docfy | ctjhoa | null | Spoken | 38 | 215 | <div class="docfy-demo__description" ...attributes>
<div class="docfy-demo__description__header">
{{#if @title}}
<h3 class="docfy-demo__description__header__title">
<a href="#{{@id}}">
<span class="icon icon-link"></span>
</a>
{{@title}}
</h3>
{{/if}}
{{#if @e... | 46,878 |
https://github.com/PleasingFungus/mde2/blob/master/src/Testing/Types/AddMemoryType.as | Github Open Source | Open Source | MIT | 2,015 | mde2 | PleasingFungus | null | Spoken | 102 | 394 | package Testing.Types {
import Values.OpcodeValue;
import Testing.Abstractions.InstructionAbstraction;
import Testing.Abstractions.AddMemoryAbstraction;
/**
* ...
* @author Nicholas "PleasingFungus" Feinberg
*/
public class AddMemoryType extends InstructionType {
public function AddMemoryType() {
sup... | 43,897 |
https://github.com/you-wren/ncbi_taxer/blob/master/fetch.py | Github Open Source | Open Source | MIT | null | ncbi_taxer | you-wren | Python | Code | 111 | 499 | #!/usr/bin/env python3
import os
import sys
import xml.etree.ElementTree as ET
from Bio import Entrez
Entrez.email = "kyclark@email.arizona.edu"
dbname = "BioSample"
args = sys.argv[1:]
if len(args) != 1:
print('Usage: {} ACCLIST'.format(os.path.basename(sys.argv[0])))
sys.exit(1)
acclist = args[0]
for i,... | 26,010 |
https://github.com/qjhart/spatial-cimis/blob/master/g.cimis/etc/linke.mk | Github Open Source | Open Source | MIT | 2,018 | spatial-cimis | qjhart | Makefile | Code | 227 | 998 | #! /usr/bin/make -f
# Can't configure as we are in heliosat? MAPSET, and test will fail
ifndef configure.mk
include configure.mk
endif
linke:=1
months:=January February March April May June July \
August September October November December
ifneq (${MAPSET},linke)
$(error MAPSET ${MAPSET} neq linke)
endif
... | 30,110 |
https://github.com/LeandroVidal1809/FinalPPS/blob/master/dist/vendor/funcion.js | Github Open Source | Open Source | MIT | 2,018 | FinalPPS | LeandroVidal1809 | JavaScript | Code | 5 | 15 | function call()
{
alert("asdas");
} | 17,363 |
https://github.com/tonghua209/samsun6410_linux_3_0_0_1_for_aws/blob/master/linux-3.0.1/arch/mips/ath79/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,021 | samsun6410_linux_3_0_0_1_for_aws | tonghua209 | Makefile | Code | 101 | 354 | #
# Makefile for the Atheros AR71XX/AR724X/AR913X specific parts of the kernel
#
# Copyright (C) 2008-2011 Gabor Juhos <juhosg@openwrt.org>
# Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License ... | 20,498 |
https://github.com/elliot-garnero/ecommerce-informatix/blob/master/assets/js/components/admin/MainBundles.js | Github Open Source | Open Source | MIT | null | ecommerce-informatix | elliot-garnero | JavaScript | Code | 219 | 959 | import React, { Component } from 'react';
import axios from 'axios';
import NavbarAdmin from './NavbarAdmin';
class MainBundles extends Component {
constructor(props) {
super(props);
this.state = {
bundles: [],
};
}
//DID_MOUNT
componentDidMount() {
this.getBundles();
}
//FUNCTIONS
... | 28,434 |
https://github.com/OsvaldoGDelRio/persona/blob/master/src/SegundoApellido.php | Github Open Source | Open Source | MIT | null | persona | OsvaldoGDelRio | PHP | Code | 41 | 147 | <?php
namespace src;
Class SegundoApellido
{
private $_apellido;
public function __construct(?string $Apellido = null)
{
$this->_apellido = $this->setApellido($Apellido);
}
public function segundoApellido(): string
{
return $this->_apellido;
}
private function setA... | 40,760 |
https://github.com/bcgov/NRPTI/blob/master/angular/projects/public-lng/src/app/explore-panel/explore-panel.component.ts | Github Open Source | Open Source | Apache-2.0 | 2,023 | NRPTI | bcgov | TypeScript | Code | 312 | 1,060 | import { Component, OnInit, Output, EventEmitter, Input, ChangeDetectorRef, OnDestroy } from '@angular/core';
import { FilterSection } from '../models/document-filter';
import { ActivatedRoute } from '@angular/router';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
@Component({
selector... | 49,943 |
https://github.com/eldolopes/Learning-Today/blob/master/crud/index.js | Github Open Source | Open Source | MIT | null | Learning-Today | eldolopes | JavaScript | Code | 89 | 302 | //REQUERIMENTOS INICIAIS PADRÃO DO PROJETO
const express = require('express')
const app = express()
const path = require('path')
const port = process.env.PORT || 3333
const mysql = require('mysql')
//const expressValidator = require('express-validator')
//app.use(expressValidator.body)
const pessoasRouter = require(... | 50,963 |
https://github.com/tool-recommender-bot/ldp4j/blob/master/framework/server/core/src/test/java/org/ldp4j/server/testing/fixture/TestingApplication.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | ldp4j | tool-recommender-bot | Java | Code | 200 | 793 | /**
* #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
* This file is part of the LDP4j Project:
* http://www.ldp4j.org/
*
* Center for Open Middleware
* http://www.centeropenmiddleware.com/
* #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
* ... | 48,160 |
https://github.com/getbouncer/getbouncer_dot_com/blob/master/src/components/Spacer/Spacer.jsx | Github Open Source | Open Source | MIT | 2,021 | getbouncer_dot_com | getbouncer | null | Spoken | 31 | 70 | import React from 'react'
import PropTypes from 'prop-types'
import Height from './styles'
const Spacer = ({ height }) => <Height height={height} />
Spacer.propTypes = {
height: PropTypes.number.isRequired,
}
export default Spacer
| 26,856 |
https://github.com/yxys01/interview/blob/master/5-Python综合/编写一个生成器,将一个二维列表转换为一维列表.py | Github Open Source | Open Source | MIT | 2,020 | interview | yxys01 | Python | Code | 62 | 398 | '''
Python生成器(主要作用是迭代)
本身是一个函数,和普通函数不同,普通函数需要通过return来返回值,而生成器需要用yield来迭代这个值
循环中一个一个获得迭代的值
'''
def myGenerator():
numList = [1,2,3,4,5,6,7,8]
for num in numList:
# return的话只能返回第一个值
yield num
# 将myGenrator生成器作为for循环中in后面的那个进行迭代
# 将生成器当成一个集合;每迭代一次,yield num就执行一次,执行完了就进行下一次的迭代
for num in myGenera... | 13,648 |
https://github.com/coulix/django-taggit-autosuggest_/blob/master/demo_project/posts/admin.py | Github Open Source | Open Source | MIT | null | django-taggit-autosuggest_ | coulix | Python | Code | 26 | 82 | from django.contrib import admin
from posts.models import Note
from posts.models import Post
class NoteInline(admin.TabularInline):
model = Note
class PostAdmin(admin.ModelAdmin):
inlines = [
NoteInline,
]
admin.site.register(Post, PostAdmin)
| 43,011 |
https://github.com/avpeshkov/my-react-js-tutorial/blob/master/src/components/HeaderComponent/index.ts | Github Open Source | Open Source | MIT | 2,021 | my-react-js-tutorial | avpeshkov | TypeScript | Code | 4 | 9 | export * from "./HeaderComponent";
| 21,614 |
https://github.com/digo-smithh/School-management-app/blob/master/Node-Rest-API/app/models/Aluno.model.js | Github Open Source | Open Source | MIT | 2,020 | School-management-app | digo-smithh | JavaScript | Code | 330 | 989 | const sql = require("./db.js");
/*const Matricula = require("./Matricula.model.js");*/
// Construtor
const Aluno = function (aluno) {
this.ra = aluno.ra;
this.nome = aluno.nome;
};
Aluno.create = (newAluno, result) => {
sql.query(
"INSERT INTO alunos VALUES(" + newAluno.ra + "," + newAluno.nome + ")",
(... | 47,928 |
https://github.com/dfar-io/error-reporting-plugin-for-nopcommerce/blob/master/4.40/versionInit.sh | Github Open Source | Open Source | MIT | null | error-reporting-plugin-for-nopcommerce | dfar-io | Shell | Code | 12 | 67 | chown root:root nopSource/ -R
dotnet sln nopSource/NopCommerce.sln add DFar.Plugin.Misc.ErrorReporting/DFar.Plugin.Misc.ErrorReporting.csproj
dotnet restore nopSource/NopCommerce.sln | 24,452 |
https://github.com/alexcos/symfony/blob/master/src/G4/UtilBundle/Exception/ReswebSystemException.php | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,013 | symfony | alexcos | PHP | Code | 93 | 226 | <?php
/**
* PHP version 5
*
* @category Allegiant
* @package G4.UtilBundle.Exception
* @author Georgiana Gligor <g@lolaent.com>
*/
namespace G4\UtilBundle\Exception;
/**
* Exception for resweb timeout
*/
class ReswebSystemException extends G4Exception
{
/**
* Create a new exception for resweb PROD... | 42,365 |
https://github.com/ommu/mod-mailer/blob/master/migrations/m210911_182534_mailer_module_create_table_mail_template_history.php | Github Open Source | Open Source | Apache-2.0 | null | mod-mailer | ommu | PHP | Code | 154 | 607 | <?php
/**
* m210911_182534_mailer_module_create_table_mail_template_history
*
* @author Putra Sudaryanto <putra@ommu.id>
* @contact (+62)856-299-4114
* @copyright Copyright (c) 2021 OMMU (www.ommu.id)
* @created date 11 September 2021, 18:25 WIB
* @link https://github.com/ommu/mod-mailer
*
*/
use Yii;
use yi... | 55,645 |
https://github.com/Tw1ddle/samcodes-consent-demo/blob/master/source/states/SampleSubState.hx | Github Open Source | Open Source | MIT | 2,021 | samcodes-consent-demo | Tw1ddle | Haxe | Code | 275 | 1,002 | package states;
import flixel.FlxG;
import flixel.FlxSubState;
import flixel.group.FlxSpriteGroup.FlxTypedSpriteGroup;
import flixel.util.FlxAxes;
import states.PlayState;
import consent.ConsentWrapper;
class SampleSubState extends FlxSubState {
private var created:Bool = false;
private var game:PlayState;
priva... | 35,228 |
https://github.com/JohanAOstbye/invoiceinfo/blob/master/src/components/Form/Areas/CommentsArea.tsx | Github Open Source | Open Source | MIT | null | invoiceinfo | JohanAOstbye | TypeScript | Code | 44 | 112 | import React from 'react';
import Area from '../../Area';
import TextArea from '../../Inputs/TextArea';
const CommentsArea = (): JSX.Element => (
<Area title="Kommentarer">
<TextArea
name="comments"
placeholder="Dersom dere har noen ønsker utover det som er fylt inn ovenfor, vennligst skriv her"
... | 2,850 |
https://github.com/walkinsky8/nana-runner/blob/master/runa/foundation/color/color_chooser_base.h | Github Open Source | Open Source | BSL-1.0 | 2,022 | nana-runner | walkinsky8 | C | Code | 82 | 277 | /**
* Runa C++ Library
* Copyright (c) 2017-2019 walkinsky:lyh6188(at)hotmail(dot)com
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
// Created on 2018/12/12
#pragma once
#include <runa/base/base.h>
#include... | 8,969 |
https://github.com/rahulsingh5/express-mongo-rest-api/blob/master/routes/userRoutes.ts | Github Open Source | Open Source | MIT | null | express-mongo-rest-api | rahulsingh5 | TypeScript | Code | 55 | 385 | const router = require('express-promise-router')();
import { Users } from '../controllers/users';
import { JoiValidators } from '../helpers/joiValidators';
function UserRoutes() {
router.route('/')
.get(Users.Index)
.post(JoiValidators.validateBody(JoiValidators.schema.userSchema), Users.NewUser)... | 7,379 |
https://github.com/minhnhat29109/project_laravel/blob/master/resources/views/backend/auth/login.blade.php | Github Open Source | Open Source | MIT | null | project_laravel | minhnhat29109 | PHP | Code | 294 | 1,641 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Sign Up Form by Colorlib</title>
<!-- Font Icon -->
<link rel="stylesheet" href="/form-login/fonts/m... | 23,633 |
https://github.com/berkgedik92/language_practice_application/blob/master/Server/src/test/java/MockRepositories/CategoryRepositoryMocker.java | Github Open Source | Open Source | MIT | null | language_practice_application | berkgedik92 | Java | Code | 138 | 572 | package MockRepositories;
import project.languageapp.Language.Model.Category;
import project.languageapp.Language.Repository.CategoryRepository;
import java.util.*;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.doAnswer;
public class CategoryRepositoryMocker {
private static... | 48,957 |
https://github.com/EdmondOng/main/blob/master/src/main/java/nasa/logic/commands/ClearCommand.java | Github Open Source | Open Source | MIT | null | main | EdmondOng | Java | Code | 54 | 155 | package nasa.logic.commands;
import static java.util.Objects.requireNonNull;
import nasa.model.Model;
import nasa.model.NasaBook;
/**
* Clears the nasa book.
*/
public class ClearCommand extends Command {
public static final String COMMAND_WORD = "clear";
public static final String MESSAGE_SUCCESS = "Nasa... | 46,347 |
https://github.com/Pinqvin/envalid-repro/blob/master/src/index.ts | Github Open Source | Open Source | MIT | null | envalid-repro | Pinqvin | TypeScript | Code | 47 | 145 | import { cleanEnv, json, makeValidator } from "envalid"
const custom = makeValidator((input): object => JSON.parse(input))
const env = cleanEnv(process.env, {
TEST: json({
default: "{}",
}),
TEST_CUSTOM: custom({
default: "{}" as any
})
});
if (require.main === module) {
console.l... | 38,051 |
https://github.com/yashin5/sciapi/blob/master/Makefile | Github Open Source | Open Source | MIT | null | sciapi | yashin5 | Makefile | Code | 52 | 194 | PHONY: up down build up-and-seed-db test-shell npm-deps
up: build
docker-compose up -d
build: down
docker-compose \
-f docker-compose.yml build
up-and-seed-db: up
docker exec sciapi_api npx seed -u 'mongodb://admin:admin@db:27017/admin' ./seed/
down:
docker-compose down -v --remove-orphans
test-shell:
dock... | 4,455 |
https://github.com/quazardous/imagestack-bundle/blob/master/ImageBackend/Factory/FileImageBackendFactory.php | Github Open Source | Open Source | MIT | 2,019 | imagestack-bundle | quazardous | PHP | Code | 42 | 175 | <?php
namespace Quazardous\ImagestackBundle\ImageBackend\Factory;
use Quazardous\ImagestackBundle\ImageBackend\ImageBackendFactoryInterface;
use ImageStack\ImageBackend\FileImageBackend;
class FileImageBackendFactory implements ImageBackendFactoryInterface
{
public function getType()
{
return 'file';... | 5,196 |
https://github.com/UWPCommunity/ComputeSharp/blob/master/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.cs | Github Open Source | Open Source | MIT | null | ComputeSharp | UWPCommunity | C# | Code | 1,173 | 4,471 | using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Threading;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
#if NET6_0_OR_GREATER
using RuntimeHelpers = System.Runtime.CompilerServices.RuntimeHelpers;
#else
using RuntimeHelpers = ComputeSharp.D2D1.Ne... | 10,437 |
https://github.com/bluehar/webextension-shell/blob/master/host/Makefile | Github Open Source | Open Source | Unlicense | 2,020 | webextension-shell | bluehar | Makefile | Code | 95 | 323 | name := webextension-shell
version := $(shell git describe --tags --always)
target := $(shell llvm-config --host-target)
static ?= no
ifeq ($(static),yes)
flags += --static
endif
default: build
all = chrome chromium brave firefox
all: install
chrome: build
scripts/install-manifest chrome
chromium: build
scrip... | 50,195 |
https://github.com/NikoHelle/helsinki-design-system/blob/master/packages/react/src/components/tabs/tabUtils.ts | Github Open Source | Open Source | MIT | 2,022 | helsinki-design-system | NikoHelle | TypeScript | Code | 185 | 329 | /**
* Get the child element based on it's index
* @param index The index of the child
* @param parent The parent element
*/
export const getChildByIndex = (index: number, parent: HTMLElement): HTMLElement => {
if (index !== null) {
const element = parent.children[index];
if (element !== null && element in... | 53,122 |
https://github.com/JeffreyBenjaminBrown/digraphs-with-text/blob/master/Hash/levels.hs | Github Open Source | Open Source | BSD-3-Clause | 2,020 | digraphs-with-text | JeffreyBenjaminBrown | Haskell | Code | 363 | 766 | module Experim where
import Control.Monad (void)
import Text.Megaparsec
import Text.Megaparsec.Expr
import Text.Megaparsec.String -- input stream is of type ‘String’
import qualified Text.Megaparsec.Lexer as L
import Data.Maybe
-- Goal: transform from a Hash statement (see the-hash-langua... | 53,051 |
https://github.com/xialideng/miniguava/blob/master/miniguava-collect/src/main/java/net/ypresto/miniguava/collect/Maps.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | miniguava | xialideng | Java | Code | 4,747 | 11,939 | /*
* Copyright (C) 2007 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 1,468 |
https://github.com/abhinavraj23/oppia-android/blob/master/app/src/main/java/org/oppia/app/options/RouteToStoryTextSizeListener.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | oppia-android | abhinavraj23 | Kotlin | Code | 21 | 59 | package org.oppia.app.options
/** Listener for when an activity should route to a [StoryTextSizeActivity]. */
interface RouteToStoryTextSizeListener {
fun routeStoryTextSize(storyTextSize: String?)
}
| 42,123 |
https://github.com/DocGerd/MoWiDi/blob/master/MoWiDi_Mobile/test/edu/kit/ibds/mowidi/AllTests.java | Github Open Source | Open Source | MIT | null | MoWiDi | DocGerd | Java | Code | 189 | 368 | /*
* @(#)AllTests.java
*
* This file is part of MoWiDi.
*
* MoWiDi 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 of the License, or
* (at your option) any later version.
*
* MoWiDi... | 43,558 |
https://github.com/jenarvaezg/eth_scrapper/blob/master/contracts/0x0e41c976f456ccb29c04e62ba70094d174f2b503.sol | Github Open Source | Open Source | Apache-2.0 | 2,018 | eth_scrapper | jenarvaezg | Solidity | Code | 210 | 589 |
//Address: 0x0e41c976f456ccb29c04e62ba70094d174f2b503
//Contract name: NoahDividend
//Balance: 0 Ether
//Verification Date: 3/30/2018
//Transacion Count: 26
// CODE STARTS HERE
pragma solidity ^0.4.16;
contract Ownable {
address public owner;
function Ownable() {
owner = msg.sender;
}
modifier onlyOwn... | 40,853 |
https://github.com/binref/refinery/blob/master/refinery/lib/dotnet/header.py | Github Open Source | Open Source | BSD-3-Clause | 2,023 | refinery | binref | Python | Code | 2,245 | 9,187 | # -*- coding: utf-8 -*-
"""
Parsing of the .NET header. The code is based on the description in [1].
References:
[1]: https://www.ntcore.com/files/dotnetformat.htm
"""
import pefile
from typing import List
from refinery.lib.dotnet.types import (
RawBytes,
Box,
Byte,
NullTerminatedString,
ParserE... | 13,844 |
https://github.com/ac872/search_api_processing/blob/master/data_collection/Processing.py | Github Open Source | Open Source | MIT | 2,021 | search_api_processing | ac872 | Python | Code | 344 | 937 | """
MIT License
Copyright (c) 2021 Arbri Chili
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | 8,754 |
https://github.com/ismail484/log-analysis/blob/master/analysis.py | Github Open Source | Open Source | MIT | null | log-analysis | ismail484 | Python | Code | 235 | 615 | #!/usr/bin/env python
import psycopg2
import bleach
import string
def connect(database_name="news"):
try:
"""Connect to the PostgreSQL database
Returns a database connection."""
db = psycopg2.connect("dbname={}".format(database_name))
c = db.cu... | 17,157 |
https://github.com/sinesiobittencourt/ruby-api-library/blob/master/test/test_department.rb | Github Open Source | Open Source | BSD-2-Clause-FreeBSD | null | ruby-api-library | sinesiobittencourt | Ruby | Code | 259 | 960 | #######################################################################
#
# Kayako Ruby REST API library
# _____________________________________________________________________
#
# @author Andriy Lesyuk
#
# @package KayakoClient
# @copyright Copyright (c) 2011-2015, Kayako
# @license FreeBSD
# @link ... | 53,581 |
https://github.com/hannguyen31011999/project_vue/blob/master/resources/js/components/backend/dashboard/DashBoardComponent.vue | Github Open Source | Open Source | MIT | null | project_vue | hannguyen31011999 | Vue | Code | 367 | 1,540 | <template>
<!-- Begin page -->
<div id="wrapper">
<navbarComponent></navbarComponent>
<menuComponent></menuComponent>
<!-- content -->
<div class="content-page">
<div class="content">
<!-- Start Content-->
<div class="container-fluid">
<!-- start page title -->
... | 5,700 |
https://github.com/ALiangLiang/messenger-router/blob/master/lib/methods.js | Github Open Source | Open Source | MIT | null | messenger-router | ALiangLiang | JavaScript | Code | 64 | 178 | /*!
* methods
* Copyright(c) 2013-2014 TJ Holowaychuk
* Copyright(c) 2015-2016 Douglas Christopher Wilson
* Copyright(c) 2017 ALiangLiang
* MIT Licensed
*/
'use strict'
/**
* Module exports.
* @public
*/
module.exports = getBasicNodeMethods()
/**
* Get the types of messenger platform webhook.
* @private
... | 35,001 |
https://github.com/BambeeHR/pollen/blob/master/src/components/CountersignIcon/index.js | Github Open Source | Open Source | MIT | 2,022 | pollen | BambeeHR | JavaScript | Code | 7 | 25 | import CountersignIcon from './CountersignIcon.vue';
export default CountersignIcon;
| 27,627 |
https://github.com/a-morsalin/codeigniter_crud/blob/master/codeigniter_db.sql | Github Open Source | Open Source | MIT | null | codeigniter_crud | a-morsalin | SQL | Code | 337 | 1,028 | -- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 05, 2017 at 07:11 AM
-- Server version: 10.1.25-MariaDB
-- PHP Version: 7.1.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | 2,077 |
https://github.com/Andreas237/AndroidPolicyAutomation/blob/master/ExtractedJars/Health_com.huawei.health/smali_classes4/com/huawei/healthcloud/plugintrack/ui/fragment/TrackScreenFrag$2$1.smali | Github Open Source | Open Source | MIT | 2,019 | AndroidPolicyAutomation | Andreas237 | Smali | Code | 203 | 1,253 | .class Lcom/huawei/healthcloud/plugintrack/ui/fragment/TrackScreenFrag$2$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/huawei/healthcloud/plugintrack/ui/fragment/TrackScreenFrag$2;-... | 6,379 |
https://github.com/RubenKoberNY/phpSlim/blob/master/repositories/CooperRepository.php | Github Open Source | Open Source | MIT | null | phpSlim | RubenKoberNY | PHP | Code | 10 | 27 | <?php
class CooperRepository
{
public function __construct()
{
}
}
| 7,191 |
https://github.com/dmgerman/fn/blob/master/src/main/java/org/jabref/gui/preferences/EntryEditorTabView.java | Github Open Source | Open Source | MIT | null | fn | dmgerman | Java | Code | 519 | 2,715 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_package
DECL|package|org.jabref.gui.preferences
package|package
name|org
operator|.
name|jabref
operator|.
name|gui
operator|.
name|preferences
package|;
end_package
begin_import
import|import
name|javafx
operator|.
name|fxml
operator|.
name|FXML
impor... | 46,470 |
https://github.com/hoangviet1993/juniordevstrugglebus/blob/master/src/components/Events/index.old.js | Github Open Source | Open Source | MIT | 2,020 | juniordevstrugglebus | hoangviet1993 | JavaScript | Code | 241 | 667 | import React, { Component } from "react";
import axios from "axios";
// Currently unused
// import styled from "styled-components";
import Event from "./Event";
// Currently Unused
// import { SkeletonLine } from '../UI/Skeleton'
// Currently unused
// const WebLink = styled.a`
// color:white;
// transition:.3s;
//... | 22,882 |
https://github.com/anthonyec/bigscreen/blob/master/main_process/poll_url/index_spec.js | Github Open Source | Open Source | MIT | 2,022 | bigscreen | anthonyec | JavaScript | Code | 594 | 2,023 | const fs = require('fs');
const { expect } = require('chai');
const sinon = require('sinon');
const Chance = require('chance');
const request = require('request');
const poll = require('./');
const chance = new Chance();
describe('Poll URL', () => {
let clock;
let sandbox;
beforeEach(() => {
clock = sino... | 51,099 |
https://github.com/CONNECT-platform/marked/blob/master/src/test/image.test.tsx | Github Open Source | Open Source | MIT | 2,021 | marked | CONNECT-platform | TypeScript | Code | 291 | 1,044 | import { expect, should } from 'chai'; should();
import jsdom from 'jsdom-global';
import { Renderer } from '@connectv/html';
import { marked } from '../index';
import { ImageOptions } from '../inline';
describe('marked() [Image]', () => {
beforeEach(function() {
this.jsdom = jsdom();
(global as any).Muta... | 53,294 |
https://github.com/zachhardesty7/eslint-config-hardesty/blob/master/tests/2.jsx | Github Open Source | Open Source | MIT | null | eslint-config-hardesty | zachhardesty7 | null | Spoken | 19 | 46 | /* eslint-disable import/no-unresolved */
import React from 'React'
export const FC = () => (
<div>
Text
</div>
)
| 27,844 |
https://github.com/xibo-sun/VTR_with_Yosys/blob/master/vtr@2780988/vtr_flow/scripts/perl_libs/XML-TreePP-0.41/t/53_empty_text_node.t | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT, MIT-Modern-Variant, Artistic-1.0-Perl, GPL-1.0-or-later | 2,023 | VTR_with_Yosys | xibo-sun | Perl | Code | 60 | 203 | # ----------------------------------------------------------------
use strict;
use Test::More;
# ----------------------------------------------------------------
my $tree1 = {root=>{-attr=>'val', "#text"=>""}};
my $tree2 = {root=>{-attr=>'val', "#text"=>undef}};
# ---------------------------------------... | 2,197 |
https://github.com/page4me/transport/blob/master/app/Http/Controllers/osk/KategorieController.php | Github Open Source | Open Source | MIT | null | transport | page4me | PHP | Code | 445 | 1,693 | <?php
namespace App\Http\Controllers\osk;
use App\Models\KategorieIns;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Alert;
class KategorieController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public funct... | 43,576 |
https://github.com/armoin2018/hiveid-ap/blob/master/node.settings.secure.js | Github Open Source | Open Source | MIT | 2,019 | hiveid-ap | armoin2018 | JavaScript | Code | 201 | 779 | var fs = require("fs");
module.exports = {
uiPort: process.env.PORT || 1880,
mqttReconnectTime: 15000,
serialReconnectTime: 15000,
debugMaxLength: 1000,
debugUseColors: true,
flowFilePretty: true,
userDir: '/home/pi/.node-red/',
nodesDir: '/home/pi/.node-red/nodes',
httpStatic: ... | 14,727 |
https://github.com/qlik-oss/catwalk/blob/master/src/components/hypercube-table.pcss | Github Open Source | Open Source | MIT | 2,022 | catwalk | qlik-oss | null | Spoken | 158 | 651 | .hypercube-table {
box-sizing: border-box;
color: #333;
display: flex;
flex: 0 0 auto;
font-size: 1.5rem;
outline: none;
position: relative;
.ReactVirtualized__Table__headerColumn {
background-color: #fafafa;
border-bottom: 1px solid var(--primary-color-dark);
border-right: 1px solid var(--... | 12,525 |
https://github.com/yisun1900/ROOT/blob/master/jcodesx/datawindow/DeleteDW.jsp | Github Open Source | Open Source | Apache-2.0 | 2,017 | ROOT | yisun1900 | null | Spoken | 92 | 492 | <%@ page contentType="text/html;charset=gb2312" %>
<%@ page import='java.sql.*,ybl.sql.connection.*' %>
<jsp:useBean id="cf" scope="page" class="ybl.common.CommonFunction"/>
<html>
<head>
<title>请输入查询条件</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF">
... | 9,417 |
https://github.com/tobaccos/chengyue/blob/master/public/js/home/loginres/register.js | Github Open Source | Open Source | MIT | 2,017 | chengyue | tobaccos | JavaScript | Code | 164 | 720 | var uName,uEmail,passWord,passwordConfirm;
$("#emailreg input").keyup(function () {
uName = $("#name").val();
uEmail = $("#email").val();
passWord = $("#password").val();
passwordConfirm = $("#password-confirm").val();
if(uName != "" && uEmail != "" && passWord != "" && passwordConfirm != "" && 6 <... | 55,278 |
https://github.com/2gis/whalestack/blob/master/docker/fleet-unit-files/glance-registry@1.service | Github Open Source | Open Source | BSD-2-Clause | 2,016 | whalestack | 2gis | null | Spoken | 60 | 286 | Description=Component glance-registry of service glance
[Service]
TimeoutStartSec=20m
EnvironmentFile=/etc/environment
ExecStartPre=-/bin/sh -c "/usr/bin/docker stop glance-registry%i"
ExecStartPre=-/bin/sh -c "/usr/bin/docker rm glance-registry%i"
ExecStartPre=-/bin/sh -c "IMAGE=$(etcdctl get /services/glance/config/... | 26,841 |
https://github.com/alkharashiam/hotchocolate/blob/master/src/HotChocolate/Stitching/test/Stitching.Tests/Middleware/__snapshots__/DelegateToRemoteSchemaMiddlewareTests.ExecuteStitchingQueryWithArguments.snap | Github Open Source | Open Source | MIT | 2,021 | hotchocolate | alkharashiam | null | Spoken | 26 | 159 | {
"Data": {
"contracts": [
{
"id": "TGlmZUluc3VyYW5jZUNvbnRyYWN0CmQx"
},
{
"id": "TGlmZUluc3VyYW5jZUNvbnRyYWN0CmQy"
},
{
"id": "U29tZU90aGVyQ29udHJhY3QKZDE="
}
]
},
"Errors": null,
"Extensions": null,
"ContextData": null
}
| 8,973 |
https://github.com/gpmd/zf2/blob/master/tests/Zend/Http/Header/ContentLanguageTest.php | Github Open Source | Open Source | BSD-3-Clause | 2,015 | zf2 | gpmd | PHP | Code | 82 | 355 | <?php
namespace ZendTest\Http\Header;
use Zend\Http\Header\ContentLanguage;
class ContentLanguageTest extends \PHPUnit_Framework_TestCase
{
public function testContentLanguageFromStringCreatesValidContentLanguageHeader()
{
$contentLanguageHeader = ContentLanguage::fromString('Content-Language: xxx')... | 36,908 |
https://github.com/lovecloudroc/ssm/blob/master/src/main/resources/jdbc.properties | Github Open Source | Open Source | Apache-2.0 | 2,020 | ssm | lovecloudroc | null | Spoken | 9 | 123 | #连接数据库四要素
#驱动
jdbc.driver=com.mysql.cj.jdbc.Driver
#路径
jdbc.url=jdbc:mysql://127.0.0.1:3306/javakc80?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false
#账号
jdbc.username=root
#密码
jdbc.password=123456 | 12,191 |
https://github.com/BlakeHolifield/clowder/blob/master/controllers/cloud.redhat.com/clowdjobinvocation_controller.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | clowder | BlakeHolifield | Go | Code | 1,548 | 5,299 | /*
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, software
distributed under the License... | 31,024 |
https://github.com/philicheese2003/ToontownProjectAltisServer/blob/master/toontown/shtiker/ItemsPage.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | ToontownProjectAltisServer | philicheese2003 | Python | Code | 677 | 4,051 | '''
Created on Jan 30, 2017
@author: Drew
'''
from panda3d.core import *
from toontown.shtiker import ShtikerPage
from toontown.toonbase import ToontownGlobals
from toontown.toonbase import TTLocalizer
from direct.directnotify import DirectNotifyGlobal
from direct.gui.DirectGui import *
from direct.gui import DirectGu... | 32,582 |
https://github.com/wxz-dream/whattime/blob/master/whatime/src/com/whatime/module/books/FriendInfoActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | whattime | wxz-dream | Java | Code | 428 | 2,077 | package com.whatime.module.books;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import java.util.TimeZone;
import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EActivity;
import org.androidannot... | 48,303 |
https://github.com/okrag/okrag-utils/blob/master/src/crypto/generateAesKey.ts | Github Open Source | Open Source | MIT | null | okrag-utils | okrag | TypeScript | Code | 63 | 225 | import { getUsage, Key, AES_ALGORITHM } from ".";
import { crypto } from "../pollyfills";
import { utf8ToArrayBuffer } from "../buffers";
export const generateAesKey = async (passphrase?: string) => {
if (!passphrase)
return new Key(await crypto.subtle.generateKey(AES_ALGORITHM, true, getUsage("secret")));
con... | 49,095 |
https://github.com/Prajithp/aws-sdk-perl/blob/master/auto-lib/Paws/CodeStar/AssociateTeamMemberResult.pm | Github Open Source | Open Source | Apache-2.0 | 2,022 | aws-sdk-perl | Prajithp | Perl | Code | 67 | 171 |
package Paws::CodeStar::AssociateTeamMemberResult;
use Moose;
has ClientRequestToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientRequestToken' );
has _request_id => (is => 'ro', isa => 'Str');
### main pod documentation begin ###
=head1 NAME
Paws::CodeStar::AssociateTeam... | 31,971 |
https://github.com/jandauz/zero-trust/blob/master/setup/Makefile | Github Open Source | Open Source | MIT | 2,021 | zero-trust | jandauz | Makefile | Code | 592 | 1,966 | DOMAIN ?=example.com
DAPR_RUNTIME ?=latest
DAPR_HA ?=true
DAPR_LOG_AS_JSON ?=true
INGRESS_NAMESPACE ?=traefik
.PHONY: all
all:
@echo === ACTIVE CONFIGURATION ===
@echo "DOMAIN ${DOMAIN}"
@echo "DAPR_RUNTIME: ${DAPR_RUNTIME}"
@echo "DAPR_HA: ${DAPR_HA}"
@echo "DAPR_LOG_AS_JSON: ${DAPR_LOG_AS_JSON}"
@ec... | 25,031 |
https://github.com/epicallan/learn-idris/blob/master/tdd/src/Part1/Sec1.hs | Github Open Source | Open Source | MIT | 2,019 | learn-idris | epicallan | Haskell | Code | 90 | 184 | module Part1.Sec1
( getStringOrInt
, valToString
) where
import Data.Kind (Type)
type family StringOrInt (a :: Bool) :: Type where
StringOrInt 'True = Int
StringOrInt 'False = Text
data SBool (b :: Bool) where
STrue :: SBool 'True
SFalse :: SBool 'False
getStringOrInt :: forall (... | 20,336 |
https://github.com/asakusafw/asakusafw/blob/master/operator/core/src/test/java/com/asakusafw/operator/MockSource.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | asakusafw | asakusafw | Java | Code | 177 | 400 | /**
* Copyright 2011-2021 Asakusa Framework Team.
*
* 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... | 42,742 |
https://github.com/belesagar/thewadmin/blob/master/resources/views/admin/merchant_activation.blade.php | Github Open Source | Open Source | MIT | 2,018 | thewadmin | belesagar | Blade | Code | 3,649 | 16,402 | @extends('admin.layouts.header')
@section('title', 'Page Title')
@section('css')
<style>
/* Always set the map height explicitly to define the size of the div element that contains the map. */
#map { height: 100%; }
html, body { height: 100%; margin: 0; padding: 0; }
.controls { background-color: #fff... | 48,511 |
https://github.com/daly4/hedera_rust_client/blob/master/src/transaction_fee_schedule.rs | Github Open Source | Open Source | MIT | 2,022 | hedera_rust_client | daly4 | Rust | Code | 759 | 2,019 | use num_traits::{FromPrimitive, ToPrimitive};
use std::convert::{TryFrom, TryInto};
use crate::error::HederaError;
use crate::fee_data::FeeData;
use crate::proto::services::{
FeeData as ProtoFeeData, TransactionFeeSchedule as ProtoTransactionFeeSchedule,
};
use crate::proto::ToProto;
#[derive(Debug, Clone)]
pub s... | 37,836 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.