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/naoyam/physis/blob/master/runtime/buffer_cuda.cu | Github Open Source | Open Source | BSD-3-Clause | 2,022 | physis | naoyam | null | Spoken | 1,121 | 3,674 | // Licensed under the BSD license. See LICENSE.txt for more details.
#include "runtime/buffer_cuda.h"
#include "runtime/runtime_common_cuda.h"
#include "runtime/grid_util.h"
#include <cuda_runtime.h>
namespace physis {
namespace runtime {
BufferCUDAHost::BufferCUDAHost()
: BufferHost(BufferCUDAHost::FreeChunk) ... | 30,592 |
https://github.com/atanasovam/limechain-library-tokens/blob/master/node_modules/etherlime-lib/dist/deployer/deployer.js | Github Open Source | Open Source | MIT | 2,021 | limechain-library-tokens | atanasovam | JavaScript | Code | 1,285 | 3,636 | "use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... | 21 |
https://github.com/sdotz/apple-news-format/blob/master/cmd/anf/main.go | Github Open Source | Open Source | MIT | 2,020 | apple-news-format | sdotz | Go | Code | 107 | 380 | package main
import (
"encoding/json"
"fmt"
"os"
"github.com/sdotz/apple-news-format/pkg/convert"
"gopkg.in/alecthomas/kingpin.v2"
)
var (
convertCmd = kingpin.Command("convert", "Convert content to apple news format")
url = convertCmd.Flag("url", "A URL to download and convert to apple news fo... | 7,741 |
https://github.com/TrendingTechnology/Trail-Sense/blob/master/app/src/main/java/com/kylecorry/trail_sense/astronomy/ui/IconClock.kt | Github Open Source | Open Source | MIT | 2,020 | Trail-Sense | TrendingTechnology | Kotlin | Code | 37 | 117 | package com.kylecorry.trail_sense.astronomy.ui
import android.view.View
import com.kylecorry.trail_sense.shared.alignToVector
class IconClock(private val clock: View, private val icon: View) {
fun display(angle: Float, percentRadius: Float = 1f){
val radius = clock.width / 2f * percentRadius
align... | 41,148 |
https://github.com/yongkyuns/manim-rs/blob/master/src/main.rs | Github Open Source | Open Source | MIT | null | manim-rs | yongkyuns | Rust | Code | 164 | 819 | #![allow(dead_code)]
mod animation;
mod app;
mod appearance;
mod arena;
mod consts;
mod draw;
mod ease;
mod geom;
mod mobject;
mod object;
mod path;
mod scene;
mod walk;
use animation::{Actionable, TargetAction, UserCommand};
use consts::*;
use geom::point_at;
// use nannou::draw::primitive::rect;
use arena::AddObjec... | 5,546 |
https://github.com/Janloong-Doo/AndroidTDDBootStrap/blob/master/model/src/main/java/com/github/piasy/bootstrap/model/AutoValueGsonAdapterFactory.java | Github Open Source | Open Source | MIT | null | AndroidTDDBootStrap | Janloong-Doo | Java | Code | 32 | 131 | package com.github.piasy.bootstrap.model;
import com.google.gson.TypeAdapterFactory;
import com.ryanharter.auto.value.gson.GsonTypeAdapterFactory;
/**
* Created by Piasy{github.com/Piasy} on 7/31/16.
*/
@GsonTypeAdapterFactory
public abstract class AutoValueGsonAdapterFactory implements TypeAdapterFactory {
pub... | 28,851 |
https://github.com/Adam-Alani/Code-Afterlife/blob/master/Game/CodeMeToAfterLife/Library/PackageCache/com.unity.probuilder@4.4.0/Runtime/MeshOperations/InternalMeshUtility.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,021 | Code-Afterlife | Adam-Alani | C# | Code | 928 | 2,934 | using System;
using System.Collections.Generic;
using System.Linq;
using ArrUtil = UnityEngine.ProBuilder.ArrayUtility;
using UnityEditor;
namespace UnityEngine.ProBuilder.MeshOperations
{
static class InternalMeshUtility
{
/// <summary>
/// Averages shared normals with the mask of all (indexes... | 50,311 |
https://github.com/PortlandRoboticsTeam/FRC-2022/blob/master/src/main/java/frc/robot/commands/ShootTwoBalls.java | Github Open Source | Open Source | BSD-3-Clause | null | FRC-2022 | PortlandRoboticsTeam | Java | Code | 239 | 694 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.commands;
import frc.robot.subsystems.BallGun;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.fir... | 16,980 |
https://github.com/NUS-Fintech-Society/ML_cylynx_nlp/blob/master/db/getEntityScores.py | Github Open Source | Open Source | MIT | 2,021 | ML_cylynx_nlp | NUS-Fintech-Society | Python | Code | 393 | 1,248 | #!/usr/bin/env python
import sqlite3
from datetime import datetime
import pandas as pd
import logging
from typing import Union
from utils import preprocessEntityName as __preprocess
from utils import preprocessTime as __preprocessTime
def __deriveDataframe(map_df : pd.DataFrame) -> pd.DataFrame:
'''
Takes in... | 39,655 |
https://github.com/mathbeta/rational/blob/master/rational-master/src/main/java/com/mathbeta/rational/master/main/StartMaster.java | Github Open Source | Open Source | Apache-2.0 | null | rational | mathbeta | Java | Code | 25 | 88 | package com.mathbeta.rational.master.main;
import com.mathbeta.rational.common.jetty.StartJetty;
/**
* Created by 147458 on 2017/4/12.
*/
public class StartMaster {
public static void main(String[] args) {
StartJetty.getInstance().startJetty();
}
}
| 54,782 |
https://github.com/hackages/hackflix-java/blob/master/hackflix-domain/src/main/java/io/hackages/hackflix/backend/java/exception/TechnicalException.java | Github Open Source | Open Source | MIT | null | hackflix-java | hackages | Java | Code | 15 | 53 | package io.hackages.hackflix.backend.java.exception;
public class TechnicalException extends RuntimeException {
public TechnicalException(String message) {
super(message);
}
}
| 11,839 |
https://github.com/DROPLET-TRAILER/droplet_inv_dash/blob/master/droplet_inv_dash/droplet_inv_dash/doctype/droplet_doctype/droplet_doctype.js | Github Open Source | Open Source | MIT | null | droplet_inv_dash | DROPLET-TRAILER | JavaScript | Code | 26 | 63 | // Copyright (c) 2022, BCIT CST 2022 and contributors
// For license information, please see license.txt
frappe.ui.form.on('Droplet Doctype', {
// refresh: function(frm) {
// }
});
| 44,386 |
https://github.com/aliangeland/decentralized_election/blob/master/client/src/components/VoteForm.js | Github Open Source | Open Source | MIT | null | decentralized_election | aliangeland | JavaScript | Code | 80 | 261 | import React from "react";
import { Form, Message } from "semantic-ui-react";
const VoteForm = (props) => {
return (
<Form error onSubmit={() => props.handleSubmit()}>
<Form.Select
onChange={(e, { value }) => {
props.selectCandidate(value);
}}
label="Select Candidate To Vo... | 30,822 |
https://github.com/renuo/lean-elevators-lobby/blob/master/config/initializers/sidekiq.rb | Github Open Source | Open Source | MIT | 2,021 | lean-elevators-lobby | renuo | Ruby | Code | 30 | 127 | require 'sidekiq'
require 'sidekiq/web'
if ENV['REDIS_SERVER_URL']
Sidekiq.configure_server do |config|
config.redis = { url: ENV['REDIS_SERVER_URL'] }
end
end
if ENV['REDIS_CLIENT_URL']
Sidekiq.configure_client do |config|
config.redis = { url: ENV['REDIS_CLIENT_URL'] }
end
end
| 36,779 |
https://github.com/shinesolutions/swagger-aem-osgi/blob/master/clients/android/generated/src/main/java/org/openapitools/client/model/ComAdobeCqWcmLaunchesImplLaunchesEventHandlerProperties.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | swagger-aem-osgi | shinesolutions | Java | Code | 347 | 1,622 | /**
* Adobe Experience Manager OSGI config (AEM) API
* Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API
*
* OpenAPI spec version: 1.0.0-pre.0
* Contact: opensource@shinesolutions.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openap... | 19,346 |
https://github.com/beschoenen/shopping-list/blob/master/.editorconfig | Github Open Source | Open Source | 2,023 | shopping-list | beschoenen | null | Spoken | 23 | 67 | root = true
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
charset = utf-8
[*.{html,hbs}]
indent_size = 4
| 31,409 | |
https://github.com/Moomed-Hamed/tower-defense-game/blob/master/src/turrets.h | Github Open Source | Open Source | MIT | null | tower-defense-game | Moomed-Hamed | C | Code | 284 | 1,280 | #include "enemies.h"
#define MAX_TURRETS 256
#define TURRET_SMALL 1
struct Turret
{
uint type;
vec3 position;
vec3 aim_direction; // where the turret is currently aiming
vec3 target_pos; // where the turret is trying to aim
float cooldown; // seconds until turret can fire
};
void spawn_turret(Turret* turrets, ... | 18,026 |
https://github.com/xie244135119/SSBBaseKit/blob/master/SSBaseKit/AMDBase/Controller/AMDRootViewController.m | Github Open Source | Open Source | MIT | 2,019 | SSBBaseKit | xie244135119 | Objective-C | Code | 589 | 2,722 | //
// AMDRootViewController.m
// AppMicroDistribution
//
// Created by SunSet on 15-5-20.
// Copyright (c) 2015年 SunSet. All rights reserved.
//
#import "AMDRootViewController.h"
#import "AMDRootNavgationBar.h"
#import "AMDBackControl.h"
#import <Masonry/Masonry.h>
#import "SSGlobalVar.h"
@interface AMDRootViewC... | 4,143 |
https://github.com/vuzzan/openclinic/blob/master/src/org/apache/http/HttpStatus.java | Github Open Source | Open Source | Apache-2.0 | null | openclinic | vuzzan | Java | Code | 1,073 | 2,661 | /*
* ====================================================================
* 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
... | 1,025 |
https://github.com/flex-extras/as3-commons/blob/master/as3-commons-aop/src/test/actionscript/org/as3commons/aop/pointcut/impl/binary/AbstractBinaryPointcutTest.as | Github Open Source | Open Source | Apache-2.0 | 2,016 | as3-commons | flex-extras | null | Spoken | 233 | 725 | /*
* Copyright 2007-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 15,856 |
https://github.com/maxissuel/MascaraPadrao/blob/master/app/src/main/java/com/consultoriasolucao/mascarapadrao/Mascara.java | Github Open Source | Open Source | Apache-2.0 | null | MascaraPadrao | maxissuel | Java | Code | 398 | 1,278 | package com.consultoriasolucao.mascarapadrao;
import android.text.Editable;
import android.text.TextWatcher;
import android.widget.EditText;
import java.lang.ref.WeakReference;
import java.math.BigDecimal;
import java.text.NumberFormat;
import java.util.Locale;
public class Mascara {
public static final String C... | 51,929 |
https://github.com/wealthyboy/avenuemontaigne.ng/blob/master/app/Http/Controllers/UserProducts/UserProductsController.php | Github Open Source | Open Source | MIT | null | avenuemontaigne.ng | wealthyboy | PHP | Code | 435 | 1,654 | <?php
namespace App\Http\Controllers\UserProducts;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Product;
use App\Category;
use App\Attribute;
use App\Subject;
use Illuminate\Validation\Rule;
use App\Http\Helper;
use App\SystemSetting;
use App\ProductVariation;
use App\Image;
class Use... | 45,928 |
https://github.com/tbackus127/RathBot/blob/master/src/com/rath/rathbot/RathBot.java | Github Open Source | Open Source | MIT | 2,022 | RathBot | tbackus127 | Java | Code | 1,819 | 4,613 |
package com.rath.rathbot;
import java.io.File;
import java.io.FileNotFoundException;
import java.time.Instant;
import java.util.List;
import java.util.Scanner;
import java.util.TreeMap;
import com.rath.rathbot.action.ActionBan;
import com.rath.rathbot.action.ActionKick;
import com.rath.rathbot.action.ActionMute;
imp... | 8,931 |
https://github.com/uliramminger/gds-examples/blob/master/rails/books01/config/routes.rb | Github Open Source | Open Source | MIT | 2,018 | gds-examples | uliramminger | Ruby | Code | 11 | 37 | Rails.application.routes.draw do
root 'books#index'
resources :books, only: [ :index ]
end
| 25,717 |
https://github.com/rvmiller89/sshlib/blob/master/sshlib/src/test/java/com/trilead/ssh2/AsyncSSHCompatibilityTest.java | Github Open Source | Open Source | MIT | 2,021 | sshlib | rvmiller89 | Java | Code | 266 | 1,192 | package com.trilead.ssh2;
import org.apache.commons.io.IOUtils;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import org.junit.ClassRule;
import org.junit.Rule;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testcontainers.containers.Ge... | 28,714 |
https://github.com/GTNewHorizons/EnderZoo/blob/master/src/main/java/crazypants/enderzoo/EnderZooTab.java | Github Open Source | Open Source | CC0-1.0 | 2,023 | EnderZoo | GTNewHorizons | Java | Code | 59 | 258 | package crazypants.enderzoo;
import static crazypants.enderzoo.EnderZoo.MODID;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class EnderZooTab extends CreativeTabs {
public static final Creativ... | 35,543 |
https://github.com/CEDSS/SolastaCommunityExpansion/blob/master/SolastaCommunityExpansion/CustomFeatureDefinitions/FeatureDefinitionPowerSharedPool.cs | Github Open Source | Open Source | MIT | null | SolastaCommunityExpansion | CEDSS | C# | Code | 647 | 2,506 |
using SolastaModApi;
using SolastaModApi.Extensions;
namespace SolastaCommunityExpansion.CustomFeatureDefinitions
{
public interface IPowerSharedPool
{
FeatureDefinitionPower GetUsagePoolPower();
}
/**
* Features using a shared pool should have UsesDetermination == Fixed.
*/
pu... | 6,026 |
https://github.com/jaykrell/cm3/blob/master/m3-lectern/lecternclient/src/LecternClient.1 | Github Open Source | Open Source | BSD-4-Clause-UC, BSD-4-Clause, BSD-3-Clause | 2,022 | cm3 | jaykrell | null | Spoken | 216 | 441 | .\" This file generated automatically by mtextoman(1)
.nh
.TH "LecternClient" "1"
.SH "NAME"
LecternClient \- send request to Lectern
.SH "SYNTAX"
\fBLecternClient pathname\fR
.PP
or:
.PP
\fBLecternClient \-l arg...\fR
.PP
or:
.PP
\fBLecternClient \-f path\fR
.SH "DESCRIPTION"
This program sends a message to the lates... | 24,085 |
https://github.com/yangdf123/react-exercise/blob/master/src/app.jsx | Github Open Source | Open Source | MIT | null | react-exercise | yangdf123 | null | Spoken | 28 | 70 | import React, {Component, PropTypes} from 'react';
import {LeftSide} from './LeftSide';
export default class App extends Component {
render() {
return (
<div className="container">
<LeftSide/>
</div>
);
}
}
| 2,044 |
https://github.com/json-nan/tukichallenge/blob/master/database/migrations/2021_09_11_190558_add_more_columns_to_summoners_table.php | Github Open Source | Open Source | MIT | 2,021 | tukichallenge | json-nan | PHP | Code | 59 | 235 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddMoreColumnsToSummonersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('summ... | 49,336 |
https://github.com/Arckenver/MightyLoot/blob/master/src/main/java/com/arckenver/mightyloot/object/Interval.java | Github Open Source | Open Source | MIT | 2,016 | MightyLoot | Arckenver | Java | Code | 51 | 151 | package com.arckenver.mightyloot.object;
import org.apache.commons.lang3.RandomUtils;
public class Interval
{
private int a;
private int b;
public Interval(int a, int b)
{
this.a = a;
this.b = b;
}
public int getRandom()
{
return RandomUtils.nextInt(a, b+1);
}
public String toString()
{
return... | 29,744 |
https://github.com/andrewvh619/ubiquity/blob/master/src/tests/unit/contents/SerializersTest.php | Github Open Source | Open Source | Apache-2.0 | 2,022 | ubiquity | andrewvh619 | PHP | Code | 109 | 495 | <?php
use Ubiquity\utils\base\UArray;
use Ubiquity\utils\base\UString;
use models\Groupe;
use models\User;
use Ubiquity\contents\serializers\PhpSerializer;
use Ubiquity\contents\serializers\JsonSerializer;
/**
* Serializers test case.
*/
class SerializersTest extends \Codeception\Test\Unit {
private $groupe;
priva... | 32,704 |
https://github.com/DisDis/agenda_dart/blob/master/test/agenda-test.dart | Github Open Source | Open Source | MIT | 2,014 | agenda_dart | DisDis | Dart | Code | 89 | 276 | import '../lib/agenda.dart';
import 'dart:async';
main() {
var connStr = 'mongodb://localhost/agenda-test';
var agenda = new Agenda();
agenda.database(connStr).then((_) {
agenda.define('5 minutes job', {}, (job) {
print("Running 5 minutes job");
return new Future.value(null);
});
agenda.... | 33,296 |
https://github.com/bunjlabs/fuga/blob/master/fuga-logging/src/main/java/fuga/logging/LoggingUnit.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | fuga | bunjlabs | Java | Code | 31 | 130 | package fuga.logging;
import fuga.inject.Configuration;
import fuga.inject.Unit;
import fuga.logging.support.DefaultLoggerComposer;
import org.slf4j.Logger;
public class LoggingUnit implements Unit {
@Override
public void setup(Configuration c) {
var composer = new DefaultLoggerComposer();
c.... | 7,029 |
https://github.com/neoml-lib/neoml/blob/master/NeoML/test/src/AutoDiffTest.cpp | Github Open Source | Open Source | Apache-2.0, NCSA, BSD-3-Clause, LLVM-exception, LicenseRef-scancode-generic-cla, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-protobuf, LicenseRef-scancode-arm-llvm-sga, MIT, Intel | 2,023 | neoml | neoml-lib | C++ | Code | 6,559 | 22,586 | /* Copyright © 2021 ABBYY Production LLC
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, soft... | 15,654 |
https://github.com/noure/springboottest/blob/master/repositories/src/main/java/pl/mrasoft/springboottest/repository/Wasteland2WeaponRepository.java | Github Open Source | Open Source | MIT | 2,015 | springboottest | noure | Java | Code | 105 | 554 | package pl.mrasoft.springboottest.repository;
import com.mysema.query.jpa.JPQLQuery;
import com.mysema.query.jpa.impl.JPAQuery;
import org.springframework.stereotype.Repository;
import pl.mrasoft.springboottest.model.QWasteland2Weapon;
import pl.mrasoft.springboottest.model.Wasteland2Weapon;
import pl.mrasoft.springbo... | 37,413 |
https://github.com/ngochai94/laminext/blob/master/project/DependencyVersions.scala | Github Open Source | Open Source | MIT | null | laminext | ngochai94 | Scala | Code | 99 | 379 | import sbt.Def
import sbt.Keys.scalaVersion
import sbt.librarymanagement.CrossVersion
object DependencyVersions {
val jsdom = "16.4.0"
val laminar = "0.12.1"
val `scala-test` = "3.2.3"
val stringdiff = "0.3.1"
val domtestutils ... | 1,983 |
https://github.com/wangziming0915/CSC413/blob/master/Interpreter-master/interpreter/bytecode/ByteCode.java | Github Open Source | Open Source | MIT | 2,020 | CSC413 | wangziming0915 | Java | Code | 26 | 70 | package interpreter.bytecode;
import interpreter.VirtualMachine;
import java.util.ArrayList;
abstract public class ByteCode {
abstract public void load(String string);
abstract public void execute(VirtualMachine vm);
public abstract ArrayList<String> getData();
} | 34,965 |
https://github.com/Jormii/Tongued/blob/master/Camaleones/Assets/Scripts/Gameplay/Input/InputEventReceiver.cs | Github Open Source | Open Source | MIT | 2,019 | Tongued | Jormii | C# | Code | 159 | 362 | using UnityEngine;
using UnityEngine.Events;
using UnityEngine.EventSystems;
using UnityEngine.UI;
/// <summary>
/// Utilidad para recibir eventos de input en cualquier punto de la pantalla.
/// Utilizamos EventSystems en vez de Input porque abstrae detalles de ratón vs pantalla táctil, y porque da eventos con inform... | 2,173 |
https://github.com/martenc/digibp-showcases/blob/master/src/main/java/ch/fhnw/digibp/config/HeartConfig.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | digibp-showcases | martenc | Java | Code | 77 | 253 | /*
* Copyright (c) 2020. University of Applied Sciences and Arts Northwestern Switzerland FHNW.
* All rights reserved.
*/
package ch.fhnw.digibp.config;
import org.springframework.context.annotation.Configuration;
import javax.servlet.http.HttpServletRequest;
import java.net.MalformedURLException;
import java.net... | 25,633 |
https://github.com/MCZbase/DDL/blob/master/INDEX/UNDERSSCORE_RELATION_INDEX1.sql | Github Open Source | Open Source | Apache-2.0 | 2,020 | DDL | MCZbase | SQL | Code | 8 | 52 |
CREATE UNIQUE INDEX "UNDERSSCORE_RELATION_INDEX1" ON "UNDERSCORE_RELATION" ("COLLECTION_OBJECT_ID", "UNDERSCORE_COLLECTION_ID")
| 14,986 |
https://github.com/sandrozbinden/app/blob/master/src/providers/model-service.ts | Github Open Source | Open Source | MIT | 2,017 | app | sandrozbinden | TypeScript | Code | 163 | 637 | import { Credential } from './../models/credential';
import { MetadataTableFields } from './../models/metadata-table-fields';
import { ModelLink } from './../models/model-link';
import { ImsService } from './ims-service';
import { ModelTables } from './../models/model-tables';
import { Injectable } from '@angular/core'... | 7,138 |
https://github.com/elnormous/ouzel/blob/master/engine/graphics/opengl/linux/OGLRenderDeviceLinux.hpp | Github Open Source | Open Source | Unlicense, LicenseRef-scancode-public-domain | 2,023 | ouzel | elnormous | C++ | Code | 86 | 390 | // Ouzel by Elviss Strazdins
#ifndef OUZEL_GRAPHICS_OGLRENDERDEVICELINUX_HPP
#define OUZEL_GRAPHICS_OGLRENDERDEVICELINUX_HPP
#include "../../../core/Setup.h"
#if defined(__linux__) && !defined(__ANDROID__) && OUZEL_COMPILE_OPENGL
#include "../OGL.h"
#include <atomic>
#include <thread>
#include "EGL/egl.h"
#include... | 17,418 |
https://github.com/polonel/trudesk/blob/master/src/client/components/TruTabs/TruTabSection.jsx | Github Open Source | Open Source | Apache-2.0 | 2,023 | trudesk | polonel | JavaScript | Code | 150 | 464 | /*
* . .o8 oooo
* .o8 "888 `888
* .o888oo oooo d8b oooo oooo .oooo888 .ooooo. .oooo.o 888 oooo
* 888 `888""8P `888 `888 d88' `888 d88' `88b d88( "8 888 .8P'
* 888 888 888 888 8... | 3,303 |
https://github.com/Cyber-Kai/project_provider_architecture/blob/master/lib/app/router.dart | Github Open Source | Open Source | MIT | null | project_provider_architecture | Cyber-Kai | Dart | Code | 50 | 171 | import 'package:auto_route/auto_route_annotations.dart';
import 'package:project_provider_architecture/ui/views/home/home_view.dart';
import 'package:project_provider_architecture/ui/views/startup/startup_view.dart';
/** generator to run one time and exits use
* flutter packages pub run build_runner build
*/
@Materi... | 39,603 |
https://github.com/SlivTime/leetcode/blob/master/src/1658-reduce-to-zero/reduce_to_zero.go | Github Open Source | Open Source | MIT | null | leetcode | SlivTime | Go | Code | 108 | 270 | package reducezero
func max(a int, b int) int {
if a > b {
return a
}
return b
}
func minOperations(nums []int, x int) int {
totalSum := 0
for _, num := range nums {
totalSum += num
}
target := totalSum - x
sums := make(map[int]int)
sums[0] = -1
maxLenSubArray := -1
currLenSubArray := 0
prefixSum :=... | 39,152 |
https://github.com/bitterfox/hbase/blob/master/hbase-common/src/main/java/org/apache/hadoop/hbase/util/Bytes.java | Github Open Source | Open Source | Apache-2.0 | null | hbase | bitterfox | Java | Code | 11,720 | 25,092 | /**
* 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... | 32,444 |
https://github.com/icepoke/swooleyaf/blob/master/libs_frame/AlibabaCloud/Scsp/GetCMSIdByForeignId.php | Github Open Source | Open Source | BSD-3-Clause | 2,022 | swooleyaf | icepoke | PHP | Code | 43 | 120 | <?php
namespace AlibabaCloud\Scsp;
/**
* @method string getNick()
* @method $this withNick($value)
* @method string getSourceId()
* @method $this withSourceId($value)
* @method string getForeignId()
* @method $this withForeignId($value)
* @method string getInstanceId()
* @method $this withInstanceId($value)
... | 5,432 |
https://github.com/yoiwa-personal/suid_sudo/blob/master/Makefile.clean | Github Open Source | Open Source | Apache-2.0 | 2,021 | suid_sudo | yoiwa-personal | Makefile | Code | 28 | 119 | #!/usr/bin/make
clean: clean-python clean-ruby clean-perl
clean-python:
rm -rf suid_sudo.egg-info build dist
clean-ruby:
rm -f suid_sudo-*.gem
clean-perl:
-test -f Makefile && $(MAKE) clean
rm -f MYMETA.json MYMETA.yml Makefile.old SUID_SUDO-*.tar.gz
| 50,720 |
https://github.com/malaymehta/student-management-system/blob/master/app/Http/Controllers/AcademicYearController.php | Github Open Source | Open Source | MIT | 2,017 | student-management-system | malaymehta | PHP | Code | 408 | 1,464 | <?php
namespace App\Http\Controllers;
use App\Repositories\AcademicYearRepository;
use App\Http\Requests\AcademicYearPost;
use Yajra\Datatables\Datatables;
use Exception;
use Carbon\Carbon;
/**
* Class AcademicYearController
*
* @package App\Http\Controllers
*/
class AcademicYearController extends Controller
{
... | 55,054 |
https://github.com/axxander/FlashcardAPI/blob/master/api/api.py | Github Open Source | Open Source | MIT | null | FlashcardAPI | axxander | Python | Code | 30 | 131 | from fastapi import APIRouter
from app.api.routes import admin, authentication, flashcard, register, user
api_router = APIRouter()
api_router.include_router(
admin.router
)
api_router.include_router(
authentication.router,
)
api_router.include_router(
flashcard.router,
)
api_router.include_router(
registe... | 25,332 |
https://github.com/natenka/natenka.github.io/blob/master/code_examples/typer/example_11_click_context.py | Github Open Source | Open Source | MIT | 2,022 | natenka.github.io | natenka | Python | Code | 84 | 352 | import click
@click.group()
@click.option("--db-filename", "-n", help="db filename")
@click.pass_context
def dhcp_db(context, db_filename):
context.obj = {"db_filename": db_filename}
@dhcp_db.command()
@click.option("--db-schema", "-s", help="db schema filename")
@click.pass_context
def create(context, db_schem... | 27,168 |
https://github.com/racker/omnibus/blob/master/source/otp_src_R14B02/lib/dialyzer/vsn.mk | Github Open Source | Open Source | Apache-2.0 | 2,016 | omnibus | racker | Makefile | Code | 3 | 16 | DIALYZER_VSN = 2.4.2
| 34,702 |
https://github.com/guerbai/leetcode-with-java/blob/master/src/main/java/guerbai/f201_250/MinSubArrayLen.java | Github Open Source | Open Source | MIT | 2,019 | leetcode-with-java | guerbai | Java | Code | 89 | 225 | package guerbai.f201_250;
public class MinSubArrayLen {
private static int minSubArrayLen(int s, int[] nums) {
int l = 0;
int sum = 0;
int res = 0;
for (int i = 0; i<nums.length; i++) {
sum += nums[i];
while (sum >= s) {
if (res == 0) {
... | 37,402 |
https://github.com/danwalmsley/bitthunder/blob/master/bsp/arm/lpcexpresso/1769/Makefile | Github Open Source | Open Source | BSD-2-Clause-FreeBSD | 2,021 | bitthunder | danwalmsley | Makefile | Code | 100 | 490 | #
# Top-Level Makefile for BitThunder on the lpcxpresso 1769 platform.
#
BASE=$(shell pwd)/../../../../
BUILD_BASE=$(BASE)
MODULE_NAME="lpc-bsp"
TARGETS=kernel.img
TARGET_DEPS=kernel.elf
BUILD_DIR=$(shell pwd)/build/
TOOLCHAIN= /opt/codesourcery/bin/arm-none-eabi-
include $(BASE).dbuild/dbuild.mk
test:
@echo $... | 36,106 |
https://github.com/lenase/florensia-base/blob/master/adminteamspeak.php | Github Open Source | Open Source | Apache-2.0 | 2,016 | florensia-base | lenase | PHP | Code | 410 | 2,102 | <?PHP
require_once("./init.php");
if (!defined('is_florensia')) die('Hacking attempt');
if (!$flouser->get_permission("access_admincp") OR !$flouser->get_permission("teamspeak")) { $florensia->output_page($flouser->noaccess()); }
if ($flouser->get_permission("teamspeak", "moderate")) {
if (isset($_POST['do_remove']... | 4,666 |
https://github.com/ahnan4arch/QtMvvm/blob/master/tests/auto/mvvmcore/qsettingsaccessor/qsettingsaccessor.pro | Github Open Source | Open Source | BSD-3-Clause | 2,019 | QtMvvm | ahnan4arch | null | Spoken | 28 | 94 | TEMPLATE = app
QT += testlib mvvmcore
QT -= gui
CONFIG += console
CONFIG -= app_bundle
TARGET = tst_qsettingsaccessor
HEADERS += \
../../../shared/tst_isettingsaccessor.h
SOURCES += \
tst_qsettingsaccessor.cpp
include(../../testrun.pri)
| 28,182 |
https://github.com/johan-hanson/etheder/blob/master/etheder-model/src/main/java/se/webinfostudio/game/etheder/entity/EntityDataReference.java | Github Open Source | Open Source | MIT | null | etheder | johan-hanson | Java | Code | 19 | 54 | package se.webinfostudio.game.etheder.entity;
/**
*
* @author Johan Hanson
*
*/
public interface EntityDataReference extends EntityBasicReference {
Long getId();
}
| 33,092 |
https://github.com/stephanme/hana-liquibase/blob/master/src/main/java/liquibase/ext/hana/datatype/BlobTypeHana.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | hana-liquibase | stephanme | Java | Code | 72 | 280 | package liquibase.ext.hana.datatype;
import liquibase.database.Database;
import liquibase.datatype.DataTypeInfo;
import liquibase.datatype.DatabaseDataType;
import liquibase.datatype.LiquibaseDataType;
import liquibase.datatype.core.BlobType;
import liquibase.ext.hana.HanaDatabase;
@DataTypeInfo(name = "blob", aliase... | 24,923 |
https://github.com/7Bpencil/mygit/blob/master/mygit/main.py | Github Open Source | Open Source | WTFPL | null | mygit | 7Bpencil | Python | Code | 318 | 1,016 | import argparse
import logging
import sys
from colorama import init as colorama_init, deinit as colorama_deinit, Fore
from mygit.backend import is_init, get_compressed_file_content, get_last_commit_index_content
from mygit.commands.branch import Branch
from mygit.commands.checkout import Checkout
from mygit.commands.c... | 44,944 |
https://github.com/coyotevz/anviz-sync/blob/master/.gitignore | Github Open Source | Open Source | BSD-3-Clause | 2,022 | anviz-sync | coyotevz | Ignore List | Code | 15 | 66 | # Byte-compiled
__pycache__/
*.py[cod]
*.swp
*.mo
*.db
*.sqlite3
*.ini
build/
dist/
eggs/
*.egg-info/
*.egg
docs/_build/
| 7,024 |
https://github.com/steveclifton/goodcoffee/blob/master/database/migrations/2020_02_06_072810_add_cafes.php | Github Open Source | Open Source | MIT | null | goodcoffee | steveclifton | PHP | Code | 79 | 548 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddCafes extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('zomato_cafes', function (... | 14,631 |
https://github.com/ClemsonRSRG/RESOLVE/blob/master/src/java/edu/clemson/rsrg/prover/absyn/expressions/PLambda.java | Github Open Source | Open Source | BSD-3-Clause | 2,023 | RESOLVE | ClemsonRSRG | Java | Code | 1,408 | 3,899 | /*
* PLambda.java
* ---------------------------------
* Copyright (c) 2023
* RESOLVE Software Research Group
* School of Computing
* Clemson University
* All rights reserved.
* ---------------------------------
* This file is subject to the terms and conditions defined in
* file 'LICENSE.txt', which is part o... | 53,050 |
https://github.com/lorransr/taxonomy_method_web/blob/master/ui/lib/model/taxonomy_output.dart | Github Open Source | Open Source | MIT | 2,021 | taxonomy_method_web | lorransr | Dart | Code | 121 | 494 | import 'package:taxonomy_method/model/shortest_distance.dart';
class TaxonomyOutput {
final Map<String, dynamic> normalizedMatrix;
final Map<String, dynamic> rawMatrix;
final ShortestDistance shortestDistance;
final List<double> acceptedRange;
final Map<String, dynamic> normalizedMatrixFiltered;
final Map<... | 56,254 |
https://github.com/navikom/dashboard/blob/master/src/views/Campaigns/store/CampaignViewStore.ts | Github Open Source | Open Source | MIT | null | dashboard | navikom | TypeScript | Code | 270 | 1,115 | import {action, computed, observable} from "mobx";
// interfaces
import {IAudienceStep} from "interfaces/IAudienceStep";
import {ICampaign} from "interfaces/ICampaign";
import {IWhenToSendStep} from "interfaces/IWhenToSendStep";
import {ITestStep} from "interfaces/ITestStep";
import {IConversionStep} from "interfaces/... | 55,781 |
https://github.com/meteorcyclops/Prepare/blob/master/src/components/BinaryCheckbox.js | Github Open Source | Open Source | MIT | 2,019 | Prepare | meteorcyclops | JavaScript | Code | 100 | 366 | import React from 'react'
const BinaryCheckbox = (props) => {
const value = props.value
const onClick = props.onClick
const option = props.data
const className = props.className ? props.className : 'Keyinfo_position'
return (
<div className={className} style={{display: 'flex', paddingLeft... | 29,029 |
https://github.com/mcr/uoscore-uedhoc/blob/master/modules/oscore/src/security_context.c | Github Open Source | Open Source | ECL-2.0, Apache-2.0, MIT-0, MIT | null | uoscore-uedhoc | mcr | C | Code | 882 | 3,278 | /*
Copyright (c) 2021 Fraunhofer AISEC. See the COPYRIGHT
file at the top-level directory of this distribution.
Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
<LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
... | 31,032 |
https://github.com/dscao/small-package/blob/master/my-autocore/Makefile | Github Open Source | Open Source | Apache-2.0 | null | small-package | dscao | Makefile | Code | 161 | 1,019 | #
# Copyright (C) 2010-2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=my-autocore
PKG_VERSION:=1
PKG_RELEASE:=29
include $(INCLUDE_DIR)/package.mk
define Package/my-autocore-arm
SECTION:=libs... | 35,244 |
https://github.com/Noymiran/AnomaliesProject/blob/master/app/models/Model.scala | Github Open Source | Open Source | Apache-2.0 | null | AnomaliesProject | Noymiran | Scala | Code | 385 | 1,238 | package models
import java.util.UUID
import org.joda.time.format.ISODateTimeFormat
import org.joda.time.{ DateTime, DateTimeZone }
import play.api.libs.json._
import scala.collection.mutable
case class Dimension(name: String, value: String)
object Dimension {
implicit val DimensionFormat = Json.format[Dimension]... | 26,831 |
https://github.com/Murtaza0xFF/GIFs-for-Soccer/blob/master/app/src/main/java/com/theeaglehaslanded/goalazo/utils/NetworkState.java | Github Open Source | Open Source | Apache-2.0 | null | GIFs-for-Soccer | Murtaza0xFF | Java | Code | 48 | 211 | package com.theeaglehaslanded.goalazo.utils;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.widget.Toast;
import com.theeaglehaslanded.goalazo.R;
public class NetworkState {
public static boolean isNetworkAvailable(Context context) {
... | 33,842 |
https://github.com/Merovius/nbd/blob/master/cmd/nbd/serve.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | nbd | Merovius | Go | Code | 286 | 744 | // +build linux
// Copyright 2018 Axel Wagner
//
// 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... | 6,730 |
https://github.com/stanislawbartkowski/MockRestService/blob/master/Dockerfile | Github Open Source | Open Source | Apache-2.0 | 2,022 | MockRestService | stanislawbartkowski | Dockerfile | Code | 26 | 146 | FROM openjdk:8-jdk-alpine
MAINTAINER "sb" <stanislawbartkowski@gmail.com>
ARG RESTPORT
ARG SECURE
COPY target/MockRestService-1.0-SNAPSHOT-jar-with-dependencies.jar .
EXPOSE ${RESTPORT}
ENV RESTPORT=${RESTPORT}
ENV SECURE=${SECURE}
ENTRYPOINT java -cp MockRestService-1.0-SNAPSHOT-jar-with-dependencies.jar com.org.mock... | 37,644 |
https://github.com/DarkKnightComes/Charm/blob/master/src/main/java/svenhjol/meson/Meson.java | Github Open Source | Open Source | MIT | null | Charm | DarkKnightComes | Java | Code | 120 | 420 | package svenhjol.meson;
import net.minecraftforge.common.MinecraftForge;
import org.apache.logging.log4j.LogManager;
import svenhjol.meson.asm.MesonLoadingPlugin;
import svenhjol.meson.registry.ProxyRegistry;
import svenhjol.meson.registry.VillagerRegistry;
public class Meson
{
public static final String MOD_ID =... | 46,473 |
https://github.com/Grosskopf/openoffice/blob/master/main/qadevOOo/java/OOoRunner/src/main/java/ifc/text/_XTextDocument.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | openoffice | Grosskopf | Java | Code | 258 | 564 | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 19,745 |
https://github.com/Cli-published/graphpinator/blob/master/src/Directive/TypeSystemDirective.php | Github Open Source | Open Source | MIT | 2,021 | graphpinator | Cli-published | PHP | Code | 13 | 43 | <?php
declare(strict_types = 1);
namespace Graphpinator\Directive;
abstract class TypeSystemDirective extends \Graphpinator\Directive\Directive
{
}
| 32,403 |
https://github.com/EvanKrall/marathon/blob/master/src/main/resources/assets/js/models/AppCollection.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | marathon | EvanKrall | JavaScript | Code | 33 | 129 | define([
"models/App",
"models/SortableCollection"
], function(App, SortableCollection) {
"use strict";
return SortableCollection.extend({
model: App,
initialize: function(models, options) {
this.options = options;
this.setComparator("-id");
this.sort();
},
parse: function(... | 22,391 |
https://github.com/shellrean/extraordinary-self-consumer/blob/master/src/views/peserta/Form.vue | Github Open Source | Open Source | MIT | null | extraordinary-self-consumer | shellrean | Vue | Code | 186 | 934 | <template>
<div>
<div class="form-group">
<label>Sesi</label>
<div class="input-group">
<div class="input-group-prepend" v-show="peserta.sesi > 1">
<button class="btn btn-outline-secondary" type="button" @click="peserta.sesi -= 1"><b>-</b></button>
</div>
<input type="number" min="1" class=... | 47,035 |
https://github.com/jingcao80/Elastos/blob/master/Sources/Elastos/Frameworks/Droid/Base/Services/Server/src/elastos/droid/server/display/VirtualDisplayAdapter.cpp | Github Open Source | Open Source | Apache-2.0 | 2,021 | Elastos | jingcao80 | C++ | Code | 1,260 | 4,826 | //=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | 45,409 |
https://github.com/sgrowe/ga/blob/master/@websites/jsd/src/pages/weeks/7.tsx | Github Open Source | Open Source | MIT | 2,022 | ga | sgrowe | TypeScript | Code | 32 | 79 | import Week from '../../components/week';
const weekConfig = {
firstLessonTitle: 'Intro to Firebase & CRUD',
secondLessonTitle: 'Firebase lab 🧪',
weekNumber: 7,
};
const Week7 = () => <Week {...weekConfig} />;
export default Week7;
| 26,347 |
https://github.com/mauriballes/notificationsexample/blob/master/app/src/main/java/bo/com/bpdarlyn/notificationmessages/BroadcastUtil.java | Github Open Source | Open Source | MIT | null | notificationsexample | mauriballes | Java | Code | 62 | 189 | package bo.com.bpdarlyn.notificationmessages;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
public class BroadcastUtil {
public static final String MESSAGE = "MESSAGE";
public static final String _TITLE = "_TITLE";
public static final String _BODY = "_BODY";
... | 23,337 |
https://github.com/ifs-and-whiles/jiml/blob/master/Jiml/Jiml/Expressions/Composing/Iterators/FilterIterator.cs | Github Open Source | Open Source | MIT | 2,021 | jiml | ifs-and-whiles | C# | Code | 174 | 607 | using System;
using System.Collections.Generic;
using Jiml.Expressions.Composing.Results;
using Jiml.Expressions.Conditions;
using Jiml.Expressions.Extracting;
using Newtonsoft.Json.Linq;
namespace Jiml.Expressions.Composing.Iterators
{
public class FilterIterator : IComposer
{
private readonly ICompo... | 50,013 |
https://github.com/davideby/gsea-desktop/blob/master/src/main/java/edu/mit/broad/xbench/core/WrappedComponent.java | Github Open Source | Open Source | MIT | 2,022 | gsea-desktop | davideby | Java | Code | 105 | 225 | /*******************************************************************************
* Copyright (c) 2003-2016 Broad Institute, Inc., Massachusetts Institute of Technology, and Regents of the University of California. All rights reserved.
*******************************************************************************/
p... | 11,729 |
https://github.com/ToviStark/hackaru-desktop/blob/master/src/main/index.js | Github Open Source | Open Source | MIT | 2,019 | hackaru-desktop | ToviStark | JavaScript | Code | 70 | 225 | import './envs';
import '../renderer/store';
import './windows';
import './trackers';
import './oauth-window';
import './power-monitor';
import './persistor';
import './menubar';
/**
* Auto Updater
*
* Uncomment the following code below and install `electron-updater` to
* support auto updating. Code Signing with a... | 5,914 |
https://github.com/willin/vchart/blob/master/src/vchart.vue | Github Open Source | Open Source | MIT | 2,021 | vchart | willin | Vue | Code | 301 | 931 | <<template>
<div v-bind:class="[{chart:true, ratio: this.ratio, empty: this.noData}]" v-text="this.message"></div>
</template>
<script>
import Chartist from 'chartist';
export default {
props: {
ratio: { type: String },
data: { type: Object },
options: { type: Object },
type: {
type: String,... | 28,586 |
https://github.com/crossroad0201/ddd-on-scala/blob/master/modules/adapter/infrastructure/src/main/scala/crossroad0201/dddonscala/infrastructure/user/package.scala | Github Open Source | Open Source | MIT | 2,020 | ddd-on-scala | crossroad0201 | Scala | Code | 30 | 96 | package crossroad0201.dddonscala.infrastructure
import crossroad0201.dddonscala.domain.user.{UserId, UserName}
package object user {
implicit val toUserId: String => UserId = (v) => UserId(v)
implicit val toUserName: String => UserName = (v) => UserName(v)
}
| 35,842 |
https://github.com/PopWallet/browser-extension/blob/master/src/poplocker/views/authorize/sign_form/sign_form.jsx | Github Open Source | Open Source | MIT | 2,019 | browser-extension | PopWallet | null | Spoken | 246 | 953 | import React from 'react'
import { connect } from 'react-redux'
import { toHex } from 'lib/helpers'
import { signTx, cancelTx } from 'lib/rpc/transaction'
import { Button, PassField } from '@poplocker/react-ui'
import { getLatestNonce } from 'lib/rpc/eth_node'
impor... | 36,928 |
https://github.com/ttrues/panther-analysis/blob/master/onelogin_rules/onelogin_password_changed.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | panther-analysis | ttrues | Python | Code | 49 | 115 | def rule(event):
# check that this is a password change event;
# event id 11 is actor_user changed password for user
# Normally, admin's may change a user's password (event id 211)
return event.get('event_type_id') == 11
def title(event):
return 'A user [{}] password changed by user [{}]'.format(... | 6,714 |
https://github.com/Gleicyn/curso/blob/master/src/App.jsx | Github Open Source | Open Source | MIT | null | curso | Gleicyn | null | Spoken | 183 | 903 | import React from 'react'
import Primeiro from './components/basicos/Primeiro'
import ComParametro from './components/basicos/ComParametro'
import Fragmento from './components/basicos/Fragmento'
import NumeroAleatorio from "./components/basicos/NumeroAleatorio"
import Card from './components/layout/Card'
import './App... | 21,652 |
https://github.com/mohitjangra6017/tx_data/blob/master/client/component/performelement_linked_review/src/components/LinkedReviewAdminView.vue | Github Open Source | Open Source | PostgreSQL | null | tx_data | mohitjangra6017 | Vue | Code | 290 | 1,062 | <!--
This file is part of Totara Enterprise Extensions.
Copyright (C) 2021 onwards Totara Learning Solutions LTD
Totara Enterprise Extensions is provided only to Totara
Learning Solutions LTD's customers and partners, pursuant to
the terms and conditions of a separate agreement with Totara
Learning Soluti... | 17,178 |
https://github.com/gabrielfougeron/SuiteSparse/blob/master/GraphBLAS/Source/GB_deserialize.c | Github Open Source | Open Source | Apache-2.0 | 2,018 | SuiteSparse | gabrielfougeron | C | Code | 765 | 2,564 | //------------------------------------------------------------------------------
// GB_deserialize: decompress and deserialize a blob into a GrB_Matrix
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved.
// SPD... | 33,607 |
https://github.com/autorun71/portfolio/blob/master/PHP/Laravel/Api для соц сети (от 02.2020)/social_backend (ver. 2)/app/Custom/Messages.php | Github Open Source | Open Source | MIT | 2,020 | portfolio | autorun71 | PHP | Code | 14 | 39 | <?php
namespace App\Custom;
class Messages
{
public function test() {
return '1';
}
}
| 3,930 |
https://github.com/hex-for-hecate/nexus-gsheets/blob/master/constructNexusPeers.js | Github Open Source | Open Source | BSD-3-Clause | 2,020 | nexus-gsheets | hex-for-hecate | JavaScript | Code | 12 | 29 | // TODO: send a POST to the locally running nexus
console.log("Running constructNexusPeers.js"); | 19,691 |
https://github.com/SwerveRobotics/tools/blob/master/Tools.sln | Github Open Source | Open Source | MIT, Apache-2.0 | 2,016 | tools | SwerveRobotics | null | Spoken | 595 | 5,833 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.23107.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SwerveToolsTray", "SwerveToolsTray\SwerveToolsTray.csproj", "{242946E0-0909-4A66-A585-AAB920333406}"
Project... | 49,510 |
https://github.com/Lexteam/lex-game/blob/master/Game/src/main/java/xyz/lexteam/ygd/game/impl/service/event/GameEvents.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | lex-game | Lexteam | Java | Code | 168 | 378 | /*
* Copyright 2015-2016 Lexteam
*
* 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... | 783 |
https://github.com/08162021-dotnet-uta/CoryTinsley_Project1/blob/master/project_1/Project0.StoreApplication.Domain/Models/ComputerStore.cs | Github Open Source | Open Source | MIT | 2,021 | CoryTinsley_Project1 | 08162021-dotnet-uta | C# | Code | 24 | 73 | using Project0.StoreApplication.Domain.Abstracts;
namespace Project0.StoreApplication.Domain.Models
{
public class ComputerStore : Store_D
{
public ComputerStore()
{
Name = "Computer Store";
StoreID = 1;
}
}
} | 33,694 |
https://github.com/godcong/role-manager-server/blob/master/service/migrate_test.go | Github Open Source | Open Source | MIT | null | role-manager-server | godcong | Go | Code | 17 | 68 | package service
import (
"github.com/godcong/role-manager-server/model"
"testing"
)
// TestMigrate ...
func TestMigrate(t *testing.T) {
Migrate()
model.NewRoleUser()
}
| 54,838 |
https://github.com/nitin011/ecart/blob/master/app/Interfaces/Customer/ProductVariantInterface.php | Github Open Source | Open Source | MIT | null | ecart | nitin011 | PHP | Code | 13 | 51 | <?php
namespace App\Interfaces\Customer;
interface ProductVariantInterface
{
public function getById($variant_id);
public function getByIdWithProduct($variant_id);
}
| 22,213 |
https://github.com/fhornain/patternfly-react-seed_1/blob/master/node_modules/@patternfly/react-charts/dist/js/components/ChartTheme/styles/scatter-styles.js | Github Open Source | Open Source | MIT | null | patternfly-react-seed_1 | fhornain | JavaScript | Code | 56 | 234 | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ScatterStyles = void 0;
var _chart_scatter_active_size = _interopRequireDefault(require("@patternfly/react-tokens/dist/js/chart_scatter_active_size"));
var _chart_scatter_size = _interopRequireDefault(require("@patternfly/react-to... | 39,246 |
https://github.com/canokeys/canokey-crypto/blob/master/mbedtls-ed25519.patch | Github Open Source | Open Source | Apache-2.0 | 2,023 | canokey-crypto | canokeys | null | Spoken | 5,868 | 25,255 | From a6752846065e061b5fe9ea9ecf8b73729dc73ae1 Mon Sep 17 00:00:00 2001
From: Aurelien Jarno <aurelien@aurel32.net>
Date: Mon, 20 Apr 2020 00:48:00 +0200
Subject: [PATCH 1/6] Add edwards25519 curve as defined in RFC7748
Largely inspired by the curve25519 definition.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>... | 15,858 |
https://github.com/PedalPi/Application/blob/master/application/application.py | Github Open Source | Open Source | Apache-2.0 | 2,018 | Application | PedalPi | Python | Code | 669 | 1,967 | # Copyright 2017 SrMouraSilva
#
# 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,... | 12,999 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.