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/alexyeskin/CoreLitecoin/blob/master/CoreLitecoin/LTCOutpoint.m
Github Open Source
Open Source
WTFPL
2,020
CoreLitecoin
alexyeskin
Objective-C
Code
110
381
// CoreBitcoin by Oleg Andreev <oleganza@gmail.com>, WTFPL. #import "LTCOutpoint.h" #import "LTCTransaction.h" #import "LTCHashID.h" @implementation LTCOutpoint - (id) initWithHash:(NSData*)hash index:(uint32_t)index { if (hash.length != 32) return nil; if (self = [super init]) { _txHash = hash; ...
26,600
https://github.com/Prokyo/ProkyoNet/blob/master/client/src/main/java/de/prokyo/network/client/ProkyoClientInitializer.java
Github Open Source
Open Source
MIT
2,019
ProkyoNet
Prokyo
Java
Code
70
370
package de.prokyo.network.client; import de.prokyo.network.common.pipeline.PacketDecoder; import de.prokyo.network.common.pipeline.PacketEncoder; import io.netty.channel.Channel; import io.netty.channel.ChannelInitializer; import io.netty.handler.codec.LengthFieldBasedFrameDecoder; import io.netty.handler.codec.Length...
25,826
https://github.com/jvaneikeren/orbital7.extensions/blob/master/src/Orbital7.Extensions/GenericListExtensions.cs
Github Open Source
Open Source
MIT
2,020
orbital7.extensions
jvaneikeren
C#
Code
149
460
using System; using System.Linq; namespace System.Collections.Generic { public static class GenericListExtensions { public static int Replace<T>( this IList<T> source, T oldValue, T newValue) { if (source == null) throw new Argu...
35,634
https://github.com/n-fisher/Rimworld-Boss-Fights-Mod/blob/master/Source/BFLords.cs
Github Open Source
Open Source
MIT
null
Rimworld-Boss-Fights-Mod
n-fisher
C#
Code
590
2,148
using RimWorld; using Verse; using Verse.AI; using Verse.AI.Group; namespace Boss_Fight_Mod { public class LordJob_BossAssault : LordJob_AssaultColony { public LordJob_BossAssault(Faction assaulterFaction, bool canKidnap = true, bool canTimeoutOrFlee = false, bool sappers = false, bool useAvoidGridSma...
41,812
https://github.com/MaceM8/validarium/blob/master/packages/core/src/utils/index.js
Github Open Source
Open Source
MIT
2,021
validarium
MaceM8
JavaScript
Code
16
37
export { default as isNilOrAllIsNil } from './isNilOrAllIsNil'; export { default as allIsNil } from './allIsNil';
35,986
https://github.com/itamuria/expose/blob/master/R/dose_resp_ind.r
Github Open Source
Open Source
MIT
null
expose
itamuria
R
Code
146
366
#' Extract the information from the simulation data frame to analyse the dose response effects #' #' @param allsim dataset with all simulations values #' @param dataset dataset with all variables #' @param dr a vector with dose response values #' @return a data frame with dose response values #' @export dose_resp_ind ...
13,994
https://github.com/fredmorcos/attic/blob/master/Others/Lowfat/src/lffont.cpp
Github Open Source
Open Source
Unlicense
2,022
attic
fredmorcos
C++
Code
366
895
//////////////////////////////////////////////////////////////////////////////// //3456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 // // lowfat - an "engine" for natural document viewing for free desktop-systems // // copyright (c) 2007 Mirco Müller // // lowfat is free software; you c...
11,450
https://github.com/mvarbanov97/BESL/blob/master/BESL.Domain/Entities/TeamInvite.cs
Github Open Source
Open Source
MIT
2,020
BESL
mvarbanov97
C#
Code
48
112
namespace BESL.Domain.Entities { using BESL.Domain.Infrastructure; public class TeamInvite : BaseDeletableModel<string> { public int TeamId { get; set; } public string TeamName { get; set; } public string SenderUsername { get; set; } public string PlayerId { get; set; } ...
45,399
https://github.com/agrothe/saasy/blob/master/SaaSy.Web/Resources/Areas/Identity/Pages/Account/Login.Designer.cs
Github Open Source
Open Source
MIT
2,020
saasy
agrothe
C#
Code
605
1,558
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
25,915
https://github.com/worknenjoy/ahorta-client/blob/master/src/url.js
Github Open Source
Open Source
MIT
2,021
ahorta-client
worknenjoy
JavaScript
Code
18
76
//console.log(process.env.NODE_ENV) // export const host = process.env.NODE_ENV === 'production' ? 'https://ahorta.herokuapp.com' : 'https://ahorta-testing.herokuapp.com' export const host = 'https://ahorta.herokuapp.com'
832
https://github.com/phytertek/urb/blob/master/scripts/update-local-ip-for-app.js
Github Open Source
Open Source
MIT
null
urb
phytertek
JavaScript
Code
227
596
const os = require('os'); const fs = require('fs'); let IPAddress = process.argv[ 2 ] if( IPAddress == undefined ) { // Find out IP address const interfaces = os.networkInterfaces(); const addresses = []; for (var k in interfaces) for (var k2 in interfaces[k]) { const address = interfac...
44,687
https://github.com/rexxitall/fb-framework/blob/master/inc/fbfw/math/float2.bi
Github Open Source
Open Source
MIT
2,020
fb-framework
rexxitall
FreeBasic
Code
1,827
3,730
#ifndef __FBFW_MATH_FLOAT2__ #define __FBFW_MATH_FLOAT2__ namespace Math /' 2D vector | x | | y | '/ type _ Float2 declare constructor() declare constructor( _ byval as float => 0.0, _ byval as float => 0.0 ) declare constructor( _ byref as Float2 ) dec...
43,301
https://github.com/open-ms/all-svn-branches/blob/master/include/OpenMS/ANALYSIS/MAPMATCHING/LabeledPairFinder.h
Github Open Source
Open Source
Zlib, Apache-2.0
2,018
all-svn-branches
open-ms
C
Code
578
1,208
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
49,285
https://github.com/FuzzySlipper/Framework/blob/master/Assets/Framework/UI/Easing.meta
Github Open Source
Open Source
MIT
2,020
Framework
FuzzySlipper
Unity3D Asset
Code
14
71
fileFormatVersion: 2 guid: 9d5eb743d570546f08d99d18162e4c08 folderAsset: yes timeCreated: 1438601493 licenseType: Store DefaultImporter: userData: assetBundleName: assetBundleVariant:
2,174
https://github.com/damianivanov/CS-ReactJS/blob/master/Project/client/src/services/taskService.js
Github Open Source
Open Source
MIT
null
CS-ReactJS
damianivanov
JavaScript
Code
266
761
import http from "./http-client"; import { getJWT } from "./userService"; // const headers = { // "auth-token": getJWT(), // }; export async function getMytasks() { const headers = { "auth-token": getJWT(), }; try { const myTasks = await http.get(`/tasks/myActiveTasks`, { headers: headers, ...
12,287
https://github.com/gistnu/ProTraveller/blob/master/src/providers/course-service/course-service.js
Github Open Source
Open Source
MIT
null
ProTraveller
gistnu
JavaScript
Code
232
718
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 = Reflect.decorate(d...
37,411
https://github.com/fanglinchen/PrivacyStreams-Android/blob/master/privacystreams-core/src/main/java/com/github/privacystreams/location/LocationProcessor.java
Github Open Source
Open Source
Apache-2.0
2,017
PrivacyStreams-Android
fanglinchen
Java
Code
80
290
package com.github.privacystreams.location; import com.github.privacystreams.commons.ItemFunction; import com.github.privacystreams.core.Item; import com.github.privacystreams.core.UQI; import com.github.privacystreams.utils.Assertions; import java.util.List; /** * Created by yuanchun on 28/12/2016. * Process the ...
48,173
https://github.com/amarildolikmeta/oac-explore/blob/master/utils/misc.py
Github Open Source
Open Source
MIT
null
oac-explore
amarildolikmeta
Python
Code
73
261
import torch def mellow_max(x, r, b=None): n = len(x) if b is None: shift = torch.stack(x).max(0)[0] else: shift = b mellow_max_loss = 0 for i in range(n): mellow_max_loss += torch.exp(x[i] - shift) if b is None: mellow_max_loss = torch.log(mellow_max_loss) / r ...
33,934
https://github.com/wizardone/forminator/blob/master/spec/forminator_flow_spec.rb
Github Open Source
Open Source
MIT
null
forminator
wizardone
Ruby
Code
162
492
require 'spec_helper' RSpec.describe Forminator::Flow do let(:steps) { [FirstStep, SecondStep] } describe '#initialize' do it 'initializes the flow with steps' do flow = described_class.new(steps: steps) expect(flow.steps).to match_array steps end end describe '#current_step' do it ...
38,730
https://github.com/yolgan67/react-sample-projects/blob/master/demo-cart/src/App.js
Github Open Source
Open Source
MIT
2,022
react-sample-projects
yolgan67
JavaScript
Code
124
406
import React from 'react'; import { ChakraProvider, Box, theme } from '@chakra-ui/react'; import { HashRouter as Router, Switch, Route } from 'react-router-dom'; import NavBar from './components/Navbar'; import Home from './components/Home'; import ProductDetails from './components/ProductDetails'; import ProductAddEdi...
37,215
https://github.com/utastudents/selalib/blob/master/src/quadrature/fekete.py
Github Open Source
Open Source
CECILL-B
2,022
selalib
utastudents
Python
Code
494
1,633
import math #-------------------------------------------- # # Class to define a point with cartesian coordinates # #-------------------------------------------- class Point(object): def __init__(self, x, y): self.X = x self.Y = y def translation(self, dx, dy): self.X = self.X + dx ...
30,811
https://github.com/Flickswitch/vpp/blob/master/vendor/github.com/ligato/vpp-agent/plugins/vpp/puntplugin/vppcalls/vpp1908/dump_vppcalls.go
Github Open Source
Open Source
Apache-2.0
null
vpp
Flickswitch
Go
Code
563
1,949
// Copyright (c) 2019 Cisco and/or its affiliates. // // 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 app...
37,034
https://github.com/jianxuanbing/aspnetboilerplate/blob/master/src/Project/BeiDreamAbp.Presentation/Views/Editions/_CreateOrEditModal.cshtml
Github Open Source
Open Source
MIT
2,016
aspnetboilerplate
jianxuanbing
HTML+Razor
Code
109
596
@using Abp.Application.Editions @using Abp.Extensions @using BeiDreamAbp.Presentation.Models.Common.Modals @model BeiDreamAbp.Presentation.Models.Editions.CreateOrEditEditionModalViewModel <div id="CreateOrEditLanguageModal"> @Html.Partial("~/Views/Common/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(Model...
17,986
https://github.com/simonmonk/prog_pico_ed1/blob/master/05_03_morse_send_morse.py
Github Open Source
Open Source
MIT
2,022
prog_pico_ed1
simonmonk
Python
Code
108
304
codes = { "a" : ".-", "b" : "-...", "c" : "-.-.", "d" : "-..", "e" : ".", "f" : "..-.", "g" : "--.", "h" : "....", "i" : "..", "j" : ".---", "k" : "-.-", "l" : ".-..", "m" : "--", "n" : "-.", "o" : "---", "p" : ".--.", "q" : "--.-", "r" : ".-.", "s" : "...", "t" : "-", ...
342
https://github.com/LX-s-Team/CookingLevel-Forge/blob/master/build/tmp/expandedArchives/forge-1.18.1-39.0.40_mapped_parchment_2021.12.19-1.18.1-sources.jar_8da1e53bade44c6d138d26d6ab1ad1d3/net/minecraft/nbt/LongArrayTag.java
Github Open Source
Open Source
MIT
null
CookingLevel-Forge
LX-s-Team
Java
Code
476
1,556
package net.minecraft.nbt; import it.unimi.dsi.fastutil.longs.LongSet; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; import java.util.Arrays; import java.util.List; import org.apache.commons.lang3.ArrayUtils; public class LongArrayTag extends CollectionTag<LongTag> { private stat...
37,936
https://github.com/xmn-services/buckets-network/blob/master/libs/file/encrypted_file_disk_repository.go
Github Open Source
Open Source
MIT
null
buckets-network
xmn-services
Go
Code
106
318
package file import ( "github.com/xmn-services/buckets-network/libs/cryptography/encryption" ) type encryptedFileDiskRepository struct { encryption encryption.Encryption repository Repository } func createEncryptedFileDiskRepository(encryption encryption.Encryption, repository Repository) Repository { out := enc...
41,760
https://github.com/AllenZMC/strimzi-kafka-operator/blob/master/documentation/modules/metrics/proc-metrics-kafka-deploy-options.adoc
Github Open Source
Open Source
Apache-2.0
2,021
strimzi-kafka-operator
AllenZMC
AsciiDoc
Code
217
558
// This assembly is included in the following assemblies: // // metrics/assembly_metrics-kafka.adoc [id='proc-metrics-kafka-deploy-options-{context}'] = Deploying Prometheus metrics configuration Strimzi provides xref:ref-metrics-yaml-files-{context}[example custom resource configuration YAML files] with relabeling r...
16,306
https://github.com/benetech/Winnow2.0/blob/master/winnow/utils/brightness.py
Github Open Source
Open Source
MIT
2,022
Winnow2.0
benetech
Python
Code
101
313
import os import numpy as np from joblib import load DEFAULT_DIRECTORY = os.path.join(os.path.dirname(__file__), "models") GRAY_ESTIMATION_MODEL = os.path.join(DEFAULT_DIRECTORY, "gb_gray_model.joblib") def load_gray_estimation_model(): """ Loads pretrained gray_max estimation model. This model has been tr...
32,283
https://github.com/SJ-magic-work-Isetan2017/work___IS_Dmx/blob/master/th_Event.cpp
Github Open Source
Open Source
MIT
null
work___IS_Dmx
SJ-magic-work-Isetan2017
C++
Code
158
812
/************************************************************ ************************************************************/ #include <unistd.h> #include "th_Event.h" /************************************************************ function ************************************************************/ /******************...
3,011
https://github.com/Nukepayload2/ryu/blob/master/visualbasic/D2s.vb
Github Open Source
Open Source
BSL-1.0, Apache-2.0
null
ryu
Nukepayload2
Visual Basic
Code
2,794
6,126
Imports System.Runtime.CompilerServices Imports System.Runtime.InteropServices Public Module D2s <Obsolete("Types with embedded references are not supported in this version of your compiler.")> Private Function mulShiftAll(m As ULong, mul As Span(Of ULong), j As Integer, ByRef vp As ULong, ByRef vm As ULong, ...
19,423
https://github.com/caligaris/azure-powershell/blob/master/src/ResourceManager/KeyVault/Commands.KeyVault/Commands/ManagedStorageAccounts/SetAzureKeyVaultManagedStorageSasDefinition.cs
Github Open Source
Open Source
Apache-2.0, MIT
2,018
azure-powershell
caligaris
C#
Code
1,855
5,446
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apa...
44,930
https://github.com/CANToolz/CANToolz/blob/master/setup.py
Github Open Source
Open Source
BSD-3-Clause, MIT, Apache-2.0
2,021
CANToolz
CANToolz
Python
Code
51
234
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'Alexey Sintsov' from setuptools import setup, find_packages setup( name='CANToolz', version='3.7.0', description='Framework for black-box Controller Area Network (CAN) bus analysis.', author='Alexey Sintsov', author_email='alex.sintsov@g...
17,319
https://github.com/chiamaka-123/BabylonNative/blob/master/Core/Graphics/Source/Apple/macOS/GraphicsPlatform.mm
Github Open Source
Open Source
MIT
2,022
BabylonNative
chiamaka-123
Objective-C++
Code
73
312
#include <Babylon/GraphicsPlatform.h> #include <GraphicsImpl.h> #include <AppKit/Appkit.h> #include <MetalKit/MetalKit.h> namespace Babylon { void GraphicsImpl::ConfigureBgfxPlatformData(const WindowConfiguration& config, bgfx::PlatformData& pd) { pd.ndt = nullptr; pd.nwh = config.WindowPtr; ...
19,978
https://github.com/roboterclubaachen/xpcc-doc/blob/master/docs/api/classxpcc_1_1_angle.js
Github Open Source
Open Source
BSD-3-Clause
2,019
xpcc-doc
roboterclubaachen
JavaScript
Code
10
57
var classxpcc_1_1_angle = [ [ "Type", "classxpcc_1_1_angle.html#adfdd030c52e037e1e807e239827476d3", null ] ];
19,372
https://github.com/benzei/dataexplorer/blob/master/Presentation.Tests/Views/ScatterPlots/Scalers/VectorScalerTests.cs
Github Open Source
Open Source
BSD-3-Clause
2,014
dataexplorer
benzei
C#
Code
65
240
using System.Windows; using DataExplorer.Presentation.Views.ScatterPlots.Scalers; using NUnit.Framework; namespace DataExplorer.Presentation.Tests.Views.ScatterPlots.Scalers { [TestFixture] public class VectorScalerTests { private VectorScaler _scaler; [SetUp] public void SetUp() ...
2,826
https://github.com/tonywh/es50w-project1/blob/master/password.py
Github Open Source
Open Source
MIT
null
es50w-project1
tonywh
Python
Code
58
236
import hashlib, binascii, os # Returns salt + password-hash ready for storing. def hash_password(password): salt = hashlib.sha256(os.urandom(60)).hexdigest().encode('ascii') hash_bin = hashlib.pbkdf2_hmac('sha512', password.encode('utf-8'), salt, 100000) hash = binascii.hexlify(hash_bin) return (salt ...
37,168
https://github.com/Hephateus/Alice/blob/master/src/types/core/TextBasedChannel.ts
Github Open Source
Open Source
MIT
2,021
Alice
Hephateus
TypeScript
Code
28
55
import { DMChannel, NewsChannel, TextChannel, ThreadChannel } from "discord.js"; /** * Channels where users can type. */ export type TextBasedChannel = DMChannel | TextChannel | NewsChannel | ThreadChannel;
35,015
https://github.com/pnnl/cuVite/blob/master/compare.cpp
Github Open Source
Open Source
BSD-3-Clause
2,020
cuVite
pnnl
C++
Code
1,231
3,323
#include "compare.hpp" extern std::ofstream ofs; //Only a single process performs the cluster comparisons //Assume that clusters have been numbered in a contiguous manner //Assume that C1 is the truth data void compare_communities(std::vector<GraphElem> const& C1, std::vector<GraphElem> const& C2) { // ...
33,763
https://github.com/verkri/designermarka/blob/master/plugins/sfCombinePlugin/lib/minifier/sfCombineMinifierYuiCss.class.php
Github Open Source
Open Source
MIT
null
designermarka
verkri
PHP
Code
74
228
<?php /** * sfCombineMinifierYuiCss * * @package sfCombinePlugin * @subpackage miniferYuiCss * @author Kevin Dew <kev@dewsolutions.co.uk> */ class sfCombineMinifierYuiCss extends sfCombineMinifierYuiAbstract implements sfCombineMinifierInterface { const TYPE = 'css'; /** * @see sfCombineMinifi...
26,336
https://github.com/grantweiss/down-to-party/blob/master/server/api/payments.js
Github Open Source
Open Source
MIT
null
down-to-party
grantweiss
JavaScript
Code
77
250
const router = require('express').Router() require('dotenv').config() const stripe = require('stripe')(process.env.STRIPE_SECRET_KEY) module.exports = router router.post('/', async (req, res) => { let {amount, id, stripeId} = req.body try { await stripe.paymentIntents.create({ amount: amount, curre...
30,517
https://github.com/palatable/lambda/blob/master/src/test/java/com/jnape/palatable/lambda/internal/iteration/UnfoldingIteratorTest.java
Github Open Source
Open Source
MIT
2,023
lambda
palatable
Java
Code
104
473
package com.jnape.palatable.lambda.internal.iteration; import com.jnape.palatable.lambda.adt.Maybe; import com.jnape.palatable.lambda.adt.hlist.Tuple2; import com.jnape.palatable.lambda.functions.Fn1; import org.junit.Test; import java.util.concurrent.atomic.AtomicInteger; import static com.jnape.palatable.lambda.ad...
17,083
https://github.com/jugstalt/identityserver-legacy/blob/master/is4/IdentityServer/Areas/Admin/Pages/Users/EditUser/Index.cshtml
Github Open Source
Open Source
Apache-2.0
2,020
identityserver-legacy
jugstalt
C#
Code
80
359
@page @model IdentityServer.Areas.Admin.Pages.Users.EditUser.IndexModel @{ ViewData["Title"] = Model.Category; ViewData["Category"] = Model.Category; ViewData["ActivePage"] = EditUserNavPages.Index; } <h4>@ViewData["Title"]</h4> <partial name="_StatusMessage" model="Model.StatusMessage" /> <div class="row...
17,849
https://github.com/calmilamsy/bin-bukkit/blob/master/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java
Github Open Source
Open Source
CC0-1.0
2,020
bin-bukkit
calmilamsy
Java
Code
379
1,008
package org.bukkit.craftbukkit.inventory; import org.bukkit.inventory.ItemStack; import org.bukkit.Material; public class CraftItemStack extends ItemStack { protected net.minecraft.server.ItemStack item; public CraftItemStack(net.minecraft.server.ItemStack item) { super( item != null ? it...
9,595
https://github.com/Rahsai94/awsproject/blob/master/node_modules/bootstrap-4-react/src/components/form/index.js
Github Open Source
Open Source
Apache-2.0
2,021
awsproject
Rahsai94
JavaScript
Code
147
413
import Form from './Form'; import FormGroup from './FormGroup'; import FormInput from './FormInput'; import FormSelect from './FormSelect'; import FormTextarea from './FormTextarea'; import FormFile from './FormFile'; import FormRange from './FormRange'; import FormPlainText from './FormPlainText'; import FormText from...
6,683
https://github.com/JohnTranterInternetrix/zipmoney-php/blob/master/src/zipMoney/Resource.php
Github Open Source
Open Source
MIT
null
zipmoney-php
JohnTranterInternetrix
PHP
Code
251
728
<?php /** * @category zipMoney * @package zipMoney PHP Library * @author Sagar Bhandari <sagar.bhandari@zipmoney.com.au> * @copyright 2016 zipMoney Payments. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * @link http://www.zipmoney.com.au/ */ namespace zipMon...
5,410
https://github.com/Sendiradid/island.is/blob/master/libs/island-ui/core/src/lib/IconRC/icons/CellularOutline.tsx
Github Open Source
Open Source
MIT
2,022
island.is
Sendiradid
TypeScript
Code
98
446
import * as React from 'react' import { SvgProps as SVGRProps } from '../Icon' const SvgCellularOutline = ({ title, titleId, ...props }: React.SVGProps<SVGSVGElement> & SVGRProps) => { return ( <svg className="cellular-outline_svg__ionicon" viewBox="0 0 512 512" aria-labelledby={titleId} ...
8,905
https://github.com/afranck64/keras-easy/blob/master/keras_easy/models/tools/losses.py
Github Open Source
Open Source
MIT
2,021
keras-easy
afranck64
Python
Code
43
174
import keras.backend as K def mse(y_true, y_pred): return K.mean(K.square(y_pred - y_true), axis=-1) def rmse(y_true, y_pred): return K.sqrt(K.mean(K.square(y_pred - y_true), axis=-1)) #TODO: make use of <config> and config.data.nb_classes def get_loss(loss): if loss=="mse" or loss=="mean_squared_error...
8,847
https://github.com/AthenaModel/athena/blob/master/docs/DevelopmentChecklists.mm
Github Open Source
Open Source
BSD-2-Clause
2,021
athena
AthenaModel
Objective-C++
Code
895
4,149
<map version="0.9.0"> <!--To view this file, download free mind mapping software Freeplane from http://freeplane.sourceforge.net --> <node ID="ID_1378351314" CREATED="1343246727593" MODIFIED="1343247768120"> <richcontent TYPE="NODE"> <html> <head> </head> <body> <p> Development </p> <p> ...
3,975
https://github.com/anthonycanino1/entbench-pi/blob/master/batik/classes/org/apache/batik/ext/awt/image/codec/util/SingleTileRenderedImage.java
Github Open Source
Open Source
Apache-2.0
2,016
entbench-pi
anthonycanino1
Java
Code
482
8,969
package org.apache.batik.ext.awt.image.codec.util; public class SingleTileRenderedImage extends org.apache.batik.ext.awt.image.codec.util.SimpleRenderedImage { java.awt.image.Raster ras; public SingleTileRenderedImage(java.awt.image.Raster ras, java.awt.image.ColorModel colorModel) { super( );...
51,164
https://github.com/aswinda/brokepacker/blob/master/app/Http/Controllers/backend/AdminInnsController.php
Github Open Source
Open Source
MIT
2,016
brokepacker
aswinda
PHP
Code
303
1,069
<?php namespace App\Http\Controllers\backend; use App\Http\Controllers\Controller; use App\Model\User as User; use App\Model\Product as Product; use App\Model\Provinces as Provinces; use App\Model\Districts as Districts; use App\Model\Agents_routes as Agents_routes; use App\Model\Agents as Agents; use App\Model\Inns as...
35,520
https://github.com/itplants/coder/blob/master/coder-base/static/apps/logchartscatter/js/index.js
Github Open Source
Open Source
Apache-2.0
null
coder
itplants
JavaScript
Code
2,628
11,450
var pointinterval=60000; // 10分 60X10X1000msewc var filename='/mnt/data/tempController.log'; var removefilename=''; var mdata=[]; // 読み込んだデータ var minValue = '-10'; var maxValue = '40'; var XMLlist=[]; var chart; var now = new Date(); function readResource(){ console.log("readResource"); $.ajaxSetup({ async: fa...
17,858
https://github.com/ozwolf-software/raml-mock-server/blob/master/src/main/java/net/ozwolf/mockserver/raml/specification/FilePathSpecification.java
Github Open Source
Open Source
Apache-2.0
2,022
raml-mock-server
ozwolf-software
Java
Code
180
529
package net.ozwolf.mockserver.raml.specification; import net.ozwolf.mockserver.raml.RamlSpecification; import org.raml.model.Raml; import org.raml.parser.loader.FileResourceLoader; import org.raml.parser.loader.ResourceLoader; import org.raml.parser.visitor.RamlDocumentBuilder; import java.io.File; import java.io.Fil...
25,777
https://github.com/kartverket/Geonorge.Kartkatalog/blob/master/Kartverket.Metadatakatalog/Controllers/ThumbnailController.cs
Github Open Source
Open Source
MIT
2,017
Geonorge.Kartkatalog
kartverket
C#
Code
347
1,109
using System; using System.IO; using System.Linq; using System.Net; using System.Web.Mvc; using Kartverket.Metadatakatalog.Models; using Kartverket.Metadatakatalog.Service; namespace Kartverket.Metadatakatalog.Controllers { public class ThumbnailController : Controller { private static readonly log4ne...
42,059
https://github.com/DragonFlyBSD/DPorts/blob/master/security/suricata/dragonfly/patch-src_util-fmemopen.h
Github Open Source
Open Source
BSD-2-Clause
2,023
DPorts
DragonFlyBSD
C
Code
27
109
--- src/util-fmemopen.h.orig 2019-10-14 11:25:49 UTC +++ src/util-fmemopen.h @@ -37,7 +37,7 @@ #define USE_FMEM_WRAPPER 1 #endif -#ifdef __OpenBSD__ +#if defined __OpenBSD__ || defined __DragonFly__ #define USE_FMEM_WRAPPER 1 #endif
37,047
https://github.com/WOCyo/policr-mini/blob/master/assets/src/admin/components/PageBody.js
Github Open Source
Open Source
MIT
2,022
policr-mini
WOCyo
JavaScript
Code
17
51
import tw, { styled } from "twin.macro"; export default styled.div` color: #687078; ${tw`mt-2 flex-1 flex flex-col`} `;
34,036
https://github.com/PratthanaSuparat8/sample_app/blob/master/app/controllers/static_pages_controller.rb
Github Open Source
Open Source
MIT, Beerware, LicenseRef-scancode-unknown-license-reference
2,016
sample_app
PratthanaSuparat8
Ruby
Code
14
31
class StaticPagesController < ApplicationController def home end def kingsong1 end def kingsong2 end end
352
https://github.com/DeathSkullPain/MysticalGame/blob/master/mods/mtechs/mtechs.lua
Github Open Source
Open Source
CC0-1.0
null
MysticalGame
DeathSkullPain
Lua
Code
238
692
mtechs = {} local m = mtechs m.actions = {} m.components = {} m.entities = {} m.systems = {} --[[ order of registration is 1. actions 2. components 3. systems 4. entities (after server startup) ]]-- function m.register_action(self, aid) local a = {} a.systems = {} self.actions[action.aid] =...
48,332
https://github.com/drolean/Servidor-WOW/blob/master/RealmServer/PacketReader/CMSG_CHANNEL_OWNER.cs
Github Open Source
Open Source
Unlicense
2,021
Servidor-WOW
drolean
C#
Code
45
157
using Common.Helpers; namespace RealmServer.PacketReader { /// <summary> /// Handles an incoming request of current owner /// </summary> public class CMSG_CHANNEL_OWNER : Common.Network.PacketReader { public string ChannelName; public CMSG_CHANNEL_OWNER(byte[] data) : base(dat...
35,243
https://github.com/dileepkp/jena-core-opal/blob/master/src/test/java/org/apache/jena/rdfxml/xmloutput/TestMacEncodings.java
Github Open Source
Open Source
Apache-2.0
null
jena-core-opal
dileepkp
Java
Code
346
916
/* * 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 ...
18,533
https://github.com/ucd-plse/mpi-error-prop/blob/master/src/wpds/Source/wali/util/StringUtils.cpp
Github Open Source
Open Source
BSD-3-Clause, MIT
2,020
mpi-error-prop
ucd-plse
C++
Code
89
305
/*! * @author Nicholas Kidd */ #include "StringUtils.hpp" namespace wali { namespace util { void StringUtils::Tokenize( const std::string& str, std::vector<std::string>& tokens, const std::string& delimiters ) { // Skip delimiters at beginning. std::string::s...
24,382
https://github.com/AkshayJainG/wrongsecrets/blob/master/src/main/java/org/owasp/wrongsecrets/challenges/docker/Challenge8.java
Github Open Source
Open Source
MIT
2,022
wrongsecrets
AkshayJainG
Java
Code
120
487
package org.owasp.wrongsecrets.challenges.docker; import lombok.extern.slf4j.Slf4j; import org.owasp.wrongsecrets.RuntimeEnvironment; import org.owasp.wrongsecrets.ScoreCard; import org.owasp.wrongsecrets.challenges.Challenge; import org.owasp.wrongsecrets.challenges.Spoiler; import org.springframework.core.annotatio...
28,122
https://github.com/darshanhs90/Java-HackerRank/blob/master/src/May2021GoogLeetcode/_0843GuessTheWord.java
Github Open Source
Open Source
MIT
2,019
Java-HackerRank
darshanhs90
Java
Code
135
400
package May2021GoogLeetcode; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class _0843GuessTheWord { public static void main(String[] args) { } interface Master { public int guess(String word); } public void findSecretWord(String[] wordlist, Master master) { int noOfGue...
14,096
https://github.com/tadano4w/JavaProjects/blob/master/spring-boot-demo/src/main/java/app/validation/BookListController.java
Github Open Source
Open Source
Unlicense
null
JavaProjects
tadano4w
Java
Code
65
368
package app.validation; import javax.validation.Valid; import org.springframework.stereotype.Controller; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bin...
34,453
https://github.com/DanielVII/joguete/blob/master/src/components/Carta/HabilUm/index.js
Github Open Source
Open Source
MIT
null
joguete
DanielVII
JavaScript
Code
7
18
import HabilUm from "./HabilUm"; export default HabilUm;
23,904
https://github.com/lefb766/mono/blob/master/mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Compiler/StackSpiller.Temps.cs
Github Open Source
Open Source
Apache-2.0
2,022
mono
lefb766
C#
Code
1,079
2,627
/* **************************************************************************** * * Copyright (c) Microsoft Corporation. * * This source code is subject to terms and conditions of the Apache License, Version 2.0. A * copy of the license can be found in the License.html file at the root of this distribution. If ...
27,980
https://github.com/pmelkowski/knotx/blob/master/knotx-repository-connector/knotx-repository-connector-http/src/main/java/io/knotx/repository/impl/HttpRepositoryConnectorProxyImpl.java
Github Open Source
Open Source
Apache-2.0
null
knotx
pmelkowski
Java
Code
573
2,284
/* * Copyright (C) 2016 Cognifide Limited * * 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 ...
2,733
https://github.com/dayitv89/ios-Multi-Perceptron-NeuralNetwork/blob/master/ML/KRANN+TrainedNetwork/KRANNTrainedNetwork.m
Github Open Source
Open Source
MIT
2,015
ios-Multi-Perceptron-NeuralNetwork
dayitv89
Objective-C
Code
292
1,333
// // KRANNTrainedNetwork.m // ANN V2.1.4 // // Created by Kalvar on 2014/5/22. // Copyright (c) 2014 - 2015年 Kuo-Ming Lin (Kalvar Lin, ilovekalvar@gmail.com). All rights reserved. // #import "KRANNTrainedNetwork.h" @interface KRANNTrainedNetwork () @property (nonatomic, weak) NSCoder *_coder; @end @implementa...
11,361
https://github.com/ReinierMaas/morton/blob/master/benches/morton.rs
Github Open Source
Open Source
MIT
2,021
morton
ReinierMaas
Rust
Code
552
1,680
#[macro_use] extern crate bencher; use bencher::{black_box, Bencher}; use rand::{thread_rng, Rng}; use morton::utils::{idx_tile, idx_tile_tuple}; use morton::{deinterleave_morton, interleave_morton}; fn interleave_1000(b: &mut Bencher) { let x = thread_rng().gen::<u16>(); let y = thread_rng().gen::<u16>(); ...
46,760
https://github.com/ohnx/fwredit/blob/master/backend/compile.sh
Github Open Source
Open Source
MIT
2,020
fwredit
ohnx
Shell
Code
28
87
#!/bin/bash # git clone https://github.com/emscripten-core/emsdk.git # cd emsdk # ./emsdk install latest # ./emsdk activate latest # source ./emsdk_env.sh emcc code.cpp -Iutil/ -O3 -s ASYNCIFY --js-library library.js --bind
21,191
https://github.com/benkonrath/dataset-dashboard/blob/master/pkg/database/migrations/0020-add-dataset-relationships.go
Github Open Source
Open Source
MIT
2,020
dataset-dashboard
benkonrath
Go
Code
54
157
package migrations // language=SQL const AddDatasetRelationships = ` ALTER TABLE corporations ADD COLUMN dataset_entity UUID REFERENCES datasets(dataset_id); ALTER TABLE brands ADD COLUMN dataset_entity UUID REFERENCES datasets(dataset_id); ALTER TABLE brand_categories ADD COLUMN dataset_entity UUID REFERENC...
6,922
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/a/applicationinsights/src/main/scala/typingsSlinky/applicationinsights/outDeclarationsContractsMod/PageViewData.scala
Github Open Source
Open Source
MIT
2,021
SlinkyTyped
ScalablyTyped
Scala
Code
42
147
package typingsSlinky.applicationinsights.outDeclarationsContractsMod import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation._ /** * An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView. */ @JSImport("applicationin...
12,069
https://github.com/keithhc2/observability/blob/master/dashboards-observability/public/services/timestamp/timestamp.ts
Github Open Source
Open Source
Apache-2.0
null
observability
keithhc2
TypeScript
Code
110
394
/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ import { isEmpty, isEqual, map } from 'lodash'; import DSLService from '../requests/dsl'; // eslint-disable-next-line import/no-default-export export default class TimestampUtils { constructor(private dslService: DSLService) {} is...
32,501
https://github.com/charlie5/lace/blob/master/3-mid/opengl/source/lean/model/opengl-model-sphere-lit_textured.adb
Github Open Source
Open Source
ISC
2,023
lace
charlie5
Ada
Code
695
2,091
with openGL.Geometry.lit_textured, openGL.Primitive.indexed; package body openGL.Model.sphere.lit_textured is --------- --- Forge -- function new_Sphere (Radius : in Real; lat_Count : in Positive := default_latitude_Count; long_Count : in P...
986
https://github.com/ican2002/gnbsim-eurecom/blob/master/gnbsim/encoding/ngap/go.mod
Github Open Source
Open Source
MIT
2,021
gnbsim-eurecom
ican2002
Go Module
Code
21
201
module github.com/hhorai/gnbsim/encoding/ngap go 1.13 require ( github.com/aead/cmac v0.0.0-20160719120800-7af84192f0b1 // indirect github.com/hhorai/gnbsim v0.0.0-20210214125543-31c2f406a8fb github.com/hhorai/gnbsim/encoding/gtp v0.0.0-20210214125543-31c2f406a8fb github.com/hhorai/gnbsim/encoding/nas v0.0.0-2021...
32,997
https://github.com/milindsingh/commercetools-sdk-java-v2/blob/master/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectChangeCartsConfigurationBuilder.java
Github Open Source
Open Source
Apache-2.0
null
commercetools-sdk-java-v2
milindsingh
Java
Code
121
553
package com.commercetools.api.models.project; import java.util.*; import java.util.function.Function; import javax.annotation.Nullable; import io.vrap.rmf.base.client.Builder; import io.vrap.rmf.base.client.utils.Generated; @Generated(value = "io.vrap.rmf.codegen.rendring.CoreCodeGenerator", comments = "https://gi...
26,620
https://github.com/Werayootk/tiny-sato/blob/master/TinySato/TinySatoPrinterUnitExpception.cs
Github Open Source
Open Source
Apache-2.0
2,020
tiny-sato
Werayootk
C#
Code
47
161
namespace TinySato { using System; using System.Runtime.Serialization; [Serializable] public class TinySatoPrinterUnitException : TinySatoException { public TinySatoPrinterUnitException() { } public TinySatoPrinterUnitException(string message) : base(message) { } ...
35,670
https://github.com/66254264/Flap/blob/master/app/src/main/java/me/yifeiyuan/flapdev/components/databindingsample/SimpleDataBindingModel.java
Github Open Source
Open Source
Apache-2.0
2,022
Flap
66254264
Java
Code
34
129
package me.yifeiyuan.flapdev.components.databindingsample; /** * Flap Github: <a>https://github.com/AlanCheen/Flap</a> * * @author 程序亦非猿 [Follow me](<a> https://github.com/AlanCheen</a>) * @since 2020/3/26 3:28 PM * @since 1.5 */ public class SimpleDataBindingModel { public String text = "DataBinding Compon...
34,346
https://github.com/CBIIT/caaers/blob/master/caAERS/software/core/src/main/db/migrate/015_Phase3_construction_1/026_ReportTracking.groovy
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,015
caaers
CBIIT
Groovy
Code
188
841
class CreateReportTracking extends edu.northwestern.bioinformatics.bering.Migration { void up() { createTable("report_tracking_status") { t -> t.addVersionColumn() t.addColumn("status", "boolean", nullable:false) t.addColumn("status_message", "string", limit:4000) t.addCo...
14,554
https://github.com/KingLackland/Edgy/blob/master/iotplatform/src/views/Logout.vue
Github Open Source
Open Source
MIT
null
Edgy
KingLackland
Vue
Code
31
128
<template> <div> </div> </template> <script> export default { name: "Logout", created() { this.$store.dispatch('logout').then(() => { this.$router.push('/login') }).catch(() => { this.$store.dispatch('errorlogout').then(() => { ...
45,512
https://github.com/skylark-integration/skylark-webodf/blob/master/.original/WebODF-0.5.10/webodf/tests/odf/MaliciousDocumentTests.js
Github Open Source
Open Source
MIT
null
skylark-webodf
skylark-integration
JavaScript
Code
387
1,078
/** * Copyright (C) 2010-2014 KO GmbH <copyright@kogmbh.com> * * @licstart * This file is part of WebODF. * * WebODF is free software: you can redistribute it and/or modify it * under the terms of the GNU Affero General Public License (GNU AGPL) * as published by the Free Software Foundation, either version 3 o...
12,721
https://github.com/stevetranby/labs-tilemaps/blob/master/unity-example/Assets/Libs/OpenSteerDotNet/Vector3.cs
Github Open Source
Open Source
MIT
2,021
labs-tilemaps
stevetranby
C#
Code
2,455
5,314
/* ----------------------------------------------------------------------------- Mogre vector class nabbed and included in the package. Original information below This source file is part of OGRE (Object-oriented Graphics Rendering Engine) ported to C++/CLI For the latest info, see http://www.ogre3d.org/ Copyr...
49,200
https://github.com/expload233/ModPackDownloader/blob/master/modpackdownloader-core/src/main/java/com/nincraft/modpackdownloader/container/ThirdParty.java
Github Open Source
Open Source
MIT
2,022
ModPackDownloader
expload233
Java
Code
47
198
package com.nincraft.modpackdownloader.container; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import lombok.EqualsAndHashCode; @EqualsAndHashCode(callSuper = false) public class ThirdParty extends Mod { @SerializedName("url") @Expose private String url; private...
44,010
https://github.com/NewSchoolApp/newschool-institutional-site/blob/master/components/mobile/donateBolsaEduca/index.js
Github Open Source
Open Source
MIT
null
newschool-institutional-site
NewSchoolApp
JavaScript
Code
233
791
import React from "react"; import { Container, Flex, Card, Image, Description, Title, Text, Button, Row, Icon, TextRight, TextTitle, LinkDonate, } from "./style"; import PackImage from "../../mobile/pack-image/"; export default function DonateBolsaEduca() { return ( <Container> <F...
7,458
https://github.com/liranpeng/E3SM-2CRM/blob/master/components/mpas-source/src/tools/registry/gen_inc.h
Github Open Source
Open Source
zlib-acknowledgement, FTL, RSA-MD
null
E3SM-2CRM
liranpeng
C
Code
247
784
// Copyright (c) 2013, Los Alamos National Security, LLC (LANS) // and the University Corporation for Atmospheric Research (UCAR). // // Unless noted otherwise source code is licensed under the BSD license. // Additional copyright and license information can be found in the LICENSE file // distributed with this code, ...
34,334
https://github.com/fnogcps/github-actions/blob/master/PHP/Misc/SimpleCalculator.php
Github Open Source
Open Source
ISC
2,019
github-actions
fnogcps
PHP
Code
66
208
<?php /* * [PHP] Simple Calculator (exercise) * github.com/fnogcps */ function Addition($a, $b) { return ($a + $b); } function Subtraction($a, $b) { return ($a - $b); } function Multiplication($a, $b) { return ($a * $b); } function Division($a, $b) { return ($a / $b); } echo '<br><b>Addition: </b>'. A...
15,235
https://github.com/PenpenLi/xiaobaitbijie.github.com/blob/master/res/views/animation/magicExpress/emotion4/face4_6.plist
Github Open Source
Open Source
Zlib
2,020
xiaobaitbijie.github.com
PenpenLi
XML Property List
Code
110
1,102
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>frames</key> <dict> <key>face4_6_1.png</key> <dict> <key>frame</key> ...
19,879
https://github.com/surely66/touchgfx.github.io/blob/master/api/search/enumvalues_8.js
Github Open Source
Open Source
MIT
2,020
touchgfx.github.io
surely66
JavaScript
Code
5
125
var searchData= [ ['mcu_5factive',['MCU_ACTIVE',['../classtouchgfx_1_1_g_p_i_o_ac512ae76d933f4b84acf69c7a53e9ce8.html#ac512ae76d933f4b84acf69c7a53e9ce8ad48a9a2ece8fffba9b7ac23ce7c39f51',1,'touchgfx::GPIO']]] ];
3,453
https://github.com/bricsi0000000000000/Wallet/blob/master/Wallet/Controls/ChartValue.xaml.cs
Github Open Source
Open Source
MIT
null
Wallet
bricsi0000000000000
C#
Code
38
158
using Wallet.Models; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace Wallet.Controls { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class ChartValue : ContentView { public ChartValue(Finance finance) { InitializeComponent(); FinanceCate...
36,313
https://github.com/riverKanies/CodeRiver/blob/master/blueprints/dumb/files/__root__/components/__name__/stories.js
Github Open Source
Open Source
MIT
null
CodeRiver
riverKanies
JavaScript
Code
78
220
import React from 'react' import { storiesOf } from '@kadira/storybook' import { WithNotes } from '@kadira/storybook-addon-notes' import { withKnobs, text } from '@kadira/storybook-addon-knobs' import <%= pascalEntityName %> from './component' const notes = 'This story demonstrates the props that can be passed to <%=...
1,516
https://github.com/adambowles/node-client/blob/master/dist/stream.js
Github Open Source
Open Source
MIT
2,017
node-client
adambowles
JavaScript
Code
251
713
'use strict'; // Module dependencies var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable =...
3,334
https://github.com/francedot/maui/blob/master/src/Controls/tests/Core.UnitTests/TickerSystemEnabledTests.cs
Github Open Source
Open Source
MIT
2,022
maui
francedot
C#
Code
279
1,085
using System.Threading.Tasks; using NUnit.Framework; namespace Microsoft.Maui.Controls.Core.UnitTests { [TestFixture] public class TickerSystemEnabledTests { [OneTimeSetUp] public void Init() { Device.PlatformServices = new MockPlatformServices(); } [OneTimeTearDown] public void End() { Device...
21,727
https://github.com/Ndarko1/family_device_inventory/blob/master/app/views/views.py
Github Open Source
Open Source
MIT
2,021
family_device_inventory
Ndarko1
Python
Code
641
2,284
""" This file contains the various routes for the flask app. """ from flask import abort, render_template, request, flash, redirect, url_for, Blueprint from app.models import db, Users, Devices from app.core import generate_id, add_instance, delete_instance, edit_instance, validate_login, WrongSignIn, hash_password fr...
4,391
https://github.com/LaplaceKorea/curve25519-spark2014/blob/master/src/conversion.adb
Github Open Source
Open Source
BSD-3-Clause
2,019
curve25519-spark2014
LaplaceKorea
Ada
Code
60
156
package body Conversion with SPARK_Mode is ------------------------- -- Equal_To_Conversion -- ------------------------- -- This lemma is proved with a manual induction. procedure Equal_To_Conversion (A, B : Integer_Curve25519; L : Product_Index_Type) is begin if L = 0 th...
31,860
https://github.com/tako0910/NanoWallet/blob/master/src/app/modules/languages/ptbr.js
Github Open Source
Open Source
MIT
2,021
NanoWallet
tako0910
JavaScript
Code
6,553
21,685
function PortugueseBRProvider($translateProvider) { 'ngInject' $translateProvider.translations('ptbr', { // HEADER COMPONENT WALLET_NAME_1: 'nano', WALLET_NAME_2: 'Wallet', APP_NAME_SUB: 'A interface de carteiras mais segura para sua conexão com a plataforma NEM', HEADE...
16,452
https://github.com/leanprover-community/mathlib/blob/master/src/linear_algebra/prod.lean
Github Open Source
Open Source
Apache-2.0
2,023
mathlib
leanprover-community
Lean
Code
5,480
14,299
/- Copyright (c) 2017 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Mario Carneiro, Kevin Buzzard, Yury Kudryashov, Eric Wieser -/ import linear_algebra.span import order.partial_sups import algebra.algebra.prod /-! ### Products of mod...
34,253
https://github.com/westcoastavgallery/westcoastavgallery.github.io/blob/master/media/akeeba_strapper/strapper.php
Github Open Source
Open Source
MIT
null
westcoastavgallery.github.io
westcoastavgallery
PHP
Code
1,635
5,294
<?php /** * Akeeba Strapper * A handy distribution of namespaced jQuery, jQuery UI and Twitter * Bootstrapper for use with Akeeba components. * * @copyright (c) 2012-2013 Akeeba Ltd * @license GNU General Public License version 2 or later */ defined('_JEXEC') or die(); if (!defined('FOF_INCLUDED')) { includ...
28,043
https://github.com/RampNetwork/torus-website/blob/master/app/src/components/helpers/HelpTooltip/index.js
Github Open Source
Open Source
MIT
2,021
torus-website
RampNetwork
JavaScript
Code
6
12
export { default } from './HelpTooltip'
13,882
https://github.com/xyzniu/FPSGame/blob/master/app/src/main/java/com/xyzniu/fpsgame/listener/CameraTouchListener.java
Github Open Source
Open Source
Ruby, CC-BY-3.0, CC-BY-4.0
null
FPSGame
xyzniu
Java
Code
89
288
package com.xyzniu.fpsgame.listener; import android.opengl.GLSurfaceView; import android.view.MotionEvent; import android.view.View; import com.xyzniu.fpsgame.manager.PlayerManager; public class CameraTouchListener implements View.OnTouchListener { private GLSurfaceView view; float prevX = 0; p...
32,286
https://github.com/pgregory/wetracker/blob/master/docs/css/main.scss
Github Open Source
Open Source
MIT
2,022
wetracker
pgregory
SCSS
Code
120
391
--- # Only the main Sass file needs front matter (the dashes are enough) --- @charset "utf-8"; // Our variables $spacing-unit: 10px; $image-size: 50px; $icon-size: 15px; // Sizes $on-palm: 768px; // Use media queries like this: // @include media-query($on-palm) { // .wrapper { // ...
13,244
https://github.com/nguyentanle/ptw1_nhom_I/blob/master/admin/posts_delete.php
Github Open Source
Open Source
Apache-2.0
2,021
ptw1_nhom_I
nguyentanle
PHP
Code
44
157
<?php include_once('posts_connect.php'); if(isset($_REQUEST['ID_POST']) and $_REQUEST['ID_POST']!=""){ $id=$_GET['ID_POST']; $sql = "DELETE FROM post WHERE ID_POST='$id'"; if ($conn->query($sql) === TRUE) { echo "Xoá thành công!"; ?> <form method="get" action="posts_view.php"> <button type="submit">OK</button> </fo...
760