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/worldsnas/AIO/blob/master/kotlintesthelpers/src/main/java/com/worldsnas/kotlintesthelpers/AssertJExt.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | AIO | worldsnas | Kotlin | Code | 15 | 68 | package com.worldsnas.kotlintesthelpers
import org.assertj.core.api.SoftAssertions
fun softAssert(block : SoftAssertions.()->Unit){
val soft = SoftAssertions()
block(soft)
soft.assertAll()
} | 42,968 |
https://github.com/SeitaBV/flexmeasures/blob/master/flexmeasures/cli/db_ops.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | flexmeasures | SeitaBV | Python | Code | 432 | 1,490 | """CLI Tasks for saving, resetting, etc of the database"""
from datetime import datetime
import subprocess
from flask import current_app as app
from flask.cli import with_appcontext
import flask_migrate as migrate
import click
BACKUP_PATH = app.config.get("FLEXMEASURES_DB_BACKUP_PATH")
@click.group("db-ops")
def ... | 23,789 |
https://github.com/ygg404/vansys/blob/master/src/views/modules/autograph/page.vue | Github Open Source | Open Source | MIT | null | vansys | ygg404 | Vue | Code | 271 | 1,180 | <template>
<div>
<div class="boardBox" ref="boardBox">
<canvas ref="board"
@touchstart="mStart"
@touchmove="mMove"
@touchend="mEnd">
</canvas>
</div>
<van-row type="flex" justify="center">
<van-col span="8">
<van-button @click="cleanText(... | 21,876 |
https://github.com/kjmrknsn/beam/blob/master/sdks/python/apache_beam/utils/thread_pool_executor.py | Github Open Source | Open Source | Apache-2.0 | null | beam | kjmrknsn | Python | Code | 680 | 1,684 | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 33,213 |
https://github.com/liferay/liferay-faces-bridge-api/blob/master/bridge-api/src/main/java/javax/portlet/faces/event/EventNavigationResult.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | liferay-faces-bridge-api | liferay | Java | Code | 388 | 837 | /**
* Copyright (c) 2000-2021 Liferay, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 10,240 |
https://github.com/Fendo181/Casablanca_MVC/blob/master/PHPStudy1.0/User.php | Github Open Source | Open Source | MIT | null | Casablanca_MVC | Fendo181 | PHP | Code | 10 | 29 | <?php
class User
{
function sayHi(){
print "Hi!hello!";
}
} | 1,100 |
https://github.com/kamarain/rgbd_dense_slam-code/blob/master/src/gputracker/utils/rendering/LineBuffer.h | Github Open Source | Open Source | MIT | 2,020 | rgbd_dense_slam-code | kamarain | C | Code | 252 | 567 | /*
rgbd-tracker
Copyright (c) 2014, Tommi Tykkälä, All rights reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3.0 of the License, or (at your option) any later version... | 21,628 |
https://github.com/cedrickring/kbuild/blob/master/example/test.sh | Github Open Source | Open Source | Apache-2.0 | 2,020 | kbuild | cedrickring | Shell | Code | 23 | 51 | #!/usr/bin/env bash
if [[ $# == 0 ]]; then
echo "Please provide docker repository as first parameter"
exit 0
fi
kbuild -t $1/test:latest | 1,868 |
https://github.com/cheng-li/pyramid/blob/master/core/src/main/java/edu/neu/ccs/pyramid/application/CBMEval.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | pyramid | cheng-li | Java | Code | 246 | 1,295 | package edu.neu.ccs.pyramid.application;
import edu.neu.ccs.pyramid.configuration.Config;
import edu.neu.ccs.pyramid.dataset.DataSetType;
import edu.neu.ccs.pyramid.dataset.MultiLabel;
import edu.neu.ccs.pyramid.dataset.MultiLabelClfDataSet;
import edu.neu.ccs.pyramid.dataset.TRECFormat;
import edu.neu.ccs.pyramid.eva... | 16,632 |
https://github.com/beauseate/leetcodeanswers/blob/master/src/SCSS/NavBar.scss | Github Open Source | Open Source | Unlicense | null | leetcodeanswers | beauseate | SCSS | Code | 45 | 162 | .navbar a {
text-decoration: underline;
color: white;
}
.navbar {
display: inline-block;
align-items: center;
background: #17141d;
color: white;
font-family: Helvetica;
font-weight: 300;
padding: 3rem;
padding-bottom: 0;
}
.navbar__title {
margin-right: 2rem;
font-... | 1,559 |
https://github.com/minagisyu/SmartAudioPlayerFx/blob/master/SmartAudioPlayer Fx/__Primitives__/[Windows]/WinAPI/COM/IFilterGraph.cs | Github Open Source | Open Source | Unlicense | 2,016 | SmartAudioPlayerFx | minagisyu | C# | Code | 64 | 270 | using System;
using System.Runtime.InteropServices;
using System.Security;
namespace __Primitives__
{
partial class WinAPI
{
partial class COM
{
[ComImport]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("56a8689f-0ad4-11ce-b03a-0020af0ba770")]
[SuppressUnmanagedCodeSecurity]
public i... | 7,886 |
https://github.com/rsiem/Safe-Point/blob/master/SafePoint/SafePoint/App_Start/BundleConfig.cs | Github Open Source | Open Source | MIT | null | Safe-Point | rsiem | C# | Code | 114 | 596 | using System.Web;
using System.Web.Optimization;
namespace SafePoint
{
public class BundleConfig
{
// For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new Script... | 37,793 |
https://github.com/fluxility/drf-haystack/blob/master/tests/test_utils.py | Github Open Source | Open Source | MIT | 2,019 | drf-haystack | fluxility | Python | Code | 101 | 402 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.test import TestCase
from drf_haystack.utils import merge_dict
class MergeDictTestCase(TestCase):
def setUp(self):
self.dict_a = {
"person": {
"lastname": "Holmes",
... | 16,271 |
https://github.com/andyrichardson/sanity/blob/master/packages/@sanity/components/src/fieldsets/story.js | Github Open Source | Open Source | MIT | null | sanity | andyrichardson | JavaScript | Code | 46 | 230 | import {storiesOf} from 'part:@sanity/storybook'
import {withKnobs} from 'part:@sanity/storybook/addons/knobs'
import {CollapsibleStory} from './stories/collapsible'
import {ColumnsStory} from './stories/columns'
import {DefaultStory} from './stories/default'
import {DeeplyNestedStory} from './stories/deeplyNested'
im... | 34,376 |
https://github.com/khs1994-php/pickle/blob/master/tests/units/Config.php | Github Open Source | Open Source | BSD-3-Clause | 2,020 | pickle | khs1994-php | PHP | Code | 134 | 999 | <?php
namespace Pickle\tests\units;
use atoum;
use Pickle\Config as TestedClass;
class Config extends atoum
{
public function test__construct()
{
$this
->given(
$this->function->getenv = false,
$this->function->sys_get_temp_dir = $tmpDir = 'tmp'
... | 40,817 |
https://github.com/j84reginato/sistema-atendimento-basico/blob/master/application/Site/src/Model/Entity/Factory/ContatoEntityFactory.php | Github Open Source | Open Source | RSA-MD | null | sistema-atendimento-basico | j84reginato | PHP | Code | 64 | 174 | <?php
/**
* @package Sistema Atendimento Básico
* @subpackage Site
* @category Factory
* @version 1.0.0
* @author Jonatan Noronha Reginato <noronha_reginato@hotmail.com>
*/
namespace Site\Model\Entity\Factory;
use Site\Model\Entity\ContatoEntity;
/**
* Classe responsável por instanciar a entidade ContatoEntit... | 41,178 |
https://github.com/Achrefothmeni/debo-pi/blob/master/vendor/rollerworks/search/src/Extension/Core/DataTransformer/BaseDateTimeTransformer.php | Github Open Source | Open Source | MIT | null | debo-pi | Achrefothmeni | PHP | Code | 176 | 532 | <?php
/*
* This file is part of the RollerworksSearch package.
*
* (c) Sebastiaan Stok <s.stok@rollerscapes.net>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Rollerworks\Component\Search\Extension\Core\DataTransformer;
use Rollerw... | 21,935 |
https://github.com/mlakkapr/CondaProjects/blob/master/dataScrape/web_recipe_scrape.py | Github Open Source | Open Source | MIT | null | CondaProjects | mlakkapr | Python | Code | 134 | 660 | import requests
from bs4 import BeautifulSoup
from pprint import pprint as pp
url = 'https://www.skinnytaste.com'
res = requests.get(url)
soup = BeautifulSoup(res.content, 'html.parser')
links = soup.select('article.post.teaser-post') #.odd + .even
article_imgs = soup.select('img.lazyload.attachment-teaser.size-teas... | 21,165 |
https://github.com/dimitriyyuliya/laravel_shop/blob/master/app/Libs/Breadcrumbs.php | Github Open Source | Open Source | MIT | 2,021 | laravel_shop | dimitriyyuliya | PHP | Code | 518 | 1,713 | <?php
namespace App\Libs;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Route;
class Breadcrumbs
{
/**
*
* @return array массив с хлебными крошками
*
// Пример использования для метода в контроллере (обратите внимание на очерёдность методов):
$breadcrumbs = $this->b... | 8,212 |
https://github.com/saifcse06/Q-billing/blob/master/resources/views/backend/invoice/_form.blade.php | Github Open Source | Open Source | MIT | null | Q-billing | saifcse06 | PHP | Code | 644 | 3,448 | <div class="row">
<div class="col-md-6">
<div class="form-group">
{!! Html::decode( Form::label('customerType','Customer Type<sup> <span class="red">*</span></sup>',['class'=>'col-sm-3 control-label']) )!!}
<div class="col-sm-9">
<div class="iconic-input radio" >
... | 12,050 |
https://github.com/steerapi/webdnn/blob/master/src/graph_transpiler/webdnn/frontend/tensorflow/ops/gen_lookup_ops.py | Github Open Source | Open Source | MIT | 2,021 | webdnn | steerapi | Python | Code | 294 | 1,663 | import tensorflow as tf
from webdnn.frontend.tensorflow.converter import TensorFlowConverter
@TensorFlowConverter.register_handler("HashTable")
def hash_table_handler(converter: TensorFlowConverter, tf_op: "tf.Operation"):
raise NotImplementedError(f"[TensorFlowConverter] {tf_op.type} is not supported yet.")
@... | 9,442 |
https://github.com/tomgilder/flutter-hero/blob/master/flutter_hero/lib/widgets/event_card.dart | Github Open Source | Open Source | MIT | 2,019 | flutter-hero | tomgilder | Dart | Code | 120 | 514 | import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
import '../models/event.dart';
class EventCard extends StatelessWidget {
final Event event;
EventCard(this.event);
@override
Widget build(BuildContext context) {
return Card(
child: InkWell(
onTap: () =>
Na... | 37,438 |
https://github.com/sudarsanyes/wolverine/blob/master/Wolverine.Web/Wolverine-Angular/src/app/Contracts/Contracts.ts | Github Open Source | Open Source | MIT | 2,020 | wolverine | sudarsanyes | TypeScript | Code | 278 | 840 | export class SortResult {
projectId: string;
referencedProject: Project;
cardGroupResolvedMap: Map<Card, GroupMap[]>;
}
export class SortSessionInfo{
id: string;
participant: string;
}
export class GroupMap {
session: SortSessionInfo;
group: Group;
}
export class SortSession {
id: string;
particip... | 7,943 |
https://github.com/wking/cluster-authentication-operator/blob/master/vendor/google.golang.org/genproto/googleapis/ads/googleads/v1/enums/preferred_content_type.pb.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | cluster-authentication-operator | wking | Go | Code | 642 | 2,571 | // Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/enums/preferred_content_type.proto
package enums // import "google.golang.org/genproto/googleapis/ads/googleads/v1/enums"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/... | 42,032 |
https://github.com/syntakks/TopDown2DShooter/blob/master/Assets/CameraFollow.cs | Github Open Source | Open Source | MIT | 2,020 | TopDown2DShooter | syntakks | C# | Code | 45 | 131 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraFollow : MonoBehaviour
{
public Transform playerTransform;
public float speed = .1f;
private void Start()
{
transform.position = playerTransform.position;
}
private void Update()
{... | 5,973 |
https://github.com/OneWorld0neDream/QingQiQiu/blob/master/MagicArenaPullToRefresh/src/main/java/com/framework/magicarena/pulltorefresh/LoadingLayoutProxy.java | Github Open Source | Open Source | Apache-2.0 | null | QingQiQiu | OneWorld0neDream | Java | Code | 280 | 984 | package com.framework.magicarena.pulltorefresh;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import com.framework.magicarena.pulltorefresh.internal.AbsLoadingLayout;
import com.framework.magicarena.pulltorefresh.internal.FlipLoadingLayout;
import com.framework.magicarena.pulltorefresh.... | 45,799 |
https://github.com/1278013326/tp5/blob/master/application/company/controller/Base.php | Github Open Source | Open Source | Apache-2.0 | null | tp5 | 1278013326 | PHP | Code | 29 | 82 | <?php
namespace app\company\controller;
use think\Controller;
class Base extends Controller
{
}
//返回值
function msg($code, $msg) {
$res = array(
'code' => $code,
'msg' => $msg,
);
return $res;
} | 21,506 |
https://github.com/fl4shk/liborangepower/blob/master/src/sdl2/sdl_mutex.hpp | Github Open Source | Open Source | MIT | 2,022 | liborangepower | fl4shk | C++ | Code | 352 | 1,158 | #ifndef liborangepower_sdl2_sdl_mutex_hpp
#define liborangepower_sdl2_sdl_mutex_hpp
#include "../misc/misc_includes.hpp"
#include "../gen_class_innards_defines.hpp"
#include <algorithm>
#include <SDL.h>
#include <SDL_mutex.h>
namespace liborangepower
{
namespace sdl
{
class Cond final
{
private: // variables
SDL... | 36,699 |
https://github.com/Skarlso/cluster-api-provider-aws/blob/master/pkg/cloud/services/iamauth/configmap_test.go | Github Open Source | Open Source | Apache-2.0 | null | cluster-api-provider-aws | Skarlso | Go | Code | 706 | 3,561 | /*
Copyright 2020 The Kubernetes 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 agreed to in writing, ... | 20,208 |
https://github.com/cpesar/my-portfolio/blob/master/portfolio/node_modules/@sanity/ui/lib/esm/theme/themeColorProvider.js | Github Open Source | Open Source | MIT | null | my-portfolio | cpesar | JavaScript | Code | 51 | 121 | import React from "react";
import { ThemeProvider } from "./themeProvider";
import { useRootTheme } from "./useRootTheme";
function ThemeColorProvider(props) {
const { children, scheme, tone } = props;
const root = useRootTheme();
return /* @__PURE__ */ React.createElement(ThemeProvider, {
scheme: scheme || r... | 45,680 |
https://github.com/adrijanrogan/android-etiketa/blob/master/app/src/main/java/com/github/adrijanrogan/etiketa/ui/browse/BrowseViewModel.kt | Github Open Source | Open Source | MIT | null | android-etiketa | adrijanrogan | Kotlin | Code | 111 | 430 | package com.github.adrijanrogan.etiketa.ui.browse
import androidx.lifecycle.LiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import com.github.adrijanrogan.etiketa.repository.FileRepository
import com.github.adrijanrogan.etiketa.util.FileComparator
import java.io.File
class Brows... | 29,198 |
https://github.com/Chihiro23333/CC/blob/master/demo_component_kt/src/main/java/com/billy/cc/demo/component/kt/patternmatching/Test.kt | Github Open Source | Open Source | Apache-2.0 | null | CC | Chihiro23333 | Kotlin | Code | 48 | 196 | package com.billy.cc.demo.component.kt.patternmatching
/**
* @author 朱峰 2019/8/22
*/
class Test {
companion object{
@JvmStatic
fun main(args: Array<String>) {
val expr = Expr.Operation("+",Expr.Num(0),Expr.Operation("+",Expr.Num(1),Expr.Num(2)))
println(operation(expr))
... | 23,724 |
https://github.com/Bayer-Group/COLID-Editor-Frontend/blob/master/src/app/components/admin/admin-tasks/welcome-message/welcome-message-form/welcome-message-form.component.ts | Github Open Source | Open Source | BSD-3-Clause | 2,021 | COLID-Editor-Frontend | Bayer-Group | TypeScript | Code | 274 | 952 | import { Component, OnInit, Output, EventEmitter, Input } from '@angular/core';
import { FormGroup, FormControl, Validators } from '@angular/forms';
import { ColidMatSnackBarService } from 'src/app/modules/colid-mat-snack-bar/colid-mat-snack-bar.service';
import { WelcomeMessage } from 'src/app/shared/models/welcome-me... | 26,240 |
https://github.com/marcelomarqueslima/apiHoras/blob/master/ApiHoras/ApiHorasDomain/Interfaces/Repositories/IUsuarioRepository.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | apiHoras | marcelomarqueslima | C# | Code | 26 | 97 | using ApiHorasDomain.Entities;
using System;
using System.Collections.Generic;
namespace ApiHorasDomain.Interfaces.Repositories
{
public interface IUsuarioRepository
{
void Save(Usuario usuario);
void Remove(Guid id);
Usuario GetById(Guid id);
IList<Usuario> GetAll();
}
}
| 3,911 |
https://github.com/aSosunoff/ProSport/blob/master/backend/controllers/ErrorController.php | Github Open Source | Open Source | BSD-3-Clause | null | ProSport | aSosunoff | PHP | Code | 320 | 1,266 | <?php
namespace backend\controllers;
use common\models\engine\ExceptionLogModel;
use common\models\engine\ExceptionLogStatusModel;
use Exception;
use Yii;
use yii\filters\AccessControl;
use yii\filters\VerbFilter;
use yii\web\Controller;
use yii\web\ForbiddenHttpException;
use yii\web\NotFoundHttpException;
use yii\w... | 7,390 |
https://github.com/zjrohrbach/rpi-timer/blob/master/digit_handling_functions.py | Github Open Source | Open Source | MIT | null | rpi-timer | zjrohrbach | Python | Code | 160 | 475 | import time
import tm1637
time_file_path = "time_file.txt"
digits = [0, 4, 9, 0] #this is the time digits in reverse order.
#Thus, the time is actually digits[3]digits[2]:digits[1]digits[0]
max_digits = [9, 5, 9, 9] #The maximum that each digit can get to is usually 9. Except for... | 26,508 |
https://github.com/AlainMuller/YAMAMoto/blob/master/app/src/androidTest/java/fr/alainmuller/yamamoto/ExampleInstrumentedTest.kt | Github Open Source | Open Source | MIT | null | YAMAMoto | AlainMuller | Kotlin | Code | 110 | 571 | package fr.alainmuller.yamamoto
import android.support.test.espresso.Espresso.onView
import android.support.test.espresso.assertion.ViewAssertions.matches
import android.support.test.espresso.matcher.ViewMatchers.isDisplayed
import android.support.test.espresso.matcher.ViewMatchers.withId
import android.support.test.r... | 41,917 |
https://github.com/wxyyxc1992/coding-snippets/blob/master/language/java/io/FileIO-MOM/code_klosefu/src/main/java/io/openmessaging/demo/producer/SegmentFile.java | Github Open Source | Open Source | MIT | 2,019 | coding-snippets | wxyyxc1992 | Java | Code | 263 | 880 | package io.openmessaging.demo.producer;
import io.openmessaging.Message;
import io.openmessaging.demo.Constants;
import io.openmessaging.demo.serializer.MessageSerializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.nio.BufferOverflowException;
import java.nio.Mapp... | 36,278 |
https://github.com/hadynz/kindle-highlights-sync/blob/master/src/service/kindleHighlightsSyncService.ts | Github Open Source | Open Source | Apache-2.0 | null | kindle-highlights-sync | hadynz | TypeScript | Code | 207 | 659 | import { PuppeteerGoodreads, Book as GoodreadsBook } from 'puppeteer-goodreads';
import { Guid } from 'guid-typescript';
import { KindleHighlightsApi } from '../repository/kindleHighlightsApi';
import reduceListForSync from '../util/reduceListForSync';
class KingleHighlightsSyncService {
private _goodreadsScraper: ... | 26,771 |
https://github.com/LePtitDev/Gu.Wpf.UiAutomation/blob/master/Gu.Wpf.UiAutomation.UiTests/Elements/RadioButtonTests.cs | Github Open Source | Open Source | MIT | 2,022 | Gu.Wpf.UiAutomation | LePtitDev | C# | Code | 229 | 1,031 | namespace Gu.Wpf.UiAutomation.UiTests.Elements
{
using NUnit.Framework;
public class RadioButtonTests
{
private const string ExeFileName = "WpfApplication.exe";
[OneTimeTearDown]
public void OneTimeTearDown()
{
Application.KillLaunched(ExeFileName);
}
... | 25,302 |
https://github.com/apinnock/Liquidreach/blob/master/process.php | Github Open Source | Open Source | MIT | null | Liquidreach | apinnock | PHP | Code | 97 | 424 | <?php
$to = "vsingh@royalladv.com";
$subject = "Royalladv Contact Request";
$name = $_POST['name'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$mailmsg = $_POST['message'];
$message = '<div style="width:500px;border:1px solid #222222;margin: 0 auto;"><di... | 8,092 |
https://github.com/futurearchitec/MathParser.org-mXparser/blob/master/CURRENT/c-sharp/src/org/mariuszgromada/math/mxparser/parsertokens/KeyWord.cs | Github Open Source | Open Source | BSD-2-Clause | 2,022 | MathParser.org-mXparser | futurearchitec | C# | Code | 597 | 1,800 | /*
* @(#)KeyWord.cs 4.1.0 2017-06-04
*
* You may use this software under the condition of "Simplified BSD License"
*
* Copyright 2010-2019 MARIUSZ GROMADA. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the follow... | 16,361 |
https://github.com/dajester2013/lucee-maven-plugin/blob/master/lar-webapp-plugin/src/main/java/org/jdsnet/maven/lucee/webapp/LarWarMojo.java | Github Open Source | Open Source | MIT | 2,016 | lucee-maven-plugin | dajester2013 | Java | Code | 809 | 3,482 | package org.jdsnet.maven.lucee.webapp;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.ut... | 40,257 |
https://github.com/amrhuusien99/ecommerce/blob/master/resources/views/admin/roles/create.blade.php | Github Open Source | Open Source | MIT | null | ecommerce | amrhuusien99 | PHP | Code | 146 | 877 | @extends('layout.admin.index')
@section('title')
{{__('admin/roles.create_role')}}
@endsection
@section('content')
<div class="page-body">
<div class="container-fluid">
<div class="page-title">
<div class="row">
<div class="col-6">
... | 20,172 |
https://github.com/WalkieTheTalkie/otherThing/blob/master/resources/views/funniTable.blade.php | Github Open Source | Open Source | MIT | null | otherThing | WalkieTheTalkie | PHP | Code | 31 | 221 | @extends('layouts/thishasnopurpose')
@section('content')
@foreach($students as $s)
<tr>
<td>{{$s->id}}</td>
<td>{{$s->name}}</td>
<td>{{$s->last_name}}</td>
@if(($s->graduated)==1)
<td>Graduated</td>
@else
<td>Not G... | 12,973 |
https://github.com/SAP/cloud-rest-api-client/blob/master/src/test/java/com/sap/cloud/rest/api/client/auth/basic/BasicAuthenticationTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | cloud-rest-api-client | SAP | Java | Code | 73 | 294 | package com.sap.cloud.rest.api.client.auth.basic;
import org.junit.Test;
import com.sap.cloud.rest.api.client.auth.AuthenticationType;
import com.sap.cloud.rest.api.client.auth.basic.BasicAuthentication;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
public class Basi... | 24,415 |
https://github.com/bitfluent/wheneva/blob/master/vendor/plugins/warden/spec/helpers/request_helper.rb | Github Open Source | Open Source | MIT | 2,019 | wheneva | bitfluent | Ruby | Code | 117 | 449 | module Warden::Spec
module Helpers
FAILURE_APP = lambda{|e|[401, {"Content-Type" => "text/plain"}, ["You Fail!"]] }
def env_with_params(path = "/", params = {})
method = params.fetch(:method, "GET")
Rack::MockRequest.env_for(path, :input => Rack::Utils.build_query(params),
... | 3,413 |
https://github.com/oakdoor/filesigner/blob/master/generate_signing_header.py | Github Open Source | Open Source | MIT | null | filesigner | oakdoor | Python | Code | 272 | 1,133 | """Generates a header to sign a file"""
import hashlib
import construct
class GenerateSigningHeader(object):
"""Creates hashes from given parameters and constructs the header needed for a signed file"""
def __init__(self, parameters):
self.parameters = parameters
def execute(self, data):
... | 15,009 |
https://github.com/mkirchner/libfbi/blob/master/doc/Example04_Ms1Ms2MatchingExample.h | Github Open Source | Open Source | MIT | 2,021 | libfbi | mkirchner | C | Code | 909 | 2,152 | /*!
\page Ms1Ms2MatchingExample A Mass Spectrometry Example: Matching high- and low-accuracy precursors
\section setup Setup
Another common preprocessing step in mass spectrometry data analysis is the
replacement of low-accuracy precursor masses (which come from the instrument
prescan) with their high mass accuracy co... | 27,708 |
https://github.com/agoragames/global_collect/blob/master/spec/log_parsing/collection_report/parser_spec.rb | Github Open Source | Open Source | BSD-3-Clause | 2,019 | global_collect | agoragames | Ruby | Code | 144 | 653 | # -*- encoding : utf-8 -*-
require 'spec_helper'
describe "the collection report parser" do
it "should parse" do
file = File.open(support_path("555555550145.mt1"), "r")
data = GlobalCollect::LogParsing::CollectionReport::Parser.parse(file)
data[:header].should_not be_nil
data[:header][:account_id].sh... | 14,329 |
https://github.com/VitorMecene/trinaveSite/blob/master/PN_excluir.php | Github Open Source | Open Source | MIT | null | trinaveSite | VitorMecene | PHP | Code | 21 | 81 | <?php
require_once 'PN_verifica.php';
require_once 'PN_sql.php';
$id = intval($_GET['id']);
$sql = "DELETE FROM noticias WHERE id = $id";
mysqli_query($bd,$sql);
header('location: PN_index.php');
?> | 15,598 |
https://github.com/woodrow/pyoac/blob/master/py/thread/testing/test_pool.py | Github Open Source | Open Source | MIT | 2,019 | pyoac | woodrow | Python | Code | 235 | 812 |
import py
import sys
WorkerPool = py._thread.WorkerPool
ThreadOut = py._thread.ThreadOut
def test_some():
pool = WorkerPool()
q = py.std.Queue.Queue()
num = 4
def f(i):
q.put(i)
while q.qsize():
py.std.time.sleep(0.01)
for i in range(num):
pool.dispatch(f,... | 13,044 |
https://github.com/adriangrepo/qreservoir/blob/master/db/windows/wellplot/wellplotdata/wellplotdefaultsinitializer.py | Github Open Source | Open Source | MIT | 2,021 | qreservoir | adriangrepo | Python | Code | 235 | 1,194 |
import logging
from globalvalues.constants.plottingconstants import PlottingConstants,\
PenLineStyles
from db.windows.wellplot.wellplotdata.wellplotdata import WellPlotData
from db.core.basedao import BaseDao
from statics.templates.wellplottype import WellPlotType
from globalvalues.constants.wellplotconstants... | 41,040 |
https://github.com/anvoro/SteeringTank-Demo/blob/master/Assets/Scripts/InputSystem/AgentWeaponInput.cs | Github Open Source | Open Source | MIT | null | SteeringTank-Demo | anvoro | C# | Code | 132 | 458 |
using System;
using Tank.Interfaces.Body;
using Tank.Interfaces.DataProvider;
using Tank.WeaponSystem;
using UnityEngine;
namespace Tank.InputSystem
{
internal class AgentWeaponInput : MonoBehaviour, IWeaponInput
{
private IDataProvider _dataProvider;
[SerializeField]
[RequiredInterf... | 11,086 |
https://github.com/persiliao/discuz/blob/master/src/Forum/Category.php | Github Open Source | Open Source | Apache-2.0 | null | discuz | persiliao | PHP | Code | 7 | 34 | <?php
declare(strict_types=1);
namespace PersiLiao\Discuz\Forum;
class Category{
} | 33,682 |
https://github.com/endijulian/Laravel-Projeck-Toko-Online/blob/master/resources/views/pegawai/index.blade.php | Github Open Source | Open Source | MIT | null | Laravel-Projeck-Toko-Online | endijulian | PHP | Code | 181 | 922 | @extends('layouts.template')
@section('title')
Data Pegawai
@endsection
@section('content')
<div class="row">
<div class="col-md-12">
<div class="small-box">
<div class="box-header with-border">
@if (Request::get('keyword'))
<a... | 36,548 |
https://github.com/yadavdeepak95/CVS/blob/master/fabric-dev-servers/dadas-cerver/WEBAPPS/USERWEBAPP/src/assets/styles/base/_icons.scss | Github Open Source | Open Source | Apache-2.0 | null | CVS | yadavdeepak95 | SCSS | Code | 59 | 225 | svg.ibm-icon {
display: inline-block;
width: 18px;
height: 18px;
fill: $primary-text;
}
svg.nav-icon {
display: inline-block;
width: 24px;
height: 24px;
fill: $white;
}
svg.standard-icon {
display: inline-block;
width: 16px;
height: 16px;
fill: $primary-text;
}
svg.large-icon {
display: inl... | 8,178 |
https://github.com/emartin-merrill-r7/insightconnect-plugins/blob/master/grep/icon_grep/util/utils.py | Github Open Source | Open Source | MIT | 2,020 | insightconnect-plugins | emartin-merrill-r7 | Python | Code | 189 | 552 | import komand
import tempfile
import shutil
# Specify path for unix utils grep and wc:
grep = "egrep"
wc = "wc"
FOUND = "found"
HITS = "hits"
MATCHES = "matches"
TEMP_PATH = tempfile.mkdtemp() + "/"
def cat_lines(log, text, pattern, behavior):
temp_file_name = "tmp.txt"
with open(TEMP_PATH + temp_file_name,... | 16,907 |
https://github.com/BiathlonHelsinki/biathlon_rails_api/blob/master/config/initializers/carrierwave.rb | Github Open Source | Open Source | MIT | 2,017 | biathlon_rails_api | BiathlonHelsinki | Ruby | Code | 97 | 383 | CarrierWave.configure do |config|
config.storage = :aws
config.ignore_integrity_errors = false
config.ignore_processing_errors = false
config.ignore_download_errors = false
config.aws_credentials = {
:access_key_id => ENV.fetch('amazon_access_key'),
:secret_access_key => ENV.fetc... | 41,887 |
https://github.com/budacalorin/FOX/blob/master/src/scena_joc.cpp | Github Open Source | Open Source | Apache-2.0 | null | FOX | budacalorin | C++ | Code | 2,200 | 20,512 | #include "../include/scena_joc.h"
#include "../include/init.h"
#include "../include/time.h"
#include <fstream>
#include <iostream>
#include "scena_pop_up.h"
void coliziune_verticala(sf::RectangleShape &forma,bloc blocuri[],int numar_blocuri,bloc blocuri_masina[],int numar_blocuri_masina,float &viteza_y);
void coliziune... | 15,018 |
https://github.com/poom-cyber/CN334V1_todolist/blob/master/resources/views/allTank.blade.php | Github Open Source | Open Source | MIT | null | CN334V1_todolist | poom-cyber | PHP | Code | 375 | 1,784 | <style>
.header {
border-bottom: 10px solid #F4C400;
}
tr {
font-size: 18px;
}
td {
font-size: 16px;
}
table {
background: #F1F1F1;
}
#slot {
background: #3054A5;
}
</style>
<x-app-layout>
<div class="py-12">
<div class="max-... | 27,606 |
https://github.com/worldcoolguy/angular-site/blob/master/src/app/work/project-info.scss | Github Open Source | Open Source | MIT | null | angular-site | worldcoolguy | SCSS | Code | 26 | 98 | .meta {
font-size: 0.9em;
color: #a8d8f0;
margin: 0;
}
.project-url {
font-size: 0.5em;
font-weight: normal;
}
.meta.date {
}
.meta.techs {
//border-bottom: 1px solid #039be5;
}
| 36,399 |
https://github.com/costa320/CustomWebCreator/blob/master/Gruntfile.js | Github Open Source | Open Source | MIT | null | CustomWebCreator | costa320 | JavaScript | Code | 124 | 442 | module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
bump: {
options: {
files: ["package.json"],
updateConfigs: [],
commit: false, // dont commit
commitMessage: "Release v%VERSION%",
commitFil... | 28,623 |
https://github.com/web-mobile-developer/LottoSocial/blob/master/src/pages/check-winnings/check-winnings.scss | Github Open Source | Open Source | MIT | null | LottoSocial | web-mobile-developer | SCSS | Code | 3 | 12 | page-check-winnings {
}
| 18,192 |
https://github.com/Zenfection1412/demolink/blob/master/.vuepress/.temp/pages/docs/doannganh/CT446-Nien_luan_CNTT/index.html.vue | Github Open Source | Open Source | MIT | null | demolink | Zenfection1412 | Vue | Code | 10 | 64 | <template><h1 id="nien-luan-cntt" tabindex="-1"><a class="header-anchor" href="#nien-luan-cntt" aria-hidden="true">#</a> Niên luận CNTT</h1>
</template>
| 25,662 |
https://github.com/dog-gateway/enj-library/blob/master/src/it/polito/elite/enocean/enj/eep/eep26/attributes/EEP26DimLevel.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | enj-library | dog-gateway | Java | Code | 215 | 506 | /*
* EnJ - EnOcean Java API
*
* Copyright 2014 Andrea Biasi, Dario Bonino
*
* 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
*
* ... | 11,805 |
https://github.com/rock007/cloud-web-template/blob/master/src/main/java/org/cloud/webtemplate/WebStarterApplication.java | Github Open Source | Open Source | Apache-2.0 | null | cloud-web-template | rock007 | Java | Code | 35 | 234 | package org.cloud.webtemplate;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.da... | 3,128 |
https://github.com/eshnil2000/terraform-http-myip/blob/master/example/variables.tf | Github Open Source | Open Source | MIT | 2,022 | terraform-http-myip | eshnil2000 | HCL | Code | 6 | 15 | variable vpc_id {}
variable trusted_hosts {}
| 45,554 |
https://github.com/JianLoong/genetic-js/blob/master/src/domain/terminations/OrTermination.ts | Github Open Source | Open Source | MIT | 2,020 | genetic-js | JianLoong | TypeScript | Code | 54 | 167 | import IGeneticAlgorithm from "../IGeneticAlgorithm";
import ITermination from "./ITermination";
import LogicalOperatorTerminationBase from "./LogicalOperatorTerminationBase";
export default class OrTermination extends LogicalOperatorTerminationBase {
constructor(terminations: ITermination[]) {
super(termi... | 42,144 |
https://github.com/UFOP-CSI477/2021-02-atividades-HenriqueTrigolo/blob/master/Atividades/exercicios/exercicio-08/exercicio aula 17/exercicio/index.php | Github Open Source | Open Source | MIT | null | 2021-02-atividades-HenriqueTrigolo | UFOP-CSI477 | PHP | Code | 12 | 49 | <?php
require_once 'conexao.php';
$produtos = $pdo->query("SELECT * FROM produtos");
require 'produtosView.php';
?>
| 6,682 |
https://github.com/BNBLORD/mangopay2-python-sdk/blob/master/tests/test_bankaccounts.py | Github Open Source | Open Source | MIT | null | mangopay2-python-sdk | BNBLORD | Python | Code | 916 | 4,965 | # -*- coding: utf-8 -*-
from mangopay.utils import Address
from tests import settings
from .resources import BankAccount
from .test_base import BaseTest, BaseTestLive
from datetime import date
import responses
import time
class BankAccountsTest(BaseTest):
@responses.activate
def test_create_bankaccount_iban... | 28,607 |
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/r/rolling-rate-limiter/src/main/scala/typingsSlinky/rollingRateLimiter/mod.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | ScalablyTyped | Scala | Code | 330 | 1,194 | package typingsSlinky.rollingRateLimiter
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object mod {
@JSImport("rolling-rate-limiter", JSImport.Namespace)
@js.native
... | 29,439 |
https://github.com/enriqueescobar-askida/Kinito.Patterns.Structural/blob/master/Composite/Leaf.cs | Github Open Source | Open Source | MIT | null | Kinito.Patterns.Structural | enriqueescobar-askida | C# | Code | 113 | 294 | namespace Composite
{
using System;
internal class Leaf : AbstractComponent
{
/// <summary>
/// Initializes a new instance of the <see cref="Leaf"/> class.
/// </summary>
/// <param name="name">The name.</param>
public Leaf(string name) : base(name)
{
... | 29 |
https://github.com/mati865/rust-onig/blob/master/src/names.rs | Github Open Source | Open Source | MIT | null | rust-onig | mati865 | Rust | Code | 524 | 1,761 | use std::marker::PhantomData;
use std::iter::Iterator;
use std::ptr::null;
use std::str::from_utf8_unchecked;
use std::slice::from_raw_parts;
use libc::{c_int, c_uchar, c_uint, c_void};
use onig_sys::{self, OnigRegex, OnigUChar};
use super::Regex;
impl Regex {
/// Returns the number of named groups into regex.
... | 17,197 |
https://github.com/a-slide/snakemake_nanopore_DNA_methylation/blob/master/pycoSnake/wrappers/get_annotation/snakefile.py | Github Open Source | Open Source | MIT | 2,021 | snakemake_nanopore_DNA_methylation | a-slide | Python | Code | 75 | 424 | # Imports
from os.path import join
from snakemake.remote.FTP import RemoteProvider as FTPRemoteProvider
FTP = FTPRemoteProvider()
# Input and output data
gff3_input = join(config["data_dir"], "reference", "ref.gff3.gz")
gff3_input_ftp = "ftp://ftp.ensemblgenomes.org/pub/fungi/release-45/gff3/saccharomyces_cerevisiae/S... | 23,125 |
https://github.com/timmartin/skulpt/blob/master/test/run/t373.py | Github Open Source | Open Source | MIT | 2,022 | skulpt | timmartin | Python | Code | 2 | 9 | print int(10,2)
| 41,671 |
https://github.com/smanschi/Rcs/blob/master/src/RcsGraphics/NodeBase.h | Github Open Source | Open Source | BSD-4-Clause | null | Rcs | smanschi | C | Code | 1,140 | 2,176 | /*******************************************************************************
Copyright (c) 2017, Honda Research Institute Europe GmbH.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. R... | 36,774 |
https://github.com/Kaiser-Lee/Anjoy_api/blob/master/webservice/src/main/java/com/coracle/dms/webservice/model/AnjoyOrderProduct.java | Github Open Source | Open Source | Apache-2.0 | null | Anjoy_api | Kaiser-Lee | Java | Code | 639 | 2,405 | package com.coracle.dms.webservice.model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* 安井订单商品实体
*/
public class AnjoyOrderProduct implements Serializable {
//物料
private String FMaterialID;
//计量单位
private String FUnitID;
//备注
private String FRemark... | 31,702 |
https://github.com/clowerweb/Lightning/blob/master/App/Views/Register/index.twig | Github Open Source | Open Source | MIT | 2,021 | Lightning | clowerweb | Twig | Code | 28 | 78 | {% extends "base.twig" %}
{% block title %}Register - {{ site_name }}{% endblock %}
{% block body %}
<register-form :email="{{ user.email|json_encode }}" :errors="{{ user.errors|json_encode }}"></register-form>
{% endblock %}
| 22,784 |
https://github.com/pace/cloud-sdk-ios/blob/master/PACECloudSDK/API/Generated/Models/PCFuelingApproachingResponse.swift | Github Open Source | Open Source | MIT | 2,022 | cloud-sdk-ios | pace | Swift | Code | 1,927 | 4,955 | //
// Generated by SwagGen
// https://github.com/pace/SwagGen
//
import Foundation
public class PCFuelingApproachingResponse: APIModel {
public enum PCFuelingType: String, Codable, Equatable, CaseIterable {
case approaching = "approaching"
}
/** Approaching ID */
public var id: ID?
publ... | 3,048 |
https://github.com/igoreksiz/NetOffice/blob/master/Source/Office/Classes/MsoEnvelope.cs | Github Open Source | Open Source | MIT | null | NetOffice | igoreksiz | C# | Code | 132 | 538 | using System;
using NetRuntimeSystem = System;
using System.ComponentModel;
using NetOffice.Attributes;
namespace NetOffice.OfficeApi
{
#region Delegates
#pragma warning disable
public delegate void MsoEnvelope_EnvelopeShowEventHandler();
public delegate void MsoEnvelope_EnvelopeHideEventHandler();
#pragma w... | 10,854 |
https://github.com/n1215/request-parameter-extractor/blob/master/src/UploadedFilesExtractorInterface.php | Github Open Source | Open Source | MIT | 2,018 | request-parameter-extractor | n1215 | PHP | Code | 33 | 134 | <?php
declare(strict_types=1);
namespace N1215\RequestParameterExtractor;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Message\UploadedFileInterface;
interface UploadedFilesExtractorInterface extends ExtractorInterface
{
/**
* @param ServerRequestInterface $request
* @return UploadedFileIn... | 44,885 |
https://github.com/mrosemeier/compmech/blob/master/compmech/conecyl/sympytools/clpt/kinematics_donnellmb_rev_00.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | compmech | mrosemeier | Python | Code | 156 | 677 | import sympy
from sympy import sin, cos, pi, Matrix
from mapy.sympytools.doperator import D
sympy.var('x, t, sina, cosa, r, L', commutative=False)
sympy.var('w, wx, wt, wxt, wtt, w0x, w0t', commutative=False)
#
d = Matrix(\
[[ D(x), 0, 0],
[ 1/r*sina, 1/r*D(t)... | 12,841 |
https://github.com/marcua/datools/blob/master/datools/errors.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | datools | marcua | Python | Code | 3 | 13 | class DatoolsError(Exception):
pass
| 18,887 |
https://github.com/pebagro/cpp/blob/master/Konspekt 3/zad3/zad3.cpp | Github Open Source | Open Source | MIT | null | cpp | pebagro | C++ | Code | 84 | 230 | #include "tabdyn.h"
#include "tabdyn.cpp"
#include<iostream>
using namespace std;
int main()
{
tabdyn x(5);
x.setelement();
x.getelement(2);
int suma = 0;
suma = x.sum();
float sr = 0;
sr = x.mean();
cout << "Suma elementow tablicy: " << suma << ", srednia =" << sr << endl;
//*****************************... | 33,312 |
https://github.com/KCL-Planning/strategic-tactical-pandora/blob/master/src/core/particles/GPUParticleDrawShader.cpp | Github Open Source | Open Source | BSD-2-Clause | 2,020 | strategic-tactical-pandora | KCL-Planning | C++ | Code | 219 | 1,093 | #include "dpengine/particles/GPUParticleDrawShader.h"
#include "dpengine/particles/GPUParticleComputerShader.h"
#include <glm/gtc/matrix_inverse.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "dpengine/particles/GPUParticleEmitter.h"
#include "dpengine/scene/SceneLeafModel.h"
#include "dpengine/texture/Texture.h"
nam... | 31,804 |
https://github.com/ftc-team-8813/robot-client/blob/master/draw.py | Github Open Source | Open Source | MIT | null | robot-client | ftc-team-8813 | Python | Code | 561 | 2,041 | from PIL import ImageDraw
import struct
def draw(img, packet, scale=1):
# draw data sent as a list of opcodes followed by some parameters:
# 0x00: Arc <x0=uint16> <y0=uint16> <x1=uint16> <y1=uint16> <start=float> <end=float> <stroke=uint32> <width=uint8>
# 0x01: Chord <x0=uint16> <y0=uint16> <x1=ui... | 15,020 |
https://github.com/thaynaraswc/SAPC/blob/master/resources/views/ferramentasAdm/sexo/create.blade.php | Github Open Source | Open Source | MIT | null | SAPC | thaynaraswc | PHP | Code | 111 | 600 | @extends('layouts.app')
@extends('layouts/menu')
@section('content')
<div class="container">
<nav style="margin-top: 5%" aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">Início</a></li>
<li class="breadcrumb-item"><a href="/ferramentasAdm/sh... | 12,019 |
https://github.com/klassecloud/backend/blob/master/src/server.js | Github Open Source | Open Source | MIT | null | backend | klassecloud | JavaScript | Code | 151 | 493 | import Koa from 'koa';
import http from 'http';
import util from 'util';
import bodyParser from 'koa-bodyparser';
import errorHandler from 'koa-better-error-handler';
import cors from '@koa/cors';
import logger from 'koa-pino-logger';
import router from './routes';
import systemRouter from './routes/system';
// const m... | 35,139 |
https://github.com/daledali/snp/blob/master/child-health/index.php | Github Open Source | Open Source | MIT | null | snp | daledali | PHP | Code | 332 | 1,778 | <?php
include('../lib/main-header.php');
?>
<ul class="breadcrumb">
<li><a href="/">Home</a></li>
<li><a href="/categories/">Categories</a></li>
<li class="active">Pediatrics</li>
</ul>
<div id="container" class="container">
<ul class="nav nav-pills nav-stacked">
<li><a href="/child-health/">All</a></li... | 8,870 |
https://github.com/avienne/ios-app/blob/master/wallabag/Extension/String.swift | Github Open Source | Open Source | MIT | 2,022 | ios-app | avienne | Swift | Code | 170 | 535 | //
// String.swift
// wallabag
//
// Created by maxime marinel on 22/10/2016.
// Copyright © 2016 maxime marinel. All rights reserved.
//
import CryptoKit
import Foundation
extension String {
var date: Date? {
let dateFormatter = DateFormatter()
dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:s... | 42,454 |
https://github.com/AllegorithmicSAS/materialx_utils/blob/master/python/matxtools/__init__.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | materialx_utils | AllegorithmicSAS | Python | Code | 4 | 11 | from matxtools import MatXExporter
| 4,793 |
https://github.com/ProAviaAZ/phpVMS/blob/master/resources/lang/pt-br/pireps.php | Github Open Source | Open Source | BSD-3-Clause | 2,022 | phpVMS | ProAviaAZ | PHP | Code | 271 | 998 | <?php
return [
'newflightreport' => 'Novo reporte de voo',
'editflightreport' => 'Editar reporte de voo',
'savepirep' => 'Salvar PIREP',
'submitpirep' => 'Enviar PIREP',
'fileflightreport' => 'Enviar novo reporte',
'filenewpirep' => 'Enviar novo PIREP',
... | 33,185 |
https://github.com/furkaandogan/Snorlax/blob/master/src/Snorlax.Web.Api/Controllers/BaseController.cs | Github Open Source | Open Source | MIT | null | Snorlax | furkaandogan | C# | Code | 44 | 177 | using System.Collections.Generic;
using System.Net;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace Snorlax.Web.Api.Controllers
{
[Authorize()]
public abstract class BaseController
: Controller
{
protected readonly Utilities.ILogger ILogger;
publi... | 16,715 |
https://github.com/humzashah/c_refresher/blob/master/samples/s013-storage-types.c | Github Open Source | Open Source | ISC | 2,020 | c_refresher | humzashah | C | Code | 193 | 370 | /* storage types */
#include <stdio.h>
#include <stdlib.h>
/*
- `int a` is a shortcut for `auto int a` which means: reallocate memory space
once variable scope is 'finished'
*/
void func_one (void) {
auto int a = 1;
printf("a: auto int value = %d\n", a++);
}
/*
- `static int a` can be used to retain th... | 20,960 |
https://github.com/jaensen/Twick.it/blob/master/base/interfaces/cronjobs/reminder.php | Github Open Source | Open Source | MIT | null | Twick.it | jaensen | PHP | Code | 371 | 1,534 | <?php
require_once("../../util/inc.php");
require_once("../../util/thirdparty/pclzip-2-8/pclzip.lib.php");
checkCronjobLogin();
// Erste Erinnerung
$users = User::fetchBySQL("approved=0 AND deleted=0 AND reminder=0 AND register_language_code='" . getLanguage() . "' AND creation_date<='" . date("Y-m-d", time()-7*24*... | 21,114 |
https://github.com/kirschovapetra/MOBV-project/blob/master/app/src/main/java/sk/stuba/fei/uim/mobv_project/data/repositories/ContactRepository.kt | Github Open Source | Open Source | Apache-2.0 | null | MOBV-project | kirschovapetra | Kotlin | Code | 123 | 490 | package sk.stuba.fei.uim.mobv_project.data.repositories
import android.content.Context
import androidx.lifecycle.LiveData
import sk.stuba.fei.uim.mobv_project.data.AppDatabase
import sk.stuba.fei.uim.mobv_project.data.dao.ContactDao
import sk.stuba.fei.uim.mobv_project.data.entities.Contact
class ContactRepository(pr... | 41,920 |
https://github.com/varandinawer/CVE-2020-28874/blob/master/docker-r1270/app/includes/upload-send-notifications.php | Github Open Source | Open Source | MIT | null | CVE-2020-28874 | varandinawer | PHP | Code | 1,078 | 3,333 | <?php
/**
* Search the database for unsent notifications and email them.
*
* @package ProjectSend
* @subpackage Upload
*
*/
/** This file MUST be included by another one */
require_once 'bootstrap.php';
prevent_direct_access();
/**
* First, get the list of different files that have
* notifications to be sent... | 6,240 |
https://github.com/igarnier/clustering/blob/master/lib/k_medoids.mli | Github Open Source | Open Source | MIT | 2,020 | clustering | igarnier | OCaml | Code | 390 | 737 | (** K-medoids functor. *)
module type Element =
sig
(** [t] is the type of elements to be clustered. *)
type t
(** [dist] should be a distance function: symmetric, zero and the diagonal and verifying
the triangular inequality. *)
val dist : t -> t -> float
end
(** Initial choice of medoids.
Thi... | 23,819 |
https://github.com/NiteshSakle/yag_games/blob/master/module/YagGames/src/YagGames/Controller/Plugin/SessionPlugin.php | Github Open Source | Open Source | BSD-3-Clause | null | yag_games | NiteshSakle | PHP | Code | 30 | 105 | <?php
namespace YagGames\Controller\Plugin;
use Zend\Mvc\Controller\Plugin\AbstractPlugin;
class SessionPlugin extends AbstractPlugin
{
protected $sessionService;
public function setSessionService(
$sessionService
) {
$this->sessionService = $sessionService();
}
public function ... | 18,762 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.