hexsha
stringlengths
40
40
size
int64
6
782k
ext
stringclasses
7 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
72
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
53k
⌀
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
4
184
max_issues_repo_name
stringlengths
6
72
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
27.1k
⌀
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
4
184
max_forks_repo_name
stringlengths
6
72
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
12.2k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
6
782k
avg_line_length
float64
2.75
664k
max_line_length
int64
5
782k
alphanum_fraction
float64
0
1
17a48e98363cc7b7b5ec1cf7a5ca7003b116838b
2,594
py
Python
samples/pre-selection/preselection.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
2
2021-02-16T12:39:57.000Z
2021-07-21T11:36:39.000Z
samples/pre-selection/preselection.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
20
2020-10-26T18:05:27.000Z
2021-11-30T19:05:22.000Z
samples/pre-selection/preselection.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
7
2020-10-13T18:12:22.000Z
2021-08-13T19:16:21.000Z
import numpy as np import pandas as pd from sklearn.base import BaseEstimator, TransformerMixin class Correlation(BaseEstimator, TransformerMixin): """Feature selector that removes correlated features. This feature selection algorithm looks only at features(X) and and removes those with high correla...
30.880952
82
0.607941
e51f3ffbe2e8f6dec46c012a8a6d77c9e0e143e3
1,020
py
Python
algorithms/dynamic_programming/angry_children_2.py
PlamenHristov/HackerRank
2c875995f0d51d7026c5cf92348d9fb94fa509d6
[ "MIT" ]
null
null
null
algorithms/dynamic_programming/angry_children_2.py
PlamenHristov/HackerRank
2c875995f0d51d7026c5cf92348d9fb94fa509d6
[ "MIT" ]
null
null
null
algorithms/dynamic_programming/angry_children_2.py
PlamenHristov/HackerRank
2c875995f0d51d7026c5cf92348d9fb94fa509d6
[ "MIT" ]
null
null
null
import itertools, sys def angry_children(): N = int(sys.stdin.readline()) K = int(sys.stdin.readline()) X = sorted(int(sys.stdin.readline()) for _ in range(N)) diff = [X[i + 1] - X[i] for i in range(N - 1)] # Mulitply difference terms by multiplication table read by antidiagonals unfairness =...
31.875
88
0.589216
f90ff058b005191db2a9a0989ca09a2a551bab40
401
py
Python
Curso-Em-Video-Python/2Exercicios/101_Funcao_para_votacao.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/101_Funcao_para_votacao.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/101_Funcao_para_votacao.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
def voto(ano): from datetime import date v = date.today().year - ano print(f'Com {v} anos: ', end='') if v >= 18: return 'VOTO OBRIGATORIO!!' elif v >= 65: return 'VOTO OPCIONAL!!' else: return 'NÃO VOTA!!' #programa Principal print(f'{"URNA ELEITORAL":^25}') print('-' ...
23.588235
51
0.583541
0094f1dd19619d478fa42c468fb4a2c2aaccfeb0
15,961
py
Python
wz/ui/ui_support.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/ui/ui_support.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/ui/ui_support.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ ui/ui_support.py Last updated: 2021-10-13 Support stuff for the GUI: dialogs, etc. =+LICENCE============================= Copyright 2021 Michael Towers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License....
31.668651
83
0.640937
97ce18d96dadd7cca697255b2c73a9c98cb4ac47
1,495
py
Python
IVTa/2014/ALEKSEEV_I_S/task_10_50.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/ALEKSEEV_I_S/task_10_50.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/ALEKSEEV_I_S/task_10_50.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 10. Вариант 50 # Напишите программу "Генератор персонажей" для игры. # Пользователю должно быть предоставлено 30 пунктов, # которые можно распределить между четырьмя характеристиками: # Сила, Здоровье, Мудрость и Ловкость. Надо сделать так, # чтобы пользователь мог не только брать эти пункты из общего "пу...
16.988636
80
0.610702
c187de1375d3af5c1e8ba1e4cee2b987e321f47d
68,744
py
Python
DHParser/lsp.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
DHParser/lsp.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
DHParser/lsp.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
# lsp.py - Language Server Protocol data structures and support functions # # Copyright 20w0 by Eckhart Arnold (arnold@badw.de) # Bavarian Academy of Sciences an Humanities (badw.de) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance wit...
30.230431
154
0.715102
e73944fc009de9dce9006173a8f541561fec2bf8
483
py
Python
ProjectEuler_plus/euler_056.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_056.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_056.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from functools import reduce N = int(input().strip()) max_digit_sum = [0] * N max_digit = 0 for i in range(N): for j in range(N): digit_sum = 0 d = i ** j while d != 0: d, m = divmod(d, 10) digit_sum += m if max_digit < digi...
21
40
0.540373
99bb791a12340a2372130d8f1ddaf6f1124fff85
1,014
py
Python
2_Data_Structures/week1_basic_data_structures/network_packet_processing_simulation/process_packages.py
AnthonyRChao/UCSD-Data-Structures-and-Algorithms-Specialization
877d7f1d7f3d3d9d6a0c6cda2421ec130b64da3d
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Data Structures & Algorithms/Algorithm Toolbox/week1_basic_data_structures/3_network_simulation/process_packages.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
39
2020-04-30T02:28:35.000Z
2022-02-13T21:30:02.000Z
Data Structures & Algorithms/Algorithm Toolbox/week1_basic_data_structures/3_network_simulation/process_packages.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
# python3 from collections import namedtuple Request = namedtuple("Request", ["arrived_at", "time_to_process"]) Response = namedtuple("Response", ["was_dropped", "started_at"]) class Buffer: def __init__(self, size): self.size = size self.finish_time = [] def process(self, request): ...
24.142857
70
0.669625
417f15ce7b6808e7c9dc8c2ea929054d35afb7f7
1,863
py
Python
DDPG/utils.py
pickxiguapi/rl-algorithm
a57991acd178077fd7f51bcd4ae2ee58492475c2
[ "MIT" ]
2
2021-01-06T09:45:23.000Z
2021-04-21T09:39:14.000Z
DDPG/utils.py
pickxiguapi/rl-algorithm
a57991acd178077fd7f51bcd4ae2ee58492475c2
[ "MIT" ]
null
null
null
DDPG/utils.py
pickxiguapi/rl-algorithm
a57991acd178077fd7f51bcd4ae2ee58492475c2
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ @File : utils.py @Time : 2020/12/12 @Author : Yuan Yifu """ import numpy as np import matplotlib.pyplot as plt def soft_update(target_net, source_net, tau): """ 更新副本的参数时不再是直接复制,而是采用一种缓慢更新的方式 tau << 1 target = tau * source + (1 - tau) * target :param target_net...
24.84
92
0.611916
419500c25a52eae542f8211898351a3c872776ff
2,997
py
Python
python-bildungslogin/src/univention/bildungslogin/license_import/cmd_license_import.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
python-bildungslogin/src/univention/bildungslogin/license_import/cmd_license_import.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
python-bildungslogin/src/univention/bildungslogin/license_import/cmd_license_import.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2021 Univention GmbH # # http://www.univention.de/ # # All rights reserved. # # The source code of this program is made available # under the terms of the GNU Affero General Public License version 3 # (GNU AGPL V3) as published by the Free Software Foundation. # # Binary versions o...
32.576087
104
0.694361
419e94c10264dc6d9f3867aab67a780522717460
360
py
Python
hausse/plugins/elements/drop.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
null
null
null
hausse/plugins/elements/drop.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
1
2021-08-30T21:41:46.000Z
2021-08-30T21:41:46.000Z
hausse/plugins/elements/drop.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
1
2021-08-31T19:27:32.000Z
2021-08-31T19:27:32.000Z
from typing import List from hausse.lib import Project, SelectorPlugin from hausse.lib.element import Element class Drop(SelectorPlugin): """ Drop specified elements from the current loaded elements. """ def __call__(self, project: Project): for element in list(self.selector(project)): ...
24
61
0.713889
ec383f85327f6cf17447a02cf49a47fb8bcfa243
4,603
py
Python
pyntcloud/geometry/models/sphere.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
1,142
2016-10-10T08:55:30.000Z
2022-03-30T04:46:16.000Z
pyntcloud/geometry/models/sphere.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
195
2016-10-10T08:30:37.000Z
2022-02-17T12:51:17.000Z
pyntcloud/geometry/models/sphere.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
215
2017-02-28T00:50:29.000Z
2022-03-22T17:01:31.000Z
import numpy as np import pandas as pd from .base import GeometryModel class Sphere(GeometryModel): def __init__(self, center=None, radius=None): self.center = center self.radius = radius def from_k_points(self, points): # adapted from # http://www.abecedarical.com/zenosample...
28.067073
77
0.501195
cf46a6b6ad925bae6810c219bcac36580935b652
972
py
Python
scripts/import_sections.py
jdehotin/IFC4.3.x-development
5652a25dac27242af8c60f1a33206d1697948ffa
[ "FSFAP" ]
1
2021-08-31T16:12:09.000Z
2021-08-31T16:12:09.000Z
scripts/import_sections.py
Moult/IFC4.3.x-development
5dfacdc91f04b446f9d7386b950099fc14e6587e
[ "FSFAP" ]
null
null
null
scripts/import_sections.py
Moult/IFC4.3.x-development
5dfacdc91f04b446f9d7386b950099fc14e6587e
[ "FSFAP" ]
null
null
null
# imports the markdown definitions for sections from the bSI/IFC repository import os import sys import glob from collections import defaultdict dr = sys.argv[1] odr = os.path.join(os.path.abspath(os.path.dirname(__file__)), "..", "docs") odirs = {p.split(os.sep)[-1]:p for p in glob.glob(odr + "\\**", recursive=True...
33.517241
100
0.59465
d889129ee833f909b6183304a8a6512c94af7c74
12,477
py
Python
modul_einstieg_programmierung/beggmmversch.py
mirioeggmann/bbc
0f646ce36e71163d809bdf160c9d43a1e143315b
[ "MIT" ]
null
null
null
modul_einstieg_programmierung/beggmmversch.py
mirioeggmann/bbc
0f646ce36e71163d809bdf160c9d43a1e143315b
[ "MIT" ]
null
null
null
modul_einstieg_programmierung/beggmmversch.py
mirioeggmann/bbc
0f646ce36e71163d809bdf160c9d43a1e143315b
[ "MIT" ]
null
null
null
#Mirio Eggmann Abschlussprojekt #Verschlüsseln mit GPIO Eingabe #Importieren #---------------------------------------------------------------------------- import RPi.GPIO as GPIO import time from random import * #Definitionen #---------------------------------------------------------------------------- #Definition Al...
28.356818
115
0.462932
5c54a4395a139968cb2227ce234280ecae83bb08
6,323
py
Python
src/player.py
whfuyn/fyzero
c4c258849a29c84531b54fb67109be6675c28151
[ "MIT" ]
1
2019-02-16T06:27:32.000Z
2019-02-16T06:27:32.000Z
src/player.py
whfuyn/AlphaFy
c4c258849a29c84531b54fb67109be6675c28151
[ "MIT" ]
null
null
null
src/player.py
whfuyn/AlphaFy
c4c258849a29c84531b54fb67109be6675c28151
[ "MIT" ]
null
null
null
import time from pvn import PolicyValueNet from mcts import MonteCarloTreeSearch class Player: def __init__(self, model=None, thinking_depth=1024, config=dict()): if model is None: pvn = PolicyValueNet(None, config) self.mcts = MonteCarloTreeSearch(pvn) elif isinstance(mode...
32.260204
72
0.492488
7a8940892bd6258dd57eb99d53f03bf99d9f8c4a
1,050
py
Python
Termux-Mpv-master/setup.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Termux-Mpv-master/setup.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Termux-Mpv-master/setup.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#!/usr/bin/env python3 # coding=utf-8 from __future__ import unicode_literals, print_function import sys from termuxmpv import __version__ from setuptools import setup import os def read_reqs(path): with open(path, 'r') as file: return list(file.readlines()) abspath = os.path.abspath(__file__) dname =...
30
86
0.666667
710bf4dd18d5fb3502b1a66bf83b0d4e5c231704
1,635
py
Python
pyventskalender/tag21_loesung.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag21_loesung.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag21_loesung.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
import arcade class FindeDenSchnellstenWeg(arcade.Window): """ In dieser Klasse implementieren wir das Spiel. """ def __init__(self, breite, hoehe): super().__init__(breite, hoehe, "Finde den schnellsten Weg") self.breite = breite self.hoehe = hoehe self.spieler = arca...
31.442308
76
0.640979
71186dbbace6750ac3098ea66d490b12789f321b
11,937
py
Python
catbuilder.py
EstelleRobert/ztfflat
ccaa5786021a0f5bbbd97b1991c8b2e349f19411
[ "Apache-2.0" ]
null
null
null
catbuilder.py
EstelleRobert/ztfflat
ccaa5786021a0f5bbbd97b1991c8b2e349f19411
[ "Apache-2.0" ]
null
null
null
catbuilder.py
EstelleRobert/ztfflat
ccaa5786021a0f5bbbd97b1991c8b2e349f19411
[ "Apache-2.0" ]
null
null
null
import os import numpy as np import pandas import dask.dataframe as dd from ztfimg import aperture from ztfquery import fields import dask from ztfimg import science from .io import * def get_columns(sciimg, incl_radec=False): """ For a starflat sciimg.fits file, build ra, dec, rcid and filename columns ...
30.143939
140
0.538829
f115fec0aea152dfdf5404ea6f422a15960a4ce7
1,034
py
Python
course/admin.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
null
null
null
course/admin.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
null
null
null
course/admin.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
2
2020-04-20T07:26:51.000Z
2020-04-30T11:51:54.000Z
from django.contrib import admin from .models import Course, Grade, Basis, IndicatorMark, DetailedMark # Register your models here. @admin.register(Course) class CourseAdmin(admin.ModelAdmin): list_display = ('id', 'name', 'short_description', 'start_date', 'end_date') list_display_links = ('id', 'name') ...
30.411765
80
0.717602
2d14d78d74e34aad66bbae605a4382b9759b41bf
1,371
py
Python
test/test_gnutaremu.py
st3fan/sphinx-automation-experiment
c92c8400770c6c604e2451e4f1e71957fc4c5ef8
[ "Apache-2.0" ]
451
2015-06-15T13:33:13.000Z
2018-05-15T15:10:50.000Z
test/test_gnutaremu.py
st3fan/sphinx-automation-experiment
c92c8400770c6c604e2451e4f1e71957fc4c5ef8
[ "Apache-2.0" ]
95
2015-08-12T07:45:37.000Z
2018-05-10T07:13:59.000Z
test/test_gnutaremu.py
st3fan/sphinx-automation-experiment
c92c8400770c6c604e2451e4f1e71957fc4c5ef8
[ "Apache-2.0" ]
38
2015-06-17T13:35:26.000Z
2018-03-28T21:26:57.000Z
# Copyright (c) 2022 Aiven, Helsinki, Finland. https://aiven.io/ import sys from pathlib import Path from unittest import mock from pghoard import gnutaremu def test_extract(tmp_path): args = ["gnutaremu", "--directory", tmp_path.as_posix(), "--extract", "-f", (Path("test") / "test.tar").as_posix()] with mo...
34.275
119
0.588621
2d3500b70f7740b8f513d2d444e3750d8199923e
1,064
py
Python
modules/config/label_match.py
cloud441/Procerfa
7472aeecc4eb3003e2e0f09bb0ae71f1b33e9ccf
[ "MIT" ]
null
null
null
modules/config/label_match.py
cloud441/Procerfa
7472aeecc4eb3003e2e0f09bb0ae71f1b33e9ccf
[ "MIT" ]
null
null
null
modules/config/label_match.py
cloud441/Procerfa
7472aeecc4eb3003e2e0f09bb0ae71f1b33e9ccf
[ "MIT" ]
null
null
null
label_match_dict= { 'PROPNOM': 'a1a', 'PROPNOM2': 'a2a', 'PROPNOM3': 'a3a', 'DEMANDEA': 'a4a', 'DEMANDELE': 'a5a', 'DEPT': 'b1', 'COMMUNE': 'b2', 'PREFIXE': 'b3', 'SECTION': 'b4', 'FEUILLE': 'b5', 'PV': 'b8', 'DELIM': 'b9', ...
24.181818
27
0.371241
7430c80c71d15e80d981fe14f155a9d3e754f4ba
219
py
Python
app/services/io.py
diedoman/PhaseFour
5243835e05750498b6963a82793c6838f49b4086
[ "MIT" ]
null
null
null
app/services/io.py
diedoman/PhaseFour
5243835e05750498b6963a82793c6838f49b4086
[ "MIT" ]
null
null
null
app/services/io.py
diedoman/PhaseFour
5243835e05750498b6963a82793c6838f49b4086
[ "MIT" ]
null
null
null
class log: file = 0 def __init__(self, filename): self.file = open(filename,'w') def bWrite(self,text): if self.file != 0 and type(text) is str: self.file.write(text) else: self.file.write(str(text))
19.909091
42
0.648402
74334ef855bbf7f838522708ba0461714db5dd59
12,585
py
Python
tests/onegov/election_day/layouts/test_manage_layouts.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/layouts/test_manage_layouts.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/layouts/test_manage_layouts.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.ballot import ElectionCollection from onegov.ballot import ElectionCompoundCollection from onegov.ballot import VoteCollection from onegov.election_day.collections import DataSourceCollection from onegov.election_day.collections import DataSourceItemCollection from onegov.election_day.collections import Ema...
34.861496
79
0.556774
7460eee8ba806920b8fb7d265183cad8f46d552a
12,617
py
Python
py/ask_util.py
bookmana/bookmana.github.io
2ed7b023b0851c0c18ad8e7831ece910d9108852
[ "MIT" ]
null
null
null
py/ask_util.py
bookmana/bookmana.github.io
2ed7b023b0851c0c18ad8e7831ece910d9108852
[ "MIT" ]
null
null
null
py/ask_util.py
bookmana/bookmana.github.io
2ed7b023b0851c0c18ad8e7831ece910d9108852
[ "MIT" ]
null
null
null
#-*-coding:utf-8 import datetime import os, sys import random import re import time def dirSearch(dirname,file_name, root_path): filenames = os.listdir(dirname) # print(filenames) for filename in filenames: if filename == "askmarket_google.json": return os.path.join(root_pat...
29.410256
80
0.593247
7470eb7d93e640aa2bbd59cca05d068b894b00ef
4,881
py
Python
Utils/py/SimsparkTests/Tests/opp_pushing_free_kick.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/SimsparkTests/Tests/opp_pushing_free_kick.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/SimsparkTests/Tests/opp_pushing_free_kick.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import math from naoth import BehaviorParser, Framework_Representations_pb2 from AgentController import AgentController from SimsparkController import SimsparkController from Utils import * def position_and_execute(s, a, parser, pos, ball): # first place the robot! If we run this test multiple times, the robot ...
41.016807
143
0.598238
7796b81ddd2a8390cb511ae0a42a801690d64bfb
283
py
Python
src/python/py-accepted/131A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
2
2019-09-07T17:00:26.000Z
2020-08-05T02:08:35.000Z
src/python/py-accepted/131A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
src/python/py-accepted/131A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
#! python # Problem # : 131A # Created on : 2019-01-15 20:16:51 def Main(): l = input() a, b = l[0], l[1:] if l.isupper() or (a.islower() and (not b or b.isupper())): print(l.swapcase()) else: print(l) if __name__ == '__main__': Main()
14.894737
63
0.501767
77acebf761335403016a2d486737e119e6ec0ee7
2,318
py
Python
python/flask/restful_api/app.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/flask/restful_api/app.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/flask/restful_api/app.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, redirect, url_for from flask import jsonify app = Flask(__name__) from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from database_setup import Base, Book # Connect to Database and create database session engine = create_engine('sqlite:///bo...
27.927711
79
0.669974
bb5d6f2b414474631cabc81ca5d6eb5e707e3694
6,842
py
Python
src/onegov/user/integration.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/user/integration.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/user/integration.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import morepath from more.webassets import WebassetsApp from more.webassets.core import webassets_injector_tween from onegov.core.cache import lru_cache from onegov.core.security import Public from onegov.user.auth.core import Auth from onegov.user.auth.provider import AUTHENTICATION_PROVIDERS, AzureADProvider from one...
31.385321
79
0.677141
560a3b3a42294cb4d80066e53416b4958bdfa920
3,248
py
Python
test/test_npu/test_network_ops/test_equal.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_equal.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_equal.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
43.891892
93
0.611145
3b08c4e08c1b4d1ce36eb3982b7048ebdb02f192
213
py
Python
apps/util/templatetags/verbose_name.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
1
2017-01-08T13:21:43.000Z
2017-01-08T13:21:43.000Z
apps/util/templatetags/verbose_name.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
17
2018-12-03T14:22:14.000Z
2021-07-14T15:15:12.000Z
apps/util/templatetags/verbose_name.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
2
2018-12-03T14:58:49.000Z
2019-12-01T13:24:42.000Z
from django import template register = template.Library() @register.filter def verbose_name(thing): return thing._meta.verbose_name @register.filter def class_name(thing): return type(thing).__name__
15.214286
35
0.769953
79b1eb94b94965787cce39ab1a6ef3a06b1ac6b6
154
py
Python
Pythonjunior2020/Woche2/Aufgabe_2_4_1.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche2/Aufgabe_2_4_1.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche2/Aufgabe_2_4_1.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
# 2.4.1, Woche 2, Block 4, Aufgabe 1 # Liste camp = ["Schere", "Stift", "Regenjacke", "Lampe"] # Ausgabe for i in range(len(camp)) : print(camp[i])
17.111111
49
0.603896
79c3840883a662b7710c92a7415232b5ca06fcae
943
py
Python
static/posts/broken-one-time-pad-2/challenge.py
Enteee/duckpond.ch
9fbcf5b684f3ebe63f054a9f3f59012298af90a4
[ "MIT" ]
1
2016-09-14T02:59:51.000Z
2016-09-14T02:59:51.000Z
static/posts/broken-one-time-pad-2/challenge.py
Enteee/Enteee.github.io
a495f650a626f6aa4d90b46d86c0fb2b3416341c
[ "MIT" ]
3
2016-05-24T16:13:00.000Z
2016-06-04T12:07:40.000Z
static/posts/broken-one-time-pad-2/challenge.py
Enteee/duckpond.ch
9fbcf5b684f3ebe63f054a9f3f59012298af90a4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # vim: set fenc=utf8 ts=4 sw=4 et : import sys import socket import random from threading import Thread with open("key.png", "rb") as f: SECRET = f.read() def client_thread(clientsocket): random.seed() clientsocket.send(bytes([ SECRET[i] ^ random.getrandbits(8) for ...
25.486486
72
0.645811
8df4a0732582547dc8d836da52153633f128de29
9,408
py
Python
official/cv/vit/src/optimizer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
official/cv/vit/src/optimizer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/vit/src/optimizer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
43.75814
119
0.642007
30be5df6480226065c5d23c4676287c75842d241
533
py
Python
src/custom_functions.py
Blastorios/DMT
30c8fc0e52e1f55c9ac8bcca5a93ee68f17a2214
[ "MIT" ]
null
null
null
src/custom_functions.py
Blastorios/DMT
30c8fc0e52e1f55c9ac8bcca5a93ee68f17a2214
[ "MIT" ]
null
null
null
src/custom_functions.py
Blastorios/DMT
30c8fc0e52e1f55c9ac8bcca5a93ee68f17a2214
[ "MIT" ]
null
null
null
#!/usr/bin/python '''Basic Helper Functions Created on 13/04/2021''' import json import sys from typing import * from pathlib import Path import numpy as np import pandas as pd import sklearn as sk #################### def store_json(data: Dict, path: Union[str, Path]) -> None: with open(Path(path), "w") as jso...
19.740741
59
0.645403
065a533428624852471a4124015b4364300d9d75
1,336
py
Python
elements/python/7/10/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/7/10/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/7/10/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
import string import random def decode_rle(s): n = len(s) i = 0 result = '' while i < n: run = 0 while ord(s[i]) >= ord('0') and ord(s[i]) <= ord('9'): run = 10*run + (ord(s[i]) - ord('0')) i += 1 result += s[i]*run i += 1 return result def...
20.242424
62
0.532186
0680407752d03a1934913e761ce24584064c1b1c
1,168
py
Python
block.py
argifood/Be2
df190bc784d0e1de18d38f370bc5be590d2421e2
[ "Apache-2.0" ]
null
null
null
block.py
argifood/Be2
df190bc784d0e1de18d38f370bc5be590d2421e2
[ "Apache-2.0" ]
null
null
null
block.py
argifood/Be2
df190bc784d0e1de18d38f370bc5be590d2421e2
[ "Apache-2.0" ]
null
null
null
import requests import os from subprocess import run import json import subprocess def create_block(dataa): headers = { 'Content-type': 'application/json', } data = '{"data" :' + dataa + '}' response = requests.post('http://localhost:3001/mineBlock', headers=headers, data=data) def create_peer(): headers = ...
27.809524
88
0.65411
ebf68ffc36d3276f58ca46faf95342d221b457ec
1,277
py
Python
agenda.py
bruhensant/POO
ee1bfc75c6734a773bed50889370eefb7a154061
[ "MIT" ]
null
null
null
agenda.py
bruhensant/POO
ee1bfc75c6734a773bed50889370eefb7a154061
[ "MIT" ]
null
null
null
agenda.py
bruhensant/POO
ee1bfc75c6734a773bed50889370eefb7a154061
[ "MIT" ]
null
null
null
class Agenda(): def __init__(self): # construtor self.Pessoas = [] # ou seja, tudo que for definido como "Agenda", vai receber essa característica def inserirPessoa(self, usuario): # método = função, que vai dar append(x) self.Pessoas.append(usuario) # dentro de uma lista chamada Pessoas, qu...
31.925
105
0.630384
235d0e1e3209765a62716175746586b2a13e58e5
157
py
Python
notebooks_and_scripts/graph_miner/utils/__init__.py
LucaCappelletti94/EnsmallenGraph
572532b6d3f4352bf58f9ccca955376acd95fd89
[ "MIT" ]
null
null
null
notebooks_and_scripts/graph_miner/utils/__init__.py
LucaCappelletti94/EnsmallenGraph
572532b6d3f4352bf58f9ccca955376acd95fd89
[ "MIT" ]
null
null
null
notebooks_and_scripts/graph_miner/utils/__init__.py
LucaCappelletti94/EnsmallenGraph
572532b6d3f4352bf58f9ccca955376acd95fd89
[ "MIT" ]
null
null
null
"""Sub-module with utilities used across the graph automatic retrieval.""" from .get_cached_page import get_cached_page __all__ = [ "get_cached_page" ]
22.428571
74
0.764331
ccc75508bb10cec1e3029c97b4483a5e12f5fc79
1,191
py
Python
benchmarks/matbench_v0.1_Ax_SAASBO_CrabNet_v1.2.7/utils/metrics.py
sparks-baird/matbench
4424609454286e32fff2bcc724379b2a316c5a76
[ "MIT" ]
15
2021-11-01T09:02:19.000Z
2022-03-19T10:59:41.000Z
benchmarks/matbench_v0.1_Ax_SAASBO_CrabNet_v1.2.7/utils/metrics.py
sparks-baird/matbench
4424609454286e32fff2bcc724379b2a316c5a76
[ "MIT" ]
62
2021-09-20T14:09:59.000Z
2022-03-30T19:03:22.000Z
benchmarks/matbench_v0.1_Ax_SAASBO_CrabNet_v1.2.7/utils/metrics.py
sparks-baird/matbench
4424609454286e32fff2bcc724379b2a316c5a76
[ "MIT" ]
3
2021-11-26T10:13:48.000Z
2022-01-08T06:56:03.000Z
import pandas as pd from ax import Data from ax.storage.metric_registry import register_metric from ax.core import Metric from utils.parameterization import crabnet_mae # %% CrabNetMetric class CrabNetMetric(Metric): def __init__(self, name, train_val_df, n_splits=5): self.train_val_df = train_val_df ...
31.342105
79
0.595298
ee031fc0ba33e403193a7e6674fa3cc52707c23a
664,231
py
Python
uploads/2021-07-12/pickled.py
IrisSec/irissec.github.io
7069e33a35ef12195e69fa21f8f0b2cee228cdb6
[ "MIT" ]
8
2020-07-31T10:10:35.000Z
2022-03-10T18:21:25.000Z
redpwn/2021/rev/pickled-onions/chall.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
redpwn/2021/rev/pickled-onions/chall.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
2
2021-07-18T06:30:34.000Z
2021-08-06T03:10:37.000Z
__import__('pickle').loads(b'(I128\nI4\nI99\nI112\nI105\nI99\nI107\nI108\nI101\nI10\nI105\nI111\nI10\nI40\nI140\nI18\nI112\nI105\nI99\nI107\nI108\nI101\nI100\nI104\nI111\nI114\nI115\nI101\nI114\nI97\nI100\nI105\nI115\nI104\nI67\nI65\nI128\nI4\nI99\nI112\nI105\nI99\nI107\nI108\nI101\nI10\nI105\nI111\nI10\nI99\nI105\nI11...
664,231
664,231
0.819515
09281d5ef0b131818933ad1ee61fcb24f9a83bde
550
py
Python
hypercut/urlcut/urls.py
UnoYakshi/HyperCut
dc1dc2ad4383b69d2833e94f205959e5fe079971
[ "MIT" ]
null
null
null
hypercut/urlcut/urls.py
UnoYakshi/HyperCut
dc1dc2ad4383b69d2833e94f205959e5fe079971
[ "MIT" ]
5
2021-03-30T13:49:59.000Z
2021-09-22T19:19:10.000Z
hypercut/urlcut/urls.py
UnoYakshi/HyperCut
dc1dc2ad4383b69d2833e94f205959e5fe079971
[ "MIT" ]
null
null
null
from django.urls import path, re_path from django.views.decorators.csrf import csrf_exempt from .views import IndexView, URLView, ShortURLRedirectView, AllURLsView, RemoveURLView urlpatterns = [ path('', IndexView.as_view(), name='index'), re_path(r'^(?P<short_url>[0-9a-zA-Z]+)/$', ShortURLRedirectView.as_vie...
42.307692
96
0.701818
0960a65178ef5796d0b3ed35cbbe31303d84da1c
4,446
py
Python
workspace/cogrob/service_manager/model/service_request.py
CogRob/Rorg
dbf9d849e150404c117f6f0062476d995cec7316
[ "BSD-3-Clause" ]
8
2019-05-07T02:30:58.000Z
2021-12-10T18:44:45.000Z
workspace/cogrob/service_manager/model/service_request.py
CogRob/Rorg
dbf9d849e150404c117f6f0062476d995cec7316
[ "BSD-3-Clause" ]
1
2021-03-17T07:18:23.000Z
2021-03-17T07:18:23.000Z
workspace/cogrob/service_manager/model/service_request.py
CogRob/Rorg
dbf9d849e150404c117f6f0062476d995cec7316
[ "BSD-3-Clause" ]
2
2019-05-21T14:15:24.000Z
2022-02-09T12:50:24.000Z
# Copyright (c) 2019, The Regents of the University of California # 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, thi...
34.465116
79
0.747638
11d7893fb32389fec842db952c567e45d5db25f1
6,280
py
Python
Packs/AWS-IAM/Integrations/AWS-IAM/AWS_IAM_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/AWS-IAM/Integrations/AWS-IAM/AWS_IAM_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/AWS-IAM/Integrations/AWS-IAM/AWS_IAM_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import datetime import pytest import importlib import demistomock as demisto AWS_IAM = importlib.import_module("AWS-IAM") ATTACHED_POLICIES = [ { 'PolicyName': 'AdministratorAccess', 'PolicyArn': 'arn:aws:iam::aws:policy/AdministratorAccess' } ] ATTACHED_RESPONSE = { 'AttachedPolicies': ...
28.41629
109
0.653981
015593298c6a1619291d1f10083f008613673b29
348
py
Python
PINp/2014/Gryadin_V_D/task_5_46.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Gryadin_V_D/task_5_46.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Gryadin_V_D/task_5_46.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 5. Вариант 46 #Напишите программу, которая бы при запуске случайным образом отображала #имя одного из семи мишек Гамми. #Gryadin V. D. import random a = random.choice(['Колдун Гамми.','Ворчун Гамми.','Бабушка Гамми.', 'Толстун Гамми.', 'Солнышко Гамми.', 'Малыш Гамми.', 'Густо Гамми.']) print(a) input("\nВве...
29
138
0.727011
6df22bc9b0819f84a5b38d564b5cc5faf8589a8a
407
py
Python
ProjectEuler_plus/euler_063.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_063.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_063.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys N = int(input().strip()) min_val = 10 ** (N - 1) max_val = 10 ** (N) i = 1 while i ** N < min_val: i += 1 di = i ** N while di < max_val: print(di) i += 1 di = i ** N ''' N = int(input().strip()) min_val = int(pow(10 ** (N - 1), (1./N))) + 1 limit = 10 ** (N) for i i...
14.535714
45
0.471744
0969bb5ebd40d4ba68489bb414267de04e22790b
1,097
py
Python
test/test_tag05.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
test/test_tag05.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
test/test_tag05.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
from unittest import TestCase from unittest.mock import patch try: from pyventskalender import tag05_loesung as heute ICH_TIPPE_AUF_PATH = "pyventskalender.tag05_loesung.ich_tippe_auf" # Achtung: _loesung muss in import und _PATH identisch sein! except ImportError: from pyventskalender import tag05 as h...
33.242424
70
0.680036
11638f8a9b738348e6f9659d934f348d9948b0cf
1,002
py
Python
src/_virtual.py
nullputra/nlptr-lib
618c2c74c3d3033bae04de9ba9a253bb6eb31a6c
[ "CC0-1.0" ]
null
null
null
src/_virtual.py
nullputra/nlptr-lib
618c2c74c3d3033bae04de9ba9a253bb6eb31a6c
[ "CC0-1.0" ]
null
null
null
src/_virtual.py
nullputra/nlptr-lib
618c2c74c3d3033bae04de9ba9a253bb6eb31a6c
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/python3 # region 1. """ # verification-helper: PROBLEM https://atcoder.jp import sys n = int(input()) a = list(map(int, input().split())) print(sum(a)) # """ # endregion # region 2. """ # verification-helper: PROBLEM https://atcoder.jp import sys n = int(input()) a = list(map(int, input().split())) print(...
14.955224
49
0.629741
3ab24d6878d5a554406a73bff19ab17c383819fe
4,292
py
Python
src/onegov/town6/forms/settings.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/forms/settings.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/forms/settings.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from wtforms_components import ColorField from onegov.form import Form from onegov.org.forms.settings import GeneralSettingsForm as \ OrgGeneralSettingsForm from onegov.form.fields import ChosenSelectField, ChosenSelectMultipleField from onegov.town6 import _ from onegov.town6.theme import user_options from wtform...
31.328467
79
0.642125
a3561b025902bb3aea3dcc2179a715dad5d2ca9d
978
py
Python
INBa/2014/Andreev_F_I/Andreev_7_2.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2014/Andreev_F_I/Andreev_7_2.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2014/Andreev_F_I/Andreev_7_2.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 7, Вариант 2 # Разработайте систему начисления очков для задачи 6, в соответствии с которой игрок получал бы большее количество баллов за меньшее количество попыток. # Андреев Ф.И. # 25.05.2016 import random print ('Отгадайте название одного из двенадцати созвездий, входящих в зодиакальный круг ') d...
33.724138
153
0.700409
a3a3baa6c6edfe97b4f22b655fba281b37ed8e98
4,765
py
Python
_scripts/compare_md_structure.py
marcomicera/guide
4135647f4730ae95f6b830330a0e0e7f6e2f6e43
[ "CC-BY-4.0" ]
null
null
null
_scripts/compare_md_structure.py
marcomicera/guide
4135647f4730ae95f6b830330a0e0e7f6e2f6e43
[ "CC-BY-4.0" ]
1
2020-04-22T01:21:14.000Z
2020-04-22T01:21:14.000Z
_scripts/compare_md_structure.py
marcomicera/guide
4135647f4730ae95f6b830330a0e0e7f6e2f6e43
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/python3 import argparse import difflib import io import logging import markdown import os import re import sys from collections import Counter from lxml import etree logger = logging.getLogger(__name__) parser = argparse.ArgumentParser(description='Analyze element hierarchy of md files') parser.add_argume...
32.414966
91
0.634418
6e1d40392087bc55185af7f2e6fb7e45496e24af
248
py
Python
tests/test_web_admin.py
ralfkret/hvz
842c25d58fb3c30060080efcfa8b3d183b78e2ab
[ "MIT" ]
1
2019-07-30T14:39:43.000Z
2019-07-30T14:39:43.000Z
tests/test_web_admin.py
ralfkret/hvz
842c25d58fb3c30060080efcfa8b3d183b78e2ab
[ "MIT" ]
11
2019-07-31T13:40:30.000Z
2019-08-07T21:54:52.000Z
tests/test_web_admin.py
ralfkret/hvz
842c25d58fb3c30060080efcfa8b3d183b78e2ab
[ "MIT" ]
null
null
null
def test_landing_page(client): response = client.get('/', follow_redirects=True) assert b'Produkte' in response.data def test_product_list(client): response = client.get('/', follow_redirects=True) assert b'water' in response.data
31
53
0.729839
95ee517a38aab80c7fba4cbd9337a73e21c36875
510
py
Python
2_Iterables/Sets/sets.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
1
2022-03-02T07:16:30.000Z
2022-03-02T07:16:30.000Z
2_Iterables/Sets/sets.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
2_Iterables/Sets/sets.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
# https://docs.python.org/3.8/library/stdtypes.html#set-types-set-frozenset # keine doppelten Elemente set1 = {1, 2, 3, 1} print(set1, type(set1)) set2 = set([1, 2, 3, 1]) set3 = {4, 5, 6} set4 = {6, 7, 8} print(set3.intersection(set4)) # Ausgabe der gemeinsamen Elemente print(set3.union(set4)) # Ausgabe Vereinigung...
22.173913
75
0.64902
251b9d76ec9342a5e9b9de515c92fbd245e7dbae
12,034
py
Python
wz/ui_modules/tab_grade_editor.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/ui_modules/tab_grade_editor.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/ui_modules/tab_grade_editor.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ ui/tab_grade_editor.py Last updated: 2021-04-06 Editor for grades. =+LICENCE============================= Copyright 2021 Michael Towers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtai...
33.99435
77
0.644424
2536caca34db2cfabe9ea16c34ef2a31e76368e4
611
py
Python
IVTp/2014/TITOV_S_G/task_3_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/TITOV_S_G/task_3_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/TITOV_S_G/task_3_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 3. Вариант 22. # Напишите программу, которая выводит имя "Филип Ауреол Теофраст Бомбаст фон Гогенгейм", и запрашивает его псевдоним. Программа должна сцеплять две эти строки и выводить полученную строку, разделяя имя и псевдоним с помощью тире. # Titov S.G. # 14.03.2016 name = "Филипп Ауреол Теофраст Бомбаст...
32.157895
229
0.716858
c2e90402cf4392eda5939b4d77f22b89fb3c4735
846
py
Python
backend/app.py
methodpark/digitaleswarten
024c0b88df54e9727925b202e139b3c5b2ce73d6
[ "Apache-2.0" ]
10
2020-03-20T19:14:43.000Z
2020-10-29T21:31:40.000Z
backend/app.py
methodpark/digitaleswarten
024c0b88df54e9727925b202e139b3c5b2ce73d6
[ "Apache-2.0" ]
41
2020-03-20T20:27:55.000Z
2020-03-24T21:49:37.000Z
backend/app.py
methodpark/digitaleswarten
024c0b88df54e9727925b202e139b3c5b2ce73d6
[ "Apache-2.0" ]
1
2020-03-21T09:31:51.000Z
2020-03-21T09:31:51.000Z
# flask_web/app.py """ 1. Creates the basic flask application 2. Connects the app to the database 3. Creates database tables, if they don't exist """ from flask import Flask from flask_sqlalchemy import SQLAlchemy from pathlib import Path import os app = Flask(__name__) sqlite_location = '/db/digitalesWartenDB.sqlit...
27.290323
70
0.760047
6c2d7a1529fba5b5519f06ac11652e6c6430dac4
1,325
py
Python
Inverted-Index-Construction/04-get-result.py
liao2000/Information-Retrieval-NCHU
a800aefec442fd83514c2091d0da0a2e1a9815b7
[ "MIT" ]
null
null
null
Inverted-Index-Construction/04-get-result.py
liao2000/Information-Retrieval-NCHU
a800aefec442fd83514c2091d0da0a2e1a9815b7
[ "MIT" ]
null
null
null
Inverted-Index-Construction/04-get-result.py
liao2000/Information-Retrieval-NCHU
a800aefec442fd83514c2091d0da0a2e1a9815b7
[ "MIT" ]
null
null
null
import json from ckiptagger import data_utils, WS import sqlite3 database = './table-v2.db' conn = sqlite3.connect(database) cursor = conn.cursor() inputs = ["美國航空公司", "洛杉磯快艇", "足利義輝", "底特律老虎", "格萊美", "奧斯卡最佳導演獎", "臺北都會區", "塞拉耶佛", "洛杉磯市", "閃電十一人", "阿姆斯壯", "石垣島", "Volkswagen", "正規化", "英格蘭足球超級聯賽", "東京迪士尼樂園", "攻...
31.547619
101
0.593208
dd71f849475de644b166463b12b0ef55e149512a
1,475
py
Python
2019/finals/misc-sc/solution/test_solver.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2019/finals/misc-sc/solution/test_solver.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2019/finals/misc-sc/solution/test_solver.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
#/usr/bin/python3 # Copyright 2019 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
28.921569
82
0.674576
06b45fb57d7aefc2278ac8ebf4ebec2a39a2d86a
7,016
py
Python
notebooks_and_scripts/graph_miner/repositories/wikipedia_graph_repository.py
LucaCappelletti94/EnsmallenGraph
572532b6d3f4352bf58f9ccca955376acd95fd89
[ "MIT" ]
null
null
null
notebooks_and_scripts/graph_miner/repositories/wikipedia_graph_repository.py
LucaCappelletti94/EnsmallenGraph
572532b6d3f4352bf58f9ccca955376acd95fd89
[ "MIT" ]
null
null
null
notebooks_and_scripts/graph_miner/repositories/wikipedia_graph_repository.py
LucaCappelletti94/EnsmallenGraph
572532b6d3f4352bf58f9ccca955376acd95fd89
[ "MIT" ]
null
null
null
"""Sub-module handling the retrieval and building of graphs from Wikipedia.""" from typing import List, Dict import requests from tqdm.auto import tqdm from bs4 import BeautifulSoup from .graph_repository import GraphRepository from ..utils import get_cached_page def normalize_wikipedia_graph_name(graph_name: str) ->...
31.603604
135
0.533637
66391a14d649f3ab455b26ba56c1d659d99d04bb
552
py
Python
Packs/Salesforce/Scripts/GenerateProfileId/GenerateProfileId.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Salesforce/Scripts/GenerateProfileId/GenerateProfileId.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Salesforce/Scripts/GenerateProfileId/GenerateProfileId.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 title_to_profile_id = { "sales": "123", "marketing": "234", "engineer": "345" } def main(): try: args = demisto.args() user_profile = args.get("value") title = user_profile.get("title")...
19.714286
51
0.606884
b09c205b114bd3b76da0e20535a07d4409e7bc1f
1,435
py
Python
code/examples/HardwareTest.py
SaschaMzH/hucon
830b6c5e21c2c7316c61e8afdf708066374b9b62
[ "BSD-3-Clause" ]
2
2019-09-25T13:39:22.000Z
2019-09-26T10:06:13.000Z
code/examples/HardwareTest.py
SaschaMzH/hucon
830b6c5e21c2c7316c61e8afdf708066374b9b62
[ "BSD-3-Clause" ]
44
2019-09-25T14:35:48.000Z
2021-08-20T17:26:12.000Z
code/examples/HardwareTest.py
SaschaMzH/hucon
830b6c5e21c2c7316c61e8afdf708066374b9b62
[ "BSD-3-Clause" ]
8
2019-09-25T13:53:07.000Z
2022-02-24T19:23:44.000Z
""" Run a hardware test over all eyes, a connected servo / motor. Copyright (C) 2019 Basler AG All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. """ from hucon import Eye from hucon import Servo from hucon import ...
20.5
77
0.652265
b0615234b7de4c9bde13739d2577ad573d6d0179
1,677
py
Python
disenn/utils/initialization.py
AmanDaVinci/DiSENN
ca84a8d646ad8e5e3675ffd19165c20933b81ef7
[ "MIT" ]
1
2020-08-28T05:06:36.000Z
2020-08-28T05:06:36.000Z
disenn/utils/initialization.py
AmanDaVinci/DiSENN
ca84a8d646ad8e5e3675ffd19165c20933b81ef7
[ "MIT" ]
null
null
null
disenn/utils/initialization.py
AmanDaVinci/DiSENN
ca84a8d646ad8e5e3675ffd19165c20933b81ef7
[ "MIT" ]
null
null
null
import math import torch from torch import nn from torch.nn.init import xavier_uniform_, kaiming_uniform_, calculate_gain def init_parameters(module): """Initialize parameters of a given layer-activation block""" # see also https://github.com/pytorch/pytorch/issues/18182 supported_modules = {nn.Conv2d, ...
39.928571
86
0.641026
c6891b2508e5a9b618e8838dade21197c97c2853
742
py
Python
services/web/project/__init__.py
pawelkonior/flask_boilerplate
5be7d6a0e74d94c5e992b096e7e200a9c91d0666
[ "MIT" ]
null
null
null
services/web/project/__init__.py
pawelkonior/flask_boilerplate
5be7d6a0e74d94c5e992b096e7e200a9c91d0666
[ "MIT" ]
null
null
null
services/web/project/__init__.py
pawelkonior/flask_boilerplate
5be7d6a0e74d94c5e992b096e7e200a9c91d0666
[ "MIT" ]
null
null
null
import os from flask import Flask from flask_sqlalchemy import SQLAlchemy # from flask_login import LoginManager from flask_migrate import Migrate from logging import DEBUG basedir = os.path.abspath(os.path.dirname(__file__)) db = SQLAlchemy() # login_manager = LoginManager() def create_app(): app = Flask(__...
20.054054
84
0.733154
af68d15b4204c0d625cc6c0e5c1a76baebce4a17
9,174
py
Python
DataCollections/Twitter/TwitterHandler.py
moasgh/BumbleBee
2b0aae7970ab316c7b8b12dd4032b41ee1772aad
[ "MIT" ]
7
2020-03-06T05:53:43.000Z
2022-01-30T17:31:18.000Z
DataCollections/Twitter/TwitterHandler.py
moasgh/BumbleBee
2b0aae7970ab316c7b8b12dd4032b41ee1772aad
[ "MIT" ]
null
null
null
DataCollections/Twitter/TwitterHandler.py
moasgh/BumbleBee
2b0aae7970ab316c7b8b12dd4032b41ee1772aad
[ "MIT" ]
null
null
null
import Config import tweepy from tweepy.streaming import StreamListener from tweepy import OAuthHandler from tweepy import Stream import json import dataset import re import CTweets import pandas as pd import sys #FIPS = pd.read_csv('FipsCode.csv') #USCodes = {} #statename = {} # for index,row in FIPS...
41.7
141
0.562132
afb239fc32512b37ba5853d0e7287ba098ad31de
3,668
py
Python
WW_Role_Test.py
Jugendhackt/Werwolf_Brettspiel
fc8ba953e005d2fc9b618c7bb2a93e57fbde6338
[ "MIT" ]
null
null
null
WW_Role_Test.py
Jugendhackt/Werwolf_Brettspiel
fc8ba953e005d2fc9b618c7bb2a93e57fbde6338
[ "MIT" ]
null
null
null
WW_Role_Test.py
Jugendhackt/Werwolf_Brettspiel
fc8ba953e005d2fc9b618c7bb2a93e57fbde6338
[ "MIT" ]
null
null
null
import random import time ar = ["Werwolf", "Seher", "Hexe", "Bewohner"] # Alle rollen die existieren rollen_spiel = [ar[0], ar[0], ar[1], ar[2], ar[3], ar[3], ar[3], ar[3]] # Jede EINZELNE Rolle in der Runde Rollennummer = 1 # Spieler ID gesamt_spieler = [] # Ort zum Sammeln aller Spielernamen spieler...
46.43038
140
0.712923
b1c3ef1d1110da443f885a53662c2be96d377115
12,218
py
Python
quant/api/binance.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
7
2017-10-22T15:00:09.000Z
2019-09-19T11:45:43.000Z
quant/api/binance.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
1
2018-01-19T16:19:40.000Z
2018-01-19T16:19:40.000Z
quant/api/binance.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
5
2017-12-11T15:10:29.000Z
2018-12-21T17:40:58.000Z
#!/usr/bin/env python # coding=utf-8 import hashlib import requests import time from .binance_exceptions import BinanceAPIException from .binance_validation import validate_order from urllib import urlencode class Client(object): """ https://www.binance.com/cn/fee/schedule 手续费 """ API_URL = 'https...
33.565934
143
0.600671
59049d0d498ba2111d3c05553ddbe087e2c25cf9
1,389
py
Python
code/utils/functions.py
dieterpl/iDogstra
62ee246763e107335b9caf0a4f96239fa0953234
[ "MIT" ]
null
null
null
code/utils/functions.py
dieterpl/iDogstra
62ee246763e107335b9caf0a4f96239fa0953234
[ "MIT" ]
null
null
null
code/utils/functions.py
dieterpl/iDogstra
62ee246763e107335b9caf0a4f96239fa0953234
[ "MIT" ]
null
null
null
import time import warnings import functools def current_time_millis(): """ Returns the current system time in milliseconds """ return int(round(time.time() * 1000)) def overrides(interface_class): """ This method can be used as an @override annotation. Inspired by http://stackoverflow.com/questions...
27.235294
120
0.687545
595a369e63c3263dfa9941d3c4c31bbe8e98696e
219
py
Python
diversos/enumerar.py
lcarlin/guppe
a0ee7b85e8687e8fb8243fbb509119a94bc6460f
[ "Apache-2.0" ]
1
2021-12-18T15:29:24.000Z
2021-12-18T15:29:24.000Z
diversos/enumerar.py
lcarlin/guppe
a0ee7b85e8687e8fb8243fbb509119a94bc6460f
[ "Apache-2.0" ]
null
null
null
diversos/enumerar.py
lcarlin/guppe
a0ee7b85e8687e8fb8243fbb509119a94bc6460f
[ "Apache-2.0" ]
3
2021-08-23T22:45:20.000Z
2022-02-17T13:17:09.000Z
lista = ["avocaddo", "abuceta", "doguinho fiadaputa", "Luiz ConZê"] for i in range(len(lista)): print (i, lista [i]) print ("============================") for i, nbome in enumerate(lista) : print (i, nbome)
31.285714
67
0.538813
59a0b5686b7b072fc009cb0a2c58cbf767be44a1
2,995
py
Python
assets/udk/python/scriptingframework/dynamicDialog.py
brnnnfx/openoffice-org
8b1023c59fd9c7a58d108bb0b01dd1f8884c9163
[ "Apache-2.0" ]
5
2019-10-14T23:00:48.000Z
2021-11-06T22:21:06.000Z
assets/udk/python/scriptingframework/dynamicDialog.py
brnnnfx/openoffice-org
8b1023c59fd9c7a58d108bb0b01dd1f8884c9163
[ "Apache-2.0" ]
31
2020-11-14T09:27:16.000Z
2022-03-08T17:09:15.000Z
assets/udk/python/scriptingframework/dynamicDialog.py
brnnnfx/openoffice-org
8b1023c59fd9c7a58d108bb0b01dd1f8884c9163
[ "Apache-2.0" ]
15
2020-11-10T17:04:25.000Z
2022-01-31T12:12:48.000Z
import uno import unohelper from com.sun.star.awt import XActionListener class MyActionListener( unohelper.Base, XActionListener ): def __init__(self, labelControl, prefix ): self.nCount = 0 self.labelControl = labelControl self.prefix = prefix def actionPerformed(self, actionE...
34.825581
105
0.646411
34e24ce45b1b61057170f6c44489b3d2a9333a0a
465
py
Python
gestionTomaDatos/migrations/0010_auto_20210120_2051.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-09T01:20:45.000Z
2021-01-09T01:20:45.000Z
gestionTomaDatos/migrations/0010_auto_20210120_2051.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-09T00:53:55.000Z
2021-01-09T00:53:55.000Z
gestionTomaDatos/migrations/0010_auto_20210120_2051.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-07T23:57:28.000Z
2021-01-07T23:57:28.000Z
# Generated by Django 2.2.17 on 2021-01-20 20:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gestionTomaDatos', '0009_auto_20210120_2034'), ] operations = [ migrations.AlterField( model_name='adqdata_eeg_protocolo', ...
24.473684
93
0.645161
b5fc102c0783b0b9720d5a4b8d739164975afc78
2,970
py
Python
PipelineManager.py
FrieAT/MD_CompressedWavelet
82bd10edd611485cd5f0b81da744e07a3b7c98eb
[ "MIT" ]
2
2020-03-28T11:50:45.000Z
2020-12-08T13:36:26.000Z
PipelineManager.py
FrieAT/MD_CompressedWavelet
82bd10edd611485cd5f0b81da744e07a3b7c98eb
[ "MIT" ]
2
2020-04-20T11:12:59.000Z
2020-05-11T05:37:36.000Z
PipelineManager.py
FrieAT/MD_CompressedWavelet
82bd10edd611485cd5f0b81da744e07a3b7c98eb
[ "MIT" ]
null
null
null
from IProcess import IProcess, EDataType import multiprocessing as mp from queue import Empty, Full from math import floor, ceil from shutil import get_terminal_size class PipelineManager(IProcess): def __init__(self): IProcess.__init__(self) self.isManager = True self.mpQueue = None def toId(self): retu...
27
133
0.685185
1fbc6aa7b3632cfe6cb15293089be5fd9026213a
21,920
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/manage_network.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/manage_network.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/manage_network.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# Copyright (C) Microsoft Corporation. All rights reserved. # This program is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. #!/usr/bin...
31.630592
113
0.581341
1f895018000552488dd1172906992cbcd9c269d7
1,161
py
Python
hist_db/shell_config.py
apragacz/hist-db
a2631a7eab004499dae98a0495bc17ee78c6be8a
[ "MIT" ]
1
2021-12-14T22:52:46.000Z
2021-12-14T22:52:46.000Z
hist_db/shell_config.py
apragacz/hist-db
a2631a7eab004499dae98a0495bc17ee78c6be8a
[ "MIT" ]
null
null
null
hist_db/shell_config.py
apragacz/hist-db
a2631a7eab004499dae98a0495bc17ee78c6be8a
[ "MIT" ]
null
null
null
from __future__ import absolute_import, print_function, unicode_literals from string import Template SHELL_CONFIG_TEMPLATE = r""" shopt -s histappend export HISTFILESIZE=${HISTFILESIZE} export HISTSIZE=${HISTSIZE} export HISTCONTROL=ignoreboth export HISTIGNORE='${HISTIGNORE}' # Append to history file, clear the histo...
29.769231
93
0.700258
2f5519e45a755d79ea4e76d85dbf5107894d719a
5,258
py
Python
Metadataextraction/openFolder.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
null
null
null
Metadataextraction/openFolder.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
47
2018-11-13T13:55:01.000Z
2019-09-16T13:38:11.000Z
Metadataextraction/openFolder.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
4
2018-11-27T12:36:51.000Z
2020-10-14T18:07:04.000Z
import click # used to print something import os # used to get the location of the testdata # used to navigate through the folder import getShapefileInfo, getGeoTiffInfo, getCSVInfo, getIsoInfo, getGeoJsonInfo, getNetCDFInfo, getGeoPackageInfo # used for the specific functions to extract the spatial and...
40.75969
195
0.57189
2f966293eef0c86b1b03d9951e499ec0f3c9bd6d
10,132
py
Python
Packs/Druva/Integrations/Druva/Druva_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Druva/Integrations/Druva/Druva_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Druva/Integrations/Druva/Druva_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
def test_Druva_FindDevice_Command(requests_mock): from Druva import Client, Druva_FindDevice_Command mock_response = {'resources': [{ 'orgID': '-1', 'resourceID': '12345', 'resourceName': 'test', 'resourceParent': 'testUser', 'resourceStatus': 'enabled', ...
34.580205
123
0.624753
2f9ddfed07711375ee476e89d8e60a0c3d3e0c9c
6,463
py
Python
tests/_internal/test_router.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
2
2019-11-17T06:38:56.000Z
2019-12-01T15:32:03.000Z
tests/_internal/test_router.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
null
null
null
tests/_internal/test_router.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
null
null
null
from spangle._internal.router import Router from ward import fixture, test, using from ward.models import Scope class StaticHandler: pass class DynamicHandler: pass collected_handlers = [ ("/", StaticHandler, {}), ("/foo/bar", StaticHandler, {}), ("/foo/baz/", StaticHandler, {}), ("/{param...
29.112613
77
0.597091
9b1460bc1a8cb9d165f8d543cdcea0d9c384b0e3
1,095
py
Python
src/net/caption_generator/attention.py
0shimax/chainer-caption-generator
56f9d2984c245bc75787c4d4e1593e302fbf84b0
[ "MIT" ]
null
null
null
src/net/caption_generator/attention.py
0shimax/chainer-caption-generator
56f9d2984c245bc75787c4d4e1593e302fbf84b0
[ "MIT" ]
null
null
null
src/net/caption_generator/attention.py
0shimax/chainer-caption-generator
56f9d2984c245bc75787c4d4e1593e302fbf84b0
[ "MIT" ]
null
null
null
import chainer import chainer.functions as F import chainer.links as L class Attention(chainer.Chain): """ input to lstm is output of attention(fb_t) hidden state in lstm is f_{t-1} in case image, input to align_source_dim is feature map reduced channel to one. then, align_score_dim is (batch_siz...
39.107143
114
0.687671
c8724fbc72e3a4a8a504c585f59d8b9ad5b1d225
2,160
py
Python
jumeaux/addons/final/summary.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
jumeaux/addons/final/summary.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
jumeaux/addons/final/summary.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
# -*- coding:utf-8 -*- import os from owlmixin import OwlMixin from jumeaux.addons.final import FinalExecutor from jumeaux.models import FinalAddOnPayload, Report, OutputSummary, FinalAddOnReference from jumeaux.logger import Logger logger: Logger = Logger(__name__) class Config(OwlMixin): sysout: bool = False...
35.409836
100
0.462037
b588a65cc85030cc2dc421bc906ddc70fa579bb5
119
py
Python
data_tests/assign_func_jit.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
data_tests/assign_func_jit.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
data_tests/assign_func_jit.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
from transonic import jit def func(x): return x ** 2 def func2(x): return x ** 2 func_jitted = jit(func)
9.153846
25
0.613445
b5a8450ec1fe39c47a3b6e924639b342b0cc68bf
2,794
py
Python
TreeModelLib/BelowgroundCompetition/FixedSalinity/FixedSalinity.py
jvollhueter/pyMANGA-1
414204a394d44405225b4b8224b19464c1006f1d
[ "MIT" ]
null
null
null
TreeModelLib/BelowgroundCompetition/FixedSalinity/FixedSalinity.py
jvollhueter/pyMANGA-1
414204a394d44405225b4b8224b19464c1006f1d
[ "MIT" ]
null
null
null
TreeModelLib/BelowgroundCompetition/FixedSalinity/FixedSalinity.py
jvollhueter/pyMANGA-1
414204a394d44405225b4b8224b19464c1006f1d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @date: 2020-Today @author: ronny.peters@tu-dresden.de """ import numpy as np from TreeModelLib.BelowgroundCompetition import BelowgroundCompetition class FixedSalinity(BelowgroundCompetition): ## Fixed salinityin belowground competition concept. # @param: Ta...
38.805556
81
0.613099
277adeefb6dcbe827f834458987f7acf20efc3e8
727
py
Python
files/meas/Experiment_12/pickle_data.py
mimeiners/ans
382e000e687d5ec0c80a84223087e60ed656a1dd
[ "MIT" ]
null
null
null
files/meas/Experiment_12/pickle_data.py
mimeiners/ans
382e000e687d5ec0c80a84223087e60ed656a1dd
[ "MIT" ]
null
null
null
files/meas/Experiment_12/pickle_data.py
mimeiners/ans
382e000e687d5ec0c80a84223087e60ed656a1dd
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import pandas as pd # import os # import sqlite3 as lite datafile = sys.argv[1] # Read table data with decimal ',' into dataframe from textfile df = pd.read_table(datafile, decimal=',') # Read table data with decimal ',' into dataframe from textfile # df = pd.read_table(datafile, sep...
22.030303
63
0.716644
fd6f9cabf33f136e3c6b54672c033e5507ce7dbe
344
py
Python
BSidesCanberra/2021/crypto/Despicable_Key/enc.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
BSidesCanberra/2021/crypto/Despicable_Key/enc.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
BSidesCanberra/2021/crypto/Despicable_Key/enc.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
## ENCRYPT ## pip install pycryptodomex from binascii import * from Cryptodome.Cipher import AES key = b'cybearscybears20' import os n = os.urandom(12) with open('flag.png', 'rb') as f: d = f.read() a = AES.new(key, AES.MODE_GCM, nonce=n) cipher, tag = a.encrypt_and_digest(d) with open('flag.png.enc', 'wb') as...
18.105263
39
0.680233
4bd3689a681a559c63c05a858b438f882c8136dc
14,798
py
Python
data-pipeline/src/data_pipeline/datasets/clinvar.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
38
2018-02-24T02:33:52.000Z
2020-03-03T23:17:04.000Z
data-pipeline/src/data_pipeline/datasets/clinvar.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
385
2018-02-21T16:53:13.000Z
2020-03-04T00:52:40.000Z
data-pipeline/src/data_pipeline/datasets/clinvar.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
13
2020-05-01T13:03:54.000Z
2022-02-28T13:12:57.000Z
import csv import datetime import gzip import json import os import subprocess import sys from xml.etree import ElementTree import hail as hl from tqdm import tqdm from data_pipeline.datasets.gnomad_v3.gnomad_v3_mitochondrial_variants import ( FILTER_NAMES as MITOCHONDRIAL_VARIANT_FILTER_NAMES, ) from data_pipeli...
42.401146
217
0.653872
ef43d9eddd75b87021252a2bb9047ae7842debef
1,149
py
Python
02 Hardwaredesign/Grundschaltungen/src/led_blink.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
02 Hardwaredesign/Grundschaltungen/src/led_blink.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
02 Hardwaredesign/Grundschaltungen/src/led_blink.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
1
2020-10-10T20:24:05.000Z
2020-10-10T20:24:05.000Z
#! ./env/bin/python3 #encoding=utf-8 # Copyright (C) 2019 Dennis Schulmeister-Zimolong # # E-Mail: dhbw@windows3.de # Webseite: https://www.wpvs.de # # Dieser Quellcode ist lizenziert unter einer # Creative Commons Namensnennung 4.0 International Lizenz """ Minimalbeispiel einer blinkenden LED. Hierzu wird einfach de...
23.44898
71
0.64839
08cf8da76a0ceeb3b5147f7878c8f9a3341bba4b
1,732
py
Python
Python/Buch_ATBS/Teil_1/Kapitel_05_Dictionary_und_Datenstrukturen/05_dictionary_in_dictionary.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_1/Kapitel_05_Dictionary_und_Datenstrukturen/05_dictionary_in_dictionary.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_1/Kapitel_05_Dictionary_und_Datenstrukturen/05_dictionary_in_dictionary.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# Das Verwenden von Dictionarys innerhalb von Dictionarys allguests={'Ronny' : {'Äpfel' : 3, 'Grillfleisch': 1}, 'Miriam' : {'Grillfleisch' : 3, 'Getränke' : 2}, 'Tony' : {'Äpfel' : 2, 'Getränke' : 4}} stuff=['Äpfel', 'Getränke', 'Grillfleisch'] print('Ronny bringt folgendes mit:', allguests['R...
30.928571
134
0.692263
08de001e6b68ee5ba6f372c372860128ee550b50
3,932
py
Python
.venv/Lib/site-packages/ipopt-0.1.9/setup.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
.venv/Lib/site-packages/ipopt-0.1.9/setup.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
.venv/Lib/site-packages/ipopt-0.1.9/setup.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """ cyipopt: Python wrapper for the Ipopt optimization package, written in Cython. Copyright (C) 2012-2015 Amit Aides Copyright (C) 2015-2018 Matthias Kümmerer Author: Matthias Kümmerer <matthias.kuemmerer@bethgelab.org> (original Author: Amit Aides <amitibo@tx.technion....
31.709677
93
0.615463
19d97f19ddc128d3f9c0e9c1747108606baae1ef
260
py
Python
src/onegov/town6/custom.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/custom.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/custom.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.org.custom import get_global_tools as get_global_tools_base def get_global_tools(request): for item in get_global_tools_base(request): if getattr(item, 'attrs', {}).get('class') == {'login'}: continue yield item
23.636364
71
0.673077
c23ed1f56d4f52b528b4f49de67bf67cd92270e3
111
py
Python
2021-05-09/写笔记带后端/library-server-develop/apps/user/urls.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
395
2017-02-24T02:59:29.000Z
2022-03-31T15:48:19.000Z
2021-05-09/写笔记带后端/library-server-develop/apps/user/urls.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
7
2020-03-17T08:33:00.000Z
2021-09-02T23:10:46.000Z
2021-05-09/写笔记带后端/library-server-develop/apps/user/urls.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
235
2017-03-14T03:31:38.000Z
2022-03-29T16:14:51.000Z
from django.conf.urls import url from . import views urlpatterns = [ url(r'^login', views.login), ]
15.857143
33
0.648649
dfbab3f6404a511b32a1140b64741a5c506d1a62
552
py
Python
util/config_utils.py
HerbLee/sanicweb
f5177ca715ed704ebceffdd59710406b2659c514
[ "Apache-2.0" ]
null
null
null
util/config_utils.py
HerbLee/sanicweb
f5177ca715ed704ebceffdd59710406b2659c514
[ "Apache-2.0" ]
null
null
null
util/config_utils.py
HerbLee/sanicweb
f5177ca715ed704ebceffdd59710406b2659c514
[ "Apache-2.0" ]
null
null
null
import yaml import os current_path = "" def init(path): global current_path current_path = path def get_yaml_data(yaml_file): with open(yaml_file, 'r', encoding="utf-8") as f: data = yaml.load(f.read(), Loader=yaml.FullLoader) return data def get_mysql_data(): try: config_...
18.4
63
0.632246
2689673b85e6325ad255c13f2eed47101749e830
441
py
Python
makeJson.py
vincentol/FoundingFathers
504450f01db997cdf9464ab9b2a0360c08db4b62
[ "MIT" ]
null
null
null
makeJson.py
vincentol/FoundingFathers
504450f01db997cdf9464ab9b2a0360c08db4b62
[ "MIT" ]
9
2017-04-10T20:41:29.000Z
2017-05-24T21:48:35.000Z
makeJson.py
vincentol/FoundingFathers
504450f01db997cdf9464ab9b2a0360c08db4b62
[ "MIT" ]
3
2017-04-07T21:47:16.000Z
2021-01-05T04:07:02.000Z
import json import math import random arr = [] i = 0 while (i < 1000): arr.append(0) if (i > 250): arr[i] = math.floor(random.random()*800)+1 i+=1 #hard coded values to wizard of oz UCSD area #apparently json.dumps doesnt work so i just did this stuff manually outFileName = 'priceData.json' with open(outFileNa...
19.173913
68
0.678005
cd1271c7e448abd5a40c321dcaf1c13a2ad22f51
674
py
Python
python/p003.py
tlming16/Projec_Euler
797824c5159fae67493de9eba24c22cc7512d95d
[ "MIT" ]
4
2018-11-14T12:03:05.000Z
2019-09-03T14:33:28.000Z
python/p003.py
tlming16/Projec_Euler
797824c5159fae67493de9eba24c22cc7512d95d
[ "MIT" ]
null
null
null
python/p003.py
tlming16/Projec_Euler
797824c5159fae67493de9eba24c22cc7512d95d
[ "MIT" ]
1
2018-11-17T14:39:22.000Z
2018-11-17T14:39:22.000Z
#!/usr/bin/python3 # -*- coding:utf-8 -*- # @author :mathm # @email :tlming16@fudan.edu.cn import sys class solution: __slots__=('num') def __init__(self,n): self.num=n def largest_prime(self): num=self.num current=2 while True: if num %current==0: ...
17.736842
37
0.468843
cd212fa9843bfddcaf04d63464436318e6acf0fd
15,161
py
Python
src/onegov/election_day/collections/archived_results.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/collections/archived_results.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/collections/archived_results.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from collections import OrderedDict from datetime import date from itertools import groupby from onegov.ballot import Election from onegov.ballot import ElectionCollection from onegov.ballot import ElectionCompound from onegov.ballot import ElectionCompoundCollection from onegov.ballot import Vote from onegov.ballot im...
32.74514
79
0.58202
cd5ad00e6ee31901a57132c39e306b7f39c7a76e
478
py
Python
api/wsgi/src/devices/ecg/models.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
2
2020-06-08T19:17:10.000Z
2020-06-08T20:45:07.000Z
api/wsgi/src/devices/ecg/models.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
14
2015-10-07T09:31:50.000Z
2022-02-23T07:34:10.000Z
api/wsgi/src/devices/ecg/models.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
null
null
null
import datetime from devices.ecg.services import EcgFirebaseService class BPM(object): def __init__(self, device_id, **kwargs): self.datetime_to = kwargs.get('datetime_to', datetime.datetime.now()) self.datetime_from = kwargs.get('datetime_from', self.datetime_to - datetime.timedelta(minutes=5)) ...
23.9
106
0.719665
f839bfa61537f09b0e788fa7d3e1fc901eeac090
2,027
py
Python
src/type.py
strellic/PulseLang
72730ec4c2967f004e9bf19dcd7bbef097824973
[ "MIT" ]
1
2020-09-24T05:57:25.000Z
2020-09-24T05:57:25.000Z
src/type.py
strellic/PulseLang
72730ec4c2967f004e9bf19dcd7bbef097824973
[ "MIT" ]
null
null
null
src/type.py
strellic/PulseLang
72730ec4c2967f004e9bf19dcd7bbef097824973
[ "MIT" ]
null
null
null
# Pulse typesys - type system ARITHM_BIN_OPS = ["+", "-", "*", "/"] ARITHM_UNARY_OPS = ["+", "-"] REL_BIN_OPS = ["<", "<=", ">", ">=", "=", "!="] BOOL_BIN_OPS = ["&&", "||", "=", "!="] BOOL_UNARY_OPS = ["!"] class Type(): @classmethod def binop_type(cls, op, right_type): return None @classmetho...
21.114583
67
0.564874
f850a2ed0a9675a4cccebe680e53d020fd0016cc
1,752
py
Python
tests/test_markt.py
KingKevin23/agspiel-python-api
33e74ff6bee2f9ce353da757bdb99e929acc1a13
[ "MIT" ]
1
2021-03-09T21:37:41.000Z
2021-03-09T21:37:41.000Z
tests/test_markt.py
KingKevin23/agspiel-python-api
33e74ff6bee2f9ce353da757bdb99e929acc1a13
[ "MIT" ]
4
2020-11-13T19:34:58.000Z
2021-07-24T16:25:27.000Z
tests/test_markt.py
KingKevin23/agspiel-python-api
33e74ff6bee2f9ce353da757bdb99e929acc1a13
[ "MIT" ]
1
2020-08-24T14:38:18.000Z
2020-08-24T14:38:18.000Z
# Copyright (c) 2020 | KingKevin23 (@kingkevin023) import json from unittest import TestCase from bs4 import BeautifulSoup from agspiel.api.markt import Markt from agspiel.api.data import Data class TestMarkt(TestCase): def setUp(self): f = open("testmarkt.txt", "rb") web_data = Data(data=Beautif...
35.755102
94
0.694064
f852331112aa18b4eb7f75832c93e4bb97fd5e3f
320
py
Python
python_reference/useful_scripts/lines_to_csv.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:16:23.000Z
2019-05-10T09:16:23.000Z
python_reference/useful_scripts/lines_to_csv.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
null
null
null
python_reference/useful_scripts/lines_to_csv.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-10-14T07:30:18.000Z
2019-10-14T07:30:18.000Z
# Sebastian Raschka 2014 # converts a 1-col input file into csv file # # Example input: # 123 # 245 # 453 # # Example output: # 123,245,453 # out_file = open('new.csv', 'w') with open('in.txt', 'r') as in_file: for line in in_file: line = line.strip() out_file.write(line + ',') out_file.close()
14.545455
43
0.615625
e46188594a4c8fd9b25a4d5db892e1028d477151
799
py
Python
usuario/views.py
joaogabriel15/spfc
74e0fb79cfe64001fe55fea07aa80d61fa76b2e4
[ "MIT" ]
null
null
null
usuario/views.py
joaogabriel15/spfc
74e0fb79cfe64001fe55fea07aa80d61fa76b2e4
[ "MIT" ]
null
null
null
usuario/views.py
joaogabriel15/spfc
74e0fb79cfe64001fe55fea07aa80d61fa76b2e4
[ "MIT" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.shortcuts import render, redirect from django.contrib.auth.models import User from django.contrib.auth import authenticate, login , logout # Create your views here. def logar(request): if request.method == 'POST': usuario = request.PO...
29.592593
61
0.674593
e46292cba2270dda3d524e952e0a9a997dcbe9df
4,162
py
Python
ex.py
vlpolyansky/spotArt
b1a6df25b62cd61d9056d710f4a2cb9185f45f3c
[ "MIT" ]
null
null
null
ex.py
vlpolyansky/spotArt
b1a6df25b62cd61d9056d710f4a2cb9185f45f3c
[ "MIT" ]
null
null
null
ex.py
vlpolyansky/spotArt
b1a6df25b62cd61d9056d710f4a2cb9185f45f3c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Use GLImageItem to display image data on rectangular planes. In this example, the image data is sampled from a volume and the image planes placed as if they slice through the volume. """ ## Add path to library (just for examples; you do not need this) from pyqtgraph.Qt import QtCore, QtGu...
31.293233
93
0.597069
f294348d9d1722e03b35e68e41511931789028f8
4,158
py
Python
site/public/courses/CS-1.2/src/SortingAlgorithms.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
1
2021-08-24T20:22:19.000Z
2021-08-24T20:22:19.000Z
site/public/courses/CS-1.2/src/SortingAlgorithms.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
site/public/courses/CS-1.2/src/SortingAlgorithms.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
# Bubble Sort def bubble_sort(lst): n = len(lst) # Traverse through all list elements while True: # range(n) also work but outer loop will repeat one time more than needed. # Last i elements are already in place sorted = True for j in range(0, n-1): # traverse the list # Swap ...
25.9875
99
0.493506
8a2dc59d66e33076339c0556314df6d35a258e0f
34
py
Python
script/pyscripts/__init__.py
agarrharr/fronzbot.github.io
702f5a9d5ab15046f0dad539e57766a24f583d1d
[ "MIT" ]
3
2020-04-08T03:01:05.000Z
2021-11-04T11:10:52.000Z
script/pyscripts/__init__.py
agarrharr/fronzbot.github.io
702f5a9d5ab15046f0dad539e57766a24f583d1d
[ "MIT" ]
20
2017-07-28T02:54:39.000Z
2022-02-26T03:34:48.000Z
script/pyscripts/__init__.py
agarrharr/fronzbot.github.io
702f5a9d5ab15046f0dad539e57766a24f583d1d
[ "MIT" ]
4
2019-03-04T19:56:13.000Z
2020-04-09T00:31:09.000Z
'''Init file for helper scripts'''
34
34
0.705882
8aa8285afa83a4b39015bc2c2e2dfed509c46a90
2,910
py
Python
quant/markets/_binance.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
7
2017-10-22T15:00:09.000Z
2019-09-19T11:45:43.000Z
quant/markets/_binance.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
1
2018-01-19T16:19:40.000Z
2018-01-19T16:19:40.000Z
quant/markets/_binance.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
5
2017-12-11T15:10:29.000Z
2018-12-21T17:40:58.000Z
# Copyright (C) 2017, Philsong <songbohr@gmail.com> from quant.api.binance import Client from quant.markets import market_util from .market import Market class Binance(Market): def __init__(self, pair_code): base_currency, market_currency = self.get_available_pairs(pair_code) super(Binance, self)...
34.235294
87
0.567354