hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c2065e5fc7e61fdabd4ab6fd12c1ead2ad9d477a | 78,713 | py | Python | htdeblur/acquisition/motion.py | zfphil/htdeblur | ac557284f9913292721a6b9f943ff9b921043978 | [
"BSD-3-Clause"
] | 2 | 2020-01-16T18:30:55.000Z | 2020-02-06T08:33:51.000Z | htdeblur/acquisition/motion.py | zfphil/htdeblur | ac557284f9913292721a6b9f943ff9b921043978 | [
"BSD-3-Clause"
] | null | null | null | htdeblur/acquisition/motion.py | zfphil/htdeblur | ac557284f9913292721a6b9f943ff9b921043978 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2017 Regents of the University of California
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follow... | 54.284828 | 757 | 0.612656 |
c2094cbd00b0292a602f2ea788a9486c162b5e7e | 2,053 | py | Python | leetcode/weekly150/last_substring.py | jan25/code_sorted | f405fd0898f72eb3d5428f9e10aefb4a009d5089 | [
"Unlicense"
] | 2 | 2018-01-18T11:01:36.000Z | 2021-12-20T18:14:48.000Z | leetcode/weekly150/last_substring.py | jan25/code_sorted | f405fd0898f72eb3d5428f9e10aefb4a009d5089 | [
"Unlicense"
] | null | null | null | leetcode/weekly150/last_substring.py | jan25/code_sorted | f405fd0898f72eb3d5428f9e10aefb4a009d5089 | [
"Unlicense"
] | null | null | null | '''
https://leetcode.com/contest/weekly-contest-150/problems/last-substring-in-lexicographical-order/
SA algorithm mostly copied from https://cp-algorithms.com/string/suffix-array.html
Status: tle. probably py3 lists
'''
| 31.584615 | 97 | 0.431076 |
c20c7d9e299f07af3208c0a8aedd483571769bbb | 18,555 | py | Python | schemagen/schemagen.py | GoZaddy/SchemaGen | c8374382f6b52ad3cec398c77fd5bc90fe891818 | [
"MIT"
] | 3 | 2021-03-26T22:51:41.000Z | 2021-03-27T15:17:24.000Z | schemagen/schemagen.py | GoZaddy/SchemaGen | c8374382f6b52ad3cec398c77fd5bc90fe891818 | [
"MIT"
] | null | null | null | schemagen/schemagen.py | GoZaddy/SchemaGen | c8374382f6b52ad3cec398c77fd5bc90fe891818 | [
"MIT"
] | null | null | null | from antlr4 import *
from .antlr import GraphQLLexer, GraphQLListener, GraphQLParser
from .codegen import CodegenTool, Class, String, ClassInstance, IfElse, If, Method, Expr, Variable
import re
from math import floor
from datetime import datetime
from .utils import strip_string_quotes, camel_case_to_snake_case, process... | 46.156716 | 136 | 0.492643 |
c20cac9dd66122173bfd30ba53957fea5bb5307b | 2,231 | py | Python | app/api/views.py | rickywang432/flask | c956dee6c7dfbb57a5fcd247d23af37e20b96da7 | [
"MIT"
] | null | null | null | app/api/views.py | rickywang432/flask | c956dee6c7dfbb57a5fcd247d23af37e20b96da7 | [
"MIT"
] | 1 | 2021-06-02T02:01:38.000Z | 2021-06-02T02:01:38.000Z | app/api/views.py | rickywang432/flask | c956dee6c7dfbb57a5fcd247d23af37e20b96da7 | [
"MIT"
] | null | null | null | from flask import Flask, request, jsonify,Blueprint
from flask_marshmallow import Marshmallow
from app.models import User, Group, Role
from app import ma
api = Blueprint('api', __name__)
user_schema = UserSchema()
users_schema = UserSchema(many=True)
group_schema = GroupSchema()
groups_schema = GroupSchema(many=Tr... | 26.247059 | 80 | 0.685791 |
c20d8ed82808f42c1ce9f7452c5668af8015a2b5 | 2,335 | py | Python | setup.py | maljovec/samply | 9364c2f671c02cb7bab484c0e856a0a0ca6ecc40 | [
"BSD-3-Clause"
] | null | null | null | setup.py | maljovec/samply | 9364c2f671c02cb7bab484c0e856a0a0ca6ecc40 | [
"BSD-3-Clause"
] | 2 | 2019-02-21T00:28:36.000Z | 2019-11-09T04:35:39.000Z | setup.py | maljovec/samplers | 9364c2f671c02cb7bab484c0e856a0a0ca6ecc40 | [
"BSD-3-Clause"
] | null | null | null | """
Setup script for samply
"""
from setuptools import setup
import re
extra_args = {}
def get_property(prop, project):
"""
Helper function for retrieving properties from a project's
__init__.py file
@In, prop, string representing the property to be retrieved
@In, project, ... | 29.935897 | 77 | 0.615418 |
c20db92c5e61a54ef4ff2401b5df9360bca3d9b1 | 4,353 | py | Python | 数据结构实践课/实验3/文本格式化.py | TD21forever/hdu-term-project-helper | f42f553efd1d7b59162d3fc793ac14ae30850efd | [
"Apache-2.0"
] | 17 | 2021-01-09T06:49:09.000Z | 2022-02-23T01:36:20.000Z | 数据结构实践课/实验3/文本格式化.py | TD21forever/hdu-term-project-helper | f42f553efd1d7b59162d3fc793ac14ae30850efd | [
"Apache-2.0"
] | null | null | null | 数据结构实践课/实验3/文本格式化.py | TD21forever/hdu-term-project-helper | f42f553efd1d7b59162d3fc793ac14ae30850efd | [
"Apache-2.0"
] | 1 | 2021-06-22T12:56:16.000Z | 2021-06-22T12:56:16.000Z | # -*- coding: utf-8 -*-
# @Author: TD21forever
# @Date: 2018-11-14 15:41:57
# @Last Modified by: TD21forever
# @Last Modified time: 2018-11-15 16:50:48
file = open('input.txt','r')#
#
if __name__ == '__main__':
while True:
print("")
print("\n1.\n2.\n3.\n4.\n5.\n6.\n")
... | 34.824 | 107 | 0.464278 |
c210287e380e114135144808518dac8414c8a7fc | 1,405 | py | Python | authors/apps/authentication/tests/test_models.py | C3real-kill3r/binary-jungle-backend | 5333138fbce901e75accf5487b10990979afa571 | [
"MIT"
] | null | null | null | authors/apps/authentication/tests/test_models.py | C3real-kill3r/binary-jungle-backend | 5333138fbce901e75accf5487b10990979afa571 | [
"MIT"
] | 8 | 2020-02-12T03:04:07.000Z | 2022-03-12T00:07:31.000Z | authors/apps/authentication/tests/test_models.py | C3real-kill3r/binary-jungle-backend | 5333138fbce901e75accf5487b10990979afa571 | [
"MIT"
] | null | null | null | from django.test import TestCase
from authors.apps.authentication.models import (
User
)
| 30.543478 | 112 | 0.64484 |
c213671e056f4ccf87fd3dab05b33b16957f6f48 | 5,908 | py | Python | simulations/MonteCarlo_function.py | chengning-zhang/Statistical-methods-for-combining-multiple-tests-a-Wrapper- | 42b5aabf6a0619fa7fe18a034926236d133a35d8 | [
"MIT"
] | 1 | 2020-11-24T02:58:58.000Z | 2020-11-24T02:58:58.000Z | simulations/MonteCarlo_function.py | chengning-zhang/Combining-multiple-tests-Wrapper- | 42b5aabf6a0619fa7fe18a034926236d133a35d8 | [
"MIT"
] | null | null | null | simulations/MonteCarlo_function.py | chengning-zhang/Combining-multiple-tests-Wrapper- | 42b5aabf6a0619fa7fe18a034926236d133a35d8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#-*- coding:utf-8 -*-
"""
Created on Nov 23, 2020
@author: Chengning Zhang
"""
## simulation for Scenario A: generate X0 and X1.
def MonteCarlo_1(T, n0, n1, u0, u1, sigma0, sigma1, log_bool = False):
"""simulation for first scenario: multivarite normal with equal variance
T: number of simula... | 46.15625 | 128 | 0.609682 |
c213c3cc512fab07ba3d806bd3d3286525745450 | 389 | py | Python | crawler/robo_proxy.py | xliangwu/com.caveup.machine_learn | 793131c4767f45d468a813752c07d02f623a7b99 | [
"Apache-2.0"
] | 1 | 2018-09-19T06:27:14.000Z | 2018-09-19T06:27:14.000Z | crawler/robo_proxy.py | xliangwu/com.caveup.machine_learn | 793131c4767f45d468a813752c07d02f623a7b99 | [
"Apache-2.0"
] | null | null | null | crawler/robo_proxy.py | xliangwu/com.caveup.machine_learn | 793131c4767f45d468a813752c07d02f623a7b99 | [
"Apache-2.0"
] | null | null | null | import requests
if __name__ == '__main__':
pages_crawler()
| 24.3125 | 135 | 0.676093 |
c2145a28b8098d26c67f49818369dff92c2ac06b | 11,662 | py | Python | apiosintDS/apiosintDS.py | davidonzo/apiosintDS | b5bb1c42e1a3d984a69e8794a4c5da6969dcd917 | [
"MIT"
] | 13 | 2019-10-15T06:54:49.000Z | 2022-03-28T23:23:29.000Z | apiosintDS/apiosintDS.py | davidonzo/apiosintDS | b5bb1c42e1a3d984a69e8794a4c5da6969dcd917 | [
"MIT"
] | 1 | 2019-11-12T15:00:53.000Z | 2019-11-14T09:37:46.000Z | apiosintDS/apiosintDS.py | davidonzo/apiosintDS | b5bb1c42e1a3d984a69e8794a4c5da6969dcd917 | [
"MIT"
] | 4 | 2019-12-05T05:34:07.000Z | 2022-03-24T09:59:26.000Z | import sys
import logging
import pytz
logging.basicConfig(format='%(levelname)s: %(message)s')
if (sys.version_info < (3, 0)):#NO MORE PYTHON 2!!! https://pythonclock.org/
logging.error(" ########################### ERROR ###########################")
logging.error(" ============================================... | 51.149123 | 428 | 0.607271 |
c2160b83bdfd16bb5fd59f1cfbfcbb7c7d36395f | 3,327 | py | Python | 5-3_stock inventory.py | hkrsmk/python | 1ee1b0adc911b62af3911428f441c6c59e1b345f | [
"Unlicense"
] | null | null | null | 5-3_stock inventory.py | hkrsmk/python | 1ee1b0adc911b62af3911428f441c6c59e1b345f | [
"Unlicense"
] | null | null | null | 5-3_stock inventory.py | hkrsmk/python | 1ee1b0adc911b62af3911428f441c6c59e1b345f | [
"Unlicense"
] | null | null | null | #Stock inventory control system.
#======================================= 1 ===========================
#======================================= 2 ===========================
#======================================= 3 ============================
#main prog below
choice = 0
my... | 30.522936 | 87 | 0.479411 |
c21a45651bf528b945d22bdb962a7e3a45ad0e4d | 91 | py | Python | backend/gunicorn_config_worker.py | matan-h/futurecoder | 5117cbab7ed2bc41fe9d4763038d9c4a0aba064e | [
"MIT"
] | null | null | null | backend/gunicorn_config_worker.py | matan-h/futurecoder | 5117cbab7ed2bc41fe9d4763038d9c4a0aba064e | [
"MIT"
] | 1 | 2022-02-28T01:35:27.000Z | 2022-02-28T01:35:27.000Z | backend/gunicorn_config_worker.py | matan-h/futurecoder | 5117cbab7ed2bc41fe9d4763038d9c4a0aba064e | [
"MIT"
] | null | null | null | bind = "0.0.0.0:5000"
threads = 10
worker_class = "gthread"
accesslog = '-'
errorlog = '-'
| 15.166667 | 24 | 0.626374 |
c21a8492971d5deb4f24b54f0d01b958dad6c817 | 1,780 | py | Python | 2017/day23.py | andypymont/adventofcode | 912aa48fc5b31ec9202fb9654380991fc62afcd1 | [
"MIT"
] | null | null | null | 2017/day23.py | andypymont/adventofcode | 912aa48fc5b31ec9202fb9654380991fc62afcd1 | [
"MIT"
] | null | null | null | 2017/day23.py | andypymont/adventofcode | 912aa48fc5b31ec9202fb9654380991fc62afcd1 | [
"MIT"
] | null | null | null | """
2017 Day 23
https://adventofcode.com/2017/day/23
"""
from typing import Dict
import aocd # type: ignore
def main() -> None:
"""
Calculate and output the solutions based on the real puzzle input.
"""
data = aocd.get_data(year=2017, day=23)
program = Program(data)
program.run()
pri... | 25.797101 | 75 | 0.561798 |
c21ace7559f52cf54fe988e11522102469f04048 | 1,641 | py | Python | src/simulator/wsn/test.py | liuliuliu0605/Federated-Learning-PyTorch | 04169455917ae50a8fea2dabd756a0ca1774e5d5 | [
"MIT"
] | null | null | null | src/simulator/wsn/test.py | liuliuliu0605/Federated-Learning-PyTorch | 04169455917ae50a8fea2dabd756a0ca1774e5d5 | [
"MIT"
] | null | null | null | src/simulator/wsn/test.py | liuliuliu0605/Federated-Learning-PyTorch | 04169455917ae50a8fea2dabd756a0ca1774e5d5 | [
"MIT"
] | null | null | null | import sys
from sklearn.datasets import make_blobs
from src.simulator.wsn.network import Network
from src.simulator.wsn.utils import *
from src.simulator.wsn.fcm import *
from src.simulator.wsn.direct_communication import *
from src.utils import complete, star
seed = 1
np.random.seed(seed )
logging.basic... | 32.176471 | 80 | 0.672151 |
c21c3b472b61858775a3801d8a7ee0aff0f5536a | 4,149 | py | Python | src/dewloosh/geom/cell.py | dewloosh/dewloosh-geom | 5c97fbab4b68f4748bf4309184b9e0e877f94cd6 | [
"MIT"
] | 2 | 2021-12-11T17:25:51.000Z | 2022-01-06T15:36:27.000Z | src/dewloosh/geom/cell.py | dewloosh/dewloosh-geom | 5c97fbab4b68f4748bf4309184b9e0e877f94cd6 | [
"MIT"
] | null | null | null | src/dewloosh/geom/cell.py | dewloosh/dewloosh-geom | 5c97fbab4b68f4748bf4309184b9e0e877f94cd6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
try:
from collections.abc import Iterable
except ImportError:
from collections import Iterable
import numpy as np
from numpy import ndarray
from dewloosh.math.array import atleast1d
from dewloosh.math.utils import to_range
from .celldata import CellData
from .utils import jacobian_mat... | 33.192 | 89 | 0.577489 |
c2221b8872b6350f052296a7af3215fb075a5795 | 30 | py | Python | src/python/src/rmq/items/__init__.py | halimov-oa/scrapy-boilerplate | fe3c552fed26bedb0618c245ab923aa34a89ac9d | [
"MIT"
] | 34 | 2019-12-13T10:31:39.000Z | 2022-03-09T15:59:07.000Z | src/python/src/rmq/items/__init__.py | halimov-oa/scrapy-boilerplate | fe3c552fed26bedb0618c245ab923aa34a89ac9d | [
"MIT"
] | 49 | 2020-02-25T19:41:09.000Z | 2022-02-27T12:05:25.000Z | src/python/src/rmq/items/__init__.py | halimov-oa/scrapy-boilerplate | fe3c552fed26bedb0618c245ab923aa34a89ac9d | [
"MIT"
] | 23 | 2019-12-23T15:19:42.000Z | 2022-03-09T16:00:15.000Z | from .rmq_item import RMQItem
| 15 | 29 | 0.833333 |
c22246e42a11a496e2843439e4ad4abd332a1d57 | 968 | py | Python | softlearning/environments/mujoco_safety_gym/envs/fetch/slide.py | anyboby/mbpo | 98b75cb4cb13a2640fce1fbe1ddef466b864342e | [
"MIT"
] | 5 | 2020-02-12T17:09:09.000Z | 2021-09-29T16:06:40.000Z | softlearning/environments/mujoco_safety_gym/envs/fetch/slide.py | anyboby/mbpo | 98b75cb4cb13a2640fce1fbe1ddef466b864342e | [
"MIT"
] | 10 | 2020-08-31T02:50:02.000Z | 2022-02-09T23:36:43.000Z | softlearning/environments/mujoco_safety_gym/envs/fetch/slide.py | anyboby/mbpo | 98b75cb4cb13a2640fce1fbe1ddef466b864342e | [
"MIT"
] | 2 | 2022-03-15T01:45:26.000Z | 2022-03-15T06:46:47.000Z | import os
import numpy as np
from gym import utils
from mujoco_safety_gym.envs import fetch_env
# Ensure we get the path separator correct on windows
MODEL_XML_PATH = os.path.join('fetch', 'slide.xml')
| 37.230769 | 105 | 0.66219 |
c222e22c9b1710ce4667ef563dce67f96dc33915 | 163 | py | Python | packages/raspi_ip/setup.py | atoy322/PiDrive | 8758f4b5dae4a0187ce0a769c4146628c88015de | [
"MIT"
] | null | null | null | packages/raspi_ip/setup.py | atoy322/PiDrive | 8758f4b5dae4a0187ce0a769c4146628c88015de | [
"MIT"
] | 2 | 2021-09-21T06:32:58.000Z | 2021-09-22T23:15:18.000Z | packages/raspi_ip/setup.py | atoy322/PiDrive | 8758f4b5dae4a0187ce0a769c4146628c88015de | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="raspi_ip",
version="1.0.0",
author="atoy322",
description="",
long_description=""
)
| 14.818182 | 43 | 0.644172 |
c223b2854d4053fb4e412891092b11e58745c844 | 339 | py | Python | kiteconnect/__version__.py | AnjayGoel/pykiteconnect | e33833a86d3e6483f2cff1be8bed74f40d5771c5 | [
"MIT"
] | 1 | 2022-02-05T08:43:37.000Z | 2022-02-05T08:43:37.000Z | kiteconnect/__version__.py | AnjayGoel/pykiteconnect | e33833a86d3e6483f2cff1be8bed74f40d5771c5 | [
"MIT"
] | null | null | null | kiteconnect/__version__.py | AnjayGoel/pykiteconnect | e33833a86d3e6483f2cff1be8bed74f40d5771c5 | [
"MIT"
] | null | null | null | __title__ = "open_kite_connect"
__description__ = "Fork of the official Kite Connect python client, allowing free access to the api."
__url__ = "https://kite.trade"
__download_url__ = "https://github.com/AnjayGoel/pykiteconnect"
__version__ = "4.0.0"
__author__ = "Anjay Goel"
__author_email__ = "anjay.goel@gmail.com"
_... | 37.666667 | 101 | 0.766962 |
c223dd7e30b36ebfa0f41bf3e5a06ae1a6e0b5cd | 1,679 | py | Python | CrsData/pipelines.py | DivineEnder/CrsData | cd0cf14e79b4a3bbf7347b8612a5b67e2a185208 | [
"MIT"
] | null | null | null | CrsData/pipelines.py | DivineEnder/CrsData | cd0cf14e79b4a3bbf7347b8612a5b67e2a185208 | [
"MIT"
] | null | null | null | CrsData/pipelines.py | DivineEnder/CrsData | cd0cf14e79b4a3bbf7347b8612a5b67e2a185208 | [
"MIT"
] | null | null | null | # @Author: DivineEnder
# @Date: 2018-03-08 22:24:45
# @Email: danuta@u.rochester.edu
# @Last modified by: DivineEnder
# @Last modified time: 2018-03-11 01:25:41
# -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.... | 34.265306 | 214 | 0.731983 |
c224e7c1cff16812960fb4cd9afab8ab99e06afc | 2,227 | py | Python | index_to_csv.py | grenzi/photoindexer | d10b3b6f347168706dc9c2673a29102fd73f31e1 | [
"Apache-2.0"
] | null | null | null | index_to_csv.py | grenzi/photoindexer | d10b3b6f347168706dc9c2673a29102fd73f31e1 | [
"Apache-2.0"
] | null | null | null | index_to_csv.py | grenzi/photoindexer | d10b3b6f347168706dc9c2673a29102fd73f31e1 | [
"Apache-2.0"
] | null | null | null | import os
import json
from enum import Enum
from datetime import datetime,date
import logging
import pathlib
from tqdm import tqdm
from datastructures import Volume, IndexedFile,load_index_if_exists, save_index
from os import listdir
from os.path import isfile, join
import itertools
import csv
logger = lo... | 35.349206 | 122 | 0.58599 |
c2253045dcaa56a5991a62320574be6662b1c519 | 1,056 | py | Python | tests/test_wrapper.py | waysup/Jike-Metro | b8ead80dddd5d695784c5587edfd8df87c55a4e6 | [
"MIT"
] | 193 | 2018-04-04T02:27:51.000Z | 2022-03-14T03:26:44.000Z | tests/test_wrapper.py | BeiFenKu/Jike-Metro | e97fd0a751dca28a39d0e9fb94fbd696d5ee07b3 | [
"MIT"
] | 16 | 2018-04-04T05:58:15.000Z | 2021-01-08T02:56:57.000Z | tests/test_wrapper.py | BeiFenKu/Jike-Metro | e97fd0a751dca28a39d0e9fb94fbd696d5ee07b3 | [
"MIT"
] | 24 | 2018-04-06T09:34:58.000Z | 2021-03-02T02:10:07.000Z | import unittest
from collections import namedtuple
from jike.objects.wrapper import *
if __name__ == '__main__':
unittest.main()
| 34.064516 | 83 | 0.61553 |
c225d7cd38555d8a71f34fd96c413aa41e8e84be | 10,125 | py | Python | storm_control/hal4000/illumination/illuminationChannelUI.py | shiwei23/STORM6 | 669067503ebd164b575ce529fcc4a9a3f576b3d7 | [
"MIT"
] | 47 | 2015-02-11T16:05:54.000Z | 2022-03-26T14:13:12.000Z | storm_control/hal4000/illumination/illuminationChannelUI.py | shiwei23/STORM6 | 669067503ebd164b575ce529fcc4a9a3f576b3d7 | [
"MIT"
] | 110 | 2015-01-30T03:53:41.000Z | 2021-11-03T15:58:44.000Z | storm_control/hal4000/illumination/illuminationChannelUI.py | shiwei23/STORM6 | 669067503ebd164b575ce529fcc4a9a3f576b3d7 | [
"MIT"
] | 61 | 2015-01-09T18:31:27.000Z | 2021-12-21T13:07:51.000Z | #!/usr/bin/env python
"""
The various ChannelUI classes.
Hazen 04/17
"""
import os
from PyQt5 import QtCore, QtWidgets
#
# The MIT License
#
# Copyright (c) 2017 Zhuang Lab, Harvard University
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated docu... | 32.041139 | 100 | 0.645136 |
c229b5ef4f038beb67f6eb13b6306e08e27df0c9 | 4,051 | py | Python | 3-compressor/compress.py | JamesG3/Search-Engine | 790f32c7833eb82d9b01b84af634e650ef7a9e75 | [
"BSD-2-Clause"
] | null | null | null | 3-compressor/compress.py | JamesG3/Search-Engine | 790f32c7833eb82d9b01b84af634e650ef7a9e75 | [
"BSD-2-Clause"
] | null | null | null | 3-compressor/compress.py | JamesG3/Search-Engine | 790f32c7833eb82d9b01b84af634e650ef7a9e75 | [
"BSD-2-Clause"
] | null | null | null | import sys
import struct
from io import FileIO, BufferedWriter
import S9Compressor as S9
BLOCKSIZE = (64*1024) / 4 # number of Int
LexiPos = 0 # record the current position for new lexicon writing
lexiconBuffer = []
IIBuffer = []
WriteThreshold = 0
del IIBuffer[:]
newII.close()
return
main() | 26.827815 | 96 | 0.674155 |
c22ad6cee4570624757675e6c7ad19a18a8249f2 | 5,028 | py | Python | DataProcess/ultimate_subimage.py | EmmaAlexander/possum-tools | 051ebca682cd97b68fa2a89c9d67e99cf85b09c7 | [
"MIT"
] | 5 | 2021-11-18T13:27:30.000Z | 2021-12-05T00:15:33.000Z | DataProcess/ultimate_subimage.py | EmmaAlexander/possum-tools | 051ebca682cd97b68fa2a89c9d67e99cf85b09c7 | [
"MIT"
] | null | null | null | DataProcess/ultimate_subimage.py | EmmaAlexander/possum-tools | 051ebca682cd97b68fa2a89c9d67e99cf85b09c7 | [
"MIT"
] | null | null | null | #CASA script to create cutouts of fits cubes
directoryA = '/Volumes/TARDIS/Work/askap/'
directoryB = '/Volumes/NARNIA/pilot_cutouts/'
import numpy as np
sources=np.loadtxt('/Users/emma/GitHub/possum-tools/DataProcess/pilot_sources.txt',dtype='str')
for i in range(0,sources.shape[0]):
objectname=sources[i,0]
POSSUM... | 57.136364 | 134 | 0.793755 |
c22b8b9f23f5fc7b3cfeba52a978e7ba6441ed61 | 92 | py | Python | cv_comparison_slider_window/__init__.py | Kazuhito00/cv-comparison-slider-window | 215cd91c1832b419af9fb99b484ce8c2a9e79a37 | [
"MIT"
] | 2 | 2020-11-14T09:09:02.000Z | 2020-11-14T10:54:57.000Z | cv_comparison_slider_window/__init__.py | Kazuhito00/cv-comparison-slider-window | 215cd91c1832b419af9fb99b484ce8c2a9e79a37 | [
"MIT"
] | null | null | null | cv_comparison_slider_window/__init__.py | Kazuhito00/cv-comparison-slider-window | 215cd91c1832b419af9fb99b484ce8c2a9e79a37 | [
"MIT"
] | null | null | null | from cv_comparison_slider_window.cv_comparison_slider_window import CvComparisonSliderWindow | 92 | 92 | 0.956522 |
c22bb60421f79ce3a2d29c04e35af61e67fb09d3 | 1,207 | py | Python | telegram_ecommerce/filters/decorators.py | Anonylions/telegram_ecommerce | f5382886bbebf607c735e2f451774c56df8d6011 | [
"MIT"
] | 10 | 2020-11-20T20:55:52.000Z | 2022-02-10T20:25:45.000Z | telegram_ecommerce/filters/decorators.py | Anonylions/telegram_ecommerce | f5382886bbebf607c735e2f451774c56df8d6011 | [
"MIT"
] | 1 | 2022-02-16T10:28:18.000Z | 2022-02-16T10:35:31.000Z | telegram_ecommerce/filters/decorators.py | Anonylions/telegram_ecommerce | f5382886bbebf607c735e2f451774c56df8d6011 | [
"MIT"
] | 8 | 2021-05-01T01:13:09.000Z | 2022-03-13T14:00:01.000Z | from ..language import get_text
from ..database.query import (
user_exist,
is_admin)
END = -1
| 26.822222 | 67 | 0.71831 |
c22fbe148dfbc37e36952003c17c1b1180d11337 | 63 | py | Python | albow/demo/openGL/__init__.py | hasii2011/albow-python-3 | 04b9d42705b370b62f0e49d10274eebf3ac54bc1 | [
"MIT"
] | 6 | 2019-04-30T23:50:39.000Z | 2019-11-04T06:15:02.000Z | albow/demo/openGL/__init__.py | hasii2011/albow-python-3 | 04b9d42705b370b62f0e49d10274eebf3ac54bc1 | [
"MIT"
] | 73 | 2019-05-12T18:43:14.000Z | 2021-04-13T19:19:03.000Z | albow/demo/openGL/__init__.py | hasii2011/albow-python-3 | 04b9d42705b370b62f0e49d10274eebf3ac54bc1 | [
"MIT"
] | null | null | null | """"
This package contains the OpenGL demonstration classes
""" | 21 | 54 | 0.761905 |
c2306615617cec84564c5dcb8ee8a144809be27e | 1,640 | py | Python | openhab2/scripts/readNilan.py | starze/openhab2 | e4eeeecd829cdf286372067bd61561e63fed6e1a | [
"MIT"
] | 10 | 2017-04-04T08:28:54.000Z | 2021-02-24T04:36:07.000Z | openhab2/scripts/readNilan.py | starze/openhab2 | e4eeeecd829cdf286372067bd61561e63fed6e1a | [
"MIT"
] | 2 | 2017-04-18T13:33:12.000Z | 2018-06-05T21:27:18.000Z | openhab2/scripts/readNilan.py | starze/openhab2 | e4eeeecd829cdf286372067bd61561e63fed6e1a | [
"MIT"
] | 7 | 2017-04-17T18:02:19.000Z | 2020-09-25T21:28:08.000Z | #!/usr/bin/env python3
# -*- coding: ISO-8859-1 -*-
# https://github.com/starze/openhab2
# https://github.com/roggmaeh/nilan-openhab
import minimalmodbus
import serial
import os, sys
import csv
import httplib2
minimalmodbus.CLOSE_PORT_AFTER_EACH_CALL = True
instrument = minimalmodbus.Instrument('/dev/ttyUSB0', 30, m... | 34.166667 | 109 | 0.675 |
c230b7732d9a3dd108e45e13abd94ad053baac7e | 2,316 | py | Python | face_signin/prepare_training.py | sribs/FaceRecognition | 68284173195d55f32a353fe3d78a53c25fbf1363 | [
"Apache-2.0"
] | null | null | null | face_signin/prepare_training.py | sribs/FaceRecognition | 68284173195d55f32a353fe3d78a53c25fbf1363 | [
"Apache-2.0"
] | null | null | null | face_signin/prepare_training.py | sribs/FaceRecognition | 68284173195d55f32a353fe3d78a53c25fbf1363 | [
"Apache-2.0"
] | null | null | null | import cv2
import numpy as np
import os
| 31.297297 | 85 | 0.593264 |
c230e009f1c0351446c02fccceb30b7ead29e784 | 138 | py | Python | randomselection.py | Ristinoa/cs257 | e7c31f995d08661114d868a55448c628b4cc9327 | [
"MIT"
] | null | null | null | randomselection.py | Ristinoa/cs257 | e7c31f995d08661114d868a55448c628b4cc9327 | [
"MIT"
] | null | null | null | randomselection.py | Ristinoa/cs257 | e7c31f995d08661114d868a55448c628b4cc9327 | [
"MIT"
] | null | null | null | "randompicker.py"
import random
"A very short practice program designed
to spit out a random, user-determined
sample of input names"
| 13.8 | 39 | 0.775362 |
c2318081600b41f253e54a78d1001f4ddb857e30 | 15,873 | py | Python | fisspy/analysis/tdmap.py | SNU-sunday/FISS-PYTHON | f79420debef476a904356d42542cb6472990bb2f | [
"BSD-2-Clause"
] | 3 | 2017-02-18T06:42:08.000Z | 2021-01-05T04:15:08.000Z | fisspy/analysis/tdmap.py | SNU-sunday/fisspy | f79420debef476a904356d42542cb6472990bb2f | [
"BSD-2-Clause"
] | 1 | 2019-06-30T10:35:27.000Z | 2019-06-30T10:35:27.000Z | fisspy/analysis/tdmap.py | SNU-sunday/FISS-PYTHON | f79420debef476a904356d42542cb6472990bb2f | [
"BSD-2-Clause"
] | 1 | 2017-02-23T05:24:13.000Z | 2017-02-23T05:24:13.000Z | from __future__ import absolute_import, division
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import gridspec
from fisspy.analysis.filter import FourierFilter
from interpolation.splines import LinearSpline
from matplotlib.animation import FuncAnimation
import astropy.units as u
from astropy.time i... | 41.015504 | 86 | 0.449001 |
c231926cf5107bb89588302bb3bc85d7ec967624 | 2,806 | py | Python | Graphy/setup.py | andrepbento/OpenTracingProcessor | 9e4b01cb59cecbfa04af8d5d93e3b7deb76d9ee6 | [
"MIT"
] | 4 | 2021-03-06T13:50:58.000Z | 2022-03-28T15:17:07.000Z | Graphy/setup.py | andrepbento/OpenTracingProcessor | 9e4b01cb59cecbfa04af8d5d93e3b7deb76d9ee6 | [
"MIT"
] | null | null | null | Graphy/setup.py | andrepbento/OpenTracingProcessor | 9e4b01cb59cecbfa04af8d5d93e3b7deb76d9ee6 | [
"MIT"
] | null | null | null | """
Author: Andr Bento
Date last modified: 26-02-2019
"""
import subprocess
import sys
from os.path import dirname, abspath, join
from setuptools import find_packages, Command, setup
from setuptools.command.test import test as TestCommand
this_dir = abspath(dirname(__file__))
NAME = 'graphy'
VERSION = '0.0.1... | 24.189655 | 82 | 0.62794 |
c232029579d8b288e2ac9ed43b03f0690df1e9c2 | 1,317 | py | Python | polaris/polaris/sep24/tzinfo.py | yuriescl/django-polaris | 8806d0e4e8baaddbffbceb3609786d2436b8abe1 | [
"Apache-2.0"
] | 81 | 2019-11-16T21:47:22.000Z | 2022-02-17T07:35:02.000Z | polaris/polaris/sep24/tzinfo.py | yuriescl/django-polaris | 8806d0e4e8baaddbffbceb3609786d2436b8abe1 | [
"Apache-2.0"
] | 491 | 2019-11-10T23:44:30.000Z | 2022-03-20T00:25:02.000Z | polaris/polaris/sep24/tzinfo.py | yuriescl/django-polaris | 8806d0e4e8baaddbffbceb3609786d2436b8abe1 | [
"Apache-2.0"
] | 89 | 2019-11-18T21:31:01.000Z | 2022-03-28T13:47:41.000Z | import pytz
from datetime import datetime, timedelta, timezone
from rest_framework.decorators import api_view, parser_classes, renderer_classes
from rest_framework.parsers import JSONParser
from rest_framework.renderers import JSONRenderer
from rest_framework.request import Request
from rest_framework.response import ... | 34.657895 | 87 | 0.741838 |
c2321c74ae596a68d5084730c6df5fe1a40a8090 | 1,615 | py | Python | utils/fundoptutils.py | joshualee155/FundOptimizer | da842de6c99f89c767d03c9ef1b392237b726a3f | [
"MIT"
] | 2 | 2021-01-03T00:46:51.000Z | 2021-09-01T02:48:51.000Z | utils/fundoptutils.py | joshualee155/FundOptimizer | da842de6c99f89c767d03c9ef1b392237b726a3f | [
"MIT"
] | null | null | null | utils/fundoptutils.py | joshualee155/FundOptimizer | da842de6c99f89c767d03c9ef1b392237b726a3f | [
"MIT"
] | 1 | 2021-08-28T11:04:00.000Z | 2021-08-28T11:04:00.000Z | import pandas as pd
import datetime as dt
def str2date( sDate ):
"""
Convert a string date to datetime.date
"""
try:
dateTime = dt.datetime.strptime( sDate, "%Y%m%d" )
except ValueError:
dateTime = dt.datetime.strptime( sDate, "%Y-%m-%d" )
return dateTime.date()
def getHolidays... | 30.471698 | 102 | 0.596285 |
c2329a7b9e06911a1ed82d81214f1385b352823d | 398 | py | Python | Http-api-auth0-jwt/src/list-all-unicorns.py | JimmyDqv/blogs-and-sessions-code | 737a2e88f3fd84bd8426be609f7474374d4ac4d6 | [
"MIT"
] | 2 | 2021-07-08T10:31:11.000Z | 2022-01-07T23:04:31.000Z | Http-api-auth0-jwt/src/list-all-unicorns.py | JimmyDqv/blogs-and-sessions-code | 737a2e88f3fd84bd8426be609f7474374d4ac4d6 | [
"MIT"
] | null | null | null | Http-api-auth0-jwt/src/list-all-unicorns.py | JimmyDqv/blogs-and-sessions-code | 737a2e88f3fd84bd8426be609f7474374d4ac4d6 | [
"MIT"
] | null | null | null | import json
| 15.92 | 36 | 0.371859 |
c232b3257fa969c4deba44d282906664d6091820 | 253 | py | Python | examples/http_server.py | srossross/uvio | f4d55ad5ea5900a2a8b9c1249484ed621dc30055 | [
"MIT"
] | 3 | 2016-03-23T08:12:03.000Z | 2018-10-06T02:46:54.000Z | examples/http_server.py | srossross/uvio | f4d55ad5ea5900a2a8b9c1249484ed621dc30055 | [
"MIT"
] | null | null | null | examples/http_server.py | srossross/uvio | f4d55ad5ea5900a2a8b9c1249484ed621dc30055 | [
"MIT"
] | null | null | null | import uvio
| 14.882353 | 71 | 0.632411 |
c2334b533c25c85bcfe5823b2fbd3fe0b9cec5f6 | 7,933 | py | Python | ui/django_site_v2/data_cube_ui/utils/dc_mosaic.py | ceos-seo/Data_Cube_v2 | 81c3be66153ea123b5d21cf9ec7f59ccb7a2050a | [
"Apache-2.0"
] | 27 | 2016-08-16T18:22:47.000Z | 2018-08-25T17:18:15.000Z | ui/django_site_v2/data_cube_ui/utils/dc_mosaic.py | data-cube/CEOS-cube | 31baeba08d8e8470c4663c18aaf9056431d9c49f | [
"Apache-2.0"
] | null | null | null | ui/django_site_v2/data_cube_ui/utils/dc_mosaic.py | data-cube/CEOS-cube | 31baeba08d8e8470c4663c18aaf9056431d9c49f | [
"Apache-2.0"
] | 27 | 2016-08-26T18:14:40.000Z | 2021-12-24T08:41:29.000Z |
# Copyright 2016 United States Government as represented by the Administrator
# of the National Aeronautics and Space Administration. All Rights Reserved.
#
# Portion of this code is Copyright Geoscience Australia, Licensed under the
# Apache License, Version 2.0 (the "License"); you may not use this file
# except in ... | 40.682051 | 173 | 0.704399 |
c234a2bf9d847b0178d0e12fe82918d472e89c91 | 2,014 | py | Python | plotter.py | keshavbantu/covclass | e27cfb4ff8e7e6f076c3429aa1c4696e173bc3a4 | [
"MIT"
] | null | null | null | plotter.py | keshavbantu/covclass | e27cfb4ff8e7e6f076c3429aa1c4696e173bc3a4 | [
"MIT"
] | null | null | null | plotter.py | keshavbantu/covclass | e27cfb4ff8e7e6f076c3429aa1c4696e173bc3a4 | [
"MIT"
] | null | null | null | import cleaner as dataStream
import plotly.graph_objects as go
import plotly.io as pio
#DONUT PLOT - CONDITIONS -----------------------------------------
labels = ['Diabetes','Hypertension','Coronary Heart(D)','Chronic Kidney(D)','No Conditions','Obstructive Pulmonary(D)']
values = dataStream.PIEList
fig_cond = go.Fi... | 38 | 124 | 0.627607 |
c235b37d33733193984303077c70e9f3d941faa4 | 1,847 | py | Python | pyglare/scene/objects.py | keyvank/pyglare | 9e26ae444ff4481f0f50d7344d2a5a881d04fe64 | [
"MIT"
] | 6 | 2017-01-13T22:32:55.000Z | 2022-03-27T22:19:49.000Z | pyglare/scene/objects.py | keyvank/pyglare | 9e26ae444ff4481f0f50d7344d2a5a881d04fe64 | [
"MIT"
] | 1 | 2016-09-13T17:59:41.000Z | 2016-09-13T18:05:20.000Z | pyglare/scene/objects.py | keyvank/pyglare | 9e26ae444ff4481f0f50d7344d2a5a881d04fe64 | [
"MIT"
] | null | null | null | from ..math import geometry as geo
from ..image.color import Color
import math
| 24.959459 | 102 | 0.7634 |
c235c83aedce86f0591eb9d244db1ef5424b59b5 | 1,401 | py | Python | Led.py | Zico56/raspberry-gt500 | 85e29ec8bb604fab9c0eb37b63e85b8058baf2b2 | [
"Xnet",
"X11"
] | null | null | null | Led.py | Zico56/raspberry-gt500 | 85e29ec8bb604fab9c0eb37b63e85b8058baf2b2 | [
"Xnet",
"X11"
] | null | null | null | Led.py | Zico56/raspberry-gt500 | 85e29ec8bb604fab9c0eb37b63e85b8058baf2b2 | [
"Xnet",
"X11"
] | null | null | null | import time
from tkinter import *
from PIL import Image, ImageTk
from Configuration import config | 31.840909 | 67 | 0.615989 |
c236c320912188a01c92278b510292a2d1855a42 | 249 | py | Python | tests/accounts/model/test_social_security_number.py | Hyaxia/Bank-DDD-CQRS-ES | 116e3eb3e93d549c1da53e6d506ab47667d77445 | [
"MIT"
] | 8 | 2020-10-27T09:46:20.000Z | 2022-01-27T12:16:48.000Z | tests/accounts/model/test_social_security_number.py | Hyaxia/Bank-DDD-CQRS-ES | 116e3eb3e93d549c1da53e6d506ab47667d77445 | [
"MIT"
] | null | null | null | tests/accounts/model/test_social_security_number.py | Hyaxia/Bank-DDD-CQRS-ES | 116e3eb3e93d549c1da53e6d506ab47667d77445 | [
"MIT"
] | 2 | 2021-05-29T08:11:48.000Z | 2021-07-26T04:44:53.000Z | import pytest
from bank_ddd_es_cqrs.accounts import SocialSecurityNumber
| 27.666667 | 90 | 0.84739 |
c236d3b1e5bb73ed1d08dc25325aad2b8f8b0b9e | 358 | py | Python | setup.py | jjakimoto/rl_traders.py | d5411c96d49ba6a54751d12cdd11974e5cc1a8aa | [
"MIT"
] | 2 | 2018-10-07T14:16:32.000Z | 2019-01-28T00:14:29.000Z | setup.py | jjakimoto/rl_traders.py | d5411c96d49ba6a54751d12cdd11974e5cc1a8aa | [
"MIT"
] | null | null | null | setup.py | jjakimoto/rl_traders.py | d5411c96d49ba6a54751d12cdd11974e5cc1a8aa | [
"MIT"
] | 1 | 2019-11-05T00:51:20.000Z | 2019-11-05T00:51:20.000Z | from setuptools import setup
from setuptools import find_packages
setup(name='rl_traders',
version='0.1.0',
description='Reinforcement Learning for Trading',
url='https://github.com/jjakimoto/rl_traders.git',
author='jjakimoto',
author_email='f.j.akimoto@gmail.com',
license='MIT',
... | 27.538462 | 56 | 0.678771 |
c239846032333fb5d26b1c1eb5b5c8a5cf233d15 | 2,219 | py | Python | Music/__init__.py | izazkhan8293/Musicheu | 9cd33a71868b8b850d6fd78eaac05dda0713b7cc | [
"Apache-2.0"
] | null | null | null | Music/__init__.py | izazkhan8293/Musicheu | 9cd33a71868b8b850d6fd78eaac05dda0713b7cc | [
"Apache-2.0"
] | null | null | null | Music/__init__.py | izazkhan8293/Musicheu | 9cd33a71868b8b850d6fd78eaac05dda0713b7cc | [
"Apache-2.0"
] | null | null | null | from pyrogram import Client
import asyncio
from Music.config import API_ID, API_HASH, BOT_TOKEN, MONGO_DB_URI, SUDO_USERS
from motor.motor_asyncio import AsyncIOMotorClient as MongoClient
import time
import uvloop
from Music import config
import importlib
from pyrogram import Client as Bot
from Music.config import API_... | 28.448718 | 102 | 0.708878 |
c23a870064fefb4e740984ad848e886ea4aa0cd9 | 9,372 | py | Python | test.py | ZJianjin/Traffic4cast2020_lds | 6cb76e885a9539e485c055222be77f41a559c507 | [
"Apache-2.0"
] | 3 | 2020-12-10T13:43:08.000Z | 2021-01-17T04:36:34.000Z | test.py | ZJianjin/Traffic4cast2020_lds | 6cb76e885a9539e485c055222be77f41a559c507 | [
"Apache-2.0"
] | null | null | null | test.py | ZJianjin/Traffic4cast2020_lds | 6cb76e885a9539e485c055222be77f41a559c507 | [
"Apache-2.0"
] | null | null | null | import random
from random import shuffle
import numpy as np
import tensorflow as tf
from tensorflow.python.tools import freeze_graph
import datetime
import time
import queue
import threading
import logging
from PIL import Image
import itertools
import yaml
import re
import os
import glob
import shutil
import sys
import... | 37.94332 | 122 | 0.636364 |
c23bc080151d66518c85923b1ce1c8be7c0ff949 | 3,037 | py | Python | python/python-010/rds.py | suzuxander/suzuxander_samples | 736224dae91b432ef3ec796f5eda23417865f142 | [
"MIT"
] | null | null | null | python/python-010/rds.py | suzuxander/suzuxander_samples | 736224dae91b432ef3ec796f5eda23417865f142 | [
"MIT"
] | null | null | null | python/python-010/rds.py | suzuxander/suzuxander_samples | 736224dae91b432ef3ec796f5eda23417865f142 | [
"MIT"
] | null | null | null | from troposphere import Template, Ref, Parameter, GetAtt
from troposphere.ec2 import SecurityGroup
from troposphere.rds import DBSubnetGroup, DBInstance
if __name__ == '__main__':
create_rds_template()
| 25.957265 | 66 | 0.55186 |
c23f39dcaa9bc21fb37ef18d6de38e47058d0da3 | 514 | py | Python | hlwtadmin/migrations/0044_gigfinderurl_ignore_periods.py | Kunstenpunt/havelovewilltravel | 6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83 | [
"Apache-2.0"
] | 1 | 2020-10-16T16:29:01.000Z | 2020-10-16T16:29:01.000Z | hlwtadmin/migrations/0044_gigfinderurl_ignore_periods.py | Kunstenpunt/havelovewilltravel | 6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83 | [
"Apache-2.0"
] | 365 | 2020-02-03T12:46:53.000Z | 2022-02-27T17:20:46.000Z | hlwtadmin/migrations/0044_gigfinderurl_ignore_periods.py | Kunstenpunt/havelovewilltravel | 6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.7 on 2021-01-26 09:57
import django.contrib.postgres.fields
from django.db import migrations, models
| 25.7 | 126 | 0.659533 |
c23fbfd17a95b6fdf7b229efd815b011116431cc | 1,855 | py | Python | conanfile.py | ltjax/nativefiledialog-extended | 2dc958b98f41e081189e84b56f9f250e1b30f92e | [
"Zlib"
] | null | null | null | conanfile.py | ltjax/nativefiledialog-extended | 2dc958b98f41e081189e84b56f9f250e1b30f92e | [
"Zlib"
] | null | null | null | conanfile.py | ltjax/nativefiledialog-extended | 2dc958b98f41e081189e84b56f9f250e1b30f92e | [
"Zlib"
] | null | null | null | from conans import ConanFile, CMake, tools
| 40.326087 | 116 | 0.654447 |
c24130645b33d6b4c145bae50da7d266149801e6 | 960 | py | Python | hackerearth/Algorithms/New World/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerearth/Algorithms/New World/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerearth/Algorithms/New World/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 bisect
t = int(input())
for _ in ... | 24 | 94 | 0.527083 |
c2416fc1e551162c64c074b04f41a960aa792575 | 712 | py | Python | core/departments/urls.py | IvanRch/bsuphys | 105715cde8fc8e9a42019ed4b650fe00b94fa132 | [
"Apache-2.0"
] | 1 | 2022-01-04T07:04:46.000Z | 2022-01-04T07:04:46.000Z | core/departments/urls.py | IvanRch/bsuphys | 105715cde8fc8e9a42019ed4b650fe00b94fa132 | [
"Apache-2.0"
] | 1 | 2020-02-17T19:06:03.000Z | 2020-02-17T19:06:03.000Z | core/departments/urls.py | IvanRch/bsuphys | 105715cde8fc8e9a42019ed4b650fe00b94fa132 | [
"Apache-2.0"
] | 1 | 2021-07-08T13:21:04.000Z | 2021-07-08T13:21:04.000Z | from django.urls import path, re_path
from . import views
app_name = "departments"
urlpatterns = [path("", views.departmentList, name="energy department"),
path(
"<slug:department>/",
views.department_detail,
name="department_detail",
),
path(
"<slug:departm... | 25.428571 | 72 | 0.573034 |
c2456834188f5aaff78f04e88343303b398c8b26 | 432 | py | Python | 18th May Assignments/case study 1/question_5.py | JangirSumit/data_science | a1957122f8a4c66e3b4c7b7c93a74c53a2db1fe4 | [
"MIT"
] | 15 | 2019-05-05T04:48:42.000Z | 2022-02-15T12:08:33.000Z | 18th May Assignments/case study 1/question_5.py | JangirSumit/data_science | a1957122f8a4c66e3b4c7b7c93a74c53a2db1fe4 | [
"MIT"
] | null | null | null | 18th May Assignments/case study 1/question_5.py | JangirSumit/data_science | a1957122f8a4c66e3b4c7b7c93a74c53a2db1fe4 | [
"MIT"
] | 53 | 2019-11-10T05:09:25.000Z | 2022-03-28T01:26:32.000Z | # 5. How do you Count The Number Of Times Each Value Appears In An Array Of Integers?
# [0, 5, 4, 0, 4, 4, 3, 0, 0, 5, 2, 1, 1, 9]
# Answer should be array([4, 2, 1, 1, 3, 2, 0, 0, 0, 1]) which means 0 comes 4 times, 1 comes 2 times, 2 comes 1 time, 3 comes 1 time and so on.
array = [0, 5, 4, 0, 4, 4, 3,... | 43.2 | 144 | 0.601852 |
c246213af42c94a04ec5e4409ced7cd800cf77ef | 4,957 | py | Python | pvp-tic-tac-toe.py | lsfidelis/pvp-tic-tac-toe | 6ed73e5a053cc22a092c7b56d774503f57a859ab | [
"MIT"
] | null | null | null | pvp-tic-tac-toe.py | lsfidelis/pvp-tic-tac-toe | 6ed73e5a053cc22a092c7b56d774503f57a859ab | [
"MIT"
] | null | null | null | pvp-tic-tac-toe.py | lsfidelis/pvp-tic-tac-toe | 6ed73e5a053cc22a092c7b56d774503f57a859ab | [
"MIT"
] | null | null | null | from time import sleep
print("Welcome to Tic Tac Toe! \nWe'll be playing in a sec, but, first..")
general_board = {'7': ' ', '8': ' ', '9': ' ',
'4': ' ', '5': ' ', '6': ' ',
'1': ' ', '2': ' ', '3': ' '}
# prints board structure
# Choose which player goes first
# Clear the board ... | 35.92029 | 89 | 0.435747 |
c24663b502469b48e008fb30a563fba0b901fd18 | 7,119 | py | Python | total_tolles_ferleihsystem/auth_providers/ldap_auth_provider.py | spethso/Verleihsystem-TTF | 39179f9ac5b07f5106e555f82f3c9011d33805bd | [
"MIT"
] | 1 | 2019-03-17T08:11:14.000Z | 2019-03-17T08:11:14.000Z | total_tolles_ferleihsystem/auth_providers/ldap_auth_provider.py | spethso/Verleihsystem-TTF | 39179f9ac5b07f5106e555f82f3c9011d33805bd | [
"MIT"
] | 60 | 2018-06-12T14:46:50.000Z | 2020-11-16T00:50:37.000Z | total_tolles_ferleihsystem/auth_providers/ldap_auth_provider.py | FIUS/ttf-backend | 39179f9ac5b07f5106e555f82f3c9011d33805bd | [
"MIT"
] | 1 | 2019-12-02T19:25:59.000Z | 2019-12-02T19:25:59.000Z | """
Auth Providers which provides LDAP login
"""
from typing import List, Dict
from ldap3 import Connection, Server, AUTO_BIND_TLS_BEFORE_BIND, SUBTREE
from ldap3.core.exceptions import LDAPSocketOpenError, LDAPBindError
from ..login import LoginProvider
from .. import APP, AUTH_LOGGER
| 47.46 | 118 | 0.61975 |
c247338889dd4aef3193b428e74aac5424652e3f | 4,117 | py | Python | md2html.py | osfans/yancheng | 1f5cec75c8d97006f8b2ee4b1b36b7dc78930ef0 | [
"Apache-2.0"
] | 4 | 2017-01-26T03:25:24.000Z | 2019-04-15T14:11:46.000Z | md2html.py | osfans/yancheng | 1f5cec75c8d97006f8b2ee4b1b36b7dc78930ef0 | [
"Apache-2.0"
] | 1 | 2016-12-02T04:26:31.000Z | 2016-12-05T05:02:39.000Z | md2html.py | osfans/xu | 1f5cec75c8d97006f8b2ee4b1b36b7dc78930ef0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import re, os, glob
template = """
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<style>
body {
font-family: PMingLiu, HanaMinA, HanaMinB, Helvetica, arial, sans-serif;
writing-mode: vertical-rl... | 24.360947 | 120 | 0.459072 |
c2478e02ca506e0323d992197336faa1570d5c97 | 2,460 | py | Python | plugin_hide_run_panel/__init__.py | Holt59/modorganizer-python_plugins | f3404b1c3d9b8f5a6aa2133b47f7fc0218c18dc9 | [
"MIT"
] | null | null | null | plugin_hide_run_panel/__init__.py | Holt59/modorganizer-python_plugins | f3404b1c3d9b8f5a6aa2133b47f7fc0218c18dc9 | [
"MIT"
] | null | null | null | plugin_hide_run_panel/__init__.py | Holt59/modorganizer-python_plugins | f3404b1c3d9b8f5a6aa2133b47f7fc0218c18dc9 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
from PyQt5.QtCore import QCoreApplication
from PyQt5.QtWidgets import QMainWindow, QFrame
import mobase
| 31.948052 | 85 | 0.660976 |
c24ab458d07762596a9a0b958ea5ceac2489021a | 164 | py | Python | nnet/learning_rate_func/__init__.py | zhaoyan1117/NeuralNet | a0343dd469e981bf9b4f18db0209ca9bfaf58c4f | [
"BSD-2-Clause"
] | null | null | null | nnet/learning_rate_func/__init__.py | zhaoyan1117/NeuralNet | a0343dd469e981bf9b4f18db0209ca9bfaf58c4f | [
"BSD-2-Clause"
] | null | null | null | nnet/learning_rate_func/__init__.py | zhaoyan1117/NeuralNet | a0343dd469e981bf9b4f18db0209ca9bfaf58c4f | [
"BSD-2-Clause"
] | null | null | null | from ._inv_prop_lr import InvPropLR
from ._constant_lr import ConstantLR
from ._step_size_lr import StepSizeLR
from ._dynamic_step_size_lr import DynamicStepSizeLR
| 32.8 | 52 | 0.878049 |
c24d4c5a8f9125c9ef834c785c10d1d380869f30 | 8,645 | py | Python | src/utils/strava.py | adrigrillo/endomondo-strava-migrator | 398ff4a0db4a8a5a3a4f0d8fb53157ffeeb88079 | [
"MIT"
] | 2 | 2020-12-08T20:51:38.000Z | 2021-01-03T20:42:10.000Z | src/utils/strava.py | adrigrillo/endomondo-strava-migrator | 398ff4a0db4a8a5a3a4f0d8fb53157ffeeb88079 | [
"MIT"
] | 1 | 2020-12-08T21:09:50.000Z | 2020-12-08T21:30:35.000Z | src/utils/strava.py | adrigrillo/endomondo-strava-migrator | 398ff4a0db4a8a5a3a4f0d8fb53157ffeeb88079 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
utils/strava.py
=================
Utility class to Strava API
"""
import json
import time
from configparser import ConfigParser, NoOptionError
from datetime import datetime
from pathlib import Path
from typing import Tuple
from loguru import logger
from stravalib import Client, exc
from ut... | 36.020833 | 99 | 0.65587 |
df9a160281e97721997326dd0b0903a52cd73273 | 5,293 | py | Python | train_synthText.py | skyatmoon/Detailed-Handwriting-detection | 1eb7ba8087290cbdd3fbc2c092fbdbc2b715fc9c | [
"MIT"
] | 1 | 2020-12-08T01:24:34.000Z | 2020-12-08T01:24:34.000Z | train_synthText.py | skyatmoon/Detailed-Handwriting-detection | 1eb7ba8087290cbdd3fbc2c092fbdbc2b715fc9c | [
"MIT"
] | null | null | null | train_synthText.py | skyatmoon/Detailed-Handwriting-detection | 1eb7ba8087290cbdd3fbc2c092fbdbc2b715fc9c | [
"MIT"
] | null | null | null | """
Author: brooklyn
train with synthText
"""
import torch
import torch.nn as nn
import torch.optim as optim
import torchvision.transforms as transforms
import os
from net.craft import CRAFT
import sys
from utils.cal_loss import cal_synthText_loss
from dataset.synthDataset import SynthDataset
import argparse
from eval... | 37.807143 | 128 | 0.642736 |
df9b4ebedd02514962424a1cc0a1b5aae502b670 | 1,896 | py | Python | friendcircle/models.py | jossafossa/Project24_backend | bb5cc91d21c9f93034b85b3e94e829f7ab33c565 | [
"MIT"
] | null | null | null | friendcircle/models.py | jossafossa/Project24_backend | bb5cc91d21c9f93034b85b3e94e829f7ab33c565 | [
"MIT"
] | 9 | 2019-12-04T23:15:59.000Z | 2022-02-10T09:08:38.000Z | friendcircle/models.py | jossafossa/Project24_backend | bb5cc91d21c9f93034b85b3e94e829f7ab33c565 | [
"MIT"
] | null | null | null | from django.db import models
# Keeps track of FriendCircle memberships
MATCH_STATUS = (
('O', 'Not swiped',),
('V', 'Swiped Right',),
('X', 'Swiped Left',),
)
# Keeps track of matches. If both parties swiped right, the user can be added to FriendCircleMembership
| 35.773585 | 103 | 0.68038 |
df9d6d03fbed45db8f46a22336474ebb4831783c | 474 | py | Python | components/collector/tests/source_collectors/jira/test_issues.py | m-zakeri/quality-time | 531931f0d8d4f5d262ea98445868158e41d268da | [
"Apache-2.0"
] | null | null | null | components/collector/tests/source_collectors/jira/test_issues.py | m-zakeri/quality-time | 531931f0d8d4f5d262ea98445868158e41d268da | [
"Apache-2.0"
] | null | null | null | components/collector/tests/source_collectors/jira/test_issues.py | m-zakeri/quality-time | 531931f0d8d4f5d262ea98445868158e41d268da | [
"Apache-2.0"
] | null | null | null | """Unit tests for the Jira issues collector."""
from .base import JiraTestCase
| 29.625 | 78 | 0.679325 |
df9e429f72ebf0471ad51a2d2296ecb2934b944d | 1,485 | py | Python | cf_xarray/tests/test_coding.py | rcaneill/cf-xarray | 210e997ab5e550e411ec1a4e789aac28e77bacff | [
"Apache-2.0"
] | null | null | null | cf_xarray/tests/test_coding.py | rcaneill/cf-xarray | 210e997ab5e550e411ec1a4e789aac28e77bacff | [
"Apache-2.0"
] | null | null | null | cf_xarray/tests/test_coding.py | rcaneill/cf-xarray | 210e997ab5e550e411ec1a4e789aac28e77bacff | [
"Apache-2.0"
] | null | null | null | import numpy as np
import pandas as pd
import pytest
import xarray as xr
import cf_xarray as cfxr
| 34.534884 | 80 | 0.60404 |
dfa1fd750ebe41f9f5e5dbc785b717257dc70d9d | 1,908 | py | Python | slack_bolt/adapter/socket_mode/base_handler.py | hirosassa/bolt-python | befc3a1463f3ac8dbb780d66decc304e2bdf3e7a | [
"MIT"
] | 504 | 2020-08-07T05:02:57.000Z | 2022-03-31T14:32:46.000Z | slack_bolt/adapter/socket_mode/base_handler.py | hirosassa/bolt-python | befc3a1463f3ac8dbb780d66decc304e2bdf3e7a | [
"MIT"
] | 560 | 2020-08-07T01:16:06.000Z | 2022-03-30T00:40:56.000Z | slack_bolt/adapter/socket_mode/base_handler.py | hirosassa/bolt-python | befc3a1463f3ac8dbb780d66decc304e2bdf3e7a | [
"MIT"
] | 150 | 2020-08-07T09:41:14.000Z | 2022-03-30T04:54:51.000Z | """The base class of Socket Mode client implementation.
If you want to build asyncio-based ones, use `AsyncBaseSocketModeHandler` instead.
"""
import logging
import signal
import sys
from threading import Event
from slack_sdk.socket_mode.client import BaseSocketModeClient
from slack_sdk.socket_mode.request import Sock... | 32.896552 | 101 | 0.678197 |
dfa2ba545c720071817fb0691cb4e7c5aad3c2a5 | 8,344 | py | Python | project/pfasst/transfer_tools.py | amit17133129/pyMG-2016 | b82a60811bb0a8b91d8793c47177a240221f9176 | [
"BSD-2-Clause"
] | 2 | 2016-04-04T15:20:50.000Z | 2020-08-01T19:28:55.000Z | project/pfasst/transfer_tools.py | amit17133129/pyMG-2016 | b82a60811bb0a8b91d8793c47177a240221f9176 | [
"BSD-2-Clause"
] | 1 | 2020-10-02T05:44:45.000Z | 2020-10-02T05:44:45.000Z | project/pfasst/transfer_tools.py | amit17133129/pyMG-2016 | b82a60811bb0a8b91d8793c47177a240221f9176 | [
"BSD-2-Clause"
] | 11 | 2016-03-26T18:37:06.000Z | 2020-10-01T19:44:55.000Z | # coding=utf-8
import numpy as np
import scipy.interpolate as intpl
import scipy.sparse as sprs
def to_sparse(D, format="csc"):
"""
Transform dense matrix to sparse matrix of return_type
bsr_matrix(arg1[, shape, dtype, copy, blocksize]) Block Sparse Row matrix
coo_matrix(arg1[, shape, dtype, ... | 36.920354 | 111 | 0.628715 |
dfa3a2fa2289a9c892b09c29ede2ebe39a3dd0c8 | 7,266 | py | Python | python/trees/rbtree_graphviz.py | rcanepa/cs-fundamentals | b362fc206417501e53a5739df1edf7568901eef8 | [
"MIT"
] | null | null | null | python/trees/rbtree_graphviz.py | rcanepa/cs-fundamentals | b362fc206417501e53a5739df1edf7568901eef8 | [
"MIT"
] | null | null | null | python/trees/rbtree_graphviz.py | rcanepa/cs-fundamentals | b362fc206417501e53a5739df1edf7568901eef8 | [
"MIT"
] | null | null | null | """rbtree_graphviz.py - create a graphviz representation of a LLRBT.
The purpose of this module is to visually show how the shape of a LLRBT
changes when keys are inserted in it. For every insert, sub graph (tree)
is added to the main graph.
`initialization_list` holds the values that are inserted in the tree.
This l... | 38.648936 | 100 | 0.597991 |
dfa5cb1adcaf33702f7f2c3cd145a0c36382a865 | 97 | py | Python | students/K33421/Samoshchenkov_Alexei/lr_2/hw_system/apps.py | Vivasus/ITMO_ICT_WebDevelopment_2020-2021 | 833d7ac1d40d9f7456a3c6b104a0e53c652d0035 | [
"MIT"
] | null | null | null | students/K33421/Samoshchenkov_Alexei/lr_2/hw_system/apps.py | Vivasus/ITMO_ICT_WebDevelopment_2020-2021 | 833d7ac1d40d9f7456a3c6b104a0e53c652d0035 | [
"MIT"
] | null | null | null | students/K33421/Samoshchenkov_Alexei/lr_2/hw_system/apps.py | Vivasus/ITMO_ICT_WebDevelopment_2020-2021 | 833d7ac1d40d9f7456a3c6b104a0e53c652d0035 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 16.166667 | 34 | 0.721649 |
dfa771b70b06ebdb06698f8a6ef450643663f3e9 | 5,721 | py | Python | azure_sftp_plugin/hooks/adls_gen2_hook.py | christo-olivier/airflow_azure_sftp_plugin | 1d483be6419744909af2fa940cd50880ed8d5890 | [
"Apache-2.0"
] | null | null | null | azure_sftp_plugin/hooks/adls_gen2_hook.py | christo-olivier/airflow_azure_sftp_plugin | 1d483be6419744909af2fa940cd50880ed8d5890 | [
"Apache-2.0"
] | null | null | null | azure_sftp_plugin/hooks/adls_gen2_hook.py | christo-olivier/airflow_azure_sftp_plugin | 1d483be6419744909af2fa940cd50880ed8d5890 | [
"Apache-2.0"
] | null | null | null | from pathlib import Path
from typing import Generator
from airflow.hooks.base_hook import BaseHook
from azure.storage.filedatalake import FileSystemClient
from azure.storage.filedatalake._generated.models._models_py3 import (
StorageErrorException,
)
| 39.729167 | 86 | 0.632582 |
dfa9f05edc79136d5654d284a464ccb459169f40 | 536 | py | Python | phr/ciudadano/migrations/0044_ciudadano_codigo_asegurado.py | richardqa/django-ex | e5b8585f28a97477150ac5daf5e55c74b70d87da | [
"CC0-1.0"
] | null | null | null | phr/ciudadano/migrations/0044_ciudadano_codigo_asegurado.py | richardqa/django-ex | e5b8585f28a97477150ac5daf5e55c74b70d87da | [
"CC0-1.0"
] | null | null | null | phr/ciudadano/migrations/0044_ciudadano_codigo_asegurado.py | richardqa/django-ex | e5b8585f28a97477150ac5daf5e55c74b70d87da | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-14 17:10
from __future__ import unicode_literals
from django.db import migrations, models
| 26.8 | 109 | 0.654851 |
dfad270ef93b37ed6df9bcf779f6cf41ac7ec78e | 2,499 | py | Python | graphtiny/service.py | Canicio/pyqtgraph-tiny | b88ebe8a2e6ad860ca4857b527adccbbde14851d | [
"MIT"
] | 1 | 2018-03-17T12:36:56.000Z | 2018-03-17T12:36:56.000Z | graphtiny/service.py | Canicio/pyqtgraph-tiny | b88ebe8a2e6ad860ca4857b527adccbbde14851d | [
"MIT"
] | 1 | 2017-08-08T18:31:31.000Z | 2017-08-08T18:31:31.000Z | graphtiny/service.py | Canicio/graphtiny | b88ebe8a2e6ad860ca4857b527adccbbde14851d | [
"MIT"
] | null | null | null | from time import sleep
import pyqtgraph as pg
import threading
from graphtiny.api import IChart, IDataStreamWindow
from graphtiny.domain import DataStreamWindow, Chart
| 34.232877 | 95 | 0.612645 |
dfad2ce40cf4b3e7c6bdab613bdf207aa9161bc1 | 2,576 | py | Python | backend/app/app/api/deps.py | totalhack/zillion-web | e567c04d3564aec8105d54533d318b79d943c9c6 | [
"MIT"
] | 3 | 2020-10-01T11:28:02.000Z | 2020-10-31T15:35:51.000Z | backend/app/app/api/deps.py | totalhack/zillion-web | e567c04d3564aec8105d54533d318b79d943c9c6 | [
"MIT"
] | 1 | 2022-02-09T04:19:20.000Z | 2022-02-09T13:56:40.000Z | backend/app/app/api/deps.py | totalhack/zillion-web | e567c04d3564aec8105d54533d318b79d943c9c6 | [
"MIT"
] | null | null | null | from typing import Generator, Dict, Any
from fastapi import Depends, HTTPException, status
from fastapi.security import OAuth2PasswordBearer
from jose import jwt
from pydantic import ValidationError
from sqlalchemy.orm import Session
from tlbx import json, pp
from zillion.configs import load_warehouse_config, zillion_... | 27.115789 | 77 | 0.69604 |
dfb0e4025d32f8743112eeea3ef16b5393035552 | 212 | py | Python | BufferStockModel/run.py | bbardoczy/ConsumptionSavingNotebooks | 91811f784ec61fe2f11f8c9e0e172d085574f57c | [
"MIT"
] | 1 | 2022-03-09T14:43:29.000Z | 2022-03-09T14:43:29.000Z | BufferStockModel/run.py | bbardoczy/ConsumptionSavingNotebooks | 91811f784ec61fe2f11f8c9e0e172d085574f57c | [
"MIT"
] | null | null | null | BufferStockModel/run.py | bbardoczy/ConsumptionSavingNotebooks | 91811f784ec61fe2f11f8c9e0e172d085574f57c | [
"MIT"
] | null | null | null | from BufferStockModel import BufferStockModelClass
updpar = dict()
updpar["Np"] = 1500
updpar["Nm"] = 1500
updpar["Na"] = 1500
model = BufferStockModelClass(name="baseline",solmethod="egm",**updpar)
model.test()
| 26.5 | 71 | 0.745283 |
dfb2125e655f351b14d7a2e313cfea92c5b3d51d | 4,629 | py | Python | pcie_bw.py | pcie-bench/pcie-model | 5bb1a71684c51f4bbbab2b9673c6bbc3dcf57b11 | [
"Apache-2.0"
] | 30 | 2018-12-05T22:02:26.000Z | 2022-03-13T17:09:51.000Z | pcie_bw.py | pcie-bench/pcie-model | 5bb1a71684c51f4bbbab2b9673c6bbc3dcf57b11 | [
"Apache-2.0"
] | null | null | null | pcie_bw.py | pcie-bench/pcie-model | 5bb1a71684c51f4bbbab2b9673c6bbc3dcf57b11 | [
"Apache-2.0"
] | 13 | 2018-12-28T14:31:48.000Z | 2022-02-25T11:24:36.000Z | #! /usr/bin/env python3
#
## Copyright (C) 2015-2018 Rolf Neugebauer. All rights reserved.
## Copyright (C) 2015 Netronome Systems, Inc. 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 co... | 38.575 | 80 | 0.534241 |
dfb68a5201db3b2abf55a2e729e1d1531d27950c | 77 | py | Python | src/buildercore/external.py | elifesciences/builder | 161829686f777f7ac7f97bd970395886ba5089c1 | [
"MIT"
] | 11 | 2017-03-01T18:00:30.000Z | 2021-12-10T05:11:02.000Z | src/buildercore/external.py | elifesciences/builder | 161829686f777f7ac7f97bd970395886ba5089c1 | [
"MIT"
] | 397 | 2016-07-08T14:39:46.000Z | 2022-03-30T12:45:09.000Z | src/buildercore/external.py | elifesciences/builder | 161829686f777f7ac7f97bd970395886ba5089c1 | [
"MIT"
] | 14 | 2016-07-13T08:33:28.000Z | 2020-04-22T21:42:21.000Z | import subprocess
| 15.4 | 39 | 0.779221 |
dfb696c1a314cee61ccd51a38771b72300f8407a | 648 | py | Python | Round 2/data_packing.py | kamyu104/GoogleCodeJam-2014 | ff29a677f502168eb0b92d6928ad6983d2622017 | [
"MIT"
] | 10 | 2016-04-10T22:50:54.000Z | 2021-04-17T18:17:02.000Z | Round 2/data_packing.py | kamyu104/GoogleCodeJam-2014 | ff29a677f502168eb0b92d6928ad6983d2622017 | [
"MIT"
] | null | null | null | Round 2/data_packing.py | kamyu104/GoogleCodeJam-2014 | ff29a677f502168eb0b92d6928ad6983d2622017 | [
"MIT"
] | 10 | 2016-07-19T08:43:38.000Z | 2021-07-22T22:38:44.000Z | # Copyright (c) 2021 kamyu. All rights reserved.
#
# Google Code Jam 2014 Round 2 - Problem A. Data Packing
# https://codingcompetitions.withgoogle.com/codejam/round/0000000000432fed/0000000000432b8d
#
# Time: O(NlogN)
# Space: O(1)
#
for case in xrange(input()):
print 'Case #%d: %s' % (case+1, data_packing())
| 24.923077 | 91 | 0.598765 |
dfb71ae9c49c8ec75050dd6031ca98dd54f66f9f | 18,950 | py | Python | BiModNeuroCNN/training/bimodal_classification.py | cfcooney/BiModNeuroCNN | f79da6150b4186bcbc15d876394f4af8a47076d0 | [
"MIT"
] | 4 | 2020-10-31T21:20:12.000Z | 2022-01-05T16:13:07.000Z | BiModNeuroCNN/training/bimodal_classification.py | cfcooney/BiModNeuroCNN | f79da6150b4186bcbc15d876394f4af8a47076d0 | [
"MIT"
] | null | null | null | BiModNeuroCNN/training/bimodal_classification.py | cfcooney/BiModNeuroCNN | f79da6150b4186bcbc15d876394f4af8a47076d0 | [
"MIT"
] | null | null | null | """
Description: Class for training CNNs using a nested cross-validation method. Train on the inner_fold to obtain
optimized hyperparameters. Train outer_fold to obtain classification performance.
"""
from braindecode.datautil.iterators import BalancedBatchSizeIterator
from braindecode.experiments.stopcriteria imp... | 57.95107 | 154 | 0.644063 |
dfb822e8f7cafa7cb423cc71ade94b740d42328b | 7,462 | py | Python | simple_task_repeater/str_app.py | lavrpetrov/simple-task-repeater | cd56ed52143ac31171fc757c6e1f7740bebe1ed4 | [
"MIT"
] | null | null | null | simple_task_repeater/str_app.py | lavrpetrov/simple-task-repeater | cd56ed52143ac31171fc757c6e1f7740bebe1ed4 | [
"MIT"
] | null | null | null | simple_task_repeater/str_app.py | lavrpetrov/simple-task-repeater | cd56ed52143ac31171fc757c6e1f7740bebe1ed4 | [
"MIT"
] | 1 | 2021-04-20T15:38:44.000Z | 2021-04-20T15:38:44.000Z | import datetime
from collections import Counter
from functools import wraps
from dateparser import parse as parse_date
from calmlib import get_current_date, get_current_datetime, to_date, trim
from .base import Task
from .str_database import STRDatabase
from .telegram_bot import TelegramBot, command, catch_errors
DE... | 32.163793 | 107 | 0.590592 |
dfb8674c6f7746d9692d1c11fcd1c8fdb24ebb98 | 258 | py | Python | Strings/conversion-operation.py | tverma332/python3 | 544c4ec9c726c37293c8da5799f50575cc50852d | [
"MIT"
] | 3 | 2022-03-28T09:10:08.000Z | 2022-03-29T10:47:56.000Z | Strings/conversion-operation.py | tverma332/python3 | 544c4ec9c726c37293c8da5799f50575cc50852d | [
"MIT"
] | 1 | 2022-03-27T11:52:58.000Z | 2022-03-27T11:52:58.000Z | Strings/conversion-operation.py | tverma332/python3 | 544c4ec9c726c37293c8da5799f50575cc50852d | [
"MIT"
] | null | null | null | # lower , title , upper operations on string
x = "spider"
y = "MAN"
v=x.upper() # all letters will become uppercase
w=y.lower() # all letters will become lowercase
z=y.title() # only first letter will become upper and rest of all lowercase
print(v,w,z)
| 19.846154 | 75 | 0.705426 |
dfb9067db6876e985a83eb3d9d6219b06ce32b30 | 1,197 | py | Python | setup.py | adadesions/sfcpy | d395218ae9f72fed378c30ad604923373b7fbf3f | [
"MIT"
] | 2 | 2019-08-28T19:30:32.000Z | 2020-03-28T16:17:01.000Z | setup.py | adadesions/sfcpy | d395218ae9f72fed378c30ad604923373b7fbf3f | [
"MIT"
] | 5 | 2021-03-18T22:53:57.000Z | 2022-03-11T23:42:38.000Z | setup.py | adadesions/sfcpy | d395218ae9f72fed378c30ad604923373b7fbf3f | [
"MIT"
] | null | null | null | """Setup script for sfcpy"""
import os.path
from setuptools import setup
# The directory containing this file
HERE = os.path.abspath(os.path.dirname(__file__))
# The text of the README file
with open(os.path.join(HERE, "README.md"), encoding='utf-8') as fid:
README = fid.read()
# This call to setup() does all t... | 29.925 | 73 | 0.652464 |
dfb94390c72e2b9eb210dfba78b3240cd00784e2 | 7,921 | py | Python | make_DigitalCommons_spreadsheet.py | lsulibraries/CWBR_DigitalCommons | 6eb994d08d6de088075cde82f6dc2b3aed15bdda | [
"Apache-2.0"
] | null | null | null | make_DigitalCommons_spreadsheet.py | lsulibraries/CWBR_DigitalCommons | 6eb994d08d6de088075cde82f6dc2b3aed15bdda | [
"Apache-2.0"
] | null | null | null | make_DigitalCommons_spreadsheet.py | lsulibraries/CWBR_DigitalCommons | 6eb994d08d6de088075cde82f6dc2b3aed15bdda | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import csv
import os
from collections import namedtuple
import string
from nameparser import HumanName
if __name__ == '__main__':
issues_dict = csv_to_dict('3rdStageSourceCSVs/Interviews.csv')
make_csv_data(issues_dict)
| 36.004545 | 112 | 0.550562 |
dfb9a74f5e09588db5c20e479a0c85f0735ce76b | 7,524 | py | Python | pip_services3_redis/cache/RedisCache.py | pip-services-python/pip-services-redis-python | ecb2e667ab266af0274b0891a19e802cb256766a | [
"MIT"
] | null | null | null | pip_services3_redis/cache/RedisCache.py | pip-services-python/pip-services-redis-python | ecb2e667ab266af0274b0891a19e802cb256766a | [
"MIT"
] | null | null | null | pip_services3_redis/cache/RedisCache.py | pip-services-python/pip-services-redis-python | ecb2e667ab266af0274b0891a19e802cb256766a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from typing import Optional, Any
import redis
from pip_services3_commons.config import IConfigurable, ConfigParams
from pip_services3_commons.errors import ConfigException, InvalidStateException
from pip_services3_commons.refer import IReferenceable, IReferences
from pip_services3_commons.run i... | 37.064039 | 158 | 0.636895 |
dfbade8328cd7332030b49fd40ed470582f05c91 | 7,392 | py | Python | main/model/property.py | lipis/gae-init-magic | 6b1e0b50f8e5200cb2dacebca9ac65e796b241a9 | [
"MIT"
] | 1 | 2018-10-26T13:33:20.000Z | 2018-10-26T13:33:20.000Z | main/model/property.py | lipis/gae-init-magic | 6b1e0b50f8e5200cb2dacebca9ac65e796b241a9 | [
"MIT"
] | 652 | 2018-10-26T12:28:08.000Z | 2021-08-02T09:13:48.000Z | main/model/property.py | lipis/gae-init-magic | 6b1e0b50f8e5200cb2dacebca9ac65e796b241a9 | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import absolute_import
from google.appengine.ext import ndb
from api import fields
import model
import util
FIELDS = {
'auto_now': fields.Boolean,
'auto_now_add': fields.Boolean,
'autofocus': fields.Boolean,
'choices': fields.String,
'default': fields... | 38.701571 | 123 | 0.652056 |
dfbc302b59b318fa83066ffc6aa91c4caa2533da | 1,189 | py | Python | tests/test_request.py | pauleveritt/wired_components | a9072d5fc48680d5ff895887842ffd0f06bc0081 | [
"MIT"
] | 1 | 2019-09-15T12:30:44.000Z | 2019-09-15T12:30:44.000Z | tests/test_request.py | pauleveritt/wired_components | a9072d5fc48680d5ff895887842ffd0f06bc0081 | [
"MIT"
] | null | null | null | tests/test_request.py | pauleveritt/wired_components | a9072d5fc48680d5ff895887842ffd0f06bc0081 | [
"MIT"
] | null | null | null | import pytest
from wired import ServiceContainer
| 31.289474 | 69 | 0.764508 |
dfbd03cf9bf0d42acbc4621a1653916d133bdb8e | 958 | py | Python | Charts and Graphs/LollipopCharts.py | aprakash7/Buildyourown | 58f0530ea84bf9e91f258d947610ea1e93d7d456 | [
"MIT"
] | null | null | null | Charts and Graphs/LollipopCharts.py | aprakash7/Buildyourown | 58f0530ea84bf9e91f258d947610ea1e93d7d456 | [
"MIT"
] | null | null | null | Charts and Graphs/LollipopCharts.py | aprakash7/Buildyourown | 58f0530ea84bf9e91f258d947610ea1e93d7d456 | [
"MIT"
] | 1 | 2021-05-31T04:20:54.000Z | 2021-05-31T04:20:54.000Z | # -*- coding: utf-8 -*-
"""
Created on Mon May 17 21:24:53 2021
@author: Akshay Prakash
"""
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
table = pd.read_csv(r'\1617table.csv')
table.head()
plt.hlines(y= np.arange(1, 21), xmin = 0, xmax = table['Pts'], color = 'skyblue')
plt.p... | 30.903226 | 84 | 0.583507 |
dfbf2ca5c949daa624f3881dc6dcb4567701067b | 1,126 | py | Python | python/merge-kml-files/merge-kml-files.py | bmaupin/graveyard | 71d52fe6589ce13dfe7433906d1aa50df48c9f94 | [
"MIT"
] | 1 | 2019-11-23T10:44:58.000Z | 2019-11-23T10:44:58.000Z | python/merge-kml-files/merge-kml-files.py | bmaupin/graveyard | 71d52fe6589ce13dfe7433906d1aa50df48c9f94 | [
"MIT"
] | 8 | 2020-07-16T07:14:12.000Z | 2020-10-14T17:25:33.000Z | python/merge-kml-files/merge-kml-files.py | bmaupin/graveyard | 71d52fe6589ce13dfe7433906d1aa50df48c9f94 | [
"MIT"
] | 1 | 2019-11-23T10:45:00.000Z | 2019-11-23T10:45:00.000Z | #!/usr/bin/env python
import sys
import lxml.etree
if __name__ == '__main__':
main()
| 31.277778 | 79 | 0.599467 |
dfbf59c5b26596753447f4f968efc9068d24fa0b | 3,829 | py | Python | tccli/services/partners/v20180321/help.py | tarnover/tencentcloud-cli | 5b0537913a33884a20d7663405a8aa1c2276b41a | [
"Apache-2.0"
] | null | null | null | tccli/services/partners/v20180321/help.py | tarnover/tencentcloud-cli | 5b0537913a33884a20d7663405a8aa1c2276b41a | [
"Apache-2.0"
] | null | null | null | tccli/services/partners/v20180321/help.py | tarnover/tencentcloud-cli | 5b0537913a33884a20d7663405a8aa1c2276b41a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
DESC = "partners-2018-03-21"
INFO = {
"AgentPayDeals": {
"params": [
{
"name": "OwnerUin",
"desc": "uin"
},
{
"name": "AgentPay",
"desc": "10"
},
{
"name": "DealNames",
"desc": ""
}
],
"desc": "/"
... | 19.049751 | 68 | 0.404022 |
dfbfef0fe41686291ae36ae72197b63006cb0f9c | 83,387 | py | Python | src/main/python/lib/default/__init__.py | emilybache/texttest-runner | 2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a | [
"MIT"
] | null | null | null | src/main/python/lib/default/__init__.py | emilybache/texttest-runner | 2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a | [
"MIT"
] | null | null | null | src/main/python/lib/default/__init__.py | emilybache/texttest-runner | 2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a | [
"MIT"
] | null | null | null |
""" The default configuration, from which all others should be derived """
import os, plugins, sandbox, console, rundependent, comparetest, batch, performance, subprocess, operator, logging
from copy import copy
from string import Template
from fnmatch import fnmatch
from threading import Thread
# For back-compatibi... | 52.876982 | 316 | 0.651193 |
dfc3450cc6a455bca7329de3130cbc552b8baa62 | 747 | py | Python | 2019/10 October/dp10302019.py | vishrutkmr7/DailyPracticeProblemsDIP | d1bfbc75f2024736c22c05385f753a90ddcfa0f5 | [
"MIT"
] | 5 | 2019-08-06T02:34:41.000Z | 2022-01-08T03:03:16.000Z | 2019/10 October/dp10302019.py | ourangzeb/DailyPracticeProblemsDIP | 66c07af88754e5d59b243e3ee9f02db69f7c0a77 | [
"MIT"
] | 15 | 2021-06-01T14:04:16.000Z | 2022-03-08T21:17:22.000Z | 2019/10 October/dp10302019.py | ourangzeb/DailyPracticeProblemsDIP | 66c07af88754e5d59b243e3ee9f02db69f7c0a77 | [
"MIT"
] | 4 | 2019-09-19T20:00:05.000Z | 2021-08-16T11:31:51.000Z | # This problem was recently asked by LinkedIn:
# Given a non-empty array where each element represents a digit of a non-negative integer, add one to the integer.
# The most significant digit is at the front of the array and each element in the array contains only one digit.
# Furthermore, the integer does not have lea... | 28.730769 | 114 | 0.619813 |
dfc40c993839966190091cb6ae4333cb9d7b2cc3 | 1,122 | py | Python | kbr/run_utils.py | brugger/kbr-tools | 95c8f8274e28b986e7fd91c8404026433488c940 | [
"MIT"
] | 1 | 2021-02-02T09:47:40.000Z | 2021-02-02T09:47:40.000Z | kbr/run_utils.py | brugger/kbr-tools | 95c8f8274e28b986e7fd91c8404026433488c940 | [
"MIT"
] | 1 | 2021-08-04T13:00:00.000Z | 2021-08-04T13:00:00.000Z | kbr/run_utils.py | brugger/kbr-tools | 95c8f8274e28b986e7fd91c8404026433488c940 | [
"MIT"
] | null | null | null | import subprocess
import sys
import os
| 23.375 | 123 | 0.632799 |
dfc40d4989f8ef494b36888ba91588827d76ffc5 | 2,614 | py | Python | tests/client/test_files.py | philopon/datapane | d7d69865d4def0cbe6eb334acd9edeb829dd67e6 | [
"Apache-2.0"
] | 481 | 2020-04-25T05:40:21.000Z | 2022-03-30T22:04:35.000Z | tests/client/test_files.py | tig/datapane | defae6776e73b07191c0a5804a50b284ec3c9a63 | [
"Apache-2.0"
] | 74 | 2020-04-28T10:47:35.000Z | 2022-03-14T15:50:55.000Z | tests/client/test_files.py | admariner/datapane | c440eaf07bd1c1f2de3ff952e0fd8c78d636aa8f | [
"Apache-2.0"
] | 41 | 2020-07-21T16:30:21.000Z | 2022-02-21T22:50:27.000Z | from pathlib import Path
import altair as alt
import folium
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import plotly.graph_objects as p_go
import pytest
from bokeh.layouts import column
from bokeh.models import ColumnDataSource
from bokeh.plotting import figure
from pandas.io.formats.style ... | 26.948454 | 121 | 0.694721 |
dfc53823fb3adccd40e9762c665f5bb3deecbf27 | 95 | py | Python | instance/config.py | antomuli/News_Highlight | 9feb33c0a32fa78cd93f5ab2c74942a8ca281701 | [
"Unlicense"
] | 2 | 2020-03-23T23:16:51.000Z | 2020-04-26T21:15:11.000Z | instance/config.py | antomuli/News_Highlight | 9feb33c0a32fa78cd93f5ab2c74942a8ca281701 | [
"Unlicense"
] | null | null | null | instance/config.py | antomuli/News_Highlight | 9feb33c0a32fa78cd93f5ab2c74942a8ca281701 | [
"Unlicense"
] | null | null | null | NEWS_API_KEY= '138b22df68394ecbaa9c9af0d0377adb'
SECRET_KEY= 'f9bf78b9a18ce6d46a0cd2b0b86df9da' | 47.5 | 48 | 0.905263 |
dfc5ea1ec35f681b24bc22174c17b45b8de95235 | 1,417 | py | Python | twirp/logging.py | batchar2/twirpy | e5940a2a038926844098def09748953287071747 | [
"Unlicense"
] | 51 | 2020-05-23T22:31:53.000Z | 2022-03-08T19:14:04.000Z | twirp/logging.py | batchar2/twirpy | e5940a2a038926844098def09748953287071747 | [
"Unlicense"
] | 20 | 2020-05-15T10:20:38.000Z | 2022-02-06T23:21:56.000Z | twirp/logging.py | batchar2/twirpy | e5940a2a038926844098def09748953287071747 | [
"Unlicense"
] | 10 | 2020-05-29T09:55:49.000Z | 2021-10-16T00:14:04.000Z | import os
import logging
import sys
import structlog
from structlog.stdlib import LoggerFactory, add_log_level
_configured = False
def configure(force = False):
"""
Configures logging & structlog modules
Keyword Arguments:
force: Force to reconfigure logging.
"""
global _configured
if ... | 22.140625 | 57 | 0.628088 |
dfc68640fe94c25498745f6373d4a8f15e6f9a5f | 878 | py | Python | setup.py | Arkq/pyexec | ec90b0aaff80996155d033bd722ff59c9259460e | [
"MIT"
] | null | null | null | setup.py | Arkq/pyexec | ec90b0aaff80996155d033bd722ff59c9259460e | [
"MIT"
] | null | null | null | setup.py | Arkq/pyexec | ec90b0aaff80996155d033bd722ff59c9259460e | [
"MIT"
] | null | null | null | # setup.py
# Copyright (c) 2015-2017 Arkadiusz Bokowy
#
# This file is a part of pyexec.
#
# This project is licensed under the terms of the MIT license.
from setuptools import setup
import pyexec
with open("README.rst") as f:
long_description = f.read()
setup(
name="pyexec",
version=pyexec.__version__... | 25.085714 | 62 | 0.654897 |
dfc68f46a49d56c4e9d2e4ea5761354ae3746b5b | 323 | py | Python | tests/func_eqconstr.py | andyjost/Sprite | 7ecd6fc7d48d7f62da644e48c12c7b882e1a2929 | [
"MIT"
] | 1 | 2022-03-16T16:37:11.000Z | 2022-03-16T16:37:11.000Z | tests/func_eqconstr.py | andyjost/Sprite | 7ecd6fc7d48d7f62da644e48c12c7b882e1a2929 | [
"MIT"
] | null | null | null | tests/func_eqconstr.py | andyjost/Sprite | 7ecd6fc7d48d7f62da644e48c12c7b882e1a2929 | [
"MIT"
] | null | null | null | '''Functional tests for the equational constraint.'''
import cytest # from ./lib; must be first
| 32.3 | 96 | 0.693498 |
dfc7144f2268699316911b76b5597b6509452a54 | 4,898 | py | Python | data-sources/kbr/authority-persons-marc-to-csv.py | kbrbe/beltrans-data-integration | 951ae3941b22a6fe0a8d30079bdf6f4f0a55f092 | [
"MIT"
] | null | null | null | data-sources/kbr/authority-persons-marc-to-csv.py | kbrbe/beltrans-data-integration | 951ae3941b22a6fe0a8d30079bdf6f4f0a55f092 | [
"MIT"
] | 21 | 2022-02-14T10:58:52.000Z | 2022-03-28T14:04:40.000Z | data-sources/kbr/authority-persons-marc-to-csv.py | kbrbe/beltrans-data-integration | 951ae3941b22a6fe0a8d30079bdf6f4f0a55f092 | [
"MIT"
] | null | null | null | #
# (c) 2022 Sven Lieber
# KBR Brussels
#
#import xml.etree.ElementTree as ET
import lxml.etree as ET
import os
import json
import itertools
import enchant
import hashlib
import csv
from optparse import OptionParser
import utils
import stdnum
NS_MARCSLIM = 'http://www.loc.gov/MARC21/slim'
ALL_NS = {'marc': NS_MARCSLI... | 43.732143 | 186 | 0.682115 |
dfc7e5a8bbc57e53f20590d631fe2b87c31a1671 | 3,886 | py | Python | promoterz/evaluationPool.py | emillj/gekkoJaponicus | d77c8c7a303b97a3643eb3f3c8b995b8b393f3f7 | [
"MIT"
] | null | null | null | promoterz/evaluationPool.py | emillj/gekkoJaponicus | d77c8c7a303b97a3643eb3f3c8b995b8b393f3f7 | [
"MIT"
] | null | null | null | promoterz/evaluationPool.py | emillj/gekkoJaponicus | d77c8c7a303b97a3643eb3f3c8b995b8b393f3f7 | [
"MIT"
] | 1 | 2021-11-29T20:18:25.000Z | 2021-11-29T20:18:25.000Z | #!/bin/python
import time
import random
from multiprocessing import Pool, Process, Pipe, TimeoutError
from multiprocessing.pool import ThreadPool
| 33.213675 | 97 | 0.587494 |
dfc9bea7af7becf02c3cd0e4f00d6640fee9f247 | 3,001 | py | Python | website/drawquest/apps/following/models.py | bopopescu/drawquest-web | 8d8f9149b6efeb65202809a5f8916386f58a1b3b | [
"BSD-3-Clause"
] | 19 | 2015-11-10T17:36:20.000Z | 2021-04-12T07:36:00.000Z | website/drawquest/apps/following/models.py | bopopescu/drawquest-web | 8d8f9149b6efeb65202809a5f8916386f58a1b3b | [
"BSD-3-Clause"
] | 1 | 2021-06-09T03:45:34.000Z | 2021-06-09T03:45:34.000Z | website/drawquest/apps/following/models.py | bopopescu/drawquest-web | 8d8f9149b6efeb65202809a5f8916386f58a1b3b | [
"BSD-3-Clause"
] | 6 | 2015-11-11T00:38:38.000Z | 2020-07-25T20:10:08.000Z | from canvas.cache_patterns import CachedCall
from drawquest import knobs
from drawquest.apps.drawquest_auth.models import User
from drawquest.apps.drawquest_auth.details_models import UserDetails
from drawquest.pagination import FakePaginator
def _paginate(redis_obj, offset, request=None):
'''
items should al... | 34.102273 | 92 | 0.65978 |
dfcaf8188821bfe0448579c92b86161cf07a8cb5 | 3,674 | py | Python | Python 3/PyGame/Matrix_based_3D/entities.py | DarkShadow4/python | 4cd94e0cf53ee06c9c31e9272572ca9656697c30 | [
"MIT"
] | null | null | null | Python 3/PyGame/Matrix_based_3D/entities.py | DarkShadow4/python | 4cd94e0cf53ee06c9c31e9272572ca9656697c30 | [
"MIT"
] | null | null | null | Python 3/PyGame/Matrix_based_3D/entities.py | DarkShadow4/python | 4cd94e0cf53ee06c9c31e9272572ca9656697c30 | [
"MIT"
] | 1 | 2020-08-19T17:25:22.000Z | 2020-08-19T17:25:22.000Z | import numpy as np
| 33.099099 | 106 | 0.459717 |
dfcb6f77810c69d9413f60d8f54a4f595fd87395 | 65 | py | Python | pytreearray/multiply.py | PhilipVinc/netket_dynamics | 6e8009098c279271cb0f289ba9e85c039bb284e4 | [
"Apache-2.0"
] | 2 | 2021-10-02T20:29:44.000Z | 2021-10-02T20:38:28.000Z | pytreearray/multiply.py | PhilipVinc/netket_dynamics | 6e8009098c279271cb0f289ba9e85c039bb284e4 | [
"Apache-2.0"
] | 11 | 2021-10-01T09:15:06.000Z | 2022-03-21T09:19:23.000Z | pytreearray/multiply.py | PhilipVinc/netket_dynamics | 6e8009098c279271cb0f289ba9e85c039bb284e4 | [
"Apache-2.0"
] | null | null | null | from ._src.multiply import multiply_outer as outer # noqa: F401
| 32.5 | 64 | 0.784615 |
dfcda9e0f1ad0a543490dfbdc63f6f36b102ec00 | 1,258 | py | Python | setup.py | utix/django-json-api | 938f78f664a4ecbabb9e678595926d1a580f9d0c | [
"MIT"
] | 7 | 2021-02-26T14:35:17.000Z | 2021-02-26T21:21:58.000Z | setup.py | utix/django-json-api | 938f78f664a4ecbabb9e678595926d1a580f9d0c | [
"MIT"
] | 7 | 2021-02-26T14:44:30.000Z | 2021-06-02T14:27:17.000Z | setup.py | utix/django-json-api | 938f78f664a4ecbabb9e678595926d1a580f9d0c | [
"MIT"
] | 1 | 2021-02-26T20:10:42.000Z | 2021-02-26T20:10:42.000Z | #!/usr/bin/env python
from os.path import join
from setuptools import find_packages, setup
# DEPENDENCIES
core_deps = requirements_from_pip("requirements.txt")
dev_deps = requirements_from_pip("requirements_dev.txt")
# DESCRIPTION
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.rea... | 29.952381 | 90 | 0.692369 |
dfcf9bc6b50b9274d2e45ff7e0b6d1af9920cab0 | 1,632 | py | Python | youtube_dl/extractor/businessinsider.py | MOODesign/Youtube-videos-Download | 730c0d12a06f349907481570f1f2890251f7a181 | [
"Unlicense"
] | 16 | 2020-12-01T15:26:58.000Z | 2022-02-24T23:12:14.000Z | youtube_dl/extractor/businessinsider.py | MOODesign/Youtube-videos-Download | 730c0d12a06f349907481570f1f2890251f7a181 | [
"Unlicense"
] | 5 | 2021-02-20T10:30:00.000Z | 2021-06-01T21:12:31.000Z | youtube_dl/extractor/businessinsider.py | MOODesign/Youtube-videos-Download | 730c0d12a06f349907481570f1f2890251f7a181 | [
"Unlicense"
] | 7 | 2020-12-01T15:27:04.000Z | 2022-01-09T23:21:53.000Z | # coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
from .jwplatform import JWPlatformIE
| 37.953488 | 112 | 0.571078 |
dfcfb445e47c75ccbf0dd0f1527b09b9571a8702 | 578 | py | Python | map_house.py | renankalfa/python-0-ao-Data_Scientist | 2f61e1cbb1c5565da53cc1cd9aa5c3f5d1cacc88 | [
"MIT"
] | 1 | 2022-03-27T23:55:37.000Z | 2022-03-27T23:55:37.000Z | map_house.py | renankalfa/python-0-ao-Data_Scientist | 2f61e1cbb1c5565da53cc1cd9aa5c3f5d1cacc88 | [
"MIT"
] | null | null | null | map_house.py | renankalfa/python-0-ao-Data_Scientist | 2f61e1cbb1c5565da53cc1cd9aa5c3f5d1cacc88 | [
"MIT"
] | null | null | null | import plotly.express as px
import pandas as pd
data = pd.read_csv('kc_house_data.csv')
data_mapa = data[['id', 'lat', 'long', 'price']]
grafico1 = px.scatter_mapbox(data_mapa, lat='lat', lon='long',
hover_name='id', hover_data=['price'],
color_discrete_sequen... | 36.125 | 75 | 0.610727 |