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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
728af767b2fdedc1c10a9b3b756c163921f4d4e2 | 585 | py | Python | migrations/versions/064__Ecrf__remove_non_completion_reason.py | LCBRU/identity | e8bec964aca9595091bf891bbe41632ce54afd3f | [
"MIT"
] | null | null | null | migrations/versions/064__Ecrf__remove_non_completion_reason.py | LCBRU/identity | e8bec964aca9595091bf891bbe41632ce54afd3f | [
"MIT"
] | null | null | null | migrations/versions/064__Ecrf__remove_non_completion_reason.py | LCBRU/identity | e8bec964aca9595091bf891bbe41632ce54afd3f | [
"MIT"
] | null | null | null | from sqlalchemy import (
MetaData,
Table,
Column,
Integer,
ForeignKey,
DateTime,
NVARCHAR,
)
from sqlalchemy.schema import ForeignKeyConstraint
meta = MetaData()
def upgrade(migrate_engine):
meta.bind = migrate_engine
t = Table("ecrf_detail", meta, autoload=True)
t.c.non_comp... | 20.892857 | 80 | 0.724786 | 70 | 585 | 5.8 | 0.442857 | 0.128079 | 0.187192 | 0.103448 | 0.46798 | 0.325123 | 0.325123 | 0.325123 | 0.325123 | 0.325123 | 0 | 0 | 0.184615 | 585 | 27 | 81 | 21.666667 | 0.851153 | 0 | 0 | 0.2 | 0 | 0 | 0.073504 | 0.035897 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
728b24ed8bc2d9c4970dd206c47a472850e4a333 | 608 | py | Python | proc_scraper/proc_stack.py | EwanC/pyProc | 5fc781852dcdf55c3a807e97692224a28c0913f6 | [
"MIT"
] | null | null | null | proc_scraper/proc_stack.py | EwanC/pyProc | 5fc781852dcdf55c3a807e97692224a28c0913f6 | [
"MIT"
] | null | null | null | proc_scraper/proc_stack.py | EwanC/pyProc | 5fc781852dcdf55c3a807e97692224a28c0913f6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from .proc_base import ProcBase
class ProcStack(ProcBase):
'''Object represents the /proc/[pid]/stack file.'''
def __init__(self, pid):
'''
Read file by calling base class constructor
which populates self.content. Since this
file is already ASCII printa... | 25.333333 | 55 | 0.608553 | 72 | 608 | 5.013889 | 0.666667 | 0.091413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004535 | 0.274671 | 608 | 23 | 56 | 26.434783 | 0.814059 | 0.449013 | 0 | 0 | 0 | 0 | 0.054348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7292f0267a3137fa42a79a11ae2086b03cc7ed6d | 1,192 | py | Python | test/test_coffee_calc.py | StandardAaron/BriXtraction | 509d19575241e58d0f21e06067ed1bd614d96208 | [
"MIT"
] | null | null | null | test/test_coffee_calc.py | StandardAaron/BriXtraction | 509d19575241e58d0f21e06067ed1bd614d96208 | [
"MIT"
] | 3 | 2021-06-20T19:43:58.000Z | 2021-06-20T20:01:18.000Z | test/test_coffee_calc.py | StandardAaron/BriXtraction | 509d19575241e58d0f21e06067ed1bd614d96208 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import unittest
from coffee_calc import CoffeeCalc
class TestBrixConverter(unittest.TestCase):
"""
Tests all the functions in our conversion class, which backs the API
responses in our Main app.
"""
def setUp(self):
self.cc = CoffeeCalc()
def test_tds_takes_float_or_i... | 33.111111 | 89 | 0.665268 | 179 | 1,192 | 4.234637 | 0.497207 | 0.055409 | 0.07124 | 0.047493 | 0.126649 | 0.094987 | 0.094987 | 0 | 0 | 0 | 0 | 0.054384 | 0.244128 | 1,192 | 35 | 90 | 34.057143 | 0.786903 | 0.261745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
729491dcf465e2a9a961d414d5d62bad0dffefd0 | 1,944 | py | Python | api_tests/nodes/views/test_node_institutions_list.py | pattisdr/osf.io | 2a8bdf358bb67f0ad5a9e7bb7ac9a329b98e8825 | [
"Apache-2.0"
] | 1 | 2019-05-08T02:30:38.000Z | 2019-05-08T02:30:38.000Z | api_tests/nodes/views/test_node_institutions_list.py | prisnormando/osf.io | 78dbbd3b1104a40480754b3172de03e230534523 | [
"Apache-2.0"
] | 17 | 2016-01-27T03:26:00.000Z | 2019-10-30T13:49:15.000Z | api_tests/nodes/views/test_node_institutions_list.py | prisnormando/osf.io | 78dbbd3b1104a40480754b3172de03e230534523 | [
"Apache-2.0"
] | 1 | 2015-08-28T20:00:52.000Z | 2015-08-28T20:00:52.000Z | import pytest
from osf_tests.factories import InstitutionFactory, NodeFactory, AuthUserFactory
from api.base.settings.defaults import API_BASE
@pytest.fixture()
def user():
return AuthUserFactory()
@pytest.fixture()
def user_two():
return AuthUserFactory()
@pytest.mark.django_db
class TestNodeInstitutionLi... | 28.173913 | 111 | 0.664609 | 241 | 1,944 | 5.06639 | 0.278008 | 0.080262 | 0.091728 | 0.06552 | 0.280917 | 0.190008 | 0.113022 | 0 | 0 | 0 | 0 | 0.010007 | 0.228909 | 1,944 | 68 | 112 | 28.588235 | 0.804536 | 0.036523 | 0 | 0.3 | 0 | 0 | 0.028923 | 0.013926 | 0 | 0 | 0 | 0 | 0.12 | 1 | 0.18 | false | 0 | 0.06 | 0.14 | 0.42 | 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 |
72986e281298f9bcfddf1fc2a09196c046f06fc8 | 667 | py | Python | lokahi/catalog/migrations/0024_file.py | etkim97/cs3240-f17-team22 | e23c130b36884f0f02bddec73d4655f2f53201b8 | [
"MIT"
] | null | null | null | lokahi/catalog/migrations/0024_file.py | etkim97/cs3240-f17-team22 | e23c130b36884f0f02bddec73d4655f2f53201b8 | [
"MIT"
] | null | null | null | lokahi/catalog/migrations/0024_file.py | etkim97/cs3240-f17-team22 | e23c130b36884f0f02bddec73d4655f2f53201b8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-30 00:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('catalog', '0023_user_accepted_manager_privileges'),
]
operations = [
migrat... | 27.791667 | 114 | 0.596702 | 70 | 667 | 5.485714 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04908 | 0.266867 | 667 | 23 | 115 | 29 | 0.736196 | 0.101949 | 0 | 0 | 1 | 0 | 0.110738 | 0.062081 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.3125 | 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 |
729d1de34100bc7232442a3dae5e916595a404e2 | 2,608 | py | Python | rayvision_api/operators/project_settings.py | loonghao/rayvision_api | bc786def2d86b5e838bee91c69a5687dc1a4afaa | [
"Apache-2.0"
] | null | null | null | rayvision_api/operators/project_settings.py | loonghao/rayvision_api | bc786def2d86b5e838bee91c69a5687dc1a4afaa | [
"Apache-2.0"
] | null | null | null | rayvision_api/operators/project_settings.py | loonghao/rayvision_api | bc786def2d86b5e838bee91c69a5687dc1a4afaa | [
"Apache-2.0"
] | null | null | null | """Provide a class for operating project."""
# Import built-in modules
from pprint import pformat
try:
from functools import lru_cache
except ImportError:
from backports.functools_lru_cache import lru_cache
class ProjectSettings(object):
"""The operator of the Project."""
def __init__(self, connect... | 27.166667 | 74 | 0.510353 | 241 | 2,608 | 5.319502 | 0.356846 | 0.085803 | 0.035101 | 0.044462 | 0.23791 | 0.23791 | 0.056162 | 0.056162 | 0 | 0 | 0 | 0.006402 | 0.401074 | 2,608 | 95 | 75 | 27.452632 | 0.814341 | 0.360813 | 0 | 0 | 0 | 0 | 0.059723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.114286 | 0.028571 | 0.514286 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
729df0bba8243f211b6178a112be81345ad7a5f5 | 3,003 | py | Python | accounts/models.py | delitamakanda/cautious-journey | a1d58e6ae649fc1ba84dc22ce7be30b4c1712b46 | [
"MIT"
] | 3 | 2018-06-24T16:53:47.000Z | 2021-04-02T03:11:24.000Z | accounts/models.py | delitamakanda/cautious-journey | a1d58e6ae649fc1ba84dc22ce7be30b4c1712b46 | [
"MIT"
] | 8 | 2019-03-29T22:58:58.000Z | 2022-03-03T21:59:48.000Z | accounts/models.py | delitamakanda/cautious-journey | a1d58e6ae649fc1ba84dc22ce7be30b4c1712b46 | [
"MIT"
] | null | null | null | from PIL import Image
from django.db import models
from django.conf import settings
from django.contrib.auth.models import User
from fanfics.models import Fanfic
class AccountProfile(models.Model):
user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
date_of_birth = models.DateFiel... | 34.125 | 127 | 0.681652 | 365 | 3,003 | 5.394521 | 0.284932 | 0.044693 | 0.049771 | 0.074657 | 0.297105 | 0.225495 | 0.19096 | 0.15744 | 0.114779 | 0.114779 | 0 | 0.007481 | 0.198801 | 3,003 | 87 | 128 | 34.517241 | 0.810889 | 0.00999 | 0 | 0.190476 | 0 | 0 | 0.121171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079365 | false | 0 | 0.079365 | 0.063492 | 0.587302 | 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 |
729e924f74ba4b7769341b25401dd2268786f54a | 1,303 | py | Python | reports/evan/prony_2019-05-31/prony.py | UIUC-SINE/uiuc-sine.github.io | 4071cf77f7d738278188ec28710e6b7041f2c22e | [
"CC0-1.0"
] | null | null | null | reports/evan/prony_2019-05-31/prony.py | UIUC-SINE/uiuc-sine.github.io | 4071cf77f7d738278188ec28710e6b7041f2c22e | [
"CC0-1.0"
] | null | null | null | reports/evan/prony_2019-05-31/prony.py | UIUC-SINE/uiuc-sine.github.io | 4071cf77f7d738278188ec28710e6b7041f2c22e | [
"CC0-1.0"
] | null | null | null | # Evan Widloski - 2019-04-18
# Subpixel registration test with various levels of poisson noise, circular shift
# based on https://scikit-image.org/docs/dev/auto_examples/transform/plot_register_translation.html
import numpy as np
import matplotlib.pyplot as plt
from skimage import data
from skimage.feature import reg... | 27.145833 | 99 | 0.762087 | 175 | 1,303 | 5.565714 | 0.531429 | 0.035934 | 0.036961 | 0.034908 | 0.053388 | 0.053388 | 0.053388 | 0 | 0 | 0 | 0 | 0.02307 | 0.135073 | 1,303 | 47 | 100 | 27.723404 | 0.841171 | 0.264006 | 0 | 0.1875 | 0 | 0 | 0.004206 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.34375 | 0 | 0.34375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
72a3326632666c4de3e4a84daa34a2af36703d4d | 570 | py | Python | planet_hop/physics_applied.py | Gaming32/PlanetHop | 22f5437095c0f80a37ffddad56795c1258174542 | [
"MIT"
] | null | null | null | planet_hop/physics_applied.py | Gaming32/PlanetHop | 22f5437095c0f80a37ffddad56795c1258174542 | [
"MIT"
] | null | null | null | planet_hop/physics_applied.py | Gaming32/PlanetHop | 22f5437095c0f80a37ffddad56795c1258174542 | [
"MIT"
] | null | null | null | from pygravity.twod import GravityContainer, Vector2
from pygravity.twod.util import Body
PHYSICS_TICK_RATE: float = 50
physics_tick_time = 1 / PHYSICS_TICK_RATE
class PhysicsApplied(Body):
passed: float
def __init__(self, container: GravityContainer, positon: Vector2, mass: float):
super().__init__... | 28.5 | 83 | 0.7 | 70 | 570 | 5.414286 | 0.428571 | 0.174142 | 0.158311 | 0.110818 | 0.131926 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013453 | 0.217544 | 570 | 19 | 84 | 30 | 0.836323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.357143 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
72a65e241044adbf319e8c1d9cfae9b2f207c2c1 | 2,337 | py | Python | colour/volume/tests/test_pointer_gamut.py | rift-labs-developer/colour | 15112dbe824aab0f21447e0db4a046a28a06f43a | [
"BSD-3-Clause"
] | 1,380 | 2015-01-10T12:30:33.000Z | 2022-03-30T10:19:57.000Z | colour/volume/tests/test_pointer_gamut.py | rift-labs-developer/colour | 15112dbe824aab0f21447e0db4a046a28a06f43a | [
"BSD-3-Clause"
] | 638 | 2015-01-02T10:49:05.000Z | 2022-03-29T10:16:22.000Z | colour/volume/tests/test_pointer_gamut.py | rift-labs-developer/colour | 15112dbe824aab0f21447e0db4a046a28a06f43a | [
"BSD-3-Clause"
] | 250 | 2015-01-21T15:27:19.000Z | 2022-03-30T10:23:58.000Z | # -*- coding: utf-8 -*-
"""
Defines the unit tests for the :mod:`colour.volume.pointer_gamut` module.
"""
import numpy as np
import unittest
from itertools import permutations
from colour.volume import is_within_pointer_gamut
from colour.utilities import ignore_numpy_errors
__author__ = 'Colour Developers'
__copyrig... | 29.582278 | 78 | 0.660676 | 309 | 2,337 | 4.66343 | 0.317152 | 0.174879 | 0.166551 | 0.222068 | 0.445524 | 0.430951 | 0.430951 | 0.430951 | 0.405968 | 0.287994 | 0 | 0.055131 | 0.216089 | 2,337 | 78 | 79 | 29.961538 | 0.731441 | 0.201113 | 0 | 0.153846 | 0 | 0 | 0.124213 | 0.034345 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.076923 | false | 0 | 0.128205 | 0 | 0.230769 | 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 |
72a7de2a3cb4fb39b0cc85f67448ee442f3ae877 | 2,517 | py | Python | src/integration-tests/expecteds/py/complex.py | shanejonas/transpiler | ed293861635c23c004ef8276196e461ca5b940db | [
"Apache-2.0"
] | null | null | null | src/integration-tests/expecteds/py/complex.py | shanejonas/transpiler | ed293861635c23c004ef8276196e461ca5b940db | [
"Apache-2.0"
] | null | null | null | src/integration-tests/expecteds/py/complex.py | shanejonas/transpiler | ed293861635c23c004ef8276196e461ca5b940db | [
"Apache-2.0"
] | null | null | null | from typing import TypedDict
from typing import Optional
from typing import NewType
from enum import Enum
from typing import List
from typing import Any
from typing import Tuple
from typing import Mapping
from typing import Union
IsMetal = NewType("IsMetal", bool)
"""Fill amounts
"""
FillAmount = NewType("FillAmount",... | 25.948454 | 86 | 0.762416 | 238 | 2,517 | 8.063025 | 0.323529 | 0.041688 | 0.066701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001835 | 0.13389 | 2,517 | 96 | 87 | 26.21875 | 0.87844 | 0 | 0 | 0 | 0 | 0 | 0.122498 | 0.009207 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.140625 | 0 | 0.59375 | 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 |
72a7ef13d791d904a1338ba37a62dea50d28f9af | 332 | py | Python | 02_Filter/main.py | CrispenGari/days-of-python | 321f6da04aa7fcd0ef569fb7702aa719c7bcd139 | [
"MIT"
] | 3 | 2021-05-18T11:26:15.000Z | 2021-12-21T21:12:34.000Z | 02_Filter/main.py | CrispenGari/days-of-python | 321f6da04aa7fcd0ef569fb7702aa719c7bcd139 | [
"MIT"
] | null | null | null | 02_Filter/main.py | CrispenGari/days-of-python | 321f6da04aa7fcd0ef569fb7702aa719c7bcd139 | [
"MIT"
] | null | null | null |
my_set = {i for i in range(10)}
names = ["name 1", "name 2", "name 3", "name 4", "name 5"]
people = [{"name": 1}, {"name": 2}, {"name": 3}, {"name": 4}, {"name": 5}, {"name": 6}]
def even(i):
return int(i.split(' ')[-1]) % 2 == 0
filtered = filter(even, names) ## returns an iterable
for person in filtered:
pr... | 30.181818 | 87 | 0.548193 | 55 | 332 | 3.290909 | 0.527273 | 0.055249 | 0.099448 | 0.110497 | 0.276243 | 0.276243 | 0.276243 | 0.276243 | 0.276243 | 0.276243 | 0 | 0.059925 | 0.195783 | 332 | 10 | 88 | 33.2 | 0.617978 | 0.057229 | 0 | 0 | 0 | 0 | 0.177994 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0.125 | 0.25 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
72ac30be5aabaa4c85394fab4270ab2534cd97ca | 6,895 | py | Python | sources/musicdata_spop.py | jelinj8/pydPiper | afe742275cdbf52988a46c9e1ee9aab0d369a8c8 | [
"MIT"
] | 72 | 2017-03-13T11:01:01.000Z | 2021-11-29T20:53:53.000Z | sources/musicdata_spop.py | jelinj8/pydPiper | afe742275cdbf52988a46c9e1ee9aab0d369a8c8 | [
"MIT"
] | 126 | 2017-03-13T16:06:59.000Z | 2022-03-27T14:14:49.000Z | sources/musicdata_spop.py | jelinj8/pydPiper | afe742275cdbf52988a46c9e1ee9aab0d369a8c8 | [
"MIT"
] | 41 | 2017-10-11T18:37:50.000Z | 2021-06-18T17:02:45.000Z | #!/usr/bin/python
# coding: UTF-8
# musicdata service to read from SPOP
# Written by: Ron Ritchey
from __future__ import unicode_literals
import threading, logging, Queue, time, sys, telnetlib, json, getopt
import musicdata
class musicdata_spop(musicdata.musicdata):
def __init__(self, q, server=u'localhost', port... | 29.592275 | 151 | 0.680348 | 1,027 | 6,895 | 4.511198 | 0.238559 | 0.10382 | 0.108785 | 0.028491 | 0.316641 | 0.210015 | 0.172674 | 0.078567 | 0.063458 | 0.063458 | 0 | 0.009339 | 0.17694 | 6,895 | 232 | 152 | 29.719828 | 0.807048 | 0.119072 | 0 | 0.284848 | 0 | 0 | 0.191475 | 0.006113 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.030303 | 0.024242 | null | null | 0.048485 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
72add005c935bbca9e507704bba07f9f772d6dc1 | 4,635 | py | Python | searchElasticsearch.py | julian-risch/CHIIR2021-Resource | 99d626a4aa7ef8ed1476dc5c0ee087ed1857bafc | [
"MIT"
] | 11 | 2021-01-04T19:52:13.000Z | 2022-03-22T17:34:54.000Z | searchElasticsearch.py | julian-risch/CHIIR2021-Resource | 99d626a4aa7ef8ed1476dc5c0ee087ed1857bafc | [
"MIT"
] | 3 | 2021-07-02T18:38:34.000Z | 2021-08-09T20:46:33.000Z | searchElasticsearch.py | julian-risch/PatentMatch | 99d626a4aa7ef8ed1476dc5c0ee087ed1857bafc | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from elasticsearch import Elasticsearch
from elasticsearch import helpers
import pandas as pd
def query_citation_id(citation_entry):
return {
"query": {
"ids": {
"values": [
citation_entry
]
}
}
}
def process_hits(response, column_id_pa, column_cit_srprt, c... | 41.383929 | 236 | 0.737433 | 636 | 4,635 | 4.963836 | 0.20283 | 0.239468 | 0.066519 | 0.076972 | 0.509978 | 0.455812 | 0.32911 | 0.32911 | 0.279696 | 0.279696 | 0 | 0.009432 | 0.153614 | 4,635 | 111 | 237 | 41.756757 | 0.79531 | 0.139159 | 0 | 0.050633 | 0 | 0 | 0.148102 | 0.005532 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025316 | false | 0 | 0.037975 | 0.012658 | 0.075949 | 0.025316 | 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 |
72b366387deaa5a96ffd5e5f7ecf463470b718fa | 650 | py | Python | cyclegan_datasets.py | alexanderfroeber/cyclegan-1 | 4a807fb3c894bdcf7ec2395fb8a4c462dafe5e16 | [
"MIT"
] | 246 | 2017-07-18T17:07:21.000Z | 2021-11-23T03:11:22.000Z | cyclegan_datasets.py | alexanderfroeber/cyclegan-1 | 4a807fb3c894bdcf7ec2395fb8a4c462dafe5e16 | [
"MIT"
] | 8 | 2017-07-18T17:30:35.000Z | 2021-03-19T14:37:22.000Z | cyclegan_datasets.py | alexanderfroeber/cyclegan-1 | 4a807fb3c894bdcf7ec2395fb8a4c462dafe5e16 | [
"MIT"
] | 138 | 2017-07-19T12:59:43.000Z | 2022-01-28T03:44:05.000Z | """Contains the standard train/test splits for the cyclegan data."""
"""The size of each dataset. Usually it is the maximum number of images from
each domain."""
DATASET_TO_SIZES = {
'horse2zebra_train': 1334,
'horse2zebra_test': 140
}
"""The image types of each dataset. Currently only supports .jpg or .png""... | 30.952381 | 89 | 0.721538 | 84 | 650 | 5.392857 | 0.488095 | 0.14128 | 0.057395 | 0.15011 | 0.198676 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030631 | 0.146154 | 650 | 20 | 90 | 32.5 | 0.785586 | 0.095385 | 0 | 0 | 0 | 0 | 0.604775 | 0.320955 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
72b36a1292a5e716ade377d37984be117bf91205 | 9,298 | py | Python | src/python/pants/backend/python/tasks/python_task.py | lcary/pants | 9ffe5262909ad9521e8cdf2beffd6e86330bd3bc | [
"Apache-2.0"
] | null | null | null | src/python/pants/backend/python/tasks/python_task.py | lcary/pants | 9ffe5262909ad9521e8cdf2beffd6e86330bd3bc | [
"Apache-2.0"
] | null | null | null | src/python/pants/backend/python/tasks/python_task.py | lcary/pants | 9ffe5262909ad9521e8cdf2beffd6e86330bd3bc | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import os
import shu... | 46.49 | 103 | 0.721553 | 1,125 | 9,298 | 5.782222 | 0.292444 | 0.021522 | 0.038739 | 0.026902 | 0.241968 | 0.212452 | 0.202613 | 0.183551 | 0.167563 | 0.167563 | 0 | 0.001756 | 0.203915 | 9,298 | 199 | 104 | 46.723618 | 0.87706 | 0.256829 | 0 | 0.266667 | 0 | 0 | 0.02876 | 0 | 0 | 0 | 0 | 0.020101 | 0 | 1 | 0.081481 | false | 0 | 0.103704 | 0.014815 | 0.259259 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
72b374461c6233087abf534bdf9049b1662a60c5 | 2,436 | py | Python | apps/auth_api/views.py | worm2fed/itsphere_hakaton | 5a04741208497935396198bc5e6b93e133d90126 | [
"Unlicense"
] | null | null | null | apps/auth_api/views.py | worm2fed/itsphere_hakaton | 5a04741208497935396198bc5e6b93e133d90126 | [
"Unlicense"
] | null | null | null | apps/auth_api/views.py | worm2fed/itsphere_hakaton | 5a04741208497935396198bc5e6b93e133d90126 | [
"Unlicense"
] | null | null | null | from django.core.files.base import ContentFile
from rest_framework.views import APIView
from rest_framework import viewsets, status
from rest_framework.response import Response
from rest_framework.decorators import list_route, detail_route
from rest_framework.permissions import AllowAny
from apps.auth_api.models impo... | 33.369863 | 106 | 0.742611 | 268 | 2,436 | 6.563433 | 0.373134 | 0.059693 | 0.048323 | 0.025583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001476 | 0.165435 | 2,436 | 72 | 107 | 33.833333 | 0.863748 | 0.039819 | 0 | 0.038462 | 0 | 0 | 0.026113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.192308 | 0.019231 | 0.730769 | 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 |
72b66f81381cedb03510a229732c55b53f95d2ed | 1,962 | py | Python | configuration.py | PXAV/kelp-website | 8f24e0c2ae160b7ce709b0cf5887c7c975af6452 | [
"MIT"
] | null | null | null | configuration.py | PXAV/kelp-website | 8f24e0c2ae160b7ce709b0cf5887c7c975af6452 | [
"MIT"
] | null | null | null | configuration.py | PXAV/kelp-website | 8f24e0c2ae160b7ce709b0cf5887c7c975af6452 | [
"MIT"
] | null | null | null | from database.connection_profile import ConnectionProfile
from database.sql_type import SQLType
# Flask settings
debug_mode = True # flask debug-mode (ignored for apache wsgi)
secret_key = "put-secret-key-here" # flask session secret key
# Th... | 33.254237 | 108 | 0.611621 | 222 | 1,962 | 5.184685 | 0.445946 | 0.086881 | 0.083406 | 0.049522 | 0.085143 | 0.031277 | 0.031277 | 0 | 0 | 0 | 0 | 0.021882 | 0.301223 | 1,962 | 58 | 109 | 33.827586 | 0.817651 | 0.268603 | 0 | 0 | 0 | 0 | 0.175637 | 0.015581 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.078947 | 0.052632 | 0 | 0.052632 | 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 |
72b6867869ebf5750d6f2b97b95b4c80110e32dd | 2,457 | py | Python | tightai/downloaders.py | tightai/tightai | 3a440ad780f5c7ff84a54ad9dc6b342ce3b420b6 | [
"Apache-2.0"
] | 1 | 2020-09-13T08:10:59.000Z | 2020-09-13T08:10:59.000Z | tightai/downloaders.py | tightai/tightai | 3a440ad780f5c7ff84a54ad9dc6b342ce3b420b6 | [
"Apache-2.0"
] | 1 | 2022-02-26T08:32:58.000Z | 2022-02-26T08:32:58.000Z | tightai/downloaders.py | tightai/tightai | 3a440ad780f5c7ff84a54ad9dc6b342ce3b420b6 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: 06_download.ipynb (unless otherwise specified).
__all__ = ['DownloadVersion']
# Cell
import requests
import pathspec
import time
from pathlib import Path, PurePosixPath
from .lookup import Lookup
from .conf import CLI_ENDPOINT
# Cell
class DownloadVersion(Lookup):
path... | 32.76 | 99 | 0.563696 | 291 | 2,457 | 4.601375 | 0.408935 | 0.047797 | 0.019417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007348 | 0.335368 | 2,457 | 75 | 100 | 32.76 | 0.812615 | 0.094017 | 0 | 0 | 1 | 0 | 0.094187 | 0.02749 | 0 | 0 | 0 | 0 | 0.016667 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.3 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
72b89603262e96722dbc1213bfa78baf9832e7e4 | 13,235 | py | Python | squareconnect/models/v1_tender.py | xethorn/connect-python-sdk | a0543b2f7ea498865c6d916de0b10370f89ebc77 | [
"Apache-2.0"
] | null | null | null | squareconnect/models/v1_tender.py | xethorn/connect-python-sdk | a0543b2f7ea498865c6d916de0b10370f89ebc77 | [
"Apache-2.0"
] | null | null | null | squareconnect/models/v1_tender.py | xethorn/connect-python-sdk | a0543b2f7ea498865c6d916de0b10370f89ebc77 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Copyright 2017 Square, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable la... | 28.834423 | 288 | 0.595089 | 1,636 | 13,235 | 4.629584 | 0.125306 | 0.044362 | 0.103512 | 0.049379 | 0.590705 | 0.488513 | 0.426723 | 0.356219 | 0.316081 | 0.296277 | 0 | 0.00923 | 0.32875 | 13,235 | 458 | 289 | 28.89738 | 0.843314 | 0.445939 | 0 | 0.269939 | 0 | 0 | 0.087457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208589 | false | 0 | 0.018405 | 0 | 0.349693 | 0.006135 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
72b95f842196bd03e98be8c33319b1243c50219a | 7,404 | py | Python | InstaCook/models/recipe.py | qtkhajacloud/APIBuildingProjects | 5ab4437da57b371b6b7f521116dc4ad9fca44abc | [
"Apache-2.0"
] | 1 | 2021-11-13T17:53:16.000Z | 2021-11-13T17:53:16.000Z | InstaCook/models/recipe.py | qtkhajacloud/APIBuildingProjects | 5ab4437da57b371b6b7f521116dc4ad9fca44abc | [
"Apache-2.0"
] | null | null | null | InstaCook/models/recipe.py | qtkhajacloud/APIBuildingProjects | 5ab4437da57b371b6b7f521116dc4ad9fca44abc | [
"Apache-2.0"
] | 3 | 2021-11-18T10:11:44.000Z | 2021-12-18T13:56:20.000Z | from passlib.handlers.oracle import oracle10
from extensions import db
from sqlalchemy import asc, desc, or_
class Recipe(db.Model):
"""
This class represents the Recipe Model
"""
__tablename__ = 'recipe'
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String, nullable=False... | 32.761062 | 111 | 0.604133 | 945 | 7,404 | 4.6 | 0.150265 | 0.042328 | 0.05291 | 0.046009 | 0.512307 | 0.47389 | 0.415229 | 0.376121 | 0.353347 | 0.323672 | 0 | 0.003601 | 0.287412 | 7,404 | 225 | 112 | 32.906667 | 0.820318 | 0.232172 | 0 | 0.451327 | 0 | 0 | 0.033484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141593 | false | 0.017699 | 0.026549 | 0.00885 | 0.548673 | 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 |
72c1b73fe427889bab331377ceb90ab632e2cf68 | 836 | py | Python | Scripts/Condicional 2/Cond 2 D7.py | Vinicius-de-Souza-Reis-Lima/Python | 2009e9f5be10a1cf4e506a7f9f17c6b90a30c7c7 | [
"MIT"
] | null | null | null | Scripts/Condicional 2/Cond 2 D7.py | Vinicius-de-Souza-Reis-Lima/Python | 2009e9f5be10a1cf4e506a7f9f17c6b90a30c7c7 | [
"MIT"
] | null | null | null | Scripts/Condicional 2/Cond 2 D7.py | Vinicius-de-Souza-Reis-Lima/Python | 2009e9f5be10a1cf4e506a7f9f17c6b90a30c7c7 | [
"MIT"
] | null | null | null | print('Calculador de IMC')
print('=' * 20)
nome = str(input('Olá! Qual seu nome? '))
altura = float(input('{}, qual a sua altura? (m) '.format(nome).capitalize()))
peso = float(input('{}, qual é o seu peso? (Kg) '.format(nome).capitalize()))
imc = peso / (altura ** 2)
if imc < 18.5:
print('{}, você está muito magro... | 46.444444 | 95 | 0.618421 | 130 | 836 | 3.976923 | 0.353846 | 0.135397 | 0.125725 | 0.087041 | 0.45648 | 0.324952 | 0.324952 | 0.324952 | 0.139265 | 0 | 0 | 0.038737 | 0.166268 | 836 | 17 | 96 | 49.176471 | 0.703013 | 0 | 0 | 0 | 0 | 0 | 0.397129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.470588 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
72c50f6af78abc19a1d85de2c83f278c3fc92c5c | 22,921 | py | Python | VirusPack/Lithium876/ConTroll_Remote_Access_Trojan/pyinstaller/buildtests/runtests.py | TanayShukla/Random | 708c3e8b41749968aebae1fd64ffc73bffe3e0aa | [
"MIT"
] | 1 | 2021-03-03T15:26:40.000Z | 2021-03-03T15:26:40.000Z | VirusPack/Lithium876/ConTroll_Remote_Access_Trojan/pyinstaller/buildtests/runtests.py | TanayShukla/Random | 708c3e8b41749968aebae1fd64ffc73bffe3e0aa | [
"MIT"
] | null | null | null | VirusPack/Lithium876/ConTroll_Remote_Access_Trojan/pyinstaller/buildtests/runtests.py | TanayShukla/Random | 708c3e8b41749968aebae1fd64ffc73bffe3e0aa | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (C) 2011-2012 Martin Zibricky
# Copyright (C) 2011-2012 Hartmut Goebel
# Copyright (C) 2005-2011 Giovanni Bajo
# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the te... | 35.371914 | 92 | 0.597225 | 2,777 | 22,921 | 4.758372 | 0.203457 | 0.024822 | 0.018163 | 0.007946 | 0.165733 | 0.084834 | 0.050325 | 0.031633 | 0.011957 | 0.006054 | 0 | 0.006649 | 0.297936 | 22,921 | 647 | 93 | 35.426584 | 0.814504 | 0.141093 | 0 | 0.113801 | 0 | 0 | 0.184954 | 0.070933 | 0 | 0 | 0 | 0 | 0.009685 | 0 | null | null | 0.002421 | 0.089588 | null | null | 0.012107 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
72c99a710134e505d870fd7ba685541e0bc23d9c | 686 | py | Python | tests/factories/winner_factory.py | redditraffler/redditraffler | 7f7e59c20d8d08a2efa981b959c136b5715ef9b6 | [
"MIT"
] | 8 | 2020-10-19T17:05:56.000Z | 2021-11-10T15:35:53.000Z | tests/factories/winner_factory.py | redditraffler/redditraffler | 7f7e59c20d8d08a2efa981b959c136b5715ef9b6 | [
"MIT"
] | 172 | 2020-09-03T14:43:44.000Z | 2022-03-01T07:14:26.000Z | tests/factories/winner_factory.py | redditraffler/redditraffler | 7f7e59c20d8d08a2efa981b959c136b5715ef9b6 | [
"MIT"
] | 1 | 2020-12-17T17:26:03.000Z | 2020-12-17T17:26:03.000Z | import factory
from factory.alchemy import SQLAlchemyModelFactory
from app.db.models.winner import Winner
from app.extensions import db
class WinnerFactory(SQLAlchemyModelFactory):
class Meta:
model = Winner
sqlalchemy_session = db.session
id = factory.Sequence(lambda n: n)
raffle = fact... | 32.666667 | 79 | 0.741983 | 89 | 686 | 5.573034 | 0.47191 | 0.120968 | 0.102823 | 0.120968 | 0.278226 | 0.278226 | 0.278226 | 0.278226 | 0.278226 | 0.278226 | 0 | 0.029361 | 0.155977 | 686 | 20 | 80 | 34.3 | 0.827288 | 0 | 0 | 0 | 0 | 0 | 0.097668 | 0.06414 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.866667 | 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 |
72ce0f7db44640770e27d4497b978b02f8db16bf | 1,895 | py | Python | tests/groupthink_tests.py | emanuelfeld/groupthink | d8a6f666080352d396b07096cbd6304391f7c38d | [
"CC0-1.0"
] | 1 | 2017-01-09T17:27:05.000Z | 2017-01-09T17:27:05.000Z | tests/groupthink_tests.py | emanuelfeld/groupthink | d8a6f666080352d396b07096cbd6304391f7c38d | [
"CC0-1.0"
] | null | null | null | tests/groupthink_tests.py | emanuelfeld/groupthink | d8a6f666080352d396b07096cbd6304391f7c38d | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of groupthink.
# https://github.com/emanuelfeld/groupthink
# This project is in the public domain within the United States.
# Additionally, the Government of the District of Columbia waives
# copyright and related rights in the work worldwide through t... | 24.61039 | 75 | 0.686016 | 264 | 1,895 | 4.780303 | 0.409091 | 0.099842 | 0.044374 | 0.044374 | 0.272583 | 0.272583 | 0.272583 | 0.272583 | 0.272583 | 0.202853 | 0 | 0.007609 | 0.16781 | 1,895 | 76 | 76 | 24.934211 | 0.792644 | 0.185224 | 0 | 0.046512 | 0 | 0 | 0.132813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232558 | false | 0.023256 | 0.162791 | 0 | 0.395349 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
72d44abe2fb2adf8edf99eae2f9e5417e27706da | 2,719 | py | Python | tools/python/mllib/parsers.py | forkorama-legion/qpid-proton | 213a7aa416d3c678e04d562ac77e0b7e0ff6a166 | [
"Apache-2.0"
] | 2 | 2020-04-28T13:33:06.000Z | 2020-06-01T14:51:05.000Z | tools/python/mllib/parsers.py | francescoraves483/qpid-proton | 3eb62f51815602c86cdf0112f1154f9e29883774 | [
"Apache-2.0"
] | 33 | 2021-04-27T21:40:31.000Z | 2021-06-30T17:52:17.000Z | tools/python/mllib/parsers.py | francescoraves483/qpid-proton | 3eb62f51815602c86cdf0112f1154f9e29883774 | [
"Apache-2.0"
] | 4 | 2015-10-17T20:44:45.000Z | 2021-06-08T19:00:56.000Z | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 25.175926 | 62 | 0.673409 | 375 | 2,719 | 4.845333 | 0.354667 | 0.066043 | 0.033021 | 0.026417 | 0.024216 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002804 | 0.212946 | 2,719 | 107 | 63 | 25.411215 | 0.846262 | 0.286502 | 0 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269841 | false | 0 | 0.047619 | 0 | 0.349206 | 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 |
72d7bd5007055d7018f87ff4ce9a72a1ae35e724 | 437 | py | Python | Course 1 - Introduction to Python/Midterm_exam/Problem6.py | Odzen/MIT_React_DataScience | 3b82ef75dab1880cdbf0136a7b716e90cb27a9cb | [
"MIT"
] | null | null | null | Course 1 - Introduction to Python/Midterm_exam/Problem6.py | Odzen/MIT_React_DataScience | 3b82ef75dab1880cdbf0136a7b716e90cb27a9cb | [
"MIT"
] | null | null | null | Course 1 - Introduction to Python/Midterm_exam/Problem6.py | Odzen/MIT_React_DataScience | 3b82ef75dab1880cdbf0136a7b716e90cb27a9cb | [
"MIT"
] | null | null | null | def gcd(a, b):
"""
Calculates the greatest common divisor of two positive integers.
The gcd of two or more integers, when at least one of them is not zero,
is the largest positive integer that divides the numbers without a remainder.
a, b: two positive integers
Returns the greatest common divi... | 27.3125 | 81 | 0.640732 | 70 | 437 | 4 | 0.557143 | 0.021429 | 0.121429 | 0.171429 | 0.185714 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016077 | 0.28833 | 437 | 16 | 82 | 27.3125 | 0.884244 | 0.665904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0.166667 | 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 |
72da65e6b13c00fba20533a0d0536a90e06af1dc | 268 | py | Python | novaposhta/__init__.py | pmaigutyak/mp-novaposhta | 05de8d93b732826e11ffc5ab94d73fd0808843f1 | [
"0BSD"
] | 8 | 2017-04-25T11:49:57.000Z | 2021-01-16T10:43:15.000Z | novaposhta/__init__.py | pmaigutyak/mp-novaposhta | 05de8d93b732826e11ffc5ab94d73fd0808843f1 | [
"0BSD"
] | null | null | null | novaposhta/__init__.py | pmaigutyak/mp-novaposhta | 05de8d93b732826e11ffc5ab94d73fd0808843f1 | [
"0BSD"
] | 4 | 2017-03-19T14:18:07.000Z | 2021-06-21T14:26:11.000Z |
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class NovaPoshtaAppConfig(AppConfig):
name = 'novaposhta'
verbose_name = _('Nova poshta')
default_app_config = 'novaposhta.NovaPoshtaAppConfig'
__version__ = '2.3'
| 19.142857 | 55 | 0.772388 | 30 | 268 | 6.566667 | 0.766667 | 0.101523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008734 | 0.145522 | 268 | 13 | 56 | 20.615385 | 0.851528 | 0 | 0 | 0 | 0 | 0 | 0.202247 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 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 |
72e10bf8c0051731a6d0669a3f52e6713518bd0c | 947 | py | Python | common/migrations/0005_auto_20210704_1417.py | yzcmf/order_management_system | eb2c1daca2293d47a76918c988e78bb890fe5e01 | [
"MIT"
] | null | null | null | common/migrations/0005_auto_20210704_1417.py | yzcmf/order_management_system | eb2c1daca2293d47a76918c988e78bb890fe5e01 | [
"MIT"
] | null | null | null | common/migrations/0005_auto_20210704_1417.py | yzcmf/order_management_system | eb2c1daca2293d47a76918c988e78bb890fe5e01 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-04 14:17
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('common', '0004_food_order'),
]
operations = [
migrations.CreateModel(
name='OrderFood',
... | 32.655172 | 114 | 0.598733 | 97 | 947 | 5.762887 | 0.536082 | 0.057245 | 0.075134 | 0.118068 | 0.218247 | 0.218247 | 0.218247 | 0.218247 | 0.218247 | 0.218247 | 0 | 0.027182 | 0.26188 | 947 | 28 | 115 | 33.821429 | 0.772532 | 0.047518 | 0 | 0.090909 | 1 | 0 | 0.124444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
72e2cd2a032cceac15b3533c0d9948cd2e5d305f | 2,954 | py | Python | src/ggrc/migrations/versions/20140501230218_5719ca4edd3b_make_titles_unique.py | Smotko/ggrc-core | b3abb58b24e7559960d71a94ba79c75539e7fe29 | [
"Apache-2.0"
] | null | null | null | src/ggrc/migrations/versions/20140501230218_5719ca4edd3b_make_titles_unique.py | Smotko/ggrc-core | b3abb58b24e7559960d71a94ba79c75539e7fe29 | [
"Apache-2.0"
] | 12 | 2015-01-08T14:50:19.000Z | 2017-11-29T19:37:53.000Z | src/ggrc/migrations/versions/20140501230218_5719ca4edd3b_make_titles_unique.py | mikecb/ggrc-core | 1cda560cb0920021416e07740c6cca1acba56268 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2015-01-08T13:25:09.000Z | 2015-01-08T13:25:09.000Z | # Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file>
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
# Created By: anze@reciprocitylabs.com
# Maintained By: anze@reciprocitylabs.com
"""Make titles unique in some cases.
Revision ID: 5719ca4edd3b
Revises: 16d7c2... | 35.166667 | 78 | 0.694313 | 369 | 2,954 | 5.279133 | 0.260163 | 0.160164 | 0.160164 | 0.160164 | 0.578542 | 0.38809 | 0.216632 | 0 | 0 | 0 | 0 | 0.022727 | 0.150982 | 2,954 | 83 | 79 | 35.590361 | 0.753987 | 0.13304 | 0 | 0.079365 | 0 | 0 | 0.413103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031746 | false | 0 | 0.047619 | 0 | 0.079365 | 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 |
72ea1f267950e58a2bea6027941cbbf783c8e239 | 6,988 | py | Python | inotifier/event_processors.py | javrasya/django-inotifier | 76ca03f718957d0deab526474a22fc83dbd63641 | [
"BSD-3-Clause"
] | 1 | 2015-06-30T12:00:25.000Z | 2015-06-30T12:00:25.000Z | inotifier/event_processors.py | javrasya/django-inotifier | 76ca03f718957d0deab526474a22fc83dbd63641 | [
"BSD-3-Clause"
] | null | null | null | inotifier/event_processors.py | javrasya/django-inotifier | 76ca03f718957d0deab526474a22fc83dbd63641 | [
"BSD-3-Clause"
] | null | null | null | import pyinotify
import signals
class AllEventsPrinter(pyinotify.ProcessEvent):
"""
Simple class which prints on every event.
"""
def process_IN_ACCESS(self, event):
print "IN ACCESS: %s" % event.pathname
def process_IN_ATTRIB(self, event):
print "IN ATTRIB: %s" % event.pathname
... | 35.292929 | 79 | 0.68589 | 1,009 | 6,988 | 4.611497 | 0.187314 | 0.096712 | 0.085106 | 0.069418 | 0.485708 | 0.41672 | 0.326886 | 0.227165 | 0.15173 | 0.067483 | 0 | 0.000187 | 0.233686 | 6,988 | 197 | 80 | 35.472081 | 0.868721 | 0 | 0 | 0.431818 | 0 | 0 | 0.055156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056818 | null | null | 0.170455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
72ed83c3d34edb9ba67948d22300fda27c1cde69 | 455 | py | Python | flaskapi/models.py | ruebroad/flask-api | 16495980b03ea2ee590695eddcf0c6bda98d045d | [
"MIT"
] | null | null | null | flaskapi/models.py | ruebroad/flask-api | 16495980b03ea2ee590695eddcf0c6bda98d045d | [
"MIT"
] | null | null | null | flaskapi/models.py | ruebroad/flask-api | 16495980b03ea2ee590695eddcf0c6bda98d045d | [
"MIT"
] | null | null | null | from datetime import datetime
from config import db, ma
class Person(db.Model):
__tablename__ = "person"
person_id = db.Column(db.Integer, primary_key=True)
lname = db.Column(db.String(32))
fname = db.Column(db.String(32))
timestamp = db.Column(
db.DateTime, default=datetime.utcnow, onupda... | 25.277778 | 70 | 0.683516 | 59 | 455 | 5.152542 | 0.491525 | 0.105263 | 0.131579 | 0.105263 | 0.118421 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011142 | 0.210989 | 455 | 18 | 71 | 25.277778 | 0.835655 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 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 |
72ee125edb4ecbfe09bb50aa3caf70e50c6b3550 | 3,132 | py | Python | projet10/api/migrations/0001_initial.py | S0Imyr/projet-10 | afb3c036ec6d830bdae0f0a98d1718b2a854c5fe | [
"MIT"
] | 1 | 2021-09-03T10:37:10.000Z | 2021-09-03T10:37:10.000Z | projet10/api/migrations/0001_initial.py | S0Imyr/projet-10 | afb3c036ec6d830bdae0f0a98d1718b2a854c5fe | [
"MIT"
] | null | null | null | projet10/api/migrations/0001_initial.py | S0Imyr/projet-10 | afb3c036ec6d830bdae0f0a98d1718b2a854c5fe | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-04-17 09:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('authentication', '0001_initial'),
]
operations = [
migrations.CreateModel(
na... | 50.516129 | 165 | 0.605683 | 333 | 3,132 | 5.522523 | 0.231231 | 0.052202 | 0.097879 | 0.130506 | 0.747689 | 0.673736 | 0.594345 | 0.594345 | 0.546493 | 0.546493 | 0 | 0.023315 | 0.246807 | 3,132 | 61 | 166 | 51.344262 | 0.756253 | 0.013729 | 0 | 0.555556 | 1 | 0 | 0.13735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
72f130fdc52bb842fd3cd49c84fc298fd4d08f2e | 956 | py | Python | {{ cookiecutter.project_name|replace(' ', '_')|replace('-', '_')|lower }}/project/apps/users/urls.py | digitalashes/django2.0-template | 4387c25fb94cbff4f201b279f2eefcb174658eff | [
"Apache-2.0"
] | 1 | 2018-03-13T21:16:49.000Z | 2018-03-13T21:16:49.000Z | {{ cookiecutter.project_name|replace(' ', '_')|replace('-', '_')|lower }}/project/apps/users/urls.py | digitalashes/django2.0-template | 4387c25fb94cbff4f201b279f2eefcb174658eff | [
"Apache-2.0"
] | null | null | null | {{ cookiecutter.project_name|replace(' ', '_')|replace('-', '_')|lower }}/project/apps/users/urls.py | digitalashes/django2.0-template | 4387c25fb94cbff4f201b279f2eefcb174658eff | [
"Apache-2.0"
] | null | null | null | from django.urls import path, include
{%- if cookiecutter.use_allauth == "y" and cookiecutter.use_rest == "y" %}
from rest_framework_jwt.views import (
obtain_jwt_token,
refresh_jwt_token,
verify_jwt_token,
)
{%- endif %}
from users import views
urlpatterns = [
{%- if cookiecutter.use_allauth == "y" and co... | 34.142857 | 84 | 0.620293 | 106 | 956 | 5.358491 | 0.292453 | 0.084507 | 0.06338 | 0.084507 | 0.169014 | 0.169014 | 0.169014 | 0.169014 | 0.169014 | 0.169014 | 0 | 0 | 0.212343 | 956 | 27 | 85 | 35.407407 | 0.754316 | 0 | 0 | 0.16 | 0 | 0 | 0.17364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.04 | 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 |
72f344dbd1c4f3fa1980005891da563da02010cd | 696 | py | Python | codewars-python/Playing-with-passphrases.py | fmelihh/competitive-programming-solutions | c15c2f7d90153f35f9bd9ffcea20ac921564eacf | [
"MIT"
] | 2 | 2021-09-06T22:13:12.000Z | 2021-11-22T08:50:04.000Z | codewars-python/Playing-with-passphrases.py | fmelihh/competitive-programming-solutions | c15c2f7d90153f35f9bd9ffcea20ac921564eacf | [
"MIT"
] | null | null | null | codewars-python/Playing-with-passphrases.py | fmelihh/competitive-programming-solutions | c15c2f7d90153f35f9bd9ffcea20ac921564eacf | [
"MIT"
] | null | null | null |
# https://www.codewars.com/kata/559536379512a64472000053/train/python
def play_pass(s,n):
output = []
for i,character in enumerate(s):
if character.isalpha():
character = ord(character.lower())
if character + n > 122:
character = character + n - 26
... | 21.090909 | 69 | 0.505747 | 65 | 696 | 5.4 | 0.6 | 0.08547 | 0.108262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073113 | 0.390805 | 696 | 32 | 70 | 21.75 | 0.754717 | 0.096264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0 | 0 | 0.117647 | 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 |
72f6e495da61945755b9104350f544c584972282 | 51,012 | py | Python | core/src/main/python/wlsdeploy/tool/util/attribute_setter.py | zeusbaba/weblogic-deploy-tooling | 78d4ea18f5a45f8c890556d99d6d1acd68d69eda | [
"Apache-2.0",
"MIT"
] | null | null | null | core/src/main/python/wlsdeploy/tool/util/attribute_setter.py | zeusbaba/weblogic-deploy-tooling | 78d4ea18f5a45f8c890556d99d6d1acd68d69eda | [
"Apache-2.0",
"MIT"
] | null | null | null | core/src/main/python/wlsdeploy/tool/util/attribute_setter.py | zeusbaba/weblogic-deploy-tooling | 78d4ea18f5a45f8c890556d99d6d1acd68d69eda | [
"Apache-2.0",
"MIT"
] | null | null | null | """
Copyright (c) 2017, 2020, Oracle Corporation and/or its affiliates. All rights reserved.
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
"""
from javax.management import ObjectName
from org.python.modules import jarray
from wlsdeploy.aliases import alias_util... | 49.05 | 119 | 0.702619 | 6,476 | 51,012 | 5.248919 | 0.056208 | 0.03442 | 0.033361 | 0.044864 | 0.746028 | 0.71558 | 0.682308 | 0.61285 | 0.560102 | 0.525388 | 0 | 0.002797 | 0.236023 | 51,012 | 1,039 | 120 | 49.097209 | 0.869419 | 0.314161 | 0 | 0.307102 | 0 | 0 | 0.020061 | 0.009529 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095969 | false | 0.007678 | 0.138196 | 0 | 0.353167 | 0.009597 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
72f7e5fac136916fbefe418b7cddd7cd09c4e732 | 393 | py | Python | teacher/migrations/0005_auto_20210406_1813.py | tushortz/ppmg-tech-test | 56f37a418efdc11ab9052d0a58d8431cc34915d8 | [
"MIT"
] | null | null | null | teacher/migrations/0005_auto_20210406_1813.py | tushortz/ppmg-tech-test | 56f37a418efdc11ab9052d0a58d8431cc34915d8 | [
"MIT"
] | null | null | null | teacher/migrations/0005_auto_20210406_1813.py | tushortz/ppmg-tech-test | 56f37a418efdc11ab9052d0a58d8431cc34915d8 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-04-06 17:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('teacher', '0004_auto_20210406_1812'),
]
operations = [
migrations.AlterField(
model_name='teacher',
name='profile_pi... | 20.684211 | 51 | 0.605598 | 43 | 393 | 5.395349 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120567 | 0.282443 | 393 | 18 | 52 | 21.833333 | 0.702128 | 0.114504 | 0 | 0 | 1 | 0 | 0.138728 | 0.066474 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f404f2689b5aafc933ca3f820fbf9e247a76dd76 | 859 | py | Python | tests/datasources/test_json_data.py | limkokhian/beagle | 791e83db94e5a8ab1965b155bb79d32bb259d2b3 | [
"MIT"
] | 1,139 | 2019-03-24T09:09:05.000Z | 2022-03-27T14:54:38.000Z | tests/datasources/test_json_data.py | limkokhian/beagle | 791e83db94e5a8ab1965b155bb79d32bb259d2b3 | [
"MIT"
] | 78 | 2019-03-24T16:56:06.000Z | 2022-02-27T21:31:38.000Z | tests/datasources/test_json_data.py | limkokhian/beagle | 791e83db94e5a8ab1965b155bb79d32bb259d2b3 | [
"MIT"
] | 149 | 2019-03-24T16:44:45.000Z | 2022-03-11T12:20:51.000Z | import json
from beagle.datasources.json_data import JSONFile
def test_init():
d = JSONFile("data/tc3/ta1-cadets-e3-official.json")
assert d.file_path == "data/tc3/ta1-cadets-e3-official.json"
def test_metadata():
d = JSONFile("data/tc3/ta1-cadets-e3-official.json")
assert d.metadata() == {"filename... | 30.678571 | 81 | 0.629802 | 129 | 859 | 4.100775 | 0.310078 | 0.05293 | 0.083176 | 0.143667 | 0.534972 | 0.534972 | 0.534972 | 0.340265 | 0.340265 | 0.340265 | 0 | 0.014925 | 0.142026 | 859 | 27 | 82 | 31.814815 | 0.702849 | 0 | 0 | 0.235294 | 0 | 0 | 0.266589 | 0.157159 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.235294 | false | 0 | 0.117647 | 0 | 0.352941 | 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 |
f40699835027b868686a19cbcb2791bef0bd84cd | 267 | py | Python | exceptional.py | muhammednazeer/python-apprentice | 9145c115775bd3594c44c94641e0df883cfba0a1 | [
"MIT"
] | null | null | null | exceptional.py | muhammednazeer/python-apprentice | 9145c115775bd3594c44c94641e0df883cfba0a1 | [
"MIT"
] | null | null | null | exceptional.py | muhammednazeer/python-apprentice | 9145c115775bd3594c44c94641e0df883cfba0a1 | [
"MIT"
] | null | null | null | """A module for demonstrating exceptions."""
import sys
def convert(s):
"""Convert to an integer."""
try:
return int(s)
except (ValueError, TypeError) as e:
print("Conversion error: {}".format(str(e)), file=sys.stderr)
return -1
| 22.25 | 69 | 0.606742 | 34 | 267 | 4.764706 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004951 | 0.243446 | 267 | 11 | 70 | 24.272727 | 0.79703 | 0.228464 | 0 | 0 | 0 | 0 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f40a723389be05287459973f4a2790affa105c2f | 1,922 | py | Python | jsongenerator/main.py | jueyif/veckansmat | 5ef48336b8ea272d2864c3c9e21e4d20cc7da218 | [
"MIT"
] | 2 | 2020-06-14T17:56:25.000Z | 2021-07-01T11:54:34.000Z | jsongenerator/main.py | jueyif/veckansmat | 5ef48336b8ea272d2864c3c9e21e4d20cc7da218 | [
"MIT"
] | null | null | null | jsongenerator/main.py | jueyif/veckansmat | 5ef48336b8ea272d2864c3c9e21e4d20cc7da218 | [
"MIT"
] | null | null | null | import json
from willys import getWillysProductList
from hemkop import getHemkopProductList
from icamaxi import getIcaMaxiProductList
from icakvantum import getIcaKvantumProductList
from storacoop import getStoraCoopProductList
from lidl import getLidlProductList
print('Getting products from Willys now.....')
willysPr... | 33.719298 | 88 | 0.748699 | 218 | 1,922 | 6.600917 | 0.197248 | 0.100069 | 0.083391 | 0.100069 | 0.129256 | 0.09173 | 0 | 0 | 0 | 0 | 0 | 0.004687 | 0.111863 | 1,922 | 56 | 89 | 34.321429 | 0.838313 | 0.020291 | 0 | 0 | 0 | 0 | 0.317916 | 0.02286 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.162791 | 0 | 0.162791 | 0.418605 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f41828d1106ce62523be4588771455c72f9e379d | 9,227 | py | Python | pyinstrument/frame.py | RyanKung/pyinstrument | f5ec7f61416d69157259583cc12c99a51da6056d | [
"BSD-3-Clause"
] | null | null | null | pyinstrument/frame.py | RyanKung/pyinstrument | f5ec7f61416d69157259583cc12c99a51da6056d | [
"BSD-3-Clause"
] | null | null | null | pyinstrument/frame.py | RyanKung/pyinstrument | f5ec7f61416d69157259583cc12c99a51da6056d | [
"BSD-3-Clause"
] | null | null | null | import sys, os, uuid
class BaseFrame(object):
def __init__(self, parent=None, self_time=0):
self.parent = parent
self._self_time = self_time
self.group = None
# pylint: disable=W0212
def remove_from_parent(self):
'''
Removes this frame from its parent, and nulls th... | 29.479233 | 98 | 0.591091 | 1,097 | 9,227 | 4.817685 | 0.216044 | 0.048439 | 0.031788 | 0.047682 | 0.232734 | 0.149669 | 0.077767 | 0.034059 | 0.034059 | 0.015894 | 0 | 0.004982 | 0.325566 | 9,227 | 312 | 99 | 29.573718 | 0.844287 | 0.197139 | 0 | 0.316583 | 0 | 0 | 0.021356 | 0.003606 | 0 | 0 | 0 | 0 | 0 | 1 | 0.221106 | false | 0.005025 | 0.005025 | 0.075377 | 0.356784 | 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 |
f419ccc1577da264fb9a0b0d9016710365a4e92d | 1,259 | py | Python | cogs/links.py | haruyuki/fursona-pins | af9fe6b22e0d4a84455490465d523cc098a0e172 | [
"MIT"
] | null | null | null | cogs/links.py | haruyuki/fursona-pins | af9fe6b22e0d4a84455490465d523cc098a0e172 | [
"MIT"
] | null | null | null | cogs/links.py | haruyuki/fursona-pins | af9fe6b22e0d4a84455490465d523cc098a0e172 | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
from constants import FursonaPins
class Links(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
@commands.guild_only()
async def links(self, ctx):
embed = discord.Embed(title='Fursona Pins Links', description="A... | 40.612903 | 108 | 0.721207 | 158 | 1,259 | 5.632911 | 0.322785 | 0.080899 | 0.131461 | 0.17191 | 0.251685 | 0.251685 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158856 | 1,259 | 30 | 109 | 41.966667 | 0.840415 | 0 | 0 | 0 | 0 | 0 | 0.104845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.130435 | 0 | 0.26087 | 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 |
f41b0c283c4e80c3256408d0bad9f627c57c170c | 438 | py | Python | djangoapp/base/utils/router/factory/__init__.py | bdabrowski/web-security-training | aaa8ba8f130e3fa2fbac474fdb59a2051cda463c | [
"MIT"
] | null | null | null | djangoapp/base/utils/router/factory/__init__.py | bdabrowski/web-security-training | aaa8ba8f130e3fa2fbac474fdb59a2051cda463c | [
"MIT"
] | 14 | 2019-08-07T16:09:50.000Z | 2022-03-02T05:07:22.000Z | djangoapp/base/utils/router/factory/__init__.py | bdabrowski/web-security-training | aaa8ba8f130e3fa2fbac474fdb59a2051cda463c | [
"MIT"
] | 1 | 2019-08-07T15:43:03.000Z | 2019-08-07T15:43:03.000Z | import base64
import os
from django.contrib.auth.models import User
from django.http import HttpResponseForbidden, HttpResponse, HttpResponseNotAllowed, HttpRequest
def build_router():
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'assets/deps')) as router_deps:
ldict = {}
ex... | 33.692308 | 102 | 0.730594 | 56 | 438 | 5.571429 | 0.696429 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018568 | 0.139269 | 438 | 12 | 103 | 36.5 | 0.809019 | 0 | 0 | 0 | 0 | 0 | 0.059361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f42186463d9a4ce8e49d2879b666840add491ba2 | 2,656 | py | Python | run.py | gichirigichuru/Passwordlocker | 6fd7eb17ff3bb40889821fd96bddfbed88f5a8c2 | [
"MIT"
] | null | null | null | run.py | gichirigichuru/Passwordlocker | 6fd7eb17ff3bb40889821fd96bddfbed88f5a8c2 | [
"MIT"
] | null | null | null | run.py | gichirigichuru/Passwordlocker | 6fd7eb17ff3bb40889821fd96bddfbed88f5a8c2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.8
from account import Account
import string
import random
def create_account(uname,password):
'''
Function to create a new account
'''
new_account = Account(uname,password)
return new_account
def save_accounts(account):
'''
Function to save account
'''
accoun... | 23.927928 | 135 | 0.642696 | 337 | 2,656 | 4.937685 | 0.323442 | 0.02524 | 0.023438 | 0.020433 | 0.022837 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002976 | 0.240964 | 2,656 | 110 | 136 | 24.145455 | 0.822421 | 0.158886 | 0 | 0.131148 | 0 | 0.016393 | 0.268587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114754 | false | 0.114754 | 0.04918 | 0 | 0.229508 | 0.344262 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f4248a222d4e2a874f0a16bd7cff4f101e65e349 | 754 | py | Python | francoralite/apps/francoralite_api/models/publisher.py | Francoralite/francoralite | f8c5eeffe6d395c7e4222a9f5a4a7a01841b503c | [
"BSD-3-Clause"
] | 2 | 2021-07-26T08:29:26.000Z | 2021-07-26T08:29:27.000Z | francoralite/apps/francoralite_api/models/publisher.py | lluc/telemeta-integration | c2fb116471235674eae597abac84a7113e0f7c82 | [
"BSD-3-Clause"
] | 167 | 2018-10-20T14:34:46.000Z | 2021-06-01T10:40:55.000Z | francoralite/apps/francoralite_api/models/publisher.py | Francoralite/francoralite | f8c5eeffe6d395c7e4222a9f5a4a7a01841b503c | [
"BSD-3-Clause"
] | 1 | 2021-06-06T12:16:49.000Z | 2021-06-06T12:16:49.000Z | # -*- coding: utf-8 -*-
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Authors: Luc LEGER / Cooperative Artefacts <artefacts.lle@gmail.com>
from django.db import models
from django.utils.translation import gettext_... | 27.925926 | 74 | 0.679045 | 98 | 754 | 5.061224 | 0.77551 | 0.020161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006678 | 0.20557 | 754 | 26 | 75 | 29 | 0.821369 | 0.348806 | 0 | 0 | 0 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0.076923 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f42acda4fac6dd67acc3f2da47ea414dc14e2ed8 | 509 | py | Python | authentication/migrations/0021_auto_20201230_2207.py | shayweitzman/MyAutoBook | b5451e6d2db07c839b61802f94b57824a6b17da8 | [
"Unlicense"
] | 1 | 2022-01-24T15:49:32.000Z | 2022-01-24T15:49:32.000Z | authentication/migrations/0021_auto_20201230_2207.py | shayweitzman/MyAutoBook | b5451e6d2db07c839b61802f94b57824a6b17da8 | [
"Unlicense"
] | null | null | null | authentication/migrations/0021_auto_20201230_2207.py | shayweitzman/MyAutoBook | b5451e6d2db07c839b61802f94b57824a6b17da8 | [
"Unlicense"
] | 2 | 2021-01-03T15:19:05.000Z | 2021-01-14T08:14:12.000Z | # Generated by Django 3.1.3 on 2020-12-30 20:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('book_catalog', '0015_book_posses'),
('authentication', '0020_auto_20201230_2158'),
]
operations = [
migrations.AlterField(
... | 25.45 | 116 | 0.632613 | 55 | 509 | 5.690909 | 0.745455 | 0.070288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.243615 | 509 | 19 | 117 | 26.789474 | 0.722078 | 0.088409 | 0 | 0 | 1 | 0 | 0.235931 | 0.049784 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f42bd94e059cdee224f2dfec42bec03a66f49fe1 | 656 | py | Python | reporting/migrations/0010_auto_20180505_1619.py | dgmarko/django_jdsreporting | e0f4d3bb1691fecfb8d74ee50dddc65ae5d25bf2 | [
"MIT"
] | null | null | null | reporting/migrations/0010_auto_20180505_1619.py | dgmarko/django_jdsreporting | e0f4d3bb1691fecfb8d74ee50dddc65ae5d25bf2 | [
"MIT"
] | null | null | null | reporting/migrations/0010_auto_20180505_1619.py | dgmarko/django_jdsreporting | e0f4d3bb1691fecfb8d74ee50dddc65ae5d25bf2 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.4 on 2018-05-05 21:19
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('reporting', '0009_remove_salesdiagnostic_products'),
]
operations = [
migrations.RenameModel(
o... | 26.24 | 120 | 0.625 | 67 | 656 | 5.985075 | 0.626866 | 0.05985 | 0.069825 | 0.109726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039256 | 0.262195 | 656 | 24 | 121 | 27.333333 | 0.789256 | 0.068598 | 0 | 0.111111 | 1 | 0 | 0.162562 | 0.059113 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f42daaae72249e999b6d3d1b4d9fe46409184ff9 | 9,535 | py | Python | streamux/session.py | ArunMj/streamux | 03dede3eeec8c5ecbe8cf88f12a573d7af3cd098 | [
"MIT"
] | null | null | null | streamux/session.py | ArunMj/streamux | 03dede3eeec8c5ecbe8cf88f12a573d7af3cd098 | [
"MIT"
] | null | null | null | streamux/session.py | ArunMj/streamux | 03dede3eeec8c5ecbe8cf88f12a573d7af3cd098 | [
"MIT"
] | null | null | null |
# verify_config is used to verify the sanity of configuration
import os
import warnings
import gevent
from gevent import sleep
from gevent.event import Event
from gevent.queue import Queue
from .exceptions import *
from .frame import *
from .stream import *
class Session:
default_accept_backlog = 1024
deaf... | 35.71161 | 119 | 0.544206 | 1,052 | 9,535 | 4.79943 | 0.213878 | 0.028322 | 0.016637 | 0.029115 | 0.152505 | 0.093088 | 0.058229 | 0.058229 | 0.035255 | 0.035255 | 0 | 0.007054 | 0.360671 | 9,535 | 266 | 120 | 35.845865 | 0.821194 | 0.151337 | 0 | 0.26257 | 0 | 0 | 0.094678 | 0 | 0 | 0 | 0 | 0.007519 | 0 | 0 | null | null | 0.011173 | 0.050279 | null | null | 0.027933 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f42edb83639b14714627f2900d075097bc5a1522 | 455 | py | Python | Net640/apps/user_posts/urls.py | 86Ilya/net640kb | 6724f3da3b678b637e0e776ee0d4953753ee2e05 | [
"MIT"
] | 1 | 2019-06-18T09:50:29.000Z | 2019-06-18T09:50:29.000Z | Net640/apps/user_posts/urls.py | 86Ilya/net640kb | 6724f3da3b678b637e0e776ee0d4953753ee2e05 | [
"MIT"
] | 10 | 2019-12-24T07:05:29.000Z | 2022-02-10T07:42:44.000Z | Net640/apps/user_posts/urls.py | 86Ilya/net640kb | 6724f3da3b678b637e0e776ee0d4953753ee2e05 | [
"MIT"
] | null | null | null | from django.urls import path, re_path
from Net640.apps.user_posts import views
app_name = 'posts'
urlpatterns = [
path(r'', views.mainpage_view, name="mainpage"),
# TODO move to rest api
re_path(r'post/(?P<user_id>[\d]*)?', views.user_post_processing, name="user_post_processing"),
re_path(r'comment/(?P... | 37.916667 | 107 | 0.707692 | 70 | 455 | 4.357143 | 0.414286 | 0.065574 | 0.045902 | 0.078689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0075 | 0.120879 | 455 | 11 | 108 | 41.363636 | 0.755 | 0.046154 | 0 | 0 | 0 | 0 | 0.268519 | 0.171296 | 0 | 0 | 0 | 0.090909 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 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 |
f431ef2448392a08d0f8e00056902cce2e3437a1 | 2,207 | py | Python | project_euler/ex14_longest_collatz_sequence.py | ralphribeiro/uri-projecteuler | 7151d86e014aea9c56026cc88f50b4e940117dd8 | [
"MIT"
] | null | null | null | project_euler/ex14_longest_collatz_sequence.py | ralphribeiro/uri-projecteuler | 7151d86e014aea9c56026cc88f50b4e940117dd8 | [
"MIT"
] | null | null | null | project_euler/ex14_longest_collatz_sequence.py | ralphribeiro/uri-projecteuler | 7151d86e014aea9c56026cc88f50b4e940117dd8 | [
"MIT"
] | null | null | null | """
The following iterative sequence is defined for the set of positive
integers:
n → n/2 (n is even)
n → 3n + 1 (n is odd)
Using the rule above and starting with 13, we generate the following
sequence:
13 → 40 → 20 → 10 → 5 → 16 → 8 → 4 → 2 → 1
It can be seen that this sequence (star... | 26.27381 | 78 | 0.615315 | 327 | 2,207 | 4.045872 | 0.406728 | 0.045351 | 0.029478 | 0.016629 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026803 | 0.289986 | 2,207 | 83 | 79 | 26.590361 | 0.810466 | 0.281377 | 0 | 0 | 1 | 0 | 0.032026 | 0.014379 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 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 |
f4351e5de057cbfd2f2094920fce4604aae77623 | 443 | py | Python | venv/Lib/site-packages/pybrain/rl/environments/twoplayergames/capturegameplayers/nonsuicide.py | ishatserka/MachineLearningAndDataAnalysisCoursera | e82e772df2f4aec162cb34ac6127df10d14a625a | [
"MIT"
] | 3 | 2015-03-21T21:42:28.000Z | 2018-07-12T04:21:32.000Z | venv/Lib/site-packages/pybrain/rl/environments/twoplayergames/capturegameplayers/nonsuicide.py | ishatserka/MachineLearningAndDataAnalysisCoursera | e82e772df2f4aec162cb34ac6127df10d14a625a | [
"MIT"
] | null | null | null | venv/Lib/site-packages/pybrain/rl/environments/twoplayergames/capturegameplayers/nonsuicide.py | ishatserka/MachineLearningAndDataAnalysisCoursera | e82e772df2f4aec162cb34ac6127df10d14a625a | [
"MIT"
] | null | null | null | __author__ = 'Tom Schaul, tom@idsia.ch'
from random import choice
from randomplayer import RandomCapturePlayer
class NonSuicidePlayer(RandomCapturePlayer):
""" do random non-suicide moves in the capture game """
def getAction(self):
p = self.game.getAcceptable(self.color)
if len(p) > 0: ... | 29.533333 | 59 | 0.65237 | 49 | 443 | 5.816327 | 0.653061 | 0.091228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003049 | 0.259594 | 443 | 15 | 60 | 29.533333 | 0.865854 | 0.106095 | 0 | 0 | 0 | 0 | 0.061697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f438777f544d54b42d66c1fe79f591d176bffb5d | 6,410 | py | Python | dist/Lib/test/test_sys_jy.py | nelmiux/CS347-Data_Management | 1e9d87097b5a373f9312b0d6b413198e495fd6c0 | [
"CNRI-Jython"
] | null | null | null | dist/Lib/test/test_sys_jy.py | nelmiux/CS347-Data_Management | 1e9d87097b5a373f9312b0d6b413198e495fd6c0 | [
"CNRI-Jython"
] | null | null | null | dist/Lib/test/test_sys_jy.py | nelmiux/CS347-Data_Management | 1e9d87097b5a373f9312b0d6b413198e495fd6c0 | [
"CNRI-Jython"
] | null | null | null | from __future__ import with_statement
import os
import re
import sys
import tempfile
import unittest
from test import test_support
class SysTest(unittest.TestCase):
def test_platform(self):
self.assertEquals(sys.platform[:4], "java",
"sys.platform is not java")
def test_exit... | 32.373737 | 116 | 0.636037 | 761 | 6,410 | 5.140604 | 0.316689 | 0.02684 | 0.011503 | 0.01227 | 0.141616 | 0.0818 | 0.052658 | 0.044479 | 0.023517 | 0.023517 | 0 | 0.006417 | 0.270671 | 6,410 | 197 | 117 | 32.538071 | 0.830374 | 0.040562 | 0 | 0.132867 | 0 | 0 | 0.097285 | 0 | 0 | 0 | 0 | 0 | 0.188811 | 0 | null | null | 0.006993 | 0.160839 | 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 |
f4398e3d197cfb649f017d11b19283cfa385f3dc | 1,079 | py | Python | sis/clients/migrations/0005_auto_20150205_1519.py | delphcf/sis | 8a77df020463bb9c28b1a7555574014e830eeab3 | [
"BSD-3-Clause"
] | null | null | null | sis/clients/migrations/0005_auto_20150205_1519.py | delphcf/sis | 8a77df020463bb9c28b1a7555574014e830eeab3 | [
"BSD-3-Clause"
] | null | null | null | sis/clients/migrations/0005_auto_20150205_1519.py | delphcf/sis | 8a77df020463bb9c28b1a7555574014e830eeab3 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('clients', '0004_auto_20150128_1412'),
]
operations = [
migrations.AlterField(
model_name='referral',
... | 30.828571 | 117 | 0.591288 | 106 | 1,079 | 5.839623 | 0.537736 | 0.096931 | 0.161551 | 0.187399 | 0.198708 | 0.198708 | 0 | 0 | 0 | 0 | 0 | 0.026889 | 0.276182 | 1,079 | 34 | 118 | 31.735294 | 0.765685 | 0.019462 | 0 | 0.392857 | 0 | 0 | 0.179924 | 0.042614 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.178571 | 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 |
f44370b9a5971f63e7d8728bd88e464e4167c6b1 | 444 | py | Python | Lib/test/crashers/loosing_dict_ref.py | jasonadu/Python-2.5 | 93e24b88564de120b1296165b5c55975fdcb8a3c | [
"PSF-2.0"
] | 49 | 2015-03-10T17:34:19.000Z | 2021-11-10T22:23:18.000Z | Lib/test/crashers/loosing_dict_ref.py | jasonadu/Python-2.5 | 93e24b88564de120b1296165b5c55975fdcb8a3c | [
"PSF-2.0"
] | 1 | 2021-04-11T15:01:12.000Z | 2021-04-11T15:01:12.000Z | Lib/test/crashers/loosing_dict_ref.py | jasonadu/Python-2.5 | 93e24b88564de120b1296165b5c55975fdcb8a3c | [
"PSF-2.0"
] | 32 | 2015-02-06T12:10:32.000Z | 2019-06-18T03:21:36.000Z |
# http://python.org/sf/1303614
class Strange(object):
def __hash__(self):
return hash('hello')
def __eq__(self, other):
x.__dict__ = {} # the old x.__dict__ is deallocated
return False
class X(object):
pass
if __name__ == '__main__':
v = 123
x = X()
x.__dict__ = {... | 20.181818 | 74 | 0.581081 | 58 | 444 | 3.965517 | 0.62069 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047923 | 0.295045 | 444 | 21 | 75 | 21.142857 | 0.686901 | 0.274775 | 0 | 0 | 0 | 0 | 0.056782 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.071429 | 0 | 0.071429 | 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 |
f44d83fd52694b351bc1276ee43e7960f16a3e8c | 6,947 | py | Python | src/compiler.py | Wasdns/t4p4s | f5099669ec5e2c938ad07de34df288d838559b5b | [
"Apache-2.0"
] | null | null | null | src/compiler.py | Wasdns/t4p4s | f5099669ec5e2c938ad07de34df288d838559b5b | [
"Apache-2.0"
] | null | null | null | src/compiler.py | Wasdns/t4p4s | f5099669ec5e2c938ad07de34df288d838559b5b | [
"Apache-2.0"
] | 1 | 2022-02-12T08:45:28.000Z | 2022-02-12T08:45:28.000Z | # Copyright 2016 Eotvos Lorand University, Budapest, Hungary
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 33.399038 | 120 | 0.646466 | 937 | 6,947 | 4.633938 | 0.286019 | 0.02994 | 0.031322 | 0.02994 | 0.169507 | 0.113542 | 0.103409 | 0.040534 | 0.040534 | 0.017043 | 0 | 0.008085 | 0.21664 | 6,947 | 207 | 121 | 33.560386 | 0.789783 | 0.134447 | 0 | 0.066667 | 0 | 0 | 0.14939 | 0.018674 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008333 | 0.091667 | null | null | 0.091667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f45069de00ee3fdf4b0fc739bad24d52742f7b4b | 8,618 | py | Python | tests/sources/ok_test/models_test.py | akshitdewan/ok-client | 3c5eca17100eed808023a815654cfe1c95179080 | [
"Apache-2.0"
] | 30 | 2018-07-10T17:32:49.000Z | 2022-01-03T16:50:56.000Z | tests/sources/ok_test/models_test.py | akshitdewan/ok-client | 3c5eca17100eed808023a815654cfe1c95179080 | [
"Apache-2.0"
] | 62 | 2018-08-07T18:43:33.000Z | 2022-02-17T20:53:03.000Z | tests/sources/ok_test/models_test.py | akshitdewan/ok-client | 3c5eca17100eed808023a815654cfe1c95179080 | [
"Apache-2.0"
] | 26 | 2018-11-13T22:12:47.000Z | 2022-03-20T00:42:26.000Z | from client import exceptions as ex
from client.api import assignment
from client.sources.ok_test import models
from client.sources.common import core
import mock
import unittest
class OkTest(unittest.TestCase):
ASSIGNMENT = 'assignment'
NAME = 'ok test'
POINTS = 10
FILE = 'file'
def setUp(self):
... | 28.631229 | 97 | 0.53075 | 841 | 8,618 | 5.353151 | 0.12604 | 0.063527 | 0.06797 | 0.058641 | 0.653043 | 0.61817 | 0.598401 | 0.598401 | 0.458907 | 0.447135 | 0 | 0.022317 | 0.350081 | 8,618 | 300 | 98 | 28.726667 | 0.781468 | 0.001392 | 0 | 0.589147 | 0 | 0 | 0.051255 | 0 | 0 | 0 | 0 | 0.003333 | 0.093023 | 1 | 0.093023 | false | 0.054264 | 0.023256 | 0.003876 | 0.139535 | 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 |
f4569fae14df94c1c928374ab909ccf8f8f9ccf7 | 2,732 | py | Python | NewsProcessorServer/server/recommendArticles.py | theodorachu/ihavenewsforyou | bc7be1952af5eee8f1ace92469a1364b974ab984 | [
"MIT"
] | 1 | 2017-01-26T01:25:03.000Z | 2017-01-26T01:25:03.000Z | NewsProcessorServer/server/recommendArticles.py | theodorachu/ihavenewsforyou | bc7be1952af5eee8f1ace92469a1364b974ab984 | [
"MIT"
] | null | null | null | NewsProcessorServer/server/recommendArticles.py | theodorachu/ihavenewsforyou | bc7be1952af5eee8f1ace92469a1364b974ab984 | [
"MIT"
] | null | null | null | import json
import requests
import random
import urllib2
from server import app, db
from models import NewsSource
class BingSearch:
def __init__(self, numArticles=20, numSuggestions=3):
self.url = "https://api.cognitive.microsoft.com/bing/v5.0/news/search"
self.key1 = "8175a289e9e143d589269678b9b4603c"
self.key... | 29.06383 | 155 | 0.722182 | 307 | 2,732 | 6.397394 | 0.42671 | 0.03055 | 0.011202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026649 | 0.162152 | 2,732 | 93 | 156 | 29.376344 | 0.831367 | 0.112006 | 0 | 0.058824 | 0 | 0 | 0.126141 | 0.036929 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.088235 | null | null | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f45e7c9f67ad9b1de3dc5ee3d1230898d35bafd4 | 3,777 | py | Python | api/auth.py | ephremdeme/voting | 40135d69b162fbdac77733402710e12545189e02 | [
"MIT"
] | 12 | 2019-05-11T11:28:37.000Z | 2021-02-25T19:40:58.000Z | api/auth.py | ephremdeme/voting | 40135d69b162fbdac77733402710e12545189e02 | [
"MIT"
] | 8 | 2019-05-07T18:50:45.000Z | 2020-10-21T11:23:16.000Z | api/auth.py | ephremdeme/voting | 40135d69b162fbdac77733402710e12545189e02 | [
"MIT"
] | 7 | 2019-05-11T08:16:03.000Z | 2020-11-30T08:34:15.000Z | import json
import jsonpickle
from flask import Blueprint, render_template, redirect, url_for, request, flash, Response
from flask.json import jsonify
from flask_principal import Permission, RoleNeed
from werkzeug.security import generate_password_hash, check_password_hash
from .models import User, Vote
from . import ... | 29.053846 | 97 | 0.637808 | 491 | 3,777 | 4.792261 | 0.246436 | 0.020399 | 0.023799 | 0.032299 | 0.39269 | 0.38249 | 0.38249 | 0.38249 | 0.329367 | 0.310667 | 0 | 0.001059 | 0.249669 | 3,777 | 129 | 98 | 29.27907 | 0.829217 | 0.175536 | 0 | 0.458333 | 0 | 0 | 0.146357 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052083 | false | 0.09375 | 0.09375 | 0.010417 | 0.229167 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f45ee02d13dc41efaecc06cf5cca7fb50b965a34 | 292 | py | Python | examples/ch03/exercises_ch03/ex3_4.py | edson-gomes/Intro-to-Python | 00a2f549916616b0f2036401573e35d66317f998 | [
"MIT"
] | null | null | null | examples/ch03/exercises_ch03/ex3_4.py | edson-gomes/Intro-to-Python | 00a2f549916616b0f2036401573e35d66317f998 | [
"MIT"
] | null | null | null | examples/ch03/exercises_ch03/ex3_4.py | edson-gomes/Intro-to-Python | 00a2f549916616b0f2036401573e35d66317f998 | [
"MIT"
] | null | null | null | # (Complete o código ausente) No código abaixo
for linha in range(2):
for coluna in range(7):
print('@', end='')
print()
# substitua *** de forma que, ao executar o código, sejam apresentadas duas linhas, cada uma contendo sete símbolos @, como:
# > @@@@@@@
# > @@@@@@@
| 26.545455 | 124 | 0.60274 | 38 | 292 | 4.631579 | 0.815789 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.232877 | 292 | 10 | 125 | 29.2 | 0.776786 | 0.640411 | 0 | 0 | 0 | 0 | 0.01 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
f45fe08b40d644bdcd037771194c11646358a4c6 | 14,281 | py | Python | lwm2m/InstanceConstructorLwm2m.py | mjkoster/iottoolkit | 984ccccc708886d12af8abda2c57f9d73583c444 | [
"Apache-2.0"
] | 44 | 2015-01-09T19:37:21.000Z | 2019-12-10T13:41:28.000Z | lwm2m/InstanceConstructorLwm2m.py | kimiscircle/django-rest-framework-iot | c74c73677a23c469fdaed9278187b79c4f86ef7c | [
"Apache-2.0"
] | null | null | null | lwm2m/InstanceConstructorLwm2m.py | kimiscircle/django-rest-framework-iot | c74c73677a23c469fdaed9278187b79c4f86ef7c | [
"Apache-2.0"
] | 10 | 2015-01-23T08:47:46.000Z | 2018-10-28T01:00:19.000Z | '''
Created on Dec 12, 2013
Create services from a service model instance, create objects from an object model instance
How are base objects mapped to services?
This file creates a service object that has multiple services and a single object tree
There could be a service creation service where POSTing this descript... | 44.213622 | 133 | 0.579511 | 1,108 | 14,281 | 7.31769 | 0.279783 | 0.029847 | 0.013814 | 0.00999 | 0.188333 | 0.150962 | 0.128268 | 0.112482 | 0.100395 | 0.100395 | 0 | 0.010012 | 0.321616 | 14,281 | 323 | 134 | 44.213622 | 0.826899 | 0.050277 | 0 | 0.2 | 0 | 0 | 0.172924 | 0.019502 | 0 | 0 | 0.000486 | 0.006192 | 0 | 0 | null | null | 0.004255 | 0.042553 | null | null | 0.008511 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f46637e88b304cd97a2f39046e8687af51241906 | 180 | py | Python | tests/system/resources/catkin_pkgs/python_tests_err/test_bad.py | v4hn/catkin_tools | 2a98a05933a45a8bd1ffa140dfbf482a4a9943ec | [
"Apache-2.0"
] | 151 | 2015-01-12T19:50:23.000Z | 2022-03-23T05:08:09.000Z | tests/system/resources/catkin_pkgs/python_tests_err/test_bad.py | v4hn/catkin_tools | 2a98a05933a45a8bd1ffa140dfbf482a4a9943ec | [
"Apache-2.0"
] | 562 | 2015-01-12T01:31:37.000Z | 2022-03-29T10:27:05.000Z | tests/system/resources/catkin_pkgs/python_tests_err/test_bad.py | v4hn/catkin_tools | 2a98a05933a45a8bd1ffa140dfbf482a4a9943ec | [
"Apache-2.0"
] | 163 | 2015-01-15T03:46:59.000Z | 2022-03-15T20:20:13.000Z | #!/usr/bin/env python
import unittest
class TestBad(unittest.TestCase):
def test_zero(self):
self.assertEqual(0, 1)
if __name__ == '__main__':
unittest.main()
| 13.846154 | 33 | 0.666667 | 23 | 180 | 4.826087 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.2 | 180 | 12 | 34 | 15 | 0.756944 | 0.111111 | 0 | 0 | 0 | 0 | 0.050314 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 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 |
f46638a6f224c0e845e6f2bcb828015884fa147a | 1,045 | py | Python | reimbursement/emails.py | hackkosice/registration | 086103571638706e80b9215ab9f7d57e18ebf13e | [
"MIT"
] | 4 | 2019-02-04T21:21:34.000Z | 2021-03-25T01:49:21.000Z | reimbursement/emails.py | hackkosice/registration | 086103571638706e80b9215ab9f7d57e18ebf13e | [
"MIT"
] | null | null | null | reimbursement/emails.py | hackkosice/registration | 086103571638706e80b9215ab9f7d57e18ebf13e | [
"MIT"
] | 1 | 2018-11-19T10:17:19.000Z | 2018-11-19T10:17:19.000Z | from app import emails
from app.utils import reverse
def create_reimbursement_email(reimb, request):
app = reimb.hacker.application
c = _get_context(app, reimb, request)
return emails.render_mail('mails/reimbursement', reimb.hacker.email, c)
def create_reject_receipt_email(reimb, request):
app = rei... | 33.709677 | 97 | 0.711005 | 136 | 1,045 | 5.25 | 0.242647 | 0.089636 | 0.072829 | 0.10084 | 0.714286 | 0.714286 | 0.533613 | 0.533613 | 0.435574 | 0.435574 | 0 | 0 | 0.161722 | 1,045 | 30 | 98 | 34.833333 | 0.815068 | 0 | 0 | 0.272727 | 0 | 0 | 0.139713 | 0.043062 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.045455 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f46c79c6f6ee22a32d42eca7bdf59d6985481a12 | 4,867 | py | Python | web_routes.py | yombo/module-homebridge | 997b4f17441b20b1de435a39baa7fab0a3470e04 | [
"Apache-2.0"
] | null | null | null | web_routes.py | yombo/module-homebridge | 997b4f17441b20b1de435a39baa7fab0a3470e04 | [
"Apache-2.0"
] | null | null | null | web_routes.py | yombo/module-homebridge | 997b4f17441b20b1de435a39baa7fab0a3470e04 | [
"Apache-2.0"
] | null | null | null | from twisted.internet.defer import inlineCallbacks
from yombo.core.exceptions import YomboWarning
from yombo.core.log import get_logger
from yombo.lib.webinterface.auth import require_auth
logger = get_logger("modules.homebridge.web_routes")
def module_homebridge_routes(webapp):
"""
Adds routes to the webint... | 46.352381 | 120 | 0.63571 | 444 | 4,867 | 6.774775 | 0.18018 | 0.062168 | 0.055851 | 0.06383 | 0.75266 | 0.717088 | 0.681516 | 0.662899 | 0.614362 | 0.493019 | 0 | 0.00028 | 0.266694 | 4,867 | 104 | 121 | 46.798077 | 0.842533 | 0.023834 | 0 | 0.4875 | 0 | 0 | 0.192723 | 0.119315 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0.0125 | 0.2375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f46e81059bb78c1b7713378af1f678317f592d5a | 455 | py | Python | ecommerce_app/signals.py | MdReyajuddin/Django-Payment | c5effdfc197888ced47a447605cab007c9cbc240 | [
"MIT"
] | null | null | null | ecommerce_app/signals.py | MdReyajuddin/Django-Payment | c5effdfc197888ced47a447605cab007c9cbc240 | [
"MIT"
] | null | null | null | ecommerce_app/signals.py | MdReyajuddin/Django-Payment | c5effdfc197888ced47a447605cab007c9cbc240 | [
"MIT"
] | null | null | null | from django.shortcuts import get_object_or_404
from django.dispatch import receiver
from paypal.standard.ipn.signals import valid_ipn_received
from .models import Order
@receiver(valid_ipn_received)
def payment_notification(sender, **kwargs):
ipn=sender
if ipn.payment_status=='complete':
order=get_ob... | 26.764706 | 59 | 0.731868 | 63 | 455 | 5.063492 | 0.555556 | 0.062696 | 0.068966 | 0.087774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016086 | 0.18022 | 455 | 16 | 60 | 28.4375 | 0.839142 | 0 | 0 | 0 | 0 | 0 | 0.01766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f476c8a6593a4d06860c2abd98a6a1e7b8b53ad4 | 10,556 | py | Python | weights/main.py | masoudML/Spatio_Temporal_Adversarial_VSR | e49fe9c4287d8e9f24c330e02ade24e479d121d3 | [
"MIT"
] | null | null | null | weights/main.py | masoudML/Spatio_Temporal_Adversarial_VSR | e49fe9c4287d8e9f24c330e02ade24e479d121d3 | [
"MIT"
] | null | null | null | weights/main.py | masoudML/Spatio_Temporal_Adversarial_VSR | e49fe9c4287d8e9f24c330e02ade24e479d121d3 | [
"MIT"
] | null | null | null | from __future__ import print_function
import argparse
from math import log10
import os
import torch
import torch.nn as nn
import torch.optim as optim
import torch.backends.cudnn as cudnn
from torch.autograd import Variable
from torch.utils.data import DataLoader
from rbpn import Net as
from rbpn import FeatureExtract... | 46.915556 | 256 | 0.707939 | 1,463 | 10,556 | 4.904306 | 0.196856 | 0.030105 | 0.056864 | 0.026341 | 0.334495 | 0.281394 | 0.250871 | 0.218815 | 0.191777 | 0.178397 | 0 | 0.016568 | 0.153751 | 10,556 | 224 | 257 | 47.125 | 0.786634 | 0.104396 | 0 | 0.036364 | 0 | 0.006061 | 0.159563 | 0.017388 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.10303 | null | null | 0.109091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f483f98a45c12c96a6abfbbdf536215c70f7ea2c | 2,242 | py | Python | train.py | tejasbangera/UdacityProject3 | ef4952373046c2a709d0952d4ae4664ca3f85ed4 | [
"Apache-2.0"
] | null | null | null | train.py | tejasbangera/UdacityProject3 | ef4952373046c2a709d0952d4ae4664ca3f85ed4 | [
"Apache-2.0"
] | null | null | null | train.py | tejasbangera/UdacityProject3 | ef4952373046c2a709d0952d4ae4664ca3f85ed4 | [
"Apache-2.0"
] | null | null | null | from sklearn.linear_model import LogisticRegression
import argparse
import os
import numpy as np
from sklearn.metrics import mean_squared_error
import joblib
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import OneHotEncoder
import pandas as pd
from azureml.core.run import Run... | 35.587302 | 145 | 0.726583 | 334 | 2,242 | 4.670659 | 0.404192 | 0.013462 | 0.015385 | 0.021154 | 0.167949 | 0.167949 | 0.167949 | 0.167949 | 0.125641 | 0.125641 | 0 | 0.005302 | 0.158787 | 2,242 | 62 | 146 | 36.16129 | 0.821845 | 0.145852 | 0 | 0 | 0 | 0.025641 | 0.184943 | 0 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0.076923 | false | 0 | 0.282051 | 0 | 0.410256 | 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 |
f4849f1381f299f5ff3694e00817f3181994771a | 407 | py | Python | sphere.py | raworahi/PyCsEx | 539d269c7406f7f33e0b81e6d53f1c08d145ca16 | [
"Unlicense"
] | null | null | null | sphere.py | raworahi/PyCsEx | 539d269c7406f7f33e0b81e6d53f1c08d145ca16 | [
"Unlicense"
] | null | null | null | sphere.py | raworahi/PyCsEx | 539d269c7406f7f33e0b81e6d53f1c08d145ca16 | [
"Unlicense"
] | null | null | null | # Calculate the volume and surface area of a sphere
# Volume is V=4/3*pi*radius^3
# Area is 4*pi*radius^2
# Get radius as input and make sure it is correct
radius = float(input('enter a radius: '))
print('radius =',radius)
import math
# Calculate area
area = 4*math.pi*math.pow(radius,2)
print ('area ... | 18.5 | 52 | 0.653563 | 69 | 407 | 3.855072 | 0.42029 | 0.015038 | 0.075188 | 0.097744 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031056 | 0.208845 | 407 | 21 | 53 | 19.380952 | 0.795031 | 0.398034 | 0 | 0 | 0 | 0 | 0.176744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
f490d7c7222b62b4a51d280c68b7d215ae345400 | 482 | py | Python | deepsentimentanalysis/__init__.py | harry-7/Deep-Sentiment-Analysis | 4540c5ef90c84fe3b3b16fa5661cb1bc367bcdee | [
"MIT"
] | 2 | 2018-04-23T17:27:09.000Z | 2019-05-16T13:02:40.000Z | deepsentimentanalysis/__init__.py | harry-7/Deep-Sentiment-Analysis | 4540c5ef90c84fe3b3b16fa5661cb1bc367bcdee | [
"MIT"
] | null | null | null | deepsentimentanalysis/__init__.py | harry-7/Deep-Sentiment-Analysis | 4540c5ef90c84fe3b3b16fa5661cb1bc367bcdee | [
"MIT"
] | null | null | null | """
Module deep_sentiment_analysis
"""
__author__ = 'Hemanth Kumar Veeranki'
__version__ = '0.1.0'
config = {
'train_input_file': '../data/train.csv',
'test_input_file': '../data/test.csv',
'tokenizer_pickle': '../models/tokenizer_pureLSTM.pickle',
'lstm_model_loc': '../models/pureLSTM_model.h5',
'd... | 28.352941 | 62 | 0.659751 | 60 | 482 | 4.85 | 0.633333 | 0.061856 | 0.089347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043689 | 0.145228 | 482 | 16 | 63 | 30.125 | 0.662621 | 0.062241 | 0 | 0 | 0 | 0 | 0.644144 | 0.256757 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be2efcb0f19a679581a8fcf83131ea48fc09eab9 | 14,255 | py | Python | tests/main.py | daobook/fabric | 4318a501f5ad9def888a99fe7f817d12a204d526 | [
"BSD-2-Clause"
] | null | null | null | tests/main.py | daobook/fabric | 4318a501f5ad9def888a99fe7f817d12a204d526 | [
"BSD-2-Clause"
] | null | null | null | tests/main.py | daobook/fabric | 4318a501f5ad9def888a99fe7f817d12a204d526 | [
"BSD-2-Clause"
] | null | null | null | """
Tests concerned with the ``fab`` tool & how it overrides Invoke defaults.
"""
import os
import sys
import re
from invoke import run
from invoke.util import cd
from mock import patch
import pytest # because WHY would you expose @skip normally? -_-
from pytest_relaxed import raises
from fabric.confi... | 39.269972 | 91 | 0.589407 | 1,692 | 14,255 | 4.780733 | 0.268322 | 0.039436 | 0.048461 | 0.054642 | 0.255285 | 0.240944 | 0.225368 | 0.206082 | 0.17839 | 0.168871 | 0 | 0.00513 | 0.31624 | 14,255 | 362 | 92 | 39.378453 | 0.824767 | 0.220835 | 0 | 0.237668 | 0 | 0 | 0.169108 | 0.038226 | 0 | 0 | 0 | 0.005525 | 0.022422 | 1 | 0.179372 | false | 0.067265 | 0.058296 | 0 | 0.295964 | 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 |
be3058609c023f4bb7f0df8af5e5c166a6ca4263 | 207 | py | Python | Aspect based Senti analysis/data_scraping/reviewscraper/test_sqlite_2.py | hixio-mh/Aspect-Based-Sentiment-Analysis | 3527dd7c36f6b57f41ba02157d47cfdb7b84a286 | [
"MIT"
] | 1 | 2017-12-22T15:34:34.000Z | 2017-12-22T15:34:34.000Z | Aspect based Senti analysis/data_scraping/reviewscraper/test_sqlite_2.py | pranithkumar/Aspect-Based-Sentiment-Analysis | 55355b8c38f1a0d8ed67665cce0901d8b3e002cd | [
"MIT"
] | 12 | 2017-12-29T12:13:07.000Z | 2022-03-11T23:19:24.000Z | Aspect based Senti analysis/data_scraping/reviewscraper/test_sqlite_2.py | hixio-mh/Aspect-Based-Sentiment-Analysis | 3527dd7c36f6b57f41ba02157d47cfdb7b84a286 | [
"MIT"
] | 1 | 2017-12-19T09:49:52.000Z | 2017-12-19T09:49:52.000Z | import sqlite3
conn = sqlite3.connect('database_test.db')
cur = conn.cursor()
cur.execute("SELECT r_review from mobiles1")
rows = cur.fetchall()
for row in rows:
print(row[0].encode("UTF-8"))
conn.close()
| 20.7 | 44 | 0.724638 | 33 | 207 | 4.484848 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027174 | 0.111111 | 207 | 9 | 45 | 23 | 0.777174 | 0 | 0 | 0 | 0 | 0 | 0.241546 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be323e89e3c66a59c23fc22e741d247aa87d1bdb | 1,646 | py | Python | numba/typedefs.py | shiquanwang/numba | a41c85fdd7d6abf8ea1ebe9116939ddc2217193b | [
"BSD-2-Clause"
] | 1 | 2015-11-05T19:33:18.000Z | 2015-11-05T19:33:18.000Z | numba/typedefs.py | shiquanwang/numba | a41c85fdd7d6abf8ea1ebe9116939ddc2217193b | [
"BSD-2-Clause"
] | null | null | null | numba/typedefs.py | shiquanwang/numba | a41c85fdd7d6abf8ea1ebe9116939ddc2217193b | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import
from numba import *
_trace_refs_ = hasattr(sys, 'getobjects')
if _trace_refs_:
pyobject_head_extra_fields = [
('ob_next', void.pointer()),
('ob_prev', void.pointer()),
]
else:
pyobject_head_extra_field... | 24.939394 | 64 | 0.631227 | 171 | 1,646 | 5.695906 | 0.444444 | 0.098563 | 0.052361 | 0.070842 | 0.100616 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000793 | 0.2339 | 1,646 | 65 | 65 | 25.323077 | 0.77161 | 0.037667 | 0 | 0.064516 | 0 | 0 | 0.156983 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.064516 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be3b6864ba095c13c07f37e89c3f6b3b6403a6d4 | 945 | py | Python | 002-pyopengl/PyOpenGL-Demo-3.0.1b1/PyOpenGL-Demo/GLE/cone.py | lhl/vrdev | fc1a9af2b51d159c99c8779349ef3392a70ed9ed | [
"Apache-2.0"
] | 12 | 2015-12-02T02:36:36.000Z | 2020-09-20T17:14:24.000Z | 002-pyopengl/PyOpenGL-Demo-3.0.1b1/PyOpenGL-Demo/GLE/cone.py | lhl/vrdev | fc1a9af2b51d159c99c8779349ef3392a70ed9ed | [
"Apache-2.0"
] | null | null | null | 002-pyopengl/PyOpenGL-Demo-3.0.1b1/PyOpenGL-Demo/GLE/cone.py | lhl/vrdev | fc1a9af2b51d159c99c8779349ef3392a70ed9ed | [
"Apache-2.0"
] | 8 | 2016-11-02T11:17:04.000Z | 2021-10-21T07:42:19.000Z | #!/usr/bin/python
# This is statement is required by the build system to query build info
if __name__ == '__build__':
raise Exception
from OpenGL.GL import *
from OpenGL.GLUT import *
from OpenGL.GLE import *
import maintest
# draw the polycone shape
def DrawStuff():
glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFE... | 27 | 129 | 0.637037 | 188 | 945 | 3.095745 | 0.382979 | 0.130584 | 0.134021 | 0.103093 | 0.109966 | 0.087629 | 0.07732 | 0.07732 | 0.07732 | 0.07732 | 0 | 0.125 | 0.17037 | 945 | 34 | 130 | 27.794118 | 0.617347 | 0.215873 | 0 | 0 | 0 | 0 | 0.012228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | true | 0 | 0.222222 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be3c04ffc9564b857d7f514a1aa4b2084bf388e9 | 4,855 | py | Python | tests/test_mixins.py | st8st8/django-organizations | a38f8fd1e85466b33f99ebf09a57bec8cfd43b55 | [
"BSD-2-Clause"
] | null | null | null | tests/test_mixins.py | st8st8/django-organizations | a38f8fd1e85466b33f99ebf09a57bec8cfd43b55 | [
"BSD-2-Clause"
] | null | null | null | tests/test_mixins.py | st8st8/django-organizations | a38f8fd1e85466b33f99ebf09a57bec8cfd43b55 | [
"BSD-2-Clause"
] | null | null | null | from django.contrib.auth.models import User
from django.core.exceptions import PermissionDenied
from django.http import HttpResponse
from django.test import TestCase
from django.test.client import RequestFactory
from django.test.utils import override_settings
from organizations.models import Organization, Organization... | 40.123967 | 79 | 0.686715 | 531 | 4,855 | 6.116761 | 0.184557 | 0.031404 | 0.077586 | 0.092365 | 0.532328 | 0.488608 | 0.389778 | 0.31835 | 0.31835 | 0.294335 | 0 | 0.006261 | 0.210505 | 4,855 | 120 | 80 | 40.458333 | 0.841117 | 0.022657 | 0 | 0.293478 | 0 | 0 | 0.022631 | 0 | 0 | 0 | 0 | 0 | 0.195652 | 1 | 0.119565 | false | 0.065217 | 0.097826 | 0.021739 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
be48d28c6e5faff77383ab0d9c40dc998c905a3c | 4,163 | py | Python | measure_distance_stereo_vision.py | daniode12/Ranger | f9e038ac907a0e5f6b34830d9cce865421410363 | [
"MIT"
] | null | null | null | measure_distance_stereo_vision.py | daniode12/Ranger | f9e038ac907a0e5f6b34830d9cce865421410363 | [
"MIT"
] | null | null | null | measure_distance_stereo_vision.py | daniode12/Ranger | f9e038ac907a0e5f6b34830d9cce865421410363 | [
"MIT"
] | null | null | null | import sys
import cv2
import numpy as np
import time
import imutils
from matplotlib import pyplot as plt
# Functions
import HSV_filter as hsv
import shape_recognition as shape
import triangulation as tri
import no_mask
import predict_real_time as pre
#import calibration as calib
# Open both cameras
frame_left = cv2.i... | 45.25 | 139 | 0.685563 | 621 | 4,163 | 4.409018 | 0.272142 | 0.069028 | 0.043828 | 0.061359 | 0.395179 | 0.309715 | 0.288167 | 0.282323 | 0.273557 | 0.273557 | 0 | 0.05759 | 0.140764 | 4,163 | 92 | 140 | 45.25 | 0.707856 | 0.481624 | 0 | 0.058824 | 0 | 0.058824 | 0.231753 | 0.184337 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.323529 | 0 | 0.323529 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
be4a635564f188b538d4a04a1c29aaf191b51ba3 | 2,733 | py | Python | bad-examples/day-13-1.py | annapoulakos/advent-of-code | 95bf7eb282045194af46f482c3ab847c91f62c44 | [
"MIT"
] | 3 | 2020-12-03T19:56:50.000Z | 2021-11-19T00:20:04.000Z | bad-examples/day-13-1.py | annapoulakos/advent-of-code | 95bf7eb282045194af46f482c3ab847c91f62c44 | [
"MIT"
] | null | null | null | bad-examples/day-13-1.py | annapoulakos/advent-of-code | 95bf7eb282045194af46f482c3ab847c91f62c44 | [
"MIT"
] | null | null | null | import click
import utils
import itertools
import re
from collections import namedtuple
Rule = namedtuple('Rule', 'actor action value actee')
Node = namedtuple('Node', 'name')
Edge = namedtuple('Edge', 'pair weight')
import pathlib
base_path = pathlib.Path(__file__).parent / 'utils' / 'day-13.txt'
DATA = [
'Alic... | 26.533981 | 78 | 0.613611 | 362 | 2,733 | 4.585635 | 0.287293 | 0.109639 | 0.125301 | 0.18012 | 0.271687 | 0.271687 | 0.254217 | 0.046988 | 0.046988 | 0 | 0 | 0.016208 | 0.255031 | 2,733 | 102 | 79 | 26.794118 | 0.799116 | 0 | 0 | 0 | 0 | 0 | 0.358214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012987 | false | 0 | 0.077922 | 0 | 0.090909 | 0.207792 | 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 |
be501299f9ec2d1f18e181dd4bd5abb720a24e27 | 5,335 | py | Python | linux_odp/.waf-1.6.8-3e3391c5f23fbabad81e6d17c63a1b1e/waflib/Tools/errcheck.py | dproc/trex_odp_porting_integration | 84d5f27a7eab8186b68c5a2b1409d3d0f41f859b | [
"Apache-2.0"
] | null | null | null | linux_odp/.waf-1.6.8-3e3391c5f23fbabad81e6d17c63a1b1e/waflib/Tools/errcheck.py | dproc/trex_odp_porting_integration | 84d5f27a7eab8186b68c5a2b1409d3d0f41f859b | [
"Apache-2.0"
] | null | null | null | linux_odp/.waf-1.6.8-3e3391c5f23fbabad81e6d17c63a1b1e/waflib/Tools/errcheck.py | dproc/trex_odp_porting_integration | 84d5f27a7eab8186b68c5a2b1409d3d0f41f859b | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
# encoding: utf-8
# WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file
import sys
if sys.hexversion < 0x020400f0: from sets import Set as set
typos={'feature':'features','sources':'source','targets':'target','include':'includes','export_include':... | 34.642857 | 195 | 0.68866 | 891 | 5,335 | 4 | 0.25477 | 0.032828 | 0.013468 | 0.010101 | 0.113636 | 0.084175 | 0.069024 | 0.045455 | 0.032548 | 0.032548 | 0 | 0.005926 | 0.146017 | 5,335 | 153 | 196 | 34.869281 | 0.776339 | 0.025679 | 0 | 0.147651 | 1 | 0.006711 | 0.245668 | 0.01367 | 0 | 0 | 0.001925 | 0 | 0 | 1 | 0.100671 | false | 0.013423 | 0.033557 | 0 | 0.181208 | 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 |
be569fc19b9733657371e22e3e1767eebc829c3e | 4,576 | py | Python | testing/scripts/seldon_utils.py | fico-jessecarroll/seldon-core | 229853eeff0cf36f3b385a79c530c61adefd4742 | [
"Apache-2.0"
] | null | null | null | testing/scripts/seldon_utils.py | fico-jessecarroll/seldon-core | 229853eeff0cf36f3b385a79c530c61adefd4742 | [
"Apache-2.0"
] | null | null | null | testing/scripts/seldon_utils.py | fico-jessecarroll/seldon-core | 229853eeff0cf36f3b385a79c530c61adefd4742 | [
"Apache-2.0"
] | null | null | null | import requests
from requests.auth import HTTPBasicAuth
from seldon_core.proto import prediction_pb2
from seldon_core.proto import prediction_pb2_grpc
import grpc
import numpy as np
from k8s_utils import *
def wait_for_rollout(deploymentName):
ret = run("kubectl rollout status -n test1 deploy/" + deploymentName, s... | 38.133333 | 132 | 0.662806 | 555 | 4,576 | 5.317117 | 0.210811 | 0.037953 | 0.032531 | 0.05083 | 0.696035 | 0.678753 | 0.627923 | 0.602169 | 0.602169 | 0.602169 | 0 | 0.024164 | 0.222247 | 4,576 | 119 | 133 | 38.453782 | 0.805001 | 0 | 0 | 0.59434 | 0 | 0 | 0.111694 | 0.018361 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075472 | false | 0.028302 | 0.066038 | 0 | 0.235849 | 0.056604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be585579cf2d6b4f6d0767ead27acbe4225f2d1d | 476 | py | Python | python/Thread Example.py | Aarowaim/snippets | 5ff5b84154fa63c1005d115d90d4ad9758efccf9 | [
"Apache-2.0"
] | null | null | null | python/Thread Example.py | Aarowaim/snippets | 5ff5b84154fa63c1005d115d90d4ad9758efccf9 | [
"Apache-2.0"
] | null | null | null | python/Thread Example.py | Aarowaim/snippets | 5ff5b84154fa63c1005d115d90d4ad9758efccf9 | [
"Apache-2.0"
] | null | null | null | from threading import Thread
import time
def main_loop():
mythread = LedThread()
mythread.start()
time.sleep(20)
mythread.stop()
class LedThread(Thread):
def __init__(self):
super(LedThread, self).__init__()
self._keepgoing = True
def run(self):
... | 16.413793 | 42 | 0.563025 | 51 | 476 | 5 | 0.529412 | 0.152941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012539 | 0.329832 | 476 | 28 | 43 | 17 | 0.786834 | 0 | 0 | 0 | 0 | 0 | 0.011161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.388889 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be5b8dab9ee5eb66354570516ecee212e9ed8c83 | 3,161 | py | Python | examples/diff/diff.py | adamruth/python-fire | 6912ccd56f50e0f4bb30a0725d95858ef29f3bde | [
"Apache-2.0"
] | 1 | 2020-02-05T04:43:03.000Z | 2020-02-05T04:43:03.000Z | examples/diff/diff.py | chesnjak/python-fire | 72604f40314008e562ba47936dcc183b51166b72 | [
"Apache-2.0"
] | null | null | null | examples/diff/diff.py | chesnjak/python-fire | 72604f40314008e562ba47936dcc183b51166b72 | [
"Apache-2.0"
] | 1 | 2020-07-15T22:58:25.000Z | 2020-07-15T22:58:25.000Z | # Copyright (C) 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 30.394231 | 82 | 0.740905 | 449 | 3,161 | 5.153675 | 0.347439 | 0.072602 | 0.046672 | 0.05618 | 0.231634 | 0.152982 | 0.129646 | 0.129646 | 0.070009 | 0.070009 | 0 | 0.005285 | 0.161974 | 3,161 | 103 | 83 | 30.68932 | 0.868252 | 0.627966 | 0 | 0.129032 | 0 | 0 | 0.012227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0 | 0.129032 | 0.129032 | 0.483871 | 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 |
be5c34af8d27a21a0247454ae4090a4540e6e525 | 2,153 | py | Python | tests/api/test_areas_endpoints.py | ufosoftwarellc/cannlytics | 236bd597e30530666400fef6dceaae6de6aa587b | [
"MIT"
] | 1 | 2021-06-07T13:53:06.000Z | 2021-06-07T13:53:06.000Z | tests/api/test_areas_endpoints.py | ufosoftwarellc/cannlytics | 236bd597e30530666400fef6dceaae6de6aa587b | [
"MIT"
] | null | null | null | tests/api/test_areas_endpoints.py | ufosoftwarellc/cannlytics | 236bd597e30530666400fef6dceaae6de6aa587b | [
"MIT"
] | null | null | null | """
API Test | Cannlytics API
Author: Keegan Skeate
Contact: <keegan@cannlytics.com>
Created: 5/7/2021
Updated: 5/7/2021
License: MIT License <https://opensource.org/licenses/MIT>
"""
import os
import environ
import pytest
import requests
import sys
sys.path.append('../../')
from cannlytics import firebase
BASE = ... | 21.747475 | 89 | 0.591268 | 230 | 2,153 | 5.465217 | 0.413043 | 0.062053 | 0.090692 | 0.07319 | 0.20366 | 0.20366 | 0.147176 | 0.147176 | 0.089101 | 0.089101 | 0 | 0.01764 | 0.236414 | 2,153 | 98 | 90 | 21.969388 | 0.746959 | 0.391547 | 0 | 0.290909 | 0 | 0 | 0.288056 | 0.046838 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0 | false | 0 | 0.109091 | 0 | 0.109091 | 0.036364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
be6064b42781223eae45754f2d3ca74a98755096 | 700 | py | Python | slowapi/util.py | alpkeskin/slowapi | 80eaea038df1ff60264dffd2df86c78da14b71f5 | [
"MIT"
] | 404 | 2020-02-21T15:55:34.000Z | 2022-03-30T07:54:12.000Z | slowapi/util.py | alpkeskin/slowapi | 80eaea038df1ff60264dffd2df86c78da14b71f5 | [
"MIT"
] | 65 | 2020-04-20T16:13:23.000Z | 2022-03-25T03:23:01.000Z | slowapi/util.py | alpkeskin/slowapi | 80eaea038df1ff60264dffd2df86c78da14b71f5 | [
"MIT"
] | 36 | 2020-05-11T14:12:19.000Z | 2022-03-22T04:49:47.000Z | from starlette.requests import Request
def get_ipaddr(request: Request) -> str:
"""
Returns the ip address for the current request (or 127.0.0.1 if none found)
based on the X-Forwarded-For headers.
Note that a more robust method for determining IP address of the client is
provided by uvicorn's ... | 31.818182 | 79 | 0.69 | 108 | 700 | 4.407407 | 0.435185 | 0.042017 | 0.05042 | 0.058824 | 0.445378 | 0.445378 | 0.445378 | 0.445378 | 0.445378 | 0.315126 | 0 | 0.043876 | 0.218571 | 700 | 21 | 80 | 33.333333 | 0.826325 | 0.447143 | 0 | 0.25 | 0 | 0 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be66bc0ade04d8700a7eca834f8c49d726d11d12 | 4,876 | py | Python | codeselfstudy/helpers/tests/test_utils.py | codeselfstudy/codeselfstudy_django | 6ecb22a453df9be34e2174489e026dfbd026c50e | [
"BSD-3-Clause"
] | 1 | 2020-11-21T04:22:29.000Z | 2020-11-21T04:22:29.000Z | codeselfstudy/helpers/tests/test_utils.py | codeselfstudy/codeselfstudy_django | 6ecb22a453df9be34e2174489e026dfbd026c50e | [
"BSD-3-Clause"
] | 17 | 2020-11-21T00:41:50.000Z | 2020-12-12T08:46:40.000Z | codeselfstudy/helpers/tests/test_utils.py | codeselfstudy/codeselfstudy_django | 6ecb22a453df9be34e2174489e026dfbd026c50e | [
"BSD-3-Clause"
] | null | null | null | import logging
from textwrap import dedent
import pytest
from bs4 import BeautifulSoup
from codeselfstudy.helpers import utils
log = logging.getLogger(__name__)
class TestSafeListGet():
@pytest.mark.parametrize("lst, idx, default, expected", [
([1, 2, 3], 0, None, 1),
([1, 2, 3], 2, None, 3),
... | 41.675214 | 1,690 | 0.636792 | 704 | 4,876 | 4.332386 | 0.369318 | 0.023607 | 0.017705 | 0.029508 | 0.100328 | 0.077049 | 0.053115 | 0.053115 | 0.053115 | 0.053115 | 0 | 0.031115 | 0.242002 | 4,876 | 116 | 1,691 | 42.034483 | 0.794102 | 0.598441 | 0 | 0 | 0 | 0 | 0.13173 | 0 | 0 | 0 | 0 | 0 | 0.196078 | 1 | 0.098039 | false | 0 | 0.098039 | 0 | 0.27451 | 0 | 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 |
be6de8b6c1c8683328946b6c2fbb7636e8ce0bdc | 1,310 | py | Python | src/pyndf/process/data/progress.py | Guillaume-Guardia/ndf-python | 836498b210d2f921e76292df8046cd79006b458a | [
"MIT"
] | null | null | null | src/pyndf/process/data/progress.py | Guillaume-Guardia/ndf-python | 836498b210d2f921e76292df8046cd79006b458a | [
"MIT"
] | null | null | null | src/pyndf/process/data/progress.py | Guillaume-Guardia/ndf-python | 836498b210d2f921e76292df8046cd79006b458a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
class Progress:
def __init__(self, callback, global_min=0, global_max=0, local_max=100):
self.callback = callback
self.global_min = global_min
self.global_max = global_max
self.global_value = global_min
self.local_min = 0
self.local_max = lo... | 28.478261 | 109 | 0.634351 | 177 | 1,310 | 4.412429 | 0.175141 | 0.207426 | 0.12548 | 0.108835 | 0.412292 | 0.166453 | 0.166453 | 0.166453 | 0.122919 | 0.122919 | 0 | 0.01466 | 0.270992 | 1,310 | 45 | 110 | 29.111111 | 0.803141 | 0.016031 | 0 | 0.272727 | 0 | 0 | 0.030303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0.060606 | 0.30303 | 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 |
be6e7202a584e5e9866341b2a15ce4ac37d08c05 | 415 | py | Python | Temperature-Calculator.py | jhvo2003/Skills-Lab-6 | 21fb596c19ed40c31fe08d58f81a4c0e5f6994aa | [
"Unlicense"
] | null | null | null | Temperature-Calculator.py | jhvo2003/Skills-Lab-6 | 21fb596c19ed40c31fe08d58f81a4c0e5f6994aa | [
"Unlicense"
] | null | null | null | Temperature-Calculator.py | jhvo2003/Skills-Lab-6 | 21fb596c19ed40c31fe08d58f81a4c0e5f6994aa | [
"Unlicense"
] | null | null | null | name = input("What is your name?")
temperature = input("What is the temperature outside right now?:")
c_f = int(input("Input 0 if this temperature is Celsius and input 2 if this temperature is in Fahrenheit: " ))
if (c_f == 0):
Fahrenheit = (c_f * (9/5)) + 32
print("This temperature in Fahrenheit is ", Fahrenhe... | 41.5 | 110 | 0.672289 | 66 | 415 | 4.166667 | 0.409091 | 0.029091 | 0.08 | 0.138182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033033 | 0.19759 | 415 | 9 | 111 | 46.111111 | 0.792793 | 0 | 0 | 0 | 0 | 0 | 0.515663 | 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 |
be6f2030952496aaef5b617c30f9e62972bd58bf | 535 | py | Python | konfera/migrations/0033_auto_20170215_1932.py | pyconsk/django-konfera | 1072778e109d67bbc49fe3b06fa8ab29d6131eea | [
"MIT"
] | 69 | 2016-09-11T08:49:06.000Z | 2022-02-04T12:38:57.000Z | konfera/migrations/0033_auto_20170215_1932.py | pyconsk/django-konfera | 1072778e109d67bbc49fe3b06fa8ab29d6131eea | [
"MIT"
] | 300 | 2016-09-09T14:53:49.000Z | 2018-01-22T15:10:28.000Z | konfera/migrations/0033_auto_20170215_1932.py | pyconsk/django-konfera | 1072778e109d67bbc49fe3b06fa8ab29d6131eea | [
"MIT"
] | 72 | 2016-09-13T13:28:59.000Z | 2022-01-20T20:01:33.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-02-15 19:32
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('konfera', '0032_auto_20170202_2125'),
]
operations = [
migrations.AlterFiel... | 25.47619 | 131 | 0.639252 | 63 | 535 | 5.269841 | 0.84127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086849 | 0.246729 | 535 | 20 | 132 | 26.75 | 0.736973 | 0.127103 | 0 | 0 | 1 | 0 | 0.241379 | 0.049569 | 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 |
be703cdde0448481d5f3902fd6ca4d592c62e347 | 650 | py | Python | bookwyrm/migrations/0094_importitem_book_guess.py | mouse-reeve/fedireads | e3471fcc3500747a1b1deaaca662021aae5b08d4 | [
"CC0-1.0"
] | 270 | 2020-01-27T06:06:07.000Z | 2020-06-21T00:28:18.000Z | bookwyrm/migrations/0094_importitem_book_guess.py | mouse-reeve/fedireads | e3471fcc3500747a1b1deaaca662021aae5b08d4 | [
"CC0-1.0"
] | 158 | 2020-02-10T20:36:54.000Z | 2020-06-26T17:12:54.000Z | bookwyrm/migrations/0094_importitem_book_guess.py | mouse-reeve/fedireads | e3471fcc3500747a1b1deaaca662021aae5b08d4 | [
"CC0-1.0"
] | 15 | 2020-02-13T21:53:33.000Z | 2020-06-17T16:52:46.000Z | # Generated by Django 3.2.4 on 2021-09-11 14:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("bookwyrm", "0093_alter_sitesettings_instance_short_description"),
]
operations = [
migrations.AddField(
... | 25 | 75 | 0.575385 | 66 | 650 | 5.5 | 0.666667 | 0.066116 | 0.077135 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04328 | 0.324615 | 650 | 25 | 76 | 26 | 0.783599 | 0.069231 | 0 | 0.105263 | 1 | 0 | 0.167496 | 0.082919 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be77a67f1b0d3aee8586b05c6ef22ec8844d2be4 | 164 | py | Python | ch5/readQuick.py | antallen/PythonMaterial | c582fb1610610feb72002f43a3758d5c58d6da85 | [
"MIT"
] | null | null | null | ch5/readQuick.py | antallen/PythonMaterial | c582fb1610610feb72002f43a3758d5c58d6da85 | [
"MIT"
] | null | null | null | ch5/readQuick.py | antallen/PythonMaterial | c582fb1610610feb72002f43a3758d5c58d6da85 | [
"MIT"
] | 1 | 2021-07-23T09:59:15.000Z | 2021-07-23T09:59:15.000Z | # 讀取檔案內容
files = open("stores.txt","r", encoding='utf-8')
# 建立一個空的串列,準備接收檔案的每一行文字
stores = []
# 利用 readlines 將每一行文字,放入串列
stores = files.readlines()
print(stores) | 16.4 | 48 | 0.70122 | 21 | 164 | 5.47619 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.128049 | 164 | 10 | 49 | 16.4 | 0.797203 | 0.323171 | 0 | 0 | 0 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
be78feba1786d501b1c9a7a184fe1890a63f96c7 | 14,160 | py | Python | pypy/objspace/std/longobject.py | benoitc/pypy | a3e1b12d1d01dc29056b7badc051ffc034297658 | [
"MIT"
] | 1 | 2020-01-21T11:10:51.000Z | 2020-01-21T11:10:51.000Z | pypy/objspace/std/longobject.py | benoitc/pypy | a3e1b12d1d01dc29056b7badc051ffc034297658 | [
"MIT"
] | null | null | null | pypy/objspace/std/longobject.py | benoitc/pypy | a3e1b12d1d01dc29056b7badc051ffc034297658 | [
"MIT"
] | null | null | null | import sys
from pypy.interpreter.error import OperationError
from pypy.objspace.std import model, newformat
from pypy.objspace.std.model import registerimplementation, W_Object
from pypy.objspace.std.register_all import register_all
from pypy.objspace.std.multimethod import FailedToImplementArgs
from pypy.objspace.std.... | 36.494845 | 93 | 0.693997 | 2,086 | 14,160 | 4.434324 | 0.116012 | 0.062919 | 0.054054 | 0.041514 | 0.604757 | 0.552324 | 0.487892 | 0.473189 | 0.449514 | 0.417514 | 0 | 0.020021 | 0.202825 | 14,160 | 387 | 94 | 36.589147 | 0.799433 | 0.046328 | 0 | 0.232082 | 0 | 0 | 0.101478 | 0.027669 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003413 | 0.051195 | 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 |
be80567a95f7c3a862cabcb8b06e58088cbf0f8e | 2,366 | py | Python | Lambda.py | Araz1103/Udacity_SconesImageClassification_AWS_NanoDegree | 231a956da063ab6a4b3d7ca93b2f84c0bce95545 | [
"MIT"
] | null | null | null | Lambda.py | Araz1103/Udacity_SconesImageClassification_AWS_NanoDegree | 231a956da063ab6a4b3d7ca93b2f84c0bce95545 | [
"MIT"
] | null | null | null | Lambda.py | Araz1103/Udacity_SconesImageClassification_AWS_NanoDegree | 231a956da063ab6a4b3d7ca93b2f84c0bce95545 | [
"MIT"
] | null | null | null | # Lambda Function I: Serialise Image Data
import json
import boto3
import base64
s3 = boto3.client('s3')
def lambda_handler(event, context):
"""A function to serialize target data from S3"""
# Get the s3 address from the Step Function event input
key = event["s3_key"]## TODO: fill in
bucket = event[... | 25.170213 | 106 | 0.653001 | 313 | 2,366 | 4.859425 | 0.367412 | 0.035503 | 0.04931 | 0.04142 | 0.184089 | 0.128863 | 0.08547 | 0 | 0 | 0 | 0 | 0.032493 | 0.245562 | 2,366 | 94 | 107 | 25.170213 | 0.819608 | 0.310651 | 0 | 0.392157 | 0 | 0 | 0.163138 | 0.044832 | 0 | 0 | 0 | 0.010638 | 0 | 1 | 0.058824 | false | 0.039216 | 0.137255 | 0 | 0.27451 | 0.039216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
be8649f4db58afc10baa2e8b053361739e8f5caa | 7,745 | py | Python | wsgiref/handlers.py | theclashingfritz/Cog-Invasion-Online-Dump | 2561abbacb3e2e288e06f3f04b935b5ed589c8f8 | [
"Apache-2.0"
] | 1 | 2020-03-12T16:44:10.000Z | 2020-03-12T16:44:10.000Z | wsgiref/handlers.py | theclashingfritz/Cog-Invasion-Online-Dump | 2561abbacb3e2e288e06f3f04b935b5ed589c8f8 | [
"Apache-2.0"
] | null | null | null | wsgiref/handlers.py | theclashingfritz/Cog-Invasion-Online-Dump | 2561abbacb3e2e288e06f3f04b935b5ed589c8f8 | [
"Apache-2.0"
] | null | null | null | # uncompyle6 version 3.2.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)]
# Embedded file name: wsgiref.handlers
from types import StringType
from util import FileWrapper, guess_scheme, is_hop_by_hop
from headers import Headers
impo... | 30.253906 | 136 | 0.601808 | 933 | 7,745 | 4.80493 | 0.214362 | 0.039259 | 0.012046 | 0.012715 | 0.116886 | 0.068258 | 0.031229 | 0.031229 | 0.010707 | 0 | 0 | 0.013321 | 0.292447 | 7,745 | 256 | 136 | 30.253906 | 0.804745 | 0.02479 | 0 | 0.239024 | 0 | 0 | 0.074314 | 0 | 0 | 0 | 0 | 0 | 0.009756 | 0 | null | null | 0.004878 | 0.02439 | null | null | 0.009756 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
be8d2352caffb7d12a4dd49c7d8a31c2d36bef7b | 572 | py | Python | 1-Machine-Learning/Tools/Neural-Network/simple-neural-network/neural_net.py | yzy1996/Artificial-Intelligence | 30a9a2ce1602b9fa9be5981e98885c1c4244cbbd | [
"MIT"
] | 7 | 2019-11-09T02:55:35.000Z | 2021-08-16T12:43:44.000Z | 1-Machine-Learning/Neural Network Theory/Neural-Network/simple-neural-network/neural_net.py | yzy1996/Machine-Learning | 67c58ee5603fe25d789b3c4b3fa3929c5ac82c1f | [
"MIT"
] | 3 | 2020-10-13T03:12:03.000Z | 2021-03-21T09:03:02.000Z | 1-Machine-Learning/Neural Network Theory/Neural-Network/simple-neural-network/neural_net.py | yzy1996/Machine-Learning | 67c58ee5603fe25d789b3c4b3fa3929c5ac82c1f | [
"MIT"
] | 6 | 2020-06-07T08:14:15.000Z | 2021-08-02T09:04:31.000Z | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 09 22:10:52 2017
@author: Jerry
"""
from numpy import exp,array,random,dot
train_set_inputs=array([[0,0,1],[1,1,1],[1,0,1],[0,1,1]])
train_set_outputs=array([[0,1,1,0]]).T
random.seed(1) #保证每次的随机数都是一样的
synaptic_weights=2*random.random((3,1))-1 # 为3*1矩阵随机赋值,原本是0~1,乘2... | 35.75 | 90 | 0.692308 | 107 | 572 | 3.570093 | 0.429907 | 0.052356 | 0.086387 | 0.133508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108987 | 0.085664 | 572 | 16 | 91 | 35.75 | 0.621415 | 0.124126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be9148ec2987a8fe02f2aed57df5f49b9788b71b | 932 | py | Python | invenio_records_marc21/services/schemas/utils.py | bengaal/invenio-records-marc21 | d6ce23018b6e895a7568366b66c7611ff08d3dca | [
"MIT"
] | null | null | null | invenio_records_marc21/services/schemas/utils.py | bengaal/invenio-records-marc21 | d6ce23018b6e895a7568366b66c7611ff08d3dca | [
"MIT"
] | null | null | null | invenio_records_marc21/services/schemas/utils.py | bengaal/invenio-records-marc21 | d6ce23018b6e895a7568366b66c7611ff08d3dca | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2021 Graz University of Technology.
#
# Invenio-Records-Marc21 is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Marc21 record schema utilities."""
from marshmallow import Schema, ValidationE... | 32.137931 | 83 | 0.761803 | 123 | 932 | 5.658537 | 0.536585 | 0.057471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011538 | 0.16309 | 932 | 28 | 84 | 33.285714 | 0.880769 | 0.483906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.555556 | 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 |
bea0109e97cda61a4fd6441c428bbfa12e9d7ea0 | 2,497 | py | Python | scnn/graph_experiment.py | jcatw/scnn | b89d9ccb548a560d5c993faa023598c573a86914 | [
"MIT"
] | 57 | 2016-04-08T04:57:55.000Z | 2021-08-12T18:45:32.000Z | scnn/graph_experiment.py | jcatw/scnn | b89d9ccb548a560d5c993faa023598c573a86914 | [
"MIT"
] | 2 | 2016-02-11T21:14:48.000Z | 2016-08-30T14:19:18.000Z | scnn/graph_experiment.py | jcatw/scnn | b89d9ccb548a560d5c993faa023598c573a86914 | [
"MIT"
] | 9 | 2016-02-11T21:11:34.000Z | 2018-05-04T08:29:13.000Z | __author__ = 'jatwood'
import numpy as np
import sys
from sklearn.metrics import f1_score, accuracy_score
import util, data
from graph_scnn import GraphSCNN
def graph_experiment(data_fn, name, n_hops, transform_fn=util.rw_laplacian, transform_name='rwl'):
A, X, Y = data_fn()
n_graphs = len(A)
indices ... | 35.169014 | 113 | 0.645174 | 339 | 2,497 | 4.466077 | 0.280236 | 0.06605 | 0.099075 | 0.095112 | 0.315059 | 0.149934 | 0.0786 | 0.042272 | 0 | 0 | 0 | 0.025549 | 0.21626 | 2,497 | 70 | 114 | 35.671429 | 0.748084 | 0.038446 | 0 | 0 | 0 | 0 | 0.111343 | 0.030859 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bea0a2eb41dee5f95051902f2aaab4a082ec19bd | 527 | py | Python | client.py | orkunberk/k-means | d296104300163ffccd013b010c02054e40e9196c | [
"MIT"
] | null | null | null | client.py | orkunberk/k-means | d296104300163ffccd013b010c02054e40e9196c | [
"MIT"
] | null | null | null | client.py | orkunberk/k-means | d296104300163ffccd013b010c02054e40e9196c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Jan 2 23:07:21 2021
@author: orkun.yuzbasioglu
"""
from KMeans import KMeans, generate_data
# Training data generation
sample_count_per_class = 200 # number of data samples for each cluster
training_data = generate_data(sample_count_per_class) # generate data us... | 29.277778 | 87 | 0.753321 | 78 | 527 | 4.910256 | 0.679487 | 0.093995 | 0.073107 | 0.099217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038724 | 0.166983 | 527 | 18 | 88 | 29.277778 | 0.833713 | 0.540797 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bea1beb9c35d957622fdb134f003a68d6e1980e1 | 188 | py | Python | game_state.py | blockchain-Bobby/Plenty-Bird | 1db2f674d32b73434a47ba8844709c63baeb6270 | [
"MIT"
] | 15 | 2018-10-26T12:07:09.000Z | 2021-11-16T11:37:03.000Z | game_state.py | blockchain-Bobby/Plenty-Bird | 1db2f674d32b73434a47ba8844709c63baeb6270 | [
"MIT"
] | 1 | 2019-09-18T21:17:35.000Z | 2019-09-18T21:17:35.000Z | game_state.py | blockchain-Bobby/Plenty-Bird | 1db2f674d32b73434a47ba8844709c63baeb6270 | [
"MIT"
] | 9 | 2018-10-26T12:07:16.000Z | 2021-07-19T18:12:54.000Z | """
This module contains the class representing the game state, A simple Enum.
"""
from enum import Enum
class State(Enum):
MAIN_MENU = 0
PLAYING = 1
GAME_OVER = 2
| 17.090909 | 75 | 0.643617 | 27 | 188 | 4.407407 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.281915 | 188 | 10 | 76 | 18.8 | 0.859259 | 0.393617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 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 |
bea3be45acd717f4efe0c8fa949a269aeebab7de | 6,391 | py | Python | python/scripts/lookupGenerator.py | abelard2008/overlog | 8df2bb95d2e39e41dd8e30249da6bb8a1615f39f | [
"BSD-3-Clause"
] | 3 | 2016-01-26T22:19:12.000Z | 2019-07-10T02:12:38.000Z | python/scripts/lookupGenerator.py | abelard2008/overlog | 8df2bb95d2e39e41dd8e30249da6bb8a1615f39f | [
"BSD-3-Clause"
] | null | null | null | python/scripts/lookupGenerator.py | abelard2008/overlog | 8df2bb95d2e39e41dd8e30249da6bb8a1615f39f | [
"BSD-3-Clause"
] | null | null | null | import dfparser
from libp2python import *
import sys
import os
import getopt
import random
DATAFLOW_NAME = "LookupGenerator"
class LookupGenerator(Element):
def __init__(self, name, myaddress, nodes, freq):
Element.__init__(self,name, 1, 1)
self.mode = "edit"
self.myaddress = myaddress
... | 32.607143 | 103 | 0.579252 | 806 | 6,391 | 4.498759 | 0.269231 | 0.022063 | 0.019857 | 0.023166 | 0.103696 | 0.047987 | 0.034749 | 0.034749 | 0.02096 | 0 | 0 | 0.014106 | 0.290095 | 6,391 | 195 | 104 | 32.774359 | 0.7851 | 0.032702 | 0 | 0.125749 | 0 | 0 | 0.282753 | 0.043887 | 0 | 0 | 0 | 0.005128 | 0 | 0 | null | null | 0 | 0.035928 | null | null | 0.185629 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bea60fc1145b9812a1cae921fb5060e6eaef3a79 | 1,220 | py | Python | twitoff_2/app.py | singparvi/Twitoff-20 | e9bc9e198e6d3f3227a03a0e6ef0df77864234be | [
"MIT"
] | null | null | null | twitoff_2/app.py | singparvi/Twitoff-20 | e9bc9e198e6d3f3227a03a0e6ef0df77864234be | [
"MIT"
] | null | null | null | twitoff_2/app.py | singparvi/Twitoff-20 | e9bc9e198e6d3f3227a03a0e6ef0df77864234be | [
"MIT"
] | null | null | null | """Main app/routing for Twitter"""
from flask import Flask, render_template
from models import DB, User, Tweet
from twitter import *
# function to intialize the flask instance
# create the application
def create_app():
"""Create and configuring an instance of the Flask application"""
# location of the Fla... | 25.957447 | 104 | 0.622131 | 156 | 1,220 | 4.685897 | 0.487179 | 0.032832 | 0.032832 | 0.057456 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003363 | 0.268852 | 1,220 | 46 | 105 | 26.521739 | 0.816144 | 0.577869 | 0 | 0 | 0 | 0 | 0.160494 | 0.109054 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0.083333 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
bea989f75b818393509f5a05535b82d6c75f57ec | 8,133 | py | Python | datumaro/components/environment.py | jovialio/datumaro | 437b39d481134e48ed086517b7b3c53d7c6d26f0 | [
"MIT"
] | null | null | null | datumaro/components/environment.py | jovialio/datumaro | 437b39d481134e48ed086517b7b3c53d7c6d26f0 | [
"MIT"
] | null | null | null | datumaro/components/environment.py | jovialio/datumaro | 437b39d481134e48ed086517b7b3c53d7c6d26f0 | [
"MIT"
] | null | null | null | # Copyright (C) 2020-2022 Intel Corporation
#
# SPDX-License-Identifier: MIT
from functools import partial
from typing import (
Callable, Dict, Generic, Iterable, Iterator, Optional, Type, TypeVar,
)
import glob
import importlib
import inspect
import logging as log
import os.path as osp
from datumaro.components.c... | 34.172269 | 79 | 0.621665 | 901 | 8,133 | 5.392897 | 0.200888 | 0.024696 | 0.025931 | 0.034575 | 0.125952 | 0.087672 | 0.055567 | 0 | 0 | 0 | 0 | 0.001545 | 0.283659 | 8,133 | 237 | 80 | 34.316456 | 0.832475 | 0.023976 | 0 | 0.097826 | 0 | 0 | 0.031534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.173913 | 0.086957 | 0.505435 | 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 |
beab599a2a6ffad11476e7a358442fe85486ebb7 | 1,785 | py | Python | scripts/trace.py | demorise/four_ward_VF | e97beea3d1439bc673907c17b9ddf7589ec80f7a | [
"MIT"
] | null | null | null | scripts/trace.py | demorise/four_ward_VF | e97beea3d1439bc673907c17b9ddf7589ec80f7a | [
"MIT"
] | null | null | null | scripts/trace.py | demorise/four_ward_VF | e97beea3d1439bc673907c17b9ddf7589ec80f7a | [
"MIT"
] | 1 | 2020-05-07T04:16:09.000Z | 2020-05-07T04:16:09.000Z | #!/usr/bin/env python
import rospy
from visualization_msgs.msg import Marker
from visualization_msgs.msg import MarkerArray
import moveit_commander
import geometry_msgs.msg
import sys
import copy
import rospy
import moveit_commander
import moveit_msgs.msg
import geometry_msgs.msg
from math import pi
from std_msgs.msg ... | 25.140845 | 81 | 0.683473 | 240 | 1,785 | 4.9375 | 0.4125 | 0.035443 | 0.054852 | 0.048101 | 0.091139 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025442 | 0.207283 | 1,785 | 70 | 82 | 25.5 | 0.812014 | 0.194398 | 0 | 0.122449 | 0 | 0 | 0.051228 | 0.018246 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0.020408 | 0.306122 | 0 | 0.326531 | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
beabcecc62466d4b158a623f883374c6cae2161b | 1,999 | py | Python | solutions/slitheringdead.py | Tech-at-DU/Python-CLI-Games-Tutorial | baf926445ac2d69c7ff1e1fe3cc0b8fafccdbc8f | [
"MIT"
] | null | null | null | solutions/slitheringdead.py | Tech-at-DU/Python-CLI-Games-Tutorial | baf926445ac2d69c7ff1e1fe3cc0b8fafccdbc8f | [
"MIT"
] | null | null | null | solutions/slitheringdead.py | Tech-at-DU/Python-CLI-Games-Tutorial | baf926445ac2d69c7ff1e1fe3cc0b8fafccdbc8f | [
"MIT"
] | 3 | 2021-07-21T19:20:50.000Z | 2021-07-29T02:17:10.000Z |
def makeChoice(prompt, options):
print(prompt)
print(options)
choice = input("> ")
return choice
story = """You wake up in a hospital bed.
You were in a car accident and must have slipped into a coma.
You look down at your wrist and see your name on your hosptial bracelet."""
print(story)
playerNam... | 34.465517 | 162 | 0.669335 | 327 | 1,999 | 4.091743 | 0.51682 | 0.013453 | 0.011958 | 0.020927 | 0.03139 | 0.03139 | 0.03139 | 0 | 0 | 0 | 0 | 0.004019 | 0.253127 | 1,999 | 57 | 163 | 35.070175 | 0.892163 | 0 | 0 | 0.243902 | 0 | 0.04878 | 0.764025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0 | 0 | 0.04878 | 0.243902 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.