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/bluedogz162/tf_coop_extended_custom/blob/master/src/game/server/explode.cpp
Github Open Source
Open Source
Unlicense
2,022
tf_coop_extended_custom
bluedogz162
C++
Code
1,551
4,861
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: Implements an explosion entity and a support spark shower entity. // // $NoKeywords: $ //=============================================================================// #include "cbase.h" #include "decals.h" #include "explode.h...
31,367
https://github.com/jaspenlind/flexi-path/blob/master/test/path/parse/parse.test.ts
Github Open Source
Open Source
MIT
2,019
flexi-path
jaspenlind
TypeScript
Code
303
976
import { normalize } from "path"; import flexi from "../../../src"; import { meta, parse } from "../../../src/lib/path"; describe("path", () => { describe("parse", () => { const basePath = "base"; const path = "path"; const emptyPath = ""; const basePathWithPath = `${basePath}/${path}`; it("sho...
38,287
https://github.com/sleepsort/entity2vec/blob/master/analogy_benchmark.py
Github Open Source
Open Source
Apache-2.0
2,016
entity2vec
sleepsort
Python
Code
327
1,064
#!/usr/bin/env python import os import sys import json import logging from heapq import nlargest from operator import itemgetter from itertools import imap, groupby import numpy as np from ext import baker from utils import load_word2vec_model def fast_accuracy(vocab, syn0, questions_file, restrict=100000, logger=l...
49,326
https://github.com/ikeydoherty/go-testing/blob/master/.gitmodules
Github Open Source
Open Source
MIT
2,016
go-testing
ikeydoherty
Git Config
Code
8
56
[submodule "src/github.com/gotk3/gotk3"] path = src/github.com/gotk3/gotk3 url = https://github.com/gotk3/gotk3.git
11,570
https://github.com/xmn-services/buckets-network/blob/master/domain/memory/identities/wallets/lists/list/contacts/sdk.go
Github Open Source
Open Source
MIT
null
buckets-network
xmn-services
Go
Code
127
343
package contacts import ( "github.com/xmn-services/buckets-network/domain/memory/identities/wallets/lists/list/contacts/contact" "github.com/xmn-services/buckets-network/libs/hash" ) // NewAdapter creates a new adapter instance func NewAdapter() Adapter { return createAdapter() } // NewFactory creates a new facto...
5,958
https://github.com/Mte90/luaplus51-all/blob/master/Tools/WTL/include/atluser.h
Github Open Source
Open Source
MIT
2,021
luaplus51-all
Mte90
C++
Code
1,102
4,371
// Windows Template Library - WTL version 7.0 // Copyright (C) 1997-2002 Microsoft Corporation // All rights reserved. // // This file is a part of the Windows Template Library. // The code and information is provided "as-is" without // warranty of any kind, either expressed or implied. #ifndef __ATLUSER_H__ #define _...
15,521
https://github.com/Galaxies99/leetcode/blob/master/universal-problems/1356.cpp
Github Open Source
Open Source
MIT
2,020
leetcode
Galaxies99
C++
Code
35
115
class Solution { public: static bool cmp(int x, int y) { return __builtin_popcount(x) < __builtin_popcount(y) || (__builtin_popcount(x) == __builtin_popcount(y) && x < y); } vector<int> sortByBits(vector<int>& arr) { sort(arr.begin(), arr.end(), cmp); return arr; } };
25,453
https://github.com/onyxlang/onyx/blob/master/src/onyx/ast/comment.ts
Github Open Source
Open Source
MIT
2,022
onyx
onyxlang
TypeScript
Code
76
174
import * as GenericAST from "../../ast.ts"; import * as AST from "../ast.ts"; import { Scope } from "../dst.ts"; import { LocationRange } from "../../parser.ts"; export default class Comment extends GenericAST.Node implements AST.Node { readonly value: string; constructor( location: LocationRange, text: s...
50,842
https://github.com/ApocalypseMac/CP/blob/master/atcoder/Educational DP Contest/K.cpp
Github Open Source
Open Source
MIT
null
CP
ApocalypseMac
C++
Code
97
238
#include <bits/stdc++.h> const int maxk = 100005; int n, k; bool dp[maxk]; int main(){ std::cin >> n >> k; std::vector<int> a(n); for (int i = 0; i < n; ++i) std::cin >> a[i]; for (int i = 0; i <= k; ++i){ dp[i] = false; for (int j = 0; j < n and a[j] <= i; ++j){ // ...
26,924
https://github.com/Skyb0rg007/Fifth/blob/master/src/stack-ops.nasm
Github Open Source
Open Source
MIT
null
Fifth
Skyb0rg007
Assembly
Code
570
1,434
;; vim: ft=nasm %ifndef FIFTH_STACK_OPS_NASM %define FIFTH_STACK_OPS_NASM %include "macros.nasm" ;; Single Stack Operations ; DUP ( x -- x x ) defcode "DUP", FTH_DUP mov rax, [rsp] push rax NEXT ; DROP ( x -- ) defcode "DROP", FTH_DROP pop rax NEXT ; SWAP ( x1 x2 -- x2 x1 ) d...
28,069
https://github.com/blueluna/nrf51-ble-demo/blob/master/src/ble/link/data.rs
Github Open Source
Open Source
CC0-1.0
2,018
nrf51-ble-demo
blueluna
Rust
Code
107
199
//! Data Channel operations. pub struct Header(u16); impl Header { /// Returns the raw representation of the header. /// /// The returned `u16` must be transmitted LSB ans LSb first as the first 2 octets of the PDU. pub fn to_u16(&self) -> u16 { self.0 } /// Returns the length of the ...
913
https://github.com/suevip/ms-net/blob/master/src/main/java/cn/ms/net/transport/server/Server.java
Github Open Source
Open Source
MIT
2,016
ms-net
suevip
Java
Code
54
172
package cn.ms.net.transport.server; import java.net.InetSocketAddress; import java.util.Collection; import cn.ms.net.transport.Channel; import cn.ms.net.transport.endpoint.Endpoint; public interface Server extends Endpoint { /** * is server bound * * @return */ boolean isBound(); /...
38,678
https://github.com/Fizioh/ArcGIS/blob/master/client/dist/widgets/arcgis/oriented-imagery/src/setting/setting.tsx
Github Open Source
Open Source
Apache-2.0, MIT
null
ArcGIS
Fizioh
TypeScript
Code
1,790
7,074
import { React, Immutable, DataSourceManager } from 'jimu-core' import { AllWidgetSettingProps } from 'jimu-for-builder' import { MapWidgetSelector, SettingSection, SettingRow } from 'jimu-ui/advanced/setting-components' import { ArcGISDataSourceTypes, MapViewManager, loadArcGISJSAPIModules } from 'jimu-arcgis' import ...
36,225
https://github.com/RWTH-EBC/AixLib/blob/master/AixLib/ThermalZones/ReducedOrder/Windows/BaseClasses/VentilationHeat.mo
Github Open Source
Open Source
BSD-3-Clause
2,023
AixLib
RWTH-EBC
Modelica
Code
321
1,519
within AixLib.ThermalZones.ReducedOrder.Windows.BaseClasses; block VentilationHeat "heat input due to ventilation with closed sunblind" extends Modelica.Blocks.Icons.Block; parameter Real x_f(min=0,max=1) "Percentage of open windowarea" annotation(dialog(group="window")); parameter Modelica.Units.SI.Distance ...
50,260
https://github.com/shamworld/kline_flutter/blob/master/lib/entity/k_line_entity.dart
Github Open Source
Open Source
MIT
null
kline_flutter
shamworld
Dart
Code
133
436
import '../entity/k_entity.dart'; class KLineEntity extends KEntity { double open; double high; double low; double close; double vol; double amount; int count; int id; KLineEntity({this.open, this.high, this.low, this.close, this.vol, this.amount, this.count, this.id}); KLineEntity.fromJson(M...
49,706
https://github.com/d0scoo1/naga_contracts/blob/master/mainnet/contracts/0xfcB0C98C1a42aeAcAD55C3ea8383230608f8087E_ConvexJoin/@yield-protocol/vault-v2/contracts/other/convex/CvxMining.sol
Github Open Source
Open Source
MIT
2,023
naga_contracts
d0scoo1
Gerber Image
Code
138
373
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "./interfaces/ICvx.sol"; /// @notice Contains function to calc amount of CVX to mint from a given amount of CRV library CvxMining { ICvx public constant cvx = ICvx(0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B); /// @param _amount The amount of CRV t...
33,674
https://github.com/dsoronda/QtSharpDemos/blob/master/source/QtSharpDemos/GuiExample/Paint_TextDemo.cs
Github Open Source
Open Source
Apache-2.0
2,021
QtSharpDemos
dsoronda
C#
Code
194
404
using QtGui; using QtWidgets; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using QtCore.Qt; using QtCore; namespace QtSharpDemos.GuiExample { public class Paint_TextDemo : QtWidgets.QWidget { public Paint_TextDemo ( ) { Wi...
27,415
https://github.com/latte2021/Latte/blob/master/test/components/TransferNode.spec.js
Github Open Source
Open Source
MIT
2,022
Latte
latte2021
JavaScript
Code
289
904
import React from 'react'; import Enzyme from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; import { createMount } from '@material-ui/core/test-utils'; import TextField from '@material-ui/core/TextField'; import Button from '@material-ui/core/Button'; import TransferNode from '../../app/components/build/diag...
28,617
https://github.com/ucx-code/ucXception/blob/master/fi-tools/sw-faults/Regression/testsuite/CPP/42/42.cpp._MVIV_1.patch
Github Open Source
Open Source
BSD-3-Clause
2,021
ucXception
ucx-code
null
Spoken
45
125
--- 42.cpp +++ 42.cpp._MVIV_1 2016-03-30 01:37:22.149082200 +0100 @@ -11,7 +11,7 @@ { int j, i, a, k; int maximoFinal = 0; - int anterior = 0; + int anterior = anterior; int agora = 1; for (i = 1;i <= n;i++){ int numberOfCourses = nCoursesDept[i];
29,031
https://github.com/calba/spark-dojo/blob/master/Kata3/K4b_stratified_sampling.py
Github Open Source
Open Source
Apache-2.0
2,015
spark-dojo
calba
Python
Code
416
938
# Quijote words - stratified sample -*-encoding: utf-8-*- # ---------------------------------------------------------------------------------- # Stratified sampling # =================== # In this script we are going to sample a dataset of words, but we'll sample carefully to # avoid r...
53,083
https://github.com/davidgamero/javascript/blob/master/src/top_test.ts
Github Open Source
Open Source
Apache-2.0
2,020
javascript
davidgamero
TypeScript
Code
902
3,860
import { expect } from 'chai'; import nock = require('nock'); import { KubeConfig } from './config'; import { V1Pod } from './gen/api'; import { Metrics, PodMetricsList } from './metrics'; import { topPods } from './top'; import { CoreV1Api } from './gen/api'; const emptyPodMetrics: PodMetricsList = { kind: 'PodMe...
15,564
https://github.com/pplu/aws-sdk-perl/blob/master/auto-lib/Paws/MediaLive/UdpOutputSettings.pm
Github Open Source
Open Source
Apache-2.0
2,023
aws-sdk-perl
pplu
Perl
Code
309
788
# Generated by default/object.tt package Paws::MediaLive::UdpOutputSettings; use Moose; has BufferMsec => (is => 'ro', isa => 'Int', request_name => 'bufferMsec', traits => ['NameInRequest']); has ContainerSettings => (is => 'ro', isa => 'Paws::MediaLive::UdpContainerSettings', request_name => 'containerSettings'...
17,693
https://github.com/rbtech/uno/blob/master/src/compiler/backend/cil/CilBackend.cs
Github Open Source
Open Source
MIT
2,021
uno
rbtech
C#
Code
350
1,378
using System; using System.IO; using Uno.Compiler.API; using Uno.Compiler.API.Backends; using Uno.Compiler.API.Domain.IL; using Uno.IO; namespace Uno.Compiler.Backends.CIL { public class CilBackend : Backend { CilLinker _linker; string _outputDir; internal bool EnableReflection { get;...
4,704
https://github.com/iamprabase/personal-portfolio/blob/master/cms/resources/views/company/units/conversion.blade.php
Github Open Source
Open Source
MIT
2,021
personal-portfolio
iamprabase
Blade
Code
1,490
7,329
@extends('layouts.company') @section('title', 'Unit Conversion') @section('stylesheets') <link rel="stylesheet" href="{{asset('assets/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css') }}"> <link rel="stylesheet" href="{{asset('assets/bower_components/select2/dist/css/select2.min.css') }}"> ...
16,766
https://github.com/tierninho/homebrew-cask-drivers/blob/master/Casks/content-manager-assistant.rb
Github Open Source
Open Source
Unlicense
2,020
homebrew-cask-drivers
tierninho
Ruby
Code
45
284
cask "content-manager-assistant" do version :latest sha256 :no_check url "http://cma.dl.playstation.net/cma/module/mac/CMAInstaller.pkg" name "Content Manager Assistant for PlayStation®" homepage "http://cma.dl.playstation.net/cma/mac/en/index.html" pkg "CMAInstaller.pkg" uninstall quit: [ "jp.c...
40,836
https://github.com/tianhongbo/nodeclub/blob/master/public/javascripts/huami/profile/500.js
Github Open Source
Open Source
MIT
2,016
nodeclub
tianhongbo
JavaScript
Code
45
162
'use strict'; //var React = require('react'); var Error500 = React.createClass({ render: function () { return <section className="content"> <div className="error-page"> <h2 className="headline text-red">500</h2> <div className="error-content"> <h3><i className="fa fa-warning tex...
46,151
https://github.com/abrother94/RF_Auto_Test/blob/master/redfish/4_managers/test_managers_psme.robot
Github Open Source
Open Source
Apache-2.0
null
RF_Auto_Test
abrother94
null
Spoken
347
1,245
*** Settings *** Documentation Test PSME Manager functionality. Resource ../../lib/resource.robot Resource ../../lib/bmc_redfish_resource.robot Resource ../../lib/common_utils.robot Test Setup Test Setup Execution Test Teardown Test Teardown Execution *** Variables *** ${FirmwareV...
29,772
https://github.com/sauntimo/Microsoft-Teams-Samples/blob/master/samples/bot-calling-meeting/csharp/Interfaces/IGraph.cs
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-generic-cla, MIT
2,021
Microsoft-Teams-Samples
sauntimo
C#
Code
97
327
// <copyright file="IGraph.cs" company="PlaceholderCompany"> // Copyright (c) PlaceholderCompany. All rights reserved. // </copyright> namespace CallingBotSample.Interfaces { using System.Threading.Tasks; using Microsoft.Graph; /// <summary> /// Interface for Graph. /// </summary> public inte...
18,289
https://github.com/NathanKr/React/blob/master/Forms/form_simple_input_with_validation/src/App.js
Github Open Source
Open Source
MIT
2,021
React
NathanKr
JavaScript
Code
68
129
import React, { Component } from 'react'; import './App.css'; import PersonForm from './Containers/PersonForm' class App extends Component { render() { return ( // --- basically no matter which form is need it can be done using Form and these 3 props : // --- arInputLogic , isFormValid , handle...
18,718
https://github.com/WCry/demo/blob/master/javademo/src/main/java/threadpool/TestString.java
Github Open Source
Open Source
Apache-2.0
null
demo
WCry
Java
Code
110
294
package threadpool; import java.util.LinkedList; /** * user:zxp * Day:2020,07,16 **/ public class TestString { public static void main(String[] args) { String[] srcStrings = {"a", "b", "c"}; TestString testString = new TestString(); testString.getSubString(srcStrings); } public...
41,340
https://github.com/ng-docs/material2/blob/master/tools/npm-workspace/WORKSPACE
Github Open Source
Open Source
MIT
2,019
material2
ng-docs
Starlark
Code
3
11
workspace(name = "npm")
17,460
https://github.com/ual/ual_model_workspace/blob/master/summer-2018-model/scripts/network-diagnose.py
Github Open Source
Open Source
BSD-3-Clause
2,019
ual_model_workspace
ual
Python
Code
35
105
## Generating Accessibility Vars # # Paul Waddell, UrbanSim, July 2018 # import os os.chdir('../') import numpy as np, pandas as pd import orca from scripts import datasources from scripts import models orca.run(["initialize_network_walk"]) networks.from_yaml(netwalk, 'network_aggregations_walk_test.yaml')
48,850
https://github.com/KozyrOK/Study/blob/master/2week/strlen.c
Github Open Source
Open Source
Unlicense
2,017
Study
KozyrOK
C
Code
51
164
#include <stdio.h> int strLen(char str[]) { int length = 0; for ( ; str[length] != '\0'; length++ ); return length; } int main() { FILE *in = fopen("task.in", "r"); FILE *out = fopen("task.out", "w"); int limitSym = 100; char str[limitSym]; fscanf(in, "%s", str); fpr...
38,683
https://github.com/signet-connectivity/yin/blob/master/tests/JsonApi/Double/StubHydrator.php
Github Open Source
Open Source
MIT
2,022
yin
signet-connectivity
PHP
Code
150
533
<?php declare(strict_types=1); namespace WoohooLabs\Yin\Tests\JsonApi\Double; use WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface; use WoohooLabs\Yin\JsonApi\Hydrator\AbstractHydrator; use WoohooLabs\Yin\JsonApi\Request\JsonApiRequestInterface; class StubHydrator extends AbstractHydrator { /** *...
4,902
https://github.com/JandreColoj/quejas/blob/master/resources/sass/layouts/_tienda.scss
Github Open Source
Open Source
MIT
null
quejas
JandreColoj
SCSS
Code
6,231
22,420
header { float: left; width: 100%; position: fixed; z-index: 1000; .arealogotart { width: 400px; margin: 10px auto; @include media(xs) { float: left; width: 100%; display: flex; justify-content: center; align-items: center; p { ...
46,340
https://github.com/kezeneilhou/TracSfoftware/blob/master/app/Models/Applicants.php
Github Open Source
Open Source
MIT
null
TracSfoftware
kezeneilhou
PHP
Code
55
244
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use App\Models\Driver; use App\Models\Hotels; use App\Models\LiasonOfficer; use App\Models\Room; class Applicants extends Model { use HasFactory; protected $guarded = []; public f...
39,549
https://github.com/nicokist/math/blob/master/test/unit/math/rev/meta/promote_var_matrix_test.cpp
Github Open Source
Open Source
BSD-3-Clause
null
math
nicokist
C++
Code
102
794
#include <stan/math/rev.hpp> #include <gtest/gtest.h> TEST(MathFunctionsPromoteVarMatrix, VarMatrix) { using stan::promote_var_matrix_t; using stan::math::var; using stan::math::var_value; using std::is_same; using var_matrix = var_value<Eigen::MatrixXd>; using var_vector = var_value<Eigen::VectorXd>; u...
16,513
https://github.com/ghsecuritylab/tomato_egg/blob/master/release/src/router/samba3/source/utils/net_rpc_audit.c
Github Open Source
Open Source
FSFAP
2,022
tomato_egg
ghsecuritylab
C
Code
1,013
3,892
/* Samba Unix/Linux SMB client library Distributed SMB/CIFS Server Management Utility Copyright (C) 2006 Guenther Deschner This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either ...
21,610
https://github.com/dhavrosh/realUmls/blob/master/api/actions/user/save.js
Github Open Source
Open Source
MIT
2,019
realUmls
dhavrosh
JavaScript
Code
68
178
import User from '../../models/User'; export default function save(req) { return new Promise((resolve, reject) => { const saveUser = async () => { const user = req.user; const data = req.body; if (user) { if (data.newPassword !== '') { if (user.comparePassword(data.oldPasswor...
27,732
https://github.com/matteofabbri/Workday.WebServices/blob/master/Workday.Payroll/EFW2_Year_End_Employer_Filing_DataType.cs
Github Open Source
Open Source
MIT
2,022
Workday.WebServices
matteofabbri
C#
Code
265
1,613
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Xml.Serialization; namespace Workday.Payroll { [GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepThrough, XmlType(Namespace = "urn:com...
38,324
https://github.com/ghadagesandip/BugTrackerApp/blob/master/app/controllers/RolesController.php
Github Open Source
Open Source
MIT
2,015
BugTrackerApp
ghadagesandip
PHP
Code
283
1,049
<?php class RolesController extends \BaseController { protected $role; public function __construct(Role $role){ $this->role= $role; parent::__construct(); $this->beforeFilter('auth',array('except'=>array('getRolesList','getRole','savePost'))); } public $layout = 'layouts.d...
15,206
https://github.com/mlanglois83/spfx-base-data-services/blob/master/src/interfaces/IFieldDescriptor.ts
Github Open Source
Open Source
MIT
2,020
spfx-base-data-services
mlanglois83
TypeScript
Code
116
241
import { FieldType } from "../constants"; export interface IFieldDescriptor { /** * Internal name of SharePoint field */ fieldName?: string; /** * managed search property */ searchName?: string; /** * Internal name of associated hidden field (TaxonomyMulti only) */ ...
42,022
https://github.com/afeiship/generator-react-app/blob/master/generators/config/index.js
Github Open Source
Open Source
MIT
null
generator-react-app
afeiship
JavaScript
Code
83
253
'use strict'; const chalk = require('chalk'); const { resolve } = require('path'); const yosay = require('yosay'); const Generator = require('yeoman-generator'); const remote = require('yeoman-remote'); const glob = require('glob'); module.exports = class extends Generator { constructor(args, options) { super(ar...
27,703
https://github.com/PacktPublishing/Jakarta-EE-Projects/blob/master/ch3/product-catalogs/src/main/java/org/jakartaeeprojects/catalog/control/AuthorService.java
Github Open Source
Open Source
MIT
2,021
Jakarta-EE-Projects
PacktPublishing
Java
Code
119
440
package org.jakartaeeprojects.catalog.control; import org.jakartaeeprojects.catalog.entity.Author; import org.jakartaeeprojects.catalog.entity.Book; import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax.persistence.NoResultException; import javax.persistence.PersistenceContext; import javax...
9,813
https://github.com/shaxzodbek-uzb/sales-backend/blob/master/app/Domain/Transaction/Services/TransactionService.php
Github Open Source
Open Source
MIT
null
sales-backend
shaxzodbek-uzb
PHP
Code
75
276
<?php namespace Sales\Transaction\Services; use App\Models\Transaction; use Sales\Transaction\Repositories\TransactionRepository; use Sales\Transaction\Strategies\IncomeStrategy; use Sales\Transaction\Strategies\OutcomeStrategy; use Sales\Core\Abstracts\AbstractService; class TransactionService extends AbstractServi...
33,494
https://github.com/fgimenez/packer-templates/blob/master/archlinux/http/configure_ssh.sh
Github Open Source
Open Source
MIT
2,016
packer-templates
fgimenez
Shell
Code
33
140
#!/bin/bash set -e echo "Configuring sshd" sed -i "s/PasswordAuthentication no/PasswordAuthentication yes/g" /etc/ssh/sshd_config sed -i "s/^#PermitRootLogin.*/PermitRootLogin yes/g" /etc/ssh/sshd_config sed -i 's/#UseDNS yes/UseDNS no/g' /etc/ssh/sshd_config echo "root:packer" | sudo chpasswd systemctl restart s...
9,316
https://github.com/wantedlzx/resilience4j/blob/master/resilience4j-metrics/src/test/java/io/github/resilience4j/metrics/RetryMetricsTest.java
Github Open Source
Open Source
Apache-2.0
2,019
resilience4j
wantedlzx
Java
Code
57
311
package io.github.resilience4j.metrics; import com.codahale.metrics.MetricRegistry; import io.github.resilience4j.retry.Retry; import io.github.resilience4j.retry.RetryConfig; import io.github.resilience4j.retry.RetryRegistry; import java.time.Duration; public class RetryMetricsTest extends AbstractRetryMetricsTest{...
10,999
https://github.com/craig-mulligan/resin-python-wrapper/blob/master/balena/models/device_os.py
Github Open Source
Open Source
Apache-2.0
null
resin-python-wrapper
craig-mulligan
Python
Code
1,697
6,112
import json import re import semver from ..base_request import BaseRequest from ..settings import Settings from .. import exceptions NETWORK_WIFI = 'wifi' NETWORK_ETHERNET = 'ethernet' NETWORK_TYPES = [ NETWORK_WIFI, NETWORK_ETHERNET ] ARCH_COMPATIBILITY_MAP = { 'aarch64': ['armv7hf', 'rpi'], 'armv...
39,163
https://github.com/JBAnderson5/terraform-oci-oke/blob/master/modules/policies/policies.tf
Github Open Source
Open Source
UPL-1.0, LicenseRef-scancode-unknown-license-reference
2,021
terraform-oci-oke
JBAnderson5
HCL
Code
132
393
# Copyright 2017, 2019, Oracle Corporation and/or affiliates. All rights reserved. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl resource "oci_identity_policy" "operator_instance_principal_dynamic_group" { provider = oci.home compartment_id = var.ten...
1,048
https://github.com/ngasull/backbone-functional/blob/master/src/spec/Car.js
Github Open Source
Open Source
MIT
2,015
backbone-functional
ngasull
JavaScript
Code
70
238
let Backbone = require('backbone') let Car = Backbone.Model.extend({ defaults: function() { return { color: 'white', year: 2015, seats: 5, kilometers: 0 } }, url: function() { return `foo/year/${this.get('year')}/seats/${this.get('se...
34,751
https://github.com/horizonltd/corona/blob/master/website/urls.py
Github Open Source
Open Source
MIT
null
corona
horizonltd
Python
Code
59
214
from . import views from django.urls import path from django.conf.urls import include from rest_framework import routers from .views import VolunteerViewSet, ReportCaseViewSet #Router router = routers.DefaultRouter() # router.register('doctor', DoctorViewSet) # router.register('expertise', ExpertiseViewSet) router.reg...
22,137
https://github.com/mirzakhany/pm/blob/master/protobuf/roles/roles.pb.go
Github Open Source
Open Source
MIT
2,020
pm
mirzakhany
Go
Code
3,572
13,786
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0-devel // protoc v3.8.0 // source: protobuf/roles/roles.proto package roles import ( context "context" proto "github.com/golang/protobuf/proto" empty "github.com/golang/protobuf/ptypes/empty" timestamp "github.com/golan...
34,826
https://github.com/margostino/amplifix/blob/master/toolkit/src/test/java/toolkit/factory/OrderSender.java
Github Open Source
Open Source
Apache-2.0
2,020
amplifix
margostino
Java
Code
39
140
package toolkit.factory; import lombok.extern.slf4j.Slf4j; import org.gaussian.amplifix.toolkit.worker.ActionExecutor; import toolkit.factory.domain.OrderResponse; @Slf4j public abstract class OrderSender<I> implements ActionExecutor<I> { public void execute(OrderResponse orderResponse) { // do something...
52,765
https://github.com/bteague92/care_for_life_backend/blob/master/families/families-model.js
Github Open Source
Open Source
MIT
2,020
care_for_life_backend
bteague92
JavaScript
Code
95
350
const db = require('../database/db-config.js'); module.exports = { add, find, findBy, findById, update, remove, findByZone }; async function find() { return db('families as f') .join('zones as z', 'z.id', 'f.zone_id') .select('f.id', 'f.name', 'f.zone_id', 'z.name as zo...
47,110
https://github.com/epfldata/squall/blob/master/squall-core/src/main/java/ch/epfl/data/squall/storage/ValueStore.java
Github Open Source
Open Source
Apache-2.0
2,021
squall
epfldata
Java
Code
362
878
/* * Copyright (c) 2011-2015 EPFL DATA Laboratory * Copyright (c) 2014-2015 The Squall Collaboration (see NOTICE) * * 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...
23,389
https://github.com/MiloDC/pinwin/blob/master/Controls/TrayAppForm.cs
Github Open Source
Open Source
MIT
2,022
pinwin
MiloDC
C#
Code
213
590
namespace PinWin.Controls { using System; using System.Windows.Forms; using BusinessLayer; /// <summary> /// Inherit from this form to create system tray applications. /// </summary> /// <remarks> /// Form will be hidden by default. Calling .Show() has no effect. /// Set AllowF...
6,277
https://github.com/rubenring/handleliste/blob/master/api/src/services/userService.js
Github Open Source
Open Source
MIT
null
handleliste
rubenring
JavaScript
Code
357
902
import User from "../database/schemas/User.js"; import Role from "../database/schemas/Role.js"; import { BadRequest, DatabaseError, NotFound, NotModified, } from "../Errors/CustomError.js"; import { enctyptString } from "../utils/tokenUtils.js"; export const createUser = async (username, email, password) => {...
11,456
https://github.com/cam-inc/viron/blob/master/packages/nodejs/src/repositories/mongo/revokedtokens.ts
Github Open Source
Open Source
MIT
2,023
viron
cam-inc
TypeScript
Code
285
803
import { Connection, FilterQuery, QueryOptions } from 'mongoose'; import { RevokedTokenDocument, RevokedTokenModel, } from '../../infrastructures/mongo/models/revokedtokens'; import { domainsAuth } from '../../domains'; import { repositoryContainer } from '..'; import { getMongoQueryOptions, getMongoSortOptions...
7,367
https://github.com/pSpeck/chameleon-shop/blob/master/src/ShopOrderViaPhoneBundle/pkgShop/mappers/TPkgShopBasketMapper_TelephoneOrderForm.class.php
Github Open Source
Open Source
MIT
2,019
chameleon-shop
pSpeck
PHP
Code
491
2,062
<?php /* * This file is part of the Chameleon System (https://www.chameleonsystem.com). * * (c) ESONO AG (https://www.esono.de) * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ use ChameleonSystem\CoreBundle\Service\ActivePageServ...
35,720
https://github.com/LA-Toth/dewi_utils/blob/master/dewi_utils/mailer.py
Github Open Source
Open Source
Apache-2.0
2,022
dewi_utils
LA-Toth
Python
Code
153
659
# Copyright 2018-2022 Tóth, László Attila # Distributed under the terms of the Apache License, Version 2.0 import os import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.utils import formatdate, make_msgid from dewi_utils.render import TemplateRenderer class ...
7,350
https://github.com/dave325/wordpress-nginx-docker/blob/master/wordpress/wp-content/plugins/book-a-room/templates/branches/delete.php
Github Open Source
Open Source
MIT
null
wordpress-nginx-docker
dave325
PHP
Code
563
2,062
<link href="<?php echo plugins_url(); ?>/book-a-room/css/bookaroom_meetings.css" rel="stylesheet" type="text/css"/> <div class=wrap> <div id="icon-options-general" class="icon32"></div> <h2> <?php _e( 'Book a Room Administration - Branches', 'book-a-room' ); ?> </h2> </div> <?php # Display Errors if there are any ...
34,592
https://github.com/NightOfTwelve/iOS-Cracked-Apps/blob/master/DumpedClasses/MQQSecure/WtBase64.h
Github Open Source
Open Source
MIT
2,018
iOS-Cracked-Apps
NightOfTwelve
Objective-C
Code
59
255
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Jul 5 2017 23:13:50). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #import <objc/NSObject.h> @interface WtBase64 : NSObject { } + (id)base64DecodedData:(id)arg1; + (id)base64DecodedString:(id)arg1; + ...
18,060
https://github.com/SSafHar/work5/blob/master/src/assets/styles/vendor/_slider.scss
Github Open Source
Open Source
MIT
null
work5
SSafHar
SCSS
Code
98
284
nouislider { width: 100% !important; } .noUi { &-connect { @include background-linear-gradient(); } &-target { width : 100% !important; border : none !important; border-radius: 30px !important; box-shadow : none !important; } &-horizontal { height: 5px !important; ...
48,769
https://github.com/joseguidetti/ReactNativeWheelPicker/blob/master/index.tsx
Github Open Source
Open Source
MIT
2,019
ReactNativeWheelPicker
joseguidetti
TypeScript
Code
18
49
import WheelPicker from './src/WheelPicker' import TimePicker from './src/TimePicker' import DatePicker from './src/DatePicker' export { WheelPicker, TimePicker, DatePicker }
5,745
https://github.com/stackrox/kube-linter/blob/master/pkg/templates/antiaffinity/internal/params/params.go
Github Open Source
Open Source
Apache-2.0
2,023
kube-linter
stackrox
Go
Code
54
97
package params // Params represents the params accepted by this template. type Params struct { // The minimum number of replicas a deployment must have before anti-affinity is enforced on it MinReplicas int // The topology key that the anti-affinity term should use. // If not specified, it defaults to "kubernete...
11,666
https://github.com/kinkop/icmrs/blob/master/public/themes/admin/views/conference_register/index.blade.php
Github Open Source
Open Source
MIT
null
icmrs
kinkop
PHP
Code
98
495
<div class="row"> <div class="col-sm-12"> <section class="panel"> <header class="panel-heading"> <h3>Conference Registers ({{ ucfirst($register_type) }})</h3> </header> <div> </div> <table class="table"> <thead> ...
34,787
https://github.com/loolooyyyy/konfigurations/blob/master/src/test/java/io/koosha/konfiguration/KonfigurationKombinerTest.java
Github Open Source
Open Source
Apache-2.0
null
konfigurations
loolooyyyy
Java
Code
159
709
package io.koosha.konfiguration; import io.koosha.konfiguration.error.KfgMissingKeyException; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; import java.util.Map; import java.util.concurrent.atomic.AtomicBoolean; import java.util.function.Supplier; import static java.util.Collections...
54,346
https://github.com/mattcaswell253/Meal-Tracker/blob/master/app/app.component.ts
Github Open Source
Open Source
MIT
2,017
Meal-Tracker
mattcaswell253
TypeScript
Code
83
370
import { Component } from '@angular/core'; import { Meal } from './meal.model'; @Component({ selector: 'app-root', template: ` <div class="container"> <div class="jumbotron"> <h1>Meal Tracker!</h1> </div> <h2> Todays Meals: </h2> <meal-list [childMealList]="mealList" (clickSender)="editMeal($event)"></...
20,790
https://github.com/Esri/arcgis-runtime-samples-macos/blob/master/arcgis-runtime-samples-macos/Content Display Logic/Model/SampleSearchEngine.swift
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,023
arcgis-runtime-samples-macos
Esri
Swift
Code
712
1,780
// Copyright 2016 Esri. // // 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,...
29,875
https://github.com/maxole/project_core/blob/master/old/ocr/IAlphabet.cs
Github Open Source
Open Source
Unlicense
null
project_core
maxole
C#
Code
97
232
using System; namespace OCR { public interface IAlphabet { int Labels { get; } string[] Data { get; } void Initialize(string data); } public class Alphabet : IAlphabet { private string[] _data; private string _raw; public Alphabet() { ...
29,700
https://github.com/GipsyBot/fullcalendar/blob/master/packages/common/src/structs/event-source.ts
Github Open Source
Open Source
MIT
2,021
fullcalendar
GipsyBot
TypeScript
Code
200
466
import { EventInput, EventInputTransformer } from './event-parse' import { DateRange } from '../datelib/date-range' import { EventUi } from '../component/event-ui' import { CalendarContext } from '../CalendarContext' import { CalendarApi } from '../CalendarApi' import { Dictionary } from '../options' /* TODO: "EventSo...
6,708
https://github.com/Bharathh-Raj/corona_info/blob/master/test/fetch_article_test.dart
Github Open Source
Open Source
BSD-3-Clause
2,020
corona_info
Bharathh-Raj
Dart
Code
28
149
import 'package:corona_app/model/article.dart'; import 'package:corona_app/repository/fetch_article.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/mockito.dart'; void main(){ test('Fetch article form API',(){ when(fetchArticle(any)).thenAnswer((realInvocation) async=> Future.valu...
43,986
https://github.com/dtoriki/EconomyMonitor/blob/master/src/EconomyMonitor.Literals/ExceptionMessages.cs
Github Open Source
Open Source
MIT
null
EconomyMonitor
dtoriki
C#
Code
288
984
namespace EconomyMonitor.Literals; /// <summary> /// Содержит сообщения для вызова исключений <see cref="Exception"/>. /// </summary> public static class ExceptionMessages { /// <summary> /// Возвращает сообщение "Аргумент \"{0}\" не может быть меньше чем \"{1}\".". /// </summary> public static string ...
837
https://github.com/DulapahV/CPP-Project/blob/master/C_project_Menu.c
Github Open Source
Open Source
MIT
null
CPP-Project
DulapahV
C
Code
47
147
#include<stdio.h> void main() { int a; printf("Select Menu\n1.Search book\n2.Buy Book\n3.Show book list\n4.Check Out"); scanf("%d",&a); switch (a) { case 1 : //search book function break; case 2 : //Buy book function break; c...
47,931
https://github.com/hejunli-s/sahara-dashboard/blob/master/sahara_dashboard/content/data_processing/jobs/data_sources/tables.py
Github Open Source
Open Source
Apache-2.0
2,020
sahara-dashboard
hejunli-s
Python
Code
295
1,032
# 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 # distributed under the...
37,153
https://github.com/fasteque/RxBackup/blob/master/app/src/main/java/com/fasteque/rxbackup/utils/StringUtils.java
Github Open Source
Open Source
Apache-2.0
2,021
RxBackup
fasteque
Java
Code
113
241
package com.fasteque.rxbackup.utils; /** * Created by danielealtomare on 09/08/15. * Project: RxBackup */ public class StringUtils { /** * Android has it own formatter for bytes, but with this utility, there's no need to pass a Context. * In AppListAdapter we do not have to pass a context yet, so let...
48,522
https://github.com/RhnSharma/uwazi/blob/master/app/react/Documents/components/DocumentSidePanel.js
Github Open Source
Open Source
MIT
2,021
uwazi
RhnSharma
JavaScript
Code
1,175
5,040
/* eslint-disable max-lines */ import { Tabs, TabLink, TabContent } from 'react-tabs-redux'; import { browserHistory } from 'react-router'; import { connect } from 'react-redux'; import Immutable from 'immutable'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import './scss/toc.scss'; i...
14,832
https://github.com/fe6/icon/blob/master/packages/img/src/icons/byted-cosmetic-brush.ts
Github Open Source
Open Source
MIT
2,022
icon
fe6
TypeScript
Code
168
935
/** * @format * @file BytedCosmeticBrush byted-cosmetic-brush * @author 由 fe6 自动生成 */ import { IIconProps, IconWrapper } from '../runtime'; // 获取 SVG 的 HTML 字符串 export const getIconBytedCosmeticBrushSvgHtml = (props: IIconProps) => `<?xml version="1.0" encoding="UTF-8"?> <svg width="${props.size}" height="${ ...
38,781
https://github.com/adeze/chef-kafka-s3-consumer-cookbook/blob/master/recipes/run.rb
Github Open Source
Open Source
Apache-2.0
2,013
chef-kafka-s3-consumer-cookbook
adeze
Ruby
Code
97
578
node[:deploy].each do |application, _| service 'monit' do action :nothing end template node[:kafka_s3_consumer][application][:config_file] do source 'consumer.properties.erb' mode '0660' owner node[:kafka_s3_consumer][:user] group node[:kafka_s3_consumer][:group] variables( ...
33,092
https://github.com/irwanchyt/que-app/blob/master/resources/views/pages/category/edit.blade.php
Github Open Source
Open Source
MIT
2,021
que-app
irwanchyt
Blade
Code
107
495
@extends('layouts.app2') @section('title', 'Edit Category') @section('content') <div class="container"> <div class="card mt-2" style="padding:10px"> <form method="POST" action="{{ route('category.update',$category->id) }}"> @csrf <div class="form-group row...
41,780
https://github.com/ivstem/backend/blob/master/backend/migrations/m170618_083820_create_check_table.php
Github Open Source
Open Source
MIT
2,017
backend
ivstem
PHP
Code
52
182
<?php use yii\db\Migration; /** * Handles the creation of table `check`. */ class m170618_083820_create_check_table extends Migration { /** * @inheritdoc */ public function up() { $this->createTable('check', [ 'id' => $this->primaryKey(), 'doc' => $this->text()-...
11,074
https://github.com/jiniya22/chaeking-api/blob/master/src/main/java/com/chaeking/api/config/OpenApiConfig.java
Github Open Source
Open Source
MIT
null
chaeking-api
jiniya22
Java
Code
87
549
package com.chaeking.api.config; import io.swagger.v3.oas.models.Components; import io.swagger.v3.oas.models.OpenAPI; import io.swagger.v3.oas.models.info.Contact; import io.swagger.v3.oas.models.info.Info; import io.swagger.v3.oas.models.info.License; import io.swagger.v3.oas.models.security.SecurityRequirement; impo...
34,157
https://github.com/MrBalck/MTransition/blob/master/mtransition/src/main/java/com/mjun/mtransition/MTransitionPage.java
Github Open Source
Open Source
Apache-2.0
2,018
MTransition
MrBalck
Java
Code
1,003
3,589
package com.mjun.mtransition; import java.util.*; import android.app.Activity; import android.graphics.Color; import android.os.Build; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.view.View; import android.view.ViewTreeObserver; import android.widget.FrameLayou...
16,653
https://github.com/Sarmin-akter1/Dynamic-Website-in-Laravel/blob/master/resources/views/Auth/login.blade.php
Github Open Source
Open Source
MIT
2,021
Dynamic-Website-in-Laravel
Sarmin-akter1
Blade
Code
131
550
@extends('layouts.master') @section('bodySection') <section class="section colored" id="contact-us"> <div class="container"> <!-- ***** Section Title Start ***** --> <!-- ***** Section Title End ***** --> <div class="row"> <div class="col-lg-8 col-md-6 ...
22,855
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/百度 - 有事搜一搜,没事看一看-10.4.5(越狱应用)_headers/BBACommonPlugin.h
Github Open Source
Open Source
MIT
2,018
Just_a_dumper
i-gaven
Objective-C
Code
66
277
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #import "BBASDPluginBase.h" @interface BBACommonPlugin : BBASDPluginBase { } - (void)skinCenter:(id)arg1; - (id)command; - (long long...
5,637
https://github.com/tmnhs/admin-mall/blob/master/server/model/mall/request/category.go
Github Open Source
Open Source
Apache-2.0
2,022
admin-mall
tmnhs
Go
Code
14
82
package request import ( "github.com/flipped-aurora/gin-vue-admin/server/model/common/request" "github.com/flipped-aurora/gin-vue-admin/server/model/mall" ) type CategorySearch struct { mall.Category request.PageInfo }
9,409
https://github.com/INDElab/conversationkg/blob/master/conversationkg/kgs/__init__.py
Github Open Source
Open Source
Apache-2.0
2,021
conversationkg
INDElab
Python
Code
22
41
from .KGs import KG from .KGs import Person as PersonNode from .EmailKG import EmailKG from .TextKG import TextKG from .writers import CSVWriter
16,680
https://github.com/daijiale/DaiJiale-ProfessionalNotes/blob/master/DaiJiale-PHP/Php_Lecture_Demo/2.basics/typecasting.php
Github Open Source
Open Source
MIT
2,018
DaiJiale-ProfessionalNotes
daijiale
PHP
Code
175
822
<?php echo $_SERVER['SCRIPT_NAME']."<BR>"; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>typecasting</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <link href="include/main.css" rel="stylesheet" type="text/cs...
7,515
https://github.com/carlocorradini/filmy/blob/master/src/controllers/ActorController.ts
Github Open Source
Open Source
MIT
null
filmy
carlocorradini
TypeScript
Code
708
1,919
/* eslint-disable camelcase */ // eslint-disable-next-line no-unused-vars import { Request, Response } from 'express'; import { getRepository, getCustomRepository, QueryFailedError, Like, Between } from 'typeorm'; import { validateOrReject } from 'class-validator'; import { InvalidParamError } from '../utils/errors'; i...
13,398
https://github.com/exododigitalmkt/laraFood/blob/master/resources/lang/en/messages.php
Github Open Source
Open Source
MIT
null
laraFood
exododigitalmkt
PHP
Code
8
28
<?php return [ 'invalid_credenctials' => 'Invalid Credentials.', ];
45,839
https://github.com/alexwang2013/cylon-pcduino/blob/master/lib/pcduino.js
Github Open Source
Open Source
Apache-2.0
2,016
cylon-pcduino
alexwang2013
JavaScript
Code
268
1,016
'use strict'; var Cylon = require('cylon'); var PIN = require('./pin') var PINS = { 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, 10: 10, 11: 11, 12: 12, 13: 13, 14: 14, 15: 15, 16: 16, 17: 17, 18: 18 }; var PcDuino = module.exports = function PcDuino() { PcDuino.__super__...
1,775
https://github.com/noel-yoo/Data-Structures-and-Algorithms/blob/master/internal/bloom_filter/bloom_filter_test.go
Github Open Source
Open Source
MIT
2,021
Data-Structures-and-Algorithms
noel-yoo
Go
Code
52
183
package bloomfilter import ( "testing" ) func TestBloomFilter(t *testing.T) { b := New(100) b.Set("ahri") result := b.ProbablyHas("ahri") if !result { t.Errorf("%#v; want %#v", result, true) } result = b.ProbablyHas("bob") if result { t.Errorf("%#v; want %#v", result, false) } b.Set("bob") result = b...
1,700
https://github.com/vgrdominik/blogFrontend/blob/master/components/CtTextField.vue
Github Open Source
Open Source
MIT
2,020
blogFrontend
vgrdominik
Vue
Code
64
235
<template> <v-text-field v-if="ctType==='outlined'" :dense="! withoutDense" outlined v-on="$listeners" v-bind="$attrs"> <slot /> </v-text-field> <v-text-field v-else v-on="$listeners" v-bind="$attrs"> <slot /> </v-text-field> </template> <script type="application/javascript"> export default { name: "...
26,499
https://github.com/ClotildeToullec/Moose/blob/master/src/Famix-Traits/FamixTContainingWithStatementsGlue.trait.st
Github Open Source
Open Source
MIT
2,019
Moose
ClotildeToullec
null
Spoken
231
673
Trait { #name : #FamixTContainingWithStatementsGlue, #category : #'Famix-Traits-Traits' } { #category : #meta } FamixTContainingWithStatementsGlue classSide >> annotation [ <MSEClass: #TContainingWithStatementsGlue super: #Trait> <generated> <package: #'Famix-Traits'> ^self ] { #category : #generation } FamixT...
1,389
https://github.com/fakexunni/VideoEdit/blob/master/FXVideoEdit/FXVideoEdit/WQVideoBuilder/Describe/EditDescribe/FXMusicDescribe.h
Github Open Source
Open Source
MIT
2,021
VideoEdit
fakexunni
Objective-C
Code
47
143
// // FXMusicDescribe.h // FXVideoEdit // // Created by xunni zou on 2020/9/3. // Copyright © 2020 xunni zou. All rights reserved. // #import "FXDescribe.h" #import "FXAudioItem.h" @interface FXMusicDescribe : FXDescribe @property (nonatomic, assign) NSInteger musicIndex; @property (nonatomic, assign) CGFloat ...
3,311
https://github.com/richard457/isar/blob/master/packages/isar_generator/lib/src/code_gen/by_index_generator.dart
Github Open Source
Open Source
Apache-2.0
2,022
isar
richard457
Dart
Code
246
1,014
import 'package:dartx/dartx.dart'; import 'package:isar_generator/src/helper.dart'; import 'package:isar_generator/src/object_info.dart'; String generateByIndexExtension(ObjectInfo oi) { final uniqueIndexes = oi.indexes.where((e) => e.unique).toList(); if (uniqueIndexes.isEmpty) { return ''; } var code = ...
16,411
https://github.com/geomin76/geomin76.github.io/blob/master/src/components/layout.js
Github Open Source
Open Source
MIT
2,023
geomin76.github.io
geomin76
JavaScript
Code
178
892
import React from "react" import { Link } from "gatsby" const Layout = props => { const { title, children } = props const [toggleNav, setToggleNav] = React.useState(false) return ( <div className={`site-wrapper ${toggleNav ? `site-head-open` : ``}`}> <header className="site-head"> <div classNam...
29,757
https://github.com/lulzzz/omnix/blob/master/src/Omnix.Remoting/OmniRpc.cs
Github Open Source
Open Source
MIT
2,019
omnix
lulzzz
C#
Code
147
471
using System; using System.Buffers; using System.Buffers.Binary; using System.Collections.Concurrent; using System.Threading.Tasks; using Omnix.Base; using Omnix.Network.Connection; using Omnix.Serialization; using Omnix.Serialization.RocketPack; namespace Omnix.Remoting { public sealed partial class OmniRpc ...
20,195
https://github.com/ory/keto/blob/master/cmd/relationtuple/delete.go
Github Open Source
Open Source
Apache-2.0
2,023
keto
ory
Go
Code
188
697
// Copyright © 2023 Ory Corp // SPDX-License-Identifier: Apache-2.0 package relationtuple import ( "fmt" "github.com/ory/keto/ketoapi" rts "github.com/ory/keto/proto/ory/keto/relation_tuples/v1alpha2" "github.com/ory/x/cmdx" "github.com/spf13/cobra" "github.com/ory/keto/cmd/client" ) func NewDeleteCmd() *c...
20,231
https://github.com/lihexin88/yifu_/blob/master/yifu/admin/application/monitor/view/agent/controller/Index.php
Github Open Source
Open Source
Apache-2.0
2,018
yifu_
lihexin88
PHP
Code
371
1,590
<?php namespace app\agent\controller; use app\common\model\Relation; use app\agent\model\Agent; use app\agent\model\Flow; use think\Request; class Index extends Common { public function __construct(Request $request = null) { parent::__construct($request); $this->Agent = new Agent(); $th...
4,916