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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0bd7234ceafd50eef030d4a96a4a790cb56c080c | 979 | py | Python | Arrays/longest_increasing_subarray.py | techsavvyy/coding-problems | 84c6c8b5955ccd03e231a4fe6d2b82c3bbdf6e81 | [
"MIT"
] | 2,647 | 2019-12-16T13:52:07.000Z | 2022-03-31T08:38:35.000Z | Arrays/longest_increasing_subarray.py | thebeastadi/coding-problems | 62b8da6bb99a564bec33b7864a61122b7bab8df0 | [
"MIT"
] | 16 | 2019-12-16T17:06:17.000Z | 2022-03-24T18:08:06.000Z | Arrays/longest_increasing_subarray.py | thebeastadi/coding-problems | 62b8da6bb99a564bec33b7864a61122b7bab8df0 | [
"MIT"
] | 556 | 2019-12-16T14:05:05.000Z | 2022-03-31T02:41:34.000Z | '''
Longest Increasing Subarray
Find the longest increasing subarray (subarray is when all elements are neighboring in the original array).
Input: [10, 1, 3, 8, 2, 0, 5, 7, 12, 3]
Output: 4
=========================================
Only in one iteration, check if the current element is bigger than the previous and i... | 21.755556 | 113 | 0.559755 | 134 | 979 | 4.059701 | 0.492537 | 0.125 | 0.183824 | 0.018382 | 0.044118 | 0.044118 | 0.044118 | 0.044118 | 0.044118 | 0.044118 | 0 | 0.048544 | 0.263534 | 979 | 45 | 114 | 21.755556 | 0.705964 | 0.538304 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.142857 | 0.071429 | 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 |
0bd77afb1485ef64605b38bcdb272c1a7bab95f0 | 2,193 | py | Python | Week_2/Homework/errors.py | sourovw/onemonth-python | 3e2d20cd20c4d7244dae1dbb3ebefe7f3508acee | [
"BSD-3-Clause"
] | 2 | 2021-08-07T12:02:21.000Z | 2021-08-09T20:10:36.000Z | Week_2/Homework/errors.py | sourovw/onemonth-python | 3e2d20cd20c4d7244dae1dbb3ebefe7f3508acee | [
"BSD-3-Clause"
] | null | null | null | Week_2/Homework/errors.py | sourovw/onemonth-python | 3e2d20cd20c4d7244dae1dbb3ebefe7f3508acee | [
"BSD-3-Clause"
] | 1 | 2021-09-08T12:24:31.000Z | 2021-09-08T12:24:31.000Z | # This method breaks up text into words for us
def break_words(text):
words = text.split()
return words
# Counts the number of words
def count_words(words):
return len(words)
# Sorts the words (alphabetically)
def sort_words(words):
words.sort()
return words
# Takes in a full sentence and returns... | 27.074074 | 77 | 0.69129 | 332 | 2,193 | 4.427711 | 0.310241 | 0.04898 | 0.070748 | 0.040816 | 0.29932 | 0.216327 | 0.111565 | 0.040816 | 0 | 0 | 0 | 0.008969 | 0.186503 | 2,193 | 80 | 78 | 27.4125 | 0.815022 | 0.139079 | 0 | 0.188679 | 0 | 0 | 0.259713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.188679 | false | 0.018868 | 0 | 0.018868 | 0.320755 | 0.490566 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0bdd16832cc4ec406dd796a440b21d8d9f119209 | 1,016 | py | Python | sslserver/testcases.py | jpaniagualaconich/django-sslserver | 8a2a01425dc99aefb2b9a324ebcb95df9961a2f5 | [
"MIT"
] | null | null | null | sslserver/testcases.py | jpaniagualaconich/django-sslserver | 8a2a01425dc99aefb2b9a324ebcb95df9961a2f5 | [
"MIT"
] | null | null | null | sslserver/testcases.py | jpaniagualaconich/django-sslserver | 8a2a01425dc99aefb2b9a324ebcb95df9961a2f5 | [
"MIT"
] | null | null | null | import os
from django.contrib.staticfiles.testing import StaticLiveServerTestCase
from django.test.testcases import LiveServerTestCase, LiveServerThread, QuietWSGIRequestHandler
from sslserver.management.commands.runsslserver import (
SecureHTTPServer, WSGIRequestHandler, default_ssl_files_dir,
)
class SecureQu... | 29.882353 | 95 | 0.772638 | 88 | 1,016 | 8.704545 | 0.5 | 0.039164 | 0.058747 | 0.070496 | 0.112272 | 0.112272 | 0.112272 | 0.112272 | 0.112272 | 0 | 0 | 0 | 0.162402 | 1,016 | 33 | 96 | 30.787879 | 0.900118 | 0 | 0 | 0.090909 | 0 | 0 | 0.029528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.045455 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0be09734785edec980aacdff58bc0885a6d3c7e1 | 555 | py | Python | EstruturaDeRepeticao/exercicio21.py | Nicolas-Wursthorn/exercicios-python-brasil | b2b564d48b519be04643636033ec0815e6d99ea1 | [
"MIT"
] | null | null | null | EstruturaDeRepeticao/exercicio21.py | Nicolas-Wursthorn/exercicios-python-brasil | b2b564d48b519be04643636033ec0815e6d99ea1 | [
"MIT"
] | null | null | null | EstruturaDeRepeticao/exercicio21.py | Nicolas-Wursthorn/exercicios-python-brasil | b2b564d48b519be04643636033ec0815e6d99ea1 | [
"MIT"
] | null | null | null | # Faça um programa que peça um número inteiro e determine se ele é ou não um número primo. Um número primo é aquele que é divisível somente por ele mesmo e por 1.
num = int(input("Digite um número inteiro: "))
tot = 0
for c in range(1, num+1):
if num % c == 0:
print('\033[33m', end="")
tot += 1
... | 32.647059 | 162 | 0.607207 | 94 | 555 | 3.585106 | 0.478723 | 0.094955 | 0.089021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047393 | 0.23964 | 555 | 16 | 163 | 34.6875 | 0.751185 | 0.288288 | 0 | 0.142857 | 0 | 0 | 0.330789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0be318d692b5c93673ced9a343298907969b5a56 | 1,835 | py | Python | FusionIIIT/applications/establishment/views/views.py | sdhiman99/Fusion | e3fb620737720e81231f07867884b053d392c5b1 | [
"bzip2-1.0.6"
] | null | null | null | FusionIIIT/applications/establishment/views/views.py | sdhiman99/Fusion | e3fb620737720e81231f07867884b053d392c5b1 | [
"bzip2-1.0.6"
] | null | null | null | FusionIIIT/applications/establishment/views/views.py | sdhiman99/Fusion | e3fb620737720e81231f07867884b053d392c5b1 | [
"bzip2-1.0.6"
] | 2 | 2020-01-23T11:33:36.000Z | 2020-01-23T11:34:58.000Z | from django.shortcuts import render
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from applications.globals.models import ExtraInfo, HoldsDesignation, Designation, DepartmentInfo
from notification.views import establishment_noti... | 36.7 | 96 | 0.702452 | 213 | 1,835 | 5.868545 | 0.28169 | 0.0288 | 0.0528 | 0.116 | 0.4128 | 0.352 | 0.2576 | 0.1648 | 0.1104 | 0 | 0 | 0 | 0.178747 | 1,835 | 49 | 97 | 37.44898 | 0.829463 | 0.044142 | 0 | 0.157895 | 0 | 0 | 0.051909 | 0.038186 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.342105 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0be58f2073b363e8dbce10accc0bf26b4eccf09b | 462 | py | Python | channels/migrations/0008_channel_ga_tracking_id.py | mitodl/open-discussions | ab6e9fac70b8a1222a84e78ba778a7a065c20541 | [
"BSD-3-Clause"
] | 12 | 2017-09-27T21:23:27.000Z | 2020-12-25T04:31:30.000Z | channels/migrations/0008_channel_ga_tracking_id.py | mitodl/open-discussions | ab6e9fac70b8a1222a84e78ba778a7a065c20541 | [
"BSD-3-Clause"
] | 3,293 | 2017-06-30T18:16:01.000Z | 2022-03-31T18:01:34.000Z | channels/migrations/0008_channel_ga_tracking_id.py | mitodl/open-discussions | ab6e9fac70b8a1222a84e78ba778a7a065c20541 | [
"BSD-3-Clause"
] | 1 | 2020-04-13T12:19:57.000Z | 2020-04-13T12:19:57.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-08-01 19:19
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("channels", "0007_avatar_banner")]
operations = [
migrations.AddField(
model... | 24.315789 | 73 | 0.647186 | 55 | 462 | 5.236364 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067797 | 0.233766 | 462 | 18 | 74 | 25.666667 | 0.745763 | 0.149351 | 0 | 0 | 1 | 0 | 0.120513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0bf7993a0e9cf6b727f99ec3b756708d666c5770 | 235 | py | Python | src/main.py | NNNMM12345/Discord_Sandbot1 | 76ed7a97efd1d6d0eb7efd9aff78985e63cfb6c6 | [
"MIT"
] | 4 | 2019-01-02T20:31:17.000Z | 2020-09-06T09:43:22.000Z | src/main.py | NNNMM12345/Discord_Sandbot1 | 76ed7a97efd1d6d0eb7efd9aff78985e63cfb6c6 | [
"MIT"
] | 2 | 2018-03-23T00:45:17.000Z | 2018-03-27T15:44:13.000Z | src/main.py | NNNMM12345/Discord_Sandbot1 | 76ed7a97efd1d6d0eb7efd9aff78985e63cfb6c6 | [
"MIT"
] | 2 | 2018-03-24T22:48:33.000Z | 2018-03-24T22:49:09.000Z | from bot import Bot
import settings.config
extensions = ['plugins.general', 'plugins.voice', 'plugins.chatbot']
def main():
bot = Bot(extensions)
bot.run(settings.config.DISCORD_TOKEN)
if __name__ == '__main__':
main()
| 19.583333 | 68 | 0.697872 | 29 | 235 | 5.344828 | 0.586207 | 0.116129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161702 | 235 | 11 | 69 | 21.363636 | 0.786802 | 0 | 0 | 0 | 0 | 0 | 0.217021 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0bf8e160e260e380da724a0b24e9b5ce4faccf38 | 1,626 | py | Python | products/admin.py | adetbekov/magnum_online | 2bd084f867f94fc0159cc818369d3268770960c5 | [
"MIT"
] | null | null | null | products/admin.py | adetbekov/magnum_online | 2bd084f867f94fc0159cc818369d3268770960c5 | [
"MIT"
] | 15 | 2018-04-29T11:07:21.000Z | 2022-03-11T23:20:51.000Z | products/admin.py | adetbekov/magnum_online | 2bd084f867f94fc0159cc818369d3268770960c5 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Product, Point, Transaction, Category, SubCategory, Manufacturer
class SubCategoryInline(admin.TabularInline):
model = SubCategory
extra = 0
class SubCategoryAdmin(admin.ModelAdmin):
model = SubCategory
list_display = ('name','category','created')... | 29.035714 | 84 | 0.729397 | 170 | 1,626 | 6.829412 | 0.3 | 0.077519 | 0.103359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000709 | 0.132226 | 1,626 | 56 | 85 | 29.035714 | 0.822112 | 0 | 0 | 0.04878 | 0 | 0 | 0.161647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04878 | 0 | 0.853659 | 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 |
0bfa77081895c6eac547c6a6bbd6047185ca376c | 643 | py | Python | examples/reinforcement/gym/cartpole/random_none.py | Pandinosaurus/pyrobolearn | 9cd7c060723fda7d2779fa255ac998c2c82b8436 | [
"Apache-2.0"
] | 2 | 2021-01-21T21:08:30.000Z | 2022-03-29T16:45:49.000Z | examples/reinforcement/gym/cartpole/random_none.py | Pandinosaurus/pyrobolearn | 9cd7c060723fda7d2779fa255ac998c2c82b8436 | [
"Apache-2.0"
] | null | null | null | examples/reinforcement/gym/cartpole/random_none.py | Pandinosaurus/pyrobolearn | 9cd7c060723fda7d2779fa255ac998c2c82b8436 | [
"Apache-2.0"
] | 1 | 2020-09-29T21:25:39.000Z | 2020-09-29T21:25:39.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Example on how to use the 'Cartpole' OpenAI Gym environments in PyRoboLearn using a random policy
"""
from pyrobolearn.envs import gym
from pyrobolearn.policies import RandomPolicy
from pyrobolearn.tasks import RLTask
# create env, state, and action from gym
env = gym... | 29.227273 | 100 | 0.748056 | 96 | 643 | 4.979167 | 0.552083 | 0.094142 | 0.058577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016158 | 0.133748 | 643 | 21 | 101 | 30.619048 | 0.842011 | 0.335925 | 0 | 0 | 0 | 0 | 0.105769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0bfb65dcf6db11e8fad0fec459b613b7e0cfd05c | 1,075 | py | Python | tests/testmpi.py | ucl-exoplanets/TauREx_public | 28d47f829a2873cf15e3bfb0419b8bc4e5bc03dd | [
"CC-BY-4.0"
] | 18 | 2019-07-22T01:35:24.000Z | 2022-02-10T11:25:42.000Z | tests/testmpi.py | ucl-exoplanets/TauREx_public | 28d47f829a2873cf15e3bfb0419b8bc4e5bc03dd | [
"CC-BY-4.0"
] | null | null | null | tests/testmpi.py | ucl-exoplanets/TauREx_public | 28d47f829a2873cf15e3bfb0419b8bc4e5bc03dd | [
"CC-BY-4.0"
] | 1 | 2017-10-19T15:14:06.000Z | 2017-10-19T15:14:06.000Z | #!/usr/bin/env python
from mpi4py import MPI
import thread
import numpy as np
import os
comm = MPI.COMM_WORLD
#print 'groupsize ', MPI.Group_size(comm.Get_group())
print "Hello! I'm rank %d from %d in %s" % (comm.rank, comm.size,comm.name )
comm.Barrier() # wait for everybody to synchronize _here_
test = np.... | 20.283019 | 76 | 0.684651 | 166 | 1,075 | 4.343373 | 0.39759 | 0.044383 | 0.030513 | 0.044383 | 0.110957 | 0.110957 | 0.110957 | 0.110957 | 0.110957 | 0.110957 | 0 | 0.027293 | 0.147907 | 1,075 | 52 | 77 | 20.673077 | 0.759825 | 0.564651 | 0 | 0 | 0 | 0 | 0.253425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.266667 | 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 |
0bfbbe2ca666dc7a22e0fd16c9a8bdcaa8041139 | 570 | py | Python | pytype/overlays/pytype_extensions_overlay.py | Jrryy/pytype | 2d2855dc97d5ccee22ad233a83524616c17c44c9 | [
"Apache-2.0"
] | null | null | null | pytype/overlays/pytype_extensions_overlay.py | Jrryy/pytype | 2d2855dc97d5ccee22ad233a83524616c17c44c9 | [
"Apache-2.0"
] | null | null | null | pytype/overlays/pytype_extensions_overlay.py | Jrryy/pytype | 2d2855dc97d5ccee22ad233a83524616c17c44c9 | [
"Apache-2.0"
] | null | null | null | """Implementation of special members of pytype_extensions."""
from pytype import overlay
from pytype import special_builtins
class PytypeExtensionsOverlay(overlay.Overlay):
"""A custom overlay for the 'pytype_extensions' module."""
def __init__(self, vm):
member_map = {
"assert_type": build_assert_t... | 27.142857 | 62 | 0.740351 | 70 | 570 | 5.671429 | 0.485714 | 0.201511 | 0.080605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154386 | 570 | 20 | 63 | 28.5 | 0.823651 | 0.189474 | 0 | 0 | 0 | 0 | 0.161863 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.166667 | false | 0 | 0.25 | 0.083333 | 0.583333 | 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 |
0bfe6a6a73c9f6a525c4e0cea02888cae21c7865 | 5,944 | py | Python | day/9/xmas_code_pt2.py | philparkbot/advent2020 | e5ee7e0703ae82d4c773024e4289d7d37879af35 | [
"MIT"
] | null | null | null | day/9/xmas_code_pt2.py | philparkbot/advent2020 | e5ee7e0703ae82d4c773024e4289d7d37879af35 | [
"MIT"
] | null | null | null | day/9/xmas_code_pt2.py | philparkbot/advent2020 | e5ee7e0703ae82d4c773024e4289d7d37879af35 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import argparse
'''
* Stream of numbers.
* First N numbers (N=25 for this code) are part of the preamble.
* Every number following the preamble must be a sum of two of the N numbers prior to it
Part 2:
For the invalid number you found, there is a contiguous set of numbers in the prior preamble... | 36.919255 | 158 | 0.54391 | 858 | 5,944 | 3.444056 | 0.172494 | 0.027073 | 0.024365 | 0.012183 | 0.315736 | 0.212183 | 0.099492 | 0.086633 | 0.067005 | 0.033841 | 0 | 0.0072 | 0.158816 | 5,944 | 161 | 159 | 36.919255 | 0.5838 | 0.2214 | 0 | 0.133333 | 0 | 0 | 0.124434 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 1 | 0.088889 | false | 0.133333 | 0.011111 | 0 | 0.166667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0bfef5d2fcc1d01c2c7e7c14c5702f2cb51e0a4e | 549 | py | Python | dags/hades.py | ozzyathome/docker-airflow | 4bc11d65498982ac4df429f0e73a9b9ae2ae91b4 | [
"Apache-2.0"
] | null | null | null | dags/hades.py | ozzyathome/docker-airflow | 4bc11d65498982ac4df429f0e73a9b9ae2ae91b4 | [
"Apache-2.0"
] | null | null | null | dags/hades.py | ozzyathome/docker-airflow | 4bc11d65498982ac4df429f0e73a9b9ae2ae91b4 | [
"Apache-2.0"
] | null | null | null | from airflow import DAG
from airflow.operators.dummy_operator import DummyOperator
from airflow.operators.bash_operator import BashOperator
from datetime import datetime, timedelta
with DAG(dag_id='bash_dag', schedule_interval="@once", start_date=datetime(2020, 1, 1), catchup=False) as dag:
# Task 1
dumm... | 27.45 | 110 | 0.728597 | 74 | 549 | 5.202703 | 0.432432 | 0.085714 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017582 | 0.17122 | 549 | 19 | 111 | 28.894737 | 0.828571 | 0.023679 | 0 | 0 | 0 | 0 | 0.136961 | 0.052533 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0bff413be725aaa8afcc1bf04d8006f98d3261fe | 800 | py | Python | setup.py | tdavislab/mapper-stitching | 09cb6949cea57ebece640b58ef5c449fb177db38 | [
"MIT"
] | 10 | 2019-06-12T01:18:44.000Z | 2021-12-19T16:12:08.000Z | setup.py | tdavislab/mapper-stitching | 09cb6949cea57ebece640b58ef5c449fb177db38 | [
"MIT"
] | 7 | 2019-03-20T23:47:49.000Z | 2019-04-10T19:23:41.000Z | setup.py | tdavislab/mapper-stitching | 09cb6949cea57ebece640b58ef5c449fb177db38 | [
"MIT"
] | 3 | 2020-10-16T04:30:09.000Z | 2021-03-16T18:45:33.000Z | from setuptools import setup, find_packages
setup(
name='mapper_interactive',
version='0.0.1',
keywords='mapper',
description='Mapper Interactive is a highly customizable visualization framework for you to visualize and explore Mapper algorithm.',
license='MIT',
url='https://github.com/MapperIn... | 26.666667 | 137 | 0.61 | 84 | 800 | 5.714286 | 0.77381 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015 | 0.25 | 800 | 29 | 138 | 27.586207 | 0.785 | 0.0375 | 0 | 0 | 0 | 0 | 0.420573 | 0.054688 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.035714 | 0 | 0.035714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0414dec3e8c2ba58cabd7565015b27408e4edf33 | 226 | py | Python | src/easy/calculate-distance/solutions/python/solution.py | rdtsc/codeeval-solutions | d5c06baf89125e9e9f4b163ee57e5a8f7e73e717 | [
"MIT"
] | null | null | null | src/easy/calculate-distance/solutions/python/solution.py | rdtsc/codeeval-solutions | d5c06baf89125e9e9f4b163ee57e5a8f7e73e717 | [
"MIT"
] | null | null | null | src/easy/calculate-distance/solutions/python/solution.py | rdtsc/codeeval-solutions | d5c06baf89125e9e9f4b163ee57e5a8f7e73e717 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import re
import sys
import math
for line in (line.rstrip() for line in sys.stdin):
(x0, y0, x1, y1) = map(int, filter(None, re.split('[\(\),\s]', line)))
print(int(math.hypot(x1 - x0, y1 - y0)))
| 20.545455 | 72 | 0.619469 | 40 | 226 | 3.5 | 0.625 | 0.1 | 0.128571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047872 | 0.168142 | 226 | 10 | 73 | 22.6 | 0.696809 | 0.09292 | 0 | 0 | 0 | 0 | 0.044118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
041ff9dc07eebf1a3925b6b8a9eaf7ef426e5ee5 | 2,461 | py | Python | discdiff.py | neitzke/stokes-numerics | 8845aef7598ca245d095cca690bf48568758a8c9 | [
"MIT"
] | 1 | 2020-08-03T16:24:06.000Z | 2020-08-03T16:24:06.000Z | discdiff.py | neitzke/stokes-numerics | 8845aef7598ca245d095cca690bf48568758a8c9 | [
"MIT"
] | null | null | null | discdiff.py | neitzke/stokes-numerics | 8845aef7598ca245d095cca690bf48568758a8c9 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import print_function
from scipy import sparse
import sys
import os.path
import fileinfo
import numpy as np
import logging
logger = logging.getLogger(__name__)
moduleversion = 2
def discdiff(g, kind = "laplacian"):
'''Make a matrix representing a discrete di... | 33.256757 | 111 | 0.535961 | 371 | 2,461 | 3.509434 | 0.291105 | 0.092166 | 0.107527 | 0.104455 | 0.294163 | 0.294163 | 0.294163 | 0.294163 | 0.294163 | 0.292627 | 0 | 0.020384 | 0.322227 | 2,461 | 73 | 112 | 33.712329 | 0.760192 | 0.162129 | 0 | 0.291667 | 0 | 0 | 0.109528 | 0.011297 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0.020833 | false | 0 | 0.166667 | 0 | 0.208333 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
04227eee17583e23328c77547df1817cc15da62c | 4,720 | py | Python | Tests/characteristics_Test.py | USGS-WiM/StreamStatsNationalServices | e42c3403b3a853038a174ba5f059c3622e14be50 | [
"CC0-1.0",
"MIT"
] | 1 | 2019-01-09T14:18:48.000Z | 2019-01-09T14:18:48.000Z | Tests/characteristics_Test.py | USGS-WiM/StreamStatsNationalServices | e42c3403b3a853038a174ba5f059c3622e14be50 | [
"CC0-1.0",
"MIT"
] | 7 | 2017-03-15T14:53:39.000Z | 2020-05-15T16:06:10.000Z | Tests/characteristics_Test.py | USGS-WiM/StreamStatsNationalServices | e42c3403b3a853038a174ba5f059c3622e14be50 | [
"CC0-1.0",
"MIT"
] | null | null | null | #------------------------------------------------------------------------------
#----- characteristicsWrapper.py ----------------------------------------------------
#------------------------------------------------------------------------------
#-------1---------2---------3---------4---------5---------6---------7----... | 39.008264 | 155 | 0.514195 | 406 | 4,720 | 5.896552 | 0.487685 | 0.012531 | 0.012531 | 0.003342 | 0.044277 | 0.006683 | 0.006683 | 0.006683 | 0 | 0 | 0 | 0.040359 | 0.291314 | 4,720 | 120 | 156 | 39.333333 | 0.675336 | 0.267373 | 0 | 0.171429 | 0 | 0 | 0.126826 | 0.006429 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.185714 | null | null | 0.042857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0422988db76c47a05aba15fda67fd66a6b9c3d92 | 1,055 | py | Python | backend/plugins/google_slides/migrations/0001_initial.py | marksweb/django-cms-60min-demo-2021 | d9ca83538d6c5c7a0b0e1a18ae1a15bda4c296e4 | [
"MIT"
] | null | null | null | backend/plugins/google_slides/migrations/0001_initial.py | marksweb/django-cms-60min-demo-2021 | d9ca83538d6c5c7a0b0e1a18ae1a15bda4c296e4 | [
"MIT"
] | 1 | 2022-01-15T11:29:16.000Z | 2022-01-15T22:11:45.000Z | backend/plugins/google_slides/migrations/0001_initial.py | marksweb/django-cms-60min-demo-2021 | d9ca83538d6c5c7a0b0e1a18ae1a15bda4c296e4 | [
"MIT"
] | 3 | 2022-01-14T15:55:00.000Z | 2022-01-23T23:46:56.000Z | # Generated by Django 2.2.14 on 2020-07-30 15:57
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('cms', '0022_auto_20180620_1551'),
]
operations = [
migrations.CreateModel(
... | 35.166667 | 247 | 0.614218 | 110 | 1,055 | 5.754545 | 0.618182 | 0.037915 | 0.044234 | 0.06951 | 0.14218 | 0.14218 | 0.14218 | 0.14218 | 0.14218 | 0.14218 | 0 | 0.060991 | 0.254028 | 1,055 | 29 | 248 | 36.37931 | 0.743329 | 0.043602 | 0 | 0 | 1 | 0 | 0.219464 | 0.082423 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.272727 | 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 |
042af131f1d60458ddb227067419d78445fc9561 | 2,901 | py | Python | parsehub/client.py | GearPlug/parsehub-python | b372a5958a616547874e369156190bd6a26c0e0e | [
"MIT"
] | null | null | null | parsehub/client.py | GearPlug/parsehub-python | b372a5958a616547874e369156190bd6a26c0e0e | [
"MIT"
] | null | null | null | parsehub/client.py | GearPlug/parsehub-python | b372a5958a616547874e369156190bd6a26c0e0e | [
"MIT"
] | 1 | 2020-12-27T18:30:18.000Z | 2020-12-27T18:30:18.000Z | import requests
class Client(object):
BASE_URL = 'https://www.parsehub.com/api/v2/'
def __init__(self, api_key):
self.api_key = api_key
def _get(self, url, params=None, **kwargs):
_params = {
'api_key': self.api_key,
}
if params:
_params.update(par... | 32.965909 | 110 | 0.593244 | 346 | 2,901 | 4.705202 | 0.184971 | 0.079853 | 0.054054 | 0.052211 | 0.409091 | 0.399263 | 0.242015 | 0.192875 | 0.192875 | 0.143735 | 0 | 0.001429 | 0.276456 | 2,901 | 87 | 111 | 33.344828 | 0.774178 | 0 | 0 | 0.173913 | 0 | 0 | 0.107894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.014493 | 0.086957 | 0.463768 | 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 |
042b285a66a5c3769d597644cfb40b24edd58286 | 4,056 | py | Python | zowie/keyring_utils.py | mhucka/zupper | 9f840a7f5063033f8ddc7538743ed3b9f12b7981 | [
"BSD-3-Clause"
] | 48 | 2020-12-01T16:03:17.000Z | 2022-03-30T22:53:08.000Z | zowie/keyring_utils.py | mhucka/zuppa | 9f840a7f5063033f8ddc7538743ed3b9f12b7981 | [
"BSD-3-Clause"
] | 14 | 2020-12-12T11:53:45.000Z | 2022-03-30T08:25:41.000Z | zowie/keyring_utils.py | mhucka/zuppa | 9f840a7f5063033f8ddc7538743ed3b9f12b7981 | [
"BSD-3-Clause"
] | 2 | 2021-07-30T17:19:00.000Z | 2022-03-11T17:16:09.000Z | '''
keyring_utils.py: utilities for reading and writing credentials to the keyring
Authors
-------
Michael Hucka <mhucka@caltech.edu> -- Caltech Library
Copyright
---------
Copyright (c) 2020 by Michael Hucka and the California Institute of Technology.
This code is open-source software released under a 3-clause BSD... | 34.666667 | 79 | 0.661982 | 532 | 4,056 | 4.913534 | 0.37218 | 0.036725 | 0.029839 | 0.052793 | 0.214614 | 0.168324 | 0.120888 | 0.10329 | 0.10329 | 0.10329 | 0 | 0.00152 | 0.188856 | 4,056 | 116 | 80 | 34.965517 | 0.793009 | 0.359961 | 0 | 0.254545 | 0 | 0 | 0.13574 | 0.010969 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109091 | false | 0.090909 | 0.163636 | 0.036364 | 0.418182 | 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 |
042ebe1c69e6ebb88ec4145937c5cc7c549cfb3b | 1,508 | py | Python | backend/users/views.py | thangplum/nova-cs322 | 50ff549ff4d6927127998217f0bfb77980db3bc8 | [
"MIT"
] | null | null | null | backend/users/views.py | thangplum/nova-cs322 | 50ff549ff4d6927127998217f0bfb77980db3bc8 | [
"MIT"
] | null | null | null | backend/users/views.py | thangplum/nova-cs322 | 50ff549ff4d6927127998217f0bfb77980db3bc8 | [
"MIT"
] | null | null | null |
from django.shortcuts import render # noqa
from allauth.socialaccount.models import SocialApp, SocialToken
from rest_framework import viewsets, status
from rest_framework.response import Response
from .models import User
from .serializers import serializerProfile
import json
class profileViewSet(viewsets.ViewSet):
... | 36.780488 | 85 | 0.655172 | 168 | 1,508 | 5.755952 | 0.380952 | 0.091003 | 0.049638 | 0.039297 | 0.258532 | 0.258532 | 0.258532 | 0.258532 | 0.169597 | 0.169597 | 0 | 0.008 | 0.253979 | 1,508 | 40 | 86 | 37.7 | 0.851556 | 0.002653 | 0 | 0.242424 | 0 | 0 | 0.040667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.212121 | 0 | 0.515152 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
04318aa7e3cc071dc7b9c100aee6c2017a86e983 | 1,399 | py | Python | src/manager.py | hvuhsg/yoyocoin | aad0f413479728dc4e0842447cf1910e5dff1418 | [
"MIT"
] | 11 | 2021-05-25T07:42:27.000Z | 2022-01-03T07:46:38.000Z | src/manager.py | hvuhsg/yoyocoin | aad0f413479728dc4e0842447cf1910e5dff1418 | [
"MIT"
] | 18 | 2021-05-25T17:42:46.000Z | 2021-09-13T15:14:38.000Z | src/manager.py | hvuhsg/yoyocoin | aad0f413479728dc4e0842447cf1910e5dff1418 | [
"MIT"
] | 5 | 2021-06-23T17:38:51.000Z | 2022-03-03T12:40:53.000Z | from time import sleep
import sys
from loguru import logger
import api
from config import Config, override_config
from event_stream import setup_event_stream, Event
from wallet import Wallet
from blockchain import setup_blockchain
from scheduler import setup_scheduler
from network import setup_network
from chain_exte... | 21.19697 | 69 | 0.711222 | 173 | 1,399 | 5.491329 | 0.381503 | 0.069474 | 0.033684 | 0.046316 | 0.088421 | 0.088421 | 0.088421 | 0 | 0 | 0 | 0 | 0.000898 | 0.203717 | 1,399 | 65 | 70 | 21.523077 | 0.851885 | 0.045747 | 0 | 0 | 0 | 0 | 0.040571 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.085106 | false | 0.042553 | 0.276596 | 0 | 0.361702 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
043cd1549bbd8ca8e9ff1759784863b51edfc0ef | 575 | py | Python | flask_imagine/filters/__init__.py | FlaskGuys/Flask-Imagine | c42b2f068f449891a72ff48fc3526e8472fe9edb | [
"MIT"
] | 1 | 2016-04-16T00:51:35.000Z | 2016-04-16T00:51:35.000Z | flask_imagine/filters/__init__.py | FlaskGuys/Flask-Imagine | c42b2f068f449891a72ff48fc3526e8472fe9edb | [
"MIT"
] | 8 | 2016-04-12T22:32:51.000Z | 2021-09-07T23:23:32.000Z | flask_imagine/filters/__init__.py | FlaskGuys/Flask-Imagine | c42b2f068f449891a72ff48fc3526e8472fe9edb | [
"MIT"
] | 2 | 2017-05-21T13:45:54.000Z | 2017-12-14T17:28:18.000Z | from .autorotate import AutorotateFilter
from .crop import CropFilter
from .downscale import DownscaleFilter
from .interface import ImagineFilterInterface
from .relative_resize import RelativeResizeFilter
from .rotate import RotateFilter
from .thumbnail import ThumbnailFilter
from .upscale import UpscaleFilter
from .wa... | 26.136364 | 49 | 0.784348 | 47 | 575 | 9.489362 | 0.468085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149565 | 575 | 21 | 50 | 27.380952 | 0.912065 | 0 | 0 | 0 | 0 | 0 | 0.24 | 0.038261 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.45 | 0 | 0.45 | 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 |
044789a4e1a50d2b27d4afb250b93baeda08958f | 2,487 | py | Python | projects/ems/raw_data/4-SEP-2021-functions_ems.py | Rwalker83/fa21python2_rashan | a5fae9aea37c3d605ba885de0019ec54cb1ec136 | [
"MIT"
] | null | null | null | projects/ems/raw_data/4-SEP-2021-functions_ems.py | Rwalker83/fa21python2_rashan | a5fae9aea37c3d605ba885de0019ec54cb1ec136 | [
"MIT"
] | null | null | null | projects/ems/raw_data/4-SEP-2021-functions_ems.py | Rwalker83/fa21python2_rashan | a5fae9aea37c3d605ba885de0019ec54cb1ec136 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[3]:
# DEMO OF WEAK TYPING in PYTHON
# int age = 4 <-strongly typed variables, declare type along with id
age = 4; # we CANNOT declare a type for variable age
print(age)
print(type(age))
age = ('calico','calico','himalyian')
print(age)
print(type(age))
# # Allegheny county... | 21.626087 | 168 | 0.702453 | 380 | 2,487 | 4.534211 | 0.447368 | 0.034823 | 0.022635 | 0.019733 | 0.046431 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029261 | 0.216727 | 2,487 | 114 | 169 | 21.815789 | 0.855236 | 0.763571 | 0 | 0.363636 | 0 | 0 | 0.048165 | 0 | 0 | 0 | 0 | 0.008772 | 0 | 1 | 0.454545 | false | 0 | 0 | 0 | 0.454545 | 0.363636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
044b590d6339626ef5ca39620d3bae8e8496aa5e | 1,234 | py | Python | packages/pyre/schemata/Float.py | PyreFramework/pyre | 345c7449a3416eea1c1affa74fb32faff30a6aaa | [
"BSD-3-Clause"
] | null | null | null | packages/pyre/schemata/Float.py | PyreFramework/pyre | 345c7449a3416eea1c1affa74fb32faff30a6aaa | [
"BSD-3-Clause"
] | null | null | null | packages/pyre/schemata/Float.py | PyreFramework/pyre | 345c7449a3416eea1c1affa74fb32faff30a6aaa | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# michael a.g. aïvázis
# orthologue
# (c) 1998-2022 all rights reserved
#
# superclass
from .Numeric import Numeric
# declaration
class Float(Numeric):
"""
A type declarator for floats
"""
# constants
typename = 'float' # the name of my type
complaint = 'could not... | 23.283019 | 91 | 0.589141 | 144 | 1,234 | 4.993056 | 0.631944 | 0.020862 | 0.041725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011933 | 0.320908 | 1,234 | 52 | 92 | 23.730769 | 0.846062 | 0.405997 | 0 | 0 | 0 | 0 | 0.068249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
044ba59127e0bafc0ec749a4e16a0386cefdf389 | 5,222 | py | Python | piServices/piGpio.py | rphuang/riot | a76ffa25928acf07de5d8a2d9c190b7d08848c3c | [
"MIT"
] | null | null | null | piServices/piGpio.py | rphuang/riot | a76ffa25928acf07de5d8a2d9c190b7d08848c3c | [
"MIT"
] | null | null | null | piServices/piGpio.py | rphuang/riot | a76ffa25928acf07de5d8a2d9c190b7d08848c3c | [
"MIT"
] | 1 | 2021-08-15T22:50:38.000Z | 2021-08-15T22:50:38.000Z | #!/usr/bin/python3
# File name : piGpio.py
# Description : gpio utility module
import RPi.GPIO as GPIO
from piServices.piConstants import *
from piServices.piUtils import *
# constant defines all the pins are not valid
# note: pin 1, 2 are not valid
InvalidPins = [4, 6, 9, 14, 17, 20, 25, 27, 28, 30, 34, 39]
def ... | 40.48062 | 130 | 0.642857 | 624 | 5,222 | 5.371795 | 0.227564 | 0.02327 | 0.042959 | 0.013425 | 0.607697 | 0.596957 | 0.522971 | 0.475537 | 0.459726 | 0.399463 | 0 | 0.02399 | 0.265607 | 5,222 | 129 | 131 | 40.48062 | 0.850065 | 0.319418 | 0 | 0.512821 | 0 | 0 | 0.065338 | 0 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0.064103 | false | 0 | 0.038462 | 0 | 0.192308 | 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 |
044d4805869f9dd4bfd43e6eabd1efb49044e394 | 1,149 | py | Python | lineage/adf-copy-activity/src/azfunctions/lineageCreator/qualified_name_client/generated/swagger/models/adf_spark_activity.py | pkush16/metadata-samples | 2c7ecd7ef90602cc9e1673111be7128073b7831a | [
"MIT"
] | null | null | null | lineage/adf-copy-activity/src/azfunctions/lineageCreator/qualified_name_client/generated/swagger/models/adf_spark_activity.py | pkush16/metadata-samples | 2c7ecd7ef90602cc9e1673111be7128073b7831a | [
"MIT"
] | null | null | null | lineage/adf-copy-activity/src/azfunctions/lineageCreator/qualified_name_client/generated/swagger/models/adf_spark_activity.py | pkush16/metadata-samples | 2c7ecd7ef90602cc9e1673111be7128073b7831a | [
"MIT"
] | 1 | 2019-10-31T07:23:21.000Z | 2019-10-31T07:23:21.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | 34.818182 | 77 | 0.590078 | 117 | 1,149 | 5.504274 | 0.410256 | 0.139752 | 0.158385 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001049 | 0.170583 | 1,149 | 32 | 78 | 35.90625 | 0.674711 | 0.417755 | 0 | 0 | 1 | 0 | 0.27663 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
044db6424724a592a2777f3a28fd6b5776e9f021 | 2,545 | py | Python | google-challenge-problems/answer_Q2a.py | kevin-orr/Python | cdac5fa0e015dc9a504a1c4775de00da090a8890 | [
"Apache-2.0"
] | null | null | null | google-challenge-problems/answer_Q2a.py | kevin-orr/Python | cdac5fa0e015dc9a504a1c4775de00da090a8890 | [
"Apache-2.0"
] | null | null | null | google-challenge-problems/answer_Q2a.py | kevin-orr/Python | cdac5fa0e015dc9a504a1c4775de00da090a8890 | [
"Apache-2.0"
] | null | null | null | __author__ = 'kevinorr'
"""
This was my attempt at the first part of Q2 in a Google challenge about maximising the number of bunnies in train cars...
It passed the 'verify' section - all the tests passed.
"""
from collections import Counter
def answer(x):
"""
sort the list and find out what the mode would ... | 31.8125 | 145 | 0.658546 | 407 | 2,545 | 3.886978 | 0.34398 | 0.085335 | 0.083439 | 0.136536 | 0.280657 | 0.26043 | 0.26043 | 0.246523 | 0.21871 | 0.21871 | 0 | 0.046425 | 0.263654 | 2,545 | 79 | 146 | 32.21519 | 0.797759 | 0.164637 | 0 | 0.25 | 0 | 0 | 0.009774 | 0 | 0 | 0 | 0 | 0 | 0.15 | 0 | null | null | 0 | 0.025 | null | null | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
044dc9e4d787f25c0954c4b36eae103c1fc358c5 | 1,325 | py | Python | esque/cli/commands/describe/broker.py | real-digital/esque | 0b779fc308ce8bce45c1903f36c33664b2e832e7 | [
"MIT"
] | 29 | 2019-05-10T21:12:38.000Z | 2021-08-24T08:09:49.000Z | esque/cli/commands/describe/broker.py | real-digital/esque | 0b779fc308ce8bce45c1903f36c33664b2e832e7 | [
"MIT"
] | 103 | 2019-05-17T07:21:41.000Z | 2021-12-02T08:29:00.000Z | esque/cli/commands/describe/broker.py | real-digital/esque | 0b779fc308ce8bce45c1903f36c33664b2e832e7 | [
"MIT"
] | 2 | 2019-05-28T06:45:14.000Z | 2019-11-21T00:33:15.000Z | import click
from esque.cli.autocomplete import list_brokers
from esque.cli.helpers import fallback_to_stdin
from esque.cli.options import State, default_options, output_format_option
from esque.cli.output import format_output
from esque.errors import ValidationException
from esque.resources.broker import Broker
@cl... | 44.166667 | 118 | 0.740377 | 176 | 1,325 | 5.443182 | 0.409091 | 0.056367 | 0.050104 | 0.05428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 1,325 | 29 | 119 | 45.689655 | 0.860737 | 0.126792 | 0 | 0 | 0 | 0 | 0.100262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.304348 | 0 | 0.347826 | 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 |
04517c566e5bf264514daec97f2a80a517936bc9 | 5,676 | py | Python | library/nsxt_policy_bfd_profile.py | maroskukan/ansible-for-nsxt | b3d4f69b836fc539e04d3f1b5007195ee22d115a | [
"BSD-2-Clause"
] | 1 | 2021-09-18T20:31:44.000Z | 2021-09-18T20:31:44.000Z | library/nsxt_policy_bfd_profile.py | maroskukan/ansible-for-nsxt | b3d4f69b836fc539e04d3f1b5007195ee22d115a | [
"BSD-2-Clause"
] | null | null | null | library/nsxt_policy_bfd_profile.py | maroskukan/ansible-for-nsxt | b3d4f69b836fc539e04d3f1b5007195ee22d115a | [
"BSD-2-Clause"
] | 1 | 2021-12-31T08:56:18.000Z | 2021-12-31T08:56:18.000Z | #!/usr/bin/env python
#
# Copyright 2020 VMware, Inc.
# SPDX-License-Identifier: BSD-2-Clause OR GPL-3.0-only
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
# BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FO... | 32.25 | 79 | 0.638478 | 673 | 5,676 | 5.26003 | 0.387816 | 0.042373 | 0.018079 | 0.021469 | 0.149718 | 0.093785 | 0.056497 | 0.041808 | 0.041808 | 0.041808 | 0 | 0.010636 | 0.304264 | 5,676 | 175 | 80 | 32.434286 | 0.885794 | 0.151163 | 0 | 0.246575 | 0 | 0 | 0.767917 | 0.029583 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013699 | false | 0.013699 | 0.047945 | 0.006849 | 0.082192 | 0.006849 | 0 | 0 | 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 |
045222c0e5c81f717ad65e4776a95c0a87c34100 | 1,650 | py | Python | cmsplugin_blog_categories/admin.py | bitmazk/cmsplugin-blog-categories | 05e2fa3d50a8501f3f3f9cab784269838079cc37 | [
"MIT"
] | null | null | null | cmsplugin_blog_categories/admin.py | bitmazk/cmsplugin-blog-categories | 05e2fa3d50a8501f3f3f9cab784269838079cc37 | [
"MIT"
] | 3 | 2020-02-11T22:01:45.000Z | 2021-06-10T17:38:13.000Z | cmsplugin_blog_categories/admin.py | bitmazk/cmsplugin-blog-categories | 05e2fa3d50a8501f3f3f9cab784269838079cc37 | [
"MIT"
] | null | null | null | """Admin classes for the ``cmsplugin_blog_categories`` app."""
from django.contrib import admin
from django.utils.translation import get_language
from django.utils.translation import ugettext_lazy as _
from cmsplugin_blog.admin import EntryAdmin
from simple_translation.admin import TranslationAdmin
from simple_transla... | 33.673469 | 76 | 0.76 | 189 | 1,650 | 6.439153 | 0.312169 | 0.057518 | 0.029581 | 0.046836 | 0.231717 | 0.128184 | 0.128184 | 0.128184 | 0.128184 | 0.128184 | 0 | 0.000716 | 0.153939 | 1,650 | 48 | 77 | 34.375 | 0.87106 | 0.178788 | 0 | 0 | 0 | 0 | 0.047262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
045342ad8c917f805ccbf7ec913e6f1e3f54b1e8 | 23,077 | py | Python | main.py | danya02/tracking-pixels | 4f0c350a8dfcbdbab0c873c80947a28c8958a410 | [
"MIT"
] | null | null | null | main.py | danya02/tracking-pixels | 4f0c350a8dfcbdbab0c873c80947a28c8958a410 | [
"MIT"
] | 2 | 2019-11-22T09:13:21.000Z | 2019-11-22T09:35:16.000Z | main.py | danya02/tracking-pixels | 4f0c350a8dfcbdbab0c873c80947a28c8958a410 | [
"MIT"
] | null | null | null | from flask import Flask, make_response, abort, request, render_template, url_for, session, redirect, flash
from peewee import *
from flask_mail import Mail, Message
app = Flask(__name__)
app.config['SECRET_KEY'] = 'So secret, much spoopy'
import datetime
app.config['PERMANENT_SESSION_LIFETIME'] = datetime.timedelta(... | 38.206954 | 264 | 0.662131 | 2,962 | 23,077 | 5.049629 | 0.143484 | 0.030889 | 0.026743 | 0.008825 | 0.459785 | 0.385238 | 0.347864 | 0.303269 | 0.268369 | 0.25239 | 0 | 0.00749 | 0.218963 | 23,077 | 603 | 265 | 38.270315 | 0.822348 | 0.044503 | 0 | 0.455446 | 0 | 0.007921 | 0.265497 | 0.028586 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059406 | false | 0.106931 | 0.021782 | 0.007921 | 0.29901 | 0.00198 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0454fc75902bcccd5120dc2f775245deac2f5f05 | 1,222 | py | Python | FFM.py | FaberSid/mmo-discord-bot | 9004c0194428819c6f3faba547b3fca47d57cfe9 | [
"MIT"
] | 3 | 2020-05-20T10:12:55.000Z | 2020-11-16T14:58:29.000Z | FFM.py | FaberSid/mmo-discord-bot | 9004c0194428819c6f3faba547b3fca47d57cfe9 | [
"MIT"
] | 4 | 2021-04-05T06:14:51.000Z | 2021-06-14T06:22:05.000Z | FFM.py | FaberSid/mmo-discord-bot | 9004c0194428819c6f3faba547b3fca47d57cfe9 | [
"MIT"
] | 1 | 2021-05-16T11:55:39.000Z | 2021-05-16T11:55:39.000Z | import os
from discord import AllowedMentions
from discord.ext import commands as c
from module.prefix import table
from module import db
db.init()
class MyBot(c.Bot):
async def on_ready(self):
print('Logged in as')
print(self.user.name)
print(self.user.id)
print("------")
... | 31.333333 | 108 | 0.599018 | 163 | 1,222 | 4.435583 | 0.429448 | 0.049793 | 0.060858 | 0.024896 | 0.130014 | 0.130014 | 0.063624 | 0.063624 | 0.063624 | 0 | 0 | 0 | 0.252046 | 1,222 | 38 | 109 | 32.157895 | 0.791028 | 0.053191 | 0 | 0.068966 | 0 | 0 | 0.25368 | 0.041558 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.206897 | 0 | 0.241379 | 0.413793 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0455c1c0fc3fd970d1b3a7714b18ebaeb140ef83 | 2,646 | py | Python | src/lda.py | sreekarcheg/Citation-Count-Prediction | 9b6936c3f78b4264d685ada8d1163955f410111c | [
"MIT"
] | 9 | 2017-05-07T05:15:42.000Z | 2021-07-20T07:20:38.000Z | src/lda.py | sreekarcheg/Citation-Count-Prediction | 9b6936c3f78b4264d685ada8d1163955f410111c | [
"MIT"
] | null | null | null | src/lda.py | sreekarcheg/Citation-Count-Prediction | 9b6936c3f78b4264d685ada8d1163955f410111c | [
"MIT"
] | 6 | 2016-12-19T07:22:07.000Z | 2021-12-16T07:59:43.000Z | from __future__ import unicode_literals
from nltk.corpus import stopwords
from nltk.stem.porter import PorterStemmer
from gensim import corpora, models
import gensim
import pickle
import re
import nltk
import sys
import datetime
import cPickle as pickle
def getLDAModel(paperData, numTopics=25, numPasses=2):
# crea... | 30.767442 | 98 | 0.674603 | 340 | 2,646 | 5.170588 | 0.394118 | 0.066553 | 0.107509 | 0.122867 | 0.195677 | 0.094425 | 0.094425 | 0.047782 | 0 | 0 | 0 | 0.011347 | 0.233938 | 2,646 | 85 | 99 | 31.129412 | 0.855945 | 0.188587 | 0 | 0 | 0 | 0 | 0.132926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.039216 | 0.215686 | null | null | 0.196078 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
04562554d43f19dbc0dceea9338d9e61c0da3e84 | 5,497 | py | Python | PyStacks/test/templates/test_elb.py | 0xack13/PyStacks | 13136c43089c241680beb216a233d1846119dd7c | [
"MIT"
] | 11 | 2018-02-15T04:27:05.000Z | 2020-10-02T11:20:08.000Z | PyStacks/test/templates/test_elb.py | 0xack13/PyStacks | 13136c43089c241680beb216a233d1846119dd7c | [
"MIT"
] | 3 | 2018-02-15T05:46:54.000Z | 2018-03-05T04:46:51.000Z | PyStacks/test/templates/test_elb.py | 0xack13/PyStacks | 13136c43089c241680beb216a233d1846119dd7c | [
"MIT"
] | 8 | 2018-03-05T04:40:41.000Z | 2021-02-22T08:07:58.000Z | import unittest
from PyStacks.PyStacks.template import templateCF
class TestTemplate(unittest.TestCase):
def test_templateCF_ELB(self):
resources = {
'elb': {
'complextestelb': {
'instances': [
'i-1234567',
'... | 36.403974 | 75 | 0.237402 | 178 | 5,497 | 7.275281 | 0.5 | 0.030116 | 0.034749 | 0.041699 | 0.291892 | 0.24556 | 0.196139 | 0.196139 | 0.196139 | 0.196139 | 0 | 0.052488 | 0.667273 | 5,497 | 150 | 76 | 36.646667 | 0.655549 | 0 | 0 | 0.125874 | 0 | 0 | 0.205203 | 0.023104 | 0 | 0 | 0 | 0 | 0.006993 | 1 | 0.006993 | false | 0 | 0.034965 | 0 | 0.048951 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0458d6d97e6d1bc4f84906e3363675223b7fd5a9 | 6,727 | py | Python | cellardoor/wsgi/flask_integration.py | movermeyer/cellardoor | 25192b07224ff7bd33fd29ebac07340bef53a2ed | [
"MIT"
] | null | null | null | cellardoor/wsgi/flask_integration.py | movermeyer/cellardoor | 25192b07224ff7bd33fd29ebac07340bef53a2ed | [
"MIT"
] | 3 | 2015-01-31T14:53:06.000Z | 2015-02-01T19:04:30.000Z | cellardoor/wsgi/flask_integration.py | movermeyer/cellardoor | 25192b07224ff7bd33fd29ebac07340bef53a2ed | [
"MIT"
] | 2 | 2015-01-31T14:54:28.000Z | 2018-03-05T17:33:42.000Z | import inspect
from functools import wraps
import logging
import collections
from flask import Blueprint, request, abort, make_response
from flask.views import MethodView
from cellardoor import errors
from cellardoor.serializers import JSONSerializer, MsgPackSerializer
from cellardoor.wsgi import parse_params, get_cont... | 30.165919 | 142 | 0.715772 | 893 | 6,727 | 5.208287 | 0.157895 | 0.036336 | 0.025801 | 0.036121 | 0.44098 | 0.399269 | 0.364438 | 0.328532 | 0.271985 | 0.271985 | 0 | 0.006345 | 0.156533 | 6,727 | 223 | 143 | 30.165919 | 0.813359 | 0 | 0 | 0.362162 | 0 | 0 | 0.056926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075676 | null | null | 0.016216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f0892c09fc75a8f26878f45652368250bf014d0a | 1,869 | py | Python | Lista 1/006.py | andrewsmsf/Python-listas | 699360284b99c0b02dc25808fc649b16efb38242 | [
"MIT"
] | null | null | null | Lista 1/006.py | andrewsmsf/Python-listas | 699360284b99c0b02dc25808fc649b16efb38242 | [
"MIT"
] | null | null | null | Lista 1/006.py | andrewsmsf/Python-listas | 699360284b99c0b02dc25808fc649b16efb38242 | [
"MIT"
] | null | null | null | #6. As Organizações Tabajara resolveram dar um aumento de salário aos seus colaboradores e lhe contraram para
# desenvolver o programa que calculará os reajustes.
# Faça um programa que recebe o salário de um colaborador e o reajuste segundo o seguinte critério, baseado no salário atual:
# salários até R$ 280,00 (inc... | 44.5 | 125 | 0.680043 | 268 | 1,869 | 4.742537 | 0.287313 | 0.028324 | 0.055075 | 0.097561 | 0.514555 | 0.47915 | 0.47915 | 0.47915 | 0.47915 | 0.47915 | 0 | 0.060185 | 0.191011 | 1,869 | 42 | 126 | 44.5 | 0.780423 | 0.347245 | 0 | 0.551724 | 0 | 0 | 0.323141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.551724 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f089d2bbb70fe0651a43c919803fdc620b359fc0 | 264 | py | Python | lagury/tests/data_node_test.py | K-Mike/lagury | 3237790dc48624a5202a17ef6dc8dbd05e82c149 | [
"MIT"
] | null | null | null | lagury/tests/data_node_test.py | K-Mike/lagury | 3237790dc48624a5202a17ef6dc8dbd05e82c149 | [
"MIT"
] | null | null | null | lagury/tests/data_node_test.py | K-Mike/lagury | 3237790dc48624a5202a17ef6dc8dbd05e82c149 | [
"MIT"
] | null | null | null | from ..client.commands import send_local_data
def run():
res = send_local_data(data_dir='/mnt/data/jupyter/lagury/resources/tests/test_data_node_1',
description='some data',
copy_data=False)
print(res)
| 29.333333 | 95 | 0.613636 | 33 | 264 | 4.636364 | 0.727273 | 0.117647 | 0.169935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005291 | 0.284091 | 264 | 8 | 96 | 33 | 0.804233 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0.215909 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0.166667 | 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 |
f0946721c842d674dbb85a29d5259b028bc0fe2c | 545 | py | Python | make_mozilla/events/tests/test_tasks.py | Mozilla-GitHub-Standards/54c69db06ef83bda60e995a6c34ecfd168ca028994e40ce817295415bb409f0c | f80e7c0cff97a1e9b301aa04015db983c7645778 | [
"BSD-3-Clause"
] | 4 | 2015-05-08T16:58:53.000Z | 2019-09-06T05:30:59.000Z | make_mozilla/events/tests/test_tasks.py | Mozilla-GitHub-Standards/54c69db06ef83bda60e995a6c34ecfd168ca028994e40ce817295415bb409f0c | f80e7c0cff97a1e9b301aa04015db983c7645778 | [
"BSD-3-Clause"
] | 2 | 2019-02-17T17:44:53.000Z | 2019-03-28T03:54:39.000Z | make_mozilla/events/tests/test_tasks.py | Mozilla-GitHub-Standards/54c69db06ef83bda60e995a6c34ecfd168ca028994e40ce817295415bb409f0c | f80e7c0cff97a1e9b301aa04015db983c7645778 | [
"BSD-3-Clause"
] | 7 | 2015-05-21T15:38:29.000Z | 2019-10-28T23:39:06.000Z | from django.utils import unittest
from mock import patch, Mock
from nose.tools import eq_, ok_
from make_mozilla.events import tasks
class AddOrganiserAsConstituentTaskTest(unittest.TestCase):
@patch.object(tasks.BSDRegisterConstituent, 'add_email_to_group')
def test_task_func_correctly_invokes_bsd_client(sel... | 36.333333 | 81 | 0.79633 | 72 | 545 | 5.680556 | 0.638889 | 0.07335 | 0.102689 | 0.0978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012579 | 0.124771 | 545 | 14 | 82 | 38.928571 | 0.844864 | 0 | 0 | 0 | 0 | 0 | 0.113761 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f09607295774fd9a3e4243b00eacb682ffa06170 | 2,587 | py | Python | tconfig/tests/api/resources/test_parameter_set.py | awwilliams/tconfig | e798ca7d85a61c53df07b61440b321dbd3793350 | [
"MIT"
] | null | null | null | tconfig/tests/api/resources/test_parameter_set.py | awwilliams/tconfig | e798ca7d85a61c53df07b61440b321dbd3793350 | [
"MIT"
] | null | null | null | tconfig/tests/api/resources/test_parameter_set.py | awwilliams/tconfig | e798ca7d85a61c53df07b61440b321dbd3793350 | [
"MIT"
] | null | null | null | def test_parameters(api_client, api_prefix):
url = f"{api_prefix}/parameterset/"
response = api_client.get(url)
assert response.status_code == 200
json_dict = response.json
expected = {
"parameter_list_url": f"{api_prefix}/parameters/",
"parameter_set": {
"name": None,
... | 36.957143 | 83 | 0.326247 | 186 | 2,587 | 4.413978 | 0.284946 | 0.087698 | 0.073082 | 0.107186 | 0.129111 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040189 | 0.50947 | 2,587 | 69 | 84 | 37.492754 | 0.606777 | 0 | 0 | 0.343284 | 0 | 0 | 0.253576 | 0.029378 | 0 | 0 | 0 | 0 | 0.029851 | 1 | 0.014925 | false | 0 | 0 | 0 | 0.014925 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f097b9ed277fb0663b8299cad612863f9a37ff19 | 1,528 | py | Python | modin/data_management/functions/default_methods/resample_default.py | ienkovich/modin | b7e1188f7ba01e3a313996e092a65b63f6b76fa0 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-05-19T04:01:17.000Z | 2021-05-19T04:01:17.000Z | modin/data_management/functions/default_methods/resample_default.py | ienkovich/modin | b7e1188f7ba01e3a313996e092a65b63f6b76fa0 | [
"ECL-2.0",
"Apache-2.0"
] | 57 | 2021-01-22T15:52:03.000Z | 2021-06-12T18:22:04.000Z | modin/data_management/functions/default_methods/resample_default.py | ienkovich/modin | b7e1188f7ba01e3a313996e092a65b63f6b76fa0 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2022-01-29T12:12:42.000Z | 2022-01-29T12:12:42.000Z | # Licensed to Modin Development Team under one or more contributor license agreements.
# See the NOTICE file distributed with this work for additional information regarding
# copyright ownership. The Modin Development Team licenses this file to you under the
# Apache License, Version 2.0 (the "License"); you may not u... | 35.534884 | 87 | 0.691754 | 198 | 1,528 | 5.267677 | 0.525253 | 0.057526 | 0.043145 | 0.030681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004284 | 0.236257 | 1,528 | 42 | 88 | 36.380952 | 0.88946 | 0.495419 | 0 | 0.095238 | 0 | 0 | 0.011873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.047619 | 0.047619 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f098611b4407cb6412f7157254841cf0f1df7ff3 | 458 | py | Python | TravelWebsite/travello/migrations/0023_auto_20200310_0007.py | DSAnup/Django | 76025d181bafbb41783912577f80ec728884549d | [
"MIT"
] | 1 | 2020-03-15T05:22:30.000Z | 2020-03-15T05:22:30.000Z | TravelWebsite/travello/migrations/0023_auto_20200310_0007.py | DSAnup/Django | 76025d181bafbb41783912577f80ec728884549d | [
"MIT"
] | null | null | null | TravelWebsite/travello/migrations/0023_auto_20200310_0007.py | DSAnup/Django | 76025d181bafbb41783912577f80ec728884549d | [
"MIT"
] | null | null | null | # Generated by Django 3.0.1 on 2020-03-09 18:07
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('travello', '0022_auto_20200227_0045'),
]
operations = [
migrations.AlterField(
model_name='team',
na... | 22.9 | 109 | 0.617904 | 53 | 458 | 5.264151 | 0.773585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142012 | 0.262009 | 458 | 19 | 110 | 24.105263 | 0.683432 | 0.098253 | 0 | 0 | 1 | 0 | 0.094891 | 0.055961 | 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 |
f0990834fe5f0d5e1826e5ab6b6201bcc0b224ff | 363 | py | Python | labelbox/schema/asset_metadata.py | SharperShape/labelbox-python | 228d2583bc41af976b4338c699961f07ca607e84 | [
"Apache-2.0",
"MIT"
] | null | null | null | labelbox/schema/asset_metadata.py | SharperShape/labelbox-python | 228d2583bc41af976b4338c699961f07ca607e84 | [
"Apache-2.0",
"MIT"
] | null | null | null | labelbox/schema/asset_metadata.py | SharperShape/labelbox-python | 228d2583bc41af976b4338c699961f07ca607e84 | [
"Apache-2.0",
"MIT"
] | null | null | null | from labelbox.orm.db_object import DbObject
from labelbox.orm.model import Field
class AssetMetadata(DbObject):
""" AssetMetadata is a datatype to provide extra context about an asset
while labeling.
"""
VIDEO = "VIDEO"
IMAGE = "IMAGE"
TEXT = "TEXT"
meta_type = Field.String("meta_type")
... | 24.2 | 75 | 0.69697 | 47 | 363 | 5.276596 | 0.638298 | 0.096774 | 0.120968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206612 | 363 | 14 | 76 | 25.928571 | 0.861111 | 0.22865 | 0 | 0 | 0 | 0 | 0.125 | 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 |
f09e18ed3c939c46c8e32fac1adf98113917534e | 22,384 | py | Python | src-py/libcloud-trunk/javaimpl/compute/drivers/VcloudComputeContext.py | Schnitzl42/JLibcloud | 42914a5e1b0e80b2d2fd61a37592998ecb4a4de1 | [
"Apache-2.0"
] | 1 | 2016-01-30T19:23:16.000Z | 2016-01-30T19:23:16.000Z | src-py/libcloud-trunk/javaimpl/compute/drivers/VcloudComputeContext.py | Schnitzl42/JLibcloud | 42914a5e1b0e80b2d2fd61a37592998ecb4a4de1 | [
"Apache-2.0"
] | null | null | null | src-py/libcloud-trunk/javaimpl/compute/drivers/VcloudComputeContext.py | Schnitzl42/JLibcloud | 42914a5e1b0e80b2d2fd61a37592998ecb4a4de1 | [
"Apache-2.0"
] | null | null | null | # Parts or the whole documentation of this module
# are copied from the respective module:
# libcloud/compute/drivers/vcloud.py
# see also:
# https://github.com/apache/libcloud/tree/trunk/libcloud/compute/drivers/vcloud.py
#
# Apache Libcloud is licensed under the Apache 2.0 license.
# For more information, please see ... | 30.579235 | 96 | 0.636213 | 2,956 | 22,384 | 4.646482 | 0.142084 | 0.032035 | 0.024754 | 0.032035 | 0.523189 | 0.480306 | 0.445577 | 0.414561 | 0.380488 | 0.357699 | 0 | 0.002086 | 0.271935 | 22,384 | 731 | 97 | 30.621067 | 0.840707 | 0.016708 | 0 | 0.558333 | 0 | 0 | 0.028734 | 0.001807 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038889 | 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 |
f0a6b591f304fbac81b0dff54cd5d94563a8f17a | 4,510 | py | Python | fammerlib/scan.py | etal/fammer | 5bcf8ebcfcb4242d81df896119e97741a1bb9f08 | [
"BSD-2-Clause"
] | 3 | 2018-04-21T08:33:43.000Z | 2021-09-07T07:37:11.000Z | fammerlib/scan.py | etal/fammer | 5bcf8ebcfcb4242d81df896119e97741a1bb9f08 | [
"BSD-2-Clause"
] | 1 | 2016-01-08T06:54:32.000Z | 2016-01-08T06:54:32.000Z | fammerlib/scan.py | etal/fammer | 5bcf8ebcfcb4242d81df896119e97741a1bb9f08 | [
"BSD-2-Clause"
] | 4 | 2015-08-30T13:36:35.000Z | 2019-04-25T20:30:56.000Z | "Scan a sequence set using a HMMer 3.0 profile database."
# ENH - use the built HMM/MAPGAP & Newick tree to scan&classify seqs
import collections
import logging
from os.path import basename, isdir, isfile
from Bio import SeqIO
from .tasks import sh
from ._share import parse_scanned_hits
def cmd_scan(args):
"""... | 34.692308 | 78 | 0.637029 | 589 | 4,510 | 4.809847 | 0.339559 | 0.021179 | 0.013766 | 0.009884 | 0.169432 | 0.15743 | 0.11719 | 0.096717 | 0.067067 | 0.067067 | 0 | 0.001773 | 0.249446 | 4,510 | 129 | 79 | 34.96124 | 0.835155 | 0.22439 | 0 | 0.219178 | 0 | 0 | 0.06763 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0 | null | null | 0 | 0.082192 | null | null | 0.027397 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f0adff2ec57ae72a5bf2375e70a4302efa635d21 | 1,859 | py | Python | Class Projects/CS545(MachineLearning)/linearFeature/linear_feature.py | Zosit/Useful-Reusable-Code | e5eab12f1ebcc6f16e456a7515ff8cc068b5ab16 | [
"MIT"
] | null | null | null | Class Projects/CS545(MachineLearning)/linearFeature/linear_feature.py | Zosit/Useful-Reusable-Code | e5eab12f1ebcc6f16e456a7515ff8cc068b5ab16 | [
"MIT"
] | null | null | null | Class Projects/CS545(MachineLearning)/linearFeature/linear_feature.py | Zosit/Useful-Reusable-Code | e5eab12f1ebcc6f16e456a7515ff8cc068b5ab16 | [
"MIT"
] | 1 | 2020-06-07T15:37:57.000Z | 2020-06-07T15:37:57.000Z | print(__doc__)
import matplotlib
# Force matplotlib to not use any Xwindows backend.
matplotlib.use('Agg')
import numpy as np
import matplotlib.pyplot as plt
from itertools import cycle
import pandas as pd
from matplotlib.backends.backend_pdf import PdfPages
import csv
from sklearn import svm, datasets
from sklearn... | 28.166667 | 84 | 0.745024 | 313 | 1,859 | 4.261981 | 0.335463 | 0.033733 | 0.02099 | 0.023988 | 0.342579 | 0.282609 | 0.152924 | 0.152924 | 0.152924 | 0.152924 | 0 | 0.010417 | 0.122109 | 1,859 | 65 | 85 | 28.6 | 0.806985 | 0.116729 | 0 | 0.133333 | 0 | 0 | 0.03613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f0afdc4295d0d7112df1c0ddc3b09b1ece46ec93 | 12,684 | py | Python | source/EADtoSpreadsheet/func/eadheader.py | gwiedeman/eadmachine | f6c0c0f92fc20ab6dcf4962fda827b7adb4749d4 | [
"Unlicense"
] | 5 | 2016-01-25T15:27:12.000Z | 2021-08-17T22:31:48.000Z | source/EADtoSpreadsheet/func/eadheader.py | gwiedeman/eadmachine | f6c0c0f92fc20ab6dcf4962fda827b7adb4749d4 | [
"Unlicense"
] | null | null | null | source/EADtoSpreadsheet/func/eadheader.py | gwiedeman/eadmachine | f6c0c0f92fc20ab6dcf4962fda827b7adb4749d4 | [
"Unlicense"
] | null | null | null | # module for the <eadheader/> or <control/> portion
import xml.etree.cElementTree as ET
import globals
from messages import error
from mixed_content import mixed_content
import wx
def eadheader(EAD, CSheet):
eadheader_root = EAD[0]
#update GUI progress bar
from wx.lib.pubsub import pub
wx.CallAfter(pub.sendMessa... | 42.139535 | 206 | 0.725323 | 1,571 | 12,684 | 5.735837 | 0.094844 | 0.079347 | 0.092443 | 0.063811 | 0.758628 | 0.692154 | 0.607591 | 0.551437 | 0.516591 | 0.458551 | 0 | 0.001297 | 0.149007 | 12,684 | 301 | 207 | 42.139535 | 0.833519 | 0.034611 | 0 | 0.6139 | 0 | 0.011583 | 0.270987 | 0.133693 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003861 | false | 0.088803 | 0.034749 | 0 | 0.03861 | 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 |
f0c623384869a92f35839c55708f6b9acc1b5276 | 1,952 | py | Python | stackdio/api/volumes/migrations/0004_0_8_0_migrations.py | hdmillerdr/stackdio | 84be621705031d147e104369399b872d5093ef64 | [
"Apache-2.0"
] | 9 | 2015-12-18T22:44:55.000Z | 2022-02-07T19:34:44.000Z | stackdio/api/volumes/migrations/0004_0_8_0_migrations.py | hdmillerdr/stackdio | 84be621705031d147e104369399b872d5093ef64 | [
"Apache-2.0"
] | 77 | 2015-01-12T17:49:38.000Z | 2017-02-24T17:57:46.000Z | stackdio/api/volumes/migrations/0004_0_8_0_migrations.py | hdmillerdr/stackdio | 84be621705031d147e104369399b872d5093ef64 | [
"Apache-2.0"
] | 11 | 2015-01-23T15:50:19.000Z | 2022-02-07T19:34:45.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-04-08 18:19
from __future__ import unicode_literals
import django.db.models.deletion
import django_extensions.db.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('volumes', '0003_0_8_0_mi... | 30.984127 | 138 | 0.598873 | 192 | 1,952 | 5.911458 | 0.421875 | 0.071366 | 0.118943 | 0.150661 | 0.502203 | 0.451101 | 0.137445 | 0.137445 | 0.137445 | 0.137445 | 0 | 0.016619 | 0.290984 | 1,952 | 62 | 139 | 31.483871 | 0.803468 | 0.096311 | 0 | 0.54 | 1 | 0 | 0.129124 | 0.026735 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.14 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f0ce18423036fa3e98de9f0306f321ef96a25f43 | 2,408 | py | Python | py/train.py | yanglinjing/dsnd_p2_img_classifier | 90f7c979ecd00d6151339a7716dc39d10d3870d3 | [
"MIT"
] | null | null | null | py/train.py | yanglinjing/dsnd_p2_img_classifier | 90f7c979ecd00d6151339a7716dc39d10d3870d3 | [
"MIT"
] | null | null | null | py/train.py | yanglinjing/dsnd_p2_img_classifier | 90f7c979ecd00d6151339a7716dc39d10d3870d3 | [
"MIT"
] | null | null | null | %matplotlib inline
%config InlineBackend.figure_format = 'retina'
#import numpy as np
import time
import matplotlib.pyplot as plt
#from PIL import Image
import torch
from torch import nn, optim
#import torch.nn.functional as F
from torchvision import datasets, transforms, models
#import json
import arg_parse
import ... | 23.841584 | 79 | 0.580565 | 265 | 2,408 | 5.030189 | 0.350943 | 0.052513 | 0.072018 | 0.08102 | 0.103526 | 0.103526 | 0.052513 | 0 | 0 | 0 | 0 | 0.015954 | 0.349252 | 2,408 | 100 | 80 | 24.08 | 0.834716 | 0.078488 | 0 | 0.307692 | 0 | 0 | 0.027677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.107692 | null | null | 0.046154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f0cf08305adcc6b78b15db668a068753661cfd78 | 1,200 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/wsgi.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/wsgi.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/wsgi.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | """
WSGI config for LMS.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments.
It exposes a module-level variable named ``application``. Django's
``runserver`` and ``runfcgi`` commands discover this application via the
``WSGI_APPLICATION`` setting.
"""
# Pa... | 37.5 | 124 | 0.794167 | 173 | 1,200 | 5.439306 | 0.491329 | 0.070138 | 0.072264 | 0.102019 | 0.216791 | 0.216791 | 0.216791 | 0.125399 | 0.125399 | 0.125399 | 0 | 0 | 0.125833 | 1,200 | 31 | 125 | 38.709677 | 0.897045 | 0.6975 | 0 | 0 | 0 | 0 | 0.097983 | 0.063401 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f0db479bf259f65463e6f448f150eb23b19436f9 | 1,535 | py | Python | midstream/admin.py | georgiawang5332/meatFoodManager | 204b5b7aa2a3c5a6c9cc38077a10a72c0c69f140 | [
"MIT"
] | null | null | null | midstream/admin.py | georgiawang5332/meatFoodManager | 204b5b7aa2a3c5a6c9cc38077a10a72c0c69f140 | [
"MIT"
] | null | null | null | midstream/admin.py | georgiawang5332/meatFoodManager | 204b5b7aa2a3c5a6c9cc38077a10a72c0c69f140 | [
"MIT"
] | null | null | null | from django.contrib import admin
from midstream.models import *
# Register your models here.
# admin.site.register(Midstream) # 中游商
class MidstreamInline(admin.StackedInline):
model = Midstream
extra = 1
class MidstreamAdmin(admin.ModelAdmin):
list_display = (
'id', 'company_Name', 'company_principal', ... | 32.659574 | 110 | 0.734202 | 163 | 1,535 | 6.582822 | 0.343558 | 0.033551 | 0.063374 | 0.096925 | 0.499534 | 0.439888 | 0.439888 | 0.439888 | 0.439888 | 0.439888 | 0 | 0.000746 | 0.127036 | 1,535 | 46 | 111 | 33.369565 | 0.8 | 0.09316 | 0 | 0.214286 | 0 | 0 | 0.451193 | 0.06363 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.607143 | 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 |
f0dd924ed9fdb4964598ce74209d0aadc87f1398 | 1,047 | py | Python | bluebottle/tasks/migrations/0025_auto_20170601_1540.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 10 | 2015-05-28T18:26:40.000Z | 2021-09-06T10:07:03.000Z | bluebottle/tasks/migrations/0025_auto_20170601_1540.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 762 | 2015-01-15T10:00:59.000Z | 2022-03-31T15:35:14.000Z | bluebottle/tasks/migrations/0025_auto_20170601_1540.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 9 | 2015-02-20T13:19:30.000Z | 2022-03-08T14:09:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2017-06-01 13:40
from __future__ import unicode_literals
import bluebottle.utils.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tasks', '0024_merge_20170529_1436'),
]
operations = ... | 32.71875 | 158 | 0.646609 | 115 | 1,047 | 5.721739 | 0.582609 | 0.041033 | 0.068389 | 0.051672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041614 | 0.242598 | 1,047 | 31 | 159 | 33.774194 | 0.788146 | 0.064947 | 0 | 0.291667 | 1 | 0 | 0.242828 | 0.068648 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f0e8a5f357814f43ee683f02f062351ac95085e0 | 355 | py | Python | src/pandas_profiling/report/presentation/flavours/widget/variable.py | abhicantdraw/pandas-profiling | a12ebb7a94b9371df94bf611237a389d99f8bc00 | [
"MIT"
] | 8,107 | 2018-01-07T23:27:39.000Z | 2022-02-22T12:57:11.000Z | src/pandas_profiling/report/presentation/flavours/widget/variable.py | abhicantdraw/pandas-profiling | a12ebb7a94b9371df94bf611237a389d99f8bc00 | [
"MIT"
] | 771 | 2018-01-06T11:33:08.000Z | 2022-02-21T11:16:02.000Z | src/pandas_profiling/report/presentation/flavours/widget/variable.py | abhicantdraw/pandas-profiling | a12ebb7a94b9371df94bf611237a389d99f8bc00 | [
"MIT"
] | 1,308 | 2018-01-08T21:22:08.000Z | 2022-02-21T04:10:21.000Z | from ipywidgets import widgets
from pandas_profiling.report.presentation.core import Variable
class WidgetVariable(Variable):
def render(self) -> widgets.VBox:
items = [self.content["top"].render()]
if self.content["bottom"] is not None:
items.append(self.content["bottom"].render())
... | 27.307692 | 62 | 0.684507 | 42 | 355 | 5.761905 | 0.619048 | 0.136364 | 0.132231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194366 | 355 | 12 | 63 | 29.583333 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.042254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f0f0d455d5d610d72c7bbdcf4799339c20f00de9 | 7,655 | py | Python | Contents/Code/support/scheduler.py | jippo015/Sub-Zero.bundle | 734e0f7128c05c0f639e11e7dfc77daa1014064b | [
"MIT"
] | 1,553 | 2015-11-09T02:17:06.000Z | 2022-03-31T20:24:52.000Z | Contents/Code/support/scheduler.py | saiterlz/Sub-Zero.bundle | 1a0bb9c3e4be84be35d46672907783363fe5a87b | [
"MIT"
] | 691 | 2015-11-05T21:32:26.000Z | 2022-03-17T10:52:45.000Z | Contents/Code/support/scheduler.py | saiterlz/Sub-Zero.bundle | 1a0bb9c3e4be84be35d46672907783363fe5a87b | [
"MIT"
] | 162 | 2015-11-06T19:38:55.000Z | 2022-03-16T02:42:41.000Z | # coding=utf-8
import datetime
import logging
import traceback
from config import config
def parse_frequency(s):
if s == "never" or s is None:
return None, None
kind, num, unit = s.split()
return int(num), unit
class DefaultScheduler(object):
queue_thread = None
scheduler_thread = None
... | 32.713675 | 120 | 0.522665 | 844 | 7,655 | 4.655213 | 0.167062 | 0.050395 | 0.016035 | 0.017816 | 0.320947 | 0.255027 | 0.175108 | 0.106388 | 0.106388 | 0.056503 | 0 | 0.003491 | 0.363945 | 7,655 | 233 | 121 | 32.854077 | 0.80345 | 0.028739 | 0 | 0.308989 | 0 | 0 | 0.135102 | 0.017107 | 0 | 0 | 0 | 0.004292 | 0 | 0 | null | null | 0 | 0.022472 | 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 |
f0f35ba2c3a0d52a4c9652e1d9c82fb9b3f0afb2 | 7,827 | py | Python | compare_hg19_to_grch37.py | saketkc/methylomer | 1d879aded6f1f103568bc99964518c8db1157d30 | [
"MIT"
] | 3 | 2015-05-28T21:24:18.000Z | 2017-08-02T21:47:27.000Z | compare_hg19_to_grch37.py | saketkc/bio-tricks | 1d879aded6f1f103568bc99964518c8db1157d30 | [
"MIT"
] | null | null | null | compare_hg19_to_grch37.py | saketkc/bio-tricks | 1d879aded6f1f103568bc99964518c8db1157d30 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
This script compares the difference between hg19 and GRCh37.
GRCh37 is supposedly the NCBI equivalent of UCSC's hg19.
See: http://seqanswers.com/forums/archive/index.php/t-9757.html
However the posts on the forum are not really convincing. There are more insights here:
http://uswest.ensem... | 45.242775 | 187 | 0.650824 | 1,188 | 7,827 | 4.25 | 0.326599 | 0.020202 | 0.029115 | 0.003961 | 0.263022 | 0.204001 | 0.177065 | 0.140226 | 0.118439 | 0.102198 | 0 | 0.05244 | 0.261786 | 7,827 | 172 | 188 | 45.505814 | 0.821218 | 0.002555 | 0 | 0.0625 | 0 | 0 | 0.172282 | 0.088055 | 0 | 0 | 0 | 0 | 0.03125 | 0 | null | null | 0 | 0.125 | null | null | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f0f770c4eeb987d653240d7870227f5710d48190 | 861 | py | Python | gixstapose/tests/test_diffract.py | jennyfothergill/GIXStapose | 7830fb3ddcfd6408c3d64283ff25c21cab93041e | [
"BSD-3-Clause"
] | 4 | 2020-03-06T15:05:28.000Z | 2022-03-28T22:39:57.000Z | gixstapose/tests/test_diffract.py | jennyfothergill/GIXStapose | 7830fb3ddcfd6408c3d64283ff25c21cab93041e | [
"BSD-3-Clause"
] | 12 | 2020-03-04T17:57:28.000Z | 2022-03-02T23:02:44.000Z | gixstapose/tests/test_diffract.py | jennyfothergill/GIXStapose | 7830fb3ddcfd6408c3d64283ff25c21cab93041e | [
"BSD-3-Clause"
] | 4 | 2020-03-02T22:08:56.000Z | 2020-06-23T21:19:37.000Z | from pathlib import Path
from tempfile import NamedTemporaryFile
from PIL import Image
import matplotlib.pyplot as plt
import numpy as np
from gixstapose.draw_scene import get_info
from gixstapose.diffractometer import Diffractometer, camera_to_rot
from gixstapose.main import camera_from_pos
path = str(Path(__file__... | 30.75 | 67 | 0.723577 | 122 | 861 | 4.92623 | 0.5 | 0.069884 | 0.036606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015193 | 0.159117 | 861 | 27 | 68 | 31.888889 | 0.814917 | 0 | 0 | 0 | 0 | 0 | 0.052265 | 0.027875 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.043478 | false | 0 | 0.347826 | 0 | 0.391304 | 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 |
0b0a608493a6fc17c4aff1f26cab923210b2807b | 391 | py | Python | spamresponsibly.py | velo223/Velo-s-Spam-Scripts | 286943dee2734b0a412602794026b91b210565bc | [
"CC0-1.0"
] | null | null | null | spamresponsibly.py | velo223/Velo-s-Spam-Scripts | 286943dee2734b0a412602794026b91b210565bc | [
"CC0-1.0"
] | null | null | null | spamresponsibly.py | velo223/Velo-s-Spam-Scripts | 286943dee2734b0a412602794026b91b210565bc | [
"CC0-1.0"
] | null | null | null | val = int(input(print("Enter a number: ")))
option = {
"n":"Nae nigga nae \n", "c":"Uohhhhhh :sob::sob::sob: \n",
"i":"I am living in your walls, oomfie. \n"
}
userinput = input("Choose your poison: [N]iggas, [C]unny, [I]solation")
with open("outputtings.txt",'w') as f:
f.write(option[userinput.l... | 39.1 | 72 | 0.611253 | 60 | 391 | 3.983333 | 0.716667 | 0.050209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184143 | 391 | 9 | 73 | 43.444444 | 0.749216 | 0 | 0 | 0 | 0 | 0 | 0.54712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 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 |
0b0bbc9dc6aa66e1cb58144e062df4175767fef2 | 2,862 | py | Python | examples/turtlebot-master/kobuki_buttons.py | LiuSeeker/Robotica-projeto-1 | 425795d51232470ac840faf9dc7d97863d801554 | [
"CECILL-B"
] | 1 | 2019-07-14T21:27:21.000Z | 2019-07-14T21:27:21.000Z | examples/turtlebot-master/kobuki_buttons.py | LiuSeeker/Robotica-projeto-1 | 425795d51232470ac840faf9dc7d97863d801554 | [
"CECILL-B"
] | null | null | null | examples/turtlebot-master/kobuki_buttons.py | LiuSeeker/Robotica-projeto-1 | 425795d51232470ac840faf9dc7d97863d801554 | [
"CECILL-B"
] | null | null | null | #!/usr/bin/env python
# This script is inspired by https://github.com/yujinrobot/kobuki/blob/f99e495b2b3be1e62495119809c58ccb58909f67/kobuki_testsuite/scripts/test_events.py
# They deserve all the credit therefore I'm including their copyright notice / BSD - Mark Silliman
'''
# Software License Agreement (BSD License... | 36.692308 | 180 | 0.750524 | 389 | 2,862 | 5.470437 | 0.534704 | 0.021147 | 0.015977 | 0.021617 | 0.086466 | 0.06391 | 0.06391 | 0.06391 | 0.06391 | 0.06391 | 0 | 0.015632 | 0.172956 | 2,862 | 77 | 181 | 37.168831 | 0.883397 | 0.177848 | 0 | 0.08 | 0 | 0 | 0.125668 | 0.034759 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12 | 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 |
0b116906afd66735d43c5f759f6d26c217818cb2 | 352 | py | Python | __main__.py | DeflatedPickle/TheSnowballEffect | 05cf1f1b2585cf2eb08e4ed155a2c0714d458b34 | [
"MIT"
] | null | null | null | __main__.py | DeflatedPickle/TheSnowballEffect | 05cf1f1b2585cf2eb08e4ed155a2c0714d458b34 | [
"MIT"
] | null | null | null | __main__.py | DeflatedPickle/TheSnowballEffect | 05cf1f1b2585cf2eb08e4ed155a2c0714d458b34 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from swine.window import Window, Layer
from src.scripts.scenes.game import SceneGame
window = Window()
snow = Layer(window, "Snow")
logs = Layer(window, "Logs")
player = Layer(window, "Player")
rocks = Layer(window, "Rocks")
leaves = Layer(window, "Leaves")
game = Scene... | 19.555556 | 45 | 0.698864 | 47 | 352 | 5.234043 | 0.489362 | 0.223577 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003289 | 0.136364 | 352 | 17 | 46 | 20.705882 | 0.805921 | 0.119318 | 0 | 0 | 0 | 0 | 0.081169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
0b13ee93263b86dc2d1e0367daaf2757e80df989 | 650 | py | Python | setup.py | dli-stats/distributed_cox | e31b36caa7bb8971453c572f6b19f9a1894cd0b2 | [
"MIT"
] | 1 | 2022-03-03T23:17:07.000Z | 2022-03-03T23:17:07.000Z | setup.py | dli-stats/distributed_cox | e31b36caa7bb8971453c572f6b19f9a1894cd0b2 | [
"MIT"
] | null | null | null | setup.py | dli-stats/distributed_cox | e31b36caa7bb8971453c572f6b19f9a1894cd0b2 | [
"MIT"
] | null | null | null | """Setup script."""
from setuptools import setup, find_packages
setup(
name='distributed_cox',
version='0.1dev',
packages=find_packages(),
entry_points={
'console_scripts': [
'distributed_cmd=distributed_cox.distributed.cmd:main'
],
},
python_requires='>=3.6',
i... | 20.967742 | 66 | 0.535385 | 65 | 650 | 5.184615 | 0.738462 | 0.071217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032823 | 0.296923 | 650 | 30 | 67 | 21.666667 | 0.704595 | 0.02 | 0 | 0.074074 | 0 | 0 | 0.332805 | 0.082409 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.037037 | 0 | 0.037037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0b16faf93b33e36f1257dbfe47cbbe47284ac433 | 406 | py | Python | pgAdmin/web/migrations/versions/d85a62333272_.py | WeilerWebServices/PostgreSQL | ae594ed077bebbad1be3c1d95c38b7c2c2683e8c | [
"PostgreSQL"
] | 4 | 2019-10-03T21:58:22.000Z | 2021-02-12T13:33:32.000Z | openresty-win32-build/thirdparty/x86/pgsql/pgAdmin 4/web/migrations/versions/d85a62333272_.py | nneesshh/openresty-oss | bfbb9d7526020eda1788a0ed24f2be3c8be5c1c3 | [
"MIT"
] | 10 | 2020-06-05T19:42:26.000Z | 2022-03-11T23:38:35.000Z | openresty-win32-build/thirdparty/x86/pgsql/pgAdmin 4/web/migrations/versions/d85a62333272_.py | nneesshh/openresty-oss | bfbb9d7526020eda1788a0ed24f2be3c8be5c1c3 | [
"MIT"
] | 1 | 2021-01-13T09:30:29.000Z | 2021-01-13T09:30:29.000Z |
"""empty message
Revision ID: d85a62333272
Revises: 3c1e4b6eda55
Create Date: 2017-07-07 16:03:23.842734
"""
from pgadmin.model import db
# revision identifiers, used by Alembic.
revision = 'd85a62333272'
down_revision = 'f195f9a4923d'
branch_labels = None
depends_on = None
def upgrade():
db.engine.execute(
... | 15.037037 | 51 | 0.716749 | 53 | 406 | 5.415094 | 0.830189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164134 | 0.189655 | 406 | 26 | 52 | 15.615385 | 0.708207 | 0.349754 | 0 | 0 | 0 | 0 | 0.254902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.090909 | 0.090909 | 0 | 0.272727 | 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 |
0b1802b8c08972611527214d59eca55edbdcb1cf | 509 | py | Python | setup.py | lygaret-attic/django-tumblog | 46ad86d7daf7ca7468d7bd554407479e449207a9 | [
"BSD-3-Clause"
] | 1 | 2021-01-08T19:07:29.000Z | 2021-01-08T19:07:29.000Z | setup.py | lygaret-attic/django-tumblog | 46ad86d7daf7ca7468d7bd554407479e449207a9 | [
"BSD-3-Clause"
] | null | null | null | setup.py | lygaret-attic/django-tumblog | 46ad86d7daf7ca7468d7bd554407479e449207a9 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from distutils.core import setup
setup(
name='django-tumblog',
version='0.1',
description='Django Tumblr clonse',
author='Jon Raphaelson',
author_email='jonraphaelson@gmail.com',
url='http://www.github.com/lygaret/django-tumblog',
packages=... | 24.238095 | 59 | 0.54224 | 48 | 509 | 5.729167 | 0.75 | 0.094545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00578 | 0.320236 | 509 | 20 | 60 | 25.45 | 0.789017 | 0.039293 | 0 | 0 | 0 | 0 | 0.403689 | 0.047131 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0b1cde4806b68b846e56450ba2a0836e0e80c68f | 15,145 | py | Python | ajaxviews/views.py | Pyco7/django-ajax-views | 5361936867b8c9b9b444d7e33bfc6ef1268b4611 | [
"MIT"
] | 6 | 2016-10-27T11:09:35.000Z | 2021-06-05T18:19:51.000Z | ajaxviews/views.py | Pyco7/django-ajax-views | 5361936867b8c9b9b444d7e33bfc6ef1268b4611 | [
"MIT"
] | 3 | 2020-02-12T00:08:06.000Z | 2021-06-10T19:46:55.000Z | ajaxviews/views.py | Pyco7/django-ajax-views | 5361936867b8c9b9b444d7e33bfc6ef1268b4611 | [
"MIT"
] | null | null | null | from django.http import HttpResponseRedirect
from django.utils.decorators import method_decorator
from django.views.decorators.csrf import csrf_exempt
from django.views.generic import ListView, DetailView, CreateView, UpdateView, DeleteView
try:
from extra_views import ModelFormSetView
except ImportError:
Mode... | 39.033505 | 115 | 0.682469 | 1,944 | 15,145 | 5.201646 | 0.197016 | 0.022745 | 0.030261 | 0.020669 | 0.250396 | 0.216377 | 0.191653 | 0.173655 | 0.173655 | 0.164953 | 0 | 0.001353 | 0.219148 | 15,145 | 387 | 116 | 39.134367 | 0.853712 | 0.551667 | 0 | 0.25 | 0 | 0 | 0.042666 | 0.004347 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.013889 | 0.0625 | 0.097222 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0b1d80b4726a42c34ac5cc2da626a01a452b9958 | 1,190 | py | Python | scrapy/crawlWileyLibrary/crawlWileyLibrary/pipelines.py | luoheng23/projects | 63d54dfefbcae3980f91a5f56ad641f8ec869334 | [
"MIT"
] | null | null | null | scrapy/crawlWileyLibrary/crawlWileyLibrary/pipelines.py | luoheng23/projects | 63d54dfefbcae3980f91a5f56ad641f8ec869334 | [
"MIT"
] | null | null | null | scrapy/crawlWileyLibrary/crawlWileyLibrary/pipelines.py | luoheng23/projects | 63d54dfefbcae3980f91a5f56ad641f8ec869334 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
from scrapy.pipelines.files import FilesPipeline
from scrapy.utils.misc import arg_to_iter
from twisted.internet.defe... | 33.055556 | 68 | 0.70084 | 154 | 1,190 | 5.298701 | 0.512987 | 0.044118 | 0.022059 | 0.044118 | 0.068627 | 0.068627 | 0 | 0 | 0 | 0 | 0 | 0.002114 | 0.205042 | 1,190 | 35 | 69 | 34 | 0.860465 | 0.185714 | 0 | 0.1 | 0 | 0 | 0.015168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.3 | 0.1 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0b2044a61a3f6ffe38ee7a4333cdf9de6c0bc5b1 | 667 | py | Python | scr/predict_result/wildutr/13-snv-loss-info.py | chunjie-sam-liu/miRNASNP-v3 | 41fab95b496b639674010863895547db0fc108bc | [
"MIT"
] | 1 | 2020-09-16T14:05:54.000Z | 2020-09-16T14:05:54.000Z | scr/predict_result/wildutr/13-snv-loss-info.py | chunjie-sam-liu/miRNASNP-v3 | 41fab95b496b639674010863895547db0fc108bc | [
"MIT"
] | null | null | null | scr/predict_result/wildutr/13-snv-loss-info.py | chunjie-sam-liu/miRNASNP-v3 | 41fab95b496b639674010863895547db0fc108bc | [
"MIT"
] | null | null | null | import json,sys,re
with open(sys.argv[2]) as infile:
loss_dict=json.load(infile)
with open(sys.argv[3]) as infile:
info_dict=json.load(infile)
with open(sys.argv[4],"a") as out:
with open(sys.argv[1]) as infile:
for line in infile:
nline=line.strip().split()
infokey=nline[... | 33.35 | 67 | 0.518741 | 99 | 667 | 3.434343 | 0.373737 | 0.094118 | 0.129412 | 0.176471 | 0.194118 | 0.194118 | 0.194118 | 0.194118 | 0 | 0 | 0 | 0.025974 | 0.307346 | 667 | 20 | 68 | 33.35 | 0.709957 | 0 | 0 | 0 | 0 | 0 | 0.019461 | 0 | 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 |
9bc4c5f3ae5bbca31e4a4869cab2902c45589fe6 | 385 | py | Python | tests/test_entities/test_branch.py | stas12312/aioalfacrm | 1501634fa5ef4591936be2e6147827565e4a0b36 | [
"MIT"
] | null | null | null | tests/test_entities/test_branch.py | stas12312/aioalfacrm | 1501634fa5ef4591936be2e6147827565e4a0b36 | [
"MIT"
] | 49 | 2021-11-11T16:00:40.000Z | 2021-11-24T15:37:34.000Z | tests/test_entities/test_branch.py | stas12312/aioalfacrm | 1501634fa5ef4591936be2e6147827565e4a0b36 | [
"MIT"
] | null | null | null | from aioalfacrm.entities import Branch
def test_init_branch():
branch = Branch(
id=1,
name='First branch',
is_active=True,
subject_ids=[1, 2, 3],
weight=1,
)
assert branch.id == 1
assert branch.name == 'First branch'
assert branch.is_active is True
asse... | 21.388889 | 42 | 0.6 | 52 | 385 | 4.326923 | 0.403846 | 0.266667 | 0.08 | 0.106667 | 0.115556 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03663 | 0.290909 | 385 | 17 | 43 | 22.647059 | 0.787546 | 0 | 0 | 0 | 0 | 0 | 0.062338 | 0 | 0 | 0 | 0 | 0 | 0.357143 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.142857 | 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 |
9bce3ccbf7d0d578139704372f9cc207a36f033c | 269 | py | Python | python/TemplateMethod/main.py | eling22/Design-Pattern | 2757b2468e28f7a4fcae185752101fb565975bd9 | [
"MIT"
] | 2 | 2020-12-19T05:30:06.000Z | 2021-08-07T11:16:13.000Z | python/TemplateMethod/main.py | eling22/Design-Pattern | 2757b2468e28f7a4fcae185752101fb565975bd9 | [
"MIT"
] | null | null | null | python/TemplateMethod/main.py | eling22/Design-Pattern | 2757b2468e28f7a4fcae185752101fb565975bd9 | [
"MIT"
] | null | null | null | from beverage import CoffeeWithHook, TeaWithHook
def main():
tea = TeaWithHook()
coffee = CoffeeWithHook()
print("Making tea...")
tea.prepareRecipe()
print("\nMaking coffee...")
coffee.prepareRecipe()
if __name__ == "__main__":
main()
| 15.823529 | 48 | 0.643123 | 25 | 269 | 6.6 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215613 | 269 | 16 | 49 | 16.8125 | 0.781991 | 0 | 0 | 0 | 0 | 0 | 0.144981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.2 | 0.2 | 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 |
9bd27d9db891d28109467cc33925c2ff98a0414e | 3,390 | py | Python | backend/server/backend/graphql/user_mutations.py | fossabot/Graphery | 61f23b2ad4ad0fa5dff643047597f9bb6cae35a2 | [
"MIT"
] | null | null | null | backend/server/backend/graphql/user_mutations.py | fossabot/Graphery | 61f23b2ad4ad0fa5dff643047597f9bb6cae35a2 | [
"MIT"
] | null | null | null | backend/server/backend/graphql/user_mutations.py | fossabot/Graphery | 61f23b2ad4ad0fa5dff643047597f9bb6cae35a2 | [
"MIT"
] | null | null | null | from typing import Optional
import graphene
from graphql import GraphQLError
from django.contrib.auth import authenticate, login, logout
from backend.graphql.decorators import admin_required, anonymous_required
from backend.graphql.mutation_base import SuccessMutationBase
from backend.graphql.utils import process_mo... | 35.684211 | 119 | 0.70118 | 373 | 3,390 | 6.265416 | 0.257373 | 0.053915 | 0.056483 | 0.066752 | 0.178862 | 0.12837 | 0.12837 | 0.12837 | 0.058194 | 0.058194 | 0 | 0 | 0.220649 | 3,390 | 94 | 120 | 36.06383 | 0.884557 | 0 | 0 | 0.142857 | 0 | 0 | 0.045723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.1 | 0.171429 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9bdaea5366bc3c73aeef4e11d583417c843476da | 791 | py | Python | var/spack/repos/builtin/packages/r-spatialpack/package.py | jonglezb/spack | ebc871abbf8f082000617e1798c75260652f0770 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2020-09-10T22:50:08.000Z | 2021-01-12T22:18:54.000Z | var/spack/repos/builtin/packages/r-spatialpack/package.py | jonglezb/spack | ebc871abbf8f082000617e1798c75260652f0770 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 14 | 2021-07-20T01:04:53.000Z | 2022-03-02T01:08:36.000Z | var/spack/repos/builtin/packages/r-spatialpack/package.py | jonglezb/spack | ebc871abbf8f082000617e1798c75260652f0770 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1 | 2021-05-06T00:17:46.000Z | 2021-05-06T00:17:46.000Z | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RSpatialpack(RPackage):
"""Tools to assess the association between two spatial processes."... | 39.55 | 95 | 0.745891 | 96 | 791 | 6.114583 | 0.697917 | 0.051107 | 0.056218 | 0.091993 | 0.151618 | 0.115843 | 0.115843 | 0.115843 | 0 | 0 | 0 | 0.156069 | 0.125158 | 791 | 19 | 96 | 41.631579 | 0.692197 | 0.318584 | 0 | 0 | 0 | 0.125 | 0.60566 | 0.241509 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9be2b60e22a6cdca0e169adc3494242e363b9a3b | 7,161 | py | Python | lda_analyze.py | Renata1995/Topic-Distance-and-Coherence | d567d5b3ef71ea5654f214aa3736add7f3ac94bc | [
"Apache-2.0"
] | 5 | 2018-08-25T07:16:31.000Z | 2020-11-12T00:36:15.000Z | lda_analyze.py | Renata1995/Topic-Distance-and-Coherence | d567d5b3ef71ea5654f214aa3736add7f3ac94bc | [
"Apache-2.0"
] | 1 | 2018-09-24T16:17:47.000Z | 2018-09-24T16:17:47.000Z | lda_analyze.py | Renata1995/Topic-Distance-and-Coherence | d567d5b3ef71ea5654f214aa3736add7f3ac94bc | [
"Apache-2.0"
] | 4 | 2018-05-07T07:52:10.000Z | 2020-11-12T00:36:18.000Z | # input a directory, each file is a document
import os
import sys
from gensim import corpora, models
from topic.topicio import TopicIO
from preprocess.DocTokenizer import DirDocTokenizer, FileDocTokenizer
from utils.WordCounter import WordCounter
#
# Analyze a specific LDA file and output results
# Assume the exi... | 30.602564 | 114 | 0.656612 | 1,059 | 7,161 | 4.324835 | 0.188857 | 0.050218 | 0.030568 | 0.020961 | 0.20655 | 0.159607 | 0.120306 | 0.120306 | 0.091921 | 0.065939 | 0 | 0.010979 | 0.198715 | 7,161 | 233 | 115 | 30.733906 | 0.787208 | 0.239212 | 0 | 0.2 | 0 | 0 | 0.117342 | 0.008144 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04 | null | null | 0.093333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
500759b02bb5a79e7495d295ba327d81d239e455 | 919 | py | Python | app/__init__.py | ecsnavarretemit/cmsc265-image-search-engine-skin | 1df8d9ed6a4f0c27d03ae9c8d3f1b9ad4cfd78c5 | [
"MIT"
] | null | null | null | app/__init__.py | ecsnavarretemit/cmsc265-image-search-engine-skin | 1df8d9ed6a4f0c27d03ae9c8d3f1b9ad4cfd78c5 | [
"MIT"
] | null | null | null | app/__init__.py | ecsnavarretemit/cmsc265-image-search-engine-skin | 1df8d9ed6a4f0c27d03ae9c8d3f1b9ad4cfd78c5 | [
"MIT"
] | null | null | null | # __init__.py
#
# Author(s):
# Exequiel Ceasar Navarrete <esnavarrete1@up.edu.ph>
#
# Licensed under MIT
# Version 1.0.0
import os
import sys
from flask import Flask
from flask_caching import Cache
# instantiate the application
app = Flask(__name__, instance_relative_config=True)
# initialize application configura... | 22.975 | 73 | 0.78346 | 127 | 919 | 5.480315 | 0.511811 | 0.103448 | 0.094828 | 0.112069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004975 | 0.125136 | 919 | 39 | 74 | 23.564103 | 0.860697 | 0.451578 | 0 | 0 | 0 | 0 | 0.193416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
500ee1c8bd5c1fa5b34d97f56e4cc91a5a5aee5a | 1,418 | py | Python | boot.py | minnovation-au/MHM4-Boot | d314173d03ac15317285e78348da07f78cfffe85 | [
"MIT"
] | null | null | null | boot.py | minnovation-au/MHM4-Boot | d314173d03ac15317285e78348da07f78cfffe85 | [
"MIT"
] | null | null | null | boot.py | minnovation-au/MHM4-Boot | d314173d03ac15317285e78348da07f78cfffe85 | [
"MIT"
] | null | null | null | ##################################
### DO NOT EDIT THIS FILE ###
### ###
### MHM4 boot.py V0.2 ###
### Last Updated ###
### Manjunath.R ###
### 25 July 2017 ###
### ###
### Copyright Minnovation 2017 ###
#####... | 25.781818 | 100 | 0.528209 | 167 | 1,418 | 4.431138 | 0.508982 | 0.032432 | 0.068919 | 0.037838 | 0.067568 | 0.067568 | 0.067568 | 0 | 0 | 0 | 0 | 0.030169 | 0.205219 | 1,418 | 54 | 101 | 26.259259 | 0.626442 | 0.408322 | 0 | 0.095238 | 1 | 0 | 0.110184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.142857 | 0 | 0.238095 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
501303d8f063a65b02ce84812d75b4222d69f6c1 | 943 | py | Python | self_test/linear_regression.py | appleface2050/Coursera-ML | e588fa5776a79d6516b2135124898a2db9da82ae | [
"MIT"
] | null | null | null | self_test/linear_regression.py | appleface2050/Coursera-ML | e588fa5776a79d6516b2135124898a2db9da82ae | [
"MIT"
] | null | null | null | self_test/linear_regression.py | appleface2050/Coursera-ML | e588fa5776a79d6516b2135124898a2db9da82ae | [
"MIT"
] | null | null | null | # coding=utf-8
from sklearn import preprocessing
import numpy as np
import os
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
# import tensorflow as tf
from helper import linear_regression as lr # my own module
from helper import general as general
data = pd.read_csv('ex1data1.txt', names=['... | 22.452381 | 75 | 0.730647 | 159 | 943 | 4.213836 | 0.45283 | 0.014925 | 0.047761 | 0.047761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019512 | 0.130435 | 943 | 42 | 76 | 22.452381 | 0.797561 | 0.174973 | 0 | 0 | 0 | 0 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.347826 | 0 | 0.347826 | 0.26087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
502721cda69bde10e67891f1d4b340cf2aabffb7 | 542 | py | Python | exams/migrations/0029_auto_20211022_1013.py | theMetaHack/otis-web | b73aa6273db8d440bc734ad1c703f6eb6b5a6087 | [
"MIT"
] | 15 | 2021-08-28T18:18:37.000Z | 2022-03-13T07:48:15.000Z | exams/migrations/0029_auto_20211022_1013.py | theMetaHack/otis-web | b73aa6273db8d440bc734ad1c703f6eb6b5a6087 | [
"MIT"
] | 65 | 2021-08-20T02:37:27.000Z | 2022-02-07T17:19:23.000Z | exams/migrations/0029_auto_20211022_1013.py | theMetaHack/otis-web | b73aa6273db8d440bc734ad1c703f6eb6b5a6087 | [
"MIT"
] | 31 | 2020-01-09T02:35:29.000Z | 2022-03-13T07:48:18.000Z | # Generated by Django 3.2.8 on 2021-10-22 14:13
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('roster', '0080_auto_20211020_0923'),
('exams', '0028_mockcompleted'),
]
operations = [
migrations.RenameField(
model_name='mockc... | 22.583333 | 50 | 0.570111 | 50 | 542 | 6.02 | 0.78 | 0.112957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092838 | 0.304428 | 542 | 23 | 51 | 23.565217 | 0.70557 | 0.083026 | 0 | 0.117647 | 1 | 0 | 0.19596 | 0.046465 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
502c488db6c01e5ccda529c81e9977add862a96c | 828 | py | Python | appi2c/ext/icon/icon_forms.py | andrequeiroz2/appi2c | 82e0a6e48ae69f301173c6d8c5990ee083c95da3 | [
"MIT"
] | 9 | 2020-12-28T14:37:11.000Z | 2021-02-01T10:16:19.000Z | appi2c/ext/icon/icon_forms.py | andrequeiroz2/appi2c | 82e0a6e48ae69f301173c6d8c5990ee083c95da3 | [
"MIT"
] | 2 | 2021-01-04T11:57:10.000Z | 2021-01-28T22:06:38.000Z | appi2c/ext/icon/icon_forms.py | andrequeiroz2/appi2c | 82e0a6e48ae69f301173c6d8c5990ee083c95da3 | [
"MIT"
] | 1 | 2021-01-28T21:37:19.000Z | 2021-01-28T21:37:19.000Z | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, IntegerField
from wtforms.validators import InputRequired, Length, ValidationError
from appi2c.ext.icon.icon_models import Icon
class IconForm(FlaskForm):
html_class = StringField('Class Html', validators=[InputRequired(), Length(max=60... | 39.428571 | 115 | 0.7343 | 101 | 828 | 5.920792 | 0.465347 | 0.105351 | 0.06689 | 0.107023 | 0.230769 | 0.230769 | 0.230769 | 0.230769 | 0.230769 | 0.230769 | 0 | 0.012821 | 0.152174 | 828 | 20 | 116 | 41.4 | 0.839031 | 0 | 0 | 0 | 0 | 0 | 0.114734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.266667 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5030003c67c78480d053bafc61a66aada9836f7b | 858 | py | Python | CollegeBuddy_backend/info/schema.py | tejan-singh/CollegeBuddy | b067345dff6dbf60a54bd48bedb7fab1f463d22d | [
"MIT"
] | 2 | 2020-12-06T15:49:16.000Z | 2020-12-10T15:20:50.000Z | CollegeBuddy_backend/info/schema.py | tejan-singh/CollegeBuddy | b067345dff6dbf60a54bd48bedb7fab1f463d22d | [
"MIT"
] | 5 | 2020-11-30T17:26:12.000Z | 2021-01-01T15:40:22.000Z | CollegeBuddy_backend/info/schema.py | tejan-singh/CollegeBuddy | b067345dff6dbf60a54bd48bedb7fab1f463d22d | [
"MIT"
] | 4 | 2020-12-05T18:30:16.000Z | 2021-01-02T13:17:54.000Z | import graphene
from info.models import *
from django.db.models import F
from framework.api.API_Exception import APIException
from graphql_jwt.decorators import login_required
class NoticeObj(graphene.ObjectType):
title = graphene.String()
details = graphene.String()
pdf = graphene.String()
url = grap... | 23.189189 | 52 | 0.69697 | 104 | 858 | 5.653846 | 0.375 | 0.085034 | 0.119048 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199301 | 858 | 36 | 53 | 23.833333 | 0.855895 | 0 | 0 | 0.076923 | 0 | 0 | 0.020979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.192308 | 0.192308 | 0.884615 | 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 |
5030542a088bf5d383e24fdd44ab759aa8b67ac7 | 642 | py | Python | eventpage/migrations/0013_auto_20200814_0543.py | cmd-ev/voctoconf | 5d2c1ca4f1da01b66983f5a562eb8eb6babe0452 | [
"MIT"
] | 21 | 2020-08-24T13:27:03.000Z | 2021-10-15T09:17:46.000Z | eventpage/migrations/0013_auto_20200814_0543.py | cmd-ev/voctoconf | 5d2c1ca4f1da01b66983f5a562eb8eb6babe0452 | [
"MIT"
] | null | null | null | eventpage/migrations/0013_auto_20200814_0543.py | cmd-ev/voctoconf | 5d2c1ca4f1da01b66983f5a562eb8eb6babe0452 | [
"MIT"
] | 5 | 2020-08-25T16:34:51.000Z | 2021-02-19T04:48:10.000Z | # Generated by Django 2.2.15 on 2020-08-14 03:43
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('eventpage', '0012_auto_20200814_0542'),
]
operations = [
migrations.AddField(
model_name='event',
n... | 24.692308 | 98 | 0.5919 | 67 | 642 | 5.567164 | 0.626866 | 0.096515 | 0.123324 | 0.144772 | 0.209115 | 0.209115 | 0.209115 | 0 | 0 | 0 | 0 | 0.110375 | 0.294393 | 642 | 25 | 99 | 25.68 | 0.713024 | 0.071651 | 0 | 0.315789 | 1 | 0 | 0.09596 | 0.038721 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5030da67ccbeac6ec4b97aed142fa18fbeaef3cd | 389 | py | Python | clrnn/models.py | Pervasive-AI-Lab/ContinualLearning-EchoStateNetworks | 1e21bff331e5eea6d3cfe96da49ea95a01c5050f | [
"MIT"
] | 1 | 2021-08-31T13:00:58.000Z | 2021-08-31T13:00:58.000Z | clrnn/models.py | Pervasive-AI-Lab/ContinualLearning-EchoStateNetworks | 1e21bff331e5eea6d3cfe96da49ea95a01c5050f | [
"MIT"
] | null | null | null | clrnn/models.py | Pervasive-AI-Lab/ContinualLearning-EchoStateNetworks | 1e21bff331e5eea6d3cfe96da49ea95a01c5050f | [
"MIT"
] | 2 | 2021-05-29T10:57:55.000Z | 2022-02-17T07:20:48.000Z | from torch import nn
class SequenceClassifier(nn.Module):
def __init__(self, rnn, hidden_size, output_size):
super().__init__()
self.rnn = rnn
self.classifier = nn.Linear(hidden_size, output_size)
assert self.rnn.batch_first
def forward(self, x):
x = self.rnn(x)
... | 25.933333 | 61 | 0.616967 | 52 | 389 | 4.365385 | 0.519231 | 0.123348 | 0.096916 | 0.176211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007018 | 0.267352 | 389 | 14 | 62 | 27.785714 | 0.789474 | 0.033419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.454545 | 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 |
5038463af4163b74f40f61d3907b0d14bd7c76a7 | 515 | py | Python | remade/read_ids_database.py | ChristianMichelsen/REMADE | f1068dcc8030ae42b6bee48772b596359853a837 | [
"MIT"
] | 1 | 2021-06-14T15:28:06.000Z | 2021-06-14T15:28:06.000Z | remade/read_ids_database.py | ChristianMichelsen/REMADE | f1068dcc8030ae42b6bee48772b596359853a837 | [
"MIT"
] | null | null | null | remade/read_ids_database.py | ChristianMichelsen/REMADE | f1068dcc8030ae42b6bee48772b596359853a837 | [
"MIT"
] | null | null | null | import logging
import pickledb
logger = logging.getLogger(__name__)
class DB:
def __init__(self, cfg):
self.path = cfg.file_read_ids_database
self.db = pickledb.load(self.path, auto_dump=True)
def load(self, tax_id):
return self.db.lgetall(str(tax_id))[0]
def save(self, d):
... | 23.409091 | 64 | 0.636893 | 79 | 515 | 3.911392 | 0.481013 | 0.080906 | 0.07767 | 0.07767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002558 | 0.240777 | 515 | 21 | 65 | 24.52381 | 0.787724 | 0 | 0 | 0 | 0 | 0 | 0.07767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.071429 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5046f1da2ef583c4811b7c460929b238f269c41e | 746 | py | Python | app/views/captcha.py | chick0/anonymity | 8d56550fe34ea6fdd933aacf755b246a0f0e4d8d | [
"MIT"
] | 2 | 2021-07-12T05:48:18.000Z | 2021-07-12T15:31:44.000Z | app/views/captcha.py | chick0/anonymity | 8d56550fe34ea6fdd933aacf755b246a0f0e4d8d | [
"MIT"
] | null | null | null | app/views/captcha.py | chick0/anonymity | 8d56550fe34ea6fdd933aacf755b246a0f0e4d8d | [
"MIT"
] | null | null | null | from io import BytesIO
from random import choice
from secrets import token_hex
from flask import Blueprint
from flask import send_file
from captcha.image import ImageCaptcha
from app import redis
from app.ip import get_ip_hash
bp = Blueprint(
name="captcha",
import_name="captcha",
url_prefix="/captcha"
)... | 19.631579 | 59 | 0.654155 | 104 | 746 | 4.586538 | 0.442308 | 0.012579 | 0.062893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022414 | 0.22252 | 746 | 37 | 60 | 20.162162 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.096515 | 0.029491 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.310345 | 0 | 0.37931 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5048ff7960c67e0373e7467f3379bf85fa399297 | 325 | py | Python | blog/migrations/0006_remove_visiable_name.py | bobjiangps/django-blog | 6afd36fa96c5a027546575b362b0a481c5d7c1a5 | [
"MIT"
] | 3 | 2019-10-25T13:08:04.000Z | 2020-01-05T11:29:18.000Z | blog/migrations/0006_remove_visiable_name.py | bobjiangps/django-blog | 6afd36fa96c5a027546575b362b0a481c5d7c1a5 | [
"MIT"
] | 9 | 2020-05-10T10:13:56.000Z | 2022-03-11T23:33:52.000Z | blog/migrations/0006_remove_visiable_name.py | bobjiangps/django-blog | 6afd36fa96c5a027546575b362b0a481c5d7c1a5 | [
"MIT"
] | 3 | 2019-02-11T02:55:51.000Z | 2020-01-05T11:29:20.000Z | # Generated by Django 2.0.6 on 2018-07-08 07:09
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0005_auto_20180708_1502'),
]
operations = [
migrations.RemoveField(
model_name='visiable',
name='name',
),
... | 18.055556 | 47 | 0.587692 | 35 | 325 | 5.342857 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135965 | 0.298462 | 325 | 17 | 48 | 19.117647 | 0.684211 | 0.138462 | 0 | 0 | 1 | 0 | 0.140288 | 0.082734 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
50501f51a4154d5bf8ef46a3b967796c118f2b1f | 962 | py | Python | log/logsys.py | smileboywtu/django-demo | 1ddc83abcd363814180056b9cc2ec1a4f804cc9d | [
"MIT"
] | 1 | 2016-07-30T03:22:13.000Z | 2016-07-30T03:22:13.000Z | log/logsys.py | smileboywtu/django-demo | 1ddc83abcd363814180056b9cc2ec1a4f804cc9d | [
"MIT"
] | null | null | null | log/logsys.py | smileboywtu/django-demo | 1ddc83abcd363814180056b9cc2ec1a4f804cc9d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# http://my.oschina.net/leejun2005/blog/126713
# utils for logger
# Created: 2016--27
# Copyright: (c) 2016<smileboywtu@gmail.com>
import logging
import logging.config
class LoggerSystem(object):
"""管理应用的应用级别的日志"""
def __init__(self, config_file):
logging.config.fileConfig(... | 22.904762 | 75 | 0.610187 | 108 | 962 | 5.268519 | 0.564815 | 0.052724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030556 | 0.251559 | 962 | 42 | 76 | 22.904762 | 0.759722 | 0.149688 | 0 | 0 | 0 | 0 | 0.143041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
50519304863408a88be55dd5d187a3836358c661 | 294 | py | Python | chp6/6_9favorite_places.py | veragal/pycc | 09a001b908c34588975dea8e337ccea33597c4cc | [
"MIT"
] | 2 | 2018-01-26T13:22:00.000Z | 2018-01-28T03:54:50.000Z | chp6/6_9favorite_places.py | veragal/pycc | 09a001b908c34588975dea8e337ccea33597c4cc | [
"MIT"
] | null | null | null | chp6/6_9favorite_places.py | veragal/pycc | 09a001b908c34588975dea8e337ccea33597c4cc | [
"MIT"
] | null | null | null |
# Copyright (c) Vera Galstyan Jan 2018
favorite_places ={
'vera': ['lyon','paris','london'],
'ofa':['berlin','madrid','milan'],
'karen':['dubai','barcelona']
}
for name,places in favorite_places.items():
print("\n" + name + "'s favorite places are:")
for place in places:
print(place) | 22.615385 | 47 | 0.64966 | 39 | 294 | 4.846154 | 0.692308 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015748 | 0.136054 | 294 | 13 | 48 | 22.615385 | 0.728346 | 0.122449 | 0 | 0 | 0 | 0 | 0.324219 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 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 |
50588d143a0ef30e3f4d8797952e4cf50f58094c | 804 | py | Python | CustomLayers/propconfidenslayer.py | ngunnar/tfnconv | f2037ed215dbcb74e11e68443fe289f621851324 | [
"MIT"
] | null | null | null | CustomLayers/propconfidenslayer.py | ngunnar/tfnconv | f2037ed215dbcb74e11e68443fe289f621851324 | [
"MIT"
] | null | null | null | CustomLayers/propconfidenslayer.py | ngunnar/tfnconv | f2037ed215dbcb74e11e68443fe289f621851324 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function
from tensorflow.keras.layers import Layer
from .Utils import softplus
import tensorflow as tf
class PropConf(Layer):
def __init__(self, beta):
super(PropConf, self).__init__()
self.beta = beta
def build(self, input_shape):
... | 30.923077 | 70 | 0.613184 | 94 | 804 | 5.021277 | 0.457447 | 0.067797 | 0.108051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003472 | 0.283582 | 804 | 26 | 71 | 30.923077 | 0.815972 | 0.027363 | 0 | 0 | 0 | 0 | 0.005161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.55 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
505eafd086a20eb49379c29b55a777002859eed9 | 805 | py | Python | run_find_inline_terms.py | SemanticBeeng/termolator-j | a55a1d87a3244c4019bf30c61834e43214577d04 | [
"Apache-2.0"
] | null | null | null | run_find_inline_terms.py | SemanticBeeng/termolator-j | a55a1d87a3244c4019bf30c61834e43214577d04 | [
"Apache-2.0"
] | 3 | 2017-08-22T12:57:36.000Z | 2017-08-22T13:05:29.000Z | run_find_inline_terms.py | SemanticBeeng/termolator-j | a55a1d87a3244c4019bf30c61834e43214577d04 | [
"Apache-2.0"
] | 2 | 2017-09-08T02:48:20.000Z | 2020-12-16T03:47:03.000Z | #!/usr/bin/env python3
from find_terms import *
from DataDef import File
import dictionary
from refactoring_support import *
def main(args):
# global special_domains
Refactoring.run_filter_phase = False
file_list = args[1]
if len(args) > 2:
outfile_prefix = args[2]
else:
outfile_... | 26.833333 | 151 | 0.674534 | 103 | 805 | 4.990291 | 0.533981 | 0.046693 | 0.035019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011129 | 0.218634 | 805 | 29 | 152 | 27.758621 | 0.806041 | 0.214907 | 0 | 0 | 0 | 0 | 0.022329 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.058824 | false | 0 | 0.235294 | 0 | 0.294118 | 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 |
5060947e9e43e6e6d96dae3339b548b0e6d93fd4 | 2,440 | py | Python | tools/merger/merger.py | polaretto/topocity | a0b2f2f0f2d109bc7ffdf5b1f6b9367cf7b11fbe | [
"Unlicense"
] | 3 | 2019-09-18T12:17:37.000Z | 2020-11-26T13:42:07.000Z | tools/merger/merger.py | ennioVisco/topocity | a0b2f2f0f2d109bc7ffdf5b1f6b9367cf7b11fbe | [
"Unlicense"
] | null | null | null | tools/merger/merger.py | ennioVisco/topocity | a0b2f2f0f2d109bc7ffdf5b1f6b9367cf7b11fbe | [
"Unlicense"
] | null | null | null | # Merges the citygml files in /files, by stripping the first lines and the last one
# which usually correspond to the <CityModel> data
from storage import list_dir
DIR_PATH = "files/"
OUTPUT_FILE = "merger.gml"
FILE_START_OFFSET = 8
FILE_END_OFFSET = -1
def main():
with open(DIR_PATH + OUTPUT_FILE, "w") as m:... | 46.923077 | 1,169 | 0.651639 | 360 | 2,440 | 4.341667 | 0.377778 | 0.085093 | 0.116443 | 0.141395 | 0.222649 | 0.028151 | 0 | 0 | 0 | 0 | 0 | 0.051566 | 0.14959 | 2,440 | 51 | 1,170 | 47.843137 | 0.701687 | 0.053279 | 0 | 0 | 0 | 0 | 0.261378 | 0.043346 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.03125 | 0 | 0.125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ac9792b4160c2c5b3b9ba45c204d6f8c4db8787c | 803 | py | Python | tests/core/test_atoms.py | RullDeef/MarkovAlgorifms | 2f13c99bb0084651d019edb4994f1048e974b1ef | [
"MIT"
] | 2 | 2021-03-20T11:52:31.000Z | 2021-03-21T22:34:46.000Z | tests/core/test_atoms.py | RullDeef/MarkovAlgorifms | 2f13c99bb0084651d019edb4994f1048e974b1ef | [
"MIT"
] | null | null | null | tests/core/test_atoms.py | RullDeef/MarkovAlgorifms | 2f13c99bb0084651d019edb4994f1048e974b1ef | [
"MIT"
] | null | null | null | from matalg.core.atoms import Symbol, MetaSymbol, \
RegularSymbol, SymbolSequence, Context
def test_Symbol():
pass
def test_MetaSymbol():
pass
def test_RegularSymbol():
pass
def test_SymbolSequence():
s = SymbolSequence()
assert len(s) == 0
sym1 = Symbol("a")
sym2 = RegularSymbol("b"... | 21.702703 | 53 | 0.633873 | 112 | 803 | 4.428571 | 0.375 | 0.070565 | 0.066532 | 0.084677 | 0.298387 | 0.298387 | 0.201613 | 0.201613 | 0.201613 | 0.201613 | 0 | 0.019417 | 0.230386 | 803 | 36 | 54 | 22.305556 | 0.783172 | 0 | 0 | 0.178571 | 0 | 0 | 0.01868 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 1 | 0.178571 | false | 0.107143 | 0.035714 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ac99bcd3c1935977b711622cb88293dcd2bdcc13 | 1,252 | py | Python | tests/test_shared_functional_groups.py | Steven-N-Hart/dicom_wsi | 254fc404193594e9b321fdefa2aeefb56a42e99a | [
"MIT"
] | 6 | 2020-12-23T01:20:38.000Z | 2022-01-13T09:06:20.000Z | tests/test_shared_functional_groups.py | Steven-N-Hart/dicom_wsi | 254fc404193594e9b321fdefa2aeefb56a42e99a | [
"MIT"
] | 5 | 2020-01-10T21:24:52.000Z | 2020-08-18T20:04:39.000Z | tests/test_shared_functional_groups.py | Steven-N-Hart/dicom_wsi | 254fc404193594e9b321fdefa2aeefb56a42e99a | [
"MIT"
] | 6 | 2019-11-25T16:03:58.000Z | 2021-09-25T11:42:16.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `dicom_wsi` package."""
import datetime
import os
from yaml import load, BaseLoader
from ..dicom_wsi.base_attributes import build_base
from ..dicom_wsi.parse_wsi import get_wsi
from ..dicom_wsi.sequence_attributes import build_sequences
from ..dicom_wsi.shar... | 34.777778 | 97 | 0.702077 | 173 | 1,252 | 4.82659 | 0.398844 | 0.075449 | 0.101796 | 0.047904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056785 | 0.170128 | 1,252 | 35 | 98 | 35.771429 | 0.746872 | 0.074281 | 0 | 0 | 0 | 0.086957 | 0.139878 | 0.068636 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.043478 | false | 0 | 0.304348 | 0 | 0.347826 | 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 |
aca0c817ce3fe94a628f059b2210f7b22cbd2980 | 352 | py | Python | server/controllers/login_controller.py | c1c4/chatRoom-Backend | 44dde9992c1f92b3b203bb6d21111da4e9b60b08 | [
"MIT"
] | null | null | null | server/controllers/login_controller.py | c1c4/chatRoom-Backend | 44dde9992c1f92b3b203bb6d21111da4e9b60b08 | [
"MIT"
] | null | null | null | server/controllers/login_controller.py | c1c4/chatRoom-Backend | 44dde9992c1f92b3b203bb6d21111da4e9b60b08 | [
"MIT"
] | null | null | null | from flask import request, Blueprint
from server.service.login_service import validate_login
login_blueprint = Blueprint('login_urls', __name__)
@login_blueprint.route('/login', methods=['GET'])
def get_login():
user_name = request.args.get('userName')
password = request.args.get('password')
return vali... | 27.076923 | 55 | 0.761364 | 45 | 352 | 5.666667 | 0.444444 | 0.101961 | 0.101961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119318 | 352 | 12 | 56 | 29.333333 | 0.822581 | 0 | 0 | 0 | 0 | 0 | 0.099432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.25 | 0.25 | 0 | 0.5 | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
acab3aeef4decc8e9b903a9005b78c0c973fe035 | 876 | py | Python | keras/backend/common.py | Jallet/keras-jl-ac-mean | 2bbc1596192fb8c3aefc4a8126482a5283574a59 | [
"MIT"
] | 2 | 2017-09-13T21:17:54.000Z | 2017-09-26T02:38:00.000Z | keras/backend/common.py | Jallet/keras-jl-ac-mean | 2bbc1596192fb8c3aefc4a8126482a5283574a59 | [
"MIT"
] | null | null | null | keras/backend/common.py | Jallet/keras-jl-ac-mean | 2bbc1596192fb8c3aefc4a8126482a5283574a59 | [
"MIT"
] | 1 | 2019-11-11T10:51:10.000Z | 2019-11-11T10:51:10.000Z | import numpy as np
# the type of float to use throughout the session.
_FLOATX = 'float32'
_EPSILON = 10e-8
_UID_PREFIXES = {}
def epsilon():
return _EPSILON
def set_epsilon(e):
global _EPSILON
_EPSILON = e
def floatx():
'''Returns the default float type, as a string
(e.g. 'float16', 'float32'... | 19.043478 | 62 | 0.634703 | 116 | 876 | 4.586207 | 0.405172 | 0.103383 | 0.095865 | 0.067669 | 0.090226 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030581 | 0.253425 | 876 | 45 | 63 | 19.466667 | 0.782875 | 0.191781 | 0 | 0 | 0 | 0 | 0.071221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.038462 | 0.038462 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
acb183c5663e4b907a78807e0f7d49e94ca72e58 | 658 | py | Python | d2go/runner/training_hooks.py | tsubauaaa/d2go | 9f746159ebf78ce79f644c405ca8695bc29d1075 | [
"Apache-2.0"
] | null | null | null | d2go/runner/training_hooks.py | tsubauaaa/d2go | 9f746159ebf78ce79f644c405ca8695bc29d1075 | [
"Apache-2.0"
] | null | null | null | d2go/runner/training_hooks.py | tsubauaaa/d2go | 9f746159ebf78ce79f644c405ca8695bc29d1075 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import logging
from typing import List
from detectron2.engine import HookBase
from detectron2.utils.registry import Registry
logger = logging.getLogger(__name__)
# List of functions to add hooks for trainer, all functions i... | 31.333333 | 80 | 0.765957 | 93 | 658 | 5.258065 | 0.494624 | 0.09816 | 0.122699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005376 | 0.151976 | 658 | 20 | 81 | 32.9 | 0.870968 | 0.349544 | 0 | 0 | 0 | 0 | 0.134752 | 0.052009 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
acb629b7debd9fe5183f98be839ba4659e8030ea | 1,635 | py | Python | Proyecto/compilation/errors.py | leynier/IA-Sim-Com | f6e99bb1aa4b02d5d558dc76a9bf802c3761e428 | [
"MIT"
] | 2 | 2021-11-20T23:35:20.000Z | 2021-12-10T17:45:56.000Z | Proyecto/compilation/errors.py | arnel-sanchez/IA-Sim-Com | 22023342f20202b260caa759af9cce71d803663e | [
"MIT"
] | 1 | 2022-02-11T07:26:54.000Z | 2022-02-11T07:26:54.000Z | Proyecto/compilation/errors.py | leynier/IA-Sim-Com | f6e99bb1aa4b02d5d558dc76a9bf802c3761e428 | [
"MIT"
] | 1 | 2022-02-11T07:24:50.000Z | 2022-02-11T07:24:50.000Z |
class Error:
def __init__(self, error_type: str, details: str, file: str, line: int, column: int):
self.error_type = error_type
self.details = details
self.file = file
self.line = line
self.column = column
def __repr__(self):
return "{} ERROR: '{}', fi... | 36.333333 | 110 | 0.62263 | 186 | 1,635 | 5.150538 | 0.166667 | 0.091858 | 0.087683 | 0.11691 | 0.584551 | 0.470772 | 0.397704 | 0.397704 | 0.363257 | 0.363257 | 0 | 0 | 0.250153 | 1,635 | 45 | 111 | 36.333333 | 0.781403 | 0.010398 | 0 | 0.214286 | 0 | 0 | 0.085823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.035714 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
acb9e336d36c91c55cc078b7122995cb80ea2f12 | 1,492 | py | Python | backend/tests/fixtures.py | matanel-oren/Zulu | dbc9d30020414d261f112ee9d77285013dd3e581 | [
"MIT"
] | 3 | 2021-05-23T12:28:15.000Z | 2021-07-20T15:04:51.000Z | backend/tests/fixtures.py | matanel-oren/Zulu | dbc9d30020414d261f112ee9d77285013dd3e581 | [
"MIT"
] | 30 | 2020-06-02T09:27:40.000Z | 2020-07-09T11:03:47.000Z | backend/tests/fixtures.py | matanel-oren/Zulu | dbc9d30020414d261f112ee9d77285013dd3e581 | [
"MIT"
] | 13 | 2020-05-14T00:09:15.000Z | 2021-02-15T20:49:15.000Z | import pytest
from fastapi import status
from fastapi.testclient import TestClient
from zulu.server import app
@pytest.fixture
def client():
yield TestClient(app)
@pytest.fixture
def user_data():
return dict(username='zulu',
password='uluz',
email='momo@zulu.com',
... | 26.175439 | 79 | 0.642761 | 175 | 1,492 | 5.32 | 0.354286 | 0.068743 | 0.068743 | 0.070892 | 0.291085 | 0.184748 | 0.107411 | 0.107411 | 0.107411 | 0 | 0 | 0.002586 | 0.22252 | 1,492 | 56 | 80 | 26.642857 | 0.8 | 0 | 0 | 0.232558 | 0 | 0 | 0.205764 | 0.052949 | 0 | 0 | 0 | 0 | 0.069767 | 1 | 0.093023 | false | 0.069767 | 0.093023 | 0.023256 | 0.232558 | 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 |
acc0305a6c5233b711085eaffa8ec575324383fa | 536 | py | Python | OPMS_v3-dev3.1/apps/host_management/migrations/0009_auto_20180712_1030.py | litiian/asyncstudy | a59119f189ca96fdd7f64b0b3212207572165dce | [
"Apache-2.0"
] | null | null | null | OPMS_v3-dev3.1/apps/host_management/migrations/0009_auto_20180712_1030.py | litiian/asyncstudy | a59119f189ca96fdd7f64b0b3212207572165dce | [
"Apache-2.0"
] | null | null | null | OPMS_v3-dev3.1/apps/host_management/migrations/0009_auto_20180712_1030.py | litiian/asyncstudy | a59119f189ca96fdd7f64b0b3212207572165dce | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.6 on 2018-07-12 10:30
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('host_management', '0008_auto_20180712_1028'),
]
operations = [
migrations.AlterField(
model_nam... | 26.8 | 155 | 0.664179 | 63 | 536 | 5.492063 | 0.650794 | 0.069364 | 0.080925 | 0.127168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07381 | 0.216418 | 536 | 19 | 156 | 28.210526 | 0.75 | 0.083955 | 0 | 0 | 1 | 0 | 0.177914 | 0.096115 | 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 |
acc1001ae7b04614b36bdadc3acb3d663216f90f | 248 | py | Python | setup.py | DHI-GRAS/satfile-utils | 402b345907599c8e4493f161ba457bb350d12ea4 | [
"MIT"
] | null | null | null | setup.py | DHI-GRAS/satfile-utils | 402b345907599c8e4493f161ba457bb350d12ea4 | [
"MIT"
] | null | null | null | setup.py | DHI-GRAS/satfile-utils | 402b345907599c8e4493f161ba457bb350d12ea4 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='satfile_utils',
version='0.5.2',
description='Satellite Data File Utilities',
author='Jonas Solvsteen',
author_email='josl@dhi-gras.com',
packages=find_packages(),
)
| 22.545455 | 48 | 0.701613 | 31 | 248 | 5.483871 | 0.83871 | 0.141176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014563 | 0.169355 | 248 | 10 | 49 | 24.8 | 0.81068 | 0 | 0 | 0 | 0 | 0 | 0.318548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
acc3a44e814224614628e6746f2de67ac8556473 | 4,644 | py | Python | dynamicstorm/filtering.py | htlab-opu/dynamicstorm | d51a279594984df4f8ed9bd6b72c98506d279805 | [
"BSD-2-Clause"
] | null | null | null | dynamicstorm/filtering.py | htlab-opu/dynamicstorm | d51a279594984df4f8ed9bd6b72c98506d279805 | [
"BSD-2-Clause"
] | null | null | null | dynamicstorm/filtering.py | htlab-opu/dynamicstorm | d51a279594984df4f8ed9bd6b72c98506d279805 | [
"BSD-2-Clause"
] | null | null | null | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.ticker as tick
from statistics import mean
from tqdm import tqdm
import multiprocessing as mp
from . import model as dymod
class Filter:
"""誤ベクトル数の確認,誤ベクトル数によるフィルタリング処理"""
@classmethod
def get_incorrect_vector_examp... | 38.380165 | 93 | 0.672265 | 564 | 4,644 | 5.223404 | 0.20922 | 0.224033 | 0.103191 | 0.039036 | 0.532587 | 0.493551 | 0.479973 | 0.479973 | 0.448744 | 0.448744 | 0 | 0.005884 | 0.231481 | 4,644 | 120 | 94 | 38.7 | 0.819557 | 0.053833 | 0 | 0.442105 | 0 | 0 | 0.039982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073684 | false | 0.021053 | 0.084211 | 0 | 0.221053 | 0.021053 | 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 |
acc3d84de8b12ad6a101c72d2c032cda892cddb9 | 643 | py | Python | bottomline/blweb/migrations/0002_vehiclemodel.py | mcm219/BottomLine | db82eef403c79bffa3864c4db6bc336632abaca5 | [
"MIT"
] | null | null | null | bottomline/blweb/migrations/0002_vehiclemodel.py | mcm219/BottomLine | db82eef403c79bffa3864c4db6bc336632abaca5 | [
"MIT"
] | 1 | 2021-06-14T02:20:40.000Z | 2021-06-14T02:20:40.000Z | bottomline/blweb/migrations/0002_vehiclemodel.py | mcm219/BottomLine | db82eef403c79bffa3864c4db6bc336632abaca5 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.2 on 2021-06-04 04:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blweb', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='VehicleModel',
fields=[
('id... | 29.227273 | 117 | 0.59409 | 71 | 643 | 5.28169 | 0.690141 | 0.021333 | 0.058667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047414 | 0.278383 | 643 | 21 | 118 | 30.619048 | 0.760776 | 0.069984 | 0 | 0 | 1 | 0 | 0.166107 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 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 |
acc69434a75859902d4f4a7c39074ce76c70d3c9 | 696 | py | Python | microgridRLsimulator/utils.py | omardrwch/microgridRLsimulator | 700f8a757edaef04ec85334c15641f698240b36e | [
"BSD-2-Clause"
] | 1 | 2019-02-05T17:15:41.000Z | 2019-02-05T17:15:41.000Z | microgridRLsimulator/utils.py | omardrwch/microgridRLsimulator | 700f8a757edaef04ec85334c15641f698240b36e | [
"BSD-2-Clause"
] | null | null | null | microgridRLsimulator/utils.py | omardrwch/microgridRLsimulator | 700f8a757edaef04ec85334c15641f698240b36e | [
"BSD-2-Clause"
] | 1 | 2021-03-09T14:22:51.000Z | 2021-03-09T14:22:51.000Z | from datetime import timedelta
def datetime_range(start, end, delta):
current = start
if not isinstance(delta, timedelta):
delta = timedelta(**delta)
while current < end:
yield current
current += delta
TOL_IS_ZERO = 2.5 * 2e-2
def negative(value, tol=TOL_IS_ZERO):
"""
C... | 20.470588 | 61 | 0.635057 | 92 | 696 | 4.728261 | 0.358696 | 0.073563 | 0.062069 | 0.05977 | 0.524138 | 0.524138 | 0.524138 | 0.524138 | 0.524138 | 0.524138 | 0 | 0.007874 | 0.270115 | 696 | 33 | 62 | 21.090909 | 0.848425 | 0.340517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
acc76af25018dc4266e7dbd942c01208eda26836 | 8,365 | py | Python | packages/text_clustering/viz.py | cinai/teacher_discourse_playground | 7d1ab040dfaf7ff649b3a0f104eb8e31c89e3ecb | [
"MIT"
] | null | null | null | packages/text_clustering/viz.py | cinai/teacher_discourse_playground | 7d1ab040dfaf7ff649b3a0f104eb8e31c89e3ecb | [
"MIT"
] | null | null | null | packages/text_clustering/viz.py | cinai/teacher_discourse_playground | 7d1ab040dfaf7ff649b3a0f104eb8e31c89e3ecb | [
"MIT"
] | null | null | null | import mpld3
from mpld3 import plugins
from mpld3.utils import get_id
import matplotlib.patches as mpatches
import matplotlib.pylab as pylab
import matplotlib.pyplot as plt
import text_preprocessing as tp
import os
import numpy as np
import pandas as pd
from scipy import stats
from text_preprocessing import *
import ho... | 38.726852 | 215 | 0.741184 | 1,332 | 8,365 | 4.373123 | 0.141892 | 0.042403 | 0.058712 | 0.017511 | 0.600172 | 0.561717 | 0.547983 | 0.435536 | 0.397597 | 0.397597 | 0 | 0.041868 | 0.109145 | 8,365 | 216 | 216 | 38.726852 | 0.739801 | 0.010879 | 0 | 0.408163 | 0 | 0 | 0.096614 | 0.016687 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | 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 |
acce806aa9d91b54c9c8744c718c782d3e794ba4 | 11,599 | py | Python | portia_server/portia_dashboard/views.py | rmdes/portia-dashboard | 97e698c7232c15eff47d20fd3529251bbd284226 | [
"BSD-3-Clause"
] | 223 | 2018-01-22T07:43:58.000Z | 2022-03-25T12:52:30.000Z | portia_server/portia_dashboard/views.py | rmdes/portia-dashboard | 97e698c7232c15eff47d20fd3529251bbd284226 | [
"BSD-3-Clause"
] | 9 | 2018-03-17T15:16:26.000Z | 2019-11-11T09:35:04.000Z | portia_server/portia_dashboard/views.py | rmdes/portia-dashboard | 97e698c7232c15eff47d20fd3529251bbd284226 | [
"BSD-3-Clause"
] | 76 | 2018-01-22T04:20:00.000Z | 2021-11-13T09:53:26.000Z | from django.conf import settings
from portia_api.jsonapi import JSONResponse
from portia_api.jsonapi.renderers import JSONRenderer
from .models import (Job, Log, Schedule,JobItem)
import time, datetime
import requests
from storage import (get_storage_class,create_project_storage)
from portia_orm.models import Projec... | 30.766578 | 164 | 0.566773 | 1,369 | 11,599 | 4.596786 | 0.134405 | 0.040044 | 0.011441 | 0.013984 | 0.438583 | 0.337836 | 0.249166 | 0.213571 | 0.189735 | 0.165263 | 0 | 0.010055 | 0.314079 | 11,599 | 376 | 165 | 30.848404 | 0.78092 | 0.023019 | 0 | 0.315972 | 0 | 0.006944 | 0.087064 | 0.019249 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003472 | 0.045139 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.