hexsha stringlengths 40 40 | size int64 5 1.05M | ext stringclasses 98
values | lang stringclasses 21
values | max_stars_repo_path stringlengths 3 945 | max_stars_repo_name stringlengths 4 118 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 368k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 945 | max_issues_repo_name stringlengths 4 118 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 134k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 945 | max_forks_repo_name stringlengths 4 135 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 5 1.05M | avg_line_length float64 1 1.03M | max_line_length int64 2 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c9dc3b7f58b8e19365e7dea5b7bbf7baac90972e | 12,097 | ts | TypeScript | apps/user/src/user.service.ts | cuong18011901/app-private | ac8e273b737b15b3daa163037bd3a9b213dbba9e | [
"MIT"
] | 2 | 2021-05-25T11:47:16.000Z | 2021-05-25T11:47:17.000Z | apps/user/src/user.service.ts | cuong18011901/BackEnd-App-Private | ac8e273b737b15b3daa163037bd3a9b213dbba9e | [
"MIT"
] | 1 | 2021-05-25T11:43:19.000Z | 2021-05-25T11:43:36.000Z | apps/user/src/user.service.ts | cuong18011901/app-private | ac8e273b737b15b3daa163037bd3a9b213dbba9e | [
"MIT"
] | null | null | null | import { AppError } from '@app/common';
import { CategoryRepo, NoteRepo, PostRepo, WalletRepo } from '@app/repositories';
import { Injectable } from '@nestjs/common';
import { RequestParamDto } from '../dto';
@Injectable()
export class UserService {
constructor(
private readonly _category: CategoryRepo,
... | 36.881098 | 124 | 0.504588 |
2cb1f1af6a886865ab36dec4f939eb51b38fe7d5 | 3,660 | py | Python | arkestra_utilities/admin_mixins.py | luxumbra/Arkestra | 1e136641d27bb50cfb60c17cfbd3351882a6de30 | [
"BSD-2-Clause"
] | null | null | null | arkestra_utilities/admin_mixins.py | luxumbra/Arkestra | 1e136641d27bb50cfb60c17cfbd3351882a6de30 | [
"BSD-2-Clause"
] | null | null | null | arkestra_utilities/admin_mixins.py | luxumbra/Arkestra | 1e136641d27bb50cfb60c17cfbd3351882a6de30 | [
"BSD-2-Clause"
] | null | null | null | from django.db.models import ForeignKey
from django.conf import settings
from django import forms
from cms.utils import cms_static_url
from widgetry import fk_lookup
from contacts_and_people.models import Entity
class AutocompleteMixin(object):
class Media:
js = [
# '/static/jquer... | 41.123596 | 230 | 0.62377 |
b37ce38aaa8bfa011ffdabfc1b43fc956a5bf306 | 206 | kt | Kotlin | typescript-kotlin/src/main/kotlin/typescript/IntersectionTypeNode.kt | JervNorsk/types-kotlin | ea7261ca0fac6ef75a3d5139e4765a286e638a4e | [
"Apache-2.0"
] | 9 | 2021-08-16T07:42:18.000Z | 2021-09-24T08:04:03.000Z | typescript-kotlin/src/main/kotlin/typescript/IntersectionTypeNode.kt | JervNorsk/types-kotlin | ea7261ca0fac6ef75a3d5139e4765a286e638a4e | [
"Apache-2.0"
] | null | null | null | typescript-kotlin/src/main/kotlin/typescript/IntersectionTypeNode.kt | JervNorsk/types-kotlin | ea7261ca0fac6ef75a3d5139e4765a286e638a4e | [
"Apache-2.0"
] | 1 | 2021-09-20T18:16:57.000Z | 2021-09-20T18:16:57.000Z | // Automatically generated - do not modify!
package typescript
external interface IntersectionTypeNode : TypeNode {
override val kind: SyntaxKind.IntersectionType
val types: NodeArray<TypeNode>
}
| 22.888889 | 52 | 0.781553 |
b015f22c33d18e2a51a3931ac302274b6a3f4bd9 | 883 | py | Python | tests/files/named_numbers.py | cromulencellc/asn1tools | 30eb88e287cc1616903858aa96ee8791a4d7bf1c | [
"MIT"
] | 198 | 2017-08-04T21:49:15.000Z | 2022-03-26T10:11:21.000Z | tests/files/named_numbers.py | cromulencellc/asn1tools | 30eb88e287cc1616903858aa96ee8791a4d7bf1c | [
"MIT"
] | 144 | 2017-09-29T12:06:51.000Z | 2022-03-29T13:04:44.000Z | tests/files/named_numbers.py | cromulencellc/asn1tools | 30eb88e287cc1616903858aa96ee8791a4d7bf1c | [
"MIT"
] | 73 | 2017-10-09T13:33:28.000Z | 2022-03-11T01:35:22.000Z | EXPECTED = {'Foo': {'extensibility-implied': False,
'imports': {},
'object-classes': {},
'object-sets': {},
'tags': 'AUTOMATIC',
'types': {'A': {'restricted-to': [('min', 'max')],
'type': 'Constants'},
'B': {'restricted-to': ['unkn... | 51.941176 | 76 | 0.329558 |
93a82cd15b4be3fe7f6df36a718ad5e08fbc4ec4 | 107 | cs | C# | BTCPayServer/Views/Invoice/InvoiceNavPages.cs | bolatovumar/btcpayserver | 7f40698bba675a3dfbda6584de84d6f3ff68443a | [
"MIT"
] | 3,562 | 2017-08-18T13:00:13.000Z | 2022-03-31T19:24:40.000Z | BTCPayServer/Views/Invoice/InvoiceNavPages.cs | bolatovumar/btcpayserver | 7f40698bba675a3dfbda6584de84d6f3ff68443a | [
"MIT"
] | 2,409 | 2017-08-18T13:21:09.000Z | 2022-03-31T23:22:11.000Z | BTCPayServer/Views/Invoice/InvoiceNavPages.cs | bolatovumar/btcpayserver | 7f40698bba675a3dfbda6584de84d6f3ff68443a | [
"MIT"
] | 988 | 2017-08-18T13:05:43.000Z | 2022-03-31T21:38:01.000Z | namespace BTCPayServer.Views.Invoice
{
public enum InvoiceNavPages
{
Index, Create
}
}
| 13.375 | 36 | 0.64486 |
c68b7966a5393667145e803307855f2201d24f4d | 5,125 | dart | Dart | lib/models/forum_user_model.dart | ashutoshkr/mobile | 7e2a0d0ac0787567894a7bfcf0ea8016da2ab791 | [
"BSD-3-Clause"
] | null | null | null | lib/models/forum_user_model.dart | ashutoshkr/mobile | 7e2a0d0ac0787567894a7bfcf0ea8016da2ab791 | [
"BSD-3-Clause"
] | null | null | null | lib/models/forum_user_model.dart | ashutoshkr/mobile | 7e2a0d0ac0787567894a7bfcf0ea8016da2ab791 | [
"BSD-3-Clause"
] | null | null | null | class User {
final String username;
final String name;
final String profilePicture;
final String lastSeen;
final String createdAt;
final String title;
final String? bio;
final String dateOfBirth;
final bool ignored;
final bool muted;
final bool canSendPrivateMessages;
final bool canSendPrivateMe... | 28.472222 | 89 | 0.669073 |
f62f1572f726e6299c7988be717afbe9be20041d | 11,294 | cc | C++ | zircon/system/utest/trace/record_tests.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | zircon/system/utest/trace/record_tests.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | zircon/system/utest/trace/record_tests.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <inttypes.h>
#include <zircon/syscalls.h>
#include <array>
#include <memory>
#include <fbl/algorithm.h>
#include <fbl/string_printf.h>
#include ... | 34.224242 | 100 | 0.658226 |
b631d5e3ee8260174b1ca975632c5839f195bbad | 2,001 | asm | Assembly | gf2_64b.asm | olivamadrigal/GF2-Multiplication-x86 | 90cd1e3dd8b5d68053b824f5a23002dc82567d6a | [
"MIT"
] | null | null | null | gf2_64b.asm | olivamadrigal/GF2-Multiplication-x86 | 90cd1e3dd8b5d68053b824f5a23002dc82567d6a | [
"MIT"
] | null | null | null | gf2_64b.asm | olivamadrigal/GF2-Multiplication-x86 | 90cd1e3dd8b5d68053b824f5a23002dc82567d6a | [
"MIT"
] | null | null | null | ;;64-bit version GF2MUL multiplication of elements in GF(2^n) using simple shift and add
;;with n=29, two elements of max degree d=28 at 29bits => max product of deg(56) at 57bits
;;
;;initial super simple case: b=2h,a=3h,c=6h
;;scale up:b=105h,a=0fah
;;for 64-bit displacement is at rsp + or - 8 (as opposed to 4 with 3... | 19.057143 | 90 | 0.563218 |
d5b8acdbd536cddc1c2cce5922d4df035d24a4da | 242 | swift | Swift | CodeWithChris/WarCardGame/WarCardGame/WarCardGameApp.swift | milanpanchal/SwiftUILearning | 4cad9299526612c93dc57559d330c1b5403fd5a7 | [
"MIT"
] | null | null | null | CodeWithChris/WarCardGame/WarCardGame/WarCardGameApp.swift | milanpanchal/SwiftUILearning | 4cad9299526612c93dc57559d330c1b5403fd5a7 | [
"MIT"
] | null | null | null | CodeWithChris/WarCardGame/WarCardGame/WarCardGameApp.swift | milanpanchal/SwiftUILearning | 4cad9299526612c93dc57559d330c1b5403fd5a7 | [
"MIT"
] | null | null | null | //
// WarCardGameApp.swift
// WarCardGame
//
// Created by Milankumar Panchal on 10/03/22.
//
import SwiftUI
@main
struct WarCardGameApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
| 13.444444 | 46 | 0.586777 |
4437dde2033adce1a8304e41d8b2d6d7c1455a69 | 6,096 | py | Python | poor_trader/systems.py | johndpope/poor-trader-py | 097fbb10c217abe0db5a2cd55d73e0ad2990acd9 | [
"MIT"
] | 1 | 2020-03-30T19:04:39.000Z | 2020-03-30T19:04:39.000Z | poor_trader/systems.py | johndpope/poor-trader-py | 097fbb10c217abe0db5a2cd55d73e0ad2990acd9 | [
"MIT"
] | null | null | null | poor_trader/systems.py | johndpope/poor-trader-py | 097fbb10c217abe0db5a2cd55d73e0ad2990acd9 | [
"MIT"
] | null | null | null |
import os
import pandas as pd
import numpy as np
from path import Path
from poor_trader import indicators
from poor_trader.config import SYSTEMS_PATH
def _trim_quotes(symbol, df_group_quotes):
df_quotes = df_group_quotes.filter(regex='^{}_'.format(symbol))
df_quotes.columns = [_.replace(symbol + '_', '') for... | 58.057143 | 154 | 0.640912 |
2c6d98eac0f4d1ab27bed8405724fc767df4d05a | 1,594 | py | Python | tests/test_glob_files.py | fem-on-colab/open-in-colab-workflow | d5309ff527cbea8a536a8890c88a8cc39bdb8b3c | [
"MIT"
] | null | null | null | tests/test_glob_files.py | fem-on-colab/open-in-colab-workflow | d5309ff527cbea8a536a8890c88a8cc39bdb8b3c | [
"MIT"
] | null | null | null | tests/test_glob_files.py | fem-on-colab/open-in-colab-workflow | d5309ff527cbea8a536a8890c88a8cc39bdb8b3c | [
"MIT"
] | null | null | null | # Copyright (C) 2021-2022 by the FEM on Colab authors
#
# This file is part of FEM on Colab-related actions.
#
# SPDX-License-Identifier: MIT
"""Tests for the open_in_colab_workflow.glob_files package."""
import os
from open_in_colab_workflow.glob_files import glob_files
def test_glob_files_single_pattern(root_dire... | 44.277778 | 90 | 0.71079 |
051ddcccabc24120993b139401b507f6a5b3dff6 | 52 | css | CSS | atividade/Tabela periodica/sodio.css | LucasssSiqueira/Atividade-Tabela_Periodica | bcdbac1884b11293e626bad44a1040e953a86f79 | [
"MIT"
] | null | null | null | atividade/Tabela periodica/sodio.css | LucasssSiqueira/Atividade-Tabela_Periodica | bcdbac1884b11293e626bad44a1040e953a86f79 | [
"MIT"
] | null | null | null | atividade/Tabela periodica/sodio.css | LucasssSiqueira/Atividade-Tabela_Periodica | bcdbac1884b11293e626bad44a1040e953a86f79 | [
"MIT"
] | null | null | null | h1 {
background-color: rgb(154, 156, 155);
} | 17.333333 | 41 | 0.557692 |
a1245aa606bd2afe3a9a3dd889708b9689b05951 | 2,335 | ts | TypeScript | src/app/plan/scheme/form/editor/course-editor/allowed-term.component.ts | Gitjerryzhong/bell-tm-client | f115c02268ae29f23d0811b983cd9e9107da232d | [
"Apache-2.0"
] | 13 | 2018-08-25T04:04:13.000Z | 2021-09-27T03:46:02.000Z | src/app/plan/scheme/form/editor/course-editor/allowed-term.component.ts | todoubaba/bell-tm-client | a66786f327d026d0673170bd730f70bfbbd674cf | [
"Apache-2.0"
] | 24 | 2019-02-01T02:34:06.000Z | 2022-02-12T02:48:42.000Z | src/app/plan/scheme/form/editor/course-editor/allowed-term.component.ts | Gitjerryzhong/bell-tm-client | f115c02268ae29f23d0811b983cd9e9107da232d | [
"Apache-2.0"
] | 8 | 2018-08-25T03:09:49.000Z | 2020-12-21T02:22:07.000Z | import { Component, EventEmitter, Input, Output, SimpleChange, OnInit, OnChanges, forwardRef } from '@angular/core';
import { FormArray, FormControl, NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms';
import { getBit, setBit } from 'core/utils';
@Component({
selector: 'tm-allowed-term',
template... | 32.887324 | 122 | 0.592291 |
14f9d9c4c252da2929467e532c0648e1c428882e | 305 | ts | TypeScript | @types/jdk/java.beans.beancontext.BeanContextProxy.d.ts | wizawu/1c | b8b3c5d915de264347f42c438493e6a948de6d5c | [
"MIT"
] | 126 | 2017-05-01T01:58:18.000Z | 2020-09-14T01:17:51.000Z | @types/jdk/java.beans.beancontext.BeanContextProxy.d.ts | wizawu/1c | b8b3c5d915de264347f42c438493e6a948de6d5c | [
"MIT"
] | 17 | 2017-07-18T21:33:13.000Z | 2020-09-01T15:00:57.000Z | @types/jdk/java.beans.beancontext.BeanContextProxy.d.ts | wizawu/1c | b8b3c5d915de264347f42c438493e6a948de6d5c | [
"MIT"
] | 6 | 2018-06-26T13:10:22.000Z | 2020-05-14T21:34:19.000Z | declare namespace java {
namespace beans {
namespace beancontext {
interface BeanContextProxy$$lambda {
(): java.beans.beancontext.BeanContextChild
}
interface BeanContextProxy {
getBeanContextProxy(): java.beans.beancontext.BeanContextChild
}
}
}
}
| 19.0625 | 70 | 0.659016 |
1a51ce17e500d0f92115bda5567132b52e5563e6 | 117 | py | Python | dartsclone/__init__.py | expnn/darts-clone-python | e78f4d8b2193e512f182e392829f1517dc46df15 | [
"Apache-2.0"
] | null | null | null | dartsclone/__init__.py | expnn/darts-clone-python | e78f4d8b2193e512f182e392829f1517dc46df15 | [
"Apache-2.0"
] | null | null | null | dartsclone/__init__.py | expnn/darts-clone-python | e78f4d8b2193e512f182e392829f1517dc46df15 | [
"Apache-2.0"
] | null | null | null | from dartsclone._dartsclone import DoubleArray, TraverseState
__all__ = [
"DoubleArray",
"TraverseState",
]
| 16.714286 | 61 | 0.735043 |
cd9e696d555c6909bb287809d48a5f7d0df8aa5f | 296 | cs | C# | src/CleanArchitecture.Core/Features/Books/Read/GetBookById/GetBookByIdQuery.cs | henriquesd/CleanArchitecture | 6302ea12e4fe9d19872d5ba2785fbee7c79f956c | [
"MIT"
] | null | null | null | src/CleanArchitecture.Core/Features/Books/Read/GetBookById/GetBookByIdQuery.cs | henriquesd/CleanArchitecture | 6302ea12e4fe9d19872d5ba2785fbee7c79f956c | [
"MIT"
] | null | null | null | src/CleanArchitecture.Core/Features/Books/Read/GetBookById/GetBookByIdQuery.cs | henriquesd/CleanArchitecture | 6302ea12e4fe9d19872d5ba2785fbee7c79f956c | [
"MIT"
] | null | null | null | using MediatR;
namespace CleanArchitecture.Core.Features.Books.Read.GetBookById
{
public class GetBookByIdQuery : IRequest<GetBookByIdQueryResult>
{
public int BookId { get; }
public GetBookByIdQuery(int bookId)
{
BookId = bookId;
}
}
}
| 19.733333 | 68 | 0.635135 |
dbe06e4a836b94a844c731c2d61d1b2426d4dc2a | 1,955 | php | PHP | vendor/zelenin/yii2-semantic-ui/modules/CheckboxList.php | bswify/socialwifi2 | 8500b7197283a2e96439d58f2d8657ee7d03794d | [
"BSD-3-Clause"
] | 131 | 2015-01-13T10:52:06.000Z | 2021-12-10T17:31:52.000Z | vendor/zelenin/yii2-semantic-ui/modules/CheckboxList.php | bswify/socialwifi2 | 8500b7197283a2e96439d58f2d8657ee7d03794d | [
"BSD-3-Clause"
] | 21 | 2015-01-27T16:13:35.000Z | 2018-05-03T13:54:17.000Z | vendor/zelenin/yii2-semantic-ui/modules/CheckboxList.php | bswify/socialwifi2 | 8500b7197283a2e96439d58f2d8657ee7d03794d | [
"BSD-3-Clause"
] | 68 | 2015-01-11T22:54:45.000Z | 2021-08-01T19:58:39.000Z | <?php
namespace Zelenin\yii\SemanticUI\modules;
use Yii;
use yii\helpers\ArrayHelper;
use yii\helpers\Html;
use Zelenin\yii\SemanticUI\InputWidget;
class CheckboxList extends InputWidget
{
/**
* @var array
*/
public $items = [];
/**
* @var mixed
*/
public $selection = null;
... | 23.554217 | 100 | 0.510997 |
c3ae167e543a2c0e8f8f7c80d3da788fde89e5c9 | 569 | cs | C# | src/Mocking.DataGenerator/Generators/IBANGenerator.cs | emrecaglar/MockDataGenerator | f092fbfe8254b4bc678ca5abab3f2f20c8f24946 | [
"MIT"
] | 14 | 2019-11-05T18:24:15.000Z | 2019-11-06T10:46:42.000Z | src/Mocking.DataGenerator/Generators/IBANGenerator.cs | emrecaglar/MockDataGenerator | f092fbfe8254b4bc678ca5abab3f2f20c8f24946 | [
"MIT"
] | 15 | 2019-11-11T06:30:04.000Z | 2020-01-20T05:18:25.000Z | src/Mocking.DataGenerator/Generators/IBANGenerator.cs | emrecaglar/MockDataGenerator | f092fbfe8254b4bc678ca5abab3f2f20c8f24946 | [
"MIT"
] | 2 | 2020-01-16T15:20:33.000Z | 2021-07-29T07:42:36.000Z | using System.Globalization;
using System.Linq;
namespace Mocking.DataGenerator.Generators
{
public class IBANGenerator : RandomizerBase, IDataGenerator<string>
{
public string Get(CultureInfo culture)
{
var region = new RegionInfo(culture.LCID).TwoLetterISORegionName;
... | 35.5625 | 242 | 0.683656 |
731c8586bd93c163f50f537f1d2d7dfdc2b3ab62 | 1,337 | dart | Dart | lib/src/go_router_material.dart | peerwaya/go_router | 24e30d898627d79a82492fdff622aa0c07abdbed | [
"BSD-3-Clause"
] | null | null | null | lib/src/go_router_material.dart | peerwaya/go_router | 24e30d898627d79a82492fdff622aa0c07abdbed | [
"BSD-3-Clause"
] | null | null | null | lib/src/go_router_material.dart | peerwaya/go_router | 24e30d898627d79a82492fdff622aa0c07abdbed | [
"BSD-3-Clause"
] | null | null | null | // ignore_for_file: diagnostic_describe_all_properties
import 'package:flutter/material.dart';
import '../go_router.dart';
/// Checks for MaterialApp in the widget tree.
bool isMaterialApp(Element elem) =>
elem.findAncestorWidgetOfExactType<MaterialApp>() != null;
/// Builds a Material page.
MaterialPage<void> p... | 28.446809 | 78 | 0.6365 |
44859328df3f60e44dd289d58a4af55f31742f3f | 1,580 | py | Python | master-node-docker/sentinel/config/swaps.py | ramesh-kr/sentinel | ff65bc9200f6c940aa184c0ec0872fdcfef25363 | [
"MIT"
] | 342 | 2017-08-21T20:12:56.000Z | 2022-03-19T17:58:25.000Z | master-node-docker/sentinel/config/swaps.py | ramesh-kr/sentinel | ff65bc9200f6c940aa184c0ec0872fdcfef25363 | [
"MIT"
] | 57 | 2017-11-13T11:16:47.000Z | 2022-03-01T13:54:31.000Z | master-node-docker/sentinel/config/swaps.py | smtcrms/sentinel | ff65bc9200f6c940aa184c0ec0872fdcfef25363 | [
"MIT"
] | 72 | 2017-11-23T05:13:24.000Z | 2022-02-25T14:18:33.000Z | # coding=utf-8
BTC_BASED_COINS = {
'PIVX': {
'ip': '',
'port': 3000,
'url': ''
}
}
ETHEREUM_BASED_COINS = ['ETH', 'BNB', 'SENT']
ADDRESS = ''.lower()
PRIVATE_KEY = ''
FEE_PERCENTAGE = 0.01
TOKENS = [
{
'address': ADDRESS,
'decimals': 18,
'logo_url': 'https://... | 30.384615 | 90 | 0.563291 |
43be1f15147b27c130d17ae76b7b2d6d185966cf | 498 | ts | TypeScript | test/sql/delete.test.ts | budiadiono/sqlite-ts | 871274a3b2ec420798501d331730954bbebdbc69 | [
"MIT"
] | 15 | 2018-12-30T08:18:51.000Z | 2021-11-17T00:57:13.000Z | test/sql/delete.test.ts | budiadiono/sqlite-ts | 871274a3b2ec420798501d331730954bbebdbc69 | [
"MIT"
] | 2 | 2018-11-17T01:02:19.000Z | 2019-12-20T12:07:10.000Z | test/sql/delete.test.ts | budiadiono/sqlite-ts | 871274a3b2ec420798501d331730954bbebdbc69 | [
"MIT"
] | null | null | null | import { Db } from '../../src'
import { TestDriver } from './driver'
import * as entities from './entity'
test('sql-delete', done => {
const driver = new TestDriver()
Db.init({
driver,
entities
}).then(async ({ tables }) => {
driver.reset()
await tables.Person.delete()
await tables.Person.de... | 20.75 | 66 | 0.574297 |
cde14af61f0ec6f45b88a81b6008b10ee338b982 | 3,505 | cs | C# | src/Thalus.Markdown/Thalus.Markdown.Controls/ViewModels/MarkdownRenderControlModel.cs | ThalusUlysses/Thalus.Markdown | ca6e6be2616699f987b7f448994e7913caf3bcad | [
"MIT"
] | null | null | null | src/Thalus.Markdown/Thalus.Markdown.Controls/ViewModels/MarkdownRenderControlModel.cs | ThalusUlysses/Thalus.Markdown | ca6e6be2616699f987b7f448994e7913caf3bcad | [
"MIT"
] | null | null | null | src/Thalus.Markdown/Thalus.Markdown.Controls/ViewModels/MarkdownRenderControlModel.cs | ThalusUlysses/Thalus.Markdown | ca6e6be2616699f987b7f448994e7913caf3bcad | [
"MIT"
] | null | null | null | using System;
using System.IO;
using System.Runtime.CompilerServices;
using System.Security;
using System.Security.Cryptography.X509Certificates;
using System.Windows.Input;
namespace Thalus.Markdown.Controls.ViewModels
{
/// <summary>
/// Implements the <see cref="MarkdownRenderControlModel"/> functionality t... | 24.858156 | 91 | 0.467332 |
68c58342ae2b4fae0a78843f8b266976ea89a588 | 658 | rb | Ruby | app/models/file_setting.rb | tamaloa/kavau | 15d0487043177c88a0c89612a09579fd020ab1cc | [
"MIT"
] | 3 | 2016-04-28T09:08:58.000Z | 2017-03-10T18:56:56.000Z | app/models/file_setting.rb | CollegiumAcademicum/kavau | 5cb48749573f48f3adc36983b29874ccfeadad52 | [
"MIT"
] | 9 | 2016-06-07T09:56:10.000Z | 2022-03-30T23:04:17.000Z | app/models/file_setting.rb | CollegiumAcademicum/kavau | 5cb48749573f48f3adc36983b29874ccfeadad52 | [
"MIT"
] | 5 | 2016-02-22T12:29:52.000Z | 2019-09-15T11:37:25.000Z | class FileSetting < Setting
has_attached_file :attachment
do_not_validate_attachment_file_type :attachment
validate :accepted_content_type
def accepted_content_type
return if attachment_file_name == nil
return if accepted_types.include?(attachment_content_type)
errors.add(:attachment_content_type, ... | 21.225806 | 94 | 0.761398 |
8312609d5876148485d580a0fb30a83986a55cf8 | 24 | ts | TypeScript | node_modules/vuepress-plugin-smooth-scroll/types/index.d.ts | hbc007/DPlayer | 4e8c63bb265cc5ed4e76ecfd5f919101882fdbab | [
"MIT"
] | 501 | 2019-11-22T07:19:06.000Z | 2022-03-28T07:16:40.000Z | docs/node_modules/vuepress-plugin-smooth-scroll/types/index.d.ts | bei-gui/jnvc-ctf | eb7002999700da81b5f9de4a28bc40b97631ddd4 | [
"Apache-2.0"
] | 58 | 2019-12-02T13:59:15.000Z | 2022-02-26T01:53:52.000Z | node_modules/vuepress-plugin-smooth-scroll/types/index.d.ts | chouchouyu/blog | d675bca2a326bac53be906041e9dc0a75f6a3498 | [
"MIT"
] | 128 | 2019-12-02T11:15:58.000Z | 2022-03-27T08:25:59.000Z | declare const path: any
| 12 | 23 | 0.791667 |
ef6cd982ea61f0f7cb6ca162c5b81df78ca9d2fd | 597 | h | C | System/Library/PrivateFrameworks/TVSystemUI.framework/_TVSUIRenderingUtilities.h | lechium/tvOS124Headers | 11d1b56dd4c0ffd88b9eac43f87a5fd6f7228475 | [
"MIT"
] | 4 | 2019-08-27T18:03:47.000Z | 2021-09-18T06:29:00.000Z | System/Library/PrivateFrameworks/TVSystemUI.framework/_TVSUIRenderingUtilities.h | lechium/tvOS124Headers | 11d1b56dd4c0ffd88b9eac43f87a5fd6f7228475 | [
"MIT"
] | null | null | null | System/Library/PrivateFrameworks/TVSystemUI.framework/_TVSUIRenderingUtilities.h | lechium/tvOS124Headers | 11d1b56dd4c0ffd88b9eac43f87a5fd6f7228475 | [
"MIT"
] | null | null | null | /*
* This header is generated by classdump-dyld 1.0
* on Saturday, August 24, 2019 at 9:50:28 PM Mountain Standard Time
* Operating System: Version 12.4 (Build 16M568)
* Image Source: /System/Library/PrivateFrameworks/TVSystemUI.framework/TVSystemUI
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Eli... | 37.3125 | 95 | 0.792295 |
60587ef1740ada1d58dd305158eea2de28abc133 | 60 | asm | Assembly | gfx/pokemon/delibird/anim_idle.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 28 | 2019-11-08T07:19:00.000Z | 2021-12-20T10:17:54.000Z | gfx/pokemon/delibird/anim_idle.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 13 | 2020-01-11T17:00:40.000Z | 2021-09-14T01:27:38.000Z | gfx/pokemon/delibird/anim_idle.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 22 | 2020-05-28T17:31:38.000Z | 2022-03-07T20:49:35.000Z | setrepeat 4
frame 4, 06
frame 5, 06
dorepeat 1
endanim
| 10 | 12 | 0.7 |
72b4a81c8998ecd746536f338de34c91747bbf68 | 3,897 | cs | C# | Assets/Watson/Examples/ServiceExamples/Scripts/ExampleNaturalLanguageUnderstandingV1.cs | bblwq/CSC491 | 88d1664e2af74bef6b6c1265da2dfae2604047e8 | [
"MIT"
] | 1 | 2019-01-25T01:06:07.000Z | 2019-01-25T01:06:07.000Z | Assets/Watson/Examples/ServiceExamples/Scripts/ExampleNaturalLanguageUnderstandingV1.cs | bblwq/CSC491 | 88d1664e2af74bef6b6c1265da2dfae2604047e8 | [
"MIT"
] | null | null | null | Assets/Watson/Examples/ServiceExamples/Scripts/ExampleNaturalLanguageUnderstandingV1.cs | bblwq/CSC491 | 88d1664e2af74bef6b6c1265da2dfae2604047e8 | [
"MIT"
] | null | null | null | /**
* Copyright 2015 IBM Corp. 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 ... | 36.764151 | 345 | 0.669489 |
af65ac15bafb12ede3cd674e94f97ae53b41c161 | 11,240 | py | Python | tests/test_knowbert.py | XuhuiZhou/kb | 4c37bbccd6c871828aceb24b342841825d86df14 | [
"Apache-2.0"
] | 295 | 2019-11-04T16:01:03.000Z | 2022-03-31T15:34:53.000Z | tests/test_knowbert.py | XuhuiZhou/kb | 4c37bbccd6c871828aceb24b342841825d86df14 | [
"Apache-2.0"
] | 30 | 2019-11-14T03:15:05.000Z | 2022-03-04T17:34:59.000Z | tests/test_knowbert.py | XuhuiZhou/kb | 4c37bbccd6c871828aceb24b342841825d86df14 | [
"Apache-2.0"
] | 45 | 2019-11-08T06:14:01.000Z | 2022-03-14T06:16:37.000Z |
import unittest
import torch
from allennlp.common import Params
from allennlp.data import Vocabulary, DatasetReader
from allennlp.data.iterators import BasicIterator
from allennlp.models import Model
from kb.include_all import ModelArchiveFromParams
from kb.kg_embedding import KGTupleReader
from kb.knowbert impo... | 34.164134 | 110 | 0.528025 |
a132e3d8a5fa55142ca58bc5432eb4bd26876ef8 | 146 | ts | TypeScript | src/lib/canvas2image/html2canvas.d.ts | fatesigner/utils | e41889084269ae7bf8b128efb6790446ad045583 | [
"MIT"
] | 3 | 2020-09-11T02:31:39.000Z | 2021-05-21T07:48:54.000Z | src/lib/canvas2image/html2canvas.d.ts | fatesigner/utils | e41889084269ae7bf8b128efb6790446ad045583 | [
"MIT"
] | 5 | 2021-06-18T07:46:19.000Z | 2021-09-22T08:51:57.000Z | src/lib/canvas2image/html2canvas.d.ts | fatesigner/utils | e41889084269ae7bf8b128efb6790446ad045583 | [
"MIT"
] | 1 | 2020-09-02T07:22:26.000Z | 2020-09-02T07:22:26.000Z | /**
* html2canvas.d
*/
declare function html2canvas(dom: HTMLElement, options?: any): Promise<HTMLCanvasElement>;
export default html2canvas;
| 18.25 | 90 | 0.753425 |
eb449c51a0127c539115eae25e70e025110c68c2 | 53,367 | css | CSS | public/stylesheets/sites/commoncauses.css | marcomoura/catarse | 9f14c56682e36f3d8a2d4840053acab9c0b9b93c | [
"MIT"
] | 1 | 2020-02-05T01:43:19.000Z | 2020-02-05T01:43:19.000Z | public/stylesheets/sites/commoncauses.css | marcomoura/catarse | 9f14c56682e36f3d8a2d4840053acab9c0b9b93c | [
"MIT"
] | null | null | null | public/stylesheets/sites/commoncauses.css | marcomoura/catarse | 9f14c56682e36f3d8a2d4840053acab9c0b9b93c | [
"MIT"
] | null | null | null | /* line 3, ../../../app/stylesheets/sites/commoncauses.sass */
body#site {
background: #252525;
text-shadow: transparent 0px 0px 0px;
}
/* line 6, ../../../app/stylesheets/sites/commoncauses.sass */
body#site a {
color: #679c08;
}
/* line 8, ../../../app/stylesheets/sites/commoncauses.sass */
body#site a:hover {
... | 37.450526 | 278 | 0.687335 |
8e5789b202d14d67926b9216493740b76e2b9b24 | 5,727 | c | C | third_party/externals/nanomsg/src/protocols/pair/xpair.c | zhaodm/skia_sdl | 8724ae26584df523eb7bb814ffe7aec5f597d187 | [
"BSD-3-Clause"
] | 1 | 2015-09-14T12:09:27.000Z | 2015-09-14T12:09:27.000Z | src/protocols/pair/xpair.c | nbnitboy/nanomsg | 7b5318bec6d6bee42d2d969f204dbe4826103ba4 | [
"MIT"
] | null | null | null | src/protocols/pair/xpair.c | nbnitboy/nanomsg | 7b5318bec6d6bee42d2d969f204dbe4826103ba4 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2012-2013 250bpm s.r.o. All rights reserved.
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 u... | 29.984293 | 80 | 0.720447 |
0df67fa939c32d98d423a7b5414ecfdeb8a6b07e | 1,287 | cs | C# | src/Lykke.Cqrs/MapEndpointResolver.cs | LykkeBusinessPlatform/Lykke.Cqrs | 6e7ee5b7172f2577bb6c1b7794df1a3586c0d402 | [
"MIT"
] | 3 | 2018-09-24T19:31:52.000Z | 2019-06-17T14:16:35.000Z | src/Lykke.Cqrs/MapEndpointResolver.cs | LykkeBusinessPlatform/Lykke.Cqrs | 6e7ee5b7172f2577bb6c1b7794df1a3586c0d402 | [
"MIT"
] | 1 | 2018-06-01T21:35:22.000Z | 2018-06-01T21:35:22.000Z | src/Lykke.Cqrs/MapEndpointResolver.cs | LykkeBusinessPlatform/Lykke.Cqrs | 6e7ee5b7172f2577bb6c1b7794df1a3586c0d402 | [
"MIT"
] | 1 | 2021-10-14T17:36:42.000Z | 2021-10-14T17:36:42.000Z | using System;
using System.Collections.Generic;
using System.Linq;
using Lykke.Messaging.Configuration;
using Lykke.Messaging.Contract;
using Lykke.Cqrs.Routing;
namespace Lykke.Cqrs
{
public class MapEndpointResolver : IEndpointResolver
{
private IEndpointResolver m_FallbackResolver;
private ... | 33 | 111 | 0.663559 |
5dd7db2a5c880acce65d3486494d48eac39f70a1 | 2,165 | dart | Dart | lib/utils/tools/animation_navigation.dart | shaodong-wu/LJ_NetDisk | df7a0df0debea707225779c438d165e9dae79e44 | [
"MIT"
] | null | null | null | lib/utils/tools/animation_navigation.dart | shaodong-wu/LJ_NetDisk | df7a0df0debea707225779c438d165e9dae79e44 | [
"MIT"
] | null | null | null | lib/utils/tools/animation_navigation.dart | shaodong-wu/LJ_NetDisk | df7a0df0debea707225779c438d165e9dae79e44 | [
"MIT"
] | null | null | null | import 'package:flutter/cupertino.dart';
import 'package:lj_netdisk/project_router.dart';
import 'package:lj_netdisk/views/entrance.dart';
class AnimationNavigation {
/// 从右边划入, 划出
static SlideTransition _createTransition(Animation<double> animation, Widget child) {
return SlideTransition(
pos... | 39.363636 | 133 | 0.690531 |
9e122922f35fb80a6f64b133d3932abfbf01e371 | 37,422 | cs | C# | JniPMML-Cs/src/WranglerDBB.cs | wdatasci/WDS-JniPMML-XLL | 5153e4e0810c554c803ba1b60f1612a20490d118 | [
"MIT"
] | 1 | 2021-07-30T03:43:07.000Z | 2021-07-30T03:43:07.000Z | JniPMML-Cs/src/WranglerDBB.cs | wdatasci/WDS-JniPMML-XLL | 5153e4e0810c554c803ba1b60f1612a20490d118 | [
"MIT"
] | null | null | null | JniPMML-Cs/src/WranglerDBB.cs | wdatasci/WDS-JniPMML-XLL | 5153e4e0810c554c803ba1b60f1612a20490d118 | [
"MIT"
] | 1 | 2021-07-30T03:43:08.000Z | 2021-07-30T03:43:08.000Z | /* Java >>> *
package com.WDataSci.JniPMML;
import com.WDataSci.WDS.WDSException;
import org.dmg.pmml.FieldName;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.Map;
/* <<< Java */
/* C# >>> */
using System;
using System.Collections.Generic;
using MOIE=Micros... | 42.915138 | 155 | 0.475122 |
f63801e52141d3566d949e3eabc9309d3d2ec863 | 987 | hpp | C++ | src/point.hpp | xyl1t/Cidr | 48ee260ec4871eddb795ccc0f3aa1fddfc2cd0aa | [
"MIT"
] | 6 | 2020-09-10T17:44:49.000Z | 2021-03-14T16:41:11.000Z | src/point.hpp | xyl1t/Cidr | 48ee260ec4871eddb795ccc0f3aa1fddfc2cd0aa | [
"MIT"
] | 1 | 2021-07-22T20:25:00.000Z | 2021-11-27T19:44:35.000Z | src/point.hpp | xyl1t/Cidr | 48ee260ec4871eddb795ccc0f3aa1fddfc2cd0aa | [
"MIT"
] | null | null | null | /********************************
* Project: Cidr *
* File: point.hpp *
* Date: 12.9.2020 *
********************************/
#ifndef CIDR_POINT_HPP
#define CIDR_POINT_HPP
#include "tensorMath.hpp"
// TODO: ADD CONSTURCTORS!
// In order to keep the code "consice" I just ... | 21.456522 | 94 | 0.616008 |
e6c34ce5698d3c57034991fa808d2da61dd769dd | 574 | h | C | framework/thirdparty/skia/src/opts/SkMorphology_opts.h | lifan0710/Boymue | eb254ada1b049cffc72f1d4c8af484f0f3af9dac | [
"MIT"
] | 1 | 2021-06-19T09:38:29.000Z | 2021-06-19T09:38:29.000Z | framework/thirdparty/skia/src/opts/SkMorphology_opts.h | lifan0710/Boymue | eb254ada1b049cffc72f1d4c8af484f0f3af9dac | [
"MIT"
] | null | null | null | framework/thirdparty/skia/src/opts/SkMorphology_opts.h | lifan0710/Boymue | eb254ada1b049cffc72f1d4c8af484f0f3af9dac | [
"MIT"
] | null | null | null | /*
* Copyright 2013 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkMorphology_opts_DEFINED
#define SkMorphology_opts_DEFINED
#include "SkMorphologyImageFilter.h"
enum SkMorphologyProcType {
kDilateX_SkMorph... | 21.259259 | 84 | 0.790941 |
d1e99d2367c2f774c4b874db62fc5110b47047ef | 978 | dart | Dart | lib/utils/business_exception.dart | Danboruya/lily-searcher | 88692efe4ac9119435afce3ffe2b31433aacc048 | [
"Apache-2.0"
] | null | null | null | lib/utils/business_exception.dart | Danboruya/lily-searcher | 88692efe4ac9119435afce3ffe2b31433aacc048 | [
"Apache-2.0"
] | 3 | 2021-12-11T03:04:39.000Z | 2022-02-06T01:34:27.000Z | lib/utils/business_exception.dart | Danboruya/lily-searcher | 88692efe4ac9119435afce3ffe2b31433aacc048 | [
"Apache-2.0"
] | null | null | null | import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:simple_logger/simple_logger.dart';
class BusinessExceptionStateNotifier extends StateNotifier<BusinessException> {
BusinessExceptionStateNotifier(_logger,
[BusinessException? businessException])
: super(businessException ?? BusinessExce... | 23.853659 | 79 | 0.691207 |
ae58f845ec940b22af6873063632066097791a03 | 4,327 | lua | Lua | spec/substitute/range_spec.lua | gbprod/substitute.nvim | 0a9eec9e7a650396f42481a96e0ed1dc7553db86 | [
"WTFPL"
] | 64 | 2021-12-20T15:02:21.000Z | 2022-03-27T03:44:48.000Z | spec/substitute/range_spec.lua | gbprod/substitute.nvim | 0a9eec9e7a650396f42481a96e0ed1dc7553db86 | [
"WTFPL"
] | 6 | 2021-12-21T08:41:39.000Z | 2022-03-25T10:23:14.000Z | spec/substitute/range_spec.lua | gbprod/substitute.nvim | 0a9eec9e7a650396f42481a96e0ed1dc7553db86 | [
"WTFPL"
] | null | null | null | local substitute = require("substitute")
local range = require("substitute.range")
local function execute_keys(feedkeys)
local keys = vim.api.nvim_replace_termcodes(feedkeys, true, false, true)
vim.api.nvim_feedkeys(keys, "tm", false)
end
describe("Substitute range", function()
before_each(function()
local ... | 30.048611 | 115 | 0.620291 |
14970351800467c8387e793358fcad4a427c277a | 402 | tsx | TypeScript | src/v2/Components/Buttons/index.tsx | ds300/force | e391d6a47a3da61123a24be3e18d15eeb92c99c7 | [
"MIT"
] | null | null | null | src/v2/Components/Buttons/index.tsx | ds300/force | e391d6a47a3da61123a24be3e18d15eeb92c99c7 | [
"MIT"
] | null | null | null | src/v2/Components/Buttons/index.tsx | ds300/force | e391d6a47a3da61123a24be3e18d15eeb92c99c7 | [
"MIT"
] | null | null | null | // @ts-ignore
import Button, { ButtonProps } from "./Default"
import GhostButton from "./Ghost"
import InvertedButton from "./Inverted"
import MultiStateButton from "./MultiStateButton"
/**
* @deprecated in favor of our Design System Buttons in @artsy/palette
* https://palette.artsy.net/elements/buttons/button/
*/
... | 23.647059 | 70 | 0.741294 |
fe9157d028375f8aeaed2b7750be27cf9d0f5331 | 28,930 | swift | Swift | Sources/CwlViews/Implementations/iOS/CwlApplication_iOS.swift | sboddeus/CwlViews | b1692c6687a8eef14fa94c921eb2bd484caf8d69 | [
"0BSD"
] | 178 | 2019-04-28T03:23:20.000Z | 2022-03-16T15:10:06.000Z | Sources/CwlViews/Implementations/iOS/CwlApplication_iOS.swift | sboddeus/CwlViews | b1692c6687a8eef14fa94c921eb2bd484caf8d69 | [
"0BSD"
] | 8 | 2019-05-05T20:01:23.000Z | 2019-06-16T03:44:53.000Z | Sources/CwlViews/Implementations/iOS/CwlApplication_iOS.swift | sboddeus/CwlViews | b1692c6687a8eef14fa94c921eb2bd484caf8d69 | [
"0BSD"
] | 8 | 2019-05-05T08:28:32.000Z | 2021-06-18T11:05:36.000Z | //
// CwlApplication_iOS.swift
// CwlViews
//
// Created by Matt Gallagher on 5/08/2015.
// Copyright © 2015 Matt Gallagher ( https://www.cocoawithlove.com ). All rights reserved.
//
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without
// fee is hereby granted, provi... | 59.282787 | 250 | 0.789838 |
43393d4b2bd2a27f19615973b21f0ae0daa27626 | 228 | ts | TypeScript | src/app/entities/Category.ts | ALotOfNthing/Hourglass | 0c468431f4ccccd9efeb086286191a4e8d489e13 | [
"Apache-2.0"
] | null | null | null | src/app/entities/Category.ts | ALotOfNthing/Hourglass | 0c468431f4ccccd9efeb086286191a4e8d489e13 | [
"Apache-2.0"
] | 6 | 2020-03-16T23:10:07.000Z | 2021-05-11T07:34:51.000Z | src/app/entities/Category.ts | VekesserVladimir/Hourglass | 0c468431f4ccccd9efeb086286191a4e8d489e13 | [
"Apache-2.0"
] | null | null | null | export default class Category {
id: string;
name: string;
color: string;
constructor(id: string, name: string, color: string) {
this.id = id;
this.name = name;
this.color = color;
}
} | 20.727273 | 58 | 0.565789 |
b7281cb336b3a1b93e4e6d7ce6aea07fbeb47c46 | 34,303 | cc | C++ | src/cpp/StartServiceRequest.pb.cc | ZhangShuoAlreadyExists/ProtocolMessage | 3c6601cd0f0232a8cfa3a78038fb91862b4e03fd | [
"BSD-3-Clause"
] | 2 | 2019-05-15T06:43:04.000Z | 2022-03-04T05:39:39.000Z | src/cpp/StartServiceRequest.pb.cc | ZhangShuoAlreadyExists/ProtocolMessage | 3c6601cd0f0232a8cfa3a78038fb91862b4e03fd | [
"BSD-3-Clause"
] | null | null | null | src/cpp/StartServiceRequest.pb.cc | ZhangShuoAlreadyExists/ProtocolMessage | 3c6601cd0f0232a8cfa3a78038fb91862b4e03fd | [
"BSD-3-Clause"
] | 1 | 2019-07-31T09:00:44.000Z | 2019-07-31T09:00:44.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: StartServiceRequest.proto
#include "StartServiceRequest.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_fo... | 41.935208 | 170 | 0.694808 |
b2facc3a47c65c5e20e948f6b915de3efdf7140f | 761 | css | CSS | src/Componants/HeaderComp/HeaderComp.css | Pranitab/ecommerce-react-node | f5444e2b61336afb9ae2fb9eac3c2dff98da8203 | [
"MIT"
] | null | null | null | src/Componants/HeaderComp/HeaderComp.css | Pranitab/ecommerce-react-node | f5444e2b61336afb9ae2fb9eac3c2dff98da8203 | [
"MIT"
] | null | null | null | src/Componants/HeaderComp/HeaderComp.css | Pranitab/ecommerce-react-node | f5444e2b61336afb9ae2fb9eac3c2dff98da8203 | [
"MIT"
] | null | null | null | .HeaderComp{
height: 50px;
background-color: #203040;
color: #ffffff;
display: flex;
align-items: center;
padding-left: 10px;
padding-right: 10px;
font-size: 20px;
position: fixed;
width: 100%;
z-index: 1;
}
.HeaderComp a{
text-decoration: none;
color: white;
}
.H... | 16.911111 | 30 | 0.60184 |
df37890a3e2783605ef1bb134db1304297c6eede | 1,900 | cs | C# | CategoriesRepository.cs | chaithanyagogineni/Stack-Overflow-Clone- | 914c7f047c4471346757c755fa93bbd4a6674840 | [
"MIT"
] | null | null | null | CategoriesRepository.cs | chaithanyagogineni/Stack-Overflow-Clone- | 914c7f047c4471346757c755fa93bbd4a6674840 | [
"MIT"
] | null | null | null | CategoriesRepository.cs | chaithanyagogineni/Stack-Overflow-Clone- | 914c7f047c4471346757c755fa93bbd4a6674840 | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Linq;
using StackOverflowClone.DomainModels;
namespace StackOverflowClone.Repositories
{
public interface ICategoriesRepository
{
void InsertCategory(Category c);
void UpdateCategory(Category c);
void DeleteCategor... | 29.230769 | 105 | 0.520526 |
973d3047c27971fc40b77f25c34a25f13a593c4a | 10,193 | lua | Lua | Assets/ResourcesAsset/Lua/config/level/level_10022.lua | lixiaobing/DAL2Client | 612d745fee88ea3fb6abbfd52b668774be483dd5 | [
"BSD-3-Clause"
] | 1 | 2021-03-16T06:10:15.000Z | 2021-03-16T06:10:15.000Z | Assets/ResourcesAsset/Lua/config/level/level_10022.lua | lixiaobing/DAL2Client | 612d745fee88ea3fb6abbfd52b668774be483dd5 | [
"BSD-3-Clause"
] | null | null | null | Assets/ResourcesAsset/Lua/config/level/level_10022.lua | lixiaobing/DAL2Client | 612d745fee88ea3fb6abbfd52b668774be483dd5 | [
"BSD-3-Clause"
] | null | null | null | return
{
["id"]=10022,
["name"]="对战训练",
["groupName"]="Demo测试关卡",
["playStartAnimation"]=true,
["fadeIn"]=true,
["sceneName"]="Demo01.unity",
["sceneFile"]="Assets/Scenes/Demo01.unity",
["soundEventName"]="",
["desc"]="",
["cameraEffect"]={
["templateId"]=0,
["appoint"]=false,
["center"]=FixedVector2(52... | 28.875354 | 96 | 0.460806 |
38c7db28d1bf9c3d07d1056eee1376cd80138bb8 | 2,452 | php | PHP | hosts/exclusivefaile_com.php | DebridTurk/new-vinaget-script-master | e0ba677d6fac670bccc2c4ed02a935fe164e10eb | [
"Apache-2.0"
] | 1 | 2018-02-26T15:04:46.000Z | 2018-02-26T15:04:46.000Z | hosts/exclusivefaile_com.php | DebridTurk/new-vinaget-script-master | e0ba677d6fac670bccc2c4ed02a935fe164e10eb | [
"Apache-2.0"
] | null | null | null | hosts/exclusivefaile_com.php | DebridTurk/new-vinaget-script-master | e0ba677d6fac670bccc2c4ed02a935fe164e10eb | [
"Apache-2.0"
] | 1 | 2020-01-05T10:33:55.000Z | 2020-01-05T10:33:55.000Z | <?php
class dl_exclusivefaile_com extends Download {
public function CheckAcc($cookie){
$data = $this->lib->curl("http://exclusivefaile.com/?op=my_account", "lang=english;{$cookie}", "");
if(stristr($data, 'Premium account expire:')) return array(true, "Until ".$this->lib->cut_str($data, 'font... | 47.153846 | 228 | 0.591354 |
72eed73f3e5789f4fd65d398a1655d652c1ae0b9 | 1,044 | cs | C# | Barebone/ViewModels/Shared/StyleSheets/StyleSheetsViewModelFactory.cs | YodasMyDad/Base | 1e33cffea1d465f01ffc894e0e91781d60e4517c | [
"MIT"
] | 1 | 2019-08-17T04:06:03.000Z | 2019-08-17T04:06:03.000Z | Barebone/ViewModels/Shared/StyleSheets/StyleSheetsViewModelFactory.cs | YodasMyDad/Base | 1e33cffea1d465f01ffc894e0e91781d60e4517c | [
"MIT"
] | null | null | null | Barebone/ViewModels/Shared/StyleSheets/StyleSheetsViewModelFactory.cs | YodasMyDad/Base | 1e33cffea1d465f01ffc894e0e91781d60e4517c | [
"MIT"
] | null | null | null | // Copyright © 2017 SOFTINUX. All rights reserved.
// Licensed under the MIT License, Version 2.0. See LICENSE file in the project root for license information.
using System.Collections.Generic;
using System.Linq;
using ExtCore.Infrastructure;
using Infrastructure.Interfaces;
using Barebone.ViewModels.Shared.StyleShee... | 37.285714 | 126 | 0.701149 |
4472f668403a4b273ff13e11acb7f9233fde0379 | 426 | py | Python | katas/XX-Primers/unittest_sample.py | plipp/Python-Coding-Dojos | 4a206dfc0c73fc0d2b39ab33032b2aaf89055609 | [
"MIT"
] | null | null | null | katas/XX-Primers/unittest_sample.py | plipp/Python-Coding-Dojos | 4a206dfc0c73fc0d2b39ab33032b2aaf89055609 | [
"MIT"
] | null | null | null | katas/XX-Primers/unittest_sample.py | plipp/Python-Coding-Dojos | 4a206dfc0c73fc0d2b39ab33032b2aaf89055609 | [
"MIT"
] | null | null | null | # test with: python -m unittest unittest_sample.py
import unittest
def divide(a, b):
return a / b
class BasicArithmeticTest(unittest.TestCase):
def test_divide(self):
self.assertEqual(divide(10, 5), 2)
def test_divide_by_zero(self):
with self.assertRaises(ZeroDivisionError):
... | 22.421053 | 88 | 0.690141 |
e843bbc337291e38499c55020a21ca9f2a47a278 | 700 | cs | C# | TicTacToe/EndGame/PossibleWins.cs | Fyzxs/MicroObjectTicTacToe | 29a5f74f050269eb1584be9204a381568f4245eb | [
"MIT"
] | null | null | null | TicTacToe/EndGame/PossibleWins.cs | Fyzxs/MicroObjectTicTacToe | 29a5f74f050269eb1584be9204a381568f4245eb | [
"MIT"
] | null | null | null | TicTacToe/EndGame/PossibleWins.cs | Fyzxs/MicroObjectTicTacToe | 29a5f74f050269eb1584be9204a381568f4245eb | [
"MIT"
] | null | null | null | using tictactoe.Cells;
using tictactoe.Library.Bools;
namespace tictactoe.EndGame
{
public sealed class PossibleWins : IWin
{
private readonly IWin[] _wins;
public PossibleWins(ICellCollection cells) : this(
new TopRightSlashWin(cells),
new TopLeftSlashWin(cells),
... | 28 | 72 | 0.601429 |
bb81576d43f20ec6f5a7c950ff893b0c0060d9ad | 198 | cs | C# | Project/Test/AddIns/CSharp/Parser/CSharpParserTest/TestData/Elements/ExternAliasDirective.cs | sarvex/StyleCop | 5fc066910d1c648b35d5b10484666c6a42249f29 | [
"MS-PL"
] | null | null | null | Project/Test/AddIns/CSharp/Parser/CSharpParserTest/TestData/Elements/ExternAliasDirective.cs | sarvex/StyleCop | 5fc066910d1c648b35d5b10484666c6a42249f29 | [
"MS-PL"
] | null | null | null | Project/Test/AddIns/CSharp/Parser/CSharpParserTest/TestData/Elements/ExternAliasDirective.cs | sarvex/StyleCop | 5fc066910d1c648b35d5b10484666c6a42249f29 | [
"MS-PL"
] | null | null | null | extern alias T;
extern alias WhateverAndSomeLongName;
extern
alias
WhateverAndSomeLongName2;
namespace Namespace1
{
extern alias X;
}
| 11.647059 | 46 | 0.565657 |
072d2fcedb2151c27d818ddef2844c64da9150f2 | 13,391 | css | CSS | public/css/style_custom.css | VitalyWeb/storm-shop | c777a6c2fc401e916f0e58c2b6a8e1022f0e597f | [
"MIT"
] | null | null | null | public/css/style_custom.css | VitalyWeb/storm-shop | c777a6c2fc401e916f0e58c2b6a8e1022f0e597f | [
"MIT"
] | 1 | 2020-12-10T20:52:41.000Z | 2020-12-10T20:52:41.000Z | public/css/style_custom.css | VitalyWeb/storm-shop | c777a6c2fc401e916f0e58c2b6a8e1022f0e597f | [
"MIT"
] | null | null | null | /* КАСТОМНЫЕ СТИЛИ */
.font-w600 {font-weight: 600 !important;}
.flex-container {
display: flex;
flex-wrap: wrap;
}
.cursor-p {cursor: pointer}
.display-none {display: none !important;}
.mb-14 {margin-bottom: 14px;}
.mb-16 {margin-bottom: 16px;}
.mb-43 {margin-bottom: 43px;}
.mt--20 {margin-top: -20px}
.widt... | 22.392977 | 193 | 0.625271 |
5eb6e7403bf6c2ece34fb433753cda07ddac3e86 | 281 | rb | Ruby | lib/tinydot/edge.rb | naoty/tinydot | f16bac59dd3449e68be00ba0a961c657040282b3 | [
"MIT"
] | 2 | 2021-08-17T07:11:43.000Z | 2021-08-17T09:11:07.000Z | lib/tinydot/edge.rb | naoty/tinydot | f16bac59dd3449e68be00ba0a961c657040282b3 | [
"MIT"
] | null | null | null | lib/tinydot/edge.rb | naoty/tinydot | f16bac59dd3449e68be00ba0a961c657040282b3 | [
"MIT"
] | null | null | null | module Tinydot
class Edge
def initialize(from, to, attrs = {})
@from = from
@to = to
@attrs = attrs
end
def to_dot
dot = "#{@from.name} -> #{@to.name}"
dot += " [dir = both]" if @attrs[:dir] == "both"
dot += ";"
end
end
end
| 17.5625 | 54 | 0.47331 |
cdfa9b09c2a4bed37048f02c8108d7be83261f13 | 3,982 | cs | C# | NewEPL/NewEPL/Block/BlockOperatorPlus.xaml.cs | ngEPL/ngEPL_Windows | 5840a9eae80fa5ad0b61063201b0e86f9bdc7668 | [
"MIT"
] | 1 | 2016-09-12T00:22:03.000Z | 2016-09-12T00:22:03.000Z | NewEPL/NewEPL/Block/BlockOperatorPlus.xaml.cs | ngEPL/ngEPL_Windows | 5840a9eae80fa5ad0b61063201b0e86f9bdc7668 | [
"MIT"
] | 1 | 2016-08-19T15:06:01.000Z | 2016-08-22T07:28:13.000Z | NewEPL/NewEPL/Block/BlockOperatorPlus.xaml.cs | ngEPL/ngEPL_Windows | 5840a9eae80fa5ad0b61063201b0e86f9bdc7668 | [
"MIT"
] | null | null | null | using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
namespace NewEPL {
public partial class BlockOperatorPlus : BlockTemplate {
public BlockOperatorPlus() {
InitializeComponent();
}
protected override void CheckDragAction(BlockTemplate b) {
... | 40.632653 | 107 | 0.470869 |
d0652089a44a2e967f114c79d7184a24b5410986 | 1,310 | cpp | C++ | problems/592.fraction-addition-and-subtraction.cpp | bigfishi/leetcode | 3e512f2822a742349384a0bdd7954696f5867683 | [
"MIT"
] | null | null | null | problems/592.fraction-addition-and-subtraction.cpp | bigfishi/leetcode | 3e512f2822a742349384a0bdd7954696f5867683 | [
"MIT"
] | null | null | null | problems/592.fraction-addition-and-subtraction.cpp | bigfishi/leetcode | 3e512f2822a742349384a0bdd7954696f5867683 | [
"MIT"
] | null | null | null | // 中等 需要用到求最大公约数,需要注意越界,另外,提交错了一次,因为没考虑分子分母为10的情况
typedef long long llong;
class Solution {
int calcGcd(llong x, llong y) {
int z = y;
while (z)
{
y = x%y;
x = z;
z = y;
}
return x;
}
void calcFraction(int& x, int& y, int x2, int y2) {
llong tx = x*y2 + x2*y;
llong ty = y*y2;
int c = calcGcd... | 20.793651 | 75 | 0.478626 |
7062b4143646d16fb330bdbcc1679f9903f4b80a | 2,164 | nse | Lua | source_code/host_agents/windows/binaries_for_windows_host_agent/nmap_utils/scripts/skypev2-version.nse | Doctor-Venom/Cyber-Oracle | 0cc3475416ea552704f4b1086d850fa90117ccc6 | [
"MIT"
] | 16 | 2020-09-20T22:32:54.000Z | 2021-04-02T17:14:25.000Z | scripts_old/skypev2-version.nse | elpadrinho/pentest-tools | 4e008d2f18ebf4c35fc86102ba7e4e85f7e002f9 | [
"Apache-2.0"
] | 3 | 2020-09-30T11:41:49.000Z | 2021-12-19T23:27:19.000Z | scripts_old/skypev2-version.nse | elpadrinho/pentest-tools | 4e008d2f18ebf4c35fc86102ba7e4e85f7e002f9 | [
"Apache-2.0"
] | 2 | 2018-10-12T18:34:38.000Z | 2019-03-28T03:36:12.000Z | local comm = require "comm"
local nmap = require "nmap"
local shortport = require "shortport"
local string = require "string"
local U = require "lpeg-utility"
description = [[
Detects the Skype version 2 service.
]]
---
-- @output
-- PORT STATE SERVICE VERSION
-- 80/tcp open skype2 Skype
author = "Brandon Enrigh... | 26.716049 | 76 | 0.660813 |
cfddc9d2dd0c3fcfd94d77b9b0ff3ac02e90332f | 161 | rs | Rust | pkcs1/src/document.rs | msrd0/formats | 5c58533557e52f45db9ec4335248ce1b5e094801 | [
"Apache-2.0",
"MIT"
] | 4 | 2022-02-08T05:32:15.000Z | 2022-03-29T22:35:33.000Z | pkcs1/src/document.rs | msrd0/formats | 5c58533557e52f45db9ec4335248ce1b5e094801 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-09-03T03:35:15.000Z | 2021-09-03T03:35:15.000Z | pkcs1/src/document.rs | msrd0/formats | 5c58533557e52f45db9ec4335248ce1b5e094801 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-09-03T02:56:57.000Z | 2021-09-03T02:56:57.000Z | //! Serialized DER-encoded documents stored in heap-backed buffers.
// TODO(tarcieri): heapless support?
pub(crate) mod private_key;
pub(crate) mod public_key;
| 26.833333 | 67 | 0.770186 |
0e07ef93681f6d95c73f27ec03d0da74d4ee8faa | 2,972 | lua | Lua | scripts/premake5.lua | vasconssa/vulkan-preatmospheric-scattering | 0fc13052776b35abe009d58bf30d869f7fe92ad6 | [
"MIT"
] | null | null | null | scripts/premake5.lua | vasconssa/vulkan-preatmospheric-scattering | 0fc13052776b35abe009d58bf30d869f7fe92ad6 | [
"MIT"
] | null | null | null | scripts/premake5.lua | vasconssa/vulkan-preatmospheric-scattering | 0fc13052776b35abe009d58bf30d869f7fe92ad6 | [
"MIT"
] | null | null | null | require "export-compile-commands"
DIR = path.getabsolute("..")
print(DIR)
THIRDPARTYDIR = path.join(DIR, "3rdparty")
BUILDDIR = path.join(DIR, "build")
TESTDIR = path.join(DIR, "tests")
workspace "Gabibits"
configurations { "Debug", "Release" }
platforms { "Android-Arm", "Win32", "Win64", "Linux32", "Linux64... | 20.081081 | 126 | 0.551817 |
f4bd648832f8c013b4aab50f6a88658a0f25cb2d | 1,336 | ts | TypeScript | packages/connectivity/src/scp-cf/resilience-options.ts | florian-richter/cloud-sdk | d12b69f5e2316acce08a9978272f8b4f977ce6db | [
"Apache-2.0"
] | null | null | null | packages/connectivity/src/scp-cf/resilience-options.ts | florian-richter/cloud-sdk | d12b69f5e2316acce08a9978272f8b4f977ce6db | [
"Apache-2.0"
] | 21 | 2022-01-19T17:49:11.000Z | 2022-03-31T23:45:22.000Z | packages/connectivity/src/scp-cf/resilience-options.ts | florian-richter/cloud-sdk | d12b69f5e2316acce08a9978272f8b4f977ce6db | [
"Apache-2.0"
] | null | null | null | export interface ResilienceOptions {
/**
* A boolean value that indicates whether to execute request to SCP-CF services using circuit breaker.
* ResilienceOptions.
*/
enableCircuitBreaker?: boolean;
/**
* Timeout in milliseconds to retrieve the destination.
*/
timeout?: number;
}
/**
* @intern... | 23.438596 | 104 | 0.706587 |
4ddab7cbcf29299f497affaaf018cd0710e5d8fd | 3,615 | lua | Lua | Modules/Shared/Ragdoll/Classes/BindableRagdollHumanoidOnFall.lua | Cuyler36/NevermoreEngine | 863c1b673d0986819b0228f324fb8e18e616c8c9 | [
"MIT"
] | null | null | null | Modules/Shared/Ragdoll/Classes/BindableRagdollHumanoidOnFall.lua | Cuyler36/NevermoreEngine | 863c1b673d0986819b0228f324fb8e18e616c8c9 | [
"MIT"
] | null | null | null | Modules/Shared/Ragdoll/Classes/BindableRagdollHumanoidOnFall.lua | Cuyler36/NevermoreEngine | 863c1b673d0986819b0228f324fb8e18e616c8c9 | [
"MIT"
] | null | null | null | --- Ragdolls the humanoid on fall
-- @classmod BindableRagdollHumanoidOnFall
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local BaseObject = require("BaseObject")
local FRAMES_TO_EXAMINE = 8
local FRAME_TIME = 0.1
local RAGDOLL_DEBOUNCE_TIME = 1
local REQUIRED_MAX_FALL_VELO... | 24.1 | 111 | 0.786722 |
2c722b99aa3f7d66d3dd472877f9249562050ae2 | 7,341 | py | Python | jarviscli/plugins/stock.py | erick-dsnk/Jarvis | acb95768f192ee6987d88204731600a9791ce66b | [
"MIT"
] | null | null | null | jarviscli/plugins/stock.py | erick-dsnk/Jarvis | acb95768f192ee6987d88204731600a9791ce66b | [
"MIT"
] | null | null | null | jarviscli/plugins/stock.py | erick-dsnk/Jarvis | acb95768f192ee6987d88204731600a9791ce66b | [
"MIT"
] | null | null | null | import re
from inspect import cleandoc
import requests
from colorama import Fore
from plugin import plugin
@plugin('stock')
class Stock:
"""
stock <stock_id> : Get details of stock identified by <stock_id>(one id at a time)
stock getid : Search stock id
stock profile <stoc... | 43.958084 | 134 | 0.533442 |
12d471cad6cd53fa6785a8fa4383755cfd968740 | 3,265 | cs | C# | src/PhotonTheme/Controls/Extensions/ButtonExtension.cs | AlbertAlonso/PhotonTheme | 58b3dc41b96f42718567d22ceebf757a36a04b5d | [
"MIT"
] | 41 | 2019-07-07T10:30:46.000Z | 2020-09-14T17:48:24.000Z | src/PhotonTheme/Controls/Extensions/ButtonExtension.cs | alonfnt/PhotonTheme | 58b3dc41b96f42718567d22ceebf757a36a04b5d | [
"MIT"
] | 21 | 2019-07-19T10:02:06.000Z | 2019-08-17T22:41:57.000Z | src/PhotonTheme/Controls/Extensions/ButtonExtension.cs | AlbertAlonso/PhotonTheme | 58b3dc41b96f42718567d22ceebf757a36a04b5d | [
"MIT"
] | 6 | 2019-07-22T07:41:43.000Z | 2020-12-21T07:58:40.000Z | using System.Windows;
namespace PhotonTheme.Controls
{
public class ButtonExtension
{
/// <summary>
/// Controls the corner radius of the Button
/// </summary>
public static readonly DependencyProperty CornerRadiusProperty = DependencyProperty.RegisterAttached(
"Cor... | 40.308642 | 124 | 0.693415 |
f427dfc11120d498d29569784f450f8d05e23e0c | 1,776 | cs | C# | BungieSharper.Entities/Destiny/Entities.Destiny.Definitions.Lore.cs | Taybenberg/BungieSharper | e6c6fea9ed2d3953d082d072cb66f754840afce3 | [
"MIT",
"BSD-3-Clause"
] | 10 | 2020-07-12T07:19:20.000Z | 2022-03-10T08:14:10.000Z | BungieSharper.Entities/Destiny/Entities.Destiny.Definitions.Lore.cs | Taybenberg/BungieSharper | e6c6fea9ed2d3953d082d072cb66f754840afce3 | [
"MIT",
"BSD-3-Clause"
] | 6 | 2021-01-14T08:20:52.000Z | 2022-02-25T01:06:19.000Z | BungieSharper.Entities/Destiny/Entities.Destiny.Definitions.Lore.cs | Taybenberg/BungieSharper | e6c6fea9ed2d3953d082d072cb66f754840afce3 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2022-02-22T16:49:44.000Z | 2022-02-22T16:49:44.000Z | using System.Text.Json.Serialization;
namespace BungieSharper.Entities.Destiny.Definitions.Lore
{
/// <summary>
/// These are definitions for in-game "Lore," meant to be narrative enhancements of the game experience.
/// DestinyInventoryItemDefinitions for interesting items point to these definitions, but... | 46.736842 | 212 | 0.705518 |
af25038f917a90abd6e8c8d9858fc3aff48d4568 | 4,502 | py | Python | largescaleqml/utils/misc.py | chris-n-self/large-scale-qml | 0358bf9fac9cc418af5c573ae80f580aeeef7765 | [
"MIT"
] | 6 | 2021-08-17T13:21:15.000Z | 2021-09-09T19:44:25.000Z | largescaleqml/utils/misc.py | chris-n-self/large-scale-qml | 0358bf9fac9cc418af5c573ae80f580aeeef7765 | [
"MIT"
] | null | null | null | largescaleqml/utils/misc.py | chris-n-self/large-scale-qml | 0358bf9fac9cc418af5c573ae80f580aeeef7765 | [
"MIT"
] | null | null | null | """
"""
import os
import copy
import joblib
import logging
from tqdm import tqdm
from qiskit.result import Result
from qiskit.ignis.mitigation import TensoredMeasFitter
from qcoptim.utilities import FastCountsResult
logger = logging.getLogger(__name__)
def _dump_output(name, output):
""" """
# make direc... | 25.292135 | 78 | 0.637272 |
b8e67ef334e25cad935ed14dda63d8396791cd2e | 1,456 | h | C | FileOperateRecord/2017-06-26 153432/UITableViewDelegateDataSource/CCTableViewDelegateDataSource.h | VArbiter/CCLocalLibrary | 2b830a728c353f9706498196968b059a0aa07429 | [
"MIT"
] | 2 | 2017-05-25T07:20:07.000Z | 2017-12-08T11:41:54.000Z | FileOperateRecord/2017-06-26 153432/UITableViewDelegateDataSource/CCTableViewDelegateDataSource.h | VArbiter/CCLocalLibrary | 2b830a728c353f9706498196968b059a0aa07429 | [
"MIT"
] | null | null | null | FileOperateRecord/2017-06-26 153432/UITableViewDelegateDataSource/CCTableViewDelegateDataSource.h | VArbiter/CCLocalLibrary | 2b830a728c353f9706498196968b059a0aa07429 | [
"MIT"
] | null | null | null | //
// CCTableViewDelegateDataSource.h
// CCLocalLibrary
//
// Created by 冯明庆 on 2017/4/22.
// Copyright © 2017年 冯明庆. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface CCTableViewDelegate : NSObject < UITableViewDelegate >
- (id < UITableViewDelegate >) initWithDefaultS... | 40.444444 | 146 | 0.73283 |
ae9bbfa00d706d6d02529d62d8b83fd609b8ee33 | 10,101 | swift | Swift | Sources/CustomLayout/CustomLayoutEngine.swift | MnkGitBox/CustomLayout | 9e615cb58386c38f0f077bb39265e5110b68da3d | [
"MIT"
] | 1 | 2022-01-16T08:14:51.000Z | 2022-01-16T08:14:51.000Z | Sources/CustomLayout/CustomLayoutEngine.swift | MnkGitBox/CustomLayout | 9e615cb58386c38f0f077bb39265e5110b68da3d | [
"MIT"
] | null | null | null | Sources/CustomLayout/CustomLayoutEngine.swift | MnkGitBox/CustomLayout | 9e615cb58386c38f0f077bb39265e5110b68da3d | [
"MIT"
] | null | null | null | //
// CustomLayoutEngine.swift
//
//
// Created by Malith Kamburapola on 2022-01-15.
//
import UIKit
struct CustomLayoutEngine: CustomLayout {
private let firstView: UIView
init(_ view: UIView) {
self.firstView = view
}
//MARK: - ACTIVE LAYOUT TO PARENT
func activat... | 43.727273 | 187 | 0.63271 |
6db1103fcde69781bc0cdbec7cf8161463f0b404 | 2,838 | h | C | Labyrint/Temp/il2cppOutput/il2cppOutput/mscorlib_System_Security_Principal_WindowsIdentity4008973414MethodDeclarations.h | mimietti/Labyball | c4b03f5b5d5ec1a1cae5831d22391bc2a171230f | [
"MIT"
] | null | null | null | Labyrint/Temp/il2cppOutput/il2cppOutput/mscorlib_System_Security_Principal_WindowsIdentity4008973414MethodDeclarations.h | mimietti/Labyball | c4b03f5b5d5ec1a1cae5831d22391bc2a171230f | [
"MIT"
] | 23 | 2016-07-21T13:03:02.000Z | 2016-10-03T12:43:01.000Z | Labyrint/labyrinti1/Classes/Native/mscorlib_System_Security_Principal_WindowsIdentity4008973414MethodDeclarations.h | mimietti/Labyball | c4b03f5b5d5ec1a1cae5831d22391bc2a171230f | [
"MIT"
] | 1 | 2019-09-08T17:32:17.000Z | 2019-09-08T17:32:17.000Z | #pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include <assert.h>
#include <exception>
// System.Security.Principal.WindowsIdentity
struct WindowsIdentity_t4008973414;
// System.Runtime.Serialization.SerializationInfo
struct Seri... | 64.5 | 270 | 0.847075 |
e2dc1464d7d917fc62d64fcc253195195898c096 | 1,451 | py | Python | plantcv/plot_hist.py | luuvt/plantcv | 7548d308645edba2b347c16cb62922dddbca7ab8 | [
"MIT"
] | null | null | null | plantcv/plot_hist.py | luuvt/plantcv | 7548d308645edba2b347c16cb62922dddbca7ab8 | [
"MIT"
] | null | null | null | plantcv/plot_hist.py | luuvt/plantcv | 7548d308645edba2b347c16cb62922dddbca7ab8 | [
"MIT"
] | 1 | 2020-08-13T17:44:53.000Z | 2020-08-13T17:44:53.000Z | # Plot histogram
import cv2
import numpy as np
def plot_hist(img, name=False):
"""Plot a histogram using the pyplot library.
Inputs:
img = image to analyze
name = name for plot output
:param img: numpy array
:param name: str
:return: bins,hist
"""
import matplotlib
matplotl... | 26.87037 | 66 | 0.547898 |
ed271f20597d61dc68a1538c44fa29901c28374f | 636 | h | C | quic/state/stream/StreamStateFunctions.h | Shikugawa/mvfst-quicbench | 5c6bb05cb5b9810bf1afddc5fe168d6b220bcd1d | [
"MIT"
] | null | null | null | quic/state/stream/StreamStateFunctions.h | Shikugawa/mvfst-quicbench | 5c6bb05cb5b9810bf1afddc5fe168d6b220bcd1d | [
"MIT"
] | 1 | 2022-03-08T19:07:06.000Z | 2022-03-08T19:07:06.000Z | quic/state/stream/StreamStateFunctions.h | Shikugawa/mvfst-quicbench | 5c6bb05cb5b9810bf1afddc5fe168d6b220bcd1d | [
"MIT"
] | null | null | null | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <quic/state/StateData.h>
namespace quic {
// Common operations to conduct on QuicStreamState when send r... | 28.909091 | 77 | 0.779874 |
da80e8e4066474b3b652d913bafc82ba0fe44976 | 1,222 | php | PHP | src/Entity/SendingTextToSpeechSmsInterface.php | webeweb/WBWSMSModeLibrary | 48269122ba2cef06102089c3db16e1dc2e018408 | [
"MIT"
] | 1 | 2017-10-26T10:12:05.000Z | 2017-10-26T10:12:05.000Z | src/Entity/SendingTextToSpeechSmsInterface.php | webeweb/WBWSMSModeLibrary | 48269122ba2cef06102089c3db16e1dc2e018408 | [
"MIT"
] | null | null | null | src/Entity/SendingTextToSpeechSmsInterface.php | webeweb/WBWSMSModeLibrary | 48269122ba2cef06102089c3db16e1dc2e018408 | [
"MIT"
] | null | null | null | <?php
/*
* This file is part of the smsmode-library package.
*
* (c) 2019 WEBEWEB
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Library\SmsMode\Entity;
use DateTime;
/**
* Sending text-to-speech SMS interface.
... | 20.711864 | 74 | 0.635025 |
ac829bd51b8dd614b3b0fe2fb5ccfe9c3f2d4ea3 | 2,362 | swift | Swift | InstagramCopy/Controller/Messages/NewMessageController.swift | Saransh239/INSTAGRAM-CLONE | 24e959c8b2433f165fb45488ddbf4ca7a1b5687e | [
"MIT"
] | 3 | 2020-10-02T02:36:40.000Z | 2020-10-07T12:33:07.000Z | InstagramCopy/Controller/Messages/NewMessageController.swift | Rohan-cod/InstagramClone | e94f8a29c9dff8b7b8895f7cd0a5a0217c832ff6 | [
"MIT"
] | null | null | null | InstagramCopy/Controller/Messages/NewMessageController.swift | Rohan-cod/InstagramClone | e94f8a29c9dff8b7b8895f7cd0a5a0217c832ff6 | [
"MIT"
] | null | null | null |
import UIKit
import Firebase
private let reuseIdentifier = "NewMessageCell"
class NewMessageController: UITableViewController {
// MARK: - Properties
var users = [User]()
var messagesController: MessagesController?
// MARK: - Init
override func viewDidLoad() {
super.viewDid... | 29.525 | 137 | 0.612616 |
e002964439de0a96612e5eea4e594dc592580ab0 | 820 | php | PHP | application/views/users/forgot.php | jessyosmena/blog-codeIgniter-3 | 2bfed25e9c7db5f81cb220a3346180895e62574f | [
"MIT"
] | null | null | null | application/views/users/forgot.php | jessyosmena/blog-codeIgniter-3 | 2bfed25e9c7db5f81cb220a3346180895e62574f | [
"MIT"
] | null | null | null | application/views/users/forgot.php | jessyosmena/blog-codeIgniter-3 | 2bfed25e9c7db5f81cb220a3346180895e62574f | [
"MIT"
] | null | null | null | <br />
<div class="row">
<div class="col-lg-6 col-lg-offset-3">
<div class="col-lg-12">
<div class="well bs-component">
<fieldset>
<h4 class="text-center">Forgot Password</h4>
<?php echo form_open('users/forgot'); ?>
<div class="form-group">
<label for="inputEmail" class="c... | 31.538462 | 90 | 0.540244 |
977dca07a95236b5b4a35923296bb464b507f523 | 286 | rb | Ruby | db/migrate/20181126200455_add_categorical_column.rb | vivekwap4/DataCapture | 6207d0027c3bf760e41b07a8580ad4650803cff3 | [
"MIT"
] | null | null | null | db/migrate/20181126200455_add_categorical_column.rb | vivekwap4/DataCapture | 6207d0027c3bf760e41b07a8580ad4650803cff3 | [
"MIT"
] | null | null | null | db/migrate/20181126200455_add_categorical_column.rb | vivekwap4/DataCapture | 6207d0027c3bf760e41b07a8580ad4650803cff3 | [
"MIT"
] | null | null | null | class AddCategoricalColumn < ActiveRecord::Migration
def change
add_column :formattributes, :categorical, :boolean, default: false
create_table 'categoricalformattributes' do |t|
t.references 'formattributes'
t.string 'option'
t.timestamps
end
end
end
| 26 | 70 | 0.723776 |
faaa264165b1bf13c3bbb7bfd7201772a5a65465 | 56,293 | lua | Lua | pony admin script - Copy.lua | xVoid-xyz/Roblox-Scripts | 7eb176fa654f2ea5fbc6bcccced1b15df7ed82c2 | [
"BSD-3-Clause"
] | 70 | 2021-02-09T17:21:32.000Z | 2022-03-28T12:41:42.000Z | pony admin script - Copy.lua | xVoid-xyz/Roblox-Scripts | 7eb176fa654f2ea5fbc6bcccced1b15df7ed82c2 | [
"BSD-3-Clause"
] | 4 | 2021-08-19T22:05:58.000Z | 2022-03-19T18:58:01.000Z | pony admin script - Copy.lua | xVoid-xyz/Roblox-Scripts | 7eb176fa654f2ea5fbc6bcccced1b15df7ed82c2 | [
"BSD-3-Clause"
] | 325 | 2021-02-26T22:23:41.000Z | 2022-03-31T19:36:12.000Z | --Bronytabs by madiik and a little by Ri1es
--I fully pasted this script. Don't come lieing around here (madiik)
--Fixed Sound cmd
--and ba.n
--Now added l.ag cmd.
--Version 5.6_3
players = game:GetService("Players")
player = players.LocalPlayer
key = ";"
mouse ... | 30.981288 | 237 | 0.5379 |
6605efd7856b073978f614f6e098c3cf113f8873 | 3,488 | py | Python | parser/team19/BDTytus/LineNumber.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 35 | 2020-12-07T03:11:43.000Z | 2021-04-15T17:38:16.000Z | parser/team19/BDTytus/LineNumber.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 47 | 2020-12-09T01:29:09.000Z | 2021-01-13T05:37:50.000Z | parser/team19/BDTytus/LineNumber.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 556 | 2020-12-07T03:13:31.000Z | 2021-06-17T17:41:10.000Z | from Graphics import Tkinter as tk
class LineNumberCanvas(tk.Canvas):
def __init__(self, *args, **kwargs):
tk.Canvas.__init__(self, *args, **kwargs)
self.text_widget = None
self.breakpoints = []
def connect(self, text_widget):
self.text_widget = text_widget
def re_render(... | 31.709091 | 83 | 0.524656 |
ef43dcf6ce6931ffd4bd95a3447c2ea397bec62c | 682 | h | C | Authentication/Deprecated-Digest/RT-XMPPDeprecatedDigestAuthentication.h | ReadyTalk/XMPPFramework-RT | 2aedfebf45d2baebeed41745b8e7eb3278905b44 | [
"BSD-Source-Code"
] | null | null | null | Authentication/Deprecated-Digest/RT-XMPPDeprecatedDigestAuthentication.h | ReadyTalk/XMPPFramework-RT | 2aedfebf45d2baebeed41745b8e7eb3278905b44 | [
"BSD-Source-Code"
] | null | null | null | Authentication/Deprecated-Digest/RT-XMPPDeprecatedDigestAuthentication.h | ReadyTalk/XMPPFramework-RT | 2aedfebf45d2baebeed41745b8e7eb3278905b44 | [
"BSD-Source-Code"
] | null | null | null | #import <Foundation/Foundation.h>
#import "RT-XMPPSASLAuthentication.h"
#import "RT-XMPPStream.h"
@interface XMPPDeprecatedDigestAuthentication : NSObject <XMPPSASLAuthentication>
// This class implements the XMPPSASLAuthentication protocol.
//
// See XMPPSASLAuthentication.h for more information.
@end
//////////... | 29.652174 | 120 | 0.52346 |
e23b64eac64353d68ec3b4edc44ca0161277f689 | 1,648 | js | JavaScript | core/dbMysql.js | UrijHoruzij/auth-jwt-server | ff3452bca1c4a2de975884ce653e16a467aae5da | [
"MIT"
] | 2 | 2020-08-18T10:29:03.000Z | 2020-08-18T11:07:22.000Z | core/dbMysql.js | UrijHoruzij/Express-JWT | ff3452bca1c4a2de975884ce653e16a467aae5da | [
"MIT"
] | null | null | null | core/dbMysql.js | UrijHoruzij/Express-JWT | ff3452bca1c4a2de975884ce653e16a467aae5da | [
"MIT"
] | null | null | null | const mysql = require('mysql2/promise');
const { DB_MYSQL_CONFIG } = require('../config.js');
/**
* @module dbMysql
*/
/**
* Class function database Mysql.
*/
class dbMysql {
/**
* Create a dbMysql
* @constructor
*/
constructor() {
this.connection = '';
}
/**
* Inittialization
*/
async init() {
... | 20.6 | 127 | 0.646845 |
df498d87b84c31c588d4a5a061b32b8395061286 | 1,050 | rb | Ruby | spec/mailers/user_mailer_spec.rb | Ichi-Taku/sample_app | 0dbb3a8f2e93aa5960358dd671b01c270ea0bbfa | [
"RSA-MD"
] | null | null | null | spec/mailers/user_mailer_spec.rb | Ichi-Taku/sample_app | 0dbb3a8f2e93aa5960358dd671b01c270ea0bbfa | [
"RSA-MD"
] | 4 | 2020-04-10T05:36:50.000Z | 2022-03-31T01:05:39.000Z | spec/mailers/user_mailer_spec.rb | Ichi-Taku/sample_app | 0dbb3a8f2e93aa5960358dd671b01c270ea0bbfa | [
"RSA-MD"
] | null | null | null | require "rails_helper"
RSpec.describe UserMailer, type: :mailer do
describe `#account_activation` do
let!(:user) { build(:user, activation_token: User.new_token) }
let!(:mail) { UserMailer.account_activation(user) }
it { expect(mail.subject).to eq "Account activation" }
it { expect(mail.to).to eq [u... | 40.384615 | 70 | 0.682857 |
6ddb032617624619898d0e4c353b426ae4b3cccd | 1,824 | ts | TypeScript | src/math/Triangle.d.ts | DefinitelyMaybe/threejs_4_deno | 7c454db2317a35f9f43a3837dc3ae90746caddb6 | [
"MIT"
] | 1 | 2021-01-04T06:10:49.000Z | 2021-01-04T06:10:49.000Z | src/math/Triangle.d.ts | DefinitelyMaybe/threejs_4_deno | 7c454db2317a35f9f43a3837dc3ae90746caddb6 | [
"MIT"
] | 1 | 2021-01-07T00:01:21.000Z | 2021-01-21T00:00:19.000Z | src/math/Triangle.d.ts | DefinitelyMaybe/threejs_4_deno | 7c454db2317a35f9f43a3837dc3ae90746caddb6 | [
"MIT"
] | 1 | 2021-03-16T10:23:40.000Z | 2021-03-16T10:23:40.000Z | /// <reference lib="dom" />
import { Vector2 } from "./Vector2.d.ts";
import { Vector3 } from "./Vector3.d.ts";
import { Plane } from "./Plane.d.ts";
import { Box3 } from "./Box3.d.ts";
export class Triangle {
constructor(a?: Vector3, b?: Vector3, c?: Vector3);
/**
* @default new THREE.Vector3()
*/
a: Vecto... | 20.727273 | 64 | 0.623355 |
f3d0e36d79a656b0a87e2bbf110a7f724bf35805 | 320 | rs | Rust | oom-backend/oom-db/src/lib.rs | tbrand/OutOfMemory | 781883cdd0394ecc8e05926fec96c0d78a3b9da3 | [
"MIT"
] | 9 | 2019-07-07T19:45:43.000Z | 2021-09-29T05:44:31.000Z | oom-backend/oom-db/src/lib.rs | tbrand/OutOfMemory | 781883cdd0394ecc8e05926fec96c0d78a3b9da3 | [
"MIT"
] | 9 | 2019-07-06T16:51:33.000Z | 2019-07-08T13:20:05.000Z | oom-backend/oom-db/src/lib.rs | tbrand/OutOfMemory | 781883cdd0394ecc8e05926fec96c0d78a3b9da3 | [
"MIT"
] | null | null | null | #![deny(warnings)]
pub mod answers;
pub mod comments;
pub mod error;
pub mod list_tags;
pub mod posts;
pub mod questions;
pub mod rank_users;
pub mod tags;
pub mod ups;
pub mod users;
pub mod users_analysis;
pub mod views;
pub use oom_model as model;
pub use oom_schema::schema;
pub use oom_schema::schema_additional;
| 16.842105 | 38 | 0.765625 |
5493526d49aa48be88f0aefc27c7c932ab6b541c | 16,677 | css | CSS | Projetos/Dia_13/style.css | IamThiago-IT/25 | ce32f1d30485832b08f4200597448db70bc6f412 | [
"Apache-2.0"
] | 18 | 2020-09-10T15:01:54.000Z | 2022-03-24T22:24:01.000Z | Projetos/Dia_13/style.css | IamThiago-IT/25 | ce32f1d30485832b08f4200597448db70bc6f412 | [
"Apache-2.0"
] | null | null | null | Projetos/Dia_13/style.css | IamThiago-IT/25 | ce32f1d30485832b08f4200597448db70bc6f412 | [
"Apache-2.0"
] | 3 | 2021-01-28T20:35:04.000Z | 2022-01-24T09:55:43.000Z | @import url(https://fonts.googleapis.com/css?family=Nunito:400,700,300);
.stat_inner {
position: absolute;
right: 0;
left: 0;
top: 50%;
margin: auto;
}
* {
box-sizing: border-box;
}
body {
background: -webkit-radial-gradient(center, ellipse cover, #2A96AF 0%, #2A96AF 100%);
overflow: hidden;
}
.stat ... | 30.940631 | 234 | 0.682077 |
09a9acf0f9377ab8a10c36cdcca584e2c845573d | 1,810 | java | Java | header/src/main/java/org/zstack/header/volume/APIDeleteDataVolumeMsg.java | qianfei11/zstack | 8f0e374162ef61742bbe2129d0c7f1a88e40b0bf | [
"Apache-2.0"
] | 879 | 2017-02-16T02:01:44.000Z | 2022-03-31T15:44:28.000Z | header/src/main/java/org/zstack/header/volume/APIDeleteDataVolumeMsg.java | WQL782795/zstack | d003d0e410b8dc0756cdfaf2edcf6dd80c02fea3 | [
"ECL-2.0",
"Apache-2.0"
] | 482 | 2017-02-13T09:57:37.000Z | 2022-03-31T07:17:29.000Z | header/src/main/java/org/zstack/header/volume/APIDeleteDataVolumeMsg.java | WQL782795/zstack | d003d0e410b8dc0756cdfaf2edcf6dd80c02fea3 | [
"ECL-2.0",
"Apache-2.0"
] | 306 | 2017-02-13T08:31:29.000Z | 2022-03-14T07:58:46.000Z | package org.zstack.header.volume;
import org.springframework.http.HttpMethod;
import org.zstack.header.identity.Action;
import org.zstack.header.message.APIDeleteMessage;
import org.zstack.header.message.APIParam;
import org.zstack.header.rest.RestRequest;
/**
* @api delete a data volume
* @category volume
* @cli
... | 25.492958 | 87 | 0.68453 |
c6316565d9abdafe240b2196a9c88f637cf1018b | 3,130 | rb | Ruby | app/lib/matestack/ui/core/render.rb | mayanktap/matestack-ui-core | 5812a76dc1a461946268c7becc36024cc027623b | [
"MIT"
] | null | null | null | app/lib/matestack/ui/core/render.rb | mayanktap/matestack-ui-core | 5812a76dc1a461946268c7becc36024cc027623b | [
"MIT"
] | 15 | 2020-05-18T02:53:08.000Z | 2020-09-11T04:35:40.000Z | app/lib/matestack/ui/core/render.rb | Stevenans985900/matestack-ui-core | 5812a76dc1a461946268c7becc36024cc027623b | [
"MIT"
] | null | null | null | module Matestack::Ui::Core::Render
# Matestack allows you to use `render` to render matestack pages.
#
# render Pages::Member::Bookings::Index
# render matestack: Pages::Member::Bookings::Index
# render matestack: 'member/bookings/index'
#
def render(*args)
if (matestack_class = args.firs... | 35.168539 | 139 | 0.677316 |
d1c149cdddde8183fe78168fa4c43f8087b4c581 | 400 | cs | C# | Client/Assets/Scripts/GameCtrl/Lobby/HeroTimeLimitCtrl.cs | tsymiar/---- | 90e21cbfe7b3bc730c998e9f5ef87aa3581e357a | [
"Unlicense"
] | null | null | null | Client/Assets/Scripts/GameCtrl/Lobby/HeroTimeLimitCtrl.cs | tsymiar/---- | 90e21cbfe7b3bc730c998e9f5ef87aa3581e357a | [
"Unlicense"
] | null | null | null | Client/Assets/Scripts/GameCtrl/Lobby/HeroTimeLimitCtrl.cs | tsymiar/---- | 90e21cbfe7b3bc730c998e9f5ef87aa3581e357a | [
"Unlicense"
] | null | null | null | using UnityEngine;
using System.Collections;
namespace BlGame.Ctrl
{
public class HeroTimeLimitCtrl : Singleton<HeroTimeLimitCtrl>
{
public void Enter()
{
EventCenter.Broadcast(EGameEvent.eGameEvent_HeroTimeLimitEnter);
}
public void Exit()
{
E... | 21.052632 | 76 | 0.6425 |
64910bef0668ad2d4874cc93cfb7ee0b61e4d52f | 2,202 | lua | Lua | timelapse/logger.lua | estansifer/factoriomods | 9425d4d0d85daedf714db4be5493c67fa069ac7b | [
"MIT"
] | 3 | 2018-11-04T11:19:46.000Z | 2020-10-15T12:48:47.000Z | timelapse/logger.lua | estansifer/factoriomods | 9425d4d0d85daedf714db4be5493c67fa069ac7b | [
"MIT"
] | 1 | 2020-02-03T00:07:14.000Z | 2020-02-03T00:07:14.000Z | timelapse/logger.lua | estansifer/factoriomods | 9425d4d0d85daedf714db4be5493c67fa069ac7b | [
"MIT"
] | 1 | 2020-05-05T02:08:11.000Z | 2020-05-05T02:08:11.000Z | local append = table.insert
logversion = '0.0.1'
function Logger(filename)
local logger = {filename, {}, 0}
if global.loggers == nil then
global.loggers = {}
end
append(global.loggers, logger)
return logger
end
-- Do not use newline characters in 'line'! This will mess up the journal.
fun... | 28.597403 | 96 | 0.645322 |
e29d4bedd9c485a8e7cffe9295c51d41b23e8285 | 3,989 | py | Python | ex03/update_hosts.py | iamhyc/pthread-tutorial | 598987c8c49c74f6333ac3dc4771ad1d4bb11f4d | [
"MIT"
] | null | null | null | ex03/update_hosts.py | iamhyc/pthread-tutorial | 598987c8c49c74f6333ac3dc4771ad1d4bb11f4d | [
"MIT"
] | null | null | null | ex03/update_hosts.py | iamhyc/pthread-tutorial | 598987c8c49c74f6333ac3dc4771ad1d4bb11f4d | [
"MIT"
] | 9 | 2021-09-13T09:36:52.000Z | 2021-10-06T15:05:22.000Z | #!/usr/bin/env python3
import re, os, sys
import itertools
import subprocess as sp
import json
_header = '''
#127.0.0.1 localhost
#127.0.1.1 %s
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
fe00::0 ip6-mcastprefix
... | 41.552083 | 250 | 0.570569 |
2533c98b03ed8b104d5e829039809db2c8eceed3 | 611 | dart | Dart | lib/features/number_trivia/data/models/number_trivia_model.dart | Sthaynny/clean_code_course | 709a6a9a8d71ea37ba22dd502f5aa76420fc3e22 | [
"RSA-MD"
] | 1 | 2020-11-15T19:10:14.000Z | 2020-11-15T19:10:14.000Z | lib/features/number_trivia/data/models/number_trivia_model.dart | Sthaynny/clean_code_course | 709a6a9a8d71ea37ba22dd502f5aa76420fc3e22 | [
"RSA-MD"
] | null | null | null | lib/features/number_trivia/data/models/number_trivia_model.dart | Sthaynny/clean_code_course | 709a6a9a8d71ea37ba22dd502f5aa76420fc3e22 | [
"RSA-MD"
] | null | null | null | import 'package:clean_code_course/features/number_trivia/domain/entities/number_trivia.dart';
import 'package:flutter/cupertino.dart';
import 'package:json_annotation/json_annotation.dart';
part 'number_trivia_model.g.dart';
@JsonSerializable()
class NumberTriviaModel extends NumberTrivia {
const NumberTriviaModel(... | 30.55 | 93 | 0.774141 |
b89dd6c8c9bbdc6daa1e1652c270fa661ab37c93 | 251 | h | C | SDKFrameworks/NOSSDK/Common/NOSIPUtils.h | nemOoO-wang/MMLive | 01753b5ba72138e4d3f3d6d8d397a40b34aef062 | [
"MIT"
] | 5 | 2018-02-27T07:06:17.000Z | 2020-12-24T03:44:28.000Z | NOSSDK/Common/NOSIPUtils.h | NetEase-Object-Storage/nos-ios-sdk | 10178d3c90cc9c8eea41c81ed14aa18e11103284 | [
"MIT"
] | null | null | null | NOSSDK/Common/NOSIPUtils.h | NetEase-Object-Storage/nos-ios-sdk | 10178d3c90cc9c8eea41c81ed14aa18e11103284 | [
"MIT"
] | null | null | null | //
// NOSIPUtils.h
// NOSSDK
//
// Created by hzzhenghuabin on 2015/1/25.
// Copyright (c) 2015年 NetEase. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NOSIPUtils : NSObject
+ (NSString *) localIP:(BOOL)preferIPv4;
@end
| 15.6875 | 53 | 0.689243 |
966935041e4e6bdcb44f192e9a9015fc52d23195 | 15,192 | rs | Rust | src/bcf/header.rs | ingolia/rust-htslib | 8a5e3acb42a9759a5725e36569a337289e7e95a4 | [
"MIT"
] | 2 | 2020-01-18T22:29:51.000Z | 2021-02-12T02:33:18.000Z | src/bcf/header.rs | ingolia/rust-htslib | 8a5e3acb42a9759a5725e36569a337289e7e95a4 | [
"MIT"
] | 1 | 2018-01-17T22:05:30.000Z | 2018-01-17T22:05:30.000Z | src/bcf/header.rs | ingolia/rust-htslib | 8a5e3acb42a9759a5725e36569a337289e7e95a4 | [
"MIT"
] | null | null | null | // Copyright 2014 Johannes Köster.
// Licensed under the MIT license (http://opensource.org/licenses/MIT)
// This file may not be copied, modified, or distributed
// except according to those terms.
use std::ffi;
use std::slice;
use std::str;
use htslib;
use linear_map::LinearMap;
pub type SampleSubset = Vec<i32>;
... | 29.159309 | 99 | 0.510203 |
1f5bd8a362b03f7e4fee83741c152aaaf7297e16 | 235,226 | go | Go | app/bindata/bindata.go | signedbytes/WindowsSpyBlocker | 8a1020bdfe4fb74fac3725ea21d2150f6b043aa5 | [
"MIT"
] | 1 | 2020-01-01T16:34:06.000Z | 2020-01-01T16:34:06.000Z | app/bindata/bindata.go | signedbytes/WindowsSpyBlocker | 8a1020bdfe4fb74fac3725ea21d2150f6b043aa5 | [
"MIT"
] | null | null | null | app/bindata/bindata.go | signedbytes/WindowsSpyBlocker | 8a1020bdfe4fb74fac3725ea21d2150f6b043aa5 | [
"MIT"
] | null | null | null | // Code generated by go-bindata. DO NOT EDIT.
// sources:
// app/settings.json (6.173kB)
// data/dnscrypt/extra.txt (5.397kB)
// data/dnscrypt/spy.txt (8.794kB)
// data/dnscrypt/update.txt (9.354kB)
// data/firewall/extra.txt (4.655kB)
// data/firewall/spy.txt (2.529kB)
// data/firewall/update.txt (3.707kB)
// data/hos... | 218.205937 | 11,157 | 0.741041 |
4ef77cb8295f8f1e90370c72d417ed17e70c0bd2 | 537 | hpp | C++ | engine/generators/crypts/include/ICryptLayoutStrategy.hpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | null | null | null | engine/generators/crypts/include/ICryptLayoutStrategy.hpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | null | null | null | engine/generators/crypts/include/ICryptLayoutStrategy.hpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | null | null | null | #pragma once
#include <tuple>
#include "common.hpp"
#include "Directions.hpp"
#include "Map.hpp"
// Interface for defining crypt layout strategies. These operate on a
// given map and crypt boundary, producing the characteristic look of the
// crypt: pillars, rooms, a central vault, etc.
class ICryptLayoutStrategy
{
... | 29.833333 | 130 | 0.772812 |
93b9856a68ddc9cd556620db44aa858dc3f585b0 | 4,864 | cs | C# | Platforms/Anf.Desktop/Services/TitleService.cs | Cricle/Anf | 7eec885019e9de974baf4b8286ff40448ea86a24 | [
"BSD-3-Clause"
] | null | null | null | Platforms/Anf.Desktop/Services/TitleService.cs | Cricle/Anf | 7eec885019e9de974baf4b8286ff40448ea86a24 | [
"BSD-3-Clause"
] | 64 | 2021-05-26T11:16:13.000Z | 2022-03-30T13:10:53.000Z | Platforms/Anf.Desktop/Services/TitleService.cs | Cricle/Anf | 7eec885019e9de974baf4b8286ff40448ea86a24 | [
"BSD-3-Clause"
] | 1 | 2021-07-20T04:52:10.000Z | 2021-07-20T04:52:10.000Z | using Avalonia;
using Avalonia.Controls;
using Avalonia.Data;
using Avalonia.Layout;
using Anf.Desktop.Views;
using Anf.Services;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Avalonia.Media;
... | 31.584416 | 102 | 0.566201 |
af0a6ba9f92fc120ac6d49e520ef2dc9c523705d | 3,645 | py | Python | vmman.py | UCSD-E4E/vmman-mangrove | 92f4b18d711c2ea7a910f9718e5d7fffeffd1b8a | [
"MIT"
] | 1 | 2021-11-28T09:51:54.000Z | 2021-11-28T09:51:54.000Z | vmman.py | UCSD-E4E/vmman-mangrove | 92f4b18d711c2ea7a910f9718e5d7fffeffd1b8a | [
"MIT"
] | null | null | null | vmman.py | UCSD-E4E/vmman-mangrove | 92f4b18d711c2ea7a910f9718e5d7fffeffd1b8a | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import docker
import argparse
import configparser
import json
import time
from tabulate import tabulate
import sys
class DockerAutomation():
@staticmethod
def start_container(container_ind, client):
print(config["ids"][container_ind])
container = client.containers.get(co... | 40.955056 | 145 | 0.634294 |
b0b7aedc8f2a2fd907e432c691267c6324862b96 | 2,724 | kt | Kotlin | app/src/main/kotlin/com/github/diamondminer88/app/MainActivity.kt | DiamondMiner88/zip-android | fdb94c94307769f028e96ab680a9e8cf89bd193d | [
"Apache-2.0"
] | null | null | null | app/src/main/kotlin/com/github/diamondminer88/app/MainActivity.kt | DiamondMiner88/zip-android | fdb94c94307769f028e96ab680a9e8cf89bd193d | [
"Apache-2.0"
] | null | null | null | app/src/main/kotlin/com/github/diamondminer88/app/MainActivity.kt | DiamondMiner88/zip-android | fdb94c94307769f028e96ab680a9e8cf89bd193d | [
"Apache-2.0"
] | null | null | null | package com.github.diamondminer88.app
import android.Manifest
import android.content.pm.PackageManager
import android.os.Bundle
import android.os.Environment
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.ActivityCompat
import com.github.diamondminer88.zip.ZipReader
im... | 35.376623 | 113 | 0.629222 |
cc6dc1d7d7e1677143ef33fe81a63c63328e2d8d | 68 | asm | Assembly | data/maps/headers/CinnabarGym.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | 1 | 2022-02-15T00:19:44.000Z | 2022-02-15T00:19:44.000Z | data/maps/headers/CinnabarGym.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | data/maps/headers/CinnabarGym.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null |
map_header CinnabarGym, CINNABAR_GYM, FACILITY, 0
end_map_header
| 17 | 50 | 0.823529 |
1b3844e2f06326913dbbb5d53245de2799631351 | 1,071 | rb | Ruby | homehero-backend/app/controllers/listings_controller.rb | sandienunez/dc-listings | 93f3a0066eab87fe085d0c8f921aa227c12d0a7b | [
"MIT"
] | null | null | null | homehero-backend/app/controllers/listings_controller.rb | sandienunez/dc-listings | 93f3a0066eab87fe085d0c8f921aa227c12d0a7b | [
"MIT"
] | null | null | null | homehero-backend/app/controllers/listings_controller.rb | sandienunez/dc-listings | 93f3a0066eab87fe085d0c8f921aa227c12d0a7b | [
"MIT"
] | 1 | 2020-11-14T23:39:53.000Z | 2020-11-14T23:39:53.000Z | class ListingsController < ApplicationController
def index
listings = Listing.all.reverse
render json: listings #response
#JSON you get back in your fetch comes from this line
end
def show
listing = Listing.find(params[:id])
render json: listing
end
def c... | 24.906977 | 128 | 0.602241 |
a44dd966fc720190f36ec77ac814d1ef43af738e | 4,131 | php | PHP | application/views/dashboard_backup/cms/contenido/ver.php | Qonvolicional/negocioverde | ee3cc291230ef8396da7ae22599ee109a6e75e4d | [
"MIT"
] | null | null | null | application/views/dashboard_backup/cms/contenido/ver.php | Qonvolicional/negocioverde | ee3cc291230ef8396da7ae22599ee109a6e75e4d | [
"MIT"
] | null | null | null | application/views/dashboard_backup/cms/contenido/ver.php | Qonvolicional/negocioverde | ee3cc291230ef8396da7ae22599ee109a6e75e4d | [
"MIT"
] | null | null | null |
<div class="content-wrapper">
<section class="content-header">
<h1>
Contenidos
<small>Ver | Editar </small>
</h1>
<ol class="breadcrumb">
<li><a href="<?php echo base_url(); ?>dashboard"><i class="fa fa-dashboard"></i> Administración</a></li>
<... | 38.25 | 193 | 0.448802 |
0a72be0e40dc49b541f19f6ea4da1243288bf101 | 167 | cs | C# | tests/AutoMoqSlim.Tests/Models/ClassWithoutPublicConstructor.cs | sgtHoloToaster/AutoMoqSlim | 477a0f661825320e7b09153f815b516d04a005cc | [
"MIT"
] | 1 | 2021-11-13T11:04:38.000Z | 2021-11-13T11:04:38.000Z | tests/AutoMoqSlim.Tests/Models/ClassWithoutPublicConstructor.cs | sgtHoloToaster/AutoMoqSlim | 477a0f661825320e7b09153f815b516d04a005cc | [
"MIT"
] | 3 | 2021-09-17T16:44:39.000Z | 2021-09-20T13:32:53.000Z | tests/AutoMoqSlim.Tests/Models/ClassWithoutPublicConstructor.cs | sgtHoloToaster/AutoMoqSlim | 477a0f661825320e7b09153f815b516d04a005cc | [
"MIT"
] | null | null | null | namespace AutoMoqSlim.Tests.Models
{
public class ClassWithoutPublicConstructor
{
private ClassWithoutPublicConstructor()
{
}
}
}
| 16.7 | 47 | 0.640719 |
31d4142a8e904c1893f47d44d817dd2138fb3380 | 654 | rb | Ruby | spec/features/admin/admin_browse_spam_logs_spec.rb | abdullatif1992/gitlabhq | 2de002b3db1bc199755f8be212fa8804fcb80905 | [
"MIT"
] | 30 | 2015-07-30T16:13:17.000Z | 2020-01-15T23:47:44.000Z | spec/features/admin/admin_browse_spam_logs_spec.rb | abdullatif1992/gitlabhq | 2de002b3db1bc199755f8be212fa8804fcb80905 | [
"MIT"
] | 11 | 2020-04-30T14:31:37.000Z | 2022-03-02T07:17:53.000Z | spec/features/admin/admin_browse_spam_logs_spec.rb | abdullatif1992/gitlabhq | 2de002b3db1bc199755f8be212fa8804fcb80905 | [
"MIT"
] | 26 | 2016-04-10T07:25:46.000Z | 2019-07-05T07:47:01.000Z | require 'spec_helper'
describe 'Admin browse spam logs' do
let!(:spam_log) { create(:spam_log, description: 'abcde ' * 20) }
before do
sign_in(create(:admin))
end
scenario 'Browse spam logs' do
visit admin_spam_logs_path
expect(page).to have_content('Spam Logs')
expect(page).to have_content(... | 28.434783 | 70 | 0.704893 |
46bd44c678fbbf817cf8e08baabdaee2acf3929f | 523 | py | Python | app.py | zhaokevinma/flask_project | 29d9e3e0827d62d0d944e8dfb2d0c2c6471f4951 | [
"MIT"
] | null | null | null | app.py | zhaokevinma/flask_project | 29d9e3e0827d62d0d944e8dfb2d0c2c6471f4951 | [
"MIT"
] | null | null | null | app.py | zhaokevinma/flask_project | 29d9e3e0827d62d0d944e8dfb2d0c2c6471f4951 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, request
import requests
app = Flask(__name__)
@app.route("/")
def index():
return render_template('index.html')
@app.route("/result")
def result():
resp = requests.get("http://api.open-notify.org/astros.json")
resp_json = resp.json()
people = res... | 23.772727 | 66 | 0.615679 |
bb1e8c0b18cb914e5232e8733532b7b866b00ab4 | 494 | cs | C# | Assets/Toolkits/Input/SavedInputRebindings.cs | wdmatthews/time-stranded | dba13fdc1d22267d4f6cd0acb3eca1b5cf3af556 | [
"CC0-1.0"
] | null | null | null | Assets/Toolkits/Input/SavedInputRebindings.cs | wdmatthews/time-stranded | dba13fdc1d22267d4f6cd0acb3eca1b5cf3af556 | [
"CC0-1.0"
] | null | null | null | Assets/Toolkits/Input/SavedInputRebindings.cs | wdmatthews/time-stranded | dba13fdc1d22267d4f6cd0acb3eca1b5cf3af556 | [
"CC0-1.0"
] | null | null | null | using System.Collections.Generic;
using UnityEngine;
namespace Toolkits.Input
{
/// <summary>
/// A serializable class to store input rebindings.
/// </summary>
[System.Serializable]
public class SavedInputRebindings
{
/// <summary>
/// The list of saved input rebindings.
... | 26 | 91 | 0.645749 |