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/MatthewJA/Coffeequate/blob/master/src/operators/Function.coffee | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,016 | Coffeequate | MatthewJA | CoffeeScript | Code | 1,041 | 2,287 | define [
"nodes"
"terminals"
"AlgebraError"
"parseArgs"
"require"
"compare"
"prettyRender"
], (nodes, terminals, AlgebraError, parseArgs, require, compare, prettyRender) ->
INV_SUFFIX = "_inv" # Suffix used to represent an inverse function.
# Node in the expression tree representin... | 10,575 |
https://github.com/forki/Gu.Wpf.ValidationScope/blob/master/Gu.Wpf.ValidationScope.Demo/UiTestWindows/NotifyDataErrorInfoWindow.xaml.cs | Github Open Source | Open Source | MIT | 2,022 | Gu.Wpf.ValidationScope | forki | C# | Code | 19 | 69 | namespace Gu.Wpf.ValidationScope.Demo
{
using System.Windows;
public partial class NotifyDataErrorInfoWindow : Window
{
public NotifyDataErrorInfoWindow()
{
this.InitializeComponent();
}
}
}
| 34,137 |
https://github.com/arjayW/auda-sa/blob/master/html/struct_reverb__priv__t.js | Github Open Source | Open Source | CECILL-B | null | auda-sa | arjayW | JavaScript | Code | 20 | 135 | var struct_reverb__priv__t =
[
[ "dry", "struct_reverb__priv__t.html#a651cb32dffc2dbd24d876879508ece08", null ],
[ "reverb", "struct_reverb__priv__t.html#a56ccb1fe9621312a67160284fabad562", null ],
[ "wet", "struct_reverb__priv__t.html#a2acb868e69006bdad0a970952b03d92b", null ]
]; | 34,203 |
https://github.com/intrepidcs/OBD2PRO_WIFI_CC32XX/blob/master/ti_simplelink_sdk/kernel/tirtos/packages/ti/sysbios/timers/timer64/TimestampProvider.xs | Github Open Source | Open Source | Unlicense | null | OBD2PRO_WIFI_CC32XX | intrepidcs | XS | Code | 563 | 1,527 | /*
* Copyright (c) 2012-2013, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* n... | 45,664 |
https://github.com/binoculars/osf.io/blob/master/api/metrics/views.py | Github Open Source | Open Source | MIT, BSD-3-Clause, LicenseRef-scancode-free-unknown, LicenseRef-scancode-warranty-disclaimer, AGPL-3.0-only, LGPL-2.0-or-later, LicenseRef-scancode-proprietary-license, MPL-1.1, CPAL-1.0, LicenseRef-scancode-unknown-license-reference, BSD-2-Clause, Apache-2.0 | 2,022 | osf.io | binoculars | Python | Code | 1,093 | 4,412 | import json
from enum import Enum
from django.http import JsonResponse, HttpResponse, Http404
from django.utils import timezone
from elasticsearch.exceptions import NotFoundError, RequestError
from elasticsearch_dsl.connections import get_connection
from rest_framework.exceptions import ValidationError
from rest_frame... | 28,504 |
https://github.com/PirateRoberts98/capstone-hygeine-managment/blob/master/web/src/Pages/CaregiverPages/UsersAnalysisPage/index.js | Github Open Source | Open Source | MIT | 2,020 | capstone-hygeine-managment | PirateRoberts98 | JavaScript | Code | 226 | 966 | import React, {Fragment, useEffect} from 'react';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
// Other Components
import Alerts from '../../../components/Alert';
// Charts
import SensorHumidityChart from '../../../components/charts/SensorHumidity';
import SensorPressureChart from '../../..... | 2,994 |
https://github.com/MatheusCavalari/ArkStudentUFABC/blob/master/Scripts/bola.cs | Github Open Source | Open Source | MIT | null | ArkStudentUFABC | MatheusCavalari | C# | Code | 269 | 1,090 | using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
using UnityEngine;
public class bola : MonoBehaviour
{
public Rigidbody2D rb;
public float velBola;
public Transform jogador;
public float posicaoBolinha;
private bool comecou;
public GameObject[] powerUps;
... | 22,979 |
https://github.com/dumbNickname/platform-frontend/blob/master/app/modules/web3/__tests__/sagas.spec.ts | Github Open Source | Open Source | MIT | null | platform-frontend | dumbNickname | TypeScript | Code | 121 | 444 | import { expect } from "chai";
import { delay } from "redux-saga";
import { call, put } from "redux-saga/effects";
import { createMock } from "../../../../test/testUtils";
import { LIGHT_WALLET_PASSWORD_CACHE_TIME } from "../../../config/constants";
import { TGlobalDependencies } from "../../../di/setupBindings";
impo... | 23,734 |
https://github.com/Coke67/coke.js/blob/master/src/functions/Funcs/info/roleName.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | coke.js | Coke67 | JavaScript | Code | 59 | 231 | const {Role} = require('../../../utils/helpers/functions.js');
module.exports = async d => {
const data = d.util.openFunc(d);
if (data.err) return d.error(data.err);
const [roleId, guildId = d.guild?.id] = data.inside.splits;
const guild = await d.util.getGuild(d, guildId);
if (!guild) return d.a... | 24,718 |
https://github.com/fond-of/spryker-product-list-conditional-availability-page-search/blob/master/tests/FondOfSpryker/Client/ProductListConditionalAvailabilityPageSearch/ProductListConditionalAvailabilityPageSearchFactoryTest.php | Github Open Source | Open Source | MIT | null | spryker-product-list-conditional-availability-page-search | fond-of | PHP | Code | 84 | 625 | <?php
namespace FondOfSpryker\Client\ProductListConditionalAvailabilityPageSearch;
use Codeception\Test\Unit;
use FondOfSpryker\Client\ProductListConditionalAvailabilityPageSearch\Dependency\Client\ProductListConditionalAvailabilityPageSearchToCustomerClientInterface;
use Spryker\Client\Kernel\Container;
class Produ... | 39,958 |
https://github.com/monadli/ftl/blob/master/src/ts/ftl-builder.ts | Github Open Source | Open Source | MIT | null | ftl | monadli | TypeScript | Code | 3,206 | 9,512 | import fs from 'fs'
import fpath from 'path'
import * as ftl from './ftl-core'
import * as ftl_parser from './ftl-parser'
const OPERATOR_SYMBOLS = '!%&*+\-./:;<=>?^|×÷∏∑∕²³⁴√∛∜∗∙∧∨∩∪∼≤≥⊂⊃¬∀'
type BuildInfo = ftl_parser.BuildInfo
var libPath: string
var runPath: string
var optimization = false
var currentBuildModule... | 23,101 |
https://github.com/hectorsegarra/yii2-advanced-start/blob/master/modules/conversacion/views/frontend/default/index.php | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference, MIT | 2,023 | yii2-advanced-start | hectorsegarra | PHP | Code | 41 | 160 | <?php
use yii\helpers\Html;
use modules\conversacion\Conversacion;
$this->title = Conversacion::translate('module', 'Conversacion');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="conversacion-frontend-default-index">
<h1><?= Html::decode($this->title) ?></h1>
<p>
This is the module co... | 41,597 |
https://github.com/enterstudio/generator-jhipster/blob/master/generators/rancher-compose/files.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | generator-jhipster | enterstudio | JavaScript | Code | 39 | 218 | module.exports = {
writeFiles
};
function writeFiles() {
return {
writeRancherCompose() {
this.template('_rancher-compose.yml', 'rancher-compose.yml');
},
writeDockerCompose() {
this.template('_docker-compose.yml', 'docker-compose.yml');
},
writ... | 34,315 |
https://github.com/Pfuster12/code-link/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,020 | code-link | Pfuster12 | Ignore List | Code | 4 | 19 | node_modules
.env
main.js
.vscode | 8,246 |
https://github.com/ProdexOne/agro-rent-backend/blob/master/src/routes/rent.route.js | Github Open Source | Open Source | MIT | null | agro-rent-backend | ProdexOne | JavaScript | Code | 12 | 59 | const rentController = require("../controllers/rent.controller");
const router = require("express").Router();
router.route("/").get(rentController.getRents).post(rentController.createRent);
module.exports = router;
| 23,041 |
https://github.com/MIPT-ILab/mipt-mips-old-branches/blob/master/ysamarin_task_1/func_sim/func_memory/func_memory.cpp | Github Open Source | Open Source | MIT | 2,018 | mipt-mips-old-branches | MIPT-ILab | C++ | Code | 247 | 732 | /**
* func_memory.cpp - the module implementing the concept of
* programer-visible memory space accesing via memory address.
* @author Alexander Titov <alexander.igorevich.titov@gmail.com>
* Copyright 2012 uArchSim iLab project
*/
// Generic C
#include <cassert>
#include <cstring>
#include <cerrno>
#include <unis... | 18,024 |
https://github.com/johnvonlzf/simulacra/blob/master/src/simulacra/utils/arrays.py | Github Open Source | Open Source | MIT | 2,018 | simulacra | johnvonlzf | Python | Code | 192 | 515 | import collections
import logging
from typing import Optional, Union, NamedTuple, Callable, Iterable, Tuple
import numpy as np
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
KeyValueArrays = collections.namedtuple('KeyValueArrays', ('key_array', 'value_array'))
def dict_to_arrays(dct: dict, ke... | 19,690 |
https://github.com/codebenj/leado/blob/master/resources/js/partials/NotificationWidget.vue | Github Open Source | Open Source | MIT | 2,021 | leado | codebenj | Vue | Code | 136 | 601 | <template>
<div class="notification-dropdown dropdown-menu dropdown-menu-right">
<div class="arrow_box_right">
<div class="notif-wrapper noti-list">
<div v-if="notifications.length">
<NotificationWidgetItem v-for="notification in notifications" :notification="notification" :key="notificati... | 472 |
https://github.com/Nkoroi254/androidroombasicsample/blob/master/app/src/main/java/com/example/android/persistence/util/DateFormatUtil.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | androidroombasicsample | Nkoroi254 | Java | Code | 43 | 133 | package com.example.android.persistence.util;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Created by nkoroi on 01/06/17.
*/
public class DateFormatUtil {
private final Date date;
String form;
public DateFormatUtil(Date date) {
this.date = date;
}
public String getForm() {
re... | 13,262 |
https://github.com/tanshu321/v1/blob/master/completestocktake.php | Github Open Source | Open Source | MIT | null | v1 | tanshu321 | PHP | Code | 890 | 3,274 | <?php
include("includes/webfunctions.php");
include('includes/agent.php');
$agent->init();
//SECURITY
$ThisClientID = $_SESSION["ClientID"];
$ThisUser = $_SESSION["ClientName"];
$ThisSecret = $_SESSION["SiteSecret"];
if ($ThisClientID > 0 && $ThisUser != "" && $ThisSecret == "E2A_crm_S5gdbh6nnj_usr_9898")
{
$Wareh... | 7,038 |
https://github.com/mickaelpol/try_laravel/blob/master/resources/views/posts/index.blade.php | Github Open Source | Open Source | MIT | null | try_laravel | mickaelpol | PHP | Code | 59 | 237 | @extends('layouts.default')
@section('content')
<div class="container">
<p>
<a class="btn btn-primary" href="{{ route('news.create') }}">
Creer un Nouvel article
</a>
</p>
@foreach($posts as $post)
<div class="col-lg-6">
... | 18,307 |
https://github.com/BlackBoxAM/Lean/blob/master/Indicators/RelativeDailyVolume.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | Lean | BlackBoxAM | C# | Code | 610 | 1,373 | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* 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 o... | 36,002 |
https://github.com/fleetyards/app/blob/master/app/packs/frontend/pages/Stations/index.vue | Github Open Source | Open Source | Apache-2.0 | 2,019 | app | fleetyards | Vue | Code | 125 | 531 | <template>
<router-view v-if="isSubRoute" />
<section v-else class="container">
<div class="row">
<div class="col-12">
<h1 class="sr-only">
{{ $t('headlines.stations') }}
</h1>
</div>
</div>
<FilteredList
key="stations"
:collection="collection"
:n... | 9,240 |
https://github.com/ololx/cranberry/blob/master/cranberry-commons/src/main/java/io/github/ololx/cranberry/commons/handler/AbstractCompilationHandler.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | cranberry | ololx | Java | Code | 268 | 653 | /**
* Copyright 2019 the project cranberry authors
* and the original author or authors annotated by {@author}
* <p>
* 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
* <p>
* http://www.a... | 34,102 |
https://github.com/lonphy/micropython/blob/master/ports/stm32f1/sram.c | Github Open Source | Open Source | MIT | 2,020 | micropython | lonphy | C | Code | 947 | 3,070 | /*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2013, 2014 Damien P. George
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* i... | 31,617 |
https://github.com/nbclark/flipper/blob/master/FlipperPlugins/POutlook.cpp | Github Open Source | Open Source | Apache-2.0 | null | flipper | nbclark | C++ | Code | 1,650 | 5,199 | #include "StdAfx.h"
#include "POutlook.h"
#include <initguid.h>
#define INITGUID
#include <imaging.h>
#include <windowsx.h>
#define _ErrorLabel Error
#define CHR(hResult) \
if(FAILED(hResult)) { hr = (hResult); goto _ErrorLabel;}
#define CPR(pPointer) \
if(NULL == (pPointer)) { hr = (E_OUTOFMEMORY); goto _... | 42,161 |
https://github.com/rfay/ddev/blob/master/pkg/archive/testdata/TestArchiveTar/.test.sh | Github Open Source | Open Source | Apache-2.0 | 2,023 | ddev | rfay | Shell | Code | 7 | 17 | #!/bin/bash
echo "this is a test script"
| 17,692 |
https://github.com/jtianesq/protein-prediction-nmt-evo/blob/master/Neural Machine Translation/nn/dropout.py | Github Open Source | Open Source | MIT | null | protein-prediction-nmt-evo | jtianesq | Python | Code | 48 | 142 | # dropout.py
import ops
def dropout(x, keep_prob, noise_shape=None, seed=None):
if keep_prob > 1.0 or keep_prob <= 0:
raise ValueError("keep_prob must be in range (0, 1]")
if noise_shape:
shape = noise_shape
else:
shape = x.shape
mask = ops.random.binomial(shape, keep_prob, ... | 21,088 |
https://github.com/mamontov-cpp/saddy/blob/master/include/db/save.h | Github Open Source | Open Source | BSD-2-Clause | 2,022 | saddy | mamontov-cpp | C | Code | 1,545 | 5,655 | /*! \file db/save,h
Describes a save operations for a type
*/
#pragma once
#include "dberror.h"
#include "dbtypename.h"
#include "../sadstring.h"
#include "../sadrect.h"
#include "../sadcolor.h"
#include "../sadsize.h"
#include "../sadvector.h"
#include "../sadpair.h"
#include "../layouts/lengthvalue.h"
... | 35,389 |
https://github.com/MilitaryIntelligence6/TerraLegion/blob/master/res/shaders/invert.fsh | Github Open Source | Open Source | MIT | 2,022 | TerraLegion | MilitaryIntelligence6 | GLSL | Code | 41 | 129 | #ifdef GL_ES
precision mediump float;
#endif
varying vec4 v_color;
varying vec2 v_texCoord0;
uniform sampler2D u_sampler2D;
void main() {
vec4 color = v_color * texture2D(u_sampler2D, v_texCoord0);
color = vec4(1 - color.x, 1 - color.y, 1 - color.z, color.a);
gl_FragColor = color;
} | 25,874 |
https://github.com/roscopecoltran/SniperKit-Core/blob/master/.References/src/github.com/elucideye/drishti_real-time_eye_tracking/src/lib/drishti/face/drishti_face.h | Github Open Source | Open Source | MIT | null | SniperKit-Core | roscopecoltran | C | Code | 57 | 189 | /*!
@file drishti_face.h
@author David Hirvonen
@brief Declaration of drishti face namespace
\copyright Copyright 2014-2016 Elucideye, Inc. All rights reserved.
\license{This project is released under the 3 Clause BSD License.}
*/
#ifndef __drishti_face_drishti_face_h__
#define __drishti_face_drishti_fa... | 10,030 |
https://github.com/l1228911525/sem-spring/blob/master/sem-spring-aop/src/main/java/org/semspringframework/aop/framework/BeanMethodInterceptor.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | sem-spring | l1228911525 | Java | Code | 123 | 413 | package org.semspringframework.aop.framework;
import org.springframework.cglib.proxy.MethodInterceptor;
import org.springframework.cglib.proxy.MethodProxy;
import java.lang.reflect.Method;
import java.util.LinkedList;
import java.util.List;
/**
* the concrete realization of the proxy class
*/
public class BeanMeth... | 3,679 |
https://github.com/YuriiHoliuk/mateacademy-react-test-task/blob/master/src/utils/case-formatter.js | Github Open Source | Open Source | MIT | null | mateacademy-react-test-task | YuriiHoliuk | JavaScript | Code | 151 | 403 | const Cases = {
KebabCase: 'kebab',
CamelCase: 'camel',
SnakeCase: 'snake',
NormalCase: 'normal',
};
/**
* Has static methods for transforming strings from one case to another
*
* TODO: implements rest methods
* */
export class CaseFormatter {
/**
* Determines case type of string
*
* @param {string}... | 43,804 |
https://github.com/jaeykim/DDL-simulator/blob/master/client.py | Github Open Source | Open Source | MIT | null | DDL-simulator | jaeykim | Python | Code | 611 | 2,327 | import torch.optim as optim
import torch.nn.functional as F
import torch.nn as nn
import numpy as np
import matplotlib.pyplot as plt
import torch
import torchvision
import torchvision.transforms as transforms
import os.path
import os
from utils import recursive_mkdir
from net import Net
class Client:
def __init_... | 43,219 |
https://github.com/vnopenroads/openroads-vn-tiler/blob/master/scripts/districts.sql | Github Open Source | Open Source | MIT | null | openroads-vn-tiler | vnopenroads | SQL | Code | 26 | 89 | -- Dump all districts as line delimeted GeoJSON features.
\copy (SELECT JSONB_BUILD_OBJECT('type', 'Feature', 'geometry', ST_AsGEOJSON(geom)::JSONB, 'properties', JSONB_BUILD_OBJECT('id', id, 'type', type)) FROM admin_boundaries WHERE type='district') to .tmp/districts.json | 40,882 |
https://github.com/Sagiri/dawn-stone/blob/master/constants.s | Github Open Source | Open Source | 0BSD | null | dawn-stone | Sagiri | GAS | Code | 6 | 21 | MON_DATA_HELD_ITEM equ 0xC
EVO_ITEM equ 7
| 26,087 |
https://github.com/kelvinluime/hkn-member-portal/blob/master/src/services/api/apis/EventApi.ts | Github Open Source | Open Source | MIT | 2,020 | hkn-member-portal | kelvinluime | TypeScript | Code | 1,717 | 5,798 | /* tslint:disable */
/* eslint-disable */
/**
* HKN API
* HKN API
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import * as runtime from '../r... | 13,289 |
https://github.com/philipsorst/example.wicket.authroles-spring-security-hibernate.java/blob/master/src/main/java/net/dontdrinkandroot/example/wassh/wicket/page/HomePage.java | Github Open Source | Open Source | Apache-2.0 | null | example.wicket.authroles-spring-security-hibernate.java | philipsorst | Java | Code | 29 | 123 | package net.dontdrinkandroot.example.wassh.wicket.page;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;
/**
* @author Philip Washington Sorst <philip@sorst.net>
*/
public class HomePage extends DecoratorPage<Void>
{
@Override
protected IModel<String> getTitleModel()
{
... | 10,618 |
https://github.com/AP2021Fall/Project-team-01/blob/master/Jira/src/main/java/view/PendingOptionsGraphics.java | Github Open Source | Open Source | MIT | null | Project-team-01 | AP2021Fall | Java | Code | 48 | 232 | package view;
import controller.MainMenuController;
import javafx.event.ActionEvent;
import java.sql.SQLException;
public class PendingOptionsGraphics {
public SceneController sceneController = new SceneController();
public void accept(ActionEvent actionEvent) throws SQLException {
MainMenuControlle... | 41,280 |
https://github.com/lucasrcdias/controle-pontos/blob/master/db/migrate/20160307103242_create_periods.rb | Github Open Source | Open Source | MIT | 2,016 | controle-pontos | lucasrcdias | Ruby | Code | 28 | 99 | class CreatePeriods < ActiveRecord::Migration
def change
create_table :periods do |t|
t.time :start_at
t.time :finish_at
t.time :interval_start
t.time :interval_finish
t.belongs_to :company, index: true
t.timestamps null: false
end
end
end
| 216 |
https://github.com/clockzhong/WrapLAMP/blob/master/Mysql/storage/ndb/include/kernel/signaldata/DictSignal.hpp | Github Open Source | Open Source | Apache-2.0 | 2,015 | WrapLAMP | clockzhong | C++ | Code | 550 | 1,348 | /* Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in t... | 8,790 |
https://github.com/slawekjaranowski/artifactory-cleaner/blob/master/src/main/java/com/payu/artifactory/tools/snapshot/SnapshotCleaner.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | artifactory-cleaner | slawekjaranowski | Java | Code | 351 | 1,315 | /*
* Copyright 2019 PayU
*
* 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 ag... | 27,057 |
https://github.com/matiboux/discord-mel/blob/master/src/config/Options.ts | Github Open Source | Open Source | MIT | 2,021 | discord-mel | matiboux | TypeScript | Code | 86 | 228 | import IOptions from './IOptions'
import Logger from '../logger/Logger'
import unserialize from '../functions/unserialize'
import IConfig from './IConfig'
class Options implements IOptions
{
[x: string]: any
public absPath: string = __dirname
public token?: string
public config?: IConfig
public configPath?: st... | 49,309 |
https://github.com/viridi19/covimath-front/blob/master/src/views/Dashboard/components/GlobalMapCard/components/SearchAutoComplete/index.js | Github Open Source | Open Source | MIT | 2,020 | covimath-front | viridi19 | JavaScript | Code | 177 | 614 | // *https://www.registers.service.gov.uk/registers/country/use-the-api*
import React from 'react';
import TextField from '@material-ui/core/TextField';
import Autocomplete from '@material-ui/lab/Autocomplete';
import CircularProgress from '@material-ui/core/CircularProgress';
function sleep(delay = 0) {
return new ... | 9,483 |
https://github.com/Tubt/gooddata-ui-sdk/blob/master/libs/sdk-ui-kit/src/typings.d.ts | Github Open Source | Open Source | MIT | 2,020 | gooddata-ui-sdk | Tubt | TypeScript | Code | 20 | 60 | // (C) 2020 GoodData Corporation
declare module "react-native-listener";
declare module "@gooddata/goodstrap/lib/core/immutable" {
export function propsEqual(props: any, nextProps: any): boolean;
}
| 12,878 |
https://github.com/LuizFernandesOliveira/java-cli-codenation-fibonacci/blob/master/DesafioApplication.java | Github Open Source | Open Source | MIT | null | java-cli-codenation-fibonacci | LuizFernandesOliveira | Java | Code | 104 | 326 | import java.util.ArrayList;
import java.util.List;
public class DesafioApplication {
ArrayList<Integer> listFibonacci = new ArrayList<>();
private void addNumber(int number) {
this.listFibonacci.add(number);
}
private void generator(int value) {
int f1, f2 = 0, f3;
for (f3 = ... | 26,811 |
https://github.com/kmisrano/butiran/blob/master/zpp/bneast/run.sh | Github Open Source | Open Source | MIT | 2,019 | butiran | kmisrano | Shell | Code | 241 | 687 | #
# Run asteroids-collapse related program and script
#
# Sparisoma Viridi | dudung@fi.itb.ac.id
#
# Execute: ./run
#
# 20160427
# Create this script for asteroids-collapse program.
#
# Define script name
sname="run.sh"
# Verbose usage
if [ $# -lt 3 ]
then
echo "Usage: $name [inum fnum digit]"
echo -e "inum\ti... | 23,828 |
https://github.com/poncele1/RSS_Sinatra/blob/master/app/app.rb | Github Open Source | Open Source | MIT | null | RSS_Sinatra | poncele1 | Ruby | Code | 224 | 620 | require 'sinatra'
require 'sinatra/base'
require 'sinatra/activerecord'
require './config/environments'
require 'sinatra/flash'
require 'sinatra/redirect_with_flash'
require 'rss'
class Post < ActiveRecord::Base
validates :title, presence: true, length: { minimum: 5 }
validates :body, presence: true
end
# nodoc
cla... | 18,197 |
https://github.com/falmar/react-admin-lte/blob/master/src/components/ContentWrapper/__tests__/content-test.js | Github Open Source | Open Source | MIT | 2,018 | react-admin-lte | falmar | JavaScript | Code | 93 | 279 | import React from 'react'
import {shallow} from 'enzyme'
import Content from '../Content'
describe('Content Content', () => {
it('should be a <section> element', () => {
const wrapper = shallow(<Content />)
expect(
wrapper.is('section')
).toBeTruthy()
})
it('should have basic classNames', ()... | 44,161 |
https://github.com/PeterZhouSZ/mandoline/blob/master/include/mandoline/construction/adaptive_grid_factory.hpp | Github Open Source | Open Source | MIT | 2,021 | mandoline | PeterZhouSZ | C++ | Code | 408 | 1,440 | #pragma once
#include <mtao/geometry/grid/staggered_grid.hpp>
#include <mtao/geometry/grid/grid_data.hpp>
#include "mandoline/adaptive_grid.hpp"
#include <set>
#include "cutmesh.pb.h"
#include <mtao/eigen/stl2eigen.hpp>
#include <optional>
namespace mandoline::construction {
class AdaptiveGridFactory {
public:
... | 9,125 |
https://github.com/ipbm/ipbm/blob/master/ipbm/src/apps/ipbm-ql/app/serve.ts | Github Open Source | Open Source | BSD-3-Clause | null | ipbm | ipbm | TypeScript | Code | 115 | 287 | import Web3 from 'web3'
import { ApolloServer, gql } from 'apollo-server'
import debug from 'debug'
import resolvers from './resolvers'
import typeDefs from './schema/type-defs'
export default (web3: Web3): void => {
// In the most basic sense, the ApolloServer can be started
// by passing type definitions (type... | 43,983 |
https://github.com/azu/lerna-to-typescript-project-references/blob/master/cli.ts | Github Open Source | Open Source | MIT | 2,020 | lerna-to-typescript-project-references | azu | TypeScript | Code | 283 | 748 | #!/usr/bin/env node
import arg from 'arg';
import { execSync, exec } from 'child_process';
import { error, log, warn } from 'console';
import { readFileSync, writeFileSync, existsSync } from 'fs';
import { join, dirname } from 'path';
import { format } from 'prettier';
import { TsConfig, Package } from './types';
cons... | 15,689 |
https://github.com/saschazar21/openidconnect-client/blob/master/index.js | Github Open Source | Open Source | MIT | 2,018 | openidconnect-client | saschazar21 | JavaScript | Code | 276 | 825 | /**
* Require necessary modules
*/
const argv = require('yargs').argv;
const bodyParser = require('body-parser');
const express = require('express');
const debug = require('debug')('openidconnect');
const fs = require('fs');
const hbs = require('express-handlebars');
const https = require('https');
const log = requir... | 34,063 |
https://github.com/dentalwings/omaha-server/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,021 | omaha-server | dentalwings | Ignore List | Code | 40 | 129 | ### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
venv*
# Unit test / coverage reports
htmlcov/
.coverage
.cache
nosetests.xml
coverage.xml
# Sphinx documentation
docs/_build/
# PyBuilder
target/
# Static files
omaha_server/static
omaha_server/media
*.zip
# CUP_PEM_KEYS
cups_pem_keys/ | 4,983 |
https://github.com/ayessetova/codeW/blob/master/7-kyu/Reverse list/index.js | Github Open Source | Open Source | MIT | 2,022 | codeW | ayessetova | JavaScript | Code | 37 | 138 | /*
Title:
Reverse list
Description:
Write reverseList function that simply reverses lists.
Kata Link:
https://www.codewars.com/kata/reverse-list
Discuss Link:
https://www.codewars.com/kata/reverse-list/discuss
Solutions Link:
https://www.codewars.com/kata/reverse-list/solutions
*/
// ... | 21,465 |
https://github.com/Azure/azure-signalr/blob/master/test/Microsoft.Azure.SignalR.Tests/TestServiceConnectionContainer.cs | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, MIT | 2,023 | azure-signalr | Azure | C# | Code | 256 | 754 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.Azure.SignalR.Protocol;
using Microsoft.Extensio... | 4,229 |
https://github.com/zhmu/ananas/blob/master/external/gcc-12.1.0/gcc/testsuite/gfortran.dg/pr89574.f90 | Github Open Source | Open Source | LGPL-2.1-only, GPL-3.0-only, GCC-exception-3.1, GPL-2.0-only, LGPL-3.0-only, LGPL-2.0-or-later, FSFAP, Zlib, LicenseRef-scancode-public-domain | 2,022 | ananas | zhmu | Fortran Free Form | Code | 68 | 170 | ! { dg-do compile }
! PR fortran/89574 - ICE in conv_function_val, at fortran/trans-expr.c:3792
module mod1
contains
subroutine init
end subroutine
end module
module mod2
contains
subroutine init
end subroutine
end module
module init
use mod1, only : test_init1 => init
use mod2, only : test_init2 => init... | 20,143 |
https://github.com/hermntech/FMB920Parser/blob/master/SimpleDisplayMap/Models/GPSData.cs | Github Open Source | Open Source | Apache-2.0 | 2,019 | FMB920Parser | hermntech | C# | Code | 59 | 117 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace SimpleDisplayMap.Models
{
public class GPSData
{
public string Name { get; set; }
public string Latitude { get; set; }
public string Longitude { get; set; }
public string Speed { get;... | 4,562 |
https://github.com/wojiaoyanmin/oot/blob/master/add_sharefeature_20_BCE/tools/convert_datasets/mhp/get_apr_label.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | oot | wojiaoyanmin | Python | Code | 329 | 1,476 | import argparse
import glob
import os.path as osp
import pdb
from PIL import Image
import mmcv
import numpy as np
import pycocotools.mask as maskUtils
from tqdm import trange, tqdm
import numpy
import cv2
import matplotlib.pyplot as plt
import time
mhp_id2label = {0: 'Background',
1: 'Cap/hat',
... | 13,869 |
https://github.com/nahuef/require-indexjs/blob/master/test/mocks/modules/secondModule/index.js | Github Open Source | Open Source | MIT | 2,019 | require-indexjs | nahuef | JavaScript | Code | 7 | 16 | 'use strict'
module.exports = class SecondModule {}
| 40,264 |
https://github.com/naumenko-sa/bioscripts/blob/master/paml/fasta2phy.pl | Github Open Source | Open Source | MIT | 2,022 | bioscripts | naumenko-sa | Perl | Code | 42 | 169 | #!/usr/bin/perl
#converts fasta to relaxed phylip format (without 10 base limit for name)
open(IN, $ARGV[0]);
%align;
@names;
while(<IN>)
{
chomp;
$name = $_;
push(@names,$name);
$dna = <IN>;
chomp $dna;
$align{$name}=$dna;
}
print @names."\t".length($dna)."\n";
foreach $name (@names)
{
... | 11,310 |
https://github.com/rmendoza83/minesweeper-API/blob/master/server/app/Utils/APIResponseResult.php | Github Open Source | Open Source | MIT | 2,020 | minesweeper-API | rmendoza83 | PHP | Code | 44 | 154 | <?php
namespace Utils;
use Constants\ApiResponseStatusCode as API_RESPONSE_STATUS_CODE;
class APIResponseResult
{
public static function OK($data = null)
{
return response()->json([
'statusCode' => API_RESPONSE_STATUS_CODE::OK,
'data' => $data
]);
}
public st... | 39,197 |
https://github.com/paser4se/XCoLab/blob/master/view/src/main/java/org/xcolab/view/pages/modeling/admin/actions/UpdateModelInputWidgetsAction.java | Github Open Source | Open Source | MIT | 2,021 | XCoLab | paser4se | Java | Code | 127 | 865 | package org.xcolab.view.pages.modeling.admin.actions;
import edu.mit.cci.roma.client.Simulation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.P... | 50,143 |
https://github.com/anshumang/cp-snucl/blob/master/src/compiler/test/FrontendAda/placeholder.adb | Github Open Source | Open Source | NCSA, BSD-2-Clause | 2,014 | cp-snucl | anshumang | Ada | Code | 76 | 140 | -- RUN: %llvmgcc -S %s
procedure Placeholder is
subtype Bounded is Integer range 1 .. 5;
type Vector is array (Bounded range <>) of Integer;
type Interval (Length : Bounded := 1) is record
Points : Vector (1 .. Length);
end record;
An_Interval : Interval := (Length => 1, Points => (1 => 1));
gen... | 33,136 |
https://github.com/hcfman/stalkedbythestate/blob/master/src/main/webapp/js/system-settings/controller.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | stalkedbythestate | hcfman | JavaScript | Code | 550 | 2,494 | SystemSettingsController = function () {
this.load = function () {
JSNotificationCenter.addObserver(this, 'initialise', 'LoadedJSON');
JSNotificationCenter.addObserver(this, 'checkUpdates', 'CheckUpdates');
};
this.initialise = function (note) {
this.applySettings(note.data);
};
... | 6,998 |
https://github.com/actioncy/io-landing/blob/master/js/actioncy-landing.js | Github Open Source | Open Source | MIT | 2,019 | io-landing | actioncy | JavaScript | Code | 58 | 204 | $(document).ready(function() {
// Menu Control Overlay
$('#mastheadCTA').visibility({
once: false,
onOnScreen: function() {
$('nav').hide();
},
onOffScreen: function() {
$('nav').show();
},
});
//Mailchimp sign-up overlay
$('button').on('click', function() {
$('.ui.modal').mo... | 36,037 |
https://github.com/mugabe/couchbase-cbforest/blob/master/CBForest/RevID.hh | Github Open Source | Open Source | Apache-2.0 | null | couchbase-cbforest | mugabe | C++ | Code | 279 | 677 | //
// RevID.hh
// CBForest
//
// Created by Jens Alfke on 6/2/14.
// Copyright (c) 2014 Couchbase. 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... | 41,275 |
https://github.com/oncesk/ddiff/blob/master/src/Model/DescriptionAwareInterface.php | Github Open Source | Open Source | MIT | 2,017 | ddiff | oncesk | PHP | Code | 25 | 64 | <?php
namespace DDiff\Model;
/**
* Class DescriptionAwareInterface
* @package DDiff\Model
*/
interface DescriptionAwareInterface
{
/**
* @return string
*/
public function getDescription() : string;
}
| 36,726 |
https://github.com/CreativeBulma/collapsible/blob/master/docs/_sass/bulma-custom/components/media/_custom.sass | Github Open Source | Open Source | MIT | 2,022 | collapsible | CreativeBulma | Sass | Code | 13 | 41 | /**
* -------------------------------------
* MEDIA COMPONENT CUSTOMIZATION
* -------------------------------------
*/
.media-content
padding-top: .5em
| 36,184 |
https://github.com/itscark/shopware6-tailwind-theme/blob/master/src/Resources/views/storefront/layout/header/actions/service-menu-widget.html.twig | Github Open Source | Open Source | MIT | null | shopware6-tailwind-theme | itscark | Twig | Code | 162 | 583 | {% sw_extends '@Storefront/storefront/layout/header/actions/service-menu-widget.html.twig' %}
{% block layout_header_actions_service_menu_widget %}
{% if position is empty %}
{% set position = 'top-bar' %}
{% endif %}
{% if page.header.serviceMenu|length > 0 %}
<div class="top-bar-nav-item... | 47,960 |
https://github.com/WaCoDiS/wps-client-lib/blob/master/src/main/java/org/n52/geoprocessing/wps/client/model/Address.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | wps-client-lib | WaCoDiS | Java | Code | 284 | 793 | /*
* Copyright (C) 2020 52°North Initiative for Geospatial Open Source
* Software GmbH
*
* 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... | 21,554 |
https://github.com/daqiangge/SiJiWuYou/blob/master/YouChengTire/YouChengTire/LQ_MVC/MainClass/找货/V/LQFahuoCell1.m | Github Open Source | Open Source | Apache-2.0 | 2,016 | SiJiWuYou | daqiangge | Objective-C | Code | 75 | 351 | //
// LQFahuoCell1.m
// YouChengTire
//
// Created by liqiang on 16/4/30.
// Copyright © 2016年 WangZhipeng. All rights reserved.
//
#import "LQFahuoCell1.h"
@interface LQFahuoCell1()<UITextFieldDelegate>
@end
@implementation LQFahuoCell1
+ (LQFahuoCell1 *)cellWithTableView:(UITableView *)tableView
{
UINib... | 29,876 |
https://github.com/mbellabah/riaps-pycom/blob/master/bin/riaps-mn.node | Github Open Source | Open Source | Apache-2.0 | 2,019 | riaps-pycom | mbellabah | Shell | Code | 83 | 206 | #!/bin/sh
# Set up a virtual host
# To be run 'non-lead' nodes
# For riaps developers - NOT APP DEVELOPERS
# Add default gateway (mininet)
route add default gw 192.168.57.1
# Add route to outer net
ip route add 192.168.56.0/24 via 192.168.57.126
# Launch deplo as root
echo "source setup.node; export PYTHONPATH=`p... | 30,810 |
https://github.com/Arquitectura-de-Software-UFPS-2022-I/Java-AppCore/blob/master/src/services/impl/SignatureRequestServiceImpl.java | Github Open Source | Open Source | MIT | null | Java-AppCore | Arquitectura-de-Software-UFPS-2022-I | Java | Code | 127 | 452 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package services.impl;
import java.util.List;
import models.SignatureRequestDto;
import services.SignatureRequestService;
import utils... | 33,129 |
https://github.com/Rudracool/MotherCareBackend-/blob/master/SuiteCommerce Advanced/SC_21.1_Live/Advanced/SCA/JavaScript/SC.Environment.Component.ts | Github Open Source | Open Source | MIT | null | MotherCareBackend- | Rudracool | TypeScript | Code | 260 | 818 | /*
© 2020 NetSuite Inc.
User may not copy, modify, distribute, or re-bundle or otherwise make available this code;
provided, however, if you are an authorized user with a NetSuite account or log-in, you
may use this code subject to the terms that govern your access and use.
*/
/// <amd-module name="SC.Environment.... | 25,654 |
https://github.com/subinsoman/seahorse/blob/master/seahorse-workflow-executor/commons/src/main/scala/ai/deepsense/commons/utils/ConfigWithDirListsImplicits.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | seahorse | subinsoman | Scala | Code | 128 | 281 | /**
* Copyright 2016 deepsense.ai (CodiLime, Inc)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 2,005 |
https://github.com/Prajithp/aws-sdk-perl/blob/master/auto-lib/Paws/DynamoDB/ArchivalSummary.pm | Github Open Source | Open Source | Apache-2.0 | 2,022 | aws-sdk-perl | Prajithp | Perl | Code | 300 | 670 | # Generated by default/object.tt
package Paws::DynamoDB::ArchivalSummary;
use Moose;
has ArchivalBackupArn => (is => 'ro', isa => 'Str');
has ArchivalDateTime => (is => 'ro', isa => 'Str');
has ArchivalReason => (is => 'ro', isa => 'Str');
1;
### main pod documentation begin ###
=head1 NAME
Paws::DynamoDB::... | 43,384 |
https://github.com/flying8824315/json-mock/blob/master/src/style/defaults.scss | Github Open Source | Open Source | MIT | null | json-mock | flying8824315 | SCSS | Code | 959 | 3,345 | @import "./variables";
/* icon font path, required */
$--font-path: '~element-ui/lib/theme-chalk/fonts';
@import "~element-ui/packages/theme-chalk/src/index";
/**
overrides
*/
.el-table--small {
font-size: 14px;
}
/* flex layout */
html, body {
margin: 0;
padding: 0;
height: 100%;
box-sizing: border-... | 15,101 |
https://github.com/ThinkmanWang/thinkutils_plus/blob/master/thinkutils_plus/eventbus/sample/myeventbus.py | Github Open Source | Open Source | MIT | null | thinkutils_plus | ThinkmanWang | Python | Code | 32 | 153 | __author__ = 'Xsank'
import time
from thinkutils_plus.eventbus.eventbus import EventBus
from myevent import GreetEvent
from myevent import ByeEvent
from mylistener import MyListener
if __name__=="__main__":
eventbus=EventBus()
eventbus.register(MyListener())
ge=GreetEvent('world')
be=ByeEvent('world'... | 6,348 |
https://github.com/debeat/AudioSegment/blob/master/tests/full.py | Github Open Source | Open Source | MIT | 2,019 | AudioSegment | debeat | Python | Code | 115 | 399 | import sys
sys.path.insert(0, '../')
import audiosegment as asg
import os
#testsuites
import casa
import fft
import filterbank
import normalize
import read_from_file
import resample
import serde
import silence
import spectrogram
import trim
import vad
import visualize
if __name__ == "__main__":
if len(sys.argv) !... | 13,580 |
https://github.com/minecraftbardev/SinoCraft/blob/master/src/main/java/cx/rain/mc/forgemod/sinocraft/entity/passive/EntityBuffalo.java | Github Open Source | Open Source | MIT | 2,021 | SinoCraft | minecraftbardev | Java | Code | 192 | 944 | package cx.rain.mc.forgemod.sinocraft.entity.passive;
import cx.rain.mc.forgemod.sinocraft.entity.ModEntities;
import net.minecraft.block.BlockState;
import net.minecraft.entity.*;
import net.minecraft.entity.ai.goal.*;
import net.minecraft.entity.passive.AnimalEntity;
import net.minecraft.entity.player.PlayerEntity;
... | 37,523 |
https://github.com/ben-garcia/stack-client/blob/master/src/store/channelDetails/__tests__/reducer.test.ts | Github Open Source | Open Source | MIT | null | stack-client | ben-garcia | TypeScript | Code | 148 | 431 | import ChannelDetailsReducer from '../reducer';
describe('ChannelDetailsReducer', () => {
const initialState = {
isOpen: false,
};
it('should return initial state when action.type doesnt match a valid type', () => {
const action: any = { type: 'INVALID' };
const result = ChannelDetailsReducer(initia... | 31,271 |
https://github.com/BaihakiTanjung/CrudLaravel/blob/master/resources/views/Kategori/index.blade.php | Github Open Source | Open Source | MIT | 2,020 | CrudLaravel | BaihakiTanjung | PHP | Code | 560 | 2,680 | @extends('layouts.main')
@section('content')
<div class="row">
<div class="col-md">
<!-- Table with panel -->
<div class="card card-cascade narrower">
<!--Card image-->
<div
class="view view-cascade gradient-card-header blue-gradient narrower py-2 mx-4 mb-3 d-flex justify-content-between... | 25,293 |
https://github.com/LIARALab/java-activity-recognition-platform/blob/master/src/main/java/org/liara/api/data/entity/TagRelation.java | Github Open Source | Open Source | MIT | null | java-activity-recognition-platform | LIARALab | Java | Code | 247 | 833 | package org.liara.api.data.entity;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.liara.api.relation.RelationFactory;
import org.liara.api.validation.ApplicationEntityReference;
import org.liara.collection.operator.Operator;
import org.... | 6,860 |
https://github.com/gracecompany/develop/blob/master/app/Http/Controllers/ProductCategoryController.php | Github Open Source | Open Source | MIT | null | develop | gracecompany | PHP | Code | 178 | 655 | <?php
namespace app\Http\Controllers;
use App\Category;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use \Ecommerce\helperFunctions;
class CategoryController extends Controller {
public function __construct() {
$this->middleware('isAdmin', ['except' => [
'show',
]]);
}
/**
* @param ... | 41,953 |
https://github.com/boostermbkking/https-github.com-danimahardhika-candybar-library/blob/master/core/src/main/java/com/dm/material/dashboard/candybar/databases/Database.java | Github Open Source | Open Source | Apache-2.0 | null | https-github.com-danimahardhika-candybar-library | boostermbkking | Java | Code | 1,235 | 4,025 | package com.dm.material.dashboard.candybar.databases;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.database.sqlite.SQLiteStatement;
import android.supp... | 10,117 |
https://github.com/TheDragonCode/laravel-cache/blob/master/tests/Concerns/Userable.php | Github Open Source | Open Source | MIT | 2,023 | laravel-cache | TheDragonCode | PHP | Code | 48 | 176 | <?php
declare(strict_types=1);
namespace Tests\Concerns;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Support\Facades\Auth;
use Tests\Fixtures\Models\User;
trait Userable
{
protected $user_id = 123;
protected $user_name = 'John Doe';
protected function auth(): void
{
Auth:... | 13,548 |
https://github.com/sidrockzz/web-search-flask/blob/master/run.sh | Github Open Source | Open Source | Apache-2.0 | 2,020 | web-search-flask | sidrockzz | Shell | Code | 3 | 14 | #!/bin/bash
python project/app.py | 18,534 |
https://github.com/WoN-Hackathon-2019/won-airqualitybot/blob/master/src/main/java/won/bot/airquality/dto/LocationMeasurements.java | Github Open Source | Open Source | Apache-2.0 | null | won-airqualitybot | WoN-Hackathon-2019 | Java | Code | 77 | 217 | package won.bot.airquality.dto;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
import won.protocol.model.Coordinate;
import java.util.List;
@Getter
@Setter
@JsonIgnoreProperties(ignoreUnknown = true)
public class LocationMeasurements {
private String lo... | 34,130 |
https://github.com/olliemath/pypy/blob/master/pypy/module/__pypy__/test/test_stderrprinter.py | Github Open Source | Open Source | Apache-2.0, OpenSSL | 2,021 | pypy | olliemath | Python | Code | 49 | 154 | def app_test_stderrprinter():
from __pypy__ import StdErrPrinter
p = StdErrPrinter(2)
assert repr(p).startswith("<StdErrPrinter(fd=2) object at")
p.close() # this should be a no-op
p.flush() # this should be a no-op
assert p.fileno() == 2
assert p.write('foo') == 3
raises(TypeError, ... | 30,128 |
https://github.com/tensorflow/docs-l10n/blob/master/site/ko/guide/effective_tf2.ipynb | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-generic-cla | 2,023 | docs-l10n | tensorflow | Jupyter Notebook | Code | 2,548 | 12,331 | {
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "Tce3stUlHN0L"
},
"source": [
"##### Copyright 2020 The TensorFlow Authors."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"i... | 34,143 |
https://github.com/XiaoXiangWang/ADSDKCoreKit/blob/master/PGFoundationKit/PGFoundationKit/NSBundle/NSBundle+PGSDKCommon.h | Github Open Source | Open Source | Apache-2.0 | null | ADSDKCoreKit | XiaoXiangWang | C | Code | 33 | 132 | //
// NSBundle+PGSDKCommon.h
// PGFoundationKit
//
// Created by 汪潇翔 on 15/5/8.
// Copyright (c) 2015年 PGSDK. All rights reserved.
//
#import <Foundation/Foundation.h>
#define APP_VERSION [NSBundle PGSDK_AppVersion]
@interface NSBundle (PGSDKCommon)
+(NSString*)PGSDK_AppVersion;
+(NSDictionary*)PGSDK_infoDiction... | 28,908 |
https://github.com/spurti-chopra/Autoport/blob/master/chef-repo/cookbooks/buildServer/recipes/protobuf_source_remove.rb | Github Open Source | Open Source | Apache-2.0 | 2,016 | Autoport | spurti-chopra | Ruby | Code | 85 | 355 | # Recipe would uninstall/remove protobuf package installed via source.
include_recipe 'buildServer::get_log'
version = node['buildServer']['protobuf']['version']
source_dir = node['buildServer']['protobuf']['source_dir']
install_prefix = "#{node['buildServer']['protobuf']['install_prefix']}-#{version}"
pro... | 19,284 |
https://github.com/jjsingh/Udm-Base/blob/master/udm-plugin/index.php | Github Open Source | Open Source | Apache-2.0 | 2,018 | Udm-Base | jjsingh | PHP | Code | 2,379 | 12,659 | <?php
################################################################################
# //Admin Panel Functions Start
################################################################################
//Admin Scripts
add_action( 'admin_head', 'wp_admin_header_scripts' );
function wp_admin_header_scripts( $hook_suffix... | 49,103 |
https://github.com/AtlasOfLivingAustralia/spatial-hub/blob/master/grails-app/assets/javascripts/spApp/directive/googlePlaces.js | Github Open Source | Open Source | MIT | 2,023 | spatial-hub | AtlasOfLivingAustralia | JavaScript | Code | 86 | 314 | (function (angular) {
'use strict';
/**
* @memberof spApp
* @ngdoc directive
* @name googlePlaces
* @description
* Location search using Google places
*/
angular.module('google-places-directive', []).directive('googlePlaces', function () {
return {
restric... | 48,729 |
https://github.com/j2cey/adminitlte31/blob/master/app/Http/Controllers/Auth/LoginController.php | Github Open Source | Open Source | MIT | null | adminitlte31 | j2cey | PHP | Code | 424 | 1,303 | <?php
namespace App\Http\Controllers\Auth;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Adldap\Laravel\Facades\Adldap;
use Illuminate\Contracts\View\View;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
use Illuminat... | 19,744 |
https://github.com/backwardn/imds-filterd/blob/master/imds-filterd/netconfig.c | Github Open Source | Open Source | BSD-2-Clause | null | imds-filterd | backwardn | C | Code | 1,027 | 3,037 | #define __BSD_VISIBLE 1 /* Needed for net/ headers. */
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/sysctl.h>
#include <net/if.h>
#include <net/if_dl.h>
#include <net/route.h>
#include <netinet/in.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include "warnp.h"
#include "imds-filter... | 38,095 |
https://github.com/werselio/pipeline/blob/master/cdap-data-fabric/src/main/java/co/cask/cdap/data2/dataset2/lib/timeseries/FactTable.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | pipeline | werselio | Java | Code | 2,185 | 6,005 | /*
* Copyright © 2014 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 5,466 |
https://github.com/conseweb/farmer/blob/master/storage/indexer/fileinfo.go | Github Open Source | Open Source | Apache-2.0 | null | farmer | conseweb | Go | Code | 233 | 741 | package indexer
import (
"fmt"
"io"
"net/url"
"os"
"path/filepath"
"time"
"github.com/go-xorm/xorm"
)
type FileInfo struct {
ID int64 `xorm:"pk autoincr 'id'" json:"id"`
DeviceID string `xorm:"notnull index 'device_id'" json:"device_id"`
Path string `xorm:"notnull index 'path'" json:"path"`
Has... | 1,813 |
https://github.com/rgrannell1/mood/blob/master/server/routes/shared/config.ts | Github Open Source | Open Source | MIT | 2,019 | mood | rgrannell1 | TypeScript | Code | 191 | 540 |
import * as errors from '@rgrannell/errors'
/**
* Ensure required variables are present
*
* @param {Array<string>} names an array of variable names
*/
const expectVariables = (names:string[]) => {
const vars = Object.keys(process.env).join('\n')
for (const name of names) {
const val = process.env[name]
... | 26,139 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.