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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2924c95478d3b2b009c97db241c84ce1bf94134b | 309 | py | Python | Python_Codes/module.py | arnelimperial/Code-Py | c48be58027e99f12a358644b45d502c8fcbd3b98 | [
"Zlib"
] | null | null | null | Python_Codes/module.py | arnelimperial/Code-Py | c48be58027e99f12a358644b45d502c8fcbd3b98 | [
"Zlib"
] | null | null | null | Python_Codes/module.py | arnelimperial/Code-Py | c48be58027e99f12a358644b45d502c8fcbd3b98 | [
"Zlib"
] | null | null | null | #!/usr/bin/env python3
import sys, os
def printme(*args):
for arg in args:
print("I got:", arg)
for arg in args:
print("The parameter was",len(arg),"characters long.")
string_sample= "Exampleline"
if __name__ == "__main__":
printme(string_sample)
| 17.166667 | 66 | 0.579288 | 39 | 309 | 4.333333 | 0.717949 | 0.071006 | 0.094675 | 0.142012 | 0.201183 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004587 | 0.294498 | 309 | 17 | 67 | 18.176471 | 0.770642 | 0.067961 | 0 | 0.222222 | 0 | 0 | 0.202797 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
29254a98e534c82658d4a7a21de389686ea0930c | 4,431 | py | Python | tests/unit/concurrently/test_CommunicationChannel0.py | benkrikler/alphatwirl | cda7d12fec21291ea33af23234fc08be19430934 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/concurrently/test_CommunicationChannel0.py | benkrikler/alphatwirl | cda7d12fec21291ea33af23234fc08be19430934 | [
"BSD-3-Clause"
] | 7 | 2018-02-26T10:32:26.000Z | 2018-03-19T12:27:12.000Z | tests/unit/concurrently/test_CommunicationChannel0.py | benkrikler/alphatwirl | cda7d12fec21291ea33af23234fc08be19430934 | [
"BSD-3-Clause"
] | null | null | null | # Tai Sakuma <tai.sakuma@gmail.com>
import pytest
try:
import unittest.mock as mock
except ImportError:
import mock
from alphatwirl.concurrently import CommunicationChannel0
##__________________________________________________________________||
@pytest.fixture()
def obj():
return CommunicationChannel0()
... | 25.612717 | 70 | 0.696231 | 482 | 4,431 | 4.649378 | 0.130705 | 0.099955 | 0.149933 | 0.046408 | 0.739402 | 0.702811 | 0.619813 | 0.549308 | 0.521642 | 0.521642 | 0 | 0.040622 | 0.172196 | 4,431 | 172 | 71 | 25.761628 | 0.570338 | 0.207177 | 0 | 0.646018 | 0 | 0 | 0.053945 | 0 | 0 | 0 | 0 | 0 | 0.097345 | 1 | 0.097345 | false | 0 | 0.044248 | 0.00885 | 0.150442 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
292559212b6828624cbcc8c294be577697638301 | 2,255 | py | Python | PointDelta.py | VulcanRobotics/VulcanScoutingApp2018 | 4c3559cc141120c9c5f7457db682ca4e67c0e189 | [
"MIT"
] | null | null | null | PointDelta.py | VulcanRobotics/VulcanScoutingApp2018 | 4c3559cc141120c9c5f7457db682ca4e67c0e189 | [
"MIT"
] | null | null | null | PointDelta.py | VulcanRobotics/VulcanScoutingApp2018 | 4c3559cc141120c9c5f7457db682ca4e67c0e189 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#This file pulls the match schedule data from The Blue Alliance API to local directory
#!!EVENT KEYS:
#Hatboro-Horsham: 2018pahat
#Springside Chestnut Hill: 2018paphi
#Seneca: njtab
#FIRST Mid-Atlantic District Championship: mrcmp
import requests
import json
import module_locator
import csv
i... | 25.055556 | 130 | 0.576497 | 301 | 2,255 | 4.292359 | 0.355482 | 0.018576 | 0.013932 | 0.025542 | 0.148607 | 0.02322 | 0 | 0 | 0 | 0 | 0 | 0.023339 | 0.25898 | 2,255 | 89 | 131 | 25.337079 | 0.74985 | 0.536142 | 0 | 0 | 0 | 0 | 0.228831 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.178571 | 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 |
29292c693734a1b1135b4b5698e7ff2a0c84e8ca | 369 | py | Python | Encoder/main.py | LilJohny/HuffmanEncoding | 7b11fbee66151943daa3637ab3ff98a48706e1a9 | [
"MIT"
] | null | null | null | Encoder/main.py | LilJohny/HuffmanEncoding | 7b11fbee66151943daa3637ab3ff98a48706e1a9 | [
"MIT"
] | null | null | null | Encoder/main.py | LilJohny/HuffmanEncoding | 7b11fbee66151943daa3637ab3ff98a48706e1a9 | [
"MIT"
] | null | null | null | from encoding import Encoder
def main():
encoder = Encoder()
message = input("Type message to encode: ")
message = message.lower()
encoded_message, encoding_table = encoder.encode_message(message)
print("Encoding table :")
print(encoding_table)
print("Encoded message :")
print(encoded_... | 21.705882 | 69 | 0.680217 | 41 | 369 | 5.804878 | 0.414634 | 0.176471 | 0.168067 | 0.193277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205962 | 369 | 16 | 70 | 23.0625 | 0.812287 | 0 | 0 | 0 | 0 | 0 | 0.176152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.166667 | 0.333333 | 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 |
292aaafe3cffc401b327a395b4373202b998e5a9 | 3,713 | py | Python | member/views.py | xyhlinx/Manta | 2dd5b01804793c419d34ac77a7f1fdd26efe746d | [
"Apache-2.0"
] | null | null | null | member/views.py | xyhlinx/Manta | 2dd5b01804793c419d34ac77a7f1fdd26efe746d | [
"Apache-2.0"
] | null | null | null | member/views.py | xyhlinx/Manta | 2dd5b01804793c419d34ac77a7f1fdd26efe746d | [
"Apache-2.0"
] | null | null | null | import random
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework.response import Response
from rest_framework.generics import ListAPIView, CreateAPIView, RetrieveAPIView, DestroyAPIView
from member.models import Tag
from member.serializer import TagDetailSerializer, UserSerializer, Group... | 39.5 | 95 | 0.685699 | 430 | 3,713 | 5.718605 | 0.183721 | 0.062627 | 0.065067 | 0.040667 | 0.494103 | 0.48841 | 0.410736 | 0.250508 | 0.216348 | 0.216348 | 0 | 0.01204 | 0.217075 | 3,713 | 93 | 96 | 39.924731 | 0.833849 | 0.007002 | 0 | 0.386667 | 0 | 0 | 0.015744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.106667 | 0.013333 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
292c7bf56d659be8a7199b214ba46ab792bb9fbf | 1,157 | py | Python | examples/python/raw_api/telMatrix.py | sys-bio/rrplugins | 03af6ea70d73462ad88103f1e446dc0c5f3f971c | [
"Apache-2.0"
] | null | null | null | examples/python/raw_api/telMatrix.py | sys-bio/rrplugins | 03af6ea70d73462ad88103f1e446dc0c5f3f971c | [
"Apache-2.0"
] | 8 | 2015-12-02T18:20:43.000Z | 2021-08-20T17:13:34.000Z | examples/python/raw_api/telMatrix.py | sys-bio/telPlugins | 03af6ea70d73462ad88103f1e446dc0c5f3f971c | [
"Apache-2.0"
] | 3 | 2015-01-27T18:53:45.000Z | 2015-07-13T17:07:50.000Z | #-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: Totte
#
# Created: 07/03/2014
# Copyright: (c) Totte 2014
# Licence: <Exclusive>
#-------------------------------------------------------------------------------
import tep... | 28.925 | 80 | 0.555748 | 108 | 1,157 | 5.888889 | 0.638889 | 0.042453 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02072 | 0.207433 | 1,157 | 40 | 81 | 28.925 | 0.672846 | 0.369058 | 0 | 0 | 0 | 0 | 0.235704 | 0.104603 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
29385a4d65f5cac0a77a370db81a11288d9e898e | 534 | py | Python | pydocstring/formatters/__init__.py | wizmer/pydocstring | 7248045285f1cb2e627225694787bfaedd9b520a | [
"MIT"
] | 20 | 2017-09-20T07:10:02.000Z | 2022-02-24T13:52:03.000Z | pydocstring/formatters/__init__.py | wizmer/pydocstring | 7248045285f1cb2e627225694787bfaedd9b520a | [
"MIT"
] | 11 | 2017-09-19T04:46:35.000Z | 2022-02-21T20:52:19.000Z | pydocstring/formatters/__init__.py | wizmer/pydocstring | 7248045285f1cb2e627225694787bfaedd9b520a | [
"MIT"
] | 6 | 2017-06-23T14:01:11.000Z | 2022-01-05T08:00:29.000Z | """
pydocstring formatters, use :py:func:get() to get the formatter you want
"""
from pydocstring.formatters import google, numpy, reST
from pydocstring.exc import InvalidFormatterError
_formatter_map = {
"google": google,
"numpy": numpy,
"rest": reST
}
def get(formatter_type):
"""Return the requested ... | 29.666667 | 72 | 0.737828 | 64 | 534 | 5.96875 | 0.484375 | 0.204188 | 0.099476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 534 | 17 | 73 | 31.411765 | 0.86036 | 0.224719 | 0 | 0 | 0 | 0 | 0.037406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2938cdef31eb5aa48cd5294d4e2374f5e09bb048 | 1,041 | py | Python | dataset_preprocessing/generate_OF_FDD.py | malikhussain72/cnn_fall-detection | 98f8338f82553e01601f2d0c81b8ebdde9fcae3e | [
"MIT"
] | 183 | 2017-09-21T08:24:41.000Z | 2022-03-31T15:56:39.000Z | dataset_preprocessing/generate_OF_FDD.py | malikhussain72/cnn_fall-detection | 98f8338f82553e01601f2d0c81b8ebdde9fcae3e | [
"MIT"
] | 52 | 2018-01-09T18:56:35.000Z | 2022-03-11T23:17:22.000Z | dataset_preprocessing/generate_OF_FDD.py | malikhussain72/cnn_fall-detection | 98f8338f82553e01601f2d0c81b8ebdde9fcae3e | [
"MIT"
] | 68 | 2018-03-01T17:34:16.000Z | 2022-03-31T07:04:18.000Z |
import os
import cv2
import glob
import sys
sys.path.append('/usr/local/lib/python2.7/site-packages/')
#os.system('/home/adrian/dense_flow/build/extract_cpu -f={} -x={} -y={} -i=tmp/image -b 20 -t 1 -d 3 -o=dir'.format('test.avi', '/flow_x', '/flow_y'))
data_folder = 'FDD_images/'
output_path = 'FDD_OF/'
i = 0
if no... | 38.555556 | 171 | 0.663785 | 179 | 1,041 | 3.715084 | 0.346369 | 0.090226 | 0.07218 | 0.04812 | 0.357895 | 0.306767 | 0.306767 | 0.306767 | 0.306767 | 0.216541 | 0 | 0.015891 | 0.153698 | 1,041 | 26 | 172 | 40.038462 | 0.738933 | 0 | 0 | 0 | 0 | 0.047619 | 0.196629 | 0.091011 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.190476 | 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 |
293afb356899b8be48779d5c7eda40739b2ad26e | 1,815 | py | Python | covid19/covid19.py | mobarski/sandbox | 64ac79143750d5dcbd4d0f3abdab6efeb9bdf50c | [
"MIT"
] | null | null | null | covid19/covid19.py | mobarski/sandbox | 64ac79143750d5dcbd4d0f3abdab6efeb9bdf50c | [
"MIT"
] | null | null | null | covid19/covid19.py | mobarski/sandbox | 64ac79143750d5dcbd4d0f3abdab6efeb9bdf50c | [
"MIT"
] | null | null | null | import inverness
model = inverness.Model('model_1000/').load()
task = "Outcomes data for COVID-19 after mechanical ventilation adjusted for age"
# TODO sprawdzanie zakresu -1,+2
results = model.tfidf_query('mouse|mice|^rats|sheep|^pig$|pigs|piglet|cavia|rabbit')
for ti,token,df in zip(*results):
print(ti,token,df)
... | 27.923077 | 84 | 0.682645 | 285 | 1,815 | 4.214035 | 0.375439 | 0.052456 | 0.064113 | 0.093256 | 0.153206 | 0.109908 | 0.086595 | 0.086595 | 0.086595 | 0.086595 | 0 | 0.02378 | 0.119559 | 1,815 | 64 | 85 | 28.359375 | 0.727785 | 0.06832 | 0 | 0.085106 | 0 | 0.021277 | 0.251632 | 0.045104 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0.042553 | false | 0 | 0.042553 | 0.021277 | 0.12766 | 0.170213 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
2941f411feac7c83a887b832195123cdc0712b5b | 4,872 | py | Python | kungfucms/apps/account/models.py | kungfusoft/kungfucms | 03a4c322f3d074dba47fd512c638556059ac6565 | [
"MIT"
] | null | null | null | kungfucms/apps/account/models.py | kungfusoft/kungfucms | 03a4c322f3d074dba47fd512c638556059ac6565 | [
"MIT"
] | null | null | null | kungfucms/apps/account/models.py | kungfusoft/kungfucms | 03a4c322f3d074dba47fd512c638556059ac6565 | [
"MIT"
] | null | null | null | from django.core.mail import send_mail
from django.utils.translation import ugettext as _
from django.utils import timezone
from django.db import models
from django.contrib.auth.models import UserManager, PermissionsMixin
from django.contrib.auth.base_user import AbstractBaseUser
from django.contrib.auth.validators imp... | 33.142857 | 95 | 0.620895 | 506 | 4,872 | 5.733202 | 0.290514 | 0.053085 | 0.043433 | 0.04757 | 0.315408 | 0.284385 | 0.268528 | 0.24302 | 0.226818 | 0.190969 | 0 | 0.005961 | 0.276888 | 4,872 | 146 | 96 | 33.369863 | 0.817485 | 0 | 0 | 0.157895 | 0 | 0 | 0.122998 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0.070175 | 0.070175 | 0.017544 | 0.438596 | 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 |
2943e426460e259ab300109dee52319cba74812d | 4,446 | py | Python | development/ezproxy-research/experiments/parse-openurl.py | humford/EdLabResearch | e6479d731e9d149be0d6cd0e8ed5cd1bf7e9f3c7 | [
"MIT"
] | 1 | 2019-06-17T20:41:32.000Z | 2019-06-17T20:41:32.000Z | development/ezproxy-research/experiments/parse-openurl.py | humford/EdLabResearch | e6479d731e9d149be0d6cd0e8ed5cd1bf7e9f3c7 | [
"MIT"
] | null | null | null | development/ezproxy-research/experiments/parse-openurl.py | humford/EdLabResearch | e6479d731e9d149be0d6cd0e8ed5cd1bf7e9f3c7 | [
"MIT"
] | null | null | null | from urllib.parse import urlparse
from urllib.parse import parse_qsl
from urllib.parse import urlencode
import re
import requests
from xml.etree import ElementTree
import xmltodict
import json
link = "http://find.galegroup.com/openurl/openurl?url_ver=Z39.88-2004&ctx_enc=info:ofi:enc:UTF-8&rft_val_fmt=info:ofi:/fmt:ke... | 45.835052 | 470 | 0.75821 | 708 | 4,446 | 4.649718 | 0.35452 | 0.024301 | 0.038275 | 0.018226 | 0.284933 | 0.246355 | 0.236027 | 0.211422 | 0.182868 | 0.182868 | 0 | 0.056785 | 0.08502 | 4,446 | 97 | 471 | 45.835052 | 0.752458 | 0.044984 | 0 | 0.257143 | 0 | 0.128571 | 0.617127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.114286 | 0 | 0.371429 | 0.014286 | 0 | 0 | 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 |
29469e8823005b9377d4ae309d3f3b183d9b1955 | 272 | py | Python | exercicios/ex013.py | felipeffs/AprendendoPython | 29f0e62ecfcd518acd0a7b02d83af278eb3254b5 | [
"MIT"
] | 1 | 2021-07-12T12:30:29.000Z | 2021-07-12T12:30:29.000Z | exercicios/ex013.py | felipeffs/AprendendoPython | 29f0e62ecfcd518acd0a7b02d83af278eb3254b5 | [
"MIT"
] | null | null | null | exercicios/ex013.py | felipeffs/AprendendoPython | 29f0e62ecfcd518acd0a7b02d83af278eb3254b5 | [
"MIT"
] | null | null | null | """
Faça um algoritmo que leia o salário de um funcionário e mostre seu
novo salário, com 15% de aumento.
"""
salario = float(input('Salário atual do funcionário: R$'))
salario = salario * 1.15
print('Salário do funcionário com 15% de aumento: R${:.2f}'.format(salario))
| 30.222222 | 76 | 0.716912 | 43 | 272 | 4.534884 | 0.604651 | 0.051282 | 0.071795 | 0.14359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034783 | 0.154412 | 272 | 8 | 77 | 34 | 0.813043 | 0.371324 | 0 | 0 | 0 | 0 | 0.509202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2949c0364c0b256643fa9c7949db911582018d36 | 14,274 | py | Python | stackrnn.py | sarthak-srivastava/Learning-Iterative-Image-Reconstruction | 652683cc07f84f38362009a3b47c4fb89b7ec66d | [
"MIT"
] | null | null | null | stackrnn.py | sarthak-srivastava/Learning-Iterative-Image-Reconstruction | 652683cc07f84f38362009a3b47c4fb89b7ec66d | [
"MIT"
] | null | null | null | stackrnn.py | sarthak-srivastava/Learning-Iterative-Image-Reconstruction | 652683cc07f84f38362009a3b47c4fb89b7ec66d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""StackRNN.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1QPJaOtX74j-65ubd8VjryjgqxO54Svjh
"""
import numpy as np
import tensorflow as tf
def matmul_broadcast(a, b):
"""Multiply all innermost 2x2 matrices of a and ... | 41.017241 | 81 | 0.571459 | 1,987 | 14,274 | 3.865627 | 0.135883 | 0.031246 | 0.04062 | 0.021872 | 0.684546 | 0.672699 | 0.651998 | 0.62557 | 0.609165 | 0.596407 | 0 | 0.018033 | 0.308463 | 14,274 | 348 | 82 | 41.017241 | 0.760105 | 0.257391 | 0 | 0.584211 | 1 | 0 | 0.018672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073684 | false | 0 | 0.010526 | 0.031579 | 0.147368 | 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 |
294af55efb787e1f075265438d40afab946d670f | 39,669 | py | Python | python/gtoContainer/gtoContainer.py | marza-animation-planet/gto | 4f6e6dce73b1da6f6618c8e8f9bb5f84357f08df | [
"BSD-3-Clause"
] | null | null | null | python/gtoContainer/gtoContainer.py | marza-animation-planet/gto | 4f6e6dce73b1da6f6618c8e8f9bb5f84357f08df | [
"BSD-3-Clause"
] | null | null | null | python/gtoContainer/gtoContainer.py | marza-animation-planet/gto | 4f6e6dce73b1da6f6618c8e8f9bb5f84357f08df | [
"BSD-3-Clause"
] | 1 | 2019-04-04T00:05:35.000Z | 2019-04-04T00:05:35.000Z | #
# Copyright (C) 2004 Tweak Films
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# This library is distribu... | 35.513876 | 93 | 0.577403 | 4,299 | 39,669 | 5.164457 | 0.117934 | 0.011891 | 0.007702 | 0.006486 | 0.489055 | 0.401721 | 0.344654 | 0.300288 | 0.261103 | 0.212278 | 0 | 0.002208 | 0.337745 | 39,669 | 1,116 | 94 | 35.545699 | 0.842907 | 0.049157 | 0 | 0.551783 | 0 | 0 | 0.037974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.001698 | 0.006791 | 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 |
294fa53b06466b33595ec5ad704c823a03b5784e | 763 | py | Python | Backend/v1/shop/urls.py | yaya-BL/Restaurants_self-order_app | c6ea560e41ecc2e7a667d518ec815a2c14c68e88 | [
"MIT"
] | null | null | null | Backend/v1/shop/urls.py | yaya-BL/Restaurants_self-order_app | c6ea560e41ecc2e7a667d518ec815a2c14c68e88 | [
"MIT"
] | 15 | 2021-01-23T02:07:01.000Z | 2021-02-01T04:54:01.000Z | Backend/v1/shop/urls.py | yaya-BL/Restaurants_self-order_app | c6ea560e41ecc2e7a667d518ec815a2c14c68e88 | [
"MIT"
] | 1 | 2021-01-11T06:15:49.000Z | 2021-01-11T06:15:49.000Z | from . import views
from rest_framework.routers import SimpleRouter
from django.urls import path
router = SimpleRouter(trailing_slash=False)
router.register('branch', views.BranchViewSet)
router.register('shop', views.ShopViewSet)
# urlpatterns = [
# path('add/', views.ShopCreateAPIView.as_view(), name="create-shop... | 47.6875 | 95 | 0.726081 | 95 | 763 | 5.747368 | 0.368421 | 0.065934 | 0.10989 | 0.058608 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081258 | 763 | 16 | 96 | 47.6875 | 0.778887 | 0.673657 | 0 | 0 | 0 | 0 | 0.041494 | 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 |
295587eccba3e0e16e82b330aae45c1bd0d7fe30 | 1,918 | py | Python | eve_mail_queue/migrations/0001_initial.py | kimnnmadsen/eve-abyssal-market | 1e07498b98be9282b969badff51d55258c72e7ed | [
"MIT"
] | 13 | 2018-08-23T14:27:22.000Z | 2020-12-07T12:35:38.000Z | eve_mail_queue/migrations/0001_initial.py | kimnnmadsen/eve-abyssal-market | 1e07498b98be9282b969badff51d55258c72e7ed | [
"MIT"
] | 25 | 2018-10-09T14:37:33.000Z | 2020-05-15T20:21:48.000Z | eve_mail_queue/migrations/0001_initial.py | kimnnmadsen/eve-abyssal-market | 1e07498b98be9282b969badff51d55258c72e7ed | [
"MIT"
] | 4 | 2021-08-12T05:34:05.000Z | 2022-01-06T05:28:36.000Z | # Generated by Django 2.0.5 on 2018-09-07 17:46
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),
]
ope... | 39.142857 | 142 | 0.595412 | 193 | 1,918 | 5.772021 | 0.419689 | 0.035907 | 0.050269 | 0.078995 | 0.334829 | 0.334829 | 0.307899 | 0.307899 | 0.307899 | 0.212747 | 0 | 0.014936 | 0.266945 | 1,918 | 48 | 143 | 39.958333 | 0.777383 | 0.023462 | 0 | 0.390244 | 1 | 0 | 0.099412 | 0.013362 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.073171 | 0 | 0.170732 | 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 |
295f20bd1ea4e45e996fb5cc7c1f2125a7884bc0 | 3,048 | py | Python | pygem/openfhandler.py | endelgado/PyGeM | a5bc86b5914f3334f53f9b9cf42e7fa29f012678 | [
"MIT"
] | 2 | 2018-05-01T00:46:30.000Z | 2021-05-26T06:37:30.000Z | pygem/openfhandler.py | endelgado/PyGeM | a5bc86b5914f3334f53f9b9cf42e7fa29f012678 | [
"MIT"
] | null | null | null | pygem/openfhandler.py | endelgado/PyGeM | a5bc86b5914f3334f53f9b9cf42e7fa29f012678 | [
"MIT"
] | 1 | 2019-08-03T07:26:35.000Z | 2019-08-03T07:26:35.000Z | """
Derived module from filehandler.py to handle OpenFOAM files.
"""
import numpy as np
import pygem.filehandler as fh
class OpenFoamHandler(fh.FileHandler):
"""
OpenFOAM mesh file handler class.
:cvar string infile: name of the input file to be processed.
:cvar string outfile: name of the output fil... | 32.774194 | 80 | 0.536089 | 364 | 3,048 | 4.35989 | 0.293956 | 0.069313 | 0.022684 | 0.026465 | 0.340265 | 0.304978 | 0.249527 | 0.249527 | 0.249527 | 0.215501 | 0 | 0.014698 | 0.375 | 3,048 | 92 | 81 | 33.130435 | 0.818373 | 0.338255 | 0 | 0.355556 | 0 | 0 | 0.006071 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 1 | 0.066667 | false | 0 | 0.044444 | 0 | 0.155556 | 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 |
2964320d62e4cbdc9f09d7cf6b596fcbdb88ca31 | 16,460 | py | Python | IPython/core/prompts.py | tinyclues/ipython | 71e32606b0242772b81c9be0d40751ba47d95f2c | [
"BSD-3-Clause-Clear"
] | 2 | 2015-04-21T12:12:43.000Z | 2015-04-21T12:12:54.000Z | IPython/core/prompts.py | 08saikiranreddy/ipython | 3498382180ad409592f46a9dd0d190ca917bfbff | [
"BSD-3-Clause-Clear"
] | 1 | 2015-07-16T22:26:53.000Z | 2015-07-16T22:26:53.000Z | IPython/core/prompts.py | 08saikiranreddy/ipython | 3498382180ad409592f46a9dd0d190ca917bfbff | [
"BSD-3-Clause-Clear"
] | null | null | null | # -*- coding: utf-8 -*-
"""Classes for handling input/output prompts.
Authors:
* Fernando Perez
* Brian Granger
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2010 The IPython Development Team
# Copyright (C) 2001-2007 Fernando Perez <fperez@colora... | 37.665904 | 84 | 0.59113 | 2,081 | 16,460 | 4.530034 | 0.257088 | 0.023868 | 0.017927 | 0.014851 | 0.222977 | 0.2007 | 0.170574 | 0.163148 | 0.150631 | 0.145327 | 0 | 0.007256 | 0.238092 | 16,460 | 436 | 85 | 37.752294 | 0.744438 | 0.359417 | 0 | 0.28972 | 0 | 0 | 0.11023 | 0.037385 | 0 | 0 | 0 | 0.004587 | 0 | 0 | null | null | 0 | 0.042056 | null | null | 0.004673 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2966829b4e118f5e4d0c3f076e89ff08b5510e8d | 29,287 | py | Python | oasislmf/model_preparation/summaries.py | ibailey-SCOR/OasisLMF | 966b4de4e1e64851970f4291c5bdfe7edc20cb7a | [
"BSD-3-Clause"
] | null | null | null | oasislmf/model_preparation/summaries.py | ibailey-SCOR/OasisLMF | 966b4de4e1e64851970f4291c5bdfe7edc20cb7a | [
"BSD-3-Clause"
] | null | null | null | oasislmf/model_preparation/summaries.py | ibailey-SCOR/OasisLMF | 966b4de4e1e64851970f4291c5bdfe7edc20cb7a | [
"BSD-3-Clause"
] | null | null | null | __all__ = [
'get_summary_mapping',
'generate_summaryxref_files',
'merge_oed_to_mapping',
'write_exposure_summary',
'write_summary_levels',
'write_mapping_file',
]
import io
import json
import os
import warnings
import pandas as pd
from ..utils.coverages import SUPPORTED_COVERAGE_TYPES
from ..... | 36.02337 | 159 | 0.653908 | 3,964 | 29,287 | 4.528759 | 0.112765 | 0.021168 | 0.010695 | 0.020499 | 0.362745 | 0.307208 | 0.250724 | 0.195633 | 0.147337 | 0.14199 | 0 | 0.004509 | 0.250282 | 29,287 | 812 | 160 | 36.067734 | 0.813089 | 0.305835 | 0 | 0.200935 | 1 | 0 | 0.113246 | 0.006526 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028037 | false | 0 | 0.03271 | 0 | 0.091122 | 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 |
2967bc78ed4004053683c5dc0bab1d07a4092c8c | 9,906 | py | Python | pygorithm/data_structures/tree.py | bharadwaj-9/pygorithm | da9105384ffc87bdd9d20f6e8fecda9f0fe011b0 | [
"MIT"
] | 1 | 2021-03-09T18:27:56.000Z | 2021-03-09T18:27:56.000Z | pygorithm/data_structures/tree.py | bharadwaj-9/pygorithm | da9105384ffc87bdd9d20f6e8fecda9f0fe011b0 | [
"MIT"
] | null | null | null | pygorithm/data_structures/tree.py | bharadwaj-9/pygorithm | da9105384ffc87bdd9d20f6e8fecda9f0fe011b0 | [
"MIT"
] | null | null | null | """
Author: OMKAR PATHAK
Created On: 9th August 2017
Node class to create a node
for binary tree
"""
import inspect
class Node(object):
"""
Node class for creating a node for tree.
Each node has its data and a pointer
that points to next node in the Linked List
"""
def __init__(self, data=No... | 26.918478 | 80 | 0.546941 | 1,201 | 9,906 | 4.404663 | 0.101582 | 0.034783 | 0.039698 | 0.031758 | 0.645936 | 0.588091 | 0.53724 | 0.514934 | 0.449716 | 0.449716 | 0 | 0.000812 | 0.378357 | 9,906 | 367 | 81 | 26.991826 | 0.858233 | 0.299919 | 0 | 0.639053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.213018 | false | 0 | 0.005917 | 0 | 0.473373 | 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 |
296cb91757b6d37bd520873865f0789ce93d0eb7 | 32,252 | py | Python | scripts/populate_conferences.py | alexschiller/osf.io | 4122d4be152c6189142c2ebb19cfdee09c77035d | [
"Apache-2.0"
] | 1 | 2015-10-02T18:35:53.000Z | 2015-10-02T18:35:53.000Z | scripts/populate_conferences.py | alexschiller/osf.io | 4122d4be152c6189142c2ebb19cfdee09c77035d | [
"Apache-2.0"
] | 4 | 2016-05-13T14:24:16.000Z | 2017-03-30T15:28:31.000Z | scripts/populate_conferences.py | alexschiller/osf.io | 4122d4be152c6189142c2ebb19cfdee09c77035d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
import os
import sys
from modularodm import Q
from modularodm.exceptions import ModularOdmException
from framework.auth.core import User
from website import settings
from website.app import init_app
from website.conferences.model import Conference
from datetime import datetim... | 33.456432 | 217 | 0.539998 | 3,277 | 32,252 | 5.187977 | 0.220934 | 0.028822 | 0.071996 | 0.095994 | 0.494383 | 0.415446 | 0.354803 | 0.32551 | 0.289983 | 0.274278 | 0 | 0.059971 | 0.298927 | 32,252 | 963 | 218 | 33.491173 | 0.69192 | 0.00276 | 0 | 0.501587 | 0 | 0.012698 | 0.504929 | 0.007152 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.009524 | null | null | 0.003175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
296e2abaaf75b3cd6743e3d9680c30edc3e9283c | 1,736 | py | Python | fitmarketapp/models.py | chrisbradshaw/fit-market | 31fe88f7460e98024dfecb4ae7df9f7a71f4ccb0 | [
"MIT"
] | 4 | 2018-10-23T17:16:54.000Z | 2021-11-01T18:50:42.000Z | fitmarketapp/models.py | chrisbradshaw/fit-market | 31fe88f7460e98024dfecb4ae7df9f7a71f4ccb0 | [
"MIT"
] | 3 | 2020-06-05T17:29:55.000Z | 2021-06-10T19:09:49.000Z | fitmarketapp/models.py | chrisbradshaw/work-genie | 31fe88f7460e98024dfecb4ae7df9f7a71f4ccb0 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
# Create your models here.
class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
avatar = models.CharField(max_length=500)
about = models.CharField(max_length=1000)
... | 26.30303 | 71 | 0.663594 | 202 | 1,736 | 5.539604 | 0.366337 | 0.093834 | 0.112601 | 0.150134 | 0.527256 | 0.406613 | 0.406613 | 0.369973 | 0.289544 | 0.289544 | 0 | 0.016141 | 0.214862 | 1,736 | 65 | 72 | 26.707692 | 0.804842 | 0.013825 | 0 | 0.327273 | 0 | 0 | 0.067836 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072727 | false | 0 | 0.054545 | 0.072727 | 0.618182 | 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 |
296ef0d68213990844b6d69bb91facc3963005aa | 6,390 | py | Python | shadowsocks/dbtransfer.py | omoment/shadowsocks-rm | 013de9970ed828dcbf19ea22bfee819ec040c539 | [
"Apache-2.0"
] | 7 | 2018-07-29T08:21:54.000Z | 2019-07-10T11:50:56.000Z | shadowsocks/dbtransfer.py | omoment/shadowsocks-rm | 013de9970ed828dcbf19ea22bfee819ec040c539 | [
"Apache-2.0"
] | null | null | null | shadowsocks/dbtransfer.py | omoment/shadowsocks-rm | 013de9970ed828dcbf19ea22bfee819ec040c539 | [
"Apache-2.0"
] | 2 | 2018-12-14T03:30:07.000Z | 2019-03-25T03:13:47.000Z | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import logging
import cymysql
import time
import sys
import socket
import config
import json
class DbTransfer(object):
instance = None
def __init__(self):
self.last_get_transfer = {}
@staticmethod
def get_instance():
if DbTransfer.instance ... | 38.963415 | 129 | 0.531299 | 769 | 6,390 | 4.244473 | 0.226268 | 0.021446 | 0.012255 | 0.02788 | 0.464767 | 0.439951 | 0.432598 | 0.392463 | 0.371017 | 0.348958 | 0 | 0.014854 | 0.346792 | 6,390 | 163 | 130 | 39.202454 | 0.76713 | 0.036307 | 0 | 0.352518 | 0 | 0 | 0.158588 | 0 | 0 | 0 | 0 | 0.006135 | 0 | 1 | 0.057554 | false | 0.057554 | 0.086331 | 0 | 0.194245 | 0.043165 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
297d4dd8e9bd231925fe39ad0bfd08505244b2df | 5,657 | py | Python | models/LIQ_wn_qsam.py | zhuang-group/SAQ | 594e9c74944999766e119e7137f50583aeedf52b | [
"Apache-2.0"
] | 22 | 2021-11-24T23:19:26.000Z | 2022-03-10T12:08:32.000Z | models/LIQ_wn_qsam.py | zip-group/SAQ | 594e9c74944999766e119e7137f50583aeedf52b | [
"Apache-2.0"
] | null | null | null | models/LIQ_wn_qsam.py | zip-group/SAQ | 594e9c74944999766e119e7137f50583aeedf52b | [
"Apache-2.0"
] | 4 | 2021-11-29T04:10:32.000Z | 2021-12-03T03:08:19.000Z | from quan_models.LIQ import QConv2d as LIQQConv2d
from quan_models.LIQ import QLinear as LIQQLinear
from quan_models.LIQ import normalization_on_weights, quantization, quantize_activation
from torch.nn import functional as F
class QConv2d(LIQQConv2d):
"""
custom convolutional layers for quantization w... | 29.931217 | 89 | 0.538448 | 653 | 5,657 | 4.415008 | 0.14242 | 0.034686 | 0.033299 | 0.023587 | 0.749913 | 0.682275 | 0.682275 | 0.629553 | 0.603191 | 0.603191 | 0 | 0.016949 | 0.374227 | 5,657 | 188 | 90 | 30.090426 | 0.797458 | 0.017324 | 0 | 0.613497 | 0 | 0 | 0.017228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08589 | false | 0 | 0.02454 | 0 | 0.196319 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
461db481099fca569c9a870641d81eee079c6711 | 352 | py | Python | my-python-lab/ExponentnumApp.py | baizoukou/my-python-lab | 510fa2c23a272cb5b9e9a2dca2967797b2a1195b | [
"MIT"
] | null | null | null | my-python-lab/ExponentnumApp.py | baizoukou/my-python-lab | 510fa2c23a272cb5b9e9a2dca2967797b2a1195b | [
"MIT"
] | null | null | null | my-python-lab/ExponentnumApp.py | baizoukou/my-python-lab | 510fa2c23a272cb5b9e9a2dca2967797b2a1195b | [
"MIT"
] | null | null | null | ## creat fct
def raise_to_power(base_num, pow_num): ## fct take 2 input num
result = 1 ## def var call result is going to store result
for index in range(pow_num): ## specify for loop that loop through range of num
result = result * base_num ## math is going to be store in result
return resu... | 39.111111 | 84 | 0.684659 | 61 | 352 | 3.819672 | 0.540984 | 0.060086 | 0.103004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015038 | 0.244318 | 352 | 8 | 85 | 44 | 0.860902 | 0.451705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4621dc0a253665d220583cefac64cff86df50691 | 6,702 | py | Python | jchat.py | josercruz01/jchat | 7a205c0f63b722358437186aa4dff8ef5aa53dcf | [
"Apache-2.0"
] | null | null | null | jchat.py | josercruz01/jchat | 7a205c0f63b722358437186aa4dff8ef5aa53dcf | [
"Apache-2.0"
] | null | null | null | jchat.py | josercruz01/jchat | 7a205c0f63b722358437186aa4dff8ef5aa53dcf | [
"Apache-2.0"
] | null | null | null | import json
import os
from peewee import *
db = SqliteDatabase(os.environ.get('JCHAT_DATABASE') or "test.db")
# Constants
MSG_TYPE_SITE = "status"
MSG_TYPE_MESSAGE = "message"
STATUS_TYPE_ONLINE = "online"
STATUS_TYPE_OFFLINE = "offline"
# Base Database Model.
class BaseModel(Model):
class Meta:
database = d... | 27.925 | 85 | 0.684721 | 883 | 6,702 | 5.053228 | 0.182333 | 0.026894 | 0.024653 | 0.024204 | 0.287315 | 0.219632 | 0.14433 | 0.117436 | 0.097714 | 0.097714 | 0 | 0.002086 | 0.213071 | 6,702 | 239 | 86 | 28.041841 | 0.843951 | 0.197404 | 0 | 0.248485 | 0 | 0 | 0.053164 | 0.009173 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018182 | null | null | 0.012121 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4634141ae7f246c654227d613a00fa42a50a5e84 | 1,159 | py | Python | pwbdb/github.py | magul/pwbdb | 07a7e88b4a817ff4a9114df087b3a53544ba101d | [
"MIT"
] | null | null | null | pwbdb/github.py | magul/pwbdb | 07a7e88b4a817ff4a9114df087b3a53544ba101d | [
"MIT"
] | null | null | null | pwbdb/github.py | magul/pwbdb | 07a7e88b4a817ff4a9114df087b3a53544ba101d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from github import Github
UPSTREAM_GITHUB_REPO = 'wikimedia/pywikibot-core'
GITHUB_REPO = 'magul/pywikibot-core'
_pull_requests = []
def push_branch(local_branch):
name = local_branch.name
repo = local_branch.repo
github = repo.remotes['github']
return github.push(name)[... | 21.867925 | 74 | 0.683348 | 161 | 1,159 | 4.658385 | 0.291925 | 0.176 | 0.056 | 0.042667 | 0.354667 | 0.306667 | 0.184 | 0.184 | 0.184 | 0.184 | 0 | 0.005441 | 0.207075 | 1,159 | 52 | 75 | 22.288462 | 0.810664 | 0.018982 | 0 | 0.387097 | 0 | 0 | 0.049339 | 0.021145 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0.064516 | 0.032258 | 0 | 0.290323 | 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 |
4636f1644b7410b7606d08b989d74338d70bd184 | 433 | py | Python | old/config.py | aberke/floc-analysis | 6c82f1bcfe1ff5c5880773cb184c287fb26a1757 | [
"MIT"
] | null | null | null | old/config.py | aberke/floc-analysis | 6c82f1bcfe1ff5c5880773cb184c287fb26a1757 | [
"MIT"
] | 9 | 2021-11-30T21:12:50.000Z | 2022-02-02T22:25:46.000Z | old/config.py | aberke/floc-analysis | 6c82f1bcfe1ff5c5880773cb184c287fb26a1757 | [
"MIT"
] | null | null | null | CENSUS_YEAR = 2017
COMSCORE_YEAR = 2017
N_PANELS = 500
N_CORES = 8
# income mapping for aggregating ComScore data to fewer
# categories so stratification creates larger panels
INCOME_MAPPING = {
# 1 is 0 to 25k
# 2 is 25k to 50k
# 3 is 50k to 100k
# 4 is 100k +
1: 1, # less than 10k and 10k-15k
... | 21.65 | 55 | 0.598152 | 77 | 433 | 3.298701 | 0.584416 | 0.062992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.249169 | 0.30485 | 433 | 20 | 56 | 21.65 | 0.594684 | 0.535797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4643add935e266488165a94e4c4e97e7dee3e62b | 16,596 | py | Python | qfit_ligand/volume.py | stephaniewanko/qfit_ligand | 1429fff9c1b9d7bf7376ce2414b63ddb0345dd3e | [
"Artistic-2.0",
"MIT"
] | 5 | 2018-05-30T00:29:06.000Z | 2021-09-23T01:28:28.000Z | qfit_ligand/volume.py | stephaniewanko/qfit_ligand | 1429fff9c1b9d7bf7376ce2414b63ddb0345dd3e | [
"Artistic-2.0",
"MIT"
] | 1 | 2018-01-27T06:34:06.000Z | 2018-01-27T06:34:06.000Z | qfit_ligand/volume.py | stephaniewanko/qfit_ligand | 1429fff9c1b9d7bf7376ce2414b63ddb0345dd3e | [
"Artistic-2.0",
"MIT"
] | 3 | 2019-06-20T04:01:11.000Z | 2019-12-03T00:10:39.000Z | from __future__ import division, absolute_import
from struct import unpack as _unpack, pack as _pack
import os.path
from sys import byteorder as _BYTEORDER
import warnings
import numpy as np
from .spacegroups import GetSpaceGroup
from ._extensions import extend_to_p1
class Volume(object):
def __init__(self, ar... | 34.938947 | 107 | 0.546216 | 2,107 | 16,596 | 4.223066 | 0.152824 | 0.042257 | 0.045853 | 0.024837 | 0.208811 | 0.134862 | 0.111149 | 0.095977 | 0.071252 | 0.05372 | 0 | 0.028833 | 0.314534 | 16,596 | 474 | 108 | 35.012658 | 0.75334 | 0.036033 | 0 | 0.181579 | 0 | 0 | 0.075123 | 0 | 0 | 0 | 0.000503 | 0.004219 | 0 | 0 | null | null | 0.002632 | 0.021053 | 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 |
4643f7a0ff397737b6ea8f40bc8b5ccec8f0a570 | 6,732 | py | Python | python_toolbox/caching/decorators.py | hboshnak/python_toolbox | cb9ef64b48f1d03275484d707dc5079b6701ad0c | [
"MIT"
] | 119 | 2015-02-05T17:59:47.000Z | 2022-02-21T22:43:40.000Z | python_toolbox/caching/decorators.py | hboshnak/python_toolbox | cb9ef64b48f1d03275484d707dc5079b6701ad0c | [
"MIT"
] | 4 | 2019-04-24T14:01:14.000Z | 2020-05-21T12:03:29.000Z | python_toolbox/caching/decorators.py | hboshnak/python_toolbox | cb9ef64b48f1d03275484d707dc5079b6701ad0c | [
"MIT"
] | 14 | 2015-03-30T06:30:42.000Z | 2021-12-24T23:45:11.000Z | # Copyright 2009-2017 Ram Rachum.
# This program is distributed under the MIT license.
'''
Defines the `cache` decorator.
See its documentation for more details.
'''
# todo: examine thread-safety
import datetime as datetime_module
from python_toolbox import misc_tools
from python_toolbox import binary_search
from p... | 37.4 | 79 | 0.587195 | 766 | 6,732 | 4.969974 | 0.321149 | 0.054899 | 0.040977 | 0.036774 | 0.212241 | 0.173628 | 0.157342 | 0.134752 | 0.134752 | 0.134752 | 0 | 0.00387 | 0.347445 | 6,732 | 179 | 80 | 37.608939 | 0.862736 | 0.291147 | 0 | 0.346939 | 0 | 0 | 0.028066 | 0 | 0 | 0 | 0 | 0.011173 | 0.010204 | 1 | 0.081633 | false | 0.010204 | 0.071429 | 0 | 0.255102 | 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 |
46442bd6586e6d0d1df77a65c9820ad5cefe8360 | 77,174 | py | Python | lib/cros_build_lib.py | sglass68/chromite | fa56d880e5970e63b8372895c5d43fe6edd8324a | [
"BSD-3-Clause"
] | null | null | null | lib/cros_build_lib.py | sglass68/chromite | fa56d880e5970e63b8372895c5d43fe6edd8324a | [
"BSD-3-Clause"
] | null | null | null | lib/cros_build_lib.py | sglass68/chromite | fa56d880e5970e63b8372895c5d43fe6edd8324a | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Common python commands used by various build scripts."""
from __future__ import print_function
import __main__
import collections
import contextl... | 32.910021 | 80 | 0.676886 | 10,995 | 77,174 | 4.654297 | 0.148249 | 0.002931 | 0.002462 | 0.002638 | 0.111424 | 0.081799 | 0.061105 | 0.052273 | 0.042287 | 0.035135 | 0 | 0.009412 | 0.229041 | 77,174 | 2,344 | 81 | 32.924061 | 0.850684 | 0.129163 | 0 | 0.163208 | 0 | 0.000943 | 0.087532 | 0.007251 | 0 | 0 | 0 | 0.001706 | 0.003774 | 0 | null | null | 0.003774 | 0.026415 | null | null | 0.023585 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4644548f1b5db0fc852372e9492747bf72fa9a7f | 1,113 | py | Python | migrations/versions/4603f5ddc9cb_.py | liaoyongming/flaskapi | c3a5122c5443482c9214196713752a918a7a7bef | [
"MIT"
] | null | null | null | migrations/versions/4603f5ddc9cb_.py | liaoyongming/flaskapi | c3a5122c5443482c9214196713752a918a7a7bef | [
"MIT"
] | null | null | null | migrations/versions/4603f5ddc9cb_.py | liaoyongming/flaskapi | c3a5122c5443482c9214196713752a918a7a7bef | [
"MIT"
] | null | null | null | """empty message
Revision ID: 4603f5ddc9cb
Revises:
Create Date: 2019-01-15 12:24:13.352143
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '4603f5ddc9cb'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | 27.825 | 70 | 0.666667 | 142 | 1,113 | 5.169014 | 0.429577 | 0.098093 | 0.152589 | 0.190736 | 0.376022 | 0.344687 | 0.119891 | 0.119891 | 0 | 0 | 0 | 0.034446 | 0.165319 | 1,113 | 39 | 71 | 28.538462 | 0.755651 | 0.254268 | 0 | 0 | 0 | 0 | 0.104666 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.190476 | 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 |
46448a9bd7691f9c9f64feab393618553a66ab5e | 2,344 | py | Python | core/grid.py | huangwei1024/EndlessDungeons | e38b7ed37685c1f932d42eab3628ede0c762bd9b | [
"Apache-2.0"
] | null | null | null | core/grid.py | huangwei1024/EndlessDungeons | e38b7ed37685c1f932d42eab3628ede0c762bd9b | [
"Apache-2.0"
] | null | null | null | core/grid.py | huangwei1024/EndlessDungeons | e38b7ed37685c1f932d42eab3628ede0c762bd9b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2016 HuangWei (http://huangwei.pro)
#
# 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-... | 21.703704 | 101 | 0.651024 | 377 | 2,344 | 4.026525 | 0.323607 | 0.057971 | 0.011858 | 0.047431 | 0.164032 | 0.145586 | 0.07444 | 0.06917 | 0.06917 | 0.06917 | 0 | 0.018192 | 0.202645 | 2,344 | 107 | 102 | 21.906542 | 0.794007 | 0.260239 | 0 | 0.129032 | 0 | 0 | 0.001176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016129 | 0.032258 | null | null | 0.016129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
46476405ba976a8158bac8914231249cb4b85b95 | 14,959 | py | Python | test/Models/energybalance_pkg/src/openalea/__wralea__.py | brichet/PyCrop2ML | 7177996f72a8d95fdbabb772a16f1fd87b1d033e | [
"MIT"
] | 5 | 2020-06-21T18:58:04.000Z | 2022-01-29T21:32:28.000Z | test/Models/energybalance_pkg/src/openalea/__wralea__.py | brichet/PyCrop2ML | 7177996f72a8d95fdbabb772a16f1fd87b1d033e | [
"MIT"
] | 27 | 2018-12-04T15:35:44.000Z | 2022-03-11T08:25:03.000Z | test/Models/energybalance_pkg/src/openalea/__wralea__.py | brichet/PyCrop2ML | 7177996f72a8d95fdbabb772a16f1fd87b1d033e | [
"MIT"
] | 7 | 2019-04-20T02:25:22.000Z | 2021-11-04T07:52:35.000Z |
# This file has been generated at Wed Jun 24 23:29:10 2020
from openalea.core import *
__name__ = 'EnergyBalance'
__editable__ = True
__description__ = 'CropML Model library.'
__license__ = 'CECILL-C'
__url__ = 'http://pycropml.rtfd.org'
__version__ = '0.0.1'
__authors__ = 'OpenAlea Consortium'
__institutes__ = 'I... | 68.619266 | 858 | 0.625309 | 1,568 | 14,959 | 5.898597 | 0.163903 | 0.113526 | 0.130392 | 0.10866 | 0.510325 | 0.475727 | 0.433885 | 0.413342 | 0.406206 | 0.397232 | 0 | 0.087483 | 0.221338 | 14,959 | 217 | 859 | 68.935484 | 0.706559 | 0.003744 | 0 | 0.337662 | 1 | 0.032468 | 0.389098 | 0.094723 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.006494 | 0 | 0.006494 | 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 |
4647e161756c3813419b270b6d8631421fc2d6be | 7,010 | py | Python | hrl_dynamic_mpc/src/opt_traj_tools.py | gt-ros-pkg/hrl-haptic-manip | 6458187075033ecd3a22fbcdc1a632df39b0cba1 | [
"Apache-2.0"
] | 1 | 2017-07-13T14:58:35.000Z | 2017-07-13T14:58:35.000Z | hrl_dynamic_mpc/src/opt_traj_tools.py | gt-ros-pkg/hrl-haptic-manip | 6458187075033ecd3a22fbcdc1a632df39b0cba1 | [
"Apache-2.0"
] | null | null | null | hrl_dynamic_mpc/src/opt_traj_tools.py | gt-ros-pkg/hrl-haptic-manip | 6458187075033ecd3a22fbcdc1a632df39b0cba1 | [
"Apache-2.0"
] | 2 | 2017-03-08T14:44:22.000Z | 2019-07-15T23:46:35.000Z | #
#
# Copyright (c) 2013, Georgia Tech Research Corporation
# 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, ... | 34.70297 | 120 | 0.548645 | 1,084 | 7,010 | 3.452952 | 0.252768 | 0.014961 | 0.021373 | 0.018702 | 0.297622 | 0.23377 | 0.192626 | 0.188886 | 0.156826 | 0.147208 | 0 | 0.033959 | 0.277461 | 7,010 | 201 | 121 | 34.875622 | 0.705035 | 0.495292 | 0 | 0.359551 | 0 | 0 | 0.0241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157303 | null | null | 0.078652 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
464bcc1aaac9114cb34a77f61c73a00d36d4b82a | 1,520 | py | Python | usuarios/models.py | lucasazevedo/visitor-control | 2daed747f68d04b1bda98bd51fe0876044e1cc54 | [
"MIT"
] | null | null | null | usuarios/models.py | lucasazevedo/visitor-control | 2daed747f68d04b1bda98bd51fe0876044e1cc54 | [
"MIT"
] | null | null | null | usuarios/models.py | lucasazevedo/visitor-control | 2daed747f68d04b1bda98bd51fe0876044e1cc54 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import BaseUserManager, AbstractBaseUser, PermissionsMixin
class UsuarioManager(BaseUserManager):
def create_user(self, email, password=None):
usuario = self.model(email=self.normalize_email(email))
usuario.is_active = True
usua... | 31.020408 | 104 | 0.682237 | 168 | 1,520 | 5.994048 | 0.357143 | 0.053625 | 0.0715 | 0.086395 | 0.329692 | 0.238332 | 0.164846 | 0.099305 | 0 | 0 | 0 | 0.002582 | 0.235526 | 1,520 | 48 | 105 | 31.666667 | 0.864028 | 0 | 0 | 0.222222 | 0 | 0 | 0.081579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.166667 | 0.055556 | 0.027778 | 0.472222 | 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 |
464f10ca13bd2d9ea9d5402af6027320bb4e97c2 | 1,201 | py | Python | mnist_gan/utils/visualization_utils.py | bbaranow/MNIST_GAN | 7f5f6cef3d2d0ab6726fcb5a39f2cfc6e7ab7434 | [
"MIT"
] | 1 | 2020-11-24T10:21:34.000Z | 2020-11-24T10:21:34.000Z | mnist_gan/utils/visualization_utils.py | bbaranow/MNIST_GAN | 7f5f6cef3d2d0ab6726fcb5a39f2cfc6e7ab7434 | [
"MIT"
] | null | null | null | mnist_gan/utils/visualization_utils.py | bbaranow/MNIST_GAN | 7f5f6cef3d2d0ab6726fcb5a39f2cfc6e7ab7434 | [
"MIT"
] | null | null | null | from matplotlib import pyplot as plt
import numpy as np
def generate_and_save_images(model, epoch, test_input):
# Notice `training` is set to False.
# This is so all layers run in inference mode (batchnorm).
predictions = model(test_input, training=False)
fig = plt.figure(figsize=(10,10))
for i in ra... | 31.605263 | 72 | 0.651957 | 199 | 1,201 | 3.81407 | 0.40201 | 0.046113 | 0.047431 | 0.079051 | 0.345191 | 0.345191 | 0.337286 | 0.26614 | 0.181818 | 0.097497 | 0 | 0.032 | 0.167361 | 1,201 | 37 | 73 | 32.459459 | 0.727 | 0.07577 | 0 | 0.25 | 1 | 0 | 0.109304 | 0.050587 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.071429 | 0 | 0.178571 | 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 |
46590ecb6ddbb10a5f6ee2c7d424760e47cece0d | 7,560 | py | Python | helpers.py | rranshous/mktorrent | 221ca540cc7a6a7cef83009a47b65742d0a26636 | [
"MIT"
] | 2 | 2015-05-21T13:37:46.000Z | 2017-03-05T05:02:26.000Z | helpers.py | rranshous/mktorrent | 221ca540cc7a6a7cef83009a47b65742d0a26636 | [
"MIT"
] | null | null | null | helpers.py | rranshous/mktorrent | 221ca540cc7a6a7cef83009a47b65742d0a26636 | [
"MIT"
] | null | null | null | import os.path
import logging as log
from types import StringType, LongType, IntType, ListType, DictType
ints = (LongType, IntType)
strings = (StringType,unicode)
from re import compile
from sha import sha
from hashlib import md5
import logging
logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger(__name__... | 32.033898 | 123 | 0.606217 | 1,062 | 7,560 | 4.241996 | 0.249529 | 0.043285 | 0.063485 | 0.075028 | 0.106548 | 0.069922 | 0.031964 | 0.031964 | 0.031964 | 0.031964 | 0 | 0.025105 | 0.304497 | 7,560 | 235 | 124 | 32.170213 | 0.831685 | 0.17619 | 0 | 0.105634 | 0 | 0 | 0.10556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.049296 | 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 |
465aebaa8cb154027a71f5ea1d2a0d6ee8448bc5 | 9,710 | py | Python | LocalMercurial/mercurial/windows.py | l2dy/machg | 45695dced17431c914c69528f898d398dd695efe | [
"BSD-3-Clause"
] | null | null | null | LocalMercurial/mercurial/windows.py | l2dy/machg | 45695dced17431c914c69528f898d398dd695efe | [
"BSD-3-Clause"
] | null | null | null | LocalMercurial/mercurial/windows.py | l2dy/machg | 45695dced17431c914c69528f898d398dd695efe | [
"BSD-3-Clause"
] | 1 | 2021-12-16T23:31:37.000Z | 2021-12-16T23:31:37.000Z | # windows.py - Windows utility function implementations for Mercurial
#
# Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
from i18n import _
import osutil
import errno... | 30.825397 | 80 | 0.630484 | 1,328 | 9,710 | 4.57756 | 0.335843 | 0.014805 | 0.007238 | 0.011186 | 0.071229 | 0.068103 | 0.036848 | 0.025333 | 0.015134 | 0 | 0 | 0.014963 | 0.270443 | 9,710 | 314 | 81 | 30.923567 | 0.843168 | 0.216272 | 0 | 0.199005 | 0 | 0 | 0.035595 | 0 | 0 | 0 | 0 | 0.003185 | 0 | 0 | null | null | 0.024876 | 0.019901 | 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 |
465d18eeea9fcc5fb5e2cdc361c3e6149100fa37 | 2,170 | py | Python | python/scanr_publicationextractor-0.6/test/test.py | dataesr/scanr-backend | 39681be69b9a96b4a07b9410754c897cd5b65c24 | [
"MIT"
] | null | null | null | python/scanr_publicationextractor-0.6/test/test.py | dataesr/scanr-backend | 39681be69b9a96b4a07b9410754c897cd5b65c24 | [
"MIT"
] | null | null | null | python/scanr_publicationextractor-0.6/test/test.py | dataesr/scanr-backend | 39681be69b9a96b4a07b9410754c897cd5b65c24 | [
"MIT"
] | null | null | null | # Read the documentation here:
# https://nose.readthedocs.org/en/latest/testing.html
# Modify the import path to find our package
import sys
import os.path
sys.path = [os.path.abspath("../scanr_publicationextractor")] + sys.path
sys.path = [os.path.abspath("..")] + sys.path
# Import our package
from scanr_publicati... | 54.25 | 294 | 0.718433 | 343 | 2,170 | 4.434402 | 0.396501 | 0.026298 | 0.026298 | 0.047337 | 0.369494 | 0.369494 | 0.322814 | 0.285996 | 0.285996 | 0.285996 | 0 | 0.048317 | 0.151152 | 2,170 | 39 | 295 | 55.641026 | 0.777416 | 0.095853 | 0 | 0.086957 | 0 | 0.217391 | 0.585466 | 0.093654 | 0 | 0 | 0 | 0 | 0.304348 | 1 | 0.130435 | false | 0 | 0.173913 | 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 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
466120c09b8b8d350e2c4c81c1dff3354e09bf33 | 1,380 | py | Python | src/compas/geometry/triangulation/delaunay_numpy.py | XingxinHE/compas | d2901dbbacdaf4694e5adae78ba8f093f10532bf | [
"MIT"
] | 235 | 2017-11-07T07:33:22.000Z | 2022-03-25T16:20:00.000Z | src/compas/geometry/triangulation/delaunay_numpy.py | XingxinHE/compas | d2901dbbacdaf4694e5adae78ba8f093f10532bf | [
"MIT"
] | 770 | 2017-09-22T13:42:06.000Z | 2022-03-31T21:26:45.000Z | src/compas/geometry/triangulation/delaunay_numpy.py | XingxinHE/compas | d2901dbbacdaf4694e5adae78ba8f093f10532bf | [
"MIT"
] | 99 | 2017-11-06T23:15:28.000Z | 2022-03-25T16:05:36.000Z | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
from numpy import asarray
from scipy.spatial import Voronoi
from scipy.spatial import Delaunay
__all__ = [
'delaunay_from_points_numpy',
'voronoi_from_points_numpy',
]
def delaunay_from_points_numpy... | 21.904762 | 85 | 0.662319 | 164 | 1,380 | 5.390244 | 0.371951 | 0.047511 | 0.067873 | 0.049774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001938 | 0.252174 | 1,380 | 62 | 86 | 22.258065 | 0.854651 | 0.521014 | 0 | 0 | 0 | 0 | 0.094796 | 0.094796 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4661c42c6bb2eabd29f5be2f42bfdf307b7fcf24 | 11,872 | py | Python | old_code/old_version/des.py | bvujanic/des_expansion | c44b9e2301c3419db1128b3b331f56d6892881a8 | [
"MIT"
] | null | null | null | old_code/old_version/des.py | bvujanic/des_expansion | c44b9e2301c3419db1128b3b331f56d6892881a8 | [
"MIT"
] | null | null | null | old_code/old_version/des.py | bvujanic/des_expansion | c44b9e2301c3419db1128b3b331f56d6892881a8 | [
"MIT"
] | null | null | null | class DES(object):
## Init boxes that we're going to use
def __init__(self):
# Permutation tables and Sboxes
self.IP = (
58, 50, 42, 34, 26, 18, 10, 2,
60, 52, 44, 36, 28, 20, 12, 4,
62, 54, 46, 38, 30, 22, 14, 6,
64, 56, 48, 40, 32, 24, 16, 8,
... | 38.545455 | 134 | 0.492251 | 1,912 | 11,872 | 2.918933 | 0.152197 | 0.027414 | 0.016126 | 0.018635 | 0.310159 | 0.228812 | 0.200502 | 0.193693 | 0.144419 | 0.144419 | 0 | 0.208229 | 0.363292 | 11,872 | 308 | 135 | 38.545455 | 0.530097 | 0.140077 | 0 | 0.067265 | 0 | 0 | 0.046766 | 0 | 0 | 0 | 0.007089 | 0 | 0.013453 | 1 | 0.044843 | false | 0 | 0 | 0.004484 | 0.080717 | 0.049327 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
46633d6ec98c840972d0a0ad5db1f973646a4333 | 818 | py | Python | text/SST/params_fit.py | laura-rieger/deep-explanation-penalization | ac82aa4717b24e0ccf48ecbbf4c05d7e77a6d88f | [
"MIT"
] | 105 | 2019-10-01T19:00:35.000Z | 2022-03-25T14:03:32.000Z | text/SST/params_fit.py | laura-rieger/deep-explanation-penalization | ac82aa4717b24e0ccf48ecbbf4c05d7e77a6d88f | [
"MIT"
] | 11 | 2020-01-13T15:49:13.000Z | 2021-12-28T11:36:21.000Z | text/SST/params_fit.py | laura-rieger/deep-explanation-penalization | ac82aa4717b24e0ccf48ecbbf4c05d7e77a6d88f | [
"MIT"
] | 16 | 2019-12-22T20:53:33.000Z | 2022-03-15T14:17:50.000Z | import numpy as np
from numpy.random import randint
class p:
train_both = True # whether to train just one model or both
sparse_signal = False # train on incorrect data points or not
signal_strength = 1.0 # how much to weight kl-divergence
starting_folder = '../models/init_models/' # folder that sto... | 30.296296 | 81 | 0.599022 | 115 | 818 | 4.165217 | 0.652174 | 0.029228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017094 | 0.284841 | 818 | 27 | 82 | 30.296296 | 0.801709 | 0.262836 | 0 | 0 | 0 | 0 | 0.09727 | 0.080205 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.055556 | 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 |
4664c6ffe1c60a8ab59d4f267b3477e094f9c9c0 | 55,971 | py | Python | bin/getCmdbData.py | swollengoat/ASM--Remedy-topology-mediator | 10d9abdb16839f1965584d3e5a87875bf7e4b86f | [
"MIT"
] | null | null | null | bin/getCmdbData.py | swollengoat/ASM--Remedy-topology-mediator | 10d9abdb16839f1965584d3e5a87875bf7e4b86f | [
"MIT"
] | null | null | null | bin/getCmdbData.py | swollengoat/ASM--Remedy-topology-mediator | 10d9abdb16839f1965584d3e5a87875bf7e4b86f | [
"MIT"
] | null | null | null | #!/usr/bin/python -u
#######################################################
#
# Remedy REST mediator for topology inclusion into ASM
#
# 02/09/21 - Jason Cress (jcress@us.ibm.com)
#
#######################################################
import sys
from httplib import IncompleteRead
import time
import datetime
impor... | 36.750492 | 246 | 0.585482 | 5,610 | 55,971 | 5.801604 | 0.117469 | 0.010446 | 0.016714 | 0.011522 | 0.574738 | 0.526592 | 0.493963 | 0.462746 | 0.42901 | 0.418318 | 0 | 0.005643 | 0.246449 | 55,971 | 1,522 | 247 | 36.774639 | 0.766034 | 0.155205 | 0 | 0.612834 | 0 | 0 | 0.263299 | 0.031419 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02246 | 0.017112 | null | null | 0.179679 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
466a4cc4c811b1ef79f0f34fd7344dbed24e5dd7 | 1,836 | py | Python | src/ploomber/scaffold/__init__.py | abhishak3/ploomber | 6041bcd381b7fd9a7525f94edd0ae1b03b14bb8d | [
"Apache-2.0"
] | null | null | null | src/ploomber/scaffold/__init__.py | abhishak3/ploomber | 6041bcd381b7fd9a7525f94edd0ae1b03b14bb8d | [
"Apache-2.0"
] | null | null | null | src/ploomber/scaffold/__init__.py | abhishak3/ploomber | 6041bcd381b7fd9a7525f94edd0ae1b03b14bb8d | [
"Apache-2.0"
] | null | null | null | from ploomber.scaffold.scaffoldloader import ScaffoldLoader
from ploomber.util.util import add_to_sys_path
from ploomber.util import loader
from ploomber.exceptions import DAGSpecInvalidError
def load_dag():
# setting lazy_import to true causes sources to be returned as paths,
# instead of placeholders
tr... | 39.06383 | 78 | 0.686275 | 260 | 1,836 | 4.753846 | 0.503846 | 0.038835 | 0.032362 | 0.019417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252723 | 1,836 | 46 | 79 | 39.913043 | 0.900875 | 0.500545 | 0 | 0 | 0 | 0 | 0.09922 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 1 | 0.1 | false | 0 | 0.25 | 0 | 0.45 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
466c824c9eac011a5a00e9a37530ad20880163a5 | 785 | py | Python | packages/pyre/ipc/Marshaler.py | lijun99/pyre | 004dfd4c06489b4ba5b32877338ca6440f2d523b | [
"BSD-3-Clause"
] | 3 | 2019-08-02T21:02:47.000Z | 2021-09-08T13:59:43.000Z | packages/pyre/ipc/Marshaler.py | lijun99/pyre | 004dfd4c06489b4ba5b32877338ca6440f2d523b | [
"BSD-3-Clause"
] | null | null | null | packages/pyre/ipc/Marshaler.py | lijun99/pyre | 004dfd4c06489b4ba5b32877338ca6440f2d523b | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# michael a.g. aïvázis, leif strand
# orthologue
# (c) 1998-2019 all rights reserved
#
# externals
import pyre
# declaration
class Marshaler(pyre.protocol, family="pyre.ipc.marshalers"):
"""
Protocol for components responsible for serializing python objects for transmission to
... | 17.840909 | 90 | 0.621656 | 88 | 785 | 5.534091 | 0.727273 | 0.049281 | 0.061602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015845 | 0.276433 | 785 | 43 | 91 | 18.255814 | 0.841549 | 0.467516 | 0 | 0.2 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0 | 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 |
46731015560b8bbfaea6999dec96bb18bedf0a3e | 613 | py | Python | swarmform/examples/swarmpad_examples/ex_swarmpad.py | AyeshW/SwarmForm | 1b23c18b0dedb1be588b5f77ef3515f32a3953e1 | [
"MIT"
] | 2 | 2020-10-14T05:16:53.000Z | 2020-10-20T10:36:35.000Z | swarmform/examples/swarmpad_examples/ex_swarmpad.py | AyeshW/SwarmForm | 1b23c18b0dedb1be588b5f77ef3515f32a3953e1 | [
"MIT"
] | 11 | 2020-04-19T05:06:38.000Z | 2021-01-13T05:55:49.000Z | swarmform/examples/swarmpad_examples/ex_swarmpad.py | AyeshW/SwarmForm | 1b23c18b0dedb1be588b5f77ef3515f32a3953e1 | [
"MIT"
] | 5 | 2020-04-19T04:38:11.000Z | 2020-06-01T09:10:40.000Z | from swarmform import SwarmPad
from fireworks import Firework, ScriptTask, FWorker
from fireworks.core.rocket_launcher import launch_rocket
if __name__ == "__main__":
# set up the SwarmPad and reset it
swarmpad = SwarmPad()
swarmpad.reset('', require_password=False)
# create the Firework consisting of a custom "A... | 26.652174 | 61 | 0.771615 | 84 | 613 | 5.392857 | 0.559524 | 0.057395 | 0.057395 | 0.066225 | 0.075055 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001898 | 0.140294 | 613 | 22 | 62 | 27.863636 | 0.857685 | 0.262643 | 0 | 0 | 0 | 0 | 0.067265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.272727 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4675f3d2f3d9641be00f73ba06d3256c9f5ff3e1 | 6,388 | py | Python | lights/connection/datamodel.py | stampedeboss/lights | 0991f24684498d3450e1f8ca8ffe580695cf7948 | [
"CC0-1.0"
] | null | null | null | lights/connection/datamodel.py | stampedeboss/lights | 0991f24684498d3450e1f8ca8ffe580695cf7948 | [
"CC0-1.0"
] | null | null | null | lights/connection/datamodel.py | stampedeboss/lights | 0991f24684498d3450e1f8ca8ffe580695cf7948 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
----------------------------------------------------------------------
This model acts as a bridge between the DataViewCtrl and the data
This model provides these data columns:
0. DisplayName: string
1. ControllerName:string
2. Connector: integer
3... | 28.265487 | 80 | 0.694271 | 845 | 6,388 | 5.166864 | 0.289941 | 0.032066 | 0.021988 | 0.021988 | 0.132616 | 0.085433 | 0.044205 | 0.035044 | 0.024279 | 0 | 0 | 0.010323 | 0.196306 | 6,388 | 226 | 81 | 28.265487 | 0.840086 | 0.299468 | 0 | 0.152672 | 0 | 0 | 0.06871 | 0.005619 | 0 | 0 | 0 | 0.004425 | 0 | 0 | null | null | 0.015267 | 0.045802 | null | null | 0.015267 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4680097771d71d0e1e47e5043814881a5412c1a0 | 2,003 | py | Python | IdleThing.py | drdread987/IdleThing | 9066e532ab0f4fef1e0281cfcdf30c5924d1e632 | [
"MIT"
] | null | null | null | IdleThing.py | drdread987/IdleThing | 9066e532ab0f4fef1e0281cfcdf30c5924d1e632 | [
"MIT"
] | null | null | null | IdleThing.py | drdread987/IdleThing | 9066e532ab0f4fef1e0281cfcdf30c5924d1e632 | [
"MIT"
] | null | null | null | from Scenes.TitleScreen import TitleScene
import pygame
import Tools.Images
import datetime
def run_game(width, height, fps, starting_scene):
pygame.init()
screen = pygame.display.set_mode((width, height))
clock = pygame.time.Clock()
current_time = datetime.datetime.now()
time_passed = datetime.da... | 32.836066 | 92 | 0.603095 | 234 | 2,003 | 4.961538 | 0.354701 | 0.075797 | 0.044789 | 0.049096 | 0.223945 | 0.103359 | 0 | 0 | 0 | 0 | 0 | 0.010933 | 0.315027 | 2,003 | 60 | 93 | 33.383333 | 0.835277 | 0.007489 | 0 | 0.1 | 0 | 0 | 0.002518 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0.08 | 0.08 | 0 | 0.1 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4682f0c4a22828dab01d222f7c66121d51602c47 | 510 | py | Python | quizzes/admin.py | yahyasghayron/E9ray | d237d5eb0ecba48b74dc044c238be8076193b529 | [
"Apache-2.0"
] | 3 | 2021-02-12T15:29:21.000Z | 2021-06-03T21:22:46.000Z | quizzes/admin.py | yahyasghayron/E9rayti | d237d5eb0ecba48b74dc044c238be8076193b529 | [
"Apache-2.0"
] | null | null | null | quizzes/admin.py | yahyasghayron/E9rayti | d237d5eb0ecba48b74dc044c238be8076193b529 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import Quiz, Question, Response
# Register your models here.
class InLineResponse(admin.StackedInline):
model = Response
extra = 0
class InLineQuestion(admin.StackedInline):
model = Question
extra = 0
class QuizAdmin(admin.ModelAdmin):
inlines = [... | 17.586207 | 44 | 0.741176 | 55 | 510 | 6.872727 | 0.454545 | 0.095238 | 0.121693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004762 | 0.176471 | 510 | 28 | 45 | 18.214286 | 0.895238 | 0.05098 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.125 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
468472d9572f9300f69dd5ee1de10a8173e9fbf0 | 2,268 | py | Python | BERTEncDecModel.py | shalei120/OxVf | 369653da5a74d53a8e5d222955ff2a8e50d384e4 | [
"MIT"
] | 2 | 2020-06-15T15:00:28.000Z | 2021-12-14T13:30:30.000Z | BERTEncDecModel.py | shalei120/OxVf | 369653da5a74d53a8e5d222955ff2a8e50d384e4 | [
"MIT"
] | null | null | null | BERTEncDecModel.py | shalei120/OxVf | 369653da5a74d53a8e5d222955ff2a8e50d384e4 | [
"MIT"
] | null | null | null | import torch
import torch.autograd as autograd
from torch.autograd import Variable
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.nn.parameter import Parameter
import numpy as np
import datetime
from transformers import EncoderDecoderModel, BertTokenizer
from Hyperparameter... | 52.744186 | 190 | 0.709877 | 310 | 2,268 | 4.951613 | 0.290323 | 0.072964 | 0.035831 | 0.052117 | 0.379805 | 0.349186 | 0.309446 | 0.309446 | 0.262541 | 0.262541 | 0 | 0.002665 | 0.17284 | 2,268 | 43 | 191 | 52.744186 | 0.815565 | 0.085979 | 0 | 0.108108 | 0 | 0 | 0.077369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.297297 | 0 | 0.513514 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4684b57e9d65e51746558f50f562b0e292db8df0 | 1,345 | py | Python | patrace/python/patracetools/patracetools/get_call_numbers.py | ylz-at/patrace | b42ba9189616dc6c1599e40a702a90bb974e23f7 | [
"MIT"
] | 1 | 2019-10-13T16:57:52.000Z | 2019-10-13T16:57:52.000Z | patrace/python/patracetools/patracetools/get_call_numbers.py | xiangruipuzhao/patrace | db444184177277b23e1de93fd320493628aae850 | [
"MIT"
] | null | null | null | patrace/python/patracetools/patracetools/get_call_numbers.py | xiangruipuzhao/patrace | db444184177277b23e1de93fd320493628aae850 | [
"MIT"
] | 1 | 2021-04-15T17:34:35.000Z | 2021-04-15T17:34:35.000Z | import os, sys, json
import argparse
try:
from patrace import InputFile, OutputFile, Call
except ImportError:
print 'patrace (Python interface of PATrace SDK) is required.'
sys.exit(1)
def main():
ap = argparse.ArgumentParser(description="Output the call numbers of a certain GLES function.")
ap.ad... | 35.394737 | 99 | 0.67881 | 206 | 1,345 | 4.213592 | 0.373786 | 0.072581 | 0.057604 | 0.032258 | 0.059908 | 0.059908 | 0.059908 | 0 | 0 | 0 | 0 | 0.005613 | 0.205204 | 1,345 | 37 | 100 | 36.351351 | 0.806361 | 0 | 0 | 0.066667 | 0 | 0 | 0.185874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
468976e75cdf9274d054140a22d6ed6098e5d070 | 2,492 | py | Python | examples/projectq_example.py | dstallenberg/In-Phase | 21ddfd089b6e4111cc54ae00607aea01fdc94329 | [
"MIT"
] | 2 | 2020-02-09T13:08:22.000Z | 2020-02-16T18:20:10.000Z | examples/projectq_example.py | dstallenberg/In-Phase | 21ddfd089b6e4111cc54ae00607aea01fdc94329 | [
"MIT"
] | null | null | null | examples/projectq_example.py | dstallenberg/In-Phase | 21ddfd089b6e4111cc54ae00607aea01fdc94329 | [
"MIT"
] | null | null | null | import numpy as np
from src.quantum_phase_estimation.util_functions import error_estimate, find_qubits_from_unitary
from src.quantum_phase_estimation.generator.generator import generate_qasm_code
from src.qasm_optimizer.optimizer import optimize
from src.qasm_error_introducer.error_introducer import introduce_error
fr... | 34.136986 | 117 | 0.68138 | 313 | 2,492 | 5.092652 | 0.297125 | 0.067754 | 0.052698 | 0.047679 | 0.22271 | 0.106023 | 0.106023 | 0.106023 | 0.106023 | 0.106023 | 0 | 0.028513 | 0.211878 | 2,492 | 72 | 118 | 34.611111 | 0.783096 | 0.016854 | 0 | 0.058824 | 1 | 0 | 0.038021 | 0.011038 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.196078 | 0 | 0.196078 | 0.117647 | 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 |
468b01f2fc08c120b78483029a8c042abe2eabab | 520 | py | Python | wagtailnest/forms.py | ionata/wagtailnest | da903db0967e6f3b87db7213c9d94c0ec98048f5 | [
"BSD-3-Clause"
] | 1 | 2018-04-11T23:47:33.000Z | 2018-04-11T23:47:33.000Z | wagtailnest/forms.py | ionata/wagtailnest | da903db0967e6f3b87db7213c9d94c0ec98048f5 | [
"BSD-3-Clause"
] | 12 | 2017-07-18T01:52:06.000Z | 2021-09-08T00:15:37.000Z | wagtailnest/forms.py | ionata/wagtailnest | da903db0967e6f3b87db7213c9d94c0ec98048f5 | [
"BSD-3-Clause"
] | 1 | 2017-05-05T06:18:44.000Z | 2017-05-05T06:18:44.000Z | from wagtail.users.forms import UserEditForm, UserCreationForm, custom_fields
class ExtraneousFieldRemovalMixin:
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
for field in ['first_name', 'last_name', 'is_superuser']:
if field not in custom_fields:
... | 28.888889 | 77 | 0.723077 | 50 | 520 | 7.26 | 0.64 | 0.066116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186538 | 520 | 17 | 78 | 30.588235 | 0.858156 | 0 | 0 | 0.181818 | 0 | 0 | 0.059615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.181818 | 0.090909 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
468d13b1c687188a2690b8c2e369186c958d8536 | 1,553 | py | Python | FuncionSeleccionPadres.py | BrendaMep/Proyecto1Reynas | 606d6a81bff24cb4464e8e6cdf7c47bc058505b9 | [
"Apache-2.0"
] | null | null | null | FuncionSeleccionPadres.py | BrendaMep/Proyecto1Reynas | 606d6a81bff24cb4464e8e6cdf7c47bc058505b9 | [
"Apache-2.0"
] | null | null | null | FuncionSeleccionPadres.py | BrendaMep/Proyecto1Reynas | 606d6a81bff24cb4464e8e6cdf7c47bc058505b9 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import random
from FuncionAptitud import fitness
lista = [0, 1, 2, 3, 4, 5, 6, 7] # son los valores en los que puede estar la reyna
poblacion = np.empty((50,8))
for i in range(50):
random.shuffle(lista)
for j in range(8):
poblacion[i, j] = lista[j]
def padres(conjunto):
r1 = ra... | 29.301887 | 95 | 0.603992 | 224 | 1,553 | 4.089286 | 0.325893 | 0.068777 | 0.045852 | 0.084061 | 0.255459 | 0.151747 | 0.105895 | 0.063319 | 0.063319 | 0 | 0 | 0.044326 | 0.273664 | 1,553 | 52 | 96 | 29.865385 | 0.767731 | 0.095943 | 0 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.042553 | false | 0 | 0.06383 | 0 | 0.148936 | 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 |
468fe66789a3584dc9e48cea9644f45ae6518ab4 | 859 | py | Python | cvat/apps/engine/migrations/0049_auto_20220202_0710.py | ACHultman/cvat | 01eaf362aa7e03f5623e80cb12ad0b9a429ae588 | [
"Intel",
"MIT"
] | 4,197 | 2018-06-30T05:47:50.000Z | 2020-09-08T07:34:22.000Z | cvat/apps/engine/migrations/0049_auto_20220202_0710.py | ACHultman/cvat | 01eaf362aa7e03f5623e80cb12ad0b9a429ae588 | [
"Intel",
"MIT"
] | 1,653 | 2018-07-04T00:10:44.000Z | 2020-09-08T09:01:58.000Z | cvat/apps/engine/migrations/0049_auto_20220202_0710.py | ACHultman/cvat | 01eaf362aa7e03f5623e80cb12ad0b9a429ae588 | [
"Intel",
"MIT"
] | 1,253 | 2018-06-30T05:47:58.000Z | 2020-09-08T02:19:52.000Z | # Generated by Django 3.2.11 on 2022-02-02 07:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('engine', '0048_auto_20211112_1918'),
]
operations = [
migrations.AlterField(
model_name='labeledshape',
name='type'... | 35.791667 | 206 | 0.585565 | 81 | 859 | 6.123457 | 0.530864 | 0.080645 | 0.100806 | 0.116935 | 0.532258 | 0.532258 | 0.532258 | 0.532258 | 0.532258 | 0.532258 | 0 | 0.053973 | 0.223516 | 859 | 23 | 207 | 37.347826 | 0.689655 | 0.053551 | 0 | 0.470588 | 1 | 0 | 0.2873 | 0.02836 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4694e5b9c24c6a56f4c640e7377656e83cbd83f6 | 4,180 | py | Python | scratch/new_py.py | kaiiam/biosys-analytics | dd2d176c7006274b5abc5ba1c070720c328d4fce | [
"MIT"
] | null | null | null | scratch/new_py.py | kaiiam/biosys-analytics | dd2d176c7006274b5abc5ba1c070720c328d4fce | [
"MIT"
] | null | null | null | scratch/new_py.py | kaiiam/biosys-analytics | dd2d176c7006274b5abc5ba1c070720c328d4fce | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Author : Ken Youens-Clark <kyclark@gmail.com>
Date : 24 October 2018
Purpose: Python program to write a Python program
"""
import argparse
import os
import re
import subprocess
import sys
from datetime import date
# --------------------------------------------------
def get_args():
"... | 23.351955 | 73 | 0.490191 | 430 | 4,180 | 4.616279 | 0.318605 | 0.045844 | 0.05995 | 0.016121 | 0.204534 | 0.119899 | 0.119899 | 0.119899 | 0.080605 | 0 | 0 | 0.005152 | 0.210526 | 4,180 | 178 | 74 | 23.483146 | 0.596364 | 0.111722 | 0 | 0.413223 | 0 | 0.008264 | 0.634047 | 0.157766 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016529 | false | 0 | 0.082645 | 0 | 0.115702 | 0.082645 | 0 | 0 | 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 |
4699a3ca070d93075d59a74ae86226bcdee3d2a9 | 1,411 | py | Python | pysample/sample.py | juanre/pysample | efd9da85b97a6fc36216c7f98f8976dbd505f972 | [
"Apache-2.0"
] | 1 | 2015-10-29T17:30:20.000Z | 2015-10-29T17:30:20.000Z | pysample/sample.py | juanre/pysample | efd9da85b97a6fc36216c7f98f8976dbd505f972 | [
"Apache-2.0"
] | null | null | null | pysample/sample.py | juanre/pysample | efd9da85b97a6fc36216c7f98f8976dbd505f972 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""The docstring for the file.
A short summary of what it is about.
"""
from __future__ import division
import numpy as np
from pkg_resources import resource_filename, resource_string
def read_resource(resname):
"""Returns a resource found in the directory specified by the
package_da... | 27.134615 | 78 | 0.607371 | 174 | 1,411 | 4.695402 | 0.551724 | 0.009792 | 0.062424 | 0.009792 | 0.011016 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012276 | 0.249468 | 1,411 | 51 | 79 | 27.666667 | 0.759207 | 0.048901 | 0 | 0 | 0 | 0 | 0.114118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
469bb67bde174823eda74c766e7d9102c664acbb | 8,017 | py | Python | IstexDataDownload_Treatment/jsonGenerate.py | ssbeicdm/ssbe | 5ae671962c3e50ea912eba02779e9a1c3ae37534 | [
"BSD-3-Clause-Clear"
] | null | null | null | IstexDataDownload_Treatment/jsonGenerate.py | ssbeicdm/ssbe | 5ae671962c3e50ea912eba02779e9a1c3ae37534 | [
"BSD-3-Clause-Clear"
] | null | null | null | IstexDataDownload_Treatment/jsonGenerate.py | ssbeicdm/ssbe | 5ae671962c3e50ea912eba02779e9a1c3ae37534 | [
"BSD-3-Clause-Clear"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# This is a free software; you can redistribute it and/or modify it
# under the terms of the Revised BSD License; see LICENSE file for
# more details.
"""This is a script to read different json files containing meta-data of documents.
If nothing specified, the script genera... | 47.158824 | 443 | 0.724336 | 1,270 | 8,017 | 4.412598 | 0.195276 | 0.028551 | 0.037116 | 0.013383 | 0.259101 | 0.211456 | 0.166667 | 0.16167 | 0.152391 | 0.14454 | 0 | 0.007879 | 0.160908 | 8,017 | 169 | 444 | 47.43787 | 0.825182 | 0.071972 | 0 | 0.224 | 0 | 0.016 | 0.206378 | 0.004753 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032 | null | null | 0.016 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
469ce4e90c40326f57ec1e47e9986e421bc45336 | 6,598 | py | Python | tests/mobly/controllers/android_device_lib/services/snippet_management_service_test.py | PCMan/mobly | a43f1a34d844e16702d27c10095c219dd755ab76 | [
"Apache-2.0"
] | 1 | 2022-01-09T05:17:09.000Z | 2022-01-09T05:17:09.000Z | tests/mobly/controllers/android_device_lib/services/snippet_management_service_test.py | PCMan/mobly | a43f1a34d844e16702d27c10095c219dd755ab76 | [
"Apache-2.0"
] | null | null | null | tests/mobly/controllers/android_device_lib/services/snippet_management_service_test.py | PCMan/mobly | a43f1a34d844e16702d27c10095c219dd755ab76 | [
"Apache-2.0"
] | 1 | 2021-12-16T07:37:02.000Z | 2021-12-16T07:37:02.000Z | # Copyright 2018 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 39.508982 | 95 | 0.766293 | 837 | 6,598 | 5.686977 | 0.180406 | 0.103782 | 0.095798 | 0.058824 | 0.753571 | 0.721849 | 0.693067 | 0.651261 | 0.603571 | 0.564916 | 0 | 0.00142 | 0.146408 | 6,598 | 166 | 96 | 39.746988 | 0.84375 | 0.097757 | 0 | 0.656489 | 0 | 0 | 0.067408 | 0.010954 | 0 | 0 | 0 | 0 | 0.145038 | 1 | 0.099237 | false | 0 | 0.022901 | 0 | 0.129771 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
469d06351f8d27903bee495558ce4a58bb4a23be | 1,028 | py | Python | layoutmargin/_add_background.py | AndreMiras/garden.layoutmargin | 223d40b0605b0d8023043f6e22e7d1cb77ab2702 | [
"MIT"
] | null | null | null | layoutmargin/_add_background.py | AndreMiras/garden.layoutmargin | 223d40b0605b0d8023043f6e22e7d1cb77ab2702 | [
"MIT"
] | 2 | 2018-05-16T22:37:31.000Z | 2019-09-11T22:35:29.000Z | layoutmargin/_add_background.py | AndreMiras/garden.layoutmargin | 223d40b0605b0d8023043f6e22e7d1cb77ab2702 | [
"MIT"
] | null | null | null | from kivy.graphics import Color, Rectangle
from kivy.properties import ObjectProperty
class AddBackground:
background_color = ObjectProperty(Color())
_background_color = None
_background = None
def on_parent(self, instance, value):
_initialize_Background(self)
_update_BackgroundSize(s... | 29.371429 | 78 | 0.758755 | 110 | 1,028 | 6.781818 | 0.272727 | 0.120643 | 0.092493 | 0.072386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163424 | 1,028 | 34 | 79 | 30.235294 | 0.867442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.086957 | 0 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
469d2f7fd12f3cfbc82f4b4fcbb9108e64a2dbf3 | 4,270 | py | Python | vyperlogix/html/parsers/HTMLParsers.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | 1 | 2020-09-29T01:36:33.000Z | 2020-09-29T01:36:33.000Z | vyperlogix/html/parsers/HTMLParsers.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | null | null | null | vyperlogix/html/parsers/HTMLParsers.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | null | null | null | import urllib
import httplib
from vyperlogix.hash import lists
from HTMLParser import HTMLParser
__copyright__ = """\
(c). Copyright 2008-2020, Vyper Logix Corp., All Rights Reserved.
Published under Creative Commons License
(http://creativecommons.org/licenses/by-nc/3.0/)
restricted to non-commercial educational u... | 34.715447 | 190 | 0.610304 | 493 | 4,270 | 5.095335 | 0.336714 | 0.031051 | 0.021895 | 0.033838 | 0.127787 | 0.035032 | 0.035032 | 0 | 0 | 0 | 0 | 0.008096 | 0.276815 | 4,270 | 122 | 191 | 35 | 0.805376 | 0.030679 | 0 | 0.201923 | 0 | 0 | 0.234043 | 0.007737 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028846 | 0.057692 | null | null | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
46a6f428fc20e8d62489bf28d38ff7d0e5264b3a | 2,959 | py | Python | day9/part1.py | csvillalta/advent-of-code-2019 | 467215edcc6f2b8374ad4df9856f20235d24cbae | [
"MIT"
] | null | null | null | day9/part1.py | csvillalta/advent-of-code-2019 | 467215edcc6f2b8374ad4df9856f20235d24cbae | [
"MIT"
] | 2 | 2019-12-07T04:27:11.000Z | 2019-12-07T07:20:14.000Z | day9/part1.py | csvillalta/advent-of-code-2019 | 467215edcc6f2b8374ad4df9856f20235d24cbae | [
"MIT"
] | null | null | null | from typing import List, Tuple
import argparse
def get_program(filepath: str) -> List[int]:
with open(filepath, 'r') as f:
program = [int(i) for i in f.readline().split(',')]
# TODO: Increase memory dynamically instead.
program += [0 for _ in range(100000)]
return program
def parse_... | 30.822917 | 73 | 0.547482 | 360 | 2,959 | 4.386111 | 0.213889 | 0.088664 | 0.047498 | 0.056998 | 0.420519 | 0.39772 | 0.167194 | 0.167194 | 0.055731 | 0.055731 | 0 | 0.039086 | 0.334235 | 2,959 | 96 | 74 | 30.822917 | 0.762437 | 0.014194 | 0 | 0.222222 | 0 | 0 | 0.01749 | 0 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0.061728 | false | 0 | 0.024691 | 0 | 0.17284 | 0.024691 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
46a847147f5c5951eff3c874af0d071427ceeed5 | 629 | py | Python | pcstac/tests/resources/test_collection.py | gadomski/planetary-computer-apis | 53a04c0b24b9ccc06812bfb8ac2961bbfe58a108 | [
"MIT"
] | 1 | 2021-11-02T16:13:43.000Z | 2021-11-02T16:13:43.000Z | pcstac/tests/resources/test_collection.py | moradology/planetary-computer-apis-1 | 81a666e843cd0d8592708b35e1360fb68815816d | [
"MIT"
] | null | null | null | pcstac/tests/resources/test_collection.py | moradology/planetary-computer-apis-1 | 81a666e843cd0d8592708b35e1360fb68815816d | [
"MIT"
] | null | null | null | import pytest
@pytest.mark.asyncio
async def test_get_collections(app_client):
"""Test read /collections"""
resp = await app_client.get("/collections")
assert resp.status_code == 200
@pytest.mark.asyncio
async def test_get_collection(app_client):
"""Test read a collection which does not exist"""
... | 27.347826 | 62 | 0.72973 | 89 | 629 | 4.977528 | 0.303371 | 0.121896 | 0.115124 | 0.148984 | 0.733634 | 0.733634 | 0.6614 | 0.582393 | 0.582393 | 0.582393 | 0 | 0.016981 | 0.157393 | 629 | 22 | 63 | 28.590909 | 0.818868 | 0 | 0 | 0.384615 | 0 | 0 | 0.111332 | 0.053678 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
46a992e63965ca93f45ef3cefeb75b986cdd3629 | 855 | py | Python | score.py | thexa4/Spades | 1b6c5003d5bec13421418e1e563db435fac18286 | [
"MIT"
] | 1 | 2018-01-27T16:45:51.000Z | 2018-01-27T16:45:51.000Z | score.py | thexa4/Spades | 1b6c5003d5bec13421418e1e563db435fac18286 | [
"MIT"
] | null | null | null | score.py | thexa4/Spades | 1b6c5003d5bec13421418e1e563db435fac18286 | [
"MIT"
] | 1 | 2018-01-27T16:45:56.000Z | 2018-01-27T16:45:56.000Z | from relative_data import RelativeData
class Score(RelativeData):
def __init__(self, reference_id=0):
super().__init__(reference_id)
self.data = {0: 0, 1: 0}
self.score = self.data
self.data_size = 2
def add_score(self, new_score, team_id):
""""Add points to a team's score."""
global_id = self.globali... | 29.482759 | 99 | 0.719298 | 145 | 855 | 3.910345 | 0.303448 | 0.084656 | 0.070547 | 0.089947 | 0.102293 | 0.102293 | 0.102293 | 0 | 0 | 0 | 0 | 0.024896 | 0.154386 | 855 | 28 | 100 | 30.535714 | 0.759336 | 0.128655 | 0 | 0 | 0 | 0 | 0.034153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
46adcdaa07826159e5ad3cffada9347bffe7595a | 1,749 | py | Python | office365/directory/directoryObject.py | wreiner/Office365-REST-Python-Client | 476bbce4f5928a140b4f5d33475d0ac9b0783530 | [
"MIT"
] | null | null | null | office365/directory/directoryObject.py | wreiner/Office365-REST-Python-Client | 476bbce4f5928a140b4f5d33475d0ac9b0783530 | [
"MIT"
] | null | null | null | office365/directory/directoryObject.py | wreiner/Office365-REST-Python-Client | 476bbce4f5928a140b4f5d33475d0ac9b0783530 | [
"MIT"
] | null | null | null | from office365.entity import Entity
from office365.runtime.client_result import ClientResult
from office365.runtime.queries.delete_entity_query import DeleteEntityQuery
from office365.runtime.queries.service_operation_query import ServiceOperationQuery
from office365.runtime.queries.update_entity_query import UpdateEnt... | 37.212766 | 117 | 0.707261 | 196 | 1,749 | 6.168367 | 0.408163 | 0.053763 | 0.06617 | 0.066998 | 0.071133 | 0.071133 | 0 | 0 | 0 | 0 | 0 | 0.010917 | 0.214408 | 1,749 | 46 | 118 | 38.021739 | 0.868996 | 0.20526 | 0 | 0.166667 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
46aee1788d2eb8c8c44d412646bf8b3d337efda8 | 568 | py | Python | GeoDjango/geodjango/points/load.py | lmrissi/piloto_geodjango | 729576c7e66b5d9b33618d8039bca21228927d21 | [
"Apache-2.0"
] | null | null | null | GeoDjango/geodjango/points/load.py | lmrissi/piloto_geodjango | 729576c7e66b5d9b33618d8039bca21228927d21 | [
"Apache-2.0"
] | null | null | null | GeoDjango/geodjango/points/load.py | lmrissi/piloto_geodjango | 729576c7e66b5d9b33618d8039bca21228927d21 | [
"Apache-2.0"
] | null | null | null | import os
from django.contrib.gis.utils import LayerMapping
from .models import pocos
# Auto-generated `LayerMapping` dictionary for pocos model
pocos_mapping = {
'proprietario': 'proprietar',
'orgao': 'orgao',
'data_perfuracao': 'data_perfu',
'profundidade': 'profundida',
'q_m3h': 'q_m3h... | 28.4 | 64 | 0.681338 | 66 | 568 | 5.757576 | 0.651515 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004292 | 0.179577 | 568 | 20 | 65 | 28.4 | 0.811159 | 0.098592 | 0 | 0 | 1 | 0 | 0.353659 | 0.111789 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
46b0ced395f8530b4ee852ae909c8ab4fc2750d7 | 5,902 | py | Python | modules/auxiliary/sniffer.py | phdphuc/mac-a-mal-cuckoo | 8bbec99de276e854a6f48bc9ff069b911d111af2 | [
"MIT"
] | 41 | 2018-03-23T07:51:17.000Z | 2021-04-07T08:26:25.000Z | modules/auxiliary/sniffer.py | phdphuc/mac-a-mal-cuckoo | 8bbec99de276e854a6f48bc9ff069b911d111af2 | [
"MIT"
] | 7 | 2018-04-09T13:38:11.000Z | 2020-10-17T08:04:59.000Z | modules/auxiliary/sniffer.py | phdphuc/mac-a-mal-cuckoo | 8bbec99de276e854a6f48bc9ff069b911d111af2 | [
"MIT"
] | 8 | 2018-03-22T20:07:33.000Z | 2020-07-27T08:49:11.000Z | # Copyright (C) 2010-2013 Claudio Guarnieri.
# Copyright (C) 2014-2016 Cuckoo Foundation.
# phdphuc: Modified to communicate with Mac-A-Mal
# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org
# See the file 'docs/LICENSE' for copying permission.
import os
import getpass
import logging
import subproces... | 34.923077 | 85 | 0.528126 | 630 | 5,902 | 4.888889 | 0.360317 | 0.05 | 0.024351 | 0.018506 | 0.195455 | 0.144156 | 0.133117 | 0.100649 | 0.074026 | 0.046753 | 0 | 0.006848 | 0.356659 | 5,902 | 168 | 86 | 35.130952 | 0.804319 | 0.203999 | 0 | 0.258929 | 0 | 0 | 0.170213 | 0 | 0 | 0 | 0 | 0.005952 | 0 | 0 | null | null | 0.026786 | 0.0625 | null | null | 0.008929 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
46b3ed71fb014dd92d9bb358f4ea5300c1341876 | 242 | py | Python | 7.Tuple/1.update_tuple.py | Tazri/Python | f7ca625800229c8a7e20b64810d6e162ccb6b09f | [
"DOC"
] | null | null | null | 7.Tuple/1.update_tuple.py | Tazri/Python | f7ca625800229c8a7e20b64810d6e162ccb6b09f | [
"DOC"
] | null | null | null | 7.Tuple/1.update_tuple.py | Tazri/Python | f7ca625800229c8a7e20b64810d6e162ccb6b09f | [
"DOC"
] | null | null | null | # names tuple
names = ('Anonymous','Tazri','Focasa','Troy','Farha','Xenon');
print("names : ",names);
## adding value of names
updating = list(names);
updating.append('solus');
names = tuple(updating);
print("update names : ");
print(names); | 24.2 | 62 | 0.669421 | 30 | 242 | 5.4 | 0.566667 | 0.123457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107438 | 242 | 10 | 63 | 24.2 | 0.75 | 0.136364 | 0 | 0 | 0 | 0 | 0.300971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
d3b23d3b05b52e660bcb95330a17829cf8f72b8e | 444 | py | Python | mealie/db/models/model_base.py | danielpalstra/mealie | 6c549ff99329e494bc6aad2109973e7eec6c445e | [
"MIT"
] | 1,927 | 2021-01-02T20:01:15.000Z | 2022-03-31T22:49:18.000Z | mealie/db/models/model_base.py | danielpalstra/mealie | 6c549ff99329e494bc6aad2109973e7eec6c445e | [
"MIT"
] | 545 | 2021-01-02T20:32:28.000Z | 2022-03-31T23:37:08.000Z | mealie/db/models/model_base.py | danielpalstra/mealie | 6c549ff99329e494bc6aad2109973e7eec6c445e | [
"MIT"
] | 254 | 2021-01-03T00:20:07.000Z | 2022-03-23T22:37:21.000Z | import sqlalchemy.ext.declarative as dec
from requests import Session
SqlAlchemyBase = dec.declarative_base()
class BaseMixins:
def update(self, *args, **kwarg):
self.__init__(*args, **kwarg)
@classmethod
def get_ref(cls_type, session: Session, match_value: str, match_attr: str = "id"):
... | 29.6 | 86 | 0.711712 | 60 | 444 | 4.983333 | 0.616667 | 0.070234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175676 | 444 | 14 | 87 | 31.714286 | 0.81694 | 0 | 0 | 0 | 0 | 0 | 0.004505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d3b99fa1ddb377ac8d5fa574beefdbebe1e6300b | 643 | py | Python | tkinter/basic/test/tktableDemo.py | sdyz5210/python | 78f9999f94d92d9ca7fde6f18acec7d3abd422ef | [
"BSD-3-Clause"
] | null | null | null | tkinter/basic/test/tktableDemo.py | sdyz5210/python | 78f9999f94d92d9ca7fde6f18acec7d3abd422ef | [
"BSD-3-Clause"
] | null | null | null | tkinter/basic/test/tktableDemo.py | sdyz5210/python | 78f9999f94d92d9ca7fde6f18acec7d3abd422ef | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/evn python
# -*- coding: utf-8 -*-
# python version 2.7.6
from Tkinter import *
from TkTreectrl import *
import sqlite3
def main():
root = Tk()
root.title('Simple MultiListbox demo')
mlb = TkTreectrl.MultiListbox(root)
mlb.pack(side='top', fill='both', expand=1)
Button(root, text='Close'... | 27.956522 | 74 | 0.640747 | 87 | 643 | 4.62069 | 0.701149 | 0.039801 | 0.054726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017176 | 0.18507 | 643 | 23 | 75 | 27.956522 | 0.75 | 0.097978 | 0 | 0 | 0 | 0 | 0.150519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | 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 |
d3b9f140bd9bd03459b9976af7019133f069d46b | 170 | py | Python | tests/resources/projects/project-001-simple/test.py | askanna-io/askanna-python | b6a1dec3b9911888f3d769cef46ce8c2d5cb0dfe | [
"Apache-2.0"
] | 1 | 2021-02-22T15:53:47.000Z | 2021-02-22T15:53:47.000Z | tests/resources/projects/project-001-simple/test.py | askanna-io/askanna-python | b6a1dec3b9911888f3d769cef46ce8c2d5cb0dfe | [
"Apache-2.0"
] | null | null | null | tests/resources/projects/project-001-simple/test.py | askanna-io/askanna-python | b6a1dec3b9911888f3d769cef46ce8c2d5cb0dfe | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
import json
dt = datetime.now()
print(dt)
json_dt = json.dumps(dt.isoformat())
with open("result.json", "wb") as f:
f.write(json_dt)
| 15.454545 | 36 | 0.7 | 28 | 170 | 4.178571 | 0.571429 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152941 | 170 | 10 | 37 | 17 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.076471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.142857 | 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 |
d3ba10251e625ed2257f05f06c166d0b22ce5256 | 627 | py | Python | test/resource/test_data/suite_tree/LibraryWithReallyTooLongName.py | jimpriest/sublime-robot-framework-assistant | 89b569c3a56a356e8369ce45afd8280ed6fc4584 | [
"MIT"
] | 103 | 2015-01-12T19:37:40.000Z | 2022-01-08T22:00:30.000Z | test/resource/test_data/suite_tree/LibraryWithReallyTooLongName.py | jimpriest/sublime-robot-framework-assistant | 89b569c3a56a356e8369ce45afd8280ed6fc4584 | [
"MIT"
] | 148 | 2015-02-22T16:36:32.000Z | 2020-01-20T11:04:04.000Z | test/resource/test_data/suite_tree/LibraryWithReallyTooLongName.py | jimpriest/sublime-robot-framework-assistant | 89b569c3a56a356e8369ce45afd8280ed6fc4584 | [
"MIT"
] | 52 | 2015-02-22T16:41:59.000Z | 2022-01-21T13:20:11.000Z | from robot.api.deco import keyword
class LibraryWithReallyTooLongName(object):
def long_name_keyword(self, *args):
"""Documentation goes here"""
print args
def other_long_name_keyword(self, *args, **kwargs):
"""Other documentation goes here"""
print args, kwargs
... | 27.26087 | 56 | 0.610845 | 76 | 627 | 4.934211 | 0.394737 | 0.072 | 0.08 | 0.101333 | 0.282667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013216 | 0.275917 | 627 | 22 | 57 | 28.5 | 0.812775 | 0 | 0 | 0 | 0 | 0 | 0.095032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d3bc0e40a0c4059ec01a40949e75d44ac0d060f6 | 1,514 | py | Python | tcex/tcex_redis.py | jcampbell2017tc/tcex | 1805bca2dd336c45108f48e9c285d5c752b11316 | [
"Apache-2.0"
] | null | null | null | tcex/tcex_redis.py | jcampbell2017tc/tcex | 1805bca2dd336c45108f48e9c285d5c752b11316 | [
"Apache-2.0"
] | null | null | null | tcex/tcex_redis.py | jcampbell2017tc/tcex | 1805bca2dd336c45108f48e9c285d5c752b11316 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""TcEx Framework Redis Module"""
from builtins import str
import redis
class TcExRedis(object):
"""Create/Read Data in/from Redis"""
def __init__(self, host, port, rhash):
"""Initialize the Class properties.
Args:
host (string): The Redis host.
... | 26.103448 | 62 | 0.551519 | 192 | 1,514 | 4.276042 | 0.276042 | 0.087698 | 0.053593 | 0.058465 | 0.322777 | 0.322777 | 0.248477 | 0.248477 | 0.248477 | 0.248477 | 0 | 0.001994 | 0.337517 | 1,514 | 57 | 63 | 26.561404 | 0.81655 | 0.462351 | 0 | 0 | 0 | 0 | 0.008183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.133333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d3bd516a45474cd31c574a826bd77988c8485c7f | 441 | py | Python | awaards/migrations/0004_auto_20190703_1409.py | sharonmaswai/awards | 9556d6c559fdd12a860b6e3509b2482b260a63c0 | [
"Unlicense"
] | null | null | null | awaards/migrations/0004_auto_20190703_1409.py | sharonmaswai/awards | 9556d6c559fdd12a860b6e3509b2482b260a63c0 | [
"Unlicense"
] | 5 | 2020-06-05T21:37:00.000Z | 2021-09-08T01:06:15.000Z | awaards/migrations/0004_auto_20190703_1409.py | sharonmaswai/awards | 9556d6c559fdd12a860b6e3509b2482b260a63c0 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2019-07-03 14:09
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('awaards', '0003_auto_20190703_1406'),
]
operations = [
migrations.RenameField(
... | 21 | 48 | 0.61678 | 49 | 441 | 5.285714 | 0.77551 | 0.127413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102484 | 0.269841 | 441 | 20 | 49 | 22.05 | 0.701863 | 0.154195 | 0 | 0 | 1 | 0 | 0.164865 | 0.062162 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d3bedca3ce668f5f223cfd724a86b4598716706a | 2,693 | py | Python | phishing/setmail.py | m00tiny/scripts | 54660525f36e3e97d23fbd259ceb9b10823f2ee2 | [
"BSD-3-Clause"
] | 877 | 2015-01-01T23:17:14.000Z | 2022-03-27T10:42:01.000Z | phishing/setmail.py | wasi0013/scripts | 51cbeccfd89e168b15ddb83c7be19ae38acf80d2 | [
"BSD-3-Clause"
] | 5 | 2016-10-08T19:45:40.000Z | 2020-09-02T02:15:10.000Z | phishing/setmail.py | wasi0013/scripts | 51cbeccfd89e168b15ddb83c7be19ae38acf80d2 | [
"BSD-3-Clause"
] | 352 | 2015-01-26T02:33:17.000Z | 2022-03-15T23:01:27.000Z | #!/usr/bin/env python
# Copyright (c) 2012, AverageSecurityGuy
# 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
# ... | 38.471429 | 89 | 0.69625 | 351 | 2,693 | 5.324786 | 0.509972 | 0.018727 | 0.012841 | 0.014446 | 0.130016 | 0.104334 | 0.104334 | 0.094168 | 0.072766 | 0.072766 | 0 | 0.011985 | 0.225399 | 2,693 | 70 | 90 | 38.471429 | 0.883988 | 0.562198 | 0 | 0.068966 | 0 | 0 | 0.079861 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.137931 | null | null | 0.172414 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d3c1395167e74a926247268972cdb3187c61bcd7 | 2,063 | py | Python | botlistbot/models/favorite.py | anandpskerala/BotListBot | 4ac1b1f7c4f4d251c80a24306542001f40b85216 | [
"MIT"
] | 1 | 2019-04-12T02:29:35.000Z | 2019-04-12T02:29:35.000Z | botlistbot/models/favorite.py | anandpskerala/BotListBot | 4ac1b1f7c4f4d251c80a24306542001f40b85216 | [
"MIT"
] | null | null | null | botlistbot/models/favorite.py | anandpskerala/BotListBot | 4ac1b1f7c4f4d251c80a24306542001f40b85216 | [
"MIT"
] | 1 | 2020-11-06T02:14:53.000Z | 2020-11-06T02:14:53.000Z | # -*- coding: utf-8 -*-
import datetime
from typing import List
from peewee import *
import helpers
import util
from models import Bot
from models.basemodel import BaseModel
from models.category import Category
from models.country import Country
from models.user import User
class Favorite(BaseModel):
id = Prima... | 31.738462 | 102 | 0.605429 | 239 | 2,063 | 5.142259 | 0.322176 | 0.039056 | 0.065094 | 0.065907 | 0.209113 | 0.1131 | 0 | 0 | 0 | 0 | 0 | 0.006143 | 0.289869 | 2,063 | 64 | 103 | 32.234375 | 0.832082 | 0.033446 | 0 | 0.117647 | 0 | 0 | 0.003553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078431 | false | 0 | 0.196078 | 0.019608 | 0.509804 | 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 |
d3c298de130647c5849e07c47fa3435620437e28 | 3,107 | py | Python | analysis/solver.py | kandluis/make24 | 67524e99bf9f906a898d96a8dbc9254c9d8cd891 | [
"MIT"
] | null | null | null | analysis/solver.py | kandluis/make24 | 67524e99bf9f906a898d96a8dbc9254c9d8cd891 | [
"MIT"
] | null | null | null | analysis/solver.py | kandluis/make24 | 67524e99bf9f906a898d96a8dbc9254c9d8cd891 | [
"MIT"
] | null | null | null | '''
Solver for Make 24 Game!
# @Author: Luis Perez
# @Date: 2016-10-04 16:14:34
# @Last Modified by: Luis Perez
# @Last Modified time: 2016-10-15 19:52:31
'''
from . import formatter
def numberOfSolutions(numbers, returnWays=False):
'''
Algorithm to solve Make24 Game.
The purpose of the game is to, ... | 30.165049 | 78 | 0.600257 | 421 | 3,107 | 4.429929 | 0.356295 | 0.041823 | 0.054692 | 0.077212 | 0.194102 | 0.147989 | 0.147989 | 0.106166 | 0.084719 | 0.084719 | 0 | 0.022089 | 0.300612 | 3,107 | 102 | 79 | 30.460784 | 0.836171 | 0.072417 | 0 | 0 | 0 | 0 | 0.029656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02381 | null | null | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d3c46b41700cffbdd1d5c82198c1c0da47be6500 | 1,678 | py | Python | chap_08/exe_186_run_length_encoding.py | aleattene/python-workbook | bf26ba716c957316d1463fb25488384e319d5b91 | [
"MIT"
] | null | null | null | chap_08/exe_186_run_length_encoding.py | aleattene/python-workbook | bf26ba716c957316d1463fb25488384e319d5b91 | [
"MIT"
] | null | null | null | chap_08/exe_186_run_length_encoding.py | aleattene/python-workbook | bf26ba716c957316d1463fb25488384e319d5b91 | [
"MIT"
] | null | null | null | """
Write a recursive function that implements the run-length compression technique
described in Run-Lenght Decoding Exercise.
Your function will take a list or a string as its only argument.
It should return the run-length compressed list as its only result.
Include a main program that reads a string from the user, ... | 26.634921 | 116 | 0.570322 | 239 | 1,678 | 3.845188 | 0.34728 | 0.091404 | 0.182807 | 0.071817 | 0.069641 | 0.021763 | 0 | 0 | 0 | 0 | 0 | 0.008292 | 0.281287 | 1,678 | 62 | 117 | 27.064516 | 0.753731 | 0.362336 | 0 | 0 | 0 | 0 | 0.082386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.15625 | 0.125 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d3c91c2386f5bba051c31a12ed3250ea11a4cac5 | 3,392 | py | Python | sphinxcontrib_django2/docstrings/patches.py | timoludwig/sphinxcontrib-django | 60ce593df0af724d5bbc167ada531e40fc0ae4c4 | [
"Apache-2.0"
] | null | null | null | sphinxcontrib_django2/docstrings/patches.py | timoludwig/sphinxcontrib-django | 60ce593df0af724d5bbc167ada531e40fc0ae4c4 | [
"Apache-2.0"
] | null | null | null | sphinxcontrib_django2/docstrings/patches.py | timoludwig/sphinxcontrib-django | 60ce593df0af724d5bbc167ada531e40fc0ae4c4 | [
"Apache-2.0"
] | null | null | null | """
This module contains patches for Django to improve its interaction with Sphinx.
"""
from django import apps, forms, test
from django.db import models
try:
from django.contrib.postgres import fields as postgres_fields
from django.contrib.postgres import forms as postgres_forms
POSTGRES = True
except Mo... | 36.085106 | 96 | 0.67158 | 399 | 3,392 | 5.458647 | 0.295739 | 0.059688 | 0.067493 | 0.063361 | 0.213499 | 0.174013 | 0.128099 | 0.108356 | 0.108356 | 0.108356 | 0 | 0.002316 | 0.236144 | 3,392 | 93 | 97 | 36.473118 | 0.838286 | 0.25 | 0 | 0.122807 | 0 | 0 | 0.136509 | 0.046837 | 0 | 0 | 0 | 0.010753 | 0 | 1 | 0.017544 | false | 0.017544 | 0.087719 | 0 | 0.105263 | 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 |
d3d2db4f3386306debddeb3fa3387a8a506e13f6 | 2,156 | py | Python | alf/utils/math_ops.py | runjerry/alf | 7e83a29a3102ff04a6ce2c3105ae36f28b090e65 | [
"Apache-2.0"
] | 2 | 2021-03-22T14:57:03.000Z | 2021-09-28T07:02:10.000Z | alf/utils/math_ops.py | ruizhaogit/alf | be1e65afa5f8401236d98db8f85a5e27fa1e18dc | [
"Apache-2.0"
] | null | null | null | alf/utils/math_ops.py | ruizhaogit/alf | be1e65afa5f8401236d98db8f85a5e27fa1e18dc | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2019 Horizon Robotics. 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 applicab... | 25.364706 | 75 | 0.645176 | 318 | 2,156 | 4.295597 | 0.427673 | 0.059297 | 0.035139 | 0.023426 | 0.035139 | 0.035139 | 0 | 0 | 0 | 0 | 0 | 0.014429 | 0.260668 | 2,156 | 84 | 76 | 25.666667 | 0.842535 | 0.618738 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.083333 | 0.041667 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d3da23679e8848b2fa9e84786c76aec2edfeeb5a | 403 | py | Python | fadderanmalan/utils/misc.py | RoosDaniel/Fadderjobb | 2333be793930c4b45e8c05bde6ae29044fdc900c | [
"MIT"
] | 2 | 2018-11-16T12:38:24.000Z | 2019-07-15T05:18:31.000Z | fadderanmalan/utils/misc.py | RoosDaniel/Fadderjobb | 2333be793930c4b45e8c05bde6ae29044fdc900c | [
"MIT"
] | 8 | 2020-02-11T23:17:26.000Z | 2022-02-10T09:33:44.000Z | fadderanmalan/utils/misc.py | RoosDaniel/Fadderjobb | 2333be793930c4b45e8c05bde6ae29044fdc900c | [
"MIT"
] | null | null | null | from django.db.models import Q
from django.contrib.auth import get_user_model
from ..models import Job
User = get_user_model()
# Removes all jobs that the user cannot view due to insufficient permissions
def filter_jobs_for_user(user: User, jobs):
if not user.is_superuser:
jobs = jobs.filter(Q(only_vis... | 25.1875 | 102 | 0.761787 | 66 | 403 | 4.409091 | 0.560606 | 0.068729 | 0.082474 | 0.09622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158809 | 403 | 15 | 103 | 26.866667 | 0.858407 | 0.183623 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d3df99d6d333871fe7dfec2d1c93d867bb948d86 | 945 | py | Python | app/main/forms.py | Moses-254-Mugo/Pitch_App | 3c9d5ab8662b07b99860eb33b0e53ce36e016f3c | [
"MIT"
] | null | null | null | app/main/forms.py | Moses-254-Mugo/Pitch_App | 3c9d5ab8662b07b99860eb33b0e53ce36e016f3c | [
"MIT"
] | null | null | null | app/main/forms.py | Moses-254-Mugo/Pitch_App | 3c9d5ab8662b07b99860eb33b0e53ce36e016f3c | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField,TextAreaField,SubmitField,ValidationError
from wtforms import validators
from wtforms.fields.core import SelectField
from wtforms.validators import Required
from ..models import User
class ReviewForm(FlaskForm):
title = StringField('Give your title',... | 42.954545 | 173 | 0.741799 | 98 | 945 | 7.142857 | 0.438776 | 0.154286 | 0.102857 | 0.15 | 0.19 | 0.131429 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124868 | 945 | 22 | 174 | 42.954545 | 0.846433 | 0 | 0 | 0.166667 | 0 | 0 | 0.164905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d3e05a74ec0181a084530776b77c12dc6bb594cc | 1,653 | py | Python | GBM/RemoveNan_from_PI_Necro.py | joshlyman/TextureAnalysis | bfbedbd53f62396fdef383408089b37e5ab511d0 | [
"MIT"
] | 1 | 2020-07-06T01:47:49.000Z | 2020-07-06T01:47:49.000Z | GBM/RemoveNan_from_PI_Necro.py | kumarneeraj2005/TextureAnalysis | bfbedbd53f62396fdef383408089b37e5ab511d0 | [
"MIT"
] | null | null | null | GBM/RemoveNan_from_PI_Necro.py | kumarneeraj2005/TextureAnalysis | bfbedbd53f62396fdef383408089b37e5ab511d0 | [
"MIT"
] | 1 | 2020-06-22T08:26:10.000Z | 2020-06-22T08:26:10.000Z | import os
import fnmatch
import csv
inputfile = '/Users/yanzhexu/Desktop/Research/Sliding box GBM/MyAlgorithm_V2/addPI/GBM_SlidingWindow_TextureMap_addPI_Necrosis'
outputfile = '/Users/yanzhexu/Desktop/Research/Sliding box GBM/MyAlgorithm_V2/addPI/GBM_SlidingWindow_TextureMap_addPI_Necrosis(removeNan)'
# outputfile... | 31.788462 | 139 | 0.561404 | 162 | 1,653 | 5.654321 | 0.41358 | 0.069869 | 0.065502 | 0.091703 | 0.405022 | 0.405022 | 0.300218 | 0.300218 | 0.300218 | 0.300218 | 0 | 0.014599 | 0.336963 | 1,653 | 51 | 140 | 32.411765 | 0.821168 | 0.217786 | 0 | 0.291667 | 0 | 0.041667 | 0.202344 | 0.177344 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d3e8acc98336a34fad1c0b42eed780ed5efa5d12 | 487 | py | Python | python/edna/src/edna/emit/StdoutEmit.py | prernaagarwal/cs6235Project | 9e7c5717ea2afdb5f1afef9f9b632b5a765fce4e | [
"Apache-2.0"
] | 3 | 2020-10-04T22:40:27.000Z | 2021-12-14T14:28:11.000Z | python/edna/src/edna/emit/StdoutEmit.py | prernaagarwal/cs6235Project | 9e7c5717ea2afdb5f1afef9f9b632b5a765fce4e | [
"Apache-2.0"
] | 1 | 2020-10-22T19:58:53.000Z | 2020-10-22T19:58:53.000Z | python/edna/src/edna/emit/StdoutEmit.py | prernaagarwal/cs6235Project | 9e7c5717ea2afdb5f1afef9f9b632b5a765fce4e | [
"Apache-2.0"
] | 4 | 2020-10-15T03:12:52.000Z | 2021-03-25T20:03:54.000Z | from edna.emit import BaseEmit
from sys import stdout
class StdoutEmit(BaseEmit):
"""An Emitter that writes to Stdout"""
def write(self):
"""Writes the message to the standard output. Ideally, the message should be a string. This is useful only for debugging."""
# NOT an efficient method, but ... | 37.461538 | 132 | 0.687885 | 72 | 487 | 4.583333 | 0.680556 | 0.060606 | 0.084848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002674 | 0.232033 | 487 | 13 | 133 | 37.461538 | 0.879679 | 0.449692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d3e980c512adb8b17ea7c2c2827cb525e1cddfae | 2,586 | py | Python | examples/artwork/MiU.py | rlaphoenix/nfog | 6634fe0693c8f83ea08c4e9e5d1a270922390823 | [
"Apache-2.0"
] | 4 | 2022-02-01T04:26:57.000Z | 2022-02-12T07:21:09.000Z | examples/artwork/MiU.py | rlaphoenix/nfog | 6634fe0693c8f83ea08c4e9e5d1a270922390823 | [
"Apache-2.0"
] | null | null | null | examples/artwork/MiU.py | rlaphoenix/nfog | 6634fe0693c8f83ea08c4e9e5d1a270922390823 | [
"Apache-2.0"
] | null | null | null | import textwrap
from datetime import datetime
from nfog.artwork import Artwork
from nfog.templates import Template
class MiU(Artwork):
@staticmethod
def with_template(template: Template) -> str:
rls_name = textwrap.wrap(template.release_name, 50)
rls_name = [
rls_name[0] if len(rl... | 36.942857 | 85 | 0.221578 | 184 | 2,586 | 3.929348 | 0.532609 | 0.077455 | 0.033195 | 0.030429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019019 | 0.613689 | 2,586 | 69 | 86 | 37.478261 | 0.541542 | 0.011988 | 0 | 0.114754 | 0 | 0 | 0.423197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016393 | false | 0 | 0.065574 | 0 | 0.114754 | 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 |
d3ea32af54a71fea07065e57c17326f9b06e37a1 | 861 | py | Python | backend/articles/migrations/0002_auto_20190125_1632.py | itechub/Jane | 3f4bbc75c5eab8fa1789c985367bdf3cc334adfb | [
"MIT"
] | 4 | 2019-12-22T10:33:01.000Z | 2020-04-19T02:46:44.000Z | backend/articles/migrations/0002_auto_20190125_1632.py | itechub/Jane | 3f4bbc75c5eab8fa1789c985367bdf3cc334adfb | [
"MIT"
] | 37 | 2019-10-14T10:07:19.000Z | 2020-09-24T15:35:30.000Z | backend/articles/migrations/0002_auto_20190125_1632.py | itechub/Jane | 3f4bbc75c5eab8fa1789c985367bdf3cc334adfb | [
"MIT"
] | null | null | null | # Generated by Django 2.1.4 on 2019-01-25 08:32
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("articles", "0001_initial... | 26.90625 | 66 | 0.584204 | 89 | 861 | 5.483146 | 0.595506 | 0.04918 | 0.057377 | 0.090164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033841 | 0.313589 | 861 | 31 | 67 | 27.774194 | 0.791878 | 0.052265 | 0 | 0.12 | 1 | 0 | 0.063882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d3eb779209dbd44bcad862ac5af48fa78d1f9adf | 19,346 | py | Python | make_figures.py | mriedel56/surflay | 3d32d4fdab1c740e99019a383d937e17c0cf5e7a | [
"Apache-2.0"
] | 1 | 2021-12-21T04:09:37.000Z | 2021-12-21T04:09:37.000Z | make_figures.py | mriedel56/surflay | 3d32d4fdab1c740e99019a383d937e17c0cf5e7a | [
"Apache-2.0"
] | null | null | null | make_figures.py | mriedel56/surflay | 3d32d4fdab1c740e99019a383d937e17c0cf5e7a | [
"Apache-2.0"
] | 1 | 2021-12-21T04:11:16.000Z | 2021-12-21T04:11:16.000Z | #!/usr/bin/env python3
"""
Based on
https://github.com/BIDS-Apps/example/blob/aa0d4808974d79c9fbe54d56d3b47bb2cf4e0a0d/run.py
"""
import os
import os.path as op
import shutil
import subprocess
import argparse
from glob import glob
from nilearn import surface
from nilearn import plotting
from nilearn import datasets
fro... | 55.913295 | 2,581 | 0.651349 | 2,742 | 19,346 | 4.363968 | 0.146244 | 0.039111 | 0.034765 | 0.056159 | 0.637807 | 0.605465 | 0.590089 | 0.555741 | 0.502173 | 0.481782 | 0 | 0.016561 | 0.19787 | 19,346 | 345 | 2,582 | 56.075362 | 0.754543 | 0.009821 | 0 | 0.26259 | 0 | 0.007194 | 0.314269 | 0.045179 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017986 | false | 0 | 0.053957 | 0 | 0.07554 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d3ed7abd6f3db6454ff10ccdf14880b6d0e53fbe | 4,953 | py | Python | cride/rides/serializers/rides.py | jesusRL96/curso_platzi_django_adv | 870596b1ba7285a25777e14c031c9026a5d0f754 | [
"MIT"
] | null | null | null | cride/rides/serializers/rides.py | jesusRL96/curso_platzi_django_adv | 870596b1ba7285a25777e14c031c9026a5d0f754 | [
"MIT"
] | null | null | null | cride/rides/serializers/rides.py | jesusRL96/curso_platzi_django_adv | 870596b1ba7285a25777e14c031c9026a5d0f754 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from cride.users.serializers import UserModelSerializer
from cride.rides.models import Ride
from cride.users.models import User
from cride.circles.models import Membership, memberships
from datetime import timedelta
from django.utils import timezone
class CreateRideSerializer(... | 34.636364 | 110 | 0.652736 | 538 | 4,953 | 5.916357 | 0.239777 | 0.044926 | 0.097392 | 0.028904 | 0.201382 | 0.138549 | 0.111844 | 0.091109 | 0.091109 | 0.091109 | 0 | 0.004296 | 0.248132 | 4,953 | 143 | 111 | 34.636364 | 0.85043 | 0.018171 | 0 | 0.296296 | 0 | 0 | 0.132411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.092593 | 0.064815 | 0 | 0.351852 | 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 |
d3f089875c1f605c0b367314b5dba9faed770263 | 947 | py | Python | class6/exercise2b.py | papri-entropy/pyplus | 9791fa6ee0b5414912594e20db0390f8a65c91fc | [
"MIT"
] | null | null | null | class6/exercise2b.py | papri-entropy/pyplus | 9791fa6ee0b5414912594e20db0390f8a65c91fc | [
"MIT"
] | null | null | null | class6/exercise2b.py | papri-entropy/pyplus | 9791fa6ee0b5414912594e20db0390f8a65c91fc | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
2b. Create a Python module named 'my_funcs.py'. In this file create two functions:
function1 should read the YAML file you created in exercise 2a and return the corresponding data structure;
function2 should handle the output printing of the ARP entries
(in other words, create a separate f... | 30.548387 | 114 | 0.763464 | 150 | 947 | 4.773333 | 0.54 | 0.02933 | 0.02514 | 0.061453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.164731 | 947 | 30 | 115 | 31.566667 | 0.896334 | 0.585005 | 0 | 0.166667 | 0 | 0 | 0.083551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d3fa4e6f2e50defb3caa3c0ef2f125dbfdd27e2e | 459 | py | Python | artifacts/migrations/0005_auto_20201201_1019.py | Joe-Bentley/team_totem | 0458447619b1480027168d3b704c401ab7db1e0e | [
"Unlicense"
] | null | null | null | artifacts/migrations/0005_auto_20201201_1019.py | Joe-Bentley/team_totem | 0458447619b1480027168d3b704c401ab7db1e0e | [
"Unlicense"
] | 25 | 2020-11-30T14:32:43.000Z | 2020-12-04T10:35:58.000Z | artifacts/migrations/0005_auto_20201201_1019.py | Joe-Bentley/team_totem | 0458447619b1480027168d3b704c401ab7db1e0e | [
"Unlicense"
] | 2 | 2020-12-01T18:08:24.000Z | 2020-12-04T10:44:11.000Z | # Generated by Django 3.1.3 on 2020-12-01 10:19
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('artifacts', '0004_auto_20201201_1018'),
]
operations = [
migrations.AlterField(
model_name='artifact',
... | 22.95 | 101 | 0.640523 | 50 | 459 | 5.76 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090116 | 0.250545 | 459 | 19 | 102 | 24.157895 | 0.747093 | 0.098039 | 0 | 0 | 1 | 0 | 0.150485 | 0.055825 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3106231d65922ecd7d25a477363b67689411edfb | 1,483 | py | Python | audiomnist/models/audionet_conv_size_5.py | nicogab34/AudioMNIST | 39d8bf5eb2bf5d8a32d21d3d5549935cb4a62931 | [
"MIT"
] | null | null | null | audiomnist/models/audionet_conv_size_5.py | nicogab34/AudioMNIST | 39d8bf5eb2bf5d8a32d21d3d5549935cb4a62931 | [
"MIT"
] | null | null | null | audiomnist/models/audionet_conv_size_5.py | nicogab34/AudioMNIST | 39d8bf5eb2bf5d8a32d21d3d5549935cb4a62931 | [
"MIT"
] | 1 | 2019-09-17T15:26:35.000Z | 2019-09-17T15:26:35.000Z | import tensorflow as tf
from tensorflow.keras import layers, initializers, optimizers
#gaussian0_1 = initializers.RandomNormal(mean=0.0, stddev=0.1, seed=None)
def build_model():
model = tf.keras.Sequential()
model.add(layers.Conv1D(100, 5, input_shape= (8000, 1), padding='same', activation='relu', name='conv... | 44.939394 | 109 | 0.699933 | 213 | 1,483 | 4.830986 | 0.295775 | 0.139942 | 0.244898 | 0.116618 | 0.619048 | 0.590865 | 0.56171 | 0.56171 | 0.56171 | 0.56171 | 0 | 0.065549 | 0.115307 | 1,483 | 33 | 110 | 44.939394 | 0.71875 | 0.04855 | 0 | 0.086957 | 0 | 0 | 0.094259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.086957 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3109122464117afc95eb2c6d8656a01e64f5d368 | 299 | py | Python | run.py | ryankn/telegram-reminder-bot | 76dda9e60b69466253109544736debfbc13daa81 | [
"MIT"
] | null | null | null | run.py | ryankn/telegram-reminder-bot | 76dda9e60b69466253109544736debfbc13daa81 | [
"MIT"
] | null | null | null | run.py | ryankn/telegram-reminder-bot | 76dda9e60b69466253109544736debfbc13daa81 | [
"MIT"
] | null | null | null | import os
import time
t = time.localtime()
print("Bot started at {:0>2}:{:0>2}!".format(t.tm_hour, t.tm_min))
filename = "logs/logs{:0>2}{:0>2}{:0>2}{:0>2}"
while True:
os.system("reminderbot.py")
t = time.localtime()
print("Bot restarted at {:0>2}:{:0>2}!".format(t.tm_hour, t.tm_min))
| 29.9 | 72 | 0.622074 | 57 | 299 | 3.192982 | 0.403509 | 0.087912 | 0.082418 | 0.10989 | 0.56044 | 0.318681 | 0.274725 | 0.274725 | 0.274725 | 0.274725 | 0 | 0.061303 | 0.12709 | 299 | 9 | 73 | 33.222222 | 0.636015 | 0 | 0 | 0.222222 | 0 | 0 | 0.35786 | 0.110368 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
31134e6dd9cbac1aadd7cfad56686487eabc4010 | 73,731 | py | Python | source/pydwf/core/api/analog_out.py | sidneycadot/pydwf | cd9eba8b45d990f09095bec62b20115f0757baba | [
"MIT"
] | 14 | 2021-05-10T16:19:45.000Z | 2022-03-13T08:30:12.000Z | source/pydwf/core/api/analog_out.py | sidneycadot/pydwf | cd9eba8b45d990f09095bec62b20115f0757baba | [
"MIT"
] | 22 | 2021-05-01T09:51:09.000Z | 2021-11-13T12:35:36.000Z | source/pydwf/core/api/analog_out.py | sidneycadot/pydwf | cd9eba8b45d990f09095bec62b20115f0757baba | [
"MIT"
] | 2 | 2021-05-02T12:13:16.000Z | 2022-03-11T21:15:07.000Z | """The |pydwf.core.api.analog_out| module implements a single class: |AnalogOut|."""
# pylint: disable=too-many-lines
from typing import Tuple, List
import numpy as np
from pydwf.core.dwf_device_subapi import AbstractDwfDeviceSubApi
from pydwf.core.auxiliary.typespec_ctypes import typespec_ctypes
from pydwf.core.a... | 39.512862 | 143 | 0.58099 | 7,306 | 73,731 | 5.716124 | 0.065015 | 0.071836 | 0.058905 | 0.055649 | 0.742278 | 0.714741 | 0.666371 | 0.634931 | 0.605407 | 0.549758 | 0 | 0.001122 | 0.311009 | 73,731 | 1,865 | 144 | 39.534048 | 0.820906 | 0.433671 | 0 | 0.522481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001072 | 0 | 1 | 0.128682 | false | 0 | 0.009302 | 0 | 0.220155 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3114ae60e04632a9ee7dc589556b3956dfd933fc | 1,781 | py | Python | ec2x/operations.py | krishnaku/ec2x | aec1c10a28b72807e8ce318f8ce6eb84c67cd1c5 | [
"MIT"
] | null | null | null | ec2x/operations.py | krishnaku/ec2x | aec1c10a28b72807e8ce318f8ce6eb84c67cd1c5 | [
"MIT"
] | 1 | 2019-04-16T15:56:12.000Z | 2019-04-16T16:08:26.000Z | ec2x/operations.py | krishnaku/ec2x | aec1c10a28b72807e8ce318f8ce6eb84c67cd1c5 | [
"MIT"
] | null | null | null | import boto3
from . import name_binding
class NoSuchInstance(Exception):
pass
class IllegalState(Exception):
pass
# wrapper around ec2 instance that defines __enter__ and __exit__ methods so that
# they can be used as resources in with statements. The instance method can be
# used to grab the underlying ... | 25.811594 | 81 | 0.661988 | 214 | 1,781 | 5.271028 | 0.420561 | 0.058511 | 0.037234 | 0.039007 | 0.047872 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010393 | 0.243683 | 1,781 | 68 | 82 | 26.191176 | 0.827023 | 0.154408 | 0 | 0.159091 | 0 | 0 | 0.108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.045455 | 0.045455 | 0.113636 | 0.454545 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
311f30d1f4721adc88e9c1ef6864d01451d20246 | 2,272 | py | Python | planemo/xml/validation.py | davebx/planemo | 6c0dc20a56d23be0398b4b966938cbdd8058a62d | [
"CC-BY-3.0"
] | null | null | null | planemo/xml/validation.py | davebx/planemo | 6c0dc20a56d23be0398b4b966938cbdd8058a62d | [
"CC-BY-3.0"
] | null | null | null | planemo/xml/validation.py | davebx/planemo | 6c0dc20a56d23be0398b4b966938cbdd8058a62d | [
"CC-BY-3.0"
] | null | null | null | import abc
from collections import namedtuple
import subprocess
from galaxy.tools.deps.commands import which
try:
from lxml import etree
except ImportError:
etree = None
XMLLINT_COMMAND = "xmllint --noout --schema {0} {1} 2>&1"
INSTALL_VALIDATOR_MESSAGE = ("This feature requires an external dependency "
... | 27.707317 | 78 | 0.644806 | 244 | 2,272 | 5.893443 | 0.42623 | 0.041725 | 0.044506 | 0.055633 | 0.073018 | 0.073018 | 0.073018 | 0 | 0 | 0 | 0 | 0.004174 | 0.261884 | 2,272 | 81 | 79 | 28.049383 | 0.853309 | 0.111356 | 0 | 0.204082 | 0 | 0 | 0.110204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.102041 | 0.122449 | 0.040816 | 0.489796 | 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 |
3120219a9b0ad2322c7969edf242b26c74140331 | 2,336 | py | Python | examples/optimization/multiobjective/constnsga2jpq.py | sveilleux1/pybrain | 1e1de73142c290edb84e29ca7850835f3e7bca8b | [
"BSD-3-Clause"
] | 2,208 | 2015-01-02T02:14:41.000Z | 2022-03-31T04:45:46.000Z | examples/optimization/multiobjective/constnsga2jpq.py | sveilleux1/pybrain | 1e1de73142c290edb84e29ca7850835f3e7bca8b | [
"BSD-3-Clause"
] | 91 | 2015-01-08T16:42:16.000Z | 2021-12-11T19:16:35.000Z | examples/optimization/multiobjective/constnsga2jpq.py | sveilleux1/pybrain | 1e1de73142c290edb84e29ca7850835f3e7bca8b | [
"BSD-3-Clause"
] | 786 | 2015-01-02T15:18:20.000Z | 2022-02-23T23:42:40.000Z | from __future__ import print_function
#!/usr/bin/env python
""" An illustration of using the NSGA-II multi-objective optimization algorithm
on Constrained Multi-Objective Optimization benchmark function. """
__author__ = 'Jean Pierre Queau, jeanpierre.queau@sbmoffshore.com'
from pybrain.optimization import ConstMult... | 33.371429 | 117 | 0.703767 | 322 | 2,336 | 5.062112 | 0.42236 | 0.009816 | 0.02454 | 0.026994 | 0.082209 | 0.082209 | 0.082209 | 0.082209 | 0.063804 | 0.063804 | 0 | 0.019891 | 0.139127 | 2,336 | 70 | 118 | 33.371429 | 0.790651 | 0.147688 | 0 | 0.15 | 0 | 0 | 0.218301 | 0.019139 | 0 | 0 | 0 | 0 | 0.025 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.425 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3121e1d55caeab8878bf61742f6666bd524923dc | 27,241 | py | Python | core/models.py | akx/kompassi | 99d854588984f2b0d2d857340d24f5af5916b1e3 | [
"CC-BY-3.0"
] | null | null | null | core/models.py | akx/kompassi | 99d854588984f2b0d2d857340d24f5af5916b1e3 | [
"CC-BY-3.0"
] | null | null | null | core/models.py | akx/kompassi | 99d854588984f2b0d2d857340d24f5af5916b1e3 | [
"CC-BY-3.0"
] | null | null | null | # encoding: utf-8
import logging
from datetime import date, datetime, timedelta
from random import choice
from django.core.exceptions import ValidationError
from django.conf import settings
from django.contrib.auth.models import User, Group
from django.db import models
from django.template.loader import render_to_str... | 30.436872 | 176 | 0.638743 | 3,069 | 27,241 | 5.451613 | 0.173346 | 0.027613 | 0.027255 | 0.024386 | 0.368119 | 0.300161 | 0.259757 | 0.211583 | 0.178471 | 0.168191 | 0 | 0.006263 | 0.267354 | 27,241 | 894 | 177 | 30.470917 | 0.832047 | 0.0203 | 0 | 0.320809 | 0 | 0 | 0.148439 | 0.026975 | 0 | 0 | 0 | 0 | 0.004335 | 0 | null | null | 0.028902 | 0.028902 | 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 |
3125da20d18be6fc4d157eacb185d6393693be66 | 7,537 | py | Python | marionette/support/sdk/python/tinyos/marionette/apps/Listen.py | tinyos-io/tinyos-3.x-contrib | 3aaf036722a2afc0c0aad588459a5c3e00bd3c01 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | marionette/support/sdk/python/tinyos/marionette/apps/Listen.py | tinyos-io/tinyos-3.x-contrib | 3aaf036722a2afc0c0aad588459a5c3e00bd3c01 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | marionette/support/sdk/python/tinyos/marionette/apps/Listen.py | tinyos-io/tinyos-3.x-contrib | 3aaf036722a2afc0c0aad588459a5c3e00bd3c01 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | #!/usr/bin/python
#$Id: Listen.py,v 1.1 2008/03/03 20:18:38 okola Exp $
# "Copyright (c) 2000-2003 The Regents of the University of California.
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose, without fee, and without written agreement
... | 31.936441 | 91 | 0.628765 | 942 | 7,537 | 5.018047 | 0.313163 | 0.01904 | 0.041887 | 0.047599 | 0.20605 | 0.15549 | 0.112333 | 0.085255 | 0.04231 | 0.04231 | 0 | 0.017099 | 0.247313 | 7,537 | 235 | 92 | 32.07234 | 0.816147 | 0.166247 | 0 | 0.224852 | 0 | 0 | 0.08422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04142 | null | null | 0.207101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3129f0be73d79b82930225105b98bcebf9e298f5 | 1,754 | py | Python | rong_tools/split_file.py | wanghuafeng/auth_login_tools | b8b8c87d8d9b92c29c1eca6625cf1040d83ecdd0 | [
"MIT"
] | 3 | 2017-08-11T20:59:00.000Z | 2017-10-04T01:23:24.000Z | rong_tools/split_file.py | wanghuafeng/auth_login_tools | b8b8c87d8d9b92c29c1eca6625cf1040d83ecdd0 | [
"MIT"
] | null | null | null | rong_tools/split_file.py | wanghuafeng/auth_login_tools | b8b8c87d8d9b92c29c1eca6625cf1040d83ecdd0 | [
"MIT"
] | 1 | 2018-07-26T02:49:41.000Z | 2018-07-26T02:49:41.000Z | __author__ = 'huafeng'
#coding:utf-8
import sys
import os
def cut_file(filename, partial_count=1):
with open(filename) as f:
line_list = list(set(f.readlines()))#打乱顺序
lenght_of_lines = len(line_list)
print 'total line count: ', lenght_of_lines
partial_file_line_count = lenght_of_line... | 39.863636 | 150 | 0.574686 | 215 | 1,754 | 4.409302 | 0.344186 | 0.067511 | 0.079114 | 0.105485 | 0.242616 | 0.21519 | 0.103376 | 0.103376 | 0.103376 | 0.103376 | 0 | 0.012458 | 0.313569 | 1,754 | 43 | 151 | 40.790698 | 0.774917 | 0.067845 | 0 | 0.121951 | 0 | 0 | 0.118405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04878 | null | null | 0.146341 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.