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/pervez-ali/jkeleccity/blob/master/resources/views/livewire/sale-return/manage-form.blade.php
Github Open Source
Open Source
MIT
null
jkeleccity
pervez-ali
PHP
Code
584
2,449
<div> <div class="row"> <div class="col-lg-12"> <div class="card"> <div class="card-body"> <div class="form-row"> <div class="form-group col-sm-4 col-md-3 mb-0"> <label for="sale_id">Invoice No *</label> <select wire:model.lazy="sale_id" class="selec...
28,517
https://github.com/DemarLee/JuneeApp/blob/master/src/screens/Core/ReturnBowlStep2.tsx
Github Open Source
Open Source
MIT
2,022
JuneeApp
DemarLee
TypeScript
Code
40
130
import React from "react"; import { ReturnBowlStep2Form } from "@junee/components/ReturnBowl"; type Props = { navigation: any; }; export default function ReturnBowlStep2({ navigation }: Props) { return ( <ReturnBowlStep2Form onCancelReturn={() => navigation.navigate("Main")} onBack={() => navigati...
15,169
https://github.com/chromium/chromium/blob/master/chrome/browser/login_detection/login_detection_keyed_service_factory.cc
Github Open Source
Open Source
BSD-3-Clause
2,023
chromium
chromium
C++
Code
154
601
// 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. #include "chrome/browser/login_detection/login_detection_keyed_service_factory.h" #include "base/no_destructor.h" #include "chrome/browser/login_detection/login_detection_keye...
45,822
https://github.com/ankurshukla1993/IOT-test/blob/master/coeey/io/realm/internal/IOException.java
Github Open Source
Open Source
Apache-2.0
2,021
IOT-test
ankurshukla1993
Java
Code
30
84
package io.realm.internal; public class IOException extends RuntimeException { public IOException(Throwable cause) { super(cause); } public IOException(String message) { super(message); } public IOException(String message, Throwable cause) { super(message, cause); } }
29,650
https://github.com/bopopescu/pressie/blob/master/attic/presto-wrmsr-launcher/src/main/java/org/xeustechnologies/jcl/proxy/JdkProxyProvider.java
Github Open Source
Open Source
Apache-2.0
null
pressie
bopopescu
Java
Code
210
485
/** * * Copyright 2015 Kamran Zafar * * 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...
31,680
https://github.com/Megapop/Norad-Eduapp4syria/blob/master/Sima/Kukua/cocosstudio/WatchmanScene/CSD/Watchman_Skin/Ep_7/skin_2.csd
Github Open Source
Open Source
BSD-2-Clause
null
Norad-Eduapp4syria
Megapop
Csound
Code
3,651
18,398
<GameFile> <PropertyGroup Name="skin_2" Type="Skeleton" ID="7404f766-a342-4b11-b7d9-f79371df3cec" Version="3.10.0.0" /> <Content ctype="GameProjectContent"> <Content> <Animation Duration="280" Speed="1.0000" ActivedAnimationName="talk"> <Timeline ActionTag="-2120081515" Property="Position"> ...
25,643
https://github.com/krish-sumaroo/ktl/blob/master/app/views/master.blade.php
Github Open Source
Open Source
MIT
null
ktl
krish-sumaroo
PHP
Code
64
374
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Books</title> <link rel="stylesheet" type="text/css" href="{{asset('bootstrap/css/bootstrap.css')}}"> <link rel="stylesheet" type="text/css" href="{{asset('css/main.css')}}"> <link rel="stylesheet" type="text/css" href="{{asset('slider/css...
16,550
https://github.com/oneiros/alchemy_cms/blob/master/app/models/alchemy/essence_node.rb
Github Open Source
Open Source
BSD-3-Clause
2,022
alchemy_cms
oneiros
Ruby
Code
36
137
# frozen_string_literal: true module Alchemy class EssenceNode < BaseRecord acts_as_essence( ingredient_column: :node, preview_text_column: :node_name, belongs_to: { class_name: "Alchemy::Node", foreign_key: :node_id, inverse_of: :essence_nodes, optional: true, ...
29,752
https://github.com/matthewharwood/gatsby-portfolio/blob/master/src/components/@design-system/block-container.stories.tsx
Github Open Source
Open Source
MIT
null
gatsby-portfolio
matthewharwood
TypeScript
Code
1,422
6,482
import React from 'react'; import { storiesOf } from '@storybook/react'; import { boolean, select, text } from '@storybook/addon-knobs'; import { LightThemeMove } from 'baseui'; import { AspectRatioBox, AspectRatioBoxBody } from 'baseui/aspect-ratio-box'; import { H1, Paragraph1 } from 'baseui/typography'; import { Bu...
50,626
https://github.com/pulawskk/portfolio/blob/master/src/test/java/com/pulawskk/demobootstrap4portfolio/controllers/EmailControllerTest.java
Github Open Source
Open Source
MIT
null
portfolio
pulawskk
Java
Code
173
936
package com.pulawskk.demobootstrap4portfolio.controllers; import com.pulawskk.demobootstrap4portfolio.models.Email; import com.pulawskk.demobootstrap4portfolio.services.JmsBrokerService; import com.pulawskk.demobootstrap4portfolio.services.impl.EmailServiceImpl; import com.pulawskk.demobootstrap4portfolio.services.imp...
32,432
https://github.com/Dino97/Kinemo/blob/master/engine/src/lua/Lua_Input.h
Github Open Source
Open Source
MIT
2,022
Kinemo
Dino97
C++
Code
88
424
#pragma once #include "app/Input.h" #include <lua.hpp> #include <iostream> #define LUA_FUNC(func) int func(lua_State* L) LUA_FUNC(GetButtonDown) { int button = lua_tonumber(L, -1); bool ret = Kinemo::Input::GetKeyDown(button); lua_pushboolean(L, ret); return 1; } LUA_FUNC(GetMouseButtonDown) { ...
17,337
https://github.com/shirdonl/goWebActualCombat/blob/master/chapter6/reg5.go
Github Open Source
Open Source
MIT
2,022
goWebActualCombat
shirdonl
Go
Code
46
233
//++++++++++++++++++++++++++++++++++++++++ // 《Go Web编程实战派从入门到精通》源码 //++++++++++++++++++++++++++++++++++++++++ // Author:廖显东(ShirDon) // Blog:https://www.shirdon.com/ // 仓库地址:https://gitee.com/shirdonl/goWebActualCombat // 仓库地址:https://github.com/shirdonl/goWebActualCombat //++++++++++++++++++++++++++++++++++++++++ pac...
5,622
https://github.com/mateor/auto-patcher/blob/master/patches/openpdroid/4.4/.aosp-slim/20131113/stock-services/smali/com/android/server/am/ActivityManagerService$7.smali
Github Open Source
Open Source
MIT
2,021
auto-patcher
mateor
Smali
Code
182
971
.class Lcom/android/server/am/ActivityManagerService$7; .super Landroid/content/BroadcastReceiver; .source "ActivityManagerService.java" # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Lcom/android/server/am/ActivityManagerService;->finishBooting()V .end annotation .annotation system...
17,198
https://github.com/North-West-Wind/ALICE/blob/master/commands/fun/thx.js
Github Open Source
Open Source
MIT
2,021
ALICE
North-West-Wind
JavaScript
Code
18
65
module.exports = { name: 'thx', description: 'Thanks the bot.', category: 3, execute(message) { message.channel.send(`You're welcome, <@${message.author.id}>`); }, };
31,718
https://github.com/udit-mehta/cse170-GoogleAnalytics-Temp/blob/master/routes/profile.js
Github Open Source
Open Source
MIT
null
cse170-GoogleAnalytics-Temp
udit-mehta
JavaScript
Code
76
279
/* * GET profile page. */ exports.updateProfile = function (req, res) { var fs = require('fs'); var fileName = '../data.json'; var destination = './data.json'; var file = require(fileName); console.log(req.body); if( req.body.email ) file.email = req.body.email; if( req.body.password ) file.pas...
5,024
https://github.com/aliostad/deep-learning-lang-detection/blob/master/data/train/ruby/e7e1781591ef912de33b8bead1ee06df21f60035admin_controller_test.rb
Github Open Source
Open Source
MIT
2,021
deep-learning-lang-detection
aliostad
Ruby
Code
67
184
require 'test_helper' class AdminControllerTest < ActionController::TestCase test "should get index" do get :index assert_response :success end test "should get manage" do get :manage assert_response :success end test "should get user_manage" do get :user_manage assert_response :suc...
24,017
https://github.com/tvastar/gotools/blob/master/pkg/dochtml/file_linker.go
Github Open Source
Open Source
MIT
null
gotools
tvastar
Go
Code
143
367
package dochtml import ( "errors" "flag" "regexp" "strings" ) // type assertion var _ flag.Value = &FileLinker{} // FileLinker linkifies source files. type FileLinker struct { matches []*regexp.Regexp replacements []string } // String is not yet implemented. func (f *FileLinker) String() string { return...
49,713
https://github.com/curiousleo/liquidhaskell/blob/master/benchmarks/popl18/nople/todo/Soundness.hs
Github Open Source
Open Source
MIT, BSD-3-Clause
2,022
liquidhaskell
curiousleo
Haskell
Code
1,048
2,135
{-@ LIQUID "--higherorder" @-} {-@ LIQUID "--totality" @-} {-@ LIQUID "--exact-data-cons" @-} module Soundness where import Prelude hiding (Maybe(..)) import Proves data Maybe a = Nothing | Just a deriving (Show, Eq) {-@ data Maybe a = Nothing | Just {select_Just_1 :: a} @-} {-@ measure is...
34,672
https://github.com/venkatesh87/emmancipate-btm-exam/blob/master/src/routes/Home/components/Home.js
Github Open Source
Open Source
MIT
2,018
emmancipate-btm-exam
venkatesh87
JavaScript
Code
41
155
import React from "react"; import "./Home.scss"; import Cluster from "./Cluster"; import Header from "../../../components/Header"; class Home extends React.Component { componentDidMount(){ console.log(this.props); } render() { return ( <div> <Header history={this.props.history} selectedCol...
50,089
https://github.com/SergeWilfried/celodart/blob/master/lib/src/utils/uuid.dart
Github Open Source
Open Source
MIT
2,020
celodart
SergeWilfried
Dart
Code
51
166
import 'dart:typed_data'; import 'package:uuid/uuid.dart'; final _uuid = Uuid(); /// Formats the [uuid] bytes as an uuid. String formatUuid(List<int> uuid) => _uuid.unparse(uuid); /// Generates a v4 uuid. Uint8List generateUuidV4() { final buffer = Uint8List(16); _uuid.v4buffer(buffer); return buffer; } Uint...
41,149
https://github.com/ryan-ohern/primevue/blob/master/src/components/paginator/Paginator.d.ts
Github Open Source
Open Source
MIT
null
primevue
ryan-ohern
TypeScript
Code
78
254
export interface PageState { first: number, rows: number, page: number, pageCount: number } interface PaginatorProps { totalRecords?: number; rows?: number; first?: number; pageLinkSize?: number; rowsPerPageOptions?: any[]; template?: string; currentPageReportTemplate?: any;...
55,799
https://github.com/Kyrtapz/devmaster/blob/master/.provisioners/_scripts/shell.sh
Github Open Source
Open Source
MIT
2,022
devmaster
Kyrtapz
Shell
Code
7
23
#!/usr/bin/env bash chsh -s $(which zsh) vagrant
27,630
https://github.com/muhammadali8767/afanasiev/blob/master/resources/views/blog/admin/includes/category_edit_main_col.blade.php
Github Open Source
Open Source
MIT
null
afanasiev
muhammadali8767
PHP
Code
78
344
<div class="card"> <div class="card-header"> <h2 class="d-inline">Categories</h2> </div> <div class="card-body"> <div class="form-group"> <label>Title</label> <input class="form-control" type="text" name="title" required value="{{ old('title', $item->title) }}" /> ...
23,617
https://github.com/1090206931/blog/blob/master/application/index/controller/Article.php
Github Open Source
Open Source
Apache-2.0
null
blog
1090206931
PHP
Code
29
116
<?php namespace app\index\controller; use think\Controller; class Article extends Controller { public function articleDetail() { $id = Request()->get('id'); $obj = new \app\admin\model\Article(); $data = $obj->where('art_id',$id)->find(); $this->assign('data',$data); return $this->fetch('article_detail');...
47,336
https://github.com/moritzmock/react-material-icons/blob/master/src/IconEdit.tsx
Github Open Source
Open Source
MIT
null
react-material-icons
moritzmock
TypeScript
Code
55
236
import React from 'react' import { IconProps } from './types' const IconEdit: React.FC<IconProps> = ({ ...props }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}> {props.title && <title>{props.title}</title>} <path d="M0 0h24v24H0z" fill="none" /> <path d="M3 17.25V21h3.75L17...
41,234
https://github.com/we-sh/we-sh/blob/master/srcs/parser/build/parser_build_list_unstack_lexer_var.c
Github Open Source
Open Source
Apache-2.0
null
we-sh
we-sh
C
Code
68
276
#include "parser.h" static t_argv *s_argv_alloc(void) { t_argv *argument; argument = (t_argv *)malloc(sizeof(t_argv)); if ((argument->buffer = ft_strnew(0)) == NULL) return (NULL); argument->is_null = 1; return (argument); } int parser_build_list_unstack_lexer_var(t_parser *parser, t_lexer *lexer, in...
53,133
https://github.com/w2h/SomeTool/blob/master/Entry/src/def/ProtocolDef.as
Github Open Source
Open Source
MIT
2,021
SomeTool
w2h
null
Spoken
27
69
package def { public class ProtocolDef { public static const HELLO:uint = 1001; public static const HELLO_DELAY:uint = 30000; public function ProtocolDef() { super(); } } }
2,741
https://github.com/Nsiem/Outlloud/blob/master/server/src/post_like.js
Github Open Source
Open Source
MIT
2,021
Outlloud
Nsiem
JavaScript
Code
80
402
const posts = require('../models/posts') const liked = (req,res,next) => { var likevar = 1 posts.findById(req.params.post_id).then((result) => { if(result.liked_by.includes(req.user.username)) { result.liked_by.splice(result.liked_by.indexOf(req.user.username), 1) result.like_c...
20,744
https://github.com/GrieferAtWork/deemon/blob/master/src/deemon/objects/instancemethod.c
Github Open Source
Open Source
Zlib
2,021
deemon
GrieferAtWork
C
Code
1,454
5,195
/* Copyright (c) 2018-2021 Griefer@Work * * * * This software is provided 'as-is', without any express or implied * * warranty. In no event will the authors be held liable for any damages * ...
50,442
https://github.com/tomkenner/pluto_grid/blob/master/test/src/manager/state/column_state_test.dart
Github Open Source
Open Source
MIT
2,021
pluto_grid
tomkenner
Dart
Code
2,099
8,189
import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/mockito.dart'; import 'package:pluto_grid/pluto_grid.dart'; import '../../../helper/column_helper.dart'; import '../../../helper/row_helper.dart'; import '../../../mock/mock_on_change_listener.dart'; void ...
20,245
https://github.com/mikemccllstr/CanaryLib/blob/master/src/main/java/net/canarymod/api/entity/WitherSkull.java
Github Open Source
Open Source
Unlicense
2,020
CanaryLib
mikemccllstr
Java
Code
73
191
package net.canarymod.api.entity; /** * WitherSkull wrapper * * @author Jason (darkdiplomat) */ public interface WitherSkull extends Fireball, Explosive { /** * Gets if the WitherSkull comes from an invulnerable WitherBoss * * @return {@code true} if invulnerable; {@code false} if not */ ...
55,981
https://github.com/uvasomrc/ed-platform/blob/master/backend/migrations/versions/e0a08c6a0885_.py
Github Open Source
Open Source
MIT
null
ed-platform
uvasomrc
Python
Code
144
680
"""empty message Revision ID: e0a08c6a0885 Revises: cfc0359a9884 Create Date: 2017-10-16 13:29:30.982961 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'e0a08c6a0885' down_revision = 'cfc0359a9884' branch_labels = None depends_on = None def upgrade(): # ...
21,237
https://github.com/stagas/hiphap/blob/master/examples/webgain/Makefile
Github Open Source
Open Source
0BSD
null
hiphap
stagas
Makefile
Code
126
390
#!/usr/bin/make -f # Makefile for DISTRHO Plugins # # ---------------------------- # # Created by falkTX # # -------------------------------------------------------------- # Project name, used for binaries NAME = d_webgain # -------------------------------------------------------------- # Project version, used for g...
36,210
https://github.com/910938775/FilmSalon/blob/master/controllers/Handle.js
Github Open Source
Open Source
MIT
null
FilmSalon
910938775
JavaScript
Code
2,019
7,185
/** 封装 数据处理方法 **/ // 导入 文件操作 模块 var fs = require('fs') // 导入 MD5 加密模块 var MD5 = require('blueimp-md5') /** 获取 文件夹目录 * @param dir 文件夹路径 */ exports.FindDir = function(dir) { // 处理 异步函数 readdir 的 Promise 函数 return new Promise(function(resolve, reject) { // 声明 储存目录名 的数组变量 fs.readdir(dir, fun...
35,775
https://github.com/Boyquotes/scifi-tactics/blob/master/assets/models/shaders/tile_hologram.shader
Github Open Source
Open Source
MIT
2,019
scifi-tactics
Boyquotes
GLSL
Code
85
291
shader_type spatial; render_mode unshaded, world_vertex_coords; uniform sampler2D image; uniform sampler2D flicker_image; uniform vec3 color_influence; uniform float alpha; void fragment() { float pos_scale = (inverse(INV_CAMERA_MATRIX) * vec4(VERTEX, 1.0)).x / 20.0; pos_scale = pos_scale + (inverse(INV_CAMERA_MATR...
44,237
https://github.com/cdowebcast/koel/blob/master/resources/assets/js/tests/utils/allTest.js
Github Open Source
Open Source
MIT
2,017
koel
cdowebcast
JavaScript
Code
89
292
require('chai').should() import { secondsToHis, parseValidationError } from '../../utils' describe('services/utils', () => { describe('#secondsToHis', () => { it('correctly formats a duration to H:i:s', () => { secondsToHis(7547).should.equal('02:05:47') }) it('ommits hours from short duration wh...
8,102
https://github.com/ix4/text-image-generator/blob/master/vue-3-options-api/src/constants.js
Github Open Source
Open Source
MIT
2,022
text-image-generator
ix4
JavaScript
Code
185
517
export const BASELINES = [ { id: 1, name: 'top' }, { id: 2, name: 'hanging' }, { id: 3, name: 'middle' }, { id: 4, name: 'alphabetic' }, { id: 5, name: 'ideographic' }, { id: 6, name: 'bottom' } ] export const FONTS = [ 'arial', 'verdana', '...
40,318
https://github.com/kovetskiy/dotfiles/blob/master/bin/hostsctl
Github Open Source
Open Source
MIT
2,023
dotfiles
kovetskiy
Shell
Code
43
154
#!/bin/bash set -euo pipefail _path=~/.cache/StevenBlack/hosts if [[ ! -f $_path ]]; then echo :: fetching https://github.com/StevenBlack/hosts mkdir -p ~/.cache/StevenBlack curl https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts \ | sed -r '/^#/d' \ | sponge $_path fi sud...
22,841
https://github.com/Kruidenrekje/SeGa/blob/master/resources/views/add-to-project.blade.php
Github Open Source
Open Source
MIT
2,017
SeGa
Kruidenrekje
Blade
Code
71
317
@extends('layouts.app') @section('content') <div class="container"> <title>Add to Project</title> <h1>Add to Project</h1> <h4>You chose the mechanic:</h4> <table class="table table-bordered" style="background-color: white" name="Mechanics"> <tr> <th>Name</th> <th>Description</th> ...
10,008
https://github.com/zhouk/new-dl-ux/blob/master/preview_tip/Download Center_files/site.js
Github Open Source
Open Source
MIT
2,013
new-dl-ux
zhouk
JavaScript
Code
176
1,074
$().ready(function(){ $('.google form input[type=text]').focus(function(){ $(this).css("background", "none"); }); $('.google form input[type=text]').blur(function(){ if($(this).val() == '') $(this).attr("style", ""); }); $('input[type=checkbox]').addClass('checkbox'); }); function popWin (url){ ...
11,410
https://github.com/zhengwanshi/BearLiveApp/blob/master/app/src/main/java/imooc/com/bearlive/view/ChatMsgListView.java
Github Open Source
Open Source
Apache-2.0
null
BearLiveApp
zhengwanshi
Java
Code
377
1,522
package imooc.com.bearlive.view; import android.app.Activity; import android.content.Context; import android.text.TextUtils; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.BaseAdapte...
48,315
https://github.com/fniephaus/Bloc/blob/master/src/Bloc.package/BlChildrenArray.class/instance/ifEmpty..st
Github Open Source
Open Source
MIT
2,016
Bloc
fniephaus
null
Spoken
6
16
testing ifEmpty: aBlock array ifEmpty: aBlock
45,751
https://github.com/ocalvet/stocks-pwa/blob/master/src/components/Symbol.js
Github Open Source
Open Source
MIT
null
stocks-pwa
ocalvet
JavaScript
Code
69
227
import React from 'react'; import Paper from 'material-ui/Paper'; import {withStyles} from 'material-ui'; const styles = theme => ({ spacing: theme.mixins.gutters({ paddingTop: 16, paddingBottom: 16, marginTop: theme.spacing.unit * 3, }), data: { display: 'flex', width: '100%', justifyCon...
24,956
https://github.com/agigleux/perf-agent/blob/master/src/main/java/org/perf/agent/metrics/Measured.java
Github Open Source
Open Source
Apache-2.0
null
perf-agent
agigleux
Java
Code
7
22
package org.perf.agent.metrics; public @interface Measured { }
52,018
https://github.com/hope-mbuthye38/hoodygosi/blob/master/hoodyhood/admin.py
Github Open Source
Open Source
MIT
2,021
hoodygosi
hope-mbuthye38
Python
Code
23
94
from django.contrib import admin from .models import estatedomin, News, Business, Police, Hospital,Profile # Register your models here. admin.site.register(estatedomin) admin.site.register(News) admin.site.register(Business) admin.site.register(Police) admin.site.register(Hospital) admin.site.register(Profile)
41,651
https://github.com/charlieliu/CI3/blob/master/application/views/svg_test/svg_test_view.php
Github Open Source
Open Source
MIT
null
CI3
charlieliu
PHP
Code
373
1,480
<div id="body"> <div> <p>矩形 rect x="5" y="5" width="50" height="50"</p> <ul> <li>x = X 座標</li> <li>y = Y 座標</li> <li>width = 寬度</li> <li>height = 高度</li> </ul> <svg width="100%" height="100" version="1.1"> <rect x="5" y="5"...
17,409
https://github.com/cloudless-hq/atreyu/blob/master/app/src/schema/default-routes.js
Github Open Source
Open Source
Apache-2.0
null
atreyu
cloudless-hq
JavaScript
Code
161
495
import falcorPaths from './falcor-paths.js' import windowPaths from './window-paths.js' import { toFalcorPaths, toWindowPaths} from './helpers.js' // TODO: normalize leading slashes warn or auto handle missing leading slashes // TODO: support * methods? export default { ...toFalcorPaths(falcorPaths), ...toWindo...
42,072
https://github.com/JazminVS/dilimedi/blob/master/app/Http/Controllers/Doctor/PacienteController.php
Github Open Source
Open Source
MIT
null
dilimedi
JazminVS
PHP
Code
44
215
<?php namespace App\Http\Controllers\Doctor; use Illuminate\Http\Request; use App\Paciente; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\DB; class PacienteController extends Controller { public function index() { $pacientes=Paciente::all(); return view ('doctor.paciente...
7,446
https://github.com/nandx/report-invoice/blob/master/sql/VW_RPTINV_ASPURJAB.sql
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,021
report-invoice
nandx
SQL
Code
91
352
CREATE VIEW dbo.VW_RPTINV_ASPURJAB AS SELECT ( SELECT COUNT(st.TAHUN) AS JMLPST FROM tl_individu_standard st WHERE st.POLICYNO = tl.POLICYNO AND st.BULAN = tl.TEMP_BULAN AND st.TAHUN = tl.TEMP_TAHUN AND st.ID_CHILD = tl.ID_CHILD AND st.IDDIVISION = tl.IDDIVISION AND st.IDSUB = tl.IDSUB AND st.STAT...
11,844
https://github.com/diogogmt/yaml-cli/blob/master/match.go
Github Open Source
Open Source
MIT
2,019
yaml-cli
diogogmt
Go
Code
143
409
package yaml import ( "strings" "github.com/pkg/errors" "gopkg.in/yaml.v3" ) func (t *Transformation) MustMatchAll(doc *yaml.Node) (bool, error) { for path, want := range t.Matches { selectors := strings.Split(path, ".") got, err := findNode(doc.Content[0], selectors, false) if err != nil { return false...
27,486
https://github.com/amahussein/vespa/blob/master/metrics/src/vespa/metrics/common/memory_usage_metrics.cpp
Github Open Source
Open Source
Apache-2.0
2,020
vespa
amahussein
C++
Code
93
314
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "memory_usage_metrics.h" #include <vespa/vespalib/util/memoryusage.h> namespace metrics { MemoryUsageMetrics::MemoryUsageMetrics(metrics::MetricSet* parent) : MetricSet("memory_usage", ...
29,796
https://github.com/lguzzon-scratchbook/Stacer/blob/master/src/index.js
Github Open Source
Open Source
MIT
2,017
Stacer
lguzzon-scratchbook
JavaScript
Code
23
66
import App from './components/App' window.vm = new Vue({ el: 'app', components: { 'app': App }, mounted() { setTimeout(() => document.getElementById('loading').remove(), 2000) } })
24,264
https://github.com/moonrhythm/parapet/blob/master/pkg/host/tolower.go
Github Open Source
Open Source
MIT
2,023
parapet
moonrhythm
Go
Code
38
146
package host import ( "net/http" "strings" "github.com/moonrhythm/parapet" ) // ToLower converts request's host to lowercase func ToLower() parapet.Middleware { return parapet.MiddlewareFunc(func(h http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { r.Host = s...
55,576
https://github.com/deyh2020/PyQuantum/blob/master/T_click/l001g/50ns/t0/276.pkl
Github Open Source
Open Source
MIT
2,020
PyQuantum
deyh2020
Pickle
Code
22
253
(lp0 F7.499999999999962e-07 aF3.500000000000018e-07 aF6.999999999999977e-07 aF4.50000000000004e-07 aF5.500000000000024e-07 aF5.000000000000039e-07 aF9.999999999999989e-08 aF8.499999999999931e-07 aF7.999999999999947e-07 aF1.9999999999999946e-07 aF2.4999999999999957e-07 aF9.999999999999989e-08 aF5.000000000000004e-08 aF6...
7,631
https://github.com/sujeetmalvi/shopsunflower/blob/master/application/modules/colour/models/Colour_model.php
Github Open Source
Open Source
MIT
null
shopsunflower
sujeetmalvi
PHP
Code
410
1,524
<?php class Colour_model extends CI_Model { function __construct() { parent::__construct(); } public function get_colour_list(){ //$status = ($this->uri->segment(3))?$this->uri->segment(3):'0'; $sql = "SELECT * FROM ColourMaster WHERE 1 ORDER BY ColourName ASC"; $query =...
17,000
https://github.com/Habeeb08/hmda-platform/blob/master/hmda-spark-reporting/src/main/scala/com/hmda/reports/DisclosureReports.scala
Github Open Source
Open Source
CC0-1.0
null
hmda-platform
Habeeb08
Scala
Code
297
1,389
package com.hmda.reports import akka.Done import akka.actor.ActorSystem import akka.kafka.scaladsl.Consumer import akka.kafka.scaladsl.Consumer.DrainingControl import akka.kafka.{ConsumerSettings, Subscriptions} import akka.stream._ import akka.stream.alpakka.s3.ApiVersion.ListBucketVersion2 import akka.stream.alpakka...
50,897
https://github.com/prateekoli8/Live-Subscriber-Counter/blob/master/src/app/app.component.ts
Github Open Source
Open Source
MIT
2,021
Live-Subscriber-Counter
prateekoli8
TypeScript
Code
92
386
import { Component, OnInit, OnDestroy } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Router } from '@angular/router'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent implements OnInit , On...
52,491
https://github.com/open-mpi/ompi-www/blob/master/community/lists/devel/2014/05/14904.php
Github Open Source
Open Source
BSD-3-Clause
2,023
ompi-www
open-mpi
PHP
Code
839
2,619
<? $subject_val = "Re: [OMPI devel] RFC: add STCI component to OMPI/RTE framework"; include("../../include/msg-header.inc"); ?> <!-- received="Thu May 29 09:59:54 2014" --> <!-- isoreceived="20140529135954" --> <!-- sent="Thu, 29 May 2014 13:59:52 +0000" --> <!-- isosent="20140529135952" --> <!-- name="Jeff Squyres (js...
49,622
https://github.com/Tino-FRC-2473/FRC2021/blob/master/src/main/java/frc/robot/commands/StraightLineAuto.java
Github Open Source
Open Source
BSD-3-Clause
null
FRC2021
Tino-FRC-2473
Java
Code
141
456
package frc.robot.commands; import edu.wpi.first.wpilibj2.command.CommandBase; import edu.wpi.first.wpilibj2.command.PrintCommand; import frc.robot.subsystems.DriveSubsystem; import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; public class StraightLineAuto extends CommandBase { DriveSubsystem driveSubs...
25,662
https://github.com/RedWagon/cad/blob/master/vent.scad
Github Open Source
Open Source
Unlicense
null
cad
RedWagon
null
Spoken
113
606
extrusion_width=0.35; layer_height=0.25; wall=1; slat_h=extrusion_width*2; slat_angle=40; inner_h=20; outer_h=layer_height*2; inner_wall=extrusion_width*2; inner=106; outer_wall=20; outer=inner+outer_wall*2; slat_gap=inner_h; wire=11; wire_h=wire*1.5; wire_wall=inner_wall; pad=0.1; padd=pad*2; $fn=200; module posit...
45,212
https://github.com/hankchan/bbb-image-builder/blob/master/publish/bb.org_4gb_stable.sh
Github Open Source
Open Source
MIT
null
bbb-image-builder
hankchan
Shell
Code
169
949
#!/bin/bash -e time=$(date +%Y-%m-%d) DIR="$PWD" ssh_user="buildbot@beagleboard.org" rev=$(git rev-parse HEAD) branch=$(git describe --contains --all HEAD) server_dir="/var/lib/buildbot/masters/kernel-buildbot/public_html/images/${branch}/${rev}" export apt_proxy=localhost:3142/ ##Debian 7: #image_name="debian-7.8-...
26,630
https://github.com/sth-larp/deus-server/blob/master/utils.ts
Github Open Source
Open Source
Apache-2.0
2,019
deus-server
sth-larp
TypeScript
Code
343
1,001
import * as express from 'express'; import * as moment from 'moment'; import * as PouchDB from 'pouchdb'; import * as PouchDBFind from 'pouchdb-find'; PouchDB.plugin(PouchDBFind); import { NotFoundError, UnauthorizedError } from 'routing-controllers'; import { Container } from 'typedi'; import { AliceAccount } from '....
310
https://github.com/tachyonbrush/tiny-differentiable-simulator/blob/master/test/rbdl_test_utils.hpp
Github Open Source
Open Source
Apache-2.0
2,021
tiny-differentiable-simulator
tachyonbrush
C++
Code
1,450
5,470
#include <cassert> #include <chrono> #include <cstdio> #include <thread> // #define DEBUG 1 // #define USE_MATPLOTLIB 1 #include "base.hpp" #include "dynamics/forward_dynamics.hpp" #include "dynamics/integrator.hpp" #include "dynamics/jacobian.hpp" #include "dynamics/kinematics.hpp" #include "math/tiny/tiny_algebra...
33,156
https://github.com/blheson/hedera-nft-auction-demo/blob/master/hedera-nft-auction-demo-java-node/src/main/java/com/hedera/demo/auction/exerciser/CreateAccount.java
Github Open Source
Open Source
Apache-2.0
2,021
hedera-nft-auction-demo
blheson
Java
Code
176
597
package com.hedera.demo.auction.exerciser; import com.hedera.demo.auction.app.HederaClient; import com.hedera.hashgraph.sdk.AccountCreateTransaction; import com.hedera.hashgraph.sdk.Client; import com.hedera.hashgraph.sdk.Hbar; import com.hedera.hashgraph.sdk.PrivateKey; import com.hedera.hashgraph.sdk.Status; import ...
32,648
https://github.com/Snownee/Cuisine/blob/master/src/main/java/snownee/cuisine/blocks/BlockBamboo.java
Github Open Source
Open Source
MIT
2,022
Cuisine
Snownee
Java
Code
994
4,405
package snownee.cuisine.blocks; import java.util.ArrayList; import java.util.List; import java.util.Map.Entry; import com.google.common.collect.ImmutableMap; import net.minecraft.block.material.Material; import net.minecraft.block.properties.PropertyBool; import net.minecraft.block.state.BlockFaceShape; import net.m...
34,657
https://github.com/informramiz/common-ui-views/blob/master/CommonUIViews/app/src/main/java/github/informramiz/commonuiviews/bottombar/StackedBottomNavigation.kt
Github Open Source
Open Source
MIT
2,021
common-ui-views
informramiz
Kotlin
Code
698
2,608
package github.informramiz.commonuiviews.bottombar import android.content.Context import android.os.Bundle import android.os.Parcel import android.os.Parcelable import android.util.AttributeSet import android.view.* import android.widget.TextView import androidx.annotation.MenuRes import androidx.constraintlayout.widg...
19,190
https://github.com/funvit/advent-of-code-2021/blob/master/day22/sol_test.go
Github Open Source
Open Source
Unlicense
2,021
advent-of-code-2021
funvit
Go
Code
153
609
package day22 import ( "testing" "aoc" ) func TestPart1(t *testing.T) { type args struct { lines []string } tests := []struct { name string args args want int }{ { "sample 1", args{lines: aoc.MustReadLinesFromFile("../input/day22.sample1.txt")}, 39, }, { "sample 2", args{lines: aoc...
20,760
https://github.com/jimmyleung/JavaTutorial/blob/master/src/main/java/cn/byhieg/threadtutorial/char04/ConditionWaitNotifyService.java
Github Open Source
Open Source
MIT
2,022
JavaTutorial
jimmyleung
Java
Code
74
298
package cn.byhieg.threadtutorial.char04; import java.awt.*; import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; /** * Created by byhieg on 17/1/27. * Mail to byhieg@gmail.com */ public class ConditionWaitNotifyService { private ...
20,251
https://github.com/apsoftwaredev/psytrack/blob/master/DemographicSexualOrientation.m
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,021
psytrack
apsoftwaredev
Objective-C
Code
113
390
// // DemographicSexualOrientation.m // PsyTrack Clinician Tools // Version: 1.5.4 // // Created by Daniel Boice on 9/15/12. // Copyright (c) 2012 PsycheWeb LLC. All rights reserved. // #import "DemographicSexualOrientation.h" #import "PTTAppDelegate.h" @implementation DemographicSexualOrientation @synthesize se...
2,696
https://github.com/nukka123/conference-app-2019/blob/master/feature/survey/src/test/java/io/github/droidkaigi/confsched2019/survey/ui/store/SessionSurveyStoreTest.kt
Github Open Source
Open Source
Apache-2.0
2,019
conference-app-2019
nukka123
Kotlin
Code
135
675
package io.github.droidkaigi.confsched2019.survey.ui.store import androidx.arch.core.executor.testing.InstantTaskExecutorRule import io.github.droidkaigi.confsched2019.action.Action import io.github.droidkaigi.confsched2019.dispatcher.Dispatcher import io.github.droidkaigi.confsched2019.dummySessionFeedbackData import...
42,871
https://github.com/Dantevg/WebStats/blob/master/src/nl/dantevg/webstats/Stats.java
Github Open Source
Open Source
MIT
2,022
WebStats
Dantevg
Java
Code
98
381
package nl.dantevg.webstats; import org.bukkit.Bukkit; import org.bukkit.entity.Player; import java.util.*; public class Stats { public static Map<String, Object> getOnline() { Map<String, Object> players = new HashMap<>(); for (Player p : Bukkit.getOnlinePlayers()) { players.put(p.getName(), (WebStats.hasEs...
22,625
https://github.com/opencast/opencast/blob/master/modules/admin-ui-frontend/app/styles/base/_variables.scss
Github Open Source
Open Source
LicenseRef-scancode-free-unknown, ECL-2.0, LicenseRef-scancode-unknown-license-reference, Apache-2.0, LicenseRef-scancode-unknown
2,023
opencast
opencast
SCSS
Code
484
1,954
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * * The Apereo Foundation licenses this file to you under the Educational * Community License, Version 2.0 (the "...
23,921
https://github.com/blockchain-sysu/extpt-lib/blob/master/src/index.ts
Github Open Source
Open Source
MIT
null
extpt-lib
blockchain-sysu
TypeScript
Code
16
40
export {BusinessNetwork} from "./BusinessNetwork"; export {Transaction} from "./Transaction"; export {TransactionFactory} from "./TransactionFactory"; export {User} from "./User";
43,668
https://github.com/radiac/mara/blob/master/tests/fixtures/client.py
Github Open Source
Open Source
BSD-3-Clause
2,020
mara
radiac
Python
Code
240
779
from __future__ import annotations import logging import socket import pytest from .constants import TEST_HOST, TEST_PORT logger = logging.getLogger("tests.fixtures.client") class BaseClient: """ Blocking test client to connect to an app server """ name: str def __init__(self, name: str): ...
5,679
https://github.com/jasmira/HTML_vs_HTML5_Basics/blob/master/HTML5/HTML_5_Subjective_Training/SampleProject1/public_html/js/app2.js
Github Open Source
Open Source
MIT
2,017
HTML_vs_HTML5_Basics
jasmira
JavaScript
Code
18
100
$(document).ready(function(){ $("form").submit(function(){ window.location.href="index.html"; //store the zodiac in localStorage var zodaicVal = $("input[name='zodiac']").val(); //alert(zodaicVal); localStorage.setItem('zodiac',zodaicVal); return false; }...
20,452
https://github.com/jeomora/Azteca/blob/master/Nuevo/application/controllers/Contadores.php
Github Open Source
Open Source
MIT
null
Azteca
jeomora
PHP
Code
99
621
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Contadores extends MY_Controller { function __construct(){ parent::__construct(); $this->load->model("Usuarios_model", "user_md"); $this->load->model("Sat_model", "sat_md"); $this->load->model("Prodfactura_model", "pfact_md"); $th...
23,208
https://github.com/ppartarr/scala/blob/master/exercises/collatz-conjecture/example.scala
Github Open Source
Open Source
MIT
2,022
scala
ppartarr
Scala
Code
62
164
import scala.annotation.tailrec object CollatzConjecture { def isEven(v: Int): Boolean = v % 2 == 0 @tailrec def collatz_h(n: Int, acc: Int): Option[Int] = { if (n <= 0) None else if (n == 1) Some(acc) else if (isEven(n)) collatz_h(n / 2, acc + 1) else collatz_h(n * 3 + ...
12,630
https://github.com/instacart/formula/blob/master/samples/stopwatch-compose/src/main/java/com/instacart/formula/compose/stopwatch/StopwatchFormula.kt
Github Open Source
Open Source
BSD-3-Clause-Clear
2,023
formula
instacart
Kotlin
Code
212
778
package com.instacart.formula.compose.stopwatch import com.instacart.formula.Evaluation import com.instacart.formula.Formula import com.instacart.formula.Snapshot import com.instacart.formula.rxjava3.RxAction import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers import io.reactivex.rxjava3.core.Observable i...
23,978
https://github.com/landry42/neotic/blob/master/ionic/src/app/components/modals/manual/manual.component.ts
Github Open Source
Open Source
MIT
2,020
neotic
landry42
TypeScript
Code
614
2,059
import { Component, OnInit, Input, OnDestroy } from '@angular/core'; import { ModalController, AlertController } from '@ionic/angular'; import Commands from '../../../../assets/json/commands.json'; import Sounds from '../../../../assets/json/sounds.json'; import Musics from '../../../../assets/json/musics.json'; import...
3,700
https://github.com/alxflam/cookza/blob/master/test/unit/viewmodel/settings/error_screen_model_test.dart
Github Open Source
Open Source
MIT
null
cookza
alxflam
Dart
Code
118
508
import 'dart:io'; import 'package:cookza/services/local_storage.dart'; import 'package:cookza/viewmodel/settings/error_screen_model.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:get_it/get_it.dart'; import 'package:mockito/mockito.dart'; import '../../../mocks/file_mock.dart'; import '../../...
50,149
https://github.com/vishalbelsare/choco-solver/blob/master/solver/src/main/java/org/chocosolver/solver/constraints/graph/channeling/nodes/PropNodeBoolChannel.java
Github Open Source
Open Source
BSD-4-Clause
null
choco-solver
vishalbelsare
Java
Code
250
862
/* * This file is part of choco-solver, http://choco-solver.org/ * * Copyright (c) 2022, IMT Atlantique. All rights reserved. * * Licensed under the BSD 4-clause license. * * See LICENSE file in the project root for full license information. */ package org.chocosolver.solver.constraints.graph.channeling.nodes; ...
4,183
https://github.com/Sarthak-Neupane/instagram-clone/blob/master/src/router/index.js
Github Open Source
Open Source
MIT
null
instagram-clone
Sarthak-Neupane
JavaScript
Code
421
1,414
import { createRouter, createWebHistory } from "vue-router"; // import { auth } from "../firebase"; import store from "../store/index.js"; const routes = [ { path: "/", redirect: `/feed`, component: () => import(/* webpackChunkName: "about" */ "../views/Feed.vue"), meta: { requiresAuth: t...
22,530
https://github.com/AlexTrashkov/AdvertExplorer/blob/master/AdvertExplorer.Server/src/AdvertExplorer.Server.Integration/ZarplataRu/ZarplataRuApiClient.cs
Github Open Source
Open Source
MIT
null
AdvertExplorer
AlexTrashkov
C#
Code
166
759
using System.Collections.Generic; using System.Linq; using System.Net.Http; using AdvertExplorer.Server.Domain.Entities; using AdvertExplorer.Server.Domain.Services; using AdvertExplorer.Server.Integration.ZarplataRu.DTO.Request; using AdvertExplorer.Server.Integration.ZarplataRu.DTO.Response; using AutoMapper; using ...
39,290
https://github.com/Rohit484/Distribution/blob/master/u/ui-select/src/main/scala/typings/uiSelect/mod/ui/select/ISelectConfig.scala
Github Open Source
Open Source
MIT
2,020
Distribution
Rohit484
Scala
Code
381
1,462
package typings.uiSelect.mod.ui.select import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait ISelectConfig extends js.Object { var appendToBody: Boolean = js.native var backspaceReset: Boolean = js...
31,109
https://github.com/golden-dreamer/snabb/blob/master/src/program/lwaftr/tests/data/counters/in-ipv4-ipv6-out-icmpv4-ipv6-hairpin-1.lua
Github Open Source
Open Source
Apache-2.0
null
snabb
golden-dreamer
Lua
Code
51
288
return { ["drop-all-ipv6-iface-bytes"] = 106, ["drop-all-ipv6-iface-packets"] = 1, ["drop-ttl-zero-ipv4-bytes"] = 66, ["drop-ttl-zero-ipv4-packets"] = 1, ["hairpin-ipv4-bytes"] = 66, ["hairpin-ipv4-packets"] = 1, ["in-ipv6-bytes"] = 106, ["in-ipv6-frag-reassembly-unneeded"] = 1, ["in-ipv6-pac...
49,589
https://github.com/jesusmaherrera/django-nuxtjs/blob/master/backend/core/serializers/__init__.py
Github Open Source
Open Source
MIT
null
django-nuxtjs
jesusmaherrera
Python
Code
8
29
from backend.core.serializers.choice import ChoiceSerializer from backend.core.serializers.question import QuestionSerializer
26,391
https://github.com/lxzq/phpyii2/blob/master/modules/views/organization/priceedit.php
Github Open Source
Open Source
BSD-3-Clause
null
phpyii2
lxzq
PHP
Code
148
650
<?php /** * Created by PhpStorm. * User: WWW * Date: 2015-12-09 * Time: 16:58 */ use app\models\ShopInfo; use yii\helpers\Html; use yii\bootstrap\ActiveForm; ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <?= Html::cssFile('@web/css/bootstrap.min.css') ?> <?= Html::jsFile('@we...
48,674
https://github.com/karma9874/AndroRAT/blob/master/Compiled_apk/smali/androidx/vectordrawable/graphics/drawable/PathInterpolatorCompat.smali
Github Open Source
Open Source
MIT
2,022
AndroRAT
karma9874
Smali
Code
1,672
7,997
.class public Landroidx/vectordrawable/graphics/drawable/PathInterpolatorCompat; .super Ljava/lang/Object; .source "PathInterpolatorCompat.java" # interfaces .implements Landroid/view/animation/Interpolator; # static fields .field public static final EPSILON:D = 1.0E-5 .field public static final MAX_NUM_POINTS:I = ...
55,948
https://github.com/fajarwinata/spk-bprks/blob/master/application/views/admin/data_nasabah.php
Github Open Source
Open Source
MIT
null
spk-bprks
fajarwinata
PHP
Code
244
1,189
<div class="content-page"> <div class="content"> <div class="container-fluid"> <div class="row"> <div class="col-xl-12"> <div class="breadcrumb-holder"> <h1 class="main-title float-left">Data Nasabah</h1> <ol class="breadcrumb f...
900
https://github.com/reactive-swift/RDBC/blob/master/Sources/RDBC/PG.swift
Github Open Source
Open Source
Apache-2.0
2,017
RDBC
reactive-swift
Swift
Code
199
493
//===--- PG.swift ------------------------------------------------------===// //Copyright (c) 2017 Crossroad Labs s.r.o. // //Licensed under the Apache License, Version 2.0 (the "License"); //you may not use this file except in compliance with the License. //You may obtain a copy of the License at // //http://www.apach...
50,363
https://github.com/atlanhq/atlas-metastore/blob/master/intg/src/main/java/org/apache/atlas/model/discovery/IndexSearchParams.java
Github Open Source
Open Source
Apache-2.0
null
atlas-metastore
atlanhq
Java
Code
213
691
package org.apache.atlas.model.discovery; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import org.apache.atlas.type.AtlasType; import org.slf4j.Logger; import org.slf4j.LoggerFactory...
51,995
https://github.com/locprohp/Miui_device_oneplus_onyx/blob/master/framework.jar.out/smali/com/android/internal/app/IBatteryStats$Stub.smali
Github Open Source
Open Source
Apache-2.0
null
Miui_device_oneplus_onyx
locprohp
Smali
Code
6,757
31,654
.class public abstract Lcom/android/internal/app/IBatteryStats$Stub; .super Landroid/os/Binder; .source "IBatteryStats.java" # interfaces .implements Lcom/android/internal/app/IBatteryStats; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/android/internal/app/IBatteryStats; .end ...
27,354
https://github.com/weucode/COMFORT/blob/master/artifact_evaluation/data/codeCoverage/codealchemist_generate/966.js
Github Open Source
Open Source
Apache-2.0
2,022
COMFORT
weucode
JavaScript
Code
103
339
var v0 = (function (v1, v2, v3){ if((typeof v1) === ('function')){ (v1) = v1(v2, v3); } if((typeof v1) !== ('string')){ (v1) = this.slice(v1).map(this.str(v2, v3)); } return v1.toString().split(/[\s,]+/).filter((function (v4){ return v4.length; })); }); // GenBlkBrick for(var v1 = 0;(v1) < (4);v1++){ (v1) |= ((v1) & (2...
23,685
https://github.com/vanhieu20/doancuoicap/blob/master/app/Http/Controllers/SubjectController.php
Github Open Source
Open Source
MIT
null
doancuoicap
vanhieu20
PHP
Code
369
1,287
<?php namespace App\Http\Controllers; use App\Models\Course; use App\Models\Subject; use Illuminate\Http\Request; use App\Models\RegisInfo; class SubjectController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index(...
24,220
https://github.com/housecanary/tile38/blob/master/internal/txn/txn.go
Github Open Source
Open Source
MIT
null
tile38
housecanary
Go
Code
357
924
package txn import ( "sync/atomic" "time" ) const deadlineMask = ^int64(0x7) const errCodeMask = int64(0x3) const signalInterruptedMask = int64(0x4) type Status struct { s *Scheduler status int64 } func (ts *Status) IsAborted() bool { if ts == nil { return false } ts.updateIfNeeded() return ts.err() ...
18,348
https://github.com/SAREhub/microORM/blob/master/src/SAREhub/MicroORM/Connection/BasicConnectionFactory.php
Github Open Source
Open Source
MIT
null
microORM
SAREhub
PHP
Code
82
288
<?php namespace SAREhub\MicroORM\Connection; use Doctrine\DBAL\Connection; use Doctrine\DBAL\DBALException; use Doctrine\DBAL\DriverManager; use SAREhub\MicroORM\DatabaseException; class BasicConnectionFactory implements ConnectionFactory { public function create(ConnectionOptions $options, string $databaseName...
10,577
https://github.com/planet-os/dadavis/blob/master/src/interaction.js
Github Open Source
Open Source
MIT
2,015
dadavis
planet-os
JavaScript
Code
275
1,133
cirrus.interaction = {}; cirrus.interaction.hovering = function(config){ var hoveringContainer = config.container.select('.hovering') .style({ width: config.chartWidth + 'px', height: config.chartHeight + 'px', position: 'absolute', opacity: 0 }); ...
32,471
https://github.com/ConfidantCommunications/UFrontPortfolio/blob/master/www/lib/haxe/macro/Type.enum.php
Github Open Source
Open Source
MIT
2,018
UFrontPortfolio
ConfidantCommunications
PHP
Code
152
399
<?php // Generated by Haxe 3.4.4 class haxe_macro_Type extends Enum { public static function TAbstract($t, $params) { return new haxe_macro_Type("TAbstract", 8, array($t, $params)); } public static function TAnonymous($a) { return new haxe_macro_Type("TAnonymous", 5, array($a)); } public static function TDynamic($t...
26,129
https://github.com/laloc2496/cdn_configuration_optimization/blob/master/MMO/problems/zdt.py
Github Open Source
Open Source
MIT
2,022
cdn_configuration_optimization
laloc2496
Python
Code
261
941
import autograd.numpy as anp from .problem import Problem from pymoo.util.normalization import normalize class ZDT(Problem): def __init__(self, n_var=30, **kwargs): super().__init__(n_var=n_var, n_obj=2, n_constr=0, xl=0, xu=1, type_var=anp.double, **kwargs) class ZDT1(ZDT): def _calc_pareto_fron...
46,596
https://github.com/A1129434577/LBUserInfo/blob/master/LBUserInfo.podspec
Github Open Source
Open Source
MIT
2,020
LBUserInfo
A1129434577
Ruby
Code
96
478
Pod::Spec.new do |spec| spec.name = "LBUserInfo" spec.version = "1.0.1" spec.summary = "用户基本信息快速缓存、获取类。。" spec.description = "项目中用户基本信息快速缓存、获取类。" spec.homepage = "https://github.com/A1129434577/LBUserInfo" spec.license = { :type => "MIT", :file => "LICENSE" } spec.author ...
45,437