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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3ea81994cbad17cea06f62afefcfa5cac16ce5b6 | 522 | py | Python | docs/examples/relationshps_manually_related.py | angru/datamodel | d242b393970dac1a8a53603454ed870fe70b27cf | [
"MIT"
] | 2 | 2020-06-17T21:00:09.000Z | 2020-07-07T15:49:00.000Z | docs/examples/relationshps_manually_related.py | angru/datamodel | d242b393970dac1a8a53603454ed870fe70b27cf | [
"MIT"
] | 14 | 2020-06-17T14:39:19.000Z | 2020-12-25T17:05:43.000Z | docs/examples/relationshps_manually_related.py | angru/corm | d242b393970dac1a8a53603454ed870fe70b27cf | [
"MIT"
] | null | null | null | from corm import Storage, Entity, Relationship, RelationType
storage = Storage()
class Address(Entity):
street: str
number: int
class User(Entity):
name: str
address: Address = Relationship(
entity_type=Address,
relation_type=RelationType.PARENT,
)
address = Address({'street':... | 18 | 60 | 0.678161 | 58 | 522 | 6 | 0.413793 | 0.12069 | 0.109195 | 0.178161 | 0.212644 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002398 | 0.201149 | 522 | 28 | 61 | 18.642857 | 0.832134 | 0 | 0 | 0.105263 | 0 | 0 | 0.047893 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.368421 | 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 |
3ea8bbeaa0b23792ca03803143cc0f9621cd2b38 | 4,867 | py | Python | keras/transfer_learning_keras.py | vermouth1992/tf-playground | 3beab9e477b88ec33f95e9726da9ce7ab94758a9 | [
"Apache-2.0"
] | 1 | 2018-03-11T18:53:00.000Z | 2018-03-11T18:53:00.000Z | keras/transfer_learning_keras.py | vermouth1992/tf-playground | 3beab9e477b88ec33f95e9726da9ce7ab94758a9 | [
"Apache-2.0"
] | null | null | null | keras/transfer_learning_keras.py | vermouth1992/tf-playground | 3beab9e477b88ec33f95e9726da9ce7ab94758a9 | [
"Apache-2.0"
] | null | null | null | """
Transfer learning from tiny-imagenet-100-a to cifar10
"""
import h5py
import numpy as np
np.random.seed(1337) # for reproducibility
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation, Flatten
from keras.layers import Convolution2D, BatchNormalization, ZeroPadding2D
from keras... | 35.268116 | 119 | 0.642901 | 655 | 4,867 | 4.496183 | 0.232061 | 0.043464 | 0.020374 | 0.006791 | 0.19253 | 0.134805 | 0.091341 | 0.088625 | 0.088625 | 0.088625 | 0 | 0.029647 | 0.230738 | 4,867 | 137 | 120 | 35.525547 | 0.756944 | 0.008013 | 0 | 0.121212 | 0 | 0 | 0.093505 | 0.020944 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.080808 | null | null | 0.010101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3eacd2c50c0bbe2e8ecdfbfbf9a844bdc3617c5e | 448 | py | Python | session-5/labs/6.py | alyssonalvaran/kaizend | 2064d4b2896c9885c6789391e2bfa7f884d4d6cc | [
"MIT"
] | null | null | null | session-5/labs/6.py | alyssonalvaran/kaizend | 2064d4b2896c9885c6789391e2bfa7f884d4d6cc | [
"MIT"
] | null | null | null | session-5/labs/6.py | alyssonalvaran/kaizend | 2064d4b2896c9885c6789391e2bfa7f884d4d6cc | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
from IPython import embed
def generate_html():
return """
<html>
<head></head>
<body>
<div id="target">Hello World</div>
</body>
</html>
"""
def main():
html_doc = generate_html()
soup = BeautifulSoup(ht... | 18.666667 | 50 | 0.544643 | 49 | 448 | 4.714286 | 0.55102 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003247 | 0.3125 | 448 | 24 | 51 | 18.666667 | 0.746753 | 0 | 0 | 0 | 1 | 0 | 0.394209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.055556 | 0.277778 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3eadf075a3781e7b8e298d25da20dbd0d8af2c4f | 44,889 | py | Python | files/face_landmark/data_process1/DataRow.py | aiDLcnnLSTM/aiDLcnnLSTM.github.io | 8572b08007fa705859727bd22012891216152dca | [
"MIT"
] | null | null | null | files/face_landmark/data_process1/DataRow.py | aiDLcnnLSTM/aiDLcnnLSTM.github.io | 8572b08007fa705859727bd22012891216152dca | [
"MIT"
] | null | null | null | files/face_landmark/data_process1/DataRow.py | aiDLcnnLSTM/aiDLcnnLSTM.github.io | 8572b08007fa705859727bd22012891216152dca | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 4 22:30:29 2015
@author: Ishay Tubi
"""
import os
import cv2
import numpy as np
import sys
import csv
import math
global GLOBAL_IMAGE_SIZE
GLOBAL_IMAGE_SIZE = 60.
def getGitRepFolder():
import subprocess
return subprocess.Popen(['git', 'rev-parse', '--show-top... | 38.730802 | 294 | 0.56085 | 5,900 | 44,889 | 4.214237 | 0.092712 | 0.008647 | 0.007079 | 0.005309 | 0.570222 | 0.500764 | 0.453185 | 0.428411 | 0.399292 | 0.390846 | 0 | 0.052233 | 0.286039 | 44,889 | 1,159 | 295 | 38.730802 | 0.72358 | 0.166032 | 0 | 0.393899 | 0 | 0.001326 | 0.015557 | 0.002051 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002653 | 0.02122 | null | null | 0.01061 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3eb6a01b4ddd350b0cc9deacf7e6ca3d6693803d | 1,773 | py | Python | arduino_airtemperature.py | aaprieto/ravenview_python | 62feb4a2e3da651b5e3f0b2033b131943795ee77 | [
"MIT"
] | null | null | null | arduino_airtemperature.py | aaprieto/ravenview_python | 62feb4a2e3da651b5e3f0b2033b131943795ee77 | [
"MIT"
] | null | null | null | arduino_airtemperature.py | aaprieto/ravenview_python | 62feb4a2e3da651b5e3f0b2033b131943795ee77 | [
"MIT"
] | null | null | null | import pyfirmata
import time
from pyfirmata import Arduino, util
import RPi.GPIO as GPIO
import dht11
import time
import datetime
import http.client
import requests
# run by: python3.5 arduino_airtemperature.py
# initialize GPIO for raspberry pi
# New Changes to be made
# Specifically make some changes with regards t... | 43.243902 | 328 | 0.663283 | 214 | 1,773 | 5.453271 | 0.434579 | 0.077121 | 0.102828 | 0.075407 | 0.364182 | 0.346187 | 0.325621 | 0.325621 | 0.325621 | 0.325621 | 0 | 0.03088 | 0.141568 | 1,773 | 40 | 329 | 44.325 | 0.735874 | 0.434856 | 0 | 0.095238 | 0 | 0 | 0.176292 | 0.02229 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3eb8210b032ed622306bd19bcc98351ba23a2737 | 2,627 | py | Python | utilities.py | kiiski10/meatGrinder | bfac88c999116d5da823350ca430bf7b3b8e3834 | [
"CC0-1.0"
] | null | null | null | utilities.py | kiiski10/meatGrinder | bfac88c999116d5da823350ca430bf7b3b8e3834 | [
"CC0-1.0"
] | null | null | null | utilities.py | kiiski10/meatGrinder | bfac88c999116d5da823350ca430bf7b3b8e3834 | [
"CC0-1.0"
] | null | null | null | import pygame, math
pygame.font.init()
font = pygame.font.SysFont('Monotype', 12)
def distTo(fromPos, toPos):
dist = math.sqrt((fromPos[0] - toPos[0]) ** 2 + (fromPos[1] - toPos[1]) ** 2)
return(dist)
def angleTo(fromPos, toPos):
dx = toPos[0] - fromPos[0]
dy = toPos[1] - fromPos[1]
rads = math.atan2(dy,dx)
ra... | 25.504854 | 78 | 0.655881 | 391 | 2,627 | 4.391304 | 0.294118 | 0.070472 | 0.051252 | 0.01922 | 0.143273 | 0.143273 | 0.143273 | 0.09901 | 0.073384 | 0.073384 | 0 | 0.052102 | 0.167111 | 2,627 | 102 | 79 | 25.754902 | 0.732633 | 0.061287 | 0 | 0.148148 | 0 | 0 | 0.010167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.123457 | false | 0.074074 | 0.012346 | 0.012346 | 0.135802 | 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 |
3ebf4bafa867beb2580fd16cfcae9d06113e2d8d | 48,423 | py | Python | tests/features/steps/facts_tests.py | Netests/netests | 1a48bda461761c4ec854d6fa0c38629049009a4a | [
"MIT"
] | 14 | 2020-06-08T07:34:59.000Z | 2022-03-14T08:52:03.000Z | tests/features/steps/facts_tests.py | Netests/netests | 1a48bda461761c4ec854d6fa0c38629049009a4a | [
"MIT"
] | null | null | null | tests/features/steps/facts_tests.py | Netests/netests | 1a48bda461761c4ec854d6fa0c38629049009a4a | [
"MIT"
] | 3 | 2020-06-19T03:57:05.000Z | 2020-06-22T22:46:42.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import json
import yaml
import textfsm
from behave import given, when, then
from netests.protocols.facts import Facts
from netests.converters.facts.arista.api import _arista_facts_api_converter
from netests.converters.facts.arista.ssh import _arista_facts_ssh_converter
fr... | 30.416457 | 102 | 0.616567 | 6,067 | 48,423 | 4.742706 | 0.058678 | 0.02815 | 0.051609 | 0.084451 | 0.751929 | 0.706297 | 0.618753 | 0.582436 | 0.564398 | 0.526865 | 0 | 0.087144 | 0.280528 | 48,423 | 1,591 | 103 | 30.435575 | 0.73877 | 0.000888 | 0 | 0.408225 | 0 | 0 | 0.275807 | 0.06629 | 0 | 0 | 0 | 0 | 0.043412 | 1 | 0.10358 | false | 0 | 0.018279 | 0.000762 | 0.12262 | 0.012186 | 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 |
3ec005797638b77dc508e0299b9acb4e76a48645 | 1,480 | py | Python | acq4/util/DatabaseGui/QueryTemplate_pyqt5.py | aleonlein/acq4 | 4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555 | [
"MIT"
] | 1 | 2020-06-04T17:04:53.000Z | 2020-06-04T17:04:53.000Z | acq4/util/DatabaseGui/QueryTemplate_pyqt5.py | aleonlein/acq4 | 4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555 | [
"MIT"
] | 24 | 2016-09-27T17:25:24.000Z | 2017-03-02T21:00:11.000Z | acq4/util/DatabaseGui/QueryTemplate_pyqt5.py | sensapex/acq4 | 9561ba73caff42c609bd02270527858433862ad8 | [
"MIT"
] | 4 | 2016-10-19T06:39:36.000Z | 2019-09-30T21:06:45.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'acq4/util/DatabaseGui/QueryTemplate.ui'
#
# Created by: PyQt5 UI code generator 5.8.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
... | 37 | 93 | 0.687838 | 167 | 1,480 | 6.071856 | 0.407186 | 0.096647 | 0.044379 | 0.079882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027825 | 0.198649 | 1,480 | 39 | 94 | 37.948718 | 0.82715 | 0.140541 | 0 | 0 | 1 | 0 | 0.04585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.074074 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ecba086ab30659cbd3bcfd63c120897ec431d06 | 6,489 | py | Python | mondemand/client.py | takeda/mondemand-python | c1e3abe4913876045cf4df94c655d10040e2751a | [
"BSD-3-Clause"
] | null | null | null | mondemand/client.py | takeda/mondemand-python | c1e3abe4913876045cf4df94c655d10040e2751a | [
"BSD-3-Clause"
] | 1 | 2016-10-17T17:54:29.000Z | 2016-10-24T23:14:51.000Z | mondemand/client.py | takeda/mondemand-python | c1e3abe4913876045cf4df94c655d10040e2751a | [
"BSD-3-Clause"
] | 2 | 2016-10-11T17:53:44.000Z | 2018-10-18T17:57:50.000Z | from __future__ import absolute_import
from functools import partial
from inspect import getframeinfo, stack
from typing import AnyStr, List
from ._mondemand import ffi, lib
from .lwes_transport import LwesTransport
from .utils import text_to_cstring
from . import utils
_cstring_to_text = partial(utils.cstring_to_te... | 30.32243 | 91 | 0.719217 | 950 | 6,489 | 4.713684 | 0.154737 | 0.085753 | 0.055159 | 0.032157 | 0.595578 | 0.5364 | 0.486601 | 0.426753 | 0.363778 | 0.264404 | 0 | 0.002035 | 0.167052 | 6,489 | 213 | 92 | 30.464789 | 0.826457 | 0.339189 | 0 | 0.170732 | 0 | 0 | 0.012024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304878 | false | 0 | 0.097561 | 0 | 0.621951 | 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 |
3ed3496e782655d69aaf8f1158a5a4e53befada4 | 496 | py | Python | pp-cdmx/public_account/migrations/0005_auto_20210526_1942.py | rickrebel/race-history | be93b88cf4658fd2c5ec409d8f422b2960d1ae60 | [
"MIT"
] | 1 | 2020-08-31T21:08:54.000Z | 2020-08-31T21:08:54.000Z | pp-cdmx/public_account/migrations/0005_auto_20210526_1942.py | rickrebel/race-history | be93b88cf4658fd2c5ec409d8f422b2960d1ae60 | [
"MIT"
] | 1 | 2021-06-10T23:09:45.000Z | 2021-06-10T23:09:45.000Z | pp-cdmx/public_account/migrations/0005_auto_20210526_1942.py | rickrebel/race-history | be93b88cf4658fd2c5ec409d8f422b2960d1ae60 | [
"MIT"
] | 1 | 2021-07-16T19:32:04.000Z | 2021-07-16T19:32:04.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2021-05-27 00:42
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('public_account', '0004_auto_20210526_1341'),
]
operations = [
migrations.AlterMode... | 24.8 | 120 | 0.653226 | 55 | 496 | 5.672727 | 0.818182 | 0.070513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089239 | 0.231855 | 496 | 19 | 121 | 26.105263 | 0.729659 | 0.139113 | 0 | 0 | 1 | 0 | 0.299528 | 0.054245 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ed3a2608429d6b34f0ae586d873d24cc4b0abbf | 2,917 | py | Python | audiotube/download.py | mzntaka0/audiotube | 71204b0af99398512a2787b3d06a548d2efa9184 | [
"Apache-2.0"
] | 2 | 2020-05-18T02:01:26.000Z | 2020-06-17T14:30:50.000Z | audiotube/download.py | mzntaka0/audiotube | 71204b0af99398512a2787b3d06a548d2efa9184 | [
"Apache-2.0"
] | 3 | 2018-12-12T15:13:11.000Z | 2019-09-10T13:43:12.000Z | audiotube/download.py | mzntaka0/audiotube | 71204b0af99398512a2787b3d06a548d2efa9184 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
"""
from __future__ import unicode_literals
import glob
from pathlib import Path
import os
import youtube_dl
import urllib
# FIXME: ganna be duplicated.
class Download(object):
def __init__(self):
pass
def run(self, video_ids: list, output_dir: Path = 'result'):
i... | 31.365591 | 108 | 0.569763 | 347 | 2,917 | 4.639769 | 0.412104 | 0.029814 | 0.034161 | 0.023602 | 0.07205 | 0.043478 | 0.043478 | 0.043478 | 0.043478 | 0 | 0 | 0.012993 | 0.287624 | 2,917 | 92 | 109 | 31.706522 | 0.76179 | 0.068906 | 0 | 0 | 0 | 0.015385 | 0.102298 | 0 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.107692 | false | 0.015385 | 0.092308 | 0 | 0.230769 | 0.061538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
3ed94fc2551b40dce5021e16b57c5d1a08cd7f7a | 4,366 | py | Python | Hub/Program/System/System.py | MPZinke/SmartCurtain | ef9976d7a6b982bb044e6fd914fdea4756d5b5c4 | [
"MIT"
] | null | null | null | Hub/Program/System/System.py | MPZinke/SmartCurtain | ef9976d7a6b982bb044e6fd914fdea4756d5b5c4 | [
"MIT"
] | 18 | 2020-06-21T02:36:52.000Z | 2022-03-14T04:17:56.000Z | Hub/Program/System/System.py | MPZinke/SmartCurtain | ef9976d7a6b982bb044e6fd914fdea4756d5b5c4 | [
"MIT"
] | 1 | 2020-01-19T02:24:38.000Z | 2020-01-19T02:24:38.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "MPZinke"
########################################################################################################################
# #
# cre... | 40.055046 | 120 | 0.504581 | 425 | 4,366 | 5.418824 | 0.310588 | 0.076422 | 0.041251 | 0.020842 | 0.12766 | 0.052974 | 0 | 0 | 0 | 0 | 0 | 0.007215 | 0.301649 | 4,366 | 108 | 121 | 40.425926 | 0.679895 | 0.338983 | 0 | 0.033333 | 0 | 0 | 0.054559 | 0.019077 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.016667 | 0.183333 | 0.1 | 0.55 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3edd631a241140ab7e9088c03331f4bf59ca38e6 | 601 | py | Python | hackerearth/Algorithms/Shelters and Tunnels/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerearth/Algorithms/Shelters and Tunnels/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerearth/Algorithms/Shelters and Tunnels/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | """
# Sample code to perform I/O:
name = input() # Reading input from STDIN
print('Hi, %s.' % name) # Writing output to STDOUT
# Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
"""
# Write your code here
n = int(input())
shelters = [0] * (n + 1)
f... | 28.619048 | 94 | 0.62396 | 95 | 601 | 3.884211 | 0.589474 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0.22629 | 601 | 20 | 95 | 30.05 | 0.780645 | 0.442596 | 0 | 0 | 0 | 0 | 0.003058 | 0 | 0 | 0 | 0 | 0.05 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ee2a27a16698b5ffa165e7d12b4278d7ee4063a | 794 | py | Python | safe_rl/ddpg/utils.py | dhivmanohar/CMPT720-419-Course-Project | 512bb15b6956bb0ce1830d361bfcc9b4c44a4238 | [
"MIT"
] | null | null | null | safe_rl/ddpg/utils.py | dhivmanohar/CMPT720-419-Course-Project | 512bb15b6956bb0ce1830d361bfcc9b4c44a4238 | [
"MIT"
] | null | null | null | safe_rl/ddpg/utils.py | dhivmanohar/CMPT720-419-Course-Project | 512bb15b6956bb0ce1830d361bfcc9b4c44a4238 | [
"MIT"
] | 2 | 2021-05-08T21:28:06.000Z | 2021-08-06T04:00:24.000Z | import numpy as np
def avoid_backward_action(action):
## if backward movement is initiated, stop the car
if np.all(action > 0.0):
action[0] = 0.0
action[1] = 0.0
return action
def reward_path_divergence(position_history, pos_ptr, reward_multiplier):
v2 = position_history[pos_ptr] - positio... | 24.8125 | 73 | 0.693955 | 131 | 794 | 3.977099 | 0.29771 | 0.019194 | 0.172745 | 0.201536 | 0.084453 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07571 | 0.201511 | 794 | 32 | 74 | 24.8125 | 0.746057 | 0.075567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.318182 | 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 |
3efa750d7daf793e51cf07c10c1e0d0c1a798ee8 | 330 | py | Python | bgtasks/rest_framework/response.py | kentuck13/bgtasks | 7fb2896d494d180c5d0cf4c23d7182312c4fceba | [
"MIT"
] | 5 | 2019-07-29T11:01:18.000Z | 2020-04-22T11:53:02.000Z | bgtasks/rest_framework/response.py | kentuck13/bgtasks | 7fb2896d494d180c5d0cf4c23d7182312c4fceba | [
"MIT"
] | null | null | null | bgtasks/rest_framework/response.py | kentuck13/bgtasks | 7fb2896d494d180c5d0cf4c23d7182312c4fceba | [
"MIT"
] | 2 | 2019-10-14T14:24:32.000Z | 2020-01-14T12:44:11.000Z | from ..constants import SUCCESS, FAIL
class IncorrectStatus(Exception):
pass
class Response(dict):
def __init__(self, data, status=SUCCESS):
if status != FAIL and status != SUCCESS:
raise IncorrectStatus('Status should be equal fail or success')
super().__init__(status=status, d... | 23.571429 | 75 | 0.681818 | 39 | 330 | 5.564103 | 0.615385 | 0.119816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221212 | 330 | 13 | 76 | 25.384615 | 0.844358 | 0 | 0 | 0 | 0 | 0 | 0.115152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3efd65f7d7a18ee05f464ac74a551916c504362e | 590 | py | Python | config.py | kpsaurus/Flask-Kickstarter | 910d0a259ec397badd362694f9c32ee4552ff237 | [
"MIT"
] | null | null | null | config.py | kpsaurus/Flask-Kickstarter | 910d0a259ec397badd362694f9c32ee4552ff237 | [
"MIT"
] | null | null | null | config.py | kpsaurus/Flask-Kickstarter | 910d0a259ec397badd362694f9c32ee4552ff237 | [
"MIT"
] | null | null | null | """
------------------------
Flask application configuration module
------------------------
"""
import os
class Config(object):
"""
Parent config class.
"""
API_KEY = os.getenv("API_KEY")
DEBUG = True
TESTING = True
PROPAGATE_EXCEPTIONS = True
JSON_SORT_KEYS = False
JSONIFY_PRETTY... | 17.352941 | 50 | 0.601695 | 54 | 590 | 6.444444 | 0.611111 | 0.034483 | 0.126437 | 0.143678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233898 | 590 | 33 | 51 | 17.878788 | 0.769912 | 0.342373 | 0 | 0 | 0 | 0 | 0.020896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.076923 | 0 | 0.923077 | 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 |
4103e3aec17439c73f8ab183d17ef8854cffb693 | 18,638 | py | Python | gitbin/gitbin.py | didiivan2001/git-bin | 4af052a4e4057bc8fabc3ab3979dba5d8d85b6ec | [
"MIT"
] | 4 | 2016-03-17T04:37:43.000Z | 2017-06-10T01:01:56.000Z | gitbin/gitbin.py | didiivan2001/git-bin | 4af052a4e4057bc8fabc3ab3979dba5d8d85b6ec | [
"MIT"
] | null | null | null | gitbin/gitbin.py | didiivan2001/git-bin | 4af052a4e4057bc8fabc3ab3979dba5d8d85b6ec | [
"MIT"
] | 1 | 2018-03-12T19:08:56.000Z | 2018-03-12T19:08:56.000Z | #!/usr/bin/env python
'''
Usage:
git-bin [-v] [--debug] <command> [--] <file>...
git-bin init
git-bin (-h|--help|--version)
Commands:
add store file in binstore and add it's link to the index
edit retrieve a file from the binstore for local edit
checkout restore th... | 37.959267 | 90 | 0.586705 | 2,218 | 18,638 | 4.860685 | 0.178088 | 0.021148 | 0.011687 | 0.012244 | 0.310639 | 0.243484 | 0.207309 | 0.155366 | 0.147945 | 0.147945 | 0 | 0.002696 | 0.323372 | 18,638 | 490 | 91 | 38.036735 | 0.852193 | 0.256251 | 0 | 0.358779 | 0 | 0 | 0.075741 | 0 | 0 | 0 | 0 | 0.002041 | 0 | 0 | null | null | 0.019084 | 0.034351 | null | null | 0.10687 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4106de8e3545e697909d0d2abd1b066dacb240f5 | 1,358 | py | Python | kaggle_imaterialist2020_model/types.py | hrsma2i/kaggle-imaterialist2020-model | 7822b52f743afb3367a4448a303ac1ee0f869e1d | [
"Apache-2.0"
] | 2 | 2021-07-06T04:41:53.000Z | 2022-03-11T00:22:18.000Z | kaggle_imaterialist2020_model/types.py | hrsma2i/kaggle-imaterialist2020-model | 7822b52f743afb3367a4448a303ac1ee0f869e1d | [
"Apache-2.0"
] | 7 | 2021-09-01T05:29:35.000Z | 2022-01-17T10:49:59.000Z | kaggle_imaterialist2020_model/types.py | hrsma2i/kaggle-imaterialist2020-model | 7822b52f743afb3367a4448a303ac1ee0f869e1d | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
from typing import NewType
import numpy as np
from typing_extensions import TypedDict
class Prediction(TypedDict):
pred_num_detctions: int
pred_image_info: np.array # (2, 2)=(orginal|scale, height|width) # noqa: E501
pred_detection_boxes: np.array # (num_detections,... | 28.291667 | 83 | 0.713549 | 170 | 1,358 | 5.529412 | 0.505882 | 0.037234 | 0.042553 | 0.085106 | 0.070213 | 0.070213 | 0 | 0 | 0 | 0 | 0 | 0.005391 | 0.180412 | 1,358 | 47 | 84 | 28.893617 | 0.839173 | 0.267305 | 0 | 0 | 0 | 0 | 0.04883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.766667 | 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 |
4107658f31f93d1b678f7916d84b31e331150d7c | 6,232 | py | Python | poems/tests.py | Nikolas-01/Lesson_23 | bce66a3062b5715ad5d1590801fbc90dd69c7a1a | [
"MIT"
] | null | null | null | poems/tests.py | Nikolas-01/Lesson_23 | bce66a3062b5715ad5d1590801fbc90dd69c7a1a | [
"MIT"
] | null | null | null | poems/tests.py | Nikolas-01/Lesson_23 | bce66a3062b5715ad5d1590801fbc90dd69c7a1a | [
"MIT"
] | null | null | null | from django.test import TestCase
from .models import Poem, Tag
from faker import Faker
from mixer.backend.django import mixer
import pandas as pd
# Create your tests here.
# выдавал ошибку ModuleImportError - пришлось удалить файл __init__ из того же уровня. где лежит manager.py
# https://stackoverflow.com/questions... | 35.816092 | 147 | 0.66303 | 891 | 6,232 | 4.444444 | 0.159371 | 0.040404 | 0.081566 | 0.036364 | 0.614394 | 0.537374 | 0.451515 | 0.375758 | 0.341667 | 0.341667 | 0 | 0.026759 | 0.20844 | 6,232 | 173 | 148 | 36.023121 | 0.775998 | 0.207638 | 0 | 0.423729 | 0 | 0 | 0.093858 | 0 | 0 | 0 | 0 | 0 | 0.322034 | 1 | 0.220339 | false | 0 | 0.084746 | 0 | 0.355932 | 0.050847 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
410ae704f0d509a5327fb666c742d62ec111a513 | 561 | py | Python | SQL-Connections/listDBName.py | solothinker/Python-Xperiments | 13d4e7bf8a0ce3eec22537d71eb9e27dc1f4c4ef | [
"MIT"
] | null | null | null | SQL-Connections/listDBName.py | solothinker/Python-Xperiments | 13d4e7bf8a0ce3eec22537d71eb9e27dc1f4c4ef | [
"MIT"
] | null | null | null | SQL-Connections/listDBName.py | solothinker/Python-Xperiments | 13d4e7bf8a0ce3eec22537d71eb9e27dc1f4c4ef | [
"MIT"
] | null | null | null | # showing the list of database
# Hiding user name and password
from getpass import getpass
import config
from mysql.connector import connect,Error
#Making connection with SQL
try:
with connect(
host="localhost",
user=config.username,
password =config.password,
) as connection:
... | 25.5 | 43 | 0.632799 | 68 | 561 | 5.161765 | 0.573529 | 0.074074 | 0.062678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2959 | 561 | 21 | 44 | 26.714286 | 0.888608 | 0.149733 | 0 | 0 | 0 | 0 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.1875 | 0 | 0.1875 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
41163de7d7e66a364b7efd7dfdda2de2f7781915 | 663 | py | Python | tests/test_regres.py | dswistowski/radegast | 00723946611c1d9f4075fccc59b9100117d8281e | [
"MIT"
] | null | null | null | tests/test_regres.py | dswistowski/radegast | 00723946611c1d9f4075fccc59b9100117d8281e | [
"MIT"
] | 64 | 2020-08-05T08:46:57.000Z | 2022-03-29T01:02:39.000Z | tests/test_regres.py | dswistowski/radegast | 00723946611c1d9f4075fccc59b9100117d8281e | [
"MIT"
] | null | null | null | import pytest
from examples.reqres import ReqRes, User, UserDetail
@pytest.fixture
def client():
return ReqRes()
def test_reg_res_client_should_be_able_to_list_users(client: ReqRes):
users = client.users()
assert users.page == 1
assert len(users.data)
def test_reg_res_client_should_be_able_to_get... | 22.1 | 74 | 0.739065 | 101 | 663 | 4.564356 | 0.346535 | 0.060738 | 0.065076 | 0.084599 | 0.409978 | 0.308026 | 0.308026 | 0.143167 | 0.143167 | 0 | 0 | 0.010753 | 0.158371 | 663 | 29 | 75 | 22.862069 | 0.815412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 1 | 0.277778 | false | 0 | 0.111111 | 0.055556 | 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 |
41291199c4eafba40abf17920cd2b59fcdf70b01 | 285 | py | Python | examples/python3/handler.py | thomas-tacquet/serverless-scaleway-functions | 1a2349635cbd0569337b531bd85504451a249173 | [
"MIT"
] | 44 | 2019-06-19T15:21:50.000Z | 2022-02-19T14:43:23.000Z | examples/python3/handler.py | thomas-tacquet/serverless-scaleway-functions | 1a2349635cbd0569337b531bd85504451a249173 | [
"MIT"
] | 14 | 2019-08-27T10:47:16.000Z | 2022-03-27T18:10:44.000Z | examples/python3/handler.py | thomas-tacquet/serverless-scaleway-functions | 1a2349635cbd0569337b531bd85504451a249173 | [
"MIT"
] | 10 | 2019-06-20T08:03:07.000Z | 2022-03-28T15:03:49.000Z | def handle(event, context):
"""handle a request to the function
Args:
event (dict): request params
context (dict): function call metadata
"""
return {
"message": "Hello From Python3 runtime on Serverless Framework and Scaleway Functions"
}
| 25.909091 | 94 | 0.638596 | 32 | 285 | 5.6875 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004854 | 0.277193 | 285 | 10 | 95 | 28.5 | 0.878641 | 0.4 | 0 | 0 | 0 | 0 | 0.540541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5abcc3c285e890718e57d7969b8c58e17921368 | 8,357 | py | Python | plugin/ssh_vm.py | indigo-dc/tts_plugin_ssh | 9fe6add73ba39824295966c8a0297d1ae1b5c584 | [
"Apache-2.0"
] | null | null | null | plugin/ssh_vm.py | indigo-dc/tts_plugin_ssh | 9fe6add73ba39824295966c8a0297d1ae1b5c584 | [
"Apache-2.0"
] | 3 | 2017-04-12T15:22:52.000Z | 2017-05-05T14:03:27.000Z | plugin/ssh_vm.py | indigo-dc/tts_plugin_ssh | 9fe6add73ba39824295966c8a0297d1ae1b5c584 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
import json
import base64
import sys
import os
import subprocess
import traceback
from pwd import getpwnam
MAPFILE="/home/watts/.config/watts/watts.map"
MAPCMD="/home/watts/.config/watts/watts-mapfile.py"
def insert_ssh_key(UserName, UserId, CreateUser, UserPrefix, InKe... | 37.308036 | 121 | 0.596506 | 984 | 8,357 | 4.979675 | 0.219512 | 0.029388 | 0.045918 | 0.053061 | 0.47551 | 0.396735 | 0.37449 | 0.294898 | 0.267959 | 0.267959 | 0 | 0.006817 | 0.280364 | 8,357 | 223 | 122 | 37.475336 | 0.807948 | 0.023812 | 0 | 0.351648 | 0 | 0 | 0.226107 | 0.016317 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010989 | 0.038462 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f5aefd9dc7512792c14ff343866a392aa09bd94f | 1,551 | py | Python | valuesbydata.py | ChooseYourPlan/WeatherDB | dac68599a2fe5ceffee003f18db488c03468a121 | [
"MIT"
] | null | null | null | valuesbydata.py | ChooseYourPlan/WeatherDB | dac68599a2fe5ceffee003f18db488c03468a121 | [
"MIT"
] | null | null | null | valuesbydata.py | ChooseYourPlan/WeatherDB | dac68599a2fe5ceffee003f18db488c03468a121 | [
"MIT"
] | null | null | null | from datetime import datetime as dt, timedelta
def unixtimetotime(time):
time = dt.utcfromtimestamp(time)
time = time + timedelta(hours=0)
return time.strftime('%Y-%m-%d %H:%M:%S')
def fahrtocels(fahr):
return (fahr - 32) / 1.8
def checkjsonkey(data,loc,key,i = 0):
if key in data[loc]:
r... | 33 | 84 | 0.666022 | 187 | 1,551 | 5.518717 | 0.278075 | 0.11531 | 0.239341 | 0.023256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006395 | 0.193424 | 1,551 | 46 | 85 | 33.717391 | 0.818545 | 0 | 0 | 0.052632 | 0 | 0 | 0.110896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.026316 | 0.026316 | 0.289474 | 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 |
f5b49fff873705b9f350069ca8ca297323cbdb5f | 2,489 | py | Python | src/pretrainer.py | BNkosi/odin | 867ed4227078bfe856020791eb9d182fa777352b | [
"Apache-2.0"
] | 1 | 2020-11-30T15:44:54.000Z | 2020-11-30T15:44:54.000Z | src/pretrainer.py | BNkosi/odin | 867ed4227078bfe856020791eb9d182fa777352b | [
"Apache-2.0"
] | null | null | null | src/pretrainer.py | BNkosi/odin | 867ed4227078bfe856020791eb9d182fa777352b | [
"Apache-2.0"
] | 2 | 2020-12-15T11:25:01.000Z | 2021-09-14T11:17:31.000Z | import requests
import json
import os
import re
from haystack.utils import export_answers_to_csv
import logging
import subprocess
import time
import pprint
import pandas as pd
from typing import Dict, Any, List
from haystack.document_store.sql import DocumentORM
from collections import defaultdict
## Paths to raw ques... | 36.072464 | 177 | 0.71354 | 304 | 2,489 | 5.707237 | 0.532895 | 0.055331 | 0.019597 | 0.026513 | 0.028818 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048211 | 0.191643 | 2,489 | 69 | 178 | 36.072464 | 0.814115 | 0.05906 | 0 | 0 | 0 | 0.017857 | 0.284856 | 0.073359 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.017857 | 0.339286 | 0 | 0.339286 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f5b836e495f68b399e65e1f639ba56650cf618bf | 389 | py | Python | standard/migrations/0013_auto_20200713_1638.py | dennereed/paleocore | d6da6c39cde96050ee4b9e7213ec1200530cbeee | [
"MIT"
] | 1 | 2021-02-05T19:50:13.000Z | 2021-02-05T19:50:13.000Z | standard/migrations/0013_auto_20200713_1638.py | dennereed/paleocore | d6da6c39cde96050ee4b9e7213ec1200530cbeee | [
"MIT"
] | 59 | 2020-06-17T22:21:51.000Z | 2022-02-10T05:00:01.000Z | standard/migrations/0013_auto_20200713_1638.py | dennereed/paleocore | d6da6c39cde96050ee4b9e7213ec1200530cbeee | [
"MIT"
] | 2 | 2020-07-01T14:11:09.000Z | 2020-08-10T17:27:26.000Z | # Generated by Django 2.2.13 on 2020-07-13 16:38
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('standard', '0012_termsindexpage_project_code'),
]
operations = [
migrations.RenameField(
model_name='termsindexpage',
old_n... | 20.473684 | 57 | 0.611825 | 40 | 389 | 5.775 | 0.7 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071685 | 0.282776 | 389 | 18 | 58 | 21.611111 | 0.756272 | 0.118252 | 0 | 0 | 1 | 0 | 0.214076 | 0.093842 | 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 |
f5bfcc852f1c9e0d0269eff8b0d6a6671d9d31af | 9,494 | py | Python | tools/test/scenarios/bin/tapiHelper.py | jiujiuwo/myonos | 37e8a16da9881d0d8050a7e517f59ed81996980c | [
"Apache-2.0"
] | null | null | null | tools/test/scenarios/bin/tapiHelper.py | jiujiuwo/myonos | 37e8a16da9881d0d8050a7e517f59ed81996980c | [
"Apache-2.0"
] | 11 | 2020-03-04T22:57:32.000Z | 2022-03-02T04:25:46.000Z | tools/test/scenarios/bin/tapiHelper.py | jiujiuwo/myonos | 37e8a16da9881d0d8050a7e517f59ed81996980c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import requests
import json
#
# Creates client-side connectivity json
#
def tapi_client_input(sip_uuids):
create_input = {
"tapi-connectivity:input": {
"end-point" : [
{
"local-id": sip_uuids[0],
"service-in... | 37.976 | 138 | 0.608384 | 1,204 | 9,494 | 4.636213 | 0.144518 | 0.051594 | 0.067718 | 0.035829 | 0.715693 | 0.692046 | 0.665711 | 0.644214 | 0.627015 | 0.576138 | 0 | 0.007468 | 0.252475 | 9,494 | 249 | 139 | 38.128514 | 0.779062 | 0.154097 | 0 | 0.50303 | 0 | 0.024242 | 0.285285 | 0.119077 | 0 | 0 | 0 | 0.004016 | 0.036364 | 0 | null | null | 0 | 0.012121 | null | null | 0.042424 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f5d59cf6022d8b9bcb626ae39c532707effe175b | 483 | py | Python | _build/jupyter_execute/labs/CL7_student_examples/ex05_NBA/NBA.py | COGS18/COGS18.github.io | aace51b206e5bf13775478b940812295998f16cd | [
"MIT"
] | null | null | null | _build/jupyter_execute/labs/CL7_student_examples/ex05_NBA/NBA.py | COGS18/COGS18.github.io | aace51b206e5bf13775478b940812295998f16cd | [
"MIT"
] | null | null | null | _build/jupyter_execute/labs/CL7_student_examples/ex05_NBA/NBA.py | COGS18/COGS18.github.io | aace51b206e5bf13775478b940812295998f16cd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# ### Module Import
# In[4]:
from for_CL7_use import NbaPlayer
nba = NbaPlayer()
nba.add_player('Leborn James', 'Los Angeles Lakers', 36)
nba.add_player('James Harden', 'Brookyln Nets', 31)
nba.add_player('Chris Paul', 'Phoenix Suns', 36)
nba.add_player('Kevin Durant', 'Brook... | 21.954545 | 61 | 0.714286 | 74 | 483 | 4.540541 | 0.689189 | 0.107143 | 0.214286 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035461 | 0.124224 | 483 | 21 | 62 | 23 | 0.758865 | 0.115942 | 0 | 0 | 0 | 0 | 0.415274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
f5d7e091ecca7c860e4e2391b4f1c5b0ac15fec8 | 3,025 | py | Python | yapylib/helpers/string/utils.py | twocucao/YaPyLib | 8fe56f35b9f45d3c7f688ab5842c3a1e50688e01 | [
"MIT"
] | 2 | 2017-05-21T01:58:37.000Z | 2018-02-23T15:35:14.000Z | yapylib/helpers/string/utils.py | twocucao/YaPyLib | 8fe56f35b9f45d3c7f688ab5842c3a1e50688e01 | [
"MIT"
] | 1 | 2021-06-08T19:12:08.000Z | 2021-06-08T19:12:08.000Z | yapylib/helpers/string/utils.py | twocucao/YaPyLib | 8fe56f35b9f45d3c7f688ab5842c3a1e50688e01 | [
"MIT"
] | null | null | null | """
字符串抽取程序
抽取类型:
- 抽取单个,抽取全部
"""
"""
string_util 主要处理 比较短的文本,长文本的处理交给text_util
对字符串的一些常见的判断.
1. is_blank 为None或者strip以后为0
2. is_empty 为None或者长度为0
3. has?
4. 返回字符串特点
提取请求url中的中文内容.
"""
def is_blank(_str):
"""
判断是否为空(除去空格换行)
:param _str:
:return:
"""
return _str is None or len(_str.strip()... | 22.407407 | 73 | 0.607934 | 471 | 3,025 | 3.821656 | 0.305732 | 0.027222 | 0.016667 | 0.030556 | 0.171111 | 0.062222 | 0.041111 | 0.041111 | 0.041111 | 0.041111 | 0 | 0.04127 | 0.271074 | 3,025 | 134 | 74 | 22.574627 | 0.775057 | 0.435041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035216 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.027778 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5e166cd8178315cbdccbc727923a8e2582b3423 | 174 | py | Python | Chapter 7/code2.py | PacktPublishing/Mastering-IPython-4 | d752f7ba38e0c9399a83d57da406fe26152f272b | [
"MIT"
] | 22 | 2016-06-07T07:52:35.000Z | 2021-11-08T13:12:21.000Z | Chapter 7/code2.py | PacktPublishing/Mastering-IPython-4 | d752f7ba38e0c9399a83d57da406fe26152f272b | [
"MIT"
] | 2 | 2016-05-23T08:20:54.000Z | 2018-07-02T08:21:32.000Z | Chapter 7/code2.py | PacktPublishing/Mastering-IPython-4 | d752f7ba38e0c9399a83d57da406fe26152f272b | [
"MIT"
] | 27 | 2016-05-23T08:19:51.000Z | 2021-08-31T02:46:00.000Z | import numpy as np
import bokeh.plotting as bp
bp.output_file("bokeh1.html")
x = np.linspace(0, 2 * np.pi, 1024)
y = np.cos(x)
fig = bp.figure( )
fig.line(x, y)
bp.show(fig)
| 19.333333 | 35 | 0.678161 | 36 | 174 | 3.25 | 0.638889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047297 | 0.149425 | 174 | 8 | 36 | 21.75 | 0.743243 | 0 | 0 | 0 | 0 | 0 | 0.063218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
f5e607f4cd664fd61dcb9478d96b7ba392026b62 | 2,074 | py | Python | parameter_estimation.py | vporubsky/COMBINE_2020_reproducibility | 43ae5cda128845fbb1d63bc22dc97c0afff04c0c | [
"Apache-2.0"
] | null | null | null | parameter_estimation.py | vporubsky/COMBINE_2020_reproducibility | 43ae5cda128845fbb1d63bc22dc97c0afff04c0c | [
"Apache-2.0"
] | null | null | null | parameter_estimation.py | vporubsky/COMBINE_2020_reproducibility | 43ae5cda128845fbb1d63bc22dc97c0afff04c0c | [
"Apache-2.0"
] | null | null | null | '''parameter_estimation.py
This script performs parameter fitting on the model specified in model_v003.py.
Parameters k1 and k4 are fit to synthetic experimental data generated
using gen_experimental_data.py'''
from model_fitting import model_fitting
from model_v003 import antimony_str
import tellurium as te
import m... | 43.208333 | 124 | 0.767599 | 328 | 2,074 | 4.661585 | 0.371951 | 0.036625 | 0.064094 | 0.049052 | 0.12688 | 0.043165 | 0.043165 | 0 | 0 | 0 | 0 | 0.028939 | 0.100289 | 2,074 | 48 | 125 | 43.208333 | 0.790461 | 0.281581 | 0 | 0 | 1 | 0.107143 | 0.359269 | 0.148173 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.178571 | 0 | 0.178571 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5ea8bdc934d023ee722860e59f8c11ea3cb0a55 | 2,969 | py | Python | src/canvas-extractor/tests/mapping/test_section_associations.py | stephenfuqua/Ed-Fi-X-Fizz | 94597eda585d4f62f69c12e2a58fa8e8846db11b | [
"Apache-2.0"
] | 3 | 2020-10-15T10:29:59.000Z | 2020-12-01T21:40:55.000Z | src/canvas-extractor/tests/mapping/test_section_associations.py | stephenfuqua/Ed-Fi-X-Fizz | 94597eda585d4f62f69c12e2a58fa8e8846db11b | [
"Apache-2.0"
] | 40 | 2020-08-17T21:08:33.000Z | 2021-02-02T19:56:09.000Z | src/canvas-extractor/tests/mapping/test_section_associations.py | stephenfuqua/Ed-Fi-X-Fizz | 94597eda585d4f62f69c12e2a58fa8e8846db11b | [
"Apache-2.0"
] | 10 | 2021-06-10T16:27:27.000Z | 2021-12-27T12:31:57.000Z | # SPDX-License-Identifier: Apache-2.0
# Licensed to the Ed-Fi Alliance under one or more agreements.
# The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
# See the LICENSE and NOTICES files in the project root for more information.
import pandas as pd
import pytest
from edfi_canvas_e... | 53.017857 | 494 | 0.734928 | 442 | 2,969 | 4.656109 | 0.380091 | 0.023324 | 0.03207 | 0.021866 | 0.190962 | 0.08552 | 0 | 0 | 0 | 0 | 0 | 0.09221 | 0.152577 | 2,969 | 55 | 495 | 53.981818 | 0.725755 | 0.11418 | 0 | 0 | 0 | 0.096774 | 0.432113 | 0.295195 | 0 | 0 | 0 | 0 | 0.193548 | 1 | 0.322581 | false | 0 | 0.129032 | 0 | 0.483871 | 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 |
f5f2caec627a0daf986df132c99a610ebeda849d | 5,322 | py | Python | geoevents/notes/tests.py | mcenirm/geoevents | f78cc09b8bcc8c6e4eee0d1de14e5becad7d49e6 | [
"MIT"
] | 25 | 2015-01-06T15:37:31.000Z | 2020-12-10T19:05:22.000Z | geoevents/notes/tests.py | mcenirm/geoevents | f78cc09b8bcc8c6e4eee0d1de14e5becad7d49e6 | [
"MIT"
] | 2 | 2015-01-31T02:36:58.000Z | 2015-02-01T00:11:15.000Z | geoevents/notes/tests.py | mcenirm/geoevents | f78cc09b8bcc8c6e4eee0d1de14e5becad7d49e6 | [
"MIT"
] | 5 | 2016-01-01T15:04:49.000Z | 2019-05-30T23:34:30.000Z | # This technical data was produced for the U. S. Government under Contract No. W15P7T-13-C-F600, and
# is subject to the Rights in Technical Data-Noncommercial Items clause at DFARS 252.227-7013 (FEB 2012)
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from djang... | 40.938462 | 111 | 0.630026 | 679 | 5,322 | 4.81296 | 0.181149 | 0.023868 | 0.099143 | 0.121175 | 0.636781 | 0.616279 | 0.615361 | 0.600673 | 0.567319 | 0.517136 | 0 | 0.018601 | 0.24239 | 5,322 | 129 | 112 | 41.255814 | 0.791915 | 0.116498 | 0 | 0.46875 | 0 | 0 | 0.116989 | 0.025591 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.125 | false | 0.09375 | 0.083333 | 0 | 0.229167 | 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 |
eb039996bdf74af42e119828652339f3347cf59d | 179 | py | Python | noobWS/constants.py | lancechua/noobWS | 5362d8b3bc547d34d390904e01d74ec42cad320c | [
"MIT"
] | null | null | null | noobWS/constants.py | lancechua/noobWS | 5362d8b3bc547d34d390904e01d74ec42cad320c | [
"MIT"
] | null | null | null | noobWS/constants.py | lancechua/noobWS | 5362d8b3bc547d34d390904e01d74ec42cad320c | [
"MIT"
] | null | null | null | from enum import Enum
class Keyword(Enum):
# tasks
command = b"__command__"
# commands
shutdown = b"__shutdown__"
ping = b"__ping__"
pong = b"__pong__"
| 14.916667 | 30 | 0.631285 | 21 | 179 | 4.619048 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273743 | 179 | 11 | 31 | 16.272727 | 0.746154 | 0.078212 | 0 | 0 | 0 | 0 | 0.240741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb046445cf8f0482b383b9a47ce2a05769d9fa33 | 4,777 | py | Python | _pkg_Studios/pkgStudio_kuhq/_obsolete/mod_SequenceLoader_v1s0.py | tianlunjiang/_NukeStudio_v2 | 5ed9b9217aff16d903bdcda5c2f1e1cd3bebe367 | [
"CNRI-Python"
] | 6 | 2019-08-27T01:30:15.000Z | 2020-11-17T00:40:01.000Z | _pkg_Studios/pkgStudio_kuhq/_obsolete/mod_SequenceLoader_v1s0.py | tianlunjiang/_NukeMods | 47861bfc273262abba55b9f9a61782a5d89479b1 | [
"CNRI-Python"
] | 2 | 2019-01-22T04:09:28.000Z | 2019-01-23T15:11:39.000Z | _pkg_Studios/pkgStudio_kuhq/_obsolete/mod_SequenceLoader_v1s0.py | tianlunjiang/_NukeMods | 47861bfc273262abba55b9f9a61782a5d89479b1 | [
"CNRI-Python"
] | 1 | 2020-08-03T22:43:23.000Z | 2020-08-03T22:43:23.000Z | '''
# source: https://community.foundry.com/discuss/topic/102647/how-can-i-import-all-sequence-images-from-one-folder-and-sub?mode=Post&postID=891904
import aovs exrs as image group
/<Render>_<Version>/<RenderLayer>/<RenderPasses>/<RenderPasses>_<Version>.%04d.exr
/TIO_orbit_1k_v001/rs_rsl_car/albeto/albeto_1k_v001.000... | 31.222222 | 184 | 0.534645 | 535 | 4,777 | 4.605607 | 0.308411 | 0.058442 | 0.020292 | 0.028409 | 0.074675 | 0.065747 | 0.022727 | 0.022727 | 0 | 0 | 0 | 0.015864 | 0.234666 | 4,777 | 152 | 185 | 31.427632 | 0.658096 | 0.14821 | 0 | 0 | 0 | 0 | 0.086108 | 0.006722 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0.013889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
eb088b0c74fa4b2cd36a4d21ef39a7bb7a028107 | 351 | py | Python | 2020/06/24/How to Create a Celery Task Progress Bar in Django/djangoprogressbar/progress/example/tasks.py | kenjitagawa/youtube_video_code | ef3c48b9e136b3745d10395d94be64cb0a1f1c97 | [
"Unlicense"
] | 492 | 2019-06-25T12:54:31.000Z | 2022-03-30T12:38:28.000Z | 2020/06/24/How to Create a Celery Task Progress Bar in Django/djangoprogressbar/progress/example/tasks.py | kenjitagawa/youtube_video_code | ef3c48b9e136b3745d10395d94be64cb0a1f1c97 | [
"Unlicense"
] | 23 | 2019-10-01T01:36:08.000Z | 2022-02-10T12:46:16.000Z | 2020/06/24/How to Create a Celery Task Progress Bar in Django/djangoprogressbar/progress/example/tasks.py | kenjitagawa/youtube_video_code | ef3c48b9e136b3745d10395d94be64cb0a1f1c97 | [
"Unlicense"
] | 1,734 | 2019-06-03T06:25:13.000Z | 2022-03-31T23:57:53.000Z | from celery import shared_task
from celery_progress.backend import ProgressRecorder
from time import sleep
@shared_task(bind=True)
def go_to_sleep(self, duration):
progress_recorder = ProgressRecorder(self)
for i in range(100):
sleep(duration)
progress_recorder.set_progress(i + 1, 100, f'On it... | 29.25 | 71 | 0.740741 | 49 | 351 | 5.142857 | 0.612245 | 0.079365 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024221 | 0.176638 | 351 | 12 | 72 | 29.25 | 0.847751 | 0 | 0 | 0 | 0 | 0 | 0.056818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.5 | 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 |
eb13fd04629836b79238bae15e60ad9086389db5 | 16,928 | py | Python | gui/console.py | krassowski/basic-particle-simulator | f9246f319fc600558837102c9b5ec8972e9bbf68 | [
"BSD-3-Clause"
] | null | null | null | gui/console.py | krassowski/basic-particle-simulator | f9246f319fc600558837102c9b5ec8972e9bbf68 | [
"BSD-3-Clause"
] | null | null | null | gui/console.py | krassowski/basic-particle-simulator | f9246f319fc600558837102c9b5ec8972e9bbf68 | [
"BSD-3-Clause"
] | null | null | null | from internationalize import _
import gi
gi.require_version('GtkSource', '3.0')
from gi.repository import Gtk
from gi.repository import GtkSource
from gi.repository import Pango
from highlighter import Highlighter
import miscellaneous as misc
import re
class Console:
def __init__(self, option_browser, simulation... | 38.298643 | 159 | 0.537098 | 1,825 | 16,928 | 4.776986 | 0.208219 | 0.044964 | 0.016518 | 0.013191 | 0.181922 | 0.101285 | 0.073526 | 0.067791 | 0.038426 | 0.012847 | 0 | 0.008951 | 0.353202 | 16,928 | 441 | 160 | 38.385488 | 0.787287 | 0.085007 | 0 | 0.153846 | 0 | 0.003497 | 0.0859 | 0.019074 | 0 | 0 | 0 | 0.002268 | 0.003497 | 0 | null | null | 0.006993 | 0.031469 | null | null | 0.006993 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
eb1cc740f6e27c9b37bb94a22a74f164b201fd96 | 585 | py | Python | timelapse.py | gfrancis-ALElab/tools | a67ff34af2ed3480dc9bb8fb8aa550c7248e5695 | [
"MIT"
] | null | null | null | timelapse.py | gfrancis-ALElab/tools | a67ff34af2ed3480dc9bb8fb8aa550c7248e5695 | [
"MIT"
] | null | null | null | timelapse.py | gfrancis-ALElab/tools | a67ff34af2ed3480dc9bb8fb8aa550c7248e5695 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Jun 11 14:10:17 2021
@author: gfrancis
"""
import os
import glob
from PIL import Image
import numpy as np
lib = r'C:\Users\gfrancis\Documents\Planet\WR_timeline\Priority_Regions\differences'
i = 0
for pic in glob.glob(lib + '\\*.jpg'):
G = Image.open(pic)
arr_... | 11.7 | 94 | 0.625641 | 97 | 585 | 3.731959 | 0.690722 | 0.033149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06823 | 0.198291 | 585 | 49 | 95 | 11.938776 | 0.703625 | 0.131624 | 0 | 0 | 0 | 0.076923 | 0.399168 | 0.155925 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
eb3d964f21c144afecfec5a3d74c77614de4c072 | 1,691 | py | Python | astronomy_datamodels/spectrum_aperture.py | spacetelescope/astronomy_datamodels | ca5db82d5982781ea763cef9851d4c982fd86328 | [
"BSD-3-Clause"
] | 1 | 2019-03-08T03:06:43.000Z | 2019-03-08T03:06:43.000Z | astronomy_datamodels/spectrum_aperture.py | spacetelescope/astronomy_datamodels | ca5db82d5982781ea763cef9851d4c982fd86328 | [
"BSD-3-Clause"
] | 1 | 2020-10-29T19:54:28.000Z | 2020-10-29T19:54:28.000Z | astronomy_datamodels/spectrum_aperture.py | spacetelescope/astronomy_datamodels | ca5db82d5982781ea763cef9851d4c982fd86328 | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-
import numpy as np
from .dm_util import check_sequence_type
class SpectrumAperture:
def __init__(self, center, footprint, aperture_id, meta=None):
self.center = center
self.footprint = footprint
self.a... | 28.661017 | 71 | 0.622708 | 209 | 1,691 | 4.913876 | 0.325359 | 0.087634 | 0.054528 | 0.046738 | 0.155794 | 0.091529 | 0.091529 | 0.091529 | 0.091529 | 0.091529 | 0 | 0.005872 | 0.295092 | 1,691 | 59 | 72 | 28.661017 | 0.855705 | 0.049083 | 0 | 0.136364 | 0 | 0 | 0.102117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0.045455 | 0.090909 | 0.363636 | 0.204545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
de17ebe398c9afb1d5652457ecb6b1667ada885f | 2,082 | py | Python | mava/core_jax.py | 1998x-stack/Mava | 2c8f7f59f235340886e92045b6730cf5a542a496 | [
"Apache-2.0"
] | 1 | 2022-03-19T12:51:16.000Z | 2022-03-19T12:51:16.000Z | mava/core_jax.py | 1998x-stack/Mava | 2c8f7f59f235340886e92045b6730cf5a542a496 | [
"Apache-2.0"
] | null | null | null | mava/core_jax.py | 1998x-stack/Mava | 2c8f7f59f235340886e92045b6730cf5a542a496 | [
"Apache-2.0"
] | null | null | null | # python3
# Copyright 2021 InstaDeep Ltd. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 28.916667 | 87 | 0.647454 | 257 | 2,082 | 5.214008 | 0.505837 | 0.044776 | 0.074627 | 0.023881 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | 0 | 0.005956 | 0.274256 | 2,082 | 71 | 88 | 29.323944 | 0.880874 | 0.602786 | 0 | 0.25 | 0 | 0 | 0.009288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.15 | 0 | 0.45 | 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 |
de1f94b2a44be1215ee9c4714301465cf0a99118 | 1,315 | py | Python | src/researchhub_access_group/migrations/0001_initial.py | ResearchHub/ResearchHub-Backend-Open | d36dca33afae2d442690694bb2ab17180d84bcd3 | [
"MIT"
] | 18 | 2021-05-20T13:20:16.000Z | 2022-02-11T02:40:18.000Z | src/researchhub_access_group/migrations/0001_initial.py | ResearchHub/ResearchHub-Backend-Open | d36dca33afae2d442690694bb2ab17180d84bcd3 | [
"MIT"
] | 109 | 2021-05-21T20:14:23.000Z | 2022-03-31T20:56:10.000Z | src/researchhub_access_group/migrations/0001_initial.py | ResearchHub/ResearchHub-Backend-Open | d36dca33afae2d442690694bb2ab17180d84bcd3 | [
"MIT"
] | 4 | 2021-05-17T13:47:53.000Z | 2022-02-12T10:48:21.000Z | # Generated by Django 2.2 on 2021-06-03 21:49
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.Crea... | 41.09375 | 141 | 0.645627 | 142 | 1,315 | 5.78169 | 0.5 | 0.058465 | 0.077954 | 0.102314 | 0.380024 | 0.306943 | 0.200974 | 0.200974 | 0.200974 | 0 | 0 | 0.013944 | 0.236502 | 1,315 | 31 | 142 | 42.419355 | 0.803785 | 0.0327 | 0 | 0 | 1 | 0 | 0.156693 | 0.033858 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de20b18a4bb2929377d53766c556f3d543da99c4 | 1,109 | py | Python | tests/test_payment.py | link-money/distribution_robot-master | 4c35d80b8b74b6549529d147277981d593a24402 | [
"MIT"
] | null | null | null | tests/test_payment.py | link-money/distribution_robot-master | 4c35d80b8b74b6549529d147277981d593a24402 | [
"MIT"
] | null | null | null | tests/test_payment.py | link-money/distribution_robot-master | 4c35d80b8b74b6549529d147277981d593a24402 | [
"MIT"
] | null | null | null | # passed
from wrapper.client import Client
api_server='testnet'
private_keys=['SBHTQEEKVTF2E3MQ6WCSFN725D73AELT2NSHS3PI7JASZLEJ4LT6MPD4',
'SBTCFAL73MPCPIPLSIUTRQDLQQAXYCM4TILA26PGBL6QXXEU5SAGLYEU']
addresses=['GDJJB2QA7XZSBHCGIRUAIUC5RJ6MJGV2DG5THNNJOTUQWXEDKXLVFZMI',
'GCKEZY2FW2MLANNJTQZI... | 31.685714 | 107 | 0.777277 | 126 | 1,109 | 6.603175 | 0.436508 | 0.066106 | 0.036058 | 0.048077 | 0.050481 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06442 | 0.090171 | 1,109 | 34 | 108 | 32.617647 | 0.760159 | 0.483318 | 0 | 0 | 0 | 0 | 0.423913 | 0.405797 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de34a8a715ea929e38fa77fac7723b25c6190d51 | 2,545 | py | Python | tools/deep_memory_profiler/subcommands/upload.py | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 231 | 2015-01-08T09:04:44.000Z | 2021-12-30T03:03:10.000Z | tools/deep_memory_profiler/subcommands/upload.py | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2018-02-10T21:00:08.000Z | 2018-03-20T05:09:50.000Z | tools/deep_memory_profiler/subcommands/upload.py | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 268 | 2015-01-21T05:53:28.000Z | 2022-03-25T22:09:01.000Z | # Copyright 2013 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 logging
import os
import subprocess
import tempfile
import zipfile
from lib.subcommand import SubCommand
from lib.symbol import SymbolDataSources
L... | 31.8125 | 77 | 0.673477 | 329 | 2,545 | 5.027356 | 0.389058 | 0.036276 | 0.050786 | 0.038694 | 0.126965 | 0.126965 | 0.126965 | 0.122128 | 0.072551 | 0.072551 | 0 | 0.003528 | 0.220432 | 2,545 | 79 | 78 | 32.21519 | 0.830141 | 0.060904 | 0 | 0.075472 | 0 | 0 | 0.083758 | 0.009718 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.132075 | 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 |
de399e7d7787e7136c4b833022aee6e9264f5575 | 655 | py | Python | LeetCode/python3/122.py | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 279 | 2019-02-19T16:00:32.000Z | 2022-03-23T12:16:30.000Z | LeetCode/python3/122.py | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 2 | 2019-03-31T08:03:06.000Z | 2021-03-07T04:54:32.000Z | LeetCode/python3/122.py | ZintrulCre/LeetCode_Crawler | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 12 | 2019-01-29T11:45:32.000Z | 2019-02-04T16:31:46.000Z | class Solution:
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
size = len(prices)
bought = False
profit = 0
price = 0
for i in range(0, size - 1):
if not bought:
if prices[i] < prices[i + 1]... | 28.478261 | 47 | 0.39542 | 66 | 655 | 3.924242 | 0.409091 | 0.189189 | 0.092664 | 0.11583 | 0.177606 | 0.177606 | 0.177606 | 0 | 0 | 0 | 0 | 0.024922 | 0.509924 | 655 | 23 | 48 | 28.478261 | 0.781931 | 0.053435 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.157895 | 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 |
de3d38299ac137dbe3dfb9fa5b81c9d8ff703e50 | 443 | py | Python | infra/migrations/0007_instancemodel_netint.py | Maulikchhabra/Terraform-Console | 61b9fc4a15f0c2b9c1212cd131818772ad145d5e | [
"MIT"
] | null | null | null | infra/migrations/0007_instancemodel_netint.py | Maulikchhabra/Terraform-Console | 61b9fc4a15f0c2b9c1212cd131818772ad145d5e | [
"MIT"
] | null | null | null | infra/migrations/0007_instancemodel_netint.py | Maulikchhabra/Terraform-Console | 61b9fc4a15f0c2b9c1212cd131818772ad145d5e | [
"MIT"
] | null | null | null | # Generated by Django 3.1.6 on 2021-03-05 03:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('infra', '0006_networkinterfacemodel_subnetid'),
]
operations = [
migrations.AddField(
model_name='instancemodel',
... | 23.315789 | 75 | 0.595937 | 45 | 443 | 5.777778 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070513 | 0.295711 | 443 | 18 | 76 | 24.611111 | 0.762821 | 0.10158 | 0 | 0 | 1 | 0 | 0.156085 | 0.092593 | 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 |
de3eecfca5be7795a32c72ebfd9d3d917c170faf | 812 | py | Python | setup.py | BroadwayDev/django-inlineobjects | 977543e03be93d684f97ea4fcee9116ff73e94bd | [
"BSD-3-Clause"
] | 3 | 2015-08-12T12:44:57.000Z | 2020-05-15T17:27:35.000Z | setup.py | BroadwayDev/django-inlineobjects | 977543e03be93d684f97ea4fcee9116ff73e94bd | [
"BSD-3-Clause"
] | null | null | null | setup.py | BroadwayDev/django-inlineobjects | 977543e03be93d684f97ea4fcee9116ff73e94bd | [
"BSD-3-Clause"
] | 1 | 2020-06-09T20:26:04.000Z | 2020-06-09T20:26:04.000Z | from setuptools import setup, find_packages
setup(
name='django-inlineobjects',
packages=find_packages(),
version='2.0.3',
description='A reusable Django application used to insert content objects into other pieces of content.',
author='Peter Hogg',
author_email='peter@havenaut.net',
url='h... | 33.833333 | 109 | 0.681034 | 89 | 812 | 6.089888 | 0.820225 | 0.04428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.19335 | 812 | 23 | 110 | 35.304348 | 0.819847 | 0 | 0 | 0 | 0 | 0 | 0.482759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 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 |
de417b85e07ad081ea3d57864d06061249d522dd | 11,833 | py | Python | old_scripts/mouse_localization.py | cohnt/Deformable-Object-Manifold-Learning | 81b6d757df78fbd4427db7ab87051ed1514180ee | [
"MIT"
] | null | null | null | old_scripts/mouse_localization.py | cohnt/Deformable-Object-Manifold-Learning | 81b6d757df78fbd4427db7ab87051ed1514180ee | [
"MIT"
] | null | null | null | old_scripts/mouse_localization.py | cohnt/Deformable-Object-Manifold-Learning | 81b6d757df78fbd4427db7ab87051ed1514180ee | [
"MIT"
] | null | null | null | import time
import numpy as np
import matplotlib.pyplot as plt
import PIL.Image
# Dataset Parameters
n_train_max = 4751
n_test_max = 6630
n_tracked_points = 5
filepath = "./data/mouse_dataset/"
# Subset
n_train = 400
n_test = 100
# train_inds = np.random.choice(n_train_max, n_train, replace=False)
# test_inds = np.ra... | 32.419178 | 146 | 0.689259 | 1,929 | 11,833 | 4.068948 | 0.162779 | 0.032616 | 0.014015 | 0.008409 | 0.366671 | 0.284495 | 0.219773 | 0.202574 | 0.171359 | 0.171359 | 0 | 0.035799 | 0.140708 | 11,833 | 365 | 147 | 32.419178 | 0.736133 | 0.247106 | 0 | 0.052632 | 0 | 0 | 0.022908 | 0.002381 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030702 | null | null | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
de4713e1d8db7e6bac4ff232885777d53f1922c2 | 7,843 | py | Python | clusterking/stability/fom.py | celis/B_decays_clustering- | d73739edaf7fa82a0041d9567d27cd490232b75c | [
"MIT"
] | 9 | 2019-03-27T12:32:24.000Z | 2021-10-19T10:18:33.000Z | clusterking/stability/fom.py | celis/B_decays_clustering- | d73739edaf7fa82a0041d9567d27cd490232b75c | [
"MIT"
] | 30 | 2019-03-26T18:32:39.000Z | 2019-09-24T06:54:28.000Z | clusterking/stability/fom.py | celis/B_decays_clustering- | d73739edaf7fa82a0041d9567d27cd490232b75c | [
"MIT"
] | 2 | 2019-08-08T09:42:38.000Z | 2019-12-29T22:47:05.000Z | #!/usr/bin/env python3
# std
from abc import abstractmethod
from typing import Optional, Callable, Dict, Tuple, Any, Union
# 3rd
import numpy as np
# ours
from clusterking.stability.preprocessor import Preprocessor
from clusterking.worker import AbstractWorker
from clusterking.result import AbstractResult
from clust... | 30.756863 | 79 | 0.601683 | 896 | 7,843 | 5.139509 | 0.219866 | 0.019544 | 0.015201 | 0.022801 | 0.2076 | 0.182845 | 0.11987 | 0.10076 | 0.079913 | 0.040391 | 0 | 0.01899 | 0.288283 | 7,843 | 254 | 80 | 30.877953 | 0.805984 | 0.257555 | 0 | 0.203008 | 0 | 0 | 0.046941 | 0 | 0 | 0 | 0 | 0.011811 | 0.007519 | 1 | 0.150376 | false | 0.022556 | 0.052632 | 0.007519 | 0.390977 | 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 |
de492bec43259535e3261ec76f8b11f4fd9439b9 | 3,680 | py | Python | simpleFF_s.py | SimonHL/TSA | 735a720a61443d35de580e0e737b325fa1699a8d | [
"BSD-2-Clause"
] | null | null | null | simpleFF_s.py | SimonHL/TSA | 735a720a61443d35de580e0e737b325fa1699a8d | [
"BSD-2-Clause"
] | null | null | null | simpleFF_s.py | SimonHL/TSA | 735a720a61443d35de580e0e737b325fa1699a8d | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 27 16:22:26 2015
使用前向网络进行频率识别:直接延时法
@author: simon
"""
import sys,time
import numpy
import theano
import theano.tensor as T
import matplotlib.pyplot as plt
def step(*args):
#global n_input, n_hidden
x = [args[u] for u in xrange(n_input)]
W_in = [args[u... | 27.669173 | 116 | 0.571467 | 554 | 3,680 | 3.615523 | 0.277978 | 0.047928 | 0.009985 | 0.013979 | 0.183225 | 0.099351 | 0.065402 | 0.034448 | 0 | 0 | 0 | 0.025038 | 0.283696 | 3,680 | 133 | 117 | 27.669173 | 0.734825 | 0.060054 | 0 | 0.046512 | 0 | 0 | 0.042484 | 0.008318 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05814 | null | null | 0.104651 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
de4bef35d7029a6d329c2775051b75cd7d7d84d4 | 501 | py | Python | src/clearskies/column_types/json.py | cmancone/clearskies | aaa33fef6d03205faf26f123183a46adc1dbef9c | [
"MIT"
] | 4 | 2021-04-23T18:13:06.000Z | 2022-03-26T01:51:01.000Z | src/clearskies/column_types/json.py | cmancone/clearskies | aaa33fef6d03205faf26f123183a46adc1dbef9c | [
"MIT"
] | null | null | null | src/clearskies/column_types/json.py | cmancone/clearskies | aaa33fef6d03205faf26f123183a46adc1dbef9c | [
"MIT"
] | null | null | null | import json
from .column import Column
class JSON(Column):
def from_backend(self, value):
if type(value) == list or type(value) == dict:
return value
if not value:
return None
try:
return json.loads(value)
except json.JSONDecodeError:
... | 25.05 | 84 | 0.57485 | 64 | 501 | 4.46875 | 0.421875 | 0.111888 | 0.125874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.335329 | 501 | 19 | 85 | 26.368421 | 0.858859 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
de51ae8c0573b4127d7d84cf5159769838d5f57b | 2,169 | py | Python | app/user/serializers.py | ericart89/recipe-app-api | 5ca31eb9e8b986090d750a7cc4b915c6447413d7 | [
"MIT"
] | null | null | null | app/user/serializers.py | ericart89/recipe-app-api | 5ca31eb9e8b986090d750a7cc4b915c6447413d7 | [
"MIT"
] | null | null | null | app/user/serializers.py | ericart89/recipe-app-api | 5ca31eb9e8b986090d750a7cc4b915c6447413d7 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model, authenticate
# from django.utils.translation import gettext_lazy as _
from rest_framework import serializers
class UserSerializer(serializers.ModelSerializer):
"""Serializer for the users object"""
class Meta:
model = get_user_model()
fields = (... | 35.557377 | 74 | 0.649147 | 252 | 2,169 | 5.503968 | 0.424603 | 0.046864 | 0.025955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000626 | 0.263716 | 2,169 | 60 | 75 | 36.15 | 0.867877 | 0.298294 | 0 | 0 | 0 | 0 | 0.105511 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0.264706 | 0.058824 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
de53fa0a301224e7bd9cf4eb1824bffdce9e2cc7 | 334 | py | Python | core/migrations/0033_remove_unit_reveal_at_level.py | ankanb240/otis-web | 45eda65b419705c65c02b15872a137969d53d8e9 | [
"MIT"
] | 15 | 2021-08-28T18:18:37.000Z | 2022-03-13T07:48:15.000Z | core/migrations/0033_remove_unit_reveal_at_level.py | ankanb240/otis-web | 45eda65b419705c65c02b15872a137969d53d8e9 | [
"MIT"
] | 65 | 2021-08-20T02:37:27.000Z | 2022-02-07T17:19:23.000Z | core/migrations/0033_remove_unit_reveal_at_level.py | ankanb240/otis-web | 45eda65b419705c65c02b15872a137969d53d8e9 | [
"MIT"
] | 31 | 2020-01-09T02:35:29.000Z | 2022-03-13T07:48:18.000Z | # Generated by Django 3.2.7 on 2021-09-14 03:41
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0032_unit_reveal_at_level'),
]
operations = [
migrations.RemoveField(
model_name='unit',
name='reveal_at_level',
... | 18.555556 | 47 | 0.598802 | 38 | 334 | 5.078947 | 0.763158 | 0.082902 | 0.134715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080169 | 0.290419 | 334 | 17 | 48 | 19.647059 | 0.734177 | 0.134731 | 0 | 0 | 1 | 0 | 0.167247 | 0.087108 | 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 |
de5dc0913d5efb16ca2abae539d886f7dab88914 | 466 | py | Python | lib/config.py | vrillusions/jeelink-receiver | 58470a36571bf7f869eac41dc0d479a4ea8fbf37 | [
"Unlicense"
] | null | null | null | lib/config.py | vrillusions/jeelink-receiver | 58470a36571bf7f869eac41dc0d479a4ea8fbf37 | [
"Unlicense"
] | 1 | 2022-02-20T03:37:18.000Z | 2022-02-20T03:37:18.000Z | lib/config.py | vrillusions/jeelink-receiver | 58470a36571bf7f869eac41dc0d479a4ea8fbf37 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Python Template.
As this is a separate module it gives a basic singleton or global config object.
"""
from configparser import ConfigParser
class Config (ConfigParser):
default_config = None
user_config = None
def __init__(self, interpolation=None):
... | 25.888889 | 80 | 0.716738 | 59 | 466 | 5.440678 | 0.610169 | 0.080997 | 0.130841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002625 | 0.182403 | 466 | 17 | 81 | 27.411765 | 0.839895 | 0.302575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
de5e7e1d32cca3adf7c1365cb52b1c1813157dde | 5,256 | py | Python | gcp/progan/trainer/task.py | DCtheTall/tf-keras-progressive-gan | a5f5acec44dfb53d16122dfd46f38a64e7afd558 | [
"Apache-2.0"
] | 1 | 2021-08-16T15:16:19.000Z | 2021-08-16T15:16:19.000Z | gcp/progan/trainer/task.py | DCtheTall/tf-keras-progressive-gan | a5f5acec44dfb53d16122dfd46f38a64e7afd558 | [
"Apache-2.0"
] | 1 | 2022-02-04T03:11:43.000Z | 2022-02-04T03:11:43.000Z | gcp/progan/trainer/task.py | DCtheTall/tf-keras-progressive-gan | a5f5acec44dfb53d16122dfd46f38a64e7afd558 | [
"Apache-2.0"
] | null | null | null | import argparse
import json
import os
import tensorflow as tf
from trainer import model
if __name__ == '__main__':
parser = argparse.ArgumentParser()
# Required arguments
parser.add_argument('--data_bucket_name',
help='GCS location of the training images',
required=... | 40.122137 | 89 | 0.495053 | 497 | 5,256 | 5.082495 | 0.313883 | 0.0962 | 0.18171 | 0.041568 | 0.296516 | 0.239509 | 0.228029 | 0.123911 | 0.077593 | 0.045131 | 0 | 0.017962 | 0.417428 | 5,256 | 130 | 90 | 40.430769 | 0.806989 | 0.00704 | 0 | 0.289256 | 0 | 0 | 0.293903 | 0.021472 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041322 | 0 | 0.041322 | 0.008264 | 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 |
de6b0a16ac3e8110ea5ad57e1216df933203e12d | 268 | py | Python | src/addnum.py | francescosalvadore/ttsmyvoice | ca04970125016663a54c3e4d89832b2241f6b6d0 | [
"MIT"
] | null | null | null | src/addnum.py | francescosalvadore/ttsmyvoice | ca04970125016663a54c3e4d89832b2241f6b6d0 | [
"MIT"
] | null | null | null | src/addnum.py | francescosalvadore/ttsmyvoice | ca04970125016663a54c3e4d89832b2241f6b6d0 | [
"MIT"
] | null | null | null | with open("110000.dat","r") as fi:
with open("110000num.dat","w") as fo:
i=1
for l in fi.readlines():
if i%100 == 0:
fo.write(l.strip()+" #"+str(i)+"\n")
else:
fo.write(l)
i = i+1
| 26.8 | 52 | 0.395522 | 39 | 268 | 2.717949 | 0.615385 | 0.150943 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 0.41791 | 268 | 9 | 53 | 29.777778 | 0.564103 | 0 | 0 | 0 | 0 | 0 | 0.108209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de71e5f3995dee4ed7e00531ced1a442a1a907f4 | 568 | py | Python | tools/functions.py | SLotAbr/Decoder_model | 9cd2a05985cbee66bf07f8f9c48a33cbb1ff33ed | [
"BSD-3-Clause"
] | null | null | null | tools/functions.py | SLotAbr/Decoder_model | 9cd2a05985cbee66bf07f8f9c48a33cbb1ff33ed | [
"BSD-3-Clause"
] | null | null | null | tools/functions.py | SLotAbr/Decoder_model | 9cd2a05985cbee66bf07f8f9c48a33cbb1ff33ed | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
def positional_encoding(context_size, embedding_size):
position_value = np.concatenate([[
pos/(1e4**(np.arange(embedding_size)/embedding_size))
for pos in range(context_size)]]
, axis=1)
for i in range(embedding_size):
if i%2==0:
position_value[:,i] = np.sin(position_valu... | 24.695652 | 60 | 0.683099 | 93 | 568 | 3.978495 | 0.462366 | 0.210811 | 0.151351 | 0.086486 | 0.091892 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023013 | 0.158451 | 568 | 23 | 61 | 24.695652 | 0.751046 | 0.028169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0 | 0.3125 | 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 |
de7bd7d5bb27f3b708229fcd17c9d0d9a0e17c3d | 622 | py | Python | authentik/providers/proxy/migrations/0006_proxyprovider_skip_path_regex.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 15 | 2020-01-05T09:09:57.000Z | 2020-11-28T05:27:39.000Z | authentik/providers/proxy/migrations/0006_proxyprovider_skip_path_regex.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 302 | 2020-01-21T08:03:59.000Z | 2020-12-04T05:04:57.000Z | authentik/providers/proxy/migrations/0006_proxyprovider_skip_path_regex.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 3 | 2020-03-04T08:21:59.000Z | 2020-08-01T20:37:18.000Z | # Generated by Django 3.1.1 on 2020-09-19 09:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("authentik_providers_proxy", "0005_auto_20200914_1536"),
]
operations = [
migrations.AddField(
model_name="proxyprovider",
... | 27.043478 | 147 | 0.602894 | 66 | 622 | 5.545455 | 0.818182 | 0.092896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072093 | 0.308682 | 622 | 22 | 148 | 28.272727 | 0.77907 | 0.072347 | 0 | 0.125 | 1 | 0 | 0.337391 | 0.083478 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de7de308fc01c5a41f84aefd3a68cb5824a1e3c1 | 204 | py | Python | subscriber/src/functions.py | vitorsorpile/gas_leakage_safety_system | 0bdc42bdf5454415be00a70bc701dfb50bc41138 | [
"MIT"
] | null | null | null | subscriber/src/functions.py | vitorsorpile/gas_leakage_safety_system | 0bdc42bdf5454415be00a70bc701dfb50bc41138 | [
"MIT"
] | null | null | null | subscriber/src/functions.py | vitorsorpile/gas_leakage_safety_system | 0bdc42bdf5454415be00a70bc701dfb50bc41138 | [
"MIT"
] | null | null | null | from time import sleep
def closeValve(pwmServo):
pwmServo.init()
sleep(2)
# 20 -> 0 graus
# 70 -> 90 graus
# 120 -> 180 graus
pwmServo.duty(70)
sleep(2)
pwmServo.deinit()
| 17 | 25 | 0.588235 | 27 | 204 | 4.444444 | 0.666667 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117241 | 0.289216 | 204 | 11 | 26 | 18.545455 | 0.710345 | 0.220588 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de84624c544fd103a245fa4fcc2dee21cb9fc9c5 | 560 | py | Python | Editorial/Apple and Oranges.py | theeksha101/problem_solving | 431c4ff224035bb98ad67ead963860329dd4c9ff | [
"MIT"
] | 1 | 2021-09-09T10:28:49.000Z | 2021-09-09T10:28:49.000Z | Editorial/Apple and Oranges.py | theeksha101/problem_solving | 431c4ff224035bb98ad67ead963860329dd4c9ff | [
"MIT"
] | null | null | null | Editorial/Apple and Oranges.py | theeksha101/problem_solving | 431c4ff224035bb98ad67ead963860329dd4c9ff | [
"MIT"
] | null | null | null | start_house, end_house = map(int, input().split())
left_tree, right_tree = map(int, input().split())
number_of_apples, number_of_oranges = map(int, input().split())
apple_distances = map(int, input().split())
orange_distances = map(int, input().split())
apple_count = 0
orange_count = 0
for distance in apple_distances:... | 32.941176 | 63 | 0.717857 | 82 | 560 | 4.609756 | 0.304878 | 0.079365 | 0.145503 | 0.21164 | 0.201058 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008439 | 0.153571 | 560 | 16 | 64 | 35 | 0.78903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.133333 | 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 |
de8aecaf4844a856d0c88685e71cd4abe1c4dc55 | 263 | py | Python | compass/admin.py | osule/bookworm | 21332fb0bd6381d4304b3e4c6fed60c169339bf4 | [
"MIT"
] | null | null | null | compass/admin.py | osule/bookworm | 21332fb0bd6381d4304b3e4c6fed60c169339bf4 | [
"MIT"
] | 13 | 2021-10-04T22:07:21.000Z | 2022-03-21T15:11:24.000Z | compass/admin.py | osule/bookworm | 21332fb0bd6381d4304b3e4c6fed60c169339bf4 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Book, Category
class CategoryAdmin(admin.ModelAdmin):
model = Category
class Meta:
verbose_name_plural = 'Categories'
admin.site.register(Book)
admin.site.register(Category, CategoryAdmin)
| 18.785714 | 44 | 0.756654 | 31 | 263 | 6.354839 | 0.612903 | 0.13198 | 0.172589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163498 | 263 | 13 | 45 | 20.230769 | 0.895455 | 0 | 0 | 0 | 0 | 0 | 0.038023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
de91c1ed0004ee10739cdaeac2fd0eecffe76ac7 | 1,312 | py | Python | PARSER/base/base.py | soleksy/Pyper | 28d559d2df7019b09cd865e8396322e2017ba0b8 | [
"MIT"
] | null | null | null | PARSER/base/base.py | soleksy/Pyper | 28d559d2df7019b09cd865e8396322e2017ba0b8 | [
"MIT"
] | 1 | 2020-06-18T12:58:27.000Z | 2020-07-21T09:41:15.000Z | PARSER/base/base.py | soleksy/Pyper | 28d559d2df7019b09cd865e8396322e2017ba0b8 | [
"MIT"
] | 1 | 2021-03-17T23:37:20.000Z | 2021-03-17T23:37:20.000Z | import argparse
BaseParser = argparse.ArgumentParser()
#----------------------------HEP ARGUMENTS---------------------------#
BaseParser.add_argument(
"-arxiv",
required=False,
help="If used, your query will be used to search arxiv databse",
action='store_true')
BaseParser.add_argument(
"-hep... | 23.854545 | 147 | 0.641006 | 174 | 1,312 | 4.775862 | 0.390805 | 0.12515 | 0.202166 | 0.120337 | 0.440433 | 0.406739 | 0.406739 | 0.303249 | 0.120337 | 0.120337 | 0 | 0 | 0.214177 | 1,312 | 54 | 148 | 24.296296 | 0.806014 | 0.051829 | 0 | 0.571429 | 0 | 0.02381 | 0.416264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02381 | 0 | 0.02381 | 0.02381 | 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 |
de9fb0aa8292004d9e7ecdfd6f28ff140570788a | 6,983 | py | Python | workspace/module/maya-python-2.7/LxMaya/method/config/_maConfig.py | no7hings/Lynxi | 43c745198a714c2e5aca86c6d7a014adeeb9abf7 | [
"MIT"
] | 2 | 2018-03-06T03:33:55.000Z | 2019-03-26T03:25:11.000Z | workspace/module/maya-python-2.7/LxMaya/method/config/_maConfig.py | no7hings/lynxi | 43c745198a714c2e5aca86c6d7a014adeeb9abf7 | [
"MIT"
] | null | null | null | workspace/module/maya-python-2.7/LxMaya/method/config/_maConfig.py | no7hings/lynxi | 43c745198a714c2e5aca86c6d7a014adeeb9abf7 | [
"MIT"
] | null | null | null | # coding:utf-8
from LxBasic import bscMtdCore
from LxCore.config import appConfig
#
class MaConfig(object):
DEF_mya_node_pathsep = '|'
DEF_mya_set_separator = '>'
DEF_mya_node_namespace_pathsep = ':'
DEF_mya_node_port_pathsep = '.'
# Nde_Node Type
DEF_mya_type_transform = 'transform'
DEF_... | 27.277344 | 99 | 0.640412 | 572 | 6,983 | 7.506993 | 0.407343 | 0.026549 | 0.006288 | 0.005589 | 0.107825 | 0.107825 | 0.078249 | 0.049371 | 0.049371 | 0.004658 | 0 | 0.009245 | 0.25648 | 6,983 | 255 | 100 | 27.384314 | 0.817797 | 0.010168 | 0 | 0.09596 | 0 | 0 | 0.198372 | 0.022526 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020202 | false | 0.030303 | 0.055556 | 0.020202 | 0.540404 | 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 |
dea4da4ed768ae97e27155281e3fbdc70e740822 | 1,768 | py | Python | dpa/maya/entity/geom.py | Clemson-DPA/dpa-pipe | 2482b8a0fd96dc19c0be4e82c3eaf0508914a968 | [
"MIT"
] | 55 | 2015-07-15T02:33:55.000Z | 2020-12-28T08:02:54.000Z | dpa/maya/entity/geom.py | Clemson-DPA/dpa-pipe | 2482b8a0fd96dc19c0be4e82c3eaf0508914a968 | [
"MIT"
] | 5 | 2015-07-11T03:21:10.000Z | 2016-12-27T12:20:07.000Z | dpa/maya/entity/geom.py | Clemson-DPA/dpa-pipe | 2482b8a0fd96dc19c0be4e82c3eaf0508914a968 | [
"MIT"
] | 12 | 2015-07-08T04:48:39.000Z | 2020-06-27T11:35:58.000Z |
import os.path
import re
from dpa.app.entity import EntityRegistry, EntityError
from dpa.maya.entity.base import SetBasedEntity
# options:
# export types: obj
# -----------------------------------------------------------------------------
class GeomEntity(SetBasedEntity):
category = "geom"
# ------------... | 31.017544 | 98 | 0.54638 | 171 | 1,768 | 5.415205 | 0.438596 | 0.071274 | 0.058315 | 0.071274 | 0.062635 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006388 | 0.203054 | 1,768 | 56 | 99 | 31.571429 | 0.650816 | 0.187217 | 0 | 0 | 0 | 0 | 0.07482 | 0.053957 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | 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 |
dea83ddce9b08ef29763860403e7fbf5dafb7a20 | 728 | py | Python | lantern/tft/migrations/0014_auto_20180806_1625.py | cecpanda/TitanLantern | 55d867c45f12958927cca9dbeb4be892882a24fb | [
"MIT"
] | null | null | null | lantern/tft/migrations/0014_auto_20180806_1625.py | cecpanda/TitanLantern | 55d867c45f12958927cca9dbeb4be892882a24fb | [
"MIT"
] | 10 | 2020-06-05T18:29:46.000Z | 2022-03-11T23:21:56.000Z | lantern/tft/migrations/0014_auto_20180806_1625.py | cecpanda/TitanLantern | 55d867c45f12958927cca9dbeb4be892882a24fb | [
"MIT"
] | null | null | null | # Generated by Django 2.0.7 on 2018-08-06 08:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tft', '0013_auto_20180806_1606'),
]
operations = [
migrations.AlterModelOptions(
name='shortcut',
options={'verbose_... | 26.962963 | 76 | 0.587912 | 69 | 728 | 6.028986 | 0.623188 | 0.132212 | 0.149038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063218 | 0.282967 | 728 | 26 | 77 | 28 | 0.733716 | 0.061813 | 0 | 0.25 | 1 | 0 | 0.221733 | 0.033774 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
deaa5aa4fb68ef3b1898a9513123e945fa709c9a | 9,778 | py | Python | wsc_django/wsc_django/apps/shop/serializers.py | hzh595395786/wsc_django | c0a4de1a4479fe83f36108c1fdd4d68d18348b8d | [
"MIT"
] | 2 | 2021-02-07T05:56:46.000Z | 2021-05-12T02:11:24.000Z | wsc_django/wsc_django/apps/shop/serializers.py | hzh595395786/wsc_django | c0a4de1a4479fe83f36108c1fdd4d68d18348b8d | [
"MIT"
] | null | null | null | wsc_django/wsc_django/apps/shop/serializers.py | hzh595395786/wsc_django | c0a4de1a4479fe83f36108c1fdd4d68d18348b8d | [
"MIT"
] | null | null | null | from rest_framework import serializers
from django.db import transaction
from delivery.services import create_delivery_config, create_pick_period_line
from product.services import create_default_group_by_shop
from shop.constant import ShopStatus
from shop.services import (
create_shop,
create_pay_channel,
... | 43.847534 | 118 | 0.717734 | 1,084 | 9,778 | 6.218635 | 0.189114 | 0.151313 | 0.111259 | 0.04035 | 0.529447 | 0.45646 | 0.275033 | 0.223261 | 0.199229 | 0.199229 | 0 | 0.005475 | 0.178053 | 9,778 | 222 | 119 | 44.045045 | 0.833271 | 0.022704 | 0 | 0.266272 | 0 | 0 | 0.062947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023669 | false | 0 | 0.065089 | 0 | 0.633136 | 0.005917 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
deb7661d1f96af77620d7974c6a8a9b99face688 | 2,699 | py | Python | point.py | heyswappy/k_cluster | 1f585eb527dbfd5fd3cd839269e96b3798275245 | [
"MIT"
] | null | null | null | point.py | heyswappy/k_cluster | 1f585eb527dbfd5fd3cd839269e96b3798275245 | [
"MIT"
] | null | null | null | point.py | heyswappy/k_cluster | 1f585eb527dbfd5fd3cd839269e96b3798275245 | [
"MIT"
] | null | null | null | class point:
"K-D POINT CLASS"
def __init__(self,coordinate, name=None, dim=None):
""" name, dimension and coordinates """
self.name = name
if type(dim) == type(None):
self.dim = len(coordinate)
else:
self.dim = dim
if len(coordinate) == self.dim:
... | 31.022989 | 128 | 0.551315 | 333 | 2,699 | 4.402402 | 0.201201 | 0.071623 | 0.042974 | 0.046385 | 0.35266 | 0.341064 | 0.316508 | 0.316508 | 0.316508 | 0.244202 | 0 | 0.006663 | 0.332716 | 2,699 | 87 | 129 | 31.022989 | 0.807329 | 0.070767 | 0 | 0.352113 | 0 | 0 | 0.055134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183099 | false | 0 | 0 | 0 | 0.507042 | 0.028169 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
deb8ba70db7b805f52f08bdd9acf9cc2cf6091d8 | 2,572 | py | Python | apps/documents/migrations/0002_historical_document.py | Github-shipchain/transmission | 867971cdc366ccfd6ef632f39652633c269e7969 | [
"Apache-2.0"
] | 1 | 2019-12-15T13:44:29.000Z | 2019-12-15T13:44:29.000Z | apps/documents/migrations/0002_historical_document.py | Github-shipchain/transmission | 867971cdc366ccfd6ef632f39652633c269e7969 | [
"Apache-2.0"
] | null | null | null | apps/documents/migrations/0002_historical_document.py | Github-shipchain/transmission | 867971cdc366ccfd6ef632f39652633c269e7969 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.4 on 2019-11-07 16:46
import apps.documents.models
import apps.simple_history
import apps.utils
from django.db import migrations, models
import django.db.models.deletion
import enumfields.fields
import shipchain_common.utils
import simple_history.models
import uuid
class Migration(migration... | 48.528302 | 175 | 0.638802 | 263 | 2,572 | 6.076046 | 0.403042 | 0.065707 | 0.027534 | 0.045056 | 0.241552 | 0.209011 | 0.16771 | 0.083855 | 0.083855 | 0.083855 | 0 | 0.021021 | 0.223173 | 2,572 | 52 | 176 | 49.461538 | 0.778779 | 0.017496 | 0 | 0.043478 | 1 | 0 | 0.164356 | 0.037228 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.195652 | 0 | 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 |
debcd3f1611d2b0008e9e853d421fe0edc5dd01d | 1,660 | py | Python | sgh_GetJSONFromURL.py | davidramirezm30/scratch-orangepi | b4aa70f1cdcc030186532ad61cebf786be415b4b | [
"MIT"
] | null | null | null | sgh_GetJSONFromURL.py | davidramirezm30/scratch-orangepi | b4aa70f1cdcc030186532ad61cebf786be415b4b | [
"MIT"
] | null | null | null | sgh_GetJSONFromURL.py | davidramirezm30/scratch-orangepi | b4aa70f1cdcc030186532ad61cebf786be415b4b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import urllib2
import json
class GetJSONFromURL():
def __init__(self):
self.lastID = 0
def parse_dict(self,init, lkey=''):
ret = {}
for rkey,val in init.items():
key = lkey+rkey
if isinstance(val, dict):
ret.update(... | 34.583333 | 539 | 0.560241 | 207 | 1,660 | 4.434783 | 0.57971 | 0.04902 | 0.056645 | 0.039216 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085691 | 0.254819 | 1,660 | 48 | 540 | 34.583333 | 0.656427 | 0.459036 | 0 | 0.08 | 0 | 0 | 0.001127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
debec254aa3b57629dcf0b6cd1155695c5619a4b | 7,146 | py | Python | qatrack/qa/migrations/0002_029_to_030_first.py | crcrewso/qatrackplus | b9da3bc542d9e3eca8b7291bb631d1c7255d528e | [
"MIT"
] | 20 | 2021-03-11T18:37:32.000Z | 2022-03-23T19:38:07.000Z | qatrack/qa/migrations/0002_029_to_030_first.py | crcrewso/qatrackplus | b9da3bc542d9e3eca8b7291bb631d1c7255d528e | [
"MIT"
] | 75 | 2021-02-12T02:37:33.000Z | 2022-03-29T20:56:16.000Z | qatrack/qa/migrations/0002_029_to_030_first.py | randlet/qatrackplus-ci | ba11d39a07382b11394aaffd0df692b4ddc6239b | [
"MIT"
] | 5 | 2021-04-07T15:46:53.000Z | 2021-09-18T16:55:00.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-07 15:55
from __future__ import unicode_literals
import re
from django.core.validators import RegexValidator
from django.db import migrations, models
from django.conf import settings
import django.utils.timezone
script_regex = re.compile(r'(<script[\sa-... | 44.943396 | 444 | 0.629723 | 797 | 7,146 | 5.495609 | 0.309912 | 0.036986 | 0.074201 | 0.086073 | 0.305251 | 0.262557 | 0.17169 | 0.142466 | 0.124658 | 0.105479 | 0 | 0.013025 | 0.237196 | 7,146 | 158 | 445 | 45.227848 | 0.790497 | 0.009516 | 0 | 0.430657 | 1 | 0.007299 | 0.248481 | 0.012297 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014599 | false | 0.014599 | 0.043796 | 0 | 0.080292 | 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 |
dec5b07b30072f411de0ff9abbaa67955bbfad05 | 1,061 | py | Python | Operators/BitwiseOperators.py | 1302580MK/Udemy_Python | c7aef0645ae15a954c2356ba96288deaa087fb32 | [
"MIT"
] | null | null | null | Operators/BitwiseOperators.py | 1302580MK/Udemy_Python | c7aef0645ae15a954c2356ba96288deaa087fb32 | [
"MIT"
] | null | null | null | Operators/BitwiseOperators.py | 1302580MK/Udemy_Python | c7aef0645ae15a954c2356ba96288deaa087fb32 | [
"MIT"
] | null | null | null | # 26.05.2019
# Working with BitwiseOperators and different kind of String Outputs.
print(f"Working with Bitwise Operators and different kind of String Outputs.")
var1 = 13 # 13 in Binary: 1101
var2 = 5 # 5 in Binary: 0101
# AND Operator with format String
# 1101 13
# 0101 5
# ---- A... | 24.674419 | 78 | 0.551367 | 159 | 1,061 | 3.679245 | 0.257862 | 0.02735 | 0.020513 | 0.05641 | 0.270085 | 0.225641 | 0.023932 | 0 | 0 | 0 | 0 | 0.183042 | 0.299717 | 1,061 | 43 | 79 | 24.674419 | 0.604307 | 0.622055 | 0 | 0 | 0 | 0 | 0.505348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dec5fa32ca699c313b78bb25a95b8b2fccfcb007 | 21,046 | py | Python | RK.py | Knight-X/qadaw | 62acb0d6fbfbf39bc2f575876e1bc28bfad1eb62 | [
"Apache-2.0"
] | null | null | null | RK.py | Knight-X/qadaw | 62acb0d6fbfbf39bc2f575876e1bc28bfad1eb62 | [
"Apache-2.0"
] | null | null | null | RK.py | Knight-X/qadaw | 62acb0d6fbfbf39bc2f575876e1bc28bfad1eb62 | [
"Apache-2.0"
] | 1 | 2019-05-08T07:28:50.000Z | 2019-05-08T07:28:50.000Z | import numpy as np
from data_collection import AirDynamicData
import datetime
from data_rk import NormalData
#Initialization
data_collector = AirDynamicData("climate2014-01.nc")
BC_collecctor = AirDynamicData("wrfbdy_d01")
t_start = datetime.datetime()
t_end = datetime.datetime()
t_now = t_start
RK3_s... | 32.781931 | 269 | 0.675615 | 3,348 | 21,046 | 4.022999 | 0.089307 | 0.067711 | 0.081669 | 0.022051 | 0.382508 | 0.261712 | 0.214715 | 0.160962 | 0.120647 | 0.115079 | 0 | 0.022197 | 0.1673 | 21,046 | 642 | 270 | 32.781931 | 0.746305 | 0 | 0 | 0.187621 | 0 | 0 | 0.03375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.007737 | 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 |
decde01b72954b131367a0c7c42e0905ceefe74d | 351 | py | Python | motor/motor1.py | Pi-Robot/code | 20df19419113b84dc5e883fa8d84e8cad736782c | [
"MIT"
] | 1 | 2021-02-20T07:06:43.000Z | 2021-02-20T07:06:43.000Z | motor/motor1.py | Pi-Robot/code | 20df19419113b84dc5e883fa8d84e8cad736782c | [
"MIT"
] | null | null | null | motor/motor1.py | Pi-Robot/code | 20df19419113b84dc5e883fa8d84e8cad736782c | [
"MIT"
] | 1 | 2021-02-20T07:06:43.000Z | 2021-02-20T07:06:43.000Z | # first motor test
import pin
import time
# load the configuration from config1.json
pin.load("config1.json")
print("foreward")
pin.Out("in1",1)
pin.Out("in2",0)
pin.Out("ena",1)
time.sleep(3)
print("backward")
pin.Out("in1",0)
pin.Out("in2",1)
pin.Out("ena",1)
time.sleep(3)
pin.Out("ena",0)
print("stop")
# reset... | 12.535714 | 42 | 0.666667 | 62 | 351 | 3.774194 | 0.435484 | 0.179487 | 0.115385 | 0.08547 | 0.17094 | 0.17094 | 0.17094 | 0 | 0 | 0 | 0 | 0.04886 | 0.125356 | 351 | 27 | 43 | 13 | 0.713355 | 0.207977 | 0 | 0.25 | 0 | 0 | 0.194139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
deceb3bf89caa63041d546af82285ae59877a6fe | 2,048 | py | Python | src/accounts/views.py | saurabhsuryawanshi/ecommerce | 69ee3adc80770263f6909630a0b566935c09936b | [
"bzip2-1.0.6"
] | null | null | null | src/accounts/views.py | saurabhsuryawanshi/ecommerce | 69ee3adc80770263f6909630a0b566935c09936b | [
"bzip2-1.0.6"
] | null | null | null | src/accounts/views.py | saurabhsuryawanshi/ecommerce | 69ee3adc80770263f6909630a0b566935c09936b | [
"bzip2-1.0.6"
] | null | null | null | from django.shortcuts import render , redirect
from django.contrib.auth import authenticate,login, get_user_model
from django.http import HttpResponse
from django.contrib.auth.views import LogoutView
from django.utils.http import is_safe_url
from .forms import LoginForm,RegisterForm,GuestForm
from .models import GuestE... | 31.030303 | 66 | 0.76123 | 291 | 2,048 | 5.171821 | 0.230241 | 0.047841 | 0.059801 | 0.071761 | 0.438538 | 0.362791 | 0.299003 | 0.21794 | 0.21794 | 0.21794 | 0 | 0 | 0.119629 | 2,048 | 66 | 67 | 31.030303 | 0.83472 | 0.01123 | 0 | 0.354839 | 0 | 0 | 0.083498 | 0.01087 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048387 | false | 0.080645 | 0.112903 | 0 | 0.274194 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
decf0a46905cfac142a8b17b377b0794dc227e46 | 2,516 | py | Python | attendance.py | AniruddhRK/Smart-Atttendance-System-Using-PyQT5 | c261931ec579bd088d39a65655073d0f8d7acd85 | [
"MIT"
] | null | null | null | attendance.py | AniruddhRK/Smart-Atttendance-System-Using-PyQT5 | c261931ec579bd088d39a65655073d0f8d7acd85 | [
"MIT"
] | null | null | null | attendance.py | AniruddhRK/Smart-Atttendance-System-Using-PyQT5 | c261931ec579bd088d39a65655073d0f8d7acd85 | [
"MIT"
] | null | null | null | import os
import csv
from datetime import date,datetime
global path
def CreateFiles(name,dep_name,sem_number,section_name,subject_name,timing):
global path
# path = 'C:\\Users\\Aniruddh RK\\Desktop\\KNN'
path = 'C:\\Users\\Aniruddh RK\\Desktop\\mpV2'
Dep_file_name = dep_name
sem_file_name = str(sem_numb... | 26.484211 | 76 | 0.662162 | 367 | 2,516 | 4.362398 | 0.201635 | 0.083073 | 0.03935 | 0.0406 | 0.585884 | 0.542786 | 0.468457 | 0.453467 | 0.410993 | 0.410993 | 0 | 0.001503 | 0.206677 | 2,516 | 95 | 77 | 26.484211 | 0.800601 | 0.142289 | 0 | 0.507246 | 0 | 0 | 0.049196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014493 | false | 0.057971 | 0.043478 | 0 | 0.057971 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dee42b18de2e25e8b2aac56f0fea6db4939d0fb3 | 8,366 | py | Python | ai/behaviourplanner.py | elephantrobotics-joey/marsai | d7cc2a807727dddb615b2a1640dba5f9656f1da0 | [
"Apache-2.0"
] | 32 | 2020-01-31T11:26:51.000Z | 2022-01-07T07:29:24.000Z | ai/behaviourplanner.py | elephantrobotics-joey/marsai | d7cc2a807727dddb615b2a1640dba5f9656f1da0 | [
"Apache-2.0"
] | 1 | 2021-11-28T02:03:22.000Z | 2021-11-28T02:03:22.000Z | ai/behaviourplanner.py | elephantrobotics-joey/marsai | d7cc2a807727dddb615b2a1640dba5f9656f1da0 | [
"Apache-2.0"
] | 10 | 2020-02-07T02:46:03.000Z | 2022-02-21T23:46:14.000Z | import time
import numpy as np
import copy
import sys
sys.path.append(".")
import ai.parameters
import ai.actionplanner
import ai.energyplanner
# get/set/update/check/
# random.choice(d.keys())
class BehaviourPlanner:
def __init__(self):
self.energy = ai.energyplanner.EnergyPlanner()
self.last_be... | 32.176923 | 99 | 0.542553 | 962 | 8,366 | 4.460499 | 0.180873 | 0.07574 | 0.083197 | 0.044046 | 0.266371 | 0.190632 | 0.126078 | 0.105803 | 0.064787 | 0.044745 | 0 | 0.023629 | 0.367679 | 8,366 | 259 | 100 | 32.301158 | 0.787524 | 0.088214 | 0 | 0.326425 | 0 | 0 | 0.054248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082902 | false | 0.067358 | 0.036269 | 0.010363 | 0.233161 | 0.031088 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
deef05124c31d11060efb9615337396601477e86 | 971 | py | Python | ProjectApplication/project_core/migrations/0032_add_date_created_source-keywords.py | code-review-doctor/project-application | d85b40b69572efbcda24ce9c40803f76d8ffd192 | [
"MIT"
] | 5 | 2020-07-29T10:00:11.000Z | 2022-02-19T11:00:34.000Z | ProjectApplication/project_core/migrations/0032_add_date_created_source-keywords.py | code-review-doctor/project-application | d85b40b69572efbcda24ce9c40803f76d8ffd192 | [
"MIT"
] | 471 | 2019-09-20T14:37:28.000Z | 2022-03-25T14:16:34.000Z | ProjectApplication/project_core/migrations/0032_add_date_created_source-keywords.py | code-review-doctor/project-application | d85b40b69572efbcda24ce9c40803f76d8ffd192 | [
"MIT"
] | 5 | 2020-03-15T12:42:47.000Z | 2022-02-15T18:06:52.000Z | # Generated by Django 2.2.6 on 2019-10-14 17:06
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('project_core', '0031_import_organisations'),
]
operations = [
migrations.AddField(
model_name='keyw... | 31.322581 | 134 | 0.623069 | 107 | 971 | 5.53271 | 0.53271 | 0.045608 | 0.064189 | 0.091216 | 0.300676 | 0.128378 | 0 | 0 | 0 | 0 | 0 | 0.035311 | 0.270855 | 971 | 30 | 135 | 32.366667 | 0.800847 | 0.046344 | 0 | 0.375 | 1 | 0 | 0.220779 | 0.027056 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
def12f2ab15063d187bcd58fbb5932c9460c0ad8 | 383 | py | Python | tests/main.py | titosanxez/promshell | 27d4a84e962bc53feb19547d9f6b6628f4665dd7 | [
"MIT"
] | 1 | 2021-01-22T01:25:44.000Z | 2021-01-22T01:25:44.000Z | tests/main.py | titosanxez/promshell | 27d4a84e962bc53feb19547d9f6b6628f4665dd7 | [
"MIT"
] | null | null | null | tests/main.py | titosanxez/promshell | 27d4a84e962bc53feb19547d9f6b6628f4665dd7 | [
"MIT"
] | 1 | 2021-07-16T02:11:44.000Z | 2021-07-16T02:11:44.000Z | import unittest
from tests.test_completion import TestArgCompleter
from tests.test_arguments import TestArgumentDesc
def suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestArgCompleter))
suite.addTest(unittest.makeSuite(TestArgumentDesc))
return suite
if __name__ == '__main__':... | 29.461538 | 55 | 0.772846 | 40 | 383 | 7.15 | 0.525 | 0.062937 | 0.090909 | 0.202797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13577 | 383 | 13 | 56 | 29.461538 | 0.864048 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.454545 | 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 |
def415df28e80db3dd9e921a72838141c2c86e63 | 2,394 | py | Python | keepsake/util/misc.py | lexndru/unlocker-desktop | 2ca1723212cd01c5e7a5eb1dc1275b4f844a0065 | [
"MIT"
] | null | null | null | keepsake/util/misc.py | lexndru/unlocker-desktop | 2ca1723212cd01c5e7a5eb1dc1275b4f844a0065 | [
"MIT"
] | null | null | null | keepsake/util/misc.py | lexndru/unlocker-desktop | 2ca1723212cd01c5e7a5eb1dc1275b4f844a0065 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Copyright 2018 Alexandru Catrina
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modif... | 33.25 | 79 | 0.723893 | 343 | 2,394 | 5.017493 | 0.492711 | 0.051133 | 0.03835 | 0.041836 | 0.089483 | 0.089483 | 0.089483 | 0.089483 | 0.089483 | 0.089483 | 0 | 0.008214 | 0.186299 | 2,394 | 71 | 80 | 33.71831 | 0.875257 | 0.448622 | 0 | 0.162162 | 0 | 0 | 0.187067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.135135 | 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 |
defc8bc7573368c098dfd13176e34a05c19e9248 | 4,821 | py | Python | inputs/pychem.py | nbraunsc/MIM | 587ae79b0ec76c20af6235a68c85ed15f2cc7155 | [
"BSD-3-Clause"
] | null | null | null | inputs/pychem.py | nbraunsc/MIM | 587ae79b0ec76c20af6235a68c85ed15f2cc7155 | [
"BSD-3-Clause"
] | null | null | null | inputs/pychem.py | nbraunsc/MIM | 587ae79b0ec76c20af6235a68c85ed15f2cc7155 | [
"BSD-3-Clause"
] | null | null | null | from pyqchem import Structure
from pyqchem import QchemInput
from pyqchem import get_output_from_qchem
from pyqchem.parsers.basic import basic_parser_qchem
import numpy as np
#Defining molecule
molecule = Structure(coordinates=[[0.0, 0.0, 0.0],
[0.0, 0.0, 0.9],
... | 34.435714 | 111 | 0.561917 | 569 | 4,821 | 4.608084 | 0.231986 | 0.010679 | 0.01373 | 0.015256 | 0.5164 | 0.486651 | 0.455378 | 0.374142 | 0.355835 | 0.332189 | 0 | 0.025348 | 0.328977 | 4,821 | 139 | 112 | 34.683453 | 0.785162 | 0.09915 | 0 | 0.333333 | 0 | 0 | 0.080268 | 0.016192 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04902 | null | null | 0.078431 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
72085698a68553b9f7cb5e839295b70190ad74fd | 606 | py | Python | hackerearth/Algorithms/Pizza Confusion/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerearth/Algorithms/Pizza Confusion/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerearth/Algorithms/Pizza Confusion/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | """
# Sample code to perform I/O:
name = input() # Reading input from STDIN
print('Hi, %s.' % name) # Writing output to STDOUT
# Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
"""
# Write your code here
import sys
n = int(sys.stdin.readline())
m... | 25.25 | 94 | 0.636964 | 84 | 606 | 4.535714 | 0.595238 | 0.08399 | 0.08399 | 0.08399 | 0.136483 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002188 | 0.245875 | 606 | 23 | 95 | 26.347826 | 0.83151 | 0.438944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
720c7d0bd7036285d71556fa497b7e3b26afe9a8 | 251 | py | Python | src/data_collector/telegramBot.py | ocsix6/mobility-analysis-corporate-wifi | 235124f919e6555a9d01b9124832f406165c6a26 | [
"MIT"
] | null | null | null | src/data_collector/telegramBot.py | ocsix6/mobility-analysis-corporate-wifi | 235124f919e6555a9d01b9124832f406165c6a26 | [
"MIT"
] | null | null | null | src/data_collector/telegramBot.py | ocsix6/mobility-analysis-corporate-wifi | 235124f919e6555a9d01b9124832f406165c6a26 | [
"MIT"
] | null | null | null | # library: python-telegram-bot
import telegram
my_token = '' # bot token
chat_id = '' # telegram group or chat id
def sendTelegramMsg(msg, chat_id=chat_id, token=my_token):
bot = telegram.Bot(token=token)
bot.sendMessage(chat_id=chat_id, text=msg)
| 31.375 | 58 | 0.752988 | 40 | 251 | 4.55 | 0.4 | 0.197802 | 0.10989 | 0.131868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12749 | 251 | 7 | 59 | 35.857143 | 0.83105 | 0.25498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 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 |
720dfc54f9a6de090db295f468c1a0d46b2b9974 | 13,584 | py | Python | accelbyte_py_sdk/ext/leaderboard.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | null | null | null | accelbyte_py_sdk/ext/leaderboard.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | 1 | 2021-10-13T03:46:58.000Z | 2021-10-13T03:46:58.000Z | accelbyte_py_sdk/ext/leaderboard.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | null | null | null | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template file: justice_py_sdk_codegen/__main__.py
# justice-leaderboard-service (2.15.5)
# pylint: dis... | 41.163636 | 113 | 0.799912 | 1,373 | 13,584 | 7.605244 | 0.124545 | 0.063206 | 0.055162 | 0.073549 | 0.576135 | 0.457862 | 0.433921 | 0.416204 | 0.38642 | 0.328098 | 0 | 0.009205 | 0.120289 | 13,584 | 329 | 114 | 41.288754 | 0.864603 | 0.055948 | 0 | 0.495833 | 1 | 0 | 0.009607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.1375 | 0 | 0.404167 | 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 |
72167681b8c6654887403fbdd377bb0053eb068b | 7,377 | py | Python | approach_circle_with_bezier/circle_approacher.py | iagerogiannis/approach-circle-with-bezier | bd876120dc86fc7245550b7caa3ff7054ec35b12 | [
"BSD-3-Clause"
] | null | null | null | approach_circle_with_bezier/circle_approacher.py | iagerogiannis/approach-circle-with-bezier | bd876120dc86fc7245550b7caa3ff7054ec35b12 | [
"BSD-3-Clause"
] | null | null | null | approach_circle_with_bezier/circle_approacher.py | iagerogiannis/approach-circle-with-bezier | bd876120dc86fc7245550b7caa3ff7054ec35b12 | [
"BSD-3-Clause"
] | null | null | null | import math
import numpy as np
from numerical_analysis.splines.bezier import Bezier
from numerical_analysis.dependencies import Polynomial
from numerical_analysis.root_finding import newton_raphson_2x2
from numerical_analysis.dependencies.geometry import StraightLine, Circle
from output_lib.csv_lib import ScvExporter... | 37.830769 | 118 | 0.573268 | 1,044 | 7,377 | 3.887931 | 0.181992 | 0.078837 | 0.014782 | 0.023405 | 0.283814 | 0.201281 | 0.185267 | 0.145356 | 0.12269 | 0.088692 | 0 | 0.053075 | 0.292531 | 7,377 | 194 | 119 | 38.025773 | 0.72466 | 0.036736 | 0 | 0.084507 | 0 | 0 | 0.01958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183099 | false | 0 | 0.06338 | 0.112676 | 0.302817 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7217c22bb89072074f19dd1fa82ff9ed8cdba8f1 | 963 | py | Python | annotationweb/migrations/0002_auto_20191118_1104.py | andreped/annotationweb | 80b0e96a4dbefdc39a83e6cf9ffb0b623cf417ee | [
"MIT"
] | 1 | 2021-12-09T16:22:57.000Z | 2021-12-09T16:22:57.000Z | annotationweb/migrations/0002_auto_20191118_1104.py | andreped/annotationweb | 80b0e96a4dbefdc39a83e6cf9ffb0b623cf417ee | [
"MIT"
] | null | null | null | annotationweb/migrations/0002_auto_20191118_1104.py | andreped/annotationweb | 80b0e96a4dbefdc39a83e6cf9ffb0b623cf417ee | [
"MIT"
] | 1 | 2022-02-23T22:50:37.000Z | 2022-02-23T22:50:37.000Z | # Generated by Django 2.2.1 on 2019-11-18 10:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('annotationweb', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='task',
name='post_processing_meth... | 28.323529 | 114 | 0.588785 | 91 | 963 | 6.098901 | 0.538462 | 0.064865 | 0.135135 | 0.156757 | 0.390991 | 0.390991 | 0.390991 | 0.313514 | 0.313514 | 0.313514 | 0 | 0.040119 | 0.301142 | 963 | 33 | 115 | 29.181818 | 0.784547 | 0.046729 | 0 | 0.444444 | 1 | 0 | 0.145197 | 0.024017 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 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 |
7219985c05e19f58db32f3169bad9772b1dcd214 | 2,007 | py | Python | incremental.py | abhiyadav1323/Bingo | a058adc4e1382f384fc69490bc07d7adbaab2741 | [
"MIT"
] | null | null | null | incremental.py | abhiyadav1323/Bingo | a058adc4e1382f384fc69490bc07d7adbaab2741 | [
"MIT"
] | null | null | null | incremental.py | abhiyadav1323/Bingo | a058adc4e1382f384fc69490bc07d7adbaab2741 | [
"MIT"
] | null | null | null | import os.path
from whoosh import index
from whoosh.fields import Schema, ID, TEXT
def get_schema()
return Schema(path=ID(unique=True, stored=True), time=STORED, content=TEXT)
def add_doc(writer, path):
fileobj = open(path, "rb")
content = fileobj.read()
fileobj.close()
modtime = os.path.getmtime(path)
wr... | 31.857143 | 92 | 0.658196 | 292 | 2,007 | 4.414384 | 0.349315 | 0.059736 | 0.018619 | 0.024825 | 0.076028 | 0.051202 | 0.051202 | 0 | 0 | 0 | 0 | 0 | 0.262581 | 2,007 | 63 | 93 | 31.857143 | 0.870946 | 0.249128 | 0 | 0.105263 | 0 | 0 | 0.012048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078947 | 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 |
72201a87734eab57afe0dae7cac001115e6e1ba5 | 1,548 | py | Python | mastermind_api/guesses/migrations/0001_initial.py | manuelmamut/mastermind | 898b510de19e2affaac5480fbc38e5ba7c6d38ed | [
"MIT"
] | null | null | null | mastermind_api/guesses/migrations/0001_initial.py | manuelmamut/mastermind | 898b510de19e2affaac5480fbc38e5ba7c6d38ed | [
"MIT"
] | 1 | 2020-06-05T18:29:07.000Z | 2020-06-05T18:29:07.000Z | mastermind_api/guesses/migrations/0001_initial.py | manuelmamut/mastermind | 898b510de19e2affaac5480fbc38e5ba7c6d38ed | [
"MIT"
] | null | null | null | # Generated by Django 2.0.7 on 2018-07-06 20:49
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('game', '0002_auto_20180706_1644'),
]
operations = [
migrations.CreateModel(
... | 44.228571 | 142 | 0.541344 | 171 | 1,548 | 4.777778 | 0.438596 | 0.073439 | 0.097919 | 0.117503 | 0.392901 | 0.319461 | 0.319461 | 0.319461 | 0.319461 | 0.319461 | 0 | 0.036145 | 0.249354 | 1,548 | 34 | 143 | 45.529412 | 0.666954 | 0.02907 | 0 | 0 | 1 | 0 | 0.145237 | 0.015323 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7224824a56a578db4bfdbdc06e714243e5d9dc38 | 374 | py | Python | gh/update_dir.py | pranavsastry/ | daf9e6c03ff45436b2b87ca66eecde0362ac36f2 | [
"MIT"
] | 1 | 2021-03-02T13:19:09.000Z | 2021-03-02T13:19:09.000Z | gh/update_dir.py | pranavsastry/gitit | daf9e6c03ff45436b2b87ca66eecde0362ac36f2 | [
"MIT"
] | null | null | null | gh/update_dir.py | pranavsastry/gitit | daf9e6c03ff45436b2b87ca66eecde0362ac36f2 | [
"MIT"
] | null | null | null | import sys
sys.path.append("/Users/pranavsastry")
from gitit import GitIt
gitit = GitIt()
if(len(sys.argv)==5):
gitit.update_dir(sys.argv[1],sys.argv[2],sys.argv[3],sys.argv[4])
elif(len(sys.argv)==4):
gitit.update_dir(sys.argv[1],sys.argv[2],sys.argv[3])
else:
print("Function takes 4 parameters. Repo name... | 31.166667 | 102 | 0.716578 | 66 | 374 | 3.969697 | 0.5 | 0.240458 | 0.076336 | 0.129771 | 0.290076 | 0.290076 | 0.290076 | 0.290076 | 0.290076 | 0.290076 | 0 | 0.029674 | 0.09893 | 374 | 11 | 103 | 34 | 0.747774 | 0 | 0 | 0 | 0 | 0 | 0.28877 | 0.061497 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.1 | 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 |
7239aa419350ea3c9b1b5c198b1ba05ae97e7de9 | 6,428 | py | Python | train.py | xinray/rnnModel | 307abef9dda35182ccb5126b84290a9aac7dc770 | [
"Apache-2.0"
] | null | null | null | train.py | xinray/rnnModel | 307abef9dda35182ccb5126b84290a9aac7dc770 | [
"Apache-2.0"
] | null | null | null | train.py | xinray/rnnModel | 307abef9dda35182ccb5126b84290a9aac7dc770 | [
"Apache-2.0"
] | null | null | null | import sys
import pickle
from six.moves import cPickle
import numpy as np
import tensorflow as tf
import argparse
import time
import os
from rnn_model3 import RNN_Model
import data_helpers
import word2vec
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--train_path', type=str, default='da... | 33.65445 | 139 | 0.593653 | 786 | 6,428 | 4.661578 | 0.259542 | 0.04667 | 0.088155 | 0.019651 | 0.137009 | 0.074236 | 0.046943 | 0.028384 | 0.028384 | 0 | 0 | 0.014088 | 0.282203 | 6,428 | 190 | 140 | 33.831579 | 0.780017 | 0.053205 | 0 | 0.058824 | 0 | 0.008403 | 0.154632 | 0.015002 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.092437 | null | null | 0.042017 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
723d9af8b3e8a358a5ab92b1aaa1a13bbef01fc7 | 8,545 | py | Python | config/example/GenerateScatteringTable/makeScatteringJobs.py | chipsneutrino/chips-reco | 0d9e7e8a1dd749a2b0b0d64eabf0b32d895f19ba | [
"MIT"
] | null | null | null | config/example/GenerateScatteringTable/makeScatteringJobs.py | chipsneutrino/chips-reco | 0d9e7e8a1dd749a2b0b0d64eabf0b32d895f19ba | [
"MIT"
] | null | null | null | config/example/GenerateScatteringTable/makeScatteringJobs.py | chipsneutrino/chips-reco | 0d9e7e8a1dd749a2b0b0d64eabf0b32d895f19ba | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# Python script to generate isotropic 3MeV electrons
import math
import random
# ============================================================================
# Generate random position within a circle of radius r
def GeneratePositionCircle(r):
position = [0,0]
u = random.random()*2*math.p... | 35.309917 | 150 | 0.665301 | 1,221 | 8,545 | 4.632269 | 0.235053 | 0.125707 | 0.11669 | 0.035007 | 0.411245 | 0.326556 | 0.313649 | 0.266973 | 0.240453 | 0.240453 | 0 | 0.025732 | 0.144997 | 8,545 | 241 | 151 | 35.456432 | 0.748426 | 0.323347 | 0 | 0.343066 | 1 | 0 | 0.440743 | 0.205996 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014599 | false | 0 | 0.014599 | 0 | 0.043796 | 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 |
7241c41d46165bdef0d77fcda615418847b78c37 | 1,897 | py | Python | 001719StepPyStudyJr/StepPyStudyJr_lesson08_01_game-SPC_00_20210307.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 001719StepPyStudyJr/StepPyStudyJr_lesson08_01_game-SPC_00_20210307.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 001719StepPyStudyJr/StepPyStudyJr_lesson08_01_game-SPC_00_20210307.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | import random
print("-----------------------------------")
print("-------Rock, paper, scissors-------")
print("Welcome to the game!")
print("The game consists of three rounds.")
print("The winner is the one who scores more points.")
print("\t[r] - rock\n\t[s] - scissors\n\t[p] - paper")
player_score = 0
player_select ... | 35.792453 | 86 | 0.539273 | 233 | 1,897 | 4.227468 | 0.283262 | 0.146193 | 0.097462 | 0.067005 | 0.461929 | 0.411168 | 0.411168 | 0.309645 | 0.309645 | 0.269036 | 0 | 0.008125 | 0.221402 | 1,897 | 53 | 87 | 35.792453 | 0.657414 | 0 | 0 | 0.313725 | 0 | 0.019608 | 0.316122 | 0.057429 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019608 | 0 | 0.019608 | 0.45098 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
72490d710acf83849e265716ace91bf10dd60857 | 1,829 | py | Python | examples/scenegen/net_def.py | microsoft/SGSDI | e4816591a0bff4aa511e4f2d13e610761042ce38 | [
"MIT"
] | 12 | 2022-01-27T17:50:33.000Z | 2022-02-17T09:09:11.000Z | examples/scenegen/net_def.py | microsoft/SGSDI | e4816591a0bff4aa511e4f2d13e610761042ce38 | [
"MIT"
] | null | null | null | examples/scenegen/net_def.py | microsoft/SGSDI | e4816591a0bff4aa511e4f2d13e610761042ce38 | [
"MIT"
] | 3 | 2022-01-26T16:19:00.000Z | 2022-01-28T13:23:19.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
import os
from GraphicsDL.graphicsutils import g_str
from .cfg_def import CustomRunnerConfigurator
from .custom_discriminator import *
from .custom_conditional import *
from .custom_generator import *
from .custom_sampler import *
from .c... | 42.534884 | 118 | 0.629852 | 286 | 1,829 | 3.72028 | 0.258741 | 0.111842 | 0.12406 | 0.169173 | 0.420113 | 0.390977 | 0.328947 | 0.280075 | 0.280075 | 0.231203 | 0 | 0.008059 | 0.253691 | 1,829 | 42 | 119 | 43.547619 | 0.771429 | 0.037179 | 0 | 0.058824 | 0 | 0 | 0.036131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.264706 | 0 | 0.411765 | 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 |
724b64647ba56918d97a054a0fcc2c6b7e784302 | 1,218 | py | Python | python_examples/search_over_geojson.py | karla-descartes/tutorials | 5e703f0a0c2bacf3ad018a4fcfd040d8937f62e8 | [
"MIT"
] | null | null | null | python_examples/search_over_geojson.py | karla-descartes/tutorials | 5e703f0a0c2bacf3ad018a4fcfd040d8937f62e8 | [
"MIT"
] | null | null | null | python_examples/search_over_geojson.py | karla-descartes/tutorials | 5e703f0a0c2bacf3ad018a4fcfd040d8937f62e8 | [
"MIT"
] | 1 | 2019-01-18T15:37:02.000Z | 2019-01-18T15:37:02.000Z | import descarteslabs as dl
# The bounding box geometry of Haiti
haiti = {
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-74.520263671875,
17.98918266463051
],
[
... | 24.36 | 66 | 0.457307 | 99 | 1,218 | 5.59596 | 0.626263 | 0.075812 | 0.057762 | 0.108303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247826 | 0.433498 | 1,218 | 50 | 67 | 24.36 | 0.555072 | 0.08046 | 0 | 0.341463 | 0 | 0 | 0.13966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02439 | 0 | 0.02439 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a0c72f3026ef3a52139a86858b07746df5707234 | 4,619 | py | Python | wand/contrib/java.py | phvalguima/kafka_charm_lib | 0062a277c12f5650f2a18b17eae8529500fafafe | [
"Apache-2.0"
] | null | null | null | wand/contrib/java.py | phvalguima/kafka_charm_lib | 0062a277c12f5650f2a18b17eae8529500fafafe | [
"Apache-2.0"
] | null | null | null | wand/contrib/java.py | phvalguima/kafka_charm_lib | 0062a277c12f5650f2a18b17eae8529500fafafe | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed u... | 36.370079 | 78 | 0.605975 | 578 | 4,619 | 4.733564 | 0.368512 | 0.013158 | 0.008772 | 0.008772 | 0.084064 | 0.048246 | 0 | 0 | 0 | 0 | 0 | 0.011566 | 0.307426 | 4,619 | 126 | 79 | 36.65873 | 0.843701 | 0.412643 | 0 | 0 | 0 | 0 | 0.099762 | 0.020982 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0.067797 | 0.118644 | 0 | 0.237288 | 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 |
a0c9385f6714c676e21593fafbe6879ba5fa2796 | 845 | py | Python | services/service-api/lib/mail.py | elaisasearch/elaisa.org | 2eeb9a3c549aee4a3dc230efda8db148a6dda93a | [
"MIT"
] | 2 | 2019-04-03T13:42:44.000Z | 2019-06-12T20:11:54.000Z | services/service-api/lib/mail.py | elaisasearch/elaisa.org | 2eeb9a3c549aee4a3dc230efda8db148a6dda93a | [
"MIT"
] | 4 | 2021-03-09T03:04:24.000Z | 2022-02-26T10:33:53.000Z | services/service-api/lib/mail.py | elaisasearch/elaisa.org | 2eeb9a3c549aee4a3dc230efda8db148a6dda93a | [
"MIT"
] | 1 | 2019-04-03T13:42:55.000Z | 2019-04-03T13:42:55.000Z | import smtplib
import ssl
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from .globals import GLOBALS
def sendEmail(email: str, subject: str, content: str):
"""
Send an Email to the given address.
"""
sender_email = GLOBALS['mail']['sender']
password = GLOBALS... | 28.166667 | 83 | 0.681657 | 100 | 845 | 5.68 | 0.44 | 0.077465 | 0.045775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004451 | 0.202367 | 845 | 29 | 84 | 29.137931 | 0.838279 | 0.104142 | 0 | 0 | 0 | 0 | 0.078273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.105263 | 0.263158 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a0cae7445118ed9d72a1b2c59e1af53fdfe5fc3a | 1,165 | py | Python | fluid_balance.py | CbGeSky/Datathon2019 | e93409983467c926ef677a173d7409d517a2f249 | [
"MIT"
] | null | null | null | fluid_balance.py | CbGeSky/Datathon2019 | e93409983467c926ef677a173d7409d517a2f249 | [
"MIT"
] | null | null | null | fluid_balance.py | CbGeSky/Datathon2019 | e93409983467c926ef677a173d7409d517a2f249 | [
"MIT"
] | null | null | null | # 导入库
import psycopg2
import pandas as pd
import matplotlib.pyplot as plt
import time
# 链接mimic
def get_data_MIMIC(sql):
conn = psycopg2.connect(database='mimic',
user='postgres',
password='iamlog',
host='127.0.0.1',
... | 24.787234 | 90 | 0.593991 | 139 | 1,165 | 4.827338 | 0.618705 | 0.017884 | 0.023845 | 0.032787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019722 | 0.260086 | 1,165 | 47 | 91 | 24.787234 | 0.758701 | 0.076395 | 0 | 0.135135 | 0 | 0 | 0.117867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.027027 | 0.108108 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a0d8cadb6e6bbe0ea33cefdee5dedd7ee03ade50 | 602 | py | Python | setup.py | sthzg/django-jssettings | 4f02b1b8479d80a24be3bef5e300ec88da69a170 | [
"MIT"
] | null | null | null | setup.py | sthzg/django-jssettings | 4f02b1b8479d80a24be3bef5e300ec88da69a170 | [
"MIT"
] | null | null | null | setup.py | sthzg/django-jssettings | 4f02b1b8479d80a24be3bef5e300ec88da69a170 | [
"MIT"
] | null | null | null | import os
from distutils.core import setup
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-jssettings',
version='0.0.1',
url='',
packages=['jssettings'],
license='MIT',
author='Stephan Herzog',
author_email='sthzg@gmx.net',
description... | 26.173913 | 78 | 0.637874 | 66 | 602 | 5.742424 | 0.742424 | 0.047493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006342 | 0.214286 | 602 | 22 | 79 | 27.363636 | 0.794926 | 0 | 0 | 0 | 0 | 0 | 0.418605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 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 |
a0e59d930358dc7d1206a77f9370bf88cc90c505 | 2,495 | py | Python | dottygen/generator/channel_generator.py | adbarwell/DottyGenerator | 380281f3d7333db4f5fde52f25a4c32e471536b3 | [
"MIT"
] | null | null | null | dottygen/generator/channel_generator.py | adbarwell/DottyGenerator | 380281f3d7333db4f5fde52f25a4c32e471536b3 | [
"MIT"
] | null | null | null | dottygen/generator/channel_generator.py | adbarwell/DottyGenerator | 380281f3d7333db4f5fde52f25a4c32e471536b3 | [
"MIT"
] | null | null | null | from dottygen.generator.utils import get_labels_name, first_char_lower
class CaseClassGenerator():
def __init__(self, labels):
self._labels = labels
def generate(self):
case_class = ""
for label in self._labels:
case_class += f"case class {label.get_name()}({label.get... | 37.80303 | 100 | 0.604008 | 290 | 2,495 | 4.865517 | 0.206897 | 0.085755 | 0.042523 | 0.031184 | 0.131821 | 0.042523 | 0 | 0 | 0 | 0 | 0 | 0.001697 | 0.291383 | 2,495 | 65 | 101 | 38.384615 | 0.79638 | 0 | 0 | 0.075472 | 1 | 0.018868 | 0.156776 | 0.123095 | 0 | 0 | 0 | 0 | 0.018868 | 1 | 0.113208 | false | 0 | 0.018868 | 0 | 0.283019 | 0.018868 | 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 |
a0e8719556fb268f3fca898146bc54463f4dab0f | 1,453 | py | Python | github_archive/__main__.py | hellkite500/github_scrape | e9d3b10b434349e08a92ef97e8414c8b9f0c7584 | [
"CC0-1.0"
] | null | null | null | github_archive/__main__.py | hellkite500/github_scrape | e9d3b10b434349e08a92ef97e8414c8b9f0c7584 | [
"CC0-1.0"
] | null | null | null | github_archive/__main__.py | hellkite500/github_scrape | e9d3b10b434349e08a92ef97e8414c8b9f0c7584 | [
"CC0-1.0"
] | null | null | null | import argparse
import yaml
from pathlib import Path
from . import name as package_name
from . import archive_org_repos
def _handle_args():
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('--config-yaml',
help='Set the YAML fi... | 31.586957 | 125 | 0.586373 | 158 | 1,453 | 5.196203 | 0.424051 | 0.040195 | 0.036541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.310392 | 1,453 | 45 | 126 | 32.288889 | 0.819361 | 0.032347 | 0 | 0.117647 | 0 | 0 | 0.160969 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0.088235 | false | 0 | 0.147059 | 0 | 0.294118 | 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 |
9d046f49e6002a8b220cd59808db818f9e11d75b | 1,192 | py | Python | docspec/src/test/docspec/fixtures.py | NiklasRosenstein/docspec | 32a5394176b04909acc12121b6d332c6f64b9481 | [
"MIT"
] | 11 | 2020-06-22T15:04:59.000Z | 2022-03-06T17:38:05.000Z | docspec/src/test/docspec/fixtures.py | NiklasRosenstein/docspec | 32a5394176b04909acc12121b6d332c6f64b9481 | [
"MIT"
] | 40 | 2020-06-11T23:28:46.000Z | 2022-03-25T03:06:40.000Z | docspec/src/test/docspec/fixtures.py | NiklasRosenstein/docspec | 32a5394176b04909acc12121b6d332c6f64b9481 | [
"MIT"
] | 6 | 2020-11-13T06:34:51.000Z | 2022-03-29T10:53:03.000Z |
import docspec
import pytest
@pytest.fixture
def module() -> docspec.Module:
module = docspec.Module('a', None, None, [
docspec.Class('foo', None, docspec.Docstring('This is class foo.', None), None, None, None, [
docspec.Data('val', None, None, 'int', '42'),
docspec.Function('__init__', None, None... | 36.121212 | 149 | 0.646812 | 150 | 1,192 | 5.066667 | 0.266667 | 0.189474 | 0.157895 | 0.165789 | 0.597368 | 0.597368 | 0.384211 | 0.281579 | 0.281579 | 0.281579 | 0 | 0.01006 | 0.166107 | 1,192 | 32 | 150 | 37.25 | 0.754527 | 0 | 0 | 0.518519 | 0 | 0 | 0.131822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.074074 | 0 | 0.222222 | 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 |
9d06691e9ffc333e8fee63416a82b4c3dc2131b6 | 2,010 | py | Python | experiments/generate_notes_from_unigram.py | orenmel/synth-clinical-notes | 78e294b46e7ae9427b790751631a40434cb18eae | [
"Apache-2.0",
"BSD-3-Clause"
] | 12 | 2019-05-21T03:37:48.000Z | 2021-07-14T16:22:58.000Z | experiments/generate_notes_from_unigram.py | orenmel/synth-clinical-notes | 78e294b46e7ae9427b790751631a40434cb18eae | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | experiments/generate_notes_from_unigram.py | orenmel/synth-clinical-notes | 78e294b46e7ae9427b790751631a40434cb18eae | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2020-07-09T18:45:56.000Z | 2020-07-09T18:45:56.000Z | '''
Generates synthetic notes based on a smoothed unigram distribution
'''
import sys
import numpy as np
def read_unigram(path, alpha):
ind2word = []
ind2count = []
with open(path) as f:
for line in f:
word, count = line.strip().split()
count = float(count) + alpha # lidsto... | 30 | 109 | 0.555224 | 240 | 2,010 | 4.454167 | 0.358333 | 0.15435 | 0.112254 | 0.067353 | 0.106642 | 0.087933 | 0.087933 | 0.087933 | 0.087933 | 0.087933 | 0 | 0.021339 | 0.323881 | 2,010 | 66 | 110 | 30.454545 | 0.765269 | 0.042786 | 0 | 0.12766 | 1 | 0.021277 | 0.095561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0.021277 | 0.042553 | 0 | 0.085106 | 0.06383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.