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/dassi/tode/blob/master/repository/Tode-GemStone-Server-Core.package/TDGemStoneTool.class/instance/gsflushCaches..1.st | Github Open Source | Open Source | MIT | 2,021 | tode | dassi | null | Spoken | 17 | 65 | commands
gsflushCaches
"
gs flushCaches [--hard]
"
self getSubcommandOptsMixedLongShort: {#('hard' nil #'none')}.
self gsFlushCaches: (subOptions includesKey: 'hard') | 46,033 |
https://github.com/codevise/pageflow/blob/master/spec/fixtures/sample.srt | Github Open Source | Open Source | MIT, LicenseRef-scancode-free-unknown | 2,023 | pageflow | codevise | null | Spoken | 28 | 94 | 1
00:00:00,000 --> 00:00:01,500
This is a sample.
2
00:00:01,500 --> 00:00:02,500
<i>Tonight's the night.</i>
3
00:00:03,000 --> 00:00:15,000
<i>And it's going to happen
again and again --</i>
| 14,206 |
https://github.com/dikhimartin/receipt_golang_crud/blob/master/app/application/controllers/api/UserControler.go | Github Open Source | Open Source | Linux-OpenIB, CC-BY-4.0 | 2,020 | receipt_golang_crud | dikhimartin | Go | Code | 131 | 520 | package api
import(
"time"
controllers "receipt/application/controllers"
"receipt/database"
"github.com/labstack/echo"
)
func Getinfologin(c echo.Context) error{
data_users := controllers.GetDataLogin(c)
response := response_json{
"data_users" : data_users,
"time" : time.Now().UnixNano(),
}
re... | 3,456 |
https://github.com/bobotran/openml-python/blob/master/examples/30_extended/datasets_tutorial.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | openml-python | bobotran | Python | Code | 653 | 1,615 | """
========
Datasets
========
How to list and download datasets.
"""
# License: BSD 3-Clauses
import openml
import pandas as pd
from openml.datasets import edit_dataset, fork_dataset, get_dataset
############################################################################
# Exercise 0
# **********
#
# * List datas... | 29,281 |
https://github.com/JohnyWS/Paket/blob/master/tests/Paket.Tests/Performance/EventBoundarySpecs.fs | Github Open Source | Open Source | MIT | 2,018 | Paket | JohnyWS | null | Spoken | 236 | 686 | module Performance.EventBoundarySpecs
open Paket.Profile
open FsCheck
open NUnit.Framework
open System
[<Test>]
let ``simple event boundaries work``() =
let boundaries =
[|
Start(new DateTime(2017, 12, 23, 19, 7, 0))
End(new DateTime(2017, 12, 23, 19, 15, 0))
|]
let r... | 6,738 |
https://github.com/cubelets/jpeg-turbo-stream/blob/master/src/convert.c | Github Open Source | Open Source | MIT | 2,015 | jpeg-turbo-stream | cubelets | C | Code | 1,376 | 3,377 | // memdjpeg - A super simple example of how to decode a jpeg in memory
// Kenneth Finnegan, 2012
// blog.thelifeofkenneth.com
//
// After installing jpeglib, compile with:
// cc memdjpeg.c -ljpeg -o memdjpeg
//
// Run with:
// ./memdjpeg filename.jpg
//
// Version Date Time By
// ------- ---------- ----- ... | 22,401 |
https://github.com/ozym/libcrex/blob/master/firfilter.c | Github Open Source | Open Source | Apache-2.0 | null | libcrex | ozym | C | Code | 841 | 2,004 | /*
* Copyright (c) 2003 Institute of Geological & Nuclear Sciences Ltd.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright... | 49,194 |
https://github.com/jbarroso/fizzbuzz/blob/master/app/config.js | Github Open Source | Open Source | MIT | 2,014 | fizzbuzz | jbarroso | JavaScript | Code | 26 | 79 | var fizzBuzz = (function(fb) {
fb.fizz = {
factor: 3,
result: 'Fizz'
};
fb.buzz = {
factor: 5,
result: 'Buzz'
};
return fb;
})(fizzBuzz || {});
| 17,984 |
https://github.com/tilemapjp/gdal_mobile/blob/master/OSGeo.GDAL.Shared/const/GdalConst.cs | Github Open Source | Open Source | MIT | null | gdal_mobile | tilemapjp | C# | Code | 851 | 3,400 | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.7
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ------------------------------... | 26,093 |
https://github.com/yndu13/aliyun-openapi-net-sdk/blob/master/aliyun-net-sdk-dms-enterprise/Dms_enterprise/Model/V20181101/ListDataCorrectPreCheckSQLResponse.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | aliyun-openapi-net-sdk | yndu13 | C# | Code | 394 | 1,204 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 46,000 |
https://github.com/damiankoper/so2/blob/master/src/Simulation/Thread.cpp | Github Open Source | Open Source | Unlicense | null | so2 | damiankoper | C++ | Code | 155 | 351 | #include "Thread.hpp"
#include <thread>
Thread::Thread() : isJoinRequested(false), started(false) {}
Thread::~Thread() = default;
unsigned int Thread::tid() const { return 0; }
void Thread::start(void *threadArg) {
int ret;
this->arg = threadArg;
/*
* Since pthread_create is a C library function, the 3rd a... | 24,258 |
https://github.com/aws-solutions/cognito-user-profiles-export-reference-architecture/blob/master/source/custom-resources/test/global-table-creator.spec.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0, MIT | 2,023 | cognito-user-profiles-export-reference-architecture | aws-solutions | JavaScript | Code | 445 | 1,632 | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
/**
* @author Solution Builders
*/
// Import packages
const axios = require('axios');
const MockAdapter = require('axios-mock-adapter');
const axiosMock = new MockAdapter(axios);
// Mock axios
axiosMock.onP... | 21,930 |
https://github.com/dvieiragendra/AmeDigital/blob/master/src/main/java/ProjectAme/FrontEnd/StepWeb.java | Github Open Source | Open Source | Apache-2.0 | null | AmeDigital | dvieiragendra | Java | Code | 520 | 2,702 | package ProjectAme.FrontEnd;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Random;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.By;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.W... | 1,441 |
https://github.com/vohungnghiem/bestkwave/blob/master/public/tinymce/plugins/table/src/test/js/browser/TableResizeTest.js | Github Open Source | Open Source | MIT | 2,018 | bestkwave | vohungnghiem | JavaScript | Code | 1,519 | 6,707 | asynctest(
'browser.tinymce.plugins.table.TableResizeTest',
[
'ephox.agar.api.Pipeline',
'ephox.mcagar.api.LegacyUnit',
'ephox.mcagar.api.TinyLoader',
'tinymce.plugins.table.Plugin',
'tinymce.themes.modern.Theme'
],
function (Pipeline, LegacyUnit, TinyLoader, Plugin, Theme) {
var success... | 1,851 |
https://github.com/TW2002/twxp/blob/master/Source/Installer/TWXS27/Public/ls_SECTv162.ts | Github Open Source | Open Source | MIT, LGPL-2.1-or-later, LGPL-2.0-or-later, LicenseRef-scancode-warranty-disclaimer, GPL-1.0-or-later, AGPL-3.0-or-later, GPL-3.0-only, LicenseRef-scancode-other-copyleft, LicenseRef-scancode-unknown-license-reference | 2,023 | twxp | TW2002 | TypeScript | Code | 3,602 | 10,785 | #=-------- -------=#
#=--------------------- LoneStar's Express Col & Tow -------------------------=#
#=-------- -------=#
# Incep Date : June 13, 2007 - Ver... | 34,942 |
https://github.com/audiosurf/Audiosurf2_Tools/blob/master/Audiosurf2_Tools/MiniControls/RequestItemControl.axaml.cs | Github Open Source | Open Source | MIT | 2,022 | Audiosurf2_Tools | audiosurf | C# | Code | 28 | 108 | using System.Windows.Input;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
namespace Audiosurf2_Tools.MiniControls;
public class RequestItemControl : UserControl
{
public RequestItemControl()
{
InitializeComponent();
}
private void InitializeComponent()
{
Av... | 17,928 |
https://github.com/mari44ka/Java_for_testers/blob/master/sandbox/src/main/java/ru/stqa/pft/sandbox/Primes.java | Github Open Source | Open Source | Apache-2.0 | null | Java_for_testers | mari44ka | Java | Code | 59 | 154 | package ru.stqa.pft.sandbox;
/**
* Created by Mari on 4/29/17.
*/
public class Primes {
public static boolean isPrime(int n){
for ( int i=2; i<n; i = i+1){
if (n % i == 0){
return false;
}
}
return true;
}
public static boolean isPrimeWhile(int n){
int i =2;
while (i<n... | 34,381 |
https://github.com/PTapioK/ts-patches/blob/master/inc/Enums/KeyboardTypes.h | Github Open Source | Open Source | MIT | 2,021 | ts-patches | PTapioK | C | Code | 1,703 | 6,144 | //
// Constants for WWKeyboardClass.
//
// Author: CCHyper
// Date: 28-03-2021
//
#ifndef _KEYBOARD_TYPES_H_
#define _KEYBOARD_TYPES_H_
#include <windows.h>
//#include <Winuser.h>
// GetKeyState flags
#define DEFUALT_KEY_UP 0x0
#define DEFUALT_KEY_DOWN 0x80
#define TOGGLED_KEY_ON 0x1
#define TOGGLED_KEY_OFF 0x81
/... | 50,187 |
https://github.com/vinayakpokharkar/aws-sdk-java/blob/master/aws-java-sdk-ivs/src/main/java/com/amazonaws/services/ivs/model/BatchGetStreamKeyResult.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | aws-sdk-java | vinayakpokharkar | Java | Code | 664 | 1,771 | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | 16,814 |
https://github.com/nz-govt-moe-skysigal/nz.govt.moe.idp.saml.client.asp.net/blob/master/nz.govt.moe.idp.saml.client/Specification/ICertificateSpecification.cs | Github Open Source | Open Source | Apache-2.0 | null | nz.govt.moe.idp.saml.client.asp.net | nz-govt-moe-skysigal | C# | Code | 56 | 175 | using System.Security.Cryptography.X509Certificates;
namespace nz.govt.moe.idp.saml.client.Specification
{
/// <summary>
/// Specification interface for certificate validation
/// </summary>
public interface ICertificateSpecification
{
/// <summary>
/// Determines whether the spec... | 49,520 |
https://github.com/AthulJoseph27/Self_Driving_Car/blob/master/Library/PackageCache/com.unity.ml-agents@1.0.6/Tests/Editor/TensorUtilsTest.cs | Github Open Source | Open Source | MIT | 2,020 | Self_Driving_Car | AthulJoseph27 | C# | Code | 407 | 1,385 | using System;
using Unity.MLAgents.Inference;
using Unity.MLAgents.Inference.Utils;
using Unity.Barracuda;
using NUnit.Framework;
namespace Unity.MLAgents.Tests
{
public class TensorUtilsTest
{
[TestCase(4, TestName = "TestResizeTensor_4D")]
[TestCase(8, TestName = "TestResizeTensor_8D")]
... | 19,790 |
https://github.com/kbsecret/kbsecret/blob/master/test/cli/command/test_todo.rb | Github Open Source | Open Source | MIT | 2,021 | kbsecret | kbsecret | Ruby | Code | 210 | 859 | # frozen_string_literal: true
require "helpers"
# Tests for KBSecret::CLI::Command::Todo
class KBSecretCommandTodoTest < Minitest::Test
include Helpers
include Helpers::CLI
def test_todo_help
todo_helps = [
%w[todo --help],
%w[todo -h],
%w[help todo],
]
todo_helps.each do |todo_h... | 6,746 |
https://github.com/slingr-stack/endicia-endpoint/blob/master/src/main/java/com/envmgr/labelservice/ArrayOfCarrierPickupListDetail.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | endicia-endpoint | slingr-stack | Java | Code | 212 | 718 |
package com.envmgr.labelservice;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Clase Java para ArrayOfCarrierPickupL... | 52,286 |
https://github.com/pt4847/json-schema/blob/master/tests/src/test/java/org/everit/json/schema/IssueTest.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | json-schema | pt4847 | Java | Code | 791 | 2,059 | package org.everit.json.schema;
import org.everit.json.schema.loader.SchemaLoader;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.json.JSONTokener;
import org.junit.Assert;
import org.junit.Assume;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.juni... | 8,195 |
https://github.com/cesaralonso/tiempocompartido_bt/blob/master/src/localizaciones/xml_users.php | Github Open Source | Open Source | MIT | 2,018 | tiempocompartido_bt | cesaralonso | PHP | Code | 33 | 144 | <?php
include("../conexion.php");
require_once('JSON.php'); // http://pear.php.net/pepr/pepr-proposal-show.php?id=198
$json = new Services_JSON();
$sql = mysql_query("SELECT * FROM jquery_locations WHERE idMem = '$_GET[id]'");
$locacion = array();
while($row = mysql_fetch_array($sql)) {
$locacion[] = $row;
}... | 26,833 |
https://github.com/MathiasNT/MixedNormalizingFlows/blob/master/DEwNF/flows/ConditionalNormalizingFlowWrapper3.py | Github Open Source | Open Source | MIT | null | MixedNormalizingFlows | MathiasNT | Python | Code | 265 | 981 | import itertools
import pyro.distributions as dist
from pyro.nn import DenseNN
from torch import nn
import torch
from pyro.distributions.transforms import permute, batchnorm
from .ConditionalAffineCoupling2 import conditional_affine_coupling2
from ..nns import DropoutDenseNN
class ConditionalNormalizingFlowWrapper3(o... | 93 |
https://github.com/dwvisser/jam-daq-code/blob/master/src/main/java/jam/commands/AbstractImportFile.java | Github Open Source | Open Source | NCSA, LicenseRef-scancode-unknown-license-reference | 2,020 | jam-daq-code | dwvisser | Java | Code | 155 | 497 | package jam.commands;
import java.io.File;
import injection.GuiceInjector;
import jam.data.control.AbstractControl;
import jam.global.BroadcastEvent;
import jam.global.Broadcaster;
import jam.global.JamStatus;
import jam.io.ImpExpException;
/**
* Export data to file. Full implementations must assign an <code>ImpExp... | 34,757 |
https://github.com/Kerdek/gie/blob/master/gui/src/nodes/ManagedImageSourceNode.h | Github Open Source | Open Source | BSD-3-Clause-Clear | 2,022 | gie | Kerdek | C | Code | 203 | 736 | //
// Created by alex on 7/18/19.
//
#ifndef GIE_MANAGEDIMAGESOURCENODE_H
#define GIE_MANAGEDIMAGESOURCENODE_H
#include <QImage>
#include "src/nodeeditor/SourceNode.h"
#include "src/Project.h"
class ManagedImageSourceNode: public SourceNode
{
Q_OBJECT
public:
explicit ManagedImageSourceNode(const ProjectImag... | 45,819 |
https://github.com/levietphu/movieweb/blob/master/app/Http/Controllers/Backend/CategoryController.php | Github Open Source | Open Source | MIT | null | movieweb | levietphu | PHP | Code | 249 | 877 | <?php
namespace App\Http\Controllers\Backend;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\Category;
use DB;
use Log;
use App\Http\Requests\AddCategoryRequest;
use App\Http\Requests\UpdateCategoryRequest;
class CategoryController extends Controller
{
/**
* Display a listi... | 48,639 |
https://github.com/franz1100110/TeaTIme/blob/master/application/views/article/home.php | Github Open Source | Open Source | MIT | null | TeaTIme | franz1100110 | PHP | Code | 148 | 668 | <section class="u-clearfix u-section-1" id="sec-5d57">
<div class="u-clearfix u-sheet u-sheet-1">
<style>
h1{text-align:center;
margin : 40px;
padding : 40px;
font-family: 'Courier New', Courier, monospace;
font-weight: bold;}
img{
... | 3,920 |
https://github.com/newptcai/BakSneppenSimulation.jl/blob/master/test/runtests.jl | Github Open Source | Open Source | MIT | null | BakSneppenSimulation.jl | newptcai | Julia | Code | 233 | 724 | using BakSneppenSimulation
using BakSneppenSimulation: n, diameter
using Test
using Random
@testset "BakSneppenSimulation.jl" begin
@testset "3 mutations" begin
Random.seed!(1234)
config = SimConfig(10, 0.6, 3)
state = SimState(rand(0:1, 10))
sim = SimCircular(config, state)
... | 49,771 |
https://github.com/alisharifi01/hottentot/blob/master/examples/authentication/gen/stub/authenticate_service_server.cc | Github Open Source | Open Source | MIT | 2,016 | hottentot | alisharifi01 | C++ | Code | 141 | 750 | /******************************************************************
* Generated by Hottentot CC Generator
* Date: 02-05-2016 05:18:41
* Name: authenticate_service_server.cc
* Description:
* This file contains definitions of sample stub.
******************************************************************/
#incl... | 38,992 |
https://github.com/admariner/keboola-as-code/blob/master/internal/pkg/dependencies/abstract.go | Github Open Source | Open Source | MIT | null | keboola-as-code | admariner | Go | Code | 207 | 983 | package dependencies
import (
"context"
"github.com/keboola/keboola-as-code/internal/pkg/encryption"
"github.com/keboola/keboola-as-code/internal/pkg/env"
"github.com/keboola/keboola-as-code/internal/pkg/event"
"github.com/keboola/keboola-as-code/internal/pkg/filesystem"
"github.com/keboola/keboola-as-code/inte... | 50,494 |
https://github.com/renjie-zhang/whatsnewingoland/blob/master/2021.2/01 - convert slice to array pointer/go.mod | Github Open Source | Open Source | Apache-2.0 | 2,021 | whatsnewingoland | renjie-zhang | Go Module | Code | 4 | 20 | module wni20212/convertslicetoarraypointer
go 1.17
| 4,302 |
https://github.com/xitao-moura/absoluta-api/blob/master/dist/users/users.controller.js | Github Open Source | Open Source | MIT | null | absoluta-api | xitao-moura | JavaScript | Code | 322 | 1,214 | "use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... | 40,806 |
https://github.com/arvigeus/studentlife/blob/master/src/relay/NetworkLayer.js | Github Open Source | Open Source | MIT | 2,017 | studentlife | arvigeus | JavaScript | Code | 48 | 134 | import { DefaultNetworkLayer } from 'react-relay';
let graphqlUrl;
if (typeof window !== 'undefined' && window.document) {
const client = require('../client/config');
graphqlUrl = client.Settings.serverUrl + client.Settings.graphqlUrl;
} else {
// const server = require('../server/config');
// graphqlUrl = se... | 6,844 |
https://github.com/jpstudiosonline/GoodGamer-LFG/blob/master/app/src/main/java/com/jpstudiosonline/goodgamer/userAppArea/tabFragments/UserMenuActivities/ViewUserComments.java | Github Open Source | Open Source | MIT | null | GoodGamer-LFG | jpstudiosonline | Java | Code | 92 | 348 | package com.jpstudiosonline.goodgamer.userAppArea.tabFragments.UserMenuActivities;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.Window;
import android.view.WindowManager;
import com.jpstudiosonline.goodgamer.R;
public class ViewUserComme... | 27,407 |
https://github.com/mrkamel/search_cop/blob/master/test/not_test.rb | Github Open Source | Open Source | MIT | 2,022 | search_cop | mrkamel | Ruby | Code | 77 | 215 | require File.expand_path("test_helper", __dir__)
class NotTest < SearchCop::TestCase
def test_not_string
expected = create(:product, title: "Expected title")
rejected = create(:product, title: "Rejected title")
results = Product.search("title: Title NOT title: Rejected")
assert_includes results, ex... | 46,613 |
https://github.com/andrejsstepanovs/unit-converter/blob/master/tests/integration/Unit/Length/Kilometre.spec.php | Github Open Source | Open Source | MIT | 2,022 | unit-converter | andrejsstepanovs | PHP | Code | 364 | 1,196 | <?php
declare(strict_types = 1);
/**
* This file is part of the jordanbrauer/unit-converter PHP package.
*
* @copyright 2018 Jordan Brauer <18744334+jordanbrauer@users.noreply.github.com>
* @license MIT
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with... | 13,883 |
https://github.com/byCrookie/Framework/blob/master/tests/Framework.Tests/Flow/ConfigStep/TestStepOptions.cs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | Framework | byCrookie | C# | Code | 45 | 116 | namespace Framework.Tests.Flow.ConfigStep
{
public class TestStepOptions
{
public string Param1 { get; set; }
public string Param2 { get; set; }
public TestStepOptions SetParam1(string param)
{
Param1 = param;
return this;
}
publ... | 12,160 |
https://github.com/team-miracle/android-libs/blob/master/android_test_stubs_current_intermediates/src/android/graphics/Matrix.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | android-libs | team-miracle | Java | Code | 740 | 1,606 | /*
* Copyright (C) 2006 The Android Open Source Project
*
* 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 l... | 17,474 |
https://github.com/tkf/TerminalLoggers.jl/blob/master/test/StickyMessages.jl | Github Open Source | Open Source | MIT | null | TerminalLoggers.jl | tkf | Julia | Code | 140 | 645 | using TerminalLoggers: StickyMessages
@testset "Sticky messages without ANSI codes" begin
buf = IOBuffer()
# Without TTY, messages are just piped through
stickies = StickyMessages(buf, ansi_codes=false)
push!(stickies, :a=>"Msg\n")
@test String(take!(buf)) == "Msg\n"
push!(stickies, :a=>"Msg\n"... | 9,494 |
https://github.com/YasminaaAyman/HackerRank-Problem-Solving-Python/blob/master/Migratory Birds.py | Github Open Source | Open Source | MIT | null | HackerRank-Problem-Solving-Python | YasminaaAyman | Python | Code | 81 | 255 |
#
# Complete the 'migratoryBirds' function below.
#
# The function is expected to return an INTEGER.
# The function accepts INTEGER_ARRAY arr as parameter.
#
def migratoryBirds(arr):
mig_birds = {}
for i in range(len(arr)):
if arr[i] not in mig_birds:
mig_birds[arr[i]] = 1
else:
... | 28,861 |
https://github.com/hernanmd/pharo/blob/master/src/Glamour-Morphic-Brick.package/GLMRubScrolledTextBrick.class/class/gtExample.st | Github Open Source | Open Source | MIT | 2,019 | pharo | hernanmd | null | Spoken | 36 | 112 | examples
gtExample
<gtExample>
<label: 'Two rubric text areas filling half of size'>
^ GLMBrick new
useVerticalLinearLayout;
padding: #(20 20);
hSpaceFill;
vSpaceFill;
color: Color veryVeryLightGray;
addAllBricks: { self new vSpaceFill: 50. self new vSpaceFill: 50 };
yourself | 19,010 |
https://github.com/morteza-jamali/versel/blob/master/next.config.js | Github Open Source | Open Source | MIT | null | versel | morteza-jamali | JavaScript | Code | 54 | 187 | module.exports = {
async rewrites() {
return [
{
source: "/",
destination: "/home/home",
},
{
source: "/api/:tool/:lang",
destination: "/api/handler",
},
{
source: "/api",
destination: "/api/handler",
},
];
},
webpack: (co... | 30,549 |
https://github.com/aamcatamney/VerQL/blob/master/VerQL.Core/Models/Database.cs | Github Open Source | Open Source | MIT | null | VerQL | aamcatamney | C# | Code | 141 | 324 | using System.Collections.Generic;
namespace VerQL.Core.Models
{
public class Database
{
public List<Table> Tables { get; set; } = new List<Table>();
public List<Column> Columns { get; set; } = new List<Column>();
public List<PrimaryKeyConstraint> PrimaryKeyConstraints { get; set; } = new List<PrimaryKe... | 47,406 |
https://github.com/Team-Griffin-SQA-2015/TelerikAcademyCustomTestFramework/blob/master/TelerikAcademyCustomTestFramework/QA.TelerikAcademy.FrontEnd.Tests/UserSettings/SocialMediaSettings/SkypeUsernameTests.cs | Github Open Source | Open Source | MIT | 2,016 | TelerikAcademyCustomTestFramework | Team-Griffin-SQA-2015 | C# | Code | 109 | 639 | namespace QA.TelerikAcademy.FrontEnd.Tests.UserSettings.SocialMediaSettings
{
#region using directives
using Core.Constants.Attributes;
using Core.Constants.Pages;
using Core.Facades;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TestingFramework.Core.Base;
using TestingFrame... | 39,232 |
https://github.com/finworks/glass/blob/master/repository/Monticello.v301.package/MCPackageManager.class/instance/modified..st | Github Open Source | Open Source | MIT | 2,016 | glass | finworks | null | Spoken | 29 | 74 | accessing
modified: aBoolean
modified = aBoolean ifTrue: [^ self].
modified _ aBoolean.
self changed: #modified.
self class changed: (Array with: #modified with: self).
modified ifFalse:
[MCPlatformSupport logChangeFor: self packageName]. | 18,364 |
https://github.com/ung-org/libc/blob/master/mk/initscr.d | Github Open Source | Open Source | MIT | 2,020 | libc | ung-org | Makefile | Code | 24 | 154 | libcurses_X.4: libcurses.a(initscr.o)
libcurses.a(initscr.o): $(OBJDIR)/initscr.o
@$(AR) $(ARFLAGS) $@ $(OBJDIR)/$%
$(OBJDIR)/initscr.o: src/curses/initscr.c
$(OBJDIR)/initscr.o:
@echo " [CC] $@"
@mkdir -p $(@D)
@$(CC) -c -o $@ $(CFLAGS) src/curses/initscr.c
| 10,138 |
https://github.com/mojaloop/cross-network/blob/master/projects/mojaloop-app/src/types/mojaloop-models/extensionList.ts | Github Open Source | Open Source | Apache-2.0 | 2,020 | cross-network | mojaloop | TypeScript | Code | 103 | 228 | /**
* Open API for FSP Interoperability (FSPIOP) (Implementation Friendly Version)
* Based on [API Definition version 1.0](https://github.com/mojaloop/mojaloop-specification/blob/develop/API%20Definition%20v1.0.pdf). **Note:** The API supports a maximum size of 65536 bytes (64 Kilobytes) in the HTTP header.
*
* Op... | 35,673 |
https://github.com/wanliming11/MurlocOneBooklet/blob/master/SharkOne/Thinking/SwiftUI/SwiftUITopics.playground/Pages/Untitled Page.xcplaygroundpage/Contents.swift | Github Open Source | Open Source | MIT | null | MurlocOneBooklet | wanliming11 | Swift | Code | 157 | 640 | import Foundation
import Combine
import PlaygroundSupport
import SwiftUI
/// 1. UIHostingController
/// 2. SwiftLayout 里面的 Geometry Reader, View Preferences, Anchor Preferences
/// 3. UIKit 和 SwiftUI 对应内容:
//SwiftUI UIKit
//Text 和 Label UILabel
//TextField UITextField
//TextEditor UITextView
//Button 和 Lin... | 15,252 |
https://github.com/storageos/init/blob/master/go.mod | Github Open Source | Open Source | MIT | 2,023 | init | storageos | Go Module | Code | 47 | 323 | module github.com/storageos/init
go 1.15
require (
github.com/evanphx/json-patch v4.5.0+incompatible // indirect
github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d // indirect
github.com/golang/mock v1.6.0
github.com/json-iterator/go v1.1.7 // indirect
github.com/pkg/errors v0.8.1 // indirect
google.... | 27,323 |
https://github.com/geekyfox/antisync/blob/master/Gemfile | Github Open Source | Open Source | MIT | 2,017 | antisync | geekyfox | Ruby | Code | 16 | 56 | source 'https://rubygems.org'
group :development do
gem 'rake'
gem 'simplecov', '~> 0.12'
gem 'test-unit', '~> 3.2'
end
| 37,185 |
https://github.com/mizquierdo97/MadBoxTest/blob/master/MadBox_Test/Assets/Scripts/Path.cs | Github Open Source | Open Source | MIT | null | MadBoxTest | mizquierdo97 | C# | Code | 48 | 131 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Path : MonoBehaviour
{
public List<Vector3> points = new List<Vector3>();
// Start is called before the first frame update
private void OnDrawGizmos()
{
Gizmos.color = Color.blue;
for(int i = 0... | 37,694 |
https://github.com/RcCreeperTech/V3DLib/blob/master/Lib/Target/instr/ALUOp.cpp | Github Open Source | Open Source | MIT | 2,021 | V3DLib | RcCreeperTech | C++ | Code | 261 | 894 | #include "ALUOp.h"
#include <stdint.h>
#include "Support/basics.h"
#include "Source/Op.h"
namespace V3DLib {
ALUOp::ALUOp(Op const &op) : m_value(op.opcode()) {}
/**
* Determine if current is a mul-ALU instruction
*/
bool ALUOp::isMul() const {
return (M_FMUL <= m_value && m_value <= M_ROTATE);
}
std::string ... | 34,571 |
https://github.com/GsDevKit/Cryptography/blob/master/repository/Cryptography.gemstone.package/ASN1DefinitionModel.class/instance/parseRootObjectType.st | Github Open Source | Open Source | MIT | 2,023 | Cryptography | GsDevKit | null | Spoken | 62 | 164 | services parsing
parseRootObjectType
"parse the definition string and figure out if this object is a subject or a
collection of subjects"
| aString aType |
aString := self asn1DefinitionString.
aType := (aString copyFrom: (aString indexOfSubCollection: '::=')
+ 4 to: (aString indexOf: ${)
- 1) withBlanks... | 49,594 |
https://github.com/oudacias/R-clamations/blob/master/resources/js/components/Contact/Contact.js | Github Open Source | Open Source | MIT | null | R-clamations | oudacias | JavaScript | Code | 215 | 1,044 | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import '../style/login.css';
import '../style/card.css';
import '../style/notification.css'
import Notification from '../Notification/Notification'
export default class Contact extends Component{
constructor(props) {
super(props)... | 11,552 |
https://github.com/emarifer/notes-app-nodejs/blob/master/src/routes/index.routes.js | Github Open Source | Open Source | MIT | null | notes-app-nodejs | emarifer | JavaScript | Code | 18 | 59 | const router = require('express').Router();
const { renderIndex, renderDoc } = require('../controllers/index.controller');
router.get('/', renderIndex);
router.get('/documentation', renderDoc);
module.exports = router; | 37,809 |
https://github.com/solvaysphere/phpFly/blob/master/public/index.php | Github Open Source | Open Source | MIT | 2,019 | phpFly | solvaysphere | PHP | Code | 38 | 87 | <?php
/*
* 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.
*/
require 'base.php';
\think\Route::bind('index');
\think\App::route(true);
\think\App::run()->send(); | 41,724 |
https://github.com/Xylon-Sean/local_feature_loss/blob/master/AP.py | Github Open Source | Open Source | MIT | null | local_feature_loss | Xylon-Sean | Python | Code | 115 | 309 | # -*- coding: utf-8 -*-
# @Time : 2019/11/25 15:55
# @Author : xylon
import torch
def AveragePrecision(x):
"""
calculate average precision for x
:param x: (tensor) 2d dims: Bxd
like: [[1, 1, 0, 1, 0, 0, 0, 0],
[0, 1, 1, 0, 1, 0, 0, 0],
... | 24,328 |
https://github.com/TheLonelyAdventurer/nebula8/blob/master/core/commands/public/source.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | nebula8 | TheLonelyAdventurer | Python | Code | 49 | 165 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright SquirrelNetwork
from config import Config
from core import decorators
from core.utilities.message import message
from core.utilities.functions import bot_object
from core.utilities.strings import Strings
@decorators.delete.init
def init(update,context):
bo... | 32,401 |
https://github.com/VictorCastao/PF-Trabalhos/blob/master/Ex 3.1.4 Forma 1.rkt | Github Open Source | Open Source | MIT | 2,019 | PF-Trabalhos | VictorCastao | null | Spoken | 41 | 122 | #lang racket
;Exercício 3.1.4 - Proprietário Cinema;
(define (n_p preço)
(+ 120 (* (/ (- 5 preço) 0.1) 15)))
(define (custo preço)
(* 1.5 (n_p preço)))
(define (receita preço)
(* preço (n_p preço)))
(define (lucro preço)
(- (receita preço) (custo preço)))
| 39,911 |
https://github.com/dcrosby42/conject/blob/master/conject.gemspec | Github Open Source | Open Source | MIT | 2,017 | conject | dcrosby42 | Ruby | Code | 84 | 342 | # -*- encoding: utf-8 -*-
require File.expand_path('../lib/conject/version', __FILE__)
Gem::Specification.new do |gem|
gem.authors = ["David Crosby"]
gem.email = ["david.crosby@atomicobject.com"]
gem.description = %q{Enable Guice-like dependency injection and contextual object interactions.}
ge... | 22,463 |
https://github.com/yandex-cloud/java-genproto/blob/master/src/main/java/yandex/cloud/api/containerregistry/v1/LifecyclePolicyServiceGrpc.java | Github Open Source | Open Source | MIT | 2,019 | java-genproto | yandex-cloud | Java | Code | 2,438 | 16,087 | package yandex.cloud.api.containerregistry.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static io... | 43,612 |
https://github.com/dmaennel/BurningOKR/blob/master/backend/burning-okr/burning-okr-app/src/main/java/org/burningokr/controller/okrUnit/OkrUnitController.java | Github Open Source | Open Source | Apache-2.0 | null | BurningOKR | dmaennel | Java | Code | 413 | 1,907 | package org.burningokr.controller.okrUnit;
import java.util.Collection;
import java.util.UUID;
import javax.validation.Valid;
import lombok.RequiredArgsConstructor;
import org.burningokr.annotation.RestApiController;
import org.burningokr.dto.okr.ObjectiveDto;
import org.burningokr.dto.okrUnit.OkrChildUnitDto;
import ... | 33,802 |
https://github.com/fei-zhang-bb/Lessons/blob/master/Machine_Learning_and_Parallel_Computing/HW1_Neuron_Classifier/hw1_1.py | Github Open Source | Open Source | Apache-2.0 | 2,018 | Lessons | fei-zhang-bb | Python | Code | 140 | 478 | from numpy import *
def hardlims(x):
if x >= 0:
return 1
else:
return 0
def multiple(l1,l2):
result = mat(l1)*mat(l2).T
return result[0,0]
def train(train_data,W,b):
flag = 0
for train_datum in train_data:
t = train_datum[1]
a = predict(train_datum[0],W,b)
... | 15,301 |
https://github.com/kirubz/petrel/blob/master/src/lib/builtin/http2_client.cpp | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,016 | petrel | kirubz | C++ | Code | 331 | 1,377 | /*
* Copyright (c) 2016 Andreas Pohl
* Licensed under MIT (see COPYING)
*
* Author: Andreas Pohl
*/
#include "http2_client.h"
#include "make_unique.h"
#include <boost/asio.hpp>
#include <boost/fiber/all.hpp>
#include <sstream>
namespace petrel {
namespace lib {
DECLARE_LIB_BEGIN(http2_client);
ADD_LIB_METHOD(c... | 41,400 |
https://github.com/hayaah/react-flow-chart/blob/master/stories/CustomPort.tsx | Github Open Source | Open Source | MIT | 2,020 | react-flow-chart | hayaah | TSX | Code | 150 | 588 | import * as React from 'react'
import styled from 'styled-components'
import { FlowChartWithState, IPortDefaultProps } from '../src'
import { Page } from './components'
import { chartSimple } from './misc/exampleChartState'
const PortDefaultOuter = styled.div`
width: 24px;
height: 24px;
background: cornflowerblu... | 50,293 |
https://github.com/TylerStewart/AngryBirds/blob/master/Time/src/Timer_win32.cpp | Github Open Source | Open Source | MIT | null | AngryBirds | TylerStewart | C++ | Code | 119 | 295 | /*
* Timer_win32.cpp
*
* Timer implementation specific to the win32 platform.
*/
//---------------------------------------------------------------------------
// HEADER FILES:
//---------------------------------------------------------------------------
#include "Timer.h"
#include <windows.h>
//------------------... | 5,537 |
https://github.com/thalium/icebox/blob/master/third_party/virtualbox/src/VBox/Disassembler/testcase/tstDisasm-2.cpp | Github Open Source | Open Source | GPL-2.0-only, LicenseRef-scancode-unknown-license-reference, CDDL-1.0, LicenseRef-scancode-warranty-disclaimer, GPL-1.0-or-later, LGPL-2.1-or-later, GPL-2.0-or-later, MPL-1.0, LicenseRef-scancode-generic-exception, Apache-2.0, OpenSSL, MIT | 2,022 | icebox | thalium | C++ | Code | 2,246 | 7,190 | /* $Id: tstDisasm-2.cpp $ */
/** @file
* Testcase - Generic Disassembler Tool.
*/
/*
* Copyright (C) 2008-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it u... | 7,128 |
https://github.com/Meng263/job4j/blob/master/chapter_008/src/main/java/ru/job4j/solid/lsp/store/Store.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | job4j | Meng263 | Java | Code | 21 | 68 | package ru.job4j.solid.lsp.store;
import java.util.Date;
public interface Store {
int capacity();
int countProduct();
boolean accept(Food food, Date currentDate);
boolean addProduct(Food food);
}
| 31,254 |
https://github.com/jcosmo/scoutmgr/blob/master/vendor/tools/buildr_plus/lib/buildr_plus/features/whitespace.rb | Github Open Source | Open Source | Apache-2.0 | 2,017 | scoutmgr | jcosmo | Ruby | Code | 500 | 1,716 | #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under ... | 37,360 |
https://github.com/nmarulo/Food-Fighter-M-laga-am-Edition/blob/master/Assets/scripts/NyamBar.cs | Github Open Source | Open Source | MIT | null | Food-Fighter-M-laga-am-Edition | nmarulo | C# | Code | 191 | 618 | using UnityEngine;
using System.Collections;
public class NyamBar : MonoBehaviour
{
//Valor maximo de la barra
public int maxNyamBar = 100;
//Nombre de la barra del personaje
public string tagBarNyamBar = "BarNyamBar";
//Barra del ÑamBar
private GameObject barNyamBar;
//Valor de la barra
... | 29,025 |
https://github.com/apache/netbeans/blob/master/ide/subversion/test/qa-functional/src/org/netbeans/test/subversion/operators/RepositoryBrowserSearchHistoryOperator.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | netbeans | apache | Java | Code | 458 | 1,139 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 41,043 |
https://github.com/beichen-xing/AWS_Based_Giftcard_Project/blob/master/CardFinal/src/test/java/cardcontrol/LambdaTest.java | Github Open Source | Open Source | MIT | 2,020 | AWS_Based_Giftcard_Project | beichen-xing | Java | Code | 23 | 76 | package cardcontrol;
import com.amazonaws.services.lambda.runtime.Context;
public class LambdaTest {
protected Context createContext(String apiCall) {
TestContext ctx = new TestContext();
ctx.setFunctionName(apiCall);
return ctx;
}
} | 35,192 |
https://github.com/bibodeng/monkeysay/blob/master/views/replies.jade | Github Open Source | Open Source | MIT | null | monkeysay | bibodeng | null | Spoken | 62 | 411 | extends layout
block header
block content
div.container
#errMsg
if errMsg
pre= errMsg
hr
div.container
#dataList.media-list
each reply in replies
li.row(style='border-bottom:thin solid #eee; padding-bottom:15px; padding-top:15px;')
div.col-md-3
... | 8,846 |
https://github.com/LykkeCity/Lykke.Job.BlobToBlobConverter.ConnectorOrderbook/blob/master/src/Lykke.Job.BlobToBlobConverter.ConnectorOrderbook.Core/Domain/InputModels/InConnectorOrderbook.cs | Github Open Source | Open Source | MIT | null | Lykke.Job.BlobToBlobConverter.ConnectorOrderbook | LykkeCity | C# | Code | 111 | 308 | using System;
using System.Linq;
using System.Collections.Generic;
namespace Lykke.Job.BlobToBlobConverter.ConnectorOrderbook.Core.Domain.InputModels
{
public class InConnectorOrderbook
{
private static int _maxLength = 255;
public string Source { get; set; }
public string Asset { ge... | 18,793 |
https://github.com/FrannDzs/vc-rp/blob/master/gamemodes/server/worldtime/header.inc | Github Open Source | Open Source | MIT | 2,020 | vc-rp | FrannDzs | null | Spoken | 8 | 27 | new SERVER_TIME[2], SERVER_WEATHER = 3, worldtime_timer_interval = 1; | 24,697 |
https://github.com/Michael1249/Unity-Projects/blob/master/Little Adventure/Assets/Tiled2Unity/Meshes/World/World_mesh_0086.obj | Github Open Source | Open Source | MIT | 2,019 | Unity-Projects | Michael1249 | Wavefront Object | Code | 239 | 572 | # Tiled2Unity generated file. Do not modify by hand.
# Wavefront file for 'World_mesh_0086.obj'
# Vertices (Count = 36)
v -4 -4 0
v -5 -4 0
v -5 -3 0
v -4 -3 0
v -5 -4 0
v -6 -4 0
v -6 -3 0
v -5 -3 0
v -9 -4 0
v -10 -4 0
v -10 -3 0
v -9 -3 0
v -10 -4 0
v -11 -4 0
v -11 -3 0
v -10 -3 0
v -11 -4 0
v -12 -4 0
v -12 -3 0... | 4,617 |
https://github.com/JamesFrost/wikidata/blob/master/src/Wikidata.php | Github Open Source | Open Source | MIT | 2,017 | wikidata | JamesFrost | PHP | Code | 693 | 2,223 | <?php namespace Wikidata;
use Wikidata\Exception\HttpRequestException;
use Wikidata\Exception\InvalidArgumentException;
use Wikidata\Response\SearchResponse;
use Wikidata\Response\EntityResponse;
use Wikidata\Response\PropertyResponse;
class Wikidata {
const SPARQL_API_BASE_ENDPOINT = 'https://query.wikidata.or... | 11,630 |
https://github.com/hereiamnow/react-static-ecommerce-blog/blob/master/src/components/Forms/Contact.js | Github Open Source | Open Source | MIT | null | react-static-ecommerce-blog | hereiamnow | JavaScript | Code | 116 | 490 | /**
* Created by S Miller <hereiamnow@gmail.com>
* Date: 1/30/2020 1:18 AM
* Project: https://react-static-ecommerce-blog.netlify.com
* GitRepo: https://github.com/hereiamnow/react-static-ecommerce-blog.git
* Relative Path: src/components/Forms/Contact.js
* Description:
*/
import React from 'react';
class Cont... | 40,287 |
https://github.com/enonic/lib-graphql/blob/master/src/main/java/com/enonic/lib/graphql/scalars/LocalDateTimeScalar.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | lib-graphql | enonic | Java | Code | 275 | 807 | package com.enonic.lib.graphql.scalars;
import java.time.DateTimeException;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeParseException;
import graphql.language.StringValue;
import graphql.scalars.util.Kit;
import graphql.schema.Coercing;
import graphql.sc... | 33,738 |
https://github.com/DevVenusK/KarrotFlex/blob/master/Example/Tests/FlexVStackTests.swift | Github Open Source | Open Source | Apache-2.0 | null | KarrotFlex | DevVenusK | Swift | Code | 302 | 1,318 | //
// FlexVStackTests.swift
// KarrotFlex_Tests
//
// Created by Geektree0101 on 2021/12/12.
// Copyright © 2021 CocoaPods. All rights reserved.
//
import Foundation
import XCTest
import KarrotFlex
import FBSnapshotTestCase
final class FlexVStackTests: KarrotFlexSnapshotTestCase {
private let redBox: UIView = ... | 17,390 |
https://github.com/vinyguedess/vinyguedess/blob/master/tsc/src/app.ts | Github Open Source | Open Source | MIT | null | vinyguedess | vinyguedess | TypeScript | Code | 60 | 200 | import { Bootstrap, Service } from './Core';
let app = new Bootstrap();
app.get('/', (request, response):void => {
Promise.all([
new Service('seo').findByIndex(1),
new Service('knowledge').find(),
new Service('projects').find(),
new Service('experience').find()
])
.then((r... | 39,103 |
https://github.com/shaojiankui/iOS10-Runtime-Headers/blob/master/PrivateFrameworks/PASampling.framework/PACSRefWrapper.h | Github Open Source | Open Source | MIT | 2,018 | iOS10-Runtime-Headers | shaojiankui | C | Code | 70 | 192 | /* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/PASampling.framework/PASampling
*/
@interface PACSRefWrapper : NSObject {
struct _CSTypeRef {
unsigned long long _opaque_1;
unsigned long long _opaque_2;
} _csRef;
}
@property (readonly) struct _CSTypeRef { unsigne... | 27,236 |
https://github.com/dadurigon/npm-yo-generator-spring-boot-application-from-swagger/blob/master/lib/mappers/objectTypeToClassMapper.js | Github Open Source | Open Source | MIT | 2,017 | npm-yo-generator-spring-boot-application-from-swagger | dadurigon | JavaScript | Code | 59 | 158 | 'use strict';
const map = function map(type, format, props) {
format = format || null;
switch (type) {
case 'string':
return 'String';
case 'boolean':
return 'Boolean';
case 'file':
return 'MultipartFile';
case 'integer':
switch (format) {
case 'int64':
re... | 51,181 |
https://github.com/diegoDevG/lazy-loading/blob/master/src/index.js | Github Open Source | Open Source | MIT | null | lazy-loading | diegoDevG | JavaScript | Code | 156 | 558 | // ***Lazy-loading para imagenes***
// 1. Generar template en Html
// 2. Consultar API y conectar con el DOM
// 3. Agregar interaccion
// 4. Agregar lazy load con intesection observer
import { registerImage } from './lazy'
const imagesContainer = document.querySelector('.images')
const loadOneImgButton = document.... | 35,803 |
https://github.com/patrickmv01/GroceryStore/blob/master/src/main/java/com/example/application/Account.java | Github Open Source | Open Source | Unlicense | null | GroceryStore | patrickmv01 | Java | Code | 298 | 931 | package com.example.application;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
public class Account {
private String email;
private String pass;
private String first;
priv... | 26,856 |
https://github.com/MarkRDavison/AdventOfCode/blob/master/lib/year2020/src/Day25Puzzle.cpp | Github Open Source | Open Source | MIT | null | AdventOfCode | MarkRDavison | C++ | Code | 98 | 428 | #include <2020/Day25Puzzle.hpp>
#include <zeno-engine/Utility/StringExtensions.hpp>
namespace TwentyTwenty {
Day25Puzzle::Day25Puzzle() :
core::PuzzleBase("Combo Breaker", 2020, 25) {
}
void Day25Puzzle::initialise(const core::InitialisationInfo& _initialisationInfo) {
setInputLines(ze::StringExtensions::sp... | 18,598 |
https://github.com/alljoyn/dsb/blob/master/Samples/ZigBeeAdapter/AdapterLib/ZigbeeEndPoint.cs | Github Open Source | Open Source | Apache-2.0 | null | dsb | alljoyn | C# | Code | 1,129 | 3,041 | //
// IN Copyright (c) %s, Microsoft Corporation
// IN
// IN SPDX-License-Identifier: Apache-2.0 *
// IN
// IN All rights reserved. This program and the accompanying materials are
// IN made available under the terms of the Apache License, Version 2.0
// IN which accompanies this distribution, and is available at
/... | 51,545 |
https://github.com/SkillsFundingAgency/das-employer-incentives/blob/master/src/tests/SFA.DAS.EmployerIncentives.Functions.PaymentsProcess.AcceptanceTests/Features/IlrStartDateChanged.feature.cs | Github Open Source | Open Source | MIT | 2,022 | das-employer-incentives | SkillsFundingAgency | C# | Code | 2,004 | 6,855 | // ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by SpecFlow (https://www.specflow.org/).
// SpecFlow Version:3.5.0.0
// SpecFlow Generator Version:3.5.0.0
//
// Changes to this file may cause incorrect behavior and w... | 942 |
https://github.com/affix/sidekiq-connector/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,019 | sidekiq-connector | affix | Makefile | Code | 13 | 60 | TAG?=latest
.PHONY: build
build:
docker build -t affixxx/sidekiq-connector:$(TAG) .
push:
docker push affixxx/sidekiq-connector:$(TAG)
| 16,779 |
https://github.com/WLKR-Financial/appwebsite/blob/master/node_modules/@setprotocol/set-protocol-v2/dist/utils/common/libraryUtils.js | Github Open Source | Open Source | MIT | null | appwebsite | WLKR-Financial | JavaScript | Code | 104 | 316 | "use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertLibraryNameToLinkId = void 0;
var ethers_1 = require("ethers");
var path_1 = __importDefa... | 4,521 |
https://github.com/tterho/rubics-cube/blob/master/src/rubics_cube_game.c | Github Open Source | Open Source | BSD-3-Clause | null | rubics-cube | tterho | C | Code | 476 | 1,884 | /***************************************************************************//**
**
** @file rubics_cube_game.c
** @ingroup rubicscube
** @brief Rubic's cube game library.
** @copyright Copyright (C) 2018 Tuomas Terho. All rights reserved.
**
*********************************************************... | 35,961 |
https://github.com/dla1434/book_python_effective_flow_control/blob/master/chapter2/variable/variable_read_example.py | Github Open Source | Open Source | Apache-2.0 | 2,019 | book_python_effective_flow_control | dla1434 | Python | Code | 45 | 132 | ###################################
# File Name : variable_read_example.py
###################################
#!/usr/bin/python3
msg = "Hello"
def read_work():
print (msg)
print ("World")
def read_exception():
print (msg)
msg = "World"
print (msg)
def main():
print ("=== first read ===")
... | 25,688 |
https://github.com/leschzinerlab/myami-3.2-freeHand/blob/master/lib/python2.7/site-packages/pyscope/tecnai.py | Github Open Source | Open Source | MIT | null | myami-3.2-freeHand | leschzinerlab | Python | Code | 3,542 | 14,169 | # COPYRIGHT:
# The Leginon software is Copyright 2003
# The Scripps Research Institute, La Jolla, CA
# For terms of the license agreement
# see http://ami.scripps.edu/software/leginon-license
import tem
import time
import sys
try:
import nidaq
except:
nidaq = None
use_nidaq = False
try:
import comtypes
import com... | 22,579 |
https://github.com/emabau/astr-119/blob/master/astr-119-hw-2/data_types_continued.py | Github Open Source | Open Source | MIT | null | astr-119 | emabau | Python | Code | 56 | 166 | #string
s = "I am a string."
print(type(s)) #will say str
#boolean
yes = True #Boolean True
print(type(yes))
no = False #Boolean false
print(type(no))
#list -- ordered and changeable
alpha_tuple = ["a","b","c"] #list initialization
print(type(alpha_tuple)) #will say tuple
try:
alpha_tuple[2]="d" #... | 11,201 |
https://github.com/161710125/Relasi/blob/master/app/supir.php | Github Open Source | Open Source | MIT | 2,018 | Relasi | 161710125 | PHP | Code | 21 | 106 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class supir extends Model
{
protected $table='supirs';
protected $fillable=array('nama','jenis_kelamin','no_identitas','no_hp','alamat','harga');
public function booking(){
return $this->hasOne('App\booking','id_supir');
}
}
| 31,907 |
https://github.com/kafribung/web_satu_tani/blob/master/routes/web.php | Github Open Source | Open Source | MIT | null | web_satu_tani | kafribung | PHP | Code | 356 | 2,704 | <?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Admin\FinishPaymentController;
use App\Http\Controllers\Dashboard\CreateMarketCooperative3Controller;
use App\Http\Controllers\{BawangKoperasiController, BawangPetaniController , CartController, CheckoutController, ConfrirmController, HomeController}... | 27,062 |
https://github.com/pete2fiddy/BaZooLE-2/blob/master/shift/WaterDroplet.java | Github Open Source | Open Source | MIT | null | BaZooLE-2 | pete2fiddy | Java | Code | 307 | 947 | /*
* 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 shift;
import java.awt.Color;
import java.awt.Graphics;
import java.util.Random;
/**
*
* @author phusisian
*/
public class... | 36,893 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.