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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
255944c391999d6773e34c522056f9b52e9a85c5 | 784 | py | Python | hexa/plugins/connector_airflow/migrations/0013_dag_run_states.py | qgerome/openhexa-app | 8c9377b2ad972121d8e9575f5d52420212b52ed4 | [
"MIT"
] | 4 | 2021-07-19T12:53:21.000Z | 2022-01-26T17:45:02.000Z | hexa/plugins/connector_airflow/migrations/0013_dag_run_states.py | qgerome/openhexa-app | 8c9377b2ad972121d8e9575f5d52420212b52ed4 | [
"MIT"
] | 20 | 2021-05-17T12:27:06.000Z | 2022-03-30T11:35:26.000Z | hexa/plugins/connector_airflow/migrations/0013_dag_run_states.py | qgerome/openhexa-app | 8c9377b2ad972121d8e9575f5d52420212b52ed4 | [
"MIT"
] | 2 | 2021-09-07T04:19:59.000Z | 2022-02-08T15:33:29.000Z | # Generated by Django 3.2.7 on 2021-10-27 09:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("connector_airflow", "0012_remove_airflow_run_message"),
]
operations = [
migrations.AlterModelOptions(
name="dagrun",
... | 25.290323 | 65 | 0.477041 | 61 | 784 | 6 | 0.770492 | 0.054645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046218 | 0.392857 | 784 | 30 | 66 | 26.133333 | 0.722689 | 0.057398 | 0 | 0.125 | 1 | 0 | 0.189959 | 0.042062 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2559a4a18ffbdf9ee00369efeb0eacf72905221a | 3,447 | py | Python | LAMARCK_ML/data_util/TypeShape_pb2.py | JonasDHomburg/LAMARCK | 0e372c908ff59effc6fd68e6477d04c4d89e6c26 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2019-09-20T08:03:47.000Z | 2021-05-10T11:02:09.000Z | LAMARCK_ML/data_util/TypeShape_pb2.py | JonasDHomburg/LAMARCK_ML | 0e372c908ff59effc6fd68e6477d04c4d89e6c26 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | LAMARCK_ML/data_util/TypeShape_pb2.py | JonasDHomburg/LAMARCK_ML | 0e372c908ff59effc6fd68e6477d04c4d89e6c26 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: LAMARCK_ML/data_util/TypeShape.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf impo... | 38.730337 | 354 | 0.78387 | 474 | 3,447 | 5.295359 | 0.265823 | 0.078884 | 0.041434 | 0.054183 | 0.468924 | 0.390837 | 0.288446 | 0.288446 | 0.238247 | 0.176096 | 0 | 0.027995 | 0.10879 | 3,447 | 88 | 355 | 39.170455 | 0.789063 | 0.069046 | 0 | 0.289855 | 1 | 0.014493 | 0.20231 | 0.163909 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115942 | 0 | 0.115942 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
255c0c175a4464c1c647d5f7bc88a0e78a8ca610 | 873 | py | Python | tests/test_query_releases.py | hysds/hysds-framework | 701fdf39f1fdb71bcb5c2f6fb6a81da2778fccc0 | [
"Apache-2.0"
] | 1 | 2020-02-09T14:15:11.000Z | 2020-02-09T14:15:11.000Z | tests/test_query_releases.py | hysds/hysds-framework | 701fdf39f1fdb71bcb5c2f6fb6a81da2778fccc0 | [
"Apache-2.0"
] | 12 | 2018-04-16T09:09:40.000Z | 2020-04-15T07:09:15.000Z | tests/test_query_releases.py | hysds/hysds-framework | 701fdf39f1fdb71bcb5c2f6fb6a81da2778fccc0 | [
"Apache-2.0"
] | 7 | 2018-04-07T01:43:48.000Z | 2020-07-23T08:12:37.000Z | from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from builtins import str
from future import standard_library
standard_library.install_aliases()
import query_releases
import unittest
class TestQueryReleases(unittest.... | 27.28125 | 86 | 0.719359 | 111 | 873 | 5.234234 | 0.405405 | 0.086059 | 0.137694 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015827 | 0.203895 | 873 | 31 | 87 | 28.16129 | 0.820144 | 0.076747 | 0 | 0 | 0 | 0 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 1 | 0.047619 | false | 0 | 0.380952 | 0 | 0.47619 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
255e4c40128d8dd3b9bb2375467740bbfa0ffbee | 6,896 | py | Python | scripts/example_tvm_tune.py | AndrewZhaoLuo/CenterFaceTVMDemo | 4c9d63d502b33b7b13666258a7da97e909de4b36 | [
"MIT"
] | 5 | 2021-12-25T10:18:07.000Z | 2022-02-20T00:24:41.000Z | scripts/example_tvm_tune.py | AndrewZhaoLuo/CenterFaceTVMDemo | 4c9d63d502b33b7b13666258a7da97e909de4b36 | [
"MIT"
] | 2 | 2022-01-16T10:12:07.000Z | 2022-03-22T00:34:26.000Z | scripts/example_tvm_tune.py | AndrewZhaoLuo/CenterFaceTVMDemo | 4c9d63d502b33b7b13666258a7da97e909de4b36 | [
"MIT"
] | null | null | null | from os import path
from shutil import copyfile
import tvm
from tvm import relay
from tvm.driver import tvmc
from tvm.driver.tvmc.model import TVMCModel
from tvm.relay.transform import InferType, ToMixedPrecision
"""Copy pasted mostly from:
https://github.com/AndrewZhaoLuo/TVM-Sandbox/blob/bb209e8845440ed9f40af1b258... | 32.074419 | 121 | 0.664588 | 868 | 6,896 | 5.026498 | 0.251152 | 0.051341 | 0.044694 | 0.055008 | 0.551685 | 0.526473 | 0.498739 | 0.462297 | 0.462297 | 0.460005 | 0 | 0.043618 | 0.232019 | 6,896 | 214 | 122 | 32.224299 | 0.780211 | 0.025957 | 0 | 0.490566 | 0 | 0 | 0.141817 | 0.074203 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031447 | false | 0.106918 | 0.044025 | 0.006289 | 0.09434 | 0.056604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
255ead5625498b81a0e784e802611ba152b63d6e | 1,547 | py | Python | mod_flan_doodle.py | AndrewWayne/bot-flandre | 6c14c96e55c99ec7961216c8cafbc46f62700bbe | [
"Apache-2.0"
] | null | null | null | mod_flan_doodle.py | AndrewWayne/bot-flandre | 6c14c96e55c99ec7961216c8cafbc46f62700bbe | [
"Apache-2.0"
] | null | null | null | mod_flan_doodle.py | AndrewWayne/bot-flandre | 6c14c96e55c99ec7961216c8cafbc46f62700bbe | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
XJB Generate Images Module (/doodle)
Created on Sun Sep 1 16:03:16 2019
@author: user
"""
import os
import asyncio
import uuid
import tg_connection
gen_path = "D:/AndroidProjects/ScarletKindom/flandre-generator/wgan/sample.png"
inp_base = "D:/AndroidProjects/ScarletKindom/flandre-genera... | 27.625 | 85 | 0.659341 | 228 | 1,547 | 4.289474 | 0.407895 | 0.067485 | 0.079755 | 0.064417 | 0.231084 | 0.231084 | 0.130879 | 0.075665 | 0 | 0 | 0 | 0.016515 | 0.217195 | 1,547 | 55 | 86 | 28.127273 | 0.791082 | 0.071105 | 0 | 0.054054 | 1 | 0 | 0.135059 | 0.085374 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.108108 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
255f08813afc83e4a9438097dc0b9eb5bb612867 | 408 | py | Python | 2020/network/network/models.py | 133794m3r/cs50-web | 1f695cd7fb4ec368ec45e0d3154dd7eebc2c81e2 | [
"MIT"
] | null | null | null | 2020/network/network/models.py | 133794m3r/cs50-web | 1f695cd7fb4ec368ec45e0d3154dd7eebc2c81e2 | [
"MIT"
] | null | null | null | 2020/network/network/models.py | 133794m3r/cs50-web | 1f695cd7fb4ec368ec45e0d3154dd7eebc2c81e2 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import AbstractUser
from django.db import models
class User(AbstractUser):
followers = models.ManyToManyField('self',symmetrical=False,related_name='following')
class Post(models.Model):
username = models.ForeignKey(User,on_delete=models.CASCADE,related_name='posts')
content = mode... | 31.384615 | 86 | 0.801471 | 49 | 408 | 6.612245 | 0.632653 | 0.061728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085784 | 408 | 12 | 87 | 34 | 0.868633 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
25630ec4579c4b69b7aa7ebcd6033338a4cfed43 | 269 | py | Python | pandas/pandasReading02.py | slowy07/pythonApps | 22f9766291dbccd8185035745950c5ee4ebd6a3e | [
"MIT"
] | 10 | 2020-10-09T11:05:18.000Z | 2022-02-13T03:22:10.000Z | pandas/pandasReading02.py | khairanabila/pythonApps | f90b8823f939b98f7bf1dea7ed35fe6e22e2f730 | [
"MIT"
] | null | null | null | pandas/pandasReading02.py | khairanabila/pythonApps | f90b8823f939b98f7bf1dea7ed35fe6e22e2f730 | [
"MIT"
] | 6 | 2020-11-26T12:49:43.000Z | 2022-03-06T06:46:43.000Z | import pandas as pd
countryInformation = pd.read_csv('resource/countryInformation.csv')
#looping row
#for index,row in countryInformation.iterrows():
#print(index, row['country_name'])
print(countryInformation.loc[countryInformation['country_name'] == 'india']) | 26.9 | 76 | 0.773234 | 31 | 269 | 6.612903 | 0.612903 | 0.078049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092937 | 269 | 10 | 76 | 26.9 | 0.840164 | 0.33829 | 0 | 0 | 0 | 0 | 0.272727 | 0.176136 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2568aee40cfce9e5a8b21215e284c31ef6b2bd2a | 17,464 | py | Python | pySPACE/missions/nodes/data_selection/instance_selection.py | pyspace/pyspace | 763e62c0e7fa7cfcb19ccee1a0333c4f7e68ae62 | [
"BSD-3-Clause"
] | 32 | 2015-02-20T09:03:09.000Z | 2022-02-25T22:32:52.000Z | pySPACE/missions/nodes/data_selection/instance_selection.py | pyspace/pyspace | 763e62c0e7fa7cfcb19ccee1a0333c4f7e68ae62 | [
"BSD-3-Clause"
] | 5 | 2015-05-18T15:08:40.000Z | 2020-03-05T19:18:01.000Z | pySPACE/missions/nodes/data_selection/instance_selection.py | pyspace/pyspace | 763e62c0e7fa7cfcb19ccee1a0333c4f7e68ae62 | [
"BSD-3-Clause"
] | 18 | 2015-09-28T07:16:38.000Z | 2021-01-20T13:52:19.000Z | """ Select only a part of the instances
.. todo: group instance selectors
"""
import random
import logging
from collections import defaultdict
from pySPACE.missions.nodes.base_node import BaseNode
from pySPACE.tools.memoize_generator import MemoizeGenerator
class InstanceSelectionNode(BaseNode):
"""Retain only... | 43.334988 | 88 | 0.584918 | 1,888 | 17,464 | 5.223517 | 0.15625 | 0.031941 | 0.032651 | 0.02464 | 0.669438 | 0.627358 | 0.564084 | 0.514906 | 0.496857 | 0.492801 | 0 | 0.007434 | 0.353012 | 17,464 | 402 | 89 | 43.442786 | 0.865386 | 0.323351 | 0 | 0.661376 | 0 | 0 | 0.050822 | 0.004531 | 0 | 0 | 0 | 0.014925 | 0.031746 | 1 | 0.05291 | false | 0 | 0.026455 | 0.010582 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c253281fece2f931537ba0aac860be0c88c05f35 | 481 | py | Python | grocers_panel/migrations/0005_alter_shop_food.py | delitamakanda/GroceryApp | 8b0eeb40197b480598928dd7e95e63ca180c9bf1 | [
"MIT"
] | 1 | 2021-05-25T02:46:42.000Z | 2021-05-25T02:46:42.000Z | grocers_panel/migrations/0005_alter_shop_food.py | delitamakanda/GroceryApp | 8b0eeb40197b480598928dd7e95e63ca180c9bf1 | [
"MIT"
] | null | null | null | grocers_panel/migrations/0005_alter_shop_food.py | delitamakanda/GroceryApp | 8b0eeb40197b480598928dd7e95e63ca180c9bf1 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-12-19 17:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('grocers_panel', '0004_shop_grocer'),
]
operations = [
migrations.AlterField(
model_name='shop',... | 24.05 | 117 | 0.640333 | 57 | 481 | 5.298246 | 0.649123 | 0.07947 | 0.092715 | 0.145695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051913 | 0.239085 | 481 | 19 | 118 | 25.315789 | 0.773224 | 0.093555 | 0 | 0 | 1 | 0 | 0.126728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c254aa30204c44e620331c5c8033c1497466fa14 | 6,339 | py | Python | tests/logic/order_history_test.py | rirwin/stock-analysis | d13b9be86265ad87c10847422a04f93409b0bf51 | [
"Apache-2.0"
] | null | null | null | tests/logic/order_history_test.py | rirwin/stock-analysis | d13b9be86265ad87c10847422a04f93409b0bf51 | [
"Apache-2.0"
] | 1 | 2020-06-24T04:41:59.000Z | 2020-06-24T04:41:59.000Z | tests/logic/order_history_test.py | rirwin/stock_analysis | d13b9be86265ad87c10847422a04f93409b0bf51 | [
"Apache-2.0"
] | null | null | null | import datetime
from sqlalchemy.orm import sessionmaker
from database import db
from database.order_history import OrderHistory
from stock_analysis.logic import order_history
from stock_analysis.logic.order_history import Order
from stock_analysis.logic.order_history import OrderHistoryLogic
from stock_analysis.logic.... | 31.073529 | 102 | 0.56602 | 755 | 6,339 | 4.476821 | 0.119205 | 0.079882 | 0.048817 | 0.093195 | 0.728107 | 0.705621 | 0.61568 | 0.535799 | 0.535799 | 0.528402 | 0 | 0.063405 | 0.3357 | 6,339 | 203 | 103 | 31.226601 | 0.739254 | 0 | 0 | 0.632432 | 0 | 0 | 0.013882 | 0 | 0 | 0 | 0 | 0 | 0.07027 | 1 | 0.032432 | false | 0 | 0.043243 | 0 | 0.081081 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c25812708f73bfd533c1e0436f576998dc88a5d4 | 1,075 | py | Python | indian_name/india_name.py | NeelShah18/api | 602dcd7bce5b3a54873a004e7847565c17ce9fc9 | [
"MIT"
] | null | null | null | indian_name/india_name.py | NeelShah18/api | 602dcd7bce5b3a54873a004e7847565c17ce9fc9 | [
"MIT"
] | null | null | null | indian_name/india_name.py | NeelShah18/api | 602dcd7bce5b3a54873a004e7847565c17ce9fc9 | [
"MIT"
] | null | null | null | import sqlite3
import sys
import os
import io
def cleanName(m_name):
lis = []
lis = m_name
result_lis = {}
for data in lis:
text = str(data)
text = (((((text[2:len(text)-3].rstrip()).replace("@","")).replace("smt.","")).strip()).replace(".","")).replace("smt","")
temp_lis = text... | 25.595238 | 130 | 0.580465 | 151 | 1,075 | 3.927152 | 0.417219 | 0.042159 | 0.040472 | 0.037099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01233 | 0.245581 | 1,075 | 41 | 131 | 26.219512 | 0.718866 | 0.016744 | 0 | 0 | 0 | 0 | 0.120265 | 0.072917 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c25ccf7947b661f681ea864f696118baa98103e2 | 1,389 | py | Python | Lib/defcon/objects/lib.py | typemytype/defcon | 18dc8c22a1cf84c95f4f4e4f7bb6f033a062021c | [
"MIT"
] | null | null | null | Lib/defcon/objects/lib.py | typemytype/defcon | 18dc8c22a1cf84c95f4f4e4f7bb6f033a062021c | [
"MIT"
] | null | null | null | Lib/defcon/objects/lib.py | typemytype/defcon | 18dc8c22a1cf84c95f4f4e4f7bb6f033a062021c | [
"MIT"
] | null | null | null | from defcon.objects.base import BaseDictObject
class Lib(BaseDictObject):
"""
This object contains arbitrary data.
**This object posts the following notifications:**
=========== ====
Name Note
=========== ====
Lib.Changed Posted when the *dirty* attribute is set.
========... | 29.553191 | 79 | 0.673866 | 167 | 1,389 | 5.550898 | 0.634731 | 0.032362 | 0.03452 | 0.066882 | 0.075512 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004634 | 0.223182 | 1,389 | 47 | 80 | 29.553191 | 0.854495 | 0.660907 | 0 | 0 | 0 | 0 | 0.176316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c2683140e8ef3e0e1fef1af02d286989992c9f33 | 6,870 | py | Python | python/paddle/fluid/tests/custom_op/extension_utils.py | dingsiyu/Paddle | 2c974cc316bce4054bdf28d1f6b4c3bb8bd99d75 | [
"Apache-2.0"
] | 1 | 2021-03-16T13:40:07.000Z | 2021-03-16T13:40:07.000Z | python/paddle/fluid/tests/custom_op/extension_utils.py | dingsiyu/Paddle | 2c974cc316bce4054bdf28d1f6b4c3bb8bd99d75 | [
"Apache-2.0"
] | null | null | null | python/paddle/fluid/tests/custom_op/extension_utils.py | dingsiyu/Paddle | 2c974cc316bce4054bdf28d1f6b4c3bb8bd99d75 | [
"Apache-2.0"
] | 1 | 2021-03-16T13:40:08.000Z | 2021-03-16T13:40:08.000Z | # Copyright (c) 2021 PaddlePaddle Authors. 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 required by appli... | 31.658986 | 88 | 0.673071 | 923 | 6,870 | 4.774648 | 0.273023 | 0.03086 | 0.047198 | 0.013615 | 0.179487 | 0.136374 | 0.050828 | 0.050828 | 0.050828 | 0.028591 | 0 | 0.008836 | 0.225764 | 6,870 | 216 | 89 | 31.805556 | 0.819703 | 0.261281 | 0 | 0.087719 | 0 | 0 | 0.140874 | 0.009187 | 0 | 0 | 0 | 0.013889 | 0.017544 | 1 | 0.105263 | false | 0 | 0.070175 | 0 | 0.254386 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c268fccca788ac0d257bd73459ca8edc55f80559 | 2,189 | py | Python | SNPdata/ExcludeDuplicates.py | ejh243/BrainFANS | 903b30516ec395e0543d217c492eeac541515197 | [
"Artistic-2.0"
] | null | null | null | SNPdata/ExcludeDuplicates.py | ejh243/BrainFANS | 903b30516ec395e0543d217c492eeac541515197 | [
"Artistic-2.0"
] | 2 | 2022-02-16T09:35:08.000Z | 2022-03-29T08:06:32.000Z | SNPdata/ExcludeDuplicates.py | ejh243/BrainFANS | 903b30516ec395e0543d217c492eeac541515197 | [
"Artistic-2.0"
] | null | null | null | ## using output of king and plink --miss identify worse performing duplicate for exclusion
## this script is run as follows
## python ExcludeDuplicates.py <king output> <plink --miss output> <output file>
import sys
print "Reading in sample missingness from", sys.argv[2]
sampleMissing = file(sys.argv[2], "r")
sam... | 25.752941 | 91 | 0.692097 | 287 | 2,189 | 5.25784 | 0.348432 | 0.027833 | 0.021869 | 0.023857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016093 | 0.176793 | 2,189 | 84 | 92 | 26.059524 | 0.82131 | 0.15989 | 0 | 0.090909 | 0 | 0 | 0.107945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018182 | null | null | 0.127273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c26c957464e23a15c778de134041cfb40b9fa636 | 1,415 | py | Python | norns/gear/migrations/0006_auto_20180522_2102.py | the-norns/norns | 8856626fb6937452c123e4629a5888a49a82c349 | [
"MIT"
] | null | null | null | norns/gear/migrations/0006_auto_20180522_2102.py | the-norns/norns | 8856626fb6937452c123e4629a5888a49a82c349 | [
"MIT"
] | 62 | 2018-05-19T22:18:01.000Z | 2018-05-26T00:13:21.000Z | norns/gear/migrations/0006_auto_20180522_2102.py | the-norns/norns | 8856626fb6937452c123e4629a5888a49a82c349 | [
"MIT"
] | 3 | 2018-05-19T18:54:28.000Z | 2018-05-21T02:14:47.000Z | # Generated by Django 2.0.5 on 2018-05-22 21:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('status', '0003_auto_20180522_1745'),
('gear', '0005_weapon_reach'),
]
operations = [
migrations.Cre... | 32.906977 | 125 | 0.582332 | 141 | 1,415 | 5.723404 | 0.475177 | 0.039653 | 0.052045 | 0.081784 | 0.314746 | 0.314746 | 0.314746 | 0.213135 | 0.213135 | 0.213135 | 0 | 0.037512 | 0.284099 | 1,415 | 42 | 126 | 33.690476 | 0.759131 | 0.031802 | 0 | 0.305556 | 1 | 0 | 0.144006 | 0.016813 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.138889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2702f279730a02fd61505d6c6e1275ba009f9db | 873 | py | Python | setup.py | mortenlj/earthlyw | 7aa1762c84d680abed1192f88a42d4d4b227432c | [
"MIT"
] | null | null | null | setup.py | mortenlj/earthlyw | 7aa1762c84d680abed1192f88a42d4d4b227432c | [
"MIT"
] | 16 | 2021-08-21T20:11:04.000Z | 2022-03-12T19:55:53.000Z | setup.py | mortenlj/earthlyw | 7aa1762c84d680abed1192f88a42d4d4b227432c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
setup(
name="earthlyw",
version="0.1",
packages=[
"ibidem",
"ibidem.earthlyw",
],
install_requires=[
"setuptools",
"colorlog<6",
"appdirs<2",
"requests<3",
],
extras_require={
"dev": ... | 19.4 | 51 | 0.5063 | 79 | 873 | 5.506329 | 0.759494 | 0.064368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008696 | 0.341352 | 873 | 44 | 52 | 19.840909 | 0.747826 | 0.04811 | 0 | 0.081081 | 0 | 0 | 0.335749 | 0.030193 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.027027 | 0 | 0.027027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c27a447ad8dc36c385389a565e4ed170305a8f4a | 1,293 | py | Python | parser_tool.py | kmwenja/marker | f9d9634eb1ddce3dc0ebbe6164bb87a27dc95dd9 | [
"MIT"
] | null | null | null | parser_tool.py | kmwenja/marker | f9d9634eb1ddce3dc0ebbe6164bb87a27dc95dd9 | [
"MIT"
] | null | null | null | parser_tool.py | kmwenja/marker | f9d9634eb1ddce3dc0ebbe6164bb87a27dc95dd9 | [
"MIT"
] | null | null | null | # parser.py - parses a given sentence using a given grammar definition
import sys, os
import argparse
from utils import load_grammar
def get_parser(grammar_file, *args, **kwargs):
""" loads a parser from the given grammar """
return load_grammar(grammar_file, *args, **kwargs)
def tokenize(sentence):
"""... | 26.387755 | 73 | 0.661253 | 168 | 1,293 | 4.964286 | 0.440476 | 0.043165 | 0.081535 | 0.05036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000987 | 0.216551 | 1,293 | 48 | 74 | 26.9375 | 0.82231 | 0.052591 | 0 | 0 | 0 | 0 | 0.15907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c27e0e6f346371d620980e3342a6a2e97c9b22a6 | 18,487 | py | Python | radiation_dose_estimator_keras.py | vsuomi/radiation-dose | 6a97e282b7b8a06cde7973ceeebb14ea3ef60f70 | [
"MIT"
] | 12 | 2019-02-27T17:07:58.000Z | 2021-12-17T20:31:31.000Z | radiation_dose_estimator_keras.py | liuhd073/radiation-dose | 6a97e282b7b8a06cde7973ceeebb14ea3ef60f70 | [
"MIT"
] | 2 | 2020-04-02T08:57:19.000Z | 2021-06-10T05:06:26.000Z | radiation_dose_estimator_keras.py | vsuomi/radiation-dose | 6a97e282b7b8a06cde7973ceeebb14ea3ef60f70 | [
"MIT"
] | 2 | 2019-09-21T12:19:08.000Z | 2020-04-28T04:30:41.000Z | # -*- coding: utf-8 -*-
'''
Created on Fri Nov 16 09:36:50 2018
@author:
Visa Suomi
Turku University Hospital
November 2018
@description:
This model is used to predict radiation dose from pre-treatment patient
parameters
'''
#%% clear variables
%reset -f
%clear
#%% import ne... | 37.960986 | 131 | 0.638611 | 2,308 | 18,487 | 4.782062 | 0.170711 | 0.064782 | 0.008245 | 0.014497 | 0.250159 | 0.218538 | 0.17387 | 0.144605 | 0.144605 | 0.105463 | 0 | 0.029227 | 0.231947 | 18,487 | 486 | 132 | 38.039095 | 0.748081 | 0.153297 | 0 | 0.077193 | 0 | 0.003509 | 0.164581 | 0.011863 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.007018 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c28326651456ece0ed2b23f9a58a7727eada65f9 | 191 | py | Python | run.py | elchingon/flask-temperature-relay-app | ef2fcdf039eb2be5ef28a53ca1727d73c0732d0f | [
"MIT"
] | null | null | null | run.py | elchingon/flask-temperature-relay-app | ef2fcdf039eb2be5ef28a53ca1727d73c0732d0f | [
"MIT"
] | null | null | null | run.py | elchingon/flask-temperature-relay-app | ef2fcdf039eb2be5ef28a53ca1727d73c0732d0f | [
"MIT"
] | null | null | null | #!/bin/env python
from app import create_app, socketio
from app.db_setup import init_db
app = create_app(debug=False)
init_db()
if __name__ == '__main__':
socketio.run(app, port=5001)
| 17.363636 | 36 | 0.73822 | 31 | 191 | 4.129032 | 0.612903 | 0.109375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02454 | 0.146597 | 191 | 10 | 37 | 19.1 | 0.760736 | 0.08377 | 0 | 0 | 0 | 0 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c2873e4c6778750f7796b281ee5e6991fa174ee7 | 3,707 | py | Python | StreamPy/TestExamplesListToStreams/test_example_element_single_in_single_out_stateful.py | AnomalyInc/StreamPy | 94abca276b2857de48259f4f42ef95efbdf5f6d1 | [
"Apache-2.0"
] | 2 | 2017-04-27T11:04:27.000Z | 2019-02-07T21:03:32.000Z | StreamPy/TestExamplesListToStreams/test_example_element_single_in_single_out_stateful.py | StreamPy/StreamPy | 94abca276b2857de48259f4f42ef95efbdf5f6d1 | [
"Apache-2.0"
] | null | null | null | StreamPy/TestExamplesListToStreams/test_example_element_single_in_single_out_stateful.py | StreamPy/StreamPy | 94abca276b2857de48259f4f42ef95efbdf5f6d1 | [
"Apache-2.0"
] | null | null | null | """This module contains examples of stream_func where f_type
is 'element' and stream_func has a single input stream, and
a single output stream, and the operation is stateful.
The state captures information in the past input streams;
this information is required to append values to the tails
of the output streams.
Th... | 29.656 | 77 | 0.669005 | 595 | 3,707 | 4.084034 | 0.223529 | 0.058848 | 0.069136 | 0.046091 | 0.418519 | 0.38642 | 0.356379 | 0.301235 | 0.278189 | 0.252675 | 0 | 0.021529 | 0.248179 | 3,707 | 124 | 78 | 29.895161 | 0.850377 | 0.161586 | 0 | 0.2 | 0 | 0 | 0.131018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12 | null | null | 0.24 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c289ff863c8d7033135d9b33b4209cc7939b98dc | 1,283 | py | Python | dev/Gems/CloudGemInGameSurvey/AWS/lambda-code/ServiceLambda/api/active_surveys_player_submissions.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 1,738 | 2017-09-21T10:59:12.000Z | 2022-03-31T21:05:46.000Z | dev/Gems/CloudGemInGameSurvey/AWS/lambda-code/ServiceLambda/api/active_surveys_player_submissions.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 427 | 2017-09-29T22:54:36.000Z | 2022-02-15T19:26:50.000Z | dev/Gems/CloudGemInGameSurvey/AWS/lambda-code/ServiceLambda/api/active_surveys_player_submissions.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 671 | 2017-09-21T08:04:01.000Z | 2022-03-29T14:30:07.000Z | #
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the "License"). All use of this software is governed by the License,
# or, if provided, by the license below or th... | 33.763158 | 110 | 0.749805 | 173 | 1,283 | 5.421965 | 0.520231 | 0.053305 | 0.025586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000932 | 0.163679 | 1,283 | 37 | 111 | 34.675676 | 0.873253 | 0.39205 | 0 | 0 | 0 | 0 | 0.193758 | 0.028609 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.333333 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c28c89d7b55ba84be47ce0c0270354c71ec824ef | 402 | py | Python | exercicio57.py | juniooor/Exercicios-python | aed87da4f93d0e6083b1a8c3af4081a028f145de | [
"MIT"
] | null | null | null | exercicio57.py | juniooor/Exercicios-python | aed87da4f93d0e6083b1a8c3af4081a028f145de | [
"MIT"
] | null | null | null | exercicio57.py | juniooor/Exercicios-python | aed87da4f93d0e6083b1a8c3af4081a028f145de | [
"MIT"
] | null | null | null | #Crie um programa que tenha uma tupla com várias palavras (não usar acentos). Depois disso, você deve mostrar, para cada palavra, quais são as suas vogais.
palavras=('SOPA','BATATAS','CACAU','CASTANHA','LASANHA','GOSTOSURAS','TRAVESSURAS','PARMEGIANA')
for p in palavras:
print(f'\n As Vogais de {p} são: ',end='')
... | 57.428571 | 156 | 0.666667 | 59 | 402 | 4.542373 | 0.762712 | 0.052239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191542 | 402 | 7 | 157 | 57.428571 | 0.824615 | 0.383085 | 0 | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c28f5399f5765ea45b857d48fc29ac34ed27c2a1 | 842 | py | Python | causalpy/utils/utils.py | maichmueller/CausalPy | d2dcd2c557e1ccdfa1fb77f3adbf78b0ea63c735 | [
"MIT"
] | null | null | null | causalpy/utils/utils.py | maichmueller/CausalPy | d2dcd2c557e1ccdfa1fb77f3adbf78b0ea63c735 | [
"MIT"
] | null | null | null | causalpy/utils/utils.py | maichmueller/CausalPy | d2dcd2c557e1ccdfa1fb77f3adbf78b0ea63c735 | [
"MIT"
] | null | null | null | import os
import shutil
class TempFolder:
def __init__(self, folder: str, **kwargs):
self.folder = folder
self.lock = kwargs.pop("LOCK", None)
def lockit(self):
if self.lock is not None:
self.lock.acquire()
def unlockit(self):
if self.lock is not None:
... | 24.057143 | 55 | 0.549881 | 104 | 842 | 4.298077 | 0.394231 | 0.223714 | 0.09396 | 0.06264 | 0.138702 | 0.138702 | 0.138702 | 0.138702 | 0.138702 | 0 | 0 | 0.006969 | 0.31829 | 842 | 34 | 56 | 24.764706 | 0.771777 | 0 | 0 | 0.296296 | 0 | 0 | 0.016627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.074074 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2902a4704b44239ff0cf04b847569517aff459d | 483 | py | Python | api_server/apps/speech_api/models.py | take2make/sra_api | 923193789fdbfdd1022782f92bf2f041ddc4da29 | [
"MIT"
] | null | null | null | api_server/apps/speech_api/models.py | take2make/sra_api | 923193789fdbfdd1022782f92bf2f041ddc4da29 | [
"MIT"
] | null | null | null | api_server/apps/speech_api/models.py | take2make/sra_api | 923193789fdbfdd1022782f92bf2f041ddc4da29 | [
"MIT"
] | null | null | null | """
Описывается база данных для хранения, промежуточных результатов
"""
from django.db import models
class SpeechApiModel(models.Model):
encoded_data = models.TextField()
ext = models.CharField(max_length=300)
# blank=True означает, что поле может быть пустым при заполнении бд
model = models.CharFiel... | 26.833333 | 71 | 0.728778 | 61 | 483 | 5.655738 | 0.655738 | 0.104348 | 0.104348 | 0.13913 | 0.208696 | 0.208696 | 0.208696 | 0 | 0 | 0 | 0 | 0.015113 | 0.178054 | 483 | 17 | 72 | 28.411765 | 0.853904 | 0.269151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 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 | 0 | 0 | 0 | 1 |
c29a504870955a0bf9ae588161b47325a0b2d50b | 3,508 | py | Python | src/Speech_process/speech_to_text.py | pranayjoshi/Medico | 2508a39d58eec50f5e94f3c878c00f599fff6629 | [
"MIT"
] | 13 | 2020-09-04T09:16:15.000Z | 2021-01-27T07:03:12.000Z | src/Speech_process/speech_to_text.py | bhargavaganti/Medico | 9059c59f49211f48a27805a00807121ac6f27b27 | [
"MIT"
] | 1 | 2020-10-04T03:23:45.000Z | 2020-10-04T03:23:45.000Z | src/Speech_process/speech_to_text.py | bhargavaganti/Medico | 9059c59f49211f48a27805a00807121ac6f27b27 | [
"MIT"
] | 2 | 2020-11-27T12:25:10.000Z | 2022-01-11T06:25:33.000Z | import speech_recognition as sr #Recognition Module
import pyttsx3 #Speaking package
import json
import series_counter as s_c
engine = pyttsx3.init() #initialising pyttsx value
def speak(text):
engine.say(text)
engine.runAndWait()
speak('hi user')
def Voice_recognize(wait... | 29.982906 | 127 | 0.646522 | 463 | 3,508 | 4.678186 | 0.326134 | 0.055402 | 0.036934 | 0.036934 | 0.022161 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005441 | 0.266534 | 3,508 | 117 | 128 | 29.982906 | 0.836378 | 0.178449 | 0 | 0.049383 | 0 | 0 | 0.052356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209877 | false | 0 | 0.049383 | 0.024691 | 0.358025 | 0.148148 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c29af6b719187be274751f6a43356244d63bdafc | 2,432 | py | Python | scripts/feature-processing/average_pool_features.py | visionjo/pykinship | 1a73490ffd6ebc6dafc6e18c558ccc7e4ce9acec | [
"MIT"
] | 12 | 2020-02-19T02:50:49.000Z | 2022-03-31T19:39:35.000Z | scripts/feature-processing/average_pool_features.py | visionjo/pykinship | 1a73490ffd6ebc6dafc6e18c558ccc7e4ce9acec | [
"MIT"
] | 68 | 2020-03-23T00:07:28.000Z | 2022-03-28T10:02:16.000Z | scripts/feature-processing/average_pool_features.py | visionjo/pykinship | 1a73490ffd6ebc6dafc6e18c558ccc7e4ce9acec | [
"MIT"
] | 3 | 2020-02-11T19:07:08.000Z | 2020-11-04T18:48:00.000Z | #
# Script to fuse features per member per family (i.e., for each FID.MID, average all encodings across feature dim).
# Any features can be fused. Here is link to ArcFace features,
# https://www.dropbox.com/s/5rbj68dqud2folu/FIDs-features.tar.gz?dl=0
#
import pickle
from pathlib import Path
import numpy as np
from tqd... | 36.848485 | 115 | 0.580181 | 318 | 2,432 | 4.361635 | 0.440252 | 0.025234 | 0.023792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014908 | 0.310444 | 2,432 | 66 | 116 | 36.848485 | 0.812165 | 0.254523 | 0 | 0.043478 | 0 | 0 | 0.146748 | 0.02557 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0 | false | 0 | 0.108696 | 0 | 0.108696 | 0.108696 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2a178c1d8a1946506d66653d718f66410977163 | 2,960 | py | Python | fit_data.py | enricomeloni/covid-tools | 6920b8cfa0eb89bdb7e0ba96ecc74831185c44a7 | [
"MIT"
] | 1 | 2020-10-06T16:03:01.000Z | 2020-10-06T16:03:01.000Z | fit_data.py | enricomeloni/covid-tools | 6920b8cfa0eb89bdb7e0ba96ecc74831185c44a7 | [
"MIT"
] | 3 | 2022-02-13T20:21:56.000Z | 2022-02-27T10:19:23.000Z | fit_data.py | sailab-code/learning-sidarthe | 6920b8cfa0eb89bdb7e0ba96ecc74831185c44a7 | [
"MIT"
] | null | null | null | import os
from torch.optim import Adam, SGD
import skopt
import torch
from utils.data_utils import select_data
from utils.visualization_utils import plot_data_and_fit
from learning_models.logistic import Logistic
# df_file = os.path.join(os.getcwd(), "dati-regioni", "dpc-covid19-ita-regioni.csv")
df_file = os.path.j... | 33.636364 | 128 | 0.70473 | 489 | 2,960 | 4.03681 | 0.298569 | 0.022796 | 0.042553 | 0.053191 | 0.253799 | 0.193009 | 0.110436 | 0.062817 | 0.033435 | 0 | 0 | 0.022736 | 0.123311 | 2,960 | 87 | 129 | 34.022989 | 0.737958 | 0.141892 | 0 | 0 | 0 | 0 | 0.124604 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.033333 | false | 0 | 0.116667 | 0.016667 | 0.183333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2b24d9435ba2ee5e8600b5092a512734c93405a | 12,969 | py | Python | bkt/library/comrelease.py | pyro-team/bkt-toolbox | bbccba142a81ca0a46056f2bcda75899979158a5 | [
"MIT"
] | 12 | 2019-05-31T02:57:26.000Z | 2022-03-26T09:40:50.000Z | bkt/library/comrelease.py | mrflory/bkt-toolbox | bbccba142a81ca0a46056f2bcda75899979158a5 | [
"MIT"
] | 27 | 2021-11-27T16:33:19.000Z | 2022-03-27T17:47:26.000Z | bkt/library/comrelease.py | pyro-team/bkt-toolbox | bbccba142a81ca0a46056f2bcda75899979158a5 | [
"MIT"
] | 3 | 2019-06-12T10:59:20.000Z | 2020-04-21T15:13:50.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import logging
from contextlib import contextmanager
from System.Runtime.InteropServices import Marshal
@contextmanager
def autorelease(comobj):
"""COM auto release contextmanager"""
try:
yield comobj
finally:
Marshal.ReleaseComObject(c... | 36.532394 | 166 | 0.63806 | 1,459 | 12,969 | 5.442769 | 0.202193 | 0.036519 | 0.019393 | 0.018512 | 0.245939 | 0.212568 | 0.205012 | 0.182471 | 0.172145 | 0.145322 | 0 | 0.001932 | 0.281595 | 12,969 | 354 | 167 | 36.635593 | 0.850381 | 0.409592 | 0 | 0.26087 | 0 | 0 | 0.073591 | 0.006599 | 0 | 0 | 0 | 0.014124 | 0 | 1 | 0.181159 | false | 0 | 0.028986 | 0.014493 | 0.398551 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2b55d621ee927360546ea50eef9438d938401b2 | 2,845 | py | Python | wmcore_base/ContainerScripts/AggregatePylint.py | ddaina/Docker | 29e330fcbe774cdd0c05b597792c7c5f0e430e67 | [
"Apache-2.0"
] | null | null | null | wmcore_base/ContainerScripts/AggregatePylint.py | ddaina/Docker | 29e330fcbe774cdd0c05b597792c7c5f0e430e67 | [
"Apache-2.0"
] | 18 | 2016-12-02T19:56:53.000Z | 2022-02-04T13:21:24.000Z | wmcore_base/ContainerScripts/AggregatePylint.py | ddaina/Docker | 29e330fcbe774cdd0c05b597792c7c5f0e430e67 | [
"Apache-2.0"
] | 7 | 2016-06-03T18:32:26.000Z | 2021-11-05T21:04:19.000Z | #! /usr/bin/env python
import json
from optparse import OptionParser
usage = "usage: %prog [options] message"
parser = OptionParser(usage)
(options, args) = parser.parse_args()
if len(args) != 1:
parser.error("You must supply a label")
label = args[0]
try:
with open('pylintReport.json', 'r') as reportFile:... | 29.635417 | 103 | 0.53638 | 293 | 2,845 | 5.204778 | 0.348123 | 0.128525 | 0.12459 | 0.031475 | 0.136393 | 0.136393 | 0.107541 | 0.107541 | 0.107541 | 0.107541 | 0 | 0.012379 | 0.346924 | 2,845 | 95 | 104 | 29.947368 | 0.808396 | 0.022847 | 0 | 0.189189 | 0 | 0 | 0.091631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027027 | null | null | 0.013514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2b9340069bcb7200131d508a532aae97e280c02 | 1,389 | py | Python | drf_orjson_renderer/parsers.py | cblakkan/drf_orjson_renderer | 15fcfb65918d16cca087095216847594929f61c4 | [
"MIT"
] | 28 | 2020-01-22T05:57:49.000Z | 2022-03-17T09:07:44.000Z | drf_orjson_renderer/parsers.py | cblakkan/drf_orjson_renderer | 15fcfb65918d16cca087095216847594929f61c4 | [
"MIT"
] | 14 | 2020-02-18T16:17:34.000Z | 2022-03-23T01:07:35.000Z | drf_orjson_renderer/parsers.py | cblakkan/drf_orjson_renderer | 15fcfb65918d16cca087095216847594929f61c4 | [
"MIT"
] | 17 | 2020-02-17T22:31:28.000Z | 2022-03-10T04:48:10.000Z | from django.conf import settings
from rest_framework.exceptions import ParseError
from rest_framework.parsers import BaseParser
import orjson
__all__ = ["ORJSONParser"]
class ORJSONParser(BaseParser):
"""
Parses JSON-serialized data by orjson parser.
"""
media_type = "application/json"
def pa... | 33.878049 | 81 | 0.662347 | 165 | 1,389 | 5.484848 | 0.557576 | 0.071823 | 0.037569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270698 | 1,389 | 40 | 82 | 34.725 | 0.893386 | 0.449964 | 0 | 0 | 0 | 0 | 0.091884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.266667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c2b97e17283bf6ef0af93d080c8e954cf0f1c1c7 | 1,942 | py | Python | testproject/test/test_templatetag.py | tdivis/django-sane-testing | 99dc7200593a7a59ffa33edb906d52acc7d8f577 | [
"BSD-3-Clause"
] | 4 | 2015-11-08T11:33:19.000Z | 2018-01-29T22:34:24.000Z | testproject/test/test_templatetag.py | tdivis/django-sane-testing | 99dc7200593a7a59ffa33edb906d52acc7d8f577 | [
"BSD-3-Clause"
] | 1 | 2021-03-19T11:04:29.000Z | 2021-03-19T11:38:52.000Z | testproject/test/test_templatetag.py | Almad/django-sane-testing | 99dc7200593a7a59ffa33edb906d52acc7d8f577 | [
"BSD-3-Clause"
] | null | null | null | from djangosanetesting.cases import TemplateTagTestCase
class TestTagLib(TemplateTagTestCase):
preload = ('dsttesttags',)
def test_tag_error(self):
self.assert_raises(self.TemplateSyntaxError, self.render_template,
'{% table %}')
def test_tag_output(self):
self.... | 36.641509 | 81 | 0.634398 | 221 | 1,942 | 5.321267 | 0.244344 | 0.085034 | 0.107143 | 0.085034 | 0.430272 | 0.430272 | 0.405612 | 0.339286 | 0.169218 | 0.120748 | 0 | 0.003995 | 0.226571 | 1,942 | 52 | 82 | 37.346154 | 0.778961 | 0 | 0 | 0.128205 | 0 | 0.025641 | 0.157055 | 0.045829 | 0 | 0 | 0 | 0 | 0.25641 | 1 | 0.25641 | false | 0 | 0.025641 | 0.025641 | 0.487179 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2baf8408ea1139bafc4f15533339ffc776824ab | 680 | wsgi | Python | DistFiles/mercurial/Contrib/hgweb.wsgi | bobeaton/OneStoryEditor | dcb644c79a4d69b9558df72892636bb1cba97796 | [
"MIT"
] | 1 | 2021-06-08T11:53:32.000Z | 2021-06-08T11:53:32.000Z | DistFiles/mercurial/Contrib/hgweb.wsgi | bobeaton/OneStoryEditor | dcb644c79a4d69b9558df72892636bb1cba97796 | [
"MIT"
] | 4 | 2021-06-12T16:50:59.000Z | 2021-11-19T23:52:24.000Z | ChorusDeps/mercurial/Contrib/hgweb.wsgi | bobeaton/OneStoryEditor | dcb644c79a4d69b9558df72892636bb1cba97796 | [
"MIT"
] | 2 | 2020-05-03T07:23:12.000Z | 2021-07-14T15:58:17.000Z | # An example WSGI for use with mod_wsgi, edit as necessary
# See http://mercurial.selenic.com/wiki/modwsgi for more information
# Path to repo or hgweb config to serve (see 'hg help hgweb')
config = "/path/to/repo/or/config"
# Uncomment and adjust if Mercurial is not installed system-wide
# (consult "installed module... | 35.789474 | 72 | 0.769118 | 102 | 680 | 5.117647 | 0.598039 | 0.034483 | 0.038314 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001709 | 0.139706 | 680 | 18 | 73 | 37.777778 | 0.890598 | 0.736765 | 0 | 0 | 0 | 0 | 0.136095 | 0.136095 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c2c2f2be9b86caf1ba37fe85783e830ab1aa9049 | 1,303 | py | Python | trecrts-clients/python/dumb-retweet-client/retweet_service.py | rosequ/RTS18 | 9a9b63c5d454e03dc996d56cb9e4b3e35e413f4d | [
"Apache-2.0"
] | 7 | 2016-03-02T15:39:09.000Z | 2016-04-04T10:31:40.000Z | trecrts-clients/python/dumb-retweet-client/retweet_service.py | rosequ/RTS18 | 9a9b63c5d454e03dc996d56cb9e4b3e35e413f4d | [
"Apache-2.0"
] | 14 | 2015-10-22T18:51:17.000Z | 2015-11-15T06:36:33.000Z | trecrts-clients/python/dumb-retweet-client/retweet_service.py | aroegies/trecrts-tools | 1afe7a4226e59ad963419d5f96401a191bbc0112 | [
"Apache-2.0"
] | null | null | null | ##########################
####
# WARNING: THIS FILE IS DEPRECATED AND IS ONLY RETAINED FOR INFORMATIONAL PURPOSES
# ../dumb_topic_client is the up-to-date sample program
###
#########################
from tweepy.streaming import StreamListener
from tweepy import OAuthHandler
from tweepy import Stream
import requests
... | 31.780488 | 82 | 0.711435 | 170 | 1,303 | 5.205882 | 0.470588 | 0.063277 | 0.094915 | 0.045198 | 0.048588 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005381 | 0.144282 | 1,303 | 40 | 83 | 32.575 | 0.788341 | 0.18726 | 0 | 0 | 0 | 0 | 0.135542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.16 | null | null | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2c32defe3ff1b1dc5ec25d1e122b83a9bcc81b7 | 485 | py | Python | orchestra/contrib/issues/apps.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | 68 | 2015-02-09T10:28:44.000Z | 2022-03-12T11:08:36.000Z | orchestra/contrib/issues/apps.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | 17 | 2015-05-01T18:10:03.000Z | 2021-03-19T21:52:55.000Z | orchestra/contrib/issues/apps.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | 29 | 2015-03-31T04:51:03.000Z | 2022-02-17T02:58:50.000Z | from django.apps import AppConfig
from orchestra.core import accounts, administration
from orchestra.core.translations import ModelTranslation
class IssuesConfig(AppConfig):
name = 'orchestra.contrib.issues'
verbose_name = "Issues"
def ready(self):
from .models import Queue, Ticket
a... | 30.3125 | 59 | 0.734021 | 52 | 485 | 6.788462 | 0.557692 | 0.073654 | 0.096317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17732 | 485 | 15 | 60 | 32.333333 | 0.884712 | 0 | 0 | 0 | 0 | 0 | 0.117526 | 0.049485 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c2c383eca130058829926eb64535622bb27a0128 | 178 | py | Python | python-data-analysis/matplotlib/ImshowDemo.py | meteor1993/python-learning | 4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40 | [
"MIT"
] | 83 | 2019-10-15T06:54:06.000Z | 2022-03-28T14:08:21.000Z | python-data-analysis/matplotlib/ImshowDemo.py | wenxuefeng3930/python-learning | 4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40 | [
"MIT"
] | 1 | 2020-04-16T08:13:19.000Z | 2020-07-14T01:52:46.000Z | python-data-analysis/matplotlib/ImshowDemo.py | wenxuefeng3930/python-learning | 4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40 | [
"MIT"
] | 74 | 2019-11-02T08:10:36.000Z | 2022-02-19T12:23:36.000Z | import numpy as np
import matplotlib.pyplot as plt
x = np.random.rand(10, 10)
plt.imshow(x, cmap=plt.cm.hot)
# 显示右边颜色条
plt.colorbar()
plt.savefig('imshow_demo.png')
| 16.181818 | 32 | 0.691011 | 30 | 178 | 4.066667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027211 | 0.174157 | 178 | 10 | 33 | 17.8 | 0.802721 | 0.039326 | 0 | 0 | 0 | 0 | 0.09434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c2c712a00d07acb813d9c64e92dbe982f58abfc3 | 942 | py | Python | tests/core/exceptions/test_exceptions_auto.py | ccrvs/attack_surface_pypy | f2bc9998cf42f4764f1c495e6243d970e01bd176 | [
"CC0-1.0"
] | null | null | null | tests/core/exceptions/test_exceptions_auto.py | ccrvs/attack_surface_pypy | f2bc9998cf42f4764f1c495e6243d970e01bd176 | [
"CC0-1.0"
] | null | null | null | tests/core/exceptions/test_exceptions_auto.py | ccrvs/attack_surface_pypy | f2bc9998cf42f4764f1c495e6243d970e01bd176 | [
"CC0-1.0"
] | null | null | null | # This test code was written by the `hypothesis.extra.ghostwriter` module
# and is provided under the Creative Commons Zero public domain dedication.
from pathlib import Path
from hypothesis import given, strategies as st
import attack_surface_pypy.core.exceptions
@given(message=st.text())
def test_fuzz_InvalidFile... | 33.642857 | 87 | 0.814225 | 122 | 942 | 6.122951 | 0.442623 | 0.087015 | 0.113788 | 0.140562 | 0.402945 | 0.203481 | 0 | 0 | 0 | 0 | 0 | 0.00348 | 0.084926 | 942 | 27 | 88 | 34.888889 | 0.863109 | 0.153928 | 0 | 0 | 0 | 0 | 0.016373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.2 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2ccffa0a75618b898fb390841847aab6f871afc | 412 | py | Python | isi_mip/climatemodels/migrations/0044_auto_20170116_1626.py | ISI-MIP/isimip | c2a78c727337e38f3695031e00afd607da7d6dcb | [
"MIT"
] | 4 | 2017-07-05T08:06:18.000Z | 2021-03-01T17:23:18.000Z | isi_mip/climatemodels/migrations/0044_auto_20170116_1626.py | ISI-MIP/isimip | c2a78c727337e38f3695031e00afd607da7d6dcb | [
"MIT"
] | 4 | 2020-01-31T09:02:57.000Z | 2021-04-20T14:04:35.000Z | isi_mip/climatemodels/migrations/0044_auto_20170116_1626.py | ISI-MIP/isimip | c2a78c727337e38f3695031e00afd607da7d6dcb | [
"MIT"
] | 4 | 2017-10-12T01:48:55.000Z | 2020-04-29T13:50:03.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-16 15:26
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('climatemodels', '0043_auto_20170116_1623'),
]
operations = [
migrations.RenameModel... | 20.6 | 53 | 0.631068 | 44 | 412 | 5.681818 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107843 | 0.257282 | 412 | 19 | 54 | 21.684211 | 0.70915 | 0.165049 | 0 | 0 | 1 | 0 | 0.173021 | 0.067449 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2d96673325c088ac08245ec7ce49cbb6c73160f | 405 | py | Python | novice/02-04/lat_DIModule.py | septiannurtrir/praxis-academy | 1ef7f959c372ae991d74ccd373123142c2fbc542 | [
"MIT"
] | 1 | 2019-08-27T17:06:13.000Z | 2019-08-27T17:06:13.000Z | novice/02-04/lat_DIModule.py | septiannurtrir/praxis-academy | 1ef7f959c372ae991d74ccd373123142c2fbc542 | [
"MIT"
] | null | null | null | novice/02-04/lat_DIModule.py | septiannurtrir/praxis-academy | 1ef7f959c372ae991d74ccd373123142c2fbc542 | [
"MIT"
] | null | null | null | #dependency Module
class AppModule:
@singleton
@provider
def provide_business_logic(self, api: Api) -> BusinessLogic:
return BusinessLogic(api=api)
@singleton
@provider
def provide_api(self) -> Api:
configuration
return Api()
if __name__ == '__main__':
injector ... | 18.409091 | 64 | 0.654321 | 41 | 405 | 6.170732 | 0.536585 | 0.134387 | 0.158103 | 0.213439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246914 | 405 | 22 | 65 | 18.409091 | 0.829508 | 0.041975 | 0 | 0.285714 | 0 | 0 | 0.020619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0.071429 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2daf1fd3438e639b7a66547964461828db43284 | 639 | py | Python | qiita_pet/uimodules/base_uimodule.py | JWDebelius/qiita | 3378e0fabe40a846691600e5de4fb72a3db70dd1 | [
"BSD-3-Clause"
] | null | null | null | qiita_pet/uimodules/base_uimodule.py | JWDebelius/qiita | 3378e0fabe40a846691600e5de4fb72a3db70dd1 | [
"BSD-3-Clause"
] | null | null | null | qiita_pet/uimodules/base_uimodule.py | JWDebelius/qiita | 3378e0fabe40a846691600e5de4fb72a3db70dd1 | [
"BSD-3-Clause"
] | null | null | null | # -----------------------------------------------------------------------------
# Copyright (c) 2014--, The Qiita Development Team.
#
# Distributed under the terms of the BSD 3-clause License.
#
# The full license is in the file LICENSE, distributed with this software.
# ------------------------------------------------... | 35.5 | 79 | 0.524257 | 68 | 639 | 4.897059 | 0.720588 | 0.036036 | 0.078078 | 0.12012 | 0.144144 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02037 | 0.15493 | 639 | 17 | 80 | 37.588235 | 0.596296 | 0.624413 | 0 | 0 | 0 | 0 | 0.114035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
c2dfd049645c43b5bbb9f0aae0f7145cf2d53a0b | 6,843 | py | Python | start_gui.py | NIC-VICOROB/sub-cortical_segmentation | 324b8f998a666cee6ef94944acd85e2bcd503701 | [
"BSD-3-Clause"
] | 7 | 2018-06-17T02:48:49.000Z | 2021-02-16T05:38:10.000Z | start_gui.py | NIC-VICOROB/sub-cortical_segmentation | 324b8f998a666cee6ef94944acd85e2bcd503701 | [
"BSD-3-Clause"
] | null | null | null | start_gui.py | NIC-VICOROB/sub-cortical_segmentation | 324b8f998a666cee6ef94944acd85e2bcd503701 | [
"BSD-3-Clause"
] | 4 | 2017-09-22T08:52:36.000Z | 2019-07-15T14:44:51.000Z | # ------------------------------------------------------------
# Training script example for Keras implementation
#
# Kaisar Kushibar (2019)
# kaisar.kushibar@udg.edu
# ------------------------------------------------------------
import os
import sys
import numpy as np
from functools import partial
from tkinter import... | 37.80663 | 136 | 0.650592 | 853 | 6,843 | 5.12075 | 0.280188 | 0.020147 | 0.032738 | 0.035027 | 0.283654 | 0.245192 | 0.173535 | 0.157967 | 0.11859 | 0.100733 | 0 | 0.015729 | 0.210288 | 6,843 | 180 | 137 | 38.016667 | 0.792561 | 0.059769 | 0 | 0.147541 | 0 | 0 | 0.084788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.122951 | null | null | 0.016393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2e28399830065a80ecde0af2720320c90368d6c | 776 | py | Python | units/prefix/metactl/bin/bin.py | hoefkensj/BTRWin | 1432868ad60155f5ae26f33903a890497e089480 | [
"MIT"
] | null | null | null | units/prefix/metactl/bin/bin.py | hoefkensj/BTRWin | 1432868ad60155f5ae26f33903a890497e089480 | [
"MIT"
] | null | null | null | units/prefix/metactl/bin/bin.py | hoefkensj/BTRWin | 1432868ad60155f5ae26f33903a890497e089480 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import betterwin
G=betterwin.confcfg.load_global_config()
def read_skell(skel):
with open(skel) as template:
tpl= template.readlines()
def head(tpl):
for idx,line in enumerate(tpl):
if 'cfg_start' in line:
header=tpl[0:idx]
return header
def bottom(tpl):
for idx,line in ... | 19.897436 | 123 | 0.666237 | 110 | 776 | 4.572727 | 0.527273 | 0.053678 | 0.035785 | 0.05169 | 0.127237 | 0.127237 | 0.127237 | 0.127237 | 0.127237 | 0 | 0 | 0.007728 | 0.166237 | 776 | 38 | 124 | 20.421053 | 0.769706 | 0 | 0 | 0.137931 | 0 | 0 | 0.143046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.034483 | 0.034483 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2ec07613b902faccf5658ff9af13a51b5b0ec16 | 6,065 | py | Python | __main__.py | vEnhance/dragon | ada173a05e986941f20002ca726041a698eb8a1d | [
"MIT"
] | null | null | null | __main__.py | vEnhance/dragon | ada173a05e986941f20002ca726041a698eb8a1d | [
"MIT"
] | null | null | null | __main__.py | vEnhance/dragon | ada173a05e986941f20002ca726041a698eb8a1d | [
"MIT"
] | null | null | null | #Import some stuff
import os
import zipfile
import ConfigParser
import string
import argparse
from xml.etree.ElementTree import ElementTree
from constants import SHORT_NAME, VERSION_NUMBER, FULL_NAME, GEOGEBRA_XML_LOCATION
from diagram import AsyDiagram, doCompileDiagramObjects, drawDiagram
# Argument parser {{{
pars... | 32.783784 | 232 | 0.697939 | 808 | 6,065 | 5.115099 | 0.310644 | 0.030486 | 0.057585 | 0.033874 | 0.241471 | 0.154609 | 0.124365 | 0.090975 | 0.021776 | 0.021776 | 0 | 0.009069 | 0.163726 | 6,065 | 184 | 233 | 32.961957 | 0.805797 | 0.068096 | 0 | 0.217949 | 0 | 0.019231 | 0.360958 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.00641 | 0.051282 | null | null | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2f46b42f5c6546a78b91fb417eafbf47943fbf3 | 10,125 | py | Python | kitchensink/data/catalog.py | hhuuggoo/kitchensink | 1f81050fec7eace52e0b4e1b47851b649a4e4d33 | [
"BSD-3-Clause"
] | 2 | 2015-03-17T05:02:42.000Z | 2016-04-07T15:02:28.000Z | kitchensink/data/catalog.py | hhuuggoo/kitchensink | 1f81050fec7eace52e0b4e1b47851b649a4e4d33 | [
"BSD-3-Clause"
] | null | null | null | kitchensink/data/catalog.py | hhuuggoo/kitchensink | 1f81050fec7eace52e0b4e1b47851b649a4e4d33 | [
"BSD-3-Clause"
] | 1 | 2015-10-07T21:50:44.000Z | 2015-10-07T21:50:44.000Z | from os.path import join, exists, isdir, relpath, abspath, dirname
import datetime as dt
import posixpath
import logging
import tempfile
from os import stat, makedirs, remove
import random
import uuid
from cStringIO import StringIO
import time
from six import string_types
try:
import gevent
except:
gevent = No... | 35.904255 | 95 | 0.599407 | 1,333 | 10,125 | 4.403601 | 0.2018 | 0.053152 | 0.017888 | 0.020273 | 0.310562 | 0.251789 | 0.211755 | 0.179387 | 0.169506 | 0.143101 | 0 | 0.001296 | 0.314074 | 10,125 | 281 | 96 | 36.032028 | 0.843916 | 0.002963 | 0 | 0.341837 | 0 | 0 | 0.039054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.091837 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2f4c885d5dce7315988e496badae91eba3b1efc | 982 | py | Python | nadine/migrations/0034_stripebillingprofile.py | alvienzo720/Dep_Nadine | b23688aa87ba3cfe138f9b243eed3f50a74e1486 | [
"Apache-2.0"
] | null | null | null | nadine/migrations/0034_stripebillingprofile.py | alvienzo720/Dep_Nadine | b23688aa87ba3cfe138f9b243eed3f50a74e1486 | [
"Apache-2.0"
] | null | null | null | nadine/migrations/0034_stripebillingprofile.py | alvienzo720/Dep_Nadine | b23688aa87ba3cfe138f9b243eed3f50a74e1486 | [
"Apache-2.0"
] | 1 | 2020-02-24T08:23:45.000Z | 2020-02-24T08:23:45.000Z | # Generated by Django 2.0.3 on 2018-04-06 18:37
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('nadine', '0033_payment_m... | 37.769231 | 139 | 0.665988 | 113 | 982 | 5.637168 | 0.610619 | 0.037677 | 0.043956 | 0.069074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032723 | 0.221996 | 982 | 25 | 140 | 39.28 | 0.801047 | 0.045825 | 0 | 0 | 1 | 0 | 0.191444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2f563aefb1bf16c5c0e403fa207c966d043272b | 5,212 | py | Python | compete.py | ChristopherKlix/sorting_algorithms | 5586393fb8e66d41c29c3a1a1a100fe323b6e1b6 | [
"MIT"
] | null | null | null | compete.py | ChristopherKlix/sorting_algorithms | 5586393fb8e66d41c29c3a1a1a100fe323b6e1b6 | [
"MIT"
] | null | null | null | compete.py | ChristopherKlix/sorting_algorithms | 5586393fb8e66d41c29c3a1a1a100fe323b6e1b6 | [
"MIT"
] | null | null | null | from generate import generate
from datetime import datetime
from time import sleep
# sorting algorithms
def linear_sort(unsorted_list):
list_len = len(unsorted_list)
smallest_int = 0
sorted_list = list()
for index in range(list_len):
smallest_int = 1000000
for element in unsorted_li... | 25.54902 | 95 | 0.585955 | 650 | 5,212 | 4.493846 | 0.164615 | 0.057515 | 0.021568 | 0.018829 | 0.354331 | 0.310168 | 0.229716 | 0.198904 | 0.160561 | 0.149264 | 0 | 0.014242 | 0.312932 | 5,212 | 203 | 96 | 25.674877 | 0.801452 | 0.096508 | 0 | 0.308333 | 1 | 0 | 0.07856 | 0.028308 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058333 | false | 0 | 0.025 | 0 | 0.133333 | 0.141667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2f6e7fc941847d3304a0d5ca32647ac0c95ed2a | 251 | py | Python | controller/index.py | YunYinORG/social | 5020e980cacd8eca39fccc36faabc584f3c3e15f | [
"Apache-2.0"
] | 4 | 2015-12-20T14:57:57.000Z | 2021-01-23T12:54:20.000Z | controller/index.py | YunYinORG/social | 5020e980cacd8eca39fccc36faabc584f3c3e15f | [
"Apache-2.0"
] | 1 | 2016-03-13T15:19:02.000Z | 2016-03-18T03:11:18.000Z | controller/index.py | YunYinORG/social | 5020e980cacd8eca39fccc36faabc584f3c3e15f | [
"Apache-2.0"
] | 4 | 2015-12-21T02:26:29.000Z | 2016-09-03T02:57:07.000Z | #!/usr/bin/env python
# coding=utf-8
import web
import lib.user as user
"""首页[done]"""
class index:
"""首页"""
def GET(self):
html = web.template.frender('templates/index.html')
name = user.getName()
return html(name)
| 16.733333 | 59 | 0.59761 | 35 | 251 | 4.285714 | 0.742857 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005208 | 0.23506 | 251 | 14 | 60 | 17.928571 | 0.776042 | 0.143426 | 0 | 0 | 0 | 0 | 0.103093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6c079626dca82782593d5d2bd1f2fb59f4206ddc | 1,022 | py | Python | apps/goods/migrations/0063_auto_20200108_1555.py | lianxiaopang/camel-store-api | b8021250bf3d8cf7adc566deebdba55225148316 | [
"Apache-2.0"
] | 12 | 2020-02-01T01:52:01.000Z | 2021-04-28T15:06:43.000Z | apps/goods/migrations/0063_auto_20200108_1555.py | lianxiaopang/camel-store-api | b8021250bf3d8cf7adc566deebdba55225148316 | [
"Apache-2.0"
] | 5 | 2020-02-06T08:07:58.000Z | 2020-06-02T13:03:45.000Z | apps/goods/migrations/0063_auto_20200108_1555.py | lianxiaopang/camel-store-api | b8021250bf3d8cf7adc566deebdba55225148316 | [
"Apache-2.0"
] | 11 | 2020-02-03T13:07:46.000Z | 2020-11-29T01:44:06.000Z | # Generated by Django 2.1.8 on 2020-01-08 07:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('goods', '0062_auto_20191205_1656'),
]
operations = [
migrations.RenameField(
model_name='replgoodstype',
old_name='p... | 29.2 | 103 | 0.589041 | 101 | 1,022 | 5.782178 | 0.524752 | 0.061644 | 0.150685 | 0.133562 | 0.39726 | 0.39726 | 0.246575 | 0.246575 | 0.246575 | 0.246575 | 0 | 0.055556 | 0.295499 | 1,022 | 34 | 104 | 30.058824 | 0.755556 | 0.044031 | 0 | 0.357143 | 1 | 0 | 0.125128 | 0.02359 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c0ebaf57bf48ef4c5911547b83ac2a6a45fa5e9 | 905 | py | Python | craft_ai/__init__.py | craft-ai/craft-ai-client-python | 3d8b3d9a49c0c70964deaeb9645130dd54f9a0b3 | [
"BSD-3-Clause"
] | 14 | 2016-08-26T07:06:57.000Z | 2020-09-22T07:41:21.000Z | craft_ai/__init__.py | craft-ai/craft-ai-client-python | 3d8b3d9a49c0c70964deaeb9645130dd54f9a0b3 | [
"BSD-3-Clause"
] | 94 | 2016-08-02T14:07:59.000Z | 2021-10-06T11:50:52.000Z | craft_ai/__init__.py | craft-ai/craft-ai-client-python | 3d8b3d9a49c0c70964deaeb9645130dd54f9a0b3 | [
"BSD-3-Clause"
] | 8 | 2017-02-07T12:05:57.000Z | 2021-10-14T09:45:30.000Z | __version__ = "2.4.3"
from . import errors
from .client import Client
from .interpreter import Interpreter
from .time import Time
from .formatters import format_property, format_decision_rules
from .reducer import reduce_decision_rules
from .tree_utils import (
extract_decision_paths_from_tree,
extract_decisio... | 25.857143 | 75 | 0.764641 | 119 | 905 | 5.478992 | 0.470588 | 0.079755 | 0.087423 | 0.08589 | 0.273006 | 0.171779 | 0.171779 | 0.171779 | 0.171779 | 0 | 0 | 0.003984 | 0.167956 | 905 | 34 | 76 | 26.617647 | 0.861886 | 0.250829 | 0 | 0 | 0 | 0 | 0.254086 | 0.156018 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6c1838a55b525f71872539fcbbf11141e0709474 | 5,682 | py | Python | model_converter/test_freeze_pb.py | zhangmifigo/MobileDeepPill | 270538494488767a7fb36e237b72212be5cf4f45 | [
"MIT"
] | 4 | 2020-03-23T20:27:24.000Z | 2021-08-12T20:23:53.000Z | model_converter/test_freeze_pb.py | zhangmifigo/MobileDeepPill | 270538494488767a7fb36e237b72212be5cf4f45 | [
"MIT"
] | null | null | null | model_converter/test_freeze_pb.py | zhangmifigo/MobileDeepPill | 270538494488767a7fb36e237b72212be5cf4f45 | [
"MIT"
] | 3 | 2019-10-14T07:56:05.000Z | 2020-03-23T20:27:27.000Z | import tensorflow as tf
from tensorflow.python.framework import graph_util
from tensorflow.contrib.slim.python.slim.nets import alexnet
from tensorflow.python.ops import random_ops
from tensorflow.python.tools import optimize_for_inference_lib
from tensorflow.python.framework import dtypes
from tensorflow.core.framewor... | 36.896104 | 129 | 0.707673 | 798 | 5,682 | 4.749373 | 0.194236 | 0.040106 | 0.029551 | 0.021108 | 0.515567 | 0.440106 | 0.399472 | 0.376253 | 0.355673 | 0.323219 | 0 | 0.006535 | 0.19201 | 5,682 | 154 | 130 | 36.896104 | 0.818994 | 0.178634 | 0 | 0.315217 | 0 | 0 | 0.072982 | 0.022174 | 0.021739 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.119565 | null | null | 0.054348 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c1b6ee9b212e08f8648b06179fcaaa04a11d3e2 | 545 | py | Python | photos/migrations/0008_image_post.py | adriankiprono/imstragram_project | c4935ad745987fb53b62d116c3bc2faff20927ce | [
"MIT"
] | null | null | null | photos/migrations/0008_image_post.py | adriankiprono/imstragram_project | c4935ad745987fb53b62d116c3bc2faff20927ce | [
"MIT"
] | 4 | 2020-06-06T00:31:39.000Z | 2022-03-12T00:10:52.000Z | photos/migrations/0008_image_post.py | adriankiprono/instragram_project | c4935ad745987fb53b62d116c3bc2faff20927ce | [
"MIT"
] | null | null | null | # Generated by Django 3.0 on 2020-01-07 07:56
import datetime
from django.db import migrations
from django.utils.timezone import utc
import tinymce.models
class Migration(migrations.Migration):
dependencies = [
('photos', '0007_auto_20200107_1022'),
]
operations = [
migrations.AddField(... | 23.695652 | 113 | 0.638532 | 64 | 545 | 5.359375 | 0.6875 | 0.058309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115479 | 0.253211 | 545 | 22 | 114 | 24.772727 | 0.727273 | 0.078899 | 0 | 0 | 1 | 0 | 0.076 | 0.046 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c1c01b8e3b61397e1a5842a61751e502b73a43e | 487 | py | Python | final.py | Georgejj123/Final | a5beeb873321446e53a1c0859c0b10bf240a0dcd | [
"MIT"
] | null | null | null | final.py | Georgejj123/Final | a5beeb873321446e53a1c0859c0b10bf240a0dcd | [
"MIT"
] | null | null | null | final.py | Georgejj123/Final | a5beeb873321446e53a1c0859c0b10bf240a0dcd | [
"MIT"
] | null | null | null | # This program rolls two dices and prints what you got
# We set two variables (min and max) , lowest and highest number of the dice.
import random
min = 1
max = 6
roll_again = "yes"
# We then use a while loop, so that the user can roll the dice again.
while roll_again == "yes" or roll_again == "y":
print "Roll... | 27.055556 | 78 | 0.689938 | 82 | 487 | 4.036585 | 0.560976 | 0.108761 | 0.072508 | 0.126888 | 0.145015 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005277 | 0.221766 | 487 | 17 | 79 | 28.647059 | 0.868074 | 0.404517 | 0 | 0.2 | 0 | 0 | 0.214035 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c2088e0cf4acb484abbd57109fedff77aded588 | 569 | py | Python | lie2me/fields/password.py | hugollm/lie2me | c3b47e88264a32c10c893368987c4d8a3df054d9 | [
"MIT"
] | null | null | null | lie2me/fields/password.py | hugollm/lie2me | c3b47e88264a32c10c893368987c4d8a3df054d9 | [
"MIT"
] | null | null | null | lie2me/fields/password.py | hugollm/lie2me | c3b47e88264a32c10c893368987c4d8a3df054d9 | [
"MIT"
] | null | null | null | from ..field import Field
class Password(Field):
min = None
max = None
messages = {
'min': 'Must be at least {min} characters long.',
'max': 'Must have no more than {max} characters.',
}
def is_empty(self, value):
return value is None or value is ''
def validate(sel... | 23.708333 | 58 | 0.567663 | 79 | 569 | 4.075949 | 0.43038 | 0.055901 | 0.055901 | 0.074534 | 0.149068 | 0.149068 | 0.149068 | 0 | 0 | 0 | 0 | 0 | 0.321617 | 569 | 23 | 59 | 24.73913 | 0.834197 | 0 | 0 | 0 | 0 | 0 | 0.15993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.058824 | 0.058824 | 0.058824 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6c221044ede7be29a963c10b013a344a5da5c962 | 2,221 | py | Python | menu.py | RandelSouza/Space_Invaders | d266662a84b2324fd398fbb31b3f0a2004b40c99 | [
"MIT"
] | null | null | null | menu.py | RandelSouza/Space_Invaders | d266662a84b2324fd398fbb31b3f0a2004b40c99 | [
"MIT"
] | null | null | null | menu.py | RandelSouza/Space_Invaders | d266662a84b2324fd398fbb31b3f0a2004b40c99 | [
"MIT"
] | null | null | null | from setup import *
import pygame, sys, os
from pygame.locals import *
class Menu( object ):
def __init__( self ):
self.init = pygame.init()
self.font = pygame.font.Font(None, 80)
self.screen = pygame.display.set_mode( [ LARGURA, ALTURA ] )
self.background = pygame.image.load( "im... | 34.169231 | 112 | 0.547951 | 239 | 2,221 | 5.07113 | 0.338912 | 0.090759 | 0.079208 | 0.049505 | 0.141914 | 0.141914 | 0.141914 | 0.141914 | 0.080858 | 0 | 0 | 0.025457 | 0.310221 | 2,221 | 64 | 113 | 34.703125 | 0.765666 | 0.009905 | 0 | 0.039216 | 0 | 0 | 0.071916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.019608 | 0.058824 | null | null | 0.039216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c22c119dc085d095980f04411cdc49210dadf86 | 459 | py | Python | investing_algorithm_framework/app/stateless/action_handlers/check_online_handler.py | investing-algorithms/investing-algorithm-framework | d579e142a3857e2e2dfb59b7d6e54202f7df5466 | [
"Apache-2.0"
] | 1 | 2019-12-23T21:23:45.000Z | 2019-12-23T21:23:45.000Z | investing_algorithm_framework/app/stateless/action_handlers/check_online_handler.py | investing-algorithms/investing-algorithm-framework | d579e142a3857e2e2dfb59b7d6e54202f7df5466 | [
"Apache-2.0"
] | null | null | null | investing_algorithm_framework/app/stateless/action_handlers/check_online_handler.py | investing-algorithms/investing-algorithm-framework | d579e142a3857e2e2dfb59b7d6e54202f7df5466 | [
"Apache-2.0"
] | 1 | 2019-12-23T21:23:50.000Z | 2019-12-23T21:23:50.000Z | import json
from investing_algorithm_framework.app.stateless.action_handlers \
.action_handler_strategy import ActionHandlerStrategy
class CheckOnlineHandler(ActionHandlerStrategy):
MESSAGE = {"message": "online"}
def handle_event(self, payload, algorithm_context):
return {
"statusCod... | 30.6 | 66 | 0.690632 | 41 | 459 | 7.560976 | 0.780488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008242 | 0.206972 | 459 | 14 | 67 | 32.785714 | 0.843407 | 0 | 0 | 0 | 0 | 0 | 0.135076 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6c313c1861eaf709490f1bb0d7760b28295d8922 | 2,885 | py | Python | src/PostProcessing.py | PedroCardouzo/XML_Analyzer | aa4d9069f65aed927d7ecdc59ad36f823abc4c0c | [
"MIT"
] | null | null | null | src/PostProcessing.py | PedroCardouzo/XML_Analyzer | aa4d9069f65aed927d7ecdc59ad36f823abc4c0c | [
"MIT"
] | null | null | null | src/PostProcessing.py | PedroCardouzo/XML_Analyzer | aa4d9069f65aed927d7ecdc59ad36f823abc4c0c | [
"MIT"
] | null | null | null | from src import XMLAnalyzerException
import lxml.etree as ET
from src.Structures import *
from src import XMLFilter
from src import XMLUtil
import constants
import re
from src.xml_decoder import html_entitize
def apply_all(xml, post_processes):
for post_process in post_processes:
xml = apply(xml, post_proc... | 32.784091 | 121 | 0.609359 | 359 | 2,885 | 4.732591 | 0.303621 | 0.071218 | 0.061212 | 0.022366 | 0.02472 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010597 | 0.280416 | 2,885 | 87 | 122 | 33.16092 | 0.807803 | 0.12409 | 0 | 0.202899 | 0 | 0 | 0.031759 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.057971 | false | 0 | 0.115942 | 0 | 0.275362 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c31d41587961f18210049838ec530657f3a5618 | 821 | py | Python | lint.py | fmacpro/apache-virtualhost-configuration-examples | 4c341ccb96c2e17cb9063bf1cae342ad4ee72e26 | [
"MIT"
] | null | null | null | lint.py | fmacpro/apache-virtualhost-configuration-examples | 4c341ccb96c2e17cb9063bf1cae342ad4ee72e26 | [
"MIT"
] | null | null | null | lint.py | fmacpro/apache-virtualhost-configuration-examples | 4c341ccb96c2e17cb9063bf1cae342ad4ee72e26 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# apachelint - simple tool to cleanup apache conf files
# USAGE: apachelint [conffile]
# -*-Python-*-
import sys
import re
filename = sys.argv[1]
indentlevel = 0
indentstep = 4
prevlineblank = False
with open(filename) as f:
for line in f:
# strip leading & trailing space / line en... | 22.805556 | 55 | 0.528624 | 87 | 821 | 4.988506 | 0.574713 | 0.082949 | 0.041475 | 0.046083 | 0.184332 | 0.119816 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 0.348356 | 821 | 36 | 56 | 22.805556 | 0.801869 | 0.221681 | 0 | 0.173913 | 0 | 0 | 0.026814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c3476c6da1a1f1dd98c6128ba3f0c07c7db39ea | 931 | py | Python | spefit/common/basic.py | watsonjj/spefit | 7a3931c5a59e43a73e2e48fe3cd352e20a706460 | [
"BSD-3-Clause"
] | null | null | null | spefit/common/basic.py | watsonjj/spefit | 7a3931c5a59e43a73e2e48fe3cd352e20a706460 | [
"BSD-3-Clause"
] | null | null | null | spefit/common/basic.py | watsonjj/spefit | 7a3931c5a59e43a73e2e48fe3cd352e20a706460 | [
"BSD-3-Clause"
] | null | null | null | """Vectorized math formulae"""
from numba import vectorize, int64, float64
from math import lgamma, exp, isnan, log
__all__ = ["binom", "xlogy"]
@vectorize([float64(int64, int64)], fastmath=True)
def binom(n, k):
"""Obtain the binomial coefficient, using a definition that is mathematically
equivalent but num... | 29.09375 | 81 | 0.657358 | 138 | 931 | 4.398551 | 0.528986 | 0.052718 | 0.016474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031593 | 0.218045 | 931 | 31 | 82 | 30.032258 | 0.802198 | 0.510204 | 0 | 0 | 0 | 0 | 0.024631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6c37074352737689850fbeed83a2fff6562b2609 | 1,610 | py | Python | core/views.py | Hassan-gholipoor/Todo_App_API | 19f9c141868fa0b01a11ed2a20f665d97b877340 | [
"MIT"
] | null | null | null | core/views.py | Hassan-gholipoor/Todo_App_API | 19f9c141868fa0b01a11ed2a20f665d97b877340 | [
"MIT"
] | null | null | null | core/views.py | Hassan-gholipoor/Todo_App_API | 19f9c141868fa0b01a11ed2a20f665d97b877340 | [
"MIT"
] | null | null | null | from rest_framework import viewsets, permissions
from rest_framework_simplejwt.authentication import JWTAuthentication
from rest_framework.response import Response
from rest_framework import status
from core.serializers import TodoSerializer, TodoDetailSerializer
from core.models import Todo
class TodoApiViewSet(view... | 36.590909 | 81 | 0.709317 | 183 | 1,610 | 6.054645 | 0.36612 | 0.049639 | 0.061372 | 0.054152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004669 | 0.201863 | 1,610 | 43 | 82 | 37.44186 | 0.857588 | 0 | 0 | 0 | 0 | 0 | 0.019876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0 | 0.176471 | 0.029412 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6c3c2ae1bdf2d29f699c3d8948c8a02e1af7dcc8 | 788 | py | Python | users/forms.py | yeezy-na-izi/YlDjango | 6fd0763183d76e4f7ca4a9686170d0665d7c04e9 | [
"MIT"
] | 6 | 2022-03-06T10:43:06.000Z | 2022-03-24T13:00:12.000Z | users/forms.py | yeezy-na-izi/YlDjango | 6fd0763183d76e4f7ca4a9686170d0665d7c04e9 | [
"MIT"
] | 6 | 2022-03-09T13:22:41.000Z | 2022-03-25T09:21:37.000Z | users/forms.py | yeezy-na-izi/YlDjango | 6fd0763183d76e4f7ca4a9686170d0665d7c04e9 | [
"MIT"
] | null | null | null | from django.contrib.auth.forms import UserCreationForm
from users.models import User, Profile
from django import forms
class RegistrationForm(UserCreationForm):
class Meta:
model = User
fields = ('first_name', 'last_name', 'email')
def clean_password2(self):
cd = self.cleaned_data
... | 24.625 | 63 | 0.623096 | 83 | 788 | 5.843373 | 0.53012 | 0.05567 | 0.086598 | 0.074227 | 0.276289 | 0.189691 | 0.189691 | 0.189691 | 0.189691 | 0.189691 | 0 | 0.006861 | 0.260152 | 788 | 31 | 64 | 25.419355 | 0.825043 | 0 | 0 | 0.304348 | 0 | 0 | 0.149746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.130435 | 0.130435 | 0 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6c3c5ab25d2cf06474ae606ac7def120213405ed | 2,513 | py | Python | kbqa/create_question_data.py | terrifyzhao/neo4j_graph | 71f8ad1530805d0cca7ae2131f81a96a6b519d02 | [
"Apache-2.0"
] | 3 | 2020-06-01T01:45:44.000Z | 2021-05-10T06:05:18.000Z | kbqa/create_question_data.py | terrifyzhao/neo4j_graph | 71f8ad1530805d0cca7ae2131f81a96a6b519d02 | [
"Apache-2.0"
] | null | null | null | kbqa/create_question_data.py | terrifyzhao/neo4j_graph | 71f8ad1530805d0cca7ae2131f81a96a6b519d02 | [
"Apache-2.0"
] | 2 | 2021-04-05T03:09:09.000Z | 2021-09-19T11:29:38.000Z | from py2neo import Graph
import numpy as np
import pandas as pd
graph = Graph("http://192.168.50.179:7474", auth=("neo4j", "qwer"))
def create_attribute_question():
company = graph.run('MATCH (n:company) RETURN n.name as name').to_ndarray()
person = graph.run('MATCH (n:person) RETURN n.name as name'... | 29.22093 | 96 | 0.54994 | 327 | 2,513 | 4.16208 | 0.296636 | 0.085966 | 0.219691 | 0.113887 | 0.517267 | 0.424688 | 0.376194 | 0.214548 | 0.214548 | 0.214548 | 0 | 0.050482 | 0.298448 | 2,513 | 85 | 97 | 29.564706 | 0.721497 | 0 | 0 | 0.421875 | 0 | 0.015625 | 0.163921 | 0.01112 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046875 | false | 0 | 0.046875 | 0 | 0.140625 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c441485e7e7ad06c0126fe73345924ccb66fe07 | 390 | py | Python | courses/urls.py | office-for-students/wagtail-CMS | 98789c279edf48f2bbedb5415437da3317f0e12b | [
"MIT"
] | 4 | 2019-06-04T07:18:44.000Z | 2020-06-15T22:27:36.000Z | courses/urls.py | office-for-students/wagtail-CMS | 98789c279edf48f2bbedb5415437da3317f0e12b | [
"MIT"
] | 38 | 2019-05-09T13:14:56.000Z | 2022-03-12T00:54:57.000Z | courses/urls.py | office-for-students/wagtail-CMS | 98789c279edf48f2bbedb5415437da3317f0e12b | [
"MIT"
] | 3 | 2019-09-26T14:32:36.000Z | 2021-05-06T15:48:01.000Z | from django.conf.urls import url
from django.urls import path
from courses.views import courses_detail
from courses.views.translate import get_translations
urlpatterns = [
url(r'(?P<institution_id>[\w\-]+?)/(?P<course_id>[\w\-\~\$()]+?)/(?P<kis_mode>[\w\-]+?)/', courses_detail,
name='courses_detail'),
... | 32.5 | 110 | 0.697436 | 51 | 390 | 5.156863 | 0.470588 | 0.148289 | 0.121673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112821 | 390 | 11 | 111 | 35.454545 | 0.760116 | 0 | 0 | 0 | 0 | 0 | 0.325641 | 0.210256 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6c46983292689e2b0a8072d0c4aba99c6bfefd5f | 444 | py | Python | TD3/test.py | chenoly/DRL-MindSpore | 7e3434f2ca326a76d150903fd2ed8e8a32de5cea | [
"MIT"
] | null | null | null | TD3/test.py | chenoly/DRL-MindSpore | 7e3434f2ca326a76d150903fd2ed8e8a32de5cea | [
"MIT"
] | null | null | null | TD3/test.py | chenoly/DRL-MindSpore | 7e3434f2ca326a76d150903fd2ed8e8a32de5cea | [
"MIT"
] | null | null | null | from Model import Critic
from mindspore import Tensor
from mindspore import load_param_into_net
import copy
C1 = Critic(state_dim=2, action_dim=1)
C2 = Critic(state_dim=2, action_dim=1)
# C1.load_parameter_slice(C2.parameters_dict())
# load_param_into_net(C1, C2.parameters_dict())
c1_ = C1.parameters_dict()
c2_ = C2.pa... | 29.6 | 47 | 0.747748 | 75 | 444 | 4.12 | 0.386667 | 0.18123 | 0.15534 | 0.10356 | 0.161812 | 0.161812 | 0.161812 | 0 | 0 | 0 | 0 | 0.05641 | 0.121622 | 444 | 14 | 48 | 31.714286 | 0.735897 | 0.204955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6c46b6f196085ed15758fd855c1d14b7c05e52f5 | 351 | py | Python | reflectivipy/wrappers/expr_flatwrapper.py | StevenCostiou/reflectivipy | 750ed93cfb463304958e590d895c76169caa4b98 | [
"MIT"
] | 10 | 2019-01-18T17:45:18.000Z | 2019-10-05T08:58:17.000Z | reflectivipy/wrappers/expr_flatwrapper.py | StevenCostiou/reflectivipy | 750ed93cfb463304958e590d895c76169caa4b98 | [
"MIT"
] | null | null | null | reflectivipy/wrappers/expr_flatwrapper.py | StevenCostiou/reflectivipy | 750ed93cfb463304958e590d895c76169caa4b98 | [
"MIT"
] | null | null | null | from .flatwrapper import FlatWrapper
class ExprFlatWrapper(FlatWrapper):
def flat_wrap(self):
self.reset_wrapping()
if self.should_wrap_children(self.original_node):
self.body.extend(self.original_node.value.wrapper.flat_wrap())
else:
self.body.append(self.original_... | 29.25 | 74 | 0.68661 | 42 | 351 | 5.547619 | 0.547619 | 0.154506 | 0.206009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 351 | 11 | 75 | 31.909091 | 0.85348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c5bb6b2d92f0865bef01adbf1214af8685dd82e | 2,661 | py | Python | source/dashboard.py | R0htg0r/Automatic-comments-for-Instagram- | 0a4e02d45f02be1462fb44fc6ebf5c8eb11fbd04 | [
"Apache-2.0"
] | 3 | 2021-04-03T19:39:03.000Z | 2021-04-06T13:03:43.000Z | source/dashboard.py | R0htg0r/Automatic-comments-for-Instagram- | 0a4e02d45f02be1462fb44fc6ebf5c8eb11fbd04 | [
"Apache-2.0"
] | null | null | null | source/dashboard.py | R0htg0r/Automatic-comments-for-Instagram- | 0a4e02d45f02be1462fb44fc6ebf5c8eb11fbd04 | [
"Apache-2.0"
] | null | null | null | from colorama import Fore, Back, Style, init
import pyautogui
import time
import os
os.system("mode 120, 30")
class Poxtrop():
def __init__(cuspida):
cuspida.settings()
def interface(cuspida):
init()
print(Fore.YELLOW + """
######### ###### ## ##... | 42.238095 | 114 | 0.311161 | 148 | 2,661 | 5.486486 | 0.547297 | 0.044335 | 0.036946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.506576 | 2,661 | 62 | 115 | 42.919355 | 0.60853 | 0 | 0 | 0.148148 | 0 | 0 | 0.533667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.018519 | 0.074074 | 0 | 0.148148 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c62a1650704041514fc09b42720dad2d27e5799 | 753 | py | Python | app1/migrations/0060_auto_20201222_2131.py | vashuteotia123/zbcvit | da29b3281ccc87481a264b63c5b6c3a549945f33 | [
"MIT"
] | 6 | 2021-09-16T16:46:56.000Z | 2022-02-06T13:00:08.000Z | app1/migrations/0060_auto_20201222_2131.py | vashuteotia123/zbcvit | da29b3281ccc87481a264b63c5b6c3a549945f33 | [
"MIT"
] | null | null | null | app1/migrations/0060_auto_20201222_2131.py | vashuteotia123/zbcvit | da29b3281ccc87481a264b63c5b6c3a549945f33 | [
"MIT"
] | 1 | 2021-09-14T09:26:58.000Z | 2021-09-14T09:26:58.000Z | # Generated by Django 2.2.7 on 2020-12-22 16:01
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app1', '0059_auto_20201111_2321'),
]
operations = [
migrations.RemoveField(
model_name='event',
name... | 25.965517 | 100 | 0.589641 | 79 | 753 | 5.481013 | 0.658228 | 0.062356 | 0.090069 | 0.083141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101695 | 0.294821 | 753 | 28 | 101 | 26.892857 | 0.713748 | 0.059761 | 0 | 0.318182 | 1 | 0 | 0.107649 | 0.032578 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c65225c18ab757299cb8993ab36ee8beae952c4 | 239 | py | Python | receiver_udp.py | pabitra0177/ITR-internship | 3d1909b9e4a1b980ad4f6cb4b8c1fb17811c2d75 | [
"MIT"
] | null | null | null | receiver_udp.py | pabitra0177/ITR-internship | 3d1909b9e4a1b980ad4f6cb4b8c1fb17811c2d75 | [
"MIT"
] | null | null | null | receiver_udp.py | pabitra0177/ITR-internship | 3d1909b9e4a1b980ad4f6cb4b8c1fb17811c2d75 | [
"MIT"
] | null | null | null | #
import socket
ip = "127.0.0.1"
port = 5001
s = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
s.bind((ip,port))
i=0
while True:
data, addr = s.recvfrom(1024)
print "Received from ",addr
print "Received ",data
s.close()
| 14.058824 | 51 | 0.656904 | 40 | 239 | 3.875 | 0.625 | 0.154839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07732 | 0.188285 | 239 | 16 | 52 | 14.9375 | 0.721649 | 0 | 0 | 0 | 0 | 0 | 0.138655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c7066dd2f2223bc38f4edca28dbdaad3e0c39bc | 172 | py | Python | ABC103/ABC103a.py | VolgaKurvar/AtCoder | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | [
"Unlicense"
] | null | null | null | ABC103/ABC103a.py | VolgaKurvar/AtCoder | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | [
"Unlicense"
] | null | null | null | ABC103/ABC103a.py | VolgaKurvar/AtCoder | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | [
"Unlicense"
] | null | null | null | # ABC103a
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)
a = list(map(int, input().split()))
a.sort(reverse=True)
print(abs(a[1]-a[0])+abs(a[1]-a[2]))
| 19.111111 | 36 | 0.674419 | 32 | 172 | 3.625 | 0.6875 | 0.068966 | 0.086207 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063694 | 0.087209 | 172 | 8 | 37 | 21.5 | 0.675159 | 0.040698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c7908e8770d3b372e9f758cbbc3bb105b2fcb1e | 8,602 | py | Python | scripts/CMU/preprocess.py | Vidhan/allennlp | 3f360d6da2b06ecb8afe03e7802791b9c5cd74d1 | [
"Apache-2.0"
] | null | null | null | scripts/CMU/preprocess.py | Vidhan/allennlp | 3f360d6da2b06ecb8afe03e7802791b9c5cd74d1 | [
"Apache-2.0"
] | null | null | null | scripts/CMU/preprocess.py | Vidhan/allennlp | 3f360d6da2b06ecb8afe03e7802791b9c5cd74d1 | [
"Apache-2.0"
] | 1 | 2018-04-30T08:46:34.000Z | 2018-04-30T08:46:34.000Z | import json
import os
import re
import uuid
from knowledge_graph_attr import KnowledgeGraph, Dijkstra
total = 0.0
ignored = 0.0
class Preprocessor(object):
def __init__(self):
pass
def _word_cleanup(self, lookups):
result = []
for word in lookups:
try:
a... | 34.546185 | 100 | 0.514299 | 914 | 8,602 | 4.61488 | 0.185996 | 0.083215 | 0.036984 | 0.049312 | 0.233523 | 0.225936 | 0.21835 | 0.197961 | 0.100996 | 0.100996 | 0 | 0.00664 | 0.369681 | 8,602 | 248 | 101 | 34.685484 | 0.771302 | 0 | 0 | 0.21256 | 0 | 0 | 0.090328 | 0.031388 | 0 | 0 | 0 | 0 | 0.009662 | 0 | null | null | 0.004831 | 0.024155 | null | null | 0.048309 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c7b64c2f62afaf0967618c5e7f57887d35fa040 | 3,972 | py | Python | dafny_comparison/print_table.py | gleissen/goolong | 2bc38024204f9747ed9818502c5df3d36b96dd7d | [
"Apache-2.0"
] | 1 | 2019-05-21T18:16:58.000Z | 2019-05-21T18:16:58.000Z | dafny_comparison/print_table.py | gleissen/goolong | 2bc38024204f9747ed9818502c5df3d36b96dd7d | [
"Apache-2.0"
] | 2 | 2020-08-06T15:19:12.000Z | 2020-08-06T15:23:19.000Z | dafny_comparison/print_table.py | gokhankici/goolong | ac5689c374ddaa0156693f234be392059f318b3a | [
"Apache-2.0"
] | 2 | 2020-10-27T09:06:58.000Z | 2021-12-07T16:30:38.000Z | #!/usr/bin/env python
import copy
import os.path as op
NAME_FMT = "%-20s"
class FileStats(object):
ANNOTS = ['code', 'annot', 'inv', 'harness']
def __init__(self, code=0, annot=0, inv=0, harness=0, comment='//'):
self.code = code
self.annot = annot
self.inv = inv
sel... | 30.790698 | 84 | 0.527442 | 486 | 3,972 | 4.049383 | 0.222222 | 0.017785 | 0.035569 | 0.034553 | 0.349594 | 0.300813 | 0.257114 | 0.257114 | 0.196138 | 0.196138 | 0 | 0.017537 | 0.310926 | 3,972 | 128 | 85 | 31.03125 | 0.701498 | 0.005035 | 0 | 0.309278 | 0 | 0 | 0.089091 | 0 | 0 | 0 | 0 | 0 | 0.041237 | 0 | null | null | 0 | 0.020619 | null | null | 0.072165 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c83ee69fde6360b183bb19fa3bcf09e78de7fd6 | 381 | py | Python | setup.py | connormullett/lib_elo_calculator | 1a699f233dd440b4295e8958b02422ce64b27c70 | [
"MIT"
] | null | null | null | setup.py | connormullett/lib_elo_calculator | 1a699f233dd440b4295e8958b02422ce64b27c70 | [
"MIT"
] | null | null | null | setup.py | connormullett/lib_elo_calculator | 1a699f233dd440b4295e8958b02422ce64b27c70 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import find_packages, setup
setup(
name="lib_elo_calculator",
packages=find_packages(include=['lib_elo_calculator']),
version='0.1.0',
description='contains functions and formulas for calculating elo',
author='Connor Mullett',
license='MIT',
setup_requires=['pytest-r... | 23.8125 | 68 | 0.737533 | 49 | 381 | 5.55102 | 0.755102 | 0.088235 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.11811 | 381 | 15 | 69 | 25.4 | 0.800595 | 0.052493 | 0 | 0 | 0 | 0 | 0.370474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6658e5fae0f2feb228f15d275ba5e7cdca6b1e61 | 3,751 | py | Python | controller/Specialty.py | ryltar/GSB-Planning-API | 919ad95e4e7bdcac43028fa4026bb800ec6bdb2a | [
"Apache-2.0"
] | null | null | null | controller/Specialty.py | ryltar/GSB-Planning-API | 919ad95e4e7bdcac43028fa4026bb800ec6bdb2a | [
"Apache-2.0"
] | null | null | null | controller/Specialty.py | ryltar/GSB-Planning-API | 919ad95e4e7bdcac43028fa4026bb800ec6bdb2a | [
"Apache-2.0"
] | null | null | null | from flask import jsonify, g, request
from flask_restful import Resource
from Authentication import *
from Service import *
def get_service():
""" Gets an instance of 'Service' from the 'g' environment. """
if not hasattr(g, 'service'):
g.service = Service()
return g.service
def specialty_quer... | 31.788136 | 89 | 0.640363 | 473 | 3,751 | 4.892178 | 0.205074 | 0.058341 | 0.055315 | 0.032411 | 0.373812 | 0.330596 | 0.207433 | 0.191011 | 0.163354 | 0.057908 | 0 | 0.011653 | 0.245001 | 3,751 | 117 | 90 | 32.059829 | 0.805438 | 0 | 0 | 0.168831 | 0 | 0 | 0.073474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.051948 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
665ca8b455ad5fa005ae44eb4ff2f68155d6d9ba | 9,912 | py | Python | pre-receive.d/net.twistedbytes.gitlab-protector.py | andgeno/GitLab-Protector | b05f39a23213bd832cbbf30bc63731aca1fce18d | [
"MIT"
] | 7 | 2020-12-14T10:05:13.000Z | 2021-11-25T15:14:26.000Z | pre-receive.d/net.twistedbytes.gitlab-protector.py | andgeno/GitLab-Protector | b05f39a23213bd832cbbf30bc63731aca1fce18d | [
"MIT"
] | 1 | 2021-04-19T13:47:12.000Z | 2021-04-24T12:39:47.000Z | pre-receive.d/net.twistedbytes.gitlab-protector.py | andgeno/GitLab-Protector | b05f39a23213bd832cbbf30bc63731aca1fce18d | [
"MIT"
] | 1 | 2021-04-19T14:06:54.000Z | 2021-04-19T14:06:54.000Z | #!/usr/bin/env python
import sys
import os
import re
import subprocess
from enum import Enum
class GitPushAction(Enum):
BRANCH_NEW = 1
BRANCH_UPDATE = 2
BRANCH_REMOVE = 3
class GitLabProtector:
"""GitLab Protector: A git pre-receive hook"""
NULL_HASH = '0000000000000000000000000000000000000000'
... | 38.123077 | 161 | 0.602502 | 1,262 | 9,912 | 4.473851 | 0.177496 | 0.031173 | 0.025505 | 0.012398 | 0.385583 | 0.303046 | 0.268154 | 0.222458 | 0.200496 | 0.151612 | 0 | 0.031263 | 0.293281 | 9,912 | 259 | 162 | 38.27027 | 0.774732 | 0.095944 | 0 | 0.268817 | 0 | 0.026882 | 0.136522 | 0.019809 | 0 | 0 | 0 | 0.003861 | 0 | 0 | null | null | 0 | 0.026882 | null | null | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
665d77836b64427e5626b7f66bfbf1c6d819e02b | 1,167 | py | Python | karas/__init__.py | TuXiaokang/karas | 2549502424b2d4c67047b867b0315f33b2e997c5 | [
"MIT"
] | 3 | 2019-02-28T13:53:48.000Z | 2022-01-18T12:53:37.000Z | karas/__init__.py | TuXiaokang/karas | 2549502424b2d4c67047b867b0315f33b2e997c5 | [
"MIT"
] | null | null | null | karas/__init__.py | TuXiaokang/karas | 2549502424b2d4c67047b867b0315f33b2e997c5 | [
"MIT"
] | 1 | 2022-01-18T12:53:42.000Z | 2022-01-18T12:53:42.000Z | import pickle
from karas.version import __version__
def serialize(obj, filename):
with open(filename, 'wb') as f:
f.write(pickle.dumps(obj))
def deserialize(filename):
with open(filename, 'rb') as f:
obj = pickle.load(f)
return obj
def replace_type(key):
return key.replace('scalar... | 22.442308 | 60 | 0.548415 | 148 | 1,167 | 4.202703 | 0.371622 | 0.05627 | 0.051447 | 0.07717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008578 | 0.300771 | 1,167 | 51 | 61 | 22.882353 | 0.753676 | 0 | 0 | 0 | 0 | 0 | 0.051414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.194444 | false | 0 | 0.055556 | 0.083333 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6666b27d9a32939d312fcb0f1e04eb3582ec3f56 | 275 | py | Python | 03 - Types/3.2 - InbuiltTypes-ListsTuples/07-method-errors-index.py | python-demo-codes/basics | 2a151bbff4b528cefd52978829c632fd087c8f20 | [
"DOC"
] | 2 | 2019-08-23T06:05:55.000Z | 2019-08-26T03:56:07.000Z | 03 - Types/3.2 - InbuiltTypes-ListsTuples/07-method-errors-index.py | python-lang-codes/basics | 2a151bbff4b528cefd52978829c632fd087c8f20 | [
"DOC"
] | null | null | null | 03 - Types/3.2 - InbuiltTypes-ListsTuples/07-method-errors-index.py | python-lang-codes/basics | 2a151bbff4b528cefd52978829c632fd087c8f20 | [
"DOC"
] | 4 | 2020-10-01T07:16:07.000Z | 2021-07-17T07:55:08.000Z | # HEAD
# DataType - List method -index() Usage Error
# DESCRIPTION
# Describes index method of lists
# and its error incase item is not there
# RESOURCES
#
lists = ['hello', 'hi', 'howdy', 'heyas']
# returns an error - ValueError
print(lists.index('hello hello'))
| 21.153846 | 46 | 0.676364 | 36 | 275 | 5.166667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 275 | 12 | 47 | 22.916667 | 0.845455 | 0.650909 | 0 | 0 | 0 | 0 | 0.321839 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
6674ff922f4c82dfa03dc7390843f76b68565580 | 283 | py | Python | error_handlers/access_token.py | Egor2005l/cho | c7cb165394089b277be5c306edde0b8fb42e466d | [
"MIT"
] | null | null | null | error_handlers/access_token.py | Egor2005l/cho | c7cb165394089b277be5c306edde0b8fb42e466d | [
"MIT"
] | null | null | null | error_handlers/access_token.py | Egor2005l/cho | c7cb165394089b277be5c306edde0b8fb42e466d | [
"MIT"
] | null | null | null | from asyncio import sleep
from vkbottle.exceptions import VKError
from vkbottle.framework.blueprint.user import Blueprint
user = Blueprint(
name='access_token_error_blueprint'
)
@user.error_handler.error_handler(5)
async def rps_handler(e: VKError):
exit(1)
| 20.214286 | 56 | 0.756184 | 37 | 283 | 5.621622 | 0.594595 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008511 | 0.169611 | 283 | 13 | 57 | 21.769231 | 0.876596 | 0 | 0 | 0 | 0 | 0 | 0.103704 | 0.103704 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
66776ed63d7e38eb38a9559cc44798e48137c63c | 10,519 | py | Python | napari/_vispy/experimental/tiled_image_visual.py | harripj/napari | 7a284b1efeb14b1f812f0d98c608f70f0dd66ad2 | [
"BSD-3-Clause"
] | null | null | null | napari/_vispy/experimental/tiled_image_visual.py | harripj/napari | 7a284b1efeb14b1f812f0d98c608f70f0dd66ad2 | [
"BSD-3-Clause"
] | null | null | null | napari/_vispy/experimental/tiled_image_visual.py | harripj/napari | 7a284b1efeb14b1f812f0d98c608f70f0dd66ad2 | [
"BSD-3-Clause"
] | null | null | null | """TiledImageVisual class
A visual that draws tiles using a texture atlas.
"""
from typing import List, Set
import numpy as np
from ...layers.image.experimental.octree_util import OctreeChunk
from ..vendored import ImageVisual
from ..vendored.image import _build_color_transform
from .texture_atlas import TextureAtla... | 35.537162 | 79 | 0.64027 | 1,381 | 10,519 | 4.705286 | 0.251267 | 0.033241 | 0.019698 | 0.016621 | 0.128963 | 0.056633 | 0.0514 | 0.027085 | 0.015697 | 0.015697 | 0 | 0.012117 | 0.286054 | 10,519 | 295 | 80 | 35.657627 | 0.853129 | 0.486073 | 0 | 0.153061 | 0 | 0 | 0.023251 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0.010204 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6683d7523bb35e6eea7af58dcc94e299c8b5221f | 523 | py | Python | patterns/adapter/app.py | mattskone/head-first-design-patterns | 3f0d3a5c39475b418f09e2c45505f88fa673dd41 | [
"MIT"
] | null | null | null | patterns/adapter/app.py | mattskone/head-first-design-patterns | 3f0d3a5c39475b418f09e2c45505f88fa673dd41 | [
"MIT"
] | 1 | 2015-01-13T17:19:19.000Z | 2015-03-11T16:02:28.000Z | patterns/adapter/app.py | mattskone/head-first-design-patterns | 3f0d3a5c39475b418f09e2c45505f88fa673dd41 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from implementations import MallardDuck, WildTurkey, TurkeyAdapter
if __name__ == '__main__':
d = MallardDuck()
print '\nThe Duck says...'
d.quack()
d.fly()
t = WildTurkey()
print '\nThe Turkey says...'
t.gobble()
t.fly()
# Now we use the adapter to show how... | 23.772727 | 67 | 0.625239 | 71 | 523 | 4.492958 | 0.605634 | 0.08464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25239 | 523 | 22 | 68 | 23.772727 | 0.815857 | 0.290631 | 0 | 0 | 0 | 0 | 0.19837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6684d6354c57bdba0d562fbf5c959a7bb01edb22 | 5,697 | py | Python | GCR.py | goodot/character-recognition | 71cd3664670ec2d672d344e8b1842ce3c3ff47d5 | [
"Apache-2.0"
] | 1 | 2019-04-25T10:34:21.000Z | 2019-04-25T10:34:21.000Z | GCR.py | goodot/character-recognition | 71cd3664670ec2d672d344e8b1842ce3c3ff47d5 | [
"Apache-2.0"
] | null | null | null | GCR.py | goodot/character-recognition | 71cd3664670ec2d672d344e8b1842ce3c3ff47d5 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from PIL import Image
from numpy import array
import sqlite3
import tkMessageBox
import matplotlib.pyplot as plt
from pybrain.tools.shortcuts import buildNetwork
from pybrain.datasets import SupervisedDataSet
from pybrain.supervised.trainers import BackpropTrainer
from pybrain.structure.module... | 22.429134 | 110 | 0.566438 | 771 | 5,697 | 4.125811 | 0.263294 | 0.013832 | 0.020748 | 0.011003 | 0.270041 | 0.214398 | 0.193021 | 0.169758 | 0.159698 | 0.12889 | 0 | 0.025955 | 0.283131 | 5,697 | 253 | 111 | 22.517787 | 0.752938 | 0.018782 | 0 | 0.289773 | 0 | 0 | 0.048352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.028409 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6686b772848e4502d8bad3bd405870762f442216 | 2,966 | py | Python | grano/logic/projects.py | ANCIR/grano | cee2ec1974df5df2bc6ed5e214f6bd5d201397a4 | [
"MIT"
] | 30 | 2018-08-23T15:42:17.000Z | 2021-11-16T13:11:36.000Z | grano/logic/projects.py | ANCIR/grano | cee2ec1974df5df2bc6ed5e214f6bd5d201397a4 | [
"MIT"
] | null | null | null | grano/logic/projects.py | ANCIR/grano | cee2ec1974df5df2bc6ed5e214f6bd5d201397a4 | [
"MIT"
] | 5 | 2019-05-30T11:36:53.000Z | 2021-08-11T16:17:14.000Z | import colander
from datetime import datetime
from grano.core import app, db, celery
from grano.logic.validation import database_name
from grano.logic.references import AccountRef
from grano.plugins import notify_plugins
from grano.model import Project
def validate(data, project):
same_project = lambda s: Projec... | 31.892473 | 76 | 0.650371 | 328 | 2,966 | 5.79878 | 0.338415 | 0.042587 | 0.044164 | 0.052576 | 0.150368 | 0.100946 | 0.049422 | 0 | 0 | 0 | 0 | 0.000452 | 0.254552 | 2,966 | 92 | 77 | 32.23913 | 0.859792 | 0.095415 | 0 | 0.031746 | 0 | 0 | 0.047099 | 0 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.095238 | false | 0 | 0.190476 | 0 | 0.412698 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6690a37ed9d0e2c4e7eeabdedc6f1bdca84bc1a4 | 2,899 | py | Python | ecogdata/expconfig/config_decode.py | miketrumpis/ecogdata | ff65820198e69608634c12686a86b97ac3a77558 | [
"BSD-3-Clause"
] | null | null | null | ecogdata/expconfig/config_decode.py | miketrumpis/ecogdata | ff65820198e69608634c12686a86b97ac3a77558 | [
"BSD-3-Clause"
] | null | null | null | ecogdata/expconfig/config_decode.py | miketrumpis/ecogdata | ff65820198e69608634c12686a86b97ac3a77558 | [
"BSD-3-Clause"
] | null | null | null | import os
from ecogdata.util import Bunch
__all__ = ['Parameter', 'TypedParam', 'BoolOrNum', 'NSequence', 'NoneOrStr', 'Path', 'parse_param',
'uniform_bunch_case']
class Parameter:
"A pass-thru parameter whose value is the command (a string)"
def __init__(self, command, default=''):
self... | 25.883929 | 99 | 0.58089 | 355 | 2,899 | 4.642254 | 0.298592 | 0.053398 | 0.043689 | 0.050971 | 0.129248 | 0.063714 | 0.042476 | 0.042476 | 0 | 0 | 0 | 0.001947 | 0.29148 | 2,899 | 111 | 100 | 26.117117 | 0.800389 | 0.131425 | 0 | 0.162162 | 0 | 0 | 0.121681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189189 | false | 0.013514 | 0.027027 | 0.027027 | 0.527027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
66a03a53035c1596664c882408ebdf47aa3afc54 | 304 | py | Python | python-mundo3/ex077.py | abm-astro/estudos-python | c0dcd71489e528d445efa25d4986bf2fd08f8fe6 | [
"MIT"
] | 1 | 2021-08-15T18:18:43.000Z | 2021-08-15T18:18:43.000Z | python-mundo3/ex077.py | abm-astro/estudos-python | c0dcd71489e528d445efa25d4986bf2fd08f8fe6 | [
"MIT"
] | null | null | null | python-mundo3/ex077.py | abm-astro/estudos-python | c0dcd71489e528d445efa25d4986bf2fd08f8fe6 | [
"MIT"
] | null | null | null | list = ('APRENDER', 'PROGRAMAR', 'LINGUAGEM', 'PYTHON', 'CURSO', 'GRATIS', 'ESTUDAR',
'PRATICAR', 'TRABALHAR', 'MERCADO', 'PROGRAMADOR', 'FUTURO')
for p in list:
print(f'\nNa palavra {p} temos: ', end='')
for l in p:
if l.lower() in 'aeiou':
print(l.lower(), end=' ')
| 38 | 85 | 0.546053 | 37 | 304 | 4.486486 | 0.702703 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233553 | 304 | 7 | 86 | 43.428571 | 0.712446 | 0 | 0 | 0 | 0 | 0 | 0.398026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66a846d0d120e378d227803f5adec0334b4d67ff | 1,336 | py | Python | stations/heathen/migrations/0003_auto_20161128_0519.py | boyombo/django-stations | 93a70be7eb8268f9d48f6e3cf9a532bcb27ff895 | [
"MIT"
] | null | null | null | stations/heathen/migrations/0003_auto_20161128_0519.py | boyombo/django-stations | 93a70be7eb8268f9d48f6e3cf9a532bcb27ff895 | [
"MIT"
] | null | null | null | stations/heathen/migrations/0003_auto_20161128_0519.py | boyombo/django-stations | 93a70be7eb8268f9d48f6e3cf9a532bcb27ff895 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-11-28 05:19
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('heathen', '0002_member_gender'),
]
operations = [
... | 30.363636 | 115 | 0.577844 | 138 | 1,336 | 5.434783 | 0.478261 | 0.048 | 0.122667 | 0.144 | 0.310667 | 0.310667 | 0.261333 | 0 | 0 | 0 | 0 | 0.031881 | 0.295659 | 1,336 | 43 | 116 | 31.069767 | 0.765143 | 0.05015 | 0 | 0.361111 | 1 | 0 | 0.090837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66b9ec6f54ec8e5b78556e4fbb86bde48b9e1d35 | 1,167 | py | Python | bann/b_container/functions/print_init_net_state.py | arturOnRails/BANN | 027af04349304941fb73c2ede502aca4b76f1ad1 | [
"MIT"
] | null | null | null | bann/b_container/functions/print_init_net_state.py | arturOnRails/BANN | 027af04349304941fb73c2ede502aca4b76f1ad1 | [
"MIT"
] | null | null | null | bann/b_container/functions/print_init_net_state.py | arturOnRails/BANN | 027af04349304941fb73c2ede502aca4b76f1ad1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
""".. moduleauthor:: Artur Lissin"""
from typing import TypeVar
from bann.b_container.states.general.interface.init_state import InitState
from bann.b_container.states.general.interface.net_state import NetState
from bann.b_container.functions.dict_str_repr import dict_string_repr
from rewowr.p... | 44.884615 | 99 | 0.77892 | 154 | 1,167 | 5.525974 | 0.357143 | 0.041128 | 0.031727 | 0.063455 | 0.094007 | 0.094007 | 0.094007 | 0 | 0 | 0 | 0 | 0.00097 | 0.116538 | 1,167 | 25 | 100 | 46.68 | 0.824442 | 0.045416 | 0 | 0 | 0 | 0 | 0.123646 | 0.048736 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.352941 | 0 | 0.470588 | 0.352941 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
66bdffeb1d31a5333d1015ec0693dc331a8aaed7 | 1,432 | py | Python | setup.py | thefossgeek/packer.py | deda7a708e1968f6a206a939e97149c7aefc1c02 | [
"Apache-2.0"
] | 24 | 2018-03-24T00:06:04.000Z | 2022-01-29T19:25:32.000Z | setup.py | thefossgeek/packer.py | deda7a708e1968f6a206a939e97149c7aefc1c02 | [
"Apache-2.0"
] | 7 | 2018-03-24T00:12:06.000Z | 2021-07-01T23:29:28.000Z | setup.py | thefossgeek/packer.py | deda7a708e1968f6a206a939e97149c7aefc1c02 | [
"Apache-2.0"
] | 7 | 2018-10-10T00:36:25.000Z | 2022-01-27T15:02:17.000Z | """
Copyright 2018 Matthew Aynalem
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software... | 34.095238 | 82 | 0.692039 | 187 | 1,432 | 5.278075 | 0.57754 | 0.06079 | 0.151976 | 0.10537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020035 | 0.198324 | 1,432 | 41 | 83 | 34.926829 | 0.839721 | 0.386872 | 0 | 0.08 | 0 | 0 | 0.532184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.08 | 0 | 0.08 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66d19b6566c778e3d204fad20cbbd324cf9a6a61 | 5,256 | py | Python | CommandsToFunction.py | destruc7i0n/CommandsToFunction | f1c29c6280524c54cc5876b966c1ff36ab1c2d27 | [
"MIT"
] | 1 | 2018-03-10T21:09:04.000Z | 2018-03-10T21:09:04.000Z | CommandsToFunction.py | destruc7i0n/CommandsToFunction | f1c29c6280524c54cc5876b966c1ff36ab1c2d27 | [
"MIT"
] | null | null | null | CommandsToFunction.py | destruc7i0n/CommandsToFunction | f1c29c6280524c54cc5876b966c1ff36ab1c2d27 | [
"MIT"
] | null | null | null | # By TheDestruc7i0n https://thedestruc7i0n.ca
# MrGarretto for the code for traversing the command block chain https://mrgarretto.com
import mcplatform
import codecs
__version__ = "V1.4.1"
displayName = "Commands to Function"
inputs = (
("Converts a command block chain into a function.", "label"),
("The fil... | 39.818182 | 180 | 0.562976 | 661 | 5,256 | 4.429652 | 0.30711 | 0.032787 | 0.04918 | 0.090164 | 0.338456 | 0.287227 | 0.210383 | 0.183743 | 0.117486 | 0.061475 | 0 | 0.023533 | 0.328957 | 5,256 | 131 | 181 | 40.122137 | 0.806635 | 0.132991 | 0 | 0.114943 | 0 | 0.022989 | 0.283385 | 0.039224 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022989 | null | null | 0.045977 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66db0c7061bb9a75d8373490465f8ef60bcc3200 | 426 | py | Python | api/tacticalrmm/agents/migrations/0049_agent_agents_agen_monitor_df8816_idx.py | v2cloud/tacticalrmm | 12f599f9749985f66ff9b559c5e5abd36064b182 | [
"MIT"
] | null | null | null | api/tacticalrmm/agents/migrations/0049_agent_agents_agen_monitor_df8816_idx.py | v2cloud/tacticalrmm | 12f599f9749985f66ff9b559c5e5abd36064b182 | [
"MIT"
] | null | null | null | api/tacticalrmm/agents/migrations/0049_agent_agents_agen_monitor_df8816_idx.py | v2cloud/tacticalrmm | 12f599f9749985f66ff9b559c5e5abd36064b182 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-04-18 14:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('agents', '0048_remove_agent_has_patches_pending_and_more'),
]
operations = [
migrations.AddIndex(
model_name='agent',
... | 23.666667 | 98 | 0.65493 | 50 | 426 | 5.32 | 0.82 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070336 | 0.232394 | 426 | 17 | 99 | 25.058824 | 0.743119 | 0.105634 | 0 | 0 | 1 | 0 | 0.269129 | 0.200528 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66e230d59002f2287f49fdc67f96ab043ceba837 | 316 | py | Python | static/code/loc/attn.py | navivokaj/deepcourse | c5385e7a7b8417fe1017f1057e8e5d32b4a24bb5 | [
"Apache-2.0"
] | 91 | 2021-08-28T05:03:36.000Z | 2022-01-27T09:46:36.000Z | static/code/loc/attn.py | faisalbi/deepcourse | fe26314e43896013d195955d16fc4f215e39a53a | [
"Apache-2.0"
] | 8 | 2021-09-14T13:21:56.000Z | 2021-12-28T19:45:51.000Z | static/code/loc/attn.py | faisalbi/deepcourse | fe26314e43896013d195955d16fc4f215e39a53a | [
"Apache-2.0"
] | 10 | 2021-08-28T22:32:19.000Z | 2022-03-16T11:13:02.000Z | def generate_attention(path, size=(224, 224)):
image = Image.open(path)
image.thumbnail(size, Image.ANTIALIAS)
tensor = transform(image)[None]
with torch.no_grad():
logits = net(tensor)[0]
probs = torch.softmax(logits, dim=0)
attention_map = probs[indexes].sum(dim=0)
return image, attention_map
| 26.333333 | 46 | 0.708861 | 45 | 316 | 4.888889 | 0.6 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033457 | 0.148734 | 316 | 11 | 47 | 28.727273 | 0.784387 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66e44acc59d85966cbb8120b35805a421dccdbf1 | 566 | py | Python | world/dominion/migrations/0011_organization_theories.py | stesla/arxcode | a0ebf7c4d310de8c1980a8ba2a48948a68bb5a0a | [
"MIT"
] | 5 | 2019-03-16T08:26:53.000Z | 2019-11-27T15:42:16.000Z | world/dominion/migrations/0011_organization_theories.py | stesla/arxcode | a0ebf7c4d310de8c1980a8ba2a48948a68bb5a0a | [
"MIT"
] | 7 | 2018-09-29T05:08:15.000Z | 2021-06-10T21:35:32.000Z | world/dominion/migrations/0011_organization_theories.py | stesla/arxcode | a0ebf7c4d310de8c1980a8ba2a48948a68bb5a0a | [
"MIT"
] | 7 | 2018-09-19T21:11:29.000Z | 2019-11-19T12:46:14.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2017-08-19 03:52
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('character', '0015_auto_20170605_2252'),
('dominion', '0010_auto_20170511_0645'),
... | 25.727273 | 108 | 0.637809 | 62 | 566 | 5.612903 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113164 | 0.234982 | 566 | 21 | 109 | 26.952381 | 0.690531 | 0.120141 | 0 | 0 | 1 | 0 | 0.208081 | 0.092929 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66e8dfd4ed77fb442ea81a851f7a9c4e599b1de3 | 465 | py | Python | projects/generate_pdf/main.py | parth-patel-samarthview/batch_201901 | f407c1bf9575a01e8ddc507adb6f0574f8d2bc09 | [
"MIT"
] | 2 | 2019-03-17T07:20:24.000Z | 2019-03-31T05:47:09.000Z | projects/generate_pdf/main.py | parth-patel-samarthview/batch_201901 | f407c1bf9575a01e8ddc507adb6f0574f8d2bc09 | [
"MIT"
] | null | null | null | projects/generate_pdf/main.py | parth-patel-samarthview/batch_201901 | f407c1bf9575a01e8ddc507adb6f0574f8d2bc09 | [
"MIT"
] | 2 | 2019-01-28T13:09:48.000Z | 2019-03-17T07:20:37.000Z | from xlrd import open_workbook
wb = open_workbook(r"C:\Users\Lenovo\Documents\excel converter.xlsx")
for s in wb.sheets():
#print 'Sheet:',s.name
values = []
for row in range(s.nrows):
col_value = []
for col in range(s.ncols):
value = (s.cell(row,col).value)
... | 31 | 70 | 0.572043 | 63 | 465 | 4.142857 | 0.555556 | 0.122605 | 0.061303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.303226 | 465 | 14 | 71 | 33.214286 | 0.805556 | 0.045161 | 0 | 0 | 0 | 0 | 0.107226 | 0.072261 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.076923 | 0 | 0.076923 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
66ebd223e34af9e0e97db29c5f0febdca09f52fb | 3,068 | py | Python | apitaxdrivers/Openstack.py | Apitax/Drivers | 35b2c2f4c8ce8b98615f42fc30f04111d7b9bffe | [
"Apache-2.0"
] | null | null | null | apitaxdrivers/Openstack.py | Apitax/Drivers | 35b2c2f4c8ce8b98615f42fc30f04111d7b9bffe | [
"Apache-2.0"
] | 4 | 2018-08-03T20:01:57.000Z | 2018-10-22T15:32:27.000Z | apitaxdrivers/Openstack.py | Apitax/Drivers | 35b2c2f4c8ce8b98615f42fc30f04111d7b9bffe | [
"Apache-2.0"
] | null | null | null | from apitax.drivers.Driver import Driver
from apitax.utilities.Files import getAllFiles
from apitax.ah.Options import Options
from pathlib import Path
from apitax.ah.Credentials import Credentials
from apitax.utilities.Json import read
from apitax.ah.State import State
from apitax.utilities.Files import getPath
class... | 35.264368 | 118 | 0.601695 | 296 | 3,068 | 6.202703 | 0.385135 | 0.043573 | 0.026144 | 0.037037 | 0.03268 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007539 | 0.264993 | 3,068 | 86 | 119 | 35.674419 | 0.806652 | 0.010756 | 0 | 0.09375 | 0 | 0 | 0.131596 | 0.007916 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171875 | false | 0.046875 | 0.15625 | 0.09375 | 0.53125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
66edc872f39ffc8e4f5e60f1aba0149f68247a58 | 220 | py | Python | my_lambdata/my_script.py | TheLadyJack/lambdata-pt5 | 0ff4a86f3cd35e502c0a8a1c704e7944298840f2 | [
"MIT"
] | null | null | null | my_lambdata/my_script.py | TheLadyJack/lambdata-pt5 | 0ff4a86f3cd35e502c0a8a1c704e7944298840f2 | [
"MIT"
] | null | null | null | my_lambdata/my_script.py | TheLadyJack/lambdata-pt5 | 0ff4a86f3cd35e502c0a8a1c704e7944298840f2 | [
"MIT"
] | 1 | 2020-05-11T02:49:28.000Z | 2020-05-11T02:49:28.000Z |
# my_script.py
import pandas
from my_lambdata.my_mod import enlarge
print('HAPPY TUESDAY NIGHT')
df = pandas.DataFrame({'x': [1, 2, 3], 'y': [4, 5, 6]})
print(df.head())
x = 5
print("ENLARGE", x, "TO", enlarge(x)) | 14.666667 | 55 | 0.636364 | 38 | 220 | 3.605263 | 0.657895 | 0.116788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037838 | 0.159091 | 220 | 15 | 56 | 14.666667 | 0.702703 | 0.054545 | 0 | 0 | 0 | 0 | 0.145631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
66eed650aab89b6bac9cd47794d827289659357d | 1,225 | py | Python | apps/wordcount.py | marsupialtail/quokka | 9dfffaf8499a27f121eb5007db5371934ab9fda5 | [
"Apache-2.0"
] | 4 | 2022-03-09T19:51:02.000Z | 2022-03-24T22:00:18.000Z | apps/wordcount.py | marsupialtail/quokka | 9dfffaf8499a27f121eb5007db5371934ab9fda5 | [
"Apache-2.0"
] | null | null | null | apps/wordcount.py | marsupialtail/quokka | 9dfffaf8499a27f121eb5007db5371934ab9fda5 | [
"Apache-2.0"
] | 1 | 2022-02-10T04:38:24.000Z | 2022-02-10T04:38:24.000Z | import time
import sys
sys.path.append("/home/ubuntu/quokka/pyquokka")
import pyarrow.compute as compute
import pyarrow as pa
import pandas as pd
from pyquokka.quokka_runtime import TaskGraph
from pyquokka.dataset import InputS3CSVDataset
from pyquokka.executors import UDFExecutor, AggExecutor
import ray
from pyquokka.... | 36.029412 | 143 | 0.777959 | 174 | 1,225 | 5.275862 | 0.511494 | 0.058824 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01982 | 0.093878 | 1,225 | 33 | 144 | 37.121212 | 0.807207 | 0 | 0 | 0 | 0 | 0 | 0.062041 | 0.022857 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.357143 | 0 | 0.428571 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
dd0a966e3c92349746b727ce42ffb0efe29eb341 | 232 | py | Python | pythonProject/051.py | MontanhaRio/python | 43ad6173d692ebeb153c23c893e4b8f0bf07afcc | [
"MIT"
] | null | null | null | pythonProject/051.py | MontanhaRio/python | 43ad6173d692ebeb153c23c893e4b8f0bf07afcc | [
"MIT"
] | null | null | null | pythonProject/051.py | MontanhaRio/python | 43ad6173d692ebeb153c23c893e4b8f0bf07afcc | [
"MIT"
] | null | null | null | #051 - Progressão Aritmética
primeiro = int(input('primeiro termo: '))
razao = int(input('razao: '))
decimo = primeiro + (10 - 1) * razao
for c in range(primeiro, decimo + razao, razao):
print(f'{c}', end=' - ')
print('acabou')
| 29 | 48 | 0.637931 | 31 | 232 | 4.774194 | 0.612903 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031088 | 0.168103 | 232 | 7 | 49 | 33.142857 | 0.735751 | 0.116379 | 0 | 0 | 0 | 0 | 0.171569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd114daf874a5113511e683f27e7e520b01176b1 | 3,469 | py | Python | backend/workspaces/Users/actions/login.py | makakken/roseguarden | 9a867f3d5e979b990bf474dcba81e5e9d0814c6a | [
"MIT"
] | null | null | null | backend/workspaces/Users/actions/login.py | makakken/roseguarden | 9a867f3d5e979b990bf474dcba81e5e9d0814c6a | [
"MIT"
] | 50 | 2021-03-28T03:06:19.000Z | 2021-10-18T12:36:16.000Z | backend/workspaces/Users/actions/login.py | makakken/roseguarden | 9a867f3d5e979b990bf474dcba81e5e9d0814c6a | [
"MIT"
] | 1 | 2021-07-30T07:12:46.000Z | 2021-07-30T07:12:46.000Z | """
The roseguarden project
Copyright (C) 2018-2020 Marcus Drobisch,
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This pr... | 45.051948 | 118 | 0.63563 | 342 | 3,469 | 6.362573 | 0.461988 | 0.074449 | 0.140625 | 0.095588 | 0.240349 | 0.152114 | 0.096507 | 0.096507 | 0.096507 | 0.096507 | 0 | 0.004827 | 0.283367 | 3,469 | 76 | 119 | 45.644737 | 0.870475 | 0.23292 | 0 | 0.195652 | 0 | 0 | 0.129105 | 0.008683 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.065217 | 0.086957 | 0 | 0.195652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dd173340b0cceb447e4578760ece3ab7a5d8df8b | 63,514 | py | Python | src/simple_tools/p4a_processor.py | DVSR1966/par4all | 86b33ca9da736e832b568c5637a2381f360f1996 | [
"MIT"
] | 51 | 2015-01-31T01:51:39.000Z | 2022-02-18T02:01:50.000Z | src/simple_tools/p4a_processor.py | DVSR1966/par4all | 86b33ca9da736e832b568c5637a2381f360f1996 | [
"MIT"
] | 7 | 2017-05-29T09:29:00.000Z | 2019-03-11T16:01:39.000Z | src/simple_tools/p4a_processor.py | DVSR1966/par4all | 86b33ca9da736e832b568c5637a2381f360f1996 | [
"MIT"
] | 12 | 2015-03-26T08:05:38.000Z | 2022-02-18T02:01:51.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Authors:
# - Grégoire Péan <gregoire.pean@hpc-project.com>
# - Ronan Keryell <ronan.keryell@hpc-project.com>
# + Many others...
# Beware: class p4a_scmp_compiler declared in ../scmp/p4a_scmp_compiler.py
# inherits from class p4a_processor.
# Maybe a common parent class... | 43.592313 | 283 | 0.616211 | 7,806 | 63,514 | 4.780169 | 0.123623 | 0.01742 | 0.008308 | 0.008254 | 0.350807 | 0.301147 | 0.257088 | 0.211958 | 0.180602 | 0.155947 | 0 | 0.007992 | 0.30853 | 63,514 | 1,456 | 284 | 43.622253 | 0.841637 | 0.246072 | 0 | 0.164794 | 0 | 0 | 0.069721 | 0.012565 | 0 | 0 | 0 | 0 | 0.001248 | 0 | null | null | 0.001248 | 0.014981 | null | null | 0.008739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd173502c78ac900cdc7ccca958ee936158c16b0 | 4,790 | py | Python | hivwholeseq/cross_sectional/get_subtype_entropy_synonymous.py | iosonofabio/hivwholeseq | d504c63b446c3a0308aad6d6e484ea1666bbe6df | [
"MIT"
] | 3 | 2016-12-01T03:12:06.000Z | 2021-07-03T01:29:26.000Z | hivwholeseq/cross_sectional/get_subtype_entropy_synonymous.py | iosonofabio/hivwholeseq | d504c63b446c3a0308aad6d6e484ea1666bbe6df | [
"MIT"
] | null | null | null | hivwholeseq/cross_sectional/get_subtype_entropy_synonymous.py | iosonofabio/hivwholeseq | d504c63b446c3a0308aad6d6e484ea1666bbe6df | [
"MIT"
] | 3 | 2016-01-17T03:43:46.000Z | 2020-03-25T07:00:11.000Z | # vim: fdm=marker
'''
author: Fabio Zanini
date: 12/01/15
content: Get subtype entropy from alignments, since it's used so often.
'''
# Modules
import os
import argparse
import cPickle as pickle
import numpy as np
from hivwholeseq.utils.miseq import alpha
from hivwholeseq.utils.one_site_statistics import ... | 33.971631 | 103 | 0.524426 | 487 | 4,790 | 5.004107 | 0.334702 | 0.041034 | 0.102585 | 0.103406 | 0.26467 | 0.191629 | 0.166188 | 0.107509 | 0.065654 | 0.065654 | 0 | 0.011403 | 0.395825 | 4,790 | 140 | 104 | 34.214286 | 0.830684 | 0.029228 | 0 | 0.178947 | 0 | 0 | 0.076958 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.115789 | null | null | 0.063158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd25aadd6a2a27a37d069c617bb272fc239e2c39 | 1,044 | py | Python | MyApp/config.py | muayyad-alsadi/uPyApp | e81fb9d336a843d068ae93c866cf503989ef6a60 | [
"Apache-2.0"
] | null | null | null | MyApp/config.py | muayyad-alsadi/uPyApp | e81fb9d336a843d068ae93c866cf503989ef6a60 | [
"Apache-2.0"
] | null | null | null | MyApp/config.py | muayyad-alsadi/uPyApp | e81fb9d336a843d068ae93c866cf503989ef6a60 | [
"Apache-2.0"
] | 1 | 2020-03-18T07:27:27.000Z | 2020-03-18T07:27:27.000Z | __all__ = ['app_config']
import sys, os, os.path
try: import ConfigParser as configparser
except ImportError: import configparser
try: import simplejson as json
except ImportError: import json
from .base_utils import *
class AppConfig(configparser.RawConfigParser):
config_filename = 'my-app.ini'
main_sectio... | 36 | 97 | 0.707854 | 143 | 1,044 | 4.923077 | 0.405594 | 0.042614 | 0.065341 | 0.039773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001145 | 0.163793 | 1,044 | 28 | 98 | 37.285714 | 0.805269 | 0 | 0 | 0 | 0 | 0 | 0.043103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.095238 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
dd2b17b19b93b0baf9bf8e30437c71d115b7442f | 885 | py | Python | local/race_sim.py | tractiming/trac-gae | 46c4a1fe409a45e8595210a5cf242425d40d4b41 | [
"MIT"
] | 3 | 2020-09-13T04:56:31.000Z | 2021-05-26T11:46:08.000Z | local/race_sim.py | tractiming/trac-gae | 46c4a1fe409a45e8595210a5cf242425d40d4b41 | [
"MIT"
] | null | null | null | local/race_sim.py | tractiming/trac-gae | 46c4a1fe409a45e8595210a5cf242425d40d4b41 | [
"MIT"
] | 1 | 2020-05-09T10:05:08.000Z | 2020-05-09T10:05:08.000Z | import requests
import datetime
import time
UPDATE_URL = "http://www.trac-us.appspot.com/api/updates/"
#UPDATE_URL = "http://localhost:8000/api/updates/"
def post_split(reader_code, tag_code, time):
formatted_time = time.strftime("%Y/%m/%d %H:%M:%S.%f")
payload = {'r': reader_code,
'... | 20.113636 | 74 | 0.59661 | 121 | 885 | 4.132231 | 0.504132 | 0.054 | 0.09 | 0.064 | 0.112 | 0.112 | 0.112 | 0 | 0 | 0 | 0 | 0.032023 | 0.223729 | 885 | 43 | 75 | 20.581395 | 0.695779 | 0.137853 | 0 | 0 | 0 | 0 | 0.193931 | 0.031662 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd2f7e3c6dec1485c37b66c19a901c087ee62101 | 1,289 | py | Python | examples/basic/turnOffLight_fb.py | quangthanh010290/EchoSkills | b90379cddb034a1e379fef77ca48c583bd6e47d5 | [
"MIT"
] | null | null | null | examples/basic/turnOffLight_fb.py | quangthanh010290/EchoSkills | b90379cddb034a1e379fef77ca48c583bd6e47d5 | [
"MIT"
] | null | null | null | examples/basic/turnOffLight_fb.py | quangthanh010290/EchoSkills | b90379cddb034a1e379fef77ca48c583bd6e47d5 | [
"MIT"
] | null | null | null | import logging
from random import randint
from flask import Flask, render_template
from flask_ask import Ask, statement, question, session
from firebase import firebase
import time
firebase = firebase.FirebaseApplication('https://iotdev-6b58b.firebaseio.com', None)
app = Flask(__name__)
ask = Ask(app, "/")
#lo... | 22.614035 | 84 | 0.703646 | 177 | 1,289 | 5.028249 | 0.423729 | 0.049438 | 0.037079 | 0.070787 | 0.170787 | 0.170787 | 0.170787 | 0.101124 | 0.101124 | 0.101124 | 0 | 0.033241 | 0.159814 | 1,289 | 56 | 85 | 23.017857 | 0.78855 | 0.041893 | 0 | 0.114286 | 0 | 0 | 0.294165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.171429 | null | null | 0.114286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd333037440197eebf8dccb7cbf70627b566e58c | 763 | py | Python | home_app/migrations/0003_auto_20200412_0206.py | Ymirrp/Home-page | 6ac9b5b76cc2b08298086c7e784685dad802c9d6 | [
"MIT"
] | null | null | null | home_app/migrations/0003_auto_20200412_0206.py | Ymirrp/Home-page | 6ac9b5b76cc2b08298086c7e784685dad802c9d6 | [
"MIT"
] | 7 | 2020-04-18T04:54:05.000Z | 2020-04-29T14:49:46.000Z | home_app/migrations/0003_auto_20200412_0206.py | Ymirrp/Home-page | 6ac9b5b76cc2b08298086c7e784685dad802c9d6 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-04-12 02:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home_app', '0002_auto_20200408_2205'),
]
operations = [
migrations.RemoveField(
model_name='topsites',
... | 33.173913 | 292 | 0.55308 | 74 | 763 | 5.594595 | 0.837838 | 0.043478 | 0.082126 | 0.101449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056637 | 0.259502 | 763 | 22 | 293 | 34.681818 | 0.676106 | 0.058978 | 0 | 0.25 | 1 | 0 | 0.266571 | 0.033141 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.