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/Lambda-School-Labs/labs10-date-planning/blob/master/frontend/components/Queries/User.js | Github Open Source | Open Source | MIT | 2,019 | labs10-date-planning | Lambda-School-Labs | JavaScript | Code | 126 | 401 | import { Query, withApollo } from 'react-apollo';
import gql from 'graphql-tag';
import PropTypes from 'prop-types';
const CURRENT_USER_QUERY = gql`
query {
currentUser {
id
firstName
lastName
email
biography
dob
location
genderPrefs
minAgePref
maxAgePref
verified
img {
defau... | 28,731 |
https://github.com/mcx/Linux-ESPNOW/blob/master/wifiRawEcho/Includes/ESPNOW_packet.h | Github Open Source | Open Source | BSD-2-Clause | 2,023 | Linux-ESPNOW | mcx | C | Code | 172 | 770 | #ifndef ESPNOW_PACKET_H
#define ESPNOW_PACKET_H
#include <stdint.h>
#include <stdio.h>
struct IEEE80211_radiotap {
uint8_t version; //= 0;
uint8_t pad; //= 0;
uint16_t length; //= 0x00,0x26;
uint32_t present_1; //= {0x2f, 0x40, 0x00, 0xa0};
... | 5,681 |
https://github.com/070499/repo-scripts/blob/master/script.libraryautoupdate/default.py | Github Open Source | Open Source | MIT | 2,014 | repo-scripts | 070499 | Python | Code | 84 | 378 | import os
import xbmc
import xbmcaddon
Addon = xbmcaddon.Addon(id=os.path.basename(os.getcwd()))
class Main:
def __init__(self):
#cancel the alarm if it is already running
xbmc.executebuiltin('CancelAlarm(updatelibrary)')
timer_amounts = {}
timer_amounts['0'] = '120'
timer_amounts['1'... | 29,506 |
https://github.com/kostin88/impala-tpcds-kit/blob/master/queries/q24.sql | Github Open Source | Open Source | Apache-2.0 | null | impala-tpcds-kit | kostin88 | SQL | Code | 372 | 1,391 | -- start query 24 in stream 0 using template query24.tpl
with ssales as
(select STRAIGHT_JOIN c_last_name
,c_first_name
,s_store_name
,ca_state
,s_state
,item.i_color
,i_current_price
,i_manager_id
,i_units
,i_size
,sum(ss_ext_sales_price) netpaid
from (select sr_ticket_number,sr_item_sk,i_color from store_returns, ite... | 16,443 |
https://github.com/uk-gov-mirror/SkillsFundingAgency.dfc-coursedirectory/blob/master/src/Dfc.CourseDirectory.WebV2/Filters/DeactivatedProviderErrorActionFilter.cs | Github Open Source | Open Source | MIT | 2,022 | SkillsFundingAgency.dfc-coursedirectory | uk-gov-mirror | C# | Code | 120 | 463 | using System;
using System.Reflection;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Controllers;
using Microsoft.AspNetCore.Mvc.Filters;
namespace Dfc.CourseDirectory.WebV2.Filters
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
public class AllowDeactivatedProviderAttri... | 8,346 |
https://github.com/Maple-Syrup-Bacon/watwat/blob/master/src/Assets/Plugins/DoozyUI/Scripts/UI/UIAnimatorUtil.cs | Github Open Source | Open Source | MIT | null | watwat | Maple-Syrup-Bacon | C# | Code | 3,633 | 11,662 | // Copyright (c) 2015 - 2018 Doozy Entertainment / Marlink Trading SRL. All Rights Reserved.
// This code can only be used under the standard Unity Asset Store End User License Agreement
// A Copy of the EULA APPENDIX 1 is available at http://unity3d.com/company/legal/as_terms
using System.Collections.Generic;
using ... | 13,880 |
https://github.com/simplify9/CloudFiles/blob/master/SW.CloudFiles.UnitTests/TestStartup.cs | Github Open Source | Open Source | MIT | 2,020 | CloudFiles | simplify9 | C# | Code | 126 | 445 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Mic... | 23,064 |
https://github.com/yovei/exchanges-php/blob/master/src/Api/Market.php | Github Open Source | Open Source | MIT | 2,022 | exchanges-php | yovei | PHP | Code | 28 | 81 | <?php
/**
* @author lin <465382251@qq.com>
* */
namespace Lin\Exchange\Api;
use Lin\Exchange\Interfaces\MarketInterface;
class Market extends Base implements MarketInterface
{
/**
*
* */
function depth(array $data){
}
} | 12,994 |
https://github.com/cfndsl/cfndsl/blob/master/lib/cfndsl/cloudformation.rb | Github Open Source | Open Source | MIT | 2,023 | cfndsl | cfndsl | Ruby | Code | 518 | 1,189 | # frozen_string_literal: true
require_relative 'globals'
require_relative 'external_parameters'
require_relative 'aws/cloud_formation_template'
# CfnDsl
module CfnDsl
# This function handles the eval of the template file and returns the
# results. It does this with a ruby "eval", but it builds up a customized
#... | 47,918 |
https://github.com/BradipoCoder/OroPlatform/blob/master/src/Oro/Bundle/SegmentBundle/Entity/Manager/SegmentManager.php | Github Open Source | Open Source | MIT | 2,017 | OroPlatform | BradipoCoder | PHP | Code | 235 | 759 | <?php
namespace Oro\Bundle\SegmentBundle\Entity\Manager;
use Doctrine\ORM\EntityManager;
use Oro\Bundle\SegmentBundle\Entity\Segment;
class SegmentManager
{
const PER_PAGE = 20;
/** @var EntityManager */
protected $em;
/**
* @param EntityManager $em
*/
public function __construct(Enti... | 30,930 |
https://github.com/MarekS01/Farm-management/blob/master/src/main/java/pl/farmmanagement/model/UserRole.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | Farm-management | MarekS01 | Java | Code | 83 | 243 | package pl.farmmanagement.model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.util.Objects;
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Entity
public class UserRole {
@Id
@GeneratedValue(s... | 36,482 |
https://github.com/3zcurdia/oh-my-config/blob/master/bootstrap.sh | Github Open Source | Open Source | Unlicense | null | oh-my-config | 3zcurdia | Shell | Code | 109 | 464 | LOCAL_DIR=~/local
LOCAL_BIN="$LOCAL_DIR/bin"
# Section to install robbyrussell/oh-my-zsh
OH_MY_ZSH_DIR=~/.oh-my-zsh
DOT_ZSHRC=~/.zshrc
OH_MY_ZSH_REMOTE="https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh"
SHELL=`which zsh`
if [ ! -d "$OH_MY_ZSH_DIR" ]
then
curl -L $OH_MY_ZSH_REMOTE | sh
plugin... | 13,212 |
https://github.com/w44274498/ios-zzx/blob/master/Forge-master 2/Examples/YOLO/YOLO/OC/protractorView.h | Github Open Source | Open Source | MIT, LicenseRef-scancode-warranty-disclaimer | 2,019 | ios-zzx | w44274498 | Objective-C | Code | 124 | 490 | //
// protractorView.h
// TakeVedio
//
// Created by 莞尔一念 on 13/09/2017.
// Copyright © 2017 jessica. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "protractorLayer.h"
#import "UIView+Resize.h"
@interface myProtractorView : UIView
@property (nonatomic, copy) void (^callback)(CGFloat from, CGFloat to, C... | 18,536 |
https://github.com/CraftAcademy/cartify/blob/master/app/queries/cartify/orders_query.rb | Github Open Source | Open Source | MIT | 2,019 | cartify | CraftAcademy | Ruby | Code | 35 | 113 |
# filter for orders
module Cartify
class OrdersQuery
attr_reader :relation
def initialize(relation = Cartify::Order.none)
@relation = relation
end
def run(filter_params = '')
status_id = Cartify::OrderStatus.find_by(name: filter_params)
return relation.where(order_status_id: statu... | 49,596 |
https://github.com/pfitzseb/Contexts.jl/blob/master/src/base_interop.jl | Github Open Source | Open Source | MIT | null | Contexts.jl | pfitzseb | Julia | Code | 144 | 524 | # Filesystem
function Base.open(ctx::AbstractContext, filename::AbstractString, mode::AbstractString; kws...)
io = open(filename, mode; kws...)
@defer ctx close(io)
io
end
function Base.open(ctx::AbstractContext, filename::AbstractString; kws...)
io = open(filename; kws...)
@defer ctx close(io)
... | 52,033 |
https://github.com/maloneyg/Substitution-Editor/blob/master/RhombDisplay.java | Github Open Source | Open Source | CC-BY-3.0 | null | Substitution-Editor | maloneyg | Java | Code | 1,536 | 4,289 | import javax.swing.*;
import java.util.*;
import java.awt.*;
import java.util.List;
import java.awt.event.*;
import java.awt.geom.*;
import javax.swing.AbstractButton;
import javax.swing.JButton;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.Timer;
import javax.swing.plaf.b... | 15,730 |
https://github.com/yanyan-cas/ttk/blob/master/standalone/FTMTree/cmd/Editor.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,018 | ttk | yanyan-cas | C++ | Code | 338 | 1,088 | /*
* file: Editor.cpp
* description: Data-structures and processing.
* author: Your Name Here <Your Email Address Here>.
* date: The Date Here.
*/
#include "Editor.h"
#include <vtksys/SystemTools.hxx>
Editor::Editor()
{
grid_ = NULL;
lastObj... | 48,166 |
https://github.com/rustamwin/tayson/blob/master/client/src/app/layouts/nav/nav.component.ts | Github Open Source | Open Source | MIT | 2,019 | tayson | rustamwin | TypeScript | Code | 39 | 137 | import {Component, OnInit} from '@angular/core';
import {ActivatedRoute} from "@angular/router";
@Component({
selector: 'app-nav',
templateUrl: './nav.component.html',
styleUrls: ['./nav.component.css']
})
export class NavComponent implements OnInit {
activeLink: string = '';
constructor(private r... | 5,686 |
https://github.com/gloomyline/one-pieces/blob/master/loan/php/wkdk/frontend/controllers/LoanController.php | Github Open Source | Open Source | Unlicense | null | one-pieces | gloomyline | PHP | Code | 1,061 | 4,653 | <?php
namespace frontend\controllers;
use common\models\Loan;
use frontend\bases\FrontendController;
use common\models\LoanModel;
use common\models\UserModel;
use common\models\LoanLogModel;
use common\models\ProductModel;
use common\models\UserBankModel;
use common\services\LoanService;
use yii\filters\AccessControl... | 31,633 |
https://github.com/arnaud-hours/PlaygroundCore/blob/master/src/PlaygroundCore/Controller/FormgenController.php | Github Open Source | Open Source | MIT | null | PlaygroundCore | arnaud-hours | PHP | Code | 458 | 1,914 | <?php
namespace PlaygroundCore\Controller;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use Zend\View\Renderer\PhpRenderer;
class FormgenController extends AbstractActionController
{
protected $formgenService;
protected $websiteService;
public function indexAction()
... | 31,586 |
https://github.com/kumamidori/BEAR.Resource/blob/master/tests/Fake/FakeVendor/Sandbox/Resource/App/Weave/Book.php | Github Open Source | Open Source | MIT | null | BEAR.Resource | kumamidori | PHP | Code | 42 | 141 | <?php
declare(strict_types=1);
/**
* This file is part of the BEAR.Resource package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace FakeVendor\Sandbox\Resource\App\Weave;
use BEAR\Resource\Annotation\FakeLog;
use BEAR\Resource\ResourceObject;
class Book extends ResourceObject
{
/**
* @... | 30,582 |
https://github.com/abchiyi/Jet-Plan-UI/blob/master/examples/views/the_demo/the_demo_directives/DemoDirectivesFocus.vue | Github Open Source | Open Source | Apache-2.0 | null | Jet-Plan-UI | abchiyi | Vue | Code | 116 | 472 | <template>
<article id="focus">
<doc-item name="v-focus:" title-is="h2">
<p>判断操作是否聚焦于某个元素。</p>
<li id="v-focus-value">
<doc-item name="Value:">
<li>
<p>
<high-lighter>="value"</high-lighter>
: type - Function
</p>
<p>接受一... | 39,371 |
https://github.com/gustass5/p5js-typescript-template/blob/master/src/index.ts | Github Open Source | Open Source | MIT | 2,021 | p5js-typescript-template | gustass5 | TypeScript | Code | 24 | 79 | function setup() {
createCanvas(400, 400);
background(0);
}
function draw() {
if (mouseIsPressed) {
fill(0);
} else {
fill(255);
}
ellipse(mouseX, mouseY, 80, 80);
}
| 21,947 |
https://github.com/Kanialdo/teamodoro/blob/master/Dockerfile | Github Open Source | Open Source | MIT | 2,019 | teamodoro | Kanialdo | Dockerfile | Code | 14 | 76 | FROM nginx
COPY audio/. /usr/share/nginx/html/audio
COPY images/. /usr/share/nginx/html/images
COPY javascripts/. /usr/share/nginx/html/javascripts
COPY index.html /usr/share/nginx/html
| 50,804 |
https://github.com/pdeubel/world-models-testing/blob/master/models/vae/base_vae.py | Github Open Source | Open Source | MIT | null | world-models-testing | pdeubel | Python | Code | 480 | 1,841 | import abc
from typing import Tuple
import numpy as np
import torch
import torch.nn as nn
from torch.nn import functional as f
class BaseVAE(abc.ABC, nn.Module):
def __init__(self, model_parameters: dict):
super().__init__()
self.input_channels = model_parameters["input_channels"]
self.... | 1,599 |
https://github.com/MichaelMorrison05/AFW1502-Morrison_Michael/blob/master/WK3Project/build/iphone/build/WK3Project.build/Debug-iphoneos/WK3Project-universal.build/Objects-normal/arm64/LauncherButton.d | Github Open Source | Open Source | Apache-2.0 | 2,015 | AFW1502-Morrison_Michael | MichaelMorrison05 | Makefile | Code | 3 | 39 | dependencies: \
/Users/Michael/Desktop/AVFW-1502/WK3Project/build/iphone/Classes/LauncherButton.m
| 29,709 |
https://github.com/RhodesCS2016/interfacing-1/blob/master/glinklater/random-dice/makefile | Github Open Source | Open Source | MIT | 2,016 | interfacing-1 | RhodesCS2016 | Makefile | Code | 37 | 134 | PORT=/dev/ttyACM0
FILE=dice.s
all: makehex
makehex: $(FILE)
avra -I /usr/lib/atmega16 $(FILE)
clean:
rm -f *.elf *.hex *.o *.obj *.cof
upload: makehex
avrdude -c stk500 -p atmega16 -P $(PORT) -F -u -U flash:w:$(FILE).hex
serial:
putty $(PORT) -serial -sercfg 9600,n,8
| 47,996 |
https://github.com/fanda-india/fanda-api/blob/master/routes/bank_route.go | Github Open Source | Open Source | MIT | null | fanda-api | fanda-india | Go | Code | 465 | 1,783 | package routes
import (
"encoding/json"
"fmt"
"net/http"
"fanda-api/dtos"
"fanda-api/models"
"fanda-api/options"
"fanda-api/repositories"
"github.com/gorilla/mux"
)
// BankRoute type
type BankRoute struct {
repo *repositories.BankRepository
}
// NewBankRoute method
func NewBankRoute(r *repositories.BankRe... | 32,663 |
https://github.com/ansumandas441/Data-Structures-and-Algorithms/blob/master/C++/soln-array-problems/two-sum-less-than-k.cpp | Github Open Source | Open Source | MIT | 2,022 | Data-Structures-and-Algorithms | ansumandas441 | C++ | Code | 96 | 419 | /**
@author Farheen Bano
Date 09-08-2021
Reference-
https://leetcode.com/problems/two-sum-less-than-k
*/
/**
Solution 1: Nested Loops
Time Complexity: O(n^2)
*/
class Solution {
public:
int twoSumLessThanK(vector<int>& nums, int k) {
int max=-1;
if(nums.size()<2)
return max;... | 11,594 |
https://github.com/sroehrl/eagle-talent/blob/master/asset/neoanJs/directives/showHide.directive.js | Github Open Source | Open Source | MIT | 2,019 | eagle-talent | sroehrl | JavaScript | Code | 84 | 359 | import neoan from '../neoan.js';
neoan.directive('show', {
run(element, scope, value, context) {
if(typeof this._memory.showHide === 'undefined'){
this._memory.showHide ={};
}
this.elementIterator(element, '[data-show]').forEach((ele) => {
if(typeof this._memory.sho... | 1,294 |
https://github.com/vikitaotiz/new-backup/blob/master/app/Http/Controllers/PrescriptionsController.php | Github Open Source | Open Source | MIT | 2,020 | new-backup | vikitaotiz | PHP | Code | 675 | 2,484 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests\Prescriptions\CreatePrescriptions;
use App\Http\Requests\Prescriptions\UpdatePrescriptions;
use App\Prescription;
use App\Medication;
use App\Drug;
use App\User;
use App\CompanyDetail;
use Illuminate\Support\Facades\Storage;
use... | 32,120 |
https://github.com/ZakAnderson/k8gb/blob/master/docs/examples/route53/.gitignore | Github Open Source | Open Source | MIT | 2,021 | k8gb | ZakAnderson | Ignore List | Code | 2 | 11 | .terraform
kubeconfig*
| 51,881 |
https://github.com/ChronicStone/vue-sweetforms/blob/master/src/utils/fieldUtils.ts | Github Open Source | Open Source | MIT | 2,022 | vue-sweetforms | ChronicStone | TypeScript | Code | 418 | 1,346 | import { FieldOption, FieldTypes } from "../types"
export const MapFieldProps = (fieldType: FieldTypes, fieldProps: any = {}) => {
switch(fieldType) {
case 'text':
case 'textarea':
case 'password':
return {
'show-count': fieldProps.showCharacterCount ?? false,
... | 18,010 |
https://github.com/liulei3/huaweicloud-sdk-java-v3/blob/master/services/roma/src/main/java/com/huaweicloud/sdk/roma/v2/model/LdApiParameter.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | huaweicloud-sdk-java-v3 | liulei3 | Java | Code | 548 | 1,845 | package com.huaweicloud.sdk.roma.v2.model;
import java.util.Collections;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.HashMap;
impo... | 41,164 |
https://github.com/iridium-browser/iridium-browser/blob/master/third_party/breakpad/breakpad/src/third_party/mac_headers/mach/machine/thread_status.h | Github Open Source | Open Source | BSD-3-Clause, APSL-1.0, FSFAP, LicenseRef-scancode-unicode, BSD-4-Clause-UC, MIT, curl, Autoconf-exception-2.0, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-other-copyleft, GPL-1.0-or-later, Autoconf-exception-3.0, ClArtistic, LGPL-2.1-or-later, LicenseRef-scancode-proprietary-license, APSL-2.0, License... | 2,023 | iridium-browser | iridium-browser | null | Spoken | 7 | 8 | /* This file intentionally left blank */ | 17,858 |
https://github.com/marcocavanna/react-app-router/blob/master/example/app/routes/Profile.tsx | Github Open Source | Open Source | MIT | null | react-app-router | marcocavanna | TypeScript | Code | 42 | 127 | import * as React from 'react';
import { AppLink } from 'MyComponent';
export default () => (
<React.Fragment>
<h1>Welcome to Private Page</h1>
<AppLink to={'Home'} renderAnyway><h3>Return to Home, always visible. With auth will fallback to Articles</h3>
</AppLink>
<AppLink to={'Articles'}><h3>Retu... | 19,515 |
https://github.com/ScalablyTyped/Distribution/blob/master/a/aws-sdk__client-xray-node/src/main/scala/typings/awsSdkClientXrayNode/typesTraceMod.scala | Github Open Source | Open Source | MIT | 2,023 | Distribution | ScalablyTyped | Scala | Code | 276 | 882 | package typings.awsSdkClientXrayNode
import typings.awsSdkClientXrayNode.typesSegmentMod.Segment
import typings.awsSdkClientXrayNode.typesSegmentMod.UnmarshalledSegment
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBra... | 10,670 |
https://github.com/davidvaccaro/GsonFHIR/blob/master/src/main/java/com/xinonix/hl7/fhir/stu3/AllergyIntolerance.java | Github Open Source | Open Source | MIT | null | GsonFHIR | davidvaccaro | Java | Code | 1,487 | 3,164 | package com.xinonix.hl7.fhir.stu3;
import java.util.ArrayList;
import java.util.Date;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.JsonAdapter;
import com.xinonix.serialization.DateTimeAdapterDateTime;
/**
* Risk of harmful or unde... | 6,757 |
https://github.com/xPaw/PHP-StarMade-Query/blob/master/view.php | Github Open Source | Open Source | MIT | 2,021 | PHP-StarMade-Query | xPaw | PHP | Code | 253 | 869 | <?php
// Edit this ->
define( 'SM_SERVER_ADDR', 'localhost' );
define( 'SM_SERVER_PORT', 4242 );
define( 'SM_TIMEOUT', 1 );
// Edit this <-
// Display everything in browser, because some people can't look in logs for errors
Error_Reporting( E_ALL | E_STRICT );
Ini_Set( 'display_errors', true );
require __D... | 52,081 |
https://github.com/epam/cloud-pipeline/blob/master/client/src/components/runs/actions/check/tool-layers/warning.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | cloud-pipeline | epam | JavaScript | Code | 230 | 544 | /*
* Copyright 2017-2022 EPAM Systems, Inc. (https://www.epam.com/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | 20,328 |
https://github.com/temelkirci/Motion_Editor/blob/master/venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/SGIX/ycrcba.py | Github Open Source | Open Source | MIT | 2,022 | Motion_Editor | temelkirci | Python | Code | 62 | 190 | '''OpenGL extension SGIX.ycrcba
Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_SGIX_ycrcba'
_DEPRECATED = False
GL_YCRCB_SGIX = constant.Const... | 18,264 |
https://github.com/austinn/Facebook-For-Android-Wear/blob/master/mobile/src/main/java/com/refect/facebookforwear/adapter/PhotoAdapter.java | Github Open Source | Open Source | MIT | null | Facebook-For-Android-Wear | austinn | Java | Code | 294 | 1,124 | package com.refect.facebookforwear.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.AccelerateInterpolator;
import android.view.animation.DecelerateInterpola... | 46,776 |
https://github.com/amarallab/ResearchKit/blob/master/ResearchKit/ActiveTasks/ORKTouchAbilityContentView.h | Github Open Source | Open Source | BSD-3-Clause | 2,022 | ResearchKit | amarallab | C | Code | 345 | 919 | /*
Copyright (c) 2018, Muh-Tarng Lin. All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the fo... | 6,547 |
https://github.com/renesas-rz/meta-renesas/blob/master/meta-rz-common/recipes-debian/bullseye/glibc/glibc/0001-nativesdk-glibc-Look-for-host-system-ld.so.cache-as-.patch | Github Open Source | Open Source | GPL-2.0-only, GPL-3.0-only, GPL-3.0-or-later, MIT | 2,023 | meta-renesas | renesas-rz | null | Spoken | 366 | 953 | From 0cac7493366586e8f87e8459359c15f702ef8c81 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 18 Mar 2015 01:48:24 +0000
Subject: [PATCH 01/30] nativesdk-glibc: Look for host system ld.so.cache as
well
Upstream-Status: Inappropriate [embedded specific]
The default lib search path order is:
... | 12,423 |
https://github.com/aminegongi/ProjetSpark2020/blob/master/web/js/custom/shortcodes_init.js | Github Open Source | Open Source | MIT | null | ProjetSpark2020 | aminegongi | JavaScript | Code | 1,715 | 7,532 | // Shortcodes init
jQuery(document).ready(function() {
"use strict";
initShortcodes(jQuery('body').eq(0));
});
function initShortcodes(container) {
"use strict";
// Tabs
if (container.find('.sc_tabs:not(.inited)').length > 0) {
var sc_tabs_effetcs = container.find('.sc_tabs:not(.inited)').hasClass('sc_tabs_effe... | 203 |
https://github.com/seleb/boxboxhtml/blob/master/src/reducers/ui.js | Github Open Source | Open Source | MIT | 2,019 | boxboxhtml | seleb | JavaScript | Code | 229 | 619 | // actions
export const UI_BOX_SELECT = 'ui:box:select';
export const UI_DRAGGING_SET = 'ui:dragging:set';
export const UI_GRIDANCHOR_SET = 'ui:gridanchor:set';
export const UI_GRIDOFFSET_SET = 'ui:gridoffset:set';
// action creators
export function selectBox(box = '') {
return { type: UI_BOX_SELECT, box };
}
export ... | 33,312 |
https://github.com/ScottKolo/suitesparse-matrix-collection-website/blob/master/db/collection_data/matrices/HB/dwt_193.rb | Github Open Source | Open Source | BSD-3-Clause, MIT, CC-BY-4.0 | 2,023 | suitesparse-matrix-collection-website | ScottKolo | Ruby | Code | 80 | 410 | {
matrix_id: '114',
name: 'dwt_193',
group: 'HB',
description: 'SYMMETRIC CONNECTION TABLE FROM DTNSRDC, WASHINGTON',
author: 'G. Everstine, D. Taylor',
editor: 'I. Duff, R. Grimes, J. Lewis',
date: '1980',
kind: 'structural problem',
problem_2D_or_3D: '1',
num_rows: '193',
n... | 7,740 |
https://github.com/hummingbird-me/kitsu-mobile/blob/master/src/screens/Search/Lists/TopsList/index.tsx | Github Open Source | Open Source | Apache-2.0 | 2,023 | kitsu-mobile | hummingbird-me | TSX | Code | 987 | 3,221 | import { isEmpty, isNull, upperFirst } from 'lodash';
import React, { PureComponent } from 'react';
import { ScrollView } from 'react-native';
import { Navigation } from 'react-native-navigation';
import { connect } from 'react-redux';
import { ContentList } from 'kitsu/components/ContentList';
import { STREAMING_SERV... | 34,018 |
https://github.com/jgondron/datadog-cloudformation-resources/blob/master/datadog-cloudformation-common-python/src/datadog_cloudformation_common/utils.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | datadog-cloudformation-resources | jgondron | Python | Code | 88 | 270 | # Unless explicitly stated otherwise all files in this repository are licensed
# under the Apache 2.0 style license (see LICENSE).
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2020-Present Datadog, Inc.
from cloudformation_cli_python_lib import HandlerErrorCode
def h... | 31,674 |
https://github.com/gspeedtech/Audacity/blob/master/src/blockfile/ODPCMAliasBlockFile.h | Github Open Source | Open Source | CC-BY-3.0 | 2,017 | Audacity | gspeedtech | C | Code | 840 | 1,843 | /**********************************************************************
Audacity: A Digital Audio Editor
ODPCMAliasBlockFile.cpp
Created by Michael Chinen (mchinen)
Audacity(R) is copyright (c) 1999-2008 Audacity Team.
License: GPL v2. See License.txt.
**************************************************... | 12,451 |
https://github.com/hoolatech/datarouter-1/blob/master/datarouter-scanner/src/test/java/io/datarouter/scanner/RetainingScannerTests.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | datarouter-1 | hoolatech | Java | Code | 212 | 890 | /*
* Copyright © 2009 HotPads (admin@hotpads.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 34,731 |
https://github.com/jrivets/jrivets-common/blob/master/src/main/java/org/jrivets/event/AsyncEventChannel.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | jrivets-common | jrivets | Java | Code | 130 | 412 | package org.jrivets.event;
import java.util.Collection;
import java.util.concurrent.Executor;
import org.jrivets.log.Logger;
import org.jrivets.log.LoggerFactory;
public class AsyncEventChannel implements EventChannel {
private final Logger logger = LoggerFactory.getLogger(AsyncEventChannel.class);
pri... | 45,831 |
https://github.com/AlphaMale1st/cosmostation-ios/blob/master/Cosmostation/ProtoBuff/provenance_attribute_v1_query.grpc.swift | Github Open Source | Open Source | MIT | null | cosmostation-ios | AlphaMale1st | Swift | Code | 993 | 3,208 | //
// DO NOT EDIT.
//
// Generated by the protocol buffer compiler.
// Source: provenance/attribute/v1/query.proto
//
//
// Copyright 2018, gRPC Authors All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You ... | 27,340 |
https://github.com/hpi-swa-teaching/MarkdownEditor/blob/master/packages/MarkdownEditor-Core.package/MarkdownSettings.class/class/deleteInstance.st | Github Open Source | Open Source | MIT | 2,021 | MarkdownEditor | hpi-swa-teaching | null | Spoken | 5 | 13 | accessing
deleteInstance
UniqueInstance := nil | 30,613 |
https://github.com/racket/drracket/blob/master/drracket/version/tool.scrbl | Github Open Source | Open Source | MIT, Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | drracket | racket | null | Spoken | 57 | 161 | #lang scribble/manual
@(require scribble/bnf
(for-label version/tool))
@title{DrRacket Version Tool}
@defmodule[version/tool]
The @racket[version/tool] library implements a DrRacket tool that
@itemize[
@item{makes the patchlevel display as a version @tt{p}@nonterm{N}
suffix in DrRacket (though the base... | 26,977 |
https://github.com/otsecbsol/linkbinder/blob/master/linkbinder-subscriber/src/main/java/jp/co/opentone/bsol/linkbinder/subscriber/Subscriber.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | linkbinder | otsecbsol | Java | Code | 209 | 611 | /*
* Copyright 2016 OPEN TONE 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 ... | 48,764 |
https://github.com/Burd88/-platformgame/blob/master/.import/hero_animation.png-99d39157bbe44bcdee6467ca7b8814a3.md5 | Github Open Source | Open Source | MIT | 2,020 | -platformgame | Burd88 | null | Spoken | 2 | 52 | source_md5="97ed4cf4048165c6da9a2980a864ea20"
dest_md5="bcfdf8fe2913429acf04654d685623ef"
| 12,779 |
https://github.com/AyusmaTech/TextRecognition/blob/master/app/src/main/java/com/ayusma/textrecognition/Helper/Saver.java | Github Open Source | Open Source | MIT | 2,021 | TextRecognition | AyusmaTech | Java | Code | 62 | 166 | package com.ayusma.textrecognition.Helper;
public class Saver {
public Saver() {
}
public Saver(int id, String text) {
this.id = id;
this.text = text;
}
public int getId() {
return id;
}
public String getText() {
return text;
}
private int id;
... | 31,229 |
https://github.com/mike1808/react-boilerplate/blob/master/src/setupTest.js | Github Open Source | Open Source | MIT | 2,018 | react-boilerplate | mike1808 | JavaScript | Code | 47 | 106 | import Enzyme, { mount, render, shallow } from 'enzyme'; // eslint-disable-line
import Adapter from 'enzyme-adapter-react-16'; // eslint-disable-line
// React 16 Enzyme adapter
Enzyme.configure({ adapter: new Adapter() });
// Make Enzyme functions available in all test files without importing
global.shallow = shallow;... | 33,791 |
https://github.com/schoolofacceleratedlearning/huboard-web/blob/master/ember-app/app/models/new/repo.js | Github Open Source | Open Source | Unlicense, MIT | 2,021 | huboard-web | schoolofacceleratedlearning | JavaScript | Code | 626 | 2,603 | import Ember from 'ember';
import Model from '../model';
import Board from './board';
import Issue from './issue';
import Milestone from './milestone';
import Integration from 'huboard-app/models/integration';
import Health from 'huboard-app/models/health';
import Link from 'huboard-app/models/link';
import ajax from '... | 22,852 |
https://github.com/nestor1610/styde_banana/blob/master/resources/views/paymentterms/show.blade.php | Github Open Source | Open Source | Unlicense | 2,018 | styde_banana | nestor1610 | Blade | Code | 186 | 861 | @extends('mother')
@section('title', "Payment Term - {$payment_term->name}")
@section('content')
<div class="card bg-light mb-3" style="max-width: 18rem;">
<div class="card-header">{{ $payment_term->name }}</div>
<div class="card-body">
<p class="card-text">
{{ $payment_term->notes }}
</p>
</div>... | 34,925 |
https://github.com/shiver/blaze-lib/blob/master/blazetest/src/mathtest/dvectdvecmult/run | Github Open Source | Open Source | BSD-3-Clause | 2,016 | blaze-lib | shiver | Shell | Code | 3,442 | 8,043 | #!/bin/bash
#==================================================================================================
#
# Run script for the dvectdvecmult module of the Blaze test suite
#
# Copyright (C) 2013 Klaus Iglberger - All Rights Reserved
#
# This file is part of the Blaze library. You can redistribute it and/or m... | 6,285 |
https://github.com/2099365072/AMM/blob/master/lib/ui.py | Github Open Source | Open Source | MIT | 2,018 | AMM | 2099365072 | Python | Code | 934 | 2,487 | #!/usr/bin/env python3
"""
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Audiophiles Music Manager Build 20180119 VER0.0.0PREALPHA *
* (C)2017 Mattijs Snepvangers pegasus.ict@gmail.com *
* lib/ui.py User Interface ... | 30,166 |
https://github.com/phunkren/cards/blob/master/packages/app/src/components/icons/svg.js | Github Open Source | Open Source | MIT | 2,020 | cards | phunkren | JavaScript | Code | 28 | 102 | import styled from 'styled-components'
const StyledSvg = styled('svg')``
export const Svg = ({ color, size, ...props }) => (
<StyledSvg
xmlns='http://www.w3.org/2000/svg'
fill={color}
stroke={color}
width={size}
height={size}
{...props}
/>
)
| 44,311 |
https://github.com/serdarbakirtas/SearchEngine/blob/master/SearchEngine/Pods/Vendors/Vendors/Extensions/UICollectionView.swift | Github Open Source | Open Source | MIT | null | SearchEngine | serdarbakirtas | Swift | Code | 536 | 1,178 | //
// UICollectionView.swift
// Pods
//
// Ali Kiran on 11/24/16.
//
//
import Foundation
import UIKit
public extension UICollectionView {
func registerCells(nibClasses: [AnyClass]) {
for eachClass in nibClasses {
let classString = String(describing: eachClass)
let nib = UINib(n... | 13,576 |
https://github.com/JeffBarnard/WingtipTicketsSaaS-DbPerTenant/blob/master/App/src/Events-TenantUserApp/wwwroot/js/site.js | Github Open Source | Open Source | MIT | 2,022 | WingtipTicketsSaaS-DbPerTenant | JeffBarnard | JavaScript | Code | 10 | 33 | // Write your Javascript code.
$(document).ready(function () {
$('#table_id').DataTable();
});
| 22,404 |
https://github.com/Intemporel/WoWDatabaseEditor/blob/master/WDE.Spells/SpellStore.cs | Github Open Source | Open Source | MIT | 2,022 | WoWDatabaseEditor | Intemporel | C# | Code | 92 | 359 | using System.Collections.Generic;
using System.Linq;
using WDE.Common.DBC;
using WDE.Common.Parameters;
using WDE.Module.Attributes;
namespace WDE.Spells
{
[AutoRegister]
[SingleInstance]
public class SpellStore : ISpellStore
{
private readonly IParameterFactory parameterFactory;
publi... | 18,686 |
https://github.com/LabSocialAffectNeuro/lsan_tools/blob/master/lsan_tools/fmri/postprep.py | Github Open Source | Open Source | MIT | 2,021 | lsan_tools | LabSocialAffectNeuro | Python | Code | 601 | 2,463 | from bids.layout import BIDSLayout
import pandas as pd
import numpy as np
import os
__all__ = ['get_timing','bunch_timing' ]
__author__ = ["Shawn Rhoads"]
class events_class(object):
def __init__(self, base_dir, task_id, sub_ids=None, verbose=True):
assert type(base_dir) == str, "base_dir should be type(... | 17,974 |
https://github.com/itsqubeil/projectskylark/blob/master/app/Controllers/Admin.php | Github Open Source | Open Source | MIT | null | projectskylark | itsqubeil | PHP | Code | 39 | 132 | <?php
namespace App\Controllers;
class Admin extends BaseController
{
public function index()
{
$data['tittle'] = 'home';
return view('admin/index', $data);
}
public function datauser()
{
$data['tittle'] = 'Daftar User';
$users = new \Myth\Auth\Models\UserModel();
... | 36,823 |
https://github.com/WojciechMula/toys/blob/master/fpc-compression/decompress.py | Github Open Source | Open Source | BSD-2-Clause | 2,023 | toys | WojciechMula | Python | Code | 111 | 326 | import sys
import uvint
import io
from pathlib import Path
def main():
path = Path(sys.argv[1])
out = Path(sys.argv[2])
with open(out, 'wb') as f:
decompress(f, path.read_bytes())
def decompress(file, buf):
input = io.BytesIO(buf)
def read_uvint():
return uvint.decode_from_fil... | 36,093 |
https://github.com/Arthur-Maciel/sls-web/blob/master/src/client/src/pages/Experiments/New.vue | Github Open Source | Open Source | MIT | 2,020 | sls-web | Arthur-Maciel | Vue | Code | 326 | 1,236 | <template lang="pug">
div
editable-model-hero(:model="model",:loading="loading",@save="saveModel")
.contents
template(v-if="loading")
p.center
.load.small
em Loading...
template(v-else)
h2 New Experiment
form.full-width-form(@submit.prevent="submitExperiment")
fie... | 11,965 |
https://github.com/saaltone/SANNet/blob/master/src/core/preprocess/OneHotEncoder.java | Github Open Source | Open Source | MIT | 2,022 | SANNet | saaltone | Java | Code | 400 | 1,022 | /*
* SANNet Neural Network Framework
* Copyright (C) 2018 - 2021 Simo Aaltonen
*/
package core.preprocess;
import utils.matrix.MMatrix;
import utils.matrix.Matrix;
import utils.matrix.MatrixException;
import utils.matrix.SMatrix;
import java.util.HashMap;
/**
* Class for one hot encoding data.<br>
*
*/
public... | 29,905 |
https://github.com/exit11/mpcs-banner/blob/master/resources/lang/en/word.php | Github Open Source | Open Source | MIT | null | mpcs-banner | exit11 | PHP | Code | 91 | 306 | <?php
return [
'attr' => [
'code' => 'Code',
'url' => 'Url',
'order' => 'Order',
'type' => 'Type',
'period_from' => 'Period from',
'period_to' => 'Period to',
'released_... | 13,775 |
https://github.com/Mantemanku27/psb-online-laravel-angularjs/blob/master/public/assets/src/formulirs/FormulirsCtrl.js | Github Open Source | Open Source | MIT | 2,017 | psb-online-laravel-angularjs | Mantemanku27 | JavaScript | Code | 510 | 1,613 | 'use strict';
app.controller('FormulirCtrl', ['$scope', 'formulirs', 'SweetAlert','$stateParams', '$http','$timeout', function ($scope, formulirs, SweetAlert,$stateParams) {
//urussan tampilan
$scope.id = $scope.$stateParams.id;
//urussan tampilan
$scope.main = {
page: 1,
term: ''
};
... | 44,986 |
https://github.com/elvisbugs/BoostForArduino/blob/master/src/boost_geometry_core_topological_dimension.hpp | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, BSL-1.0 | 2,021 | BoostForArduino | elvisbugs | C++ | Code | 2 | 18 | #include <boost/geometry/core/topological_dimension.hpp>
| 48,518 |
https://github.com/r4b3rt/kde/blob/master/code-readpad/kernel-schema/include_linux_mutex.h.h | Github Open Source | Open Source | MIT | 2,022 | kde | r4b3rt | C | Code | 26 | 89 |
\n
static inline struct task_struct *__mutex_owner(struct mutex *lock)
static inline bool mutex_is_locked(struct mutex *lock)
static inline__must_check enum mutex_trylock_recursive_enum mutex_trylock_recursive(struct mutex *lock)
\n
3 struct mutex *lock
| 9,818 |
https://github.com/nadavash/SuperGyroBall/blob/master/Assets/Scripts/Helpers.cs | Github Open Source | Open Source | MIT | null | SuperGyroBall | nadavash | C# | Code | 46 | 164 | using UnityEngine;
public static class Helpers
{
public static Quaternion GyroToUnity(Quaternion q)
{
return new Quaternion(q.x, q.y, -q.z, -q.w);
}
public static Vector3 GyroToUnityVector(Vector3 v)
{
return new Vector3(v.x, v.y, -v.z);
}
public static Quaternion Eliminat... | 17,916 |
https://github.com/faydemir1/api-android-sdk/blob/master/app/src/main/java/tr/com/kuveytturk/android/sdk/handlers/AuthorizationHandler.java | Github Open Source | Open Source | MIT | 2,021 | api-android-sdk | faydemir1 | Java | Code | 160 | 640 | /*
* KUVEYT TÜRK PARTICIPATION BANK INC.
*
* Developed under MIT License
* Copyright (c) 2018
*
* Author : Fikri Aydemir
* Last Modified at : 17.04.2018 17:10
*
*
*/
package tr.com.kuveytturk.android.sdk.handlers;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
... | 47,110 |
https://github.com/mehalter/Comonicon.jl/blob/master/test/runtests.jl | Github Open Source | Open Source | MIT | null | Comonicon.jl | mehalter | Julia | Code | 20 | 78 | using Comonicon
using Test
Comonicon.disable_cache()
@testset "codegen" begin
include("codegen.jl")
end
@testset "parse" begin
include("parse.jl")
end
@testset "build" begin
include("build.jl")
end
| 52,106 |
https://github.com/HenriqueDPaula/P2Help_Java_Mvn/blob/master/src/main/java/converter/CategoriaConverter.java | Github Open Source | Open Source | MIT | 2,018 | P2Help_Java_Mvn | HenriqueDPaula | Java | Code | 90 | 301 | package converter;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.FacesConverter;
import model.Categoria;
import service.CategoriaService;
@FacesConverter(value = "categoriaConverter")
public class CategoriaConverter... | 25,014 |
https://github.com/embeddedartistry/embeddedartistry.github.io/blob/master/framework/search/classes_8.js | Github Open Source | Open Source | MIT | 2,021 | embeddedartistry.github.io | embeddedartistry | JavaScript | Code | 6 | 122 | var searchData=
[
['haldriverbase',['HALDriverBase',['../d3/d68/classembvm_1_1_h_a_l_driver_base.html',1,'embvm']]],
['heap',['Heap',['../d9/dad/group___free_r_t_o_s_o_s.html#d5/d07/classos_1_1freertos_1_1_heap',1,'os::freertos']]]
];
| 48,531 |
https://github.com/kukrimate/projects/blob/master/osdev/libefiutil/api/protocol/efi_device_path.h | Github Open Source | Open Source | 0BSD | null | projects | kukrimate | C | Code | 128 | 525 | /*
* EFI device path protocol
*/
#ifndef __EFI_DEVICE_PATH_H
#define __EFI_DEVICE_PATH_H
#define EFI_DEVICE_PATH_PROTOCOL_GUID \
{ 0x09576e91, 0x6d3f, 0x11d2, 0x8e, 0x39, 0x00, 0xa0, 0xc9, 0x69, \
0x72, 0x3b}
typedef struct _efi_device_path_protocol efi_device_path_protocol_t;
struct _efi_device_path_protocol {... | 26,930 |
https://github.com/eddie3716/SESL.NET/blob/master/SESL.NET/Function/FunctionHelper.cs | Github Open Source | Open Source | MS-PL | 2,019 | SESL.NET | eddie3716 | C# | Code | 64 | 254 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SESL.NET.Function
{
public static class FunctionHelper
{
public static IEnumerable<string> GetAllParametersNames<TExternalFunctionKey>(this Function<TExternalFunctionKey> function)
{
foreach (var functionNode in f... | 31,087 |
https://github.com/mafm/irken-compiler/blob/master/self/c.scm | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause | 2,017 | irken-compiler | mafm | Scheme | Code | 3,891 | 10,726 | ;; -*- Mode: Irken -*-
;; provide automatic conversions of base types for inputs to %%cexp
(define (wrap-in type arg)
(match type with
(type:tvar id _) -> arg
(type:pred name predargs _)
-> (match name with
'int -> (format "UNBOX_INTEGER(" arg ")")
'bool -> (format "PXLL_IS_TRUE(" arg ... | 3,275 |
https://github.com/Magic-Fang/MIT-CS6.00/blob/master/Set3_Problem2.py | Github Open Source | Open Source | Giftware, MIT | 2,018 | MIT-CS6.00 | Magic-Fang | Python | Code | 110 | 271 | # Problem 2.
# Write the function subStringMatchExact. This function takes two arguments: a target string,
# and a key string. It should return a tuple of the starting points of matches of the key
# string in the target string, when indexing starts at 0. Complete the definition for
#
# def subStringMatchExact(target,ke... | 51,269 |
https://github.com/m2wasabi/UniPictShare/blob/master/Assets/UniPictShare/Scripts/QRCode.cs | Github Open Source | Open Source | MIT | 2,018 | UniPictShare | m2wasabi | C# | Code | 137 | 482 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using ZXing;
using ZXing.QrCode;
namespace UniPictShare
{
// Inspired from negipoyoc https://negipoyoc.com/blog/making-qrcode-with-unity/
public class QRCodeUtil
{
/// <summary>
/// QRコード読み取り)(返り文字列が-1の場合は、読み込めて... | 99 |
https://github.com/fzheng/js.benchmarks/blob/master/main/hapi/server/auth.js | Github Open Source | Open Source | MIT | 2,018 | js.benchmarks | fzheng | JavaScript | Code | 599 | 2,101 | 'use strict';
const theBcrypt = require('bcrypt');
const myCrypto = require('crypto');
const Joi = require('joi');
let uuid = 1;
const users = {
john: {
username: 'john',
password: '$2a$10$iqJSHD.BGr0E2IxQwYgJmeP3NvhPrXAeLSaGCj6IR/XU5QtjVu5Tm', // 'secret'
name: 'John Doe',
id: '2133d32a'
}
};
/... | 1,852 |
https://github.com/jingjlii/zuims/blob/master/app/view_register/register.js | Github Open Source | Open Source | MIT | 2,015 | zuims | jingjlii | JavaScript | Code | 395 | 1,971 | 'use strict';
angular.module('myApp.register', ['ui.router', 'ngAnimate', 'ui.bootstrap', 'myApp.constants'])
.config(['$stateProvider', function ($stateProvider) {
$stateProvider.state('experience_register', {
url: '/experience_register',
templateUrl: 'view_register/experie... | 20,341 |
https://github.com/qingJiuSmile/MyProject/blob/master/fragment/src/main/java/cn/bulaomeng/fragment/util/page/RequestBase.java | Github Open Source | Open Source | MIT | 2,022 | MyProject | qingJiuSmile | Java | Code | 68 | 212 | package cn.bulaomeng.fragment.util.page;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
/**
* 请求父类
*
* @author tjy
*
*/
public class RequestBase implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(hidden = true)
... | 48,805 |
https://github.com/Rahul18728/cerl/blob/master/async/wiki/async/IoService.h | Github Open Source | Open Source | MIT | 2,022 | cerl | Rahul18728 | C | Code | 611 | 4,965 | /*
@encoding utf8
@ns cerl
@*/
// -------------------------------------------------------------------------
// macro CerlIoService
/** 获得纤程的 FiberData 指针。不建议直接使用该宏。
@arg fiber
一个\<cerl::Fiber>对象句柄。
@return
返回纤程的 FiberData 指针。
@*/
#define CerlFiberData(fiber)
/** 获得纤程的序号。内部使用,不建议直接使用该宏。
@arg fiber
一个\<cerl::Fiber>... | 38,017 |
https://github.com/rkoumis/django-subscribe/blob/master/subscribe/tests/forms_tests.py | Github Open Source | Open Source | MIT | 2,020 | django-subscribe | rkoumis | Python | Code | 129 | 539 | """Tests for the forms of the ``subscriptions`` app."""
from django.test import TestCase
from mixer.backend.django import mixer
from ..forms import SubscriptionCreateForm, SubscriptionDeleteForm
from ..models import Subscription
class SubscriptionCreateFormTestCase(TestCase):
"""Tests for the ``SubscriptionCrea... | 43,350 |
https://github.com/asdlei99/kram/blob/master/libkram/kram/float4a.cpp | Github Open Source | Open Source | Unlicense, Apache-2.0, MIT | 2,021 | kram | asdlei99 | C++ | Code | 32 | 49 | // kram - Copyright 2020 by Alec Miller. - MIT License
// The license and copyright notice shall be included
// in all copies or substantial portions of the Software.
#include "float4a.h"
| 2,323 |
https://github.com/qiuxs1162/cute-framework/blob/master/cute-web/initSql/init.sql | Github Open Source | Open Source | Apache-2.0 | null | cute-framework | qiuxs1162 | SQL | Code | 70 | 267 | CREATE TABLE `request_log`(
`id` BIGINT(20) NOT NULL PRIMARY KEY ,
`api_key` VARCHAR(100) NOT NULL COMMENT'接口号',
`server_id` VARCHAR(20) NOT NULL COMMENT'服务器id',
`req_ip` VARCHAR(50) NOT NULL COMMENT'请求ip',
`req_url` VARCHAR(500) NOT NULL COMMENT'requestUrl',
`req_start_time` DATETIME(3) NOT NULL COMMENT'请求开始时间',... | 38,229 |
https://github.com/arringtonm/frontend-bootcamp/blob/master/step1-07/exercise/src/components/TodoList.tsx | Github Open Source | Open Source | CC-BY-4.0, MIT, LicenseRef-scancode-generic-cla | 2,022 | frontend-bootcamp | arringtonm | TSX | Code | 95 | 262 | import React from 'react';
import { TodoListItem } from './TodoListItem';
import { FilterTypes, Todos } from '../TodoApp.types';
interface TodoListProps {
filter: FilterTypes;
toggleCompleted: (id: string) => void;
todos: Todos;
}
export const TodoList = (props: TodoListProps) => {
const { filter, todos, togg... | 12,276 |
https://github.com/Prezent/doctrine-translatable/blob/master/src/Entity/AbstractTranslatable.php | Github Open Source | Open Source | MIT | 2,022 | doctrine-translatable | Prezent | PHP | Code | 150 | 449 | <?php
/*
* (c) Prezent Internet B.V. <info@prezent.nl>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Prezent\Doctrine\Translatable\Entity;
use Doctrine\ORM\Mapping as ORM;
use Prezent\Doctrine\Translatable\Translatable... | 39,007 |
https://github.com/n-peugnet/wcms/blob/master/app/class/Summary.php | Github Open Source | Open Source | MIT | 2,022 | wcms | n-peugnet | PHP | Code | 359 | 985 | <?php
namespace Wcms;
class Summary extends Item
{
/** @var string full regex match */
protected $fullmatch;
/** @var string full options code line */
protected $options = '';
/** @var int Minimum summary level*/
protected $min = 1;
/** @var int Maximum summary level*/
protected $ma... | 20,445 |
https://github.com/UjjwalDeep/digits-android/blob/master/digits/src/androidTest/java/com/digits/sdk/android/DigitsClientTests.java | Github Open Source | Open Source | Apache-2.0 | null | digits-android | UjjwalDeep | Java | Code | 659 | 2,469 | /*
* Copyright (C) 2015 Twitter, 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 agr... | 36,130 |
https://github.com/mkaouer/Code-Smells-Detection-in-JavaScript/blob/master/JS-CS-Detection-byExample/Dataset (ALERT 5 GB)/362855/quickfix-1.7.0/quickfix-1.7.0/src/java/src/quickfix/field/CollRespID.java | Github Open Source | Open Source | BSD-2-Clause, LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,022 | Code-Smells-Detection-in-JavaScript | mkaouer | Java | Code | 32 | 99 | package quickfix.field;
import quickfix.StringField;
import java.util.Date;
public class CollRespID extends StringField
{
public static final int FIELD = 904;
public CollRespID()
{
super(904);
}
public CollRespID(String data)
{
super(904, data);
}
}
| 12,474 |
https://github.com/gravitee-io/gravitee-docs/blob/master/pages/apim/3.x/installation-guide/configuration/gateway/installation-guide-gateway-technical-api.adoc | Github Open Source | Open Source | Apache-2.0 | 2,023 | gravitee-docs | gravitee-io | AsciiDoc | Code | 156 | 580 | [[gravitee-installation-management-api-technical-api]]
= Configure the APIM Gateway internal API
:page-sidebar: apim_3_x_sidebar
:page-permalink: apim/3.x/apim_installguide_gateway_technical_api.html
:page-folder: apim/installation-guide/gateway
:page-description: Gravitee.io API Management - Gateway - Technical API
:p... | 16,194 |
https://github.com/valeriecamejo/fantasy-cobra/blob/master/app/Http/Controllers/StatController.php | Github Open Source | Open Source | MIT | null | fantasy-cobra | valeriecamejo | PHP | Code | 52 | 164 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\StatsApi\PlayerStatsApi;
use Illuminate\Support\Facades\Session;
use App\Console\Commands\DailyTasksCommand;
class StatController extends Controller
{
/**********************************
* Create a new controller instance.
* @param void
* @r... | 10,464 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.