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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
feb34abbec171285691d0ad331f3fbf1ac667bf7 | 965 | py | Python | tools/sunlabs/run.py | sun-labs/energiportalen | 35b448e27bb8bfe2c8f842c56e1b3a4c7ded7623 | [
"MIT"
] | 1 | 2020-07-06T22:01:29.000Z | 2020-07-06T22:01:29.000Z | tools/sunlabs/run.py | sun-labs/energiportalen | 35b448e27bb8bfe2c8f842c56e1b3a4c7ded7623 | [
"MIT"
] | null | null | null | tools/sunlabs/run.py | sun-labs/energiportalen | 35b448e27bb8bfe2c8f842c56e1b3a4c7ded7623 | [
"MIT"
] | null | null | null | from api_energiportalen import *
location = {
'name': 'test',
'image': None,
'description': None,
'country': 'SWE',
'city': 'Uppsala',
}
unit = { 'name': 'SALAHEBY1' }
new_loc = add_location(**location)
new_unit = add_unit(**unit)
bind_loc_unit = bind_unit_location(new_unit, new_loc)
new_uk = add_unit_key(**... | 20.531915 | 77 | 0.690155 | 144 | 965 | 4.3125 | 0.375 | 0.056361 | 0.048309 | 0.048309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020681 | 0.148187 | 965 | 47 | 78 | 20.531915 | 0.734793 | 0 | 0 | 0.105263 | 0 | 0 | 0.153209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026316 | null | null | 0.263158 | 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 |
feb76b4db6afbc2f505304aed91798a03a4bd18f | 559 | py | Python | example.py | Tian-MC/Neutron | c9daabbc8deeaf5f45143b3adb5e5d49f836acba | [
"MIT"
] | 1 | 2021-11-30T15:40:41.000Z | 2021-11-30T15:40:41.000Z | example.py | Tian-MC/Neutron | c9daabbc8deeaf5f45143b3adb5e5d49f836acba | [
"MIT"
] | null | null | null | example.py | Tian-MC/Neutron | c9daabbc8deeaf5f45143b3adb5e5d49f836acba | [
"MIT"
] | null | null | null | import Neutron
win = Neutron.Window("Example", css="def.css")
def setName():
name = win.getElementById("inputName").value
win.getElementById("title").innerHTML = "Hello: " + name
win.display(f"""
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
</head>
<body>
<h1 id="tit... | 20.703704 | 95 | 0.610018 | 66 | 559 | 5.166667 | 0.606061 | 0.035191 | 0.111437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006522 | 0.177102 | 559 | 26 | 96 | 21.5 | 0.734783 | 0 | 0 | 0 | 0 | 0.05 | 0.660107 | 0.150268 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2281a153f1dcdf5cf010e353a1aebfa14caa21cf | 812 | py | Python | playground/say_text.py | Shingirai98/EEE3097 | b3880e163d1d195c52af16046e7d9f64fcb25676 | [
"Apache-2.0"
] | 12 | 2016-10-24T21:53:38.000Z | 2021-01-09T12:07:53.000Z | playground/say_text.py | Shingirai98/EEE3097 | b3880e163d1d195c52af16046e7d9f64fcb25676 | [
"Apache-2.0"
] | 14 | 2017-02-27T15:39:18.000Z | 2019-11-25T19:58:16.000Z | playground/say_text.py | Shingirai98/EEE3097 | b3880e163d1d195c52af16046e7d9f64fcb25676 | [
"Apache-2.0"
] | 5 | 2018-09-27T13:57:47.000Z | 2021-01-09T12:07:11.000Z | import pyttsx
import time
import RPi.GPIO as GPIO
# set pin for amplifier switch
amp_switch_pin = 5
# turn off GPIO warnings
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
# set pin to output
GPIO.setup(amp_switch_pin, GPIO.OUT)
def say(text):
"""synthesizes the given text to speech"""
# set output high in... | 22.555556 | 76 | 0.694581 | 128 | 812 | 4.335938 | 0.515625 | 0.064865 | 0.086486 | 0.046847 | 0.111712 | 0.111712 | 0 | 0 | 0 | 0 | 0 | 0.017107 | 0.208128 | 812 | 36 | 77 | 22.555556 | 0.846034 | 0.284483 | 0 | 0 | 0 | 0 | 0.071295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
228495d6c5c895731250e49b360bf3f5d1c7f668 | 7,791 | py | Python | spLite/auth.py | mstackhouse/spLite | 2f7209e44d82760b19a6328a3de4fe5398a91e83 | [
"MIT"
] | 4 | 2020-08-12T20:32:31.000Z | 2021-04-17T07:54:53.000Z | spLite/auth.py | mstackhouse/spLite | 2f7209e44d82760b19a6328a3de4fe5398a91e83 | [
"MIT"
] | null | null | null | spLite/auth.py | mstackhouse/spLite | 2f7209e44d82760b19a6328a3de4fe5398a91e83 | [
"MIT"
] | 6 | 2020-07-02T13:32:55.000Z | 2022-03-03T08:30:11.000Z | import requests
import os
from urllib.parse import quote
from urllib.parse import unquote
from urllib.parse import urlparse
from xml.etree import ElementTree
from requests_ntlm import HttpNtlmAuth # third party install
from requests.auth import HTTPBasicAuth
from getpass import getpass
import logging
logger = logging... | 42.113514 | 123 | 0.629701 | 966 | 7,791 | 5.014493 | 0.337474 | 0.011561 | 0.020644 | 0.013006 | 0.198596 | 0.198596 | 0.141619 | 0.123452 | 0.075557 | 0.075557 | 0 | 0.012021 | 0.273906 | 7,791 | 184 | 124 | 42.342391 | 0.844264 | 0.335515 | 0 | 0.080808 | 0 | 0.020202 | 0.229843 | 0.089202 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070707 | false | 0.111111 | 0.10101 | 0 | 0.262626 | 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 |
228af829e392e94535bb781fcdc0aed5def829fb | 1,242 | py | Python | tests/__init__.py | dimagi/architect | b87475a2eaf63916ad12666c998c062b675bde1d | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | dimagi/architect | b87475a2eaf63916ad12666c998c062b675bde1d | [
"Apache-2.0"
] | 1 | 2022-01-20T12:55:33.000Z | 2022-01-20T12:55:33.000Z | tests/__init__.py | dimagi/architect | b87475a2eaf63916ad12666c998c062b675bde1d | [
"Apache-2.0"
] | 2 | 2019-12-23T09:46:28.000Z | 2022-01-20T11:23:11.000Z | import sys
import functools
import contextlib
try:
from cStringIO import StringIO
except ImportError:
from io import StringIO
try:
import unittest2 as unittest
except ImportError:
import unittest
try:
from unittest import mock
except ImportError:
import mock
try:
import pymysql
pymys... | 20.032258 | 85 | 0.690016 | 159 | 1,242 | 5.257862 | 0.415094 | 0.057416 | 0.055024 | 0.047847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003145 | 0.231884 | 1,242 | 61 | 86 | 20.360656 | 0.873166 | 0.088567 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.045455 | 0.340909 | 0 | 0.477273 | 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 |
228cb9be37ff00cc0f9453ac07c03db7e73d876e | 2,542 | py | Python | StartRegressionParallel.py | sallum/driver-telematics | ca568ac0da6a1d0a6c7ca6c1e8cda573ba6e68be | [
"BSD-2-Clause"
] | null | null | null | StartRegressionParallel.py | sallum/driver-telematics | ca568ac0da6a1d0a6c7ca6c1e8cda573ba6e68be | [
"BSD-2-Clause"
] | null | null | null | StartRegressionParallel.py | sallum/driver-telematics | ca568ac0da6a1d0a6c7ca6c1e8cda573ba6e68be | [
"BSD-2-Clause"
] | null | null | null | """Main module for Kaggle AXA Competition
Uses the logistic regression idea described by Stephane Soulier: https://www.kaggle.com/c/axa-driver-telematics-analysis/forums/t/11299/score-0-66-with-logistic-regression
Hence, we use the traces from every driver as positive examples and build a set of references that we use... | 37.940299 | 257 | 0.717152 | 342 | 2,542 | 5.245614 | 0.48538 | 0.026756 | 0.027871 | 0.022297 | 0.023411 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008637 | 0.180173 | 2,542 | 66 | 258 | 38.515152 | 0.852207 | 0 | 0 | 0 | 0 | 0 | 0.072954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.184211 | 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 |
22904d54a163900a926bc38f8b01e5d838756d85 | 238 | py | Python | tests/my_column.py | oldjun/PyMyORM | ac49910f21d3f3d3d4b3d75a0f998526963f0a2a | [
"MIT"
] | 1 | 2021-12-01T23:47:24.000Z | 2021-12-01T23:47:24.000Z | tests/my_column.py | oldjun/PyMyORM | ac49910f21d3f3d3d4b3d75a0f998526963f0a2a | [
"MIT"
] | null | null | null | tests/my_column.py | oldjun/PyMyORM | ac49910f21d3f3d3d4b3d75a0f998526963f0a2a | [
"MIT"
] | 2 | 2022-01-03T15:03:37.000Z | 2022-02-16T09:00:58.000Z | from pymyorm.database import Database
from config import db
from models.user import User
if __name__ == '__main__':
Database.connect(**db)
names = User.find().order('id asc').offset(1).limit(2).column('name')
print(names)
| 19.833333 | 73 | 0.697479 | 34 | 238 | 4.647059 | 0.676471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.159664 | 238 | 11 | 74 | 21.636364 | 0.78 | 0 | 0 | 0 | 0 | 0 | 0.07563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0.142857 | 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 |
2293cb758cfc8d5f7588ffda5cfe396ff571b2a8 | 5,414 | py | Python | emloop/tests/hooks/save_test.py | iterait/cxflow | 4dfccf2b49186261ab3fe151bc4f7d0de454ac03 | [
"MIT"
] | 3 | 2018-10-08T09:01:31.000Z | 2018-12-17T08:36:20.000Z | emloop/tests/hooks/save_test.py | iterait/emloop | 4dfccf2b49186261ab3fe151bc4f7d0de454ac03 | [
"MIT"
] | 65 | 2018-10-03T14:06:03.000Z | 2020-06-11T20:56:53.000Z | emloop/tests/hooks/save_test.py | iterait/emloop | 4dfccf2b49186261ab3fe151bc4f7d0de454ac03 | [
"MIT"
] | null | null | null | """
Test module for saver hooks (:py:mod:`emloop.hooks.save`).
"""
from typing import Mapping, List
import collections
import pytest
from emloop.hooks.save import SaveEvery, SaveBest, SaveLatest
from emloop.models.abstract_model import AbstractModel
from emloop.types import EpochData
def _get_epoch_data(valid_loss_... | 27.764103 | 84 | 0.636683 | 656 | 5,414 | 5.032012 | 0.208841 | 0.035444 | 0.04847 | 0.033323 | 0.392002 | 0.351106 | 0.343229 | 0.240836 | 0.177825 | 0.177825 | 0 | 0.007985 | 0.213521 | 5,414 | 194 | 85 | 27.907216 | 0.767262 | 0.179719 | 0 | 0.287234 | 0 | 0 | 0.060055 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 1 | 0.212766 | false | 0.042553 | 0.06383 | 0.010638 | 0.319149 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
229a56169dfa2e96a5294316b4f0f2f08d6aaf40 | 6,019 | py | Python | cs15211/FloodFill.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2021-07-05T01:53:30.000Z | 2021-07-05T01:53:30.000Z | cs15211/FloodFill.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | null | null | null | cs15211/FloodFill.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2018-01-08T07:14:08.000Z | 2018-01-08T07:14:08.000Z | __source__ = 'https://leetcode.com/problems/flood-fill/description/'
# Time: O(N)
# Space: O(N)
#
# Description: Leetcode # 733. Flood Fill
#
# An image is represented by a 2-D array of integers,
# each integer representing the pixel value of the image (from 0 to 65535).
#
# Given a coordinate (sr, sc) representing th... | 33.814607 | 119 | 0.545606 | 869 | 6,019 | 3.737629 | 0.196778 | 0.023399 | 0.038793 | 0.02617 | 0.335591 | 0.285714 | 0.264778 | 0.2383 | 0.20936 | 0.196736 | 0 | 0.033293 | 0.306363 | 6,019 | 178 | 120 | 33.814607 | 0.744671 | 0.266323 | 0 | 0.133929 | 0 | 0.0625 | 0.6409 | 0.019911 | 0 | 0 | 0 | 0 | 0.008929 | 1 | 0.035714 | false | 0 | 0.008929 | 0 | 0.133929 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
229cc225926abd7abf36342421c612564b02d39a | 216 | py | Python | Algoritmo(Python)/Alg_S8_3.py | Daniel-Conte/Exercicios-de-Algoritmo | 5a42722516097d0aec14d80549e18501b182eebd | [
"MIT"
] | null | null | null | Algoritmo(Python)/Alg_S8_3.py | Daniel-Conte/Exercicios-de-Algoritmo | 5a42722516097d0aec14d80549e18501b182eebd | [
"MIT"
] | null | null | null | Algoritmo(Python)/Alg_S8_3.py | Daniel-Conte/Exercicios-de-Algoritmo | 5a42722516097d0aec14d80549e18501b182eebd | [
"MIT"
] | null | null | null | #variables
vetor = []
#input
for(i) in range(0, 10):
num = int(input("Digite um número para o vetor {0}/10: ".format(i + 1)))
vetor.append(num)
vetor.reverse() #inverte a ordem
for(i) in (vetor):
print(i) | 24 | 76 | 0.625 | 37 | 216 | 3.648649 | 0.648649 | 0.059259 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.189815 | 216 | 9 | 77 | 24 | 0.731429 | 0.134259 | 0 | 0 | 0 | 0 | 0.205405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 |
22a4b6f99df31a47b827175ac2faef66a51e8c57 | 10,022 | py | Python | updatezip.py | rivoric/updatezip | 1e00dc7d821139d128565faed60acfbb601ff7ec | [
"MIT"
] | null | null | null | updatezip.py | rivoric/updatezip | 1e00dc7d821139d128565faed60acfbb601ff7ec | [
"MIT"
] | null | null | null | updatezip.py | rivoric/updatezip | 1e00dc7d821139d128565faed60acfbb601ff7ec | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"UpdateZip script to change zip files"
from __future__ import print_function
import zipfile
import re
import zlib
import sys
import os
import getopt
import random
__uz_aliases = { 'delete': 'D', 'remove': 'D', 'del': 'D', 'rm': 'D',
'replace': 'U','update': 'U',
... | 35.164912 | 101 | 0.534724 | 1,219 | 10,022 | 4.350287 | 0.243642 | 0.02904 | 0.00792 | 0.008297 | 0.146709 | 0.123326 | 0.123326 | 0.108241 | 0.072789 | 0.072789 | 0 | 0.013131 | 0.354121 | 10,022 | 284 | 102 | 35.288732 | 0.805963 | 0.064758 | 0 | 0.233051 | 0 | 0.004237 | 0.260026 | 0 | 0 | 0 | 0 | 0.003521 | 0 | 0 | null | null | 0 | 0.033898 | null | null | 0.072034 | 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 |
22a5c5d8c15ff918ef143b717b97a9eed862bb2e | 1,214 | py | Python | roamPy/roamClass.py | maahutch/roamPy | d3752b982eced2b514cfe34ffde5c06d5bd77d8e | [
"MIT"
] | null | null | null | roamPy/roamClass.py | maahutch/roamPy | d3752b982eced2b514cfe34ffde5c06d5bd77d8e | [
"MIT"
] | null | null | null | roamPy/roamClass.py | maahutch/roamPy | d3752b982eced2b514cfe34ffde5c06d5bd77d8e | [
"MIT"
] | null | null | null | from roamPy.heartbeatClass import heartbeat
from roamPy.subscriptionsClass import subscriptions
from roamPy.subscriptionPeriodsClass import subscriptionPeriod
from roamPy.productsClass import products
from roamPy.licensesClass import license
from requests import request
class Roam(heartbeat, subscriptions, subscriptio... | 28.904762 | 76 | 0.636738 | 126 | 1,214 | 6.071429 | 0.460317 | 0.065359 | 0.028758 | 0.060131 | 0.070588 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002309 | 0.286656 | 1,214 | 41 | 77 | 29.609756 | 0.881062 | 0.2257 | 0 | 0 | 0 | 0 | 0.108077 | 0.055745 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | 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 |
22a6811417105fb6b81f6c4e655405be8ea1fd51 | 982 | py | Python | setup.py | CodeBrew-LTD/django-hordak | efdfe503bf38b0a283790c5b4d27bd6bb28155e4 | [
"MIT"
] | 187 | 2016-12-12T10:58:11.000Z | 2022-03-27T08:14:19.000Z | setup.py | CodeBrew-LTD/django-hordak | efdfe503bf38b0a283790c5b4d27bd6bb28155e4 | [
"MIT"
] | 62 | 2016-12-10T00:12:47.000Z | 2022-03-16T09:23:05.000Z | setup.py | CodeBrew-LTD/django-hordak | efdfe503bf38b0a283790c5b4d27bd6bb28155e4 | [
"MIT"
] | 47 | 2016-12-12T11:07:31.000Z | 2022-03-15T20:30:07.000Z | #!/usr/bin/env python
from os.path import exists
from setuptools import setup, find_packages
setup(
name="django-hordak",
version=open("VERSION").read().strip(),
author="Adam Charnock",
author_email="adam@adamcharnock.com",
packages=find_packages(),
scripts=[],
url="https://github.com/adam... | 28.882353 | 79 | 0.596741 | 132 | 982 | 4.378788 | 0.575758 | 0.041522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049032 | 0.210794 | 982 | 33 | 80 | 29.757576 | 0.696774 | 0.020367 | 0 | 0 | 0 | 0 | 0.438085 | 0.206035 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22a7a41d01f06110a9a52d220ebc13964b7197f3 | 1,689 | py | Python | players.py | CompassMentis/mosaic_tiles | d8980cf65965aee77b1e14dc3760b11343a6a4a2 | [
"MIT"
] | null | null | null | players.py | CompassMentis/mosaic_tiles | d8980cf65965aee77b1e14dc3760b11343a6a4a2 | [
"MIT"
] | null | null | null | players.py | CompassMentis/mosaic_tiles | d8980cf65965aee77b1e14dc3760b11343a6a4a2 | [
"MIT"
] | null | null | null | import pygame
from settings import Settings
class Player:
def __init__(self, name, order, is_human):
self.name = name
self.order = order
self.is_human = is_human
self.points = 0
def show_score(self, game):
# TODO - Refactor? Don't pass in canvas, maybe create local re... | 35.1875 | 94 | 0.600947 | 197 | 1,689 | 4.928934 | 0.365482 | 0.046344 | 0.07724 | 0.086509 | 0.082389 | 0.082389 | 0 | 0 | 0 | 0 | 0 | 0.007792 | 0.316163 | 1,689 | 47 | 95 | 35.93617 | 0.8329 | 0.130847 | 0 | 0.054054 | 0 | 0 | 0.006152 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.054054 | false | 0 | 0.054054 | 0 | 0.135135 | 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 |
22a92f9df17a637b4a85b70425c726412246a082 | 936 | py | Python | jitterbug/cong_inference.py | estcarisimo/jitterbug | ebc02fe6f9a7c75d023996332bbedecf58c6d2bc | [
"MIT"
] | 2 | 2022-02-24T04:24:39.000Z | 2022-02-24T16:09:54.000Z | jitterbug/cong_inference.py | estcarisimo/jitterbug | ebc02fe6f9a7c75d023996332bbedecf58c6d2bc | [
"MIT"
] | null | null | null | jitterbug/cong_inference.py | estcarisimo/jitterbug | ebc02fe6f9a7c75d023996332bbedecf58c6d2bc | [
"MIT"
] | null | null | null | import numpy as np
class congestionInference:
def __init__(self, latency_jumps, jitter_analysis):
self.latency_jumps = latency_jumps
self.jitter_analysis = jitter_analysis
self.congestion = False
def fit(self):
self.congestion_inferences = []
for i in rang... | 28.363636 | 116 | 0.610043 | 111 | 936 | 4.972973 | 0.441441 | 0.173913 | 0.202899 | 0.123188 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007728 | 0.308761 | 936 | 32 | 117 | 29.25 | 0.84544 | 0.083333 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.052632 | 0.052632 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22b08dd18a27c4582fd665b9bc24ba2df7e570d2 | 5,210 | py | Python | sympy/interactive/printing.py | sn6uv/sympy | 5b149c2f72847e4785c65358b09d99b29f101dd5 | [
"BSD-3-Clause"
] | 2 | 2015-05-11T12:26:38.000Z | 2016-08-19T00:11:03.000Z | sympy/interactive/printing.py | goodok/sympy | de84ed2139125a755ea7b6ba91d945d9fbbe5ed9 | [
"BSD-3-Clause"
] | null | null | null | sympy/interactive/printing.py | goodok/sympy | de84ed2139125a755ea7b6ba91d945d9fbbe5ed9 | [
"BSD-3-Clause"
] | null | null | null | """Tools for setting up printing in interactive sessions. """
def _init_python_printing(stringify_func):
"""Setup printing in Python interactive session. """
import __builtin__, sys
def _displayhook(arg):
"""Python's pretty-printer display hook.
This function was adapted from:
... | 34.052288 | 147 | 0.626296 | 688 | 5,210 | 4.565407 | 0.261628 | 0.059535 | 0.007641 | 0.020694 | 0.304998 | 0.188157 | 0.149316 | 0.149316 | 0.120981 | 0.096466 | 0 | 0.011802 | 0.268138 | 5,210 | 152 | 148 | 34.276316 | 0.811959 | 0.014012 | 0 | 0.2 | 0 | 0 | 0.040616 | 0.010738 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.38 | 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 |
22b1c3375a011df3ba59aacb06b68ad5fb78fa1c | 1,066 | py | Python | src/classes/server_structs.py | ike753z/BLRE-Server-Info-Discord-Bot | 38af42bfaa7424ce6e2b5d7b3feed7b0f03a0a07 | [
"MIT"
] | null | null | null | src/classes/server_structs.py | ike753z/BLRE-Server-Info-Discord-Bot | 38af42bfaa7424ce6e2b5d7b3feed7b0f03a0a07 | [
"MIT"
] | null | null | null | src/classes/server_structs.py | ike753z/BLRE-Server-Info-Discord-Bot | 38af42bfaa7424ce6e2b5d7b3feed7b0f03a0a07 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
import json
from classes.commands import CommandType
@dataclass
class ServerInfo:
PlayerCount: int = 0
Map: str = ''
@dataclass
class LaunchOptions:
Map: str = ''
Servername: str = 'Cow Server'
Gamemode: str = ''
Port: int = 7778
BotCount: int = 0
Ma... | 26 | 173 | 0.651032 | 107 | 1,066 | 6.485981 | 0.523364 | 0.060519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01118 | 0.244841 | 1,066 | 41 | 174 | 26 | 0.850932 | 0 | 0 | 0.151515 | 0 | 0 | 0.104967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.090909 | 0.030303 | 0.757576 | 0.030303 | 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 |
22b1db3b2a2522b603b111a88219625ae892bcf4 | 2,054 | py | Python | scripts/manageusers.py | hakuya/higu | 42effd9b1a5d55bfbbc20d857b070e7b703154b3 | [
"BSD-2-Clause"
] | null | null | null | scripts/manageusers.py | hakuya/higu | 42effd9b1a5d55bfbbc20d857b070e7b703154b3 | [
"BSD-2-Clause"
] | 2 | 2015-11-09T01:23:30.000Z | 2017-02-06T06:36:41.000Z | scripts/manageusers.py | hakuya/higu | 42effd9b1a5d55bfbbc20d857b070e7b703154b3 | [
"BSD-2-Clause"
] | null | null | null | import sys
import higu.model
import higu.web_session
LEVEL_MAP = {
'none' : higu.model.ACCESS_LEVEL_NONE,
'read' : higu.model.ACCESS_LEVEL_READ,
'edit' : higu.model.ACCESS_LEVEL_EDIT,
'admin' : higu.model.ACCESS_LEVEL_ADMIN,
}
if( __name__ == '__main__' ):
import optparse
parser = optparse.... | 27.756757 | 75 | 0.576436 | 249 | 2,054 | 4.582329 | 0.26506 | 0.106047 | 0.065732 | 0.087642 | 0.245399 | 0.20333 | 0.059597 | 0 | 0 | 0 | 0 | 0.004093 | 0.286271 | 2,054 | 73 | 76 | 28.136986 | 0.774216 | 0 | 0 | 0.178571 | 0 | 0 | 0.133398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.071429 | 0 | 0.071429 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
22b78be91edb919e1c4763b142c517c8434de20f | 3,927 | py | Python | crowd_anki/config/config_dialog.py | evolverine/CrowdAnki | 5195e7b158ff1c1fa8e296c01340070707a4cbd7 | [
"MIT"
] | null | null | null | crowd_anki/config/config_dialog.py | evolverine/CrowdAnki | 5195e7b158ff1c1fa8e296c01340070707a4cbd7 | [
"MIT"
] | null | null | null | crowd_anki/config/config_dialog.py | evolverine/CrowdAnki | 5195e7b158ff1c1fa8e296c01340070707a4cbd7 | [
"MIT"
] | null | null | null | """
Config dialog entry point.
This module will load the config initially.
Write actions will be triggered here when the user clicks the dialog "Save All" button.
"""
from aqt.qt import *
from .config_ui import Ui_Dialog as ConfigUI
from .config_settings import ConfigSettings
class ConfigDialog(QDialog):
def __... | 40.484536 | 118 | 0.741788 | 501 | 3,927 | 5.427146 | 0.203593 | 0.080912 | 0.052961 | 0.052961 | 0.550202 | 0.383965 | 0.157043 | 0.093417 | 0.036778 | 0 | 0 | 0 | 0.176725 | 3,927 | 96 | 119 | 40.90625 | 0.841015 | 0.040234 | 0 | 0.028986 | 0 | 0 | 0.007445 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.101449 | 0.028986 | 0.362319 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22b7b2cb19f5b20c51aa18bb76e9d04ff36a30ef | 740 | py | Python | src/atlinter/vendor/MaskFlowNet/network/config/__init__.py | BlueBrain/atlas-interpolation | c19ca081ee5354d72987e8ee4cacb78d96319c34 | [
"Apache-2.0"
] | null | null | null | src/atlinter/vendor/MaskFlowNet/network/config/__init__.py | BlueBrain/atlas-interpolation | c19ca081ee5354d72987e8ee4cacb78d96319c34 | [
"Apache-2.0"
] | 5 | 2021-11-03T10:50:53.000Z | 2022-01-17T12:45:34.000Z | src/atlinter/vendor/MaskFlowNet/network/config/__init__.py | BlueBrain/atlas-interpolation | c19ca081ee5354d72987e8ee4cacb78d96319c34 | [
"Apache-2.0"
] | null | null | null | # SPDX-License-Identifier: MIT
# Source: https://github.com/microsoft/MaskFlownet/tree/5cba12772e2201f0d1c1e27161d224e585334571
class Reader:
def __init__(self, obj, full_attr=""):
self._object = obj
self._full_attr = full_attr
def __getattr__(self, name):
if self._object is None:
... | 30.833333 | 96 | 0.608108 | 85 | 740 | 5.035294 | 0.435294 | 0.140187 | 0.084112 | 0.065421 | 0.084112 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056818 | 0.286486 | 740 | 24 | 97 | 30.833333 | 0.753788 | 0.166216 | 0 | 0.315789 | 0 | 0 | 0.037398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0 | 0.052632 | 0.473684 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22c3fa7f0d78793c5a293f497be83b6b6ad0b0eb | 777 | py | Python | api/app/controllers/__init__.py | wafer-bw/generic-flask-api | b4ad6ac1ef3cab2d4e91f13a1fd1664f9de1fe6c | [
"MIT"
] | 2 | 2019-11-08T16:57:44.000Z | 2020-01-30T18:24:24.000Z | api/app/controllers/__init__.py | wafer-bw/generic-flask-api | b4ad6ac1ef3cab2d4e91f13a1fd1664f9de1fe6c | [
"MIT"
] | null | null | null | api/app/controllers/__init__.py | wafer-bw/generic-flask-api | b4ad6ac1ef3cab2d4e91f13a1fd1664f9de1fe6c | [
"MIT"
] | 1 | 2019-11-04T13:30:03.000Z | 2019-11-04T13:30:03.000Z | """
All blueprints of routes which need to be accessible must be here.
They will be registered when the application is started.
Includes a controller for a basic index page.
"""
from typing import Tuple
from flask import Blueprint, Response
from app.controllers.generic import generic_bp
from app.utilities.extensions... | 23.545455 | 66 | 0.707851 | 100 | 777 | 5.41 | 0.57 | 0.038817 | 0.05915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185328 | 777 | 32 | 67 | 24.28125 | 0.85466 | 0.352638 | 0 | 0 | 0 | 0 | 0.042373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 0.2 | 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 |
22c658cff77bc6cefe093d19fc09eeae557fa4dd | 5,423 | py | Python | dics/daum.py | jones3kd/Anki-Korean-Lookup-Addon | 5fe0717876c042b145bd2d208ad3a510626837e3 | [
"MIT"
] | null | null | null | dics/daum.py | jones3kd/Anki-Korean-Lookup-Addon | 5fe0717876c042b145bd2d208ad3a510626837e3 | [
"MIT"
] | null | null | null | dics/daum.py | jones3kd/Anki-Korean-Lookup-Addon | 5fe0717876c042b145bd2d208ad3a510626837e3 | [
"MIT"
] | null | null | null | """
Holds the Daum Dictionary class
Uses Beautiful soup to extract english definitions
this is a bit buggy. need way more error checking with parsing
nov 4 daum isnt working with this code becuase
they changed the html. need to scrap text over again
Todo:
1.)add support to retrieve multiple definitions
from the http... | 28.098446 | 81 | 0.625853 | 777 | 5,423 | 4.267696 | 0.28314 | 0.054282 | 0.036188 | 0.051267 | 0.508745 | 0.475875 | 0.446924 | 0.423402 | 0.386007 | 0.386007 | 0 | 0.007283 | 0.26572 | 5,423 | 192 | 82 | 28.244792 | 0.825465 | 0.08298 | 0 | 0.095238 | 0 | 0 | 0.097744 | 0 | 0 | 0 | 0 | 0.005208 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22cde6c288a3023d5bf376c7fc7f5566a606712b | 1,004 | py | Python | appengine/swarming/swarming_bot/bot_code/remote_client_errors.py | maruel/swarming | 8ab7568635fcbfd85a01884b64704fc2a1ac13c7 | [
"Apache-2.0"
] | 74 | 2015-04-01T02:35:15.000Z | 2021-12-17T22:10:56.000Z | appengine/swarming/swarming_bot/bot_code/remote_client_errors.py | maruel/swarming | 8ab7568635fcbfd85a01884b64704fc2a1ac13c7 | [
"Apache-2.0"
] | 123 | 2015-04-01T04:02:57.000Z | 2022-03-02T12:49:55.000Z | appengine/swarming/swarming_bot/bot_code/remote_client_errors.py | maruel/swarming | 8ab7568635fcbfd85a01884b64704fc2a1ac13c7 | [
"Apache-2.0"
] | 32 | 2015-04-03T01:40:47.000Z | 2021-11-13T15:20:13.000Z | # Copyright 2016 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
class InitializationError(Exception):
"""Raised by RemoteClient.initialize on fatal errors."""
def __init__(self, last_error):
super(Ini... | 31.375 | 80 | 0.722112 | 127 | 1,004 | 5.511811 | 0.559055 | 0.107143 | 0.072857 | 0.128571 | 0.194286 | 0.142857 | 0.142857 | 0 | 0 | 0 | 0 | 0.007255 | 0.176295 | 1,004 | 31 | 81 | 32.387097 | 0.839178 | 0.437251 | 0 | 0 | 0 | 0 | 0.148976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.583333 | 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 |
22d13dad04abe102895e1c3269c555a7b04a1d29 | 3,707 | py | Python | research/iqa/overexposure_creator.py | OOXXXXOO/XCloud | 021342eec570f12d82ae750a645dc1cb99cfb733 | [
"MIT"
] | 60 | 2019-04-18T15:19:50.000Z | 2022-03-11T07:22:58.000Z | research/iqa/overexposure_creator.py | Haytam222/XCloud | 239115558c50f62947679dbcf01852684a3656ac | [
"MIT"
] | 11 | 2021-03-19T15:23:06.000Z | 2022-03-12T00:51:00.000Z | research/iqa/overexposure_creator.py | Haytam222/XCloud | 239115558c50f62947679dbcf01852684a3656ac | [
"MIT"
] | 23 | 2018-10-06T15:39:22.000Z | 2021-12-07T10:34:08.000Z | # generate overexposure samples from clear images
# author: @LucasX
import argparse
import os
import random
from multiprocessing import Queue, Process
import cv2
import numpy as np
parser = argparse.ArgumentParser()
parser.add_argument('-orig_dir', type=str,
default='C:/Users/LucasX/Desktop/ShelfE... | 36.343137 | 108 | 0.629889 | 497 | 3,707 | 4.54326 | 0.237425 | 0.033658 | 0.045173 | 0.045173 | 0.663419 | 0.638618 | 0.638618 | 0.596103 | 0.573959 | 0.504872 | 0 | 0.015439 | 0.231184 | 3,707 | 101 | 109 | 36.70297 | 0.776842 | 0.125978 | 0 | 0.548387 | 1 | 0 | 0.12806 | 0.028249 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.096774 | 0 | 0.129032 | 0.080645 | 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 |
22d1c7c500de8c0a78a1ce8f9418be1ae8991c2d | 1,260 | py | Python | src/blogapp/migrations/0002_auto_20191114_1843.py | Rutujakenjale/Rest-Api-Django | 4deacc199fef6b65b2020dd2e5dfbc45351dd804 | [
"bzip2-1.0.6"
] | null | null | null | src/blogapp/migrations/0002_auto_20191114_1843.py | Rutujakenjale/Rest-Api-Django | 4deacc199fef6b65b2020dd2e5dfbc45351dd804 | [
"bzip2-1.0.6"
] | null | null | null | src/blogapp/migrations/0002_auto_20191114_1843.py | Rutujakenjale/Rest-Api-Django | 4deacc199fef6b65b2020dd2e5dfbc45351dd804 | [
"bzip2-1.0.6"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('blogapp', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='article',
name='cate... | 26.25 | 63 | 0.538889 | 105 | 1,260 | 6.295238 | 0.457143 | 0.081694 | 0.145234 | 0.181543 | 0.465961 | 0.465961 | 0.175492 | 0.175492 | 0.175492 | 0 | 0 | 0.0157 | 0.342857 | 1,260 | 47 | 64 | 26.808511 | 0.782609 | 0.016667 | 0 | 0.487805 | 0 | 0 | 0.0962 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04878 | 0 | 0.121951 | 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 |
22d6175c93c3cc8d4c82f9464e5ae857be5c48a3 | 392 | py | Python | samples/check_date_1.py | klorenz/python-argdeco | eb614d63430c5da68a972bdc40f8a1541070089d | [
"MIT"
] | null | null | null | samples/check_date_1.py | klorenz/python-argdeco | eb614d63430c5da68a972bdc40f8a1541070089d | [
"MIT"
] | null | null | null | samples/check_date_1.py | klorenz/python-argdeco | eb614d63430c5da68a972bdc40f8a1541070089d | [
"MIT"
] | null | null | null | import dateutil.parser
from argdeco import arg, command, main
@arg("-d", "--date", help="pass some date")
def arg_date(value):
# here we can do some validations
try:
v = dateutil.parser.parse(value)
return v
except StandardError as e:
raise e
@command("check_date", arg_date)
def c... | 19.6 | 43 | 0.645408 | 55 | 392 | 4.381818 | 0.6 | 0.116183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234694 | 392 | 19 | 44 | 20.631579 | 0.803333 | 0.079082 | 0 | 0 | 0 | 0 | 0.111421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.071429 | 0.142857 | 0 | 0.357143 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
22dda8e30bd61dd80193e338d3c4713e63d2126d | 1,466 | py | Python | tests/package_extract/extract.py | AppliedIntuition/subpar | 1f695ee5d42585a66d9dd9b71219eb8551e59c89 | [
"Apache-2.0"
] | 546 | 2016-08-12T06:56:48.000Z | 2022-03-31T14:56:35.000Z | tests/package_extract/extract.py | AppliedIntuition/subpar | 1f695ee5d42585a66d9dd9b71219eb8551e59c89 | [
"Apache-2.0"
] | 110 | 2016-08-05T21:44:05.000Z | 2021-11-10T01:22:29.000Z | tests/package_extract/extract.py | AppliedIntuition/subpar | 1f695ee5d42585a66d9dd9b71219eb8551e59c89 | [
"Apache-2.0"
] | 78 | 2016-10-06T00:47:06.000Z | 2021-12-22T05:57:59.000Z | # Copyright 2018 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 required by applicable law or a... | 32.577778 | 76 | 0.735334 | 213 | 1,466 | 4.882629 | 0.553991 | 0.0875 | 0.076923 | 0.030769 | 0.059615 | 0.059615 | 0 | 0 | 0 | 0 | 0 | 0.006672 | 0.182128 | 1,466 | 44 | 77 | 33.318182 | 0.860717 | 0.598909 | 0 | 0 | 0 | 0 | 0.171681 | 0.038938 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.4 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
22e0ab883c475015e6e1e3d858a6c135b7a51ef1 | 1,479 | py | Python | a2-fatihaltinpinar/hash_password.py | fatihaltinpinar/cluster-example | 946a2a128734aba7d0b7353026164358a80d0d2c | [
"MIT"
] | null | null | null | a2-fatihaltinpinar/hash_password.py | fatihaltinpinar/cluster-example | 946a2a128734aba7d0b7353026164358a80d0d2c | [
"MIT"
] | null | null | null | a2-fatihaltinpinar/hash_password.py | fatihaltinpinar/cluster-example | 946a2a128734aba7d0b7353026164358a80d0d2c | [
"MIT"
] | null | null | null | # This code has taken from link below.
# https://bitbucket.org/damienjadeduff/hashing_example/raw/master/hash_password.py
"""The below is a simple example of how you would use "hashing" to
compare passwords without having to save the password - you would-
save the "hash" of the password instead.
Written for the class ... | 35.214286 | 82 | 0.720757 | 231 | 1,479 | 4.549784 | 0.480519 | 0.022835 | 0.02569 | 0.03235 | 0.038059 | 0.038059 | 0 | 0 | 0 | 0 | 0 | 0.019541 | 0.204192 | 1,479 | 41 | 83 | 36.073171 | 0.873407 | 0.225828 | 0 | 0 | 0 | 0 | 0.337413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.4 | 0.066667 | 0 | 0.2 | 0.266667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
22e7f8d2ce81039642caa3f32d31416d16a9180c | 1,342 | py | Python | spimdisasm/elf32/Elf32Syms.py | Decompollaborate/py-mips-disasm | 1301340130f8cca539d12c486deff3a1037a8787 | [
"MIT"
] | 6 | 2021-11-17T21:21:25.000Z | 2022-01-28T13:37:44.000Z | spimdisasm/elf32/Elf32Syms.py | Decompollaborate/py-mips-disasm | 1301340130f8cca539d12c486deff3a1037a8787 | [
"MIT"
] | null | null | null | spimdisasm/elf32/Elf32Syms.py | Decompollaborate/py-mips-disasm | 1301340130f8cca539d12c486deff3a1037a8787 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# SPDX-FileCopyrightText: © 2022 Decompollaborate
# SPDX-License-Identifier: MIT
from __future__ import annotations
import dataclasses
import struct
# a.k.a. Sym (symbol)
@dataclasses.dataclass
class Elf32SymEntry:
name: int # word # 0x00
value: int # address # 0x04
siz... | 26.313725 | 83 | 0.628912 | 151 | 1,342 | 5.456954 | 0.503311 | 0.033981 | 0.058252 | 0.043689 | 0.072816 | 0.072816 | 0 | 0 | 0 | 0 | 0 | 0.047423 | 0.277198 | 1,342 | 50 | 84 | 26.84 | 0.801031 | 0.158718 | 0 | 0.0625 | 0 | 0 | 0.006295 | 0 | 0 | 0 | 0.009892 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.09375 | 0.09375 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
22ea28f237e51d6b6fcbf2612c0a39a2ee55fd2c | 2,207 | py | Python | python/ScrollableCursors.py | narendrant6/oracle-db-examples | 4db51607643065f430910d546d7a135a552e71b1 | [
"Apache-2.0"
] | 2 | 2021-01-13T06:07:24.000Z | 2021-02-05T09:54:00.000Z | python/ScrollableCursors.py | narendrant6/oracle-db-examples | 4db51607643065f430910d546d7a135a552e71b1 | [
"Apache-2.0"
] | null | null | null | python/ScrollableCursors.py | narendrant6/oracle-db-examples | 4db51607643065f430910d546d7a135a552e71b1 | [
"Apache-2.0"
] | 1 | 2021-01-13T06:07:27.000Z | 2021-01-13T06:07:27.000Z | #------------------------------------------------------------------------------
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
#
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
#
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
# Canada... | 30.652778 | 79 | 0.647485 | 273 | 2,207 | 5.223443 | 0.417582 | 0.042076 | 0.06662 | 0.084151 | 0.396914 | 0.284712 | 0.284712 | 0.235624 | 0.070126 | 0 | 0 | 0.018701 | 0.127775 | 2,207 | 71 | 80 | 31.084507 | 0.722078 | 0.621658 | 0 | 0.40625 | 0 | 0 | 0.193309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0.5625 | 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 |
22eb2b58c9d721d10fa8dd37a8d8b014eae44636 | 7,798 | py | Python | tests/test_decoder.py | meshulam/tempoiq-python | 9bd1f0d4f6b05ab2e0c1db2d6e5f966cfa69b5d5 | [
"MIT"
] | null | null | null | tests/test_decoder.py | meshulam/tempoiq-python | 9bd1f0d4f6b05ab2e0c1db2d6e5f966cfa69b5d5 | [
"MIT"
] | null | null | null | tests/test_decoder.py | meshulam/tempoiq-python | 9bd1f0d4f6b05ab2e0c1db2d6e5f966cfa69b5d5 | [
"MIT"
] | null | null | null | import unittest
import json
from tempoiq.protocol.query.selection import AndClause
from tempoiq.protocol.decoder import *
class TestTempoIQDecoder(unittest.TestCase):
def test_decode_attributes_selector(self):
j = {"attributes": {"foo": "bar"}}
selector = decode_attributes_selector(j)
self... | 35.935484 | 76 | 0.479482 | 640 | 7,798 | 5.692188 | 0.146875 | 0.180071 | 0.144935 | 0.072468 | 0.76695 | 0.726873 | 0.611584 | 0.552292 | 0.502608 | 0.485314 | 0 | 0.006711 | 0.388561 | 7,798 | 216 | 77 | 36.101852 | 0.757341 | 0 | 0 | 0.477612 | 0 | 0 | 0.153412 | 0 | 0 | 0 | 0 | 0 | 0.223881 | 1 | 0.059701 | false | 0 | 0.019901 | 0 | 0.084577 | 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 |
22ecbc00782f05f94bc7b985deb7a26bb88479ca | 2,690 | py | Python | nc/tnc151.py | Heeks/heekscnc-old | 567276422a3613f778bd583a807e214c337f0f29 | [
"BSD-3-Clause"
] | 2 | 2018-07-22T15:35:26.000Z | 2022-02-08T20:30:16.000Z | nc/tnc151.py | miklobit/heekscnc | 567276422a3613f778bd583a807e214c337f0f29 | [
"BSD-3-Clause"
] | null | null | null | nc/tnc151.py | miklobit/heekscnc | 567276422a3613f778bd583a807e214c337f0f29 | [
"BSD-3-Clause"
] | 2 | 2017-07-15T21:48:31.000Z | 2020-06-15T12:17:50.000Z | ################################################################################
# tnc151.py
#
# Post Processor for the Heidenhain TNC151 machine
#
import nc
import iso_modal
import math
################################################################################
class Creator(iso_modal.Creator):
... | 29.56044 | 81 | 0.495911 | 292 | 2,690 | 4.335616 | 0.277397 | 0.113744 | 0.056872 | 0.066351 | 0.300158 | 0.206951 | 0.110585 | 0.064771 | 0 | 0 | 0 | 0.009852 | 0.320818 | 2,690 | 90 | 82 | 29.888889 | 0.683087 | 0.050558 | 0 | 0.216667 | 0 | 0 | 0.011358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0.05 | 0.05 | 0.033333 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22f1d1a667e87669d78c395408fb669aa1873e25 | 3,796 | py | Python | src/appserver/controllers/upload.py | bondavenger/splunk-tour-makr | 6095d0c7cc7e88f096f46d7a55c2e14f12ca40de | [
"Apache-2.0"
] | null | null | null | src/appserver/controllers/upload.py | bondavenger/splunk-tour-makr | 6095d0c7cc7e88f096f46d7a55c2e14f12ca40de | [
"Apache-2.0"
] | 3 | 2017-03-08T22:26:14.000Z | 2019-02-02T07:08:32.000Z | src/appserver/controllers/upload.py | bondavenger/splunk-tour-makr | 6095d0c7cc7e88f096f46d7a55c2e14f12ca40de | [
"Apache-2.0"
] | 1 | 2017-03-08T22:26:20.000Z | 2017-03-08T22:26:20.000Z | import cherrypy
import os
import imghdr
import ntpath
import splunk.appserver.mrsparkle.controllers as controllers
from splunk.appserver.mrsparkle.lib.decorators import expose_page
from splunk.appserver.mrsparkle.lib.routes import route
from splunk.appserver.mrsparkle.lib import util
from shutil import copyfileobj
cl... | 45.73494 | 152 | 0.636459 | 484 | 3,796 | 4.929752 | 0.35124 | 0.026823 | 0.040235 | 0.035205 | 0.247695 | 0.208718 | 0.177703 | 0.163034 | 0.130344 | 0.130344 | 0 | 0.005038 | 0.267914 | 3,796 | 83 | 153 | 45.73494 | 0.853544 | 0.135933 | 0 | 0.040816 | 0 | 0 | 0.165718 | 0.008535 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.183673 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22f6b6117e7f475709b5b8cbcf95dc2c931b2778 | 1,337 | py | Python | src/tools/embeds.py | aopell/BugBotForDiscord | 82b0784f41d51720d045fa39b9a60ef583fce974 | [
"MIT"
] | null | null | null | src/tools/embeds.py | aopell/BugBotForDiscord | 82b0784f41d51720d045fa39b9a60ef583fce974 | [
"MIT"
] | null | null | null | src/tools/embeds.py | aopell/BugBotForDiscord | 82b0784f41d51720d045fa39b9a60ef583fce974 | [
"MIT"
] | null | null | null | from datetime import datetime
from discord.embeds import Embed
from discord.message import Message
from github.Project import Project
from github.ProjectCard import ProjectCard
from models.guild_options import GuildOptions, IssueCategory
from discord.raw_models import RawReactionActionEvent
NEWLINE = '\n'
def generat... | 44.566667 | 205 | 0.738968 | 185 | 1,337 | 5.221622 | 0.389189 | 0.024845 | 0.033126 | 0.031056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004181 | 0.10546 | 1,337 | 30 | 206 | 44.566667 | 0.803512 | 0 | 0 | 0 | 0 | 0.086957 | 0.29148 | 0.149477 | 0 | 0 | 0.005979 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.304348 | 0.043478 | 0.478261 | 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 |
22f706a7ad551ac3695f12e8ff849562e54eefaf | 3,798 | py | Python | LHBackEnd/exercise/views.py | minhthong582000/LH-back-end | 7555575a5e096d1502074fa2f743f1c1b4568543 | [
"Apache-2.0"
] | null | null | null | LHBackEnd/exercise/views.py | minhthong582000/LH-back-end | 7555575a5e096d1502074fa2f743f1c1b4568543 | [
"Apache-2.0"
] | null | null | null | LHBackEnd/exercise/views.py | minhthong582000/LH-back-end | 7555575a5e096d1502074fa2f743f1c1b4568543 | [
"Apache-2.0"
] | null | null | null | from rest_framework import status
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework.permissions import AllowAny
from . import utils
from .serializers import CourseSerializer, ScheduleSerializer
# returning course list
class CourseList(APIView):
serializer_... | 36.873786 | 114 | 0.679831 | 420 | 3,798 | 5.969048 | 0.214286 | 0.083765 | 0.044675 | 0.044675 | 0.626247 | 0.532509 | 0.484244 | 0.398085 | 0.398085 | 0.359793 | 0 | 0.007167 | 0.228541 | 3,798 | 103 | 115 | 36.873786 | 0.848464 | 0.115324 | 0 | 0.337838 | 0 | 0 | 0.031315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121622 | false | 0 | 0.081081 | 0 | 0.527027 | 0.027027 | 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 |
22fb6f7fee9d49bfd86d9dcdbaecdac71c81c1d7 | 2,123 | py | Python | etc/local_grapl/unique_cmd_parent/main.py | alexjmacdonald/grapl | 44d5fcabef02d11548018742c3dc00785ca7b571 | [
"Apache-2.0"
] | 1 | 2021-12-12T14:27:49.000Z | 2021-12-12T14:27:49.000Z | etc/local_grapl/unique_cmd_parent/main.py | alexjmacdonald/grapl | 44d5fcabef02d11548018742c3dc00785ca7b571 | [
"Apache-2.0"
] | 449 | 2020-09-11T07:07:18.000Z | 2021-08-03T06:09:36.000Z | etc/local_grapl/unique_cmd_parent/main.py | alexjmacdonald/grapl | 44d5fcabef02d11548018742c3dc00785ca7b571 | [
"Apache-2.0"
] | null | null | null | from typing import Any, Type
from grapl_analyzerlib.analyzer import Analyzer, OneOrMany, A
from grapl_analyzerlib.counters import ParentChildCounter
from grapl_analyzerlib.execution import ExecutionHit
from grapl_analyzerlib.prelude import ProcessQuery, ProcessView, Not
from pydgraph import DgraphClient
class RarePa... | 34.803279 | 94 | 0.609986 | 212 | 2,123 | 5.915094 | 0.429245 | 0.057416 | 0.063796 | 0.043062 | 0.046252 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00332 | 0.290626 | 2,123 | 60 | 95 | 35.383333 | 0.829349 | 0.039567 | 0 | 0 | 0 | 0 | 0.115857 | 0.016691 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0.08 | false | 0 | 0.12 | 0 | 0.26 | 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 |
fe05f86cb76a3820796720804c598d77da3c0fb2 | 1,321 | py | Python | errors.py | hendrapaiton/mandalika | 6ecbde9e3582d6532006e58531d5fc52feaa8854 | [
"MIT"
] | 1 | 2020-02-19T07:45:53.000Z | 2020-02-19T07:45:53.000Z | errors.py | hendrapaiton/mandalika | 6ecbde9e3582d6532006e58531d5fc52feaa8854 | [
"MIT"
] | 1 | 2020-02-20T05:35:49.000Z | 2020-02-26T08:14:41.000Z | errors.py | hendrapaiton/mandalika | 6ecbde9e3582d6532006e58531d5fc52feaa8854 | [
"MIT"
] | 2 | 2020-02-25T16:46:39.000Z | 2020-02-26T09:02:06.000Z | class InternalServerError(Exception):
pass
class SchemaValidationError(Exception):
pass
class EmailAlreadyExistsError(Exception):
pass
class UnauthorizedError(Exception):
pass
class NoAuthorizationError(Exception):
pass
class UpdatingUserError(Exception):
pass
class DeletingUserError... | 19.716418 | 66 | 0.617714 | 108 | 1,321 | 7.555556 | 0.444444 | 0.127451 | 0.154412 | 0.04902 | 0.088235 | 0.088235 | 0.088235 | 0.088235 | 0 | 0 | 0 | 0.024922 | 0.271007 | 1,321 | 66 | 67 | 20.015152 | 0.82243 | 0 | 0 | 0.3 | 0 | 0 | 0.397426 | 0.033308 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.18 | 0 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fe1a318215bd432426f97e3a10a01ba1465ba37f | 3,248 | py | Python | python/pySimE/space/exp/pykep/lambert_MarsJupiterDeltaV_2D.py | ProkopHapala/SimpleSimulationEngine | 240f9b7e85b3a6eda7a27dc15fe3f7b8c08774c5 | [
"MIT"
] | 26 | 2016-12-04T04:45:12.000Z | 2022-03-24T09:39:28.000Z | python/pySimE/space/exp/pykep/lambert_MarsJupiterDeltaV_2D.py | Aki78/FlightAI | 9c5480f2392c9c89b9fee4902db0c4cde5323a6c | [
"MIT"
] | null | null | null | python/pySimE/space/exp/pykep/lambert_MarsJupiterDeltaV_2D.py | Aki78/FlightAI | 9c5480f2392c9c89b9fee4902db0c4cde5323a6c | [
"MIT"
] | 2 | 2019-02-09T12:31:06.000Z | 2019-04-28T02:24:50.000Z |
from pylab import *
from PyKEP import epoch, DAY2SEC, planet_ss, AU, MU_SUN, lambert_problem
from PyKEP.orbit_plots import plot_planet, plot_lambert
plEarth = planet_ss('Earth');
plJupiter = planet_ss('Jupiter');
def opt_dt(tt1,tt2):
t1 = epoch(tt1)
t2 = epoch(tt2)
#print t1
dt = (t2.mjd2000 - ... | 33.142857 | 122 | 0.674877 | 467 | 3,248 | 4.635974 | 0.316916 | 0.049885 | 0.045266 | 0.064665 | 0.457737 | 0.457737 | 0.433718 | 0.406005 | 0.406005 | 0.384758 | 0 | 0.057362 | 0.157328 | 3,248 | 97 | 123 | 33.484536 | 0.73365 | 0.182266 | 0 | 0.181818 | 0 | 0 | 0.122642 | 0.01022 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045455 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe1c971306095df9b03bc643fc92ceea64d32563 | 1,611 | py | Python | core/apps/accounts/managers.py | dansackett/django-project-template | 12264a8300442afda9cb207d7db24e55149d6355 | [
"MIT"
] | 4 | 2017-02-08T19:15:48.000Z | 2019-08-19T01:53:18.000Z | core/apps/accounts/managers.py | dansackett/django-project-template | 12264a8300442afda9cb207d7db24e55149d6355 | [
"MIT"
] | 3 | 2017-01-24T15:05:55.000Z | 2019-11-01T17:26:07.000Z | core/apps/accounts/managers.py | dansackett/django-project-template | 12264a8300442afda9cb207d7db24e55149d6355 | [
"MIT"
] | 6 | 2017-01-23T23:09:05.000Z | 2019-11-18T10:45:27.000Z | from django.conf import settings
from django.contrib.auth.base_user import BaseUserManager
from django.contrib.auth.models import Group
class UserManager(BaseUserManager):
use_in_migrations = True
def _create_user(self, email, password, **extra_fields):
'''
creates and saves a User with the g... | 35.021739 | 75 | 0.656735 | 196 | 1,611 | 5.204082 | 0.331633 | 0.097059 | 0.070588 | 0.094118 | 0.29902 | 0.185294 | 0.07451 | 0 | 0 | 0 | 0 | 0 | 0.253259 | 1,611 | 45 | 76 | 35.8 | 0.84788 | 0.088144 | 0 | 0 | 0 | 0 | 0.072194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0.206897 | 0.103448 | 0 | 0.37931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a3a61cc5eda6138f8b22ac6ab6456d1b3d12fb29 | 9,318 | py | Python | dosagelib/plugins/f.py | Xarsis/dosage | c886043a197760322851e3b2034e4847c30001f2 | [
"MIT"
] | null | null | null | dosagelib/plugins/f.py | Xarsis/dosage | c886043a197760322851e3b2034e4847c30001f2 | [
"MIT"
] | 7 | 2021-09-14T04:22:45.000Z | 2022-02-08T00:53:55.000Z | dosagelib/plugins/f.py | Xarsis/dosage | c886043a197760322851e3b2034e4847c30001f2 | [
"MIT"
] | null | null | null | # SPDX-License-Identifier: MIT
# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
# Copyright (C) 2012-2014 Bastian Kleineidam
# Copyright (C) 2015-2021 Tobias Gruetzmacher
# Copyright (C) 2019-2020 Daniel Ring
from re import compile, escape
from ..util import tagre
from ..scraper import _BasicScraper, _P... | 33.638989 | 96 | 0.631251 | 1,039 | 9,318 | 5.624639 | 0.297401 | 0.071869 | 0.052704 | 0.021561 | 0.229466 | 0.160507 | 0.126454 | 0.031143 | 0.016769 | 0 | 0 | 0.042743 | 0.194033 | 9,318 | 276 | 97 | 33.76087 | 0.735419 | 0.034557 | 0 | 0.220096 | 0 | 0.004785 | 0.347652 | 0.098264 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033493 | false | 0 | 0.023923 | 0.009569 | 0.880383 | 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 |
a3a7b710171027c7c881712b38ef8680ebea6c38 | 5,535 | py | Python | pip_services3_rpc/services/RestOperations.py | pip-services-python/pip-services-rpc-python | 53454b7ac4197fb9cfe8676f0654cac1ca6d5722 | [
"MIT"
] | null | null | null | pip_services3_rpc/services/RestOperations.py | pip-services-python/pip-services-rpc-python | 53454b7ac4197fb9cfe8676f0654cac1ca6d5722 | [
"MIT"
] | null | null | null | pip_services3_rpc/services/RestOperations.py | pip-services-python/pip-services-rpc-python | 53454b7ac4197fb9cfe8676f0654cac1ca6d5722 | [
"MIT"
] | 4 | 2020-03-16T00:14:14.000Z | 2021-05-24T15:31:58.000Z | # -*- coding: utf-8 -*-
import json
from abc import ABC
from typing import Optional, Any, Callable
import bottle
from pip_services3_commons.config import ConfigParams
from pip_services3_commons.config.IConfigurable import IConfigurable
from pip_services3_commons.data.FilterParams import FilterParams
from pip_services... | 40.40146 | 84 | 0.723216 | 617 | 5,535 | 6.223663 | 0.17342 | 0.101563 | 0.058333 | 0.071875 | 0.36901 | 0.260156 | 0.253125 | 0.245052 | 0.195573 | 0.195573 | 0 | 0.004692 | 0.191328 | 5,535 | 136 | 85 | 40.698529 | 0.853217 | 0.018609 | 0 | 0.135922 | 0 | 0 | 0.027593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203884 | false | 0 | 0.184466 | 0.058252 | 0.592233 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3a7f296a2c8122de24ec06b8f5934da65d8a645 | 333 | py | Python | aiu/tags.py | fmigneault/aiu | 03f8afdcf23294124ec627ec4f02a954b4dd6008 | [
"MIT"
] | 2 | 2020-12-07T11:18:27.000Z | 2021-12-29T06:43:50.000Z | aiu/tags.py | fmigneault/aiu | 03f8afdcf23294124ec627ec4f02a954b4dd6008 | [
"MIT"
] | 2 | 2020-12-05T23:33:34.000Z | 2021-03-04T06:57:30.000Z | aiu/tags.py | fmigneault/aiu | 03f8afdcf23294124ec627ec4f02a954b4dd6008 | [
"MIT"
] | null | null | null | TAG_ALBUM = "album"
TAG_ALBUM_ARTIST = "album_artist"
TAG_ARTIST = "artist"
TAG_DURATION = "duration"
TAG_GENRE = "genre"
TAG_TITLE = "title"
TAG_TRACK = "track"
TAG_YEAR = "year"
TAGS = frozenset([
TAG_ALBUM,
TAG_ALBUM_ARTIST,
TAG_ARTIST,
TAG_DURATION,
TAG_GENRE,
TAG_TITLE,
TAG_TRACK,
... | 16.65 | 33 | 0.681682 | 45 | 333 | 4.622222 | 0.222222 | 0.153846 | 0.125 | 0.182692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207207 | 333 | 19 | 34 | 17.526316 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0.15015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
a3ac24a27e8853b2987bb30432ef2b582b6762c1 | 3,940 | py | Python | github_crawler/github_crawler/spiders/github_profile.py | deepakbaliga/github-crawler | da91102cd1125924716465f1b164d67f84ce4cf0 | [
"Apache-2.0"
] | null | null | null | github_crawler/github_crawler/spiders/github_profile.py | deepakbaliga/github-crawler | da91102cd1125924716465f1b164d67f84ce4cf0 | [
"Apache-2.0"
] | null | null | null | github_crawler/github_crawler/spiders/github_profile.py | deepakbaliga/github-crawler | da91102cd1125924716465f1b164d67f84ce4cf0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import scrapy
import json
import pprint
from neo4j.v1 import GraphDatabase, basic_auth
class GithubProfileSpider(scrapy.Spider):
driver = GraphDatabase.driver("bolt://localhost", auth=basic_auth("neo4j", "janaganamana"))
name = "github_profile"
allowed_domains = ["https://github.co... | 35.818182 | 282 | 0.567259 | 459 | 3,940 | 4.801743 | 0.283224 | 0.025408 | 0.072595 | 0.040835 | 0.349365 | 0.304446 | 0.304446 | 0.269964 | 0.235027 | 0.235027 | 0 | 0.007586 | 0.230457 | 3,940 | 109 | 283 | 36.146789 | 0.719327 | 0.104569 | 0 | 0.33871 | 0 | 0.064516 | 0.311518 | 0.132895 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064516 | null | null | 0.032258 | 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 |
a3acd890dde7632ea851f1f070f312d5b57d4211 | 268 | py | Python | fy21_university_city/__init__.py | dvrpc/project-data-science-code | 2a12abe6c7bf5166770fdf4e52a71b8a6ed9de83 | [
"MIT"
] | null | null | null | fy21_university_city/__init__.py | dvrpc/project-data-science-code | 2a12abe6c7bf5166770fdf4e52a71b8a6ed9de83 | [
"MIT"
] | null | null | null | fy21_university_city/__init__.py | dvrpc/project-data-science-code | 2a12abe6c7bf5166770fdf4e52a71b8a6ed9de83 | [
"MIT"
] | null | null | null | from pathlib import Path
import platform
DB_NAME = "ucity"
if platform.system() == "Darwin":
GDRIVE_FOLDER = Path("/Volumes/GoogleDrive/Shared drives/U_City_FY_21")
elif platform.system() == "Windows":
GDRIVE_FOLDER = Path(r"G:\Shared drives\U_City_FY_21")
| 24.363636 | 75 | 0.731343 | 39 | 268 | 4.794872 | 0.641026 | 0.149733 | 0.171123 | 0.181818 | 0.224599 | 0.224599 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.134328 | 268 | 10 | 76 | 26.8 | 0.788793 | 0 | 0 | 0 | 0 | 0 | 0.350746 | 0.100746 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3b4c94fd9cdcce27b371d17244496086f49a630 | 4,592 | py | Python | src/mock_vws/_query_validators/image_validators.py | VWS-Python/vws-python-mock | 949a19a28791b8f527ef52a3378f7ec058089b33 | [
"MIT"
] | 1 | 2018-10-02T21:20:24.000Z | 2018-10-02T21:20:24.000Z | src/mock_vws/_query_validators/image_validators.py | VWS-Python/vws-python-mock | 949a19a28791b8f527ef52a3378f7ec058089b33 | [
"MIT"
] | 420 | 2020-05-18T21:49:55.000Z | 2022-03-31T05:28:33.000Z | src/mock_vws/_query_validators/image_validators.py | adamtheturtle/vws-python-mock | 1d7ead0c6bd4d4f58c95cefdfbca31ae15e65a25 | [
"MIT"
] | 1 | 2020-09-06T07:05:40.000Z | 2020-09-06T07:05:40.000Z | """
Input validators for the image field use in the mock query API.
"""
import cgi
import io
from typing import Dict
from PIL import Image
from mock_vws._query_validators.exceptions import (
BadImage,
ImageNotGiven,
RequestEntityTooLarge,
)
def validate_image_field_given(
request_headers: Dict[str,... | 24.296296 | 94 | 0.638502 | 576 | 4,592 | 4.9375 | 0.189236 | 0.07384 | 0.036568 | 0.03692 | 0.660338 | 0.660338 | 0.635724 | 0.635724 | 0.635724 | 0.635724 | 0 | 0.005636 | 0.265897 | 4,592 | 188 | 95 | 24.425532 | 0.83803 | 0.323389 | 0 | 0.626263 | 0 | 0 | 0.058965 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 1 | 0.050505 | false | 0 | 0.050505 | 0 | 0.131313 | 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 |
a3b5a72f012cd16c083359a30325ffdbbf6fea43 | 953 | py | Python | book/migrations/0004_auto_20210127_2310.py | pujan/books-api | fcc69d4aa74d4592d09d056b67c6dd5c9f3b4cce | [
"MIT"
] | 1 | 2021-08-08T19:19:01.000Z | 2021-08-08T19:19:01.000Z | book/migrations/0004_auto_20210127_2310.py | pujan/books-api | fcc69d4aa74d4592d09d056b67c6dd5c9f3b4cce | [
"MIT"
] | null | null | null | book/migrations/0004_auto_20210127_2310.py | pujan/books-api | fcc69d4aa74d4592d09d056b67c6dd5c9f3b4cce | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2021-01-27 23:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('book', '0003_book_publisher'),
]
operations = [
migrations.AlterModelOptions(
name='author',
options={'ordering': ['... | 30.741935 | 119 | 0.578174 | 86 | 953 | 6.255814 | 0.569767 | 0.122677 | 0.172862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.272823 | 953 | 30 | 120 | 31.766667 | 0.746032 | 0.047219 | 0 | 0.291667 | 1 | 0 | 0.262693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.166667 | 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 |
a3c176f3b991bfb31b4790ca261b9203476b93ea | 393 | py | Python | nicos_mlz/erwin/setups/startup.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 12 | 2019-11-06T15:40:36.000Z | 2022-01-01T16:23:00.000Z | nicos_mlz/erwin/setups/startup.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 91 | 2020-08-18T09:20:26.000Z | 2022-02-01T11:07:14.000Z | nicos_mlz/erwin/setups/startup.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 6 | 2020-01-11T10:52:30.000Z | 2022-02-25T12:35:23.000Z | description = 'NICOS demo startup setup'
group = 'lowlevel'
# startupcode = '''
# printinfo("============================================================")
# printinfo("Welcome to the NICOS demo.")
# printinfo("Run one of the following commands to set up either a triple-axis")
# printinfo("or a SANS demo setup:")
# pr... | 32.75 | 79 | 0.564885 | 41 | 393 | 5.414634 | 0.658537 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13486 | 393 | 11 | 80 | 35.727273 | 0.652941 | 0.801527 | 0 | 0 | 0 | 0 | 0.463768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3c5dd6b509806edc0a0d8d75ca9adff06eaca81 | 4,525 | py | Python | backend/corpora/api_server/app.py | chanzuckerberg/dcp-prototype | 24d2323ba5ae1482395da35ea11c42708e3a52ce | [
"MIT"
] | 2 | 2020-02-07T18:12:12.000Z | 2020-02-11T14:59:03.000Z | backend/corpora/api_server/app.py | HumanCellAtlas/dcp-prototype | 44ca66a266004124f39d7d3e3dd75e9076012ff0 | [
"MIT"
] | 173 | 2020-01-29T17:48:02.000Z | 2020-03-20T02:52:58.000Z | backend/corpora/api_server/app.py | HumanCellAtlas/dcp-prototype | 44ca66a266004124f39d7d3e3dd75e9076012ff0 | [
"MIT"
] | 1 | 2020-03-20T17:06:54.000Z | 2020-03-20T17:06:54.000Z | import json
import logging
import os
from urllib.parse import urlparse
import connexion
from connexion import FlaskApi, ProblemException, problem
from flask import g, request
from flask_cors import CORS
from swagger_ui_bundle import swagger_ui_path
from backend.corpora.common.utils.aws import AwsSecret
from backend.c... | 33.029197 | 116 | 0.67558 | 568 | 4,525 | 5.125 | 0.353873 | 0.035727 | 0.033665 | 0.019237 | 0.076262 | 0.040536 | 0 | 0 | 0 | 0 | 0 | 0.005046 | 0.211713 | 4,525 | 136 | 117 | 33.272059 | 0.811046 | 0.072044 | 0 | 0 | 0 | 0 | 0.178315 | 0.053135 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.068627 | false | 0 | 0.107843 | 0.009804 | 0.215686 | 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 |
a3c72039bbda6433faa671125fc592d8224cf031 | 1,438 | py | Python | delete-opening-hours/index.py | simweijie/equeue-lambda | 29e8dc6ff8dd6e0c62a0378279a74768f1b44359 | [
"Apache-2.0"
] | null | null | null | delete-opening-hours/index.py | simweijie/equeue-lambda | 29e8dc6ff8dd6e0c62a0378279a74768f1b44359 | [
"Apache-2.0"
] | null | null | null | delete-opening-hours/index.py | simweijie/equeue-lambda | 29e8dc6ff8dd6e0c62a0378279a74768f1b44359 | [
"Apache-2.0"
] | null | null | null | import sys
import logging
import pymysql
import json
import os
#rds settings
rds_endpoint = os.environ['rds_endpoint']
username=os.environ['username']
password=os.environ['password']
db_name=os.environ['db_name']
logger = logging.getLogger()
logger.setLevel(logging.INFO)
#Connection
try:
connection = pymysql.con... | 31.26087 | 129 | 0.711405 | 166 | 1,438 | 6.120482 | 0.548193 | 0.035433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002457 | 0.150904 | 1,438 | 46 | 130 | 31.26087 | 0.829648 | 0.240612 | 0 | 0 | 0 | 0 | 0.233333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.068966 | 0.172414 | 0 | 0.241379 | 0.034483 | 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 |
a3d2c8886f3a4fd0dbaa12907a798f45703623bc | 291 | py | Python | ch30/del.py | eroicaleo/LearningPython | 297d46eddce6e43ce0c160d2660dff5f5d616800 | [
"MIT"
] | 1 | 2020-10-12T13:33:29.000Z | 2020-10-12T13:33:29.000Z | ch30/del.py | eroicaleo/LearningPython | 297d46eddce6e43ce0c160d2660dff5f5d616800 | [
"MIT"
] | null | null | null | ch30/del.py | eroicaleo/LearningPython | 297d46eddce6e43ce0c160d2660dff5f5d616800 | [
"MIT"
] | 1 | 2016-11-09T07:28:45.000Z | 2016-11-09T07:28:45.000Z | #!/usr/bin/env python
class Life:
def __init__(self, name='unknown'):
print('Hello ' + name)
self.name = name
def live(self):
print(self.name)
def __del__(self):
print('Goodbye ' + self.name)
brian = Life('Brian')
brian.live()
brian = 'leretta'
| 19.4 | 39 | 0.580756 | 37 | 291 | 4.351351 | 0.486486 | 0.198758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261168 | 291 | 14 | 40 | 20.785714 | 0.748837 | 0.068729 | 0 | 0 | 0 | 0 | 0.122222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0 | 0.363636 | 0.272727 | 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 |
a3d37b6d14651ba066e7062746d395acb407a76c | 5,668 | py | Python | venv/lib/python2.7/site-packages/tensorflow/core/framework/device_attributes_pb2.py | sunlum/Deep-Semantic-Space-NST | 468ac2590385f48e65df12c1a3c9db0ed8d49477 | [
"MIT"
] | null | null | null | venv/lib/python2.7/site-packages/tensorflow/core/framework/device_attributes_pb2.py | sunlum/Deep-Semantic-Space-NST | 468ac2590385f48e65df12c1a3c9db0ed8d49477 | [
"MIT"
] | null | null | null | venv/lib/python2.7/site-packages/tensorflow/core/framework/device_attributes_pb2.py | sunlum/Deep-Semantic-Space-NST | 468ac2590385f48e65df12c1a3c9db0ed8d49477 | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: tensorflow/core/framework/device_attributes.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from ... | 39.089655 | 675 | 0.754587 | 730 | 5,668 | 5.60274 | 0.236986 | 0.046944 | 0.035208 | 0.037653 | 0.350611 | 0.303423 | 0.281907 | 0.281907 | 0.241565 | 0.241565 | 0 | 0.050131 | 0.123677 | 5,668 | 144 | 676 | 39.361111 | 0.773304 | 0.044637 | 0 | 0.459677 | 1 | 0.008065 | 0.249029 | 0.204474 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.056452 | 0 | 0.056452 | 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 |
a3d54e9459c1cfdbf1ed4a572f1b18c8c4e8a90a | 536 | py | Python | sme_uniforme_apps/proponentes/migrations/0016_auto_20200220_1955.py | prefeiturasp/SME-PortalUniforme-BackEnd | d7e15dd3b9c7b9cfb621e53ec81d40f18c1fab3f | [
"MIT"
] | null | null | null | sme_uniforme_apps/proponentes/migrations/0016_auto_20200220_1955.py | prefeiturasp/SME-PortalUniforme-BackEnd | d7e15dd3b9c7b9cfb621e53ec81d40f18c1fab3f | [
"MIT"
] | null | null | null | sme_uniforme_apps/proponentes/migrations/0016_auto_20200220_1955.py | prefeiturasp/SME-PortalUniforme-BackEnd | d7e15dd3b9c7b9cfb621e53ec81d40f18c1fab3f | [
"MIT"
] | 1 | 2020-02-01T12:10:42.000Z | 2020-02-01T12:10:42.000Z | # Generated by Django 2.2.9 on 2020-02-20 22:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('proponentes', '0015_auto_20200219_1032'),
]
operations = [
migrations.AlterField(
model_name='proponente',
name='sta... | 28.210526 | 192 | 0.628731 | 57 | 536 | 5.77193 | 0.736842 | 0.091185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079327 | 0.223881 | 536 | 18 | 193 | 29.777778 | 0.711538 | 0.083955 | 0 | 0 | 1 | 0 | 0.251534 | 0.047035 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3d801bb40e70446d776c8c0bb8910af098a6f10 | 2,262 | gyp | Python | third_party/lzma_sdk/lzma_sdk.gyp | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-01-28T08:09:58.000Z | 2021-11-15T15:32:10.000Z | third_party/lzma_sdk/lzma_sdk.gyp | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | third_party/lzma_sdk/lzma_sdk.gyp | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | 6 | 2020-09-23T08:56:12.000Z | 2021-11-18T03:40:49.000Z | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'lzma_sdk_sources': [
'7z.h',
'7zAlloc.c',
'7zAlloc.h',
'7zArcIn.c',
'7zBuf.c',
'7zBuf.h',
... | 20.752294 | 72 | 0.421309 | 199 | 2,262 | 4.592965 | 0.482412 | 0.030635 | 0.045952 | 0.045952 | 0.33698 | 0.262582 | 0.196937 | 0.196937 | 0.196937 | 0.196937 | 0 | 0.025945 | 0.403625 | 2,262 | 108 | 73 | 20.944444 | 0.651594 | 0.113616 | 0 | 0.401961 | 0 | 0 | 0.402701 | 0.036018 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3e9f5570db928fd9d55131c382da2a24f087b55 | 1,720 | py | Python | sample/all_methods/authenticateToSharedNote.py | matthewayne/evernote-sdk-python | 53b0c1263d250b88a1810987b51bc9def586db02 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2016-02-14T13:39:46.000Z | 2021-09-03T16:02:18.000Z | sample/all_methods/authenticateToSharedNote.py | matthewayne/evernote-sdk-python | 53b0c1263d250b88a1810987b51bc9def586db02 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | sample/all_methods/authenticateToSharedNote.py | matthewayne/evernote-sdk-python | 53b0c1263d250b88a1810987b51bc9def586db02 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2018-03-28T01:08:25.000Z | 2018-03-28T01:08:25.000Z | # Import the Evernote client and generic Store type
from evernote.api.client import EvernoteClient, Store
# Import the NoteStore type to create a note store object
# that connects to the note store which contains the note
# that has been shared to the user
import evernote.edam.notestore.NoteStore as NoteStore
# Defin... | 40.952381 | 137 | 0.788953 | 269 | 1,720 | 4.947955 | 0.334572 | 0.057851 | 0.033809 | 0.021037 | 0.160781 | 0.123216 | 0.048084 | 0.048084 | 0 | 0 | 0 | 0 | 0.148837 | 1,720 | 42 | 138 | 40.952381 | 0.909153 | 0.476163 | 0 | 0 | 0 | 0 | 0.239548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.2 | 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 |
a3eec5759da4f8028b43b20f15ee13c3f6c49655 | 5,270 | py | Python | src/leaderboard.py | the-gamecoders/TheGameHub | b60b237a2626defda2240951f14074d13075c3c9 | [
"MIT"
] | null | null | null | src/leaderboard.py | the-gamecoders/TheGameHub | b60b237a2626defda2240951f14074d13075c3c9 | [
"MIT"
] | null | null | null | src/leaderboard.py | the-gamecoders/TheGameHub | b60b237a2626defda2240951f14074d13075c3c9 | [
"MIT"
] | 1 | 2020-11-15T14:24:43.000Z | 2020-11-15T14:24:43.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'leaderboard.ui'
#
# Created by: PyQt5 UI code generator 5.15.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 impor... | 43.916667 | 117 | 0.663567 | 592 | 5,270 | 5.771959 | 0.285473 | 0.04741 | 0.064677 | 0.032777 | 0.249927 | 0.131694 | 0.131694 | 0.100673 | 0.034533 | 0.034533 | 0 | 0.026477 | 0.225996 | 5,270 | 119 | 118 | 44.285714 | 0.811228 | 0.052372 | 0 | 0.108911 | 1 | 0 | 0.115882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039604 | false | 0 | 0.029703 | 0 | 0.079208 | 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 |
a3f047991a6974307a55b8025320c0ad1d7269cc | 2,113 | py | Python | code/GA/geneticAlgorithmOnSch.py | KGJsGit/my_Optimization-studio | 1f3f78c22c58017f439c7be8b716a233be872ccc | [
"Apache-2.0"
] | 4 | 2020-06-02T08:27:36.000Z | 2022-03-16T15:09:46.000Z | code/GA/geneticAlgorithmOnSch.py | KGJsGit/my_Optimization-studio | 1f3f78c22c58017f439c7be8b716a233be872ccc | [
"Apache-2.0"
] | null | null | null | code/GA/geneticAlgorithmOnSch.py | KGJsGit/my_Optimization-studio | 1f3f78c22c58017f439c7be8b716a233be872ccc | [
"Apache-2.0"
] | 5 | 2021-04-21T11:52:33.000Z | 2022-01-15T09:14:45.000Z | import math
import timeit
import numpy as np
import random
class GA :
def __init__(self, populationSize, selectionProbability, threshold, mutationProbability):
self.job = ['j1', 'j2']
self.operation = [['o11', 'o22'],
['o21', 'o22', 'o23']]
self.machine =... | 31.073529 | 97 | 0.511595 | 238 | 2,113 | 4.428571 | 0.336134 | 0.034156 | 0.026565 | 0.00759 | 0.058824 | 0.036053 | 0 | 0 | 0 | 0 | 0 | 0.073801 | 0.358732 | 2,113 | 68 | 98 | 31.073529 | 0.704059 | 0.066257 | 0 | 0.061224 | 0 | 0 | 0.022105 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.122449 | false | 0 | 0.081633 | 0 | 0.244898 | 0.081633 | 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 |
a3f258fa8eba8adadd996ef71df5d9671e267bd3 | 1,581 | py | Python | panclassif/dataProcess.py | Kazi1318914/panclassif | 56a57f5411eface902206e0cecf110d478433617 | [
"MIT"
] | 1 | 2021-08-05T10:17:46.000Z | 2021-08-05T10:17:46.000Z | panclassif/dataProcess.py | Zwei-inc/panclassif | 1cfe5434a10572b40ea845e885564b9ebfb88572 | [
"MIT"
] | null | null | null | panclassif/dataProcess.py | Zwei-inc/panclassif | 1cfe5434a10572b40ea845e885564b9ebfb88572 | [
"MIT"
] | 2 | 2021-05-27T10:15:04.000Z | 2021-08-15T06:30:26.000Z | from .stepone import step1
from .steptwo import step2
from .stepthree import step3
from .stepfour import step4
from .stepfive import step5
from .test_train_split import splitCancer, splitNormal
def dataProcess(homepath,names,cancerpath,smoothed_cancer,smoothed_normal,scale_mode):
'''
Parameters
----------... | 28.745455 | 87 | 0.724225 | 210 | 1,581 | 5.357143 | 0.42381 | 0.057778 | 0.042667 | 0.04 | 0.237333 | 0.210667 | 0.080889 | 0.058667 | 0 | 0 | 0 | 0.009353 | 0.188488 | 1,581 | 54 | 88 | 29.277778 | 0.867498 | 0.569892 | 0 | 0 | 0 | 0 | 0.076792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.411765 | 0.176471 | 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 |
a3fc517076fcd48ca082c197ea7cd0c078d3ce90 | 2,214 | py | Python | rooms/models.py | covid-videoplattform/django-webfrontend | 63cd880d155bcf6549b5616be3c6d2a87d198106 | [
"MIT"
] | 1 | 2020-03-29T21:17:37.000Z | 2020-03-29T21:17:37.000Z | rooms/models.py | covid-videoplattform/django-webfrontend | 63cd880d155bcf6549b5616be3c6d2a87d198106 | [
"MIT"
] | 15 | 2020-03-25T10:14:38.000Z | 2020-04-05T11:08:00.000Z | rooms/models.py | covid-videoplattform/django-webfrontend | 63cd880d155bcf6549b5616be3c6d2a87d198106 | [
"MIT"
] | null | null | null | import uuid
from django.core.exceptions import ValidationError
from django.db import models
from django.urls import reverse
from django.utils.translation import gettext_lazy as _
from phonenumber_field.modelfields import PhoneNumberField
# health care worker who is available for appointments
class StaffMember(models.... | 37.525424 | 77 | 0.686992 | 286 | 2,214 | 5.174825 | 0.391608 | 0.05473 | 0.079054 | 0.080405 | 0.341892 | 0.314865 | 0.261486 | 0.233784 | 0.177027 | 0.177027 | 0 | 0.008078 | 0.217254 | 2,214 | 58 | 78 | 38.172414 | 0.845932 | 0.080849 | 0 | 0.186047 | 0 | 0 | 0.078287 | 0.011817 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139535 | false | 0 | 0.139535 | 0.116279 | 0.72093 | 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 | 1 | 0 | 0 | 0 | 1 |
a3fee3ec12b04d2475067140a8e156ed8b7af33c | 363 | py | Python | flaskAPI_ML/logger.py | pankaj-j-sharma/machine-vision-system | d214c1247d943862e4058a8e79d3c49c5d3da6b6 | [
"Apache-2.0"
] | null | null | null | flaskAPI_ML/logger.py | pankaj-j-sharma/machine-vision-system | d214c1247d943862e4058a8e79d3c49c5d3da6b6 | [
"Apache-2.0"
] | null | null | null | flaskAPI_ML/logger.py | pankaj-j-sharma/machine-vision-system | d214c1247d943862e4058a8e79d3c49c5d3da6b6 | [
"Apache-2.0"
] | null | null | null | from pprint import pprint
class Logger:
def __init__(self) -> None:
print('Initialised logger class')
def log_message(self, *msgs):
print('-'*100)
for msg in msgs:
if (isinstance(msg, dict) or isinstance(msg, tuple) or isinstance(msg, list)):
pprint(msg)
... | 24.2 | 90 | 0.550964 | 42 | 363 | 4.642857 | 0.595238 | 0.2 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012552 | 0.341598 | 363 | 14 | 91 | 25.928571 | 0.803347 | 0 | 0 | 0 | 0 | 0 | 0.068871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.363636 | 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 |
43009f6f7be35ff1ca1835b2e321e5c0939a66a5 | 940 | py | Python | Code/Python/bootcamp_test.py | beeway/Data_Bootcamp | abc2486060672e19f5e4a71342cb8ca05155db83 | [
"MIT"
] | 74 | 2015-01-14T22:51:39.000Z | 2021-01-31T17:23:58.000Z | Code/Python/bootcamp_test.py | beeway/Data_Bootcamp | abc2486060672e19f5e4a71342cb8ca05155db83 | [
"MIT"
] | 13 | 2015-03-18T20:24:40.000Z | 2016-05-06T13:44:33.000Z | Code/Python/bootcamp_test.py | beeway/Data_Bootcamp | abc2486060672e19f5e4a71342cb8ca05155db83 | [
"MIT"
] | 60 | 2015-03-24T00:05:50.000Z | 2021-05-12T15:15:32.000Z | """
Test program for Data Bootcamp course.
Repository of materials (including this file):
* https://github.com/DaveBackus/Data_Bootcamp/
* https://github.com/DaveBackus/Data_Bootcamp/Code/Python
Written by Dave Backus, March 2015
Created with Python 3.4
"""
print('\nWelcome to Data Bootcamp!')
import datetime
print(... | 24.736842 | 79 | 0.68617 | 136 | 940 | 4.720588 | 0.588235 | 0.074766 | 0.043614 | 0.074766 | 0.11215 | 0.11215 | 0 | 0 | 0 | 0 | 0 | 0.014049 | 0.167021 | 940 | 37 | 80 | 25.405405 | 0.805875 | 0.342553 | 0 | 0 | 0 | 0 | 0.42998 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.230769 | 0 | 0.230769 | 0.384615 | 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 |
43069a2e089eec7873f7d3a24e8ddc4b62a85be5 | 1,866 | py | Python | examples/random_seek.py | stpeter/plinth | f9f8e4a40df0a3b4ec4b6a65e8e58a912f981c99 | [
"MIT"
] | 1 | 2020-06-07T10:51:04.000Z | 2020-06-07T10:51:04.000Z | examples/random_seek.py | stpeter/plinth | f9f8e4a40df0a3b4ec4b6a65e8e58a912f981c99 | [
"MIT"
] | null | null | null | examples/random_seek.py | stpeter/plinth | f9f8e4a40df0a3b4ec4b6a65e8e58a912f981c99 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
TeleHash test script that connects to a seed and seeks a random hashname
"""
import os
import os.path
import logging
import argparse
try:
import simplejson as json
except ImportError:
import json
import plinth
log = plinth.log
def seek_rand(keyfile, seedf... | 28.272727 | 72 | 0.606645 | 237 | 1,866 | 4.666667 | 0.417722 | 0.018083 | 0.046112 | 0.036166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005091 | 0.26313 | 1,866 | 65 | 73 | 28.707692 | 0.799273 | 0.03537 | 0 | 0.06 | 0 | 0 | 0.138031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.16 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
430b52fa2c4e0150a686311b44b567ca22bfc7ed | 10,079 | py | Python | Device/Deploy/Radio/rf24_Main.py | nandor1992/FogOfThings | c412c26bfbd31162683e57b3dc2b5a0a5f21d9b0 | [
"Apache-2.0"
] | 1 | 2020-06-23T10:41:33.000Z | 2020-06-23T10:41:33.000Z | Device/Deploy/Radio/rf24_Main.py | nandor1992/FogOfThings | c412c26bfbd31162683e57b3dc2b5a0a5f21d9b0 | [
"Apache-2.0"
] | null | null | null | Device/Deploy/Radio/rf24_Main.py | nandor1992/FogOfThings | c412c26bfbd31162683e57b3dc2b5a0a5f21d9b0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# Example using Dynamic Payloads
#
# This is an example of how to use payloads of a varying (dynamic) size.
#
# Modified to work from FogOf Thinggs and with Ini Fie
# Modified Driver to Work with CouchDB
from __future__ import print_function
from threading import Timer
import time
from RF24... | 33.596667 | 162 | 0.6329 | 1,371 | 10,079 | 4.502553 | 0.252371 | 0.024299 | 0.018144 | 0.01377 | 0.32059 | 0.294832 | 0.294832 | 0.282845 | 0.258221 | 0.24591 | 0 | 0.019359 | 0.210735 | 10,079 | 299 | 163 | 33.70903 | 0.756631 | 0.153388 | 0 | 0.347032 | 0 | 0 | 0.122449 | 0.00261 | 0 | 0 | 0 | 0.003344 | 0 | 0 | null | null | 0.009132 | 0.059361 | null | null | 0.13242 | 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 |
430c3da939444b3608c4a13853f03579748b5f26 | 279 | py | Python | tests/unit/fixtures/fail_exporter.py | ClementPruvot/slo-generator | 9f3d6a5715115c1e0ae71c6e01c34d5ba2f121fe | [
"Apache-2.0"
] | 243 | 2020-09-25T12:58:10.000Z | 2022-03-25T18:57:29.000Z | tests/unit/fixtures/fail_exporter.py | ClementPruvot/slo-generator | 9f3d6a5715115c1e0ae71c6e01c34d5ba2f121fe | [
"Apache-2.0"
] | 88 | 2020-09-25T13:18:25.000Z | 2022-03-28T12:14:56.000Z | tests/unit/fixtures/fail_exporter.py | ClementPruvot/slo-generator | 9f3d6a5715115c1e0ae71c6e01c34d5ba2f121fe | [
"Apache-2.0"
] | 35 | 2020-09-25T20:42:20.000Z | 2022-03-21T06:29:36.000Z | """dummy_exporter.py
Dummy exporter implementation for testing.
"""
# pylint: disable=missing-class-docstring
from slo_generator.exporters.base import MetricsExporter
class FailExporter(MetricsExporter):
def export_metric(self, data):
raise ValueError("Oops !")
| 19.928571 | 56 | 0.763441 | 31 | 279 | 6.774194 | 0.870968 | 0.12381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139785 | 279 | 13 | 57 | 21.461538 | 0.875 | 0.365591 | 0 | 0 | 0 | 0 | 0.035294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
430f944adb41de05e91e9ace3ebcbf4ab926c57f | 8,681 | py | Python | custom_components/poem_ilevel/sensor.py | toscano/hass-poem-ilevel | 8afe6b9a1b347781e730b1573d0a8e3d1f0147ae | [
"MIT"
] | 3 | 2019-04-26T20:13:55.000Z | 2019-04-27T01:07:14.000Z | custom_components/poem_ilevel/sensor.py | toscano/hass-poem-ilevel | 8afe6b9a1b347781e730b1573d0a8e3d1f0147ae | [
"MIT"
] | 1 | 2021-01-10T13:57:58.000Z | 2021-01-13T16:11:05.000Z | custom_components/poem_ilevel/sensor.py | toscano/hass-poem-ilevel | 8afe6b9a1b347781e730b1573d0a8e3d1f0147ae | [
"MIT"
] | null | null | null | """
Support for displaying the current oil tank level.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.poem_ilevel/
"""
import asyncio
import json
import logging
import re
import aiohttp
import async_timeout
import voluptuous as vol
import homeass... | 33.388462 | 115 | 0.588757 | 987 | 8,681 | 4.960486 | 0.236069 | 0.01348 | 0.018382 | 0.008578 | 0.246732 | 0.176471 | 0.140931 | 0.127042 | 0.127042 | 0.127042 | 0 | 0.008991 | 0.308144 | 8,681 | 259 | 116 | 33.517375 | 0.806194 | 0.119111 | 0 | 0.204969 | 0 | 0 | 0.099314 | 0.014668 | 0 | 0 | 0 | 0 | 0 | 1 | 0.062112 | false | 0.074534 | 0.086957 | 0 | 0.279503 | 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 |
431041008562043e1b46d4d25a43553521143c0c | 2,282 | py | Python | tilecloud/tests/test_bounds.py | camptocamp/tilecloud | fa9864c969917ad47a6d4ce945fc19fe5cdcfb68 | [
"Unlicense"
] | 134 | 2017-02-25T22:14:50.000Z | 2022-03-04T09:51:13.000Z | tilecloud/tests/test_bounds.py | camptocamp/tilecloud | fa9864c969917ad47a6d4ce945fc19fe5cdcfb68 | [
"Unlicense"
] | 106 | 2017-03-07T13:45:04.000Z | 2022-03-31T13:01:49.000Z | tilecloud/tests/test_bounds.py | camptocamp/tilecloud | fa9864c969917ad47a6d4ce945fc19fe5cdcfb68 | [
"Unlicense"
] | 14 | 2017-05-05T14:46:50.000Z | 2022-01-02T18:37:31.000Z | import unittest
from tilecloud import Bounds
class TestBounds(unittest.TestCase):
def test_empty(self) -> None:
bounds = Bounds()
assert len(bounds) == 0
assert 1 not in bounds
self.assertRaises(StopIteration, next, iter(bounds))
assert bounds == bounds
def test_init_... | 30.026316 | 60 | 0.589395 | 283 | 2,282 | 4.671378 | 0.151943 | 0.05295 | 0.090772 | 0.108926 | 0.711044 | 0.588502 | 0.588502 | 0.527231 | 0.412254 | 0.364599 | 0 | 0.062303 | 0.303681 | 2,282 | 75 | 61 | 30.426667 | 0.769666 | 0 | 0 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.15873 | false | 0 | 0.031746 | 0 | 0.206349 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
431135e650cf64ed3d5ea4b26fc9580af1aea1f7 | 886 | py | Python | setup.py | SkamDart/codegrapher | b5191efcfadb933e846ae1d9e3136c07c4da6a8f | [
"MIT"
] | 11 | 2015-01-07T02:54:31.000Z | 2019-04-16T21:43:02.000Z | setup.py | SkamDart/codegrapher | b5191efcfadb933e846ae1d9e3136c07c4da6a8f | [
"MIT"
] | 2 | 2019-02-08T20:28:35.000Z | 2020-12-15T05:29:16.000Z | setup.py | SkamDart/codegrapher | b5191efcfadb933e846ae1d9e3136c07c4da6a8f | [
"MIT"
] | 4 | 2015-01-06T07:39:05.000Z | 2019-02-08T20:25:49.000Z | from setuptools import setup, find_packages
import codegrapher
setup(
name='codegrapher',
version=codegrapher.__version__,
description='Code that graphs code',
url='http://github.com/LaurEars/codegrapher',
author='Laura Rupprecht',
author_email='lauracr@bu.edu',
packages=find_packages(),
... | 24.611111 | 57 | 0.604966 | 82 | 886 | 6.378049 | 0.768293 | 0.045889 | 0.095602 | 0.099426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006144 | 0.265237 | 886 | 35 | 58 | 25.314286 | 0.797235 | 0 | 0 | 0.0625 | 0 | 0 | 0.460497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 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 |
4312bbb3eda8ba3206e6e91d3eeff2d4f5683c18 | 810 | py | Python | items/migrations/0001_initial.py | slabodkin/interpretable_recommendations | eeb142c7244380913233f2a1aac6fe5a750e4fb5 | [
"MIT"
] | null | null | null | items/migrations/0001_initial.py | slabodkin/interpretable_recommendations | eeb142c7244380913233f2a1aac6fe5a750e4fb5 | [
"MIT"
] | 4 | 2021-03-10T17:52:17.000Z | 2022-02-27T04:30:57.000Z | items/migrations/0001_initial.py | slabodkin/interpretable_recommendations | eeb142c7244380913233f2a1aac6fe5a750e4fb5 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.4 on 2020-05-03 15:54
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Movie',
fields=[
('id', models.IntegerField... | 27.931034 | 79 | 0.530864 | 78 | 810 | 5.461538 | 0.653846 | 0.075117 | 0.061033 | 0.079812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038603 | 0.328395 | 810 | 28 | 80 | 28.928571 | 0.744485 | 0.055556 | 0 | 0 | 1 | 0 | 0.06422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
431615003e574ec2771ef80d9f84d6fa7fd1f7b3 | 925 | py | Python | scipyplot/plot/save2file.py | robertocalandra/scipyplot | c2f2ffe00207fbb5b78732981d572c031660ed74 | [
"MIT"
] | 4 | 2016-12-02T20:24:54.000Z | 2020-07-26T20:54:03.000Z | scipyplot/plot/save2file.py | robertocalandra/scipyplot | c2f2ffe00207fbb5b78732981d572c031660ed74 | [
"MIT"
] | 6 | 2017-01-17T01:22:14.000Z | 2021-06-10T09:26:12.000Z | scipyplot/plot/save2file.py | robertocalandra/scipyplot | c2f2ffe00207fbb5b78732981d572c031660ed74 | [
"MIT"
] | 1 | 2021-04-22T08:46:22.000Z | 2021-04-22T08:46:22.000Z | # Compatibility Python 2/3
from __future__ import division, print_function, absolute_import
from builtins import range
# ----------------------------------------------------------------------------------------------------------------------
import sys
import scipyplot.log as log
import matplotlib.pyplot as plt
def sa... | 29.83871 | 120 | 0.581622 | 103 | 925 | 5.097087 | 0.524272 | 0.034286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019973 | 0.188108 | 925 | 30 | 121 | 30.833333 | 0.679095 | 0.265946 | 0 | 0 | 0 | 0 | 0.039246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.4 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
431880a5e6bbd882b3f0d7ff797fd793453bcd2d | 531 | py | Python | trabalho_final_programacao/classes/estado.py | carolina-sl/algoritmo_programacao_I | d7a8c046cc0b85e1c1e4233fda7e5ee58315231d | [
"MIT"
] | null | null | null | trabalho_final_programacao/classes/estado.py | carolina-sl/algoritmo_programacao_I | d7a8c046cc0b85e1c1e4233fda7e5ee58315231d | [
"MIT"
] | null | null | null | trabalho_final_programacao/classes/estado.py | carolina-sl/algoritmo_programacao_I | d7a8c046cc0b85e1c1e4233fda7e5ee58315231d | [
"MIT"
] | null | null | null | class Estado:
nome_estado: str
sigla: str
pais: str
qt_estado: int
def __init__(self, nome_estado, sigla):
self.nome_estado = nome_estado
self.sigla = sigla
self.pais = 'Brasil'
self.qtd_estado = 0 # é a soma dos qt_casos da classe Cidade
def __str__(self):
... | 24.136364 | 125 | 0.596987 | 70 | 531 | 4.228571 | 0.4 | 0.168919 | 0.141892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002611 | 0.278719 | 531 | 21 | 126 | 25.285714 | 0.770235 | 0.071563 | 0 | 0 | 0 | 0 | 0.102669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0.071429 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
431b39143b9b0cf0b40e592c7fd8d42ef1d24d16 | 978 | py | Python | FCFS.py | Aamina27/Amina-Afzal | 90c4b2ab97051bfa6c7ec83aa216ad303b3d1135 | [
"MIT"
] | null | null | null | FCFS.py | Aamina27/Amina-Afzal | 90c4b2ab97051bfa6c7ec83aa216ad303b3d1135 | [
"MIT"
] | null | null | null | FCFS.py | Aamina27/Amina-Afzal | 90c4b2ab97051bfa6c7ec83aa216ad303b3d1135 | [
"MIT"
] | null | null | null | burst_time=[]
print("Enter the number of process: ")
n=int(input())
print("Enter the burst time of the processes: \n")
burst_time=list(map(int, input().split()))
waiting_time=[]
avg_waiting_time=0
turnaround_time=[]
avg_turnaround_time=0
waiting_time.insert(0,0)
turnaround_time.insert(0,burst_time[0])
for i ... | 39.12 | 100 | 0.741309 | 171 | 978 | 4.011696 | 0.19883 | 0.22449 | 0.102041 | 0.026239 | 0.151604 | 0.067055 | 0 | 0 | 0 | 0 | 0 | 0.011287 | 0.09407 | 978 | 25 | 101 | 39.12 | 0.76298 | 0 | 0 | 0.08 | 0 | 0 | 0.206283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.32 | 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 |
431c43c01f4caa1fec9f506473547acf4a44987f | 578 | py | Python | test/clientlib_tests/db_class_unsharded.py | kmiku7/vitess-annotated | ca10b6aa42e57ac78ef8b315b93525263ecafc12 | [
"BSD-3-Clause"
] | null | null | null | test/clientlib_tests/db_class_unsharded.py | kmiku7/vitess-annotated | ca10b6aa42e57ac78ef8b315b93525263ecafc12 | [
"BSD-3-Clause"
] | null | null | null | test/clientlib_tests/db_class_unsharded.py | kmiku7/vitess-annotated | ca10b6aa42e57ac78ef8b315b93525263ecafc12 | [
"BSD-3-Clause"
] | 1 | 2021-03-24T12:37:12.000Z | 2021-03-24T12:37:12.000Z | """DB Classes for tables in unsharded keyspace.
This provides examples of unsharded db class
and its related methods.
"""
import topo_schema
from vtdb import db_object_unsharded
from vtdb import database_context
class VtUnsharded(db_object_unsharded.DBObjectUnsharded):
keyspace = topo_schema.KS_UNSHARDED[0]
tabl... | 27.52381 | 69 | 0.776817 | 82 | 578 | 5.146341 | 0.560976 | 0.047393 | 0.066351 | 0.099526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002008 | 0.138408 | 578 | 20 | 70 | 28.9 | 0.845382 | 0.198962 | 0 | 0 | 0 | 0 | 0.046053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.833333 | 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 |
4320d5161e781180cfafca65004285746d0439fd | 407 | py | Python | dsaii/migrations/0011_event_date.py | khushi0205/DSAII | 0a9c2b52346d8c71821854d8b84d52a92bf87449 | [
"MIT"
] | null | null | null | dsaii/migrations/0011_event_date.py | khushi0205/DSAII | 0a9c2b52346d8c71821854d8b84d52a92bf87449 | [
"MIT"
] | 1 | 2022-03-12T01:05:20.000Z | 2022-03-12T01:05:20.000Z | dsaii/migrations/0011_event_date.py | khushi0205/DSAII | 0a9c2b52346d8c71821854d8b84d52a92bf87449 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.8 on 2021-11-07 20:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dsaii', '0010_auto_20211108_0215'),
]
operations = [
migrations.AddField(
model_name='event',
name='date',
... | 21.421053 | 78 | 0.601966 | 46 | 407 | 5.217391 | 0.847826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116041 | 0.280098 | 407 | 18 | 79 | 22.611111 | 0.703072 | 0.110565 | 0 | 0 | 1 | 0 | 0.144444 | 0.063889 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
432174416d1fdee4c8eea97f70ea1c70de13c280 | 5,953 | py | Python | src/ukb_dz_probs.py | pthangaraj/QTPhenProxy | f920b23e523fe74c534c0183aae3a9d41f62c63f | [
"MIT"
] | null | null | null | src/ukb_dz_probs.py | pthangaraj/QTPhenProxy | f920b23e523fe74c534c0183aae3a9d41f62c63f | [
"MIT"
] | null | null | null | src/ukb_dz_probs.py | pthangaraj/QTPhenProxy | f920b23e523fe74c534c0183aae3a9d41f62c63f | [
"MIT"
] | null | null | null | #By Phyllis Thangaraj (pt2281@columbia.edu), Nicholas Tatonetti Lab at Columbia University Irving Medical Center
#Part of manuscript:"Medical data and machine learning improve power of stroke genome-wide association studies" https://www.biorxiv.org/content/10.1101/2020.01.22.915397v1
#This manuscript calculates the mod... | 40.773973 | 171 | 0.765328 | 927 | 5,953 | 4.745415 | 0.278317 | 0.027279 | 0.023187 | 0.04501 | 0.210275 | 0.16822 | 0.150943 | 0.111389 | 0.094112 | 0.072289 | 0 | 0.020282 | 0.105493 | 5,953 | 145 | 172 | 41.055172 | 0.805822 | 0.230304 | 0 | 0.110169 | 0 | 0 | 0.082728 | 0.010121 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.20339 | null | null | 0.050847 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
432445a95ba3ec6df9260aa94af3e8851cab6443 | 898 | py | Python | student6.py | DenzelRafaelDonato/OOP-58002 | 9ce30e9ab73b99de9c26a68ab129721d7c709583 | [
"Apache-2.0"
] | null | null | null | student6.py | DenzelRafaelDonato/OOP-58002 | 9ce30e9ab73b99de9c26a68ab129721d7c709583 | [
"Apache-2.0"
] | null | null | null | student6.py | DenzelRafaelDonato/OOP-58002 | 9ce30e9ab73b99de9c26a68ab129721d7c709583 | [
"Apache-2.0"
] | null | null | null | import pyodbc
try:
connection = pyodbc.connect(r'Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=C:\Users\Denzel\Downloads\Database3.accdb;')
print("Database is connected")
user_id = 6
Contact = "911"
Address = "Quiapo"
Fullname = "Denzel Rafael K. Donato"
Birthdate = "07/20/... | 39.043478 | 133 | 0.660356 | 115 | 898 | 5.104348 | 0.452174 | 0.061329 | 0.16184 | 0.212947 | 0.279387 | 0.231687 | 0.231687 | 0 | 0 | 0 | 0 | 0.029086 | 0.195991 | 898 | 23 | 134 | 39.043478 | 0.783934 | 0 | 0 | 0 | 0 | 0.05 | 0.440137 | 0.063854 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0.15 | 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 |
4328bde6c0b1acd22e98f5626ee012e92fd4585b | 6,153 | py | Python | jsonapi_mock_server/base_tests.py | ZeroCater/jsonapi-mock-server | 3dfa5201f2cae672b4413ff21f411a94b3e383e6 | [
"MIT"
] | 1 | 2021-08-20T13:34:31.000Z | 2021-08-20T13:34:31.000Z | jsonapi_mock_server/base_tests.py | ZeroCater/jsonapi-mock-server | 3dfa5201f2cae672b4413ff21f411a94b3e383e6 | [
"MIT"
] | 7 | 2016-09-27T17:27:12.000Z | 2021-06-10T17:24:36.000Z | jsonapi_mock_server/base_tests.py | ZeroCater/jsonapi-mock-server | 3dfa5201f2cae672b4413ff21f411a94b3e383e6 | [
"MIT"
] | null | null | null | import json
import os
import pprint
import requests
from simplejson.decoder import JSONDecodeError
import unittest
from django.conf import settings
from django.core.urlresolvers import reverse
from django.test import Client
from django.test.runner import DiscoverRunner
from jsondiff import diff
import inflection
from... | 37.518293 | 97 | 0.667642 | 752 | 6,153 | 5.243351 | 0.18617 | 0.045651 | 0.029673 | 0.022825 | 0.398681 | 0.369262 | 0.334517 | 0.334517 | 0.313213 | 0.266041 | 0 | 0.002947 | 0.227856 | 6,153 | 163 | 98 | 37.748466 | 0.826984 | 0.012839 | 0 | 0.282258 | 0 | 0 | 0.070199 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 0 | null | null | 0.024194 | 0.104839 | null | null | 0.032258 | 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 |
432fcab4a26532ce9a0980b732586ed3a338634e | 7,171 | py | Python | application/database.py | aothms/ifc-pipeline-validation | 1877ed0996d9136a0affcf90868550e807d30876 | [
"MIT"
] | 2 | 2022-01-25T19:38:39.000Z | 2022-02-21T22:44:19.000Z | application/database.py | aothms/ifc-pipeline-validation | 1877ed0996d9136a0affcf90868550e807d30876 | [
"MIT"
] | 1 | 2022-02-15T13:13:59.000Z | 2022-02-15T13:13:59.000Z | application/database.py | aothms/ifc-pipeline-validation | 1877ed0996d9136a0affcf90868550e807d30876 | [
"MIT"
] | 2 | 2022-01-22T15:41:52.000Z | 2022-02-21T10:33:42.000Z | ##################################################################################
# #
# Copyright (c) 2020 AECgeeks #
# ... | 37.941799 | 95 | 0.617069 | 804 | 7,171 | 5.304726 | 0.312189 | 0.07034 | 0.024619 | 0.025791 | 0.175381 | 0.132474 | 0.080657 | 0.061899 | 0.056741 | 0.030481 | 0 | 0.001891 | 0.262585 | 7,171 | 188 | 96 | 38.143617 | 0.804652 | 0.237345 | 0 | 0.122951 | 0 | 0 | 0.079923 | 0.023359 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065574 | false | 0.016393 | 0.081967 | 0 | 0.688525 | 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 |
433024b3670de37587d70b0531dfb60a9fefc842 | 1,223 | py | Python | squarelet_auth/organizations/migrations/0004_auto_20200527_0920.py | MuckRock/squarelet-auth | 17189b2f90b0d54fdd0d3c468833f719c07bc2a1 | [
"BSD-3-Clause"
] | null | null | null | squarelet_auth/organizations/migrations/0004_auto_20200527_0920.py | MuckRock/squarelet-auth | 17189b2f90b0d54fdd0d3c468833f719c07bc2a1 | [
"BSD-3-Clause"
] | null | null | null | squarelet_auth/organizations/migrations/0004_auto_20200527_0920.py | MuckRock/squarelet-auth | 17189b2f90b0d54fdd0d3c468833f719c07bc2a1 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.0.8 on 2020-05-27 09:20
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('squarelet_auth_organizations', '0003_plan_resources'),
]
operations = [... | 39.451613 | 224 | 0.645953 | 129 | 1,223 | 5.992248 | 0.565891 | 0.056921 | 0.054334 | 0.069858 | 0.168176 | 0.085382 | 0.085382 | 0 | 0 | 0 | 0 | 0.026455 | 0.22731 | 1,223 | 30 | 225 | 40.766667 | 0.791534 | 0.036795 | 0 | 0.083333 | 1 | 0 | 0.182823 | 0.057823 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
433c92b5b3fcb4a3911134f3e5eaf2919ce6fe89 | 819 | py | Python | geotrek/tourism/migrations/0005_auto_20190328_1339.py | pierreloicq/Geotrek-admin | 00cd29f29843f2cc25e5a3c7372fcccf14956887 | [
"BSD-2-Clause"
] | 50 | 2016-10-19T23:01:21.000Z | 2022-03-28T08:28:34.000Z | geotrek/tourism/migrations/0005_auto_20190328_1339.py | pierreloicq/Geotrek-admin | 00cd29f29843f2cc25e5a3c7372fcccf14956887 | [
"BSD-2-Clause"
] | 1,422 | 2016-10-27T10:39:40.000Z | 2022-03-31T13:37:10.000Z | geotrek/tourism/migrations/0005_auto_20190328_1339.py | pierreloicq/Geotrek-admin | 00cd29f29843f2cc25e5a3c7372fcccf14956887 | [
"BSD-2-Clause"
] | 46 | 2016-10-27T10:59:10.000Z | 2022-03-22T15:55:56.000Z | # Generated by Django 1.11.14 on 2019-03-28 12:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tourism', '0004_auto_20190322_1908'),
]
operations = [
migrations.AlterField(
model_name='touristiccontent',
name=... | 34.125 | 180 | 0.665446 | 87 | 819 | 6.045977 | 0.574713 | 0.076046 | 0.095057 | 0.110266 | 0.422053 | 0.422053 | 0.235741 | 0.235741 | 0.235741 | 0.235741 | 0 | 0.067083 | 0.217338 | 819 | 23 | 181 | 35.608696 | 0.75351 | 0.057387 | 0 | 0.352941 | 1 | 0 | 0.283117 | 0.180519 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 |
433d524fdee911141a0d54408eaa7fa4ae8dd542 | 10,321 | py | Python | tensorflow/modules/third_party/laina/fcrn.py | nicolasrosa/Sparse-to-Continuous | 8664de17d6b6c6cc39bf8fcebfcb829249367f2f | [
"BSD-2-Clause"
] | 19 | 2018-09-25T01:58:13.000Z | 2021-07-27T09:54:36.000Z | tensorflow/modules/third_party/laina/fcrn.py | nicolasrosa/Sparse-to-Continuous | 8664de17d6b6c6cc39bf8fcebfcb829249367f2f | [
"BSD-2-Clause"
] | 18 | 2020-03-24T18:18:56.000Z | 2022-02-10T00:35:13.000Z | catkin_ws/src/fcrn/src/scripts/modules/third_party/laina/fcrn.py | nicolasrosa/Sparse-to-Continuous | 8664de17d6b6c6cc39bf8fcebfcb829249367f2f | [
"BSD-2-Clause"
] | 4 | 2019-11-14T02:35:34.000Z | 2020-08-27T11:36:02.000Z | from .network import Network
class ResNet50UpProj(Network):
def setup(self):
(self.feed('data')
.conv(7, 7, 64, 2, 2, relu=False, name='conv1')
.batch_normalization(relu=True, name='bn_conv1')
.max_pool(3, 3, 2, 2, name='pool1')
.conv(1, 1, 256, 1, 1, biased=False, relu... | 49.147619 | 81 | 0.598295 | 1,348 | 10,321 | 4.416172 | 0.063056 | 0.028893 | 0.120108 | 0.174702 | 0.656308 | 0.637158 | 0.411389 | 0.408366 | 0.358643 | 0.336805 | 0 | 0.093603 | 0.238155 | 10,321 | 209 | 82 | 49.382775 | 0.663487 | 0 | 0 | 0 | 0 | 0 | 0.203953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005348 | false | 0 | 0.005348 | 0 | 0.016043 | 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 |
434191bf1ddcb1cb30b12511ed3a03121b052ca8 | 12,622 | py | Python | pkg/py_rl/py_firmament_grpc/firmament_scheduler_pb2_grpc.py | Panlichen/poseidon | 7d995d3d6d2b26920c3a4d0c7dcb003a920f4a39 | [
"Apache-2.0"
] | null | null | null | pkg/py_rl/py_firmament_grpc/firmament_scheduler_pb2_grpc.py | Panlichen/poseidon | 7d995d3d6d2b26920c3a4d0c7dcb003a920f4a39 | [
"Apache-2.0"
] | null | null | null | pkg/py_rl/py_firmament_grpc/firmament_scheduler_pb2_grpc.py | Panlichen/poseidon | 7d995d3d6d2b26920c3a4d0c7dcb003a920f4a39 | [
"Apache-2.0"
] | null | null | null | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
import firmament_scheduler_pb2 as firmament__scheduler__pb2
import resource_stats_pb2 as resource__stats__pb2
import resource_topology_node_desc_pb2 as resource__topology__node__desc__pb2
import task_stats_pb2 as task__stats__pb2
class... | 46.575646 | 112 | 0.76541 | 1,174 | 12,622 | 7.851789 | 0.097956 | 0.097635 | 0.113908 | 0.080712 | 0.686374 | 0.588305 | 0.530267 | 0.437731 | 0.432089 | 0.432089 | 0 | 0.006037 | 0.160117 | 12,622 | 270 | 113 | 46.748148 | 0.863503 | 0.090556 | 0 | 0.361502 | 1 | 0 | 0.121664 | 0.05223 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075117 | false | 0.014085 | 0.023474 | 0 | 0.107981 | 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 |
43476ba240a1cdd7a8f0da4ded54085175a935ba | 790 | py | Python | examples/cars.py | joshloyal/YouAreNotMySupervisor | 894358cc5b5831a52d05281348a41409fb22429b | [
"MIT"
] | null | null | null | examples/cars.py | joshloyal/YouAreNotMySupervisor | 894358cc5b5831a52d05281348a41409fb22429b | [
"MIT"
] | null | null | null | examples/cars.py | joshloyal/YouAreNotMySupervisor | 894358cc5b5831a52d05281348a41409fb22429b | [
"MIT"
] | null | null | null | from hdbscan import HDBSCAN
from sklearn.cluster import KMeans
from mysuper.datasets import fetch_cars
from plot import bokeh_plot_2d, plot_parallel_coordinates, project_data
data = fetch_cars()
#cluster = HDBSCAN(min_cluster_size=5, metric='l2').fit(data.values)
#bokeh_plot_2d(data, labels=hdb.labels_, probabilitie... | 35.909091 | 80 | 0.763291 | 119 | 790 | 4.831933 | 0.453782 | 0.090435 | 0.057391 | 0.062609 | 0.118261 | 0.118261 | 0.118261 | 0.118261 | 0 | 0 | 0 | 0.023481 | 0.083544 | 790 | 21 | 81 | 37.619048 | 0.770718 | 0.301266 | 0 | 0 | 0 | 0 | 0.083942 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
434874f86c8a9672dcf3effd0649e37cb15e891c | 1,053 | py | Python | platypush/plugins/lastfm/__init__.py | shineit/platypush | a67b301cd66235b41bff6bfb3de56b903bf9551d | [
"MIT"
] | 1 | 2020-12-08T06:26:31.000Z | 2020-12-08T06:26:31.000Z | platypush/plugins/lastfm/__init__.py | shineit/platypush | a67b301cd66235b41bff6bfb3de56b903bf9551d | [
"MIT"
] | null | null | null | platypush/plugins/lastfm/__init__.py | shineit/platypush | a67b301cd66235b41bff6bfb3de56b903bf9551d | [
"MIT"
] | null | null | null | import pylast
import time
from platypush.message.response import Response
from .. import Plugin
class LastfmPlugin(Plugin):
def __init__(self, api_key, api_secret, username, password):
self.api_key = api_key
self.api_secret = api_secret
self.username = username
self.password = pas... | 23.4 | 70 | 0.587844 | 116 | 1,053 | 5.172414 | 0.336207 | 0.058333 | 0.05 | 0.065 | 0.303333 | 0.24 | 0.133333 | 0.133333 | 0 | 0 | 0 | 0.004178 | 0.318139 | 1,053 | 44 | 71 | 23.931818 | 0.831476 | 0.016144 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.133333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4a31da3f1cdc8c320b0f356d7a31c8b3c3c87053 | 127,516 | py | Python | workspace/module/python-2.7/LxGui/qt/guiQtWgtAbs.py | no7hings/Lynxi | 43c745198a714c2e5aca86c6d7a014adeeb9abf7 | [
"MIT"
] | 2 | 2018-03-06T03:33:55.000Z | 2019-03-26T03:25:11.000Z | workspace/module/python-2.7/LxGui/qt/guiQtWgtAbs.py | no7hings/lynxi | 43c745198a714c2e5aca86c6d7a014adeeb9abf7 | [
"MIT"
] | null | null | null | workspace/module/python-2.7/LxGui/qt/guiQtWgtAbs.py | no7hings/lynxi | 43c745198a714c2e5aca86c6d7a014adeeb9abf7 | [
"MIT"
] | null | null | null | # coding:utf-8
import chardet
from LxBasic import bscMethods
from LxScheme import shmOutput
#
from LxGui import guiCore
#
from LxGui.qt import qtCore, guiQtMdlAbs
#
QtGui = qtCore.QtGui
QtCore = qtCore.QtCore
#
_families = guiCore.Lynxi_Ui_Family_Lis
#
none = ''
# Item
class Abs_GuiQtItemWgt(qtCore.QWidget):
CL... | 35.371983 | 153 | 0.615311 | 12,158 | 127,516 | 6.189423 | 0.087021 | 0.060464 | 0.032744 | 0.008133 | 0.605201 | 0.564404 | 0.526465 | 0.487023 | 0.46006 | 0.424194 | 0 | 0.015151 | 0.283659 | 127,516 | 3,604 | 154 | 35.381798 | 0.808659 | 0.023346 | 0 | 0.490709 | 0 | 0.001138 | 0.00998 | 0.003025 | 0 | 0 | 0.000113 | 0 | 0 | 0 | null | null | 0.00493 | 0.001896 | null | null | 0.001138 | 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 |
4a35cfa11ce909cabc5bab9577ddf4e9eedbcf1e | 9,977 | py | Python | codelibproj/codelibapp/tests.py | ahegashira/CodeLibrary | 4dca1eb8ec0c274e8dfb1db62a97920703df3240 | [
"Apache-2.0"
] | null | null | null | codelibproj/codelibapp/tests.py | ahegashira/CodeLibrary | 4dca1eb8ec0c274e8dfb1db62a97920703df3240 | [
"Apache-2.0"
] | null | null | null | codelibproj/codelibapp/tests.py | ahegashira/CodeLibrary | 4dca1eb8ec0c274e8dfb1db62a97920703df3240 | [
"Apache-2.0"
] | null | null | null | from django.test import TestCase
from .models import ResourceType, Book, Blog, Website, Meetup, Developer
from django.urls import reverse
from django.contrib.auth.models import User
import datetime
from .forms import WebsiteForm, MeetupForm, DeveloperForm, BookForm, BlogForm
# Testing Models:
# Test Resource... | 37.507519 | 233 | 0.697604 | 1,146 | 9,977 | 5.864747 | 0.124782 | 0.04166 | 0.056242 | 0.065615 | 0.60616 | 0.564499 | 0.524029 | 0.512424 | 0.496057 | 0.490701 | 0 | 0.008252 | 0.198356 | 9,977 | 265 | 234 | 37.649057 | 0.832083 | 0.051118 | 0 | 0.445714 | 0 | 0 | 0.115678 | 0.034671 | 0 | 0 | 0 | 0 | 0.268571 | 1 | 0.268571 | false | 0.017143 | 0.034286 | 0 | 0.394286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a3ba51a36cf98c56b0fbf3b2b1b38a51dd1b095 | 1,237 | py | Python | calculator.py | GregHilston/github-tutorial-calculator | d35229cf277c82f0dce39fe5a6fa56228975ed0a | [
"MIT"
] | 3 | 2018-05-11T09:37:53.000Z | 2018-08-21T23:33:19.000Z | calculator.py | GregHilston/github-tutorial-calculator | d35229cf277c82f0dce39fe5a6fa56228975ed0a | [
"MIT"
] | 17 | 2018-05-01T01:50:22.000Z | 2018-08-23T13:40:38.000Z | calculator.py | GregHilston/github-tutorial-calculator | d35229cf277c82f0dce39fe5a6fa56228975ed0a | [
"MIT"
] | 13 | 2018-05-02T00:31:25.000Z | 2018-08-21T09:56:49.000Z | import math
class Calculator:
"""A simple Calculator class used to demonstrate Git and Github features
"""
def add(self, x, y):
"""Adds x and y together and returns the sum
"""
return x + y
def subtract(self, x, y):
"""Subtracts y from x and returns the... | 19.951613 | 77 | 0.491512 | 155 | 1,237 | 3.922581 | 0.367742 | 0.032895 | 0.049342 | 0.072368 | 0.092105 | 0.055921 | 0 | 0 | 0 | 0 | 0 | 0 | 0.407437 | 1,237 | 61 | 78 | 20.278689 | 0.829468 | 0.391269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.45 | false | 0 | 0.05 | 0.05 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a3bf9ef03f799b8e29af8099d2a8d6e439fdb00 | 1,441 | py | Python | app/migrations/0025_alter_list_tags_alter_listitem_choices_and_more.py | djyasin/GrocerEase | ec0cad32f0a45a20bed808bd3fc47d8983ceeb9e | [
"MIT"
] | 1 | 2022-02-11T18:34:36.000Z | 2022-02-11T18:34:36.000Z | app/migrations/0025_alter_list_tags_alter_listitem_choices_and_more.py | djyasin/GrocerEase | ec0cad32f0a45a20bed808bd3fc47d8983ceeb9e | [
"MIT"
] | null | null | null | app/migrations/0025_alter_list_tags_alter_listitem_choices_and_more.py | djyasin/GrocerEase | ec0cad32f0a45a20bed808bd3fc47d8983ceeb9e | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-01-27 00:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0024_remove_listitem_category_listitem_choices_and_more'),
]
operations = [
migrations.AlterField(
model_name='list',
... | 42.382353 | 506 | 0.59542 | 152 | 1,441 | 5.546053 | 0.5 | 0.094899 | 0.118624 | 0.137604 | 0.233689 | 0.164887 | 0.116251 | 0.116251 | 0 | 0 | 0 | 0.023572 | 0.234559 | 1,441 | 33 | 507 | 43.666667 | 0.740707 | 0.031228 | 0 | 0.407407 | 1 | 0 | 0.285509 | 0.039455 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 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 |
4a48ba6908c5db05ce408486e695ca06914d01ad | 998 | py | Python | scripts/data_api.py | CENDARI/elastic-indexer | 17ece90742b11e30adb3241d69e2499a673128fe | [
"BSD-3-Clause"
] | null | null | null | scripts/data_api.py | CENDARI/elastic-indexer | 17ece90742b11e30adb3241d69e2499a673128fe | [
"BSD-3-Clause"
] | 3 | 2015-02-06T16:41:38.000Z | 2016-10-24T09:06:28.000Z | scripts/data_api.py | CENDARI/elastic-indexer | 17ece90742b11e30adb3241d69e2499a673128fe | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import urllib2
import urllib
import json
import pprint
import sys
# Use the json module to dump a dictionary to a string for posting.
#data_string = urllib.quote(json.dumps({'id': 'data-explorer'}))
# Make the HTTP request.
url = 'http://localhost:42042/v1/resources/'+sys.argv[1]
print "Reading ... | 27.722222 | 68 | 0.728457 | 144 | 998 | 5.006944 | 0.388889 | 0.055479 | 0.041609 | 0.066574 | 0.632455 | 0.518724 | 0.518724 | 0.518724 | 0.518724 | 0.518724 | 0 | 0.023697 | 0.154309 | 998 | 35 | 69 | 28.514286 | 0.830569 | 0.298597 | 0 | 0.434783 | 0 | 0 | 0.134006 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0 | null | null | 0 | 0.217391 | null | null | 0.217391 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a4976b735533bc82fd8124842e2c8a3be9f542b | 1,627 | py | Python | xrpl/models/transactions/pseudo_transactions/set_fee.py | florent-uzio/xrpl-py | ce396a15a6fc39ca20e035636463b58b231ffeac | [
"0BSD"
] | null | null | null | xrpl/models/transactions/pseudo_transactions/set_fee.py | florent-uzio/xrpl-py | ce396a15a6fc39ca20e035636463b58b231ffeac | [
"0BSD"
] | null | null | null | xrpl/models/transactions/pseudo_transactions/set_fee.py | florent-uzio/xrpl-py | ce396a15a6fc39ca20e035636463b58b231ffeac | [
"0BSD"
] | null | null | null | """Model for SetFee pseudo-transaction type."""
from dataclasses import dataclass, field
from typing import Optional
from xrpl.models.required import REQUIRED
from xrpl.models.transactions.pseudo_transactions.pseudo_transaction import (
PseudoTransaction,
)
from xrpl.models.transactions.types import PseudoTransac... | 35.369565 | 87 | 0.737554 | 206 | 1,627 | 5.73301 | 0.38835 | 0.071973 | 0.047417 | 0.071126 | 0.060965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180701 | 1,627 | 45 | 88 | 36.155556 | 0.885971 | 0.490473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.3 | 0 | 0.65 | 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 |
4a49ddaf52e3bdc705bd35fcba2a7bc3417fc82e | 437 | py | Python | process/migrations/0013_auto_20210123_1608.py | Gt-Accui/graph-covid-19 | 59e663879c9bdf2aa5b82173932df518305e2b6a | [
"MIT"
] | null | null | null | process/migrations/0013_auto_20210123_1608.py | Gt-Accui/graph-covid-19 | 59e663879c9bdf2aa5b82173932df518305e2b6a | [
"MIT"
] | 1 | 2021-01-30T20:25:46.000Z | 2021-02-06T15:34:15.000Z | process/migrations/0013_auto_20210123_1608.py | Gt-Accui/graph-covid-19 | 59e663879c9bdf2aa5b82173932df518305e2b6a | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2021-01-23 07:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('process', '0012_auto_20210123_1607'),
]
operations = [
migrations.AlterField(
model_name='process',
name='process',
... | 23 | 99 | 0.617849 | 50 | 437 | 5.28 | 0.8 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0.26087 | 437 | 18 | 100 | 24.277778 | 0.712074 | 0.102975 | 0 | 0 | 1 | 0 | 0.135897 | 0.058974 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a4a05f0fa7607269074068ce6be591dab7759bc | 6,245 | py | Python | src/lm/gen-word-given-wcl-lm.py | nrc-cnrc/Portage-SMT-TAS | 73f5a65de4adfa13008ea9a01758385c97526059 | [
"MIT"
] | null | null | null | src/lm/gen-word-given-wcl-lm.py | nrc-cnrc/Portage-SMT-TAS | 73f5a65de4adfa13008ea9a01758385c97526059 | [
"MIT"
] | null | null | null | src/lm/gen-word-given-wcl-lm.py | nrc-cnrc/Portage-SMT-TAS | 73f5a65de4adfa13008ea9a01758385c97526059 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# @file gen-word-given-wcl-lm.py
# @brief Generate a 1-gram LM (in ARPA format) providing log probabilities
# p(w | wcl(w)), where wcl(w) is the word class corresponding to word w
# (e.g. trained using mkcls).
#
# @author Darlene Stewart
#
# Technologies langagieres interactives / Interactive ... | 40.032051 | 85 | 0.638751 | 904 | 6,245 | 4.295354 | 0.279867 | 0.045326 | 0.009271 | 0.010301 | 0.359258 | 0.319341 | 0.277363 | 0.277363 | 0.270409 | 0.270409 | 0 | 0.015186 | 0.219696 | 6,245 | 155 | 86 | 40.290323 | 0.781654 | 0.230264 | 0 | 0.271028 | 1 | 0.009346 | 0.207792 | 0.010054 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018692 | false | 0 | 0.074766 | 0 | 0.102804 | 0.084112 | 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 |
4a4a7ec21f46837e93e314985a642d35bac43cf8 | 2,282 | py | Python | python/src/bound.py | xwkuang5/code-fragments | c313a0a72fc316862e292a6753ebc911d1b6cdd2 | [
"MIT"
] | null | null | null | python/src/bound.py | xwkuang5/code-fragments | c313a0a72fc316862e292a6753ebc911d1b6cdd2 | [
"MIT"
] | null | null | null | python/src/bound.py | xwkuang5/code-fragments | c313a0a72fc316862e292a6753ebc911d1b6cdd2 | [
"MIT"
] | null | null | null | def lower_bound(arr, value, first, last):
"""Find the lower bound of the value in the array
lower bound: the first element in arr that is larger than or equal
to value
Args:
arr : input array
value : target value
first : starting point of the search, inclusi... | 30.026316 | 76 | 0.530237 | 290 | 2,282 | 4.155172 | 0.275862 | 0.06722 | 0.033195 | 0.053112 | 0.674689 | 0.614108 | 0.572614 | 0.482988 | 0.426556 | 0.426556 | 0 | 0.008227 | 0.41411 | 2,282 | 75 | 77 | 30.426667 | 0.893044 | 0.72305 | 0 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4a4f84b2d0c728aa3346168838ca7a5ae17eb0fa | 705 | py | Python | orchestra/migrations/0037_add_fields_to_iteration.py | code-review-doctor/orchestra | 1ba58d26c508e89d2050dc9b0c8439eb1eadd014 | [
"Apache-2.0"
] | 444 | 2016-07-25T05:24:30.000Z | 2022-02-21T08:12:29.000Z | orchestra/migrations/0037_add_fields_to_iteration.py | code-review-doctor/orchestra | 1ba58d26c508e89d2050dc9b0c8439eb1eadd014 | [
"Apache-2.0"
] | 395 | 2016-07-26T20:49:59.000Z | 2022-03-15T20:58:45.000Z | orchestra/migrations/0037_add_fields_to_iteration.py | code-review-doctor/orchestra | 1ba58d26c508e89d2050dc9b0c8439eb1eadd014 | [
"Apache-2.0"
] | 63 | 2016-07-26T04:10:21.000Z | 2022-03-29T03:32:19.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-04-14 21:18
from __future__ import unicode_literals
import django.utils.timezone
from django.db import migrations
from django.db import models
class Migration(migrations.Migration):
dependencies = [
('orchestra', '0036_remove_taskassignment_sna... | 25.178571 | 74 | 0.634043 | 74 | 705 | 5.878378 | 0.648649 | 0.050575 | 0.087356 | 0.082759 | 0.183908 | 0.183908 | 0 | 0 | 0 | 0 | 0 | 0.038241 | 0.258156 | 705 | 27 | 75 | 26.111111 | 0.793499 | 0.095035 | 0 | 0.3 | 1 | 0 | 0.130709 | 0.056693 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.35 | 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 |
4a5b884b56e93065de347798bd26815c7f0c67e1 | 2,269 | py | Python | data_regex.py | deepakramanath/Tutorials | 3a194f31b4384d6fdb99bb68727e95160a4a94f7 | [
"CNRI-Python",
"RSA-MD"
] | 2 | 2015-10-29T12:10:39.000Z | 2015-11-07T02:47:03.000Z | data_regex.py | deepakramanath/Tutorials | 3a194f31b4384d6fdb99bb68727e95160a4a94f7 | [
"CNRI-Python",
"RSA-MD"
] | null | null | null | data_regex.py | deepakramanath/Tutorials | 3a194f31b4384d6fdb99bb68727e95160a4a94f7 | [
"CNRI-Python",
"RSA-MD"
] | 2 | 2015-07-20T13:19:54.000Z | 2018-11-13T14:52:54.000Z | #!/usr/bin/python
# Deepak Ramanath
# Python Program to extract the temperature values from the data file using regex
import sys
import re
import os
import matplotlib.pyplot as plt
# Pattern compiling
headerPattern = re.compile(r'(?P<pCode>[A-Za-z]+[ ]?[a-z]+),(?P<sNumber>(\w+[ ]?)+),(?P<ymd>(\w+,?){,3}),(?P<maxT>(\... | 28.012346 | 130 | 0.687968 | 326 | 2,269 | 4.788344 | 0.349693 | 0.028828 | 0.032031 | 0.02114 | 0.198591 | 0.162716 | 0.162716 | 0.162716 | 0.057655 | 0.057655 | 0 | 0.013299 | 0.138387 | 2,269 | 80 | 131 | 28.3625 | 0.785166 | 0.129132 | 0 | 0.142857 | 0 | 0.035714 | 0.245168 | 0.074262 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.107143 | 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 |
4a5c2902166f59d8276d76f24e1d4c9f91b8acc3 | 1,924 | py | Python | examples/robots/remote.py | delmic/Pyro4 | 74e9c18e83a2002d9254c5e867866201121082d3 | [
"MIT"
] | 6 | 2015-04-09T07:19:23.000Z | 2018-01-15T08:00:15.000Z | examples/robots/remote.py | delmic/Pyro4 | 74e9c18e83a2002d9254c5e867866201121082d3 | [
"MIT"
] | 1 | 2018-04-18T06:13:22.000Z | 2018-04-18T06:13:22.000Z | examples/robots/remote.py | delmic/Pyro4 | 74e9c18e83a2002d9254c5e867866201121082d3 | [
"MIT"
] | 5 | 2016-04-22T08:17:53.000Z | 2019-01-14T12:11:46.000Z | from __future__ import print_function
import random
import Pyro4
class GameServer(object):
def __init__(self, engine):
self.engine=engine
def register(self, name, observer):
robot=self.engine.signup_robot(name, observer)
self._pyroDaemon.register(robot) # make the robot a py... | 32.066667 | 75 | 0.582121 | 235 | 1,924 | 4.655319 | 0.32766 | 0.082267 | 0.035649 | 0.046618 | 0.074954 | 0.074954 | 0.074954 | 0 | 0 | 0 | 0 | 0.008142 | 0.297817 | 1,924 | 59 | 76 | 32.610169 | 0.801628 | 0.04262 | 0 | 0.259259 | 0 | 0 | 0.056773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.296296 | false | 0.018519 | 0.055556 | 0.018519 | 0.462963 | 0.148148 | 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 |
4a5e7548d5f71fd1e287eeaad08846058d163d6c | 419 | py | Python | api/tacticalrmm/autotasks/migrations/0009_automatedtask_run_time_bit_weekdays.py | infinite8co/tacticalrmm | bd7ce5417ec672552ec3cba325318795ccde972e | [
"MIT"
] | 903 | 2019-10-22T22:56:42.000Z | 2022-03-18T14:15:54.000Z | api/tacticalrmm/autotasks/migrations/0009_automatedtask_run_time_bit_weekdays.py | infinite8co/tacticalrmm | bd7ce5417ec672552ec3cba325318795ccde972e | [
"MIT"
] | 720 | 2019-12-07T08:11:26.000Z | 2022-03-17T21:47:04.000Z | api/tacticalrmm/autotasks/migrations/0009_automatedtask_run_time_bit_weekdays.py | infinite8co/tacticalrmm | bd7ce5417ec672552ec3cba325318795ccde972e | [
"MIT"
] | 231 | 2020-02-11T14:14:21.000Z | 2022-03-16T21:23:10.000Z | # Generated by Django 3.1.3 on 2020-11-29 09:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("autotasks", "0008_auto_20201030_1515"),
]
operations = [
migrations.AddField(
model_name="automatedtask",
name="run_... | 22.052632 | 61 | 0.622912 | 46 | 419 | 5.521739 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100977 | 0.267303 | 419 | 18 | 62 | 23.277778 | 0.726384 | 0.107399 | 0 | 0 | 1 | 0 | 0.177419 | 0.11828 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a60f93f64be10d493288f800fc8fb3801b3afa7 | 1,305 | py | Python | tools/third_party/websockets/src/websockets/typing.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | tools/third_party/websockets/src/websockets/typing.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 7,642 | 2018-05-28T09:38:03.000Z | 2022-03-31T20:55:48.000Z | tools/third_party/websockets/src/websockets/typing.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | from typing import List, NewType, Optional, Tuple, Union
__all__ = ["Data", "Origin", "ExtensionHeader", "ExtensionParameter", "Subprotocol"]
Data = Union[str, bytes]
Data__doc__ = """
Types supported in a WebSocket message:
- :class:`str` for text messages
- :class:`bytes` for binary messages
"""
# Remove try / ... | 26.1 | 84 | 0.738697 | 148 | 1,305 | 6.162162 | 0.385135 | 0.023026 | 0.042763 | 0.0625 | 0.210526 | 0.164474 | 0.164474 | 0.164474 | 0.164474 | 0 | 0 | 0.001807 | 0.151724 | 1,305 | 49 | 85 | 26.632653 | 0.822042 | 0.11341 | 0 | 0.3 | 0 | 0 | 0.329852 | 0.040035 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.033333 | 0 | 0.033333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4a618447c32d2e92bb3e3cb6937594de1756024f | 909 | py | Python | tests/test_interface.py | Yuxiang1990/rising | 7f2ac960b9f9e96e7e3d2de0e67550cbd8d1e57b | [
"MIT"
] | 276 | 2019-12-26T12:00:28.000Z | 2022-03-23T12:25:41.000Z | tests/test_interface.py | Luoxd1996/rising | a443b754df8defed193bdcc36398ee20846267f6 | [
"MIT"
] | 106 | 2019-12-13T19:19:09.000Z | 2022-01-02T00:55:11.000Z | tests/test_interface.py | Luoxd1996/rising | a443b754df8defed193bdcc36398ee20846267f6 | [
"MIT"
] | 21 | 2020-05-14T17:30:41.000Z | 2022-03-14T09:29:00.000Z | import unittest
from rising import AbstractMixin
class Abstract(object):
def __init__(self, **kwargs):
super().__init__()
self.abstract = True
class AbstractForward(object):
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.abstract = True
class PreMix(Abstract... | 21.642857 | 46 | 0.643564 | 101 | 909 | 5.356436 | 0.316832 | 0.073937 | 0.081331 | 0.062847 | 0.391867 | 0.391867 | 0.284658 | 0.166359 | 0.166359 | 0.166359 | 0 | 0 | 0.222222 | 909 | 41 | 47 | 22.170732 | 0.765205 | 0 | 0 | 0.37037 | 0 | 0 | 0.009901 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 1 | 0.222222 | false | 0 | 0.074074 | 0 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a68e01834156d15f2a25ac1e8f17b520956badf | 1,887 | py | Python | code/date2sec.py | Rockysed/PSC_classification | 1815b673ac9374d9d2abd08ba0f1f43597316dee | [
"MIT"
] | null | null | null | code/date2sec.py | Rockysed/PSC_classification | 1815b673ac9374d9d2abd08ba0f1f43597316dee | [
"MIT"
] | null | null | null | code/date2sec.py | Rockysed/PSC_classification | 1815b673ac9374d9d2abd08ba0f1f43597316dee | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 4 23:24:41 2019
@author: rocco
"""
#function to convert datetime to seconds
def datetime2seconds(date_time):
return time.mktime(date_time.timetuple())
#function to convert datetime to seconds
def dateinterv2date(interval):
return interval.left.to_pyd... | 36.288462 | 117 | 0.658188 | 301 | 1,887 | 3.936877 | 0.408638 | 0.050633 | 0.017722 | 0.042194 | 0.192405 | 0.156962 | 0.156962 | 0.094515 | 0.094515 | 0.094515 | 0 | 0.134357 | 0.171701 | 1,887 | 51 | 118 | 37 | 0.6238 | 0.156863 | 0 | 0 | 0 | 0 | 0.028327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0 | 0.115385 | 0.230769 | 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 | 1 | 0 | 0 | 0 | 1 |
4a6a9decf62ce80d94893bae1315e2a44fad18f9 | 332 | py | Python | setup.py | velosol/pyecoplug | 5fe56c1ba155f17fd45531bdf45f6a9c8dfa982c | [
"MIT"
] | 6 | 2016-07-17T16:05:31.000Z | 2021-05-23T10:53:54.000Z | setup.py | velosol/pyecoplug | 5fe56c1ba155f17fd45531bdf45f6a9c8dfa982c | [
"MIT"
] | 7 | 2017-03-28T22:45:32.000Z | 2022-02-22T14:26:34.000Z | setup.py | velosol/pyecoplug | 5fe56c1ba155f17fd45531bdf45f6a9c8dfa982c | [
"MIT"
] | 9 | 2017-01-11T02:07:00.000Z | 2022-01-05T18:08:59.000Z | from setuptools import setup
setup(name='pyecoplug',
version='0.0.6',
description='Interface for the EcoPlug outlet',
url='http://github.com/philburr/pyecoplug',
author='phil.burr@gmail.com',
license='MIT',
packages=['pyecoplug'],
install_requires=[],
zip... | 27.666667 | 55 | 0.608434 | 37 | 332 | 5.405405 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012 | 0.246988 | 332 | 11 | 56 | 30.181818 | 0.788 | 0 | 0 | 0 | 0 | 0 | 0.340361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a6e4189e45020aacec7eca0fc11c3d348895989 | 65,222 | py | Python | lib/python/ray/worker.py | jssmith/ray-legacy | 0a4414590677ff518188f035f8dba36927c5d9c5 | [
"BSD-3-Clause"
] | 12 | 2016-06-16T07:34:25.000Z | 2016-09-12T17:25:05.000Z | lib/python/ray/worker.py | jssmith/ray-legacy | 0a4414590677ff518188f035f8dba36927c5d9c5 | [
"BSD-3-Clause"
] | 121 | 2016-06-11T19:45:36.000Z | 2016-09-17T00:30:13.000Z | lib/python/ray/worker.py | jssmith/ray-legacy | 0a4414590677ff518188f035f8dba36927c5d9c5 | [
"BSD-3-Clause"
] | 13 | 2016-11-29T22:15:02.000Z | 2022-02-06T02:36:34.000Z | import os
import sys
import time
import traceback
import copy
import logging
import funcsigs
import numpy as np
import colorama
import atexit
import threading
import string
import weakref
# Ray modules
import config
import pickling
import serialization
import internal.graph_pb2
import graph
import services
import libn... | 46.956084 | 336 | 0.736699 | 9,416 | 65,222 | 4.964741 | 0.095263 | 0.007594 | 0.008856 | 0.005562 | 0.305724 | 0.223304 | 0.17205 | 0.132476 | 0.101288 | 0.088175 | 0 | 0.001694 | 0.194597 | 65,222 | 1,388 | 337 | 46.989914 | 0.888235 | 0.136488 | 0 | 0.173765 | 0 | 0.008518 | 0.137493 | 0.017662 | 0 | 0 | 0 | 0.001441 | 0.013629 | 0 | null | null | 0.010221 | 0.056218 | null | null | 0.022147 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.