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/tranfuga25s/turneraonline/blob/master/app/View/Themed/Cakestrap/Usuarios/recuperar_contra.ctp | Github Open Source | Open Source | MIT | 2,021 | turneraonline | tranfuga25s | PHP | Code | 150 | 486 | <!-- Formulario de recuperación de contraseña -->
<?php $this->set( 'title_for_layout', "Recuperar mi contraseña" ); ?>
<script>$(function(){$("#dialogo").alert();});</script>
<dic class="row-fluid">
<div class="span7 well">
<?php echo $this->Form->create( 'Recuperar' ); ?>
<fieldset>
<legend>Recuperar mi contr... | 48,322 |
https://github.com/mmuu1987/MyTouchWall/blob/master/Assets/Scripts/Item/MultipointTouchTest.cs | Github Open Source | Open Source | MIT | 2,021 | MyTouchWall | mmuu1987 | C# | Code | 92 | 295 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
/// <summary>
/// 多点触摸测试
/// </summary>
public class MultipointTouchTest : MonoBehaviour,IDragHandler, IEndDragHandler, IPointerClickHandler, IPointerDownHandler, IPointerUpHandler
{
... | 42,339 |
https://github.com/harihar/kotlin-tutorials/blob/master/core-kotlin-modules/core-kotlin/src/test/kotlin/com/baeldung/assertFailsWith/AssertFailsWithFunctionTest.kt | Github Open Source | Open Source | MIT | 2,022 | kotlin-tutorials | harihar | Kotlin | Code | 103 | 426 | package com.baeldung.assertFailsWith
import org.hamcrest.CoreMatchers
import org.junit.Assert
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
import kotlin.test.assertFailsWith
class AssertFailsWithFunctionTest {
private val classUnderTest: AssertFailsWithFunction = AssertFailsWithFunc... | 44,524 |
https://github.com/oubiwann/lupyter/blob/master/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,017 | lupyter | oubiwann | Makefile | Code | 14 | 58 | PROJECT = lupyter
include resources/make/common.mk
include resources/make/otp.mk
include resources/make/lupyter.mk
include resources/make/debug.mk
.DEFAULT_GOAL := all
| 44,443 |
https://github.com/Kazbek/downlords-faf-client/blob/master/src/main/java/com/faforever/client/chat/avatar/AvatarService.java | Github Open Source | Open Source | MIT, LicenseRef-scancode-free-unknown, LicenseRef-scancode-unknown-license-reference | 2,020 | downlords-faf-client | Kazbek | Java | Code | 21 | 113 | package com.faforever.client.chat.avatar;
import javafx.scene.image.Image;
import java.util.List;
import java.util.concurrent.CompletableFuture;
public interface AvatarService {
Image loadAvatar(String avatarUrl);
CompletableFuture<List<AvatarBean>> getAvailableAvatars();
void changeAvatar(AvatarBean avatar... | 956 |
https://github.com/SpencerOrtegaTW/ghost1/blob/master/app/src/main/java/com/google/engedu/ghost/SimpleDictionary.java | Github Open Source | Open Source | Apache-2.0 | null | ghost1 | SpencerOrtegaTW | Java | Code | 461 | 1,135 | /* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 53,312 |
https://github.com/NielsB95/Microservices/blob/master/ServiceCore/Core/Authentication/Tokens/TokenValidator.cs | Github Open Source | Open Source | MIT | 2,019 | Microservices | NielsB95 | C# | Code | 171 | 505 | using System;
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using Microsoft.IdentityModel.Tokens;
namespace Core.Authentication.Tokens
{
public static class TokenValidator
{
/// <summary>
/// Use the below code to generate symmetric Secret Key
/// var hmac = ... | 7,973 |
https://github.com/zscfantasy/ddbmFileSystem/blob/master/ddbm_lib/h/Ddbm_Bbm.h | Github Open Source | Open Source | Apache-2.0 | 2,019 | ddbmFileSystem | zscfantasy | C | Code | 180 | 1,195 | /*-----------------------------------------------------------
**
** 版权: 中国航空无线电电子研究所 2016年
**
** 文件名: Ddbm_Bbm.c
**
** 描述: 定义了DDBM文件系统底层为BBM驱动层
**
**
** 设计注记:
**
** 作者:
** 章诗晨 2018年10月开始编写本文件
**
** 更改历史:
**
**-----------------------------------------------------------
*/
#ifndef __DDBM_BBM_H__
#define __DDB... | 20,131 |
https://github.com/GlebBatykov/theater/blob/master/lib/src/actor_system/action/actor_system_register_local_actor_ref.dart | Github Open Source | Open Source | MIT | 2,022 | theater | GlebBatykov | Dart | Code | 34 | 153 | part of theater.actor_system;
abstract class ActorSystemRegisterLocalActorRef extends ActorSystemAction {
final LocalActorRef ref;
ActorSystemRegisterLocalActorRef(this.ref);
}
class ActorSystemRegisterUserLocalActorRef
extends ActorSystemRegisterLocalActorRef {
ActorSystemRegisterUserLocalActorRef(LocalAc... | 42,654 |
https://github.com/de3/Panada/blob/master/panada/Drivers/Session/Cookie.php | Github Open Source | Open Source | BSD-3-Clause | 2,019 | Panada | de3 | PHP | Code | 567 | 1,947 | <?php
/**
* Cookies base session.
*
* @package Driver
* @subpackage Session
* @author Iskandar Soesman
* @since Version 0.3
*/
namespace Drivers\Session;
use Resources;
class Cookie
{
public
$sessionName = 'PAN_SID',
$sessionCookieExpire = 0,
$sessionCookiePath = '/',
$sessionCookieSecure = false,
... | 36,932 |
https://github.com/ankit-dhiman/computational-physics/blob/master/Matrix-operations/determinant-of-matrix/brute-force-method/determinant_2*2_basic.cpp | Github Open Source | Open Source | MIT | null | computational-physics | ankit-dhiman | C++ | Code | 142 | 447 |
#include<iostream>
#include<iomanip>
#include<math.h>
#include<time.h>
using namespace std ;
int main()
{
/* initialize random seed: */
srand (time(NULL));
//-------------------------------------------------
// INTIALIZE MATRICES A AND B TO zero
//-------------------------------------------------
float rows ... | 50,344 |
https://github.com/open-mpi/ompi-www/blob/master/community/lists/users/2012/03/18689.php | Github Open Source | Open Source | BSD-3-Clause | 2,023 | ompi-www | open-mpi | PHP | Code | 654 | 2,393 | <?
$subject_val = "Re: [OMPI users] Configure MPI_ADDRESS_KIND and MPI_OFFSET_KIND (OSX 10.6; gcc, g95, openmpi-1.4.5.)";
include("../../include/msg-header.inc");
?>
<!-- received="Tue Mar 6 05:08:20 2012" -->
<!-- isoreceived="20120306100820" -->
<!-- sent="Tue, 6 Mar 2012 11:08:19 +0100" -->
<!-- isosent="2012030610... | 47,401 |
https://github.com/kamsac/js13k-2018-2/blob/master/src/render/FlyswatRenderer.ts | Github Open Source | Open Source | MIT | 2,018 | js13k-2018-2 | kamsac | TypeScript | Code | 199 | 740 | import World from '../world/World';
import AABB from '../helpers/AABB';
import Sprites from '../sprites/Sprites';
import Point from '../helpers/Point';
import MainCharacter from '../main-character/MainCharacter';
import {playerRenderSize} from './MainCharacterRenderer';
import Direction from '../helpers/Direction';
ex... | 43,308 |
https://github.com/jpdrcarneiro/MonkeyJobCodes/blob/master/PythonCodes/MoveRenameFiles.py | Github Open Source | Open Source | MIT | 2,021 | MonkeyJobCodes | jpdrcarneiro | Python | Code | 60 | 259 | #This script is not used inside of Dynamo, but it can be easily adapted to it
import sys, os
import fnmatch
import shutil
to_move = []
counter = 0
destination = os.path.normpath("C:\Users\car11899\Documents\Temp_Work\4D_MOT_3GW2_Interface_Iray_01132020")
for root, dirnames, filenames in os.walk("C:\\Users\\jpdrc\\Doc... | 23,268 |
https://github.com/lievendoclo/Valkyrie-RCP/blob/master/valkyrie-rcp-core/src/main/java/org/valkyriercp/form/builder/AbstractOverlayFormComponentInterceptor.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | Valkyrie-RCP | lievendoclo | Java | Code | 849 | 2,283 | /**
* Copyright (C) 2015 Valkyrie RCP
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 29,815 |
https://github.com/Adrenogenesis/proton-city-react-2/blob/master/src/views/Components/Components.js | Github Open Source | Open Source | MIT | null | proton-city-react-2 | Adrenogenesis | JavaScript | Code | 467 | 1,487 | import React from "react";
// nodejs library that concatenates classes
import classNames from "classnames";
// react components for routing our app without refresh
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles";
import ScrollableAnchor from "react-scrollable-anchor";
import Activa... | 12,808 |
https://github.com/ElementAnalytics/kamon-system-metrics/blob/master/src/main/scala/kamon/system/process/ProcessCpuMetrics.scala | Github Open Source | Open Source | Apache-2.0 | 2,019 | kamon-system-metrics | ElementAnalytics | Scala | Code | 429 | 1,085 | /*
* =========================================================================================
* Copyright © 2013-2017 the kamon project <http://kamon.io/>
*
* 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... | 9,019 |
https://github.com/CORDEA/MackerelClient/blob/master/app/src/main/java/jp/cordea/mackerelclient/LongExt.kt | Github Open Source | Open Source | Apache-2.0 | 2,018 | MackerelClient | CORDEA | Kotlin | Code | 71 | 244 | package jp.cordea.mackerelclient
import android.content.Context
fun Long.toRelativeTime(context: Context, current: Long): String {
val currentSec = current / 1000f
var diff = currentSec - this
if (diff <= 59) {
return context.getString(R.string.relative_time_format_seconds, diff.toInt())
}
... | 54,510 |
https://github.com/neilbryson/todo-app/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,021 | todo-app | neilbryson | Ignore List | Code | 5 | 19 | .DS_Store
.idea
obj/
bin/
tmp/
| 9,434 |
https://github.com/msub2/silk-brush/blob/master/Assets/Scripts/TiltMeterVisualsScript.cs | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,021 | silk-brush | msub2 | C# | Code | 259 | 783 | // Copyright 2020 The Tilt Brush Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... | 43,924 |
https://github.com/AndreiMarhatau/UUI/blob/master/loveship/components/inputs/Slider/RangeSlider.tsx | Github Open Source | Open Source | MIT | 2,022 | UUI | AndreiMarhatau | TypeScript | Code | 63 | 204 | import { RangeSlider as uuiRangeSlider, SliderBaseProps, RangeSliderValue } from '@epam/uui-components';
import * as css from './Slider.scss';
import * as styles from '../../../assets/styles/scss/loveship-color-vars.scss';
import { withMods } from '@epam/uui';
import * as types from '../../types';
export interface Ran... | 9,646 |
https://github.com/onezens/QQTweak/blob/master/qqtw/qqheaders7.2/NearbyAlbumInfoComponent.h | Github Open Source | Open Source | MIT | 2,020 | QQTweak | onezens | C | Code | 418 | 2,066 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "NearbyComponent.h"
#import "AvatarServiceDelegate.h"
#import "BDHUploadDelegate.h"
#import "NearbyAlbumImportViewDelegate.h"
#import "NearbyPhotoBrowserViewControllerDeleg... | 5,229 |
https://github.com/luwenjit/SpringCloud-2020-Hoxton-SpringCloud-alibaba/blob/master/cloud-provider-hystrix-payment8001/src/main/java/com/atguigu/springcloud/service/PaymentService.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | SpringCloud-2020-Hoxton-SpringCloud-alibaba | luwenjit | Java | Code | 205 | 821 | package com.atguigu.springcloud.service;
import cn.hutool.core.util.IdUtil;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import org.springframework.stereotype.Service;
import java.util.concurrent.TimeUnit;
/**
* @autho... | 4,785 |
https://github.com/manuelojeda/platzi-paquete-rating/blob/master/src/Traits/Rate.php | Github Open Source | Open Source | MIT | null | platzi-paquete-rating | manuelojeda | PHP | Code | 10 | 33 | <?php
namespace ManuelOjeda\Traits;
trait Rate
{
use CanBeRate, CanRate;
}
| 33,445 |
https://github.com/WenXiaowei/Stalker_App/blob/master/app/src/main/java/com/vartmp7/stalker/repository/RESTObtainer.java | Github Open Source | Open Source | MIT | null | Stalker_App | WenXiaowei | Java | Code | 510 | 2,139 | /*
* MIT License
*
* Copyright (c) 2020 VarTmp7
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... | 4,015 |
https://github.com/AnaCorralD/aEstrella/blob/master/src/presentacion/GUITableroImp.java | Github Open Source | Open Source | Apache-2.0 | null | aEstrella | AnaCorralD | Java | Code | 1,034 | 4,787 | package presentacion;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.MouseE... | 10,007 |
https://github.com/IntelliSun-MC/EnderIO_old/blob/master/enderio-conduits/src/main/java/crazypants/enderio/conduit/packet/PacketSlotVisibility.java | Github Open Source | Open Source | Unlicense | null | EnderIO_old | IntelliSun-MC | Java | Code | 120 | 437 | package crazypants.enderio.conduit.packet;
import crazypants.enderio.conduit.gui.ExternalConnectionContainer;
import io.netty.buffer.ByteBuf;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraftforge.fml.common.network.simpleimpl.IMessage;
import net.minecraftforge.fml.common.network.simpleimpl.IMes... | 39,427 |
https://github.com/mwikstrom/paramodel/blob/master/src/internal/compare-json.ts | Github Open Source | Open Source | 0BSD | null | paramodel | mwikstrom | TypeScript | Code | 167 | 334 | import { JsonValue } from "paratype";
import { _Comparison } from "./compile-comparison";
/** @internal */
export const _compareJson: _Comparison<JsonValue | undefined> = (a, b): -1 | 0 | 1 | undefined => {
const ka = scalarTypeSortKey(a);
const kb = scalarTypeSortKey(b);
if (ka === void(0) || kb === void... | 10,336 |
https://github.com/James-Frowen/Mirror/blob/master/Assets/Tests/Editor/NetworkMessages/NetworkMessagesTest.cs | Github Open Source | Open Source | MIT | 2,023 | Mirror | James-Frowen | C# | Code | 340 | 1,086 | using System;
using NUnit.Framework;
using UnityEngine;
namespace Mirror.Tests.NetworkMessagesTests
{
[TestFixture]
public class NetworkMessagesTest
{
public struct EmptyMessage : NetworkMessage
{
}
// helper function to pack message into a simple byte[]
public stat... | 20,574 |
https://github.com/JoeTwizzle/GLGraphics/blob/master/VertexArray.cs | Github Open Source | Open Source | MIT | 2,020 | GLGraphics | JoeTwizzle | C# | Code | 290 | 896 | using OpenTK.Graphics.OpenGL4;
using GLGraphics.Helpers;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
namespace GLGraphics
{
public class VertexArray : GraphicsResource
{
public VertexArray() : base(GLOb... | 3,971 |
https://github.com/FreedomSlow/navec/blob/master/navec/train/ctl/__main__.py | Github Open Source | Open Source | MIT | 2,022 | navec | FreedomSlow | Python | Code | 277 | 1,507 |
import sys
import argparse
# for py2
try:
BrokenPipeError
except NameError:
import socket
BrokenPipeError = socket.error
from .corpus import (
CORPORA,
corpus_read
)
from .tokenize import tokenize
from .vocab import (
vocab_count,
vocab_quantile,
vocab_pack,
vocab_unpack,
)
from .... | 11,907 |
https://github.com/LiveRamp/typed-mutations/blob/master/test/keyValues.test.ts | Github Open Source | Open Source | Apache-2.0 | 2,020 | typed-mutations | LiveRamp | TypeScript | Code | 788 | 2,106 | import { KeyValues } from "../src"
import { Collection } from "../src"
describe("KeyValues", () => {
describe("constructors", () => {
it("can build from an object", () => {
let obj = {
cats: 20,
dog: {
name: "Lucky",
age: 3
}
}
let result = KeyValue... | 38,026 |
https://github.com/s31tz/Blog/blob/master/article/src/pod-nach-stdout.pl | Github Open Source | Open Source | Apache-2.0 | 2,023 | Blog | s31tz | Perl | Code | 39 | 89 | #!/usr/bin/env perl
use strict;
use warnings;
=head1 NAME
myprog - a simple program
=head1 LICENSE
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
=cut
exec 'pod2text',$0;
# eof
| 19,446 |
https://github.com/bcgov/cas-metascript/blob/master/test/integration/save_questions_to_metabase.test.js | Github Open Source | Open Source | MIT | null | cas-metascript | bcgov | JavaScript | Code | 277 | 896 | const getQuestionsFromMetabase = require('../../get_questions_from_metabase');
const saveQuestionsToMetabase = require('../../save_questions_to_metabase');
const callAPI = require('../../api_calls/call_api');
const mockedEnv = require('mocked-env');
const rmdir = require('rimraf');
const fs = require('fs');
const path ... | 22,699 |
https://github.com/cmunell/micro-util/blob/master/src/main/java/edu/cmu/ml/rtw/generic/task/classify/multi/EvaluationMultiClassificationMeasure.java | Github Open Source | Open Source | MIT | 2,016 | micro-util | cmunell | Java | Code | 117 | 453 | package edu.cmu.ml.rtw.generic.task.classify.multi;
import edu.cmu.ml.rtw.generic.data.Context;
import edu.cmu.ml.rtw.generic.opt.search.ParameterSearchable;
public abstract class EvaluationMultiClassificationMeasure extends EvaluationMultiClassification<Double> implements ParameterSearchable {
public EvaluationMult... | 3,889 |
https://github.com/HawxChen/barrelfishOS/blob/master/lib/oldc/msun/src/e_atan2l.c | Github Open Source | Open Source | MIT | 2,021 | barrelfishOS | HawxChen | C | Code | 442 | 1,617 |
/* @(#)e_atan2.c 1.3 95/01/18 */
/* FreeBSD: head/lib/msun/src/e_atan2.c 176451 2008-02-22 02:30:36Z das */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunSoft, a Sun Microsystems, Inc. business.
* Permission to use... | 12,637 |
https://github.com/PanoVideo/PanoVideoDemo/blob/master/Android/PanoCall/app/src/main/java/video/pano/panocall/info/Config.java | Github Open Source | Open Source | MIT | 2,022 | PanoVideoDemo | PanoVideo | Java | Code | 67 | 173 | package video.pano.panocall.info;
import java.util.concurrent.atomic.AtomicInteger;
public class Config {
public static String APPID = Input Your AppId;
public static String USER_ID ="";
public static String APP_TOKEN = Input Your Token;
public static String PANO_SERVER = "api.pano.video";
publi... | 14,875 |
https://github.com/happylrd/smart-assistant/blob/master/SmartAssistant/app/src/main/java/io/happylrd/smartassistant/entity/ExpressData.java | Github Open Source | Open Source | MIT | null | smart-assistant | happylrd | Java | Code | 94 | 239 | package io.happylrd.smartassistant.entity;
public class ExpressData {
private String dateTime;
private String remark;
private String zone;
public String getDateTime() {
return dateTime;
}
public void setDateTime(String dateTime) {
this.dateTime = dateTime;
}
public S... | 3,863 |
https://github.com/msepp/stopwatch/blob/master/app-ui/src/app/model/task.ts | Github Open Source | Open Source | MIT | 2,021 | stopwatch | msepp | TypeScript | Code | 43 | 99 | export class Task {
constructor(
public id?: number,
public groupid?: number,
public name?: string,
public costcode?: string,
public duration?: string,
public running?: string
) {}
}
export function taskMatch(a: Task, b: Task): boolean {
return a.id === b.id && a.groupid === b.groupid;
}
| 55,870 |
https://github.com/MarvellServer/ThunderX-kernel-tci/blob/master/docker/jenkins/tci-jenkins.service | Github Open Source | Open Source | MIT | 2,019 | ThunderX-kernel-tci | MarvellServer | null | Spoken | 58 | 299 | # /etc/systemd/system/tci-jenkins.service
[Unit]
Description=tci-jenkins
After=docker.service
Requires=docker.service
[Service]
RestartSec=60s
Restart=always
Environment=SYSTEMD_LOG_LEVEL=debug
RuntimeDirectory=tci-store/%n
#RuntimeDirectoryMode=0775
ExecStartPre=-/bin/sh -c '/usr/bin/docker rm -f %n 2>/dev/null'
... | 15,209 |
https://github.com/aws-samples/amazon-transcribe-live-call-analytics/blob/master/lca-ai-stack/source/ui/src/App.jsx | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | amazon-transcribe-live-call-analytics | aws-samples | null | Spoken | 136 | 438 | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import React, { useState } from 'react';
import { Amplify, Logger } from 'aws-amplify';
import { HashRouter } from 'react-router-dom';
import { AppContext } from './contexts/app';
import useUserAuthState from ... | 48,692 |
https://github.com/jweinsteinafs/Jhaystack/blob/master/src/Spelling/Ngram.ts | Github Open Source | Open Source | MIT | 2,022 | Jhaystack | jweinsteinafs | TypeScript | Code | 369 | 1,090 | import ISpelling from "../Model/ISpelling"
import { nGram } from "../Utility/ngram"
import { DAMERAU } from "../Comparison/Damerau"
import IWordMeta from "../Model/IWordMeta"
interface IndexMap {
[key: string]: string[]
}
interface INGramSpellerBuildOptions {
gramSize?: number
captureStartEnd?: boolean
}
const DE... | 40,806 |
https://github.com/serenity-is/Serenity/blob/master/src/Serenity.Net.Core/Plugins/NavigationEntry.cs | Github Open Source | Open Source | MIT | 2,023 | Serenity | serenity-is | C# | Code | 294 | 633 | namespace Serenity.Plugins;
/// <summary>
/// Plugin navigation entry abstraction.
/// </summary>
public class NavigationEntry
{
/// <summary>
/// Gets or sets the order.
/// </summary>
/// <value>
/// The order.
/// </value>
public int Order { get; set; }
/// <summary>
/// Gets o... | 17,700 |
https://github.com/shutu008/weifactorydemo/blob/master/weifactory-common/src/main/java/com/vastsum/entity/SysDictItemExample.java | Github Open Source | Open Source | Apache-2.0 | null | weifactorydemo | shutu008 | Java | Code | 1,885 | 6,149 | package com.vastsum.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class SysDictItemExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public SysDictItemExample() {
oredCriteria = new ArrayLi... | 45,839 |
https://github.com/biomystery/OrbWeaver/blob/master/pwms/ENSG00000106459.mat | Github Open Source | Open Source | MIT | 2,019 | OrbWeaver | biomystery | Unity3D Asset | Code | 53 | 242 | NRF1
A C G T
0.0141 0.3533 0.0090 0.6235
0.2581 0.0016 0.7403 0.0000
0.0122 0.9840 0.0031 0.0007
0.0204 0.0017 0.9765 0.0014
0.0004 0.9993 0.0000 0.0004
0.9571 0.0145 0.0216 0.0068
0.0070 0.0401 0.0152 0.9377
0.0000 0.0014 0.9979 0.0007
0.0017 0.9803 0.0014 0.0166
0.0010 0.0136 0.9636 0.0218
0.0023 0.8070 0.0034 0.1873... | 22,161 |
https://github.com/wycivil08/blendocv/blob/master/source/blender/blenkernel/intern/customdata.c | Github Open Source | Open Source | Unlicense | 2,022 | blendocv | wycivil08 | C | Code | 8,194 | 27,557 | /*
* $Id: customdata.c 40903 2011-10-10 09:38:02Z campbellbarton $
*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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 version 2
* of the Lic... | 39,381 |
https://github.com/mohmohaye891/ECommerce-App/blob/master/app/src/main/java/com/padcmyanmar/ecommerce_app/persistance/dao/ProductDao.kt | Github Open Source | Open Source | MIT | null | ECommerce-App | mohmohaye891 | Kotlin | Code | 45 | 199 | package com.padcmyanmar.ecommerce_app.persistance.dao
import android.arch.persistence.room.Dao
import android.arch.persistence.room.Insert
import android.arch.persistence.room.OnConflictStrategy
import android.arch.persistence.room.Query
import com.padcmyanmar.ecommerce_app.data.vos.ProductsVO
@Dao
interface ProductD... | 15,683 |
https://github.com/fireairforce/swc/blob/master/crates/swc/tests/fixture/issue-1869/decorator/output/index.ts | Github Open Source | Open Source | Apache-2.0 | null | swc | fireairforce | TypeScript | Code | 47 | 139 | import * as swcHelpers from "@swc/helpers";
var _TestClass;
var _class;
var TestClass = _class = someClassDecorator((_class = (_TestClass = function TestClass() {
"use strict";
swcHelpers.classCallCheck(this, TestClass);
}, _TestClass.Something = 'hello', _TestClass.SomeProperties = {
firstProp: _TestClass.... | 51,527 |
https://github.com/Adconsulting/BaseSolution/blob/master/BaselineSolution.WebApp/Areas/Security/Controllers/RoleController.cs | Github Open Source | Open Source | MIT | 2,018 | BaseSolution | Adconsulting | C# | Code | 312 | 1,203 | using System.Linq;
using System.Web.Mvc;
using BaselineSolution.Bo.Models.Security;
using BaselineSolution.Facade.Security;
using BaselineSolution.Framework.Infrastructure.Filtering;
using BaselineSolution.WebApp.Areas.Security.ViewModels.Role;
using BaselineSolution.WebApp.Components.Datatables.Remote;
using Baseline... | 5,899 |
https://github.com/prianthon/datadesa/blob/master/database/seeds/PekerjaanSeeder.php | Github Open Source | Open Source | MIT | 2,017 | datadesa | prianthon | PHP | Code | 390 | 2,411 | <?php
use Illuminate\Database\Seeder;
class PekerjaanSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
// kosongkan table libkecamatan
DB::table('pekerjaans')->delete();
// buat data berupa array untuk diinput ke databas... | 41,340 |
https://github.com/Slipsager/Slipsager.github.io/blob/master/Frontend/day8_js_OOP/oopjs/AccountExample.js | Github Open Source | Open Source | Apache-2.0 | 2,017 | Slipsager.github.io | Slipsager | JavaScript | Code | 64 | 309 | function Account (felhasz,tulaj)
{
this.accountType=felhasz;
this.owner=tulaj;
this.saldo=0;
this.insert = function(fizu)
{
this.transaction[transaction.length]=fizu;
this.saldo+=fizu;
}
this.withdraw = function (felvet)
{
this.transaction[transaction.length]=-felvet;
this.saldo... | 55,180 |
https://github.com/joelsmith/federation/blob/master/pkg/dnsprovider/providers/azure/azuredns/stubs/azurednsapi.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | federation | joelsmith | Go | Code | 759 | 2,048 | /*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | 25,351 |
https://github.com/FlukeyNZ/wearbox-theme/blob/master/resources/less/theme/components/alerts.less | Github Open Source | Open Source | MIT | null | wearbox-theme | FlukeyNZ | Less | Code | 52 | 192 | .alert {
margin-bottom: 0;
color: @alert-text;
position: relative;
padding: @alert-padding;
margin-top: @line-height-computed/2;
box-shadow: 0 3px 0 rgba(0, 0, 0, 0.03);
a {
color: white;
}
.close {
top: 0;
right: 1px;
width: 24px;
height: 24... | 19,200 |
https://github.com/alandtsang/dnstool/blob/master/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,022 | dnstool | alandtsang | Makefile | Code | 81 | 273 | SRC := src
SOURCE := $(wildcard $(SRC)/*.c) $(wildcard $(SRC)/*.cpp)
OBJS := $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(SOURCE)))
TARGET := dnstool
CC := g++
LIBS :=
LDFLAGS :=
DEFINES :=
INCLUDE := -I./include
CFLAGS := -g -Wall -O3 $(DEFINES) $(INCLUDE)
CXXFLAGS:= $(CFLAGS) -DHAVE_CONFIG_H -std=c++11
... | 16,412 |
https://github.com/NightOfTwelve/iOS-Cracked-Apps/blob/master/DumpedClasses/Kugou/KTVInvitedListVLL.h | Github Open Source | Open Source | MIT | 2,018 | iOS-Cracked-Apps | NightOfTwelve | Objective-C | Code | 143 | 741 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "NSObject.h"
#import "KTVInvitedListViewDataSource.h"
#import "KTVInvitedListViewEventDelegate.h"
@class KTVInvitedListVM, NSString;
@interface KTVInvitedListVLL : NSObje... | 22,140 |
https://github.com/tonyberrynd/SugarDockerized/blob/master/sugar/vendor/sugarcrm/identity-provider/src/App/Controller/MainController.php | Github Open Source | Open Source | Apache-2.0 | null | SugarDockerized | tonyberrynd | PHP | Code | 938 | 3,746 | <?php
/*
* Your installation or use of this SugarCRM file is subject to the applicable
* terms available at
* http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/.
* If you do not agree to all of the applicable terms or do not have the
* authority to bind the entity as an authorized representative... | 31,064 |
https://github.com/Gaoyuan-Wang/RecycleClient/blob/master/app/src/main/java/com/wgy/recycleclient/ui/activity/AppointmentHistoryActivity.kt | Github Open Source | Open Source | Apache-2.0 | null | RecycleClient | Gaoyuan-Wang | Kotlin | Code | 113 | 662 | package com.wgy.recycleclient.ui.activity
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
import com.wgy.recycleclient.BaseActivity
import com.wgy.recycleclient.R
import com.wgy.recycleclie... | 36,968 |
https://github.com/Harshish/click/blob/master/.gitignore | Github Open Source | Open Source | BSD-3-Clause | 2,018 | click | Harshish | Ignore List | Code | 15 | 64 | .DS_Store
*.pyc
*.pyo
*.egg-ignore
*.egg-info
.pytest_cache
dist
build
docs/_build
click.egg-info
venv/
.tox
.cache
.ropeproject
.idea
| 8,783 |
https://github.com/Gongkuan/trinity/blob/master/library/src/main/cpp/opengl/blend.cc | Github Open Source | Open Source | Apache-2.0 | 2,020 | trinity | Gongkuan | C++ | Code | 672 | 2,983 | /*
* Copyright (C) 2019 Trinity. All rights reserved.
* Copyright (C) 2019 Wang LianJie <wlanjie888@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.apac... | 9,277 |
https://github.com/Provenance-Emu/Provenance/blob/master/CoresRetro/RetroArch/PVRetroArchCore/Core/PVRetroArchCore+Controls.swift | Github Open Source | Open Source | BSD-2-Clause | 2,023 | Provenance | Provenance-Emu | Swift | Code | 1,706 | 8,086 | // RetroArchiOS
// Created by Yoshi Sugawara on 3/3/22.
// Copyright © 2022 RetroArch. All rights reserved.
import Foundation
protocol HelperBarActionDelegate: AnyObject {
func keyboardButtonTapped()
func mouseButtonTapped()
func helpButtonTapped()
var isKeyboardEnabled: Bool { get }
var isMouseEnabled: Bool {... | 25,006 |
https://github.com/multi-os-engine/moe-core/blob/master/moe.apple/moe.platform.ios/src/main/java/apple/replaykit/RPBroadcastController.java | Github Open Source | Open Source | Apache-2.0, ICU, W3C | 2,023 | moe-core | multi-os-engine | Java | Code | 750 | 2,562 | /*
Copyright 2014-2016 Intel 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.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... | 50,776 |
https://github.com/FabricMC/fabric-loom/blob/master/src/main/java/net/fabricmc/loom/build/mixin/ScalaApInvoker.java | Github Open Source | Open Source | MIT | 2,023 | fabric-loom | FabricMC | Java | Code | 305 | 735 | /*
* This file is part of fabric-loom, licensed under the MIT License (MIT).
*
* Copyright (c) 2016-2020 FabricMC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction,... | 39,267 |
https://github.com/RobertAcksel/UnrealCS/blob/master/Engine/Plugins/UnrealCS/Source/MonoPlugin/Private/GeneratedScriptLibraries/ExponentialHeightFog_script.h | Github Open Source | Open Source | MIT | 2,017 | UnrealCS | RobertAcksel | C | Code | 31 | 191 | //GENERATED: C++ Code
#pragma once
class AExponentialHeightFog_
{
static void OnRep_bEnabled(AExponentialHeightFog* _this)
{
_this->OnRep_bEnabled();
}
static UClass* _StaticClassForProxy(){return AExponentialHeightFog::StaticClass();}
public:
static void BindFunctions()
{
mono_add_internal_call("UnrealE... | 54,815 |
https://github.com/licoco/pinpoint/blob/master/web/src/main/webapp/v2/src/app/core/components/configuration-installation/configuration-installation-jvm-argument-info.component.ts | Github Open Source | Open Source | Apache-2.0 | 2,019 | pinpoint | licoco | TypeScript | Code | 99 | 379 | import { Component, OnInit, Input } from '@angular/core';
import { trigger, style, animate, transition } from '@angular/animations';
@Component({
selector: 'pp-configuration-installation-jvm-argument-info',
templateUrl: './configuration-installation-jvm-argument-info.component.html',
styleUrls: ['./configu... | 19,425 |
https://github.com/GeduoWang/scratch/blob/master/src/lib/lib_stanley/tests/test_stanley_impl_fixture.hpp | Github Open Source | Open Source | MIT | 2,018 | scratch | GeduoWang | C++ | Code | 108 | 288 | /**
* \file test_stanley_impl_fixture.hpp
* \author Rafael Pasquay (maintainer.scratch@pasquay.com)
* \brief Fixture class for tests in file test_stanley_impl.cpp.
* \version 0.1
* \date 2018-10-30
*
* @copyright Copyright (c) 2018
*
* \ingroup lib_stanley
* \addtogroup lib_stanley
* @{
*/
#include <strin... | 40,638 |
https://github.com/JetBrains/intellij-community/blob/master/java/java-tests/testData/inspection/redundantThrow/SCR6858ByRange/src/Foo.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | intellij-community | JetBrains | Java | Code | 13 | 27 | import java.io.*;
public class Foo {
public Foo() throws IOException {
}
} | 8,891 |
https://github.com/ggadwa/WSJS_Demo/blob/master/html/demo.js | Github Open Source | Open Source | MIT | null | WSJS_Demo | ggadwa | JavaScript | Code | 331 | 3,824 | import ProjectClass from '../../../code/main/project.js';
import PointClass from '../../../code/utility/point.js';
import ColorClass from '../../../code/utility/color.js';
import KillClass from '../cubes/kill.js';
import ExplosionClass from '../effects/explosion.js';
import FireClass from '../effects/fire.js';
import F... | 14,967 |
https://github.com/Eomm/covid-green-backend-api/blob/master/migrations/202101011500.do.verification_lastupdatedatreset.sql | Github Open Source | Open Source | Apache-2.0 | 2,022 | covid-green-backend-api | Eomm | SQL | Code | 6 | 16 | UPDATE verifications SET last_updated_at = created_at;
| 24,465 |
https://github.com/luisdiasdev/android-cadastro-pessoa/blob/master/app-cadastro-pessoa/app/src/main/java/com/agateownz/testapplication/activities/ActivityDetalhesPessoa.java | Github Open Source | Open Source | MIT | 2,018 | android-cadastro-pessoa | luisdiasdev | Java | Code | 226 | 1,226 | package com.agateownz.testapplication.activities;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInf... | 19,890 |
https://github.com/thisissoon/go-xero/blob/master/xero.go | Github Open Source | Open Source | MIT | 2,020 | go-xero | thisissoon | Go | Code | 95 | 285 | package xero
import (
"crypto/rsa"
"crypto/x509"
"encoding/pem"
"errors"
"io"
"io/ioutil"
)
// New constructs a new Xero API Client
func New(authorizer Authorizer) *Client {
return &Client{
authorizer: authorizer,
scheme: "https",
host: "api.xero.com",
root: "/api.xro/2.0",
}
}
// Pri... | 33,096 |
https://github.com/aerospike/aerospike-client-csharp/blob/master/AerospikeClient/Policy/BatchWritePolicy.cs | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, Apache-2.0, Zlib, MIT | 2,023 | aerospike-client-csharp | aerospike | C# | Code | 594 | 1,314 | /*
* Copyright 2012-2022 Aerospike, Inc.
*
* Portions may be licensed to Aerospike, Inc. under one or more contributor
* license agreements.
*
* 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 Lice... | 49,435 |
https://github.com/ld-archer/E_FEM/blob/master/FEM_Stata/Makedata/HRS/all2010_weightadjust.do | Github Open Source | Open Source | MIT | 2,019 | E_FEM | ld-archer | null | Spoken | 1,371 | 2,912 | /** \file
This is the file that adjusts the population weights to match expectations.
- March 2008, adjust population weight of the initial host dataset(with restricted variables)
- Sep 2008, more detailed estimation of the population by age group
- 9/8/2009 - Using age variable age
- Removed calculation of age spl... | 10,735 |
https://github.com/pis0/x-solar-tech-api/blob/master/src/modules/customer/services/update.customer.service.ts | Github Open Source | Open Source | MIT | null | x-solar-tech-api | pis0 | TypeScript | Code | 96 | 313 | import { injectable, inject } from 'tsyringe';
import ApiError from '@domain/errors/api.error';
import ICustomerDto from '@modules/customer/dto/icustomer.dto';
import ICustomerRepository from '@modules/customer/repositories/icustomer.repository';
@injectable()
class UpdateCustomerService {
private customerRepository... | 10,908 |
https://github.com/reporeferences/raisimLib/blob/master/include/raisim/object/singleBodies/Box.hpp | Github Open Source | Open Source | BSD-3-Clause | 2,020 | raisimLib | reporeferences | C++ | Code | 68 | 199 | //
// Created by kangd on 18.10.17.
//
#ifndef RAISIM_COLLISIONBOX_HPP
#define RAISIM_COLLISIONBOX_HPP
#include "SingleBodyObject.hpp"
namespace raisim {
class Box : public SingleBodyObject {
/// NOTE
/// body origin of Box is C.O.M of Box
public:
Box(double xLength, double yLength, double zLength, double m... | 28,830 |
https://github.com/luckcoding/joi-to-json-schema/blob/master/src/types/any.ts | Github Open Source | Open Source | Apache-2.0 | null | joi-to-json-schema | luckcoding | TypeScript | Code | 19 | 43 | export const any = (_convert, schema) => {
schema.type = ['array', 'boolean', 'number', 'object', 'string', 'null']
return schema
}
| 29,287 |
https://github.com/manueljrp2015/psicometrix/blob/master/application/controllers/app/panel/AppPanelController.php | Github Open Source | Open Source | MIT | null | psicometrix | manueljrp2015 | PHP | Code | 161 | 761 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class AppPanelController extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->model([
"app/oauth/appOauthModel",
"app/panel/appPanelModel"
]);
}
protected function errorValidation()
{
... | 51,108 |
https://github.com/jaredpar/advent2021/blob/master/day18/day18.go | Github Open Source | Open Source | MIT | 2,021 | advent2021 | jaredpar | Go | Code | 130 | 345 | package day18
import (
"math"
"advent2021.com/util"
)
func magnitude(n *Node) int {
if n.IsLeaf() {
return n.Value
} else {
left := 3 * magnitude(n.Left)
right := 2 * magnitude(n.Right)
return left + right
}
}
func joinLines(lines []string) *Node {
var node *Node
for _, line := range lines {
cur :=... | 42,491 |
https://github.com/Naomi-Dennis/rails-amusement-park-v-000/blob/master/app/controllers/users_controller.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,018 | rails-amusement-park-v-000 | Naomi-Dennis | Ruby | Code | 71 | 273 | class UsersController < ApplicationController
def index
if !session[:user_id].nil?
@user = User.find(session[:user_id])
else
@users = User.all.length
end
end
def new
#user sign in goes here.
@user = User.new
end
def create
if User.create!(user_params)
session[:user_id] = User.last.id
... | 50,331 |
https://github.com/Mrtenz/hdwallet/blob/master/packages/hdwallet-keepkey/src/responseTypeRegistry.ts | Github Open Source | Open Source | MIT | null | hdwallet | Mrtenz | TypeScript | Code | 300 | 2,576 | import * as ProtoMessages from "@keepkey/device-protocol/lib/messages_pb";
const {
default: { MessageType },
} = ProtoMessages as any; // Conflict between typedef and actual js export
export const EXIT_TYPES = [
String(MessageType.MESSAGETYPE_SUCCESS),
String(MessageType.MESSAGETYPE_CANCEL),
String(MessageTyp... | 12,132 |
https://github.com/nayak001/MIS_G/blob/master/src/app/layout/userswap/userswap.service.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | MIS_G | nayak001 | TypeScript | Code | 320 | 1,151 | import { Injectable } from "@angular/core";
import { AbstractControl, ValidatorFn } from "@angular/forms";
import { HttpClient, HttpHeaders } from "@angular/common/http";
import { environment } from "./../../../environments/environment.prod";
const baseUrl = environment.baseUrl;
@Injectable({
providedIn: "root",
})... | 17,080 |
https://github.com/GrieferAtWork/deemon-legacy-/blob/master/src/deemon/__xconf.inl | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,017 | deemon-legacy- | GrieferAtWork | C++ | Code | 1,805 | 5,127 | /* Copyright (c) 2016 - deemon by Griefer@Work *
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy *
* of this software and associated documentation files (the "Softwar... | 15,355 |
https://github.com/rustyrazorblade/code2snippets/blob/master/src/main/kotlin/com/rustyrazorblade/code2snippets/Main.kt | Github Open Source | Open Source | Apache-2.0 | null | code2snippets | rustyrazorblade | Kotlin | Code | 131 | 478 | /*
* This Kotlin source file was generated by the Gradle 'init' task.
*/
package com.rustyrazorblade.code2snippets
import picocli.CommandLine
import java.io.File
import java.nio.file.Files
import java.nio.file.Path
class Main {
@CommandLine.Parameters(index="0")
lateinit var inPath: Path
@CommandLi... | 33,700 |
https://github.com/snegovick/django-cms-articles/blob/master/cms_articles/signals/article.py | Github Open Source | Open Source | BSD-3-Clause | 2,019 | django-cms-articles | snegovick | Python | Code | 61 | 231 | import warnings
from django.template import TemplateDoesNotExist
from ..models import Article
def pre_save_article(instance, **kwargs):
instance.old_article = None
try:
instance.old_article = Article.objects.get(pk=instance.pk)
except Article.DoesNotExist:
pass
def post_save_article(in... | 53,184 |
https://github.com/apache/commons-digester/blob/master/commons-digester3-core/src/test/java/org/apache/commons/digester3/xmlrules/IncludeTest.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-generic-cla | 2,023 | commons-digester | apache | Java | Code | 464 | 1,383 | /* $Id$
*
* 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"); ... | 35,823 |
https://github.com/Arveto/n2i_template/blob/master/tables_creation.sql | Github Open Source | Open Source | Unlicense | null | n2i_template | Arveto | SQL | Code | 154 | 446 | CREATE TABLE `users` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`faName` varchar(45) NOT NULL,
`fiName` varchar(45) NOT NULL,
`pseudo` varchar(50) DEFAULT NULL,
`email` varchar(70) NOT NULL,
`password` varchar(128) NOT NULL,
`inscriptionDate` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`admin... | 26,415 |
https://github.com/dvershinin/ngx_http_html_sanitize_module/blob/master/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,020 | ngx_http_html_sanitize_module | dvershinin | Makefile | Code | 11 | 66 | PATH := /opt/nginx/sbin:/usr/local/bin:/usr/local/nginx/sbin:$(PATH)
test:
@WORKDIR=$(shell pwd) /usr/bin/prove -r t
.PHONY: test
| 1,747 |
https://github.com/szynkowskij/prettier/blob/master/tests/format/typescript/template-literal-types/jsfmt.spec.js | Github Open Source | Open Source | MIT | 2,022 | prettier | szynkowskij | JavaScript | Code | 3 | 19 | run_spec(__dirname, ["babel-ts", "typescript"]);
| 41,481 |
https://github.com/Satya-AK/artemisia-ui/blob/master/app/repo/UserPasswordRepository.scala | Github Open Source | Open Source | Apache-2.0 | 2,016 | artemisia-ui | Satya-AK | Scala | Code | 170 | 665 | package repo
import javax.inject.Inject
import models.UserPassword
import play.api.Logger
import play.api.db.slick.{DatabaseConfigProvider, HasDatabaseConfigProvider}
import repo.UserPasswordRepository.UserPasswordRepoHelper
import slick.driver.JdbcProfile
import scala.concurrent.Future
/**
* Created by chlr on 11/... | 45,555 |
https://github.com/dcrvn/dcrdex/blob/master/client/db/bolt/db.go | Github Open Source | Open Source | BlueOak-1.0.0, ISC | 2,021 | dcrdex | dcrvn | Go | Code | 6,667 | 18,716 | // This code is available on the terms of the project LICENSE.md file,
// also available online at https://blueoakcouncil.org/license/1.0.0.
package bolt
import (
"bytes"
"context"
"errors"
"fmt"
"os"
"path/filepath"
"sort"
"time"
"decred.org/dcrdex/client/db"
dexdb "decred.org/dcrdex/client/db"
"decred.o... | 45,585 |
https://github.com/eps0003/Hunter4D/blob/master/Hunter4D/Client.as | Github Open Source | Open Source | MIT | 2,021 | Hunter4D | eps0003 | null | Spoken | 217 | 838 | #include "Object.as"
#include "Camera.as"
#include "MapRenderer.as"
#include "Particle.as"
#include "Loading.as"
#define CLIENT_ONLY
int id;
Actor@[]@ actors;
Object@[]@ objects;
Camera@ camera;
MapRenderer@ mapRenderer;
ParticleManager@ particleManager;
void onInit(CRules@ this)
{
print("Hunter3D loaded!", Console... | 40,393 |
https://github.com/ajaytikoo/watcher/blob/master/watcher/tests/applier/messaging/test_trigger_action_plan_endpoint.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | watcher | ajaytikoo | Python | Code | 150 | 376 | # -*- encoding: utf-8 -*-
# Copyright (c) 2015 b<>com
#
# Authors: Jean-Emile DARTOIS <jean-emile.dartois@b-com.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/... | 34,955 |
https://github.com/SyLaurence/Capstone/blob/master/myproject/app/Address.php | Github Open Source | Open Source | MIT | 2,017 | Capstone | SyLaurence | PHP | Code | 22 | 77 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Address extends Model
{
protected $table = 'tbladdress';
public function Personal_Info_ADD()
{
return $this->belongsTo(Personal_Info::class);
}
}
| 56,376 |
https://github.com/applariat-catalog/tomcat/blob/master/entrypoint.sh | Github Open Source | Open Source | Apache-2.0 | null | tomcat | applariat-catalog | Shell | Code | 16 | 43 | #! /bin/sh
# appLariat generic tomcat entrypoint.sh
echo "Printing build log"
cat /tmp/build.log
exec catalina.sh run | 19,322 |
https://github.com/tanhrepo/graduation/blob/master/ruoyi-system/src/main/java/com/ruoyi/system/mapper/BusiScoreMapper.java | Github Open Source | Open Source | MIT | 2,021 | graduation | tanhrepo | Java | Code | 118 | 455 | package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.BusiScore;
/**
* 推荐得分Mapper接口
*
* @author dfm
* @date 2021-04-17
*/
public interface BusiScoreMapper
{
/**
* 查询推荐得分
*
* @param id 推荐得分ID
* @return 推荐得分
*/
public BusiScore selectBusiScoreByI... | 39,669 |
https://github.com/mathieuravaux/nutchbase/blob/master/src/java/org/apache/nutch/clustering/OnlineClusterer.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | nutchbase | mathieuravaux | Java | Code | 368 | 644 | /**
* 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... | 8,824 |
https://github.com/manchingchan1992/cananolab/blob/master/software/cananolab-webapp/web/cananoMainmenu.jsp | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,015 | cananolab | manchingchan1992 | null | Spoken | 175 | 905 | <%--L
Copyright SAIC
Copyright SAIC-Frederick
Distributed under the OSI-approved BSD 3-Clause License.
See http://ncip.github.com/cananolab/LICENSE.txt for details.
L--%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"... | 54,484 |
https://github.com/cristiandlr/SubTTS/blob/master/TTSLogic/T2WParam.cs | Github Open Source | Open Source | MIT | 2,020 | SubTTS | cristiandlr | C# | Code | 200 | 537 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Text.RegularExpressions;
namespace TTSSynth
{
public class T2WParam
{
private string _pathToText;
public string PathToText
{
get
{
return _pathToText;
}
set
{
if (!File.Ex... | 18,252 |
https://github.com/yui540/Hitorigoto/blob/master/src/scss/keyframes/pc/pages.scss | Github Open Source | Open Source | MIT | 2,018 | Hitorigoto | yui540 | SCSS | Code | 84 | 281 | @keyframes pages__open {
0% {
transform: translateY(-100%); border-bottom-left-radius: 50%; border-bottom-right-radius: 50%;
}
100% {
transform: translateY(0%); border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
}
@keyframes pages__close {
0% {
transform: translateY(0%); border-bottom-... | 10,643 |
https://github.com/c-block/jbok/blob/master/common/shared/src/main/scala/jbok/common/metrics/MetricsOps.scala | Github Open Source | Open Source | MIT | 2,019 | jbok | c-block | Scala | Code | 58 | 194 | package jbok.common.metrics
import cats.effect.{Resource, Sync, Timer}
final class EffectMetricsOps[F[_], A](val fa: F[A]) extends AnyVal {
def observed(name: String, labels: String*)(implicit F: Sync[F], T: Timer[F], M: Metrics[F]): F[A] =
M.observed(name, labels: _*)(fa)
}
final class ResourceMetricsOps[F[_]... | 10,242 |
https://github.com/Passw/joone-opengl-wayland/blob/master/common/display.cc | Github Open Source | Open Source | BSD-2-Clause | 2,021 | joone-opengl-wayland | Passw | C++ | Code | 606 | 2,360 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Copyright 2013 Intel Corporation. All rights reserved.
// Copyright 2020 Joone Hur. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "display.h"
#include <assert.h>
#inc... | 13,460 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.