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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b5feaca4c7898be1eafff6774aa6c07103db3835 | 444 | py | Python | djangoProject/webApp/models.py | ChenxuanZhao/wireless-fire-alarm-software-system | 6800eda7c96e55fdca8fab5b3a0cb09f05df2416 | [
"Apache-2.0"
] | null | null | null | djangoProject/webApp/models.py | ChenxuanZhao/wireless-fire-alarm-software-system | 6800eda7c96e55fdca8fab5b3a0cb09f05df2416 | [
"Apache-2.0"
] | null | null | null | djangoProject/webApp/models.py | ChenxuanZhao/wireless-fire-alarm-software-system | 6800eda7c96e55fdca8fab5b3a0cb09f05df2416 | [
"Apache-2.0"
] | null | null | null | from django.db import models
# Create your models here.
class UserSensorDataModel(models.Model):
temperature = models.FloatField('温度')
smokescope = models.FloatField('烟雾浓度')
updateTime = models.DateTimeField(auto_now=True)
class UserSensorConfigModel(models.Model):
temperatureThreshold = models.Flo... | 27.75 | 54 | 0.763514 | 45 | 444 | 7.488889 | 0.577778 | 0.189911 | 0.172107 | 0.195846 | 0.237389 | 0.237389 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 444 | 15 | 55 | 29.6 | 0.877604 | 0.054054 | 0 | 0.222222 | 0 | 0 | 0.033493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
bd1493316b096cde669da8a2865558abfc875a85 | 529 | py | Python | python/turbodbc/__init__.py | fjetter/turbodbc | b11f0a1bc7d67bc3cbc60f564594f0e735f524f4 | [
"MIT"
] | null | null | null | python/turbodbc/__init__.py | fjetter/turbodbc | b11f0a1bc7d67bc3cbc60f564594f0e735f524f4 | [
"MIT"
] | null | null | null | python/turbodbc/__init__.py | fjetter/turbodbc | b11f0a1bc7d67bc3cbc60f564594f0e735f524f4 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from .api_constants import apilevel, threadsafety, paramstyle
from .connect import connect
from .constructors import Date, Time, Timestamp
from .exceptions import Error, InterfaceError, DatabaseError, ParameterError
from .data_types import STRING, BINARY, NUMBER, DATETIME, ROWID
... | 31.117647 | 76 | 0.824197 | 63 | 529 | 6.539683 | 0.650794 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122873 | 529 | 16 | 77 | 33.0625 | 0.887931 | 0 | 0 | 0 | 0 | 0 | 0.013233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.692308 | 0 | 0.692308 | 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 | 1 | 0 | 0 | 2 |
bd182270c3c3ae6edb0c81c95285d8c03af54b20 | 818 | py | Python | features/steps/managers/__init__.py | CMoncur/launchkey-python | 7bed012c183e5011fbeddd9353ed70fde899f932 | [
"MIT"
] | null | null | null | features/steps/managers/__init__.py | CMoncur/launchkey-python | 7bed012c183e5011fbeddd9353ed70fde899f932 | [
"MIT"
] | null | null | null | features/steps/managers/__init__.py | CMoncur/launchkey-python | 7bed012c183e5011fbeddd9353ed70fde899f932 | [
"MIT"
] | null | null | null | from .directory import DirectoryManager
from .directory_device import DirectoryDeviceManager
from .directory_service import DirectoryServiceManager
from .directory_service_auths import DirectoryServiceAuthsManager
from .directory_service_policy import DirectoryServicePolicyManager
from .directory_service_session import... | 51.125 | 73 | 0.908313 | 80 | 818 | 9.0375 | 0.4 | 0.125864 | 0.11065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07335 | 818 | 15 | 74 | 54.533333 | 0.953826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
1f9ac24a6445f1f9906249b0ee25a4e22ee85681 | 541 | py | Python | tests/core/interactions/test_visualization.py | Flipajs/FERDA | 120a9e16d7ab4877f72fadbe4484c8b91adf22c4 | [
"MIT"
] | 1 | 2021-04-23T10:00:49.000Z | 2021-04-23T10:00:49.000Z | tests/core/interactions/test_visualization.py | Flipajs/FERDA | 120a9e16d7ab4877f72fadbe4484c8b91adf22c4 | [
"MIT"
] | null | null | null | tests/core/interactions/test_visualization.py | Flipajs/FERDA | 120a9e16d7ab4877f72fadbe4484c8b91adf22c4 | [
"MIT"
] | null | null | null | import unittest
import matplotlib.pylab as plt
import pandas as pd
from core.interactions.visualization import plot_interaction
class InteractionResultsTestCase(unittest.TestCase):
def test_plot_interaction(self):
pred = pd.DataFrame([{'0_x': 10, '0_y': 20, '0_angle_deg_cw': 20, '0_minor': 3, '0_major':... | 24.590909 | 103 | 0.645102 | 82 | 541 | 4.036585 | 0.536585 | 0.135952 | 0.072508 | 0.07855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079254 | 0.207024 | 541 | 21 | 104 | 25.761905 | 0.692308 | 0.018484 | 0 | 0 | 0 | 0 | 0.129771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1fa2ad746fe4a6df37bbc64362e80c1582008f88 | 1,622 | py | Python | RoomsOnRent/room_service/models.py | DX9807/RoomsOnRent.com | 4147efdce8e13930672c3c7cb12a1f25a70708ed | [
"MIT"
] | null | null | null | RoomsOnRent/room_service/models.py | DX9807/RoomsOnRent.com | 4147efdce8e13930672c3c7cb12a1f25a70708ed | [
"MIT"
] | null | null | null | RoomsOnRent/room_service/models.py | DX9807/RoomsOnRent.com | 4147efdce8e13930672c3c7cb12a1f25a70708ed | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
from django.urls import reverse
from django.contrib.auth.models import User
from user_auth.choices import *
def upload_room_images(instance,filename):
return "Room/Images/{room}/{filename}/".format(room=instance.room,filename=filename)
def upload_co... | 39.560976 | 93 | 0.759556 | 220 | 1,622 | 5.390909 | 0.35 | 0.067454 | 0.054806 | 0.080101 | 0.198145 | 0.177066 | 0.060708 | 0 | 0 | 0 | 0 | 0.013437 | 0.128237 | 1,622 | 40 | 94 | 40.55 | 0.825318 | 0 | 0 | 0.066667 | 0 | 0 | 0.061036 | 0.048705 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
1faeba59741c1ec9aa4cdc356648407bd8672739 | 737 | py | Python | mastermind_py/mastermind/models.py | Rydra/mastermind-api | f315eedc4e2e1397f319e3d9ab90d580ba1626b4 | [
"MIT"
] | null | null | null | mastermind_py/mastermind/models.py | Rydra/mastermind-api | f315eedc4e2e1397f319e3d9ab90d580ba1626b4 | [
"MIT"
] | 3 | 2022-01-02T14:49:35.000Z | 2022-01-02T14:49:35.000Z | mastermind_py/mastermind/models.py | Rydra/mastermind-api | f315eedc4e2e1397f319e3d9ab90d580ba1626b4 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.postgres.fields import ArrayField
class GuessModel(models.Model):
code = ArrayField(models.CharField(max_length=10))
black_pegs = models.IntegerField(null=False)
white_pegs = models.IntegerField(null=False)
game = models.ForeignKey(
"GameModel"... | 33.5 | 72 | 0.751696 | 92 | 737 | 5.891304 | 0.434783 | 0.099631 | 0.202952 | 0.249077 | 0.309963 | 0.147601 | 0.147601 | 0 | 0 | 0 | 0 | 0.012658 | 0.142469 | 737 | 21 | 73 | 35.095238 | 0.844937 | 0 | 0 | 0 | 0 | 0 | 0.02171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
1fd48aad6ea28bd842fc0e0e885e0f0e0c49ec5f | 287 | py | Python | rllib/agents/trainer_template.py | andenrx/ray | 0ad4113e22aa4ec40f87d4a16e474a452f9c8af7 | [
"Apache-2.0"
] | null | null | null | rllib/agents/trainer_template.py | andenrx/ray | 0ad4113e22aa4ec40f87d4a16e474a452f9c8af7 | [
"Apache-2.0"
] | 2 | 2022-03-31T11:58:47.000Z | 2022-03-31T11:58:49.000Z | rllib/agents/trainer_template.py | AyushExel/ray | 46465abd6d866c3903b17c601e84e81b46c67190 | [
"Apache-2.0"
] | null | null | null | from ray.rllib.utils.deprecation import Deprecated
@Deprecated(
new="Sub-class from Trainer (or another Trainer sub-class) directly! "
"See e.g. ray.rllib.agents.dqn.dqn.py for an example.",
error=True,
)
def build_trainer(*args, **kwargs):
pass # deprecated w/ error
| 26.090909 | 74 | 0.703833 | 42 | 287 | 4.785714 | 0.738095 | 0.079602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 287 | 10 | 75 | 28.7 | 0.844538 | 0.066202 | 0 | 0 | 0 | 0 | 0.43609 | 0.101504 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0.125 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1feb28924b6ef90bf1b1ffa3bccfbeab0f304d97 | 1,199 | py | Python | cart/models.py | Slohn/myshop | 4e5034dc3b1561773060319f16628d44910c4a20 | [
"MIT"
] | 20 | 2021-05-07T19:32:56.000Z | 2022-02-06T12:12:56.000Z | cart/models.py | Slohn/myshop | 4e5034dc3b1561773060319f16628d44910c4a20 | [
"MIT"
] | 9 | 2021-04-08T18:29:18.000Z | 2022-03-11T23:28:23.000Z | cart/models.py | Slohn/myshop | 4e5034dc3b1561773060319f16628d44910c4a20 | [
"MIT"
] | 10 | 2021-02-22T13:50:24.000Z | 2022-03-15T11:51:27.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from shop.models import Product
from accounts.models import User
class Cart(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE, null=True)
created = models.DateTimeField(auto_now_add=True)
... | 27.883721 | 75 | 0.69975 | 153 | 1,199 | 5.287582 | 0.45098 | 0.049444 | 0.051916 | 0.077874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006135 | 0.18432 | 1,199 | 42 | 76 | 28.547619 | 0.821063 | 0.017515 | 0 | 0.129032 | 0 | 0 | 0.027211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.129032 | 0.129032 | 0.774194 | 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 | 1 | 0 | 0 | 2 |
1ff72bb7db82b9288581b3f78667cda61db7ba9f | 2,365 | py | Python | dissonance/client/client.py | jhgg/dissonance | 48059e6d7f80472611f202fa7349bf7f92f5ad48 | [
"Unlicense",
"MIT"
] | 5 | 2016-03-07T19:37:00.000Z | 2021-04-28T21:35:01.000Z | dissonance/client/client.py | jhgg/dissonance | 48059e6d7f80472611f202fa7349bf7f92f5ad48 | [
"Unlicense",
"MIT"
] | null | null | null | dissonance/client/client.py | jhgg/dissonance | 48059e6d7f80472611f202fa7349bf7f92f5ad48 | [
"Unlicense",
"MIT"
] | 1 | 2019-01-28T17:09:28.000Z | 2019-01-28T17:09:28.000Z | from .api_client import APIClient
from .gateway_socket import GatewaySocket
from ..lib.event_emitter import EventEmitter
from ..stores import Stores, autodiscover
autodiscover()
class Client(object):
def __init__(self):
self._gateway_socket = None
self.config = {}
self.events = EventEmitt... | 29.197531 | 66 | 0.634672 | 280 | 2,365 | 5.175 | 0.303571 | 0.080745 | 0.093858 | 0.028986 | 0.05521 | 0.05521 | 0.05521 | 0.05521 | 0 | 0 | 0 | 0.000569 | 0.257082 | 2,365 | 80 | 67 | 29.5625 | 0.824132 | 0.021987 | 0 | 0.135593 | 0 | 0 | 0.018818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.20339 | false | 0.050847 | 0.084746 | 0 | 0.355932 | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1ff93f04da4655e95fde0815583a8d109a760970 | 863 | py | Python | backend/api/fixtures/operational/0030_update_signing_authority_assertions.py | kuanfan99/zeva | 57b506a108fe57438506569d5503c90c52216b2f | [
"Apache-2.0"
] | 3 | 2020-03-25T03:06:20.000Z | 2021-01-20T23:36:03.000Z | backend/api/fixtures/operational/0030_update_signing_authority_assertions.py | kuanfan99/zeva | 57b506a108fe57438506569d5503c90c52216b2f | [
"Apache-2.0"
] | 740 | 2019-12-16T15:53:39.000Z | 2022-03-26T08:25:10.000Z | backend/api/fixtures/operational/0030_update_signing_authority_assertions.py | kuanfan99/zeva | 57b506a108fe57438506569d5503c90c52216b2f | [
"Apache-2.0"
] | 11 | 2019-11-28T20:39:15.000Z | 2022-01-31T17:53:31.000Z | from django.db import transaction
from api.management.data_script import OperationalDataScript
from api.models.signing_authority_assertion import SigningAuthorityAssertion
class UpdateSigningAuthorityAssertions(OperationalDataScript):
"""
Update the assertions for the compliance report
"""
is_reverta... | 28.766667 | 87 | 0.741599 | 87 | 863 | 7.241379 | 0.586207 | 0.022222 | 0.060317 | 0.069841 | 0.130159 | 0.130159 | 0.130159 | 0 | 0 | 0 | 0 | 0 | 0.200464 | 863 | 29 | 88 | 29.758621 | 0.913043 | 0.054461 | 0 | 0 | 0 | 0 | 0.16375 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.166667 | false | 0 | 0.166667 | 0.055556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
951411a30f4c017b1fbfea8fbb4ca963972f6012 | 513 | py | Python | 12/00/RegexFlag.IGNORECASE.py | pylangstudy/201708 | 126b1af96a1d1f57522d5a1d435b58597bea2e57 | [
"CC0-1.0"
] | null | null | null | 12/00/RegexFlag.IGNORECASE.py | pylangstudy/201708 | 126b1af96a1d1f57522d5a1d435b58597bea2e57 | [
"CC0-1.0"
] | 39 | 2017-07-31T22:54:01.000Z | 2017-08-31T00:19:03.000Z | 12/00/RegexFlag.IGNORECASE.py | pylangstudy/201708 | 126b1af96a1d1f57522d5a1d435b58597bea2e57 | [
"CC0-1.0"
] | null | null | null | #!python3.6
import re
#英大文字・小文字を区別せずにマッチングを行います。
print(re.IGNORECASE)
pattern = r'^ab'
#pattern = r'あいう'
#pattern = r'あいう$'
#pattern = '.*あいう$'
#pattern = None
#pattern = r''
#patternA = re.compile(pattern)
#patternA = re.compile(pattern, re.A)
patternA = re.compile(pattern, re.IGNORECASE)
for target in ['a', 'ab', 'a... | 25.65 | 74 | 0.662768 | 75 | 513 | 4.546667 | 0.36 | 0.140762 | 0.14956 | 0.211144 | 0.351906 | 0.199413 | 0.199413 | 0.199413 | 0 | 0 | 0 | 0.015487 | 0.118908 | 513 | 19 | 75 | 27 | 0.736726 | 0.348928 | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.5 | 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 | 1 | 0 | 2 |
951ac612b9c50b3102e8edce16375f8bde40c2c0 | 1,620 | py | Python | cms/templates/Admin/users-add.py | angeal185/python-flask-material-design-cms | 32c6251792bca75aebe231ab08b6de7ea1936998 | [
"MIT"
] | null | null | null | cms/templates/Admin/users-add.py | angeal185/python-flask-material-design-cms | 32c6251792bca75aebe231ab08b6de7ea1936998 | [
"MIT"
] | null | null | null | cms/templates/Admin/users-add.py | angeal185/python-flask-material-design-cms | 32c6251792bca75aebe231ab08b6de7ea1936998 | [
"MIT"
] | null | null | null | {% extends "Admin/base.py" %}
{% block pagewrapper %}
<!-- Page Content -->
<div id="page-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Add New User</h1>
<form method="post" action="">
<div class="row">... | 28.421053 | 88 | 0.489506 | 181 | 1,620 | 4.381215 | 0.265193 | 0.131148 | 0.083228 | 0.105927 | 0.520807 | 0.496847 | 0.496847 | 0.496847 | 0.406053 | 0.284994 | 0 | 0.015302 | 0.314198 | 1,620 | 56 | 89 | 28.928571 | 0.69847 | 0.009877 | 0 | 0.520833 | 0 | 0 | 0.22645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.083333 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
95293e9566453d3a7cd9db18f27c4d7bf830c3a5 | 63 | py | Python | tests/roots/test-build-htmlhelp/conf.py | smart1004/sphinx_doc | e2bda50167b86963642b77c11b9465aaf4d8d0dd | [
"BSD-2-Clause"
] | null | null | null | tests/roots/test-build-htmlhelp/conf.py | smart1004/sphinx_doc | e2bda50167b86963642b77c11b9465aaf4d8d0dd | [
"BSD-2-Clause"
] | null | null | null | tests/roots/test-build-htmlhelp/conf.py | smart1004/sphinx_doc | e2bda50167b86963642b77c11b9465aaf4d8d0dd | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
project = 'test'
master_doc = 'index'
| 12.6 | 23 | 0.571429 | 8 | 63 | 4.375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.190476 | 63 | 4 | 24 | 15.75 | 0.666667 | 0.333333 | 0 | 0 | 0 | 0 | 0.225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
20fdd3303f9578c018561374987dce934ddd6b47 | 1,359 | py | Python | Part_3_advanced/m17_tests_II/tdd/example_1/eshop/tests/test_order.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_3_advanced/m17_tests_II/tdd/example_1/eshop/tests/test_order.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_3_advanced/m17_tests_II/tdd/example_1/eshop/tests/test_order.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | import pytest
from eshop.order import Order
@pytest.fixture
def jan_order() -> Order:
return Order(client_first_name="Jan", client_last_name="Nowak")
@pytest.fixture
def other_jan_order() -> Order:
return Order(client_first_name="Jan", client_last_name="Nowak")
def test_add_element(jan_order):
jan_or... | 29.543478 | 88 | 0.762325 | 208 | 1,359 | 4.581731 | 0.206731 | 0.218258 | 0.132214 | 0.100735 | 0.603358 | 0.525708 | 0.396642 | 0.396642 | 0.357817 | 0.357817 | 0 | 0.023789 | 0.133922 | 1,359 | 45 | 89 | 30.2 | 0.785896 | 0 | 0 | 0.321429 | 0 | 0 | 0.04415 | 0 | 0 | 0 | 0 | 0 | 0.357143 | 1 | 0.214286 | false | 0 | 0.071429 | 0.071429 | 0.357143 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
20ff58f621c4a5c589ff4f078d0eef03a0f9d3d9 | 5,475 | py | Python | simple_http_server_redis_session/http_session_redis_impl.py | keijack/python-simple-http-server-redis-session | 84c16037370e621d093452ea2e4898dcc357871e | [
"MIT"
] | 2 | 2021-05-13T11:16:07.000Z | 2021-05-27T22:40:33.000Z | simple_http_server_redis_session/http_session_redis_impl.py | keijack/python-simple-http-server-redis-session | 84c16037370e621d093452ea2e4898dcc357871e | [
"MIT"
] | null | null | null | simple_http_server_redis_session/http_session_redis_impl.py | keijack/python-simple-http-server-redis-session | 84c16037370e621d093452ea2e4898dcc357871e | [
"MIT"
] | 1 | 2021-08-08T05:21:47.000Z | 2021-08-08T05:21:47.000Z | # -*- coding: utf-8 -*-
"""
Copyright (c) 2021 Keijack Wu
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge,... | 34.433962 | 162 | 0.701187 | 757 | 5,475 | 4.722589 | 0.26288 | 0.052867 | 0.032727 | 0.042797 | 0.204755 | 0.16951 | 0.147692 | 0.122517 | 0.087273 | 0.036364 | 0 | 0.003663 | 0.202192 | 5,475 | 158 | 163 | 34.651899 | 0.814789 | 0.19653 | 0 | 0.168421 | 0 | 0 | 0.048508 | 0.015486 | 0 | 0 | 0 | 0 | 0 | 1 | 0.231579 | false | 0.042105 | 0.073684 | 0.094737 | 0.568421 | 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 | 1 | 0 | 0 | 2 |
1f2f331d6e11c2d9c7f1630e9c7225fce0913c78 | 1,966 | py | Python | tests/app/models/custom.py | dldevinc/paper-uploads | 9414b6e6fbaa52eadacd9852ce3c4d84c6c2c939 | [
"BSD-3-Clause"
] | 3 | 2020-06-05T10:43:05.000Z | 2022-02-22T16:46:16.000Z | tests/app/models/custom.py | dldevinc/paper-uploads | 9414b6e6fbaa52eadacd9852ce3c4d84c6c2c939 | [
"BSD-3-Clause"
] | 2 | 2021-04-03T12:25:20.000Z | 2022-02-02T06:10:46.000Z | tests/app/models/custom.py | dldevinc/paper-uploads | 9414b6e6fbaa52eadacd9852ce3c4d84c6c2c939 | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
from django.utils.translation import gettext_lazy as _
from paper_uploads.models import *
from paper_uploads.cloudinary.models import *
__all__ = [
"CustomUploadedFile",
"CustomUploadedImage",
"CustomCloudinaryFile",
"CustomProxyGallery",
"CustomGallery",
"CustomCl... | 21.139785 | 57 | 0.653611 | 180 | 1,966 | 7.016667 | 0.338889 | 0.033254 | 0.047506 | 0.066508 | 0.469517 | 0.469517 | 0.469517 | 0.469517 | 0.469517 | 0.469517 | 0 | 0.006549 | 0.223296 | 1,966 | 92 | 58 | 21.369565 | 0.820563 | 0.045778 | 0 | 0.5 | 0 | 0 | 0.136145 | 0.057128 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.068966 | 0.103448 | 0.62069 | 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 | 1 | 0 | 0 | 2 |
1f5a4311730ae0538ecb7cb9beec9655c54f5e32 | 52 | py | Python | hello.py | jinheebee/github_test | 33b67f7f165876b5eec2e5e72f50e0948c4f1ba6 | [
"MIT"
] | null | null | null | hello.py | jinheebee/github_test | 33b67f7f165876b5eec2e5e72f50e0948c4f1ba6 | [
"MIT"
] | null | null | null | hello.py | jinheebee/github_test | 33b67f7f165876b5eec2e5e72f50e0948c4f1ba6 | [
"MIT"
] | null | null | null | print("hello world")
a = 3
b = 4
c = a * b
print(c)
| 8.666667 | 20 | 0.538462 | 12 | 52 | 2.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.269231 | 52 | 5 | 21 | 10.4 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0.211538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 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 | 2 |
1f609c4332b3128b9feba25f3402b1cdf4710ac8 | 623 | py | Python | templogboss/myapp/models.py | Bossabossy/Templog | 1d653f9a1c23d189940950bce808a3e26d618e15 | [
"BSD-2-Clause"
] | null | null | null | templogboss/myapp/models.py | Bossabossy/Templog | 1d653f9a1c23d189940950bce808a3e26d618e15 | [
"BSD-2-Clause"
] | null | null | null | templogboss/myapp/models.py | Bossabossy/Templog | 1d653f9a1c23d189940950bce808a3e26d618e15 | [
"BSD-2-Clause"
] | null | null | null | from __future__ import unicode_literals
from django.db import models
class Node(models.Model):
node_name=models.CharField(max_length=100)
description=models.CharField(max_length=100)
def __str__(self):
return "{}:{}:{}".format(self.id, self.node_name, self.description)
class Record(models.Model):
created=model... | 23.074074 | 69 | 0.794543 | 86 | 623 | 5.534884 | 0.465116 | 0.12605 | 0.151261 | 0.201681 | 0.273109 | 0.273109 | 0.273109 | 0.273109 | 0.273109 | 0.273109 | 0 | 0.024476 | 0.081862 | 623 | 26 | 70 | 23.961538 | 0.807692 | 0 | 0 | 0.133333 | 0 | 0 | 0.012966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0.066667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1f7db3de9fb8ed4c7539d6b2e746e9aad8f5f517 | 2,303 | py | Python | src/compute_rnaQuast.py | Kingsford-Group/lrassemblyanalysis | e4fceca0808b39194ccd5935e0ba16ca68b96f3c | [
"BSD-3-Clause"
] | 4 | 2019-04-16T15:20:10.000Z | 2022-02-18T07:21:45.000Z | src/compute_rnaQuast.py | Kingsford-Group/lrassemblyanalysis | e4fceca0808b39194ccd5935e0ba16ca68b96f3c | [
"BSD-3-Clause"
] | null | null | null | src/compute_rnaQuast.py | Kingsford-Group/lrassemblyanalysis | e4fceca0808b39194ccd5935e0ba16ca68b96f3c | [
"BSD-3-Clause"
] | 2 | 2019-11-03T06:40:28.000Z | 2021-11-12T19:55:34.000Z | # compute_rnaQuast.py
#
# Laura Tung
#
# Usage: compute_rnaQuast.py <result_dir>
#
# <result_dir> is the directory containing rnaQUAST_output and rnaQUAST_output_1
import sys
import numpy as np
def load_data(dataset):
loaded_isoform = np.loadtxt(dataset+"/isoform_data", dtype='int', usecols=(2, 3, 4))
loa... | 52.340909 | 207 | 0.700391 | 406 | 2,303 | 3.736453 | 0.130542 | 0.214239 | 0.158207 | 0.116018 | 0.617007 | 0.52472 | 0.437047 | 0.317732 | 0.156889 | 0 | 0 | 0.072402 | 0.076422 | 2,303 | 43 | 208 | 53.55814 | 0.640809 | 0.107686 | 0 | 0 | 0 | 0 | 0.192948 | 0.125367 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.222222 | 0.5 | 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 | 1 | 0 | 2 |
1f7efbe17a367c1c70b6129232790bd8f912a272 | 956 | py | Python | asm_analyser/parser.py | NielsMittelstaedt/ASM-Analyser | 472e3441be6f6879468ea1e4f9829db6916a14b9 | [
"MIT"
] | 1 | 2022-02-13T11:40:04.000Z | 2022-02-13T11:40:04.000Z | asm_analyser/parser.py | NielsMittelstaedt/ASM-Analyser | 472e3441be6f6879468ea1e4f9829db6916a14b9 | [
"MIT"
] | null | null | null | asm_analyser/parser.py | NielsMittelstaedt/ASM-Analyser | 472e3441be6f6879468ea1e4f9829db6916a14b9 | [
"MIT"
] | null | null | null | '''Provides the basis for a Parser.
'''
from abc import ABC, abstractmethod
from typing import List
from asm_analyser.blocks.code_block import CodeBlock
class Parser(ABC):
'''Converts the input into a suitable format.
Parser class, responsible for reading the assembler input file.
Transforms the lines i... | 25.837838 | 69 | 0.646444 | 118 | 956 | 5.127119 | 0.508475 | 0.049587 | 0.052893 | 0.052893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.274059 | 956 | 36 | 70 | 26.555556 | 0.871758 | 0.48431 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.272727 | 0 | 0.636364 | 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 | 1 | 0 | 0 | 2 |
1f7f6464af36949c37a8738e4e1a5beb45cc20cf | 326 | py | Python | conclave/scenario_result.py | DasAng/paraworld | fe202fadfaac6884370a8f27e29e113b13565e63 | [
"MIT"
] | null | null | null | conclave/scenario_result.py | DasAng/paraworld | fe202fadfaac6884370a8f27e29e113b13565e63 | [
"MIT"
] | null | null | null | conclave/scenario_result.py | DasAng/paraworld | fe202fadfaac6884370a8f27e29e113b13565e63 | [
"MIT"
] | null | null | null | from typing import Any
from dataclasses import dataclass
@dataclass
class ScenarioResult:
scenario: Any = None
steps: Any = None
id: str = None
message: str = None
elapsed: float = 0.0
exception: str = None
threadId: int = None
pid: int = None
startTime: Any = None
endTime: Any ... | 21.733333 | 33 | 0.650307 | 42 | 326 | 5.047619 | 0.547619 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008511 | 0.279141 | 326 | 15 | 34 | 21.733333 | 0.893617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.928571 | 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 | 1 | 0 | 0 | 2 |
1f82bfbae202bfa67d4922d1b86be4807f0e978c | 636 | py | Python | Pk/count_files.py | leanderthiele/Quijote-simulations | 6a8ed8f557a28aab1fe9b5f58293a5359c60a558 | [
"MIT"
] | 64 | 2019-06-01T17:28:40.000Z | 2022-03-29T18:32:21.000Z | Pk/count_files.py | leanderthiele/Quijote-simulations | 6a8ed8f557a28aab1fe9b5f58293a5359c60a558 | [
"MIT"
] | null | null | null | Pk/count_files.py | leanderthiele/Quijote-simulations | 6a8ed8f557a28aab1fe9b5f58293a5359c60a558 | [
"MIT"
] | 253 | 2019-09-03T19:00:29.000Z | 2021-11-26T12:40:49.000Z | import numpy as np
import sys,os,glob
######################################### INPUT ########################################
root = '/simons/scratch/fvillaescusa/pdf_information/Pk'
folders = ['Om_p', 'Ob_p', 'Ob2_p', 'h_p', 'ns_p', 's8_p',
'Om_m', 'Ob_m', 'Ob2_m', 'h_m', 'ns_m', 's8_m',
'Mnu_p... | 42.4 | 88 | 0.45283 | 83 | 636 | 3.26506 | 0.578313 | 0.02952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.13522 | 636 | 14 | 89 | 45.428571 | 0.474545 | 0.06761 | 0 | 0 | 0 | 0 | 0.424171 | 0.177725 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1f900394a31fb55260b38ef3640faae9d924d713 | 5,599 | py | Python | App.py | morantobias/tobys-app | a98ea27ec32887a666cf9e6387639b499e1f05eb | [
"Apache-2.0"
] | null | null | null | App.py | morantobias/tobys-app | a98ea27ec32887a666cf9e6387639b499e1f05eb | [
"Apache-2.0"
] | null | null | null | App.py | morantobias/tobys-app | a98ea27ec32887a666cf9e6387639b499e1f05eb | [
"Apache-2.0"
] | null | null | null | #app is latest working
import dash
from dash.dependencies import Input, Output, State
import dash_core_components as dcc
import dash_html_components as html
from pandas_datareader import data as web
from datetime import datetime as dt
import plotly.graph_objs as go
#latest working
import dash
from dash.dependencies im... | 22.130435 | 115 | 0.547598 | 696 | 5,599 | 4.321839 | 0.257184 | 0.027926 | 0.02992 | 0.031915 | 0.704122 | 0.687832 | 0.687832 | 0.670545 | 0.670545 | 0.617021 | 0 | 0.012201 | 0.297375 | 5,599 | 252 | 116 | 22.218254 | 0.752415 | 0.132702 | 0 | 0.682796 | 0 | 0 | 0.169905 | 0.011575 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086022 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2f11b5c2786474588b672ba08a8b825d60f8f1c3 | 2,278 | py | Python | src/sima/riflex/blueprints/externalwrappingtype.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/riflex/blueprints/externalwrappingtype.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/riflex/blueprints/externalwrappingtype.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | #
# Generated with ExternalWrappingTypeBlueprint
from dmt.blueprint import Blueprint
from dmt.dimension import Dimension
from dmt.attribute import Attribute
from dmt.enum_attribute import EnumAttribute
from dmt.blueprint_attribute import BlueprintAttribute
from sima.sima.blueprints.namedobject import NamedObjectBluepr... | 78.551724 | 143 | 0.751536 | 258 | 2,278 | 6.585271 | 0.317829 | 0.123602 | 0.176574 | 0.238964 | 0.467334 | 0.399647 | 0.321954 | 0.277222 | 0.225427 | 0.225427 | 0 | 0.012334 | 0.110184 | 2,278 | 29 | 144 | 78.551724 | 0.825851 | 0.019315 | 0 | 0 | 1 | 0 | 0.354157 | 0.011236 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.25 | 0 | 0.333333 | 0.208333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 2 |
2f129ea5aa02086f779235b60214f35969417160 | 1,341 | py | Python | lib/python/import_util.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 1,178 | 2020-09-10T17:15:42.000Z | 2022-03-31T14:59:35.000Z | lib/python/import_util.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 1 | 2020-05-22T05:22:35.000Z | 2020-05-22T05:22:35.000Z | lib/python/import_util.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 107 | 2020-09-10T17:29:30.000Z | 2022-03-18T09:00:14.000Z | # Copyright 2020 Makani Technologies LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 32.707317 | 74 | 0.700969 | 189 | 1,341 | 4.878307 | 0.539683 | 0.065076 | 0.052061 | 0.034707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009425 | 0.208799 | 1,341 | 40 | 75 | 33.525 | 0.859566 | 0.418345 | 0 | 0 | 0 | 0 | 0.120553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.307692 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
2f23c841b4a903bc05de9a2eedcb7670a6274369 | 446 | py | Python | tests/test_imports.py | ethan-jiang-1/ahrs | e1725267b0009a8a573f99dbf8d06e8481407ab6 | [
"MIT"
] | 184 | 2019-09-06T07:58:52.000Z | 2022-03-31T04:27:09.000Z | tests/test_imports.py | ethan-jiang-1/ahrs | e1725267b0009a8a573f99dbf8d06e8481407ab6 | [
"MIT"
] | 48 | 2019-11-13T15:42:46.000Z | 2022-03-31T23:53:53.000Z | tests/test_imports.py | ethan-jiang-1/ahrs | e1725267b0009a8a573f99dbf8d06e8481407ab6 | [
"MIT"
] | 34 | 2019-12-19T16:22:00.000Z | 2022-03-14T09:51:50.000Z | # -*- coding: utf-8 -*-
"""
Test module imports
===================
"""
import sys
def test_module_imports():
try:
import ahrs
except:
sys.exit("[ERROR] Package AHRS not found. Go to root directory of package and type:\n\n\tpip install .\n")
try:
import numpy, scipy, matplotlib
... | 23.473684 | 114 | 0.618834 | 57 | 446 | 4.807018 | 0.684211 | 0.072993 | 0.124088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002915 | 0.230942 | 446 | 18 | 115 | 24.777778 | 0.795918 | 0.139013 | 0 | 0.2 | 0 | 0.1 | 0.450667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | true | 0 | 0.4 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
2f242fb083c3ac571d233f65b374f2bb7b6f2d53 | 414 | py | Python | users/signals.py | StitiFatah/Django_Rest_Framework_BoilerPlate | 19e3fe41027853c0e491bdf97acb89c10c2ab0b4 | [
"MIT"
] | null | null | null | users/signals.py | StitiFatah/Django_Rest_Framework_BoilerPlate | 19e3fe41027853c0e491bdf97acb89c10c2ab0b4 | [
"MIT"
] | null | null | null | users/signals.py | StitiFatah/Django_Rest_Framework_BoilerPlate | 19e3fe41027853c0e491bdf97acb89c10c2ab0b4 | [
"MIT"
] | null | null | null | # from django.db.models.signals import post_save
# from users.models import PersoUser
# from django.dispatch import receiver
# @receiver(post_save, sender=PersoUser)
# def create_Profile(sender, instance, created, **kwargs):
# if created:
# Profile.objects.create(user=instance)
# @receiver(post_save, se... | 27.6 | 58 | 0.736715 | 51 | 414 | 5.882353 | 0.431373 | 0.08 | 0.106667 | 0.146667 | 0.226667 | 0.226667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142512 | 414 | 14 | 59 | 29.571429 | 0.84507 | 0.939614 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2f5790e03e5effd6fb7fca106845fc419671f3a1 | 301 | py | Python | Python/basics/Modules/key.py | vinitraj10/A-week-with-Java | 1c174fec98c8c078e1fc18ee497d1a517567defe | [
"Apache-2.0"
] | 1 | 2017-08-01T19:41:37.000Z | 2017-08-01T19:41:37.000Z | Python/basics/Modules/key.py | vinitraj10/Programming | 1c174fec98c8c078e1fc18ee497d1a517567defe | [
"Apache-2.0"
] | 2 | 2017-07-22T17:10:50.000Z | 2017-07-22T17:12:53.000Z | Python/basics/Modules/key.py | vinitraj10/Java-Implementations | 1c174fec98c8c078e1fc18ee497d1a517567defe | [
"Apache-2.0"
] | null | null | null | import keyword
key = "elif"
s="vinit"
if keyword.iskeyword(key):
print(key," is keyword")
else:
print(key," is not keyword")
if keyword.iskeyword(s):
print(s," is keyword")
else:
print(s," is not keyword")
#This method is use to print the set of keywords present in python
print(keyword.kwlist) | 20.066667 | 66 | 0.714286 | 50 | 301 | 4.3 | 0.48 | 0.083721 | 0.167442 | 0.167442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152824 | 301 | 15 | 67 | 20.066667 | 0.843137 | 0.215947 | 0 | 0.166667 | 0 | 0 | 0.258475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.416667 | 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 | 1 | 0 | 2 |
2f80eff5b3cc60933fa09f7f3453b70105181876 | 588 | py | Python | ex044.py | GuilhermeAntony14/Estudando-Python | b020f6d2625e7fcc42d30658bcbd881b093434dd | [
"MIT"
] | null | null | null | ex044.py | GuilhermeAntony14/Estudando-Python | b020f6d2625e7fcc42d30658bcbd881b093434dd | [
"MIT"
] | null | null | null | ex044.py | GuilhermeAntony14/Estudando-Python | b020f6d2625e7fcc42d30658bcbd881b093434dd | [
"MIT"
] | null | null | null | print('{:=^40}'.format('Lojas Gui'))
n = float(input('Coloque o valor do produto: R$ '))
print('''forma de pagamento.
[1] Dinheiro/cheque.
[2] Cartão.
[3] 2x cartão.
[4] 3x ou mais.''')
n2 = int(input('Coloque a opção: '))
print('===')
if n2 == 1:
print(f'O valor a ser pago e R$ {n-(n*(10/100))}.')
elif n2 == 2... | 29.4 | 84 | 0.552721 | 115 | 588 | 2.826087 | 0.434783 | 0.092308 | 0.086154 | 0.147692 | 0.289231 | 0.289231 | 0.289231 | 0.289231 | 0.289231 | 0.289231 | 0 | 0.084567 | 0.195578 | 588 | 19 | 85 | 30.947368 | 0.602537 | 0 | 0 | 0 | 0 | 0.052632 | 0.62585 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.421053 | 0 | 0 | 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 | 1 | 0 | 2 |
2f868b5576022c3bbf1451ead364883996c9c866 | 872 | py | Python | feder/teryt/models.py | dzemeuksis/feder | 32ef7793af6256d4ecada61505c7baf334b34419 | [
"MIT"
] | 16 | 2015-08-11T17:20:26.000Z | 2022-02-11T20:15:41.000Z | feder/teryt/models.py | dzemeuksis/feder | 32ef7793af6256d4ecada61505c7baf334b34419 | [
"MIT"
] | 534 | 2015-08-04T00:10:54.000Z | 2022-03-17T10:44:47.000Z | feder/teryt/models.py | dzemeuksis/feder | 32ef7793af6256d4ecada61505c7baf334b34419 | [
"MIT"
] | 10 | 2017-08-30T13:34:32.000Z | 2022-02-18T13:00:35.000Z | from django.urls import reverse
from teryt_tree.models import JednostkaAdministracyjna
class JST(JednostkaAdministracyjna):
def institution_qs(self):
Institution = self.institution_set.model
return Institution.objects.area(self)
def case_qs(self):
Case = self.institution_set.field.mod... | 29.066667 | 70 | 0.629587 | 103 | 872 | 5.194175 | 0.378641 | 0.074766 | 0.078505 | 0.06729 | 0.097196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248853 | 872 | 29 | 71 | 30.068966 | 0.816794 | 0 | 0 | 0 | 0 | 0 | 0.048165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.090909 | 0.090909 | 0.636364 | 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 | 1 | 0 | 0 | 2 |
2f8c8608a2f0f574033ea8711ddee6aad54d44db | 87 | py | Python | steps/02_data_container/benchmarks/__init__.py | karthikn72/enhancement-proposals | 8200d8d5ec409bf76a2f8af6d12b17fe201afa0a | [
"BSD-3-Clause"
] | 7 | 2020-10-16T14:56:54.000Z | 2022-02-17T11:50:09.000Z | steps/02_data_container/benchmarks/__init__.py | karthikn72/enhancement-proposals | 8200d8d5ec409bf76a2f8af6d12b17fe201afa0a | [
"BSD-3-Clause"
] | 11 | 2020-11-02T17:55:21.000Z | 2021-10-19T09:26:39.000Z | steps/02_data_container/benchmarks/__init__.py | karthikn72/enhancement-proposals | 8200d8d5ec409bf76a2f8af6d12b17fe201afa0a | [
"BSD-3-Clause"
] | 13 | 2020-11-26T23:04:06.000Z | 2022-02-09T11:22:17.000Z | #!/usr/bin/env python3 -u
# coding: utf-8
__author__ = ["Markus Löning"]
__all__ = []
| 14.5 | 30 | 0.643678 | 12 | 87 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0.16092 | 87 | 5 | 31 | 17.4 | 0.630137 | 0.436782 | 0 | 0 | 0 | 0 | 0.276596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
2f96c1a9a8a13e97ae22faa4d12d0fe3ab936262 | 1,465 | py | Python | panoptes_cli/scripts/panoptes.py | sarpu/panoptes-cli | cb2e6fc3a17644055102f396344f8390c3878d3f | [
"Apache-2.0"
] | 16 | 2016-06-16T16:02:00.000Z | 2021-07-01T13:22:18.000Z | panoptes_cli/scripts/panoptes.py | sarpu/panoptes-cli | cb2e6fc3a17644055102f396344f8390c3878d3f | [
"Apache-2.0"
] | 106 | 2016-01-18T10:26:21.000Z | 2022-03-24T10:48:27.000Z | panoptes_cli/scripts/panoptes.py | sarpu/panoptes-cli | cb2e6fc3a17644055102f396344f8390c3878d3f | [
"Apache-2.0"
] | 5 | 2016-01-19T09:47:23.000Z | 2020-12-19T10:03:00.000Z | import click
import os
import yaml
from panoptes_client import Panoptes
@click.version_option(prog_name='Panoptes CLI')
@click.group()
@click.option(
'--endpoint',
'-e',
help="Overides the default API endpoint",
type=str,
)
@click.option(
'--admin',
'-a',
help=(
"Enables admin mode... | 25.258621 | 68 | 0.647099 | 178 | 1,465 | 5.207865 | 0.432584 | 0.097087 | 0.113269 | 0.173679 | 0.202805 | 0.07767 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225939 | 1,465 | 57 | 69 | 25.701754 | 0.81746 | 0 | 0 | 0.039216 | 0 | 0 | 0.171331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0.078431 | 0.215686 | 0 | 0.235294 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
85cb2633d2b9e482f67e53d4228bd4e049ba540f | 4,404 | py | Python | test/test_stdio.py | razor-1/apns-clerk | 807c1166d463d9be022eedf69ce9be0bf776f096 | [
"Apache-2.0"
] | null | null | null | test/test_stdio.py | razor-1/apns-clerk | 807c1166d463d9be022eedf69ce9be0bf776f096 | [
"Apache-2.0"
] | null | null | null | test/test_stdio.py | razor-1/apns-clerk | 807c1166d463d9be022eedf69ce9be0bf776f096 | [
"Apache-2.0"
] | 1 | 2019-12-17T18:45:13.000Z | 2019-12-17T18:45:13.000Z | # Author Aleksi Hoffman
# Based on apns-client implementation by Sardar Yumatov
#
# 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 requi... | 36.7 | 82 | 0.769528 | 395 | 4,404 | 8.483544 | 0.544304 | 0.017905 | 0.013429 | 0.009549 | 0.048344 | 0.029842 | 0.029842 | 0.029842 | 0 | 0 | 0 | 0.058336 | 0.151453 | 4,404 | 119 | 83 | 37.008403 | 0.838373 | 0.205041 | 0 | 0.162162 | 0 | 0 | 0.544428 | 0.46136 | 0 | 1 | 0 | 0 | 0.108108 | 1 | 0.067568 | false | 0.040541 | 0.067568 | 0 | 0.162162 | 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 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
85cfddb855bfe365af5d52b3ebaf536333077899 | 190 | py | Python | main.py | SuperKogito/Texhide | 853b08191ce6c4f2d3b4ec10b3e97173e6a4643e | [
"MIT"
] | 2 | 2018-04-24T21:38:53.000Z | 2022-03-26T07:58:44.000Z | main.py | SuperKogito/Texhide | 853b08191ce6c4f2d3b4ec10b3e97173e6a4643e | [
"MIT"
] | null | null | null | main.py | SuperKogito/Texhide | 853b08191ce6c4f2d3b4ec10b3e97173e6a4643e | [
"MIT"
] | 1 | 2022-03-26T07:58:49.000Z | 2022-03-26T07:58:49.000Z | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 9 03:14:54 2017
@author: kogito
"""
from Gui import MainWindow
def main():
MainWindow('Texhide')
if __name__ == '__main__':
main()
| 13.571429 | 35 | 0.615789 | 26 | 190 | 4.192308 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0.210526 | 190 | 13 | 36 | 14.615385 | 0.646667 | 0.389474 | 0 | 0 | 0 | 0 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
85db0bd6f56386e218c0e8e4ae1486775e584c22 | 1,527 | py | Python | src/algorithms/metrics.py | jbustospelegri/breast_cancer_diagnosis | 38eb990ef716912c6acabb443e6eb5c21d9b4e0d | [
"MIT"
] | 5 | 2022-02-10T12:36:41.000Z | 2022-03-23T17:28:35.000Z | src/algorithms/metrics.py | jbustospelegri/breast_cancer_diagnosis | 38eb990ef716912c6acabb443e6eb5c21d9b4e0d | [
"MIT"
] | null | null | null | src/algorithms/metrics.py | jbustospelegri/breast_cancer_diagnosis | 38eb990ef716912c6acabb443e6eb5c21d9b4e0d | [
"MIT"
] | 1 | 2022-03-16T10:41:17.000Z | 2022-03-16T10:41:17.000Z | from tensorflow.keras import backend
def f1_score(y_true, y_pred):
"""
Función utilizada para calcular la métrica F1 a partir de las predicciones y los labels verdaderos
:param y_true: array con labels verdaderos
:param y_pred: array con las predicciones
:return: métrica f1
"""
def get_re... | 37.243902 | 102 | 0.686968 | 199 | 1,527 | 5.115578 | 0.301508 | 0.094303 | 0.051081 | 0.070727 | 0.424361 | 0.424361 | 0.378193 | 0.336935 | 0.264244 | 0.129666 | 0 | 0.010135 | 0.224623 | 1,527 | 41 | 103 | 37.243902 | 0.849662 | 0.354944 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.538462 | 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 | 1 | 0 | 0 | 2 |
85e1b58620622fc3af6939f20661bd3133e64372 | 6,104 | py | Python | chandra_suli/gif_generator.py | nitikayad96/chandra_suli | 905ded69825f8b3d4fa29a84661697abdb827a87 | [
"BSD-3-Clause"
] | 1 | 2020-01-08T19:57:19.000Z | 2020-01-08T19:57:19.000Z | chandra_suli/gif_generator.py | nitikayad96/chandra_suli | 905ded69825f8b3d4fa29a84661697abdb827a87 | [
"BSD-3-Clause"
] | null | null | null | chandra_suli/gif_generator.py | nitikayad96/chandra_suli | 905ded69825f8b3d4fa29a84661697abdb827a87 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
"""
Generate lightcurves for each candidate given a list of candidates
"""
import argparse
import os
import sys
import numpy as np
import astropy.io.fits as pyfits
import matplotlib.pyplot as plt
import seaborn as sbs
from matplotlib.colors import LogNorm
from astropy.convolution import convolve... | 33.911111 | 119 | 0.61386 | 793 | 6,104 | 4.62169 | 0.325347 | 0.01528 | 0.02292 | 0.019645 | 0.163438 | 0.138063 | 0.110232 | 0.061664 | 0.061664 | 0.061664 | 0 | 0.013471 | 0.270315 | 6,104 | 179 | 120 | 34.100559 | 0.809385 | 0.15154 | 0 | 0.053763 | 1 | 0.010753 | 0.121236 | 0.005708 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.16129 | null | null | 0.053763 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
85f0d095368922974cb8bd87c7515c3d8aab57cd | 1,384 | py | Python | paper_retrieval/kompetenzpool_expert_list.py | JNKielmann/Master-Thesis | 47475d15a2d63e11320405cc60b0e49ccda2c468 | [
"MIT"
] | null | null | null | paper_retrieval/kompetenzpool_expert_list.py | JNKielmann/Master-Thesis | 47475d15a2d63e11320405cc60b0e49ccda2c468 | [
"MIT"
] | 1 | 2020-05-17T11:20:51.000Z | 2020-05-17T11:20:51.000Z | paper_retrieval/kompetenzpool_expert_list.py | JNKielmann/Master-Thesis | 47475d15a2d63e11320405cc60b0e49ccda2c468 | [
"MIT"
] | 1 | 2021-02-17T21:24:55.000Z | 2021-02-17T21:24:55.000Z | """
Expert list created from Kompetenzpool data.
List contains Microsoft Academic Graph Ids
"""
kompetenzpool_expert_list = {
"Internet of Things": [
2241467651,
673846798,
2236413454
],
"blockchain": {
1245553041,
2021103267,
},
"natural language proc... | 19.492958 | 44 | 0.493497 | 81 | 1,384 | 8.407407 | 0.876543 | 0.029369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.409314 | 0.410405 | 1,384 | 70 | 45 | 19.771429 | 0.425245 | 0.062861 | 0 | 0.272727 | 0 | 0 | 0.206362 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
85f993e4d9e3c50ae4090aaa01b29ff8b6c4ef4e | 260 | py | Python | Exercicios - Mundo1/Ex023.py | BrianMath/ExerciciosPythonCeV | 4960f1a58d281b32afd5dfd6ea65e0ae5ad48b4f | [
"MIT"
] | null | null | null | Exercicios - Mundo1/Ex023.py | BrianMath/ExerciciosPythonCeV | 4960f1a58d281b32afd5dfd6ea65e0ae5ad48b4f | [
"MIT"
] | null | null | null | Exercicios - Mundo1/Ex023.py | BrianMath/ExerciciosPythonCeV | 4960f1a58d281b32afd5dfd6ea65e0ae5ad48b4f | [
"MIT"
] | null | null | null | # Ex. 023
num = str(input("Digite um número: ")) # .zfill(4) -> preenche com 0 até completar 4 casas
while len(num) < 4:
num = "0" + num
print("Unidade: ", num[3])
print("Dezena: ", num[2])
print("Centena: ", num[1])
print("Unidade de milhar: ", num[0])
| 26 | 91 | 0.6 | 42 | 260 | 3.714286 | 0.642857 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056604 | 0.184615 | 260 | 9 | 92 | 28.888889 | 0.679245 | 0.219231 | 0 | 0 | 0 | 0 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.571429 | 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 | 1 | 0 | 2 |
c81404879e6cbba9858293410a55e502f9a2a495 | 4,999 | py | Python | src/colornames.py | vishnubob/pyscad | 3530285011c757fbfbbb36201b8e40ce4cf16c49 | [
"MIT"
] | 8 | 2015-09-27T07:58:04.000Z | 2019-11-14T16:35:56.000Z | src/colornames.py | vishnubob/pyscad | 3530285011c757fbfbbb36201b8e40ce4cf16c49 | [
"MIT"
] | 1 | 2017-06-12T15:51:39.000Z | 2017-06-21T12:02:41.000Z | src/colornames.py | vishnubob/pyscad | 3530285011c757fbfbbb36201b8e40ce4cf16c49 | [
"MIT"
] | 1 | 2021-01-31T16:54:53.000Z | 2021-01-31T16:54:53.000Z | ColorNames = \
{ u'aliceblue': (240, 248, 255),
u'antiquewhite': (250, 235, 215),
u'aqua': (0, 255, 255),
u'aquamarine': (127, 255, 212),
u'azure': (240, 255, 255),
u'beige': (245, 245, 220),
u'bisque': (255, 228, 196),
u'black': (0, 0, 0),
u'blanchedalmond': (255, 235, 205),
u'blu... | 33.550336 | 45 | 0.528506 | 736 | 4,999 | 3.589674 | 0.381793 | 0.011355 | 0.013248 | 0.006056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.307773 | 0.235647 | 4,999 | 148 | 46 | 33.777027 | 0.383669 | 0 | 0 | 0 | 0 | 0 | 0.261852 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c816683bddaba0615c01f85d0794bc16f39e96e7 | 419 | py | Python | topy/data/__init__.py | TarcisioLOliveira/topy | 060da675e6494fee63fa5547befcb1f8ecc39fdc | [
"MIT"
] | 1 | 2021-01-25T00:13:34.000Z | 2021-01-25T00:13:34.000Z | topy/data/__init__.py | TarcisioLOliveira/topy | 060da675e6494fee63fa5547befcb1f8ecc39fdc | [
"MIT"
] | null | null | null | topy/data/__init__.py | TarcisioLOliveira/topy | 060da675e6494fee63fa5547befcb1f8ecc39fdc | [
"MIT"
] | null | null | null | """
# ==============================================================================
# ToPy -- Topology optimization with Python.
# Copyright (C) 2012, 2015, 2016, 2017 William Hunter.
# Copyright (C) 2020, 2021 Tarcísio L. de Oliveira
# ==============================================================================
"""... | 41.9 | 96 | 0.398568 | 40 | 419 | 3.85 | 0.75 | 0.12987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093085 | 0.102625 | 419 | 9 | 97 | 46.555556 | 0.316489 | 0.74463 | 0 | 0 | 0 | 0 | 0.505051 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c81da102b3010b0c5b4a0969dd227a880958f612 | 188 | py | Python | esp32/frozen/_boot.py | InnovatePCU/ESP32_Micropython | 46f7a10815b4137be02d54799377eb1826bbc4dc | [
"MIT"
] | null | null | null | esp32/frozen/_boot.py | InnovatePCU/ESP32_Micropython | 46f7a10815b4137be02d54799377eb1826bbc4dc | [
"MIT"
] | null | null | null | esp32/frozen/_boot.py | InnovatePCU/ESP32_Micropython | 46f7a10815b4137be02d54799377eb1826bbc4dc | [
"MIT"
] | null | null | null | # _boot.py -- always run on boot-up, even during safe boot
import os
from machine import UART
UART(1, 115200)
UART(2, 115200)
os.dupterm(UART(0, 115200))
UART(1).deinit()
UART(2).deinit()
| 20.888889 | 58 | 0.718085 | 34 | 188 | 3.941176 | 0.588235 | 0.074627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141104 | 0.132979 | 188 | 8 | 59 | 23.5 | 0.680982 | 0.297872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c8439bb368dc8173ad0adabef75d06f6f00ff198 | 695 | py | Python | muz/frontend/__init__.py | Akaricchi/muz | 87c443ae26fc287dda38ca1066856048642295a6 | [
"WTFPL"
] | 9 | 2016-09-20T16:53:55.000Z | 2018-07-06T06:47:12.000Z | muz/frontend/__init__.py | Akaricchi/muz | 87c443ae26fc287dda38ca1066856048642295a6 | [
"WTFPL"
] | null | null | null | muz/frontend/__init__.py | Akaricchi/muz | 87c443ae26fc287dda38ca1066856048642295a6 | [
"WTFPL"
] | null | null | null |
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
import importlib, pkgutil
from .misc import QuitRequest, Command
from .abstract import Sound, Music, Clock, Frontend
def get(name, frontendArgs=None, frontendArgsNames... | 31.590909 | 118 | 0.730935 | 78 | 695 | 6.089744 | 0.538462 | 0.084211 | 0.134737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191367 | 695 | 21 | 119 | 33.095238 | 0.845196 | 0 | 0 | 0 | 0 | 0 | 0.004323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5625 | 0.0625 | 0.75 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
c846ff1eb1ce291ffe2d355f4fb5cea046a7128a | 12,071 | py | Python | pysnmp-with-texts/ENTERASYS-VLAN-AUTHORIZATION-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/ENTERASYS-VLAN-AUTHORIZATION-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/ENTERASYS-VLAN-AUTHORIZATION-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module ENTERASYS-VLAN-AUTHORIZATION-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ENTERASYS-VLAN-AUTHORIZATION-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:04:50 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Pyt... | 170.014085 | 1,125 | 0.806893 | 1,400 | 12,071 | 6.955714 | 0.231429 | 0.005135 | 0.045287 | 0.006572 | 0.298008 | 0.200965 | 0.185664 | 0.185664 | 0.185664 | 0.185664 | 0 | 0.04307 | 0.099826 | 12,071 | 70 | 1,126 | 172.442857 | 0.85312 | 0.029658 | 0 | 0.05 | 0 | 0.15 | 0.473855 | 0.059638 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.233333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c84c08d2bdf14de84f283b3e2ec639ff95fc3933 | 5,163 | py | Python | summer21/owen_experiments/csds_to_hf.py | gu-sentiment-2021/sent | a3874a7286c965684d92fcf78e4091ad3a33aae1 | [
"MIT"
] | null | null | null | summer21/owen_experiments/csds_to_hf.py | gu-sentiment-2021/sent | a3874a7286c965684d92fcf78e4091ad3a33aae1 | [
"MIT"
] | null | null | null | summer21/owen_experiments/csds_to_hf.py | gu-sentiment-2021/sent | a3874a7286c965684d92fcf78e4091ad3a33aae1 | [
"MIT"
] | null | null | null | # Owen's experiment to convert a CSDS to the HF data structure
import datasets
import numpy as np
from transformers import AutoModelForSequenceClassification, AutoTokenizer, Trainer, TrainingArguments
from datasets import Dataset, DatasetDict, ClassLabel, load_metric
# create a CSDS as dict
# First create a mapping ... | 43.754237 | 102 | 0.552198 | 535 | 5,163 | 5.231776 | 0.22243 | 0.142908 | 0.205788 | 0.270096 | 0.502322 | 0.464452 | 0.464452 | 0.464452 | 0.464452 | 0.464452 | 0 | 0.002383 | 0.349797 | 5,163 | 117 | 103 | 44.128205 | 0.831397 | 0.070502 | 0 | 0.52381 | 0 | 0 | 0.362137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.047619 | 0.011905 | 0.107143 | 0.02381 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
c85025922e071d45e3fb3d24498ed5f0d783223b | 1,706 | py | Python | pycc/tests/test_015_ints.py | zw0930/pycc | 4b58b55f44467ea556c08fe0d7b3fc35b403e93e | [
"BSD-3-Clause"
] | 10 | 2021-08-04T01:21:10.000Z | 2022-03-21T04:28:46.000Z | pycc/tests/test_015_ints.py | zw0930/pycc | 4b58b55f44467ea556c08fe0d7b3fc35b403e93e | [
"BSD-3-Clause"
] | 19 | 2021-07-04T23:57:56.000Z | 2022-03-31T20:40:49.000Z | pycc/tests/test_015_ints.py | zw0930/pycc | 4b58b55f44467ea556c08fe0d7b3fc35b403e93e | [
"BSD-3-Clause"
] | 6 | 2021-07-19T02:49:09.000Z | 2022-03-21T04:28:47.000Z | """
Test integrators with simple ODE
dx/dy = 3x^2y given x0 = 1, y0 = 2
ANALYTIC SOLUTION:
y = e^{x^3 + c}, c = ln(2) - 1
y(1,1.1,1.2,1.3,1.4) = [2,2.78471958461639,4.141869187709196,6.6203429951303265,11.440356871885081]
"""
# Import package, test suite, and other packages as needed
import numpy as np
from pycc.rt i... | 26.246154 | 99 | 0.652989 | 280 | 1,706 | 3.939286 | 0.335714 | 0.010879 | 0.045331 | 0.049864 | 0.054397 | 0 | 0 | 0 | 0 | 0 | 0 | 0.329757 | 0.180539 | 1,706 | 64 | 100 | 26.65625 | 0.459227 | 0.263189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.2 | false | 0 | 0.057143 | 0 | 0.314286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c850a4d8009b9936dcc00fbacfde40ddb89cd586 | 246 | py | Python | bose/sto_quad/copy_run.py | chem12346789/deom_mpi | 66b03eb5855e31b587368bb42c5897c3829e1fa0 | [
"MIT"
] | 1 | 2022-02-21T11:01:52.000Z | 2022-02-21T11:01:52.000Z | bose/sto_quad/copy_run.py | chem12346789/deom_mpi | 66b03eb5855e31b587368bb42c5897c3829e1fa0 | [
"MIT"
] | null | null | null | bose/sto_quad/copy_run.py | chem12346789/deom_mpi | 66b03eb5855e31b587368bb42c5897c3829e1fa0 | [
"MIT"
] | null | null | null | import os
for i in range(10):
cmd = r'cd ' + str(i) + '&&'
cmd += r'echo new > out' + '&&'
cmd += r'cp ../decompose_any_spe.py ./&&'
cmd += r'cp ../r.sh ./&&'
cmd += r'python3 decompose_any_spe.py >> out&'
os.system(cmd)
| 24.6 | 50 | 0.5 | 40 | 246 | 2.975 | 0.55 | 0.168067 | 0.10084 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016484 | 0.260163 | 246 | 9 | 51 | 27.333333 | 0.637363 | 0 | 0 | 0 | 0 | 0 | 0.418699 | 0.093496 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 2 |
c850ba37cfa27f1b9a382804c1f0f76b8c4d80b3 | 28,233 | py | Python | nuage_tempest_plugin/tests/api/test_floating_ips_nuage.py | nuagenetworks/nuage-tempest-plugin | ac1bfb0709c7bbaf04017af3050fb3ed1ad1324a | [
"Apache-1.1"
] | 1 | 2021-01-03T01:47:51.000Z | 2021-01-03T01:47:51.000Z | nuage_tempest_plugin/tests/api/test_floating_ips_nuage.py | nuagenetworks/nuage-tempest-plugin | ac1bfb0709c7bbaf04017af3050fb3ed1ad1324a | [
"Apache-1.1"
] | null | null | null | nuage_tempest_plugin/tests/api/test_floating_ips_nuage.py | nuagenetworks/nuage-tempest-plugin | ac1bfb0709c7bbaf04017af3050fb3ed1ad1324a | [
"Apache-1.1"
] | 1 | 2020-10-16T12:04:39.000Z | 2020-10-16T12:04:39.000Z | # Copyright 2015 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | 46.359606 | 79 | 0.621436 | 3,267 | 28,233 | 5.056627 | 0.09244 | 0.108959 | 0.082324 | 0.052119 | 0.746005 | 0.702482 | 0.672518 | 0.636562 | 0.626634 | 0.607869 | 0 | 0.006634 | 0.273899 | 28,233 | 608 | 80 | 46.435855 | 0.79922 | 0.071335 | 0 | 0.633333 | 0 | 0 | 0.108078 | 0.012846 | 0 | 0 | 0 | 0.001645 | 0.175 | 1 | 0.029167 | false | 0 | 0.03125 | 0 | 0.064583 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
c856a71b3488640d4656a1234bc4b99d2ab768dd | 850 | py | Python | onlineticket/sections/head.py | joushx/Online-Ticket-Code | 593f5c73991be7061d36400a184a531adfb3e2f2 | [
"MIT"
] | null | null | null | onlineticket/sections/head.py | joushx/Online-Ticket-Code | 593f5c73991be7061d36400a184a531adfb3e2f2 | [
"MIT"
] | null | null | null | onlineticket/sections/head.py | joushx/Online-Ticket-Code | 593f5c73991be7061d36400a184a531adfb3e2f2 | [
"MIT"
] | null | null | null | from kaitaistruct import KaitaiStream, BytesIO
from onlineticket.generated.head import Head
class HeadSectionParser:
def parse(self, section):
parsed = Head(KaitaiStream(BytesIO(section.data)))
return {
'company': parsed.rics,
'ticket_id': parsed.ticket_id,
'edi... | 32.692308 | 59 | 0.521176 | 73 | 850 | 5.958904 | 0.479452 | 0.151724 | 0.195402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001883 | 0.375294 | 850 | 26 | 60 | 32.692308 | 0.817326 | 0 | 0 | 0 | 1 | 0 | 0.095182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.083333 | 0 | 0.208333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c06f4e54c1bb1504bf0d83f73890945bb76306ac | 390 | py | Python | {{cookiecutter.plugin_name}}/{{cookiecutter.plugin_name}}/views.py | qlands/formshare-cookiecutter-plugin | 722cb82649111e6f88a15d52542e33c3e98a00f1 | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.plugin_name}}/{{cookiecutter.plugin_name}}/views.py | qlands/formshare-cookiecutter-plugin | 722cb82649111e6f88a15d52542e33c3e98a00f1 | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.plugin_name}}/{{cookiecutter.plugin_name}}/views.py | qlands/formshare-cookiecutter-plugin | 722cb82649111e6f88a15d52542e33c3e98a00f1 | [
"BSD-3-Clause"
] | 1 | 2019-10-18T14:30:45.000Z | 2019-10-18T14:30:45.000Z | from formshare.plugins.utilities import FormSharePublicView, FormSharePrivateView
class MyPublicView(FormSharePublicView):
def process_view(self):
return {}
class MyPrivateView(FormSharePrivateView):
def process_view(self):
self.set_active_menu("myCustomMenu")
self.showWelcome = True... | 27.857143 | 81 | 0.730769 | 39 | 390 | 7.179487 | 0.666667 | 0.071429 | 0.1 | 0.128571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182051 | 390 | 13 | 82 | 30 | 0.877743 | 0 | 0 | 0.222222 | 0 | 0 | 0.125641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.777778 | 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 | 1 | 0 | 0 | 0 | 2 |
c06f59dc6494394ac903b8ae32c0564d01e349ec | 156 | py | Python | packages/submodopt/submodopt/__init__.py | toruurakawa/DiPS | 211316a699b62c3aa1191c5eff3d923f0d359bfa | [
"Apache-2.0"
] | 75 | 2019-06-04T23:37:58.000Z | 2022-03-15T03:11:35.000Z | packages/submodopt/submodopt/__init__.py | ibrahim85/DiPS | 8ea9747b1c104b6490000cdff15a522e9b860c05 | [
"Apache-2.0"
] | 20 | 2019-06-04T22:45:31.000Z | 2022-03-11T23:49:38.000Z | packages/submodopt/submodopt/__init__.py | ibrahim85/DiPS | 8ea9747b1c104b6490000cdff15a522e9b860c05 | [
"Apache-2.0"
] | 14 | 2019-06-19T05:03:32.000Z | 2022-01-07T08:05:26.000Z | """submodopt - A package for maximizing submodular functions"""
__version__ = '0.1.0'
__author__ = 'Satwik Bhattamishra <satwik55@gmail.com>'
__all__ = []
| 26 | 63 | 0.730769 | 18 | 156 | 5.666667 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036765 | 0.128205 | 156 | 5 | 64 | 31.2 | 0.713235 | 0.365385 | 0 | 0 | 0 | 0 | 0.483871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
c06fb992eef10824cf4d54d8b0b8345eecd3ec56 | 930 | py | Python | virtual_bird/Models/Dlib_model.py | birdmandayum0131/virtual-bird | bf52b326df0a8ee12018434d98bde1ebb06548a8 | [
"MIT"
] | 5 | 2022-01-07T10:24:56.000Z | 2022-02-18T07:13:57.000Z | virtual_bird/Models/Dlib_model.py | birdmandayum0131/virtual-bird | bf52b326df0a8ee12018434d98bde1ebb06548a8 | [
"MIT"
] | null | null | null | virtual_bird/Models/Dlib_model.py | birdmandayum0131/virtual-bird | bf52b326df0a8ee12018434d98bde1ebb06548a8 | [
"MIT"
] | 2 | 2022-01-10T07:51:11.000Z | 2022-02-18T07:10:52.000Z | import dlib
import numpy as np
from ..Abstract import FaceDetector, LandmarksDetector
class Dlib_Face(FaceDetector):
def __init__(self):
self.detector = dlib.get_frontal_face_detector()
def detect_faces_from_image(self, image_RGB):
return [[dlib_rectangle.left(), dlib_rectangle.top(), dlib_rec... | 48.947368 | 161 | 0.737634 | 131 | 930 | 4.946565 | 0.389313 | 0.12037 | 0.033951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007509 | 0.14086 | 930 | 19 | 162 | 48.947368 | 0.803504 | 0 | 0 | 0 | 0 | 0 | 0.064447 | 0.064447 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.2 | 0.066667 | 0.733333 | 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 | 1 | 0 | 0 | 2 |
c083a119b1aa8f411da7e400b0f1ee9eab83b03b | 1,110 | py | Python | data/train/python/c083a119b1aa8f411da7e400b0f1ee9eab83b03burls.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/python/c083a119b1aa8f411da7e400b0f1ee9eab83b03burls.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/python/c083a119b1aa8f411da7e400b0f1ee9eab83b03burls.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from app.controllers import IndexController
from app.controllers import QController
from app.controllers import SettingsPartiesController
from app.controllers import SettingsTubiController
from app.controllers import StartController
from app.controllers.auth import LoginAu... | 34.6875 | 58 | 0.785586 | 102 | 1,110 | 8.54902 | 0.343137 | 0.09633 | 0.247706 | 0.137615 | 0.135321 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00103 | 0.125225 | 1,110 | 31 | 59 | 35.806452 | 0.897013 | 0.037838 | 0 | 0 | 0 | 0 | 0.099437 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
c0885b51c72a870cf9009274c5a00c60d49a3967 | 15,369 | py | Python | k1lib/cli/utils.py | 157239n/k1lib | 285520b8364ad5b21cb736b44471aa939e692e9b | [
"MIT"
] | 1 | 2021-08-11T19:10:08.000Z | 2021-08-11T19:10:08.000Z | k1lib/cli/utils.py | 157239n/k1lib | 285520b8364ad5b21cb736b44471aa939e692e9b | [
"MIT"
] | null | null | null | k1lib/cli/utils.py | 157239n/k1lib | 285520b8364ad5b21cb736b44471aa939e692e9b | [
"MIT"
] | null | null | null | # AUTOGENERATED FILE! PLEASE DON'T EDIT
"""
This is for all short utilities that has the boilerplate feeling. Conversion clis
might feel they have different styles, as :class:`toFloat` converts object iterator to
float iterator, while :class:`toPIL` converts single image url to single PIL image,
whereas :class:`toSum` ... | 38.042079 | 136 | 0.613703 | 2,183 | 15,369 | 4.229043 | 0.200183 | 0.017548 | 0.029246 | 0.032496 | 0.158471 | 0.132907 | 0.095212 | 0.083297 | 0.070299 | 0.070299 | 0 | 0.019674 | 0.242631 | 15,369 | 404 | 137 | 38.042079 | 0.773454 | 0.469582 | 0 | 0.121212 | 1 | 0 | 0.031402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.20202 | false | 0.030303 | 0.030303 | 0.050505 | 0.494949 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c095e0406851668f536f037523c078b508b0b407 | 6,004 | py | Python | public/chart/integrations/django/samples/fusioncharts/samples/Single_Event_Overlay.py | AizaDapitan/PMC-IMS_V3 | 271ce3193edbf5182a9e232666ca417561ba2d16 | [
"MIT"
] | 14 | 2016-11-03T19:06:21.000Z | 2021-11-24T09:05:09.000Z | public/chart/integrations/django/samples/fusioncharts/samples/Single_Event_Overlay.py | AizaDapitan/PMC-IMS_V3 | 271ce3193edbf5182a9e232666ca417561ba2d16 | [
"MIT"
] | 10 | 2022-02-16T07:17:49.000Z | 2022-03-08T12:43:51.000Z | asset/integrations/django/samples/fusioncharts/samples/Single_Event_Overlay.py | Piusshungu/catherine-junior-school | 5356f4ff5a5c8383849d32e22a60d638c35b1a48 | [
"MIT"
] | 17 | 2016-05-19T13:16:34.000Z | 2021-04-30T14:38:42.000Z | from django.shortcuts import render
from django.http import HttpResponse
# Include the `fusioncharts.py` file which has required functions to embed the charts in html page
from ..fusioncharts import FusionCharts
from ..fusioncharts import FusionTable
from ..fusioncharts import TimeSeries
import requests
# Loading Dat... | 56.11215 | 179 | 0.340273 | 411 | 6,004 | 4.970803 | 0.493917 | 0.053842 | 0.058737 | 0.041605 | 0.126285 | 0.126285 | 0.126285 | 0.126285 | 0.051884 | 0.051884 | 0 | 0.031238 | 0.578781 | 6,004 | 107 | 180 | 56.11215 | 0.776592 | 0.06429 | 0 | 0.362637 | 0 | 0.087912 | 0.875802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010989 | false | 0 | 0.065934 | 0 | 0.087912 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c09d6a4f52332e958259618fdd68d8aeb7391b21 | 227 | py | Python | Lib/__hello__.py | ErikBjare/cpython | b68431fadb3150134ac6ccbf501cdfeaf4c75678 | [
"0BSD"
] | 2 | 2022-03-27T14:52:48.000Z | 2022-03-27T17:35:22.000Z | Lib/__hello__.py | dalakatt/cpython | 2f49b97cc5426087b46515254b9a97a22ee8c807 | [
"0BSD"
] | 8 | 2022-01-07T11:31:11.000Z | 2022-03-04T00:07:16.000Z | Lib/__hello__.py | dalakatt/cpython | 2f49b97cc5426087b46515254b9a97a22ee8c807 | [
"0BSD"
] | 1 | 2022-03-27T18:34:54.000Z | 2022-03-27T18:34:54.000Z | initialized = True
class TestFrozenUtf8_1:
"""\u00b6"""
class TestFrozenUtf8_2:
"""\u03c0"""
class TestFrozenUtf8_4:
"""\U0001f600"""
def main():
print("Hello world!")
if __name__ == '__main__':
main()
| 13.352941 | 26 | 0.621145 | 23 | 227 | 5.652174 | 0.73913 | 0.438462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104972 | 0.202643 | 227 | 16 | 27 | 14.1875 | 0.61326 | 0.022026 | 0 | 0 | 0 | 0 | 0.106952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.5 | 0.125 | 1 | 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 | 2 |
c0b0d23b937a9b2ef80e1c13407d4dc1c458035c | 685 | py | Python | porteiros/models.py | lucasazevedo/visitor-control | 2daed747f68d04b1bda98bd51fe0876044e1cc54 | [
"MIT"
] | null | null | null | porteiros/models.py | lucasazevedo/visitor-control | 2daed747f68d04b1bda98bd51fe0876044e1cc54 | [
"MIT"
] | null | null | null | porteiros/models.py | lucasazevedo/visitor-control | 2daed747f68d04b1bda98bd51fe0876044e1cc54 | [
"MIT"
] | null | null | null | from django.db import models
class Porteiro(models.Model):
usuario = models.OneToOneField('usuarios.Usuario', verbose_name='Usuário', on_delete=models.PROTECT)
nome_completo = models.CharField(verbose_name='Nome completo', max_length=194)
cpf = models.CharField(verbose_name='CPF', max_length=11)
telef... | 38.055556 | 109 | 0.732847 | 87 | 685 | 5.505747 | 0.494253 | 0.160752 | 0.137787 | 0.162839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012216 | 0.163504 | 685 | 17 | 110 | 40.294118 | 0.823735 | 0 | 0 | 0 | 0 | 0 | 0.147445 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0.076923 | 0.769231 | 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 | 1 | 0 | 0 | 2 |
c0df5c3ccbd262e20ba4a3da038fce301e205995 | 6,377 | py | Python | old_experiments/generate_data.py | weepingwillowben/reward-surfaces | f27211faf3784df3305972b7cad65002fd57d7bf | [
"MIT"
] | null | null | null | old_experiments/generate_data.py | weepingwillowben/reward-surfaces | f27211faf3784df3305972b7cad65002fd57d7bf | [
"MIT"
] | null | null | null | old_experiments/generate_data.py | weepingwillowben/reward-surfaces | f27211faf3784df3305972b7cad65002fd57d7bf | [
"MIT"
] | 2 | 2021-10-03T14:51:38.000Z | 2021-11-10T02:54:26.000Z | import os
os.environ['OPENBLAS_NUM_THREADS'] = '1'
from generate_test_files import generate_test_file
from test_env import test_env_true_reward
from generate_random_filter import generate_random_directions
import os
import multiprocessing as mp
import numpy as np
import shutil
import json
import tempfile
def get_data_... | 44.594406 | 113 | 0.705504 | 843 | 6,377 | 5.046263 | 0.181495 | 0.137518 | 0.157969 | 0.165021 | 0.560884 | 0.191349 | 0.148096 | 0.140809 | 0.074048 | 0.04866 | 0 | 0.017127 | 0.175945 | 6,377 | 142 | 114 | 44.908451 | 0.792388 | 0.13486 | 0 | 0.09009 | 1 | 0 | 0.332969 | 0.270162 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0.009009 | 0.09009 | 0.009009 | 0.171171 | 0.09009 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 2 |
c0e4c0082eb6700bee3e03318b971566519341c0 | 99 | py | Python | flexbe_widget/flexbe_widget/__init__.py | FlexBE/flexbe_behavior_engine | 735a3b68dfbe817db9383e53fef63afd6868219d | [
"BSD-3-Clause"
] | 1 | 2022-03-11T04:56:31.000Z | 2022-03-11T04:56:31.000Z | flexbe_widget/flexbe_widget/__init__.py | FlexBE/flexbe_behavior_engine | 735a3b68dfbe817db9383e53fef63afd6868219d | [
"BSD-3-Clause"
] | null | null | null | flexbe_widget/flexbe_widget/__init__.py | FlexBE/flexbe_behavior_engine | 735a3b68dfbe817db9383e53fef63afd6868219d | [
"BSD-3-Clause"
] | null | null | null | from .behavior_action_server import BehaviorActionServer
__all__ = [
'BehaviorActionServer'
]
| 16.5 | 56 | 0.79798 | 8 | 99 | 9.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141414 | 99 | 5 | 57 | 19.8 | 0.858824 | 0 | 0 | 0 | 0 | 0 | 0.20202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 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 | 2 |
c0ea0b7a6dd4f9a1509f84fa884f4edb0c28c26e | 4,739 | py | Python | deprecated/heekspython/examples/polar_array.py | JohnyEngine/CNC | e4c77250ab2b749d3014022cbb5eb9924e939993 | [
"Apache-2.0"
] | null | null | null | deprecated/heekspython/examples/polar_array.py | JohnyEngine/CNC | e4c77250ab2b749d3014022cbb5eb9924e939993 | [
"Apache-2.0"
] | null | null | null | deprecated/heekspython/examples/polar_array.py | JohnyEngine/CNC | e4c77250ab2b749d3014022cbb5eb9924e939993 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# generated by wxGlade 0.6.3 on Fri Jul 24 14:50:26 2009
import HeeksPython as cad
import math
import wx
# begin wxGlade: extracode
# end wxGlade
class MyFrame(wx.Frame):
def __init__(self, *args, **kwds):
# begin wxGlade: MyFrame.__init__
kwds["sty... | 36.175573 | 78 | 0.625448 | 682 | 4,739 | 4.070381 | 0.20088 | 0.061599 | 0.068444 | 0.063401 | 0.423991 | 0.353746 | 0.247118 | 0.210735 | 0.166787 | 0.130764 | 0 | 0.03281 | 0.247521 | 4,739 | 130 | 79 | 36.453846 | 0.745653 | 0.08947 | 0 | 0 | 1 | 0 | 0.041159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036585 | null | null | 0.02439 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8d050d3d1d0fe9bed9c144753d3ea902c1ec727c | 188 | py | Python | algorithms/reverse_bits.py | kainonly/leetcode | 83a84ad48d517eb7f1377cb2a3aa3fe763da6627 | [
"MIT"
] | null | null | null | algorithms/reverse_bits.py | kainonly/leetcode | 83a84ad48d517eb7f1377cb2a3aa3fe763da6627 | [
"MIT"
] | null | null | null | algorithms/reverse_bits.py | kainonly/leetcode | 83a84ad48d517eb7f1377cb2a3aa3fe763da6627 | [
"MIT"
] | null | null | null | class Solution:
def reverseBits(self, n: int) -> int:
val = 0
for i in range(32):
val <<= 1
val += n & 1
n >>= 1
return val
| 20.888889 | 41 | 0.398936 | 24 | 188 | 3.125 | 0.666667 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.489362 | 188 | 8 | 42 | 23.5 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
8d0a7446dbbcaf9d0140a056a947d3b80ba9cba3 | 2,656 | py | Python | pythonequipmentdrivers/multimeter/Keysight_34461A.py | admleman/PythonEquipmentDrivers | 1e1fbf96ae372757ad90339af5863ab64daef2a0 | [
"MIT"
] | 6 | 2021-02-01T14:23:22.000Z | 2021-12-31T12:26:07.000Z | pythonequipmentdrivers/multimeter/Keysight_34461A.py | admleman/PythonEquipmentDrivers | 1e1fbf96ae372757ad90339af5863ab64daef2a0 | [
"MIT"
] | 5 | 2020-08-17T12:59:06.000Z | 2022-03-24T02:19:31.000Z | pythonequipmentdrivers/multimeter/Keysight_34461A.py | TedKus/PythonEquipmentDrivers | d758a6fb0f7d505d46b24fcd55170e90d2a06cd0 | [
"MIT"
] | 3 | 2020-12-30T17:25:55.000Z | 2021-07-27T13:52:44.000Z | from .HP_34401A import HP_34401A
# TODO: Add in additional measurement functionallity not written in the
# original HP_34401A Class. Look into adding functionallity for adjusting the
# triggering settings
class Keysight_34461A(HP_34401A):
"""
Keysight_34461A()
address: str, address of the connected mul... | 32 | 79 | 0.625377 | 339 | 2,656 | 4.775811 | 0.39823 | 0.077826 | 0.058678 | 0.066708 | 0.183447 | 0.106238 | 0.072885 | 0 | 0 | 0 | 0 | 0.047572 | 0.240211 | 2,656 | 82 | 80 | 32.390244 | 0.754708 | 0.282756 | 0 | 0 | 0 | 0 | 0.144246 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.238095 | false | 0.02381 | 0.02381 | 0 | 0.452381 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
23a3645631b36d2dab81ddd820a1e359a0ec68bb | 1,426 | py | Python | OracleWebCenterContent/dockerfiles/12.2.1.4/container-scripts/setTopology.py | rmohare/oracle-product-images | a5b0fc823de9258a0d0d63aed5837abb46b17cf3 | [
"UPL-1.0"
] | 5,519 | 2015-01-23T15:07:05.000Z | 2022-03-31T12:12:19.000Z | OracleWebCenterContent/dockerfiles/12.2.1.4/container-scripts/setTopology.py | rmohare/oracle-product-images | a5b0fc823de9258a0d0d63aed5837abb46b17cf3 | [
"UPL-1.0"
] | 1,492 | 2015-01-26T05:31:35.000Z | 2022-03-31T21:16:34.000Z | OracleWebCenterContent/dockerfiles/12.2.1.4/container-scripts/setTopology.py | rmohare/oracle-product-images | a5b0fc823de9258a0d0d63aed5837abb46b17cf3 | [
"UPL-1.0"
] | 5,850 | 2015-01-22T01:40:51.000Z | 2022-03-31T12:12:19.000Z | #!/usr/bin/python
# Copyright (c) 2021, Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl
#
# ==============================================
import sys
admin_name = os.environ['ADMIN_USERNAME']
admin_pass = os.environ['ADMIN_PASSWORD'... | 33.162791 | 258 | 0.792426 | 140 | 1,426 | 7.935714 | 0.521429 | 0.032403 | 0.050405 | 0.050405 | 0.50045 | 0.50045 | 0.50045 | 0.50045 | 0.50045 | 0.131413 | 0 | 0.011186 | 0.059607 | 1,426 | 42 | 259 | 33.952381 | 0.817301 | 0.150771 | 0 | 0.08 | 0 | 0.04 | 0.553897 | 0.442786 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.08 | 0.04 | 0 | 0.04 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
23a9ed8039f11c2507b84f06661d2ddae5677e4b | 872 | py | Python | build_gromacs/module.py | daniellandau/shell-magic | 10f00662ff85ad6a87c874537e071b3bd1d5973d | [
"Apache-2.0"
] | null | null | null | build_gromacs/module.py | daniellandau/shell-magic | 10f00662ff85ad6a87c874537e071b3bd1d5973d | [
"Apache-2.0"
] | null | null | null | build_gromacs/module.py | daniellandau/shell-magic | 10f00662ff85ad6a87c874537e071b3bd1d5973d | [
"Apache-2.0"
] | null | null | null | import os, string
import subprocess
if not os.environ.has_key('MODULE_VERSION'):
os.environ['MODULE_VERSION_STACK'] = '3.2.6.7'
os.environ['MODULE_VERSION'] = '3.2.6.7'
else:
os.environ['MODULE_VERSION_STACK'] = os.environ['MODULE_VERSION']
os.environ['MODULESHOME'] = '/opt/modules/3.2.6.7'
i... | 34.88 | 141 | 0.658257 | 117 | 872 | 4.811966 | 0.384615 | 0.175844 | 0.133215 | 0.195382 | 0.202487 | 0.106572 | 0 | 0 | 0 | 0 | 0 | 0.018642 | 0.138761 | 872 | 24 | 142 | 36.333333 | 0.731025 | 0 | 0 | 0 | 0 | 0.055556 | 0.34558 | 0.098737 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.055556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
23c22f69d65d4b2230b43270268b45ba2df0f6cc | 2,314 | py | Python | konduto/api/clients/v1/order.py | ZXVentures/konduto-sdk | 1a8151115232c9de4abe1acc6754c593542f2569 | [
"MIT"
] | 4 | 2020-04-29T07:53:59.000Z | 2021-05-26T20:13:51.000Z | konduto/api/clients/v1/order.py | ZXVentures/konduto-sdk | 1a8151115232c9de4abe1acc6754c593542f2569 | [
"MIT"
] | 7 | 2020-04-05T08:05:55.000Z | 2021-04-07T19:24:15.000Z | konduto/api/clients/v1/order.py | ZXVentures/konduto-sdk | 1a8151115232c9de4abe1acc6754c593542f2569 | [
"MIT"
] | 1 | 2021-06-15T17:37:20.000Z | 2021-06-15T17:37:20.000Z | from datetime import date, datetime
from decimal import Decimal
from enum import Enum
from typing import Union
from dacite import from_dict, Config
from konduto import KONDUTO_DOMAIN
from konduto.api.clients import KondutoHttpClient
from konduto.api.resources.konduto_order_status import KondutoOrderStatus
from kondut... | 45.372549 | 114 | 0.715644 | 259 | 2,314 | 6.200772 | 0.262548 | 0.061644 | 0.052304 | 0.071606 | 0.145704 | 0.100872 | 0.053549 | 0 | 0 | 0 | 0 | 0.000543 | 0.203544 | 2,314 | 50 | 115 | 46.28 | 0.870863 | 0 | 0 | 0.131579 | 0 | 0 | 0.045376 | 0.028954 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.368421 | 0 | 0.605263 | 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 | 1 | 0 | 0 | 2 |
23c779ac291911cedce74e51cd461b1a3b2ae204 | 1,310 | py | Python | grocers_panel/migrations/0014_auto_20220109_2140.py | delitamakanda/GroceryApp | 8b0eeb40197b480598928dd7e95e63ca180c9bf1 | [
"MIT"
] | 1 | 2021-05-25T02:46:42.000Z | 2021-05-25T02:46:42.000Z | grocers_panel/migrations/0014_auto_20220109_2140.py | delitamakanda/GroceryApp | 8b0eeb40197b480598928dd7e95e63ca180c9bf1 | [
"MIT"
] | null | null | null | grocers_panel/migrations/0014_auto_20220109_2140.py | delitamakanda/GroceryApp | 8b0eeb40197b480598928dd7e95e63ca180c9bf1 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2022-01-09 21:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('grocers_panel', '0013_remove_shop_ratings'),
]
operations = [
migrations.AddField(
model_name='meal',
name='category... | 33.589744 | 258 | 0.555725 | 137 | 1,310 | 5.20438 | 0.583942 | 0.126227 | 0.16129 | 0.189341 | 0.256662 | 0.256662 | 0.109397 | 0 | 0 | 0 | 0 | 0.028815 | 0.284733 | 1,310 | 38 | 259 | 34.473684 | 0.732124 | 0.034351 | 0 | 0.46875 | 1 | 0 | 0.203484 | 0.019002 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
23d50365d7ba232a30cdf3453bbbb5adf423f338 | 217 | py | Python | src/lib/searchio/cmd/__init__.py | cgxxv/alfred-searchio | f4a14cbe5350b83d6d962aa993abf01f14b60d33 | [
"MIT"
] | 304 | 2015-01-15T08:18:47.000Z | 2022-03-31T10:41:52.000Z | src/lib/searchio/cmd/__init__.py | cgxxv/alfred-searchio | f4a14cbe5350b83d6d962aa993abf01f14b60d33 | [
"MIT"
] | 66 | 2015-03-14T18:10:36.000Z | 2022-03-27T11:33:56.000Z | src/lib/searchio/cmd/__init__.py | cgxxv/alfred-searchio | f4a14cbe5350b83d6d962aa993abf01f14b60d33 | [
"MIT"
] | 36 | 2015-04-12T16:50:17.000Z | 2022-03-28T09:53:32.000Z | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2016 Dean Jackson <deanishe@deanishe.net>
#
# MIT Licence. See http://opensource.org/licenses/MIT
#
# Created on 2016-12-17
#
"""CLI program sub-commands."""
| 18.083333 | 57 | 0.691244 | 32 | 217 | 4.6875 | 0.90625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069149 | 0.133641 | 217 | 11 | 58 | 19.727273 | 0.728723 | 0.884793 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
23d88761bf0399128d2751e5fe15ec42df388eb3 | 730 | py | Python | tests/mocks.py | AtteqCom/zsl | 0d418ef957c9780263b1031dbc59482cd974bc04 | [
"MIT"
] | 2 | 2017-05-17T08:08:52.000Z | 2019-03-25T00:24:51.000Z | tests/mocks.py | AtteqCom/zsl | 0d418ef957c9780263b1031dbc59482cd974bc04 | [
"MIT"
] | 100 | 2017-01-11T13:43:11.000Z | 2022-02-10T09:27:18.000Z | tests/mocks.py | AtteqCom/zsl | 0d418ef957c9780263b1031dbc59482cd974bc04 | [
"MIT"
] | 1 | 2017-05-10T10:27:01.000Z | 2017-05-10T10:27:01.000Z | from __future__ import absolute_import, division, print_function, unicode_literals
from builtins import *
import unittest.mock as mock
from zsl.service.service import SessionFactory
from zsl.testing.db import TestSessionFactory as DbTestTestSessionFactory
from zsl.utils.injection_helper import bind
def mock_db_sess... | 29.2 | 82 | 0.771233 | 79 | 730 | 6.810127 | 0.443038 | 0.039033 | 0.052045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169863 | 730 | 24 | 83 | 30.416667 | 0.887789 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.352941 | 0.058824 | 0.705882 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
23ebf14e099d895ec0298ea1fa8cbb1733831e97 | 1,879 | py | Python | tests/importer/test_importer.py | madman-bob/python-custom-imports | e9d6979865bfde5f149a2190d8f2895d333ab219 | [
"MIT"
] | null | null | null | tests/importer/test_importer.py | madman-bob/python-custom-imports | e9d6979865bfde5f149a2190d8f2895d333ab219 | [
"MIT"
] | 1 | 2020-05-21T02:36:07.000Z | 2020-05-21T12:55:24.000Z | tests/importer/test_importer.py | madman-bob/python-custom-imports | e9d6979865bfde5f149a2190d8f2895d333ab219 | [
"MIT"
] | null | null | null | import sys
from dataclasses import dataclass
from unittest import TestCase
from custom_imports.importer import Importer, SimpleFinder, SimpleLoader
@dataclass
class SimpleLocator:
fullname: str
@dataclass
class SimpleModule:
value: str = ""
def set_value(self, locator):
self.value = locator.fu... | 27.632353 | 87 | 0.655136 | 185 | 1,879 | 6.52973 | 0.302703 | 0.107616 | 0.062086 | 0.086921 | 0.393212 | 0.328642 | 0.293046 | 0.215232 | 0.215232 | 0.215232 | 0 | 0 | 0.271421 | 1,879 | 67 | 88 | 28.044776 | 0.882396 | 0 | 0 | 0.319149 | 0 | 0 | 0.116551 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 1 | 0.085106 | false | 0 | 0.446809 | 0 | 0.638298 | 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 | 1 | 0 | 0 | 2 |
23f0ccaaba7eebeb54f929980974ee92f041bf50 | 5,932 | py | Python | Match.py | gregorscholz/Pyke | d256cb8fbbdc5c35daaa064232f345afdcbd0d3b | [
"MIT"
] | null | null | null | Match.py | gregorscholz/Pyke | d256cb8fbbdc5c35daaa064232f345afdcbd0d3b | [
"MIT"
] | null | null | null | Match.py | gregorscholz/Pyke | d256cb8fbbdc5c35daaa064232f345afdcbd0d3b | [
"MIT"
] | null | null | null | import requests
import Pyke
class Match_History:
def __init__(self, puuid: str, region: str = 'europe', start_time: int = None, end_time: int = None, queue: int = None, type: str = None, start: int = 0, count: int = 20) -> None:
__json = Match_History.__match_history_data(puuid, region, start_time, en... | 58.156863 | 603 | 0.601483 | 695 | 5,932 | 4.739568 | 0.230216 | 0.054645 | 0.076503 | 0.019429 | 0.202793 | 0.192471 | 0.183971 | 0.16697 | 0.141469 | 0.126897 | 0 | 0.011263 | 0.311531 | 5,932 | 102 | 604 | 58.156863 | 0.795299 | 0.245954 | 0 | 0.084507 | 0 | 0.028169 | 0.127387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.309859 | false | 0 | 0.028169 | 0.253521 | 0.647887 | 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 | 1 | 0 | 0 | 0 | 2 |
23f966facd3757ae3ae22a169b418e72c9f65645 | 313 | py | Python | primeira_lista/ex010.py | PedroSantana2/exercicios-em-python | e0a98e699ba49873f67438fd9092dc3ab0ca719c | [
"MIT"
] | 1 | 2021-03-16T03:58:39.000Z | 2021-03-16T03:58:39.000Z | primeira_lista/ex010.py | PedroSantana2/exercicios-em-python | e0a98e699ba49873f67438fd9092dc3ab0ca719c | [
"MIT"
] | null | null | null | primeira_lista/ex010.py | PedroSantana2/exercicios-em-python | e0a98e699ba49873f67438fd9092dc3ab0ca719c | [
"MIT"
] | null | null | null | '''
Faça um Programa que peça a temperatura em graus Celsius, transforme e mostre em graus Fahrenheit.
'''
temperatura = float(input('Digite a temperatura em graus Celsius: '))
fahrenheit = temperatura * 9 / 5 + 32
print('{:.1f} graus Celsius equivale a {:.1f} graus Fahrenheit!'.format(temperatura, fahrenheit))
| 44.714286 | 98 | 0.738019 | 42 | 313 | 5.5 | 0.571429 | 0.090909 | 0.121212 | 0.164502 | 0.225108 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022388 | 0.14377 | 313 | 6 | 99 | 52.166667 | 0.839552 | 0.313099 | 0 | 0 | 0 | 0 | 0.458937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
9b1493fcb9c0b6a2b3303a0b419765613bd404ef | 1,211 | py | Python | tests/sources_test.py | otienotimothy/news-arc | 00b2ba82125571653f356a5d671af63c1b295ed3 | [
"MIT"
] | null | null | null | tests/sources_test.py | otienotimothy/news-arc | 00b2ba82125571653f356a5d671af63c1b295ed3 | [
"MIT"
] | null | null | null | tests/sources_test.py | otienotimothy/news-arc | 00b2ba82125571653f356a5d671af63c1b295ed3 | [
"MIT"
] | null | null | null | import unittest
from app.models import News_Source
class News_sourcesTest(unittest.TestCase):
'''
Test Class to test the behaviour of the New Source Class
'''
def setUp(self):
'''
Set up method that will run before every Test
'''
self.news_source = News_Source("abc-new... | 35.617647 | 116 | 0.625103 | 148 | 1,211 | 5.013514 | 0.371622 | 0.161725 | 0.150943 | 0.185984 | 0.495957 | 0.212938 | 0.212938 | 0.115903 | 0 | 0 | 0 | 0 | 0.270851 | 1,211 | 33 | 117 | 36.69697 | 0.840317 | 0.180017 | 0 | 0 | 0 | 0 | 0.202643 | 0 | 0 | 0 | 0 | 0 | 0.4375 | 1 | 0.1875 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9b1814ba51a6041ee546b15ac68bd3132c1fbef2 | 2,123 | py | Python | menger/measure.py | bertrandchenal/menger | 090ce7a6b893305c4a356b3cc6dc007162903be1 | [
"MIT"
] | null | null | null | menger/measure.py | bertrandchenal/menger | 090ce7a6b893305c4a356b3cc6dc007162903be1 | [
"MIT"
] | null | null | null | menger/measure.py | bertrandchenal/menger | 090ce7a6b893305c4a356b3cc6dc007162903be1 | [
"MIT"
] | null | null | null | import locale
class Measure(object):
def __init__(self, label, type=float):
self.label = label
self.name = None
self.type = type
def format(self, value, fmt_type=None):
if self.type == float:
return locale.format('%.2f', value)
return self.type(value)
... | 22.827957 | 72 | 0.552991 | 252 | 2,123 | 4.464286 | 0.238095 | 0.056889 | 0.029333 | 0.042667 | 0.158222 | 0.131556 | 0.087111 | 0.087111 | 0.087111 | 0.087111 | 0 | 0.00581 | 0.35139 | 2,123 | 92 | 73 | 23.076087 | 0.811184 | 0 | 0 | 0.283582 | 0 | 0 | 0.031088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238806 | false | 0 | 0.014925 | 0.119403 | 0.537313 | 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 | 1 | 0 | 0 | 0 | 2 |
9b1e1857ae23cefd1b89eda5cdf9c4c03d773fc0 | 2,623 | py | Python | buttons.py | docputs/BRCoronavirusBot | 7c0b8c616d5890ca0df68368f0033f3b7ce818fa | [
"MIT"
] | 1 | 2020-06-05T13:54:45.000Z | 2020-06-05T13:54:45.000Z | buttons.py | docputs/BRCoronavirusBot | 7c0b8c616d5890ca0df68368f0033f3b7ce818fa | [
"MIT"
] | null | null | null | buttons.py | docputs/BRCoronavirusBot | 7c0b8c616d5890ca0df68368f0033f3b7ce818fa | [
"MIT"
] | 1 | 2020-06-04T08:57:30.000Z | 2020-06-04T08:57:30.000Z | from telebot import types as t
class Buttons:
botoes = t.ReplyKeyboardMarkup(row_width=1)
botao1 = t.KeyboardButton('Dados recentes')
botao2 = t.KeyboardButton('Dados por estado')
botao3 = t.KeyboardButton('Dados por cidade')
botoes.add(botao1, botao2, botao3)
class Estados:
estados = t.Inli... | 40.984375 | 113 | 0.664506 | 330 | 2,623 | 5.172727 | 0.218182 | 0.356766 | 0.035149 | 0.026948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003717 | 0.179565 | 2,623 | 63 | 114 | 41.634921 | 0.789498 | 0 | 0 | 0 | 0 | 0 | 0.075486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.017857 | 0 | 0.714286 | 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 | 1 | 0 | 0 | 2 |
f1b426acfaecc71f7f944e0f84827eaedb830b4a | 629 | py | Python | hse_de_project/DEMethod.py | kekekekule/Differential-equations-project | 51c7e2324f06c7900ba821f09d6c9523c5346555 | [
"MIT"
] | null | null | null | hse_de_project/DEMethod.py | kekekekule/Differential-equations-project | 51c7e2324f06c7900ba821f09d6c9523c5346555 | [
"MIT"
] | null | null | null | hse_de_project/DEMethod.py | kekekekule/Differential-equations-project | 51c7e2324f06c7900ba821f09d6c9523c5346555 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
sys.path.append(".")
import sympy
from sympy.abc import x, y
class DESolveMethod:
def __init__(self):
pass
def solve(self, *args):
raise NotImplementedError('Method not determined.')
def __str__(self):
return 'Differential equation solve method.... | 22.464286 | 59 | 0.63752 | 78 | 629 | 4.987179 | 0.576923 | 0.010283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006369 | 0.251192 | 629 | 27 | 60 | 23.296296 | 0.819533 | 0.033386 | 0 | 0 | 0 | 0 | 0.095552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.05 | 0.15 | 0.05 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f1c77d22f404ea91482e8356116c705ddd052dad | 248 | py | Python | oop/data-hiding.py | sinhdev/python-demo | 77e97d01d853799aef9a71cd6b7892847f85727d | [
"MIT"
] | null | null | null | oop/data-hiding.py | sinhdev/python-demo | 77e97d01d853799aef9a71cd6b7892847f85727d | [
"MIT"
] | null | null | null | oop/data-hiding.py | sinhdev/python-demo | 77e97d01d853799aef9a71cd6b7892847f85727d | [
"MIT"
] | null | null | null | #!/usr/bin/python
class JustCounter:
__secret_count = 0
def count(self):
self.__secret_count += 1
print(self.__secret_count)
counter = JustCounter()
counter.count()
counter.count()
# can't access
print(counter.__secret_count) | 17.714286 | 32 | 0.705645 | 32 | 248 | 5.09375 | 0.5 | 0.269939 | 0.184049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009756 | 0.173387 | 248 | 14 | 33 | 17.714286 | 0.785366 | 0.116935 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0.222222 | 0 | 0 | 0 | null | 1 | 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 | 2 |
f1c7e7076f4083409b97ca9e30980a5ee437cf93 | 155 | py | Python | AtCoder/ABC/160-169/ABC163_C.py | sireline/PyCode | 8578467710c3c1faa89499f5d732507f5d9a584c | [
"MIT"
] | null | null | null | AtCoder/ABC/160-169/ABC163_C.py | sireline/PyCode | 8578467710c3c1faa89499f5d732507f5d9a584c | [
"MIT"
] | null | null | null | AtCoder/ABC/160-169/ABC163_C.py | sireline/PyCode | 8578467710c3c1faa89499f5d732507f5d9a584c | [
"MIT"
] | null | null | null | N = int(input())
A = [int(n) for n in input().split()]
ans = [0] + [0]*N
for i in range(N-1):
ans[A[i]] += 1
for i in range(1, N+1):
print(ans[i])
| 19.375 | 37 | 0.503226 | 35 | 155 | 2.228571 | 0.371429 | 0.102564 | 0.153846 | 0.282051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05042 | 0.232258 | 155 | 7 | 38 | 22.142857 | 0.605042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 2 |
f1d05a20c34a194d6b031a53807bc56fd3ecc1f7 | 1,778 | py | Python | src/nodes/data_viz.py | alitaca/Projeto_final | ba915bb8075d1bf9dd552fe93cfb9b19f71237a7 | [
"RSA-MD"
] | null | null | null | src/nodes/data_viz.py | alitaca/Projeto_final | ba915bb8075d1bf9dd552fe93cfb9b19f71237a7 | [
"RSA-MD"
] | null | null | null | src/nodes/data_viz.py | alitaca/Projeto_final | ba915bb8075d1bf9dd552fe93cfb9b19f71237a7 | [
"RSA-MD"
] | null | null | null | import logging
import pandas as pd
logger = logging.getLogger('nodes.data_viz')
def update(client, params):
''' Esta funcao faz extracao de dados no database e salva os dados extraidos
em arquivo csv.
Parameters
----------
client : class
parametros de conexao da pipeline.
para... | 35.56 | 108 | 0.692913 | 248 | 1,778 | 4.741935 | 0.407258 | 0.041667 | 0.056122 | 0.030612 | 0.116497 | 0.10119 | 0.069728 | 0.069728 | 0.069728 | 0.069728 | 0 | 0.000726 | 0.224972 | 1,778 | 50 | 109 | 35.56 | 0.852685 | 0.170979 | 0 | 0 | 0 | 0.08 | 0.737994 | 0.189266 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0.32 | 0.08 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f1dce76aa187223a0987586b7b10977e79592fce | 1,036 | py | Python | application/migrations/0020_auto_20210509_1659.py | geeksforsocialchange/imok | efb7189c13c398dbd5d4301ca496a2e583b0f5b7 | [
"MIT"
] | 6 | 2021-05-12T08:40:36.000Z | 2022-01-25T08:31:06.000Z | application/migrations/0020_auto_20210509_1659.py | geeksforsocialchange/imok | efb7189c13c398dbd5d4301ca496a2e583b0f5b7 | [
"MIT"
] | 14 | 2021-05-12T09:03:08.000Z | 2021-06-10T13:18:52.000Z | application/migrations/0020_auto_20210509_1659.py | geeksforsocialchange/imok | efb7189c13c398dbd5d4301ca496a2e583b0f5b7 | [
"MIT"
] | 1 | 2021-05-14T20:54:15.000Z | 2021-05-14T20:54:15.000Z | # Generated by Django 3.2.2 on 2021-05-09 15:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('application', '0019_alter_member_telegram_username'),
]
operations = [
migrations.RemoveField(
model_name='member',
... | 27.263158 | 76 | 0.573359 | 100 | 1,036 | 5.73 | 0.49 | 0.078534 | 0.13089 | 0.165794 | 0.500873 | 0.427574 | 0.363002 | 0.363002 | 0.363002 | 0.247819 | 0 | 0.026836 | 0.316602 | 1,036 | 37 | 77 | 28 | 0.782486 | 0.043436 | 0 | 0.516129 | 1 | 0 | 0.166835 | 0.103134 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.129032 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f1eaeef6d4704f3dd4ae7d087c7ccca70285e004 | 28,800 | py | Python | tests/test_landsat_c2.py | cogeotiff/rio-tiler-pds | 52482c80baf7fd26cf06cd2af2961cca396b20e0 | [
"BSD-3-Clause"
] | 30 | 2020-07-21T23:32:14.000Z | 2022-02-21T23:35:35.000Z | tests/test_landsat_c2.py | cogeotiff/rio-tiler-pds | 52482c80baf7fd26cf06cd2af2961cca396b20e0 | [
"BSD-3-Clause"
] | 36 | 2020-07-21T20:48:51.000Z | 2021-10-06T08:15:00.000Z | tests/test_landsat_c2.py | cogeotiff/rio-tiler-pds | 52482c80baf7fd26cf06cd2af2961cca396b20e0 | [
"BSD-3-Clause"
] | 4 | 2020-07-23T06:19:30.000Z | 2021-11-18T03:27:04.000Z | from pathlib import Path
from unittest.mock import patch
import numpy
import pytest
import rasterio
from rio_tiler.errors import InvalidBandName, MissingBands, TileOutsideBounds
from rio_tiler_pds.errors import InvalidLandsatSceneId
from rio_tiler_pds.landsat.aws import LandsatC2Reader
from rio_tiler_pds.landsat.util... | 34.204276 | 88 | 0.536771 | 2,906 | 28,800 | 5.07192 | 0.128355 | 0.021033 | 0.026053 | 0.037859 | 0.806432 | 0.704118 | 0.663614 | 0.543388 | 0.497795 | 0.466246 | 0 | 0.129947 | 0.32184 | 28,800 | 841 | 89 | 34.244946 | 0.624699 | 0.065521 | 0 | 0.538036 | 0 | 0 | 0.324542 | 0.097973 | 0 | 0 | 0 | 0 | 0.100968 | 1 | 0.006916 | false | 0.002766 | 0.012448 | 0 | 0.020747 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 2 |
f1f21b6d0d5e0b5b1f60de81ac6823a5f3255d54 | 2,295 | py | Python | model/frames.py | Veronicka/Python-Serial-INPE | 801661a76edbcc1a5e6256a80b1966bc846541fc | [
"MIT"
] | null | null | null | model/frames.py | Veronicka/Python-Serial-INPE | 801661a76edbcc1a5e6256a80b1966bc846541fc | [
"MIT"
] | null | null | null | model/frames.py | Veronicka/Python-Serial-INPE | 801661a76edbcc1a5e6256a80b1966bc846541fc | [
"MIT"
] | null | null | null | __author__ = 'Veronica'
from random import randint
header = [0xeb, 0x95, 0x4, 0xfa, 0x0, 0x0, 0x0, 0x0, 0x0]
def checksum(frame):
return 0xFF - (sum(frame[4:]) & 0xFF)
def acknowledge():
ack = [0xeb, 0x95, 0x3, 0x0, 0x55, 0xAA]
#ack.append(checksum(ack))
return ack
def housekeeping(n, t):
n_Vp ... | 21.650943 | 122 | 0.565142 | 348 | 2,295 | 3.594828 | 0.293103 | 0.091926 | 0.134293 | 0.166267 | 0.517986 | 0.517986 | 0.517986 | 0.517986 | 0.503597 | 0.430855 | 0 | 0.172173 | 0.314161 | 2,295 | 105 | 123 | 21.857143 | 0.622618 | 0.023094 | 0 | 0.701299 | 0 | 0 | 0.003575 | 0 | 0 | 0 | 0.165773 | 0 | 0 | 1 | 0.051948 | false | 0 | 0.012987 | 0.012987 | 0.116883 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f1ff82e6dd05ce6b009ac20b7bb19e223775ef79 | 1,481 | py | Python | samples/table_schema_examples.py | SorenSeeberg/MrDatabase | 07d39c1f227d9ceaffe7e409f0915776901dd3e9 | [
"MIT"
] | null | null | null | samples/table_schema_examples.py | SorenSeeberg/MrDatabase | 07d39c1f227d9ceaffe7e409f0915776901dd3e9 | [
"MIT"
] | 1 | 2018-05-28T11:55:49.000Z | 2018-06-11T16:51:45.000Z | samples/table_schema_examples.py | SorenSeeberg/MrDatabase | 07d39c1f227d9ceaffe7e409f0915776901dd3e9 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
from mr_database import DataTypes
from mr_database import Table
from mr_database import Column
class TableTemplate(Table):
id = Column(DataTypes.integer, pk=True)
myCol = Column(DataTypes.varchar(16), default='Hello World')
class BrokenTable(Table):
id = Col... | 26.446429 | 90 | 0.6921 | 185 | 1,481 | 5.410811 | 0.340541 | 0.224775 | 0.131868 | 0.10989 | 0.424575 | 0.360639 | 0.240759 | 0.135864 | 0.135864 | 0.135864 | 0 | 0.020559 | 0.178933 | 1,481 | 55 | 91 | 26.927273 | 0.802632 | 0.026334 | 0 | 0.272727 | 0 | 0 | 0.034028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.090909 | 0 | 0.818182 | 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 | 1 | 0 | 0 | 2 |
7b005faa97d65355525b45fe38a63a36b3f2430a | 6,920 | py | Python | aleph/model/role.py | gazeti/aleph | f6714c4be038471cfdc6408bfe88dc9e2ed28452 | [
"MIT"
] | 1 | 2017-07-28T12:54:09.000Z | 2017-07-28T12:54:09.000Z | aleph/model/role.py | gazeti/aleph | f6714c4be038471cfdc6408bfe88dc9e2ed28452 | [
"MIT"
] | 7 | 2017-08-16T12:49:23.000Z | 2018-02-16T10:22:11.000Z | aleph/model/role.py | gazeti/aleph | f6714c4be038471cfdc6408bfe88dc9e2ed28452 | [
"MIT"
] | 6 | 2017-07-26T12:29:53.000Z | 2017-08-18T09:35:50.000Z | import logging
from flask import current_app
from sqlalchemy import or_
from itsdangerous import URLSafeTimedSerializer
from werkzeug.security import generate_password_hash, check_password_hash
from normality import stringify
from flask_simpleldap import LDAPException
from aleph.core import db, ldap, url_for, get_con... | 31.598174 | 79 | 0.615751 | 883 | 6,920 | 4.650057 | 0.233296 | 0.05699 | 0.019484 | 0.024842 | 0.155626 | 0.129566 | 0.063322 | 0.049196 | 0.018997 | 0.018997 | 0 | 0.003002 | 0.278035 | 6,920 | 218 | 80 | 31.743119 | 0.818855 | 0.133815 | 0 | 0.138889 | 1 | 0 | 0.039458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118056 | false | 0.069444 | 0.069444 | 0.027778 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
7b10a4baf330e2f2546257d21c8a753661c57bd4 | 3,684 | py | Python | simulation.py | germtb/Pysics | af293dfcd7383860927d49cb78d7b269a0ff7a2a | [
"MIT"
] | 2 | 2015-10-22T19:12:20.000Z | 2016-05-28T11:11:50.000Z | simulation.py | germtb/Pysics | af293dfcd7383860927d49cb78d7b269a0ff7a2a | [
"MIT"
] | null | null | null | simulation.py | germtb/Pysics | af293dfcd7383860927d49cb78d7b269a0ff7a2a | [
"MIT"
] | null | null | null | from math import sqrt
from numpy import arange
from universal_constants import MARS_RADIUS
from universal_functions import mars_density
class Simulation:
@property
def xs(self):
return [v.x for v in self.ps]
@property
def ys(self):
return [v.y for v in self.ps]
@property
def... | 27.492537 | 79 | 0.594463 | 498 | 3,684 | 4.277108 | 0.220884 | 0.078873 | 0.033803 | 0.030047 | 0.307042 | 0.216432 | 0.189202 | 0.131455 | 0.105164 | 0.105164 | 0 | 0.021196 | 0.282845 | 3,684 | 133 | 80 | 27.699248 | 0.785011 | 0.006243 | 0 | 0.25 | 0 | 0 | 0.014485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22 | false | 0 | 0.06 | 0.12 | 0.43 | 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 | 1 | 0 | 0 | 0 | 2 |
7b14578be99316bdc91f5e6c5462639763ec1f80 | 1,677 | py | Python | attachments/migrations/0004_auto_20170303_1242.py | liddiard/appletini | fa006e1b71ac60738bb5353e949676755530c781 | [
"MIT"
] | 1 | 2015-03-17T04:13:47.000Z | 2015-03-17T04:13:47.000Z | attachments/migrations/0004_auto_20170303_1242.py | liddiard/appletini | fa006e1b71ac60738bb5353e949676755530c781 | [
"MIT"
] | 27 | 2015-04-14T20:18:24.000Z | 2015-06-16T20:01:06.000Z | attachments/migrations/0004_auto_20170303_1242.py | liddiard/appletini | fa006e1b71ac60738bb5353e949676755530c781 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-03 20:42
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('attachments', '0003_auto_20150505_0038'),
]
operation... | 35.680851 | 192 | 0.614788 | 184 | 1,677 | 5.472826 | 0.527174 | 0.119166 | 0.148957 | 0.17279 | 0.202582 | 0.202582 | 0.063555 | 0 | 0 | 0 | 0 | 0.031785 | 0.268336 | 1,677 | 46 | 193 | 36.456522 | 0.788916 | 0.040549 | 0 | 0.410256 | 1 | 0.025641 | 0.244707 | 0.0467 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.153846 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9e3269149cbd5ddb55d4bd789472c82783c166ad | 3,008 | py | Python | src/lightuptraining/sources/antplus/messages/util.py | marcelblijleven/light-up-training | e0310ec024c03064934f5c01d3b336dd81fac93c | [
"MIT"
] | 1 | 2021-12-05T13:55:04.000Z | 2021-12-05T13:55:04.000Z | src/lightuptraining/sources/antplus/messages/util.py | marcelblijleven/light-up-training | e0310ec024c03064934f5c01d3b336dd81fac93c | [
"MIT"
] | null | null | null | src/lightuptraining/sources/antplus/messages/util.py | marcelblijleven/light-up-training | e0310ec024c03064934f5c01d3b336dd81fac93c | [
"MIT"
] | null | null | null | import struct
from functools import reduce
from operator import ixor
from typing import Iterable, List, Tuple, Union
def calculate_checksum(message: Iterable[int]) -> int:
"""
Calculates the checksum, which is the XOR of all bytes in the message
"""
return reduce(ixor, message)
def validate_device_n... | 34.976744 | 109 | 0.681848 | 453 | 3,008 | 4.403974 | 0.264901 | 0.120301 | 0.039098 | 0.063158 | 0.117293 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082971 | 0.234707 | 3,008 | 85 | 110 | 35.388235 | 0.783666 | 0.473404 | 0 | 0 | 0 | 0 | 0.123755 | 0 | 0 | 0 | 0.01707 | 0 | 0 | 1 | 0.28 | false | 0 | 0.16 | 0 | 0.64 | 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 | 1 | 0 | 0 | 2 |
9e4808756721d395e2636c25f7279c1c5b24a07e | 2,079 | py | Python | directory/migrations/0001_initial.py | for-each-org/taf-members | a9e9663acc8ae5a321965a6340c639ede0c09754 | [
"MIT"
] | null | null | null | directory/migrations/0001_initial.py | for-each-org/taf-members | a9e9663acc8ae5a321965a6340c639ede0c09754 | [
"MIT"
] | 19 | 2018-02-10T22:54:40.000Z | 2018-03-03T19:06:18.000Z | directory/migrations/0001_initial.py | for-each-org/taf-members | a9e9663acc8ae5a321965a6340c639ede0c09754 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.2 on 2018-02-15 19:41
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fiel... | 39.980769 | 114 | 0.555556 | 192 | 2,079 | 5.880208 | 0.385417 | 0.106289 | 0.127547 | 0.170062 | 0.528787 | 0.400354 | 0.372896 | 0.372896 | 0.264836 | 0.264836 | 0 | 0.027341 | 0.296296 | 2,079 | 51 | 115 | 40.764706 | 0.744361 | 0.021645 | 0 | 0.5 | 1 | 0 | 0.107283 | 0.010827 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.022727 | 0.045455 | 0 | 0.136364 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9e5cd8d2a098fb3407f6b897d62a65e1cb962ec8 | 766 | py | Python | tests/test_deconvolution.py | 0xDBFB7/xraylarch | 3d48494d104ab31d0b3c94e3166f716fef7efe1e | [
"BSD-2-Clause"
] | null | null | null | tests/test_deconvolution.py | 0xDBFB7/xraylarch | 3d48494d104ab31d0b3c94e3166f716fef7efe1e | [
"BSD-2-Clause"
] | null | null | null | tests/test_deconvolution.py | 0xDBFB7/xraylarch | 3d48494d104ab31d0b3c94e3166f716fef7efe1e | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
""" Tests of Larch Scripts """
import unittest
import time
import ast
import numpy as np
import os
from sys import version_info
from utils import TestCase
from larch import Interpreter
class TestScripts(TestCase):
'''tests'''
def test_basic_interp(self):
self.runscript('interp.l... | 27.357143 | 66 | 0.665796 | 101 | 766 | 4.930693 | 0.643564 | 0.060241 | 0.044177 | 0.068273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048701 | 0.195822 | 766 | 27 | 67 | 28.37037 | 0.75974 | 0.088773 | 0 | 0 | 0 | 0 | 0.074453 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.052632 | false | 0 | 0.421053 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
9e6ab477a8216a829281be948e7a973f5c0e3f87 | 1,055 | py | Python | corkus/objects/major_identification.py | MrBartusek/corkus.py | 031c11e3e251f0bddbcb67415564357460fe7fea | [
"MIT"
] | 5 | 2021-09-10T14:20:15.000Z | 2022-01-09T11:27:49.000Z | corkus/objects/major_identification.py | MrBartusek/corkus.py | 031c11e3e251f0bddbcb67415564357460fe7fea | [
"MIT"
] | 11 | 2021-08-15T09:39:09.000Z | 2022-01-12T14:11:24.000Z | corkus/objects/major_identification.py | MrBartusek/corkus.py | 031c11e3e251f0bddbcb67415564357460fe7fea | [
"MIT"
] | 2 | 2021-12-01T23:33:14.000Z | 2022-01-12T11:08:18.000Z | from __future__ import annotations
from typing import TYPE_CHECKING
from .base import CorkusBase
from corkus.data.major_ids import major_ids
if TYPE_CHECKING:
from corkus import Corkus
class MajorIdentification(CorkusBase):
"""Major IDs are a type of special :py:class:`Identification` but, they are not
r... | 30.142857 | 84 | 0.658768 | 141 | 1,055 | 4.787234 | 0.41844 | 0.047407 | 0.044444 | 0.035556 | 0.127407 | 0.071111 | 0.071111 | 0 | 0 | 0 | 0 | 0 | 0.227488 | 1,055 | 34 | 85 | 31.029412 | 0.828221 | 0.316588 | 0 | 0.190476 | 0 | 0 | 0.072254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.238095 | 0.095238 | 0.761905 | 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 | 1 | 0 | 0 | 2 |
9e8432957230c08c77bb78f607f33659db10a210 | 106 | py | Python | databooks/version.py | datarootsio/databooks | 6ecbae09c7df8149ae3ab45a88e00f6ccea7d045 | [
"MIT"
] | 75 | 2021-12-20T11:50:48.000Z | 2022-03-31T19:57:26.000Z | databooks/version.py | datarootsio/databooks | 6ecbae09c7df8149ae3ab45a88e00f6ccea7d045 | [
"MIT"
] | 26 | 2021-12-16T16:17:31.000Z | 2022-03-03T20:58:50.000Z | databooks/version.py | datarootsio/databooks | 6ecbae09c7df8149ae3ab45a88e00f6ccea7d045 | [
"MIT"
] | 3 | 2021-12-16T15:26:15.000Z | 2022-03-02T10:04:34.000Z | """Package version information - this file is dynamically overwritten in CI."""
__version__ = "0.0.0-dev"
| 35.333333 | 79 | 0.735849 | 15 | 106 | 4.933333 | 0.8 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032609 | 0.132075 | 106 | 2 | 80 | 53 | 0.771739 | 0.688679 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
9e91fcd8769e0a959b21b0061de9d66421e4b737 | 3,423 | py | Python | python/task.py | balder2046/my-program | 53285cebb4852707596252ad93959a361144c595 | [
"MIT"
] | null | null | null | python/task.py | balder2046/my-program | 53285cebb4852707596252ad93959a361144c595 | [
"MIT"
] | null | null | null | python/task.py | balder2046/my-program | 53285cebb4852707596252ad93959a361144c595 | [
"MIT"
] | null | null | null | import queue
import threading
class Task:
def __init__(self,id,func):
self.id = id
self.func = func
def run(self):
self.func()
class TaskQueue:
def __init__(self):
self.tasks = queue.Queue()
pass
def add_task(self,task):
self.tasks.put(task)
pas... | 25.931818 | 98 | 0.556822 | 391 | 3,423 | 4.726343 | 0.196931 | 0.064935 | 0.02381 | 0.025974 | 0.230519 | 0.185065 | 0.11039 | 0.093074 | 0.093074 | 0.049784 | 0 | 0.004045 | 0.349985 | 3,423 | 131 | 99 | 26.129771 | 0.826517 | 0.049956 | 0 | 0.265306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204082 | false | 0.081633 | 0.020408 | 0 | 0.295918 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9e93cbb866fe3d8bf04c4db2a4211c4222c4c706 | 242 | py | Python | enki/modeltokenauth.py | charlf/enkiWS | 789c789b2c0e46dcf568697dc2e46b82512981da | [
"Zlib"
] | 1 | 2021-04-22T15:29:20.000Z | 2021-04-22T15:29:20.000Z | enki/modeltokenauth.py | charlf/enkiWS | 789c789b2c0e46dcf568697dc2e46b82512981da | [
"Zlib"
] | null | null | null | enki/modeltokenauth.py | charlf/enkiWS | 789c789b2c0e46dcf568697dc2e46b82512981da | [
"Zlib"
] | null | null | null | from google.appengine.ext.ndb import model
class EnkiModelTokenAuth( model.Model ):
token = model.StringProperty() # unique
user_id = model.IntegerProperty() # the ndb ID nr
time_created = model.DateTimeProperty( auto_now_add = True )
| 24.2 | 61 | 0.764463 | 31 | 242 | 5.83871 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144628 | 242 | 9 | 62 | 26.888889 | 0.874396 | 0.082645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
9e943a138c43468dd627b5d3cdcbab7e5d1109cf | 467 | py | Python | backend/protobackend/cases/urls.py | TheRayOfSeasons/django-angular-stack-study | cf62c15e1bc4738f64fc453eb59ea7c1c5ff023b | [
"MIT"
] | null | null | null | backend/protobackend/cases/urls.py | TheRayOfSeasons/django-angular-stack-study | cf62c15e1bc4738f64fc453eb59ea7c1c5ff023b | [
"MIT"
] | null | null | null | backend/protobackend/cases/urls.py | TheRayOfSeasons/django-angular-stack-study | cf62c15e1bc4738f64fc453eb59ea7c1c5ff023b | [
"MIT"
] | null | null | null | from django.urls import path
from .views import CaseDetailView
from .views import CaseHomeView
from .views import CaseListView
from .views import LongLoadingView
urlpatterns = [
path('', CaseHomeView.as_view(), name='root'),
path('list/', CaseListView.as_view(), name='list'),
path('detail/<str:pk>/', C... | 21.227273 | 70 | 0.668094 | 54 | 467 | 5.666667 | 0.407407 | 0.117647 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188437 | 467 | 21 | 71 | 22.238095 | 0.807388 | 0 | 0 | 0 | 0 | 0 | 0.126338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
9ea2320b1249a28fb4899f53811a432a6df0cb8d | 219 | py | Python | atomos/__about__.py | maxcountryman/atomos | 418746c69134efba3c4f999405afe9113dee4827 | [
"BSD-3-Clause"
] | 75 | 2015-01-02T20:35:31.000Z | 2022-03-29T01:17:30.000Z | atomos/__about__.py | maxcountryman/atomos | 418746c69134efba3c4f999405afe9113dee4827 | [
"BSD-3-Clause"
] | 9 | 2015-03-13T15:14:02.000Z | 2021-06-25T15:40:48.000Z | atomos/__about__.py | maxcountryman/atomos | 418746c69134efba3c4f999405afe9113dee4827 | [
"BSD-3-Clause"
] | 9 | 2015-03-12T23:12:12.000Z | 2022-03-24T23:33:17.000Z | # -*- coding: utf-8 -*-
__title__ = 'atomos'
__version_info__ = ('0', '3', '1')
__version__ = '.'.join(__version_info__)
__author__ = 'Max Countryman'
__license__ = 'BSD'
__copyright__ = 'Copyright 2014 Max Countryman'
| 27.375 | 47 | 0.689498 | 24 | 219 | 5.041667 | 0.75 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042105 | 0.13242 | 219 | 7 | 48 | 31.285714 | 0.594737 | 0.09589 | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
9ea404d962de3e4547c261ce54c483d1257e51b0 | 469 | py | Python | datumaro/datumaro/components/converter.py | AzaelCicero/cvat | fa9b463d0eb07497ad74f24c823b5060544fdd6b | [
"MIT"
] | 2 | 2020-01-10T08:50:50.000Z | 2020-01-23T06:11:11.000Z | datumaro/datumaro/components/converter.py | AzaelCicero/cvat | fa9b463d0eb07497ad74f24c823b5060544fdd6b | [
"MIT"
] | 24 | 2020-11-13T18:43:15.000Z | 2022-03-12T00:21:52.000Z | datumaro/datumaro/components/converter.py | AzaelCicero/cvat | fa9b463d0eb07497ad74f24c823b5060544fdd6b | [
"MIT"
] | 5 | 2020-07-01T18:02:48.000Z | 2021-01-22T02:21:48.000Z |
# Copyright (C) 2019 Intel Corporation
#
# SPDX-License-Identifier: MIT
class Converter:
def __init__(self, cmdline_args=None):
pass
def __call__(self, extractor, save_dir):
raise NotImplementedError()
def _parse_cmdline(self, cmdline):
parser = self.build_cmdline_parser()
... | 24.684211 | 52 | 0.633262 | 54 | 469 | 5.222222 | 0.62963 | 0.078014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020057 | 0.255864 | 469 | 19 | 53 | 24.684211 | 0.787966 | 0.138593 | 0 | 0 | 0 | 0 | 0.005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.090909 | 0 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9ebd60318507fdbc573b698af0a680735510b16a | 1,048 | py | Python | metasub_utils/zurich/metasub_utils/zurich/sftp_server.py | MetaSUB/metasub_utils | c52c5dde816d710db5ac8dc6f8804bb795a992e4 | [
"MIT"
] | 8 | 2018-12-30T23:35:03.000Z | 2022-02-22T09:43:48.000Z | metasub_utils/zurich/metasub_utils/zurich/sftp_server.py | MetaSUB/metasub_utils | c52c5dde816d710db5ac8dc6f8804bb795a992e4 | [
"MIT"
] | 5 | 2019-01-05T04:54:46.000Z | 2021-03-10T08:59:16.000Z | metasub_utils/zurich/metasub_utils/zurich/sftp_server.py | MetaSUB/metasub_utils | c52c5dde816d710db5ac8dc6f8804bb795a992e4 | [
"MIT"
] | 2 | 2019-08-26T22:08:18.000Z | 2020-02-24T19:57:17.000Z | import pysftp
from .constants import *
class SFTPKnex:
def __init__(self, username, password, dryrun=False):
self.dryrun = dryrun
cnopts = pysftp.CnOpts()
cnopts.hostkeys = None
self.knex = pysftp.Connection(URL, username=username, password=password, cnopts=cnopts)
def close(... | 26.871795 | 95 | 0.631679 | 123 | 1,048 | 5.186992 | 0.333333 | 0.062696 | 0.047022 | 0.065831 | 0.213166 | 0.213166 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265267 | 1,048 | 38 | 96 | 27.578947 | 0.828571 | 0 | 0 | 0.206897 | 0 | 0 | 0.118321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0.103448 | 0.068966 | 0.034483 | 0.482759 | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9ebfc445844a8edd4ae12a7e14d4a5e67a5a30ed | 5,320 | py | Python | covid19_visualization.py | gilangsamudra/COVID19-Visualization-2020 | d94e5aad6d45bb6c51f2cc9553f5adf700a95ed3 | [
"MIT"
] | null | null | null | covid19_visualization.py | gilangsamudra/COVID19-Visualization-2020 | d94e5aad6d45bb6c51f2cc9553f5adf700a95ed3 | [
"MIT"
] | null | null | null | covid19_visualization.py | gilangsamudra/COVID19-Visualization-2020 | d94e5aad6d45bb6c51f2cc9553f5adf700a95ed3 | [
"MIT"
] | null | null | null | import pandas as pd
import matplotlib.pyplot as plt
# Bagian 1 -- Load data dari sumbernya
df = pd.read_csv(
'https://raw.githubusercontent.com/datasets/covid-19/\
master/data/countries-aggregated.csv', parse_dates=['Date'])
# Bagian 2 -- Melakukan filter data untuk data Malaysia dan Indonesia
negara = ["Indonesi... | 45.470085 | 79 | 0.650752 | 812 | 5,320 | 4.236453 | 0.167488 | 0.030523 | 0.039244 | 0.051163 | 0.782558 | 0.743314 | 0.743314 | 0.631977 | 0.565116 | 0.553488 | 0 | 0.0459 | 0.135902 | 5,320 | 116 | 80 | 45.862069 | 0.702415 | 0.032895 | 0 | 0.465347 | 0 | 0 | 0.137133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019802 | 0 | 0.019802 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 2 |
7b386c29db12d1fcff3de5e3ebd565a3f8f80c2b | 1,275 | py | Python | src/estimagic/optimization/__init__.py | janosg/estimagic | 58e17ff94339076f4b7688b1dbef5685f48157e2 | [
"BSD-3-Clause"
] | 7 | 2019-05-11T07:19:46.000Z | 2019-05-31T07:03:13.000Z | src/estimagic/optimization/__init__.py | janosg/estimagic | 58e17ff94339076f4b7688b1dbef5685f48157e2 | [
"BSD-3-Clause"
] | 14 | 2019-05-04T14:15:52.000Z | 2019-06-10T11:45:27.000Z | src/estimagic/optimization/__init__.py | janosg/estimagic | 58e17ff94339076f4b7688b1dbef5685f48157e2 | [
"BSD-3-Clause"
] | 1 | 2019-05-21T08:44:37.000Z | 2019-05-21T08:44:37.000Z | import inspect
from estimagic.optimization import bhhh
from estimagic.optimization import cyipopt_optimizers
from estimagic.optimization import fides_optimizers
from estimagic.optimization import nag_optimizers
from estimagic.optimization import neldermead
from estimagic.optimization import nlopt_optimizers
from estim... | 27.12766 | 88 | 0.761569 | 142 | 1,275 | 6.605634 | 0.288732 | 0.138593 | 0.266525 | 0.33049 | 0.26226 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00095 | 0.174118 | 1,275 | 46 | 89 | 27.717391 | 0.889839 | 0 | 0 | 0 | 0 | 0 | 0.051765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.282051 | 0 | 0.282051 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
7b419d6e1e869080a99431fa87c917a7ba0fb977 | 259 | py | Python | lessons/thw-testing/mean.py | burkesquires/bc | 8430271460d678fe321ea22ac5fcefb9ca9cb525 | [
"CC-BY-3.0"
] | 18 | 2016-11-20T17:10:22.000Z | 2021-09-10T05:40:06.000Z | lessons/thw-testing/mean.py | BernhardKonrad/2014-02-22-SFU | 25cfac5f703943ddaa98cc30bb267eacba48d07f | [
"CC-BY-3.0"
] | 8 | 2015-01-13T21:29:54.000Z | 2016-08-01T10:26:45.000Z | lessons/thw-testing/mean.py | BernhardKonrad/2014-02-22-SFU | 25cfac5f703943ddaa98cc30bb267eacba48d07f | [
"CC-BY-3.0"
] | 16 | 2015-01-15T15:31:52.000Z | 2016-06-29T19:15:47.000Z | def mean(numlist):
try :
total = sum(numlist)
length = len(numlist)
except TypeError :
raise TypeError("The list was not numbers.")
except :
print "Something unknown happened with the list."
return total/length
| 25.9 | 57 | 0.617761 | 30 | 259 | 5.333333 | 0.733333 | 0.0875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.301158 | 259 | 9 | 58 | 28.777778 | 0.883978 | 0 | 0 | 0 | 0 | 0 | 0.254826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7b552842777c1171fcfa9371e03619f090e43c52 | 741 | py | Python | eblog/urls.py | pandamasta/django-eblog | 13fdb27ff9584b848c512b9919a21dd3c0992816 | [
"BSD-3-Clause"
] | 4 | 2015-05-18T13:50:53.000Z | 2015-05-18T14:47:27.000Z | eblog/urls.py | pandamasta/django-eblog | 13fdb27ff9584b848c512b9919a21dd3c0992816 | [
"BSD-3-Clause"
] | null | null | null | eblog/urls.py | pandamasta/django-eblog | 13fdb27ff9584b848c512b9919a21dd3c0992816 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import *
from django.views.generic import TemplateView
from views import *
from models import Entry
from models import Category
urlpatterns = patterns('',
url(r'^(?P<year>\d{4})/$', YearsView.as_view(), name="blog_years"),
url(r'^(?P<year>\d{4})/(?P<month>\d{2})/$', MonthView.as_view(), ... | 43.588235 | 121 | 0.623482 | 118 | 741 | 3.788136 | 0.313559 | 0.053691 | 0.134228 | 0.187919 | 0.319911 | 0.178971 | 0.154362 | 0.154362 | 0.154362 | 0.154362 | 0 | 0.013453 | 0.097166 | 741 | 16 | 122 | 46.3125 | 0.654709 | 0 | 0 | 0 | 0 | 0.153846 | 0.387838 | 0.243243 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
7b69c2532a80c44486e8e15eae0f53a4ec60e885 | 16,308 | py | Python | Python_Controle_Multimidia_Universal/trunk/Controle/ControlMultimediaUniversal.py | felipelindemberg/ControleMultimidiaUniversal | 491487411bc63db497943fac78b810ac7e37ef44 | [
"Apache-2.0"
] | 1 | 2019-02-15T03:08:07.000Z | 2019-02-15T03:08:07.000Z | Python_Controle_Multimidia_Universal/trunk/Controle/ControlMultimediaUniversal.py | felipelindemberg/ControleMultimidiaUniversal | 491487411bc63db497943fac78b810ac7e37ef44 | [
"Apache-2.0"
] | null | null | null | Python_Controle_Multimidia_Universal/trunk/Controle/ControlMultimediaUniversal.py | felipelindemberg/ControleMultimidiaUniversal | 491487411bc63db497943fac78b810ac7e37ef44 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#!/usr/bin/python
import pygame
from pygame.locals import * # @UnusedWildImport @IgnorePep8
import os
import sys
from ServerBluetooth import *
from ThreadBluetooth import *
lib_path = os.path.abspath('Util/')
sys.path.append(lib_path)
try:
import Network as util
from Pygame import loadSprite
e... | 43.257294 | 138 | 0.636681 | 1,759 | 16,308 | 5.629903 | 0.185333 | 0.045542 | 0.035343 | 0.039988 | 0.546501 | 0.466424 | 0.417752 | 0.383419 | 0.31546 | 0.276886 | 0 | 0.033635 | 0.254354 | 16,308 | 376 | 139 | 43.37234 | 0.780757 | 0.031948 | 0 | 0.262911 | 0 | 0 | 0.12616 | 0.078344 | 0 | 0 | 0 | 0.066489 | 0 | 0 | null | null | 0 | 0.046948 | null | null | 0.046948 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.