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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8f517c6b99771bb4e444d4efa0fce4cfc9efaa11 | 182 | py | Python | fsutil/test/write_with_config.py | wenbobuaa/pykit | 43e38fe40297a1e7a9329bcf3db3554c7ca48ead | [
"MIT"
] | 13 | 2016-12-16T09:23:09.000Z | 2018-03-10T08:04:00.000Z | fsutil/test/write_with_config.py | wenbobuaa/pykit | 43e38fe40297a1e7a9329bcf3db3554c7ca48ead | [
"MIT"
] | 74 | 2017-03-23T11:36:22.000Z | 2018-04-02T06:19:09.000Z | fsutil/test/write_with_config.py | drmingdrmer/pykit | e25a71146e81aaf79625cf8d4f4c439ccd515b82 | [
"MIT"
] | 5 | 2016-12-27T07:30:47.000Z | 2018-03-10T07:06:21.000Z | import os
import sys
from pykit import fsutil
fn = sys.argv[1]
fsutil.write_file(fn, 'boo')
stat = os.stat(fn)
os.write(1, '{uid},{gid}'.format(uid=stat.st_uid, gid=stat.st_gid))
| 16.545455 | 67 | 0.697802 | 35 | 182 | 3.542857 | 0.485714 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0.120879 | 182 | 10 | 68 | 18.2 | 0.7625 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8f51c6c79ec1928a85b73b62e3485bd70541e22d | 11,409 | py | Python | config/__init__.py | haoyu-x/robot-learning | 70da64466fd02dc4cfc97ad9e123c893fc17acd3 | [
"MIT"
] | 1 | 2020-07-22T08:06:38.000Z | 2020-07-22T08:06:38.000Z | config/__init__.py | haoyu-x/robot-learning | 70da64466fd02dc4cfc97ad9e123c893fc17acd3 | [
"MIT"
] | null | null | null | config/__init__.py | haoyu-x/robot-learning | 70da64466fd02dc4cfc97ad9e123c893fc17acd3 | [
"MIT"
] | null | null | null | """ Define parameters for algorithms. """
import argparse
def str2bool(v):
return v.lower() == "true"
def str2intlist(value):
if not value:
return value
else:
return [int(num) for num in value.split(",")]
def str2list(value):
if not value:
return value
else:
re... | 32.878963 | 100 | 0.682005 | 1,490 | 11,409 | 4.979195 | 0.158389 | 0.118884 | 0.197062 | 0.034371 | 0.5463 | 0.409894 | 0.334816 | 0.231837 | 0.155007 | 0.11174 | 0 | 0.026717 | 0.183101 | 11,409 | 346 | 101 | 32.973988 | 0.769313 | 0.031291 | 0 | 0.280632 | 0 | 0 | 0.186824 | 0.03871 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071146 | false | 0.007905 | 0.003953 | 0.003953 | 0.106719 | 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 |
8f53039b47110fc2ca2871a519c93843b2044a09 | 1,093 | py | Python | python/test/test_feature_extraction.py | spongezhang/vlb | 52a6b2ab8608496182ac2a33c961344db4a84333 | [
"BSD-2-Clause"
] | 11 | 2017-09-08T16:32:46.000Z | 2022-02-02T15:28:22.000Z | python/test/test_feature_extraction.py | albutko/vlb | 437245c0991948eeb36a277937a7e67d389041e4 | [
"BSD-2-Clause"
] | 9 | 2017-09-13T20:22:51.000Z | 2019-03-13T02:38:25.000Z | python/test/test_feature_extraction.py | albutko/vlb | 437245c0991948eeb36a277937a7e67d389041e4 | [
"BSD-2-Clause"
] | 3 | 2017-09-08T21:07:14.000Z | 2021-02-17T17:42:43.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
# ===========================================================
# File Name: test_feature_extraction.py
# Author: Xu Zhang, Columbia University
# Creation Date: 01-25-2019
# Last Modified: Sat Feb 9 11:13:09 2019
#
# Usage: python test_feature_extraction.py
# Description: ... | 28.763158 | 77 | 0.644099 | 140 | 1,093 | 4.842857 | 0.564286 | 0.048673 | 0.09292 | 0.067847 | 0.162242 | 0.162242 | 0.162242 | 0.162242 | 0.162242 | 0.162242 | 0 | 0.028754 | 0.140897 | 1,093 | 37 | 78 | 29.540541 | 0.693291 | 0.505032 | 0 | 0 | 0 | 0 | 0.24283 | 0.217973 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8f57e7e66cc68f2d543d9dda5fa522bfb006d595 | 1,147 | py | Python | test/config_test.py | jamesbeyond/mbed-fastmodel-agent-1 | d5365e7c001c5a82a9df06cc912890647cd454c8 | [
"Apache-2.0"
] | null | null | null | test/config_test.py | jamesbeyond/mbed-fastmodel-agent-1 | d5365e7c001c5a82a9df06cc912890647cd454c8 | [
"Apache-2.0"
] | 2 | 2018-05-15T18:27:51.000Z | 2018-05-16T14:49:02.000Z | test/config_test.py | jamesbeyond/mbed-fastmodel-agent | d5365e7c001c5a82a9df06cc912890647cd454c8 | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from fm_agent.fm_config import FastmodelConfig
from fm_agent.utils import SimulatorError
class TestFastmodelConfig(TestCase):
def test_Setting_File(self):
self.assertTrue(FastmodelConfig.SETTINGS_FILE,"settings.json")
def test_parse_params_file_failed(self):
c=Fas... | 31.861111 | 70 | 0.651264 | 132 | 1,147 | 5.393939 | 0.393939 | 0.058989 | 0.140449 | 0.101124 | 0.311798 | 0.25 | 0.25 | 0.25 | 0 | 0 | 0 | 0.002378 | 0.266783 | 1,147 | 36 | 71 | 31.861111 | 0.844233 | 0 | 0 | 0.310345 | 0 | 0 | 0.108014 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 1 | 0.206897 | false | 0.034483 | 0.103448 | 0 | 0.344828 | 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 |
8f6148f0e7edfa1de67b056f95cb3ab22ec75007 | 603 | py | Python | plugins/helpers/table_dictionaries.py | rmmoreira/udacity-dend-capstone | 600bf61bc59e686a4d3b0b6f371681c084759663 | [
"MIT"
] | 1 | 2021-02-12T19:10:03.000Z | 2021-02-12T19:10:03.000Z | plugins/helpers/table_dictionaries.py | rmmoreira/udacity-dend-capstone | 600bf61bc59e686a4d3b0b6f371681c084759663 | [
"MIT"
] | 314 | 2020-05-27T02:59:59.000Z | 2021-08-03T02:43:42.000Z | plugins/helpers/table_dictionaries.py | rmmoreira/udacity-dend-capstone | 600bf61bc59e686a4d3b0b6f371681c084759663 | [
"MIT"
] | 3 | 2020-05-31T13:08:33.000Z | 2021-07-06T23:00:36.000Z | """ Dictionary file for tables """
staging_tables = {
'immigration': 'immigration_table',
'temperature': 'temperature_table',
'airport': 'airport_table',
'demographics': 'demographics_table'
}
fact_dimension_tables = {
'city_data': 'fact_city_data_table',
'demographic': 'dim_demographic_table'... | 26.217391 | 50 | 0.706468 | 63 | 603 | 6.253968 | 0.285714 | 0.111675 | 0.091371 | 0.081218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154229 | 603 | 22 | 51 | 27.409091 | 0.772549 | 0.043118 | 0 | 0 | 0 | 0 | 0.609842 | 0.209139 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f6453adc25e9975ad5675eb3bb64628e7ee6982 | 2,302 | py | Python | players.py | aroxby-kinnek/machine-learning | 2331bc422db61f6fb658c6777bfd3e4232797468 | [
"MIT"
] | null | null | null | players.py | aroxby-kinnek/machine-learning | 2331bc422db61f6fb658c6777bfd3e4232797468 | [
"MIT"
] | null | null | null | players.py | aroxby-kinnek/machine-learning | 2331bc422db61f6fb658c6777bfd3e4232797468 | [
"MIT"
] | null | null | null | """
Players!
"""
import random
from readchar import readchar
class Player(object):
"""
Base player object
"""
def next_move(self, game):
"""
Retrieve the next move for this player in this game
"""
raise NotImplementedError
class HumanPlayer(Player):
"""
Human ... | 24.752688 | 69 | 0.591225 | 260 | 2,302 | 5.038462 | 0.3 | 0.030534 | 0.057252 | 0.091603 | 0.309924 | 0.251908 | 0.251908 | 0.251908 | 0.177099 | 0.177099 | 0 | 0.001263 | 0.312337 | 2,302 | 92 | 70 | 25.021739 | 0.826279 | 0.112511 | 0 | 0.34 | 0 | 0 | 0.003153 | 0 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.18 | false | 0 | 0.04 | 0.02 | 0.48 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f691e13f1832cf41207845f7767e151f6074525 | 1,576 | py | Python | ticket.py | qhgongzi/xilinTicketV2 | ec0b0b945ecc7e0af9cab2937e02f781e703f804 | [
"BSD-3-Clause"
] | 5 | 2015-02-24T12:01:46.000Z | 2019-08-22T03:51:02.000Z | ticket.py | a100q100/xilinTicketV2 | ec0b0b945ecc7e0af9cab2937e02f781e703f804 | [
"BSD-3-Clause"
] | null | null | null | ticket.py | a100q100/xilinTicketV2 | ec0b0b945ecc7e0af9cab2937e02f781e703f804 | [
"BSD-3-Clause"
] | 2 | 2015-01-07T06:56:52.000Z | 2018-09-15T03:39:29.000Z | __author__ = 'Administrator'
import requests
import xlstr
import time
class Ticket:
#车票信息
train_no = ''
station_train_code = '' #车次编号,例如K540
from_station_telecode = ''
from_station_name = ''
to_station_telecode = ''
to_station_name = ''
yp_info = '' #未知信息
location_code = ''
s... | 35.818182 | 91 | 0.67132 | 198 | 1,576 | 4.949495 | 0.308081 | 0.10102 | 0.220408 | 0.04898 | 0.191837 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014008 | 0.184645 | 1,576 | 44 | 92 | 35.818182 | 0.748638 | 0.024112 | 0 | 0 | 0 | 0 | 0.228814 | 0.01369 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.088235 | 0 | 0.529412 | 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 |
8f6b983bf88b68df8f1793b74fdae9063e257e4a | 697 | py | Python | tests/unit/config/api/test_settings.py | antonku/ncssl_api_client | c463b000960d50368d39bde2a180499f1da3a29a | [
"MIT"
] | 8 | 2017-11-28T11:05:52.000Z | 2021-11-16T13:52:45.000Z | tests/unit/config/api/test_settings.py | antonku/ncssl_api_client | c463b000960d50368d39bde2a180499f1da3a29a | [
"MIT"
] | 4 | 2018-12-23T14:52:11.000Z | 2019-08-09T21:01:44.000Z | tests/unit/config/api/test_settings.py | antonku/ncssl_api_client | c463b000960d50368d39bde2a180499f1da3a29a | [
"MIT"
] | 2 | 2017-11-28T14:38:24.000Z | 2017-11-29T09:03:20.000Z | import mock
from unittest import TestCase
from ncssl_api_client.config.api import settings
try:
reload # Python 2.7
except NameError:
try:
from importlib import reload # Python 3.4+
except ImportError:
from imp import reload # Python 3.0 - 3.3
try:
__import__('__builtin__')
open... | 25.814815 | 63 | 0.713056 | 91 | 697 | 5.186813 | 0.428571 | 0.076271 | 0.033898 | 0.059322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019713 | 0.199426 | 697 | 26 | 64 | 26.807692 | 0.826165 | 0.087518 | 0 | 0.238095 | 0 | 0 | 0.106349 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.047619 | false | 0 | 0.380952 | 0 | 0.47619 | 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 |
8f7a8c15b9cec2658cae3a4c06a5684a04b62b7e | 1,377 | py | Python | catalyst/utils/scripts.py | 162/catalyst | b4ba36be52c51160e0fabecdcb084a8d5cd96cb7 | [
"MIT"
] | null | null | null | catalyst/utils/scripts.py | 162/catalyst | b4ba36be52c51160e0fabecdcb084a8d5cd96cb7 | [
"MIT"
] | null | null | null | catalyst/utils/scripts.py | 162/catalyst | b4ba36be52c51160e0fabecdcb084a8d5cd96cb7 | [
"MIT"
] | null | null | null | import os
import sys
import shutil
import pathlib
from importlib.util import spec_from_file_location, module_from_spec
def import_module(expdir: pathlib.Path):
# @TODO: better PYTHONPATH handling
if not isinstance(expdir, pathlib.Path):
expdir = pathlib.Path(expdir)
sys.path.insert(0, str(expdir.a... | 29.297872 | 69 | 0.702251 | 201 | 1,377 | 4.487562 | 0.328358 | 0.053215 | 0.056541 | 0.044346 | 0.055432 | 0.055432 | 0.055432 | 0 | 0 | 0 | 0 | 0.002632 | 0.172113 | 1,377 | 46 | 70 | 29.934783 | 0.788596 | 0.036311 | 0 | 0 | 0 | 0 | 0.037764 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 1 | 0.088235 | false | 0 | 0.205882 | 0 | 0.323529 | 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 |
8f7c05bfad7e22677b96ea3bdfbaafcfffee9e43 | 7,113 | py | Python | client_script.py | Cr0wTom/Block-SSL-Smart-Contract | 6f18e580efb99004db886ab3f93cbdaa736c1dc1 | [
"MIT"
] | 1 | 2018-02-10T04:26:56.000Z | 2018-02-10T04:26:56.000Z | client_script.py | Cr0wTom/Block-SSL-Smart-Contract | 6f18e580efb99004db886ab3f93cbdaa736c1dc1 | [
"MIT"
] | null | null | null | client_script.py | Cr0wTom/Block-SSL-Smart-Contract | 6f18e580efb99004db886ab3f93cbdaa736c1dc1 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
import string
import hashlib
import os
import random
import struct
import getpass
import datetime
import json
import requests #pip install requests
import traceback
import subprocess
from datetime import timedelta
from Crypto.Cipher import AES
from pybitcoin import BitcoinPrivateKey
from O... | 40.414773 | 246 | 0.599044 | 884 | 7,113 | 4.64819 | 0.358597 | 0.035045 | 0.033098 | 0.017523 | 0.203456 | 0.193234 | 0.179119 | 0.179119 | 0.179119 | 0.160623 | 0 | 0.01249 | 0.268382 | 7,113 | 175 | 247 | 40.645714 | 0.777095 | 0.094475 | 0 | 0.184932 | 0 | 0.027397 | 0.384543 | 0.040667 | 0 | 0 | 0 | 0.005714 | 0 | 0 | null | null | 0.006849 | 0.116438 | null | null | 0.143836 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8f7c29f33d595b19e3a01134b1644fda3cca6854 | 2,540 | py | Python | 9-dars-uyishi.py | thejorabek/python | 62ac888dedd6fcb485f2f3a074a127b2b0c45d31 | [
"Apache-2.0"
] | 1 | 2022-03-24T06:04:54.000Z | 2022-03-24T06:04:54.000Z | 9-dars-uyishi.py | thejorabek/python | 62ac888dedd6fcb485f2f3a074a127b2b0c45d31 | [
"Apache-2.0"
] | null | null | null | 9-dars-uyishi.py | thejorabek/python | 62ac888dedd6fcb485f2f3a074a127b2b0c45d31 | [
"Apache-2.0"
] | null | null | null | #%% 1
class Hayvon():
def __init__(self,nomi):
self.name=nomi
class Yirtqich(Hayvon):
def ovlash(self):
print(self.name,"yashash uchun ovlaydi")
def yugurish(self):
print(self.name,"o'ljaga yetib olish uchun yuguradi")
def uxlash(self):
print(self.name,"kuch yig'ish uchun... | 23.962264 | 66 | 0.526378 | 332 | 2,540 | 3.942771 | 0.262048 | 0.068755 | 0.059587 | 0.077922 | 0.382735 | 0.350649 | 0.307869 | 0.307869 | 0.307869 | 0.289534 | 0 | 0.018998 | 0.316142 | 2,540 | 106 | 67 | 23.962264 | 0.7346 | 0.003937 | 0 | 0.410526 | 0 | 0 | 0.150316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.168421 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8f7d477f4a24550e9abd56fdd3e85ae678c68a69 | 701 | py | Python | pdip/integrator/integration/types/base/integration_adapter.py | ahmetcagriakca/pdip | c4c16d5666a740154cabdc6762cd44d98b7bdde8 | [
"MIT"
] | 2 | 2021-12-09T21:07:46.000Z | 2021-12-11T22:18:01.000Z | pdip/integrator/integration/types/base/integration_adapter.py | PythonDataIntegrator/pdip | c4c16d5666a740154cabdc6762cd44d98b7bdde8 | [
"MIT"
] | null | null | null | pdip/integrator/integration/types/base/integration_adapter.py | PythonDataIntegrator/pdip | c4c16d5666a740154cabdc6762cd44d98b7bdde8 | [
"MIT"
] | 3 | 2021-11-15T00:47:00.000Z | 2021-12-17T11:35:45.000Z | from abc import ABC, abstractmethod
from ...domain.base import IntegrationBase
from ....operation.domain.operation import OperationIntegrationBase
from ....pubsub.base import ChannelQueue
class IntegrationAdapter(ABC):
@abstractmethod
def execute(
self,
operation_integration: Operatio... | 25.035714 | 80 | 0.706134 | 64 | 701 | 7.609375 | 0.421875 | 0.13963 | 0.129363 | 0.147844 | 0.168378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226819 | 701 | 27 | 81 | 25.962963 | 0.898524 | 0 | 0 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0.190476 | 0.190476 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8f7f23113485badf47ab60b91628f9b1deee8408 | 578 | py | Python | student/urls.py | ashkantaravati/TDRRS | 210b8881cd43af406e1b6155ecb08e3296135a76 | [
"Apache-2.0"
] | 2 | 2018-06-02T12:27:23.000Z | 2021-03-28T14:28:20.000Z | student/urls.py | ashkantaravati/TDRRS | 210b8881cd43af406e1b6155ecb08e3296135a76 | [
"Apache-2.0"
] | 1 | 2021-06-10T20:14:26.000Z | 2021-06-10T20:14:26.000Z | student/urls.py | ashkantaravati/TDRRS | 210b8881cd43af406e1b6155ecb08e3296135a76 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.get_dashboard, name='dashboard'),
url(r'^dashboard',views.get_dashboard,name='dashboard'),
url(r'^login',views.do_login, name='login'),
url(r'^defense-times',views.defense_times, name='defense_times'),
url(r'^logo... | 41.285714 | 88 | 0.707612 | 80 | 578 | 4.9625 | 0.3 | 0.080605 | 0.085642 | 0.105793 | 0.171285 | 0.171285 | 0.171285 | 0 | 0 | 0 | 0 | 0 | 0.108997 | 578 | 13 | 89 | 44.461538 | 0.770874 | 0 | 0 | 0 | 0 | 0 | 0.282007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.166667 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8f7f5f3e16acc11746afae55716bd774b39be41a | 4,086 | py | Python | barrel_reaktor/search/models.py | txtr/barrel-reaktor | 6d2dfb894bd449f91ede2c32e6a162664e59a971 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | barrel_reaktor/search/models.py | txtr/barrel-reaktor | 6d2dfb894bd449f91ede2c32e6a162664e59a971 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | barrel_reaktor/search/models.py | txtr/barrel-reaktor | 6d2dfb894bd449f91ede2c32e6a162664e59a971 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | from barrel import Store, Field, FloatField, EmbeddedStoreField
from barrel.rpc import RpcMixin
from barrel_reaktor.document.models import Document
from . import get_search_sources
class Stat(Store):
"""The reaktor always passes in `name` as the value to use for the search
facet. Since it's a value, let's ren... | 45.4 | 168 | 0.706559 | 477 | 4,086 | 5.9413 | 0.362683 | 0.110092 | 0.042696 | 0.050812 | 0.142908 | 0.105505 | 0.026112 | 0 | 0 | 0 | 0 | 0 | 0.195056 | 4,086 | 89 | 169 | 45.910112 | 0.86166 | 0.223935 | 0 | 0.075472 | 0 | 0 | 0.100623 | 0.011144 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.075472 | 0 | 0.528302 | 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 |
56abc62dcd5e97d54fd9ba1c22e5bc40c0d683d4 | 674 | py | Python | gitdir/testsave.py | guyKN/voiceswap | 0bb5166a6ff9bd9024d85863088b80d1cb568ebd | [
"MIT"
] | 1 | 2018-11-14T01:57:45.000Z | 2018-11-14T01:57:45.000Z | gitdir/testsave.py | guyKN/voiceswap | 0bb5166a6ff9bd9024d85863088b80d1cb568ebd | [
"MIT"
] | null | null | null | gitdir/testsave.py | guyKN/voiceswap | 0bb5166a6ff9bd9024d85863088b80d1cb568ebd | [
"MIT"
] | null | null | null | import tensorflow as tf
import os
X = tf.placeholder(tf.float32,[None,1])
W = tf.Variable(tf.zeros([1,1]))
B = tf.Variable(tf.zeros([1]))
y = tf.matmul(X,W) + B
y_ = tf.placeholder(tf.float32,[None,1])
cost = tf.reduce_mean(tf.square(y-y_))
opt = tf.train.AdagradOptimizer(1).minimize(cost)
feed = {X:[[1],[4]], ... | 21.741935 | 78 | 0.642433 | 112 | 674 | 3.767857 | 0.473214 | 0.061611 | 0.07109 | 0.104265 | 0.21327 | 0.127962 | 0 | 0 | 0 | 0 | 0 | 0.03351 | 0.158754 | 674 | 30 | 79 | 22.466667 | 0.710758 | 0.020772 | 0 | 0 | 0 | 0 | 0.057663 | 0.031866 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
56adfbeec6d6189f40610762d34cfa0a2288fb13 | 724 | py | Python | laboratorios/1-recursion/E/problem.py | MatiwsxD/ayed-2019-1 | a5fdbe3a055405150122cf3875cdb0c6afd9eff0 | [
"MIT"
] | null | null | null | laboratorios/1-recursion/E/problem.py | MatiwsxD/ayed-2019-1 | a5fdbe3a055405150122cf3875cdb0c6afd9eff0 | [
"MIT"
] | null | null | null | laboratorios/1-recursion/E/problem.py | MatiwsxD/ayed-2019-1 | a5fdbe3a055405150122cf3875cdb0c6afd9eff0 | [
"MIT"
] | null | null | null | import json
def supe(digit):
digit = str(digit)
if len(digit)==1:
return digit
else:
cont = 0
for i in range(len(digit)):
cont+= int(digit[i])
return supe(cont)
# TODO Complete!
def super_digit(n, k):
digit = str(str(n)*k)
return int(sup... | 24.133333 | 109 | 0.497238 | 95 | 724 | 3.684211 | 0.421053 | 0.028571 | 0.062857 | 0.068571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004255 | 0.350829 | 724 | 29 | 110 | 24.965517 | 0.740426 | 0.019337 | 0 | 0 | 0 | 0.043478 | 0.137006 | 0 | 0 | 0 | 0 | 0.034483 | 0.043478 | 1 | 0.086957 | false | 0 | 0.043478 | 0 | 0.26087 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
56ae222f7875123abdda4d234539658766ebb0b5 | 4,024 | py | Python | mtbf_driver/MtbfTestCase.py | Mozilla-GitHub-Standards/0c166c201f85d9bdef4d4ad1ce985515176672819d41406b9977f54b7ac091dc | d9dbe82876eec121396eb3cf0ed98f57534a2eff | [
"Apache-2.0"
] | null | null | null | mtbf_driver/MtbfTestCase.py | Mozilla-GitHub-Standards/0c166c201f85d9bdef4d4ad1ce985515176672819d41406b9977f54b7ac091dc | d9dbe82876eec121396eb3cf0ed98f57534a2eff | [
"Apache-2.0"
] | null | null | null | mtbf_driver/MtbfTestCase.py | Mozilla-GitHub-Standards/0c166c201f85d9bdef4d4ad1ce985515176672819d41406b9977f54b7ac091dc | d9dbe82876eec121396eb3cf0ed98f57534a2eff | [
"Apache-2.0"
] | null | null | null | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import time
from gaiatest import GaiaTestCase
from gaiatest.apps.homescreen.app import Homescreen
from marionette_drive... | 37.259259 | 122 | 0.623012 | 489 | 4,024 | 4.969325 | 0.368098 | 0.069136 | 0.112346 | 0.085597 | 0.208642 | 0.106996 | 0.060905 | 0.037037 | 0 | 0 | 0 | 0.010003 | 0.279573 | 4,024 | 107 | 123 | 37.607477 | 0.828217 | 0.292992 | 0 | 0.102041 | 0 | 0.020408 | 0.129227 | 0.08188 | 0 | 0 | 0 | 0.009346 | 0 | 1 | 0.081633 | false | 0.061224 | 0.081633 | 0 | 0.183673 | 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 |
56b10d0bf6a43d9aebee29d681be6d7677c664f2 | 515 | py | Python | send_email.py | PoojaJain30/Daily-HackerNews-Email | 1f95f59cc31b1f5ad59fa252d08e11e02ed49297 | [
"MIT"
] | null | null | null | send_email.py | PoojaJain30/Daily-HackerNews-Email | 1f95f59cc31b1f5ad59fa252d08e11e02ed49297 | [
"MIT"
] | null | null | null | send_email.py | PoojaJain30/Daily-HackerNews-Email | 1f95f59cc31b1f5ad59fa252d08e11e02ed49297 | [
"MIT"
] | null | null | null | import smtplib
from email.message import EmailMessage
# function to send email to listed email address
def send_email(info,news):
email = EmailMessage()
email['From'] = '< Sender Name >'
email['To'] = info[1]
email['Subject'] = 'Hello '+info[0]
email.set_content(news,'html')
with smtplib.SMTP(... | 32.1875 | 63 | 0.636893 | 67 | 515 | 4.850746 | 0.537313 | 0.055385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012376 | 0.215534 | 515 | 16 | 64 | 32.1875 | 0.792079 | 0.08932 | 0 | 0 | 0 | 0 | 0.17773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.142857 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
56b90dce0079897b2e2f353f43b78f9cca6abece | 1,193 | py | Python | jumpscale/packages/threebot_deployer/models/user_solutions.py | zaibon/js-sdk | cd1d26f2c3343884c1927ceef7c1e12e3f7da905 | [
"Apache-2.0"
] | null | null | null | jumpscale/packages/threebot_deployer/models/user_solutions.py | zaibon/js-sdk | cd1d26f2c3343884c1927ceef7c1e12e3f7da905 | [
"Apache-2.0"
] | null | null | null | jumpscale/packages/threebot_deployer/models/user_solutions.py | zaibon/js-sdk | cd1d26f2c3343884c1927ceef7c1e12e3f7da905 | [
"Apache-2.0"
] | null | null | null | from jumpscale.core.base import Base, fields
from enum import Enum
import hashlib
class ThreebotState(Enum):
RUNNING = "RUNNING" # the workloads are deployed and running
DELETED = "DELETED" # workloads and backups deleted
STOPPED = "STOPPED" # expired or manually stoped (delete workloads only)
class ... | 34.085714 | 86 | 0.704107 | 145 | 1,193 | 5.662069 | 0.468966 | 0.102314 | 0.077954 | 0.060901 | 0.109622 | 0.109622 | 0.109622 | 0.109622 | 0 | 0 | 0 | 0.002094 | 0.199497 | 1,193 | 34 | 87 | 35.088235 | 0.857592 | 0.182733 | 0 | 0 | 0 | 0 | 0.021672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.111111 | 0 | 0.925926 | 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 |
56bc5071a7c5a4a4255d04d7f9ce6a0cebefbea7 | 340 | py | Python | FileSize/Non_newline_file_size.py | JennyChi/Script-helper | d48c1b6b7cfe6175d74e6f2aa8b85bbbb9068b96 | [
"Apache-2.0"
] | null | null | null | FileSize/Non_newline_file_size.py | JennyChi/Script-helper | d48c1b6b7cfe6175d74e6f2aa8b85bbbb9068b96 | [
"Apache-2.0"
] | null | null | null | FileSize/Non_newline_file_size.py | JennyChi/Script-helper | d48c1b6b7cfe6175d74e6f2aa8b85bbbb9068b96 | [
"Apache-2.0"
] | null | null | null | import sys
f = file('100MB.log', 'r')
content = f.read()
totalbytes = 0
for line in content.split("\n"):
totalbytes = len(line.rstrip("\n")) + totalbytes
'''
method 2: using count the character != \n
for counter in content:
if counter != "\n":
totalbytes = totalbytes + 1
'''
print "Non-newline b... | 17 | 52 | 0.623529 | 46 | 340 | 4.608696 | 0.673913 | 0.15566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 0.214706 | 340 | 19 | 53 | 17.894737 | 0.771536 | 0 | 0 | 0 | 0 | 0 | 0.156098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
56bfc3c75c7f7f9e4c0110d737ada9590894ffb8 | 2,219 | py | Python | libs/python_scripts/MetaPathways_MLTreeMap_hits.py | ariahahn/MetaPathways_Python.3.0 | 2c86e05e941b7c6a4cf7acb2efc15e78e116ff9a | [
"MIT"
] | null | null | null | libs/python_scripts/MetaPathways_MLTreeMap_hits.py | ariahahn/MetaPathways_Python.3.0 | 2c86e05e941b7c6a4cf7acb2efc15e78e116ff9a | [
"MIT"
] | null | null | null | libs/python_scripts/MetaPathways_MLTreeMap_hits.py | ariahahn/MetaPathways_Python.3.0 | 2c86e05e941b7c6a4cf7acb2efc15e78e116ff9a | [
"MIT"
] | 2 | 2020-09-28T21:09:02.000Z | 2021-01-06T19:42:23.000Z | #!/usr/bin/python
# File created on 27 Jan 2012.
from __future__ import division
__author__ = "Kishori M Konwar"
__copyright__ = "Copyright 2013, MetaPathways"
__credits__ = ["r"]
__version__ = "1.0"
__maintainer__ = "Kishori M Konwar"
__status__ = "Release"
try:
import os
import re
from os import make... | 26.105882 | 101 | 0.647138 | 284 | 2,219 | 4.823944 | 0.457746 | 0.058394 | 0.020438 | 0.030657 | 0.037956 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013986 | 0.226679 | 2,219 | 84 | 102 | 26.416667 | 0.784382 | 0.03425 | 0 | 0.105263 | 0 | 0.017544 | 0.230949 | 0.033661 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.140351 | null | null | 0.140351 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
56cfe10805e01cd42702d00554d5b26d35b27cca | 2,454 | py | Python | witness/test_widgets2.py | robdelacruz/boneyard | 8b8d8a509a1ded458902af459bbef17c83516d8a | [
"MIT"
] | null | null | null | witness/test_widgets2.py | robdelacruz/boneyard | 8b8d8a509a1ded458902af459bbef17c83516d8a | [
"MIT"
] | null | null | null | witness/test_widgets2.py | robdelacruz/boneyard | 8b8d8a509a1ded458902af459bbef17c83516d8a | [
"MIT"
] | null | null | null | import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, Pango, Gdk, GLib
import datetime
import ui
import conv
def icon_image(icon_name):
theme = Gtk.IconTheme.get_default()
icon = theme.load_icon(icon_name, -1, Gtk.IconLookupFlags.FORCE_SIZE)
img = Gtk.Image.new_from_pixbuf(icon)
re... | 50.081633 | 363 | 0.690302 | 481 | 2,454 | 3.43659 | 0.195426 | 0.060496 | 0.096794 | 0.145191 | 0.61706 | 0.61706 | 0.61706 | 0.61706 | 0.61706 | 0.61706 | 0 | 0.01016 | 0.237979 | 2,454 | 48 | 364 | 51.125 | 0.873797 | 0 | 0 | 0 | 0 | 0.111111 | 0.577832 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.138889 | 0 | 0.305556 | 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 |
56e3f6fb6321552ab1dfb0c7b9bfec851bd2b293 | 530 | py | Python | 100DaysOfDays/Dia01/ex04.py | giselemanuel/programming-challenges | c7f37685989190b71ed7ec773f1dc407fd961cf1 | [
"MIT"
] | null | null | null | 100DaysOfDays/Dia01/ex04.py | giselemanuel/programming-challenges | c7f37685989190b71ed7ec773f1dc407fd961cf1 | [
"MIT"
] | null | null | null | 100DaysOfDays/Dia01/ex04.py | giselemanuel/programming-challenges | c7f37685989190b71ed7ec773f1dc407fd961cf1 | [
"MIT"
] | null | null | null | """
Dissecando uma variável:
Faça um programa que leia algo pelo teclado e mostre na tela o
seu tipo primitivo e todas as informações possíveis sobre ele.
"""
print("-------- DISSECANDO UMA VARIÁVEL --------")
entrada = input("Digite algo: ")
print("O tipo primitivo deste valor é: ", type(entrada))
print("Só tem espaç... | 37.857143 | 62 | 0.70566 | 72 | 530 | 5.194444 | 0.652778 | 0.072193 | 0.112299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130189 | 530 | 14 | 63 | 37.857143 | 0.81128 | 0.283019 | 0 | 0 | 0 | 0 | 0.458445 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
56e9ecf9a4b29e28d49cee590a5dc611479f5d2f | 792 | py | Python | setup.py | ADACS-Australia/PyFHD | f4b9c254bbea699e1cf66f1400b05f8dace69f9f | [
"MIT"
] | 2 | 2022-02-21T05:55:58.000Z | 2022-03-15T02:41:00.000Z | setup.py | ADACS-Australia/PyFHD | f4b9c254bbea699e1cf66f1400b05f8dace69f9f | [
"MIT"
] | null | null | null | setup.py | ADACS-Australia/PyFHD | f4b9c254bbea699e1cf66f1400b05f8dace69f9f | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name = "PyFHD",
version = 1.0,
author = "ADACS - Astronomy Data and Computing Services",
url = "https://github.com/ADACS-Australia/PyFHD",
python_requires=">=3.7",
packages = ['PyFHD'],
description = 'Python Fast Holograhic Deconvolution: A Python package... | 37.714286 | 202 | 0.661616 | 87 | 792 | 5.942529 | 0.781609 | 0.058027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008052 | 0.215909 | 792 | 21 | 203 | 37.714286 | 0.824477 | 0 | 0 | 0 | 0 | 0.05 | 0.546028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 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 |
56f27b61b797ed00d332a8500f64f669595dfafc | 334 | py | Python | archive/nexus-api-v2/Database/Utilities/Discord/Enumerations/Channel.py | cloud-hybrid/delta | 402b00ed5aaa32ccef628361e9635879b7ace44f | [
"BSD-3-Clause"
] | null | null | null | archive/nexus-api-v2/Database/Utilities/Discord/Enumerations/Channel.py | cloud-hybrid/delta | 402b00ed5aaa32ccef628361e9635879b7ace44f | [
"BSD-3-Clause"
] | null | null | null | archive/nexus-api-v2/Database/Utilities/Discord/Enumerations/Channel.py | cloud-hybrid/delta | 402b00ed5aaa32ccef628361e9635879b7ace44f | [
"BSD-3-Clause"
] | 1 | 2022-01-03T05:33:15.000Z | 2022-01-03T05:33:15.000Z | """
...
"""
from . import *
class Type(Integer, Enumeration):
"""
...
"""
TEXT = 0x0
PRIVATE = 0x1
VOICE = 0x2
GROUP = 0x3
CATEGORTY = 0x4
NEWS = 0x5
STORE = 0x6
def __str__(self):
""" String Representation of Enumeration """
return self.name
__all__ = [... | 11.928571 | 52 | 0.505988 | 32 | 334 | 5.03125 | 0.90625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065116 | 0.356287 | 334 | 27 | 53 | 12.37037 | 0.683721 | 0.134731 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 0 | 0 | 0.080769 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.785714 | 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 |
56f5f0874fc381cb34241d710dcd68a283512595 | 1,786 | py | Python | LSTM.py | niyazed/violence-video-classification | 54055a5672a88c5140aadf1eeb32ff98417eec61 | [
"MIT"
] | 9 | 2020-04-15T12:55:09.000Z | 2022-03-04T03:25:16.000Z | LSTM.py | niyazed/violence-video-classification | 54055a5672a88c5140aadf1eeb32ff98417eec61 | [
"MIT"
] | null | null | null | LSTM.py | niyazed/violence-video-classification | 54055a5672a88c5140aadf1eeb32ff98417eec61 | [
"MIT"
] | 6 | 2019-12-21T16:13:35.000Z | 2021-06-30T10:10:30.000Z | import numpy as np
import os
import cv2
import keras
import sklearn
import pandas
from time import time
from sklearn.model_selection import train_test_split
from keras.models import Sequential
from keras.utils import to_categorical
from keras.models import load_model
from keras.layers import *
from keras im... | 29.278689 | 128 | 0.740202 | 276 | 1,786 | 4.644928 | 0.384058 | 0.063183 | 0.035101 | 0.032761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025374 | 0.139418 | 1,786 | 60 | 129 | 29.766667 | 0.808718 | 0.1271 | 0 | 0 | 0 | 0 | 0.039624 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.487805 | 0 | 0.487805 | 0.121951 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
56f7d44a83a95ca959c643a09d950ab02a270c0e | 7,712 | py | Python | notebooks/utils.py | yangarbiter/wilds | 8261615d2c7d52f83f40396acbbb2e56f4ca4c3f | [
"MIT"
] | null | null | null | notebooks/utils.py | yangarbiter/wilds | 8261615d2c7d52f83f40396acbbb2e56f4ca4c3f | [
"MIT"
] | null | null | null | notebooks/utils.py | yangarbiter/wilds | 8261615d2c7d52f83f40396acbbb2e56f4ca4c3f | [
"MIT"
] | null | null | null | import sys
sys.path.append("../")
sys.path.append("../examples/")
import argparse
from configs import supported
from configs.utils import populate_defaults
import wilds
# Taken from https://sumit-ghosh.com/articles/parsing-dictionary-key-value-pairs-kwargs-argparse-python/
class ParseKwargs(argparse.Action):
def... | 55.482014 | 255 | 0.694761 | 974 | 7,712 | 5.308008 | 0.273101 | 0.114894 | 0.217021 | 0.055706 | 0.365377 | 0.295164 | 0.256673 | 0.228046 | 0.166731 | 0.135783 | 0 | 0.005225 | 0.15625 | 7,712 | 139 | 256 | 55.482014 | 0.789304 | 0.029694 | 0 | 0.018519 | 0 | 0.037037 | 0.291031 | 0.034137 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.027778 | 0.046296 | 0 | 0.111111 | 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 |
56fbd0086eb7f693e2f38ac0b13b2345b1eedc26 | 862 | py | Python | django_project/polls/models.py | Jeffhabs/cs2450 | d003bb2817db071a5384e9939ea02fc9c7df5436 | [
"MIT"
] | null | null | null | django_project/polls/models.py | Jeffhabs/cs2450 | d003bb2817db071a5384e9939ea02fc9c7df5436 | [
"MIT"
] | null | null | null | django_project/polls/models.py | Jeffhabs/cs2450 | d003bb2817db071a5384e9939ea02fc9c7df5436 | [
"MIT"
] | null | null | null | import uuid
from django.db import models
from django.contrib.auth.models import User
class Question(models.Model):
user = models.ForeignKey(User)
question_text = models.CharField(max_length=128)
pub_date = models.DateTimeField(auto_now_add=True)
private = models.BooleanField(default=False)
active ... | 30.785714 | 69 | 0.725058 | 106 | 862 | 5.716981 | 0.424528 | 0.059406 | 0.062706 | 0.072607 | 0.240924 | 0.240924 | 0.138614 | 0.138614 | 0 | 0 | 0 | 0.011189 | 0.170534 | 862 | 27 | 70 | 31.925926 | 0.836364 | 0 | 0 | 0.095238 | 0 | 0 | 0.00348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.952381 | 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 |
56fe18f55d8036242a207b3710df0e7e25a80031 | 4,123 | py | Python | pictures/models.py | Waithera-m/collage_life | e0607c2e63cdb7e52ea5308a68cd1466a8897f0d | [
"Unlicense"
] | null | null | null | pictures/models.py | Waithera-m/collage_life | e0607c2e63cdb7e52ea5308a68cd1466a8897f0d | [
"Unlicense"
] | 5 | 2021-06-04T23:14:38.000Z | 2021-09-22T19:04:16.000Z | pictures/models.py | Waithera-m/collage_life | e0607c2e63cdb7e52ea5308a68cd1466a8897f0d | [
"Unlicense"
] | null | null | null | from django.db import models
# Create your models here.
class Location(models.Model):
"""
class facilitates the creation of location objects
"""
location_name = models.CharField(max_length=70)
def __str__(self):
return self.location_name
def save_location(self):
"""
me... | 28.047619 | 83 | 0.603202 | 443 | 4,123 | 5.417607 | 0.214447 | 0.07 | 0.03 | 0.04 | 0.5175 | 0.4825 | 0.427917 | 0.377917 | 0.377917 | 0.358333 | 0 | 0.003839 | 0.305118 | 4,123 | 147 | 84 | 28.047619 | 0.833857 | 0.151589 | 0 | 0.558442 | 0 | 0 | 0.009195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207792 | false | 0.038961 | 0.012987 | 0.038961 | 0.467532 | 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 |
710163f3119d00ac23fd6c83cd19760cbab0de0e | 1,429 | py | Python | client_linux/helpers/aesthetics.py | carlosgprado/BrundleFuzz | 0850879e55f87b9db1c6b1df6dba1cb930c47a63 | [
"MIT"
] | 90 | 2016-09-12T10:02:38.000Z | 2022-01-04T08:08:26.000Z | client_linux/helpers/aesthetics.py | carlosgprado/BrundleFuzz | 0850879e55f87b9db1c6b1df6dba1cb930c47a63 | [
"MIT"
] | null | null | null | client_linux/helpers/aesthetics.py | carlosgprado/BrundleFuzz | 0850879e55f87b9db1c6b1df6dba1cb930c47a63 | [
"MIT"
] | 38 | 2016-09-11T03:33:44.000Z | 2020-02-18T11:00:08.000Z | ##################################################################
# Aesthetics.py
# It is not only pretty but legible too
##################################################################
try:
import colorama
from colorama import Fore, Back, Style
COLORAMA = True
except ImportError:
print "[!] COLOR... | 21.651515 | 66 | 0.438069 | 151 | 1,429 | 4.07947 | 0.390728 | 0.025974 | 0.048701 | 0.12987 | 0.314935 | 0.25 | 0.12013 | 0.084416 | 0 | 0 | 0 | 0 | 0.376487 | 1,429 | 65 | 67 | 21.984615 | 0.691358 | 0.035689 | 0 | 0.347826 | 0 | 0 | 0.079966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065217 | null | null | 0.26087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7107c8d573d9fe853eebec222c1a6a59b7584fc2 | 3,162 | py | Python | M01_Robocar/04. Environment Sensing/exercises/ultrasonic.py | acrobotic/EduKit | ee40985c6a17454de386f7e7a0c1b8f0bc14e120 | [
"Unlicense",
"MIT"
] | 3 | 2020-04-16T20:56:18.000Z | 2021-05-09T11:29:55.000Z | M01_Robocar/04. Environment Sensing/exercises/ultrasonic.py | acrobotic/EduKit | ee40985c6a17454de386f7e7a0c1b8f0bc14e120 | [
"Unlicense",
"MIT"
] | null | null | null | M01_Robocar/04. Environment Sensing/exercises/ultrasonic.py | acrobotic/EduKit | ee40985c6a17454de386f7e7a0c1b8f0bc14e120 | [
"Unlicense",
"MIT"
] | 1 | 2020-04-16T20:56:26.000Z | 2020-04-16T20:56:26.000Z | """
09/01/2015
Author: Makerbro
Platforms: Raspberry Pi (Raspbian)
Language: Python
File: ultrasonic.py
------------------------------------------------------------------------
Description:
Define a simple class for using an HC-SR04 ultrasonic distance sensor.
----------------------------------------... | 35.52809 | 79 | 0.573055 | 392 | 3,162 | 4.507653 | 0.461735 | 0.035654 | 0.043577 | 0.042445 | 0.091681 | 0.078664 | 0.064516 | 0 | 0 | 0 | 0 | 0.019815 | 0.281784 | 3,162 | 88 | 80 | 35.931818 | 0.758256 | 0.103732 | 0 | 0.134615 | 0 | 0 | 0.017195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7107d9dd9fda2077c0c8bf48066605a01f2cc2df | 786 | py | Python | nxsdk_modules_ncl/csp/tests/__init__.py | event-driven-robotics/models | 5e5b6521b8bcab6e3576e177784baaed57fd5280 | [
"BSD-3-Clause"
] | 54 | 2020-03-04T17:37:17.000Z | 2022-02-22T13:16:10.000Z | nxsdk_modules_ncl/csp/tests/__init__.py | lyes-khacef/models | a8b6e2a83d4842eb99878d3fa53cd92f4c6b3db8 | [
"BSD-3-Clause"
] | 9 | 2020-08-26T13:17:54.000Z | 2021-11-09T09:02:00.000Z | nxsdk_modules_ncl/csp/tests/__init__.py | lyes-khacef/models | a8b6e2a83d4842eb99878d3fa53cd92f4c6b3db8 | [
"BSD-3-Clause"
] | 26 | 2020-03-18T17:09:34.000Z | 2021-11-22T16:23:14.000Z | ###############################################################
# INTEL CORPORATION CONFIDENTIAL AND PROPRIETARY
#
# Copyright © 2018-2021 Intel Corporation.
# This software and the related documents are Intel copyrighted
# materials, and your use of them is governed by the express
# license under which they we... | 49.125 | 67 | 0.645038 | 94 | 786 | 5.404255 | 0.659574 | 0.070866 | 0.112205 | 0.070866 | 0.145669 | 0.145669 | 0.145669 | 0 | 0 | 0 | 0 | 0.012066 | 0.156489 | 786 | 16 | 68 | 49.125 | 0.75264 | 0.784987 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7107eef6df239d60c3955742f9f099a2b287e8b7 | 2,152 | py | Python | aulas_secao_16_atributos.py | Romuloro/Curso_udemy_geek_academy_python | 10d514874d913b7c2e3e4c30bd8a610973ffff3a | [
"MIT"
] | null | null | null | aulas_secao_16_atributos.py | Romuloro/Curso_udemy_geek_academy_python | 10d514874d913b7c2e3e4c30bd8a610973ffff3a | [
"MIT"
] | null | null | null | aulas_secao_16_atributos.py | Romuloro/Curso_udemy_geek_academy_python | 10d514874d913b7c2e3e4c30bd8a610973ffff3a | [
"MIT"
] | null | null | null | """
Atributos -
Em python, dividimos os tributos em 3 grupos:
- De instância
- De classe
- Dinâmicos
Atributos de instância: São atribuitos declarados dentro do método construtor.
Obs.: Método construtor: È um método especial utilizado para a construção do objeto.
"""
# Atributo de instância: Significa... | 24.454545 | 117 | 0.698885 | 281 | 2,152 | 5.234875 | 0.412811 | 0.023793 | 0.03739 | 0.020394 | 0.131883 | 0.104691 | 0.104691 | 0.104691 | 0.104691 | 0.104691 | 0 | 0.018935 | 0.214684 | 2,152 | 87 | 118 | 24.735632 | 0.851479 | 0.482342 | 0 | 0.176471 | 0 | 0 | 0.073327 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.147059 | false | 0 | 0 | 0 | 0.323529 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7108b365a2134ea709b2d12f955d641fc0063d6b | 3,002 | py | Python | app.py | RuFalcon/password_generator | 65f7852bdaaac0de08e03bf3553668113dae0b47 | [
"MIT"
] | null | null | null | app.py | RuFalcon/password_generator | 65f7852bdaaac0de08e03bf3553668113dae0b47 | [
"MIT"
] | null | null | null | app.py | RuFalcon/password_generator | 65f7852bdaaac0de08e03bf3553668113dae0b47 | [
"MIT"
] | null | null | null | from PyQt5.QtWidgets import (
QWidget,
QSlider,
QLabel,
QApplication,
QMainWindow,
QCheckBox,
QLineEdit)
from PyQt5 import uic
from PyQt5.QtGui import QIcon
import sys
import random
import string
class Window(QMainWindow):
def __init__(self):
super().__init__()
uic.load... | 33.355556 | 88 | 0.683211 | 336 | 3,002 | 5.916667 | 0.300595 | 0.078471 | 0.077465 | 0.065392 | 0.194165 | 0.086519 | 0.046278 | 0.046278 | 0.046278 | 0 | 0 | 0.008948 | 0.218188 | 3,002 | 89 | 89 | 33.730337 | 0.838091 | 0.076616 | 0 | 0.030769 | 0 | 0 | 0.043984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.292308 | 0.092308 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
710d7913e7f0038bf2a4eba12ef75f79c790a4c9 | 670 | py | Python | cloudrunner_server/db/versions/2ba9ac1cbd43_added_unique_for_name_in_tiers.py | ttrifonov/cloudrunner-server | 3b2426c8d9987e78425899010b534afc7734d8d4 | [
"Apache-2.0"
] | 2 | 2016-03-31T08:45:29.000Z | 2021-04-28T15:18:45.000Z | cloudrunner_server/db/versions/2ba9ac1cbd43_added_unique_for_name_in_tiers.py | ttrifonov/cloudrunner-server | 3b2426c8d9987e78425899010b534afc7734d8d4 | [
"Apache-2.0"
] | null | null | null | cloudrunner_server/db/versions/2ba9ac1cbd43_added_unique_for_name_in_tiers.py | ttrifonov/cloudrunner-server | 3b2426c8d9987e78425899010b534afc7734d8d4 | [
"Apache-2.0"
] | null | null | null | """Added unique for name in Tiers
Revision ID: 2ba9ac1cbd43
Revises: 330568e8928c
Create Date: 2015-02-06 12:05:09.151253
"""
# revision identifiers, used by Alembic.
revision = '2ba9ac1cbd43'
down_revision = '330568e8928c'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto genera... | 24.814815 | 83 | 0.707463 | 84 | 670 | 5.535714 | 0.547619 | 0.058065 | 0.090323 | 0.098925 | 0.356989 | 0.356989 | 0.356989 | 0.189247 | 0 | 0 | 0 | 0.088968 | 0.161194 | 670 | 26 | 84 | 25.769231 | 0.738434 | 0.459701 | 0 | 0 | 0 | 0 | 0.273556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
71133af23551a0dd9fa8b15746a8298d75bae555 | 13,326 | py | Python | src/assign1.py | jude-arokiam-uoit/csci-4610-assignment-1 | e6ac7edaa4405855861d2daf9ae9fb7dc536c26c | [
"MIT"
] | null | null | null | src/assign1.py | jude-arokiam-uoit/csci-4610-assignment-1 | e6ac7edaa4405855861d2daf9ae9fb7dc536c26c | [
"MIT"
] | null | null | null | src/assign1.py | jude-arokiam-uoit/csci-4610-assignment-1 | e6ac7edaa4405855861d2daf9ae9fb7dc536c26c | [
"MIT"
] | null | null | null | from Tkinter import *
import struct
import xml.etree.ElementTree as ET
from Queue import *
import math
import logging
# bounds of the window, in lat/long
LEFTLON = -78.9697000
RIGHTLON = -78.9148000
TOPLAT = 43.9187000
BOTLAT = 43.8843000
WIDTH = RIGHTLON-LEFTLON
HEIGHT = TOPLAT-BOTLAT
# ratio of one degree of longitu... | 35.068421 | 108 | 0.539021 | 1,740 | 13,326 | 4.064943 | 0.2 | 0.006786 | 0.005938 | 0.013997 | 0.249399 | 0.213205 | 0.197512 | 0.186484 | 0.151986 | 0.108016 | 0 | 0.030491 | 0.320726 | 13,326 | 379 | 109 | 35.16095 | 0.750884 | 0.04495 | 0 | 0.111111 | 0 | 0 | 0.041364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020202 | null | null | 0.053872 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7120872de099ed6ac3d7563be3a63886fa8363f2 | 1,345 | py | Python | lib/SurfacingAlgorithms/huji-rich-Elad3DFast/visualisation/two_dimensional/python/hdf5_voronoi_plot.py | GalaxyHunters/Vivid | f724e5671b650433d0c26319c86231bd3b246e4e | [
"BSD-3-Clause"
] | null | null | null | lib/SurfacingAlgorithms/huji-rich-Elad3DFast/visualisation/two_dimensional/python/hdf5_voronoi_plot.py | GalaxyHunters/Vivid | f724e5671b650433d0c26319c86231bd3b246e4e | [
"BSD-3-Clause"
] | 222 | 2018-07-25T18:13:57.000Z | 2021-10-10T14:54:04.000Z | lib/SurfacingAlgorithms/huji-rich-Elad3DFast/visualisation/two_dimensional/python/hdf5_voronoi_plot.py | GalaxyHunters/Vivid | f724e5671b650433d0c26319c86231bd3b246e4e | [
"BSD-3-Clause"
] | 2 | 2018-07-29T09:39:40.000Z | 2018-08-25T19:17:49.000Z | import h5py
import pylab
import numpy
import matplotlib
import sys
import argparse
parser = argparse.ArgumentParser(description='Displays snapshot of the hydrodynamic simualation')
parser.add_argument("file_name",
help="path to snapshot file")
parser.add_argument("field",
help="... | 30.568182 | 104 | 0.700372 | 211 | 1,345 | 4.251185 | 0.374408 | 0.039019 | 0.043478 | 0.031215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.174721 | 1,345 | 43 | 105 | 31.27907 | 0.794595 | 0 | 0 | 0 | 0 | 0 | 0.156877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
712263faed3b9fa8ac981cee14eef190fd65f574 | 1,227 | py | Python | tests/weight_converter/keras/test_tensorflow.py | bioimage-io/python-core | 78fa57fd0af968b57c0df8f294faf3a8b502909e | [
"MIT"
] | 2 | 2021-10-01T19:20:48.000Z | 2021-11-29T15:44:27.000Z | tests/weight_converter/keras/test_tensorflow.py | bioimage-io/python-core | 78fa57fd0af968b57c0df8f294faf3a8b502909e | [
"MIT"
] | 98 | 2021-09-22T08:44:40.000Z | 2022-03-30T17:21:55.000Z | tests/weight_converter/keras/test_tensorflow.py | bioimage-io/python-core | 78fa57fd0af968b57c0df8f294faf3a8b502909e | [
"MIT"
] | 2 | 2021-11-28T11:25:17.000Z | 2022-03-12T03:06:05.000Z | import zipfile
def test_tensorflow_converter(any_keras_model, tmp_path):
from bioimageio.core.weight_converter.keras import convert_weights_to_tensorflow_saved_model_bundle
out_path = tmp_path / "weights"
ret_val = convert_weights_to_tensorflow_saved_model_bundle(any_keras_model, out_path)
assert out... | 43.821429 | 103 | 0.766096 | 181 | 1,227 | 4.861878 | 0.331492 | 0.071591 | 0.059091 | 0.118182 | 0.659091 | 0.659091 | 0.659091 | 0.659091 | 0.659091 | 0.659091 | 0 | 0.004845 | 0.158924 | 1,227 | 27 | 104 | 45.444444 | 0.847868 | 0.156479 | 0 | 0.421053 | 0 | 0 | 0.078565 | 0.024248 | 0 | 0 | 0 | 0 | 0.368421 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.263158 | 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 |
7128c5dc74dd095d265a058f22564393b6303939 | 237 | py | Python | easy/swap_case.py | Amin-Abouee/code_eval | 8f0d53d2af128d7b57dd3fc8ff16616252f18a52 | [
"MIT"
] | null | null | null | easy/swap_case.py | Amin-Abouee/code_eval | 8f0d53d2af128d7b57dd3fc8ff16616252f18a52 | [
"MIT"
] | null | null | null | easy/swap_case.py | Amin-Abouee/code_eval | 8f0d53d2af128d7b57dd3fc8ff16616252f18a52 | [
"MIT"
] | null | null | null | import sys
with open(sys.argv[1],'r') as test_cases:
for test in test_cases:
res = ''
for s in test:
if s.islower():
res += str(s.upper())
elif s.isupper():
res += str(s.lower())
else:
res += str(s)
print res, | 19.75 | 41 | 0.56962 | 41 | 237 | 3.243902 | 0.560976 | 0.135338 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00565 | 0.253165 | 237 | 12 | 42 | 19.75 | 0.745763 | 0 | 0 | 0 | 0 | 0 | 0.004202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7129e9d2c9dd88cb5d1462edcd434feab145c40e | 8,448 | py | Python | run.py | fkinyae/passwordLocker | 0307163d41642d8f14f5d5c63ad0a5771e4c4dcb | [
"MIT"
] | null | null | null | run.py | fkinyae/passwordLocker | 0307163d41642d8f14f5d5c63ad0a5771e4c4dcb | [
"MIT"
] | null | null | null | run.py | fkinyae/passwordLocker | 0307163d41642d8f14f5d5c63ad0a5771e4c4dcb | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.9
from credential import Credential
from user import User
def create_new_user(username, password):
'''
Function that creates a user
'''
new_user = User(username, password)
return new_user
def save_user(user):
'''
function to save user
'''
user.save_user()
... | 45.176471 | 234 | 0.437618 | 727 | 8,448 | 4.955983 | 0.210454 | 0.044407 | 0.024979 | 0.018873 | 0.228421 | 0.106578 | 0.106578 | 0.08937 | 0.069942 | 0.069942 | 0 | 0.006598 | 0.479759 | 8,448 | 187 | 235 | 45.176471 | 0.813197 | 0.040128 | 0 | 0.293233 | 0 | 0.015038 | 0.244375 | 0.018982 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082707 | false | 0.218045 | 0.015038 | 0 | 0.142857 | 0.368421 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
71343e788a8230ce219cf0609745aed14249f5b3 | 428 | py | Python | apps/Testings/migrations/0004_auto_20170925_1703.py | ulibn/BlueXolo | 2560593fdb5a26fe90c65aa711a8eb6db96d03f1 | [
"Apache-2.0"
] | 21 | 2018-12-05T16:16:58.000Z | 2021-10-07T22:51:26.000Z | apps/Testings/migrations/0004_auto_20170925_1703.py | ulibn/BlueXolo | 2560593fdb5a26fe90c65aa711a8eb6db96d03f1 | [
"Apache-2.0"
] | 437 | 2018-12-11T19:36:38.000Z | 2022-02-04T16:28:14.000Z | apps/Testings/migrations/0004_auto_20170925_1703.py | ulibn/BlueXolo | 2560593fdb5a26fe90c65aa711a8eb6db96d03f1 | [
"Apache-2.0"
] | 29 | 2019-01-24T16:46:33.000Z | 2021-12-21T06:45:50.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-25 22:03
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Testings', '0003_collection'),
]
operations = [
migrations.RenameField(
... | 20.380952 | 48 | 0.60514 | 45 | 428 | 5.555556 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067961 | 0.278037 | 428 | 20 | 49 | 21.4 | 0.7411 | 0.158879 | 0 | 0 | 1 | 0 | 0.134454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
713dd154019b459b4ba7dd806fd12b2790acce22 | 7,625 | py | Python | train.py | yutong-xie/Depth-Estimation-based-on-CNN | c7b72f5001e8c18bde492ce488d4a0397a3d39bf | [
"MIT"
] | null | null | null | train.py | yutong-xie/Depth-Estimation-based-on-CNN | c7b72f5001e8c18bde492ce488d4a0397a3d39bf | [
"MIT"
] | null | null | null | train.py | yutong-xie/Depth-Estimation-based-on-CNN | c7b72f5001e8c18bde492ce488d4a0397a3d39bf | [
"MIT"
] | null | null | null | import os
import numpy as np
import torch
import torch.nn as nn
import torchvision
import PIL
from torchvision import transforms
from sklearn.metrics import average_precision_score
from PIL import Image, ImageDraw
import matplotlib.pyplot as plt
from nyu_dataloader import LoadData, NYUDataset
from model import CoarseN... | 43.571429 | 162 | 0.54741 | 897 | 7,625 | 4.525084 | 0.177258 | 0.027593 | 0.076866 | 0.070953 | 0.584873 | 0.542005 | 0.526238 | 0.508992 | 0.474747 | 0.435575 | 0 | 0.043375 | 0.280393 | 7,625 | 174 | 163 | 43.821839 | 0.696373 | 0.239869 | 0 | 0.353448 | 0 | 0 | 0.140132 | 0.044745 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12069 | null | null | 0.198276 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
713f7ea2470b34bd905f8747a87717d7722c90a7 | 566 | py | Python | wards/forms.py | Naomi-sigu/awwwards | 075ea018f6ae44c48bac4b9fedd5d8883a6fce73 | [
"MIT"
] | 1 | 2022-03-15T17:01:25.000Z | 2022-03-15T17:01:25.000Z | zawadi/forms.py | AbdimulhinYussuf3675/Awwards- | 3a4ddcf7ced320a6507cec2287e7052016f6addc | [
"MIT"
] | 6 | 2020-06-05T23:55:45.000Z | 2022-03-12T00:02:52.000Z | zawadi/forms.py | AbdimulhinYussuf3675/Awwards- | 3a4ddcf7ced320a6507cec2287e7052016f6addc | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from .models import Profile, Projects
class UpdateUser(forms.ModelForm):
email = forms.EmailField()
class Meta:
model = User
fields = ['username','email']
class UpdateProfile(forms.M... | 25.727273 | 87 | 0.704947 | 65 | 566 | 6.107692 | 0.461538 | 0.075567 | 0.105793 | 0.105793 | 0.141058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178445 | 566 | 22 | 87 | 25.727273 | 0.853763 | 0 | 0 | 0.176471 | 0 | 0 | 0.12522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 0.647059 | 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 |
7140061b7ad28a61514a96021ec08d76b78fc5da | 5,212 | py | Python | dianping/dianping/spiders/dpBaseSpider.py | MircroCode/dpSpider | 37d00bcbc355594ccabffa6ed11ca2054e7591d6 | [
"MIT"
] | null | null | null | dianping/dianping/spiders/dpBaseSpider.py | MircroCode/dpSpider | 37d00bcbc355594ccabffa6ed11ca2054e7591d6 | [
"MIT"
] | null | null | null | dianping/dianping/spiders/dpBaseSpider.py | MircroCode/dpSpider | 37d00bcbc355594ccabffa6ed11ca2054e7591d6 | [
"MIT"
] | null | null | null | #!/usr/local/bin/python
#-*-coding:utf8-*-
__author__ = 'youjiezeng'
import random
from scrapy.spider import BaseSpider
from scrapy.spider import Spider
from scrapy.contrib.spiders import CrawlSpider
from scrapy.selector import HtmlXPathSelector
from scrapy.http import Request
from scrapy.http import Response
from scra... | 45.321739 | 166 | 0.639102 | 660 | 5,212 | 4.987879 | 0.321212 | 0.036452 | 0.02582 | 0.027339 | 0.269745 | 0.218105 | 0.218105 | 0.218105 | 0.218105 | 0.136087 | 0 | 0.012441 | 0.182655 | 5,212 | 114 | 167 | 45.719298 | 0.760329 | 0.174405 | 0 | 0 | 0 | 0 | 0.168216 | 0.052691 | 0.029412 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014706 | 0.235294 | null | null | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
714042c7426de8a5362a6681b84b2718f6f6b126 | 1,810 | py | Python | fits2png_example/primitives/simple_fits_reader.py | Keck-DataReductionPipelines/keckdrpframework | 37796f4cce7baaf0f0801331ce91df91f04bd1cc | [
"BSD-3-Clause"
] | null | null | null | fits2png_example/primitives/simple_fits_reader.py | Keck-DataReductionPipelines/keckdrpframework | 37796f4cce7baaf0f0801331ce91df91f04bd1cc | [
"BSD-3-Clause"
] | null | null | null | fits2png_example/primitives/simple_fits_reader.py | Keck-DataReductionPipelines/keckdrpframework | 37796f4cce7baaf0f0801331ce91df91f04bd1cc | [
"BSD-3-Clause"
] | null | null | null | """
Example to read a FITS file.
Created on Jul 9, 2019
Be aware that hdus.close () needs to be called to limit the number of open files at a given time.
@author: skwok
"""
import astropy.io.fits as pf
from astropy.utils.exceptions import AstropyWarning
import warnings
import numpy as np
from keckdrpframework.mode... | 27.424242 | 97 | 0.629834 | 224 | 1,810 | 5.008929 | 0.526786 | 0.024955 | 0.024955 | 0.037433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0.28895 | 1,810 | 65 | 98 | 27.846154 | 0.863248 | 0.287293 | 0 | 0 | 0 | 0 | 0.017182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.206897 | 0 | 0.517241 | 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 |
714141cfbeec9f942b15bbf5d500a014f7028ea1 | 5,254 | py | Python | ax1500-poc.py | marcnewlin/ax1500-crypto-client | c96fced416cabbdf9e297efc921cf55f65330a24 | [
"MIT"
] | 14 | 2020-06-07T06:12:06.000Z | 2022-03-17T03:10:22.000Z | ax1500-poc.py | marcnewlin/ax1500-crypto-client | c96fced416cabbdf9e297efc921cf55f65330a24 | [
"MIT"
] | null | null | null | ax1500-poc.py | marcnewlin/ax1500-crypto-client | c96fced416cabbdf9e297efc921cf55f65330a24 | [
"MIT"
] | 1 | 2020-06-08T03:47:23.000Z | 2020-06-08T03:47:23.000Z | #!/usr/bin/env python3
import base64
import binascii
import hashlib
import json
import logging
import re
import requests
from Crypto.Cipher import AES, PKCS1_v1_5
from Crypto.PublicKey import RSA
from pprint import pprint
ROUTER_HOST = "192.168.0.1"
ROUTER_PASSWORD = "password"
class Client(object):
def __init_... | 30.546512 | 122 | 0.60906 | 728 | 5,254 | 4.270604 | 0.239011 | 0.024767 | 0.016082 | 0.024445 | 0.253136 | 0.22258 | 0.202959 | 0.202959 | 0.157285 | 0.089739 | 0 | 0.020988 | 0.256376 | 5,254 | 172 | 123 | 30.546512 | 0.774763 | 0.136467 | 0 | 0.075269 | 0 | 0 | 0.106336 | 0.016393 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086022 | false | 0.075269 | 0.107527 | 0 | 0.247312 | 0.021505 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8535941ef21a7ba2de7437c1ba6e4065e83a1bc6 | 648 | py | Python | forum/models.py | hann1010/simpleforum_test | 3b346c883b831ccf3c7c6f78a89303cb0179b187 | [
"MIT"
] | null | null | null | forum/models.py | hann1010/simpleforum_test | 3b346c883b831ccf3c7c6f78a89303cb0179b187 | [
"MIT"
] | null | null | null | forum/models.py | hann1010/simpleforum_test | 3b346c883b831ccf3c7c6f78a89303cb0179b187 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from ckeditor.fields import RichTextField
class Forum_post(models.Model):
title = models.CharField(max_length=100, blank=False)
post_type = models.CharField(max_length=100, blank=True)
origin_post_id=... | 40.5 | 64 | 0.759259 | 86 | 648 | 5.546512 | 0.55814 | 0.062893 | 0.075472 | 0.100629 | 0.134172 | 0.134172 | 0 | 0 | 0 | 0 | 0 | 0.012613 | 0.143519 | 648 | 16 | 65 | 40.5 | 0.846847 | 0 | 0 | 0 | 0 | 0 | 0.004623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.285714 | 0.071429 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8540ad0e67e2b75d6097a09967b175727a9bf4a0 | 4,559 | py | Python | host.py | JinlongWukong/DevLab-ansible | 7be356b67663844905448b72b1cf70929b9f19a7 | [
"Apache-2.0"
] | null | null | null | host.py | JinlongWukong/DevLab-ansible | 7be356b67663844905448b72b1cf70929b9f19a7 | [
"Apache-2.0"
] | null | null | null | host.py | JinlongWukong/DevLab-ansible | 7be356b67663844905448b72b1cf70929b9f19a7 | [
"Apache-2.0"
] | null | null | null | from ansible_task_executor import AnsibleTaskExecutor
import os
class HOST(object):
def __init__(self, ip, user, password, subnet=None, role=None):
self.ip = ip
self.user = user
self.password = password
self.role = role
self.cpu = None
self.memory = None
se... | 42.607477 | 118 | 0.498794 | 467 | 4,559 | 4.721627 | 0.201285 | 0.027211 | 0.072562 | 0.05805 | 0.559184 | 0.542857 | 0.40907 | 0.228118 | 0.228118 | 0.164172 | 0 | 0.002496 | 0.384733 | 4,559 | 106 | 119 | 43.009434 | 0.783601 | 0.025444 | 0 | 0.296296 | 0 | 0 | 0.136239 | 0.005963 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.074074 | 0.024691 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
854b051dc6ae9a54f0df4adb196448995c77fe93 | 1,357 | py | Python | setup.py | mcx/deep_ope | 7851b0e1f71dc03290428b1a76cc79f8fed1e749 | [
"Apache-2.0"
] | 64 | 2020-09-29T22:40:17.000Z | 2022-02-15T14:06:12.000Z | setup.py | mcx/deep_ope | 7851b0e1f71dc03290428b1a76cc79f8fed1e749 | [
"Apache-2.0"
] | 2 | 2020-12-22T16:50:20.000Z | 2022-01-27T17:22:01.000Z | setup.py | mcx/deep_ope | 7851b0e1f71dc03290428b1a76cc79f8fed1e749 | [
"Apache-2.0"
] | 6 | 2021-01-13T03:24:25.000Z | 2022-01-16T12:03:23.000Z | # Copyright 2020 Google LLC.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, sof... | 32.309524 | 98 | 0.663228 | 194 | 1,357 | 4.603093 | 0.603093 | 0.067189 | 0.029115 | 0.035834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061625 | 0.210759 | 1,357 | 41 | 99 | 33.097561 | 0.772176 | 0.403832 | 0 | 0 | 0 | 0 | 0.481203 | 0.100251 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 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 |
854ba28127855bb3707a50c0263b4305fb7c641d | 386 | py | Python | code/119.Pascal's-Triangle-II.py | Aden-Q/leetcode | ebd4804edd4f172b9981b22c18d9ff654cf20762 | [
"Apache-2.0"
] | 1 | 2019-09-22T03:08:14.000Z | 2019-09-22T03:08:14.000Z | code/119.Pascal's-Triangle-II.py | Aden-Q/leetcode | ebd4804edd4f172b9981b22c18d9ff654cf20762 | [
"Apache-2.0"
] | null | null | null | code/119.Pascal's-Triangle-II.py | Aden-Q/leetcode | ebd4804edd4f172b9981b22c18d9ff654cf20762 | [
"Apache-2.0"
] | null | null | null | class Solution:
def getRow(self, rowIndex: int) -> List[int]:
if rowIndex == 0:
return [1]
cur = [1, 1]
next_row = cur
for i in range(1, rowIndex):
next_row = [1]
for j in range(i):
next_row.append(cur[j] + cur[j+1])
nex... | 29.692308 | 50 | 0.471503 | 52 | 386 | 3.384615 | 0.403846 | 0.238636 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035556 | 0.417098 | 386 | 13 | 51 | 29.692308 | 0.746667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8557f41cc36c859f2c7addae876ae77e8f1b8a4e | 1,740 | py | Python | loginsystem.py | TaylorJonesTRT/Loginsystem | 1ea9eb573c4f7099d45c60f63a1b3bcb317ccf53 | [
"MIT"
] | null | null | null | loginsystem.py | TaylorJonesTRT/Loginsystem | 1ea9eb573c4f7099d45c60f63a1b3bcb317ccf53 | [
"MIT"
] | null | null | null | loginsystem.py | TaylorJonesTRT/Loginsystem | 1ea9eb573c4f7099d45c60f63a1b3bcb317ccf53 | [
"MIT"
] | null | null | null | import json
import sys
import hashlib
user_details = {}
hasher = hashlib.sha256()
with open('user_credentials.json', 'r') as f:
user_details = json.load(f)
while True:
print("Welcome to the new and sophisticated login system!")
choice = input("What would you like to do? \n [1]LOGIN \n [2]REGISTER \n")... | 33.461538 | 97 | 0.612644 | 217 | 1,740 | 4.815668 | 0.419355 | 0.073684 | 0.022967 | 0.044019 | 0.15311 | 0.101435 | 0.047847 | 0 | 0 | 0 | 0 | 0.008032 | 0.284483 | 1,740 | 51 | 98 | 34.117647 | 0.831325 | 0 | 0 | 0.121951 | 0 | 0.02439 | 0.329885 | 0.024138 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.195122 | 0.073171 | 0 | 0.073171 | 0.195122 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
855ec7fc27051766865a6e3206dce252e39ad6a4 | 292 | py | Python | setup.py | XertroV/nvblib | c36f773fbb579e80e655ec4704cb9a22afef0c70 | [
"MIT"
] | 3 | 2015-05-14T01:08:04.000Z | 2016-03-08T17:35:34.000Z | setup.py | XertroV/nvblib | c36f773fbb579e80e655ec4704cb9a22afef0c70 | [
"MIT"
] | 2 | 2015-05-14T04:36:52.000Z | 2015-05-15T07:59:13.000Z | setup.py | XertroV/nvblib | c36f773fbb579e80e655ec4704cb9a22afef0c70 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name='nvblib',
version='0.0.1',
packages=['nvblib', 'nvblib.instructions'],
url='https://github.com/XertroV/nvblib',
license='MIT',
author='XertroV',
author_email='m@xk.io',
description='core library for nvb objects'
)
| 22.461538 | 47 | 0.650685 | 37 | 292 | 5.108108 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0.178082 | 292 | 12 | 48 | 24.333333 | 0.775 | 0 | 0 | 0 | 0 | 0 | 0.390411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 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 |
85671b3e156793095852946fcfa8a1fa56e561bf | 2,752 | py | Python | mep/people/tests/test_people_commands.py | making-books-ren-today/test_eval_3_shxco | 5a6427abeb4aec1aa70c0d9a4b32d028012780c8 | [
"Apache-2.0"
] | 3 | 2020-05-12T19:19:41.000Z | 2021-04-07T13:56:32.000Z | mep/people/tests/test_people_commands.py | making-books-ren-today/test_eval_3_shxco | 5a6427abeb4aec1aa70c0d9a4b32d028012780c8 | [
"Apache-2.0"
] | 736 | 2017-06-21T16:24:42.000Z | 2022-02-26T17:46:10.000Z | mep/people/tests/test_people_commands.py | making-books-ren-today/test_eval_3_shxco | 5a6427abeb4aec1aa70c0d9a4b32d028012780c8 | [
"Apache-2.0"
] | null | null | null | import datetime
from io import StringIO
from django.test import TestCase
from mep.accounts.models import Event
from mep.people.management.commands import export_members
from mep.people.models import Person
class TestExportMembers(TestCase):
fixtures = ['sample_people']
def setUp(self):
self.cmd = e... | 39.314286 | 76 | 0.662427 | 345 | 2,752 | 5.130435 | 0.362319 | 0.051412 | 0.044068 | 0.027119 | 0.107345 | 0.107345 | 0.093785 | 0.093785 | 0.059887 | 0 | 0 | 0.034204 | 0.235102 | 2,752 | 69 | 77 | 39.884058 | 0.806651 | 0.12936 | 0 | 0.083333 | 0 | 0 | 0.167785 | 0 | 0 | 0 | 0 | 0 | 0.416667 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.229167 | 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 |
85738feca571c457f10416c0f30529a53e44eb47 | 6,358 | py | Python | main.py | Deepkk-9/phdc-discord-bot | 23f3ad7e339826f8775ddbd9ec6d38a246fff622 | [
"MIT"
] | null | null | null | main.py | Deepkk-9/phdc-discord-bot | 23f3ad7e339826f8775ddbd9ec6d38a246fff622 | [
"MIT"
] | null | null | null | main.py | Deepkk-9/phdc-discord-bot | 23f3ad7e339826f8775ddbd9ec6d38a246fff622 | [
"MIT"
] | null | null | null | #Imports
import discord
import os
import requests
import json
import random
import urllib
from replit import db
from keep_alive import keep_alive
#Variables
client = discord.Client()
bad_words = [
"Fuck", "fuck", "Fuck You", "Shit", "Piss off", "Fuck off", "Dick head",
"Asshole", "Son of a bitch", "Bastard",... | 33.287958 | 798 | 0.672067 | 888 | 6,358 | 4.748874 | 0.295045 | 0.04553 | 0.072089 | 0.087266 | 0.18046 | 0.106237 | 0.082049 | 0.065449 | 0.039839 | 0.026559 | 0 | 0.008599 | 0.195187 | 6,358 | 190 | 799 | 33.463158 | 0.81454 | 0 | 0 | 0.080645 | 0 | 0.048387 | 0.421712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064516 | null | null | 0.008065 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
857d1d70e6f0e89abfc184152dad640183c58b9d | 1,418 | py | Python | jumpscale/tools/wireguard/__init__.py | zaibon/js-sdk | cd1d26f2c3343884c1927ceef7c1e12e3f7da905 | [
"Apache-2.0"
] | 13 | 2020-09-02T09:05:08.000Z | 2022-03-12T02:43:24.000Z | jumpscale/tools/wireguard/__init__.py | zaibon/js-sdk | cd1d26f2c3343884c1927ceef7c1e12e3f7da905 | [
"Apache-2.0"
] | 1,998 | 2020-06-15T11:46:10.000Z | 2022-03-24T22:12:41.000Z | jumpscale/tools/wireguard/__init__.py | zaibon/js-sdk | cd1d26f2c3343884c1927ceef7c1e12e3f7da905 | [
"Apache-2.0"
] | 8 | 2020-09-29T06:50:35.000Z | 2021-06-14T03:30:52.000Z | import binascii
from nacl import public
from nacl.encoding import Base64Encoder
from nacl.signing import VerifyKey
def generate_zos_keys(node_public_key):
"""Generate a new set of wireguard key pair and encrypt
the private side using the public key of a 0-OS node.
Args:
node_public_key (str): ... | 34.585366 | 101 | 0.748942 | 195 | 1,418 | 5.14359 | 0.302564 | 0.134596 | 0.074776 | 0.071785 | 0.309073 | 0.285145 | 0.285145 | 0.285145 | 0.285145 | 0.285145 | 0 | 0.031142 | 0.184767 | 1,418 | 40 | 102 | 35.45 | 0.836505 | 0.246827 | 0 | 0.380952 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.190476 | 0 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8581df9b428ed3194898e621ecdc72c4683a9778 | 555 | py | Python | src/posts/migrations/0003_auto_20170327_1306.py | ChrisMunene/Blog | 014da02e9b6c77797c46d925f32092e539cfdf1e | [
"MIT"
] | null | null | null | src/posts/migrations/0003_auto_20170327_1306.py | ChrisMunene/Blog | 014da02e9b6c77797c46d925f32092e539cfdf1e | [
"MIT"
] | null | null | null | src/posts/migrations/0003_auto_20170327_1306.py | ChrisMunene/Blog | 014da02e9b6c77797c46d925f32092e539cfdf1e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-03-27 10:06
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('posts', '0002_auto_20170326_1643'),
]... | 24.130435 | 106 | 0.643243 | 66 | 555 | 5.272727 | 0.727273 | 0.022989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116114 | 0.23964 | 555 | 22 | 107 | 25.227273 | 0.708531 | 0.117117 | 0 | 0 | 1 | 0 | 0.080082 | 0.047228 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.466667 | 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 |
859cc32817d0e2595fe9bb8f7baa000d1ad0bce4 | 412 | py | Python | distributed_social_network/posts/migrations/0005_auto_20190327_0252.py | leevtori/CMPUT404-project | 52214288855ae4b3f05b8d17e67a2686debffb19 | [
"Apache-2.0"
] | null | null | null | distributed_social_network/posts/migrations/0005_auto_20190327_0252.py | leevtori/CMPUT404-project | 52214288855ae4b3f05b8d17e67a2686debffb19 | [
"Apache-2.0"
] | 51 | 2019-03-22T00:31:06.000Z | 2021-06-10T21:17:30.000Z | distributed_social_network/posts/migrations/0005_auto_20190327_0252.py | leevtori/CMPUT404-project | 52214288855ae4b3f05b8d17e67a2686debffb19 | [
"Apache-2.0"
] | 1 | 2019-08-03T14:41:22.000Z | 2019-08-03T14:41:22.000Z | # Generated by Django 2.1.7 on 2019-03-27 02:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posts', '0004_auto_20190317_2154'),
]
operations = [
migrations.AlterField(
model_name='post',
name='categories',
... | 21.684211 | 76 | 0.609223 | 44 | 412 | 5.613636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103333 | 0.271845 | 412 | 18 | 77 | 22.888889 | 0.72 | 0.109223 | 0 | 0 | 1 | 0 | 0.158904 | 0.063014 | 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 |
859d7da94a3925ec55b15040b3587cd2cc4952c1 | 1,083 | py | Python | data_structures/tree.py | claudiogar/learningPython | 004085a980d25e60a074e373caf8ff407fa7d721 | [
"MIT"
] | null | null | null | data_structures/tree.py | claudiogar/learningPython | 004085a980d25e60a074e373caf8ff407fa7d721 | [
"MIT"
] | null | null | null | data_structures/tree.py | claudiogar/learningPython | 004085a980d25e60a074e373caf8ff407fa7d721 | [
"MIT"
] | null | null | null | class Tree:
def __init__(self, value):
self.rootValue = value
self.children = []
pass
def addChild(self, value):
node = Tree(value)
self.children.append(node)
return node
def removeChild(self, node):
for subChild in node.children:
... | 20.433962 | 42 | 0.502308 | 118 | 1,083 | 4.508475 | 0.271186 | 0.180451 | 0.056391 | 0.078947 | 0.082707 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0078 | 0.408126 | 1,083 | 53 | 43 | 20.433962 | 0.822153 | 0 | 0 | 0.108108 | 0 | 0 | 0.001845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189189 | false | 0.054054 | 0 | 0.027027 | 0.378378 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
85a654c6138083f7107c2f379568dad8243a1eb3 | 5,301 | py | Python | jsk_rqt_plugins/src/jsk_rqt_plugins/label.py | ShunjiroOsada/jsk_visualization_package | f5305ccb79b41a2efc994a535cb316e7467961de | [
"MIT"
] | 5 | 2016-07-18T02:20:30.000Z | 2022-01-23T13:12:20.000Z | jsk_rqt_plugins/src/jsk_rqt_plugins/label.py | ShunjiroOsada/jsk_visualization_package | f5305ccb79b41a2efc994a535cb316e7467961de | [
"MIT"
] | null | null | null | jsk_rqt_plugins/src/jsk_rqt_plugins/label.py | ShunjiroOsada/jsk_visualization_package | f5305ccb79b41a2efc994a535cb316e7467961de | [
"MIT"
] | 7 | 2015-11-01T13:40:30.000Z | 2020-02-21T12:59:18.000Z | from rqt_gui_py.plugin import Plugin
import python_qt_binding.QtGui as QtGui
from python_qt_binding.QtGui import (QAction, QIcon, QMenu, QWidget,
QPainter, QColor, QFont, QBrush,
QPen, QMessageBox, QSizePolicy,
... | 37.330986 | 101 | 0.651198 | 608 | 5,301 | 5.373355 | 0.256579 | 0.042853 | 0.048975 | 0.055096 | 0.290787 | 0.206612 | 0.177227 | 0.121824 | 0.029385 | 0.029385 | 0 | 0.002582 | 0.269383 | 5,301 | 141 | 102 | 37.595745 | 0.84095 | 0.020751 | 0 | 0.201681 | 0 | 0 | 0.016771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.151261 | 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 |
85a8be7c6847f2364ef5be176613f3f31ca48ab4 | 957 | py | Python | PythonExercicios/ex032.py | gabjohann/python_3 | 380cb622669ed82d6b22fdd09d41f02f1ad50a73 | [
"MIT"
] | null | null | null | PythonExercicios/ex032.py | gabjohann/python_3 | 380cb622669ed82d6b22fdd09d41f02f1ad50a73 | [
"MIT"
] | null | null | null | PythonExercicios/ex032.py | gabjohann/python_3 | 380cb622669ed82d6b22fdd09d41f02f1ad50a73 | [
"MIT"
] | null | null | null | # Faça um programa que leia um ano qualquer e mostre se ele é bissexto
# ----------------------------errado----------------------------
ano = int(input('Digite o ano que deseja saber se é bissexto: '))
bissexto = ano % 4
if bissexto == 0:
print('O ano {} é bissexto.'.format(ano))
else:
print('O ano não é bisse... | 30.870968 | 82 | 0.545455 | 141 | 957 | 3.702128 | 0.326241 | 0.137931 | 0.103448 | 0.172414 | 0.545977 | 0.545977 | 0.545977 | 0.434866 | 0.434866 | 0.434866 | 0 | 0.031414 | 0.201672 | 957 | 30 | 83 | 31.9 | 0.651832 | 0.756531 | 0 | 0 | 0 | 0 | 0.401869 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
85b764916b85db824b6c4efcce2fd1e1cd5686bb | 406 | py | Python | hard-gists/2038329/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/2038329/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/2038329/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | from bigfloat import *
N = 5
setcontext(precision(10**N))
def f(x):
return x + sin(x)
def g(n):
x = 3
for i in xrange(n):
x = f(x)
return x
import sympy
goodpi = str(sympy.pi.evalf(10**N))
def goodtill(n):
cand = g(n)
for i,(a,b) in enumerate(zip(str(cand),goodpi)):
... | 15.037037 | 52 | 0.534483 | 69 | 406 | 3.144928 | 0.536232 | 0.02765 | 0.0553 | 0.082949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032374 | 0.315271 | 406 | 27 | 53 | 15.037037 | 0.748201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | 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 |
85b85ad075a9252cd0c71b46c4f2d01b5af34eb1 | 751 | py | Python | server.py | MeiRose/Datamanager | 6c647ba1218df1646f4e2d9636581aaa495f7697 | [
"MIT"
] | null | null | null | server.py | MeiRose/Datamanager | 6c647ba1218df1646f4e2d9636581aaa495f7697 | [
"MIT"
] | null | null | null | server.py | MeiRose/Datamanager | 6c647ba1218df1646f4e2d9636581aaa495f7697 | [
"MIT"
] | null | null | null | from flask import Flask, send_from_directory, jsonify
import os
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
CLIENT_DIR = os.path.join(BASE_DIR, "client", "dist")
STATIC_DIR = os.path.join(BASE_DIR, "static")
app = Flask(__name__)
app.secret_key = "Developer Key"
@app.route('/')
def index():
return sen... | 20.861111 | 56 | 0.684421 | 103 | 751 | 4.728155 | 0.368932 | 0.065708 | 0.13963 | 0.141684 | 0.293635 | 0.213552 | 0 | 0 | 0 | 0 | 0 | 0.003185 | 0.163782 | 751 | 36 | 57 | 20.861111 | 0.772293 | 0 | 0 | 0 | 0 | 0 | 0.143617 | 0.030585 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.08 | 0.12 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
85b92d6885c1c13ef1db4279c1acac141c9d3979 | 1,718 | py | Python | pyimq/bin/utils/create_photo_test_set.py | bradday4/PyImageQualityRanking | 5fae8df2d7ee4e28f7e6cb29907a7ab99e9542bc | [
"Python-2.0",
"OLDAP-2.7"
] | 8 | 2017-03-30T17:48:51.000Z | 2020-07-09T09:13:40.000Z | pyimq/bin/utils/create_photo_test_set.py | bradday4/PyImageQualityRanking | 5fae8df2d7ee4e28f7e6cb29907a7ab99e9542bc | [
"Python-2.0",
"OLDAP-2.7"
] | 1 | 2019-07-30T19:29:00.000Z | 2019-07-30T19:40:17.000Z | pyimq/bin/utils/create_photo_test_set.py | bradday4/PyImageQualityRanking | 5fae8df2d7ee4e28f7e6cb29907a7ab99e9542bc | [
"Python-2.0",
"OLDAP-2.7"
] | 4 | 2017-12-29T03:49:26.000Z | 2020-06-25T16:53:03.000Z | """
Sami Koho - 2015 - sami.koho@gmail.com
A small utility that generates Gaussian blurred images from a
series of base images. This utility was use to create an autofocus function test
dataset.
"""
import os
import sys
from scipy import ndimage, misc
import numpy
def main():
# Check input parameters
if le... | 31.236364 | 80 | 0.659488 | 244 | 1,718 | 4.459016 | 0.368852 | 0.044118 | 0.045956 | 0.051471 | 0.317096 | 0.201287 | 0.201287 | 0.174632 | 0.174632 | 0.174632 | 0 | 0.013636 | 0.231665 | 1,718 | 54 | 81 | 31.814815 | 0.810606 | 0.210128 | 0 | 0.066667 | 1 | 0 | 0.097543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.133333 | 0 | 0.166667 | 0.033333 | 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 |
85b9a81ad266c2fd5c57476fd640ad2a633b1314 | 2,154 | py | Python | ctc_fast/swbd-utils/score_frag_utts.py | SrikarSiddarth/stanford-ctc | c8f8257227ec218c4794a96a089ef0a093dcbdfd | [
"Apache-2.0"
] | 268 | 2015-06-15T20:59:49.000Z | 2021-12-26T15:05:50.000Z | ctc_fast/swbd-utils/score_frag_utts.py | guker/stanford-ctc | 3d3bd9ce92cfdc0173b1bd2096ecea8634d6b62f | [
"Apache-2.0"
] | 16 | 2015-06-16T03:22:31.000Z | 2019-12-11T15:58:57.000Z | ctc_fast/swbd-utils/score_frag_utts.py | guker/stanford-ctc | 3d3bd9ce92cfdc0173b1bd2096ecea8634d6b62f | [
"Apache-2.0"
] | 109 | 2015-07-07T15:36:22.000Z | 2021-07-28T03:48:15.000Z | '''
Look at error rates only scoring utterances that contain frags
'''
FRAG_FILE = '/deep/u/zxie/ctc_clm_transcripts/frags.txt'
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('hyp')
parser.add_argument('stm')
parser.add_argument('hyp_out')
par... | 29.916667 | 95 | 0.588672 | 313 | 2,154 | 3.811502 | 0.303514 | 0.050293 | 0.046102 | 0.027661 | 0.227997 | 0.142498 | 0.102263 | 0.102263 | 0 | 0 | 0 | 0.011704 | 0.28598 | 2,154 | 71 | 96 | 30.338028 | 0.763979 | 0.063603 | 0 | 0.272727 | 0 | 0 | 0.077359 | 0.021661 | 0 | 0 | 0 | 0 | 0.018182 | 0 | null | null | 0 | 0.018182 | null | null | 0.054545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a41352ff75be152f5bfb07307b870b993229c8bb | 1,539 | py | Python | day 4 .py | ShubhamSinghThakur2907/100daysofcode | 97daee2bf3830b1ff1f5a305335179eb89435eb8 | [
"MIT"
] | null | null | null | day 4 .py | ShubhamSinghThakur2907/100daysofcode | 97daee2bf3830b1ff1f5a305335179eb89435eb8 | [
"MIT"
] | null | null | null | day 4 .py | ShubhamSinghThakur2907/100daysofcode | 97daee2bf3830b1ff1f5a305335179eb89435eb8 | [
"MIT"
] | null | null | null | Python 3.7.4 (v3.7.4:e09359112e, Jul 8 2019, 14:54:52)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license()" for more information.
>>> ## there are basically 2 types of functions in python
>>> ##pre-defined user defined
>>> ##user defined
>>> ## built in function are the functions ... | 33.456522 | 96 | 0.693957 | 241 | 1,539 | 4.419087 | 0.53527 | 0.00939 | 0.025352 | 0.022535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042287 | 0.17024 | 1,539 | 45 | 97 | 34.2 | 0.791699 | 0 | 0 | 0.395349 | 0 | 0 | 0.102083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.139535 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a417c03f6b2f4d0a5e58732404ea12fb23e7dd50 | 2,116 | py | Python | coinlib/wallet.py | santosmarco/coinlib | 73732b2557877f076640591c611ec9166b937ae1 | [
"MIT"
] | 3 | 2018-03-01T13:40:57.000Z | 2020-02-13T15:47:44.000Z | coinlib/wallet.py | santosmarco/coinlib | 73732b2557877f076640591c611ec9166b937ae1 | [
"MIT"
] | null | null | null | coinlib/wallet.py | santosmarco/coinlib | 73732b2557877f076640591c611ec9166b937ae1 | [
"MIT"
] | null | null | null | import coinlib
class Wallet():
def __init__(self, contents={}):
coins_by_symbol = coinlib.get_all_coins_by_symbol()
coins_by_name = coinlib.get_all_coins_by_name()
self.contents = {}
for coin in contents:
coin_lower = coin.lower().strip()
if (coin_lower not... | 32.553846 | 79 | 0.579395 | 248 | 2,116 | 4.806452 | 0.201613 | 0.211409 | 0.134228 | 0.088087 | 0.512584 | 0.301175 | 0.26594 | 0.26594 | 0.26594 | 0.188758 | 0 | 0.005487 | 0.310964 | 2,116 | 64 | 80 | 33.0625 | 0.812071 | 0 | 0 | 0.314815 | 0 | 0 | 0.006616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.018519 | 0 | 0.314815 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a41d501e4736f53750485c3cbfc1d3b89f76714a | 3,147 | py | Python | sara_flexbe_behaviors/src/sara_flexbe_behaviors/leftorright_sm.py | WalkingMachine/sara_behaviors | fcb55d274331915cd39d7d444546f17a39f85a44 | [
"BSD-3-Clause"
] | 5 | 2018-05-07T19:58:08.000Z | 2021-04-21T10:49:05.000Z | sara_flexbe_behaviors/src/sara_flexbe_behaviors/leftorright_sm.py | WalkingMachine/sara_behaviors | fcb55d274331915cd39d7d444546f17a39f85a44 | [
"BSD-3-Clause"
] | 21 | 2017-05-26T01:20:06.000Z | 2021-01-26T23:03:36.000Z | sara_flexbe_behaviors/src/sara_flexbe_behaviors/leftorright_sm.py | WalkingMachine/sara_behaviors | fcb55d274331915cd39d7d444546f17a39f85a44 | [
"BSD-3-Clause"
] | 2 | 2019-07-22T07:21:20.000Z | 2019-11-11T20:49:22.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###########################################################
# WARNING: Generated code! #
# ************************** #
# Manual changes may get lost if file is generated again. #
# Only code inside the [MANUAL] ta... | 33.126316 | 165 | 0.631713 | 347 | 3,147 | 5.610951 | 0.389049 | 0.039548 | 0.020544 | 0.032871 | 0.292758 | 0.276323 | 0.276323 | 0.276323 | 0.237288 | 0.194145 | 0 | 0.01892 | 0.193835 | 3,147 | 94 | 166 | 33.478723 | 0.748522 | 0.269145 | 0 | 0.181818 | 1 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.121212 | 0 | 0.242424 | 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 |
a41f047eff72060bbac74e2a74f9dd6de186f0ff | 1,686 | py | Python | mods/libvis_mods/project-templates/test-interactive.py | danlkv/pywebviz | 5892ef90f28dbd43c33fefbfa5a199d15322a120 | [
"MIT"
] | null | null | null | mods/libvis_mods/project-templates/test-interactive.py | danlkv/pywebviz | 5892ef90f28dbd43c33fefbfa5a199d15322a120 | [
"MIT"
] | 3 | 2019-11-24T21:03:39.000Z | 2019-12-08T04:58:07.000Z | mods/libvis_mods/project-templates/test-interactive.py | DaniloZZZ/pywebviz | 5892ef90f28dbd43c33fefbfa5a199d15322a120 | [
"MIT"
] | null | null | null | from subprocess import Popen, PIPE
import sys
import os
from queue import Queue, Empty
import subprocess
import threading
import time
class LocalShell(object):
def __init__(self):
pass
def run(self, cmd):
env = os.environ.copy()
p = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=subproces... | 23.416667 | 94 | 0.497034 | 181 | 1,686 | 4.552486 | 0.414365 | 0.032767 | 0.050971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006883 | 0.396797 | 1,686 | 71 | 95 | 23.746479 | 0.803343 | 0.011862 | 0 | 0.210526 | 0 | 0 | 0.025841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 0.122807 | 0 | 0.263158 | 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 |
a421696588e0ceb94d1d9d488b0b035d21c50784 | 418 | py | Python | version.py | TheNomet/blackbricks | 9012134659892c3790a3906e87eb6e875efa24c0 | [
"MIT"
] | null | null | null | version.py | TheNomet/blackbricks | 9012134659892c3790a3906e87eb6e875efa24c0 | [
"MIT"
] | null | null | null | version.py | TheNomet/blackbricks | 9012134659892c3790a3906e87eb6e875efa24c0 | [
"MIT"
] | null | null | null | import re
import os
def get_version():
"""Return the current version number from blackbricks/__init__.py"""
with open(os.path.join(os.path.dirname(__file__), "blackbricks/__init__.py")) as f:
match = re.search(r'__version__ = "([0-9\.]+)"', f.read())
assert match, "No version in blackbricks/_... | 26.125 | 87 | 0.65311 | 57 | 418 | 4.263158 | 0.649123 | 0.185185 | 0.209877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.188995 | 418 | 15 | 88 | 27.866667 | 0.707965 | 0.148325 | 0 | 0 | 0 | 0 | 0.274286 | 0.131429 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0.111111 | 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 |
a423a15705ae500df4bec7d57aa1163a53723d5d | 300 | py | Python | assets/tinyurl.py | Code-Cecilia/BotMan.py | be0ed8c634f8aea6a8fd0b28875e5198047089ac | [
"MIT"
] | 4 | 2021-07-10T10:31:05.000Z | 2021-12-28T13:42:42.000Z | assets/tinyurl.py | prakarsh17/BotMan.py | be0ed8c634f8aea6a8fd0b28875e5198047089ac | [
"MIT"
] | null | null | null | assets/tinyurl.py | prakarsh17/BotMan.py | be0ed8c634f8aea6a8fd0b28875e5198047089ac | [
"MIT"
] | 5 | 2021-07-11T10:50:21.000Z | 2022-02-07T11:03:47.000Z | import aiohttp
async def get_tinyurl(link: str):
url = f"http://tinyurl.com/api-create.php?url={link}"
async with aiohttp.ClientSession() as session:
async with session.get(url) as response:
response = (await response.content.read()).decode('utf-8')
return response
| 30 | 70 | 0.673333 | 41 | 300 | 4.902439 | 0.658537 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004149 | 0.196667 | 300 | 9 | 71 | 33.333333 | 0.829876 | 0 | 0 | 0 | 0 | 0 | 0.163333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a42582888bd3b9eac23f70ca4067b7a11d622cc2 | 1,110 | py | Python | reservationen_package/db_util.py | cyrilwelschen/reservationen_package | 2ead27cedefecc4ceec3e95c5cd09b4b2b5e32da | [
"MIT"
] | null | null | null | reservationen_package/db_util.py | cyrilwelschen/reservationen_package | 2ead27cedefecc4ceec3e95c5cd09b4b2b5e32da | [
"MIT"
] | null | null | null | reservationen_package/db_util.py | cyrilwelschen/reservationen_package | 2ead27cedefecc4ceec3e95c5cd09b4b2b5e32da | [
"MIT"
] | null | null | null | import sqlite3
import os
class DbUtil:
def __init__(self, db_file):
self.db_path = db_file
self.conn = self.create_connection()
self.c = self.create_cursor()
def create_connection(self):
try:
os.remove(self.db_path)
print("removing existing db file")
... | 26.428571 | 63 | 0.589189 | 139 | 1,110 | 4.52518 | 0.410072 | 0.038156 | 0.047695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00657 | 0.314414 | 1,110 | 41 | 64 | 27.073171 | 0.819974 | 0.07027 | 0 | 0.064516 | 0 | 0 | 0.069971 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 1 | 0.193548 | false | 0 | 0.064516 | 0.032258 | 0.354839 | 0.129032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a42904a9e97510e853aa1a911cb4b14e460e3fbf | 10,199 | py | Python | bs4ocr.py | JKamlah/BackgroundSubtractor4OCR | 110df2b4c6c3e37ca4ffa0b6ffc0d65782e1d085 | [
"MIT"
] | 5 | 2021-02-10T15:01:12.000Z | 2022-01-12T06:12:41.000Z | bs4ocr.py | JKamlah/BackgroundSubtractor4OCR | 110df2b4c6c3e37ca4ffa0b6ffc0d65782e1d085 | [
"MIT"
] | null | null | null | bs4ocr.py | JKamlah/BackgroundSubtractor4OCR | 110df2b4c6c3e37ca4ffa0b6ffc0d65782e1d085 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import argparse
import subprocess
import sys
from pathlib import Path
import cv2
import numpy as np
# Command line arguments.
arg_parser = argparse.ArgumentParser(description='Subtract background for better OCR results.')
arg_parser.add_argument("fname", type=lambda x: Path(x), help="filename ... | 48.799043 | 120 | 0.626728 | 1,286 | 10,199 | 4.830482 | 0.211509 | 0.037669 | 0.046362 | 0.07727 | 0.274469 | 0.214746 | 0.172247 | 0.172247 | 0.086285 | 0.058596 | 0 | 0.020599 | 0.243161 | 10,199 | 208 | 121 | 49.033654 | 0.784169 | 0.043436 | 0 | 0.13986 | 0 | 0 | 0.165054 | 0.009347 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006993 | 0.048951 | null | null | 0.020979 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a42cb97b864d88564c18fec9adbd81a8bac2dc48 | 6,386 | py | Python | pystatreduce/optimize/OAS_Example1/pyopt_oas_problem.py | OptimalDesignLab/pyStatReduce | 9ea128409b91dd582e574e2e1cc153572b6c60a4 | [
"MIT"
] | null | null | null | pystatreduce/optimize/OAS_Example1/pyopt_oas_problem.py | OptimalDesignLab/pyStatReduce | 9ea128409b91dd582e574e2e1cc153572b6c60a4 | [
"MIT"
] | null | null | null | pystatreduce/optimize/OAS_Example1/pyopt_oas_problem.py | OptimalDesignLab/pyStatReduce | 9ea128409b91dd582e574e2e1cc153572b6c60a4 | [
"MIT"
] | null | null | null | # pyopt_oas_problem.py
# The following file contains the optimization of the deterministic problem shown
# in the quick example within OpenAeroStruct tutorial, the difference being,
# pyOptSparse is called separately, whereas the Quick example uses a driver.
import numpy as np
import chaospy as cp
# Import the OpenMDA... | 43.148649 | 121 | 0.588318 | 787 | 6,386 | 4.621347 | 0.336722 | 0.021171 | 0.026395 | 0.024746 | 0.172395 | 0.099533 | 0.075337 | 0.046192 | 0.025845 | 0.025845 | 0 | 0.018987 | 0.307235 | 6,386 | 147 | 122 | 43.442177 | 0.803119 | 0.282023 | 0 | 0.114943 | 0 | 0 | 0.143403 | 0.033715 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08046 | null | null | 0.011494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a430920d54250ffc9068f1cfb82576534289f44a | 926 | py | Python | logger.py | tommyvsfu1/ADL2019_ReinforcementLearning | 45e1e3bdef129efd85ed1856f88a255c129f571e | [
"MIT"
] | 1 | 2019-07-29T08:52:04.000Z | 2019-07-29T08:52:04.000Z | logger.py | tommyvsfu1/ADL2019_rl | 45e1e3bdef129efd85ed1856f88a255c129f571e | [
"MIT"
] | null | null | null | logger.py | tommyvsfu1/ADL2019_rl | 45e1e3bdef129efd85ed1856f88a255c129f571e | [
"MIT"
] | null | null | null | import torch
import torchvision
from torch.utils.tensorboard import SummaryWriter
from torchvision import datasets, transforms
# Writer will output to ./runs/ directory by default
class TensorboardLogger(object):
def __init__(self, dir):
"""Create a summary writer logging to log_dir."""
self.writer... | 31.931034 | 75 | 0.651188 | 126 | 926 | 4.619048 | 0.373016 | 0.103093 | 0.061856 | 0.017182 | 0.333333 | 0.333333 | 0.333333 | 0.333333 | 0.123711 | 0 | 0 | 0.008571 | 0.24406 | 926 | 28 | 76 | 33.071429 | 0.822857 | 0.102592 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.181818 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a43107975c568ca9c319cc922de8f8e7c3eb2d59 | 1,689 | py | Python | app/utils/generator.py | hpi-studyu/analysis-project-generator | e5f21bffd15a3007971966bfa3084e32dfc4ae2e | [
"MIT"
] | 1 | 2021-06-21T22:16:51.000Z | 2021-06-21T22:16:51.000Z | app/utils/generator.py | hpi-studyu/analysis-project-generator | e5f21bffd15a3007971966bfa3084e32dfc4ae2e | [
"MIT"
] | null | null | null | app/utils/generator.py | hpi-studyu/analysis-project-generator | e5f21bffd15a3007971966bfa3084e32dfc4ae2e | [
"MIT"
] | 1 | 2021-06-11T07:30:09.000Z | 2021-06-11T07:30:09.000Z | import json
import os
from dotenv import load_dotenv
from utils.copier import generate_files_from_template
from utils.gitlab_service import GitlabService
from utils.study_data import fetch_new_study_data
from utils.supabase_service import SupabaseService
load_dotenv()
def generate_repo(sbs: SupabaseService, gs: Gi... | 27.688525 | 102 | 0.701007 | 223 | 1,689 | 5.080717 | 0.300448 | 0.07767 | 0.031774 | 0.050309 | 0.120918 | 0.047661 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193606 | 1,689 | 60 | 103 | 28.15 | 0.831865 | 0 | 0 | 0 | 1 | 0.02381 | 0.143872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.166667 | 0.02381 | 0.333333 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4313c3afde552b01fc4aa17953a5c1482ba497b | 1,205 | py | Python | nogi/endpoints.py | Cooomma/nogi-backup-blog | 19868511d2b0f0c4d06bf4a88981bbfadc4121e4 | [
"MIT"
] | null | null | null | nogi/endpoints.py | Cooomma/nogi-backup-blog | 19868511d2b0f0c4d06bf4a88981bbfadc4121e4 | [
"MIT"
] | 164 | 2020-04-02T18:25:59.000Z | 2022-02-17T17:09:32.000Z | nogi/endpoints.py | Cooomma/nogi-backup-blog | 19868511d2b0f0c4d06bf4a88981bbfadc4121e4 | [
"MIT"
] | null | null | null | import requests
HEADERS = {
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36'
}
# Bilibili Videos Backup
def get_channel_info(member_id: int):
return requests.get(
url='https://api.bilibili.com/x/space/acc/info',
params=... | 32.567568 | 125 | 0.684647 | 170 | 1,205 | 4.705882 | 0.470588 | 0.03 | 0.085 | 0.1 | 0.2525 | 0.075 | 0.075 | 0 | 0 | 0 | 0 | 0.035928 | 0.168465 | 1,205 | 36 | 126 | 33.472222 | 0.762475 | 0.060581 | 0 | 0.227273 | 0 | 0.090909 | 0.285461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.045455 | 0.181818 | 0.409091 | 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 |
a4352da9dd1b51010b457889d86b78dea9bacffe | 3,498 | py | Python | logscanner.py | thiscodedbox/TerrariaPythonEmail | 6a852416d3d9d1def8241a43f1fdbdd2200a5f41 | [
"MIT"
] | null | null | null | logscanner.py | thiscodedbox/TerrariaPythonEmail | 6a852416d3d9d1def8241a43f1fdbdd2200a5f41 | [
"MIT"
] | null | null | null | logscanner.py | thiscodedbox/TerrariaPythonEmail | 6a852416d3d9d1def8241a43f1fdbdd2200a5f41 | [
"MIT"
] | null | null | null | # ThisCodedBox Terraria notifier python script
# last modified 26-MAY-2017
# time for pauses
# smtplib for notifications
# random to add that random string
import time
import smtplib
import random, string
#setup the random, random, random maker
def randomword(length):
return ''.join(random.choice(string.lowercase... | 31.8 | 113 | 0.712407 | 524 | 3,498 | 4.753817 | 0.471374 | 0.022079 | 0.01124 | 0.014452 | 0.063428 | 0.063428 | 0.063428 | 0.063428 | 0.063428 | 0.063428 | 0 | 0.014435 | 0.207833 | 3,498 | 109 | 114 | 32.091743 | 0.884518 | 0.533448 | 0 | 0.232558 | 0 | 0 | 0.217337 | 0.097362 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.046512 | 0.069767 | null | null | 0.116279 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a4356051345acfdbfa1f017b31e85e6a4f6cfa06 | 392 | py | Python | src/rosthrottle/tests/throttledListener.py | UTNuclearRoboticsPublic/rosthrottle | 96ceb94f8f7aa067f8ac4a7fdf37022dc98602cd | [
"BSD-3-Clause"
] | 3 | 2019-03-28T23:07:49.000Z | 2022-02-03T13:40:48.000Z | src/rosthrottle/tests/throttledListener.py | UTNuclearRoboticsPublic/rosthrottle | 96ceb94f8f7aa067f8ac4a7fdf37022dc98602cd | [
"BSD-3-Clause"
] | null | null | null | src/rosthrottle/tests/throttledListener.py | UTNuclearRoboticsPublic/rosthrottle | 96ceb94f8f7aa067f8ac4a7fdf37022dc98602cd | [
"BSD-3-Clause"
] | null | null | null | import rospy
from std_msgs.msg import String
def callback(data):
rospy.loginfo(rospy.get_caller_id() + "I heard %s", data.data)
def listener():
rospy.init_node('throttled_listener')
rospy.Subscriber('chatter_message_throttled', String, callback)
rospy.Subscriber('chatter_bandwidth_throttled', String,... | 23.058824 | 69 | 0.729592 | 49 | 392 | 5.489796 | 0.591837 | 0.096654 | 0.163569 | 0.208178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147959 | 392 | 16 | 70 | 24.5 | 0.805389 | 0 | 0 | 0 | 0 | 0 | 0.22449 | 0.132653 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.363636 | 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 |
a440a9c50897e10dd61250b643ff4c13e3e2544a | 989 | py | Python | envreader/field_getter.py | vd2org/envreader | 18b604a4010bb2e092ce30c4aa395d0bcc2f574e | [
"MIT"
] | 11 | 2020-10-12T18:47:46.000Z | 2021-04-11T19:11:51.000Z | envreader/field_getter.py | vd2org/envreader | 18b604a4010bb2e092ce30c4aa395d0bcc2f574e | [
"MIT"
] | null | null | null | envreader/field_getter.py | vd2org/envreader | 18b604a4010bb2e092ce30c4aa395d0bcc2f574e | [
"MIT"
] | null | null | null | # Copyright (C) 2020-2021 by Vd.
# This file is part of EnvReader, the modern environment variables processor.
# EnvReader is released under the MIT License (see LICENSE).
from typing import Callable, Optional
from .field import Field
class FieldGetter(Field):
def __init__(self, default, alias: str, transform:... | 28.257143 | 109 | 0.663296 | 124 | 989 | 5.040323 | 0.524194 | 0.0576 | 0.048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010724 | 0.245703 | 989 | 34 | 110 | 29.088235 | 0.827078 | 0.166835 | 0 | 0 | 0 | 0 | 0.082927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0.052632 | 0.526316 | 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 |
a441a2abb9a6c8c744240b63cb0843858bb83a0a | 2,220 | py | Python | flash/video/classification/input_transform.py | Actis92/lightning-flash | 49972268cfc0f95f1bd2b8fbf25036970cc44b59 | [
"Apache-2.0"
] | 1,457 | 2021-01-28T20:40:16.000Z | 2022-03-31T06:22:05.000Z | flash/video/classification/input_transform.py | Actis92/lightning-flash | 49972268cfc0f95f1bd2b8fbf25036970cc44b59 | [
"Apache-2.0"
] | 1,123 | 2021-01-28T20:37:56.000Z | 2022-03-31T19:34:44.000Z | flash/video/classification/input_transform.py | Actis92/lightning-flash | 49972268cfc0f95f1bd2b8fbf25036970cc44b59 | [
"Apache-2.0"
] | 170 | 2021-01-29T00:41:39.000Z | 2022-03-29T16:09:52.000Z | # Copyright The PyTorch Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 35.238095 | 105 | 0.722072 | 277 | 2,220 | 5.646209 | 0.483755 | 0.038363 | 0.046036 | 0.02046 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016338 | 0.20045 | 2,220 | 62 | 106 | 35.806452 | 0.864789 | 0.251802 | 0 | 0.102564 | 0 | 0 | 0.012143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.230769 | 0.025641 | 0.512821 | 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 |
a44a1bef5d7ae732b687359cc2a655806f7d79cb | 1,265 | py | Python | src/playbacker/clock.py | vrslev/playbacker | 8a9ceeeb6ca7f57d1b6b825f1615bcd831b1bbf0 | [
"MIT"
] | 1 | 2022-03-09T10:19:22.000Z | 2022-03-09T10:19:22.000Z | src/playbacker/clock.py | vrslev/playbacker | 8a9ceeeb6ca7f57d1b6b825f1615bcd831b1bbf0 | [
"MIT"
] | 1 | 2022-03-14T07:47:05.000Z | 2022-03-14T11:01:29.000Z | src/playbacker/clock.py | vrslev/playbacker | 8a9ceeeb6ca7f57d1b6b825f1615bcd831b1bbf0 | [
"MIT"
] | null | null | null | import time
from dataclasses import dataclass, field
from threading import Event, Thread
from typing import Callable, NoReturn
@dataclass
class Clock:
callback: Callable[[], None] = field(repr=False)
thread: Thread = field(init=False, repr=False)
started: Event = field(default_factory=Event, init=False, r... | 26.914894 | 73 | 0.625296 | 161 | 1,265 | 4.782609 | 0.31677 | 0.062338 | 0.093506 | 0.07013 | 0.135065 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007431 | 0.255336 | 1,265 | 46 | 74 | 27.5 | 0.809979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a45a99561e1681d6c6fc1f971590bdc26f4840a2 | 9,156 | py | Python | Crypt/Crypt/Crypt.py | wtglover/TOR | 9f455720be80dc18845e4b3d750b958c76b785d8 | [
"MIT"
] | null | null | null | Crypt/Crypt/Crypt.py | wtglover/TOR | 9f455720be80dc18845e4b3d750b958c76b785d8 | [
"MIT"
] | null | null | null | Crypt/Crypt/Crypt.py | wtglover/TOR | 9f455720be80dc18845e4b3d750b958c76b785d8 | [
"MIT"
] | null | null | null | from Crypto.PublicKey import RSA
from Crypto.Signature import pss
from Crypto.Hash import SHA256
from Crypto.Cipher import PKCS1_OAEP
from Crypto.Protocol.KDF import PBKDF2
from Crypto.Cipher import AES
from Crypto.Random import get_random_bytes
from os import urandom
import struct
import logging
import sys
crypt_log... | 32.126316 | 140 | 0.60758 | 1,174 | 9,156 | 4.589438 | 0.170358 | 0.048441 | 0.016704 | 0.016704 | 0.332777 | 0.260022 | 0.252042 | 0.23608 | 0.226986 | 0.221232 | 0 | 0.022037 | 0.266492 | 9,156 | 284 | 141 | 32.239437 | 0.780226 | 0.042704 | 0 | 0.227513 | 0 | 0.010582 | 0.084692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.026455 | 0.058201 | null | null | 0.031746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a45c54898646485ca8a395d3ebe39bca5668f8f7 | 4,646 | py | Python | Incident-Response/Tools/grr/grr/client/grr_response_client/unprivileged/memory/client.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 1 | 2021-07-24T17:22:50.000Z | 2021-07-24T17:22:50.000Z | Incident-Response/Tools/grr/grr/client/grr_response_client/unprivileged/memory/client.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 2 | 2022-02-28T03:40:31.000Z | 2022-02-28T03:40:52.000Z | Incident-Response/Tools/grr/grr/client/grr_response_client/unprivileged/memory/client.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 2 | 2022-02-25T08:34:51.000Z | 2022-03-16T17:29:44.000Z | #!/usr/bin/env python
"""Unprivileged memory RPC client code."""
import abc
from typing import TypeVar, Generic
from grr_response_client.unprivileged import communication
from grr_response_client.unprivileged.proto import memory_pb2
class ConnectionWrapper:
"""Wraps a connection, adding protobuf serialization of ... | 32.041379 | 80 | 0.730736 | 484 | 4,646 | 6.822314 | 0.25 | 0.062689 | 0.029073 | 0.030285 | 0.216838 | 0.16172 | 0.132647 | 0.07026 | 0.03513 | 0.03513 | 0 | 0.006046 | 0.181231 | 4,646 | 144 | 81 | 32.263889 | 0.861987 | 0.210288 | 0 | 0.184211 | 0 | 0 | 0.00904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0.039474 | 0.052632 | 0.052632 | 0.460526 | 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 |
a45e42d5198669ce96a7184bea59d4ec91547d5f | 4,836 | py | Python | mpqa.py | trondth/master | 607ec69c44498f60ecb339d8b1ac61900d5f88d5 | [
"MIT"
] | null | null | null | mpqa.py | trondth/master | 607ec69c44498f60ecb339d8b1ac61900d5f88d5 | [
"MIT"
] | null | null | null | mpqa.py | trondth/master | 607ec69c44498f60ecb339d8b1ac61900d5f88d5 | [
"MIT"
] | null | null | null | import ast
import os
import random
import re
from collections import OrderedDict
from future_builtins import zip
import shlex
from masters_project_config import *
def pairwise(iterable):
"""
@param iterable: List or other iterable
@return: List of tuples
"""
a = iter(iterable)
return zip(a, a)
... | 34.297872 | 98 | 0.594293 | 611 | 4,836 | 4.630115 | 0.252046 | 0.009191 | 0.02333 | 0.049487 | 0.417815 | 0.411806 | 0.3655 | 0.321315 | 0.321315 | 0.30152 | 0 | 0.068027 | 0.270471 | 4,836 | 140 | 99 | 34.542857 | 0.733844 | 0.106493 | 0 | 0.205128 | 0 | 0 | 0.079923 | 0.021914 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.102564 | null | null | 0.012821 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a46137ca6f438ea9b0aedbc1aacb3262c260e4eb | 206 | py | Python | 0062 The Accountant.py | ansabgillani/binarysearchcomproblems | 12fe8632f8cbb5058c91a55bae53afa813a3247e | [
"MIT"
] | 1 | 2020-12-29T21:17:26.000Z | 2020-12-29T21:17:26.000Z | 0062 The Accountant.py | ansabgillani/binarysearchcomproblems | 12fe8632f8cbb5058c91a55bae53afa813a3247e | [
"MIT"
] | null | null | null | 0062 The Accountant.py | ansabgillani/binarysearchcomproblems | 12fe8632f8cbb5058c91a55bae53afa813a3247e | [
"MIT"
] | 4 | 2021-09-09T17:42:43.000Z | 2022-03-18T04:54:03.000Z | class Solution:
def solve(self, n):
ans = []
while n > 0:
ans.append(chr(ord("A") + (n-1)%26))
n = (n-1)//26
ans.reverse()
return "".join(ans)
| 17.166667 | 48 | 0.407767 | 27 | 206 | 3.111111 | 0.666667 | 0.047619 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057377 | 0.407767 | 206 | 11 | 49 | 18.727273 | 0.631148 | 0 | 0 | 0 | 0 | 0 | 0.004854 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a466271b56a3cbf6005255070a1874c98dcdbc24 | 630 | py | Python | market/migrations/0008_auto_20161206_2042.py | zhanhailiu/Market | 640975c2d83edcdc9ab6ab1723e4efaaec00904d | [
"MIT"
] | 39 | 2017-03-05T10:42:19.000Z | 2021-09-22T04:00:51.000Z | market/migrations/0008_auto_20161206_2042.py | VNRKDOEA/flea_market | d4fa8a0834edc1f902632d8ac5c0316245e63d7c | [
"MIT"
] | 3 | 2018-03-24T11:13:09.000Z | 2019-04-16T03:30:20.000Z | market/migrations/0008_auto_20161206_2042.py | VNRKDOEA/flea_market | d4fa8a0834edc1f902632d8ac5c0316245e63d7c | [
"MIT"
] | 14 | 2017-03-05T10:55:43.000Z | 2019-04-27T10:47:36.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-12-06 12:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('market', '0007_goods_publish_time'),
]
operations = [
migrations.AlterField... | 24.230769 | 61 | 0.596825 | 67 | 630 | 5.432836 | 0.61194 | 0.098901 | 0.137363 | 0.159341 | 0.456044 | 0.456044 | 0.456044 | 0 | 0 | 0 | 0 | 0.046563 | 0.284127 | 630 | 25 | 62 | 25.2 | 0.760532 | 0.107937 | 0 | 0.444444 | 1 | 0 | 0.103757 | 0.041145 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 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 |
a47060d98b703fd77ca681ec5c2a459683896475 | 329 | py | Python | source/functions/Key_generate.py | GucciHsuan/CampusCyberInspectionTool2021 | 86636f777192e492f4342519e30a975a6a58b8ab | [
"MIT"
] | null | null | null | source/functions/Key_generate.py | GucciHsuan/CampusCyberInspectionTool2021 | 86636f777192e492f4342519e30a975a6a58b8ab | [
"MIT"
] | null | null | null | source/functions/Key_generate.py | GucciHsuan/CampusCyberInspectionTool2021 | 86636f777192e492f4342519e30a975a6a58b8ab | [
"MIT"
] | null | null | null | from cryptography.fernet import Fernet
class Key_generate:
def write_key():
"""
Generates a key and save it into a file
"""
key = Fernet.generate_key()
with open("key.key", "wb") as key_file:
key_file.write(key)
key = open("key.key", "rb").read()
pr... | 25.307692 | 47 | 0.559271 | 44 | 329 | 4.068182 | 0.522727 | 0.100559 | 0.111732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.316109 | 329 | 12 | 48 | 27.416667 | 0.795556 | 0.118541 | 0 | 0 | 1 | 0 | 0.067164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a475d48e3dd0f12a90c01b9bbace975c09a88464 | 1,688 | py | Python | lib/data_stores/tdb_data_store_test.py | nahidupa/grr | 100a9d85ef2abb234e12e3ac2623caffb4116be7 | [
"Apache-2.0"
] | 1 | 2016-02-13T15:40:20.000Z | 2016-02-13T15:40:20.000Z | lib/data_stores/tdb_data_store_test.py | nahidupa/grr | 100a9d85ef2abb234e12e3ac2623caffb4116be7 | [
"Apache-2.0"
] | 3 | 2020-09-11T12:54:50.000Z | 2020-09-11T12:55:01.000Z | lib/data_stores/tdb_data_store_test.py | nahidupa/grr | 100a9d85ef2abb234e12e3ac2623caffb4116be7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""Tests the tdb data store - in memory implementation."""
import shutil
# pylint: disable=unused-import,g-bad-import-order
from grr.lib import server_plugins
# pylint: enable=unused-import,g-bad-import-order
from grr.lib import access_control
from grr.lib import config_lib
from grr.lib import... | 26.793651 | 79 | 0.721564 | 209 | 1,688 | 5.636364 | 0.37799 | 0.114601 | 0.067912 | 0.095076 | 0.234295 | 0.234295 | 0.132428 | 0.073005 | 0.073005 | 0.073005 | 0 | 0 | 0.179502 | 1,688 | 62 | 80 | 27.225806 | 0.850542 | 0.175948 | 0 | 0 | 0 | 0 | 0.053402 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 1 | 0.121212 | false | 0.030303 | 0.272727 | 0 | 0.515152 | 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 |
a4789fd08b5c42f466bd0985deac2a23273798a3 | 1,556 | py | Python | android-runner/ExperimentRunner/MonkeyRunner.py | S2-group/mobilesoft-2020-caching-pwa-replication-package | 83ad21ba4c7a6a430103caa6616296cbdcf17de3 | [
"MIT"
] | null | null | null | android-runner/ExperimentRunner/MonkeyRunner.py | S2-group/mobilesoft-2020-caching-pwa-replication-package | 83ad21ba4c7a6a430103caa6616296cbdcf17de3 | [
"MIT"
] | null | null | null | android-runner/ExperimentRunner/MonkeyRunner.py | S2-group/mobilesoft-2020-caching-pwa-replication-package | 83ad21ba4c7a6a430103caa6616296cbdcf17de3 | [
"MIT"
] | 2 | 2020-10-26T17:04:29.000Z | 2020-10-27T13:06:52.000Z | import subprocess
from ExperimentRunner.Script import Script
class MonkeyRunner(Script):
"""
Subclass of `Script` for running MonkeyRunner scripts directly.
As opposed to `MonkeyReplay`, it runs the scripts directly using MonkeyRunner.
Thanks to that it's not necessary to go through a layer of indir... | 37.95122 | 93 | 0.717866 | 205 | 1,556 | 5.370732 | 0.517073 | 0.018165 | 0.039964 | 0.059946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002447 | 0.212082 | 1,556 | 40 | 94 | 38.9 | 0.895595 | 0.598329 | 0 | 0 | 0 | 0 | 0.022989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 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 |
a47a104f4436ed5af42549b1664012b865a7dae9 | 1,792 | py | Python | data_structures/tests/test_union_find.py | tzaffi/PyAlgo | 465cb238be93b9246308e330ce54748c9d2dcc98 | [
"MIT"
] | null | null | null | data_structures/tests/test_union_find.py | tzaffi/PyAlgo | 465cb238be93b9246308e330ce54748c9d2dcc98 | [
"MIT"
] | null | null | null | data_structures/tests/test_union_find.py | tzaffi/PyAlgo | 465cb238be93b9246308e330ce54748c9d2dcc98 | [
"MIT"
] | null | null | null | from data_structures.union_find import UnionFind
def test_init():
ds = UnionFind([1, 2, 3])
assert ds._elts == {1, 2, 3}
assert ds._reps == {1, 2, 3}
assert ds._comp_count == 3
assert ds._parent[2] == 2
def test_union_find():
ds = UnionFind([1, 2, 3])
assert ds.find(3) == 3
assert 3... | 19.692308 | 58 | 0.55971 | 295 | 1,792 | 3.315254 | 0.155932 | 0.04499 | 0.130879 | 0.102249 | 0.428425 | 0.255624 | 0.234151 | 0.189162 | 0.164622 | 0.113497 | 0 | 0.081967 | 0.285156 | 1,792 | 90 | 59 | 19.911111 | 0.681499 | 0 | 0 | 0.295082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.47541 | 1 | 0.131148 | false | 0 | 0.016393 | 0 | 0.196721 | 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 |
a47b53e60aa814daf088930c99c6780525dbdd3b | 3,772 | py | Python | Leak #5 - Lost In Translation/windows/Resources/Python/Core/Lib/contextlib.py | bidhata/EquationGroupLeaks | 1ff4bc115cb2bd5bf2ed6bf769af44392926830c | [
"Unlicense"
] | 9 | 2019-11-22T04:58:40.000Z | 2022-02-26T16:47:28.000Z | Leak #5 - Lost In Translation/windows/Resources/Python/Core/Lib/contextlib.py | bidhata/EquationGroupLeaks | 1ff4bc115cb2bd5bf2ed6bf769af44392926830c | [
"Unlicense"
] | null | null | null | Leak #5 - Lost In Translation/windows/Resources/Python/Core/Lib/contextlib.py | bidhata/EquationGroupLeaks | 1ff4bc115cb2bd5bf2ed6bf769af44392926830c | [
"Unlicense"
] | 8 | 2017-09-27T10:31:18.000Z | 2022-01-08T10:30:46.000Z | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
# [GCC 6.2.0 20161005]
# Embedded file name: contextlib.py
"""Utilities for with-statement contexts. See PEP 343."""
import sys
from functools import wraps
from warnings import warn
__all__ = [... | 24.335484 | 97 | 0.540827 | 402 | 3,772 | 4.967662 | 0.378109 | 0.024036 | 0.039059 | 0.045068 | 0.13971 | 0.075113 | 0.04006 | 0.04006 | 0 | 0 | 0 | 0.01974 | 0.36877 | 3,772 | 155 | 98 | 24.335484 | 0.818984 | 0.046129 | 0 | 0.28169 | 0 | 0 | 0.0765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042254 | 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 |
a47dad2eddf4b7b409c6bc7829fa645f81b0181a | 247 | py | Python | assignment1/mapper.py | IITDU-BSSE06/ads-demystifying-the-logs-Sabir001 | d9354b1bd411d54c07d8b5cd6b570fbc3430fa4e | [
"MIT"
] | null | null | null | assignment1/mapper.py | IITDU-BSSE06/ads-demystifying-the-logs-Sabir001 | d9354b1bd411d54c07d8b5cd6b570fbc3430fa4e | [
"MIT"
] | null | null | null | assignment1/mapper.py | IITDU-BSSE06/ads-demystifying-the-logs-Sabir001 | d9354b1bd411d54c07d8b5cd6b570fbc3430fa4e | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
for line in sys.stdin:
data = line.strip().split("- -")
if len(data) == 2:
ipAddress, rest = data
if ipAddress.strip() == "10.99.99.186":
print "{0}".format(ipAddress)
| 20.583333 | 48 | 0.522267 | 32 | 247 | 4.03125 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063953 | 0.303644 | 247 | 11 | 49 | 22.454545 | 0.686047 | 0.064777 | 0 | 0 | 0 | 0 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4802ccb412d2e4a0c7b912e6bcdc0dae9fea956 | 3,268 | py | Python | blender-processing-scripts/render/master_image_from_angle.py | MikeFesta/3xr | e4b8a7a0db61c9247d590f293f67c9baacf77a7f | [
"Apache-2.0"
] | 7 | 2021-11-16T14:26:47.000Z | 2021-12-22T13:27:24.000Z | blender-processing-scripts/render/master_image_from_angle.py | MikeFesta/3xr | e4b8a7a0db61c9247d590f293f67c9baacf77a7f | [
"Apache-2.0"
] | null | null | null | blender-processing-scripts/render/master_image_from_angle.py | MikeFesta/3xr | e4b8a7a0db61c9247d590f293f67c9baacf77a7f | [
"Apache-2.0"
] | null | null | null | # SPDX-License-Identifier: Apache-2.0
import bpy
import math
import os
import time
from xrs import automate as xra
## Depricated - used to render asset submissions
# rename
xra.log_info('Rendering Asset Master Image from angle')
arguments = xra.get_command_line_arguments()
working_dir = arguments[0]
asset_name = argu... | 33.690722 | 128 | 0.74847 | 503 | 3,268 | 4.727634 | 0.335984 | 0.022708 | 0.033642 | 0.044155 | 0.179983 | 0.08831 | 0.061396 | 0.032801 | 0.032801 | 0 | 0 | 0.007394 | 0.130967 | 3,268 | 96 | 129 | 34.041667 | 0.82993 | 0.232252 | 0 | 0.033333 | 0 | 0 | 0.160032 | 0.018496 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0.016667 | false | 0 | 0.083333 | 0 | 0.116667 | 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 |
a48a7d9132afb5cadff9d406cc26981eed66ecd8 | 1,961 | py | Python | AnEnsembleForPointEstimate/PredictWindSpd.py | AmateurZhang/EnjoyWithDataOnPowerSystems | 64227d0505012d2b5650874c65268e85d9751a17 | [
"MIT"
] | null | null | null | AnEnsembleForPointEstimate/PredictWindSpd.py | AmateurZhang/EnjoyWithDataOnPowerSystems | 64227d0505012d2b5650874c65268e85d9751a17 | [
"MIT"
] | null | null | null | AnEnsembleForPointEstimate/PredictWindSpd.py | AmateurZhang/EnjoyWithDataOnPowerSystems | 64227d0505012d2b5650874c65268e85d9751a17 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 2 22:39:11 2017
@author: thuzhang
"""
#Predict WindSpeed(WINDSPD)
#packages
import numpy as np
import pandas as pd
import sklearn.svm as svm
from sklearn.cross_validation import train_test_split
import matplotlib.pyplot as plt
from sklearn.ensemble import RandomForestR... | 27.236111 | 87 | 0.682305 | 285 | 1,961 | 4.575439 | 0.414035 | 0.02454 | 0.034509 | 0.038344 | 0.062883 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033231 | 0.171341 | 1,961 | 72 | 88 | 27.236111 | 0.769231 | 0.415094 | 0 | 0 | 0 | 0 | 0.038809 | 0.019856 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.304348 | 0 | 0.391304 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a48b96bc2c6792cbe3875132d6c4d671c6e73c34 | 2,086 | py | Python | wca/components.py | Rajpratik71/workload-collocation-agent | 6cf7bdab97ff61d85c21c3effecea632a225c668 | [
"Apache-2.0"
] | 40 | 2019-05-16T16:42:33.000Z | 2021-11-18T06:33:03.000Z | wca/components.py | Rajpratik71/workload-collocation-agent | 6cf7bdab97ff61d85c21c3effecea632a225c668 | [
"Apache-2.0"
] | 72 | 2019-05-09T02:30:25.000Z | 2020-11-17T09:24:44.000Z | wca/components.py | Rajpratik71/workload-collocation-agent | 6cf7bdab97ff61d85c21c3effecea632a225c668 | [
"Apache-2.0"
] | 26 | 2019-05-20T09:13:38.000Z | 2021-12-15T17:57:21.000Z | # Copyright (c) 2018 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 31.134328 | 74 | 0.770853 | 259 | 2,086 | 6.146718 | 0.505792 | 0.057161 | 0.057161 | 0.037688 | 0.030151 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004632 | 0.1721 | 2,086 | 66 | 75 | 31.606061 | 0.917197 | 0.314957 | 0 | 0 | 0 | 0 | 0.010616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.386364 | 0 | 0.409091 | 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 |
a490c6e7bf52d7eca2b985bad599b8a5fb5357a1 | 3,677 | py | Python | gallery/admin.py | lukacu/django-gallery | e77484e48e7f9c5055af90111546c4b05411c4a8 | [
"BSD-3-Clause"
] | 2 | 2021-08-31T21:52:22.000Z | 2022-01-11T01:33:02.000Z | gallery/admin.py | TrissieTheHusky/django-gallery | e77484e48e7f9c5055af90111546c4b05411c4a8 | [
"BSD-3-Clause"
] | null | null | null | gallery/admin.py | TrissieTheHusky/django-gallery | e77484e48e7f9c5055af90111546c4b05411c4a8 | [
"BSD-3-Clause"
] | 3 | 2021-08-31T21:01:19.000Z | 2021-09-01T14:17:15.000Z | #!/usr/bin/python
# -*- Mode: python; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*-
from django.conf import settings
from django.contrib.admin.util import unquote
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404... | 41.784091 | 173 | 0.664944 | 490 | 3,677 | 4.74898 | 0.291837 | 0.023206 | 0.01719 | 0.025784 | 0.189944 | 0.148689 | 0.148689 | 0.102278 | 0.071336 | 0.071336 | 0 | 0.004696 | 0.189285 | 3,677 | 87 | 174 | 42.264368 | 0.775914 | 0.025292 | 0 | 0.071429 | 0 | 0.028571 | 0.20372 | 0.077825 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.171429 | 0 | 0.514286 | 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 |
a4963a0f14f77188c8a84fb2c17630eb765001a4 | 1,046 | py | Python | api/migrations/0078_lightningtalk.py | pythonkr/pyconkr-api | 077e122a0af37122c5b424870cf91b8fca91a9f5 | [
"Apache-2.0"
] | 25 | 2018-12-09T07:56:16.000Z | 2020-12-24T08:20:41.000Z | api/migrations/0078_lightningtalk.py | pythonkr/pyconkr-api | 077e122a0af37122c5b424870cf91b8fca91a9f5 | [
"Apache-2.0"
] | 100 | 2018-12-13T02:01:42.000Z | 2022-03-11T23:40:25.000Z | api/migrations/0078_lightningtalk.py | pythonkr/pyconkr-api | 077e122a0af37122c5b424870cf91b8fca91a9f5 | [
"Apache-2.0"
] | 8 | 2019-01-05T05:02:27.000Z | 2019-08-09T08:14:49.000Z | # Generated by Django 2.2 on 2019-08-04 07:15
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('api', '0077_auto_20190729_... | 37.357143 | 143 | 0.635755 | 114 | 1,046 | 5.692982 | 0.570175 | 0.03698 | 0.043143 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041147 | 0.23327 | 1,046 | 27 | 144 | 38.740741 | 0.76808 | 0.041109 | 0 | 0 | 1 | 0 | 0.092907 | 0.022977 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.285714 | 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 |
a49b50ce351002adf68279af8d4977a9456780ba | 1,181 | py | Python | dolosse/data_formats/ldf/header.py | Tobias2023/dolosse | 7e56a84d7da2a3f0d6d409f1cb7ea5accb12cac5 | [
"Apache-2.0"
] | 9 | 2019-05-17T11:27:02.000Z | 2020-12-18T15:37:48.000Z | dolosse/data_formats/ldf/header.py | Tobias2023/dolosse | 7e56a84d7da2a3f0d6d409f1cb7ea5accb12cac5 | [
"Apache-2.0"
] | 84 | 2019-04-08T10:10:37.000Z | 2020-11-16T00:46:54.000Z | dolosse/data_formats/ldf/header.py | Tobias2023/dolosse | 7e56a84d7da2a3f0d6d409f1cb7ea5accb12cac5 | [
"Apache-2.0"
] | 5 | 2019-11-09T18:23:48.000Z | 2020-05-08T12:24:55.000Z | """
file: header.py
brief: Defines how to handle an LDF Header buffer
author: S. V. Paulauskas
date: February 04, 2019
"""
import struct
import dolosse.constants.data as data
class LdfHeader:
"""
Defines a structure that reads the header information from a ORNL HEAD buffer
"""
def __init__(self):
... | 33.742857 | 87 | 0.614733 | 155 | 1,181 | 4.6 | 0.445161 | 0.098177 | 0.137447 | 0.176718 | 0.230014 | 0.230014 | 0.089762 | 0.089762 | 0 | 0 | 0 | 0.017084 | 0.256562 | 1,181 | 34 | 88 | 34.735294 | 0.794989 | 0.297206 | 0 | 0 | 0 | 0 | 0.065104 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 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 |
a49dded232a0e7c42aa1c33341c2b6ecf3eb18ea | 2,450 | py | Python | Server_free_login_script/main.py | Ahrli/fast_tools | 144d764e4f169d3ab3753dcc6a79db9f9449de59 | [
"Apache-2.0"
] | 1 | 2021-12-11T16:33:47.000Z | 2021-12-11T16:33:47.000Z | Server_free_login_script/main.py | webclinic017/fast_tools | 144d764e4f169d3ab3753dcc6a79db9f9449de59 | [
"Apache-2.0"
] | null | null | null | Server_free_login_script/main.py | webclinic017/fast_tools | 144d764e4f169d3ab3753dcc6a79db9f9449de59 | [
"Apache-2.0"
] | 3 | 2021-11-22T09:46:43.000Z | 2022-01-28T22:33:07.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
' a test module '
import time
__author__ = 'Ahrli Tao'
import paramiko
# username = "ahrli"
# password = "123456"
'''需要免密码登录服务器列表'''
################## 修改这里 别的不要动 ##########################
# 用户 ip 密码
hostname_list=[
('root','192.168.0.108','123456'),
]
################... | 23.557692 | 81 | 0.609796 | 301 | 2,450 | 4.830565 | 0.378738 | 0.099037 | 0.099037 | 0.045392 | 0.503439 | 0.409904 | 0.409904 | 0.409904 | 0.352132 | 0.352132 | 0 | 0.02487 | 0.212245 | 2,450 | 103 | 82 | 23.786408 | 0.728497 | 0.148571 | 0 | 0.362069 | 0 | 0 | 0.089286 | 0.013265 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.189655 | 0.034483 | 0 | 0.12069 | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a49f7fbafe4ad77a7cc8f95d82c4d1e415004c8d | 508 | py | Python | torch_glow/tests/nodes/floor_test.py | dreiss/glow | 54c7625053bfb14955c4402ab8d9bca85195d53c | [
"Apache-2.0"
] | 1 | 2020-09-20T16:33:40.000Z | 2020-09-20T16:33:40.000Z | torch_glow/tests/nodes/floor_test.py | dreiss/glow | 54c7625053bfb14955c4402ab8d9bca85195d53c | [
"Apache-2.0"
] | 10 | 2020-08-09T11:46:55.000Z | 2020-12-03T04:38:52.000Z | torch_glow/tests/nodes/floor_test.py | dreiss/glow | 54c7625053bfb14955c4402ab8d9bca85195d53c | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import, division, print_function, unicode_literals
import unittest
import torch
from tests.utils import jitVsGlow
class TestFloor(unittest.TestCase):
def test_floor(self):
"""Basic test of the PyTorch floor Node on Glow."""
def test_f(a, b):
c = a + b... | 24.190476 | 82 | 0.620079 | 72 | 508 | 4.208333 | 0.611111 | 0.046205 | 0.072607 | 0.079208 | 0.085809 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016349 | 0.277559 | 508 | 20 | 83 | 25.4 | 0.809264 | 0.088583 | 0 | 0 | 0 | 0 | 0.02407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.615385 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.