hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 | qsc_code_num_words_quality_signal int64 | qsc_code_num_chars_quality_signal float64 | qsc_code_mean_word_length_quality_signal float64 | qsc_code_frac_words_unique_quality_signal float64 | qsc_code_frac_chars_top_2grams_quality_signal float64 | qsc_code_frac_chars_top_3grams_quality_signal float64 | qsc_code_frac_chars_top_4grams_quality_signal float64 | qsc_code_frac_chars_dupe_5grams_quality_signal float64 | qsc_code_frac_chars_dupe_6grams_quality_signal float64 | qsc_code_frac_chars_dupe_7grams_quality_signal float64 | qsc_code_frac_chars_dupe_8grams_quality_signal float64 | qsc_code_frac_chars_dupe_9grams_quality_signal float64 | qsc_code_frac_chars_dupe_10grams_quality_signal float64 | qsc_code_frac_chars_replacement_symbols_quality_signal float64 | qsc_code_frac_chars_digital_quality_signal float64 | qsc_code_frac_chars_whitespace_quality_signal float64 | qsc_code_size_file_byte_quality_signal float64 | qsc_code_num_lines_quality_signal float64 | qsc_code_num_chars_line_max_quality_signal float64 | qsc_code_num_chars_line_mean_quality_signal float64 | qsc_code_frac_chars_alphabet_quality_signal float64 | qsc_code_frac_chars_comments_quality_signal float64 | qsc_code_cate_xml_start_quality_signal float64 | qsc_code_frac_lines_dupe_lines_quality_signal float64 | qsc_code_cate_autogen_quality_signal float64 | qsc_code_frac_lines_long_string_quality_signal float64 | qsc_code_frac_chars_string_length_quality_signal float64 | qsc_code_frac_chars_long_word_length_quality_signal float64 | qsc_code_frac_lines_string_concat_quality_signal float64 | qsc_code_cate_encoded_data_quality_signal float64 | qsc_code_frac_chars_hex_words_quality_signal float64 | qsc_code_frac_lines_prompt_comments_quality_signal float64 | qsc_code_frac_lines_assert_quality_signal float64 | qsc_codepython_cate_ast_quality_signal float64 | qsc_codepython_frac_lines_func_ratio_quality_signal float64 | qsc_codepython_cate_var_zero_quality_signal bool | qsc_codepython_frac_lines_pass_quality_signal float64 | qsc_codepython_frac_lines_import_quality_signal float64 | qsc_codepython_frac_lines_simplefunc_quality_signal float64 | qsc_codepython_score_lines_no_logic_quality_signal float64 | qsc_codepython_frac_lines_print_quality_signal float64 | qsc_code_num_words int64 | qsc_code_num_chars int64 | qsc_code_mean_word_length int64 | qsc_code_frac_words_unique null | qsc_code_frac_chars_top_2grams int64 | qsc_code_frac_chars_top_3grams int64 | qsc_code_frac_chars_top_4grams int64 | qsc_code_frac_chars_dupe_5grams int64 | qsc_code_frac_chars_dupe_6grams int64 | qsc_code_frac_chars_dupe_7grams int64 | qsc_code_frac_chars_dupe_8grams int64 | qsc_code_frac_chars_dupe_9grams int64 | qsc_code_frac_chars_dupe_10grams int64 | qsc_code_frac_chars_replacement_symbols int64 | qsc_code_frac_chars_digital int64 | qsc_code_frac_chars_whitespace int64 | qsc_code_size_file_byte int64 | qsc_code_num_lines int64 | qsc_code_num_chars_line_max int64 | qsc_code_num_chars_line_mean int64 | qsc_code_frac_chars_alphabet int64 | qsc_code_frac_chars_comments int64 | qsc_code_cate_xml_start int64 | qsc_code_frac_lines_dupe_lines int64 | qsc_code_cate_autogen int64 | qsc_code_frac_lines_long_string int64 | qsc_code_frac_chars_string_length int64 | qsc_code_frac_chars_long_word_length int64 | qsc_code_frac_lines_string_concat null | qsc_code_cate_encoded_data int64 | qsc_code_frac_chars_hex_words int64 | qsc_code_frac_lines_prompt_comments int64 | qsc_code_frac_lines_assert int64 | qsc_codepython_cate_ast int64 | qsc_codepython_frac_lines_func_ratio int64 | qsc_codepython_cate_var_zero int64 | qsc_codepython_frac_lines_pass int64 | qsc_codepython_frac_lines_import int64 | qsc_codepython_frac_lines_simplefunc int64 | qsc_codepython_score_lines_no_logic int64 | qsc_codepython_frac_lines_print int64 | effective string | hits int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
26152ea9c8195dd786357875ed03982653fa6198 | 693 | py | Python | leetcode/ag_142.py | baobei813214232/common-alglib | 303e4edc5f7c1b5e9a2a6ebc4742d7bae61c5d31 | [
"MIT"
] | 4 | 2017-05-02T09:47:48.000Z | 2019-05-01T06:26:26.000Z | leetcode/ag_142.py | xiaolongnk/Alglib | 303e4edc5f7c1b5e9a2a6ebc4742d7bae61c5d31 | [
"MIT"
] | null | null | null | leetcode/ag_142.py | xiaolongnk/Alglib | 303e4edc5f7c1b5e9a2a6ebc4742d7bae61c5d31 | [
"MIT"
] | 1 | 2021-01-31T07:21:53.000Z | 2021-01-31T07:21:53.000Z | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def detectCycle(self, head):
"""
:type head: ListNode
:rtype: ListNode
"""
fast , slow = head, head
w... | 23.896552 | 49 | 0.455988 | 73 | 693 | 4.273973 | 0.410959 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013263 | 0.455988 | 693 | 28 | 50 | 24.75 | 0.814324 | 0.24531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
261689174af22f081768d02766489109ac69c378 | 6,473 | py | Python | src/xsd_frontend/tests.py | minyiky/xSACdb | 8c407e9a9da196750a66ad53613ad67c8c56e1c3 | [
"MIT"
] | 2 | 2017-08-14T14:40:17.000Z | 2019-02-07T13:10:23.000Z | src/xsd_frontend/tests.py | minyiky/xSACdb | 8c407e9a9da196750a66ad53613ad67c8c56e1c3 | [
"MIT"
] | 19 | 2016-02-07T18:02:53.000Z | 2019-11-03T17:48:13.000Z | src/xsd_frontend/tests.py | minyiky/xSACdb | 8c407e9a9da196750a66ad53613ad67c8c56e1c3 | [
"MIT"
] | 4 | 2015-10-19T17:24:35.000Z | 2021-05-12T07:30:32.000Z | from unittest.mock import patch
from django.conf import settings
from django.core.cache import cache
from django.urls import reverse
from django.test import TestCase
from django.test.client import Client
from faker import Factory
from xSACdb import version
from xSACdb.test_helpers import BaseTest, ViewTestMixin
from ... | 36.365169 | 108 | 0.654102 | 842 | 6,473 | 4.882423 | 0.193587 | 0.094867 | 0.013622 | 0.049623 | 0.616882 | 0.600097 | 0.58161 | 0.573826 | 0.573826 | 0.510095 | 0 | 0.02551 | 0.21273 | 6,473 | 177 | 109 | 36.570621 | 0.781201 | 0.120964 | 0 | 0.441667 | 0 | 0 | 0.138874 | 0.041998 | 0 | 0 | 0 | 0 | 0.258333 | 1 | 0.158333 | false | 0.066667 | 0.083333 | 0 | 0.366667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
261cfef45a31dea813992988d61e7e7a3270e12b | 306 | py | Python | setup.py | gorgeousbubble/Nightmare | b374b48877898b6193081b7a8a6d2fb571816c75 | [
"Apache-2.0"
] | 1 | 2019-10-24T15:47:18.000Z | 2019-10-24T15:47:18.000Z | setup.py | gorgeousbubble/Nightmare | b374b48877898b6193081b7a8a6d2fb571816c75 | [
"Apache-2.0"
] | null | null | null | setup.py | gorgeousbubble/Nightmare | b374b48877898b6193081b7a8a6d2fb571816c75 | [
"Apache-2.0"
] | 3 | 2019-10-24T15:47:25.000Z | 2020-11-01T01:26:41.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from distutils.core import setup, Extension
from Cython.Build import cythonize
setup(
ext_modules=cythonize(['main.py'], compiler_directives=dict(
always_allow_keywords=True,
c_string_encoding='utf-8',
language_level=3,
))
)
| 21.857143 | 64 | 0.679739 | 39 | 306 | 5.153846 | 0.846154 | 0.039801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.189542 | 306 | 13 | 65 | 23.538462 | 0.794355 | 0.140523 | 0 | 0 | 0 | 0 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2623c5267dec89d71588e10988a262b4881c9fa4 | 10,074 | py | Python | mozmill-env/python/Lib/site-packages/mozdevice/droid.py | lucashmorais/x-Bench | 2080b8753dd6e45c2212666bcdb05327752a94e9 | [
"MIT"
] | null | null | null | mozmill-env/python/Lib/site-packages/mozdevice/droid.py | lucashmorais/x-Bench | 2080b8753dd6e45c2212666bcdb05327752a94e9 | [
"MIT"
] | null | null | null | mozmill-env/python/Lib/site-packages/mozdevice/droid.py | lucashmorais/x-Bench | 2080b8753dd6e45c2212666bcdb05327752a94e9 | [
"MIT"
] | null | null | null | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
import StringIO
import moznetwork
import re
import threading
import time
from Zeroconf import Zeroconf, ServiceBrowser
... | 40.620968 | 169 | 0.615148 | 1,164 | 10,074 | 5.303265 | 0.350515 | 0.007776 | 0.012312 | 0.008748 | 0.106431 | 0.086506 | 0.071278 | 0.071278 | 0.056699 | 0.056699 | 0 | 0.008588 | 0.294918 | 10,074 | 247 | 170 | 40.785425 | 0.860481 | 0.222156 | 0 | 0.131783 | 0 | 0 | 0.094604 | 0.016257 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085271 | null | null | 0.015504 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
262428f0105c318158a3958901269b30da424a60 | 4,845 | py | Python | pcapman/Flows_from_pcap.py | att-innovate/pcapman | 90a0c2ab30715958fa903305661c4ab43c974771 | [
"MIT"
] | 2 | 2017-12-02T21:03:51.000Z | 2019-10-01T12:31:43.000Z | pcapman/Flows_from_pcap.py | att-innovate/pcapman | 90a0c2ab30715958fa903305661c4ab43c974771 | [
"MIT"
] | null | null | null | pcapman/Flows_from_pcap.py | att-innovate/pcapman | 90a0c2ab30715958fa903305661c4ab43c974771 | [
"MIT"
] | 4 | 2017-11-30T20:30:26.000Z | 2019-11-01T18:13:39.000Z | # Function to get Flows From Pcap data
import time
from datetime import datetime
from datetime import timedelta
IpProtocol = {}
IpProtocol[0]="HOPOPT"
IpProtocol[1]="ICMP"
IpProtocol[6]="TCP"
IpProtocol[17]="UDP"
IpProtocol[47]="GRE"
IpProtocol[50]="ESP"
IpProtocol[132]="OTHER"
def GetUnixTime(timestamp):
time_... | 40.375 | 125 | 0.549639 | 525 | 4,845 | 5.022857 | 0.215238 | 0.083807 | 0.053091 | 0.052332 | 0.508532 | 0.47592 | 0.416003 | 0.362912 | 0.362912 | 0.274554 | 0 | 0.029228 | 0.307946 | 4,845 | 119 | 126 | 40.714286 | 0.757232 | 0.078844 | 0 | 0.291262 | 0 | 0 | 0.108466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029126 | null | null | 0.038835 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
263bce2c6ee9b4bbcf9794ce6c458e71a3cf4c1f | 1,241 | py | Python | PythonSnippets.py | dhamodharanrk/examples | c18b626898bc53cecdd8a6d1b5e31e78ca6e7522 | [
"MIT"
] | 1 | 2019-04-30T08:54:42.000Z | 2019-04-30T08:54:42.000Z | PythonSnippets.py | dhamodharanrk/stackoverflow | c18b626898bc53cecdd8a6d1b5e31e78ca6e7522 | [
"MIT"
] | null | null | null | PythonSnippets.py | dhamodharanrk/stackoverflow | c18b626898bc53cecdd8a6d1b5e31e78ca6e7522 | [
"MIT"
] | 1 | 2020-11-06T07:52:30.000Z | 2020-11-06T07:52:30.000Z | '''Its an collection of usefull/repeated functions. It has traditional funcction as well as lambda'''
# =================LIST OPERATIONS===================#
def findDiff(first, second):
second = set(second)
return [item for item in first if item not in second]
# findDiff = lambda first, second: [item for it... | 31.820513 | 118 | 0.647865 | 156 | 1,241 | 5.115385 | 0.423077 | 0.075188 | 0.055138 | 0.042607 | 0.177945 | 0.177945 | 0.177945 | 0.087719 | 0.087719 | 0.087719 | 0 | 0.001874 | 0.14021 | 1,241 | 38 | 119 | 32.657895 | 0.746017 | 0.46253 | 0 | 0 | 0 | 0 | 0.087423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0.058824 | 0.588235 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26467f4c4e16d215b9ae3cc598bb5fb0cec66fe6 | 2,949 | py | Python | game/migrations/0001_initial.py | koualsky/holdemon | 5531220b3d7ac48fd03dd13e6745e7965108a54a | [
"Apache-2.0"
] | null | null | null | game/migrations/0001_initial.py | koualsky/holdemon | 5531220b3d7ac48fd03dd13e6745e7965108a54a | [
"Apache-2.0"
] | 7 | 2020-06-05T22:49:58.000Z | 2022-02-10T08:12:39.000Z | game/migrations/0001_initial.py | koualsky/holdemon | 5531220b3d7ac48fd03dd13e6745e7965108a54a | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.2 on 2019-08-29 07:41
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 56.711538 | 157 | 0.640895 | 342 | 2,949 | 5.368421 | 0.239766 | 0.056645 | 0.083878 | 0.131808 | 0.503268 | 0.503268 | 0.486928 | 0.448802 | 0.448802 | 0.448802 | 0 | 0.018471 | 0.21058 | 2,949 | 51 | 158 | 57.823529 | 0.770189 | 0.015259 | 0 | 0.25 | 1 | 0 | 0.115782 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068182 | 0 | 0.159091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
264735b3f7013d50674983c431cc9709a19ce6a0 | 1,971 | py | Python | pygrim/formulas/gaussian_quadrature.py | mezzarobba/fungrim | 01866a19882d44420e01383165dbb0a9f97680da | [
"MIT"
] | 102 | 2019-03-15T19:57:55.000Z | 2022-03-04T06:56:18.000Z | pygrim/formulas/gaussian_quadrature.py | mezzarobba/fungrim | 01866a19882d44420e01383165dbb0a9f97680da | [
"MIT"
] | 26 | 2019-03-15T03:17:26.000Z | 2022-02-21T17:46:50.000Z | pygrim/formulas/gaussian_quadrature.py | mezzarobba/fungrim | 01866a19882d44420e01383165dbb0a9f97680da | [
"MIT"
] | 12 | 2019-03-15T01:59:04.000Z | 2022-02-24T14:53:35.000Z | # -*- coding: utf-8 -*-
from ..expr import *
def_Topic(
Title("Gaussian quadrature"),
Section("Gauss-Legendre quadrature"),
SeeTopics("Legendre polynomials"),
Entries(
"0745ee", # Legendre polynomial zeros
"ea4754", # weights
"47b181", # -1,1
"545987", # a,b
... | 51.868421 | 180 | 0.632166 | 281 | 1,971 | 4.419929 | 0.298932 | 0.012882 | 0.077295 | 0.055556 | 0.611111 | 0.547504 | 0.483092 | 0.436393 | 0.436393 | 0.375201 | 0 | 0.069461 | 0.152714 | 1,971 | 37 | 181 | 53.27027 | 0.674252 | 0.032471 | 0 | 0.066667 | 0 | 0.066667 | 0.173684 | 0.022105 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.033333 | 0 | 0.033333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2648d815491a99c3f924814d9e16916fe3c7d648 | 3,206 | py | Python | zinc/route53/health_check.py | PressLabs/zinc | 9e1dc852f31f9897e7759962cf0f3e6d42fbe637 | [
"Apache-2.0"
] | 29 | 2017-06-29T15:03:49.000Z | 2018-01-30T14:07:26.000Z | zinc/route53/health_check.py | presslabs/zinc | 94146e5203fc93ee0e8bb011a4db0ffcd4b0096e | [
"Apache-2.0"
] | 9 | 2019-01-11T09:07:17.000Z | 2022-02-03T12:50:21.000Z | zinc/route53/health_check.py | PressLabs/zinc | 9e1dc852f31f9897e7759962cf0f3e6d42fbe637 | [
"Apache-2.0"
] | 1 | 2020-08-09T18:17:25.000Z | 2020-08-09T18:17:25.000Z | import uuid
import logging
from botocore.exceptions import ClientError
from django.conf import settings
from .client import get_client
logger = logging.getLogger('zinc.route53')
def generate_caller_ref():
return 'zinc {}'.format(uuid.uuid4())
class HealthCheck:
def __init__(self, ip):
self.ip = i... | 31.126214 | 98 | 0.594822 | 370 | 3,206 | 4.972973 | 0.243243 | 0.078261 | 0.10163 | 0.075 | 0.240217 | 0.167391 | 0.15163 | 0.121739 | 0.086957 | 0.036957 | 0 | 0.005403 | 0.307236 | 3,206 | 102 | 99 | 31.431373 | 0.823053 | 0.018403 | 0 | 0.258824 | 1 | 0 | 0.066455 | 0.008903 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129412 | false | 0.011765 | 0.058824 | 0.011765 | 0.270588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
264c94a6d5920632135b94eadd0c9c666c966b32 | 3,264 | py | Python | ee/clickhouse/sql/retention/retention.py | lharress/posthog | 73809d54b14ffc1b6ad6f600e0e4f06ab3090cb1 | [
"MIT"
] | null | null | null | ee/clickhouse/sql/retention/retention.py | lharress/posthog | 73809d54b14ffc1b6ad6f600e0e4f06ab3090cb1 | [
"MIT"
] | null | null | null | ee/clickhouse/sql/retention/retention.py | lharress/posthog | 73809d54b14ffc1b6ad6f600e0e4f06ab3090cb1 | [
"MIT"
] | null | null | null | RETENTION_SQL = """
SELECT
datediff(%(period)s, {trunc_func}(toDateTime(%(start_date)s)), reference_event.event_date) as base_interval,
datediff(%(period)s, reference_event.event_date, {trunc_func}(toDateTime(event_date))) as intervals_from_base,
COUNT(DISTINCT event.target) count
FROM (
{returning_even... | 34.357895 | 135 | 0.736213 | 459 | 3,264 | 4.91939 | 0.122004 | 0.067759 | 0.049601 | 0.033658 | 0.659876 | 0.523029 | 0.384854 | 0.384854 | 0.310452 | 0.24225 | 0 | 0.001092 | 0.158088 | 3,264 | 94 | 136 | 34.723404 | 0.820597 | 0 | 0 | 0.268293 | 0 | 0.036585 | 0.929841 | 0.358456 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26547d76ea8a03c8a5017c3a400553f967127555 | 1,205 | py | Python | garfield/deterrence/admin.py | RobSpectre/garfield | ab806b7ad9221bd1b17c92daadd0a53a4f261cbe | [
"MIT"
] | 3 | 2017-10-15T20:55:00.000Z | 2018-04-25T21:30:57.000Z | garfield/deterrence/admin.py | RobSpectre/garfield | ab806b7ad9221bd1b17c92daadd0a53a4f261cbe | [
"MIT"
] | 12 | 2018-07-15T20:42:01.000Z | 2021-06-10T17:39:46.000Z | garfield/deterrence/admin.py | RobSpectre/garfield | ab806b7ad9221bd1b17c92daadd0a53a4f261cbe | [
"MIT"
] | 1 | 2018-06-30T02:51:31.000Z | 2018-06-30T02:51:31.000Z | from django.contrib import admin
from .models import Deterrent
from .models import DeterrenceCampaign
from .models import DeterrenceMessage
class DeterrenceMessageInline(admin.TabularInline):
model = DeterrenceMessage
readonly_fields = ('date_created',
'status',
... | 26.195652 | 53 | 0.607469 | 100 | 1,205 | 7.14 | 0.52 | 0.042017 | 0.067227 | 0.070028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002421 | 0.314523 | 1,205 | 45 | 54 | 26.777778 | 0.861985 | 0 | 0 | 0.235294 | 0 | 0 | 0.139419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0.058824 | 0.117647 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
265785dbf7e1aa1c4c5c30c1558d8b3ad33b7051 | 1,633 | py | Python | notebook/pandas_index_columns_select.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 174 | 2018-05-30T21:14:50.000Z | 2022-03-25T07:59:37.000Z | notebook/pandas_index_columns_select.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 5 | 2019-08-10T03:22:02.000Z | 2021-07-12T20:31:17.000Z | notebook/pandas_index_columns_select.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 53 | 2018-04-27T05:26:35.000Z | 2022-03-25T07:59:37.000Z | import pandas as pd
df = pd.read_csv('data/src/sample_pandas_normal.csv', index_col=0)
print(df)
# age state point
# name
# Alice 24 NY 64
# Bob 42 CA 92
# Charlie 18 CA 70
# Dave 68 TX 70
# Ellen 24 CA 88
# Frank 30 NY 5... | 24.373134 | 91 | 0.507655 | 225 | 1,633 | 3.666667 | 0.222222 | 0.093333 | 0.08 | 0.094545 | 0.635152 | 0.515152 | 0.515152 | 0.449697 | 0.375758 | 0.375758 | 0 | 0.070328 | 0.36436 | 1,633 | 66 | 92 | 24.742424 | 0.72447 | 0.641151 | 0 | 0 | 0 | 0 | 0.08427 | 0.061798 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.846154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
265a2c86b6b7652b054aba58113e2197d5d02440 | 1,283 | py | Python | compiler/microcode.py | ungood/logisim-cpu | 513051803e9739232650103187e18a1148b084a0 | [
"MIT"
] | null | null | null | compiler/microcode.py | ungood/logisim-cpu | 513051803e9739232650103187e18a1148b084a0 | [
"MIT"
] | null | null | null | compiler/microcode.py | ungood/logisim-cpu | 513051803e9739232650103187e18a1148b084a0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from io import TextIOBase
from logzero import logger
from architecture import Architecture, ARCHITECTURES
from raw import RawWriter
def pad(array, desired_length, default_value):
"""Pads the input array to a given length with the supplied value."""
return array + [default_value] * (des... | 30.547619 | 73 | 0.660951 | 155 | 1,283 | 5.329032 | 0.43871 | 0.048426 | 0.053269 | 0.077482 | 0.048426 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008089 | 0.22915 | 1,283 | 41 | 74 | 31.292683 | 0.827098 | 0.066251 | 0 | 0 | 0 | 0 | 0.051175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.172414 | 0 | 0.448276 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2666052cdb86010b237ac0d0249916a4c4c3ec5a | 1,204 | py | Python | tests/checkimages_tests.py | xqt/pwb | 9a4fe27138f32952e533256195849d05855df0b0 | [
"MIT"
] | 1 | 2022-02-10T00:20:42.000Z | 2022-02-10T00:20:42.000Z | tests/checkimages_tests.py | euku/spbot | e6d505c8965b4e6730b3dc4505f92e35a3edb2e2 | [
"MIT"
] | 1 | 2021-12-08T16:29:41.000Z | 2021-12-08T16:29:41.000Z | tests/checkimages_tests.py | euku/spbot | e6d505c8965b4e6730b3dc4505f92e35a3edb2e2 | [
"MIT"
] | 2 | 2022-01-04T04:10:38.000Z | 2022-01-04T04:18:18.000Z | #!/usr/bin/python3
"""Unit tests for checkimages script."""
#
# (C) Pywikibot team, 2015-2022
#
# Distributed under the terms of the MIT license.
#
import unittest
from pywikibot import FilePage
from scripts import checkimages
from tests.aspects import DefaultSiteTestCase, TestCase
class TestSettings(TestCase):
... | 25.083333 | 76 | 0.656146 | 135 | 1,204 | 5.740741 | 0.533333 | 0.058065 | 0.051613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.222591 | 1,204 | 47 | 77 | 25.617021 | 0.808761 | 0.214286 | 0 | 0 | 0 | 0 | 0.079869 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 1 | 0.086957 | false | 0 | 0.26087 | 0 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
266974e2d9f5555bf828b629df3a306d64adfd91 | 476 | py | Python | tests/TestSpider/yaowu/yaowu/spiders/test.py | EchoShoot/scrapy-redis-loadbalancing | d5c7ff76dc842f201dcaa68928dd27c24be4acb8 | [
"MIT"
] | 3 | 2019-03-05T02:30:19.000Z | 2020-03-13T13:29:34.000Z | tests/TestSpider/yaowu/yaowu/spiders/test.py | EchoShoot/scrapy-redis-loadbalancing | d5c7ff76dc842f201dcaa68928dd27c24be4acb8 | [
"MIT"
] | null | null | null | tests/TestSpider/yaowu/yaowu/spiders/test.py | EchoShoot/scrapy-redis-loadbalancing | d5c7ff76dc842f201dcaa68928dd27c24be4acb8 | [
"MIT"
] | 3 | 2019-12-20T04:41:04.000Z | 2020-07-12T22:26:27.000Z | # -*- coding: utf-8 -*-
import scrapy
from scrapy.linkextractors import LinkExtractor
from scrapy_redis_loadbalancing.spiders import RedisSpider
class TestSpider(RedisSpider):
name = 'test'
# allowed_domains = ['localhost']
# start_urls = ['http://localhost:8998/']
link_extractor = LinkExtractor()
... | 29.75 | 64 | 0.716387 | 54 | 476 | 6.185185 | 0.685185 | 0.05988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01269 | 0.172269 | 476 | 15 | 65 | 31.733333 | 0.835025 | 0.207983 | 0 | 0 | 0 | 0 | 0.010724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2684a5cfb52d75725e3f2201dff6eca154acbef1 | 279 | py | Python | spacy/tests/lang/el/test_noun_chunks.py | snosrap/spaCy | 3f68bbcfec44ef55d101e6db742d353b72652129 | [
"MIT"
] | 22,040 | 2016-10-03T11:58:15.000Z | 2022-03-31T21:08:19.000Z | spacy/tests/lang/el/test_noun_chunks.py | snosrap/spaCy | 3f68bbcfec44ef55d101e6db742d353b72652129 | [
"MIT"
] | 6,927 | 2016-10-03T13:11:11.000Z | 2022-03-31T17:01:25.000Z | spacy/tests/lang/el/test_noun_chunks.py | snosrap/spaCy | 3f68bbcfec44ef55d101e6db742d353b72652129 | [
"MIT"
] | 4,403 | 2016-10-04T03:36:33.000Z | 2022-03-31T14:12:34.000Z | import pytest
def test_noun_chunks_is_parsed_el(el_tokenizer):
"""Test that noun_chunks raises Value Error for 'el' language if Doc is not parsed."""
doc = el_tokenizer("είναι χώρα της νοτιοανατολικής")
with pytest.raises(ValueError):
list(doc.noun_chunks)
| 31 | 90 | 0.738351 | 41 | 279 | 4.804878 | 0.634146 | 0.152284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175627 | 279 | 8 | 91 | 34.875 | 0.856522 | 0.286738 | 0 | 0 | 0 | 0 | 0.15544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
268a0717d644d69dc5e8e526659cf05e5e6c4713 | 729 | py | Python | examples/example_setnx.py | Eastwu5788/flask-redis | 517ecbfb79493991782ff4c8f2b8f6cf59b88077 | [
"MIT"
] | 2 | 2022-01-14T09:37:03.000Z | 2022-01-14T09:45:49.000Z | examples/example_setnx.py | Eastwu5788/flask_redis | 517ecbfb79493991782ff4c8f2b8f6cf59b88077 | [
"MIT"
] | null | null | null | examples/example_setnx.py | Eastwu5788/flask_redis | 517ecbfb79493991782ff4c8f2b8f6cf59b88077 | [
"MIT"
] | null | null | null | # !/usr/local/python/bin/python
# -*- coding: utf-8 -*-
# (C) Wu Dong, 2020
# All rights reserved
# @Author: 'Wu Dong <wudong@eastwu.cn>'
# @Time: '2020-07-11 09:37'
from flask import Flask
from flask_redis import Redis
redis = Redis()
app = Flask(__name__)
app.config["REDIS_PREFIX"] = "EG:"
app.config["REDIS_URL"] ... | 25.137931 | 54 | 0.654321 | 118 | 729 | 3.889831 | 0.457627 | 0.065359 | 0.078431 | 0.165577 | 0.335512 | 0.261438 | 0.261438 | 0.261438 | 0.244009 | 0.244009 | 0 | 0.067633 | 0.148148 | 729 | 28 | 55 | 26.035714 | 0.671498 | 0.209877 | 0 | 0 | 0 | 0 | 0.272408 | 0.084359 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13ffccbb25bf609f9f7a655aea9bc1f2be5b1528 | 361 | py | Python | 6.py | broccoli-smuggler/lightning-talk-snakes | 661a6306c7b5e35480984440caa430cc87dbea26 | [
"MIT"
] | null | null | null | 6.py | broccoli-smuggler/lightning-talk-snakes | 661a6306c7b5e35480984440caa430cc87dbea26 | [
"MIT"
] | null | null | null | 6.py | broccoli-smuggler/lightning-talk-snakes | 661a6306c7b5e35480984440caa430cc87dbea26 | [
"MIT"
] | null | null | null | from base import *
import numpy as np
from typing import List
def numpy_heavy_create_mult(number, base):
start = time.time() - base
DIMS = 8000
a = np.random.rand(DIMS, DIMS)
b = np.random.rand(DIMS, DIMS)
np.multiply(a, b)
stop = time.time() - base
return start, stop
nums = range(1, 8)
... | 19 | 42 | 0.66759 | 58 | 361 | 4.034483 | 0.517241 | 0.08547 | 0.136752 | 0.17094 | 0.17094 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021352 | 0.221607 | 361 | 18 | 43 | 20.055556 | 0.811388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd10aa6bab3d0592c978d4af7dbb2eee27de28f0 | 1,991 | py | Python | prereq/cmd/prereq.py | vsoch/spack-prereq | 4a235dc7fa9fd85b9f7de4a2e4a38df6117de94d | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | prereq/cmd/prereq.py | vsoch/spack-prereq | 4a235dc7fa9fd85b9f7de4a2e4a38df6117de94d | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | prereq/cmd/prereq.py | vsoch/spack-prereq | 4a235dc7fa9fd85b9f7de4a2e4a38df6117de94d | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
"""Check for spack pre-requisites. Default will exit with error code
if any missing
"""
import argparse
import sys
impor... | 23.702381 | 73 | 0.584129 | 248 | 1,991 | 4.645161 | 0.532258 | 0.039063 | 0.03125 | 0.029514 | 0.103299 | 0.103299 | 0.078125 | 0.078125 | 0.078125 | 0.078125 | 0 | 0.016174 | 0.285786 | 1,991 | 83 | 74 | 23.987952 | 0.793952 | 0.22451 | 0 | 0.105263 | 0 | 0 | 0.180392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035088 | false | 0.087719 | 0.122807 | 0 | 0.157895 | 0.070175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cd14468968142af9a921b887d9637fef4c97e1b5 | 1,782 | py | Python | examples/pyxchange_example.py | pavelschon/PyXchange | b35f0ebeb8ce008e605987305a2d52194785fbb8 | [
"BSL-1.0"
] | 33 | 2016-06-14T13:09:22.000Z | 2020-11-21T16:06:48.000Z | examples/pyxchange_example.py | pavelschon/PyXchange | b35f0ebeb8ce008e605987305a2d52194785fbb8 | [
"BSL-1.0"
] | null | null | null | examples/pyxchange_example.py | pavelschon/PyXchange | b35f0ebeb8ce008e605987305a2d52194785fbb8 | [
"BSL-1.0"
] | 20 | 2016-08-30T11:14:12.000Z | 2021-09-07T06:33:04.000Z | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
##
# @file pyxchange_example.py
# @brief Examples of using PyXchange
#
# Copyright (c) 2016 Pavel Schön <pavel@schon.cz>
#
#
import logging
from pyxchange import engine, utils
class MessagePrinter(utils.BaseHandler):
def __init__(self, name):
super(Messa... | 20.022472 | 98 | 0.681257 | 225 | 1,782 | 5.355556 | 0.408889 | 0.049793 | 0.046473 | 0.056432 | 0.274689 | 0.210788 | 0.078008 | 0.078008 | 0 | 0 | 0 | 0.039295 | 0.171717 | 1,782 | 88 | 99 | 20.25 | 0.7771 | 0.216049 | 0 | 0.268293 | 0 | 0 | 0.132931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02439 | 0.04878 | null | null | 0.341463 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd178b36beb715bb56a291602786190c816104eb | 1,403 | py | Python | solarwinds_query.py | dmacas066/Solarwinds-Orion-orionsdk | 71de0f256747f8cb9b45af9e9a3b7fbbbb9b4992 | [
"MIT"
] | 1 | 2020-06-23T19:55:19.000Z | 2020-06-23T19:55:19.000Z | solarwinds_query.py | dmacas066/Solarwinds-Orion-orionsdk | 71de0f256747f8cb9b45af9e9a3b7fbbbb9b4992 | [
"MIT"
] | null | null | null | solarwinds_query.py | dmacas066/Solarwinds-Orion-orionsdk | 71de0f256747f8cb9b45af9e9a3b7fbbbb9b4992 | [
"MIT"
] | null | null | null | import requests
from orionsdk import SwisClient
import getpass
#Creating variable for file with hostnames/IP addresses, getting rid of whitespace and new line for each host
hosts = open('PATH_TO_FILE', 'r')
hosts = hosts.read()
hosts = hosts.strip().splitlines()
#Creating variables for details used to connect ... | 41.264706 | 110 | 0.714897 | 183 | 1,403 | 5.453552 | 0.530055 | 0.033066 | 0.046092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001776 | 0.197434 | 1,403 | 33 | 111 | 42.515152 | 0.884547 | 0.366358 | 0 | 0 | 0 | 0 | 0.220379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.136364 | 0.181818 | 0 | 0.181818 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cd1d9ccc1e0f4c14e5cfb05391aea22910eda6fa | 2,350 | py | Python | dataDisplay/flaskapp/sums_models/rules/column_convert.py | xuxian94/dataDisplay | 03f5d7ad51a6876b4c51a19f475c5f037f59160e | [
"BSD-3-Clause"
] | null | null | null | dataDisplay/flaskapp/sums_models/rules/column_convert.py | xuxian94/dataDisplay | 03f5d7ad51a6876b4c51a19f475c5f037f59160e | [
"BSD-3-Clause"
] | null | null | null | dataDisplay/flaskapp/sums_models/rules/column_convert.py | xuxian94/dataDisplay | 03f5d7ad51a6876b4c51a19f475c5f037f59160e | [
"BSD-3-Clause"
] | 1 | 2017-09-18T00:46:54.000Z | 2017-09-18T00:46:54.000Z | # coding=utf-8
import datetime
from dataDisplay.flaskapp.sums_models.rules.methods import page_tables, show_columns
log_path = 'datadisplay/flaskapp/data/logs.txt'
def convert_table_name(xls_sheet, year_name, conditions_name, re_flag= '', operation= ''):
'''
获取对应sheet表,所对应的mysql数据库中的表名
:param xls_sheet:... | 27.325581 | 105 | 0.609787 | 285 | 2,350 | 4.792982 | 0.350877 | 0.04612 | 0.026354 | 0.02489 | 0.035139 | 0.035139 | 0 | 0 | 0 | 0 | 0 | 0.005731 | 0.257447 | 2,350 | 85 | 106 | 27.647059 | 0.777077 | 0.114894 | 0 | 0.16 | 0 | 0 | 0.059093 | 0.01732 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04 | null | null | 0.06 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd2d61433d00a17ddb5752aa42c526603e2214f8 | 2,319 | py | Python | python/test/test_message_passing.py | deepest-stack/graph2tensor | 4258bd7fff68348c98a77cff88afef039c1d44ba | [
"Apache-2.0"
] | null | null | null | python/test/test_message_passing.py | deepest-stack/graph2tensor | 4258bd7fff68348c98a77cff88afef039c1d44ba | [
"Apache-2.0"
] | null | null | null | python/test/test_message_passing.py | deepest-stack/graph2tensor | 4258bd7fff68348c98a77cff88afef039c1d44ba | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import tensorflow as tf
tf.config.run_functions_eagerly(True)
import numpy as np
from graph2tensor.model.layers import GCNConv
from graph2tensor.model.models import MessagePassing
from unittest import TestCase, main
conv_layers = [
GCNConv(units=32, name="layer1"),
GCNConv(units=32, name... | 38.65 | 103 | 0.641656 | 317 | 2,319 | 4.529968 | 0.293375 | 0.104457 | 0.058496 | 0.083565 | 0.376741 | 0.3461 | 0.31337 | 0.144847 | 0.144847 | 0.144847 | 0 | 0.042083 | 0.18025 | 2,319 | 59 | 104 | 39.305085 | 0.713309 | 0.009056 | 0 | 0 | 0 | 0 | 0.096212 | 0 | 0 | 0 | 0 | 0 | 0.22 | 1 | 0.06 | false | 0.12 | 0.1 | 0 | 0.18 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cd2d8b74d814aae8eba82875a3dd2338d22c6310 | 2,432 | py | Python | aliyun/__init__.py | getlantern/python-aliyun | 524ccdc991f952433b2636a94266d31b00823f66 | [
"Apache-2.0"
] | 38 | 2015-05-21T05:59:14.000Z | 2018-11-28T09:14:07.000Z | aliyun/__init__.py | getlantern/python-aliyun | 524ccdc991f952433b2636a94266d31b00823f66 | [
"Apache-2.0"
] | 16 | 2015-03-20T17:55:41.000Z | 2018-05-15T15:09:15.000Z | aliyun/__init__.py | getlantern/python-aliyun | 524ccdc991f952433b2636a94266d31b00823f66 | [
"Apache-2.0"
] | 27 | 2015-03-16T18:32:16.000Z | 2020-11-30T05:28:06.000Z | """
Aliyun API
==========
The Aliyun API is well-documented at `dev.aliyun.com <http://dev.aliyun.com/thread.php?spm=0.0.0.0.MqTmNj&fid=8>`_.
Each service's API is very similar: There are regions, actions, and each action has many parameters.
It is an OAuth2 API, so you need to have an ID and a secret. You can get the... | 30.78481 | 115 | 0.750411 | 364 | 2,432 | 4.945055 | 0.458791 | 0.027778 | 0.023333 | 0.033333 | 0.111667 | 0.111667 | 0.046667 | 0.046667 | 0 | 0 | 0 | 0.005851 | 0.156661 | 2,432 | 78 | 116 | 31.179487 | 0.87177 | 0.986842 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd300ce01c0e8d34fcb6a4728dc5a93605defcde | 557 | py | Python | academlo-django-001/students/migrations/0008_student_url_image.py | martinsgmx/academlo-archive | 6688ba600f22cd6a51e668d4936d46c217752566 | [
"MIT"
] | null | null | null | academlo-django-001/students/migrations/0008_student_url_image.py | martinsgmx/academlo-archive | 6688ba600f22cd6a51e668d4936d46c217752566 | [
"MIT"
] | null | null | null | academlo-django-001/students/migrations/0008_student_url_image.py | martinsgmx/academlo-archive | 6688ba600f22cd6a51e668d4936d46c217752566 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.24 on 2021-06-20 22:47
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('students', '0007_remove_student_courses'),
]
operations = [
migrations.AddField(
... | 25.318182 | 123 | 0.642729 | 66 | 557 | 5.318182 | 0.69697 | 0.022792 | 0.034188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100239 | 0.247756 | 557 | 21 | 124 | 26.52381 | 0.73747 | 0.082585 | 0 | 0 | 1 | 0 | 0.100196 | 0.053045 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd3048fbd3556c8823828612716598bb85efc98b | 2,373 | py | Python | LeetCode/401-binary-watch.py | leaving-voider/LeetCode.cn-Record | 2922cbdab85556bc0625adc9e6ce44849232e4f4 | [
"MIT"
] | null | null | null | LeetCode/401-binary-watch.py | leaving-voider/LeetCode.cn-Record | 2922cbdab85556bc0625adc9e6ce44849232e4f4 | [
"MIT"
] | null | null | null | LeetCode/401-binary-watch.py | leaving-voider/LeetCode.cn-Record | 2922cbdab85556bc0625adc9e6ce44849232e4f4 | [
"MIT"
] | null | null | null | ###############################################################################################
# 递归遍历所有情况,直接超时;太蠢了,这种想法是想着往LED填,来凑齐满足要求的时间
###############################################################################################
class Solution:
def analyze(self, string):
# 0 - 3 代表 1 2 4 8
... | 41.631579 | 96 | 0.352297 | 239 | 2,373 | 3.497908 | 0.305439 | 0.021531 | 0.028708 | 0.033493 | 0.380383 | 0.337321 | 0.301435 | 0.253589 | 0.196172 | 0.184211 | 0 | 0.048214 | 0.292035 | 2,373 | 57 | 97 | 41.631579 | 0.449405 | 0.086389 | 0 | 0.342857 | 0 | 0 | 0.038487 | 0 | 0 | 0 | 0.002654 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd30ad77d550705a35a349ed5ea5ccd46c22f38d | 598 | py | Python | corehq/apps/api/migrations/0002_alter_permissions.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 471 | 2015-01-10T02:55:01.000Z | 2022-03-29T18:07:18.000Z | corehq/apps/api/migrations/0002_alter_permissions.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 14,354 | 2015-01-01T07:38:23.000Z | 2022-03-31T20:55:14.000Z | corehq/apps/api/migrations/0002_alter_permissions.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 175 | 2015-01-06T07:16:47.000Z | 2022-03-29T13:27:01.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.27 on 2020-02-10 20:26
from __future__ import unicode_literals
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
... | 27.181818 | 164 | 0.665552 | 70 | 598 | 5.557143 | 0.742857 | 0.066838 | 0.107969 | 0.138817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053079 | 0.212375 | 598 | 21 | 165 | 28.47619 | 0.772824 | 0.115385 | 0 | 0 | 1 | 0 | 0.068441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd377478d2f8d0eb9cea2c7d2f9e421b75c08037 | 445 | py | Python | module2-sql-for-analysis/HWpt2.py | HakujouRyu/DS-Unit-3-Sprint-2-SQL-and-Databases | d6ad3381842abf5e172b1abfa213bc5e89250951 | [
"MIT"
] | null | null | null | module2-sql-for-analysis/HWpt2.py | HakujouRyu/DS-Unit-3-Sprint-2-SQL-and-Databases | d6ad3381842abf5e172b1abfa213bc5e89250951 | [
"MIT"
] | null | null | null | module2-sql-for-analysis/HWpt2.py | HakujouRyu/DS-Unit-3-Sprint-2-SQL-and-Databases | d6ad3381842abf5e172b1abfa213bc5e89250951 | [
"MIT"
] | null | null | null | #import what we need
import pandas as pd
from sqlalchemy import create_engine
#Read in the Titanic df
df = pd.read_csv('module2-sql-for-analysis/titanic.csv')
#make sure we got it
df.head()
#See what the datatypes are
df.dtypes
df.info()
# Create engine for DF insertion
engine = create_engine('postgres:... | 26.176471 | 117 | 0.755056 | 68 | 445 | 4.867647 | 0.632353 | 0.108761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028871 | 0.14382 | 445 | 16 | 118 | 27.8125 | 0.839895 | 0.262921 | 0 | 0 | 0 | 0 | 0.462295 | 0.413115 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd4a67fb0af8be7195ac2e14ac77ed630d238d05 | 424 | py | Python | Part_2/ch14_csvJson/14_4_json.py | hyperpc/AutoStuffWithPython | e05f5e0acb5818d634e4ab84d640848cd4ae7e70 | [
"MIT"
] | null | null | null | Part_2/ch14_csvJson/14_4_json.py | hyperpc/AutoStuffWithPython | e05f5e0acb5818d634e4ab84d640848cd4ae7e70 | [
"MIT"
] | null | null | null | Part_2/ch14_csvJson/14_4_json.py | hyperpc/AutoStuffWithPython | e05f5e0acb5818d634e4ab84d640848cd4ae7e70 | [
"MIT"
] | null | null | null | import json
def jsonString():
stringOfJsonData = '{"name":"Zophie", "isCat":"True", "miceCaught":0, "felineIQ":null}'
print('stringOfJsonData = ', stringOfJsonData)
jsonToDict = json.loads(stringOfJsonData)
print('jsonToDict = ', jsonToDict)
stringOfJsonData = json.dumps(jsonToDict)
print('stri... | 28.266667 | 91 | 0.681604 | 37 | 424 | 7.594595 | 0.513514 | 0.149466 | 0.263345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002825 | 0.165094 | 424 | 15 | 92 | 28.266667 | 0.79096 | 0 | 0 | 0.166667 | 0 | 0 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd4c16bd467938d7b1376fe4f36829dd8a5aa739 | 6,895 | py | Python | Stock news sentiment analysis/deploy_aws_resources-I.py | hsaltan/Machine-Learning | efa711575a294c553ea752d0f86cffcd39882550 | [
"MIT"
] | null | null | null | Stock news sentiment analysis/deploy_aws_resources-I.py | hsaltan/Machine-Learning | efa711575a294c553ea752d0f86cffcd39882550 | [
"MIT"
] | null | null | null | Stock news sentiment analysis/deploy_aws_resources-I.py | hsaltan/Machine-Learning | efa711575a294c553ea752d0f86cffcd39882550 | [
"MIT"
] | null | null | null | # Import libraries
import sys
sys.path.insert(1, 'YOUR_PATH_TO_AWSResourceDeploy_SCRIPT_ON_YOUR_LOCAL_MACHINE')
from colorama import Fore, Back, Style
import time
import json
import AWSResourceDeploy as aws
from requests import get
# Set AWS region
region = 'eu-west-1'
# Find your public IP
publicIP = get('https://a... | 35 | 193 | 0.683249 | 687 | 6,895 | 6.774381 | 0.3246 | 0.012892 | 0.015041 | 0.014611 | 0.207563 | 0.168457 | 0.085088 | 0.085088 | 0.075204 | 0.059734 | 0 | 0.017372 | 0.231907 | 6,895 | 196 | 194 | 35.178571 | 0.861405 | 0.142712 | 0 | 0.204225 | 0 | 0.007042 | 0.206287 | 0.035684 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028169 | false | 0.070423 | 0.049296 | 0 | 0.084507 | 0.035211 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cd4e23572ca6a33bee23824edf65d1a45d3934c3 | 1,429 | py | Python | neighbour/models.py | Eccie-K/neighbour-hood | f874f9468160aa34dee294d685374e4c5e2eec4d | [
"MIT"
] | null | null | null | neighbour/models.py | Eccie-K/neighbour-hood | f874f9468160aa34dee294d685374e4c5e2eec4d | [
"MIT"
] | 4 | 2020-06-05T23:21:40.000Z | 2021-06-10T21:57:32.000Z | neighbour/models.py | Eccie-K/neighbour-hood | f874f9468160aa34dee294d685374e4c5e2eec4d | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from smartfields import fields
from django.utils import timezone
from django.conf import settings
# Create your models here.
class Hood(models.Model):
name = models.CharField(max_length=40, null... | 30.404255 | 73 | 0.709587 | 185 | 1,429 | 5.362162 | 0.378378 | 0.072581 | 0.090726 | 0.120968 | 0.068548 | 0.068548 | 0.068548 | 0 | 0 | 0 | 0 | 0.010327 | 0.186844 | 1,429 | 46 | 74 | 31.065217 | 0.843373 | 0.016795 | 0 | 0 | 0 | 0 | 0.010699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0.09375 | 0.90625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cd52d764ceccddcfd5e8a364aa386f7c4e7808c0 | 1,726 | py | Python | src/tools/model_reader.py | JoeinChina/DeepWeather | 2677edc16d9865ec98401aaf121aaabd24974aaf | [
"MIT"
] | 1 | 2020-07-23T04:13:02.000Z | 2020-07-23T04:13:02.000Z | src/tools/model_reader.py | JoeBuzh/DeepWeather | 2677edc16d9865ec98401aaf121aaabd24974aaf | [
"MIT"
] | null | null | null | src/tools/model_reader.py | JoeBuzh/DeepWeather | 2677edc16d9865ec98401aaf121aaabd24974aaf | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pickle
import pprint
import factorWeather
import pygrib
import datetime
import sys
import factorWeather
sys.setrecursionlimit(1000000) #例如这里设置为一百万
model1 = factorWeather()
dict_config = {}
with open('/root/my/weather_online/model/DeepWeatherModel-test-validation-best.pkl', 'rb') a... | 47.944444 | 716 | 0.615875 | 223 | 1,726 | 4.556054 | 0.497758 | 0.059055 | 0.038386 | 0.056102 | 0.145669 | 0.098425 | 0 | 0 | 0 | 0 | 0 | 0.048271 | 0.111819 | 1,726 | 35 | 717 | 49.314286 | 0.614481 | 0.263036 | 0 | 0.111111 | 0 | 0 | 0.386328 | 0.13593 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.388889 | 0 | 0.388889 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cd5ab49f7376d13098293f4e5249b2eef6b1d0f9 | 710 | py | Python | client.py | kilia/py-socks-aggregation | 0f75d31c26949923c541ae49b15294ee9b1f9e62 | [
"MIT"
] | null | null | null | client.py | kilia/py-socks-aggregation | 0f75d31c26949923c541ae49b15294ee9b1f9e62 | [
"MIT"
] | 1 | 2020-04-07T13:49:34.000Z | 2020-04-07T13:49:34.000Z | client.py | kilia/py-socks-aggregation | 0f75d31c26949923c541ae49b15294ee9b1f9e62 | [
"MIT"
] | null | null | null | import gevent
from gevent import socket
from gevent import queue
import tcptunnel as tcp
PORT = 52000
# make a client tunnel ann connect to server, X default count(8) connections
client_tunnel = tcp.Tunnel('client')
remote_addr = ('104.224.140.44', PORT)
#remote_addr = ('127.0.0.1', PORT)
client_tunnel.t... | 26.296296 | 77 | 0.697183 | 109 | 710 | 4.431193 | 0.46789 | 0.099379 | 0.066253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057292 | 0.188732 | 710 | 26 | 78 | 27.307692 | 0.78125 | 0.194366 | 0 | 0 | 0 | 0 | 0.103321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd5cc5b416a5c766ffbb6736ff750582ac30b4be | 702 | py | Python | Tried/Beginner/1973.py | LorranSutter/URI-Online-Judge | aef885b9a7caa83484cf172e29eea8ec92fc3627 | [
"MIT"
] | null | null | null | Tried/Beginner/1973.py | LorranSutter/URI-Online-Judge | aef885b9a7caa83484cf172e29eea8ec92fc3627 | [
"MIT"
] | null | null | null | Tried/Beginner/1973.py | LorranSutter/URI-Online-Judge | aef885b9a7caa83484cf172e29eea8ec92fc3627 | [
"MIT"
] | null | null | null | # Runtime error
N = int(input())
X = list(map(int, input().split())) # Memory problem
tot = sum(X)
visited = [False for k in range(N)]
currentStar = 0
while True:
if currentStar < 0 or currentStar > N-1:
break
else:
visited[currentStar] = True
if X[currentStar] >= 1:
if X[... | 23.4 | 52 | 0.470085 | 79 | 702 | 4.177215 | 0.392405 | 0.254545 | 0.127273 | 0.090909 | 0.248485 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04067 | 0.404558 | 702 | 29 | 53 | 24.206897 | 0.748804 | 0.039886 | 0 | 0.5 | 0 | 0 | 0.010432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.041667 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd61f96281232ce993d37164f3cb74eb782e8bfb | 528 | py | Python | comics/migrations/0003_issue_gallery.py | evanepio/dotmanca | 0c7c943119e95caa729b28123c50e69522e65521 | [
"MIT"
] | 2 | 2015-05-06T01:49:40.000Z | 2015-05-06T12:24:41.000Z | comics/migrations/0003_issue_gallery.py | evanepio/dotmanca | 0c7c943119e95caa729b28123c50e69522e65521 | [
"MIT"
] | 15 | 2015-05-12T01:44:41.000Z | 2019-08-17T15:05:24.000Z | comics/migrations/0003_issue_gallery.py | evanepio/dotmanca | 0c7c943119e95caa729b28123c50e69522e65521 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.3 on 2018-03-15 00:17
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('gallery', '0006_auto_20170714_1311'),
('comics', '0002_auto_20180311_1359'),
]
operations = [
migra... | 25.142857 | 114 | 0.638258 | 61 | 528 | 5.393443 | 0.688525 | 0.072948 | 0.085106 | 0.133739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116625 | 0.236742 | 528 | 20 | 115 | 26.4 | 0.699752 | 0.085227 | 0 | 0 | 1 | 0 | 0.178794 | 0.095634 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd63b593a66af72e2c0a88d4c9c5e3d39ee67a87 | 1,230 | py | Python | mlds/1-numpy/3_copy_broadcast.py | wdxtub/deep-learning-note | 47b83a039b80d4757e0436d5cbd2fa3037de3904 | [
"MIT"
] | 37 | 2019-03-27T20:17:05.000Z | 2022-02-02T23:20:31.000Z | mlds/1-numpy/3_copy_broadcast.py | wdxtub/deep-learning-note | 47b83a039b80d4757e0436d5cbd2fa3037de3904 | [
"MIT"
] | null | null | null | mlds/1-numpy/3_copy_broadcast.py | wdxtub/deep-learning-note | 47b83a039b80d4757e0436d5cbd2fa3037de3904 | [
"MIT"
] | 14 | 2019-03-31T10:28:47.000Z | 2022-03-28T07:25:40.000Z | import numpy as np
print('= 赋值是引用赋值,修改会影响其他变量')
a = np.arange(6)
print('a', a)
b = a
c = a
d = c
print('赋值 b = a, c = a, d = c, a[0] = 12')
print('a', a)
print('b', b)
print('c', c)
print('d', d)
print('b is a', b is a)
print('b is c', b is c)
print('d is a', d is a)
print('赋值 d[1:3] = [66, 77]')
d[1:3] = [66, 77]
pri... | 21.578947 | 61 | 0.555285 | 273 | 1,230 | 2.490842 | 0.249084 | 0.123529 | 0.082353 | 0.105882 | 0.222059 | 0.142647 | 0.125 | 0.097059 | 0.097059 | 0.097059 | 0 | 0.080739 | 0.164228 | 1,230 | 56 | 62 | 21.964286 | 0.580739 | 0 | 0 | 0.269231 | 0 | 0 | 0.193496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019231 | 0 | 0.019231 | 0.730769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
cd6713d89586dfb96174f02624476bf8a0e7eca0 | 4,554 | py | Python | djangoForum/settings.py | AlexxHr/django-forum | b21720c4ee5e836216df1b18970f7d523904b4d4 | [
"MIT"
] | null | null | null | djangoForum/settings.py | AlexxHr/django-forum | b21720c4ee5e836216df1b18970f7d523904b4d4 | [
"MIT"
] | null | null | null | djangoForum/settings.py | AlexxHr/django-forum | b21720c4ee5e836216df1b18970f7d523904b4d4 | [
"MIT"
] | null | null | null | import os
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
import cloudinary
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
# SECURITY W... | 27.433735 | 140 | 0.679403 | 472 | 4,554 | 6.40678 | 0.396186 | 0.064484 | 0.039352 | 0.049603 | 0.167989 | 0.137235 | 0.071759 | 0.062169 | 0.039683 | 0 | 0 | 0.009055 | 0.17545 | 4,554 | 166 | 141 | 27.433735 | 0.796272 | 0.171498 | 0 | 0.055556 | 0 | 0 | 0.513053 | 0.364678 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.027778 | 0 | 0.027778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cd69e1574d191a4841bc8d8f22c2744d1816a0d8 | 587 | py | Python | test.py | c4fcm/our-cup | c2f8cb53acd1855e994e8d762c576b6647be06f5 | [
"MIT"
] | 1 | 2019-03-07T10:40:02.000Z | 2019-03-07T10:40:02.000Z | test.py | mitmedialab/our-cup | c2f8cb53acd1855e994e8d762c576b6647be06f5 | [
"MIT"
] | 4 | 2018-06-15T13:20:35.000Z | 2019-06-11T01:00:42.000Z | test.py | mitmedialab/our-cup | c2f8cb53acd1855e994e8d762c576b6647be06f5 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import unittest
from ourcup.acs.test.datatest import PopulationDataManagerTest, ZipCodeDataManagerTest
from ourcup.fixtures.test.country_codes_test import CountryCodesTest
from ourcup.fixtures.test.match_picker_test import PickerTest
from ourcup.util.test.geo_test import GeoTest
test_classes =... | 27.952381 | 86 | 0.810903 | 65 | 587 | 7.184615 | 0.523077 | 0.085653 | 0.077088 | 0.094218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001938 | 0.120954 | 587 | 20 | 87 | 29.35 | 0.903101 | 0.035775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cd6a350987279b4bf5c70f0322a83886ee42aec9 | 878 | py | Python | lightsleep/sleep.py | yaroslaff/sleep | 55056b12c8b44376ea8f4d588fd75268ad61b337 | [
"MIT"
] | null | null | null | lightsleep/sleep.py | yaroslaff/sleep | 55056b12c8b44376ea8f4d588fd75268ad61b337 | [
"MIT"
] | null | null | null | lightsleep/sleep.py | yaroslaff/sleep | 55056b12c8b44376ea8f4d588fd75268ad61b337 | [
"MIT"
] | null | null | null | import time
from .hook import Hook
from .exceptions import SleepException
from .idle import IdleSleep
from .redis import RedisSleep
from .websocket import WebsocketSleep
from .mtime import MtimeSleep
class Sleep():
""" This is unified sleep class which handles all hooks """
def __init__(self, hook=None):
... | 23.72973 | 63 | 0.582005 | 107 | 878 | 4.64486 | 0.439252 | 0.080483 | 0.032193 | 0.04829 | 0.088531 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005059 | 0.324601 | 878 | 36 | 64 | 24.388889 | 0.833052 | 0.058087 | 0 | 0.074074 | 0 | 0 | 0.02934 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.259259 | 0.037037 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cd6ec7e848677af6282ebc4037b46d0675dae25d | 2,265 | py | Python | data/make_subjects_labels_csv.py | earthquakesan/yagolabelfetcher-py | bc20ea583fb00d5b5b29650669f28ffebf13fa05 | [
"Apache-2.0"
] | 2 | 2016-11-28T10:09:35.000Z | 2017-11-13T23:37:55.000Z | data/make_subjects_labels_csv.py | earthquakesan/yagolabelfetcher-py | bc20ea583fb00d5b5b29650669f28ffebf13fa05 | [
"Apache-2.0"
] | null | null | null | data/make_subjects_labels_csv.py | earthquakesan/yagolabelfetcher-py | bc20ea583fb00d5b5b29650669f28ffebf13fa05 | [
"Apache-2.0"
] | null | null | null | #!/home/ivan/.virtualenvs/yagolabelfetcher/bin/python
import re
def _split_camelcase(string):
_camel_case_regex = re.compile(r"([A-Z])") ... | 47.1875 | 168 | 0.344371 | 165 | 2,265 | 4.478788 | 0.345455 | 0.060893 | 0.024357 | 0.021651 | 0.070365 | 0.070365 | 0.070365 | 0 | 0 | 0 | 0 | 0.007157 | 0.568212 | 2,265 | 47 | 169 | 48.191489 | 0.748466 | 0.022958 | 0 | 0.114286 | 0 | 0 | 0.037071 | 0.01085 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.028571 | 0.028571 | 0.228571 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd71877eb957b2264ade7d758cd33e6c19d76bc6 | 991 | py | Python | fortalecimiento/admin.py | CARocha/simasinnovacion | 2848cfe4c84362e79217afb9db8b908daf800237 | [
"MIT"
] | null | null | null | fortalecimiento/admin.py | CARocha/simasinnovacion | 2848cfe4c84362e79217afb9db8b908daf800237 | [
"MIT"
] | null | null | null | fortalecimiento/admin.py | CARocha/simasinnovacion | 2848cfe4c84362e79217afb9db8b908daf800237 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import *
class ParticipantesInline(admin.TabularInline):
model = Participantes
extra = 1
class NivelConocimientoInline(admin.TabularInline):
model = NivelConocimiento
extra = 1
class FotosMediosInline(admin.TabularInline):
model = FotosMedios
extra = 1
class Medio... | 30.96875 | 72 | 0.81332 | 102 | 991 | 7.794118 | 0.431373 | 0.101887 | 0.192453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003293 | 0.080727 | 991 | 32 | 73 | 30.96875 | 0.869374 | 0 | 0 | 0.111111 | 0 | 0 | 0.092742 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.62963 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd7364d86e059c057fa64769fa0400e59f7f652e | 571 | py | Python | diary/migrations/0009_auto_20200904_1324.py | lbartoszcze/diary- | d46ed497377e58eaf4f2bfd16ef32a7a1422a930 | [
"MIT"
] | null | null | null | diary/migrations/0009_auto_20200904_1324.py | lbartoszcze/diary- | d46ed497377e58eaf4f2bfd16ef32a7a1422a930 | [
"MIT"
] | null | null | null | diary/migrations/0009_auto_20200904_1324.py | lbartoszcze/diary- | d46ed497377e58eaf4f2bfd16ef32a7a1422a930 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.dev20200731093317 on 2020-09-04 11:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('diary', '0008_auto_20200904_1320'),
]
operations = [
migrations.RemoveField(
model_name='day',
name=... | 24.826087 | 125 | 0.581436 | 56 | 571 | 5.821429 | 0.75 | 0.055215 | 0.07362 | 0.09816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111922 | 0.28021 | 571 | 22 | 126 | 25.954545 | 0.681265 | 0.10683 | 0 | 0.25 | 1 | 0 | 0.15748 | 0.045276 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd74e71cb9ade1a58b8cbe8e8bd1364126a74655 | 1,108 | py | Python | bot/db/models.py | Alohomora-team/2019.2-AlohomoraBot | 7a4f0a7f12c3aa438a523f67200e4d1e59415cca | [
"MIT"
] | null | null | null | bot/db/models.py | Alohomora-team/2019.2-AlohomoraBot | 7a4f0a7f12c3aa438a523f67200e4d1e59415cca | [
"MIT"
] | 41 | 2019-10-11T05:22:14.000Z | 2019-11-28T13:32:33.000Z | bot/db/models.py | Alohomora-team/2019.2-AlohomoraBot | 7a4f0a7f12c3aa438a523f67200e4d1e59415cca | [
"MIT"
] | null | null | null | """
Models to persist chat_id
"""
from sqlalchemy import *
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
Base = declarative_base()
class Resident(Base):
"""
Saves a resident chat_id
"""
__tablename__ = 'residents'
id = Column(Integer, primary_ke... | 22.612245 | 55 | 0.676895 | 137 | 1,108 | 5.284672 | 0.357664 | 0.058011 | 0.124309 | 0.09116 | 0.370166 | 0.370166 | 0.330111 | 0.330111 | 0.276243 | 0.154696 | 0 | 0.011249 | 0.197653 | 1,108 | 48 | 56 | 23.083333 | 0.80315 | 0.091155 | 0 | 0.384615 | 0 | 0 | 0.049266 | 0.025157 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115385 | 0 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cd76097682f0aed08bdee00c058a9011bc222099 | 1,318 | py | Python | AndrewGUI.py | acoathup/pymba | f03ad7e1a687b59b2398da86bc590b504929ca04 | [
"MIT"
] | null | null | null | AndrewGUI.py | acoathup/pymba | f03ad7e1a687b59b2398da86bc590b504929ca04 | [
"MIT"
] | null | null | null | AndrewGUI.py | acoathup/pymba | f03ad7e1a687b59b2398da86bc590b504929ca04 | [
"MIT"
] | null | null | null | # from vimba import *
import sys
from PyQt5.QtWidgets import QApplication
from PyQt5.QtWidgets import QLabel
from PyQt5.QtWidgets import QWidget
from PyQt5 import uic
qtcreator_file = "C:\\Users\\Andrew\\Documents\\PhDSantiago\\VimbaCameraGUI\\GUI_vimbaCamera.ui" # Enter file here.
# Ui_MainWindow, QtBaseClass = uic.... | 28.042553 | 118 | 0.723065 | 172 | 1,318 | 5.354651 | 0.424419 | 0.04886 | 0.058632 | 0.078176 | 0.356135 | 0.356135 | 0.304017 | 0.304017 | 0.304017 | 0.304017 | 0 | 0.024021 | 0.147193 | 1,318 | 47 | 119 | 28.042553 | 0.795374 | 0.484067 | 0 | 0 | 0 | 0 | 0.20075 | 0.144465 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cd7b6c32e50faf0bde7c7a451fe7f1fec42665a9 | 1,035 | py | Python | _build/jupyter_execute/assignment4.py | Fluid-Dynamics-Of-Energy-Systems-Team/turbomachinery | c95f7ea5dc4f1ae8859b31be8a55aa2c0a0a16ee | [
"MIT"
] | 1 | 2021-11-22T22:58:52.000Z | 2021-11-22T22:58:52.000Z | _build/jupyter_execute/assignment4.py | Fluid-Dynamics-Of-Energy-Systems-Team/turbomachinery | c95f7ea5dc4f1ae8859b31be8a55aa2c0a0a16ee | [
"MIT"
] | 1 | 2021-11-14T20:21:44.000Z | 2021-11-14T20:21:44.000Z | _build/jupyter_execute/assignment4.py | Fluid-Dynamics-Of-Energy-Systems-Team/turbomachinery | c95f7ea5dc4f1ae8859b31be8a55aa2c0a0a16ee | [
"MIT"
] | null | null | null | # Assignment 4: Mechanical and Materials Aspects
* Assignment per student
* Hand in by xxxxxx via v.popovich@tudelft.nl
Pure Nickel with grain size of 100 µm was used for a turbine blade. Creep rupture
data (see table below) was used to construct Larson-Miller plot (see figure) for this
alloy, assuming $C$=20.
## ... | 38.333333 | 248 | 0.745894 | 173 | 1,035 | 4.456647 | 0.687861 | 0.018158 | 0.018158 | 0.033722 | 0.038911 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042303 | 0.177778 | 1,035 | 26 | 249 | 39.807692 | 0.86369 | 0.050242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd7ba10526a7ed0f61dfa827ec2fd6c727a2b044 | 6,063 | py | Python | cloudkitpy/error.py | yz/CloudKitPy | e26eea1207845b62e20fbc514ebba4edc3efd087 | [
"MIT"
] | 9 | 2016-04-28T20:15:18.000Z | 2021-12-30T21:35:52.000Z | cloudkitpy/error.py | yz/CloudKitPy | e26eea1207845b62e20fbc514ebba4edc3efd087 | [
"MIT"
] | 3 | 2016-06-12T12:05:08.000Z | 2016-07-05T07:47:27.000Z | cloudkitpy/error.py | yz/CloudKitPy | e26eea1207845b62e20fbc514ebba4edc3efd087 | [
"MIT"
] | 3 | 2016-06-09T05:07:40.000Z | 2020-06-09T19:58:32.000Z | #
# error.py
# CloudKitPy
#
# Created by James Barrow on 01/05/2016.
# Copyright (c) 2016 James Barrow - Pig on a Hill Productions.
#
# !/usr/bin/env python
from datatypes import ZoneID
from helpers import parse
class CKError:
is_error = False
ck_error_code = None
is_server_error = False
server_err... | 39.627451 | 177 | 0.669965 | 730 | 6,063 | 5.268493 | 0.208219 | 0.093604 | 0.080083 | 0.052002 | 0.359074 | 0.304732 | 0.280291 | 0.24129 | 0.102964 | 0.052522 | 0 | 0.01819 | 0.265545 | 6,063 | 152 | 178 | 39.888158 | 0.845497 | 0.030513 | 0 | 0.223881 | 0 | 0 | 0.177133 | 0.016382 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022388 | false | 0 | 0.014925 | 0 | 0.619403 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cd80028231b737b191efa1baebf78a069e6d5266 | 772 | py | Python | scripts/device/signal_generator/nf_wf1946.py | heptaliane/my_measurements_scripts | 0c977a1677d7881a33863ab376cab48a387a7d52 | [
"MIT"
] | null | null | null | scripts/device/signal_generator/nf_wf1946.py | heptaliane/my_measurements_scripts | 0c977a1677d7881a33863ab376cab48a387a7d52 | [
"MIT"
] | null | null | null | scripts/device/signal_generator/nf_wf1946.py | heptaliane/my_measurements_scripts | 0c977a1677d7881a33863ab376cab48a387a7d52 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .interface import SignalGenerator
class NF_WF1946(SignalGenerator):
IDN_STR = (
'NF-ELECTRONIC-INSTRUMENTS,WF1946',
'"NF-ELECTRONIC-INSTRUMENTS,1945',
)
MIN_FREQ = 1e-8
MAX_FREQ = 1.5e7
def set_frequency(self, freq):
assert self.MIN_FREQ <= fr... | 22.057143 | 53 | 0.59715 | 101 | 772 | 4.455446 | 0.445545 | 0.1 | 0.102222 | 0.084444 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031304 | 0.255181 | 772 | 34 | 54 | 22.705882 | 0.751304 | 0.027202 | 0 | 0 | 0 | 0 | 0.161549 | 0.084112 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.304348 | false | 0 | 0.043478 | 0.086957 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd8569cccd3a90ba8c6fad0c8e616714f7221a42 | 11,621 | py | Python | projects.py | Blue-IT-Marketing/blue-it-marketing | 51500378ba3b00acc1232fe1893ceeca10e9a491 | [
"MIT"
] | null | null | null | projects.py | Blue-IT-Marketing/blue-it-marketing | 51500378ba3b00acc1232fe1893ceeca10e9a491 | [
"MIT"
] | null | null | null | projects.py | Blue-IT-Marketing/blue-it-marketing | 51500378ba3b00acc1232fe1893ceeca10e9a491 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Copyright 2007 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or ag... | 33.880466 | 115 | 0.590483 | 1,045 | 11,621 | 6.538756 | 0.186603 | 0.054734 | 0.037319 | 0.054734 | 0.645836 | 0.645836 | 0.645836 | 0.632958 | 0.584663 | 0.511635 | 0 | 0.002169 | 0.325445 | 11,621 | 342 | 116 | 33.979532 | 0.869499 | 0.049996 | 0 | 0.714777 | 0 | 0 | 0.107091 | 0.066377 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068729 | false | 0 | 0.024055 | 0 | 0.343643 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd8952235833104dd13fd8760dc020d02eec1dfa | 479 | py | Python | api/migrations/20210630_01_s8Xod-update-model-url-to-authorized-endpoint.py | zpapakipos/dynabench-1 | 95884b4e29c57263dc1a85909be979c084d5fac3 | [
"MIT"
] | 15 | 2021-09-24T00:46:04.000Z | 2022-03-16T13:24:56.000Z | api/migrations/20210630_01_s8Xod-update-model-url-to-authorized-endpoint.py | zpapakipos/dynabench-1 | 95884b4e29c57263dc1a85909be979c084d5fac3 | [
"MIT"
] | 98 | 2021-09-22T12:33:21.000Z | 2022-03-21T22:23:52.000Z | api/migrations/20210630_01_s8Xod-update-model-url-to-authorized-endpoint.py | zpapakipos/dynabench-1 | 95884b4e29c57263dc1a85909be979c084d5fac3 | [
"MIT"
] | 12 | 2021-09-25T05:08:18.000Z | 2022-02-28T21:02:20.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
update-model-url-to-authorized-endpoint
"""
from yoyo import step
__depends__ = {"20210621_01_IRyiT-rename-qa-f1"}
steps = [
step(
... | 23.95 | 75 | 0.686848 | 64 | 479 | 5.046875 | 0.71875 | 0.06192 | 0.092879 | 0.111455 | 0.173375 | 0.173375 | 0 | 0 | 0 | 0 | 0 | 0.059585 | 0.194154 | 479 | 19 | 76 | 25.210526 | 0.777202 | 0.436326 | 0 | 0 | 0 | 0 | 0.607692 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd89b78bf334d33df6484ddb96d8ce02ecd14244 | 375 | py | Python | tools/http_server.py | mlacayoemery/esws | 1af5e99b8651edbc36588adcec969032081d6a77 | [
"MIT"
] | null | null | null | tools/http_server.py | mlacayoemery/esws | 1af5e99b8651edbc36588adcec969032081d6a77 | [
"MIT"
] | 22 | 2019-08-08T13:14:54.000Z | 2022-02-10T10:43:38.000Z | tools/http_server.py | mlacayoemery/esws | 1af5e99b8651edbc36588adcec969032081d6a77 | [
"MIT"
] | null | null | null | import os
import __main__
import http.server
import socketserver
PORT = 8001
HOST = "0.0.0.0"
DIR = os.path.dirname(os.path.dirname(os.path.realpath(__main__.__file__)))
DIR = os.path.join(DIR, "data")
os.chdir(DIR)
Handler = http.server.SimpleHTTPRequestHandler
httpd = socketserver.TCPServer((HOST, PORT), Handler... | 19.736842 | 75 | 0.754667 | 55 | 375 | 4.909091 | 0.490909 | 0.088889 | 0.022222 | 0.111111 | 0.118519 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023881 | 0.106667 | 375 | 18 | 76 | 20.833333 | 0.78209 | 0 | 0 | 0 | 0 | 0 | 0.069333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cd8a15b8d313584696de1d013a4f06b3d57bc26f | 6,832 | py | Python | web/blueprints/finance/tables.py | agdsn/pycroft | ea771141d59c88fdb8a782eafbe106240550a33a | [
"Apache-2.0"
] | 18 | 2016-04-20T19:00:56.000Z | 2021-12-19T16:43:57.000Z | web/blueprints/finance/tables.py | agdsn/pycroft | ea771141d59c88fdb8a782eafbe106240550a33a | [
"Apache-2.0"
] | 461 | 2016-07-20T00:42:59.000Z | 2022-03-25T17:03:07.000Z | web/blueprints/finance/tables.py | agdsn/pycroft | ea771141d59c88fdb8a782eafbe106240550a33a | [
"Apache-2.0"
] | 15 | 2016-07-15T18:46:43.000Z | 2021-03-17T20:08:39.000Z | import typing
from flask import url_for
from flask_babel import gettext
from flask_login import current_user
from web.table.table import lazy_join, DictValueMixin, custom_formatter_column, IbanColumn
from web.table.table import BootstrapTable, Column, SplittedTable, \
BtnColumn, LinkColumn, button_toolbar, DateC... | 31.196347 | 100 | 0.636563 | 765 | 6,832 | 5.51634 | 0.311111 | 0.02346 | 0.033175 | 0.038152 | 0.202607 | 0.097867 | 0.056872 | 0.042654 | 0.017062 | 0 | 0 | 0.003853 | 0.240193 | 6,832 | 218 | 101 | 31.33945 | 0.809093 | 0.142418 | 0 | 0.256944 | 0 | 0 | 0.179559 | 0.043402 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069444 | false | 0 | 0.083333 | 0.006944 | 0.604167 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cd8a90a14534b98720c3fc71d648e82217af64e1 | 1,787 | py | Python | app/config.py | cbaron3/reddit-slang-bot | 348e6cd521c81b3e61c7205228efc98a2ed9774e | [
"MIT"
] | null | null | null | app/config.py | cbaron3/reddit-slang-bot | 348e6cd521c81b3e61c7205228efc98a2ed9774e | [
"MIT"
] | 3 | 2021-03-09T14:24:57.000Z | 2022-02-18T07:21:57.000Z | app/config.py | cbaron3/slang-bot | 348e6cd521c81b3e61c7205228efc98a2ed9774e | [
"MIT"
] | null | null | null | import os
# Do not import api secrets if we are in Heroku environment
# This is to avoid having to push API secrets to git
if 'HEROKU' not in os.environ:
from api_secret import *
class PRAWConfig:
def __init__(self, user_agent, client_id, secret, username, password):
self.user_agent = user_agent
... | 37.229167 | 75 | 0.669838 | 238 | 1,787 | 4.768908 | 0.323529 | 0.071366 | 0.063436 | 0.079295 | 0.096916 | 0.051101 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241746 | 1,787 | 48 | 76 | 37.229167 | 0.837638 | 0.15221 | 0 | 0 | 0 | 0 | 0.14462 | 0.021247 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0.117647 | 0.058824 | 0 | 0.382353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cd8dd6da86c0a30ac300c7d90a2f107747d4164b | 726 | py | Python | nowonline/abc.py | fixator10/Red-Administrator | fb67feb64f06979b27106a561e785b267096e1eb | [
"MIT"
] | 1 | 2022-02-03T17:40:44.000Z | 2022-02-03T17:40:44.000Z | nowonline/abc.py | fixator10/Red-Administrator | fb67feb64f06979b27106a561e785b267096e1eb | [
"MIT"
] | null | null | null | nowonline/abc.py | fixator10/Red-Administrator | fb67feb64f06979b27106a561e785b267096e1eb | [
"MIT"
] | null | null | null | from abc import ( # Importing ABCMeta in an effort to use it in other files
ABC,
ABCMeta,
abstractmethod,
)
from redbot.core import Config
from redbot.core.bot import Red
from redbot.core.commands import Cog
from .no_class import Event
class MixinMeta(ABC):
bot: Red
config: Config
def __i... | 20.742857 | 95 | 0.687328 | 100 | 726 | 4.92 | 0.54 | 0.060976 | 0.085366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232782 | 726 | 34 | 96 | 21.352941 | 0.883303 | 0.30854 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.1 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
269601e6cf067a37c626f6b429dd51f79cf23ddf | 565 | py | Python | backend/doppelkopf/events.py | AlexRogalskiy/doppelkopf | cbfc95d56f102ab8e01e194603e9f4abf09e2e14 | [
"MIT"
] | 38 | 2018-02-14T19:28:00.000Z | 2022-03-30T07:28:12.000Z | backend/doppelkopf/events.py | hamvocke/doppelkopf | b820619be2e9424df5aca83491d96c0a0af6f2a5 | [
"MIT"
] | 57 | 2018-10-01T10:54:32.000Z | 2022-02-08T23:26:40.000Z | backend/doppelkopf/events.py | AlexRogalskiy/doppelkopf | cbfc95d56f102ab8e01e194603e9f4abf09e2e14 | [
"MIT"
] | 11 | 2018-12-17T17:02:31.000Z | 2022-03-10T17:47:07.000Z | from doppelkopf.db import db
from datetime import datetime
from enum import Enum
class EventTypes(Enum):
GAME_SINGLEPLAYER_START = 0
GAME_SINGLEPLAYER_WIN = 1
GAME_SINGLEPLAYER_LOSE = 2
GAME_MULTIPLAYER_START = 100
CRON_DB_BACKUP = 1000
class Event(db.Model):
id = db.Column(db.Integer, pri... | 24.565217 | 82 | 0.722124 | 78 | 565 | 5 | 0.538462 | 0.123077 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021552 | 0.178761 | 565 | 22 | 83 | 25.681818 | 0.818966 | 0 | 0 | 0 | 0 | 0 | 0.035398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0.066667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2698e8cb20e08e108e05f5bf05eea2608ae6cecb | 1,445 | py | Python | input_simulator.py | aleksft/synthexic | 53776f2be9052f719e20d95050dc2fd06c6c66b9 | [
"BSD-2-Clause"
] | null | null | null | input_simulator.py | aleksft/synthexic | 53776f2be9052f719e20d95050dc2fd06c6c66b9 | [
"BSD-2-Clause"
] | null | null | null | input_simulator.py | aleksft/synthexic | 53776f2be9052f719e20d95050dc2fd06c6c66b9 | [
"BSD-2-Clause"
] | null | null | null | import os
import time
import json
import requests
import pandas as pd
from flask import json
"""This script simulates the entry of the data in the system"""
url = 'http://localhost:5000/api/v1/prices'
headers = {'Content-Type': 'application/json'}
def get_prices():
data_file = os.getcwd() + '/Data.xlsx'
xl... | 28.333333 | 71 | 0.623529 | 197 | 1,445 | 4.42132 | 0.416244 | 0.055109 | 0.041332 | 0.043628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013208 | 0.266436 | 1,445 | 50 | 72 | 28.9 | 0.808491 | 0 | 0 | 0.05 | 0 | 0 | 0.136035 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
269e1660e1aa4b78be10d148a42cedaa11dfcdac | 9,965 | py | Python | sina_spider/spiders/topic_tweets.py | lokicui/sina-spider | 89b72752d97d21c16003517ca9ca5544a523f6f3 | [
"Apache-2.0"
] | null | null | null | sina_spider/spiders/topic_tweets.py | lokicui/sina-spider | 89b72752d97d21c16003517ca9ca5544a523f6f3 | [
"Apache-2.0"
] | null | null | null | sina_spider/spiders/topic_tweets.py | lokicui/sina-spider | 89b72752d97d21c16003517ca9ca5544a523f6f3 | [
"Apache-2.0"
] | null | null | null | # encoding=utf-8
# ------------------------------------------
# 版本:3.0
# 日期:2016-12-01
# 作者:九茶<http://blog.csdn.net/bone_ace>
# ------------------------------------------
import os
import sys
import logging
import requests
import re
import json
import urllib
import hashlib
from urlparse import urljoin, urlparse, ... | 45.295455 | 158 | 0.510085 | 1,001 | 9,965 | 4.976024 | 0.225774 | 0.024092 | 0.009637 | 0.009637 | 0.302349 | 0.253764 | 0.189319 | 0.176471 | 0.176471 | 0.176471 | 0 | 0.010855 | 0.33437 | 9,965 | 219 | 159 | 45.502283 | 0.740087 | 0.056498 | 0 | 0.234375 | 0 | 0.005208 | 0.125213 | 0.002238 | 0.005208 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.09375 | null | null | 0.005208 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26adc218289506e392d780df38d1b42f83d7188f | 848 | py | Python | day07/day07part1.py | opcecco/AOC2017 | 45530c8483e3f02b58b4ad33b057fae9f13a5bd0 | [
"MIT"
] | 1 | 2020-04-12T17:57:30.000Z | 2020-04-12T17:57:30.000Z | day07/day07part1.py | opcecco/AOC2017 | 45530c8483e3f02b58b4ad33b057fae9f13a5bd0 | [
"MIT"
] | null | null | null | day07/day07part1.py | opcecco/AOC2017 | 45530c8483e3f02b58b4ad33b057fae9f13a5bd0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Advent of Code 2017: Day 7 Part 1
https://adventofcode.com/2017/day/7
"""
import sys, re
# Define Node class to store tower information
class Node:
def __init__(self, name, weight, holding):
self.name = name
self.weight = weight
self.holding = holding
self.parent = None
def f... | 22.315789 | 80 | 0.705189 | 142 | 848 | 4.06338 | 0.450704 | 0.097054 | 0.062392 | 0.048527 | 0.069324 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022695 | 0.168632 | 848 | 37 | 81 | 22.918919 | 0.795745 | 0.153302 | 0 | 0 | 0 | 0 | 0.006289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26b56d0ff034fe2d5dbe39988fedfe3c07e6046a | 827 | py | Python | asyncapi_schema_pydantic/v2_3_0/server_variable.py | albertnadal/asyncapi-schema-pydantic | 83966bdc11f2d465a10b52cec5ff79d18fa6f5fe | [
"MIT"
] | null | null | null | asyncapi_schema_pydantic/v2_3_0/server_variable.py | albertnadal/asyncapi-schema-pydantic | 83966bdc11f2d465a10b52cec5ff79d18fa6f5fe | [
"MIT"
] | null | null | null | asyncapi_schema_pydantic/v2_3_0/server_variable.py | albertnadal/asyncapi-schema-pydantic | 83966bdc11f2d465a10b52cec5ff79d18fa6f5fe | [
"MIT"
] | null | null | null | from typing import List, Optional
from pydantic import BaseModel, Extra
class ServerVariable(BaseModel):
"""An object representing a Server Variable for server URL template substitution."""
enum: Optional[List[str]] = None
"""
An enumeration of string values to be used if the substitution options ar... | 25.84375 | 98 | 0.675937 | 105 | 827 | 5.32381 | 0.533333 | 0.050089 | 0.048301 | 0.067979 | 0.075134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244256 | 827 | 31 | 99 | 26.677419 | 0.8944 | 0.094317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
26b6b2bd3c9cedff4320f91443706cf2ed7ccb3c | 258 | py | Python | list_shuffle.py | 2951121599/Utils | 39a0263a5f3657773795d74e3c8aba6b297bd949 | [
"MIT"
] | null | null | null | list_shuffle.py | 2951121599/Utils | 39a0263a5f3657773795d74e3c8aba6b297bd949 | [
"MIT"
] | null | null | null | list_shuffle.py | 2951121599/Utils | 39a0263a5f3657773795d74e3c8aba6b297bd949 | [
"MIT"
] | null | null | null | # -*-coding:utf-8-*-
# 作者: 29511
# 文件名: list_shuffle.py
# 日期时间:2021/4/19,15:47
def list_shuffle(li):
"""
打乱列表元素
:param li: 原列表
"""
import random
random.shuffle(li)
li = [1, 2, 3, 4, 5]
list_shuffle(li) # 调用之后li反生了改变
print(li)
| 14.333333 | 31 | 0.573643 | 40 | 258 | 3.625 | 0.7 | 0.227586 | 0.17931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113402 | 0.248062 | 258 | 17 | 32 | 15.176471 | 0.634021 | 0.422481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26b773149a43a57c6f078b69ec755b07dd3b14cc | 14,335 | py | Python | mpeg2psi/section_builder.py | kidharb/tsee | 507483294cd258031a9b5acd64a5f9ad32c41318 | [
"Unlicense"
] | 1 | 2020-03-05T14:24:12.000Z | 2020-03-05T14:24:12.000Z | mpeg2psi/section_builder.py | kidharb/tsee | 507483294cd258031a9b5acd64a5f9ad32c41318 | [
"Unlicense"
] | null | null | null | mpeg2psi/section_builder.py | kidharb/tsee | 507483294cd258031a9b5acd64a5f9ad32c41318 | [
"Unlicense"
] | 1 | 2020-03-05T14:24:13.000Z | 2020-03-05T14:24:13.000Z | """section builder
Provides a set of functions to build a basic MPEG2-TS PSI section.
"""
CRC32 = [
0x00000000, 0x04c11db7, 0x09823b6e, 0x0d4326d9, 0x130476dc, 0x17c56b6b,
0x1a864db2, 0x1e475005, 0x2608edb8, 0x22c9f00f, 0x2f8ad6d6, 0x2b4bcb61,
0x350c9b64, 0x31cd86d3, 0x3c8ea00a, 0x384fbdbd, 0x4c11db70, 0x48d0c... | 40.154062 | 123 | 0.745239 | 1,926 | 14,335 | 5.397196 | 0.23053 | 0.07773 | 0.035979 | 0.036075 | 0.531602 | 0.500144 | 0.479365 | 0.465705 | 0.407504 | 0.36835 | 0 | 0.154853 | 0.141821 | 14,335 | 357 | 124 | 40.154062 | 0.690132 | 0.010534 | 0 | 0.384259 | 0 | 0 | 0.043262 | 0 | 0 | 0 | 0.257633 | 0 | 0.171296 | 0 | null | null | 0 | 0.013889 | null | null | 0.00463 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26b84581e95765cfbfdb8e18d96349407c13324f | 1,341 | py | Python | spectral-norm.py | mesalock-linux/mesapy-benchmarks | dbb9c0c44862e1b6325bf4a08c4afda34ebf70ec | [
"BSD-3-Clause"
] | null | null | null | spectral-norm.py | mesalock-linux/mesapy-benchmarks | dbb9c0c44862e1b6325bf4a08c4afda34ebf70ec | [
"BSD-3-Clause"
] | null | null | null | spectral-norm.py | mesalock-linux/mesapy-benchmarks | dbb9c0c44862e1b6325bf4a08c4afda34ebf70ec | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# The Computer Language Benchmarks Game
# http://shootout.alioth.debian.org/
# Contributed by Sebastien Loisel
# Fixed by Isaac Gouy
# Sped up by Josh Goldfoot
# Dirtily sped up by Simon Descarpentries
# Concurrency by Jason Stitt
from math import sqrt
from itertools import izi... | 23.12069 | 52 | 0.597315 | 231 | 1,341 | 3.225108 | 0.320346 | 0.088591 | 0.04698 | 0.052349 | 0.401342 | 0.252349 | 0.252349 | 0.252349 | 0.252349 | 0.252349 | 0 | 0.018828 | 0.287099 | 1,341 | 57 | 53 | 23.526316 | 0.76046 | 0.177479 | 0 | 0.222222 | 0 | 0 | 0.007313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26bb46b3978ccba73b234653937c6d799a396971 | 6,196 | py | Python | agpy/subim_gaussfit.py | hessammehr/agpy | a9436f8e5b9210ef8a86d03d0fd94f2d4e6212db | [
"MIT"
] | 16 | 2015-05-08T11:14:26.000Z | 2021-11-19T19:05:16.000Z | agpy/subim_gaussfit.py | hessammehr/agpy | a9436f8e5b9210ef8a86d03d0fd94f2d4e6212db | [
"MIT"
] | 3 | 2016-05-12T16:27:14.000Z | 2020-12-27T01:14:24.000Z | agpy/subim_gaussfit.py | hessammehr/agpy | a9436f8e5b9210ef8a86d03d0fd94f2d4e6212db | [
"MIT"
] | 19 | 2015-03-30T22:34:14.000Z | 2020-11-25T23:29:53.000Z | #!/opt/local/bin/ipython
#"""
#Usage:
#./subim_gaussfit.py @file_list.txt x_cen y_cen [outfile.txt]
#%run subim_gaussfit.py @file_list.txt x_cen y_cen [outfile.txt] in an interactive session
# or %run subim_gaussfit.py @file_list.txt @coord_list.txt [outfile.txt]
#"""
import sys
#sys.path.append('/Users/adam/classes/pr... | 37.551515 | 188 | 0.595868 | 911 | 6,196 | 3.940724 | 0.236004 | 0.028969 | 0.020891 | 0.033426 | 0.34234 | 0.308357 | 0.258496 | 0.245682 | 0.189694 | 0.189694 | 0 | 0.03181 | 0.233861 | 6,196 | 164 | 189 | 37.780488 | 0.724458 | 0.217076 | 0 | 0.220339 | 0 | 0.016949 | 0.082866 | 0.029283 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.067797 | null | null | 0.050847 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26bf642e91dd09bfd6af3d4e52a8de1715d8fe2d | 617 | py | Python | google.py | bossprogrammers/first_automation_scripts | cd802ec93c12b08a4b61f933d200e4ce9a22c021 | [
"MIT"
] | null | null | null | google.py | bossprogrammers/first_automation_scripts | cd802ec93c12b08a4b61f933d200e4ce9a22c021 | [
"MIT"
] | null | null | null | google.py | bossprogrammers/first_automation_scripts | cd802ec93c12b08a4b61f933d200e4ce9a22c021 | [
"MIT"
] | null | null | null | from selenium import webdriver
from time import sleep
from selenium.webdriver.common.by import By
#initialize webdriver
executable_path='/Users/softwareengineer/Desktop/web_automation/chromedriver'
driver = webdriver.Chrome(executable_path)
# Expand the window
driver.maximize_window()
driver.implicitly_wait(5)
#Ope... | 22.035714 | 77 | 0.789303 | 89 | 617 | 5.348315 | 0.606742 | 0.056723 | 0.071429 | 0.079832 | 0.096639 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00713 | 0.090762 | 617 | 28 | 78 | 22.035714 | 0.841355 | 0.123177 | 0 | 0 | 0 | 0 | 0.234637 | 0.10987 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.1875 | 0 | 0.1875 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
26c33659b26f13c1f89fdf947572db0b244b67ea | 76,154 | py | Python | airbnb.py | kpolimis/airbnb-data-collection | 7c64e2c7c60c152edb88de99f7e5284e5c4bcedd | [
"MIT"
] | null | null | null | airbnb.py | kpolimis/airbnb-data-collection | 7c64e2c7c60c152edb88de99f7e5284e5c4bcedd | [
"MIT"
] | null | null | null | airbnb.py | kpolimis/airbnb-data-collection | 7c64e2c7c60c152edb88de99f7e5284e5c4bcedd | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# ============================================================================
# Airbnb web site scraper, for analysis of Airbnb listings
# Tom Slee, 2013--2015.
#
# function naming conventions:
# ws_get = get from web site
# db_get = get from database
# db_add = add to the database
#
# functio... | 40.485912 | 97 | 0.510676 | 7,951 | 76,154 | 4.710728 | 0.101622 | 0.03017 | 0.011854 | 0.001922 | 0.422427 | 0.36652 | 0.306074 | 0.261193 | 0.219009 | 0.191136 | 0 | 0.009491 | 0.378798 | 76,154 | 1,880 | 98 | 40.507447 | 0.782252 | 0 | 0 | 0.441214 | 0 | 0.001896 | 0.220316 | 0.035125 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005057 | 0.008217 | null | null | 0.051201 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26c34add001313d6eb865e56a2af385b88fe4cf5 | 799 | py | Python | middleware/legato/library/plugins_java/scripts/generator/widget_groupbox.py | automaate/gfx3.8 | 55bf94302f00c8d513c84d910185cef2ca6b5be2 | [
"0BSD"
] | null | null | null | middleware/legato/library/plugins_java/scripts/generator/widget_groupbox.py | automaate/gfx3.8 | 55bf94302f00c8d513c84d910185cef2ca6b5be2 | [
"0BSD"
] | null | null | null | middleware/legato/library/plugins_java/scripts/generator/widget_groupbox.py | automaate/gfx3.8 | 55bf94302f00c8d513c84d910185cef2ca6b5be2 | [
"0BSD"
] | null | null | null | widget = WidgetDefault()
widget.border = "None"
commonDefaults["GroupBoxWidget"] = widget
def generateGroupBoxWidget(file, screen, box, parentName):
name = box.getName()
file.write(" %s = leGroupBoxWidget_New();" % (name))
generateBaseWidget(file, screen, box)
writeSetStringAssetName(file, name,... | 28.535714 | 91 | 0.682103 | 76 | 799 | 7.157895 | 0.539474 | 0.036765 | 0.047794 | 0.084559 | 0.106618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 799 | 28 | 92 | 28.535714 | 0.826748 | 0 | 0 | 0 | 1 | 0 | 0.15 | 0.02875 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26c852f701b2b302d7f519e176c388cc572b08ec | 643 | py | Python | Python Scripts/Jammer with CLI Interface/start_adapter.py | swalihkdan/YRov | 415da1b74dc01134eb8ea597466b35ae380b909d | [
"MIT"
] | null | null | null | Python Scripts/Jammer with CLI Interface/start_adapter.py | swalihkdan/YRov | 415da1b74dc01134eb8ea597466b35ae380b909d | [
"MIT"
] | null | null | null | Python Scripts/Jammer with CLI Interface/start_adapter.py | swalihkdan/YRov | 415da1b74dc01134eb8ea597466b35ae380b909d | [
"MIT"
] | 1 | 2020-12-08T12:26:34.000Z | 2020-12-08T12:26:34.000Z | import subprocess
import logging
def start_adapter():
#Configuring the logger
logging.basicConfig(filename="./logs/start_adapter.log",
format='%(asctime)s %(message)s',
filemode='w')
#Creating an object
logger=logging.getLogger()
#Setting the threshold of logger t... | 29.227273 | 109 | 0.643857 | 71 | 643 | 5.802817 | 0.661972 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001912 | 0.186625 | 643 | 21 | 110 | 30.619048 | 0.785851 | 0.125972 | 0 | 0 | 0 | 0 | 0.291367 | 0.120504 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26cad2d9b0dc9f1a4b29284b09f485ed5f4cbc55 | 523 | py | Python | Dataset/Leetcode/test/48/481.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/48/481.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/48/481.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, matrix: List[List[int]]) -> None:
"""
Do not return anything, modify matrix in-place instead.
"""
n, m = len(matrix), len(matrix[0])
assert n == m
for i in range(n):
for j in range(i + 1, n):
matrix[i][j], m... | 29.055556 | 87 | 0.453155 | 80 | 523 | 2.9625 | 0.35 | 0.177215 | 0.135021 | 0.092827 | 0.308017 | 0.308017 | 0.308017 | 0.194093 | 0.194093 | 0 | 0 | 0.015291 | 0.374761 | 523 | 17 | 88 | 30.764706 | 0.70948 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26d19cf1fefcaf1c3a8acd2282c5ed1a1d6f07a9 | 362 | py | Python | workspaces/migrations/0005_auto_20220223_1114.py | simpledatatools/start-django | aa3df13fb930f80642b0dc2d9d25b2f8197a0236 | [
"MIT"
] | null | null | null | workspaces/migrations/0005_auto_20220223_1114.py | simpledatatools/start-django | aa3df13fb930f80642b0dc2d9d25b2f8197a0236 | [
"MIT"
] | null | null | null | workspaces/migrations/0005_auto_20220223_1114.py | simpledatatools/start-django | aa3df13fb930f80642b0dc2d9d25b2f8197a0236 | [
"MIT"
] | 1 | 2022-02-24T13:17:20.000Z | 2022-02-24T13:17:20.000Z | # Generated by Django 3.1.4 on 2022-02-23 11:14
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('workspaces', '0004_auto_20220223_0447'),
]
operations = [
migrations.RenameField(
model_name='page',
old_name='label',
... | 19.052632 | 50 | 0.582873 | 39 | 362 | 5.25641 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123016 | 0.303867 | 362 | 18 | 51 | 20.111111 | 0.690476 | 0.124309 | 0 | 0 | 1 | 0 | 0.149206 | 0.073016 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26d209071cafff8b980e1cbb21a55e99e635cf87 | 27,532 | py | Python | scripts/venv/lib/python2.7/site-packages/cogent/app/rdp_classifier20.py | sauloal/cnidaria | fe6f8c8dfed86d39c80f2804a753c05bb2e485b4 | [
"MIT"
] | 3 | 2015-11-20T08:44:42.000Z | 2016-12-14T01:40:03.000Z | scripts/venv/lib/python2.7/site-packages/cogent/app/rdp_classifier20.py | sauloal/cnidaria | fe6f8c8dfed86d39c80f2804a753c05bb2e485b4 | [
"MIT"
] | 1 | 2017-09-04T14:04:32.000Z | 2020-05-26T19:04:00.000Z | scripts/venv/lib/python2.7/site-packages/cogent/app/rdp_classifier20.py | sauloal/cnidaria | fe6f8c8dfed86d39c80f2804a753c05bb2e485b4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Application controller for rdp_classifier-2.0
"""
__author__ = "Kyle Bittinger"
__copyright__ = "Copyright 2007-2012, The Cogent Project"
__credits__ = ["Kyle Bittinger","Greg Caporaso"]
__license__ = "GPL"
__version__ = "1.5.3"
__maintainer__ = "Kyle Bittinger"
__email__ = "kylebittinger@gmai... | 40.251462 | 92 | 0.6564 | 3,344 | 27,532 | 5.244019 | 0.198864 | 0.02224 | 0.016766 | 0.010949 | 0.319856 | 0.292256 | 0.269845 | 0.255703 | 0.23141 | 0.225821 | 0 | 0.006501 | 0.273718 | 27,532 | 683 | 93 | 40.310395 | 0.870474 | 0.148772 | 0 | 0.282209 | 0 | 0 | 0.119582 | 0.032637 | 0 | 0 | 0 | 0 | 0.006135 | 0 | null | null | 0 | 0.030675 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26d3011627ac375c0471087569687e8a196cc2d5 | 495 | py | Python | bugtracker_app/migrations/0005_auto_20210223_1252.py | jkube38/bug_tracker | 43e5ff11a7556500e5a37e09173f56bb55cbfa05 | [
"MIT"
] | null | null | null | bugtracker_app/migrations/0005_auto_20210223_1252.py | jkube38/bug_tracker | 43e5ff11a7556500e5a37e09173f56bb55cbfa05 | [
"MIT"
] | null | null | null | bugtracker_app/migrations/0005_auto_20210223_1252.py | jkube38/bug_tracker | 43e5ff11a7556500e5a37e09173f56bb55cbfa05 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-02-23 12:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bugtracker_app', '0004_auto_20210222_2058'),
]
operations = [
migrations.AlterField(
model_name='customusermodel',
n... | 26.052632 | 145 | 0.60404 | 56 | 495 | 5.232143 | 0.803571 | 0.047782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 0.244444 | 495 | 18 | 146 | 27.5 | 0.695187 | 0.090909 | 0 | 0 | 1 | 0 | 0.196429 | 0.051339 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26d3025c4aafbcb12841834b7db9ccd2f0579d00 | 1,696 | py | Python | sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_recovery_services_client_enums.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | 8 | 2021-01-13T23:44:08.000Z | 2021-03-17T10:13:36.000Z | sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_recovery_services_client_enums.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | 226 | 2019-07-24T07:57:21.000Z | 2019-10-15T01:07:24.000Z | sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_recovery_services_client_enums.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | 2 | 2020-05-21T22:51:22.000Z | 2020-05-26T20:53:01.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 21.2 | 76 | 0.627358 | 161 | 1,696 | 6.534161 | 0.602484 | 0.059886 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002199 | 0.195755 | 1,696 | 79 | 77 | 21.468354 | 0.769062 | 0.266509 | 0 | 0.146341 | 0 | 0 | 0.216545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02439 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
26d59e1d6fcea5d554bc500f8becc7365c4ec15c | 883 | py | Python | automation/tincrepo/main/pxf/pxf.py | lchx1010/pxf | f6e11f91fb8c01ed27fc829beb3800f3b253c209 | [
"Apache-2.0"
] | 46 | 2018-10-22T23:34:03.000Z | 2022-03-31T09:31:34.000Z | automation/tincrepo/main/pxf/pxf.py | lchx1010/pxf | f6e11f91fb8c01ed27fc829beb3800f3b253c209 | [
"Apache-2.0"
] | 317 | 2018-10-05T23:51:48.000Z | 2022-03-22T17:38:52.000Z | automation/tincrepo/main/pxf/pxf.py | lchx1010/pxf | f6e11f91fb8c01ed27fc829beb3800f3b253c209 | [
"Apache-2.0"
] | 46 | 2018-10-10T18:55:00.000Z | 2022-03-28T07:27:04.000Z | from mpp.gpdb.lib.models.sql import SQLPerformanceTestCase
from mpp.gpdb.lib.models.sql.optimizer import OptimizerSQLPerformanceTestCase
class BaseTPCHPlannerPerformanceTestCase(SQLPerformanceTestCase):
"""
metadata here can be applied to all the tpch planner test cases.
"""
def _infer_metadata(self):... | 40.136364 | 77 | 0.790487 | 85 | 883 | 7.952941 | 0.470588 | 0.076923 | 0.032544 | 0.04142 | 0.292899 | 0.292899 | 0.224852 | 0.106509 | 0.106509 | 0 | 0 | 0 | 0.147225 | 883 | 21 | 78 | 42.047619 | 0.897742 | 0.212911 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
26db7a20e3ba87c9c62833354d3572c491d2222c | 787 | py | Python | floodsystem/flood.py | supercarryleoliao/IA-Flood-Warning-System-58 | af980dddc72d45d50ee70d9d10f6077948396d92 | [
"MIT"
] | null | null | null | floodsystem/flood.py | supercarryleoliao/IA-Flood-Warning-System-58 | af980dddc72d45d50ee70d9d10f6077948396d92 | [
"MIT"
] | null | null | null | floodsystem/flood.py | supercarryleoliao/IA-Flood-Warning-System-58 | af980dddc72d45d50ee70d9d10f6077948396d92 | [
"MIT"
] | null | null | null |
def stations_level_over_threshold(stations, tol): #2B part 2
stationList = []
for station in stations:
if station.typical_range_consistent() and station.latest_level != None:
if station.relative_water_level() > tol:
stationList.append((station, station.relative_water_level()... | 43.722222 | 79 | 0.701398 | 96 | 787 | 5.5625 | 0.395833 | 0.050562 | 0.11236 | 0.140449 | 0.655431 | 0.655431 | 0.655431 | 0.655431 | 0.655431 | 0.655431 | 0 | 0.007937 | 0.199492 | 787 | 18 | 80 | 43.722222 | 0.839683 | 0.011436 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26ddecc1bfb9159a8e10d9731616caa3b0e6c070 | 780 | py | Python | qgoptax/optimizers/utils.py | LuchnikovI/qgoptax | fe8ee2574cdfb17fc12ce8183cb80bea8af06cbc | [
"Apache-2.0"
] | null | null | null | qgoptax/optimizers/utils.py | LuchnikovI/qgoptax | fe8ee2574cdfb17fc12ce8183cb80bea8af06cbc | [
"Apache-2.0"
] | null | null | null | qgoptax/optimizers/utils.py | LuchnikovI/qgoptax | fe8ee2574cdfb17fc12ce8183cb80bea8af06cbc | [
"Apache-2.0"
] | null | null | null | from typing import Any
from jax.tree_util import tree_flatten, tree_unflatten
import jax.numpy as jnp
# Params can be an arbitrary PyTree of complex valued tensors
Params = Any
# An example of a manifold
Manifold = Any
def is_leaf(x):
if isinstance(x, tuple):
if len(x) == 0:
return True
... | 21.081081 | 79 | 0.65 | 106 | 780 | 4.688679 | 0.471698 | 0.066398 | 0.060362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003521 | 0.271795 | 780 | 36 | 80 | 21.666667 | 0.871479 | 0.248718 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
26dede1b3e85222670373f6cab6b018406bc673b | 751 | py | Python | day12/accounting.py | JulienCote/advent_of_code_2015 | 567a589c6b1c161ebfba8dcf1b9f3bc1bf6e0d00 | [
"MIT"
] | null | null | null | day12/accounting.py | JulienCote/advent_of_code_2015 | 567a589c6b1c161ebfba8dcf1b9f3bc1bf6e0d00 | [
"MIT"
] | null | null | null | day12/accounting.py | JulienCote/advent_of_code_2015 | 567a589c6b1c161ebfba8dcf1b9f3bc1bf6e0d00 | [
"MIT"
] | null | null | null | import re
import json
def sum_all(text):
numbers = re.findall('(-?\d+)+', text)
return sum([int(i) for i in numbers])
def redless_sum(json_object):
partial_sum = 0
for element in json_object:
if type(element) is dict and u'red' not in element.values():
partial_sum += redless_sum(el... | 31.291667 | 68 | 0.648469 | 112 | 751 | 4.169643 | 0.392857 | 0.107066 | 0.083512 | 0.085653 | 0.197002 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001745 | 0.237017 | 751 | 24 | 69 | 31.291667 | 0.813264 | 0 | 0 | 0 | 0 | 0 | 0.077128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26f5f08524ee2ee8a631d934639bd994a7ed2e5c | 1,564 | py | Python | scripts/config_args.py | harol-tch/DeepShallowParsingQA | 7376b659413c7f23f878492ab693f5412d054881 | [
"Apache-2.0"
] | 6 | 2019-11-19T18:29:22.000Z | 2022-03-08T11:25:42.000Z | scripts/config_args.py | harol-tch/DeepShallowParsingQA | 7376b659413c7f23f878492ab693f5412d054881 | [
"Apache-2.0"
] | 14 | 2020-07-17T11:10:36.000Z | 2022-03-12T00:23:42.000Z | scripts/config_args.py | harol-tch/DeepShallowParsingQA | 7376b659413c7f23f878492ab693f5412d054881 | [
"Apache-2.0"
] | 4 | 2019-10-15T14:54:40.000Z | 2021-12-06T02:23:36.000Z | import argparse
def parse_args():
parser = argparse.ArgumentParser(description='Shallow Parsing for QA')
parser.add_argument('--mode', default='train', help='mode: `train` or `test`')
parser.add_argument('--epochs', default=100, type=int, help='number of total epochs to run')
parser.add_argument('--lr... | 65.166667 | 102 | 0.707161 | 218 | 1,564 | 4.949541 | 0.376147 | 0.133457 | 0.252085 | 0.031511 | 0.063948 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021014 | 0.117647 | 1,564 | 23 | 103 | 68 | 0.76087 | 0 | 0 | 0 | 0 | 0 | 0.326726 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26f7a4b504a5584ea94b7ddeed25eb6ba74dc1a6 | 5,795 | py | Python | authweb/models.py | alexjosesilva/Desafio_Estacio_2019 | 037cb8643e4c5c0e7a8c3a440aaf077ace4b763f | [
"MIT"
] | null | null | null | authweb/models.py | alexjosesilva/Desafio_Estacio_2019 | 037cb8643e4c5c0e7a8c3a440aaf077ace4b763f | [
"MIT"
] | null | null | null | authweb/models.py | alexjosesilva/Desafio_Estacio_2019 | 037cb8643e4c5c0e7a8c3a440aaf077ace4b763f | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.contrib.auth.models import User
#https://scottbarnham.com/blog/2008/08/21/extending-the-django-user-model-with-inheritance.1.html
from django.contrib.auth.models import UserManager
from django.db import models
from django.template.defaultfilters import default
clas... | 34.909639 | 163 | 0.60673 | 676 | 5,795 | 5.073965 | 0.184911 | 0.059184 | 0.083382 | 0.109038 | 0.502332 | 0.491545 | 0.434402 | 0.372886 | 0.360058 | 0.242857 | 0 | 0.034611 | 0.257118 | 5,795 | 165 | 164 | 35.121212 | 0.762137 | 0.063158 | 0 | 0.279279 | 0 | 0 | 0.071522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063063 | false | 0 | 0.045045 | 0.054054 | 0.648649 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f800e63d9cf9934cae8e2a0c7d4ac17e88359b79 | 1,869 | py | Python | SpiderMan/Cmd/migrate.py | QYLGitHub/SpiderMan | 7b9edd7fc0dad9e20c9f9eb254e05a30b8d4b1b0 | [
"Apache-2.0"
] | 11 | 2018-03-22T11:50:34.000Z | 2018-08-27T15:08:59.000Z | SpiderMan/Cmd/migrate.py | PerrorOne/SpiderMan | 7b9edd7fc0dad9e20c9f9eb254e05a30b8d4b1b0 | [
"Apache-2.0"
] | 2 | 2020-01-15T12:18:25.000Z | 2022-03-02T14:57:10.000Z | SpiderMan/Cmd/migrate.py | PerrorOne/SpiderMan | 7b9edd7fc0dad9e20c9f9eb254e05a30b8d4b1b0 | [
"Apache-2.0"
] | 3 | 2019-07-04T11:40:56.000Z | 2022-02-04T12:26:16.000Z | # -*- coding:utf-8 -*-
import re
import getpass
import hashlib
import peewee
from tornado.log import app_log
from SpiderMan.utils import SpiderManConf
from SpiderMan.models_sql import sum_sql
from SpiderMan.server.web import models
from SpiderMan.server.web.models import User
def input_user(msg=None):
if not msg:... | 33.981818 | 109 | 0.669877 | 253 | 1,869 | 4.881423 | 0.383399 | 0.036437 | 0.034008 | 0.035628 | 0.205668 | 0.166802 | 0.166802 | 0.166802 | 0.166802 | 0.166802 | 0 | 0.01222 | 0.211878 | 1,869 | 54 | 110 | 34.611111 | 0.826205 | 0.019797 | 0 | 0.136364 | 0 | 0.022727 | 0.206027 | 0.031233 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0.272727 | 0.204545 | 0 | 0.340909 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f80a123f50e24d464ebd0e9214fbc1f196c3f952 | 233 | py | Python | Config.py | Plutoeat/sign_in_jrxy | 363674188f12268b31557097cfcd0a2d6cad39ea | [
"MIT"
] | 4 | 2022-01-23T02:29:04.000Z | 2022-02-11T09:05:37.000Z | Config.py | Plutoeat/sign_in_jrxy | 363674188f12268b31557097cfcd0a2d6cad39ea | [
"MIT"
] | 3 | 2022-01-23T01:55:14.000Z | 2022-02-03T13:19:49.000Z | Config.py | Plutoeat/sign_in_jrxy | 363674188f12268b31557097cfcd0a2d6cad39ea | [
"MIT"
] | 2 | 2022-01-29T11:55:33.000Z | 2022-02-11T09:09:12.000Z | # !/usr/bin/python
# -*- coding:utf-8 -*-
# @author : GaiusPluto
# @time : 2022/1/23 0:59
# @version : 1.0
import logging
from logging import config
logging.config.fileConfig("logger.conf")
logger = logging.getLogger("jrxy")
| 21.181818 | 40 | 0.669528 | 32 | 233 | 4.875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066327 | 0.158798 | 233 | 10 | 41 | 23.3 | 0.729592 | 0.44206 | 0 | 0 | 0 | 0 | 0.120968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f81e71d63c79071a58b50eeaabc9ccca354610c7 | 1,241 | py | Python | covid_scheduling/costs.py | mggg/covid-scheduling | 8f714947cf3ab4e5a57f0e5221856ac8ccfd91e4 | [
"MIT"
] | 2 | 2020-07-21T21:16:53.000Z | 2020-07-25T05:46:01.000Z | covid_scheduling/costs.py | mggg/covid-scheduling | 8f714947cf3ab4e5a57f0e5221856ac8ccfd91e4 | [
"MIT"
] | 6 | 2020-07-23T15:19:37.000Z | 2022-02-11T03:25:25.000Z | covid_scheduling/costs.py | mggg/covid-scheduling | 8f714947cf3ab4e5a57f0e5221856ac8ccfd91e4 | [
"MIT"
] | null | null | null | """Matching cost functions."""
from typing import Dict, List
from covid_scheduling.constants import SEC_PER_DAY
def schedule_cost(schedule: List[Dict], person: Dict,
target_interval: float) -> float:
"""Computes the cost (based on spacing and site preference) of a matching.
This is the cano... | 37.606061 | 79 | 0.694601 | 170 | 1,241 | 4.976471 | 0.535294 | 0.066194 | 0.021277 | 0.028369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005225 | 0.228848 | 1,241 | 32 | 80 | 38.78125 | 0.878788 | 0.598711 | 0 | 0 | 0 | 0 | 0.023095 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f8220b2d2e4a2f9c3b32b095852979df43be7131 | 1,008 | py | Python | test/test_levenshtein.py | katsugeneration/schuss | 30e2303aa0646f0a4424cbc4b5422acc58a06218 | [
"Apache-2.0"
] | 6 | 2018-12-20T06:50:52.000Z | 2021-12-16T13:08:38.000Z | test/test_levenshtein.py | katsugeneration/schuss | 30e2303aa0646f0a4424cbc4b5422acc58a06218 | [
"Apache-2.0"
] | 1 | 2020-06-29T07:00:51.000Z | 2020-06-29T07:00:51.000Z | test/test_levenshtein.py | katsugeneration/schuss | 30e2303aa0646f0a4424cbc4b5422acc58a06218 | [
"Apache-2.0"
] | 1 | 2022-03-04T07:29:55.000Z | 2022-03-04T07:29:55.000Z | from parameterized import parameterized
from nose.tools import assert_equal, assert_true
import os
import sys
dir_path = os.path.dirname(os.path.abspath(__file__))
module_path = os.path.join(dir_path, "../src")
if module_path not in sys.path:
sys.path.append(module_path)
os.chdir(dir_path)
class TestSPTokenizer... | 31.5 | 53 | 0.641865 | 140 | 1,008 | 4.45 | 0.314286 | 0.194222 | 0.105939 | 0.104334 | 0.463884 | 0.335474 | 0.083467 | 0 | 0 | 0 | 0 | 0.012438 | 0.202381 | 1,008 | 31 | 54 | 32.516129 | 0.762438 | 0 | 0 | 0.076923 | 0 | 0 | 0.053571 | 0 | 0 | 0 | 0 | 0 | 0.423077 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.346154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f8239934800003903b4cdf00c85a3cf908896ff6 | 194 | py | Python | ex097.py | qnomon/Python-Studies | dbd592cf2a161bb9ddbec66f020c602bddc6d44b | [
"MIT"
] | null | null | null | ex097.py | qnomon/Python-Studies | dbd592cf2a161bb9ddbec66f020c602bddc6d44b | [
"MIT"
] | null | null | null | ex097.py | qnomon/Python-Studies | dbd592cf2a161bb9ddbec66f020c602bddc6d44b | [
"MIT"
] | null | null | null | def escreva(frase):
a = len(frase)+2
print('~'*(a+2))
print(f' {frase}')
print('~' * (a + 2))
escreva('Gustavo Guanabara')
escreva('Curso de Python no YouTube')
escreva('CeV')
| 17.636364 | 37 | 0.57732 | 27 | 194 | 4.148148 | 0.592593 | 0.107143 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019355 | 0.201031 | 194 | 10 | 38 | 19.4 | 0.703226 | 0 | 0 | 0.25 | 0 | 0 | 0.28866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.375 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f824e1fd9fdf07bb4a56b53be4b8081c1f06c82c | 676 | py | Python | jira_config/set.py | gcarrarom/fancy-jira | c8e9d4dea328ffe86da6de54f67da0e2bde996f5 | [
"MIT"
] | 3 | 2021-03-31T21:20:49.000Z | 2021-11-13T11:14:38.000Z | jira_config/set.py | gcarrarom/fancy-jira | c8e9d4dea328ffe86da6de54f67da0e2bde996f5 | [
"MIT"
] | null | null | null | jira_config/set.py | gcarrarom/fancy-jira | c8e9d4dea328ffe86da6de54f67da0e2bde996f5 | [
"MIT"
] | null | null | null | import click
from jiractl_shared_functions import get_config, write_config_file
@click.command(name='set')
@click.option('--key', '-k', help="The key to be set in this command", required=True, prompt=True)
@click.option('--value', '-v', help="The value for the key to be used", required=True, prompt=True)
@click.pass_c... | 37.555556 | 99 | 0.701183 | 102 | 676 | 4.529412 | 0.401961 | 0.064935 | 0.051948 | 0.064935 | 0.246753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177515 | 676 | 18 | 100 | 37.555556 | 0.830935 | 0.218935 | 0 | 0 | 0 | 0 | 0.199601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f8272dd47a55256e8d689b342bbf1128588a887b | 524 | py | Python | tests/functional/test_index.py | zuiko42/picobrew_pico | 77d39fa4fe3f0361cca34bdf33eadf461fdd5ca7 | [
"MIT"
] | 142 | 2020-05-03T06:37:10.000Z | 2022-03-28T00:04:56.000Z | tests/functional/test_index.py | zuiko42/picobrew_pico | 77d39fa4fe3f0361cca34bdf33eadf461fdd5ca7 | [
"MIT"
] | 240 | 2020-06-04T15:40:01.000Z | 2022-03-25T15:13:14.000Z | tests/functional/test_index.py | zuiko42/picobrew_pico | 77d39fa4fe3f0361cca34bdf33eadf461fdd5ca7 | [
"MIT"
] | 66 | 2020-05-03T16:33:01.000Z | 2022-02-27T15:01:59.000Z | from app import create_app
def test_home_page():
"""
GIVEN a Flask application configured for testing
WHEN the '/' page is requested (GET)
THEN check that the response is valid
"""
flask_app = create_app('flask_test.cfg')
# Create a test client using the Flask application configured for te... | 32.75 | 77 | 0.692748 | 73 | 524 | 4.821918 | 0.547945 | 0.113636 | 0.147727 | 0.164773 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007389 | 0.225191 | 524 | 15 | 78 | 34.933333 | 0.859606 | 0.374046 | 0 | 0 | 0 | 0 | 0.148026 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f829fa7ec195d71619b8d726fa1a347c595d3b11 | 1,241 | py | Python | quotes/test/test_quotes.py | nivbend/memoir | c7239ae9db852f8e14ed53a2ba96d4c72eb47f30 | [
"MIT"
] | null | null | null | quotes/test/test_quotes.py | nivbend/memoir | c7239ae9db852f8e14ed53a2ba96d4c72eb47f30 | [
"MIT"
] | 18 | 2016-08-26T21:26:58.000Z | 2017-03-21T20:14:35.000Z | quotes/test/test_quotes.py | nivbend/memoir | c7239ae9db852f8e14ed53a2ba96d4c72eb47f30 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.core.exceptions import ValidationError
from django.contrib.auth.models import User
from django.test import TestCase
from quotes.models import Board, Quote
class TestQuotes(TestCase):
def setUp(self):
self.board = Board.objects.create(slug = 'board', name ... | 31.025 | 95 | 0.655923 | 144 | 1,241 | 5.479167 | 0.347222 | 0.069708 | 0.101394 | 0.17744 | 0.26109 | 0.26109 | 0.26109 | 0.136882 | 0 | 0 | 0 | 0 | 0.240935 | 1,241 | 39 | 96 | 31.820513 | 0.83758 | 0 | 0 | 0.225806 | 0 | 0 | 0.045931 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 1 | 0.193548 | false | 0.032258 | 0.16129 | 0 | 0.419355 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f83cc0c6b4fd3f0ae1f02b8099592543f024be2f | 1,265 | py | Python | models/player_model.py | andrewmelo/END | 9982e3b9f127ffa1b7edfbb96d3222448decb33f | [
"MIT"
] | null | null | null | models/player_model.py | andrewmelo/END | 9982e3b9f127ffa1b7edfbb96d3222448decb33f | [
"MIT"
] | null | null | null | models/player_model.py | andrewmelo/END | 9982e3b9f127ffa1b7edfbb96d3222448decb33f | [
"MIT"
] | null | null | null | from datetime import datetime
from discord import Embed
from sqlalchemy import Integer, BigInteger, DateTime, Column
from sqlalchemy.exc import SQLAlchemyError
from database import Base
from database.session_handler import select_one_from
class PlayerModel(Base):
__tablename__ = 'players'
user_id = Column(Bi... | 36.142857 | 87 | 0.720949 | 161 | 1,265 | 5.47205 | 0.465839 | 0.027242 | 0.07151 | 0.098751 | 0.119183 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01068 | 0.185771 | 1,265 | 34 | 88 | 37.205882 | 0.84466 | 0 | 0 | 0 | 0 | 0 | 0.018972 | 0 | 0 | 0 | 0.006324 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.678571 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f845cde15a203b98c020a236d6a4d8a2ec2bac2d | 785 | tac | Python | semantics_and_generate/samples/class5.tac | AHEADer/my_decaf_compiler | 42ba9f140c5fda3cd2b4fdb727745d2cfd39c923 | [
"MIT"
] | 1 | 2018-01-03T03:35:38.000Z | 2018-01-03T03:35:38.000Z | semantics_and_generate/samples/class5.tac | AHEADer/my_decaf_compiler | 42ba9f140c5fda3cd2b4fdb727745d2cfd39c923 | [
"MIT"
] | null | null | null | semantics_and_generate/samples/class5.tac | AHEADer/my_decaf_compiler | 42ba9f140c5fda3cd2b4fdb727745d2cfd39c923 | [
"MIT"
] | null | null | null | Cow.____Init:
BeginFunc 8 ;
_tmp0 = "Moo" ;
PushParam _tmp0 ;
LCall _PrintString ;
PopParams 4 ;
_tmp1 = 0 ;
Return _tmp1 ;
EndFunc ;
VTable Cow =
Cow.____Init,
;
Barn.____Init:
BeginFunc 36 ;
_tmp2 = 0 ;
_tmp3 = 4 ;
_tmp4 = _tmp3 + _tmp2 ;
PushParam _tmp4 ;
_tmp5 = LCall _Alloc ;
PopParams 4 ;
_tmp6 ... | 16.020408 | 27 | 0.629299 | 93 | 785 | 4.698925 | 0.408602 | 0.114416 | 0.086957 | 0.091533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117347 | 0.250955 | 785 | 48 | 28 | 16.354167 | 0.62585 | 0 | 0 | 0.166667 | 0 | 0 | 0.003822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f84f66695020be0928aaea18ff8eb8a24ca78d1c | 325 | py | Python | tests/integration/test_user_feed.py | sourcery-ai-bot/tiktokpy | d95e610b25fbb0b6faaf8c7044781e95f3007939 | [
"MIT"
] | 324 | 2020-06-08T18:29:34.000Z | 2022-03-31T18:27:20.000Z | tests/integration/test_user_feed.py | sourcery-ai-bot/tiktokpy | d95e610b25fbb0b6faaf8c7044781e95f3007939 | [
"MIT"
] | 198 | 2020-06-27T13:29:11.000Z | 2022-03-29T01:58:10.000Z | tests/integration/test_user_feed.py | sourcery-ai-bot/tiktokpy | d95e610b25fbb0b6faaf8c7044781e95f3007939 | [
"MIT"
] | 68 | 2020-08-10T23:46:19.000Z | 2022-03-30T19:33:50.000Z | import pytest
from loguru import logger
from tiktokpy import TikTokPy
from tiktokpy.models.feed import FeedItem
@pytest.mark.asyncio()
async def test_user_feed(bot: TikTokPy):
feed = await bot.user_feed(username="@mileycyrus")
logger.info(feed)
assert len(feed) == 50
assert isinstance(feed[0], FeedI... | 21.666667 | 54 | 0.747692 | 45 | 325 | 5.333333 | 0.555556 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010949 | 0.156923 | 325 | 14 | 55 | 23.214286 | 0.864964 | 0 | 0 | 0 | 0 | 0 | 0.033846 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f8598f3058c69ddcba263dc2a787092ea514e669 | 433 | py | Python | Django - backend/TVStore/TVStore_API/url.py | samedb/TV-store | 690b13bfb925b6ac26a4f47e91ea5dc9572e13ec | [
"MIT"
] | null | null | null | Django - backend/TVStore/TVStore_API/url.py | samedb/TV-store | 690b13bfb925b6ac26a4f47e91ea5dc9572e13ec | [
"MIT"
] | 4 | 2020-08-02T17:24:09.000Z | 2021-09-22T19:05:54.000Z | Django - backend/TVStore/TVStore_API/url.py | samedb/TV-store | 690b13bfb925b6ac26a4f47e91ea5dc9572e13ec | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path, include
from rest_framework import routers
from .views import *
router = routers.DefaultRouter()
router.register('tv', TVViewSet)
urlpatterns = [
path('', include(router.urls)),
path('me/', UserDetailView.as_view()),
path('ocena/', OcenaView.a... | 27.0625 | 49 | 0.706697 | 53 | 433 | 5.679245 | 0.528302 | 0.079734 | 0.099668 | 0.099668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133949 | 433 | 15 | 50 | 28.866667 | 0.802667 | 0 | 0 | 0 | 0 | 0 | 0.08545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f85f62338a7915e68fb7f9ded47c29861551ee6f | 296 | py | Python | workbench/timer/migrations/0006_delete_timerstate.py | yoshson/workbench | 701558cac3357cd82e4dc99f0fefed12ee81ddc5 | [
"MIT"
] | 15 | 2020-09-02T22:17:34.000Z | 2022-02-01T20:09:10.000Z | workbench/timer/migrations/0006_delete_timerstate.py | yoshson/workbench | 701558cac3357cd82e4dc99f0fefed12ee81ddc5 | [
"MIT"
] | 18 | 2020-01-08T15:28:26.000Z | 2022-02-28T02:46:41.000Z | workbench/timer/migrations/0006_delete_timerstate.py | yoshson/workbench | 701558cac3357cd82e4dc99f0fefed12ee81ddc5 | [
"MIT"
] | 8 | 2020-09-29T08:00:24.000Z | 2022-01-16T11:58:19.000Z | # Generated by Django 3.0.5 on 2020-05-04 11:38
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("timer", "0005_timestamp_project"),
]
operations = [
migrations.DeleteModel(
name="TimerState",
),
]
| 17.411765 | 47 | 0.60473 | 31 | 296 | 5.709677 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089623 | 0.283784 | 296 | 16 | 48 | 18.5 | 0.745283 | 0.152027 | 0 | 0 | 1 | 0 | 0.148594 | 0.088353 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f86e0597d34cb61efa947f138b72d16db85ed79e | 6,483 | py | Python | chrome/test_createitemtypemapping.py | RCOSDP/weko3-selenium | 5e9d72a230f964e297a5d442a71173f1b4de10e2 | [
"MIT"
] | null | null | null | chrome/test_createitemtypemapping.py | RCOSDP/weko3-selenium | 5e9d72a230f964e297a5d442a71173f1b4de10e2 | [
"MIT"
] | null | null | null | chrome/test_createitemtypemapping.py | RCOSDP/weko3-selenium | 5e9d72a230f964e297a5d442a71173f1b4de10e2 | [
"MIT"
] | null | null | null | # Generated by Selenium IDE
import pytest
import time
import json
import os
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.wait import W... | 60.588785 | 119 | 0.694586 | 870 | 6,483 | 4.982759 | 0.181609 | 0.096424 | 0.113956 | 0.155017 | 0.663206 | 0.65098 | 0.623529 | 0.56286 | 0.471972 | 0.365859 | 0 | 0.051768 | 0.153787 | 6,483 | 106 | 120 | 61.160377 | 0.738425 | 0.320222 | 0 | 0.031746 | 1 | 0 | 0.256664 | 0.046415 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.031746 | 0.174603 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f883ac6e48a6fde6a2d6e01050634fb01d4d27d8 | 910 | py | Python | RPESystem/users/urls.py | YanTszyafen/RPESystem | 8ddf8eb5d7a159c0146cc5a7215ff4b8e91ae62d | [
"MIT"
] | null | null | null | RPESystem/users/urls.py | YanTszyafen/RPESystem | 8ddf8eb5d7a159c0146cc5a7215ff4b8e91ae62d | [
"MIT"
] | null | null | null | RPESystem/users/urls.py | YanTszyafen/RPESystem | 8ddf8eb5d7a159c0146cc5a7215ff4b8e91ae62d | [
"MIT"
] | null | null | null | #Perform view routing of users sub-applications
from django.urls import path
from users.views import RegisterView, ImageCodeView, LoginView, LogoutView, ForgetPasswordView, UserCenterView, WriteAdView
#, ImageCodeView, LoginView, LogoutView, ForgetPasswordView, UserCenterView
# , WriteBlogView
urlpatterns = [
... | 37.916667 | 123 | 0.724176 | 97 | 910 | 6.721649 | 0.402062 | 0.064417 | 0.107362 | 0.153374 | 0.196319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138462 | 910 | 24 | 124 | 37.916667 | 0.831633 | 0.275824 | 0 | 0 | 0 | 0 | 0.179173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.181818 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f88596da11cdafe8518a4a7b1262522dcc2a7dd8 | 1,137 | py | Python | tests/test_data.py | hmoldenhauer/spectrum_analysis | 4b112837515b867a2a88adbf90b9a1d04e63d697 | [
"MIT"
] | 1 | 2022-01-04T14:36:48.000Z | 2022-01-04T14:36:48.000Z | tests/test_data.py | hmoldenhauer/spectrum_analysis | 4b112837515b867a2a88adbf90b9a1d04e63d697 | [
"MIT"
] | 32 | 2018-07-23T12:06:34.000Z | 2021-04-11T15:25:25.000Z | tests/test_data.py | hmoldenhauer/spectrum_analysis | 4b112837515b867a2a88adbf90b9a1d04e63d697 | [
"MIT"
] | 2 | 2019-08-02T10:04:48.000Z | 2020-12-17T11:59:23.000Z | """Test data module."""
import pytest
import numpy as np
from spectrum_analysis.data import GetData
@pytest.fixture(name='empty_file')
def EFile():
"""Return an empty file for testing."""
return ''
@pytest.fixture(name='raman_file')
def RFile():
"""Return a raman data file for testing."""
return 'ex... | 25.266667 | 59 | 0.700088 | 152 | 1,137 | 5.118421 | 0.315789 | 0.046272 | 0.065553 | 0.077121 | 0.172237 | 0.172237 | 0.102828 | 0 | 0 | 0 | 0 | 0.02439 | 0.170624 | 1,137 | 44 | 60 | 25.840909 | 0.800636 | 0.206684 | 0 | 0 | 0 | 0 | 0.106236 | 0.06582 | 0 | 0 | 0 | 0 | 0.24 | 1 | 0.24 | false | 0 | 0.12 | 0 | 0.48 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f88a4e3d0bf0fd3b79ba62db291945c18043ac07 | 641 | py | Python | setup.py | linxsorg/docushare | b1955246cb4791ff367cac37d445fc9afbbc4d59 | [
"ZPL-2.1"
] | null | null | null | setup.py | linxsorg/docushare | b1955246cb4791ff367cac37d445fc9afbbc4d59 | [
"ZPL-2.1"
] | null | null | null | setup.py | linxsorg/docushare | b1955246cb4791ff367cac37d445fc9afbbc4d59 | [
"ZPL-2.1"
] | null | null | null | #!/usr/bin/env python2.7
# vim: fileencoding=utf-8
from distutils.core import setup
from docushare.__init__ import \
__author__, __copyright__, __license__, __version__, __email__
setup(
name="docushare",
version=__version__,
author=__author__,
author_email=__email__,
url="http://launchp... | 26.708333 | 95 | 0.691108 | 68 | 641 | 5.882353 | 0.647059 | 0.06 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009399 | 0.170047 | 641 | 23 | 96 | 27.869565 | 0.742481 | 0.073323 | 0 | 0 | 0 | 0 | 0.293919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.117647 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f893287825c763dd83e6faf710399940c08e9014 | 302 | py | Python | ui_class_controls/main.py | Jackson-Cong/191214 | 4bfb1b5fe49e0f7b2d72f64ba35c052608852c02 | [
"CC0-1.0"
] | null | null | null | ui_class_controls/main.py | Jackson-Cong/191214 | 4bfb1b5fe49e0f7b2d72f64ba35c052608852c02 | [
"CC0-1.0"
] | null | null | null | ui_class_controls/main.py | Jackson-Cong/191214 | 4bfb1b5fe49e0f7b2d72f64ba35c052608852c02 | [
"CC0-1.0"
] | null | null | null | # -*- coding: UTF-8 -*-
import tkinter as tk
from tkinter import ttk
import tkinter.messagebox
from gui_class_login import UC_Login
from gui_class_show import UC_Show
root = tk.Tk()
form_login = UC_Login(root)
root.mainloop()
root.destroy()
root = tk.Tk()
form_show = UC_Show(root)
root.mainloop()
| 16.777778 | 36 | 0.751656 | 50 | 302 | 4.34 | 0.38 | 0.119816 | 0.110599 | 0.110599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003846 | 0.139073 | 302 | 17 | 37 | 17.764706 | 0.830769 | 0.069536 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f8a01b10e6de5d8f1df7883906a0600e811d9fe8 | 1,347 | pyde | Python | Test01/Session04/Planned Code/session04.pyde | KimSvenssonNRCF/Workshop | ad8cd549140b0299944ceec6cb5b9176be9b81da | [
"Unlicense"
] | null | null | null | Test01/Session04/Planned Code/session04.pyde | KimSvenssonNRCF/Workshop | ad8cd549140b0299944ceec6cb5b9176be9b81da | [
"Unlicense"
] | null | null | null | Test01/Session04/Planned Code/session04.pyde | KimSvenssonNRCF/Workshop | ad8cd549140b0299944ceec6cb5b9176be9b81da | [
"Unlicense"
] | null | null | null | from particle import Particle
particles = []
dt = 0.03
def setup():
size(400,400)
global s , row, col
s = 10.0
col = floor(width/s)
row = floor(height/s)
r = 5.0
for x in range(col):
for y in range(row):
p = Particle(r + x*s,r+ y*s... | 20.723077 | 54 | 0.367483 | 164 | 1,347 | 3.018293 | 0.25 | 0.113131 | 0.048485 | 0.088889 | 0.420202 | 0.420202 | 0.30303 | 0.30303 | 0.30303 | 0.30303 | 0 | 0.057453 | 0.521901 | 1,347 | 65 | 55 | 20.723077 | 0.71118 | 0 | 0 | 0.282051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.025641 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f8a3f34123469bda695d1052dd4e604564d569cd | 435 | py | Python | CursoEmVideo/Python/Mundo 1/ex011.py | GabriellyBailon/Cursos | 0fe82881638a48dabbfd5963db39d2a0b7d7e4c3 | [
"MIT"
] | null | null | null | CursoEmVideo/Python/Mundo 1/ex011.py | GabriellyBailon/Cursos | 0fe82881638a48dabbfd5963db39d2a0b7d7e4c3 | [
"MIT"
] | null | null | null | CursoEmVideo/Python/Mundo 1/ex011.py | GabriellyBailon/Cursos | 0fe82881638a48dabbfd5963db39d2a0b7d7e4c3 | [
"MIT"
] | null | null | null | #Receber altura e largura de uma parede, mostrar sua área e dizer quantos litros de tinta serão necessários para pintar
altura = float(input("Digite a altura: "));
largura = float(input("Digite a largura: "));
area = (altura * largura);
tinta= (area/2);
print(f"A área de {altura} x {largura} calculada foi igual a ... | 54.375 | 120 | 0.721839 | 66 | 435 | 4.757576 | 0.545455 | 0.044586 | 0.101911 | 0.10828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005464 | 0.158621 | 435 | 7 | 121 | 62.142857 | 0.852459 | 0.271264 | 0 | 0 | 0 | 0 | 0.598706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f8a9eac2d6ea9d32cebea53e0155f6f69ab052bb | 1,405 | py | Python | bot/user/handlers.py | Bloodielie/trip_counter | 9eacd0739dfb6f234b5d6609a297570c2efbca14 | [
"MIT"
] | null | null | null | bot/user/handlers.py | Bloodielie/trip_counter | 9eacd0739dfb6f234b5d6609a297570c2efbca14 | [
"MIT"
] | null | null | null | bot/user/handlers.py | Bloodielie/trip_counter | 9eacd0739dfb6f234b5d6609a297570c2efbca14 | [
"MIT"
] | null | null | null | from typing import Optional
from uuid import uuid4
from aiogram import types, Bot
from aiogram.dispatcher import FSMContext
from sqlalchemy.exc import IntegrityError
from sqlalchemy.orm import sessionmaker
from bot.menu.keyboards import menu_keyboard
from bot.menu.states import States
from bot.user.models import User... | 35.125 | 107 | 0.763701 | 192 | 1,405 | 5.427083 | 0.333333 | 0.040307 | 0.042226 | 0.03263 | 0.042226 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001691 | 0.158007 | 1,405 | 39 | 108 | 36.025641 | 0.879121 | 0 | 0 | 0 | 0 | 0 | 0.02847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.387097 | 0 | 0.387097 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f8abcf5f81d6ce09e29eb0d74f7f25dcdf940ba5 | 326 | py | Python | t406.py | showerhhh/leetcode_python | ea26e756dd10befbc22d99c258acd8198b215630 | [
"MIT"
] | null | null | null | t406.py | showerhhh/leetcode_python | ea26e756dd10befbc22d99c258acd8198b215630 | [
"MIT"
] | null | null | null | t406.py | showerhhh/leetcode_python | ea26e756dd10befbc22d99c258acd8198b215630 | [
"MIT"
] | null | null | null | class Solution:
def reconstructQueue(self, people: list) -> list:
if not people:
return []
def func(x):
return -x[0], x[1]
people.sort(key=func)
new_people = [people[0]]
for i in people[1:]:
new_people.insert(i[1], i)
return new_p... | 23.285714 | 53 | 0.51227 | 42 | 326 | 3.904762 | 0.5 | 0.164634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024272 | 0.368098 | 326 | 13 | 54 | 25.076923 | 0.771845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f8ae1ccba2574122c5c6b5d361cf8def5606ab33 | 1,564 | py | Python | chpt9/Running_fan.py | GDG-Buea/learn-python | 9dfe8caa4b57489cf4249bf7e64856062a0b93c2 | [
"Apache-2.0"
] | null | null | null | chpt9/Running_fan.py | GDG-Buea/learn-python | 9dfe8caa4b57489cf4249bf7e64856062a0b93c2 | [
"Apache-2.0"
] | 2 | 2018-05-21T09:39:00.000Z | 2018-05-27T15:59:15.000Z | chpt9/Running_fan.py | GDG-Buea/learn-python | 9dfe8caa4b57489cf4249bf7e64856062a0b93c2 | [
"Apache-2.0"
] | 2 | 2018-05-19T14:59:56.000Z | 2018-05-19T15:25:48.000Z | # This program displays a fan running
from tkinter import * # Import tkinter
width = 200
height = 200
radius = 80
class Fan:
def __init__(self):
window = Tk() # Create a window
window.title("Fan") # Set a title
self.canvas = Canvas(window, bg="white", width=width, height=height)
... | 35.545455 | 112 | 0.578005 | 188 | 1,564 | 4.765957 | 0.308511 | 0.125 | 0.107143 | 0.160714 | 0.515625 | 0.433036 | 0.433036 | 0.433036 | 0.433036 | 0.433036 | 0 | 0.044913 | 0.30243 | 1,564 | 43 | 113 | 36.372093 | 0.776352 | 0.081202 | 0 | 0.142857 | 0 | 0 | 0.028671 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.035714 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.