hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
bfb6340fbbc7e56129c9bfe9ba48fe36ac1730fd
900
py
Python
Aprendendo Python/cursopythonudamy/aula24_operadorternario.py
JlucasS777/Aprendendo-Python
a3a960260070f0d604c27fbbc41578a6ab11edb5
[ "MIT" ]
null
null
null
Aprendendo Python/cursopythonudamy/aula24_operadorternario.py
JlucasS777/Aprendendo-Python
a3a960260070f0d604c27fbbc41578a6ab11edb5
[ "MIT" ]
null
null
null
Aprendendo Python/cursopythonudamy/aula24_operadorternario.py
JlucasS777/Aprendendo-Python
a3a960260070f0d604c27fbbc41578a6ab11edb5
[ "MIT" ]
null
null
null
# Operador Ternário '''login_user = False if login_user : # isso é o mesmo que if login_user == True: msg = 'Usuário logado' else: msg = 'Usuário precisa logar' print(msg) print(i)''' ''' O código acima é o mesmo que : ''' # login_user = False # msg ='Usuário logado.'if login_user else ' Usuário precisa loga...
30
111
0.628889
0
0
0
0
0
0
0
0
630
0.687773
bfb69b8488c9035534337b7d04075f3c5e669cc8
471
py
Python
images_of/entrypoints/bot.py
amici-ursi/ImagesOfNetwork
a8922c24b7e2b0df50282842ebb0998a3cb7d60a
[ "MIT" ]
12
2016-04-23T23:24:44.000Z
2018-09-17T04:07:56.000Z
images_of/entrypoints/bot.py
amici-ursi/ImagesOfNetwork
a8922c24b7e2b0df50282842ebb0998a3cb7d60a
[ "MIT" ]
90
2016-04-10T06:12:23.000Z
2017-07-24T14:15:38.000Z
images_of/entrypoints/bot.py
amici-ursi/ImagesOfNetwork
a8922c24b7e2b0df50282842ebb0998a3cb7d60a
[ "MIT" ]
9
2016-04-24T21:30:21.000Z
2020-06-15T13:45:12.000Z
import click from images_of import command, settings, Reddit from images_of.bot import Bot @command @click.option('--no-post', is_flag=True, help='Do not post to reddit.') def main(no_post): """Reddit Network scraper and x-poster bot.""" r = Reddit('{} v6.0 /u/{}'.format(settings.NETWORK_NAME, ...
22.428571
71
0.615711
0
0
0
0
337
0.715499
0
0
106
0.225053
bfb6e0c1a847c2bc7fe17d92901369d447464178
4,740
py
Python
server/architext/verbs/edit_world.py
JimenaAndrea/architext
fb49624f7301902a357815af0ca5d320cfc6ddb6
[ "MIT" ]
3
2020-08-02T07:14:25.000Z
2021-04-25T12:22:53.000Z
server/architext/verbs/edit_world.py
JimenaAndrea/architext
fb49624f7301902a357815af0ca5d320cfc6ddb6
[ "MIT" ]
130
2020-07-15T12:09:30.000Z
2021-05-27T15:02:01.000Z
server/architext/verbs/edit_world.py
JimenaAndrea/architext
fb49624f7301902a357815af0ca5d320cfc6ddb6
[ "MIT" ]
1
2021-06-10T15:51:49.000Z
2021-06-10T15:51:49.000Z
from . import verb import textwrap from .. import entities import architext.strings as strings class EditWorld(verb.Verb): command = _('editworld') permissions = verb.CREATOR def __init__(self, session): super().__init__(session) self.world = self.session.user.room.world_state.get_world() ...
41.217391
184
0.606962
4,644
0.979747
0
0
0
0
0
0
923
0.194726
bfb7c5fc2640cb5beb6e90cd007956cfc19c4d95
569
py
Python
count_and_say.py
lutianming/leetcode
848c7470ff5fd23608cc954be23732f60488ed8a
[ "MIT" ]
null
null
null
count_and_say.py
lutianming/leetcode
848c7470ff5fd23608cc954be23732f60488ed8a
[ "MIT" ]
null
null
null
count_and_say.py
lutianming/leetcode
848c7470ff5fd23608cc954be23732f60488ed8a
[ "MIT" ]
null
null
null
class Solution: # @return a string def countAndSay(self, n): say = '1' for i in range(n-1): say = self._count_say(say) return say def _count_say(self, s): curr = None count = 0 say = "" for c in s: if c == curr: ...
21.884615
47
0.420035
528
0.927944
0
0
0
0
0
0
23
0.040422
bfb7d3cf4eee3e62630ca9d2b93475cfa95338cc
2,510
py
Python
src/1-prepare/cmftools/cmf_fldmap_downscale.py
DirkEilander/compound_hotspots
f9d7960633be80e8e24d2f2563df367cc3f060c6
[ "BSD-3-Clause" ]
1
2022-01-17T07:02:13.000Z
2022-01-17T07:02:13.000Z
src/1-prepare/cmftools/cmf_fldmap_downscale.py
DirkEilander/compound_hotspots
f9d7960633be80e8e24d2f2563df367cc3f060c6
[ "BSD-3-Clause" ]
null
null
null
src/1-prepare/cmftools/cmf_fldmap_downscale.py
DirkEilander/compound_hotspots
f9d7960633be80e8e24d2f2563df367cc3f060c6
[ "BSD-3-Clause" ]
1
2022-01-17T02:48:28.000Z
2022-01-17T02:48:28.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np import os from os.path import join, dirname, realpath, basename import rasterio import click import glob import subprocess import xarray as xr import pandas as pd from datetime import timedelta from rasterio.transform import from_origin @click.command()...
33.918919
94
0.642231
0
0
0
0
2,161
0.860956
0
0
461
0.183665
bfb8ead9c6c7c310a5414613dd9bbb4a9dc0c78b
5,083
py
Python
scaling.py
samsalemi/OpenSim-Python-Simulation
f66bcce7aaaf3b4095d623b3ad2df484d123fa24
[ "Apache-2.0" ]
2
2021-11-01T20:21:23.000Z
2021-11-26T03:14:25.000Z
scaling.py
samsalemi/OpenSim-Python-Simulation
f66bcce7aaaf3b4095d623b3ad2df484d123fa24
[ "Apache-2.0" ]
null
null
null
scaling.py
samsalemi/OpenSim-Python-Simulation
f66bcce7aaaf3b4095d623b3ad2df484d123fa24
[ "Apache-2.0" ]
null
null
null
# June 7 2018 # Author: Samuel Salemi # University of Guelph Masters Graduate # This script determines scaling factors and places them on model Gait2354 def scale(): import os import opensim as osim import shutil import directories # Global Directories allDir = list(directori...
38.801527
89
0.69821
0
0
0
0
0
0
0
0
1,750
0.344285
bfbab397793ac92eea059f9b2857f1026c1521b5
1,159
py
Python
Retos/Ordenar Lista/ordenarLista.py
juanpanu/Juan_DS_Path
24e71616dae692e931e95cd3815ca88fa9b8a46a
[ "MIT" ]
null
null
null
Retos/Ordenar Lista/ordenarLista.py
juanpanu/Juan_DS_Path
24e71616dae692e931e95cd3815ca88fa9b8a46a
[ "MIT" ]
null
null
null
Retos/Ordenar Lista/ordenarLista.py
juanpanu/Juan_DS_Path
24e71616dae692e931e95cd3815ca88fa9b8a46a
[ "MIT" ]
null
null
null
# Ejercicio #2: Ordenamiento en listas. # Tecnologías sugeridas: Python o Javascript (elegir), Git # Realizar un programa que dada un lista de números desordenada, retorne una lista con # todos sus valores ordenados de menor a mayor. No se puede utilizar la función “sort” u # otras existentes en Javascript para el orde...
34.088235
97
0.719586
0
0
0
0
0
0
0
0
706
0.60497
bfbbe34de6cfae26177dec781f0aff1524bf1b1b
1,666
py
Python
tirmite/bowtie2_wrappers.py
Adamtaranto/mapmite
e2e85d73fa1df3a1c5d9893f7b35bcb6f6a1558b
[ "MIT" ]
2
2019-05-30T00:46:27.000Z
2019-12-18T11:01:49.000Z
tirmite/bowtie2_wrappers.py
Adamtaranto/mapmite
e2e85d73fa1df3a1c5d9893f7b35bcb6f6a1558b
[ "MIT" ]
10
2017-09-19T01:24:02.000Z
2021-04-08T00:35:40.000Z
tirmite/bowtie2_wrappers.py
Adamtaranto/mapmite
e2e85d73fa1df3a1c5d9893f7b35bcb6f6a1558b
[ "MIT" ]
3
2019-12-18T11:01:51.000Z
2021-09-02T01:26:34.000Z
import os from shlex import quote def _bowtie2build_cmd(bt2Path="bowtie2-build",IdxPath="db/GenIdx",genome=None): '''Construct the bowtie2-build command''' # Base command cmd = ' '.join(['mkdir db &&',quote(bt2Path),quote(os.path.abspath(genome)),IdxPath]) return cmd def _bowtie2_cmd(bt2Path="bowtie2",tirFasta=No...
47.6
178
0.676471
0
0
0
0
0
0
0
0
1,016
0.609844
bfbbe35054b047337e457c136d547a61c6afb53d
2,716
py
Python
action_blocking_helping_functions.py
netceteragroup/Flatland-Challenge
4292e8aa778d264d025ad6d32926840864b22a21
[ "MIT" ]
4
2021-01-15T10:49:33.000Z
2021-12-31T08:11:35.000Z
action_blocking_helping_functions.py
netceteragroup/Flatland-Challenge
4292e8aa778d264d025ad6d32926840864b22a21
[ "MIT" ]
null
null
null
action_blocking_helping_functions.py
netceteragroup/Flatland-Challenge
4292e8aa778d264d025ad6d32926840864b22a21
[ "MIT" ]
null
null
null
from envs.flatland.observations.segment_graph import Graph def get_coords(direction): if direction == 0: return -1, 0 elif direction == 1: return 0, 1 elif direction == 2: return 1, 0 elif direction == 3: return 0, -1 def stop_deadlock_when_unavoidable(timestamp_segme...
29.846154
118
0.591679
0
0
0
0
0
0
0
0
241
0.088733
bfbd4529c7fa51f7002af4f36973add53c6da978
997
py
Python
venv/lib/python2.7/site-packages/ebcli/objects/event.py
zwachtel11/fruitful-backend
45b8994917182e7b684b9e25944cc79c9494c9f3
[ "MIT" ]
4
2018-04-19T19:56:53.000Z
2021-06-28T19:53:41.000Z
venv/lib/python2.7/site-packages/ebcli/objects/event.py
zwachtel11/fruitful-backend
45b8994917182e7b684b9e25944cc79c9494c9f3
[ "MIT" ]
1
2020-06-03T13:57:07.000Z
2020-06-22T10:27:48.000Z
venv/lib/python2.7/site-packages/ebcli/objects/event.py
zwachtel11/fruitful-backend
45b8994917182e7b684b9e25944cc79c9494c9f3
[ "MIT" ]
3
2018-07-30T05:34:42.000Z
2019-04-30T20:02:54.000Z
# Copyright 2014 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
39.88
85
0.718154
433
0.434303
0
0
0
0
0
0
549
0.550652
bfbdb2606c7d9fbb6e570e314eadff3809426b49
13,493
py
Python
com/vmware/vapi/bindings/struct.py
sumitrsystems/Vmware
7705d9979bee71f02c71d63890616409044cba08
[ "MIT" ]
null
null
null
com/vmware/vapi/bindings/struct.py
sumitrsystems/Vmware
7705d9979bee71f02c71d63890616409044cba08
[ "MIT" ]
null
null
null
com/vmware/vapi/bindings/struct.py
sumitrsystems/Vmware
7705d9979bee71f02c71d63890616409044cba08
[ "MIT" ]
null
null
null
""" Bindings data classes """ __author__ = 'VMware, Inc.' __copyright__ = 'Copyright 2015-2016 VMware, Inc. All rights reserved. -- VMware Confidential' # pylint: disable=line-too-long import decimal import json import six import sys from vmware.vapi.bindings.common import raise_core_exception from vmware.vapi.dat...
34.955959
128
0.613207
12,986
0.962425
0
0
1,852
0.137256
0
0
7,199
0.533536
bfc050097243e7b2091975c40a2359b3639deda4
78
py
Python
tests/parameters/secret.py
yehonadav/bunbun
3703c837859ee27bb87604a236d051601c830c9b
[ "Apache-2.0" ]
1
2019-08-04T17:31:06.000Z
2019-08-04T17:31:06.000Z
tests/parameters/secret.py
yehonadav/bunbun
3703c837859ee27bb87604a236d051601c830c9b
[ "Apache-2.0" ]
5
2021-03-18T21:18:21.000Z
2022-03-11T23:32:06.000Z
tests/parameters/secret.py
yehonadav/bunbun
3703c837859ee27bb87604a236d051601c830c9b
[ "Apache-2.0" ]
null
null
null
hub = 'http://18.216.225.173:4444/wd/hub' user = 'user' password = 'password'
19.5
41
0.653846
0
0
0
0
0
0
0
0
51
0.653846
bfc16f3c9732a3bac02cf561d1ad42fdb042389b
1,005
py
Python
checks/checkpython.py
h4ck3rm1k3/salt-formulas
8b0265faa64fa1d2a4149ce9aeb279e3861150fd
[ "CC0-1.0" ]
5
2015-01-26T20:52:54.000Z
2019-06-18T06:48:55.000Z
checks/checkpython.py
h4ck3rm1k3/salt-formulas
8b0265faa64fa1d2a4149ce9aeb279e3861150fd
[ "CC0-1.0" ]
1
2015-01-06T10:54:00.000Z
2015-01-06T10:54:00.000Z
checks/checkpython.py
h4ck3rm1k3/salt-formulas
8b0265faa64fa1d2a4149ce9aeb279e3861150fd
[ "CC0-1.0" ]
4
2015-01-19T16:39:48.000Z
2020-11-04T05:52:02.000Z
import yaml import sys from jinja2 import Environment, PackageLoader, Template import os # shebangs #!yaml_jinja #!yaml_mako #!mako|yaml #!jinja|yaml #!jinja|mako|yaml #!mako|yaml|stateconf #!jinja|yaml|stateconf #!mako|yaml_odict #!mako|yaml_odict|stateconf def check(fn): #print fn print("Consider {0}".forma...
20.9375
70
0.536318
0
0
0
0
0
0
0
0
556
0.553234
bfc30a77b97d4e74224bb01d940181301a27ab6f
537
py
Python
dthm4kaiako/config/filters/markdown.py
taskmaker1/dthm4kaiako
681babc10b3223b5ae7fdf19b98c53d2bef4ea1a
[ "MIT" ]
3
2018-12-10T07:03:02.000Z
2021-04-12T02:18:30.000Z
dthm4kaiako/config/filters/markdown.py
taskmaker1/dthm4kaiako
681babc10b3223b5ae7fdf19b98c53d2bef4ea1a
[ "MIT" ]
566
2018-09-30T02:54:28.000Z
2022-03-28T01:20:01.000Z
dthm4kaiako/config/filters/markdown.py
taskmaker1/dthm4kaiako
681babc10b3223b5ae7fdf19b98c53d2bef4ea1a
[ "MIT" ]
3
2019-04-04T19:53:39.000Z
2021-05-16T02:04:46.000Z
"""Template filter for rendering Markdown to HTML.""" from django import template from django.utils.safestring import mark_safe from django.template.defaultfilters import stringfilter from markdownx.utils import markdownify register = template.Library() @register.filter @stringfilter def markdown(raw_markdown): ...
23.347826
56
0.748603
0
0
0
0
278
0.517691
0
0
220
0.409683
bfc43a6e6874e02847e5dd1f797f3d3037107d33
1,572
py
Python
tests/test_tk_file_extention_dialog.py
MaxWeise/Filebackup_Automation
fc4b7480897b34b1b3315f5505c0b96c8714202d
[ "MIT" ]
null
null
null
tests/test_tk_file_extention_dialog.py
MaxWeise/Filebackup_Automation
fc4b7480897b34b1b3315f5505c0b96c8714202d
[ "MIT" ]
null
null
null
tests/test_tk_file_extention_dialog.py
MaxWeise/Filebackup_Automation
fc4b7480897b34b1b3315f5505c0b96c8714202d
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Testsuite for the user text input Created 15.12.2021 @author Max Weise """ import unittest from unittest import TestCase from backup_script.tk_file_extention_dialog import TextInputDialog class Test_TextInputDialog(TestCase): """ Testcase for the custom tkinter text input dialog.""" ...
30.230769
97
0.681934
1,302
0.828244
0
0
0
0
0
0
460
0.292621
bfc4c4ec186ec83ad923e2b9cf71b87520c6a873
755
py
Python
My_Account/migrations/0006_auto_20200426_1701.py
CHESyrian/Syrians
8376e9bed6e3a03f536d8aacd523d630f6bc4345
[ "MIT" ]
null
null
null
My_Account/migrations/0006_auto_20200426_1701.py
CHESyrian/Syrians
8376e9bed6e3a03f536d8aacd523d630f6bc4345
[ "MIT" ]
null
null
null
My_Account/migrations/0006_auto_20200426_1701.py
CHESyrian/Syrians
8376e9bed6e3a03f536d8aacd523d630f6bc4345
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-04-26 14:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('My_Account', '0005_auto_20200426_1643'), ] operations = [ migrations.AlterField( model_name='profile_model', name='C...
31.458333
147
0.664901
662
0.876821
0
0
0
0
0
0
313
0.41457
bfc5e0326ff06b4f88532664293de1aca3963505
3,993
py
Python
efls-data/xfl/data/local_join/worker.py
finalljx/Elastic-Federated-Learning-Solution
fb588fdc03a2c1598b40b36712b27bdffdd24258
[ "Apache-2.0" ]
null
null
null
efls-data/xfl/data/local_join/worker.py
finalljx/Elastic-Federated-Learning-Solution
fb588fdc03a2c1598b40b36712b27bdffdd24258
[ "Apache-2.0" ]
null
null
null
efls-data/xfl/data/local_join/worker.py
finalljx/Elastic-Federated-Learning-Solution
fb588fdc03a2c1598b40b36712b27bdffdd24258
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Alibaba Group Holding Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
46.430233
138
0.650889
2,954
0.739795
0
0
0
0
0
0
1,071
0.268219
bfc67912cacb053d18b81a8c4ccd2fa05884f9dd
8,528
py
Python
wifi12306.py
Arnie97/emu-screenshot-server
a50526c0d852cd61050ba2926d43c84241d57afb
[ "MIT" ]
42
2018-01-16T10:48:58.000Z
2020-08-28T07:34:56.000Z
wifi12306.py
Arnie97/emu-screenshot
a50526c0d852cd61050ba2926d43c84241d57afb
[ "MIT" ]
1
2018-11-12T06:20:50.000Z
2018-11-12T06:45:30.000Z
wifi12306.py
Arnie97/emu-screenshot
a50526c0d852cd61050ba2926d43c84241d57afb
[ "MIT" ]
4
2018-06-09T02:29:45.000Z
2020-08-07T11:47:52.000Z
#!/usr/bin/env python3 from datetime import date from itertools import chain from operator import itemgetter from os.path import commonprefix from tickets import API from typing import Any, Iterable, Dict, List, Optional, Tuple from util import repl, AttrDict COMMENT_MAPPING = { 'A': "", 'B': "宿", 'C': "...
33.443137
198
0.577744
8,032
0.927269
0
0
2,828
0.326483
0
0
1,562
0.180328
bfc69200893675851efff0c9ed38ba8da908af17
1,648
py
Python
tests/components/coronavirus/test_config_flow.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
11
2018-02-16T15:35:47.000Z
2020-01-14T15:20:00.000Z
tests/components/coronavirus/test_config_flow.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
79
2020-07-23T07:13:37.000Z
2022-03-22T06:02:37.000Z
tests/components/coronavirus/test_config_flow.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11
2020-12-16T13:48:14.000Z
2022-02-01T00:28:05.000Z
"""Test the Coronavirus config flow.""" from unittest.mock import MagicMock, patch from aiohttp import ClientError from homeassistant import config_entries, setup from homeassistant.components.coronavirus.const import DOMAIN, OPTION_WORLDWIDE from homeassistant.core import HomeAssistant async def test_form(hass: Ho...
32.313725
79
0.703277
0
0
0
0
560
0.339806
1,284
0.779126
345
0.209345
bfc8836265bf50d2912b69d0feaa958739783ce7
64,150
py
Python
src/view/perspective.py
struts2spring/sql-editor
082868dd92cbd8f0f6715f734f9ebe64032cbe4a
[ "MIT" ]
9
2018-10-15T04:57:37.000Z
2021-12-07T07:39:35.000Z
src/view/perspective.py
struts2spring/sql-editor
082868dd92cbd8f0f6715f734f9ebe64032cbe4a
[ "MIT" ]
13
2018-10-19T11:52:44.000Z
2021-09-08T00:39:30.000Z
src/view/perspective.py
struts2spring/sql-editor
082868dd92cbd8f0f6715f734f9ebe64032cbe4a
[ "MIT" ]
3
2018-10-25T11:08:04.000Z
2021-02-23T08:28:31.000Z
import logging.config import wx from src.sqlite_executer.ConnectExecuteSqlite import SQLExecuter from src.view.AutoCompleteTextCtrl import TextCtrlAutoComplete # from src.view.TreePanel import CreatingTreePanel from src.view.constants import * from wx.lib.agw.aui.aui_constants import actionDragFloatingPane, A...
47.589021
237
0.595479
61,808
0.963492
0
0
0
0
0
0
21,089
0.328745
bfc92f5dcf23f382d12d6bd9cbb5c26b13f0c728
268
py
Python
PythonBehave/features/environment.py
adamd1985/BDDArticle
be1f7fd67d8e195c31864622966ee88d3a2e257a
[ "Apache-2.0" ]
null
null
null
PythonBehave/features/environment.py
adamd1985/BDDArticle
be1f7fd67d8e195c31864622966ee88d3a2e257a
[ "Apache-2.0" ]
null
null
null
PythonBehave/features/environment.py
adamd1985/BDDArticle
be1f7fd67d8e195c31864622966ee88d3a2e257a
[ "Apache-2.0" ]
null
null
null
from flaskr import app def before_feature(context, feature): flask_app = app.create_app() flask_app.testing = True context.client = flask_app.test_client() def before_scenario(context, scenario): context.users = list() context.results = list()
20.615385
44
0.716418
0
0
0
0
0
0
0
0
0
0
bfc96dc65fba4dfeccca21923ae5c19d56187622
1,042
py
Python
pyscripts/truncate_lines.py
joseph62/Scripts
13aab2a51957894f4d524b7a868cb7e51dbba980
[ "MIT" ]
null
null
null
pyscripts/truncate_lines.py
joseph62/Scripts
13aab2a51957894f4d524b7a868cb7e51dbba980
[ "MIT" ]
null
null
null
pyscripts/truncate_lines.py
joseph62/Scripts
13aab2a51957894f4d524b7a868cb7e51dbba980
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import sys import argparse import signal DEFAULT_LINE_LENGTH = 80 def parse_arguments(args): parser = argparse.ArgumentParser( description="Trucate incoming lines to a specified length with an optional suffix" ) parser.add_argument( "-l", "--length", help="The ma...
22.652174
90
0.642035
0
0
204
0.195777
0
0
0
0
251
0.240883
bfcb37f297e73011c6f83e4feb6d86e5b96b07bc
30,944
py
Python
mpisppy/opt/lshaped.py
Matthew-Signorotti/mpi-sppy
5c6b4b8cd26af517ff09706d11751f2fb05b1b5f
[ "BSD-3-Clause" ]
null
null
null
mpisppy/opt/lshaped.py
Matthew-Signorotti/mpi-sppy
5c6b4b8cd26af517ff09706d11751f2fb05b1b5f
[ "BSD-3-Clause" ]
null
null
null
mpisppy/opt/lshaped.py
Matthew-Signorotti/mpi-sppy
5c6b4b8cd26af517ff09706d11751f2fb05b1b5f
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2020 by B. Knueven, D. Mildebrath, C. Muir, J-P Watson, and D.L. Woodruff # This software is distributed under the 3-clause BSD License. import pyomo.environ as pyo import mpisppy.utils.sputils as sputils import numpy as np import itertools import time import sys import mpisppy.spbase as spbase from mpispp...
39.824968
152
0.607226
27,259
0.880914
0
0
0
0
0
0
8,580
0.277275
bfcbc5d0c314cd0ac9510073757086968e66ea31
4,812
py
Python
Features/NucleotideContent.py
jcg/d-tailor
7ea83bcf7a2cda21eb8727575ff2b20ac8b49606
[ "BSD-2-Clause" ]
14
2016-05-19T08:31:44.000Z
2021-08-05T08:56:56.000Z
Features/NucleotideContent.py
jcg/d-tailor
7ea83bcf7a2cda21eb8727575ff2b20ac8b49606
[ "BSD-2-Clause" ]
1
2018-09-25T12:00:23.000Z
2018-12-10T18:42:31.000Z
Features/NucleotideContent.py
jcg/d-tailor
7ea83bcf7a2cda21eb8727575ff2b20ac8b49606
[ "BSD-2-Clause" ]
4
2016-06-23T21:40:49.000Z
2021-02-02T03:05:35.000Z
''' Created on Nov 16, 2011 @author: jcg ''' from Features.Feature import Feature import Functions from uuid import uuid4 class NucleotideContent(Feature): """ Nucleotide Content Feature solution - solution where nucleotide content should be computed label - some label to append to the name ...
43.745455
206
0.625104
4,611
0.958229
0
0
0
0
0
0
1,007
0.209268
bfcc3bf3ce4a6a7791d6831071ec72ca44993852
25
py
Python
python/testData/intentions/PyConvertTypeCommentToVariableAnnotationIntentionTest/simpleAssignment.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/intentions/PyConvertTypeCommentToVariableAnnotationIntentionTest/simpleAssignment.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/intentions/PyConvertTypeCommentToVariableAnnotationIntentionTest/simpleAssignment.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
x = 42 # ty<caret>pe: int
25
25
0.6
0
0
0
0
0
0
0
0
18
0.72
bfcdbaafa9988638af7ac347c436a853bc52d3ed
6,090
py
Python
python/etl/tests/spark/app/test_smartstore_src_to_log0.py
beobest2/delta
0107d5322492c420a044fa41d90be03375606bea
[ "Apache-2.0" ]
1
2021-12-01T00:35:13.000Z
2021-12-01T00:35:13.000Z
python/etl/tests/spark/app/test_smartstore_src_to_log0.py
beobest2/delta
0107d5322492c420a044fa41d90be03375606bea
[ "Apache-2.0" ]
null
null
null
python/etl/tests/spark/app/test_smartstore_src_to_log0.py
beobest2/delta
0107d5322492c420a044fa41d90be03375606bea
[ "Apache-2.0" ]
null
null
null
from argparse import Namespace import pytest from laplace_spark.app.smartstore_src_to_log0 import SparkAppSmartstoreSrcToLog0 from laplace_spark.constants import DATE_ID_COLUMN_NAME from laplace_spark.modules.provider import Provider from laplace_spark.modules.utils.laplace_utils import LaplaceUtils from tests.utils i...
29.563107
98
0.691297
3,769
0.618883
1,758
0.28867
1,938
0.318227
0
0
613
0.100657
bfd00740f86fba0d1df5af433b0fc3f4e9436cc0
3,962
py
Python
lambda/ec2-event-processor/handler.py
mattmcclean/mlops-ray-cdk
202e127a11ac84749ec45b4d345e2557bf3e8121
[ "Apache-2.0" ]
null
null
null
lambda/ec2-event-processor/handler.py
mattmcclean/mlops-ray-cdk
202e127a11ac84749ec45b4d345e2557bf3e8121
[ "Apache-2.0" ]
null
null
null
lambda/ec2-event-processor/handler.py
mattmcclean/mlops-ray-cdk
202e127a11ac84749ec45b4d345e2557bf3e8121
[ "Apache-2.0" ]
null
null
null
import os import json import boto3 # create the boto3 clients ec2 = boto3.client('ec2') elbv2 = boto3.client('elbv2') # Get the ALB Target Group ARNs MLFLOW_TARGET_GROUP_ARN=os.getenv('MLFLOW_TARGET_GROUP_ARN') TENSORBOARD_TARGET_GROUP_ARN=os.getenv('TENSORBOARD_TARGET_GROUP_ARN') RAY_DASHBOARD_TARGET_GROUP_ARN=os.g...
37.377358
115
0.692075
0
0
0
0
0
0
0
0
1,450
0.365977
bfd04b70e5cd39ca29b574b5353e8f0319f41223
2,325
py
Python
app.py
laurohen/api-flask-mysql
3660d8828203476ea87b2580ed4b0508c0ea3af6
[ "MIT" ]
null
null
null
app.py
laurohen/api-flask-mysql
3660d8828203476ea87b2580ed4b0508c0ea3af6
[ "MIT" ]
null
null
null
app.py
laurohen/api-flask-mysql
3660d8828203476ea87b2580ed4b0508c0ea3af6
[ "MIT" ]
null
null
null
from flask import Flask, request, jsonify, make_response from flask_sqlalchemy import SQLAlchemy from marshmallow import fields from marshmallow_sqlalchemy import ModelSchema app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://username:password@host:port/database-name' db = SQLAlchemy(app) ...
26.420455
99
0.67828
562
0.24172
0
0
1,345
0.578495
0
0
324
0.139355
bfd196b146e9b5ea426e42cd1a578fe228ee3eac
647
py
Python
inspector/checks/constants.py
yoyowallet/inspector
a6ee3328a4dcf49b0e5b62d23195ed44f515a705
[ "Apache-2.0" ]
7
2019-03-03T14:47:47.000Z
2020-10-31T00:26:52.000Z
inspector/checks/constants.py
yoyowallet/inspector
a6ee3328a4dcf49b0e5b62d23195ed44f515a705
[ "Apache-2.0" ]
2
2019-03-06T19:35:41.000Z
2020-11-04T11:57:18.000Z
inspector/checks/constants.py
yoyowallet/inspector
a6ee3328a4dcf49b0e5b62d23195ed44f515a705
[ "Apache-2.0" ]
3
2019-03-03T16:29:44.000Z
2020-10-31T00:47:01.000Z
from model_utils import Choices RELATIONS = Choices( (0, 'eq', '='), (1, 'ne', '!='), (2, 'gt', '>'), (3, 'lt', '<'), (4, 'ge', '>='), (5, 'le', '<='), ) STATUSES = Choices( ('NEW', 'New'), ('RUNNING', 'Running'), ('FINISHED', 'Finished'), ('ERROR', 'Error') ) RESULTS = Choice...
19.029412
50
0.479134
0
0
0
0
0
0
0
0
295
0.455951
bfd4a079399c71c1620bc498d4b73a09c55a55ad
661
bzl
Python
versions.bzl
spiralgenetics/biograph
33c78278ce673e885f38435384f9578bfbf9cdb8
[ "BSD-2-Clause" ]
16
2021-07-14T23:32:31.000Z
2022-03-24T16:25:15.000Z
versions.bzl
spiralgenetics/biograph
33c78278ce673e885f38435384f9578bfbf9cdb8
[ "BSD-2-Clause" ]
9
2021-07-20T20:39:47.000Z
2021-09-16T20:57:59.000Z
versions.bzl
spiralgenetics/biograph
33c78278ce673e885f38435384f9578bfbf9cdb8
[ "BSD-2-Clause" ]
9
2021-07-15T19:38:35.000Z
2022-01-31T19:24:56.000Z
# Product versions live here (and only here). They should be bumped at every # release. # # NOTE: This is parsable by both bazel and sh. Do not add arbitrary # text here. # # Versions *must* adhere to semantic versioning rules. See http://semver.org/ # # Don't forget to also update relevant docs and README.txt files. ...
30.045455
77
0.750378
0
0
0
0
0
0
0
0
572
0.865356
bfd4b07cf0067ae5efca658be3f46767e83ea056
523
py
Python
35. searchInsertPosition.py
izan-majeed/leetcode
b7fbc734771f94522498d833f72443d07c4e7ed1
[ "Apache-2.0" ]
1
2021-06-20T09:59:59.000Z
2021-06-20T09:59:59.000Z
35. searchInsertPosition.py
izan-majeed/leetcode
b7fbc734771f94522498d833f72443d07c4e7ed1
[ "Apache-2.0" ]
null
null
null
35. searchInsertPosition.py
izan-majeed/leetcode
b7fbc734771f94522498d833f72443d07c4e7ed1
[ "Apache-2.0" ]
null
null
null
from typing import List class Solution: def searchInsert(self, a: List[int], target: int) -> int: l, r = 0, len(a)-1 #binary search while l<=r: mid = (l+r)//2 if target == a[mid]: return mid elif target > a[mid]: ...
23.772727
61
0.418738
493
0.942639
0
0
0
0
0
0
28
0.053537
bfd7afdce647ef41b496ff6aa9e1fd9678d81b54
542
py
Python
Lesson 02.gf/intermediate_expressions.py
gfoo003/programming-together
225e0a2255dd8da1f1ef32d2a88deea27c050f10
[ "MIT" ]
null
null
null
Lesson 02.gf/intermediate_expressions.py
gfoo003/programming-together
225e0a2255dd8da1f1ef32d2a88deea27c050f10
[ "MIT" ]
null
null
null
Lesson 02.gf/intermediate_expressions.py
gfoo003/programming-together
225e0a2255dd8da1f1ef32d2a88deea27c050f10
[ "MIT" ]
null
null
null
name=input("hi, what's your name?") age=input("how old are you?") print("your name is ", name, "and you are ", age ) # int(x) = change string to integer # str(x)= change integer to string # to check type, print(type"x") # you can only print "results" of the same type, unless doing string interpolation. # difference b...
30.111111
103
0.726937
0
0
0
0
0
0
0
0
413
0.761993
bfd85a1488c8ca4d9abcbfd556e3a3f3dfa1b395
1,877
py
Python
trainNaiveBayes.py
tianxiangchen2015/bayes-Apache-spark-reuters
705a05a1d8dddef27c4bdd68c08174996822ca3a
[ "Apache-2.0" ]
null
null
null
trainNaiveBayes.py
tianxiangchen2015/bayes-Apache-spark-reuters
705a05a1d8dddef27c4bdd68c08174996822ca3a
[ "Apache-2.0" ]
null
null
null
trainNaiveBayes.py
tianxiangchen2015/bayes-Apache-spark-reuters
705a05a1d8dddef27c4bdd68c08174996822ca3a
[ "Apache-2.0" ]
null
null
null
from pyspark.mllib.feature import HashingTF, IDF from pyspark.mllib.regression import LabeledPoint from pyspark.mllib.classification import NaiveBayes import os.path os.environ["SPARK_HOME"] = "/usr/local/spark" os.environ["PYSPARK_PYTHON"]="/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7" from p...
34.127273
101
0.726692
0
0
0
0
0
0
0
0
670
0.356953
bfd93482b38e9761ce0b5a5309864c90fa7acac9
7,298
py
Python
tests/filesystems/test_s3.py
altescy/minato
bcb198a3f65192367df71a6c3a3324a6b2285785
[ "MIT" ]
8
2021-05-16T00:50:01.000Z
2022-02-09T11:15:56.000Z
tests/filesystems/test_s3.py
altescy/minato
bcb198a3f65192367df71a6c3a3324a6b2285785
[ "MIT" ]
null
null
null
tests/filesystems/test_s3.py
altescy/minato
bcb198a3f65192367df71a6c3a3324a6b2285785
[ "MIT" ]
1
2021-06-20T07:22:53.000Z
2021-06-20T07:22:53.000Z
import tempfile from pathlib import Path import boto3 from moto import mock_s3 from minato.filesystems import S3FileSystem @mock_s3 def test_open_file() -> None: url = "s3://my_bucket/path/to/file" conn = boto3.resource("s3", region_name="us-east-1") conn.create_bucket(Bucket="my_bucket") fs = S3F...
27.231343
85
0.643327
0
0
0
0
7,137
0.977939
0
0
1,635
0.224034
449bbabb756ac92734377e46afd4f7a309af927c
12,269
py
Python
app/school/tests/test_moderation_api.py
bondeveloper/maischool
16bf2afe99d26caa067b7912e88839639cf2191e
[ "MIT" ]
null
null
null
app/school/tests/test_moderation_api.py
bondeveloper/maischool
16bf2afe99d26caa067b7912e88839639cf2191e
[ "MIT" ]
null
null
null
app/school/tests/test_moderation_api.py
bondeveloper/maischool
16bf2afe99d26caa067b7912e88839639cf2191e
[ "MIT" ]
null
null
null
from django.test import TestCase from django.urls import reverse from django.utils import timezone from django.contrib.auth import get_user_model from rest_framework.test import APIClient from rest_framework import status from core.models import Category, School, Session, Subject, Level, Lesson, \ ...
28.532558
76
0.5108
11,760
0.958513
0
0
0
0
0
0
1,856
0.151276
449c986b0e31e6560fc043808de0556dfd190e0f
169
py
Python
packages/server/invites/src/domain/controller/__init__.py
gbartoczevicz/moosic
003ff5cff628505093cc08ad0fbd273272172a51
[ "MIT" ]
3
2021-09-30T00:41:31.000Z
2022-03-15T00:14:23.000Z
packages/server/invites/src/domain/controller/__init__.py
gbartoczevicz/moosic
003ff5cff628505093cc08ad0fbd273272172a51
[ "MIT" ]
13
2021-09-20T22:29:52.000Z
2021-12-05T01:59:34.000Z
packages/server/invites/src/domain/controller/__init__.py
gabrielbartoczevicz/moosic
003ff5cff628505093cc08ad0fbd273272172a51
[ "MIT" ]
1
2021-11-10T22:11:55.000Z
2021-11-10T22:11:55.000Z
from .create_invite import CreateInviteController from ..usecases import create_invite_usecase create_invite_controller = CreateInviteController(create_invite_usecase)
33.8
72
0.893491
0
0
0
0
0
0
0
0
0
0
449d14cc3d79279400a714ef3f44c1383e23b569
2,937
py
Python
main.py
danialre/ise_ipsk
a11929c19a7fcff7311cea2f457a6eac1823d77b
[ "Apache-2.0" ]
null
null
null
main.py
danialre/ise_ipsk
a11929c19a7fcff7311cea2f457a6eac1823d77b
[ "Apache-2.0" ]
null
null
null
main.py
danialre/ise_ipsk
a11929c19a7fcff7311cea2f457a6eac1823d77b
[ "Apache-2.0" ]
null
null
null
import traceback, logging, signal, time, ssl from functools import partial from tornado import httpserver, ioloop, log from tornado.web import Application import settings, isetools, isehandlers, ruckushandlers PORT = 2443 def create_server(serverlist, username, password, emailer=None, certfile=None, keyfile=...
40.232877
90
0.706844
0
0
0
0
0
0
0
0
769
0.261832
449e221a47922edae38daf290f2bdc462fa87ed3
446
py
Python
dueros/directive/Pay/Buy.py
Mryan2005/bot-sdk-python
f961aedf141e966badd5cd577ad8913dd9733998
[ "Apache-2.0" ]
70
2018-01-04T06:47:58.000Z
2021-07-28T03:08:48.000Z
dueros/directive/Pay/Buy.py
mlzboy/bot-sdk-python
664c90ec6d0abbb0844c030cd3114693a96b12ab
[ "Apache-2.0" ]
16
2018-01-02T15:25:23.000Z
2020-03-14T07:25:44.000Z
dueros/directive/Pay/Buy.py
mlzboy/bot-sdk-python
664c90ec6d0abbb0844c030cd3114693a96b12ab
[ "Apache-2.0" ]
32
2018-01-09T10:19:46.000Z
2021-05-06T08:35:52.000Z
#!/usr/bin/env python3 # -*- encoding=utf-8 -*- # description: # author:jack # create_time: 2019-07-04 from dueros.directive.BaseDirective import BaseDirective class Buy(BaseDirective): """ 用于生成Buy指令的类 """ def __init__(self, product_id, token=''): super(Buy, self).__init__('Connections.Send...
21.238095
64
0.639013
297
0.642857
0
0
0
0
0
0
199
0.430736
44a08928a2a3e4699cdfa43b536f8936d6d36c31
6,064
py
Python
deployer/loggers/__init__.py
timgates42/python-deployer
04c67c887357c202e315412473ee3541b4675f02
[ "BSD-2-Clause-FreeBSD" ]
39
2015-01-06T23:56:56.000Z
2021-12-15T09:43:35.000Z
deployer/loggers/__init__.py
timgates42/python-deployer
04c67c887357c202e315412473ee3541b4675f02
[ "BSD-2-Clause-FreeBSD" ]
1
2017-02-11T21:12:41.000Z
2017-02-11T21:12:41.000Z
deployer/loggers/__init__.py
timgates42/python-deployer
04c67c887357c202e315412473ee3541b4675f02
[ "BSD-2-Clause-FreeBSD" ]
14
2015-03-14T17:52:18.000Z
2021-11-25T18:23:38.000Z
__all__ = ('Actions', 'LoggerInterface', 'RunCallback', 'FileCallback', 'Logger', 'DummyLoggerInterface') # # Interface: group of loggers which can attach multiple loggers. # class Actions(object): Run = 'run' Open = 'open' Fork = 'fork' class LoggerInterface(object): """ Base class for loggin...
25.91453
123
0.540897
5,831
0.961577
0
0
167
0.02754
0
0
818
0.134894
44a13e0681ea8a22398ff1905b2af689bf8ea5fe
477
py
Python
Deep-Hash-learning-for-Remote-Sensing-Image-Retrieval/utils/generateUniformData.py
LiuChaoXD/Remote-Sensing-Image-Retrieval-Models
c135562263102080716e35260f111dcff7762264
[ "MIT" ]
4
2021-01-30T15:45:43.000Z
2021-12-19T03:41:57.000Z
Deep-Hash-learning-for-Remote-Sensing-Image-Retrieval/utils/generateUniformData.py
LiuChaoXD/Remote-Sensing-Image-Retrieval-Models
c135562263102080716e35260f111dcff7762264
[ "MIT" ]
null
null
null
Deep-Hash-learning-for-Remote-Sensing-Image-Retrieval/utils/generateUniformData.py
LiuChaoXD/Remote-Sensing-Image-Retrieval-Models
c135562263102080716e35260f111dcff7762264
[ "MIT" ]
1
2020-12-21T14:23:36.000Z
2020-12-21T14:23:36.000Z
import numpy as np def generate_binary_distribution(batchsize, dim): z_batch = np.zeros((batchsize, dim)) for b in range(batchsize): value_zeros_ones = np.zeros((dim)) for i in range(dim): if i < dim // 2: value_zeros_ones[i] = 0. else: v...
28.058824
49
0.563941
0
0
0
0
0
0
0
0
0
0
44a242250b25eed8bf545b060d0762a2f0751de5
2,949
py
Python
etc/pip_install/setup.py
hmost1/incubator-toree
f58a86f2a9466c122d52ed5abd8122c8ce40b2c5
[ "Apache-2.0" ]
31
2017-03-02T09:00:22.000Z
2021-03-27T12:14:46.000Z
etc/pip_install/setup.py
hmost1/incubator-toree
f58a86f2a9466c122d52ed5abd8122c8ce40b2c5
[ "Apache-2.0" ]
3
2016-11-03T16:05:08.000Z
2020-02-20T07:12:50.000Z
etc/pip_install/setup.py
hmost1/incubator-toree
f58a86f2a9466c122d52ed5abd8122c8ce40b2c5
[ "Apache-2.0" ]
8
2016-09-27T12:58:48.000Z
2020-12-01T11:35:48.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
36.407407
102
0.707358
0
0
0
0
0
0
0
0
2,192
0.743303
44a2791177029781912dd84d5fb81d78441a1833
1,488
py
Python
server-python3/test/test.py
Aaron-Ming/websocket_terminal
42c24391d51c275eabf1f879fb312b9a3614f51e
[ "MIT" ]
40
2016-11-20T09:48:27.000Z
2021-04-02T00:29:14.000Z
server-python3/test/test.py
Aaron-Ming/websocket_terminal
42c24391d51c275eabf1f879fb312b9a3614f51e
[ "MIT" ]
6
2018-01-07T03:43:22.000Z
2022-03-21T08:43:33.000Z
server-python3/test/test.py
glensc/websocket_terminal
42c24391d51c275eabf1f879fb312b9a3614f51e
[ "MIT" ]
20
2016-12-02T06:00:27.000Z
2021-08-15T11:40:34.000Z
import threading import sys import subprocess import eventlet import eventlet.tpool import eventlet.green.subprocess from eventlet import green eventlet.monkey_patch() def consume(stream, pref=b'T> '): print("CHK consume 1") p = pref while True: print("CHK consume 2") data = stream.rea...
22.208955
118
0.640457
0
0
0
0
0
0
0
0
307
0.206317
44a509e87a818b2445cd5c73173ed6b47ce8470d
1,591
py
Python
climatecontrol/cli_utils.py
daviskirk/climatecontrol
f1fed474d649eaf4d75ed5b7cdda333faef4bbd7
[ "MIT" ]
19
2018-01-19T13:42:18.000Z
2022-02-27T22:20:39.000Z
climatecontrol/cli_utils.py
daviskirk/climatecontrol
f1fed474d649eaf4d75ed5b7cdda333faef4bbd7
[ "MIT" ]
27
2016-06-01T23:03:48.000Z
2022-02-27T22:24:36.000Z
climatecontrol/cli_utils.py
daviskirk/climatecontrol
f1fed474d649eaf4d75ed5b7cdda333faef4bbd7
[ "MIT" ]
2
2017-07-10T09:49:55.000Z
2018-01-10T12:38:34.000Z
"""CLI utils for easy command line extras.""" import click from climatecontrol import core def click_settings_file_option( settings_obj: core.Climate, click_obj=click, option_name="settings", **kw ): """Build a `click` option decorator. Args: settings_obj: settings object to load configuration ...
26.081967
81
0.63105
0
0
0
0
0
0
0
0
914
0.574481
44a6f0369943db97ab0830abb53adb928e4a9136
356
py
Python
src/pyglottolog/admin_commands/evobib.py
SimonGreenhill/pyglottolog
1e0aa0cdc5ae35906c763f9219c6db9b976f8d38
[ "Apache-2.0" ]
7
2019-07-28T16:09:05.000Z
2021-09-12T20:21:55.000Z
src/pyglottolog/admin_commands/evobib.py
SimonGreenhill/pyglottolog
1e0aa0cdc5ae35906c763f9219c6db9b976f8d38
[ "Apache-2.0" ]
52
2019-06-18T05:16:38.000Z
2022-02-21T11:20:02.000Z
src/pyglottolog/admin_commands/evobib.py
SimonGreenhill/pyglottolog
1e0aa0cdc5ae35906c763f9219c6db9b976f8d38
[ "Apache-2.0" ]
6
2019-07-26T17:40:25.000Z
2021-12-08T00:59:38.000Z
""" """ from clldutils.clilib import PathType from pyglottolog.references import evobib def register(parser): parser.add_argument( 'bib', type=PathType(type='file'), help='path to downloaded evobib-converted.bib') def run(args): # pragma: no cover evobib.update(args.bib, args.repo...
19.777778
72
0.676966
0
0
0
0
0
0
0
0
90
0.252809
44a98b03850d9eb1474c0e0ef2e1403a15713bb9
1,198
py
Python
Chapter 3/latihan03.py
Gadeth/Basic-Python
470b6e1ccb1da6c0b17801970004bda38e462d19
[ "Apache-2.0" ]
null
null
null
Chapter 3/latihan03.py
Gadeth/Basic-Python
470b6e1ccb1da6c0b17801970004bda38e462d19
[ "Apache-2.0" ]
null
null
null
Chapter 3/latihan03.py
Gadeth/Basic-Python
470b6e1ccb1da6c0b17801970004bda38e462d19
[ "Apache-2.0" ]
null
null
null
# import library import datetime # input nama user nama = input("Hallo... nama saya Mr. Kompie, nama Anda siapa? ") # tampilkan nama user print("Oh.. nama Anda", nama, ", nama yang bagus sekali.") # kasih jeda 3 detik time.sleep(3) # input tahun lahir thnLahir = int(input("BTW... " + nama + "kamu lah...
23.96
70
0.643573
0
0
0
0
0
0
0
0
736
0.614357
44aa0a66e785bf81c7382dde12bd47b1cd507bfb
155
py
Python
Baekjoon/Python/10814.py
KHJcode/Algorithm-study
fa08d3c752fcb3557fd45fb394157926afc0de4a
[ "MIT" ]
2
2020-05-23T01:55:38.000Z
2020-07-07T15:59:00.000Z
Baekjoon/Python/10814.py
KHJcode/Algorithm-study
fa08d3c752fcb3557fd45fb394157926afc0de4a
[ "MIT" ]
null
null
null
Baekjoon/Python/10814.py
KHJcode/Algorithm-study
fa08d3c752fcb3557fd45fb394157926afc0de4a
[ "MIT" ]
null
null
null
n = int(input()) person = [] for i in range(n): a,b = map(str, input().split()) person.append((int(a),i,b)) for i in sorted(person): print(i[0],i[2])
22.142857
42
0.580645
0
0
0
0
0
0
0
0
0
0
44aa2a1d82bec0cc44381f7808cea5fcad7ec790
2,888
py
Python
utils.py
andreloezer/zombie-dice
0a97f0d14a2c5ada480e416e4a3f3fc1f47f8c30
[ "MIT" ]
null
null
null
utils.py
andreloezer/zombie-dice
0a97f0d14a2c5ada480e416e4a3f3fc1f47f8c30
[ "MIT" ]
null
null
null
utils.py
andreloezer/zombie-dice
0a97f0d14a2c5ada480e416e4a3f3fc1f47f8c30
[ "MIT" ]
null
null
null
"""Miscellaneous functions goes in here. """ from os import system from config import OS from strings import UtilsStrings as Strings def clear_console() -> None: """Clear console terminal. """ command = "clear" if OS in ("nt", "dos"): command = "cls" system(command) def char_input() -...
27.245283
111
0.61115
0
0
0
0
0
0
0
0
1,141
0.395083
44abe0da4aed5d12f6ff0fc73008b9641dec2d50
335
py
Python
sqltricks/__init__.py
jiyulongxu/sql-tricks
6eee96849ce09d46dd15ec0f48b6022bd5738fff
[ "Apache-2.0" ]
1
2022-02-21T03:09:26.000Z
2022-02-21T03:09:26.000Z
sqltricks/__init__.py
jiyulongxu/sql-tricks
6eee96849ce09d46dd15ec0f48b6022bd5738fff
[ "Apache-2.0" ]
null
null
null
sqltricks/__init__.py
jiyulongxu/sql-tricks
6eee96849ce09d46dd15ec0f48b6022bd5738fff
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ 文档教程 https://sqxccdy.github.io/odpc/sql_build_model.html """ from sqltricks.create import * from sqltricks.fields import * from sqltricks.insert import * from sqltricks.query import * from sqltricks.drop import * FORMAT = '%(asctime)-15s %(levelname)s::::%(message)s' logging.basicConfig(f...
19.705882
54
0.725373
0
0
0
0
0
0
0
0
141
0.411079
44ac65411f95028d1ff96429ecd33acb3965c521
1,348
py
Python
tests/test_analyser/test_sniffer_shpr.py
di-unipi-socc/micro-tosca
5d5c9361b34eeabaed8955ddc62282607672bd81
[ "MIT" ]
null
null
null
tests/test_analyser/test_sniffer_shpr.py
di-unipi-socc/micro-tosca
5d5c9361b34eeabaed8955ddc62282607672bd81
[ "MIT" ]
3
2019-10-02T13:55:39.000Z
2021-06-01T22:55:20.000Z
tests/test_analyser/test_sniffer_shpr.py
di-unipi-socc/microFreshener-core
5d5c9361b34eeabaed8955ddc62282607672bd81
[ "MIT" ]
null
null
null
from unittest import TestCase from microfreshener.core.importer import YMLImporter from microfreshener.core.analyser.sniffer import SharedPersistencySmellSniffer from microfreshener.core.analyser.smell import SharedPersistencySmell from microfreshener.core.model.groups import Edge class TestSharedPersitence(TestCase...
36.432432
78
0.714392
1,062
0.787834
0
0
225
0.166914
0
0
48
0.035608
44acf77d849af78689caf76f78bd3a87709f0bd6
1,112
py
Python
problems/dfs/Solution417.py
akalu/cs-problems-python
9b1bd8e3932be62135a38a77f955ded9a766b654
[ "MIT" ]
null
null
null
problems/dfs/Solution417.py
akalu/cs-problems-python
9b1bd8e3932be62135a38a77f955ded9a766b654
[ "MIT" ]
null
null
null
problems/dfs/Solution417.py
akalu/cs-problems-python
9b1bd8e3932be62135a38a77f955ded9a766b654
[ "MIT" ]
null
null
null
""" Given an m x n matrix of non-negative integers representing the height of each unit cell in a continent, the "Pacific ocean" touches the left and top edges of the matrix and the "Atlantic ocean" touches the right and bottom edges. Water can only flow in four directions (up, down, left, or right) f...
30.888889
97
0.566547
27
0.024281
0
0
0
0
0
0
1,082
0.973022
44ad4566bf3e052d6f2cd5576c859905edc198bd
9,068
py
Python
geneal/applications/tsp/travelling_salesman_problem.py
NeveIsa/geneal
064b0409912088886bf56fe9a729d74dac92a235
[ "MIT" ]
47
2020-07-10T14:28:52.000Z
2022-03-25T17:20:52.000Z
geneal/applications/tsp/travelling_salesman_problem.py
NeveIsa/geneal
064b0409912088886bf56fe9a729d74dac92a235
[ "MIT" ]
10
2020-08-08T16:35:40.000Z
2022-03-08T00:07:19.000Z
geneal/applications/tsp/travelling_salesman_problem.py
NeveIsa/geneal
064b0409912088886bf56fe9a729d74dac92a235
[ "MIT" ]
14
2020-08-07T20:49:18.000Z
2022-03-31T17:55:47.000Z
import random import time from functools import reduce import hashlib from collections import defaultdict import numpy as np from numba import njit from numba.core import types from numba.typed import Dict from geneal.applications.tsp.mutation_strategies import MutationStrategies from geneal.genetic_algorithms import...
31.929577
104
0.638619
7,442
0.820688
0
0
1,287
0.141928
0
0
2,747
0.302933
44ae9d732979b2682fbbac20b12b7e914fab8154
388
py
Python
src/377. Combination Sum IV.py
xiaonanln/myleetcode-python
95d282f21a257f937cd22ef20c3590a69919e307
[ "Apache-2.0" ]
null
null
null
src/377. Combination Sum IV.py
xiaonanln/myleetcode-python
95d282f21a257f937cd22ef20c3590a69919e307
[ "Apache-2.0" ]
null
null
null
src/377. Combination Sum IV.py
xiaonanln/myleetcode-python
95d282f21a257f937cd22ef20c3590a69919e307
[ "Apache-2.0" ]
null
null
null
class Solution(object): def combinationSum4(self, nums, target): """ :type nums: List[int] :type target: int :rtype: int """ dp = [0] * (target + 1) dp[0] = 1 for i in xrange(1, target+1): fi = 0 for n in nums: if i < n: continue fi += dp[i - n] dp[i] = fi return dp[target] nums =...
17.636364
46
0.574742
311
0.801546
0
0
0
0
0
0
67
0.17268
44aee10963b90c303639a9d3405aa32659f7cfd5
12,188
py
Python
src/component/PlaylistDialog.py
renchangjiu/kon-windows
a20f33fc98cd197e1e601b5d97adecabee9176d8
[ "MIT" ]
2
2020-06-01T00:34:50.000Z
2020-12-08T14:40:41.000Z
src/component/PlaylistDialog.py
renchangjiu/kon-windows
a20f33fc98cd197e1e601b5d97adecabee9176d8
[ "MIT" ]
null
null
null
src/component/PlaylistDialog.py
renchangjiu/kon-windows
a20f33fc98cd197e1e601b5d97adecabee9176d8
[ "MIT" ]
null
null
null
from PyQt5 import QtGui from PyQt5.QtCore import Qt, QEvent, QModelIndex from PyQt5.QtGui import QPixmap, QColor, QIcon, QCursor, QPainter, QPen from PyQt5.QtWidgets import QWidget, QTableWidgetItem, \ QAction, QMenu, QLabel, QWidgetAction, QHBoxLayout from src.Apps import Apps from src.model.MusicList import Musi...
44.808824
118
0.628159
12,165
0.968243
0
0
0
0
0
0
3,011
0.239653
44b09eface0e025db8dfa1c9489702d2607f4f1d
8,486
py
Python
linux/avnav_gui.py
e-sailing/avnav
b3e8df4d6fa122b05309eee09197c716e29b64ec
[ "MIT" ]
null
null
null
linux/avnav_gui.py
e-sailing/avnav
b3e8df4d6fa122b05309eee09197c716e29b64ec
[ "MIT" ]
null
null
null
linux/avnav_gui.py
e-sailing/avnav
b3e8df4d6fa122b05309eee09197c716e29b64ec
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: ts=2 sw=2 et ai ############################################################################### # Copyright (c) 2012,2014 Andreas Vogel andreas@wellenvogel.net # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and a...
36.895652
168
0.600283
6,096
0.71836
0
0
0
0
0
0
2,113
0.248998
44b0bea0625ce86caee7e87e49ae974396869730
2,714
py
Python
scripts/crawlAll.py
hysds/sciflo
f706288405c8eee59a2f883bab3dcb5229615367
[ "Apache-2.0" ]
null
null
null
scripts/crawlAll.py
hysds/sciflo
f706288405c8eee59a2f883bab3dcb5229615367
[ "Apache-2.0" ]
null
null
null
scripts/crawlAll.py
hysds/sciflo
f706288405c8eee59a2f883bab3dcb5229615367
[ "Apache-2.0" ]
1
2019-02-07T01:08:34.000Z
2019-02-07T01:08:34.000Z
#!/usr/bin/env python # ----------------------------------------------------------------------------- # Name: crawlAll.py # Purpose: Crawl and catalog using crawler config in crawler directory. # # Author: Gerald Manipon # # Created: Wed Nov 29 18:42:34 2006 # Copyright: (c) 2006, California Insti...
33.925
79
0.611643
0
0
0
0
0
0
0
0
958
0.352985
44b155e14a6c99695a7fb8ef157cc096fe1beb35
8,162
py
Python
powermeterapatorec3.py
grillbaer/data-logger
f0d5b878e8f4a2f8eafcc8453d8f3b42c210558d
[ "Apache-2.0" ]
9
2018-03-11T20:46:31.000Z
2022-03-28T13:28:43.000Z
powermeterapatorec3.py
grillbaer/data-logger
f0d5b878e8f4a2f8eafcc8453d8f3b42c210558d
[ "Apache-2.0" ]
null
null
null
powermeterapatorec3.py
grillbaer/data-logger
f0d5b878e8f4a2f8eafcc8453d8f3b42c210558d
[ "Apache-2.0" ]
1
2020-05-03T07:15:08.000Z
2020-05-03T07:15:08.000Z
""" Communication with APATOR EC3 power meter to get its actual readings. """ from __future__ import annotations __author__ = 'Holger Fleischmann' __copyright__ = 'Copyright 2021, Holger Fleischmann, Bavaria/Germany' __license__ = 'Apache License 2.0' import logging import time from typing import NamedTuple, Optiona...
33.314286
115
0.636364
7,439
0.911419
0
0
0
0
0
0
1,887
0.231193
44b22136f8f7845ba30e0d616c9b44281b0dd3fc
913
py
Python
core/migrations/0009_auto_20190421_1740.py
support-me/support-me
385e605c5a5506e2e712d007df9c0241ef941dee
[ "Unlicense" ]
null
null
null
core/migrations/0009_auto_20190421_1740.py
support-me/support-me
385e605c5a5506e2e712d007df9c0241ef941dee
[ "Unlicense" ]
29
2019-04-12T21:08:33.000Z
2022-02-10T07:46:06.000Z
core/migrations/0009_auto_20190421_1740.py
support-me/support-me
385e605c5a5506e2e712d007df9c0241ef941dee
[ "Unlicense" ]
null
null
null
# Generated by Django 2.2 on 2019-04-21 21:40 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0008_auto_20190421_1144'), ] operations = [ migrations.AlterField( ...
32.607143
161
0.661555
756
0.828039
0
0
0
0
0
0
171
0.187295
44b2ed7cd64ff69161aa71d32d7a5abf6638b0c2
6,939
py
Python
django/peering_coord/peering_policy.py
netsys-lab/scion-peering-coordinator
cd2fc9e9423242cafe90e71a54f4ad9e763acdae
[ "MIT" ]
null
null
null
django/peering_coord/peering_policy.py
netsys-lab/scion-peering-coordinator
cd2fc9e9423242cafe90e71a54f4ad9e763acdae
[ "MIT" ]
null
null
null
django/peering_coord/peering_policy.py
netsys-lab/scion-peering-coordinator
cd2fc9e9423242cafe90e71a54f4ad9e763acdae
[ "MIT" ]
null
null
null
"""Functions for updating links according to peering policies""" from django.db import transaction from django.db.models import Q, QuerySet from peering_coord.api.client_connection import ClientRegistry from peering_coord.api.peering_pb2 import AsyncError from peering_coord.models.ixp import VLAN, Interface, Owner fr...
40.817647
99
0.683816
0
0
0
0
2,090
0.301196
0
0
1,866
0.268915
44b55411280b2c91c5d8253412bafa1ca94c9a7f
33,900
py
Python
momepy/dimension.py
AleFeli/momepy
fd68bdd2518e2c1cadce41a6059a93cebb2c1864
[ "MIT" ]
1
2021-06-19T05:41:30.000Z
2021-06-19T05:41:30.000Z
momepy/dimension.py
AleFeli/momepy
fd68bdd2518e2c1cadce41a6059a93cebb2c1864
[ "MIT" ]
null
null
null
momepy/dimension.py
AleFeli/momepy
fd68bdd2518e2c1cadce41a6059a93cebb2c1864
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # dimension.py # definitions of dimension characters import math import numpy as np import pandas as pd import scipy as sp from shapely.geometry import LineString, Point, Polygon from tqdm import tqdm from .shape import _make_circle __all__ = [ "Area", "Perimet...
33.798604
146
0.578643
33,305
0.979559
0
0
0
0
0
0
17,053
0.501559
44b618144cd7630733cffae5d1cb9672a7fba58e
6,430
py
Python
tests/test_db.py
craymaru/serverless-todo-backend
5f0bd32b321e783fbdcab2714ccd0cdee30f6156
[ "MIT" ]
1
2020-12-08T09:16:27.000Z
2020-12-08T09:16:27.000Z
tests/test_db.py
craymaru/serverless-todo-backend
5f0bd32b321e783fbdcab2714ccd0cdee30f6156
[ "MIT" ]
null
null
null
tests/test_db.py
craymaru/serverless-todo-backend
5f0bd32b321e783fbdcab2714ccd0cdee30f6156
[ "MIT" ]
null
null
null
import operator import pytest from chalice import NotFoundError import app from tests.testdata.ddb_items import TESTDATA_DDB_ITEMS DEFAULT_USERNAME = 'default' class TestDB: pass class TestListAllItems(TestDB): def test_Return_all_items(self, mock): """list_all_items: すべてのアイテムを取得することができる""" ...
38.502994
85
0.671851
7,406
0.975501
0
0
3,992
0.525817
0
0
2,922
0.384879
44b63f8dd16194a8fc997b6be8fdf43178a1bc65
11,651
py
Python
src/vessel-drift-analysis/scripts/simulations/launch_drift.py
yosoyjay/project-nps-vessel-drift
1cdc14ef87db31fa03b0c3bdc1d60c332727ef57
[ "MIT" ]
null
null
null
src/vessel-drift-analysis/scripts/simulations/launch_drift.py
yosoyjay/project-nps-vessel-drift
1cdc14ef87db31fa03b0c3bdc1d60c332727ef57
[ "MIT" ]
null
null
null
src/vessel-drift-analysis/scripts/simulations/launch_drift.py
yosoyjay/project-nps-vessel-drift
1cdc14ef87db31fa03b0c3bdc1d60c332727ef57
[ "MIT" ]
null
null
null
#!python """Launch vessel drift simulations. Methodology ----------- For every week with forcing data, simulated vessels are launched from every cell where a vessel was present in the AIS data. The drift angle (up to 60 deg.), windage scaling (2% - 10% of 10 m), and left/right direction is randomly assigned per simul...
32.912429
122
0.618488
4,233
0.363254
0
0
402
0.034498
0
0
3,744
0.321291
44b6d6a32049f0dfb679101cd399346994e52f62
932
py
Python
setup.py
bobbypaton/pyX-Struct
c6e7132f010635ebc95aea09cef75247271026de
[ "MIT" ]
6
2018-09-01T21:00:20.000Z
2022-01-11T11:13:38.000Z
setup.py
bobbypaton/pyX-Struct
c6e7132f010635ebc95aea09cef75247271026de
[ "MIT" ]
null
null
null
setup.py
bobbypaton/pyX-Struct
c6e7132f010635ebc95aea09cef75247271026de
[ "MIT" ]
null
null
null
from setuptools import setup import io # read the contents of your README file from os import path this_directory = path.abspath(path.dirname(__file__)) with io.open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name = 'pyxstruct', packages = ['pyxstruct'],...
33.285714
86
0.722103
0
0
0
0
0
0
0
0
405
0.434549
44ba14a55225e2fca7e6776005ca90c19e46d4ef
7,317
py
Python
hypernets/tabular/ensemble/base_ensemble.py
Enpen/Hypernets
5fbf01412ffaef310855d98f52f8cc169e96246b
[ "Apache-2.0" ]
null
null
null
hypernets/tabular/ensemble/base_ensemble.py
Enpen/Hypernets
5fbf01412ffaef310855d98f52f8cc169e96246b
[ "Apache-2.0" ]
null
null
null
hypernets/tabular/ensemble/base_ensemble.py
Enpen/Hypernets
5fbf01412ffaef310855d98f52f8cc169e96246b
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- __author__ = 'yangjian' """ """ import copy import pickle from sklearn.model_selection import StratifiedKFold from hypernets.utils import fs class BaseEnsemble: import numpy as np def __init__(self, task, estimators, need_fit=False, n_folds=5, method='soft', random_state=9527): ...
38.109375
111
0.574962
7,147
0.976766
0
0
700
0.095668
0
0
804
0.109881
44ba63f3647ceeb589ce1842b68940e92b0bb81b
173
py
Python
agronet_be/AgronetApp/models/__init__.py
lauraC4MP0/Prueba-github
291fc266fc0a8efc80ab36dd6eb4bff3e98e7c1f
[ "MIT" ]
1
2021-10-06T00:39:08.000Z
2021-10-06T00:39:08.000Z
agronet_be/AgronetApp/models/__init__.py
lauraC4MP0/Prueba-github
291fc266fc0a8efc80ab36dd6eb4bff3e98e7c1f
[ "MIT" ]
null
null
null
agronet_be/AgronetApp/models/__init__.py
lauraC4MP0/Prueba-github
291fc266fc0a8efc80ab36dd6eb4bff3e98e7c1f
[ "MIT" ]
1
2021-10-03T13:39:31.000Z
2021-10-03T13:39:31.000Z
from .product import Product from .departament import Departament from .city import City from .orderDetail import OrderDetail from .order import Order from .user import User
28.833333
36
0.83237
0
0
0
0
0
0
0
0
0
0
44bcca6b59578ac7da93d3743cc3030c283f7d93
4,698
py
Python
apis/betterself/v1/supplements/views.py
jeffshek/betterself
51468253fc31373eb96e0e82189b9413f3d76ff5
[ "MIT" ]
98
2017-07-29T14:26:36.000Z
2022-02-28T04:10:15.000Z
apis/betterself/v1/supplements/views.py
jeffshek/betterself
51468253fc31373eb96e0e82189b9413f3d76ff5
[ "MIT" ]
1,483
2017-05-30T00:05:56.000Z
2022-03-31T12:37:06.000Z
apis/betterself/v1/supplements/views.py
lawrendran/betterself
51468253fc31373eb96e0e82189b9413f3d76ff5
[ "MIT" ]
13
2017-11-08T00:02:35.000Z
2022-02-28T04:10:32.000Z
from django.db.models.query import Prefetch from rest_framework.generics import ListAPIView, ListCreateAPIView from apis.betterself.v1.supplements.filters import IngredientCompositionFilter, SupplementFilter, \ UserSupplementStackFilter, UserSupplementStackCompositionFilter from apis.betterself.v1.supplements.seri...
43.906542
117
0.801618
3,443
0.732865
0
0
0
0
0
0
448
0.09536
44bccdf59785819826e9ae489afe64a4d019ae2c
253
py
Python
mlrun/frameworks/_common/__init__.py
zjzh/mlrun
2f367b29838222663b1a7c6deeacbe26156071b3
[ "Apache-2.0" ]
1
2021-02-17T08:12:33.000Z
2021-02-17T08:12:33.000Z
mlrun/frameworks/_common/__init__.py
zjzh/mlrun
2f367b29838222663b1a7c6deeacbe26156071b3
[ "Apache-2.0" ]
null
null
null
mlrun/frameworks/_common/__init__.py
zjzh/mlrun
2f367b29838222663b1a7c6deeacbe26156071b3
[ "Apache-2.0" ]
1
2021-08-30T21:43:38.000Z
2021-08-30T21:43:38.000Z
# flake8: noqa - this is until we take care of the F401 violations with respect to __all__ & sphinx from .mlrun_interface import MLRunInterface from .model_handler import ModelHandler from .types import ExtraDataType, IOSampleType, ModelType, PathType
50.6
100
0.818182
0
0
0
0
0
0
0
0
100
0.395257
44bdf8f5ecb0e60fa1e48ee58697351e0ea1c854
3,456
py
Python
KMeansClustering/clustering.py
saberzuko/MachineLearningAlgorithms
a7072e7342b0836f195325faed169f5d1de23f76
[ "MIT" ]
null
null
null
KMeansClustering/clustering.py
saberzuko/MachineLearningAlgorithms
a7072e7342b0836f195325faed169f5d1de23f76
[ "MIT" ]
null
null
null
KMeansClustering/clustering.py
saberzuko/MachineLearningAlgorithms
a7072e7342b0836f195325faed169f5d1de23f76
[ "MIT" ]
null
null
null
import numpy as np from scipy.spatial import distance import random def mu_generator(X, K): # Function to initialize the cluster centers # The input is the training data X and the number of cluster centers mu = []; rand_keys = [] for _ in range(K): rand = random.randint(0, len(X)-1) # T...
39.724138
97
0.640625
0
0
0
0
0
0
0
0
1,446
0.418403
44be78e2d92511ba650938e4b2a465810360de31
435
py
Python
app/utils.py
scorpioza/tele2-profit
99514eb6bce404ce4cf672ea6f5ddf84388d46c1
[ "MIT" ]
16
2020-06-26T13:20:52.000Z
2021-01-05T09:35:08.000Z
app/utils.py
scorpioza/tele2-profit
99514eb6bce404ce4cf672ea6f5ddf84388d46c1
[ "MIT" ]
3
2020-09-25T18:04:16.000Z
2020-11-16T15:02:52.000Z
app/utils.py
scorpioza/tele2-profit
99514eb6bce404ce4cf672ea6f5ddf84388d46c1
[ "MIT" ]
5
2020-09-26T19:29:41.000Z
2020-12-29T08:42:21.000Z
import asyncio import os from _version import __version__ def _print_version(): print(f'tele2-profit v{__version__} by archie') def run_main(main): try: _print_version() event_loop = asyncio.get_event_loop() future = asyncio.ensure_future(main()) event_loop.run_until_complete...
21.75
51
0.657471
0
0
0
0
0
0
0
0
55
0.126437
44be7e179d9f24df461429aeb0c1ef7aff9ab585
3,060
py
Python
utils/static_common_utils.py
UESTC-Liuxin/CVMI_Sementic_Segmentation
dc5bf6e940cf6961ef65abb6e7ec372f29d55249
[ "Apache-2.0" ]
null
null
null
utils/static_common_utils.py
UESTC-Liuxin/CVMI_Sementic_Segmentation
dc5bf6e940cf6961ef65abb6e7ec372f29d55249
[ "Apache-2.0" ]
null
null
null
utils/static_common_utils.py
UESTC-Liuxin/CVMI_Sementic_Segmentation
dc5bf6e940cf6961ef65abb6e7ec372f29d55249
[ "Apache-2.0" ]
null
null
null
''' Author: Liu Xin Date: 2021-11-13 19:11:06 LastEditors: Liu Xin LastEditTime: 2021-11-25 15:44:12 Description: 静态工具库 FilePath: /CVMI_Sementic_Segmentation/utils/static_common_utils.py ''' import os import random import numpy as np import torch import torch.backends.cudnn as cudnn import warnings from socket import g...
27.321429
79
0.66634
0
0
0
0
0
0
0
0
1,222
0.390665
44bf0a5052cbf6a144e0a5b040f0b62cdb2a95c6
230
py
Python
receivers.py
MortalHappiness/mailer
cf7252d97ef42ac31f82e2745723c9d5629ac6a2
[ "MIT" ]
null
null
null
receivers.py
MortalHappiness/mailer
cf7252d97ef42ac31f82e2745723c9d5629ac6a2
[ "MIT" ]
null
null
null
receivers.py
MortalHappiness/mailer
cf7252d97ef42ac31f82e2745723c9d5629ac6a2
[ "MIT" ]
null
null
null
import csv def get_receivers(): """ Return a list of receivers here """ with open("receivers.csv") as fin: reader = csv.reader(fin) receivers = [row[0] for row in reader] return receivers
19.166667
46
0.591304
0
0
0
0
0
0
0
0
62
0.269565
44bfddd8311b2ce5f5b9d04ea8832fb97c03d8da
4,309
py
Python
anime_downloader/scrapers/gogoanime/gogoanime_scraper.py
Amdrossa/Anime
9757f7c8d1a094da61e0c0ac38a2a29bf1c21e28
[ "MIT" ]
554
2020-04-15T20:22:50.000Z
2022-03-31T11:07:53.000Z
anime_downloader/scrapers/gogoanime/gogoanime_scraper.py
Amdrossa/Anime
9757f7c8d1a094da61e0c0ac38a2a29bf1c21e28
[ "MIT" ]
44
2020-04-15T19:26:43.000Z
2022-03-11T09:59:24.000Z
anime_downloader/scrapers/gogoanime/gogoanime_scraper.py
Amdrossa/Anime
9757f7c8d1a094da61e0c0ac38a2a29bf1c21e28
[ "MIT" ]
61
2020-04-16T19:17:04.000Z
2022-03-27T14:51:54.000Z
import re from util.Episode import Episode from bs4 import BeautifulSoup from extractors.jwplayer_extractor import JWPlayerExtractor from scrapers.base_scraper import BaseScraper from util.Color import printer class GoGoAnimeScraper(BaseScraper): def __init__(self, url, start_episode, end_episode, session, gui=No...
38.81982
106
0.561383
4,096
0.950569
0
0
0
0
0
0
455
0.105593
44bff82fd79a239bdafb6a54e8fdebc06260a17d
1,355
py
Python
mr_dale/config.py
evgeniy-tulyakov/mr-dale
5a976ca11ba21e83a2adf2f9f4a77833a68da116
[ "MIT" ]
null
null
null
mr_dale/config.py
evgeniy-tulyakov/mr-dale
5a976ca11ba21e83a2adf2f9f4a77833a68da116
[ "MIT" ]
null
null
null
mr_dale/config.py
evgeniy-tulyakov/mr-dale
5a976ca11ba21e83a2adf2f9f4a77833a68da116
[ "MIT" ]
null
null
null
''' Constants necessary for the correct execution of this bot. here, most of the values of the environment variables are extracted. ''' from os import getenv from pathlib import Path # Base settings PROJECT_PATH = Path(__file__).resolve().parent UI_RESOURCES_PATH = PROJECT_PATH / 'ui_resources' BOT_TOKEN = getenv('...
23.77193
83
0.568266
0
0
0
0
0
0
0
0
735
0.542435
44c122eb2bc4fddfe34663b5e113bdd4620db9d3
1,305
py
Python
work/plot.py
XUHUAKing/bigdata
47cdccbd448eacf074c4521d5b40d1205b000fc6
[ "CC-BY-4.0" ]
6
2018-03-19T03:34:19.000Z
2021-11-08T01:35:48.000Z
work/plot.py
XUHUAKing/bigdata
47cdccbd448eacf074c4521d5b40d1205b000fc6
[ "CC-BY-4.0" ]
null
null
null
work/plot.py
XUHUAKing/bigdata
47cdccbd448eacf074c4521d5b40d1205b000fc6
[ "CC-BY-4.0" ]
null
null
null
# needs a parameter to specify which training record to display import matplotlib as mpl from mpl_toolkits.mplot3d import Axes3D import numpy as np import matplotlib.pyplot as plt import functions as fn import sys #from matplotlib.backends.backend_pdf import PdfPages tdata, ttarget, tlabel = fn.get_training_data() i ...
30.348837
98
0.691954
0
0
0
0
0
0
0
0
231
0.177011
44c253f81c7a3412e5a62fbd60011c97050af7d2
2,720
py
Python
tests/test_year_2014.py
l0pht511/jpholiday
083145737b61fad3420c066968c4329d17dc3baf
[ "MIT" ]
179
2017-10-05T12:41:10.000Z
2022-03-24T22:18:25.000Z
tests/test_year_2014.py
l0pht511/jpholiday
083145737b61fad3420c066968c4329d17dc3baf
[ "MIT" ]
17
2018-10-23T00:51:13.000Z
2021-11-22T11:40:06.000Z
tests/test_year_2014.py
l0pht511/jpholiday
083145737b61fad3420c066968c4329d17dc3baf
[ "MIT" ]
17
2018-10-19T11:13:07.000Z
2022-01-29T08:05:56.000Z
# coding: utf-8 import datetime import unittest import jpholiday class TestYear2014(unittest.TestCase): def test_holiday(self): """ 2014年祝日 """ self.assertEqual(jpholiday.is_holiday_name(datetime.date(2014, 1, 1)), '元日') self.assertEqual(jpholiday.is_holiday_name(datetime....
51.320755
95
0.682353
2,843
0.976305
0
0
0
0
0
0
423
0.145261
44c3145c6b5a8cac5b0e2f9068f7547381896e10
31,414
py
Python
python/tests/nexus_helpers.py
arm61/scippneutron
20283e7b8f8772776978c539f8664f889d1fbded
[ "BSD-3-Clause" ]
null
null
null
python/tests/nexus_helpers.py
arm61/scippneutron
20283e7b8f8772776978c539f8664f889d1fbded
[ "BSD-3-Clause" ]
null
null
null
python/tests/nexus_helpers.py
arm61/scippneutron
20283e7b8f8772776978c539f8664f889d1fbded
[ "BSD-3-Clause" ]
null
null
null
from dataclasses import dataclass from typing import List, Union, Iterator, Optional, Dict, Any, Tuple import h5py import numpy as np from enum import Enum from contextlib import contextmanager import json from scippneutron.file_loading._json_nexus import LoadFromJson, MissingDataset h5root = Union[h5py.File, h5py.Gro...
41.773936
88
0.61046
29,086
0.925893
1,006
0.032024
8,314
0.264659
0
0
4,164
0.132552
44c41032c50ef5d1788dcc18837fdc341819e52a
10,351
py
Python
pyarpspoofer/arpspoofer.py
bocajspear1/pyarpspoofer
5612e0c900c070d98743bb8fdd39743a0ce09cf2
[ "MIT" ]
null
null
null
pyarpspoofer/arpspoofer.py
bocajspear1/pyarpspoofer
5612e0c900c070d98743bb8fdd39743a0ce09cf2
[ "MIT" ]
null
null
null
pyarpspoofer/arpspoofer.py
bocajspear1/pyarpspoofer
5612e0c900c070d98743bb8fdd39743a0ce09cf2
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2018 Jacob Hartman Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
34.274834
155
0.589025
9,041
0.873442
0
0
0
0
0
0
1,613
0.15583
44c5095346311b6017f0569e809826181a4a55f9
526
py
Python
mac_numbers.py
dmayan-ss/diegoflow
2225c24f7c5a6b331946c3c0d550bed26e92ee39
[ "BSD-3-Clause" ]
22
2019-02-24T13:12:23.000Z
2022-03-08T08:55:18.000Z
mac_numbers.py
dmayan-ss/diegoflow
2225c24f7c5a6b331946c3c0d550bed26e92ee39
[ "BSD-3-Clause" ]
3
2017-06-10T13:39:11.000Z
2018-10-10T22:15:50.000Z
mac_numbers.py
dmayan-ss/diegoflow
2225c24f7c5a6b331946c3c0d550bed26e92ee39
[ "BSD-3-Clause" ]
13
2019-03-24T06:03:19.000Z
2021-10-31T02:27:25.000Z
# Copyright (c) 2017, Manito Networks, LLC # All rights reserved. # NOTE: This is updated as we have time, and is by no means comprehensive yet. mac_prefix = { "00CDFE":"Apple", "18AF61":"Apple", "CC46D6":"Cisco", "58AC78":"Cisco", "0050BA":"D-Link", "00179A":"D-Link", "1CBDB9":"D-Link", "9094E4":"D-Link", "28107B"...
18.137931
78
0.657795
0
0
0
0
0
0
0
0
450
0.855513
44c515b10ccba3215103fa7169a17fded5d650d8
298
py
Python
tests/test_app/urls.py
emorozov/django-reversion
43b732b29b1023d984b3deb73b03c7d691db520d
[ "BSD-3-Clause" ]
1,735
2015-01-01T17:57:11.000Z
2022-03-28T10:53:27.000Z
tests/test_app/urls.py
emorozov/django-reversion
43b732b29b1023d984b3deb73b03c7d691db520d
[ "BSD-3-Clause" ]
554
2015-01-02T17:31:31.000Z
2022-02-22T10:30:04.000Z
tests/test_app/urls.py
emorozov/django-reversion
43b732b29b1023d984b3deb73b03c7d691db520d
[ "BSD-3-Clause" ]
368
2015-01-02T03:32:18.000Z
2022-03-31T09:48:31.000Z
from django.urls import path from test_app import views urlpatterns = [ path("save-obj/", views.save_obj_view), path("save-obj-error/", views.save_obj_error_view), path("create-revision/", views.create_revision_view), path("revision-mixin/", views.RevisionMixinView.as_view()), ]
27.090909
63
0.724832
0
0
0
0
0
0
0
0
63
0.211409
44c5b067e13fdd1e1ad2cc1a2c99d3c5b3330ac5
1,410
py
Python
stellapy/utils/decorators/restrict_sizeList.py
SStroteich/stella-1
104556a07b9736e7c28e6f1bf2f799384732f38b
[ "MIT" ]
4
2021-12-15T08:23:45.000Z
2022-02-18T15:14:42.000Z
stellapy/utils/decorators/restrict_sizeList.py
SStroteich/stella-1
104556a07b9736e7c28e6f1bf2f799384732f38b
[ "MIT" ]
37
2021-07-05T16:41:33.000Z
2022-03-21T15:58:05.000Z
stellapy/utils/decorators/restrict_sizeList.py
SStroteich/stella-1
104556a07b9736e7c28e6f1bf2f799384732f38b
[ "MIT" ]
7
2021-07-05T15:35:55.000Z
2022-03-09T09:23:42.000Z
#=============================================================== # Restrict size of printed list #=============================================================== import numpy as np def restrict_sizeList(input_list, size): ''' Print a long list as [ a b c ... x y z ] ''' # For 1D arrays or list, return [ a b ...
30
98
0.458865
0
0
0
0
0
0
0
0
509
0.360993
44c6da2588473857006929d493bd43cadac15056
182
py
Python
backend/course_application/admin.py
heyImDrew/edupro
98b8342dda45071da4871bbf73f2ef002fee938f
[ "Apache-2.0" ]
null
null
null
backend/course_application/admin.py
heyImDrew/edupro
98b8342dda45071da4871bbf73f2ef002fee938f
[ "Apache-2.0" ]
null
null
null
backend/course_application/admin.py
heyImDrew/edupro
98b8342dda45071da4871bbf73f2ef002fee938f
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import * admin.site.register(Course) admin.site.register(UserCourse) admin.site.register(Partition) admin.site.register(PartitionTask)
22.75
34
0.824176
0
0
0
0
0
0
0
0
0
0
44cb0ba9c0f8df7004f8672416120408c2f977bc
350
py
Python
app/helpers.py
kilonzi/dukaone
0563f1329f87df17424d6c058b46f6bdede46f2f
[ "MIT" ]
null
null
null
app/helpers.py
kilonzi/dukaone
0563f1329f87df17424d6c058b46f6bdede46f2f
[ "MIT" ]
null
null
null
app/helpers.py
kilonzi/dukaone
0563f1329f87df17424d6c058b46f6bdede46f2f
[ "MIT" ]
null
null
null
from db.models import * def unpack_query_objects(objects) -> dict: results = [] for object in objects: results.append(object.to_dict()) return results def stringify_object(object) -> dict: str_obj = {} object_dict = object.to_dict() for i in object_dict.items(): str_obj[i[0]] =...
23.333333
42
0.642857
0
0
0
0
0
0
0
0
0
0
44cd2971fc2d0fb346116f5807babe8620e40891
221
py
Python
gdsfactory/gdsdiff/sample.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
null
null
null
gdsfactory/gdsdiff/sample.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
null
null
null
gdsfactory/gdsdiff/sample.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
null
null
null
import gdsfactory as gf from gdsfactory.gdsdiff.gdsdiff import gdsdiff if __name__ == "__main__": c1 = gf.components.straight(length=2) c2 = gf.components.straight(length=3) c = gdsdiff(c1, c2) c.show()
22.1
46
0.696833
0
0
0
0
0
0
0
0
10
0.045249
44cdc0c7246c968a7e2f2abbae018d1456bcdfd9
8,239
py
Python
src/lib/searchio/cmd/reload.py
cgxxv/alfred-searchio
f4a14cbe5350b83d6d962aa993abf01f14b60d33
[ "MIT" ]
304
2015-01-15T08:18:47.000Z
2022-03-31T10:41:52.000Z
src/lib/searchio/cmd/reload.py
cgxxv/alfred-searchio
f4a14cbe5350b83d6d962aa993abf01f14b60d33
[ "MIT" ]
66
2015-03-14T18:10:36.000Z
2022-03-27T11:33:56.000Z
src/lib/searchio/cmd/reload.py
cgxxv/alfred-searchio
f4a14cbe5350b83d6d962aa993abf01f14b60d33
[ "MIT" ]
36
2015-04-12T16:50:17.000Z
2022-03-28T09:53:32.000Z
#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2016 Dean Jackson <deanishe@deanishe.net> # # MIT Licence. See http://opensource.org/licenses/MIT # # Created on 2016-12-17 # """searchio reload [-h] Update info.plist from saved searches. Usage: searchio reload [--defaults] searchio -h Options: ...
29.320285
112
0.572157
0
0
0
0
0
0
0
0
4,624
0.561097
44ce0f9db9fe5919a4a1f3796a0fe0c4e1d331ae
2,882
py
Python
lessons/migrations/0005_auto_20180911_1600.py
keeperaft/personalaltwebsite
b8ad2679c2809c316e8f746ffe1b302460f336be
[ "MIT" ]
null
null
null
lessons/migrations/0005_auto_20180911_1600.py
keeperaft/personalaltwebsite
b8ad2679c2809c316e8f746ffe1b302460f336be
[ "MIT" ]
2
2020-06-05T20:35:57.000Z
2021-06-10T21:24:24.000Z
lessons/migrations/0005_auto_20180911_1600.py
keeperaft/personalaltwebsite
b8ad2679c2809c316e8f746ffe1b302460f336be
[ "MIT" ]
1
2019-04-10T02:03:35.000Z
2019-04-10T02:03:35.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-09-11 07:00 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import lessons.filefield class Migration(migrations.Migration): dependencies = [ ('lessons', '0004_flashcard_is_borde...
45.746032
256
0.590909
2,666
0.925052
0
0
0
0
0
0
928
0.321999
44d06773b5f3d0ff34828b00098d2e28292a0ca8
10,308
py
Python
tests/responses/test_response.py
TeoDV/jj
a58d91ad7b37ba3115daea4890190abede8f3353
[ "Apache-2.0" ]
4
2020-09-08T08:14:21.000Z
2022-01-27T19:22:53.000Z
tests/responses/test_response.py
TeoDV/jj
a58d91ad7b37ba3115daea4890190abede8f3353
[ "Apache-2.0" ]
19
2018-02-13T05:51:25.000Z
2022-03-27T22:48:11.000Z
tests/responses/test_response.py
TeoDV/jj
a58d91ad7b37ba3115daea4890190abede8f3353
[ "Apache-2.0" ]
3
2017-11-17T13:25:23.000Z
2022-02-03T12:57:00.000Z
import os import sys if sys.version_info >= (3, 8): from unittest import IsolatedAsyncioTestCase as TestCase else: from unittest import TestCase import pytest import jj from jj import server_version from jj.apps import create_app from jj.handlers import default_handler from jj.matchers import MethodMatcher f...
38.898113
95
0.644257
9,899
0.957535
0
0
9,330
0.902496
8,854
0.856452
1,094
0.105823
44d22b17f45772c546f11f4444520b63362e9cd5
766
py
Python
slide_09/Exercicio04.py
lordjack/aula_python_slides
38ad45ac1843fc83c3349addb9d49f7d182a574f
[ "MIT" ]
null
null
null
slide_09/Exercicio04.py
lordjack/aula_python_slides
38ad45ac1843fc83c3349addb9d49f7d182a574f
[ "MIT" ]
null
null
null
slide_09/Exercicio04.py
lordjack/aula_python_slides
38ad45ac1843fc83c3349addb9d49f7d182a574f
[ "MIT" ]
null
null
null
''' Q04 - Faça um programa que leia uma matriz 3x3 de inteiros, e apresente a Diagonal Principal desta Matriz. ''' import random # x = random.uniform(0, 10) matriz = [] diagonalPrincipal = [] for i in range(0, 3, 1): linha = [] for j in range(0, 3, 1): # elemento = int(input("Digite o elemento da posi...
23.212121
76
0.571802
0
0
0
0
0
0
0
0
269
0.349805
44d2734bfe7281ba6062b53a0dd208cf424d41c5
142
py
Python
servers/apps.py
shubhamdipt/monitoring-dashboard
ae4524f1c179cf735fdc17673865bdbdb463ee3e
[ "MIT" ]
1
2021-08-08T14:40:09.000Z
2021-08-08T14:40:09.000Z
servers/apps.py
shubhamdipt/monitoring-dashboard
ae4524f1c179cf735fdc17673865bdbdb463ee3e
[ "MIT" ]
null
null
null
servers/apps.py
shubhamdipt/monitoring-dashboard
ae4524f1c179cf735fdc17673865bdbdb463ee3e
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ServersConfig(AppConfig): name = 'servers' def ready(self): import servers.signals
15.777778
33
0.697183
105
0.739437
0
0
0
0
0
0
9
0.06338
44d38b1f211f5c9e46f3fcd73adf617055c70c17
4,268
py
Python
examples/forest_fire_disjunctive.py
kevinmcareavey/pyactualcausality
51367d768dde3b1b039373db5797efb087003cd4
[ "MIT" ]
null
null
null
examples/forest_fire_disjunctive.py
kevinmcareavey/pyactualcausality
51367d768dde3b1b039373db5797efb087003cd4
[ "MIT" ]
null
null
null
examples/forest_fire_disjunctive.py
kevinmcareavey/pyactualcausality
51367d768dde3b1b039373db5797efb087003cd4
[ "MIT" ]
null
null
null
from frozendict import frozendict from lib.halpern_pearl import Variable, CausalNetwork, CausalSetting, find_actual_causes, CausalFormula, PrimitiveEvent, \ Negation, find_trivial_explanations, EpistemicState, find_nontrivial_explanations, find_explanations, \ find_sufficient_causes U_L, U_MD = Variable("U_L")...
56.157895
192
0.751172
0
0
0
0
0
0
0
0
327
0.076473
44d405a3b963e1575bfadf95aec209b7044e8452
3,152
py
Python
environments/icds-cas/migrations/nic_to_tcl/couchdb-files-post.py
rohit-dimagi/commcare-cloud
55576713f3a12acc3f2df4f24c405df9c30143b3
[ "BSD-3-Clause" ]
null
null
null
environments/icds-cas/migrations/nic_to_tcl/couchdb-files-post.py
rohit-dimagi/commcare-cloud
55576713f3a12acc3f2df4f24c405df9c30143b3
[ "BSD-3-Clause" ]
null
null
null
environments/icds-cas/migrations/nic_to_tcl/couchdb-files-post.py
rohit-dimagi/commcare-cloud
55576713f3a12acc3f2df4f24c405df9c30143b3
[ "BSD-3-Clause" ]
null
null
null
import getpass import requests import argparse def main(): parser = argparse.ArgumentParser() parser.add_argument('username') parser.add_argument('-p', '--password') args = parser.parse_args() if not args.password: args.password = getpass.getpass("Password") auth = (args.username, a...
33.178947
121
0.580901
0
0
0
0
0
0
0
0
836
0.265228
44d42b43218cec56ddb7aa37023d60517545e56a
23,816
py
Python
fee/views.py
masoodazhar/-school-management-system
6525b3d29d12f03e05d362d81b7c5855806f57d9
[ "Apache-2.0" ]
1
2022-01-20T10:20:05.000Z
2022-01-20T10:20:05.000Z
fee/views.py
masoodazhar/-school-management-system
6525b3d29d12f03e05d362d81b7c5855806f57d9
[ "Apache-2.0" ]
null
null
null
fee/views.py
masoodazhar/-school-management-system
6525b3d29d12f03e05d362d81b7c5855806f57d9
[ "Apache-2.0" ]
1
2022-01-20T10:20:31.000Z
2022-01-20T10:20:31.000Z
from django.shortcuts import render, redirect from student.models import Admission from .forms import SearchChallan from django.utils import timezone from django.db.models import Q from .models import Voucher from payroll.models import Salary from django import forms from django.contrib import messages from dj...
41.204152
187
0.570961
378
0.015872
0
0
21,676
0.910144
0
0
5,544
0.232785
44d4708d8f3e8cbb68ded6ad9426b4bdf6c6ba43
6,211
py
Python
interpolation/splines/filter_cubic.py
gboehl/interpolation.py
25520556804dd104c5931c8a6bedfff65420025f
[ "BSD-2-Clause" ]
null
null
null
interpolation/splines/filter_cubic.py
gboehl/interpolation.py
25520556804dd104c5931c8a6bedfff65420025f
[ "BSD-2-Clause" ]
null
null
null
interpolation/splines/filter_cubic.py
gboehl/interpolation.py
25520556804dd104c5931c8a6bedfff65420025f
[ "BSD-2-Clause" ]
null
null
null
from __future__ import division import numpy as np import time from numba import jit, njit # used by njitted routines (frozen) basis = np.array([1.0 / 6.0, 2.0 / 3.0, 1.0 / 6.0, 0.0]) @njit(cache=True) def solve_deriv_interp_1d(bands, coefs): M = coefs.shape[0] - 2 # Solve interpolating equations # Fi...
24.844
88
0.551924
0
0
0
0
4,730
0.761552
0
0
594
0.095637
44d48337c78ce2e640508a61a6350b194e4ad2ee
507
py
Python
backend/product/urls.py
kmrul/Grocery-Store
a8abc99d66daf7c1dbf42a5bb9b563bda98b9e3c
[ "MIT" ]
null
null
null
backend/product/urls.py
kmrul/Grocery-Store
a8abc99d66daf7c1dbf42a5bb9b563bda98b9e3c
[ "MIT" ]
null
null
null
backend/product/urls.py
kmrul/Grocery-Store
a8abc99d66daf7c1dbf42a5bb9b563bda98b9e3c
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('product/', views.apiOverview, name='overview'), path('product/list/', views.productList, name='product-list'), path('product/detail/<str:pk>', views.productDetail, name='product-detail'), path('product/create', views.productCreate, ...
46.090909
80
0.706114
0
0
0
0
0
0
0
0
204
0.402367
44d4c378e92d06b8248254af3ada493cd9a99613
1,512
py
Python
Train.py
jinsuyun/DriavablaMap_Segmentation
8537f19f007f064ca2ab3a91bd25c714ecb50a48
[ "BSD-3-Clause" ]
null
null
null
Train.py
jinsuyun/DriavablaMap_Segmentation
8537f19f007f064ca2ab3a91bd25c714ecb50a48
[ "BSD-3-Clause" ]
null
null
null
Train.py
jinsuyun/DriavablaMap_Segmentation
8537f19f007f064ca2ab3a91bd25c714ecb50a48
[ "BSD-3-Clause" ]
null
null
null
from tensorflow.keras.callbacks import ModelCheckpoint, LearningRateScheduler, TensorBoard import tensorflow as tf import Data import Model # import myslack import os import argparse from tensorflow.python.client import device_lib import warnings warnings.filterwarnings("ignore") parser = argparse.ArgumentParser(descr...
25.627119
98
0.703042
0
0
0
0
0
0
0
0
504
0.333333
44d52e44864bf1ce0a5095905d078b5ae85da8b7
3,470
py
Python
ui/custom_pb/custompb.py
magnusjwatson2786/Container-GUI
42cbe1bb970fbabe5b5fde873425f262e9207d30
[ "MIT" ]
null
null
null
ui/custom_pb/custompb.py
magnusjwatson2786/Container-GUI
42cbe1bb970fbabe5b5fde873425f262e9207d30
[ "MIT" ]
null
null
null
ui/custom_pb/custompb.py
magnusjwatson2786/Container-GUI
42cbe1bb970fbabe5b5fde873425f262e9207d30
[ "MIT" ]
null
null
null
from PySide6.QtCore import * from PySide6.QtGui import * from PySide6.QtWidgets import * class CustomPb(QWidget): def __init__( self, value = 0, progress_width = 2, # progress_length= 500, is_rounded = False, max_value = 100, progress_color = "#ff79c6", ...
31.545455
86
0.583285
3,380
0.974063
0
0
0
0
0
0
558
0.160807
44d52f169921ab9efb57ff8c6c57b8de676e6dfb
1,301
py
Python
camhudson/views/index.py
Hudson00/Hudson00.github.io
75fede08521dc1e10cb2ce29e20c54c93e9e6db6
[ "MIT" ]
null
null
null
camhudson/views/index.py
Hudson00/Hudson00.github.io
75fede08521dc1e10cb2ce29e20c54c93e9e6db6
[ "MIT" ]
null
null
null
camhudson/views/index.py
Hudson00/Hudson00.github.io
75fede08521dc1e10cb2ce29e20c54c93e9e6db6
[ "MIT" ]
null
null
null
"""Cam Hudson Personal Website app's index.html view. URLs handled in this file include: / """ from flask import render_template, session from camhudson.views.utility import create_index_card # Make linter shut up import camhudson @camhudson.app.route('/', methods=['GET']) @camhudson.app.route('/index.html', methods...
32.525
76
0.530361
0
0
0
0
1,066
0.81937
0
0
595
0.457341
44d5d7d712b3b2f871108b46b0de197890de0365
2,661
py
Python
ai_services/anomaly_detection/data_preprocessing_examples/oci_data_flow_based_examples/example_code/normalization.py
oracle-samples/oci-data-science-ai-samples
3128787c1347a17f9dc2194f1a16a500ed08eb8e
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
ai_services/anomaly_detection/data_preprocessing_examples/oci_data_flow_based_examples/example_code/normalization.py
oracle-samples/oci-data-science-ai-samples
3128787c1347a17f9dc2194f1a16a500ed08eb8e
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
ai_services/anomaly_detection/data_preprocessing_examples/oci_data_flow_based_examples/example_code/normalization.py
oracle-samples/oci-data-science-ai-samples
3128787c1347a17f9dc2194f1a16a500ed08eb8e
[ "UPL-1.0", "Apache-2.0" ]
2
2022-03-28T07:27:28.000Z
2022-03-28T21:18:36.000Z
from pyspark.sql import SparkSession from pyspark.sql import functions as F import argparse from pyspark.ml.feature import MinMaxScaler, StandardScaler, VectorAssembler def extract(row): return (row.id,) + tuple(row.scaledFeatures.toArray().tolist()[:-1]) def normalize_data(df, scaler_type, columns): """ ...
33.2625
78
0.658023
0
0
0
0
0
0
0
0
556
0.208944
44d71f0a51d5a31acbe4cd401e05ee26f9010239
3,051
py
Python
deep_morphology/models/bert_tagger.py
juditacs/deep-morphology
090c17e604499a3430ea835a6340fa3abdc6ea83
[ "MIT" ]
3
2019-10-16T12:25:37.000Z
2021-01-16T00:31:37.000Z
deep_morphology/models/bert_tagger.py
juditacs/deep-morphology
090c17e604499a3430ea835a6340fa3abdc6ea83
[ "MIT" ]
15
2018-09-12T20:26:44.000Z
2018-11-09T20:10:37.000Z
deep_morphology/models/bert_tagger.py
juditacs/deep-morphology
090c17e604499a3430ea835a6340fa3abdc6ea83
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2019 Judit Acs <judit@sch.bme.hu> # # Distributed under terms of the MIT license. import torch import torch.nn as nn from pytorch_pretrained_bert import BertModel from deep_morphology.models.base import BaseModel from deep_morphology.mod...
36.321429
90
0.640118
2,528
0.828309
0
0
0
0
0
0
294
0.09633
44d7658584167ad1f72604c07e855eaac8a27727
123
py
Python
CLASESYOBJETOS1.py
Germiprogramer/POO
c84bb9cf7e3bc1a003193375121489aa80daf03c
[ "Apache-2.0" ]
null
null
null
CLASESYOBJETOS1.py
Germiprogramer/POO
c84bb9cf7e3bc1a003193375121489aa80daf03c
[ "Apache-2.0" ]
null
null
null
CLASESYOBJETOS1.py
Germiprogramer/POO
c84bb9cf7e3bc1a003193375121489aa80daf03c
[ "Apache-2.0" ]
null
null
null
class Auto: marca = "" modelo = 0 placa = "" taxi = Auto() print(taxi.modelo) #se imprime el modelo únicamente
15.375
32
0.617886
56
0.451613
0
0
0
0
0
0
37
0.298387
44d7838cf86895dbb3bc71349d1a986ae126e5e6
4,246
py
Python
python3/11.py
mn113/adventofcode2020
87e3062948444627eb95e1b81e8d1b6db9640ba0
[ "MIT" ]
null
null
null
python3/11.py
mn113/adventofcode2020
87e3062948444627eb95e1b81e8d1b6db9640ba0
[ "MIT" ]
null
null
null
python3/11.py
mn113/adventofcode2020
87e3062948444627eb95e1b81e8d1b6db9640ba0
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 part = 1 def read_input(): with open('../inputs/input11.txt') as fp: lines = fp.readlines() return [line.strip() for line in lines] class Seat: def __init__(self, x, y, state): self.x = x self.y = y self.state = state def __str__(self): ...
27.217949
94
0.542393
2,427
0.571597
0
0
0
0
0
0
935
0.220207
44d7bf8fa8ad6da40c52b2f23d769cd6c11b59ae
2,667
py
Python
f5lbaasdriver/test/tempest/services/clients/l7policy_client.py
fsckss/f5-openstack-lbaasv2-driver
678724d5b1eadad89a774af6d5e073512ba4998c
[ "Apache-2.0" ]
null
null
null
f5lbaasdriver/test/tempest/services/clients/l7policy_client.py
fsckss/f5-openstack-lbaasv2-driver
678724d5b1eadad89a774af6d5e073512ba4998c
[ "Apache-2.0" ]
null
null
null
f5lbaasdriver/test/tempest/services/clients/l7policy_client.py
fsckss/f5-openstack-lbaasv2-driver
678724d5b1eadad89a774af6d5e073512ba4998c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 u"""F5 Networks® LBaaSv2 L7 rules client for tempest tests.""" # Copyright 2016 F5 Networks Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lic...
39.220588
76
0.662542
1,878
0.703898
0
0
0
0
0
0
1,013
0.379685