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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d50e38b4436996a86358f93fec933eba9f611e79 | 1,444 | py | Python | gpMgmt/bin/gppylib/system/info.py | henglabs/gpdb | 09a8cc05ac90d63c64c6d432ca35179b55a461b2 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | gpMgmt/bin/gppylib/system/info.py | henglabs/gpdb | 09a8cc05ac90d63c64c6d432ca35179b55a461b2 | [
"PostgreSQL",
"Apache-2.0"
] | 6 | 2018-08-04T07:51:37.000Z | 2018-11-26T07:09:44.000Z | gpMgmt/bin/gppylib/system/info.py | henglabs/gpdb | 09a8cc05ac90d63c64c6d432ca35179b55a461b2 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python2
import psutil
import os
import resource
PERCENTAGE_OF_AVAIL_MEM_USED_FOR_THREADS = 0.8 # allow 20% of memory to remain for parent process
MB = 1024 * 1024
class SystemInfo():
def __init__(self, logger=None):
self.logger = logger
self.pid = os.getpid()
self.process... | 37.025641 | 100 | 0.684211 | 205 | 1,444 | 4.62439 | 0.429268 | 0.052743 | 0.050633 | 0.06962 | 0.297468 | 0.297468 | 0.297468 | 0.092827 | 0.092827 | 0 | 0 | 0.028219 | 0.214681 | 1,444 | 38 | 101 | 38 | 0.80776 | 0.193906 | 0 | 0.115385 | 0 | 0 | 0.088946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.115385 | null | null | 0.115385 | 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 |
d512c28fea834deb32f740e0aa3316048ab66926 | 28,584 | py | Python | intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_widsprofile.py | Stienvdh/statrick | 7b092fc42171e226718a70a285a4b323f2f395ad | [
"MIT"
] | null | null | null | intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_widsprofile.py | Stienvdh/statrick | 7b092fc42171e226718a70a285a4b323f2f395ad | [
"MIT"
] | null | null | null | intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_widsprofile.py | Stienvdh/statrick | 7b092fc42171e226718a70a285a4b323f2f395ad | [
"MIT"
] | null | null | null | #!/usr/bin/python
from __future__ import absolute_import, division, print_function
# Copyright 2019-2020 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the ... | 37.170351 | 153 | 0.45347 | 2,380 | 28,584 | 5.397899 | 0.170168 | 0.060715 | 0.059158 | 0.03892 | 0.597883 | 0.498793 | 0.374796 | 0.257103 | 0.222387 | 0.150463 | 0 | 0.008565 | 0.452666 | 28,584 | 768 | 154 | 37.21875 | 0.812592 | 0.02316 | 0 | 0.467302 | 0 | 0.014986 | 0.663597 | 0.047121 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001362 | false | 0.012262 | 0.008174 | 0 | 0.009537 | 0.001362 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d5161ee643fd8eb47150a8f8753fb52dd77c929d | 1,041 | py | Python | Day_14_Web_Automation/using_soup.py | ValRCS/Python_TietoEvry_Sep2021 | e11dac38deb17ba695ce8ad9dab9cf78b4adb99d | [
"MIT"
] | null | null | null | Day_14_Web_Automation/using_soup.py | ValRCS/Python_TietoEvry_Sep2021 | e11dac38deb17ba695ce8ad9dab9cf78b4adb99d | [
"MIT"
] | null | null | null | Day_14_Web_Automation/using_soup.py | ValRCS/Python_TietoEvry_Sep2021 | e11dac38deb17ba695ce8ad9dab9cf78b4adb99d | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup as bs
url = "https://mdn.github.io/beginner-html-site/"
response = requests.get(url) # this is like going to our browser and going to the url
print(response.status_code) # 200 would be good 404 would be bad
print(response.text[:500]) # first 500 characters
# i could ... | 34.7 | 119 | 0.725264 | 175 | 1,041 | 4.285714 | 0.554286 | 0.04 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01986 | 0.177714 | 1,041 | 29 | 120 | 35.896552 | 0.856308 | 0.422671 | 0 | 0 | 0 | 0 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.5 | 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 |
1d104c346e0068edf275b4da688d477b842fa904 | 1,574 | py | Python | nobos_commons/tools/skeleton_converters/skeleton_converter_openpose_to_stickman.py | noboevbo/nobos_commons | 471e52e10fd2228c106777c72d8439e58b047003 | [
"MIT"
] | 2 | 2020-06-03T16:28:44.000Z | 2020-10-10T03:07:23.000Z | nobos_commons/tools/skeleton_converters/skeleton_converter_openpose_to_stickman.py | noboevbo/nobos_commons | 471e52e10fd2228c106777c72d8439e58b047003 | [
"MIT"
] | null | null | null | nobos_commons/tools/skeleton_converters/skeleton_converter_openpose_to_stickman.py | noboevbo/nobos_commons | 471e52e10fd2228c106777c72d8439e58b047003 | [
"MIT"
] | 4 | 2020-10-10T03:07:25.000Z | 2021-09-30T01:11:02.000Z | from nobos_commons.data_structures.skeletons.joint_2d import Joint2D
from nobos_commons.data_structures.skeletons.skeleton_openpose import SkeletonOpenPose
from nobos_commons.data_structures.skeletons.skeleton_stickman import SkeletonStickman
from nobos_commons.tools.skeleton_converters.skeleton_converter_base import S... | 54.275862 | 101 | 0.783355 | 172 | 1,574 | 6.790698 | 0.313953 | 0.164384 | 0.068493 | 0.05137 | 0.310788 | 0.257705 | 0.224315 | 0.143836 | 0 | 0 | 0 | 0.00228 | 0.163914 | 1,574 | 28 | 102 | 56.214286 | 0.885258 | 0.00953 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.238095 | 0 | 0.52381 | 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 |
1d15bde016dd4de1da80cd8a026ea9c83575ce81 | 1,073 | py | Python | structural/facade.py | zhengxiaowai/python-javascript-design-patterns | 867ef54c34994752afd77fd0ac54b99567ccfa52 | [
"MIT"
] | 6 | 2019-03-13T03:09:36.000Z | 2021-06-05T03:05:02.000Z | structural/facade.py | zhengxiaowai/python-javascript-design-patterns | 867ef54c34994752afd77fd0ac54b99567ccfa52 | [
"MIT"
] | null | null | null | structural/facade.py | zhengxiaowai/python-javascript-design-patterns | 867ef54c34994752afd77fd0ac54b99567ccfa52 | [
"MIT"
] | 3 | 2017-05-08T08:09:37.000Z | 2018-12-16T09:16:39.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
class HardWare(object):
def power_on(self):
print('上电')
def bootloader(self):
print('bootloader 启动')
def power_off(self):
print('断电')
class OperatingSystem(object):
def load_kernel(self):
print('加载内核')
def load_ima... | 17.306452 | 35 | 0.564772 | 131 | 1,073 | 4.412214 | 0.343511 | 0.124567 | 0.038062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002618 | 0.287978 | 1,073 | 61 | 36 | 17.590164 | 0.753927 | 0.040075 | 0 | 0 | 0 | 0 | 0.055447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275 | false | 0 | 0 | 0 | 0.375 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d15e5fca6a3cfc09e603b2d1645279901c17f91 | 2,479 | py | Python | bin/get_tractor_images.py | UnofficialJuliaMirrorSnapshots/SloanDigitalSkySurvey.jl-d2185075-3040-5c42-a634-a12f38dbd79b | eb7e1c57dd4552dc450f55b7daf5a02768ece9c2 | [
"Apache-2.0"
] | null | null | null | bin/get_tractor_images.py | UnofficialJuliaMirrorSnapshots/SloanDigitalSkySurvey.jl-d2185075-3040-5c42-a634-a12f38dbd79b | eb7e1c57dd4552dc450f55b7daf5a02768ece9c2 | [
"Apache-2.0"
] | null | null | null | bin/get_tractor_images.py | UnofficialJuliaMirrorSnapshots/SloanDigitalSkySurvey.jl-d2185075-3040-5c42-a634-a12f38dbd79b | eb7e1c57dd4552dc450f55b7daf5a02768ece9c2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#
# Load a processed image from the tractor. Note that as of writing,
# the masking was incorrect.
# https://github.com/dstndstn/tractor
from tractor.sdss import *
import argparse
import numpy
import copy
parser = argparse.ArgumentParser()
parser.add_argument('--run', type=int, help='The run numbe... | 35.927536 | 91 | 0.684954 | 376 | 2,479 | 4.364362 | 0.353723 | 0.043876 | 0.055454 | 0.034126 | 0.200488 | 0.200488 | 0.119439 | 0.040219 | 0 | 0 | 0 | 0.020703 | 0.162162 | 2,479 | 68 | 92 | 36.455882 | 0.769379 | 0.137555 | 0 | 0.088889 | 0 | 0 | 0.145677 | 0.027726 | 0 | 0 | 0 | 0 | 0.044444 | 0 | null | null | 0 | 0.088889 | null | null | 0.066667 | 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 |
1d1b365fd024751f6d54bd88a92a0b8989bda34d | 4,136 | py | Python | simulation.py | thiagogvasc/CPU_Scheduler_Simulator | 94811a841c70324977a9c3018498d4430c8d0c8d | [
"MIT"
] | 1 | 2021-09-27T19:34:23.000Z | 2021-09-27T19:34:23.000Z | simulation.py | thiagogvasc/CPU_Scheduler_Simulator | 94811a841c70324977a9c3018498d4430c8d0c8d | [
"MIT"
] | null | null | null | simulation.py | thiagogvasc/CPU_Scheduler_Simulator | 94811a841c70324977a9c3018498d4430c8d0c8d | [
"MIT"
] | null | null | null | from process import Process
from process import State
class Simulation:
def __init__(self, data, cpu, scheduling):
self.data = data
self.cpu = cpu
self.scheduling = scheduling
self.processes = []
### Initiate all processes at the same time since they all arrive at t = 0
... | 35.050847 | 119 | 0.513056 | 384 | 4,136 | 5.515625 | 0.242188 | 0.071766 | 0.104344 | 0.098206 | 0.2644 | 0.141171 | 0.067044 | 0.035883 | 0.035883 | 0 | 0 | 0.019383 | 0.326402 | 4,136 | 118 | 120 | 35.050847 | 0.740847 | 0.109043 | 0 | 0.184211 | 0 | 0 | 0.096933 | 0.025739 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039474 | false | 0 | 0.026316 | 0 | 0.105263 | 0.407895 | 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 |
1d1f9fcbbb37433750287eddb3640351f06bec42 | 1,133 | py | Python | week4_ml/aiDB.py | ohmink/relay_02 | a974ddde36bddd53da088f4cb6831dfd6caab363 | [
"MIT"
] | 1 | 2020-07-27T02:27:38.000Z | 2020-07-27T02:27:38.000Z | week4_ml/aiDB.py | ohmink/relay_02 | a974ddde36bddd53da088f4cb6831dfd6caab363 | [
"MIT"
] | 5 | 2020-08-07T10:37:21.000Z | 2020-08-28T13:45:24.000Z | week4_ml/aiDB.py | ohmink/relay_02 | a974ddde36bddd53da088f4cb6831dfd6caab363 | [
"MIT"
] | 18 | 2020-07-27T02:26:23.000Z | 2020-11-22T14:00:41.000Z | import sqlite3
class AI_DB(object):
def __init__(self, db_file_name):
self.conn = sqlite3.connect(db_file_name)
self.cur = self.conn.cursor()
def read_1_data(self, user_id):
query = "SELECT * FROM user WHERE user_id="+str(user_id)
self.cur.execute(query)
row = self.cur.f... | 34.333333 | 149 | 0.647838 | 164 | 1,133 | 4.268293 | 0.347561 | 0.06 | 0.06 | 0.081429 | 0.162857 | 0.111429 | 0.111429 | 0.111429 | 0.111429 | 0.111429 | 0 | 0.013438 | 0.211827 | 1,133 | 33 | 150 | 34.333333 | 0.770437 | 0 | 0 | 0.136364 | 0 | 0 | 0.166874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.045455 | 0 | 0.409091 | 0.045455 | 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 |
1d2091a4f0b3e46a4db950ff0f719b2257caf316 | 894 | py | Python | FormManagement/migrations/0001_initial.py | SajedeNick1999/Payslip-Management- | 21e40c5c3ea040733d609a014b66b24135624b73 | [
"MIT"
] | 1 | 2020-08-16T14:27:00.000Z | 2020-08-16T14:27:00.000Z | FormManagement/migrations/0001_initial.py | SajedeNick1999/Payslip-Management-System | 21e40c5c3ea040733d609a014b66b24135624b73 | [
"MIT"
] | null | null | null | FormManagement/migrations/0001_initial.py | SajedeNick1999/Payslip-Management-System | 21e40c5c3ea040733d609a014b66b24135624b73 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-08-05 20:30
import django.contrib.postgres.fields
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
('CompanyManagement', '0001_initial'),
]
operat... | 33.111111 | 190 | 0.66443 | 100 | 894 | 5.88 | 0.58 | 0.066327 | 0.107143 | 0.137755 | 0.164966 | 0.164966 | 0.164966 | 0.164966 | 0 | 0 | 0 | 0.033946 | 0.209172 | 894 | 26 | 191 | 34.384615 | 0.797737 | 0.050336 | 0 | 0 | 1 | 0 | 0.087367 | 0.029516 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.210526 | 0 | 0.421053 | 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 |
1d2c2ca209438ffb90502eb7f25d0addf8d1f7be | 1,008 | py | Python | jobapplications/migrations/0005_auto_20200204_1927.py | MattYu/ConcordiaAce | 35eff7614652eb548e532dcf00e3a7296855285c | [
"MIT"
] | 1 | 2021-06-14T06:54:16.000Z | 2021-06-14T06:54:16.000Z | jobapplications/migrations/0005_auto_20200204_1927.py | MattYu/ConcordiaAce | 35eff7614652eb548e532dcf00e3a7296855285c | [
"MIT"
] | 34 | 2020-04-05T01:14:31.000Z | 2022-03-12T00:23:02.000Z | jobapplications/migrations/0005_auto_20200204_1927.py | MattYu/ConcordiaAce | 35eff7614652eb548e532dcf00e3a7296855285c | [
"MIT"
] | null | null | null | # Generated by Django 3.0 on 2020-02-05 00:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('jobapplications', '0004_auto_20200204_0004'),
]
operations = [
migrations.RemoveField(
model_name='ranking',
name='pre... | 36 | 391 | 0.605159 | 98 | 1,008 | 6.132653 | 0.591837 | 0.044925 | 0.079867 | 0.099834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041995 | 0.244048 | 1,008 | 27 | 392 | 37.333333 | 0.746719 | 0.042659 | 0 | 0.285714 | 1 | 0 | 0.334372 | 0.023884 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.190476 | 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 |
1d33730ba8242d67e963d725e4217ef2f0090f05 | 4,543 | py | Python | scripts/plot_Figure5.py | pabloitu/pycsep_esrl-1 | 45a668f48d69e4d63ddc796641486ad6894abcf8 | [
"BSD-3-Clause"
] | null | null | null | scripts/plot_Figure5.py | pabloitu/pycsep_esrl-1 | 45a668f48d69e4d63ddc796641486ad6894abcf8 | [
"BSD-3-Clause"
] | null | null | null | scripts/plot_Figure5.py | pabloitu/pycsep_esrl-1 | 45a668f48d69e4d63ddc796641486ad6894abcf8 | [
"BSD-3-Clause"
] | null | null | null | # Python imports
import os
import json
import time
# 3rd party impoorts
import numpy as np
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
# pycsep imports
from csep import load_catalog_forecast, load_catalog, load_json, load_evaluation_result
from csep.models import Event, Polygon
from csep.core.regions i... | 31.548611 | 130 | 0.77812 | 646 | 4,543 | 5.205882 | 0.334365 | 0.023788 | 0.014868 | 0.012489 | 0.122807 | 0.074338 | 0.028546 | 0.028546 | 0 | 0 | 0 | 0.021527 | 0.120625 | 4,543 | 143 | 131 | 31.769231 | 0.820275 | 0 | 0 | 0.020619 | 0 | 0 | 0.18377 | 0.080899 | 0 | 0 | 0 | 0 | 0.010309 | 0 | null | null | 0 | 0.175258 | null | null | 0.061856 | 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 |
1d35558c44b6bfc95ffc8fcf84f3cf401084c10d | 981 | py | Python | resource_tracker/migrations/0005_auto_20211015_1015.py | LaudateCorpus1/squest | 98304f20c1d966fb3678d348ffd7c5be438bb6be | [
"Apache-2.0"
] | 112 | 2021-04-21T08:52:55.000Z | 2022-03-01T15:09:19.000Z | resource_tracker/migrations/0005_auto_20211015_1015.py | LaudateCorpus1/squest | 98304f20c1d966fb3678d348ffd7c5be438bb6be | [
"Apache-2.0"
] | 216 | 2021-04-21T09:06:47.000Z | 2022-03-30T14:21:28.000Z | resource_tracker/migrations/0005_auto_20211015_1015.py | LaudateCorpus1/squest | 98304f20c1d966fb3678d348ffd7c5be438bb6be | [
"Apache-2.0"
] | 21 | 2021-04-20T13:53:54.000Z | 2022-03-30T21:43:04.000Z | # Generated by Django 3.2.7 on 2021-10-15 08:15
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('resource_tracker', '0004_alter_resourcepoolattributedefinition_resource_pool'),
]
operations = [
migrations.RenameField(
model_name='res... | 30.65625 | 89 | 0.641182 | 76 | 981 | 8 | 0.486842 | 0.118421 | 0.167763 | 0.133224 | 0.391447 | 0.317434 | 0.197368 | 0.197368 | 0.197368 | 0.197368 | 0 | 0.026243 | 0.261978 | 981 | 31 | 90 | 31.645161 | 0.813536 | 0.045872 | 0 | 0.56 | 1 | 0 | 0.344754 | 0.259101 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.16 | 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 |
1d37a59aae5cc6ed60f5f202bfb527001981286e | 5,033 | py | Python | api/core/migrations/0001_initial.py | JRMurr/rps | 24aafbbe367e5286c3dcde86f67f8b805ddda0d4 | [
"MIT"
] | 1 | 2019-09-22T20:56:17.000Z | 2019-09-22T20:56:17.000Z | api/core/migrations/0001_initial.py | JRMurr/rps | 24aafbbe367e5286c3dcde86f67f8b805ddda0d4 | [
"MIT"
] | 30 | 2019-08-09T21:56:05.000Z | 2022-02-26T15:23:49.000Z | api/core/migrations/0001_initial.py | JRMurr/rps | 24aafbbe367e5286c3dcde86f67f8b805ddda0d4 | [
"MIT"
] | 2 | 2019-10-03T01:55:28.000Z | 2019-10-06T18:23:00.000Z | # Generated by Django 2.2.5 on 2019-09-19 23:17
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permissions'),
]
operations = [
migrations.CreateModel(
... | 39.629921 | 174 | 0.53328 | 448 | 5,033 | 5.857143 | 0.234375 | 0.033537 | 0.053354 | 0.083841 | 0.597561 | 0.548399 | 0.511052 | 0.467226 | 0.467226 | 0.398247 | 0 | 0.00609 | 0.314922 | 5,033 | 126 | 175 | 39.944444 | 0.75493 | 0.008941 | 0 | 0.579832 | 1 | 0 | 0.150421 | 0.005816 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.016807 | 0 | 0.05042 | 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 |
1d3cedc3270172e5caefb6b313c05f5253f22391 | 493 | py | Python | setup.py | CUrW-SL/distributed_hechms | 0ae72d55f5b724dd41a5c322ac96804b4bbf1ee2 | [
"MIT"
] | 1 | 2019-04-17T03:21:58.000Z | 2019-04-17T03:21:58.000Z | setup.py | hasithadkr7/HecHmsDistributed | c64708d0b19c457aff9ecd0b5f235afad9744e8a | [
"MIT"
] | null | null | null | setup.py | hasithadkr7/HecHmsDistributed | c64708d0b19c457aff9ecd0b5f235afad9744e8a | [
"MIT"
] | null | null | null | from setuptools import setup,find_packages
setup(
name='hechmsd',
version='1.0.0',
packages=find_packages(),
url='http://www.curwsl.org/',
license='',
author='hasitha',
author_email='hasithadkr7@gmail.com',
description='HecHms Distributed version',
include_package_data=True,
ins... | 30.8125 | 158 | 0.6714 | 56 | 493 | 5.785714 | 0.839286 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.148073 | 493 | 15 | 159 | 32.866667 | 0.759524 | 0 | 0 | 0 | 0 | 0 | 0.361055 | 0.042596 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 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 |
1d3e8c27a40a34b66903c816d4fcbfbd7ecab82f | 1,092 | py | Python | app/auth/models.py | farooq-teqniqly/envino | b2308005b4eae47612955fb7f06d94aa0d3935c4 | [
"MIT"
] | null | null | null | app/auth/models.py | farooq-teqniqly/envino | b2308005b4eae47612955fb7f06d94aa0d3935c4 | [
"MIT"
] | null | null | null | app/auth/models.py | farooq-teqniqly/envino | b2308005b4eae47612955fb7f06d94aa0d3935c4 | [
"MIT"
] | null | null | null | from datetime import datetime
from flask_login import UserMixin
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class User(UserMixin, db.Model):
id = db.Column(db.String(32), primary_key=True)
username = db.Column(db.String(128), index=True, unique=True, nullable=False)
email = db.Column(db.St... | 40.444444 | 81 | 0.729853 | 157 | 1,092 | 5.025478 | 0.286624 | 0.131812 | 0.164766 | 0.141952 | 0.512041 | 0.458809 | 0.375158 | 0.375158 | 0.375158 | 0.375158 | 0 | 0.022222 | 0.134615 | 1,092 | 26 | 82 | 42 | 0.812698 | 0 | 0 | 0.1 | 0 | 0 | 0.005495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.95 | 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 |
1d41efd779197007998fe94e0c827bec1d9bb631 | 8,699 | py | Python | pynnotator/scripts/vcf2csv.py | raonyguimaraes/pynnotator | e1e8fde65d521e0cb5ccbda6d23ba860f6b48c81 | [
"BSD-3-Clause"
] | 21 | 2016-07-01T12:55:55.000Z | 2022-02-02T10:33:55.000Z | pynnotator/scripts/vcf2csv.py | raonyguimaraes/pynnotator | e1e8fde65d521e0cb5ccbda6d23ba860f6b48c81 | [
"BSD-3-Clause"
] | 17 | 2017-06-20T03:13:20.000Z | 2021-03-21T02:54:40.000Z | pynnotator/scripts/vcf2csv.py | raonyguimaraes/pynnotator | e1e8fde65d521e0cb5ccbda6d23ba860f6b48c81 | [
"BSD-3-Clause"
] | 4 | 2018-05-10T14:35:26.000Z | 2021-05-01T17:06:39.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
#script to convert vcf to csv
import os
import csv
from optparse import OptionParser
parser = OptionParser()
parser.add_option("-v", dest="vcf_file",
help="VCF File to Annotate", metavar="VCF")
(options, args) = parser.parse_args()
vcffile = options.vcf_fi... | 67.434109 | 4,375 | 0.779285 | 1,242 | 8,699 | 5.006441 | 0.206924 | 0.052107 | 0.020264 | 0.009167 | 0.028305 | 0.02155 | 0.011901 | 0 | 0 | 0 | 0 | 0.020346 | 0.1299 | 8,699 | 128 | 4,376 | 67.960938 | 0.801163 | 0.556961 | 0 | 0.108434 | 0 | 0.024096 | 0.143006 | 0.112735 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036145 | false | 0 | 0.036145 | 0 | 0.108434 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d44bd0ebdef847dfbc90643d4aff3a19f3aa016 | 7,065 | py | Python | scripts/swipe_parameter.py | zjc263/GPU_SDR | a57a29925b915c6eb995eb3c76c4ec34f96c3a0b | [
"Apache-2.0"
] | 9 | 2019-07-23T10:31:18.000Z | 2022-03-15T19:29:26.000Z | scripts/swipe_parameter.py | zjc263/GPU_SDR | a57a29925b915c6eb995eb3c76c4ec34f96c3a0b | [
"Apache-2.0"
] | 5 | 2019-09-11T22:31:29.000Z | 2022-01-25T18:26:56.000Z | scripts/swipe_parameter.py | zjc263/GPU_SDR | a57a29925b915c6eb995eb3c76c4ec34f96c3a0b | [
"Apache-2.0"
] | 7 | 2019-08-29T20:47:56.000Z | 2021-06-10T15:07:35.000Z | import sys,os,random
import numpy as np
try:
import pyUSRP as u
except ImportError:
try:
sys.path.append('..')
import pyUSRP as u
except ImportError:
print "Cannot find the pyUSRP package"
import argparse
if __name__ == "__main__":
parser = argparse.ArgumentParser(description=... | 39.469274 | 207 | 0.643312 | 971 | 7,065 | 4.472709 | 0.267765 | 0.024177 | 0.043058 | 0.011743 | 0.254202 | 0.242229 | 0.199862 | 0.199862 | 0.199862 | 0.199862 | 0 | 0.006038 | 0.249823 | 7,065 | 178 | 208 | 39.691011 | 0.813396 | 0.086624 | 0 | 0.33813 | 0 | 0.014388 | 0.202764 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007194 | 0.05036 | null | null | 0.05036 | 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 |
1d4a2f27cc8c4d65a589d52e588373a20a3b1dd9 | 2,181 | py | Python | src/main/python/systemds/operator/algorithm/builtin/shortestPath.py | mdbloice/systemds | d048d35869dfd6eaae9edbc35e43163a40642ce6 | [
"Apache-2.0"
] | 372 | 2017-06-09T01:02:53.000Z | 2020-06-24T05:45:00.000Z | src/main/python/systemds/operator/algorithm/builtin/shortestPath.py | mdbloice/systemds | d048d35869dfd6eaae9edbc35e43163a40642ce6 | [
"Apache-2.0"
] | 418 | 2017-06-08T16:27:44.000Z | 2020-06-25T12:15:54.000Z | src/main/python/systemds/operator/algorithm/builtin/shortestPath.py | mdbloice/systemds | d048d35869dfd6eaae9edbc35e43163a40642ce6 | [
"Apache-2.0"
] | 190 | 2017-06-08T19:32:54.000Z | 2020-06-15T12:26:12.000Z | # -------------------------------------------------------------
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you unde... | 43.62 | 155 | 0.696928 | 289 | 2,181 | 5.221453 | 0.553633 | 0.039761 | 0.01723 | 0.021206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004474 | 0.180193 | 2,181 | 49 | 156 | 44.510204 | 0.839485 | 0.715268 | 0 | 0 | 0 | 0 | 0.041367 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1d5693ace9ab2c19184b63bbc7d81a2b27ec8ba8 | 507 | py | Python | asset/api.py | 745184532/cmdb | e8e983f83ac4f5120be88983bbb73f447bd375c4 | [
"Apache-2.0"
] | 251 | 2018-03-19T15:41:50.000Z | 2022-02-24T03:28:44.000Z | asset/api.py | mrpal39/chain | 169f810551a8355579d3cef670ecf88942478a05 | [
"Apache-2.0"
] | 18 | 2018-04-20T06:31:16.000Z | 2022-03-11T23:28:33.000Z | asset/api.py | mrpal39/chain | 169f810551a8355579d3cef670ecf88942478a05 | [
"Apache-2.0"
] | 167 | 2018-03-20T02:04:00.000Z | 2021-08-05T07:30:34.000Z | from rest_framework import generics
from .models import AssetInfo
from .serializers import AssetSerializer
from rest_framework import permissions
class AssetList(generics.ListCreateAPIView):
queryset = AssetInfo.objects.all()
serializer_class = AssetSerializer
permission_classes = (permissions.AllowAny,)
... | 29.823529 | 57 | 0.806706 | 48 | 507 | 8.395833 | 0.458333 | 0.039702 | 0.084367 | 0.114144 | 0.461538 | 0.461538 | 0.461538 | 0.461538 | 0.461538 | 0.461538 | 0 | 0 | 0.130178 | 507 | 16 | 58 | 31.6875 | 0.913832 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1d59d94aa12a3c980d779e0e5fa32f2f339c8f9b | 679 | py | Python | chaussette/_paste.py | ProzorroUKR/chaussette | 96c8159b1f8de897d18c906b5133e1e00c1692a9 | [
"Apache-2.0"
] | 74 | 2015-01-06T21:32:36.000Z | 2021-11-09T11:59:18.000Z | chaussette/_paste.py | ProzorroUKR/chaussette | 96c8159b1f8de897d18c906b5133e1e00c1692a9 | [
"Apache-2.0"
] | 22 | 2015-01-20T22:29:47.000Z | 2020-08-11T08:03:17.000Z | chaussette/_paste.py | ProzorroUKR/chaussette | 96c8159b1f8de897d18c906b5133e1e00c1692a9 | [
"Apache-2.0"
] | 26 | 2015-03-29T14:37:37.000Z | 2021-03-30T15:22:22.000Z | import os
from six.moves import configparser
from logging.config import fileConfig
try:
from paste.deploy import loadapp
except ImportError:
raise ImportError("You need to install PasteDeploy")
def paste_app(path):
# Load the logging config from paste.deploy .ini, if any
path, hsh, app = path.partit... | 26.115385 | 73 | 0.675994 | 88 | 679 | 5.102273 | 0.488636 | 0.089087 | 0.066815 | 0.075724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215022 | 679 | 25 | 74 | 27.16 | 0.842402 | 0.079529 | 0 | 0 | 0 | 0 | 0.083467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1d5ba1030f482065dcfee24632d3ccd749f22845 | 6,270 | py | Python | backend/bitcoin_arbitrage/api/views.py | landdafku11/cryptocurrencybot | d91976d4fb42c75632e92bf9dd2b183d584b0f89 | [
"MIT"
] | 1 | 2021-09-30T13:41:12.000Z | 2021-09-30T13:41:12.000Z | backend/bitcoin_arbitrage/api/views.py | KangDo96/CryptoCurrencyBot | 3c5d347495b27c752016302fec761efc46daaae5 | [
"MIT"
] | null | null | null | backend/bitcoin_arbitrage/api/views.py | KangDo96/CryptoCurrencyBot | 3c5d347495b27c752016302fec761efc46daaae5 | [
"MIT"
] | null | null | null | import logging
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from rest_framework.views import APIView
from bitcoin_arbitrage.models import Spread, Tri_Spread
from bitcoin_arbitrage.api.mixins import MonitorMixin
from .serializers import (
ActionSerialier,
... | 37.54491 | 79 | 0.558054 | 585 | 6,270 | 5.769231 | 0.157265 | 0.091259 | 0.118519 | 0.066667 | 0.692444 | 0.678815 | 0.64563 | 0.600593 | 0.600593 | 0.600593 | 0 | 0.017673 | 0.287081 | 6,270 | 166 | 80 | 37.771084 | 0.73736 | 0.055502 | 0 | 0.616 | 0 | 0 | 0.114286 | 0.013356 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.056 | 0 | 0.352 | 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 |
1d6883b8a212ffa92135348f211d9736a2e05570 | 1,018 | py | Python | IMU/VTK-6.2.0/ThirdParty/Twisted/twisted/test/ssl_helpers.py | timkrentz/SunTracker | 9a189cc38f45e5fbc4e4c700d7295a871d022795 | [
"MIT"
] | 4 | 2019-05-30T01:52:12.000Z | 2021-09-29T21:12:13.000Z | IMU/VTK-6.2.0/ThirdParty/Twisted/twisted/test/ssl_helpers.py | timkrentz/SunTracker | 9a189cc38f45e5fbc4e4c700d7295a871d022795 | [
"MIT"
] | 1 | 2020-03-06T04:49:42.000Z | 2020-03-06T04:49:42.000Z | IMU/VTK-6.2.0/ThirdParty/Twisted/twisted/test/ssl_helpers.py | timkrentz/SunTracker | 9a189cc38f45e5fbc4e4c700d7295a871d022795 | [
"MIT"
] | 2 | 2019-08-30T23:36:13.000Z | 2019-11-08T16:52:01.000Z | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Helper classes for twisted.test.test_ssl.
They are in a separate module so they will not prevent test_ssl importing if
pyOpenSSL is unavailable.
"""
from __future__ import division, absolute_import
from twisted.python.compat impor... | 26.789474 | 77 | 0.705305 | 123 | 1,018 | 5.666667 | 0.560976 | 0.068867 | 0.04878 | 0.05165 | 0.068867 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006289 | 0.219057 | 1,018 | 37 | 78 | 27.513514 | 0.87044 | 0.210216 | 0 | 0.1 | 0 | 0 | 0.019789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.25 | 0.05 | 0.7 | 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 |
1d69340c0e3f146e84bf87b2fa72318dd60fc0e9 | 367 | py | Python | microscopeimagequality/constants.py | MihailSalnikov/microscopeimagequality | 22d1f7c7f6793a0ba6f64c2aea2bf3270c32301b | [
"Apache-2.0"
] | 77 | 2017-10-30T19:34:06.000Z | 2022-01-20T17:15:10.000Z | microscopeimagequality/constants.py | MihailSalnikov/microscopeimagequality | 22d1f7c7f6793a0ba6f64c2aea2bf3270c32301b | [
"Apache-2.0"
] | 3 | 2020-07-02T22:20:46.000Z | 2021-08-25T14:39:43.000Z | microscopeimagequality/constants.py | MihailSalnikov/microscopeimagequality | 22d1f7c7f6793a0ba6f64c2aea2bf3270c32301b | [
"Apache-2.0"
] | 40 | 2017-12-22T01:21:13.000Z | 2022-03-13T22:28:59.000Z | """Common constants used across image quality modules."""
VALID_MASK_FORMAT = 'valid_mask_%s'
CERTAINTY_MASK_FORMAT = 'certainty_mask_%s'
PREDICTIONS_MASK_FORMAT = 'predictions_mask_%s'
ORIG_IMAGE_FORMAT = 'orig_name=%s'
PATCH_SIDE_LENGTH = 84
REMOTE_MODEL_CHECKPOINT_PATH = "https://storage.googleapis.com/microscope-... | 36.7 | 120 | 0.814714 | 51 | 367 | 5.470588 | 0.607843 | 0.107527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026471 | 0.073569 | 367 | 9 | 121 | 40.777778 | 0.794118 | 0.138965 | 0 | 0 | 0 | 0.166667 | 0.477419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1d7624742b449b78b6bdf3144445b6c0eaf602a1 | 2,465 | py | Python | functions/loginAoxiang.py | Steve-Xyh/AutoAoxiang | a8f1abed0f17b967456b1fa539c0aae79dac1d01 | [
"WTFPL"
] | 7 | 2020-02-17T08:12:14.000Z | 2021-12-29T09:41:35.000Z | functions/loginAoxiang.py | Steve-Xyh/AutoAoxiang | a8f1abed0f17b967456b1fa539c0aae79dac1d01 | [
"WTFPL"
] | null | null | null | functions/loginAoxiang.py | Steve-Xyh/AutoAoxiang | a8f1abed0f17b967456b1fa539c0aae79dac1d01 | [
"WTFPL"
] | 1 | 2020-07-24T07:16:14.000Z | 2020-07-24T07:16:14.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import requests
import getpass
from bs4 import BeautifulSoup
from . import formatString
from .getInfo import remove_cache
def login(user='', passwd='', url_login='https://uis.nwpu.edu.cn/cas/login', keyword='Log In Successful'):
'''
使用POST方法登录
#### Paramete... | 25.947368 | 106 | 0.515213 | 250 | 2,465 | 4.996 | 0.436 | 0.064051 | 0.044836 | 0.036029 | 0.261809 | 0.248199 | 0.248199 | 0.217774 | 0.155324 | 0.155324 | 0 | 0.010572 | 0.347667 | 2,465 | 94 | 107 | 26.223404 | 0.765547 | 0.180122 | 0 | 0.153846 | 0 | 0 | 0.17087 | 0.016984 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.115385 | 0.096154 | 0 | 0.192308 | 0.096154 | 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 |
1d7a5f402e407917fb32b0c57c250fdb3232dc37 | 1,145 | py | Python | setup.py | tclarke/ricecomp-cfitsio-python | aa9768c7d075ffda9dbd9bf2385fadd5d1ef110d | [
"BSD-2-Clause"
] | 2 | 2017-10-28T02:08:30.000Z | 2019-11-20T14:00:27.000Z | setup.py | tclarke/ricecomp-cfitsio-python | aa9768c7d075ffda9dbd9bf2385fadd5d1ef110d | [
"BSD-2-Clause"
] | 1 | 2017-10-28T02:22:49.000Z | 2017-11-13T00:57:17.000Z | setup.py | tclarke/ricecomp-cfitsio-python | aa9768c7d075ffda9dbd9bf2385fadd5d1ef110d | [
"BSD-2-Clause"
] | 1 | 2021-11-05T17:00:19.000Z | 2021-11-05T17:00:19.000Z | from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
setup(
name="ricecomp-cfitsio",
version="1.0",
description="Rice compression and decompression for Python.",
long_description="Rice comression and decompression using the routines in the cfitsi... | 39.482759 | 99 | 0.642795 | 121 | 1,145 | 6.033058 | 0.61157 | 0.032877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008879 | 0.2131 | 1,145 | 28 | 100 | 40.892857 | 0.801332 | 0 | 0 | 0 | 0 | 0 | 0.525764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 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 |
1d7f844cc8de3779f9d0a2b1b14848e73d83c0ce | 2,425 | py | Python | app/app.py | tlsrio/ml | 8c2287dab440a3d11ac860b4499d3a90dc96e13b | [
"Unlicense"
] | null | null | null | app/app.py | tlsrio/ml | 8c2287dab440a3d11ac860b4499d3a90dc96e13b | [
"Unlicense"
] | 1 | 2021-06-05T20:32:23.000Z | 2021-06-05T20:32:23.000Z | app/app.py | tlsrio/ml | 8c2287dab440a3d11ac860b4499d3a90dc96e13b | [
"Unlicense"
] | null | null | null | from flask import Flask, request, json
import pipelines
from scrapers.scrapeContent import getContent, htmlToText
from scrapers.fetchArticles import fetchArticles
app = Flask(__name__)
@app.route("/api/")
def connected():
return "Connected"
@app.route("/api/summarize", methods=["POST"])
def summarize():
co... | 24.744898 | 80 | 0.656082 | 280 | 2,425 | 5.614286 | 0.25 | 0.066158 | 0.090967 | 0.096692 | 0.538168 | 0.503817 | 0.389313 | 0.371501 | 0.288804 | 0.288804 | 0 | 0.001949 | 0.153814 | 2,425 | 97 | 81 | 25 | 0.764133 | 0.325361 | 0 | 0.282609 | 0 | 0 | 0.119872 | 0 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.173913 | false | 0 | 0.086957 | 0.021739 | 0.434783 | 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 |
1d890dbbb927867168f80b47b2662f0b5093db7b | 13,918 | py | Python | ScottiePippen/grids.py | iancze/ScottiePippen | 500979fce8f7990f07bfcf1892608e93f0868711 | [
"MIT"
] | 1 | 2021-07-05T16:57:37.000Z | 2021-07-05T16:57:37.000Z | ScottiePippen/grids.py | iancze/ScottiePippen | 500979fce8f7990f07bfcf1892608e93f0868711 | [
"MIT"
] | null | null | null | ScottiePippen/grids.py | iancze/ScottiePippen | 500979fce8f7990f07bfcf1892608e93f0868711 | [
"MIT"
] | 1 | 2021-02-19T23:53:48.000Z | 2021-02-19T23:53:48.000Z | import numpy as np
from scipy.interpolate import interp1d
from astropy.io import ascii
import ScottiePippen as SP
class IndexInterpolator:
'''
Object to return fractional distance between grid points of a single grid variable.
:param parameter_list: list of parameter values
:type parameter_list: 1-D ... | 34.365432 | 213 | 0.574652 | 1,981 | 13,918 | 3.906108 | 0.175164 | 0.023779 | 0.02533 | 0.019773 | 0.462781 | 0.429956 | 0.402817 | 0.394417 | 0.38382 | 0.38382 | 0 | 0.031499 | 0.288332 | 13,918 | 404 | 214 | 34.450495 | 0.749722 | 0 | 0 | 0.485577 | 0 | 0.004808 | 0.057485 | 0.014598 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004808 | 0.019231 | null | null | 0.009615 | 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 |
1d8e68a02b303931f6bd86c700c1cc0e539f4b55 | 661 | py | Python | mbio/server/endpoint.py | iluxonchik/mercedes-benz-io-challenge-2018-sinfo | 92dfb8f43aed6c230688005412a3b3cef72f44cd | [
"MIT"
] | 2 | 2018-09-12T11:52:39.000Z | 2019-06-19T05:44:23.000Z | mbio/server/endpoint.py | iluxonchik/mercedes-benz-io-challenge-2018-sinfo | 92dfb8f43aed6c230688005412a3b3cef72f44cd | [
"MIT"
] | null | null | null | mbio/server/endpoint.py | iluxonchik/mercedes-benz-io-challenge-2018-sinfo | 92dfb8f43aed6c230688005412a3b3cef72f44cd | [
"MIT"
] | null | null | null | """API endpoints."""
class Endpoint(object):
API_PREFIX = '/api/'
VEHICLES = API_PREFIX + 'vehicles/' # ?dealer=AAA?model=XXX?fuel=YYY?transmission=ZZZ
DEALERS_CLOSEST_LIST = API_PREFIX + 'dealers/' # ?dealer=AAA?model=XXX?fuel=YYY?transmission=ZZZ?latitude=LLL?longitude=OOO
DEALER_CLOSEST = API_PREF... | 50.846154 | 129 | 0.732224 | 86 | 661 | 5.406977 | 0.418605 | 0.135484 | 0.090323 | 0.109677 | 0.350538 | 0.350538 | 0.350538 | 0.350538 | 0.266667 | 0.266667 | 0 | 0 | 0.125567 | 661 | 12 | 130 | 55.083333 | 0.804498 | 0.428139 | 0 | 0 | 0 | 0 | 0.233696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1d90057eec5044361db3254dcfa6671c282638fb | 2,569 | py | Python | src/scripts/themis/job_runner/read_request_queues.py | anku94/themis_tritonsort | 68fd3e2f1c0b2947e187151a2e9717f6b9b0ed0d | [
"BSD-3-Clause"
] | 11 | 2015-12-14T05:35:17.000Z | 2021-11-08T22:02:32.000Z | src/scripts/themis/job_runner/read_request_queues.py | anku94/themis_tritonsort | 68fd3e2f1c0b2947e187151a2e9717f6b9b0ed0d | [
"BSD-3-Clause"
] | null | null | null | src/scripts/themis/job_runner/read_request_queues.py | anku94/themis_tritonsort | 68fd3e2f1c0b2947e187151a2e9717f6b9b0ed0d | [
"BSD-3-Clause"
] | 8 | 2015-12-22T19:31:16.000Z | 2020-12-15T12:09:00.000Z | #!/usr/bin/env python
import os, sys, argparse, redis, json
SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__))
sys.path.append(os.path.abspath(os.path.join(SCRIPT_DIR, os.pardir)))
import utils
def readable_read_request(read_request):
json_req = json.loads(read_request)
req_type = json_req["type"]
... | 31.329268 | 79 | 0.638381 | 349 | 2,569 | 4.395415 | 0.289398 | 0.078227 | 0.032595 | 0.042373 | 0.270535 | 0.17601 | 0.14472 | 0.097784 | 0.046936 | 0.046936 | 0 | 0.004557 | 0.231218 | 2,569 | 81 | 80 | 31.716049 | 0.772152 | 0.007785 | 0 | 0.105263 | 0 | 0 | 0.144035 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035088 | null | null | 0.087719 | 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 |
1d91dc626ecb9b179d9a5ca11592fd7a9a38a1c9 | 925 | py | Python | rl_agent/pomm_network.py | AntonPotapchuk/playground | e29cbc974c4d08f27a2078d47d1a79080e712efe | [
"Apache-2.0"
] | null | null | null | rl_agent/pomm_network.py | AntonPotapchuk/playground | e29cbc974c4d08f27a2078d47d1a79080e712efe | [
"Apache-2.0"
] | null | null | null | rl_agent/pomm_network.py | AntonPotapchuk/playground | e29cbc974c4d08f27a2078d47d1a79080e712efe | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
from keras import Model
from keras.layers import Convolution2D, BatchNormalization, Activation, Add, Dense
from keras.models import load_model
from tensorforce.core.networks import Network
from keras.engine import Input
class PommNetwork(Network):
def tf_apply(self, x, internals, up... | 33.035714 | 83 | 0.624865 | 117 | 925 | 4.854701 | 0.470085 | 0.06338 | 0.024648 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010386 | 0.271351 | 925 | 28 | 84 | 33.035714 | 0.832344 | 0.024865 | 0 | 0.083333 | 0 | 0 | 0.062929 | 0.040046 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.083333 | false | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d9e2b4a9098d823be1e9874fce7f8f432f8d885 | 27,224 | py | Python | hur_tracker.py | Unidata/HurricaneTracker | f77fa44637843ef815e879e9eff8b267a5b0c271 | [
"BSD-3-Clause"
] | 11 | 2015-06-03T15:24:54.000Z | 2022-03-25T06:30:12.000Z | hur_tracker.py | Unidata/HurricaneTracker | f77fa44637843ef815e879e9eff8b267a5b0c271 | [
"BSD-3-Clause"
] | null | null | null | hur_tracker.py | Unidata/HurricaneTracker | f77fa44637843ef815e879e9eff8b267a5b0c271 | [
"BSD-3-Clause"
] | 9 | 2015-08-10T07:20:27.000Z | 2021-09-13T09:05:11.000Z | # -*- coding: utf-8 -*-
from StringIO import StringIO
import urllib2
import gzip
from pandas import Series, DataFrame
import numpy as np
from mpl_toolkits.basemap import Basemap
from collections import OrderedDict
from IPython.display import clear_output
from IPython.html import widgets
from IPython.display import dis... | 45.147595 | 184 | 0.599655 | 3,047 | 27,224 | 5.325238 | 0.187069 | 0.031924 | 0.039936 | 0.032047 | 0.255454 | 0.191236 | 0.150314 | 0.131148 | 0.125169 | 0.079933 | 0 | 0.013428 | 0.280561 | 27,224 | 602 | 185 | 45.222591 | 0.815021 | 0.161512 | 0 | 0.153285 | 0 | 0.007299 | 0.06901 | 0.002155 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029197 | null | null | 0.002433 | 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 |
1d9ff78d09aa06f0fa93819aa80fd0640c8abf86 | 725 | py | Python | credentials-test.py | VictorKMaina/password-vault | 779547f7111a9ef12114cd4654b38920174302a4 | [
"MIT"
] | null | null | null | credentials-test.py | VictorKMaina/password-vault | 779547f7111a9ef12114cd4654b38920174302a4 | [
"MIT"
] | null | null | null | credentials-test.py | VictorKMaina/password-vault | 779547f7111a9ef12114cd4654b38920174302a4 | [
"MIT"
] | null | null | null | from credentials import Credential
import unittest
class TestCredentials(unittest.TestCase):
"""
Class for testing credentials methods and behaviours
"""
def setUp(self):
"""
Create new instance of credential
"""
self.new_credential = Credential("Instagram", "victormaina... | 31.521739 | 81 | 0.670345 | 75 | 725 | 6.266667 | 0.506667 | 0.138298 | 0.144681 | 0.140426 | 0.204255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230345 | 725 | 23 | 82 | 31.521739 | 0.842294 | 0.212414 | 0 | 0 | 0 | 0 | 0.129412 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.181818 | false | 0.181818 | 0.181818 | 0 | 0.454545 | 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 |
d524d188ae3b51c62f6e36ceea8a162d4e1631db | 1,092 | py | Python | app/tests/conftest.py | ravewillow6383/model_relationships | ed4fb67e9c0b56b779ed14af1972d654744a2414 | [
"MIT"
] | null | null | null | app/tests/conftest.py | ravewillow6383/model_relationships | ed4fb67e9c0b56b779ed14af1972d654744a2414 | [
"MIT"
] | null | null | null | app/tests/conftest.py | ravewillow6383/model_relationships | ed4fb67e9c0b56b779ed14af1972d654744a2414 | [
"MIT"
] | null | null | null | import pytest
from app import create_app, db
from config import Config
from app.models import Creature, Winged_Creature
class TestConfig(Config):
SQLALCHEMY_DATABASE_URI = 'sqlite://'
@pytest.fixture()
def client():
app = create_app(TestConfig)
app_context = app.app_context()
app... | 18.827586 | 93 | 0.67674 | 129 | 1,092 | 5.527132 | 0.310078 | 0.215989 | 0.154278 | 0.157083 | 0.280505 | 0.280505 | 0.280505 | 0.151473 | 0.151473 | 0.151473 | 0 | 0 | 0.223443 | 1,092 | 57 | 94 | 19.157895 | 0.840802 | 0 | 0 | 0.285714 | 0 | 0 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.114286 | 0 | 0.371429 | 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 |
d526e49dafac3e6855bb9544fe3ddc6dbc57a46d | 460 | py | Python | python/lesson_1/binary_gap.py | fdietzsc/codility-tests | fbc52030533919557a53925cbb9da47df05919d2 | [
"MIT"
] | null | null | null | python/lesson_1/binary_gap.py | fdietzsc/codility-tests | fbc52030533919557a53925cbb9da47df05919d2 | [
"MIT"
] | null | null | null | python/lesson_1/binary_gap.py | fdietzsc/codility-tests | fbc52030533919557a53925cbb9da47df05919d2 | [
"MIT"
] | null | null | null | def solution(N):
b_rep = '{:b}'.format(N)
counter = 0
res = 0
prev_val = 0
count = False
for val in b_rep:
val = int(val)
if val - prev_val == -1:
count = True
counter += 1
if val - prev_val == 0 and count:
counter += 1
if val -... | 23 | 41 | 0.45 | 61 | 460 | 3.278689 | 0.360656 | 0.175 | 0.135 | 0.18 | 0.32 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.452174 | 460 | 19 | 42 | 24.210526 | 0.757937 | 0 | 0 | 0.315789 | 0 | 0 | 0.008696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.105263 | 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 |
d52a7fbab12f8b3eee793beec088fa0d3915c6b2 | 601 | py | Python | 5.Operators/0.arithetic_operator.py | Tazri/Python | f7ca625800229c8a7e20b64810d6e162ccb6b09f | [
"DOC"
] | null | null | null | 5.Operators/0.arithetic_operator.py | Tazri/Python | f7ca625800229c8a7e20b64810d6e162ccb6b09f | [
"DOC"
] | null | null | null | 5.Operators/0.arithetic_operator.py | Tazri/Python | f7ca625800229c8a7e20b64810d6e162ccb6b09f | [
"DOC"
] | null | null | null | x = 30;
y = 3;
## addition
print("x + y : ",x + y);
## we can use + for concatenate string
print("Hello, " + "World!");
## Subtraction
print("x - y : ",x - y);
## Division
print("x / y : ",x / y);
## here division operator always return float type number
## Multiplication
print("x * y : ",x*y);
# we can use * oper... | 19.387097 | 65 | 0.602329 | 96 | 601 | 3.770833 | 0.46875 | 0.044199 | 0.077348 | 0.088398 | 0.143646 | 0.093923 | 0.093923 | 0.093923 | 0 | 0 | 0 | 0.03112 | 0.198003 | 601 | 31 | 66 | 19.387097 | 0.719917 | 0.527454 | 0 | 0 | 0 | 0 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.818182 | 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 |
d52b30c0926c08bc82a15dd95ddfd9c67a8e7f71 | 3,440 | py | Python | apps/core/app_forms.py | AlcindoSchleder/icity-hotspot | 69d9f20f56c852b23bf0e47efdd9c4917270d83b | [
"MIT"
] | 1 | 2020-01-15T05:48:07.000Z | 2020-01-15T05:48:07.000Z | apps/core/app_forms.py | AlcindoSchleder/icity-hotspot | 69d9f20f56c852b23bf0e47efdd9c4917270d83b | [
"MIT"
] | 1 | 2019-11-07T01:49:03.000Z | 2019-11-07T01:49:03.000Z | apps/core/app_forms.py | AlcindoSchleder/icity-hotspot | 69d9f20f56c852b23bf0e47efdd9c4917270d83b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django import forms
from django.contrib.auth.models import User
from django.contrib.auth import authenticate
from .models import CoreUser
class UserLoginForm(forms.ModelForm):
password = forms.HiddenInput(attrs={'value': 'hotspot-icity'})
username = forms.EmailInput(
at... | 36.989247 | 120 | 0.593314 | 353 | 3,440 | 5.694051 | 0.27762 | 0.054726 | 0.076617 | 0.114925 | 0.563184 | 0.544279 | 0.505473 | 0.505473 | 0.500498 | 0.39005 | 0 | 0.002 | 0.273256 | 3,440 | 92 | 121 | 37.391304 | 0.802 | 0.016279 | 0 | 0.24 | 0 | 0 | 0.23987 | 0.007098 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026667 | false | 0.16 | 0.053333 | 0 | 0.306667 | 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 |
d52e2708ffddf059a49abb69d240ad5c4590ccae | 1,357 | py | Python | apps/node_man/serializers/iam.py | ZhuoZhuoCrayon/bk-nodeman | 76cb71fcc971c2a0c2be161fcbd6b019d4a7a8ab | [
"MIT"
] | 31 | 2021-07-28T13:06:11.000Z | 2022-03-10T12:16:44.000Z | apps/node_man/serializers/iam.py | ZhuoZhuoCrayon/bk-nodeman | 76cb71fcc971c2a0c2be161fcbd6b019d4a7a8ab | [
"MIT"
] | 483 | 2021-07-29T03:17:44.000Z | 2022-03-31T13:03:04.000Z | apps/node_man/serializers/iam.py | ZhuoZhuoCrayon/bk-nodeman | 76cb71fcc971c2a0c2be161fcbd6b019d4a7a8ab | [
"MIT"
] | 29 | 2021-07-28T13:06:21.000Z | 2022-03-25T06:18:18.000Z | # _*_ coding: utf-8 _*_
"""
TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-节点管理(BlueKing-BK-NODEMAN) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance ... | 46.793103 | 115 | 0.77745 | 181 | 1,357 | 5.723757 | 0.685083 | 0.057915 | 0.025097 | 0.030888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009466 | 0.143699 | 1,357 | 28 | 116 | 48.464286 | 0.8821 | 0.526161 | 0 | 0 | 0 | 0 | 0.028346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.692308 | 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 |
d53a301deb5abec6dce2906af0929d5fdef7e488 | 22,134 | py | Python | sdk/python/pulumi_azure/redis/cache.py | suresh198526/pulumi-azure | bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/redis/cache.py | suresh198526/pulumi-azure | bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/redis/cache.py | suresh198526/pulumi-azure | bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** 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 _utilitie... | 50.419134 | 307 | 0.649589 | 2,684 | 22,134 | 5.15462 | 0.116617 | 0.066787 | 0.05262 | 0.032526 | 0.669245 | 0.628695 | 0.594724 | 0.56863 | 0.532201 | 0.519696 | 0 | 0.006765 | 0.25201 | 22,134 | 438 | 308 | 50.534247 | 0.828884 | 0.442396 | 0 | 0.276786 | 1 | 0 | 0.151507 | 0.045118 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116071 | false | 0.004464 | 0.03125 | 0.008929 | 0.263393 | 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 |
d53e31268235296c138333162ed03fb0b5d52810 | 2,904 | py | Python | projects/anosql/src/python/anosql/adapters/sqlite3.py | arrdem/source | df9aae1253ed415ade3a2b59e8a0996ff659543d | [
"MIT"
] | 4 | 2021-08-17T15:47:38.000Z | 2021-10-06T01:59:32.000Z | projects/anosql/src/python/anosql/adapters/sqlite3.py | arrdem/source | df9aae1253ed415ade3a2b59e8a0996ff659543d | [
"MIT"
] | 8 | 2021-08-14T17:47:08.000Z | 2021-09-20T20:22:47.000Z | projects/anosql/src/python/anosql/adapters/sqlite3.py | arrdem/source | df9aae1253ed415ade3a2b59e8a0996ff659543d | [
"MIT"
] | 1 | 2021-10-09T21:24:35.000Z | 2021-10-09T21:24:35.000Z | """
A driver object implementing support for SQLite3
"""
from contextlib import contextmanager
import logging
import re
import sqlite3
log = logging.getLogger(__name__)
class SQLite3DriverAdapter(object):
@staticmethod
def process_sql(_query_name, _op_type, sql):
"""Munge queries.
Args:
... | 29.938144 | 95 | 0.600207 | 333 | 2,904 | 5.141141 | 0.351351 | 0.121495 | 0.028037 | 0.031542 | 0.436916 | 0.318341 | 0.318341 | 0.318341 | 0.318341 | 0.318341 | 0 | 0.00431 | 0.280992 | 2,904 | 96 | 96 | 30.25 | 0.815613 | 0.223485 | 0 | 0.423729 | 0 | 0 | 0.059688 | 0 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0.118644 | false | 0 | 0.067797 | 0 | 0.254237 | 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 |
d53fa8b31b6b7598615c4479eea5a0de20703fd1 | 3,176 | py | Python | semseg/models/decoder.py | hzhupku/SemiSeg-AEL | 747c7972a1aed589a8a62cdd98c3d1836c609735 | [
"MIT"
] | 45 | 2021-10-12T05:12:51.000Z | 2022-03-31T08:08:28.000Z | semseg/models/decoder.py | hzhupku/SemiSeg-AEL | 747c7972a1aed589a8a62cdd98c3d1836c609735 | [
"MIT"
] | 10 | 2021-10-13T05:46:37.000Z | 2022-03-20T15:21:39.000Z | semseg/models/decoder.py | hzhupku/SemiSeg-AEL | 747c7972a1aed589a8a62cdd98c3d1836c609735 | [
"MIT"
] | 2 | 2021-12-21T09:10:07.000Z | 2021-12-21T09:25:26.000Z | import torch
import torch.nn as nn
from torch.nn import functional as F
from .base import get_syncbn
from .base import ASPP
class dec_deeplabv3(nn.Module):
def __init__(self, in_planes, num_classes=19, inner_planes=256, sync_bn=False, dilations=(12, 24, 36)):
super(dec_deeplabv3, self).__init__()
... | 39.7 | 107 | 0.622481 | 465 | 3,176 | 4.032258 | 0.182796 | 0.0448 | 0.0416 | 0.0448 | 0.717867 | 0.687467 | 0.674667 | 0.674667 | 0.6432 | 0.6432 | 0 | 0.060034 | 0.25 | 3,176 | 79 | 108 | 40.202532 | 0.72712 | 0.007242 | 0 | 0.476923 | 0 | 0 | 0.002539 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092308 | false | 0 | 0.076923 | 0 | 0.261538 | 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 |
d541ce9d7d1a610e8ca42b4377867cdf567af545 | 261 | py | Python | home/admin.py | technicaldwiti/Project-Certificate | cf08c23e8f158e54f1a84f47b76a05c2fd17d115 | [
"MIT"
] | null | null | null | home/admin.py | technicaldwiti/Project-Certificate | cf08c23e8f158e54f1a84f47b76a05c2fd17d115 | [
"MIT"
] | null | null | null | home/admin.py | technicaldwiti/Project-Certificate | cf08c23e8f158e54f1a84f47b76a05c2fd17d115 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Student
# Register your models here.
class StudentModelAdmin(admin.ModelAdmin):
list_display = ["__str__"]
class Meta:
model = Student
admin.site.register(Student,StudentModelAdmin) | 26.1 | 46 | 0.731801 | 29 | 261 | 6.413793 | 0.655172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191571 | 261 | 10 | 46 | 26.1 | 0.881517 | 0.099617 | 0 | 0 | 0 | 0 | 0.031111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d5498c99856867ec6b0e90ecc2f5ba99dfb17a41 | 1,704 | py | Python | music_genre_classifier/__main__.py | ryansingman/music-genre-classifier | 2e2f53017cc7b92d463310814fc64e3e9f6d20f1 | [
"MIT"
] | null | null | null | music_genre_classifier/__main__.py | ryansingman/music-genre-classifier | 2e2f53017cc7b92d463310814fc64e3e9f6d20f1 | [
"MIT"
] | null | null | null | music_genre_classifier/__main__.py | ryansingman/music-genre-classifier | 2e2f53017cc7b92d463310814fc64e3e9f6d20f1 | [
"MIT"
] | null | null | null | from typing import List
from typing import Tuple
import numpy as np
import yaml
from music_genre_classifier import dataset
from music_genre_classifier import models
if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser(prog="Music Genre Classifier")
parser.add_argument("classifie... | 30.428571 | 90 | 0.708333 | 213 | 1,704 | 5.43662 | 0.361502 | 0.084629 | 0.051813 | 0.062176 | 0.197755 | 0.093264 | 0.093264 | 0.093264 | 0.093264 | 0.093264 | 0 | 0 | 0.20716 | 1,704 | 55 | 91 | 30.981818 | 0.857143 | 0.146127 | 0 | 0.088235 | 0 | 0 | 0.111342 | 0 | 0 | 0 | 0 | 0.018182 | 0 | 1 | 0 | false | 0 | 0.205882 | 0 | 0.205882 | 0.029412 | 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 |
d54a5d7e4acb5811187f01d0f07b13f60c24af36 | 5,591 | py | Python | src/game.py | shrick/shricktris | 035b7a25822817c28d4e6aa0e31d94f20eaefda7 | [
"MIT"
] | null | null | null | src/game.py | shrick/shricktris | 035b7a25822817c28d4e6aa0e31d94f20eaefda7 | [
"MIT"
] | null | null | null | src/game.py | shrick/shricktris | 035b7a25822817c28d4e6aa0e31d94f20eaefda7 | [
"MIT"
] | null | null | null | # game.py
import pygame
from field import GameField
from preview import Preview
from brick import Brick
from figure import generate_randomized_figures as FigureFactory
from control import Control
from score import Score
import colors
GAME_TITLE = "Shricktris"
START_FPS = 12
START_GAME_STEPOVER = 8
SCREEN_RESOLUTION ... | 33.884848 | 97 | 0.592381 | 655 | 5,591 | 4.69771 | 0.218321 | 0.051999 | 0.038024 | 0.022099 | 0.20572 | 0.139747 | 0.077023 | 0.025999 | 0 | 0 | 0 | 0.009937 | 0.316044 | 5,591 | 165 | 98 | 33.884848 | 0.794718 | 0.027902 | 0 | 0.126984 | 1 | 0 | 0.035754 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079365 | false | 0 | 0.063492 | 0 | 0.150794 | 0.047619 | 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 |
d54c206f69db33f8934662f94d22e9489a79c927 | 15,976 | py | Python | tools/package-routine.py | Hivemapper/magma | 092253401778a2cd35a214b0436efacebe2e55cd | [
"BSD-3-Clause"
] | null | null | null | tools/package-routine.py | Hivemapper/magma | 092253401778a2cd35a214b0436efacebe2e55cd | [
"BSD-3-Clause"
] | null | null | null | tools/package-routine.py | Hivemapper/magma | 092253401778a2cd35a214b0436efacebe2e55cd | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
""" package-routine.py - package up a single routine into a distributable package
See 'package-routine.web' for how to use multiple files together
Example:
$ ./tools/package-routine.py dgesv
$ ./tools/package-routine.py dgesv
$ ./tools/package-routine.py -h
"""
## imports (all std)
import ar... | 29.861682 | 185 | 0.62838 | 2,184 | 15,976 | 4.468407 | 0.216117 | 0.018445 | 0.007378 | 0.013936 | 0.279537 | 0.230966 | 0.196024 | 0.178502 | 0.175018 | 0.163541 | 0 | 0.003933 | 0.236167 | 15,976 | 534 | 186 | 29.917603 | 0.795788 | 0 | 0 | 0.262799 | 0 | 0.068259 | 0.465719 | 0.031885 | 0 | 0 | 0 | 0.001873 | 0 | 0 | null | null | 0.010239 | 0.03413 | null | null | 0.023891 | 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 |
d55bee0f354d8f72a5cd5cebf30a617872f90c56 | 2,208 | py | Python | leprikon/migrations/0031_registration_questions_agreements.py | leprikon-cz/leprikon | b1bec36fb6bcf0220bffccca53b6f200f9e95910 | [
"BSD-3-Clause"
] | 4 | 2018-10-29T17:46:09.000Z | 2021-12-16T08:57:48.000Z | leprikon/migrations/0031_registration_questions_agreements.py | leprikon-cz/leprikon | b1bec36fb6bcf0220bffccca53b6f200f9e95910 | [
"BSD-3-Clause"
] | 68 | 2016-07-11T07:48:54.000Z | 2022-03-18T01:32:06.000Z | leprikon/migrations/0031_registration_questions_agreements.py | leprikon-cz/leprikon | b1bec36fb6bcf0220bffccca53b6f200f9e95910 | [
"BSD-3-Clause"
] | 2 | 2016-07-12T20:39:53.000Z | 2020-10-10T03:14:42.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.23 on 2019-09-01 22:42
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
def set_registration_questions_agreements(apps, schema_editor):
leprikon_site = apps.get_mod... | 41.660377 | 112 | 0.683424 | 224 | 2,208 | 6.53125 | 0.34375 | 0.06015 | 0.062884 | 0.073821 | 0.269993 | 0.269993 | 0.220096 | 0.220096 | 0.220096 | 0.220096 | 0 | 0.012586 | 0.208333 | 2,208 | 52 | 113 | 42.461538 | 0.824371 | 0.03125 | 0 | 0.325581 | 1 | 0 | 0.118446 | 0.010768 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.093023 | 0 | 0.186047 | 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 |
d55bef1efa70a7c2a923915c20f0354efedaf55e | 1,027 | py | Python | underscore/constant_finder.py | doboy/Underscore | d98273db3144cda79191d2c90f45d81b6d700b1f | [
"MIT"
] | 7 | 2016-09-23T00:44:05.000Z | 2021-10-04T21:19:12.000Z | underscore/constant_finder.py | jameswu1991/Underscore | d98273db3144cda79191d2c90f45d81b6d700b1f | [
"MIT"
] | 1 | 2016-09-23T00:45:05.000Z | 2019-02-16T19:05:37.000Z | underscore/constant_finder.py | jameswu1991/Underscore | d98273db3144cda79191d2c90f45d81b6d700b1f | [
"MIT"
] | 3 | 2016-09-23T01:13:15.000Z | 2018-07-20T21:22:17.000Z | # Copyright (c) 2013 Huan Do, http://huan.do
import ast
from assignment_manager import AssignmentManager
from utils import value_of
class ConstantFinder(ast.NodeVisitor):
def __init__(self, env):
self.env = env
self.assignment_manager = AssignmentManager()
def visit_Constant(self, node):
... | 29.342857 | 74 | 0.658228 | 132 | 1,027 | 4.954545 | 0.363636 | 0.053517 | 0.041284 | 0.058104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008997 | 0.242454 | 1,027 | 34 | 75 | 30.205882 | 0.83162 | 0.040896 | 0 | 0 | 0 | 0 | 0.010183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.130435 | 0 | 0.521739 | 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 |
d5693ba3ae534bc03de369e01f3dbdda09432db3 | 1,020 | py | Python | sandbox/src/htmlTabularParser.py | sniemi/SamPy | e048756feca67197cf5f995afd7d75d8286e017b | [
"BSD-2-Clause"
] | 5 | 2016-05-28T14:12:28.000Z | 2021-04-22T10:23:12.000Z | sandbox/src/htmlTabularParser.py | sniemi/SamPy | e048756feca67197cf5f995afd7d75d8286e017b | [
"BSD-2-Clause"
] | null | null | null | sandbox/src/htmlTabularParser.py | sniemi/SamPy | e048756feca67197cf5f995afd7d75d8286e017b | [
"BSD-2-Clause"
] | 2 | 2015-07-13T10:04:10.000Z | 2021-04-22T10:23:23.000Z | '''
Created on Sep 2, 2009
@author: niemi
'''
import BeautifulSoup
import urllib2
url = 'http://www.stsci.edu/institute/org/ins/cos_stis/projects/UserSupport/BOP/cos_spec_limits.html'
url2 = 'http://www.stsci.edu/institute/org/ins/cos_stis/projects/UserSupport/BOP/cos_ima_limits.html'
g = open('html_table.txt','w'... | 23.72093 | 101 | 0.569608 | 138 | 1,020 | 4.15942 | 0.456522 | 0.062718 | 0.041812 | 0.052265 | 0.313589 | 0.313589 | 0.313589 | 0.216028 | 0.216028 | 0.216028 | 0 | 0.012064 | 0.268627 | 1,020 | 42 | 102 | 24.285714 | 0.757373 | 0.04902 | 0 | 0.222222 | 0 | 0.074074 | 0.298337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.074074 | 0.074074 | 0 | 0.074074 | 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 |
d56a89199e4d4da933e5bd0f65b64af890f59ce7 | 2,991 | py | Python | leonardo/module/web/widgets/tables.py | timgates42/django-leonardo | c155f97fee9e2be1e0f508d47a1c205028253ecc | [
"BSD-3-Clause"
] | 102 | 2015-04-30T12:27:14.000Z | 2021-10-31T18:21:16.000Z | leonardo/module/web/widgets/tables.py | timgates42/django-leonardo | c155f97fee9e2be1e0f508d47a1c205028253ecc | [
"BSD-3-Clause"
] | 158 | 2015-04-30T22:42:34.000Z | 2019-09-07T15:37:22.000Z | leonardo/module/web/widgets/tables.py | timgates42/django-leonardo | c155f97fee9e2be1e0f508d47a1c205028253ecc | [
"BSD-3-Clause"
] | 64 | 2015-05-10T12:00:39.000Z | 2021-07-29T19:47:27.000Z |
import floppyforms as forms
from django.forms.models import modelformset_factory
from django.utils.translation import ugettext_lazy as _
from horizon import tables
from horizon.tables.formset import FormsetDataTable, FormsetRow
from leonardo.module.web.models import WidgetDimension
class Slider(forms.RangeInput):
... | 30.520408 | 78 | 0.657305 | 327 | 2,991 | 5.834862 | 0.330275 | 0.037736 | 0.031447 | 0.015723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006157 | 0.239719 | 2,991 | 97 | 79 | 30.835052 | 0.832894 | 0.045135 | 0 | 0.059701 | 0 | 0 | 0.052613 | 0.008121 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059701 | false | 0.014925 | 0.089552 | 0 | 0.537313 | 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 |
d56ad032b349c711cce50fb639ca765e85b4d200 | 722 | py | Python | swcpm/main.py | Davis-Software/SWC_packagemanager | 2c0b79ef6cc3551e24160ab2842f620be467cbda | [
"MIT"
] | 1 | 2020-10-21T08:20:45.000Z | 2020-10-21T08:20:45.000Z | swcpm/main.py | Davis-Software/SWC_packagemanager | 2c0b79ef6cc3551e24160ab2842f620be467cbda | [
"MIT"
] | null | null | null | swcpm/main.py | Davis-Software/SWC_packagemanager | 2c0b79ef6cc3551e24160ab2842f620be467cbda | [
"MIT"
] | 1 | 2020-10-21T08:15:47.000Z | 2020-10-21T08:15:47.000Z | from swcpm import click, swc_pm
from .run import run_command
from .info import info_command
from .wget import wget_command
from .install import install_command
from .update import update_command
from .remove import remove_command
#############################################################################... | 30.083333 | 121 | 0.601108 | 81 | 722 | 4.987654 | 0.37037 | 0.136139 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160665 | 722 | 23 | 122 | 31.391304 | 0.666667 | 0.031856 | 0 | 0 | 0 | 0 | 0.105455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.5 | 0 | 0.571429 | 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 |
d56c7b9d34ae1c83e8c8835f262ddd66c301b228 | 371 | py | Python | tests/samples/config_copy.py | ron-huberfeld/lms | a0737d2c68c2cd52e55e73c9d6d31c3aa6d11012 | [
"BSD-3-Clause"
] | 85 | 2020-03-21T18:52:57.000Z | 2022-03-22T06:33:38.000Z | tests/samples/config_copy.py | ron-huberfeld/lms | a0737d2c68c2cd52e55e73c9d6d31c3aa6d11012 | [
"BSD-3-Clause"
] | 210 | 2020-03-21T22:44:57.000Z | 2022-01-06T22:47:50.000Z | tests/samples/config_copy.py | ron-huberfeld/lms | a0737d2c68c2cd52e55e73c9d6d31c3aa6d11012 | [
"BSD-3-Clause"
] | 27 | 2020-03-31T13:57:33.000Z | 2022-03-06T15:57:32.000Z | # flake8: noqa
import os
WTF_CSRF_ENABLED = False # On production, delete this line!
SECRET_KEY = ''
SERVER_ADDRESS = os.getenv('SERVER_ADDRESS', '127.0.0.1:80')
FEATURE_FLAG_CHECK_IDENTICAL_CODE_ON = os.getenv(
'FEATURE_FLAG_CHECK_IDENTICAL_CODE_ON', False,
)
USERS_CSV = 'users.csv'
# Babel config
LANGUA... | 15.458333 | 60 | 0.695418 | 52 | 371 | 4.653846 | 0.692308 | 0.107438 | 0.132231 | 0.206612 | 0.256198 | 0.256198 | 0 | 0 | 0 | 0 | 0 | 0.029221 | 0.169811 | 371 | 23 | 61 | 16.130435 | 0.756494 | 0.156334 | 0 | 0 | 0 | 0 | 0.28479 | 0.116505 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 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 |
d56e9a7e5327dbeb028ea90bd65fc28dae871ad7 | 1,548 | py | Python | vivarium_cell/composites/injected_glc_phosphorylation.py | vivarium-collective/vivarium-cell | c504704a63ee8211f5f11e7fe486287dbc7553c3 | [
"MIT"
] | 7 | 2020-09-09T00:45:21.000Z | 2021-05-20T00:36:43.000Z | vivarium_cell/composites/injected_glc_phosphorylation.py | vivarium-collective/vivarium-cell | c504704a63ee8211f5f11e7fe486287dbc7553c3 | [
"MIT"
] | 2 | 2020-08-28T15:02:08.000Z | 2020-11-22T17:22:52.000Z | vivarium_cell/composites/injected_glc_phosphorylation.py | vivarium-collective/vivarium-cell | c504704a63ee8211f5f11e7fe486287dbc7553c3 | [
"MIT"
] | 3 | 2020-12-05T15:10:18.000Z | 2021-05-20T00:36:48.000Z | """
================================================
Toy Injected Glucose Phosphorylation Compartment
================================================
This is a toy example referenced in the documentation.
"""
from vivarium.core.experiment import Experiment
from vivarium.core.process import Composite
from vivarium.li... | 28.145455 | 82 | 0.557494 | 119 | 1,548 | 7.05042 | 0.462185 | 0.209774 | 0.038141 | 0.059595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00541 | 0.283592 | 1,548 | 54 | 83 | 28.666667 | 0.751127 | 0.130491 | 0 | 0.157895 | 0 | 0 | 0.160688 | 0.084454 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.131579 | 0.026316 | 0.315789 | 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 |
d57e7ce7e590630986c4d7acdd4105e06da38bc0 | 271 | py | Python | desafios/desafio#07.py | thiagocanabarro/PythonProjects | 3b5cfff137d9d94b5fa0f0da9fe3ae6825b82269 | [
"MIT"
] | null | null | null | desafios/desafio#07.py | thiagocanabarro/PythonProjects | 3b5cfff137d9d94b5fa0f0da9fe3ae6825b82269 | [
"MIT"
] | null | null | null | desafios/desafio#07.py | thiagocanabarro/PythonProjects | 3b5cfff137d9d94b5fa0f0da9fe3ae6825b82269 | [
"MIT"
] | null | null | null | #Desenvolva um programa que leia as duas notas de um aluno. Calcule e mostre a sua média
n1 = int(input("Digite a nota de seu primeiro teste: "))
n2 = int(input("Digite a nota de seu segundo teste: "))
me = ((n1+n2)/2)
print ("A média aritmética de suas notas é:",me)
| 30.111111 | 88 | 0.697417 | 50 | 271 | 3.78 | 0.64 | 0.084656 | 0.148148 | 0.15873 | 0.253968 | 0.253968 | 0.253968 | 0 | 0 | 0 | 0 | 0.022727 | 0.188192 | 271 | 8 | 89 | 33.875 | 0.836364 | 0.321033 | 0 | 0 | 0 | 0 | 0.590164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
d57f5bafb049dd1cf151de4b15ed0a347cb655da | 5,739 | py | Python | serializers/protobuf_serializer/structure_pb2.py | whiteRa2bit/serializers | c1d604348a9593837f1f0b94b76ab24c7e0faec2 | [
"MIT"
] | null | null | null | serializers/protobuf_serializer/structure_pb2.py | whiteRa2bit/serializers | c1d604348a9593837f1f0b94b76ab24c7e0faec2 | [
"MIT"
] | null | null | null | serializers/protobuf_serializer/structure_pb2.py | whiteRa2bit/serializers | c1d604348a9593837f1f0b94b76ab24c7e0faec2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: structure.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.proto... | 38.777027 | 437 | 0.752396 | 717 | 5,739 | 5.711297 | 0.18689 | 0.044933 | 0.069597 | 0.065934 | 0.574359 | 0.528205 | 0.520391 | 0.510623 | 0.510623 | 0.510623 | 0 | 0.034263 | 0.125283 | 5,739 | 147 | 438 | 39.040816 | 0.781474 | 0.058024 | 0 | 0.612903 | 1 | 0.008065 | 0.170004 | 0.116796 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.032258 | 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 |
d58232b378a16273acd6e019424048e2685fc20b | 3,978 | py | Python | python/SerialPortUI.py | ptracton/wb_platform | 7e8a3c0fc9486cb0ee29d0d44707ee7dc21a6824 | [
"MIT"
] | null | null | null | python/SerialPortUI.py | ptracton/wb_platform | 7e8a3c0fc9486cb0ee29d0d44707ee7dc21a6824 | [
"MIT"
] | null | null | null | python/SerialPortUI.py | ptracton/wb_platform | 7e8a3c0fc9486cb0ee29d0d44707ee7dc21a6824 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
"""
UI class for Serial Port hardware. This will have an instantiation of a
Serial port.
"""
#
# The GUI libraries since we build some GUI components here
#
import PyQt5
import PyQt5.QtCore
import PyQt5.QtWidgets
import SerialPort
class SerialPortUI(PyQt5.QtCore.QObject):
connectButton... | 31.571429 | 79 | 0.650578 | 385 | 3,978 | 6.579221 | 0.309091 | 0.071062 | 0.071852 | 0.06514 | 0.13107 | 0.097908 | 0.097908 | 0.054481 | 0.054481 | 0.054481 | 0 | 0.016097 | 0.250377 | 3,978 | 125 | 80 | 31.824 | 0.833333 | 0.09628 | 0 | 0.109589 | 0 | 0 | 0.049014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068493 | false | 0.054795 | 0.068493 | 0 | 0.191781 | 0.068493 | 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 |
d58379b34a95a165b622db425c827069a189835e | 1,059 | py | Python | intro_exercise.py | kefa4520/ds_week1 | c40b1dc9e857d80267ecff8fb1863db3018866af | [
"MIT"
] | null | null | null | intro_exercise.py | kefa4520/ds_week1 | c40b1dc9e857d80267ecff8fb1863db3018866af | [
"MIT"
] | null | null | null | intro_exercise.py | kefa4520/ds_week1 | c40b1dc9e857d80267ecff8fb1863db3018866af | [
"MIT"
] | null | null | null | # Lines starting with # are comments and are not run by Python.
"""
Multi-line comments are possible with triple quotes like this.
"""
# import pandas and matplotlib
# Load the pandas library as pd
import pandas as pd
# Load the matplotlib library as plt
import matplotlib.pyplot as plt
# load the numpy library... | 33.09375 | 89 | 0.720491 | 175 | 1,059 | 4.354286 | 0.548571 | 0.027559 | 0.023622 | 0.028871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195467 | 1,059 | 32 | 90 | 33.09375 | 0.894366 | 0.763928 | 0 | 0 | 0 | 0 | 0.082051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d5839bf3094175d6af4d4cbc04c30c65f26db54f | 2,003 | py | Python | ardublocklyserver/uploader.py | bijij/ardublockly | f137c78d69fd29faf27bc700b1644bfc42fe80fd | [
"Apache-2.0"
] | null | null | null | ardublocklyserver/uploader.py | bijij/ardublockly | f137c78d69fd29faf27bc700b1644bfc42fe80fd | [
"Apache-2.0"
] | null | null | null | ardublocklyserver/uploader.py | bijij/ardublockly | f137c78d69fd29faf27bc700b1644bfc42fe80fd | [
"Apache-2.0"
] | 1 | 2018-06-04T07:01:55.000Z | 2018-06-04T07:01:55.000Z | import subprocess
import os
class uploader:
# constants
uploaderName = "avrdude.exe"
compilerName = "arduino-builder.exe"
#def __init__(self):
def LoadSketchWithDefaults(self, sketchName, builderConfigFilePath):
self.sketchName = sketchName
self.builderConfigFilePath = builderConf... | 32.306452 | 145 | 0.495756 | 134 | 2,003 | 7.365672 | 0.41791 | 0.042553 | 0.070922 | 0.163121 | 0.111449 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00084 | 0.405891 | 2,003 | 61 | 146 | 32.836066 | 0.828571 | 0.013979 | 0 | 0.125 | 0 | 0 | 0.114913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.0625 | 0 | 0.25 | 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 |
d58dee39967fd269cb7e2d814b4adc604bde326f | 1,047 | py | Python | Scripts/builders/monkeypatch_tempdir_cleanup.py | onecent1101/3p-package-source | 17a61fc64d940371b3673e3b061ded4ce8759cea | [
"Apache-2.0",
"MIT"
] | 4 | 2021-07-20T17:58:08.000Z | 2022-02-12T00:47:40.000Z | Scripts/builders/monkeypatch_tempdir_cleanup.py | onecent1101/3p-package-source | 17a61fc64d940371b3673e3b061ded4ce8759cea | [
"Apache-2.0",
"MIT"
] | 43 | 2021-07-13T16:46:40.000Z | 2022-03-29T07:04:17.000Z | Scripts/builders/monkeypatch_tempdir_cleanup.py | onecent1101/3p-package-source | 17a61fc64d940371b3673e3b061ded4ce8759cea | [
"Apache-2.0",
"MIT"
] | 5 | 2021-07-24T15:31:29.000Z | 2022-01-25T21:46:54.000Z | #
# Copyright (c) Contributors to the Open 3D Engine Project.
# For complete copyright and license terms please see the LICENSE at the root of this distribution.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
#
#
import platform
if platform.system() == 'Windows':
from tempfile import TemporaryDirectory
from ... | 33.774194 | 120 | 0.6915 | 135 | 1,047 | 5.355556 | 0.622222 | 0.069156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006305 | 0.242598 | 1,047 | 30 | 121 | 34.9 | 0.905422 | 0.479465 | 0 | 0 | 0 | 0 | 0.014257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 0.461538 | 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 |
d5960bd461a89446a8e054bc52b20cc7c71e251c | 236 | py | Python | nagios_graphite/__init__.py | SegFaultAX/nagios_graphite | e9794a7e048cc53d327914489fa3451feaf0e164 | [
"MIT"
] | 3 | 2015-12-03T22:40:53.000Z | 2017-11-02T14:26:46.000Z | nagios_graphite/__init__.py | SegFaultAX/nagios_graphite | e9794a7e048cc53d327914489fa3451feaf0e164 | [
"MIT"
] | 2 | 2016-03-01T01:52:06.000Z | 2016-07-14T05:30:07.000Z | nagios_graphite/__init__.py | SegFaultAX/nagios_graphite | e9794a7e048cc53d327914489fa3451feaf0e164 | [
"MIT"
] | 6 | 2015-02-26T20:19:46.000Z | 2020-03-12T12:10:42.000Z | # -*- coding: utf-8 -*-
"""Nagios command for Graphite metrics"""
from nagios_graphite import metadata
__version__ = metadata.version
__author__ = metadata.authors[0]
__license__ = metadata.license
__copyright__ = metadata.copyright
| 21.454545 | 41 | 0.771186 | 26 | 236 | 6.346154 | 0.653846 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009662 | 0.122881 | 236 | 10 | 42 | 23.6 | 0.78744 | 0.245763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d5a3f9d379b8221df37e9b508eed614ca3efa628 | 1,780 | py | Python | tests/test_scrape_selector.py | gubschk/CDEWIP | fb628593417df5f955eb1fa62176b7cb3c322ebc | [
"MIT"
] | null | null | null | tests/test_scrape_selector.py | gubschk/CDEWIP | fb628593417df5f955eb1fa62176b7cb3c322ebc | [
"MIT"
] | null | null | null | tests/test_scrape_selector.py | gubschk/CDEWIP | fb628593417df5f955eb1fa62176b7cb3c322ebc | [
"MIT"
] | 1 | 2021-02-21T02:51:39.000Z | 2021-02-21T02:51:39.000Z | # -*- coding: utf-8 -*-
"""
test_scrape_selector
~~~~~~~~~~~~~~~~~~~~
Test the HTML/XML Selector.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import logging
import unittest
from chemdataextra... | 30.689655 | 96 | 0.624157 | 209 | 1,780 | 5.129187 | 0.253589 | 0.16791 | 0.214552 | 0.130597 | 0.567164 | 0.539179 | 0.416045 | 0.205224 | 0.205224 | 0.205224 | 0 | 0.004752 | 0.172472 | 1,780 | 57 | 97 | 31.22807 | 0.723014 | 0.052247 | 0 | 0.054054 | 0 | 0 | 0.207896 | 0.078347 | 0 | 0 | 0 | 0 | 0.324324 | 1 | 0.054054 | false | 0 | 0.189189 | 0 | 0.27027 | 0.027027 | 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 |
d5a55d2bdb32431222dd7faa609b7cb7cbf40df3 | 872 | py | Python | urlShortner/urls.py | erfanhs/Tuky | 11bd23ca31892e4579ec904b14a3ee701e58f9d8 | [
"MIT"
] | 3 | 2020-05-04T11:23:38.000Z | 2020-06-19T14:04:16.000Z | urlShortner/urls.py | erfanhs/Tuky | 11bd23ca31892e4579ec904b14a3ee701e58f9d8 | [
"MIT"
] | 6 | 2021-03-30T13:15:49.000Z | 2022-03-12T00:27:41.000Z | urlShortner/urls.py | erfanhs/Tuky | 11bd23ca31892e4579ec904b14a3ee701e58f9d8 | [
"MIT"
] | 1 | 2020-09-02T10:23:01.000Z | 2020-09-02T10:23:01.000Z | from django.conf import settings
from django.contrib import admin
from django.urls import path, include
from django.conf.urls.static import static
from django.views.generic import TemplateView
from main.views import *
urlpatterns = [
# admin panel
path('admin/', admin.site.urls),
# site routes
path(... | 30.068966 | 78 | 0.706422 | 112 | 872 | 5.401786 | 0.339286 | 0.082645 | 0.046281 | 0.076033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001339 | 0.143349 | 872 | 28 | 79 | 31.142857 | 0.808568 | 0.057339 | 0 | 0 | 0 | 0 | 0.167482 | 0.026895 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.315789 | 0 | 0.315789 | 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 |
d5a69464cd523cd10ed6ac9a80fce3df85a21219 | 4,431 | py | Python | cogs/backend.py | evergreenbots/evergreen | 5706b837bcc28e914d119d534297599599b7729f | [
"MIT"
] | null | null | null | cogs/backend.py | evergreenbots/evergreen | 5706b837bcc28e914d119d534297599599b7729f | [
"MIT"
] | null | null | null | cogs/backend.py | evergreenbots/evergreen | 5706b837bcc28e914d119d534297599599b7729f | [
"MIT"
] | 1 | 2020-01-22T02:16:16.000Z | 2020-01-22T02:16:16.000Z | import discord
import base64
import paramiko
import asyncio
import httpx
from apikeys import ssh_secret, ssh_pass, ssh_user, ssh_ip, amp_pass, amp_url_base, amp_user
from discord.ext import commands
class Backend(commands.Cog, name="Server sided stuff"):
HEADERS = {'Accept': 'application/json, text/javascript',
... | 43.019417 | 138 | 0.61002 | 530 | 4,431 | 5.003774 | 0.290566 | 0.0181 | 0.027149 | 0.05279 | 0.542232 | 0.498115 | 0.46267 | 0.450226 | 0.42911 | 0.42911 | 0 | 0.011316 | 0.242158 | 4,431 | 102 | 139 | 43.441176 | 0.77844 | 0.013541 | 0 | 0.430233 | 0 | 0 | 0.206683 | 0.042115 | 0 | 0 | 0.005493 | 0 | 0 | 1 | 0.023256 | false | 0.05814 | 0.081395 | 0 | 0.127907 | 0.011628 | 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 |
d5a6aac9d1e7593b872ded80b2642e429d5a98fc | 611 | py | Python | qhana/backend/maxCutSolver.py | UST-QuAntiL/qhana | bf499d072dcc37f81efec1b8e17b7d5460db7a04 | [
"Apache-2.0"
] | 1 | 2021-03-12T14:06:43.000Z | 2021-03-12T14:06:43.000Z | qhana/backend/maxCutSolver.py | UST-QuAntiL/qhana | bf499d072dcc37f81efec1b8e17b7d5460db7a04 | [
"Apache-2.0"
] | null | null | null | qhana/backend/maxCutSolver.py | UST-QuAntiL/qhana | bf499d072dcc37f81efec1b8e17b7d5460db7a04 | [
"Apache-2.0"
] | null | null | null | from abc import ABCMeta, abstractmethod
from typing import List
import networkx as nx
"""
Represents an abstract MaxCutSolver class.
"""
class MaxCutSolver(metaclass=ABCMeta):
"""
Instantiates the MaxCutSolver with the graph.
"""
def __init__(self, graph: nx.Graph) -> None:
self.graph = graph
... | 24.44 | 64 | 0.661211 | 76 | 611 | 5.263158 | 0.618421 | 0.045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004357 | 0.248773 | 611 | 25 | 65 | 24.44 | 0.867102 | 0.07365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0.1 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
d5ad749db565e34b003343f1bf911eb0cbcbe17c | 4,404 | py | Python | sippycode/twitter/sippy_twitter.py | schreck2/sippycode | 5181d34db71a9d5302500fcdd42a95e6a18e627b | [
"Apache-2.0"
] | null | null | null | sippycode/twitter/sippy_twitter.py | schreck2/sippycode | 5181d34db71a9d5302500fcdd42a95e6a18e627b | [
"Apache-2.0"
] | null | null | null | sippycode/twitter/sippy_twitter.py | schreck2/sippycode | 5181d34db71a9d5302500fcdd42a95e6a18e627b | [
"Apache-2.0"
] | null | null | null | # Copyright 2008 Jeffrey William Scudder
#
# 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 ... | 32.382353 | 76 | 0.661217 | 573 | 4,404 | 4.907504 | 0.333333 | 0.046942 | 0.026671 | 0.02027 | 0.208748 | 0.157895 | 0.137269 | 0.115932 | 0.115932 | 0.115932 | 0 | 0.0097 | 0.22752 | 4,404 | 135 | 77 | 32.622222 | 0.816872 | 0.170073 | 0 | 0.186275 | 0 | 0 | 0.139791 | 0.008255 | 0 | 0 | 0 | 0.007407 | 0 | 0 | null | null | 0.029412 | 0.068627 | null | null | 0.186275 | 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 |
6335af5ee6a4503dbd6756ba00fd7faa31999347 | 648 | py | Python | scrape_name.py | OpenHacks-2020/wishbot | 27ead5470ca05e62fa879b0ac7c63ccf8c77402b | [
"WTFPL"
] | 3 | 2021-01-20T20:20:48.000Z | 2021-05-26T07:47:02.000Z | scrape_name.py | OpenHacks-2020/wishbot | 27ead5470ca05e62fa879b0ac7c63ccf8c77402b | [
"WTFPL"
] | null | null | null | scrape_name.py | OpenHacks-2020/wishbot | 27ead5470ca05e62fa879b0ac7c63ccf8c77402b | [
"WTFPL"
] | 2 | 2021-01-25T02:36:22.000Z | 2021-03-23T21:19:28.000Z | # NOT implemented as part of bot.py
# Possible usage: ask user if they would like to add the suggested gift (by displaying the name and soliciting a 'yes' or 'no') before adding it to the wishlist
# #-*- coding: utf-8 -*-
from bs4 import BeautifulSoup
import requests
def getName(url):
'''Takes a product URL as an inp... | 36 | 160 | 0.722222 | 105 | 648 | 4.380952 | 0.657143 | 0.078261 | 0.030435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01083 | 0.145062 | 648 | 17 | 161 | 38.117647 | 0.819495 | 0.330247 | 0 | 0 | 0 | 0 | 0.067055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6337c8bb5df44c7314ac50f61a3b4d43bc707ed3 | 6,202 | py | Python | playground/playground.py | llv22/pyalgorithm | 800c14466e0ad02dead7d96f8b3ec5f948949911 | [
"Apache-2.0"
] | null | null | null | playground/playground.py | llv22/pyalgorithm | 800c14466e0ad02dead7d96f8b3ec5f948949911 | [
"Apache-2.0"
] | null | null | null | playground/playground.py | llv22/pyalgorithm | 800c14466e0ad02dead7d96f8b3ec5f948949911 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# ---
# jupyter:
# jupytext:
# formats: ipynb,py:light
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.3'
# jupytext_version: 0.8.2
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# lang... | 23.228464 | 96 | 0.583683 | 950 | 6,202 | 3.650526 | 0.171579 | 0.059689 | 0.05248 | 0.015571 | 0.669839 | 0.642157 | 0.631776 | 0.607843 | 0.571511 | 0.571511 | 0 | 0.084608 | 0.283457 | 6,202 | 266 | 97 | 23.315789 | 0.69577 | 0.225734 | 0 | 0.801325 | 0 | 0 | 0.05579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05298 | 0 | 0.05298 | 0.039735 | 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 |
633a5d0d818e98a02d120f4d42b215e76992a7c1 | 448 | py | Python | scrapperwheather101.py | srgautam01/Weather | 634c23ee62123313ad5db18082dabe635fe377c0 | [
"MIT"
] | null | null | null | scrapperwheather101.py | srgautam01/Weather | 634c23ee62123313ad5db18082dabe635fe377c0 | [
"MIT"
] | null | null | null | scrapperwheather101.py | srgautam01/Weather | 634c23ee62123313ad5db18082dabe635fe377c0 | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup
print("Downloading page...")
page = requests.get("https://forecast.weather.gov/MapClick.php?lat=30.504170000000045&lon=-90.45845999999995")
assert page.status_code == 200
print("Parsing HTML...")
soup = BeautifulSoup(page.content, 'html.parser')
print("Extracting temper... | 24.888889 | 110 | 0.734375 | 58 | 448 | 5.637931 | 0.741379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090465 | 0.087054 | 448 | 17 | 111 | 26.352941 | 0.709046 | 0 | 0 | 0 | 0 | 0.090909 | 0.470982 | 0.049107 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0.454545 | 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 |
633a80d852b5dcf5f34782d5d76388ff858d9ddb | 1,081 | py | Python | tests/test_ktbxsosdconfig.py | tmbx/kctl | d276068193ada0d534092b464f4ccedd71e898d1 | [
"BSD-3-Clause"
] | null | null | null | tests/test_ktbxsosdconfig.py | tmbx/kctl | d276068193ada0d534092b464f4ccedd71e898d1 | [
"BSD-3-Clause"
] | null | null | null | tests/test_ktbxsosdconfig.py | tmbx/kctl | d276068193ada0d534092b464f4ccedd71e898d1 | [
"BSD-3-Clause"
] | null | null | null | # -*- mode: python; tab-width: 4; indent-tabs-mode: t; py-indent-offset: 4 -*-
import sys
# Make sure we test local classes first.
sys.path.insert(0, '.')
import unittest
from kctllib.ktbxsosdconfig import *
class KTbxsosdConfigTest(unittest.TestCase):
def test(self):
config = KTbxsosdConfig(source_file ... | 36.033333 | 79 | 0.641998 | 128 | 1,081 | 5.242188 | 0.414063 | 0.104322 | 0.135618 | 0.169896 | 0.575261 | 0.494784 | 0.494784 | 0.408346 | 0.244411 | 0.244411 | 0 | 0.020737 | 0.19704 | 1,081 | 29 | 80 | 37.275862 | 0.752304 | 0.106383 | 0 | 0.3 | 0 | 0 | 0.259105 | 0.122789 | 0 | 0 | 0 | 0 | 0.35 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.25 | 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 |
633c02f301ab824b3f751b51872af5c220ce35e1 | 3,697 | py | Python | testarch/unet/model.py | weihao94/deepdyn | e8a1d6620f48094b76ea3d272c57d40c9ae6d949 | [
"MIT"
] | 42 | 2019-11-07T03:18:53.000Z | 2021-12-08T09:42:00.000Z | testarch/unet/model.py | LucasLee-ff/deepdyn | 48018b62a245dd791e45d60b28068489a8c32742 | [
"MIT"
] | 17 | 2020-01-25T12:58:18.000Z | 2022-03-11T23:32:44.000Z | testarch/unet/model.py | aksish/ature | 48018b62a245dd791e45d60b28068489a8c32742 | [
"MIT"
] | 21 | 2019-11-21T08:34:54.000Z | 2022-02-27T16:24:00.000Z | import torch
import torch.nn.functional as F
from torch import nn
from utils.weights_utils import initialize_weights
class _DoubleConvolution(nn.Module):
def __init__(self, in_channels, middle_channel, out_channels, p=0):
super(_DoubleConvolution, self).__init__()
layers = [
nn.Conv2d... | 38.113402 | 109 | 0.637544 | 554 | 3,697 | 3.931408 | 0.15704 | 0.132231 | 0.106061 | 0.051423 | 0.413223 | 0.360422 | 0.287879 | 0.24472 | 0.137741 | 0.110193 | 0 | 0.075061 | 0.228834 | 3,697 | 96 | 110 | 38.510417 | 0.688881 | 0.022451 | 0 | 0.030303 | 0 | 0 | 0.003601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075758 | false | 0.060606 | 0.060606 | 0.015152 | 0.212121 | 0.015152 | 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 |
634a272f9522d8b71e84215a1f2f191b3afee2fe | 1,174 | py | Python | neighbourhoodapp/migrations/0005_auto_20200326_1744.py | marknesh/neighbourhood-watch | 57e36c800b9e4898be9f4949c80c902f7627699a | [
"MIT"
] | null | null | null | neighbourhoodapp/migrations/0005_auto_20200326_1744.py | marknesh/neighbourhood-watch | 57e36c800b9e4898be9f4949c80c902f7627699a | [
"MIT"
] | 10 | 2020-03-24T10:47:53.000Z | 2021-04-08T19:51:44.000Z | neighbourhoodapp/migrations/0005_auto_20200326_1744.py | marknesh/Neighbourhood-Watch | 57e36c800b9e4898be9f4949c80c902f7627699a | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-03-26 14:44
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('neighbourhoodapp', '0004... | 33.542857 | 135 | 0.61925 | 119 | 1,174 | 5.966387 | 0.563025 | 0.04507 | 0.059155 | 0.092958 | 0.15493 | 0.15493 | 0.15493 | 0.15493 | 0.15493 | 0.15493 | 0 | 0.025287 | 0.258944 | 1,174 | 34 | 136 | 34.529412 | 0.790805 | 0.03833 | 0 | 0.107143 | 1 | 0 | 0.114463 | 0.047028 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.214286 | 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 |
634ac27e2d64df6f51e2fc538196fb0be28495a0 | 1,949 | py | Python | anchor_txt/__init__.py | vitiral/anchor | 5f2bd9b21a67b161c84d82c1dc9db9dc68d25fb2 | [
"Apache-2.0",
"MIT"
] | 1 | 2019-07-19T04:47:07.000Z | 2019-07-19T04:47:07.000Z | anchor_txt/__init__.py | vitiral/anchor_txt | 5f2bd9b21a67b161c84d82c1dc9db9dc68d25fb2 | [
"Apache-2.0",
"MIT"
] | null | null | null | anchor_txt/__init__.py | vitiral/anchor_txt | 5f2bd9b21a67b161c84d82c1dc9db9dc68d25fb2 | [
"Apache-2.0",
"MIT"
] | null | null | null | # anchor_txt: attributes in markdown
#
# Copyright (C) 2019 Rett Berg <github.com/vitiral>
#
# The source code is Licensed under either of
#
# * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
# http://www.apache.org/licenses/LICENSE-2.0)
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or
# http://ope... | 30.936508 | 82 | 0.695228 | 275 | 1,949 | 4.861818 | 0.505455 | 0.026926 | 0.05086 | 0.02543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009073 | 0.208312 | 1,949 | 62 | 83 | 31.435484 | 0.857421 | 0.468958 | 0 | 0 | 0 | 0 | 0.176763 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.344828 | 0 | 0.448276 | 0.137931 | 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 |
6351ec7c4b8dc6e6f0216857e98b93119f11498e | 1,026 | py | Python | pyringe/plugins/mod_base.py | Freezind/pyringe | ba075a01a10d7f4c90721bff64ff9cdec0c43a2f | [
"Apache-2.0"
] | 507 | 2015-01-14T11:43:49.000Z | 2022-03-20T11:51:05.000Z | pyringe/plugins/mod_base.py | Freezind/pyringe | ba075a01a10d7f4c90721bff64ff9cdec0c43a2f | [
"Apache-2.0"
] | 12 | 2015-03-20T16:56:26.000Z | 2021-05-17T08:27:53.000Z | pyringe/plugins/mod_base.py | Freezind/pyringe | ba075a01a10d7f4c90721bff64ff9cdec0c43a2f | [
"Apache-2.0"
] | 48 | 2015-01-13T08:48:56.000Z | 2022-02-19T22:36:40.000Z | #! /usr/bin/env python
#
# Copyright 2014 Google Inc. 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... | 27.72973 | 74 | 0.732943 | 142 | 1,026 | 5.211268 | 0.683099 | 0.081081 | 0.035135 | 0.043243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009524 | 0.181287 | 1,026 | 36 | 75 | 28.5 | 0.871429 | 0.667641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
635296d4c8cee5ce9e540172a6ccf24576c67d00 | 3,291 | py | Python | next/database_client/CacheStore/redis_data_structures/matrix-test2.py | sumeetsk/NEXT-1 | c42badbcaeb0ab79ab1f74b6303ecc3864b1c7ee | [
"Apache-2.0"
] | null | null | null | next/database_client/CacheStore/redis_data_structures/matrix-test2.py | sumeetsk/NEXT-1 | c42badbcaeb0ab79ab1f74b6303ecc3864b1c7ee | [
"Apache-2.0"
] | null | null | null | next/database_client/CacheStore/redis_data_structures/matrix-test2.py | sumeetsk/NEXT-1 | c42badbcaeb0ab79ab1f74b6303ecc3864b1c7ee | [
"Apache-2.0"
] | 2 | 2017-06-07T16:03:16.000Z | 2021-03-01T08:48:27.000Z | import redismatrix
import numpy
import time
import matplotlib.pyplot as plot
from numpy import *
from numpy.random import *
from redismatrix import *
from matplotlib.font_manager import FontProperties
def main():
file2 = open('T[i][j].txt', 'w')
file3 = open('test.txt', 'w')
n = 100 # ... | 36.164835 | 121 | 0.50076 | 416 | 3,291 | 3.903846 | 0.254808 | 0.009852 | 0.033867 | 0.046798 | 0.143473 | 0.108374 | 0.055419 | 0.055419 | 0.055419 | 0.055419 | 0 | 0.027996 | 0.381343 | 3,291 | 91 | 122 | 36.164835 | 0.769646 | 0.253722 | 0 | 0.032258 | 0 | 0 | 0.133196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.129032 | null | null | 0.016129 | 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 |
635746b78416d92f61925b02e1cb635a5bbefd83 | 7,787 | py | Python | app/models/cart.py | ea137/mini-amazon-skeleton | d28430faa07a88927afbc9636ff5a5b6f814f1c6 | [
"MIT"
] | null | null | null | app/models/cart.py | ea137/mini-amazon-skeleton | d28430faa07a88927afbc9636ff5a5b6f814f1c6 | [
"MIT"
] | null | null | null | app/models/cart.py | ea137/mini-amazon-skeleton | d28430faa07a88927afbc9636ff5a5b6f814f1c6 | [
"MIT"
] | null | null | null | from flask import current_app as app
from .cart_product import Cart_Product
class Cart:
def __init__(self, id, pid, quantity):
self.id = id
self.pid = pid
self.quantity = quantity
@staticmethod
def get(id):
try:
rows = app.db.execute('''
SELECT p.id... | 35.720183 | 137 | 0.369334 | 735 | 7,787 | 3.828571 | 0.118367 | 0.065387 | 0.063966 | 0.063966 | 0.726013 | 0.680881 | 0.646055 | 0.535537 | 0.415423 | 0.397299 | 0 | 0.005711 | 0.550276 | 7,787 | 217 | 138 | 35.884793 | 0.79783 | 0.02196 | 0 | 0.612717 | 0 | 0.023121 | 0.151325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069364 | false | 0 | 0.011561 | 0 | 0.138728 | 0.069364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
635a3eef0eb070b82d997737e5da8009ee2d51c9 | 453 | py | Python | cloudberry-py/cloudberry/api/query.py | olliekrk/cloud-berry | 8b39fb0b4f8772348fb50c0c1d0200c96df03cbe | [
"MIT"
] | null | null | null | cloudberry-py/cloudberry/api/query.py | olliekrk/cloud-berry | 8b39fb0b4f8772348fb50c0c1d0200c96df03cbe | [
"MIT"
] | null | null | null | cloudberry-py/cloudberry/api/query.py | olliekrk/cloud-berry | 8b39fb0b4f8772348fb50c0c1d0200c96df03cbe | [
"MIT"
] | null | null | null | import requests
from .backend import CloudberryConfig, CloudberryApi
from .model import DataSeries
class Query(CloudberryApi):
def __init__(self, config: CloudberryConfig) -> None:
super().__init__(config)
self.base_url = f'{config.base_url()}/flux'
def query_series(self, raw_query: str) ->... | 28.3125 | 73 | 0.706402 | 56 | 453 | 5.446429 | 0.517857 | 0.068852 | 0.072131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1766 | 453 | 15 | 74 | 30.2 | 0.817694 | 0 | 0 | 0 | 0 | 0 | 0.112583 | 0.112583 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.7 | 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 |
635ae52b250be6b654ab56c721ff2f14cdac4c40 | 5,041 | py | Python | tools/timestamper/timestamper.py | NatLibFi/Finto-data | 119ee836dbe843d73143e7804ace409083d84b32 | [
"CC0-1.0"
] | 14 | 2015-10-14T17:31:25.000Z | 2022-02-25T08:32:20.000Z | tools/timestamper/timestamper.py | NatLibFi/Finto-data | 119ee836dbe843d73143e7804ace409083d84b32 | [
"CC0-1.0"
] | 659 | 2015-01-05T13:40:36.000Z | 2022-03-24T13:40:24.000Z | tools/timestamper/timestamper.py | NatLibFi/Finto-data | 119ee836dbe843d73143e7804ace409083d84b32 | [
"CC0-1.0"
] | 8 | 2015-04-17T11:04:30.000Z | 2020-10-03T10:27:08.000Z | #!/usr/bin/env python
# Utility to generate dct:created and dct:modified timestamps (xsd:date) for
# SKOS concepts.
# The idea is that for each concept, a hash (MD5) is calculated based on the
# triples where that concept is either the subject or object. Whenever the
# triples change, the hash will be different. A se... | 37.066176 | 77 | 0.662964 | 711 | 5,041 | 4.658228 | 0.305204 | 0.043176 | 0.021135 | 0.026268 | 0.109903 | 0.061594 | 0.022343 | 0 | 0 | 0 | 0 | 0.005529 | 0.246578 | 5,041 | 135 | 78 | 37.340741 | 0.866509 | 0.414005 | 0 | 0.164384 | 1 | 0 | 0.040165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013699 | false | 0 | 0.068493 | 0 | 0.09589 | 0.027397 | 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 |
635e7ef82d1678cf5ef4d7c6331cd25ad85cd32d | 2,476 | py | Python | chapter01/common.py | Alchemy2011/spider | b98d1325fb15c05e2f377d324b52a963cbd281b7 | [
"Apache-2.0"
] | null | null | null | chapter01/common.py | Alchemy2011/spider | b98d1325fb15c05e2f377d324b52a963cbd281b7 | [
"Apache-2.0"
] | null | null | null | chapter01/common.py | Alchemy2011/spider | b98d1325fb15c05e2f377d324b52a963cbd281b7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import urllib2
import urlparse
def download1(url):
"""Simple downloader"""
return urllib2.urlopen(url).read()
def download2(url):
"""Download function that catches errors"""
print 'Downloading:', url
try:
html = urllib2.urlopen(url).read()
except urllib2.URLE... | 29.47619 | 71 | 0.617528 | 307 | 2,476 | 4.892508 | 0.276873 | 0.05992 | 0.050599 | 0.066578 | 0.57723 | 0.545273 | 0.472037 | 0.472037 | 0.472037 | 0.472037 | 0 | 0.035223 | 0.266155 | 2,476 | 83 | 72 | 29.831325 | 0.791414 | 0.070679 | 0 | 0.642857 | 0 | 0 | 0.092709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035714 | null | null | 0.160714 | 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 |
635eb60eecbb83eafdf83058c81ea2e7e133a7fc | 1,638 | py | Python | metrics/log_collectors/training_data_service_client/tail_to_tds.py | just4jc/FfDL | 788aa300b77ee430896216e088ad1246aa22b218 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | metrics/log_collectors/training_data_service_client/tail_to_tds.py | just4jc/FfDL | 788aa300b77ee430896216e088ad1246aa22b218 | [
"CC-BY-4.0",
"MIT"
] | 2 | 2022-02-10T04:35:06.000Z | 2022-03-02T11:16:29.000Z | metrics/log_collectors/training_data_service_client/tail_to_tds.py | ckadner/FfDL | c913f71ef3e61837fd3bfcd0b6f2ddc38d2bde48 | [
"CC-BY-4.0",
"MIT"
] | 1 | 2020-09-02T10:25:23.000Z | 2020-09-02T10:25:23.000Z | #!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import time
import sys
from log_collectors.training_data_service_client import extract_datetime as extract_datetime
from . import push_log_line
from . import connect
def coll... | 32.76 | 103 | 0.639805 | 213 | 1,638 | 4.666667 | 0.431925 | 0.035211 | 0.056338 | 0.042254 | 0.169014 | 0.169014 | 0.169014 | 0.086519 | 0.086519 | 0 | 0 | 0.003431 | 0.288156 | 1,638 | 50 | 104 | 32.76 | 0.849057 | 0.056166 | 0 | 0.210526 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.026316 | false | 0 | 0.236842 | 0 | 0.263158 | 0.157895 | 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 |
63666f8d70b8b592a61ae9d67959d8f26cd8b261 | 428 | py | Python | gottesdienstplan/auth.py | wulmer/churchtools-automation | 8fa7e3d96c42a6a03ffc37a269ba3b95a856d83e | [
"MIT"
] | null | null | null | gottesdienstplan/auth.py | wulmer/churchtools-automation | 8fa7e3d96c42a6a03ffc37a269ba3b95a856d83e | [
"MIT"
] | null | null | null | gottesdienstplan/auth.py | wulmer/churchtools-automation | 8fa7e3d96c42a6a03ffc37a269ba3b95a856d83e | [
"MIT"
] | null | null | null | import json
import os
from google.oauth2 import service_account
from googleapiclient.discovery import build
SCOPES = [
"https://www.googleapis.com/auth/spreadsheets",
"https://www.googleapis.com/auth/drive",
]
credentials = service_account.Credentials.from_service_account_info(
json.loads(os.environ["GOOG... | 28.533333 | 68 | 0.78271 | 52 | 428 | 6.288462 | 0.5 | 0.171254 | 0.110092 | 0.12844 | 0.152905 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005195 | 0.100467 | 428 | 14 | 69 | 30.571429 | 0.844156 | 0 | 0 | 0 | 0 | 0 | 0.259346 | 0.051402 | 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 |
6366aeea9a376873c837b345881c1d9bf710efb4 | 476 | py | Python | udp-client.py | BrandonSoto/Socket-Types | 8909a6abd0ff0f74618e77955b046aedfbede153 | [
"MIT"
] | null | null | null | udp-client.py | BrandonSoto/Socket-Types | 8909a6abd0ff0f74618e77955b046aedfbede153 | [
"MIT"
] | null | null | null | udp-client.py | BrandonSoto/Socket-Types | 8909a6abd0ff0f74618e77955b046aedfbede153 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import socket
import time
server_name = 'localhost'
server_port = 4242
client_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
for i in range(0, 25):
message = 'message ' + str(i)
client_socket.sendto(message, (server_name, server_port))
receved_message, server_address = c... | 21.636364 | 66 | 0.737395 | 65 | 476 | 5.184615 | 0.569231 | 0.178042 | 0.106825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029557 | 0.147059 | 476 | 21 | 67 | 22.666667 | 0.800493 | 0.042017 | 0 | 0 | 0 | 0 | 0.072848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
63674b338eda1b6eca73ea65463d0e41b70c7d3d | 489 | py | Python | Python/Algorithms/Sieve Algorithms/Sieve of Eratosthenes.py | m-payal/AlgorithmsAndDataStructure | db53da00cefa3b681b4fcebfc0d22ee91cd489f9 | [
"MIT"
] | 195 | 2020-05-09T02:26:13.000Z | 2022-03-30T06:12:07.000Z | Python/Algorithms/Sieve Algorithms/Sieve of Eratosthenes.py | m-payal/AlgorithmsAndDataStructure | db53da00cefa3b681b4fcebfc0d22ee91cd489f9 | [
"MIT"
] | 31 | 2021-06-15T19:00:57.000Z | 2022-02-02T15:51:25.000Z | Python/Algorithms/Sieve Algorithms/Sieve of Eratosthenes.py | m-payal/AlgorithmsAndDataStructure | db53da00cefa3b681b4fcebfc0d22ee91cd489f9 | [
"MIT"
] | 64 | 2020-05-09T02:26:15.000Z | 2022-02-23T16:02:01.000Z | """
Sieve of Eratosthenes :
Generate all the primes less than any integer nn
"""
from math import sqrt
def get_primes(n):
m = n + 1
# numbers = [True for i in range(m)]
numbers = [True] * m
for i in range(2, int(sqrt(n) + 1)):
if numbers[i]:
for j in range(i * i, m, i):
... | 19.56 | 52 | 0.529652 | 75 | 489 | 3.426667 | 0.48 | 0.108949 | 0.070039 | 0.128405 | 0.093385 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018809 | 0.347648 | 489 | 24 | 53 | 20.375 | 0.786834 | 0.222904 | 0 | 0.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.214286 | 0.071429 | 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 |
636d669de7cd3ea29c44cbd1bc75096e92261f90 | 22,761 | py | Python | src/vessel_NN_training.py | Binjie-Qin/SVS-net | 00ae880143f2c84e600ce1638d2c2fa5e892e24d | [
"MIT"
] | 8 | 2020-08-20T15:53:42.000Z | 2022-02-24T10:56:23.000Z | src/vessel_NN_training.py | Binjie-Qin/SVS-net | 00ae880143f2c84e600ce1638d2c2fa5e892e24d | [
"MIT"
] | 1 | 2020-10-20T07:30:38.000Z | 2020-10-20T07:30:38.000Z | src/vessel_NN_training.py | Binjie-Qin/SVS-net | 00ae880143f2c84e600ce1638d2c2fa5e892e24d | [
"MIT"
] | 5 | 2020-08-20T16:55:12.000Z | 2022-01-15T05:15:22.000Z | ###################################################
#
# Script to:
# - Load the images and extract the patches
# - Define the neural network
# - define the training
#
##################################################
import numpy as np
import configparser
from keras.utils import multi_gpu_model
... | 40.790323 | 217 | 0.674663 | 3,424 | 22,761 | 4.226051 | 0.094042 | 0.014927 | 0.082101 | 0.104907 | 0.705529 | 0.685487 | 0.653075 | 0.64188 | 0.631721 | 0.625847 | 0 | 0.095733 | 0.16704 | 22,761 | 557 | 218 | 40.863555 | 0.667493 | 0.14929 | 0 | 0.495627 | 0 | 0 | 0.081637 | 0 | 0.002915 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0.058309 | 0.002915 | 0.134111 | 0.055394 | 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 |
636e03fe9849d525f84fd134ea921fb3780085ab | 2,260 | py | Python | converters/ipynb.py | ekmixon/journal-cli | 5c689ca3105156966204b47acb93b579eba6a67b | [
"BSD-3-Clause"
] | 11 | 2019-10-02T15:03:26.000Z | 2022-03-22T22:48:07.000Z | converters/ipynb.py | ekmixon/journal-cli | 5c689ca3105156966204b47acb93b579eba6a67b | [
"BSD-3-Clause"
] | 7 | 2021-05-14T23:54:50.000Z | 2022-02-20T22:59:49.000Z | converters/ipynb.py | ekmixon/journal-cli | 5c689ca3105156966204b47acb93b579eba6a67b | [
"BSD-3-Clause"
] | 2 | 2021-04-21T18:57:13.000Z | 2021-10-17T22:16:41.000Z | from os import path, makedirs
import click
from config import config
from commands.util import generate_image_path, generate_post_path
IPYNB_TEMPLATE = '''
{%- extends 'markdown.tpl' -%}
{% block data_text scoped %}
```ipynb-output
{{ output.data['text/plain']}}
```
{% endblock data_text %}
{% block stream %}
```i... | 33.235294 | 78 | 0.653982 | 271 | 2,260 | 5.258303 | 0.391144 | 0.050526 | 0.033684 | 0.030877 | 0.026667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000577 | 0.233628 | 2,260 | 68 | 79 | 33.235294 | 0.822171 | 0.124336 | 0 | 0.085106 | 1 | 0 | 0.181344 | 0.036998 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.148936 | 0 | 0.255319 | 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 |
63729e64f584677e17dffd6d6e8405ed3a5a2e0f | 390 | py | Python | vidyo/__init__.py | parafoxia/vidyo | 1ec7f0a50b1c21db77c9d0d8f62e19a319e6975a | [
"BSD-3-Clause"
] | null | null | null | vidyo/__init__.py | parafoxia/vidyo | 1ec7f0a50b1c21db77c9d0d8f62e19a319e6975a | [
"BSD-3-Clause"
] | null | null | null | vidyo/__init__.py | parafoxia/vidyo | 1ec7f0a50b1c21db77c9d0d8f62e19a319e6975a | [
"BSD-3-Clause"
] | null | null | null | __productname__ = "vidyo"
__version__ = "0.1.0"
__description__ = "A simple way to get information on YouTube videos."
__url__ = "https://github.com/parafoxia/vidyo"
__docs__ = "https://vidyo.readthedocs.io/en/latest/"
__author__ = "Ethan Henderson"
__license__ = "BSD-3-Clause"
__bugtracker__ = "https://github.com/para... | 32.5 | 70 | 0.75641 | 50 | 390 | 5.26 | 0.76 | 0.08365 | 0.106464 | 0.174905 | 0.212928 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.107692 | 390 | 11 | 71 | 35.454545 | 0.744253 | 0 | 0 | 0 | 0 | 0 | 0.515385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
637471a2ec10683f2ece4d6620c9399d93d34c44 | 1,569 | py | Python | pytfa/optim/config.py | embt/pytfa | b4cd30bddcb8b3e817bc3a7140b1d0d1a88e3a1c | [
"Apache-2.0"
] | 30 | 2017-08-17T09:10:39.000Z | 2022-03-08T20:38:40.000Z | pytfa/optim/config.py | embt/pytfa | b4cd30bddcb8b3e817bc3a7140b1d0d1a88e3a1c | [
"Apache-2.0"
] | 40 | 2018-03-21T14:45:01.000Z | 2022-03-04T12:50:38.000Z | pytfa/optim/config.py | embt/pytfa | b4cd30bddcb8b3e817bc3a7140b1d0d1a88e3a1c | [
"Apache-2.0"
] | 27 | 2018-03-03T10:34:35.000Z | 2022-03-01T23:58:13.000Z | # -*- coding: utf-8 -*-
"""
.. module:: pytfa
:platform: Unix, Windows
:synopsis: Thermodynamics-based Flux Analysis
.. moduleauthor:: pyTFA team
Pre-tuned configurations for faster solving
"""
def dg_relax_config(model):
"""
:param model:
:return:
"""
# grbtune output on a hard model :
... | 22.73913 | 69 | 0.608031 | 183 | 1,569 | 5.174863 | 0.420765 | 0.092925 | 0.133052 | 0.177402 | 0.195354 | 0.142555 | 0.142555 | 0.142555 | 0.097149 | 0 | 0 | 0.065884 | 0.293818 | 1,569 | 68 | 70 | 23.073529 | 0.788809 | 0.537922 | 0 | 0 | 0 | 0 | 0.036641 | 0.036641 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.111111 | 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 |
6376ba957cae79a6be08e52f5102df73563f9f49 | 933 | py | Python | data/external/repositories/113677/KaggleBillionWordImputation-master/scripts/count_syntactic_ngrams.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories/113677/KaggleBillionWordImputation-master/scripts/count_syntactic_ngrams.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories/113677/KaggleBillionWordImputation-master/scripts/count_syntactic_ngrams.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | 1 | 2019-12-04T08:23:33.000Z | 2019-12-04T08:23:33.000Z | #!/usr/bin/env python
'''
Count frequency of each syntactic n-gram and save to Pickle file.
The n-gram frequencies are held in an in-memory dict, so this script
can only be used if the vocab is small (e.g. POS tags).
'''
import sys, argparse
from collections import defaultdict
from util import ngram_frequencies
from ... | 30.096774 | 68 | 0.658092 | 133 | 933 | 4.488722 | 0.661654 | 0.01675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002813 | 0.237942 | 933 | 31 | 69 | 30.096774 | 0.83685 | 0.021436 | 0 | 0 | 0 | 0 | 0.113287 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.210526 | 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 |
637cc67f4780dc6ebfbdff67d14e1b35518f2461 | 4,879 | py | Python | tests/test_kubernetes.py | riksu-raksu/k-lga | d9f940a34decbf805456e6b04bc3b641b0e860fd | [
"MIT"
] | null | null | null | tests/test_kubernetes.py | riksu-raksu/k-lga | d9f940a34decbf805456e6b04bc3b641b0e860fd | [
"MIT"
] | null | null | null | tests/test_kubernetes.py | riksu-raksu/k-lga | d9f940a34decbf805456e6b04bc3b641b0e860fd | [
"MIT"
] | null | null | null | import base64
import os
import tempfile
from pathlib import Path
import pytest
from kubernetes.client.rest import ApiException
from kolga.libs.kubernetes import Kubernetes
from kolga.libs.project import Project
from kolga.utils.general import get_deploy_name
from kolga.utils.models import BasicAuthUser
DEFAULT_TRACK... | 31.888889 | 88 | 0.695634 | 556 | 4,879 | 5.865108 | 0.215827 | 0.027906 | 0.041705 | 0.050598 | 0.338853 | 0.283655 | 0.237657 | 0.195646 | 0.180313 | 0.112236 | 0 | 0.016034 | 0.169092 | 4,879 | 152 | 89 | 32.098684 | 0.788357 | 0.037918 | 0 | 0.25 | 0 | 0 | 0.095563 | 0.02965 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.12037 | false | 0.055556 | 0.092593 | 0 | 0.212963 | 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 |
637d2857315eb187ce196f5c709d6f83b534a053 | 4,603 | py | Python | tempus/timetracking/models.py | rixx/tempus | 8998ca8746deb923221a75ff64d8fffa804add89 | [
"MIT"
] | 3 | 2016-07-15T22:46:40.000Z | 2020-04-26T16:14:44.000Z | tempus/timetracking/models.py | rixx/tempus | 8998ca8746deb923221a75ff64d8fffa804add89 | [
"MIT"
] | null | null | null | tempus/timetracking/models.py | rixx/tempus | 8998ca8746deb923221a75ff64d8fffa804add89 | [
"MIT"
] | 1 | 2021-11-12T11:08:06.000Z | 2021-11-12T11:08:06.000Z | import datetime
import random
import os
import yaml
import pytz
from django.conf import settings
from django.contrib.auth.models import User
from django.db import models
from django.template.defaultfilters import slugify
class BaseTimetracking(models.Model):
name = models.CharField(max_length=200)
slug = mo... | 31.101351 | 106 | 0.636107 | 558 | 4,603 | 5.098566 | 0.243728 | 0.047803 | 0.02812 | 0.013708 | 0.16239 | 0.113884 | 0.093497 | 0.02812 | 0.02812 | 0.02812 | 0 | 0.00376 | 0.248968 | 4,603 | 147 | 107 | 31.312925 | 0.819207 | 0.031067 | 0 | 0.203704 | 0 | 0 | 0.045332 | 0.004937 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101852 | false | 0 | 0.083333 | 0.027778 | 0.509259 | 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 |
637ee8e55c9b1ebedd52441970c4c7eab005bfa2 | 3,699 | py | Python | test/test_wordle_core.py | tanayseven/wordle-solver-bot | fa2e652c09979a6982884d81276c0767eca30913 | [
"MIT"
] | 1 | 2022-02-22T03:16:29.000Z | 2022-02-22T03:16:29.000Z | test/test_wordle_core.py | tanayseven/wordle-solver-bot | fa2e652c09979a6982884d81276c0767eca30913 | [
"MIT"
] | null | null | null | test/test_wordle_core.py | tanayseven/wordle-solver-bot | fa2e652c09979a6982884d81276c0767eca30913 | [
"MIT"
] | null | null | null | import pytest
from core import WordsRepository
@pytest.mark.parametrize(
"input_words,forget_letters,remaining_words",
[
("urger,ribat,anorn,stram,sofar", "ugo", "ribat,stram")
]
)
def test_forget_letters(input_words, forget_letters, remaining_words):
input_words = tuple(input_words.split(','... | 35.567308 | 96 | 0.718843 | 469 | 3,699 | 5.296375 | 0.142857 | 0.136876 | 0.078502 | 0.056361 | 0.770531 | 0.749195 | 0.618357 | 0.472222 | 0.416264 | 0.375201 | 0 | 0.001926 | 0.15761 | 3,699 | 103 | 97 | 35.912621 | 0.79525 | 0.004325 | 0 | 0.318182 | 0 | 0 | 0.132609 | 0.102446 | 0 | 0 | 0 | 0 | 0.068182 | 1 | 0.068182 | false | 0 | 0.022727 | 0 | 0.090909 | 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 |
6380d58c77d2b798701062830b9d0ba6323a8016 | 281 | py | Python | Python/API Sellsy/__version__.py | Cantin-L/Professionelle | 132a33ebac1f96d4ece5f5ef06341860e4de22c8 | [
"MIT"
] | 1 | 2021-07-20T08:25:01.000Z | 2021-07-20T08:25:01.000Z | Python/API Sellsy/__version__.py | Cantin-L/Professionelle | 132a33ebac1f96d4ece5f5ef06341860e4de22c8 | [
"MIT"
] | null | null | null | Python/API Sellsy/__version__.py | Cantin-L/Professionelle | 132a33ebac1f96d4ece5f5ef06341860e4de22c8 | [
"MIT"
] | null | null | null | __title__ = 'Sellsy'
__description__ = 'https://api.sellsy.fr/documentation/methodes'
__version__ = '0.0.4'
__author__ = 'Cantin L.'
print("API de ", __title__ ," lien de la documentation : ", __description__ ," c'est la version ", __version__ ," développer par ", __author__)
| 28.1 | 143 | 0.711744 | 33 | 281 | 5.090909 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012448 | 0.142349 | 281 | 9 | 144 | 31.222222 | 0.684647 | 0 | 0 | 0 | 0 | 0 | 0.47331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
6384258d913de6e4fc08931c660b2c76e3e19128 | 2,474 | py | Python | dnnv/nn/transformers/simplifiers/convert_batch_norm.py | samysweb/dnnv | 58fb95b7300914d9da28eed86c39eca473b1aaef | [
"MIT"
] | 5 | 2022-01-28T20:30:34.000Z | 2022-03-17T09:26:52.000Z | dnnv/nn/transformers/simplifiers/convert_batch_norm.py | samysweb/dnnv | 58fb95b7300914d9da28eed86c39eca473b1aaef | [
"MIT"
] | 9 | 2022-01-27T03:50:28.000Z | 2022-02-08T18:42:17.000Z | dnnv/nn/transformers/simplifiers/convert_batch_norm.py | samysweb/dnnv | 58fb95b7300914d9da28eed86c39eca473b1aaef | [
"MIT"
] | 2 | 2022-02-03T17:32:43.000Z | 2022-03-24T16:38:49.000Z | import numpy as np
from copy import copy
from .base import Simplifier
from ... import operations
from ...analyzers import SplitAnalysis
class ConvertBatchNorm(Simplifier):
ANALYSES = {"is_split": SplitAnalysis}
def visit_BatchNormalization(self, operation: operations.BatchNormalization):
input_op =... | 38.061538 | 81 | 0.551334 | 285 | 2,474 | 4.684211 | 0.259649 | 0.073408 | 0.026966 | 0.053933 | 0.436704 | 0.393258 | 0.393258 | 0.361798 | 0.361798 | 0.361798 | 0 | 0.00566 | 0.357316 | 2,474 | 64 | 82 | 38.65625 | 0.833962 | 0.037187 | 0 | 0.303571 | 0 | 0 | 0.010088 | 0 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0.017857 | false | 0 | 0.089286 | 0 | 0.232143 | 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 |
63850c071213d04198d3f9b82980cae42e8df47c | 572 | py | Python | config.py | gokul-uf/tf-BEGAN | fd4bfe33830b03107dffad757f7db7a0c15d285f | [
"MIT"
] | null | null | null | config.py | gokul-uf/tf-BEGAN | fd4bfe33830b03107dffad757f7db7a0c15d285f | [
"MIT"
] | null | null | null | config.py | gokul-uf/tf-BEGAN | fd4bfe33830b03107dffad757f7db7a0c15d285f | [
"MIT"
] | null | null | null | import tensorflow as tf
class Config:
batch_size = 16
n = 13 # TODO: change
embedding_dim = 64
z_low_limit = -1
z_high_limit = 1
img_width = 64
img_height = 64
num_channel = 3
lambda_k = 0.001
gamma = 0.5
k_0 = 0
lr = 5e-5
sample_location = "../samples"
num... | 19.066667 | 55 | 0.620629 | 86 | 572 | 3.883721 | 0.651163 | 0.035928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098237 | 0.305944 | 572 | 29 | 56 | 19.724138 | 0.743073 | 0.157343 | 0 | 0 | 0 | 0 | 0.073375 | 0.052411 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
638aaf4eb54fe2e816890b8bf17e12a681d67167 | 35,256 | py | Python | python-real-time-application/views/base_project_main_qt4.py | italogsfernandes/emg-moviments-classifier | 7a58f162fa6c5bc1a2906c539dac3e0210115522 | [
"MIT"
] | 2 | 2018-12-16T16:48:17.000Z | 2019-02-09T15:03:30.000Z | python-real-time-application/views/base_project_main_qt4.py | italogsfernandes/emg-moviments-classifier | 7a58f162fa6c5bc1a2906c539dac3e0210115522 | [
"MIT"
] | 3 | 2018-05-16T20:12:15.000Z | 2018-05-16T20:12:57.000Z | python-real-time-application/views/base_project_main_qt4.py | italogsfernandes/emg-moviments-classifier | 7a58f162fa6c5bc1a2906c539dac3e0210115522 | [
"MIT"
] | 1 | 2019-01-17T15:23:33.000Z | 2019-01-17T15:23:33.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'layouts/base_project_main.ui'
#
# Created by: PyQt4 UI code generator 4.12.1
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
d... | 64.808824 | 134 | 0.745292 | 3,702 | 35,256 | 6.834684 | 0.075905 | 0.098767 | 0.047269 | 0.015493 | 0.403525 | 0.268477 | 0.186191 | 0.13821 | 0.100704 | 0.08857 | 0 | 0.022082 | 0.149677 | 35,256 | 543 | 135 | 64.928177 | 0.821909 | 0.005644 | 0 | 0.077505 | 1 | 0 | 0.090445 | 0.012754 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009452 | false | 0 | 0.00189 | 0.005671 | 0.018904 | 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 |
638c74cc0279ee1c4094af573b5414cdf4f3d6c6 | 888 | py | Python | 024 Binary Search/Binary_Search.py | Iftakharpy/AlgoExpert-Questions | f4aef449bfe0ee651d84a92487c3b3bedb3aa739 | [
"Apache-2.0"
] | 3 | 2021-11-19T07:32:27.000Z | 2022-03-22T13:46:27.000Z | 024 Binary Search/Binary_Search.py | Iftakharpy/AlgoExpert-Questions | f4aef449bfe0ee651d84a92487c3b3bedb3aa739 | [
"Apache-2.0"
] | null | null | null | 024 Binary Search/Binary_Search.py | Iftakharpy/AlgoExpert-Questions | f4aef449bfe0ee651d84a92487c3b3bedb3aa739 | [
"Apache-2.0"
] | 5 | 2022-01-02T11:51:12.000Z | 2022-03-22T13:53:32.000Z | # Best
# time O(log(n))
# space O(1)
def binarySearch(array, target):
low = 0
high = len(array)-1
while low<=high:
mid = (low+high)//2
if array[mid] == target:
return mid
if target > array[mid]:
low = mid + 1
else:
high = mid -... | 23.368421 | 62 | 0.530405 | 118 | 888 | 3.991525 | 0.279661 | 0.089172 | 0.031847 | 0.038217 | 0.498938 | 0.360934 | 0.284501 | 0.174098 | 0.174098 | 0.174098 | 0 | 0.022569 | 0.351351 | 888 | 37 | 63 | 24 | 0.795139 | 0.15991 | 0 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0 | 0.04 | 0.36 | 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 |
63938854a1875eeb32c335db5deaa24f562ca807 | 221 | py | Python | src/apim/apim_update.py | paul-mateos/azure-apim-deployment-utils | 969fedfa5b5c910ffd3aa04ede265ab18c1844a3 | [
"Apache-2.0"
] | 14 | 2016-03-16T16:46:46.000Z | 2022-03-26T02:28:26.000Z | src/apim/apim_update.py | paul-mateos/azure-apim-deployment-utils | 969fedfa5b5c910ffd3aa04ede265ab18c1844a3 | [
"Apache-2.0"
] | 2 | 2016-04-10T08:28:26.000Z | 2018-01-30T07:58:46.000Z | src/apim/apim_update.py | paul-mateos/azure-apim-deployment-utils | 969fedfa5b5c910ffd3aa04ede265ab18c1844a3 | [
"Apache-2.0"
] | 8 | 2016-06-24T23:11:33.000Z | 2021-08-13T13:36:45.000Z | import sys
import apim_commands
if len(sys.argv) < 2:
print "Usage:"
print " python apim_update.py <config dir>"
sys.exit(1)
if not apim_commands.apim_update(sys.argv[1]):
sys.exit(1)
sys.exit(0)
| 17 | 49 | 0.656109 | 37 | 221 | 3.810811 | 0.513514 | 0.148936 | 0.113475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028736 | 0.21267 | 221 | 12 | 50 | 18.416667 | 0.781609 | 0 | 0 | 0.222222 | 0 | 0 | 0.19457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.222222 | 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 |
6395550b5921bad863f76e0381a8511c428e1311 | 562 | py | Python | portfolio/templatematching/tests/factories.py | Pompeiro/portfolio | 20b7ffb0a061be7ed0950e87f94164409fef2318 | [
"MIT"
] | null | null | null | portfolio/templatematching/tests/factories.py | Pompeiro/portfolio | 20b7ffb0a061be7ed0950e87f94164409fef2318 | [
"MIT"
] | null | null | null | portfolio/templatematching/tests/factories.py | Pompeiro/portfolio | 20b7ffb0a061be7ed0950e87f94164409fef2318 | [
"MIT"
] | null | null | null | import factory
import factory.fuzzy
from django.core.files.base import ContentFile
from ..models import NEEDLE_CHOICES, UploadedImage
class UploadedImageFactory(factory.django.DjangoModelFactory):
image = factory.LazyAttribute(
lambda _: ContentFile(
factory.django.ImageField()._make_data({"w... | 28.1 | 83 | 0.688612 | 62 | 562 | 6.16129 | 0.612903 | 0.094241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026906 | 0.206406 | 562 | 19 | 84 | 29.578947 | 0.829596 | 0 | 0 | 0 | 0 | 0 | 0.039146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 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 |
63a33e9fb0d96448fd1df15cc2e6517d81f806db | 141 | py | Python | Q02__/80_Wiggle_Sort/test.py | hsclinical/leetcode | 48a57f6a5d5745199c5685cd2c8f5c4fa293e54a | [
"Apache-2.0"
] | null | null | null | Q02__/80_Wiggle_Sort/test.py | hsclinical/leetcode | 48a57f6a5d5745199c5685cd2c8f5c4fa293e54a | [
"Apache-2.0"
] | null | null | null | Q02__/80_Wiggle_Sort/test.py | hsclinical/leetcode | 48a57f6a5d5745199c5685cd2c8f5c4fa293e54a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
from Solution import Solution
obj = Solution()
#A = [3,5,2,1,6,4]
A = [3,5,4,2,1,6,4]
out = obj.wiggleSort(A)
print(out)
| 14.1 | 29 | 0.631206 | 30 | 141 | 2.966667 | 0.566667 | 0.044944 | 0.067416 | 0.089888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107438 | 0.141844 | 141 | 9 | 30 | 15.666667 | 0.628099 | 0.234043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 |
63a78cd29ddc0e5f3338ddc903d0089343ab149d | 782 | py | Python | geostream/vector/serialize.py | karimbahgat/GeoStream | ca067c3b2ba12983089a5562869a7732a3d7aa6b | [
"MIT"
] | null | null | null | geostream/vector/serialize.py | karimbahgat/GeoStream | ca067c3b2ba12983089a5562869a7732a3d7aa6b | [
"MIT"
] | null | null | null | geostream/vector/serialize.py | karimbahgat/GeoStream | ca067c3b2ba12983089a5562869a7732a3d7aa6b | [
"MIT"
] | null | null | null |
import sqlite3
from sqlite3 import Binary
from shapely.wkb import loads as wkb_loads
from shapely.geometry import shape
from shapely.geometry import Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon
def shapely_to_wkb(shp):
# shapely to wkb buffer
wkb = shp.wkb
buf = Binary(wkb)
... | 24.4375 | 98 | 0.748082 | 110 | 782 | 5.163636 | 0.3 | 0.052817 | 0.06338 | 0.088028 | 0.302817 | 0.302817 | 0.09507 | 0 | 0 | 0 | 0 | 0.007764 | 0.176471 | 782 | 31 | 99 | 25.225806 | 0.874224 | 0.08312 | 0 | 0.2 | 0 | 0 | 0.005618 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.25 | 0 | 0.55 | 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 |
63ae1984e501753a7f9f48a10dd85243dd0061d4 | 8,815 | py | Python | sorting_algorithms.py | edzelle/Projects | 32ac120ee35a7a6c32b09218a7e858de81935425 | [
"Apache-2.0"
] | null | null | null | sorting_algorithms.py | edzelle/Projects | 32ac120ee35a7a6c32b09218a7e858de81935425 | [
"Apache-2.0"
] | null | null | null | sorting_algorithms.py | edzelle/Projects | 32ac120ee35a7a6c32b09218a7e858de81935425 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import timeit
import random
import math
def insertionSort(a):
for i in range(1,len(a)):
value = a[i]
pos = i
while (pos > 0 and value < a[pos-1]):
a[pos] = a[pos-1]
pos = pos-1
a[pos] = value
def countingSort(a,max):
m = max+1
co... | 21.139089 | 94 | 0.594441 | 1,380 | 8,815 | 3.675362 | 0.072464 | 0.102524 | 0.141956 | 0.066246 | 0.711159 | 0.684148 | 0.684148 | 0.667981 | 0.667981 | 0.667981 | 0 | 0.08259 | 0.223936 | 8,815 | 416 | 95 | 21.189904 | 0.658822 | 0.00987 | 0 | 0.663717 | 0 | 0 | 0.021505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017699 | false | 0 | 0.014749 | 0 | 0.047198 | 0.061947 | 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 |
63aeb19bf2b6573c5e44756bbca5685a87ddfd79 | 3,168 | py | Python | Barrier.py | yunfanz/ReionBub | c42401d9baf131c4e67b8b2f18828c1d83443a44 | [
"MIT"
] | 1 | 2020-03-25T06:14:17.000Z | 2020-03-25T06:14:17.000Z | Barrier.py | yunfanz/ReionBub | c42401d9baf131c4e67b8b2f18828c1d83443a44 | [
"MIT"
] | null | null | null | Barrier.py | yunfanz/ReionBub | c42401d9baf131c4e67b8b2f18828c1d83443a44 | [
"MIT"
] | 2 | 2019-05-28T02:56:20.000Z | 2020-03-25T06:14:23.000Z | import cosmolopy.perturbation as pb
import cosmolopy.density as cd
import numpy as np
from IO_utils import *
import matplotlib.pyplot as plt
import matplotlib, seaborn as sns
from scipy import ndimage, interpolate
from tocmfastpy import *
from skimage import measure, morphology, segmentation
from Choud14 import *
impor... | 29.886792 | 145 | 0.679293 | 483 | 3,168 | 4.329193 | 0.36853 | 0.033477 | 0.034433 | 0.012912 | 0.033477 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01991 | 0.159722 | 3,168 | 105 | 146 | 30.171429 | 0.76559 | 0.210227 | 0 | 0.027778 | 0 | 0 | 0.089552 | 0.022186 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.041667 | 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 |
63af16dffe98e47bfb6e61e8912d7068538de8c9 | 1,385 | py | Python | openprocurement/auctions/tessel/tests/document.py | yevheniimoroziuk/openprocurement.auctions.tessel | 88b46279ebeae9a5b79e88eeffcce570c0716ff4 | [
"Apache-2.0"
] | null | null | null | openprocurement/auctions/tessel/tests/document.py | yevheniimoroziuk/openprocurement.auctions.tessel | 88b46279ebeae9a5b79e88eeffcce570c0716ff4 | [
"Apache-2.0"
] | 14 | 2018-09-19T13:40:01.000Z | 2022-03-21T22:16:29.000Z | openprocurement/auctions/tessel/tests/document.py | yevheniimoroziuk/openprocurement.auctions.tessel | 88b46279ebeae9a5b79e88eeffcce570c0716ff4 | [
"Apache-2.0"
] | 5 | 2018-07-02T13:19:41.000Z | 2018-09-17T09:27:51.000Z | # -*- coding: utf-8 -*-
import unittest
from openprocurement.auctions.tessel.tests.base import BaseTesselAuctionWebTest
from openprocurement.auctions.core.tests.base import snitch
from openprocurement.auctions.core.tests.document import (
AuctionDocumentResourceTestMixin,
AuctionDocumentWithDSResourceTestMixin... | 32.209302 | 121 | 0.824549 | 124 | 1,385 | 8.919355 | 0.33871 | 0.122061 | 0.122061 | 0.084087 | 0.303797 | 0.090416 | 0.090416 | 0.090416 | 0 | 0 | 0 | 0.000812 | 0.111191 | 1,385 | 42 | 122 | 32.97619 | 0.897644 | 0.044043 | 0 | 0.068966 | 0 | 0 | 0.009841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.206897 | 0 | 0.551724 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.