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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d7846b5afd102ae2552bccbf3ba7e621a2ae18af | 444 | py | Python | raiden/utils/copy.py | luehrsFred/raiden | a1b118ebe14badb1acd0744b2d7f2b39f8ba5313 | [
"MIT"
] | null | null | null | raiden/utils/copy.py | luehrsFred/raiden | a1b118ebe14badb1acd0744b2d7f2b39f8ba5313 | [
"MIT"
] | 69 | 2020-07-21T05:49:21.000Z | 2022-03-08T18:09:44.000Z | raiden/utils/copy.py | luehrsFred/raiden | a1b118ebe14badb1acd0744b2d7f2b39f8ba5313 | [
"MIT"
] | null | null | null | import pickle
from typing import TypeVar
T = TypeVar("T")
def deepcopy(data: T) -> T:
""" Profiling `deepcopy.deepcopy` show that this function is very slow for
largish objects (around 1MB of data). Since most of our objects don't use
nested classes, this can be circumvented by using pickle to serialize ... | 31.714286 | 78 | 0.725225 | 67 | 444 | 4.791045 | 0.716418 | 0.049844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002809 | 0.198198 | 444 | 13 | 79 | 34.153846 | 0.898876 | 0.578829 | 0 | 0 | 0 | 0 | 0.006135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 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 |
d7871ecf00f9a2939289c5dd7ca677a2c2e82b01 | 877 | py | Python | ras_app/controller/controller.py | giulio-garbi/fitMS-scripts | 8a3a7000e0ee3512436c222c00f28efc3a017ab1 | [
"MIT"
] | 1 | 2021-11-19T16:36:47.000Z | 2021-11-19T16:36:47.000Z | ras_app/controller/controller.py | giulio-garbi/fitMS-scripts | 8a3a7000e0ee3512436c222c00f28efc3a017ab1 | [
"MIT"
] | null | null | null | ras_app/controller/controller.py | giulio-garbi/fitMS-scripts | 8a3a7000e0ee3512436c222c00f28efc3a017ab1 | [
"MIT"
] | 1 | 2022-03-14T17:01:41.000Z | 2022-03-14T17:01:41.000Z | class Controller:
def __init__(self, period, init_cores, st=0.8):
self.period = period
self.init_cores = init_cores
self.st = st
self.name = type(self).__name__
def setName(self, name):
self.name = name
def setSLA(self, sla):
self.sla = sla
self.setp... | 23.078947 | 93 | 0.573546 | 112 | 877 | 4.330357 | 0.294643 | 0.11134 | 0.080412 | 0.078351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005017 | 0.31813 | 877 | 37 | 94 | 23.702703 | 0.80602 | 0 | 0 | 0 | 0 | 0 | 0.036488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.037037 | 0 | 0.037037 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d78bd7402885d7a8dd41fb1468fd8c53ef4fa824 | 7,312 | py | Python | references/legacy/stiff_py2.py | jacobic/redpipes | 8da07f79e5f93441fdf12e3346722cc56d021525 | [
"MIT"
] | null | null | null | references/legacy/stiff_py2.py | jacobic/redpipes | 8da07f79e5f93441fdf12e3346722cc56d021525 | [
"MIT"
] | null | null | null | references/legacy/stiff_py2.py | jacobic/redpipes | 8da07f79e5f93441fdf12e3346722cc56d021525 | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------
import PIL
from PIL import Image
from PIL import ImageDraw
from PIL import ImageFont
import subprocess
import os
import shutil
import string
import glob
import sys
import fitsio
import pyfits
import astropy
from astropy import units as astunits
from... | 35.495146 | 88 | 0.493299 | 904 | 7,312 | 3.954646 | 0.243363 | 0.01007 | 0.026853 | 0.025455 | 0.254545 | 0.236923 | 0.189371 | 0.186573 | 0.16028 | 0.125874 | 0 | 0.036987 | 0.290071 | 7,312 | 206 | 89 | 35.495146 | 0.651705 | 0.127325 | 0 | 0.154321 | 0 | 0 | 0.109346 | 0.006765 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.123457 | null | null | 0.074074 | 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 |
d78deaecd0985ee900287f03becb818b5422a33b | 1,264 | py | Python | integration_tests/samples/issues/issue_868.py | timgates42/python-slack-sdk | 6339fbe81031c9aec3f95927ac03706fd31f3544 | [
"MIT"
] | null | null | null | integration_tests/samples/issues/issue_868.py | timgates42/python-slack-sdk | 6339fbe81031c9aec3f95927ac03706fd31f3544 | [
"MIT"
] | null | null | null | integration_tests/samples/issues/issue_868.py | timgates42/python-slack-sdk | 6339fbe81031c9aec3f95927ac03706fd31f3544 | [
"MIT"
] | null | null | null | # ------------------
# Only for running this script here
import logging
import sys
from os.path import dirname
sys.path.insert(1, f"{dirname(__file__)}/../..")
logging.basicConfig(level=logging.DEBUG)
# ------------------
def legacy():
from slack.web.classes.blocks import SectionBlock
from slack.web.classes.... | 35.111111 | 202 | 0.72943 | 165 | 1,264 | 5.49697 | 0.49697 | 0.088203 | 0.101433 | 0.127894 | 0.418964 | 0.418964 | 0.418964 | 0.375965 | 0.330761 | 0.231533 | 0 | 0.016964 | 0.113924 | 1,264 | 36 | 203 | 35.111111 | 0.792857 | 0.492089 | 0 | 0.470588 | 0 | 0 | 0.068146 | 0.03962 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.411765 | 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 |
d78e572c29f969775915823f50ec1f29c62d9747 | 20,406 | py | Python | melodic/lib/python2.7/dist-packages/mavros_msgs/msg/_OnboardComputerStatus.py | Dieptranivsr/Ros_Diep | d790e75e6f5da916701b11a2fdf3e03b6a47086b | [
"MIT"
] | 10 | 2021-03-15T03:58:06.000Z | 2021-12-30T15:33:38.000Z | devel/.private/mavros_msgs/lib/python2.7/dist-packages/mavros_msgs/msg/_OnboardComputerStatus.py | arijitnoobstar/UAVProjectileCatcher | 3c1bed80df167192cb4b971b58c891187628142e | [
"Apache-2.0"
] | 1 | 2021-09-09T15:29:31.000Z | 2021-09-09T15:29:31.000Z | melodic/lib/python2.7/dist-packages/mavros_msgs/msg/_OnboardComputerStatus.py | Dieptranivsr/Ros_Diep | d790e75e6f5da916701b11a2fdf3e03b6a47086b | [
"MIT"
] | 4 | 2021-03-06T09:35:58.000Z | 2021-05-24T14:34:11.000Z | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from mavros_msgs/OnboardComputerStatus.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import std_msgs.msg
class OnboardComputerStatus(genpy.Message):
_md... | 39.855469 | 298 | 0.651916 | 3,056 | 20,406 | 4.112238 | 0.103076 | 0.0522 | 0.036763 | 0.048699 | 0.679558 | 0.630461 | 0.582796 | 0.571178 | 0.545397 | 0.523196 | 0 | 0.033367 | 0.230422 | 20,406 | 511 | 299 | 39.933464 | 0.766875 | 0.099726 | 0 | 0.543046 | 1 | 0.041943 | 0.230351 | 0.009117 | 0 | 0 | 0.000549 | 0 | 0 | 1 | 0.046358 | false | 0 | 0.011038 | 0 | 0.112583 | 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 |
ad0635eae5251dbfa7a2d08d4d372ff58e06bfac | 3,217 | py | Python | main_proxy.py | milos85vasic/Apache-Factory-Toolkit | c68727f899c8d1ac6debf6d5d18d2b0814d403b7 | [
"Apache-2.0"
] | 2 | 2019-06-04T19:12:57.000Z | 2019-12-13T08:51:39.000Z | main_proxy.py | milos85vasic/Apache-Factory-Toolkit | c68727f899c8d1ac6debf6d5d18d2b0814d403b7 | [
"Apache-2.0"
] | null | null | null | main_proxy.py | milos85vasic/Apache-Factory-Toolkit | c68727f899c8d1ac6debf6d5d18d2b0814d403b7 | [
"Apache-2.0"
] | null | null | null | import json
import getpass
import sys
from commands import *
from configuration import *
from system_configuration import *
account = getpass.getuser()
if sys.argv.__len__() >= 2:
account = sys.argv[1]
print("Account passed as parameter: " + account)
system_configuration = get_system_configuration()
schedu... | 44.068493 | 108 | 0.486167 | 278 | 3,217 | 5.392086 | 0.298561 | 0.104069 | 0.060707 | 0.080053 | 0.221481 | 0.188125 | 0.106738 | 0.052035 | 0.052035 | 0.052035 | 0 | 0.010315 | 0.427417 | 3,217 | 72 | 109 | 44.680556 | 0.803474 | 0 | 0 | 0.163934 | 0 | 0 | 0.100715 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.081967 | 0.098361 | 0 | 0.098361 | 0.081967 | 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 |
ad06e345f9f89a08a966169742de4ee34abb026f | 291 | py | Python | webapp/routes.py | wyld/vassal_online | 6b410dd3a83abf25c1ca97dc3aae4c3ea0a04d34 | [
"BSD-3-Clause"
] | null | null | null | webapp/routes.py | wyld/vassal_online | 6b410dd3a83abf25c1ca97dc3aae4c3ea0a04d34 | [
"BSD-3-Clause"
] | 1 | 2017-12-14T07:00:26.000Z | 2017-12-14T07:00:26.000Z | webapp/routes.py | wyld/vassal_online | 6b410dd3a83abf25c1ca97dc3aae4c3ea0a04d34 | [
"BSD-3-Clause"
] | null | null | null | from api import games, modules
from pages import views
urls = (
('GET', '/', views.HomePage.as_view()),
('GET', '/api/games/', games.GamesList.as_view()),
('GET', '/api/modules/', modules.ModulesList.as_view()),
('POST', '/api/modules/import/', modules.ModulesImport.as_view()),
)
| 24.25 | 70 | 0.649485 | 37 | 291 | 5 | 0.432432 | 0.12973 | 0.097297 | 0.12973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120275 | 291 | 11 | 71 | 26.454545 | 0.722656 | 0 | 0 | 0 | 0 | 0 | 0.199313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ad07c4ef2857e77ed979d3d3869e5ab70b0e57ac | 1,515 | py | Python | setup.py | pasqal-io/cloud-sdk | ff0d040641a5e37c5da92ecf7f3574bed453f163 | [
"Apache-2.0"
] | 1 | 2021-12-20T09:49:14.000Z | 2021-12-20T09:49:14.000Z | setup.py | pasqal-io/cloud-sdk | ff0d040641a5e37c5da92ecf7f3574bed453f163 | [
"Apache-2.0"
] | 5 | 2021-12-28T10:10:00.000Z | 2022-03-04T14:27:55.000Z | setup.py | pasqal-io/cloud-sdk | ff0d040641a5e37c5da92ecf7f3574bed453f163 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Pasqal Cloud Services development team
#
# 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... | 30.918367 | 74 | 0.671287 | 197 | 1,515 | 5.055838 | 0.624365 | 0.060241 | 0.038153 | 0.032129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0.207921 | 1,515 | 48 | 75 | 31.5625 | 0.803333 | 0.382838 | 0 | 0.064516 | 0 | 0 | 0.353261 | 0.029348 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.064516 | 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 |
ad0c340da4835e4d157a15583bb957f0b4cf0bf0 | 2,194 | py | Python | pidcmes_calibration.py | josmet52/amod | 6fa438e3d392ce2e3cc0cb83e3ebd9b7d51b0071 | [
"MIT"
] | null | null | null | pidcmes_calibration.py | josmet52/amod | 6fa438e3d392ce2e3cc0cb83e3ebd9b7d51b0071 | [
"MIT"
] | null | null | null | pidcmes_calibration.py | josmet52/amod | 6fa438e3d392ce2e3cc0cb83e3ebd9b7d51b0071 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
pidcmes_calibration.py
author : jo metra
date : 07.01.2011
version : 1.0.0
maturity : 4 - beta
pidcmes = raspberry PI Direct Current MEaSurement
This program measures the interruption latency time of the Raspberry PI used and save
the values of R1, C1, ref_voltage ... | 37.827586 | 147 | 0.631723 | 294 | 2,194 | 4.602041 | 0.479592 | 0.047302 | 0.038433 | 0.025129 | 0.087214 | 0.067997 | 0 | 0 | 0 | 0 | 0 | 0.027699 | 0.19371 | 2,194 | 57 | 148 | 38.491228 | 0.73714 | 0.369189 | 0 | 0 | 0 | 0 | 0.422711 | 0.082051 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 0.565217 | 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 |
ad0cdebe2c1110825c7fc65e9f31e563fb47c535 | 404 | py | Python | Web dev/Django/Projects/Blogophilic Panda/content/urls.py | prathimacode-hub/WIE-WoC | f412f297a57249af98213bf4a747c897f2d4c035 | [
"MIT"
] | 8 | 2022-03-01T09:09:20.000Z | 2022-03-03T05:36:01.000Z | Web dev/Django/Projects/Blogophilic Panda/content/urls.py | prathimacode-hub/WIE-WoC | f412f297a57249af98213bf4a747c897f2d4c035 | [
"MIT"
] | 52 | 2022-03-02T13:52:46.000Z | 2022-03-04T03:03:17.000Z | Web dev/Django/Projects/Blogophilic Panda/content/urls.py | prathimacode-hub/WIE-WoC | f412f297a57249af98213bf4a747c897f2d4c035 | [
"MIT"
] | 23 | 2022-03-01T06:39:34.000Z | 2022-03-03T09:24:40.000Z | from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name='home'),
path('blog_upload', views.blog_upload, name='uploading_blogs'),
path('blogs/<slug:the_slug>', views.blog_details, name='blog_details'),
path('blog-delete/<slug:the_slug>', views.blog_delete, name='bl... | 36.727273 | 79 | 0.690594 | 57 | 404 | 4.684211 | 0.315789 | 0.134831 | 0.123596 | 0.179775 | 0.224719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128713 | 404 | 10 | 80 | 40.4 | 0.758523 | 0 | 0 | 0 | 0 | 0 | 0.321782 | 0.118812 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 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 |
ad0f65ed32edfb4c544cb7720e3b4cbdc12d0269 | 1,484 | py | Python | 08_expressions/expressions.py | hooj0/jinja2-template-examples | 20481153a964d46e007e807fd2be9a0c42201dd0 | [
"MIT"
] | 5 | 2018-09-27T09:06:06.000Z | 2021-12-18T16:50:40.000Z | 08_expressions/expressions.py | hooj0/jinja2-template-examples | 20481153a964d46e007e807fd2be9a0c42201dd0 | [
"MIT"
] | null | null | null | 08_expressions/expressions.py | hooj0/jinja2-template-examples | 20481153a964d46e007e807fd2be9a0c42201dd0 | [
"MIT"
] | 1 | 2021-09-30T20:52:25.000Z | 2021-09-30T20:52:25.000Z | #!/usr/bin/env python3
# encoding: utf-8
# @author: hoojo
# @email: hoojo_@126.com
# @github: https://github.com/hooj0
# @create date: 2018-09-11
# @copyright by hoojo @2018
# @changelog jinja allows basic expressions everywhere
# ========================================================================... | 35.333333 | 84 | 0.439353 | 114 | 1,484 | 5.614035 | 0.754386 | 0.05625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017405 | 0.148248 | 1,484 | 42 | 85 | 35.333333 | 0.488924 | 0.59097 | 0 | 0 | 0 | 0 | 0.097606 | 0.044199 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.1 | 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 |
ad11e2e5172c7db0497e38b7561551c8ba6e5809 | 480 | py | Python | hackerearth/Algorithms/Question paper/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerearth/Algorithms/Question paper/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerearth/Algorithms/Question paper/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | """
# Sample code to perform I/O:
name = input() # Reading input from STDIN
print('Hi, %s.' % name) # Writing output to STDOUT
# Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
"""
# Write your code here
from math import gcd
t = int(input())
for ... | 24 | 94 | 0.552083 | 78 | 480 | 3.384615 | 0.666667 | 0.022727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.3 | 480 | 19 | 95 | 25.263158 | 0.77381 | 0.554167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ad289515ee668f9d7e7d473d32b2c64da3bbf5fd | 2,862 | py | Python | src/recommendation_pipeline.py | data-day-life/twitch_rec | 614071fe474d589fe610a5fd62eb8ba9fa509143 | [
"MIT"
] | null | null | null | src/recommendation_pipeline.py | data-day-life/twitch_rec | 614071fe474d589fe610a5fd62eb8ba9fa509143 | [
"MIT"
] | null | null | null | src/recommendation_pipeline.py | data-day-life/twitch_rec | 614071fe474d589fe610a5fd62eb8ba9fa509143 | [
"MIT"
] | null | null | null | import asyncio
from twitch_client import TwitchClient
from streamer import StreamerPipe, Streamer
from follower_network import FollowNetPipe, FollowerNetwork
from live_stream_info import LiveStreamPipe, LiveStreams
class RecommendationPipeline:
# TODO: want this to take instantiated objects as params instead of ... | 36.692308 | 120 | 0.696716 | 381 | 2,862 | 4.968504 | 0.312336 | 0.036978 | 0.02113 | 0.044374 | 0.139461 | 0.102483 | 0.069731 | 0.032752 | 0.032752 | 0.032752 | 0 | 0.00617 | 0.207198 | 2,862 | 77 | 121 | 37.168831 | 0.824592 | 0.093291 | 0 | 0 | 0 | 0.039216 | 0.080371 | 0.021252 | 0 | 0 | 0 | 0.012987 | 0 | 1 | 0.019608 | false | 0 | 0.156863 | 0 | 0.196078 | 0.058824 | 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 |
ad2a81fba0310122dfd1e24fe556e609b3e6ced6 | 2,989 | py | Python | opensanctions/crawlers/eu_eeas_sanctions.py | dschulz-pnnl/opensanctions | 3ace885cf88f6aac9c5a773479c77e13a1d96da0 | [
"MIT"
] | 1 | 2020-08-14T12:09:15.000Z | 2020-08-14T12:09:15.000Z | opensanctions/crawlers/eu_eeas_sanctions.py | mtfaye/opensanctions | 7fc204ce0e75869f760b5caae379d7c0878e027c | [
"MIT"
] | null | null | null | opensanctions/crawlers/eu_eeas_sanctions.py | mtfaye/opensanctions | 7fc204ce0e75869f760b5caae379d7c0878e027c | [
"MIT"
] | null | null | null | from pprint import pprint # noqa
from ftmstore.memorious import EntityEmitter
from opensanctions import constants
from opensanctions.util import jointext
GENDERS = {"M": constants.MALE, "F": constants.FEMALE}
def parse_entry(emitter, entry):
reg_date = entry.get("reg_date")
entity = emitter.make("LegalEnti... | 37.835443 | 75 | 0.63466 | 341 | 2,989 | 5.521994 | 0.290323 | 0.076474 | 0.037175 | 0.038237 | 0.088157 | 0.028678 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192707 | 2,989 | 78 | 76 | 38.320513 | 0.780356 | 0.001338 | 0 | 0 | 0 | 0 | 0.195441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030769 | false | 0.107692 | 0.061538 | 0 | 0.092308 | 0.015385 | 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 |
ad2be54e7c2367326d8634a4a3ffb3096ef2105a | 1,099 | py | Python | ace/paraphrase.py | iory/ACEngine | bfe3b49e6aca2c42f34ead237416cf888d1f96f1 | [
"MIT"
] | 5 | 2020-12-08T03:05:19.000Z | 2021-08-31T03:22:28.000Z | ace/paraphrase.py | iory/ACEngine | bfe3b49e6aca2c42f34ead237416cf888d1f96f1 | [
"MIT"
] | null | null | null | ace/paraphrase.py | iory/ACEngine | bfe3b49e6aca2c42f34ead237416cf888d1f96f1 | [
"MIT"
] | 2 | 2021-02-18T14:14:25.000Z | 2021-06-25T16:17:42.000Z | import subprocess
from ace.data import get_ace
from ace.data import get_english_resource_grammar
from ace.data import get_jacy_grammar
def generate_paraphrase(text, grammar='english', verbose=False):
if grammar == 'english' or grammar == 'erg':
grammar = get_english_resource_grammar()
elif grammar ==... | 31.4 | 67 | 0.634213 | 131 | 1,099 | 5.145038 | 0.412214 | 0.083086 | 0.048961 | 0.075668 | 0.089021 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006098 | 0.253867 | 1,099 | 34 | 68 | 32.323529 | 0.815854 | 0 | 0 | 0.064516 | 1 | 0.032258 | 0.079163 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.129032 | 0 | 0.193548 | 0.064516 | 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 |
ad2fd7efd0e5a0c1a5d413425040797f4467211a | 1,065 | py | Python | src/braket/circuits/circuit_diagram.py | shiyunon/amazon-braket-sdk-python | df8b38ddd9f8b976987bd816f7b1b561190ad45b | [
"Apache-2.0"
] | 1 | 2021-07-10T13:59:21.000Z | 2021-07-10T13:59:21.000Z | src/braket/circuits/circuit_diagram.py | shiyunon/amazon-braket-sdk-python | df8b38ddd9f8b976987bd816f7b1b561190ad45b | [
"Apache-2.0"
] | null | null | null | src/braket/circuits/circuit_diagram.py | shiyunon/amazon-braket-sdk-python | df8b38ddd9f8b976987bd816f7b1b561190ad45b | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" fil... | 32.272727 | 78 | 0.690141 | 145 | 1,065 | 5.062069 | 0.572414 | 0.081744 | 0.035422 | 0.043597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014742 | 0.235681 | 1,065 | 32 | 79 | 33.28125 | 0.886978 | 0.765258 | 0 | 0 | 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 |
ad37abed6518bc155ef51667b2b29482a35eea6f | 298 | py | Python | src/user/migrations/0018_delete_emailpreference.py | ResearchHub/ResearchHub-Backend-Open | d36dca33afae2d442690694bb2ab17180d84bcd3 | [
"MIT"
] | 18 | 2021-05-20T13:20:16.000Z | 2022-02-11T02:40:18.000Z | src/user/migrations/0018_delete_emailpreference.py | ResearchHub/ResearchHub-Backend-Open | d36dca33afae2d442690694bb2ab17180d84bcd3 | [
"MIT"
] | 109 | 2021-05-21T20:14:23.000Z | 2022-03-31T20:56:10.000Z | src/user/migrations/0018_delete_emailpreference.py | ResearchHub/ResearchHub-Backend-Open | d36dca33afae2d442690694bb2ab17180d84bcd3 | [
"MIT"
] | 4 | 2021-05-17T13:47:53.000Z | 2022-02-12T10:48:21.000Z | # Generated by Django 2.2.8 on 2019-12-11 22:30
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('user', '0017_emailpreference'),
]
operations = [
migrations.DeleteModel(
name='EmailPreference',
),
]
| 17.529412 | 47 | 0.607383 | 30 | 298 | 6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088785 | 0.281879 | 298 | 16 | 48 | 18.625 | 0.752336 | 0.151007 | 0 | 0 | 1 | 0 | 0.155378 | 0 | 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 |
ad38a0a5a43dc574dcde395a40927dfe64230eb5 | 1,431 | py | Python | src/file_operations.py | bcgov/mssql-csv-import-tool | ef3fe484513e6e60c6ef980c09bcef1df9e6db53 | [
"Apache-2.0"
] | 1 | 2021-06-24T20:59:02.000Z | 2021-06-24T20:59:02.000Z | src/file_operations.py | bcgov/mssql-csv-import-tool | ef3fe484513e6e60c6ef980c09bcef1df9e6db53 | [
"Apache-2.0"
] | 3 | 2021-06-17T16:11:29.000Z | 2021-06-24T20:23:57.000Z | src/file_operations.py | bcgov/mssql-csv-import-tool | ef3fe484513e6e60c6ef980c09bcef1df9e6db53 | [
"Apache-2.0"
] | null | null | null | import logging
import time
import os
def determine_destination_filename(**args) -> tuple:
local_destination = args.get('share_local')
filename = args.get('filename')
filename_array = os.path.split(filename)
destination_filename = local_destination + filename_array[1] + "_clean"
args['destination_f... | 29.8125 | 108 | 0.684836 | 181 | 1,431 | 5.232044 | 0.39779 | 0.200634 | 0.059134 | 0.053854 | 0.046463 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000867 | 0.193571 | 1,431 | 47 | 109 | 30.446809 | 0.819757 | 0.051013 | 0 | 0.125 | 0 | 0 | 0.19133 | 0.058296 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.15625 | 0 | 0.4375 | 0 | 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 |
ad39c3e7a5d211d8eb996f32ad78c57bfb32792f | 43,165 | py | Python | twitterpandas/client.py | rlugojr/twitter-pandas | 82f706f43e8f6484a64be0b3a1a3b489802430db | [
"BSD-3-Clause"
] | 80 | 2016-05-15T17:35:22.000Z | 2022-01-07T20:31:07.000Z | twitterpandas/client.py | rlugojr/twitter-pandas | 82f706f43e8f6484a64be0b3a1a3b489802430db | [
"BSD-3-Clause"
] | 24 | 2016-05-15T17:27:35.000Z | 2016-07-25T23:29:00.000Z | twitterpandas/client.py | rlugojr/twitter-pandas | 82f706f43e8f6484a64be0b3a1a3b489802430db | [
"BSD-3-Clause"
] | 21 | 2016-05-23T20:14:04.000Z | 2020-05-09T16:42:38.000Z | """
.. module::
:platform: Unix, Windows
:synopsis:
.. moduleauthor:: Will McGinnis <will@pedalwrencher.com>
"""
import warnings
import sys
import time
import tweepy
import pandas as pd
__author__ = 'willmcginnis'
NON_BMP_MAP = dict.fromkeys(range(0x10000, sys.maxunicode + 1), 0xfffd)
class TwitterPandas(... | 37.307692 | 256 | 0.566964 | 5,309 | 43,165 | 4.451497 | 0.08721 | 0.042314 | 0.016756 | 0.017137 | 0.730081 | 0.698303 | 0.684721 | 0.677443 | 0.653112 | 0.637541 | 0 | 0.004379 | 0.322808 | 43,165 | 1,156 | 257 | 37.339965 | 0.804112 | 0.360755 | 0 | 0.620493 | 0 | 0 | 0.070558 | 0.024878 | 0 | 0 | 0.000541 | 0.00173 | 0 | 1 | 0.072106 | false | 0 | 0.009488 | 0.005693 | 0.155598 | 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 |
ad403abb80775fed7fba18559b7ccae223cbd087 | 1,080 | py | Python | test/log_likelihood.py | ben-hayes/node-hidden-markov-model-tf | e63112dd784b8862dd2d2efd01a5fa8e20d301ca | [
"Apache-2.0"
] | 31 | 2018-08-21T05:50:08.000Z | 2022-03-04T21:10:45.000Z | test/log_likelihood.py | ben-hayes/node-hidden-markov-model-tf | e63112dd784b8862dd2d2efd01a5fa8e20d301ca | [
"Apache-2.0"
] | 21 | 2018-09-28T09:42:32.000Z | 2022-01-27T17:56:07.000Z | test/log_likelihood.py | ben-hayes/node-hidden-markov-model-tf | e63112dd784b8862dd2d2efd01a5fa8e20d301ca | [
"Apache-2.0"
] | 7 | 2019-02-04T00:14:11.000Z | 2022-01-27T15:56:22.000Z |
import os.path as path
import json
import numpy as np
import tensorflow as tf
from .tool_generate_data import GenerateData
from .hmm import HMM
thisdir = path.dirname(path.realpath(__file__))
generator = GenerateData(num_time=7)
# Make data
states, emissions = generator.data()
# Check reference
hmm = HMM(generator... | 27 | 66 | 0.62963 | 133 | 1,080 | 4.977444 | 0.421053 | 0.072508 | 0.039275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005931 | 0.219444 | 1,080 | 39 | 67 | 27.692308 | 0.779359 | 0.043519 | 0 | 0 | 1 | 0 | 0.054475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
ad43238ab9b67e11b914bc9ba1f467514c958dee | 9,991 | py | Python | matchbox_api_utils/matchbox.py | FNL-MoCha/matchbox_api_utils | 1bab8402dc37a514a281ed4c251e29b8cbad39c9 | [
"MIT"
] | null | null | null | matchbox_api_utils/matchbox.py | FNL-MoCha/matchbox_api_utils | 1bab8402dc37a514a281ed4c251e29b8cbad39c9 | [
"MIT"
] | null | null | null | matchbox_api_utils/matchbox.py | FNL-MoCha/matchbox_api_utils | 1bab8402dc37a514a281ed4c251e29b8cbad39c9 | [
"MIT"
] | 1 | 2019-02-21T17:58:21.000Z | 2019-02-21T17:58:21.000Z | # -*- coding: utf-8 -*-
import os
import sys
import json
import requests
import subprocess
from matchbox_api_utils import utils
class Matchbox(object):
"""
**MATCHBox API Connector Class**
Basic connector class to make a call to the API and load the raw data. Used
for calling to the MATCHBox API, l... | 40.779592 | 198 | 0.564008 | 1,217 | 9,991 | 4.516023 | 0.278554 | 0.026201 | 0.033115 | 0.024199 | 0.085881 | 0.039665 | 0.017103 | 0.017103 | 0 | 0 | 0 | 0.00806 | 0.341808 | 9,991 | 244 | 199 | 40.946721 | 0.827707 | 0.288059 | 0 | 0.124138 | 0 | 0.006897 | 0.229837 | 0.030205 | 0 | 0 | 0 | 0.012295 | 0 | 1 | 0.041379 | false | 0.034483 | 0.041379 | 0.013793 | 0.165517 | 0.006897 | 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 |
ad4c54e4df585bdf2b85179ea11a62ed352033d0 | 1,603 | py | Python | codes/Hydro.py | sgkang/AGU2014MovingDimensionsinEM | 04b562c0c4fab9f97f699ee785735f521af1783c | [
"MIT"
] | 1 | 2021-07-16T04:39:03.000Z | 2021-07-16T04:39:03.000Z | codes/Hydro.py | rowanc1/AGU2014MovingDimensionsinEM | cfe406b677db6b00948f90ac47050b1c1a493ac0 | [
"MIT"
] | null | null | null | codes/Hydro.py | rowanc1/AGU2014MovingDimensionsinEM | cfe406b677db6b00948f90ac47050b1c1a493ac0 | [
"MIT"
] | 1 | 2015-03-29T17:01:33.000Z | 2015-03-29T17:01:33.000Z | from SimPEG import *
import simpegEM as EM
from pymatsolver import MumpsSolver
cs, ncx, ncy, ncz, npad = 20., 30, 20, 30, 12
hx = [(cs,npad,-1.4), (cs,ncx), (cs,npad,1.4)]
hy = [(cs,npad,-1.4), (cs,ncy), (cs,npad,1.4)]
hz = [(cs,npad,-1.4), (cs,ncz), (cs,npad,1.4)]
mesh = Mesh.TensorMesh([hx,hy,hz], 'CCC')
print ("Pad... | 32.06 | 79 | 0.62383 | 285 | 1,603 | 3.491228 | 0.336842 | 0.036181 | 0.042211 | 0.048241 | 0.205025 | 0.106533 | 0.078392 | 0.078392 | 0.078392 | 0.078392 | 0 | 0.100287 | 0.129133 | 1,603 | 49 | 80 | 32.714286 | 0.612464 | 0 | 0 | 0 | 0 | 0 | 0.091703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.119048 | 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 |
ad4de6af8414028b9dbc8d7ea1bd1128514f7053 | 12,216 | py | Python | Beginner/03. Python/buscas-heuristicas.py | ankita080208/Hacktoberfest | 2be849e89285260e7b6672f42979943ad6bbec78 | [
"MIT"
] | 1 | 2021-10-06T13:55:02.000Z | 2021-10-06T13:55:02.000Z | Beginner/03. Python/buscas-heuristicas.py | ankita080208/Hacktoberfest | 2be849e89285260e7b6672f42979943ad6bbec78 | [
"MIT"
] | null | null | null | Beginner/03. Python/buscas-heuristicas.py | ankita080208/Hacktoberfest | 2be849e89285260e7b6672f42979943ad6bbec78 | [
"MIT"
] | null | null | null | #'Importa pacote Numpy e renomeia com NP'
import numpy as np
#'Importa módulo base.funcoes e renomeia para FN'
import base.funcoes as fn
from base.grafo import Aresta
#'De Pillow importar Image, ImageDraw'
from PIL import Image, ImageDraw
#'De queue=fila importar Queue, LifoQueue'
from queue import Queue, LifoQueue, ... | 34.803419 | 135 | 0.563032 | 1,599 | 12,216 | 4.225141 | 0.168856 | 0.0373 | 0.015394 | 0.014506 | 0.693902 | 0.674364 | 0.64624 | 0.639432 | 0.624038 | 0.617525 | 0 | 0.006302 | 0.350524 | 12,216 | 350 | 136 | 34.902857 | 0.845223 | 0.43795 | 0 | 0.668831 | 0 | 0 | 0.032302 | 0.00634 | 0 | 0 | 0 | 0.008571 | 0 | 1 | 0.084416 | false | 0 | 0.045455 | 0 | 0.188312 | 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 |
ad525982c99a3b0bd3452e60f8cf78fd98913d50 | 2,269 | py | Python | attendees/persons/migrations/0008_attending.py | xjlin0/attendees | 3c337ee68c00f17cbbbe26f2e33131e57850e4ed | [
"MIT"
] | 1 | 2020-03-26T00:42:04.000Z | 2020-03-26T00:42:04.000Z | attendees/persons/migrations/0008_attending.py | xjlin0/attendees | 3c337ee68c00f17cbbbe26f2e33131e57850e4ed | [
"MIT"
] | null | null | null | attendees/persons/migrations/0008_attending.py | xjlin0/attendees | 3c337ee68c00f17cbbbe26f2e33131e57850e4ed | [
"MIT"
] | null | null | null | # Generated by Django 3.0.2 on 2020-01-21 05:33
import attendees.persons.models.utility
from django.db import migrations, models
from django.contrib.postgres.fields.jsonb import JSONField
import django.utils.timezone
import model_utils.fields
class Migration(migrations.Migration):
dependencies = [
('per... | 54.02381 | 187 | 0.653592 | 249 | 2,269 | 5.839357 | 0.461847 | 0.024759 | 0.045392 | 0.059835 | 0.189821 | 0.140303 | 0.140303 | 0.140303 | 0.140303 | 0 | 0 | 0.015582 | 0.208021 | 2,269 | 41 | 188 | 55.341463 | 0.793545 | 0.019833 | 0 | 0.057143 | 1 | 0.028571 | 0.188119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.228571 | 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 |
ad550dd2e72a3095a744b10707e082ead98819f4 | 808 | py | Python | docs/_ext/djangodocs.py | Kunpors/dr.pors- | e1b9727c96add31af9c2a1a4b27a058b506748a6 | [
"BSD-3-Clause"
] | 341 | 2015-01-08T00:20:24.000Z | 2022-02-27T06:48:22.000Z | docs/_ext/djangodocs.py | Kunpors/dr.pors- | e1b9727c96add31af9c2a1a4b27a058b506748a6 | [
"BSD-3-Clause"
] | 149 | 2015-01-20T12:36:52.000Z | 2022-03-29T13:20:42.000Z | docs/_ext/djangodocs.py | Kunpors/dr.pors- | e1b9727c96add31af9c2a1a4b27a058b506748a6 | [
"BSD-3-Clause"
] | 87 | 2015-01-08T00:20:27.000Z | 2022-01-01T13:55:08.000Z | # Sphinx helper for Django-specific references
def setup(app):
app.add_crossref_type(
directivename = "label",
rolename = "djterm",
indextemplate = "pair: %s; label",
)
app.add_crossref_type(
directivename = "setting",
rolename = "setting",
indextemplate = "p... | 27.862069 | 54 | 0.587871 | 73 | 808 | 6.369863 | 0.410959 | 0.064516 | 0.150538 | 0.193548 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294554 | 808 | 28 | 55 | 28.857143 | 0.815789 | 0.054455 | 0 | 0.192308 | 0 | 0 | 0.24147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0 | 0 | 0.038462 | 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 |
ad55b655079d302f222b0718c998eb9373d23cb8 | 2,502 | py | Python | backend/apps/permissions/migrations/0003_auto_20210824_1213.py | hovedstyret/indok-web | 598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159 | [
"MIT"
] | 3 | 2021-11-18T09:29:14.000Z | 2022-01-13T20:12:11.000Z | backend/apps/permissions/migrations/0003_auto_20210824_1213.py | rubberdok/indok-web | 598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159 | [
"MIT"
] | 277 | 2022-01-17T18:16:44.000Z | 2022-03-31T19:44:04.000Z | backend/apps/permissions/migrations/0003_auto_20210824_1213.py | hovedstyret/indok-web | 598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.8 on 2021-08-24 10:13
from typing import TYPE_CHECKING, Type
from django.db import migrations
from django.db.models.query_utils import Q
from apps.permissions.constants import PRIMARY_GROUP_NAME, HR_GROUP_NAME
if TYPE_CHECKING:
from apps.organizations import models
from apps.permiss... | 36.794118 | 95 | 0.68785 | 266 | 2,502 | 6.214286 | 0.270677 | 0.193587 | 0.120992 | 0.093769 | 0.456745 | 0.456745 | 0.366606 | 0.31458 | 0.31458 | 0.239564 | 0 | 0.024819 | 0.227018 | 2,502 | 67 | 96 | 37.343284 | 0.829886 | 0.017986 | 0 | 0.36 | 1 | 0 | 0.109572 | 0.041955 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.12 | 0 | 0.22 | 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 |
ad5a0622ccd59434dc3f7d49a48f9168c444ae6b | 255 | py | Python | user/urls.py | ttppren-github/MeetingSample-Backend | 7ed01498d1c825333c496b41450140e2438cd630 | [
"MIT"
] | 7 | 2021-11-11T09:29:20.000Z | 2021-11-15T03:45:22.000Z | user/urls.py | ttppren-github/MeetingSample-Backend | 7ed01498d1c825333c496b41450140e2438cd630 | [
"MIT"
] | null | null | null | user/urls.py | ttppren-github/MeetingSample-Backend | 7ed01498d1c825333c496b41450140e2438cd630 | [
"MIT"
] | 4 | 2021-11-12T03:32:02.000Z | 2021-11-15T03:45:24.000Z | from django.urls import path
from user.views import UserInfoAPI, UpdateInfoAPI, ChangePwdAPI
urlpatterns = [
path('info/', UserInfoAPI.as_view()),
path('change_pwd/', ChangePwdAPI.as_view()),
path('update_info/', UpdateInfoAPI.as_view()),
]
| 25.5 | 63 | 0.721569 | 30 | 255 | 5.966667 | 0.566667 | 0.100559 | 0.111732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 255 | 9 | 64 | 28.333333 | 0.809955 | 0 | 0 | 0 | 0 | 0 | 0.109804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
ad7384d6620b89ddd775a2468b319ffd4679d895 | 1,029 | py | Python | XGBoost_201805/XGBoost_one/cross_validation.py | yishantao/DailyPractice | ee26859af3faf48e63d6c2850db1d895a8a88fb1 | [
"MIT"
] | null | null | null | XGBoost_201805/XGBoost_one/cross_validation.py | yishantao/DailyPractice | ee26859af3faf48e63d6c2850db1d895a8a88fb1 | [
"MIT"
] | null | null | null | XGBoost_201805/XGBoost_one/cross_validation.py | yishantao/DailyPractice | ee26859af3faf48e63d6c2850db1d895a8a88fb1 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
"""This module is used for cross validation"""
from xgboost import XGBClassifier
# 加载LibSVM格式数据模块
from sklearn.datasets import load_svmlight_file
# from sklearn.model_selection import KFold
from sklearn.model_selection import StratifiedKFold
# 对给定参数的单个模型评估
from sklearn.model_selection import cr... | 34.3 | 117 | 0.772595 | 150 | 1,029 | 5.086667 | 0.513333 | 0.057667 | 0.06291 | 0.098296 | 0.273919 | 0.152031 | 0.096986 | 0 | 0 | 0 | 0 | 0.02072 | 0.108844 | 1,029 | 29 | 118 | 35.482759 | 0.811341 | 0.291545 | 0 | 0 | 0 | 0 | 0.119048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0.153846 | 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 |
ad738fd718f09363c3876a521a3948f8d22c340a | 2,042 | py | Python | src/reports_api/resources/staff.py | dinesh-aot/eao-project-reports | f2741d381371fb9a65b6b9f9909161eb333a7b21 | [
"Apache-2.0"
] | null | null | null | src/reports_api/resources/staff.py | dinesh-aot/eao-project-reports | f2741d381371fb9a65b6b9f9909161eb333a7b21 | [
"Apache-2.0"
] | 8 | 2022-02-14T23:21:52.000Z | 2022-03-30T20:04:19.000Z | src/reports_api/resources/staff.py | dinesh-aot/eao-project-reports | f2741d381371fb9a65b6b9f9909161eb333a7b21 | [
"Apache-2.0"
] | 4 | 2022-02-14T23:22:50.000Z | 2022-02-16T17:40:28.000Z | # Copyright © 2019 Province of British Columbia
#
# 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 agr... | 32.412698 | 79 | 0.712537 | 269 | 2,042 | 5.315985 | 0.412639 | 0.062937 | 0.061538 | 0.046154 | 0.327972 | 0.272028 | 0.137063 | 0.137063 | 0.137063 | 0.137063 | 0 | 0.004737 | 0.17287 | 2,042 | 62 | 80 | 32.935484 | 0.841326 | 0.406464 | 0 | 0.285714 | 0 | 0 | 0.080756 | 0.024055 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.178571 | 0 | 0.535714 | 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 |
ad8ae25f6c16d6491f662eab3aebd6fdb4abf2f0 | 1,296 | py | Python | prototype/__main__.py | gate-computer/python-service | a3214b2c4d4282326e7fc683dc7cfc13d01db931 | [
"BSD-3-Clause"
] | null | null | null | prototype/__main__.py | gate-computer/python-service | a3214b2c4d4282326e7fc683dc7cfc13d01db931 | [
"BSD-3-Clause"
] | null | null | null | prototype/__main__.py | gate-computer/python-service | a3214b2c4d4282326e7fc683dc7cfc13d01db931 | [
"BSD-3-Clause"
] | null | null | null | import argparse
import logging
from concurrent import futures
from importlib import import_module
from time import sleep
import grpc
from gate_grpc.api import service_pb2_grpc as api_grpc
from . import InstanceServicer, RootServicer
default_addr = "localhost:12345"
service_instance_types = {}
def main():
parse... | 28.8 | 80 | 0.705247 | 154 | 1,296 | 5.642857 | 0.448052 | 0.024166 | 0.069045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012405 | 0.191358 | 1,296 | 44 | 81 | 29.454545 | 0.816794 | 0 | 0 | 0 | 0 | 0 | 0.096451 | 0.016975 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.30303 | 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 |
ad918f1755a359d144d497ba26342538f4a44c34 | 2,187 | py | Python | tests/test_grouping.py | dxxia/psd-tools | bec892f1bf0f15a0b3a634a27cc309c000d0009b | [
"MIT"
] | 1 | 2018-10-25T07:06:40.000Z | 2018-10-25T07:06:40.000Z | tests/test_grouping.py | dxxia/psd-tools | bec892f1bf0f15a0b3a634a27cc309c000d0009b | [
"MIT"
] | null | null | null | tests/test_grouping.py | dxxia/psd-tools | bec892f1bf0f15a0b3a634a27cc309c000d0009b | [
"MIT"
] | 1 | 2018-10-25T07:06:41.000Z | 2018-10-25T07:06:41.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from psd_tools.user_api.layers import group_layers
from .utils import decode_psd
def test_no_groups():
layers = group_layers(decode_psd('2layers.psd'))
assert len(layers) == 2
assert not any('layers' in layer for layer in lay... | 29.16 | 65 | 0.650663 | 288 | 2,187 | 4.791667 | 0.236111 | 0.087681 | 0.086232 | 0.101449 | 0.163768 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026077 | 0.193416 | 2,187 | 74 | 66 | 29.554054 | 0.756236 | 0.049383 | 0 | 0.075472 | 0 | 0 | 0.17494 | 0 | 0 | 0 | 0 | 0 | 0.528302 | 1 | 0.132075 | false | 0 | 0.056604 | 0 | 0.188679 | 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 |
ad9543f1b659c1fb901789ed1e0d341c04ab1554 | 748 | py | Python | amais/presentation/controllers/user/update_user_controller.py | ONG-AMAIS/clean-api-amais | f14ee5328ea4326c591006a59e65e0e22b02f9e3 | [
"MIT"
] | 1 | 2021-12-31T20:15:26.000Z | 2021-12-31T20:15:26.000Z | amais/presentation/controllers/user/update_user_controller.py | ONG-AMAIS/clean-api-amais | f14ee5328ea4326c591006a59e65e0e22b02f9e3 | [
"MIT"
] | null | null | null | amais/presentation/controllers/user/update_user_controller.py | ONG-AMAIS/clean-api-amais | f14ee5328ea4326c591006a59e65e0e22b02f9e3 | [
"MIT"
] | 2 | 2021-12-31T20:00:13.000Z | 2021-12-31T20:12:50.000Z | from flask_restful import Resource
from amais.presentation.helpers.http_helper import not_found, ok
from flask_restful import Resource, reqparse
from amais.data.usecases.user.update_user import UpdateUser
class UpdateUserController(Resource):
@classmethod
def put(self, user_id: int):
parser = reqpars... | 31.166667 | 72 | 0.69385 | 88 | 748 | 5.772727 | 0.545455 | 0.035433 | 0.062992 | 0.086614 | 0.11811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201872 | 748 | 23 | 73 | 32.521739 | 0.850921 | 0 | 0 | 0 | 0 | 0 | 0.106952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.125 | 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 |
ad99f6b7d38a9a2bdbccced9de932b76378b5682 | 1,199 | py | Python | worker/async_tasks/celery_tasks.py | Lyle-Wong/Python_NetEaseMusicAPI | 6071453e0293e06d7dc2d059bf9e2a71a1b6b018 | [
"MIT"
] | null | null | null | worker/async_tasks/celery_tasks.py | Lyle-Wong/Python_NetEaseMusicAPI | 6071453e0293e06d7dc2d059bf9e2a71a1b6b018 | [
"MIT"
] | null | null | null | worker/async_tasks/celery_tasks.py | Lyle-Wong/Python_NetEaseMusicAPI | 6071453e0293e06d7dc2d059bf9e2a71a1b6b018 | [
"MIT"
] | null | null | null | import json
import logging
import os
import requests
from requests.models import HTTPError
from .celery import celery_app
@celery_app.task
def signin():
nginx_host = os.environ.get('NGINX')
logging.info('nginx host:' + nginx_host)
base_url = f'http://{nginx_host}/api/'
resp = requests.get(base_url ... | 35.264706 | 93 | 0.688073 | 170 | 1,199 | 4.717647 | 0.276471 | 0.069825 | 0.130923 | 0.157107 | 0.441397 | 0.386534 | 0.386534 | 0.386534 | 0.326683 | 0.127182 | 0 | 0.009027 | 0.168474 | 1,199 | 33 | 94 | 36.333333 | 0.795386 | 0 | 0 | 0.214286 | 0 | 0 | 0.193495 | 0.036697 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0.071429 | 0.214286 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ad9a24ff2d088ff761f89595c0fea33c6cbc4656 | 1,735 | py | Python | test/auto_title_test.py | DA-southampton/bert_seq2seq | 808090e31bac11fcc0041c9f099302f33ce4fe57 | [
"Apache-2.0"
] | 1 | 2020-12-06T12:34:37.000Z | 2020-12-06T12:34:37.000Z | test/auto_title_test.py | DA-southampton/bert_seq2seq | 808090e31bac11fcc0041c9f099302f33ce4fe57 | [
"Apache-2.0"
] | null | null | null | test/auto_title_test.py | DA-southampton/bert_seq2seq | 808090e31bac11fcc0041c9f099302f33ce4fe57 | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
import sys
sys.path.append("/Users/xingzhaohu/Downloads/code/python/ml/ml_code/bert/bert_seq2seq")
from torch.optim import Adam
import pandas as pd
import numpy as np
import os
import json
import time
import bert_seq2seq
from bert_seq2seq.tokenizer import Tokenizer, load_chinese_bas... | 43.375 | 123 | 0.772911 | 192 | 1,735 | 6.692708 | 0.484375 | 0.034241 | 0.032685 | 0.031128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.140634 | 1,735 | 39 | 124 | 44.487179 | 0.832327 | 0.340634 | 0 | 0 | 0 | 0 | 0.230838 | 0.21123 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.48 | 0 | 0.48 | 0.04 | 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 |
ad9e8e5455b2cdabd3bc6a5691f5a6bbaa84f639 | 6,282 | py | Python | SignUp.py | ycdxsb/LibraryManageDesktopApp | aaa932303526c7bcca94b19704501fd73d93a001 | [
"BSD-2-Clause"
] | 74 | 2018-07-03T05:10:23.000Z | 2021-12-11T13:46:47.000Z | SignUp.py | ycdxsb/LibraryManageDesktopApp | aaa932303526c7bcca94b19704501fd73d93a001 | [
"BSD-2-Clause"
] | 2 | 2019-02-17T03:32:26.000Z | 2019-11-12T06:44:03.000Z | SignUp.py | ycdxsb/LibraryManageDesktopApp | aaa932303526c7bcca94b19704501fd73d93a001 | [
"BSD-2-Clause"
] | 44 | 2018-04-28T11:02:57.000Z | 2021-06-15T12:02:10.000Z | import sys
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
import qdarkstyle
from PyQt5.QtSql import *
import hashlib
class SignUpWidget(QWidget):
student_signup_signal = pyqtSignal(str)
def __init__(self):
super().__init__()
self.setUpUI()
def setUpUI(... | 40.269231 | 109 | 0.643585 | 565 | 6,282 | 7.109735 | 0.329204 | 0.049788 | 0.022405 | 0.029873 | 0.131939 | 0.068957 | 0.021409 | 0 | 0 | 0 | 0 | 0.018263 | 0.250398 | 6,282 | 155 | 110 | 40.529032 | 0.834784 | 0.01958 | 0 | 0.076336 | 0 | 0 | 0.046031 | 0.011711 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022901 | false | 0.229008 | 0.053435 | 0 | 0.122137 | 0.030534 | 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 |
a8debd0f32f6cc1faa6f234737936c053877de67 | 1,325 | py | Python | concourse/scripts/validate_pipeline_release_jobs.py | zhangh43/gpdb | 3e2d569b3d5faacdb5813f5a1d4f967607553498 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | concourse/scripts/validate_pipeline_release_jobs.py | zhangh43/gpdb | 3e2d569b3d5faacdb5813f5a1d4f967607553498 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | concourse/scripts/validate_pipeline_release_jobs.py | zhangh43/gpdb | 3e2d569b3d5faacdb5813f5a1d4f967607553498 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import os
import re
import yaml
RELEASE_VALIDATOR_JOB = ['Release_Candidate']
PXF_JOBS = ['compile_gpdb_pxf_centos6','icw_planner_pxf_centos6','icw_gporca_pxf_centos6','regression_tests_pxf_centos']
JOBS_THAT_SHOULD_NOT_BLOCK_RELEASE = ['compile_gpdb_binary_swap_centos6'] + RELEASE_VALIDATOR_JOB... | 41.40625 | 123 | 0.790189 | 205 | 1,325 | 4.697561 | 0.370732 | 0.083074 | 0.033229 | 0.05296 | 0.196262 | 0.150571 | 0 | 0 | 0 | 0 | 0 | 0.006814 | 0.113962 | 1,325 | 31 | 124 | 42.741935 | 0.813458 | 0.049057 | 0 | 0 | 0 | 0 | 0.284579 | 0.128776 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.045455 | 0.136364 | null | null | 0.181818 | 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 |
a8e0f1e7795075c9a3eeb681e6aeb8d1eb8a8be4 | 4,670 | py | Python | apps/customer/models.py | kngeno/telelbirds | 924bb2f1c397bbab2bd626d582c8e86704d86176 | [
"MIT"
] | 2 | 2021-01-05T06:16:32.000Z | 2021-09-09T10:42:53.000Z | apps/customer/models.py | kngeno/telelbirds | 924bb2f1c397bbab2bd626d582c8e86704d86176 | [
"MIT"
] | null | null | null | apps/customer/models.py | kngeno/telelbirds | 924bb2f1c397bbab2bd626d582c8e86704d86176 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#########################################################################
#
# Copyright (C) 2020: TelelBirds
#
#
#########################################################################
from __future__ import unicode_literals
import os
import datetime
from django.core.validators import MaxValu... | 36.771654 | 153 | 0.684582 | 556 | 4,670 | 5.595324 | 0.241007 | 0.064288 | 0.091932 | 0.114754 | 0.553198 | 0.553198 | 0.503697 | 0.42623 | 0.389907 | 0.261974 | 0 | 0.013195 | 0.172377 | 4,670 | 127 | 154 | 36.771654 | 0.791721 | 0.026767 | 0 | 0.293478 | 0 | 0 | 0.057038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076087 | false | 0 | 0.141304 | 0.054348 | 0.673913 | 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 |
a8f61abc4bee19c02d0e1be397771c71bf0a9eb2 | 490 | py | Python | pyteleport/tests/_test_teleport_generator.py | pulkin/pyteleport | d0291486b82a6f21f9886f920428ccc9b0f36da4 | [
"BSD-2-Clause"
] | 9 | 2021-06-21T09:17:42.000Z | 2022-01-28T10:34:36.000Z | pyteleport/tests/_test_teleport_generator.py | pulkin/pyteleport | d0291486b82a6f21f9886f920428ccc9b0f36da4 | [
"BSD-2-Clause"
] | null | null | null | pyteleport/tests/_test_teleport_generator.py | pulkin/pyteleport | d0291486b82a6f21f9886f920428ccc9b0f36da4 | [
"BSD-2-Clause"
] | 1 | 2021-09-25T02:03:41.000Z | 2021-09-25T02:03:41.000Z | """
[True] vstack []
[True] bstack []
[True] hello 0
[False] vstack []
[False] bstack []
[False] world 1
"""
from pyteleport import tp_dummy
from pyteleport.tests.helpers import setup_verbose_logging, print_, get_tp_args, print_stack_here
setup_verbose_logging()
def generator_fn():
print_stack_here(print_)
... | 18.148148 | 97 | 0.728571 | 68 | 490 | 4.911765 | 0.411765 | 0.08982 | 0.125749 | 0.083832 | 0.143713 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009524 | 0.142857 | 490 | 26 | 98 | 18.846154 | 0.785714 | 0.204082 | 0 | 0.166667 | 0 | 0 | 0.026178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.25 | 0.416667 | 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 |
a8f69f72a739806dafe8a8d215d7230e51c7bee0 | 309 | py | Python | tests/samples/threads.py | spamegg1/snoop | 2d169d003de4382717f45592f5799983c26a8573 | [
"MIT"
] | 751 | 2019-07-03T13:40:38.000Z | 2022-03-30T02:28:00.000Z | tests/samples/threads.py | spamegg1/snoop | 2d169d003de4382717f45592f5799983c26a8573 | [
"MIT"
] | 42 | 2019-07-04T19:30:36.000Z | 2022-03-26T09:19:19.000Z | tests/samples/threads.py | spamegg1/snoop | 2d169d003de4382717f45592f5799983c26a8573 | [
"MIT"
] | 30 | 2019-07-14T15:55:27.000Z | 2022-03-19T16:38:12.000Z | from threading import Thread
from snoop.configuration import Config
snoop = Config(columns='thread').snoop
@snoop
def foo():
return 1
def run(name):
thread = Thread(target=foo, name=name)
thread.start()
thread.join()
def main():
run('short')
run('longername')
run('short')
| 13.434783 | 42 | 0.653722 | 40 | 309 | 5.05 | 0.5 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004098 | 0.210356 | 309 | 22 | 43 | 14.045455 | 0.82377 | 0 | 0 | 0.142857 | 0 | 0 | 0.084142 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.071429 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a8f7384f6330ff4a2c50ea081951204ef93f00f0 | 3,517 | py | Python | home/models.py | idokk1/shlifim | f05fd205c1173a2e838b935712e3279e81e2cdf4 | [
"MIT"
] | null | null | null | home/models.py | idokk1/shlifim | f05fd205c1173a2e838b935712e3279e81e2cdf4 | [
"MIT"
] | null | null | null | home/models.py | idokk1/shlifim | f05fd205c1173a2e838b935712e3279e81e2cdf4 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.db import models
from django.utils import timezone
class Gender(models.TextChoices):
MALE = 'M', 'Male'
FEMALE = 'F', 'Female'
UNSPECIFIED = 'U', 'Unspecified'
class Profile(models.Model):
'''
Profile will be used as the base user in the Shlifim websi... | 39.077778 | 114 | 0.71197 | 460 | 3,517 | 5.304348 | 0.382609 | 0.022951 | 0.040164 | 0.060246 | 0.227869 | 0.17459 | 0.17459 | 0.156148 | 0.101639 | 0.063934 | 0 | 0.011892 | 0.187091 | 3,517 | 89 | 115 | 39.516854 | 0.841553 | 0.293432 | 0 | 0.169811 | 0 | 0.018868 | 0.113317 | 0.015302 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09434 | false | 0 | 0.056604 | 0.09434 | 0.924528 | 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 |
a8f7aafee006789f16da756c7a35aeab780dae25 | 9,147 | py | Python | asana_hub/transport.py | Loudr/hub-asana | af996ce890ed23d8ede5bf68dcd318e3438829cb | [
"MIT"
] | 16 | 2015-06-17T18:11:40.000Z | 2022-03-30T08:34:39.000Z | asana_hub/transport.py | Loudr/hub-asana | af996ce890ed23d8ede5bf68dcd318e3438829cb | [
"MIT"
] | 56 | 2015-05-30T12:10:31.000Z | 2019-01-23T21:38:07.000Z | asana_hub/transport.py | Loudr/hub-asana | af996ce890ed23d8ede5bf68dcd318e3438829cb | [
"MIT"
] | 3 | 2018-01-11T09:09:10.000Z | 2019-12-11T03:04:49.000Z | # -*- coding: utf-8 -*-
"""
transport queue handlers
Provides an interface for multiprocessing transport queues.
"""
import logging
import re
import multiprocessing
import Queue
import urllib3
import certifi
from asana import Client
from asana import error as asana_errors
from github import Github
import tool
mem... | 27.468468 | 78 | 0.539849 | 991 | 9,147 | 4.775984 | 0.225025 | 0.030425 | 0.027044 | 0.012677 | 0.142616 | 0.089161 | 0.026622 | 0 | 0 | 0 | 0 | 0.002068 | 0.365584 | 9,147 | 332 | 79 | 27.551205 | 0.813545 | 0.01782 | 0 | 0.234783 | 0 | 0 | 0.067591 | 0.002944 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | 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 |
d10288f3f10790daef741e1c62ebabd29ea6ef8d | 2,223 | py | Python | IAM/iam_users_audit_non_use.py | KevinPInscoe/AWS | 60438a12893f61c8f628edb6d35f26049809f831 | [
"CC-BY-4.0"
] | null | null | null | IAM/iam_users_audit_non_use.py | KevinPInscoe/AWS | 60438a12893f61c8f628edb6d35f26049809f831 | [
"CC-BY-4.0"
] | null | null | null | IAM/iam_users_audit_non_use.py | KevinPInscoe/AWS | 60438a12893f61c8f628edb6d35f26049809f831 | [
"CC-BY-4.0"
] | null | null | null | # Report on AWS IAM users the last time they used the console or API access
# Code is designed to be run on AWS Lambda but van be run via command line given the environment variables are set
from __future__ import print_function
import boto3
import os
import json
import pprint
import datetime
pp = pprint.PrettyPrint... | 25.261364 | 114 | 0.595142 | 272 | 2,223 | 4.761029 | 0.430147 | 0.027799 | 0.016988 | 0.03861 | 0.055598 | 0.055598 | 0.055598 | 0 | 0 | 0 | 0 | 0.004507 | 0.301395 | 2,223 | 87 | 115 | 25.551724 | 0.829363 | 0.175888 | 0 | 0.103448 | 0 | 0 | 0.159166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017241 | false | 0.051724 | 0.103448 | 0 | 0.137931 | 0.103448 | 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 |
d10523502366f8c2aaaa53e63b6f7dcb872bac9e | 7,212 | py | Python | tcapy_examples/gen/non_db_tca_example.py | PontusHultkrantz/tcapy | 3699c70031c95943f70a732849a1a6dac26760e9 | [
"Apache-2.0"
] | null | null | null | tcapy_examples/gen/non_db_tca_example.py | PontusHultkrantz/tcapy | 3699c70031c95943f70a732849a1a6dac26760e9 | [
"Apache-2.0"
] | null | null | null | tcapy_examples/gen/non_db_tca_example.py | PontusHultkrantz/tcapy | 3699c70031c95943f70a732849a1a6dac26760e9 | [
"Apache-2.0"
] | 1 | 2020-07-22T16:53:24.000Z | 2020-07-22T16:53:24.000Z | from __future__ import division, print_function
__author__ = 'saeedamen' # Saeed Amen / saeed@cuemacro.com
#
# Copyright 2017 Cuemacro Ltd. - http//www.cuemacro.com / @cuemacro
#
# See the License for the specific language governing permissions and limitations under the License.
#
import os
from collections import ... | 47.447368 | 127 | 0.661814 | 868 | 7,212 | 5.31106 | 0.290323 | 0.0282 | 0.036876 | 0.028633 | 0.681128 | 0.681128 | 0.674403 | 0.666377 | 0.649892 | 0.649892 | 0 | 0.012548 | 0.27066 | 7,212 | 151 | 128 | 47.761589 | 0.863878 | 0.37091 | 0 | 0.507463 | 0 | 0 | 0.106254 | 0.050437 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029851 | false | 0 | 0.238806 | 0 | 0.268657 | 0.074627 | 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 |
d105caf76c911e89985dd2d4fa4143328fd2e48e | 2,356 | py | Python | municipal_finance/migrations/0011_auto_20201006_1745.py | desafinadude/municipal-data | 1c86c55bbb59f9c8087f6920fae3585dd90d5d43 | [
"MIT"
] | 19 | 2018-01-09T10:54:15.000Z | 2022-01-25T13:10:55.000Z | municipal_finance/migrations/0011_auto_20201006_1745.py | desafinadude/municipal-data | 1c86c55bbb59f9c8087f6920fae3585dd90d5d43 | [
"MIT"
] | 29 | 2018-01-12T12:12:38.000Z | 2022-01-31T15:30:36.000Z | municipal_finance/migrations/0011_auto_20201006_1745.py | desafinadude/municipal-data | 1c86c55bbb59f9c8087f6920fae3585dd90d5d43 | [
"MIT"
] | 13 | 2018-02-11T02:12:57.000Z | 2021-11-22T11:03:22.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.28 on 2020-10-06 17:45
from __future__ import unicode_literals
from django.conf import settings
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependen... | 36.246154 | 95 | 0.579372 | 205 | 2,356 | 6.458537 | 0.44878 | 0.024169 | 0.042296 | 0.069486 | 0.401057 | 0.331571 | 0.331571 | 0.299094 | 0.299094 | 0.299094 | 0 | 0.021965 | 0.304329 | 2,356 | 64 | 96 | 36.8125 | 0.785845 | 0.029287 | 0 | 0.438596 | 1 | 0 | 0.160245 | 0.085377 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.087719 | 0 | 0.140351 | 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 |
d109b2a750ae3343905dcca4def2ae37241b1220 | 586 | py | Python | nes/bus/devices/cartridge/cartridge.py | Hexadorsimal/pynes | dbb3d40c1240fa27f70fa798bcec09188755eec2 | [
"MIT"
] | 1 | 2017-05-13T18:57:09.000Z | 2017-05-13T18:57:09.000Z | nes/bus/devices/cartridge/cartridge.py | Hexadorsimal/py6502 | dbb3d40c1240fa27f70fa798bcec09188755eec2 | [
"MIT"
] | 7 | 2020-10-24T17:16:56.000Z | 2020-11-01T14:10:23.000Z | nes/bus/devices/cartridge/cartridge.py | Hexadorsimal/pynes | dbb3d40c1240fa27f70fa798bcec09188755eec2 | [
"MIT"
] | null | null | null | from nes.bus import Bus
class Cartridge:
CART_CPU_START = 0x6000
PRG0_START = 0x8000 - CART_CPU_START
PRG1_START = 0xC000 - CART_CPU_START
PRG_SIZE = 0x4000
CART_PPU_START = 0x0000
CHR0_START = CART_PPU_START
CHR_SIZE = 0x2000
def __init__(self, rom_file):
self.rom_file = rom... | 20.928571 | 55 | 0.629693 | 74 | 586 | 4.621622 | 0.5 | 0.081871 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077482 | 0.295222 | 586 | 27 | 56 | 21.703704 | 0.750605 | 0 | 0 | 0.095238 | 0 | 0 | 0.010239 | 0 | 0 | 0 | 0.061433 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.047619 | 0.047619 | 0.619048 | 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 |
d109d8ce0de6d590f2fb6f0fbf61410614462754 | 241 | py | Python | IHA-Server/Test Files/UDP/UDP-test-client.py | michael-handria/sound_system | b538d9c0e9cae6e809dff78c07acfe519e8ca2a3 | [
"MIT"
] | null | null | null | IHA-Server/Test Files/UDP/UDP-test-client.py | michael-handria/sound_system | b538d9c0e9cae6e809dff78c07acfe519e8ca2a3 | [
"MIT"
] | 4 | 2018-02-28T23:22:15.000Z | 2018-04-14T23:54:11.000Z | IHA-Server/Test Files/UDP/UDP-test-client.py | michael-handria/IHA-IntelligentHomeAudio | b538d9c0e9cae6e809dff78c07acfe519e8ca2a3 | [
"MIT"
] | null | null | null | from socket import socket, AF_INET, SOCK_DGRAM
MAX_SIZE = 4096
PORT = 14124
addr = input('IP Address: ')
sock = socket(AF_INET,SOCK_DGRAM)
while(True):
payload = input("Data: ")
sock.sendto(payload.encode(),(addr, PORT))
#endwhile | 20.083333 | 46 | 0.701245 | 35 | 241 | 4.685714 | 0.657143 | 0.097561 | 0.146341 | 0.195122 | 0.256098 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044335 | 0.157676 | 241 | 12 | 47 | 20.083333 | 0.763547 | 0.033195 | 0 | 0 | 0 | 0 | 0.077253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
d10cc341f5abef6c116281f27076bd8f9e6f6f8c | 16,078 | py | Python | MPLanalysis.py | anttikallanranta/Gradu | 76b7dab4b65ea979c4606ab62042d49b49ff7e00 | [
"MIT"
] | null | null | null | MPLanalysis.py | anttikallanranta/Gradu | 76b7dab4b65ea979c4606ab62042d49b49ff7e00 | [
"MIT"
] | null | null | null | MPLanalysis.py | anttikallanranta/Gradu | 76b7dab4b65ea979c4606ab62042d49b49ff7e00 | [
"MIT"
] | 1 | 2021-04-06T12:56:10.000Z | 2021-04-06T12:56:10.000Z | import numpy as np
from . import stereonet_math
def fit_girdle(*args, **kwargs):
"""
Fits a plane to a scatter of points on a stereonet (a.k.a. a "girdle").
Input arguments will be interpreted as poles, lines, rakes, or "raw"
longitudes and latitudes based on the ``measurement`` keyword argument.
... | 47.288235 | 79 | 0.643053 | 2,040 | 16,078 | 5.028431 | 0.159804 | 0.042113 | 0.044453 | 0.049132 | 0.657243 | 0.644375 | 0.624878 | 0.621856 | 0.621856 | 0.600799 | 0 | 0.010534 | 0.267882 | 16,078 | 340 | 80 | 47.288235 | 0.860929 | 0.728324 | 0 | 0.081081 | 0 | 0 | 0.039619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0 | 0.027027 | 0.013514 | 0.297297 | 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 |
d10dab900645744ce6ffe9dd3191149be44fa315 | 579 | py | Python | P25010-Guangzhou-Jiachengwu/week5/ex_random2.py | coachafei/python-25 | 16ba99b2cb195fe776509f2a376d7a868ad885a6 | [
"Apache-2.0"
] | 1 | 2019-09-11T23:24:58.000Z | 2019-09-11T23:24:58.000Z | P25010-Guangzhou-Jiachengwu/week5/ex_random2.py | coachafei/python-25 | 16ba99b2cb195fe776509f2a376d7a868ad885a6 | [
"Apache-2.0"
] | null | null | null | P25010-Guangzhou-Jiachengwu/week5/ex_random2.py | coachafei/python-25 | 16ba99b2cb195fe776509f2a376d7a868ad885a6 | [
"Apache-2.0"
] | 5 | 2019-09-11T06:33:34.000Z | 2020-02-17T12:52:31.000Z | # 已知仓库中有若干商品,以及相应库存,类似:
# 袜子,10
# 鞋子,20
# 拖鞋,30
# 项链,40
# 要求随机返回一种商品,要求商品被返回的概率与其库存成正比。请描述实现的思路或者直接写一个实现的函数
import random
def randpick(n):
socks = ['wz'] * 10 * n
shoes = ['xz'] * 20 * n
slippers = ['tx'] * 30 * n
necklace = ['xl'] * 40 * n
for_all = socks + shoes + slippers + necklace
count=... | 16.083333 | 51 | 0.609672 | 93 | 579 | 3.774194 | 0.462366 | 0.153846 | 0.099715 | 0.213675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084783 | 0.205527 | 579 | 36 | 52 | 16.083333 | 0.678261 | 0.164076 | 0 | 0.26087 | 0 | 0 | 0.033473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.130435 | 0.26087 | 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 |
d122f1bd0ed1ae50b5e8c5ae65a00ad8f12d55f0 | 5,160 | py | Python | gamestore/webapp/models.py | pinjahokkanen/wsdproject | aa55e004164a2726db6ef3b871f443a6df061df8 | [
"OLDAP-2.3"
] | null | null | null | gamestore/webapp/models.py | pinjahokkanen/wsdproject | aa55e004164a2726db6ef3b871f443a6df061df8 | [
"OLDAP-2.3"
] | null | null | null | gamestore/webapp/models.py | pinjahokkanen/wsdproject | aa55e004164a2726db6ef3b871f443a6df061df8 | [
"OLDAP-2.3"
] | null | null | null | from django.db import models
from django.conf import settings
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.urls import reverse
from django.utils import timezone
from django.shortcuts import get_object_or_404
# Extended Djang... | 43.728814 | 274 | 0.697674 | 675 | 5,160 | 5.228148 | 0.314074 | 0.022669 | 0.019836 | 0.019269 | 0.098045 | 0.08671 | 0.02437 | 0.02437 | 0 | 0 | 0 | 0.006337 | 0.204845 | 5,160 | 117 | 275 | 44.102564 | 0.853766 | 0.267248 | 0 | 0.116279 | 0 | 0 | 0.062733 | 0.006114 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116279 | false | 0 | 0.093023 | 0.081395 | 0.674419 | 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 |
d12f4da50f59c34ded26ffcd35a55b1d77afb129 | 1,705 | py | Python | src/wield_services/deploy/whisperer/wield/whisperer_image.py | hamshif/wield-services | f159c192accb3649e2ec470a25bf9784cf76a409 | [
"Apache-2.0"
] | null | null | null | src/wield_services/deploy/whisperer/wield/whisperer_image.py | hamshif/wield-services | f159c192accb3649e2ec470a25bf9784cf76a409 | [
"Apache-2.0"
] | 1 | 2020-06-09T08:17:38.000Z | 2020-06-09T08:17:38.000Z | src/wield_services/deploy/whisperer/wield/whisperer_image.py | hamshif/wield-services | f159c192accb3649e2ec470a25bf9784cf76a409 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import logging
from wield_services.wield.log_util import setup_logging
from wielder.util.imager import pack_image, push_image, replace_dir_contents
from wield_services.wield.deploy import util as u
def whisperer_image(force_last=True, push=False):
# TODO tag from git commit in case its not... | 22.434211 | 76 | 0.662757 | 222 | 1,705 | 4.743243 | 0.306306 | 0.08547 | 0.030389 | 0.048433 | 0.112061 | 0.112061 | 0.112061 | 0.081671 | 0.081671 | 0.081671 | 0 | 0.001554 | 0.245161 | 1,705 | 75 | 77 | 22.733333 | 0.816628 | 0.064516 | 0 | 0.326923 | 0 | 0 | 0.102451 | 0.040855 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.019231 | false | 0 | 0.076923 | 0 | 0.096154 | 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 |
d13140f14d28bc5a0b44488d4104731f16944288 | 1,388 | py | Python | molecules/Molecules.py | yngtodd/molecules-deprecated | adf9477e6122fa4e92cedbbba26a358ea903e3a4 | [
"MIT"
] | null | null | null | molecules/Molecules.py | yngtodd/molecules-deprecated | adf9477e6122fa4e92cedbbba26a358ea903e3a4 | [
"MIT"
] | null | null | null | molecules/Molecules.py | yngtodd/molecules-deprecated | adf9477e6122fa4e92cedbbba26a358ea903e3a4 | [
"MIT"
] | 1 | 2021-11-19T01:57:35.000Z | 2021-11-19T01:57:35.000Z | from __future__ import print_function
import os
from utils import copy_dir
class Molecules(object):
def __init__(self):
self.build_directories()
def build_directories(self):
"""
Builds directories "./images/", "./input_data/", "./output_data/",
"./saved_models/", "... | 32.27907 | 83 | 0.553314 | 149 | 1,388 | 4.939597 | 0.469799 | 0.076087 | 0.040761 | 0.057065 | 0.173913 | 0.173913 | 0.116848 | 0.116848 | 0.116848 | 0 | 0 | 0.006289 | 0.31268 | 1,388 | 42 | 84 | 33.047619 | 0.765199 | 0.010807 | 0 | 0 | 0 | 0 | 0.248428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.043478 | 0.130435 | null | null | 0.217391 | 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 |
d13c06b4bdd97c59f493a4ac8b843546766694b5 | 2,297 | py | Python | user_accounts/tests/factories/user_profile_factory.py | cforlando/intake | a5233d5c0f862f28ee265b9b4831405aabeec7e2 | [
"MIT"
] | 51 | 2016-07-20T02:26:57.000Z | 2021-07-07T14:45:06.000Z | user_accounts/tests/factories/user_profile_factory.py | enterstudio/intake | 793a8935914fdc8356321ec46e54d9ae1eeeee04 | [
"MIT"
] | 1,091 | 2016-04-29T18:07:45.000Z | 2021-04-19T18:39:39.000Z | user_accounts/tests/factories/user_profile_factory.py | enterstudio/intake | 793a8935914fdc8356321ec46e54d9ae1eeeee04 | [
"MIT"
] | 24 | 2016-06-14T18:10:43.000Z | 2021-11-14T20:26:39.000Z | import factory
from user_accounts import models
from .organization_factory import FakeOrganizationFactory
from .user_factory import UserFactory, user_with_name_and_email_from_org_slug
class UserProfileFactory(factory.DjangoModelFactory):
name = factory.Sequence(lambda n: 'Fake User {}'.format(n))
user = facto... | 33.289855 | 77 | 0.723117 | 290 | 2,297 | 5.424138 | 0.282759 | 0.095359 | 0.055944 | 0.030515 | 0.324857 | 0.244755 | 0.244755 | 0.104259 | 0.064844 | 0.064844 | 0 | 0 | 0.182412 | 2,297 | 68 | 78 | 33.779412 | 0.837593 | 0.168481 | 0 | 0.097561 | 0 | 0 | 0.050884 | 0.022496 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0 | 0.097561 | 0.073171 | 0.536585 | 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 |
d13e91cf72ce72201db6a97f6bb2ade254ee5df6 | 1,430 | py | Python | handlers/apiBaseHandler.py | Prescrypto/WPCI | 92da0f83974649122f907716e4ef0cf5ca0e43fe | [
"Apache-2.0"
] | 1 | 2019-05-17T17:55:29.000Z | 2019-05-17T17:55:29.000Z | handlers/apiBaseHandler.py | Prescrypto/WPCI | 92da0f83974649122f907716e4ef0cf5ca0e43fe | [
"Apache-2.0"
] | 27 | 2018-08-09T15:21:12.000Z | 2021-04-30T20:40:47.000Z | handlers/apiBaseHandler.py | Prescrypto/WPCI | 92da0f83974649122f907716e4ef0cf5ca0e43fe | [
"Apache-2.0"
] | 1 | 2019-07-23T15:04:15.000Z | 2019-07-23T15:04:15.000Z | #python
import json
#web app
from tornado.web import RequestHandler
class BaseHandler(RequestHandler):
def data_received(self, chunk):
pass
def __init__(self, application, request, **kwargs):
RequestHandler.__init__(self, application, request, **kwargs)
self.set_header("Content-Type",... | 34.047619 | 160 | 0.644056 | 178 | 1,430 | 5.050562 | 0.365169 | 0.077864 | 0.086763 | 0.100111 | 0.50723 | 0.43604 | 0.302558 | 0.302558 | 0.302558 | 0.302558 | 0 | 0.017452 | 0.198601 | 1,430 | 42 | 161 | 34.047619 | 0.767016 | 0.027972 | 0 | 0.275862 | 0 | 0.034483 | 0.242075 | 0.075648 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0.034483 | 0.068966 | 0 | 0.37931 | 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 |
d142b86424621f73ab80ac03f5007d392521a1e8 | 2,223 | py | Python | rmrb/rmrb_daemon/main.py | fjfhccfkuk/h_s_x_r_m_r_b_python | 46fe249b1b71f1245296c8b2dbd6e7c29dadade4 | [
"Unlicense"
] | null | null | null | rmrb/rmrb_daemon/main.py | fjfhccfkuk/h_s_x_r_m_r_b_python | 46fe249b1b71f1245296c8b2dbd6e7c29dadade4 | [
"Unlicense"
] | null | null | null | rmrb/rmrb_daemon/main.py | fjfhccfkuk/h_s_x_r_m_r_b_python | 46fe249b1b71f1245296c8b2dbd6e7c29dadade4 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
import os
import multiprocessing
import time
from system import version_request
print("This is main.py , progress:" + __name__)
def __doLoadModules():
try:
import rmrb.modules
except Exception, e:
print '__doLoadModules, excp:%s' % e.message
finally:
print(... | 20.394495 | 65 | 0.560954 | 229 | 2,223 | 5.235808 | 0.39738 | 0.045038 | 0.066722 | 0.087573 | 0.078399 | 0.038365 | 0 | 0 | 0 | 0 | 0 | 0.001323 | 0.319838 | 2,223 | 108 | 66 | 20.583333 | 0.791667 | 0.047233 | 0 | 0.279412 | 0 | 0 | 0.216793 | 0.012334 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.088235 | null | null | 0.25 | 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 |
d14b20d9f233d210573ee12cf61f58ab3987d910 | 1,027 | py | Python | setup.py | FlaskGuys/Flask-Imagine | c42b2f068f449891a72ff48fc3526e8472fe9edb | [
"MIT"
] | 1 | 2016-04-16T00:51:35.000Z | 2016-04-16T00:51:35.000Z | setup.py | FlaskGuys/Flask-Imagine | c42b2f068f449891a72ff48fc3526e8472fe9edb | [
"MIT"
] | 8 | 2016-04-12T22:32:51.000Z | 2021-09-07T23:23:32.000Z | setup.py | FlaskGuys/Flask-Imagine | c42b2f068f449891a72ff48fc3526e8472fe9edb | [
"MIT"
] | 2 | 2017-05-21T13:45:54.000Z | 2017-12-14T17:28:18.000Z | try:
import multiprocessing
except ImportError:
pass
from setuptools import setup
setup(
name='Flask-Imagine',
version='0.5',
description='Extension which provides easy image manipulation support in Flask applications.',
url='https://github.com/FlaskGuys/Flask-Imagine',
author='Kronas',
... | 24.452381 | 107 | 0.620253 | 110 | 1,027 | 5.727273 | 0.736364 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023018 | 0.238559 | 1,027 | 41 | 108 | 25.04878 | 0.782609 | 0.013632 | 0 | 0.064516 | 0 | 0 | 0.543027 | 0.063304 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.032258 | 0.096774 | 0 | 0.096774 | 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 |
d14dd541b83c0a1cc1f66d11798389a85eeb9663 | 1,254 | py | Python | mozillians/users/cron.py | Acidburn0zzz/mozillians | 991d51b8dc6d7b8265d20a33e83597a1f4500761 | [
"BSD-3-Clause"
] | 1 | 2016-07-24T07:20:19.000Z | 2016-07-24T07:20:19.000Z | mozillians/users/cron.py | Acidburn0zzz/mozillians | 991d51b8dc6d7b8265d20a33e83597a1f4500761 | [
"BSD-3-Clause"
] | null | null | null | mozillians/users/cron.py | Acidburn0zzz/mozillians | 991d51b8dc6d7b8265d20a33e83597a1f4500761 | [
"BSD-3-Clause"
] | null | null | null | from django.conf import settings
import cronjobs
from celery.task.sets import TaskSet
from celeryutils import chunked
from elasticutils.contrib.django import get_es
from mozillians.users.tasks import index_objects
from mozillians.users.models import UserProfile, UserProfileMappingType
@cronjobs.register
def index_... | 33.891892 | 81 | 0.726475 | 153 | 1,254 | 5.803922 | 0.444444 | 0.040541 | 0.042793 | 0.051802 | 0.265766 | 0.198198 | 0.198198 | 0.198198 | 0 | 0 | 0 | 0.017308 | 0.170654 | 1,254 | 36 | 82 | 34.833333 | 0.836538 | 0.061404 | 0 | 0.086957 | 0 | 0 | 0.019608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.304348 | 0 | 0.391304 | 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 |
d15478a0834f9c2ceaf8223e3fe086c5fa857805 | 3,807 | py | Python | src/environments/kinova_homography.py | gamerDecathlete/neural_jacobian_estimation | 44deed91f0650830dd2da1796e67d084f0918995 | [
"Apache-2.0"
] | 4 | 2021-03-26T23:58:44.000Z | 2022-01-17T18:06:49.000Z | src/environments/kinova_homography.py | gamerDecathlete/neural_jacobian_estimation | 44deed91f0650830dd2da1796e67d084f0918995 | [
"Apache-2.0"
] | null | null | null | src/environments/kinova_homography.py | gamerDecathlete/neural_jacobian_estimation | 44deed91f0650830dd2da1796e67d084f0918995 | [
"Apache-2.0"
] | null | null | null | import sys
try:
#TODO this is a hack, at minimum should be done s.t. it'll work for aaaany ros distribution
sys.path.remove('/opt/ros/kinetic/lib/python2.7/dist-packages')
sys.path.append('/opt/ros/kinetic/lib/python2.7/dist-packages')
except Exception as e:
print(e)
print("no ros kinetic found in p... | 36.961165 | 111 | 0.612818 | 480 | 3,807 | 4.658333 | 0.3 | 0.04025 | 0.04025 | 0.037567 | 0.148479 | 0.102862 | 0.073345 | 0.0322 | 0 | 0 | 0 | 0.016987 | 0.288679 | 3,807 | 102 | 112 | 37.323529 | 0.808715 | 0.077752 | 0 | 0.082192 | 0 | 0 | 0.05675 | 0.025222 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0.082192 | false | 0 | 0.054795 | 0.041096 | 0.205479 | 0.082192 | 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 |
d1580e196ec91c11d804ecfbb6e968d2e4c39c88 | 7,282 | py | Python | old/table_utils.py | nstarman/gaia_tools_util | 8e25e683de00d2b7df391e785fac691b12964bb6 | [
"MIT"
] | 1 | 2020-11-20T18:27:10.000Z | 2020-11-20T18:27:10.000Z | old/table_utils.py | nstarman/gaia_tools_util | 8e25e683de00d2b7df391e785fac691b12964bb6 | [
"MIT"
] | null | null | null | old/table_utils.py | nstarman/gaia_tools_util | 8e25e683de00d2b7df391e785fac691b12964bb6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""gaia_tools helper functions
Make constructing SQL queries for gaia_tools easier
See gaia_tools python package by Jo Bovy for details
By Nathaniel Starkman
"""
import json
import os
import itertools
import numpy as np
from astropy.table import QTable
try:
from ut... | 27.479245 | 81 | 0.560423 | 960 | 7,282 | 4.165625 | 0.245833 | 0.012503 | 0.029257 | 0.015004 | 0.142786 | 0.098525 | 0.087522 | 0.068017 | 0.029507 | 0.029507 | 0 | 0.014062 | 0.306647 | 7,282 | 264 | 82 | 27.583333 | 0.777976 | 0.283027 | 0 | 0.227273 | 0 | 0 | 0.062914 | 0.004967 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0.083333 | false | 0.007576 | 0.060606 | 0 | 0.219697 | 0.022727 | 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 |
d1584197aac96927f5d910b912ba0fe1d9bb367f | 480 | py | Python | websockserver.py | kakul/wlocate | f9b46d1910a12f019c0f3a3e8854a8f0e2aac976 | [
"MIT"
] | null | null | null | websockserver.py | kakul/wlocate | f9b46d1910a12f019c0f3a3e8854a8f0e2aac976 | [
"MIT"
] | null | null | null | websockserver.py | kakul/wlocate | f9b46d1910a12f019c0f3a3e8854a8f0e2aac976 | [
"MIT"
] | null | null | null | import json
from SimpleWebSocketServer import SimpleWebSocketServer, WebSocket
class SimpleEcho(WebSocket):
def handleMessage(self):
with open('data.json') as f:
r = json.loads(f)
print r
print type(self.data)
# s = json.dumps(data)
self.sendMessage(self.data)
def handleConnected(self):
pri... | 20 | 66 | 0.73125 | 57 | 480 | 6.157895 | 0.526316 | 0.045584 | 0.074074 | 0.11396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.158333 | 480 | 24 | 67 | 20 | 0.858911 | 0.041667 | 0 | 0 | 0 | 0 | 0.052288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.266667 | 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 |
d159fd697d5ff50e08dc0f3f446c6ee8d6d5a704 | 977 | py | Python | tests/components/ecobee/test_util.py | tbarbette/core | 8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | tests/components/ecobee/test_util.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | tests/components/ecobee/test_util.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Tests for the ecobee.util module."""
import pytest
import voluptuous as vol
from homeassistant.components.ecobee.util import ecobee_date, ecobee_time
async def test_ecobee_date_with_valid_input():
"""Test that the date function returns the expected result."""
test_input = "2019-09-27"
assert ecobee_d... | 27.138889 | 73 | 0.735926 | 139 | 977 | 4.913669 | 0.273381 | 0.131772 | 0.070278 | 0.105417 | 0.710102 | 0.710102 | 0.414348 | 0.168375 | 0 | 0 | 0 | 0.032099 | 0.170931 | 977 | 35 | 74 | 27.914286 | 0.811111 | 0.033777 | 0 | 0.117647 | 0 | 0 | 0.04519 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 |
d15bdde0d2734b7816562aace8d53d1060e811d3 | 14,601 | py | Python | learnNervesLSTM.py | IevaNavikiene/ultrasound | 692331e1416f011042cd256f5b0b2ce1d560524a | [
"MIT"
] | 2 | 2017-11-28T02:26:19.000Z | 2019-10-14T12:47:11.000Z | learnNervesLSTM.py | IevaNavikiene/ultrasound | 692331e1416f011042cd256f5b0b2ce1d560524a | [
"MIT"
] | null | null | null | learnNervesLSTM.py | IevaNavikiene/ultrasound | 692331e1416f011042cd256f5b0b2ce1d560524a | [
"MIT"
] | null | null | null | import cv2
import numpy as np
import matplotlib.pyplot as plt
from six.moves import cPickle as pickle
import os
import glob
import random
from configFile import Config
from NervesFile import Nerves
from helpers import *
import tensorflow as tf
configModel = Config()
configModel.trainNervesPickle = configModel.masksPic... | 37.728682 | 135 | 0.728717 | 2,118 | 14,601 | 4.828612 | 0.190746 | 0.021121 | 0.0176 | 0.01056 | 0.222646 | 0.132688 | 0.08722 | 0.073042 | 0.055344 | 0.025227 | 0 | 0.02143 | 0.137114 | 14,601 | 386 | 136 | 37.826425 | 0.790301 | 0.110266 | 0 | 0.018519 | 0 | 0 | 0.047966 | 0.004863 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.101852 | 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 |
d16169fb401a57f6289435a9fbd8780146341f8c | 901 | py | Python | algoritmos/PythonM2/passagem.py | MiguelTeixeiraUFPB/PythonM2 | 1ee07879b141eae4c4edd5f4ac43002b11167b2f | [
"MIT"
] | null | null | null | algoritmos/PythonM2/passagem.py | MiguelTeixeiraUFPB/PythonM2 | 1ee07879b141eae4c4edd5f4ac43002b11167b2f | [
"MIT"
] | null | null | null | algoritmos/PythonM2/passagem.py | MiguelTeixeiraUFPB/PythonM2 | 1ee07879b141eae4c4edd5f4ac43002b11167b2f | [
"MIT"
] | null | null | null | passagemAreiaDiurno=19
passagemAreiaNoturno=24
passagemPilarNoturno=26
passagemPilarDiurno=22
destino=str(input('digite o destino: ')).upper()
horario=str(input('digite se o horário é diurno ou noturno: ')).upper()
idade=int(input('digite sua idade: '))
if destino=='AREIA':
if horario=='DIURNO':
print('o ... | 30.033333 | 75 | 0.642619 | 116 | 901 | 4.991379 | 0.318966 | 0.062176 | 0.11399 | 0.124352 | 0.490501 | 0.490501 | 0.490501 | 0.490501 | 0.445596 | 0.259067 | 0 | 0.025678 | 0.221976 | 901 | 29 | 76 | 31.068966 | 0.800285 | 0 | 0 | 0.375 | 0 | 0 | 0.258352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.416667 | 0 | 0 | 0 | 0.291667 | 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 |
d16349c4fb5ec95769d427d9ed413a0213f1be24 | 4,604 | py | Python | server/migrations/versions/c6b0925e9d17_.py | isu-avista/iot | d87776a28778411f7ea0086ebbbb04a1b69a67a1 | [
"MIT"
] | null | null | null | server/migrations/versions/c6b0925e9d17_.py | isu-avista/iot | d87776a28778411f7ea0086ebbbb04a1b69a67a1 | [
"MIT"
] | null | null | null | server/migrations/versions/c6b0925e9d17_.py | isu-avista/iot | d87776a28778411f7ea0086ebbbb04a1b69a67a1 | [
"MIT"
] | null | null | null | """empty message
Revision ID: c6b0925e9d17
Revises:
Create Date: 2020-11-23 17:37:14.068222
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'c6b0925e9d17'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | 40.034783 | 102 | 0.667246 | 579 | 4,604 | 5.207254 | 0.176166 | 0.100829 | 0.114428 | 0.160199 | 0.711111 | 0.697181 | 0.67728 | 0.61791 | 0.52272 | 0.468988 | 0 | 0.023485 | 0.139878 | 4,604 | 114 | 103 | 40.385965 | 0.737879 | 0.061468 | 0 | 0.40625 | 0 | 0 | 0.169701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0.010417 | 0.020833 | 0 | 0.041667 | 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 |
d1709046e686f9557f28eea5341062fbf81b2978 | 1,266 | py | Python | production/img-cap-classify/DiceCam.py | acarabott/can-dice | b9450137941e6ca852b39c2ebb64a41e748609fe | [
"MIT"
] | null | null | null | production/img-cap-classify/DiceCam.py | acarabott/can-dice | b9450137941e6ca852b39c2ebb64a41e748609fe | [
"MIT"
] | null | null | null | production/img-cap-classify/DiceCam.py | acarabott/can-dice | b9450137941e6ca852b39c2ebb64a41e748609fe | [
"MIT"
] | null | null | null | import RPi.GPIO as GPIO
from picamera import PiCamera
class DiceCam(object):
"""Dice Cam! Flash the LEDs, take a pic!"""
def __init__(self, *led_pins):
super(DiceCam, self).__init__()
self.led_pins = list(led_pins)
self.camera = PiCamera()
self.camera.stop_preview()
self.camera.resolution = ... | 22.210526 | 45 | 0.663507 | 181 | 1,266 | 4.447514 | 0.403315 | 0.161491 | 0.054658 | 0.037267 | 0.104348 | 0.057143 | 0.057143 | 0 | 0 | 0 | 0 | 0.025 | 0.210111 | 1,266 | 56 | 46 | 22.607143 | 0.78 | 0.029226 | 0 | 0.095238 | 0 | 0 | 0.022077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.047619 | 0.02381 | 0.309524 | 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 |
66f5512736cbe3690f0f10012f6c7efe9c8cefe0 | 4,669 | py | Python | datasets/py_rmpe_server/py_rmpe_config.py | H-Liu1997/Pytorch_Pose_Estimation_Framework | 06616b3459ff639f8486e6ea4f93922597788b2a | [
"MIT"
] | 1 | 2019-09-04T11:52:26.000Z | 2019-09-04T11:52:26.000Z | datasets/py_rmpe_server/py_rmpe_config.py | HaiyangLiu1997/Pytorch_Pose_Estimation_Framework | 06616b3459ff639f8486e6ea4f93922597788b2a | [
"MIT"
] | null | null | null | datasets/py_rmpe_server/py_rmpe_config.py | HaiyangLiu1997/Pytorch_Pose_Estimation_Framework | 06616b3459ff639f8486e6ea4f93922597788b2a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import numpy as np
def ltr_parts(parts_dict):
# when we flip image left parts became right parts and vice versa. This is the list of parts to exchange each other.
leftParts = [ parts_dict[p] for p in ["Lsho", "Lelb", "Lwri", "Lhip", "Lkne", "Lank", "Leye", "Lear"] ]
rightParts = [ p... | 33.589928 | 156 | 0.607196 | 645 | 4,669 | 4.252713 | 0.351938 | 0.036092 | 0.045935 | 0.034998 | 0.103172 | 0.090777 | 0.047393 | 0.02479 | 0 | 0 | 0 | 0.039564 | 0.252945 | 4,669 | 138 | 157 | 33.833333 | 0.746846 | 0.180767 | 0 | 0.095238 | 0 | 0 | 0.096876 | 0 | 0 | 0 | 0 | 0.007246 | 0.035714 | 1 | 0.047619 | false | 0 | 0.011905 | 0 | 0.535714 | 0.02381 | 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 |
66f9a6b6482187da04da09eaa8b1ef640eba8b9c | 5,296 | py | Python | tests/problems/np/test_numberpartitioning.py | panaali/qubovert | d5ea46349d2a058954fb2cb06f559c0d3fb382c5 | [
"Apache-2.0"
] | 15 | 2020-07-10T20:46:50.000Z | 2021-12-29T05:01:55.000Z | tests/problems/np/test_numberpartitioning.py | panaali/qubovert | d5ea46349d2a058954fb2cb06f559c0d3fb382c5 | [
"Apache-2.0"
] | 13 | 2020-06-12T22:37:59.000Z | 2022-02-22T20:11:13.000Z | tests/problems/np/test_numberpartitioning.py | panaali/qubovert | d5ea46349d2a058954fb2cb06f559c0d3fb382c5 | [
"Apache-2.0"
] | 4 | 2020-05-13T06:02:38.000Z | 2022-03-22T20:45:23.000Z | # Copyright 2020 Joseph T. Iosue
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | 29.752809 | 77 | 0.757742 | 685 | 5,296 | 5.572263 | 0.175182 | 0.110034 | 0.062877 | 0.050301 | 0.573487 | 0.532093 | 0.459523 | 0.440136 | 0.405816 | 0.405816 | 0 | 0.00974 | 0.166352 | 5,296 | 177 | 78 | 29.920904 | 0.854813 | 0.121224 | 0 | 0.465347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.445545 | 1 | 0.09901 | false | 0 | 0.039604 | 0 | 0.138614 | 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 |
0f020dcd8cd8efd36bf4afe10056f54852f904ab | 2,745 | py | Python | make_lc_plot.py | NOTABAGEL/make_lc_plot | fb5e1e7faa30bc3a74529cf1a156c69be95b1a72 | [
"MIT"
] | null | null | null | make_lc_plot.py | NOTABAGEL/make_lc_plot | fb5e1e7faa30bc3a74529cf1a156c69be95b1a72 | [
"MIT"
] | null | null | null | make_lc_plot.py | NOTABAGEL/make_lc_plot | fb5e1e7faa30bc3a74529cf1a156c69be95b1a72 | [
"MIT"
] | null | null | null | import numpy as np
import warnings
import matplotlib.pyplot as plt
import time
import sys
import math
import numpy.polynomial.polynomial as ply
MJDREF = 51910.0 + 7.428703703703703E-4
spacer = "\n--------------------------------------------------\n"
#by Jonathan Katz and Stack Overflow I know this is terrible OOP so... | 26.911765 | 204 | 0.685974 | 458 | 2,745 | 3.917031 | 0.30131 | 0.049052 | 0.049052 | 0.043478 | 0.141583 | 0.117614 | 0.088629 | 0.088629 | 0.088629 | 0 | 0 | 0.02511 | 0.173042 | 2,745 | 101 | 205 | 27.178218 | 0.765198 | 0.175228 | 0 | 0.048387 | 0 | 0 | 0.05494 | 0.023926 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.112903 | null | null | 0.096774 | 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 |
0f037742b046a971e714aa61fef5f277fd7e1b1e | 14,510 | py | Python | codes/mem_analysis_ATIS.py | bihani-g/Fuzzy_Intents | f76472aae483d234dfe8c091c9dba825b17db9f7 | [
"MIT"
] | 1 | 2021-04-24T03:39:08.000Z | 2021-04-24T03:39:08.000Z | codes/mem_analysis_ATIS.py | bihani-g/Fuzzy_Intents | f76472aae483d234dfe8c091c9dba825b17db9f7 | [
"MIT"
] | null | null | null | codes/mem_analysis_ATIS.py | bihani-g/Fuzzy_Intents | f76472aae483d234dfe8c091c9dba825b17db9f7 | [
"MIT"
] | 1 | 2021-08-23T09:44:23.000Z | 2021-08-23T09:44:23.000Z | #!/usr/bin/env python
# coding: utf-8
# In[3]:
import pandas as pd
# In[5]:
data_atis = pd.read_csv('./data/MixATIS.csv')
data_filtered = data_atis[['utterance', 'atis_abbreviation', 'atis_airfare', 'atis_airline', 'atis_ground_service', 'atis_flight']]
data_filt = data_filtered[(data_filtered.atis_abbreviation=... | 39.005376 | 135 | 0.689387 | 2,571 | 14,510 | 3.401011 | 0.052898 | 0.064044 | 0.046889 | 0.064044 | 0.801578 | 0.670631 | 0.481359 | 0.202196 | 0.193275 | 0.121683 | 0 | 0.027078 | 0.165196 | 14,510 | 371 | 136 | 39.110512 | 0.694791 | 0.055892 | 0 | 0.103734 | 0 | 0 | 0.232185 | 0.168507 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004149 | false | 0 | 0.012448 | 0 | 0.020747 | 0.053942 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 |
0f040dddf90840125c32dab8fb5c2c66872f82dc | 4,592 | py | Python | idaes/tests/test_solvers.py | dangunter/idaes-pse | 8f63b4ad8000af8a3eb0316a5f61c32e206925d0 | [
"RSA-MD"
] | null | null | null | idaes/tests/test_solvers.py | dangunter/idaes-pse | 8f63b4ad8000af8a3eb0316a5f61c32e206925d0 | [
"RSA-MD"
] | 3 | 2021-07-20T20:12:59.000Z | 2022-03-09T21:06:40.000Z | idaes/tests/test_solvers.py | dangunter/idaes-pse | 8f63b4ad8000af8a3eb0316a5f61c32e206925d0 | [
"RSA-MD"
] | 1 | 2021-08-13T15:20:31.000Z | 2021-08-13T15:20:31.000Z | #################################################################################
# The Institute for the Design of Advanced Energy Systems Integrated Platform
# Framework (IDAES IP) was produced under the DOE Institute for the
# Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021
# by the softwar... | 32.8 | 81 | 0.644382 | 689 | 4,592 | 4.253991 | 0.204644 | 0.017059 | 0.058001 | 0.061412 | 0.752303 | 0.752303 | 0.665302 | 0.643466 | 0.581713 | 0.549983 | 0 | 0.013851 | 0.198171 | 4,592 | 139 | 82 | 33.035971 | 0.782184 | 0.29399 | 0 | 0.521739 | 0 | 0 | 0.056134 | 0 | 0 | 0 | 0 | 0 | 0.054348 | 1 | 0.152174 | false | 0 | 0.043478 | 0 | 0.23913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 |
0f09346286025fbed0aa067c9c0df57bc7225779 | 1,841 | py | Python | python/src/problem021.py | arturh85/projecteuler | c3685e302ea7c323193b18c105a7e02da01fd6b5 | [
"MIT"
] | 3 | 2015-02-04T08:37:01.000Z | 2015-11-28T03:10:15.000Z | python/src/problem021.py | arturh85/projecteuler | c3685e302ea7c323193b18c105a7e02da01fd6b5 | [
"MIT"
] | null | null | null | python/src/problem021.py | arturh85/projecteuler | c3685e302ea7c323193b18c105a7e02da01fd6b5 | [
"MIT"
] | null | null | null | '''
Problem 21
05 July 2002
Let d(n) be defined as the sum of proper divisors of n (numbers less
than n which divide evenly into n).
If d(a) = b and d(b) = a, where a != b, then a and b are an amicable
pair and each of a and b are called amicable numbers.
For example, the proper divisors of 220 are 1, 2, 4... | 25.569444 | 103 | 0.543183 | 254 | 1,841 | 3.811024 | 0.425197 | 0.123967 | 0.049587 | 0.012397 | 0.016529 | 0.016529 | 0 | 0 | 0 | 0 | 0 | 0.106037 | 0.298208 | 1,841 | 72 | 104 | 25.569444 | 0.643189 | 0.441608 | 0 | 0 | 0 | 0 | 0.008529 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.214286 | false | 0.035714 | 0.071429 | 0.071429 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0f0cc35c8f354fdfb3f5c59d080f3ba86c28fad6 | 1,257 | py | Python | ERation/shop/migrations/0001_initial.py | mishelshaji/ERation | 0e755ae63ae2c9cc009e18b72425ac508670a1cf | [
"MIT"
] | null | null | null | ERation/shop/migrations/0001_initial.py | mishelshaji/ERation | 0e755ae63ae2c9cc009e18b72425ac508670a1cf | [
"MIT"
] | null | null | null | ERation/shop/migrations/0001_initial.py | mishelshaji/ERation | 0e755ae63ae2c9cc009e18b72425ac508670a1cf | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-02-20 07:24
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('eadmin', '0001_initial'),
]
oper... | 41.9 | 201 | 0.665076 | 142 | 1,257 | 5.774648 | 0.415493 | 0.060976 | 0.121951 | 0.146341 | 0.180488 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036779 | 0.199682 | 1,257 | 29 | 202 | 43.344828 | 0.77833 | 0.0358 | 0 | 0 | 1 | 0 | 0.070248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.363636 | 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 |
0f18447f675f840770ba2bf3917bbc9267c5ee89 | 5,749 | py | Python | app/domain/profiles/insights.py | bbc/connected-data-mistletoe | 6c6a5e4137d1965261b18e7ea42bca0e313c49a6 | [
"MIT"
] | null | null | null | app/domain/profiles/insights.py | bbc/connected-data-mistletoe | 6c6a5e4137d1965261b18e7ea42bca0e313c49a6 | [
"MIT"
] | null | null | null | app/domain/profiles/insights.py | bbc/connected-data-mistletoe | 6c6a5e4137d1965261b18e7ea42bca0e313c49a6 | [
"MIT"
] | null | null | null | obj = {
'Profiles' : [ {
'Source' : 'sfmc_sg10004_programmes_genrelevel1fan548day_oc_uas_dae',
'Media': ['audio','video'],
'Preferences' : [ {
'Score' : 1,
'Label' : 'Religion & Ethics'
}, {
'Score' : 4,
'Label' : 'Entertainment'
}, {
'Score' : 5... | 22.813492 | 77 | 0.368586 | 424 | 5,749 | 4.926887 | 0.226415 | 0.089038 | 0.163236 | 0.068933 | 0.383916 | 0.278602 | 0.234083 | 0.115845 | 0.078506 | 0.042125 | 0 | 0.038077 | 0.442686 | 5,749 | 251 | 78 | 22.904382 | 0.61392 | 0 | 0 | 0.752988 | 0 | 0 | 0.371021 | 0.052183 | 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 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0f1a5084a5ec9976bcc597aa0b712cfecb0300cb | 196 | py | Python | tests/errors/semantic/non_blocking/var_is_none.py | dina-fouad/pyccel | f4d919e673b400442b9c7b81212b6fbef749c7b7 | [
"MIT"
] | 206 | 2018-06-28T00:28:47.000Z | 2022-03-29T05:17:03.000Z | tests/errors/semantic/non_blocking/var_is_none.py | dina-fouad/pyccel | f4d919e673b400442b9c7b81212b6fbef749c7b7 | [
"MIT"
] | 670 | 2018-07-23T11:02:24.000Z | 2022-03-30T07:28:05.000Z | tests/errors/semantic/non_blocking/var_is_none.py | dina-fouad/pyccel | f4d919e673b400442b9c7b81212b6fbef749c7b7 | [
"MIT"
] | 19 | 2019-09-19T06:01:00.000Z | 2022-03-29T05:17:06.000Z | # pylint: disable=missing-function-docstring, missing-module-docstring/
from pyccel.decorators import types
@types('int')
def f(a):
b = 0
if a is not None:
b = b + a
return b
| 19.6 | 71 | 0.647959 | 30 | 196 | 4.233333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.239796 | 196 | 9 | 72 | 21.777778 | 0.845638 | 0.352041 | 0 | 0 | 0 | 0 | 0.024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 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 |
0f221f937f9ef75e7cc4b3aa7a4464b576eebb12 | 428 | py | Python | expmanager/urls.py | KanHatakeyama/FlowMaterGUI | d2bfdfcffec66d6b59426f65101b7e6393e298fb | [
"MIT"
] | 1 | 2022-02-17T11:08:04.000Z | 2022-02-17T11:08:04.000Z | expmanager/urls.py | KanHatakeyama/FlowMaterGUI | d2bfdfcffec66d6b59426f65101b7e6393e298fb | [
"MIT"
] | null | null | null | expmanager/urls.py | KanHatakeyama/FlowMaterGUI | d2bfdfcffec66d6b59426f65101b7e6393e298fb | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
from django.conf.urls import url, static
urlpatterns=[
path("graph/<str:graph_id>",views.view_experiment_graph,name="graph"),
path("duplicate_experiment/<int:original_experiment_id>",views.duplicate_experiment,name="duplicate_experiment"),
path("media... | 35.666667 | 118 | 0.735981 | 57 | 428 | 5.333333 | 0.403509 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11215 | 428 | 11 | 119 | 38.909091 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.329327 | 0.185096 | 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 |
0f250da8c448669046bfb64721f91b0035e64551 | 10,136 | py | Python | lvt/utils/usaf/s2smetric/old/make_s2s_metric_geotiff.py | andrewsoong/LISF | 20e3b00a72b6b348c567d0703550f290881679b4 | [
"Apache-2.0"
] | 67 | 2018-11-13T21:40:54.000Z | 2022-02-23T08:11:56.000Z | lvt/utils/usaf/s2smetric/old/make_s2s_metric_geotiff.py | andrewsoong/LISF | 20e3b00a72b6b348c567d0703550f290881679b4 | [
"Apache-2.0"
] | 679 | 2018-11-13T20:10:29.000Z | 2022-03-30T19:55:25.000Z | lvt/utils/usaf/s2smetric/old/make_s2s_metric_geotiff.py | andrewsoong/LISF | 20e3b00a72b6b348c567d0703550f290881679b4 | [
"Apache-2.0"
] | 119 | 2018-11-08T15:53:35.000Z | 2022-03-28T10:16:01.000Z | #!/usr/bin/env python3
"""
#------------------------------------------------------------------------------
#
# SCRIPT: make_s2s_metric_geotiff.py
#
# PURPOSE: Generates GeoTIFF file from S2S metrics netCDF file.
#
# REQUIREMENTS as of 4 Oct 2021:
# * Python 3.8 or higher
# * UNIDATA NetCDF4 Python library
# * GDAL Pyth... | 41.203252 | 79 | 0.582281 | 1,138 | 10,136 | 5.01406 | 0.276801 | 0.029443 | 0.042412 | 0.045566 | 0.226604 | 0.132317 | 0.105328 | 0.082194 | 0.067823 | 0.043638 | 0 | 0.015577 | 0.296961 | 10,136 | 245 | 80 | 41.371429 | 0.785153 | 0.226223 | 0 | 0.15625 | 1 | 0.00625 | 0.083312 | 0.004535 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.03125 | 0 | 0.16875 | 0.03125 | 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 |
0f253a34736d05e15d62d96738412659ae11f7cb | 2,000 | py | Python | Lib/lib2to3/fixes/fix_execfile.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | 1 | 2018-06-21T18:21:24.000Z | 2018-06-21T18:21:24.000Z | Lib/lib2to3/fixes/fix_execfile.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | Lib/lib2to3/fixes/fix_execfile.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | # Copyright 2006 Google, Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
"""Fixer dla execfile.
This converts usages of the execfile function into calls to the built-in
exec() function.
"""
z .. zaimportuj fixer_base
z ..fixer_util zaimportuj (Comma, Name, Call, LParen, RParen, Dot, Node,
... | 37.735849 | 103 | 0.609 | 238 | 2,000 | 5.029412 | 0.407563 | 0.027569 | 0.021721 | 0.031746 | 0.041771 | 0.041771 | 0 | 0 | 0 | 0 | 0 | 0.00404 | 0.2575 | 2,000 | 52 | 104 | 38.461538 | 0.80202 | 0.1725 | 0 | 0 | 0 | 0.03125 | 0.143231 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0 | null | null | 0 | 0.0625 | 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 |
0f2c3318479c9cfb3ebaa3ed3b86afff724e091d | 509 | py | Python | osf/migrations/0122_auto_20180801_2105.py | gaybro8777/osf.io | 30408511510a40bc393565817b343ef5fd76ab14 | [
"Apache-2.0"
] | 628 | 2015-01-15T04:33:22.000Z | 2022-03-30T06:40:10.000Z | osf/migrations/0122_auto_20180801_2105.py | gaybro8777/osf.io | 30408511510a40bc393565817b343ef5fd76ab14 | [
"Apache-2.0"
] | 4,712 | 2015-01-02T01:41:53.000Z | 2022-03-30T14:18:40.000Z | osf/migrations/0122_auto_20180801_2105.py | Johnetordoff/osf.io | de10bf249c46cede04c78f7e6f7e352c69e6e6b5 | [
"Apache-2.0"
] | 371 | 2015-01-12T16:14:08.000Z | 2022-03-31T18:58:29.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-08-01 21:05
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
('osf', '0121_merge_20180801_1458'),
]... | 24.238095 | 78 | 0.646365 | 55 | 509 | 5.672727 | 0.818182 | 0.070513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096939 | 0.229862 | 509 | 20 | 79 | 25.45 | 0.69898 | 0.13556 | 0 | 0 | 1 | 0 | 0.263158 | 0.121281 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 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 |
0f2ded723106a4b0e84a2ba014f87f0610919719 | 762 | py | Python | src/1201_1300/1300_sum-of-mutated-array-closest-to-target/sum-of-mutated-array-closest-to-target.py | himichael/LeetCode | d54f48e785af3d47a2a67a95fd3343d2b23f8ae5 | [
"Apache-2.0"
] | 1 | 2019-12-18T06:08:47.000Z | 2019-12-18T06:08:47.000Z | src/1201_1300/1300_sum-of-mutated-array-closest-to-target/sum-of-mutated-array-closest-to-target.py | himichael/LeetCode | d54f48e785af3d47a2a67a95fd3343d2b23f8ae5 | [
"Apache-2.0"
] | 1 | 2019-05-18T09:35:22.000Z | 2019-05-18T09:35:22.000Z | src/1201_1300/1300_sum-of-mutated-array-closest-to-target/sum-of-mutated-array-closest-to-target.py | himichael/LeetCode | d54f48e785af3d47a2a67a95fd3343d2b23f8ae5 | [
"Apache-2.0"
] | null | null | null | class Solution:
def findBestValue(self, arr, target):
arr.sort()
n = len(arr)
prefix = [0]
for num in arr:
prefix.append(prefix[-1] + num)
l, r, ans = 0, max(arr), -1
while l <= r:
mid = (l + r) // 2
it = bisect.bisect_lef... | 29.307692 | 89 | 0.440945 | 100 | 762 | 3.32 | 0.39 | 0.018072 | 0.048193 | 0.066265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021327 | 0.446194 | 762 | 25 | 90 | 30.48 | 0.763033 | 0 | 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 |
0f354e280487a772ac6e0d5de439e53edd6bbd82 | 3,537 | py | Python | pinball/util/preprocess.py | mhoward2718/quantreg | 48478aee30b3dcbd6204c287f99cb287f005d6c1 | [
"MIT"
] | 1 | 2022-01-02T22:15:54.000Z | 2022-01-02T22:15:54.000Z | pinball/util/preprocess.py | mhoward2718/quantreg | 48478aee30b3dcbd6204c287f99cb287f005d6c1 | [
"MIT"
] | null | null | null | pinball/util/preprocess.py | mhoward2718/quantreg | 48478aee30b3dcbd6204c287f99cb287f005d6c1 | [
"MIT"
] | null | null | null | """Preprocess is actually not a good name for what this does
"""
import numpy as np
def fit_preprocess(X: np.array,
y: np.array,
tau: float = 0.5,
mm_factor: float = 0.8,
max_fixups: int = 3,
eps: float = 1e-6,
fit_method=fit_fbn):
(n, p) = X.... | 41.127907 | 101 | 0.526152 | 551 | 3,537 | 3.250454 | 0.323049 | 0.0134 | 0.008934 | 0.021217 | 0.154104 | 0.154104 | 0.108319 | 0.052485 | 0.052485 | 0.024567 | 0 | 0.014467 | 0.374611 | 3,537 | 86 | 102 | 41.127907 | 0.795208 | 0.292338 | 0 | 0.098361 | 0 | 0 | 0.010914 | 0 | 0 | 0 | 0 | 0.011628 | 0 | 1 | 0.016393 | false | 0 | 0.016393 | 0 | 0.04918 | 0.016393 | 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 |
0f37744963ebd1de30476fb376a03e4dbfe35b84 | 854 | py | Python | day_8/test_day8.py | allisonhonold/advent_of_code | a0f19a7b23e3112698944512efa2d23794c02a82 | [
"MIT"
] | null | null | null | day_8/test_day8.py | allisonhonold/advent_of_code | a0f19a7b23e3112698944512efa2d23794c02a82 | [
"MIT"
] | null | null | null | day_8/test_day8.py | allisonhonold/advent_of_code | a0f19a7b23e3112698944512efa2d23794c02a82 | [
"MIT"
] | null | null | null | from day8_pt1 import get_layers, layer_counts, t
from day8_pt2 import display_pixels, get_prominent_color
def test_get_layers():
inputs = '123456789012'
assert get_layers(inputs, 3, 2) == [(1,2,3,4,5,6), (7,8,9,0,1,2)]
def test_layer_counts():
layer = [0,1,2,3,4,5]
assert layer_counts(layer) == {0:1, ... | 30.5 | 84 | 0.618267 | 168 | 854 | 2.994048 | 0.196429 | 0.047714 | 0.035785 | 0.031809 | 0.294235 | 0.135189 | 0.135189 | 0.087475 | 0.087475 | 0.087475 | 0 | 0.168331 | 0.179157 | 854 | 27 | 85 | 31.62963 | 0.549215 | 0 | 0 | 0.095238 | 0 | 0 | 0.028103 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | false | 0 | 0.095238 | 0 | 0.380952 | 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 |
0f37e909c2b5714620a44f137bad529218f357e2 | 22,250 | py | Python | data_collection.py | Steven20210/cell_death_ML | c1a380bb2f9f3e0279403cf76cb5f5193e771b5b | [
"MIT"
] | null | null | null | data_collection.py | Steven20210/cell_death_ML | c1a380bb2f9f3e0279403cf76cb5f5193e771b5b | [
"MIT"
] | null | null | null | data_collection.py | Steven20210/cell_death_ML | c1a380bb2f9f3e0279403cf76cb5f5193e771b5b | [
"MIT"
] | null | null | null | import random
import os
import cv2
import time
import pickle
import tensorflow as tf
import math
import matplotlib.pyplot as plt
import collections
from pandas import DataFrame
import numpy as np
from sklearn.cluster import MiniBatchKMeans
from PIL import Image, ImageEnhance, ImageStat
sample_label_array = []
shuffle_... | 37.457912 | 121 | 0.590067 | 2,901 | 22,250 | 4.318511 | 0.15374 | 0.010536 | 0.033046 | 0.011175 | 0.280013 | 0.233238 | 0.164591 | 0.120769 | 0.096424 | 0.063618 | 0 | 0.020554 | 0.306831 | 22,250 | 593 | 122 | 37.521079 | 0.79174 | 0 | 0 | 0.177606 | 0 | 0.011583 | 0.024189 | 0.003606 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007722 | 0.050193 | null | null | 0.015444 | 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 |
0f3c989604d3edd39259eb631aad8f1f5a933ef2 | 5,924 | py | Python | data_generation/diffusion.py | SkyeEngineer/convolutional-neural-markov-model | e7bc20dbf465ff39f70c4a9c7dd5c432b81cf349 | [
"MIT"
] | 1 | 2020-10-22T12:26:33.000Z | 2020-10-22T12:26:33.000Z | data_generation/diffusion.py | SkyeEngineer/convolutional-neural-markov-model | e7bc20dbf465ff39f70c4a9c7dd5c432b81cf349 | [
"MIT"
] | null | null | null | data_generation/diffusion.py | SkyeEngineer/convolutional-neural-markov-model | e7bc20dbf465ff39f70c4a9c7dd5c432b81cf349 | [
"MIT"
] | 1 | 2021-03-24T08:37:41.000Z | 2021-03-24T08:37:41.000Z | from enum import Enum
import numpy as np
import scipy.stats as scistats
import matplotlib.pyplot as plt
from tqdm import tqdm
class Noise(Enum):
NORMAL = 1
CAUCHY = 2
def generate(
n_steps=101,
plate_width=10,
plate_height=10,
dx=0.1,
dy=0.1,
thermal_diffusivity=4,
temperature_co... | 27.812207 | 101 | 0.603646 | 840 | 5,924 | 4.114286 | 0.20119 | 0.009259 | 0.006944 | 0.010127 | 0.216725 | 0.200521 | 0.180845 | 0.158854 | 0.114005 | 0.081597 | 0 | 0.023212 | 0.287306 | 5,924 | 212 | 102 | 27.943396 | 0.795358 | 0.40817 | 0 | 0.042105 | 1 | 0 | 0.002474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063158 | false | 0 | 0.052632 | 0 | 0.2 | 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 |
0f406d43befb13b8695d9708cf38526b93767035 | 642 | py | Python | home/urls.py | mukesh2505/restoproject | 8336804690026a285cc913fea93959fa5d2c2ae5 | [
"Apache-2.0"
] | null | null | null | home/urls.py | mukesh2505/restoproject | 8336804690026a285cc913fea93959fa5d2c2ae5 | [
"Apache-2.0"
] | null | null | null | home/urls.py | mukesh2505/restoproject | 8336804690026a285cc913fea93959fa5d2c2ae5 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from django.urls import path
from .views import *
urlpatterns = [
path('', Index.as_view(), name="index"),
path('about/', About.as_view(), name="about"),
path('menu/', Menu.as_view(), name="menu"),
path('contact/', Contact.as_view(), name="contact"),
path('login/', ... | 37.764706 | 59 | 0.637072 | 83 | 642 | 4.807229 | 0.26506 | 0.150376 | 0.250627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135514 | 642 | 16 | 60 | 40.125 | 0.718919 | 0 | 0 | 0 | 0 | 0 | 0.199377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
0f4696e18d6c10cd6aa093e4811b01e5fe844432 | 1,718 | py | Python | main.py | HsudongDai/zhihu_crawler | 5a40dd4f1ab74f7350cad98a0a062f6cd764d41a | [
"Apache-2.0"
] | 4 | 2020-02-24T15:07:20.000Z | 2020-03-23T18:41:04.000Z | main.py | HsudongDai/zhihu_crawler | 5a40dd4f1ab74f7350cad98a0a062f6cd764d41a | [
"Apache-2.0"
] | null | null | null | main.py | HsudongDai/zhihu_crawler | 5a40dd4f1ab74f7350cad98a0a062f6cd764d41a | [
"Apache-2.0"
] | null | null | null | import argparse
from firstDemo.spiders.indexZhihu import get_all_problem_urls, insert_all_into_db
from firstDemo.spiders.multithread import multi_check_info
from firstDemo.spiders.mysql_connect import connect_mysql, close_mysql
from firstDemo.spiders.toXlsx import read_mysql_to_xlsx
def main(config) :
# 四个知乎目标网页... | 38.177778 | 98 | 0.72759 | 244 | 1,718 | 4.844262 | 0.401639 | 0.043993 | 0.067682 | 0.054146 | 0.125212 | 0.125212 | 0.125212 | 0.125212 | 0.125212 | 0 | 0 | 0.021888 | 0.14901 | 1,718 | 44 | 99 | 39.045455 | 0.786594 | 0.096042 | 0 | 0 | 0 | 0.148148 | 0.223232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0.074074 | 0.185185 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0f566878813ceca0814b10ae7d2a87aeed5041a1 | 687 | py | Python | csob/resources/payment/__init__.py | druids/csob-paymentgateway | 64e5e84ad4a0239f716855e12ee70364ab4414df | [
"MIT"
] | null | null | null | csob/resources/payment/__init__.py | druids/csob-paymentgateway | 64e5e84ad4a0239f716855e12ee70364ab4414df | [
"MIT"
] | 3 | 2019-03-13T10:28:35.000Z | 2019-04-04T10:56:59.000Z | csob/resources/payment/__init__.py | druids/csob-paymentgateway | 64e5e84ad4a0239f716855e12ee70364ab4414df | [
"MIT"
] | 1 | 2019-03-11T02:32:14.000Z | 2019-03-11T02:32:14.000Z | from typing import Dict
from csob.resources import CSOBResource
class PaymentCSOBResource(CSOBResource):
"""
This class holds common return request signature.
"""
response_signature = ('payId', 'dttm', 'resultCode', 'resultMessage', 'paymentStatus', 'authCode')
optional_response_signature = ('pay... | 25.444444 | 102 | 0.633188 | 78 | 687 | 5.346154 | 0.551282 | 0.047962 | 0.079137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.267831 | 687 | 26 | 103 | 26.423077 | 0.829026 | 0.229985 | 0 | 0 | 0 | 0 | 0.172489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
0f589c389c0a35feb8930f6f93e1c09a62fdc5f6 | 4,840 | py | Python | sdk/python/pulumi_azure_native/storsimple/get_storage_domain.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/storsimple/get_storage_domain.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/storsimple/get_storage_domain.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilities, _tables
from ... | 35.588235 | 140 | 0.665702 | 536 | 4,840 | 5.690299 | 0.225746 | 0.05541 | 0.094426 | 0.10623 | 0.178689 | 0.027541 | 0.027541 | 0 | 0 | 0 | 0 | 0.002444 | 0.239256 | 4,840 | 135 | 141 | 35.851852 | 0.82591 | 0.124174 | 0 | 0.103448 | 1 | 0 | 0.162923 | 0.062454 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.068966 | 0 | 0.287356 | 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 |
0f5ede81ceedb1df0c0e956d95c118a9c8092b30 | 9,048 | py | Python | CI-Python/qa327_test/frontend/test_login.py | TankyFranky/CMPE-327-SOFT_QUAL_ASSU | ab2aae11a5d8ca2d943357b9da144a601b84f869 | [
"MIT"
] | 1 | 2021-01-11T18:36:09.000Z | 2021-01-11T18:36:09.000Z | CI-Python/qa327_test/frontend/test_login.py | E-Leask/CMPE-327-SOFT_QUAL_ASSU-1 | ab2aae11a5d8ca2d943357b9da144a601b84f869 | [
"MIT"
] | null | null | null | CI-Python/qa327_test/frontend/test_login.py | E-Leask/CMPE-327-SOFT_QUAL_ASSU-1 | ab2aae11a5d8ca2d943357b9da144a601b84f869 | [
"MIT"
] | 2 | 2021-01-11T18:34:53.000Z | 2021-01-18T18:22:46.000Z | import pytest
import numpy as np
from faker import Faker
from seleniumbase import BaseCase
from qa327_test.conftest import base_url
from unittest.mock import patch
from qa327.models import db, User
from werkzeug.security import generate_password_hash, check_password_hash
"""
This file defines all unit tests for the f... | 38.016807 | 112 | 0.638594 | 1,238 | 9,048 | 4.545234 | 0.174475 | 0.042652 | 0.039275 | 0.029323 | 0.583259 | 0.555891 | 0.543629 | 0.518927 | 0.507197 | 0.484628 | 0 | 0.020723 | 0.248011 | 9,048 | 237 | 113 | 38.177215 | 0.80629 | 0.35599 | 0 | 0.603448 | 0 | 0 | 0.23674 | 0.017742 | 0 | 0 | 0 | 0 | 0.284483 | 1 | 0.086207 | false | 0.181034 | 0.068966 | 0 | 0.163793 | 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 |
0f63ec3aad9139ee87dfdfee3a77a20751d39ac5 | 22,485 | py | Python | src/djpaypal/migrations/0001_initial.py | F4ever/dj-paypal | 30da550371ef1498efb06ec799644864acc17e01 | [
"MIT"
] | 71 | 2017-11-12T01:50:03.000Z | 2022-03-27T02:13:51.000Z | src/djpaypal/migrations/0001_initial.py | F4ever/dj-paypal | 30da550371ef1498efb06ec799644864acc17e01 | [
"MIT"
] | 10 | 2017-11-18T12:10:12.000Z | 2021-04-17T14:36:44.000Z | src/djpaypal/migrations/0001_initial.py | F4ever/dj-paypal | 30da550371ef1498efb06ec799644864acc17e01 | [
"MIT"
] | 16 | 2018-09-27T13:00:41.000Z | 2021-12-24T06:39:35.000Z | # Generated by Django 2.0 on 2017-12-02 22:46
import django.contrib.postgres.fields.jsonb
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
import djpaypal.fields
import djpaypal.utils
class Migration(migrations.Migration):
initial = True
dependencies = [... | 31.142659 | 92 | 0.632155 | 2,239 | 22,485 | 6.177311 | 0.162573 | 0.057335 | 0.028921 | 0.039766 | 0.574651 | 0.51587 | 0.442412 | 0.383053 | 0.327308 | 0.290651 | 0 | 0.007907 | 0.212542 | 22,485 | 721 | 93 | 31.185853 | 0.773241 | 0.001912 | 0 | 0.482468 | 1 | 0 | 0.288369 | 0.044162 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.008415 | 0 | 0.014025 | 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 |
0f6b0a3db192b314fff59ed5a39a77b34a54ff73 | 574 | py | Python | lona/shell/shell.py | korantu/lona | 5039fa59f37cc32b9c789753af2ed8a8670ab611 | [
"MIT"
] | 230 | 2021-08-15T20:46:24.000Z | 2022-03-30T10:17:43.000Z | lona/shell/shell.py | korantu/lona | 5039fa59f37cc32b9c789753af2ed8a8670ab611 | [
"MIT"
] | 176 | 2021-08-18T08:19:37.000Z | 2022-03-29T16:45:06.000Z | lona/shell/shell.py | korantu/lona | 5039fa59f37cc32b9c789753af2ed8a8670ab611 | [
"MIT"
] | 13 | 2021-08-20T10:35:04.000Z | 2022-01-17T15:49:40.000Z | from rlpython import embed
def load_commands(server):
import_strings = server.settings.CORE_COMMANDS + server.settings.COMMANDS
commands = []
for import_string in import_strings:
commands.append(server.acquire(import_string))
return commands
def embed_shell(server, **embed_kwargs):
emb... | 22.96 | 77 | 0.736934 | 69 | 574 | 5.855072 | 0.333333 | 0.190594 | 0.133663 | 0.108911 | 0.292079 | 0.292079 | 0.292079 | 0.292079 | 0.292079 | 0.292079 | 0 | 0 | 0.162021 | 574 | 24 | 78 | 23.916667 | 0.839917 | 0 | 0 | 0.142857 | 0 | 0 | 0.050523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.285714 | 0 | 0.642857 | 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 |
0f6e69f96f04a64b79ac8ff6b390ea01e54994a3 | 2,148 | py | Python | LR_3.py | dhruwill/Machine-Learning-A2 | cb6bca0802dd87420f80520851725d1766358589 | [
"MIT"
] | null | null | null | LR_3.py | dhruwill/Machine-Learning-A2 | cb6bca0802dd87420f80520851725d1766358589 | [
"MIT"
] | null | null | null | LR_3.py | dhruwill/Machine-Learning-A2 | cb6bca0802dd87420f80520851725d1766358589 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import random
import math
from sklearn.model_selection import train_test_split
import matplotlib.pyplot as plt
def sigmoid(z):
return 1 / (1 + np.exp(-z))
def predict(X, w, b):
return np.round(sigmoid(np.dot(X, w)+ b))
def loss(y_pred,t):
return np.mean(-t*np.log(y_pr... | 24.976744 | 83 | 0.616853 | 376 | 2,148 | 3.369681 | 0.281915 | 0.031571 | 0.055249 | 0.014207 | 0.063141 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035253 | 0.207635 | 2,148 | 86 | 84 | 24.976744 | 0.709166 | 0.046089 | 0 | 0 | 0 | 0 | 0.03769 | 0.016642 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.098361 | null | null | 0.081967 | 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 |
0f7152278147cddebefbfd6e0397a2784a9ead37 | 1,257 | py | Python | ef/config/components/boundary_conditions.py | JacobMSD/ef_python | 13d785c10dd293c60ab90065c518e5afb14e5a02 | [
"MIT"
] | null | null | null | ef/config/components/boundary_conditions.py | JacobMSD/ef_python | 13d785c10dd293c60ab90065c518e5afb14e5a02 | [
"MIT"
] | null | null | null | ef/config/components/boundary_conditions.py | JacobMSD/ef_python | 13d785c10dd293c60ab90065c518e5afb14e5a02 | [
"MIT"
] | null | null | null | __all__ = ["BoundaryConditions", "BoundaryConditionsConf"]
from collections import namedtuple
import numpy as np
from ef.config.section import register, ConfigSection
from ef.config.component import ConfigComponent
class BoundaryConditions(ConfigComponent):
def __init__(self, potential=0):
self.potenti... | 35.914286 | 96 | 0.692124 | 136 | 1,257 | 6.183824 | 0.485294 | 0.104637 | 0.028537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007056 | 0.210819 | 1,257 | 34 | 97 | 36.970588 | 0.840726 | 0 | 0 | 0 | 0 | 0 | 0.180589 | 0.0358 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.041667 | 0.625 | 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 |
0f7251865b5f737dd116c37b13acf16396a4aadb | 625 | py | Python | ola_rent/tests/test_vehicles.py | UL-CS5722/car-renting-system | 73ee27aa6f24b92e006e42fcc1283056a079c408 | [
"MIT"
] | null | null | null | ola_rent/tests/test_vehicles.py | UL-CS5722/car-renting-system | 73ee27aa6f24b92e006e42fcc1283056a079c408 | [
"MIT"
] | null | null | null | ola_rent/tests/test_vehicles.py | UL-CS5722/car-renting-system | 73ee27aa6f24b92e006e42fcc1283056a079c408 | [
"MIT"
] | null | null | null | import unittest
from ..utils import GearType
from ..vehicles import Director, HyundaiBuilder
class TestVehicleBuilder(unittest.TestCase):
def test_create_hyundai_car(self):
# arrange
hyundai_builder = Director(HyundaiBuilder())
# act
hyundai_builder.build_car()
hyundai = ... | 27.173913 | 61 | 0.6912 | 64 | 625 | 6.53125 | 0.53125 | 0.179426 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010225 | 0.2176 | 625 | 22 | 62 | 28.409091 | 0.844581 | 0.0288 | 0 | 0 | 0 | 0 | 0.026578 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.384615 | 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 |
0f74425b972c481b1cc49b0fc67d415fa308e93c | 522 | py | Python | setup.py | karlduderstadt/marspylib | 484ea1256bbd9091c035d160e8195e262aaff4df | [
"BSD-2-Clause"
] | null | null | null | setup.py | karlduderstadt/marspylib | 484ea1256bbd9091c035d160e8195e262aaff4df | [
"BSD-2-Clause"
] | null | null | null | setup.py | karlduderstadt/marspylib | 484ea1256bbd9091c035d160e8195e262aaff4df | [
"BSD-2-Clause"
] | null | null | null | from setuptools import setup, find_packages
from os import path
setup(
name='marspylib',
packages=find_packages(),
version="0.1.1",
description='Library containing python Fiji launcher and python functions to interact with Mars Archives',
author='Karl Duderstadt, Nadia Huisjes, Thomas Retzer',
... | 30.705882 | 110 | 0.714559 | 63 | 522 | 5.825397 | 0.761905 | 0.065395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006849 | 0.16092 | 522 | 16 | 111 | 32.625 | 0.83105 | 0 | 0 | 0 | 0 | 0 | 0.442529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.133333 | 0 | 0.133333 | 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 |
0f74b70d83859716ce18c62f3167971cea0279a5 | 1,609 | py | Python | zun/network/model.py | wanghuiict/zun | 2f4a3a2ba06d7ca83002418d4003ee5dece70952 | [
"Apache-2.0"
] | 83 | 2016-09-14T22:06:26.000Z | 2022-01-27T03:49:52.000Z | zun/network/model.py | wanghuiict/zun | 2f4a3a2ba06d7ca83002418d4003ee5dece70952 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | zun/network/model.py | wanghuiict/zun | 2f4a3a2ba06d7ca83002418d4003ee5dece70952 | [
"Apache-2.0"
] | 54 | 2016-09-29T10:16:02.000Z | 2022-01-28T19:12:49.000Z | # Copyright 2017 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | 43.486486 | 78 | 0.75637 | 238 | 1,609 | 4.941176 | 0.47479 | 0.102041 | 0.083333 | 0.056122 | 0.14966 | 0.062925 | 0.062925 | 0 | 0 | 0 | 0 | 0.007657 | 0.188316 | 1,609 | 36 | 79 | 44.694444 | 0.892802 | 0.684897 | 0 | 0 | 0 | 0 | 0.122153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0f77a12b510fcf2aa13c79aedf8650cdb0cd2a1c | 480 | py | Python | roles/backup/files/getdate.py | zabbixfan/tomcatdeploy | b6fc62c0cea64f0d0c849ec2deb22d08c2a922dc | [
"CC-BY-3.0"
] | null | null | null | roles/backup/files/getdate.py | zabbixfan/tomcatdeploy | b6fc62c0cea64f0d0c849ec2deb22d08c2a922dc | [
"CC-BY-3.0"
] | null | null | null | roles/backup/files/getdate.py | zabbixfan/tomcatdeploy | b6fc62c0cea64f0d0c849ec2deb22d08c2a922dc | [
"CC-BY-3.0"
] | null | null | null | import os,sys
def getdir(path):
dirs=[]
for dir in os.listdir(path):
if os.path.isdir(os.path.join(path,dir)):
if dir != "latest":
dirs.append(dir)
date=[dir[0:10] for dir in dirs]
max = date[0]
for i in date:
if i > max:
max = i
lastdat... | 24 | 51 | 0.5125 | 76 | 480 | 3.236842 | 0.368421 | 0.04878 | 0.065041 | 0.056911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.3625 | 480 | 19 | 52 | 25.263158 | 0.784314 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.052632 | 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 |
0f82d849636aed107547272bbc05dde19632177a | 723 | py | Python | package/migrations/0010_auto_20210929_0943.py | smithdc1/djangopackages | 8762a787fe968cbf5f772c6199d1362743c85db9 | [
"MIT"
] | null | null | null | package/migrations/0010_auto_20210929_0943.py | smithdc1/djangopackages | 8762a787fe968cbf5f772c6199d1362743c85db9 | [
"MIT"
] | null | null | null | package/migrations/0010_auto_20210929_0943.py | smithdc1/djangopackages | 8762a787fe968cbf5f772c6199d1362743c85db9 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-29 09:43
from django.db import migrations
def migrate_license(apps, schema_editor):
"""
Migrate license from charfield to ArrayField.
This migration copies data from the old license column to the new
licenses column which is a ArrayField.
"""
Version = ap... | 27.807692 | 69 | 0.674965 | 87 | 723 | 5.505747 | 0.655172 | 0.087683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.228216 | 723 | 25 | 70 | 28.92 | 0.802867 | 0.272476 | 0 | 0 | 1 | 0 | 0.089641 | 0.045817 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 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 |
0f83482836d25e9f0e5005fda50f00b136194897 | 1,033 | py | Python | tests/conftest.py | amirassov/mmcv | aa517bbc62823d2c68753dd33ca1f840a75ceb2c | [
"MIT"
] | 10 | 2020-02-10T10:43:59.000Z | 2021-04-22T11:32:16.000Z | tests/conftest.py | amirassov/mmcv | aa517bbc62823d2c68753dd33ca1f840a75ceb2c | [
"MIT"
] | 3 | 2020-07-16T14:06:28.000Z | 2020-07-16T14:06:38.000Z | tests/conftest.py | amirassov/mmcv | aa517bbc62823d2c68753dd33ca1f840a75ceb2c | [
"MIT"
] | 2 | 2019-12-23T07:52:56.000Z | 2019-12-23T08:20:30.000Z | import tempfile
import pytest
import torch
import torch.nn as nn
from ppln.batch_processor import BaseBatchProcessor
from ppln.hooks import IterTimerHook, LogBufferHook, ProgressBarLoggerHook, TextLoggerHook
from ppln.runner import Runner
class SimpleBatchProcessor(BaseBatchProcessor):
def train_step(self, mode... | 30.382353 | 104 | 0.701839 | 117 | 1,033 | 6.119658 | 0.487179 | 0.055866 | 0.067039 | 0.050279 | 0.067039 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011806 | 0.180058 | 1,033 | 33 | 105 | 31.30303 | 0.83353 | 0 | 0 | 0 | 0 | 0 | 0.031946 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.269231 | 0.038462 | 0.538462 | 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 |
0f86f122e226ea8e3a153ded3ab3359a41486f01 | 954 | py | Python | tieba/run.py | changleibox/TiebaCrawler | d4f0af508660d4e6d38cdb410ce2711117d13f3a | [
"Apache-2.0"
] | 21 | 2018-03-15T05:41:46.000Z | 2021-07-27T00:06:15.000Z | tieba/run.py | changleibox/TiebaCrawler | d4f0af508660d4e6d38cdb410ce2711117d13f3a | [
"Apache-2.0"
] | 3 | 2018-06-01T09:00:52.000Z | 2020-04-16T11:39:02.000Z | tieba/run.py | changleibox/TiebaCrawler | d4f0af508660d4e6d38cdb410ce2711117d13f3a | [
"Apache-2.0"
] | 9 | 2018-06-07T02:19:33.000Z | 2021-07-29T02:55:18.000Z | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import logging
# Created by box on 2018/3/7.
from scrapy import cmdline
from scrapy.crawler import CrawlerRunner
from scrapy.utils.log import configure_logging
from scrapy.utils.project import get_project_settings
from twisted.internet import reactor
from tieba import sp... | 24.461538 | 57 | 0.744235 | 117 | 954 | 5.905983 | 0.57265 | 0.057887 | 0.043415 | 0.072359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00875 | 0.161426 | 954 | 38 | 58 | 25.105263 | 0.855 | 0.203354 | 0 | 0 | 0 | 0 | 0.083554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0f8836c0717e5acc2e4ff34134a14d17e5181834 | 59,671 | py | Python | Software/Utils.py | hrch3n/cNMA | 32bfffc707487fa0964543d17b1fe89f089e09d5 | [
"MIT"
] | 3 | 2021-02-09T02:32:33.000Z | 2021-09-14T22:18:26.000Z | Software/Utils.py | hrch3n/cNMA | 32bfffc707487fa0964543d17b1fe89f089e09d5 | [
"MIT"
] | 1 | 2018-03-09T19:28:42.000Z | 2018-03-30T20:08:50.000Z | Software/Utils.py | hrch3n/cNMA | 32bfffc707487fa0964543d17b1fe89f089e09d5 | [
"MIT"
] | 6 | 2018-12-05T14:49:26.000Z | 2019-11-07T03:44:18.000Z | '''
Created on Nov 6, 2013
@author: oliwa
'''
import glob
import sys
import os as os
import errno as errno
#from pylab import *
import numpy as np, numpy
import StringIO
from os.path import basename, splitext
from prody.proteins.pdbfile import parsePDBStream, writePDB, parsePDB,\
writePDBStream
from prody.dynamics.a... | 40.372801 | 275 | 0.696938 | 7,501 | 59,671 | 5.514198 | 0.131449 | 0.007616 | 0.004642 | 0.005972 | 0.47239 | 0.439316 | 0.408563 | 0.379116 | 0.356293 | 0.33156 | 0 | 0.016009 | 0.188701 | 59,671 | 1,477 | 276 | 40.400135 | 0.838384 | 0.147743 | 0 | 0.431373 | 0 | 0.001153 | 0.053776 | 0.004826 | 0.001153 | 0 | 0 | 0 | 0.064591 | 0 | null | null | 0.002307 | 0.023068 | null | null | 0.062284 | 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 |
0f8f2aacc8514e4516692fc26b979b7849116605 | 1,436 | py | Python | main.py | openbikeshare/fleet | 0dbb526c22a489f24395e051fae28e57f11f9200 | [
"MIT"
] | 5 | 2018-07-02T11:15:36.000Z | 2020-06-24T18:20:31.000Z | main.py | openbikeshare/fleet | 0dbb526c22a489f24395e051fae28e57f11f9200 | [
"MIT"
] | 2 | 2018-09-05T17:01:14.000Z | 2020-12-10T18:53:07.000Z | main.py | openbikeshare/fleet | 0dbb526c22a489f24395e051fae28e57f11f9200 | [
"MIT"
] | 2 | 2018-07-14T22:02:35.000Z | 2018-11-21T18:22:15.000Z | import citybikes.importer
import ovfiets.importer
import flickbike.importer
import donkey.importer
import gbfs_importer.importer
import cacher.cacher
import time
import psycopg2
import configparser
import os
import redis
config = configparser.ConfigParser()
config.read('config.ini')
importers = [
citybikes.import... | 26.109091 | 94 | 0.722841 | 173 | 1,436 | 5.884393 | 0.439306 | 0.082515 | 0.039293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004946 | 0.155292 | 1,436 | 54 | 95 | 26.592593 | 0.834295 | 0 | 0 | 0 | 0 | 0 | 0.149025 | 0.037604 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0.021277 | 0.468085 | 0 | 0.489362 | 0.06383 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.