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/MPAGS-CPP-2019/mpags-day-5-JamesDownsLab/blob/master/MPAGSCipher/cipherFactory.cpp | Github Open Source | Open Source | MIT | null | mpags-day-5-JamesDownsLab | MPAGS-CPP-2019 | C++ | Code | 33 | 146 | #include "cipherFactory.hpp"
std::unique_ptr<Cipher> cipherFactory(const CipherType cipherType, const std::string& key) {
switch (cipherType) {
case CipherType::Caesar :
return std::make_unique<CaesarCipher>(key);
case CipherType::Playfair :
return std::make_unique<PlayfairC... | 24,052 |
https://github.com/jerabaul29/OpenMetBuoy-v2021a/blob/master/legacy_firmware/firmware/steval_gps_waves_drifter/kiss_clang_3d.h | Github Open Source | Open Source | MIT | 2,022 | OpenMetBuoy-v2021a | jerabaul29 | C | Code | 1,196 | 2,832 | #ifndef KISS_CLANG_3D_UTILS_H
#define KISS_CLANG_3D_UTILS_H
// use <math> with C compiler, or <cmath> with C++ compiler
#ifdef __cplusplus
#include <cmath>
#else
#include <math>
#endif
// TODO
// 1
// rather than having an annoying (axis, angle) format for rotations,
// define a custom struct for rotation definit... | 21,572 |
https://github.com/jay/php-src/blob/master/ext/mysqlnd/mysqlnd_portability.h | Github Open Source | Open Source | PHP-3.01 | 2,020 | php-src | jay | C | Code | 1,679 | 6,267 | /* Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB
This file is public domain and comes with NO WARRANTY of any kind */
/*
Parts of the original, which are not applicable to mysqlnd have been removed.
With small modifications, mostly casting but adding few more macros by
Andrey Hristo... | 19,694 |
https://github.com/scull06/guardia/blob/master/test/ifc/js/5.1.js | Github Open Source | Open Source | MIT | 2,019 | guardia | scull06 | JavaScript | Code | 20 | 56 | //tagAsSink(console.log);
let x = tagAsSource(42, 1);
let y = 42;
if (x === 42) {
y = 13;
}
console.log(y)
| 50,973 |
https://github.com/tranquyetthang1234/web_restaurant_ci/blob/master/application/views/Frontend/home.php | Github Open Source | Open Source | MIT | null | web_restaurant_ci | tranquyetthang1234 | PHP | Code | 1,335 | 6,525 | <!-- banner -->
<style type="text/css"><?php echo $filestyle; ?></style>
<div class="banner jarallax">
<div class="agileinfo-dot">
<div class="header">
<div class="container-fluid">
<div class="header-left">
<div class="w3layouts-logo grid__item wow slideInRight" data-wow-duration="1.5s" data-wo... | 52,061 |
https://github.com/rsalit1516/Hoops/blob/master/Hoops.Core/Models/vw_BatchPlayers.cs | Github Open Source | Open Source | MIT | null | Hoops | rsalit1516 | C# | Code | 133 | 258 | using System;
using System.Collections.Generic;
namespace Hoops.Core.Models
{
public partial class vw_BatchPlayers
{
public int CompanyID { get; set; }
public Nullable<int> RefundBatchID { get; set; }
public string DraftID { get; set; }
public int PlayerID { get; set; }
... | 18,548 |
https://github.com/FarheenIqbal/assignment/blob/master/src/change.js | Github Open Source | Open Source | MIT | null | assignment | FarheenIqbal | JavaScript | Code | 66 | 193 | window.onload = init
function init() {
const images = document.getElementsByTagName('img')
for (let i = 0; i < images.length; i++) {
images[i].onmouseover = changeImage
images[i].onmouseout = changeImageBack
}
}
function changeImage(event) {
const image = document.getElementById(event.target)
const i... | 46,281 |
https://github.com/somework/offset-page-logic/blob/master/src/OffsetLogicResult.php | Github Open Source | Open Source | MIT | 2,017 | offset-page-logic | somework | PHP | Code | 152 | 389 | <?php
/*
* This file is part of the SomeWork/OffsetPage/Logic package.
*
* (c) Pinchuk Igor <i.pinchuk.work@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SomeWork\OffsetPage\Logic;
class OffsetLogicResult
... | 27,127 |
https://github.com/patrickbraud/ScreepsRepo/blob/master/src/Prototypes/spawnPrototypes.ts | Github Open Source | Open Source | Unlicense | null | ScreepsRepo | patrickbraud | TypeScript | Code | 389 | 1,150 | import { RequestStatus } from "../Enums/RequestStatus";
import { RequestType } from "../Enums/RequestType";
export function spawnPrototypes() {
StructureSpawn.prototype.updateRequest = function(existingRequest: any | undefined) : any | undefined {
let missingEnergy = this.store.getFreeCapacity(RESOURCE_E... | 5,596 |
https://github.com/SnappTeamOpenUp/eugostitelji.me/blob/master/frontend/src/pages/AboutUs/index.js | Github Open Source | Open Source | MIT | 2,021 | eugostitelji.me | SnappTeamOpenUp | JavaScript | Code | 32 | 79 | import React from "react";
import { Navbar } from "../../components/Navbar";
import { Footer } from "../../components/Footer";
function AboutUs() {
return (
<>
<Navbar />
<Footer />
</>
);
}
export default AboutUs;
| 5,124 |
https://github.com/TiinaManninen/synapsemodel/blob/master/postneuron.py | Github Open Source | Open Source | MIT | null | synapsemodel | TiinaManninen | Python | Code | 4,207 | 16,246 | # Simulation of tripartite synapse model
# Tiina Manninen and Ausra Saudargiene
# Reference: Tiina Manninen, Ausra Saudargiene, and Marja-Leena Linne. Astrocyte-mediated spike-timing-dependent
# long-term depression modulates synaptic properties in the developing cortex. PLoS Comput Biol, 2020.
# ---------------------... | 52,141 |
https://github.com/akfullfo/tools/blob/master/ercotsum/__init__.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | tools | akfullfo | Python | Code | 1,473 | 4,029 | # ________________________________________________________________________
#
# Copyright (C) 2020 Andrew Fullford
#
# 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.apa... | 18,129 |
https://github.com/jeansemolini/musicweather-api-clean-architecture/blob/master/src/main/java/example/musiweather/app/infrastructure/spotify/mapper/SpotifyDTODomainMapper.java | Github Open Source | Open Source | MIT | 2,020 | musicweather-api-clean-architecture | jeansemolini | Java | Code | 188 | 716 | package example.musiweather.app.infrastructure.spotify.mapper;
import example.musiweather.app.core.domain.Playlist;
import example.musiweather.app.core.domain.Track;
import example.musiweather.app.infrastructure.spotify.dto.SpotifyPlaylistItemDTO;
import example.musiweather.app.infrastructure.spotify.dto.SpotifyTrackA... | 31,993 |
https://github.com/amrKhaledSaeed/ecommerce-test/blob/master/resources/views/pages/addStudent.blade.php | Github Open Source | Open Source | MIT | null | ecommerce-test | amrKhaledSaeed | PHP | Code | 193 | 1,413 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Add Student</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" ... | 42,652 |
https://github.com/cedricgrothues/home-automation/blob/master/modules/scene/domain/scene.go | Github Open Source | Open Source | MIT | 2,021 | home-automation | cedricgrothues | Go | Code | 100 | 216 | package domain
import "errors"
// Scene represents a set of actions
type Scene struct {
ID string `json:"id"`
Name string `json:"name"`
Owner string `json:"owner"`
Actions []*Action `json:"actions"`
}
// Validate checks that the scene makes sense
func (s *Scene) Validate() error {
if s.ID ==... | 15,606 |
https://github.com/datascience/c3po/blob/master/c3po-core/src/main/java/com/petpet/c3po/adaptor/fits/package-info.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | c3po | datascience | Java | Code | 18 | 40 | /**
* This package contains all classes needed for the FITS meta data
* Adaptor.
*/
package com.petpet.c3po.adaptor.fits; | 1,265 |
https://github.com/spoole167/JavaOne2016-Furby/blob/master/src/main/java/com/ibm/javaone2016/demo/furby/sensor/SpeechToTextSensor.java | Github Open Source | Open Source | Apache-2.0 | null | JavaOne2016-Furby | spoole167 | Java | Code | 318 | 1,362 | package com.ibm.javaone2016.demo.furby.sensor;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import javax.sound.sampled.AudioFileFormat;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.A... | 9,458 |
https://github.com/supernebula/evol-core/blob/master/src/Evol.TMovie.Domain/Commands/User/Commands/UserCreateCommand.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | evol-core | supernebula | C# | Code | 22 | 71 | using Evol.Domain.Commands;
using Evol.TMovie.Domain.Commands.Dto;
namespace Evol.TMovie.Domain.Commands
{
public class UserCreateCommand : Command
{
public UserCreateDto Input { get; set; }
}
}
| 5,614 |
https://github.com/19EB/abcjs-custom/blob/master/static-wrappers/midi.js | Github Open Source | Open Source | MIT | null | abcjs-custom | 19EB | JavaScript | Code | 8 | 26 | require('./license');
const midi = require('../midi.js');
window.ABCJS = midi;
| 6,891 |
https://github.com/bcgit/bc-csharp/blob/master/crypto/src/pqc/crypto/cmce/CmceParameters.cs | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT, Apache-2.0 | 2,023 | bc-csharp | bcgit | C# | Code | 363 | 1,016 | using System;
using Org.BouncyCastle.Crypto;
namespace Org.BouncyCastle.Pqc.Crypto.Cmce
{
public sealed class CmceParameters
: ICipherParameters
{
private static readonly int[] poly3488 = new int[] {3, 1, 0};
private static readonly int[] poly4608 = new int[] {10, 9, 6, 0};
pri... | 20,733 |
https://github.com/stweil/tesseract-ocr.github.io/blob/master/3.x/a00828.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | tesseract-ocr.github.io | stweil | JavaScript | Code | 76 | 640 | var a00828 =
[
[ "UnicharIdArrayUtils", "a00657.html", null ],
[ "AmbigSpec", "a00263.html", "a00263" ],
[ "UnicharAmbigs", "a00655.html", "a00655" ],
[ "MAX_AMBIG_SIZE", "a00828.html#a66b35d22667233a1566433c6dd864463", null ],
[ "UnicharAmbigsVector", "a00828.html#aa63fceec9a01c185fac83c0e7d04fe08"... | 36,886 |
https://github.com/antoniodanielbf-isep/LAPR4-2021/blob/master/lei20_21_s4_2dk_03/base.core/src/main/java/eapli/base/atividade/domain/AtividadeManual.java | Github Open Source | Open Source | MIT | 2,021 | LAPR4-2021 | antoniodanielbf-isep | Java | Code | 160 | 585 | package eapli.base.atividade.domain;
import eapli.base.clientusermanagement.domain.Colaborador;
import eapli.base.equipa.domain.Equipa;
import eapli.base.formulario.domain.Formulario;
import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.persistence.Temporal;
import javax.persistence.Tempor... | 51,754 |
https://github.com/Lewiy/AngreeBirdsUnity/blob/master/Assets/Scripts/SaverSystem/Saver.cs | Github Open Source | Open Source | MIT | 2,017 | AngreeBirdsUnity | Lewiy | C# | Code | 38 | 117 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
public class Saver {
static public void SaveXml(ISaver saver, SaveScene state, string datapath)
{
saver.Serialize( state, datapath);
}
static public SaveScene DeXml(ISaver saver, string datapath)
... | 27,208 |
https://github.com/j-bourque/qsiprep/blob/master/qsiprep/interfaces/denoise.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | qsiprep | j-bourque | Python | Code | 342 | 1,510 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
Interfaces for image denoising
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"""
import numpy as np
import nibabel as nb
import pandas as pd
from nilearn.image import lo... | 27,740 |
https://github.com/dmorosinotto/scriptcs-arduino/blob/master/src/ScriptCs.Arduino/ScriptCs.Arduino/StringExtensions.cs | Github Open Source | Open Source | MIT | 2,019 | scriptcs-arduino | dmorosinotto | C# | Code | 46 | 131 | using System;
namespace ScriptCs.Arduino
{
public static class StringExtensions
{
public static string FormatWith(this string s, params object[] args)
{
return String.Format(s, args);
}
public static bool HasValue(this string s)
{
return !String... | 43,994 |
https://github.com/anibal-carmona/crud-basico/blob/master/resources/views/home.blade.php | Github Open Source | Open Source | MIT | null | crud-basico | anibal-carmona | PHP | Code | 13 | 68 |
@extends('layouts.master')
@section('content')
{{ auth()->user()->name }}
<form action="/logout" method="POST">
@csrf
<button type="submit">Logout</button>
</form>
@endsection | 36,381 |
https://github.com/chitrita/celda-1/blob/master/R/celda.R | Github Open Source | Open Source | MIT | 2,017 | celda-1 | chitrita | R | Code | 77 | 293 | #' @import foreach
#' @export
celda = function(counts, model, sample.label=NULL, nchains=1, cores=1, seed=12345, ...) {
cl = parallel::makeCluster(cores)
doParallel::registerDoParallel(cl)
runs = expand.grid(chain=1:nchains, ...)
print(runs) # TODO Toggle based on log level
all.seeds = seed:(seed + nch... | 10,053 |
https://github.com/Edward644/FakeDataGenarator/blob/master/src/genarators/random.js | Github Open Source | Open Source | MIT | null | FakeDataGenarator | Edward644 | JavaScript | Code | 44 | 132 | import loremipsum from "../../randomData/loremipsum.js";
const m = loremipsum.length;
class RandomGenerator {
create() {
return {
a: newString(),
b: Math.random(),
c: Math.random().toString(),
};
}
}
function newString() {
let len = Math.trunc(Math.random() * (m - 500));
return lore... | 2,787 |
https://github.com/LiuOcean/luban_examples/blob/master/Projects/Csharp_Unity_Editor_json/Assets/Gen/test/Shape.cs | Github Open Source | Open Source | MIT | 2,022 | luban_examples | LiuOcean | C# | Code | 107 | 319 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//---------------------------------------------... | 20,149 |
https://github.com/Terradue/dcs-testsuite/blob/master/src/main/app-resources/test008/nodes/run2 | Github Open Source | Open Source | Apache-2.0 | 2,019 | dcs-testsuite | Terradue | Python | Code | 119 | 317 | #!/opt/anaconda/bin/python
import sys
import os
import os.path
import atexit
# import the ciop functions (e.g. copy, log)
import cioppy
ciop = cioppy.Cioppy()
# define the exit codes
SUCCESS = 0
ERR_NOINPUT = 1
# add a trap to exit gracefully
def clean_exit(exit_code):
log_level = 'INFO'
if exit_code != SUC... | 50,695 |
https://github.com/Spark108XenForo/SXFCore/blob/master/upload/src/addons/SXFCore/Repository/Component.php | Github Open Source | Open Source | MIT | 2,018 | SXFCore | Spark108XenForo | PHP | Code | 143 | 644 | <?php
namespace SXFCore\Repository;
use XF\Mvc\Entity\Repository;
class Component extends Repository
{
public function findComponentsForList($where = [])
{
if (!$this->hasTableComponent())
{
return false;
}
return $this->finder('SXFCore:Component')->where($where)->order('component_id');
}
public ... | 32,056 |
https://github.com/pengjiangbin/GuideFrame/blob/master/app/src/main/java/com/jiang/guideframe/MultiActivity.java | Github Open Source | Open Source | Apache-2.0 | null | GuideFrame | pengjiangbin | Java | Code | 58 | 317 | package com.jiang.guideframe;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import com.jiang.frame.Guide;
import com.jiang.frame.GuidePage;
public class MultiActivity extends AppCompatActivity {
private Guide guide;
@Override
protected void onCreate... | 30,821 |
https://github.com/rom1v/homebrew-core/blob/master/Formula/x264.rb | Github Open Source | Open Source | BSD-2-Clause | 2,018 | homebrew-core | rom1v | Ruby | Code | 145 | 678 | class X264 < Formula
desc "H.264/AVC encoder"
homepage "https://www.videolan.org/developers/x264.html"
head "https://git.videolan.org/git/x264.git"
stable do
# the latest commit on the stable branch
url "https://git.videolan.org/git/x264.git",
:revision => "e9a5903edf8ca59ef20e6f4894c196f135af7... | 31,441 |
https://github.com/jcapellman/dotnet-queue-tests/blob/master/RESTQueue.ProcessorApp/Program.cs | Github Open Source | Open Source | MIT | 2,020 | dotnet-queue-tests | jcapellman | C# | Code | 255 | 989 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using NLog;
using RawRabbit.Context;
using RawRabbit.vNext;
using RESTQueue... | 48,632 |
https://github.com/zkilburn86/five9-hubspot-dialer/blob/master/react-ui/src/utilities/DispositionHandler.ts | Github Open Source | Open Source | MIT | null | five9-hubspot-dialer | zkilburn86 | TypeScript | Code | 89 | 248 |
type Disposition = {
id: string;
label: string;
}
type DispositionResult = Disposition[]
class DispositionHandler {
static storeDispositions = () => {
fetch('/api/disposition', {
method: 'GET',
credentials: 'same-origin',
mode: 'same-origin'
})
... | 51,999 |
https://github.com/nodecg/nodecg/blob/master/src/server/database/datasource.ts | Github Open Source | Open Source | MIT | 2,023 | nodecg | nodecg | TypeScript | Code | 180 | 441 | // Native
import path from 'path';
// Packages
import 'reflect-metadata';
import { DataSource } from 'typeorm';
export * from './entity';
// Ours
import { User } from './entity/User';
import { Session } from './entity/Session';
import { Role } from './entity/Role';
import { Replicant } from './entity/Replicant';
impo... | 17,372 |
https://github.com/tobymackenzie/Web-ClientBehavior/blob/master/old/pagers/selectPagerStatic.jq.js | Github Open Source | Open Source | BSD-3-Clause | null | Web-ClientBehavior | tobymackenzie | JavaScript | Code | 269 | 1,189 | /*------
dependencies: tmlib base, tmlib isiphone, jquery
style:
.galleryswitch select{
display: none; /* if select is to not be used by for non javascript applications
}
.page{
width: 890px; /* width must be specified so that height will be the same when page goes off screen
}
// init
if(typeof $ !== 'undefined'... | 17,365 |
https://github.com/krnp/kalindi/blob/master/app/FieldExecutive.php | Github Open Source | Open Source | MIT | null | kalindi | krnp | PHP | Code | 32 | 131 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class FieldExecutive extends Model
{
public function getCountry()
{
return $this->hasOne('App\Country','id','country_id');
}
public function getState()
{
return $this->hasOne('App\State','id','state_id');
}
public function getCity()
{
r... | 49,063 |
https://github.com/Viktour19/BitcoinMAvgs/blob/master/utils.py | Github Open Source | Open Source | MIT | 2,020 | BitcoinMAvgs | Viktour19 | Python | Code | 53 | 193 | import requests, calendar, time
from iso8601 import parse_date
from tinydb import TinyDB, Query
from worker import conn
def retrieve_current_price(endpoint):
response = requests.get(url=endpoint)
data = response.json()
updatedTime = data['time']['updatedISO']
currentPrice = data['bpi']["USD"]['rate_... | 41,000 |
https://github.com/rasmusbruckner/AdaptiveLearning/blob/master/Task/Functions/OpenWindow.m | Github Open Source | Open Source | MIT | 2,022 | AdaptiveLearning | rasmusbruckner | MATLAB | Code | 367 | 1,321 | function [window, windowRect, textures] = OpenWindow(debug, screenNumber)
%OPENWINDOW This function opens the psychtoolbox screen
%
% Input
% debug: indicates if we're currently debugging
% screenNumber: used screen number
%
% Output
% window: psychtoolbox window object
% windowRect: ??
% ... | 15,633 |
https://github.com/pinkfish/flutter_basketball/blob/master/ux/lib/widgets/chart/durationextents.dart | Github Open Source | Open Source | MIT | 2,021 | flutter_basketball | pinkfish | Dart | Code | 50 | 139 | import 'package:charts_common/common.dart';
import 'package:meta/meta.dart' show required;
class DurationExtents extends Extents<Duration> {
final Duration start;
final Duration end;
DurationExtents({@required this.start, @required this.end});
@override
bool operator ==(other) {
return other is Duratio... | 22,521 |
https://github.com/mcrkersten/Procedural-level-design/blob/master/LandsAndUnits/Assets/Art/Kenney Assets/Castle Kit/Models.meta | Github Open Source | Open Source | CC0-1.0 | 2,021 | Procedural-level-design | mcrkersten | Unity3D Asset | Code | 12 | 62 | fileFormatVersion: 2
guid: 4c80d3134fa0c364fbf88e4ea12dc325
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| 11,887 |
https://github.com/masaeedu/node-fs-extra/blob/master/lib/mkdirs/index.js | Github Open Source | Open Source | MIT | 2,018 | node-fs-extra | masaeedu | JavaScript | Code | 45 | 165 | 'use strict'
const u = require('universalify').fromCallback
const _mkdirs = require('./mkdirs')
const _mkdirsSync = require('./mkdirs-sync')
module.exports = fs => {
const mkdirs = u(_mkdirs(fs))
const mkdirsSync = _mkdirsSync(fs)
return {
mkdirs: mkdirs,
mkdirsSync: mkdirsSync,
// alias
mkdirp... | 23,840 |
https://github.com/lasta/study-go-2021/blob/master/ch02/ex02/tempconv/conv.go | Github Open Source | Open Source | Apache-2.0 | null | study-go-2021 | lasta | Go | Code | 116 | 289 | package tempconv
// CToF converts from degree Celsius to degree Fahrenheit
func CToF(c Celsius) Fahrenheit {
return Fahrenheit(c*9/5 + 32)
}
// CToK converts from degree Celsius to degree Kelvin
func CToK(c Celsius) Kelvin {
return Kelvin(c - AbsoluteZeroCelsius)
}
// FToC converts from degree Fahrenheit to degree... | 33,066 |
https://github.com/jwgl/bell-tm-client/blob/master/src/app/here/free-listen/check/free-listen-check.resolve.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | bell-tm-client | jwgl | TypeScript | Code | 64 | 205 | import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, Resolve, RouterStateSnapshot } from '@angular/router';
import { Observable } from 'rxjs';
import { FreeListenCheckService } from './free-listen-check.service';
import { map } from 'rxjs/operators';
@Injectable()
export class FreeListenCheckR... | 733 |
https://github.com/epfremmer/test-everything/blob/master/tests/Filesystem/CacheTest.php | Github Open Source | Open Source | MIT | 2,015 | test-everything | epfremmer | PHP | Code | 406 | 2,291 | <?php
/**
* File CacheTest.php
*
* @author Edward Pfremmer <epfremme@nerdery.com>
*/
namespace Epfremme\Everything\Tests\Filesystem;
use Epfremme\Everything\Filesystem\Cache;
use Epfremme\Everything\Composer\Json;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Finder\Finder;
use Symfony\Compone... | 27,204 |
https://github.com/locomolito/locomolito.github.io/blob/master/PortfolioFiles/Chick Town Slot Game/js/html5_baseclass/Utils/AppUtils.js | Github Open Source | Open Source | MIT | null | locomolito.github.io | locomolito | JavaScript | Code | 86 | 268 |
define([], function() {
var AppUtils = ({
toNumeric: function(_str){
_str = _str.toString();
while (_str.search(",") >= 0) {
_str = (_str + "").replace(',', '');
}
return parseFloat(_str);
},
insertComma: function(_str){
... | 33,496 |
https://github.com/presidentjimstevens/JSIL/blob/master/JSIL.Libraries/Includes/Core/Reflection/Utils/$jsilcore.MemberInfoExternals.js | Github Open Source | Open Source | MIT, MS-PL, LicenseRef-scancode-public-domain | 2,016 | JSIL | presidentjimstevens | JavaScript | Code | 250 | 1,006 | /*? if (!('$jsilcore_MemberInfoExternals' in __out)) { __out.$jsilcore_MemberInfoExternals = true; */
$jsilcore.MemberInfoExternals = function ($) {
$.Method({ Static: false, Public: true }, "get_DeclaringType",
new JSIL.MethodSignature($jsilcore.TypeRef("System.Type"), [], []),
function () {
return th... | 13,709 |
https://github.com/hawkwithwind/mux/blob/master/middleware.go | Github Open Source | Open Source | BSD-3-Clause | null | mux | hawkwithwind | Go | Code | 327 | 753 | package mux
import (
"net/http"
"strings"
)
// MiddlewareFunc is a function which receives an http.Handler and returns another http.Handler.
// Typically, the returned handler is a closure which does something with the http.ResponseWriter and http.Request passed
// to it, and then calls the handler passed as parame... | 19,874 |
https://github.com/NTNAEEM/hotentot/blob/master/examples/file_server/gen/proxy/service_proxy.h | Github Open Source | Open Source | MIT | null | hotentot | NTNAEEM | C | Code | 79 | 322 | /***************************************************************
* Generated by Hottentot CC Generator
* Date: 12-01-2016 01:39:45
* Name: service_proxy.h
* Description:
* This file contains definition of the proxy class.
***************************************************************/
#ifndef ___PROXY__SERVIC... | 15,323 |
https://github.com/uktrade/navigator/blob/master/app/markets/migrations/0018_auto_20160907_1118.py | Github Open Source | Open Source | MIT | 2,021 | navigator | uktrade | Python | Code | 67 | 296 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-09-07 11:18
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('markets', '0017_auto_20160907_1110'),
]
operations = [
migrations.RemoveFiel... | 29,236 |
https://github.com/merico-dev/charts/blob/master/dist/components/charts/base/scrollable/stories/index.d.ts | Github Open Source | Open Source | Apache-2.0 | null | charts | merico-dev | TypeScript | Code | 43 | 90 | import * as horizontal from './horizontal';
import * as horizontalResizable from './horizontal-resizable';
import * as vertical from './vertical';
import * as verticalResizable from './vertical-resizable';
declare const _default: (typeof horizontal | typeof horizontalResizable | typeof vertical | typeof verticalResizab... | 51,283 |
https://github.com/abrahamfunes/blog/blob/master/resources/views/emails/contact.blade.php | Github Open Source | Open Source | MIT | null | blog | abrahamfunes | PHP | Code | 25 | 131 | <h2>Datos de formulario de contacto bc2.mx</h2>
<p>
<b>Nombre:</b> {{ $request->input('name') }}<br><br>
<b>Correo electrónico:</b> {{ $request->input('email') }}<br><br>
<b>Titulo:</b> {{ $request->input('title') }}<br><br>
<b>Asunto:</b> {{ $request->input('subject') }}<br><br>
</p> | 1,481 |
https://github.com/atb00ker/ideation-portal/blob/master/src/models/migrations/ideationdb/1628323887053_create_view_topics_count_by_department/down.sql | Github Open Source | Open Source | MIT | 2,021 | ideation-portal | atb00ker | SQL | Code | 5 | 18 | DROP VIEW IF EXISTS topics_count_by_department;
| 14,111 |
https://github.com/BreezeZin/DefinitelyTyped/blob/master/types/json2csv/transforms/unwind.d.ts | Github Open Source | Open Source | MIT | 2,022 | DefinitelyTyped | BreezeZin | TypeScript | Code | 45 | 89 | import { Json2CsvTransform, UnwindOptions } from "../";
/**
* Builds a unwinding transform
*
* @param options Options to use for unwinding
* @returns Array of objects containing all rows after unwind of chosen paths
*/
declare function unwind(options?: UnwindOptions): Json2CsvTransform<any, any[]>;
export = unwi... | 11,327 |
https://github.com/christomabraham/perumthachan/blob/master/uli-ui/src/app/raw-material/raw-material.component.ts | Github Open Source | Open Source | MIT | 2,018 | perumthachan | christomabraham | TypeScript | Code | 55 | 172 | import { Component, OnInit } from '@angular/core';
import { RawMaterialService } from './raw-material.service'
@Component({
selector: 'app-raw-material',
templateUrl: './raw-material.component.html',
styleUrls: ['./raw-material.component.scss']
})
export class RawMaterialComponent implements OnInit {
constru... | 25,900 |
https://github.com/BluebloodXXL/phpraw/blob/master/HRms/SElab-master/HRMS -FRESH/application/views/employee/component/footer.php | Github Open Source | Open Source | MIT | null | phpraw | BluebloodXXL | PHP | Code | 138 | 654 | <footer class="col-sm-12 footer">
<div class="container">
<div class="row">
<p class="text-center margin">
Designed and Developed by <a href="http://fratelloneit.com" target="_blank">Fratellone IT Solutions LTD.</a>
</p>
</div>
</div>
</footer> ... | 47,817 |
https://github.com/arinifir/altprinting/blob/master/application/views/user/footer.php | Github Open Source | Open Source | MIT | null | altprinting | arinifir | PHP | Code | 892 | 3,963 | <!--================ Start footer Area =================-->
<footer class="footer">
<div class="footer-area">
<div class="container">
<div class="row section_gap">
<div class="offset-lg-1 col-lg-3 col-md-6 col-sm-6">
<div class="single-footer-widget tp_widget... | 21,554 |
https://github.com/simonbreiter/mathammer/blob/master/src/util/reroll.test.js | Github Open Source | Open Source | MIT | null | mathammer | simonbreiter | JavaScript | Code | 47 | 164 | /* eslint-env jest */
import { reroll } from './reroll'
test('function exists', () => {
expect(reroll).toBeDefined()
})
test('reroll-all', () => {
expect(reroll('reroll-all', 2, 2, 2, 2)).toBeCloseTo(0)
})
test('reroll-1', () => {
expect(reroll('reroll-1', 2, 2, 2, 2)).toBeCloseTo(2.333)
})
test('reroll-none'... | 11,560 |
https://github.com/monikahossan/ViewPoint/blob/master/resources/sass/banner.scss | Github Open Source | Open Source | MIT | 2,020 | ViewPoint | monikahossan | SCSS | Code | 236 | 786 | #banner {
background: url(../images/banner.jpg) 50% 0 no-repeat fixed;
background-size: cover;
background-position: center center;
position: relative;
height: 100vh;
width: 100%;
}
// .parallax-section {
// background-attachment: fixed !important;
// background-size: cover !important;
// }
... | 21,596 |
https://github.com/commitd/baleen-examples/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,018 | baleen-examples | commitd | Ignore List | Code | 8 | 32 | /amazon/
/jars/
/models/
/output/
.project
.settings/
.DS_Store
*.jar | 45,862 |
https://github.com/Saworieza/Kronos-Translator/blob/master/app/assets/stylesheets/homepage/index.scss | Github Open Source | Open Source | MIT | 2,018 | Kronos-Translator | Saworieza | SCSS | Code | 22 | 114 | body[id='homepage_index']{
.translator-row{
margin-top: 2.5rem;
.language-input{
resize: none;
}
#first-textarea{
margin-bottom: 15px;
}
.language-row{
margin-bottom: 5px;
}
}
.title-dep{
margin-bottom: 2px;
}
} | 13,966 |
https://github.com/emilhoeiriis/wordnet-rs/blob/master/src/file_platform.rs | Github Open Source | Open Source | BSD-2-Clause | null | wordnet-rs | emilhoeiriis | Rust | Code | 87 | 343 | #[cfg(unix)]
#[derive(Debug)]
pub struct ReadAtFile {
file: ::std::fs::File,
}
#[cfg(unix)]
impl ReadAtFile {
pub fn new(f: ::std::fs::File) -> ReadAtFile {
ReadAtFile { file: f }
}
pub fn read_at(&self, buf: &mut [u8], offset: u64) -> ::std::io::Result<usize> {
::std::os::unix::fs::File... | 4,917 |
https://github.com/noris-network/telemetry-tempest-plugin/blob/master/telemetry_tempest_plugin/integration/hooks/post_test_hook.sh | Github Open Source | Open Source | Apache-2.0 | null | telemetry-tempest-plugin | noris-network | Shell | Code | 356 | 971 | #!/bin/bash -xe
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distrib... | 12,521 |
https://github.com/linsheng847371466/FakeUA/blob/master/main.py | Github Open Source | Open Source | MIT | 2,019 | FakeUA | linsheng847371466 | Python | Code | 184 | 768 |
from log import info,warning,error,success
import trio
import asks
asks.init('trio')
class spider(object):
def __init__(self, *args, **kwargs):
self.datas = {}
async def getTypesL1(self):
"""
取得一级分类
"""
url = "https://developers.whatismybrowser.com/use... | 50,658 |
https://github.com/caryoscelus/power-department-ld38/blob/master/app/src/state/Preload.ts | Github Open Source | Open Source | MIT | 2,017 | power-department-ld38 | caryoscelus | TypeScript | Code | 78 | 649 | export class Preload extends Phaser.State {
private preloadBar: Phaser.Sprite;
private slickUI: Phaser.Plugin.SlickUI;
preload() {
this.preloadBar = this.add.sprite(290, 290, 'preload-bar');
this.load.setPreloadSprite(this.preloadBar);
this.load.tilemap("map1", "assets/rural-1.json... | 33,445 |
https://github.com/ghetzel/go-stockutil/blob/master/geoutil/countries_test.go | Github Open Source | Open Source | MIT | 2,022 | go-stockutil | ghetzel | Go | Code | 44 | 186 | package geoutil
import (
"testing"
"github.com/ghetzel/testify/assert"
)
func TestCountriesGet(t *testing.T) {
assert.Equal(t, `United States of America`, Countries.Get(UnitedStates).Name)
assert.Equal(t, `United States of America`, Countries.Get(`us`).Name)
assert.Equal(t, `United States of America`, Countries... | 14,801 |
https://github.com/ahsaniqbal94/bridge-adaptivity/blob/master/bridge_adaptivity/module/static/module/js/consumer.js | Github Open Source | Open Source | BSD-3-Clause | 2,020 | bridge-adaptivity | ahsaniqbal94 | JavaScript | Code | 55 | 190 | $(document).ready(function() {
$("#contributors .delete-contributor").on("click", function() {
var element = $(this);
$.ajax({
url: this.dataset["remove_url"],
}).done(function() {
element.closest("tr").remove();
}).fail(function (jqXHR, textStatus, errorThrow... | 42,722 |
https://github.com/pcingola/SnpSift/blob/master/src/main/java/org/snpsift/lang/expression/Gt.java | Github Open Source | Open Source | MIT | 2,022 | SnpSift | pcingola | Java | Code | 62 | 176 | package org.snpsift.lang.expression;
import org.snpsift.lang.Value;
/**
* Greater equal
*
* @author pcingola
*/
public class Gt extends ExpressionBinary {
public Gt(Expression left, Expression right) {
super(left, right, ">");
}
@Override
protected Value evalOp(Value lval, Value rval) {
// Cannot be com... | 46,495 |
https://github.com/aNNiMON/HotaruFX/blob/master/app/src/main/java/com/annimon/hotarufx/bundles/NodesBundle.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,020 | HotaruFX | aNNiMON | Java | Code | 227 | 919 | package com.annimon.hotarufx.bundles;
import com.annimon.hotarufx.lib.Function;
import com.annimon.hotarufx.lib.NodeValue;
import com.annimon.hotarufx.lib.Types;
import com.annimon.hotarufx.lib.Validator;
import com.annimon.hotarufx.lib.Value;
import com.annimon.hotarufx.visual.objects.*;
import java.util.Arrays;
impo... | 42,993 |
https://github.com/narma/elastic4s/blob/master/elastic4s-handlers/src/main/scala/com/sksamuel/elastic4s/handlers/searches/queries/RankFeatureQueryBuilderFn.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | elastic4s | narma | Scala | Code | 58 | 318 | package com.sksamuel.elastic4s.handlers.searches.queries
import com.sksamuel.elastic4s.json.{XContentBuilder, XContentFactory}
import com.sksamuel.elastic4s.requests.searches.queries.RankFeatureQuery
object RankFeatureQueryBuilderFn {
def apply(q: RankFeatureQuery): XContentBuilder = {
val builder = XContentFac... | 15,533 |
https://github.com/isutton/crawlie/blob/master/Crawlie.Server.IntegrationTests/CrawlerServiceTests.cs | Github Open Source | Open Source | MIT | null | crawlie | isutton | C# | Code | 239 | 861 | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Crawlie.Contracts;
using FluentAssertions;
using Microsoft.Extensions.Logging;
using Moq;
using Xunit;
namespace Crawlie.Server.IntegrationTests
{
public class CrawlerServiceTests
{
[Fact]
public async Task Hand... | 2,711 |
https://github.com/ansrivas/go-datastructs/blob/master/commonprobs/ds_with_constant_ops_test.go | Github Open Source | Open Source | MIT | 2,017 | go-datastructs | ansrivas | Go | Code | 112 | 320 | package commonprobs
import (
"testing"
"github.com/stretchr/testify/assert"
)
func Test_ConstantTimeOps(t *testing.T) {
//Should be able to do following operations in constant time.
//Insert, Delete, Find, Get Random.
assert := assert.New(t)
ds := NewConstantDS()
ds.Insert(1)
ds.Insert(5)
ds.Insert(3)
as... | 22,452 |
https://github.com/grpdata/grpscript/blob/master/src/ts/grp/script/model/fever.ts | Github Open Source | Open Source | Unlicense | null | grpscript | grpdata | TypeScript | Code | 18 | 41 | export class Fever {
constructor(
public measureCount: number,
public beat: number,
public time: number
) {
}
}
| 39,367 |
https://github.com/mdblp/platform/blob/master/request/test/response_inspector.go | Github Open Source | Open Source | BSD-2-Clause | 2,022 | platform | mdblp | Go | Code | 91 | 332 | package test
import "net/http"
type ResponseInspector struct {
InspectResponseInvocations int
InspectResponseInputs []*http.Response
InspectResponseStub func(res *http.Response) error
InspectResponseOutputs []error
InspectResponseOutput *error
}
func NewResponseInspector() *ResponseInspecto... | 32,375 |
https://github.com/jeefy/hive/blob/master/pkg/controller/dnsendpoint/dnsendpoint_controller_test.go | Github Open Source | Open Source | Apache-2.0 | null | hive | jeefy | Go | Code | 1,353 | 6,084 | package dnsendpoint
import (
"context"
"encoding/json"
"io/ioutil"
"os"
"testing"
"github.com/golang/mock/gomock"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"
"sigs.k8s.io/controller-runtime/pkg/healthz"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg... | 15,544 |
https://github.com/aambrioso1/Effective_Python/blob/master/Item85/namespace_package/main.py | Github Open Source | Open Source | MIT | null | Effective_Python | aambrioso1 | Python | Code | 15 | 64 | #!/usr/bin/env PYTHONHASHSEED=1234 python3
from analysis.utils import log_base2_bucket
from frontend.utils import stringify
bucket = stringify(log_base2_bucket(33))
print(repr(bucket)) | 38,595 |
https://github.com/Giddius/Antistasi_Logbook/blob/master/tests/parsing_tests/conftest.py | Github Open Source | Open Source | MIT | 2,022 | Antistasi_Logbook | Giddius | Python | Code | 309 | 1,173 | from antistasi_logbook.parsing.parsing_context import LogParsingContext, LineCache, LINE_ITERATOR_TYPE, RecordLine
from antistasi_logbook.parsing.parser import RawRecord, Parser, SimpleRegexKeeper
from pathlib import Path
import pytest
from contextlib import contextmanager
from typing import Any, TextIO, Mapping
from i... | 13,063 |
https://github.com/dribdat/VersusVirus-App/blob/master/src/modules/admin/resources/team.tsx | Github Open Source | Open Source | MIT | 2,020 | VersusVirus-App | dribdat | TSX | Code | 304 | 1,121 | import React, { Component } from "react";
import {
Edit,
TextInput,
SimpleForm,
List,
ArrayInput,
ReferenceField,
SimpleFormIterator,
Datagrid,
TextField,
EditButton,
ReferenceInput,
SelectArrayInput,
SelectInput,
ReferenceArrayInput,
Create,
Filter,
FunctionField,
} from "react-admin... | 44,893 |
https://github.com/jessetvogel/synthesizer/blob/master/interfaces/app/web/js/notes.js | Github Open Source | Open Source | MIT | 2,017 | synthesizer | jessetvogel | JavaScript | Code | 194 | 462 | var notes = {
name: function (note) {
var notes = ['C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#', 'A', 'A#', 'B'];
var name = notes[Math.round(note) % 12];
var octave = Math.floor(Math.round(note) / 12);
return name + octave;
},
fromName: function (name) {
var semitones = -1;
switch(na... | 28,735 |
https://github.com/hs536/orb/blob/master/functional-tests/src/test/java/corba/hcks/NonSerializableObject.java | Github Open Source | Open Source | BSD-3-Clause | null | orb | hs536 | Java | Code | 82 | 176 | /*
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: ... | 7,828 |
https://github.com/magefree/mage/blob/master/Mage.Sets/src/mage/cards/d/DauthiMindripper.java | Github Open Source | Open Source | MIT | 2,023 | mage | magefree | Java | Code | 115 | 501 |
package mage.cards.d;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.AttacksAndIsNotBlockedTriggeredAbility;
import mage.abilities.costs.common.SacrificeSourceCost;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.DoIfCostPaid;
import mage.abilities.effects.common.d... | 13,017 |
https://github.com/openhwgroup/force-riscv/blob/master/utils/regression/applications/tracediff_riscv/TracediffRiscVExecutor.py | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,023 | force-riscv | openhwgroup | Python | Code | 373 | 1,045 | #
# Copyright (C) [2020] Futurewei Technologies, Inc.
#
# FORCE-RISCV is 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
#
# THIS SOFTWARE IS PR... | 3,804 |
https://github.com/BinaryFissionGames/minescape-tools/blob/master/src/logic/solver/types.ts | Github Open Source | Open Source | MIT | null | minescape-tools | BinaryFissionGames | TypeScript | Code | 173 | 279 | export type Resource = {
name: string;
quantity: number;
};
export type SkillCalculatorTask = {
name: string; // Unique name for this task. If this is different from the human readable name, specify clientFacingName.
humanReadableName?: string; // Human readable name of the task. Does not need to be unique. Fa... | 27,830 |
https://github.com/abushak/test_shop/blob/master/src/routes/cart/_CartItemSkeleton.svelte | Github Open Source | Open Source | MIT | 2,020 | test_shop | abushak | null | Spoken | 35 | 140 | <div class="flex justify-between p-5 border-b border-gray-300">
<div class="w-1/5 h-24 bg-gray-100 rounded" />
<div class="w-9/12 h-auto">
<div class="w-4/6 h-5 mb-4 bg-gray-100" />
<div class="w-4/6 h-5 mb-4 bg-gray-100" />
<div class="w-4/6 h-5 mb-4 bg-gray-100" />
</div>
</div>
| 2,739 |
https://github.com/pnoken/tools/blob/master/crates/formatter/src/ts/class/constructor.rs | Github Open Source | Open Source | MIT | 2,021 | tools | pnoken | Rust | Code | 107 | 492 | use crate::{
format_elements, group_elements, join_elements, soft_line_break_or_space, space_token, token,
FormatElement, Formatter, ToFormatElement,
};
use rslint_parser::ast::{Constructor, ConstructorParamOrPat, ConstructorParameters};
impl ToFormatElement for Constructor {
fn to_format_element(&self, formatter: ... | 1,078 |
https://github.com/dassi/tode/blob/master/repository/Topez-Server-Core.package/TDAbstractProjectRegistrationDefinition.class/instance/^equals.st | Github Open Source | Open Source | MIT | 2,021 | tode | dassi | null | Spoken | 19 | 50 | comparing
= aTDMetacelloRegistrationDefinition
aTDMetacelloRegistrationDefinition species = self species
ifFalse: [ ^ false ].
^ self projectName = aTDMetacelloRegistrationDefinition projectName | 44,515 |
https://github.com/marcelmedina/PlayGoKids/blob/master/2022-04-04/CQRSAndMediatrWithFluentValidationSample/CQRSAndMediatrWithFluentValidationSampleApplication/Product/Pipeline/LoggingBehaviour.cs | Github Open Source | Open Source | MIT | null | PlayGoKids | marcelmedina | C# | Code | 57 | 240 | using MediatR;
using Microsoft.Extensions.Logging;
namespace CQRSAndMediatrWithFluentValidationSampleApplication.Product.Pipeline
{
public class LoggingBehaviour<TRequest, TResponse> : IPipelineBehavior<TRequest, TResponse>
where TRequest : IRequest<TResponse>
{
private readonly ILogger<Loggin... | 39,868 |
https://github.com/kekyo/Epoxy/blob/master/src/FSharp.Epoxy/FSharpHelper.fs | Github Open Source | Open Source | Apache-2.0 | 2,022 | Epoxy | kekyo | null | Spoken | 601 | 1,893 | ////////////////////////////////////////////////////////////////////////////
//
// Epoxy - An independent flexible XAML MVVM library for .NET
// Copyright (c) 2019-2021 Kouji Matsui (@kozy_kekyo, @kekyo2)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compl... | 33,403 |
https://github.com/Combidi/Combidi/blob/master/Shared/Model/Store.swift | Github Open Source | Open Source | MIT | null | Combidi | Combidi | Swift | Code | 151 | 496 | //
// Created by Peter Combee on 04/06/2021.
//
import Combine
class Store<State, Action>: ObservableObject {
var derivedCancellables: Set<AnyCancellable> = []
@Published var state: State
let _dispatch: (Action) -> Void
init(state: State, dispatch: @escaping (Action) -> Void) ... | 19,758 |
https://github.com/LeonardoBroDobro/MediaBrowser.ApiClient.Java/blob/master/android/src/mediabrowser/apiinteraction/android/sync/data/UserRepository.java | Github Open Source | Open Source | MIT | 2,015 | MediaBrowser.ApiClient.Java | LeonardoBroDobro | Java | Code | 284 | 887 | package mediabrowser.apiinteraction.android.sync.data;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import mediabrowser.apiinteraction.sync.data.IUserRepository;
impo... | 18,865 |
https://github.com/hangqiu/pixie/blob/master/src/carnot/exec/row_tuple.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | pixie | hangqiu | C | Code | 974 | 2,750 | /*
* Copyright 2018- The Pixie 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 ag... | 31,493 |
https://github.com/danielcorreia96/LEIC_Projects/blob/master/Third_Year/Software_Engineering/broker/src/test/java/pt/ulisboa/tecnico/softeng/broker/domain/ProcessPaymentStateProcessMethodTest.java | Github Open Source | Open Source | CNRI-Python | null | LEIC_Projects | danielcorreia96 | Java | Code | 345 | 1,539 | package pt.ulisboa.tecnico.softeng.broker.domain;
import org.joda.time.LocalDate;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import mockit.Delegate;
import mockit.Injectable;
import mockit.Mocked;
import mockit.StrictExpectations;
import mockit.integration.junit4.JMockit;
import ... | 43,735 |
https://github.com/ziaulrehman40/tsugi/blob/master/vendor/tsugi/lib/tests/Mock/MockSession.php | Github Open Source | Open Source | Apache-2.0 | 2,021 | tsugi | ziaulrehman40 | PHP | Code | 58 | 177 | <?php
class MockSession {
public $sess = array();
public function get($key, $default) {
return isset($this->sess[$key]) ? $this->sess[$key] : $default;
}
public function put($key, $value) {
$this->sess[$key] = $value;
}
public function forget($key) {
if ( isset($this->se... | 26,373 |
https://github.com/DovetailSoftware/fubumvc/blob/master/src/FubuMVC.Core/Registration/Conventions/StringOutputPolicy.cs | Github Open Source | Open Source | Apache-2.0 | null | fubumvc | DovetailSoftware | C# | Code | 42 | 187 | using System;
using System.Collections.Generic;
using System.Linq;
using FubuMVC.Core.Resources.Conneg;
namespace FubuMVC.Core.Registration.Conventions
{
public class StringOutputPolicy : Policy
{
public StringOutputPolicy()
{
Where.ResourceTypeIs<string>();
Conneg.AddWr... | 23,482 |
https://github.com/jrmajor/fluent-php/blob/master/src/Node/BaseNode.php | Github Open Source | Open Source | MIT | 2,022 | fluent-php | jrmajor | PHP | Code | 23 | 69 | <?php
namespace Major\Fluent\Node;
abstract class BaseNode
{
public function getType(): string
{
$position = strrpos(static::class, '\\');
return substr(static::class, $position + 1);
}
}
| 7,244 |
https://github.com/forki/grnline.fs/blob/master/RunTests.sh | Github Open Source | Open Source | MIT | 2,017 | grnline.fs | forki | Shell | Code | 10 | 92 | #!/bin/sh
xbuild grnline.fs.sln /property:Configuration=Debug /property:VisualStudioVersion=12.0 /target:rebuild
inputs="./grnline.fs.Tests/bin/Debug/grnline.fs.Tests.dll"
mono ./packages/Persimmon.Console/tools/Persimmon.Console.exe $inputs
| 6,044 |
https://github.com/lhongjum/cms/blob/master/cms-web/src/main/java/com/xzjie/et/cms/service/ArticleService.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | cms | lhongjum | Java | Code | 137 | 493 | package com.xzjie.et.cms.service;
import com.xzjie.et.cms.model.Article;
import com.xzjie.et.cms.model.ArticleContent;
import com.xzjie.mybatis.core.service.BaseService;
import com.xzjie.mybatis.page.PageEntity;
import java.util.List;
public interface ArticleService extends BaseService<Article, Long> {
PageEn... | 8,014 |
https://github.com/Carolineline/VersionUpdate/blob/master/Example/Podfile | Github Open Source | Open Source | MIT | 2,017 | VersionUpdate | Carolineline | Ruby | Code | 15 | 74 | source 'http://git.2b6.me/Cocoapods/Specs.git'
platform :ios, ‘8.0’
#use_frameworks!
target 'QYAppUpdate_Example' do
pod "QYAppUpdate", :path => "../"
end
| 12,619 |
https://github.com/haohaoxi/ydbg/blob/master/backend/modules/gongchu/views/audit/_form.php | Github Open Source | Open Source | BSD-3-Clause | 2,017 | ydbg | haohaoxi | PHP | Code | 417 | 2,386 | <?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use backend\modules\gongchu\models\Gongchu;
/* @var $this yii\web\View */
/* @var $model backend\modules\gongchu\models\Gongchu */
/* @var $form yii\widgets\ActiveForm */
?>
<style type="text/css">
.qingjia-bohui {
height: 250px;
padding: 20px... | 30,413 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.