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/atul-vyshnav/2021_IBM_Code_Challenge_StockIT/blob/master/src/StockIT-v2-release_source_from_JADX/sources/com/google/android/gms/internal/ads/zzbud.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | 2021_IBM_Code_Challenge_StockIT | atul-vyshnav | Java | Code | 127 | 520 | package com.google.android.gms.internal.ads;
import android.content.Context;
/* compiled from: com.google.android.gms:play-services-ads@@19.4.0 */
public final class zzbud implements zzeoy<zzawl> {
private final zzeph<Context> zzesu;
private final zzeph<zzdnv> zzfou;
private final zzbua zzfuo;
private... | 3,961 |
https://github.com/jsantell/loadio/blob/master/src/loadio.js | Github Open Source | Open Source | MIT | 2,012 | loadio | jsantell | JavaScript | Code | 203 | 467 | // loadio.js
// @jsantell, (c) 2012
// v0.1.0
(function () {
var Loadio = {};
Loadio.parallel = function ( _scripts, callback ) {
var
scripts = isArray( _scripts ) ? _scripts : [ _scripts ],
i = 0;
for ( var j = scripts.length; j--; ) {
loadFile( scripts[ j ], function () {
if ( ... | 24,842 |
https://github.com/Snowem/snowem/blob/master/ice/ice_component.h | Github Open Source | Open Source | MIT | 2,022 | snowem | Snowem | C | Code | 202 | 740 | /*
* (C) Copyright 2017 Jackie Dinh <jackiedinh8@gmail.com>
*
* 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 ap... | 10,550 |
https://github.com/ekgreen/the-lurking-cobra-in-borsh-blog/blob/master/publication/publication-service/src/main/kotlin/com/lurking/cobra/blog/publication/service/api/model/mapper/PublicationMapper.kt | Github Open Source | Open Source | Apache-2.0 | null | the-lurking-cobra-in-borsh-blog | ekgreen | Kotlin | Code | 37 | 188 | package com.lurking.cobra.blog.publication.service.api.model.mapper
import com.lurking.cobra.blog.publication.service.api.model.Publication
import com.lurking.cobra.blog.publication.service.api.model.dto.PublicationDto
import com.lurking.cobra.blog.publication.service.api.model.entity.PublicationEntity
import org.maps... | 38,594 |
https://github.com/f1rpo/Civ4CE/blob/master/Civ4/Assets/Python/EntryPoints/CvUnitControlInterface.py | Github Open Source | Open Source | CNRI-Python | null | Civ4CE | f1rpo | Python | Code | 92 | 176 | ## Sid Meier's Civilization 4
## Copyright Firaxis Games 2005
from CvPythonExtensions import *
import CvUnitController
#"""
#UNIT CONTROL INTERFACE
#"""
#""" Global Unit controller instance. Instead of creating a new one everytime, just keep a global - saves time."""
pGlobalUnitController = CvUnitController.CvUnitCon... | 2,946 |
https://github.com/shenyiting2018/toefl-vocabulary-helper/blob/master/src/main/java/com/yiting/toeflvoc/daos/AliasDAO.java | Github Open Source | Open Source | MIT | 2,019 | toefl-vocabulary-helper | shenyiting2018 | Java | Code | 119 | 488 | package com.yiting.toeflvoc.daos;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.NoResultException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.yiting.toeflvoc.models.Alias;
import com.yiting.toe... | 45,603 |
https://github.com/raferreira0520/LabPUC2020/blob/master/Assets/Codes/oceanWaves.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | LabPUC2020 | raferreira0520 | C# | Code | 32 | 119 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class oceanWaves : MonoBehaviour
{
public Renderer render;
void Update()
{
render.material.SetTextureOffset("_MainTex", new Vector2(Time.time * 0.01f, 0));
render.material.SetTextureOffset("_DetailAlbedo... | 34,141 |
https://github.com/flex-extras/as3-commons/blob/master/as3-commons-serialization/src/main/actionscript/org/as3commons/serialization/xml/converters/basic/ReflectionConverter.as | Github Open Source | Open Source | Apache-2.0 | 2,016 | as3-commons | flex-extras | null | Spoken | 737 | 2,203 | /*
* Copyright 2009 the original author or 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 applica... | 55,102 |
https://github.com/ragunathjawahar/simple-android/blob/master/app/src/androidTest/java/org/simple/clinic/medicalhistory/MedicalHistoryRepositoryAndroidTest.kt | Github Open Source | Open Source | MIT | null | simple-android | ragunathjawahar | Kotlin | Code | 353 | 2,303 | package org.simple.clinic.medicalhistory
import com.google.common.truth.Truth.assertThat
import org.junit.After
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.rules.RuleChain
import org.simple.clinic.TestClinicApp
import org.simple.clinic.TestData
import org.simple.clinic.medicalh... | 39,984 |
https://github.com/aggelis/cameo/blob/master/aphid/cameo-aphid.service | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-public-domain, Unlicense | 2,020 | cameo | aggelis | null | Spoken | 142 | 325 | # Apple parallel port storage emulator for Cameo
#
# Forfeited into the public domain with NO WARRANTY. Read LICENSE for details.
#
# This systemd file starts the Aphid profile emulator software on an ordinary
# multi-user boot. It expects the disk emulator script (profile.py) and a
# disk image (profile.image) in the ... | 46,259 |
https://github.com/william-wqq/winwin/blob/master/app/Facades/DataTableScriptFacade.php | Github Open Source | Open Source | MIT | 2,017 | winwin | william-wqq | PHP | Code | 34 | 106 | <?php
/**
* Created by PhpStorm.
* User: wugang
* Date: 17/3/1
* Time: 下午1:25
*/
namespace App\Facades;
use Illuminate\Support\Facades\Facade;
class DataTableScriptFacade extends Facade
{
protected static function getFacadeAccessor()
{
return 'dataTableScript';
}
} | 12,287 |
https://github.com/michelmany/wpstarter/blob/master/page.php | Github Open Source | Open Source | MIT | null | wpstarter | michelmany | PHP | Code | 12 | 42 | <?php
$context = Timber::context();
$context['post'] = new Timber\Post();
Timber::render( 'page.twig', $context ); | 29,100 |
https://github.com/NorthFacing/coder/blob/master/src/main/java/com/bob/coder/util/FileEnum.java | Github Open Source | Open Source | Apache-2.0 | null | coder | NorthFacing | Java | Code | 149 | 582 | package com.bob.coder.util;
/**
* Created by Bob on 2015/10/1.
*/
public enum FileEnum {
SQL_XML("sqlXml.ftl", ".mapper", "Mapper.xml", true),
LIST_PAGE("list.ftl", ".jsp", "List.jsp", true),
EDIT_PAGE("edit.ftl", ".jsp", "edit.jsp", true),
VIEW_PAGE("view.ftl", ".jsp", "View.jsp", true),
MODEL("model.ft... | 12,871 |
https://github.com/mano7onam/kotlin-native/blob/master/samples/gitchurn/src/main/kotlin/org/konan/libgit/GitDiff.kt | Github Open Source | Open Source | Apache-2.0 | 2,018 | kotlin-native | mano7onam | Kotlin | Code | 203 | 531 | /*
* Copyright 2010-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 31,753 |
https://github.com/Khan/khan-linter/blob/master/node_modules/graphql-schema-linter/node_modules/graphql/polyfills/objectEntries.mjs | Github Open Source | Open Source | MIT, Apache-2.0 | 2,022 | khan-linter | Khan | JavaScript | Code | 29 | 91 | /* eslint-disable no-redeclare */
// $FlowFixMe workaround for: https://github.com/facebook/flow/issues/5838
var objectEntries = Object.entries || function (obj) {
return Object.keys(obj).map(function (key) {
return [key, obj[key]];
});
};
export default objectEntries;
| 24,876 |
https://github.com/adrienbaron/native_admob_flutter/blob/master/lib/src/native/utils.dart | Github Open Source | Open Source | BSD-3-Clause | 2,022 | native_admob_flutter | adrienbaron | Dart | Code | 504 | 1,518 | import 'package:flutter/material.dart';
import 'layout_builder/layout_builder.dart';
/// Default banner ad layout
///
/// 
///
/// For more info, read the [documentation](https://... | 5,241 |
https://github.com/wmacevoy/testrng/blob/master/dieharder/d011/g010/d011_g010_S3178091728.sh | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-public-domain | 2,016 | testrng | wmacevoy | Shell | Code | 8 | 23 | #!/bin/bash
dieharder -d 11 -g 10 -S 3178091728
| 19,252 |
https://github.com/takeyourhatoff/bosh-google-cpi-release/blob/master/src/bosh-google-cpi/google/image_service/image.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | bosh-google-cpi-release | takeyourhatoff | Go | Code | 13 | 27 | package image
type Image struct {
Name string
SelfLink string
Status string
}
| 44,725 |
https://github.com/ayld/multiverse/blob/master/multiverse-alpha/src/main/java/org/multiverse/stms/alpha/AlphaTranlocal.java | Github Open Source | Open Source | MIT | 2,016 | multiverse | ayld | Java | Code | 592 | 1,336 | package org.multiverse.stms.alpha;
import org.multiverse.MultiverseConstants;
import org.multiverse.api.Transaction;
import org.multiverse.api.TransactionStatus;
import org.multiverse.api.exceptions.PanicError;
import org.multiverse.utils.commitlock.CommitLock;
import org.multiverse.utils.commitlock.CommitLockResult;
... | 48,773 |
https://github.com/TheThingsNetwork/examples/blob/master/Getting Started/4_Traffic/traffic.ino | Github Open Source | Open Source | MIT | 2,016 | examples | TheThingsNetwork | null | Spoken | 133 | 466 | #include <TheThingsNetwork.h>
// Set your AppEUI and AppKey
const char *appEui = "800000000000007B";
const char *appKey = "bbad768dd0e311d470524d12c28b903f";
#define loraSerial Serial1
#define debugSerial Serial
// Replace REPLACE_ME with TTN_FP_EU868 or TTN_FP_US915
#define freqPlan TTN_FP_EU868
TheThingsNetwork tt... | 39,481 |
https://github.com/adamkglaser/B3D/blob/master/source/src/B3D_cudaCompress/HuffmanTable.cu | Github Open Source | Open Source | MIT | 2,021 | B3D | adamkglaser | null | Spoken | 1,749 | 6,996 | #include <cudaCompress/HuffmanTable.h>
#include <cassert>
#include <numeric>
#include <queue>
#include <cuda_runtime.h>
#include <cudaCompress/tools/Operator.h>
#include <cudaCompress/cudaUtil.h>
#include <cudaCompress/InstanceImpl.h>
#include <cudaCompress/Histogram.h>
#include <cudaCompress/HuffmanDesign.h>
#in... | 930 |
https://github.com/will-hart/game-off-2016/blob/master/Assets/Scripts/AI/Actions/AbstractAttackingAction.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,016 | game-off-2016 | will-hart | C# | Code | 257 | 800 | // /**
// * CreepNavigateToHero.cs
// * Will Hart
// * 20161103
// */
namespace GameGHJ.AI.Actions
{
#region Dependencies
using System.Collections.Generic;
using Axes;
using GameGHJ.AI.Core;
using UnityEngine;
#endregion
/// <summary>
/// Sets navigation targets at set interval... | 30,344 |
https://github.com/AnneLaure57/BibliothequeSid/blob/master/src/main/java/fr/miage/sid/bibliothequeCharlesYacia/application_bibliotheque/frontoffice/Gestion_Emprunt.java | Github Open Source | Open Source | MIT | null | BibliothequeSid | AnneLaure57 | Java | Code | 401 | 1,761 | package fr.miage.sid.bibliothequeCharlesYacia.application_bibliotheque.frontoffice;
import java.sql.Date;
import java.util.Calendar;
import java.util.List;
import java.util.logging.Logger;
import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import javax.persistence.Query;
import fr.mi... | 43,770 |
https://github.com/Jonathan-aguilar/DAS_Sistemas/blob/master/Ago-Dic-2020/salazar-coronado-juan-daniel/practica1/practica1.py | Github Open Source | Open Source | MIT | 2,021 | DAS_Sistemas | Jonathan-aguilar | Python | Code | 210 | 433 | class Matrix:
def __init__(self, matrix_string):
#aquí se crea una variable donde la matriz se separa por los saltos de linea y después las listas
#que están dentro se separán por los espacios, para así poder sacar las columnas, ya que si solo
#se deja separado por los saltos de linea al mom... | 47,994 |
https://github.com/daviferreira/leticiastallone.com/blob/master/leticiastallone/links/admin.py | Github Open Source | Open Source | MIT | 2,017 | leticiastallone.com | daviferreira | Python | Code | 17 | 59 | from django.contrib import admin
from .models import ItemLink
class ItemLinkAdmin(admin.ModelAdmin):
search_fields = ["title", "description", "link"]
admin.site.register(ItemLink, ItemLinkAdmin)
| 52,087 |
https://github.com/dferbas/NutOs/blob/master/nut/fs/phatdir.c | Github Open Source | Open Source | BSD-2-Clause | 2,018 | NutOs | dferbas | C | Code | 4,555 | 11,775 | /*
* Copyright (C) 2005-2006 by egnite Software GmbH. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, thi... | 35,190 |
https://github.com/edwardt/Pegasus-2.5/blob/master/src/Pegasus/Common/Attribute.cpp | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-other-permissive | 2,013 | Pegasus-2.5 | edwardt | C++ | Code | 376 | 822 | //%2005////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
// IBM Corp.; EMC Cor... | 4,468 |
https://github.com/haizhenhan/Kepler/blob/master/kernel/2.6.32/arch/microblaze/include/asm/cacheflush.h | Github Open Source | Open Source | BSD-3-Clause | 2,019 | Kepler | haizhenhan | C | Code | 435 | 1,307 | /*
* Copyright (C) 2007-2009 Michal Simek <monstr@monstr.eu>
* Copyright (C) 2007-2009 PetaLogix
* Copyright (C) 2007 John Williams <john.williams@petalogix.com>
* based on v850 version which was
* Copyright (C) 2001,02,03 NEC Electronics Corporation
* Copyright (C) 2001,02,03 Miles Bader <miles@gnu.org>
*
* Th... | 770 |
https://github.com/Woody230/GW2Wrapper/blob/master/v2-model-enumeration/src/commonMain/kotlin/com/bselzer/gw2/v2/model/enumeration/extension/guild/GuildTeamMember.kt | Github Open Source | Open Source | Apache-2.0 | null | GW2Wrapper | Woody230 | Kotlin | Code | 21 | 144 | package com.bselzer.gw2.v2.model.enumeration.extension.guild
import com.bselzer.gw2.v2.model.enumeration.guild.TeamMemberRole
import com.bselzer.gw2.v2.model.guild.team.GuildTeamMember
import com.bselzer.ktx.serialization.function.enumValueOrNull
/**
* The [GuildTeamMember.role] as a [TeamMemberRole]
*/
fun GuildTe... | 43,430 |
https://github.com/Shenkaa/Build-It-Bigger/blob/master/app/src/main/java/eu/ramich/builditbigger/EndpointAsyncTask.java | Github Open Source | Open Source | Apache-2.0 | null | Build-It-Bigger | Shenkaa | Java | Code | 169 | 606 | package eu.ramich.builditbigger;
import android.os.AsyncTask;
import com.google.api.client.extensions.android.http.AndroidHttp;
import com.google.api.client.extensions.android.json.AndroidJsonFactory;
import com.google.api.client.googleapis.services.AbstractGoogleClientRequest;
import com.google.api.client.googleapis... | 26,357 |
https://github.com/bazelbuild/rules_swift/blob/master/test/module_interface_tests.bzl | Github Open Source | Open Source | Apache-2.0 | 2,023 | rules_swift | bazelbuild | Starlark | Code | 255 | 929 | # Copyright 2022 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 56,141 |
https://github.com/Stanford-PERTS/bele-library/blob/master/sass/search.scss | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,020 | bele-library | Stanford-PERTS | SCSS | Code | 526 | 2,001 | /* Styles for Practice Library home and search page */
@import '_colors';
@import '_fonts';
@import '_animations';
@import '_responsive';
@import 'compass';
@include keyframes(fade-left) {
0%,25% { @include opacity(0.0); margin-left: 30px; }
100% { @include opacity(1.0); margin-left: 0px; }
}
$subheader-font-siz... | 26,824 |
https://github.com/jindallae/ReactNativeInit/blob/master/android/settings.gradle | Github Open Source | Open Source | MIT | 2,016 | ReactNativeInit | jindallae | Gradle | Code | 12 | 62 | rootProject.name = 'jindallae'
include ':app'
include ':BundleBus-client'
project(':BundleBus-client').projectDir = new File(rootProject.projectDir, '../node_modules/BundleBus-client/android/app')
| 15,824 |
https://github.com/shnlmn/Rhino-Grasshopper-Scripts/blob/master/IronPythonStubs/release/stubs.min/System/Runtime/InteropServices/__init___parts/_Exception.py | Github Open Source | Open Source | MIT | 2,020 | Rhino-Grasshopper-Scripts | shnlmn | Python | Code | 416 | 1,133 | class _Exception:
""" Exposes the public members of the System.Exception class to unmanaged code. """
def Equals(self,obj):
"""
Equals(self: _Exception,obj: object) -> bool
Provides COM objects with version-independent access to the System.Object.Equals(System.Object)
method.
obj: The Sy... | 17,296 |
https://github.com/zhangcirun/gomoku-engine/blob/master/src/ai/MinimaxAbp.java | Github Open Source | Open Source | MIT | 2,019 | gomoku-engine | zhangcirun | Java | Code | 1,738 | 4,247 | package ai;
import ai.constant.AiConst;
import ai.utility.AiUtils;
import ai.utility.HeuristicChessboardUtils;
import gui.Background;
import gui.constant.GuiConst;
import java.util.List;
/**
* This class is an AI agent uses miniMax, alpha beta pruning and aspiration search
*
* @author Cirun Zhang
* @version 1.2
... | 16,178 |
https://github.com/Shing-Ho/lwv/blob/master/addons/shared/lwv/block_slider-extension/src/Http/Controller/Admin/BlocksController.php | Github Open Source | Open Source | MIT | null | lwv | Shing-Ho | PHP | Code | 277 | 1,095 | <?php namespace Lwv\BlockSliderExtension\Http\Controller\Admin;
use Anomaly\Streams\Platform\Http\Controller\AdminController;
use Anomaly\Streams\Platform\Ui\Breadcrumb\BreadcrumbCollection;
use Anomaly\PagesModule\Page\PageModel;
use Anomaly\Streams\Platform\Support\Authorizer;
use Lwv\BlockSliderExtension\Block\Form... | 10,599 |
https://github.com/Elvynia/ogod/blob/master/element/d2/src/instance/size/hybrid.ts | Github Open Source | Open Source | Apache-2.0 | null | ogod | Elvynia | TypeScript | Code | 43 | 148 | import { D2ElementSize, D2ElementSizeXY } from './element';
import { Hybrids } from "hybrids";
import { ogodFactoryInstanceProperty } from "@ogod/element-core";
export function d2HybridSize(): Hybrids<D2ElementSize> {
return {
size: ogodFactoryInstanceProperty(10)
};
}
export function d2HybridSizeXY()... | 34,593 |
https://github.com/nathanfarlow/cpp-rasterizer/blob/master/Makefile | Github Open Source | Open Source | MIT | null | cpp-rasterizer | nathanfarlow | Makefile | Code | 22 | 95 | rasterizer: src/rasterizer.cpp src/math.h src/math.cpp src/model.h src/model.cpp
g++ -Wall -std=c++2a -O3 -o rasterizer src/rasterizer.cpp src/model.cpp src/math.cpp -lSDL2 -fopenmp -fconcepts
clean:
rm -f rasterizer
| 14,466 |
https://github.com/mario2904/ICOM5016-Project/blob/master/test/dummy-data/dummy-sponsors.js | Github Open Source | Open Source | MIT | null | ICOM5016-Project | mario2904 | JavaScript | Code | 54 | 372 | module.exports = [
{
name: 'Spotery',
image: 'https://pbs.twimg.com/media/CGr1L35XEAMhGJV.png',
},
{
name: 'Yiftee',
image: 'https://crunchbase-production-res.cloudinary.com/image/upload/c_limit,h_600,w_600/v1408640845/nm2lukh0keiadjvy3kqn.png',
},
{
name: 'Inprende',
image: 'http://... | 42,700 |
https://github.com/ScalablyTyped/ScalajsReactTyped/blob/master/x/xrm/src/main/scala/typingsJapgolly/xrm/Xrm/Controls/Tab.scala | Github Open Source | Open Source | MIT | 2,022 | ScalajsReactTyped | ScalablyTyped | Scala | Code | 437 | 1,375 | package typingsJapgolly.xrm.Xrm.Controls
import japgolly.scalajs.react.Callback
import japgolly.scalajs.react.CallbackTo
import typingsJapgolly.xrm.Xrm.Collection.ItemCollection
import typingsJapgolly.xrm.Xrm.DisplayState
import typingsJapgolly.xrm.Xrm.Events.ContextSensitiveHandler
import typingsJapgolly.xrm.Xrm.Ui
i... | 11,537 |
https://github.com/funkycrash/arduino-class/blob/master/01-traffic-light/index.ino | Github Open Source | Open Source | MIT | null | arduino-class | funkycrash | null | Spoken | 190 | 375 | // La consigne est la suivante : à partir des fonctions vues dans l'exemple Blink et des bases d'électroniques décrites cette semaine, vous devez réaliser un feu tricolore avec trois LED (une verte→broche 4, une orange→broche 3, une rouge→broche 2) qui devront être allumées comme suit :
// Les broches 2, 3 et 4 doiven... | 33,347 |
https://github.com/ahlish/gisportal/blob/master/resources/views/auth/login.blade.php | Github Open Source | Open Source | MIT | null | gisportal | ahlish | PHP | Code | 71 | 316 | @extends('layouts.app')
@section('content')
<div class="container-fluid">
<div class="row" style="text-align: center;">
<div class="col-sm-12">Login</div>
</div>
<form method="post" action="/check_login" class="form-horizontal form-label-left">
<input type="hidden" name="_token" value="{{ csrf... | 46,733 |
https://github.com/babylonhx/BabylonHx_2.0/blob/master/src/samples/RefractionMaterial.hx | Github Open Source | Open Source | Apache-2.0 | 2,019 | BabylonHx_2.0 | babylonhx | Haxe | Code | 281 | 1,246 | package samples;
import com.babylonhx.cameras.ArcRotateCamera;
import com.babylonhx.lights.HemisphericLight;
import com.babylonhx.probes.ReflectionProbe;
import com.babylonhx.materials.FresnelParameters;
import com.babylonhx.materials.StandardMaterial;
import com.babylonhx.materials.textures.CubeTexture;
import com.ba... | 2,810 |
https://github.com/bob-gray/serviceberry/blob/master/src/YieldableProxy.js | Github Open Source | Open Source | MIT | 2,017 | serviceberry | bob-gray | JavaScript | Code | 261 | 632 | "use strict";
const Yieldable = require("./Yieldable");
function YieldableProxy (yielder, yieldingMethods, hiddenMethods = []) {
const yieldable = new Yieldable();
return {
yieldable,
proxy: new Proxy(yielder, {
has (target, name) {
return name in target && !hiddenMethods.includes(name);
},
get ... | 40,020 |
https://github.com/anisa07/jdi-light-1/blob/master/jdi-light-html-tests/src/test/java/io/github/epam/html/tests/elements/complex/enums/Dress.java | Github Open Source | Open Source | MIT | 2,022 | jdi-light-1 | anisa07 | Java | Code | 10 | 38 | package io.github.epam.html.tests.elements.complex.enums;
public enum Dress {
Casual, Pirate, Fancy
}
| 42,571 |
https://github.com/sigrunnu/programvareutviklingV2020/blob/master/feed/models.py | Github Open Source | Open Source | MIT | 2,020 | programvareutviklingV2020 | sigrunnu | Python | Code | 400 | 1,603 | from django.contrib.auth.models import User
from django.contrib.postgres.search import SearchVector
from django.db import models
from django.db.models import Q, SET_NULL
from six import python_2_unicode_compatible
from profile_page.models import CreatedBy, Profile
@python_2_unicode_compatible
class MuscleGroup(model... | 17,917 |
https://github.com/pulseoutcovid/pulseoutcovid_hardware/blob/master/Project Outputs for PulseOx_0/PulseOx_0_PCB.GTO | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-warranty-disclaimer | 2,020 | pulseoutcovid_hardware | pulseoutcovid | Gerber Image | Code | 1,556 | 11,888 | G04*
G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,20.1.7 (139)*
G04*
G04 Layer_Color=65535*
%FSLAX23Y23*%
%MOIN*%
G70*
G04*
G04 #@! TF.SameCoordinates,7C998F9C-D2B3-43E1-8EDA-AE96681A2DE1*
G04*
G04*
G04 #@! TF.FilePolarity,Positive*
G04*
G01*
G75*
%ADD10C,0.010*%
%ADD11C,0.007*%
%ADD12C,0.007*%
%ADD13C,... | 35,802 |
https://github.com/peter88213/PyWriter/blob/master/src/pywriter/file/sc_cr_filter.py | Github Open Source | Open Source | MIT | 2,020 | PyWriter | peter88213 | Python | Code | 83 | 216 | """Provide a scene per character filter class for template-based file export.
Copyright (c) 2021 Peter Triesberger
For further information see https://github.com/peter88213/PyWriter
Published under the MIT License (https://opensource.org/licenses/mit-license.php)
"""
class ScCrFilter():
"""Filter Scene per chara... | 43,829 |
https://github.com/Schnitzl42/JLibcloud/blob/master/src-java/org/askalon/jlibcloud/compute/driverSpecific/cloudsigma/CloudSigma_2_0_ComputeContext.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | JLibcloud | Schnitzl42 | Java | Code | 1,740 | 4,564 | /**
* Parts or the whole documentation of this class
* are copied from the respective module:
* libcloud/compute/drivers/cloudsigma.py
* @see <a href="https://github.com/apache/libcloud/tree/trunk/libcloud/compute/drivers/cloudsigma.py">https://github.com/apache/libcloud/tree/trunk/libcloud/compute/drivers/cloudsig... | 42,759 |
https://github.com/hhvm/hhast/blob/master/tests/DataProviderTypesLinterTest.hack | Github Open Source | Open Source | MIT | 2,023 | hhast | hhvm | Hack | Code | 115 | 328 | /*
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
namespace Facebook\HHAST;
final class DataProviderTypesLinterTest extends TestCase {
use AutoFixingLint... | 46,402 |
https://github.com/aslynatilla/GLTFViewer/blob/master/DX12Engine/main.cpp | Github Open Source | Open Source | Apache-2.0 | 2,020 | GLTFViewer | aslynatilla | C++ | Code | 21 | 81 | #include "ViewerApp.h"
int CALLBACK wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR lpCmdLine, int nCmdShow)
{
ViewerApp viewer(hInstance);
viewer.Run();
DEBUG_LOG("Exiting application");
return 0;
}
| 47,524 |
https://github.com/WuYPing/Lcc/blob/master/Assets/Editor/Runtime/Core/OdinEditorWindow/MenuTree/MenuEditorWindow.cs | Github Open Source | Open Source | MIT | 2,021 | Lcc | WuYPing | C# | Code | 32 | 143 | using Sirenix.OdinInspector.Editor;
using UnityEditor;
namespace LccEditor
{
public class MenuEditorWindow : AMenuEditorWindow<MenuEditorWindow>
{
protected override OdinMenuTree BuildMenuTree()
{
AddAEditorWindowBase<FrameworkEditorWindowBase>("框架介绍");
return OdinMenuT... | 39,372 |
https://github.com/ninchat/offhand/blob/master/go/pusher.go | Github Open Source | Open Source | BSD-2-Clause | null | offhand | ninchat | Go | Code | 763 | 2,750 | package offhand
import (
"context"
"crypto/tls"
"encoding/binary"
"errors"
"io"
"net"
"sync"
"sync/atomic"
"syscall"
"time"
)
const (
pusherQueueLength = 100
)
type Stats struct {
Conns int32
Queued int32
TotalDelayUs uint64
TotalSent uint64
TotalTimeouts uint64
TotalErrors ... | 38,990 |
https://github.com/Dexus/chromedpcv/blob/master/helper.go | Github Open Source | Open Source | Apache-2.0 | null | chromedpcv | Dexus | Go | Code | 127 | 434 | package chromedpcv
import (
"context"
"io/ioutil"
"log"
"os"
"github.com/chromedp/chromedp"
"github.com/pkg/errors"
)
func logOnlyIfErr(err error) {
if err != nil {
log.Printf("%+v\n", errors.Wrap(err, "WARN:"))
}
}
func fileExists(filepath string) bool {
if _, err := os.Stat(filepath); err != nil {
i... | 37,820 |
https://github.com/revanthbabu99/ZooJestApp/blob/master/src/main/java/edu/nwmissouri/zoo06group/PanicRoom.java | Github Open Source | Open Source | Apache-2.0 | null | ZooJestApp | revanthbabu99 | Java | Code | 88 | 281 | /*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
*/
package edu.nwmissouri.zoo06group;
/**
*
* @author Indu Chinthakuntla
*/
public class PanicRoom extends AdventureRid... | 13,167 |
https://github.com/willpyshan13/AndroidGodEye/blob/master/android-godeye-monitor/src/main/java/cn/hikyson/godeye/monitor/modules/appinfo/AppInfo.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | AndroidGodEye | willpyshan13 | Java | Code | 486 | 2,744 | package cn.hikyson.godeye.monitor.modules.appinfo;
import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;
import android.text.TextUtils;
import androidx.annotation.Keep;
import androidx.core.content.PermissionChecker;
import java.io.Serializable;
import java.util.ArrayList... | 15,631 |
https://github.com/NightOfTwelve/android_device_huawei_hwp7/blob/master/kernel/huawei/hwp7/drivers/misc/gpu_drv/hal/os/linux/kernel/gc_hal_kernel_debugfs.c | Github Open Source | Open Source | Apache-2.0 | 2,020 | android_device_huawei_hwp7 | NightOfTwelve | C | Code | 2,902 | 6,418 | /****************************************************************************
*
* Copyright (C) 2005 - 2013 by Vivante Corp.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either ... | 48,063 |
https://github.com/wuyi6216/skywalking-netcore/blob/master/src/SkyWalking.AspNetCore/Extensions/ServiceCollectionExtensions.cs | Github Open Source | Open Source | Apache-2.0 | 2,018 | skywalking-netcore | wuyi6216 | C# | Code | 212 | 554 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | 52,090 |
https://github.com/dataspread/dataspread-web/blob/master/zpoi/src/org/zkoss/poi/ss/util/cellwalk/CellWalk.java | Github Open Source | Open Source | MIT | 2,021 | dataspread-web | dataspread | Java | Code | 425 | 1,048 | /* ====================================================================
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 Y... | 17,483 |
https://github.com/ryugie/guacamole/blob/master/application/models/User.php | Github Open Source | Open Source | MIT | null | guacamole | ryugie | PHP | Code | 43 | 144 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class User extends CI_Model {
public function registerUser($userdata) {
$sql = "INSERT INTO users (first_name, last_name, email, password) VALUES (?, ?, ?, ?)";
$params = [
$userData['firstName'],
$userData['lastName'],
$userData['ema... | 25,083 |
https://github.com/Cdca12/VertxBaseProject/blob/master/src/main/java/database/commons/GenericInvalidException.java | Github Open Source | Open Source | MIT | null | VertxBaseProject | Cdca12 | Java | Code | 77 | 158 | /*
* 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 database.commons;
/**
*
* @author kriblet
*/
public class GenericInvalidException extends Exception {
private String f... | 16,794 |
https://github.com/jonespm/rsf/blob/master/rsf-core/core/src/uk/org/ponder/rsf/components/UIBinding.java | Github Open Source | Open Source | BSD-3-Clause | null | rsf | jonespm | Java | Code | 104 | 238 | /*
* Created on 14 Feb 2008
*/
package uk.org.ponder.rsf.components;
import uk.org.ponder.mapping.DataAlterationRequest;
/** A form of parameter that represents a model-directed binding.
* E.g. a {@link UIELBinding} or {@link UIDeletionBinding}
* @author Antranig Basman (antranig@caret.cam.ac.uk)
*
*/
public ... | 29,052 |
https://github.com/ShootGame/Arcade2/blob/master/src/main/java/pl/themolka/arcade/task/TaskManager.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | Arcade2 | ShootGame | Java | Code | 230 | 560 | /*
* Copyright 2018 Aleksander Jagiełło
*
* 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... | 48,510 |
https://github.com/eponae/my-cv/blob/master/src/components/section/sectionWithBackground.tsx | Github Open Source | Open Source | MIT | null | my-cv | eponae | TypeScript | Code | 110 | 305 | import React, { FC } from 'react';
import styled from 'styled-components';
import { screenDimensions } from '../app/theme';
const SectionBackgroundWrapper = styled.section`
background-color: ${({ theme }) => theme.colors.orangeBackground};
padding: 48px 0;
margin-top: ${({ theme }) => theme.paddingSpace};
marg... | 30,700 |
https://github.com/domdinicola/Office365-REST-Python-Client/blob/master/office365/runtime/client_runtime_context.py | Github Open Source | Open Source | MIT | null | Office365-REST-Python-Client | domdinicola | Python | Code | 365 | 1,384 | import abc
from time import sleep
from office365.runtime.client_query import ReadEntityQuery
from office365.runtime.client_request_exception import ClientRequestException
class ClientRuntimeContext(object):
def __init__(self, service_root_url, auth_context=None):
"""
Client runtime context for s... | 8,750 |
https://github.com/ketayan/SHIM2editor/blob/master/sources/org.multicore-association.shim.edit/src/org/multicore_association/shim/edit/handler/shim/RenumberComponentSetHandler.java | Github Open Source | Open Source | MIT | 2,021 | SHIM2editor | ketayan | Java | Code | 155 | 656 | /*
* Copyright (c) 2020 eSOL Co.,Ltd.
*
* This software is released under the MIT License.
* http://opensource.org/licenses/mit-license.php
*/
package org.multicore_association.shim.edit.handler.shim;
import javax.inject.Inject;
import javax.inject.Named;
import org.eclipse.e4.core.di.annotations.CanExecute;
im... | 44,567 |
https://github.com/ben-garcia/stack-client/blob/master/src/components/Navbar/NavbarItem/index.tsx | Github Open Source | Open Source | MIT | null | stack-client | ben-garcia | TypeScript | Code | 28 | 78 | import React from 'react';
import './styles.scss';
import { NavbarItemProps } from './types';
const NavbarItem: React.FC<NavbarItemProps> = ({ children }) => {
return <li className="navigation__item">{children}</li>;
};
export default NavbarItem;
| 16,437 |
https://github.com/maariagarrcia/barco/blob/master/juego.py | Github Open Source | Open Source | Apache-2.0 | null | barco | maariagarrcia | Python | Code | 211 | 700 | import sys
from itertools import cycle, chain, product, repeat
from functools import reduce
from random import shuffle, choice, random
from clases.case_class import *
from clases.barco_class import *
from clases.tablero_class import *
from clases.conventions_class import *
from introducir import (
solicitar_intr... | 56,213 |
https://github.com/WooodHead/online-shop/blob/master/server/src/app.module.ts | Github Open Source | Open Source | MIT | 2,021 | online-shop | WooodHead | TypeScript | Code | 132 | 377 | import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ServeStaticModule } from '@nestjs/serve-static';
import { ConfigModule } from '@nestjs/config';
import { Connection } from 'typeorm';
import { join } from 'path';
import { PicturesModule } from './pictures/pictures.modul... | 10,129 |
https://github.com/twdroeger/ada-awa/blob/master/awa/awaunit/awa-tests.ads | Github Open Source | Open Source | Apache-2.0 | 2,022 | ada-awa | twdroeger | Ada | Code | 350 | 847 | -----------------------------------------------------------------------
-- AWA tests - AWA Tests Framework
-- Copyright (C) 2011, 2012, 2014, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this ... | 45,838 |
https://github.com/emadurandal/OpenSiv3D/blob/master/Siv3D/src/Siv3D-Platform/Web/Siv3D/TextInput/CTextInput.cpp | Github Open Source | Open Source | MIT | 2,022 | OpenSiv3D | emadurandal | C++ | Code | 314 | 1,472 | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2021 Ryo Suzuki
// Copyright (c) 2016-2021 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/EngineLog.hpp>
# include <Siv... | 19,545 |
https://github.com/abrams27/mimuw/blob/master/sem4/so/zadania/zad5/minix_source/usr/src/minix/servers/vfs/const.h | Github Open Source | Open Source | MIT | 2,021 | mimuw | abrams27 | C | Code | 265 | 644 | #ifndef __VFS_CONST_H__
#define __VFS_CONST_H__
/* Tables sizes */
#define NR_FILPS 1024 /* # slots in filp table */
#define NR_LOCKS 8 /* # slots in the file locking table */
#define NR_MNTS 16 /* # slots in mount table */
#define NR_VNODES 1024 /* # slots in vnode table */
#define N... | 39,379 |
https://github.com/gazfaris/dot_julia/blob/master/packages/MCMCBenchmarks/zsSt8/docs/make.jl | Github Open Source | Open Source | MIT | 2,021 | dot_julia | gazfaris | Julia | Code | 31 | 140 | using Documenter, MCMCBenchmarks
makedocs(
modules = [MCMCBenchmarks],
checkdocs = :exports,
authors = "Christopher R. Fisher, Rob J Goedman",
sitename = "StatisticalRethinkingJulia/MCMCBenchmarks.jl",
pages = Any["index.md","purpose.md","design.md","example.md",
"benchmarks.md"]
)
deploydocs(... | 32,162 |
https://github.com/soopercool101/BrawlCrate/blob/master/BrawlLib/Internal/BinaryHandlers.cs | Github Open Source | Open Source | MIT | 2,023 | BrawlCrate | soopercool101 | C# | Code | 1,332 | 3,096 | using System;
using System.Runtime.InteropServices;
namespace BrawlLib.Internal
{
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct Bin32
{
public buint _data;
public Bin32(uint val)
{
_data = val;
}
public static implicit operator uint(Bin... | 33,996 |
https://github.com/ezzatron/phony-leo/blob/master/test/suite/FunctionalTest.spec.php | Github Open Source | Open Source | MIT | 2,016 | phony-leo | ezzatron | PHP | Code | 1,753 | 8,164 | <?php
/*
* This file is part of the Phony for Leo package.
*
* Copyright © 2016 Erin Millard
*
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*/
use Eloquent\Phony as x;
use Eloquent\Phony\Leo\PhonyLeo;
use Peridot\Leo\Leo;
describe... | 48,425 |
https://github.com/agrestio/agrest/blob/master/agrest-engine/src/main/java/io/agrest/CompoundObjectId.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | agrest | agrestio | Java | Code | 202 | 640 | package io.agrest;
import io.agrest.base.jsonvalueconverter.Normalizer;
import io.agrest.meta.AgIdPart;
import java.util.*;
/**
* A multi-value id.
*
* @since 1.24
*/
public class CompoundObjectId extends BaseObjectId {
private final Map<String, Object> id;
public CompoundObjectId(Map<String, Object> i... | 25,864 |
https://github.com/A-RAVEN/Crimson/blob/master/ThreadManager/private/include/pch.h | Github Open Source | Open Source | MIT | 2,023 | Crimson | A-RAVEN | C++ | Code | 25 | 236 | // pch.h: 这是预编译标头文件。
// 下方列出的文件仅编译一次,提高了将来生成的生成性能。
// 这还将影响 IntelliSense 性能,包括代码完成和许多代码浏览功能。
// 但是,如果此处列出的文件中的任何一个在生成之间有更新,它们全部都将被重新编译。
// 请勿在此处添加要频繁更新的文件,这将使得性能优势无效。
#ifndef PCH_H
#define PCH_H
// 添加要在此处预编译的标头
#include "framework.h"
#include <iostream>
#endif //PCH_H
| 2,065 |
https://github.com/onnenon/doob_bot/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,020 | doob_bot | onnenon | Makefile | Code | 15 | 54 | run:
python -m doob_bot
test:
sh run-tests.sh
build:
docker build --build-arg token=${BOT_TOKEN} -t doob_bot .
| 9,412 |
https://github.com/Vaa3D/vaa3d_tools/blob/master/hackathon/yang/neuronrecon/3rdparty/DopeVector/internal/eigen_support/EigenExpression.hpp | Github Open Source | Open Source | MIT | 2,023 | vaa3d_tools | Vaa3D | C++ | Code | 480 | 1,570 | // Copyright (c) 2016 Giorgio Marcias & Maurizio Kovacic
//
// This source code is part of DopeVector header library
// and it is subject to Apache 2.0 License.
//
// Author: Giorgio Marcias
// email: marcias.giorgio@gmail.com
// Author: Maurizio Kovacic
// email: maurizio.kovacic@gmail.com
#ifndef EigenExpression_hpp... | 29,493 |
https://github.com/johnthuss/cayenne/blob/master/cayenne-dbsync/src/main/java/org/apache/cayenne/dbsync/naming/ObjectNameGenerator.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | cayenne | johnthuss | Java | Code | 305 | 565 | /*****************************************************************
* 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
* ... | 47,933 |
https://github.com/xebia-france/conference-hall/blob/master/src/store/reducers/ui/organizer/index.js | Github Open Source | Open Source | MIT | null | conference-hall | xebia-france | JavaScript | Code | 39 | 113 | import myEvents from './myEvents'
import myOrganizations from './myOrganizations'
import proposal from './proposal'
import proposals from './proposals'
import proposalsPaging from './proposalsPaging'
import proposalsExport from './proposalsExport'
import organizersThread from './organizersThread'
export default {
my... | 31,156 |
https://github.com/jimages/surakarta-cpp/blob/master/surakarta_client/application/view/game_view.py | Github Open Source | Open Source | MIT | 2,021 | surakarta-cpp | jimages | Python | Code | 857 | 3,329 | from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
import sip
from application.view.target_button import TargetButton
from application.view.chess_button import ChessButton
INTERVAL = 50
LONG_RADIUS = INTERVAL * 4
SHORT_RADIUS = INTERVAL * 2
CHESS_SIZE = 30
class GameView(QWidget):
... | 25,276 |
https://github.com/nireo/ribels/blob/master/commands/github.go | Github Open Source | Open Source | MIT | 2,020 | ribels | nireo | Go | Code | 31 | 100 | package commands
import "github.com/bwmarrin/discordgo"
// GithubCommandHandler just gives the link to the source code of the bot on github.
func GithubCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate) {
_, _ = session.ChannelMessageSend(msg.ChannelID, "https://github.com/nireo/ribels")
}
| 48,526 |
https://github.com/ricmars/democosmos/blob/master/src/utils/form.tsx | Github Open Source | Open Source | Apache-2.0 | null | democosmos | ricmars | TypeScript | Code | 795 | 2,028 | /**
* always make sure that the return value is a string with 2 digits - prepend 0 in front
*/
export const pad2char = (v: any) => `0${v}`.slice(-2);
export const pad4char = (v: any) => `0${v}`.slice(-4);
/**
* escape and unescape the HTML entities
*/
export const escapeHTML = (str: string) => {
if (!str || type... | 40,069 |
https://github.com/shengxiang205/rails_support/blob/master/lib/rails_support/open_struct.rb | Github Open Source | Open Source | MIT | 2,010 | rails_support | shengxiang205 | Ruby | Code | 30 | 76 | require "ostruct"
OpenStruct.class_eval do
delegate :[]=, :to => :table
# Access open struct's field with indifferent access
def [](key)
table[key] || table[String === key ? key.to_sym : key.to_s]
end
end | 21,636 |
https://github.com/shimst3r/exercism-python/blob/master/src/raindrops/raindrops.py | Github Open Source | Open Source | MIT | null | exercism-python | shimst3r | Python | Code | 87 | 195 | """
raindrops implements a function for converting numbers to raindrop sounds based
on modulo arithmetic.
"""
def convert(number):
"""
convert a number into a string that contains raindrop sounds corresponding
to certain potential factors. A factor is a number that evenly divides into
another number, ... | 40,162 |
https://github.com/owlPickle/gogogo/blob/master/js/hover.js | Github Open Source | Open Source | MIT | 2,019 | gogogo | owlPickle | JavaScript | Code | 118 | 462 | $(document).ready(function () {
// pages pop hover
$('.nav-pages').on("mouseenter", function (e) {
$('.page-pop.pages').stop().addClass('open');
pagesArrow(e);
var timer = null;
$(window).resize(function () {
clearTimeout(timer);
timer = setTimeout(function () {
pagesArrow(e);... | 45,546 |
https://github.com/tomasaschan/hodatime/blob/master/tests/HodaTime/CalendarDateTimeTest.hs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | hodatime | tomasaschan | Haskell | Code | 707 | 1,564 | module HodaTime.CalendarDateTimeTest
(
calendarDateTimeTests
)
where
import Test.Tasty
import Test.Tasty.QuickCheck as QC
import Test.Tasty.HUnit
import Data.Maybe (fromJust)
import HodaTime.Util
import Data.HodaTime.LocalTime (localTime, HasLocalTime(..))
import Data.HodaTime.CalendarDate (day, monthl, next, previ... | 16,525 |
https://github.com/sahar00/My_Android_project_Udacity/blob/master/app/src/main/java/com/example/android/popularmovies/data/ReviewAsyncTaskLoader.java | Github Open Source | Open Source | MIT | null | My_Android_project_Udacity | sahar00 | Java | Code | 103 | 337 | package com.example.android.popularmovies.data;
import android.content.AsyncTaskLoader;
import android.content.Context;
import android.os.Bundle;
import com.example.android.popularmovies.utils.NetworkUtils;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
/**
* Created by peterpomlett on... | 27,871 |
https://github.com/yasirabd/code-your-own-quiz/blob/master/lesson_2.4_control_flow_loops/loops.py | Github Open Source | Open Source | MIT | null | code-your-own-quiz | yasirabd | Python | Code | 63 | 147 | # Lesson 2.4: While Loops
# Loops are an important concept in computer programming.
# Loops let us run blocks of code many times which can be
# really useful when we have to repeat tasks.
# https://classroom.udacity.com/nanodegrees/nd000/parts/0001345403/modules/356813882475460/lessons/4196788670/concepts/50222508420... | 20,236 |
https://github.com/gloomyline/one-pieces/blob/master/websites/php/onepieces/frontend/views/site/about.php | Github Open Source | Open Source | Unlicense | null | one-pieces | gloomyline | PHP | Code | 124 | 1,113 | <?php
/* @var $this yii\web\View */
use yii\helpers\Html;
$this->registerCssFile(Yii::$app->request->baseUrl."/css/common.css");
$this->registerCssFile(Yii::$app->request->baseUrl."/css/news.css");
$this->registerCssFile(Yii::$app->request->baseUrl."/css/bootstrap-3.3.7.min.css");
$this->title = '厦门万匹思网络科技-关于我们';
?>
... | 794 |
https://github.com/vikashverma003/itx_prodtcts/blob/master/resources/views/frontend/includes/login-modal.blade.php | Github Open Source | Open Source | MIT | null | itx_prodtcts | vikashverma003 | PHP | Code | 194 | 836 | <div class="modal fade bs-example-modal-lg home_contact-model loginModal" id="myModal2" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<!-- Modal Header -->
<div class="modal-header">
<button ... | 22,004 |
https://github.com/davidje13/superwstest/blob/master/rollup.config.js | Github Open Source | Open Source | MIT | 2,022 | superwstest | davidje13 | JavaScript | Code | 25 | 95 | export default [
{
input: 'src/superwstest.mjs',
external: ['util', 'supertest', 'ws', 'https', 'net'],
output: {
file: 'build/superwstest.js',
format: 'cjs',
name: 'superwstest',
exports: 'default',
},
},
];
| 8,316 |
https://github.com/mkinsner/llvm/blob/master/lldb/test/API/functionalities/limit-debug-info/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,022 | llvm | mkinsner | Makefile | Code | 57 | 301 | CFLAGS_EXTRAS = $(LIMIT_DEBUG_INFO_FLAGS)
LD_EXTRAS = -L. -lone -ltwo
CXX_SOURCES = main.cpp
ONE_CXXFLAGS = $(LIMIT_DEBUG_INFO_FLAGS)
ifdef STRIP_ONE
ONE_CXXFLAGS += -g0
endif
TWO_CXXFLAGS = $(LIMIT_DEBUG_INFO_FLAGS)
ifdef STRIP_TWO
TWO_CXXFLAGS += -g0
endif
include Makefile.rules
a.out: libone libtwo
libone:
... | 9,724 |
https://github.com/MarcoPai/dropdown/blob/master/examples/simple.js | Github Open Source | Open Source | MIT | 2,015 | dropdown | MarcoPai | JavaScript | Code | 43 | 212 | 'use strict';
var Dropdown = require('rc-dropdown');
var Menu = require('rc-menu');
require('rc-dropdown/assets/index.css');
function onClick(key) {
console.log(`${key} selected`);
}
var menu = <Menu style={{width:140}} onClick={onClick}>
<Menu.Item disabled>disabled</Menu.Item>
<Menu.Item key="1">one</Menu.It... | 56,500 |
https://github.com/tagadvance/pimon/blob/master/Makefile | Github Open Source | Open Source | MIT | null | pimon | tagadvance | Makefile | Code | 22 | 73 | default:
echo "Nothing to do"
install: configure
composer install
update:
git pull
composer update
configure:
cp --no-clobber config-sample.ini config.ini
test:
./vendor/bin/phpunit tests
| 43,664 |
https://github.com/wonderfxx/laravel.wonder.com/blob/master/app/Http/Controllers/Admin/Games/GamesListController.php | Github Open Source | Open Source | MIT | null | laravel.wonder.com | wonderfxx | PHP | Code | 828 | 3,413 | <?php
namespace App\Http\Controllers\Admin\Games;
use App\Models\GameList;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Input;
use Symfony\Component\HttpFoundation\JsonResponse;
class GamesListController extends Controller
{
public $filter = [
'game_cod... | 11,889 |
https://github.com/hpi-swa/Ohm-S/blob/master/packages/Ohm-Core.package/OhmCompileRuleAttribute.class/instance/IterStar.with.with..st | Github Open Source | Open Source | MIT | 2,021 | Ohm-S | hpi-swa | null | Spoken | 19 | 46 | actions
IterStar: node with: expr with: x
^ (self builder star: (self value: expr))
textualRepresentation: node interval contents;
yourself | 14,836 |
https://github.com/grische/cycles/blob/master/src/app/cycles_cubin_cc.cpp | Github Open Source | Open Source | Apache-2.0 | 2,020 | cycles | grische | C++ | Code | 840 | 3,004 | /*
* Copyright 2017 Blender Foundation
*
* 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 ... | 11,127 |
https://github.com/qbeon/webwire-messenger/blob/master/server/apisrv/util/util.go | Github Open Source | Open Source | MIT | 2,018 | webwire-messenger | qbeon | Go | Code | 28 | 49 | package util
// Max returns the biggest of the given integers
func Max(a, b int64) int64 {
if a > b {
return a
}
return b
}
| 19,954 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.