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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1e03ed577f62b4839e55690fb48c279d0a38fc65 | 28,226 | py | Python | libs/graph_embeddings/graph_embeddings/embeddings.py | skojaku/residual2vec | ea10caae3c2671953fbc295358040baa36ee1547 | [
"MIT"
] | 2 | 2022-01-20T18:03:11.000Z | 2022-03-04T08:21:42.000Z | libs/graph_embeddings/graph_embeddings/embeddings.py | skojaku/residual2vec | ea10caae3c2671953fbc295358040baa36ee1547 | [
"MIT"
] | null | null | null | libs/graph_embeddings/graph_embeddings/embeddings.py | skojaku/residual2vec | ea10caae3c2671953fbc295358040baa36ee1547 | [
"MIT"
] | null | null | null | """Modules for graph embedding methods."""
import logging
import gensim
import networkx as nx
import numpy as np
import pandas as pd
# For GCN
import stellargraph as sg
import tensorflow as tf
from graph_embeddings import samplers, utils
from scipy import sparse
from sklearn import model_selection
from stellargraph.... | 32.406429 | 132 | 0.571034 | 3,525 | 28,226 | 4.420426 | 0.114326 | 0.030035 | 0.012129 | 0.016943 | 0.730009 | 0.695546 | 0.670838 | 0.655372 | 0.628546 | 0.608202 | 0 | 0.016716 | 0.323921 | 28,226 | 870 | 133 | 32.443678 | 0.799822 | 0.145965 | 0 | 0.635 | 0 | 0.001667 | 0.017277 | 0 | 0 | 0 | 0 | 0.002299 | 0 | 1 | 0.055 | false | 0.003333 | 0.051667 | 0 | 0.158333 | 0.001667 | 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 |
1e05d2ddced6438f7254bbde6bd745d89e9f2ec4 | 3,733 | py | Python | djusagi/bin/contacts_update.py | carthage-college/django-djusagi | 8fb2fe0b9100ac4bd6ebd0ea7cf44d732f7fcc5a | [
"BSD-3-Clause"
] | null | null | null | djusagi/bin/contacts_update.py | carthage-college/django-djusagi | 8fb2fe0b9100ac4bd6ebd0ea7cf44d732f7fcc5a | [
"BSD-3-Clause"
] | 2 | 2020-03-06T14:09:23.000Z | 2021-11-30T21:33:26.000Z | djusagi/bin/contacts_update.py | carthage-college/django-djusagi | 8fb2fe0b9100ac4bd6ebd0ea7cf44d732f7fcc5a | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import os, sys
# env
sys.path.append('/usr/local/lib/python2.7/dist-packages/')
sys.path.append('/usr/lib/python2.7/dist-packages/')
sys.path.append('/usr/lib/python2.7/')
sys.path.append('/data2/django_projects/')
sys.path.append('/data2/django_third/')
os.environ.setdefault("DJANGO_SETTINGS_... | 26.856115 | 80 | 0.556389 | 425 | 3,733 | 4.8 | 0.390588 | 0.017157 | 0.031863 | 0.023529 | 0.067157 | 0.043627 | 0.043627 | 0.043627 | 0.043627 | 0.043627 | 0 | 0.006392 | 0.329494 | 3,733 | 138 | 81 | 27.050725 | 0.80863 | 0.053576 | 0 | 0.1 | 0 | 0.011111 | 0.252606 | 0.035868 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.077778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1e0fb8e5cdbf2596f9936f5922fbf205cea62135 | 5,965 | py | Python | src/functions.py | directedbyshawn/Spotlight | 80fa18a038ef0ac996bc5102c097587f7f3a54be | [
"MIT"
] | null | null | null | src/functions.py | directedbyshawn/Spotlight | 80fa18a038ef0ac996bc5102c097587f7f3a54be | [
"MIT"
] | null | null | null | src/functions.py | directedbyshawn/Spotlight | 80fa18a038ef0ac996bc5102c097587f7f3a54be | [
"MIT"
] | null | null | null | '''
Basic functions used throughout the entirety
of the project.
---------------------------------------------------
---------------------------------------------------
---------------------------------------------------
---------------------------------------------------
-----------------... | 27.615741 | 142 | 0.524895 | 691 | 5,965 | 4.474674 | 0.272069 | 0.032018 | 0.032988 | 0.04075 | 0.320505 | 0.300453 | 0.242885 | 0.222833 | 0.203105 | 0.159767 | 0 | 0.011717 | 0.255993 | 5,965 | 215 | 143 | 27.744186 | 0.684993 | 0.424811 | 0 | 0.16129 | 0 | 0 | 0.147264 | 0.015589 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112903 | false | 0.096774 | 0.032258 | 0 | 0.209677 | 0.080645 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1e0fdbf7190da408c69ac345f5e674132d380c9e | 5,059 | py | Python | ghidra_9.0/Ghidra/Features/Base/ghidra_scripts/mark_in_out.py | ChristopherMorrison/ghidra | e53aa57d1aff79a1df93728f746705c58fe95ab0 | [
"Apache-2.0"
] | 3 | 2019-11-14T13:11:35.000Z | 2019-12-02T20:51:49.000Z | ghidra_9.0/Ghidra/Features/Base/ghidra_scripts/mark_in_out.py | ChristopherMorrison/ghidra | e53aa57d1aff79a1df93728f746705c58fe95ab0 | [
"Apache-2.0"
] | 3 | 2019-07-17T22:51:04.000Z | 2019-12-04T05:43:56.000Z | ghidra_9.0/Ghidra/Features/Base/ghidra_scripts/mark_in_out.py | ChristopherMorrison/ghidra | e53aa57d1aff79a1df93728f746705c58fe95ab0 | [
"Apache-2.0"
] | 3 | 2019-12-02T13:36:50.000Z | 2019-12-04T05:40:12.000Z | # Sets up IOPORT IN/OUT references for the Program
#@category Instructions
# Before running this script, you should have created an OVERLAY memory
# space called IOMEM, starting at address 0, size 0x10000.
#
# Note: This script is rather sloppy and should probably be cleaned up.
from ghidra.program.model.lang.Operand... | 50.59 | 82 | 0.572247 | 498 | 5,059 | 5.789157 | 0.319277 | 0.010406 | 0.029136 | 0.030524 | 0.495317 | 0.444676 | 0.422477 | 0.422477 | 0.422477 | 0.409296 | 0 | 0.011233 | 0.348883 | 5,059 | 99 | 83 | 51.10101 | 0.863995 | 0.250445 | 0 | 0.321429 | 0 | 0 | 0.026222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017857 | 0.053571 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e12e199bdc44676eec4cb40e4b40d0b6977cd06 | 259 | py | Python | watermarks/settings.py | pmaigutyak/mp-watermarks | a5d3e2e00fcfbeee2b06a110b1bc796c809feb5a | [
"0BSD"
] | 2 | 2018-02-26T21:58:57.000Z | 2021-09-25T14:31:38.000Z | watermarks/settings.py | pmaigutyak/mp-watermarks | a5d3e2e00fcfbeee2b06a110b1bc796c809feb5a | [
"0BSD"
] | 2 | 2022-01-13T00:41:17.000Z | 2022-02-16T08:52:21.000Z | watermarks/settings.py | pmaigutyak/mp-watermarks | a5d3e2e00fcfbeee2b06a110b1bc796c809feb5a | [
"0BSD"
] | null | null | null |
class WatermarksSettings(object):
@property
def INSTALLED_APPS(self):
apps = super().INSTALLED_APPS + ['watermarks']
if 'imagekit' not in apps:
apps.append('imagekit')
return apps
default = WatermarksSettings
| 17.266667 | 54 | 0.629344 | 25 | 259 | 6.44 | 0.68 | 0.161491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.274131 | 259 | 14 | 55 | 18.5 | 0.856383 | 0 | 0 | 0 | 0 | 0 | 0.100775 | 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 |
1e19aaec4f9f9c19341dbc0cda0f3aa30674340b | 1,066 | py | Python | examples/example.py | jacobdeery/souvlaki | 4e420857b02ff6dfa626c2b45f00efb564edc1a0 | [
"MIT"
] | null | null | null | examples/example.py | jacobdeery/souvlaki | 4e420857b02ff6dfa626c2b45f00efb564edc1a0 | [
"MIT"
] | null | null | null | examples/example.py | jacobdeery/souvlaki | 4e420857b02ff6dfa626c2b45f00efb564edc1a0 | [
"MIT"
] | null | null | null | import os
import random
import souvlaki as sv
class WordSource():
def __init__(self, nouns, adjectives, prefixes):
self.nouns = nouns
self.adjectives = adjectives
self.prefixes = prefixes
def noun(self):
return random.choice(self.nouns)
def adjective(self):
r... | 23.173913 | 71 | 0.651032 | 136 | 1,066 | 4.919118 | 0.330882 | 0.044843 | 0.071749 | 0.098655 | 0.295964 | 0.179372 | 0.179372 | 0.137519 | 0.137519 | 0.137519 | 0 | 0.00243 | 0.227955 | 1,066 | 45 | 72 | 23.688889 | 0.81045 | 0 | 0 | 0 | 0 | 0 | 0.084428 | 0.0197 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.103448 | 0.103448 | 0.413793 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
1e1ac363161eed75ef1bc0fa12a7f4f0d899c140 | 716 | py | Python | api/controllers/student/field_update_controller.py | NoisyBotDude/MIS-Backend | fa402b0a6d5d6862634b0ed55bc57178856c1eba | [
"MIT"
] | 1 | 2022-03-28T06:13:11.000Z | 2022-03-28T06:13:11.000Z | api/controllers/student/field_update_controller.py | NoisyBotDude/MIS-Backend | fa402b0a6d5d6862634b0ed55bc57178856c1eba | [
"MIT"
] | 1 | 2021-12-21T13:59:47.000Z | 2021-12-21T13:59:47.000Z | api/controllers/student/field_update_controller.py | NoisyBotDude/MIS-Backend | fa402b0a6d5d6862634b0ed55bc57178856c1eba | [
"MIT"
] | 10 | 2021-12-24T18:08:57.000Z | 2022-03-18T13:18:25.000Z | from api.drivers.student import student_drivers
from api.schemas.student.request_schemas import student_request_schemas
from api.utils.exceptions import exceptions
async def update(
request: student_request_schemas.StudentPersonalInfoSchema,
authorization
):
"""Updates student's info"""
#... | 25.571429 | 82 | 0.73324 | 84 | 716 | 6.083333 | 0.452381 | 0.041096 | 0.123288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194134 | 716 | 27 | 83 | 26.518519 | 0.885615 | 0.090782 | 0 | 0 | 0 | 0 | 0.033981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.214286 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1e1b9273cb258f7a0e738756926574a3a67347f3 | 648 | py | Python | DataObjects/ClassMultiDict.py | icsa-caps/HieraGen | 4026c1718878d2ef69dd13d3e6e10cab69174fda | [
"MIT"
] | 6 | 2020-07-07T15:45:13.000Z | 2021-08-29T06:44:29.000Z | DataObjects/ClassMultiDict.py | icsa-caps/HieraGen | 4026c1718878d2ef69dd13d3e6e10cab69174fda | [
"MIT"
] | null | null | null | DataObjects/ClassMultiDict.py | icsa-caps/HieraGen | 4026c1718878d2ef69dd13d3e6e10cab69174fda | [
"MIT"
] | null | null | null | class MultiDict(dict):
def __setitem__(self, key, value):
if key in self:
if isinstance(self[key], list):
val = self[key]
if isinstance(value, list):
val = val + value
else:
val.append(value)
else... | 29.454545 | 45 | 0.407407 | 59 | 648 | 4.338983 | 0.271186 | 0.136719 | 0.140625 | 0.246094 | 0.453125 | 0.257813 | 0.257813 | 0 | 0 | 0 | 0 | 0 | 0.496914 | 648 | 21 | 46 | 30.857143 | 0.785276 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.1 | 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 |
1e2129baa188476cce9f545b130b193ede0c9647 | 6,829 | py | Python | src/callback.py | modichirag/VI_reconstruction | 64def5226a5723877a60943c29f592319bbe8e95 | [
"MIT"
] | null | null | null | src/callback.py | modichirag/VI_reconstruction | 64def5226a5723877a60943c29f592319bbe8e95 | [
"MIT"
] | null | null | null | src/callback.py | modichirag/VI_reconstruction | 64def5226a5723877a60943c29f592319bbe8e95 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import sys, os
sys.path.append('../../galference/utils/')
import tools
import diagnostics as dg
def callback(model, ic, bs, losses=None):
fig, ax = plt.subplots(1, 6, figsize=(15, 3))
im = ax[0].imshow(ic[0].sum(axis=0))
plt.colorbar(im, ax=ax[0])
... | 29.059574 | 100 | 0.542832 | 1,177 | 6,829 | 3.11215 | 0.117247 | 0.029484 | 0.026208 | 0.029484 | 0.681955 | 0.636637 | 0.633361 | 0.622441 | 0.618619 | 0.610975 | 0 | 0.066023 | 0.24147 | 6,829 | 234 | 101 | 29.183761 | 0.64112 | 0.017426 | 0 | 0.630435 | 0 | 0 | 0.035389 | 0.003434 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.027174 | 0 | 0.070652 | 0.005435 | 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 |
1e24d32a4b962928ad46fd58d2e17a25d1a7ba33 | 255 | py | Python | old_fashioned_nlp/tagging/__init__.py | ChenghaoMou/old-fashioned-nlp | a88d510273d6f729274e0eab9242b6eb4e08c2a9 | [
"MIT"
] | 1 | 2020-10-27T21:16:54.000Z | 2020-10-27T21:16:54.000Z | old_fashioned_nlp/tagging/__init__.py | sleeplessindebugging/old-fashioned-nlp | a88d510273d6f729274e0eab9242b6eb4e08c2a9 | [
"MIT"
] | null | null | null | old_fashioned_nlp/tagging/__init__.py | sleeplessindebugging/old-fashioned-nlp | a88d510273d6f729274e0eab9242b6eb4e08c2a9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Update : 2020-09-05 09:46:01
# @Author : Chenghao Mou (mouchenghao@gmail.com)
"""Sequence taggers."""
from old_fashioned_nlp.tagging.token import CharTfidfTagger
__all__ = ['CharTfidfTagger'] | 25.5 | 59 | 0.67451 | 32 | 255 | 5.1875 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070093 | 0.160784 | 255 | 10 | 60 | 25.5 | 0.705607 | 0.584314 | 0 | 0 | 0 | 0 | 0.153061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1e27c0a9bf1d7f0cef71bafda66175150392e15d | 166 | py | Python | areas.py | cout/sm_terminal_tracker | e39567dd087aaca50c4d0aaf08fb63c623f4734e | [
"MIT"
] | 1 | 2021-08-16T17:47:00.000Z | 2021-08-16T17:47:00.000Z | areas.py | cout/sm_terminal_tracker | e39567dd087aaca50c4d0aaf08fb63c623f4734e | [
"MIT"
] | null | null | null | areas.py | cout/sm_terminal_tracker | e39567dd087aaca50c4d0aaf08fb63c623f4734e | [
"MIT"
] | null | null | null | Areas = {
0x00: 'Crateria',
0x01: 'Brinstar',
0x02: 'Norfair',
0x03: 'WreckedShip',
0x04: 'Maridia',
0x05: 'Tourian',
0x06: 'Ceres',
0x07: 'Debug',
}
| 15.090909 | 22 | 0.572289 | 17 | 166 | 5.588235 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184615 | 0.216867 | 166 | 10 | 23 | 16.6 | 0.546154 | 0 | 0 | 0 | 0 | 0 | 0.349398 | 0 | 0 | 0 | 0.192771 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
1e299d7235c61aa6b1b77e65519ef77467227619 | 3,296 | py | Python | tda_api_helper/models.py | alexgolec/tda-api-helper | 6dfb842379883c6e82bd053df072babfe78c3df9 | [
"MIT"
] | null | null | null | tda_api_helper/models.py | alexgolec/tda-api-helper | 6dfb842379883c6e82bd053df072babfe78c3df9 | [
"MIT"
] | 7 | 2021-12-31T01:37:18.000Z | 2022-01-13T04:19:14.000Z | tda_api_helper/models.py | alexgolec/tda-api-helper | 6dfb842379883c6e82bd053df072babfe78c3df9 | [
"MIT"
] | null | null | null | import os
from sqlalchemy import Column, DateTime, ForeignKey, Integer, String
from sqlalchemy import create_engine
from sqlalchemy.orm import declarative_base, relationship
from sqlalchemy.sql import func
Base = declarative_base()
class User(Base):
'''
A discord user.
'''
__tablename__ = 'User'
... | 32.633663 | 82 | 0.660498 | 416 | 3,296 | 5.014423 | 0.288462 | 0.034516 | 0.037392 | 0.028763 | 0.100671 | 0.047939 | 0.047939 | 0.047939 | 0.047939 | 0 | 0 | 0 | 0.257888 | 3,296 | 100 | 83 | 32.96 | 0.852821 | 0.238774 | 0 | 0.1 | 0 | 0 | 0.086696 | 0.04195 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.083333 | 0.033333 | 0.516667 | 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 |
1e2f08d63ce02790e0954f0c2b48a364a5e50d1b | 2,335 | py | Python | vize/150401012/client.py | hasan-se/blm304 | 893d15282497a426ff96b0c8b6c77d57c406742e | [
"Unlicense"
] | 2 | 2021-04-01T18:51:44.000Z | 2021-06-13T19:46:20.000Z | vize/150401012/client.py | hasan-se/blm304 | 893d15282497a426ff96b0c8b6c77d57c406742e | [
"Unlicense"
] | null | null | null | vize/150401012/client.py | hasan-se/blm304 | 893d15282497a426ff96b0c8b6c77d57c406742e | [
"Unlicense"
] | null | null | null | #Yiğit Yüre 150401012
import socket
import os
import sys
try:
socket.gethostbyname(sys.argv[1])
except socket.error:
print("Geçersiz IP adresi")
sys.exit()
host = sys.argv[1]
port = int(sys.argv[2])
try:
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
print("İstemci soketi başlatıldı")
exce... | 26.235955 | 92 | 0.543041 | 248 | 2,335 | 5.100806 | 0.379032 | 0.033202 | 0.098024 | 0.085375 | 0.35415 | 0.304348 | 0.304348 | 0.304348 | 0.304348 | 0.304348 | 0 | 0.033053 | 0.339186 | 2,335 | 89 | 93 | 26.235955 | 0.786131 | 0 | 0 | 0.5 | 0 | 0.013889 | 0.168898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e2fe28bdba3c11579d9119dd5193c9ed892645c | 201,951 | py | Python | bios_pnp/vendors.py | neverware-mirrors/bios_pnp | 56a12a94a536c43ca1a071e6ed502ee3d7400323 | [
"Apache-2.0"
] | null | null | null | bios_pnp/vendors.py | neverware-mirrors/bios_pnp | 56a12a94a536c43ca1a071e6ed502ee3d7400323 | [
"Apache-2.0"
] | null | null | null | bios_pnp/vendors.py | neverware-mirrors/bios_pnp | 56a12a94a536c43ca1a071e6ed502ee3d7400323 | [
"Apache-2.0"
] | 2 | 2018-03-29T01:19:03.000Z | 2021-01-16T14:06:21.000Z | # THIS FILE WAS AUTOGENERATED BY make_vendor_list.py!
# pylint: disable=line-too-long,missing-docstring,too-many-lines
# yapf: disable
import datetime
from bios_pnp import pnp
VENDORS = {
"BUT": pnp.Vendor("21ST CENTURY ENTERTAINMENT", "BUT", datetime.date(2002, 4, 25)),
"TTL": pnp.Vendor("2-Tel B.V", "TTL", da... | 81.794654 | 138 | 0.630163 | 29,222 | 201,951 | 4.354904 | 0.172062 | 0.173976 | 0.108126 | 0.117964 | 0.335662 | 0.006176 | 0.001917 | 0 | 0 | 0 | 0 | 0.104256 | 0.143465 | 201,951 | 2,468 | 139 | 81.827796 | 0.631433 | 0.000698 | 0 | 0 | 1 | 0 | 0.313273 | 0.000555 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.000812 | 0 | 0.000812 | 0.000406 | 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 |
1e3951f43593829e9f73863dbf2d7b40f67d59a0 | 1,277 | py | Python | tests/test_block.py | quantum13/mile-csa-python | f3303836ef520886fc58fb8a06ab716ff3065fb2 | [
"MIT"
] | null | null | null | tests/test_block.py | quantum13/mile-csa-python | f3303836ef520886fc58fb8a06ab716ff3065fb2 | [
"MIT"
] | null | null | null | tests/test_block.py | quantum13/mile-csa-python | f3303836ef520886fc58fb8a06ab716ff3065fb2 | [
"MIT"
] | null | null | null | import unittest
from milecsa import Chain, Config
import local_config
def print_block(chain, block):
print("Id: ", block.blockId)
print("Version: ", block.version)
print("Timestamp: ", block.timestamp)
print("Trx count: ", block.transaction_count)
for t in block.transactions:
ass... | 25.54 | 113 | 0.602976 | 151 | 1,277 | 4.887417 | 0.324503 | 0.066396 | 0.060976 | 0.081301 | 0.214092 | 0.146341 | 0.078591 | 0 | 0 | 0 | 0 | 0.007519 | 0.270948 | 1,277 | 49 | 114 | 26.061224 | 0.785177 | 0.03054 | 0 | 0.133333 | 0 | 0 | 0.101379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.1 | 0 | 0.2 | 0.466667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1e45671ec504dd3c04b26925a2e6eba78b31882e | 845 | py | Python | mopy/policies/backup.py | TylerSandman/mopy | df66bb728f6dacee8ee6267a8802a4b71a04fd43 | [
"MIT"
] | null | null | null | mopy/policies/backup.py | TylerSandman/mopy | df66bb728f6dacee8ee6267a8802a4b71a04fd43 | [
"MIT"
] | null | null | null | mopy/policies/backup.py | TylerSandman/mopy | df66bb728f6dacee8ee6267a8802a4b71a04fd43 | [
"MIT"
] | null | null | null | """
Contains result backpropagation policies for MCTS.
All policies should be represented as a function that takes a MCTree and
the result of a game, and updates a node accordingly. Backup policies dictate
how the results of simulated games affect game states beforehand. See the main
Mopy module and MCTree for m... | 36.73913 | 79 | 0.710059 | 120 | 845 | 4.958333 | 0.616667 | 0.010084 | 0.040336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003101 | 0.236686 | 845 | 22 | 80 | 38.409091 | 0.91938 | 0.76213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e49f827aac986a59bed712075a11f7c49c14620 | 2,917 | py | Python | tests/validation/parameter/test_min_max_length_validation.py | maroux/flex | dfd7c6d79d065d7ce1b0c799e51e9bb5292612b2 | [
"MIT"
] | 160 | 2015-01-15T05:36:44.000Z | 2021-08-04T00:43:54.000Z | tests/validation/parameter/test_min_max_length_validation.py | maroux/flex | dfd7c6d79d065d7ce1b0c799e51e9bb5292612b2 | [
"MIT"
] | 151 | 2015-01-20T16:45:36.000Z | 2022-02-23T21:07:58.000Z | tests/validation/parameter/test_min_max_length_validation.py | maroux/flex | dfd7c6d79d065d7ce1b0c799e51e9bb5292612b2 | [
"MIT"
] | 90 | 2015-01-20T11:19:36.000Z | 2021-08-03T08:58:18.000Z | import pytest
from flex.exceptions import ValidationError
from flex.loading.schema.paths.path_item.operation.parameters import (
parameters_validator,
)
from flex.validation.parameter import (
validate_parameters,
)
from flex.constants import (
PATH,
STRING,
)
from tests.utils import assert_path_in_er... | 20.687943 | 76 | 0.545766 | 272 | 2,917 | 5.610294 | 0.231618 | 0.057667 | 0.055046 | 0.081258 | 0.770642 | 0.735256 | 0.627785 | 0.526868 | 0.526868 | 0.526868 | 0 | 0.020161 | 0.319849 | 2,917 | 140 | 77 | 20.835714 | 0.748992 | 0.016798 | 0 | 0.568966 | 0 | 0 | 0.106956 | 0 | 0 | 0 | 0 | 0 | 0.025862 | 1 | 0.034483 | false | 0 | 0.051724 | 0 | 0.086207 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e56b55098ede8127120d4b6280c82f5e4c576f7 | 436 | py | Python | examples/app/myapp.py | westurner/celery | 41964f24df4c8ca5d96bf0d644e40778212e10cb | [
"BSD-3-Clause"
] | 1 | 2015-02-27T00:56:02.000Z | 2015-02-27T00:56:02.000Z | examples/app/myapp.py | westurner/celery | 41964f24df4c8ca5d96bf0d644e40778212e10cb | [
"BSD-3-Clause"
] | null | null | null | examples/app/myapp.py | westurner/celery | 41964f24df4c8ca5d96bf0d644e40778212e10cb | [
"BSD-3-Clause"
] | null | null | null | """myapp.py
Usage:
(window1)$ python myapp.py worker -l info
(window2)$ python
>>> from myapp import add
>>> add.delay(16, 16).get()
32
You can also specify the app to use with celeryd::
$ celery worker -l info --app=myapp
"""
from celery import Celery
celery = Celery("myapp", broker="amqp://... | 15.034483 | 59 | 0.626147 | 63 | 436 | 4.206349 | 0.634921 | 0.05283 | 0.083019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02346 | 0.21789 | 436 | 28 | 60 | 15.571429 | 0.753666 | 0.559633 | 0 | 0 | 0 | 0 | 0.201087 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 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 | 0 | 1 | 0 | 0 | 0 | 1 |
1e578a66b213b846971e0fefcbf7b9c33b776eea | 1,462 | py | Python | hallo/test/modules/hallo_control/test_active_threads.py | joshcoales/Hallo | 17145d8f76552ecd4cbc5caef8924bd2cf0cbf24 | [
"MIT"
] | 1 | 2018-05-19T22:27:20.000Z | 2018-05-19T22:27:20.000Z | hallo/test/modules/hallo_control/test_active_threads.py | joshcoales/Hallo | 17145d8f76552ecd4cbc5caef8924bd2cf0cbf24 | [
"MIT"
] | 75 | 2015-09-26T18:07:18.000Z | 2022-01-04T07:15:11.000Z | hallo/test/modules/hallo_control/test_active_threads.py | SpangleLabs/Hallo | 17145d8f76552ecd4cbc5caef8924bd2cf0cbf24 | [
"MIT"
] | 1 | 2021-04-10T12:02:47.000Z | 2021-04-10T12:02:47.000Z | from threading import Thread
import time
from hallo.events import EventMessage
def test_threads_simple(hallo_getter):
test_hallo = hallo_getter({"hallo_control"})
test_hallo.function_dispatcher.dispatch(
EventMessage(test_hallo.test_server, None, test_hallo.test_user, "active threads")
)
dat... | 37.487179 | 90 | 0.719562 | 199 | 1,462 | 5.020101 | 0.256281 | 0.153153 | 0.156156 | 0.114114 | 0.712713 | 0.680681 | 0.680681 | 0.680681 | 0.680681 | 0.680681 | 0 | 0.013878 | 0.162107 | 1,462 | 38 | 91 | 38.473684 | 0.801633 | 0.024624 | 0 | 0.433333 | 0 | 0 | 0.099789 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.066667 | false | 0 | 0.1 | 0 | 0.166667 | 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 |
1e57f2da3f20d5ecc4a09a1464ede0da10a2f32a | 9,234 | py | Python | tortilla/core.py | sunlightlabs/python-tortilla | 4b4f3538b293ccff218610c5a452f69d582130d4 | [
"BSD-3-Clause"
] | 1 | 2019-07-31T02:54:10.000Z | 2019-07-31T02:54:10.000Z | tortilla/core.py | sunlightlabs/python-tortilla | 4b4f3538b293ccff218610c5a452f69d582130d4 | [
"BSD-3-Clause"
] | null | null | null | tortilla/core.py | sunlightlabs/python-tortilla | 4b4f3538b293ccff218610c5a452f69d582130d4 | [
"BSD-3-Clause"
] | 1 | 2015-12-13T08:21:12.000Z | 2015-12-13T08:21:12.000Z | import json
import requests
from requests.exceptions import Timeout
from .util import meta_fix
class SalsaObject(object):
def __init__(self, initial=None):
_data = {}
if initial:
_data.update(initial)
self.__dict__['_data'] = _data
def __getattr__(self, attr):
if a... | 26.084746 | 100 | 0.585662 | 1,055 | 9,234 | 4.987678 | 0.152607 | 0.025656 | 0.037058 | 0.031357 | 0.31718 | 0.263778 | 0.235842 | 0.224629 | 0.18092 | 0.18092 | 0 | 0.000926 | 0.298354 | 9,234 | 353 | 101 | 26.15864 | 0.811236 | 0.017436 | 0 | 0.318182 | 0 | 0 | 0.08451 | 0.008605 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144628 | false | 0.057851 | 0.016529 | 0.016529 | 0.380165 | 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 |
1e59255c7c35e3e7f82903f515a10a05864028c1 | 1,253 | py | Python | tests/orthanc/test_orthanc_patient_deleters.py | gacou54/pyorthanc | 6b67a0d58567060e2e88ae5f2d15453fa47561aa | [
"MIT"
] | 12 | 2019-02-25T04:24:39.000Z | 2022-03-22T11:43:46.000Z | tests/orthanc/test_orthanc_patient_deleters.py | gacou54/pyorthanc | 6b67a0d58567060e2e88ae5f2d15453fa47561aa | [
"MIT"
] | 5 | 2021-06-02T00:20:44.000Z | 2022-03-15T15:09:22.000Z | tests/orthanc/test_orthanc_patient_deleters.py | gacou54/pyorthanc | 6b67a0d58567060e2e88ae5f2d15453fa47561aa | [
"MIT"
] | 1 | 2020-05-11T14:57:17.000Z | 2020-05-11T14:57:17.000Z | # coding: utf-8
# author: gabriel couture
import unittest
from pyorthanc import Orthanc
from tests import setup_server
from tests.data import a_patient
class TestOrthancPatientDeleters(unittest.TestCase):
@classmethod
def setUpClass(cls) -> None:
global orthanc_subprocess
orthanc_subprocess ... | 28.477273 | 88 | 0.747007 | 137 | 1,253 | 6.532847 | 0.364964 | 0.073743 | 0.02905 | 0.044693 | 0.243575 | 0.116201 | 0.116201 | 0.116201 | 0.116201 | 0 | 0 | 0.000982 | 0.18755 | 1,253 | 43 | 89 | 29.139535 | 0.878193 | 0.029529 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.25 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1e5a603f27c754d49e48eda058d899211d90dc68 | 1,761 | py | Python | logs_manager/migrations/0001_initial.py | adwait-thattey/raygun_api | 9d5571de452fbf70d34b9583ebc42eb662292f61 | [
"MIT"
] | null | null | null | logs_manager/migrations/0001_initial.py | adwait-thattey/raygun_api | 9d5571de452fbf70d34b9583ebc42eb662292f61 | [
"MIT"
] | 7 | 2020-06-06T01:40:06.000Z | 2022-02-10T09:12:56.000Z | logs_manager/migrations/0001_initial.py | adwait-thattey/raygun_api | 9d5571de452fbf70d34b9583ebc42eb662292f61 | [
"MIT"
] | 1 | 2021-08-16T13:23:34.000Z | 2021-08-16T13:23:34.000Z | # Generated by Django 2.1.5 on 2020-07-24 05:14
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ErrorLogObject',
fields=[
('id', models.Aut... | 34.529412 | 114 | 0.531516 | 150 | 1,761 | 6.12 | 0.406667 | 0.043573 | 0.078431 | 0.104575 | 0.410675 | 0.410675 | 0.410675 | 0.410675 | 0.410675 | 0.410675 | 0 | 0.022746 | 0.325951 | 1,761 | 50 | 115 | 35.22 | 0.750632 | 0.025554 | 0 | 0.465116 | 1 | 0 | 0.103851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023256 | 0 | 0.116279 | 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 |
1e5b8c4c2a735704a76ae6bbaabad7224e52a26b | 2,873 | py | Python | print_results.py | UlianaDzhumok/dog-breed-image-classifier | e65b9853e20665eab0090c98956b0f71625cc398 | [
"MIT"
] | null | null | null | print_results.py | UlianaDzhumok/dog-breed-image-classifier | e65b9853e20665eab0090c98956b0f71625cc398 | [
"MIT"
] | null | null | null | print_results.py | UlianaDzhumok/dog-breed-image-classifier | e65b9853e20665eab0090c98956b0f71625cc398 | [
"MIT"
] | null | null | null | def print_results(results_dic, results_stats_dic, model,
print_incorrect_dogs = False, print_incorrect_breed = False):
"""
Prints summary results on the classification and then prints incorrectly
classified dogs and incorrectly classified dog breeds if user indicates
they want thos... | 54.207547 | 121 | 0.587887 | 358 | 2,873 | 4.600559 | 0.315642 | 0.058288 | 0.07286 | 0.048573 | 0.324833 | 0.251366 | 0.251366 | 0.201579 | 0.155434 | 0.115361 | 0 | 0.014107 | 0.333797 | 2,873 | 52 | 122 | 55.25 | 0.846395 | 0.578837 | 0 | 0.235294 | 0 | 0 | 0.218349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.058824 | 0.588235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1e5e463f2d8698101b4daa4b95c205a9cfcb45c4 | 1,175 | py | Python | app/services/QueryService.py | fredrik-aschehoug/KG-Enricher | 56f1ac192c2542d8412235ee6897d22278a5259e | [
"MIT"
] | null | null | null | app/services/QueryService.py | fredrik-aschehoug/KG-Enricher | 56f1ac192c2542d8412235ee6897d22278a5259e | [
"MIT"
] | null | null | null | app/services/QueryService.py | fredrik-aschehoug/KG-Enricher | 56f1ac192c2542d8412235ee6897d22278a5259e | [
"MIT"
] | null | null | null | from aiosparql.client import SPARQLClient
from typing import Union
from models.types import sparql_bindings
class QueryService():
"""
Base class used for querying SPARQL endpoints.
Uses the aiosparql SPARQLClient to support sending async requests.
"""
_user_agent = "KG-Enricher"
_headers = {'... | 35.606061 | 109 | 0.693617 | 145 | 1,175 | 5.42069 | 0.434483 | 0.069975 | 0.057252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218723 | 1,175 | 32 | 110 | 36.71875 | 0.856209 | 0.09617 | 0 | 0 | 0 | 0 | 0.042303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1e61f53390c65e1afc1cca81347aa6ed53a9c8bd | 11,464 | py | Python | code/python/report_marks.py | nsob1c12/tetepy | 2defb61dea95c69747b07d7c6b3e106b604455ee | [
"BSD-3-Clause"
] | null | null | null | code/python/report_marks.py | nsob1c12/tetepy | 2defb61dea95c69747b07d7c6b3e106b604455ee | [
"BSD-3-Clause"
] | null | null | null | code/python/report_marks.py | nsob1c12/tetepy | 2defb61dea95c69747b07d7c6b3e106b604455ee | [
"BSD-3-Clause"
] | 1 | 2018-11-21T09:53:44.000Z | 2018-11-21T09:53:44.000Z | #!/usr/bin/env python
#
# This file is part of the TeTePy software
#
# Copyright (c) 2017, 2018, University of Southampton
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions ... | 42.459259 | 135 | 0.657188 | 1,458 | 11,464 | 5.029492 | 0.27572 | 0.024001 | 0.012273 | 0.006 | 0.159553 | 0.130642 | 0.109096 | 0.071185 | 0.060003 | 0.060003 | 0 | 0.015324 | 0.242934 | 11,464 | 269 | 136 | 42.6171 | 0.829589 | 0.225663 | 0 | 0.094595 | 0 | 0 | 0.101209 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0 | null | null | 0.02027 | 0.040541 | null | null | 0.067568 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1e6276643a563a4ed15fee529d45c22bb727a6be | 9,871 | py | Python | Python_Code/PD_Naive/naive_pd.py | TomerEven/Pocket_Dictionary | 29f906855f5e52eec61d00cb6e8fa0fb5e90a8e4 | [
"Apache-2.0"
] | 2 | 2019-12-10T03:41:02.000Z | 2021-11-14T12:30:36.000Z | Python_Code/PD_Naive/naive_pd.py | TomerEven/Pocket_Dictionary | 29f906855f5e52eec61d00cb6e8fa0fb5e90a8e4 | [
"Apache-2.0"
] | null | null | null | Python_Code/PD_Naive/naive_pd.py | TomerEven/Pocket_Dictionary | 29f906855f5e52eec61d00cb6e8fa0fb5e90a8e4 | [
"Apache-2.0"
] | 2 | 2019-12-10T03:41:07.000Z | 2020-06-02T16:57:31.000Z | from typing import *
class naive_pd(object):
"""
:param m Quotients (q_i) range interval. (forall q_i, q_i in [m])
:param f Number of elements in PD.
:param l Remainder (r_i) length. (|r_i| = l)
"""
head: list
body: list
r: int
m: int
max_capacity: int
capacity: int
d... | 25.181122 | 96 | 0.564279 | 1,543 | 9,871 | 3.45431 | 0.119896 | 0.01576 | 0.030394 | 0.037148 | 0.458349 | 0.396998 | 0.33621 | 0.292683 | 0.240338 | 0.240338 | 0 | 0.043137 | 0.302502 | 9,871 | 391 | 97 | 25.245524 | 0.731009 | 0.199575 | 0 | 0.23176 | 0 | 0 | 0.041329 | 0 | 0 | 0 | 0 | 0.002558 | 0.077253 | 0 | null | null | 0.004292 | 0.004292 | null | null | 0.064378 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1e63fbcaff13f5411059c99a4d6c190d9c025da4 | 322 | py | Python | count_by_provider.py | SunshineStateDigitalNetwork/harvest_utils | 1918732da2e485d45832766245e4beaae6da5b5f | [
"MIT"
] | null | null | null | count_by_provider.py | SunshineStateDigitalNetwork/harvest_utils | 1918732da2e485d45832766245e4beaae6da5b5f | [
"MIT"
] | null | null | null | count_by_provider.py | SunshineStateDigitalNetwork/harvest_utils | 1918732da2e485d45832766245e4beaae6da5b5f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys, json
from collections import Counter
data_providers = []
with open(sys.argv[1]) as f:
rec = json.load(f)
for record in rec:
data_providers.append(record['dataProvider'])
counts = Counter(data_providers)
for item in list(counts):
print(item, ': ', counts[item])... | 17.888889 | 53 | 0.680124 | 46 | 322 | 4.695652 | 0.630435 | 0.180556 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007663 | 0.189441 | 322 | 17 | 54 | 18.941176 | 0.819923 | 0.065217 | 0 | 0 | 0 | 0 | 0.046823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.1 | 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 |
1e676fac880fc5466a7425decb22605ffc682c32 | 1,072 | py | Python | tools/build_dictionary_char.py | Yasumasa/gated_word_char_rlm_ym | 0d35e5894416a531a5bee14f7df8dea38a1c8484 | [
"BSD-3-Clause"
] | 32 | 2016-07-11T00:32:27.000Z | 2022-02-27T04:21:36.000Z | tools/build_dictionary_char.py | Yasumasa/gated_word_char_rlm_ym | 0d35e5894416a531a5bee14f7df8dea38a1c8484 | [
"BSD-3-Clause"
] | 1 | 2017-08-06T19:18:23.000Z | 2017-08-14T02:12:15.000Z | tools/build_dictionary_char.py | Yasumasa/gated_word_char_rlm_ym | 0d35e5894416a531a5bee14f7df8dea38a1c8484 | [
"BSD-3-Clause"
] | 16 | 2016-08-29T08:45:55.000Z | 2020-11-03T02:44:01.000Z | """
Build a character dictionary
"""
import numpy
import cPickle as pkl
import sys
import fileinput
from collections import OrderedDict
def main(filenames):
char_freqs = OrderedDict()
for filename in filenames:
print '==> Processing', filename
with open(filename, 'r') as f:
line... | 25.52381 | 67 | 0.593284 | 138 | 1,072 | 4.471014 | 0.456522 | 0.08752 | 0.045381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010568 | 0.293843 | 1,072 | 41 | 68 | 26.146341 | 0.804491 | 0 | 0 | 0 | 0 | 0 | 0.084058 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0 | null | null | 0 | 0.15625 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e69077c7c10e476b61bed366627a53116787801 | 2,815 | py | Python | SessionTools/sort_sessions.py | DynamoDS/Coulomb | 705e9a44c44ebdbe5650697b896000e8c42d8b56 | [
"MIT"
] | 3 | 2015-09-23T17:52:44.000Z | 2020-04-11T11:15:59.000Z | SessionTools/sort_sessions.py | DynamoDS/Coulomb | 705e9a44c44ebdbe5650697b896000e8c42d8b56 | [
"MIT"
] | null | null | null | SessionTools/sort_sessions.py | DynamoDS/Coulomb | 705e9a44c44ebdbe5650697b896000e8c42d8b56 | [
"MIT"
] | 1 | 2020-08-01T12:39:25.000Z | 2020-08-01T12:39:25.000Z | # This tool takes the raw usage data and splits it into session files
import gzip
import json
import base64
import sys
import traceback
import time
import random
import os
import sys
VERBOSE = True
err = 0
MAX_MEM = 1 * 1000 * 1000 * 1000
def log(s):
if VERBOSE:
print time.strftime("%Y-%m-%d %H:%M:%S")... | 23.655462 | 88 | 0.580817 | 396 | 2,815 | 3.964646 | 0.318182 | 0.053503 | 0.056051 | 0.028662 | 0.08535 | 0.064968 | 0.038217 | 0 | 0 | 0 | 0 | 0.020408 | 0.30373 | 2,815 | 118 | 89 | 23.855932 | 0.780612 | 0.05222 | 0 | 0.144444 | 0 | 0 | 0.089306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e69c26d6ae416358faf6b8f9971b4dbfaf0f463 | 37,047 | py | Python | sfftk/unittests/test_notes.py | ssabrii/sfftk | 5cab37f1c9ecb9c2507672fd3232b1b9b5405511 | [
"Apache-2.0"
] | null | null | null | sfftk/unittests/test_notes.py | ssabrii/sfftk | 5cab37f1c9ecb9c2507672fd3232b1b9b5405511 | [
"Apache-2.0"
] | null | null | null | sfftk/unittests/test_notes.py | ssabrii/sfftk | 5cab37f1c9ecb9c2507672fd3232b1b9b5405511 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Unit tests for :py:mod:`sfftk.core.notes` package"""
from __future__ import division, print_function
import os
import shlex
import shutil
import sys
import unittest
from urllib import urlencode
import __init__ as tests
from .. import BASE_DIR
from .. import schema
fro... | 42.730104 | 138 | 0.625341 | 4,101 | 37,047 | 5.486954 | 0.10534 | 0.061994 | 0.017598 | 0.023109 | 0.766599 | 0.720069 | 0.672607 | 0.644654 | 0.586037 | 0.488845 | 0 | 0.014657 | 0.257808 | 37,047 | 866 | 139 | 42.779446 | 0.803717 | 0.082085 | 0 | 0.540029 | 0 | 0.018923 | 0.123151 | 0.013753 | 0 | 0 | 0 | 0.001155 | 0.181951 | 1 | 0.094614 | false | 0 | 0.021834 | 0 | 0.129549 | 0.010189 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e6eefc3ab5404b4e42d6811569ac96399e99d1c | 755 | py | Python | src/discolight/query.py | denzel-datature/discolight | 7c8309d3f883263b2e4cae0b289f17be1d1c07ea | [
"MIT"
] | 27 | 2020-07-23T08:09:25.000Z | 2022-03-01T08:24:43.000Z | src/discolight/query.py | denzel-datature/discolight | 7c8309d3f883263b2e4cae0b289f17be1d1c07ea | [
"MIT"
] | 7 | 2020-08-05T07:26:55.000Z | 2020-12-31T04:20:40.000Z | src/discolight/query.py | denzel-datature/discolight | 7c8309d3f883263b2e4cae0b289f17be1d1c07ea | [
"MIT"
] | 6 | 2020-07-27T04:30:01.000Z | 2020-08-13T02:39:25.000Z | """A parser for YAML queries used by the Augmentor class."""
import yamale
schema = yamale.make_schema(content="""
input:
images:
loader: str()
options: map()
annotations:
loader: str()
options: map()
output:
images:
writer: str()
options: map()
annotations:
writer: str()
option... | 18.414634 | 60 | 0.651656 | 96 | 755 | 5.09375 | 0.583333 | 0.102249 | 0.132924 | 0.07771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003367 | 0.213245 | 755 | 40 | 61 | 18.875 | 0.819865 | 0.197351 | 0 | 0.413793 | 0 | 0 | 0.617747 | 0.049488 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.034483 | 0 | 0.103448 | 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 |
1e77a46aa8467b03a2158c13c41151ff7714391b | 4,674 | py | Python | misc_analysis.py | adamnahari/bch_clinical_lab_indicators_covid19_misc | 2e29c2f69678e6d4ff1c3f55150588f207afc874 | [
"MIT"
] | null | null | null | misc_analysis.py | adamnahari/bch_clinical_lab_indicators_covid19_misc | 2e29c2f69678e6d4ff1c3f55150588f207afc874 | [
"MIT"
] | null | null | null | misc_analysis.py | adamnahari/bch_clinical_lab_indicators_covid19_misc | 2e29c2f69678e6d4ff1c3f55150588f207afc874 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
import pandas as pd
from statsmodels.stats.proportion import proportion_confint
from itertools import combinations
# remove patients for which we do not have any covid info
data = data[(data['MRN'].isin(pcr['MRN'])) | (data['MRN'].isin(misc['mrn']))]
data['MISCFound'] = data['MR... | 54.348837 | 326 | 0.695336 | 644 | 4,674 | 4.982919 | 0.206522 | 0.044874 | 0.07479 | 0.089748 | 0.764724 | 0.74478 | 0.687442 | 0.651916 | 0.593331 | 0.593331 | 0 | 0.01411 | 0.166025 | 4,674 | 85 | 327 | 54.988235 | 0.809133 | 0.12024 | 0 | 0.212121 | 0 | 0.060606 | 0.396833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e7e996369d9db95039bdf9c646f32b34e31f662 | 1,092 | py | Python | day_05/puzzles.py | electronsandstuff/Advent-of-Code-2021 | 9c23872640e8d092088dcb6d5cb845cd11d98994 | [
"BSD-3-Clause"
] | null | null | null | day_05/puzzles.py | electronsandstuff/Advent-of-Code-2021 | 9c23872640e8d092088dcb6d5cb845cd11d98994 | [
"BSD-3-Clause"
] | null | null | null | day_05/puzzles.py | electronsandstuff/Advent-of-Code-2021 | 9c23872640e8d092088dcb6d5cb845cd11d98994 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
def generate_map(lines, diags=False):
vents = np.zeros((np.max(lines[:, :, 1]) + 1, np.max(lines[:, :, 0]) + 1), dtype=np.uint32)
for l in lines:
if l[0][0] == l[1][0]: # horizontal line
vents[np.min(l[:, 1]):np.max(l[:, 1]) + 1, l[0][0]] += 1
elif l[0][1] == l[... | 39 | 100 | 0.513736 | 184 | 1,092 | 2.98913 | 0.369565 | 0.032727 | 0.087273 | 0.076364 | 0.094545 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048995 | 0.271062 | 1,092 | 27 | 101 | 40.444444 | 0.64196 | 0.132784 | 0 | 0 | 1 | 0 | 0.129925 | 0.057508 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.15 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e83dfa9c50394894ee742b2137621c5d011c5a0 | 356 | py | Python | fasttext/run.py | TheStarkor/Deep-Learning-Examples | 5174cfab823edb39ce61439fb98f2f55e23e2570 | [
"MIT"
] | null | null | null | fasttext/run.py | TheStarkor/Deep-Learning-Examples | 5174cfab823edb39ce61439fb98f2f55e23e2570 | [
"MIT"
] | null | null | null | fasttext/run.py | TheStarkor/Deep-Learning-Examples | 5174cfab823edb39ce61439fb98f2f55e23e2570 | [
"MIT"
] | null | null | null | from gensim import models
model = models.fasttext.load_facebook_model('cc.ko.300.bin')
for w, sim in model.wv.similar_by_word('치킨', 5):
print(f'{w}: {sim}')
for w, sim in model.wv.most_similar('치킨', topn=5):
print(f'{w}: {sim}')
print(model.wv.similarity('치킨', '피자'))
print(model.wv.most_similar(positive=['돼지... | 32.363636 | 77 | 0.66573 | 62 | 356 | 3.725806 | 0.548387 | 0.069264 | 0.060606 | 0.077922 | 0.233766 | 0.138528 | 0 | 0 | 0 | 0 | 0 | 0.018927 | 0.109551 | 356 | 11 | 77 | 32.363636 | 0.709779 | 0 | 0 | 0.25 | 0 | 0 | 0.134454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
1e85581ac31dc11f833c7a82b762a417fde73841 | 736 | py | Python | tests/analyses/conftest.py | weibullguy/ramstk | 3ec41d7e2933045a7a8028aed6c6b04365495095 | [
"BSD-3-Clause"
] | 4 | 2018-08-26T09:11:36.000Z | 2019-05-24T12:01:02.000Z | tests/analyses/conftest.py | weibullguy/ramstk | 3ec41d7e2933045a7a8028aed6c6b04365495095 | [
"BSD-3-Clause"
] | 52 | 2018-08-24T12:51:22.000Z | 2020-12-28T04:59:42.000Z | tests/analyses/conftest.py | weibullguy/ramstk | 3ec41d7e2933045a7a8028aed6c6b04365495095 | [
"BSD-3-Clause"
] | 1 | 2018-10-11T07:57:55.000Z | 2018-10-11T07:57:55.000Z | # Third Party Imports
import pytest
@pytest.fixture
def test_attributes_allocation():
yield {
"allocation_method_id": 1,
"availability_alloc": 0.9998,
"duty_cycle": 100.0,
"env_factor": 6,
"goal_measure_id": 1,
"hazard_rate_alloc": 0.0,
"hazard_rate_goal": 0... | 24.533333 | 37 | 0.546196 | 92 | 736 | 4.043478 | 0.532609 | 0.064516 | 0.037634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087302 | 0.315217 | 736 | 29 | 38 | 25.37931 | 0.650794 | 0.025815 | 0 | 0 | 0 | 0 | 0.394406 | 0.029371 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | true | 0 | 0.038462 | 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 |
1ea072b732c5079452f155039380955fd1aa5f1c | 1,471 | py | Python | samEshop/main/migrations/0011_auto_20211002_1844.py | Tedd-console/Django-Ecomm | fd74af3625888b76bb7f8da6b0ae5331c71b15f9 | [
"MIT"
] | null | null | null | samEshop/main/migrations/0011_auto_20211002_1844.py | Tedd-console/Django-Ecomm | fd74af3625888b76bb7f8da6b0ae5331c71b15f9 | [
"MIT"
] | null | null | null | samEshop/main/migrations/0011_auto_20211002_1844.py | Tedd-console/Django-Ecomm | fd74af3625888b76bb7f8da6b0ae5331c71b15f9 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-10-02 15:44
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('main', '0010_cartorder_c... | 36.775 | 128 | 0.597553 | 149 | 1,471 | 5.751678 | 0.516779 | 0.03734 | 0.049008 | 0.077013 | 0.128355 | 0.128355 | 0.128355 | 0.128355 | 0.128355 | 0.128355 | 0 | 0.033945 | 0.259007 | 1,471 | 39 | 129 | 37.717949 | 0.752294 | 0.030591 | 0 | 0.181818 | 1 | 0 | 0.142556 | 0.020365 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ea0fd1be68cf1a8b16e2cd75440fa8dee7e1872 | 303 | py | Python | exercices/word-count/word_count.py | gkaeso/exercism-python | 00360effcc1eceadfdf6e342ff52bd6284b9bc87 | [
"MIT"
] | null | null | null | exercices/word-count/word_count.py | gkaeso/exercism-python | 00360effcc1eceadfdf6e342ff52bd6284b9bc87 | [
"MIT"
] | null | null | null | exercices/word-count/word_count.py | gkaeso/exercism-python | 00360effcc1eceadfdf6e342ff52bd6284b9bc87 | [
"MIT"
] | null | null | null | import re
def count_words(sentence):
words: list[str] = [match.group(0) for match in re.finditer(r"[a-z0-9]+(['][a-z]+)?", sentence.lower())]
word_occurrences: dict[str, int] = {word: 0 for word in words}
for word in words:
word_occurrences[word] += 1
return word_occurrences
| 27.545455 | 108 | 0.643564 | 47 | 303 | 4.06383 | 0.553191 | 0.235602 | 0.094241 | 0.146597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020492 | 0.194719 | 303 | 10 | 109 | 30.3 | 0.762295 | 0 | 0 | 0 | 0 | 0 | 0.069307 | 0.069307 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 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 |
1ea38c7f548e4b34fc071140ff19d681459f019f | 5,066 | py | Python | core/model/model.py | andregri/keras-segmentation | 699043adc4dd74b97cbed3d3e5b8d8aafb03b71c | [
"Apache-2.0"
] | null | null | null | core/model/model.py | andregri/keras-segmentation | 699043adc4dd74b97cbed3d3e5b8d8aafb03b71c | [
"Apache-2.0"
] | null | null | null | core/model/model.py | andregri/keras-segmentation | 699043adc4dd74b97cbed3d3e5b8d8aafb03b71c | [
"Apache-2.0"
] | null | null | null | from tensorflow import keras
from tensorflow.keras.layers import Conv2D, MaxPooling2D, Conv2DTranspose,\
Activation, Add
def build_vgg(weights_path, input_width=224, input_height=224):
# input_height and width must be devisible by 32 because maxpooling with
# filter size = (2,2) is operated 5 times, which... | 44.052174 | 79 | 0.603237 | 617 | 5,066 | 4.769854 | 0.179903 | 0.119266 | 0.127421 | 0.195379 | 0.654434 | 0.562012 | 0.528372 | 0.505946 | 0.493034 | 0.493034 | 0 | 0.066453 | 0.260363 | 5,066 | 114 | 80 | 44.438596 | 0.718975 | 0.072246 | 0 | 0.329114 | 0 | 0 | 0.097545 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 1 | 0.025316 | false | 0 | 0.025316 | 0 | 0.075949 | 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 |
1ea74131c12620ae3e193010c7e32820c125cd7c | 2,835 | py | Python | training/argparser.py | mlcruw/covid-news-analyzer | 76c6a906de20633ff0e325f1ebe669c1e0eac325 | [
"MIT"
] | 8 | 2020-04-11T23:13:58.000Z | 2021-05-06T02:39:45.000Z | training/argparser.py | mlcruw/covid-news-analyzer | 76c6a906de20633ff0e325f1ebe669c1e0eac325 | [
"MIT"
] | null | null | null | training/argparser.py | mlcruw/covid-news-analyzer | 76c6a906de20633ff0e325f1ebe669c1e0eac325 | [
"MIT"
] | 1 | 2020-05-26T01:56:24.000Z | 2020-05-26T01:56:24.000Z | import argparse
# Parse command line args
def argparser():
parser = argparse.ArgumentParser()
parser.add_argument('-c',
'--continue_train',
action='store_true',
help='when set, training will continue from before')
#error: ambiguous option: --t... | 35.886076 | 133 | 0.479718 | 292 | 2,835 | 4.520548 | 0.373288 | 0.081818 | 0.154545 | 0.07197 | 0.168182 | 0.128788 | 0.069697 | 0.069697 | 0.069697 | 0.069697 | 0 | 0.006024 | 0.414462 | 2,835 | 78 | 134 | 36.346154 | 0.789157 | 0.077601 | 0 | 0.237288 | 0 | 0.016949 | 0.310728 | 0 | 0 | 0 | 0 | 0.012821 | 0 | 1 | 0.016949 | false | 0 | 0.016949 | 0 | 0.050847 | 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 |
1eb018ba89293cb747d6c0136e0a017d5a47aefe | 2,898 | py | Python | package/cloudshell/cm/customscript/domain/script_downloader.py | qualidan/CustomScript-Shell | 672ee31fe52edfce94ebc795172df76eae1d19a7 | [
"Apache-2.0"
] | null | null | null | package/cloudshell/cm/customscript/domain/script_downloader.py | qualidan/CustomScript-Shell | 672ee31fe52edfce94ebc795172df76eae1d19a7 | [
"Apache-2.0"
] | null | null | null | package/cloudshell/cm/customscript/domain/script_downloader.py | qualidan/CustomScript-Shell | 672ee31fe52edfce94ebc795172df76eae1d19a7 | [
"Apache-2.0"
] | null | null | null | import urllib
from logging import Logger
import re
import requests
from cloudshell.cm.customscript.domain.cancellation_sampler import CancellationSampler
from cloudshell.cm.customscript.domain.script_file import ScriptFile
class HttpAuth(object):
def __init__(self, username, password):
self.username = u... | 38.64 | 120 | 0.640442 | 338 | 2,898 | 5.322485 | 0.366864 | 0.048916 | 0.042246 | 0.031128 | 0.125625 | 0.087827 | 0.087827 | 0 | 0 | 0 | 0 | 0.007892 | 0.256729 | 2,898 | 75 | 121 | 38.64 | 0.827298 | 0.062112 | 0 | 0.117647 | 0 | 0 | 0.154834 | 0.042674 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0.058824 | 0.117647 | 0 | 0.313725 | 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 |
1eb38cc7954053068f5d059c1327bd8c4d8d37be | 4,365 | py | Python | starling_sim/basemodel/algorithms/dispatcher.py | tellae/starling | 56121c728eb5de3dfc77cdf08da89548f3315c87 | [
"CECILL-B"
] | 19 | 2021-02-16T12:32:22.000Z | 2022-01-06T11:16:44.000Z | starling_sim/basemodel/algorithms/dispatcher.py | tellae/starling | 56121c728eb5de3dfc77cdf08da89548f3315c87 | [
"CECILL-B"
] | 20 | 2021-01-13T20:58:07.000Z | 2022-03-21T15:53:07.000Z | starling_sim/basemodel/algorithms/dispatcher.py | tellae/starling | 56121c728eb5de3dfc77cdf08da89548f3315c87 | [
"CECILL-B"
] | null | null | null | import numpy as np
from abc import ABC
class Dispatcher(ABC):
"""
This class describes a dispatcher for a transport service.
The dispatcher is called to affect requests online or punctually.
The Dispatcher class allows a complete specification (punctual and online)
and separation (from the opera... | 27.980769 | 121 | 0.635052 | 505 | 4,365 | 5.392079 | 0.312871 | 0.033052 | 0.019097 | 0.013955 | 0.069776 | 0.031583 | 0 | 0 | 0 | 0 | 0 | 0.002586 | 0.291409 | 4,365 | 155 | 122 | 28.16129 | 0.877789 | 0.435281 | 0 | 0.042553 | 0 | 0 | 0.047351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.234043 | false | 0 | 0.042553 | 0.021277 | 0.361702 | 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 |
1eb6f6fcdd74e9a025f3ed02c6d00363deabff53 | 666 | py | Python | tests/integration/flask_endpoints_test.py | HelloMorrisMoss/mahlo_popup | e4b657f93aa8b46f354f0d9d95b81c22c797e6d3 | [
"MIT"
] | null | null | null | tests/integration/flask_endpoints_test.py | HelloMorrisMoss/mahlo_popup | e4b657f93aa8b46f354f0d9d95b81c22c797e6d3 | [
"MIT"
] | null | null | null | tests/integration/flask_endpoints_test.py | HelloMorrisMoss/mahlo_popup | e4b657f93aa8b46f354f0d9d95b81c22c797e6d3 | [
"MIT"
] | null | null | null | from tests.base_test import BaseTest
class FlaskEndpointsTest(BaseTest):
def test_defects_endpoint_exists(self):
with self.app_context():
response = self.app.get(r'/defects')
self.assertEqual(response.status_code, 200)
def test_defects_empty(self):
with self.app_conte... | 28.956522 | 64 | 0.647147 | 77 | 666 | 5.402597 | 0.363636 | 0.100962 | 0.221154 | 0.108173 | 0.557692 | 0.557692 | 0.439904 | 0.439904 | 0.439904 | 0.439904 | 0 | 0.011905 | 0.243243 | 666 | 22 | 65 | 30.272727 | 0.813492 | 0 | 0 | 0.6 | 0 | 0 | 0.06006 | 0.036036 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.2 | false | 0 | 0.066667 | 0 | 0.333333 | 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 |
1eba6e10d003d68291fee67453a429a61abfe604 | 794 | py | Python | examples/coupled_cavity.py | joebentley/simba | dd1b7bc6d22ad96566898dd1851cfa210462cb00 | [
"MIT"
] | 8 | 2020-03-19T10:59:25.000Z | 2022-01-22T22:33:07.000Z | examples/coupled_cavity.py | joebentley/simba | dd1b7bc6d22ad96566898dd1851cfa210462cb00 | [
"MIT"
] | 1 | 2022-01-22T11:24:45.000Z | 2022-01-22T11:24:45.000Z | examples/coupled_cavity.py | joebentley/simba | dd1b7bc6d22ad96566898dd1851cfa210462cb00 | [
"MIT"
] | 1 | 2020-03-19T13:27:41.000Z | 2020-03-19T13:27:41.000Z |
from simba import transfer_function_to_graph, tf2rss
from sympy import symbols
# passive realisation (g = 0)
s = symbols('s')
gamma_f, omega_s = symbols('gamma_f omega_s', real=True, positive=True)
tf = (s**2 + s * gamma_f + omega_s**2) / (s**2 - s * gamma_f + omega_s**2)
h_int = tf2rss(tf).to_slh().split().interac... | 30.538462 | 74 | 0.717884 | 130 | 794 | 4.130769 | 0.346154 | 0.026071 | 0.065177 | 0.089385 | 0.404097 | 0.193669 | 0.158287 | 0.158287 | 0.115456 | 0.115456 | 0 | 0.020115 | 0.123426 | 794 | 25 | 75 | 31.76 | 0.751437 | 0.18262 | 0 | 0 | 0 | 0 | 0.122862 | 0.079316 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.166667 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1ebbb91a70ab0433fe37a2b4712f72a2b687acc4 | 416 | py | Python | simple.py | julia2288-cmis/julia2288-cmis-cs2 | a6925b34bad8e46f2e437d3e174ba1fa2942791f | [
"CC0-1.0"
] | null | null | null | simple.py | julia2288-cmis/julia2288-cmis-cs2 | a6925b34bad8e46f2e437d3e174ba1fa2942791f | [
"CC0-1.0"
] | null | null | null | simple.py | julia2288-cmis/julia2288-cmis-cs2 | a6925b34bad8e46f2e437d3e174ba1fa2942791f | [
"CC0-1.0"
] | null | null | null | def mult(m,a):
return m * a
#Defines the critical functions.
def output(m, a, F):
out = """
The force you want to find is:
{} = {} * {}
""". format(F, m, a,)
return out
#Defines the output.
def main():
m = raw_input("What is the mass?")
a = raw_input("What is the acceleration?")
F = mult(float(m), float(a))
o... | 18.909091 | 44 | 0.622596 | 72 | 416 | 3.569444 | 0.416667 | 0.038911 | 0.062257 | 0.070039 | 0.132296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206731 | 416 | 21 | 45 | 19.809524 | 0.778788 | 0.180288 | 0 | 0 | 0 | 0 | 0.31454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ec7a8be20c3634cc19668635b92d2ba016dc6b4 | 665 | py | Python | src/1011. Capacity To Ship Packages Within D Days.py | rajshrivastava/LeetCode | dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0 | [
"MIT"
] | 1 | 2019-12-16T08:18:25.000Z | 2019-12-16T08:18:25.000Z | src/1011. Capacity To Ship Packages Within D Days.py | rajshrivastava/LeetCode | dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0 | [
"MIT"
] | null | null | null | src/1011. Capacity To Ship Packages Within D Days.py | rajshrivastava/LeetCode | dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0 | [
"MIT"
] | null | null | null | class Solution:
def shipWithinDays(self, weights: List[int], D: int) -> int:
def isValid(capacity):
day_count = 1
cum_sum = 0
for weight in weights:
cum_sum += weight
if cum_sum > capacity:
day_count += 1
... | 27.708333 | 64 | 0.407519 | 67 | 665 | 3.940299 | 0.432836 | 0.090909 | 0.121212 | 0.128788 | 0.174242 | 0.174242 | 0 | 0 | 0 | 0 | 0 | 0.018576 | 0.514286 | 665 | 23 | 65 | 28.913043 | 0.798762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ec9904fcb66688f08930c6c48ee5257e08b8488 | 450 | py | Python | Dataset/Leetcode/train/20/26.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/20/26.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/20/26.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution(object):
def XXX(self, s):
if len(s) % 2 == 1: # 奇数长度
return False
d = {'(': ')', '{': '}', '[': ']'}
stack = []
for char in s:
if char in d: # 左括号入栈
stack.append(char)
else:
if not stack o... | 25 | 79 | 0.411111 | 50 | 450 | 3.7 | 0.58 | 0.032432 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.457778 | 450 | 17 | 80 | 26.470588 | 0.75 | 0.068889 | 0 | 0.153846 | 0 | 0 | 0.014528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ed1ace2d823b49a93272f810565d84a9f472fcc | 1,185 | py | Python | Data Structures/Week1/Program1.py | ChanchalKumarMaji/Data-Structures-and-Algorithms-Specialization | 8eed0b4f01f2ab122c75707b15d4d2d7d0f56d38 | [
"MIT"
] | 4 | 2020-04-01T01:09:15.000Z | 2021-12-28T09:22:59.000Z | Data Structures/Week1/Program1.py | ChanchalKumarMaji/Data-Structures-and-Algorithms-Specialization | 8eed0b4f01f2ab122c75707b15d4d2d7d0f56d38 | [
"MIT"
] | null | null | null | Data Structures/Week1/Program1.py | ChanchalKumarMaji/Data-Structures-and-Algorithms-Specialization | 8eed0b4f01f2ab122c75707b15d4d2d7d0f56d38 | [
"MIT"
] | 3 | 2019-10-26T18:05:10.000Z | 2021-06-15T06:07:58.000Z | # python3
def solve(S):
brackets = []
for i in range(len(S)):
if S[i]=='(' or S[i]==')' or S[i]=='{' or S[i]=='}' or S[i]=='[' or S[i]==']':
brackets.append((S[i], i+1))
#print(brackets)
stack = []
for bracket in brackets:
b, idx = bracket[0], bracket[1]
... | 20.084746 | 86 | 0.316456 | 123 | 1,185 | 2.943089 | 0.235772 | 0.038674 | 0.055249 | 0.069061 | 0.348066 | 0.21547 | 0.21547 | 0.21547 | 0.21547 | 0.21547 | 0 | 0.019366 | 0.520675 | 1,185 | 58 | 87 | 20.431034 | 0.617958 | 0.018565 | 0 | 0.242424 | 0 | 0 | 0.028497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0 | 0 | 0.212121 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1eda1c5ec3fa4c66e9bfd290be0bda0294371158 | 12,713 | py | Python | anella/tenor_client/tenor_nsi.py | Fundacio-i2CAT/ai4.0-tenor | cafb6127f0c9c4f0a8df1eb48cd4fa1a0ee1aed1 | [
"curl",
"Vim",
"Ruby",
"Apache-2.0"
] | null | null | null | anella/tenor_client/tenor_nsi.py | Fundacio-i2CAT/ai4.0-tenor | cafb6127f0c9c4f0a8df1eb48cd4fa1a0ee1aed1 | [
"curl",
"Vim",
"Ruby",
"Apache-2.0"
] | null | null | null | anella/tenor_client/tenor_nsi.py | Fundacio-i2CAT/ai4.0-tenor | cafb6127f0c9c4f0a8df1eb48cd4fa1a0ee1aed1 | [
"curl",
"Vim",
"Ruby",
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""TeNOR Network Service Instance Class and Client"""
import requests
import json
import uuid
from tenor_vnfi import TenorVNFI
from template_management import create_ssh_client
from template_management import render_template
from models.instance_configuration import InstanceCo... | 38.641337 | 112 | 0.526154 | 1,328 | 12,713 | 4.850151 | 0.198042 | 0.020959 | 0.034932 | 0.042385 | 0.357864 | 0.315945 | 0.271386 | 0.232883 | 0.204006 | 0.180096 | 0 | 0.011366 | 0.363329 | 12,713 | 328 | 113 | 38.759146 | 0.784408 | 0.004877 | 0 | 0.318182 | 0 | 0.003497 | 0.134123 | 0.012425 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052448 | null | null | 0.059441 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1ee4ad6117c78e893b5821384c2ff01a4418bed8 | 1,310 | py | Python | sysopt/HSV/inertia.py | andrewjlock/sysopt | b9ef17e4532f3a3327afc696ec698eb5dd365350 | [
"Apache-2.0"
] | null | null | null | sysopt/HSV/inertia.py | andrewjlock/sysopt | b9ef17e4532f3a3327afc696ec698eb5dd365350 | [
"Apache-2.0"
] | null | null | null | sysopt/HSV/inertia.py | andrewjlock/sysopt | b9ef17e4532f3a3327afc696ec698eb5dd365350 | [
"Apache-2.0"
] | null | null | null | """Collection of blocks needed for 3-DoF vehicle model.
"""
from sysopt import Block, Metadata
from sysopt.backends import heaviside
import numpy as np
class InertiaMassOnly(Block):
"""
Simple inertia model that evaluates 'vehicle mass (wet)'
"""
def __init__(self):
metadata = Metadata(
... | 29.111111 | 81 | 0.622137 | 156 | 1,310 | 4.916667 | 0.320513 | 0.215124 | 0.146023 | 0.05867 | 0.344198 | 0.344198 | 0.211213 | 0.211213 | 0.211213 | 0.211213 | 0 | 0.014909 | 0.283206 | 1,310 | 44 | 82 | 29.772727 | 0.801917 | 0.187786 | 0 | 0.2 | 0 | 0 | 0.093539 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.1 | 0 | 0.366667 | 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 |
949098c824cfbd3da37cadae478a4ffc0d23053a | 4,553 | py | Python | DjangoECom/products/migrations/0001_initial.py | MostafaSamyFayez/E-Commerce-Sys | 95ed3cb65b238866e336d43422dfb1737bfd7993 | [
"Unlicense"
] | 2 | 2021-04-01T00:23:44.000Z | 2021-04-01T00:23:48.000Z | DjangoECom/products/migrations/0001_initial.py | MostafaSamyFayez/E-Commerce-Sys | 95ed3cb65b238866e336d43422dfb1737bfd7993 | [
"Unlicense"
] | null | null | null | DjangoECom/products/migrations/0001_initial.py | MostafaSamyFayez/E-Commerce-Sys | 95ed3cb65b238866e336d43422dfb1737bfd7993 | [
"Unlicense"
] | 1 | 2021-01-23T13:06:25.000Z | 2021-01-23T13:06:25.000Z | # Generated by Django 3.1.4 on 2020-12-21 17:04
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('user... | 53.564706 | 141 | 0.595212 | 483 | 4,553 | 5.47619 | 0.231884 | 0.057467 | 0.05293 | 0.083176 | 0.620038 | 0.579206 | 0.537996 | 0.511531 | 0.479773 | 0.479773 | 0 | 0.012873 | 0.249286 | 4,553 | 84 | 142 | 54.202381 | 0.760971 | 0.009884 | 0 | 0.467532 | 1 | 0 | 0.111185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038961 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9499184764c0bbbcd1c2025cd6e25f142d3e1024 | 276 | py | Python | pizzapi/Address.py | lukejuusola/PizzaTracker | c7b583003322bc42c8e84b0b5a07fa160c1a08a2 | [
"MIT"
] | null | null | null | pizzapi/Address.py | lukejuusola/PizzaTracker | c7b583003322bc42c8e84b0b5a07fa160c1a08a2 | [
"MIT"
] | null | null | null | pizzapi/Address.py | lukejuusola/PizzaTracker | c7b583003322bc42c8e84b0b5a07fa160c1a08a2 | [
"MIT"
] | null | null | null | class Address(object):
def __init__(self, street, city, region='', zip=''):
data = {'Street': street.strip(), 'City': city.strip(),
'Region': region.strip(), 'PostalCode': str(zip).strip()}
self.data = {k: v for k, v in data.items() if v}
| 39.428571 | 73 | 0.554348 | 36 | 276 | 4.138889 | 0.555556 | 0.026846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23913 | 276 | 6 | 74 | 46 | 0.709524 | 0 | 0 | 0 | 0 | 0 | 0.094545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
949c84290c5d2af0d114a3443ba14a44a3e3161b | 1,174 | py | Python | config.py | RobertStuartUalberta/CMPUT355 | 82502446552bb09dfa6d680649ae2b4646a4c4dc | [
"Apache-2.0"
] | null | null | null | config.py | RobertStuartUalberta/CMPUT355 | 82502446552bb09dfa6d680649ae2b4646a4c4dc | [
"Apache-2.0"
] | null | null | null | config.py | RobertStuartUalberta/CMPUT355 | 82502446552bb09dfa6d680649ae2b4646a4c4dc | [
"Apache-2.0"
] | null | null | null | from io import open
from importlib import import_module
from app.Exceptions.exceptions import *
def config():
try:
config = open("CONFIG.txt", "r+")
lines = config.readlines()
config.seek(0)
all_modules_installed = True
for line in lines:
if line[0] != "#":
... | 30.894737 | 94 | 0.581772 | 130 | 1,174 | 5.138462 | 0.5 | 0.04491 | 0.085329 | 0.026946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.326235 | 1,174 | 37 | 95 | 31.72973 | 0.835651 | 0.054514 | 0 | 0.1 | 0 | 0 | 0.080397 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 1 | 0.066667 | false | 0 | 0.166667 | 0 | 0.3 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
94b49ac2ff944d6a036aac4514f2d4f0959b3e08 | 12,058 | py | Python | code/pre_processing/pre_processing_utils.py | brainML/great-apes | 293195c6b1274a5e9b5c5f7e30ac963292efeab1 | [
"BSD-3-Clause"
] | 4 | 2022-02-16T20:57:06.000Z | 2022-03-23T01:32:58.000Z | code/pre_processing/pre_processing_utils.py | brainML/great-apes | 293195c6b1274a5e9b5c5f7e30ac963292efeab1 | [
"BSD-3-Clause"
] | null | null | null | code/pre_processing/pre_processing_utils.py | brainML/great-apes | 293195c6b1274a5e9b5c5f7e30ac963292efeab1 | [
"BSD-3-Clause"
] | null | null | null | import h5py
import pandas as pd
import numpy as np
import json
import scipy as sp
import nibabel as nib
from glob import glob
import fnmatch
import os
run_name_dict = {
"REST1": "REST1_7T_PA",
"REST2": "REST2_7T_AP",
"REST3": "REST3_7T_PA",
"REST4": "REST4_7T_AP",
"MOVIE1": 'MOVIE1_CC1',
"MOV... | 45.674242 | 170 | 0.637917 | 1,730 | 12,058 | 4.152601 | 0.173988 | 0.03118 | 0.020045 | 0.020045 | 0.465618 | 0.402561 | 0.372912 | 0.349805 | 0.293291 | 0.279092 | 0 | 0.01947 | 0.246061 | 12,058 | 263 | 171 | 45.847909 | 0.770762 | 0.105158 | 0 | 0.255102 | 0 | 0.010204 | 0.150028 | 0.07929 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045918 | null | null | 0.030612 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
94b68aa576df42be03802058351d5dc93499d16b | 10,568 | py | Python | actors/aga.py | TACC-Cloud/abaco | 9e7bb2f7aed45db62cce3124d4638cde860c5095 | [
"BSD-3-Clause"
] | 27 | 2015-07-24T16:54:38.000Z | 2022-01-07T04:36:47.000Z | actors/aga.py | TACC-Cloud/abaco | 9e7bb2f7aed45db62cce3124d4638cde860c5095 | [
"BSD-3-Clause"
] | 68 | 2015-10-05T16:08:58.000Z | 2022-02-07T15:59:27.000Z | actors/aga.py | TACC-Cloud/abaco | 9e7bb2f7aed45db62cce3124d4638cde860c5095 | [
"BSD-3-Clause"
] | 13 | 2015-10-01T21:38:34.000Z | 2021-05-26T00:19:07.000Z | """
Python3 compatible agave binding. WARNING -- only the token and clients service are supported.
NOTE -- This is a temporary module!
once python3 support is properly added to agavepy this module will be removed.
"""
from urllib.parse import urlparse, urljoin
import requests
import time
from agaveflask.logs ... | 43.489712 | 116 | 0.581472 | 1,206 | 10,568 | 4.958541 | 0.192371 | 0.03311 | 0.017391 | 0.016054 | 0.227592 | 0.158361 | 0.113211 | 0.097826 | 0.085452 | 0.073077 | 0 | 0.002513 | 0.322294 | 10,568 | 242 | 117 | 43.669421 | 0.832449 | 0.160484 | 0 | 0.162921 | 0 | 0 | 0.180073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061798 | false | 0.08427 | 0.022472 | 0 | 0.157303 | 0.022472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94b9d72016da799bcd01548327582926fcff7b04 | 1,094 | py | Python | utils/util.py | dliu18/rawlsnet | 84441fa140fc00d965ff7b63c628140cc975ede4 | [
"MIT"
] | 3 | 2021-05-25T15:23:27.000Z | 2021-11-24T22:54:34.000Z | utils/util.py | dliu18/rawlsnet | 84441fa140fc00d965ff7b63c628140cc975ede4 | [
"MIT"
] | null | null | null | utils/util.py | dliu18/rawlsnet | 84441fa140fc00d965ff7b63c628140cc975ede4 | [
"MIT"
] | null | null | null | import numpy as np
import itertools
def generate_binary_truth_table(num_variables):
'''
Returns a binary truth table
Inputs :
num_variables : Number of variables to consider in constructing the table.
Can be a single number or a list of cardinalities.
If input is a single number, a cardinali... | 21.038462 | 77 | 0.620658 | 154 | 1,094 | 4.24026 | 0.38961 | 0.183767 | 0.073507 | 0.073507 | 0.11026 | 0.11026 | 0 | 0 | 0 | 0 | 0 | 0.017391 | 0.264168 | 1,094 | 52 | 78 | 21.038462 | 0.793789 | 0.517367 | 0 | 0 | 1 | 0 | 0.013274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
94c773fca152e7ec57a6379987b78b8654f7764e | 221 | py | Python | test.py | MohamedAliRashad/EfficientDet.Pytorch | 9b8b5f029fab125371b275687f2449990ce53daa | [
"MIT"
] | null | null | null | test.py | MohamedAliRashad/EfficientDet.Pytorch | 9b8b5f029fab125371b275687f2449990ce53daa | [
"MIT"
] | null | null | null | test.py | MohamedAliRashad/EfficientDet.Pytorch | 9b8b5f029fab125371b275687f2449990ce53daa | [
"MIT"
] | null | null | null | import torch
from models import EfficientDet
if __name__ == '__main__':
inputs = torch.randn(4, 3, 512, 512)
model = EfficientDet(levels=3)
output = model(inputs)
for p in output:
print(p.size()) | 24.555556 | 40 | 0.651584 | 30 | 221 | 4.533333 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053254 | 0.235294 | 221 | 9 | 41 | 24.555556 | 0.751479 | 0 | 0 | 0 | 0 | 0 | 0.036036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.125 | 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 |
94cfbf4917cc9d4f379b439e74351ccc9e7a2864 | 247 | py | Python | backend/apis/pacient/admin.py | sango09/senasoft | d7e5b0fae620764b3af73955f7771dcee5746dfc | [
"MIT"
] | 1 | 2020-10-17T03:39:56.000Z | 2020-10-17T03:39:56.000Z | backend/apis/pacient/admin.py | sango09/senasoft | d7e5b0fae620764b3af73955f7771dcee5746dfc | [
"MIT"
] | null | null | null | backend/apis/pacient/admin.py | sango09/senasoft | d7e5b0fae620764b3af73955f7771dcee5746dfc | [
"MIT"
] | null | null | null | """Admin de los pacientes"""
# Django
from django.contrib import admin
# Modelos
from apis.pacient.models import Pacient
@admin.register(Pacient)
class PacientsAdmin(admin.ModelAdmin):
"""Admin de pacientes"""
list_display = ('user',)
| 17.642857 | 39 | 0.724696 | 30 | 247 | 5.933333 | 0.633333 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149798 | 247 | 13 | 40 | 19 | 0.847619 | 0.230769 | 0 | 0 | 0 | 0 | 0.022472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
94d04637bffae0e0fc3be1a7c8a83bf0c64798a7 | 341 | py | Python | Leetcode/532. K-diff Pairs in an Array/solution2.py | asanoviskhak/Outtalent | c500e8ad498f76d57eb87a9776a04af7bdda913d | [
"MIT"
] | 51 | 2020-07-12T21:27:47.000Z | 2022-02-11T19:25:36.000Z | Leetcode/532. K-diff Pairs in an Array/solution2.py | CrazySquirrel/Outtalent | 8a10b23335d8e9f080e5c39715b38bcc2916ff00 | [
"MIT"
] | null | null | null | Leetcode/532. K-diff Pairs in an Array/solution2.py | CrazySquirrel/Outtalent | 8a10b23335d8e9f080e5c39715b38bcc2916ff00 | [
"MIT"
] | 32 | 2020-07-27T13:54:24.000Z | 2021-12-25T18:12:50.000Z | from collections import Counter
class Solution:
def findPairs(self, nums: List[int], k: int) -> int:
counter = Counter(nums)
if k == 0:
return sum([counter[num] > 1 for num in counter])
elif k > 0:
return sum([num + k in counter for num in set(nums)])
else:
... | 26.230769 | 65 | 0.545455 | 47 | 341 | 3.957447 | 0.510638 | 0.021505 | 0.086022 | 0.11828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0181 | 0.351906 | 341 | 12 | 66 | 28.416667 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
94d087215fbf2f5407c35967629e1295250a1425 | 1,660 | py | Python | src/BanzaiDB/mapping.py | mscook/BanzaiDB | 84d6402a3aecb16edca237bf3954abbf8a66fc6a | [
"ECL-2.0"
] | 3 | 2015-04-27T02:16:42.000Z | 2017-12-09T08:45:31.000Z | src/BanzaiDB/mapping.py | mscook/BanzaiDB | 84d6402a3aecb16edca237bf3954abbf8a66fc6a | [
"ECL-2.0"
] | null | null | null | src/BanzaiDB/mapping.py | mscook/BanzaiDB | 84d6402a3aecb16edca237bf3954abbf8a66fc6a | [
"ECL-2.0"
] | null | null | null | # Copyright 2013-2014 Mitchell Stanton-Cook Licensed under the
# Educational Community 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.osedu.org/licenses/ECL-2.0
#
# Unless required by applicable law or a... | 34.583333 | 74 | 0.650602 | 246 | 1,660 | 4.308943 | 0.5 | 0.056604 | 0.037736 | 0.030189 | 0.101887 | 0.101887 | 0.101887 | 0.101887 | 0.101887 | 0.101887 | 0 | 0.012821 | 0.248193 | 1,660 | 47 | 75 | 35.319149 | 0.836538 | 0.343976 | 0 | 0.090909 | 0 | 0 | 0.099885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045455 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
94d4af3fad97a3a0b09ecceadcf7c059f78ba5ab | 1,056 | py | Python | Interview/Zupee/1_DsAlgo/code2.py | prash-kr-meena/GoogleR | 27aca71e51cc2442e604e07ab00406a98d8d63a4 | [
"Apache-2.0"
] | null | null | null | Interview/Zupee/1_DsAlgo/code2.py | prash-kr-meena/GoogleR | 27aca71e51cc2442e604e07ab00406a98d8d63a4 | [
"Apache-2.0"
] | null | null | null | Interview/Zupee/1_DsAlgo/code2.py | prash-kr-meena/GoogleR | 27aca71e51cc2442e604e07ab00406a98d8d63a4 | [
"Apache-2.0"
] | null | null | null | # You have given an array of non-negative integers.
# Each element in the array represents your maximum jump length at that position,
# you are initially positioned at the first index of the array.
# Return the minimum number of jumps required to reach the last index.
# If it is not possible to reach the last index, re... | 29.333333 | 81 | 0.650568 | 205 | 1,056 | 3.292683 | 0.42439 | 0.02963 | 0.04 | 0.047407 | 0.185185 | 0.072593 | 0.072593 | 0.072593 | 0.072593 | 0.072593 | 0 | 0.070807 | 0.237689 | 1,056 | 35 | 82 | 30.171429 | 0.767702 | 0.372159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
94d50451f51f25b4381946b320306f94fc198f0e | 2,343 | py | Python | Unfollowers For Inta/unfollowers.py | Kanishka-96/engineering-blog-samples | 535d5ac2c905557f01b1112df35b2c725c21c719 | [
"MIT"
] | null | null | null | Unfollowers For Inta/unfollowers.py | Kanishka-96/engineering-blog-samples | 535d5ac2c905557f01b1112df35b2c725c21c719 | [
"MIT"
] | null | null | null | Unfollowers For Inta/unfollowers.py | Kanishka-96/engineering-blog-samples | 535d5ac2c905557f01b1112df35b2c725c21c719 | [
"MIT"
] | null | null | null | from instagram_private_api import Client, ClientCompatPatch
import numpy as np
import time
import getpass
import sys
def list_diff(li1, li2):
li_dif = [i for i in li1 + li2 if i not in li1]
return li_dif
print("\n \nIMPORTANT DISCLAIMER: DO NOT USE THIS TOOL TOO FREQUENTLY (MORE THAN SEVERAL TIMES IN A M... | 40.396552 | 149 | 0.737516 | 384 | 2,343 | 4.223958 | 0.302083 | 0.038841 | 0.014797 | 0.027127 | 0.524661 | 0.503083 | 0.4291 | 0.346486 | 0.267571 | 0.267571 | 0 | 0.003462 | 0.137004 | 2,343 | 58 | 150 | 40.396552 | 0.798714 | 0 | 0 | 0.217391 | 0 | 0.086957 | 0.329778 | 0.017491 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0.086957 | 0.130435 | 0 | 0.173913 | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94da001e21816a78cf7e5e0028d8f8b03ea11e1b | 3,144 | py | Python | tennis/Player.py | reecebenson/DADSA-Tennis-PartB | 59a0162adbb9c42c7d9cd8a86b3cf12dcedcfbc8 | [
"MIT"
] | null | null | null | tennis/Player.py | reecebenson/DADSA-Tennis-PartB | 59a0162adbb9c42c7d9cd8a86b3cf12dcedcfbc8 | [
"MIT"
] | null | null | null | tennis/Player.py | reecebenson/DADSA-Tennis-PartB | 59a0162adbb9c42c7d9cd8a86b3cf12dcedcfbc8 | [
"MIT"
] | null | null | null | """
# Data Structures and Algorithms - Part B
# Created by Reece Benson (16021424)
"""
class Player():
name = None
gender = None
season = None
win_count = None
lost_count = None
total_win_count = None
total_lost_count = None
total_money = None
in_first_16 = None
def __init__(... | 31.44 | 63 | 0.630725 | 391 | 3,144 | 4.769821 | 0.107417 | 0.300268 | 0.077212 | 0.077212 | 0.511528 | 0.434316 | 0.318499 | 0.295979 | 0.240214 | 0.240214 | 0 | 0.010695 | 0.28626 | 3,144 | 100 | 64 | 31.44 | 0.82041 | 0.024809 | 0 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.17284 | false | 0 | 0 | 0.061728 | 0.506173 | 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 |
94dd6870e70005057e8cff11eab7a5220bef77b3 | 435 | py | Python | spkcspider/apps/spider_tags/migrations/0005_spidertag_updateable_by.py | devkral/spkbspider | 97e448b4da412acebd66c4469c7fcdd07bf90ed2 | [
"MIT"
] | 5 | 2019-06-24T14:15:54.000Z | 2021-05-14T23:16:31.000Z | spkcspider/apps/spider_tags/migrations/0005_spidertag_updateable_by.py | devkral/spkbspider | 97e448b4da412acebd66c4469c7fcdd07bf90ed2 | [
"MIT"
] | 2 | 2018-06-19T09:56:18.000Z | 2018-11-20T12:02:44.000Z | spkcspider/apps/spider_tags/migrations/0005_spidertag_updateable_by.py | devkral/spkbspider | 97e448b4da412acebd66c4469c7fcdd07bf90ed2 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.5 on 2019-02-11 20:15
import jsonfield.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('spider_tags', '0004_auto_20190117_1253'),
]
operations = [
migrations.AddField(
model_name='spidertag',
... | 21.75 | 71 | 0.632184 | 48 | 435 | 5.604167 | 0.791667 | 0.111524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096273 | 0.25977 | 435 | 19 | 72 | 22.894737 | 0.73913 | 0.103448 | 0 | 0 | 1 | 0 | 0.14433 | 0.059278 | 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 |
94e2484bd934870ec83c679e77977061aaba0d29 | 6,867 | py | Python | adbiclient/adbi/adbi.py | Samsung/ADBI | 3e424c45386b0a36c57211da819021cb1929775a | [
"Apache-2.0"
] | 312 | 2016-02-04T11:03:17.000Z | 2022-03-18T11:30:10.000Z | adbiclient/adbi/adbi.py | NickHardwood/ADBI | 3e424c45386b0a36c57211da819021cb1929775a | [
"Apache-2.0"
] | 4 | 2016-02-04T11:05:40.000Z | 2017-07-27T04:22:27.000Z | adbiclient/adbi/adbi.py | NickHardwood/ADBI | 3e424c45386b0a36c57211da819021cb1929775a | [
"Apache-2.0"
] | 85 | 2016-02-04T12:48:30.000Z | 2021-01-14T06:23:24.000Z | from rsock import ReliableSocket
from packet import Packet, Header, Payload
from collections import namedtuple
import struct
Symbol = namedtuple('Symbol', 'address name')
Tracepoint = namedtuple('Tracepoint', 'address handler')
Injectable = namedtuple('Injectable', 'id filename refs type name comment')
class ADBIExce... | 33.014423 | 92 | 0.567642 | 771 | 6,867 | 4.971466 | 0.228275 | 0.10227 | 0.071224 | 0.081398 | 0.262458 | 0.219932 | 0.19593 | 0.180277 | 0.148187 | 0.103052 | 0 | 0.009934 | 0.296345 | 6,867 | 208 | 93 | 33.014423 | 0.78332 | 0 | 0 | 0.217647 | 0 | 0 | 0.072219 | 0 | 0 | 0 | 0.00233 | 0 | 0 | 1 | 0.205882 | false | 0.005882 | 0.029412 | 0.058824 | 0.394118 | 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 |
94e94b722e8d9c3a8b216d12bcf8c0b49e28c1e0 | 363 | py | Python | testing/test_caching_obj.py | jkpubsrc/python-module-jk-cachefunccalls | f49779001b7b19a460155d8bd2cbf5e22b5c947d | [
"Apache-1.1"
] | null | null | null | testing/test_caching_obj.py | jkpubsrc/python-module-jk-cachefunccalls | f49779001b7b19a460155d8bd2cbf5e22b5c947d | [
"Apache-1.1"
] | null | null | null | testing/test_caching_obj.py | jkpubsrc/python-module-jk-cachefunccalls | f49779001b7b19a460155d8bd2cbf5e22b5c947d | [
"Apache-1.1"
] | null | null | null | #!/usr/bin/python3
import collections
import typing
import inspect
import time
from jk_cachefunccalls import cacheCalls
from _test_and_evaluate import testAndEvaluate
class MyTestClass(object):
@cacheCalls(seconds=2, dependArgs=[0])
def returnSomething(self, n):
return time.time()
#
#
o = MyTestClass(... | 10.371429 | 46 | 0.760331 | 42 | 363 | 6.47619 | 0.690476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009772 | 0.15427 | 363 | 34 | 47 | 10.676471 | 0.876222 | 0.046832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.5 | 0.083333 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
94f1ff09cb84288db3c23319870e98e03bf23f8d | 17,246 | py | Python | panic/gui/actions.py | MaxIV-KitsControls/app-cells-panicgui | 58c5610970135e6fbb7b715094514b33bc1bc9c1 | [
"CC-BY-3.0"
] | 1 | 2019-09-20T08:10:32.000Z | 2019-09-20T08:10:32.000Z | panic/gui/actions.py | MaxIV-KitsControls/app-cells-panicgui | 58c5610970135e6fbb7b715094514b33bc1bc9c1 | [
"CC-BY-3.0"
] | null | null | null | panic/gui/actions.py | MaxIV-KitsControls/app-cells-panicgui | 58c5610970135e6fbb7b715094514b33bc1bc9c1 | [
"CC-BY-3.0"
] | null | null | null | """
This file belongs to the PANIC Alarm Suite,
developed by ALBA Synchrotron for Tango Control System
GPL Licensed
"""
import sys, re, os, traceback, time
import PyTango, fandango
from fandango.functional import *
from fandango import Catched
import taurus, taurus.qt.qtgui.base
from taurus.core import TaurusEventTy... | 39.195455 | 85 | 0.548591 | 1,831 | 17,246 | 5.13053 | 0.183506 | 0.02459 | 0.029806 | 0.04769 | 0.427081 | 0.377581 | 0.354269 | 0.34522 | 0.328827 | 0.308175 | 0 | 0.002777 | 0.331787 | 17,246 | 439 | 86 | 39.284738 | 0.812392 | 0.055549 | 0 | 0.365497 | 0 | 0 | 0.098942 | 0.007885 | 0.008772 | 0 | 0 | 0 | 0.002924 | 0 | null | null | 0.01462 | 0.04386 | 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 |
94fb48e24e8d440a0f32b5d2f24b262ed6774874 | 9,631 | py | Python | lib/aggregate_all_epitopes.py | mrichters/pVACtools | 1e86411055b3da9f81f966e83578dfadc3883498 | [
"BSD-3-Clause-Clear"
] | 96 | 2017-11-06T18:53:19.000Z | 2022-02-28T07:36:12.000Z | lib/aggregate_all_epitopes.py | mrichters/pVACtools | 1e86411055b3da9f81f966e83578dfadc3883498 | [
"BSD-3-Clause-Clear"
] | 521 | 2017-11-29T16:27:54.000Z | 2022-03-30T13:57:38.000Z | lib/aggregate_all_epitopes.py | mrichters/pVACtools | 1e86411055b3da9f81f966e83578dfadc3883498 | [
"BSD-3-Clause-Clear"
] | 53 | 2017-11-29T19:40:27.000Z | 2022-01-14T16:51:12.000Z | import pandas as pd
import numpy as np
class AggregateAllEpitopes:
def __init__(self, input_file, output_file, file_type='pVACseq'):
self.input_file = input_file
self.output_file = output_file
self.file_type = file_type
#assign mutations to a "Classification" based on their favorabilit... | 44.382488 | 208 | 0.553214 | 1,163 | 9,631 | 4.426483 | 0.192605 | 0.020202 | 0.025641 | 0.024476 | 0.304973 | 0.210567 | 0.175991 | 0.152098 | 0.128399 | 0.114413 | 0 | 0.015742 | 0.307445 | 9,631 | 216 | 209 | 44.587963 | 0.756072 | 0.093656 | 0 | 0.289941 | 0 | 0 | 0.210865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029586 | false | 0.059172 | 0.011834 | 0 | 0.100592 | 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 |
94fb7a6413d1406843ebe3c5eaf0726aecee2e7a | 2,600 | py | Python | profiles_api/views.py | teomoney1999/profiles-rest-api-final | 452f70f06abd423c61e8a8153a6ff64abd2730b0 | [
"MIT"
] | null | null | null | profiles_api/views.py | teomoney1999/profiles-rest-api-final | 452f70f06abd423c61e8a8153a6ff64abd2730b0 | [
"MIT"
] | 7 | 2020-06-06T01:55:15.000Z | 2022-02-10T13:59:01.000Z | profiles_api/views.py | teomoney1999/profiles-rest-api-final | 452f70f06abd423c61e8a8153a6ff64abd2730b0 | [
"MIT"
] | null | null | null | from rest_framework.views import APIView
from rest_framework.response import Response
"""List of HTTP status code"""
from rest_framework import status
from profiles_api import serializer
from rest_framework import viewsets
class HelloApiView(APIView):
"""Test API View"""
serializer_class = serializer.HelloSerial... | 28.26087 | 74 | 0.706154 | 343 | 2,600 | 5.262391 | 0.291545 | 0.100831 | 0.050416 | 0.065928 | 0.399446 | 0.305263 | 0.305263 | 0.25651 | 0.233795 | 0.181717 | 0 | 0.002754 | 0.161923 | 2,600 | 92 | 75 | 28.26087 | 0.825608 | 0.138846 | 0 | 0.245614 | 0 | 0 | 0.209087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192982 | false | 0 | 0.087719 | 0.052632 | 0.578947 | 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 |
94ff17cb22d926e85be26c7e19448a851ae82e4b | 309 | py | Python | mowgli_etl/loader/json/json_node_loader.py | tetherless-world/mowgli | 28c19eba41e03e053ae4addff56a313d926e18d7 | [
"MIT"
] | 4 | 2021-01-15T15:36:23.000Z | 2021-09-01T06:52:05.000Z | mowgli_etl/loader/json/json_node_loader.py | tetherless-world/mowgli | 28c19eba41e03e053ae4addff56a313d926e18d7 | [
"MIT"
] | 63 | 2020-05-04T13:48:04.000Z | 2020-06-06T02:32:58.000Z | mowgli_etl/loader/json/json_node_loader.py | tetherless-world/mowgli-etl | 28c19eba41e03e053ae4addff56a313d926e18d7 | [
"MIT"
] | null | null | null | from mowgli_etl.loader._kg_node_loader import _KgNodeLoader
from mowgli_etl.loader.json._json_loader import _JsonLoader
class JsonNodeLoader(_KgNodeLoader, _JsonLoader):
_JSON_FILE_NAME = "nodes.json"
close = _JsonLoader.close
load_kg_node = _JsonLoader._load_model
open = _JsonLoader.open
| 28.090909 | 59 | 0.802589 | 39 | 309 | 5.820513 | 0.487179 | 0.088106 | 0.114537 | 0.167401 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135922 | 309 | 10 | 60 | 30.9 | 0.850187 | 0 | 0 | 0 | 0 | 0 | 0.032362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 1 | 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 |
a201fccda177475fd273262409fcc95c610514db | 1,823 | py | Python | tools/building_script/native_method_collector/base_native_method_collector.py | zhouyanlt/llbc | a8cc4662401e9b077be7ee0058350b35fdd86060 | [
"MIT"
] | 83 | 2015-11-10T09:52:56.000Z | 2022-01-12T11:53:01.000Z | tools/building_script/native_method_collector/base_native_method_collector.py | zhouyanlt/llbc | a8cc4662401e9b077be7ee0058350b35fdd86060 | [
"MIT"
] | 30 | 2017-09-30T07:43:20.000Z | 2022-01-23T13:18:48.000Z | tools/building_script/native_method_collector/base_native_method_collector.py | caochunxi/llbc | 2ff4af937f1635be67a7e24602d0a3e87c708ba7 | [
"MIT"
] | 34 | 2015-11-14T12:37:44.000Z | 2021-12-16T02:38:36.000Z | # -*- coding: utf-8 -*-
"""
基础native方法收集器,完成c/c++native方法收集,并整合到对应的脚本语言中
"""
import re
from os import path as op
from cpputils import *
from c import Cfg
from defs import LangType
class BaseNativeMethodCollector(object):
def __init__(self, search_path, classname_base=None, filename_base=None):
self.sea... | 32.553571 | 151 | 0.660998 | 243 | 1,823 | 4.72428 | 0.378601 | 0.069686 | 0.060976 | 0.047038 | 0.099303 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00494 | 0.22271 | 1,823 | 55 | 152 | 33.145455 | 0.805222 | 0.011519 | 0 | 0.054054 | 0 | 0 | 0.114631 | 0.012673 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.135135 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a209d7ff8a1321cfe4ae1ee153251f97d85b8910 | 22,345 | py | Python | tools/gn/secondary/build/config/win/get_msvc_config_real.py | nagineni/chromium-crosswalk | 5725642f1c67d0f97e8613ec1c3e8107ab53fdf8 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 231 | 2015-01-08T09:04:44.000Z | 2021-12-30T03:03:10.000Z | build/config/win/get_msvc_config_real.py | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 8 | 2015-08-31T06:39:59.000Z | 2021-12-04T14:53:28.000Z | build/config/win/get_msvc_config_real.py | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 268 | 2015-01-21T05:53:28.000Z | 2022-03-25T22:09:01.000Z | # Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This file copies the logic from GYP to find the MSVC configuration. It's not
# currently used because it is too slow. We will probably build this
# fun... | 38.793403 | 81 | 0.606086 | 2,742 | 22,345 | 4.840263 | 0.196207 | 0.016878 | 0.012658 | 0.013261 | 0.417571 | 0.401522 | 0.391953 | 0.355485 | 0.351115 | 0.342526 | 0 | 0.031339 | 0.290266 | 22,345 | 575 | 82 | 38.86087 | 0.805536 | 0.096218 | 0 | 0.416438 | 0 | 0 | 0.114284 | 0.033289 | 0 | 0 | 0 | 0.001739 | 0.005479 | 0 | null | null | 0.00274 | 0.021918 | null | null | 0.00274 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a2103e8445d872bf5cb390f93bde6d7bd4043e05 | 275 | py | Python | examples/getdata.py | Commensalism1997/gpop.py | 976c48a77026455441e57f2e975d0f70e060911b | [
"MIT"
] | null | null | null | examples/getdata.py | Commensalism1997/gpop.py | 976c48a77026455441e57f2e975d0f70e060911b | [
"MIT"
] | 1 | 2022-01-19T13:39:45.000Z | 2022-01-19T13:39:45.000Z | examples/getdata.py | Commensalism1997/gpop.py | 976c48a77026455441e57f2e975d0f70e060911b | [
"MIT"
] | null | null | null | import gpop
while True:
nick = input()
data = gpop.get_data(nick)
print(f'''
{nick} stats:
Level: {data.level}
Time played: {data.time}
Levels played: {data.played}
Levels created: {data.created}
Views: {data.views}
G-Coins: {data.coins}
GBobs: {data.gbobs}
''')
| 18.333333 | 30 | 0.669091 | 40 | 275 | 4.575 | 0.5 | 0.10929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156364 | 275 | 14 | 31 | 19.642857 | 0.788793 | 0 | 0 | 0 | 0 | 0 | 0.661818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a21e97a3119d9596c35d2805249f2abdd428f597 | 393 | py | Python | examples/network/UDPSend_python/UDPecho.py | sicrisembay/mbed_target | dd7af2f2903fdc633ccd6028e6ae4f7b3cdd54c8 | [
"Apache-2.0"
] | 20 | 2017-10-12T10:49:10.000Z | 2022-03-16T03:21:46.000Z | examples/network/UDPSend_python/UDPecho.py | sicrisembay/mbed_target | dd7af2f2903fdc633ccd6028e6ae4f7b3cdd54c8 | [
"Apache-2.0"
] | 2 | 2018-06-22T16:00:02.000Z | 2019-09-01T13:32:27.000Z | examples/network/UDPSend_python/UDPecho.py | sicrisembay/mbed_target | dd7af2f2903fdc633ccd6028e6ae4f7b3cdd54c8 | [
"Apache-2.0"
] | 9 | 2017-08-13T12:15:32.000Z | 2021-11-21T07:57:08.000Z | import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
server_address = ''
server_port = 10001
server = (server_address, server_port)
sock.bind(server)
print("Listening on " + server_address + ":" + str(server_port))
while True:
payload, client_address = sock.recvfrom(1024)
print("Echoing data back... | 26.2 | 64 | 0.753181 | 54 | 393 | 5.277778 | 0.5 | 0.136842 | 0.133333 | 0.161404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026163 | 0.124682 | 393 | 15 | 65 | 26.2 | 0.802326 | 0 | 0 | 0 | 0 | 0 | 0.088832 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.181818 | 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 |
a2218eb8e774cc37ae6e91146172fc4b0d506e5d | 1,496 | py | Python | dev/logger.py | Holovin/D_GrabDemo | 6adb03fb42ae03e7896eb2eacb342cf9660feb92 | [
"MIT"
] | null | null | null | dev/logger.py | Holovin/D_GrabDemo | 6adb03fb42ae03e7896eb2eacb342cf9660feb92 | [
"MIT"
] | 2 | 2018-03-28T19:47:46.000Z | 2021-12-13T20:56:31.000Z | dev/logger.py | Holovin/D_GrabDemo | 6adb03fb42ae03e7896eb2eacb342cf9660feb92 | [
"MIT"
] | null | null | null | # logger.py
# App logger initialization function
# r1
# TODO: logger.propagate using
import logging
from logging.handlers import RotatingFileHandler
from helpers.config import Config
def logger_setup(log_file, loggers=None, touch_root=False):
log_formatter = logging.Formatter(Config.get('APP_LOG_FORMAT'), datefm... | 28.226415 | 96 | 0.66377 | 175 | 1,496 | 5.514286 | 0.394286 | 0.049741 | 0.037306 | 0.031088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002618 | 0.233957 | 1,496 | 52 | 97 | 28.769231 | 0.839442 | 0.050802 | 0 | 0.108108 | 0 | 0 | 0.083392 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.027027 | false | 0 | 0.081081 | 0 | 0.108108 | 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 |
bf3f318dea8bdb40dfcc7f44d11dbe3ea8396aae | 3,089 | py | Python | src/restApi/accounts/api/views.py | nightwarriorftw/restApi | 41bb572f55d27fbdb104a3624a15cbb959b92cf7 | [
"MIT"
] | null | null | null | src/restApi/accounts/api/views.py | nightwarriorftw/restApi | 41bb572f55d27fbdb104a3624a15cbb959b92cf7 | [
"MIT"
] | 10 | 2020-06-05T20:12:44.000Z | 2022-03-12T00:08:39.000Z | src/restApi/accounts/api/views.py | nightwarriorftw/restApi | 41bb572f55d27fbdb104a3624a15cbb959b92cf7 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from django.contrib.auth import authenticate
from django.db.models import Q
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import permissions, generics
from rest_framework_jwt.settings import api_settings
from acc... | 35.918605 | 84 | 0.652315 | 322 | 3,089 | 6.086957 | 0.263975 | 0.057143 | 0.034694 | 0.05102 | 0.336735 | 0.280612 | 0.252041 | 0.252041 | 0.252041 | 0.252041 | 0 | 0.003025 | 0.25089 | 3,089 | 85 | 85 | 36.341176 | 0.843993 | 0.369051 | 0 | 0.047619 | 0 | 0 | 0.043229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.047619 | 0.238095 | 0.02381 | 0.52381 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
bf40bec63820957e6761ed0c250696ce749bea12 | 2,578 | py | Python | src/DataProcessing/CO2_GDP/treemapdata.py | KKDJOSEPH/Analysis_on_Global_Warming | 02376517b61c08d2c2858d2ca2e994eb0ec04c89 | [
"MIT"
] | null | null | null | src/DataProcessing/CO2_GDP/treemapdata.py | KKDJOSEPH/Analysis_on_Global_Warming | 02376517b61c08d2c2858d2ca2e994eb0ec04c89 | [
"MIT"
] | null | null | null | src/DataProcessing/CO2_GDP/treemapdata.py | KKDJOSEPH/Analysis_on_Global_Warming | 02376517b61c08d2c2858d2ca2e994eb0ec04c89 | [
"MIT"
] | null | null | null | def treegenerator(region, cleancountryco2):
"""
@Author Haoyang Ding
generate a dictionary in a special format
treedata={"value": co2 emission in a specific region
"name": region's name
"children": [{country's name: co2 emission data}, {}....]
}
:param region: lis... | 34.837838 | 116 | 0.623351 | 310 | 2,578 | 5.167742 | 0.309677 | 0.0799 | 0.074906 | 0.02809 | 0.189763 | 0.157928 | 0.076155 | 0.076155 | 0.076155 | 0.076155 | 0 | 0.026598 | 0.24166 | 2,578 | 73 | 117 | 35.315068 | 0.792839 | 0.245927 | 0 | 0.042553 | 1 | 0 | 0.087587 | 0.032241 | 0 | 0 | 0 | 0 | 0.170213 | 1 | 0.042553 | false | 0 | 0.021277 | 0 | 0.085106 | 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 |
bf4206dbcc7426fe08c0679c20acc8aa9437d1eb | 3,472 | py | Python | core/aws_ddk_core/pipelines/stage.py | vemel/aws-ddk | d34bd1d98f5a170026a1b65f9629e909ca839930 | [
"Apache-2.0"
] | null | null | null | core/aws_ddk_core/pipelines/stage.py | vemel/aws-ddk | d34bd1d98f5a170026a1b65f9629e909ca839930 | [
"Apache-2.0"
] | null | null | null | core/aws_ddk_core/pipelines/stage.py | vemel/aws-ddk | d34bd1d98f5a170026a1b65f9629e909ca839930 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | 29.423729 | 104 | 0.580069 | 382 | 3,472 | 5.193717 | 0.400524 | 0.042339 | 0.025202 | 0.016129 | 0.112903 | 0.112903 | 0.112903 | 0 | 0 | 0 | 0 | 0.003521 | 0.345622 | 3,472 | 117 | 105 | 29.675214 | 0.869718 | 0.676843 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0.090909 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bf4435708cd1cd1a00c510e8d61acff73e2fc0ba | 5,901 | py | Python | qced_dti_analysis.py | shanqing-cai/MRI_analysis | 39b3d48e2158623ffd9a8a6ea47d16a4a7b83cd9 | [
"BSD-4-Clause"
] | 1 | 2016-02-08T18:31:36.000Z | 2016-02-08T18:31:36.000Z | qced_dti_analysis.py | shanqing-cai/MRI_analysis | 39b3d48e2158623ffd9a8a6ea47d16a4a7b83cd9 | [
"BSD-4-Clause"
] | null | null | null | qced_dti_analysis.py | shanqing-cai/MRI_analysis | 39b3d48e2158623ffd9a8a6ea47d16a4a7b83cd9 | [
"BSD-4-Clause"
] | null | null | null | #!/usr/bin/python
import os
import sys
import glob
import argparse
from scai_utils import *
REQ_FSL_VER = "5.0"
DATA_DIR = "/users/cais/STUT/DATA"
DTIPREP_DIR = "/users/cais/STUT/analysis/dti"
DTI_BASE = "/users/cais/STUT/analysis/dti2"
EDDY_CORRECT_SPLINE_BIN = "/users/cais/STUT/scripts/eddy_correct_spline"
#FDT_RO... | 37.585987 | 114 | 0.629724 | 831 | 5,901 | 4.31769 | 0.226233 | 0.083612 | 0.078038 | 0.079431 | 0.391583 | 0.313824 | 0.285396 | 0.264771 | 0.219064 | 0.208751 | 0 | 0.009639 | 0.226402 | 5,901 | 156 | 115 | 37.826923 | 0.776342 | 0.063549 | 0 | 0.097345 | 0 | 0 | 0.252448 | 0.075988 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044248 | null | null | 0.035398 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bf47efa3b194ce23f5e5b344a1cad11ef6badea9 | 949 | py | Python | clara/transpiler/preprocessing/minmax.py | asergiobranco/clara | bca39620b615d7fefb760f4257bda073f401626b | [
"Apache-2.0"
] | 4 | 2020-07-04T20:37:01.000Z | 2021-01-03T09:10:08.000Z | clara/transpiler/preprocessing/minmax.py | asergiobranco/clara | bca39620b615d7fefb760f4257bda073f401626b | [
"Apache-2.0"
] | null | null | null | clara/transpiler/preprocessing/minmax.py | asergiobranco/clara | bca39620b615d7fefb760f4257bda073f401626b | [
"Apache-2.0"
] | 2 | 2020-09-25T01:59:34.000Z | 2022-02-07T14:14:24.000Z | class MinMaxScalerTranspiler(object):
def __init__(self, model):
self.model = model
self.n_features = len(self.model.min_)
self.min = ','.join(self.model.min_.astype(str))
self.std = ','.join(self.model.scale_.astype(str))
def generate_code(self):
return """
/*... | 25.648649 | 138 | 0.523709 | 109 | 949 | 4.422018 | 0.412844 | 0.130705 | 0.053942 | 0.06639 | 0.095436 | 0.095436 | 0.095436 | 0.095436 | 0.095436 | 0 | 0 | 0.004785 | 0.339305 | 949 | 36 | 139 | 26.361111 | 0.763955 | 0 | 0 | 0.08 | 0 | 0.04 | 0.630137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0 | 0.04 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf48c12f766440fe89efdec56fd4ce8b427adc83 | 653 | py | Python | Python3/1429-First-Unique-Number/soln.py | wyaadarsh/LeetCode-Solutions | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | Python3/1429-First-Unique-Number/soln.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | Python3/1429-First-Unique-Number/soln.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | class FirstUnique:
def __init__(self, nums: List[int]):
self.counter = collections.Counter(nums)
self.idx = 0
self.nums = nums
def showFirstUnique(self) -> int:
while self.idx < len(self.nums) and self.counter[self.nums[self.idx]] > 1:
self.idx += 1
... | 27.208333 | 82 | 0.601838 | 87 | 653 | 4.45977 | 0.390805 | 0.14433 | 0.085052 | 0.072165 | 0.092784 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012685 | 0.275651 | 653 | 23 | 83 | 28.391304 | 0.807611 | 0.206738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf4a21121167372f015ea33b342a6de5c9c4381e | 737 | py | Python | fias/migrations/0007_add_fks_to_house.py | xiva-wgt/django-fias | 966e9905d6205cec8b51cbe6751382198c67f2cb | [
"BSD-3-Clause"
] | 108 | 2015-02-26T16:33:23.000Z | 2022-01-05T22:47:59.000Z | fias/migrations/0007_add_fks_to_house.py | xiva-wgt/django-fias | 966e9905d6205cec8b51cbe6751382198c67f2cb | [
"BSD-3-Clause"
] | 74 | 2015-01-26T11:15:08.000Z | 2021-12-17T05:29:07.000Z | fias/migrations/0007_add_fks_to_house.py | xiva-wgt/django-fias | 966e9905d6205cec8b51cbe6751382198c67f2cb | [
"BSD-3-Clause"
] | 81 | 2015-01-22T09:55:59.000Z | 2022-03-23T04:53:05.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-08-24 15:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('fias', '0006_add_fks_to_addrobj'),
]
operations = [... | 27.296296 | 100 | 0.629579 | 83 | 737 | 5.433735 | 0.542169 | 0.070953 | 0.093126 | 0.146341 | 0.452328 | 0.452328 | 0.283814 | 0.283814 | 0.283814 | 0.283814 | 0 | 0.035971 | 0.24559 | 737 | 26 | 101 | 28.346154 | 0.77518 | 0.090909 | 0 | 0.315789 | 1 | 0 | 0.118441 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf5ea75c0a67371f89833cc073f335bc92883e04 | 1,064 | py | Python | escher/cmd/esdsl.py | msh5/escher | 004e90e6df70a15a00331a5c27bf2aef77608d30 | [
"Apache-2.0"
] | null | null | null | escher/cmd/esdsl.py | msh5/escher | 004e90e6df70a15a00331a5c27bf2aef77608d30 | [
"Apache-2.0"
] | null | null | null | escher/cmd/esdsl.py | msh5/escher | 004e90e6df70a15a00331a5c27bf2aef77608d30 | [
"Apache-2.0"
] | null | null | null | '''
Define subcommands for 'esdsl'.
'''
import json
import click
from escher import __version__
@click.group()
@click.option('--pretty', '-p', is_flag=True)
@click.option('--indent', '-n', type=int)
@click.version_option(version=__version__, message='escher %(version)s')
@click.pass_context
def cli(ctx, pretty, ind... | 20.075472 | 72 | 0.660714 | 149 | 1,064 | 4.510067 | 0.315436 | 0.089286 | 0.071429 | 0.084821 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001131 | 0.169173 | 1,064 | 52 | 73 | 20.461538 | 0.75905 | 0.029135 | 0 | 0.142857 | 0 | 0 | 0.12878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.085714 | 0.085714 | 0 | 0.228571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bf639a181719d10dfc36d41a7287863edc74aed4 | 418 | py | Python | plugin/python/libs/runtime/launcher.py | nomadsinteractive/ark | 52f84c6dbd5ca6bdd07d450b3911be1ffd995922 | [
"Apache-2.0"
] | 5 | 2018-03-28T09:14:55.000Z | 2018-04-02T11:54:33.000Z | plugin/python/libs/runtime/launcher.py | nomadsinteractive/ark | 52f84c6dbd5ca6bdd07d450b3911be1ffd995922 | [
"Apache-2.0"
] | null | null | null | plugin/python/libs/runtime/launcher.py | nomadsinteractive/ark | 52f84c6dbd5ca6bdd07d450b3911be1ffd995922 | [
"Apache-2.0"
] | null | null | null | import sys
from subprocess import Popen, PIPE, STDOUT, TimeoutExpired
if __name__ == '__main__':
proc = Popen(sys.argv[1:], stdout=PIPE, stderr=STDOUT)
while True:
try:
for line in iter(proc.stdout.readline, b''):
print(line.decode(sys.stdout.encoding or 'utf-8').rstrip())
... | 29.857143 | 75 | 0.593301 | 50 | 418 | 4.8 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010169 | 0.294258 | 418 | 13 | 76 | 32.153846 | 0.80339 | 0 | 0 | 0 | 0 | 0 | 0.0311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.166667 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bf6b8de0ee75da5ff25ffe6549e61e5b4e5e66f8 | 921 | py | Python | objectoriented.py | rmcneal40/scripting_practice | 2d5cfbc458fdcb755b030d7d53ca43be3d07f8c2 | [
"MIT"
] | null | null | null | objectoriented.py | rmcneal40/scripting_practice | 2d5cfbc458fdcb755b030d7d53ca43be3d07f8c2 | [
"MIT"
] | null | null | null | objectoriented.py | rmcneal40/scripting_practice | 2d5cfbc458fdcb755b030d7d53ca43be3d07f8c2 | [
"MIT"
] | null | null | null |
import re
class Ops:
def __init__(self, name, year):
self.name = name
self.year = year
p1 = Ops("CyberSecurity", 2022)
print(p1.year)
print(p1.name)
class Technology:
def __init__(self, name, year, grade, gpa, technology):
self.name = name
self.year = year
self.grade =... | 21.418605 | 110 | 0.587405 | 116 | 921 | 4.594828 | 0.491379 | 0.060038 | 0.041276 | 0.056285 | 0.24015 | 0.090056 | 0 | 0 | 0 | 0 | 0 | 0.030973 | 0.263844 | 921 | 42 | 111 | 21.928571 | 0.755162 | 0 | 0 | 0.125 | 0 | 0 | 0.230937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03125 | null | null | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bf77945a989d2be98cc789d1b6b02fc9f2ff8482 | 698 | py | Python | planet.py | PAStephenson/Solar-System-Simulation | 619a53335ca0431b6382251a226182d453777793 | [
"MIT"
] | null | null | null | planet.py | PAStephenson/Solar-System-Simulation | 619a53335ca0431b6382251a226182d453777793 | [
"MIT"
] | null | null | null | planet.py | PAStephenson/Solar-System-Simulation | 619a53335ca0431b6382251a226182d453777793 | [
"MIT"
] | null | null | null | from vector import Vector
class Planet:
"""A class to represent a planet."""
def __init__(self, mass, position, velocity, acceleration):
"""Initialise the planet."""
self.MASS = mass
self.position = position
self.velocity = velocity
self.acceleration = acceleration
... | 31.727273 | 63 | 0.666189 | 78 | 698 | 5.833333 | 0.320513 | 0.105495 | 0.057143 | 0.083516 | 0.10989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230659 | 698 | 21 | 64 | 33.238095 | 0.8473 | 0.19914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf7cfb27c97379288c453a445e960427b967978e | 511 | py | Python | generator/templates/output/endforeach.py | grbd/GBD.Build.BlackJack | 3e8d027625b7528af3674a373fd9931e3feaaab4 | [
"Apache-2.0"
] | 1 | 2017-05-26T00:18:26.000Z | 2017-05-26T00:18:26.000Z | generator/templates/output/endforeach.py | grbd/GBD.Build.BlackJack | 3e8d027625b7528af3674a373fd9931e3feaaab4 | [
"Apache-2.0"
] | null | null | null | generator/templates/output/endforeach.py | grbd/GBD.Build.BlackJack | 3e8d027625b7528af3674a373fd9931e3feaaab4 | [
"Apache-2.0"
] | null | null | null | from blackjack.cmake.ScriptBase import ScriptBase
class endforeach(ScriptBase):
"""
CMake Command - endforeach
"""
def __init__(self, loopvar: str ):
super().__init__()
self.LoopVar = loopvar
"""Loop Variable to end the foreach loop with"""
return
@property
def Comma... | 22.217391 | 56 | 0.587084 | 52 | 511 | 5.596154 | 0.557692 | 0.113402 | 0.103093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.295499 | 511 | 22 | 57 | 23.227273 | 0.808333 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | 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 |
bf7f857e06dbbdce55ca33b9325e2485fe2d96c5 | 3,551 | py | Python | unit_tests/controllers/test_main_window.py | GrzegorzNieuzyla/PasswordManager | f54ebb7f5f86449d3d1f13542402a536bcf264d7 | [
"MIT"
] | null | null | null | unit_tests/controllers/test_main_window.py | GrzegorzNieuzyla/PasswordManager | f54ebb7f5f86449d3d1f13542402a536bcf264d7 | [
"MIT"
] | null | null | null | unit_tests/controllers/test_main_window.py | GrzegorzNieuzyla/PasswordManager | f54ebb7f5f86449d3d1f13542402a536bcf264d7 | [
"MIT"
] | null | null | null | from PyQt6.QtWidgets import QApplication
from pytest_mock import MockerFixture
from password_manager.application_context import ApplicationContext
from password_manager.controllers.main_window import MainWindowController
from password_manager.models.record_data import RecordData
def get_context() -> ApplicationConte... | 35.158416 | 114 | 0.727964 | 378 | 3,551 | 6.595238 | 0.214286 | 0.068191 | 0.061773 | 0.081428 | 0.659045 | 0.641797 | 0.619334 | 0.597673 | 0.558363 | 0.531889 | 0 | 0.011749 | 0.161081 | 3,551 | 100 | 115 | 35.51 | 0.825109 | 0 | 0 | 0.5 | 0 | 0 | 0.082512 | 0.00704 | 0 | 0 | 0 | 0 | 0.128205 | 1 | 0.128205 | false | 0.089744 | 0.064103 | 0.012821 | 0.217949 | 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 |
bf8039d9c0032c62c24d6cc59c9dc3793dfda2b5 | 495 | py | Python | bot/exceptions.py | christinevandev/KevinMalone | 9bb0f0313611c59676d1ae0f8d9249420e70d436 | [
"MIT"
] | null | null | null | bot/exceptions.py | christinevandev/KevinMalone | 9bb0f0313611c59676d1ae0f8d9249420e70d436 | [
"MIT"
] | null | null | null | bot/exceptions.py | christinevandev/KevinMalone | 9bb0f0313611c59676d1ae0f8d9249420e70d436 | [
"MIT"
] | null | null | null | import logging
from discord import commands
logger = logging.getLogger(__name__)
class NotGuildException(commands.ApplicationCommandError):
pass
class ErrorHandler:
def __init__(self, error):
self.err = error
self.msg = self._handle_error()
def _handle_error(self):
if isinstan... | 22.5 | 58 | 0.688889 | 57 | 495 | 5.754386 | 0.596491 | 0.082317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228283 | 495 | 21 | 59 | 23.571429 | 0.858639 | 0 | 0 | 0 | 0 | 0 | 0.117172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.071429 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bf8425fbb8a6c4e485f1bc15c4ac7de770febef9 | 5,227 | py | Python | Tools/Wings3DExporter/erlang_ext.py | fegorsch/ogre | 79b0163a25164a27a0b63958467db96530a2b194 | [
"MIT"
] | 2,937 | 2016-02-05T14:26:54.000Z | 2022-03-31T14:53:11.000Z | Tools/Wings3DExporter/erlang_ext.py | fegorsch/ogre | 79b0163a25164a27a0b63958467db96530a2b194 | [
"MIT"
] | 916 | 2016-01-05T23:41:21.000Z | 2022-03-26T17:40:31.000Z | Tools/Wings3DExporter/erlang_ext.py | fegorsch/ogre | 79b0163a25164a27a0b63958467db96530a2b194 | [
"MIT"
] | 976 | 2015-12-30T13:14:27.000Z | 2022-03-31T09:21:07.000Z |
# Python module to read erlang ext (term) format
#
# written by Attila Tajti on 2003, for
#
# TODO: reads compressed data only
import os, sys, struct, zlib, cStringIO
class erlang_atom:
def __init__(self, atom):
self.atom = atom
def __str__(self):
return self.atom
def __eq__(self, other):
return self.a... | 22.242553 | 73 | 0.637842 | 824 | 5,227 | 3.901699 | 0.177184 | 0.060964 | 0.060653 | 0.074028 | 0.442924 | 0.418351 | 0.382582 | 0.325972 | 0.293624 | 0.283359 | 0 | 0.015209 | 0.194949 | 5,227 | 234 | 74 | 22.337607 | 0.748812 | 0.061986 | 0 | 0.302857 | 0 | 0 | 0.062615 | 0 | 0 | 0 | 0 | 0.004274 | 0 | 0 | null | null | 0.005714 | 0.005714 | null | null | 0.005714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bf84f72aa546b58d0a0f6e1870efb1ee915c5fc8 | 1,261 | py | Python | tests/test_backend.py | djeromov/django-grainy | d0820e0c5cdcb5ac6d905fa713dfaf3e9fab5627 | [
"Apache-2.0"
] | 2 | 2018-02-18T15:23:18.000Z | 2020-02-10T13:40:23.000Z | tests/test_backend.py | djeromov/django-grainy | d0820e0c5cdcb5ac6d905fa713dfaf3e9fab5627 | [
"Apache-2.0"
] | 41 | 2017-12-01T01:10:41.000Z | 2021-08-24T14:08:09.000Z | tests/test_backend.py | djeromov/django-grainy | d0820e0c5cdcb5ac6d905fa713dfaf3e9fab5627 | [
"Apache-2.0"
] | 1 | 2021-08-10T17:46:14.000Z | 2021-08-10T17:46:14.000Z | from .util import UserTestCase
from django.db import models
from grainy.const import (
PERM_READ,
PERM_UPDATE,
PERM_CREATE,
PERM_DELETE,
)
from grainy.core import (
PermissionSet,
)
from django_grainy.backends import GrainyBackend
class TestGrainyBackend(UserTestCase):
EXPECTED_PERMISSIONS... | 28.022222 | 75 | 0.68755 | 150 | 1,261 | 5.546667 | 0.3 | 0.108173 | 0.158654 | 0.180288 | 0.399038 | 0.394231 | 0.394231 | 0.269231 | 0.269231 | 0.161058 | 0 | 0 | 0.2046 | 1,261 | 44 | 76 | 28.659091 | 0.829511 | 0 | 0 | 0.117647 | 0 | 0 | 0.078509 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.088235 | false | 0 | 0.147059 | 0 | 0.294118 | 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 |
bf877aabd253c54022394c18ee4dcdeb052fe7ac | 1,919 | py | Python | utils/pycui.py | bboysteed/dzy | ba720fd40b16d3b85e8fc0ef347aeadaf91b2d26 | [
"MIT"
] | null | null | null | utils/pycui.py | bboysteed/dzy | ba720fd40b16d3b85e8fc0ef347aeadaf91b2d26 | [
"MIT"
] | null | null | null | utils/pycui.py | bboysteed/dzy | ba720fd40b16d3b85e8fc0ef347aeadaf91b2d26 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
from os import name
class color:
def __init__(self):
if name == "nt":
# Windows
self.RED = 0x04
self.GREY = 0x08
self.BLUE = 0x01
self.CYAN = 0x03
self.BLACK = 0x0
self.GREEN = 0x02
self.... | 24.922078 | 68 | 0.427306 | 244 | 1,919 | 3.327869 | 0.290984 | 0.086207 | 0.08867 | 0.049261 | 0.176108 | 0.162562 | 0.162562 | 0.162562 | 0.066502 | 0 | 0 | 0.06981 | 0.425221 | 1,919 | 76 | 69 | 25.25 | 0.666364 | 0.030224 | 0 | 0.189655 | 0 | 0 | 0.058728 | 0 | 0 | 0 | 0.018858 | 0 | 0 | 1 | 0.224138 | false | 0 | 0.034483 | 0.017241 | 0.310345 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bf88ab07873f2b729ba26df40d8be261a47e6d53 | 5,862 | py | Python | find-cut-up-regions/find-cut-up-regions.py | catseye/NaNoGenLab | 3e4a7314e6023557856e1cc910e9d0edc4daf43c | [
"Unlicense"
] | 20 | 2015-06-05T14:02:12.000Z | 2021-11-02T22:19:18.000Z | find-cut-up-regions/find-cut-up-regions.py | catseye/NaNoGenLab | 3e4a7314e6023557856e1cc910e9d0edc4daf43c | [
"Unlicense"
] | 1 | 2015-10-15T12:58:35.000Z | 2015-10-15T12:58:35.000Z | find-cut-up-regions/find-cut-up-regions.py | catseye/NaNoGenLab | 3e4a7314e6023557856e1cc910e9d0edc4daf43c | [
"Unlicense"
] | 1 | 2021-04-08T23:50:06.000Z | 2021-04-08T23:50:06.000Z | #!/usr/bin/env python
from optparse import OptionParser
import os
import random
import sys
import PIL
from PIL import Image
try:
from tqdm import tqdm
except ImportError:
def tqdm(x):
return x
def mkdir_p(path):
try:
os.mkdir(path)
except OSError:
pass
def cutup(options, i... | 31.516129 | 81 | 0.594507 | 733 | 5,862 | 4.611187 | 0.290587 | 0.019527 | 0.024852 | 0.025148 | 0.141124 | 0.079882 | 0.074556 | 0.019527 | 0.019527 | 0.019527 | 0 | 0.014151 | 0.312863 | 5,862 | 185 | 82 | 31.686486 | 0.824975 | 0.139543 | 0 | 0.2 | 0 | 0 | 0.047734 | 0 | 0 | 0 | 0 | 0.005405 | 0 | 0 | null | null | 0.014815 | 0.066667 | null | null | 0.051852 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bf88dee8af3ae2a896f732384f154013a7b47e72 | 1,925 | py | Python | articulation_tutorials/python_service_client/model_selection_client.py | tum-vision/articulation | 3bb714fcde14b8d47977bd3b3da2c2cd13ebe685 | [
"BSD-2-Clause"
] | 3 | 2017-03-15T16:50:05.000Z | 2021-02-28T05:27:24.000Z | articulation_tutorials/python_service_client/model_selection_client.py | AbdelrahmanElsaid/articulation | 3bb714fcde14b8d47977bd3b3da2c2cd13ebe685 | [
"BSD-2-Clause"
] | null | null | null | articulation_tutorials/python_service_client/model_selection_client.py | AbdelrahmanElsaid/articulation | 3bb714fcde14b8d47977bd3b3da2c2cd13ebe685 | [
"BSD-2-Clause"
] | 7 | 2015-07-14T14:47:51.000Z | 2018-04-02T16:22:23.000Z | #!/usr/bin/env python
import roslib; roslib.load_manifest('articulation_tutorials')
import rospy
import numpy
from articulation_msgs.msg import *
from articulation_msgs.srv import *
from geometry_msgs.msg import Pose, Point, Quaternion
from sensor_msgs.msg import ChannelFloat32
PRISMATIC = 0
ROTATIONAL = 1
MODELS={... | 27.112676 | 87 | 0.697143 | 267 | 1,925 | 4.898876 | 0.419476 | 0.009174 | 0.029817 | 0.045872 | 0.107034 | 0.085627 | 0.085627 | 0 | 0 | 0 | 0 | 0.017577 | 0.172468 | 1,925 | 70 | 88 | 27.5 | 0.803515 | 0.01039 | 0 | 0.036364 | 0 | 0 | 0.119285 | 0.011561 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018182 | 0.127273 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf9140192eafe23e1e6c3ba78e5132763af92f1c | 1,579 | py | Python | userbot/plugins/pantele.py | Kirmada7/KirmadaBot | 96d72edb0c04445fa10b2a29c177ff74f371c7da | [
"MIT"
] | null | null | null | userbot/plugins/pantele.py | Kirmada7/KirmadaBot | 96d72edb0c04445fa10b2a29c177ff74f371c7da | [
"MIT"
] | null | null | null | userbot/plugins/pantele.py | Kirmada7/KirmadaBot | 96d72edb0c04445fa10b2a29c177ff74f371c7da | [
"MIT"
] | 1 | 2020-07-12T06:50:04.000Z | 2020-07-12T06:50:04.000Z | import asyncio
import random
import string
from asyncio import wait
from userbot.events import register
@register(outgoing=True, pattern="^.pan")
async def generate(e):
if not e.text[0].isalpha() and e.text[0] not in ("/", "#", "@", "!"):
message = e.text
name = str(message[5:])
... | 35.088889 | 125 | 0.527549 | 198 | 1,579 | 4.166667 | 0.419192 | 0.048485 | 0.014545 | 0.038788 | 0.232727 | 0.191515 | 0.191515 | 0.191515 | 0.121212 | 0.121212 | 0 | 0.025665 | 0.309056 | 1,579 | 44 | 126 | 35.886364 | 0.726856 | 0.129196 | 0 | 0 | 1 | 0 | 0.098039 | 0.019608 | 0.03125 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15625 | 0 | 0.15625 | 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 |
bf96f7be55166477d48c62a3607aa35997d0f553 | 15,204 | py | Python | tests/unit/controllers/v1/test_executions_rbac.py | cognifloyd/st2-open-rbac | fb3251223743e497267277fe9f5cef91f41ade34 | [
"Apache-2.0"
] | null | null | null | tests/unit/controllers/v1/test_executions_rbac.py | cognifloyd/st2-open-rbac | fb3251223743e497267277fe9f5cef91f41ade34 | [
"Apache-2.0"
] | null | null | null | tests/unit/controllers/v1/test_executions_rbac.py | cognifloyd/st2-open-rbac | fb3251223743e497267277fe9f5cef91f41ade34 | [
"Apache-2.0"
] | null | null | null | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | 40.43617 | 99 | 0.636938 | 1,849 | 15,204 | 5.022715 | 0.128177 | 0.093679 | 0.096156 | 0.071821 | 0.706471 | 0.669969 | 0.635081 | 0.62539 | 0.601594 | 0.601594 | 0 | 0.012327 | 0.247698 | 15,204 | 375 | 100 | 40.544 | 0.799615 | 0.093331 | 0 | 0.633588 | 0 | 0 | 0.134201 | 0.030186 | 0 | 0 | 0 | 0 | 0.221374 | 1 | 0.022901 | false | 0 | 0.072519 | 0 | 0.10687 | 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 |
bf9fb9031e94da688c160248b371ac9be8f9e4a5 | 17,301 | py | Python | DbObjectCreator/DbObjectCreator.py | Haagimus/cautious-rotary-phone | 21c4c7869b8166cdb75e5db4eb35acde28b459f2 | [
"MIT"
] | 2 | 2020-08-29T22:03:46.000Z | 2020-09-03T11:25:04.000Z | DbObjectCreator/DbObjectCreator.py | Haagimus/cautious-rotary-phone | 21c4c7869b8166cdb75e5db4eb35acde28b459f2 | [
"MIT"
] | null | null | null | DbObjectCreator/DbObjectCreator.py | Haagimus/cautious-rotary-phone | 21c4c7869b8166cdb75e5db4eb35acde28b459f2 | [
"MIT"
] | null | null | null | import mysql.connector
from enum import Enum
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker, Query
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.sql.elements import BinaryExpression
from sshtunnel import SSHTunnelForwarder
import pymysql
import psycopg2
import pymssql
imp... | 40.048611 | 166 | 0.5628 | 1,998 | 17,301 | 4.744745 | 0.149149 | 0.05 | 0.017932 | 0.020042 | 0.378059 | 0.282806 | 0.221414 | 0.197468 | 0.177215 | 0.172152 | 0 | 0.001614 | 0.355471 | 17,301 | 431 | 167 | 40.141531 | 0.848534 | 0.277325 | 0 | 0.38843 | 0 | 0 | 0.107358 | 0.048878 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053719 | false | 0.066116 | 0.045455 | 0 | 0.14876 | 0.008264 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bfa8558ac1772d42a73ab7a03e7faa0e2989dc76 | 454 | py | Python | utils/Distributions/Gamma.py | vd1371/GIAMS | dd6551f344b8d0377131d4496846eb5d03b6189c | [
"MIT"
] | null | null | null | utils/Distributions/Gamma.py | vd1371/GIAMS | dd6551f344b8d0377131d4496846eb5d03b6189c | [
"MIT"
] | null | null | null | utils/Distributions/Gamma.py | vd1371/GIAMS | dd6551f344b8d0377131d4496846eb5d03b6189c | [
"MIT"
] | null | null | null | #Loading dependencies
from .BaseDistribution import BaseDistribution
class Gamma(BaseDistribution):
def __init__(self, shape, scale):
super().__init__()
self.shape = shape
self.scale = scale
def set(self, shape, scale):
self.shape = shape
self.scale = scale
def sample(self):
# https://numpy.org/doc/s... | 26.705882 | 107 | 0.757709 | 58 | 454 | 5.793103 | 0.448276 | 0.133929 | 0.125 | 0.107143 | 0.184524 | 0.184524 | 0.184524 | 0 | 0 | 0 | 0 | 0 | 0.123348 | 454 | 17 | 108 | 26.705882 | 0.844221 | 0.270925 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bfaad62bd9e583e1ea51ba34d2df4f6e9cf1f105 | 777 | py | Python | profiles/migrations/0004_auto_20180220_1915.py | choia/bucket-list-webapp | 3f77c58f6f6c66f3ad1d88ee375a39ce294b9680 | [
"MIT"
] | 1 | 2020-07-28T17:10:30.000Z | 2020-07-28T17:10:30.000Z | profiles/migrations/0004_auto_20180220_1915.py | choia/bucket-list-webapp | 3f77c58f6f6c66f3ad1d88ee375a39ce294b9680 | [
"MIT"
] | 8 | 2018-01-11T02:09:30.000Z | 2022-01-13T00:49:27.000Z | profiles/migrations/0004_auto_20180220_1915.py | choia/bucket-list-webapp | 3f77c58f6f6c66f3ad1d88ee375a39ce294b9680 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-02-20 19:15
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0003_postinstance_user_post'),
]
operations = [
migrations.Alte... | 25.9 | 63 | 0.590734 | 76 | 777 | 5.855263 | 0.684211 | 0.107865 | 0.103371 | 0.121348 | 0.193258 | 0.193258 | 0 | 0 | 0 | 0 | 0 | 0.0434 | 0.288288 | 777 | 29 | 64 | 26.793103 | 0.761302 | 0.087516 | 0 | 0.318182 | 1 | 0 | 0.148725 | 0.038244 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.227273 | 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 |
bfbab397793ac92eea059f9b2857f1026c1521b5 | 1,159 | py | Python | Retos/Ordenar Lista/ordenarLista.py | juanpanu/Juan_DS_Path | 24e71616dae692e931e95cd3815ca88fa9b8a46a | [
"MIT"
] | null | null | null | Retos/Ordenar Lista/ordenarLista.py | juanpanu/Juan_DS_Path | 24e71616dae692e931e95cd3815ca88fa9b8a46a | [
"MIT"
] | null | null | null | Retos/Ordenar Lista/ordenarLista.py | juanpanu/Juan_DS_Path | 24e71616dae692e931e95cd3815ca88fa9b8a46a | [
"MIT"
] | null | null | null | # Ejercicio #2: Ordenamiento en listas.
# Tecnologías sugeridas: Python o Javascript (elegir), Git
# Realizar un programa que dada un lista de números desordenada, retorne una lista con
# todos sus valores ordenados de menor a mayor. No se puede utilizar la función “sort” u
# otras existentes en Javascript para el orde... | 34.088235 | 97 | 0.719586 | 178 | 1,159 | 4.685393 | 0.52809 | 0.043165 | 0.02518 | 0.043165 | 0.046763 | 0.038369 | 0.038369 | 0 | 0 | 0 | 0 | 0.019169 | 0.189819 | 1,159 | 34 | 98 | 34.088235 | 0.86901 | 0.559103 | 0 | 0 | 0 | 0 | 0.064257 | 0 | 0 | 0 | 0 | 0.029412 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.105263 | 0.210526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
bfc16f3c9732a3bac02cf561d1ad42fdb042389b | 1,005 | py | Python | checks/checkpython.py | h4ck3rm1k3/salt-formulas | 8b0265faa64fa1d2a4149ce9aeb279e3861150fd | [
"CC0-1.0"
] | 5 | 2015-01-26T20:52:54.000Z | 2019-06-18T06:48:55.000Z | checks/checkpython.py | h4ck3rm1k3/salt-formulas | 8b0265faa64fa1d2a4149ce9aeb279e3861150fd | [
"CC0-1.0"
] | 1 | 2015-01-06T10:54:00.000Z | 2015-01-06T10:54:00.000Z | checks/checkpython.py | h4ck3rm1k3/salt-formulas | 8b0265faa64fa1d2a4149ce9aeb279e3861150fd | [
"CC0-1.0"
] | 4 | 2015-01-19T16:39:48.000Z | 2020-11-04T05:52:02.000Z | import yaml
import sys
from jinja2 import Environment, PackageLoader, Template
import os
# shebangs
#!yaml_jinja
#!yaml_mako
#!mako|yaml
#!jinja|yaml
#!jinja|mako|yaml
#!mako|yaml|stateconf
#!jinja|yaml|stateconf
#!mako|yaml_odict
#!mako|yaml_odict|stateconf
def check(fn):
#print fn
print("Consider {0}".forma... | 20.9375 | 70 | 0.536318 | 132 | 1,005 | 4.05303 | 0.462121 | 0.074766 | 0.048598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02029 | 0.313433 | 1,005 | 47 | 71 | 21.382979 | 0.755072 | 0.441791 | 0 | 0 | 0 | 0 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.384615 | 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.