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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
53b69dc852d76e416dcc42d5a51b374859da6222 | 643 | java | Java | application-server/src/main/java/de/msg/iot/anki/application/entity/Track.java | Aspern/anki-overdrive | 9937a8b084af2ddac42951d0a8177cbced625a20 | [
"Apache-2.0"
] | null | null | null | application-server/src/main/java/de/msg/iot/anki/application/entity/Track.java | Aspern/anki-overdrive | 9937a8b084af2ddac42951d0a8177cbced625a20 | [
"Apache-2.0"
] | null | null | null | application-server/src/main/java/de/msg/iot/anki/application/entity/Track.java | Aspern/anki-overdrive | 9937a8b084af2ddac42951d0a8177cbced625a20 | [
"Apache-2.0"
] | null | null | null | package de.msg.iot.anki.application.entity;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;
@XmlRootElement
@Entity
public class Track {
@Id
@GeneratedValue(strategy = GenerationType.TABLE)
private long id;
@OneToMany(cascade = CascadeType.PERSIST... | 18.911765 | 67 | 0.654743 |
cb85450a831d89dfb631cd5521a6035e08dc11cd | 1,028 | go | Go | example/for.go | edwingeng/go2lua | 94ba18c468b457456779e817ba33615836259c21 | [
"BSD-3-Clause"
] | 3 | 2019-11-05T06:07:32.000Z | 2021-07-22T10:19:00.000Z | example/for.go | edwingeng/go2lua | 94ba18c468b457456779e817ba33615836259c21 | [
"BSD-3-Clause"
] | null | null | null | example/for.go | edwingeng/go2lua | 94ba18c468b457456779e817ba33615836259c21 | [
"BSD-3-Clause"
] | null | null | null | package example
func forLoop1() {
for {
break
}
}
func forLoop2() {
for i := 0; i < 3; i++ {
// Empty
}
}
func forLoop3() {
i := 0
for i < 1 {
break
}
}
func forLoop4() {
for i := 0; ; {
println(i)
break
}
}
func forLoop5() {
i := 0
for ; ; i++ {
if i >= 1 {
break
}
}
}
func forLoop6(... | 9.518519 | 25 | 0.459144 |
39640d4e5214aedf779bcb4bebd392a27fc71801 | 267 | html | HTML | app/views/includes/phase.html | htmlandbacon/register-your-balloon | 6d2e40b59f32ac8eb23c69895bcd08bbbcfff7f0 | [
"MIT"
] | null | null | null | app/views/includes/phase.html | htmlandbacon/register-your-balloon | 6d2e40b59f32ac8eb23c69895bcd08bbbcfff7f0 | [
"MIT"
] | null | null | null | app/views/includes/phase.html | htmlandbacon/register-your-balloon | 6d2e40b59f32ac8eb23c69895bcd08bbbcfff7f0 | [
"MIT"
] | null | null | null | <div class="govuk-width-container">
{{ govukPhaseBanner({
tag: {
text: "DEMO"
},
html: 'This is a new service – your <a class="govuk-link" href="/steps/feedbac">feedback</a> will help us to improve it.'
}) }}
</div> | 33.375 | 129 | 0.535581 |
fc539acbcb6cdea0c78c746dc712eca00d48163e | 749 | sql | SQL | bitrix/modules/intranet/install/db/oracle/uninstall.sql | BuildingBridge/biznet | 0e9e864be99e01bd35f4321a04736866937897b0 | [
"Unlicense"
] | 1 | 2020-10-05T04:28:40.000Z | 2020-10-05T04:28:40.000Z | bitrix/modules/intranet/install/db/oracle/uninstall.sql | shuchitamathur28/bitrix24 | fafc179382f028989a4ee4a5f97422e49b1526b4 | [
"Unlicense"
] | null | null | null | bitrix/modules/intranet/install/db/oracle/uninstall.sql | shuchitamathur28/bitrix24 | fafc179382f028989a4ee4a5f97422e49b1526b4 | [
"Unlicense"
] | null | null | null | DROP TABLE b_intranet_sharepoint CASCADE CONSTRAINTS
/
DROP TABLE b_intranet_sharepoint_field CASCADE CONSTRAINTS
/
DROP TABLE b_intranet_sharepoint_queue CASCADE CONSTRAINTS
/
DROP SEQUENCE sq_b_intranet_sharepoint_queue
/
DROP TABLE b_intranet_sharepoint_log CASCADE CONSTRAINTS
/
DROP SEQUENCE sq_b_intranet_sharepo... | 26.75 | 59 | 0.875834 |
df4994f6b585a8502e4155c0b673f97c39d2b95a | 4,653 | dart | Dart | test/features/application_preferences/presentation/bloc/preferences/app_preferences_bloc_test.dart | anCRONIK/bloc-preferences | 746634b8367d637b6aef524593a2d6c78fecccae | [
"MIT"
] | null | null | null | test/features/application_preferences/presentation/bloc/preferences/app_preferences_bloc_test.dart | anCRONIK/bloc-preferences | 746634b8367d637b6aef524593a2d6c78fecccae | [
"MIT"
] | null | null | null | test/features/application_preferences/presentation/bloc/preferences/app_preferences_bloc_test.dart | anCRONIK/bloc-preferences | 746634b8367d637b6aef524593a2d6c78fecccae | [
"MIT"
] | null | null | null | import 'package:bloc_test/bloc_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/mockito.dart';
import 'package:blocpreferences/core/error/failures.dart';
import 'package:blocpreferences/features/application_preferences/domain/entities/app_preferences.dart';
import 'package:blocprefer... | 50.032258 | 166 | 0.746185 |
715942deb27b250257c39805c78594aabe82068d | 336 | ps1 | PowerShell | Public/New-FreshServiceRequest.ps1 | tslight/TSFresh | fa7fb5f1350ff7617546e777547d8f7b9f773873 | [
"0BSD"
] | null | null | null | Public/New-FreshServiceRequest.ps1 | tslight/TSFresh | fa7fb5f1350ff7617546e777547d8f7b9f773873 | [
"0BSD"
] | null | null | null | Public/New-FreshServiceRequest.ps1 | tslight/TSFresh | fa7fb5f1350ff7617546e777547d8f7b9f773873 | [
"0BSD"
] | null | null | null | function New-FreshServiceRequest {
param (
[Parameter(Mandatory = $true)]
[object]$Body,
[Parameter(Mandatory = $true)]
[string]$ItemDisplayId
)
$Uri = "/catalog/request_items/$ItemDisplayId/service_request.json"
$json = ConvertTo-Json $Body -Depth 3
New-FreshRequest -Method Post -Resource $Ur... | 24 | 71 | 0.696429 |
604ffe543df37c0ab53ce30f6a614a642fe8c59e | 53 | html | HTML | google90c52bb465f13384.html | jennysoon/jennysoon.github.io | 7eefac3e070a2ac871ecbebcb3a799cb4480b327 | [
"CC-BY-3.0"
] | null | null | null | google90c52bb465f13384.html | jennysoon/jennysoon.github.io | 7eefac3e070a2ac871ecbebcb3a799cb4480b327 | [
"CC-BY-3.0"
] | null | null | null | google90c52bb465f13384.html | jennysoon/jennysoon.github.io | 7eefac3e070a2ac871ecbebcb3a799cb4480b327 | [
"CC-BY-3.0"
] | null | null | null | google-site-verification: google90c52bb465f13384.html | 53 | 53 | 0.90566 |
a77bbc00258afa5854256fb30c8442c078c4737b | 1,416 | dart | Dart | lib/games/hnb/hnb_engine.dart | z7workbench/minigames | 6d99b7e061f0bfc091591f4b454afda07b483528 | [
"MIT"
] | 8 | 2022-01-03T13:21:56.000Z | 2022-03-21T14:59:29.000Z | lib/games/hnb/hnb_engine.dart | z7workbench/minigames | 6d99b7e061f0bfc091591f4b454afda07b483528 | [
"MIT"
] | null | null | null | lib/games/hnb/hnb_engine.dart | z7workbench/minigames | 6d99b7e061f0bfc091591f4b454afda07b483528 | [
"MIT"
] | 1 | 2022-01-04T12:48:06.000Z | 2022-01-04T12:48:06.000Z | import 'dart:collection';
import 'dart:math';
class HitAndBlowEngine {
bool allowDuplicate;
int balls;
List<int> answer = [];
int numberRange = 6;
HashMap<int, int> stats = HashMap();
HitAndBlowEngine(this.balls, this.allowDuplicate) {
var random = Random();
var index = -1;
for (var i = 0; i <... | 24 | 70 | 0.562147 |
cdb497ee1869b8d4d1e497ff9de5c6399dee9b13 | 366 | kt | Kotlin | app/src/main/java/com/kylix/submissionbajp3/model/remote/response/MovieModelResponse.kt | KylixEza/Submission-BAJP3-Dicoding | 81841574ec752bf40946592ad333b790c5abb933 | [
"MIT"
] | 3 | 2020-12-22T08:05:48.000Z | 2021-12-20T07:41:23.000Z | app/src/main/java/com/kylix/submissionbajp3/model/remote/response/MovieModelResponse.kt | KylixEza/Submission-BAJP3-Dicoding | 81841574ec752bf40946592ad333b790c5abb933 | [
"MIT"
] | null | null | null | app/src/main/java/com/kylix/submissionbajp3/model/remote/response/MovieModelResponse.kt | KylixEza/Submission-BAJP3-Dicoding | 81841574ec752bf40946592ad333b790c5abb933 | [
"MIT"
] | null | null | null | package com.kylix.submissionbajp3.model.remote.response
data class MovieModelResponse (
val movieId: Int? = 0,
val movieTitle: String? = "",
val movieDescription: String? = "",
val movieRelease: String?= "",
val movieGenre: String? = "",
val movieDuration: String? = "",
val movieRating : St... | 30.5 | 55 | 0.644809 |
fb76164997ba0e3527dc90b6fe31b1cc339ee9cf | 2,756 | java | Java | src/main/java/nl/dtls/fairdatapoint/service/metadata/generic/GenericMetadataService.java | EOSC-synergy/FAIRDataPoint | 4d5e6eb8722b9ae6cd73f7e9f565f84568b5ef18 | [
"MIT"
] | 1 | 2021-10-17T03:04:39.000Z | 2021-10-17T03:04:39.000Z | src/main/java/nl/dtls/fairdatapoint/service/metadata/generic/GenericMetadataService.java | EOSC-synergy/FAIRDataPoint | 4d5e6eb8722b9ae6cd73f7e9f565f84568b5ef18 | [
"MIT"
] | 11 | 2021-12-27T02:23:32.000Z | 2022-03-25T02:26:40.000Z | src/main/java/nl/dtls/fairdatapoint/service/metadata/generic/GenericMetadataService.java | EOSC-synergy/FAIRDataPoint | 4d5e6eb8722b9ae6cd73f7e9f565f84568b5ef18 | [
"MIT"
] | null | null | null | /**
* The MIT License
* Copyright © 2017 DTL
*
* 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, merg... | 45.933333 | 143 | 0.758708 |
6a1114d524a98f0def2be1971d0f477cb5c91412 | 1,167 | dart | Dart | test/staff_data_test.dart | wondenge/fineract.dart | 472f5d60d345365b6c362c20bc3f6fbcf4aad622 | [
"Apache-2.0"
] | 1 | 2022-03-19T12:23:23.000Z | 2022-03-19T12:23:23.000Z | test/staff_data_test.dart | wondenge/fineract.dart | 472f5d60d345365b6c362c20bc3f6fbcf4aad622 | [
"Apache-2.0"
] | null | null | null | test/staff_data_test.dart | wondenge/fineract.dart | 472f5d60d345365b6c362c20bc3f6fbcf4aad622 | [
"Apache-2.0"
] | null | null | null | import 'package:openapi/api.dart';
import 'package:test/test.dart';
// tests for StaffData
void main() {
var instance = new StaffData();
group('test StaffData', () {
// int id (default value: null)
test('to test the property `id`', () async {
// TODO
});
// String firstname (default value... | 22.018868 | 57 | 0.56641 |
fb5c5e2b1407a3b1aa4e8e57ee92c7417c9ac518 | 142 | h | C | src/globalinclude/common/basecommon.h | tangtgithub/common_robotframe | f098d688bde1d2b2d5d6fac430c98b952621b7c1 | [
"MIT"
] | 5 | 2021-07-21T11:38:09.000Z | 2021-11-26T03:16:09.000Z | src/globalinclude/common/basecommon.h | tangtgithub/common_robotframe | f098d688bde1d2b2d5d6fac430c98b952621b7c1 | [
"MIT"
] | null | null | null | src/globalinclude/common/basecommon.h | tangtgithub/common_robotframe | f098d688bde1d2b2d5d6fac430c98b952621b7c1 | [
"MIT"
] | null | null | null | #ifndef __BASECOMMON_H
#define __BASECOMMON_H
#ifndef SUCCESS
#define SUCCESS 0
#endif
#ifndef FAILURE
#define FAILURE -1
#endif
#endif
| 8.875 | 22 | 0.767606 |
e54d0ad14a5df6b1c1cb3567da7dcacccd6a8170 | 1,330 | tsx | TypeScript | src/components/SkjemaFeiloppsummering.tsx | navikt/syfomodiaperson | 5d99a9a618779284f813c66fb1a479be02305c15 | [
"MIT"
] | null | null | null | src/components/SkjemaFeiloppsummering.tsx | navikt/syfomodiaperson | 5d99a9a618779284f813c66fb1a479be02305c15 | [
"MIT"
] | 111 | 2020-02-26T15:17:37.000Z | 2022-03-30T11:34:02.000Z | src/components/SkjemaFeiloppsummering.tsx | navikt/syfomodiaperson | 5d99a9a618779284f813c66fb1a479be02305c15 | [
"MIT"
] | null | null | null | import { Feiloppsummering, FeiloppsummeringFeil } from "nav-frontend-skjema";
import React, { ReactElement, useEffect, useRef } from "react";
import { harFeilmeldinger, SkjemaFeil } from "@/utils/valideringUtils";
import { FlexColumn, FlexRow, PaddingSize } from "./Layout";
interface SkjemaFeiloppsummeringProps {
er... | 28.297872 | 79 | 0.653383 |
548ad716956c5e82e455a5098252dc7664d726e5 | 3,653 | sql | SQL | script/package/pkg_log_i.body.sql | lourencomcviana/log-schema | 926fc3f63896d4f5a7a39f05beb87691f0967f81 | [
"MIT"
] | 2 | 2019-05-31T05:37:22.000Z | 2019-11-05T17:03:55.000Z | script/package/pkg_log_i.body.sql | lourencomcviana/log-schema | 926fc3f63896d4f5a7a39f05beb87691f0967f81 | [
"MIT"
] | null | null | null | script/package/pkg_log_i.body.sql | lourencomcviana/log-schema | 926fc3f63896d4f5a7a39f05beb87691f0967f81 | [
"MIT"
] | 1 | 2019-05-31T05:37:27.000Z | 2019-05-31T05:37:27.000Z | create or replace PACKAGE BODY log_audit.PKG_LOG_I AS
FUNCTION TO_XML(p_resource IN CLOB)
RETURN XMLTYPE IS
T_ENTRADA XMLTYPE;
BEGIN
IF (p_resource IS NOT NULL)
THEN
T_ENTRADA := XMLTYPE(p_resource);
END IF;
RETURN T_ENTRADA;
END;
procedure P_LOG(P_Mensagem IN VARCH... | 30.957627 | 116 | 0.692855 |
04d230f61a7275d50b5448662f7dd8f56b679de3 | 703 | java | Java | app/src/main/java/org/andresoviedo/app/model3D/Atlas/CustomRelativeLayout.java | jolyDev/muse | a80e6a01ed29d9da508eda7b3bd05dbb2f8450e2 | [
"MIT"
] | 1 | 2021-01-09T18:16:51.000Z | 2021-01-09T18:16:51.000Z | app/src/main/java/org/andresoviedo/app/model3D/Atlas/CustomRelativeLayout.java | jolyDev/muse | a80e6a01ed29d9da508eda7b3bd05dbb2f8450e2 | [
"MIT"
] | null | null | null | app/src/main/java/org/andresoviedo/app/model3D/Atlas/CustomRelativeLayout.java | jolyDev/muse | a80e6a01ed29d9da508eda7b3bd05dbb2f8450e2 | [
"MIT"
] | null | null | null | package org.andresoviedo.app.model3D.Atlas;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.RelativeLayout;
public abstract class CustomRelativeLayout extends RelativeLayout {
public CustomRelativeLayout(Context context) {
super(context);
}
public CustomRe... | 26.037037 | 74 | 0.668563 |
fbe6b5aa264cdce2b2ac6a9dc55c3e6d7cf28b1f | 19,313 | java | Java | src/main/java/org/mmarini/genesis/model3/DDRMWrapper.java | m-marini/genesis | c8e94c3f11e1ff3a2b97e624a4d19c16eb288762 | [
"MIT"
] | null | null | null | src/main/java/org/mmarini/genesis/model3/DDRMWrapper.java | m-marini/genesis | c8e94c3f11e1ff3a2b97e624a4d19c16eb288762 | [
"MIT"
] | 4 | 2021-07-13T12:55:20.000Z | 2022-01-10T23:32:32.000Z | src/main/java/org/mmarini/genesis/model3/DDRMWrapper.java | m-marini/genesis | c8e94c3f11e1ff3a2b97e624a4d19c16eb288762 | [
"MIT"
] | null | null | null | /*
*
* Copyright (c) 2021 Marco Marini, marco.marini@mmarini.org
*
* 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... | 32.028192 | 128 | 0.532646 |
dc168bd0e7005a5e22eaf2162f8fc80c926108a9 | 7,426 | py | Python | widgets/RawBitmapAccess.py | iubica/wx-portfolio | 12101986db72bcaffd9b744d514d6f9f651ad5a1 | [
"MIT"
] | 3 | 2018-03-19T07:57:10.000Z | 2021-07-05T08:55:14.000Z | widgets/RawBitmapAccess.py | iubica/wx-portfolio | 12101986db72bcaffd9b744d514d6f9f651ad5a1 | [
"MIT"
] | 6 | 2020-03-24T15:40:18.000Z | 2021-12-13T19:46:09.000Z | widgets/RawBitmapAccess.py | iubica/wx-portfolio | 12101986db72bcaffd9b744d514d6f9f651ad5a1 | [
"MIT"
] | 4 | 2018-03-29T21:59:55.000Z | 2019-12-16T14:56:38.000Z | #!/usr/bin/env python
import wx
# use the numpy code instead of the raw access code for comparison
USE_NUMPY = False
# time the execution of making a bitmap?
TIMEIT = False
# how big to make the bitmaps
DIM = 100
# should we use a wx.GraphicsContext for painting?
TEST_GC = False
#---------------------------------... | 35.5311 | 75 | 0.58551 |
74b5358d0a598762ad1fca2d0b407acbb0924990 | 1,673 | js | JavaScript | pages/plugins/index.js | lizheming/drone-plugin-index | 9bea7bb84f71d728c91255ee557aba6007e3b0b7 | [
"MIT"
] | null | null | null | pages/plugins/index.js | lizheming/drone-plugin-index | 9bea7bb84f71d728c91255ee557aba6007e3b0b7 | [
"MIT"
] | null | null | null | pages/plugins/index.js | lizheming/drone-plugin-index | 9bea7bb84f71d728c91255ee557aba6007e3b0b7 | [
"MIT"
] | null | null | null | import Head from "next/head";
import Image from "next/image";
import Link from "next/link";
import layoutStyles from "../../styles/Layout.module.css";
import utilStyles from "../../styles/utils.module.css";
const title = 'Drone Plugin Index'
const Plugins = () => {
return (
<>
<Head>
<title>{title... | 28.355932 | 66 | 0.517035 |
e7408d9ee53a491a4bc98dfcda8cefe3afb21878 | 1,076 | js | JavaScript | src/admin/components/form/filefield/actions.js | ccetc/mahaplatform.com | 6e8610fe6e835e071492784655dbb5502863d031 | [
"MIT"
] | null | null | null | src/admin/components/form/filefield/actions.js | ccetc/mahaplatform.com | 6e8610fe6e835e071492784655dbb5502863d031 | [
"MIT"
] | 52 | 2019-10-28T15:38:35.000Z | 2022-02-28T04:23:48.000Z | src/lib/admin/components/form/filefield/actions.js | mahaplatform/mahaplatform.com | a96d8f7b12288c7cb01b036077182238c77d5b03 | [
"MIT"
] | null | null | null | export const setReady = () => ({
type: 'SET_READY'
})
export const loadFiles = (endpoint, token, ids) => ({
type: 'API_REQUEST',
method: 'GET',
endpoint,
query: {
$filter: {
id: {
$in: ids
}
}
},
token,
request: 'LOAD_FILES_REQUEST',
success: 'LOAD_FILES_SUCCESS',
failur... | 18.237288 | 93 | 0.64777 |
6da28bf60585f8e4b533a699df4317eb594430ff | 6,376 | asm | Assembly | src/shaders/h264/ildb/AVC_ILDB_Filter_UV_v.asm | me176c-dev/android_hardware_intel-vaapi-driver | 0f2dca8d604220405e4678c0b6c4faa578d994ec | [
"MIT"
] | 192 | 2018-01-26T11:51:55.000Z | 2022-03-25T20:04:19.000Z | src/shaders/h264/ildb/AVC_ILDB_Filter_UV_v.asm | me176c-dev/android_hardware_intel-vaapi-driver | 0f2dca8d604220405e4678c0b6c4faa578d994ec | [
"MIT"
] | 256 | 2017-01-23T02:10:27.000Z | 2018-01-23T10:00:05.000Z | src/shaders/h264/ildb/AVC_ILDB_Filter_UV_v.asm | me176c-dev/android_hardware_intel-vaapi-driver | 0f2dca8d604220405e4678c0b6c4faa578d994ec | [
"MIT"
] | 64 | 2018-01-30T19:51:53.000Z | 2021-11-24T01:26:14.000Z | /*
* Copyright © <2010>, Intel Corporation.
*
* 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, merg... | 36.227273 | 113 | 0.625 |
2d9b51f3d4096dd55ae52550374b00dc01128231 | 1,991 | html | HTML | content/post/2020-04-15-virtual-learning-corporate-sponsorship.html | brophyj/cv_brophy_1 | 073c7f85d41a6e62183716d50a131b430ce2e893 | [
"MIT"
] | null | null | null | content/post/2020-04-15-virtual-learning-corporate-sponsorship.html | brophyj/cv_brophy_1 | 073c7f85d41a6e62183716d50a131b430ce2e893 | [
"MIT"
] | null | null | null | content/post/2020-04-15-virtual-learning-corporate-sponsorship.html | brophyj/cv_brophy_1 | 073c7f85d41a6e62183716d50a131b430ce2e893 | [
"MIT"
] | null | null | null | ---
title: Virtual Learning & Corporate Sponsorship
author: jay brophy
date: '2020-04-15'
slug: virtual-learning-corporate-sponsorship
categories: []
tags: []
subtitle: ''
summary: ''
authors: []
lastmod: '2020-04-15T20:43:31-04:00'
featured: no
image:
caption: ''
focal_point: ''
preview_only: no
projects: []
---... | 60.333333 | 518 | 0.765947 |
e99f0f6926564e9aecab7c628368f305f93e6ea7 | 2,586 | go | Go | server.go | go-pkgz/mongo | ccd6f6bcd446a74698fb3476c9ead00e51d30e64 | [
"MIT"
] | 14 | 2018-07-25T07:23:05.000Z | 2020-09-15T11:06:17.000Z | server.go | go-pkgz/mongo | ccd6f6bcd446a74698fb3476c9ead00e51d30e64 | [
"MIT"
] | 2 | 2019-10-07T02:36:29.000Z | 2019-11-22T07:30:55.000Z | server.go | go-pkgz/mongo | ccd6f6bcd446a74698fb3476c9ead00e51d30e64 | [
"MIT"
] | null | null | null | package mongo
import (
"context"
"errors"
"fmt"
"io"
"io/ioutil"
"net/url"
"strings"
"go.mongodb.org/mongo-driver/bson"
driver "go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/mongo/options"
)
// Connect to mongo url and return client. Supports expanded url params to pass a set of custom va... | 26.387755 | 142 | 0.658159 |
fba1c07476c59b65391c155b69b1f0231ebd3d5b | 877 | java | Java | lib/src/main/java/ninja/codingsolutions/solaredgeapiclient/models/EnergyDetails.java | Merano01/solar-edge-api-client | 09ef3c85fd170d590ac9a1a0fed3dd61a227eeb0 | [
"MIT"
] | 1 | 2021-05-21T10:50:15.000Z | 2021-05-21T10:50:15.000Z | lib/src/main/java/ninja/codingsolutions/solaredgeapiclient/models/EnergyDetails.java | Merano01/solar-edge-api-client | 09ef3c85fd170d590ac9a1a0fed3dd61a227eeb0 | [
"MIT"
] | 12 | 2021-02-10T02:56:08.000Z | 2021-07-20T23:48:05.000Z | lib/src/main/java/ninja/codingsolutions/solaredgeapiclient/models/EnergyDetails.java | Merano01/solar-edge-api-client | 09ef3c85fd170d590ac9a1a0fed3dd61a227eeb0 | [
"MIT"
] | 2 | 2021-02-11T00:59:17.000Z | 2021-05-21T06:34:05.000Z | package ninja.codingsolutions.solaredgeapiclient.models;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import ninja.codingsolutions.solaredgeapiclient.models.impl.EnergyDetailsImpl;
import java.util.List;
/**
* Energy details
*/
@JsonDeserialize(as = EnergyDetailsImpl.class)
public interface En... | 28.290323 | 78 | 0.720639 |
11c61886db6ccef28adb8269ea8d3991cf22f74f | 281 | sql | SQL | Database/dbo/Stored Procedures/AddTableColumn.sql | cizmiak/ContractManagement | 55d46eb0ae32686935bc4704f41343cf166d95b8 | [
"MIT"
] | null | null | null | Database/dbo/Stored Procedures/AddTableColumn.sql | cizmiak/ContractManagement | 55d46eb0ae32686935bc4704f41343cf166d95b8 | [
"MIT"
] | null | null | null | Database/dbo/Stored Procedures/AddTableColumn.sql | cizmiak/ContractManagement | 55d46eb0ae32686935bc4704f41343cf166d95b8 | [
"MIT"
] | null | null | null | CREATE procedure dbo.AddTableColumn
@table nvarchar(128),
@column nvarchar(128),
@type nvarchar(128)
as
if not exists (select * from sys.columns where object_id = object_id(@table) and name = @column)
begin
exec ('alter table ' + @table + ' add ' + @column + ' ' + @type)
end
| 28.1 | 96 | 0.690391 |
8c0feb7f15d8ba5b378ffcc5b760eeb8d566b5b8 | 384 | cql | SQL | demos/demo.cql | bovine/casstcl | 67006b9fb4301d3930731ce986d2d00ca950ff5e | [
"BSD-3-Clause"
] | 12 | 2015-02-24T08:32:52.000Z | 2021-12-28T03:04:28.000Z | demos/demo.cql | bovine/casstcl | 67006b9fb4301d3930731ce986d2d00ca950ff5e | [
"BSD-3-Clause"
] | 2 | 2015-08-21T00:04:01.000Z | 2020-08-03T16:19:15.000Z | demos/demo.cql | bovine/casstcl | 67006b9fb4301d3930731ce986d2d00ca950ff5e | [
"BSD-3-Clause"
] | 5 | 2015-06-20T08:09:52.000Z | 2020-08-04T21:42:02.000Z |
DROP KEYSPACE IF EXISTS casstcl_test;
CREATE KEYSPACE casstcl_test WITH replication = {'class': 'SimpleStrategy', 'replication_factor':1};
USE casstcl_test;
DROP TABLE IF EXISTS numbers;
CREATE TABLE numbers (
row int,
mylist list<text>,
myset set<text>,
mymap map<int,text>,
primary key(row)
);
CREATE TABLE... | 15.36 | 100 | 0.734375 |
a9f235714975ea35b0542fc7188209e061f6821c | 48 | sql | SQL | tests/queries/118-bool-where-lte-1-0.sql | pydemo/spv_14.4 | ad3b62d6bdbbfc29e56391f512ba0ee17dad4eb7 | [
"Apache-2.0"
] | null | null | null | tests/queries/118-bool-where-lte-1-0.sql | pydemo/spv_14.4 | ad3b62d6bdbbfc29e56391f512ba0ee17dad4eb7 | [
"Apache-2.0"
] | null | null | null | tests/queries/118-bool-where-lte-1-0.sql | pydemo/spv_14.4 | ad3b62d6bdbbfc29e56391f512ba0ee17dad4eb7 | [
"Apache-2.0"
] | null | null | null | select count(*) from nulls where bool_0 <= 1
49
| 16 | 44 | 0.708333 |
58cc75a4fecc2a66a47f5da35135a9ec14d107cc | 1,250 | rs | Rust | src/main.rs | h0gan1ee/rusty-tree | 97dfe0c62b9afd79f47e5dec8d195ed43b618fd6 | [
"MIT"
] | 1 | 2022-02-13T10:23:36.000Z | 2022-02-13T10:23:36.000Z | src/main.rs | h0gan1ee/rusty-tree | 97dfe0c62b9afd79f47e5dec8d195ed43b618fd6 | [
"MIT"
] | null | null | null | src/main.rs | h0gan1ee/rusty-tree | 97dfe0c62b9afd79f47e5dec8d195ed43b618fd6 | [
"MIT"
] | null | null | null | use anyhow::Result;
use cli::*;
use io::*;
use std::path::PathBuf;
use structopt::StructOpt;
use tree::Tree;
mod cli;
mod io;
mod parse;
mod tree;
const DEFAULT_FILE_PATH: &str = "./tree.yart";
fn main() -> Result<()> {
let CommandLineArgs { action, input_file } = CommandLineArgs::from_args();
let input_file... | 26.595745 | 95 | 0.5968 |
7743df2899d6874afb2c53a8fe2aa7537f5c5f8f | 91 | swift | Swift | Tests/LinuxMain.swift | ghjang/chord | f1b9b114c0b53e29ece66f8ed1932eb055dd47d4 | [
"MIT"
] | null | null | null | Tests/LinuxMain.swift | ghjang/chord | f1b9b114c0b53e29ece66f8ed1932eb055dd47d4 | [
"MIT"
] | null | null | null | Tests/LinuxMain.swift | ghjang/chord | f1b9b114c0b53e29ece66f8ed1932eb055dd47d4 | [
"MIT"
] | null | null | null | import XCTest
@testable import chordTests
XCTMain([
testCase(chordTests.allTests),
])
| 13 | 34 | 0.758242 |
a14a3337c1c6391fba83c7423862780c0fc7238f | 1,666 | swift | Swift | Lemmy-iOS/Sources/Features/Instances/Instances/Views/InstancesView.swift | vladmusuz/Lemmy-iOS | b5697f48bcc2b37c8de89995d795681815675d68 | [
"MIT"
] | 34 | 2020-12-19T00:50:47.000Z | 2021-07-19T04:02:43.000Z | Lemmy-iOS/Sources/Features/Instances/Instances/Views/InstancesView.swift | vladmusuz/Lemmy-iOS | b5697f48bcc2b37c8de89995d795681815675d68 | [
"MIT"
] | 17 | 2021-07-21T12:25:37.000Z | 2022-03-31T16:40:03.000Z | Lemmy-iOS/Sources/Features/Instances/Instances/Views/InstancesView.swift | vladmusuz/Lemmy-iOS | b5697f48bcc2b37c8de89995d795681815675d68 | [
"MIT"
] | 3 | 2022-03-07T15:01:34.000Z | 2022-03-31T23:05:40.000Z | //
// InstancesView.swift
// Lemmy-iOS
//
// Created by uuttff8 on 19.12.2020.
// Copyright © 2020 Anton Kuzmin. All rights reserved.
//
import UIKit
final class InstancesView: UIView {
private let termsView = TermsOfUseView()
private let tableView = LemmyTableView(style: .insetGrouped, separato... | 24.144928 | 87 | 0.627851 |
12222e67cc7c7355c9cfe618b10d637711db943e | 10,270 | sql | SQL | db_onlearning.sql | gnocman/CDTNKHMT | 72fb08c1fcf774c15daa693953046ddbd2727316 | [
"MIT"
] | null | null | null | db_onlearning.sql | gnocman/CDTNKHMT | 72fb08c1fcf774c15daa693953046ddbd2727316 | [
"MIT"
] | null | null | null | db_onlearning.sql | gnocman/CDTNKHMT | 72fb08c1fcf774c15daa693953046ddbd2727316 | [
"MIT"
] | null | null | null | -- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 19, 2020 at 02:19 AM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | 43.151261 | 269 | 0.639046 |
9377f91ead7712c61d3ff049de38ae2871e9eb08 | 1,539 | rs | Rust | test/src/sdk-harness/test_projects/script_data/mod.rs | FuelLabs/sway | 0190b5dac4735fd2a34528e48cc2e0c9606b5ce8 | [
"Apache-2.0"
] | 75 | 2022-01-03T17:05:46.000Z | 2022-03-26T13:25:56.000Z | test/src/sdk-harness/test_projects/script_data/mod.rs | FuelLabs/sway | 0190b5dac4735fd2a34528e48cc2e0c9606b5ce8 | [
"Apache-2.0"
] | 442 | 2022-01-03T17:12:10.000Z | 2022-03-31T23:30:21.000Z | test/src/sdk-harness/test_projects/script_data/mod.rs | FuelLabs/sway | 0190b5dac4735fd2a34528e48cc2e0c9606b5ce8 | [
"Apache-2.0"
] | 25 | 2022-01-03T18:45:19.000Z | 2022-03-25T17:24:58.000Z | use assert_matches::assert_matches;
use fuel_core::service::{Config, FuelService};
use fuel_gql_client::client::FuelClient;
use fuels::contract::script::Script;
use fuels::tx::{default_parameters::MAX_GAS_PER_TX, Receipt, Transaction};
async fn call_script(script_data: Vec<u8>) -> Result<Vec<Receipt>, fuels::prelude::... | 34.977273 | 97 | 0.679662 |
e7507456b74f80b6d4f750753c4f99abb766d8dc | 333 | js | JavaScript | src/extension/firefox/data/content.js | humina/mraid-extension | 96fec2dd85dae8d494ff080ae2d1850e83336d16 | [
"Apache-2.0"
] | 18 | 2015-02-03T19:32:51.000Z | 2021-03-17T18:06:40.000Z | src/extension/firefox/data/content.js | humina/mraid-extension | 96fec2dd85dae8d494ff080ae2d1850e83336d16 | [
"Apache-2.0"
] | 2 | 2016-03-16T22:01:41.000Z | 2018-02-23T19:59:56.000Z | src/extension/firefox/data/content.js | humina/mraid-extension | 96fec2dd85dae8d494ff080ae2d1850e83336d16 | [
"Apache-2.0"
] | 6 | 2015-02-03T19:32:53.000Z | 2022-02-21T08:54:00.000Z | var Resizer = require('../../resizer');
var resizer = new Resizer(),
origins;
resizer.on('save-origins', function(ev){
origins = ev.origins || [];
self.port.emit('save-origins', origins);
});
resizer.on('load-origins', function(ev){
ev.cb(origins);
});
self.port.on('load-origins', function(data){
origins = dat... | 18.5 | 44 | 0.636637 |
76388c673ec3eea248c0543096e28af9fb82e49d | 1,607 | go | Go | internal/messages/message.go | mattwalo32/RealTimeAPI | dc2fce6dd99cc68b5ab0f192ce54f38044ab0739 | [
"MIT"
] | null | null | null | internal/messages/message.go | mattwalo32/RealTimeAPI | dc2fce6dd99cc68b5ab0f192ce54f38044ab0739 | [
"MIT"
] | null | null | null | internal/messages/message.go | mattwalo32/RealTimeAPI | dc2fce6dd99cc68b5ab0f192ce54f38044ab0739 | [
"MIT"
] | null | null | null | package messages
import (
"encoding/json"
"fmt"
"github.com/google/uuid"
"net"
)
const (
MESSAGE_INVALID = iota
MESSAGE_ACKNOWLEDGE
MESSAGE_FIND_ROOM
MESSAGE_JOIN_ROOM
MESSAGE_LEAVE_ROOM
MESSAGE_JOIN_SERVER
MESSAGE_GAME_DATA
MESSAGE_HEARTBEAT
MESSAGE_STATUS
MESSAGE_END_GAME
)
type Message interface {
... | 19.361446 | 91 | 0.747355 |
00036849f3c5a44db5b595ae8f0ca1882d792d1e | 11,526 | swift | Swift | Tests/EditorTests/XCTestManifests.swift | keith/DrString | 4fad0e848771e5d19d7db5217402ae504c145afb | [
"MIT"
] | 156 | 2019-09-12T03:08:12.000Z | 2022-03-10T02:00:04.000Z | Tests/EditorTests/XCTestManifests.swift | keith/DrString | 4fad0e848771e5d19d7db5217402ae504c145afb | [
"MIT"
] | 82 | 2019-09-11T07:06:25.000Z | 2022-03-18T20:39:52.000Z | Tests/EditorTests/XCTestManifests.swift | keith/DrString | 4fad0e848771e5d19d7db5217402ae504c145afb | [
"MIT"
] | 6 | 2019-10-03T23:14:48.000Z | 2021-08-25T14:30:44.000Z | #if !canImport(ObjectiveC)
import XCTest
extension DocStringDescriptionFormattingTests {
// DO NOT MODIFY: This is autogenerated, use:
// `swift test --generate-linuxmain`
// to regenerate.
static let __allTests__DocStringDescriptionFormattingTests = [
("testDescriptionWithinColumnLimit", tes... | 59.107692 | 157 | 0.798542 |
af02f028ecaaffad5d1a17df8cab031d7ab1ce30 | 1,388 | kt | Kotlin | common/src/commonMain/kotlin/com.ottamotta.mozoli/dto/Solution.kt | rodionaltshuler/mozolimobile | 5a8ef86cf5d1eaa6177d2cdf50705ae1979a4e7b | [
"Apache-2.0"
] | 3 | 2018-11-18T19:44:53.000Z | 2018-11-19T15:00:47.000Z | common/src/commonMain/kotlin/com.ottamotta.mozoli/dto/Solution.kt | rodionaltshuler/mozolimobile | 5a8ef86cf5d1eaa6177d2cdf50705ae1979a4e7b | [
"Apache-2.0"
] | null | null | null | common/src/commonMain/kotlin/com.ottamotta.mozoli/dto/Solution.kt | rodionaltshuler/mozolimobile | 5a8ef86cf5d1eaa6177d2cdf50705ae1979a4e7b | [
"Apache-2.0"
] | null | null | null | package com.ottamotta.mozoli.dto
import kotlinx.serialization.Optional
import kotlinx.serialization.Serializable
import kotlin.jvm.JvmName
@Serializable
class Solution(var problemId: String? = null) {
@Optional
var isFlash: Boolean? = false
@JvmName("getIsFlash")
get() = field
@Optional
... | 25.703704 | 70 | 0.618876 |
0430c8afa168954f53e8e756ff9e731839dc523e | 1,424 | java | Java | javaStudy/src/main/java/Test3.java | pysmell/git-practice | 083ac4b42dce0ed54988204c51accbf486c2c008 | [
"Apache-2.0"
] | null | null | null | javaStudy/src/main/java/Test3.java | pysmell/git-practice | 083ac4b42dce0ed54988204c51accbf486c2c008 | [
"Apache-2.0"
] | null | null | null | javaStudy/src/main/java/Test3.java | pysmell/git-practice | 083ac4b42dce0ed54988204c51accbf486c2c008 | [
"Apache-2.0"
] | null | null | null | import java.util.*;
public class Test3 {
public static void main(String[] args) {
Map<String, String> map = new HashMap<>();
for (int i = 0;i < 100;i++) {
if (i < 10) {
map.put("0" + i, "djasj" + i);
} else {
map.put(i + "", "ssdsdjasj" + i... | 26.867925 | 64 | 0.550562 |
3a964952950f719117d4c11bbf7d781a73625f1c | 2,022 | swift | Swift | Pulse/Pulse/Core/Models/DataEngine.swift | tamirarnesty/Pulse | 07488624390ed241a3401c7834ce50519ba74fb3 | [
"MIT"
] | null | null | null | Pulse/Pulse/Core/Models/DataEngine.swift | tamirarnesty/Pulse | 07488624390ed241a3401c7834ce50519ba74fb3 | [
"MIT"
] | null | null | null | Pulse/Pulse/Core/Models/DataEngine.swift | tamirarnesty/Pulse | 07488624390ed241a3401c7834ce50519ba74fb3 | [
"MIT"
] | null | null | null | //
// DataEngine.swift
// Pulse
//
// Created by Tamir Arnesty on 2020-03-10.
// Copyright © 2020 Tamir Arnesty. All rights reserved.
//
import Foundation
// Shared singleton data instance, holds workouts for now
class DataEngine {
static let shared: DataEngine = DataEngine()
var user: User = User(fi... | 25.923077 | 93 | 0.637982 |
dda7a6d52008778db0e516fd494347cc7d80698c | 707 | php | PHP | app/Http/Controllers/AuthorsController.php | winter666/library | 3d18669229f0ccaa1e69c36085c0ba3135d7160e | [
"MIT"
] | null | null | null | app/Http/Controllers/AuthorsController.php | winter666/library | 3d18669229f0ccaa1e69c36085c0ba3135d7160e | [
"MIT"
] | 1 | 2021-02-02T19:20:15.000Z | 2021-02-02T19:20:15.000Z | app/Http/Controllers/AuthorsController.php | winter666/library | 3d18669229f0ccaa1e69c36085c0ba3135d7160e | [
"MIT"
] | null | null | null | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Authors;
use App\Books;
class AuthorsController extends Controller
{
public function showList () {
$authors = Authors::paginate(4);
foreach ($authors as $author) {
$books[$author->id] = Books::all()->where('author_i... | 24.37931 | 80 | 0.584158 |
850169a7cbfce6ac778d2d31d29254252b2f058c | 2,253 | asm | Assembly | programs/oeis/081/A081586.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/081/A081586.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/081/A081586.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A081586: Fourth row of Pascal-(1,3,1) array A081578.
; 1,13,73,245,593,1181,2073,3333,5025,7213,9961,13333,17393,22205,27833,34341,41793,50253,59785,70453,82321,95453,109913,125765,143073,161901,182313,204373,228145,253693,281081,310373,341633,374925,410313,447861,487633,529693,574105,620933,670241,722093,776553,8336... | 160.928571 | 2,102 | 0.861074 |
d1f5c4b32bf9c46ed4d0b9b52265b7b5a6e5aed3 | 2,848 | sql | SQL | scripts/upgrades/1.0.3 to 2.0.0/db-updates/mysql-2011-04-28.sql | bhutchinson/rice | 5c2f51ebe21704d3019ae6e3e25d33c1beaeda1c | [
"ECL-2.0"
] | null | null | null | scripts/upgrades/1.0.3 to 2.0.0/db-updates/mysql-2011-04-28.sql | bhutchinson/rice | 5c2f51ebe21704d3019ae6e3e25d33c1beaeda1c | [
"ECL-2.0"
] | null | null | null | scripts/upgrades/1.0.3 to 2.0.0/db-updates/mysql-2011-04-28.sql | bhutchinson/rice | 5c2f51ebe21704d3019ae6e3e25d33c1beaeda1c | [
"ECL-2.0"
] | 1 | 2021-06-04T01:14:38.000Z | 2021-06-04T01:14:38.000Z | --
-- Copyright 2005-2015 The Kuali Foundation
--
-- Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
--
-- Unless requi... | 39.013699 | 107 | 0.793188 |
9c43073510d57db26c331a3d3e9a8a0315bf9b79 | 4,925 | js | JavaScript | bitrix/modules/intranet/install/templates/bitrix24/components/bitrix/socialnetwork.group_menu/.default/script.js | BuildingBridge/biznet | 0e9e864be99e01bd35f4321a04736866937897b0 | [
"Unlicense"
] | null | null | null | bitrix/modules/intranet/install/templates/bitrix24/components/bitrix/socialnetwork.group_menu/.default/script.js | BuildingBridge/biznet | 0e9e864be99e01bd35f4321a04736866937897b0 | [
"Unlicense"
] | null | null | null | bitrix/modules/intranet/install/templates/bitrix24/components/bitrix/socialnetwork.group_menu/.default/script.js | BuildingBridge/biznet | 0e9e864be99e01bd35f4321a04736866937897b0 | [
"Unlicense"
] | null | null | null | (function(){
if (!!BX.BXSGM24)
{
return;
}
BX.BXSGM24 = {
currentUserId: null,
groupdId: null,
groupType: null,
userIsMember: null,
userIsAutoMember: null,
userRole: null,
isProject: null,
favoritesValue: null,
canInitiate: null,
canModify: null,
editFeaturesAllowed: true
};
BX.BXSGM24.... | 27.982955 | 118 | 0.671269 |
59f60aa01cd7937007d2d9b45939cb3c01a723f3 | 819 | kt | Kotlin | midi-server/src/main/kotlin/fi/ardento/easychords/midiserver/controllers/DeviceController.kt | Joosakur/easy-chords | f87e63af9eac8b8c19990636a0bbaccb4594e042 | [
"MIT"
] | 1 | 2021-06-21T12:24:29.000Z | 2021-06-21T12:24:29.000Z | midi-server/src/main/kotlin/fi/ardento/easychords/midiserver/controllers/DeviceController.kt | Joosakur/easy-chords | f87e63af9eac8b8c19990636a0bbaccb4594e042 | [
"MIT"
] | null | null | null | midi-server/src/main/kotlin/fi/ardento/easychords/midiserver/controllers/DeviceController.kt | Joosakur/easy-chords | f87e63af9eac8b8c19990636a0bbaccb4594e042 | [
"MIT"
] | null | null | null | package fi.ardento.easychords.midiserver.controllers
import fi.ardento.easychords.midiserver.services.MidiDevice
import fi.ardento.easychords.midiserver.services.MidiService
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.*
@RestController
@RequestMapping("/devices")
@Cro... | 29.25 | 75 | 0.74359 |
2c5a67d0f2cf9fd4cfacd5f0567438f78ba53422 | 467 | lua | Lua | learn/sky/testunique.lua | qiuhoude/skynet_learn_dir | ae000c051cc44eb8f858fb5851fca16058b62410 | [
"MIT"
] | null | null | null | learn/sky/testunique.lua | qiuhoude/skynet_learn_dir | ae000c051cc44eb8f858fb5851fca16058b62410 | [
"MIT"
] | null | null | null | learn/sky/testunique.lua | qiuhoude/skynet_learn_dir | ae000c051cc44eb8f858fb5851fca16058b62410 | [
"MIT"
] | null | null | null | local skynet = require "skynet"
print("uniqueservice call ..... ")
local args = { ... }
if(#args == 0) then
table.insert(args, "uniqueservice")
end
skynet.start(function()
local us
skynet.error("test unique service testunique")
if ( #args == 2 and args[1] == "true" ) then
us = skynet.uniquese... | 25.944444 | 62 | 0.633833 |
e8e1a7dd4c0096be6dc41884969338ea14fb0ae3 | 326 | kt | Kotlin | app/src/main/java/com/yyusufsefa/videogamesapp/data/viewstate/GameItemViewState.kt | Yusufsefa/VideoGamesApp | bad61e44d8788584480016528ba307e87af033ce | [
"MIT"
] | 2 | 2021-05-15T11:43:21.000Z | 2021-05-16T12:22:49.000Z | app/src/main/java/com/yyusufsefa/videogamesapp/data/viewstate/GameItemViewState.kt | Yusufsefa/VideoGamesApp | bad61e44d8788584480016528ba307e87af033ce | [
"MIT"
] | null | null | null | app/src/main/java/com/yyusufsefa/videogamesapp/data/viewstate/GameItemViewState.kt | Yusufsefa/VideoGamesApp | bad61e44d8788584480016528ba307e87af033ce | [
"MIT"
] | null | null | null | package com.yyusufsefa.videogamesapp.data.viewstate
import com.yyusufsefa.videogamesapp.data.model.Game
class GameItemViewState(private val game: Game) {
fun getName() = game.name.orEmpty()
fun getRatingAndReleased() = "${game.rating} - ${game.released}"
fun getImageUrl() = game.backgroundImage.orEmp... | 27.166667 | 70 | 0.739264 |
175f6c3ed6c81e89f9165ec2ced6b2406ecd4331 | 5,069 | html | HTML | html/books/Pro_HTML5_CSS3_Design_Patterns/Chapter17/Layout_Example/example.html | anpham6/squared | 375107a2c60bbe15a6b953bddcffe361b106b653 | [
"MIT"
] | 20 | 2019-02-24T19:28:00.000Z | 2021-10-02T16:38:35.000Z | html/books/Pro_HTML5_CSS3_Design_Patterns/Chapter17/Layout_Example/example.html | anpham6/squared | 375107a2c60bbe15a6b953bddcffe361b106b653 | [
"MIT"
] | 2 | 2019-05-18T15:13:17.000Z | 2019-11-14T02:13:25.000Z | html/books/Pro_HTML5_CSS3_Design_Patterns/Chapter17/Layout_Example/example.html | anpham6/squared | 375107a2c60bbe15a6b953bddcffe361b106b653 | [
"MIT"
] | 4 | 2019-02-24T19:28:03.000Z | 2020-01-06T16:22:37.000Z | <!DOCTYPE html>
<html lang="en">
<head>
<title>Layout Example</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="page.css" media="all" />
<script src="/dist/squared.js"></script>
<script src="/dist/squared.base.js"></script>
<script src="/dist/android.framework.js"></script>
<scr... | 36.731884 | 549 | 0.565792 |
4196b34f3ed984208ae85d19a2f09fe4accf423b | 1,781 | h | C | Signal/General/dsp/PolnReshape.h | rwharton/dspsr_dsn | 135cc86c43931311424beeb5a459ba570f1f83f7 | [
"AFL-2.1"
] | null | null | null | Signal/General/dsp/PolnReshape.h | rwharton/dspsr_dsn | 135cc86c43931311424beeb5a459ba570f1f83f7 | [
"AFL-2.1"
] | null | null | null | Signal/General/dsp/PolnReshape.h | rwharton/dspsr_dsn | 135cc86c43931311424beeb5a459ba570f1f83f7 | [
"AFL-2.1"
] | null | null | null | //-*-C++-*-
/***************************************************************************
*
* Copyright (C) 2015 by Matthew Kerr
* Licensed under the Academic Free License version 2.1
*
***************************************************************************/
#ifndef __baseband_dsp_PolnReshape_h
#define __... | 25.811594 | 77 | 0.62493 |
d5d9d5408da3e06daba50ab34416d906dc10efb9 | 550 | sql | SQL | Structure.sql | jeschwarz0/MvcWorkspace-Sql | 3e5b27bf7229a3fd07819ac80127cd23ded485b2 | [
"MIT"
] | null | null | null | Structure.sql | jeschwarz0/MvcWorkspace-Sql | 3e5b27bf7229a3fd07819ac80127cd23ded485b2 | [
"MIT"
] | null | null | null | Structure.sql | jeschwarz0/MvcWorkspace-Sql | 3e5b27bf7229a3fd07819ac80127cd23ded485b2 | [
"MIT"
] | null | null | null | -- Create Youtube Channel table
CREATE TABLE YoutubeChannel(
ChannelID int NOT NULL PRIMARY KEY IDENTITY(1,1),
[Name] varchar(128) NOT NULL,
Category varchar(128) DEFAULT('Gaming'),
ChannelIdentifier varchar(250) NOT NULL
)
-- Create Youtube Video table
CREATE TABLE YoutubeVideo(
VideoID int NOT NULL PRIMARY K... | 32.352941 | 72 | 0.785455 |
50118aa8fdcc4725778b0623b3f12ca26ac00694 | 13,180 | swift | Swift | Examples/Sudoku/Sudoku/Views/Custom Shapes/PopoverShape.swift | chipjarred/MacMenuBar | 9a296a18a3a7d546f86d78bf698343257b2ddb94 | [
"MIT"
] | 18 | 2021-03-16T12:58:02.000Z | 2022-03-31T05:03:03.000Z | Examples/Sudoku/Sudoku/Views/Custom Shapes/PopoverShape.swift | chipjarred/MacMenuBar | 9a296a18a3a7d546f86d78bf698343257b2ddb94 | [
"MIT"
] | 1 | 2021-08-03T13:57:49.000Z | 2021-08-08T10:56:31.000Z | Examples/Sudoku/Sudoku/Views/Custom Shapes/PopoverShape.swift | chipjarred/MacMenuBar | 9a296a18a3a7d546f86d78bf698343257b2ddb94 | [
"MIT"
] | 2 | 2021-03-23T10:21:18.000Z | 2021-11-04T12:30:08.000Z | // Copyright 2021 Chip Jarred
//
// 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, distr... | 32.704715 | 80 | 0.487405 |
6c635d4c7da5fac6b5bb75e2fd89c873970c3d80 | 1,765 | go | Go | migration_test.go | pubkraal/schema | 531e542ba48435855be4e3d91b21d1d654b5e53b | [
"MIT"
] | 14 | 2019-09-24T23:26:09.000Z | 2022-03-25T23:17:40.000Z | migration_test.go | pubkraal/schema | 531e542ba48435855be4e3d91b21d1d654b5e53b | [
"MIT"
] | 12 | 2019-11-16T00:16:59.000Z | 2022-03-25T21:43:50.000Z | migration_test.go | pubkraal/schema | 531e542ba48435855be4e3d91b21d1d654b5e53b | [
"MIT"
] | 5 | 2019-11-16T03:52:27.000Z | 2022-03-14T11:55:34.000Z | package schema
import (
"regexp"
"testing"
)
func TestMD5(t *testing.T) {
testMigration := Migration{Script: "test"}
expected := "098f6bcd4621d373cade4e832627b4f6"
if testMigration.MD5() != expected {
t.Errorf("Expected '%s', got '%s'", expected, testMigration.MD5())
}
}
func TestSortMigrations(t *testing.T)... | 25.57971 | 118 | 0.658357 |
17e0ac21dcfbf7fb4817896bacdd59af778dd5ea | 625 | lua | Lua | moonpie/utility/swap_function_spec.lua | tredfern/moonpie | b7b6542007a4acd6ca01c7d36957b10774ba242b | [
"MIT"
] | 5 | 2019-04-16T09:55:57.000Z | 2021-01-31T21:50:47.000Z | moonpie/utility/swap_function_spec.lua | tredfern/moonpie | b7b6542007a4acd6ca01c7d36957b10774ba242b | [
"MIT"
] | 7 | 2021-04-26T12:14:05.000Z | 2022-02-15T13:26:13.000Z | moonpie/utility/swap_function_spec.lua | tredfern/moonpie | b7b6542007a4acd6ca01c7d36957b10774ba242b | [
"MIT"
] | null | null | null | -- Copyright (c) 2021 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
describe("moonpie.utility.swap_function", function()
local swapFunction = require "moonpie.utility.swap_function"
it("can replace a function in a table", function()
local... | 24.038462 | 63 | 0.6256 |
2636506d8d5f36bdd71e277175739ff00d954d18 | 19,061 | java | Java | src/main/java/be/ugent/rml/Executor.java | champtc/rmlmapper-java | 5915b03ae953e58683f9f91115219a9c7476e807 | [
"MIT"
] | null | null | null | src/main/java/be/ugent/rml/Executor.java | champtc/rmlmapper-java | 5915b03ae953e58683f9f91115219a9c7476e807 | [
"MIT"
] | null | null | null | src/main/java/be/ugent/rml/Executor.java | champtc/rmlmapper-java | 5915b03ae953e58683f9f91115219a9c7476e807 | [
"MIT"
] | null | null | null | package be.ugent.rml;
import be.ugent.rml.functions.FunctionLoader;
import be.ugent.rml.functions.MultipleRecordsFunctionExecutor;
import be.ugent.rml.metadata.Metadata;
import be.ugent.rml.metadata.MetadataGenerator;
import be.ugent.rml.records.Record;
import be.ugent.rml.records.RecordsFactory;
import be.ugent.rml.s... | 42.642058 | 189 | 0.607733 |
1253ad30aaf9a53798715e38cacba72d6cb6ef7c | 726 | kt | Kotlin | app/src/main/java/com/sduduzog/slimlauncher/ui/main/SearchAppFragment.kt | koppen37/slim-launcher | 6423107b901bebc13178f2458fea3d554d5f015b | [
"MIT"
] | null | null | null | app/src/main/java/com/sduduzog/slimlauncher/ui/main/SearchAppFragment.kt | koppen37/slim-launcher | 6423107b901bebc13178f2458fea3d554d5f015b | [
"MIT"
] | null | null | null | app/src/main/java/com/sduduzog/slimlauncher/ui/main/SearchAppFragment.kt | koppen37/slim-launcher | 6423107b901bebc13178f2458fea3d554d5f015b | [
"MIT"
] | null | null | null | package com.sduduzog.slimlauncher.ui.main
import android.os.Bundle
import com.sduduzog.slimlauncher.data.model.App
import com.sduduzog.slimlauncher.ui.options.AddAppFragment
import androidx.navigation.Navigation
import kotlinx.android.synthetic.main.add_app_fragment.*
class SearchAppFragment : AddAppFragment() {
... | 33 | 93 | 0.77686 |
19e8335beeb8b5b7de556f70fade7be1776c7964 | 5,143 | go | Go | x/stake/msg_test.go | jlandrews/cosmos-sdk | 187be1a5df81de1fd71da9053102d3a4868ec979 | [
"Apache-2.0"
] | 2 | 2018-06-18T05:31:38.000Z | 2018-06-18T05:34:37.000Z | x/stake/msg_test.go | InsChain/inschain-public | ab6b1d12b1f3db1d677ffe51f212f98451d324ba | [
"Apache-2.0"
] | null | null | null | x/stake/msg_test.go | InsChain/inschain-public | ab6b1d12b1f3db1d677ffe51f212f98451d324ba | [
"Apache-2.0"
] | 2 | 2018-06-10T07:31:14.000Z | 2018-06-18T10:14:13.000Z | package stake
import (
"testing"
"github.com/stretchr/testify/assert"
sdk "github.com/cosmos/cosmos-sdk/types"
crypto "github.com/tendermint/go-crypto"
)
var (
coinPos = sdk.Coin{"steak", 1000}
coinZero = sdk.Coin{"steak", 0}
coinNeg = sdk.Coin{"steak", -10000}
coinPosNotAtoms = s... | 32.757962 | 88 | 0.603733 |
cb6c4013e75ef6deebc7c647f722bf35505b8982 | 518 | ddl | SQL | Resources/DdlFiles/Tables/Create/SecurityAssessmentProceduresTestReferences.ddl | cloudsTrafton/Vulnerator | 51109db23592a24751d8f54e69c0a44dfff699ee | [
"MIT"
] | 175 | 2016-05-16T19:33:12.000Z | 2022-03-02T20:41:14.000Z | Resources/DdlFiles/Tables/Create/SecurityAssessmentProceduresTestReferences.ddl | amkuchta/Vulnerator | fb3d7c7019a7a466f049af5a960a85398edb4e8f | [
"MIT"
] | 173 | 2016-05-16T14:38:59.000Z | 2022-01-07T16:03:18.000Z | Resources/DdlFiles/Tables/Create/SecurityAssessmentProceduresTestReferences.ddl | cloudsTrafton/Vulnerator | 51109db23592a24751d8f54e69c0a44dfff699ee | [
"MIT"
] | 73 | 2016-05-16T19:01:24.000Z | 2021-08-04T20:00:23.000Z | CREATE TABLE IF NOT EXISTS SecurityAssessmentProceduresTestReferences (
SecurityAssessmentProcedureTestReference_ID INTEGER PRIMARY KEY,
SecurityAssessmentProcedure_ID INTEGER NOT NULL,
TestReference_ID INTEGER NOT NULL,
UNIQUE (SecurityAssessmentProcedure_ID, TestReference_ID) ON CONFLICT IGNORE,
F... | 64.75 | 121 | 0.849421 |
86605c1ee2af2f2b79583f8c16c841b57da8b612 | 1,976 | go | Go | go/advanced-go/23.go-protobuf/protoc-gen-go-netrpc/netrpc/netrpc.go | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | null | null | null | go/advanced-go/23.go-protobuf/protoc-gen-go-netrpc/netrpc/netrpc.go | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | 1 | 2016-09-15T07:06:15.000Z | 2016-09-15T07:06:15.000Z | go/advanced-go/23.go-protobuf/protoc-gen-go-netrpc/netrpc/netrpc.go | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | null | null | null | package netrpc
import (
"fmt"
"google.golang.org/protobuf/compiler/protogen"
)
func GenerateFileContent(gen *protogen.Plugin, file *protogen.File, g *protogen.GeneratedFile) {
if len(file.Services) > 0 {
g.QualifiedGoIdent(protogen.GoIdent{
GoName: "rpc",
GoImportPath: "net/rpc",
})
for _, srv ... | 29.058824 | 107 | 0.65081 |
b5cb35464efeecb770c713ee320e33d0782c52db | 579 | asm | Assembly | oeis/103/A103453.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/103/A103453.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/103/A103453.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A103453: a(n) = 0^n + 3^n - 1.
; 1,2,8,26,80,242,728,2186,6560,19682,59048,177146,531440,1594322,4782968,14348906,43046720,129140162,387420488,1162261466,3486784400,10460353202,31381059608,94143178826,282429536480,847288609442,2541865828328,7625597484986,22876792454960,68630377364882,205891132094648,617673396283946,1... | 64.333333 | 497 | 0.849741 |
85a2b1a8b17ded882bc0a8e337e96269c2fb8127 | 402 | js | JavaScript | example/web/src/api/order.js | usmbest/ocean.one | 362a7da571ee5a9ccb9fa3685a398cf2e705a326 | [
"Apache-2.0"
] | 175 | 2018-07-20T14:16:48.000Z | 2022-03-04T14:03:21.000Z | example/web/src/api/order.js | fox-one/ocean.one | 377db7b8b24b115f49c8a97c8a2d24fd125f5252 | [
"Apache-2.0"
] | 259 | 2018-08-10T03:32:05.000Z | 2022-03-22T16:35:37.000Z | example/web/src/api/order.js | fox-one/ocean.one | 377db7b8b24b115f49c8a97c8a2d24fd125f5252 | [
"Apache-2.0"
] | 52 | 2018-08-02T00:52:44.000Z | 2022-02-17T18:24:38.000Z | function Order(api) {
this.api = api;
}
Order.prototype = {
create: function (callback, params) {
this.api.request('POST', '/orders', params, function (resp) {
return callback(resp);
});
},
cancel: function (callback, id) {
this.api.request('POST', '/orders/' + id + '/cancel', undefined, fun... | 20.1 | 86 | 0.599502 |
e640855b7c21a681039f4787fe7c8448db826484 | 2,787 | go | Go | pkg/cloud/provider.go | zjfqxa/cyclone | 8b4fa4bfc4248c067dc1aa25465536f2998f01ec | [
"Apache-2.0"
] | null | null | null | pkg/cloud/provider.go | zjfqxa/cyclone | 8b4fa4bfc4248c067dc1aa25465536f2998f01ec | [
"Apache-2.0"
] | null | null | null | pkg/cloud/provider.go | zjfqxa/cyclone | 8b4fa4bfc4248c067dc1aa25465536f2998f01ec | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2018 caicloud authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed ... | 24.663717 | 121 | 0.731252 |
b087f858c3a89f2a6d53b2a09a0cd0ce8b065762 | 1,704 | rs | Rust | src/main.rs | DanielSchuette/expr_parser | bc531582fe872c3a78e495fd522c80b2111d2131 | [
"MIT"
] | null | null | null | src/main.rs | DanielSchuette/expr_parser | bc531582fe872c3a78e495fd522c80b2111d2131 | [
"MIT"
] | null | null | null | src/main.rs | DanielSchuette/expr_parser | bc531582fe872c3a78e495fd522c80b2111d2131 | [
"MIT"
] | null | null | null | /*
* Author: Daniel Schuette
* Date: 04/26/2019
* License: MIT
* (see LICENSE.md at https://github.com/DanielSchuette/expr_parser)
* TODO: correct the mult-div parsing error!
*/
#![allow(dead_code)]
#![allow(unused_imports)]
mod draw;
mod lexer;
mod parser;
mod utils;
mod vm;
use lexer::lex;
use par... | 26.625 | 78 | 0.558685 |
acbcd8c22ddefa95369c7c56adda4bde75e3cd1d | 324 | asm | Assembly | test/test.std.outsln.asm | richRemer/atlatl | 169c0c9c29d277dc1295e6c37b0963af6e02741a | [
"MIT"
] | null | null | null | test/test.std.outsln.asm | richRemer/atlatl | 169c0c9c29d277dc1295e6c37b0963af6e02741a | [
"MIT"
] | null | null | null | test/test.std.outsln.asm | richRemer/atlatl | 169c0c9c29d277dc1295e6c37b0963af6e02741a | [
"MIT"
] | null | null | null | global test_case
extern std.outsln
%include "String.inc"
section .text
test_case:
lea rax, [test_str] ; message
call std.outsln
ret
section .data
test_str_data: db "Bar"
junk_data: db "junk"
test_str:
istruc String
at String.pdata, dq test_str_data
at String.length, dq 3
i... | 14.727273 | 41 | 0.666667 |
9e9b32a5c3f0e384dfd7558292b87ffb00a778b3 | 2,279 | rs | Rust | einsteinml-causet-query-pull/src/causetpullbackman.rs | rishabh96b/EinsteinDB | ffda0a8b6dfdf31000e06f1dd921a8088b11e0a9 | [
"Apache-2.0"
] | null | null | null | einsteinml-causet-query-pull/src/causetpullbackman.rs | rishabh96b/EinsteinDB | ffda0a8b6dfdf31000e06f1dd921a8088b11e0a9 | [
"Apache-2.0"
] | null | null | null | einsteinml-causet-query-pull/src/causetpullbackman.rs | rishabh96b/EinsteinDB | ffda0a8b6dfdf31000e06f1dd921a8088b11e0a9 | [
"Apache-2.0"
] | null | null | null | //Copyright 2020 WHTCORPS INC
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use
// this file except in compliance with the License. You may obtain a copy of the
// License at http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, ... | 25.897727 | 106 | 0.636683 |
33849b7f7830e776c0c345ea32185fe434695190 | 225 | kt | Kotlin | src/main/kotlin/ContaSalario.kt | oliveira-italo/alura-kotlin-bytebank | 31c4fb0b951c9814598d8a7bcc601bb1ce5bb00b | [
"Apache-2.0"
] | null | null | null | src/main/kotlin/ContaSalario.kt | oliveira-italo/alura-kotlin-bytebank | 31c4fb0b951c9814598d8a7bcc601bb1ce5bb00b | [
"Apache-2.0"
] | null | null | null | src/main/kotlin/ContaSalario.kt | oliveira-italo/alura-kotlin-bytebank | 31c4fb0b951c9814598d8a7bcc601bb1ce5bb00b | [
"Apache-2.0"
] | null | null | null | class ContaSalario(
titular: String,
numero: Int
) : Conta(titular = titular, numero = numero) {
override fun sacar(valor: Double) {
if (saldo >= valor) {
this.saldo -= valor
}
}
} | 20.454545 | 47 | 0.546667 |
85a4c144961aa12bffe95b29e995e63ded33c26b | 639 | h | C | Classes/zScoringLogic.h | stevewight/BounceZBallz | 708803fc1882f281a0816b7333672ef07fced891 | [
"Zlib",
"MIT"
] | 1 | 2019-07-10T08:58:03.000Z | 2019-07-10T08:58:03.000Z | Classes/zScoringLogic.h | stevewight/BounceZBallz | 708803fc1882f281a0816b7333672ef07fced891 | [
"Zlib",
"MIT"
] | null | null | null | Classes/zScoringLogic.h | stevewight/BounceZBallz | 708803fc1882f281a0816b7333672ef07fced891 | [
"Zlib",
"MIT"
] | null | null | null | //
// zScoringLogic.h
// bounceZballs
//
// Created by Steve Wight on 2/20/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface zScoringLogic : NSObject {
int ballCount;
int secondsCount;
int totalScore;
int levelNumber;
}
@property(nonatomic,assign)in... | 21.3 | 60 | 0.758998 |
f4712de7d25bf0fca1e083ffe359f2c984bfaa77 | 3,719 | go | Go | container_test.go | joushou/qp | 45c4de09f88d1631da04fccf8a650bf35d794ece | [
"MIT"
] | 11 | 2015-12-01T11:56:56.000Z | 2017-03-28T05:56:01.000Z | container_test.go | kennylevinsen/qp | 45c4de09f88d1631da04fccf8a650bf35d794ece | [
"MIT"
] | 1 | 2016-02-05T22:17:35.000Z | 2016-02-05T22:17:35.000Z | container_test.go | joushou/qp | 45c4de09f88d1631da04fccf8a650bf35d794ece | [
"MIT"
] | 2 | 2016-12-06T20:48:08.000Z | 2017-01-06T12:37:57.000Z | package qp
import (
"bytes"
"io"
"testing"
"time"
)
const reruns = 1000
// ByteReader is a read that only reads a single byte at a time.
type ByteReader struct {
io.Reader
}
func (b *ByteReader) Read(p []byte) (int, error) {
if len(p) == 0 {
return 0, nil
}
return b.Reader.Read(p[0:1])
}
func TestDecoder... | 21.748538 | 128 | 0.606346 |
2c2fda6dd0d9fcc18f94a2d5bc855b6c733a4e3a | 1,704 | asm | Assembly | chap18/ex28/adj_vpgatherpd.asm | JamesType/optimization-manual | 61cdcebb16e0768a6ab7e85ed535e64e9d8cc31a | [
"0BSD"
] | 374 | 2021-06-08T10:42:01.000Z | 2022-03-29T14:21:45.000Z | chap18/ex28/adj_vpgatherpd.asm | JamesType/optimization-manual | 61cdcebb16e0768a6ab7e85ed535e64e9d8cc31a | [
"0BSD"
] | 1 | 2021-06-11T20:24:02.000Z | 2021-06-11T20:24:02.000Z | chap18/ex28/adj_vpgatherpd.asm | JamesType/optimization-manual | 61cdcebb16e0768a6ab7e85ed535e64e9d8cc31a | [
"0BSD"
] | 39 | 2021-06-08T11:25:29.000Z | 2022-03-05T05:14:17.000Z | ;
; Copyright (C) 2021 by Intel Corporation
;
; Permission to use, copy, modify, and/or distribute this software for any
; purpose with or without fee is hereby granted.
;
; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHA... | 23.342466 | 79 | 0.714202 |
ff29b6bc197081afc6210a54265ffde07847ff27 | 817 | swift | Swift | ArtistFinder/Combine/InitialPublished.swift | squallone/ArtistFinder | a1d77341d1f6f1d00ec31aff181711704989dc13 | [
"MIT"
] | 9 | 2019-09-11T02:09:29.000Z | 2020-04-22T07:45:44.000Z | ArtistFinder/Combine/InitialPublished.swift | squallone/ArtistFinder | a1d77341d1f6f1d00ec31aff181711704989dc13 | [
"MIT"
] | null | null | null | ArtistFinder/Combine/InitialPublished.swift | squallone/ArtistFinder | a1d77341d1f6f1d00ec31aff181711704989dc13 | [
"MIT"
] | 2 | 2019-09-08T23:09:15.000Z | 2019-09-11T02:07:29.000Z | //
// InitialPublished.swift
// ArtistFinder
//
// Created by Abdiel Soto Barrera (Vendor) on 9/9/19.
// Copyright © 2019 iOSDevsMx. All rights reserved.
//
import UIKit
import Combine
@propertyWrapper // @propertyDelegate
struct InitialPublished<Value>: Publisher {
typealias Output = Value
typealias Fai... | 22.694444 | 97 | 0.634027 |
c7d2b9d5045a980a8f74ddcb22bdfb7a365758fc | 455 | py | Python | Lista_33.py | Arestideschale/python | 5aef01b5fa66b71fa91d0062b703d52731c75fe9 | [
"Apache-2.0"
] | 1 | 2022-01-16T17:24:57.000Z | 2022-01-16T17:24:57.000Z | Lista_33.py | Arestideschale/python | 5aef01b5fa66b71fa91d0062b703d52731c75fe9 | [
"Apache-2.0"
] | null | null | null | Lista_33.py | Arestideschale/python | 5aef01b5fa66b71fa91d0062b703d52731c75fe9 | [
"Apache-2.0"
] | null | null | null | n_temperaturas = int(input("Quantidade de temperaturas que irá digitar: "))
temperaturas = []
n_temperatura = 1
for i in range(n_temperaturas):
print("Temperatura n° ", n_temperatura)
temperatura = temperaturas.append(float(input("Digite a temperatura: ")))
n_temperatura += 1
print("Maior temperatura = ", ... | 37.916667 | 77 | 0.723077 |
5810ea412023541206a32a79dfa84a3cd974f229 | 103,115 | c | C | python/libvncxx/libvnc/src/vnsensor.c | dawonn/vnproglib | a1444675049fef7a327ff9069fbad1560342fd4a | [
"MIT"
] | 1 | 2017-08-23T18:52:21.000Z | 2017-08-23T18:52:21.000Z | python/libvncxx/libvnc/src/vnsensor.c | dawonn/vnproglib | a1444675049fef7a327ff9069fbad1560342fd4a | [
"MIT"
] | 10 | 2018-05-30T15:49:45.000Z | 2019-06-12T18:20:29.000Z | data_acquisition/ptu/libs/vectornav/libvncxx/libvnc/src/vnsensor.c | HoliestCow/wind_daq | 6a8b30ba6b14b3162f2fa3144b52cdf7ed17ec3a | [
"MIT"
] | null | null | null | #include "vnsensor.h"
#include "vnerror.h"
#include <string.h>
#include "vntime.h"
#include "vnstring.h"
#define DEFAULT_RESPONSE_TIMEOUT_MS 500
#define DEFAULT_RETRANSMIT_DELAY_MS 200
#define DEFAULT_READ_BUFFER_SIZE 256
#define COMMAND_MAX_LENGTH 0x100
void
VnSensor_dataReceivedHandler(
void *us... | 29.647786 | 349 | 0.711885 |
261083c06b31b0e4d98da952610ab05da01a044e | 3,098 | java | Java | modules/metrics/src/test/java/com/spotify/apollo/metrics/MetricsTest.java | rulle-io/apollo | 13eb8daf44cea3f83fa5e2a5fd775266253204f4 | [
"Apache-2.0"
] | 1,806 | 2015-11-17T21:24:30.000Z | 2022-03-26T06:36:59.000Z | modules/metrics/src/test/java/com/spotify/apollo/metrics/MetricsTest.java | rulle-io/apollo | 13eb8daf44cea3f83fa5e2a5fd775266253204f4 | [
"Apache-2.0"
] | 302 | 2015-11-18T14:39:19.000Z | 2021-09-28T09:15:51.000Z | modules/metrics/src/test/java/com/spotify/apollo/metrics/MetricsTest.java | rulle-io/apollo | 13eb8daf44cea3f83fa5e2a5fd775266253204f4 | [
"Apache-2.0"
] | 287 | 2015-11-17T19:28:25.000Z | 2022-03-18T20:04:22.000Z | /*
* -\-\-
* Spotify Apollo Metrics Module
* --
* Copyright (C) 2013 - 2016 Spotify AB
* --
* 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/LI... | 40.763158 | 104 | 0.739832 |
95aa7157bba1f8ae4b5fc053c75cabe6206df814 | 789 | kt | Kotlin | domain/src/test/java/org/watsi/domain/factories/EnrollmentPeriodFactory.kt | liangmicha/meso-clinic | 5847b743de479ebd3344cb8fcf8da8659011b1fa | [
"Apache-2.0"
] | 5 | 2020-02-06T03:42:19.000Z | 2021-12-30T04:07:43.000Z | domain/src/test/java/org/watsi/domain/factories/EnrollmentPeriodFactory.kt | liangmicha/meso-clinic | 5847b743de479ebd3344cb8fcf8da8659011b1fa | [
"Apache-2.0"
] | 2 | 2020-02-09T21:19:47.000Z | 2020-04-24T00:57:45.000Z | domain/src/test/java/org/watsi/domain/factories/EnrollmentPeriodFactory.kt | liangmicha/meso-clinic | 5847b743de479ebd3344cb8fcf8da8659011b1fa | [
"Apache-2.0"
] | 2 | 2020-01-31T17:26:22.000Z | 2020-03-31T09:56:20.000Z | package org.watsi.domain.factories
import org.threeten.bp.LocalDate
import org.watsi.domain.entities.EnrollmentPeriod
object EnrollmentPeriodFactory {
fun build(
id: Int = 1,
startDate: LocalDate = LocalDate.now(),
endDate: LocalDate = LocalDate.now().plusYears(1),
coverageStartDa... | 30.346154 | 66 | 0.647655 |
84c1f9345e4e1a501958ba9bff0c96781aebd226 | 1,105 | c | C | software/tcl_auto/ds9tools/ast/sla/caf2r.c | MMTObservatory/SAOguider | e528d35d63876e2db066bef43cfcabd6946bc986 | [
"BSD-3-Clause"
] | null | null | null | software/tcl_auto/ds9tools/ast/sla/caf2r.c | MMTObservatory/SAOguider | e528d35d63876e2db066bef43cfcabd6946bc986 | [
"BSD-3-Clause"
] | null | null | null | software/tcl_auto/ds9tools/ast/sla/caf2r.c | MMTObservatory/SAOguider | e528d35d63876e2db066bef43cfcabd6946bc986 | [
"BSD-3-Clause"
] | null | null | null | #include "slalib.h"
#include "slamac.h"
void slaCaf2r ( int ideg, int iamin, float asec, float *rad, int *j )
/*
** - - - - - - - - -
** s l a C a f 2 r
** - - - - - - - - -
**
** Convert degrees, arcminutes, arcseconds to radians.
**
** (single precision)
**
** Given:
** ideg int degrees
** ... | 25.697674 | 72 | 0.494118 |
11d161323a2eccc88cfb94b8b6db88d8843c95ce | 1,612 | html | HTML | data/message_html_fragments/847786770346541097.html | kishikawakatsumi/swift-developers-japan-discussion-archive | 7b1c143f0a201f614f1bc0364361836a9df9dc82 | [
"MIT"
] | 1 | 2022-02-13T01:21:35.000Z | 2022-02-13T01:21:35.000Z | data/message_html_fragments/847786770346541097.html | kishikawakatsumi/swift-developers-japan-discussion-archive | 7b1c143f0a201f614f1bc0364361836a9df9dc82 | [
"MIT"
] | 25 | 2022-02-12T19:45:00.000Z | 2022-03-25T17:53:54.000Z | data/message_html_fragments/847786770346541097.html | kishikawakatsumi/swift-developers-japan-discussion-archive | 7b1c143f0a201f614f1bc0364361836a9df9dc82 | [
"MIT"
] | null | null | null | <div class="chatlog__message-group">
<div id="chatlog__message-container-847786770346541097" class="chatlog__message-container " data-message-id="847786770346541097">
<div class="chatlog__message">
<div class="chatlog__message-aside">
<img class="chatlog__avatar" src="https://cdn.discordapp.com/avat... | 76.761905 | 301 | 0.692308 |
9c23457474c2c9a3fda8a49d3124aed9cd548748 | 34 | js | JavaScript | public/assets/lib/jwplayer-master/src/js/view/constants.js | hoangnhonline/study-2017 | 67368b68f64b9316f68fad0a5748072c5cefde33 | [
"MIT"
] | null | null | null | public/assets/lib/jwplayer-master/src/js/view/constants.js | hoangnhonline/study-2017 | 67368b68f64b9316f68fad0a5748072c5cefde33 | [
"MIT"
] | null | null | null | public/assets/lib/jwplayer-master/src/js/view/constants.js | hoangnhonline/study-2017 | 67368b68f64b9316f68fad0a5748072c5cefde33 | [
"MIT"
] | null | null | null |
export const dvrSeekLimit = -25;
| 11.333333 | 32 | 0.735294 |
03978e9c35acde973f27c890e65c1106b73fd430 | 8,032 | swift | Swift | Acme/Acme/Views/TabCollectionViewCell.swift | alvare52/Mobile-Web-Browser | 6709f26711b0b9eac2b6095f48da8f568c264812 | [
"Apache-2.0"
] | 2 | 2021-09-04T11:19:24.000Z | 2022-01-16T03:57:33.000Z | Acme/Acme/Views/TabCollectionViewCell.swift | alvare52/Mobile-Web-Browser | 6709f26711b0b9eac2b6095f48da8f568c264812 | [
"Apache-2.0"
] | null | null | null | Acme/Acme/Views/TabCollectionViewCell.swift | alvare52/Mobile-Web-Browser | 6709f26711b0b9eac2b6095f48da8f568c264812 | [
"Apache-2.0"
] | null | null | null | //
// TabCollectionViewCell.swift
// Acme
//
// Created by Jorge Alvarez on 4/18/21.
//
import UIKit
protocol CellDeletionDelegate {
/// Tells TabCollectionViewController to delete cell at given tab
func deleteTabForCell(cell: TabCollectionViewCell, bookmark: Bookmark)
}
class TabCollectionViewCell: ... | 40.565657 | 126 | 0.692231 |
58e82fbd12037bb8487bbe1760e7b48f84a69357 | 1,010 | rs | Rust | src/server/src/node/replica/eval/cmd_get.rs | zojw/engula | 2e6852ff40bc104baf9eb42097a9d4f48aa6dfd6 | [
"Apache-2.0"
] | null | null | null | src/server/src/node/replica/eval/cmd_get.rs | zojw/engula | 2e6852ff40bc104baf9eb42097a9d4f48aa6dfd6 | [
"Apache-2.0"
] | null | null | null | src/server/src/node/replica/eval/cmd_get.rs | zojw/engula | 2e6852ff40bc104baf9eb42097a9d4f48aa6dfd6 | [
"Apache-2.0"
] | null | null | null | // Copyright 2022 The Engula Authors.
//
// 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... | 37.407407 | 90 | 0.713861 |
fb940195cee9e008e78b5f838784700015f00f42 | 4,218 | java | Java | app/src/main/java/com/kidozh/discuzhub/adapter/ForumCategoryAdapter.java | dora-world/DiscuzHub | 49187c52f39edee1d5436932c39aacd3474da9f6 | [
"MIT"
] | 56 | 2020-01-15T09:29:27.000Z | 2022-02-24T08:00:50.000Z | app/src/main/java/com/kidozh/discuzhub/adapter/ForumCategoryAdapter.java | dora-world/DiscuzHub | 49187c52f39edee1d5436932c39aacd3474da9f6 | [
"MIT"
] | 32 | 2020-07-18T04:07:10.000Z | 2022-02-11T11:53:12.000Z | app/src/main/java/com/kidozh/discuzhub/adapter/ForumCategoryAdapter.java | dora-world/DiscuzHub | 49187c52f39edee1d5436932c39aacd3474da9f6 | [
"MIT"
] | 22 | 2020-07-18T08:09:54.000Z | 2022-03-20T15:08:37.000Z | package com.kidozh.discuzhub.adapter;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.... | 35.745763 | 126 | 0.734471 |
1e81f4a51815ce2e0a043abd9fd23d88ec47550f | 703 | swift | Swift | Sources/TranslationCatalog/Project.swift | richardpiazza/TranslationCatalog | 737f966b331b20b4844dc8a15807c82098d4efc3 | [
"MIT"
] | null | null | null | Sources/TranslationCatalog/Project.swift | richardpiazza/TranslationCatalog | 737f966b331b20b4844dc8a15807c82098d4efc3 | [
"MIT"
] | null | null | null | Sources/TranslationCatalog/Project.swift | richardpiazza/TranslationCatalog | 737f966b331b20b4844dc8a15807c82098d4efc3 | [
"MIT"
] | null | null | null | import Foundation
/// A grouping of `Expression`s used for a common purpose, such as an application or service.
public struct Project {
/// Identifier that universally identifies this `Project`
public var uuid: UUID
/// A custom description
public var name: String
/// The `Expression`s associated w... | 29.291667 | 93 | 0.672831 |
284e12171b4c9511dc4d794608386b63dbb5b043 | 2,247 | swift | Swift | Bilhete Unico/ViewController.swift | matheusmpedrosa/saldo-bilhete-unico | 289cceb8de9f45f15b920d674bd6e549ab99e32f | [
"MIT"
] | null | null | null | Bilhete Unico/ViewController.swift | matheusmpedrosa/saldo-bilhete-unico | 289cceb8de9f45f15b920d674bd6e549ab99e32f | [
"MIT"
] | null | null | null | Bilhete Unico/ViewController.swift | matheusmpedrosa/saldo-bilhete-unico | 289cceb8de9f45f15b920d674bd6e549ab99e32f | [
"MIT"
] | null | null | null | //
// ViewController.swift
// Bilhete Unico
//
// Created by Matheus Pedrosa on 8/3/19.
// Copyright © 2019 M2P. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var saldoLabel: UILabel!
@IBOutlet weak var tarifaComumButton: UIButton!
@IBOutlet weak var tar... | 29.565789 | 109 | 0.661326 |
38e23a41aea030cafc19de20a0799c5079768037 | 3,716 | h | C | src/mongo/db/exec/shard_filter.h | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/db/exec/shard_filter.h | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/db/exec/shard_filter.h | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2018-present MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but W... | 43.209302 | 100 | 0.731163 |
18b11813a1ab7973c194bcdc53b83bdb333051cf | 2,165 | kt | Kotlin | core/src/main/java/com/jn/kikukt/mvp/Mvp.kt | JerrNeon/Kiku-kotlin | e411310b23578168212ae48773f0f77934e3d52c | [
"Apache-2.0"
] | 1 | 2021-01-11T06:09:33.000Z | 2021-01-11T06:09:33.000Z | core/src/main/java/com/jn/kikukt/mvp/Mvp.kt | JerrNeon/Kiku-kotlin | e411310b23578168212ae48773f0f77934e3d52c | [
"Apache-2.0"
] | null | null | null | core/src/main/java/com/jn/kikukt/mvp/Mvp.kt | JerrNeon/Kiku-kotlin | e411310b23578168212ae48773f0f77934e3d52c | [
"Apache-2.0"
] | 1 | 2021-01-11T06:09:35.000Z | 2021-01-11T06:09:35.000Z | package com.jn.kikukt.mvp
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.LifecycleOwner
import com.jn.kikukt.common.utils.Clazz
import com.jn.kikukt.net.retrofit.BaseHttpResult
import com.jn.kikukt.net.rxjava.RxBaseObserver
import io.reactivex.rxjava3.disposables.CompositeDisposable
impor... | 26.728395 | 100 | 0.684065 |
e55d523ff249e499c656268ada6003704dcea468 | 665 | asm | Assembly | oeis/053/A053149.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/053/A053149.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/053/A053149.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A053149: Smallest cube divisible by n.
; Submitted by Christian Krause
; 1,8,27,8,125,216,343,8,27,1000,1331,216,2197,2744,3375,64,4913,216,6859,1000,9261,10648,12167,216,125,17576,27,2744,24389,27000,29791,64,35937,39304,42875,216,50653,54872,59319,1000,68921,74088,79507,10648,3375,97336,103823,1728,343,1000,132651,... | 73.888889 | 498 | 0.783459 |
74665dd51fc32ca1a6922dceeda7a4201dda232b | 4,960 | kt | Kotlin | native/native.tests/tests/org/jetbrains/kotlin/konan/blackboxtest/support/util/TestListing.kt | andreyfomenkov/kotlin-relaxed | 0f3f251454e49d20d4c7242beeac5d4bda021c28 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | native/native.tests/tests/org/jetbrains/kotlin/konan/blackboxtest/support/util/TestListing.kt | andreyfomenkov/kotlin-relaxed | 0f3f251454e49d20d4c7242beeac5d4bda021c28 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | native/native.tests/tests/org/jetbrains/kotlin/konan/blackboxtest/support/util/TestListing.kt | andreyfomenkov/kotlin-relaxed | 0f3f251454e49d20d4c7242beeac5d4bda021c28 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.konan.blackboxtest.support.util
import org.jetbrains.kotlin.konan.blackboxtest.s... | 39.68 | 115 | 0.602218 |
ddeda22f4e5eb798e5a185ee28d6478d40301306 | 5,733 | h | C | OpenSim/Common/TableUtilities.h | tnamayeshi/opensim-core | acbedd604909980293776da3d54b9611732964bf | [
"Apache-2.0"
] | null | null | null | OpenSim/Common/TableUtilities.h | tnamayeshi/opensim-core | acbedd604909980293776da3d54b9611732964bf | [
"Apache-2.0"
] | null | null | null | OpenSim/Common/TableUtilities.h | tnamayeshi/opensim-core | acbedd604909980293776da3d54b9611732964bf | [
"Apache-2.0"
] | null | null | null | #ifndef OPENSIM_TABLEUTILITIES_H_
#define OPENSIM_TABLEUTILITIES_H_
/* -------------------------------------------------------------------------- *
* OpenSim: TableUtilities.h *
* -------------------------------------------------------------------------- *
* The OpenS... | 52.118182 | 80 | 0.626025 |
75fc575ca77bab29d7c0fda21a231939d742b495 | 1,448 | php | PHP | templates/list/read.php | pendi/financial_monitoring | 8b83aaafcc47c6037c2207f8601c34a24cb47a97 | [
"MIT"
] | null | null | null | templates/list/read.php | pendi/financial_monitoring | 8b83aaafcc47c6037c2207f8601c34a24cb47a97 | [
"MIT"
] | null | null | null | templates/list/read.php | pendi/financial_monitoring | 8b83aaafcc47c6037c2207f8601c34a24cb47a97 | [
"MIT"
] | null | null | null | <?php
use \App\Component\Form;
use \Norm\Schema\String;
$form = Form::create()->of($entry);
?>
<h2><?php echo preg_replace('/\B([A-Z])/', ' $1', f('controller.name')); ?></h2>
<form method="post" role="form">
<p>
<a href="<?php echo f('controller.url') ?>" class="button round">List</a>
<a href="<... | 32.909091 | 110 | 0.486188 |
40a6876acc7ec1992c99b83aa02ec406ba2239a1 | 9,644 | py | Python | api/radiam-osf/radiam_api.py | usask-rc/radiam | bfa38fd33e211b66e30e453a717c5f216e848cb2 | [
"MIT"
] | 2 | 2020-02-01T20:41:28.000Z | 2020-02-03T20:57:59.000Z | api/radiam-osf/radiam_api.py | usask-rc/radiam | bfa38fd33e211b66e30e453a717c5f216e848cb2 | [
"MIT"
] | 10 | 2020-04-20T15:52:49.000Z | 2020-04-30T18:03:09.000Z | api/radiam-osf/radiam_api.py | usask-rc/radiam | bfa38fd33e211b66e30e453a717c5f216e848cb2 | [
"MIT"
] | null | null | null | import requests
import json
import time
import os
import urllib
import logging
class RadiamAPI(object):
def __init__(self, **kwargs):
self.logger = None
self.osf = False
self.baseurl = "http://radiamapi:8000" # Docker API container
self.headers = {
"Content-Type": "appl... | 40.864407 | 133 | 0.560037 |
8aadf28902891575c066cbb2aad039d5d94414eb | 1,169 | swift | Swift | ProjectIOS/ProjectIOS/CauHoi.swift | CANSA-team/IOS | 5c0d2da74d4d72fe7eed6e24bf402e667c728d09 | [
"Apache-2.0"
] | null | null | null | ProjectIOS/ProjectIOS/CauHoi.swift | CANSA-team/IOS | 5c0d2da74d4d72fe7eed6e24bf402e667c728d09 | [
"Apache-2.0"
] | null | null | null | ProjectIOS/ProjectIOS/CauHoi.swift | CANSA-team/IOS | 5c0d2da74d4d72fe7eed6e24bf402e667c728d09 | [
"Apache-2.0"
] | null | null | null | //. đối tượng câu hỏi
// CauHoi.swift
// ProjectIOS
//
// Created by Vu Minh Chuan on 4/16/21.
//
import Foundation
class CauHoi {
var hinhAnh:String = "hinhAnh"
var cauHoi:String = "cauHoi"
var cauTraLoi:[String] = ["cauTraLoi"]
var dapAn:Int = 0
init() {
}
init(_ hinhAnh:Strin... | 20.155172 | 76 | 0.545766 |
0bcbf703bb6d39b7d7300ee47950bbee99bccb39 | 1,256 | js | JavaScript | src/main/extension/implant-manual.js | mike10004/chrome-cookie-implant | c82b5da7655084675f13ea58bccba3459e6ceeb0 | [
"MIT"
] | null | null | null | src/main/extension/implant-manual.js | mike10004/chrome-cookie-implant | c82b5da7655084675f13ea58bccba3459e6ceeb0 | [
"MIT"
] | 1 | 2016-12-14T23:17:03.000Z | 2016-12-14T23:17:03.000Z | src/main/extension/implant-manual.js | mike10004/chrome-cookie-implant | c82b5da7655084675f13ea58bccba3459e6ceeb0 | [
"MIT"
] | null | null | null | document.addEventListener('DOMContentLoaded', function() {
var exampleCookie = {
url: 'https://www.example.com/',
name: 'foo'
};
var cookieJsonTextArea = document.getElementById('cookie-json');
cookieJsonTextArea.innerText = JSON.stringify(exampleCookie);
var messageDiv = document.ge... | 39.25 | 70 | 0.609873 |
d4647a0843522636d76edc135cc406f924fbe0c5 | 2,548 | rs | Rust | src/bounded_rand.rs | sortalongo/gas_sim | decc77477631efe552f03baa660036fbeb906e93 | [
"MIT"
] | null | null | null | src/bounded_rand.rs | sortalongo/gas_sim | decc77477631efe552f03baa660036fbeb906e93 | [
"MIT"
] | null | null | null | src/bounded_rand.rs | sortalongo/gas_sim | decc77477631efe552f03baa660036fbeb906e93 | [
"MIT"
] | null | null | null | use rand::{Rng};
use super::{CustomFloat, Particle, Vector};
pub trait BoundedRand {
/// pseudo-extends the Rand typeclass with the ability to specify bounds
/// for the generated type. Bounds are assumed to be closed.
fn rand <R: Rng>(rng: &mut R, lower: &Self, upper: &Self) -> Self;
}
impl BoundedRand for Cu... | 24.266667 | 90 | 0.571036 |
81e889ed319956912ece21dcbb395a0e33e52779 | 257 | asm | Assembly | programs/oeis/140/A140504.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/140/A140504.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/140/A140504.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A140504: a(n) = 2^n + 4.
; 5,6,8,12,20,36,68,132,260,516,1028,2052,4100,8196,16388,32772,65540,131076,262148,524292,1048580,2097156,4194308,8388612,16777220,33554436,67108868,134217732,268435460,536870916,1073741828
mov $1,2
pow $1,$0
add $1,4
mov $0,$1
| 32.125 | 190 | 0.7393 |
c733aa032e00c14521fab69e99399c01a990dfb7 | 7,839 | kt | Kotlin | src/app/src/main/java/com/huawei/faceoffdresstrial/kotlin/repo/RoomRepo.kt | huaweicodelabs/FaceOffDressTrial | 6d02c5569a9f95d22115e95555761b9be95d44a4 | [
"Apache-2.0"
] | null | null | null | src/app/src/main/java/com/huawei/faceoffdresstrial/kotlin/repo/RoomRepo.kt | huaweicodelabs/FaceOffDressTrial | 6d02c5569a9f95d22115e95555761b9be95d44a4 | [
"Apache-2.0"
] | null | null | null | src/app/src/main/java/com/huawei/faceoffdresstrial/kotlin/repo/RoomRepo.kt | huaweicodelabs/FaceOffDressTrial | 6d02c5569a9f95d22115e95555761b9be95d44a4 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | 51.572368 | 91 | 0.735425 |
72f9daf24cf9aba4c1ff3fda5ac2c5792e5b22d3 | 411 | html | HTML | tmpl/discord.html | epictaco302/hidens-website | 5f36ab3784aad9e2c343acfb26532d27acee7258 | [
"BSD-3-Clause"
] | 6 | 2022-01-18T13:34:37.000Z | 2022-03-25T14:06:51.000Z | tmpl/discord.html | epictaco302/hidens-website | 5f36ab3784aad9e2c343acfb26532d27acee7258 | [
"BSD-3-Clause"
] | 2 | 2022-01-27T16:43:15.000Z | 2022-03-24T11:28:09.000Z | tmpl/discord.html | HIDEN64/hidens-website | 5f36ab3784aad9e2c343acfb26532d27acee7258 | [
"BSD-3-Clause"
] | null | null | null | {%- extends 'base.html' -%}
{%- block meta -%}
<meta name=description content="HIDEN64's Discord server."/>
<meta http-equiv=refresh content="5; url='https://discord.gg/zH9kMEzEYM" />
{%- endblock -%}
{%- block content -%}
<p>You should be redirected to my Discord server in 5 seconds.</p>
<p>If you aren'... | 31.615385 | 87 | 0.644769 |
5d187b856a1f6bbec529d5a6a53b14810b2b866a | 2,605 | sql | SQL | projects/data-core/src/test/resources/com/lbibera/tradebutler/datacore/corporation/repository/CorporationRepositoryTest.findByIdShouldReturnCorrectCorporation.sql | hack-of-all-codes/project-tradebutler | fd50a08ccfef25d631eab3482e365964ecffe668 | [
"Apache-2.0"
] | 1 | 2017-05-20T23:07:42.000Z | 2017-05-20T23:07:42.000Z | projects/data-core/src/test/resources/com/lbibera/tradebutler/datacore/corporation/repository/CorporationRepositoryTest.findByIdShouldReturnCorrectCorporation.sql | hack-of-all-codes/project-tradebutler | fd50a08ccfef25d631eab3482e365964ecffe668 | [
"Apache-2.0"
] | 21 | 2017-03-26T02:59:16.000Z | 2017-04-15T04:25:17.000Z | projects/data-core/src/test/resources/com/lbibera/tradebutler/datacore/corporation/repository/CorporationRepositoryTest.findByIdShouldReturnCorrectCorporation.sql | hack-of-all-codes/project-tradebutler | fd50a08ccfef25d631eab3482e365964ecffe668 | [
"Apache-2.0"
] | null | null | null | DELETE FROM historical_price;
DELETE FROM stock;
DELETE FROM corporation;
INSERT INTO corporation(id, name, description, incorporation_date, sector, sub_sector)
VALUES (1, 'San Miguel Corporation', 'San Miguel Corporation (SMC) was originally founded in 1890 as a single-product brewery in the Philippines. The Comp... | 173.666667 | 478 | 0.789635 |
ad14d27fd642716330628de241dac49269d06ebe | 667 | swift | Swift | DemoApp/DemoArcade/DemoArcade/LoadingViewController.swift | psaitu/swift-arcade | fa77cfb1b41a48ec3dbb84010d71e2b8bd8c50cb | [
"MIT"
] | 492 | 2020-03-15T20:42:55.000Z | 2022-03-31T04:40:12.000Z | DemoApp/DemoArcade/DemoArcade/LoadingViewController.swift | dlsolution/swift-arcade | 35474e8b37052d310af8c193d7d4ebb473caa9ee | [
"MIT"
] | 2 | 2021-01-14T08:05:06.000Z | 2021-04-02T20:42:40.000Z | DemoApp/DemoArcade/DemoArcade/LoadingViewController.swift | dlsolution/swift-arcade | 35474e8b37052d310af8c193d7d4ebb473caa9ee | [
"MIT"
] | 98 | 2020-05-21T12:04:15.000Z | 2022-03-29T10:37:13.000Z | //
// LoadingViewController.swift
// DemoArcade
//
// Created by Jonathan Rasmusson Work Pro on 2020-04-03.
// Copyright © 2020 Rasmusson Software Consulting. All rights reserved.
//
import UIKit
class LoadingViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
... | 23 | 83 | 0.682159 |
2e119f99172f7f89fbe4d6ff5dd06610152574ca | 559 | kt | Kotlin | app/src/main/java/nawrot/mateusz/timesup/di/ViewModelModule.kt | mateusz-nawrot/TimesUp | 3110e0649ee63e0c9d43d6092030d19d74acdee7 | [
"MIT"
] | 1 | 2020-04-20T21:36:21.000Z | 2020-04-20T21:36:21.000Z | app/src/main/java/nawrot/mateusz/timesup/di/ViewModelModule.kt | mateusz-nawrot/TimesUp | 3110e0649ee63e0c9d43d6092030d19d74acdee7 | [
"MIT"
] | null | null | null | app/src/main/java/nawrot/mateusz/timesup/di/ViewModelModule.kt | mateusz-nawrot/TimesUp | 3110e0649ee63e0c9d43d6092030d19d74acdee7 | [
"MIT"
] | null | null | null | package nawrot.mateusz.timesup.di
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import dagger.Binds
import dagger.Module
import dagger.multibindings.IntoMap
import nawrot.mateusz.timesup.app.home.HomeViewModel
@Module
abstract class ViewModelModule {
@Binds
abstract fun bin... | 25.409091 | 115 | 0.822898 |
db562cd5d36b60dc1e32144a3bb9399b39a4cc45 | 568 | swift | Swift | Example/Pods/MFL-Common/MFL-Common/Classes/Session.swift | FWAlex/MFLToxicMessages | 03de4aacc15c269014d28da8226d6165c73091c7 | [
"MIT"
] | null | null | null | Example/Pods/MFL-Common/MFL-Common/Classes/Session.swift | FWAlex/MFLToxicMessages | 03de4aacc15c269014d28da8226d6165c73091c7 | [
"MIT"
] | null | null | null | Example/Pods/MFL-Common/MFL-Common/Classes/Session.swift | FWAlex/MFLToxicMessages | 03de4aacc15c269014d28da8226d6165c73091c7 | [
"MIT"
] | null | null | null | //
// Session.swift
// MFLHalsa
//
// Created by Alex Miculescu on 07/07/2017.
// Copyright © 2017 Future Workshops. All rights reserved.
//
import Foundation
public protocol Session {
var id : String { get }
var title : String { get }
var startDate : Date { get }
var endDate : Date { get }
va... | 24.695652 | 59 | 0.649648 |
04ae2ad0db218fdbd1ccf057878f82b444c4cb89 | 3,551 | html | HTML | projects/go-style-guide/src/app/features/ui-kit/components/table-docs/components/table-pagination/table-pagination.component.html | AlexOverbeck/goponents | e34f312225041544d928eb152da84b40d08c2a52 | [
"MIT"
] | null | null | null | projects/go-style-guide/src/app/features/ui-kit/components/table-docs/components/table-pagination/table-pagination.component.html | AlexOverbeck/goponents | e34f312225041544d928eb152da84b40d08c2a52 | [
"MIT"
] | null | null | null | projects/go-style-guide/src/app/features/ui-kit/components/table-docs/components/table-pagination/table-pagination.component.html | AlexOverbeck/goponents | e34f312225041544d928eb152da84b40d08c2a52 | [
"MIT"
] | null | null | null | <section class="go-container">
<go-card class="go-column go-column--100">
<ng-container go-card-header>
<h2 class="go-heading-2">Implementing Paging</h2>
</ng-container>
<div class="go-container" go-card-content>
<div class="go-column go-column--100">
<p class="go-body-copy">
... | 44.3875 | 179 | 0.633343 |
363480da33ab4097111a80e8213c2c99995633ed | 5,933 | rs | Rust | runtime/wasm/src/gas_rules.rs | Fairyswap/graph-node | bbfb72f330f55f229d6cfc9a806e3d992f3919f1 | [
"Apache-2.0",
"MIT"
] | null | null | null | runtime/wasm/src/gas_rules.rs | Fairyswap/graph-node | bbfb72f330f55f229d6cfc9a806e3d992f3919f1 | [
"Apache-2.0",
"MIT"
] | null | null | null | runtime/wasm/src/gas_rules.rs | Fairyswap/graph-node | bbfb72f330f55f229d6cfc9a806e3d992f3919f1 | [
"Apache-2.0",
"MIT"
] | 1 | 2022-01-11T07:01:30.000Z | 2022-01-11T07:01:30.000Z | use std::{convert::TryInto, num::NonZeroU32};
use graph::runtime::gas::CONST_MAX_GAS_PER_HANDLER;
use parity_wasm::elements::Instruction;
use pwasm_utils::rules::{MemoryGrowCost, Rules};
pub const GAS_COST_STORE: u32 = 2263;
pub const GAS_COST_LOAD: u32 = 1573;
pub struct GasRules;
impl Rules for GasRules {
fn ... | 35.106509 | 112 | 0.489971 |
0437f2172962ff7df8b47bcb8c7cde801f02ab79 | 522 | java | Java | server/src/main/java/pl/safenet/server/ImageFileFilter.java | precht/safenet | c5d386cbb74ee7a75c84e71d0d7c4ff98c043a95 | [
"MIT"
] | null | null | null | server/src/main/java/pl/safenet/server/ImageFileFilter.java | precht/safenet | c5d386cbb74ee7a75c84e71d0d7c4ff98c043a95 | [
"MIT"
] | null | null | null | server/src/main/java/pl/safenet/server/ImageFileFilter.java | precht/safenet | c5d386cbb74ee7a75c84e71d0d7c4ff98c043a95 | [
"MIT"
] | null | null | null | package pl.safenet.server;
import java.io.*;
public class ImageFileFilter implements FileFilter
{
// private final String[] acceptedExtensions = new String[] {".bmp", ".png", ".jpg", ".jpeg"};
private final String[] acceptedExtensions = new String[] {".png"};
@Override
public boolean accept(File f... | 21.75 | 96 | 0.611111 |
5eb7b59ea92df039ed984f378c3a2bf6b29363ce | 748 | kt | Kotlin | src/test/kotlin/com/leetcode/P69Test.kt | antop-dev/algorithm | 9c8b1c1ecbac97829631b7b8db3666682dc5bf1c | [
"MIT"
] | null | null | null | src/test/kotlin/com/leetcode/P69Test.kt | antop-dev/algorithm | 9c8b1c1ecbac97829631b7b8db3666682dc5bf1c | [
"MIT"
] | 373 | 2019-12-22T13:14:14.000Z | 2022-03-29T13:22:28.000Z | src/test/kotlin/com/leetcode/P69Test.kt | antop-dev/algorithm | 9c8b1c1ecbac97829631b7b8db3666682dc5bf1c | [
"MIT"
] | null | null | null | package com.leetcode
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.Matchers.`is`
import org.junit.jupiter.api.Test
internal class P69Test {
val p = P69()
@Test
fun `example 1`() {
assertThat(p.mySqrt(4), `is`(2))
}
@Test
fun `example 2`() {
assertThat(p.myS... | 16.622222 | 53 | 0.525401 |
626c11a9fbb6e983da981b6d7beca04aafb4aa41 | 312 | asm | Assembly | programs/oeis/156/A156859.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/156/A156859.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/156/A156859.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A156859: The main column of a version of the square spiral.
; 0,3,7,14,22,33,45,60,76,95,115,138,162,189,217,248,280,315,351,390,430,473,517,564,612,663,715,770,826,885,945,1008,1072,1139,1207,1278,1350,1425,1501,1580,1660,1743,1827,1914,2002,2093,2185,2280,2376,2475,2575
mul $0,2
add $0,2
bin $0,2
div $0,2
| 39 | 212 | 0.727564 |