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/aroget/ng2-stripe-frontend/blob/master/src/app/components/index.ts
Github Open Source
Open Source
MIT
null
ng2-stripe-frontend
aroget
TypeScript
Code
24
52
export * from './main-nav'; export * from './add-credit'; export * from './notifications'; export * from './shop-item'; export * from './cart'; export * from './checkout-list';
1,397
https://github.com/Evil1991/bitrixdock/blob/master/www/html/bitrix/templates/landing24/assets/js/helpers/google_maps_new.js
Github Open Source
Open Source
MIT
null
bitrixdock
Evil1991
JavaScript
Code
87
467
;(function () { "use strict"; var sheduldedMapEvents = []; BX.addCustomEvent(window, "BX.Landing.Block:init", function (event) { if (event.block.querySelector("[data-map]")) { if (BX.Landing.Provider.Map.GoogleMap.isApiLoaded()) { initGmapBlock(event); } else { if (!sheduldedMapEvents.i...
9,588
https://github.com/enigmampc/WasmiMemoryTest/blob/master/rust_contract/Makefile
Github Open Source
Open Source
MIT
2,021
WasmiMemoryTest
enigmampc
Makefile
Code
11
32
.PHONY: build build: cargo build --release .PHONY: clean clean: cargo clean
47,399
https://github.com/magnum357i/Malgrabber-for-CKEditor/blob/master/malgrabber/plugin.js
Github Open Source
Open Source
MIT
2,016
Malgrabber-for-CKEditor
magnum357i
JavaScript
Code
2,932
16,287
/* * @name Malgrabber * @description This is a plugin to get anime or manga information from MyAnimeList. * @version 1.4.5 * @license MIT-style license * @author Magnum357 * @download https://github.com/magnum357i/Malgrabber...
4,293
https://github.com/redcool/SRP-Demos/blob/master/Assets/Scripts/SarRP/SardineRenderPipeline.cs
Github Open Source
Open Source
MIT
2,020
SRP-Demos
redcool
C#
Code
506
2,082
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Rendering; using SarRP.Renderer; using System.Linq; namespace SarRP { public class SardineRenderPipeline : RenderPipeline { SardineRenderPipelineAsset settings { get; set; } List<RenderPass> Render...
3,254
https://github.com/mdalaminmiah/Diagnostic-Bill-management-System/blob/master/packages/itextsharp-all-5.5.10/itextsharp-src-core/iTextSharp/text/Phrase.cs
Github Open Source
Open Source
MIT
2,019
Diagnostic-Bill-management-System
mdalaminmiah
C#
Code
2,538
5,989
using System; using System.Text; using System.Collections.Generic; using iTextSharp.text.pdf; using iTextSharp.text.error_messages; /* * $Id$ * * This file is part of the iText project. * Copyright (c) 1998-2016 iText Group NV * Authors: Bruno Lowagie, Paulo Soares, et al. * * This program is free software; you...
10,965
https://github.com/IOHprofiler/IOHexperimenter/blob/master/docs/search/pages_0.js
Github Open Source
Open Source
BSD-3-Clause
2,023
IOHexperimenter
IOHprofiler
JavaScript
Code
9
122
var searchData= [ ['iohprofiler_3a_20iohexperimenter_1227',['IOHprofiler: IOHexperimenter',['../index.html',1,'']]], ['iohexperimenter_20_3a_20w_2dmodel_1228',['IOHexperimenter : W-model',['../md_ioh_problem_wmodel__r_e_a_d_m_e.html',1,'']]] ];
26,253
https://github.com/daddybh/iOffice/blob/master/src/com/arcsoft/office/constant/PGConstant.java
Github Open Source
Open Source
Apache-2.0
2,016
iOffice
daddybh
Java
Code
74
238
/* * 文件名称: PGConstant.java * * 编译器: android2.2 * 时间: 下午2:49:57 */ package com.arcsoft.office.constant; /** * powerpint的常量类 * <p> * <p> * Read版本: Read V1.0 * <p> * 作者: ljj8494 * <p> * 日期: 2011-11-11 * <p> * 负责人: ljj8494 * <p> * 负责...
20,698
https://github.com/mstsuite/MuST/blob/master/MST/external/libxc-5.1.6/src/lda_xc_ksdt.c
Github Open Source
Open Source
BSD-3-Clause, FSFAP, MPL-2.0, MPL-1.0
2,023
MuST
mstsuite
C
Code
468
1,942
/* Copyright (C) 2014 Orbital-free DFT group at University of Florida, USA This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "util.h" /**********************...
29,382
https://github.com/sevketozurfali/Easy-TCP-Server-Client/blob/master/tcp_server.h
Github Open Source
Open Source
MIT
null
Easy-TCP-Server-Client
sevketozurfali
C
Code
115
506
#ifndef TCP_SERVER_H #define TCP_SERVER_H #include <QWidget> #include <QTcpServer> #include <QTcpSocket> #include <QString> #include <QProcess> #include <QKeyEvent> #include <QAbstractSocket> #include <QStyleFactory> QT_BEGIN_NAMESPACE namespace Ui { class tcp_server; } QT_END_NAMESPACE class tcp_server : public QWi...
2,800
https://github.com/clhuang/BlueMorpho/blob/master/lib/lbfgsb_wrapper-1.1.2-src/raw_wrapper/dist/src/lbfgsb/jniwrapper/lbfgsb.java
Github Open Source
Open Source
MIT
2,020
BlueMorpho
clhuang
Java
Code
541
2,409
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * -----------------------------...
49,994
https://github.com/mdzobayer/daakghar-service/blob/master/api/conversation.go
Github Open Source
Open Source
Apache-2.0
null
daakghar-service
mdzobayer
Go
Code
95
375
package api import ( "encoding/json" "net/http" "github.com/daakghar-service/data/api/conversation" "github.com/daakghar-service/data/api/filters" "github.com/daakghar-service/jwork" jconversation "github.com/daakghar-service/jwork/conversation" "github.com/pkg/errors" ) // ConversationCreate handles conversa...
15,853
https://github.com/Skylled/flutter/blob/master/packages/flutter/lib/src/widgets/scrollable.dart
Github Open Source
Open Source
BSD-3-Clause
null
flutter
Skylled
Dart
Code
892
2,820
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'package:flutter/foundation.dart'; import 'package:flutter/gestures.dart'; import 'package:flutter/rendering.dart'; import 'p...
44,396
https://github.com/c6supper/GreaterWMS/blob/master/templates/src/css/app.sass
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, Apache-2.0
2,021
GreaterWMS
c6supper
Sass
Code
212
578
// app global css in Sass form .my-sticky-header-column-table /* height or max-height is important */ /* specifying max-width so the example can highlight the sticky column on any browser window */ td:last-child /* bg color is important for td; just specify one */ background-color: $grey-1 !importa...
31,862
https://github.com/kclinden/dod-compliance-and-automation/blob/master/vsphere/6.7/vcsa/inspec/vmware-vcsa-6.7-stig-baseline/vsphere-ui/controls/VCUI-67-000003.rb
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-generic-cla, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-warranty-disclaimer
2,020
dod-compliance-and-automation
kclinden
Ruby
Code
177
473
control "VCUI-67-000003" do title "vSphere UI must limit the maximum size of a POST request." desc "The 'maxPostSize' value is the maximum size in bytes of the POST which will be handled by the container FORM URL parameter parsing. Limit its size to reduce exposure to a DOS attack. If 'maxPostSize' is not set, the...
40,611
https://github.com/bwburch/clouddriver/blob/master/clouddriver-aws/src/main/groovy/com/netflix/spinnaker/clouddriver/aws/deploy/AutoScalingWorker.groovy
Github Open Source
Open Source
Apache-2.0
2,021
clouddriver
bwburch
Groovy
Code
1,740
6,239
/* * Copyright 2020 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
2,133
https://github.com/copra2005/FirstFashion/blob/master/app/views/member_friends/view.ctp
Github Open Source
Open Source
MIT
2,015
FirstFashion
copra2005
PHP
Code
189
658
<div> <? if (isset($friends) && count($friends)) { foreach($friends as $friend) { ?> <div class="user"> <div class="photo"><a href="/members/view/<?= $friend['MemberFriend']['friend_member_id'] ?>"><img src="/member_photos/view_primary/small/<?= $friend['MemberFriend']['friend_member_id'] ?>...
37,531
https://github.com/wright/dymos/blob/master/dymos/phase/options.py
Github Open Source
Open Source
Apache-2.0
null
dymos
wright
Python
Code
2,427
6,380
from collections.abc import Iterable from numbers import Number import numpy as np import openmdao.api as om from ..utils.misc import _unspecified class ControlOptionsDictionary(om.OptionsDictionary): """ An OptionsDictionary specific to controls. """ def __init__(self, read_only=False): sup...
20,134
https://github.com/dnthanh2205/doanchuyennganh/blob/master/admin_php/nhanhieu/themNhanhieu.php
Github Open Source
Open Source
Apache-2.0
2,017
doanchuyennganh
dnthanh2205
PHP
Code
320
1,598
<?php ob_start(); session_start(); if ( !(isset($_SESSION["idUser"]) && $_SESSION["idGroup"]==1) ){ header("index.php"); } require "../../lib/dbCon.php" ; require "../quantri.php" ; ?> <!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> <link rel="stylesheet" type="text/css" href="...
51,835
https://github.com/napzs/b2b2c/blob/master/common/components/Queue.php
Github Open Source
Open Source
BSD-3-Clause
2,016
b2b2c
napzs
PHP
Code
69
231
<?php /** * * hbshop * * @package Queue * @copyright Copyright (c) 2010-2016, Orzm.net * @license http://opensource.org/licenses/GPL-3.0 GPL-3.0 * @link http://orzm.net * @author Alex Liu<lxiangcn@gmail.com> */ namespace common\components; use yii\base\Object; class Queue extends Object { ...
18,117
https://github.com/cselab/CubismNova/blob/master/test/sandbox/Benchmarks/Kernel/Divergence/aphros/env.sh
Github Open Source
Open Source
BSD-2-Clause
2,022
CubismNova
cselab
Shell
Code
5
49
#!/usr/bin/env bash APHROSLIB='../../../Aphros/lib' export LD_LIBRARY_PATH=${APHROSLIB}:${LD_LIBRARY_PATH}
19,659
https://github.com/Maycon40/Chaturanga/blob/master/src/script.js
Github Open Source
Open Source
MIT
2,021
Chaturanga
Maycon40
JavaScript
Code
882
5,876
function inicia_jogo(){ vez = "branco"; //vez de quem jogar //muda a classe das pecas pretas(encima) para mostrar imgens das pecas document.getElementById("t11").innerHTML = "&#9820;"; document.getElementById("t12").innerHTML = "&#9822;"; document.getElementById("t13").innerHTML = "&#9821;"; document.getElementByI...
19,633
https://github.com/cureasher/TIL/blob/master/kotlin/ex-200/src/four/210824-4-185-FileInputOutput.kt
Github Open Source
Open Source
MIT
null
TIL
cureasher
Kotlin
Code
42
184
package code.four import java.io.* fun main(args: Array<String>) { val file = File("./hello.txt") if(!file.exists()) file.createNewFile() val outputStream: OutputStream = file.outputStream() outputStream.write(35) val outputStreamWrite: OutputStreamWriter = outputStream.writer() out...
25,302
https://github.com/llowrey/bls-signatures/blob/master/js-bindings/blsjs.d.ts
Github Open Source
Open Source
Apache-2.0
2,022
bls-signatures
llowrey
TypeScript
Code
380
1,409
export declare class AugSchemeMPL { static sk_to_g1(sk: PrivateKey): G1Element; static key_gen(msg: Uint8Array): PrivateKey; static sign(sk: PrivateKey, msg: Uint8Array): G2Element; static sign_prepend(sk: PrivateKey, msg: Uint8Array, prependPk: G1Element): G2Element; static verify(pk: G1Element, msg: Uint8Ar...
38,300
https://github.com/dram/metasfresh/blob/master/backend/de.metas.adempiere.adempiere/base/src/main/java-gen/org/compiere/model/I_C_BP_PrintFormat.java
Github Open Source
Open Source
RSA-MD
2,022
metasfresh
dram
Java
Code
644
2,297
package org.compiere.model; import javax.annotation.Nullable; import org.adempiere.model.ModelColumn; /** Generated Interface for C_BP_PrintFormat * @author metasfresh (generated) */ @SuppressWarnings("javadoc") public interface I_C_BP_PrintFormat { String Table_Name = "C_BP_PrintFormat"; // /** AD_Table_ID=5...
29,462
https://github.com/stephensong/react-particles-icons/blob/master/Makefile
Github Open Source
Open Source
Apache-2.0
2,017
react-particles-icons
stephensong
Makefile
Code
57
167
dependencies: npm install build: dependencies npm run build npm run docs github-pages: dependencies git config --global user.email "bot@presslabs.com" git config --global user.name "Igor Debot" cp docs/index.html . git add . echo -n "(autodoc) " > /tmp/COMMIT_MESSAGE ; git log -1 --pretty=%B >> /tmp/COMMIT_ME...
2,671
https://github.com/smeenai/llvm-project/blob/master/clang-tools-extra/test/clang-tidy/checkers/bugprone/stringview-nullptr.cpp
Github Open Source
Open Source
NCSA, LLVM-exception, Apache-2.0
2,023
llvm-project
smeenai
C++
Code
6,523
24,989
// RUN: %check_clang_tidy %s bugprone-stringview-nullptr -std=c++17 %t namespace std { using size_t = long long; using nullptr_t = decltype(nullptr); template <typename T> T &&declval(); template <typename T> struct type_identity { using type = T; }; template <typename T> using type_identity_t = typename type_ident...
50,382
https://github.com/Davdegreat/metasploit-framework/blob/master/lib/rex/post/meterpreter/extensions/stdapi/fs/mount.rb
Github Open Source
Open Source
BSD-2-Clause, BSD-3-Clause
2,020
metasploit-framework
Davdegreat
Ruby
Code
91
424
# -*- coding: binary -*- require 'rex/post/meterpreter/extensions/stdapi/stdapi' module Rex module Post module Meterpreter module Extensions module Stdapi module Fs class Mount # Used when matching against windows drive types DRIVE_TYPES = [ :unknown, :no_root, :removable, :fixed, :remote, ...
53,080
https://github.com/huangping-code/chart-template/blob/master/src/components/chartLibrary/utils.js
Github Open Source
Open Source
MIT
2,021
chart-template
huangping-code
JavaScript
Code
57
203
/** * 合并配置 * @param {Object} opts 源配置 * @param {Object} extOpts 扩展的配置 * 只用于合并echart图表配置,切勿用于其他地方(忽略了typeof document.all 等特性) */ export const mergeOptions = (opts, extOpts) => { const arr = Object.entries(extOpts) arr.forEach(([key, val]) => { if (Array.isArray(val) || !val || !opts[key] || typeof ...
18,154
https://github.com/tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective/blob/master/argouml/org/argouml/uml/ui/behavior/state_machines/PropPanelGuard.java
Github Open Source
Open Source
Apache-1.1
2,022
sourcecodes-of-CodeReadingTheOpenSourcePerspective
tharindusathis
Java
Code
380
1,231
// Copyright (c) 1996-99 The Regents of the University of California. All // Rights Reserved. Permission to use, copy, modify, and distribute this // software and its documentation without fee, and without a written // agreement is hereby granted, provided that the above copyright notice // and this paragraph appear in...
45,142
https://github.com/shubhwithst/psammead/blob/master/packages/components/psammead-useful-links/src/index.jsx
Github Open Source
Open Source
Apache-2.0
null
psammead
shubhwithst
null
Spoken
174
628
import styled from 'styled-components'; import { getSerifMedium } from '@bbc/psammead-styles/font-styles'; import { C_EBON, C_METAL } from '@bbc/psammead-styles/colours'; import { grid } from '@bbc/psammead-styles/detection'; import { getPica } from '@bbc/gel-foundations/typography'; import { GEL_SPACING, // 8 px } f...
23,400
https://github.com/nattive/PinnacleBackend/blob/master/vendor/cloudinary/cloudinary_php/src/Transformation/Positioning/Gravity/ObjectGravity/AnimalObjectGravityBuilderTrait.php
Github Open Source
Open Source
MIT
null
PinnacleBackend
nattive
PHP
Code
229
686
<?php /** * This file is part of the Cloudinary PHP package. * * (c) Cloudinary * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Cloudinary\Transformation; /** * Trait AnimalObjectGravityBuilderTrait * * @api */ trai...
20,191
https://github.com/codemilan/morajabi.im/blob/master/components/blog/Post/Layout.js
Github Open Source
Open Source
Apache-2.0
2,018
morajabi.im
codemilan
JavaScript
Code
767
2,738
import styled, { css } from 'styled-components' import { MDXProvider } from '@mdx-js/tag' import SyntaxHighlighter from 'react-syntax-highlighter' import Link from 'next/link' import { withRouter } from 'next/router' // Local import Container from '../../shared/Container' import ShareOnTwitter from './ShareOnTwitter' ...
17,242
https://github.com/okbel/website/blob/master/components/demos/Select.jsx
Github Open Source
Open Source
MIT
2,020
website
okbel
null
Spoken
481
2,012
import React from 'react'; import { styled } from '@modulz/design-system'; import { violet, mauve, blackA } from '@radix-ui/colors'; import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons'; import * as SelectPrimitive from '@radix-ui/react-select'; const StyledTrigger = styled(SelectPrimitive...
5,483
https://github.com/kirzyka/SampleBase/blob/master/OldProjects/helium2.0/src/services/command/roomTypes/GetRoomTypesPageCommand.as
Github Open Source
Open Source
MIT
null
SampleBase
kirzyka
null
Spoken
86
361
package services.command.roomTypes { import com.adobe.cairngorm.control.CairngormEvent; import flash.utils.Dictionary; import services.business.roomTypes.RoomTypesDelegate; import services.cairngorm.BaseCommand; import services.events.roomTypes.GetRoomTypesPageEvent; import mx.collections.ArrayCollection; ...
55,250
https://github.com/Krasnyanskiy/finch/blob/master/core/src/test/scala/io/finch/response/RedirectSpec.scala
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-warranty-disclaimer
2,015
finch
Krasnyanskiy
Scala
Code
104
283
package io.finch.response import com.twitter.finagle.httpx.{Request, Status} import com.twitter.finagle.httpx.path.Root import com.twitter.util.Await import org.scalatest.{Matchers, FlatSpec} class RedirectSpec extends FlatSpec with Matchers { "A Redirect" should "create a service from a string url that generates ...
11,901
https://github.com/CasperLaiTW/material-datetime-picker/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,017
material-datetime-picker
CasperLaiTW
Ignore List
Code
4
21
.DS_Store node_modules .sass-cache .vscode
28,415
https://github.com/jfehrle/metacoq/blob/master/translations/Makefile
Github Open Source
Open Source
MIT
2,020
metacoq
jfehrle
Makefile
Code
51
210
all: Makefile.coq $(MAKE) -f Makefile.coq $(TIMED) _CoqProject: _CoqProject.in metacoq-config cat metacoq-config > _CoqProject cat _CoqProject.in >> _CoqProject Makefile.coq: _CoqProject coq_makefile -f _CoqProject -o Makefile.coq clean: Makefile.coq $(MAKE) -f Makefile.coq clean mrproper: rm -f Makefile.coq...
1,984
https://github.com/KayDeVC/Python-CeV/blob/master/MUNDO2/Ex067_Tabuada3.py
Github Open Source
Open Source
MIT
null
Python-CeV
KayDeVC
Python
Code
39
144
print('\n{:=^30}'.format(' TABUADA ')) while True: num = int(input('\nQual o número desejado: ')) if num < 0: break for cont in range(1, 11): print(f'{num:2} x {cont:2} = {num * cont:2}') print('\n', end = '') print('='*30) print('\n\33[1;31mFIM DO PROGRAMA TABUADA\n\33[m') print('='...
24,102
https://github.com/redjupiter/JupiterOne/blob/master/src/models/Project.ts
Github Open Source
Open Source
MIT
null
JupiterOne
redjupiter
TypeScript
Code
88
241
import Repository from './Repository'; export default class Project { public name: string; public path: string; public uri: string; public repo: Repository; constructor(name: string, path: string, uri: string) { this.name = name; this.path = path; this.uri = uri; t...
35,398
https://github.com/BarRescue/rsmod/blob/master/game/events/src/test/kotlin/org/rsmod/game/events/UnboundEventTest.kt
Github Open Source
Open Source
ISC, BSD-2-Clause
2,023
rsmod
BarRescue
Kotlin
Code
250
1,309
package org.rsmod.game.events import org.junit.jupiter.api.Assertions.assertEquals import org.junit.jupiter.api.Assertions.assertFalse import org.junit.jupiter.api.Assertions.assertNotNull import org.junit.jupiter.api.Assertions.assertNull import org.junit.jupiter.api.Assertions.assertTrue import org.junit.jupiter.api...
45,115
https://github.com/ilyapishchulin/TONSwap/blob/master/src/store/swap/actions/actionSetExchangeFrom.ts
Github Open Source
Open Source
MIT
null
TONSwap
ilyapishchulin
TypeScript
Code
29
86
import { TSwapStore } from '../TSwapStore'; import { setExchangeFrom } from '../sets/setExchangeFrom'; export const actionSetExchangeFrom = ( state: TSwapStore, exchangeFrom: ReturnType<typeof setExchangeFrom>['data'], ): TSwapStore => ({ ...state, exchangeFrom, });
54,121
https://github.com/weinapianyun/oneflow/blob/master/oneflow/core/eager/release_tensor_instruction_type.cpp
Github Open Source
Open Source
Apache-2.0
2,021
oneflow
weinapianyun
C++
Code
191
648
/* Copyright 2020 The OneFlow 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 may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
6,744
https://github.com/yangdy-buji/sofa-bolt-python/blob/master/anthunder/discovery/mosn/__init__.py
Github Open Source
Open Source
Apache-2.0, MIT, LicenseRef-scancode-unknown-license-reference
2,021
sofa-bolt-python
yangdy-buji
Python
Code
485
1,404
# coding=utf-8 """ Copyright (c) 2018-present, Ant Financial Service Group 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 Un...
49,129
https://github.com/Shivanee206/LoginApplication/blob/master/app/src/main/java/com/example/shivani/loginapplication/SignUpActivity.java
Github Open Source
Open Source
Apache-2.0
2,018
LoginApplication
Shivanee206
Java
Code
290
1,688
package com.example.shivani.loginapplication; import android.app.Dialog; import android.content.Context; import android.content.Intent; import android.graphics.Typeface; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.text.Editable; import android.text.TextUtils; import androi...
41,961
https://github.com/bdperkin/alibaba-cloud-sdk-go/blob/master/services/dypnsapi/struct_data.go
Github Open Source
Open Source
Apache-2.0
null
alibaba-cloud-sdk-go
bdperkin
Go
Code
173
479
package dypnsapi //Licensed under the Apache License, Version 2.0 (the "License"); //you may not use this file except in compliance with the License. //You may obtain a copy of the License at // //http://www.apache.org/licenses/LICENSE-2.0 // //Unless required by applicable law or agreed to in writing, software //dist...
17,860
https://github.com/mikaeleko/juraganpay/blob/master/storeadmin/application/controllers/Profile.php
Github Open Source
Open Source
MIT
null
juraganpay
mikaeleko
PHP
Code
178
1,001
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Profile extends CI_Controller { function __construct() { parent::__construct(); } public function index(){ $data['title'] ="STORE INFORMATION"; $data['profile'] = json_decode($this->curl->simple_get(API.'profile')); ...
50,335
https://github.com/Japh/wiki/blob/master/src/util.js
Github Open Source
Open Source
MIT
null
wiki
Japh
JavaScript
Code
158
519
import fetch from 'isomorphic-fetch'; import querystring from 'querystring'; const fetchOptions = { method: 'GET', headers: { 'User-Agent': 'WikiJs/0.1 (https://github.com/dijs/wiki; richard.vanderdys@gmail.com)' } }; export function api(apiOptions, params = {}) { const qs = Object.assign({}, params, { format...
30,150
https://github.com/scosenza/finatra/blob/master/http-mustache/src/test/scala/com/twitter/finatra/http/tests/server/views/TestUserView.scala
Github Open Source
Open Source
Apache-2.0
2,023
finatra
scosenza
Scala
Code
13
66
package com.twitter.finatra.http.tests.server.views import com.twitter.finatra.http.annotations.Mustache @Mustache("testuser") case class TestUserView(age: Int, name: String, friends: Seq[String])
5,729
https://github.com/clm1100/cnode-react/blob/master/app/components/lianxi/index.jsx
Github Open Source
Open Source
MIT
null
cnode-react
clm1100
null
Spoken
229
1,055
import React ,{Component}from 'react' import { Link } from 'react-router' import ReactIScroll from 'react-iscroll' import iScroll2 from 'iscroll'; import $ from 'jquery'; import iScroll from "iscroll/build/iscroll-probe" import './example.less' const options = { mouseWheel: true, scrollbars: true, freeScrol...
7,615
https://github.com/LaisoEmilio/WispRenderer/blob/master/src/render_tasks/d3d12_deferred_composition.hpp
Github Open Source
Open Source
Apache-2.0
2,022
WispRenderer
LaisoEmilio
C++
Code
270
932
/*! * Copyright 2019 Breda University of Applied Sciences and Team Wisp (Viktor Zoutman, Emilio Laiso, Jens Hagen, Meine Zeinstra, Tahar Meijs, Koen Buitenhuis, Niels Brunekreef, Darius Bouma, Florian Schut) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in co...
51,844
https://github.com/bluepi0j/BPPopCardTransition/blob/master/Example/Example/ViewController.swift
Github Open Source
Open Source
MIT
2,018
BPPopCardTransition
bluepi0j
Swift
Code
243
856
// // ViewController.swift // Example // // Created by Vic on 2017-08-12. // Copyright © 2017 bluepi0j. All rights reserved. // import UIKit import BPPopCardTransition class ViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, BPPopCardAnimtionDelegate { @IBOutlet var colle...
52,138
https://github.com/jPaolantonio/NewsApp/blob/master/ios/NewsFramework/Views/Cells/ArticleCell.swift
Github Open Source
Open Source
MIT
2,019
NewsApp
jPaolantonio
Swift
Code
69
280
import Foundation import UIKit public final class ArticleCell: UITableViewCell { public struct Data: Codable, Equatable { let title: String } private lazy var titleLabel = UILabel() override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { super.init(style: style, reuseIdentifier: re...
28,578
https://github.com/Naotonosato/Blawn/blob/master/build/Makefile
Github Open Source
Open Source
MIT
2,022
Blawn
Naotonosato
Makefile
Code
1,457
7,449
# CMAKE generated file: DO NOT EDIT! # Generated by "Unix Makefiles" Generator, CMake Version 3.15 # Default target executed when no arguments are given to make. default_target: all .PHONY : default_target # Allow only one "make -f Makefile2" at a time, but pass parallelism. .NOTPARALLEL: #========================...
2,685
https://github.com/iantal/AndroidPermissions/blob/master/apks/playstore_apps/com_ubercab/app/smali_classes2/amtl.smali
Github Open Source
Open Source
Apache-2.0
2,019
AndroidPermissions
iantal
Smali
Code
622
3,257
.class public abstract Lamtl; .super Ljava/lang/Object; .source "SourceFile" # annotations .annotation system Ldalvik/annotation/Signature; value = { "<TDynamicDependency:", "Ljava/lang/Object;", "TPluginType:", "Ljava/lang/Object;", ">", "Ljava/lang/Object;" } ...
52,518
https://github.com/arj03/ssb-browser-demo/blob/master/ui/public.js
Github Open Source
Open Source
Beerware
2,022
ssb-browser-demo
arj03
JavaScript
Code
1,434
5,139
module.exports = function (componentsState) { const pull = require('pull-stream') const helpers = require('./helpers') const ssbMentions = require('ssb-mentions') const localPrefs = require('../localprefs') const userGroups = require('../usergroups') const ssbSingleton = require('ssb-browser-core/ssb-single...
50,841
https://github.com/luca-piccioni/OpenGL.Net/blob/master/OpenGL.Net/OES/Gl.OES_byte_coordinates.cs
Github Open Source
Open Source
MIT, WTFPL, LGPL-2.0-only, LGPL-2.1-only
2,022
OpenGL.Net
luca-piccioni
C#
Code
1,926
8,797
// MIT License // // Copyright (c) 2009-2017 Luca Piccioni // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, cop...
27,199
https://github.com/SkillsFundingAgency/das-reservations/blob/master/src/SFA.DAS.Reservations.Web/AppStart/CommitmentsExtensions.cs
Github Open Source
Open Source
MIT
2,023
das-reservations
SkillsFundingAgency
C#
Code
81
443
using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; using SFA.DAS.Authorization.CommitmentPermissions.Client; using SFA.DAS.Authorization.CommitmentPermissions.DependencyResolution; using SFA.DAS.Authorization...
44,547
https://github.com/izpack/izpack/blob/master/src/doc-reST/build.py
Github Open Source
Open Source
LicenseRef-scancode-free-unknown, Apache-2.0, LicenseRef-scancode-unknown-license-reference, CC-BY-SA-3.0
2,023
izpack
izpack
Python
Code
404
1,235
#!/usr/bin/env python # ........................................................................... # # # This script generates the documentation using Python docutils. # # It requires the following softwares to be installed and made available from # the invocation path context: # # - Python (of course!) # - the do...
6,458
https://github.com/Potentii/Kunlun-Core/blob/master/libs/repository/model/synchronizer/application-model-synchronizer.js
Github Open Source
Open Source
MIT
2,017
Kunlun-Core
Potentii
JavaScript
Code
60
219
// *Requiring the needed modules: const ModelSynchronizer = require('module'); const { COLLECTIONS } = require('../meta'); /** * Model synchronization for the applications databases * @class * @augments ModelSynchronizer */ class ApplicationModelSynchronizer extends ModelSynchronizer{ constructor(){super()} ...
30,398
https://github.com/0x26res/cassarrow/blob/master/tests/test_benchmarks.py
Github Open Source
Open Source
Apache-2.0
null
cassarrow
0x26res
Python
Code
54
229
import cassandra.protocol import cassarrow import cassarrow.impl from tests.test_from_binary import load_all_data def run_with_cassarrow(data: list[bytes]): for d in data: cassarrow.impl.ArrowProtocolHandler.decode_message(5, {}, 3, 0, 8, d, None, []) def run_with_cassandra(data: list[bytes]): for ...
19,798
https://github.com/creativo-pty/base-express/blob/master/app.js
Github Open Source
Open Source
MIT
2,016
base-express
creativo-pty
JavaScript
Code
58
190
var express = require('express'); var app = express(); var nunjucks = require('nunjucks'); var bodyParser = require('body-parser'); var port = process.env.PORT || 3000; var path = require('path'); global.appRoot = path.resolve(__dirname); nunjucks.configure(appRoot + '/views', { express: app }); app.set('view engi...
44,661
https://github.com/tolmasky/dockerscript/blob/master/test/input/multiple-includes.js
Github Open Source
Open Source
MIT
2,017
dockerscript
tolmasky
JavaScript
Code
2
12
include('./iojs') include('./iojs')
51,297
https://github.com/nmtruongloc806/NMTL_DownloadFilesPlugin/blob/master/src/Plugin.DownloadFiles.Android/DownloadFileImplementation.cs
Github Open Source
Open Source
MIT
null
NMTL_DownloadFilesPlugin
nmtruongloc806
C#
Code
351
1,205
using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.Database; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; using Android.Net; using System.Collections.Specialized; using Plug...
29,202
https://github.com/RebirthDB/rethinkdb/blob/master/mk/rethinkdb.vcxproj.xsl
Github Open Source
Open Source
Apache-2.0
2,019
rethinkdb
RebirthDB
null
Spoken
602
3,311
<?xml version="1.0" encoding="utf-8"?> <!-- Visual C++ 2015 project file template for RethinkDB --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" exclude-result-prefixes="xsl"> ...
13,046
https://github.com/mchilicki/geotag/blob/master/src/app/services/file-dialog/file-dialog.service.spec.ts
Github Open Source
Open Source
MIT
2,019
geotag
mchilicki
TypeScript
Code
33
104
import { TestBed } from '@angular/core/testing'; import { FileDialogService } from './file-dialog.service'; describe('FileDialogService', () => { beforeEach(() => TestBed.configureTestingModule({})); it('should be created', () => { const service: FileDialogService = TestBed.get(FileDialogService); expect...
25,830
https://github.com/MBrato/JavaScript-Fundamentals/blob/master/JavaScript-Fundamentals/05.ConditionalStatements/08.numberAsWords.js
Github Open Source
Open Source
MIT
null
JavaScript-Fundamentals
MBrato
JavaScript
Code
231
634
let number = ['101']; function numberAsWord(number){ let num = String(Math.round(number[0])), len = num.length, str1 = ' hundred', str2 = ' and ', result = '', first = +num[0], second = +num[1], third = +num[2], word = [ ['zero', 'one','two', 'three', 'four','five', 'six', 'seven', 'eigth','nine'],...
20,166
https://github.com/VenugopalPulagam/CommentsValidation/blob/master/src/main/java/com/tgt/profanity/helpers/BaseResource.java
Github Open Source
Open Source
Apache-2.0
null
CommentsValidation
VenugopalPulagam
Java
Code
11
35
package com.tgt.profanity.helpers; public interface BaseResource { public String getProperties(String property); }
17,167
https://github.com/mellon85/brokaw/blob/master/examples/xfeature_compression.rs
Github Open Source
Open Source
MIT
null
brokaw
mellon85
Rust
Code
183
654
use brokaw::types::command::{XFeatureCompress, XOver}; use brokaw::*; use log::*; use structopt::StructOpt; /// A program for getting compressed headers #[derive(Debug, StructOpt)] struct Opt { #[structopt(long, short)] address: String, #[structopt(long, short, default_value = "563")] port: u16, /...
8,588
https://github.com/hello2calls/voipswitchWeb/blob/master/user/Lib/Model/clientssharedModel.class.php
Github Open Source
Open Source
Apache-2.0
2,014
voipswitchWeb
hello2calls
PHP
Code
27
163
<?php class clientssharedModel extends Model { // 自动验证设置 protected $_validate = array( array('login','require','登录名必须!'), array('password','require','密码必须!'), array('type','require','必须'), array('login','','登录名已经存在',0,'unique',self::MODEL_INSERT), ); // 自动填充设置 protected $_auto = array( array('id_tar...
7,491
https://github.com/MrISH/lessons/blob/master/app/models/student.rb
Github Open Source
Open Source
MIT
null
lessons
MrISH
Ruby
Code
422
1,103
class Student < ApplicationRecord has_and_belongs_to_many :classrooms has_many :student_lesson_progresses scope :in_classroom, -> (classroom_id) { distinct.joins(:classrooms).where(classrooms: { id: classroom_id || Classroom.ids }) } def as_hash { id: self.id, first_name:...
39,498
https://github.com/NightOfTwelve/iOS-Cracked-Apps/blob/master/DumpedClasses/TencentLive/QLPayBill.h
Github Open Source
Open Source
MIT
2,018
iOS-Cracked-Apps
NightOfTwelve
Objective-C
Code
277
995
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "NSObject.h" @class NSDate, NSNumber, NSString, QLASIHTTPRequest; @interface QLPayBill : NSObject { int _payValidDays; int _ticketValidDays; NSString *coverID;...
33,780
https://github.com/SeasideSt/Seaside/blob/master/repository/Seaside-GemStone-ServiceTask.package/WAGemStoneServerBackgroundTask.class/instance/task.session..st
Github Open Source
Open Source
MIT
2,023
Seaside
SeasideSt
null
Spoken
18
51
instance-creation task: taskBlock session: aSession task := WAGemStoneServiceTask value: [ (Smalltalk at: #'WADynamicVariable') use: aSession during: taskBlock ]
53,124
https://github.com/1130419/quickblox-react-native-samples/blob/master/chat-sample/src/components/Messages/styles.js
Github Open Source
Open Source
BSD-3-Clause
null
quickblox-react-native-samples
1130419
JavaScript
Code
78
253
import { StyleSheet } from "react-native"; import { colors } from "../../theme"; export default StyleSheet.create({ safeArea: { backgroundColor: colors.primary, flex: 1, width: "100%" }, titleView: { alignItems: "center", alignSelf: "center", justifyContent:...
19,199
https://github.com/ucool2007/hiveha/blob/master/src/main/java/concurrency/cookbook/chapter4/TaskC.java
Github Open Source
Open Source
Apache-2.0
null
hiveha
ucool2007
Java
Code
87
294
package concurrency.cookbook.chapter4; import java.util.concurrent.Callable; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledThreadPoolExecutor; import java.util.concurrent.TimeUnit; /** * Created by lhao on 6/21/17. */ public class TaskC implements Callable<String> { private String...
51,355
https://github.com/tfedoris/MSCS_710_Software_Project/blob/master/computerMetricCollector/test/crypto/__init__.py
Github Open Source
Open Source
Unlicense
null
MSCS_710_Software_Project
tfedoris
Python
Code
67
287
from Cryptodome.Cipher import PKCS1_OAEP, AES from Cryptodome.PublicKey import RSA def read_key(keyFile): with open(keyFile) as f: key = f.read() return key def decrypt_data(dataframe, col_to_decrypt, key): private_key = RSA.import_key(key) cipher_rsa = PKCS1_OAEP.new(private_key) for idx...
44,730
https://github.com/codejamninja/role-based-access-control/blob/master/tests/Statement.ts
Github Open Source
Open Source
MIT
2,019
role-based-access-control
codejamninja
TypeScript
Code
36
86
import { Statement } from '../src'; describe('new Statement(action, resource)', () => { it('should create new statement', async () => { const statement = new Statement('read', 'file'); expect(statement).toEqual({ action: 'read', allow: true, resource: 'file' }); }); });
4,884
https://github.com/devinrsmith/deephaven-core/blob/master/DB/src/main/java/io/deephaven/db/v2/sources/UngroupedCharArrayColumnSource.java
Github Open Source
Open Source
MIT
null
deephaven-core
devinrsmith
Java
Code
146
435
/* * Copyright (c) 2016-2021 Deephaven Data Labs and Patent Pending */ package io.deephaven.db.v2.sources; import static io.deephaven.util.QueryConstants.NULL_CHAR; public class UngroupedCharArrayColumnSource extends UngroupedColumnSource<Character> implements MutableColumnSourceGetDefaults.ForChar { private C...
12,699
https://github.com/ornicar/dmOppPlugin/blob/master/modules/communeAdmin/actions/actions.class.php
Github Open Source
Open Source
MIT
2,010
dmOppPlugin
ornicar
PHP
Code
38
141
<?php require_once dirname(__FILE__).'/../lib/communeAdminGeneratorConfiguration.class.php'; require_once dirname(__FILE__).'/../lib/communeAdminGeneratorHelper.class.php'; /** * communeAdmin actions. * * @package opp-saint-brieuc * @subpackage communeAdmin * @author Your name here * @version SVN: $Id...
44,568
https://github.com/aaronovz1/metavault/blob/master/deploy/v3/2.1.Controller.js
Github Open Source
Open Source
MIT
2,021
metavault
aaronovz1
JavaScript
Code
82
220
module.exports = async ({ getNamedAccounts, deployments }) => { const { ethers } = require('hardhat'); const { deploy, execute } = deployments; const { deployer } = await getNamedAccounts(); const Manager = await deployments.get('Manager'); const controller = await deploy('Controller', { fr...
43,341
https://github.com/isabella232/okta-dac-domains-serverless/blob/master/domains/create.js
Github Open Source
Open Source
MIT
2,020
okta-dac-domains-serverless
isabella232
JavaScript
Code
230
629
"use strict"; const _db = require("../_dynamodb"); const middy = require("middy"); const { cors, jsonBodyParser, validator } = require("middy/middlewares"); const jwtMiddleware = require("../jwtMiddleware"); const jsonHttpErrorHandler = require("../jsonHttpErrorHandler"); const createDomain = async (event, context) =...
36,549
https://github.com/drone1/flow-router/blob/master/client/renderer.js
Github Open Source
Open Source
BSD-3-Clause, MIT
2,020
flow-router
drone1
JavaScript
Code
1,024
3,255
import { Meteor } from 'meteor/meteor'; import { _helpers } from './../lib/_helpers.js'; import { requestAnimFrame } from './modules.js'; let Blaze; let Template; if (Package.templating && Package.blaze) { Blaze = Package.blaze.Blaze; Template = Package.templating.Template; } const _BlazeRem...
53,833
https://github.com/avsm/mirage-duniverse/blob/master/ocaml_modules/core_kernel/src/no_polymorphic_compare.ml
Github Open Source
Open Source
MIT, SMLNJ, Apache-2.0
2,019
mirage-duniverse
avsm
OCaml
Code
70
221
open! Import type compare = [`no_polymorphic_compare] -> [`no_polymorphic_compare] -> [`no_polymorphic_compare] let compare _ _ = `no_polymorphic_compare let (<) _ _ = `no_polymorphic_compare let (<=) _ _ = `no_polymorphic_compare let (>) _ _ = `no_polymorphic_compare let (>=) _ _ = `no_polymorphi...
27,932
https://github.com/sscollis/lns3d/blob/master/slatec/src/sdcor.f
Github Open Source
Open Source
GPL-1.0-or-later, LicenseRef-scancode-free-unknown, BSD-3-Clause
2,022
lns3d
sscollis
null
Spoken
904
2,700
*DECK SDCOR SUBROUTINE SDCOR (DFDY, EL, FA, H, IERROR, IMPL, IPVT, MATDIM, 8 MITER, ML, MU, N, NDE, NQ, T, USERS, Y, YH, YWT, EVALFA, SAVE1, 8 SAVE2, A, D, JSTATE) C***BEGIN PROLOGUE SDCOR C***SUBSIDIARY C***PURPOSE Subroutine SDCOR computes corrections to the Y array. C***LIBRARY SLATEC (SDRIVE...
27,427
https://github.com/inklabs/kommerce-core/blob/master/src/Action/Option/UpdateOptionProductCommand.php
Github Open Source
Open Source
Apache-2.0
2,022
kommerce-core
inklabs
PHP
Code
37
144
<?php namespace inklabs\kommerce\Action\Option; use inklabs\kommerce\EntityDTO\OptionProductDTO; use inklabs\kommerce\Lib\Command\CommandInterface; final class UpdateOptionProductCommand implements CommandInterface { /** @var OptionProductDTO */ private $optionProductDTO; public function __construct(Opti...
3,258
https://github.com/alexeiaccio/moscowriver/blob/master/src/helpers/getStringFromProps.js
Github Open Source
Open Source
MIT
null
moscowriver
alexeiaccio
JavaScript
Code
19
55
import { getStringFirst } from 'Helpers' // getStringFromProps:: [a] -> String export default prop => ( getStringFirst('text')(prop) .option('Ooops...') )
14,954
https://github.com/vinqin/servlet-jsp-javaweb-archetype/blob/master/src/main/resources/archetype-resources/src/main/java/InitServletContext.java
Github Open Source
Open Source
MIT
null
servlet-jsp-javaweb-archetype
vinqin
Java
Code
63
232
#set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' ) package ${package}; import org.apache.log4j.Logger; import javax.servlet.ServletContext; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; // 为当前WEB应用程序初始化 public class InitServletContext implem...
14,633
https://github.com/DavidNieto97/fbcmd4j/blob/master/src/fbcmd4j/Utils.java
Github Open Source
Open Source
Apache-2.0
null
fbcmd4j
DavidNieto97
Java
Code
334
1,333
package fbcmd4j; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; import java.util.Properties; import java.util.function...
37,283
https://github.com/cqb325/c-git/blob/master/src/r-cmui/components/GridTree/TreeNode.js
Github Open Source
Open Source
MIT
2,019
c-git
cqb325
JavaScript
Code
962
3,147
import React from 'react'; import BaseComponent from '../core/BaseComponent'; import classNames from 'classnames'; import CheckBox from '../CheckBox'; import PropTypes from 'prop-types'; import {List} from 'immutable'; import TreeSubNodes from './TreeSubNodes'; /** * TreeNode 类 * @class TreeNode * @extend BaseCompo...
39,332
https://github.com/awesome-python/markbj/blob/master/app/user/models.py
Github Open Source
Open Source
BSD-3-Clause
2,017
markbj
awesome-python
Python
Code
225
1,080
#coding: utf-8 from datetime import datetime from app import db import app from sqlalchemy import func, union_all, select , desc from app.models import * from app.home.models import User from app.common import data_config PREFIX = "user_" class UserProfile(db.Model): __tablename__ = DB_PREFIX+PREFIX+"profile" ...
10,423
https://github.com/cherry2030/data_engineering/blob/master/data-engineering/src/main/java/kr/ac/sejong/kmooc/data_engineering/hashset/impl/MyHashSet.java
Github Open Source
Open Source
Apache-2.0
2,022
data_engineering
cherry2030
Java
Code
500
1,508
package kr.ac.sejong.kmooc.data_engineering.hashset.impl; import java.lang.reflect.Array; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.LinkedList; import java.util.Set; @SuppressWarnings("unchecked") public class MyHashSet<E> implements Set<E> { private Linked...
20,541
https://github.com/gengna92/PythonProjects/blob/master/host_manager_19/rbac/templatetags/rbac.py
Github Open Source
Open Source
MIT
null
PythonProjects
gengna92
Python
Code
91
351
from django import template from django.conf import settings import re from django.conf import settings from django.shortcuts import reverse from collections import OrderedDict register = template.Library() @register.inclusion_tag('menu.html') def menu(request): menu_dict = request.session.get(settings.MENU_SESS...
34,770
https://github.com/fworks/domino-ui/blob/master/src/main/java/org/dominokit/domino/ui/datatable/plugins/SortPlugin.java
Github Open Source
Open Source
Apache-2.0
null
domino-ui
fworks
Java
Code
171
852
package org.dominokit.domino.ui.datatable.plugins; import elemental2.dom.HTMLElement; import org.dominokit.domino.ui.datatable.ColumnConfig; import org.dominokit.domino.ui.datatable.DataTable; import org.dominokit.domino.ui.datatable.events.SortEvent; import org.dominokit.domino.ui.icons.Icons; import org.dominokit.do...
31,375
https://github.com/kaibolay/librarian/blob/master/scripts/Makefile
Github Open Source
Open Source
BSD-2-Clause-FreeBSD
2,020
librarian
kaibolay
Makefile
Code
36
103
all: ve/ .PHONY: help help: @echo "make all -- Build Python environment" @echo "make clean -- Cleanup build" @echo "ve/bin/python get_isbns.py -- Looks for ISBNs" ve/: virtualenv ./ve ./ve/bin/pip install -r requirements.txt clean: rm -rf ve
26,927
https://github.com/godofwharf/hadoop/blob/master/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OzoneAcl.java
Github Open Source
Open Source
Apache-2.0
null
hadoop
godofwharf
Java
Code
702
1,718
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
28,365
https://github.com/OpenSlides/openslides.com/blob/master/api/src/i18n.py
Github Open Source
Open Source
MIT
2,023
openslides.com
OpenSlides
Python
Code
83
289
import re from flask import request from flask_babel import Babel, refresh from .app import app babel = Babel(app) BABEL_FORCE_DEFAULT_LANGUAGE = False @babel.localeselector def get_locale(): global BABEL_FORCE_DEFAULT_LANGUAGE # for admin view: always use default language if BABEL_FORCE_DEFAULT_LANG...
43,334
https://github.com/npocmaka/Windows-Server-2003/blob/master/ds/netapi/svcimgs/ntrepl/test/reparsepoint/reparse.c
Github Open Source
Open Source
Unlicense
2,021
Windows-Server-2003
npocmaka
C
Code
605
2,548
#include <stdio.h> #include <stdlib.h> // exit #include <io.h> // _get_osfhandle #include <nt.h> #include <ntrtl.h> #include <nturtl.h> #include <ntioapi.h> #include <windef.h> #include <winbase.h> VOID PrintError( DWORD Error ) { LPVOID lpMsgBuf = NULL; FormatMessage...
15,632
https://github.com/ARCHTK-prog/utils-tools/blob/master/utils-netx-extension-zookeeper/src/main/java/com/chua/utils/netx/zookeeper/resolver/ZookeeperResolver.java
Github Open Source
Open Source
Apache-2.0
null
utils-tools
ARCHTK-prog
Java
Code
198
856
package com.chua.utils.netx.zookeeper.resolver; import com.chua.utils.netx.resolver.NetResolver; import com.chua.utils.netx.resolver.entity.NetNodeConf; import com.chua.utils.netx.resolver.entity.Service; import com.chua.utils.netx.resolver.node.NetNode; import com.chua.utils.netx.zookeeper.context.ZookeeperContext; i...
38,572
https://github.com/HiAwesome/kotlin-demo/blob/master/src/main/kotlin/com/moqi/kotlin/ch03/3.3.4_1_NoOverridingForExtensionFunctions.kt
Github Open Source
Open Source
Apache-2.0
null
kotlin-demo
HiAwesome
Kotlin
Code
62
180
package com.moqi.kotlin.ch03 /** * 不可重写的扩展函数 * * @author moqi On 12/3/20 10:15 */ open class View { open fun click() = println("View clicked") } class Button : View() { override fun click() { println("Button clicked") } } fun View.showOff() = println("I'm a view!") fun Button.showOff() = prin...
13,411
https://github.com/Fikryraka/roombook/blob/master/transactionsuserdetail.php
Github Open Source
Open Source
MIT
null
roombook
Fikryraka
PHP
Code
434
2,232
<?php session_start(); if(empty($_SESSION['iduser'])) header('location: signin.php'); require("library/koneksi.php"); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content="A...
32,240