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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f249ee34b1745d4a243c396362c75f872d9af531 | 687 | py | Python | Software_Carpentry/Conway/test_conway.py | dgasmith/SICM2-Software-Summer-School-2014 | af97770cbade3bf4a246f21e607e8be66c9df7da | [
"MIT"
] | 2 | 2015-07-16T14:00:27.000Z | 2016-01-10T20:21:48.000Z | Software_Carpentry/Conway/test_conway.py | dgasmith/SICM2-Software-Summer-School-2014 | af97770cbade3bf4a246f21e607e8be66c9df7da | [
"MIT"
] | null | null | null | Software_Carpentry/Conway/test_conway.py | dgasmith/SICM2-Software-Summer-School-2014 | af97770cbade3bf4a246f21e607e8be66c9df7da | [
"MIT"
] | null | null | null | from conway import *
| 28.625 | 87 | 0.513828 |
f24a5dc578f63a0c2e113a798ce9969cd7ed080c | 5,426 | py | Python | app_backend/__init__.py | zhanghe06/bearing_project | 78a20fc321f72d3ae05c7ab7e52e01d02904e3fc | [
"MIT"
] | 1 | 2020-06-21T04:08:26.000Z | 2020-06-21T04:08:26.000Z | app_backend/__init__.py | zhanghe06/bearing_project | 78a20fc321f72d3ae05c7ab7e52e01d02904e3fc | [
"MIT"
] | 13 | 2019-10-18T17:19:32.000Z | 2022-01-13T00:44:43.000Z | app_backend/__init__.py | zhanghe06/bearing_project | 78a20fc321f72d3ae05c7ab7e52e01d02904e3fc | [
"MIT"
] | 5 | 2019-02-07T03:15:16.000Z | 2021-09-04T14:06:28.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: __init__.py
@time: 2018-03-06 00:00
"""
from __future__ import unicode_literals
import eventlet
eventlet.monkey_patch()
from logging.config import dictConfig
from config import current_config
from flask import Flask
from flask_... | 30.483146 | 86 | 0.838555 |
f24ac29d015f11200dad8879234dd7ab9c174313 | 2,003 | py | Python | N50.py | kstatebioinfo/stanford_swc | daa3f37bcbbe4a8a3cbe59a48b380603b9794634 | [
"CC0-1.0"
] | null | null | null | N50.py | kstatebioinfo/stanford_swc | daa3f37bcbbe4a8a3cbe59a48b380603b9794634 | [
"CC0-1.0"
] | null | null | null | N50.py | kstatebioinfo/stanford_swc | daa3f37bcbbe4a8a3cbe59a48b380603b9794634 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
##########################################################################
# USAGE: import N50
# help(N50)
# N50.main(~/stanford_swc/fasta-o-matic/fasta/normal.fa)
# DESCRIPTION: Function that calculates N50 for a FASTA file
# Created by Jennifer M Shelton
################################... | 34.534483 | 74 | 0.495756 |
f24b0ee4bbb24e050ab403a0d1e6bf087f8143ee | 34,017 | py | Python | ColDoc/latex.py | mennucc/ColDoc_project | 947a79592b689f57e59652b37868cc22e520f724 | [
"BSD-3-Clause"
] | null | null | null | ColDoc/latex.py | mennucc/ColDoc_project | 947a79592b689f57e59652b37868cc22e520f724 | [
"BSD-3-Clause"
] | null | null | null | ColDoc/latex.py | mennucc/ColDoc_project | 947a79592b689f57e59652b37868cc22e520f724 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
__all__ = ('main_by_args','latex_main','latex_uuid','latex_tree')
cmd_help="""
Command help:
blob
compile the blob(s) with --uuid=UUID,
tree
compile all the blobs starting from --uuid=UUID
main_public
compile the whole document, for the general public
... | 39.010321 | 135 | 0.587559 |
f24b88cb32a898b91b261cd705b2ad3fcd5d1287 | 2,950 | py | Python | extension/visualizer/generate_visualizer_header.py | AldoMyrtaj/duckdb | 3aa4978a2ceab8df25e4b20c388bcd7629de73ed | [
"MIT"
] | 2,816 | 2018-06-26T18:52:52.000Z | 2021-04-06T10:39:15.000Z | extension/visualizer/generate_visualizer_header.py | AldoMyrtaj/duckdb | 3aa4978a2ceab8df25e4b20c388bcd7629de73ed | [
"MIT"
] | 1,310 | 2021-04-06T16:04:52.000Z | 2022-03-31T13:52:53.000Z | extension/visualizer/generate_visualizer_header.py | AldoMyrtaj/duckdb | 3aa4978a2ceab8df25e4b20c388bcd7629de73ed | [
"MIT"
] | 270 | 2021-04-09T06:18:28.000Z | 2022-03-31T11:55:37.000Z | # this script generates visualizer header
import os
visualizer_dir = 'extension/visualizer'
visualizer_css = os.path.join(visualizer_dir, 'visualizer.css')
visualizer_d3 = os.path.join(visualizer_dir, 'd3.js')
visualizer_script = os.path.join(visualizer_dir, 'script.js')
visualizer_header = os.path.join(visualizer_dir... | 36.419753 | 92 | 0.737627 |
f24c7bebfc50062402e4f3d020937fffe8042def | 1,945 | py | Python | kivyx/uix/aspectratio.py | gottadiveintopython/kivyx.uix.aspectratio | e8b049fe76c9350b8c167ff1fb32299b8feceba7 | [
"MIT"
] | null | null | null | kivyx/uix/aspectratio.py | gottadiveintopython/kivyx.uix.aspectratio | e8b049fe76c9350b8c167ff1fb32299b8feceba7 | [
"MIT"
] | null | null | null | kivyx/uix/aspectratio.py | gottadiveintopython/kivyx.uix.aspectratio | e8b049fe76c9350b8c167ff1fb32299b8feceba7 | [
"MIT"
] | null | null | null | __all__ = ('KXAspectRatio', )
from kivy.uix.layout import Layout
from kivy.properties import BoundedNumericProperty, OptionProperty
HALIGN_TO_ATTR = {
'center': 'center_x',
'middle': 'center_x',
'left': 'x',
'right': 'right',
}
VALIGN_TO_ATTR = {
'center': 'center_y',
'middle': 'center_y',
... | 29.469697 | 68 | 0.5491 |
f24e4b499348b1e6839320b71759fce8e46d5cc8 | 4,006 | py | Python | src/analyze_img.py | IW276/IW276SS21-P13 | 851e220c34d55caa91f0967e02dc86c34deee2fa | [
"MIT"
] | null | null | null | src/analyze_img.py | IW276/IW276SS21-P13 | 851e220c34d55caa91f0967e02dc86c34deee2fa | [
"MIT"
] | null | null | null | src/analyze_img.py | IW276/IW276SS21-P13 | 851e220c34d55caa91f0967e02dc86c34deee2fa | [
"MIT"
] | null | null | null | import cv2
import numpy as np
from matplotlib import pyplot as plt
brightness = {"DARK": 0,
"NORMAL": 1,
"LIGHT": 2}
contrast = {"HIGH": 2,
"NORMAL": 1,
"LOW": 0}
| 30.120301 | 92 | 0.595856 |
f2503cce75279fee15a3fc46cd4a46df58314fef | 3,799 | py | Python | models/game/bots/RandoMaxBot.py | zachdj/ultimate-tic-tac-toe | b8e6128d9d19628f6f889a3958d30854527a8645 | [
"MIT"
] | null | null | null | models/game/bots/RandoMaxBot.py | zachdj/ultimate-tic-tac-toe | b8e6128d9d19628f6f889a3958d30854527a8645 | [
"MIT"
] | null | null | null | models/game/bots/RandoMaxBot.py | zachdj/ultimate-tic-tac-toe | b8e6128d9d19628f6f889a3958d30854527a8645 | [
"MIT"
] | null | null | null | import random
from models.game.bots.Bot import Bot
from models.game.Board import Board
| 36.528846 | 120 | 0.589102 |
f251f3a1ac391e245be08c921c85c8b349b00732 | 1,924 | py | Python | fineDinner.py | SMartQi/whose-treat | 85f1d27dfb2b728a33cf8b6fcd73213ca24edb0b | [
"MIT"
] | 1 | 2020-01-30T11:09:31.000Z | 2020-01-30T11:09:31.000Z | fineDinner.py | SMartQi/whose-treat | 85f1d27dfb2b728a33cf8b6fcd73213ca24edb0b | [
"MIT"
] | null | null | null | fineDinner.py | SMartQi/whose-treat | 85f1d27dfb2b728a33cf8b6fcd73213ca24edb0b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#-*- encoding:UTF-8 -*-
"""
Background:
JJ and MM want to have a fine dinner, celebrating their annual bonuses. They make this rule:
This dinner is on the person who gets more annual bonus. And the cost of the dinner is the diff of money they make mod 300, per capita.
Requirement:
Decide the mo... | 29.6 | 135 | 0.670478 |
f25714dd2e5fb95e7b87e1b330afecfe7458cf18 | 49 | py | Python | libs/pytvmaze/__init__.py | Sparklingx/nzbhydra | e2433e1155255ba37341cc79750b104e7dd8889a | [
"Apache-2.0"
] | 674 | 2015-11-06T04:22:47.000Z | 2022-02-26T17:31:43.000Z | libs/pytvmaze/__init__.py | Sparklingx/nzbhydra | e2433e1155255ba37341cc79750b104e7dd8889a | [
"Apache-2.0"
] | 713 | 2015-11-06T10:48:58.000Z | 2018-11-27T16:32:18.000Z | libs/pytvmaze/__init__.py | Sparklingx/nzbhydra | e2433e1155255ba37341cc79750b104e7dd8889a | [
"Apache-2.0"
] | 106 | 2015-12-07T11:21:06.000Z | 2022-03-11T10:58:41.000Z | #!/usr/bin/python
from pytvmaze.tvmaze import *
| 12.25 | 29 | 0.734694 |
f25ce39acdbb3d945528b6cb2be68ac5895f77bb | 1,241 | py | Python | backend/server.py | mugeshk97/billing-api | 3bf6899f62bee6db7870c3b6008a10c887eb3aa3 | [
"MIT"
] | null | null | null | backend/server.py | mugeshk97/billing-api | 3bf6899f62bee6db7870c3b6008a10c887eb3aa3 | [
"MIT"
] | null | null | null | backend/server.py | mugeshk97/billing-api | 3bf6899f62bee6db7870c3b6008a10c887eb3aa3 | [
"MIT"
] | null | null | null | from flask import Flask, request, jsonify
from connection import get_sql_connection
from product import get_all_products, insert_product, delete_product
import json
from flask_cors import CORS
app = Flask(__name__)
CORS(app)
cnx = get_sql_connection()
if __name__ == '__main__':
app.run(host= '0.0.0.0', port=505... | 29.547619 | 68 | 0.709106 |
f25fca280607b95bdb378b87fdab5966ef3e46d2 | 555 | py | Python | api/restaurant_helper_functions.py | daniellespencer/stfu-and-eat | cb82b364ba226dd61f11547720a20a132c1562f6 | [
"MIT"
] | 1 | 2020-05-15T01:36:59.000Z | 2020-05-15T01:36:59.000Z | api/restaurant_helper_functions.py | daniellespencer/stfu-and-eat | cb82b364ba226dd61f11547720a20a132c1562f6 | [
"MIT"
] | null | null | null | api/restaurant_helper_functions.py | daniellespencer/stfu-and-eat | cb82b364ba226dd61f11547720a20a132c1562f6 | [
"MIT"
] | 2 | 2020-05-15T01:31:37.000Z | 2020-05-20T00:04:41.000Z | import random
from api.config import restaurant_collection as restaurants | 26.428571 | 59 | 0.567568 |
f26337b1b3af5eb32cdd87718a2212d8a63d5996 | 6,187 | py | Python | nz_snow_tools/eval/brewster_calibration_TF.py | jonoconway/nz_snow_tools | 7002fb401fb48225260fada6fd5b5b7ca5ad1184 | [
"MIT"
] | 3 | 2020-09-01T07:53:05.000Z | 2021-02-02T20:28:37.000Z | nz_snow_tools/eval/brewster_calibration_TF.py | jonoconway/nz_snow_tools | 7002fb401fb48225260fada6fd5b5b7ca5ad1184 | [
"MIT"
] | null | null | null | nz_snow_tools/eval/brewster_calibration_TF.py | jonoconway/nz_snow_tools | 7002fb401fb48225260fada6fd5b5b7ca5ad1184 | [
"MIT"
] | null | null | null | """
code to call the snow model for a simple test case using brewster glacier data
"""
from __future__ import division
import numpy as np
import matplotlib.pylab as plt
import datetime as dt
from nz_snow_tools.util.utils import resample_to_fsca, nash_sut, mean_bias, rmsd, mean_absolute_error, coef_determ
seb_dat = np... | 38.66875 | 216 | 0.725715 |
f263d10e4b0315d66a52d4a47d9ce8cba72ce9a2 | 336 | py | Python | Task1F.py | momopmoXZ/1a-flood-coding | 13d2f6387e136f046b07a045eadfe654e9c2c27f | [
"MIT"
] | null | null | null | Task1F.py | momopmoXZ/1a-flood-coding | 13d2f6387e136f046b07a045eadfe654e9c2c27f | [
"MIT"
] | null | null | null | Task1F.py | momopmoXZ/1a-flood-coding | 13d2f6387e136f046b07a045eadfe654e9c2c27f | [
"MIT"
] | 1 | 2022-02-07T17:04:41.000Z | 2022-02-07T17:04:41.000Z | from floodsystem.stationdata import build_station_list
from floodsystem.station import inconsistent_typical_range_stations
stations = build_station_list()
incon_station=inconsistent_typical_range_stations(stations)
incon_names=[]
for station in incon_station:
incon_names.append(station.name)
incon_names.sort()
prin... | 33.6 | 67 | 0.863095 |
f263dc6e6df0ca9888bd8e9bcfdb5d8ed564b445 | 507 | py | Python | yaga_ga/evolutionary_algorithm/operators/base.py | alessandrolenzi/yaga | 872503ad04a2831135143750bc309188e5685284 | [
"MIT"
] | null | null | null | yaga_ga/evolutionary_algorithm/operators/base.py | alessandrolenzi/yaga | 872503ad04a2831135143750bc309188e5685284 | [
"MIT"
] | null | null | null | yaga_ga/evolutionary_algorithm/operators/base.py | alessandrolenzi/yaga | 872503ad04a2831135143750bc309188e5685284 | [
"MIT"
] | null | null | null | from typing import Generic, TypeVar
from typing_extensions import Final
from yaga_ga.evolutionary_algorithm.individuals import IndividualStructure
IndividualType = TypeVar("IndividualType")
GeneType = TypeVar("GeneType")
| 24.142857 | 81 | 0.792899 |
f2647ec6e2d3b985a5cc52948c24f37ae5751457 | 3,973 | py | Python | stimuli.py | lieke2020/workmate_match | 803f4e3b1fa62280cc0d6a7cd61eb80929dae918 | [
"MIT"
] | null | null | null | stimuli.py | lieke2020/workmate_match | 803f4e3b1fa62280cc0d6a7cd61eb80929dae918 | [
"MIT"
] | null | null | null | stimuli.py | lieke2020/workmate_match | 803f4e3b1fa62280cc0d6a7cd61eb80929dae918 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 1 13:21:44 2021
This file holds the stimuli that are used in the world to represent cues.
obs_time --> Stimulus representing time
match_cifar --> Natural scenes for phase 1 learning
obs_cifar --> Natural scenes for phase 2 learning
match_alp... | 37.838095 | 100 | 0.683614 |
f2661fcc769c20d3c2e052ada4cb40f950039d1a | 675 | py | Python | tallerestructurasselectivas/14.py | juandab07/Algoritmos-y-programacion | f3c10f5c4620b15432ecfe2b9f5831437a49ace9 | [
"MIT"
] | null | null | null | tallerestructurasselectivas/14.py | juandab07/Algoritmos-y-programacion | f3c10f5c4620b15432ecfe2b9f5831437a49ace9 | [
"MIT"
] | null | null | null | tallerestructurasselectivas/14.py | juandab07/Algoritmos-y-programacion | f3c10f5c4620b15432ecfe2b9f5831437a49ace9 | [
"MIT"
] | null | null | null | print('ingrese el monto a pagar en aseo urbano')
aseo=float(input())
print('ingrese el valor de lectura del mes anterior')
ant=float(input())
print('ingrese el valor de lectura del mes actual')
act=float(input())
cons=act-ant
if 0<cons<=100:
pago=cons*4600
print('debera pagar $',pago,'en luz electrica y',aseo,'... | 35.526316 | 75 | 0.694815 |
f2684fd08fdc8ebf74875458af9886f1554c5e7c | 1,040 | py | Python | meilisearch/tests/test_synonyms_meilisearch.py | jtmiclat/meilisearch-python | b6a48a62bb64ae58181550a0ddc793dcdc0a2b06 | [
"MIT"
] | null | null | null | meilisearch/tests/test_synonyms_meilisearch.py | jtmiclat/meilisearch-python | b6a48a62bb64ae58181550a0ddc793dcdc0a2b06 | [
"MIT"
] | null | null | null | meilisearch/tests/test_synonyms_meilisearch.py | jtmiclat/meilisearch-python | b6a48a62bb64ae58181550a0ddc793dcdc0a2b06 | [
"MIT"
] | null | null | null | import time
import meilisearch
from meilisearch.tests import BASE_URL, MASTER_KEY
| 28.888889 | 64 | 0.674038 |
f2689ab69abc970864477a6211da1d0af11f1927 | 168 | py | Python | main.py | dansoliveira/pasc-compiler | 642f2745395dcc5b4ebbdd1fa83169362f863e61 | [
"MIT"
] | null | null | null | main.py | dansoliveira/pasc-compiler | 642f2745395dcc5b4ebbdd1fa83169362f863e61 | [
"MIT"
] | 1 | 2018-05-10T13:03:04.000Z | 2018-05-10T13:03:04.000Z | main.py | dansoliveira/pasc-compiler | 642f2745395dcc5b4ebbdd1fa83169362f863e61 | [
"MIT"
] | null | null | null | from lexer import Lexer
from parser import Parser
if __name__ == "__main__":
lexer = Lexer("exemplos/teste2.pasc")
parser = Parser(lexer)
parser.executa() | 21 | 41 | 0.702381 |
f26a6e2aee87a0b97e130dc33aaab4654d6c6049 | 69 | py | Python | microdevices/connector/__init__.py | lmokto/microdevices | 75a129d1c32f64afe9027338c4be304322ded857 | [
"MIT"
] | null | null | null | microdevices/connector/__init__.py | lmokto/microdevices | 75a129d1c32f64afe9027338c4be304322ded857 | [
"MIT"
] | 1 | 2021-06-02T00:01:14.000Z | 2021-06-02T00:01:14.000Z | microdevices/connector/__init__.py | lmokto/microdevices | 75a129d1c32f64afe9027338c4be304322ded857 | [
"MIT"
] | null | null | null | from .mqtt import MQTTClient
from .sql import *
from .redis import *
| 17.25 | 28 | 0.753623 |
f26a8afeac7319e72d66512791f4976ac936a01f | 1,275 | py | Python | examples/1-marshmallow/server/resources/user/schema.py | FlyingBird95/openapi_generator | df4649b9723eb89fa370b02220356b7596794069 | [
"MIT"
] | 3 | 2022-01-10T12:43:36.000Z | 2022-01-13T18:08:15.000Z | examples/1-marshmallow/server/resources/user/schema.py | FlyingBird95/openapi_generator | df4649b9723eb89fa370b02220356b7596794069 | [
"MIT"
] | 6 | 2022-02-06T19:00:05.000Z | 2022-03-22T14:22:21.000Z | examples/1-marshmallow/server/resources/user/schema.py | FlyingBird95/openapi-builder | df4649b9723eb89fa370b02220356b7596794069 | [
"MIT"
] | 2 | 2021-12-17T17:26:06.000Z | 2021-12-17T17:39:00.000Z | from marshmallow import Schema, fields
| 19.615385 | 71 | 0.620392 |
f26cee0b9842c7bd2fa3f00e76d7e1a08850c951 | 450 | py | Python | coloredterm/__init__.py | hostedposted/coloredterm | 72d07a0bd12eb797e4b2772dfe45aca5234d27b6 | [
"MIT"
] | 1 | 2021-02-12T01:21:44.000Z | 2021-02-12T01:21:44.000Z | coloredterm/__init__.py | hostedposted/coloredterm | 72d07a0bd12eb797e4b2772dfe45aca5234d27b6 | [
"MIT"
] | 4 | 2021-07-07T04:09:58.000Z | 2022-02-03T04:05:30.000Z | coloredterm/__init__.py | hostedposted/coloredterm | 72d07a0bd12eb797e4b2772dfe45aca5234d27b6 | [
"MIT"
] | 1 | 2021-02-20T22:58:31.000Z | 2021-02-20T22:58:31.000Z | """Collection of tools for changing the text of your terminal."""
from coloredterm.coloredterm import (
Back,
bg,
colored,
colors,
cprint,
fg,
Fore,
names,
pattern_input,
pattern_print,
rand,
Style
)
__version__ = "0.1.9"
__all__ = [
'Back',
'bg',
'colored',
... | 14.516129 | 65 | 0.542222 |
f26e13939dbd7efae31817537aae9cd55a260550 | 1,706 | py | Python | src/export_as_csv.py | mustilica/tt-history | 1bb60cb81e97ef1abecf657cfa078798bb29cace | [
"MIT"
] | 26 | 2015-02-12T20:33:01.000Z | 2018-04-25T05:29:52.000Z | src/export_as_csv.py | mustilica/tt-history | 1bb60cb81e97ef1abecf657cfa078798bb29cace | [
"MIT"
] | 3 | 2019-11-27T18:19:23.000Z | 2020-11-26T08:53:13.000Z | src/export_as_csv.py | mustilica/tt-history | 1bb60cb81e97ef1abecf657cfa078798bb29cace | [
"MIT"
] | 8 | 2015-01-11T00:12:40.000Z | 2018-04-01T22:34:45.000Z | # Run from GAE remote API:
# {GAE Path}\remote_api_shell.py -s {YourAPPName}.appspot.com
# import export_as_csv
import csv
from google.appengine.ext import db
from google.appengine.ext.db import GqlQuery
# Query for items
query = GqlQuery("SELECT * FROM Trend WHERE name = '#JeSuisCharlie'")
exportToCsv(query, ... | 28.433333 | 74 | 0.622509 |
f26f15c108eabe8ae9328cc4ea34ff13c08d0947 | 950 | py | Python | main.py | AbhigyanRanjan0505/dvigyuoixfhybiocthgnkfi | db1b5198f1a0902aff21c74c58578dcb1feda39d | [
"MIT"
] | null | null | null | main.py | AbhigyanRanjan0505/dvigyuoixfhybiocthgnkfi | db1b5198f1a0902aff21c74c58578dcb1feda39d | [
"MIT"
] | null | null | null | main.py | AbhigyanRanjan0505/dvigyuoixfhybiocthgnkfi | db1b5198f1a0902aff21c74c58578dcb1feda39d | [
"MIT"
] | null | null | null | import plotly.figure_factory as figure_factory
import statistics
import random
import pandas
df = pandas.read_csv("data.csv")
data = df["reading_time"].tolist()
population_mean = statistics.mean(data)
print("Population mean :", population_mean)
setup()
| 22.093023 | 52 | 0.648421 |
f26f70f686db6ff49ef92baf12b70818b5613277 | 209 | py | Python | ddtrace/contrib/sqlite3/connection.py | sharov/dd-trace-py | d0995b49cf7147ab463d0a67a38779fad3f539b4 | [
"BSD-3-Clause"
] | 1 | 2019-11-24T23:09:29.000Z | 2019-11-24T23:09:29.000Z | ddtrace/contrib/sqlite3/connection.py | sharov/dd-trace-py | d0995b49cf7147ab463d0a67a38779fad3f539b4 | [
"BSD-3-Clause"
] | null | null | null | ddtrace/contrib/sqlite3/connection.py | sharov/dd-trace-py | d0995b49cf7147ab463d0a67a38779fad3f539b4 | [
"BSD-3-Clause"
] | 2 | 2017-05-27T05:58:36.000Z | 2019-02-07T13:38:53.000Z | from sqlite3 import Connection
from ddtrace.util import deprecated
| 26.125 | 76 | 0.76555 |
f27341117d08bd618bf3ac5014feb6d7ff7d069e | 801 | py | Python | kafka_client_decorators/util/logging_helper.py | cdsedson/kafka-decorator | f2c958df88c5698148aae4c5314dd39e31e995c3 | [
"MIT"
] | null | null | null | kafka_client_decorators/util/logging_helper.py | cdsedson/kafka-decorator | f2c958df88c5698148aae4c5314dd39e31e995c3 | [
"MIT"
] | null | null | null | kafka_client_decorators/util/logging_helper.py | cdsedson/kafka-decorator | f2c958df88c5698148aae4c5314dd39e31e995c3 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""Define function used on logging."""
import logging
__KAFKA_DECORATOR_DEBUG__ = None
def set_debug_level(level):
"""Set the level of log.
Set logging level for all loggers create by get_logger function
Parameters
----------
level: log level def... | 19.536585 | 67 | 0.636704 |
f2738d7e2edb6f5a98849ea7773345dc1a404833 | 1,409 | py | Python | hseling_lib_diachrony_webvectors/hseling_lib_diachrony_webvectors/strings_reader.py | wadimiusz/hseling-repo-diachrony-webvectors | 5488d74141df360a6a721637ae7c7577136172d7 | [
"MIT"
] | null | null | null | hseling_lib_diachrony_webvectors/hseling_lib_diachrony_webvectors/strings_reader.py | wadimiusz/hseling-repo-diachrony-webvectors | 5488d74141df360a6a721637ae7c7577136172d7 | [
"MIT"
] | null | null | null | hseling_lib_diachrony_webvectors/hseling_lib_diachrony_webvectors/strings_reader.py | wadimiusz/hseling-repo-diachrony-webvectors | 5488d74141df360a6a721637ae7c7577136172d7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding:utf8
"""
this module reads strings.csv, which contains all
the strings, and lets the main app use it
"""
import sys
import csv
import os
from flask import Markup
import configparser
config = configparser.RawConfigParser()
path = '../hseling_api_diachrony_webvectors/hseling_api_diachron... | 32.022727 | 104 | 0.721079 |
f274273a939d4c8377fbaeb7efafd00e9604432e | 1,077 | py | Python | day 5&6/linked list.py | yogeshkhola/100daysofDSA | 93f0d30d718795e4e3eb5d8e677b87baebd0df7c | [
"MIT"
] | 3 | 2021-03-01T17:04:33.000Z | 2021-03-01T17:44:23.000Z | day 5&6/linked list.py | yogeshkhola/100daysofDSA | 93f0d30d718795e4e3eb5d8e677b87baebd0df7c | [
"MIT"
] | null | null | null | day 5&6/linked list.py | yogeshkhola/100daysofDSA | 93f0d30d718795e4e3eb5d8e677b87baebd0df7c | [
"MIT"
] | null | null | null |
mylist=LinkedList()
mylist.insertLast(10)
mylist.insertLast(20)
mylist.insertLast(17)
mylist.insertLast(18)
mylist.insertLast(60)
mylist.viewList()
print()
mylist.deleteFirst()
mylist.viewList() | 21.54 | 58 | 0.571959 |
f2765c1d1962f66a204431e4dc547e6e1d4a52be | 40,603 | py | Python | detex/getdata.py | d-chambers/Detex | 46602eb8e05e080a23111c8f2716065a016613c2 | [
"BSD-3-Clause"
] | 39 | 2015-08-15T20:10:14.000Z | 2022-03-17T00:41:57.000Z | detex/getdata.py | d-chambers/Detex | 46602eb8e05e080a23111c8f2716065a016613c2 | [
"BSD-3-Clause"
] | 39 | 2015-09-28T23:50:59.000Z | 2019-07-16T20:38:31.000Z | detex/getdata.py | d-chambers/Detex | 46602eb8e05e080a23111c8f2716065a016613c2 | [
"BSD-3-Clause"
] | 8 | 2015-10-08T20:43:40.000Z | 2020-08-05T22:47:45.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 10 20:21:46 2015
@author: derrick
"""
from __future__ import print_function, absolute_import, unicode_literals, division
import glob
import itertools
import json
import os
import random
import numpy as np
import obspy
import pandas as pd
from six import string_types
im... | 38.929051 | 102 | 0.582174 |
f2766a9a2df58d6c9fe0fc41dab441157d2a7a7d | 4,850 | py | Python | HouseHunter/core.py | JGBMichalski/House-Hunter | 7ad1e866907545b8e2302c1a775cadbd8f807ad9 | [
"MIT"
] | null | null | null | HouseHunter/core.py | JGBMichalski/House-Hunter | 7ad1e866907545b8e2302c1a775cadbd8f807ad9 | [
"MIT"
] | null | null | null | HouseHunter/core.py | JGBMichalski/House-Hunter | 7ad1e866907545b8e2302c1a775cadbd8f807ad9 | [
"MIT"
] | null | null | null | from tarfile import SUPPORTED_TYPES
import requests
import re
from bs4 import BeautifulSoup
import json
import HouseHunter.globals as Globals
from HouseHunter.ad import *
from pathlib import Path
| 34.15493 | 142 | 0.583711 |
f27a87d9305d94ef4ecc93fe8c501738b9c6465e | 582 | py | Python | recipes/Python/474122_neat/recipe-474122.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/474122_neat/recipe-474122.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/474122_neat/recipe-474122.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | # nice and clean closure notation
# traditional, not_so_neat closure notation
#### EXAMPLE ###########################################################
cnt_a = get_counter_neat()
cnt_b = get_counter_neat()
print cnt_a() # >>> 1
print cnt_a() # >>> 2
print cnt_a() # >>> 3
print cnt_b() # >>> 1
print cnt_a() ... | 20.068966 | 72 | 0.487973 |
f27acd0b94f784d85a24a1358e2c015c3198e304 | 4,138 | py | Python | keras_med_io/utils/intensity_io.py | jchen42703/keras_med_io | 2113de64a448c90b66993d6ed4fdbba7971f3417 | [
"MIT"
] | null | null | null | keras_med_io/utils/intensity_io.py | jchen42703/keras_med_io | 2113de64a448c90b66993d6ed4fdbba7971f3417 | [
"MIT"
] | 6 | 2019-03-24T02:39:43.000Z | 2019-04-10T01:15:14.000Z | keras_med_io/utils/intensity_io.py | jchen42703/keras_med_io | 2113de64a448c90b66993d6ed4fdbba7971f3417 | [
"MIT"
] | null | null | null | # coding: utf-8
# funcions for quick testing
import numpy as np
# helper functions
def normalization(arr, normalize_mode, norm_range = [0,1]):
"""
Helper function: Normalizes the image based on the specified mode and range
Args:
arr: numpy array
normalize_mode: either "whiten", "normalize_cl... | 39.037736 | 121 | 0.656597 |
f27ae5b52fc981bd0a9765592021614aae946fe5 | 130 | py | Python | day00/ex05/kata02.py | bcarlier75/python_bootcamp_42ai | 916c258596f90a222f20329894048addb6f64dd9 | [
"MIT"
] | 1 | 2020-04-17T18:47:46.000Z | 2020-04-17T18:47:46.000Z | day00/ex05/kata02.py | bcarlier75/python_bootcamp_42ai | 916c258596f90a222f20329894048addb6f64dd9 | [
"MIT"
] | null | null | null | day00/ex05/kata02.py | bcarlier75/python_bootcamp_42ai | 916c258596f90a222f20329894048addb6f64dd9 | [
"MIT"
] | null | null | null | import datetime
t = (3, 30, 2019, 9, 25)
x = datetime.datetime(t[2], t[3], t[4], t[0], t[1])
print(x.strftime("%m/%d/%Y %H:%M"))
| 21.666667 | 51 | 0.546154 |
f27c23356c06fcdc25ca581c0cf5398df4251dbf | 8,654 | py | Python | source/notebooks/sagemaker_predictive_maintenance/autoencoder_entry_point/autoencoder_entry_point.py | brightsparc/predictive-maintenance-using-machine-learning | fae69698750185bb58a3fa67ff8887f435f46458 | [
"Apache-2.0"
] | null | null | null | source/notebooks/sagemaker_predictive_maintenance/autoencoder_entry_point/autoencoder_entry_point.py | brightsparc/predictive-maintenance-using-machine-learning | fae69698750185bb58a3fa67ff8887f435f46458 | [
"Apache-2.0"
] | null | null | null | source/notebooks/sagemaker_predictive_maintenance/autoencoder_entry_point/autoencoder_entry_point.py | brightsparc/predictive-maintenance-using-machine-learning | fae69698750185bb58a3fa67ff8887f435f46458 | [
"Apache-2.0"
] | null | null | null | # Autoencoder based on: https://towardsdatascience.com/predictive-maintenance-of-turbofan-engine-64911e39c367
import argparse
import pandas as pd
import numpy as np
import itertools
import logging
import random
import os
from scipy.spatial.distance import pdist, squareform
from sklearn.metrics import confusion_matrix... | 39.336364 | 159 | 0.686388 |
f27c2659a6f08c68bf5a68b6f0434f1302972e63 | 437 | py | Python | util/dump_cmudict_json.py | raygard/readability-rg | 3e0820ee5def6ffccfdc1114e511bdf137ff9b04 | [
"MIT"
] | null | null | null | util/dump_cmudict_json.py | raygard/readability-rg | 3e0820ee5def6ffccfdc1114e511bdf137ff9b04 | [
"MIT"
] | null | null | null | util/dump_cmudict_json.py | raygard/readability-rg | 3e0820ee5def6ffccfdc1114e511bdf137ff9b04 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# vim: set fileencoding=utf-8
import sys
import json
main()
| 19.863636 | 62 | 0.533181 |
f27e08d8b8e21a50f9f19aef584ea000ba47242e | 6,070 | py | Python | app/loader.py | DFilyushin/librusec | fd6d7a99037aac4c1112f648397830284f4165f9 | [
"Apache-2.0"
] | 2 | 2017-12-14T11:50:16.000Z | 2021-12-27T13:42:16.000Z | app/loader.py | DFilyushin/librusec | fd6d7a99037aac4c1112f648397830284f4165f9 | [
"Apache-2.0"
] | null | null | null | app/loader.py | DFilyushin/librusec | fd6d7a99037aac4c1112f648397830284f4165f9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import datetime
import time
import MySQLdb as mdb
LIB_INDEXES = 'D:\\TEMP\\librusec'
MYSQL_HOST = '127.0.0.1'
MYSQL_BASE = 'books100'
MYSQL_LOGIN = 'root'
MYSQL_PASSW = 'qwerty'
SQL_CHECK_BASE = "SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = '%s'"
SQL_CREATE... | 33.351648 | 134 | 0.594728 |
f27e5faf956aa7b884e2d5afa37ca81bb25dcb92 | 1,328 | py | Python | src/EvalShift.py | nekonyanneko/GA | 328f37c421a8bd4857a0804b130c23bd7b98de19 | [
"MIT"
] | null | null | null | src/EvalShift.py | nekonyanneko/GA | 328f37c421a8bd4857a0804b130c23bd7b98de19 | [
"MIT"
] | null | null | null | src/EvalShift.py | nekonyanneko/GA | 328f37c421a8bd4857a0804b130c23bd7b98de19 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import Shift as shi
import Enum as enu
def evalShift(individual):
"""
This method is grobal method.
This method is evaluation.
If you need new evaluation method, you must define it as follows.
RETURN:
evaluation values
"""
shift = shi.Shift(individual) # Get indiviaual of ... | 24.145455 | 83 | 0.652108 |
f27e8907ba835e5562beea72db0b2659774edc40 | 46 | py | Python | calandarevent/__init__.py | YHallouard/adventofcode_yann | c6afb43c2af0bce74c5dee9c31e6eda2caa081d4 | [
"MIT"
] | null | null | null | calandarevent/__init__.py | YHallouard/adventofcode_yann | c6afb43c2af0bce74c5dee9c31e6eda2caa081d4 | [
"MIT"
] | null | null | null | calandarevent/__init__.py | YHallouard/adventofcode_yann | c6afb43c2af0bce74c5dee9c31e6eda2caa081d4 | [
"MIT"
] | null | null | null | from .version import __version__
__version__
| 11.5 | 32 | 0.847826 |
f27f8a655e82f556df2399b3f99f4848f377c47b | 375 | py | Python | app/models/word.py | shiniao/soul-api | 1438281c2dce237d735f7309c2ddb606c8d01e1e | [
"Apache-2.0"
] | 1 | 2021-02-27T09:05:40.000Z | 2021-02-27T09:05:40.000Z | app/models/word.py | shiniao/soulapi | 1438281c2dce237d735f7309c2ddb606c8d01e1e | [
"Apache-2.0"
] | null | null | null | app/models/word.py | shiniao/soulapi | 1438281c2dce237d735f7309c2ddb606c8d01e1e | [
"Apache-2.0"
] | null | null | null | from sqlalchemy import Column, Integer, String
from app.database import Base
| 26.785714 | 74 | 0.733333 |
f280236c60f310af1d18ad0b782faeb404b108be | 912 | py | Python | anomaly/Read_img.py | Jun-CEN/Open-World-Semantic-Segmentation | a95bac374e573055c23220e299789f34292988bc | [
"MIT"
] | 19 | 2021-08-09T15:34:10.000Z | 2022-03-14T09:20:58.000Z | anomaly/Read_img.py | Jun-CEN/Open-World-Semantic-Segmentation | a95bac374e573055c23220e299789f34292988bc | [
"MIT"
] | 4 | 2021-11-08T07:10:35.000Z | 2022-01-16T01:53:06.000Z | anomaly/Read_img.py | Jun-CEN/Open-World-Semantic-Segmentation | a95bac374e573055c23220e299789f34292988bc | [
"MIT"
] | 4 | 2021-10-06T09:28:16.000Z | 2022-01-14T08:26:54.000Z | from PIL import Image
import matplotlib.pyplot as plt
import numpy as np
import bdlb
import torch
import json
# path_img = './data/test_result/t5/'
# path_img = './results_18_ce_noshuffle/2_'
#
# image = Image.open(path_img + '100.png')
# plt.imshow(image)
# plt.show()
#
# overlay = Image.open(path_img + 'overlay.png'... | 20.727273 | 54 | 0.667763 |
f280852bfea33f9eda7c3cbe87f494f3dbe4c0a3 | 238 | py | Python | Bot.py | pythonNoobas/Python228 | 7c266acad5bb5ae45df10ac3fdea209831399729 | [
"MIT"
] | null | null | null | Bot.py | pythonNoobas/Python228 | 7c266acad5bb5ae45df10ac3fdea209831399729 | [
"MIT"
] | null | null | null | Bot.py | pythonNoobas/Python228 | 7c266acad5bb5ae45df10ac3fdea209831399729 | [
"MIT"
] | null | null | null | import telebot
bot = telebot.TeleBot("879497357:AAHxUAZR2ZMy7q1dsC12NoFOmvBnKo9a3FA")
bot.polling( none_stop = True ) | 23.8 | 70 | 0.794118 |
f2808bb95000137789190b399e2a920a24f1f97a | 2,980 | py | Python | generator/address.py | leg020/python-training | f595b8b836ff60c68bdff9d881ca50c026762457 | [
"Apache-2.0"
] | null | null | null | generator/address.py | leg020/python-training | f595b8b836ff60c68bdff9d881ca50c026762457 | [
"Apache-2.0"
] | null | null | null | generator/address.py | leg020/python-training | f595b8b836ff60c68bdff9d881ca50c026762457 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from model.address import Address
import random
import string
import os.path
import json
import getopt
import sys
import jsonpickle
try:
opts, args = getopt.getopt(sys.argv[1:], 'n:f:', ['number of address', 'file'])
except getopt.GetoptError as err:
getopt.usage()
sys.exit(2)
n ... | 33.483146 | 94 | 0.451342 |
f2813fd14566cad91048d44239959b70b5b53e25 | 192 | py | Python | tests/__init__.py | sjspielman/hyphyhelper | 0291cd72f0ba6ccb76e97feef97431f677dde730 | [
"BSD-3-Clause"
] | 16 | 2017-12-04T14:52:36.000Z | 2021-07-21T15:15:25.000Z | tests/__init__.py | sjspielman/hyphyhelper | 0291cd72f0ba6ccb76e97feef97431f677dde730 | [
"BSD-3-Clause"
] | 11 | 2018-01-16T16:06:13.000Z | 2021-12-07T14:14:15.000Z | tests/__init__.py | sjspielman/hyphyhelper | 0291cd72f0ba6ccb76e97feef97431f677dde730 | [
"BSD-3-Clause"
] | 10 | 2017-12-03T19:54:53.000Z | 2021-07-21T15:15:30.000Z | """``phyphy`` package for automating and parsing HyPhy (>=2.3.7) standard analyses.
Written by Stephanie J. Spielman.
Test modules
----------------
* phyphy_test
"""
from phyphy import *
| 14.769231 | 83 | 0.651042 |
f283d91585cbb97de4ca77780a488265da69f263 | 613 | py | Python | scripts/test.py | darkmatter2222/Agar.AI | a757544581239a7b4c2b00bb7befa9b649d73f7f | [
"MIT"
] | 1 | 2020-01-02T13:49:51.000Z | 2020-01-02T13:49:51.000Z | scripts/test.py | darkmatter2222/Agar.AI | a757544581239a7b4c2b00bb7befa9b649d73f7f | [
"MIT"
] | null | null | null | scripts/test.py | darkmatter2222/Agar.AI | a757544581239a7b4c2b00bb7befa9b649d73f7f | [
"MIT"
] | 1 | 2020-01-24T19:17:38.000Z | 2020-01-24T19:17:38.000Z | import scripts.screen_interface as si
import scripts.game_interface as gi
import ctypes
import os
import keyboard
import uuid
GI = gi.GameInterface()
# find center of screen
user32 = ctypes.windll.user32
screenSize = user32.GetSystemMetrics(0), user32.GetSystemMetrics(1)
centerPoint = tuple(i/2 for i in screenSize)
p... | 25.541667 | 67 | 0.761827 |
f284677f3d515ed6519b9b9782d95ab9e355ded5 | 4,052 | py | Python | Controller/control/WorkerControl.py | th-nuernberg/ml-cloud | 6d7527cbf6cceb7062e74dbc43d51998381aa6c8 | [
"MIT"
] | null | null | null | Controller/control/WorkerControl.py | th-nuernberg/ml-cloud | 6d7527cbf6cceb7062e74dbc43d51998381aa6c8 | [
"MIT"
] | 7 | 2020-07-19T03:29:21.000Z | 2022-03-02T06:46:12.000Z | Controller/control/WorkerControl.py | th-nuernberg/ml-cloud | 6d7527cbf6cceb7062e74dbc43d51998381aa6c8 | [
"MIT"
] | null | null | null | import json
import queue
from control.WorkerQueue import WorkerQueue as WQ
from data.StorageIO import StorageIO
'''
The WorkerControl coordinates workers and assigns jobs.
Worker register themself at startup. The controller queues workers as well as jobs in two seperate queues.
As soon as a worker and a job are availa... | 38.226415 | 112 | 0.607601 |
f28467f33870630c6d980108ee2deecf6e265916 | 986 | py | Python | spammer/groupdmspam.py | 00-00-00-11/Raid-Toolbox | 4d24841de5ef112dc15b858f62607e0d6b5277cd | [
"0BSD"
] | null | null | null | spammer/groupdmspam.py | 00-00-00-11/Raid-Toolbox | 4d24841de5ef112dc15b858f62607e0d6b5277cd | [
"0BSD"
] | null | null | null | spammer/groupdmspam.py | 00-00-00-11/Raid-Toolbox | 4d24841de5ef112dc15b858f62607e0d6b5277cd | [
"0BSD"
] | 1 | 2021-05-15T11:32:24.000Z | 2021-05-15T11:32:24.000Z | import discord
import sys
import random
import aiohttp
import logging
token = sys.argv[1]
group = sys.argv[2]
tokenno = sys.argv[3]
msgtxt = sys.argv[4]
useproxies = sys.argv[5]
logging.basicConfig(filename='RTB.log', filemode='w', format='Token {}'.format(str(tokenno))+' - %(levelname)s - %(message)s',le... | 28.171429 | 150 | 0.649087 |
f2854a477097d46506783a017f1b2352a0421334 | 570 | py | Python | school/migrations/0018_listemplois.py | Belaid-RWW/PFAEspaceParent | 8fd0000d4ee1427599bcb7da5aa301050469e7a8 | [
"MIT"
] | null | null | null | school/migrations/0018_listemplois.py | Belaid-RWW/PFAEspaceParent | 8fd0000d4ee1427599bcb7da5aa301050469e7a8 | [
"MIT"
] | null | null | null | school/migrations/0018_listemplois.py | Belaid-RWW/PFAEspaceParent | 8fd0000d4ee1427599bcb7da5aa301050469e7a8 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-05-07 03:50
from django.db import migrations, models
| 25.909091 | 114 | 0.568421 |
f28613b99f347cb3a0fc049c18db1898247d805e | 522 | py | Python | t2t_bert/distributed_encoder/gpt_encoder.py | yyht/bert | 480c909e0835a455606e829310ff949c9dd23549 | [
"Apache-2.0"
] | 34 | 2018-12-19T01:00:57.000Z | 2021-03-26T09:36:37.000Z | t2t_bert/distributed_encoder/gpt_encoder.py | yyht/bert | 480c909e0835a455606e829310ff949c9dd23549 | [
"Apache-2.0"
] | 11 | 2018-12-25T03:37:59.000Z | 2021-08-25T14:43:58.000Z | t2t_bert/distributed_encoder/gpt_encoder.py | yyht/bert | 480c909e0835a455606e829310ff949c9dd23549 | [
"Apache-2.0"
] | 9 | 2018-12-27T08:00:44.000Z | 2020-06-08T03:05:14.000Z | from model.gpt import gpt
import tensorflow as tf
import numpy as np
| 20.88 | 48 | 0.695402 |
f28637ac36ec4e4cf9bd05dd4661f26ee82946dd | 900 | py | Python | ejercicios_resueltos/t04/t04ejer03.py | workready/pythonbasic | 59bd82caf99244f5e711124e1f6f4dec8de22141 | [
"MIT"
] | null | null | null | ejercicios_resueltos/t04/t04ejer03.py | workready/pythonbasic | 59bd82caf99244f5e711124e1f6f4dec8de22141 | [
"MIT"
] | null | null | null | ejercicios_resueltos/t04/t04ejer03.py | workready/pythonbasic | 59bd82caf99244f5e711124e1f6f4dec8de22141 | [
"MIT"
] | null | null | null | import os
# Codigo de pruebas para gcat
print("Fichero linea a linea")
print("-----------------------------")
for line in gcat([os.path.join(os.path.dirname(os.path.realpath(__file__)), 'quijote.txt')]):
print(line)
print("-----------------------------")
print()
print()
# Codigo de pruebas para ggrep
print("L... | 25 | 104 | 0.537778 |
f286492200c20b0ffd878c540e355986ac87e759 | 265 | py | Python | __init__.py | Lukas-Dresel/dice22_breach_binja | 7b481b9209e56203b17d24f4a03e567765cf77d7 | [
"MIT"
] | null | null | null | __init__.py | Lukas-Dresel/dice22_breach_binja | 7b481b9209e56203b17d24f4a03e567765cf77d7 | [
"MIT"
] | null | null | null | __init__.py | Lukas-Dresel/dice22_breach_binja | 7b481b9209e56203b17d24f4a03e567765cf77d7 | [
"MIT"
] | null | null | null | import binaryninja
from .breach_arch import BreachArch
BreachArch.register()
from .breach_programview import BreachProgramView
BreachProgramView.register()
from .breach_calling_convention import BreachCallingConvention
from .breach_platform import BreachPlatform | 26.5 | 62 | 0.879245 |
f2864bce946124a8b9383d4c53008de00cff4e49 | 2,460 | py | Python | swot_item_vote/views.py | imranariffin/liveswot-api | a2acc05fd2c51adc30e8e1785b857a94af81677d | [
"MIT"
] | null | null | null | swot_item_vote/views.py | imranariffin/liveswot-api | a2acc05fd2c51adc30e8e1785b857a94af81677d | [
"MIT"
] | 25 | 2018-03-25T05:25:22.000Z | 2021-06-10T19:51:12.000Z | swot_item_vote/views.py | imranariffin/liveswot-api | a2acc05fd2c51adc30e8e1785b857a94af81677d | [
"MIT"
] | 2 | 2018-07-02T02:59:24.000Z | 2018-08-21T02:58:21.000Z | from django.core.exceptions import ObjectDoesNotExist
from django.db import IntegrityError
from rest_framework.decorators import api_view
from rest_framework import status
from swot_item_vote.models import Vote
from swot_item.models import SwotItem
from .serializers import serialize, get_item_confidence
from swot.m... | 21.964286 | 64 | 0.605285 |
f2895989ed18fa1ea8643af23dca6836bad3cec9 | 30,553 | py | Python | car2dc-kiran/Scripts/StartTraffic.py | kirannCS/MasterThesis | a12771dc40efe77ae7d6e1631ed66c4b9992afd8 | [
"Unlicense"
] | null | null | null | car2dc-kiran/Scripts/StartTraffic.py | kirannCS/MasterThesis | a12771dc40efe77ae7d6e1631ed66c4b9992afd8 | [
"Unlicense"
] | null | null | null | car2dc-kiran/Scripts/StartTraffic.py | kirannCS/MasterThesis | a12771dc40efe77ae7d6e1631ed66c4b9992afd8 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
#################################################################################
################# Helper Module #################################################
################# Provides abstraction to car sensors and PHY layer #############
##################################################... | 37.1691 | 239 | 0.700717 |
f28ae939117634bfbb4da17376ebc5f47320b58f | 879 | py | Python | quick_sort.py | MichaelLenghel/Sorting-Algorithms | b0aba03a7e5d95b4ca4038e8b53a9d544adeefb1 | [
"MIT"
] | null | null | null | quick_sort.py | MichaelLenghel/Sorting-Algorithms | b0aba03a7e5d95b4ca4038e8b53a9d544adeefb1 | [
"MIT"
] | null | null | null | quick_sort.py | MichaelLenghel/Sorting-Algorithms | b0aba03a7e5d95b4ca4038e8b53a9d544adeefb1 | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
li = [65, 72, 23, 36, 99, 20, 1, 44]
# [8, 2, 5, 13, 4, 19, 12, 6, 3, 11, 10, 7, 9]
print("Unsorted list: ", li)
quick_sort(li, 0, len(li) - 1)
print("Sorted list: ", li)
| 22.538462 | 49 | 0.531286 |
f28b677805cf2bdfc02ec0d719ce0fad31f82786 | 5,787 | py | Python | astacus/coordinator/plugins/clickhouse/parts.py | aiven/astacus | 2d64e1f33e01d50a41127f41d9da3d1ab0ce0387 | [
"Apache-2.0"
] | 19 | 2020-06-22T12:17:59.000Z | 2022-02-18T00:12:17.000Z | astacus/coordinator/plugins/clickhouse/parts.py | aiven/astacus | 2d64e1f33e01d50a41127f41d9da3d1ab0ce0387 | [
"Apache-2.0"
] | 7 | 2020-06-24T05:16:20.000Z | 2022-02-28T07:35:31.000Z | astacus/coordinator/plugins/clickhouse/parts.py | aiven/astacus | 2d64e1f33e01d50a41127f41d9da3d1ab0ce0387 | [
"Apache-2.0"
] | 2 | 2020-09-05T21:23:08.000Z | 2022-02-17T15:02:37.000Z | """
Copyright (c) 2021 Aiven Ltd
See LICENSE for details
Algorithms to help with redistributing parts across servers for tables using the
Replicated family of table engines.
This does not support shards, but this is the right place to add support for them.
"""
from astacus.common.ipc import SnapshotFile
from astacus.... | 39.101351 | 111 | 0.697598 |
f28ccbdb8a0ea7d42a8a232e4a98e01aac77cc9d | 1,301 | py | Python | tests/test_init.py | mds2/Rocket | 53313677768159d13e6c2b7c69ad69ca59bb8c79 | [
"MIT"
] | 16 | 2015-12-16T10:50:42.000Z | 2020-06-04T10:39:20.000Z | tests/test_init.py | mds2/Rocket | 53313677768159d13e6c2b7c69ad69ca59bb8c79 | [
"MIT"
] | 6 | 2017-11-01T14:51:52.000Z | 2019-01-01T22:12:27.000Z | tests/test_init.py | mds2/Rocket | 53313677768159d13e6c2b7c69ad69ca59bb8c79 | [
"MIT"
] | 13 | 2016-04-22T20:14:39.000Z | 2021-12-21T22:52:02.000Z | # -*- coding: utf-8 -*-
# This file is part of the Rocket Web Server
# Copyright (c) 2012 Timothy Farrell
#
# See the included LICENSE.txt file for licensing details.
# Import System Modules
import sys
import unittest
# Import Custom Modules
import rocket
# Define Constants
PY3K = sys.version_info[0] > 2
# Define T... | 32.525 | 275 | 0.647963 |
f2903e37d62a64c2678663ac58e60ba0efca0df6 | 206 | py | Python | setup.py | hemanths933/Segmentation_Unet | 701585b31df7e4159e2fdbe56aaca99d9a4a8ea9 | [
"MIT"
] | null | null | null | setup.py | hemanths933/Segmentation_Unet | 701585b31df7e4159e2fdbe56aaca99d9a4a8ea9 | [
"MIT"
] | null | null | null | setup.py | hemanths933/Segmentation_Unet | 701585b31df7e4159e2fdbe56aaca99d9a4a8ea9 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='Unet',
version='',
packages=['models'],
url='',
license='',
author='hemanth sharma',
author_email='',
description=''
)
| 15.846154 | 29 | 0.538835 |
f2904abee88ac63551da7aa60f4599002d25cdcf | 2,757 | py | Python | side_scroller/game.py | pecjas/Sidescroller-PyGame | dfcaf4ff95a1733714eaaeb00dc00cd876ab1468 | [
"MIT"
] | null | null | null | side_scroller/game.py | pecjas/Sidescroller-PyGame | dfcaf4ff95a1733714eaaeb00dc00cd876ab1468 | [
"MIT"
] | null | null | null | side_scroller/game.py | pecjas/Sidescroller-PyGame | dfcaf4ff95a1733714eaaeb00dc00cd876ab1468 | [
"MIT"
] | null | null | null | import pygame
from side_scroller.constants import BLACK
from side_scroller.settings import GameSettings, Fonts
from side_scroller.player import Player, Hitbox
from side_scroller.constants import GAME_NAME
| 31.329545 | 91 | 0.66848 |
f2909580065a2556ae0c58be271bee9537858bf1 | 366 | py | Python | solutions/problem_230.py | ksvr444/daily-coding-problem | 5d9f488f81c616847ee4e9e48974523ec2d598d7 | [
"MIT"
] | 1,921 | 2018-11-13T18:19:56.000Z | 2021-11-15T14:25:41.000Z | solutions/problem_230.py | MohitIndian/daily-coding-problem | 5d9f488f81c616847ee4e9e48974523ec2d598d7 | [
"MIT"
] | 2 | 2019-07-19T01:06:16.000Z | 2019-08-01T22:21:36.000Z | solutions/problem_230.py | MohitIndian/daily-coding-problem | 5d9f488f81c616847ee4e9e48974523ec2d598d7 | [
"MIT"
] | 1,066 | 2018-11-19T19:06:55.000Z | 2021-11-13T12:33:56.000Z |
# Tests
assert get_min_drops(20, 2) == 6
assert get_min_drops(15, 3) == 5
| 20.333333 | 40 | 0.538251 |
f290ef8b6c3eb1ab597e06f8dc82e1806488e974 | 3,525 | py | Python | src/advanceoperate/uploadthread.py | zengrx/S.M.A.R.T | 47a9abe89008e9b34f9b9d057656dbf3fb286456 | [
"MIT"
] | 10 | 2017-07-11T01:08:28.000Z | 2021-05-07T01:49:00.000Z | src/advanceoperate/uploadthread.py | YanqiangHuang/S.M.A.R.T | 47a9abe89008e9b34f9b9d057656dbf3fb286456 | [
"MIT"
] | null | null | null | src/advanceoperate/uploadthread.py | YanqiangHuang/S.M.A.R.T | 47a9abe89008e9b34f9b9d057656dbf3fb286456 | [
"MIT"
] | 6 | 2017-05-02T14:27:15.000Z | 2017-05-15T05:56:40.000Z | #coding=utf-8
import sys, os
import socket
import hashlib
import virus_total_apis
from PyQt4 import QtCore
sys.path.append("..")
from publicfunc.fileanalyze import PEFileAnalize, getFileInfo | 34.558824 | 119 | 0.584681 |
f291aa8b92b2b817f77cb42f08e1e15a9557dcfe | 240 | py | Python | JaroEliCall/src/functionality/sending_activation_key.py | jaroslaw-wieczorek/Project_IP_Telephony_Python_Voip | 05143356fe91f745c286db8c3e2432714ab122e7 | [
"MIT"
] | null | null | null | JaroEliCall/src/functionality/sending_activation_key.py | jaroslaw-wieczorek/Project_IP_Telephony_Python_Voip | 05143356fe91f745c286db8c3e2432714ab122e7 | [
"MIT"
] | null | null | null | JaroEliCall/src/functionality/sending_activation_key.py | jaroslaw-wieczorek/Project_IP_Telephony_Python_Voip | 05143356fe91f745c286db8c3e2432714ab122e7 | [
"MIT"
] | 1 | 2018-03-20T21:22:40.000Z | 2018-03-20T21:22:40.000Z | import smtplib
server = smtplib.SMTP('smtp.gmail.com', 587)
server.starttls()
server.login("tt0815550@gmail.com", "AureliaK1609")
msg = "YOUR MESSAGE!"
server.sendmail("e.kaczmarek01@gmail.com", "tt0815550@gmail.com", msg)
server.quit()
| 21.818182 | 70 | 0.7375 |
f2925fa462ff21785df92756f554dc30e7733df7 | 1,450 | py | Python | app/cipher_caesar.py | igorsilva3/cipher-of-caesar | 2024dae7eb795f273785e9622d9e20a49cea089d | [
"MIT"
] | 2 | 2020-09-30T00:04:59.000Z | 2020-10-02T14:33:56.000Z | app/cipher_caesar.py | igorsilva3/cipher-of-caesar | 2024dae7eb795f273785e9622d9e20a49cea089d | [
"MIT"
] | null | null | null | app/cipher_caesar.py | igorsilva3/cipher-of-caesar | 2024dae7eb795f273785e9622d9e20a49cea089d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import string
| 29 | 63 | 0.512414 |
f292addc6e3042f36d3fbfdde0bec8e8159cc0d4 | 193 | py | Python | Desafio049.py | tmoura1981/Python_Exercicios | c873e2758dfd9058d2c2d83b5b38b522c6264029 | [
"MIT"
] | 1 | 2021-11-25T11:19:59.000Z | 2021-11-25T11:19:59.000Z | Desafio049.py | tmoura1981/Python_Exercicios | c873e2758dfd9058d2c2d83b5b38b522c6264029 | [
"MIT"
] | null | null | null | Desafio049.py | tmoura1981/Python_Exercicios | c873e2758dfd9058d2c2d83b5b38b522c6264029 | [
"MIT"
] | null | null | null | # Informe um n e mostre sua tabuada
print('-' * 36)
n = int(input('Digite um n e veja sua tabuada: '))
print('=' * 36)
for i in range(1, 11):
print(n, 'x', i, '=', n * i)
print('=' * 36)
| 24.125 | 51 | 0.554404 |
f292e080e8bc6567932c91ed5f7d509146d3ac76 | 473 | py | Python | programming-logic/teste.py | raulrosapacheco/python3-udemy | b84e6f82417aecd0e2a28c3fb3cb222e057a660b | [
"MIT"
] | null | null | null | programming-logic/teste.py | raulrosapacheco/python3-udemy | b84e6f82417aecd0e2a28c3fb3cb222e057a660b | [
"MIT"
] | null | null | null | programming-logic/teste.py | raulrosapacheco/python3-udemy | b84e6f82417aecd0e2a28c3fb3cb222e057a660b | [
"MIT"
] | null | null | null | """
Split: dividir string
Join: juntar uma lista (str)
Enumerate: enumerar elementos da lista (iterveis)
"""
string ='O Brasil o pais do futebol, o Brasil penta.'
lista_1 = string.split(' ')
lista_2 = string.split(',')
print(lista_1)
print(lista_2)
palavra = ''
contagem = 0
for valor in lista_1:
print(f'A palavr... | 23.65 | 73 | 0.69556 |
f293d5631b8815a984d95fcfd9fd7e627ddefdd5 | 484 | py | Python | tests/conftest.py | 12rambau/commitizen | 4309813974b6be72a246d47fc77f4c7f8ef64be1 | [
"MIT"
] | 866 | 2020-03-18T06:09:07.000Z | 2022-03-30T15:46:17.000Z | tests/conftest.py | 12rambau/commitizen | 4309813974b6be72a246d47fc77f4c7f8ef64be1 | [
"MIT"
] | 364 | 2020-03-18T02:13:09.000Z | 2022-03-31T01:57:12.000Z | tests/conftest.py | 12rambau/commitizen | 4309813974b6be72a246d47fc77f4c7f8ef64be1 | [
"MIT"
] | 136 | 2020-03-20T18:06:32.000Z | 2022-03-31T00:02:34.000Z | import pytest
from commitizen import cmd
| 23.047619 | 80 | 0.71281 |
f2957c2436185eaacb1c43fe2b6685f21c467731 | 188 | py | Python | python/testData/inspections/PyStringFormatInspection/PackedRefInsideList.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/inspections/PyStringFormatInspection/PackedRefInsideList.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/inspections/PyStringFormatInspection/PackedRefInsideList.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | list = [3, 4]
"{3}".format(*[1, 2, *list])
"{4}".format(*[1, 2, *list])
"{1}".format(*[1, 2, *list])
"{3}".format(*[*list, 1, 2])
"{4}".format(*[*list, 1, 2])
"{1}".format(*[*list, 1, 2]) | 23.5 | 28 | 0.446809 |
f296278ff7fbbd618f4bc706e8d6af3757d8034e | 2,547 | py | Python | grizzly_cli/argparse/__init__.py | mgor/grizzly-cli | 00da1a5a822baefedf61497120fd52dbb5203f12 | [
"MIT"
] | null | null | null | grizzly_cli/argparse/__init__.py | mgor/grizzly-cli | 00da1a5a822baefedf61497120fd52dbb5203f12 | [
"MIT"
] | null | null | null | grizzly_cli/argparse/__init__.py | mgor/grizzly-cli | 00da1a5a822baefedf61497120fd52dbb5203f12 | [
"MIT"
] | 1 | 2021-11-02T09:36:21.000Z | 2021-11-02T09:36:21.000Z | import sys
import re
from typing import Any, Optional, IO, Sequence
from argparse import ArgumentParser as CoreArgumentParser, Namespace, _SubParsersAction
from .markdown import MarkdownFormatter, MarkdownHelpAction
from .bashcompletion import BashCompletionAction, hook as bashcompletion_hook
ArgumentSubParser = _S... | 38.014925 | 131 | 0.645465 |
f296a031d5f0c54dcf0daafc3b2597cd41d7d8ee | 524 | py | Python | sharedData.py | vidalmatheus/DS.com | 47b8d3cbb6d9ecd30178c4ba76408191c0715866 | [
"MIT"
] | null | null | null | sharedData.py | vidalmatheus/DS.com | 47b8d3cbb6d9ecd30178c4ba76408191c0715866 | [
"MIT"
] | null | null | null | sharedData.py | vidalmatheus/DS.com | 47b8d3cbb6d9ecd30178c4ba76408191c0715866 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, request, redirect,Blueprint, json, url_for, session
from modules import dataBase,usuario
import psycopg2, os, subprocess, bcrypt
#
#def getData():
# DATABASE_URL = os.environ['DATABASE_URL']
# con = psycopg2.connect(DATABASE_URL, sslmode='require')
# return con
###... | 20.96 | 93 | 0.740458 |
f29854376d62be05bf8d63dd4375c7cfd29ed77c | 6,192 | py | Python | ipa_util/validate.py | koolspin/vipa | f5b79a6ab4ce60975ff5ee6f173b97eebaf99b14 | [
"MIT"
] | null | null | null | ipa_util/validate.py | koolspin/vipa | f5b79a6ab4ce60975ff5ee6f173b97eebaf99b14 | [
"MIT"
] | null | null | null | ipa_util/validate.py | koolspin/vipa | f5b79a6ab4ce60975ff5ee6f173b97eebaf99b14 | [
"MIT"
] | null | null | null | import plistlib
from pathlib import Path
from datetime import datetime, timezone, timedelta
def extract_plist(self):
"""
Extracts information from the Info.plist file
:return: Dictionary representation of Info.plist contents
"""
with self._plist_file.open('rb') as plist_fp:... | 41.837838 | 152 | 0.653424 |
f2995fcdd8762cd23c69c1f140cd16f1c0b58140 | 6,183 | py | Python | merlin/analysis/sequential.py | greentea1079/MERlin | f4c50cb15722263ee9397561b9ce4b2eddc3d559 | [
"MIT"
] | 14 | 2019-08-19T15:26:44.000Z | 2022-01-12T16:38:42.000Z | merlin/analysis/sequential.py | greentea1079/MERlin | f4c50cb15722263ee9397561b9ce4b2eddc3d559 | [
"MIT"
] | 60 | 2019-08-19T15:48:37.000Z | 2021-11-11T19:19:18.000Z | merlin/analysis/sequential.py | epigen-UCSD/MERlin | 3aa784fb28a2a4ebae92cfaf3a72f30a459daab9 | [
"MIT"
] | 13 | 2019-08-16T06:03:23.000Z | 2021-08-02T15:52:46.000Z | import pandas
import rtree
import networkx
import numpy as np
import cv2
from skimage.measure import regionprops
from merlin.core import analysistask
from merlin.util import imagefilters
| 37.472727 | 80 | 0.603105 |
f29a992ba965f8e9cb047c742d3ca46176d0fa03 | 3,012 | py | Python | netests/comparators/facts_compare.py | Netests/netests | 1a48bda461761c4ec854d6fa0c38629049009a4a | [
"MIT"
] | 14 | 2020-06-08T07:34:59.000Z | 2022-03-14T08:52:03.000Z | netests/comparators/facts_compare.py | Netests/netests | 1a48bda461761c4ec854d6fa0c38629049009a4a | [
"MIT"
] | null | null | null | netests/comparators/facts_compare.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 -*-
from nornir.core.task import Task
from netests import log
from netests.tools.file import open_file
from netests.protocols.facts import Facts
from netests.select_vars import select_host_vars
from netests.comparators.log_compare import log_compare, log_no_yaml_data
from net... | 31.705263 | 75 | 0.60259 |
f29b2579ee8dd83fbc2ef37d5767b8505b228c21 | 1,579 | py | Python | graph.py | shinmura0/tkinter_kouza | 1617a01591bf3cee808c4b3e62dc785cc76381f2 | [
"MIT"
] | null | null | null | graph.py | shinmura0/tkinter_kouza | 1617a01591bf3cee808c4b3e62dc785cc76381f2 | [
"MIT"
] | null | null | null | graph.py | shinmura0/tkinter_kouza | 1617a01591bf3cee808c4b3e62dc785cc76381f2 | [
"MIT"
] | null | null | null | #
from tkinter import Tk, Button, X, Frame, GROOVE, W, E, Label, Entry, END
import numpy as np
import os
from matplotlib import pyplot as plt
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
#
#
#
if __name__ == '__main__':
# tkinter
root = Tk()
# 1
... | 24.292308 | 82 | 0.60038 |
f29df525d2aaa21035a1c17e65dbb2cbbc6a88ba | 1,326 | py | Python | levis/encoding.py | rawg/levis | 33cd6c915f51134f79f3586dc0e4a6072247b568 | [
"MIT"
] | 42 | 2016-06-29T21:13:02.000Z | 2022-01-23T03:23:59.000Z | levis/encoding.py | rawg/levis | 33cd6c915f51134f79f3586dc0e4a6072247b568 | [
"MIT"
] | null | null | null | levis/encoding.py | rawg/levis | 33cd6c915f51134f79f3586dc0e4a6072247b568 | [
"MIT"
] | 12 | 2016-07-18T20:46:55.000Z | 2021-06-13T16:08:37.000Z | # coding=utf-8
"""
"""
from . import mutation
from . import crossover
from . import base
| 26.52 | 79 | 0.662142 |
f29ee11e7e85111e249a8c2b4d2fb8ce2bd1370b | 1,230 | py | Python | mopidy_monobox/__init__.py | oxullo/mopidy-monobox | 3cf9077e49afb0f0171f990cc4205cc348dcda1d | [
"Apache-2.0"
] | null | null | null | mopidy_monobox/__init__.py | oxullo/mopidy-monobox | 3cf9077e49afb0f0171f990cc4205cc348dcda1d | [
"Apache-2.0"
] | null | null | null | mopidy_monobox/__init__.py | oxullo/mopidy-monobox | 3cf9077e49afb0f0171f990cc4205cc348dcda1d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
import os
# TODO: Remove entirely if you don't register GStreamer elements below
import pygst
pygst.require('0.10')
import gst
import gobject
from mopidy import config, ext
__version__ = '0.1.0'
# TODO: If you ne... | 26.170213 | 77 | 0.688618 |
f2a0401693fdb2fa350f876989f4e1cc6a3ea3c3 | 698 | py | Python | im3agents/tests/test_farmers.py | IMMM-SFA/im3agents | 544e89803379a44108227e9cd83ce09f6974fe2d | [
"BSD-2-Clause"
] | null | null | null | im3agents/tests/test_farmers.py | IMMM-SFA/im3agents | 544e89803379a44108227e9cd83ce09f6974fe2d | [
"BSD-2-Clause"
] | 4 | 2020-05-27T18:50:29.000Z | 2020-09-24T14:27:00.000Z | im3agents/tests/test_farmers.py | IMMM-SFA/im3agents | 544e89803379a44108227e9cd83ce09f6974fe2d | [
"BSD-2-Clause"
] | null | null | null | """Farmer class tests.
:author: Someone
:email: someone@pnnl.gov
License: BSD 2-Clause, see LICENSE and DISCLAIMER files
"""
import unittest
from im3agents import FarmerOne
if __name__ == '__main__':
unittest.main()
| 19.388889 | 56 | 0.659026 |
f2a1157fdb66b63890403106ad4f269358b5419e | 1,744 | py | Python | day-24/part-1/th-ch.py | evqna/adventofcode-2020 | 526bb9c87057d02bda4de9647932a0e25bdb3a5b | [
"MIT"
] | 12 | 2020-11-30T19:22:18.000Z | 2021-06-21T05:55:58.000Z | day-24/part-1/th-ch.py | evqna/adventofcode-2020 | 526bb9c87057d02bda4de9647932a0e25bdb3a5b | [
"MIT"
] | 13 | 2020-11-30T17:27:22.000Z | 2020-12-22T17:43:13.000Z | day-24/part-1/th-ch.py | evqna/adventofcode-2020 | 526bb9c87057d02bda4de9647932a0e25bdb3a5b | [
"MIT"
] | 3 | 2020-12-01T08:49:40.000Z | 2022-03-26T21:47:38.000Z | from tool.runners.python import SubmissionPy
WHITE = 0
BLACK = 1
DIRECTIONS = {
"e": (-1, 0), # (x, y) with axes right/bottom
"se": (-0.5, 1),
"sw": (0.5, 1),
"w": (1, 0),
"nw": (0.5, -1),
"ne": (-0.5, -1),
}
def test_th_ch():
"""
Run `python -m pytest ./day-24/part-1/th-ch.py` to t... | 25.275362 | 78 | 0.614106 |
f2a14427a74c318066628e0e58bdecded62e08df | 259 | py | Python | Python/tais_formula.py | mimseyedi/Kattis | a99ea2112544e89cc466feb7d81ffe6eb017f7e2 | [
"MIT"
] | null | null | null | Python/tais_formula.py | mimseyedi/Kattis | a99ea2112544e89cc466feb7d81ffe6eb017f7e2 | [
"MIT"
] | null | null | null | Python/tais_formula.py | mimseyedi/Kattis | a99ea2112544e89cc466feb7d81ffe6eb017f7e2 | [
"MIT"
] | null | null | null | n = int(input())
l1 = list()
l2 = list()
for _ in range(n):
t, v = input().split()
l1.append(int(t))
l2.append(float(v))
result = 0
for i in range(len(l1) - 1):
result += ((l2[i] + l2[i + 1]) / 2) * (l1[i + 1] - l1[i])
print(result / 1000)
| 17.266667 | 61 | 0.505792 |
f2a16388d4271df1ce952f8cf5640d703d0a37c8 | 66 | py | Python | nyoka/PMML44/doc/source/scripts/metadata.py | maxibor/nyoka | 19f480eee608035aa5fba368c96d4143bc2f5710 | [
"Apache-2.0"
] | 71 | 2020-08-24T07:59:56.000Z | 2022-03-21T08:36:35.000Z | nyoka/PMML44/doc/source/scripts/metadata.py | maxibor/nyoka | 19f480eee608035aa5fba368c96d4143bc2f5710 | [
"Apache-2.0"
] | 16 | 2020-09-02T10:27:36.000Z | 2022-03-31T05:37:12.000Z | nyoka/PMML44/doc/source/scripts/metadata.py | nimeshgit/nyoka | 43bf049825922213eeb3e6a8f39864f9b75d01d5 | [
"Apache-2.0"
] | 16 | 2020-09-17T15:01:33.000Z | 2022-03-28T03:13:25.000Z | __version__ = '3.1.0rc1'
__license__ = "Apache Software License"
| 16.5 | 39 | 0.742424 |
f2a1b14f9c19a43e8614ebf25a3e38b7faa2cee4 | 126 | py | Python | 2375.py | ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python | 9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da | [
"MIT"
] | 1 | 2022-01-14T08:45:32.000Z | 2022-01-14T08:45:32.000Z | 2375.py | ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python | 9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da | [
"MIT"
] | null | null | null | 2375.py | ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python | 9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da | [
"MIT"
] | null | null | null | n = int(input())
a, l, p = map(int, input().split())
if a >= n and l >= n and p >= n:
print("S")
else:
print("N") | 21 | 36 | 0.460317 |
f2a1e765b746fab626eeae28ec0da8d5f9142f43 | 643 | py | Python | modules/constant.py | aubravo/Clasificacion-de-actividad-volcanica | 0f7be0d77509fa13948a0f714103ce6e6d8cb2ae | [
"MIT"
] | 1 | 2021-10-20T02:42:20.000Z | 2021-10-20T02:42:20.000Z | modules/constant.py | aubravo/ActividadVolcanica | 0f7be0d77509fa13948a0f714103ce6e6d8cb2ae | [
"MIT"
] | null | null | null | modules/constant.py | aubravo/ActividadVolcanica | 0f7be0d77509fa13948a0f714103ce6e6d8cb2ae | [
"MIT"
] | null | null | null | """----------------------------------------------------------------------------
This is the core of the parsing stage:
*re_find comments will search for everything between the $$ and EOL
*re_findDataLabels will search for everything between the start of a tag
(##) and the start of the next tag ignoring the... | 45.928571 | 79 | 0.494557 |
f2a2b6ab09a985aa72dfef0d5e15e51b49c536f0 | 607,382 | py | Python | submission/custom_reinforcement_learning_geesenet.py | peterbonnesoeur/HandyRL | bb180677cb2d8268317b95c35c98d4536dd906f1 | [
"MIT"
] | null | null | null | submission/custom_reinforcement_learning_geesenet.py | peterbonnesoeur/HandyRL | bb180677cb2d8268317b95c35c98d4536dd906f1 | [
"MIT"
] | null | null | null | submission/custom_reinforcement_learning_geesenet.py | peterbonnesoeur/HandyRL | bb180677cb2d8268317b95c35c98d4536dd906f1 | [
"MIT"
] | null | null | null |
# This is a lightweight ML agent trained by self-play.
# After sharing this notebook,
# we will add Hungry Geese environment in our HandyRL library.
# https://github.com/DeNA/HandyRL
# We hope you enjoy reinforcement learning!
import pickle
import bz2
import base64
import numpy as np
import torch
import torch.nn as ... | 5,281.582609 | 604,151 | 0.966882 |
f2a3e15dbd9f5aecf7c8735a8a4cd1ee5164b116 | 5,879 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/f5networks/f5_modules/tests/unit/modules/network/f5/test_bigip_message_routing_transport_config.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/f5networks/f5_modules/tests/unit/modules/network/f5/test_bigip_message_routing_transport_config.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/f5networks/f5_modules/tests/unit/modules/network/f5/test_bigip_message_routing_transport_config.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright: (c) 2019, F5 Networks Inc.
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import os
import json
import pytest
import sys
if sys.version_info < (2... | 33.403409 | 136 | 0.628678 |
f2a46d1dd481c7acb620b8393b2d3f64e291c4db | 3,062 | py | Python | externals/IBK/scripts/personaltypes.py | Arombolosh/PVTool | 043f4c94b1f473e6e26b2ee0da8e6a064d9343c5 | [
"BSD-3-Clause"
] | 2 | 2020-06-03T08:22:25.000Z | 2020-06-04T13:05:19.000Z | externals/IBK/scripts/personaltypes.py | Arombolosh/PVTool | 043f4c94b1f473e6e26b2ee0da8e6a064d9343c5 | [
"BSD-3-Clause"
] | null | null | null | externals/IBK/scripts/personaltypes.py | Arombolosh/PVTool | 043f4c94b1f473e6e26b2ee0da8e6a064d9343c5 | [
"BSD-3-Clause"
] | null | null | null | ############################################################################
#
# Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
# Contact: http://www.qt-project.org/legal
#
# This file is part of Qt Creator.
#
# Commercial License Usage
# Licensees holding valid commercial Qt licenses may use this file in
# ... | 39.25641 | 78 | 0.68452 |
f2a4c80d5b858823c4ef9a8432cc56f697eb6900 | 3,618 | py | Python | tests/test_builder_path_parameter.py | tabebqena/flask-open-spec | ee1fd9cd349e46e1d8295fc2799898731392af6a | [
"MIT"
] | null | null | null | tests/test_builder_path_parameter.py | tabebqena/flask-open-spec | ee1fd9cd349e46e1d8295fc2799898731392af6a | [
"MIT"
] | null | null | null | tests/test_builder_path_parameter.py | tabebqena/flask-open-spec | ee1fd9cd349e46e1d8295fc2799898731392af6a | [
"MIT"
] | null | null | null | from ..open_oas.builder.builder import OasBuilder
from unittest import TestCase
from ..tests.schemas.schemas import PaginationSchema
from ..open_oas.decorators import Deferred, path_parameter
| 30.661017 | 68 | 0.369541 |
f2a53c9d24ff35deb138d84a030fd47b3eb06aa1 | 3,214 | py | Python | Proj/2048/test_with_f/tpybrain.py | PiscesDream/Ideas | 9ba710e62472f183ae4525f35659cd265c71392e | [
"Apache-2.0"
] | null | null | null | Proj/2048/test_with_f/tpybrain.py | PiscesDream/Ideas | 9ba710e62472f183ae4525f35659cd265c71392e | [
"Apache-2.0"
] | null | null | null | Proj/2048/test_with_f/tpybrain.py | PiscesDream/Ideas | 9ba710e62472f183ae4525f35659cd265c71392e | [
"Apache-2.0"
] | null | null | null | from load import *
from _2048 import _2048
from numpy import *
from pybrain.datasets import ClassificationDataSet
from pybrain.utilities import percentError
from pybrain.tools.shortcuts import buildNetwork
from pybrain.supervised.trainers import BackpropTrainer
from pybrain.structure.modules ... | 30.903846 | 120 | 0.528002 |
f2a5d347767b990fa97d063da0ee6a2aa890bd9d | 2,757 | py | Python | run.py | mishel254/py-password-locker | c14dd314251f078125df39104b99384c8cbd292b | [
"MIT"
] | null | null | null | run.py | mishel254/py-password-locker | c14dd314251f078125df39104b99384c8cbd292b | [
"MIT"
] | null | null | null | run.py | mishel254/py-password-locker | c14dd314251f078125df39104b99384c8cbd292b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.8
from passwords import Credentials
from login import accounts
import random
#create credentials func
#delete
'''
function to delete credentials & accounts
'''
'''
save credentials & accounts
'''
'''
search credentials
'''
'''
check if contact exist
'''
'''
display
'''
if __name__ == '... | 22.056 | 73 | 0.573087 |
f2a7f8c88dbf4887b1d166b409dc1bae27f7d5b9 | 815 | py | Python | tests/test_templates.py | knipknap/django_searchable | 6fd9f8aa766477e8648fdbed720e966af1b216b7 | [
"MIT"
] | 62 | 2018-11-05T09:06:39.000Z | 2022-02-18T15:33:06.000Z | tests/test_templates.py | knipknap/django_searchable | 6fd9f8aa766477e8648fdbed720e966af1b216b7 | [
"MIT"
] | 4 | 2018-11-05T07:57:27.000Z | 2021-05-30T00:37:35.000Z | tests/test_templates.py | knipknap/django_searchable | 6fd9f8aa766477e8648fdbed720e966af1b216b7 | [
"MIT"
] | 8 | 2018-11-08T16:10:04.000Z | 2022-01-27T09:31:53.000Z |
from django.test import TestCase
from django.test.client import RequestFactory
from django.template import Template, Context
from django.template.loader import render_to_string
from .models import Author, Book
expected_headers = '''
<tr>
<th>Name</th><th>The title</th><th>Comment</th><th>Stars</th><th>AuthorID</th>
<... | 32.6 | 78 | 0.69816 |
f2a86a4dc06766b095f7432edceef5b58b99f8ac | 103,875 | py | Python | diabolo_play/scripts/interactive_play.py | omron-sinicx/diabolo | a0258fdf634d27c7cf185b2e40c6b12699417d36 | [
"BSD-3-Clause"
] | 11 | 2021-10-15T15:51:24.000Z | 2021-12-26T16:43:17.000Z | diabolo_play/scripts/interactive_play.py | omron-sinicx/diabolo | a0258fdf634d27c7cf185b2e40c6b12699417d36 | [
"BSD-3-Clause"
] | null | null | null | diabolo_play/scripts/interactive_play.py | omron-sinicx/diabolo | a0258fdf634d27c7cf185b2e40c6b12699417d36 | [
"BSD-3-Clause"
] | 1 | 2022-02-01T01:58:37.000Z | 2022-02-01T01:58:37.000Z | #!/usr/bin/env python
import sys
import copy
import rospy
import tf_conversions
import tf.transformations as transform
import tf
from math import pi
import math
import thread
import os
import random
import geometry_msgs.msg
from geometry_msgs.msg import Pose, PoseArray
from trajectory_msgs.msg import JointTrajectory, J... | 44.014831 | 142 | 0.575779 |
f2a9847b819084a601442dc4d30086db0ba4a8ad | 1,378 | py | Python | genius.py | fedecalendino/alfred-lyrics-finder | 771eb9ddcd1849b6095b2e7b16a2335d25c74f30 | [
"MIT"
] | 3 | 2020-09-14T01:07:11.000Z | 2021-03-12T09:43:12.000Z | genius.py | fedecalendino/alfred-lyrics-finder | 771eb9ddcd1849b6095b2e7b16a2335d25c74f30 | [
"MIT"
] | null | null | null | genius.py | fedecalendino/alfred-lyrics-finder | 771eb9ddcd1849b6095b2e7b16a2335d25c74f30 | [
"MIT"
] | null | null | null | from workflow import web
| 26 | 85 | 0.564586 |
f2ab54aefe1c397702c020ba41c25aedb91b9d9b | 555 | py | Python | setup.py | akvatol/CosmOrc | 6ee1e1f3521a6d2b4c8eec104fa4e93db32d9352 | [
"MIT"
] | 1 | 2018-12-07T17:21:39.000Z | 2018-12-07T17:21:39.000Z | setup.py | akvatol/CosmOrc | 6ee1e1f3521a6d2b4c8eec104fa4e93db32d9352 | [
"MIT"
] | 8 | 2018-11-23T10:05:01.000Z | 2019-04-09T19:17:43.000Z | setup.py | akvatol/CosmOrc | 6ee1e1f3521a6d2b4c8eec104fa4e93db32d9352 | [
"MIT"
] | 1 | 2018-12-07T17:21:40.000Z | 2018-12-07T17:21:40.000Z | from setuptools import setup, find_packages
setup(
name='CosmOrc',
version='0.1',
include_package_data=True,
packages=find_packages(),
python_requires='>=3.6',
install_requires=[
'Click==7.0',
'numpy==1.16.2',
'pandas==0.24.2',
'pyaml==19.4.1',
'PySnooper... | 21.346154 | 43 | 0.506306 |
f2ac969d340070fc7df625b368680b8b1a6e1f30 | 323 | py | Python | src/ralph/assets/filters.py | DoNnMyTh/ralph | 97b91639fa68965ad3fd9d0d2652a6545a2a5b72 | [
"Apache-2.0"
] | 1,668 | 2015-01-01T12:51:20.000Z | 2022-03-29T09:05:35.000Z | src/ralph/assets/filters.py | hq-git/ralph | e2448caf02d6e5abfd81da2cff92aefe0a534883 | [
"Apache-2.0"
] | 2,314 | 2015-01-02T13:26:26.000Z | 2022-03-29T04:06:03.000Z | src/ralph/assets/filters.py | hq-git/ralph | e2448caf02d6e5abfd81da2cff92aefe0a534883 | [
"Apache-2.0"
] | 534 | 2015-01-05T12:40:28.000Z | 2022-03-29T21:10:12.000Z | from ralph.admin.filters import DateListFilter
| 32.3 | 78 | 0.724458 |
f2ada1e33fb51298d8dea6d25a8d7c5459098cce | 3,976 | py | Python | sweetie_bot_flexbe_behaviors/src/sweetie_bot_flexbe_behaviors/rbc18part2_sm.py | sweetie-bot-project/sweetie_bot_flexbe_behaviors | d8511564bb9d6125838b4373263fb68a8b858d70 | [
"BSD-3-Clause"
] | null | null | null | sweetie_bot_flexbe_behaviors/src/sweetie_bot_flexbe_behaviors/rbc18part2_sm.py | sweetie-bot-project/sweetie_bot_flexbe_behaviors | d8511564bb9d6125838b4373263fb68a8b858d70 | [
"BSD-3-Clause"
] | null | null | null | sweetie_bot_flexbe_behaviors/src/sweetie_bot_flexbe_behaviors/rbc18part2_sm.py | sweetie-bot-project/sweetie_bot_flexbe_behaviors | d8511564bb9d6125838b4373263fb68a8b858d70 | [
"BSD-3-Clause"
] | 1 | 2019-12-23T05:06:26.000Z | 2019-12-23T05:06:26.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###########################################################
# WARNING: Generated code! #
# ************************** #
# Manual changes may get lost if file is generated again. #
# Only code inside the [MANUAL] ta... | 37.866667 | 217 | 0.647133 |
f2b258bd5e08c7cfd6f403dd7e2e5de3a6cb8a04 | 9,512 | py | Python | steel_segmentation/utils.py | marcomatteo/steel-segmentation-nbdev | dde19b0b3bf7657ab575e691bca1751592aecc67 | [
"Apache-2.0"
] | 1 | 2021-08-20T14:56:26.000Z | 2021-08-20T14:56:26.000Z | steel_segmentation/utils.py | marcomatteo/steel-segmentation-nbdev | dde19b0b3bf7657ab575e691bca1751592aecc67 | [
"Apache-2.0"
] | 1 | 2021-05-03T16:42:34.000Z | 2021-05-03T16:42:34.000Z | steel_segmentation/utils.py | marcomatteo/steel_segmentation | dde19b0b3bf7657ab575e691bca1751592aecc67 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/01_eda.ipynb (unless otherwise specified).
__all__ = ['palet', 'seed_everything', 'print_competition_data', 'get_train_pivot', 'get_train_df', 'count_pct',
'get_classification_df', 'rle2mask', 'make_mask', 'mask2rle', 'plot_mask_image', 'plot_defected_image',
... | 34.589091 | 114 | 0.637931 |
f2b2b39cb97742f076427952e2dfe5b302a0b56b | 1,548 | py | Python | webapp/vaga_remanescente/views.py | prefeiturasp/SME-VagasNaCreche-API | 20ae8862375124c7459fe6ff2d2d33ed34d136fb | [
"0BSD"
] | null | null | null | webapp/vaga_remanescente/views.py | prefeiturasp/SME-VagasNaCreche-API | 20ae8862375124c7459fe6ff2d2d33ed34d136fb | [
"0BSD"
] | 9 | 2020-06-06T00:20:46.000Z | 2022-02-10T10:57:35.000Z | webapp/vaga_remanescente/views.py | prefeiturasp/SME-VagasNaCreche-API | 20ae8862375124c7459fe6ff2d2d33ed34d136fb | [
"0BSD"
] | 1 | 2020-09-17T14:46:24.000Z | 2020-09-17T14:46:24.000Z | import pickle
import zlib
from django.core.cache import cache
from fila_da_creche.queries.dt_atualizacao import get_dt_atualizacao
from rest_framework.response import Response
from rest_framework.views import APIView
from vaga_remanescente.queries.distrito import get_distritos
from vaga_remanescente.queries.dr... | 36 | 89 | 0.672481 |
f2b2b69ac9c8d9c5d5b9c1cb7f1d8d0174255511 | 2,310 | py | Python | utils/html_markup.py | carlboudreau007/BlockChain_Demo | fb90212e9a401aa3b757e49af7fd28d250bafbc4 | [
"MIT"
] | null | null | null | utils/html_markup.py | carlboudreau007/BlockChain_Demo | fb90212e9a401aa3b757e49af7fd28d250bafbc4 | [
"MIT"
] | null | null | null | utils/html_markup.py | carlboudreau007/BlockChain_Demo | fb90212e9a401aa3b757e49af7fd28d250bafbc4 | [
"MIT"
] | null | null | null | import glob
from flask import Markup
SERVER_OPTIONS = [{'text': 'Local Host', 'value': '127.0.0.1'},
{'text': 'Test weved23962', 'value': '10.201.144.167'},
{'text': 'Stage weves31263', 'value': '10.50.8.130'},
{'text': 'Prod wevep31172', 'value': '10.48.164.198'}
... | 32.535211 | 93 | 0.577056 |
f2b606f246e1cf267d985e5ff3efcca86aeda8cd | 2,237 | py | Python | streamlit_app.py | sebastiandres/xkcd_streamlit | 68b1c01dd8eca34135126ebb33a2d539a0d25650 | [
"MIT"
] | 1 | 2021-07-21T03:20:52.000Z | 2021-07-21T03:20:52.000Z | streamlit_app.py | sebastiandres/xkcd_streamlit | 68b1c01dd8eca34135126ebb33a2d539a0d25650 | [
"MIT"
] | null | null | null | streamlit_app.py | sebastiandres/xkcd_streamlit | 68b1c01dd8eca34135126ebb33a2d539a0d25650 | [
"MIT"
] | null | null | null | import streamlit as st
from xkcd import xkcd_plot
from shared import translate, LANGUAGE_DICT
# Set page properties for the app
st.set_page_config(
page_title="Streamlit & XKCD",
layout="wide",
initial_sidebar_state="expanded",
)
# Initialize the session states - f_list has functions and colors
if 'f_list... | 37.283333 | 93 | 0.644166 |
f2b72d00fd0e6778383cb9c2b7f0e084dcbc51b2 | 5,798 | py | Python | gui/wndRecipeProcedure.py | ralic/gnu_brewtools | ba09dc11e23d93e623f497286f3f2c3e9aaa41c2 | [
"BSD-3-Clause"
] | null | null | null | gui/wndRecipeProcedure.py | ralic/gnu_brewtools | ba09dc11e23d93e623f497286f3f2c3e9aaa41c2 | [
"BSD-3-Clause"
] | null | null | null | gui/wndRecipeProcedure.py | ralic/gnu_brewtools | ba09dc11e23d93e623f497286f3f2c3e9aaa41c2 | [
"BSD-3-Clause"
] | null | null | null | """
* Copyright (c) 2008, Flagon Slayer Brewery
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 35.570552 | 121 | 0.723698 |
f2b7bb0de76b2e0ba5ce5495b4efc9822958361d | 1,018 | py | Python | oidc_provider/migrations/0028_change_response_types_field_1_of_3.py | avallbona/django-oidc-provider | 93b41e9ada42ca7c4bd6c860de83793ba3701d68 | [
"MIT"
] | null | null | null | oidc_provider/migrations/0028_change_response_types_field_1_of_3.py | avallbona/django-oidc-provider | 93b41e9ada42ca7c4bd6c860de83793ba3701d68 | [
"MIT"
] | null | null | null | oidc_provider/migrations/0028_change_response_types_field_1_of_3.py | avallbona/django-oidc-provider | 93b41e9ada42ca7c4bd6c860de83793ba3701d68 | [
"MIT"
] | 1 | 2021-02-17T16:23:41.000Z | 2021-02-17T16:23:41.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-12-16 02:43
from __future__ import unicode_literals
from django.db import migrations, models
import oidc_provider.fields
| 37.703704 | 415 | 0.652259 |
f2b7c2a6955082c094b447b57a5e843a6c763e15 | 4,693 | py | Python | cyclegan/data/celeba/mask_face_region_with_avail_kpts.py | dingyanna/DepthNets | a13b05e315b0732b6a28594b1343a6940bbab229 | [
"MIT"
] | 114 | 2018-11-27T19:34:13.000Z | 2022-03-26T19:39:00.000Z | cyclegan/data/celeba/mask_face_region_with_avail_kpts.py | dingyanna/DepthNets | a13b05e315b0732b6a28594b1343a6940bbab229 | [
"MIT"
] | 9 | 2018-12-11T09:05:22.000Z | 2021-07-02T21:27:34.000Z | cyclegan/data/celeba/mask_face_region_with_avail_kpts.py | kdh4672/Face_Recognition_With_Augmentation | b0795b97c94bbba1a1e3310670d0868f3eacb479 | [
"MIT"
] | 32 | 2018-12-03T00:52:54.000Z | 2021-08-30T01:45:31.000Z | """
This module masks faces using kpts already detected
"""
import numpy as np
import argparse
import cv2
#from RCN.preprocessing.tools import BGR2Gray
from PIL import Image
import h5py
if __name__ == "__main__":
#parser = argparse.ArgumentParser(description='Getting keypoint prediction\
# ... | 32.818182 | 97 | 0.603665 |
f2b7d3d40db3233a8eadd8a94f91fbf6d7c9b69b | 589 | py | Python | task1/task1.py | ZHN202/opencv_learning | f0725955e6e525d3918c1117763bf0aaa4299777 | [
"MIT"
] | 1 | 2021-11-04T03:41:04.000Z | 2021-11-04T03:41:04.000Z | task1/task1.py | ZHN202/opencv_learning | f0725955e6e525d3918c1117763bf0aaa4299777 | [
"MIT"
] | null | null | null | task1/task1.py | ZHN202/opencv_learning | f0725955e6e525d3918c1117763bf0aaa4299777 | [
"MIT"
] | null | null | null | import cv2 as cv
import numpy as np
img = cv.imread('test.png')
# 1920*1080h,s,v = cv.split(hsvimg)
img = cv.resize(img, dsize=(1920, 1080), fx=1, fy=1, interpolation=cv.INTER_NEAREST)
# hsv
hsvimg = cv.cvtColor(img, cv.COLOR_BGR2HSV)
lower_y = np.array([20, 43, 46])
upper_y = np.array([34, 255, 220])
mask = cv.inRa... | 26.772727 | 84 | 0.665535 |
f2b89b6b2b0dc41d3a0e5d1ce5504c256753035d | 926 | py | Python | reservations/migrations/0001_initial.py | danielmicaletti/ride_cell | 910be09ebc714b8c744edaf81559c8a9266473e3 | [
"MIT"
] | null | null | null | reservations/migrations/0001_initial.py | danielmicaletti/ride_cell | 910be09ebc714b8c744edaf81559c8a9266473e3 | [
"MIT"
] | null | null | null | reservations/migrations/0001_initial.py | danielmicaletti/ride_cell | 910be09ebc714b8c744edaf81559c8a9266473e3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-04-26 00:00
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
| 31.931034 | 158 | 0.62959 |