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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
40181ae027992843d3d06d1df1c85377d6181240 | 180 | swift | Swift | Sources/ParserCombinators/SimpleList.swift | fwcd/swift-prolog | 92f3f37b748f5de75f97636c74c4f48af44674a2 | [
"MIT"
] | 3 | 2020-03-19T20:53:26.000Z | 2022-03-17T22:49:57.000Z | Sources/ParserCombinators/SimpleList.swift | fwcd/swift-prolog | 92f3f37b748f5de75f97636c74c4f48af44674a2 | [
"MIT"
] | null | null | null | Sources/ParserCombinators/SimpleList.swift | fwcd/swift-prolog | 92f3f37b748f5de75f97636c74c4f48af44674a2 | [
"MIT"
] | null | null | null | public struct SimpleList<T>: List {
public let values: [T]
public static func from(_ values: [T]) -> SimpleList<T> {
return SimpleList(values: values)
}
}
| 22.5 | 61 | 0.611111 |
fd42c47d19363212fb89c2968f8bd6e826f1d936 | 2,581 | swift | Swift | MentionmeSwift/Classes/Requests/MentionmeRefereeRegisterRequest.swift | JonathanDowning/mention-me-ios-sdk | eb6412ca16f07ddbe2121daa66c2788595411525 | [
"MIT"
] | 1 | 2019-09-07T23:10:26.000Z | 2019-09-07T23:10:26.000Z | MentionmeSwift/Classes/Requests/MentionmeRefereeRegisterRequest.swift | JonathanDowning/mention-me-ios-sdk | eb6412ca16f07ddbe2121daa66c2788595411525 | [
"MIT"
] | 1 | 2019-10-17T08:33:29.000Z | 2019-10-17T09:13:15.000Z | MentionmeSwift/Classes/Requests/MentionmeRefereeRegisterRequest.swift | JonathanDowning/mention-me-ios-sdk | eb6412ca16f07ddbe2121daa66c2788595411525 | [
"MIT"
] | 2 | 2019-10-03T10:30:28.000Z | 2020-07-20T17:37:10.000Z | //
// MentionmeRefereeRegisterRequest.swift
// TestMentionme
//
// Created by Andreas Bagias on 05/03/2019.
// Copyright © 2019 Mention-me. All rights reserved.
//
import Foundation
public class MentionmeRefereeRegisterRequest: MentionmeRequest{
public var mentionmeReferrerParameters: MentionmeReferrerPa... | 33.960526 | 107 | 0.643936 |
93c719815157c295d7387113d2d80dbce22c50d8 | 4,548 | cs | C# | src/Detached.Mappers/MapperFactories/Entity/EntityMapperFactory.cs | leonardoporro/EntityFrameworkCore.Detached | 22ea222c05e4149014a1cc0effe108311a518c78 | [
"MIT"
] | 7 | 2016-09-13T17:10:38.000Z | 2016-12-22T13:48:54.000Z | src/Detached.Mappers/MapperFactories/Entity/EntityMapperFactory.cs | leonardoporro/EntityFrameworkCore.Detached | 22ea222c05e4149014a1cc0effe108311a518c78 | [
"MIT"
] | 3 | 2016-10-12T15:37:35.000Z | 2016-12-22T12:29:26.000Z | src/Detached.Mappers/MapperFactories/Entity/EntityMapperFactory.cs | leonardoporro/EntityFrameworkCore.Detached | 22ea222c05e4149014a1cc0effe108311a518c78 | [
"MIT"
] | null | null | null | using Detached.Mappers.Exceptions;
using Detached.Mappers.TypeMaps;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using static Detached.RuntimeTypes.Expressions.ExtendedExpression;
using static System.Linq.Expressions.Expression;
namespace Detached.Mappers.MapperFac... | 40.972973 | 137 | 0.53584 |
ae300e2a56011ef5dbcd9834c16082e32f824c2b | 5,443 | cs | C# | src/FuncSharp.Tests/Try/TryTests.cs | siroky/FuncSharp | 996c7669fd17de4f17dafbc43c047f62377eb762 | [
"MIT"
] | 60 | 2015-01-25T02:13:13.000Z | 2022-02-15T16:58:26.000Z | src/FuncSharp.Tests/Try/TryTests.cs | siroky/FuncSharp | 996c7669fd17de4f17dafbc43c047f62377eb762 | [
"MIT"
] | 62 | 2015-01-06T01:15:17.000Z | 2021-11-23T13:55:53.000Z | src/FuncSharp.Tests/Try/TryTests.cs | siroky/FuncSharp | 996c7669fd17de4f17dafbc43c047f62377eb762 | [
"MIT"
] | 24 | 2016-01-17T19:39:35.000Z | 2022-02-03T13:20:03.000Z | using System;
using System.Collections.Generic;
using System.Linq;
using Xunit;
namespace FuncSharp.Tests
{
public class TryTests
{
private static readonly Exception Exception = new NotImplementedException();
private static readonly ITry<int, NotImplementedException> S1 = Try.Catch<int, NotImp... | 43.544 | 135 | 0.574499 |
a001023f132ec1caa3875968bc702f0724374209 | 1,605 | tsx | TypeScript | src/components/Bio.tsx | master-atul/blog | bff2053a2b3ff3fd3a0569ce0d402bbf4f477228 | [
"MIT"
] | null | null | null | src/components/Bio.tsx | master-atul/blog | bff2053a2b3ff3fd3a0569ce0d402bbf4f477228 | [
"MIT"
] | 28 | 2021-03-01T21:16:44.000Z | 2022-02-27T06:08:30.000Z | src/components/Bio.tsx | master-atul/blog | bff2053a2b3ff3fd3a0569ce0d402bbf4f477228 | [
"MIT"
] | null | null | null | import React from 'react';
import config from '../config';
// Import typefaces
import 'typeface-montserrat';
import 'typeface-merriweather';
import { rhythm } from '../utils/typography';
const styles = {
container: {
display: 'flex',
flexDirection: 'row',
paddingTop: rhythm(1 / 3),
},
avatar: {
... | 22.605634 | 80 | 0.535202 |
20a56d851131a814fcba1ea9e6a37635d236dbd6 | 2,232 | cs | C# | Test.IdentityServer.Utility/Attribute/IdentityAuthorizationAttribute.cs | ArjunBhalodiya/IdentityServer4Startup | a5dfa321902fbb1501f648c9a1a7107f3a87a852 | [
"Apache-2.0"
] | 1 | 2020-03-30T14:32:04.000Z | 2020-03-30T14:32:04.000Z | Test.IdentityServer.Utility/Attribute/IdentityAuthorizationAttribute.cs | ArjunBhalodiya/IdentityServer4Startup | a5dfa321902fbb1501f648c9a1a7107f3a87a852 | [
"Apache-2.0"
] | null | null | null | Test.IdentityServer.Utility/Attribute/IdentityAuthorizationAttribute.cs | ArjunBhalodiya/IdentityServer4Startup | a5dfa321902fbb1501f648c9a1a7107f3a87a852 | [
"Apache-2.0"
] | 1 | 2019-06-30T18:15:34.000Z | 2019-06-30T18:15:34.000Z | using System;
using System.Linq;
using System.Security.Claims;
using Microsoft.AspNetCore.Mvc.Filters;
namespace Test.IdentityServer.Utility.Attribute
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public class IdentityAuthorizationAttribute : Acti... | 29.368421 | 110 | 0.579301 |
0052d0af018cb530854e57635de1a9f19037fcec | 567 | sql | SQL | db/seeds.sql | nivaniuc/glowing-broccoli | a2ed14be9dea8a763d1004cf59a1b7e88c5f828f | [
"MIT"
] | null | null | null | db/seeds.sql | nivaniuc/glowing-broccoli | a2ed14be9dea8a763d1004cf59a1b7e88c5f828f | [
"MIT"
] | null | null | null | db/seeds.sql | nivaniuc/glowing-broccoli | a2ed14be9dea8a763d1004cf59a1b7e88c5f828f | [
"MIT"
] | null | null | null | USE employeesdb;
INSERT INTO department (department_name)
VALUES
('Engineering'),
('Admin'),
('Design'),
('Labor');
INSERT INTO role (title, salary, department_id)
VALUES
('Manager', 55000, 1 ),
('CSS', 38000, 2),
('JS', 44000, 3),
('HTML', 48000, 4),
('Entry Level', 32000, 4);
INSERT INTO employee (first_name, last... | 21 | 65 | 0.604938 |
74958187077452f1be347134411ce96371571138 | 3,430 | sql | SQL | sql/class_sub.sql | chichi711/BMO | 0f5287038515c0e995aa150bf5f219097716b2cb | [
"MIT"
] | null | null | null | sql/class_sub.sql | chichi711/BMO | 0f5287038515c0e995aa150bf5f219097716b2cb | [
"MIT"
] | null | null | null | sql/class_sub.sql | chichi711/BMO | 0f5287038515c0e995aa150bf5f219097716b2cb | [
"MIT"
] | null | null | null | -- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- 主機: localhost
-- 產生時間: 2021 年 02 月 07 日 20:13
-- 伺服器版本: 10.4.17-MariaDB
-- PHP 版本: 7.4.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;... | 20.914634 | 76 | 0.514286 |
433e6ca9efc30ada6cda1688015ed52748e9ed8f | 566 | tsx | TypeScript | src/compounds/card/index.tsx | TintKoKo/Test_Project | d34cad511a8c6b061196b817ea9f43a57687b519 | [
"MIT"
] | null | null | null | src/compounds/card/index.tsx | TintKoKo/Test_Project | d34cad511a8c6b061196b817ea9f43a57687b519 | [
"MIT"
] | null | null | null | src/compounds/card/index.tsx | TintKoKo/Test_Project | d34cad511a8c6b061196b817ea9f43a57687b519 | [
"MIT"
] | null | null | null | import React, { FC } from "react";
import { TouchableOpacity } from "react-native";
import { Spacer, Typography } from "../../elements";
import styles from "./styles";
interface CardProps {
title: string;
description: string;
onClick?: () => void;
}
export const Card: FC<CardProps> = ({ title, description, on... | 24.608696 | 75 | 0.641343 |
f4e381a68c5123a2901e5bba6e3fb210512f1b37 | 223 | ts | TypeScript | packages/core/out/api/factories/transaction/getUnconfirmedTransactions.d.ts | fruits-eco-blockchain/fruitsJS | be4bc342a77f3e117578175187c854d4ec6a1711 | [
"Apache-2.0"
] | null | null | null | packages/core/out/api/factories/transaction/getUnconfirmedTransactions.d.ts | fruits-eco-blockchain/fruitsJS | be4bc342a77f3e117578175187c854d4ec6a1711 | [
"Apache-2.0"
] | null | null | null | packages/core/out/api/factories/transaction/getUnconfirmedTransactions.d.ts | fruits-eco-blockchain/fruitsJS | be4bc342a77f3e117578175187c854d4ec6a1711 | [
"Apache-2.0"
] | null | null | null | import { ChainService } from '../../../service';
import { UnconfirmedTransactionList } from '../../..';
export declare const getUnconfirmedTransactions: (service: ChainService) => () => Promise<UnconfirmedTransactionList>;
| 55.75 | 118 | 0.721973 |
0727921f8efeba87e2701ef77bb4865ef792e8ca | 26,268 | h | C | src/objmemory.h | leopardoTenaz/Smalltalk | 260fd05a0e86eead99f4511253dff554a4ceddec | [
"MIT"
] | 687 | 2020-05-18T04:01:53.000Z | 2022-03-30T09:01:30.000Z | src/objmemory.h | leopardoTenaz/Smalltalk | 260fd05a0e86eead99f4511253dff554a4ceddec | [
"MIT"
] | 10 | 2020-05-22T22:35:20.000Z | 2021-12-02T15:30:50.000Z | src/objmemory.h | leopardoTenaz/Smalltalk | 260fd05a0e86eead99f4511253dff554a4ceddec | [
"MIT"
] | 61 | 2020-05-18T14:37:09.000Z | 2022-03-30T09:04:40.000Z | //
// objmemory.h
// Smalltalk-80
//
// Created by Dan Banay on 2/20/20.
// Copyright © 2020 Dan Banay. All rights reserved.
//
// MIT License
// 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 th... | 30.579744 | 109 | 0.613027 |
3382532935823b1bfa60967815895ba065530756 | 7,572 | go | Go | httperror.go | acoshift/e | 3b1d24b21f23a02fac5dcb5c99b64cf2e9bd3e4c | [
"MIT"
] | 2 | 2017-01-24T12:23:22.000Z | 2017-05-31T16:33:24.000Z | httperror.go | acoshift/e | 3b1d24b21f23a02fac5dcb5c99b64cf2e9bd3e4c | [
"MIT"
] | null | null | null | httperror.go | acoshift/e | 3b1d24b21f23a02fac5dcb5c99b64cf2e9bd3e4c | [
"MIT"
] | null | null | null | // Package httperror is the reusable http error collection
package httperror
import (
"errors"
"fmt"
"net/http"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
)
// Error is the httperror's Error
type Error struct {
Status int `json:"status"` // http status code
Code string `json:"code"` //... | 31.949367 | 87 | 0.750396 |
38c80e14801aa23a67cd97e70bd3a17abd97b9b4 | 246 | php | PHP | src/themes/bootstrap5/views/modules/sidebar/header.php | bytic/admin-base | 68a60f28fc04ff7a84bd26896abb1fc03a8e50fb | [
"MIT"
] | null | null | null | src/themes/bootstrap5/views/modules/sidebar/header.php | bytic/admin-base | 68a60f28fc04ff7a84bd26896abb1fc03a8e50fb | [
"MIT"
] | null | null | null | src/themes/bootstrap5/views/modules/sidebar/header.php | bytic/admin-base | 68a60f28fc04ff7a84bd26896abb1fc03a8e50fb | [
"MIT"
] | null | null | null | <?php
$logoUrl = function_exists('logoUrl') ? logoUrl('logo-white.png') : asset('/images/logos/logo-white.png');
?>
<li class="nav-profile">
<img src="<?php echo $logoUrl; ?>" class="img-fluid"/>
<!-- <div class="image"></div>-->
</li> | 35.142857 | 106 | 0.597561 |
2c615bee7ee5bbf21c0e324d25f80ee007fba715 | 40,152 | py | Python | nemo/collections/asr/parts/utils/nmesc_clustering.py | gkucsko/NeMo | c1ae0a7744d9a0ac206f61b2883ce00c9b8339b9 | [
"Apache-2.0"
] | null | null | null | nemo/collections/asr/parts/utils/nmesc_clustering.py | gkucsko/NeMo | c1ae0a7744d9a0ac206f61b2883ce00c9b8339b9 | [
"Apache-2.0"
] | 1 | 2022-03-06T14:09:02.000Z | 2022-03-06T14:09:02.000Z | nemo/collections/asr/parts/utils/nmesc_clustering.py | gkucsko/NeMo | c1ae0a7744d9a0ac206f61b2883ce00c9b8339b9 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021, NVIDIA CORPORATION. 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 appli... | 37.915014 | 119 | 0.671424 |
bb6de1d9207427ad650fb6bbe583587a1ecfb155 | 2,872 | cs | C# | gsa-simulator/Search.aspx.cs | joesoc/google-saml-bridge-for-windows | 21d97ffba7d01b44d462cc68fdcc276ff7d01c29 | [
"Apache-2.0"
] | null | null | null | gsa-simulator/Search.aspx.cs | joesoc/google-saml-bridge-for-windows | 21d97ffba7d01b44d462cc68fdcc276ff7d01c29 | [
"Apache-2.0"
] | null | null | null | gsa-simulator/Search.aspx.cs | joesoc/google-saml-bridge-for-windows | 21d97ffba7d01b44d462cc68fdcc276ff7d01c29 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2006 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 31.56044 | 81 | 0.667131 |
a3e1f264a377f19c9ad1b3ed8c17e1c2dc768f32 | 451 | java | Java | src/gta_text/locations/ChineseTakeaway.java | SteveSmith16384/gta-mud | f8efd298a98b002236e642a9a73244828a11ebf7 | [
"MIT"
] | 3 | 2020-04-03T14:49:39.000Z | 2021-08-28T04:05:55.000Z | src/gta_text/locations/ChineseTakeaway.java | SteveSmith16384/gta-mud | f8efd298a98b002236e642a9a73244828a11ebf7 | [
"MIT"
] | null | null | null | src/gta_text/locations/ChineseTakeaway.java | SteveSmith16384/gta-mud | f8efd298a98b002236e642a9a73244828a11ebf7 | [
"MIT"
] | null | null | null | package gta_text.locations;
import java.io.IOException;
import gta_text.npcs.TakeawayAssistant;
public class ChineseTakeaway extends Location {
public ChineseTakeaway(String no) throws IOException {
super(no);
new TakeawayAssistant(this);
}
public void regenChars() throws IOException {
... | 21.47619 | 70 | 0.687361 |
23e688dc4b36d5306f8dc867c807ba58b1f37b1f | 414 | js | JavaScript | docs/search/variables_3.js | MacanPN/single-cell-tools | 1c6cff36ccaa0263067cb7d0efca96f3cd01e95f | [
"MIT"
] | null | null | null | docs/search/variables_3.js | MacanPN/single-cell-tools | 1c6cff36ccaa0263067cb7d0efca96f3cd01e95f | [
"MIT"
] | 2 | 2018-02-05T17:06:48.000Z | 2018-02-07T00:49:17.000Z | docs/search/variables_3.js | MacanPN/single-cell-tools | 1c6cff36ccaa0263067cb7d0efca96f3cd01e95f | [
"MIT"
] | 2 | 2018-02-05T17:24:32.000Z | 2018-02-05T17:26:33.000Z | var searchData=
[
['result_5ffilename',['result_filename',['../classsc-analyses_1_1settings.html#a8ad29f9ce6fda35a27d688db63be1de9',1,'sc-analyses::settings']]],
['run_5fmode',['run_mode',['../classsc-analyses_1_1settings.html#abd0aa46bbc29419b20ee3cc53cb80575',1,'sc-analyses::settings']]],
['run_5fmodes',['run_m... | 59.142857 | 145 | 0.763285 |
1b44a2d581c673b65d642aeb7251e9e6b819c0cb | 783 | dart | Dart | ui/kefu_workbench/lib/widgets/sliver_refresh_control.dart | weoil/kefu_server | 2a6d3a881265620d8be90a0e48a4f9dd9931ee0d | [
"Apache-2.0"
] | 165 | 2019-12-23T07:02:48.000Z | 2022-03-28T06:53:50.000Z | ui/kefu_workbench/lib/widgets/sliver_refresh_control.dart | weoil/kefu_server | 2a6d3a881265620d8be90a0e48a4f9dd9931ee0d | [
"Apache-2.0"
] | 10 | 2020-03-07T12:42:22.000Z | 2022-03-25T19:24:30.000Z | ui/kefu_workbench/lib/widgets/sliver_refresh_control.dart | weoil/kefu_server | 2a6d3a881265620d8be90a0e48a4f9dd9931ee0d | [
"Apache-2.0"
] | 60 | 2020-01-03T05:02:40.000Z | 2022-01-27T06:25:12.000Z |
import '../core_flutter.dart';
CupertinoSliverRefreshControl sliverRefreshControl({
VoidCallback onRefresh,
Color bgColor = const Color(0xffffffff),
bool isNoRefresh = false,
Color iconColor = Colors.grey,
Color textColor = const Color(0xff666666),
Widget noRefreshWidget
}){
return CupertinoSliverRefre... | 27 | 103 | 0.708812 |
37513ec12039e2b5f843bfb2a5d15677eaf4d6c3 | 3,657 | swift | Swift | Chapter07/0711/SpaceInvaders/SpaceInvaders/Enemy.swift | CoderDream/SwiftGameInAction | f53523efe85c15ecb39b70472b2f2b702570cf0b | [
"MIT"
] | null | null | null | Chapter07/0711/SpaceInvaders/SpaceInvaders/Enemy.swift | CoderDream/SwiftGameInAction | f53523efe85c15ecb39b70472b2f2b702570cf0b | [
"MIT"
] | null | null | null | Chapter07/0711/SpaceInvaders/SpaceInvaders/Enemy.swift | CoderDream/SwiftGameInAction | f53523efe85c15ecb39b70472b2f2b702570cf0b | [
"MIT"
] | 1 | 2021-03-21T05:10:57.000Z | 2021-03-21T05:10:57.000Z | //
// Enemy.swift
// SpaceInvaders
//
// Created by CoderDream on 2019/3/25.
// Copyright © 2019 CoderDream. All rights reserved.
//
import Foundation
import UIKit
class Enemy: NSObject {
// 敌人的大小
var eSize: Int = 32
var gameView: UIView = UIView()
var enemyList = Array<UIImageView>() // NSMu... | 32.945946 | 144 | 0.566038 |
c9a2f2a2d523e11d40f159b9f26230c4b39fb57c | 1,705 | tsx | TypeScript | src/App.tsx | no3forfuk/Frame_rn | 697d0acbda0288aae697b7dcf0398ce1112f54de | [
"MIT"
] | 1 | 2020-07-23T09:24:37.000Z | 2020-07-23T09:24:37.000Z | src/App.tsx | no3forfuk/Frame_rn | 697d0acbda0288aae697b7dcf0398ce1112f54de | [
"MIT"
] | null | null | null | src/App.tsx | no3forfuk/Frame_rn | 697d0acbda0288aae697b7dcf0398ce1112f54de | [
"MIT"
] | 1 | 2020-08-28T06:32:18.000Z | 2020-08-28T06:32:18.000Z | import React, {Component, Fragment} from "react"
import "./App.less"
import * as redux from "react-redux"
import SOCKET from "./socket"
import {LOGIN_SWITCH, SOCKET_SWITCH} from "./switch"
import {storage} from "./utils"
import {socketConf} from "./env"
import {renderRoutes} from "react-router-config"
const {connect} =... | 22.142857 | 71 | 0.558944 |
fa2773883101d19fb4a9236d013891fd8d8796f5 | 2,172 | cpp | C++ | src/e101_200/q1414.cpp | extremedeckguru/leetcode | e45923ccbca7ae1c5f85d8c996392e8b492c1306 | [
"MIT"
] | 9 | 2020-04-09T12:37:50.000Z | 2021-04-01T14:01:14.000Z | src/e101_200/q1414.cpp | extremedeckguru/leetcode | e45923ccbca7ae1c5f85d8c996392e8b492c1306 | [
"MIT"
] | 3 | 2020-05-05T02:43:54.000Z | 2020-05-20T11:12:16.000Z | src/e101_200/q1414.cpp | extremedeckguru/leetcode | e45923ccbca7ae1c5f85d8c996392e8b492c1306 | [
"MIT"
] | 5 | 2020-04-17T02:32:10.000Z | 2020-05-20T10:12:26.000Z | /*
#面试刷题# 第0101期
#Leetcode# Q1414 找出和为K的斐波那契数的最小个数
难度:中
给定一个数k,返回其总和等于k的斐波那契数的最小值,一个斐波那契数是否可以多次使用。
斐波那契数的定义为。
F1 = 1
F2 = 1
Fn = Fn-1 + Fn-2 ,对于 n > 2。
可以保证,对于给定的约束,我们总是可以找到这样的斐波那契数和k。
约束条件:
1 <= k <= 10^9
示例1:
Input: k = 7
Output: 2
Explanation: The Fibonacci numbers are: 1, 1, 2, 3, 5, 8, 13, ...
For k = 7 we can ... | 21.939394 | 70 | 0.521179 |
20e41c8ee94ec58159077b9913a4f4539e8bbfb4 | 10,245 | py | Python | cogs/tweet.py | being24/sagumo | be4b4da25a7e19ec1dc86e543bc72333248bb18e | [
"MIT"
] | 4 | 2020-04-04T14:56:55.000Z | 2021-01-02T08:21:08.000Z | cogs/tweet.py | being24/sagumo | be4b4da25a7e19ec1dc86e543bc72333248bb18e | [
"MIT"
] | 119 | 2020-01-31T09:57:45.000Z | 2022-03-25T07:07:01.000Z | cogs/tweet.py | being24/sagumo | be4b4da25a7e19ec1dc86e543bc72333248bb18e | [
"MIT"
] | 4 | 2020-04-06T09:05:14.000Z | 2021-06-04T07:32:51.000Z | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
import asyncio
import logging
import os
from datetime import datetime
from functools import partial, wraps
import discord
from discord.ext import commands, tasks
from discord.ext.menus import ListPageSource, MenuPages
from dotenv import load_dotenv
from requests_oauthli... | 32.52381 | 137 | 0.595217 |
b7fce1cd7e16e2041c5aae414ccbd8171fe09443 | 7,445 | cs | C# | Samples/SampleBrowser/ProductSamples/WizardSamples/Demo/Features/MainWindow.xaml.cs | Actipro/WPF-Controls | 7a20f3ca11c4c2d24149681145da0b029cedec06 | [
"MIT"
] | 40 | 2021-02-19T00:57:13.000Z | 2022-03-09T05:04:28.000Z | Samples/SampleBrowser/ProductSamples/WizardSamples/Demo/Features/MainWindow.xaml.cs | Actipro/WPF-Controls | 7a20f3ca11c4c2d24149681145da0b029cedec06 | [
"MIT"
] | null | null | null | Samples/SampleBrowser/ProductSamples/WizardSamples/Demo/Features/MainWindow.xaml.cs | Actipro/WPF-Controls | 7a20f3ca11c4c2d24149681145da0b029cedec06 | [
"MIT"
] | 9 | 2021-02-18T23:52:51.000Z | 2021-12-03T19:42:12.000Z | using ActiproSoftware.Windows.Controls.Wizard;
using ActiproSoftware.Windows.Themes;
using System;
using System.ComponentModel;
using System.Threading;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Interop;
#if WPF
using MessageBox = ActiproSoftware.Windows.Controls.ThemedMessageBox;
#endif... | 41.361111 | 183 | 0.718469 |
43d61a40ea4ca20cec1815651cfebe2bba517b97 | 789 | ts | TypeScript | src/core/store.ts | my-repositories/friendly2 | 1ec075712ef91fe6fe01cfd5cd4b3b0f04d949b1 | [
"MIT"
] | null | null | null | src/core/store.ts | my-repositories/friendly2 | 1ec075712ef91fe6fe01cfd5cd4b3b0f04d949b1 | [
"MIT"
] | null | null | null | src/core/store.ts | my-repositories/friendly2 | 1ec075712ef91fe6fe01cfd5cd4b3b0f04d949b1 | [
"MIT"
] | 1 | 2020-10-18T12:15:10.000Z | 2020-10-18T12:15:10.000Z | import { injectable } from '~/ioc/decorators/injectable';
@injectable()
export class Store {
private static _linksKey = '__STORE__LINKS__';
private static _maxLinksCount = 500;
get(): string[] {
return JSON.parse(sessionStorage.getItem(Store._linksKey) || '[]');
}
save(newLinks: string[])... | 25.451613 | 76 | 0.588086 |
c0ca9bbcd4c1e00c0a2c3c07ccfcd39fd966b37d | 4,502 | sql | SQL | vote.sql | G41mywaifu/ssm- | 059599c78aa66b9ce775854850b864e6c9fa90e4 | [
"MIT"
] | 1 | 2021-03-30T08:15:23.000Z | 2021-03-30T08:15:23.000Z | vote.sql | G41mywaifu/ssm | 059599c78aa66b9ce775854850b864e6c9fa90e4 | [
"MIT"
] | null | null | null | vote.sql | G41mywaifu/ssm | 059599c78aa66b9ce775854850b864e6c9fa90e4 | [
"MIT"
] | null | null | null |
drop table if exists tb_admin;
drop table if exists tb_answer_opt;
drop table if exists tb_answer_txt;
drop table if exists tb_question;
drop table if exists tb_question_opt;
drop table if exists tb_survey;
/*==============================================================*/
/* Table: tb_admin ... | 36.306452 | 78 | 0.400933 |
1b6491d694aa48e275beb549745ef554abbc5883 | 238 | rb | Ruby | server/db/migrate/20140929132049_create_page_errors.rb | ryanbahniuk/context | 8b7fc32e1abfd951c88065c340159f8e7ac08756 | [
"MIT"
] | null | null | null | server/db/migrate/20140929132049_create_page_errors.rb | ryanbahniuk/context | 8b7fc32e1abfd951c88065c340159f8e7ac08756 | [
"MIT"
] | null | null | null | server/db/migrate/20140929132049_create_page_errors.rb | ryanbahniuk/context | 8b7fc32e1abfd951c88065c340159f8e7ac08756 | [
"MIT"
] | null | null | null | class CreatePageErrors < ActiveRecord::Migration
def change
create_table :page_errors do |t|
t.belongs_to :user
t.belongs_to :url
t.text :description
t.boolean :resolved?
t.timestamps
end
end
end
| 19.833333 | 48 | 0.663866 |
4cb6ac90ca6a5994e57e97b5a1daacc1aa9f2626 | 178 | cs | C# | Assets/System/Windows/Forms/IContainerControl.cs | SixGodZhang/WinformUnity | c91f21d48a568b333b0ef83ab4a38c815e5f214e | [
"MIT"
] | 442 | 2015-11-23T05:50:37.000Z | 2022-03-24T23:42:17.000Z | System/Windows/Forms/IContainerControl.cs | superowner/Unity-WinForms | 52bf9b9597e57c96804bab9789fdc045820fcece | [
"MIT"
] | 49 | 2016-07-23T06:48:28.000Z | 2022-03-16T15:54:24.000Z | System/Windows/Forms/IContainerControl.cs | superowner/Unity-WinForms | 52bf9b9597e57c96804bab9789fdc045820fcece | [
"MIT"
] | 79 | 2016-07-27T02:53:24.000Z | 2022-03-14T00:12:36.000Z | namespace System.Windows.Forms
{
public interface IContainerControl
{
Control ActiveControl { get; set; }
bool ActivateControl(Control active);
}
}
| 17.8 | 45 | 0.657303 |
eb8fc0c1a3066dd4bf2894ba8136375ee3e37462 | 23,877 | lua | Lua | Scripts/02 consensual_settings.lua | arcaneAgilmente/consensual | 89d5bea56a8e06986fe33871dbe8acf4766861fd | [
"BSD-3-Clause"
] | 3 | 2019-03-20T03:03:22.000Z | 2022-03-18T17:57:53.000Z | Scripts/02 consensual_settings.lua | AratnitY/consensual | 89d5bea56a8e06986fe33871dbe8acf4766861fd | [
"BSD-3-Clause"
] | null | null | null | Scripts/02 consensual_settings.lua | AratnitY/consensual | 89d5bea56a8e06986fe33871dbe8acf4766861fd | [
"BSD-3-Clause"
] | 1 | 2019-03-20T03:03:24.000Z | 2019-03-20T03:03:24.000Z | local cons_player= {}
function add_cons_player_field(name, value)
cons_player[name]= value
end
function cons_player:clear_init(player_number)
for k, v in pairs(self) do
if k ~= "id" then
self[k]= nil
end
end
local player_state= GAMESTATE:GetPlayerState(player_number)
local option_get= player_state.get_pla... | 28.698317 | 115 | 0.766721 |
46d0b8a95c7789b8ac8bd87003eafb97485b3d61 | 5,132 | lua | Lua | msb-core/openresty-ext/src/assembly/resources/openresty/nginx/luaext/customrouter.lua | gongysh2004/common-services-microservice-bus | 78c23a6a8b4a53ea594f6c68afbb6729867b08f9 | [
"Apache-2.0"
] | null | null | null | msb-core/openresty-ext/src/assembly/resources/openresty/nginx/luaext/customrouter.lua | gongysh2004/common-services-microservice-bus | 78c23a6a8b4a53ea594f6c68afbb6729867b08f9 | [
"Apache-2.0"
] | null | null | null | msb-core/openresty-ext/src/assembly/resources/openresty/nginx/luaext/customrouter.lua | gongysh2004/common-services-microservice-bus | 78c23a6a8b4a53ea594f6c68afbb6729867b08f9 | [
"Apache-2.0"
] | null | null | null | --[[
Copyright 2016 ZTE Corporation.
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 ag... | 27.44385 | 106 | 0.692907 |
c9ee7b544f05ddc62a4dbeb1ccd4c6a37912c60c | 783 | ts | TypeScript | src/app/home/home.component.ts | amiroslaw/scully-plugins | 7f1f5f9f774c1983cb49b78cd4c35292e32d156c | [
"MIT"
] | 20 | 2020-03-14T22:33:21.000Z | 2021-07-25T03:40:50.000Z | src/app/home/home.component.ts | amiroslaw/scully-plugins | 7f1f5f9f774c1983cb49b78cd4c35292e32d156c | [
"MIT"
] | 27 | 2020-03-25T02:09:05.000Z | 2022-03-02T07:44:21.000Z | src/app/home/home.component.ts | amiroslaw/scully-plugins | 7f1f5f9f774c1983cb49b78cd4c35292e32d156c | [
"MIT"
] | 7 | 2020-05-18T15:27:38.000Z | 2022-02-22T14:42:58.000Z | import { Component, OnInit } from '@angular/core';
import { ScullyRoutesService, ScullyRoute } from '@scullyio/ng-lib';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss']
})
export ... | 27.964286 | 80 | 0.651341 |
5db03cd420da69738fbe3acbf8468ad87ef583ce | 17,405 | cpp | C++ | xcore/crowd_app/leon/params/params.cpp | baidu-research/hydra-xeye | 67d4464cff8f44f3a396a2c9aed46d0ce02f8de2 | [
"Apache-2.0"
] | 1 | 2021-09-01T00:50:34.000Z | 2021-09-01T00:50:34.000Z | xcore/crowd_app/leon/params/params.cpp | baidu-research/hydra-xeye | 67d4464cff8f44f3a396a2c9aed46d0ce02f8de2 | [
"Apache-2.0"
] | null | null | null | xcore/crowd_app/leon/params/params.cpp | baidu-research/hydra-xeye | 67d4464cff8f44f3a396a2c9aed46d0ce02f8de2 | [
"Apache-2.0"
] | null | null | null | #include "params.hpp"
#include <Log.h>
#ifndef MVLOG_UNIT_NAME
#define MVLOG_UNIT_NAME params
#endif
#include <mvLog.h>
#include "utils/utils.hpp"
char* Params::merge_conf_json(const char* conf_json) {
cJSON* root = cJSON_Parse(conf_json);
if (root == NULL) {
LOGE << "invalid json string";
retu... | 40.382831 | 111 | 0.637863 |
75bd5bca52ac5f263fe4185915dec9ab8e3f35d4 | 151 | css | CSS | CSS/coding-164/chapter9/src/02-plugins-module.css | zhuyudong/blog | f3dbddb0065ce8e314718d1a1201c7cafc8a8465 | [
"MIT"
] | 1 | 2019-06-04T21:00:07.000Z | 2019-06-04T21:00:07.000Z | CSS/coding-164/chapter9/src/02-plugins-module.css | zhuyudong/blog | f3dbddb0065ce8e314718d1a1201c7cafc8a8465 | [
"MIT"
] | 2 | 2020-07-18T13:36:36.000Z | 2021-05-09T03:07:45.000Z | CSS/coding-164/chapter9/src/02-plugins-module.css | zhuyudong/blog | f3dbddb0065ce8e314718d1a1201c7cafc8a8465 | [
"MIT"
] | 1 | 2019-08-29T02:59:37.000Z | 2019-08-29T02:59:37.000Z | /* css-reset */
*{
padding:0;
margin:0;
}
body{
margin: 10px 20px 10px 20px;
font-size:14px;
}
body{
background-color:#ffffff;
}
| 10.066667 | 32 | 0.569536 |
0901d3118494ba3323850479185d0df03d780cff | 309 | ts | TypeScript | documentation/techdoc/lst/datatype_diastolic.ts | regionostergotland/ipforregionen | bbc7a3a1a95feeaaa187b21afa046aa6995192b0 | [
"MIT"
] | null | null | null | documentation/techdoc/lst/datatype_diastolic.ts | regionostergotland/ipforregionen | bbc7a3a1a95feeaaa187b21afa046aa6995192b0 | [
"MIT"
] | 11 | 2020-04-17T07:27:03.000Z | 2022-03-02T07:14:24.000Z | documentation/techdoc/lst/datatype_diastolic.ts | regionostergotland/ipforregionen | bbc7a3a1a95feeaaa187b21afa046aa6995192b0 | [
"MIT"
] | 2 | 2019-06-11T09:35:56.000Z | 2019-07-12T15:11:50.000Z | let diastolicDataType = new DataTypeQuantity(
{
path: 'any_event',
label: 'Diastoliskt',
description: `Det minsta systemiskt arteriella blodtrycket uppmätt
diastoliskt eller i hjärtcykelns avslappningsfas.`,
required: true,
single: false,
visible: true,
}, 'mm[Hg]', 0, 1000
)
| 25.75 | 70 | 0.68932 |
932859bb4684db7d90622ff5f15d5294322508d1 | 3,974 | go | Go | src/github.com/cppforlife/bosh-warden-cpi/vm/warden_file_service.go | crhntr/bosh-warden-cpi-release | ec4f6d68bef61cdc9393dbdd1c9fce601bb6d887 | [
"Apache-2.0"
] | 9 | 2015-06-03T21:38:43.000Z | 2021-02-05T12:46:05.000Z | src/github.com/cppforlife/bosh-warden-cpi/vm/warden_file_service.go | crhntr/bosh-warden-cpi-release | ec4f6d68bef61cdc9393dbdd1c9fce601bb6d887 | [
"Apache-2.0"
] | 16 | 2016-01-06T06:07:48.000Z | 2018-11-14T19:46:11.000Z | src/bosh-warden-cpi/vm/warden_file_service.go | cloudfoundry/bosh-warden-cpi-release | c8dec68d2364acda70ca633e5962d746f3ecbe13 | [
"Apache-2.0"
] | 13 | 2015-05-19T20:50:23.000Z | 2018-11-04T15:05:39.000Z | package vm
import (
"archive/tar"
"bytes"
"fmt"
"io"
"io/ioutil"
"path/filepath"
wrdn "code.cloudfoundry.org/garden"
bosherr "github.com/cloudfoundry/bosh-utils/errors"
boshlog "github.com/cloudfoundry/bosh-utils/logger"
)
type wardenFileService struct {
container wrdn.Container
logTag string
logger bos... | 23.514793 | 122 | 0.70005 |
2ddf409b15816542c99c67db6aa72e8455e160f9 | 5,161 | dart | Dart | pkg/fake_gcloud/lib/mem_datastore.dart | mingsai/pub-dev | faa61a1c3ae5bbe21d88b9e24c15f3a6423717dd | [
"BSD-3-Clause"
] | null | null | null | pkg/fake_gcloud/lib/mem_datastore.dart | mingsai/pub-dev | faa61a1c3ae5bbe21d88b9e24c15f3a6423717dd | [
"BSD-3-Clause"
] | null | null | null | pkg/fake_gcloud/lib/mem_datastore.dart | mingsai/pub-dev | faa61a1c3ae5bbe21d88b9e24c15f3a6423717dd | [
"BSD-3-Clause"
] | null | null | null | import 'package:gcloud/common.dart';
import 'package:gcloud/datastore.dart';
/// Implementation of [Datastore] interface with in-memory storage.
///
/// Entities are cloned, and should be safe to modify them once they are stored
/// or read.
class MemDatastore implements Datastore {
final _entities = <Key, Entity>{}... | 29.323864 | 80 | 0.585933 |
bb43ffe8c3d3f4f48fa14913dbe6544189f870d8 | 5,126 | cs | C# | src/Microsoft.Graph/Generated/requests/IRestrictedSignInRequest.cs | luismanez/msgraph-sdk-dotnet | ffecbd4a279ee4292c9540c5468e39d90781bc8d | [
"MIT"
] | null | null | null | src/Microsoft.Graph/Generated/requests/IRestrictedSignInRequest.cs | luismanez/msgraph-sdk-dotnet | ffecbd4a279ee4292c9540c5468e39d90781bc8d | [
"MIT"
] | 5 | 2021-04-02T07:32:51.000Z | 2022-03-07T12:09:19.000Z | src/Microsoft.Graph/Generated/requests/IRestrictedSignInRequest.cs | luismanez/msgraph-sdk-dotnet | ffecbd4a279ee4292c9540c5468e39d90781bc8d | [
"MIT"
] | null | null | null | // ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... | 47.462963 | 153 | 0.643387 |
44063d0df5ac65a630b90f2f301d0584e9a77f1a | 593 | py | Python | tests/conftest.py | marcoaaguiar/channels-ws-auth | a9b4e87f3be81097c5078803dead9fbd8dd7be1f | [
"MIT"
] | 1 | 2020-05-04T11:13:22.000Z | 2020-05-04T11:13:22.000Z | tests/conftest.py | marcoaaguiar/channels-ws-auth | a9b4e87f3be81097c5078803dead9fbd8dd7be1f | [
"MIT"
] | 21 | 2020-05-20T23:29:51.000Z | 2021-06-25T15:38:45.000Z | tests/conftest.py | marcoaaguiar/channels-ws-auth | a9b4e87f3be81097c5078803dead9fbd8dd7be1f | [
"MIT"
] | null | null | null | import pytest
from rest_framework.test import APIClient
from channels_ws_auth.models import WSAuthTicket
@pytest.fixture
@pytest.mark.django_db
def user(django_user_model):
return django_user_model.objects.create_user(username="user")
@pytest.fixture
@pytest.mark.django_db
def ticket(user):
return WSAuthTic... | 21.178571 | 65 | 0.797639 |
7f0022b1698ca715b875100e029e149e430784dc | 6,861 | cs | C# | StoreApp/StoreLibrary/OwnerRepo.cs | 2011-nov02-net/paul-project0-version2 | 8347f0a092176626cddd389504bb6e7c5afe0072 | [
"MIT"
] | null | null | null | StoreApp/StoreLibrary/OwnerRepo.cs | 2011-nov02-net/paul-project0-version2 | 8347f0a092176626cddd389504bb6e7c5afe0072 | [
"MIT"
] | 5 | 2020-12-01T20:06:24.000Z | 2020-12-11T16:14:39.000Z | StoreApp/StoreLibrary/OwnerRepo.cs | 2011-nov02-net/paul-project0-version2 | 8347f0a092176626cddd389504bb6e7c5afe0072 | [
"MIT"
] | null | null | null | using Model;
using System;
using Microsoft.EntityFrameworkCore;
using System.Linq;
using System.Collections.Generic;
namespace StoreLibrary
{
public class OwnerRepo : IProducts
{
private readonly ICollection<Store> _store;
public readonly DbContextOptions<project0Context> _dbContex... | 29.320513 | 118 | 0.529223 |
e4b9a58f11027c30cd6e2d9314fc5eb90eb335c0 | 882 | rs | Rust | src/exp.rs | svoctor/lisper | 5290eaabc81d65dacadaf36092636250d092b3a4 | [
"MIT"
] | 2 | 2021-01-14T20:57:47.000Z | 2021-06-07T18:18:04.000Z | src/exp.rs | svoctor/lisper | 5290eaabc81d65dacadaf36092636250d092b3a4 | [
"MIT"
] | 17 | 2021-01-08T03:25:05.000Z | 2021-12-21T17:44:22.000Z | src/exp.rs | svoctor/lisper | 5290eaabc81d65dacadaf36092636250d092b3a4 | [
"MIT"
] | 1 | 2021-02-19T21:34:11.000Z | 2021-02-19T21:34:11.000Z | use std::fmt;
// Represents an individual Lisp expresion
#[derive(Clone)]
pub enum LisperExp {
Bool(bool),
Symbol(String),
Number(f64),
List(Vec<LisperExp>),
Func(fn(&LisperExp) -> LisperExp),
Lambda(Vec<LisperExp>),
}
// Used for to_string
impl fmt::Display for LisperExp {
fn fmt(&self, f:... | 30.413793 | 91 | 0.537415 |
f61eada41d605c8284e0bbb196d25322ae8faab8 | 2,103 | cc | C++ | common/config.cc | yonsei-icsl/nebula | 12bc2440978018d27996df6b97180056dddefa6c | [
"BSD-3-Clause"
] | 5 | 2020-02-13T04:12:41.000Z | 2021-02-08T04:53:55.000Z | common/config.cc | yonsei-icsl/Nebula | 12bc2440978018d27996df6b97180056dddefa6c | [
"BSD-3-Clause"
] | 1 | 2020-10-29T10:59:08.000Z | 2020-12-31T04:04:58.000Z | common/config.cc | yonsei-icsl/Nebula | 12bc2440978018d27996df6b97180056dddefa6c | [
"BSD-3-Clause"
] | 2 | 2021-03-21T02:45:40.000Z | 2022-03-10T12:31:06.000Z | #include <algorithm>
#include <assert.h>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <locale>
#include "config.h"
#include "utils.h"
namespace nebula {
// Configuration section
section_config_t::section_config_t(std::string m_name) :
name(m_name) {
}
section_config_t::~section_config_t() {... | 26.620253 | 94 | 0.603899 |
da4a6ae5d8bc5fecf51cd72e91446552f84cb6e7 | 30,954 | php | PHP | app/Repositories/Eloquent/YunHeRenderRepository.php | b9813147/IES3 | 90e400501f65fe0dd2b9480d152f2db5cf1079e5 | [
"MIT"
] | null | null | null | app/Repositories/Eloquent/YunHeRenderRepository.php | b9813147/IES3 | 90e400501f65fe0dd2b9480d152f2db5cf1079e5 | [
"MIT"
] | 2 | 2020-07-18T05:23:02.000Z | 2021-05-10T13:22:59.000Z | app/Repositories/Eloquent/YunHeRenderRepository.php | b9813147/IES3 | 90e400501f65fe0dd2b9480d152f2db5cf1079e5 | [
"MIT"
] | null | null | null | <?php
/**
* Created by PhpStorm.
* User: ares
* Date: 2018/11/27
* Time: 4:02 PM
*/
namespace App\Repositories\Eloquent;
use App\Models\Districts;
use App\Models\DistrictsAllSchool;
use App\Models\SchoolInfo;
use DB;
use Illuminate\Support\Collection;
class YunHeRenderRepository
{
/**
* 學校資訊
* ... | 40.304688 | 154 | 0.408251 |
05c03dbed52b4b0b97e0bdecca69b7c9ceae0b97 | 1,091 | py | Python | Tasker.py | slzKud/SkHelper_Bot | 7d33406ce1a52f31dc9e21fb927517e2a03caa86 | [
"MIT"
] | null | null | null | Tasker.py | slzKud/SkHelper_Bot | 7d33406ce1a52f31dc9e21fb927517e2a03caa86 | [
"MIT"
] | null | null | null | Tasker.py | slzKud/SkHelper_Bot | 7d33406ce1a52f31dc9e21fb927517e2a03caa86 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: UTF-8 -*-
import Tools,config,sys, getopt
if __name__ == "__main__":
if len(sys.argv)<3:
print("error")
exit()
op=sys.argv[1]
task_name=sys.argv[2]
if op=="-t":
if task_name=="say_hello":
Tools.send_to_admin("您好,这是一条测试信息")
eli... | 29.486486 | 65 | 0.55637 |
385d84473a1a6bf770dbffcc2df6558248e1c8ba | 2,050 | php | PHP | app/Services/Core/Oneloan/Rongshidai/RongshidaiService.php | OliverCaiJia/micro_service_api | cbb337b674799a05957880e6e77d6296402391a6 | [
"MIT"
] | null | null | null | app/Services/Core/Oneloan/Rongshidai/RongshidaiService.php | OliverCaiJia/micro_service_api | cbb337b674799a05957880e6e77d6296402391a6 | [
"MIT"
] | 1 | 2019-01-25T11:00:57.000Z | 2020-12-24T02:50:13.000Z | app/Services/Core/Oneloan/Rongshidai/RongshidaiService.php | OliverCaiJia/micro_service_api | cbb337b674799a05957880e6e77d6296402391a6 | [
"MIT"
] | null | null | null | <?php
namespace App\Services\Core\Oneloan\Rongshidai;
use App\Services\AppService;
use App\Helpers\Http\HttpClient;
use App\Services\Core\Oneloan\Rongshidai\RongshidaiConfig\RongshidaiConfig;
use App\Services\Core\Oneloan\Rongshidai\RongshidaiConfig\RsaUtil;
/**
* 融时代对接
*/
class RongshidaiService extends AppServic... | 30.597015 | 93 | 0.485854 |
f4726f1b470eb94ff0e73acceb586ea4da94ad7f | 649 | sql | SQL | airbyte-integrations/bases/base-normalization/integration_tests/normalization_test_output/snowflake/test_nested_streams/models/generated/airbyte_ctes/TEST_NORMALIZATION/UNNEST_ALIAS_CHILDREN_AB2.sql | vagrantism/airbyte | b072a6d7bd6ea0b843ad7e98ff8f98dd3b8aa824 | [
"MIT"
] | 1 | 2022-03-31T18:23:00.000Z | 2022-03-31T18:23:00.000Z | airbyte-integrations/bases/base-normalization/integration_tests/normalization_test_output/snowflake/test_nested_streams/models/generated/airbyte_ctes/TEST_NORMALIZATION/UNNEST_ALIAS_CHILDREN_AB2.sql | vagrantism/airbyte | b072a6d7bd6ea0b843ad7e98ff8f98dd3b8aa824 | [
"MIT"
] | 4 | 2022-01-25T17:48:19.000Z | 2022-03-17T13:06:32.000Z | airbyte-integrations/bases/base-normalization/integration_tests/normalization_test_output/snowflake/test_nested_streams/models/generated/airbyte_ctes/TEST_NORMALIZATION/UNNEST_ALIAS_CHILDREN_AB2.sql | vagrantism/airbyte | b072a6d7bd6ea0b843ad7e98ff8f98dd3b8aa824 | [
"MIT"
] | 2 | 2021-04-28T15:15:37.000Z | 2022-03-28T17:32:15.000Z | {{ config(
cluster_by = ["_AIRBYTE_EMITTED_AT"],
unique_key = env_var('AIRBYTE_DEFAULT_UNIQUE_KEY', '_AIRBYTE_AB_ID'),
schema = "_AIRBYTE_TEST_NORMALIZATION",
tags = [ "nested-intermediate" ]
) }}
-- SQL model to cast each column to its adequate SQL type converted from the JSON schema type
select
_A... | 34.157895 | 93 | 0.713405 |
2f82a0aae935f03ba0bf12846289daf70df25fbf | 414 | js | JavaScript | fake/fakeFS.js | vegardbb/browser-support-spec | 2fe10d980eeaa17985be0bf35583dced1186b919 | [
"MIT"
] | 4 | 2019-10-09T10:14:28.000Z | 2020-01-10T10:15:56.000Z | fake/fakeFS.js | vegardbb/browser-support-spec | 2fe10d980eeaa17985be0bf35583dced1186b919 | [
"MIT"
] | 1 | 2020-07-12T11:43:54.000Z | 2020-07-12T11:43:54.000Z | fake/fakeFS.js | vegardbb/browser-support-spec | 2fe10d980eeaa17985be0bf35583dced1186b919 | [
"MIT"
] | null | null | null | // technically a stub, but we throw in the timer just to simulate I/O
// options is an optional argument
exports.writeFile = function fakeWriteFile(file, data, options, callback) {
let cb = () => true;
if (typeof callback === 'function') {
cb = callback;
}
else if (typeof options === 'function') {
cb = ... | 25.875 | 75 | 0.642512 |
82c26a7cfaa831d3c729e6fec4c527341544354d | 1,001 | kt | Kotlin | app/src/main/java/com/christopherelias/blockchain/di/UtilsModule.kt | ChristopherME/compose-blockchain | 8e7dd621de2cff6f8510b0df9eee0025ad3dc37d | [
"Apache-2.0"
] | 18 | 2021-10-31T18:46:24.000Z | 2022-03-12T10:44:55.000Z | app/src/main/java/com/christopherelias/blockchain/di/UtilsModule.kt | ChristopherME/Blockchain | 8e7dd621de2cff6f8510b0df9eee0025ad3dc37d | [
"Apache-2.0"
] | null | null | null | app/src/main/java/com/christopherelias/blockchain/di/UtilsModule.kt | ChristopherME/Blockchain | 8e7dd621de2cff6f8510b0df9eee0025ad3dc37d | [
"Apache-2.0"
] | 2 | 2021-11-15T10:01:52.000Z | 2022-01-17T18:24:09.000Z | package com.christopherelias.blockchain.di
import com.christopherelias.blockchain.utils.connectivity.ConnectivityUtils
import com.christopherelias.blockchain.utils.resource_provider.ResourceProvider
import com.christopherelias.blockchain.utils_impl.connectivity.ConnectivityUtilsImpl
import com.christopherelias.blockch... | 28.6 | 88 | 0.815185 |
f46b13e2f4fe3382ec58b2e6590f01b05274190c | 1,003 | cs | C# | GitPVP/RiotObjects/Platform/Summoner/Masterybook/TalentEntry.cs | t2hv33/LegendaryClient | 02646de90612a3a8b77048508cc8003fb8a87dd9 | [
"BSD-2-Clause"
] | 1 | 2021-08-02T05:28:26.000Z | 2021-08-02T05:28:26.000Z | GitPVP/RiotObjects/Platform/Summoner/Masterybook/TalentEntry.cs | t2hv33/LegendaryClient | 02646de90612a3a8b77048508cc8003fb8a87dd9 | [
"BSD-2-Clause"
] | null | null | null | GitPVP/RiotObjects/Platform/Summoner/Masterybook/TalentEntry.cs | t2hv33/LegendaryClient | 02646de90612a3a8b77048508cc8003fb8a87dd9 | [
"BSD-2-Clause"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PVPNetConnect.RiotObjects.Platform.Summoner;
namespace PVPNetConnect.RiotObjects.Platform.Summoner.Masterybook
{
public class TalentEntry : RiotGamesObject
{
public override string TypeName
{
get
{
return this.type;
}
}
priva... | 16.716667 | 80 | 0.768694 |
05d91d032bf9a9ba00fcc63e6d950a4745c5b13a | 3,737 | py | Python | utilities/latent_space_utilities.py | jjc2718/netreg | 292540e911cdfbe18ff6fe0f9bfe8e055053d23c | [
"BSD-3-Clause"
] | null | null | null | utilities/latent_space_utilities.py | jjc2718/netreg | 292540e911cdfbe18ff6fe0f9bfe8e055053d23c | [
"BSD-3-Clause"
] | 6 | 2019-07-12T15:52:31.000Z | 2020-01-13T18:14:41.000Z | utilities/latent_space_utilities.py | jjc2718/netreg | 292540e911cdfbe18ff6fe0f9bfe8e055053d23c | [
"BSD-3-Clause"
] | 1 | 2019-07-18T18:28:59.000Z | 2019-07-18T18:28:59.000Z | """
Utilities for processing and comparing latent spaces
"""
import os
import glob
import numpy as np
import pandas as pd
def get_overlap_cols_from_plier(models_dirs):
# this implements approach 1 from 5.analyze_plier_compression.ipynb
genesets = []
for m_dir in models_dirs:
plier_pattern = os.pat... | 45.573171 | 91 | 0.561948 |
1abc7b9e286b74108932c5449db24cff0b016998 | 3,608 | py | Python | src/lib/python/util/retrier.py | chen23/f5-bigip-image-generator | 70c0199ef833bdb1827460b8c12f2800e7808b62 | [
"Apache-2.0"
] | 34 | 2019-08-21T01:28:27.000Z | 2021-10-05T07:21:58.000Z | src/lib/python/util/retrier.py | chen23/f5-bigip-image-generator | 70c0199ef833bdb1827460b8c12f2800e7808b62 | [
"Apache-2.0"
] | 34 | 2019-09-13T10:17:31.000Z | 2022-03-09T00:01:00.000Z | src/lib/python/util/retrier.py | chen23/f5-bigip-image-generator | 70c0199ef833bdb1827460b8c12f2800e7808b62 | [
"Apache-2.0"
] | 16 | 2019-08-21T20:06:17.000Z | 2022-03-25T11:59:00.000Z | #!/usr/bin/env python3
"""retrier module"""
# Copyright (C) 2019 F5 Networks, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | 44 | 100 | 0.659091 |
3951c149406c38c9ba1728a90d3ed08b419f64c5 | 51 | py | Python | rogal/tiles/__init__.py | kosciak/ecs-rogal | d553104e0ea350d11272d274a900419620b9389e | [
"MIT"
] | 4 | 2021-01-23T13:25:46.000Z | 2021-03-19T03:08:05.000Z | rogal/tiles/__init__.py | kosciak/ecs-rogal | d553104e0ea350d11272d274a900419620b9389e | [
"MIT"
] | null | null | null | rogal/tiles/__init__.py | kosciak/ecs-rogal | d553104e0ea350d11272d274a900419620b9389e | [
"MIT"
] | null | null | null | from .core import RenderOrder, Glyph, Colors, Tile
| 25.5 | 50 | 0.784314 |
4401e88e4ee3c5327c58a55d01a6834eb0131d6c | 1,031 | py | Python | alphaVantageAPI/utils.py | twopirllc/alphaVantageAPI | 983228a80ce8ced134c05ef509db8671b40f6f5d | [
"MIT"
] | 78 | 2018-08-06T04:34:03.000Z | 2022-03-14T05:04:40.000Z | alphaVantageAPI/utils.py | twopirllc/alphaVantageAPI | 983228a80ce8ced134c05ef509db8671b40f6f5d | [
"MIT"
] | 4 | 2020-10-04T17:48:56.000Z | 2021-06-15T03:21:58.000Z | alphaVantageAPI/utils.py | twopirllc/alphaVantageAPI | 983228a80ce8ced134c05ef509db8671b40f6f5d | [
"MIT"
] | 20 | 2018-09-03T03:36:01.000Z | 2022-01-05T08:21:03.000Z | # -*- coding: utf-8 -*-
import time
from functools import wraps
from pathlib import Path
from time import perf_counter
def final_time(stime):
time_diff = perf_counter() - stime
return f"{time_diff * 1000:2.4f} ms ({time_diff:2.4f} s)"
def is_home(path:Path): # -> bool
"""Determines if the path is a User ... | 27.131579 | 81 | 0.603298 |
d61a3c20e055e95f23f158f99f65eed5dc6d5cf4 | 63,290 | cs | C# | ambeth/Ambeth.Mapping/ambeth/mapping/ModelTransferMapper.cs | Dennis-Koch/ambeth | 8552b210b8b37d3d8f66bdac2e094bf23c8b5fda | [
"Apache-2.0"
] | null | null | null | ambeth/Ambeth.Mapping/ambeth/mapping/ModelTransferMapper.cs | Dennis-Koch/ambeth | 8552b210b8b37d3d8f66bdac2e094bf23c8b5fda | [
"Apache-2.0"
] | 6 | 2017-04-24T06:55:18.000Z | 2022-01-21T23:15:36.000Z | ambeth/Ambeth.Mapping/ambeth/mapping/ModelTransferMapper.cs | Dennis-Koch/ambeth | 8552b210b8b37d3d8f66bdac2e094bf23c8b5fda | [
"Apache-2.0"
] | 4 | 2018-10-28T14:05:27.000Z | 2022-01-08T12:54:51.000Z | using De.Osthus.Ambeth.Cache;
using De.Osthus.Ambeth.Collections;
using De.Osthus.Ambeth.Config;
using De.Osthus.Ambeth.Exceptions;
using De.Osthus.Ambeth.Filter.Model;
using De.Osthus.Ambeth.Ioc.Annotation;
using De.Osthus.Ambeth.Log;
using De.Osthus.Ambeth.Mapping.Config;
using De.Osthus.Ambeth.Merge;
using De.Osthu... | 47.196122 | 172 | 0.564434 |
dd640feb310a2693b4e66142a78facc275ab0f6f | 423 | java | Java | apps/wemp/bundles/net.wapwag.wemp.dao/src/main/java/net/wapwag/wemp/dao/model/org/WaterManageAuth.java | wpgsh/cloud4water | 70cf873fcae20196707a76e8841b049006bc2314 | [
"Apache-2.0"
] | null | null | null | apps/wemp/bundles/net.wapwag.wemp.dao/src/main/java/net/wapwag/wemp/dao/model/org/WaterManageAuth.java | wpgsh/cloud4water | 70cf873fcae20196707a76e8841b049006bc2314 | [
"Apache-2.0"
] | null | null | null | apps/wemp/bundles/net.wapwag.wemp.dao/src/main/java/net/wapwag/wemp/dao/model/org/WaterManageAuth.java | wpgsh/cloud4water | 70cf873fcae20196707a76e8841b049006bc2314 | [
"Apache-2.0"
] | null | null | null | package net.wapwag.wemp.dao.model.org;
import net.wapwag.wemp.dao.model.ObjectType;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* Water management authority
* Created by Administrator on 2016/10/25 0025.
*/
@Entity
@Table(name = "water_management_auth")
public class WaterManageAuth extend... | 20.142857 | 51 | 0.749409 |
54f82165382866fa1fd459ec0ff268a8ae4de7f2 | 49 | sql | SQL | src/resources/database/checkChatByContact.sql | VirgilSecurity/virgil-messenger-qt | cc29129705c8374580f2d7e76226544093838ca0 | [
"BSD-3-Clause"
] | 6 | 2020-04-24T06:20:18.000Z | 2021-09-30T13:06:12.000Z | src/resources/database/checkChatByContact.sql | VirgilSecurity/virgil-messenger-qt | cc29129705c8374580f2d7e76226544093838ca0 | [
"BSD-3-Clause"
] | 13 | 2020-04-28T08:39:19.000Z | 2021-04-26T08:09:13.000Z | src/resources/database/checkChatByContact.sql | VirgilSecurity/virgil-messenger-qt | cc29129705c8374580f2d7e76226544093838ca0 | [
"BSD-3-Clause"
] | 2 | 2020-04-16T11:57:14.000Z | 2020-09-07T17:34:19.000Z | SELECT 1
FROM chats
WHERE contactId = :contactId
| 12.25 | 28 | 0.795918 |
cdd702ee61a5554493fdcba086a6b054f8d36efd | 452 | cs | C# | PlaygroundProject/Assets/Scripts/_DONT_USE_/Editor/Attributes/HealthSystemInspector.cs | danieldz7/unityDemo | c60014f687d6a7f41e975faa1903be8aa14334fd | [
"MIT"
] | null | null | null | PlaygroundProject/Assets/Scripts/_DONT_USE_/Editor/Attributes/HealthSystemInspector.cs | danieldz7/unityDemo | c60014f687d6a7f41e975faa1903be8aa14334fd | [
"MIT"
] | null | null | null | PlaygroundProject/Assets/Scripts/_DONT_USE_/Editor/Attributes/HealthSystemInspector.cs | danieldz7/unityDemo | c60014f687d6a7f41e975faa1903be8aa14334fd | [
"MIT"
] | null | null | null | using UnityEngine;
using System.Collections;
using UnityEditor;
[CanEditMultipleObjects]
[CustomEditor(typeof(HealthSystemAttribute))]
public class PlayerHealthInspector : BaseInspectorWindow
{
private string explanation = "This scripts allows the Players or other objects to receive damage.";
public override void ... | 23.789474 | 100 | 0.79646 |
b0cb2443cc71f8be4b340f059f8ec2a0c17ed77a | 1,194 | h | C | src/cmainsignals.h | hansendm/DigitalNote-2 | a9da4cf46ffc1ba7d5103787e25b89092f75c803 | [
"MIT"
] | null | null | null | src/cmainsignals.h | hansendm/DigitalNote-2 | a9da4cf46ffc1ba7d5103787e25b89092f75c803 | [
"MIT"
] | null | null | null | src/cmainsignals.h | hansendm/DigitalNote-2 | a9da4cf46ffc1ba7d5103787e25b89092f75c803 | [
"MIT"
] | null | null | null | #ifndef CMAINSIGNALS_H
#define CMAINSIGNALS_H
#include <boost/signals2/signal.hpp>
class CTransaction;
class CBlock;
class uint256;
class CBlockLocator;
struct CMainSignals
{
// Notifies listeners of updated transaction data (passing hash, transaction, and optionally the block it is found in.
bo... | 42.642857 | 123 | 0.737018 |
74d9ad3a299ecd2e0ba1871b0e79ff5f37c8aec1 | 1,097 | css | CSS | src/css/dropdown.css | eb-89/UserInterfaces2021 | af04fb023df0c7da8fc6ee5652528d794418503b | [
"MIT"
] | null | null | null | src/css/dropdown.css | eb-89/UserInterfaces2021 | af04fb023df0c7da8fc6ee5652528d794418503b | [
"MIT"
] | 2 | 2021-02-25T18:16:08.000Z | 2021-03-04T23:25:38.000Z | src/css/dropdown.css | eb-89/UserInterfaces2021 | af04fb023df0c7da8fc6ee5652528d794418503b | [
"MIT"
] | null | null | null | /*
Dropdown menu styling
*/
.dropdown-wrp {
position: relative;
display: inline-block;
}
.dropdown-btn {
background-color: #f1e9cd;
color: #341001;
padding: 0.3em 0.7em;
font-size: 20px;
border: 0.3em double #341001;
transition: all 0.8s;
cursor: pointer;
text-align: center;
... | 17.412698 | 49 | 0.621696 |
44115e0d2224449634b945c062df9862aa55e738 | 588 | lua | Lua | gateway/src/apicast/metrics/3scale_backend_calls.lua | abarrak/APIcast | f018994f1ca447e528636527a31c4683aea9c04e | [
"Apache-2.0"
] | 141 | 2016-10-06T19:15:44.000Z | 2019-03-05T13:27:33.000Z | gateway/src/apicast/metrics/3scale_backend_calls.lua | abarrak/APIcast | f018994f1ca447e528636527a31c4683aea9c04e | [
"Apache-2.0"
] | 494 | 2016-10-03T13:21:16.000Z | 2019-03-14T07:16:18.000Z | gateway/src/apicast/metrics/3scale_backend_calls.lua | abarrak/APIcast | f018994f1ca447e528636527a31c4683aea9c04e | [
"Apache-2.0"
] | 80 | 2019-03-19T08:32:47.000Z | 2022-03-31T02:18:00.000Z | local prometheus = require('apicast.prometheus')
local format = string.format
local _M = {}
local threescale_backend_call = prometheus(
'counter',
'threescale_backend_calls',
"Calls to the 3scale backend",
{ 'endpoint', 'status' }
)
local function label_for_status(status)
if not status or status == '' or ... | 20.275862 | 74 | 0.72449 |
14b9549a888fcef783fe50cae09559963eabdc3e | 3,429 | ts | TypeScript | packages/fx-core/src/plugins/resource/bot/question.ts | thure/TeamsFx | c17f4b049af79dc9386be2e9097ad5cf24a54a08 | [
"MIT"
] | null | null | null | packages/fx-core/src/plugins/resource/bot/question.ts | thure/TeamsFx | c17f4b049af79dc9386be2e9097ad5cf24a54a08 | [
"MIT"
] | null | null | null | packages/fx-core/src/plugins/resource/bot/question.ts | thure/TeamsFx | c17f4b049af79dc9386be2e9097ad5cf24a54a08 | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { MultiSelectQuestion, OptionItem } from "@microsoft/teamsfx-api";
import { getLocalizedString } from "../../../common/localizeUtils";
import { QuestionNames } from "./constants";
import {
HostType,
HostTypes,
NotificationTrigger,
... | 33.950495 | 98 | 0.720327 |
0d33d6a5cf37502ebb4f7a3028f543eef8e87a52 | 12,013 | c | C | src/xyzsh.c | ab25cq/xyzsh | d111269fbd630edf5421580f8618f5967149cd4e | [
"MIT"
] | 39 | 2015-02-23T07:33:25.000Z | 2022-02-07T09:36:09.000Z | src/xyzsh.c | ab25cq/xyzsh | d111269fbd630edf5421580f8618f5967149cd4e | [
"MIT"
] | null | null | null | src/xyzsh.c | ab25cq/xyzsh | d111269fbd630edf5421580f8618f5967149cd4e | [
"MIT"
] | 3 | 2018-04-22T04:33:52.000Z | 2021-12-04T06:32:27.000Z | #include "config.h"
#include "xyzsh.h"
#include <string.h>
#include <stdio.h>
#include <signal.h>
#include <sys/stat.h>
#include <locale.h>
#include <fcntl.h>
sObject* gErrMsg;
volatile BOOL gXyzshSigInt;
volatile BOOL gXyzshSigUser;
volatile BOOL gXyzshSigTstp;
volatile BOOL gXyzshSigCont;
sObject* gDirStack;
void... | 22.538462 | 95 | 0.574128 |
8519630bc125ab7fc348e931a92780515b0b2160 | 5,944 | cs | C# | src/testing/Azos.Tests.Nub/Application/ModuleTests.cs | JohnPKosh/azos | b8cb4c3c43628ce0d5b1df9a1ddd861e0a00d861 | [
"MIT"
] | 183 | 2018-10-19T21:17:58.000Z | 2022-03-25T04:48:25.000Z | src/testing/Azos.Tests.Nub/Application/ModuleTests.cs | JohnPKosh/azos | b8cb4c3c43628ce0d5b1df9a1ddd861e0a00d861 | [
"MIT"
] | 587 | 2018-10-30T02:51:14.000Z | 2022-03-29T09:30:44.000Z | src/testing/Azos.Tests.Nub/Application/ModuleTests.cs | JohnPKosh/azos | b8cb4c3c43628ce0d5b1df9a1ddd861e0a00d861 | [
"MIT"
] | 35 | 2018-10-19T21:17:21.000Z | 2021-12-28T20:27:47.000Z | /*<FILE_LICENSE>
* Azos (A to Z Application Operating System) Framework
* The A to Z Foundation (a.k.a. Azist) licenses this file to you under the MIT license.
* See the LICENSE file in the project root for more information.
</FILE_LICENSE>*/
using Azos.Apps;
using Azos.Conf;
using Azos.Scripting;
namespace Azos.T... | 33.772727 | 119 | 0.675639 |
aa711bbe155f0dd86f1708dc2558e7e39dc0dfff | 210 | rb | Ruby | lib/ext/marc/control_field.rb | cbeer/marc-to-argot | c43f62091ab9c6bb7d92c0bd16b7d35a2c3d2414 | [
"MIT"
] | 15 | 2017-03-09T20:11:24.000Z | 2021-09-28T14:56:46.000Z | lib/ext/marc/control_field.rb | cbeer/marc-to-argot | c43f62091ab9c6bb7d92c0bd16b7d35a2c3d2414 | [
"MIT"
] | 29 | 2017-01-20T03:34:34.000Z | 2019-06-28T14:24:58.000Z | lib/ext/marc/control_field.rb | cbeer/marc-to-argot | c43f62091ab9c6bb7d92c0bd16b7d35a2c3d2414 | [
"MIT"
] | 5 | 2018-10-18T13:13:39.000Z | 2021-12-30T20:16:24.000Z | module MARC
# Extending the Marc ControlField class to add some helpers
class ControlField
def uses_book_configuration_in_006?
true if value.byteslice(0) =~ /[at]/
end
end
end
| 17.5 | 62 | 0.671429 |
7903edf5b65133e31be0e99f122eb4a37325fe2f | 495 | rb | Ruby | app/channels/chat_engine/message_channel.rb | yaseen2211/ChatGem | 0f9a3c527ddd878b48fac68672cc2fb50dec96f1 | [
"MIT"
] | null | null | null | app/channels/chat_engine/message_channel.rb | yaseen2211/ChatGem | 0f9a3c527ddd878b48fac68672cc2fb50dec96f1 | [
"MIT"
] | 1 | 2019-05-15T16:58:10.000Z | 2019-05-15T16:58:10.000Z | app/channels/chat_engine/message_channel.rb | yaseen2211/ChatGem | 0f9a3c527ddd878b48fac68672cc2fb50dec96f1 | [
"MIT"
] | 3 | 2020-02-15T21:27:33.000Z | 2021-08-19T13:19:17.000Z | module ChatEngine
class MessageChannel < ApplicationCable::Channel
def subscribed
stream_from "chat_#{params[:chat_id]}" if params[:chat_id]
stream_from "message_notification_#{params[:user_id]}" if params[:user_id]
# user = params[:user_id].split('_')
# user[0].constantize.find(user[1].to... | 30.9375 | 86 | 0.690909 |
16ea38f782f0e29137b8896407e4d605bc2215ca | 5,176 | swift | Swift | Example/Source/Controllers/HorizontalController/HorizontalController.swift | PandaSystems/ScrollController | c82cac8fd288d1fa9afed1234a5168d4a790dcef | [
"MIT"
] | 408 | 2017-11-14T14:17:16.000Z | 2022-03-29T14:13:07.000Z | Example/Source/Controllers/HorizontalController/HorizontalController.swift | PandaSystems/ScrollController | c82cac8fd288d1fa9afed1234a5168d4a790dcef | [
"MIT"
] | 52 | 2017-10-12T17:27:06.000Z | 2021-11-29T09:51:47.000Z | Example/Source/Controllers/HorizontalController/HorizontalController.swift | PandaSystems/ScrollController | c82cac8fd288d1fa9afed1234a5168d4a790dcef | [
"MIT"
] | 29 | 2017-12-28T13:36:59.000Z | 2022-02-04T19:51:44.000Z | //
// HorizontalController.swift
// SlideController_Example
//
// Created by Evgeny Dedovets on 8/10/17.
// Copyright © 2017 Touchlane LLC. All rights reserved.
//
import UIKit
import SlideController
class HorizontalController {
private let internalView = HorizontalView()
private let slideController: Slid... | 36.450704 | 108 | 0.705371 |
ed5e7ae1fc4b1e6ea7b9d3ccf99f805d68031d36 | 365 | asm | Assembly | oeis/240/A240199.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/240/A240199.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/240/A240199.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A240199: Area under the path specified by n-th composition.
; Submitted by Christian Krause
; 0,1,4,3,9,8,5,6,16,15,12,13,7,8,11,10,25,24,21,22,16,17,20,19,9,10,13,12,18,17,14,15,36,35,32,33,27,28,31,30,20,21,24,23,29,28,25,26,11,12,15,14,20,19,16,17,27,26,23,24,18
seq $0,6068 ; a(n) is Gray-coded into n.
seq $0,197... | 52.142857 | 173 | 0.660274 |
fe401a0466c34160dc62dae53da025c43f73561f | 2,549 | dart | Dart | example/lib/persisted_uri_card.dart | daentech/shared-storage | bb2a44e6069c2b4d3e8dc77a033dc838e61d742b | [
"MIT"
] | null | null | null | example/lib/persisted_uri_card.dart | daentech/shared-storage | bb2a44e6069c2b4d3e8dc77a033dc838e61d742b | [
"MIT"
] | null | null | null | example/lib/persisted_uri_card.dart | daentech/shared-storage | bb2a44e6069c2b4d3e8dc77a033dc838e61d742b | [
"MIT"
] | null | null | null | import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:shared_storage/shared_storage.dart';
import 'package:shared_storage_example/key_value_text.dart';
import 'package:shared_storage_example/list_files.dart';
import 'package:shared_storage_example/simple_card.dart';
class Per... | 28.322222 | 77 | 0.628874 |
9fc9389aa7ff3bd80f250bda8245bd2574102bd0 | 931 | lua | Lua | Tutorial/17.VDoc/.publish/android/VDoc2.lua | kennykwok1/PlaygroundOSS | f75916582c3044bd59e83f86db56cf2703413a85 | [
"Apache-2.0"
] | 1 | 2018-06-13T15:43:42.000Z | 2018-06-13T15:43:42.000Z | Tutorial/17.VDoc/VDoc2.lua | kennykwok1/PlaygroundOSS | f75916582c3044bd59e83f86db56cf2703413a85 | [
"Apache-2.0"
] | null | null | null | Tutorial/17.VDoc/VDoc2.lua | kennykwok1/PlaygroundOSS | f75916582c3044bd59e83f86db56cf2703413a85 | [
"Apache-2.0"
] | null | null | null | function setup()
sysLoad("asset://VDoc.lua")
pVDoc = UI_VirtualDoc( nil, 10000,
0, 0, -- x,y
400, 400, -- doc size
400, 400, -- view size
1000, -- command最大数
... | 28.212121 | 77 | 0.53276 |
52113b9e64fe7613a9ac4a6ea7d904758070a79f | 1,196 | swift | Swift | Sources/App/Routes/SellerLogin.swift | Bnslarry/sab-service | 1a937d7071aa8b4e2727ead1adf5f5e1c490bdae | [
"MIT"
] | 1 | 2019-01-24T07:54:35.000Z | 2019-01-24T07:54:35.000Z | Sources/App/Routes/SellerLogin.swift | Bnslarry/ubuntu-service | c4e069047be8b14edfb8252e03957b59f9dc553f | [
"MIT"
] | null | null | null | Sources/App/Routes/SellerLogin.swift | Bnslarry/ubuntu-service | c4e069047be8b14edfb8252e03957b59f9dc553f | [
"MIT"
] | null | null | null | //
// sellerLogin.swift
// HelloPackageDescription
//
// Created by Lambert Bns on 2018/3/21.
//
import Foundation
import Vapor
extension Droplet {
func SellerLogin() throws {
post("sellerLogin") { req in
var json = JSON()
guard
let phoneNumber = req.data["phoneN... | 27.181818 | 135 | 0.476589 |
4023c166af547f5e5a68202ca06e2100a15ccc5b | 3,525 | rb | Ruby | vendor/jruby/1.9/gems/reek-1.6.5/spec/reek/cli/report_spec.rb | eprislac/guard-yard | bb375780b56cddb7cee4f40357bda6d8a60bb0ea | [
"MIT"
] | null | null | null | vendor/jruby/1.9/gems/reek-1.6.5/spec/reek/cli/report_spec.rb | eprislac/guard-yard | bb375780b56cddb7cee4f40357bda6d8a60bb0ea | [
"MIT"
] | 1 | 2015-04-15T06:16:02.000Z | 2015-04-15T08:12:03.000Z | vendor/ruby/2.0.0/gems/reek-1.6.5/spec/reek/cli/report_spec.rb | eprislac/guard-yard | bb375780b56cddb7cee4f40357bda6d8a60bb0ea | [
"MIT"
] | null | null | null | require 'spec_helper'
require 'reek/examiner'
require 'reek/cli/report/report'
require 'reek/cli/report/formatter'
require 'reek/cli/report/strategy'
require 'rainbow'
require 'stringio'
include Reek
include Reek::Cli
def capture_output_stream
$stdout = StringIO.new
yield
$stdout.string
ensure
$stdout = STDOU... | 26.503759 | 81 | 0.621844 |
3c9625f482eeece05ee9670b4b03352a1a98ca40 | 4,835 | ps1 | PowerShell | sambs-installer-update.ps1 | sambsawsdev/sambs-scoop | a6c18e64530aa40058f90c2b953491ae5a309ab8 | [
"MIT"
] | null | null | null | sambs-installer-update.ps1 | sambsawsdev/sambs-scoop | a6c18e64530aa40058f90c2b953491ae5a309ab8 | [
"MIT"
] | null | null | null | sambs-installer-update.ps1 | sambsawsdev/sambs-scoop | a6c18e64530aa40058f90c2b953491ae5a309ab8 | [
"MIT"
] | null | null | null | Param(
[Parameter(Mandatory=$false, Position=0)]
[string]$branch='develop'
)
class SambsInstaller {
[string]$version = '0.0.0'
[string]$license = 'https://github.com/sambsawsdev/sambs-installer/blob/main/LICENSE'
[string]$extract_dir = 'sambs-installer-main'
[string]$url = 'https://github.com/s... | 42.412281 | 154 | 0.609307 |
252852ebb67725882ec00d1df93b5b9aa6e1f4f3 | 13,079 | css | CSS | dist/flip.css | jplajpla23/Flip | fddbdbfd608f5537bdbffd145c321cbf51c2b98f | [
"MIT"
] | 72 | 2015-07-22T21:32:17.000Z | 2022-03-08T16:10:16.000Z | dist/flip.css | jplajpla23/Flip | fddbdbfd608f5537bdbffd145c321cbf51c2b98f | [
"MIT"
] | 21 | 2015-10-26T23:58:56.000Z | 2020-12-11T02:55:08.000Z | dist/flip.css | jplajpla23/Flip | fddbdbfd608f5537bdbffd145c321cbf51c2b98f | [
"MIT"
] | 7 | 2016-02-19T18:34:45.000Z | 2021-04-05T06:26:04.000Z | /*
* @pqina/tick v1.7.6 - Counters Made Easy
* Copyright (c) 2020 PQINA - https://github.com/pqina/tick/
*/
.tick {
box-sizing: border-box;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: default;
position: relative;
z-index: 1;
li... | 28.871965 | 129 | 0.610521 |
67546cb441310c20748c9eb9d24732a0437fd54b | 114 | kt | Kotlin | 06-abstract-classes-interfaces/src/com/jjh/interfaces/Translator.kt | johnehunt/kotlin-intro | 08bc210974ef9ba8f2f6ac8952548a74ae91f053 | [
"Apache-2.0"
] | 1 | 2020-07-18T11:09:21.000Z | 2020-07-18T11:09:21.000Z | 06-abstract-classes-interfaces/src/com/jjh/interfaces/Translator.kt | johnehunt/kotlin-intro | 08bc210974ef9ba8f2f6ac8952548a74ae91f053 | [
"Apache-2.0"
] | null | null | null | 06-abstract-classes-interfaces/src/com/jjh/interfaces/Translator.kt | johnehunt/kotlin-intro | 08bc210974ef9ba8f2f6ac8952548a74ae91f053 | [
"Apache-2.0"
] | null | null | null | package com.jjh.interfaces
interface Translator {
fun sayHello() {
println("Actor - Bonjour")
}
} | 16.285714 | 34 | 0.631579 |
971928e611c3feab6e2415c7700fc3c24dc704ab | 698 | tsx | TypeScript | src/stories/customize-colors.stories.tsx | alicanerdurmaz/react-two-thumb-input-range | 9f2c643dc5b5dd7df066efa718494ac0e78a9435 | [
"MIT"
] | null | null | null | src/stories/customize-colors.stories.tsx | alicanerdurmaz/react-two-thumb-input-range | 9f2c643dc5b5dd7df066efa718494ac0e78a9435 | [
"MIT"
] | 2 | 2021-03-24T19:46:51.000Z | 2022-01-28T06:55:26.000Z | src/stories/customize-colors.stories.tsx | alicanerdurmaz/react-two-thumb-input-range | 9f2c643dc5b5dd7df066efa718494ac0e78a9435 | [
"MIT"
] | null | null | null | import React, { useState } from "react"
import TwoThumbInputRange from "../components/TwoThumbInputRange"
export default {
title: "Two Thumb Input Range/Customize Colors",
component: "TwoThumbInputRange",
argTypes: {
railColor: { control: "color" },
trackColor: { control: "color" },
thumbColor: { con... | 29.083333 | 103 | 0.670487 |
0faad1e839d257c01b0a75bbcd01a49560fcfe56 | 7,700 | go | Go | plugin/path_role.go | nimbolus/vault-plugin-auth-openstack | 99038f6c749e1c1dd48f9fad958032d102e9af46 | [
"MIT"
] | null | null | null | plugin/path_role.go | nimbolus/vault-plugin-auth-openstack | 99038f6c749e1c1dd48f9fad958032d102e9af46 | [
"MIT"
] | null | null | null | plugin/path_role.go | nimbolus/vault-plugin-auth-openstack | 99038f6c749e1c1dd48f9fad958032d102e9af46 | [
"MIT"
] | null | null | null | package plugin
import (
"context"
"fmt"
"strings"
"time"
"github.com/hashicorp/vault/sdk/framework"
"github.com/hashicorp/vault/sdk/helper/policyutil"
"github.com/hashicorp/vault/sdk/logical"
)
const roleSynopsis = "Register an role with the backend."
const roleDescription = `
A role is required to authentica... | 28.10219 | 247 | 0.692857 |
2d41870b65737e51e49b4e57263fb88f74b097c4 | 478 | dart | Dart | security_monkey/static/packages/$sdk/lib/internal/internal.dart | claytonbrown/security_monkey | e1786e26c1160f5ba1ff293a4f5d31a76394a8fc | [
"Apache-2.0"
] | 1 | 2019-08-13T23:55:47.000Z | 2019-08-13T23:55:47.000Z | security_monkey/static/packages/$sdk/lib/internal/internal.dart | claytonbrown/security_monkey | e1786e26c1160f5ba1ff293a4f5d31a76394a8fc | [
"Apache-2.0"
] | 21 | 2015-05-22T15:21:13.000Z | 2018-03-06T14:19:39.000Z | security_monkey/static/packages/$sdk/lib/internal/internal.dart | claytonbrown/security_monkey | e1786e26c1160f5ba1ff293a4f5d31a76394a8fc | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library dart._internal;
import 'dart:collection';
import 'dart:core' hide Symbol;
import 'dart:core' ... | 25.157895 | 77 | 0.732218 |
9feec2e06b180daf0b13736c95620fc13e2c8a50 | 194 | py | Python | xue/classes/admin.py | team-xue/xue | e6bd9539803a2bf902f48b65a9df86356b5d46b2 | [
"BSD-3-Clause"
] | 1 | 2015-11-23T02:33:07.000Z | 2015-11-23T02:33:07.000Z | xue/classes/admin.py | team-xue/xue | e6bd9539803a2bf902f48b65a9df86356b5d46b2 | [
"BSD-3-Clause"
] | null | null | null | xue/classes/admin.py | team-xue/xue | e6bd9539803a2bf902f48b65a9df86356b5d46b2 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from xue.classes.models import *
from django.contrib import admin
admin.site.register(Major)
admin.site.register(LogicalClass)
# vim:ai:et:ts=4:sw=4:sts=4:fenc=utf-8
| 17.636364 | 38 | 0.721649 |
b017e701989dd8430a526223e7bf37e20e7f6490 | 151 | ps1 | PowerShell | Examples/ImportHtml/DemoGraphics.ps1 | edwardmjackson/ImportExcel | 5629536f155806d1456e00f8165441542bfe164f | [
"Apache-2.0"
] | 1,858 | 2015-03-27T20:07:07.000Z | 2022-03-31T17:05:56.000Z | Examples/ImportHtml/DemoGraphics.ps1 | edwardmjackson/ImportExcel | 5629536f155806d1456e00f8165441542bfe164f | [
"Apache-2.0"
] | 1,071 | 2015-04-01T01:48:57.000Z | 2022-03-31T19:45:08.000Z | Examples/ImportHtml/DemoGraphics.ps1 | edwardmjackson/ImportExcel | 5629536f155806d1456e00f8165441542bfe164f | [
"Apache-2.0"
] | 392 | 2015-03-31T19:45:24.000Z | 2022-03-24T21:33:16.000Z | try {Import-Module $PSScriptRoot\..\..\ImportExcel.psd1} catch {throw ; return}
Import-Html "http://en.wikipedia.org/wiki/Demographics_of_India" 4 | 37.75 | 80 | 0.741722 |
a44ca40bfa268f4b67b767db4d0954a52688722b | 605 | php | PHP | database/seeds/ClassroomsTableSeeder.php | luigi-smilzo/laravel-base-crud | ef5a83cfc1d125617058d076349057271d0c888e | [
"MIT"
] | 1 | 2020-07-14T17:26:07.000Z | 2020-07-14T17:26:07.000Z | database/seeds/ClassroomsTableSeeder.php | luigi-smilzo/laravel-base-crud | ef5a83cfc1d125617058d076349057271d0c888e | [
"MIT"
] | 1 | 2021-02-02T19:40:51.000Z | 2021-02-02T19:40:51.000Z | database/seeds/ClassroomsTableSeeder.php | luigi-smilzo/laravel-base-crud | ef5a83cfc1d125617058d076349057271d0c888e | [
"MIT"
] | null | null | null | <?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Faker\Generator as Faker;
use App\Classroom;
class ClassroomsTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run(Faker $faker)
{
DB::table('classrooms')->... | 20.862069 | 72 | 0.565289 |
3cdc0629903690aeda9ab89ed3ca76df6cb425aa | 3,548 | dart | Dart | example/lib/routes.dart | obadajasm/qlevar_router | 3545e93d28ec81f297ff60fcb593dddd9fdea1d9 | [
"MIT"
] | null | null | null | example/lib/routes.dart | obadajasm/qlevar_router | 3545e93d28ec81f297ff60fcb593dddd9fdea1d9 | [
"MIT"
] | null | null | null | example/lib/routes.dart | obadajasm/qlevar_router | 3545e93d28ec81f297ff60fcb593dddd9fdea1d9 | [
"MIT"
] | null | null | null | import 'dart:ui';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:qlevar_router/qlevar_router.dart';
import 'screens/dashboard.dart';
import 'screens/items.dart';
import 'screens/orders.dart';
import 'screens/store.dart';
import 'screens/tests_screens/multi_component_s... | 31.122807 | 79 | 0.505073 |
e0558176dc265d0e77bb1643450fe31f35a43c4c | 3,053 | c | C | tools-src/gnu/glibc/sysdeps/m68k/fpu/switch/switch.c | enfoTek/tomato.linksys.e2000.nvram-mod | 2ce3a5217def49d6df7348522e2bfda702b56029 | [
"FSFAP"
] | 80 | 2015-01-02T10:14:04.000Z | 2021-06-07T06:29:49.000Z | tools-src/gnu/glibc/sysdeps/m68k/fpu/switch/switch.c | unforgiven512/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 9 | 2015-05-14T11:03:12.000Z | 2018-01-04T07:12:58.000Z | tools-src/gnu/glibc/sysdeps/m68k/fpu/switch/switch.c | unforgiven512/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 69 | 2015-01-02T10:45:56.000Z | 2021-09-06T07:52:13.000Z | /* Copyright (C) 1991, 1992, 1997 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 ... | 34.693182 | 78 | 0.693744 |
434ebcc8d8aca8bf5d82d9b11fd2e79515f1dfcb | 2,047 | ts | TypeScript | types/typeform__embed/index.d.ts | jayden-chan/DefinitelyTyped | 444d0c1530f686080c1ad3364a49a8d84a461d6d | [
"MIT"
] | 2 | 2020-07-31T23:57:42.000Z | 2020-08-01T02:53:11.000Z | types/typeform__embed/index.d.ts | jayden-chan/DefinitelyTyped | 444d0c1530f686080c1ad3364a49a8d84a461d6d | [
"MIT"
] | 7 | 2020-07-28T05:15:39.000Z | 2020-07-29T06:54:38.000Z | types/typeform__embed/index.d.ts | jayden-chan/DefinitelyTyped | 444d0c1530f686080c1ad3364a49a8d84a461d6d | [
"MIT"
] | 1 | 2020-07-31T12:05:25.000Z | 2020-07-31T12:05:25.000Z | // Type definitions for typeform__embed 0.22
// Project: https://github.com/Typeform/embed
// Definitions by: Florian Merz <https://github.com/florianmrz>
// Gabriel Cangussu <https://github.com/gcangussu>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export interface WidgetOptions... | 30.102941 | 93 | 0.632145 |
e2adf16243065648b30e4ff7eb69a129c2038b2f | 380 | js | JavaScript | src/middlewares/multer.js | martuwilliner/grupo-1 | 604e40921a0304dd76c4d9b7e227e32ca22467b9 | [
"CNRI-Python"
] | 1 | 2021-08-02T03:52:36.000Z | 2021-08-02T03:52:36.000Z | src/middlewares/multer.js | martuwilliner/grupo-1 | 604e40921a0304dd76c4d9b7e227e32ca22467b9 | [
"CNRI-Python"
] | null | null | null | src/middlewares/multer.js | martuwilliner/grupo-1 | 604e40921a0304dd76c4d9b7e227e32ca22467b9 | [
"CNRI-Python"
] | null | null | null | const multer = require('multer');
const path = require('path');
module.exports = function (folder) {
const storage = multer.diskStorage({
destination: (req, file, cb) => cb(null,path.resolve(__dirname,'../../public/img',folder)),
filename: (req, file, cb) => cb(null,file.fieldname + Date.now() + pa... | 34.545455 | 107 | 0.642105 |
af127aa2603d27e780beaa9063eacb83031764f0 | 405 | py | Python | python-mundo3/ex104.py | abm-astro/estudos-python | c0dcd71489e528d445efa25d4986bf2fd08f8fe6 | [
"MIT"
] | 1 | 2021-08-15T18:18:43.000Z | 2021-08-15T18:18:43.000Z | python-mundo3/ex104.py | abm-astro/estudos-python | c0dcd71489e528d445efa25d4986bf2fd08f8fe6 | [
"MIT"
] | null | null | null | python-mundo3/ex104.py | abm-astro/estudos-python | c0dcd71489e528d445efa25d4986bf2fd08f8fe6 | [
"MIT"
] | null | null | null | def leiaint(num):
while True:
numero = str(input(num))
if numero.isnumeric() == False:
while numero.isnumeric() == False:
print('\033[1;31mERRO! Digite um número inteiro válido.\033[m')
numero = str(input(num))
return numero
print(15*'--')
n = le... | 28.928571 | 79 | 0.57037 |
a9df199e12c676f48aa4c7f9ba9d7ab978f36990 | 4,789 | php | PHP | src/Zebooka/PD/Assembler.php | zebooka/photos-downloader | 56c94bf8a5718b307b8d1f48bf9f2034d09f50c6 | [
"Unlicense",
"MIT"
] | 1 | 2018-04-25T12:59:28.000Z | 2018-04-25T12:59:28.000Z | src/Zebooka/PD/Assembler.php | zebooka/photos-downloader | 56c94bf8a5718b307b8d1f48bf9f2034d09f50c6 | [
"Unlicense",
"MIT"
] | 5 | 2015-08-19T11:53:12.000Z | 2015-10-02T05:29:46.000Z | src/Zebooka/PD/Assembler.php | zebooka/photos-downloader | 56c94bf8a5718b307b8d1f48bf9f2034d09f50c6 | [
"Unlicense",
"MIT"
] | null | null | null | <?php
namespace Zebooka\PD;
class Assembler
{
private $configure;
private $hashinator;
/**
* @var FileBunch[]
*/
private $simulated = array();
public function __construct(Configure $configure, Hashinator $hashinator)
{
$this->configure = $configure;
$this->hashinato... | 36.557252 | 146 | 0.540405 |
1a9136956272b4df358ce0eef6e16c62f6612b4e | 5,867 | py | Python | Ryu_Application/aclswitch/config_loader.py | Bairdo/ACLSwitch | 27376d201444b214887b7a9a2c8b5df6588925f5 | [
"Apache-2.0"
] | 1 | 2016-12-20T05:55:19.000Z | 2016-12-20T05:55:19.000Z | Ryu_Application/aclswitch/config_loader.py | Bairdo/ACLSwitch-2 | 27376d201444b214887b7a9a2c8b5df6588925f5 | [
"Apache-2.0"
] | null | null | null | Ryu_Application/aclswitch/config_loader.py | Bairdo/ACLSwitch-2 | 27376d201444b214887b7a9a2c8b5df6588925f5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Jarrod N. Bakker
#
# 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 writ... | 38.598684 | 74 | 0.527016 |
c99b344c9c8818f0a13a19a6e6a71063dd9c364c | 427 | ps1 | PowerShell | src/tasks/ToolInstaller/Modules/PowerBI/Scripts/Get-PowerBIDatasetDataSources.ps1 | rexbenny/powerbi-build-tools | 91552c64e45cc4a3872a1e7ba00052bf833e611c | [
"MIT"
] | 9 | 2020-03-11T17:37:02.000Z | 2022-02-24T15:04:07.000Z | src/tasks/ToolInstaller/Modules/PowerBI/Scripts/Get-PowerBIDatasetDataSources.ps1 | rexbenny/powerbi-build-tools | 91552c64e45cc4a3872a1e7ba00052bf833e611c | [
"MIT"
] | 13 | 2020-03-11T03:19:17.000Z | 2022-03-18T12:39:46.000Z | src/tasks/ToolInstaller/Modules/PowerBI/Scripts/Get-PowerBIDatasetDataSources.ps1 | rexbenny/powerbi-build-tools | 91552c64e45cc4a3872a1e7ba00052bf833e611c | [
"MIT"
] | 5 | 2020-07-23T06:39:37.000Z | 2021-12-25T08:28:45.000Z | Function Get-PowerBIDatasetDataSources
{
Param
(
[Parameter(Mandatory = $false)][string]$Group,
[Parameter(Mandatory = $true)][string]$Dataset
)
$GroupId = Get-PowerBIGroup -Group $Group -Id
$DatasetId = Get-PowerBIDataset -Group $GroupId -Dataset $Dataset -Id
$Url = Get-PowerBIUrl -Group $GroupId -Url "... | 26.6875 | 77 | 0.725995 |
38732551d813d57e3a9d08ef037285bbdbad09d0 | 310 | php | PHP | tests/Mocks/MyCustomDatapackage.php | jonrmitchell/datapackage-php | 48e73fc9b9878fa7bb624f5e9dd0173962077fad | [
"MIT"
] | 9 | 2017-04-17T20:18:35.000Z | 2021-07-04T03:26:34.000Z | tests/Mocks/MyCustomDatapackage.php | jonrmitchell/datapackage-php | 48e73fc9b9878fa7bb624f5e9dd0173962077fad | [
"MIT"
] | 53 | 2017-03-23T06:59:47.000Z | 2021-08-29T16:15:24.000Z | tests/Mocks/MyCustomDatapackage.php | jonrmitchell/datapackage-php | 48e73fc9b9878fa7bb624f5e9dd0173962077fad | [
"MIT"
] | 10 | 2017-03-23T06:55:48.000Z | 2021-02-23T16:34:49.000Z | <?php
namespace frictionlessdata\datapackage\tests\Mocks;
use frictionlessdata\datapackage\Datapackages\DefaultDatapackage;
class MyCustomDatapackage extends DefaultDatapackage
{
public static function handlesDescriptor($descriptor)
{
return isset($descriptor->myCustomDatapackage);
}
}
| 22.142857 | 65 | 0.790323 |
aa6f3870a29fb7c36fcea58761f17c44b4f74d1f | 98 | rb | Ruby | web-app/app/controllers/api/base_controller.rb | shapeable/prototype-adpq | f2b16b42a0ac6589cd1eeda8741d8b68400cba8a | [
"PostgreSQL",
"Ruby",
"MIT"
] | null | null | null | web-app/app/controllers/api/base_controller.rb | shapeable/prototype-adpq | f2b16b42a0ac6589cd1eeda8741d8b68400cba8a | [
"PostgreSQL",
"Ruby",
"MIT"
] | 79 | 2017-02-21T02:05:44.000Z | 2017-03-03T21:56:11.000Z | web-app/app/controllers/api/base_controller.rb | shapeable/prototype-adpq | f2b16b42a0ac6589cd1eeda8741d8b68400cba8a | [
"PostgreSQL",
"Ruby",
"MIT"
] | 5 | 2017-03-02T21:24:02.000Z | 2017-03-22T00:17:37.000Z | class Api::BaseController < ApplicationController
include Swagger::Docs::ImpotentMethods
end
| 24.5 | 49 | 0.806122 |
c4b3615457b213dec9d96b0c8eaaf5b4af20be21 | 299 | cpp | C++ | Codeforces Online Judge Solve/dice.cpp | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | Codeforces Online Judge Solve/dice.cpp | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | Codeforces Online Judge Solve/dice.cpp | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define ll long long
int main ()
{
ll m,n,k;
cin>>n;
while(n--)
{
cin>>m;
if(m==2||m==3||m==4||m==5||m==6||m==7) cout<<"1"<<endl;
else
{
k=m/2; cout<<k<<endl;
}
}
}
| 16.611111 | 64 | 0.381271 |
45a88e8ad265240d0c726cd00d432c7e87e9a5a9 | 667 | py | Python | Random Code Jam Solutions/Moist.py | gsidhu/Code_Jam | 990c85c9036a8b5a87b7a59395f0a710303e69b2 | [
"MIT"
] | null | null | null | Random Code Jam Solutions/Moist.py | gsidhu/Code_Jam | 990c85c9036a8b5a87b7a59395f0a710303e69b2 | [
"MIT"
] | null | null | null | Random Code Jam Solutions/Moist.py | gsidhu/Code_Jam | 990c85c9036a8b5a87b7a59395f0a710303e69b2 | [
"MIT"
] | null | null | null | def moist(filename):
import math
file = open(filename)
out = open("output.txt", "w+")
testcases = int(file.readline())
for i in range(0, testcases):
names = []
count = 0
M = int(file.readline())
for j in range(0, M):
names.append(file.readline().... | 30.318182 | 59 | 0.442279 |
ef27d3070405fd88c83a76fe25062ded922c2cb2 | 1,325 | h | C | model/v1_custom_resource_definition_names.h | ityuhui/client-c | 1d30380d7ba0fe9b5e97626e0f7507be4ce8f96d | [
"curl",
"Apache-2.0"
] | null | null | null | model/v1_custom_resource_definition_names.h | ityuhui/client-c | 1d30380d7ba0fe9b5e97626e0f7507be4ce8f96d | [
"curl",
"Apache-2.0"
] | null | null | null | model/v1_custom_resource_definition_names.h | ityuhui/client-c | 1d30380d7ba0fe9b5e97626e0f7507be4ce8f96d | [
"curl",
"Apache-2.0"
] | null | null | null | /*
* v1_custom_resource_definition_names.h
*
* CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition
*/
#ifndef _v1_custom_resource_definition_names_H_
#define _v1_custom_resource_definition_names_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"... | 30.113636 | 137 | 0.813585 |
cc2ac3dda5e976558ce753fc7bc98275f0592c9f | 812 | rb | Ruby | spec/models/hanuman/answer_type_spec.rb | wildnote/hanuman | c72883c0d5afe34a3b3793ca0987680891eb2ad7 | [
"MIT"
] | 4 | 2018-11-14T00:41:33.000Z | 2019-06-22T12:36:25.000Z | spec/models/hanuman/answer_type_spec.rb | wildnote/hanuman | c72883c0d5afe34a3b3793ca0987680891eb2ad7 | [
"MIT"
] | 19 | 2018-12-20T17:14:06.000Z | 2022-02-21T21:40:32.000Z | spec/models/hanuman/answer_type_spec.rb | wildnote/hanuman | c72883c0d5afe34a3b3793ca0987680891eb2ad7 | [
"MIT"
] | 2 | 2018-06-07T08:08:40.000Z | 2020-04-28T09:55:03.000Z | require 'spec_helper'
module Hanuman
RSpec.describe AnswerType, type: :model do
describe 'Validations' do
it 'has a valid factory' do
expect(build(:answer_type)).to be_valid
end
it { is_expected.to validate_presence_of(:name) }
it { is_expected.to validate_uniqueness_of(:name) }
... | 30.074074 | 85 | 0.626847 |
da409c50abeb681664a9beb60a354952fee7cb82 | 1,777 | php | PHP | Framework/Library/Cache/Driver/Predis.php | yumancang/Rosergal | 5e72f727a490f58c011509712181b6e6d148b207 | [
"MIT"
] | 1 | 2020-04-10T08:50:51.000Z | 2020-04-10T08:50:51.000Z | Framework/Library/Cache/Driver/Predis.php | actors315/Rosergal | 6dad5e5655c1f8e2eff13156adce41fb071a22e2 | [
"MIT"
] | 1 | 2019-01-23T12:00:19.000Z | 2019-01-23T12:00:19.000Z | Framework/Library/Cache/Driver/Predis.php | actors315/Rosergal | 6dad5e5655c1f8e2eff13156adce41fb071a22e2 | [
"MIT"
] | 1 | 2019-01-21T08:12:25.000Z | 2019-01-21T08:12:25.000Z | <?php
namespace Twinkle\Library\Cache\Driver;
/**
* Redis - PRedis composer包
* 只做应用层最原始数据的
* JSON或者序列化的操作在调用之前执行
*
* @author yumancang
*
* */
use Twinkle\Library\Cache\CacheAbstract;
class Predis extends CacheAbstract
{
public function __construct(array $config)
{
parent::__construct($config... | 22.782051 | 108 | 0.513225 |
93cbde9cbf7d7d94bd8ec90c172b972cf5a368fd | 1,191 | cs | C# | WTalk.Universal/Model/Message.cs | madagaga/Wtalk | 70f80d5d3053fe81fe07acc2a326ab5d1ef598a6 | [
"MIT"
] | 25 | 2016-01-11T12:39:35.000Z | 2022-02-20T18:31:04.000Z | WTalk.Universal/Model/Message.cs | madagaga/Wtalk | 70f80d5d3053fe81fe07acc2a326ab5d1ef598a6 | [
"MIT"
] | 9 | 2016-05-14T18:33:33.000Z | 2017-03-03T16:33:59.000Z | WTalk.Universal/Model/Message.cs | madagaga/Wtalk | 70f80d5d3053fe81fe07acc2a326ab5d1ef598a6 | [
"MIT"
] | 13 | 2016-01-11T00:58:12.000Z | 2018-05-24T09:08:32.000Z | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WTalk.Core.ProtoJson.Schema;
using WTalk.Core.Utils;
using WTalk.Universal.Observable;
namespace WTalk.Universal.Model
{
public class Message : ObservableObject
{
Event _event;
... | 31.342105 | 142 | 0.674223 |
8c02e032707c61e6425158bd349f20cabdd215ec | 3,661 | cs | C# | src/Http/Http.Results/src/PhysicalFileResult.cs | MCCshreyas/aspnetcore | 132c2315ea435d1c20e00fa6cc80a0dfc548ff4c | [
"MIT"
] | 2 | 2021-12-29T20:06:16.000Z | 2022-03-08T07:29:22.000Z | src/Http/Http.Results/src/PhysicalFileResult.cs | MCCshreyas/aspnetcore | 132c2315ea435d1c20e00fa6cc80a0dfc548ff4c | [
"MIT"
] | 80 | 2021-05-18T01:02:59.000Z | 2022-03-28T10:06:22.000Z | src/Http/Http.Results/src/PhysicalFileResult.cs | stefannikolei/AspNetCore | b55573c8a5195836bfcc77730b80c460588b70b4 | [
"MIT"
] | 1 | 2022-02-20T17:25:32.000Z | 2022-02-20T17:25:32.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Microsoft.AspNetCore.Internal;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace Microsoft.AspNetCore.Http.Result;
/// <summary>
/... | 30.508333 | 99 | 0.611582 |
bb5c9596a2d18c7d3c875cafc9042022f7e1730f | 1,381 | cs | C# | src/ShardingCore/Sharding/Enumerators/StreamMergeSync/StreamMergeEnumerator.cs | zz110/sharding-core | a15a4f61af0c3a0703b3a86427e3d4289de8a833 | [
"Apache-2.0"
] | 1 | 2021-08-25T00:23:35.000Z | 2021-08-25T00:23:35.000Z | src/ShardingCore/Sharding/Enumerators/StreamMergeSync/StreamMergeEnumerator.cs | zz110/sharding-core | a15a4f61af0c3a0703b3a86427e3d4289de8a833 | [
"Apache-2.0"
] | null | null | null | src/ShardingCore/Sharding/Enumerators/StreamMergeSync/StreamMergeEnumerator.cs | zz110/sharding-core | a15a4f61af0c3a0703b3a86427e3d4289de8a833 | [
"Apache-2.0"
] | null | null | null | using System;
using System.Collections;
using System.Collections.Generic;
namespace ShardingCore.Sharding.Enumerators.StreamMergeSync
{
/*
* @Author: xjm
* @Description:
* @Date: Saturday, 14 August 2021 21:25:50
* @Email: 326308290@qq.com
*/
public class StreamMergeEnumerator<T>:IStreamMergeEnumerator<T>
{
... | 21.920635 | 67 | 0.517741 |
34c7794d99e8fdefadcbcdae1314621ab0cc0ace | 11,263 | lua | Lua | translate.lua | arturgontijo/OpenNMT | 3ab15e928a438be119e655dedb8416b1b4d62428 | [
"MIT"
] | 2,573 | 2016-10-25T00:19:15.000Z | 2022-03-29T14:39:52.000Z | translate.lua | arturgontijo/OpenNMT | 3ab15e928a438be119e655dedb8416b1b4d62428 | [
"MIT"
] | 466 | 2016-11-22T16:54:32.000Z | 2021-05-05T16:22:38.000Z | translate.lua | arturgontijo/OpenNMT | 3ab15e928a438be119e655dedb8416b1b4d62428 | [
"MIT"
] | 572 | 2016-11-17T18:31:46.000Z | 2022-03-15T06:18:17.000Z | require('onmt.init')
local tokenizer = require 'tools.utils.tokenizer'
local BPE = require ('tools.utils.BPE')
local cmd = onmt.utils.ExtendedCmdLine.new('translate.lua')
local options = {
{
'-src', '',
[[Source sequences to translate.]],
{
valid = onmt.utils.ExtendedCmdLine.fileExists
}
},
... | 30.773224 | 115 | 0.592027 |
da288e2f3470e56411bb75da19247c62e5c35b20 | 281 | php | PHP | PHP/wxdev/controllers/LoginController.php | originalix/HTML-CSS-Prictice | 8493167e75d1f7bfedcefb192f499765353fbce7 | [
"MIT"
] | 47 | 2018-05-08T11:58:21.000Z | 2021-06-05T13:26:32.000Z | PHP/wxdev/controllers/LoginController.php | PetalsOnaWet/Original | f3867032b94d69cdbaa214f49221446e16173dd6 | [
"MIT"
] | 6 | 2021-01-03T03:06:17.000Z | 2022-03-08T22:41:34.000Z | PHP/wxdev/controllers/LoginController.php | PetalsOnaWet/Original | f3867032b94d69cdbaa214f49221446e16173dd6 | [
"MIT"
] | 48 | 2018-03-19T02:39:06.000Z | 2022-02-23T13:36:14.000Z | <?php
namespace app\controllers;
use Yii;
use yii\web\Controller;
use app\models\AdminUser\AdminUserLogin;
class LoginController extends Controller
{
public function actionIndex()
{
$this->layout = false;
return $this->render('//account/login');
}
}
| 16.529412 | 48 | 0.679715 |
851e9dfe08bd841ba591ec1ed0467660700b4e56 | 658 | cs | C# | DiscordJS v12.2.0/JS/ArrayBuffer.cs | Panthr75/DiscordJS-CSharp | fe82cfa6e96a98ba0d176a0a25ca2b66b3207639 | [
"MIT"
] | 1 | 2020-08-09T01:26:22.000Z | 2020-08-09T01:26:22.000Z | DiscordJS v12.2.0/JS/ArrayBuffer.cs | Panthr75/DiscordJS-CSharp | fe82cfa6e96a98ba0d176a0a25ca2b66b3207639 | [
"MIT"
] | null | null | null | DiscordJS v12.2.0/JS/ArrayBuffer.cs | Panthr75/DiscordJS-CSharp | fe82cfa6e96a98ba0d176a0a25ca2b66b3207639 | [
"MIT"
] | null | null | null | namespace JavaScript
{
public class ArrayBuffer
{
internal int byteLength;
internal int byteOffset;
internal byte[] block;
public static bool IsView(object arg)
{
//
}
public int ByteLength { get; }
public ArrayBuffer Slice(int begi... | 20.5625 | 105 | 0.507599 |
be20bfbe0f428336705fe0a457720a166d2dfa02 | 456 | ts | TypeScript | packages/core/src/components/svg/SvgTheme.ts | reflex-ui/reflex-ui | e64cee3300bea89e8604801f516a50491ee1fc9c | [
"MIT"
] | 8 | 2019-03-11T19:39:07.000Z | 2020-08-26T12:22:07.000Z | packages/core/src/components/svg/SvgTheme.ts | reflex-ui/reflex-ui | e64cee3300bea89e8604801f516a50491ee1fc9c | [
"MIT"
] | 9 | 2019-04-11T18:25:03.000Z | 2022-02-26T10:09:37.000Z | packages/core/src/components/svg/SvgTheme.ts | reflex-ui/reflex-ui | e64cee3300bea89e8604801f516a50491ee1fc9c | [
"MIT"
] | 2 | 2019-03-12T19:45:36.000Z | 2019-04-17T20:26:30.000Z | /**
* Copyright (c) Flavio Silva https://flsilva.com
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { ViewStyle } from 'react-native';
import { SvgProps } from 'react-native-svg';
import { PrimitiveComponentTheme } from '../... | 25.333333 | 69 | 0.739035 |