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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
012db21bc927b85c8eac8aed517e187ad63c1016 | 1,889 | py | Python | doc/crypto/testrsa.py | haysengithub/ctf | c2cefed8470f40d0cb6bc4d1ae941a70936ea497 | [
"MIT"
] | null | null | null | doc/crypto/testrsa.py | haysengithub/ctf | c2cefed8470f40d0cb6bc4d1ae941a70936ea497 | [
"MIT"
] | null | null | null | doc/crypto/testrsa.py | haysengithub/ctf | c2cefed8470f40d0cb6bc4d1ae941a70936ea497 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# by https://findneo.github.io/
# ref:
# https://crypto.stackexchange.com/questions/11053/rsa-least-significant-bit-oracle-attack
# https://ctf.rip/sharif-ctf-2016-lsb-oracle-crypto-challenge/
# https://introspelliam.github.io/2018/03/27/crypto/RSA-Least-Significant-Bit-Oracle-Attack/
import lib... | 30.467742 | 92 | 0.643727 | 251 | 1,889 | 4.741036 | 0.478088 | 0.012605 | 0.013445 | 0.036975 | 0.122689 | 0.112605 | 0 | 0 | 0 | 0 | 0 | 0.180632 | 0.229222 | 1,889 | 61 | 93 | 30.967213 | 0.636676 | 0.32504 | 0 | 0.04878 | 0 | 0 | 0.049245 | 0 | 0 | 0 | 0.00556 | 0 | 0.02439 | 0 | null | null | 0 | 0.02439 | null | null | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
013dc6803632ec79cb90fb2226d95535547c3c20 | 5,771 | py | Python | bikeshed/htmlhelpers.py | shans/bikeshed | af01666677d1f9d933a489b7eb321576be2227a0 | [
"CC0-1.0"
] | null | null | null | bikeshed/htmlhelpers.py | shans/bikeshed | af01666677d1f9d933a489b7eb321576be2227a0 | [
"CC0-1.0"
] | null | null | null | bikeshed/htmlhelpers.py | shans/bikeshed | af01666677d1f9d933a489b7eb321576be2227a0 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import division, unicode_literals
import html5lib
from html5lib import treewalkers
from html5lib.serializer import htmlserializer
from lxml import html
from lxml import etree
from lxml.cssselect import CSSSelector
from . import config
from .messages import *
def findAll(sel, c... | 27.221698 | 89 | 0.625888 | 726 | 5,771 | 4.965565 | 0.256198 | 0.030513 | 0.01165 | 0.016644 | 0.213315 | 0.171706 | 0.116505 | 0.080999 | 0.068239 | 0.032178 | 0 | 0.009238 | 0.249697 | 5,771 | 211 | 90 | 27.350711 | 0.823326 | 0.066713 | 0 | 0.198718 | 0 | 0 | 0.038326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057692 | 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 |
014397c4b95a8dfff24fd2b3339de39dd77d428a | 9,024 | py | Python | main/rest/views.py | csev/class2go | f9419ae16448d20fc882170f95cfd1c4dc3331ca | [
"Apache-2.0"
] | 2 | 2015-10-31T23:12:52.000Z | 2021-01-19T11:03:00.000Z | main/rest/views.py | sunu/class2go | 653b1edd01d390ad387dd788e0fc2d89445fbcab | [
"Apache-2.0"
] | null | null | null | main/rest/views.py | sunu/class2go | 653b1edd01d390ad387dd788e0fc2d89445fbcab | [
"Apache-2.0"
] | null | null | null | from rest_framework import permissions
from rest_framework.renderers import JSONRenderer
from rest_framework.parsers import JSONParser
from rest_framework import generics
from rest_framework import status
from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework.vie... | 31.663158 | 164 | 0.681959 | 935 | 9,024 | 6.396791 | 0.240642 | 0.037619 | 0.055175 | 0.08527 | 0.376024 | 0.29694 | 0.269855 | 0.252132 | 0.237753 | 0.237753 | 0 | 0.001147 | 0.22695 | 9,024 | 284 | 165 | 31.774648 | 0.856221 | 0.01762 | 0 | 0.352273 | 0 | 0 | 0.047184 | 0.002513 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096591 | false | 0 | 0.170455 | 0 | 0.619318 | 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 |
0144c5f3fcfcb9ed82f7efa1e7777e181413f23b | 2,520 | py | Python | mlflow/utils/_spark_utils.py | adamreeve/mlflow | d0d307f7f7b49f013727191a672ae2139bf37343 | [
"Apache-2.0"
] | 1 | 2022-01-11T02:51:17.000Z | 2022-01-11T02:51:17.000Z | mlflow/utils/_spark_utils.py | adamreeve/mlflow | d0d307f7f7b49f013727191a672ae2139bf37343 | [
"Apache-2.0"
] | null | null | null | mlflow/utils/_spark_utils.py | adamreeve/mlflow | d0d307f7f7b49f013727191a672ae2139bf37343 | [
"Apache-2.0"
] | null | null | null | import tempfile
import shutil
import os
def _get_active_spark_session():
try:
from pyspark.sql import SparkSession
except ImportError:
# Return None if user doesn't have PySpark installed
return None
try:
# getActiveSession() only exists in Spark 3.0 and above
retur... | 38.769231 | 96 | 0.700794 | 315 | 2,520 | 5.390476 | 0.425397 | 0.077739 | 0.050059 | 0.09894 | 0.100707 | 0.100707 | 0.069494 | 0 | 0 | 0 | 0 | 0.001562 | 0.237698 | 2,520 | 64 | 97 | 39.375 | 0.882353 | 0.386905 | 0 | 0.166667 | 0 | 0 | 0.002717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.027778 | 0.194444 | 0 | 0.527778 | 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 |
0149d1163a187ccaada2d255b902904587bcfda7 | 342 | py | Python | web/blog/comments/urls.py | BumagniyPacket/django-blog | bb3511c2380a79e400302d75406c568d1c5066b1 | [
"Apache-2.0"
] | 2 | 2017-04-22T11:07:53.000Z | 2017-04-23T12:49:13.000Z | web/blog/comments/urls.py | BumagniyPacket/django-blog-example | bb3511c2380a79e400302d75406c568d1c5066b1 | [
"Apache-2.0"
] | null | null | null | web/blog/comments/urls.py | BumagniyPacket/django-blog-example | bb3511c2380a79e400302d75406c568d1c5066b1 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
from .views import CommentAddView, CommentApproveView, CommentDeleteView
urlpatterns = [
url(r'^(?P<pk>\d+)/delete$', CommentDeleteView.as_view(), name='delete'),
url(r'^(?P<pk>\d+)/approve$', CommentApproveView.as_view(), name='approve'),
url(r'^add$', CommentAddView.as_v... | 34.2 | 80 | 0.690058 | 43 | 342 | 5.418605 | 0.488372 | 0.051502 | 0.128755 | 0.060086 | 0.06867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108187 | 342 | 9 | 81 | 38 | 0.763934 | 0 | 0 | 0 | 0 | 0 | 0.181287 | 0.061404 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0154d88cdbc3dd2aec76ee7cfc07fec8fd62ef41 | 492 | py | Python | week12/api/serializers.py | yestemir/web | 5bdead66c26a3c466701e25ecae9720f04ad4118 | [
"Unlicense"
] | null | null | null | week12/api/serializers.py | yestemir/web | 5bdead66c26a3c466701e25ecae9720f04ad4118 | [
"Unlicense"
] | 13 | 2021-03-10T08:46:52.000Z | 2022-03-02T08:13:58.000Z | week12/api/serializers.py | yestemir/web | 5bdead66c26a3c466701e25ecae9720f04ad4118 | [
"Unlicense"
] | null | null | null | from rest_framework import serializers
from api.models import Company
class CompanySerializer(serializers.Serializer):
id = serializers.IntegerField(read_only=True)
name = serializers.CharField()
def create(self, validated_data):
category = Company.objects.create(name=validated_data.get('name'))
... | 28.941176 | 74 | 0.719512 | 55 | 492 | 6.327273 | 0.545455 | 0.149425 | 0.097701 | 0.114943 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191057 | 492 | 16 | 75 | 30.75 | 0.874372 | 0 | 0 | 0 | 0 | 0 | 0.01626 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
015adaedf627e18885346b27fcaa16562c4147f6 | 3,989 | py | Python | 5408Project/DBMS_Software/Serverless/vectorB00870639.py | AparnaVivekanandan18/Distributed-DBMS | a03b1bfbc9684ef8c67303a516f48ea7f53518cb | [
"Apache-2.0"
] | 1 | 2021-09-08T12:05:31.000Z | 2021-09-08T12:05:31.000Z | 5408Project/DBMS_Software/Serverless/vectorB00870639.py | AparnaVivekanandan18/Distributed-DBMS | a03b1bfbc9684ef8c67303a516f48ea7f53518cb | [
"Apache-2.0"
] | null | null | null | 5408Project/DBMS_Software/Serverless/vectorB00870639.py | AparnaVivekanandan18/Distributed-DBMS | a03b1bfbc9684ef8c67303a516f48ea7f53518cb | [
"Apache-2.0"
] | null | null | null | import json
import json
import boto3
import re
import json
import collections
import os
import pandas as pd
import csv
from csv import writer
# boto3 S3 initialization
s3_client = boto3.client("s3")
import numpy as np
def lambda_handler(event, context):
# TODO implement
bucketname = 'sourcedatab00870639'
... | 43.835165 | 119 | 0.576586 | 541 | 3,989 | 4.127542 | 0.438078 | 0.028213 | 0.047022 | 0.016122 | 0.179579 | 0.066726 | 0.060457 | 0.057322 | 0.057322 | 0.027765 | 0 | 0.024902 | 0.234896 | 3,989 | 90 | 120 | 44.322222 | 0.70675 | 0.052895 | 0 | 0.039474 | 0 | 0 | 0.184301 | 0 | 0 | 0 | 0 | 0.011111 | 0 | 1 | 0.026316 | false | 0 | 0.144737 | 0 | 0.184211 | 0.039474 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
015c6707869d8578c11c15943f88eac9d78ec845 | 1,547 | py | Python | sshsysmon/drivers/ssh.py | zix99/sshsysmon | 091a28f2d28795f05e12a158bef22a10c87de8ff | [
"MIT"
] | 46 | 2016-03-13T20:57:24.000Z | 2022-03-21T13:37:04.000Z | sshsysmon/drivers/ssh.py | zix99/sshmon | 091a28f2d28795f05e12a158bef22a10c87de8ff | [
"MIT"
] | 5 | 2016-03-15T10:00:54.000Z | 2021-04-30T01:41:02.000Z | sshsysmon/drivers/ssh.py | zix99/sshmon | 091a28f2d28795f05e12a158bef22a10c87de8ff | [
"MIT"
] | 9 | 2016-09-23T09:37:31.000Z | 2021-05-11T11:26:46.000Z | from lib.plugins import Driver
import os
from paramiko import SSHClient, RSAKey, AutoAddPolicy
from io import StringIO
class Ssh(Driver):
DEFAULT_KEY_PATH = "~/.ssh/id_rsa"
def __init__(self, host, username='root', password = None, key = None, port = 22, path = "/proc"):
Driver.__init__(self)
self._host = host
... | 25.360656 | 144 | 0.706529 | 221 | 1,547 | 4.705882 | 0.352941 | 0.030769 | 0.026923 | 0.026923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003094 | 0.164189 | 1,547 | 61 | 145 | 25.360656 | 0.801237 | 0 | 0 | 0.040816 | 0 | 0 | 0.0323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.081633 | 0.081633 | 0.040816 | 0.387755 | 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 |
015d37692cec82d3d89e289491db230733103ea2 | 497 | py | Python | python/src/hackerrank/2020/military_time.py | ccampo133/coding-challenges | 618b51d2d6f6946d3756c68b0008a178d80952ae | [
"MIT"
] | null | null | null | python/src/hackerrank/2020/military_time.py | ccampo133/coding-challenges | 618b51d2d6f6946d3756c68b0008a178d80952ae | [
"MIT"
] | null | null | null | python/src/hackerrank/2020/military_time.py | ccampo133/coding-challenges | 618b51d2d6f6946d3756c68b0008a178d80952ae | [
"MIT"
] | null | null | null | def timeConversion(s):
ampm = s[-2:]
hr = s[:2]
if ampm == 'AM':
return s[:-2] if hr != '12' else '00' + s[2:-2]
return s[:-2] if hr == '12' else str(int(s[:2]) + 12) + s[2:-2]
if __name__ == '__main__':
s1 = '07:05:45PM'
assert timeConversion(s1) == '19:05:45'
s2 = '07:05:45AM'
... | 23.666667 | 67 | 0.523139 | 81 | 497 | 3.111111 | 0.382716 | 0.055556 | 0.047619 | 0.079365 | 0.142857 | 0.142857 | 0.142857 | 0 | 0 | 0 | 0 | 0.197297 | 0.255533 | 497 | 20 | 68 | 24.85 | 0.483784 | 0 | 0 | 0 | 0 | 0 | 0.177062 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0163df4b94688e25551d1e8cbc3582f32d6b4f39 | 21,716 | py | Python | Packs/Ansible_Powered_Integrations/Integrations/Linux/Linux.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 799 | 2016-08-02T06:43:14.000Z | 2022-03-31T11:10:11.000Z | Packs/Ansible_Powered_Integrations/Integrations/Linux/Linux.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 9,317 | 2016-08-07T19:00:51.000Z | 2022-03-31T21:56:04.000Z | Packs/Ansible_Powered_Integrations/Integrations/Linux/Linux.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 1,297 | 2016-08-04T13:59:00.000Z | 2022-03-31T23:43:06.000Z | import json
import traceback
from typing import Dict, cast
import ansible_runner
import demistomock as demisto # noqa: F401
import ssh_agent_setup
from CommonServerPython import * # noqa: F401
# Dict to Markdown Converter adapted from https://github.com/PolBaladas/torsimany/
def dict2md(json_block, depth=0):
m... | 49.020316 | 107 | 0.615399 | 2,312 | 21,716 | 5.614619 | 0.137543 | 0.117556 | 0.148371 | 0.189585 | 0.645097 | 0.466374 | 0.172791 | 0.0369 | 0.018026 | 0.010323 | 0 | 0.001555 | 0.230107 | 21,716 | 442 | 108 | 49.131222 | 0.774867 | 0.046279 | 0 | 0.084034 | 0 | 0 | 0.185474 | 0.016742 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02521 | false | 0.019608 | 0.019608 | 0 | 0.070028 | 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 |
016c6398fbb64a982ddb4440ab6f451537982ecf | 37,509 | py | Python | mmfewshot/classification/datasets/tiered_imagenet.py | BIGWangYuDong/mmfewshot | dac097afc92df176bc2de76b7c90968584865197 | [
"Apache-2.0"
] | 376 | 2021-11-23T13:29:57.000Z | 2022-03-30T07:22:14.000Z | mmfewshot/classification/datasets/tiered_imagenet.py | BIGWangYuDong/mmfewshot | dac097afc92df176bc2de76b7c90968584865197 | [
"Apache-2.0"
] | 51 | 2021-11-23T14:45:08.000Z | 2022-03-30T03:37:15.000Z | mmfewshot/classification/datasets/tiered_imagenet.py | BIGWangYuDong/mmfewshot | dac097afc92df176bc2de76b7c90968584865197 | [
"Apache-2.0"
] | 56 | 2021-11-23T14:02:27.000Z | 2022-03-31T09:01:50.000Z | # Copyright (c) OpenMMLab. All rights reserved.
import os.path as osp
import pickle
import warnings
from typing import Dict, List, Optional, Sequence, Union
import mmcv
import numpy as np
from mmcls.datasets.builder import DATASETS
from typing_extensions import Literal
from .base import BaseFewShotDataset
TRAIN_CLAS... | 54.998534 | 79 | 0.622731 | 3,732 | 37,509 | 6.222133 | 0.376474 | 0.012919 | 0.030231 | 0.034107 | 0.125188 | 0.051591 | 0.022652 | 0.022652 | 0.01335 | 0.007407 | 0 | 0.00027 | 0.209416 | 37,509 | 681 | 80 | 55.079295 | 0.782795 | 0.033912 | 0 | 0.065728 | 0 | 0 | 0.638737 | 0.002716 | 0 | 0 | 0 | 0 | 0.004695 | 1 | 0.00626 | false | 0.020344 | 0.014085 | 0 | 0.032864 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
016d0e0a8899431a78249311fa5b45cb1e49cec2 | 642 | py | Python | archive/management/commands/backload_is.py | pastpages/savemy.news | 39ff49ffd2f63308a847243dccc95b82b69cb06c | [
"MIT"
] | 19 | 2017-11-06T17:06:44.000Z | 2020-10-15T16:59:12.000Z | archive/management/commands/backload_is.py | pastpages/savemy.news | 39ff49ffd2f63308a847243dccc95b82b69cb06c | [
"MIT"
] | 25 | 2017-11-06T17:45:02.000Z | 2021-09-22T17:54:35.000Z | archive/management/commands/backload_is.py | palewire/savemy.news | 39ff49ffd2f63308a847243dccc95b82b69cb06c | [
"MIT"
] | 1 | 2019-03-16T17:43:59.000Z | 2019-03-16T17:43:59.000Z | from django.core.management.base import BaseCommand
import time
import logging
from archive import tasks
from archive.models import Clip
logger = logging.getLogger(__name__)
class Command(BaseCommand):
def handle(self, *args, **options):
clip_list = Clip.objects.all().order_by("?")
no_is = [c for... | 33.789474 | 93 | 0.67134 | 93 | 642 | 4.516129 | 0.55914 | 0.028571 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003906 | 0.202492 | 642 | 18 | 94 | 35.666667 | 0.816406 | 0 | 0 | 0 | 0 | 0 | 0.123053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
016f7bcbcf6e5076ed0a78d853f3274ea0689b95 | 3,414 | py | Python | app/ko.py | embian-inc/Appium-Python-Console | bb15ac441d713a0be4a8e6fee61ca54cf6fc7614 | [
"MIT"
] | 8 | 2017-09-25T05:46:53.000Z | 2022-02-04T14:42:57.000Z | app/ko.py | embian-inc/Appium-Python-Console | bb15ac441d713a0be4a8e6fee61ca54cf6fc7614 | [
"MIT"
] | null | null | null | app/ko.py | embian-inc/Appium-Python-Console | bb15ac441d713a0be4a8e6fee61ca54cf6fc7614 | [
"MIT"
] | 2 | 2018-11-28T19:16:20.000Z | 2022-02-04T14:39:15.000Z | #-*- coding: utf-8 -*-
# Code Interact Banner
APC_BANNER = u"""
************************************************************************************************************
* *
* Appium의 Python Client를 사용하여 테스트 스... | 51.727273 | 118 | 0.426772 | 363 | 3,414 | 3.958678 | 0.501377 | 0.041754 | 0.019485 | 0.030619 | 0.118998 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001432 | 0.38635 | 3,414 | 65 | 119 | 52.523077 | 0.684487 | 0.016403 | 0 | 0.156863 | 0 | 0.058824 | 0.800596 | 0.083159 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0173cd621b9fa8b7478d65288de8598d1f74a94f | 4,363 | py | Python | isic/core/models/collection.py | ImageMarkup/isic | 607b2b103d0d2a67adb61f8ea88f1461c85ec8f3 | [
"Apache-2.0"
] | null | null | null | isic/core/models/collection.py | ImageMarkup/isic | 607b2b103d0d2a67adb61f8ea88f1461c85ec8f3 | [
"Apache-2.0"
] | 18 | 2021-06-10T05:14:34.000Z | 2022-03-22T02:15:59.000Z | isic/core/models/collection.py | ImageMarkup/isic | 607b2b103d0d2a67adb61f8ea88f1461c85ec8f3 | [
"Apache-2.0"
] | null | null | null | from typing import Optional
from django.contrib.auth.models import User
from django.db import models
from django.db.models.aggregates import Count
from django.db.models.query import QuerySet
from django.db.models.query_utils import Q
from django.urls import reverse
from django_extensions.db.models import TimeStampedMo... | 36.358333 | 98 | 0.631905 | 491 | 4,363 | 5.452138 | 0.354379 | 0.033993 | 0.01681 | 0.020172 | 0.172581 | 0.138214 | 0.138214 | 0.138214 | 0.115801 | 0.115801 | 0 | 0.002176 | 0.262663 | 4,363 | 119 | 99 | 36.663866 | 0.829966 | 0.090763 | 0 | 0.192771 | 0 | 0 | 0.147846 | 0.033393 | 0 | 0 | 0 | 0.016807 | 0 | 1 | 0.096386 | false | 0 | 0.120482 | 0.060241 | 0.493976 | 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 |
017d2cb59aedfb7cb560e06f30dfaf2068dcf95b | 3,664 | py | Python | pagapp/admin_panel/forms.py | eugeneandrienko/PyArtistsGallery | b75114955859d45d9dfb5c901213f25a6e09f488 | [
"MIT"
] | null | null | null | pagapp/admin_panel/forms.py | eugeneandrienko/PyArtistsGallery | b75114955859d45d9dfb5c901213f25a6e09f488 | [
"MIT"
] | null | null | null | pagapp/admin_panel/forms.py | eugeneandrienko/PyArtistsGallery | b75114955859d45d9dfb5c901213f25a6e09f488 | [
"MIT"
] | null | null | null | """Set of forms which using in admin panel.
List of forms:
ChangePasswordForm -- providing form for password change.
AddAlbumForm -- providing form for adding new album.
UploadForm -- providing form for uploading new pictures.
CommonSettingsForm -- providing form for changing common settings.
"""
import re
from flas... | 31.86087 | 79 | 0.650382 | 359 | 3,664 | 6.554318 | 0.317549 | 0.023799 | 0.098173 | 0.043349 | 0.065448 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000363 | 0.24809 | 3,664 | 114 | 80 | 32.140351 | 0.853721 | 0.157751 | 0 | 0.160494 | 0 | 0 | 0.188984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024691 | false | 0.222222 | 0.08642 | 0 | 0.345679 | 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 |
017f75656ba2e5a5bfc0221b28e5e28c7b830463 | 4,008 | py | Python | tests/form/test_form_validation.py | warownia1/Slivca | 5491afec63c8cd41d6f1389a5dd0ba9877b888a1 | [
"Apache-2.0"
] | 5 | 2016-09-01T15:30:46.000Z | 2019-07-15T12:26:46.000Z | tests/form/test_form_validation.py | warownia1/Slivca | 5491afec63c8cd41d6f1389a5dd0ba9877b888a1 | [
"Apache-2.0"
] | 75 | 2016-08-31T11:32:49.000Z | 2021-05-12T14:33:17.000Z | tests/form/test_form_validation.py | warownia1/Slivca | 5491afec63c8cd41d6f1389a5dd0ba9877b888a1 | [
"Apache-2.0"
] | 3 | 2017-06-01T10:21:04.000Z | 2020-06-12T10:32:49.000Z | from nose.tools import assert_is_none, assert_equal, assert_list_equal, \
assert_true, assert_false
from werkzeug.datastructures import MultiDict
from slivka.server.forms.fields import *
from slivka.server.forms.form import BaseForm
class TestCleanedValues:
class DummyForm(BaseForm):
field1 = Integer... | 35.469027 | 78 | 0.646956 | 509 | 4,008 | 4.834971 | 0.18664 | 0.065014 | 0.091426 | 0.092645 | 0.389679 | 0.334011 | 0.334011 | 0.320195 | 0.225924 | 0.130435 | 0 | 0.026958 | 0.213323 | 4,008 | 112 | 79 | 35.785714 | 0.753568 | 0 | 0 | 0.103448 | 0 | 0 | 0.069611 | 0 | 0 | 0 | 0 | 0 | 0.275862 | 1 | 0.229885 | false | 0 | 0.045977 | 0.011494 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6d671451f6b6a886f3b7dd77e88f2a7d6a9d455c | 4,454 | py | Python | fn_cloud_foundry/fn_cloud_foundry/components/fn_cloud_foundry_create_app.py | nickpartner-goahead/resilient-community-apps | 097c0dbefddbd221b31149d82af9809420498134 | [
"MIT"
] | 65 | 2017-12-04T13:58:32.000Z | 2022-03-24T18:33:17.000Z | fn_cloud_foundry/fn_cloud_foundry/components/fn_cloud_foundry_create_app.py | nickpartner-goahead/resilient-community-apps | 097c0dbefddbd221b31149d82af9809420498134 | [
"MIT"
] | 48 | 2018-03-02T19:17:14.000Z | 2022-03-09T22:00:38.000Z | fn_cloud_foundry/fn_cloud_foundry/components/fn_cloud_foundry_create_app.py | nickpartner-goahead/resilient-community-apps | 097c0dbefddbd221b31149d82af9809420498134 | [
"MIT"
] | 95 | 2018-01-11T16:23:39.000Z | 2022-03-21T11:34:29.000Z | # -*- coding: utf-8 -*-
# pragma pylint: disable=unused-argument, no-self-use
"""Function implementation"""
import json
import logging
from resilient_circuits import ResilientComponent, function, handler, StatusMessage, FunctionResult, FunctionError
from fn_cloud_foundry.util.cloud_foundry_api import IBMCloudFoundryAP... | 45.917526 | 121 | 0.666367 | 517 | 4,454 | 5.468085 | 0.272727 | 0.072161 | 0.069331 | 0.032543 | 0.271666 | 0.181464 | 0.136894 | 0.091617 | 0.091617 | 0.091617 | 0 | 0.000298 | 0.245397 | 4,454 | 96 | 122 | 46.395833 | 0.840821 | 0.118321 | 0 | 0.084507 | 0 | 0 | 0.17925 | 0.072933 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056338 | false | 0.056338 | 0.070423 | 0 | 0.140845 | 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 |
6d6d9bc2e8ef397124fe3ecbd4cdecac78b44386 | 4,746 | py | Python | daily_mail_and_nbc.py | V5NEXT/ScrappingWebPages | e193aacc3d267360173fe8b862e6479500ee64f6 | [
"MIT"
] | null | null | null | daily_mail_and_nbc.py | V5NEXT/ScrappingWebPages | e193aacc3d267360173fe8b862e6479500ee64f6 | [
"MIT"
] | null | null | null | daily_mail_and_nbc.py | V5NEXT/ScrappingWebPages | e193aacc3d267360173fe8b862e6479500ee64f6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""daily_mail and NBC.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1mt9Lo5KApXqCdNN_57OCej3pT9_vVBRP
"""
#importing requests
import requests
#importing BeautifulSoup for scrapping templates
from bs4 import BeautifulSou... | 25.379679 | 77 | 0.709018 | 669 | 4,746 | 4.895366 | 0.248132 | 0.031756 | 0.054962 | 0.065954 | 0.512366 | 0.465038 | 0.426565 | 0.371603 | 0.343511 | 0.343511 | 0 | 0.006428 | 0.147703 | 4,746 | 187 | 78 | 25.379679 | 0.803214 | 0.147493 | 0 | 0.433628 | 1 | 0 | 0.240239 | 0.034817 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115044 | 0 | 0.115044 | 0.00885 | 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 |
6d705fb032634cb7f7ff0dbf9ba37857ef543803 | 5,545 | py | Python | util/Instruction.py | F-Stuckmann/PATARA | 26b5c821e356e33e949817a1475ef38e75880a03 | [
"MIT"
] | 2 | 2021-11-04T06:48:45.000Z | 2022-01-19T16:25:20.000Z | util/Instruction.py | F-Stuckmann/PATARA | 26b5c821e356e33e949817a1475ef38e75880a03 | [
"MIT"
] | 1 | 2021-05-05T09:05:22.000Z | 2021-05-05T09:05:22.000Z | util/Instruction.py | F-Stuckmann/PATARA | 26b5c821e356e33e949817a1475ef38e75880a03 | [
"MIT"
] | 2 | 2021-05-05T08:42:57.000Z | 2021-11-04T06:48:49.000Z | import copy
import warnings
from Constants import TARGET_REGISTER, RAND_VALUE, FOCUS_REGISTER, ADDRESS, OPERAND_TYPE, OPERANDS, ISSUE_SLOT
from util.Processor import Processor
class Instruction:
def __init__(self, assembly: str, mutable=True):
# set default enabled features
self.isRandValueRando... | 35.094937 | 197 | 0.672498 | 483 | 5,545 | 7.554865 | 0.227743 | 0.072897 | 0.019731 | 0.021924 | 0.155111 | 0.114552 | 0.114552 | 0.057002 | 0.057002 | 0.057002 | 0 | 0.002397 | 0.24761 | 5,545 | 157 | 198 | 35.318471 | 0.872244 | 0.096123 | 0 | 0.083333 | 0 | 0 | 0.000403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.041667 | 0.052083 | 0.395833 | 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 |
6d7e4c40024f3a52dc2fa5cc72c19c80ecb37fee | 4,484 | py | Python | plotting-tools/plot_samples_multiple.py | larsgeb/hmc-documentation | e302375a870359174254cc4e6c0515ef255dea3e | [
"BSD-3-Clause"
] | null | null | null | plotting-tools/plot_samples_multiple.py | larsgeb/hmc-documentation | e302375a870359174254cc4e6c0515ef255dea3e | [
"BSD-3-Clause"
] | null | null | null | plotting-tools/plot_samples_multiple.py | larsgeb/hmc-documentation | e302375a870359174254cc4e6c0515ef255dea3e | [
"BSD-3-Clause"
] | null | null | null | import glob
import numpy as np
import random as random
import matplotlib.pylab as pylab
import matplotlib.pyplot as plt
import locale
import decimal
def drange(x, y, jump):
while x < y:
yield float(x)
x = x + float(decimal.Decimal(jump))
# ========================================================... | 35.03125 | 117 | 0.587199 | 604 | 4,484 | 4.288079 | 0.390728 | 0.027799 | 0.046332 | 0.021622 | 0.130502 | 0.083398 | 0.071815 | 0.043243 | 0.043243 | 0.043243 | 0 | 0.028157 | 0.200045 | 4,484 | 127 | 118 | 35.307087 | 0.693895 | 0.305308 | 0 | 0 | 0 | 0 | 0.096628 | 0.0107 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085366 | null | null | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6d7e82096768612ef6bdc39f074b4c354bf17295 | 228 | py | Python | guardaPaisesLineas.py | juaseso/sinf_desarrollos | 897e09aa959d2309c11453024d9873028bd52101 | [
"Apache-2.0"
] | null | null | null | guardaPaisesLineas.py | juaseso/sinf_desarrollos | 897e09aa959d2309c11453024d9873028bd52101 | [
"Apache-2.0"
] | null | null | null | guardaPaisesLineas.py | juaseso/sinf_desarrollos | 897e09aa959d2309c11453024d9873028bd52101 | [
"Apache-2.0"
] | null | null | null | import shelve
shelfFile = shelve.open('mydata')
file = open('allCountries.txt')
print('Dividiendo el fichero en un array de líneas')
lineas = file.readlines()
print('OK')
shelfFile['arraylineas'] = lineas
shelfFile.close()
| 17.538462 | 52 | 0.732456 | 29 | 228 | 5.758621 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127193 | 228 | 12 | 53 | 19 | 0.839196 | 0 | 0 | 0 | 0 | 0 | 0.342105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6d86c7604e83b81de4abc9d204ea3c2ee935247d | 371 | py | Python | #Ejercicio 2.py | carlospuigserver/Recursividad | 8706b645e7d1607556b46f149ecf79cc175f9337 | [
"Apache-2.0"
] | null | null | null | #Ejercicio 2.py | carlospuigserver/Recursividad | 8706b645e7d1607556b46f149ecf79cc175f9337 | [
"Apache-2.0"
] | null | null | null | #Ejercicio 2.py | carlospuigserver/Recursividad | 8706b645e7d1607556b46f149ecf79cc175f9337 | [
"Apache-2.0"
] | null | null | null | #Ejercicio 2
palabra=input ("Escribe una palabra y vamos a analizar si es polindroma o no: ")
p=len(palabra)
capicua=""
while p>0:
p=p-1
capicua=capicua+palabra[p] #Concateno las letras una por una y las guardo
if palabra ==capicua:
print("La palabra escogida es polindroma")
if palabra!= capicua:
... | 28.538462 | 81 | 0.700809 | 58 | 371 | 4.482759 | 0.517241 | 0.138462 | 0.123077 | 0.161538 | 0.292308 | 0.292308 | 0.292308 | 0 | 0 | 0 | 0 | 0.010135 | 0.202156 | 371 | 13 | 82 | 28.538462 | 0.868243 | 0.150943 | 0 | 0 | 0 | 0 | 0.420382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
6d949ee96c88d43897365fa7b83156abcb3721b7 | 8,569 | py | Python | sdk/python/pulumi_aws/appautoscaling/policy.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/appautoscaling/policy.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/appautoscaling/policy.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import pulumi
import pulumi.runtime
class Policy(pulumi.CustomResource):
"""
Provides an Application AutoScaling Policy resour... | 54.234177 | 374 | 0.709068 | 907 | 8,569 | 6.351709 | 0.169791 | 0.045131 | 0.057282 | 0.067697 | 0.352196 | 0.216282 | 0.142857 | 0.112133 | 0.112133 | 0.112133 | 0 | 0.000149 | 0.219045 | 8,569 | 157 | 375 | 54.579618 | 0.860729 | 0.035477 | 0 | 0 | 1 | 0 | 0.249884 | 0.076876 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0 | 0.019231 | 0 | 0.048077 | 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 |
6d9b846453bf4d93b96ea5045041b61ccea9af6c | 3,828 | py | Python | simple_downloader.py | ZubairLK/ka-static | dbb56cb67ae49e12cd96be17f40f6328dfc4c2d0 | [
"MIT"
] | 1 | 2018-11-21T06:44:52.000Z | 2018-11-21T06:44:52.000Z | simple_downloader.py | ZubairLK/ka-static | dbb56cb67ae49e12cd96be17f40f6328dfc4c2d0 | [
"MIT"
] | null | null | null | simple_downloader.py | ZubairLK/ka-static | dbb56cb67ae49e12cd96be17f40f6328dfc4c2d0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This script basically downloads topictree from khan academy
# Then parses it and creates a temporary folder with files.
# Kept simple on purpose to just see how parsing the topic tree json works in python
import json
import pprint
import inspect
import os
import re
import... | 25.350993 | 93 | 0.686259 | 565 | 3,828 | 4.527434 | 0.283186 | 0.04222 | 0.037529 | 0.018765 | 0.21853 | 0.174746 | 0.154027 | 0.131353 | 0.066458 | 0.037529 | 0 | 0.009548 | 0.179206 | 3,828 | 150 | 94 | 25.52 | 0.804583 | 0.272205 | 0 | 0.16092 | 0 | 0 | 0.201235 | 0.023611 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068966 | 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 |
6d9c037ebf9af70103bf930fa4932f8acd3fcfa5 | 1,998 | py | Python | jython/sixpeaks.py | theturpinator/randomized-optimization-ABAGAIL | 350a3328fd5c72a5773fc002b0ca0f9427794628 | [
"BSD-3-Clause"
] | null | null | null | jython/sixpeaks.py | theturpinator/randomized-optimization-ABAGAIL | 350a3328fd5c72a5773fc002b0ca0f9427794628 | [
"BSD-3-Clause"
] | null | null | null | jython/sixpeaks.py | theturpinator/randomized-optimization-ABAGAIL | 350a3328fd5c72a5773fc002b0ca0f9427794628 | [
"BSD-3-Clause"
] | null | null | null | import sys
import os
import time
import opt.example.SixPeaksEvaluationFunction as SixPeaksEvaluationFunction
import dist.DiscreteUniformDistribution as DiscreteUniformDistribution
import opt.DiscreteChangeOneNeighbor as DiscreteChangeOneNeighbor
import opt.ga.DiscreteChangeOneMutation as DiscreteChangeOneMutation
impo... | 36.327273 | 98 | 0.826326 | 206 | 1,998 | 8.014563 | 0.291262 | 0.065415 | 0.033313 | 0.020594 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020891 | 0.08959 | 1,998 | 55 | 99 | 36.327273 | 0.886751 | 0 | 0 | 0.083333 | 0 | 0 | 0.010505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.395833 | 0 | 0.395833 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6d9e0b4359b3e1bc96643532f85f9bc943b74f27 | 3,751 | py | Python | granite/generator/md_wrapper.py | codacy-badger/granite | c9753ddb261e8ee6648f6fd405b21bbb86329277 | [
"MIT"
] | null | null | null | granite/generator/md_wrapper.py | codacy-badger/granite | c9753ddb261e8ee6648f6fd405b21bbb86329277 | [
"MIT"
] | null | null | null | granite/generator/md_wrapper.py | codacy-badger/granite | c9753ddb261e8ee6648f6fd405b21bbb86329277 | [
"MIT"
] | null | null | null | # External includes
# OS module provides functions for interacting with the operating system
import os
import markdown_generator as mg
from typing import Optional
# Project includes
from granite.generator.output_file_wrapper import OutputFileWrapper
class MarkDownFileWrapper(OutputFileWrapper):
"""
...
""... | 25.868966 | 102 | 0.590243 | 441 | 3,751 | 4.879819 | 0.244898 | 0.051115 | 0.042286 | 0.046468 | 0.280669 | 0.150093 | 0.134758 | 0.105019 | 0.105019 | 0.065056 | 0 | 0.000393 | 0.322047 | 3,751 | 145 | 103 | 25.868966 | 0.845851 | 0.354306 | 0 | 0.214286 | 0 | 0 | 0.031972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232143 | false | 0 | 0.071429 | 0 | 0.321429 | 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 |
6da6adfc22b6b79b653ca53e97ef50b518fae2ba | 20,101 | py | Python | tools/scripts/sdoget.py | helio-hfc/SDOSS | 3d00d91473fef26679901045d9852b2337dba864 | [
"MIT"
] | null | null | null | tools/scripts/sdoget.py | helio-hfc/SDOSS | 3d00d91473fef26679901045d9852b2337dba864 | [
"MIT"
] | null | null | null | tools/scripts/sdoget.py | helio-hfc/SDOSS | 3d00d91473fef26679901045d9852b2337dba864 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
""" Routines to access a netDRMS system via HTTP and CGI and to fetch
and read data.
These can be used on any Internet connected machine, and fetch data
from a netDRMS site. You must have Python and optionally pyfits to
read the FITS files.
The default is to use the ROB netDRMS server, but note... | 37.642322 | 128 | 0.577931 | 2,711 | 20,101 | 4.217632 | 0.225747 | 0.015743 | 0.004723 | 0.003149 | 0.076264 | 0.066643 | 0.050114 | 0.04268 | 0.038307 | 0.038307 | 0 | 0.009753 | 0.321576 | 20,101 | 533 | 129 | 37.712946 | 0.828701 | 0.081787 | 0 | 0.186916 | 0 | 0.009346 | 0.140708 | 0.03066 | 0.003115 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.034268 | null | null | 0.024922 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6daea89f611dc6e654cc934cad01ad97775d87f4 | 4,248 | py | Python | username_books_score.py | ru4488/Book-bot | 347e3a3ebcf251d3040593c05b0729432bdf7abb | [
"MIT"
] | null | null | null | username_books_score.py | ru4488/Book-bot | 347e3a3ebcf251d3040593c05b0729432bdf7abb | [
"MIT"
] | null | null | null | username_books_score.py | ru4488/Book-bot | 347e3a3ebcf251d3040593c05b0729432bdf7abb | [
"MIT"
] | 1 | 2021-01-12T16:52:50.000Z | 2021-01-12T16:52:50.000Z | import requests
import random
import redis
import time
import json
from fake_useragent import UserAgent
from bs4 import BeautifulSoup
from ratelimit import *
from fake_useragent import UserAgent
from bs4 import BeautifulSoup
from ratelimit import *
def last_page(pages):
soup = BeautifulSoup(pages, 'html.pa... | 35.697479 | 93 | 0.653249 | 588 | 4,248 | 4.37415 | 0.197279 | 0.102644 | 0.097978 | 0.052488 | 0.551322 | 0.478616 | 0.443235 | 0.404355 | 0.35381 | 0.329705 | 0 | 0.008621 | 0.235405 | 4,248 | 119 | 94 | 35.697479 | 0.783251 | 0.05226 | 0 | 0.377778 | 0 | 0 | 0.108706 | 0.007711 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.122222 | null | null | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6db173eb40cc32b3b71989c0a8e0ddcdd055a89b | 11,516 | py | Python | model.py | kdz/pystemm | c98dd548e3db60013fb4f26c2f1522a29f683d71 | [
"MIT"
] | null | null | null | model.py | kdz/pystemm | c98dd548e3db60013fb4f26c2f1522a29f683d71 | [
"MIT"
] | 1 | 2015-10-17T16:35:09.000Z | 2015-10-17T16:35:09.000Z | model.py | kdz/pystemm | c98dd548e3db60013fb4f26c2f1522a29f683d71 | [
"MIT"
] | null | null | null | ## The Model class is the main class used to build actual PySTEMM models
## It traverses concept types and instances, analyzes, and generates visualizations
## It's main public methods are addClasses, addInstances, and showXYZ
import appscript
K = appscript.k
import traits.api as TR
from traits.api import Int, String... | 41.574007 | 119 | 0.600903 | 1,386 | 11,516 | 4.850649 | 0.253247 | 0.032129 | 0.016659 | 0.020527 | 0.154842 | 0.105161 | 0.097724 | 0.080173 | 0.068273 | 0.051316 | 0 | 0.002596 | 0.297586 | 11,516 | 276 | 120 | 41.724638 | 0.828533 | 0.180879 | 0 | 0.131313 | 1 | 0 | 0.027644 | 0.003202 | 0 | 0 | 0 | 0.003623 | 0 | 1 | 0.111111 | false | 0.025253 | 0.040404 | 0.015152 | 0.212121 | 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 |
6db1a9262a34cda1cac0db347dd018db050c1c72 | 337 | py | Python | theory/8th_sprint/telegram.py | abi83/YaPractice | 1c3a5670ee2f872d4f872623a392755318b893b5 | [
"MIT"
] | 3 | 2020-11-18T05:16:30.000Z | 2021-03-08T06:36:01.000Z | theory/8th_sprint/telegram.py | abi83/YaPractice | 1c3a5670ee2f872d4f872623a392755318b893b5 | [
"MIT"
] | null | null | null | theory/8th_sprint/telegram.py | abi83/YaPractice | 1c3a5670ee2f872d4f872623a392755318b893b5 | [
"MIT"
] | 1 | 2021-01-20T12:41:48.000Z | 2021-01-20T12:41:48.000Z | import telegram
def send_message(message, bot):
return bot.send_message(chat_id=CHAT_ID, text=message)
CHAT_ID = '32989550' # добавить chat_id
TELEGRAM_TOKEN = '1440023732:AAHl6SURCOrJQfJ4X_Xv56FG-MOUuzNa_oo' # добавить токен
bot = telegram.Bot(token=TELEGRAM_TOKEN) # проинициализируйте бота здесь
send_messa... | 28.083333 | 83 | 0.789318 | 45 | 337 | 5.666667 | 0.511111 | 0.094118 | 0.101961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.118694 | 337 | 11 | 84 | 30.636364 | 0.784512 | 0.181009 | 0 | 0 | 0 | 0 | 0.216912 | 0.169118 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 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 | 0 | 1 | 0 | 0 | 0 | 1 |
6db1d3446e4ced079ebf34b571f9d9b7550052f6 | 9,467 | py | Python | virfac/get_data.py | NCBI-Hackathons/Virulence_Factor_Characterization | d42e8a24c0ba3d19b221753c49453765dfb35a34 | [
"MIT"
] | 6 | 2019-08-14T08:34:42.000Z | 2021-06-02T16:58:52.000Z | virfac/get_data.py | NCBI-Hackathons/Virulence_Factor_Characterization | d42e8a24c0ba3d19b221753c49453765dfb35a34 | [
"MIT"
] | 1 | 2019-08-13T14:05:50.000Z | 2019-08-13T14:05:50.000Z | virfac/get_data.py | NCBI-Hackathons/Virulence_Factor_Characterization | d42e8a24c0ba3d19b221753c49453765dfb35a34 | [
"MIT"
] | 5 | 2019-08-13T13:47:11.000Z | 2021-11-16T00:25:41.000Z | import os
import requests
import string
import xml.etree.ElementTree as xml
from os.path import join as j
from time import sleep
from virfac import data_dir
bad_bugs = """Acinetobacter baumannii ACICU
Aeromonas hydrophila subsp. hydrophila ATCC 7966
Aeromonas salmonicida subsp. salmonicida A449
Aeromonas hydrophila... | 31.244224 | 138 | 0.837435 | 1,213 | 9,467 | 6.441055 | 0.460841 | 0.095994 | 0.02995 | 0.015871 | 0.092538 | 0.077819 | 0.068604 | 0.055292 | 0.017407 | 0.017407 | 0 | 0.087335 | 0.113447 | 9,467 | 303 | 139 | 31.244224 | 0.84356 | 0.008134 | 0 | 0.083045 | 0 | 0 | 0.841696 | 0.079365 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00346 | false | 0 | 0.024221 | 0 | 0.027682 | 0.013841 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6db7bece3d9aa4ddb4c7a259791cdb3ff2503c32 | 235 | py | Python | algorithms/python/344.py | scream7/leetcode | 1fe0f5df3ca0019a4d99979cc663993d2492272d | [
"Apache-2.0"
] | null | null | null | algorithms/python/344.py | scream7/leetcode | 1fe0f5df3ca0019a4d99979cc663993d2492272d | [
"Apache-2.0"
] | null | null | null | algorithms/python/344.py | scream7/leetcode | 1fe0f5df3ca0019a4d99979cc663993d2492272d | [
"Apache-2.0"
] | null | null | null | class Solution(object):
def reverseString(self, s):
"""
:type s: str
:rtype: str
"""
res = []
for i in range(len(s)-1,-1,-1):
res.append(s[i])
return ''.join(res)
| 21.363636 | 39 | 0.429787 | 29 | 235 | 3.482759 | 0.689655 | 0.039604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.4 | 235 | 10 | 40 | 23.5 | 0.695035 | 0.102128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6dbbf502d7630e0dc5c8b845b56c38ed3a17076b | 3,647 | py | Python | dlrm/nn/mlps.py | henryqin1997/Adalars | 2440b3b6e177a9b38011eff3ec25f3b6052acfd0 | [
"Apache-2.0"
] | 1 | 2021-07-30T06:20:40.000Z | 2021-07-30T06:20:40.000Z | dlrm/nn/mlps.py | henryqin1997/Adalars | 2440b3b6e177a9b38011eff3ec25f3b6052acfd0 | [
"Apache-2.0"
] | null | null | null | dlrm/nn/mlps.py | henryqin1997/Adalars | 2440b3b6e177a9b38011eff3ec25f3b6052acfd0 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021 NVIDIA CORPORATION. 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... | 30.647059 | 115 | 0.649849 | 456 | 3,647 | 5.065789 | 0.317982 | 0.047619 | 0.024242 | 0.029437 | 0.34632 | 0.277922 | 0.277922 | 0.277922 | 0.277922 | 0.224242 | 0 | 0.00475 | 0.24952 | 3,647 | 118 | 116 | 30.90678 | 0.83924 | 0.297505 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232143 | false | 0 | 0.089286 | 0.071429 | 0.482143 | 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 |
6dbc4d2ccf1e239fd49d77572a46154a3ac6e343 | 1,522 | py | Python | query_stack.py | mccormickmichael/laurel | 6222d8d2dea6fa18cfe3b031434154003e8a125b | [
"Unlicense"
] | 1 | 2018-08-20T13:49:46.000Z | 2018-08-20T13:49:46.000Z | query_stack.py | mccormickmichael/laurel | 6222d8d2dea6fa18cfe3b031434154003e8a125b | [
"Unlicense"
] | null | null | null | query_stack.py | mccormickmichael/laurel | 6222d8d2dea6fa18cfe3b031434154003e8a125b | [
"Unlicense"
] | null | null | null | # Query a CloudFormation stack.
# Returns:
# - Build Parameters - the parameters sent to the TemplateBuilder when generating the template
# - Stack Parameters - the parameters sent to CF during stack create or update time.
import argparse
import arguments
import logconfig
import session
from scaffold.cf import stack
... | 29.843137 | 110 | 0.660972 | 187 | 1,522 | 5.197861 | 0.379679 | 0.046296 | 0.041152 | 0.05144 | 0.1893 | 0.12963 | 0.067901 | 0.067901 | 0.067901 | 0 | 0 | 0.004292 | 0.23456 | 1,522 | 50 | 111 | 30.44 | 0.830043 | 0.164915 | 0 | 0.171429 | 0 | 0 | 0.143083 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.057143 | false | 0 | 0.142857 | 0 | 0.257143 | 0.171429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
6dbf40a1430ad63c8114578643af78b7bda55978 | 1,205 | py | Python | nacelle/core/utils/encoder.py | paddycarey/nacelle | a41956be87550de096bb5d6775d4f9df88e85959 | [
"MIT"
] | null | null | null | nacelle/core/utils/encoder.py | paddycarey/nacelle | a41956be87550de096bb5d6775d4f9df88e85959 | [
"MIT"
] | 4 | 2017-09-16T23:44:20.000Z | 2017-09-16T23:49:13.000Z | nacelle/core/utils/encoder.py | paddycarey/nacelle | a41956be87550de096bb5d6775d4f9df88e85959 | [
"MIT"
] | null | null | null | # stdlib imports
import datetime
import json
# third-party imports
from google.appengine.api import datastore_types
from google.appengine.ext import ndb
class ModelEncoder(json.JSONEncoder):
"""
Custom JSON encoder allowing easy encoding
of appengine ndb entities/queries to JSON.
"""
def defaul... | 26.777778 | 78 | 0.635685 | 147 | 1,205 | 5.183673 | 0.52381 | 0.094488 | 0.11811 | 0.094488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004571 | 0.273859 | 1,205 | 44 | 79 | 27.386364 | 0.866286 | 0.282158 | 0 | 0 | 0 | 0 | 0.001195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.210526 | 0 | 0.684211 | 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 |
6dd538c7d9feacc43eed07ae4d6cca01f005def4 | 497 | py | Python | getmac.py | Risca/biffboot | 63df31c91fcae7a00b5245e357acee89bb3be46b | [
"Unlicense"
] | null | null | null | getmac.py | Risca/biffboot | 63df31c91fcae7a00b5245e357acee89bb3be46b | [
"Unlicense"
] | 1 | 2021-11-22T22:57:18.000Z | 2021-12-14T12:39:21.000Z | getmac.py | Risca/biffboot | 63df31c91fcae7a00b5245e357acee89bb3be46b | [
"Unlicense"
] | 1 | 2021-11-28T00:24:51.000Z | 2021-11-28T00:24:51.000Z | #!/usr/bin/env python
import pod
import sys, binascii
from StringIO import StringIO
def ConvertMac(dotted):
if dotted.find(":") == -1:
str = binascii.unhexlify(dotted)
else:
str = "".join([chr(eval("0x"+i)) for i in dotted.split(":")])
if len(str) != 6:
raise ValueError("Not a MAC address")
ret... | 15.53125 | 65 | 0.619718 | 74 | 497 | 4.054054 | 0.662162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010178 | 0.209256 | 497 | 31 | 66 | 16.032258 | 0.753181 | 0.040241 | 0 | 0 | 0 | 0 | 0.149789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6dd7b700e194a99bff88d3f26dd3938d3a146ccd | 1,244 | py | Python | python-idioms/npi-tuple.py | sdlab-naist/Teddy-plus | 367aadbb30b80e1680156b88017f9bb2d78c539a | [
"0BSD"
] | null | null | null | python-idioms/npi-tuple.py | sdlab-naist/Teddy-plus | 367aadbb30b80e1680156b88017f9bb2d78c539a | [
"0BSD"
] | 65 | 2020-01-30T10:58:48.000Z | 2020-04-30T03:37:58.000Z | python-idioms/npi-tuple.py | MUICT-SERU/SP2019-TEDDY | 367aadbb30b80e1680156b88017f9bb2d78c539a | [
"ISC"
] | 1 | 2021-01-15T08:18:23.000Z | 2021-01-15T08:18:23.000Z | def n48():
list_from_comma_separated_value_file = ['dog', 'Fido', 10]
animal = list_from_comma_separated_value_file[0]
name = list_from_comma_separated_value_file[1]
age = list_from_comma_separated_value_file[2]
def n49():
catherine_info = ['Catherine', 1960, 'Australian', 'F', 165, 50, 'Trainee']
... | 27.043478 | 79 | 0.59164 | 179 | 1,244 | 3.893855 | 0.368715 | 0.149211 | 0.074605 | 0.126255 | 0.177905 | 0.177905 | 0 | 0 | 0 | 0 | 0 | 0.0642 | 0.261254 | 1,244 | 46 | 80 | 27.043478 | 0.694233 | 0 | 0 | 0 | 0 | 0 | 0.04257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6dda55a6123bae029d35e1437483b7eca538eb7f | 1,149 | py | Python | sr/robot/vision.py | ghalliday/sr-turtle | e2564105df02659bce15bacddda60395b05aba48 | [
"MIT"
] | 2 | 2019-07-22T19:25:11.000Z | 2019-08-31T08:55:29.000Z | sr/robot/vision.py | ghalliday/sr-turtle | e2564105df02659bce15bacddda60395b05aba48 | [
"MIT"
] | 1 | 2015-07-29T13:17:12.000Z | 2015-07-29T13:17:12.000Z | sr/robot/vision.py | ghalliday/sr-turtle | e2564105df02659bce15bacddda60395b05aba48 | [
"MIT"
] | 2 | 2015-11-07T22:50:08.000Z | 2019-04-03T07:28:59.000Z | from collections import namedtuple
# From pyenv.git/pylib/sr/vision.py
MARKER_ARENA, MARKER_ROBOT, MARKER_PEDESTAL, MARKER_TOKEN = range(4)
marker_offsets = {
MARKER_ARENA: 0,
MARKER_ROBOT: 28,
MARKER_PEDESTAL: 32,
MARKER_TOKEN: 41
}
marker_sizes = {
MARKER_ARENA: 0.25 * (10.0/12),
MARKER_ROB... | 28.02439 | 71 | 0.664056 | 149 | 1,149 | 4.899329 | 0.395973 | 0.082192 | 0.027397 | 0.045205 | 0.019178 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041295 | 0.220191 | 1,149 | 40 | 72 | 28.725 | 0.773438 | 0.088773 | 0 | 0 | 0 | 0 | 0.097115 | 0 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0.074074 | false | 0 | 0.037037 | 0.037037 | 0.185185 | 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 |
6ddd4f533b3ccfe2c16ca3fdc8f7a56cbdfea95c | 487 | py | Python | mediawiki_dump/utils.py | e1mo/mediawiki-dump | eefc3668b01f105b8740d370f012c14c19084f89 | [
"MIT"
] | null | null | null | mediawiki_dump/utils.py | e1mo/mediawiki-dump | eefc3668b01f105b8740d370f012c14c19084f89 | [
"MIT"
] | null | null | null | mediawiki_dump/utils.py | e1mo/mediawiki-dump | eefc3668b01f105b8740d370f012c14c19084f89 | [
"MIT"
] | null | null | null | """
Utility functions
"""
from datetime import datetime, timezone
def parse_date_string(date: str) -> datetime:
"""Converts date as string (e.g. "2004-05-25T02:19:28Z") to UNIX timestamp (uses UTC, always)
"""
# https://docs.python.org/3.6/library/datetime.html#strftime-strptime-behavior
# http://strf... | 30.4375 | 97 | 0.683778 | 69 | 487 | 4.797101 | 0.724638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03912 | 0.160164 | 487 | 15 | 98 | 32.466667 | 0.770171 | 0.517454 | 0 | 0 | 0 | 0 | 0.082569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6de3836c6240f68aeaddf3b97377e5d7d13a94ae | 798 | py | Python | setup.py | rako233/rako-pyads | b218d7ac250a396c9e054586e377c5fb65400b2d | [
"MIT"
] | 1 | 2020-05-12T19:15:47.000Z | 2020-05-12T19:15:47.000Z | setup.py | rako233/rako-pyads | b218d7ac250a396c9e054586e377c5fb65400b2d | [
"MIT"
] | null | null | null | setup.py | rako233/rako-pyads | b218d7ac250a396c9e054586e377c5fb65400b2d | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
exec(open('counsyl_pyads/version.py').read())
setup(
name='counsyl-pyads',
version=__version__,
packages=find_packages(),
scripts=['bin/twincat_plc_info.py'],
include_package_data=True,
zip_safe=False,
author='Counsyl Inc.',
author_email='ope... | 33.25 | 82 | 0.676692 | 87 | 798 | 6.057471 | 0.735632 | 0.068311 | 0.072106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001548 | 0.190476 | 798 | 23 | 83 | 34.695652 | 0.814241 | 0 | 0 | 0 | 0 | 0 | 0.5401 | 0.114035 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.047619 | 0 | 0.047619 | 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 |
6de68b1de276f74f20e4a6c6d49b19640afb122b | 449 | py | Python | tests/test_parallel.py | jimmysong/fabric | 239b786d67aa06c3684e7ebda3d2f5ba9ebc2379 | [
"BSD-2-Clause"
] | 1 | 2019-02-10T11:42:28.000Z | 2019-02-10T11:42:28.000Z | tests/test_parallel.py | fitoria/fabric | 239b786d67aa06c3684e7ebda3d2f5ba9ebc2379 | [
"BSD-2-Clause"
] | null | null | null | tests/test_parallel.py | fitoria/fabric | 239b786d67aa06c3684e7ebda3d2f5ba9ebc2379 | [
"BSD-2-Clause"
] | null | null | null | from __future__ import with_statement
from fabric.api import run, parallel, env, hide
from utils import FabricTest, eq_
from server import server, RESPONSES
class TestParallel(FabricTest):
@server()
@parallel
def test_parallel(self):
"""
Want to do a simple call and respond
"""
... | 21.380952 | 47 | 0.632517 | 55 | 449 | 5 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006173 | 0.278396 | 449 | 20 | 48 | 22.45 | 0.842593 | 0.080178 | 0 | 0 | 0 | 0 | 0.051414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 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 |
6df445e6eba33cbdb674cd7df376cded0036c3d7 | 1,071 | py | Python | scripts/generate_example.py | binary-is/alcoholnow | ed1f1cd584db3f47db1b24c0612723d9aed6bdae | [
"MIT"
] | 4 | 2020-08-24T08:56:24.000Z | 2021-09-17T01:29:47.000Z | scripts/generate_example.py | binary-is/alcoholnow | ed1f1cd584db3f47db1b24c0612723d9aed6bdae | [
"MIT"
] | 1 | 2021-07-22T22:43:13.000Z | 2021-07-22T22:43:13.000Z | scripts/generate_example.py | binary-is/alcoholnow | ed1f1cd584db3f47db1b24c0612723d9aed6bdae | [
"MIT"
] | 2 | 2021-07-22T16:07:14.000Z | 2021-08-03T15:03:04.000Z | #!/usr/bin/env python3
# Generates a FILENAME, named after today (i.e. "2021-01-05.json" with the
# prettified JSON output of the remote store data.
#
# Should be run from the project root.
import os
import requests
import json
from datetime import datetime
DEST_DIR = 'example-data'
if not os.path.exists(DEST_DIR):
... | 32.454545 | 91 | 0.706816 | 163 | 1,071 | 4.601227 | 0.638037 | 0.028 | 0.048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013757 | 0.117647 | 1,071 | 32 | 92 | 33.46875 | 0.779894 | 0.168067 | 0 | 0.142857 | 1 | 0.047619 | 0.340858 | 0.031603 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.190476 | 0 | 0.190476 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6dfb13f191942d85c22d5227b56bcd81bec7c152 | 1,217 | py | Python | pyslam/residuals/pose_to_pose_orientation_residual.py | utiasSTARS/pyslam | 5c0de9eaed4ebc7687b6d43079481c9a9336145b | [
"MIT"
] | 70 | 2018-03-13T21:31:21.000Z | 2022-03-31T16:12:29.000Z | pyslam/residuals/pose_to_pose_orientation_residual.py | jangsoopark/pyslam | 5c0de9eaed4ebc7687b6d43079481c9a9336145b | [
"MIT"
] | 1 | 2021-07-13T08:08:17.000Z | 2021-07-15T01:52:23.000Z | pyslam/residuals/pose_to_pose_orientation_residual.py | jangsoopark/pyslam | 5c0de9eaed4ebc7687b6d43079481c9a9336145b | [
"MIT"
] | 12 | 2018-07-03T05:42:23.000Z | 2021-09-23T13:52:23.000Z | import numpy as np
class PoseToPoseOrientationResidual:
"""Binary pose-to-pose residual given relative rotation mesurement in SO3."""
def __init__(self, C_2_1_obs, stiffness):
self.C_2_1_obs = C_2_1_obs
self.stiffness = stiffness
self.obstype = type(C_2_1_obs)
def evaluate(self, ... | 31.205128 | 94 | 0.545604 | 164 | 1,217 | 3.786585 | 0.341463 | 0.038647 | 0.024155 | 0.048309 | 0.115942 | 0.067633 | 0.067633 | 0.067633 | 0.067633 | 0.067633 | 0 | 0.05402 | 0.345933 | 1,217 | 38 | 95 | 32.026316 | 0.726131 | 0.095316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.076923 | false | 0 | 0.038462 | 0 | 0.230769 | 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 |
6dfc7d595062f2e5ca6ec0904ae26af279d640f3 | 6,109 | py | Python | pypy/interpreter/test/test_raise.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | 1 | 2019-05-27T00:58:46.000Z | 2019-05-27T00:58:46.000Z | pypy/interpreter/test/test_raise.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | null | null | null | pypy/interpreter/test/test_raise.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | null | null | null | import py.test
class AppTestRaise:
def test_arg_as_string(self):
def f():
raise "test"
import warnings
warnings.simplefilter('error', DeprecationWarning)
try:
raises(DeprecationWarning, f)
finally:
warnings.simplefilter('default', Depreca... | 24.732794 | 68 | 0.460796 | 609 | 6,109 | 4.497537 | 0.197044 | 0.078861 | 0.029208 | 0.052574 | 0.323111 | 0.299014 | 0.246805 | 0.222344 | 0.13326 | 0.13326 | 0 | 0.018798 | 0.468817 | 6,109 | 246 | 69 | 24.833333 | 0.82527 | 0.026191 | 0 | 0.588785 | 0 | 0 | 0.266992 | 0.004374 | 0 | 0 | 0 | 0 | 0.158879 | 0 | null | null | 0.03271 | 0.037383 | 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 |
6dff1c5e196b0bd798627435c23e2a853fd9b211 | 9,691 | py | Python | KDAT/src/modules/uiConnect.py | GavinGL/workspace | e8080656a235eee7419994b3be24396945ba2889 | [
"MIT"
] | null | null | null | KDAT/src/modules/uiConnect.py | GavinGL/workspace | e8080656a235eee7419994b3be24396945ba2889 | [
"MIT"
] | null | null | null | KDAT/src/modules/uiConnect.py | GavinGL/workspace | e8080656a235eee7419994b3be24396945ba2889 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'gui\Connectui.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
... | 63.339869 | 94 | 0.725725 | 1,047 | 9,691 | 6.497612 | 0.154728 | 0.047626 | 0.084081 | 0.047332 | 0.256211 | 0.160517 | 0.148758 | 0.024107 | 0.024107 | 0.024107 | 0 | 0.042524 | 0.162831 | 9,691 | 152 | 95 | 63.756579 | 0.796006 | 0.019296 | 0 | 0.057971 | 1 | 0 | 0.077055 | 0.004709 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036232 | false | 0.036232 | 0.007246 | 0.021739 | 0.072464 | 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 |
a303f401a3dd27becb4b9306fbf20adeb3023171 | 191 | py | Python | 1. Python/2. Flow of Control/15.print_natural_number.py | theparitoshkumar/Data-Structures-Algorithms-using-python | 445b9dee56bca637f21267114cc1686d333ea4c4 | [
"Apache-2.0"
] | 1 | 2021-12-05T18:02:15.000Z | 2021-12-05T18:02:15.000Z | 1. Python/2. Flow of Control/15.print_natural_number.py | theparitoshkumar/Data-Structures-Algorithms-using-python | 445b9dee56bca637f21267114cc1686d333ea4c4 | [
"Apache-2.0"
] | null | null | null | 1. Python/2. Flow of Control/15.print_natural_number.py | theparitoshkumar/Data-Structures-Algorithms-using-python | 445b9dee56bca637f21267114cc1686d333ea4c4 | [
"Apache-2.0"
] | null | null | null | """
Syntax of while Loop
while test_condition:
body of while
"""
#Print first 5 natural numbers using while loop
count = 1
while count <= 5:
print(count)
count += 1
| 12.733333 | 47 | 0.623037 | 27 | 191 | 4.37037 | 0.555556 | 0.118644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02963 | 0.293194 | 191 | 15 | 48 | 12.733333 | 0.844444 | 0.565445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3040663b193b6306818bf3c49f8039fdf3d79c0 | 1,570 | py | Python | emplacer.py | permamodel/ILAMB-tools | 43494a87d8f8e7994f4f9da0609b0764fc862494 | [
"MIT"
] | null | null | null | emplacer.py | permamodel/ILAMB-tools | 43494a87d8f8e7994f4f9da0609b0764fc862494 | [
"MIT"
] | null | null | null | emplacer.py | permamodel/ILAMB-tools | 43494a87d8f8e7994f4f9da0609b0764fc862494 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Puts MsTMIP output files in a standardized location for ILAMB.
Examples
--------
Copy all the `ra` files from *transfer* to the appropriate MsTMIP
directories in *MODELS/original* with:
$ python emplacer.py
"""
import os
import shutil
import glob
import string
ILAMB_dir = '/nas/data/ILAMB... | 24.920635 | 78 | 0.643949 | 196 | 1,570 | 4.979592 | 0.479592 | 0.129098 | 0.08709 | 0.039959 | 0.098361 | 0.043033 | 0 | 0 | 0 | 0 | 0 | 0.011542 | 0.227389 | 1,570 | 62 | 79 | 25.322581 | 0.793075 | 0.028025 | 0 | 0.044444 | 0 | 0 | 0.188073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.088889 | null | null | 0.088889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a3041e23ddc1c3cb95ad6ec5003ef736f4d25b06 | 365 | py | Python | resources/endpoints.py | aliie62/paranuara_planet | e8a1c5c4eea746d5c8dfc2ee64993a91837a892a | [
"MIT"
] | null | null | null | resources/endpoints.py | aliie62/paranuara_planet | e8a1c5c4eea746d5c8dfc2ee64993a91837a892a | [
"MIT"
] | null | null | null | resources/endpoints.py | aliie62/paranuara_planet | e8a1c5c4eea746d5c8dfc2ee64993a91837a892a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from flask_restful import Api
from resources.person import PersonResource
from resources.company import CompanyResource
#Define app end points
def get_endpoints(app):
api = Api(app)
api.add_resource(PersonResource,'/people','/people/<string:username>')
api.add_resource(CompanyResou... | 28.076923 | 74 | 0.747945 | 46 | 365 | 5.847826 | 0.586957 | 0.096654 | 0.104089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003155 | 0.131507 | 365 | 12 | 75 | 30.416667 | 0.845426 | 0.115068 | 0 | 0 | 0 | 0 | 0.16875 | 0.146875 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0967225064580656eeb6e147b33fa45f33f1ff66 | 5,575 | py | Python | cms/models.py | opendream/asip | 20583aca6393102d425401d55ea32ac6b78be048 | [
"MIT"
] | null | null | null | cms/models.py | opendream/asip | 20583aca6393102d425401d55ea32ac6b78be048 | [
"MIT"
] | 8 | 2020-03-24T17:11:49.000Z | 2022-01-13T01:18:11.000Z | cms/models.py | opendream/asip | 20583aca6393102d425401d55ea32ac6b78be048 | [
"MIT"
] | null | null | null | import re
from datetime import date
import tagging
from ckeditor.fields import RichTextField
from django.core import validators
from django.core.urlresolvers import reverse
from django.db import models
from django.template.defaultfilters import truncatechars
from django.utils import timezone
from django.conf import set... | 35.28481 | 121 | 0.713722 | 684 | 5,575 | 5.647661 | 0.245614 | 0.049702 | 0.080766 | 0.105617 | 0.365001 | 0.274657 | 0.190267 | 0.148071 | 0.126844 | 0.104064 | 0 | 0.009655 | 0.182601 | 5,575 | 157 | 122 | 35.509554 | 0.838051 | 0.043767 | 0 | 0.103774 | 0 | 0 | 0.05278 | 0.004508 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09434 | false | 0.009434 | 0.179245 | 0.056604 | 0.716981 | 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 |
096d828147557fce848b12e0d838b46e8b14b824 | 777 | py | Python | File for Lab 7/lab7ex3.py | lifeplay2019/ECOR1051-project | fbd0ed3651adc2cfc4dca06d155a03fb9fcfb3f3 | [
"MIT"
] | null | null | null | File for Lab 7/lab7ex3.py | lifeplay2019/ECOR1051-project | fbd0ed3651adc2cfc4dca06d155a03fb9fcfb3f3 | [
"MIT"
] | null | null | null | File for Lab 7/lab7ex3.py | lifeplay2019/ECOR1051-project | fbd0ed3651adc2cfc4dca06d155a03fb9fcfb3f3 | [
"MIT"
] | null | null | null | import math
def factorial(n: int) -> int:
""" Return n! for postive values of n.
>>> factorial(1)
1
>>> factorial(2)
2
>>> factorial(3)
6
>>> factorial(4)
24
"""
fact = 1
for i in range(2, n+1):
fact=fact*n
return fact
testpass = 0
t... | 25.064516 | 100 | 0.528958 | 97 | 777 | 4.237113 | 0.391753 | 0.10219 | 0.092457 | 0.131387 | 0.218978 | 0.218978 | 0.218978 | 0 | 0 | 0 | 0 | 0.034156 | 0.32175 | 777 | 31 | 101 | 25.064516 | 0.745731 | 0.144144 | 0 | 0 | 0 | 0 | 0.212585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.222222 | 0.055556 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0972b611f1f91b71538c0a5d76908add796f3ab9 | 5,753 | py | Python | jstokens.py | zhongweiy/jsinterpreter | 08262761b7213fd0d9573319ed7e1d5837a7d038 | [
"Apache-2.0"
] | 4 | 2016-01-23T13:58:43.000Z | 2016-07-04T04:11:59.000Z | jstokens.py | zhongweiy/jsinterpreter | 08262761b7213fd0d9573319ed7e1d5837a7d038 | [
"Apache-2.0"
] | null | null | null | jstokens.py | zhongweiy/jsinterpreter | 08262761b7213fd0d9573319ed7e1d5837a7d038 | [
"Apache-2.0"
] | null | null | null | # JavaScript: Numbers & Strings
#
# handling Numbers, Identifiers and Strings in a simpler version.
#
# a JavaScript IDENTIFIER must start with an upper- or
# lower-case character. It can then contain any number of upper- or
# lower-case characters or underscores. Its token.value is the textual
# string of the identifi... | 25.122271 | 85 | 0.541804 | 756 | 5,753 | 4.029101 | 0.291005 | 0.015102 | 0.03283 | 0.036113 | 0.091924 | 0.081418 | 0.081418 | 0.060407 | 0.060407 | 0.060407 | 0 | 0.019221 | 0.303668 | 5,753 | 228 | 86 | 25.232456 | 0.741138 | 0.349383 | 0 | 0.173333 | 0 | 0.006667 | 0.219645 | 0.00573 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013333 | 0.006667 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
09733c80cfdeca2a2ff41cf7d76c224a31e7fb01 | 302 | py | Python | accelerator/__init__.py | michuschenk/accelerator | 93f7ace68f7e67ec20ba1ea9590aee66a7da88a4 | [
"MIT"
] | null | null | null | accelerator/__init__.py | michuschenk/accelerator | 93f7ace68f7e67ec20ba1ea9590aee66a7da88a4 | [
"MIT"
] | null | null | null | accelerator/__init__.py | michuschenk/accelerator | 93f7ace68f7e67ec20ba1ea9590aee66a7da88a4 | [
"MIT"
] | null | null | null | import logging
import matplotlib.pyplot as plt
from .beam import Beam
from .lattice import Lattice
from .transfer_matrix import TransferMatrix
logger = logging.getLogger(__name__)
logger.addHandler(logging.StreamHandler())
logger.setLevel(logging.DEBUG)
plt.rcParams["figure.facecolor"] = "white"
| 20.133333 | 43 | 0.807947 | 37 | 302 | 6.459459 | 0.621622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102649 | 302 | 14 | 44 | 21.571429 | 0.881919 | 0 | 0 | 0 | 0 | 0 | 0.069536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.555556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
097dcbd748caa1351af1b837ef400915cf09bd02 | 990 | py | Python | cgi-bin/w3-query-res.py | TanyaAdams1/WST | fdf334741412f8b3634c444467f53279b1e4fba6 | [
"Apache-2.0"
] | null | null | null | cgi-bin/w3-query-res.py | TanyaAdams1/WST | fdf334741412f8b3634c444467f53279b1e4fba6 | [
"Apache-2.0"
] | null | null | null | cgi-bin/w3-query-res.py | TanyaAdams1/WST | fdf334741412f8b3634c444467f53279b1e4fba6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import re
import fcntl
print "Content-type: text/html\n\n"
try:
f = open("../homework/w3/query/w3-query.dat")
fcntl.flock(f, fcntl.DN_ACCESS)
template = "".join(open("../homework/w3/src/table.html").readlines()).split("<!-- insert point-->")
data = ""
lines = f.readlines()
... | 28.285714 | 103 | 0.506061 | 134 | 990 | 3.69403 | 0.514925 | 0.018182 | 0.056566 | 0.064646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021186 | 0.284848 | 990 | 34 | 104 | 29.117647 | 0.677966 | 0.020202 | 0 | 0 | 0 | 0 | 0.356037 | 0.116615 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064516 | null | null | 0.096774 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
098c54765217dc8e251e2022a8de13677025cc3f | 1,465 | py | Python | dcaeapplib/setup.py | onap/dcaegen2-utils | fc8a6edbf7d5f50096fc687ba964b464adcf2bb0 | [
"Apache-2.0",
"CC-BY-4.0"
] | 2 | 2019-09-24T11:13:00.000Z | 2020-07-14T14:21:58.000Z | dcaeapplib/setup.py | alex-sh2020/dcaegen2-utils | 1d2990b9b712a019bf553863a847eff90066f58a | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | dcaeapplib/setup.py | alex-sh2020/dcaegen2-utils | 1d2990b9b712a019bf553863a847eff90066f58a | [
"Apache-2.0",
"CC-BY-4.0"
] | 2 | 2020-07-14T19:16:15.000Z | 2021-10-15T15:50:08.000Z | # org.onap.dcae
# ============LICENSE_START====================================================
# Copyright (c) 2018-2019 AT&T Intellectual Property. All rights reserved.
# =============================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# y... | 41.857143 | 80 | 0.632082 | 182 | 1,465 | 5.038462 | 0.659341 | 0.065431 | 0.032715 | 0.050164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019701 | 0.133788 | 1,465 | 34 | 81 | 43.088235 | 0.702916 | 0.621843 | 0 | 0 | 0 | 0 | 0.452336 | 0.13271 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 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 |
098d5b14cc847bd2040aa814e681d9634ab1f2aa | 353 | py | Python | Object Oriented Programming/creating_our_own_objects.py | elipopovadev/Tournament-Tracker | 5b0acbd460257869438e27d3db770ff269ac6d40 | [
"MIT"
] | null | null | null | Object Oriented Programming/creating_our_own_objects.py | elipopovadev/Tournament-Tracker | 5b0acbd460257869438e27d3db770ff269ac6d40 | [
"MIT"
] | 1 | 2022-02-21T12:22:41.000Z | 2022-02-21T12:22:41.000Z | Object Oriented Programming/creating_our_own_objects.py | elipopovadev/Complete-Python-Developer | 5b0acbd460257869438e27d3db770ff269ac6d40 | [
"MIT"
] | null | null | null | class PlayerCharacter:
def __init__(self, name, age):
self.name = name
self.age = age
def run(self):
print("run")
return "done"
player1 = PlayerCharacter("Cindy", 50)
player2 = PlayerCharacter("Tom", 20)
print(player1.name)
print(player1.age)
print(player2.name)
print(... | 20.764706 | 38 | 0.637394 | 43 | 353 | 5.139535 | 0.395349 | 0.162896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040293 | 0.226629 | 353 | 17 | 39 | 20.764706 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.042373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 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 |
099371a27004c6b16e1b3cbb70571aa10fc566b8 | 6,455 | py | Python | profile_collection/startup/csx1/devices/stats_plugin.py | NSLS-II-CSX/xf23id1_profiles | 88b24b0bae222f4d69c278c5e3da8a9560c846d0 | [
"BSD-3-Clause"
] | null | null | null | profile_collection/startup/csx1/devices/stats_plugin.py | NSLS-II-CSX/xf23id1_profiles | 88b24b0bae222f4d69c278c5e3da8a9560c846d0 | [
"BSD-3-Clause"
] | 57 | 2016-03-05T16:37:55.000Z | 2022-02-16T18:43:33.000Z | profile_collection/startup/csx1/devices/stats_plugin.py | NSLS-II-CSX/xf23id1_profiles | 88b24b0bae222f4d69c278c5e3da8a9560c846d0 | [
"BSD-3-Clause"
] | 4 | 2016-03-06T19:40:18.000Z | 2019-01-24T22:49:30.000Z | from ophyd import Device, Component as Cpt
from ophyd.areadetector.base import (ADBase, ADComponent as ADCpt, ad_group,
EpicsSignalWithRBV as SignalWithRBV)
from ophyd.areadetector.plugins import PluginBase
from ophyd.areadetector.trigger_mixins import TriggerBase, ADTriggerStatus
f... | 42.748344 | 79 | 0.550736 | 625 | 6,455 | 5.4576 | 0.2592 | 0.075051 | 0.073879 | 0.068602 | 0.197596 | 0.163002 | 0.096159 | 0.08971 | 0 | 0 | 0 | 0.001373 | 0.32316 | 6,455 | 150 | 80 | 43.033333 | 0.779355 | 0.052208 | 0 | 0.111111 | 0 | 0 | 0.19623 | 0.006885 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068376 | 0 | 0.504274 | 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 |
09958040565ea6463ed0280058a58732e7eb9fca | 2,346 | py | Python | codeforces/api/json_objects/judge_protocol.py | ericbrandwein/CodeforcesAPI | 12ae641910a3308033584dc518bb2fc0173e56f3 | [
"MIT"
] | 26 | 2015-06-21T16:19:44.000Z | 2021-11-15T12:32:25.000Z | codeforces/api/json_objects/judge_protocol.py | ericbrandwein/CodeforcesAPI | 12ae641910a3308033584dc518bb2fc0173e56f3 | [
"MIT"
] | 5 | 2015-03-10T06:00:52.000Z | 2020-01-18T12:59:25.000Z | codeforces/api/json_objects/judge_protocol.py | ericbrandwein/CodeforcesAPI | 12ae641910a3308033584dc518bb2fc0173e56f3 | [
"MIT"
] | 12 | 2015-04-24T17:16:50.000Z | 2022-01-04T14:21:25.000Z | """
This module contains classes for representing JudgeProtocol object
For further information visit http://codeforces.com/api/help/objects#Hack
"""
from . import BaseJsonObject
__all__ = ['JudgeProtocol']
class JudgeProtocol(BaseJsonObject):
"""
This class represents JudgeProtocol object
For further... | 24.4375 | 99 | 0.609122 | 252 | 2,346 | 5.539683 | 0.277778 | 0.039398 | 0.025788 | 0.057307 | 0.542264 | 0.459885 | 0.413324 | 0.363897 | 0.30659 | 0.19914 | 0 | 0 | 0.297954 | 2,346 | 95 | 100 | 24.694737 | 0.847602 | 0.379369 | 0 | 0.138889 | 0 | 0 | 0.044057 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.25 | false | 0 | 0.027778 | 0.027778 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
099bae41339eea4897a6dc29aab9f4125f4671dc | 7,544 | py | Python | src/semantic_parsing_with_constrained_lm/configs/calflow_emnlp_camera_ready.py | microsoft/semantic_parsing_with_constrained_lm | 7e3c099500c3102e46d7a47469fe6840580c2b11 | [
"MIT"
] | 17 | 2021-09-22T13:08:37.000Z | 2022-03-27T10:39:53.000Z | src/semantic_parsing_with_constrained_lm/configs/calflow_emnlp_camera_ready.py | microsoft/semantic_parsing_with_constrained_lm | 7e3c099500c3102e46d7a47469fe6840580c2b11 | [
"MIT"
] | 1 | 2022-03-12T01:05:15.000Z | 2022-03-12T01:05:15.000Z | src/semantic_parsing_with_constrained_lm/configs/calflow_emnlp_camera_ready.py | microsoft/semantic_parsing_with_constrained_lm | 7e3c099500c3102e46d7a47469fe6840580c2b11 | [
"MIT"
] | 1 | 2021-12-16T22:26:54.000Z | 2021-12-16T22:26:54.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
"""This config file is for running experiments for the EMNLP camera ready.
It will generate the following experiments (depending on the value of eval_split and model):
- 200 dev examples
- GPT-3 Constrained Canonical, P = 20
- GPT-3 Constraine... | 39.291667 | 111 | 0.655753 | 826 | 7,544 | 5.691283 | 0.22276 | 0.017869 | 0.023825 | 0.035737 | 0.465646 | 0.406297 | 0.375665 | 0.292066 | 0.207828 | 0.150181 | 0 | 0.018287 | 0.267895 | 7,544 | 191 | 112 | 39.497382 | 0.832881 | 0.138388 | 0 | 0.258278 | 1 | 0 | 0.100713 | 0.036402 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019868 | false | 0 | 0.092715 | 0 | 0.125828 | 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 |
099d48f142439bd04db2751ed3f7a9c474bb4692 | 7,934 | py | Python | App/gui/chat.py | Wizard-collab/wizard | c2ec623fe011626716493c232b895fb0513f68ff | [
"MIT"
] | null | null | null | App/gui/chat.py | Wizard-collab/wizard | c2ec623fe011626716493c232b895fb0513f68ff | [
"MIT"
] | null | null | null | App/gui/chat.py | Wizard-collab/wizard | c2ec623fe011626716493c232b895fb0513f68ff | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Users\conta\Documents\script\Wizard\App\gui\ui_files\chat.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
... | 57.912409 | 118 | 0.755357 | 887 | 7,934 | 6.48478 | 0.157835 | 0.083449 | 0.042942 | 0.043985 | 0.356398 | 0.208275 | 0.149166 | 0.070236 | 0.043811 | 0.029207 | 0 | 0.025687 | 0.151122 | 7,934 | 136 | 119 | 58.338235 | 0.828359 | 0.029493 | 0 | 0 | 1 | 0 | 0.058625 | 0.022228 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016529 | false | 0 | 0.016529 | 0 | 0.041322 | 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 |
09a018ce2bd2ec82bc9ff59776c4820190fd8477 | 951 | py | Python | python-data-analysis/series/demo1.py | meteor1993/python-learning | 4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40 | [
"MIT"
] | 83 | 2019-10-15T06:54:06.000Z | 2022-03-28T14:08:21.000Z | python-data-analysis/series/demo1.py | wenxuefeng3930/python-learning | 4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40 | [
"MIT"
] | 1 | 2020-04-16T08:13:19.000Z | 2020-07-14T01:52:46.000Z | python-data-analysis/series/demo1.py | wenxuefeng3930/python-learning | 4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40 | [
"MIT"
] | 74 | 2019-11-02T08:10:36.000Z | 2022-02-19T12:23:36.000Z | import numpy as np
import pandas as pd
s = pd.Series(np.random.rand(5), index=['a', 'b', 'c', 'd', 'e'])
print(s)
print(s.index)
s1 = pd.Series(np.random.randn(5))
print(s1)
d = {'b': 1, 'a': 0, 'c': 2}
s2 = pd.Series(d)
print(s2)
s3 = pd.Series(d, index=['b', 'c', 'd', 'a'])
print(s3)
s4 = pd.Ser... | 17.290909 | 66 | 0.550999 | 183 | 951 | 2.84153 | 0.300546 | 0.173077 | 0.057692 | 0.092308 | 0.186538 | 0.146154 | 0.061538 | 0.061538 | 0 | 0 | 0 | 0.049287 | 0.189274 | 951 | 55 | 67 | 17.290909 | 0.625162 | 0.085174 | 0 | 0.052632 | 0 | 0 | 0.062885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0.710526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
09a9ea864e04572dd8112091eef2cac100cf5988 | 376 | py | Python | init5/src/users/migrations/0005_user_banned.py | iYoQ/init5 | be67fc501376f17f2f6a258c5f8c2002defbc415 | [
"Apache-2.0"
] | null | null | null | init5/src/users/migrations/0005_user_banned.py | iYoQ/init5 | be67fc501376f17f2f6a258c5f8c2002defbc415 | [
"Apache-2.0"
] | null | null | null | init5/src/users/migrations/0005_user_banned.py | iYoQ/init5 | be67fc501376f17f2f6a258c5f8c2002defbc415 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 4.0.1 on 2022-01-16 16:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0004_user_rating'),
]
operations = [
migrations.AddField(
model_name='user',
name='banned',
fie... | 19.789474 | 53 | 0.587766 | 40 | 376 | 5.45 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071698 | 0.295213 | 376 | 18 | 54 | 20.888889 | 0.750943 | 0.119681 | 0 | 0 | 1 | 0 | 0.094225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
09adee812e641848283e99fe1e1c57bd9d793e06 | 543 | py | Python | blender/arm/logicnode/animation/LN_get_tilesheet_state.py | onelsonic/armory | 55cfead0844923d419d75bf4bd677ebed714b4b5 | [
"Zlib"
] | 2,583 | 2016-07-27T08:25:47.000Z | 2022-03-31T10:42:17.000Z | blender/arm/logicnode/animation/LN_get_tilesheet_state.py | N8n5h/armory | 5b4d24f067a2354bafd3ab417bb8e30ee0c5aff8 | [
"Zlib"
] | 2,122 | 2016-07-31T14:20:04.000Z | 2022-03-31T20:44:14.000Z | blender/arm/logicnode/animation/LN_get_tilesheet_state.py | N8n5h/armory | 5b4d24f067a2354bafd3ab417bb8e30ee0c5aff8 | [
"Zlib"
] | 451 | 2016-08-12T05:52:58.000Z | 2022-03-31T01:33:07.000Z | from arm.logicnode.arm_nodes import *
class GetTilesheetStateNode(ArmLogicTreeNode):
"""Returns the information about the current tilesheet of the given object."""
bl_idname = 'LNGetTilesheetStateNode'
bl_label = 'Get Tilesheet State'
arm_version = 1
arm_section = 'tilesheet'
def arm_init(self... | 33.9375 | 82 | 0.703499 | 60 | 543 | 6.2 | 0.683333 | 0.075269 | 0.104839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002268 | 0.187845 | 543 | 15 | 83 | 36.2 | 0.84127 | 0.132597 | 0 | 0 | 0 | 0 | 0.288172 | 0.049462 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
09aff6ef14fb4885c4577050d30d835709a7725b | 832 | py | Python | capstone/capdb/migrations/0101_auto_20200423_1714.py | rachelaus/capstone | 2affa02706f9b1a99d032c66f258a7421c40a35e | [
"MIT"
] | 134 | 2017-07-12T17:03:06.000Z | 2022-03-27T06:38:29.000Z | capstone/capdb/migrations/0101_auto_20200423_1714.py | rachelaus/capstone | 2affa02706f9b1a99d032c66f258a7421c40a35e | [
"MIT"
] | 1,362 | 2017-06-22T17:42:49.000Z | 2022-03-31T15:28:00.000Z | capstone/capdb/migrations/0101_auto_20200423_1714.py | rachelaus/capstone | 2affa02706f9b1a99d032c66f258a7421c40a35e | [
"MIT"
] | 38 | 2017-06-22T14:46:23.000Z | 2022-03-16T05:32:54.000Z | # Generated by Django 2.2.11 on 2020-04-23 17:14
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('capdb', '0100_auto_20200410_1755'),
]
operations = [
migrations.AddField(
model_name='historic... | 33.28 | 173 | 0.665865 | 95 | 832 | 5.652632 | 0.484211 | 0.05959 | 0.078212 | 0.122905 | 0.353818 | 0.353818 | 0.353818 | 0.216015 | 0.216015 | 0.216015 | 0 | 0.04893 | 0.213942 | 832 | 24 | 174 | 34.666667 | 0.772171 | 0.055288 | 0 | 0.333333 | 1 | 0 | 0.186224 | 0.059949 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
09b0477a8d72253dd37fede78e47b823150d1788 | 374 | py | Python | src/cwr/urls.py | kaizer88/moltrandashboad | 590b3426ecc3a80aa31a08eb07bed224d0c2562d | [
"MIT"
] | null | null | null | src/cwr/urls.py | kaizer88/moltrandashboad | 590b3426ecc3a80aa31a08eb07bed224d0c2562d | [
"MIT"
] | 4 | 2021-04-08T22:01:45.000Z | 2021-09-22T19:50:53.000Z | src/cwr/urls.py | kaizer88/moltrandashboad | 590b3426ecc3a80aa31a08eb07bed224d0c2562d | [
"MIT"
] | null | null | null | from django.urls import path
from .views import *
urlpatterns = [
# path('towns', towns, name='towns'),
# path('add_town', edit_town, name='add_town'),
# path('edit_town/<pk>', edit_town, name='edit_town'),
# path('properties', properties, name='properties'),
# path('tenants', tenants, name='tenan... | 26.714286 | 58 | 0.631016 | 46 | 374 | 5 | 0.347826 | 0.13913 | 0.104348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168449 | 374 | 13 | 59 | 28.769231 | 0.73955 | 0.71123 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
09b7f89cb5eb23713528719c5cfdb45d6cbed1d3 | 1,004 | py | Python | calendar_util/migrations/0001_initial.py | christiankuhl/todolist | a10316f8b24c33da7d0b386a4fda5b4a9c128cae | [
"MIT"
] | null | null | null | calendar_util/migrations/0001_initial.py | christiankuhl/todolist | a10316f8b24c33da7d0b386a4fda5b4a9c128cae | [
"MIT"
] | 5 | 2020-06-05T17:35:16.000Z | 2021-09-07T10:20:36.000Z | calendar_util/migrations/0001_initial.py | christiankuhl/todolist | a10316f8b24c33da7d0b386a4fda5b4a9c128cae | [
"MIT"
] | null | null | null | # Generated by Django 2.0.2 on 2018-02-26 22:35
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | 32.387097 | 152 | 0.583665 | 102 | 1,004 | 5.598039 | 0.617647 | 0.042032 | 0.049037 | 0.077058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025352 | 0.292829 | 1,004 | 30 | 153 | 33.466667 | 0.778873 | 0.044821 | 0 | 0 | 1 | 0 | 0.06041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.304348 | 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 |
09be8ce22aaeafd1f7ba14340567fecf2e3913de | 1,379 | py | Python | server_util/resource_manager.py | igushev/fase_lib | 182c626193193b196041b18b9974b5b2cbf15c67 | [
"MIT"
] | 7 | 2019-05-20T09:57:02.000Z | 2020-01-10T05:30:48.000Z | server_util/resource_manager.py | igushev/fase_lib | 182c626193193b196041b18b9974b5b2cbf15c67 | [
"MIT"
] | null | null | null | server_util/resource_manager.py | igushev/fase_lib | 182c626193193b196041b18b9974b5b2cbf15c67 | [
"MIT"
] | null | null | null | import functools
import os
from fase_lib.base_util import singleton_util
TEMPLATE_SYMBOL = '@'
PIXEL_DENSITY_STEP = 0.25
PIXEL_DENSITY_MIN = 0
PIXEL_DENSITY_MAX = 10
@singleton_util.Singleton()
class ResourceManager():
def __init__(self, resource_dir):
self.resource_dir = resource_dir
def GetResourceDir(s... | 33.634146 | 88 | 0.740392 | 173 | 1,379 | 5.578035 | 0.306358 | 0.236269 | 0.137824 | 0.124352 | 0.315026 | 0.217617 | 0.217617 | 0.217617 | 0.126425 | 0.126425 | 0 | 0.010536 | 0.174039 | 1,379 | 40 | 89 | 34.475 | 0.836699 | 0 | 0 | 0.1875 | 0 | 0 | 0.005076 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 1 | 0.125 | false | 0 | 0.09375 | 0.03125 | 0.4375 | 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 |
09c129d6095de636eeb5ca45e25197119bf1cf98 | 4,942 | py | Python | lib/config.py | qvant/stackexchange_bot | 36f9f13ee3ba58d4277d4ecdae567ead003870f8 | [
"MIT"
] | null | null | null | lib/config.py | qvant/stackexchange_bot | 36f9f13ee3ba58d4277d4ecdae567ead003870f8 | [
"MIT"
] | null | null | null | lib/config.py | qvant/stackexchange_bot | 36f9f13ee3ba58d4277d4ecdae567ead003870f8 | [
"MIT"
] | null | null | null | import codecs
import datetime
import json
from .security import is_password_encrypted, encrypt_password, decrypt_password
from .log import get_logger
from .stats import set_startup
LOG_CONFIG = "config"
CONFIG_PARAM_LOG_LEVEL = "LOG_LEVEL"
CONFIG_PARAM_DB_PORT = "DB_PORT"
CONFIG_PARAM_DB_NAME = "DB_NAME"
CONFIG_PARAM... | 41.183333 | 118 | 0.667746 | 675 | 4,942 | 4.574815 | 0.171852 | 0.096179 | 0.063148 | 0.084197 | 0.424223 | 0.253562 | 0.201749 | 0.194948 | 0.161917 | 0.161917 | 0 | 0.002659 | 0.238972 | 4,942 | 119 | 119 | 41.529412 | 0.818399 | 0 | 0 | 0.186916 | 0 | 0 | 0.11898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046729 | false | 0.205607 | 0.056075 | 0 | 0.11215 | 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 |
09c38b111eefb36e876de4885ebe9341a617cb60 | 1,501 | py | Python | claf/learn/tensorboard.py | GMDennis/claf | d1e064e593127e5d654f000f5506c5ae1caab5ce | [
"MIT"
] | 225 | 2019-02-27T06:22:09.000Z | 2022-03-05T23:19:59.000Z | claf/learn/tensorboard.py | GMDennis/claf | d1e064e593127e5d654f000f5506c5ae1caab5ce | [
"MIT"
] | 25 | 2019-03-08T05:04:24.000Z | 2021-09-02T07:19:27.000Z | claf/learn/tensorboard.py | GMDennis/claf | d1e064e593127e5d654f000f5506c5ae1caab5ce | [
"MIT"
] | 41 | 2019-02-27T16:09:30.000Z | 2022-02-09T15:56:09.000Z |
import os
from tensorboardX import SummaryWriter
from claf import nsml
class TensorBoard:
""" TensorBoard Wrapper for Pytorch """
def __init__(self, log_dir):
if not os.path.exists(log_dir):
os.makedirs(log_dir)
self.writer = SummaryWriter(log_dir=log_dir)
def scalar_summa... | 30.632653 | 89 | 0.614257 | 180 | 1,501 | 4.988889 | 0.383333 | 0.033408 | 0.040089 | 0.022272 | 0.097996 | 0.066815 | 0 | 0 | 0 | 0 | 0 | 0.00365 | 0.26982 | 1,501 | 48 | 90 | 31.270833 | 0.815693 | 0.078614 | 0 | 0.258065 | 0 | 0 | 0.053676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.096774 | 0 | 0.354839 | 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 |
09c7a77b5f23c61c1a13ddffcf3b3d38b547233b | 225 | py | Python | nadlogar/students/context_processors.py | LenartBucar/nadlogar | 2aba693254d56896419d09e066f91551492f8980 | [
"MIT"
] | null | null | null | nadlogar/students/context_processors.py | LenartBucar/nadlogar | 2aba693254d56896419d09e066f91551492f8980 | [
"MIT"
] | null | null | null | nadlogar/students/context_processors.py | LenartBucar/nadlogar | 2aba693254d56896419d09e066f91551492f8980 | [
"MIT"
] | null | null | null | from .models import StudentGroup
def my_groups(request):
if request.user.is_authenticated:
return {
"my_groups": StudentGroup.objects.filter(user=request.user),
}
else:
return {}
| 20.454545 | 72 | 0.626667 | 24 | 225 | 5.75 | 0.666667 | 0.115942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275556 | 225 | 10 | 73 | 22.5 | 0.846626 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
09ca12d31da63891df1c995ff41a4a10b0df20a8 | 479 | py | Python | 202-happy-number/202-happy-number.py | jenndryden/coding-challenges | 0abe49eb335a06d273378634ef9e42f061751626 | [
"MIT"
] | null | null | null | 202-happy-number/202-happy-number.py | jenndryden/coding-challenges | 0abe49eb335a06d273378634ef9e42f061751626 | [
"MIT"
] | null | null | null | 202-happy-number/202-happy-number.py | jenndryden/coding-challenges | 0abe49eb335a06d273378634ef9e42f061751626 | [
"MIT"
] | null | null | null | class Solution:
def isHappy(self, n: int) -> bool:
seen = {}
while True:
if n in seen:
break
counter = 0
for i in range(len(str(n))):
counter += int(str(n)[i]) ** 2
seen[n] = 1
n = counter
counte... | 25.210526 | 46 | 0.350731 | 48 | 479 | 3.5 | 0.5625 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024038 | 0.565762 | 479 | 19 | 47 | 25.210526 | 0.783654 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
09cf093e2828cee5fbb1ca9469992843916c1851 | 788 | py | Python | Scripts/MembraneValidation.py | krm15/ACME | 5b727667c21367e6c4a3631d2a68e32b3f8a7067 | [
"BSD-2-Clause-FreeBSD",
"BSD-3-Clause"
] | 4 | 2015-08-18T03:16:42.000Z | 2018-04-22T22:04:46.000Z | Scripts/MembraneValidation.py | krm15/ACME | 5b727667c21367e6c4a3631d2a68e32b3f8a7067 | [
"BSD-2-Clause-FreeBSD",
"BSD-3-Clause"
] | 2 | 2021-11-28T02:07:43.000Z | 2021-11-30T09:11:48.000Z | Scripts/MembraneValidation.py | krm15/ACME | 5b727667c21367e6c4a3631d2a68e32b3f8a7067 | [
"BSD-2-Clause-FreeBSD",
"BSD-3-Clause"
] | 5 | 2015-03-30T19:37:31.000Z | 2020-01-02T07:31:39.000Z | #!/usr/bin/python
# Filename : var.py
import sys, os
# Default arguments
current = os.getcwd()
# Define executable
Preprocess = "/home/krm15/bin/GITROOT/ACME/bin/membraneSegmentationEvaluation"
MembranePreprocess = "~/GITROOT/ACME/Data/Test/Input/Preprocess/10.mha"
Foreground = "~/GITROOT/ACME/Data/Test/Input/Foregr... | 30.307692 | 86 | 0.658629 | 105 | 788 | 4.904762 | 0.504762 | 0.085437 | 0.087379 | 0.11068 | 0.112621 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049206 | 0.200508 | 788 | 25 | 87 | 31.52 | 0.768254 | 0.107868 | 0 | 0 | 0 | 0 | 0.348138 | 0.277937 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
09d51b4730ce9ff6fd35d945fa30b454905a428c | 1,319 | py | Python | setup.py | tomprimozic/scribe-python | f59f51cfb09eab6e44f9871f3014f531b3b75280 | [
"Apache-2.0"
] | null | null | null | setup.py | tomprimozic/scribe-python | f59f51cfb09eab6e44f9871f3014f531b3b75280 | [
"Apache-2.0"
] | 4 | 2017-04-30T18:21:37.000Z | 2018-05-31T10:04:11.000Z | setup.py | tomprimozic/scribe-python | f59f51cfb09eab6e44f9871f3014f531b3b75280 | [
"Apache-2.0"
] | 3 | 2016-06-06T14:23:40.000Z | 2021-07-05T08:08:13.000Z | '''
Scribe client
=============
This is a Python client for scribe that can be installed using pip::
pip install facebook-scribe
Usage
-----
Connect to ``HOST:9999`` using *Thrift*::
from scribe import scribe
from thrift.transport import TTransport, TSocket
from thrift.protocol import TBinaryProto... | 23.553571 | 100 | 0.6884 | 154 | 1,319 | 5.831169 | 0.525974 | 0.077951 | 0.028953 | 0.035635 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016682 | 0.181956 | 1,319 | 55 | 101 | 23.981818 | 0.81557 | 0.650493 | 0 | 0 | 0 | 0 | 0.360619 | 0.053097 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.214286 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
09da82b22410d87e6cb012a3478f0bcd68c0338f | 1,353 | py | Python | AdventOfCode/Day6.py | btrzcinski/AdventOfCode | 46012e81ba8a56cde811ad481ab14b43ce73f09f | [
"MIT"
] | null | null | null | AdventOfCode/Day6.py | btrzcinski/AdventOfCode | 46012e81ba8a56cde811ad481ab14b43ce73f09f | [
"MIT"
] | null | null | null | AdventOfCode/Day6.py | btrzcinski/AdventOfCode | 46012e81ba8a56cde811ad481ab14b43ce73f09f | [
"MIT"
] | null | null | null | def turn_on_lights(lights, begin, end):
for x in range(begin[0], end[0]+1):
for y in range(begin[1], end[1]+1):
lights[x][y] = True
def turn_off_lights(lights, begin, end):
for x in range(begin[0], end[0]+1):
for y in range(begin[1], end[1]+1):
lights[x][y] = False
def ... | 34.692308 | 78 | 0.585366 | 213 | 1,353 | 3.577465 | 0.239437 | 0.125984 | 0.133858 | 0.15748 | 0.451444 | 0.406824 | 0.346457 | 0.272966 | 0.272966 | 0.272966 | 0 | 0.031496 | 0.249076 | 1,353 | 39 | 79 | 34.692308 | 0.718504 | 0 | 0 | 0.1875 | 0 | 0 | 0.031758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0 | 0.09375 | 0.3125 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
09eb56fa00f33253052cd738d087602992b07a2f | 1,071 | py | Python | broker/broker.py | Max00355/ByteMail-1 | 576f765da9fb88f23b4d5c46868e0ce16db83c7c | [
"MIT"
] | 4 | 2016-02-18T15:11:58.000Z | 2020-01-16T11:07:50.000Z | broker/broker.py | Max00355/ByteMail-1 | 576f765da9fb88f23b4d5c46868e0ce16db83c7c | [
"MIT"
] | 1 | 2021-03-06T00:07:14.000Z | 2021-03-06T00:15:26.000Z | broker/broker.py | Max00355/ByteMail-1 | 576f765da9fb88f23b4d5c46868e0ce16db83c7c | [
"MIT"
] | 1 | 2017-11-08T04:33:38.000Z | 2017-11-08T04:33:38.000Z | import ssl
import socket
import json
import threading
import landerdb
class Broker:
def __init__(self):
self.port = 4321
self.db = landerdb.Connect("nodes.db")
def main(self):
s = ssl.socket()
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(("", self.port... | 28.945946 | 96 | 0.507937 | 125 | 1,071 | 4.304 | 0.488 | 0.02974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022631 | 0.339869 | 1,071 | 36 | 97 | 29.75 | 0.738331 | 0 | 0 | 0.060606 | 0 | 0 | 0.056956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.151515 | null | null | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
09f22b407997d2470ba0e0eef9c0396d73e10de6 | 13,954 | py | Python | source/py4dlib/utils.py | andreberg/py4dlib | e7832afbbf1a70695310c1a46bf054b5988a104c | [
"Apache-2.0"
] | 18 | 2015-08-30T08:09:57.000Z | 2021-02-15T22:09:21.000Z | source/py4dlib/utils.py | andreberg/py4dlib | e7832afbbf1a70695310c1a46bf054b5988a104c | [
"Apache-2.0"
] | null | null | null | source/py4dlib/utils.py | andreberg/py4dlib | e7832afbbf1a70695310c1a46bf054b5988a104c | [
"Apache-2.0"
] | 2 | 2015-06-19T17:31:28.000Z | 2021-01-25T16:31:50.000Z | # -*- coding: utf-8 -*-
#
# utils.py
# py4dlib
#
# Created by André Berg on 2012-09-28.
# Copyright 2012 Berg Media. All rights reserved.
#
# andre.bergmedia@googlemail.com
#
# pylint: disable-msg=F0401
'''py4dlib.utils -- utility toolbelt for great convenience.'''
import os
import warnings
__version__ = (0... | 35.060302 | 108 | 0.573599 | 1,731 | 13,954 | 4.538995 | 0.270942 | 0.009164 | 0.007637 | 0.009673 | 0.115184 | 0.099911 | 0.084511 | 0.071783 | 0.071783 | 0.063128 | 0 | 0.025761 | 0.326788 | 13,954 | 397 | 109 | 35.148615 | 0.810624 | 0.073886 | 0 | 0.2625 | 0 | 0.004167 | 0.06439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008333 | 0.0375 | null | null | 0.008333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
09fa62272c9d322781530946b01ed18f3fb00b1b | 333 | py | Python | main.py | stillmatic/plaitpy | cc3627f2871aeb28b0171561ec86a73631507e36 | [
"MIT"
] | 438 | 2018-01-09T16:41:40.000Z | 2022-02-23T00:19:00.000Z | main.py | stillmatic/plaitpy | cc3627f2871aeb28b0171561ec86a73631507e36 | [
"MIT"
] | 9 | 2018-01-09T17:39:41.000Z | 2020-06-15T23:00:33.000Z | main.py | stillmatic/plaitpy | cc3627f2871aeb28b0171561ec86a73631507e36 | [
"MIT"
] | 17 | 2018-01-09T18:49:10.000Z | 2020-12-23T16:21:45.000Z | from __future__ import print_function
from src import cli
from os import environ as ENV
PROFILE=False
if PROFILE:
print("PROFILING")
import cProfile
cProfile.run("cli.main()", "restats")
import pstats
p = pstats.Stats('restats')
p.strip_dirs().sort_stats('cumulative').print_stats(50)
else:
... | 19.588235 | 59 | 0.702703 | 46 | 333 | 4.913043 | 0.608696 | 0.061947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007353 | 0.183183 | 333 | 16 | 60 | 20.8125 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.129129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0.230769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
09feb8ca650a6ece1f46e273f548926a54d249e6 | 970 | py | Python | tacotron2/datasets/length_sort_sampler.py | DashaSerdyuk/tacotron2 | 1a88669670750f8b0e1aff76abc8b1b15300e1dc | [
"BSD-3-Clause"
] | 1 | 2020-03-03T23:04:05.000Z | 2020-03-03T23:04:05.000Z | tacotron2/datasets/length_sort_sampler.py | DashaSerdyuk/tacotron2 | 1a88669670750f8b0e1aff76abc8b1b15300e1dc | [
"BSD-3-Clause"
] | null | null | null | tacotron2/datasets/length_sort_sampler.py | DashaSerdyuk/tacotron2 | 1a88669670750f8b0e1aff76abc8b1b15300e1dc | [
"BSD-3-Clause"
] | 1 | 2020-03-26T19:37:46.000Z | 2020-03-26T19:37:46.000Z | from torch.utils.data import Sampler
import numpy as np
def get_chunks(l, n):
for i in range(0, len(l), n):
yield l[i:i + n]
def flatten(l):
return [item for sublist in l for item in sublist]
class LengthSortSampler(Sampler):
def __init__(self, data_source, bs):
super().__init__(data_s... | 25.526316 | 60 | 0.608247 | 139 | 970 | 4.014388 | 0.330935 | 0.143369 | 0.150538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005722 | 0.279381 | 970 | 37 | 61 | 26.216216 | 0.792561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.074074 | 0.111111 | 0.407407 | 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 |
61da239097aad9cce25f61e3ec30cee88b413a23 | 2,804 | py | Python | 0. labos/data.py | drakipovic/deep-learning | 939a0ad913c4943fc08b08674881abc6dfc614de | [
"MIT"
] | null | null | null | 0. labos/data.py | drakipovic/deep-learning | 939a0ad913c4943fc08b08674881abc6dfc614de | [
"MIT"
] | null | null | null | 0. labos/data.py | drakipovic/deep-learning | 939a0ad913c4943fc08b08674881abc6dfc614de | [
"MIT"
] | null | null | null | import math
import numpy as np
import matplotlib.pyplot as plt
from sklearn.metrics import accuracy_score, precision_score, recall_score
class Random2DGaussian(object):
min_x = 0
max_x = 10
min_y = 0
max_y = 10
def __init__(self):
self.mean = [(self.max_x-self.min_x) * np.random.rand... | 25.490909 | 101 | 0.574536 | 449 | 2,804 | 3.374165 | 0.249443 | 0.011881 | 0.046205 | 0.066007 | 0.258086 | 0.129373 | 0.023762 | 0.023762 | 0 | 0 | 0 | 0.025243 | 0.265335 | 2,804 | 109 | 102 | 25.724771 | 0.710194 | 0 | 0 | 0 | 0 | 0 | 0.023546 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61dd85a731ea1d17fe987a685657c6998f39bff5 | 343 | py | Python | feedback/admin.py | alekam/django-feedback | 492ad924f1ac05548165c5cb2837e177efea597d | [
"BSD-3-Clause"
] | 1 | 2015-02-06T17:06:49.000Z | 2015-02-06T17:06:49.000Z | feedback/admin.py | alekam/django-feedback | 492ad924f1ac05548165c5cb2837e177efea597d | [
"BSD-3-Clause"
] | null | null | null | feedback/admin.py | alekam/django-feedback | 492ad924f1ac05548165c5cb2837e177efea597d | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from feedback.models import Feedback
class FeedbackAdmin(admin.ModelAdmin):
list_display = ['name', 'email', 'message', 'time']
search_fields = ['email', 'message']
list_filter = ['time', ]
date_hierarchy = 'time'
raw_id_fields = ('user', )
admin.site.register(Fe... | 24.5 | 55 | 0.693878 | 39 | 343 | 5.948718 | 0.666667 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166181 | 343 | 13 | 56 | 26.384615 | 0.811189 | 0 | 0 | 0 | 0 | 0 | 0.12828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.888889 | 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 |
61eddfa4d6fe9359fa77088a788b9bcd02ce14c6 | 14,985 | py | Python | TrainingDataFromSgfValue.py | stefanpeidli/GoNet | a9340b0bd0e361612fb5585b54d137d0f2c1ff2e | [
"MIT"
] | 6 | 2017-10-26T15:10:51.000Z | 2019-10-22T18:20:57.000Z | TrainingDataFromSgfValue.py | stefanpeidli/GoNet | a9340b0bd0e361612fb5585b54d137d0f2c1ff2e | [
"MIT"
] | 15 | 2017-10-31T13:58:55.000Z | 2018-01-26T16:31:36.000Z | TrainingDataFromSgfValue.py | stefanpeidli/GoNet | a9340b0bd0e361612fb5585b54d137d0f2c1ff2e | [
"MIT"
] | 4 | 2017-10-28T17:35:33.000Z | 2018-11-11T22:29:59.000Z | # -*- coding: utf-8 -*-
"""
Created on Sat Nov 18 12:27:16 2017
@author: Stefan Peidli
This script reads sgf files from a file directory, converts them into pairs of "current board - next move" and stores
them either in a dictionary or in a sqlite3 database.
"""
import os
from collections import defaultdict
from Boa... | 43.184438 | 183 | 0.578512 | 1,681 | 14,985 | 5.108269 | 0.198096 | 0.020962 | 0.023757 | 0.025154 | 0.399208 | 0.367882 | 0.355188 | 0.341097 | 0.295796 | 0.285781 | 0 | 0.020807 | 0.300834 | 14,985 | 346 | 184 | 43.309249 | 0.798797 | 0.097097 | 0 | 0.338182 | 0 | 0 | 0.085322 | 0.001779 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050909 | false | 0.090909 | 0.047273 | 0 | 0.134545 | 0.050909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
61ef1534c49a70727e4a833fa33c2f8123c653da | 641 | py | Python | second-analysis-steps/code/building-decays/00.start.py | mesmith75/starterkit-lessons | 8a7afc67f7fe2a805bf18b2e63e6721ec0d262ab | [
"CC-BY-4.0"
] | null | null | null | second-analysis-steps/code/building-decays/00.start.py | mesmith75/starterkit-lessons | 8a7afc67f7fe2a805bf18b2e63e6721ec0d262ab | [
"CC-BY-4.0"
] | null | null | null | second-analysis-steps/code/building-decays/00.start.py | mesmith75/starterkit-lessons | 8a7afc67f7fe2a805bf18b2e63e6721ec0d262ab | [
"CC-BY-4.0"
] | null | null | null | from Configurables import DaVinci
from GaudiConf import IOHelper
DaVinci().InputType = 'DST'
DaVinci().TupleFile = 'DVntuple.root'
DaVinci().PrintFreq = 1000
DaVinci().DataType = '2012'
DaVinci().Simulation = True
# Only ask for luminosity information when not using simulated data
DaVinci().Lumi = not DaVinci().Simula... | 33.736842 | 67 | 0.645866 | 71 | 641 | 5.802817 | 0.676056 | 0.082524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091278 | 0.230889 | 641 | 18 | 68 | 35.611111 | 0.744422 | 0.140406 | 0 | 0 | 0 | 0 | 0.25365 | 0.217153 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61ef3de62f7eda03dbfd2a5832ccb97a2c97a2f1 | 2,464 | py | Python | tools/profiling/microbenchmarks/bm_diff/bm_speedup.py | eaglesunshine/grpc_learn | ecf33b83c9d49892539a3ffed9dc1553d91f59ae | [
"BSD-3-Clause"
] | 1 | 2017-12-12T20:55:14.000Z | 2017-12-12T20:55:14.000Z | tools/profiling/microbenchmarks/bm_diff/bm_speedup.py | eaglesunshine/grpc_learn | ecf33b83c9d49892539a3ffed9dc1553d91f59ae | [
"BSD-3-Clause"
] | null | null | null | tools/profiling/microbenchmarks/bm_diff/bm_speedup.py | eaglesunshine/grpc_learn | ecf33b83c9d49892539a3ffed9dc1553d91f59ae | [
"BSD-3-Clause"
] | 1 | 2020-11-04T04:12:37.000Z | 2020-11-04T04:12:37.000Z | # Copyright 2017, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | 34.704225 | 72 | 0.70211 | 386 | 2,464 | 4.448187 | 0.432642 | 0.008154 | 0.010483 | 0.011648 | 0.205009 | 0.163075 | 0.163075 | 0.158416 | 0.158416 | 0.158416 | 0 | 0.046512 | 0.214692 | 2,464 | 70 | 73 | 35.2 | 0.840827 | 0.596997 | 0 | 0.176471 | 0 | 0 | 0.008299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61f3821391f916421b7dcc7d806b0069a8f04988 | 316 | py | Python | render_static/tests/bad_pattern.py | bckohan/django-static-templates | 91dc8f07ba8cb61694959cc41be3a40ed8678104 | [
"MIT"
] | 5 | 2021-02-25T20:23:18.000Z | 2022-03-16T04:43:14.000Z | render_static/tests/bad_pattern.py | bckohan/django-static-templates | 91dc8f07ba8cb61694959cc41be3a40ed8678104 | [
"MIT"
] | 48 | 2021-02-25T06:04:58.000Z | 2022-03-30T20:20:42.000Z | render_static/tests/bad_pattern.py | bckohan/django-static-templates | 91dc8f07ba8cb61694959cc41be3a40ed8678104 | [
"MIT"
] | null | null | null | import re
from django.urls import path
from render_static.tests.views import TestView
class Unrecognized:
regex = re.compile('Im not normal')
class NotAPattern:
pass
urlpatterns = [
path('test/simple/', TestView.as_view(), name='bad'),
NotAPattern()
]
urlpatterns[0].pattern = Unrecognized()
| 15.047619 | 57 | 0.708861 | 39 | 316 | 5.692308 | 0.74359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003831 | 0.174051 | 316 | 20 | 58 | 15.8 | 0.846743 | 0 | 0 | 0 | 0 | 0 | 0.088608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
61fb9ee25c144462b562757e58c7cf21956780c1 | 2,733 | py | Python | omdatabase/lib/kobas/kb/create_table.py | bioShaun/OMdatabase | 2a794af8e02e74527ae9400b207f17bf9b50bd24 | [
"MIT"
] | null | null | null | omdatabase/lib/kobas/kb/create_table.py | bioShaun/OMdatabase | 2a794af8e02e74527ae9400b207f17bf9b50bd24 | [
"MIT"
] | null | null | null | omdatabase/lib/kobas/kb/create_table.py | bioShaun/OMdatabase | 2a794af8e02e74527ae9400b207f17bf9b50bd24 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
def organism(con):
con.executescript(
'''
CREATE TABLE Organisms
(
abbr TEXT PRIMARY KEY,
name TEXT
);
''')
def species(con):
con.executescript(
'''
CREATE TABLE Genes
(
gid TEXT PRIMARY KEY,
name TEXT
);
CREATE TABLE GeneEntrezGeneIds
(
gid TE... | 18.342282 | 92 | 0.687889 | 356 | 2,733 | 5.117978 | 0.154494 | 0.126784 | 0.130626 | 0.062569 | 0.456641 | 0.231614 | 0.192097 | 0.052689 | 0.052689 | 0.052689 | 0 | 0 | 0.234541 | 2,733 | 148 | 93 | 18.466216 | 0.870937 | 0.007318 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
11033524d9556c411058eec67a071b2bd886b6df | 5,080 | py | Python | deprecated/thermobalance.py | mdbartos/RIPS | ab654138ccdcd8cb7c4ab53092132e0156812e95 | [
"MIT"
] | 1 | 2021-04-02T03:05:55.000Z | 2021-04-02T03:05:55.000Z | deprecated/thermobalance.py | mdbartos/RIPS | ab654138ccdcd8cb7c4ab53092132e0156812e95 | [
"MIT"
] | 2 | 2015-05-13T23:35:43.000Z | 2015-05-22T00:51:23.000Z | deprecated/thermobalance.py | mdbartos/RIPS | ab654138ccdcd8cb7c4ab53092132e0156812e95 | [
"MIT"
] | 2 | 2015-05-13T23:29:03.000Z | 2015-05-21T22:50:15.000Z | import math
import numpy as np
def T_c(I, T_amb, V, D, R_list, N_cond=1, T_range=[298,323,348], a_s=0.9, e_s=0.9, I_sun=900.0, temp_factor=1, wind_factor=1, n_iter=10):
"""
%% TO BE ASSIGNED
T_line % line temperature (C)
T_surf % line surface temperature (C)
T_film ... | 35.034483 | 137 | 0.456299 | 787 | 5,080 | 2.770013 | 0.27446 | 0.025688 | 0.016514 | 0.012844 | 0.094495 | 0.036697 | 0.011927 | 0.011927 | 0.011927 | 0 | 0 | 0.108571 | 0.41437 | 5,080 | 144 | 138 | 35.277778 | 0.624202 | 0.073819 | 0 | 0 | 0 | 0 | 0.004434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029412 | null | null | 0.044118 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
11067ec0c42dc7b6d2eca1efa398c1aee084a5fe | 503 | py | Python | cookschedule/urls.py | yuxuan-bill/Cook-Scheduler | 1bd9699ab1f8ba711987c0494a207961d859ec12 | [
"MIT"
] | null | null | null | cookschedule/urls.py | yuxuan-bill/Cook-Scheduler | 1bd9699ab1f8ba711987c0494a207961d859ec12 | [
"MIT"
] | null | null | null | cookschedule/urls.py | yuxuan-bill/Cook-Scheduler | 1bd9699ab1f8ba711987c0494a207961d859ec12 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
app_name = 'cookschedule'
urlpatterns = [
path('', views.index, name='index'),
path('login/', views.login, name='login'),
path('logout/', views.logout, name='logout'),
path('change_password/', views.change_password, name="change_password"),
path('us... | 35.928571 | 76 | 0.691849 | 65 | 503 | 5.153846 | 0.307692 | 0.125373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129225 | 503 | 14 | 77 | 35.928571 | 0.76484 | 0 | 0 | 0 | 0 | 0 | 0.279762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.166667 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
110b7c71af7d001d646d47f0dd6885b37cd40ba1 | 644 | py | Python | api/uwkgm/database/database/graph/triples/add.py | ichise-laboratory/uwkgm | 6505fa5d524336b30505804a3d241143cb1fa4bf | [
"BSD-3-Clause"
] | null | null | null | api/uwkgm/database/database/graph/triples/add.py | ichise-laboratory/uwkgm | 6505fa5d524336b30505804a3d241143cb1fa4bf | [
"BSD-3-Clause"
] | 6 | 2020-11-25T10:49:45.000Z | 2021-09-22T18:50:03.000Z | api/uwkgm/database/database/graph/triples/add.py | ichise-laboratory/uwkgm | 6505fa5d524336b30505804a3d241143cb1fa4bf | [
"BSD-3-Clause"
] | 1 | 2020-12-24T02:15:42.000Z | 2020-12-24T02:15:42.000Z | """Add triples to the graph database
The UWKGM project
:copyright: (c) 2020 Ichise Laboratory at NII & AIST
:author: Rungsiman Nararatwong
"""
from typing import Tuple
from dorest.managers.struct import generic
from dorest.managers.struct.decorators import endpoint
from database.database.graph import default_graph_... | 25.76 | 80 | 0.737578 | 88 | 644 | 5.352273 | 0.522727 | 0.050955 | 0.042463 | 0.076433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007449 | 0.166149 | 644 | 24 | 81 | 26.833333 | 0.869646 | 0.430124 | 0 | 0 | 0 | 0 | 0.008876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.571429 | 0 | 0.857143 | 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 |
110e787475034acf87d9e09bac8c00fb9456d45a | 250 | py | Python | example/example/urls.py | AI-App/Django-Browser-Reload | 36c8162ff9daff77d41e19750b67d104b0b0b2ec | [
"MIT"
] | null | null | null | example/example/urls.py | AI-App/Django-Browser-Reload | 36c8162ff9daff77d41e19750b67d104b0b0b2ec | [
"MIT"
] | null | null | null | example/example/urls.py | AI-App/Django-Browser-Reload | 36c8162ff9daff77d41e19750b67d104b0b0b2ec | [
"MIT"
] | null | null | null | from django.urls import include, path
from example.core import views as core_views
urlpatterns = [
path("", core_views.index_django),
path("jinja/", core_views.index_jinja),
path("__reload__/", include("django_browser_reload.urls")),
]
| 25 | 63 | 0.728 | 33 | 250 | 5.181818 | 0.454545 | 0.157895 | 0.163743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 250 | 9 | 64 | 27.777778 | 0.795349 | 0 | 0 | 0 | 0 | 0 | 0.172 | 0.104 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
110f9c3720bf0335a844623f8596e6e66148862e | 656 | py | Python | response/core/util.py | ojno/response | 0f8d2a8378a02c1f4680a04e4a943d7e32234a22 | [
"MIT"
] | 1,408 | 2019-05-03T11:39:34.000Z | 2022-03-31T17:51:04.000Z | response/core/util.py | ojno/response | 0f8d2a8378a02c1f4680a04e4a943d7e32234a22 | [
"MIT"
] | 105 | 2019-05-04T07:59:44.000Z | 2022-03-14T04:47:02.000Z | response/core/util.py | ojno/response | 0f8d2a8378a02c1f4680a04e4a943d7e32234a22 | [
"MIT"
] | 177 | 2019-05-03T18:11:46.000Z | 2022-03-25T04:49:57.000Z | import bleach
import bleach_whitelist
from django.conf import settings
from rest_framework.pagination import PageNumberPagination
def sanitize(string):
# bleach doesn't handle None so let's not pass it
if string and getattr(settings, "RESPONSE_SANITIZE_USER_INPUT", True):
return bleach.clean(
... | 27.333333 | 74 | 0.727134 | 77 | 656 | 5.961039 | 0.623377 | 0.130719 | 0.100218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013645 | 0.217988 | 656 | 23 | 75 | 28.521739 | 0.881092 | 0.071646 | 0 | 0 | 0 | 0 | 0.060956 | 0.046129 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.235294 | 0 | 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 |
1112a24132da3dc3ec68dbe6f3e5454b571071da | 1,426 | py | Python | generated-libraries/python/netapp/lun/fcp_down_hba_info.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | 2 | 2017-03-28T15:31:26.000Z | 2018-08-16T22:15:18.000Z | generated-libraries/python/netapp/lun/fcp_down_hba_info.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | generated-libraries/python/netapp/lun/fcp_down_hba_info.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | from netapp.netapp_object import NetAppObject
class FcpDownHbaInfo(NetAppObject):
"""
Information about a down FCP HBA
"""
_adapter = None
@property
def adapter(self):
"""
Which FC adapter.
"""
return self._adapter
@adapter.setter
def adapter(self, v... | 23 | 89 | 0.532959 | 135 | 1,426 | 5.525926 | 0.474074 | 0.032172 | 0.040214 | 0.032172 | 0.187668 | 0.187668 | 0.187668 | 0 | 0 | 0 | 0 | 0 | 0.371669 | 1,426 | 61 | 90 | 23.377049 | 0.832589 | 0.180926 | 0 | 0.176471 | 0 | 0 | 0.107921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.029412 | 0.088235 | 0.470588 | 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 |
1119d4e9e9854fe6930d82bb88bf791110d88102 | 3,403 | py | Python | pixelpuncher/player/migrations/0024_auto_20160906_0234.py | ej2/pixelpuncher | 8dd31090252c00772932c78ea21438d1e979f722 | [
"BSD-3-Clause"
] | null | null | null | pixelpuncher/player/migrations/0024_auto_20160906_0234.py | ej2/pixelpuncher | 8dd31090252c00772932c78ea21438d1e979f722 | [
"BSD-3-Clause"
] | null | null | null | pixelpuncher/player/migrations/0024_auto_20160906_0234.py | ej2/pixelpuncher | 8dd31090252c00772932c78ea21438d1e979f722 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-09-06 02:34
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django_extensions.db.fields
class Migration(migrations.Migration):
dependencies = [
('item', '0018_auto_20160906_... | 40.511905 | 159 | 0.588892 | 328 | 3,403 | 5.954268 | 0.323171 | 0.024578 | 0.035842 | 0.056324 | 0.433692 | 0.433692 | 0.370712 | 0.334869 | 0.285714 | 0.285714 | 0 | 0.022572 | 0.270937 | 3,403 | 83 | 160 | 41 | 0.764611 | 0.019101 | 0 | 0.526316 | 1 | 0 | 0.145427 | 0.013793 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.013158 | 0.052632 | 0 | 0.092105 | 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 |
11351d5facf175448d31d637b157d2fbbb78c91b | 1,053 | py | Python | tests/cfngin/lookups/handlers/test_hook_data.py | cmilam87/runway | e1b2aca8e9468bf246ae5afa878ed4a36fb36ab1 | [
"Apache-2.0"
] | null | null | null | tests/cfngin/lookups/handlers/test_hook_data.py | cmilam87/runway | e1b2aca8e9468bf246ae5afa878ed4a36fb36ab1 | [
"Apache-2.0"
] | null | null | null | tests/cfngin/lookups/handlers/test_hook_data.py | cmilam87/runway | e1b2aca8e9468bf246ae5afa878ed4a36fb36ab1 | [
"Apache-2.0"
] | null | null | null | """Tests for runway.cfngin.lookups.handlers.hook_data."""
import unittest
from runway.cfngin.context import Context
from runway.cfngin.lookups.handlers.hook_data import HookDataLookup
class TestHookDataLookup(unittest.TestCase):
"""Tests for runway.cfngin.lookups.handlers.hook_data.HookDataLookup."""
def se... | 35.1 | 76 | 0.680912 | 128 | 1,053 | 5.445313 | 0.3125 | 0.114778 | 0.081779 | 0.116212 | 0.317073 | 0.190818 | 0.190818 | 0.123386 | 0 | 0 | 0 | 0 | 0.184236 | 1,053 | 29 | 77 | 36.310345 | 0.811409 | 0.197531 | 0 | 0 | 0 | 0 | 0.101966 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.25 | false | 0 | 0.1875 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1137f2135aef8386f03d8c93ecf1122aac6d6f90 | 489 | py | Python | apps/UDPCountToLeds/receiver.py | csiro-wsn/tinyos-main-wsn-course | bbc0923f725c16dbf0ea15047a15809e4576281c | [
"BSD-3-Clause"
] | null | null | null | apps/UDPCountToLeds/receiver.py | csiro-wsn/tinyos-main-wsn-course | bbc0923f725c16dbf0ea15047a15809e4576281c | [
"BSD-3-Clause"
] | null | null | null | apps/UDPCountToLeds/receiver.py | csiro-wsn/tinyos-main-wsn-course | bbc0923f725c16dbf0ea15047a15809e4576281c | [
"BSD-3-Clause"
] | null | null | null | from socket import *
from struct import unpack
UDPSock = socket(AF_INET6,SOCK_DGRAM)
UDPSock.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1)
UDPSock.bind(("",1234))
#UDPSock.bind(("fec0::64",1234))
while True:
data,addr = UDPSock.recvfrom(1024)
if not data:
print "Client has exited!"
break
elif... | 21.26087 | 73 | 0.650307 | 66 | 489 | 4.757576 | 0.636364 | 0.070064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05168 | 0.208589 | 489 | 22 | 74 | 22.227273 | 0.75969 | 0.08998 | 0 | 0 | 0 | 0 | 0.140271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
113893aaf04b1031ba6c6c578788300a98d2e58d | 2,703 | py | Python | hard-gists/2344345/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/2344345/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/2344345/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | """
DrupalPasswordHasher
To use, put this in any app and add to your settings.py, something like this:
PASSWORD_HASHERS = (
'django.contrib.auth.hashers.PBKDF2PasswordHasher',
'myproject.myapp.drupal_hasher.DrupalPasswordHasher',
'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher',
'django.contrib.... | 27.865979 | 83 | 0.612283 | 321 | 2,703 | 5.093458 | 0.398754 | 0.039144 | 0.072783 | 0.102752 | 0.104587 | 0.082569 | 0.073395 | 0 | 0 | 0 | 0 | 0.03967 | 0.281909 | 2,703 | 96 | 84 | 28.15625 | 0.802679 | 0.403256 | 0 | 0.186047 | 0 | 0 | 0.0475 | 0.04 | 0 | 0 | 0.01 | 0 | 0 | 1 | 0.046512 | false | 0.162791 | 0.046512 | 0 | 0.232558 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1139728abd4261a2a7c6d0ed27fc3a7907f677b3 | 492 | py | Python | hudeven/P007.py | hudeven/algorithms | 710dfe1003d75aa350a5af25cf12240ad86dc25d | [
"Apache-2.0"
] | null | null | null | hudeven/P007.py | hudeven/algorithms | 710dfe1003d75aa350a5af25cf12240ad86dc25d | [
"Apache-2.0"
] | 1 | 2016-07-15T08:07:29.000Z | 2016-07-15T08:07:29.000Z | hudeven/P007.py | hudeven/algorithms | 710dfe1003d75aa350a5af25cf12240ad86dc25d | [
"Apache-2.0"
] | 1 | 2016-07-15T08:04:49.000Z | 2016-07-15T08:04:49.000Z | class Solution(object):
def reverse(self, x):
"""
:type x: int
:rtype: int
"""
MAX_INT = (1 << 31) - 1
MIN_INT = -MAX_INT - 1
if x == MIN_INT: return 0
res = 0
p = x if x >= 0 else -x
while p != 0:
digit = p % 10
... | 23.428571 | 38 | 0.376016 | 65 | 492 | 2.769231 | 0.353846 | 0.1 | 0.1 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079498 | 0.514228 | 492 | 20 | 39 | 24.6 | 0.67364 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
113ead56e28385094fc819a213199f68b10c54d7 | 5,225 | py | Python | AMAO/apps/Avaliacao/Questao/models/filtro_questao.py | arruda/amao | 83648aa2c408b1450d721b3072dc9db4b53edbb8 | [
"MIT"
] | 2 | 2017-04-26T14:08:02.000Z | 2017-09-01T13:10:17.000Z | AMAO/apps/Avaliacao/Questao/models/filtro_questao.py | arruda/amao | 83648aa2c408b1450d721b3072dc9db4b53edbb8 | [
"MIT"
] | null | null | null | AMAO/apps/Avaliacao/Questao/models/filtro_questao.py | arruda/amao | 83648aa2c408b1450d721b3072dc9db4b53edbb8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.db import models
from tipo_questao import TipoQuestao
from questao import Questao
#from libs.uniqifiers_benchmark import f11 as uniqifier
class FiltroQuestao(models.Model):
"""
Classe que ira gerar uma questao(QuestaoDeAvaliacao) com base em alguns criterios/filtros(TipoQue... | 37.862319 | 139 | 0.660478 | 582 | 5,225 | 5.840206 | 0.405498 | 0.017652 | 0.022948 | 0.015887 | 0.152104 | 0.129744 | 0.129744 | 0.112092 | 0.087379 | 0.087379 | 0 | 0.00668 | 0.25512 | 5,225 | 137 | 140 | 38.138686 | 0.86665 | 0.453397 | 0 | 0.085106 | 0 | 0 | 0.115129 | 0.009963 | 0 | 0 | 0 | 0.014599 | 0 | 1 | 0.085106 | false | 0 | 0.06383 | 0 | 0.425532 | 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 |
11429eb1809ea25d1156c2ff110ad1c2a073914f | 4,507 | py | Python | tools/extract_features.py | LogoRecognition/Detector | 19f3b489a002976da1b66c7827881fb6a93b5688 | [
"MIT"
] | null | null | null | tools/extract_features.py | LogoRecognition/Detector | 19f3b489a002976da1b66c7827881fb6a93b5688 | [
"MIT"
] | null | null | null | tools/extract_features.py | LogoRecognition/Detector | 19f3b489a002976da1b66c7827881fb6a93b5688 | [
"MIT"
] | null | null | null | import _init_paths
import tensorflow as tf
from fast_rcnn.config import cfg
from fast_rcnn.test import im_detect
from fast_rcnn.nms_wrapper import nms
from utils.timer import Timer
#import matplotlib
#matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
import os, sys, cv2
import argparse
from netwo... | 38.853448 | 369 | 0.584646 | 601 | 4,507 | 4.206323 | 0.392679 | 0.032041 | 0.014241 | 0.015427 | 0.148734 | 0.130538 | 0.130538 | 0.087025 | 0.087025 | 0.072785 | 0 | 0.029715 | 0.268249 | 4,507 | 115 | 370 | 39.191304 | 0.73681 | 0.084313 | 0 | 0 | 0 | 0 | 0.130701 | 0.035311 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.114583 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
11446baf4a7470845817644e8a87860076ded6cf | 3,218 | py | Python | populate_cones.py | peytondmurray/jdh2020 | 1bccedc46925140d9277fa1d17420e7cad16ffff | [
"MIT"
] | 1 | 2021-09-17T12:47:09.000Z | 2021-09-17T12:47:09.000Z | populate_cones.py | peytondmurray/jdh2020 | 1bccedc46925140d9277fa1d17420e7cad16ffff | [
"MIT"
] | null | null | null | populate_cones.py | peytondmurray/jdh2020 | 1bccedc46925140d9277fa1d17420e7cad16ffff | [
"MIT"
] | null | null | null | """Generate the array of cones representing the magnetization at each simulation cell. Then, animate
the cones to orient in the direction of the magnetization; also animate the material color of each cone
to map the z-component of the orientation to colors using Matplotlib's RdBu_r colormap.
"""
import bpy
import mathu... | 47.323529 | 130 | 0.65289 | 479 | 3,218 | 4.306889 | 0.348643 | 0.033931 | 0.015511 | 0.019389 | 0.165293 | 0.082889 | 0.075618 | 0.027145 | 0.027145 | 0.027145 | 0 | 0.01086 | 0.25606 | 3,218 | 67 | 131 | 48.029851 | 0.850877 | 0.375699 | 0 | 0.222222 | 1 | 0 | 0.074799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1144d43163cdbf3b72ace3d4a87b7c79032f61b9 | 933 | py | Python | dvc/prompt.py | amjadsaadeh/dvc | f405168619c2bb85430c4ded2585b57ebfd01bd7 | [
"Apache-2.0"
] | null | null | null | dvc/prompt.py | amjadsaadeh/dvc | f405168619c2bb85430c4ded2585b57ebfd01bd7 | [
"Apache-2.0"
] | null | null | null | dvc/prompt.py | amjadsaadeh/dvc | f405168619c2bb85430c4ded2585b57ebfd01bd7 | [
"Apache-2.0"
] | null | null | null | import sys
from dvc.progress import progress
try:
# NOTE: in Python3 raw_input() was renamed to input()
input = raw_input
except NameError:
pass
class Prompt(object):
def __init__(self):
self.default = None
def prompt(self, msg, default=False): # pragma: no cover
if self.defaul... | 22.756098 | 64 | 0.564845 | 122 | 933 | 4.254098 | 0.418033 | 0.063584 | 0.050096 | 0.05395 | 0.100193 | 0.100193 | 0 | 0 | 0 | 0 | 0 | 0.00311 | 0.310825 | 933 | 40 | 65 | 23.325 | 0.804044 | 0.091104 | 0 | 0.076923 | 0 | 0 | 0.067536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0.192308 | 0.115385 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
114752545e80d4b8771517c3984c936fca591739 | 1,044 | py | Python | scratchai/attacks/attacks/semantic.py | iArunava/scratchai | 9472f64fd3a06a1daa51486b68f5d3d3c36ac2f0 | [
"MIT"
] | 101 | 2019-04-20T13:52:15.000Z | 2021-11-05T02:41:11.000Z | scratchai/attacks/attacks/semantic.py | iArunava/scratch.ai | 9472f64fd3a06a1daa51486b68f5d3d3c36ac2f0 | [
"MIT"
] | 228 | 2019-04-16T11:57:13.000Z | 2021-08-02T23:15:27.000Z | scratchai/attacks/attacks/semantic.py | iArunava/scratch.ai | 9472f64fd3a06a1daa51486b68f5d3d3c36ac2f0 | [
"MIT"
] | 16 | 2019-04-16T16:41:00.000Z | 2021-02-08T01:13:09.000Z | """
Semantic adversarial Examples
"""
__all__ = ['semantic', 'Semantic']
def semantic(x, center:bool=True, max_val:float=1.):
"""
Semantic adversarial examples.
https://arxiv.org/abs/1703.06857
Note: data must either be centered (so that the negative image can be
made by simple negation) or must be in t... | 26.1 | 83 | 0.619732 | 141 | 1,044 | 4.475177 | 0.546099 | 0.038035 | 0.085578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018337 | 0.216475 | 1,044 | 39 | 84 | 26.769231 | 0.753056 | 0.599617 | 0 | 0 | 0 | 0 | 0.053691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0.1 | 0.7 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.