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/zsol/android_frameworks_base/blob/master/cmds/runtime/ServiceManager.cpp | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unicode | 2,010 | android_frameworks_base | zsol | C++ | Code | 161 | 610 | //
// Copyright 2005 The Android Open Source Project
//
#define LOG_TAG "ServiceManager"
#include "ServiceManager.h"
#include "SignalHandler.h"
#include <utils/Debug.h>
#include <utils/Log.h>
#include <utils/Parcel.h>
#include <utils/String8.h>
#include <utils/ProcessState.h>
#include <private/utils/Static.h>
#inc... | 20,816 |
https://github.com/terra-project/mantle-db/blob/master/lcd/client/governance/get_gov_proposals_proposal_id_deposits_depositor_parameters.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | mantle-db | terra-project | Go | Code | 561 | 1,816 | // Code generated by go-swagger; DO NOT EDIT.
package governance
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"net/http"
"time"
"github.com/go-openapi/errors"
"github.com/go-openapi/runtime"
cr "github.c... | 41,714 |
https://github.com/andnux/ripple-lib-java/blob/master/ripple-core/src/main/java/com/ripple/core/fields/Type.java | Github Open Source | Open Source | 0BSD | 2,018 | ripple-lib-java | andnux | Java | Code | 90 | 329 | /* DO NOT EDIT, AUTO GENERATED */
package com.ripple.core.fields;
import java.util.Map;
import java.util.TreeMap;
public enum Type {
Unknown(-2),
Done(-1),
NotPresent(0),
UInt16(1),
UInt32(2),
UInt64(3),
Hash128(4),
Hash256(5),
Amount(6),
Blob(7),
AccountID(8),
STObject... | 53,940 |
https://github.com/LogoFX/aurelia-mdc-bridge/blob/master/index.scss | Github Open Source | Open Source | MIT | 2,019 | aurelia-mdc-bridge | LogoFX | SCSS | Code | 46 | 167 | .my-loader-container {
position: absolute;
top: 50%;
margin-top: -48px;
left: 0;
width: 100%;
}
.my-loader-content {
background-image: url(icons/android-icon-144x144.png);
background-size: cover;
width: 96px;
height: 96px;
margin-left: auto;
margin-right: auto;
opacity: 0;
transition: opacity... | 25,638 |
https://github.com/bfortunato/applica-framework/blob/master/framework-widgets/src/main/java/applica/framework/widgets/operations/BaseDeleteOperation.java | Github Open Source | Open Source | CC-BY-4.0 | 2,023 | applica-framework | bfortunato | Java | Code | 264 | 933 | package applica.framework.widgets.operations;
import applica.framework.*;
import applica.framework.fileserver.FileServer;
import applica.framework.library.responses.Response;
import applica.framework.library.utils.ProgramException;
import applica.framework.library.utils.SystemOptionsUtils;
import applica.framework.sec... | 44,480 |
https://github.com/gbaudhuin/whatsbehind/blob/master/data/drupal/plugins/menu_token_7.x/1.0-beta5.diff | Github Open Source | Open Source | Apache-2.0 | 2,019 | whatsbehind | gbaudhuin | null | Spoken | 9 | 88 | M menu_token.info 5eaf43fa6c1b9300addf741520f391cd
M menu_token.install d48ffe0aa08f886bb0e5ceebc39ce017
M menu_token.module f25a3a66beec0d734c20ebeb1a6b634c
| 33,434 |
https://github.com/burstinair/burstweb/blob/master/src/main/java/burst/web/IAction.java | Github Open Source | Open Source | Apache-2.0 | 2,013 | burstweb | burstinair | Java | Code | 24 | 65 | package burst.web;
/**
* @author Burst
* 13-12-4 上午12:00
*/
public interface IAction<REQUEST extends IRequest> {
IResponse execute(REQUEST request, IContext context) throws Throwable;
}
| 41,746 |
https://github.com/FuruyamaTakeshi/DLNA/blob/master/clinkc/lib/ios/xcode/wrapper/objc/CyberLink/CGUpnpAction.h | Github Open Source | Open Source | MIT | 2,018 | DLNA | FuruyamaTakeshi | Objective-C | Code | 254 | 530 | //
// CGUpnpAction.h
// CyberLink for C
//
// Created by Satoshi Konno on 08/05/12.
// Copyright 2008 Satoshi Konno. All rights reserved.
//
#import <Foundation/NSString.h>
#import <Foundation/NSDictionary.h>
#if !defined(_CG_UPNP_CACTION_H_)
typedef void CgUpnpAction;
#endif
/**
* The CGUpnpAction class is a w... | 24,974 |
https://github.com/Ruiii-w/Multi-Cycle-Processor/blob/master/EX3/EX3.srcs/sources_1/new/EXT_4_NPC.v | Github Open Source | Open Source | MIT | 2,021 | Multi-Cycle-Processor | Ruiii-w | Verilog | Code | 96 | 290 | `timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 2020/06/22 13:47:35
// Design Name:
// Module Name: EXT_4_NPC
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Rev... | 17,567 |
https://github.com/IceDragon200/edst/blob/master/spec/spec_helper.rb | Github Open Source | Open Source | Apache-2.0 | 2,020 | edst | IceDragon200 | Ruby | Code | 16 | 69 | class NullOut
def self.puts(*args, &block)
#
end
end
def fixture_pathname(name)
File.expand_path(File.join('../sample', name), File.dirname(__FILE__))
end
require 'edst'
| 12,303 |
https://github.com/dibadgo/hustmanCheckDemo/blob/master/HuntsmanCheck/BusinessLayer/DataBase/CoreDataProtocol.swift | Github Open Source | Open Source | Apache-2.0 | null | hustmanCheckDemo | dibadgo | Swift | Code | 36 | 88 | //
// CoreDataProtocol.swift
// HuntsmanCheck
//
// Created by Арабаджиян Артем on 28/09/2019.
// Copyright © 2019 DigitalCustoms. All rights reserved.
//
import Foundation
import CoreData
protocol CoreDataProtocol {
var backgroundContext: NSManagedObjectContext { get }
}
| 37,371 |
https://github.com/chloechsu/SeALS/blob/master/src/ctdlab/rofpi1.m | Github Open Source | Open Source | MIT | 2,018 | SeALS | chloechsu | MATLAB | Code | 190 | 477 | function [T,err,alpha] = rofpi1(A,T,tol,maxit,vbs)
% Fixed point iteration for rank-1 update with provided initial guess.
% If any of the last three inputs are empty, default values are assigned.
%
% Input:
% A = tensor whose rank-1 approximation is sought
% T = initial guess for iteration
% tol = stopping tole... | 15,298 |
https://github.com/msdgwzhy6/componentrouter/blob/master/component_router_compile/src/main/java/com/wrbug/componentrouter/componentroutercompile/generator/MethodRouterGenerator.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | componentrouter | msdgwzhy6 | Java | Code | 506 | 2,363 | package com.wrbug.componentrouter.componentroutercompile.generator;
import com.squareup.javapoet.ArrayTypeName;
import com.squareup.javapoet.ClassName;
import com.squareup.javapoet.MethodSpec;
import com.squareup.javapoet.TypeName;
import com.squareup.javapoet.TypeSpec;
import com.wrbug.componentrouter.ComponentRouter... | 51,632 |
https://github.com/NightElfik/Malsys/blob/master/src/Malsys.Ast/Keyword.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,015 | Malsys | NightElfik | C# | Code | 70 | 464 |
namespace Malsys.Ast {
public enum Keyword {
[StringValue("?unknown?keyword?")]
Unknown,
[StringValue("abstract")]
Abstract,
[StringValue("all")]
All,
[StringValue("as")]
As,
[StringValue("component")]
Component,
[StringValue("configuration")]
Configuration,
[StringValue("connect")]
Con... | 4,548 |
https://github.com/AfifRudinAfandi/arsiteknologi/blob/master/resources/views/layouts/admin/sidebar.blade.php | Github Open Source | Open Source | MIT | null | arsiteknologi | AfifRudinAfandi | PHP | Code | 337 | 1,495 | <div class="main-sidebar">
<aside id="sidebar-wrapper">
<div class="sidebar-brand">
<a href="#">{{ config('app.title') }}</a>
</div>
<div class="sidebar-brand sidebar-brand-sm">
<a href="#">{{ config('app.title_slug') }}</a>
</div>
<ul class="sidebar-m... | 52,860 |
https://github.com/simonedaini/Mythic/blob/master/mythic-react-docker/mythic/src/cache.js | Github Open Source | Open Source | BSD-3-Clause | null | Mythic | simonedaini | JavaScript | Code | 60 | 235 | import { makeVar } from '@apollo/client';
export const meState = makeVar({});
export const menuOpen = makeVar(false);
if (localStorage.getItem("access_token") !== null){
meState({
loggedIn: true,
access_token: localStorage.getItem("access_token"),
refresh_token: localStorage.getItem("refre... | 41,738 |
https://github.com/iridium-browser/iridium-browser/blob/master/chrome/browser/resources/chromeos/edu_coexistence/edu_coexistence_template.js | Github Open Source | Open Source | BSD-3-Clause | 2,023 | iridium-browser | iridium-browser | JavaScript | Code | 90 | 268 | // Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {CrScrollableBehavior} from 'chrome://resources/ash/common/cr_scrollable_behavior.js';
import {html, Polymer} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundl... | 39,010 |
https://github.com/shyampurk/wordpress-site-viz/blob/master/wordpress/wp-content/plugins/siteviz-dashboard/uninstall.php | Github Open Source | Open Source | MIT | 2,016 | wordpress-site-viz | shyampurk | PHP | Code | 114 | 345 | <?php
//if uninstall not called from WordPress exit
if ( !defined( 'WP_UNINSTALL_PLUGIN' ) )
exit();
$option_name = 'plugin_option_name';
delete_option( $option_name );
// For site options in multisite
delete_site_option( $option_name );
//drop a custom db table
global $wpdb;
$table_name1='viz_sentiment';
$tabl... | 10,490 |
https://github.com/bit-creative/falcon/blob/master/server/graphql/resolvers/class.resolver.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | falcon | bit-creative | JavaScript | Code | 842 | 2,551 | import { TermSchedule, Subject } from "../../models/class.model";
import { CLERK, FACULTY, DEAN, ASSOCIATE_DEAN } from "../../models/user.model";
import { getDifference } from "../../utils/array";
import {
addSubjectToFaculties,
removeSubjectFromFaculties,
} from "../../utils/faculty_subject_link";
import {
... | 16,639 |
https://github.com/anisha-98/AMS_Codeigniter/blob/master/application/views/job_vac_view.php | Github Open Source | Open Source | MIT | null | AMS_Codeigniter | anisha-98 | PHP | Code | 328 | 1,860 | <html>
<head>
<title>table</title>
<title>Assignment2</title>
<meta charset=utf-8>
<meta name="viewport" content="width=device-width,initial-scale=1">
<!---Fontawesome--->
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" inte... | 14,731 |
https://github.com/ibm-js/dcalendar/blob/master/css/MonthColumnView_rtl.less | Github Open Source | Open Source | BSD-3-Clause | null | dcalendar | ibm-js | Less | Code | 100 | 644 | @import "ColumnViewCommon.less";
.d-calendar-month-column-view.d-rtl {
.d-calendar-grid-table td {
border-right: none;
border-left: @inner-border;
}
.d-calendar-grid-table td span {
padding-right: 3px;
padding-left: 0px;
}
.d-calendar-grid-table .d-calendar-hidden-events {
background:url(data:image... | 45,596 |
https://github.com/Tubbz-alt/NESi/blob/master/test_cases/unit_tests/huawei/test_huawei.py | Github Open Source | Open Source | BSD-2-Clause | 2,021 | NESi | Tubbz-alt | Python | Code | 637 | 2,701 | # This file is part of the NESi software.
#
# Copyright (c) 2020
# Original Software Design by Ilya Etingof <https://github.com/etingof>.
#
# Software adapted by inexio <https://github.com/inexio>.
# - Janis Groß <https://github.com/unkn0wn-user>
# - Philip Konrath <https://github.com/Connyko65>
# - Alexander Dincher <... | 25,168 |
https://github.com/EhWanu/studentclubs/blob/master/_sass/_09_elements.scss | Github Open Source | Open Source | MIT | 2,021 | studentclubs | EhWanu | SCSS | Code | 674 | 2,030 | @charset "utf-8";
/* TOC
- Get Started page (no markdown)
- Table of Contents (Index)
- Panel
- Shadows
- Alerts
- Breadcrumb
- Button
- Side-Nav
- Accordion
- Lazy Load XT
- Frontpage Widget
- Custom Table of Contents style
- Icons
- Contribution div
- Feedback div
- Accordion (FAQ page)
*/
/* Get Started page (no ... | 18,327 |
https://github.com/aleisalem/Maat/blob/master/mining/evolution.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | Maat | aleisalem | Python | Code | 4,841 | 14,920 | #!/sr/bin/python
from Maat.utils.graphics import *
from Maat.shared.constants import *
from Maat.conf.config import *
from Maat.utils.misc import *
from Maat.visualization.visualize_data import *
import glob, os, re, time
from numpy import mean, median, std
import matplotlib.pyplot as plt
from matplotlib.lines import... | 18,815 |
https://github.com/trambarhq/trambar/blob/master/client/src/dialogs/telephone-number-dialog-box.scss | Github Open Source | Open Source | MIT | 2,020 | trambar | trambarhq | SCSS | Code | 77 | 292 | @import '../colors';
.telephone-number-dialog-box {
display: flex;
flex-direction: column;
background-color: $dialog-box-background-color;
box-shadow: 2px 2px 2px $dialog-box-shadow-color;
color: $dialog-box-text-color;
margin: auto;
padding: 0.4em 0.5em 0.4em 0.5em;
.contents {
... | 4,734 |
https://github.com/Domingosws/Aprendendo.PYTHON.3/blob/master/exec.53.py | Github Open Source | Open Source | MIT | 2,022 | Aprendendo.PYTHON.3 | Domingosws | Python | Code | 92 | 250 | #Números primos
#Faça um programa que leia um número inteiro e diga se ele é ou não um número primo.
núm = int(input('\033[1;33mDigite um número: '))
tot = 0 #Pra saber o numero de divisives
for c in range(1, núm + 1):
if núm % c == 0:
print('\033[1;35m', end='') #Valores divisives
tot +... | 15,824 |
https://github.com/aavilad/Lider_Unilever/blob/master/core/models/type/huacho/lider/INFREPARTO.cs | Github Open Source | Open Source | MIT | null | Lider_Unilever | aavilad | C# | Code | 89 | 174 | // <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
using System;
namespace Lider.Huacho.Model.dbModel
{
public partial class INFREPARTO
{
public string InfReparto1 { get; set; }
public string Documento { get; set; }
public string TipoDoc { g... | 35,611 |
https://github.com/colinw7/C6502/blob/master/data/test_stx.asm | Github Open Source | Open Source | MIT | null | C6502 | colinw7 | Assembly | Code | 16 | 46 | LDX #$44
OUT X
STX $00
OUT X
LDX #$21
OUT X
LDX $00
OUT X
| 31,704 |
https://github.com/R0ckNRolla/furikuri/blob/master/furikuri/fuku_virtualization_imp.h | Github Open Source | Open Source | BSD-3-Clause | 2,018 | furikuri | R0ckNRolla | C++ | Code | 15 | 75 | #pragma once
class fuku_virtualization {
public:
virtual fuku_virtualization::~fuku_virtualization() {};
virtual std::vector<fuku_vm_instruction> fuku_virtualization::build_pcode(std::vector<fuku_instruction>& lines) {};
}; | 54,278 |
https://github.com/goldylucks/adamgoldman.me/blob/master/src/components/InputTrigger/InputTrigger.js | Github Open Source | Open Source | 2,021 | adamgoldman.me | goldylucks | JavaScript | Code | 297 | 947 | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import getCaretCoordinates from 'textarea-caret'
function getHookObject(type, element, startPoint) {
const caret = getCaretCoordinates(element, element.selectionEnd)
const result = {
hookType: type,
cursor: {
selectionStart:... | 20,019 | |
https://github.com/walmartlabs/cookie-cutter/blob/master/packages/gcp/src/GcsSink.ts | Github Open Source | Open Source | CC-BY-4.0, LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,023 | cookie-cutter | walmartlabs | TypeScript | Code | 179 | 544 | /*
Copyright (c) Walmart Inc.
This source code is licensed under the Apache 2.0 license found in the
LICENSE file in the root directory of this source tree.
*/
import {
IComponentContext,
IDisposable,
IOutputSink,
IOutputSinkGuarantees,
IRequireInitialization,
IStoredMessage,
Lifecycle,
... | 2,618 |
https://github.com/saini3080/test1/blob/master/app/Http/Controllers/admin/usersController.php | Github Open Source | Open Source | MIT | 2,018 | test1 | saini3080 | PHP | Code | 532 | 2,333 | <?php
namespace App\Http\Controllers\admin;
use DB;
use App\admin\Users;
use Auth;
use Session;
use Illuminate\Support\Facades\Input;
use Illuminate\Support\Facades\Validator;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class usersController extends Controller
{
public function __constru... | 10,498 |
https://github.com/knyazev741/extraton-extension/blob/master/src/components/IsItYourAddress.vue | Github Open Source | Open Source | Apache-2.0 | 2,021 | extraton-extension | knyazev741 | Vue | Code | 69 | 312 | <template>
<div class="isItYourAddress">
<v-card style="z-index:1">
<v-card-text class="text-center text-subtitle-2">
Is it your address?
</v-card-text>
<v-card-actions>
<v-btn href="https://docs.extraton.io/getting-started/contracts-support" target="_blank" color="primary" small... | 50,362 |
https://github.com/JayThirtySeven/untitled-side-scroller/blob/master/src/video_filters.c | Github Open Source | Open Source | MIT | null | untitled-side-scroller | JayThirtySeven | C | Code | 632 | 2,149 | #include "video_filters.h"
void video_filter(SDL_Surface *surface, uint32_t (*function)(uint32_t, SDL_PixelFormat*)){
SDL_LockSurface(surface);
uint32_t *pixels = (uint32_t*)surface->pixels;
for(int i = 0; i < surface->w * surface->h; i++){
pixels[i] = function(pixels[i], surface->format);
}
SDL_UnlockSurfac... | 39,400 |
https://github.com/floathub/device/blob/master/mega/mega.ino | Github Open Source | Open Source | MIT | 2,022 | device | floathub | null | Spoken | 7,670 | 27,087 | /*
FloatHub Arduino Code
(c) 2011-2021 Modiot Labs
(begun June 6, 2011)
December 2020
Major rework to do all the encryption at the ESP level so we have enough
resources on the mega to handle the new N2K processing. All AES moved to
the ESP8266 level.
March 2018
Rewrite of cellular system to use ... | 28,043 |
https://github.com/PeterWangIntel/crosswalk-webdriver-python/blob/master/misc/session.py | Github Open Source | Open Source | BSD-3-Clause | 2,015 | crosswalk-webdriver-python | PeterWangIntel | Python | Code | 313 | 1,050 | __all__ = ["Session"]
import time
from basic_types import WebPoint
from capabilities import Capabilities
from geoposition import Geoposition
from browser.status import *
from browser.xwalk import Xwalk
from base.log import VLOG
class FrameInfo(object):
def __init__(self, parent_frame_id, frame_id, xwalkdriver_fram... | 23,809 |
https://github.com/anomous/Mastering-Delphi-Programming-A-Complete-Reference-Guide/blob/master/Chapter08/Abbrevia/source/hpp/iOSSimulator/Release/AbDfBase.hpp | Github Open Source | Open Source | MIT | 2,019 | Mastering-Delphi-Programming-A-Complete-Reference-Guide | anomous | C++ | Code | 1,811 | 6,423 | // CodeGear C++Builder
// Copyright (c) 1995, 2016 by Embarcadero Technologies, Inc.
// All rights reserved
// (DO NOT EDIT: machine generated header) 'AbDfBase.pas' rev: 31.00 (iOSSIM)
#ifndef AbdfbaseHPP
#define AbdfbaseHPP
#pragma delphiheader begin
#pragma option push
#pragma option -w- // All warnings off... | 43,340 |
https://github.com/anuar12/deep_game_theory/blob/master/deepch/models.py | Github Open Source | Open Source | MIT | 2,022 | deep_game_theory | anuar12 | Python | Code | 75 | 295 | from __future__ import print_function, absolute_import
import torch.nn as nn
from deepch.layers import MixtureSoftmax
class DeepCH(nn.Module):
'''
DeepCH - haven't implemented the action response layer yet...
'''
def __init__(self, att_layers, feature_layers, units, reset_weights=True):
super... | 52,487 |
https://github.com/shanu9012/node-cron/blob/master/tests/crontime.test.js | Github Open Source | Open Source | MIT | null | node-cron | shanu9012 | JavaScript | Code | 1,622 | 4,751 | var cron = require('../lib/cron');
var moment = require('moment-timezone');
var sinon = require('sinon');
/* eslint-disable no-new */
describe('crontime', function() {
test('should test stars (* * * * * *)', function() {
expect(function() {
new cron.CronTime('* * * * * *');
}).not.toThrowError(Error);
});
... | 24,661 |
https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteInner.java | Github Open Source | Open Source | MIT, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-unknown-license-reference, LGPL-2.1-or-later, CC0-1.0, BSD-3-Clause, UPL-1.0, Apache-2.0, LicenseRef-scancode-public-domain, BSD-2-Clause, LicenseRef-scancode-generic-cla | 2,023 | azure-sdk-for-java | Azure | Java | Code | 1,026 | 2,707 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.network.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core... | 16,089 |
https://github.com/v5yingying/YRNetwork/blob/master/YRNetwork/Class/Src/Root/YRRootViewController.m | Github Open Source | Open Source | MIT | 2,017 | YRNetwork | v5yingying | Objective-C | Code | 238 | 992 | //
// YRRootViewController.m
// YRNetwork
//
// Created by cyy on 17/1/5.
// Copyright © 2017年 youruogege. All rights reserved.
//
#import "YRRootViewController.h"
#import <SDCycleScrollView.h>
#import "YRFocusTableViewCell.h"
#import "YRViewAPI.h"
#import "YYModel.h"
//#import "YRFocusModel.h"
#define SCREEN [UI... | 30,371 |
https://github.com/abhilashc708/java_work/blob/master/src/main/java/com/testcode/springbootrestapi/repository/ServicesRepository.java | Github Open Source | Open Source | MIT | 2,019 | java_work | abhilashc708 | Java | Code | 14 | 69 | package com.testcode.springbootrestapi.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.testcode.springbootrestapi.model.Services;
public interface ServicesRepository extends JpaRepository<Services, Long> {
}
| 16,489 |
https://github.com/NAXAM/gtmappauth-ios-binding/blob/master/appauth-tvos.sln | Github Open Source | Open Source | MIT | 2,017 | gtmappauth-ios-binding | NAXAM | null | Spoken | 277 | 2,703 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Naxam.AppAuth.tvOS", "Naxam.AppAuth.tvOS\Naxam.AppAuth.tvOS.csproj", "{E17E2786-135B-4E13-9F34-5EE3659598D7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Naxam.GTMSe... | 48,588 |
https://github.com/fernandofig/Projects/blob/master/viewengines/spark/trunk/src/Spark.sln | Github Open Source | Open Source | Apache-2.0 | 2,013 | Projects | fernandofig | null | Spoken | 118 | 898 |
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Castle.MonoRail.Views.Spark", "Castle.MonoRail.Views.Spark\Castle.MonoRail.Views.Spark.csproj", "{33D786A4-C95D-473E-B96F-06EC68527F66}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00... | 42,149 |
https://github.com/PhonologicalCorpusTools/CorpusTools/blob/master/corpustools/phonosearch/__init__.py | Github Open Source | Open Source | GPL-3.0-only | 2,022 | CorpusTools | PhonologicalCorpusTools | Python | Code | 4 | 13 |
from .phonosearch import phonological_search
| 39,701 |
https://github.com/bpranaw/ftc_app/blob/master/TeamCode/src/main/java/Encoder.java | Github Open Source | Open Source | MIT | 2,019 | ftc_app | bpranaw | Java | Code | 181 | 582 | import com.qualcomm.robotcore.hardware.DcMotor;
/*
Class: Encoder
Access: Public
Purpose: To measure the rotations performed by the motor and convert them into useful units
Arguments: Instances of motors
Outputs: None
*/
class Encoder {
private Motor motor = null;
private double inches... | 50,558 |
https://github.com/dww-circle/sw-d8/blob/master/web/2002-1/398/398_03_BuildingResistance.php | Github Open Source | Open Source | MIT | null | sw-d8 | dww-circle | PHP | Code | 837 | 1,791 | <html>
<head>
<title>
Building the resistance
</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?php include "../../legacy-includes/Script.htmlf" ?>
</head>
<body bgcolor="#FFFFCC" text="000000" link="990000" vlink="660000" alink="003366" leftmargin="0" topmargin="0">
<table width="7... | 16,240 |
https://github.com/FireBlinkLTD/fbl-plugins-html-to-pdf/blob/master/src/handlers/index.ts | Github Open Source | Open Source | MIT | null | fbl-plugins-html-to-pdf | FireBlinkLTD | TypeScript | Code | 4 | 12 | export * from './PDFRenderActionHandler';
| 45,620 |
https://github.com/RecluseXU/learning_spider/blob/master/example/0_Basic_usage_of_the_library/python_threading/1_1_threading_rlock.py | Github Open Source | Open Source | MIT | 2,022 | learning_spider | RecluseXU | Python | Code | 80 | 456 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@Time : 2021-4-6
@Author : EvilRecluse
@Contact : https://github.com/RecluseXU
@Desc :
重入锁是一个可以被同一个线程多次获取的同步基元组件
在内部,它在基元锁的锁定/非锁定状态上附加了 "所属线程" 和 "递归等级" 的概念
在锁定状态下,某些线程拥有锁 ; 在非锁定状态下, 没有线程拥有它
常见场景是线程想要处理递归执行的需要请求锁的函数
'''
# here put the import lib
impo... | 28,503 |
https://github.com/Krixohub/IntoTheCode/blob/master/CSharp/IntoTheCode/Read/Words/Comment.cs | Github Open Source | Open Source | MIT | 2,020 | IntoTheCode | Krixohub | C# | Code | 168 | 518 | using System.Collections.Generic;
using IntoTheCode.Buffer;
using IntoTheCode.Basic;
using IntoTheCode.Message;
using System;
namespace IntoTheCode.Read.Words
{
internal class Comment
{
internal Comment()
{
CommentBuffer = new List<CommentElement>();
}
internal Te... | 982 |
https://github.com/SagarKisanAvhad/tivi-master/blob/master/app/src/main/java/app/tivi/showdetails/details/ShowDetailsEpoxyController.kt | Github Open Source | Open Source | Apache-2.0 | 2,018 | tivi-master | SagarKisanAvhad | Kotlin | Code | 327 | 1,259 | /*
* Copyright 2018 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 50,680 |
https://github.com/equinor/eit-magnetic-rig/blob/master/nodes/homing/homing.d.ts | Github Open Source | Open Source | MIT | null | eit-magnetic-rig | equinor | TypeScript | Code | 20 | 53 | /* tslint:disable */
/* eslint-disable */
/**
* @param {Uint8Array} msg
* @returns {number}
*/
export function crc16(msg: Uint8Array): number;
| 10,085 |
https://github.com/lliilan/TourStudyService/blob/master/WebContent/js/reload.js | Github Open Source | Open Source | MIT | 2,017 | TourStudyService | lliilan | JavaScript | Code | 13 | 50 | function myReload() {
document.getElementById("CreateCheckCode").src = document
.getElementById("CreateCheckCode").src
+ "?nocache=" + new Date().getTime();
} | 20,282 |
https://github.com/forecho/laravel-trace-log/blob/master/config/tracelog.php | Github Open Source | Open Source | MIT | 2,022 | laravel-trace-log | forecho | PHP | Code | 105 | 258 | <?php
return [
// no need to set
'id' => '',
'error_status_code_start' => 500,
'trace_id_header_key' => 'X-Trace-Id',
// do not record the value of the header specified key to the log
'filter_ignored_header_keys' => 'authorization',
// no logging
'filter_ignored_keys' => '', // eg: ... | 32,048 |
https://github.com/AnupSukumaran/LocationPicker/blob/master/LocationPicker/PlacePickerQ/Model/NearbyPlacesModel.swift | Github Open Source | Open Source | MIT | null | LocationPicker | AnupSukumaran | Swift | Code | 65 | 178 | //
// NearbyPlacesModel.swift
// MyPlacePicker
//
// Created by Qaptive Technologies on 30/05/19.
// Copyright © 2019 Qaptive Technologies. All rights reserved.
//
import UIKit
class NearbyPlacesModel: NSObject {
let geometry: JSON?
let name: String?
let vicinity:String?
let icon: String?
... | 10,258 |
https://github.com/mxjp/rvx/blob/master/src/render-patch-mirror.ts | Github Open Source | Open Source | MIT | 2,019 | rvx | mxjp | TypeScript | Code | 65 | 151 | import { RenderPatchCallback } from "./render-patch-callback";
export class RenderPatchMirror {
public readonly nodes: Node[] = [];
// TODO: In case of larger collections, cache node indexes for faster lookup when applying patches.
public patch(nodes: Node[], start?: Node, end?: Node) {
const startIndex = start ... | 21,227 |
https://github.com/mabrains/ALIGN-public/blob/master/PlaceRouteHierFlow/router/A_star.h | Github Open Source | Open Source | BSD-3-Clause | null | ALIGN-public | mabrains | C | Code | 388 | 1,627 | #ifndef A_STAR_H_
#define A_STAR_H_
#include <climits>
#include <vector>
#include <limits.h>
#include <string>
#include <set>
#include <assert.h>
#include "Grid.h"
#include "Rdatatype.h"
#include "../PnRDB/datatype.h"
#include <algorithm>
class A_star {
//friend class Grid;
//friend class GlobalRouter;
//frien... | 50,778 |
https://github.com/ekisstherain/jpa-querydsl-spring-boot-starter/blob/master/src/main/java/com/github/uinio/jpa/service/JpaServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | jpa-querydsl-spring-boot-starter | ekisstherain | Java | Code | 440 | 1,691 | package com.github.uinio.jpa.service;
import com.github.uinio.jpa.utils.EntityUtils;
import com.github.uinio.jpa.utils.KeyUtils;
import com.querydsl.jpa.impl.JPAQueryFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.doma... | 9,861 |
https://github.com/katreinhart/ControlledComponents/blob/master/ControlledComponents/ControlledComponents/Checkbox.swift | Github Open Source | Open Source | MIT | 2,019 | ControlledComponents | katreinhart | Swift | Code | 214 | 541 | //
// Checkbox.swift
// ControlledComponents
//
// Created by Devin Abbott on 8/27/18.
// Copyright © 2018 BitDisco, Inc. All rights reserved.
//
import AppKit
import Foundation
// MARK: - Checkbox
open class Checkbox: NSButton {
// MARK: Lifecycle
public convenience init(titleText: String = "") {
... | 16,143 |
https://github.com/bjh81782/academico/blob/master/app/Models/Campus.php | Github Open Source | Open Source | MIT | 2,021 | academico | bjh81782 | PHP | Code | 55 | 179 | <?php
namespace App\Models;
use Backpack\CRUD\app\Models\Traits\CrudTrait;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Spatie\Translatable\HasTranslations;
class Campus extends Model
{
use CrudTrait;
use SoftDeletes;
use HasTranslations;
public $translat... | 8,952 |
https://github.com/tm2/toc/blob/master/lib/toc.js | Github Open Source | Open Source | MIT | 2,014 | toc | tm2 | JavaScript | Code | 323 | 952 |
var dom = require('dom'),
range = require('range'),
slug = require('slug'),
tpl = require('./template');
module.exports = Toc;
var list = dom(tpl),
liTpl = list.html(),
listTag = list[0].tagName;
function Toc(context, selector) {
this.context = context || 'body';
this.selector = selector ||... | 34,450 |
https://github.com/kostadinlambov/Data-Structures-Java/blob/master/06. Data-Structures-Binary-Trees-Heaps-PriorityQueue-BST/06. Data-Structures-Binary-Trees-Heaps-BST/src/main/java/implementations/PriorityQueue.java | Github Open Source | Open Source | MIT | 2,020 | Data-Structures-Java | kostadinlambov | Java | Code | 228 | 736 | package implementations;
import interfaces.AbstractQueue;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class PriorityQueue<E extends Comparable<E>> implements AbstractQueue<E> {
private List<E> elements;
public PriorityQueue() {
this.elements = new ArrayLis... | 9,372 |
https://github.com/ljcollins25/Codeground/blob/master/src/UnoApp/UnoDecompile/Uno.UI/Windows.UI.Xaml/RoutedEvent.cs | Github Open Source | Open Source | MIT | null | Codeground | ljcollins25 | C# | Code | 111 | 335 | using System.Diagnostics;
using System.Runtime.CompilerServices;
using Uno.UI.Xaml;
namespace Windows.UI.Xaml;
[DebuggerDisplay("{Name}")]
public class RoutedEvent
{
internal string Name { get; }
internal RoutedEventFlag Flag { get; }
internal bool IsAlwaysBubbled { get; }
internal bool IsPointerEvent { get; }... | 43,378 |
https://github.com/Eric-Arellano/rust/blob/master/src/test/ui/parser/foreign-ty-syntactic-pass.rs | Github Open Source | Open Source | ECL-2.0, Apache-2.0, MIT-0, MIT | 2,022 | rust | Eric-Arellano | Rust | Code | 45 | 105 | // check-pass
fn main() {}
#[cfg(FALSE)]
extern "C" {
type A: Ord;
type A<'a> where 'a: 'static;
type A<T: Ord> where T: 'static;
type A = u8;
type A<'a: 'static, T: Ord + 'static>: Eq + PartialEq where T: 'static + Copy = Vec<u8>;
}
| 29,723 |
https://github.com/Avijit009/moby/blob/master/libnetwork/drivers/bridge/setup_firewalld.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | moby | Avijit009 | Go | Code | 79 | 330 | //go:build linux
// +build linux
package bridge
import "github.com/docker/docker/libnetwork/iptables"
func (n *bridgeNetwork) setupFirewalld(config *networkConfiguration, i *bridgeInterface) error {
d := n.driver
d.Lock()
driverConfig := d.config
d.Unlock()
// Sanity check.
if !driverConfig.EnableIPTables {
... | 39,848 |
https://github.com/realtwister/LearnedEvolution/blob/master/learnedevolution/targets/covariance/adaptive_covariance.py | Github Open Source | Open Source | MIT | null | LearnedEvolution | realtwister | Python | Code | 96 | 488 | import numpy as np;
from .covariance_target import CovarianceTarget;
class AdaptiveCovariance(CovarianceTarget):
def __init__(self, decay_rate= 1.0, percentile=.50):
self.gamma = decay_rate;
self.percentile = percentile;
def _reset(self, initial_mean, initial_covariance):
self._covari... | 22,004 |
https://github.com/apolmig/monicabarcelo/blob/master/js/main.js | Github Open Source | Open Source | MIT | 2,020 | monicabarcelo | apolmig | JavaScript | Code | 101 | 622 | $(document).ready(function(){
var openModal;
$("#triangle").on("click", function(){
$("html,body").animate({
scrollTop: $("#my-work").offset().top,
},'slow');
});
$(".see-more-button").on("click", function(){
if($(this).hasClass("1")){
$("#modal-1").css("display", "flex");
openMo... | 2,301 |
https://github.com/scattercc/scattercc/blob/master/cmake/Predef.cmake | Github Open Source | Open Source | MIT | null | scattercc | scattercc | CMake | Code | 314 | 1,527 | # CMP0054
# Only interpret if() arguments as variables or keywords when unquoted.
# See https://cmake.org/cmake/help/v3.5/policy/CMP0054.html
cmake_policy(SET CMP0054 NEW)
#
# scc_should_not_reach_here(ErrorMessage)
# Add linker options to Target
#
function(scc_should_not_reach_here ErrorMessage)
message(FATAL... | 24,017 |
https://github.com/galaxyproject/planemo/blob/master/tests/test_cmd_test_conda.py | Github Open Source | Open Source | MIT | 2,023 | planemo | galaxyproject | Python | Code | 193 | 1,081 | """Module contains :class:`CmdTestTestCase` - integration tests for the ``test`` command."""
import os
from .test_utils import (
CliTestCase,
mark,
PROJECT_TEMPLATES_DIR,
skip_if_environ,
target_galaxy_branch,
TEST_REPOS_DIR,
TEST_TOOLS_DIR,
)
class CmdTestCondaTestCase(CliTestCase):
... | 34,944 |
https://github.com/linsuijiangnan/idea_guns/blob/master/src/main/webapp/static/modular/myself/user1/user1_info.js | Github Open Source | Open Source | Apache-2.0 | null | idea_guns | linsuijiangnan | JavaScript | Code | 177 | 765 | /**
* 初始化用户表1详情对话框
*/
var User1InfoDlg = {
user1InfoData : {}
};
/**
* 清除数据
*/
User1InfoDlg.clearData = function() {
this.user1InfoData = {};
}
/**
* 设置对话框中的数据
*
* @param key 数据的名称
* @param val 数据的具体值
*/
User1InfoDlg.set = function(key, val) {
this.user1InfoData[key] = (typeof val == "undefined")... | 47,047 |
https://github.com/SHDShim/pytheos/blob/master/pytheos/scales/objs.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | pytheos | SHDShim | Python | Code | 1,584 | 4,869 | """
Todo's
"""
from scipy import constants
import numpy as np
from scipy.optimize import brenth
from uncertainties import unumpy as unp
from ..eqn_bm3 import bm3_p
from ..eqn_vinet import vinet_p
from ..eqn_kunc import kunc_p
from ..eqn_therm import alphakt_pth
from ..eqn_therm_constq import constq_pth
from ..eqn_therm... | 150 |
https://github.com/ralscha/wampspring-demos/blob/master/wampspring-demo-various/src/main/resources/static/scheduler/app/store/mixin/WampIO.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | wampspring-demos | ralscha | JavaScript | Code | 467 | 1,506 | Ext.define('App.store.mixin.WampIO', {
initSocket: function() {
var me = this;
absession.subscribe('schdemo#serverDoUpdate', function(topic, event) {
me.onRemoteUpdate(event);
});
absession.subscribe('schdemo#serverDoAdd', function(topic, event) {
me.onRemoteAdd(event);
});
absession.subscribe('... | 49,311 |
https://github.com/oti/smooth-gradient-sass-function/blob/master/src/style/config/_mixin.scss | Github Open Source | Open Source | MIT | 2,022 | smooth-gradient-sass-function | oti | SCSS | Code | 36 | 118 | @mixin max($bp: 767px) {
@media (max-width: $bp) {
@content;
}
}
@mixin min($bp: 768px) {
@media (min-width: $bp) {
@content;
}
}
@mixin minmax($min, $max) {
@media (min-width: $min) and (max-width: $max) {
@content;
}
}
| 25,255 |
https://github.com/PietroTotis/evidencegraph/blob/master/original_data/corpus/german_mate_segmented/micro_k011.txt.parsed.conll | Github Open Source | Open Source | 2,019 | evidencegraph | PietroTotis | null | Spoken | 1,904 | 4,585 | 1 Mietpreiserhöhungen _ Mietpreiserhöhung _ NN _ nom|pl|fem -1 5 _ SB _ _
2 bei _ bei _ APPR _ _ -1 1 _ MNR _ _
3 einer _ ein _ ART _ dat|sg|fem -1 4 _ NK _ _
4 Neuvermietung _ Neuvermietung _ NN _ dat|sg|fem -1 2 _ NK _ _
5 sind _ sein _ VAFIN _ pl|3|pres|ind -1 0 _ -- _ _
6 an _ an _ APPR _ _ -1 5 _ MO _ _
7 sich _ s... | 9,587 | |
https://github.com/TencentBlueKing/bk-nodeman/blob/master/frontend/src/components/common/verify-input.vue | Github Open Source | Open Source | MIT, LicenseRef-scancode-free-unknown | 2,023 | bk-nodeman | TencentBlueKing | Vue | Code | 789 | 2,613 | <template>
<div
:class="['step-verify-input',{
'is-error': validator.show || proxyStatus,
'normal-error': isNormalError,
'mask-error': !isNormalError
}]">
<div v-if="validator.show || proxyStatus" class="verify-input-mask"></div>
<slot></slot>
<!-- 冲突提示 -->
<span
class=... | 15,363 |
https://github.com/soitun/killbill-bitcoin-plugin/blob/master/src/main/java/org/killbill/billing/plugin/bitcoin/osgi/PendingPayment.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | killbill-bitcoin-plugin | soitun | Java | Code | 485 | 1,154 | /*
* Copyright 2010-2014 Ning, Inc.
* Copyright 2014 The Billing Project, LLC
*
* Ning licenses this file to you 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/lice... | 17,036 |
https://github.com/Humyang/page-note-extension-server/blob/master/page_note_extension/contentScript/loginSuccess.js | Github Open Source | Open Source | MIT | 2,017 | page-note-extension-server | Humyang | JavaScript | Code | 17 | 94 | setTimeout(function() {
// localStorage.setItem('token','5555')
// alert(localStorage.getItem('token'))
var msg = {
action:'loginsuccess',
username:localStorage.getItem('username'),
token:localStorage.getItem('token')
}
chrome.runtime.sendMessage(msg);
}, 150);
| 273 |
https://github.com/hw233/home3/blob/master/core/client/game/src/commonGame/tool/func/RandomWeightTool.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | home3 | hw233 | C# | Code | 111 | 560 | using System;
using ShineEngine;
/// <summary>
/// 权重随机插件
/// </summary>
public class RandomWeightTool
{
private DIntData[] _dintArr;
private int[][] _intArr;
private int _weight;
/** (key:权重,value:值) */
public RandomWeightTool(DIntData[] arr)
{
_dintArr=arr;
foreach(DIntData v in arr)
{
_weight+=v.... | 6,131 |
https://github.com/Willd14469/cj8-patient-panthers/blob/master/pantheras_box/keyboard_handlers/core.py | Github Open Source | Open Source | MIT | 2,021 | cj8-patient-panthers | Willd14469 | Python | Code | 177 | 461 | import logging
import sys
from abc import ABC
from pantheras_box.backend.core import CoreBackend
from pantheras_box.file_logging import logger
class BaseKeyboardHandler(ABC):
"""
Base abstract class for handling keyboard inputs
Subclasses should implement actual concrete keyboard handling for the differ... | 4,995 |
https://github.com/kkaryl/AI6126-Advanced_Computer_Vision/blob/master/project_1/src/losses/loss_utils.py | Github Open Source | Open Source | MIT | 2,021 | AI6126-Advanced_Computer_Vision | kkaryl | Python | Code | 71 | 256 | from functools import partial
# References:
# fastai course
def lin_comb(value1, value2, beta):
return beta*value1 + (1-beta)* value2
def reduce_loss(loss, reduction='mean'):
return loss.mean() if reduction=='mean' else loss.sum() if reduction=='sum' else loss
class NoneReduce():
def __init__(self, los... | 47,598 |
https://github.com/xiacijie/omr-wala-linkage/blob/master/build_1/third_party/omr/util/avl/CTestTestfile.cmake | Github Open Source | Open Source | Apache-2.0 | null | omr-wala-linkage | xiacijie | CMake | Code | 36 | 101 | # CMake generated Testfile for
# Source directory: /Users/cijiexia/Project/lljb/third_party/omr/util/avl
# Build directory: /Users/cijiexia/Project/lljb/build_1/third_party/omr/util/avl
#
# This file includes the relevant testing commands required for
# testing this directory and lists subdirectories to be tested as... | 2,989 |
https://github.com/Bonono63/Create---Fabric-Edition/blob/master/src/main/java/com/mrbonono63/create/foundation/tileEntity/behaviour/filtering/FilteringHandler.java | Github Open Source | Open Source | MIT | 2,021 | Create---Fabric-Edition | Bonono63 | Java | Code | 348 | 1,763 | package com.mrbonono63.create.foundation.tileEntity.behaviour.filtering;
import com.simibubi.create.AllBlocks;
import com.simibubi.create.AllItems;
import com.simibubi.create.AllKeys;
import com.mrbonono63.create.content.logistics.item.filter.FilterItem;
import com.mrbonono63.create.foundation.tileEntity.TileEntityBeh... | 23,326 |
https://github.com/cdubz/mos6502/blob/master/samples/src/jump_indirect.rs | Github Open Source | Open Source | MIT | 2,021 | mos6502 | cdubz | Rust | Code | 124 | 594 | /// Loop forever by repeatedly indirectly jumping, writing 0x42 to address 0 after the first
/// iteration. The program is padded with 0xFF bytes to make it easier to read the assembled cdoe.
///
/// Instructions:
/// - JMP (Absolute)
/// - JMP (Indirect)
/// - LDA (Immediate)
/// - STA (ZeroPage)
use crate::prelude::*... | 1,271 |
https://github.com/mwatts/acid-store/blob/master/tests/data_store.rs | Github Open Source | Open Source | Apache-2.0 | null | acid-store | mwatts | Rust | Code | 602 | 3,844 | /*
* Copyright 2019-2020 Wren Powell
*
* 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 agree... | 5,368 |
https://github.com/KEOTL/raidsCommands/blob/master/src/main/java/com/lambdanum/raids/commands/BeginCommand.java | Github Open Source | Open Source | MIT | null | raidsCommands | KEOTL | Java | Code | 214 | 749 | package com.lambdanum.raids.commands;
import com.lambdanum.raids.application.SkyblockService;
import com.lambdanum.raids.model.Position;
import com.lambdanum.raids.skyblock.SkyblockUserRepository;
import java.util.Collections;
import java.util.List;
import javax.annotation.Nullable;
import net.minecraft.command.Com... | 48,321 |
https://github.com/abryant/LED-Cube/blob/master/arduino/esp8266_wifi_leds/esp8266_wifi_leds.ino | Github Open Source | Open Source | BSD-3-Clause | 2,020 | LED-Cube | abryant | C++ | Code | 535 | 1,570 | #include <ESP8266WiFi.h>
#include <DNSServer.h> //Local DNS Server used for redirecting all requests to the configuration portal
#include <ESP8266WebServer.h> //Local WebServer used to serve the configuration portal
#include <WiFiManager.h> //https://github.com/tzapu/WiFiManager WiFi Configurat... | 10,501 |
https://github.com/Zavgorodnij/Deep-Mod-Flyme6.1.0.0/blob/master/1.0.0.2/alternative1.3.sh | Github Open Source | Open Source | Apache-2.0 | 2,018 | Deep-Mod-Flyme6.1.0.0 | Zavgorodnij | Shell | Code | 33 | 94 | su
mount -o rw,remount /system
rm /system/media/bootanimation.zip
rm -r /system/media/audio -f
rm -r /system/customizecenter -f
cd system
unzip -o /system/storage/deepmod/deepazure.zip
chmod -R 755 /system
find /system -type f -exec chmod 644 {} \;
| 52,032 |
https://github.com/gg1122/laket-admin/blob/master/src/Middleware/Auth.php | Github Open Source | Open Source | Apache-2.0 | 2,022 | laket-admin | gg1122 | PHP | Code | 186 | 807 | <?php
declare (strict_types = 1);
namespace Laket\Admin\Middleware;
use Closure;
use think\App;
use Laket\Admin\Facade\Admin;
use Laket\Admin\Http\Traits\Jump as JumpTrait;
use Laket\Admin\Model\AuthRule as AuthRuleModel;
/**
* 登陆检测
*
* @create 2021-3-18
* @author deatil
*/
class Auth
{
use JumpTrait;
... | 46,905 |
https://github.com/davidcrouch/tinkerpop3/blob/master/gremlin-groovy-test/src/main/groovy/com/tinkerpop/gremlin/process/graph/step/map/GroovyLocalTest.groovy | Github Open Source | Open Source | Apache-2.0 | null | tinkerpop3 | davidcrouch | Groovy | Code | 102 | 613 | package com.tinkerpop.gremlin.process.graph.step.map
import com.tinkerpop.gremlin.process.T
import com.tinkerpop.gremlin.process.Traversal
import com.tinkerpop.gremlin.process.graph.step.ComputerTestHelper
import com.tinkerpop.gremlin.structure.Order
import com.tinkerpop.gremlin.structure.Vertex
import static com.tin... | 12,323 |
https://github.com/tetrascience/ts-lib-mathjs/blob/master/lib/utils/function.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | ts-lib-mathjs | tetrascience | JavaScript | Code | 131 | 289 | // function utils
/*
* Memoize a given function by caching the computed result.
* The cache of a memoized function can be cleared by deleting the `cache`
* property of the function.
*
* @param {function} fn The function to be memoized.
* Must be a pure... | 52,012 |
https://github.com/zhoujiagen/giant-data-analysis/blob/master/temporal-data-and-realtime-algorithm/temporal-apache-kafka/src/main/java/com/spike/giantdataanalysis/kafka/example/ExampleKafkaLog4jAppender.java | Github Open Source | Open Source | MIT | 2,020 | giant-data-analysis | zhoujiagen | Java | Code | 96 | 478 | package com.spike.giantdataanalysis.kafka.example;
import java.util.Date;
import org.apache.kafka.log4jappender.KafkaLog4jAppender;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* <pre>
* KafkaLog4jAppender的使用
*
* REF: http://stackoverflow.com/questions/32301129/kafka-log4j-appender-not-sending-m... | 11,383 |
https://github.com/Nuerk-Solutions/PermissionsSwiftUI/blob/master/Sources/CorePermissionsSwiftUI/Model/Mocks/MockNotificationManager.swift | Github Open Source | Open Source | MIT | 2,022 | PermissionsSwiftUI | Nuerk-Solutions | Swift | Code | 174 | 579 | //
// MockNotificationManager.swift
//
//
// Created by Jevon Mao on 2/10/21.
//
import Foundation
#if PERMISSIONSWIFTUI_NOTIFICATION
import UserNotifications
protocol NotificationManager {
static func shared() -> NotificationManager
func requestPermission(options: UNAuthorizationOptions, completionHandle... | 8,509 |
https://github.com/agismaulana/learning/blob/master/application/controllers/Pelajaran.php | Github Open Source | Open Source | MIT | null | learning | agismaulana | PHP | Code | 246 | 1,127 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Pelajaran extends CI_Controller {
public function __construct(){
parent::__construct();
is_logged_in();
$this->load->model('Mapel_M');
$this->load->model('Pelajaran_M');
}
public function index(... | 1,597 |
https://github.com/hushilin/iOS1351Headers/blob/master/usr/libexec/navd/NavdDoomExitTimeUpdater-Protocol.h | Github Open Source | Open Source | MIT | 2,021 | iOS1351Headers | hushilin | Objective-C | Code | 44 | 144 | //
// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).
//
// Copyright (C) 1997-2019 Steve Nygard.
//
#import "NSObject-Protocol.h"
@class CLLocation, NSDate;
@protocol NavdDoomExitTimeUpdater <NSObject>
- (_Bool)updateExitTimeForLocation:(CLLocat... | 580 |
https://github.com/bansalhimanshu0296/Projects/blob/master/jyc.club/jyc.club/social/module/shoutbox/include/service/process.class.php | Github Open Source | Open Source | Apache-2.0 | 2,019 | Projects | bansalhimanshu0296 | PHP | Code | 460 | 1,365 | <?php
/**
* [NULLED BY DARKGOTH 2014]
*/
defined('PHPFOX') or exit('NO DICE!');
/**
* Process class for shoutouts where we add, delete or update shoutouts.
*
* @copyright [PHPFOX_COPYRIGHT]
* @author Raymond Benc
* @package Module_Shoutbox
* @version $Id: process.class.php 2526 2011-04-13 18:15:51Z ... | 19,577 |
https://github.com/marksteward/BeatSaber-Quest-Codegen/blob/master/include/GlobalNamespace/PS4PlatformAdditionalContentModel.hpp | Github Open Source | Open Source | Unlicense | null | BeatSaber-Quest-Codegen | marksteward | C++ | Code | 604 | 3,315 | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: AdditionalContentMode... | 21,555 |
https://github.com/C0PEP0D/sheld0n/blob/master/cases/spherical_surfers/param/init/objects/surfer__us_1o0__surftimeconst_4o0__reorientationtime_2o0/orient/group/_member/passive/axis/random/parameters.h | Github Open Source | Open Source | MIT | null | sheld0n | C0PEP0D | C | Code | 26 | 227 | #ifndef C0P_PARAM_INIT_OBJECTS_SURFER__US_1O0__SURFTIMECONST_4O0__REORIENTATIONTIME_2O0_ORIENT_GROUP_MEMBER_PASSIVE_POS_RANDOM_PARAMETERS_H
#define C0P_PARAM_INIT_OBJECTS_SURFER__US_1O0__SURFTIMECONST_4O0__REORIENTATIONTIME_2O0_ORIENT_GROUP_MEMBER_PASSIVE_POS_RANDOM_PARAMETERS_H
#pragma once
// app include
#include "c... | 22,676 |
https://github.com/amit2014/kotlin-eclipse/blob/master/kotlin-eclipse-ui-test/src/org/jetbrains/kotlin/ui/tests/editors/quickfix/intentions/KotlinRemoveExplicitTypeTestCase.kt | Github Open Source | Open Source | Apache-2.0 | 2,017 | kotlin-eclipse | amit2014 | Kotlin | Code | 34 | 206 | package org.jetbrains.kotlin.ui.tests.editors.quickfix.intentions
import org.jetbrains.kotlin.ui.editors.quickassist.KotlinRemoveExplicitTypeAssistProposal
import org.eclipse.jdt.internal.ui.javaeditor.JavaEditor
import org.jetbrains.kotlin.testframework.utils.EditorTestUtils
abstract class KotlinRemoveExplicitTypeTe... | 29,869 |
https://github.com/maxtnuk/gluesql/blob/master/core/src/executor/sort.rs | Github Open Source | Open Source | Apache-2.0 | 2,023 | gluesql | maxtnuk | Rust | Code | 472 | 1,783 | use {
super::{context::RowContext, evaluate::evaluate},
crate::{
ast::{Aggregate, AstLiteral, Expr, OrderByExpr, UnaryOperator},
data::{Row, Value},
result::{Error, Result},
store::GStore,
},
bigdecimal::ToPrimitive,
futures::stream::{self, Stream, StreamExt, TryStrea... | 34,565 |
https://github.com/pulcy/bleep/blob/master/deps/github.com/xenolf/lego/acme/dns_challenge_rfc2136.go | Github Open Source | Open Source | Apache-2.0 | null | bleep | pulcy | Go | Code | 337 | 1,010 | package acme
import (
"fmt"
"github.com/miekg/dns"
"time"
)
// DNSProviderRFC2136 is an implementation of the ChallengeProvider interface that
// uses dynamic DNS updates (RFC 2136) to create TXT records on a nameserver.
type DNSProviderRFC2136 struct {
nameserver string
zone string
tsigKey string
tsi... | 11,173 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.