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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0dbacd7459d5371ceb5bee821333e4ba71be9e4d | 195 | rb | Ruby | components/old_sponsored_benefits/spec/factories/sponsored_benefits_benefit_applications_benefit_application_renewers.rb | ideacrew/opm_enroll | fc7fd7ae75baa6497a55118a9c54b9d9033c72b3 | [
"Unlicense",
"MIT"
] | 5 | 2017-04-07T12:28:47.000Z | 2022-03-23T19:12:19.000Z | components/old_sponsored_benefits/spec/factories/sponsored_benefits_benefit_applications_benefit_application_renewers.rb | ideacrew/opm_enroll | fc7fd7ae75baa6497a55118a9c54b9d9033c72b3 | [
"Unlicense",
"MIT"
] | 386 | 2017-04-07T16:00:48.000Z | 2022-03-31T19:59:53.000Z | components/old_sponsored_benefits/spec/factories/sponsored_benefits_benefit_applications_benefit_application_renewers.rb | ideacrew/opm_enroll | fc7fd7ae75baa6497a55118a9c54b9d9033c72b3 | [
"Unlicense",
"MIT"
] | 6 | 2017-04-07T15:20:18.000Z | 2020-08-14T14:34:19.000Z | FactoryGirl.define do
factory :sponsored_benefits_benefit_applications_benefit_application_renewer, class: 'SponsoredBenefits::BenefitApplications::BenefitApplicationRenewer' do
end
end
| 32.5 | 157 | 0.85641 |
b74bf15f46745c90202343ea77a3026b857f93c9 | 784 | cpp | C++ | Software/app/nixie_state.cpp | gotlaufs/rtu-nixie-clock | 7fe43f13deb8f5314ce19d00fe6623337c0d0df7 | [
"MIT"
] | null | null | null | Software/app/nixie_state.cpp | gotlaufs/rtu-nixie-clock | 7fe43f13deb8f5314ce19d00fe6623337c0d0df7 | [
"MIT"
] | 5 | 2019-02-19T22:23:19.000Z | 2019-02-19T22:27:27.000Z | Software/app/nixie_state.cpp | gotlaufs/rtu-nixie-clock | 7fe43f13deb8f5314ce19d00fe6623337c0d0df7 | [
"MIT"
] | null | null | null | // Nixie state class implementation
#include "nixie_state.h"
NixieState::NixieState(NixieClock & app_) : app(app_)
{
memset(&nixie_data, 0, sizeof(nixie_data_type));
}
void NixieState::writeTimeToNixie()
{
if (sec > 99)
{
// Blank tubes if too big digit
nixie_data.N6 = 10;
nixie_da... | 17.422222 | 53 | 0.512755 |
7cb9a8db907ea979f0d3d0ec736926e262f06dd6 | 594 | swift | Swift | BookRoom/BookView.swift | XcqRomance/BookRoom-complete- | 4e6387fb7c72dc620c51fb6f50a41843b9109521 | [
"MIT"
] | 3 | 2017-08-29T07:56:31.000Z | 2017-11-24T02:07:56.000Z | BookRoom/BookView.swift | XcqRomance/BookRoom-complete- | 4e6387fb7c72dc620c51fb6f50a41843b9109521 | [
"MIT"
] | null | null | null | BookRoom/BookView.swift | XcqRomance/BookRoom-complete- | 4e6387fb7c72dc620c51fb6f50a41843b9109521 | [
"MIT"
] | null | null | null | //
// BookView.swift
// BookRoom
//
// Created by romance on 2017/5/4.
// Copyright © 2017年 romance. All rights reserved.
//
import UIKit
final class BookView: UICollectionView {
override init(frame: CGRect, collectionViewLayout layout: UICollectionViewLayout) {
super.init(frame: frame, collectionViewLay... | 22 | 85 | 0.700337 |
23f74aadb31db09e625a39e76c9045bf7f84cd7c | 900 | js | JavaScript | webapp/routes/api.js | kongchun/mapRoute | 94bcd9145f85104f796c8cb52f46b67369f541a1 | [
"MIT"
] | null | null | null | webapp/routes/api.js | kongchun/mapRoute | 94bcd9145f85104f796c8cb52f46b67369f541a1 | [
"MIT"
] | null | null | null | webapp/routes/api.js | kongchun/mapRoute | 94bcd9145f85104f796c8cb52f46b67369f541a1 | [
"MIT"
] | null | null | null | var express = require('express');
var router = express.Router();
var app = express();
var read = require('../server/read.js');
var write = require('../server/write.js');
/* GET users listing. */
router.get('/', function(req, res, next) {
res.send({
result: false
});
});
router.get('/route', function(req, res, next... | 18.367347 | 57 | 0.611111 |
72abc4885e0d3a2922d51a34be079d6ad33aa653 | 2,660 | cs | C# | parts/0000-TLPLib/Assets/Vendor/TLPLib/Editor/Utils/CodePreprocessor.cs | tinylabproductions/tlplib | 8e54b6ddbd0f4e037e61437142902b357f13679d | [
"MIT"
] | 74 | 2015-01-27T14:49:12.000Z | 2022-01-11T11:16:25.000Z | parts/0000-TLPLib/Assets/Vendor/TLPLib/Editor/Utils/CodePreprocessor.cs | tinylabproductions/tlplib | 8e54b6ddbd0f4e037e61437142902b357f13679d | [
"MIT"
] | 20 | 2016-07-07T11:14:49.000Z | 2021-01-25T08:51:32.000Z | parts/0000-TLPLib/Assets/Vendor/TLPLib/Editor/Utils/CodePreprocessor.cs | tinylabproductions/tlplib | 8e54b6ddbd0f4e037e61437142902b357f13679d | [
"MIT"
] | 18 | 2015-02-27T04:02:43.000Z | 2020-11-13T09:27:30.000Z | using System;
using System.Collections.Immutable;
using System.IO;
using System.Linq;
using com.tinylabproductions.TLPLib.Extensions;
using pzd.lib.exts;
using pzd.lib.functional;
namespace com.tinylabproductions.TLPLib.Editor.Utils {
public static class CodePreprocessor {
public const string PRAG_STR = "#pragm... | 40.923077 | 108 | 0.710526 |
6d2caa6087abf5b900ff7f1912e9c6c3e9e44752 | 738 | ts | TypeScript | web/ts/Symbol.ts | xjpstar/web | fb1bc574f7431131affc9696d5967a65371fdbe4 | [
"Apache-2.0"
] | null | null | null | web/ts/Symbol.ts | xjpstar/web | fb1bc574f7431131affc9696d5967a65371fdbe4 | [
"Apache-2.0"
] | 19 | 2021-10-31T03:17:09.000Z | 2022-03-08T23:37:36.000Z | web/ts/Symbol.ts | xjpstar/web | fb1bc574f7431131affc9696d5967a65371fdbe4 | [
"Apache-2.0"
] | null | null | null | // let sym1 = Symbol();
// Symbol.hasInstance
// 方法,会被instanceof运算符调用。构造器对象用来识别一个对象是否是其实例。
// Symbol.isConcatSpreadable
// 布尔值,表示当在一个对象上调用Array.prototype.concat时,这个对象的数组元素是否可展开。
// Symbol.iterator
// 方法,被for-of语句调用。返回对象的默认迭代器。
// Symbol.match
// 方法,被String.prototype.match调用。正则表达式用来匹配字符串。
// Symbol.replace
// 方法,被S... | 21.705882 | 57 | 0.776423 |
2c470423c4a8650554753ce996f049443bea42d2 | 280 | lua | Lua | scripts/globals/items/scroll_of_enwater.lua | PaulAnthonyReitz/topaz | ffa3a785f86ffdb2f6a5baf9895b649e3e3de006 | [
"FTL"
] | 6 | 2021-06-01T04:17:10.000Z | 2021-06-01T04:32:21.000Z | scripts/globals/items/scroll_of_enwater.lua | PaulAnthonyReitz/topaz | ffa3a785f86ffdb2f6a5baf9895b649e3e3de006 | [
"FTL"
] | 5 | 2020-04-10T19:33:53.000Z | 2021-06-27T17:50:05.000Z | scripts/globals/items/scroll_of_enwater.lua | PaulAnthonyReitz/topaz | ffa3a785f86ffdb2f6a5baf9895b649e3e3de006 | [
"FTL"
] | 2 | 2020-04-11T16:56:14.000Z | 2021-06-26T12:21:12.000Z | -----------------------------------------
-- ID: 4713
-- Scroll of Enwater
-- Teaches the white magic Enwater
-----------------------------------------
function onItemCheck(target)
return target:canLearnSpell(105)
end
function onItemUse(target)
target:addSpell(105)
end
| 20 | 41 | 0.525 |
57cb235e4384a3590da86301b7d6eb59941592e4 | 11,829 | dart | Dart | lib/view/rating/rating_page.dart | Lend-it/Front | b93f53f90cdcd295b4b0664eeee714378bbfe5bb | [
"MIT"
] | 3 | 2021-02-15T00:10:33.000Z | 2021-02-17T12:05:49.000Z | lib/view/rating/rating_page.dart | g1-project/front | b93f53f90cdcd295b4b0664eeee714378bbfe5bb | [
"MIT"
] | 3 | 2021-03-14T22:30:38.000Z | 2021-03-28T01:56:38.000Z | lib/view/rating/rating_page.dart | g1-project/front | b93f53f90cdcd295b4b0664eeee714378bbfe5bb | [
"MIT"
] | null | null | null | import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:front/controller/rating.controller.dart';
import 'package:front/model/rating.model.dart';
import 'package:front/model/session.model.dart';
import 'package:front/theme/colors.dart';
import 'package:front/widgets/button.dart';
... | 39.43 | 95 | 0.346859 |
8340d9c594f1685b5e7e931490fcdfbfb88f50da | 1,486 | ts | TypeScript | openconcertclient/src/app/components/profile/profile.module.ts | didacusAbella/OpenStore | 1b0163ef15e4eed10349f7b99f9e44409b4588d7 | [
"MIT"
] | 1 | 2019-02-01T11:10:32.000Z | 2019-02-01T11:10:32.000Z | openconcertclient/src/app/components/profile/profile.module.ts | didacusAbella/OpenStore | 1b0163ef15e4eed10349f7b99f9e44409b4588d7 | [
"MIT"
] | 1 | 2019-06-06T12:55:06.000Z | 2019-06-06T12:55:06.000Z | openconcertclient/src/app/components/profile/profile.module.ts | didacusAbella/OpenConcert | 1b0163ef15e4eed10349f7b99f9e44409b4588d7 | [
"MIT"
] | null | null | null | import { CommonModule } from "@angular/common";
import { ReactiveFormsModule } from "@angular/forms";
import { RouterModule, Routes } from "@angular/router";
import { NgModule } from '@angular/core';
import { InputTextModule } from 'primeng/inputtext';
import { PasswordModule } from 'primeng/password';
import { ButtonM... | 36.243902 | 83 | 0.74428 |
1acc417503eda8cb36e11f601a96e7e8174b298e | 1,878 | py | Python | async_couch/clients/designs/responses.py | quantori/async-couch | c46ce8da6f058024c95db67151a4498042280206 | [
"MIT"
] | null | null | null | async_couch/clients/designs/responses.py | quantori/async-couch | c46ce8da6f058024c95db67151a4498042280206 | [
"MIT"
] | null | null | null | async_couch/clients/designs/responses.py | quantori/async-couch | c46ce8da6f058024c95db67151a4498042280206 | [
"MIT"
] | null | null | null | import typing
from dataclasses import dataclass
from async_couch.types import EmptyResponse
@dataclass
class SizeObj:
active: int
"""The size of live data inside the view, in bytes"""
external: int
"""The uncompressed size of view contents in bytes"""
file: int
"""Size in bytes of the view ... | 22.902439 | 76 | 0.692758 |
c9bffe0dae3a4e0bb59586f723d6085bf055a484 | 59,087 | ts | TypeScript | packages/pytea/src/frontend/torchFrontend.ts | twstella/PyForensic | 59fdfd05793484e5aa4a96e3d4e0ce5e675369f9 | [
"MIT"
] | null | null | null | packages/pytea/src/frontend/torchFrontend.ts | twstella/PyForensic | 59fdfd05793484e5aa4a96e3d4e0ce5e675369f9 | [
"MIT"
] | null | null | null | packages/pytea/src/frontend/torchFrontend.ts | twstella/PyForensic | 59fdfd05793484e5aa4a96e3d4e0ce5e675369f9 | [
"MIT"
] | null | null | null | /*
* torchValues.ts
* Copyright (c) Seoul National University.
* Licensed under the MIT license.
* Author: Ho Young Jhoo (mersshs@gmail.com)
*
* Python scripts to PyTea internal languages.
*/
import { inspect } from 'util';
import {
ArgumentCategory,
AssertNode,
AssignmentNode,
AugmentedAssignme... | 37.138278 | 135 | 0.53296 |
db7312e98c1a117cdb9fde805eb8785e2dc4a132 | 4,232 | php | PHP | src/SortedMap.php | Ocramius/Ardent | c0220485c8928a7559cdf02f0f00fd8fb428ca60 | [
"MIT"
] | 2 | 2015-11-05T15:53:29.000Z | 2015-12-05T17:33:53.000Z | src/SortedMap.php | Ocramius/Ardent | c0220485c8928a7559cdf02f0f00fd8fb428ca60 | [
"MIT"
] | null | null | null | src/SortedMap.php | Ocramius/Ardent | c0220485c8928a7559cdf02f0f00fd8fb428ca60 | [
"MIT"
] | null | null | null | <?php
namespace Collections;
class SortedMap implements Map {
use IteratorCollection;
/**
* @var SplayTree
*/
private $avl;
/**
* @var callable
*/
private $comparator;
function __construct($comparator = null) {
$this->comparator = $comparator ?: '\Collections\c... | 20.248804 | 81 | 0.518667 |
25bb82dd249da2575672c066327138e311455f73 | 2,367 | rs | Rust | src/day8.rs | stevejb71/rust-advent-of-code-2021 | dab1cdd71067ba4f71ba53b823cb50030ea46829 | [
"Unlicense"
] | null | null | null | src/day8.rs | stevejb71/rust-advent-of-code-2021 | dab1cdd71067ba4f71ba53b823cb50030ea46829 | [
"Unlicense"
] | null | null | null | src/day8.rs | stevejb71/rust-advent-of-code-2021 | dab1cdd71067ba4f71ba53b823cb50030ea46829 | [
"Unlicense"
] | null | null | null | use crate::common::*;
pub fn run(part: u8) -> u64 {
let input_lines = include_str!("../inputs/day8.txt");
run_part(part, input_lines, vec_of_str, part1, part2)
}
#[derive(Debug)]
struct Entry {
signals: Vec<String>,
outputs: Vec<String>,
}
pub fn part1(entries: &Vec<&str>) -> u64 {
let entries = entries.it... | 25.180851 | 106 | 0.517533 |
e23f3867fa3b1af2d848bc3403aa47f39bb94a4b | 1,071 | py | Python | baekjoon/python/order_of_matrix_multiple_11049.py | yskang/AlgorithmPractice | 31b76e38b4c2f1e3e29fb029587662a745437912 | [
"MIT"
] | null | null | null | baekjoon/python/order_of_matrix_multiple_11049.py | yskang/AlgorithmPractice | 31b76e38b4c2f1e3e29fb029587662a745437912 | [
"MIT"
] | 1 | 2019-11-04T06:44:04.000Z | 2019-11-04T06:46:55.000Z | baekjoon/python/order_of_matrix_multiple_11049.py | yskang/AlgorithmPractice | 31b76e38b4c2f1e3e29fb029587662a745437912 | [
"MIT"
] | null | null | null | # Title: 행렬 곱셈 순서
# Link: https://www.acmicpc.net/problem/11049
import sys
sys.setrecursionlimit(10 ** 6)
read_single_int = lambda: int(sys.stdin.readline().strip())
read_list_int = lambda: list(map(int, sys.stdin.readline().strip().split(' ')))
def get_min_times(start: int, end: int, matrixs: list, dp: list):
... | 24.340909 | 167 | 0.625584 |
3926fad534452c8776a5bd86f992d01970a1cc22 | 222 | py | Python | run.py | phamvanhanh6720/Face-Recognition | cc6dd6324334e26be1dd2b024f4bb2297c313dea | [
"MIT"
] | 8 | 2021-11-02T04:37:18.000Z | 2022-02-09T03:06:50.000Z | run.py | phamvanhanh6720/Face-Recognition | cc6dd6324334e26be1dd2b024f4bb2297c313dea | [
"MIT"
] | 1 | 2021-08-16T09:42:03.000Z | 2021-08-18T12:47:29.000Z | run.py | phamvanhanh6720/Face-Recognition | cc6dd6324334e26be1dd2b024f4bb2297c313dea | [
"MIT"
] | null | null | null | from face_recognition import main
import asyncio
if __name__ == '__main__':
futures = [main(cam_device=0, input_size=(480, 640))]
loop = asyncio.get_event_loop()
loop.run_until_complete(asyncio.wait(futures))
| 27.75 | 57 | 0.738739 |
4bb42b810567dbe097568b23e35fd8026be52179 | 332 | hpp | C++ | dynamic/wrappers/cell_based/AbstractCellPopulationBoundaryCondition3_3.cppwg.hpp | jmsgrogan/PyChaste | 48a9863d2c941c71e47ecb72e917b477ba5c1413 | [
"FTL"
] | 6 | 2017-02-04T16:10:53.000Z | 2021-07-01T08:03:16.000Z | dynamic/wrappers/cell_based/AbstractCellPopulationBoundaryCondition3_3.cppwg.hpp | jmsgrogan/PyChaste | 48a9863d2c941c71e47ecb72e917b477ba5c1413 | [
"FTL"
] | 6 | 2017-06-22T08:50:41.000Z | 2019-12-15T20:17:29.000Z | dynamic/wrappers/cell_based/AbstractCellPopulationBoundaryCondition3_3.cppwg.hpp | jmsgrogan/PyChaste | 48a9863d2c941c71e47ecb72e917b477ba5c1413 | [
"FTL"
] | 3 | 2017-05-15T21:33:58.000Z | 2019-10-27T21:43:07.000Z | #ifndef AbstractCellPopulationBoundaryCondition3_3_hpp__pyplusplus_wrapper
#define AbstractCellPopulationBoundaryCondition3_3_hpp__pyplusplus_wrapper
namespace py = pybind11;
void register_AbstractCellPopulationBoundaryCondition3_3_class(py::module &m);
#endif // AbstractCellPopulationBoundaryCondition3_3_hpp__pyplusp... | 47.428571 | 78 | 0.915663 |
71ca70407b1b4903c07d5cac8c731d030e517167 | 12,728 | rs | Rust | pyrite/src/renderer/bidirectional.rs | Ogeon/pyrite | 930dea014943620e11ad932229b9917e59a44673 | [
"Apache-2.0",
"MIT"
] | 4 | 2016-08-27T22:14:58.000Z | 2020-07-30T09:17:16.000Z | pyrite/src/renderer/bidirectional.rs | Ogeon/pyrite | 930dea014943620e11ad932229b9917e59a44673 | [
"Apache-2.0",
"MIT"
] | 1 | 2020-06-07T08:36:02.000Z | 2020-07-12T12:35:42.000Z | pyrite/src/renderer/bidirectional.rs | Ogeon/pyrite | 930dea014943620e11ad932229b9917e59a44673 | [
"Apache-2.0",
"MIT"
] | 1 | 2020-07-30T09:17:18.000Z | 2020-07-30T09:17:18.000Z | use rand::{self, Rng, SeedableRng};
use rand_xorshift::XorShiftRng;
use cgmath::{EuclideanSpace, InnerSpace, Point2, Vector3};
use collision::Ray3;
use super::{
algorithm::{contribute, make_tiles, Tile},
LocalProgress, Progress, Renderer, TaskRunner,
};
use crate::cameras::Camera;
use crate::film::{Film, Samp... | 31.899749 | 99 | 0.489629 |
be6f051da7df0fe8fc9227cc9d5431209563a4ac | 86 | sql | SQL | db/migrations/133_migrate_pushed_value_to_project_status.up.sql | epmd-edp/admin-console | fe389bccf95f5cb48f0d5e11c50eb5f560b37311 | [
"Apache-2.0"
] | 3 | 2019-12-14T14:53:20.000Z | 2021-05-06T17:25:25.000Z | db/migrations/133_migrate_pushed_value_to_project_status.up.sql | epam/edp-admin-console | 33e9d7518f6a24ddea16e2df7f0fcac41a27dd17 | [
"Apache-2.0"
] | null | null | null | db/migrations/133_migrate_pushed_value_to_project_status.up.sql | epam/edp-admin-console | 33e9d7518f6a24ddea16e2df7f0fcac41a27dd17 | [
"Apache-2.0"
] | 4 | 2021-03-12T11:58:18.000Z | 2022-02-21T11:51:29.000Z | update codebase
set project_status = 'templates_pushed'
where project_status = 'true'; | 28.666667 | 39 | 0.813953 |
9f01535f99fc9083ad04b17af71c602181a1eeea | 483 | kt | Kotlin | buildSrc/src/main/kotlin/Dependencies.kt | rickclephas/KMP-NativeCoroutines | 45bb98fc6cd405e442942e5c20878896d67fb6e4 | [
"MIT"
] | 264 | 2021-06-13T20:41:13.000Z | 2022-03-30T20:55:25.000Z | buildSrc/src/main/kotlin/Dependencies.kt | rickclephas/KMP-NativeCoroutines | 45bb98fc6cd405e442942e5c20878896d67fb6e4 | [
"MIT"
] | 40 | 2021-06-18T14:00:35.000Z | 2022-03-30T21:43:14.000Z | buildSrc/src/main/kotlin/Dependencies.kt | rickclephas/KMP-NativeCoroutines | 45bb98fc6cd405e442942e5c20878896d67fb6e4 | [
"MIT"
] | 14 | 2021-07-16T23:44:20.000Z | 2022-03-28T09:28:04.000Z | object Dependencies {
object Kotlin {
private const val version = "1.6.10"
const val gradlePlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$version"
const val compiler = "org.jetbrains.kotlin:kotlin-compiler:$version"
const val embeddableCompiler = "org.jetbrains.kotlin:kotlin-c... | 37.153846 | 98 | 0.693582 |
2cfe6152d781ead5b251bb4a0c32fc277b8a1c1b | 965 | cpp | C++ | oli/vii2018puzzle/main.cpp | rockoanna/nirvana | 81fadbe66b0a24244feec312c6f7fe5c8effccaa | [
"MIT"
] | null | null | null | oli/vii2018puzzle/main.cpp | rockoanna/nirvana | 81fadbe66b0a24244feec312c6f7fe5c8effccaa | [
"MIT"
] | 12 | 2019-09-04T10:38:24.000Z | 2019-12-08T18:09:41.000Z | oli/vii2018puzzle/main.cpp | rockoanna/nirvana | 81fadbe66b0a24244feec312c6f7fe5c8effccaa | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int main()
{
int n;
cin >> n;
vector<int> pieces(n);
for(int i = 0; i < n; i++)
{
cin >> pieces[i];
}
int res = 0;
for(int i = 0; i < n - 1; i++)
{
for(int j = i + 1; j < n; j++)
{
bo... | 16.929825 | 44 | 0.288083 |
ec89bec00a58efa62bd4b9185c089dd96be9dbd2 | 412 | kt | Kotlin | src/main/kotlin/com/bajdcc/util/lexer/automata/dfa/DFAEdgeData.kt | bajdcc/jInterpreter | 90b19af98da99b53bba5b3269ad5666df7c05e49 | [
"MIT"
] | 71 | 2015-09-29T13:12:11.000Z | 2022-01-11T16:20:11.000Z | src/main/kotlin/com/bajdcc/util/lexer/automata/dfa/DFAEdgeData.kt | bajdcc/jInterpreter | 90b19af98da99b53bba5b3269ad5666df7c05e49 | [
"MIT"
] | 1 | 2017-04-23T12:13:41.000Z | 2017-05-09T14:37:24.000Z | src/main/kotlin/com/bajdcc/util/lexer/automata/dfa/DFAEdgeData.kt | bajdcc/jInterpreter | 90b19af98da99b53bba5b3269ad5666df7c05e49 | [
"MIT"
] | 20 | 2017-03-28T18:05:20.000Z | 2021-06-12T08:40:10.000Z | package com.bajdcc.util.lexer.automata.dfa
import com.bajdcc.util.lexer.automata.EdgeType
import com.bajdcc.util.lexer.automata.nfa.NFAEdge
/**
* DFA边数据
* [type] 边类型
* [param] 数据
* [nfaEdges] NFA边集合
* @author bajdcc
*/
data class DFAEdgeData (var type: EdgeType = EdgeType.EPSILON,
var pa... | 27.466667 | 77 | 0.650485 |
84e7bfcd51fcb7516078279efafc5640517f60a5 | 3,759 | cs | C# | ShoppingAgain/Controllers/UserController.cs | Moosemorals/ShoppingAgain | ed2a294fd76dc25d29443c306f94788c0bd024a8 | [
"0BSD"
] | null | null | null | ShoppingAgain/Controllers/UserController.cs | Moosemorals/ShoppingAgain | ed2a294fd76dc25d29443c306f94788c0bd024a8 | [
"0BSD"
] | null | null | null | ShoppingAgain/Controllers/UserController.cs | Moosemorals/ShoppingAgain | ed2a294fd76dc25d29443c306f94788c0bd024a8 | [
"0BSD"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using ShoppingAgain.Classes;
using ShoppingAgain.Database;
using ShoppingAgain.Models;
using ShoppingAgain.ViewModels;
namespace ShoppingAgain.Cont... | 29.833333 | 121 | 0.510242 |
e025054105a965b8005fb35aed626b66fbc4631d | 87 | h | C | src/apps/PreferencesWindow/PreferencesWindow/ProfilesTableView.h | rolandwalker/Karabiner-Elements | 3a537d3dd7a47100baf95bb3477e897a6e59bee8 | [
"Unlicense"
] | 1 | 2021-11-09T10:28:50.000Z | 2021-11-09T10:28:50.000Z | src/apps/PreferencesWindow/PreferencesWindow/ProfilesTableView.h | rolandwalker/Karabiner-Elements | 3a537d3dd7a47100baf95bb3477e897a6e59bee8 | [
"Unlicense"
] | null | null | null | src/apps/PreferencesWindow/PreferencesWindow/ProfilesTableView.h | rolandwalker/Karabiner-Elements | 3a537d3dd7a47100baf95bb3477e897a6e59bee8 | [
"Unlicense"
] | null | null | null | // -*- Mode: objc -*-
@import Cocoa;
@interface ProfilesTableView : NSTableView
@end
| 12.428571 | 42 | 0.678161 |
c67f08152198fef1bd8afd69e1913c284dd0a310 | 5,624 | css | CSS | src/main/webapp/resources/backend/css/src/main.css | jianmakeji/yxyp | 3d56d787ffe9926f83832954f5e718e640f59341 | [
"MIT"
] | 1 | 2019-02-14T01:18:57.000Z | 2019-02-14T01:18:57.000Z | src/main/webapp/resources/backend/css/src/main.css | jianmakeji/yxyp | 3d56d787ffe9926f83832954f5e718e640f59341 | [
"MIT"
] | 5 | 2020-05-15T21:06:24.000Z | 2021-12-09T20:40:01.000Z | src/main/webapp/resources/backend/css/src/main.css | jianmakeji/yxyp | 3d56d787ffe9926f83832954f5e718e640f59341 | [
"MIT"
] | null | null | null | [v-cloak] {
display: none;
}
ivu-modal-header-inner{
text-align: center;
color: #ed3f14;
}
html{
height: 100%;
width:100%;
}
body{
margin: 0px;
padding:0px;
height: 100%;
position: relative;
font-family: "Arail","Microsoft YaHei","Heiti";
background: #efefef!important;
}
ul{
p... | 16.78806 | 79 | 0.614154 |
434dc07600dff9b1e3e5b572ee82967ad55a3d3b | 416 | ts | TypeScript | src/app/components/progress-bar/progress-bar.component.ts | tenuj/angular2-homework-2 | 65b97cd2057464fbf2708fd053058c260a65c0b4 | [
"MIT"
] | null | null | null | src/app/components/progress-bar/progress-bar.component.ts | tenuj/angular2-homework-2 | 65b97cd2057464fbf2708fd053058c260a65c0b4 | [
"MIT"
] | null | null | null | src/app/components/progress-bar/progress-bar.component.ts | tenuj/angular2-homework-2 | 65b97cd2057464fbf2708fd053058c260a65c0b4 | [
"MIT"
] | null | null | null | /**
* This code has been written by Denis Shavenzov
* If you have any questions or notices you can contact me by email shavenzov@gmail.com
*/
import { Component, Input } from '@angular/core';
@Component({
selector: 'progress-bar',
templateUrl: './progress-bar.component.html',
styleUrls: ['./progress-bar.comp... | 20.8 | 87 | 0.706731 |
cf03a19dd3845a85a2ec4bd39c453b950b8efc5d | 2,584 | php | PHP | app/Http/Controllers/Store/CustomerController.php | javzero/nolita | e9357426e6d9b7691314b23b0035edc79a0fff4b | [
"MIT"
] | null | null | null | app/Http/Controllers/Store/CustomerController.php | javzero/nolita | e9357426e6d9b7691314b23b0035edc79a0fff4b | [
"MIT"
] | 4 | 2021-01-05T04:37:42.000Z | 2021-09-09T22:19:49.000Z | app/Http/Controllers/Store/CustomerController.php | javzero/nolita | e9357426e6d9b7691314b23b0035edc79a0fff4b | [
"MIT"
] | null | null | null | <?php
namespace App\Http\Controllers\Store;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Customer;
class CustomerController extends Controller
{
public function update(Request $request)
{
// dd($request->all());
$customer = Customer::findOrFail(auth()->guard('cust... | 33.128205 | 97 | 0.531347 |
6dd6d862e55f650038d8a74715cf3b0779ea19ea | 4,837 | c | C | EKF/matlab/scripts/Inertial Nav EKF/K_VELX.c | fx815/EKF | ac33a6500d6cedd441758cae2f9aa7192f0f2a87 | [
"BSD-3-Clause"
] | 15 | 2017-07-21T07:26:56.000Z | 2022-01-11T17:51:02.000Z | EKF/matlab/scripts/Inertial Nav EKF/K_VELX.c | fx815/EKF | ac33a6500d6cedd441758cae2f9aa7192f0f2a87 | [
"BSD-3-Clause"
] | 6 | 2020-05-24T06:53:13.000Z | 2020-11-22T15:41:04.000Z | EKF/matlab/scripts/Inertial Nav EKF/K_VELX.c | fx815/EKF | ac33a6500d6cedd441758cae2f9aa7192f0f2a87 | [
"BSD-3-Clause"
] | 11 | 2017-01-17T07:53:17.000Z | 2020-01-08T04:19:24.000Z | float t2 = q0*q3*2.0f;
float t3 = q1*q2*2.0f;
float t4 = t2+t3;
float t5 = q0*q0;
float t6 = q1*q1;
float t7 = q2*q2;
float t8 = q3*q3;
float t9 = t5+t6-t7-t8;
float t10 = q0*q2*2.0f;
float t25 = q1*q3*2.0f;
float t11 = t10-t25;
float t12 = q3*ve*2.0f;
float t13 = q0*vn*2.0f;
float t26 = q2*vd*2.0f;
float t14 = t12+t13... | 41.34188 | 109 | 0.563572 |
b088e3d6ca12d2d57e5fea723a2db90996f8cf08 | 474 | py | Python | packages/micropython-official/v1.9.4/esp32/stubs/micropython.py | TheVinhLuong102/micropy-stubs | 55ff1773008f7c4dfc3d70a403986486226eb6b3 | [
"MIT"
] | 18 | 2019-07-11T13:31:09.000Z | 2022-01-27T06:38:40.000Z | packages/micropython-official/v1.9.4/esp32/stubs/micropython.py | TheVinhLuong102/micropy-stubs | 55ff1773008f7c4dfc3d70a403986486226eb6b3 | [
"MIT"
] | 9 | 2019-09-01T21:44:49.000Z | 2022-02-04T20:55:08.000Z | packages/micropython-official/v1.9.4/esp32/stubs/micropython.py | TheVinhLuong102/micropy-stubs | 55ff1773008f7c4dfc3d70a403986486226eb6b3 | [
"MIT"
] | 6 | 2019-10-08T05:31:21.000Z | 2021-04-22T10:21:01.000Z | """
Module: 'micropython' on esp32 1.9.4
"""
# MCU: (sysname='esp32', nodename='esp32', release='1.9.4', version='v1.9.4 on 2018-05-11', machine='ESP32 module with ESP32')
# Stubber: 1.2.0
def alloc_emergency_exception_buf():
pass
def const():
pass
def heap_lock():
pass
def heap_unlock():
pass
def k... | 13.166667 | 126 | 0.628692 |
ef6ed6be85b069f442e80b2eef3b56915187e77c | 1,754 | h | C | include/drivers/nxp/dcfg/scfg.h | Nuvoton-Israel/arm-trusted-firmware | 469101d48a1b0cb6c93ea5fe3bd3b32b46bd047e | [
"MIT"
] | 1,408 | 2015-01-26T17:15:15.000Z | 2022-03-31T12:54:11.000Z | include/drivers/nxp/dcfg/scfg.h | Nuvoton-Israel/arm-trusted-firmware | 469101d48a1b0cb6c93ea5fe3bd3b32b46bd047e | [
"MIT"
] | 1,177 | 2015-01-07T12:55:46.000Z | 2022-01-19T10:49:12.000Z | include/drivers/nxp/dcfg/scfg.h | Nuvoton-Israel/arm-trusted-firmware | 469101d48a1b0cb6c93ea5fe3bd3b32b46bd047e | [
"MIT"
] | 959 | 2015-01-08T09:12:45.000Z | 2022-03-28T03:07:50.000Z | /*
* Copyright 2020-2021 NXP
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#ifndef SCFG_H
#define SCFG_H
#ifdef CONFIG_CHASSIS_2
/* SCFG register offsets */
#define SCFG_CORE0_SFT_RST_OFFSET 0x0130
#define SCFG_SNPCNFGCR_OFFSET 0x01A4
#define SCFG_CORESRENCR_OFFSET 0x0204
#define SCFG_RVBAR0_0_OFFSET 0x0220... | 29.233333 | 66 | 0.775941 |
f4d174b6239f0f8bda8343cd1e4c3fdc2707cccd | 865 | ts | TypeScript | src/general/general.class.ts | HitSystems/sanPedro | 5ae80bdbcc44f13e721d8dd766afca995bc59f3d | [
"MIT"
] | null | null | null | src/general/general.class.ts | HitSystems/sanPedro | 5ae80bdbcc44f13e721d8dd766afca995bc59f3d | [
"MIT"
] | null | null | null | src/general/general.class.ts | HitSystems/sanPedro | 5ae80bdbcc44f13e721d8dd766afca995bc59f3d | [
"MIT"
] | null | null | null | import { IResult } from 'mssql';
import { recHit } from '../conexion/mssql';
export class General {
/* Transforma el codigo de licencia en el codigo de tienda.
Normalmente es el mismo, pero por si acaso lo comprueba en ParamsHw */
getCodigoTiendaFromLicencia(database: string, licencia: number): Promise<boo... | 36.041667 | 134 | 0.566474 |
440f39c8c7a7476c6895bf8540ec7700963c4bb4 | 1,701 | py | Python | remove_worms.py | AbigailMcGovern/platelet-segmentation | 46cd87b81fc44473b07a2bebed1e6134b2582348 | [
"BSD-3-Clause"
] | 1 | 2022-02-01T23:40:38.000Z | 2022-02-01T23:40:38.000Z | remove_worms.py | AbigailMcGovern/platelet-segmentation | 46cd87b81fc44473b07a2bebed1e6134b2582348 | [
"BSD-3-Clause"
] | 3 | 2021-03-12T02:03:15.000Z | 2021-03-31T00:39:05.000Z | remove_worms.py | AbigailMcGovern/platelet-segmentation | 46cd87b81fc44473b07a2bebed1e6134b2582348 | [
"BSD-3-Clause"
] | 1 | 2021-04-06T23:23:32.000Z | 2021-04-06T23:23:32.000Z | # script to remove worms
import numpy as np
from scipy.ndimage.measurements import label
from skimage.measure import regionprops_table
import zarr
import os
from pathlib import Path
from segmentation_pipeline import add_elongation
import pandas as pd
def get_labs_less_than(df, lab_col='label', cond_col='elongation', ... | 29.842105 | 121 | 0.646091 |
7ab61e4b2a91504bafded1c37b1116e72cf167f2 | 7,030 | cs | C# | osu!stream/GameplayElements/Scoring/Score.cs | DJPopsicle/osu-stream | 7dfa5bc238f0e3b88f8b076707d268a77355554e | [
"MIT"
] | 146 | 2019-05-03T06:40:27.000Z | 2022-03-26T22:57:24.000Z | osu!stream/GameplayElements/Scoring/Score.cs | DJPopsicle/osu-stream | 7dfa5bc238f0e3b88f8b076707d268a77355554e | [
"MIT"
] | 36 | 2019-05-03T08:08:24.000Z | 2022-01-29T11:20:26.000Z | osu!stream/GameplayElements/Scoring/Score.cs | DJPopsicle/osu-stream | 7dfa5bc238f0e3b88f8b076707d268a77355554e | [
"MIT"
] | 43 | 2019-05-27T13:27:24.000Z | 2022-02-08T13:22:54.000Z | using System;
using osum.Graphics;
using osum.Helpers;
namespace osum.GameplayElements.Scoring
{
public class Score : bSerializable
{
public string Username;
public int Id;
public ushort count100;
public ushort count300;
public ushort count50;
pub... | 32.396313 | 133 | 0.444808 |
7c06f6e657e0027ffe8670a8e1b8e1eeb88b15c4 | 2,988 | py | Python | tools/cmakeformat.py | TaoweiZhang/MegEngine | bd3c4a05274f69dacca6097d8cbadbb34c7cc2e4 | [
"Apache-2.0"
] | 1 | 2022-03-21T03:13:45.000Z | 2022-03-21T03:13:45.000Z | tools/cmakeformat.py | TaoweiZhang/MegEngine | bd3c4a05274f69dacca6097d8cbadbb34c7cc2e4 | [
"Apache-2.0"
] | null | null | null | tools/cmakeformat.py | TaoweiZhang/MegEngine | bd3c4a05274f69dacca6097d8cbadbb34c7cc2e4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS"... | 32.835165 | 88 | 0.590027 |
4cf64b7b4fad45afa67724748c2d35bf98eb3d5c | 231 | py | Python | htsinfer/infer_read_orientation.py | dcpb0/htsinfer | 426f34186917020815298999bd93ea23229d9d1b | [
"Apache-2.0"
] | null | null | null | htsinfer/infer_read_orientation.py | dcpb0/htsinfer | 426f34186917020815298999bd93ea23229d9d1b | [
"Apache-2.0"
] | null | null | null | htsinfer/infer_read_orientation.py | dcpb0/htsinfer | 426f34186917020815298999bd93ea23229d9d1b | [
"Apache-2.0"
] | null | null | null | """Infer read orientation from sample data."""
def infer():
"""Main function coordinating the execution of all other functions.
Should be imported/called from main app and return results to it.
"""
# implement me
| 25.666667 | 71 | 0.69697 |
4b5291e14bb7f110080ed9c1ea979456375028cf | 917 | dart | Dart | lib/flutter_status_bar.dart | reimibeta/flutter_status_bar | 120385c64662cdefe78b1e09faf90172e4d61f6b | [
"MIT"
] | null | null | null | lib/flutter_status_bar.dart | reimibeta/flutter_status_bar | 120385c64662cdefe78b1e09faf90172e4d61f6b | [
"MIT"
] | null | null | null | lib/flutter_status_bar.dart | reimibeta/flutter_status_bar | 120385c64662cdefe78b1e09faf90172e4d61f6b | [
"MIT"
] | null | null | null | library flutter_status_bar;
import 'package:flutter/material.dart';
import 'dart:io' show Platform;
export 'src/flutter_status_bar_color.dart' show FlutterStatusBarColor;
class FlutterStatusBar extends StatelessWidget {
final Color color;
final Color androidColor;
final Widget child;
final bool top;
Flutte... | 25.472222 | 99 | 0.652126 |
e44e60d03a5d08cf73cdccf9044fc73b4e316ef0 | 823 | hpp | C++ | src/util/log.hpp | larsrh/associative | 5e8a6c5d03e4726e85c8835df5d7458dff00f95a | [
"Apache-2.0"
] | null | null | null | src/util/log.hpp | larsrh/associative | 5e8a6c5d03e4726e85c8835df5d7458dff00f95a | [
"Apache-2.0"
] | null | null | null | src/util/log.hpp | larsrh/associative | 5e8a6c5d03e4726e85c8835df5d7458dff00f95a | [
"Apache-2.0"
] | null | null | null | #ifndef ASSOCIATIVE_LOG_HPP
#define ASSOCIATIVE_LOG_HPP
#include <log4cpp/Appender.hh>
#include <log4cpp/Layout.hh>
#include <log4cpp/Category.hh>
#include <log4cpp/Priority.hh>
#include "util.hpp"
#define TRACE(LOGGER, MSG) \
LOGGER->debug() << __FILE__ << ":" << __LINE__ << " " << (MSG);
namespace associative
{
... | 20.073171 | 64 | 0.712029 |
e96351af9621f0ea1e1130b8a1daf088f3b3aaf3 | 222 | css | CSS | src/components/atoms/Hero/Hero.css | jamesslock/simpleasmilk | ce3b4e4dc8895df8607f7ae7c09c3389b5cf5a10 | [
"BSD-3-Clause"
] | null | null | null | src/components/atoms/Hero/Hero.css | jamesslock/simpleasmilk | ce3b4e4dc8895df8607f7ae7c09c3389b5cf5a10 | [
"BSD-3-Clause"
] | null | null | null | src/components/atoms/Hero/Hero.css | jamesslock/simpleasmilk | ce3b4e4dc8895df8607f7ae7c09c3389b5cf5a10 | [
"BSD-3-Clause"
] | null | null | null | .root {
position: relative;
}
.large {
min-height: 640px;
}
.huge {
min-height: 780px;
}
.full {
height: 100vh;
}
.image {
background-size: cover;
}
.primary {
background-color: #eb3552;
}
| 11.1 | 31 | 0.558559 |
b7a5efbecdf08718353f630eb1480152c12465a4 | 3,103 | cpp | C++ | src/SystemState.cpp | zhouyu1989/system_state | 2f2e5a27b5d89ccfa0e45e35e2c55d9d5f496710 | [
"Apache-2.0"
] | null | null | null | src/SystemState.cpp | zhouyu1989/system_state | 2f2e5a27b5d89ccfa0e45e35e2c55d9d5f496710 | [
"Apache-2.0"
] | null | null | null | src/SystemState.cpp | zhouyu1989/system_state | 2f2e5a27b5d89ccfa0e45e35e2c55d9d5f496710 | [
"Apache-2.0"
] | null | null | null | /**************************************************************
* Copyright (c) 2018-2020,Hangzhou Rokid Tech. Co., Ltd.
* All rights reserved.
*
* FileName: SystemState.cpp
* Description: Gets information about the device's CPU, memory, and so on
*
* Date : 2018.09.18
* Author: zhouyu
* Modification: add fi... | 23.330827 | 87 | 0.518208 |
3efea6a58701aba330c61a84ca5d58114d0419ea | 684 | js | JavaScript | lib/units/force/Imperial.js | Eldelshell/flowsnake | a5a3beca473e0c036e0c4caa5b28221cbf9122ed | [
"MIT"
] | 1 | 2019-05-07T12:47:48.000Z | 2019-05-07T12:47:48.000Z | lib/units/force/Imperial.js | Eldelshell/flowsnake | a5a3beca473e0c036e0c4caa5b28221cbf9122ed | [
"MIT"
] | 9 | 2018-01-26T09:17:39.000Z | 2018-02-08T13:51:38.000Z | lib/units/force/Imperial.js | Eldelshell/flowsnake | a5a3beca473e0c036e0c4caa5b28221cbf9122ed | [
"MIT"
] | null | null | null | import Unit from '../Unit';
import System from '../System';
const TYPE = 'Force';
const Imperial = new System('Imperial', {
Metric: 4.4482,
Gravitational: 453.6
});
const ForceImperial = {
PoundForce: new Unit({
id: 'lbf',
name: 'PoundForce',
type: TYPE,
system: Imperial,
... | 19 | 41 | 0.527778 |
1a66076c9f9aa1dab83bcde12b5c2539d8163772 | 9,255 | py | Python | Main_Execute.py | industrial-optimization-group/offline_data_driven_moea | 4e454694f444ff44f86da24dc33672eb23561bfa | [
"MIT"
] | 1 | 2022-03-30T17:24:55.000Z | 2022-03-30T17:24:55.000Z | Main_Execute.py | industrial-optimization-group/offline_data_driven_moea | 4e454694f444ff44f86da24dc33672eb23561bfa | [
"MIT"
] | null | null | null | Main_Execute.py | industrial-optimization-group/offline_data_driven_moea | 4e454694f444ff44f86da24dc33672eb23561bfa | [
"MIT"
] | null | null | null | from desdeo_problem.Problem import DataProblem
from desdeo_problem.surrogatemodels.SurrogateModels import GaussianProcessRegressor
from desdeo_problem.surrogatemodels.SurrogateKriging import SurrogateKriging
from desdeo_problem.testproblems.TestProblems import test_problem_builder
from pyDOE import lhs
import plotly.... | 46.507538 | 235 | 0.737223 |
b1a2bac2b14ef0ed4e2e228a610348edc6969a09 | 8,261 | sql | SQL | schema.sql | TheBeege/mentor-me-api | 4b1df998470c87c0dd765416fab4347df06a27ac | [
"MIT"
] | 1 | 2017-03-19T19:50:11.000Z | 2017-03-19T19:50:11.000Z | schema.sql | TheBeege/mentor-me-api | 4b1df998470c87c0dd765416fab4347df06a27ac | [
"MIT"
] | null | null | null | schema.sql | TheBeege/mentor-me-api | 4b1df998470c87c0dd765416fab4347df06a27ac | [
"MIT"
] | null | null | null | --
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET search_path = public, pg_catalog;
ALTER TABLE ONLY public.mentor_topic DROP CONSTRAINT mentor_topic_user_id;
ALTER... | 23.738506 | 133 | 0.745309 |
39442aaaf4dd7ba09d2a967f592094a150a782a4 | 88 | py | Python | notifiers/wechat.py | AzusaChino/iris-python | 92aa6bf23d5bf8f2ac4f3d2b0ee5f36e177d97d2 | [
"MIT"
] | null | null | null | notifiers/wechat.py | AzusaChino/iris-python | 92aa6bf23d5bf8f2ac4f3d2b0ee5f36e177d97d2 | [
"MIT"
] | null | null | null | notifiers/wechat.py | AzusaChino/iris-python | 92aa6bf23d5bf8f2ac4f3d2b0ee5f36e177d97d2 | [
"MIT"
] | null | null | null | import notifiers
class Wechat(notifiers):
def __init__(self) -> None:
pass | 14.666667 | 31 | 0.659091 |
e05ec550d56013faf35391fb14bd649d8c34ae5e | 9,890 | c | C | owl-driver/cm160.c | gbilder/owl-netdata | 85fe8de672349a084910377926f3dfdbe191f5ad | [
"MIT"
] | null | null | null | owl-driver/cm160.c | gbilder/owl-netdata | 85fe8de672349a084910377926f3dfdbe191f5ad | [
"MIT"
] | null | null | null | owl-driver/cm160.c | gbilder/owl-netdata | 85fe8de672349a084910377926f3dfdbe191f5ad | [
"MIT"
] | null | null | null | /*
* eagle-owl application.
*
* Copyright (C) 2012 Philippe Cornet <phil.cornet@gmail.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your o... | 28.41954 | 109 | 0.617695 |
45c3f4266f6d1555ab630fa752bf88942a2492bc | 1,093 | py | Python | output/models/nist_data/atomic/name/schema_instance/nistschema_sv_iv_atomic_name_enumeration_2_xsd/nistschema_sv_iv_atomic_name_enumeration_2.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/atomic/name/schema_instance/nistschema_sv_iv_atomic_name_enumeration_2_xsd/nistschema_sv_iv_atomic_name_enumeration_2.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/atomic/name/schema_instance/nistschema_sv_iv_atomic_name_enumeration_2_xsd/nistschema_sv_iv_atomic_name_enumeration_2.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from enum import Enum
from typing import Optional
__NAMESPACE__ = "NISTSchema-SV-IV-atomic-Name-enumeration-2-NS"
class NistschemaSvIvAtomicNameEnumeration2Type(Enum):
UOF_RETRIEVE_THE_PROVIDED_SPECIFIC_IN_SYSTEMS_ON_A_CHI = "uof.retrieve:the_provided_specific_in_systems-... | 35.258065 | 117 | 0.763038 |
e24633162df779a38c44b32ecd43fd1690eca694 | 29 | py | Python | src/amuse/community/flash/__init__.py | sibonyves/amuse | 5557bf88d14df1aa02133a199b6d60c0c57dcab7 | [
"Apache-2.0"
] | null | null | null | src/amuse/community/flash/__init__.py | sibonyves/amuse | 5557bf88d14df1aa02133a199b6d60c0c57dcab7 | [
"Apache-2.0"
] | 12 | 2021-11-15T09:13:03.000Z | 2022-02-02T14:53:04.000Z | src/amuse/community/flash/__init__.py | sibonyves/amuse | 5557bf88d14df1aa02133a199b6d60c0c57dcab7 | [
"Apache-2.0"
] | null | null | null | from .interface import Flash
| 14.5 | 28 | 0.827586 |
c9e377c1ea30bafc3df90f222ffda6b3e76d6243 | 282 | tsx | TypeScript | generators/app/templates/monorepo/packages/web/src/App.tsx | vitorfreitas/generator-ts-monorepo | 513c7066e6dca9ceeb3b1e4c0267e1dd97648ccd | [
"MIT"
] | 19 | 2020-01-10T13:48:12.000Z | 2022-02-08T02:13:10.000Z | packages/web/src/App.tsx | vitorfreitas/monorepo-fullstack-ts | 044324200624766f1fc74c9ba8bca542b55af3e7 | [
"MIT"
] | 1 | 2021-05-11T02:07:09.000Z | 2021-05-11T02:07:09.000Z | generators/app/templates/monorepo/packages/web/src/App.tsx | vitorfreitas/generator-ts-monorepo | 513c7066e6dca9ceeb3b1e4c0267e1dd97648ccd | [
"MIT"
] | null | null | null | import React, { Suspense } from 'react'
import PagesRouter from './pages'
import GlobalStyles from './globalStyles'
const App: React.FC = () => {
return (
<Suspense fallback="Loading...">
<GlobalStyles />
<PagesRouter />
</Suspense>
)
}
export default App
| 18.8 | 41 | 0.634752 |
a30fc3d79a551fc4c4e68c5ac77aab6c18f72062 | 453 | ts | TypeScript | src/buyer/buyer.service.spec.ts | song9797/demouserserver | 69c2858667e26e20ad1d44d0fe18d86657a8d248 | [
"MIT"
] | null | null | null | src/buyer/buyer.service.spec.ts | song9797/demouserserver | 69c2858667e26e20ad1d44d0fe18d86657a8d248 | [
"MIT"
] | 3 | 2021-03-09T23:32:09.000Z | 2022-01-22T09:51:35.000Z | src/buyer/buyer.service.spec.ts | FerLuisxd/fin-backend | fc469a9f42dadb5474ef710703f1973a27ecbc23 | [
"MIT"
] | null | null | null | import { Test, TestingModule } from '@nestjs/testing';
import { BuyerService } from './buyer.service';
describe('BuyerService', () => {
let service: BuyerService;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [BuyerService],
}).compile();
ser... | 23.842105 | 66 | 0.644592 |
c6247ed06780c703e8e4a66e4aa43d6347b92778 | 139 | rb | Ruby | 0_code_wars/sum_arrays.rb | etdev/algorithms | 25cfa4222e9add2806f0bf1e9cc1b76faefc50f2 | [
"MIT"
] | 5 | 2016-01-30T04:18:16.000Z | 2021-06-11T03:06:42.000Z | 0_code_wars/sum_arrays.rb | etdev/algorithms | 25cfa4222e9add2806f0bf1e9cc1b76faefc50f2 | [
"MIT"
] | null | null | null | 0_code_wars/sum_arrays.rb | etdev/algorithms | 25cfa4222e9add2806f0bf1e9cc1b76faefc50f2 | [
"MIT"
] | null | null | null | # http://www.codewars.com/kata/53dc54212259ed3d4f00071c
# --- iteration 1 ---
# Sum Numbers
def sum(numbers)
numbers.reduce(0, &:+)
end
| 17.375 | 55 | 0.690647 |
2006de8538e01d04a76b311d42b8458d31dda43d | 2,358 | py | Python | backend/api/models/containers.py | SelfhostedPro/yacht-vue | 62d020dd33eca9ebdeeb14ba81825335cd63913b | [
"MIT"
] | 6 | 2020-07-08T05:33:22.000Z | 2021-08-22T20:19:54.000Z | backend/api/models/containers.py | sharmasecureservicesusa/yacht-vue | 62d020dd33eca9ebdeeb14ba81825335cd63913b | [
"MIT"
] | 2 | 2021-06-02T02:22:42.000Z | 2022-02-27T07:46:10.000Z | backend/api/models/containers.py | sharmasecureservicesusa/yacht-vue | 62d020dd33eca9ebdeeb14ba81825335cd63913b | [
"MIT"
] | 4 | 2020-07-08T05:33:24.000Z | 2021-09-23T15:31:25.000Z |
from .. import db
from datetime import datetime
from werkzeug.security import check_password_hash, generate_password_hash
class Template(db.Model):
__tablename__ = 'templates'
id = db.Column(db.Integer, primary_key=True)
# alternative: DateTime(timezone=True), sqlalchemy.sql.func.now()
created_at ... | 35.727273 | 73 | 0.671756 |
eba320cb2c826587fb62d2148d45de47e921a634 | 40,203 | css | CSS | pub/theme/default/frontend/css/style.css | peachyang/py_website | 355ae86806b995f3105b9bf79b654aef575e37f6 | [
"MIT"
] | 2 | 2017-09-19T07:02:07.000Z | 2018-06-28T03:12:38.000Z | pub/theme/default/frontend/css/style.css | peachyang/py_website | 355ae86806b995f3105b9bf79b654aef575e37f6 | [
"MIT"
] | null | null | null | pub/theme/default/frontend/css/style.css | peachyang/py_website | 355ae86806b995f3105b9bf79b654aef575e37f6 | [
"MIT"
] | null | null | null | /*
Template Name: Unify - Responsive Bootstrap Template
Description: Business, Corporate, Portfolio and Blog Theme.
Version: 1.2
Author: Html Stream
Website: http://htmlstream.com/preview/unify
*/
/*Import Google Fonts*/
@import url(http://fonts.googleapis.com/css?family=Monda:400,700);
@import url(http:/... | 20.616923 | 116 | 0.599309 |
c6b25dc2f61f06fb3348a1ba99464e08a3d476a4 | 56 | py | Python | cotidia/stripe/__init__.py | guillaumepiot/cotidia-stripe | f23329e8363c3d8577acf9633966d6af61c090eb | [
"BSD-3-Clause"
] | null | null | null | cotidia/stripe/__init__.py | guillaumepiot/cotidia-stripe | f23329e8363c3d8577acf9633966d6af61c090eb | [
"BSD-3-Clause"
] | null | null | null | cotidia/stripe/__init__.py | guillaumepiot/cotidia-stripe | f23329e8363c3d8577acf9633966d6af61c090eb | [
"BSD-3-Clause"
] | null | null | null | default_app_config = 'cotidia.stripe.apps.StripeConfig'
| 28 | 55 | 0.839286 |
b0e4c0a581ab78e0cacf0e6c26f3b1787787c271 | 952 | py | Python | cdApi/task.py | renqiukai/cd_api | 4f1f641adaf031252b097db03249a2581268cc11 | [
"MIT"
] | null | null | null | cdApi/task.py | renqiukai/cd_api | 4f1f641adaf031252b097db03249a2581268cc11 | [
"MIT"
] | null | null | null | cdApi/task.py | renqiukai/cd_api | 4f1f641adaf031252b097db03249a2581268cc11 | [
"MIT"
] | null | null | null | '''
@说明 :任务接口。
@时间 :2020/3/19 下午4:51:48
@作者 :任秋锴
@版本 :1.0
'''
from .base import base
class task(base):
def __init__(self, token):
super().__init__(token)
def list(self, pageNum=1, pageSize=10):
api_name = "manager/task/list"
data = {
"pageNum": pageNum,
... | 22.666667 | 62 | 0.557773 |
d8e00ef4903152bb60a1e30cb39030037160fb7b | 515 | rb | Ruby | public/www/app.rb | doudizhu/activity | 00eda1489d205215a5d7caee7b994c228a55a4f8 | [
"Apache-2.0"
] | 1 | 2020-05-26T01:55:26.000Z | 2020-05-26T01:55:26.000Z | public/www/app.rb | doudizhu/activity | 00eda1489d205215a5d7caee7b994c228a55a4f8 | [
"Apache-2.0"
] | null | null | null | public/www/app.rb | doudizhu/activity | 00eda1489d205215a5d7caee7b994c228a55a4f8 | [
"Apache-2.0"
] | null | null | null | ENV['RACK_ENV'] ||= "development"
require 'sinatra'
require 'haml'
require 'moode-haml-toolkit/component_helper'
require 'jt-partial'
if File.exist? "component/custom.rb"
load "component/custom.rb"
end
require 'moode-haml-toolkit/component_generator'
require 'moode-haml-component-angular'
configure do
set :view... | 19.807692 | 56 | 0.737864 |
da38577ee2d6238f680c0501056389e361ebdc5b | 961 | php | PHP | application/models/m_book.php | yanuaraditia/cip | 99127fab7ff19d22e8ead9ab261316e65ce7b2e1 | [
"Apache-2.0"
] | 1 | 2021-03-25T06:43:10.000Z | 2021-03-25T06:43:10.000Z | application/models/m_book.php | yanuaraditia/cip | 99127fab7ff19d22e8ead9ab261316e65ce7b2e1 | [
"Apache-2.0"
] | null | null | null | application/models/m_book.php | yanuaraditia/cip | 99127fab7ff19d22e8ead9ab261316e65ce7b2e1 | [
"Apache-2.0"
] | null | null | null | <?php
class M_book extends CI_Model{
function list_lantai(){
$id = base64_decode($this->input->get('id'));
$lantai=$this->db->get_where('lantai',array('kd_lokasi'=>$id));
return $lantai;
}
function detail_lokasi() {
$id = base64_decode($this->input->get... | 33.137931 | 81 | 0.490114 |
79b27fdabe0c72ca5a6d42a540e3d0d3803734d4 | 753 | rb | Ruby | spec/spec_helper.rb | lokalportal/json-schema_dsl | edec20f4416a7569b753d34d6c6db3b2f468462b | [
"MIT"
] | 1 | 2019-11-13T20:48:36.000Z | 2019-11-13T20:48:36.000Z | spec/spec_helper.rb | lokalportal/json-schema_dsl | edec20f4416a7569b753d34d6c6db3b2f468462b | [
"MIT"
] | null | null | null | spec/spec_helper.rb | lokalportal/json-schema_dsl | edec20f4416a7569b753d34d6c6db3b2f468462b | [
"MIT"
] | null | null | null | # frozen_string_literal: true
require 'bundler/setup'
require 'pry'
require 'json/schema_dsl'
module DummyRender
class Dummy
include JSON::SchemaDsl
def self.parse(&block)
new.object(&block)
end
def self.render(&block)
parse(&block).as_json
end
end
def parsed(&block)
Dummy... | 17.928571 | 66 | 0.705179 |
c6979248d7452afe98ee6daf4eddfca4be84c67f | 4,209 | py | Python | djangoerp/menus/tests/test_signals.py | xarala221/django-erp | f84ee8ab193b3b06ee4522ac3c888ed47396e795 | [
"MIT"
] | 345 | 2015-02-16T17:36:32.000Z | 2022-01-13T11:04:35.000Z | djangoerp/menus/tests/test_signals.py | xarala221/django-erp | f84ee8ab193b3b06ee4522ac3c888ed47396e795 | [
"MIT"
] | 22 | 2015-09-11T13:29:00.000Z | 2021-11-27T18:47:38.000Z | djangoerp/menus/tests/test_signals.py | xarala221/django-erp | f84ee8ab193b3b06ee4522ac3c888ed47396e795 | [
"MIT"
] | 243 | 2015-03-31T12:08:30.000Z | 2022-01-29T08:23:53.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""This file is part of the django ERP project.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND ... | 35.974359 | 104 | 0.633405 |
14481789019b5e581cc16cd5b1ea2766f530ab4b | 57 | ts | TypeScript | src/configs/envTXT.ts | zalddeve/aocrunner | eb197ce4bce606643fe6968ab0f59d0c2e1e5d8d | [
"ISC"
] | 57 | 2021-11-18T03:42:41.000Z | 2022-01-15T11:55:31.000Z | src/configs/envTXT.ts | zalddeve/aocrunner | eb197ce4bce606643fe6968ab0f59d0c2e1e5d8d | [
"ISC"
] | 9 | 2021-12-01T09:11:27.000Z | 2022-01-11T14:29:41.000Z | src/configs/envTXT.ts | zalddeve/aocrunner | eb197ce4bce606643fe6968ab0f59d0c2e1e5d8d | [
"ISC"
] | 9 | 2021-11-22T14:14:22.000Z | 2021-12-31T14:58:05.000Z | const envTXT = "AOC_SESSION_KEY="
export default envTXT
| 14.25 | 33 | 0.789474 |
1a549560261a63320b9227e19aa83105f1786024 | 107 | py | Python | exercises/ex014.py | mouraa0/python-exercises | 78ecf1cb0d1dfd7dfbdd05574cce5cd6a5cba0f1 | [
"MIT"
] | null | null | null | exercises/ex014.py | mouraa0/python-exercises | 78ecf1cb0d1dfd7dfbdd05574cce5cd6a5cba0f1 | [
"MIT"
] | null | null | null | exercises/ex014.py | mouraa0/python-exercises | 78ecf1cb0d1dfd7dfbdd05574cce5cd6a5cba0f1 | [
"MIT"
] | null | null | null | c = float(input('Temperatura em °C: '))
f = (((c*9)/5)+32)
print('{:.1f}°C é igual a {:.1f}°F'.format(c,f)) | 35.666667 | 48 | 0.53271 |
e44ac6f64287891a0628c46a769e49425b55a688 | 414 | sql | SQL | resources/migrations/20200722-01-add-structured-address-to-polling-location.up.sql | votinginfoproject/data-processor | 1aaf2e030e8e4d2645bde9f1002f331b0c036d11 | [
"BSD-3-Clause"
] | 10 | 2016-11-02T04:37:58.000Z | 2020-09-18T10:14:58.000Z | resources/migrations/20200722-01-add-structured-address-to-polling-location.up.sql | votinginfoproject/data-processor | 1aaf2e030e8e4d2645bde9f1002f331b0c036d11 | [
"BSD-3-Clause"
] | 225 | 2015-02-03T20:34:01.000Z | 2021-08-30T19:33:14.000Z | resources/migrations/20200722-01-add-structured-address-to-polling-location.up.sql | votinginfoproject/data-processor | 1aaf2e030e8e4d2645bde9f1002f331b0c036d11 | [
"BSD-3-Clause"
] | 4 | 2015-11-07T17:37:08.000Z | 2018-10-17T19:29:47.000Z | ALTER TABLE v5_2_polling_locations ADD COLUMN structured_line_1 text;
ALTER TABLE v5_2_polling_locations ADD COLUMN structured_line_2 text;
ALTER TABLE v5_2_polling_locations ADD COLUMN structured_line_3 text;
ALTER TABLE v5_2_polling_locations ADD COLUMN structured_city text;
ALTER TABLE v5_2_polling_locations ADD COL... | 59.142857 | 69 | 0.884058 |
c3ca53868aa63bcf3040b5226c89487f1fb23cd0 | 5,847 | cs | C# | src/DSharp.Mscorlib/NonStandard/Array.cs | strofimo/dsharp | 871714a11bebe5dbf90b14c17694489fc35a19c8 | [
"Apache-2.0"
] | null | null | null | src/DSharp.Mscorlib/NonStandard/Array.cs | strofimo/dsharp | 871714a11bebe5dbf90b14c17694489fc35a19c8 | [
"Apache-2.0"
] | null | null | null | src/DSharp.Mscorlib/NonStandard/Array.cs | strofimo/dsharp | 871714a11bebe5dbf90b14c17694489fc35a19c8 | [
"Apache-2.0"
] | null | null | null | using System.Collections;
using System.Runtime.CompilerServices;
using NonStandard;
namespace System
{
public partial class Array
{
private Array() { }
[ScriptName("push")]
[Obsolete(ObsoleteConsts.MESSAGE_ON_OBSOLETE, ObsoleteConsts.ERROR_ON_OBSOLETE)]
public extern void AddR... | 47.92623 | 96 | 0.769112 |
c07669541a3be40d41d4a0f5d806e76f9374f29e | 1,928 | lua | Lua | Data/Scripts/LootPickup.lua | Core-Team-META/CC-Cosmetic-Store | 7e8631b4329b393eea0235b1761f94504b5f97bc | [
"Apache-2.0"
] | null | null | null | Data/Scripts/LootPickup.lua | Core-Team-META/CC-Cosmetic-Store | 7e8631b4329b393eea0235b1761f94504b5f97bc | [
"Apache-2.0"
] | null | null | null | Data/Scripts/LootPickup.lua | Core-Team-META/CC-Cosmetic-Store | 7e8631b4329b393eea0235b1761f94504b5f97bc | [
"Apache-2.0"
] | null | null | null | --[[
Copyright 2020 Manticore Games, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distrib... | 41.913043 | 118 | 0.806017 |
dcf64ca35af7fb18ef3e759348a90a237ac6d3a3 | 134 | rb | Ruby | lib/equitrac_utilities.rb | LAS-IT/equitrac_utilities | f2fe45471d3c75b35f211006c2e507566bb9a5e1 | [
"MIT"
] | null | null | null | lib/equitrac_utilities.rb | LAS-IT/equitrac_utilities | f2fe45471d3c75b35f211006c2e507566bb9a5e1 | [
"MIT"
] | 1 | 2020-03-03T15:07:13.000Z | 2020-03-03T15:07:13.000Z | lib/equitrac_utilities.rb | LAS-IT/equitrac_utilities | f2fe45471d3c75b35f211006c2e507566bb9a5e1 | [
"MIT"
] | null | null | null | require "equitrac_utilities/version"
require "equitrac_utilities/connection"
module EquitracUtilities
# Your code goes here...
end
| 19.142857 | 39 | 0.813433 |
e24971ff980f7ec446e598a55149376c52a4c864 | 133 | py | Python | python/testData/optimizeImports/orderByType.after.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/optimizeImports/orderByType.after.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/optimizeImports/orderByType.after.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | from __future__ import with_statement
import datetime
import sys
import foo
from bar import *
sys.path
datetime.datetime
foo.bar() | 12.090909 | 37 | 0.81203 |
134784d1137e7e596acc64800ec15345c83b1838 | 27,299 | c | C | minimal-examples-lowlevel/api-tests/api-test-cose/keys.c | horchi/libwebsockets | e1a73c42096a9f94617a25440501d7adc4abbd9f | [
"Apache-2.0"
] | 3,539 | 2015-01-02T18:31:36.000Z | 2022-03-30T09:56:47.000Z | minimal-examples-lowlevel/api-tests/api-test-cose/keys.c | horchi/libwebsockets | e1a73c42096a9f94617a25440501d7adc4abbd9f | [
"Apache-2.0"
] | 2,393 | 2015-01-06T08:43:52.000Z | 2022-03-31T14:09:09.000Z | minimal-examples-lowlevel/api-tests/api-test-cose/keys.c | horchi/libwebsockets | e1a73c42096a9f94617a25440501d7adc4abbd9f | [
"Apache-2.0"
] | 1,483 | 2015-01-04T11:33:23.000Z | 2022-03-30T17:45:00.000Z | /*
* lws-api-test-jose - RFC8152 cose_key tests
*
* Written in 2010-2021 by Andy Green <andy@warmcat.com>
*
* This file is made available under the Creative Commons CC0 1.0
* Universal Public Domain Dedication.
*
* Raw key CBOR created from descriptions at
*
* https://github.com/cose-wg/Examples/blob/master/K... | 29.290773 | 83 | 0.624345 |
dbff296aa1343d09efd08ae029def7b2e0d69130 | 3,463 | c | C | src/problemB/problem1081.c | kbpoyo/ForgotCLearning | 17daa0898a916b77fa66b9de3365c7e68b1f9321 | [
"Apache-2.0"
] | 28 | 2019-09-07T02:36:54.000Z | 2022-02-09T14:11:55.000Z | src/problemB/problem1081.c | kbpoyo/ForgotCLearning | 17daa0898a916b77fa66b9de3365c7e68b1f9321 | [
"Apache-2.0"
] | null | null | null | src/problemB/problem1081.c | kbpoyo/ForgotCLearning | 17daa0898a916b77fa66b9de3365c7e68b1f9321 | [
"Apache-2.0"
] | 16 | 2020-02-03T07:42:19.000Z | 2021-09-26T13:46:33.000Z | //
// Created by forgot on 2019-08-04.
//
//1081 检查密码 (15 point(s))
/*本题要求你帮助某网站的用户注册模块写一个密码合法性检查的小功能。该网站要求用户设置的密码必须由不少于6个字符组成,并且只能有英文字母、数字和小数点
* .,还必须既有字母也有数字。
输入格式:
输入第一行给出一个正整数 N(≤ 100),随后 N 行,每行给出一个用户设置的密码,为不超过 80 个字符的非空字符串,以回车结束。
输出格式:
对每个用户的密码,在一行中输出系统反馈信息,分以下5种:
如果密码合法,输出Your password is wan mei.;
如果密码太短,不论合... | 25.843284 | 100 | 0.439215 |
f44aab5c50306dd93d8d21db441e3d367906251a | 787 | ts | TypeScript | src/socketio.response.ts | toniton/angular2-sails-socketio | c1acf622fba1c1ea18b8400bb1eff6e2c3f91edd | [
"MIT"
] | null | null | null | src/socketio.response.ts | toniton/angular2-sails-socketio | c1acf622fba1c1ea18b8400bb1eff6e2c3f91edd | [
"MIT"
] | 2 | 2017-04-20T07:57:07.000Z | 2017-12-21T04:04:03.000Z | src/socketio.response.ts | toniton/angular2-sails-socketio | c1acf622fba1c1ea18b8400bb1eff6e2c3f91edd | [
"MIT"
] | null | null | null | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Tunde
*/
export class SocketIOResponse {
private code: string;
private data: any;
private message: str... | 19.195122 | 79 | 0.541296 |
1f4627cb14652e7a4cf1bcd3b61df984444f7a84 | 22,708 | cs | C# | Server/Form1.cs | suarezoscar/logoquizz | f6695a4cf096600b87adebd7d4dd66cf6b6d53c7 | [
"MIT"
] | null | null | null | Server/Form1.cs | suarezoscar/logoquizz | f6695a4cf096600b87adebd7d4dd66cf6b6d53c7 | [
"MIT"
] | null | null | null | Server/Form1.cs | suarezoscar/logoquizz | f6695a4cf096600b87adebd7d4dd66cf6b6d53c7 | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Server
{
... | 40.049383 | 160 | 0.406773 |
0bbe79eceec26074fa83f8e9b407653759ccf612 | 9,706 | kt | Kotlin | glance/glance/src/test/kotlin/androidx/glance/layout/PaddingTest.kt | DSteve595/androidx | 004096c49c04048ae493b9fa9c7e19ad7474e79d | [
"Apache-2.0"
] | null | null | null | glance/glance/src/test/kotlin/androidx/glance/layout/PaddingTest.kt | DSteve595/androidx | 004096c49c04048ae493b9fa9c7e19ad7474e79d | [
"Apache-2.0"
] | null | null | null | glance/glance/src/test/kotlin/androidx/glance/layout/PaddingTest.kt | DSteve595/androidx | 004096c49c04048ae493b9fa9c7e19ad7474e79d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021 The Android Open Source Project
*
* 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 applica... | 31.108974 | 100 | 0.576448 |
af7db0103645a1926e46acb65be4224b274784b2 | 1,486 | py | Python | content/wagtail_hooks.py | bikramtuladhar/covid-19-procurement-explorer-admin | 9bba473c8b83c8651e3178b6fba01af74d8b27dc | [
"BSD-3-Clause"
] | null | null | null | content/wagtail_hooks.py | bikramtuladhar/covid-19-procurement-explorer-admin | 9bba473c8b83c8651e3178b6fba01af74d8b27dc | [
"BSD-3-Clause"
] | null | null | null | content/wagtail_hooks.py | bikramtuladhar/covid-19-procurement-explorer-admin | 9bba473c8b83c8651e3178b6fba01af74d8b27dc | [
"BSD-3-Clause"
] | null | null | null | from wagtail.core import hooks
@hooks.register("construct_main_menu")
def hide_reports_menu_item(request, menu_items):
menu_items[:] = [item for item in menu_items if item.name != "reports"]
@hooks.register("construct_main_menu")
def hide_settings_menu_item(request, menu_items):
menu_items[:] = [item for it... | 35.380952 | 85 | 0.759758 |
2186c65af8b889931bc44f329140fea9186ffff1 | 480 | lua | Lua | gamemode/sh_playermeta.lua | BlackVoid/deathrun | 62d049f4e46a0f7a585eac4c2a4a3f6fd2a2b398 | [
"MIT"
] | 2 | 2016-01-06T01:57:24.000Z | 2019-03-04T09:36:00.000Z | gamemode/sh_playermeta.lua | BlackVoid/deathrun | 62d049f4e46a0f7a585eac4c2a4a3f6fd2a2b398 | [
"MIT"
] | 3 | 2015-03-10T22:32:14.000Z | 2020-01-16T19:26:13.000Z | gamemode/sh_playermeta.lua | BlackVoid/deathrun | 62d049f4e46a0f7a585eac4c2a4a3f6fd2a2b398 | [
"MIT"
] | 2 | 2015-01-12T23:38:32.000Z | 2017-03-06T11:38:36.000Z | local meta = FindMetaTable( "Player" )
function meta:IsObserver()
return ( self:Team() == TEAM_SPECTATOR or self:GetObserverMode() > OBS_MODE_NONE );
end
if CLIENT then return end
function meta:DeathrunSync()
net.Start("DeathRun_GameState")
net.WriteInt(GAMEMODE:GetGameState(), 4)
net.Send(self)
net.Start("Dea... | 22.857143 | 84 | 0.752083 |
a9e41deddc5bb79dfcac996cbd94103181fccee5 | 879 | php | PHP | database/migrations/2018_10_04_184403_alter_clientes_table.php | ale395/proyecto_ferreteria | adaf55c20e94f2b646a1f16cd241bef093e31681 | [
"MIT"
] | null | null | null | database/migrations/2018_10_04_184403_alter_clientes_table.php | ale395/proyecto_ferreteria | adaf55c20e94f2b646a1f16cd241bef093e31681 | [
"MIT"
] | 13 | 2018-05-03T13:10:57.000Z | 2018-10-24T12:30:21.000Z | database/migrations/2018_10_04_184403_alter_clientes_table.php | ale395/proyecto_ferreteria | adaf55c20e94f2b646a1f16cd241bef093e31681 | [
"MIT"
] | null | null | null | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AlterClientesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('clientes', funct... | 23.756757 | 95 | 0.588168 |
a40f3918d2d2178dae0e808cc6fc8ffa70868599 | 5,381 | php | PHP | resources/views/pages/kontak.blade.php | ersadishla/SIYAP | e837736dd5fee4c068a999ca0fae558c3dfa38b0 | [
"MIT"
] | null | null | null | resources/views/pages/kontak.blade.php | ersadishla/SIYAP | e837736dd5fee4c068a999ca0fae558c3dfa38b0 | [
"MIT"
] | null | null | null | resources/views/pages/kontak.blade.php | ersadishla/SIYAP | e837736dd5fee4c068a999ca0fae558c3dfa38b0 | [
"MIT"
] | null | null | null | <!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
@include('layouts.header')
</head>
<body>
<div id="page-container" class="sidebar-inverse side-scroll page-header-fixed main-content-boxed">
<header id="page-header">
@include('la... | 54.353535 | 157 | 0.328192 |
2d4ae0b9419417ceea63bf2030c839a5962da1e4 | 82 | sql | SQL | src/test/resources/sql/alter_user/8c9cd152.sql | Shuttl-Tech/antlr_psql | fcf83192300abe723f3fd3709aff5b0c8118ad12 | [
"MIT"
] | 66 | 2018-06-15T11:34:03.000Z | 2022-03-16T09:24:49.000Z | src/test/resources/sql/alter_user/8c9cd152.sql | Shuttl-Tech/antlr_psql | fcf83192300abe723f3fd3709aff5b0c8118ad12 | [
"MIT"
] | 13 | 2019-03-19T11:56:28.000Z | 2020-08-05T04:20:50.000Z | src/test/resources/sql/alter_user/8c9cd152.sql | Shuttl-Tech/antlr_psql | fcf83192300abe723f3fd3709aff5b0c8118ad12 | [
"MIT"
] | 28 | 2019-01-05T19:59:02.000Z | 2022-03-24T11:55:50.000Z | -- file:rolenames.sql ln:110 expect:true
ALTER USER SESSION_USER WITH REPLICATION
| 27.333333 | 40 | 0.817073 |
a49b496d88b074e9e76f0528a9102ab17af93e7f | 22,454 | php | PHP | interfaces/intMP3toSQL.php | oyosoftware/oyomusic | 3b01ae91c3773c6fa142372f9aec4ae9b4de375b | [
"MIT"
] | null | null | null | interfaces/intMP3toSQL.php | oyosoftware/oyomusic | 3b01ae91c3773c6fa142372f9aec4ae9b4de375b | [
"MIT"
] | null | null | null | interfaces/intMP3toSQL.php | oyosoftware/oyomusic | 3b01ae91c3773c6fa142372f9aec4ae9b4de375b | [
"MIT"
] | null | null | null | <?php
error_reporting(22519);
require_once('../settings.inc');
require_once('../plugins/getid3/getid3.php');
require_once('../helpers/functions.php');
function getLetter($name) {
$letter = strunacc(mb_substr($name, 0, 1));
switch (true) {
case preg_match("/[a-z]/", $letter):
$le... | 52.462617 | 170 | 0.398993 |
c4fe06d0e89af85642f74102c029023403bba445 | 917 | hpp | C++ | src/Jogo/Resources/TexturesHolder.hpp | MatheusKunnen/Jogo-TecProg | 66f4320e51e42d12da74e487cc8552377ce865bb | [
"MIT"
] | null | null | null | src/Jogo/Resources/TexturesHolder.hpp | MatheusKunnen/Jogo-TecProg | 66f4320e51e42d12da74e487cc8552377ce865bb | [
"MIT"
] | null | null | null | src/Jogo/Resources/TexturesHolder.hpp | MatheusKunnen/Jogo-TecProg | 66f4320e51e42d12da74e487cc8552377ce865bb | [
"MIT"
] | null | null | null | //
// TexturesHolder.hpp
// Jogo-SFML
//
// Created by Matheus Kunnen Ledesma on 10/6/19.
// Copyright © 2019 Matheus Kunnen Ledesma. All rights reserved.
//
#ifndef TexturesHolder_hpp
#define TexturesHolder_hpp
#include "../base_includes.hpp"
#include "ResourcesHolder.hpp"
namespace Game { namespace Resources{
... | 26.2 | 196 | 0.730643 |
1ab200b6e36a04dd14450670b70e4b47f73fbf71 | 20,089 | py | Python | gitHubSpider.py | chroblert/sourceCodeCheck | 5330bc40733ac7867bfe2fae8fa219633ac7ae82 | [
"MIT"
] | 6 | 2019-08-19T05:55:39.000Z | 2021-02-02T07:21:23.000Z | gitHubSpider.py | chroblert/sourceCodeCheck | 5330bc40733ac7867bfe2fae8fa219633ac7ae82 | [
"MIT"
] | 2 | 2021-03-31T19:09:04.000Z | 2021-06-02T00:19:22.000Z | gitHubSpider.py | chroblert/sourceCodeCheck | 5330bc40733ac7867bfe2fae8fa219633ac7ae82 | [
"MIT"
] | 11 | 2019-11-13T01:07:14.000Z | 2021-05-10T01:25:27.000Z | # @Author: JC
import requests
import json
from lxml import etree
from tool import read_json_file_to_object
from tool import get_html
from tool import save_object_to_json_file
from tool import save_html_response_to_html_file
from tool import read_txt_file_to_list
from tool import Logger
from login import get_cookie_from... | 42.203782 | 225 | 0.650057 |
b349145897d9a1a95fac6e2faebd41ba8edd3362 | 2,379 | py | Python | p2ner/components/produceroverlay/centralproducerclient/centralproducerclient/core.py | schristakidis/p2ner | 46694a41e8c1ebdc28f520b58c126da8785f3eed | [
"Apache-2.0"
] | 2 | 2015-06-01T22:04:34.000Z | 2017-07-06T09:35:00.000Z | p2ner/components/produceroverlay/centralproducerclient/centralproducerclient/core.py | schristakidis/p2ner | 46694a41e8c1ebdc28f520b58c126da8785f3eed | [
"Apache-2.0"
] | null | null | null | p2ner/components/produceroverlay/centralproducerclient/centralproducerclient/core.py | schristakidis/p2ner | 46694a41e8c1ebdc28f520b58c126da8785f3eed | [
"Apache-2.0"
] | 1 | 2019-11-26T10:22:35.000Z | 2019-11-26T10:22:35.000Z | # -*- coding: utf-8 -*-
# Copyright 2012 Loris Corazza, Sakis Christakidis
#
# 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
#
# U... | 34.478261 | 76 | 0.668768 |
25bd735f0deb5efb24206de80862d5da843725c9 | 1,174 | cs | C# | GigHub/GigHub/Controllers/HomeController.cs | ivannk0900/GigHub | 297ddc9a39f7bda48cbcafb6a57ca3b9416c97a2 | [
"MIT"
] | null | null | null | GigHub/GigHub/Controllers/HomeController.cs | ivannk0900/GigHub | 297ddc9a39f7bda48cbcafb6a57ca3b9416c97a2 | [
"MIT"
] | null | null | null | GigHub/GigHub/Controllers/HomeController.cs | ivannk0900/GigHub | 297ddc9a39f7bda48cbcafb6a57ca3b9416c97a2 | [
"MIT"
] | null | null | null | using GigHub.Models;
using System.Web.Mvc;
using System.Data.Entity;
using System.Linq;
using System;
using GigHub.ViewModels;
namespace GigHub.Controllers
{
public class HomeController : Controller
{
private ApplicationDbContext context;
public HomeController()
{
this.co... | 23.48 | 67 | 0.53833 |
e9acfcbf1e8d63ec725b5eedd7cc7aac7ef464fe | 1,671 | rs | Rust | arwa/src/storage.rs | RSSchermer/ARWA | 5f20dd338d0086505d1c8ac7f47e260d3cb1dd8e | [
"MIT"
] | null | null | null | arwa/src/storage.rs | RSSchermer/ARWA | 5f20dd338d0086505d1c8ac7f47e260d3cb1dd8e | [
"MIT"
] | null | null | null | arwa/src/storage.rs | RSSchermer/ARWA | 5f20dd338d0086505d1c8ac7f47e260d3cb1dd8e | [
"MIT"
] | null | null | null | use wasm_bindgen::{throw_val, JsCast, UnwrapThrowExt};
use crate::collection::Collection;
use crate::dom_exception_wrapper;
use crate::impl_common_wrapper_traits;
dom_exception_wrapper!(StorageQuotaExceeded);
#[derive(Clone)]
pub struct Storage {
inner: web_sys::Storage,
}
impl Storage {
pub fn key_at(&self... | 25.318182 | 87 | 0.62298 |
a87e22e9c89fda6fd3f01cec5a534147f19f6e5c | 4,473 | swift | Swift | LibraryComponents/Classes/AndesDropdown/AndesDropdown.swift | oesierra/fury_andesui-ios | ea26f816ac1f4346c590613f766d4d07b3a0bd03 | [
"MIT"
] | 1 | 2021-04-03T23:10:21.000Z | 2021-04-03T23:10:21.000Z | LibraryComponents/Classes/AndesDropdown/AndesDropdown.swift | oesierra/fury_andesui-ios | ea26f816ac1f4346c590613f766d4d07b3a0bd03 | [
"MIT"
] | null | null | null | LibraryComponents/Classes/AndesDropdown/AndesDropdown.swift | oesierra/fury_andesui-ios | ea26f816ac1f4346c590613f766d4d07b3a0bd03 | [
"MIT"
] | null | null | null | //
// AndesDropdown.swift
// AndesUI
//
// Created by Jonathan Alonso Pinto on 13/11/20.
//
import Foundation
@objc public class AndesDropdown: UIView {
private var contentView: AndesDropdownView!
private var didSelect: Bool = false {
didSet {
self.updateView()
didSelect.to... | 29.045455 | 118 | 0.623966 |
93e9a07b88e583d3ee33472c4827fc544a7fddc5 | 595 | cs | C# | Vostok.ClusterClient/Transforms/IRequestTransform.cs | vostok-archives/clusterclient.prototype | 6bed632fa1e938bef54db0e6cb316790657d48e6 | [
"MIT"
] | null | null | null | Vostok.ClusterClient/Transforms/IRequestTransform.cs | vostok-archives/clusterclient.prototype | 6bed632fa1e938bef54db0e6cb316790657d48e6 | [
"MIT"
] | null | null | null | Vostok.ClusterClient/Transforms/IRequestTransform.cs | vostok-archives/clusterclient.prototype | 6bed632fa1e938bef54db0e6cb316790657d48e6 | [
"MIT"
] | null | null | null | using JetBrains.Annotations;
using Vostok.Clusterclient.Model;
namespace Vostok.Clusterclient.Transforms
{
/// <summary>
/// <para>Represents a transform used to modify request before it gets sent.</para>
/// <para>Requests transforms form a chain where each transform works with a result of previous one.<... | 29.75 | 111 | 0.653782 |
93b3cd6b5d6bb9d25991d08d08aa452cc8d136ea | 1,262 | cs | C# | III. Introduction to OOP/Pokemon Trainer/StartUp.cs | FullscreenSauna/IT-Career | e6fe31ae4b18c75ae2362364c3090c1457250319 | [
"MIT"
] | null | null | null | III. Introduction to OOP/Pokemon Trainer/StartUp.cs | FullscreenSauna/IT-Career | e6fe31ae4b18c75ae2362364c3090c1457250319 | [
"MIT"
] | null | null | null | III. Introduction to OOP/Pokemon Trainer/StartUp.cs | FullscreenSauna/IT-Career | e6fe31ae4b18c75ae2362364c3090c1457250319 | [
"MIT"
] | 2 | 2019-07-01T14:19:31.000Z | 2019-07-04T09:51:27.000Z | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Pokemon_Trainer
{
class StartUp
{
static void Main(string[] args)
{
string command;
var trainers = new Dictionary<string, Trainer>();
... | 26.851064 | 105 | 0.504754 |
63eaf677d134b52573535dfc948ab397813990fe | 2,577 | ps1 | PowerShell | SCCM/Invoke-DGASoftwareUpdateMaintenance/Plugins/Disabled/Decline-ByConfigMgrFolder_To Decline.ps1 | ennnbeee/mem-scripts | 98bd5c49a44de1cf63ad3de12f3010b33f406967 | [
"MIT"
] | null | null | null | SCCM/Invoke-DGASoftwareUpdateMaintenance/Plugins/Disabled/Decline-ByConfigMgrFolder_To Decline.ps1 | ennnbeee/mem-scripts | 98bd5c49a44de1cf63ad3de12f3010b33f406967 | [
"MIT"
] | null | null | null | SCCM/Invoke-DGASoftwareUpdateMaintenance/Plugins/Disabled/Decline-ByConfigMgrFolder_To Decline.ps1 | ennnbeee/mem-scripts | 98bd5c49a44de1cf63ad3de12f3010b33f406967 | [
"MIT"
] | null | null | null | <#
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ... | 51.54 | 191 | 0.696158 |
6973c2e06e85dfc88714b49d252da76085a1833c | 355 | kt | Kotlin | SingleModuleApp/app/src/main/java/com/github/yamamotoj/singlemoduleapp/package53/Foo05317.kt | yamamotoj/android_multi_module_experiment | 2a771697dfebca9201f6df5ef8441578b5102641 | [
"Apache-2.0"
] | 9 | 2019-02-08T06:51:52.000Z | 2021-04-28T03:45:59.000Z | SingleModuleApp/app/src/main/java/com/github/yamamotoj/singlemoduleapp/package53/Foo05317.kt | yamamotoj/android_multi_module_experiment | 2a771697dfebca9201f6df5ef8441578b5102641 | [
"Apache-2.0"
] | null | null | null | SingleModuleApp/app/src/main/java/com/github/yamamotoj/singlemoduleapp/package53/Foo05317.kt | yamamotoj/android_multi_module_experiment | 2a771697dfebca9201f6df5ef8441578b5102641 | [
"Apache-2.0"
] | null | null | null | package com.github.yamamotoj.singlemoduleapp.package53
class Foo05317 {
fun method0() {
Foo05316().method5()
}
fun method1() {
method0()
}
fun method2() {
method1()
}
fun method3() {
method2()
}
fun method4() {
method3()
}
fun met... | 12.678571 | 54 | 0.484507 |
79b91ff293fbbeec616a810f55b75d371dcf62ad | 522 | php | PHP | src/AdapterInterface.php | metarush/log-once | 3342cd13856ad7dc28719d5b7215682b491c989d | [
"MIT"
] | 1 | 2021-02-13T19:45:27.000Z | 2021-02-13T19:45:27.000Z | src/AdapterInterface.php | metarush/log-once | 3342cd13856ad7dc28719d5b7215682b491c989d | [
"MIT"
] | null | null | null | src/AdapterInterface.php | metarush/log-once | 3342cd13856ad7dc28719d5b7215682b491c989d | [
"MIT"
] | null | null | null | <?php
declare(strict_types=1);
namespace MetaRush\LogOnce;
interface AdapterInterface
{
/**
* Logs the message
*
* @param string $hash
* @param string $message
* @param string $timeZone
* @return void
*/
public function log(string $hash, string $message, string $timeZone): ... | 20.076923 | 79 | 0.616858 |
90a3e5a5ee2a94a3946d0986932a4203f1d423b4 | 2,958 | rb | Ruby | spec/lib/config/base_spec.rb | test-classroom-for-github/test-a1 | 0ef7b494f39773c90d2cdf0b044b2368a5625431 | [
"MIT"
] | null | null | null | spec/lib/config/base_spec.rb | test-classroom-for-github/test-a1 | 0ef7b494f39773c90d2cdf0b044b2368a5625431 | [
"MIT"
] | null | null | null | spec/lib/config/base_spec.rb | test-classroom-for-github/test-a1 | 0ef7b494f39773c90d2cdf0b044b2368a5625431 | [
"MIT"
] | null | null | null | require 'gitomator/classroom'
require 'gitomator/classroom/config/base'
require 'securerandom'
require 'tmpdir'
describe Gitomator::Classroom::Config::Base do
it "should set the config attribute, when instantiating from hash" do
expected = {
'a' + SecureRandom.hex => SecureRandom.hex,
'a' + Secure... | 27.137615 | 80 | 0.640636 |
0d6807e7c0aa2d1f9a946fd9a834c222f050ee2d | 234 | cs | C# | ShoppingList/Controllers/ShoppingEventPageController.cs | Benivere/ShoppingList | 89326cc9cdb0dadb317a4dcfea7f2c5a74bda7c5 | [
"Apache-2.0"
] | null | null | null | ShoppingList/Controllers/ShoppingEventPageController.cs | Benivere/ShoppingList | 89326cc9cdb0dadb317a4dcfea7f2c5a74bda7c5 | [
"Apache-2.0"
] | null | null | null | ShoppingList/Controllers/ShoppingEventPageController.cs | Benivere/ShoppingList | 89326cc9cdb0dadb317a4dcfea7f2c5a74bda7c5 | [
"Apache-2.0"
] | null | null | null | using System.Web.Mvc;
namespace ShoppingList.Controllers
{
public class ShoppingEventPageController : Controller
{
public ActionResult Index()
{
return View("ShoppingEventPage");
}
}
} | 19.5 | 57 | 0.628205 |
c334a0c67df2c862da189ff2797ef5e0db54f49b | 593 | kt | Kotlin | app/src/main/java/com/XD/fitgain/views/fragments/Config1.kt | fabriciohernandez/fitgain_aca | e2f0046e6bd6e178169bf314a8742c20b4ad4168 | [
"MIT"
] | null | null | null | app/src/main/java/com/XD/fitgain/views/fragments/Config1.kt | fabriciohernandez/fitgain_aca | e2f0046e6bd6e178169bf314a8742c20b4ad4168 | [
"MIT"
] | 7 | 2021-07-08T02:43:00.000Z | 2021-07-10T04:59:42.000Z | app/src/main/java/com/XD/fitgain/views/fragments/Config1.kt | fabriciohernandez/fitgain_aca | e2f0046e6bd6e178169bf314a8742c20b4ad4168 | [
"MIT"
] | 1 | 2021-09-29T23:49:37.000Z | 2021-09-29T23:49:37.000Z | package com.XD.fitgain.views.fragments
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.XD.fitgain.databinding.FragmentConfig1Binding
class Config1 : Fragment() {
private lateinit var binding: Fragm... | 24.708333 | 76 | 0.757167 |
dbca8b0751ce42afd18d3bc0215b959c868f6725 | 446 | php | PHP | application/back/validate/ArticleValidate.php | zygals/weilaitp | 274a711fcd2086ad585a2dd88d9546f7eac72e7e | [
"Apache-2.0"
] | null | null | null | application/back/validate/ArticleValidate.php | zygals/weilaitp | 274a711fcd2086ad585a2dd88d9546f7eac72e7e | [
"Apache-2.0"
] | null | null | null | application/back/validate/ArticleValidate.php | zygals/weilaitp | 274a711fcd2086ad585a2dd88d9546f7eac72e7e | [
"Apache-2.0"
] | null | null | null | <?php
namespace app\back\validate;
use think\Validate;
class ArticleValidate extends Validate{
protected $rule = [
'name' => 'require',
'cate' => 'require|number',
'cont' => 'require',
'sort' => 'number',
'index_show' => 'boolean',
];
protected $message = [
'name.require' => '名称必须',
'cate.... | 15.928571 | 39 | 0.560538 |
07716af3f8b14aca3ee0a30f115e1da40c35c9ea | 250 | sql | SQL | MySQL/May-2019/Subqueries_and_Joins/Exercise/02.Addresses_with_Towns.sql | IvayloIV/Java | 862785b40c68ee4ddcf3b4ff9989467b95eb1780 | [
"MIT"
] | null | null | null | MySQL/May-2019/Subqueries_and_Joins/Exercise/02.Addresses_with_Towns.sql | IvayloIV/Java | 862785b40c68ee4ddcf3b4ff9989467b95eb1780 | [
"MIT"
] | 24 | 2020-01-17T20:44:40.000Z | 2022-01-21T23:49:06.000Z | MySQL/May-2019/Subqueries_and_Joins/Exercise/02.Addresses_with_Towns.sql | IvayloIV/Java | 862785b40c68ee4ddcf3b4ff9989467b95eb1780 | [
"MIT"
] | null | null | null | SELECT
e.first_name,
e.last_name,
t.name AS 'town',
a.address_text
FROM employees AS e
JOIN addresses AS a
ON e.address_id = a.address_id
JOIN towns AS t
ON a.town_id = t.town_id
ORDER BY
e.first_name ASC,
e.last_name ASC
LIMIT 5; | 17.857143 | 30 | 0.708 |
5807d2dcb4ea9e162bf428d27a483efe4985e701 | 321 | lua | Lua | Assets/LuaScripts/Modulus/ECS/LComponent/Factory/LPositionComp.lua | nizhenchao/ECS_XLua | aa60d66754f18faea66f6b2e0a9a02a7cfefc15d | [
"Apache-2.0"
] | 2 | 2018-12-21T05:53:56.000Z | 2019-03-18T05:08:32.000Z | Assets/LuaScripts/Modulus/ECS/LComponent/Factory/LPositionComp.lua | woxinfeixiang2012/ECS_XLua | cb54750c78783a4ead78b578d4c97ea973429d1e | [
"Apache-2.0"
] | null | null | null | Assets/LuaScripts/Modulus/ECS/LComponent/Factory/LPositionComp.lua | woxinfeixiang2012/ECS_XLua | cb54750c78783a4ead78b578d4c97ea973429d1e | [
"Apache-2.0"
] | 1 | 2018-10-11T06:16:42.000Z | 2018-10-11T06:16:42.000Z | LPositionComp = SimpleClass(LComponent)
function LPositionComp:__init(type,uid,args)
self.pos = Vector3(args[1],args[2],args[3])
self.isArrive = false
end
function LPositionComp:isNeedUpdate()
return not self.isArrive
end
function LPositionComp:update(pos)
self.pos = pos
self.isArrive = false
end... | 21.4 | 47 | 0.741433 |
3f55823cade6989a797a207cc7f9367d5126d79c | 1,199 | sql | SQL | migrations/1610908266000_create_mentor_proposals_table/up.sql | rcos/rcos-ap | 5ea4072f0593fe034a90fdc44baae22ae94863e6 | [
"MIT"
] | 2 | 2021-01-16T13:21:06.000Z | 2021-01-18T01:51:57.000Z | migrations/1610908266000_create_mentor_proposals_table/up.sql | rcos/rcos-ap | 5ea4072f0593fe034a90fdc44baae22ae94863e6 | [
"MIT"
] | 23 | 2021-01-12T03:38:45.000Z | 2022-02-02T20:11:14.000Z | migrations/1610908266000_create_mentor_proposals_table/up.sql | rcos/rcos-ap | 5ea4072f0593fe034a90fdc44baae22ae94863e6 | [
"MIT"
] | 1 | 2021-01-17T17:04:38.000Z | 2021-01-17T17:04:38.000Z | CREATE TABLE mentor_proposals (
semester_id VARCHAR,
username VARCHAR,
reason TEXT NOT NULL,
skillset TEXT NOT NULL,
reviewer_username VARCHAR,
reviewer_comments TEXT,
is_approved boolean DEFAULT false,
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
PRIMARY KEY (semester_id, username),
FOREIGN KEY... | 44.407407 | 93 | 0.812344 |
38db55392c5b60800bb8007107c15cdc2d537b3f | 6,299 | php | PHP | resources/views/admin/site/formulario.blade.php | hugopascoal2570/ProjetoBolsa | 492788d9ca05dfc86167d6d025edb71e5e63e301 | [
"MIT"
] | null | null | null | resources/views/admin/site/formulario.blade.php | hugopascoal2570/ProjetoBolsa | 492788d9ca05dfc86167d6d025edb71e5e63e301 | [
"MIT"
] | null | null | null | resources/views/admin/site/formulario.blade.php | hugopascoal2570/ProjetoBolsa | 492788d9ca05dfc86167d6d025edb71e5e63e301 | [
"MIT"
] | null | null | null | @extends('layouts.app')
@extends('site.layout')
@extends('site.style.form')
@section('title', 'Informe seus dados')
@section('script')
<script>
jQuery(document).ready(function() {
$('.phone').mask.mask('(00) 00000-0000');
$('.cpf').mask('000.000.000-00', {
reverse: t... | 37.494048 | 122 | 0.505001 |
e741efee87feb59af95bc941781bc12a08d08fcb | 828 | php | PHP | database/seeds/ParametroSeeder.php | Fed3x/citymarket_comercial | 1f7f4ddb4f9e70524ac87e1966f6ab1ce8cfe2ca | [
"MIT"
] | null | null | null | database/seeds/ParametroSeeder.php | Fed3x/citymarket_comercial | 1f7f4ddb4f9e70524ac87e1966f6ab1ce8cfe2ca | [
"MIT"
] | 5 | 2020-10-28T18:18:26.000Z | 2022-02-19T00:58:48.000Z | database/seeds/ParametroSeeder.php | Fed3x/citymarket_comercial | 1f7f4ddb4f9e70524ac87e1966f6ab1ce8cfe2ca | [
"MIT"
] | null | null | null | <?php
use Illuminate\Database\Seeder;
use App\Parametro;
use Carbon\Carbon;
class ParametroSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$parametros = [
[
'descripcion' => 'FECHAS',
... | 21.789474 | 46 | 0.417874 |
491c819596ac4942f9bad13c18b7e1d324d6f71e | 17,270 | py | Python | models/netmodel.py | ISCAS007/pix2pix | 50d61e0db7e49e3a5e7595ac1a469055df74b939 | [
"BSD-3-Clause"
] | null | null | null | models/netmodel.py | ISCAS007/pix2pix | 50d61e0db7e49e3a5e7595ac1a469055df74b939 | [
"BSD-3-Clause"
] | null | null | null | models/netmodel.py | ISCAS007/pix2pix | 50d61e0db7e49e3a5e7595ac1a469055df74b939 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
# @Time : 2019/9/13 15:36
# @Author : liufang
# @File : model.py
import os
import sys
import cv2
import numpy as np
import torch
import torch.nn as nn
from torch.nn import init
import torch.optim as optim
import torch.nn.functional as F
import functools
from models.seg_m... | 42.641975 | 159 | 0.618471 |
a199c6f5e6ba28712f8f068ba4fa4f0e3bf3c9fe | 2,216 | ts | TypeScript | Distributed-eStore.UI/src/ClientApp/src/state/user/userActions.ts | KrishnaVadlamudi44/Distributed-eStore | c8442caa62f882e9bfac210c1ab4555a681cafcc | [
"MIT"
] | 104 | 2021-02-03T07:14:37.000Z | 2022-03-15T21:25:07.000Z | Distributed-eStore.UI/src/ClientApp/src/state/user/userActions.ts | KrishnaVadlamudi44/Distributed-eStore | c8442caa62f882e9bfac210c1ab4555a681cafcc | [
"MIT"
] | 3 | 2021-04-27T16:25:51.000Z | 2022-03-15T08:27:27.000Z | Distributed-eStore.UI/src/ClientApp/src/state/user/userActions.ts | KrishnaVadlamudi44/Distributed-eStore | c8442caa62f882e9bfac210c1ab4555a681cafcc | [
"MIT"
] | 21 | 2021-04-16T21:48:14.000Z | 2022-03-14T22:00:56.000Z | import { IUser, UserActionTypes } from ".";
import { IAppThunkAction, ReduxAction } from "..";
import { register, login, logout } from "../../services/auth";
export type UserRegistrationData = {
firstName: string,
lastName: string,
email: string,
password: string,
// technical debt
role: strin... | 31.657143 | 111 | 0.556859 |
033ba66a91f4c18ba8a55b27266db4bb89d5e1c7 | 371 | rb | Ruby | lib/autoparts/packages/mercurial.rb | adamreid/boxparts | ab986b71374c41d4f7bdbadaf11b898510978696 | [
"BSD-2-Clause"
] | 16 | 2015-02-12T20:18:36.000Z | 2018-09-21T02:45:25.000Z | lib/autoparts/packages/mercurial.rb | adamreid/boxparts | ab986b71374c41d4f7bdbadaf11b898510978696 | [
"BSD-2-Clause"
] | 47 | 2015-01-07T02:26:37.000Z | 2017-05-31T18:13:37.000Z | lib/autoparts/packages/mercurial.rb | adamreid/boxparts | ab986b71374c41d4f7bdbadaf11b898510978696 | [
"BSD-2-Clause"
] | 34 | 2015-01-05T22:37:53.000Z | 2016-11-05T00:49:14.000Z | module Autoparts
module Packages
class Mercurial < Package
name 'mercurial'
version '2.0.2'
source_url ''
description 'Mercurial : source control management'
category Category::DEVELOPMENT_TOOLS
def tips
<<-EOS.unindent
Mercurial 2.0.2 is preinstalled on all Co... | 20.611111 | 59 | 0.628032 |
c4b2d8f5c876e3bd9d217324d626ee92a3ffb01e | 3,911 | lua | Lua | lua/xdbot/serversidecode/xdbot_hooks_sv.lua | xDShot/xdbot | a12c23f09fcc89de04120f7178b47492e45b89d7 | [
"MIT"
] | 1 | 2021-01-08T23:19:00.000Z | 2021-01-08T23:19:00.000Z | lua/xdbot/serversidecode/xdbot_hooks_sv.lua | xDShot/xdbot | a12c23f09fcc89de04120f7178b47492e45b89d7 | [
"MIT"
] | 1 | 2019-12-03T11:37:05.000Z | 2019-12-03T11:37:05.000Z | lua/xdbot/serversidecode/xdbot_hooks_sv.lua | xDShot/xdbot | a12c23f09fcc89de04120f7178b47492e45b89d7 | [
"MIT"
] | 1 | 2021-08-15T18:53:19.000Z | 2021-08-15T18:53:19.000Z | local list = list
local hook = hook
hook.Add( "StartCommand", "HookXDBotControlSV", function( ply, cmd )
if ply:GetNWBool( "isXDBot" ) then
if ply:IsPlayer() and not ply:IsBot() then
--remove controller if player pressed buttons and give back control to player, so he's no more bot.
if SERVER and cmd:GetButto... | 34.307018 | 134 | 0.66786 |
a30019990421cb540a2aca0e12d30bfe1684466b | 7,993 | h | C | src/core/web_page_base.h | webosose/wam | 5d3eb5d50a176fb82c1fa5564655277181c9235a | [
"Apache-2.0"
] | 12 | 2018-03-22T18:51:21.000Z | 2020-07-18T03:57:53.000Z | src/core/web_page_base.h | webosose/wam | 5d3eb5d50a176fb82c1fa5564655277181c9235a | [
"Apache-2.0"
] | 24 | 2018-10-30T10:33:03.000Z | 2020-06-02T19:59:29.000Z | src/core/web_page_base.h | webosose/wam | 5d3eb5d50a176fb82c1fa5564655277181c9235a | [
"Apache-2.0"
] | 17 | 2018-03-22T18:51:24.000Z | 2021-11-19T13:03:43.000Z | // Copyright (c) 2013-2021 LG Electronics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... | 37.70283 | 80 | 0.74853 |
df648307303da0dc660c3e9ba27fe916d75e30e3 | 680 | rb | Ruby | lib/cfn-nag/custom_rules/LambdaPermissionWildcardPrincipalRule.rb | djonesshargani1-godaddy/cfn_nag | 6eaefddba07e131e13b2220e6106d42e0adbd52d | [
"MIT"
] | 1,024 | 2016-03-02T21:24:55.000Z | 2022-03-30T16:36:43.000Z | lib/cfn-nag/custom_rules/LambdaPermissionWildcardPrincipalRule.rb | djonesshargani1-godaddy/cfn_nag | 6eaefddba07e131e13b2220e6106d42e0adbd52d | [
"MIT"
] | 425 | 2016-02-25T15:42:37.000Z | 2022-03-25T11:08:31.000Z | lib/cfn-nag/custom_rules/LambdaPermissionWildcardPrincipalRule.rb | djonesshargani1-godaddy/cfn_nag | 6eaefddba07e131e13b2220e6106d42e0adbd52d | [
"MIT"
] | 223 | 2016-11-01T22:34:17.000Z | 2022-03-31T16:22:51.000Z | # frozen_string_literal: true
require 'cfn-nag/violation'
require 'cfn-model/model/lambda_principal'
require_relative 'base'
class LambdaPermissionWildcardPrincipalRule < BaseRule
def rule_text
'Lambda permission principal should not be wildcard'
end
def rule_type
Violation::FAILING_VIOLATION
end
... | 23.448276 | 83 | 0.783824 |